mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-05 23:21:53 +00:00
This commit removes code/defines/obj.dm and code/defines/obj/weapon.dm. These files were only kept for legacy compatibility and do not fit into the tree system at all. It doesn't even make sense since the base defines are all that were in these, the actual code for the items was in the right file. Any new ports that use this file on a different codebase should be sorted into the tree system anyways, new files if necessary. A giant defines file is just wasting space and searching effort.
37 lines
1002 B
Plaintext
37 lines
1002 B
Plaintext
// WIRES
|
|
|
|
/obj/item/weapon/wire
|
|
desc = "This is just a simple piece of regular insulated wire."
|
|
name = "wire"
|
|
icon = 'icons/obj/power.dmi'
|
|
icon_state = "item_wire"
|
|
var/amount = 1.0
|
|
var/laying = 0.0
|
|
var/old_lay = null
|
|
m_amt = 40
|
|
attack_verb = list("whipped", "lashed", "disciplined", "tickled")
|
|
|
|
suicide_act(mob/user)
|
|
viewers(user) << "\red <b>[user] is strangling \himself with the [src.name]! It looks like \he's trying to commit suicide.</b>"
|
|
return (OXYLOSS)
|
|
|
|
|
|
/obj/item/weapon/wire/proc/update()
|
|
if (src.amount > 1)
|
|
src.icon_state = "spool_wire"
|
|
src.desc = text("This is just spool of regular insulated wire. It consists of about [] unit\s of wire.", src.amount)
|
|
else
|
|
src.icon_state = "item_wire"
|
|
src.desc = "This is just a simple piece of regular insulated wire."
|
|
return
|
|
|
|
/obj/item/weapon/wire/attack_self(mob/user as mob)
|
|
if (src.laying)
|
|
src.laying = 0
|
|
user << "\blue You're done laying wire!"
|
|
else
|
|
user << "\blue You are not using this to lay wire..."
|
|
return
|
|
|
|
|