mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
33
code/WorkInProgress/Mloc/Shortcuts.dm
Normal file
33
code/WorkInProgress/Mloc/Shortcuts.dm
Normal file
@@ -0,0 +1,33 @@
|
||||
/mob/verb/shortcut_changeintent(var/changeto as num)
|
||||
set name = "_changeintent"
|
||||
set hidden = 1
|
||||
if(istype(usr,/mob/living/carbon))
|
||||
if(changeto == 1)
|
||||
switch(usr.a_intent)
|
||||
if("help")
|
||||
usr.a_intent = "disarm"
|
||||
usr.hud_used.action_intent.icon_state = "disarm"
|
||||
if("disarm")
|
||||
usr.a_intent = "hurt"
|
||||
usr.hud_used.action_intent.icon_state = "harm"
|
||||
if("hurt")
|
||||
usr.a_intent = "grab"
|
||||
usr.hud_used.action_intent.icon_state = "grab"
|
||||
if("grab")
|
||||
usr.a_intent = "help"
|
||||
usr.hud_used.action_intent.icon_state = "help"
|
||||
else if(changeto == -1)
|
||||
switch(usr.a_intent)
|
||||
if("help")
|
||||
usr.a_intent = "grab"
|
||||
usr.hud_used.action_intent.icon_state = "grab"
|
||||
if("disarm")
|
||||
usr.a_intent = "help"
|
||||
usr.hud_used.action_intent.icon_state = "help"
|
||||
if("hurt")
|
||||
usr.a_intent = "disarm"
|
||||
usr.hud_used.action_intent.icon_state = "disarm"
|
||||
if("grab")
|
||||
usr.a_intent = "hurt"
|
||||
usr.hud_used.action_intent.icon_state = "harm"
|
||||
return
|
||||
@@ -193,10 +193,20 @@ A list of items and costs is stored under the datum of every game mode, alongsid
|
||||
return
|
||||
|
||||
explode()
|
||||
var/turf/location = get_turf(src.loc)
|
||||
if(location)
|
||||
location.hotspot_expose(700,125)
|
||||
explosion(location, 0, 0, 2, 4, 1)
|
||||
|
||||
var/obj/item/weapon/implant/uplink/U = src.loc
|
||||
var/mob/living/A = U.imp_in
|
||||
A.gib()
|
||||
..()
|
||||
var/datum/organ/external/head = A:organs["head"]
|
||||
head.destroyed = 1
|
||||
spawn(2)
|
||||
head.droplimb()
|
||||
del(src.master)
|
||||
del(src)
|
||||
return
|
||||
|
||||
|
||||
/obj/item/device/uplink/radio
|
||||
|
||||
Reference in New Issue
Block a user