Untitled

mail@pastecode.io avatar
unknown
lua
7 months ago
20 kB
3
Indexable
Never
MagicalSystem.Attrs = {

	-- # DEFAULT ATTRIBUTES
	-- # Availables: armor, defense, attack, hitchance, charges, duration

	[1] = {

		attr = "armor",
		name = "Armor",
		prefix = "strong",
		suffix = "of strength",
		base = true,

		tiers = {
			["common"] = {1, 2},
			["uncommon"] = {3, 4},
			["rare"] = 5,
			["epic"] = {6, 7},
			["legendary"] = {8, 10}
		},

		group = "default",

		adjustments = {
			item_type = {ARMOR, HEAD, LEGS, AMULET}
		}

	},

	[2] = {

		attr = "attack",
		base = "attack",
		name = "Attack",
		prefix = "deadly",
		suffix = "of slaughter",
		base = true,

		tiers = {
			["common"] = 1,
			["uncommon"] = {2, 3},
			["rare"] = 4,
			["epic"] = {5, 6},
			["legendary"] = {7, 8},
		},

		group = "default",

		adjustments = {
			item_type = {MELEE, DISTANCE}
		}
	},

	[3] = {

		attr = "extraDefense",
		name = "Defense",
		prefix = "fortified",
		suffix = "of defense",
		base = true,

		tiers = {
			["common"] = {2, 4},
			["uncommon"] = {5, 6},
			["rare"] = {7, 9},
			["epic"] = {10, 12},
			["legendary"] = {13, 14},
		},

		group = "default",

		adjustments = {
			item_type = {MELEE, SHIELD}
		}
	},

	[4] = { -- # this attribute only works on distance weapons that uses ammonation

		attr = "hitChance",
		name = "Hit Chance",
		prefix = "hawkeyes",
		suffix = "of precision",
		percentsign = true,
		base = true,

		tiers = {
			["common"] = {1, 2},
			["uncommon"] = {3, 4},
			["rare"] = {5, 6},
			["epic"] = {7, 8},
			["legendary"] = {9, 10},
		},

		group = "default",

		adjustments = {
			item_type = {DISTANCE_AMMO}
		}
	},

	[5] = {

		attr = "charges",
		name = "Charges",
		prefix = "charged",
		suffix = "of charges",
		base = true,

		tiers = {
			["common"] = {30, 45},
			["uncommon"] = {52, 69},
			["rare"] = {75, 95},
			["epic"] = {100, 125},
			["legendary"] = {126, 145},
		},

		group = "default",

		adjustments = {
			item_type = {CHARGES},
			exclude_item_creation_type = { -- # might ring, stone skin amulet
				[MAGICAL_LOOTED] = {2164, 2197},
				[MAGICAL_ORB] = {2164, 2197}
			}
		}
	},

	[6] = {

		attr = "duration",
		name = "Duration",
		prefix = "divine",
		suffix = "of time",
		base = true,

		tiers = { -- # 1 point represents 60 seconds
			["common"] = {2, 7},
			["uncommon"] = {7, 12},
			["rare"] = {12, 17},
			["epic"] = {22, 27},
			["legendary"] = {27, 35},
		},

		group = "default",

		adjustments = {
			item_type = {DURATION_RING}
		}
	},

	-- # SKILL ATTRIBUTES
	-- # Availables: clubSkill, swordSkill, axeSkill, distSkill, shieldSkill, meleeSkillsPercent

	[7] = {

		attr = "skillclub",
		name = "Club",
		prefix = "studded",
		suffix = "of smashing",

		tiers = {
			["common"] = 1,
			["uncommon"] = 2,
			["rare"] = 3,
			["epic"] = 4,
			["legendary"] = 5,
		},

		group = "skills",

		adjustments = {
			item_type = {MELEE_CLUB, ARMOR, SHIELD, BACKPACK},
			item_vocation = {"knight", "elite knight"},
			exclude_item_vocation = {"sorcerer", "master sorcerer", "druid", "elder druid"}
		}
	},

	[8] = {
		attr = "skillSword",
		name = "Sword",
		prefix = "bladed",
		suffix = "of slashing",

		tiers = {
			["common"] = 1,
			["uncommon"] = 2,
			["rare"] = 3,
			["epic"] = 4,
			["legendary"] = 5,
		},

		group = "skills",

		adjustments = {
			item_type = {MELEE_SWORD, ARMOR, SHIELD, BACKPACK},
			item_vocation = {"knight", "elite knight"},
			exclude_item_vocation = {"sorcerer", "master sorcerer", "druid", "elder druid"}
		}
	},

	[9] = {
		attr = "skillAxe",
		name = "Axe",
		prefix = "sharpened",
		suffix = "of chopping",

		tiers = {
			["common"] = 1,
			["uncommon"] = 2,
			["rare"] = 3,
			["epic"] = 4,
			["legendary"] = 5,
		},

		group = "skills",

		adjustments = {
			item_type = {MELEE_AXE, ARMOR, SHIELD, BACKPACK},
			item_vocation = {"knight", "elite knight"},
			exclude_item_vocation = {"sorcerer", "master sorcerer", "druid", "elder druid"}
		}
	},

	[10] = {
		attr = "skillDist",
		name = "Dist",
		prefix = "sharpshooter",
		suffix = "of accuracy",

		tiers = {
			["common"] = 1,
			["uncommon"] = 2,
			["rare"] = 3,
			["epic"] = 4,
			["legendary"] = 5,
		},

		group = "skills",

		adjustments = {
			item_type = {DISTANCE_AMMO, ARMOR, SHIELD, BACKPACK},
			item_vocation = {"paladin", "royal paladin"},
			exclude_item_vocation = {"sorcerer", "master sorcerer", "druid", "elder druid"}
		}
	},

	[11] = {
		attr = "skillShield",
		name = "Shielding",
		prefix = "defensive",
		suffix = "of shielding",

		tiers = {
			["common"] = 1,
			["uncommon"] = 2,
			["rare"] = 3,
			["epic"] = 4,
			["legendary"] = {5, 6},
		},

		group = "skills",

		adjustments = {
			item_type = {ARMOR, SHIELD, BACKPACK}
		}
	},

	[12] = {
		attr = "skillMeleePercent",
		name = "Melee",
		prefix = "melee",
		suffix = "of melee",
		percentsign = true,

		tiers = {
			["common"] = 1,
			["uncommon"] = 2,
			["rare"] = 3,
			["epic"] = 4,
			["legendary"] = {10,15},
		},

		group = "skills",

		adjustments = {
			item_type = {ARMOR, SHIELD, BACKPACK, AMMO},
			item_vocation = {"knight", "elite knight"},
			exclude_item_vocation = {"sorcerer", "master sorcerer", "druid", "elder druid", "paladin", "royal paladin"}
		}
	},

	-- # STATS ATTRIBUTES
	-- # Availables: magicLevel, maxHealthPoints, maxManaPoints, maxHealthPercent, maxManaPercent

	[13] = {

		attr = "maxHealthPoints",
		name = "Health",
		prefix = "pure",
		suffix = "of vitality",

		tiers = {
			["common"] = {10, 20},
			["uncommon"] = {21, 25},
			["rare"] = {26, 40},
			["epic"] = {41, 60},
			["legendary"] = {61, 80},
		},

		group = "support",

		adjustments = {
			item_type = {TRINKET, BACKPACK, RING, AMULET, FEET}
		}
	},

	[14] = {
		attr = "maxManaPoints",
		name = "Mana",
		prefix = "serpent",
		suffix = "of magika",

		tiers = {
			["common"] = {20, 49},
			["uncommon"] = {50, 69},
			["rare"] = {70, 99},
			["epic"] = {100, 129},
			["legendary"] = {130, 160}
		},

		group = "support",

		adjustments = {
			item_type = {TRINKET, BACKPACK, RING, AMULET, FEET}
		}
	},

	[15] = {
		attr = "maxHealthPercent",
		name = "Max Health",
		prefix = "pure",
		suffix = "of vitality",
		percentsign = true,

		tiers = {
			["common"] = 1,
			["uncommon"] = 2,
			["rare"] = 3,
			["epic"] = 4,
			["legendary"] = {5, 7},
		},

		group = "support",

		adjustments = {
			item_type = {ARMOR, SHIELD, BACKPACK, TRINKET}
		}
	},

	[16] = {
		attr = "maxManaPercent",
		name = "Max Mana",
		prefix = "serpent",
		suffix = "of magika",
		percentsign = true,

		tiers = {
			["common"] = 1,
			["uncommon"] = 2,
			["rare"] = 3,
			["epic"] = 4,
			["legendary"] = 5,
		},

		group = "support",

		adjustments = {
			item_type = {ARMOR, SHIELD, BACKPACK, TRINKET}
		}
	},

	[17] = {
		attr = "magicLevel",
		name = "Magic",
		prefix = "mystical",
		suffix = "of clarity",

		tiers = {
			["common"] = 1,
			["uncommon"] = 2,
			["rare"] = 3,
			["epic"] = 4,
			["legendary"] = 5,
		},

		group = "skills",

		adjustments = {
			item_type = {WAND, ARMOR, SHIELD, HEAD, LEGS, TRINKET, BACKPACK, RING, AMULET},
			exclude_item_vocation = {
				"paladin",
				"royal paladin",
				"knight",
				"elite knight"
			}
		}
	},

	-- # REGENERATION ATTRIBUTES (regenerations are stackable with default ones, for example: soft boots)
	-- # Availables: healthRegeneration, manaRegeneration

	[18] = {

		attr = "healthGain",
		name = "HP Regen",
		prefix = "resilient",
		suffix = "of restoration",

		tiers = {
			-- # Fixed ticks -> {17, 22, 1000}
			-- # Random ticks -> {17, 22, {1000, 1500, 2000}}
			-- # Default ticks -> {17, 22} (Default ticks is 1000 = 1 second)
			["common"] = {2, 5, 8000},
			["uncommon"] = {4, 7, {7000, 8000}},
			["rare"] = {9, 12, 6000},
			["epic"] = {13,16, 4000},
			["legendary"] = {17, 22, 2000},
		},

		group = "support",
		class = "regeneration",

		adjustments = {
			item_type = {ARMOR, SHIELD, HEAD, LEGS}
		}
	},

	[19] = {

		attr = "manaGain",
		name = "MP Regen",
		prefix = "clerical",
		suffix = "of restoration",

		tiers = {
			-- # Fixed ticks -> {17, 22, 1000}
			-- # Random ticks -> {17, 22, {1000, 1500, 2000}}
			-- # Default ticks -> {17, 22} (Default ticks is 1000 = 1 second)
			["common"] = {2, 5, 8000}, 
			["uncommon"] = {4, 7, {7000, 8000}},
			["rare"] = {9, 12, 6000},
			["epic"] = {13, 16, 4000},
			["legendary"] = {17, 22, 2000},
		},

		group = "support",
		class = "regeneration",

		adjustments = {
			item_type = {ARMOR, SHIELD, HEAD, LEGS}
		},
	},

	-- # SPEED ATTRIBUTES
	-- # Availables: walkSpeed, attackSpeed

	[20] = {
		attr = "atkspeed",
		name = "Attack Speed",
		prefix = "swift",
		suffix = "of quickness",
		group = "quickness",

		tiers = { -- # miliseconds
			["common"] = {50,75},
			["uncommon"] = {75,125},
			["rare"] = {125,155},
			["epic"] = {155,185},
			["legendary"] = {185,235},
		},

		adjustments = {
			item_type = {MELEE, DISTANCE, WAND}
		}
	},

	[21] = {
		attr = "speed",
		name = "Speed",
		prefix = "pathfinding",
		suffix = "of haste",
		group = "quickness",

		tiers = {
			["common"] = {4, 8},
			["uncommon"] = {9, 14},
			["rare"] = {15, 20},
			["epic"] = {21, 30},
			["legendary"] = {31, 50},
		},

		adjustments = {
			item_type = {FEET, RING, AMULET}
		}
	},

	-- # ABSORB ATTRIBUTES
	-- # Availables: absorbDeath, absorbHoly, absorbPhysical, absorbIce, absorbEarth, absorbEnergy, absorbAll

	[22] = {

		attr = "absorbphysical",
		name = "Absorb Physical",
		prefix = "physical",
		suffix = "of protection",
		percentsign = true,
		group = "resistance",
		class = "absorb",

		tiers = {
			["common"] = 1,
			["uncommon"] = 1,
			["rare"] = 2,
			["epic"] = 2,
			["legendary"] = 3,
		},

		adjustments = {
			item_type = {ARMOR, SHIELD, HEAD, LEGS, TRINKET, BACKPACK, RING, AMULET}
		}
	},

	[23] = {
		
		attr = "absorbenergy",
		name = "Absorb Energy",
		prefix = "energetic",
		suffix = "of electricity",
		percentsign = true,
		group = "resistance",
		class = "absorb",

		tiers = {
			["common"] = 1,
			["uncommon"] = 1,
			["rare"] = 2,
			["epic"] = 2,
			["legendary"] = 3,
		},

		adjustments = {
			item_type = {ARMOR, SHIELD, HEAD, LEGS, TRINKET, BACKPACK, RING, AMULET}
		}
	},

	[24] = {

		attr = "absorbearth",
		name = "Absorb Earth",
		prefix = "earthly",
		suffix = "of protection",
		percentsign = true,
		group = "resistance",
		class = "absorb",

		tiers = {
			["common"] = 1,
			["uncommon"] = 1,
			["rare"] = 2,
			["epic"] = 2,
			["legendary"] = 3,
		},

		adjustments = {
			item_type = {ARMOR, SHIELD, HEAD, LEGS, TRINKET, BACKPACK, RING, AMULET}
		}
	},

	[25] = {

		attr = "absorbfire",
		name = "Absorb Fire",
		prefix = "burned",
		suffix = "of fire",
		percentsign = true,
		group = "resistance",
		class = "absorb",

		tiers = {
			["common"] = 1,
			["uncommon"] = 1,
			["rare"] = 2,
			["epic"] = 2,
			["legendary"] = 3,
		},

		adjustments = {
			item_type = {ARMOR, SHIELD, HEAD, LEGS, TRINKET, BACKPACK, RING, AMULET}
		}
	},

	[26] = {

		attr = "absorbice",
		name = "Absorb Ice",
		prefix = "icey",
		suffix = "of ice",
		percentsign = true,
		group = "resistance",
		class = "absorb",

		tiers = {
			["common"] = 1,
			["uncommon"] = 1,
			["rare"] = 2,
			["epic"] = 2,
			["legendary"] = 3,
		},

		adjustments = {
			item_type = {ARMOR, SHIELD, HEAD, LEGS, TRINKET, BACKPACK, RING, AMULET}
		}
	},

	[27] = {

		attr = "absorbholy",
		name = "Absorb Holy",
		prefix = "holy",
		suffix = "of holyness",
		percentsign = true,
		group = "resistance",
		class = "absorb",

		tiers = {
			["common"] = 1,
			["uncommon"] = 1,
			["rare"] = 2,
			["epic"] = 2,
			["legendary"] = 3,
		},

		adjustments = {
			item_type = {ARMOR, SHIELD, HEAD, LEGS, TRINKET, BACKPACK, RING, AMULET}
		}
	},

	[28] = {

		attr = "absorbdeath",
		name = "Absorb Death",
		prefix = "undead",
		suffix = "of death",
		percentsign = true,
		group = "resistance",
		class = "absorb",

		tiers = {
			["common"] = 1,
			["uncommon"] = 1,
			["rare"] = 2,
			["epic"] = 2,
			["legendary"] = 3,
		},

		adjustments = {
			item_type = {ARMOR, SHIELD, HEAD, LEGS, TRINKET, BACKPACK, RING, AMULET}
		}
	},

	[29] = {

		attr = "absorball",
		name = "Protections",
		prefix = "hardened",
		suffix = "of resistance",
		percentsign = true,
		group = "resistance",
		class = "absorb",

		tiers = {
			["common"] = 1,
			["uncommon"] = 2,
			["rare"] = 3,
			["epic"] = 4,
			["legendary"] = {10,15},
		},

		adjustments = {
			item_type = {BACKPACK, AMULET, RING, TRINKET}
		}
	},

	-- # STEAL ATTRIBUTES
	-- # Availables: lifeSteal, manaSteal
	[30] = {
		attr = "lifesteal",
		name = "Life Steal",
		prefix = "vampiric",
		suffix = "of life steal",

		tiers = {
			-- # min, max, chance
			["common"] = {1, 5, 3},
			["uncommon"] = {2, 7, 5},
			["rare"] = {4, 9, 6},
			["epic"] = {8, 12, 7},
			["legendary"] = {12, 18, 90},
		},

		group = "steals",

		adjustments = {
			item_type = {MELEE, DISTANCE, WAND, TRINKET, BACKPACK, RING, AMULET}
		}
	},

	[31] = {
		attr = "manasteal",
		name = "Mana Steal",
		prefix = "spiritual",
		suffix = "of mana steal",

		tiers = {
			-- # min, max, chance
			["common"] = {1, 5, 3},
			["uncommon"] = {2, 7, 5},
			["rare"] = {4, 9, 6},
			["epic"] = {8, 12, 7},
			["legendary"] = {12, 18, 90},
		},

		group = "steals",

		adjustments = {
			item_type = {MELEE, DISTANCE, WAND, TRINKET, BACKPACK, RING, AMULET}
		}
	},

	-- # MISC ATTRIBUTES
	-- # Availables: expBoost, magicfinder, critical, dodge
	[32] = {

		attr = "expboost",
		name = "XP Boost",
		prefix = "boosted",
		suffix = "of experience",
		percentsign = true,

		tiers = {
			["common"] = 1,
			["uncommon"] = 2,
			["rare"] = 3,
			["epic"] = 4,
			["legendary"] = {5,8},
		},

		group = "bonus",

		force_item = {
			2361 -- # frozen starlight
		},

		adjustments = {
			item_type = {TRINKET, BACKPACK, RING, AMULET}
		}
	},

	[33] = {

		attr = "magicfinder",
		name = "Magicfinder",
		prefix = "magic",
		suffix = "of finder",
		percentsign = true,

		tiers = {
			["common"] = 1,
			["uncommon"] = 2,
			["rare"] = 3,
			["epic"] = 4,
			["legendary"] = {5,8},
		},

		group = "bonus",

		adjustments = {
			item_type = {TRINKET, BACKPACK, RING, AMULET}
		}
	},

	[34] = {
		attr = "criticalchance",
		name = "Crit Chance",
		prefix = "critical",
		suffix = "of critical",
		percentsign = true,

		tiers = {
			["common"] = {1, 2},
			["uncommon"] = {3, 4},
			["rare"] = {5, 6},
			["epic"] = 7,
			["legendary"] = {7, 10},
		},

		group = "special",

		adjustments = {
			item_type = {MELEE, DISTANCE, WAND, TRINKET, BACKPACK, RING, AMULET}
		}
	},

	[35] = {
		attr = "dodgechance",
		name = "Dodge",
		prefix = "evasive",
		suffix = "of evasion",
		percentsign = true,

		tiers = {
			["common"] = {1, 2},
			["uncommon"] = {3, 4},
			["rare"] = {5, 6},
			["epic"] = 7,
			["legendary"] = {7, 10},
		},

		group = "special",

		adjustments = {
			item_type = {ARMOR, SHIELD, HEAD, LEGS, FEET}
		}
	},	

	-- # DAMAGE ATTRIBUTES
	-- # Availables: increaseDamage, increaseSpellDamage, increasePhysicalDamage, increaseFireDamage, increaseEnergyDamage, increaseEarthDamage, increaseIceDamage, increaseHolyDamage, increaseDeathDamage

	[36] = {
		attr = "increaseDamage",
		name = "Increase Damage",
		prefix = "powerful",
		suffix = "of damage",
		percentsign = true,

		tiers = {
			["common"] = 1,
			["uncommon"] = {2, 3},
			["rare"] = 4,
			["epic"] = {4, 5},
			["legendary"] = {6, 7}
		},

		group = "damage",
		class = "damage",

		adjustments = {
			item_type = {MELEE, WAND, DISTANCE_AMMO}
		}
	},

	[37] = {
		attr = "increaseSpellDamage",
		name = "Spell Damage",
		prefix = "powerful",
		suffix = "of damage",
		percentsign = true,

		tiers = {
			["common"] = 1,
			["uncommon"] = {2, 3},
			["rare"] = 4,
			["epic"] = {4, 5},
			["legendary"] = {6, 7}
		},

		group = "damage",
		class = "damage",

		adjustments = {
			item_type = {MELEE, WAND, DISTANCE_AMMO}
		}
	},

	[38] = {
		attr = "increasePhysicalDamage",
		name = "Physical Damage",
		prefix = "powerful",
		suffix = "of damage",
		percentsign = true,

		tiers = {
			["common"] = 1,
			["uncommon"] = 2,
			["rare"] = 3,
			["epic"] = 4,
			["legendary"] = 5
		},

		group = "damage",
		class = "damage",

		adjustments = {
			item_type = {MELEE, WAND, DISTANCE_AMMO, TRINKET}
		}
	},

	[39] = {
		attr = "increaseFireDamage",
		name = "Fire Damage",
		prefix = "powerful",
		suffix = "of damage",
		percentsign = true,

		tiers = {
			["common"] = 1,
			["uncommon"] = 2,
			["rare"] = 3,
			["epic"] = 4,
			["legendary"] = 5
		},

		group = "damage",
		class = "damage",

		adjustments = {
			item_type = {MELEE, WAND, DISTANCE_AMMO, TRINKET}
		}
	},

	[40] = {
		attr = "increaseEnergyDamage",
		name = "Energy Damage",
		prefix = "powerful",
		suffix = "of damage",
		percentsign = true,

		tiers = {
			["common"] = 1,
			["uncommon"] = 2,
			["rare"] = 3,
			["epic"] = 4,
			["legendary"] = 5
		},

		group = "damage",
		class = "damage",

		adjustments = {
			item_type = {MELEE, WAND, DISTANCE_AMMO, TRINKET}
		}
	},

	[41] = {
		attr = "increaseEarthDamage",
		name = "Earth Damage",
		prefix = "powerful",
		suffix = "of damage",
		percentsign = true,

		tiers = {
			["common"] = 1,
			["uncommon"] = 2,
			["rare"] = 3,
			["epic"] = 4,
			["legendary"] = 5
		},

		group = "damage",
		class = "damage",

		adjustments = {
			item_type = {MELEE, WAND, DISTANCE_AMMO, TRINKET}
		}
	},

	[42] = {
		attr = "increaseIceDamage",
		name = "Ice Damage",
		prefix = "powerful",
		suffix = "of damage",
		percentsign = true,

		tiers = {
			["common"] = 1,
			["uncommon"] = 2,
			["rare"] = 3,
			["epic"] = 4,
			["legendary"] = 5
		},

		group = "damage",
		class = "damage",

		adjustments = {
			item_type = {MELEE, WAND, DISTANCE_AMMO, TRINKET}
		}
	},

	[43] = {
		attr = "increaseHolyDamage",
		name = "Holy Damage",
		prefix = "powerful",
		suffix = "of damage",
		percentsign = true,

		tiers = {
			["common"] = 1,
			["uncommon"] = 2,
			["rare"] = 3,
			["epic"] = 4,
			["legendary"] = 5
		},

		group = "damage",
		class = "damage",

		adjustments = {
			item_type = {MELEE, WAND, DISTANCE_AMMO, TRINKET}
		}
	},

	[44] = {
		attr = "increaseDeathDamage",
		name = "Death Damage",
		prefix = "powerful",
		suffix = "of damage",
		percentsign = true,

		tiers = {
			["common"] = 1,
			["uncommon"] = 2,
			["rare"] = 3,
			["epic"] = 4,
			["legendary"] = 5
		},

		group = "damage",
		class = "damage",

		adjustments = {
			item_type = {MELEE, WAND, DISTANCE_AMMO, TRINKET}
		}
	}
}
Leave a Comment