fortify stone_refine - magemonkeystudio/divinity GitHub Wiki
๐ง Fortify Stone: Refine
This Fortify Stone protects gear during the Refine process, helping players reduce the risk of losing valuable items when strengthening them through refinement.
๐ File Location
Place this file at:
plugins/Divinity/modules/fortify/items/stone_refine.yml
๐งพ Purpose
When this stone is applied to a weapon or armor piece, it provides a level-based protection chance during refinement. If refining fails, this stone may save the item from being destroyed.
๐ง Configuration Breakdown
material: COAL
The base item used to represent this Fortify Stone.
name: 'Fortify Stone'
lore:
- '&7Fortifies the item on &fRefine&7.'
Informs players that this item adds protection during the Refine process.
enchanted: false
tier: common
The stone has no glow and is considered a common-tier item.
๐ Fortify Levels & Uses
level:
min: 1
max: 10
uses-by-level:
'1': 1
'5': 2
'10': 3
- Can be created at levels 1 through 10
- Higher levels grant more uses
๐ก Protection Effect
protection:
modules:
- refine
chance-by-level:
'1': 15
'2': 20
...
'10': 60
- This stone only protects during the refine process
- At level 10, players have up to a 60% chance to prevent item destruction on failure
๐ฏ Target Requirements
target-requirements:
type:
- WEAPON
- ARMOR
level:
'1': '1:10'
'2': '11:20'
module:
- '*'
This Fortify Stone is valid for:
- Weapons and armor
- Item levels 1โ20 (scaled by fortify stone level)
- Any item module
๐งช Usage Example
- The player applies this fortify stone to a level 15 chestplate.
- They attempt to refine the item.
- If refinement fails, the stone gives a chance to prevent the chestplate from being destroyed.