summaryrefslogtreecommitdiff
path: root/npc/craft/recipes.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-11-13 20:00:41 -0300
committerJesusaves <cpntb1@ymail.com>2019-11-13 20:00:41 -0300
commit3db031f81a9ec4b5f8cb136cee1183f91eabadf6 (patch)
tree02201177299733a94779b60bdbf51c71dd32b749 /npc/craft/recipes.txt
parent198046b74837a51b2dc8257d53239cbaf5ee6668 (diff)
downloadserverdata-3db031f81a9ec4b5f8cb136cee1183f91eabadf6.tar.gz
serverdata-3db031f81a9ec4b5f8cb136cee1183f91eabadf6.tar.bz2
serverdata-3db031f81a9ec4b5f8cb136cee1183f91eabadf6.tar.xz
serverdata-3db031f81a9ec4b5f8cb136cee1183f91eabadf6.zip
Lower dupe rate in repeated equipment recipes in 50%
Diffstat (limited to 'npc/craft/recipes.txt')
-rw-r--r--npc/craft/recipes.txt6
1 files changed, 6 insertions, 0 deletions
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);