From fea2fc3fef5bb0d35ae4ee0b28e05cf390289435 Mon Sep 17 00:00:00 2001 From: carnie Date: Sat, 27 Apr 2013 06:40:17 +0100 Subject: [PATCH] Fixes for admin-spawned dnainjectors: repeat_string has been simplified (it wasn't making NULLED_SE and NULLED_UI to the correct size). Fix for Overpowered mutations (HULK and TELE) not manifesting. A typo was the cause. Admin-spawnable injectors always succeed. This code already existed (I believe this is how they used to function), but it did not work as the argument was not passed correctly. This also removed snowflake code for the darkbundle telemut injector. Thanks to Giacom, wouldn't have found these without him. --- code/__HELPERS/text.dm | 13 ++++--------- code/game/dna.dm | 4 ++-- code/game/gamemodes/setupgame.dm | 4 ++-- code/game/objects/items/weapons/dna_injector.dm | 5 +---- 4 files changed, 9 insertions(+), 17 deletions(-) diff --git a/code/__HELPERS/text.dm b/code/__HELPERS/text.dm index ead4290bfde..88c1be1a59d 100644 --- a/code/__HELPERS/text.dm +++ b/code/__HELPERS/text.dm @@ -340,15 +340,10 @@ var/list/binary = list("0","1") for(var/i=1, i<=length, i++) . += pick(characters) -/proc/repeat_string(length, string="") - var/len = length(string) - if(!len) return string - while(len