mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 05:27:01 +01:00
Tweaked metroids a bit and fixed some bugs. Most noteably, Metroids could still evolve/reproduce if they were dead.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2224 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -155,8 +155,6 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if((hungry || starving) && targets.len > 0)
|
||||
if(!istype(src, /mob/living/carbon/metroid/adult))
|
||||
if(!starving)
|
||||
@@ -216,7 +214,7 @@
|
||||
|
||||
AIprocess() // the master AI process
|
||||
|
||||
if(AIproc) return
|
||||
if(AIproc || stat == 2) return
|
||||
|
||||
var/hungry = 0
|
||||
var/starving = 0
|
||||
@@ -476,6 +474,9 @@
|
||||
|
||||
|
||||
handle_nutrition()
|
||||
|
||||
if(stat == 2) return // haha wow
|
||||
|
||||
if(prob(20))
|
||||
if(istype(src, /mob/living/carbon/metroid/adult)) nutrition-=rand(4,6)
|
||||
else nutrition-=rand(2,3)
|
||||
|
||||
@@ -217,6 +217,11 @@
|
||||
if(amount_grown >= 10)
|
||||
switch(input("Are you absolutely sure you want to reproduce? Your current body will cease to be, but your consciousness will be transferred into a produced metroid.") in list("Yes","No"))
|
||||
if("Yes")
|
||||
|
||||
if(stat)
|
||||
src << "<i>I must be conscious to do this...</i>"
|
||||
return
|
||||
|
||||
var/number = pick(2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4)
|
||||
var/list/babies = list()
|
||||
for(var/i=1,i<=number,i++) // reproduce (has a small chance of producing 3 or 4 offspring)
|
||||
|
||||
Reference in New Issue
Block a user