Luck
Attributestart 1up to 20 with points
Well-being, fortune, success. Lucky character sometimes finds silver in the most unexpected places. Although the world is more complicated than dice, often circumstances are favorable for such a character.
The game says
What it does
Melee critical hit chance +1% per 2 points.
How it is calculated
Chance = 10% × blows already in the combo (0, 1 or 2) + 5% with Critical strike + Luck / 2 (whole numbers). A crit deals ×2, or ×3 if the blow is under 15.
- CharacterProvider.cs:1309
updCritChance += HasAbility(characterClass.CharacterId, EAbilityId.CriticalStrike) ? 5 : 0; updCritChance += GetStatValue(characterClass.CharacterId, EStatId.Luck) / 2;
- CombatController.cs:1137
var critChance = _baseCritChance * attackerCV.CurComboCount; critChance = _characterProvider.GetMeleeAbilitiesCritChance(attackerCV, critChance);
- CombatController.cs:1140
typedDamage *= typedDamage >= 15 ? 2 : 3;
- CharacterProvider.cs:1309
Loot in chests and on bodies: every roll +1% per 2 points, and upgraded weapons more often.
How it is calculated
An item is kept when a roll 0-99 is below its chance + Luck / 2. Weapon upgrade: +3 below Luck / 4 + 4; the +2 and +1 bands also widen with Luck.
- LootItemsDatabase.cs:228
probabilityPercent += luck / 2;
- LootItemsDatabase.cs:210
var chanceLevel5 = luck / 4 + 4;
- LootItemsDatabase.cs:228
Treasure maps from bodies: the first 3 always drop, then 75% + 1% per 2 points. Treasure notes: officers 12% + 1% per 2 points, others 4% + 1% per 4.
How it is calculated
Map chance = 100% while you have found fewer than 3 maps, else 75% + Luck / 2 (85% at the cap). Note chance = 12% + Luck / 2 for officers, 4% + Luck / 4 for the rest.
- TreasureStorage.cs:121
< 3 => 100, _ => 75 + playerLuck/2
- TreasureStorage.cs:132
=> 12 + playerLuck/2, _ => 4 + playerLuck/4
- TreasureStorage.cs:121
Boardings go wrong less often: ships come unhooked with 7% − 1% per 4 points, and with crew morale under 20 the crew turns on you with 20% − 1% per 2 points.
How it is calculated
Unhook = 7% − Luck / 4 (2% at the cap). Mutiny at morale < 20 = 20% − Luck / 2 (10% at the cap).
- BoardingController.cs:563
if (7 - playerLuck/4 > UnityEngine.Random.Range(0, 100) && targetShipId != initiatingShipId)
- BoardingController.cs:571
if (crewMorale < 20 && 20 - playerLuck/2 > UnityEngine.Random.Range(0, 100))
- BoardingController.cs:563
Taverns offer as many extra sailors as your Luck, up to the tavern's limit.
How it is calculated
Sailors = random 30-70% of the tavern's limit + Luck, at most the limit; renewed every 10 days.
- CrewHireWindowController.cs:203
var newSailorsCount = Math.Min((int)UnityEngine.Random.Range(maxSailorsCount * 0.3f, maxSailorsCount * 0.7f) + playerLuck, maxSailorsCount);
- CrewHireWindowController.cs:203
Ships made for shipyards and fights carry upgrades more often, up to Luck 10.
How it is calculated
Each upgrade rolls 1 in (base + rank bonus + max(0, 10 − Luck)); past Luck 10 there is no more gain.
- ShipUpgradesFiller.cs:53
var luckMod = 10 - _luck;
- ShipUpgradesFiller.cs:53
Officers for hire in taverns: the code counts a chance of 20% + Luck, but the check is switched off, so one is always there.
How it is calculated
chanceForHire = 20 + Luck is counted, then not used: the line that checks it is commented out.
- SpawnerOfficerController.cs:118
var chanceForHire = Random.Range(0, 100) < 20 + playerLuck;
- SpawnerOfficerController.cs:118
At different values
| Luck | Crit chance, % | Loot roll, % | Ships unhook, % |
|---|---|---|---|
| 1 | 0 | 0 | 7 |
| 5 | +2 | +2 | 6 |
| 10 | +5 | +5 | 5 |
| 15 | +7 | +7 | 4 |
| 20 | +10 | +10 | 2 |
How to raise it
- 1 point per new level (from level 43: 2), up to 20.
- Priests: 5 donations of +1 each, for 5 000, 15 000, 40 000, 90 000, 200 000 pesos (each also gives +2 reputation). These go past the cap.
Perks that work with it
Critical Strike Offense Works
Numbers from the game's code, version 0.4210. Each formula shows the file and line it comes from.