mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 22:50:26 +01:00
Slime split fixes. (#49734)
* Adult slimes death fix. Adult slimes on death drop split on turf. * Slime sptil fix. Slime appears on turf on split. * Slime split fix. Slime don't split while in closet, etc. * drip of flexibility Co-Authored-By: XDTM <heliumt@yahoo.it> * drip of flexibility Co-Authored-By: XDTM <heliumt@yahoo.it> * drip of flexibility Co-Authored-By: XDTM <heliumt@yahoo.it> Co-authored-by: XDTM <heliumt@yahoo.it>
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
return
|
||||
if(!gibbed)
|
||||
if(is_adult)
|
||||
var/mob/living/simple_animal/slime/M = new(loc, colour)
|
||||
var/mob/living/simple_animal/slime/M = new(drop_location(), colour)
|
||||
M.rabid = TRUE
|
||||
M.regenerate_icons()
|
||||
|
||||
|
||||
@@ -241,7 +241,7 @@
|
||||
update_action_buttons_icon()
|
||||
|
||||
if(amount_grown >= SLIME_EVOLUTION_THRESHOLD && !buckled && !Target && !ckey)
|
||||
if(is_adult)
|
||||
if(is_adult && loc.AllowDrop())
|
||||
Reproduce()
|
||||
else
|
||||
Evolve()
|
||||
|
||||
@@ -174,6 +174,7 @@
|
||||
var/new_nutrition = round(nutrition * 0.9)
|
||||
var/new_powerlevel = round(powerlevel / 4)
|
||||
var/datum/component/nanites/original_nanites = GetComponent(/datum/component/nanites)
|
||||
var/turf/drop_loc = drop_location()
|
||||
|
||||
for(var/i=1,i<=4,i++)
|
||||
var/child_colour
|
||||
@@ -184,7 +185,7 @@
|
||||
else
|
||||
child_colour = colour
|
||||
var/mob/living/simple_animal/slime/M
|
||||
M = new(loc, child_colour)
|
||||
M = new(drop_loc, child_colour)
|
||||
if(ckey)
|
||||
M.set_nutrition(new_nutrition) //Player slimes are more robust at spliting. Once an oversight of poor copypasta, now a feature!
|
||||
M.powerlevel = new_powerlevel
|
||||
|
||||
Reference in New Issue
Block a user