randomizes whiteship pirate placement (#28900)

* randomizes whiteship pirate placement

* one guaranteed melee pirate
This commit is contained in:
warriorstar-orion
2025-04-08 13:38:31 +00:00
committed by GitHub
parent a79f3ea49f
commit 1ce3c60969
5 changed files with 42 additions and 4 deletions
@@ -115,3 +115,10 @@
/obj/item/flashlight/flare/glowstick/yellow,
/obj/item/flashlight/flare/glowstick/pink,
)
/obj/effect/spawner/random/space_pirate
name = "random space pirate spawner"
loot = list(
/mob/living/simple_animal/hostile/pirate,
/mob/living/simple_animal/hostile/pirate/ranged,
)
@@ -0,0 +1,15 @@
/datum/spawn_pool/whiteship_mobs
id = "whiteship_mobs_spawn_pool"
available_points = 0
/obj/effect/spawner/random/pool/whiteship_mob
icon = 'icons/effects/random_spawners.dmi'
icon_state = "giftbox"
spawn_pool_id = "whiteship_mobs_spawn_pool"
unique_picks = TRUE
guaranteed = TRUE
point_value = 0
loot = list(
/mob/living/simple_animal/hostile/pirate,
/obj/effect/spawner/random/space_pirate,
)
@@ -26,6 +26,7 @@
available_points -= points
/datum/spawn_pool/proc/process_guaranteed_spawners()
shuffle_inplace(guaranteed_spawners)
while(length(guaranteed_spawners))
var/obj/effect/spawner/random/pool/spawner = guaranteed_spawners[length(guaranteed_spawners)]
guaranteed_spawners.len--