mining_mob_respawner 
Respawns a mob if it's died and there's a storm
Vars | |
| invalid_mobs | List of things we want to remove from our spawner list before using it |
|---|---|
| max_delay | Max time from storm to spawn a mob |
| min_delay | Min time from storm to spawn a mob |
| our_mob | Our currently spawned mob |
| outdoor_only | Do we check the outdoorsness of our spawn tile? |
| valid_mobs | Weighted list of things we can spawn |
| valid_weather | Types of storm that respawn mobs, we might as well make it static because it's only used on init so there's no point in it supporting VV edits |
Procs | |
| get_spawned_mob | Intercept the next mob spawned on the turf, because we might have spawned an object which spawns a mob instead |
| make_mob | Make a guy and subscribe to see if they die |
| on_storm_event | When a storm hits & if our mob is dead, make a new one |
| play_spawn_animation | Play an awesome animation |
| register_spawn | Record something as our spawn, so we don't need to spawn something else |
| setup | Let the map generator system pass us a list of mobs |
Var Details
invalid_mobs 
List of things we want to remove from our spawner list before using it
max_delay 
Max time from storm to spawn a mob
min_delay 
Min time from storm to spawn a mob
our_mob 
Our currently spawned mob
outdoor_only 
Do we check the outdoorsness of our spawn tile?
valid_mobs 
Weighted list of things we can spawn
valid_weather 
Types of storm that respawn mobs, we might as well make it static because it's only used on init so there's no point in it supporting VV edits
Proc Details
get_spawned_mob
Intercept the next mob spawned on the turf, because we might have spawned an object which spawns a mob instead
make_mob
Make a guy and subscribe to see if they die
on_storm_event
When a storm hits & if our mob is dead, make a new one
play_spawn_animation
Play an awesome animation
register_spawn
Record something as our spawn, so we don't need to spawn something else
setup
Let the map generator system pass us a list of mobs