X-Git-Url: http://git.megabrutal.com/?p=wgj58.git;a=blobdiff_plain;f=wgj58.js;fp=wgj58.js;h=a50e494c279fa916ccdf27dfa76f50cd8857c2ef;hp=78cd42b4726f0c8bbda38238777fb2584f2b5f16;hb=411f2853d9a619185ca5d7cdac63e82f0c56415c;hpb=a5638053c6184d5a40f2c801a25362abc9a85f9f

diff --git a/wgj58.js b/wgj58.js
index 78cd42b..a50e494 100644
--- a/wgj58.js
+++ b/wgj58.js
@@ -172,11 +172,13 @@ class GameNPC extends Phaser.Sprite {
 		this.interaction_distance = interaction_distance;
 		this.interactable = false;
 		this.talkcount = 0;
+		this.happy = false;
 	}
 
 	kill() {
 		super.kill();
 		this.exists = false;
+		this.happy = false;			// Dead people are not happy.
 	}
 
 	update() {
@@ -215,6 +217,11 @@ class GameNPC extends Phaser.Sprite {
 		return true;
 	}
 
+	makeHappy() {
+		this.happy = true;
+		console.log(this.shortname, "is happy!");
+	}
+
 	offscreenTeleportation(newPosition, callback, callbackValue) {
 		this.teleport_instructions = { newPosition: newPosition, callback: callback, callbackValue: callbackValue };
 		console.log("Offscreen teleport request registered:", this.teleport_instructions);
@@ -508,6 +515,8 @@ class NPC_Saiki extends GameNPC {
 
 	tpDone(value) {
 		console.log("Woot-woot! Teleport complete:", value);
+		value.makeHappy();
+		logic.carlos.makeHappy();
 	}
 }