Peter should check for Saiki alive condition
authorMegaBrutal <code+git@megabrutal.com>
Tue, 2 Oct 2018 19:40:00 +0000 (21:40 +0200)
committerMegaBrutal <code+git@megabrutal.com>
Tue, 2 Oct 2018 19:40:00 +0000 (21:40 +0200)
Due to a mistake, Peter was checking for Carlos being alive instead
of Saiki. At this point it didn't matter because Carlos dies when
Saiki dies, but I might change this behaviour later, and I don't
want headaches in the future.

modified:   wgj58.js

wgj58.js

index 42f0485de13536a5f19d35ba46c496e6741f782a..ff020d198ff8bf42da5df2d5ac1aa63d543f4dd2 100644 (file)
--- a/wgj58.js
+++ b/wgj58.js
@@ -528,7 +528,7 @@ class NPC_Saiki extends GameNPC {
 
 class NPC_Peter extends GameNPC {
        actionTalk() {
-               if (logic.carlos.alive) {
+               if (logic.saiki.alive) {
                        switch (this.talkcount) {
                                case 0:
                                        logic.gameinterface.talk(new Dialogue( [ { actor: logic.player, text: "Hi Peter! What's up?" },