NPC: Fix small bug due to actions API change
This commit is contained in:
parent
5d2c820d88
commit
7c3801a5ce
@ -43,7 +43,7 @@ __Phase 3__: Trading: In progress
|
|||||||
- [ ] NPCs will also be able to offer "services", for example, repairing tools, by receiving an item and a payment, and then returning a specific item.
|
- [ ] NPCs will also be able to offer "services", for example, repairing tools, by receiving an item and a payment, and then returning a specific item.
|
||||||
|
|
||||||
__Phase 4__: Actions: Complete
|
__Phase 4__: Actions: Complete
|
||||||
- [x] NPCs should be able to use chests, furnaces, doors, beds and sit on "sittable" nodes (in progress)
|
- [x] NPCs should be able to use chests, furnaces, doors, beds and sit on "sittable" nodes
|
||||||
- [x] NPCs should be able to walk to specific places. Should also be able to open doors, fence gates and any other type of openable node while going to a place.
|
- [x] NPCs should be able to walk to specific places. Should also be able to open doors, fence gates and any other type of openable node while going to a place.
|
||||||
- [x] NPCs should have the ability to identify nodes that belong to him/her, and recall them/
|
- [x] NPCs should have the ability to identify nodes that belong to him/her, and recall them/
|
||||||
|
|
||||||
|
2
npc.lua
2
npc.lua
@ -281,7 +281,7 @@ function npc.lock_actions(self)
|
|||||||
pos.y = self.object:getpos().y
|
pos.y = self.object:getpos().y
|
||||||
end
|
end
|
||||||
-- Stop NPC
|
-- Stop NPC
|
||||||
npc.actions.stand({pos=pos})
|
npc.actions.stand(self, {pos=pos})
|
||||||
-- Avoid all timer execution
|
-- Avoid all timer execution
|
||||||
self.actions.action_timer_lock = true
|
self.actions.action_timer_lock = true
|
||||||
-- Reset timer so that it has some time after interaction is done
|
-- Reset timer so that it has some time after interaction is done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user