Relationships: Improved marriage dialogue.

When relationships change phase, dialogues are now updated as well.
Data: Added placeholder dialogues for both sexes and all phases.
This commit is contained in:
zorman2000
2016-12-04 15:24:32 -05:00
parent a3b463ff26
commit 01699d1d4a
2 changed files with 168 additions and 0 deletions

View File

@ -375,8 +375,15 @@ local function update_relationship(self, clicker_name, modifier)
local current_phase = self.relationships[i].phase
self.relationships[i].phase = npc.get_relationship_phase_by_points(self.relationships[i].points)
if current_phase ~= self.relationships[i].phase then
-- Re-select favorite items per new phase
self.gift_data.favorite_items =
select_random_favorite_items(self.sex, self.relationships[i].phase)
-- Re-select dialogues per new
self.dialogues =
npc.dialogue.select_random_dialogues_for_npc(self.sex,
self.relationships[i].phase,
self.gift_data.favorite_items,
self.gift_data.disliked_items)
return true
end
return false