Skip to content

RawStoneItem

RawStoneItem.xml defines raw stone items: upgrade stones and tier-up stones with their success rates, applicable equipment types, grade requirements, and material constraints for the equipment enhancement system.

VersionStatus
v92Full
v90-
v86-

Entity: rawStoneItems Operations: create, update, delete, upsert


spec:
version: "1.0"
rawStoneItems:
create:
- id: 1
type: TIERUP
useEquipmentType:
- EQUIP_WEAPON
- EQUIP_ARMOR_BODY
useGambleItemGrade: [1, 2, 3, 4, 5, 6, 7]
useRareGrade: 1
rate: 1.0
succeedRate: 0.85
needSameMaterial: true

Creates a tier-up raw stone (ID 1) applicable to weapons and body armor of rare grade 1, with 85% success rate. Requires same material type for enhancement.

spec:
version: "1.0"
rawStoneItems:
create:
- id: 2
type: UPGRADE
useEquipmentType:
- EQUIP_WEAPON
- EQUIP_ARMOR_BODY
- EQUIP_ACCESSORY
useGambleItemGrade: [3, 4, 5]
useRareGrade: 2
rate: 0.8
succeedRate: 0.75

Creates an upgrade raw stone (ID 2) applicable to all equipment types, usable on gamble grades 3-5 of rare grade 2, with 75% success rate. Optional needSameMaterial omitted (defaults to false).

spec:
version: "1.0"
rawStoneItems:
update:
- id: 1
changes:
succeedRate: 0.90
rate: 1.2

Updates the success rate and rate multiplier for raw stone 1 while preserving all other attributes.

spec:
version: "1.0"
rawStoneItems:
delete:
- 1
- 2

Removes raw stone items with the specified IDs.

spec:
version: "1.0"
rawStoneItems:
upsert:
- id: 3
type: TIERUP
useEquipmentType:
- EQUIP_ACCESSORY
useGambleItemGrade: [5, 6, 7]
useRareGrade: 3
rate: 0.5
succeedRate: 0.60
needSameMaterial: false

Creates the raw stone if it doesn’t exist, or updates it completely if it does.


PropertyTypeSinceRequiredDescription
idintv92YesUnique raw stone item ID
typestringv92YesStone operation type. Enum. See RawStoneType.
ratedecimalv92YesRate multiplier applied during the enhancement operation
succeedRatedecimalv92YesSuccess probability (0.0 to 1.0) for the enhancement attempt
PropertyTypeSinceRequiredDescription
useEquipmentTypelist[string]v92YesEquipment types this stone can be applied to. Flags enum. See EquipmentTypeFlags.
useGambleItemGradelist[int]v92YesGamble item grades this stone is compatible with (semicolon-separated in XML)
useRareGradeintv92YesRare grade requirement for equipment (0=Common, 1=Uncommon, 2=Rare, etc.)
PropertyTypeSinceRequiredDescription
needSameMaterialbooleanv92NoWhether the stone requires the same material type as the target equipment. Defaults to false if omitted.

Value
TIERUP
UPGRADE
Value
EQUIP_ACCESSORY
EQUIP_ARMOR_BODY
EQUIP_WEAPON

  • ID uniqueness: Raw stone IDs must be unique across all raw stone items. They typically reference ItemTemplate.xml item IDs.
  • Enum casing: type values are case-sensitive. Use TIERUP and UPGRADE in uppercase.
  • Flags enum casing: useEquipmentType values are case-sensitive. Use EQUIP_WEAPON, EQUIP_ARMOR_BODY, and EQUIP_ACCESSORY in uppercase.
  • Success rate range: succeedRate is a decimal probability (0.0 to 1.0). A value of 0.85 means 85% success chance.
  • YAML arrays to XML: The useEquipmentType and useGambleItemGrade YAML arrays are automatically converted to semicolon-separated strings in the XML output (e.g., useEquipmentType="EQUIP_WEAPON;EQUIP_ARMOR_BODY").
  • Optional attribute behavior: When needSameMaterial is omitted, it defaults to false. Include it explicitly if same-material constraint is required.