diff options
Diffstat (limited to 'db/re/item_db.conf')
-rw-r--r-- | db/re/item_db.conf | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/db/re/item_db.conf b/db/re/item_db.conf index f0f390d9c..26b423202 100644 --- a/db/re/item_db.conf +++ b/db/re/item_db.conf @@ -2534,10 +2534,16 @@ item_db: ( noselltonpc: true } Script: <" + setarray .@s, SantaGlobe, SnowmanGlobe, UglyChristmasSweater, MercBoxB, IceGladius; setarray .@r, SantaGlobe, SnowmanGlobe, UglyChristmasSweater, TneckSweater, MercBoxA, MercBoxA, MercBoxB, ElixirOfLife, NoviceWand, LeadOre, DarkDesertMushroom; setarray .@c, BronzeGift, IcedBottle, TneckSweater, MercBoxA, MercBoxA, ClothoLiquor, Dagger, Dagger, HastePotion, HerbalTea, StrengthPotion, TrainingWand; - // 27% rare chance only - if (rand(0,100) < 27) { + .@al=rand(0,100); + // 1% super rare chance + if (.@al < 1) { + .@n=rand(getarraysize(.@s)); + getitem .@s[.@n], 1; + // 26% rare chance + } else if (rand(0,100) < 27) { .@n=rand(getarraysize(.@r)); getitem .@r[.@n], 1; } else { |