From 79c23b33c5c1a33781d3bb7e2dde9dbce17444a2 Mon Sep 17 00:00:00 2001 From: Ren Erthilo Date: Thu, 3 May 2012 02:52:03 +0100 Subject: [PATCH] TG: Fix to DNA so that if a power block lands on block 11, not all clones come out male. Change to robot restart module to make it clear the cyborg has to be healed before use. Revision: r3447 Author: VivianFoxfoot --- code/game/dna.dm | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/code/game/dna.dm b/code/game/dna.dm index f5339294fa8..25e0cd8ffa3 100644 --- a/code/game/dna.dm +++ b/code/game/dna.dm @@ -221,9 +221,17 @@ if (!output) output = "5" return output -/proc/isblockon(hnumber, bnumber) +/proc/isblockon(hnumber, bnumber , var/UI = 0) + var/temp2 temp2 = hex2num(hnumber) + + if(UI) + if(temp2 >= 2050) + return 1 + else + return 0 + if (bnumber == HULKBLOCK || bnumber == TELEBLOCK) if (temp2 >= 3500 + BLOCKADD) return 1 @@ -313,7 +321,7 @@ H.g_eyes = hex2num(getblock(structure,9,3)) H.b_eyes = hex2num(getblock(structure,10,3)) - if (isblockon(getblock(structure, 11,3),11)) + if (isblockon(getblock(structure, 11,3),11 , 1)) H.gender = FEMALE else H.gender = MALE