mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
Optimizes code
This commit is contained in:
@@ -180,7 +180,6 @@
|
||||
throw_pressure_limit = 120 //120 kPa difference required to throw
|
||||
see_in_dark = 8
|
||||
lighting_alpha = LIGHTING_PLANE_ALPHA_MOSTLY_INVISIBLE
|
||||
var/selectingplayer = FALSE
|
||||
|
||||
/mob/living/simple_animal/hostile/blob/blobbernaut/Life(seconds, times_fired)
|
||||
if(stat != DEAD && (getBruteLoss() || getFireLoss())) // Heal on blob structures
|
||||
@@ -190,11 +189,6 @@
|
||||
else
|
||||
adjustBruteLoss(0.2) // If you are at full health, you won't lose health. You'll need it. However the moment anybody sneezes on you, the decaying will begin.
|
||||
adjustFireLoss(0.2)
|
||||
if(selectingplayer == TRUE)
|
||||
AIStatus = AI_OFF
|
||||
LoseTarget()
|
||||
else
|
||||
AIStatus = AI_ON
|
||||
|
||||
/mob/living/simple_animal/hostile/blob/blobbernaut/blob_act()
|
||||
return
|
||||
|
||||
@@ -234,7 +234,8 @@
|
||||
blobber.color = blob_reagent_datum.complementary_color
|
||||
blobber.overmind = src
|
||||
blob_mobs.Add(blobber)
|
||||
blobber.selectingplayer = TRUE
|
||||
blobber.AIStatus = AI_OFF
|
||||
blobber.LoseTarget()
|
||||
spawn()
|
||||
var/list/candidates = pollCandidates("Do you want to play as a blobbernaut?", ROLE_BLOB, 1, 100)
|
||||
if(candidates.len)
|
||||
@@ -243,7 +244,8 @@
|
||||
blobber.key = C.key
|
||||
to_chat(blobber, "<span class='biggerdanger'>You are a blobbernaut! You must assist all blob lifeforms in their mission to consume everything!</span>")
|
||||
to_chat(blobber, "<span class='danger'>You heal while standing on blob structures, however you will decay slowly if you are damaged outside of the blob.</span>")
|
||||
blobber.selectingplayer = FALSE
|
||||
if(!blobber.ckey)
|
||||
blobber.AIStatus = AI_ON
|
||||
return
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user