mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
[MIRROR] Ring/Watch Accessory Transfer (#9489)
Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
cc1e6f932e
commit
f7e9f8d12b
@@ -22,7 +22,7 @@
|
||||
/obj/item/toy/redbutton = 2,
|
||||
/obj/item/toy/gnome = 2,
|
||||
/obj/item/toy/AI = 2,
|
||||
/obj/item/clothing/gloves/ring/buzzer/toy = 2,
|
||||
/obj/item/clothing/gloves/ring/buzzer/toy = 2, // CHOMPAdd
|
||||
/obj/item/storage/box/handcuffs/fake = 2,
|
||||
/obj/item/toy/nuke = 2,
|
||||
/obj/item/toy/minigibber = 2,
|
||||
@@ -33,4 +33,4 @@
|
||||
/obj/item/toy/chainsaw = 1,
|
||||
/obj/random/miniature = 1,
|
||||
/obj/item/toy/snake_popper = 1
|
||||
)
|
||||
)
|
||||
|
||||
@@ -89,3 +89,32 @@
|
||||
playsound(user, teppi_noise, 10, 0)
|
||||
src.visible_message(span_notice("Gyooooooooh!"))
|
||||
return ..()
|
||||
|
||||
/*
|
||||
* Hand buzzer
|
||||
*/
|
||||
/obj/item/clothing/gloves/ring/buzzer/toy
|
||||
name = "steel ring"
|
||||
desc = "Torus shaped finger decoration. It has a small piece of metal on the palm-side."
|
||||
icon_state = "seal-signet"
|
||||
drop_sound = 'sound/items/drop/ring.ogg'
|
||||
|
||||
/obj/item/clothing/gloves/ring/buzzer/toy/Touch(var/atom/A, var/proximity)
|
||||
if(proximity && istype(usr, /mob/living/carbon/human))
|
||||
|
||||
return zap(usr, A, proximity)
|
||||
return 0
|
||||
|
||||
/obj/item/clothing/gloves/ring/buzzer/toy/zap(var/mob/living/carbon/human/user, var/atom/movable/target, var/proximity)
|
||||
. = FALSE
|
||||
if(user.a_intent == I_HELP && battery.percent() >= 50)
|
||||
if(isliving(target))
|
||||
var/mob/living/L = target
|
||||
|
||||
to_chat(L, span_warning("You feel a powerful shock!"))
|
||||
if(!.)
|
||||
playsound(L, 'sound/effects/sparks7.ogg', 40, 1)
|
||||
L.electrocute_act(battery.percent() * 0, src)
|
||||
return .
|
||||
|
||||
return 0
|
||||
|
||||
@@ -563,35 +563,6 @@
|
||||
/obj/item/toy/AI/proc/cooldownreset()
|
||||
cooldown = 0
|
||||
|
||||
/*
|
||||
* Hand buzzer
|
||||
*/
|
||||
/obj/item/clothing/gloves/ring/buzzer/toy
|
||||
name = "steel ring"
|
||||
desc = "Torus shaped finger decoration. It has a small piece of metal on the palm-side."
|
||||
icon_state = "seal-signet"
|
||||
drop_sound = 'sound/items/drop/ring.ogg'
|
||||
|
||||
/obj/item/clothing/gloves/ring/buzzer/toy/Touch(var/atom/A, var/proximity)
|
||||
if(proximity && istype(usr, /mob/living/carbon/human))
|
||||
|
||||
return zap(usr, A, proximity)
|
||||
return 0
|
||||
|
||||
/obj/item/clothing/gloves/ring/buzzer/toy/zap(var/mob/living/carbon/human/user, var/atom/movable/target, var/proximity)
|
||||
. = FALSE
|
||||
if(user.a_intent == I_HELP && battery.percent() >= 50)
|
||||
if(isliving(target))
|
||||
var/mob/living/L = target
|
||||
|
||||
to_chat(L, span_warning("You feel a powerful shock!"))
|
||||
if(!.)
|
||||
playsound(L, 'sound/effects/sparks7.ogg', 40, 1)
|
||||
L.electrocute_act(battery.percent() * 0, src)
|
||||
return .
|
||||
|
||||
return 0
|
||||
|
||||
/*
|
||||
* Toy cuffs
|
||||
*/
|
||||
|
||||
@@ -65,8 +65,7 @@
|
||||
var/light_glove_d = rand(2, 4)
|
||||
var/no_glove_d = rand(4, 6)
|
||||
var/list/forbidden_gloves = list(
|
||||
/obj/item/clothing/gloves/sterile,
|
||||
/obj/item/clothing/gloves/knuckledusters
|
||||
/obj/item/clothing/gloves/sterile
|
||||
)
|
||||
|
||||
if(src == user.l_hand)
|
||||
|
||||
@@ -797,7 +797,7 @@
|
||||
var/open = 0
|
||||
storage_slots = 1
|
||||
can_hold = list(
|
||||
/obj/item/clothing/gloves/ring,
|
||||
/obj/item/clothing/accessory/ring,
|
||||
/obj/item/coin,
|
||||
/obj/item/clothing/accessory/medal
|
||||
)
|
||||
@@ -811,7 +811,7 @@
|
||||
|
||||
if(contents.len >= 1)
|
||||
var/contained_image = null
|
||||
if(istype(contents[1], /obj/item/clothing/gloves/ring))
|
||||
if(istype(contents[1], /obj/item/clothing/accessory/ring))
|
||||
contained_image = "ring_trinket"
|
||||
else if(istype(contents[1], /obj/item/coin))
|
||||
contained_image = "coin_trinket"
|
||||
|
||||
@@ -264,7 +264,7 @@
|
||||
prob(6);/obj/item/material/butterflyblade,
|
||||
prob(6);/obj/item/material/butterflyhandle,
|
||||
prob(2);/obj/item/material/butterfly/switchblade,
|
||||
prob(2);/obj/item/clothing/gloves/knuckledusters,
|
||||
prob(2);/obj/item/clothing/accessory/knuckledusters,
|
||||
prob(1);/obj/item/material/knife/tacknife,
|
||||
prob(1);/obj/item/clothing/suit/storage/vest/heavy/merc,
|
||||
prob(1);/obj/item/beartrap,
|
||||
|
||||
@@ -156,7 +156,7 @@
|
||||
prob(4);/obj/item/storage/pill_bottle/zoom,
|
||||
prob(4);/obj/item/material/butterfly,
|
||||
prob(2);/obj/item/material/butterfly/switchblade,
|
||||
prob(2);/obj/item/clothing/gloves/knuckledusters,
|
||||
prob(2);/obj/item/clothing/accessory/knuckledusters,
|
||||
prob(2);/obj/item/reagent_containers/syringe/drugs,
|
||||
prob(1);/obj/item/material/knife/tacknife,
|
||||
prob(1);/obj/item/clothing/suit/storage/vest/heavy/merc,
|
||||
|
||||
@@ -217,7 +217,7 @@
|
||||
/obj/item/gps/explorer,
|
||||
/obj/item/cataloguer/compact, //CHOMP edit
|
||||
// /obj/item/gun/energy/gun/protector/pilotgun/locked, //CHOMP Removed
|
||||
/obj/item/clothing/gloves/watch/survival,
|
||||
/obj/item/clothing/accessory/watch/survival,
|
||||
/obj/item/clothing/accessory/storage/webbing/pilot1,
|
||||
/obj/item/clothing/accessory/storage/webbing/pilot2,
|
||||
/obj/item/emergency_beacon
|
||||
|
||||
@@ -303,7 +303,7 @@
|
||||
prob(3);/obj/item/cracker,
|
||||
prob(3);/obj/item/material/butterfly,
|
||||
prob(3);/obj/item/material/butterfly/switchblade,
|
||||
prob(3);/obj/item/clothing/gloves/knuckledusters,
|
||||
prob(3);/obj/item/clothing/accessory/knuckledusters,
|
||||
prob(3);/obj/item/clothing/gloves/heavy_engineer,
|
||||
prob(3);/obj/item/reagent_containers/syringe/drugs,
|
||||
prob(2);/obj/item/implanter/sizecontrol,
|
||||
|
||||
Reference in New Issue
Block a user