From 6141af11aa58e012838ebc1170960bcafb80ff6d Mon Sep 17 00:00:00 2001 From: Hector Franqui Date: Tue, 27 Jun 2017 18:39:13 -0400 Subject: [PATCH] Relationships: Increase gift timer and relationship decrease timer to more usual values. Fixed small bug on giving unliked items. --- relationships.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/relationships.lua b/relationships.lua index d4dd02f..9bd1301 100644 --- a/relationships.lua +++ b/relationships.lua @@ -27,8 +27,8 @@ npc.relationships = {} npc.relationships.ITEM_GIFT_EFFECT = 2.5 -- Expected values for these are 720 each respectively -npc.relationships.GIFT_TIMER_INTERVAL = 2 -npc.relationships.RELATIONSHIP_DECREASE_TIMER_INTERVAL = 60 +npc.relationships.GIFT_TIMER_INTERVAL = 360 +npc.relationships.RELATIONSHIP_DECREASE_TIMER_INTERVAL = 720 npc.relationships.RELATIONSHIP_PHASE = {} -- Define phases @@ -360,7 +360,7 @@ local function show_receive_gift_reaction(self, item_name, modifier, clicker_nam effect({x = pos.x, y = pos.y + 1, z = pos.z}, 8, "default_item_smoke.png") --minetest.log("Item name: "..item_name..", sex: "..self.sex) local message_to_send = npc.relationships.get_response_for_disliked_item(item_name, self.sex) - npc.name(self.npc_name, clicker_name, message_to_send) + npc.chat(self.npc_name, clicker_name, message_to_send) end end