summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/020-5/bracco.txt15
1 files changed, 14 insertions, 1 deletions
diff --git a/npc/020-5/bracco.txt b/npc/020-5/bracco.txt
index 6a914a477..0f5f8b467 100644
--- a/npc/020-5/bracco.txt
+++ b/npc/020-5/bracco.txt
@@ -26,7 +26,8 @@
// TODO: Inventoryplace
// Add Items (if inventory is full, your fault and not mine)
for (.@i=2;.@i < getargcount(); .@i++) {
- getitem getarg(.@i), getarg(.@i+1);
+ if (getarg(.@i+1)) // It may be zero
+ getitem getarg(.@i), getarg(.@i+1);
.@i++;
}
return;
@@ -136,6 +137,18 @@ L_Meltdown:
mes "";
// Returns 50~70% of invested ingots, rounded down. Never returns Coal.
switch (.@id) {
+ case RustyKnife:
+ Meltdown(.@it, 15, IronOre, any(0, 0, 0, 0, 1)); // Exception
+ break;
+ case Knife:
+ Meltdown(.@it, 25, IronOre, any(0, 0, 0, 1)); // Exception
+ break;
+ case SharpKnife:
+ Meltdown(.@it, 50, IronOre, any(0, 0, 1)); // Exception
+ break;
+ case Dagger:
+ Meltdown(.@it, 100, IronOre, rand2(0,1)); // Exception
+ break;
case WoodenSword:
Meltdown(.@it, 500, WoodenLog, rand2(5,10)); // Exception: 25~50% returned
break;