From 3567bb729968303c53054f7d7aae1ae1712769b1 Mon Sep 17 00:00:00 2001 From: jj Date: Tue, 19 Mar 2013 18:35:06 +0100 Subject: [PATCH] exterminate: fix gender detection --- scripts/exterminate.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/exterminate.rb b/scripts/exterminate.rb index ca568a548..2e75bca99 100644 --- a/scripts/exterminate.rb +++ b/scripts/exterminate.rb @@ -73,10 +73,10 @@ EOS when 'him', 'her', 'it', 'that' if him = df.unit_find - case him.race_tg.caste[him.caste].caste_id - when 'FEMALE'; puts 'its a she !' if race != 'her' - when 'MALE'; puts 'its a he !' if race != 'him' - else; puts 'its an it !' if race != 'it' and race != 'that' + case him.race_tg.caste[him.caste].gender + when 0; puts 'its a she !' if race != 'her' + when 1; puts 'its a he !' if race != 'him' + else; puts 'its an it !' if race != 'it' and race != 'that' end slayit[him] else