mirror of
https://github.com/prosolis/gogobee.git
synced 2026-07-15 08:32:41 +00:00
Adventure: skip overlevel penalty when no higher tier is accessible
Previously, advOverlevelMultiplier penalized every action where the player's effective level exceeded the location's MinLevel by 4+, with no escape valve. That punished players grinding at their max-available tier (e.g., a level 50 character at the highest mining location they qualify for, with nothing higher unlocked). Now: the multiplier short-circuits to 1.0 when no accessible higher-tier location of the same activity exists for that player. Signature changed from (effectiveLevel, minLevel) to (effectiveLevel, *AdvLocation) so the helper can scan the activity's location list. combat_bridge.go updated to match. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -524,7 +524,7 @@ func (p *AdventurePlugin) resolveDungeonAction(
|
||||
|
||||
// Overlevel penalty
|
||||
skillLevel := advEffectiveSkill(char, loc.Activity, bonuses)
|
||||
overlevelMult := advOverlevelMultiplier(skillLevel, loc.MinLevel)
|
||||
overlevelMult := advOverlevelMultiplier(skillLevel, loc)
|
||||
|
||||
// Loot on success/exceptional
|
||||
if result.Outcome == AdvOutcomeSuccess || result.Outcome == AdvOutcomeExceptional {
|
||||
|
||||
Reference in New Issue
Block a user