User:Skkias/sandbox/Module:BaseStats
Jump to navigation
Jump to search
local BaseStats = {}
-- Core Attributes BaseStats.attributes = {
strength = { name = "Strength", bonus = { life = 2, -- +2 Life per Strength }, description = "Vital for melee weapons and survivability." }, dexterity = { name = "Dexterity", bonus = { accuracy = 5, -- +5 Accuracy per Dexterity evasion = 2, -- Hypothetical bonus }, description = "Essential for ranged weapons and evasion." }, intelligence = { name = "Intelligence", bonus = { mana = 2, -- +2 Mana per Intelligence energyShield = 1, -- +1 Energy Shield per Intelligence }, description = "Crucial for spellcasting and energy shield management." }
}
-- Derived Stats BaseStats.derivedStats = {
life = { name = "Life", base = 50, -- Base value (example) description = "Represents health; increased by Strength and gear." }, mana = { name = "Mana", base = 50, -- Base value (example) description = "Resource for skills; increased by Intelligence and gear." }, energyShield = { name = "Energy Shield", base = 0, -- Base value (example) description = "Acts as a buffer to Life; scales with Intelligence." }, accuracy = { name = "Accuracy Rating", base = 0, -- Base value (example) description = "Determines hit chance; improved by Dexterity." }, evasion = { name = "Evasion", base = 0, -- Base value (example) description = "Chance to dodge attacks; linked to Dexterity." }, armour = { name = "Armour", base = 0, -- Base value (example) description = "Reduces physical damage taken; associated with Strength." }
}
-- Resistances BaseStats.resistances = {
elemental = { name = "Elemental Resistance", base = 0, -- Base 0% resistance description = "Mitigates Fire, Cold, and Lightning damage." }, chaos = { name = "Chaos Resistance", base = -60, -- Base -60% resistance description = "Reduces Chaos damage taken." }
}
-- Return the module table return BaseStats