5 Commits

Author SHA1 Message Date
tacoguy7765093
c468e37280 deconf (#12074) 2025-12-07 16:35:15 +01:00
Kashargul
8fce7287d6 Merge branch 'master' into upstream-merge-18789 2025-12-07 16:13:08 +01:00
chompstation-ci[bot]
50d9481fa2 Automatic changelog compile [ci skip] 2025-12-07 01:38:29 +00:00
CHOMPStation2StaffMirrorBot
57a6b7a3d8 repaths casino grenades, cleans code slightly 2025-11-26 01:45:16 +00:00
tacoguy7765093
78ab26a6a9 repaths casino grenades, cleans code slightly (#18789)
* icon and base code change

* removes _vr, removed dupes

* if flash
2025-11-26 01:45:16 +00:00
10 changed files with 117 additions and 91 deletions

View File

@@ -8,6 +8,7 @@
var/banglet = 0
var/spawner_type = null // must be an object path
var/deliveryamt = 1 // amount of type to deliver
var/flash = TRUE //Will the grenade flash on detonation?
// Detonate now just handles the two loops that query for people in lockers and people who can see it.
/obj/item/grenade/spawnergrenade/detonate()
@@ -16,9 +17,10 @@
// Make a quick flash
var/turf/T = get_turf(src)
playsound(src, 'sound/effects/phasein.ogg', 100, 1)
for(var/mob/living/carbon/human/M in viewers(T, null))
if(M:eyecheck() <= 0)
M.flash_eyes()
if(flash)
for(var/mob/living/carbon/human/M in viewers(T, null))
if(M.eyecheck() <= 0)
M.flash_eyes()
// Spawn some hostile syndicate critters
for(var/i=1, i<=deliveryamt, i++)
@@ -77,3 +79,97 @@
throw_range = 4
w_class = ITEMSIZE_LARGE
deliveryamt = 6
/obj/item/grenade/spawnergrenade/manhacks/station/locked
desc = "It is set to detonate in 5 seconds. It will deploy three weaponized survey drones. This one has a safety interlock that prevents release if used while in proximity to the facility."
req_access = list(ACCESS_ARMORY) //for toggling safety
var/locked = 1
/obj/item/grenade/spawnergrenade/manhacks/station/locked/detonate()
if(locked)
var/turf/T = get_turf(src)
if(T.z in using_map.station_levels)
icon_state = initial(icon_state)
active = 0
return 0
return ..()
/obj/item/grenade/spawnergrenade/manhacks/station/locked/attackby(obj/item/I, mob/user)
var/obj/item/card/id/id = I.GetID()
if(istype(id))
if(check_access(id))
locked = !locked
to_chat(user, span_warning("You [locked ? "enable" : "disable"] the safety lock on \the [src]."))
else
to_chat(user, span_warning("Access denied."))
user.visible_message(span_notice("[user] swipes \the [I] against \the [src]."))
else
return ..()
/obj/item/grenade/spawnergrenade/manhacks/station/locked/emag_act(var/remaining_charges,var/mob/user)
..()
locked = !locked
to_chat(user, span_warning("You [locked ? "enable" : "disable"] the safety lock on \the [src]!"))
// Generic creature spawner grenades for loadout.
/obj/item/grenade/spawnergrenade/loadout
name = "Creature Container (Cat)"
desc = "It is set to detonate in 5 seconds. It will release a cat won from the grenade!"
icon = 'icons/obj/casino.dmi'
icon_state = "generic_delivery"
flash = FALSE
/obj/item/grenade/spawnergrenade/loadout/penguin
desc = "It is set to detonate in 5 seconds. It will release a penguin from the grenade!"
name = "Creature Container (Penguin)"
spawner_type = /mob/living/simple_mob/animal/passive/penguin
/obj/item/grenade/spawnergrenade/loadout/chicken
desc = "It is set to detonate in 5 seconds. It will release a chicken from the grenade!"
name = "Creature Container (Chicken)"
spawner_type = /mob/living/simple_mob/animal/passive/chicken
/obj/item/grenade/spawnergrenade/loadout/cow
desc = "It is set to detonate in 5 seconds. It will release a cow from the grenade!"
name = "Creature Container (Cow)"
spawner_type = /mob/living/simple_mob/animal/passive/cow
/obj/item/grenade/spawnergrenade/loadout/corgi
desc = "It is set to detonate in 5 seconds. It will release a corgi from the grenade!"
name = "Creature Container (Corgi)"
spawner_type = /mob/living/simple_mob/animal/passive/dog/corgi
/obj/item/grenade/spawnergrenade/loadout/fox
desc = "It is set to detonate in 5 seconds. It will release a fox from the grenade!"
name = "Creature Container (Fox)"
spawner_type = /mob/living/simple_mob/animal/passive/fox
/obj/item/grenade/spawnergrenade/loadout/fennec
desc = "It is set to detonate in 5 seconds. It will release a fennec from the grenade!"
name = "Creature Container (Fennec)"
spawner_type = /mob/living/simple_mob/vore/fennec
/obj/item/grenade/spawnergrenade/loadout/snake
desc = "It is set to detonate in 5 seconds. It will release a snake from the grenade!"
name = "Creature Container (Snake)"
spawner_type = /mob/living/simple_mob/animal/passive/snake
/obj/item/grenade/spawnergrenade/loadout/redpanda
desc = "It is set to detonate in 5 seconds. It will release a red panda from the grenade!"
name = "Creature Container (Red panda)"
spawner_type = /mob/living/simple_mob/vore/redpanda
/obj/item/grenade/spawnergrenade/loadout/otie
desc = "It is set to detonate in 5 seconds. It will release a otie from the grenade!"
name = "Creature Container (Otie)"
spawner_type = /mob/living/simple_mob/vore/otie/friendly
/obj/item/grenade/spawnergrenade/loadout/goldcrest
desc = "It is set to detonate in 5 seconds. It will release a bird from the grenade!"
name = "Creature Container (Bird)"
spawner_type = /mob/living/simple_mob/animal/passive/bird/goldcrest
/obj/item/grenade/spawnergrenade/loadout/teppi
desc = "It is set to detonate in 5 seconds. It will release a teppi from the grenade!"
name = "Creature Container (Teppi)"
spawner_type = /mob/living/simple_mob/vore/alienanimals/teppi

View File

@@ -1,30 +0,0 @@
/obj/item/grenade/spawnergrenade/manhacks/station/locked
desc = "It is set to detonate in 5 seconds. It will deploy three weaponized survey drones. This one has a safety interlock that prevents release if used while in proximity to the facility."
req_access = list(ACCESS_ARMORY) //for toggling safety
var/locked = 1
/obj/item/grenade/spawnergrenade/manhacks/station/locked/detonate()
if(locked)
var/turf/T = get_turf(src)
if(T.z in using_map.station_levels)
icon_state = initial(icon_state)
active = 0
return 0
return ..()
/obj/item/grenade/spawnergrenade/manhacks/station/locked/attackby(obj/item/I, mob/user)
var/obj/item/card/id/id = I.GetID()
if(istype(id))
if(check_access(id))
locked = !locked
to_chat(user, span_warning("You [locked ? "enable" : "disable"] the safety lock on \the [src]."))
else
to_chat(user, span_warning("Access denied."))
user.visible_message(span_notice("[user] swipes \the [I] against \the [src]."))
else
return ..()
/obj/item/grenade/spawnergrenade/manhacks/station/locked/emag_act(var/remaining_charges,var/mob/user)
..()
locked = !locked
to_chat(user, span_warning("You [locked ? "enable" : "disable"] the safety lock on \the [src]!"))

View File

@@ -7,21 +7,6 @@
origin_tech = list(TECH_MATERIAL = 2, TECH_MAGNET = 2)
spawner_type = /mob/living/simple_mob/animal/passive/cat
// 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
//
// Creatures
//

View File

@@ -1,6 +0,0 @@
author: "FluffMedic"
delete-after: True
changes:
- rscadd: "Two new Tyr weapons"
- balance: "Tyr gun buffed, Tyr foes retuned a fair bit to favour longer fights"
- bugfix: "Shield boss stops spamming re-shielding"

View File

@@ -1,4 +0,0 @@
author: "CHOMPStation2StaffMirrorBot"
delete-after: True
changes:
- code_imp: "update dependencies"

View File

@@ -1,9 +0,0 @@
author: "Diana"
delete-after: True
changes:
- qol: "You can now alt-shift click someone to open the inventory menu (as if you drag-dropped them onto yourself)"
- qol: "Admins can now tag datums via ctrl-middle click"
- refactor: "Honey I refactored click code!"
- code_imp: "Cleans up click code."
- code_imp: "Adds framework for allowing objects to ignore ctrl click and not allowed to be dragged"
- bugfix: "Fixes a bug where joining in the game would cause 180 topic calls to be made (still happens) causing you to be rate limited."

View File

@@ -42,3 +42,20 @@
Will:
- bugfix: Phased shadekin are no longer knocked down or thrown when a shuttle they
are inside of moves.
2025-12-07:
CHOMPStation2StaffMirrorBot:
- code_imp: update dependencies
Diana:
- qol: You can now alt-shift click someone to open the inventory menu (as if you
drag-dropped them onto yourself)
- qol: Admins can now tag datums via ctrl-middle click
- refactor: Honey I refactored click code!
- code_imp: Cleans up click code.
- code_imp: Adds framework for allowing objects to ignore ctrl click and not allowed
to be dragged
- bugfix: Fixes a bug where joining in the game would cause 180 topic calls to be
made (still happens) causing you to be rate limited.
FluffMedic:
- rscadd: Two new Tyr weapons
- balance: Tyr gun buffed, Tyr foes retuned a fair bit to favour longer fights
- bugfix: Shield boss stops spamming re-shielding

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 79 KiB

View File

@@ -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)"

View File

@@ -1793,7 +1793,6 @@
#include "code\game\objects\items\weapons\grenades\projectile.dm"
#include "code\game\objects\items\weapons\grenades\smokebomb.dm"
#include "code\game\objects\items\weapons\grenades\spawnergrenade.dm"
#include "code\game\objects\items\weapons\grenades\spawnergrenade_vr.dm"
#include "code\game\objects\items\weapons\grenades\supermatter.dm"
#include "code\game\objects\items\weapons\id cards\cards.dm"
#include "code\game\objects\items\weapons\id cards\cards_vr.dm"