/tg/ Station 13 - Modules - TypesVar Details - Proc Details

ensure_subtree_operational_datum

Unit Test that ensure that if we add a specific planning subtree to a basic mob's planning tree, that we also have the operational datum needed for it (component/element). This can be extended to other "mandatory" operational datums for certain subtrees to work.

Vars

testable_mobsAssociated list of mobs that we need to test this on. Key is the typepath of the mob, value is a list of the planning subtree and the operational datums that are required for it.

Procs

gather_testable_mobsFirst, look for all mobs that have a planning subtree that requires an element, then add it to the list for stuff to test afterwards. Done like this to not have one mumbo proc that's hard to read.
test_applicable_mobsThen, test the mobs that we've found

Var Details

testable_mobs

Associated list of mobs that we need to test this on. Key is the typepath of the mob, value is a list of the planning subtree and the operational datums that are required for it.

Proc Details

gather_testable_mobs

First, look for all mobs that have a planning subtree that requires an element, then add it to the list for stuff to test afterwards. Done like this to not have one mumbo proc that's hard to read.

test_applicable_mobs

Then, test the mobs that we've found