mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-26 09:03:37 +00:00
## About The Pull Request idled basic mobs now instead of completely shutting off, will be delegated to a much lower priority subsystem to do their planning. ## Why It's Good For The Game Mobs can now perform their functions without needing players to be nearby in a way that doesnt starve other subsystems. this allows animals such as goldgrubs to eat ores, lobstrosities to fish, seedlings to tend plants (and many others) without needing any players nearby ## Changelog 🆑 fix: idle basic mobs will now plan behaviors rather than completely shut down /🆑
13 lines
316 B
Plaintext
13 lines
316 B
Plaintext
///all basic ai subtrees
|
|
GLOBAL_LIST_EMPTY(ai_subtrees)
|
|
|
|
///basic ai controllers based on status
|
|
GLOBAL_LIST_INIT(ai_controllers_by_status, list(
|
|
AI_STATUS_ON = list(),
|
|
AI_STATUS_OFF = list(),
|
|
AI_STATUS_IDLE = list(),
|
|
))
|
|
|
|
///basic ai controllers based on their z level
|
|
GLOBAL_LIST_EMPTY(ai_controllers_by_zlevel)
|