mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-21 03:16:34 +01:00
## About The Pull Request adds generic system for atom health / integrity / damage everything that isn't flagged with not-bludgeonable can, well, now be bludgeoned. ## Why It's Good For The Game more interactive game world through the means of making people able to break Everything. ## Changelog 🆑 add: atom damage - (almost) everything is now breakable. refactor: new /atom level materials system refactor: a lot of the combat system / click code refactor: melee attack styles /🆑 --------- Co-authored-by: silicons <no@you.cat>
39 lines
1.2 KiB
Plaintext
39 lines
1.2 KiB
Plaintext
//
|
|
// Super Duper Ender Cable - Luckily these are not constructable!
|
|
//
|
|
|
|
//if powernetless_only = 1, will only get connections without powernet
|
|
/obj/structure/cable/ender
|
|
// Pretend to be heavy duty power cable
|
|
icon = 'icons/obj/power_cond_heavy.dmi'
|
|
name = "large power cable"
|
|
desc = "This cable is tough. It cannot be cut with simple hand tools."
|
|
plane = TURF_PLANE
|
|
layer = HEAVYDUTY_WIRE_LAYER //Just below pipes
|
|
color = null
|
|
integrity_flags = INTEGRITY_INDESTRUCTIBLE
|
|
var/id = null
|
|
|
|
/obj/structure/cable/ender/get_connections(var/powernetless_only = 0)
|
|
. = ..() // Do the normal stuff
|
|
if(id)
|
|
for(var/obj/structure/cable/ender/target in cable_list)
|
|
if(target.id == id)
|
|
if (!powernetless_only || !target.powernet)
|
|
. |= target
|
|
|
|
/obj/structure/cable/ender/attackby(obj/item/W, mob/user)
|
|
src.add_fingerprint(user)
|
|
if(W.is_wirecutter())
|
|
to_chat(user, "<span class='notice'> These cables are too tough to be cut with those [W.name].</span>")
|
|
return
|
|
else if(istype(W, /obj/item/stack/cable_coil))
|
|
to_chat(user, "<span class='notice'> You will need heavier cables to connect to these.</span>")
|
|
return
|
|
else
|
|
..()
|
|
|
|
// Because they cannot be rebuilt, they are hard to destroy
|
|
/obj/structure/cable/ender/legacy_ex_act(severity)
|
|
return
|