From 8338189fb60e70dcebef3dd2e7fa669d5491b231 Mon Sep 17 00:00:00 2001 From: "vageyenaman@gmail.com" Date: Sat, 17 Sep 2011 02:58:25 +0000 Subject: [PATCH] Fixed metroid behavior code so that it's now possible to "tame" Metroids by simply feeding them a lot. This should cut down on the massive xenobio Metroid rampages, and make traitor-ranching metroids more worth it. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2210 316c924e-a436-60f5-8080-3fe189b3f50e --- code/modules/mob/living/carbon/metroid/life.dm | 2 +- code/modules/mob/living/carbon/metroid/metroid.dm | 10 ++++++++-- code/modules/mob/living/carbon/metroid/powers.dm | 3 ++- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/code/modules/mob/living/carbon/metroid/life.dm b/code/modules/mob/living/carbon/metroid/life.dm index a75ea331921..cf74e60080d 100644 --- a/code/modules/mob/living/carbon/metroid/life.dm +++ b/code/modules/mob/living/carbon/metroid/life.dm @@ -58,7 +58,7 @@ if(Discipline >= 5 && rabid) if(prob(60)) rabid = 0 - if(prob(20)) + if(prob(10)) Discipline-- diff --git a/code/modules/mob/living/carbon/metroid/metroid.dm b/code/modules/mob/living/carbon/metroid/metroid.dm index 7424d98030f..f0e60859701 100644 --- a/code/modules/mob/living/carbon/metroid/metroid.dm +++ b/code/modules/mob/living/carbon/metroid/metroid.dm @@ -458,8 +458,9 @@ spawn() SStun = 1 - sleep(rand(25,50)) - SStun = 0 + sleep(rand(45,60)) + if(src) + SStun = 0 Victim = null anchored = 0 @@ -487,6 +488,11 @@ if(Discipline == 1) attacked = 0 + spawn() + SStun = 1 + sleep(rand(55,65)) + if(src) + SStun = 0 Victim = null anchored = 0 diff --git a/code/modules/mob/living/carbon/metroid/powers.dm b/code/modules/mob/living/carbon/metroid/powers.dm index be452ec2cb7..e38b557427f 100644 --- a/code/modules/mob/living/carbon/metroid/powers.dm +++ b/code/modules/mob/living/carbon/metroid/powers.dm @@ -142,7 +142,6 @@ else icon_state = "baby metroid" - Victim = null canmove = 1 anchored = 0 @@ -170,6 +169,8 @@ if(client) src << "I have stopped feeding..." + Victim = null + /mob/living/carbon/metroid/proc/Feedstop() if(Victim) if(Victim.client) Victim << "[src] has let go of your head!"