Merge pull request #7523 from Meghan-Rossi/ghostqol

Ghost sechud verb, shift-click examine, alt-click turf tab
This commit is contained in:
Atermonera
2020-08-20 22:29:40 -07:00
committed by VirgoBot
parent d63f0b2c3e
commit 8fc35d4da4
4 changed files with 37 additions and 5 deletions

View File

@@ -282,12 +282,15 @@
/atom/proc/AltClick(var/mob/user)
var/turf/T = get_turf(src)
if(T && user.TurfAdjacent(T))
if(user.listed_turf == T)
user.listed_turf = null
else
user.listed_turf = T
user.client.statpanel = "Turf"
user.ToggleTurfTab(T)
return 1
/mob/proc/ToggleTurfTab(var/turf/T)
if(listed_turf == T)
listed_turf = null
else
listed_turf = T
client.statpanel = "Turf"
/mob/proc/TurfAdjacent(var/turf/T)
return T.AdjacentQuick(src)

View File

@@ -33,6 +33,15 @@
return
if(!checkClickCooldown()) return
setClickCooldown(4)
var/list/modifiers = params2list(params)
if(modifiers["shift"])
examinate(A)
return
if(modifiers["alt"]) // alt and alt-gr (rightalt)
var/turf/T = get_turf(A)
if(T && TurfAdjacent(T))
ToggleTurfTab(T)
return
// You are responsible for checking config.ghost_interaction when you override this function
// Not all of them require checking, see below
A.attack_ghost(src)