From 05a2538114972de94352e66586f6f2a5affea9c6 Mon Sep 17 00:00:00 2001 From: Emistry Date: Mon, 25 Jan 2016 23:00:26 +0800 Subject: Replaced the SEX_FEMALE/SEX_MALE constants to scripts, where appropriate --- npc/re/cities/dewata.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'npc/re/cities') diff --git a/npc/re/cities/dewata.txt b/npc/re/cities/dewata.txt index 8c2551a2b..7817db3b8 100644 --- a/npc/re/cities/dewata.txt +++ b/npc/re/cities/dewata.txt @@ -548,7 +548,7 @@ dewata,89,191,6 script Small Shrine#dew1 CLEAR_NPC,{ next; } else if (.@stat & 128) { mes "- The shrine envelops you in a loving aura. -"; - if ((Sex == 0 && compare(.@wish$,.@wishes$[26])) || (Sex == 1 && compare(.@wish$,.@wishes$[27]))) + if ((Sex == SEX_FEMALE && compare(.@wish$,.@wishes$[26])) || (Sex == SEX_MALE && compare(.@wish$,.@wishes$[27]))) specialeffect2 EF_LIGHTSPHERE; next; } @@ -749,7 +749,7 @@ OnTouch: dewata,269,208,4 script Little Kid in Town#dew 4_M_DEWBOY,2,3,{ OnTouch: mes "[Kid]"; - mes "Hey "+((Sex)?"bro":"sis")+", look at that man!"; + mes "Hey "+ (Sex == SEX_MALE ? "bro" : "sis") +", look at that man!"; next; mes "[Kid]"; mes "He's been lying there for a week doin' nothin'..."; -- cgit v1.2.3-70-g09d2