// ##################
// ###  Diablo 2  ###
// ### 2017-08-07 ###
// ##################

// CHARMS: REFERENCE FILE FOR MAX STATS, AND QUALTIES
// http://classic.battle.net/diablo2exp/items/magic/smallcharms.shtml
// http://classic.battle.net/diablo2exp/items/magic/mediumcharms.shtml
// http://classic.battle.net/diablo2exp/items/magic/largecharms.shtml

// ######### CHARMS: MAGIC, SMALL, PREFIXES, MAX POSSIBLE #########
[Name] == SmallCharm && [Quality] == Magic # [Defense] >= 30								// +20-30 Defense, Prefix, MaxPossible
[Name] == SmallCharm && [Quality] == Magic # [MinDamage] >= 1								// +1 To Minimum Damage, Prefix, MaxPossible
[Name] == SmallCharm && [Quality] == Magic # [MaxDamage] >= 1								// +1 To Maximum Damage, Prefix, MaxPossible
[Name] == SmallCharm && [Quality] == Magic # [MaxStamina] >= 16								// +4-16 Max Stamina, Prefix, MaxPossible
[Name] == SmallCharm && [Quality] == Magic # [ToHit] >= 36 && [MaxDamage] >= 3				// +25-36 To Attack Rating, +1-3 To Maximum Damage, Prefix, MaxPossible
[Name] == SmallCharm && [Quality] == Magic # [MaxMana] >= 17								// +13-17 Mana, Prefix, MaxPossible
[Name] == SmallCharm && [Quality] == Magic # [LightResist] >= 5 && [FireResist] >= 5 		// All Resistances +3-5%, Prefix, MaxPossible
[Name] == SmallCharm && [Quality] == Magic # [ColdResist] >= 11								// Resist Cold +10-11%, Prefix, MaxPossible
[Name] == SmallCharm && [Quality] == Magic # [FireResist] >= 11								// Resist Fire +10-11%, Prefix, MaxPossible
[Name] == SmallCharm && [Quality] == Magic # [LightResist] >= 11							// Resist Lightning +10-11%, Prefix, MaxPossible
[Name] == SmallCharm && [Quality] == Magic # [PoisonResist] >= 11							// Resist Poison +10-11%, Prefix, MaxPossible
[Name] == SmallCharm && [Quality] == Magic # [PoisonMaxDam] >= 175							// +175 Poison Damage Over 6 Seconds (other possible: +15/3 +50/4 +100/5), Prefix, MaxPossible
[Name] == SmallCharm && [Quality] == Magic # [ColdMinDam] >= 10 && [ColdMaxDam] >= 20		// +8-10 Minimum and +15-20 Maximum Cold Damage (1 Second Duration), Prefix, MaxPossible
[Name] == SmallCharm && [Quality] == Magic # [FireMinDam] >= 19 && [FireMaxDam] >= 29		// +10-19 Minimum and +20-29 Maximum Fire Damage, Prefix, MaxPossible
[Name] == SmallCharm && [Quality] == Magic # [LightMaxDam] >= 1 && [LightMaxDam] >= 71		// +1 Minimum and +44-71 Maximum Lightning Damage, Prefix, MaxPossible

// ######### CHARMS: MAGIC, SMALL, SUFFIXES, MAX POSSIBLE #########
[Name] == SmallCharm && [Quality] == Magic # [MaxDamage] >= 1								// +1 To Maximum Damage, Suffix, MaxPossible
[Name] == SmallCharm && [Quality] == Magic # [FHR] >= 5										// 5% Faster Hit Recovery
[Name] == SmallCharm && [Quality] == Magic # [ItemGoldBonus] >= 10							// 5-10% Extra Gold from Monsters
[Name] == SmallCharm && [Quality] == Magic # [ItemMagicBonus] >= 7							// 6-7% Better Chance Of Getting Magic Items
[Name] == SmallCharm && [Quality] == Magic # [MaxHp] >= 20									// +16-20 Life
[Name] == SmallCharm && [Quality] == Magic # [Strength] >= 2								// +1-2 To Strength
[Name] == SmallCharm && [Quality] == Magic # [Dexterity] >= 2								// +1-2 To Dexterity
[Name] == SmallCharm && [Quality] == Magic # [FRW] >= 3										// 3% Faster Run/Walk
[Name] == SmallCharm && [Quality] == Magic # [PoisonMaxDam] >= 50							// +50 Poison Damage Over 6 Seconds
[Name] == SmallCharm && [Quality] == Magic # [ColdMinDam] >= 5 && [ColdMaxDam] >= 9	 		// +4-5 Minimum and +7-9 Maximum Cold Damage (1 Second Duration)
[Name] == SmallCharm && [Quality] == Magic # [FireMinDam] >= 7 && [FireMaxDam] >= 13 		// +5-7 Minimum and +9-13 Maximum Fire Damage
[Name] == SmallCharm && [Quality] == Magic # [LightMinDam] >= 1 && [LightMaxDam] >= 28 		// +1 Minimum and +19-28 Maximum Lightning Damage

// ######### CHARMS: MAGIC, MEDIUM, PREFIXES, MAX POSSIBLE #########
[Name] == LargeCharm && [Quality] == Magic # [Defense] >= 60 								// +30-60 Defense, Prefix, MaxPossible
[Name] == LargeCharm && [Quality] == Magic # [MaxDamage] >= 2								// +2 To Maximum Damage, Prefix, MaxPossible
[Name] == LargeCharm && [Quality] == Magic # [MaxStamina] >= 32   							// +8-32 Maximum Stamina, Prefix, MaxPossible
[Name] == LargeCharm && [Quality] == Magic # [ToHit] >= 77									// +52-77 To Attack Rating
[Name] == LargeCharm && [Quality] == Magic # [ToHit] >= 48 && [MaxDamage] >= 6				// +21-48 To Attack Rating +4-6 To Maximum Damage, Prefix, MaxPossible
[Name] == LargeCharm && [Quality] == Magic # [ItemMagicBonus] >= 6							// 1-6% Better Chance Of Getting Magic Items, Prefix, MaxPossible
[Name] == LargeCharm && [Quality] == Magic # [MaxMana] >= 34 								// +24-34 Mana, Prefix, MaxPossible
[Name] == LargeCharm && [Quality] == Magic # [LightResist] >= 8 && [FireResist] >= 8		// All Resistances +3-8%, Prefix, MaxPossible
[Name] == LargeCharm && [Quality] == Magic # [ColdResist] >= 15	 							// Cold Resist +13-15%, Prefix, MaxPossible
[Name] == LargeCharm && [Quality] == Magic # [FireResist] >= 15     						// Fire Resist +13-15%, Prefix, MaxPossible
[Name] == LargeCharm && [Quality] == Magic # [LightResist] >= 15   							// Lightning Resist +13-15%, Prefix, MaxPossible
[Name] == LargeCharm && [Quality] == Magic # [PoisonResist] >= 15 							// Poison Resist +13-15%, Prefix, MaxPossible
[Name] == LargeCharm && [Quality] == Magic # [PoisonMaxDam] >= 175							// +175 Poison Damage Over 6 Seconds (other possible +10/3 +30/4 +90/5), Prefix, MaxPossible
[Name] == LargeCharm && [Quality] == Magic # [ColdMinDam] >= 15 && [ColdMaxDam] >= 30		// +11-15 Minimum and +21-30 Maximum Cold Damage (1 Second Duration), Prefix, MaxPossible
[Name] == LargeCharm && [Quality] == Magic # [FireMinDam] >= 27 && [FireMaxDam] >= 43		// +10-27 Minimum and +28-43 Maximum Fire Damage, Prefix, MaxPossible
[Name] == LargeCharm && [Quality] == Magic # [LightMinDam] >= 1 && [LightMaxDam] >= 90		// +1 Minimum and +59-90 Maximum Lightning Damage, Prefix, MaxPossible

// ######### CHARMS: MAGIC, MEDIUM, SUFFIXES, MAX POSSIBLE #########
[Name] == LargeCharm && [Quality] == Magic # [MaxDamage] >= 2    							// +2 To Maximum Damage
[Name] == LargeCharm && [Quality] == Magic # [Dexterity] >= 5								// +2-5 To Dexterity
[Name] == LargeCharm && [Quality] == Magic # [FHR] >= 8     								// 8% Faster Hit Recovery
[Name] == LargeCharm && [Quality] == Magic # [ItemGoldBonus] >= 22							// +5-22% Extra Gold From Monsters
[Name] == LargeCharm && [Quality] == Magic # [MaxHp] >= 35 									// +26-35 Life
[Name] == LargeCharm && [Quality] == Magic # [Strength] >= 5								// +2-5 Strength
[Name] == LargeCharm && [Quality] == Magic # [FRW] >= 5     								// 5% Faster Run/Walk
[Name] == LargeCharm && [Quality] == Magic # [PoisonMaxDam] >= 50							// +50 Poison Damage Over 6 Seconds (other possible +6/3 +15/4 +25/5)
[Name] == LargeCharm && [Quality] == Magic # [ColdMinDam] >= 6 && [ColdMaxDam] >= 12 	  	// +4-6 Minimum and +9-12 Maximum Cold Damage (1 Second Duration)
[Name] == LargeCharm && [Quality] == Magic # [FireMinDam] >= 10 && [FireMaxDam] >= 17		// +6-10 Minimum and +12-17 Maximum Fire Damage
[Name] == LargeCharm && [Quality] == Magic # [LightMinDam] >= 1 && [LightMaxDam] >= 38		// +1 Minimum and +26-38 Maximum Lightning Damage

// ######### CHARMS: MAGIC, LARGE(GRAND), PREFIXES, MAX POSSIBLE #########
[Name] == GrandCharm && [Quality] == Magic # [Defense] >= 100								// +33-100 Defense, Prefix, MaxPossible
[Name] == GrandCharm && [Quality] == Magic # [MinDamage] >= 3								// +3 To Minimum Damage, Prefix, MaxPossible
[Name] == GrandCharm && [Quality] == Magic # [MaxDamage] >= 3								// +3 To Maximum Damage, Prefix, MaxPossible
[Name] == GrandCharm && [Quality] == Magic # [MaxStamina] >= 50 							// +12-50 Maximum Stamina, Prefix, MaxPossible
[Name] == GrandCharm && [Quality] == Magic # [ToHit] >= 132									// +88-132 To Attack Rating, Prefix, MaxPossible
[Name] == GrandCharm && [Quality] == Magic # [ToHit] >= 76 && [MaxDamage] >= 10				// +49-76 To Attack Rating +7-10 Maximum Damage, Prefix, MaxPossible
[Name] == GrandCharm && [Quality] == Magic # [ItemMagicBonus] >= 12							// +1-12% Better Chance Of Getting Magic Items, Prefix, MaxPossible
[Name] == GrandCharm && [Quality] == Magic # [MaxMana] >= 59								// +40-59 Mana, Prefix, MaxPossible
[Name] == GrandCharm && [Quality] == Magic # [LightResist] >= 15 && [FireResist] >= 15		// All Resistances +3-15%, Prefix, MaxPossible
[Name] == GrandCharm && [Quality] == Magic # [ColdResist] >= 30								// Resist Cold +26-30%, Prefix, MaxPossible
[Name] == GrandCharm && [Quality] == Magic # [FireResist] >= 30								// Resist Fire +26-30%, Prefix, MaxPossible
[Name] == GrandCharm && [Quality] == Magic # [LightResist] >= 30 							// Resist Lightning +26-30%, Prefix, MaxPossible
[Name] == GrandCharm && [Quality] == Magic # [PoisonResist] >= 30							// Resist Poison +26-30%, Prefix, MaxPossible
[Name] == GrandCharm && [Quality] == Magic # [PoisonMaxDam] >= 100							// +100 Poison Damage Over 6 Seconds
[Name] == GrandCharm && [Quality] == Magic # [ColdMinDam] >= 13 && [ColdMaxDam] >= 25		// +8-13 Minimum and +16-25 Maximum Cold Damage (1 Second Duration), Prefix, MaxPossible
[Name] == GrandCharm && [Quality] == Magic # [FireMaxDam] >= 18 && [FireMaxDam] >= 36		// +8-18 Minimum and +20-36 Maximum Fire Damage, Prefix, MaxPossible
[Name] == GrandCharm && [Quality] == Magic # [LightMaxDam] >= 1 && [LightMaxDam] >= 79 		// +1 Minimum and +45-79 Maximum Lightning Damage, Prefix, MaxPossible
[Name] == GrandCharm && [Quality] == Magic # [ItemAddBowAndCrossbowSkillTab] >= 1			// +1 Amazon Bow and Crossbow Skills, Prefix, MaxPossible
[Name] == GrandCharm && [Quality] == Magic # [ItemAddPassiveAndMagicSkillTab] >= 1			// +1 Amazon Passive Skills, Prefix, MaxPossible
[Name] == GrandCharm && [Quality] == Magic # [ItemAddJavelinAndSpearSkillTab] >= 1			// +1 Amazon Javelin and Spear Skills, Prefix, MaxPossible
[Name] == GrandCharm && [Quality] == Magic # [ItemAddFireSkillTab] >= 1						// +1 Sorceress Fire Skills, Prefix, MaxPossible
[Name] == GrandCharm && [Quality] == Magic # [ItemAddLightningSkillTab] >= 1				// +1 Sorceress Lightning Skills, Prefix, MaxPossible
[Name] == GrandCharm && [Quality] == Magic # [ItemAddColdSkillTab] >= 1						// +1 Sorceress Cold Skills, Prefix, MaxPossible
[Name] == GrandCharm && [Quality] == Magic # [ItemAddCursesSkillTab] >= 1					// +1 Necromancer Curses, Prefix, MaxPossible
[Name] == GrandCharm && [Quality] == Magic # [ItemAddPoisonAndBoneSkillTab] >= 1			// +1 Necromancer Poison and Bone Spells, Prefix, MaxPossible
[Name] == GrandCharm && [Quality] == Magic # [ItemAddNecromancerSummoningSkillTab] >= 1		// +1 Necromancer Summoning Spells, Prefix, MaxPossible
[Name] == GrandCharm && [Quality] == Magic # [ItemAddPaliCombatSkillTab] >= 1				// +1 Paladin Combat Skills, Prefix, MaxPossible
[Name] == GrandCharm && [Quality] == Magic # [ItemAddOffensiveAurasSkillTab] >= 1			// +1 Paladin Offensive Auras, Prefix, MaxPossible
[Name] == GrandCharm && [Quality] == Magic # [ItemAddDefensiveAurasSkillTab] >= 1			// +1 Paladin Defensive Auras, Prefix, MaxPossible
[Name] == GrandCharm && [Quality] == Magic # [ItemAddBarbCombatSkillTab] >= 1				// +1 Barbarian Combat Skills, Prefix, MaxPossible
[Name] == GrandCharm && [Quality] == Magic # [ItemAddMasteriesSkillTab] >= 1				// +1 Barbarian Combat Masteries, Prefix, MaxPossible
[Name] == GrandCharm && [Quality] == Magic # [ItemAddWarCriesSkillTab] >= 1					// +1 Barbarian Warcries, Prefix, MaxPossible
[Name] == GrandCharm && [Quality] == Magic # [ItemAddDruidsummoningSkillTab] >= 1			// +1 Druid Summoning, Prefix, MaxPossible
[Name] == GrandCharm && [Quality] == Magic # [ItemAddShapeshiftingSkillTab] >= 1			// +1 Druid Shapeshifting, Prefix, MaxPossible
[Name] == GrandCharm && [Quality] == Magic # [ItemAddElementalSkillTab] >= 1				// +1 Druid Elemental, Prefix, MaxPossible
[Name] == GrandCharm && [Quality] == Magic # [ItemAddTrapsSkillTab] >= 1					// +1 Assassin Traps, Prefix, MaxPossible
[Name] == GrandCharm && [Quality] == Magic # [ItemAddShadowDisciplinesSkillTab] >= 1		// +1 Assassin Shadow Disciplines, Prefix, MaxPossible
[Name] == GrandCharm && [Quality] == Magic # [ItemAddMartialArtsSkilltab] >= 1				// +1 Assassin Martial Arts, Prefix, MaxPossible

// ######### CHARMS: MAGIC, LARGE(GRAND), SUFFIXES, MAX POSSIBLE #########
[Name] == GrandCharm && [Quality] == Magic # [MaxDamage] >= 4								// +3-4 To Maximum Damage
[Name] == GrandCharm && [Quality] == Magic # [Dexterity] >= 6 								// +3-6 To Dexterity
[Name] == GrandCharm && [Quality] == Magic # [FHR] >= 12									// 12% Faster Hit Recovery
[Name] == GrandCharm && [Quality] == Magic # [ItemGoldBonus] >= 40							// 10-40% Extra Gold From Monsters
[Name] == GrandCharm && [Quality] == Magic # [MaxHp] >= 45 									// +36-45 Life
[Name] == GrandCharm && [Quality] == Magic # [Strength] >= 6 								// +3-6 To Strength
[Name] == GrandCharm && [Quality] == Magic # [FRW] >= 7										// 7% Faster Run/Walk
[Name] == GrandCharm && [Quality] == Magic # [PoisonMaxDam] >= 50							// +50 Poison Damage Over 6 Seconds (other possible +6/3 +15/4 +25/5)
[Name] == GrandCharm && [Quality] == Magic # [ColdMinDam] >= 6 && [ColdMaxDam] >= 11		// +4-6 Minimum and +8-11 Maximum Cold Damage (1 Second Duration)
[Name] == GrandCharm && [Quality] == Magic # [FireMinDam] >= 7 && [FireMaxDam] >= 14		// +4-7 Minimum and +8-14 Maximum Fire Damage
[Name] == GrandCharm && [Quality] == Magic # [LightMinDam] >= 1 && [LightMaxDam] >= 33 		// +1 Minimum and +22-33 Maximum Lightning Damage

// ######### CHARMS: UNIQUE #########
[Name] == SmallCharm && [Quality] == Unique													// Annihilus
[Name] == LargeCharm && [Quality] == Unique 												// HellfireTorch
[Name] == GrandCharm && [Quality] == Unique													// GheedsFortune