mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Replaces toy waterflower with spraybottle waterflower (#6997)
This commit is contained in:
@@ -5,34 +5,34 @@
|
|||||||
icon_keyboard = null
|
icon_keyboard = null
|
||||||
icon_screen = "invaders"
|
icon_screen = "invaders"
|
||||||
clicksound = null //Gets too spammy and makes no sense for arcade to have the console keyboard noise anyway
|
clicksound = null //Gets too spammy and makes no sense for arcade to have the console keyboard noise anyway
|
||||||
var/list/prizes = list( /obj/item/weapon/storage/box/snappops = 2,
|
var/list/prizes = list( /obj/item/weapon/storage/box/snappops = 2,
|
||||||
/obj/item/toy/blink = 2,
|
/obj/item/toy/blink = 2,
|
||||||
/obj/item/clothing/under/syndicate/tacticool = 2,
|
/obj/item/clothing/under/syndicate/tacticool = 2,
|
||||||
/obj/item/toy/sword = 2,
|
/obj/item/toy/sword = 2,
|
||||||
/obj/item/weapon/gun/projectile/revolver/capgun = 2,
|
/obj/item/weapon/gun/projectile/revolver/capgun = 2,
|
||||||
/obj/item/toy/crossbow = 2,
|
/obj/item/toy/crossbow = 2,
|
||||||
/obj/item/clothing/suit/syndicatefake = 2,
|
/obj/item/clothing/suit/syndicatefake = 2,
|
||||||
/obj/item/weapon/storage/fancy/crayons = 2,
|
/obj/item/weapon/storage/fancy/crayons = 2,
|
||||||
/obj/item/toy/spinningtoy = 2,
|
/obj/item/toy/spinningtoy = 2,
|
||||||
/obj/item/toy/prize/ripley = 1,
|
/obj/item/toy/prize/ripley = 1,
|
||||||
/obj/item/toy/prize/fireripley = 1,
|
/obj/item/toy/prize/fireripley = 1,
|
||||||
/obj/item/toy/prize/deathripley = 1,
|
/obj/item/toy/prize/deathripley = 1,
|
||||||
/obj/item/toy/prize/gygax = 1,
|
/obj/item/toy/prize/gygax = 1,
|
||||||
/obj/item/toy/prize/durand = 1,
|
/obj/item/toy/prize/durand = 1,
|
||||||
/obj/item/toy/prize/honk = 1,
|
/obj/item/toy/prize/honk = 1,
|
||||||
/obj/item/toy/prize/marauder = 1,
|
/obj/item/toy/prize/marauder = 1,
|
||||||
/obj/item/toy/prize/seraph = 1,
|
/obj/item/toy/prize/seraph = 1,
|
||||||
/obj/item/toy/prize/mauler = 1,
|
/obj/item/toy/prize/mauler = 1,
|
||||||
/obj/item/toy/prize/odysseus = 1,
|
/obj/item/toy/prize/odysseus = 1,
|
||||||
/obj/item/toy/prize/phazon = 1,
|
/obj/item/toy/prize/phazon = 1,
|
||||||
/obj/item/toy/waterflower = 1,
|
/obj/item/weapon/reagent_containers/spray/waterflower = 1,
|
||||||
/obj/random/action_figure = 1,
|
/obj/random/action_figure = 1,
|
||||||
/obj/random/plushie = 1,
|
/obj/random/plushie = 1,
|
||||||
/obj/item/toy/cultsword = 1,
|
/obj/item/toy/cultsword = 1,
|
||||||
/obj/item/toy/bouquet/fake = 1,
|
/obj/item/toy/bouquet/fake = 1,
|
||||||
/obj/item/clothing/accessory/badge/sheriff = 2,
|
/obj/item/clothing/accessory/badge/sheriff = 2,
|
||||||
/obj/item/clothing/head/cowboy_hat/small = 2,
|
/obj/item/clothing/head/cowboy_hat/small = 2,
|
||||||
/obj/item/toy/stickhorse = 2
|
/obj/item/toy/stickhorse = 2
|
||||||
)
|
)
|
||||||
|
|
||||||
/obj/machinery/computer/arcade/New()
|
/obj/machinery/computer/arcade/New()
|
||||||
|
|||||||
@@ -949,7 +949,7 @@
|
|||||||
/obj/item/seeds/cabbageseed = 3,/obj/item/seeds/grapeseed = 3,/obj/item/seeds/pumpkinseed = 3,/obj/item/seeds/cherryseed = 3,/obj/item/seeds/plastiseed = 3,/obj/item/seeds/riceseed = 3)
|
/obj/item/seeds/cabbageseed = 3,/obj/item/seeds/grapeseed = 3,/obj/item/seeds/pumpkinseed = 3,/obj/item/seeds/cherryseed = 3,/obj/item/seeds/plastiseed = 3,/obj/item/seeds/riceseed = 3)
|
||||||
contraband = list(/obj/item/seeds/amanitamycelium = 2,/obj/item/seeds/glowshroom = 2,/obj/item/seeds/libertymycelium = 2,/obj/item/seeds/mtearseed = 2,
|
contraband = list(/obj/item/seeds/amanitamycelium = 2,/obj/item/seeds/glowshroom = 2,/obj/item/seeds/libertymycelium = 2,/obj/item/seeds/mtearseed = 2,
|
||||||
/obj/item/seeds/nettleseed = 2,/obj/item/seeds/reishimycelium = 2,/obj/item/seeds/reishimycelium = 2,/obj/item/seeds/shandseed = 2,)
|
/obj/item/seeds/nettleseed = 2,/obj/item/seeds/reishimycelium = 2,/obj/item/seeds/reishimycelium = 2,/obj/item/seeds/shandseed = 2,)
|
||||||
premium = list(/obj/item/toy/waterflower = 1)
|
premium = list(/obj/item/weapon/reagent_containers/spray/waterflower = 1)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Populate hydroseeds product_records
|
* Populate hydroseeds product_records
|
||||||
|
|||||||
@@ -379,75 +379,6 @@
|
|||||||
playsound(src, 'sound/effects/snap.ogg', 50, 1)
|
playsound(src, 'sound/effects/snap.ogg', 50, 1)
|
||||||
qdel(src)
|
qdel(src)
|
||||||
|
|
||||||
/*
|
|
||||||
* Water flower
|
|
||||||
*/
|
|
||||||
/obj/item/toy/waterflower
|
|
||||||
name = "water flower"
|
|
||||||
desc = "A seemingly innocent sunflower...with a twist."
|
|
||||||
icon = 'icons/obj/device.dmi'
|
|
||||||
drop_sound = 'sound/items/drop/food.ogg'
|
|
||||||
icon_state = "sunflower"
|
|
||||||
item_state = "sunflower"
|
|
||||||
var/empty = 0
|
|
||||||
slot_flags = SLOT_HOLSTER
|
|
||||||
|
|
||||||
/obj/item/toy/waterflower/New()
|
|
||||||
var/datum/reagents/R = new/datum/reagents(10)
|
|
||||||
reagents = R
|
|
||||||
R.my_atom = src
|
|
||||||
R.add_reagent("water", 10)
|
|
||||||
|
|
||||||
/obj/item/toy/waterflower/attack(mob/living/carbon/human/M as mob, mob/user as mob)
|
|
||||||
return
|
|
||||||
|
|
||||||
/obj/item/toy/waterflower/afterattack(atom/A as mob|obj, mob/user as mob)
|
|
||||||
|
|
||||||
if (istype(A, /obj/item/weapon/storage/backpack ))
|
|
||||||
return
|
|
||||||
|
|
||||||
else if (locate (/obj/structure/table, src.loc))
|
|
||||||
return
|
|
||||||
|
|
||||||
else if (istype(A, /obj/structure/reagent_dispensers/watertank) && get_dist(src,A) <= 1)
|
|
||||||
A.reagents.trans_to_obj(src, 10)
|
|
||||||
to_chat(user, "<span class='notice'>You refill your flower!</span>")
|
|
||||||
return
|
|
||||||
|
|
||||||
else if (src.reagents.total_volume < 1)
|
|
||||||
src.empty = 1
|
|
||||||
to_chat(user, "<span class='notice'>Your flower has run dry!</span>")
|
|
||||||
return
|
|
||||||
|
|
||||||
else
|
|
||||||
src.empty = 0
|
|
||||||
|
|
||||||
|
|
||||||
var/obj/effect/decal/D = new/obj/effect/decal/(get_turf(src))
|
|
||||||
D.name = "water"
|
|
||||||
D.icon = 'icons/obj/chemical.dmi'
|
|
||||||
D.icon_state = "chempuff"
|
|
||||||
D.create_reagents(5)
|
|
||||||
src.reagents.trans_to_obj(D, 1)
|
|
||||||
playsound(src.loc, 'sound/effects/spray3.ogg', 50, 1, -6)
|
|
||||||
|
|
||||||
spawn(0)
|
|
||||||
for(var/i=0, i<1, i++)
|
|
||||||
step_towards(D,A)
|
|
||||||
D.reagents.touch_turf(get_turf(D))
|
|
||||||
for(var/atom/T in get_turf(D))
|
|
||||||
D.reagents.touch(T)
|
|
||||||
if(ismob(T) && T:client)
|
|
||||||
to_chat(T:client, "<span class='warning'>\The [user] has sprayed you with water!</span>")
|
|
||||||
sleep(4)
|
|
||||||
qdel(D)
|
|
||||||
|
|
||||||
return
|
|
||||||
|
|
||||||
/obj/item/toy/waterflower/examine(mob/user)
|
|
||||||
if(..(user, 0))
|
|
||||||
to_chat(user, "[bicon(src)] [src.reagents.total_volume] units of water left!")
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Bosun's whistle
|
* Bosun's whistle
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -389,7 +389,7 @@
|
|||||||
/obj/item/device/pda/clown,
|
/obj/item/device/pda/clown,
|
||||||
/obj/item/clothing/mask/gas/clown_hat,
|
/obj/item/clothing/mask/gas/clown_hat,
|
||||||
/obj/item/weapon/bikehorn,
|
/obj/item/weapon/bikehorn,
|
||||||
/obj/item/toy/waterflower,
|
/obj/item/weapon/reagent_containers/spray/waterflower,
|
||||||
/obj/item/weapon/pen/crayon/rainbow,
|
/obj/item/weapon/pen/crayon/rainbow,
|
||||||
/obj/structure/closet/crate
|
/obj/structure/closet/crate
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -515,7 +515,7 @@
|
|||||||
/obj/item/toy/balloon,
|
/obj/item/toy/balloon,
|
||||||
/obj/item/toy/crossbow,
|
/obj/item/toy/crossbow,
|
||||||
/obj/item/toy/blink,
|
/obj/item/toy/blink,
|
||||||
/obj/item/toy/waterflower,
|
/obj/item/weapon/reagent_containers/spray/waterflower,
|
||||||
/obj/item/toy/eight_ball,
|
/obj/item/toy/eight_ball,
|
||||||
/obj/item/toy/eight_ball/conch,
|
/obj/item/toy/eight_ball/conch,
|
||||||
/obj/item/toy/prize/ripley,
|
/obj/item/toy/prize/ripley,
|
||||||
|
|||||||
@@ -81,7 +81,7 @@
|
|||||||
var/toytype = list()
|
var/toytype = list()
|
||||||
toytype["Blink toy"] = /obj/item/toy/blink
|
toytype["Blink toy"] = /obj/item/toy/blink
|
||||||
toytype["Gravitational singularity"] = /obj/item/toy/spinningtoy
|
toytype["Gravitational singularity"] = /obj/item/toy/spinningtoy
|
||||||
toytype["Water flower"] = /obj/item/toy/waterflower
|
toytype["Water flower"] = /obj/item/weapon/reagent_containers/spray/waterflower
|
||||||
toytype["Bosun's whistle"] = /obj/item/toy/bosunwhistle
|
toytype["Bosun's whistle"] = /obj/item/toy/bosunwhistle
|
||||||
toytype["Magic 8 Ball"] = /obj/item/toy/eight_ball
|
toytype["Magic 8 Ball"] = /obj/item/toy/eight_ball
|
||||||
toytype["Magic Conch shell"] = /obj/item/toy/eight_ball/conch
|
toytype["Magic Conch shell"] = /obj/item/toy/eight_ball/conch
|
||||||
|
|||||||
@@ -122,7 +122,7 @@
|
|||||||
new/obj/item/weapon/bikehorn(src)
|
new/obj/item/weapon/bikehorn(src)
|
||||||
//new/obj/item/weapon/stamp/clown(src) I'd add it, but only clowns can use it
|
//new/obj/item/weapon/stamp/clown(src) I'd add it, but only clowns can use it
|
||||||
new/obj/item/weapon/pen/crayon/rainbow(src)
|
new/obj/item/weapon/pen/crayon/rainbow(src)
|
||||||
new/obj/item/toy/waterflower(src)
|
new/obj/item/weapon/reagent_containers/spray/waterflower(src)
|
||||||
if(95)
|
if(95)
|
||||||
new/obj/item/clothing/under/mime(src)
|
new/obj/item/clothing/under/mime(src)
|
||||||
new/obj/item/clothing/shoes/black(src)
|
new/obj/item/clothing/shoes/black(src)
|
||||||
|
|||||||
Reference in New Issue
Block a user