summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/craft/alchemy.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/npc/craft/alchemy.txt b/npc/craft/alchemy.txt
index 6e0084596..9022edb84 100644
--- a/npc/craft/alchemy.txt
+++ b/npc/craft/alchemy.txt
@@ -43,9 +43,15 @@ function script AlchemySystem {
// Alchemy loop
.@i=0;
while (.@i < .@m) {
+ .@s=validatecraft(.@craft);
+ // Could not validate (not enough resources)
+ if (!.@s) {
+ mesc l("Not crafting - insufficient materials!"), 1;
+ break;
+ }
.@s=usecraft(.@craft);
.@i++;
- // Failed for whatever reason
+ // Exploiting?!
if (!.@s)
break;
}