X-Git-Url: http://git.megabrutal.com/?p=wgj58.git;a=blobdiff_plain;f=wgj58.js;h=2c503f0829a15065ad0859591ef4640b72353a0f;hp=6ec551c4b34c71cdb37dffb4dba47ad5754d2365;hb=4d2391f1beff1a3168bc19d05ab2c5913b63d588;hpb=1db17bd6327be483e60908d8441ca3ec15296d86

diff --git a/wgj58.js b/wgj58.js
index 6ec551c..2c503f0 100644
--- a/wgj58.js
+++ b/wgj58.js
@@ -172,7 +172,7 @@ class GameNPC extends Phaser.Sprite {
 		this.fullname = fullname;
 		this.interaction_distance = interaction_distance;
 		this.interactable = false;
-		this.talkcount = 0;
+		this.resetTalk();
 		this.happy = false;
 	}
 
@@ -218,6 +218,10 @@ class GameNPC extends Phaser.Sprite {
 		return true;
 	}
 
+	resetTalk() {
+		this.talkcount = 0;
+	}
+
 	makeHappy() {
 		this.happy = true;
 		console.log(this.shortname, "is happy!");