From 15dea8c3ed053d3eb9c33ef521d5fd3ca3858fb6 Mon Sep 17 00:00:00 2001 From: Jannis Lauer Date: Sun, 29 Sep 2024 14:26:07 +0200 Subject: [PATCH] update 59 --- LifeGame.py | 77 ++++++++++---------- __pycache__/addon.cpython-310.pyc | Bin 0 -> 500 bytes __pycache__/begin.cpython-310.pyc | Bin 0 -> 1822 bytes __pycache__/fight.cpython-310.pyc | Bin 0 -> 3339 bytes __pycache__/level_up.cpython-310.pyc | Bin 0 -> 1598 bytes __pycache__/location.cpython-310.pyc | Bin 0 -> 709 bytes __pycache__/replace_umlauts.cpython-310.pyc | Bin 0 -> 629 bytes __pycache__/weapons.cpython-310.pyc | Bin 0 -> 1211 bytes fight.py | 7 +- 9 files changed, 43 insertions(+), 41 deletions(-) create mode 100644 __pycache__/addon.cpython-310.pyc create mode 100644 __pycache__/begin.cpython-310.pyc create mode 100644 __pycache__/fight.cpython-310.pyc create mode 100644 __pycache__/level_up.cpython-310.pyc create mode 100644 __pycache__/location.cpython-310.pyc create mode 100644 __pycache__/replace_umlauts.cpython-310.pyc create mode 100644 __pycache__/weapons.cpython-310.pyc diff --git a/LifeGame.py b/LifeGame.py index 434cc37..4e07c82 100644 --- a/LifeGame.py +++ b/LifeGame.py @@ -1,45 +1,48 @@ -import random as rd, time #importieren von verschiedensten Sachen -from fight import createfight -from level_up import levelup -from addon import addon -from location import location -from begin import begin +def LifeGame(): + import random as rd, time #importieren von verschiedensten Sachen + from fight import createfight + from level_up import levelup + from addon import addon + from location import location + from begin import begin -standartwartezeit = 2 #standart wartezeit :) -moa = {"name": "Der Dämonenkönig","alter": 24000,"attack-s": 90000000,"leben": 500000,"waffe": "schießt mit Atomic gegen", "rank": 10} + standartwartezeit = 2 #standart wartezeit :) + moa = {"name": "Der Dämonenkönig","alter": 24000,"attack-s": 90000000,"leben": 500000,"waffe": "schießt mit Atomic gegen", "rank": 10} -player1, die, dieten, r, l, m, automode, randommode, standartwartezeit = begin(standartwartezeit) + player1, die, dieten, r, l, m, automode, randommode, standartwartezeit = begin(standartwartezeit) -verblist, enemylist, locationslist = addon() + verblist, enemylist, locationslist = addon() -while True:# Wiederholung Unendlich mit einigen außnahmen - goblin1 = moa #goblin1 ist der letze gegen den man gespielt hat - if goblin1["leben"] < 1 and goblin1["name"] == moa["name"]:#Ende wenn der Dämonenkönig stirbt - print("") - print(player1["name"] + " hat gegen den " + goblin1["name"] + " gewonnen") - print("Warte. Was!? Wie!?") - time.sleep(standartwartezeit) - print("Auf Jeden Fall ist die Welt jetzt befreit") - print("Vielen Dank") - break - if player1["leben"] < 1:#Ende wenn Player1 stirbt - print("") - print(player1["name"] + " wurde besiegt er war " + str(player1["alter"]) + " jahre alt"), - break + while True:# Wiederholung Unendlich mit einigen außnahmen + goblin1 = moa #goblin1 ist der letze gegen den man gespielt hat + if goblin1["leben"] < 1 and goblin1["name"] == moa["name"]:#Ende wenn der Dämonenkönig stirbt + print("") + print(player1["name"] + " hat gegen den " + goblin1["name"] + " gewonnen") + print("Warte. Was!? Wie!?") + time.sleep(standartwartezeit) + print("Auf Jeden Fall ist die Welt jetzt befreit") + print("Vielen Dank") + break + if player1["leben"] < 1:#Ende wenn Player1 stirbt + print("") + print(player1["name"] + " wurde besiegt er war " + str(player1["alter"]) + " jahre alt"), + break - player1["alter"] += 1 + player1["alter"] += 1 - location(verblist, enemylist, player1, locationslist, standartwartezeit) + location(verblist, enemylist, player1, locationslist, standartwartezeit) + + if rd.randint(r,25) > 15: #Kampf + player1, enemy, goblin1 ,die = createfight(player1, die, dieten, automode, enemylist, standartwartezeit, randommode, moa) + if die > 0: + if player1["leben"] > 0: #Regenerierung Player1 + if player1["leben"] < 1000000: + if player1["leben"] > 200:player1["leben"] += 5*r + else:player1["leben"] += 25*r + if die > 15: + die, dieten, player1, r, m, l = levelup(die,dieten,randommode,player1,standartwartezeit,r,m,l) + time.sleep(standartwartezeit) - if rd.randint(r,25) > 15: #Kampf - player1, enemy, goblin1 ,die = createfight(player1, die, dieten, automode, enemylist, standartwartezeit, randommode, moa) - if die > 0: - if player1["leben"] > 0: #Regenerierung Player1 - if player1["leben"] < 1000000: - if player1["leben"] > 200:player1["leben"] += 5*r - else:player1["leben"] += 25*r - if die > 15: - die, dieten, player1, r, m, l = levelup(die,dieten,randommode,player1,standartwartezeit,r,m,l) - time.sleep(standartwartezeit) + time.sleep(10) -time.sleep(10) +LifeGame() \ No newline at end of file diff --git a/__pycache__/addon.cpython-310.pyc b/__pycache__/addon.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f6592d5a50d5959b62cbfa962552174cddda3d46 GIT binary patch literal 500 zcmY*W%}N6?5Y8l9+16GsK7iLA+Pfkmc<@#P5u_|gY_erbc2km6XjxDCAbRvQd<%2+ zj31aswrd0hkgh zd17O(;EMHIpV-AleTe%`&yAeu+eK;QBKQdv{w+Zw(9hBR4MITSM|fZXo_Wn)-~lkh zw=x_vVk;wpsHunJNfnAo1!|~yEpmYaC8JgQUc0;D%-d?!(UmTje|*o_i429Ud=vMR znAo|lVnUrUF;*%^kH-S!F(naG_z>HTMnijR2?}4CqgDPKO^&l`ubt0kvZ{*g(%Gq# zWtm+RAu~m;2UA(Sz=t1&$(ty&m;ivP;|4nhiD=<;9pnR!zH literal 0 HcmV?d00001 diff --git a/__pycache__/begin.cpython-310.pyc b/__pycache__/begin.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a7fa35d436aad7015474ecbb2fa5a914603ab6e8 GIT binary patch literal 1822 zcmb7_&u<$=6vt=whwY?J)3l)pv}qSgsogZO;8xVeKn0a5HL7S)q{u>=c*f4+-L*Bl zP84e`Aq8>nm5K`}m;M7BIFb{HGZJ$`;!<<21nL3teG|KhxOJ_0JM(#O-n{R4JnqiS zOfx*Qzx>|%`xIk;(%|IdVDJH2x(Fkg4on!;Pv+zBF z?;L#dLoc}x_8QpdVCTUW!0v!8f^CDn4)zAvO|T1K8tfw25?BrF5?Btl1a=whDp&ya zHQ1YAZ-HF^y8`wY>}{~CU~^#afIR`b40a8yC@Ub}q3_Bn#seFT4Dt%9PpwwxG1nKN z_WBMx>LCy5{Rw&guXhtZ()%lX6TJ_>Nbhf86TP2+k={SRCVFpyk>0<+CVJlkBfZbT zCVDGir1xL2iQY?K(2M$}KqrdNfkH9pJm^Goi8PaviRzroWx0@h^DKAejc>i7pLw~T zx% zVL$7}U8#cT@F1n>VRJhW1Vt96=ywhe;$91@_7fQ-@MdtQyN3tc5#X*!X~kGHw`pWc zSnY2h@kc5QJ`R(%K=B=s;5(dS2I5#E32_J$uZb)z>JGO<^pu$Wq!DD!=NuuGADfS|74tKLy)+6GG8FicE!k{m9n|A`sPa75 oD=2@x>YC#C56Nz>rFN4}m>Y;RrCaz0`jJ|ruQH`mQ)Xr7KXg&7zW@LL literal 0 HcmV?d00001 diff --git a/__pycache__/fight.cpython-310.pyc b/__pycache__/fight.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bc73e62379466972ff728ebb9456406f0b745adf GIT binary patch literal 3339 zcmcIn&2JmW6`xt|lFKC}%c^2YmYYoMI3-=nj@uMQ10zXMqj5iA7;u9CgbrD8hUA*$ zkewYyF|j)GdPk-t1D68z()L!oGPk z^X7fed!xz9O2qK{+wFh${(PRXPiS)b=V9_LzVraiZ5On@3=X}UtioU8A=X^`vLzKv`Kj)_LzdWlq;i(h)i=cOs z%SgbB&qv}|gE9&(#`TQ%d?e=j-6M`58{DQ0=#nH#CrIQi}{Y&SCjp?JFv=%VLYDp#QY#h zy8|4Y2V$nB$a&muN) zsiB=pY7O|*rla_wGB@&yOjKS4uuA7)JhPMWM5?^5v>HDg!G!#5Y9TK+7V29ySBcFd z(qJ-nl$G%$&I3oD*ZPzFQKD~js&0PcH_Tju3eUdXeQWRiRGD<|L9BJMch5}vCLWLX z-b?J>DCw!)K3ulji?xl@hr3ekIi0UfALfm&QL$BS?t@o)8(@t`_}k(wzzf{xO)l_- zwCXL_m!r?GVkZRMD!+(NxLK2%%V5-{xGsOIKxpo&%V!maJHD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_CTc2$9S1W*kN~jj5Z^F`j8?W?pz{{=g6uSv92>GUN<_a{D zY9CWfM69Iw)M%P&ntV?rG$T*C+wb;o=R)TFyHS?K{hM+$lu?@Yug9vN!~?N0#Esh+ zM45{6gAFeF<$b%eJH9wR&|Vqrj%}36AHme9zxV}fl zjlaOke_>jy{R>z5Cg;jFzQg;GC(rwkycso_6bKCe{I&c}5c=&GhXxpW18$x`V2I%k zRXAi)5k^?_4OJ1t@6n9zfPpUB*r&hdwJG>HxcLFWq8mJ-ExwMSA`COK1(nZ4KMgw( z>?AfCLH86fIz?m5;!`xeuM?K|`YXmrJ`a2h{FJ3*>iNLR!1Ke^id<)bnE^BZuX28` zY9m&7^?#Y(#3S7T!Vui>!Nm^49d>>uj>@Lzcer%)lIw+|LN3)NZ)9ne<$bwH%S)vf zTm*~@37A8(#1YM0(tcE;AGtM zu3x%Ir`pB}B~8Fjj0Leq+beLs;lk>~pEKLjTpUEIlZ9f#9t^$J(IIq;^kZneJ8NIn z9}L%~{?te*>UUbLbkq0sTVd-?Ectu|6PPa>X&W=l8L#)EFV=&81QHRr@md8wCIxU9oGJ@LUeheI5MDPS%;>lORb@z?$xjQ_Ka(GmFr5h}5{ literal 0 HcmV?d00001 diff --git a/__pycache__/replace_umlauts.cpython-310.pyc b/__pycache__/replace_umlauts.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7c2c8fb615ce42c965d922e36419a391810899bb GIT binary patch literal 629 zcmZ9JK}*~~6vyA2%(`p3Q7I_&u3(_+2WX{Kl=fyV;zc55*qL3XO|o`oBCKRj>u2y( zXcwf=bD^i+`YAfseuiEa1Ye>lOJA7x&+p~Ee7>{m(-N^m%3W~+oROrm5nMjA+7YfCQG+LoPKmt|P% zBiXGrk}ESdA&=vGr+}QElM|o80i1;io8W}GR>`JVLW#TZapzy}67{}yZPzJbic_rm zCjs?B89bp%rPTkb>W^0sFZuSKivLz0`s<27G;l-krh#jMQ3F2+P8#?`P&Dw9z+OJM zeU6uXsIAVe6M0|xz&hjGMxCdEh)dmfzNMYYtY3YozALg+6wZ2{YD-Uz$cHqTsyya2 zA)N5R2Q~Js3y~Jeqy7eFopwIo?>|dUtTHxvFY;U`M`koMBFmE3+9jzTsNPUysy7h1 z6L#E_D*5k?JLh8)kyCZ3c9T+wA$ArnHs?_|U&9sTJiJ}Q$H=jsIE?SL-pE4QAQRu& Q%|^0F)r;D<`pI3m1Ck1#pa1{> literal 0 HcmV?d00001 diff --git a/__pycache__/weapons.cpython-310.pyc b/__pycache__/weapons.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1513f56e6b235935b2e59aef6fde644ce6d857e9 GIT binary patch literal 1211 zcmZuv&2HQ_5GE-~t6i_xPU^;Mpa&hh1sou!0BsNi4Uz%@Vx&J#QDFgt(Qw!DN|Zry zV|XE5;+%46PdT&+;-IHKK%bybQC@rUD;P-8p=7t4wj?;5;e0dmamZqIwMTIL`0MYJ zN2vYbjOD@5xPz7r@LKD=+%GS4!=Mg<)!izD0W$lc z>Oydn)ZNRdsyig_MZTzlHg*%4DF$nG*v6K6iRZfGd0F@WIHGTTi=e!MvIAEe{ewo| zXmr<~4_^f}V(`hX?JNdIQXCcv^6B-1vQQcygjlLA*Fw$CR?s?gM`!NY7XDXw7%hg8 zDoivf<_e-zMQw&GEzM%{p-A>k1X4%4N-D_GWPc`8Gyep`%VfX!?M;-YE#RS;rt-hg zNX#dhhj6m~VDz&$@+?;(m)1WLlZiYJg)t(TZI|EN*X|oxUt~sV?f6+glTW15UDQWG zhZ?Ekb6eY zF}L`I=uKpI{#o+rc(;_g93Kd!((xl*Otr}K@fWEXXX!+4PqACu6QPVKkGDaN+l1xy z!()3vqnt`301D+}#_}