Overview
This file controls what item affixes (groups of item modifiers) are automatically applied to items, regardless of their quality type. These item affixes will not change the quality of the item.
An example can be class based items like a paladin shield that can be Normal Quality but still have Paladin skill bonuses without changing the item’s name.
This file is loaded together with other similar files in the following order: magicsuffix.txt, magicprefix.txt, automagic.txt
These combined files form the Item Mods structure.
Any column field name starting with “*” is considered a comment field and is not used by the game
Data Fields
Name – Defines the item affix name
version – Defines which game version to use this item affix (<100 = Classic mode | 100 = Expansion mode)
spawnable – Boolean Field. If equals 1, then this item affix is used as part of the game’s randomizer for assigning item modifiers when an item spawns. If equals 0, then this item affix is never used.
rare – Boolean Field. If equals 1, then this item affix can be used when randomly assigning item modifiers when a rare item spawns. If equals 0, then this item affix is not used for rare items.
level – The minimum item level required for this item affix to spawn on the item. If the item level is below this value, then the item affix will not spawn on the item.
maxlevel – The maximum item level required for this item affix to spawn on the item. If the item level is above this value, then the item affix will not spawn on the item.
levelreq – The minimum character level required to equip an item that has this item affix
classspecific – Controls if this item affix should only be used for class specific items. This relies on the class specified in the “Class” field from ItemTypes.txt, for the specific item.
Code | Description |
(empty) | Any Class |
ama | Amazon only |
bar | Barbarian only |
pal | Paladin only |
nec | Necromancer only |
sor | Sorceress only |
dru | Druid only |
ass | Assassin only |
class – Controls which character class is required for the class specific level requirement “classlevelreq” field
Code | Description |
(empty) | None |
ama | Amazon |
bar | Barbarian |
pal | Paladin |
nec | Necromancer |
sor | Sorceress |
dru | Druid |
ass | Assassin |
classlevelreq – The minimum character level required for a specific class in order to equip an item that has this item affix. This relies on the class specified in the “class” field. If equals null, then the class will default to using the “levelreq” field.
frequency – Controls the probability that the affix appears on the item (a higher value means that the item affix will appear on the item more often). This value gets summed together with other “frequency” values from all possible item affixes that can spawn on the item, and then is used as a denominator value for the randomizer. Whichever item affix is randomly selected will be the one to appear on the item. The formula is calculated as the following: [Item Affix Selected] = [“frequency”] / [Total Frequency]. If the item has a magic level (from the “magic lvl” field in weapons.txt/armor.txt/misc.txt) then the magic level value is multiplied with this value. If equals 0, then this item affix will never appear on an item.
group – Assigns an item affix to a specific group number. Items cannot spawn with more than 1 item affix with the same group number. This is used to guarantee that certain item affixes do not overlap on the same item. If this field is null, then the group number will default to group 0.
mod1code (to mod3code) – Controls the item properties for the item affix (Uses the “code” field from Properties.txt)
mod1param (to mod3param) – The “parameter” value associated with the related property (mod#code). Usage depends on the property function (See the “func” field on Properties.txt)
mod1min (to mod3min) – The “min” value to assign to the listed related (mod#code). Usage depends on the property function (See the “func” field on Properties.txt)
mod1max (to mod3 max) – The “max” value to assign to the listed related (mod#code). Usage depends on the property function (See the “func” field on Properties.txt)
transformcolor – Controls the color change of the item after spawning with this item affix. If empty, then the item affix will not change the item’s color. (Uses Color Codes from the reference file colors.txt)
Code | Color |
No color change | |
whit | White |
lgry | Light Grey |
dgry | Dark Grey |
blac | Black |
lblu | Light Blue |
dblu | Dark Blue |
cblu | Crystal Blue |
lred | Light Red |
dred | Dark Red |
cred | Crystal Red |
lgrn | Light Green |
dgrn | Dark Green |
cgrn | Crystal Green |
lyel | Light Yellow |
dyel | Dark Yellow |
lgld | Light Gold |
dgld | Dark Gold |
lpur | Light Purple |
dpur | Dark Purple |
oran | Orange |
bwht | Bright White |
itype1 (to itype7) – Controls what Item Types are allowed to spawn with this item affix. Uses the “code” field from ItemTypes.txt
etype1 (to etype5) – Controls what Item Types are forbidden to spawn with this item affix. Uses the “code” field from ItemTypes.txt
multiply – Multiplicative modifier for the item’s buy and sell costs, based on the item affix (Calculated in 1024ths for buy cost and 4096ths for sell cost)
add – Flat integer modification to the item’s buy and sell costs, based on the item affix