stray_cargo
Spawns a cargo pod containing a random cargo supply pack on a random area of the station
Vars | |
announceChance | Randomly picked area |
---|---|
stray_spawnable_supply_packs | List of possible supply packs dropped in the pod, if empty picks from the cargo list |
Procs | |
announce | List of default spawnable supply packs, filtered from the cargo list |
find_event_area | Picks an area that wouldn't risk critical damage if hit by a pod explosion |
make_pod | Handles the creation of the pod, in case it needs to be modified beforehand |
setup | Tries to find a valid area, throws an error if none are found Also randomizes the start timer |
start | Spawns a random supply pack, puts it in a pod, and spawns it on a random tile of the selected area |
Var Details
announceChance
Randomly picked area
stray_spawnable_supply_packs
List of possible supply packs dropped in the pod, if empty picks from the cargo list
Proc Details
announce
List of default spawnable supply packs, filtered from the cargo list
find_event_area
Picks an area that wouldn't risk critical damage if hit by a pod explosion
make_pod
Handles the creation of the pod, in case it needs to be modified beforehand
setup
Tries to find a valid area, throws an error if none are found Also randomizes the start timer
start
Spawns a random supply pack, puts it in a pod, and spawns it on a random tile of the selected area