mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
randomizes whiteship pirate placement (#28900)
* randomizes whiteship pirate placement * one guaranteed melee pirate
This commit is contained in:
@@ -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--
|
||||
|
||||
Reference in New Issue
Block a user