mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-26 17:11:52 +00:00
They don't share a common ancestor type so they were relying on the secbot having identical vars to the ed209, this is brittle and ugly, so instead a bitflag of criteria is passed through the mob assess_threat proc so it can choose how to react to each criteria As well as that, the weaponscheck proc used by the bots is now passed through as a callback, more things can now implement their own weapons checking for threat assessment if they need This means more things can now utilise the assess_threat proc if they so wanted to, as they no longer need to map 1 -> 1 to the ed209's vars Also fixed a runtime where the secbot didn't pass through itself to the assess_threat proc (what I originally wanted to fix)