From fbcbab2eecf05dd71b3967e93746edc03ebd9d80 Mon Sep 17 00:00:00 2001 From: Pecusx Date: Tue, 15 Nov 2022 08:46:38 +0100 Subject: [PATCH] Battery performance in AI and Auto Defense fixed. --- MANUAL_EN.md | 3 ++- MANUAL_PL.md | 4 ++-- ai.asm | 1 + scorch.bin | Bin 32768 -> 32768 bytes scorch.xex | Bin 49146 -> 49149 bytes 5 files changed, 5 insertions(+), 3 deletions(-) diff --git a/MANUAL_EN.md b/MANUAL_EN.md index a5d772b..b9478d5 100644 --- a/MANUAL_EN.md +++ b/MANUAL_EN.md @@ -53,6 +53,7 @@ The status line shows which player is currently allowed to take a shot and a set * the shot strength set by the player (the maximum shot strength is limited by the player's energy - it can not exceed the energy * 10 . This means that you can fire weaker shots only when having a small amount of energy, * the current round number, * wind speed and direction, +* "computer" symbol if **Auto Defense** is active, * in parentheses is the name of the active defensive weapon - if there is any activated by the player. The keyboard controls here are simple, cursor keys or joystick: left/right - change the angle of the barrel, up/down - change the the force of the shot. @@ -171,7 +172,7 @@ Only these points determine the order in the summary * **Long Schlong** - a special weapon :) - Costs a lot, doesn't really help with anything (except possibly digging yourself out but only when slightly buried but it has a cool name and looks cool :) - It can be activated independently of other defensive weapons and remains active until the end of the round (it cannot be deactivated). * **Lazy Boy** - it is not actually a defensive weapon. It is an aiming aid. When it is activated, the tank tries to aim at the nearest enemy and automatically adjusts the power of the shot and angle. If it has too little energy, it can sometimes aim wrong (it uses a method like **Cyborg** to aim). Like **Battery**, it does not deactivate other defensive weapons when used. Note: There is no point in activating this weapon before the round, targeting will not take place because there is nothing to target yet. * **Lazy Darwin** - works exactly like **Lazy Boy** but targets the weakest opponent. -* **Auto Defense** - activates the mode of automatic activation of defensive weapons. After its activation, the tank automatically activates the strongest shield it has (consuming it, of course) at any time when there is no shield (also between shots of other players). At the same time, if the tank's energy level drops below 30 units, it automatically activates **Battery** if it has it. This weapon remains active until the end of the round and is indicated by the letter "A" before the name of the active defensive weapon in the status line. It is the second defensive weapon that does not deactivate other defensive weapons when used. +* **Auto Defense** - activates the mode of automatic activation of defensive weapons. After its activation, the tank automatically activates the strongest shield it has (consuming it, of course) at any time when there is no shield (also between shots of other players). At the same time, if the tank's energy level drops below 30 units, it automatically activates **Battery** if it has it. This weapon remains active until the end of the round and is indicated by the "computer" symbol before the name of the active defensive weapon in the status line. It is the second defensive weapon that does not deactivate other defensive weapons when used. * **Spy Hard** - Help for the forgetful :) . When activated, it shows a preview of information about the next opponents one by one. Left/Right - changes the "spied" tank. Fire/Space/Return/Esc - ends the "spying". This is the last defensive weapon, which does not deactivate other defensive weapons when used. None of the shields protect against **Napalm**. **Bouncy Castle** or **Mag Deflector** on a direct hit will deflect it or carry it past, but just hit very close to a tank and its shield will not save it. diff --git a/MANUAL_PL.md b/MANUAL_PL.md index ee188f9..2582779 100644 --- a/MANUAL_PL.md +++ b/MANUAL_PL.md @@ -52,7 +52,7 @@ W linii statusowej widoczna jest informacja o tym który z graczy aktualnie moż * ustawiona przez gracza siła strzału (maksymalna siła strzału jest ograniczana przez energię gracza - nie może przekroczyć energii * 10 . Oznacza to, że mając małą ilość energii możemy oddać słabsze strzały * numer aktualnej rundy rozgrywki * prędkość i kierunek wiatru -* symbol "A" jeśli aktywna jest **Auto Defense** +* symbol "komputera" jeśli aktywna jest **Auto Defense** * w nawiasie nazwę aktywnej broni defensywnej - jeśli jest jakaś aktywowana przez gracza Tutaj klawiszologia jest prosta, klawisze kursora lub joystick: lewo/prawo - zmiana kąta nachylenia lufy, góra/dół - zmiana ustawienia siły strzału. @@ -172,7 +172,7 @@ Tylko te punkty decydują o kolejności w podsumowaniu * **Long Schlong** - broń specjalna :) - kosztuje dużo, nie bardzo w czymkolwiek pomaga (poza ewentualnym odkopaniem się ale tylko przy niewielkim przysypaniu ale fajnie się nazywa i wygląda :) - Można ją aktywować niezależnie od innych broni defensywnych i pozostaje aktywna do końca rundy (nie da się jej dezaktywować). * **Lazy Boy** - nie jest to właściwie broń defensywna. Jest to wspomaganie celowania. Po jej aktywacji czołg stara się wycelować w najbliższego przeciwnika i automatycznie ustawia siłę strzału oraz kąt. W przypadku posiadania zbyt małej ilości energii może czasem wycelować źle (do celowania stosuje metodę taką jak **Cyborg**). Tak jak **Battery** nie dezaktywuje innych broni defensywnych w przypadku jej użycia. Uwaga! Nie ma sensu aktywacja tej broni przed rundą, celowanie nie odbędzie się bo nie ma jeszcze do czego celować. * **Lazy Darwin** - działa dokładnie jak **Lazy Boy** ale celuje w najsłabszego przeciwnika. -* **Auto Defense** - włącza tryb automatycznej aktywacji broni defensywnych. Po jej aktywowaniu czołg automatycznie aktywuje najmocniejszą posiadaną osłonę (zużywając ją oczywiście) w każdej chwili, kiedy nie ma żadnej osłony (także pomiędzy strzałami innych graczy). Jednocześnie jeżeli poziom energii czołgu spadnie poniżej 30 jednostek, automatycznie aktywuje **Battery** jeżeli ją posiada. Ta broń pozostaje aktywna do końca rundy i jest sygnalizowana literą "A" przed nazwą aktywnej broni defensywnej w linii statusowej. Jest to druga broń defensywna, która nie dezaktywuje innych broni defensywnych w przypadku jej użycia. +* **Auto Defense** - włącza tryb automatycznej aktywacji broni defensywnych. Po jej aktywowaniu czołg automatycznie aktywuje najmocniejszą posiadaną osłonę (zużywając ją oczywiście) w każdej chwili, kiedy nie ma żadnej osłony (także pomiędzy strzałami innych graczy). Jednocześnie jeżeli poziom energii czołgu spadnie poniżej 30 jednostek, automatycznie aktywuje **Battery** jeżeli ją posiada. Ta broń pozostaje aktywna do końca rundy i jest sygnalizowana symbolem "komputera" przed nazwą aktywnej broni defensywnej w linii statusowej. Jest to druga broń defensywna, która nie dezaktywuje innych broni defensywnych w przypadku jej użycia. * **Spy Hard** - Pomoc dla zapominalskich :) . Po aktywacji pokazuje kolejno podgląd informacji o kolejnych przeciwnikach. Lewo/Prawo - zmienia "szpiegowany" czołg. Fire/Space/Return/Esc - kończy "szpiegowanie". Jest to ostatnia broń defensywna, która nie dezaktywuje innych broni defensywnych w przypadku jej użycia. W związku z odmiennym działaniem broni **MIRV**, bronie defensywne **Bouncy Castle** i **Mag Deflector** wykorzystują tylko funkcję osłony przy trafieniu tą bronią. Dodatkowo głowice **MIRV** w czasie opadania nie odbijają się i nie przelatują przez ściany boczne! diff --git a/ai.asm b/ai.asm index 2bc6970..0dcc1ce 100644 --- a/ai.asm +++ b/ai.asm @@ -238,6 +238,7 @@ EnoughEnergy sta (temp),y lda #99 sta Energy,x + jsr MaxForceCalculate EnoughEnergy NoBatteries rts diff --git a/scorch.bin b/scorch.bin index f5e66f66dd33106774bbb7330506291464904250..09d0da56c3a970c3ab95c4282052b63b8f1cfc07 100644 GIT binary patch delta 754 zcmZo@U}|V!+OSBL@yF)HvSloiGP4xAk}_8KlqH?iy&$qur*-}e4+Wj+3b!X4Da9}* zZSGfUVG*`m*6S^@cg?b1ACVV8snZ4o9wTV6+K z@PC@Il0o72%%1K13Q4mR+$SqV>dVK@J;}C#btS{xPJXb7=xPcg_4Tl*Nr9WQfJMP` z?$X6`v-y`UnOn%O5WD$oBqJkB{A`8GljEZ0CVzpaa;g6p!vGi&tvJyG24V=%e9xMMK;4^FT!DvfywmBYqS?72ph|KAm zvvtlrAQYS{IQQOU!5B$K*U8#3`QiF=RawTelLg=T>0dWG2&(*lLSB}VJZ*q8*c=3 zUBWX;CeGONm`BUeGkfaV-M8+2XOp#@3j_1!&6~V6O>gp(G@;F3(>RznWvydobegR##f`-uxGY{WPAp!TJXeo@^3DhopcU^TH2B}o zSjnJpV`k5Geuem13NDjXBlT6I=ALBRz`BxQZYMw3I5ahLEtW2RX*5|oQp(n-w^U^5 zl1zr)G7$x)AO$QMQ{aX#U{P?JyL9o~Z2qN7<`(iRL~Xth$;ikOGh5-p*$tu+ zORr|Ko?NiOv-PUag;^F$ufAk$y}FXMwH&BIAX=S~d$L8eDogh)um&CenAudaV3|fY0>FN1`nandf-yWt!uWAULOc&ZarHfsk)5-`v}C5>~X9czJoX7SGUR zU$L_)bV;#geAtI1AE(KBG5Nweb5^pnR<7lGeUfp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