mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-19 13:35:10 +00:00
fix: Fixed a bunch of missing inhand icons. fix: Fixed cables in electrical toolboxes not randomizing their colors. fix: Fixed the wrong colored icon showing when trying to make cable cuffs out of cables. fix: The collectable SWAT helmet is now using the proper icon again! refactor: Pipecleaners and power cables now share a unified color system, so they're once again available in ALL the same colors. imageadd: Updated the screwdriver belt overlay to represent the newer sprite. imageadd: Added a bunch of new inhand icons. Special thanks to Twaticus for doing the helmets! <3 fix: Wirecutters now have an icon when inside a belt again! admin: Added a new omnitool subtype that allows you to spawn all items in a typepath! fix: Explorer gaskmasks now properly reflect their adjusted state when held. fix: Fixed balaclavas having the wrong icon when pulled up. fix: Fixed the base energy sword (admin spawn only) being invisible. fix: The rainbow energy sword is now a little bit more rainbowy! fix: Fixed an tk exploit with orange handcuffed shoes. fix: The traitor outfit in the select equipment panel is now actually functional!
81 lines
3.0 KiB
Plaintext
81 lines
3.0 KiB
Plaintext
/obj/item/wirecutters
|
|
name = "wirecutters"
|
|
desc = "This cuts wires."
|
|
icon = 'icons/obj/tools.dmi'
|
|
icon_state = "cutters_map"
|
|
worn_icon_state = "cutters"
|
|
inhand_icon_state = "cutters"
|
|
lefthand_file = 'icons/mob/inhands/equipment/tools_lefthand.dmi'
|
|
righthand_file = 'icons/mob/inhands/equipment/tools_righthand.dmi'
|
|
|
|
greyscale_config = /datum/greyscale_config/wirecutters
|
|
greyscale_config_belt = /datum/greyscale_config/wirecutters_belt_overlay
|
|
greyscale_config_inhand_left = /datum/greyscale_config/wirecutter_inhand_left
|
|
greyscale_config_inhand_right = /datum/greyscale_config/wirecutter_inhand_right
|
|
|
|
flags_1 = CONDUCT_1
|
|
slot_flags = ITEM_SLOT_BELT
|
|
force = 6
|
|
throw_speed = 3
|
|
throw_range = 7
|
|
w_class = WEIGHT_CLASS_SMALL
|
|
custom_materials = list(/datum/material/iron=80)
|
|
attack_verb_continuous = list("pinches", "nips")
|
|
attack_verb_simple = list("pinch", "nip")
|
|
hitsound = 'sound/items/wirecutter.ogg'
|
|
usesound = 'sound/items/wirecutter.ogg'
|
|
drop_sound = 'sound/items/handling/wirecutter_drop.ogg'
|
|
pickup_sound = 'sound/items/handling/wirecutter_pickup.ogg'
|
|
tool_behaviour = TOOL_WIRECUTTER
|
|
toolspeed = 1
|
|
armor = list(MELEE = 0, BULLET = 0, LASER = 0, ENERGY = 0, BOMB = 0, BIO = 0, FIRE = 50, ACID = 30)
|
|
/// If the item should be assigned a random color
|
|
var/random_color = TRUE
|
|
/// List of possible random colors
|
|
var/static/list/wirecutter_colors = list(
|
|
"blue" = "#1861d5",
|
|
"red" = "#951710",
|
|
"pink" = "#d5188d",
|
|
"brown" = "#a05212",
|
|
"green" = "#0e7f1b",
|
|
"cyan" = "#18a2d5",
|
|
"yellow" = "#d58c18"
|
|
)
|
|
|
|
/obj/item/wirecutters/Initialize(mapload)
|
|
if(random_color)
|
|
var/our_color = pick(wirecutter_colors)
|
|
set_greyscale(colors=list(wirecutter_colors[our_color]))
|
|
return ..()
|
|
|
|
/obj/item/wirecutters/attack(mob/living/carbon/attacked_carbon, mob/user)
|
|
if(istype(attacked_carbon) && attacked_carbon.handcuffed && istype(attacked_carbon.handcuffed, /obj/item/restraints/handcuffs/cable))
|
|
user.visible_message(span_notice("[user] cuts [attacked_carbon]'s restraints with [src]!"))
|
|
qdel(attacked_carbon.handcuffed)
|
|
return
|
|
|
|
return ..()
|
|
|
|
/obj/item/wirecutters/suicide_act(mob/user)
|
|
user.visible_message(span_suicide("[user] is cutting at [user.p_their()] arteries with [src]! It looks like [user.p_theyre()] trying to commit suicide!"))
|
|
playsound(loc, usesound, 50, TRUE, -1)
|
|
return (BRUTELOSS)
|
|
|
|
/obj/item/wirecutters/abductor
|
|
name = "alien wirecutters"
|
|
desc = "Extremely sharp wirecutters, made out of a silvery-green metal."
|
|
icon = 'icons/obj/abductor.dmi'
|
|
custom_materials = list(/datum/material/iron = 5000, /datum/material/silver = 2500, /datum/material/plasma = 1000, /datum/material/titanium = 2000, /datum/material/diamond = 2000)
|
|
icon_state = "cutters"
|
|
toolspeed = 0.1
|
|
random_color = FALSE
|
|
|
|
/obj/item/wirecutters/cyborg
|
|
name = "powered wirecutters"
|
|
desc = "Cuts wires with the power of ELECTRICITY. Faster than normal wirecutters."
|
|
icon = 'icons/obj/items_cyborg.dmi'
|
|
icon_state = "wirecutters_cyborg"
|
|
worn_icon_state = "cutters"
|
|
toolspeed = 0.5
|
|
random_color = FALSE
|