lewd_gamer_31415
Member
- Oct 14, 2020
- 114
- 130
- 157
It looks like your Employee Role does not have the on_move function set. I would assume that is a side effect of loading a Role from a version before role->on_move was set for employees? No idea.A reroll on a fresh save and it all works.... so either I mistakenly resumed an old save, or something else I've done caused it to stop working. I'll keep monitoring it to see if it ever stops functioning at any point, otherwise can possibly assume it's something that save games affect.
In any event, you could add an on load fixup or change Role::run_move to this:
Code:
def run_move(self, the_person):
if self.on_move is not None:
self.on_move(the_person)
elif self.role_name == "Employee":
employee_on_move(the_person)