mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 20:48:56 +01:00
## About The Pull Request In similar fashion to what was done with crafting recipes last year, this year it's time for techweb designs and printed items to be audited. This is mostly just about consistency, we've a lot of items that can be printed by protolathes, autolathes, circuit printers and techfab etc. However they almost all (except most stacks, mainly) have custom materials that do not match in one way or another with the materials used by the design, which is what this PR is for. "But items printed from lathes etc. already get the mats used to make them." Yes, they do, however that isn't the case for items of the same type that were spawned in some other way (cargo shuttle, space/maints loot, mapped, admins), this create a subtle discrepancy. It isn't a huge deal (in spite of the size of this PR, ton of designs), but given that I have done something similar with crafting recipes before, I may as well give it a second arc of some sort and bring things to completion. And fix a few possible oversights. TL;DR consistency and stuff ## Why It's Good For The Game Consistency, unit test checks to make it harder not to be consistent in the future. Still has a few TODOs like: - [x] Fixed newly printed, fully charged RCDs costing less than the RCD cartridges required to fully charge one. EDIT: I had to tweak the newly added RDD as well because it suffered from the same fundamental issue. - [x] Fixed plates being made of iron and yet shattering like ceramic ones. A new subtype for metallic ones has been made. ## Changelog 🆑 refactor: Refactored a few things with techweb designs (the ones for autolathes, protolathes, circuit printers, mechfabs etc.) to make sure that the materials of items that can be made from these designs more closely match the materials used to make them. fix: Lizard fries no longer need a plate to be made, like all other treats that used to require plates in a distant past. balance: Tweaked the materials cost of RCD, RDD and RCD cartridges. image: Oven trays now have a more metallic hue. balance: Plates printed printed from lathes won't shatter like ceramic ones, in virtue of them being made out of iron instead. /🆑
346 lines
12 KiB
Plaintext
346 lines
12 KiB
Plaintext
/* Clown Items
|
|
* Contains:
|
|
* Soap
|
|
* Bike Horns
|
|
* Air Horns
|
|
* Canned Laughter
|
|
* Balloon Mallet
|
|
*/
|
|
|
|
/*
|
|
* Soap
|
|
*/
|
|
|
|
/obj/item/soap
|
|
name = "soap"
|
|
desc = "A cheap bar of soap. Doesn't smell."
|
|
gender = PLURAL
|
|
icon = 'icons/obj/watercloset.dmi'
|
|
icon_state = "soap"
|
|
inhand_icon_state = "soap"
|
|
worn_icon_state = "soap"
|
|
lefthand_file = 'icons/mob/inhands/equipment/custodial_lefthand.dmi'
|
|
righthand_file = 'icons/mob/inhands/equipment/custodial_righthand.dmi'
|
|
w_class = WEIGHT_CLASS_TINY
|
|
item_flags = NOBLUDGEON
|
|
throwforce = 0
|
|
throw_speed = 3
|
|
throw_range = 7
|
|
var/cleanspeed = 3.5 SECONDS //slower than mop
|
|
force_string = "robust... against germs"
|
|
var/uses = 100
|
|
|
|
/obj/item/soap/Initialize(mapload)
|
|
. = ..()
|
|
AddComponent(/datum/component/slippery, 80)
|
|
AddComponent(/datum/component/cleaner, cleanspeed, 0.1, pre_clean_callback=CALLBACK(src, PROC_REF(should_clean)), on_cleaned_callback=CALLBACK(src, PROC_REF(decreaseUses))) //less scaling for soapies
|
|
|
|
/obj/item/soap/grind_results()
|
|
return list(/datum/reagent/lye = 10)
|
|
|
|
/obj/item/soap/examine(mob/user)
|
|
. = ..()
|
|
var/max_uses = initial(uses)
|
|
var/msg = "It looks like it just came out of the package."
|
|
if(uses != max_uses)
|
|
var/percentage_left = uses / max_uses
|
|
switch(percentage_left)
|
|
if(0 to 0.15)
|
|
msg = "There's just a tiny bit left of what it used to be, you're not sure it'll last much longer."
|
|
if(0.15 to 0.30)
|
|
msg = "It's dissolved quite a bit, but there's still some life to it."
|
|
if(0.30 to 0.50)
|
|
msg = "It's past its prime, but it's definitely still good."
|
|
if(0.50 to 0.75)
|
|
msg = "It's started to get a little smaller than it used to be, but it'll definitely still last for a while."
|
|
else
|
|
msg = "It's seen some light use, but it's still pretty fresh."
|
|
. += span_notice("[msg]")
|
|
|
|
/obj/item/soap/homemade
|
|
desc = "A homemade bar of soap. Smells of... well...."
|
|
icon_state = "soapgibs"
|
|
inhand_icon_state = "soapgibs"
|
|
worn_icon_state = "soapgibs"
|
|
cleanspeed = 3 SECONDS // faster than base soap to reward chemists for going to the effort
|
|
|
|
/obj/item/soap/homemade/grind_results()
|
|
return list(/datum/reagent/consumable/liquidgibs = 9, /datum/reagent/lye = 9)
|
|
|
|
/obj/item/soap/nanotrasen
|
|
desc = "A heavy duty bar of Nanotrasen brand soap. Smells of plasma."
|
|
icon_state = "soapnt"
|
|
inhand_icon_state = "soapnt"
|
|
worn_icon_state = "soapnt"
|
|
cleanspeed = 2.8 SECONDS //janitor gets this
|
|
uses = 300
|
|
|
|
/obj/item/soap/nanotrasen/grind_results()
|
|
return list(/datum/reagent/toxin/plasma = 10, /datum/reagent/lye = 10)
|
|
|
|
/obj/item/soap/deluxe
|
|
desc = "A deluxe Waffle Corporation brand bar of soap. Smells of high-class luxury."
|
|
icon_state = "soapdeluxe"
|
|
inhand_icon_state = "soapdeluxe"
|
|
worn_icon_state = "soapdeluxe"
|
|
cleanspeed = 2 SECONDS //captain gets one of these
|
|
|
|
/obj/item/soap/deluxe/grind_results()
|
|
return list(/datum/reagent/consumable/aloejuice = 10, /datum/reagent/lye = 10)
|
|
|
|
/obj/item/soap/syndie
|
|
desc = "An untrustworthy bar of soap made of strong chemical agents that dissolve blood faster."
|
|
icon_state = "soapsyndie"
|
|
inhand_icon_state = "soapsyndie"
|
|
worn_icon_state = "soapsyndie"
|
|
cleanspeed = 0.5 SECONDS //faster than mops so it's useful for traitors who want to clean crime scenes
|
|
|
|
/obj/item/soap/syndie/grind_results()
|
|
return list(/datum/reagent/toxin/acid = 10, /datum/reagent/lye = 10)
|
|
|
|
/obj/item/soap/drone
|
|
name = "\improper integrated soap module"
|
|
inhand_icon_state = "soapnt"
|
|
worn_icon_state = "soapnt"
|
|
cleanspeed = 0.5 SECONDS //can be changed if someone isn't happy
|
|
uses = INFINITY
|
|
|
|
/obj/item/soap/omega
|
|
name = "\improper Omega soap"
|
|
desc = "The most advanced soap known to mankind. The beginning of the end for germs."
|
|
icon_state = "soapomega"
|
|
inhand_icon_state = "soapomega"
|
|
worn_icon_state = "soapomega"
|
|
cleanspeed = 0.3 SECONDS //Only the truest of mind soul and body get one of these
|
|
uses = 800 //In the Greek numeric system, Omega has a value of 800
|
|
|
|
/obj/item/soap/omega/Initialize(mapload)
|
|
. = ..()
|
|
AddComponent(/datum/component/slippery, 120) //Same slipperiness as Super Lube
|
|
|
|
/obj/item/soap/omega/grind_results()
|
|
return list(
|
|
/datum/reagent/consumable/potato_juice = 9,
|
|
/datum/reagent/consumable/ethanol/lizardwine = 9,
|
|
/datum/reagent/monkey_powder = 9,
|
|
/datum/reagent/drug/krokodil = 9,
|
|
/datum/reagent/toxin/acid/nitracid = 9,
|
|
/datum/reagent/baldium = 9,
|
|
/datum/reagent/consumable/ethanol/hooch = 9,
|
|
/datum/reagent/bluespace = 9,
|
|
/datum/reagent/drug/pumpup = 9,
|
|
/datum/reagent/consumable/space_cola = 9,
|
|
/datum/reagent/iron = 9
|
|
)
|
|
|
|
/obj/item/soap/omega/suicide_act(mob/living/user)
|
|
user.visible_message(span_suicide("[user] is using [src] to scrub themselves from the timeline! It looks like [user.p_theyre()] trying to commit suicide!"))
|
|
new /obj/structure/chrono_field(user.loc, user)
|
|
return MANUAL_SUICIDE
|
|
|
|
/obj/item/paper/fluff/stations/soap
|
|
name = "ancient janitorial poem"
|
|
desc = "An old paper that has passed many hands."
|
|
default_raw_text = "<h1><b>The Legend of the Omega Soap</b></h1><br><br>Essence of <b>potato</b>, juice, not grind.<br>A <b>lizard's</b> tail, turned into wine.<br><b>Powder of monkey</b>, to help the workload.<br>Some <b>Krokodil</b>, because meth would explode.<br><b>Nitric acid</b> and <b>Baldium</b>, for organic dissolving.<br>A cup full of <b>hooch</b>, for sins' absolving.<br>A dash of <b>bluespace dust</b>, for removal of stains.<br>A syringe of <b>Pump-Up</b>, Security's worst of pains.<br>A can of <b>Space Cola</b>, to watch the dirt fade.<br><b>Heat</b> as hot as possible, let the soap be your blade.<br>With <b>ten</b> units of each, the soap that topples all will be made."
|
|
|
|
/obj/item/soap/suicide_act(mob/living/user)
|
|
user.say(";FFFFFFFFFFFFFFFFUUUUUUUDGE!!", forced="soap suicide")
|
|
user.visible_message(span_suicide("[user] lifts [src] to [user.p_their()] mouth and gnaws on it furiously, producing a thick froth! [user.p_They()]'ll never get that BB gun now!"))
|
|
do_foam(1, src, get_turf(user))
|
|
return TOXLOSS
|
|
|
|
/obj/item/soap/proc/should_clean(datum/cleaning_source, atom/atom_to_clean, mob/living/cleaner)
|
|
. = CLEAN_ALLOWED
|
|
if(!check_allowed_items(atom_to_clean))
|
|
. |= CLEAN_NO_XP|CLEAN_NO_WASH
|
|
|
|
/**
|
|
* Decrease the number of uses the bar of soap has.
|
|
*
|
|
* The higher the cleaning skill, the less likely the soap will lose a use.
|
|
* Arguments
|
|
* * source - the source of the cleaning
|
|
* * target - The atom that is being cleaned
|
|
* * user - The mob that is using the soap to clean.
|
|
*/
|
|
/obj/item/soap/proc/decreaseUses(datum/source, atom/target, mob/living/user, clean_succeeded)
|
|
if(!clean_succeeded)
|
|
return
|
|
var/skillcheck = 1
|
|
if(user?.mind)
|
|
skillcheck = user.mind.get_skill_modifier(/datum/skill/cleaning, SKILL_SPEED_MODIFIER)
|
|
if(prob(skillcheck*100)) //higher level = more uses assuming RNG is nice
|
|
uses--
|
|
if(uses <= 0)
|
|
noUses(user)
|
|
|
|
/obj/item/soap/proc/noUses(mob/user)
|
|
to_chat(user, span_warning("[src] crumbles into tiny bits!"))
|
|
qdel(src)
|
|
|
|
/obj/item/soap/nanotrasen/cyborg
|
|
name = "built-in soap"
|
|
|
|
/obj/item/soap/nanotrasen/cyborg/noUses(mob/user)
|
|
to_chat(user, span_warning("[src] has ran out of chemicals! Head to a recharger to refill it."))
|
|
|
|
/obj/item/soap/nanotrasen/cyborg/should_clean(datum/cleaning_source, atom/atom_to_clean, mob/living/cleaner)
|
|
if(uses <= 0)
|
|
return CLEAN_BLOCKED
|
|
return ..()
|
|
|
|
/*
|
|
* Bike Horns
|
|
*/
|
|
|
|
/obj/item/bikehorn
|
|
name = "bike horn"
|
|
desc = "A horn off of a bicycle. Rumour has it that they're made from recycled clowns."
|
|
icon = 'icons/obj/art/horn.dmi'
|
|
icon_state = "bike_horn"
|
|
inhand_icon_state = "bike_horn"
|
|
worn_icon_state = "horn"
|
|
lefthand_file = 'icons/mob/inhands/equipment/horns_lefthand.dmi'
|
|
righthand_file = 'icons/mob/inhands/equipment/horns_righthand.dmi'
|
|
throwforce = 0
|
|
hitsound = null //To prevent tap.ogg playing, as the item lacks of force
|
|
w_class = WEIGHT_CLASS_TINY
|
|
slot_flags = ITEM_SLOT_BACK|ITEM_SLOT_BELT
|
|
throw_speed = 3
|
|
throw_range = 7
|
|
attack_verb_continuous = list("HONKS")
|
|
attack_verb_simple = list("HONK")
|
|
///sound file given to the squeaky component we make in Initialize() so sub-types can specify their own sound
|
|
var/sound_file = 'sound/items/bikehorn.ogg'
|
|
|
|
/obj/item/bikehorn/Initialize(mapload)
|
|
. = ..()
|
|
var/list/sound_list = list()
|
|
sound_list[sound_file] = 1
|
|
AddComponent(/datum/component/squeak, sound_list, 50, falloff_exponent = 20)
|
|
|
|
/obj/item/bikehorn/attack(mob/living/carbon/M, mob/living/carbon/user)
|
|
if(user != M && ishuman(user))
|
|
var/mob/living/carbon/human/H = user
|
|
if (HAS_TRAIT(H, TRAIT_CLUMSY)) //only clowns can unlock its true powers
|
|
M.add_mood_event("honk", /datum/mood_event/honk)
|
|
return ..()
|
|
|
|
/obj/item/bikehorn/suicide_act(mob/living/user)
|
|
user.visible_message(span_suicide("[user] solemnly points [src] at [user.p_their()] temple! It looks like [user.p_theyre()] trying to commit suicide!"))
|
|
playsound(src, 'sound/items/bikehorn.ogg', 50, TRUE)
|
|
return BRUTELOSS
|
|
|
|
//air horn
|
|
/obj/item/bikehorn/airhorn
|
|
name = "air horn"
|
|
desc = "Damn son, where'd you find this?"
|
|
icon_state = "air_horn"
|
|
worn_icon_state = "horn_air"
|
|
sound_file = 'sound/items/airhorn/airhorn2.ogg'
|
|
custom_materials = list(/datum/material/iron = SMALL_MATERIAL_AMOUNT, /datum/material/glass = SMALL_MATERIAL_AMOUNT)
|
|
|
|
/datum/crafting_recipe/airhorn
|
|
name = "Air Horn"
|
|
result = /obj/item/bikehorn/airhorn
|
|
reqs = list(
|
|
/obj/item/bikehorn = 1,
|
|
/obj/item/toy/crayon/spraycan = 1,
|
|
)
|
|
category = CAT_ENTERTAINMENT
|
|
|
|
//golden bikehorn
|
|
/obj/item/bikehorn/golden
|
|
name = "golden bike horn"
|
|
desc = "Golden? Clearly, it's made with bananium! Honk!"
|
|
icon_state = "gold_horn"
|
|
inhand_icon_state = "gold_horn"
|
|
worn_icon_state = "horn_gold"
|
|
COOLDOWN_DECLARE(golden_horn_cooldown)
|
|
custom_materials = list(/datum/material/bananium = SHEET_MATERIAL_AMOUNT * 5)
|
|
|
|
/obj/item/bikehorn/golden/attack()
|
|
flip_mobs()
|
|
return ..()
|
|
|
|
/obj/item/bikehorn/golden/attack_self(mob/user)
|
|
flip_mobs()
|
|
..()
|
|
|
|
/obj/item/bikehorn/golden/proc/flip_mobs(mob/living/carbon/M, mob/user)
|
|
if(!COOLDOWN_FINISHED(src, golden_horn_cooldown))
|
|
return
|
|
var/turf/T = get_turf(src)
|
|
for(M in ohearers(7, T))
|
|
if(!HAS_TRAIT(M, TRAIT_DEAF))
|
|
M.emote("flip")
|
|
COOLDOWN_START(src, golden_horn_cooldown, 1 SECONDS)
|
|
|
|
/obj/item/bikehorn/rubberducky/plasticducky
|
|
name = "plastic ducky"
|
|
desc = "It's a cheap plastic knockoff of a loveable bathtime toy."
|
|
custom_materials = list(/datum/material/plastic = HALF_SHEET_MATERIAL_AMOUNT)
|
|
|
|
/obj/item/bikehorn/rubberducky
|
|
name = "rubber ducky"
|
|
desc = "Rubber ducky you're so fine, you make bathtime lots of fuuun. Rubber ducky I'm awfully fooooond of yooooouuuu~" //thanks doohl
|
|
icon = 'icons/obj/watercloset.dmi'
|
|
icon_state = "rubberducky"
|
|
inhand_icon_state = "rubberducky"
|
|
lefthand_file = 'icons/mob/inhands/items_lefthand.dmi'
|
|
righthand_file = 'icons/mob/inhands/items_righthand.dmi'
|
|
worn_icon_state = "duck"
|
|
sound_file = 'sound/effects/quack.ogg'
|
|
|
|
//canned laughter
|
|
/obj/item/reagent_containers/cup/soda_cans/canned_laughter
|
|
name = "Canned Laughter"
|
|
desc = "Just looking at this makes you want to giggle."
|
|
icon_state = "laughter"
|
|
volume = 50
|
|
list_reagents = list(/datum/reagent/consumable/laughter = 50)
|
|
|
|
//balloon mallet
|
|
/obj/item/balloon_mallet
|
|
name = "balloon mallet"
|
|
desc = "It's a mallet, a weapon known for being heavy, but made from notoriously light balloons. Air inside removes any force from the swings. It'd be quite embarrassing to get hit by this."
|
|
icon = 'icons/obj/weapons/hammer.dmi'
|
|
icon_state = "balloon_mallet"
|
|
inhand_icon_state = "balloon_mallet"
|
|
icon_angle = -45
|
|
lefthand_file = 'icons/mob/inhands/weapons/hammers_lefthand.dmi'
|
|
righthand_file = 'icons/mob/inhands/weapons/hammers_righthand.dmi'
|
|
siemens_coefficient = 0
|
|
force = 1
|
|
throw_speed = 1
|
|
throwforce = 1
|
|
throw_range = 1
|
|
w_class = WEIGHT_CLASS_HUGE
|
|
attack_verb_continuous = list("mallets", "smoother")
|
|
attack_verb_simple = list("mallet", "smoother")
|
|
max_integrity = 20
|
|
armor_type = /datum/armor/item_banhammer
|
|
resistance_flags = FIRE_PROOF
|
|
custom_materials = list(/datum/material/plastic = SHEET_MATERIAL_AMOUNT * 10.8)
|
|
|
|
/obj/item/balloon_mallet/examine(mob/user)
|
|
. = ..()
|
|
if(HAS_TRAIT(user,TRAIT_BALLOON_SUTRA))
|
|
. += "A sacred weapon of the higher castes from the clown planet, used to strike fear into the hearts of their foes. Wield it with care."
|
|
|
|
/obj/item/balloon_mallet/attack(mob/living/target, mob/living/user)
|
|
playsound(loc, 'sound/mobs/non-humanoids/clown/hehe.ogg', 20)
|
|
if (!isliving(target))
|
|
return
|
|
switch(target.mob_mood.sanity)
|
|
if (SANITY_INSANE to SANITY_CRAZY)
|
|
force = 8
|
|
if (SANITY_UNSTABLE to SANITY_DISTURBED)
|
|
force = 4
|
|
target.add_mood_event("humiliated", /datum/mood_event/mallet_humiliation)
|
|
if (SANITY_NEUTRAL to SANITY_GREAT)
|
|
target.add_mood_event("humiliated", /datum/mood_event/mallet_humiliation)
|
|
|
|
if(user.combat_mode)
|
|
return ..(target, user)
|