diff options
Diffstat (limited to 'npc')
-rw-r--r-- | npc/items/recipes.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/npc/items/recipes.txt b/npc/items/recipes.txt index e85bf2ba..485336e3 100644 --- a/npc/items/recipes.txt +++ b/npc/items/recipes.txt @@ -169,7 +169,13 @@ function script MakeBlueprint { } - // We now (maybe) have a .@recipes array set + // We don't have a .@recipes array D: + if (array_entries(.@recipes) <= 0) { + dispbottom l("This blueprint was blank."); + return; + } + + // Select a recipe randomly .@rcp=any_of(.@recipes); // Double precision failsafe |