From c35174f8f2430721f3f84e059f50b18440b4fb3c Mon Sep 17 00:00:00 2001 From: Sierra Brown Date: Tue, 20 Oct 2015 13:24:18 -0700 Subject: [PATCH] Jace Evan's Toothbrush Item Path: /obj/item/weapon/soap/fluff/jace_toothbrush Sprite Path: icons/obj/custom_items/jace_toothbrush.dmi Thread: http://aurorastation.org/forums/viewtopic.php?f=100&t=3070 --- code/modules/customitems/item_defines.dm | 39 +++++++++++++++++++-- icons/obj/custom_items/jace_toothbrush.dmi | Bin 0 -> 432 bytes 2 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 icons/obj/custom_items/jace_toothbrush.dmi diff --git a/code/modules/customitems/item_defines.dm b/code/modules/customitems/item_defines.dm index 8044f6a0..79f2863b 100644 --- a/code/modules/customitems/item_defines.dm +++ b/code/modules/customitems/item_defines.dm @@ -25,7 +25,8 @@ "/obj/item/weapon/airlock_electronics", "/obj/item/weapon/module/power_control", "/obj/item/weapon/cell", - "/obj/item/weapon/hand_tele") + "/obj/item/weapon/hand_tele", + "/obj/item/weapon/soap/fluff/jace_toothbrush") storage_slots = 14 max_combined_w_class = 42 max_w_class = 3 @@ -1323,4 +1324,38 @@ END R I P HAZERI slot_flags = SLOT_MASK /obj/item/clothing/tie/fluff/fortune_shieldpendant/New() - inv_overlay = image("icon" = 'icons/obj/custom_items/fortune_shieldpendant.dmi', "icon_state" = "fortune_shieldpendant_w") \ No newline at end of file + inv_overlay = image("icon" = 'icons/obj/custom_items/fortune_shieldpendant.dmi', "icon_state" = "fortune_shieldpendant_w") + + +// Jace Evan's toothbrush - Wittly +/obj/item/weapon/soap/fluff/jace_toothbrush + name = "toothbrush" + desc = "An old toothbrush. It looks well used." + icon = 'icons/obj/custom_items/jace_toothbrush.dmi' + icon_state = "jace_toothbrush" + var/cleanspeed = 20 + +/obj/item/weapon/soap/fluff/jace_toothbrush/Crossed(AM as mob|obj) + return + +/obj/item/weapon/soap/fluff/jace_toothbrush/afterattack(atom/target, mob/user as mob, proximity) + if(!proximity) return + + if(user.client && (target in user.client.screen)) + return + if (istype(target,/obj/effect/decal/cleanable)) + user.visible_message("[user] begins to scrub \the [target.name] out with [src].") + if(do_after(user, src.cleanspeed) && target) + user << "You scrub \the [target.name] out." + del(target) + else + user.visible_message("[user] begins to clean \the [target.name] with [src].") + if(do_after(user, src.cleanspeed)) + user << "You clean \the [target.name]." + var/obj/effect/decal/cleanable/C = locate() in target + del(C) + target.clean_blood() + return + +/obj/item/weapon/soap/fluff/jace_toothbrush/attack(mob/target as mob, mob/user as mob) + return \ No newline at end of file diff --git a/icons/obj/custom_items/jace_toothbrush.dmi b/icons/obj/custom_items/jace_toothbrush.dmi new file mode 100644 index 0000000000000000000000000000000000000000..633595166e77e9d3f2f42d4759cee7a7b95bf1b1 GIT binary patch literal 432 zcmV;h0Z;ykP)V=-0C=1w$1x6rFboCIIX=Y~>{V%5vs6J<2Dn0%g26#*BP9l|&%pLxjaT>f z16=QE=Uig?!=k<2$sBP~fyMJdMmR2_SBeH@SX65m`J*YReDhYMA~VHYV9}77bNKP) z8r|UFdQT^j{2ou>3|0>S008t!L_t(oh3%FxZp0uEMITWbj^M(rui?_IrR16`aRj^Z zA>2+uW6@HQB0@?cZP>-La>K7EKs@~!{$Q46;Yz(-dV2$C01co40Pm#@<2a_gUf0!V z1DH}2TWb?Q-}iJ~rw&ncz&UpVnCJNeU>Js^3G#3cIOlF60)Y4aS7}}fFiq3vUkDLV zgDCdEJy~m$MqgAv!x*CpA)IzXB?r9s)n`uu9LHfo2msYCoOU2X)Rsb}1ZNCHRsj<0000