From 72d158e715ce980b7d100b3b2e6dd99c1d722a6f Mon Sep 17 00:00:00 2001 From: mdr55 <98430078+mdr55@users.noreply.github.com> Date: Sat, 18 Jan 2025 05:01:38 +1100 Subject: [PATCH] Update combat-trainer.lic --- combat-trainer.lic | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/combat-trainer.lic b/combat-trainer.lic index 63ee4f4c73..c26206904b 100644 --- a/combat-trainer.lic +++ b/combat-trainer.lic @@ -819,8 +819,9 @@ class LootProcess @equipment_manager.stow_weapon(game_state.weapon_name) loop do - result = DRC.bput("perform #{ritual} on #{mob_noun}", @rituals['butcher'], @rituals['failures']) - break if result.empty? || @rituals['failures'].any? { |msg| result.include?(msg) } + result = DRC.bput("perform #{ritual} on #{mob_noun}", @rituals['butcher'], @rituals['failures'], @rituals['construct']) + game_state.construct(mob_noun) if result.include?(@rituals['construct']) + break if result.empty? || @rituals['failures'].any? { |msg| result.include?(msg) || result.include?(@rituals['construct'] } DRC.bput("drop my #{DRC.right_hand}", 'You drop', 'You discard', 'Please rephrase') break if @dissect_and_butcher && !@ritual_type.eql?('butcher') @@ -993,8 +994,12 @@ class LootProcess waitrt? fput("dissect") return false - when 'This ritual may only be performed on a corpse', 'A failed or completed ritual has rendered', 'You realize after a few seconds', 'prevents a meaningful dissection', 'Rituals do not work upon constructs' + when 'This ritual may only be performed on a corpse', 'A failed or completed ritual has rendered', 'You realize after a few seconds', 'prevents a meaningful dissection' return false + when 'Rituals do not work upon constructs' + game_state.construct(mob_noun) + game_state.undissectable(mob_noun) + return false when 'While likely a fascinating study', "That'd be a waste of time.", 'You do not yet possess the knowledge' game_state.undissectable(mob_noun) @dissect_cycle_skills.delete("First Aid")