mirror of
https://github.com/fulpstation/fulpstation.git
synced 2025-12-09 16:09:15 +00:00
Several of the greps were missing the `-P` switch which caused them to fail to match things. The EOL grep also wasn't working right so I replaced it with the one I added to TGMC.
37 lines
738 B
Plaintext
37 lines
738 B
Plaintext
// Blob Overmind Controls
|
|
|
|
|
|
/mob/camera/blob/ClickOn(atom/A, params) //Expand blob
|
|
var/list/modifiers = params2list(params)
|
|
if(modifiers["middle"])
|
|
MiddleClickOn(A)
|
|
return
|
|
if(modifiers["shift"])
|
|
ShiftClickOn(A)
|
|
return
|
|
if(modifiers["alt"])
|
|
AltClickOn(A)
|
|
return
|
|
if(modifiers["ctrl"])
|
|
CtrlClickOn(A)
|
|
return
|
|
var/turf/T = get_turf(A)
|
|
if(T)
|
|
expand_blob(T)
|
|
|
|
/mob/camera/blob/MiddleClickOn(atom/A) //Rally spores
|
|
. = ..()
|
|
var/turf/T = get_turf(A)
|
|
if(T)
|
|
rally_spores(T)
|
|
|
|
/mob/camera/blob/CtrlClickOn(atom/A) //Create a shield
|
|
var/turf/T = get_turf(A)
|
|
if(T)
|
|
create_shield(T)
|
|
|
|
/mob/camera/blob/AltClickOn(atom/A) //Remove a blob
|
|
var/turf/T = get_turf(A)
|
|
if(T)
|
|
remove_blob(T)
|