summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rw-r--r--npc/craft/recipes.txt31
1 files changed, 31 insertions, 0 deletions
diff --git a/npc/craft/recipes.txt b/npc/craft/recipes.txt
index ded8fd226..4c54667d8 100644
--- a/npc/craft/recipes.txt
+++ b/npc/craft/recipes.txt
@@ -383,3 +383,34 @@ function script MakeBlueprint {
return;
}
+// Create a blueprint based on level. Extra chance for weaker Blueprint.
+// Level equivalents: 1: (1~20) 2: (21~44), 3: (45~75), 4: (76~99), 5: 100+
+function script MakeRandomBlueprint {
+ array_push(.@blueprints, AlchemyBlueprintA);
+ array_push(.@blueprints, EquipmentBlueprintA);
+ if (BaseLevel > 20) {
+ array_push(.@blueprints, AlchemyBlueprintB);
+ array_push(.@blueprints, EquipmentBlueprintB);
+ }
+ if (BaseLevel > 44) {
+ array_push(.@blueprints, AlchemyBlueprintB);
+ array_push(.@blueprints, EquipmentBlueprintB);
+ array_push(.@blueprints, AlchemyBlueprintC);
+ array_push(.@blueprints, EquipmentBlueprintC);
+ }
+ if (BaseLevel > 75) {
+ array_push(.@blueprints, AlchemyBlueprintC);
+ array_push(.@blueprints, EquipmentBlueprintC);
+ array_push(.@blueprints, AlchemyBlueprintD);
+ array_push(.@blueprints, EquipmentBlueprintD);
+ }
+ if (BaseLevel > 100) {
+ array_push(.@blueprints, AlchemyBlueprintD);
+ array_push(.@blueprints, EquipmentBlueprintD);
+ array_push(.@blueprints, AlchemyBlueprintE);
+ array_push(.@blueprints, EquipmentBlueprintE);
+ }
+ getitem any_of(.@blueprints), 1;
+ return;
+}
+