mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-23 23:54:45 +00:00
* Implements a Demolition Modifier variable to items, affects damage vs structures and robots. (#66967) Adds a modifier variable which can be used to increase or decrease a given items damage to structures, machinery, vehicles, and robots (including cyborgs, simple-bots, and anything else with the MOB_ROBOTIC biotype) * Fixes attacks on mech equipment ignoring armor / melee damage, also fixes mech equipment not being disabled at 0% health, also also unit tests mech armor (#67411) Co-authored-by: itseasytosee <55666666+itseasytosee@users.noreply.github.com> Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
45 lines
1.9 KiB
Plaintext
45 lines
1.9 KiB
Plaintext
//The items defined in this file are intended be scarce maintenance loot items some of these items are used as a non-renewable resource in crafting or ghetto chem.
|
|
//Exercise good judgement and don't add these to a lathe willy nilly.
|
|
|
|
//Saw-tier bulky & blunt weapon. A decent bone breaker. Source of lead reagent.
|
|
//Add lead material to this once implemented.
|
|
/obj/item/lead_pipe
|
|
name = "lead pipe"
|
|
icon = 'icons/obj/maintenance_loot.dmi'
|
|
icon_state = "lead_pipe"
|
|
inhand_icon_state = "lead_pipe"
|
|
lefthand_file = 'icons/mob/inhands/weapons/melee_lefthand.dmi'
|
|
righthand_file = 'icons/mob/inhands/weapons/melee_righthand.dmi'
|
|
//wow, lore
|
|
desc = "A hefty lead pipe.\nLead in an uncommon sight in this sector after being phased out due to employee health concerns. \
|
|
\nThose of a more cynical disposition assume that the NT lead ban is a scheme to prevent divertion to Syndicate ammunition factories."
|
|
force = 15
|
|
throwforce = 12
|
|
throw_range = 4
|
|
w_class = WEIGHT_CLASS_BULKY
|
|
wound_bonus = 20
|
|
demolition_mod = 1.25
|
|
grind_results = list(/datum/reagent/lead = 20)
|
|
|
|
//A good battery early in the shift. Source of lead & sulfuric acid reagents.
|
|
//Add lead material to this once implemented.
|
|
/obj/item/stock_parts/cell/lead
|
|
name = "lead-acid battery"
|
|
desc = "A type of primitive battery. It is quite large feels unexpectedly heavy."
|
|
icon = 'icons/obj/maintenance_loot.dmi'
|
|
icon_state = "lead_battery"
|
|
throwforce = 10
|
|
maxcharge = 20000 //decent max charge
|
|
chargerate = 1400 //charging is about 30% less efficient compared lithium batteries.
|
|
charge_light_type = null
|
|
connector_type = "leadacid"
|
|
rating = 2 //Kind of a mid-tier battery
|
|
w_class = WEIGHT_CLASS_NORMAL
|
|
grind_results = list(/datum/reagent/lead = 15, /datum/reagent/toxin/acid = 15, /datum/reagent/water = 20)
|
|
|
|
//starts partially discharged
|
|
/obj/item/stock_parts/cell/lead/Initialize(mapload)
|
|
AddElement(/datum/element/update_icon_blocker)
|
|
. = ..()
|
|
charge = rand(0.2,0.8) * maxcharge
|