mirror of
https://github.com/goonstation/goonstation-2020.git
synced 2026-07-11 15:12:22 +01:00
26 lines
738 B
Plaintext
26 lines
738 B
Plaintext
/datum/buildmode/arcflash
|
|
name = "Arc Flash"
|
|
desc = {"***********************************************************<br>
|
|
Right Mouse Button on buildmode button = Set wattage<br>
|
|
Left Mouse Button on turf/mob/obj = SHOCK!<br>
|
|
***********************************************************"}
|
|
icon_state = "buildmode_zap"
|
|
var/wattage = 5000
|
|
var/obj/dummy
|
|
|
|
New()
|
|
dummy = new()
|
|
dummy.anchored = 0
|
|
dummy.set_density(0)
|
|
dummy.invisibility = 101
|
|
dummy.loc = null
|
|
|
|
click_mode_right(var/ctrl, var/alt, var/shift)
|
|
wattage = input("Shock wattage", "Wattage", wattage) as num
|
|
|
|
click_left(atom/object, var/ctrl, var/alt, var/shift)
|
|
if (isturf(object))
|
|
arcFlashTurf(usr, object, wattage)
|
|
else
|
|
arcFlash(usr, object, wattage)
|