From 3db031f81a9ec4b5f8cb136cee1183f91eabadf6 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 13 Nov 2019 20:00:41 -0300 Subject: Lower dupe rate in repeated equipment recipes in 50% --- 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 852047b12..522ac9700 100644 --- a/npc/craft/recipes.txt +++ b/npc/craft/recipes.txt @@ -599,6 +599,12 @@ function script MakeBlueprint { // Now you'll learn some recipe! .@rcp=any_of(.@recipes); + + // Double precision failsafe + if (RECIPES_EQUIPMENT[.@rcp]) + .@rcp=any_of(.@recipes); + + // Maybe you already knew it? if (RECIPES_EQUIPMENT[.@rcp]) { .@mpot=rand2(900*.@rarity, 1000*.@rarity); dispbottom l("It was a recipe you already knew... (+ @@ Mobpt)", .@mpot); -- cgit v1.2.3-60-g2f50