Actions: No longer have 'self' as part of the arguments object for each action. This caused an error with Lua serialization that crashed Minetest while the NPC was executing actions and it got unloaded (like exit game or mapblock unloaded).

This commit is contained in:
zorman2000
2017-01-19 20:42:46 -05:00
parent dd4d445b3a
commit 5d2c820d88
3 changed files with 52 additions and 63 deletions

View File

@ -42,7 +42,7 @@ __Phase 3__: Trading: In progress
- [ ] Dedicated traders are traders that, when talked to, always make buy and sell offers. They have a greater variety too.
- [ ] 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: Main functionality 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 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/