summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2023-01-03 13:49:08 -0300
committerJesusaves <cpntb1@ymail.com>2023-01-03 13:49:08 -0300
commitda6dffb6547d439278b702a3239f6363baea384b (patch)
tree4d6ce5be87479e3c7eb4bfbf6ba7b94ea7f20ade
parent341b008052b854c1168469a450df393c5d5e0905 (diff)
downloadserverdata-da6dffb6547d439278b702a3239f6363baea384b.tar.gz
serverdata-da6dffb6547d439278b702a3239f6363baea384b.tar.bz2
serverdata-da6dffb6547d439278b702a3239f6363baea384b.tar.xz
serverdata-da6dffb6547d439278b702a3239f6363baea384b.zip
Fix indent
-rw-r--r--npc/020-5/bracco.txt30
1 files changed, 16 insertions, 14 deletions
diff --git a/npc/020-5/bracco.txt b/npc/020-5/bracco.txt
index cc34d405c..3716642d6 100644
--- a/npc/020-5/bracco.txt
+++ b/npc/020-5/bracco.txt
@@ -57,25 +57,27 @@
break;
}
- // "Unique" items are never refunded
- if (.@recipe_qty <= 1) continue;
+ // "Unique" items are never refunded
+ if (.@recipe_qty <= 1) continue;
- // Coal is NEVER refunded
- if (.@recipe_item == Coal) continue;
+ // Coal is NEVER refunded
+ if (.@recipe_item == Coal) continue;
- // New rates
- .@mini = .@recipe_qty * 3 / 10 + 1; // Minimum: 30% + 1
- .@maxi = .@recipe_qty / 2; // Maximum: 50% + 1
+ // TODO: Maybe give Coal as (item level / 20)?
- // Some sanitizing (should never happen but you can never be sure)
- // (Could only happen if qty == 1, which is skipped)
- if (.@mini > .@maxi)
- .@maxi = .@mini;
+ // New rates
+ .@mini = .@recipe_qty * 3 / 10 + 1; // Minimum: 30% + 1
+ .@maxi = .@recipe_qty / 2; // Maximum: 50% + 1
- .@ammo = rand2(.@mini, .@maxi);
+ // Some sanitizing (should never happen but you can never be sure)
+ // (Could only happen if qty == 1, which is skipped)
+ if (.@mini > .@maxi)
+ .@maxi = .@mini;
- getitem .@recipe_item, .@ammo;
- mesc l("* Acquired @@ @@!", .@ammo, getitemlink(.@recipe_item));
+ .@ammo = rand2(.@mini, .@maxi);
+
+ getitem .@recipe_item, .@ammo;
+ mesc l("* Acquired @@ @@!", .@ammo, getitemlink(.@recipe_item));
}
}
return .@item;