mirror of
https://github.com/badvision/jace.git
synced 2024-11-24 15:30:51 +00:00
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:
parent
1f2eff2e42
commit
f7ca7c198c
@ -175,10 +175,13 @@ public class WolfensteinCheats extends Cheats {
|
|||||||
private void allDead(RAMEvent evt) {
|
private void allDead(RAMEvent evt) {
|
||||||
int type = evt.getNewValue();
|
int type = evt.getNewValue();
|
||||||
if (_isBeyondWolfenstein) {
|
if (_isBeyondWolfenstein) {
|
||||||
if (type == GUARD) {
|
int location = computer.getMemory().readRaw(evt.getAddress() + 1);
|
||||||
evt.setNewValue(CORPSE);
|
if (!isFinalRoom() || location < 32) {
|
||||||
} else if (type == SEATED_GUARD && !isFinalRoom()) {
|
if (type == GUARD) {
|
||||||
computer.getMemory().write(evt.getAddress() + 4, (byte) 4, false, false);
|
evt.setNewValue(CORPSE);
|
||||||
|
} else if (type == SEATED_GUARD) {
|
||||||
|
computer.getMemory().write(evt.getAddress() + 4, (byte) 4, false, false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (type == GUARD || type == SS) {
|
if (type == GUARD || type == SS) {
|
||||||
|
Loading…
Reference in New Issue
Block a user