Files
Bubberstation/code/_onclick/overmind.dm
Leland KembleandGitHub 310305371b Fixes runtime when trying to upgrade a blob (#96422)
## About The Pull Request

0 is apparently truthy to a ternary, who knew. 

Also deletes every value return in blob code where that value is never
used, even where it is not currently causing a runtime

Also shuffles around the upgrading order to save space, and prevents
wasting 15 points upgrading a reflecting blob into a reflecting blob

also one letter vars

## Why It's Good For The Game

Runtime

Waste of time

Waste of points

Waste of time

## Changelog
🆑

fix: fixed runtime when trying to upgrade a blob, & fixed wasting points
upgrading a reflective blob into a reflective blob

/🆑
2026-06-11 03:19:08 +02:00

37 lines
1003 B
Plaintext

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