diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-12-24 08:10:09 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-12-24 08:10:09 -0300 |
commit | 562b1e1a94eda490d956933f78ed6502c87f5496 (patch) | |
tree | 568603808925c93aea0a31837a1b252b6629184a /npc/craft | |
parent | 07a43e4806d0e8f41b45abff9bf311c8a2d25e35 (diff) | |
download | serverdata-562b1e1a94eda490d956933f78ed6502c87f5496.tar.gz serverdata-562b1e1a94eda490d956933f78ed6502c87f5496.tar.bz2 serverdata-562b1e1a94eda490d956933f78ed6502c87f5496.tar.xz serverdata-562b1e1a94eda490d956933f78ed6502c87f5496.zip |
Add half-precision failsafe to Alchemy.
Diffstat (limited to 'npc/craft')
-rw-r--r-- | npc/craft/recipes.txt | 6 |
1 files changed, 6 insertions, 0 deletions
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); |