Talk:Lucky (buff)

Need help researching:
Hello all, I am not too familiar with the game source but I have been doing my best. In the code, Player.RollLuck is a function which seems to use the player's luck stat to determine various events such as fairy appearances, Travelling Merchant wares, loot drops, etc. I would appreciate someone more familiar with how the game code is structured to take a look and see how this affects things more numerically. Breathlessblizzard (talk) 01:31, 18 May 2020 (UTC)

luck boosters
I did some digging, and it looks like the Lantern event adds 0.3f luck, and having a garden gnome nearby adds 0.2f. At a guess, a full 1.0f would be a double drop rate. update: i looked into the items prohibited from luck scaling, and they appear to be: - queen slime hook - slime hook - bee gun - bee keeper - bee's knees - bee clothing - warrior/mage/ranger/summoner emblem - breaker blade/clockwork assault rifle/laser rifle/firecracker (new whip dropped by wof) - moonlord stuff: meowmere/terrarian/star wrath/sdmg/celebration mk2/last prism/lunar flare/rainbow crystal staff/lunar portal staff - betsy stuff: flying dragon/aerial bane/betsy's wrath/sky dragon's fury - dd2 event stuff: ogre mask/apprentice scarf/squire shield/huntress buckler/monk belt/inf wisdom tome/phantom phoenix/inferno brand/sleepy octopod - cont: ghastly glaive/creeper egg/war table/war table banner/gato egg/dragon egg - martian madness: xenopopper/xeno staff/laser machinegun/electrosphere launcher/influx waver/cosmic car key - harpy feather lol

-endimyonn

Negative Luck
Not sure if it's actually negative in code, but killing ladybugs definitely drops your luck score enough for the wizard to comment about it Breathlessblizzard (talk) 06:46, 18 May 2020 (UTC)

Maximum cap is 1f, minimum is -0.7f as seen in Player.cs Breathlessblizzard (talk) 06:48, 18 May 2020 (UTC)

i'm guessing luck potions add 0.5 to that (endimyonn)

On line 11317 of Player.cs, there is code that suggests you gain luck from having the correct biome torch near you, and lose it for otherwise Breathlessblizzard (talk) 06:57, 18 May 2020 (UTC)