Space Station 13 - Nebula13 - Modules - TypesVar Details - Proc Details

loot_pile

Vars

allow_multiple_lootingIf true, the same person can loot multiple times. Mostly for debugging.
busyUsed so you can't spamclick to loot.
chance_nothingUnlucky people might need to loot multiple spots to find things.
chance_rareDitto, but for rare_loot list.
chance_uncommonProbability of pulling from the uncommon_loot list.
delete_on_depletionIf true, and if the loot gets depleted as above, the pile is deleted.
loot_depletionIf true, loot piles can be 'depleted' after a certain number of searches by different players, where no more loot can be obtained.
loot_leftWhen this reaches zero, and loot_depleted is true, you can't obtain anymore loot.
searched_byKeys that have searched this loot pile, with values of searched time.

Procs

get_common_lootReturns a list of generally less-than-useful junk and filler, at least for maint loot piles.
get_icon_states_to_useReturns a list of icon states the pile can choose from on initialization. If empty or null, it will stay the initial icon_state.
get_rare_lootReturns a list of really powerful, or at least unique items.
get_uncommon_lootReturns a list of some maybe actually useful items, usually the reason someone bothers looking inside.

Var Details

allow_multiple_looting

If true, the same person can loot multiple times. Mostly for debugging.

busy

Used so you can't spamclick to loot.

chance_nothing

Unlucky people might need to loot multiple spots to find things.

chance_rare

Ditto, but for rare_loot list.

chance_uncommon

Probability of pulling from the uncommon_loot list.

delete_on_depletion

If true, and if the loot gets depleted as above, the pile is deleted.

loot_depletion

If true, loot piles can be 'depleted' after a certain number of searches by different players, where no more loot can be obtained.

loot_left

When this reaches zero, and loot_depleted is true, you can't obtain anymore loot.

searched_by

Keys that have searched this loot pile, with values of searched time.

Proc Details

get_common_loot

Returns a list of generally less-than-useful junk and filler, at least for maint loot piles.

get_icon_states_to_use

Returns a list of icon states the pile can choose from on initialization. If empty or null, it will stay the initial icon_state.

get_rare_loot

Returns a list of really powerful, or at least unique items.

get_uncommon_loot

Returns a list of some maybe actually useful items, usually the reason someone bothers looking inside.