Files
Bubberstation/code/_onclick/overmind.dm
tonty d5daa9c9b8 [NO GBP] Renames mob/camera to mob/eye and makes everything follow suit (#87684)
## Why It's Good For The Game

Clarity and consistency regarding DM's systems. 
Internally, `eye` is used for anything that controls the client's view.

![image](https://github.com/user-attachments/assets/7d1291e1-7a6a-4736-a14b-97834e89846f)
How `eye` is used in DM is consistent with how we use the term, so I
figured this would add clarity.

Being named mob/camera also makes it unclear exactly what it's doing.
The name implies that it would function similar to how mob/camera/ai_eye
does, but most of the time it's only used as... an eye.

My ulterior reason for this PR is that I want to clean up
mob/camera/ai_eye and it's subtypes after this.
## Changelog

🆑
server: mob/camera has been renamed to mob/eye, which may break
downstreams
/🆑

---------

Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>
2024-11-09 10:57:45 +00:00

37 lines
775 B
Plaintext

// Blob Overmind Controls
/mob/eye/blob/ClickOn(atom/A, params) //Expand blob
var/list/modifiers = params2list(params)
if(LAZYACCESS(modifiers, MIDDLE_CLICK))
MiddleClickOn(A, params)
return
if(LAZYACCESS(modifiers, SHIFT_CLICK))
ShiftClickOn(A)
return
if(LAZYACCESS(modifiers, ALT_CLICK))
blob_click_alt(A)
return
if(LAZYACCESS(modifiers, CTRL_CLICK))
CtrlClickOn(A)
return
var/turf/T = get_turf(A)
if(T)
expand_blob(T)
/mob/eye/blob/MiddleClickOn(atom/A) //Rally spores
. = ..()
var/turf/T = get_turf(A)
if(T)
rally_spores(T)
/mob/eye/blob/CtrlClickOn(atom/A) //Create a shield
var/turf/T = get_turf(A)
if(T)
create_shield(T)
/mob/eye/blob/proc/blob_click_alt(atom/A) //Remove a blob
var/turf/T = get_turf(A)
if(T)
remove_blob(T)