Wolfenstein cheat module updated to keep the big boss alive so you can drop him yourself, if you so choose.

This commit is contained in:
Brendan Robert 2018-05-26 01:00:48 -05:00
parent 1f2eff2e42
commit f7ca7c198c
1 changed files with 7 additions and 4 deletions

View File

@ -175,10 +175,13 @@ public class WolfensteinCheats extends Cheats {
private void allDead(RAMEvent evt) {
int type = evt.getNewValue();
if (_isBeyondWolfenstein) {
if (type == GUARD) {
evt.setNewValue(CORPSE);
} else if (type == SEATED_GUARD && !isFinalRoom()) {
computer.getMemory().write(evt.getAddress() + 4, (byte) 4, false, false);
int location = computer.getMemory().readRaw(evt.getAddress() + 1);
if (!isFinalRoom() || location < 32) {
if (type == GUARD) {
evt.setNewValue(CORPSE);
} else if (type == SEATED_GUARD) {
computer.getMemory().write(evt.getAddress() + 4, (byte) 4, false, false);
}
}
} else {
if (type == GUARD || type == SS) {