Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
WiresForgeOfGoodtential
Reworks the Forge of Potential into a player-controlled risk system with scaling idol requirements, trophy offerings, jackpots and optional high-risk under-tier idol destruction.
By Wire
| Date uploaded | 3 weeks ago |
| Version | 0.4.0 |
| Download link | Wire-WiresForgeOfGoodtential-0.4.0.zip |
| Downloads | 56 |
| Dependency string | Wire-WiresForgeOfGoodtential-0.4.0 |
README
Wire's Forge of Goodtential
Forge of Goodtential changes how the Forge of Potential calculates refinement risk.
The selected idol controls the power and risk of the attempt. An optional trophy can make a safe attempt much more reliable. Lower-tier idols trade stability for a higher jackpot chance.
Refinement never destroys your equipment or its crafting materials. The worst outcome is a reset to the item's normal maximum quality. Idols have a chance to survive every attempt; offered trophies are always consumed.
Quality and base success chance
Let:
- Qmax = the item's normal maximum quality.
- Q = the item's current quality.
- R = extra refinement already gained above the normal cap.
R = max(0, Q - Qmax)
The base success chance is:
Success = max(65%, 90% - 5% × R)
This gives:
| Extra refinement R | Base success |
|---|---|
| 0 | 90% |
| 1 | 85% |
| 2 | 80% |
| 3 | 75% |
| 4 | 70% |
| 5+ | 65% |
The displayed success percentage includes both normal +1 results and jackpot results.
Minimum safe idol
Every item has a minimum safe idol tier for its next refinement.
For an item with a normal maximum quality of 4:
| Target quality | Minimum safe idol |
|---|---|
| Q5-Q7 | Item's native idol tier |
| Q8-Q10 | +1 idol tier |
| Q11-Q13 | +2 idol tiers |
| Q14-Q16 | +3 idol tiers |
| Q17-Q19 | +4 idol tiers |
| Q20-Q22 | +5 idol tiers |
The progression continues until Bloodgold, which remains the highest required tier.
The default selected idol is always the lowest safe idol available for the item.
Safe idols
A safe idol is an idol at or above the minimum safe tier.
Using the minimum safe idol keeps the base success/failure distribution for that refinement level.
Using a stronger idol reduces bad outcomes.
For each idol tier above the minimum:
Ordinary failure multiplier = 0.72 ^ tiers_above
Reset multiplier = 0.45 ^ tiers_above
The probability removed from those outcomes is added to success.
Failure types
Before the item has gained 2 extra quality levels, a failed roll is an ignore result: the item remains unchanged. Idol preservation is rolled independently on every attempt, including successes.
At 2 or more extra quality levels, ordinary failure can lower the item's quality.
At 4 or more extra quality levels, a failure can remove multiple gained quality levels.
At 8 or more extra quality levels, a reset replaces the old item-destruction outcome. The item survives at its natural maximum quality; none of its original crafting materials are lost or returned.
Without extra idol/trophy protection, reset chance on a safe attempt is:
Reset chance = min(6%, 10% × base failure chance)
At 8 or more extra levels, the base failure chance is 35%, so reset chance is 3.5% before protection. All other failures lower quality; quality never falls below the natural maximum.
Trophy offerings
One trophy may be offered on a safe attempt.
Trophies reduce bad outcomes. Their effect depends on the strength of the defeated creature relative to the item being refined.
Each trophy has an internal prestige score. The item also has a reference prestige based on its progression.
For an item above its normal quality cap:
Item tier reference = native tier + (extra quality / 3)
Tier prestige anchors are:
| Tier | Prestige |
|---|---|
| Wooden | 6 |
| Bronze | 20 |
| Iron | 30 |
| Silver | 40 |
| Black Metal | 48 |
| Black Marble | 58 |
| Flametal | 68 |
| Bloodgold | 82 |
Let:
delta = trophy prestige - item prestige
M = clamp(e ^ (-0.17 × (delta + 14)), 0.005, 0.995)
Then:
Ordinary failure ×= M
Reset chance ×= M ^ 1.8
A trophy from an equally prestigious enemy now multiplies ordinary failure chance by about 0.093 (a 90.7% reduction) and reset chance by about 0.014 (a 98.6% reduction). Stronger trophies protect even more, while outdated trophies have little effect.
The risk removed by trophy protection is added to success.
Trophies cannot be used with an under-tier idol.
Idol preservation
An idol has a 50% chance to survive any refinement, whether the result is success, jackpot, ignore, quality loss, or reset.
Offering a trophy improves the chance of keeping the idol. The bonus uses the same trophy strength multiplier M shown above:
Trophy favor = clamp((1 - M) / 0.995, 0, 1)
Idol survival = 50% × (1 + 0.35 × trophy favor)
An equally prestigious trophy increases idol survival to about 66%. The strongest trophies raise it to 67.5% at most (a 35% relative increase over 50%, not +35 percentage points). Outdated trophies provide almost no bonus.
The idol-preservation roll is separate from the refinement result. The offered trophy is always consumed, even if the idol is spared. Under-tier attempts cannot use trophies, so they retain the base 50% chance.
Under-tier idols
An idol below the minimum safe tier can still be used.
This increases the risk of losing several extra quality levels, while making a jackpot more likely. No idol tier can ever destroy the item.
Let:
D = minimum safe idol tier - selected idol tier
For every tier below the minimum:
Success chance -= 2.5 percentage points
Jackpot trigger += 10 percentage points
All non-success probability becomes ignore (before +2 extra quality), quality loss (from +2 onward), or a rare reset (from +8 onward).
Example with R = 3 (3 extra quality levels):
Minimum safe idol:
75% success
25% quality loss
One idol tier below:
72.5% success
27.5% quality loss
30% jackpot trigger on a successful roll
Two idol tiers below:
70% success
30% quality loss
40% jackpot trigger on a successful roll
From R = 4 onward, individual failures can cascade across multiple gained quality levels. Lower-tier idols increase that cascade chance:
Loss cascade continuation chance = base failure chance × (1 + 0.35 × D)
From R = 8 onward, a low-tier idol also has a rare reset outcome, replacing a small part of ordinary failure:
Reset = min(7%, 10% × (1 - success) + 0.5% × (R - 8))
Other failure = (1 - success) - reset
A reset returns the same item to its natural maximum quality. Its normal crafting materials are not lost or returned. Under-tier attempts no longer require free inventory slots for hypothetical returned materials.
Selecting an under-tier idol clears the selected trophy and disables trophy cycling.
Jackpot refinement
Jackpot chance is hidden in the Forge UI.
On a safe attempt, a successful refinement has a 20% chance to become a jackpot.
For each idol tier below the minimum safe tier, the jackpot trigger increases by 10 percentage points.
When a jackpot triggers, the item gains at least +2 quality instead of +1.
After that, each additional quality level has a 20% continuation chance, up to +5 total quality.
If J is the jackpot trigger chance, the quality gain on a successful attempt is:
+1 = 1 - J
+2 = J × 0.80
+3 = J × 0.16
+4 = J × 0.032
+5 = J × 0.008
For the normal 20% jackpot trigger:
+1 = 80%
+2 = 16%
+3 = 3.2%
+4 = 0.64%
+5 = 0.16%
Forge UI
The four Forge slots are:
[Idol] [CI] [Trophy] [CT]
- CI cycles through owned idols.
- CT cycles through owned trophies.
- Cycling is disabled while a refinement is in progress.
- CT is disabled while an under-tier idol is selected.
- If there is nothing to cycle through, the corresponding button is disabled.
- Idol names show the material on the top line and Battle or Protection below it.
- Trophy names omit the redundant word Trophy.
- The orange status line shows only non-zero outcomes.
Possible displayed outcomes are:
success
ignore
fail
reset
Example:
72.5% success 27.5% fail
The jackpot chance is not displayed.
Disclaimer: the code is AI assisted since I barely know C#. Not fully AI nor human. https://ko-fi.com/krosshair
CHANGELOG
Changelog
0.6.1
- The station level box shows the item's tier instead of a required forge level: 1 for Meadows gear, one more for each biome after, and it keeps going past the last one as the item is refined further. It no longer blinks red.
- The idol and trophy swap buttons no longer have an empty slot frame behind them.
0.6.0
- Whether your idol is kept now depends on what happened and what you brought. A success keeps it less often (45%), a setback more often (65%), a reset almost always (85%). Each idol tier above the safe one adds 8 points and each tier below takes 8 away. A trophy adds up to 25 points depending on how well it suits the item. With the safe idol and no trophy it still averages about 50%.
- Idol luck: every idol lost in a row makes the next one 4 points more likely to be kept, up to 12. Keeping one resets it.
- The Forge now picks your weakest idol that can't cost the item a level, or your best one if every idol carries that risk.
- The I and T buttons now show an icon instead of a letter, in the style of the Skills and Trophies buttons above the inventory: the Trophies icon for the trophy, and the Forge of Potential's map icon, restyled to match, for the idol. Each opens a popup like the shield style one, listing the idols or trophies you can use as icons: hover one to see what it does, click it to pick it. Clicking the trophy you're already offering takes it back off.
- Hovering the idol or trophy explains it, in the same tooltip as hovering an item. The idol shows whether it's strong enough, the odds, how often it's kept, and the current safe tier. The trophy shows how much it helps, how much more often your idol is kept with it, and whether its magic was drawn on recently.
0.5.1
- The faster Forge refining no longer does any work while the crafting panel is open; trophy favor is looked up without re-reading save data each time.
- A boss trophy that somehow ended up selected is dropped from the offering instead of turning the attempt into a plain vanilla upgrade.
- Cleaned up unused code and the boss trophy list.
0.5.0
- Replaced the idol and trophy cycle controls with I and T on the original wooden buttons; they disable when there is nothing to cycle through.
- Selection defaults to the strongest owned idol of the item's matching Battle/Protection family, and items remain listed even when only under-tier idols are available. Items sort by success and severity of possible outcomes.
- Forge of Potential refining now takes half as long, including the increase per quality level. Normal crafting is unchanged.
- Ordinary failed refinements lose at most one quality; multilevel "anti-jackpots" are gone.
- Only extremely risky attempts (3+ tiers below the minimum safe idol at 8+ extra quality) can destroy equipment. Under-tier idols cannot accept trophies.
- Boss and Hildir miniboss trophies cannot be sacrificed.
- Trophy favor diminishes through repeated sacrifices of the same trophy, recovers gradually over in-game days, and persists between play sessions.
- An idol can survive success, jackpot, ignore, failure, reset or destruction; a saved idol plays its own reward chime.
- Added below-cap reset protection: an impossible reset instead drops the item to quality 1 and consumes its idol, never upgrading an item accidentally.
- Kept the status display to a single line of result chances. Removed all added idol/trophy hover tooltips, consumption text and fatigue rows.
- Shortened the README and kept the original disclaimer and Ko-fi link. Updated the NexusMods-ready BBCode description.
- No change to the Forge's established native-item-tier versus minimum-safe-idol progression. The latter determines risk bonuses.
0.4.0
- Every outcome can now spare the selected idol: successful upgrades and jackpots included, alongside ignore, quality loss and reset. Without a trophy, the idol survives with a 50% chance.
- Offering a trophy increases idol preservation based on its prestige relative to the item.
favor = clamp((1 - M) / 0.995, 0, 1);idol survival = 50% × (1 + 0.35 × favor), whereMis the existing trophy bad-outcome multiplier. - Equal-prestige trophies increase idol preservation to approximately 66%; sufficiently strong trophies reach a maximum of 67.5% (35% relative boost).
- A trophy is still always consumed and may only be offered with safe idols. No trophy means 50% preservation, regardless of refinement outcome.
- No changes to refinement success/reset odds, under-tier idol restrictions, jackpot probabilities, trophy loot rates or Haldor's stock.
- Updated README to explain universal idol preservation and trophy scaling.
0.3.0
- Trophy offerings are substantially more powerful. Ordinary failure multiplier is now
clamp(exp(-0.17 × (prestige_delta + 14)), 0.005, 0.995); reset uses the multiplier to the power of 1.8. Equal-prestige trophies cut ordinary failure by approximately 90.7% and reset chance by 98.6%. - Removed item destruction entirely, including under-tier idol attempts. No failed refinement deletes equipment, destroys its original crafting materials, or triggers vanilla item destruction/material-return logic.
- Under-tier attempts now mostly lose gained quality instead of destroying the item; below +2 refinement failures ignore it, +2 and higher lose quality, and +4 and higher may cascade through multiple gained levels. Lower-tier idols increase cascade risk while retaining their increased jackpot chance.
- Full reset risk begins later, at +8 refinement (previously +5), and resets only to the item's natural maximum quality. Under-tier resets remain relatively rare:
min(7%, 10% × failure + 0.5% × (extra_quality - 8)). - Safe-idol base reset chance is at most 6% and uses 10% of the base failure pool, reduced further by idol/trophy protection.
- No empty-inventory-slot reserve is required for under-tier refinements now that material-return/destruction outcomes are gone. Ordinary crafting inventory-space rules are unchanged.
- The Forge chance display now shows success, ignore, quality loss and reset only. README updated to reflect exact new probabilities.
- Existing selected idol/trophy costs and the 50% chance to spare the idol on failed refinement remain unchanged.
0.2.0
- Failed refinements (ignore, quality loss, reset or destruction) have a 50% chance not to consume the idol. Trophy offerings are still always consumed.
0.1.16
- The crafting panel no longer creates garbage every frame while it's open.
0.1.15
- Protection idol type text now displays the full word Protection instead of clipping to Protect.
- Renamed the displayed risky outcome from destroy to destruction.
- Rewrote the README as a direct functionality reference with the refinement, idol, trophy, destruction and jackpot formulas shown explicitly.
0.1.14
- Added deliberate under-tier idol gambling: each idol tier below the current safe minimum trades 2.5 percentage points of success for destruction and adds 10 percentage points to the hidden jackpot trigger chance.
- Under-tier attempts replace ignore/fail/reset outcomes with full vanilla destruction and ingredient return.
- Trophy offerings are unavailable with under-tier idols; selecting one clears the current trophy and disables CT.
- Safe attempts continue to bypass vanilla's empty-slot reserve, while under-tier destructive attempts restore the vanilla inventory-space safeguard.
- The idol and trophy cycle buttons are now labeled CI and CT.
- Forge percentages now preserve half-percent values such as 82.5% instead of rounding them away.
0.1.13
- Removed the Forge of Potential's vanilla empty-slot reserve check. Goodtential never destroys the item, so refinement no longer requires spare inventory slots for hypothetical returned ingredients.
- Normal crafting keeps Valheim's original inventory-space checks unchanged.
0.1.12
- Removed Goodtential's OnCraftPressed patch entirely so the Forge of Potential uses Valheim's untouched craft-button start path.
- The selected idol/trophy are now read and validated only when Valheim reaches DoCrafting, while cycle controls remain locked during the craft timer.
0.1.11
- Fixed refinement clicks being swallowed by Goodtential's pre-craft validation; the mod now snapshots the prepared offering and lets Valheim start the craft normally.
- Forge-only cycle controls are stripped before vanilla renders a non-upgrader crafting menu, preventing them from contaminating Workbench/Forge/etc. requirement UI.
0.1.10
- Rebuilt the cycle controls from the same vanilla button template used by Quick Stack/Store, with a normal UI-font C instead of the pixel-art upgrade arrow.
- Cycle buttons use the button's real disabled state when there is nothing to cycle through or while refinement is running.
- Forge-only cycle controls are removed from view when using normal crafting stations.
- Idol labels now show only the material name, with Battle/Protection in the lower line.
- Trophy labels drop the redundant Trophy suffix; an empty offering simply reads Trophy.
0.1.9
- Replaced the cycle-arrow icon with a plain centered C using Valheim's UI font.
- Cycle controls are now hidden outside the Forge of Potential, so normal crafting stations keep their vanilla requirement slots.
- Cycle buttons grey out when there is nothing else to cycle to, as well as while refinement is in progress.
0.1.8
- Replaced vanilla trophy substring matching with an exact prefab table covering all 72 current trophy prefabs in the installed game; fuzzy matching now applies only to unknown/modded trophies.
- Corrected special and variant trophies including Moder, Seeker Soldier, Fuling Berserker/Shaman, Hildir minibosses, Rancid Remains, Lava Blob, Pulp, Vile, Krigen, Hexen, Eyeless One, Writhan and Kvastur.
- Reworked the four Forge requirement slots into Idol / cycle button / Trophy / cycle button.
- Cycle buttons move only forward through stronger idols or higher-prestige trophies and wrap back to the first idol / empty trophy offering.
- Removed direct clicking from idol and trophy slots and removed their always-one quantity labels.
- Cycle controls are disabled while a refinement is already in progress.
0.1.7
- The Forge now shows only non-zero outcome percentages in its orange status line.
- Removed hover item tooltips from the idol and trophy selectors.
- Fixed Ashlands Charred trophy prefab recognition; Charred Warlock trophies now use the correct high-tier value instead of falling back to the generic unknown-trophy value.
- Raised Charred Warlock trophy prestige to reflect its rarity and threat.
0.1.6
- Added exact success, ignore, fail and reset percentages beneath the Forge warning text.
0.1.5
- Simplified refinement warnings to match Valheim's terse Forge wording and clarified complete loss as returning the item to its base form.
- Refined result, idol and trophy text for consistency.
- Moved Forge requirement tooltips to a dedicated top-left anchor on the crafting panel.
0.1.4
- Rebalanced trophy favor around the item's actual progression stage so strong later-biome kills remain meaningful for fully upgraded previous-biome gear.
- Cycling idols or trophies now plays a selection sound.
- Hover tooltips update immediately when the selection changes without moving the cursor away and back.
0.1.3
- Rebalanced idol progression so an item's native idol remains valid for its first few refinements beyond the normal quality cap, then advances one idol tier every three further quality levels.
- Removed the idea of "Potential" as a named upgrade stat; extra quality is simply further refinement beyond the item's natural limit.
- Tightened risk, result, idol and trophy wording to better match Valheim's terse forge/item style.
0.1.2
- Returned idol and trophy selection to left-click/right-click cycling.
- Reworked Forge wording and hover text around Valheim's own item tooltips.
0.1.1
- Fixed the refinement button incorrectly requiring the item's normal crafting materials in addition to the Forge offering.
- Replaced click-to-cycle requirements with dedicated previous/next arrow buttons on both the idol and trophy offering.
- Idol and trophy hover information now uses Valheim's proper item-tooltip presentation with a background, item-style layout and contextual colored text.
0.1.0
- Released as the standalone Wire's Forge of Goodtential.
- Idol requirements rise as an item is refined beyond its normal quality cap instead of remaining tied forever to its original recipe.
- Any stronger idol can replace the minimum requirement and provides additional stability.
- Added one optional trophy offering per refinement, with effectiveness based on the defeated creature's prestige relative to the item.
- Added interactive idol and trophy selection directly to the Forge requirement UI with contextual tooltips.
- Replaced destructive failure with complete refinement loss: the item survives and returns to its normal maximum quality.
- Preserved unlimited refinement, escalating level-loss risk and hidden jackpot refinements.
- Prepared refinements use qualitative risk/favor wording without exposing exact probabilities.
- Selected idol and trophy are validated and consumed as one Forge transaction.