diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-12-18 15:17:46 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-12-18 15:17:46 -0300 |
commit | c1bea2545a779a7e2ec6a1d6f57607b2fd83b471 (patch) | |
tree | c3e2920681379e74aafeeb2a6aeb6610138361e4 | |
parent | 443a0aebde0a5ed239367db6bc0ccfd46dd2caf3 (diff) | |
download | serverdata-c1bea2545a779a7e2ec6a1d6f57607b2fd83b471.tar.gz serverdata-c1bea2545a779a7e2ec6a1d6f57607b2fd83b471.tar.bz2 serverdata-c1bea2545a779a7e2ec6a1d6f57607b2fd83b471.tar.xz serverdata-c1bea2545a779a7e2ec6a1d6f57607b2fd83b471.zip |
Cyndala - Bleach anything
This code needs a rewrite
-rw-r--r-- | npc/003-6/cyndala.txt | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/npc/003-6/cyndala.txt b/npc/003-6/cyndala.txt index 055cdce1f..fa901575c 100644 --- a/npc/003-6/cyndala.txt +++ b/npc/003-6/cyndala.txt @@ -122,15 +122,10 @@ function item_is_bleachable getitemlink(@inventorylist_id[.@item_index]), @inventorylist_id[.@item_index]; - if (@inventorylist_card1[.@item_index] != 0) { - if ((@inventorylist_card1[.@item_index] > YellowDye) || - (@inventorylist_card1[.@item_index] < CrimsonDye)) { + if (@inventorylist_card1[.@item_index] == 0) return false; - } - .@is_bleachable = true; - } - return .@is_bleachable; + return true; } function remove_cards_from_item @@ -152,10 +147,10 @@ function remove_cards_from_item } speech S_LAST_NEXT, - l("Your mind is set? You will probably lose the color dye during this process."); + l("Your mind is set? You will probably lose the dye or card during this process. You're bleaching a %s by the way.", getitemlink(@inventorylist_id[.@item_index])); switch (askyesno()) { - case 1: + case ASK_YES: speech S_FIRST_BLANK_LINE | S_LAST_NEXT, l("Ok, let me see..."), l("..."); @@ -173,7 +168,7 @@ function remove_cards_from_item l("..."), l("Here it is, clean like a whistle!"); break; - case 2: + default: speech S_FIRST_BLANK_LINE | S_LAST_NEXT, l("Is it truly a hard choice to make?"); break; |