From 4a7cb6a066e9b0cf829b6201b9290daffa92f71e Mon Sep 17 00:00:00 2001 From: SouDescolado Date: Wed, 6 Jan 2016 10:18:36 -0200 Subject: [PATCH] Fixes abandoned crates minigame Replaces the user input 0 with "z"(Code side only. Player can still use 0). Wont return 0 as "cows" anymore. Remove useless variable --- code/modules/mining/abandoned_crates.dm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/code/modules/mining/abandoned_crates.dm b/code/modules/mining/abandoned_crates.dm index 044ce578d40..638ac5d5a7c 100644 --- a/code/modules/mining/abandoned_crates.dm +++ b/code/modules/mining/abandoned_crates.dm @@ -13,8 +13,7 @@ /obj/structure/closet/crate/secure/loot/New() ..() - var/list/digits = list("1", "2", "3", "4", "5", "6", "7", "8", "9", "0") - + var/list/digits = list("1", "2", "3", "4", "5", "6", "7", "8", "9", "z") code = "" for(var/i = 0, i < codelen, i++) var/dig = pick(digits) @@ -169,7 +168,7 @@ user << "You leave the crate alone." else user << "A red light flashes." - lastattempt = input + lastattempt = replacetext(input, 0, "z") attempts-- if (attempts == 0) user << "The crate's anti-tamper system activates!"