All step code is now part of the driver engine: - sound steps - factor accounting - factor-based switching - animation step handling. Moreover, there is no more local factor state subtable, and factors need to return or pass factordata to the driver method. Factordata is only passed to the .start() method as well, but that can then store the needed data into the entity_ai_state as needed by the driver itself. This still has an issue with entity animation sequence ends, as far as I can see, in the sheep eat driver. This will need further work. finders, drivers and factors are now all in separate files. The sheep script has been partially cleaned up to account for the differences Many asserts were added. We need to keep these until things become more stable, and possibly add a ton more of them to make sure we're not passing garbage. A luacheck file is added to keep things sane going forward.
17 lines
269 B
Lua
17 lines
269 B
Lua
unused_args = false
|
|
allow_defined_top = true
|
|
|
|
read_globals = {
|
|
"DIR_DELIM",
|
|
"minetest", "core",
|
|
"dump",
|
|
"vector", "nodeupdate",
|
|
"VoxelManip", "VoxelArea",
|
|
"PseudoRandom", "ItemStack",
|
|
"intllib",
|
|
"default",
|
|
"unpack",
|
|
table = { fields = { "copy", "getn" } }
|
|
}
|
|
|