illusion 
Pretty genericky mob that just manifests itself as any sort of input living mob, used in several ways Has a basic AI that helps it attack targets that are assigned to it, but there's more flavor in the subtypes.
Vars | |
| multiply_chance | Prob of getting a clone on attack |
|---|---|
| parent_mob_ref | Weakref to what we're copying |
| target_key | The blackboard key we want to set for our target |
Procs | |
| full_setup | Full setup for illusion mobs to lessen code duplication in the individual files. |
| mock_as | Does the actual work of setting up the illusion's appearance and some other functionality. |
| on_damage_taken | Signal handler for when we are attacked. |
| on_preattack | Signal handler for when we attack something. Hook for replicating on standard behavior, with additional behavior on subtypes. |
| replicate | Actually perform the replication of this illusion. |
| set_faction | Sets the faction of the illusion |
| set_target | Gives the illusion a target to focus on in whatever behavior it wants to engage as. |
| try_replicate | See if we are able to replicate, and if so, do it. |
Var Details
multiply_chance 
Prob of getting a clone on attack
parent_mob_ref 
Weakref to what we're copying
target_key 
The blackboard key we want to set for our target
Proc Details
full_setup
Full setup for illusion mobs to lessen code duplication in the individual files.
mock_as
Does the actual work of setting up the illusion's appearance and some other functionality.
on_damage_taken
Signal handler for when we are attacked.
on_preattack
Signal handler for when we attack something. Hook for replicating on standard behavior, with additional behavior on subtypes.
replicate
Actually perform the replication of this illusion.
set_faction
Sets the faction of the illusion
set_target
Gives the illusion a target to focus on in whatever behavior it wants to engage as.
try_replicate
See if we are able to replicate, and if so, do it.