From 562b1e1a94eda490d956933f78ed6502c87f5496 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 24 Dec 2021 08:10:09 -0300 Subject: Add half-precision failsafe to Alchemy. --- npc/craft/recipes.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'npc/craft/recipes.txt') diff --git a/npc/craft/recipes.txt b/npc/craft/recipes.txt index 95cce3aad..755a96258 100644 --- a/npc/craft/recipes.txt +++ b/npc/craft/recipes.txt @@ -406,6 +406,12 @@ function script MakeBlueprint { // Now you'll learn some recipe! .@rcp=any_of(.@recipes); + + // Half precision failsafe + if (RECIPES_EQUIPMENT[.@rcp] && any(true, false)) + .@rcp=any_of(.@recipes); + + // Maybe you already knew it? if (RECIPES_ALCHEMY[.@rcp]) { .@mpot=rand2(900, 1000*.@rarity); dispbottom l("It was a recipe you already knew... (+ @@ Mobpt)", .@mpot); -- cgit v1.2.3-60-g2f50