mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-09 22:25:46 +01:00
21 lines
549 B
Plaintext
21 lines
549 B
Plaintext
#define TRAIT_CHANCE_DELTA 25
|
|
|
|
/obj/effect/spawner/random/maintenance
|
|
name = "Maintenance loot spawner"
|
|
spawn_loot_chance = 65
|
|
spawn_random_offset_max_pixels = 8
|
|
record_spawn = TRUE
|
|
|
|
/obj/effect/spawner/random/maintenance/Initialize(mapload)
|
|
loot = GLOB.maintenance_loot_tables
|
|
spawn_loot_count = rand(2, 4)
|
|
|
|
if(HAS_TRAIT(SSstation, STATION_TRAIT_EMPTY_MAINT))
|
|
spawn_loot_chance -= TRAIT_CHANCE_DELTA
|
|
else if(HAS_TRAIT(SSstation, STATION_TRAIT_FILLED_MAINT))
|
|
spawn_loot_chance += TRAIT_CHANCE_DELTA
|
|
|
|
. = ..()
|
|
|
|
#undef TRAIT_CHANCE_DELTA
|