[MIRROR] repaths casino grenades, cleans code slightly (#12034)

Co-authored-by: tacoguy7765093 <karokaromaro@gmail.com>
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-12-10 01:45:13 +01:00
committed by GitHub
co-authored by tacoguy7765093 Kashargul
parent 6dff8798c3
commit f7914b6cf6
6 changed files with 100 additions and 72 deletions
@@ -1,29 +1,7 @@
/obj/item/grenade/spawnergrenade/casino
/obj/item/grenade/spawnergrenade/casino/goose
desc = "It is set to detonate in 5 seconds. It will release a goose that has been won from the golden goose casino!"
name = "Casino Creature Container (Goose)"
icon = 'icons/obj/grenade_ch.dmi'
icon_state = "casino"
item_state = "casino"
origin_tech = list(TECH_MATERIAL = 2, TECH_MAGNET = 2)
spawner_type = /mob/living/simple_mob/animal/space/goose/domesticated
// Detonate now just handles the two loops that query for people in lockers and people who can see it.
/obj/item/grenade/spawnergrenade/casino/detonate()
if(spawner_type && deliveryamt)
var/turf/T = get_turf(src)
playsound(T, 'sound/effects/phasein.ogg', 100, 1)
for(var/i=1, i<=deliveryamt, i++)
var/atom/movable/x = new spawner_type(T)
if(prob(50))
for(var/j = 1, j <= rand(1, 3), j++)
step(x, pick(NORTH,SOUTH,EAST,WEST))
qdel(src)
return
/obj/item/grenade/spawnergrenade/casino/goat
desc = "It is set to detonate in 5 seconds. It will release a goat that has been won from the golden goose casino!"
name = "Casino Creature Container (Goat)"