From 0453e9cbd0019a4a58fe31585a50e31ece4db731 Mon Sep 17 00:00:00 2001 From: Ruin0x11 Date: Sat, 1 Oct 2022 21:09:12 -0700 Subject: [PATCH] [2.14.1.0] Release --- 2.05-custom-gx/custom_autopick.hsp | 10 ++++++++++ dist/2.05-custom-gx/config.txt | 5 +++++ dist/2.05-custom-gx/data/autopick.txt | 3 ++- 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/2.05-custom-gx/custom_autopick.hsp b/2.05-custom-gx/custom_autopick.hsp index b66c49c0..53b8765f 100644 --- a/2.05-custom-gx/custom_autopick.hsp +++ b/2.05-custom-gx/custom_autopick.hsp @@ -307,6 +307,16 @@ sreplace s, s, lang("祝福された", " blessed "), " " p(1) = 1 } + if ( instr(s, 0, lang("呪われていない", " uncursed ")) != (-1) ) { + if ( inv(INV_ITEM_KNOWN, cnt2) < ITEM_KNOWN_QUALITY ) { + continue + } + if ( inv(INV_ITEM_STATUS, cnt2) != ITEM_STATUS_NORMAL ) { + continue + } + sreplace s, s, lang("呪われていない", " uncursed "), " " + p(1) = 1 + } if ( instr(s, 0, lang("呪われた", " cursed ")) != (-1) ) { if ( inv(INV_ITEM_KNOWN, cnt2) < ITEM_KNOWN_QUALITY ) { continue diff --git a/dist/2.05-custom-gx/config.txt b/dist/2.05-custom-gx/config.txt index 3d1c0287..50e13a20 100644 --- a/dist/2.05-custom-gx/config.txt +++ b/dist/2.05-custom-gx/config.txt @@ -174,5 +174,10 @@ dmgPopupEvade. "1" dmgPopupFontSize. "12" dmgPopupSpeed. "20" +(Autopickup) +autopick. "0" +autopick_sound. "1" +autodestroy_sound. "1" + (auto fix) diff --git a/dist/2.05-custom-gx/data/autopick.txt b/dist/2.05-custom-gx/data/autopick.txt index eb26794f..7850dd4d 100644 --- a/dist/2.05-custom-gx/data/autopick.txt +++ b/dist/2.05-custom-gx/data/autopick.txt @@ -15,7 +15,7 @@ # '?' after an entry means to prompt for picking/destroying it first. # '%' after an entry means to autosave when it's picked up. # '=' after an entry means to set the item as no-drop when it's picked up. -# ':sound123' after an entry means to play the sound with ID 123 when it's picked up. +# ':sound123' after an entry means to play the sound with ID 123 when it matches. # # You can store up to 10 sets of autopickup rules in each save folder, # named autopick.txt, autopick_1.txt, autopick_2.txt, and so on. @@ -75,6 +75,7 @@ all ore:sound24 # special item # precious item # blessed item +# uncursed item # cursed item # doomed item # alive item