From: MegaBrutal Date: Sun, 16 Sep 2018 00:15:00 +0000 (+0200) Subject: Minor changes to Saiki X-Git-Tag: early-release~9 X-Git-Url: http://git.megabrutal.com/?p=wgj58.git;a=commitdiff_plain;h=cf792c3120fd82f3d5c39b1638b2b6b4bb8ae241 Minor changes to Saiki Added/changed some dialogue; reduced interaction distance. modified: wgj58.js --- diff --git a/wgj58.js b/wgj58.js index f14b637..ad6bbf8 100644 --- a/wgj58.js +++ b/wgj58.js @@ -430,6 +430,7 @@ class NPC_Saiki extends GameNPC { { actor: this, text: "Hmm..." }, { actor: this, text: "I guess it didn't work." }, { actor: this, text: "So do you want to know what I think about this?" }, + { actor: this, text: "..." }, { actor: this, text: "IT'S BRILLIANT!!!" }, { actor: this, text: "You know, it really sparkled my artistic vision! Now I must draw a pig with its legs rooted into the ground!" }, { actor: logic.player, text: "That's gross. Poor pig." }, @@ -439,7 +440,12 @@ class NPC_Saiki extends GameNPC { //this.offscreenTeleportation(new Phaser.Point(logic.carlos.x + 128, logic.carlos.y), this.tpdone); } else { - logic.gameinterface.talk(new Dialogue( [ { actor: this, text: "I've found an orchestrated rendition of „Potential for Anything”. You'll have to check it out, it's breathtaking!" } ] )); + if (Phaser.Math.random() < 0.5) { + logic.gameinterface.talk(new Dialogue( [ { actor: this, text: "I've found an orchestrated rendition of „Potential for Anything”. You'll have to check it out, it's breathtaking!" } ] )); + } + else { + logic.gameinterface.talk(new Dialogue( [ { actor: this, text: "I don't like that our department is green. The blue one, where Carlos works, looks much better." } ] )); + } } } } @@ -468,7 +474,7 @@ class NPC_Saiki extends GameNPC { { actor: this, text: "..." } ] )); break; default: - logic.gameinterface.talk(new Dialogue( [ { actor: this, text: "Don't you have anything better to do?" } ] )); + logic.gameinterface.talk(new Dialogue( [ { actor: this, text: "Don't you have anything better to do, Carlos?" } ] )); } } super.actionTalk(); @@ -701,7 +707,7 @@ class GameLogic { this.carlos = newChar; break; case 'saiki': - newChar = new NPC_Saiki(object.x, object.y, 'saiki', "Saiki", "Saiki Ytpme", 200); + newChar = new NPC_Saiki(object.x, object.y, 'saiki', "Saiki", "Saiki Ytpme", 150); this.saiki = newChar; break; default: