[Suggestion] Some sort of Leveling Trinket.
SonicX8000 opened this issue ยท 0 comments
Leveling Trinket
The Leveling Trinket is a trinket that the player can equip. At first the trinket does nothing but once it levels up it will gain some points that you can spend to apply attribute modifiers such as increasing max health, increasing damage, reach distance, etc.
Now... as to what kind of attribute modifiers you can apply on this trinket will be defined in a config file, so... if you wanted to increase health, damage, armor, toughness... you would put these lines in the config...
"generic.attackDamage"
"generic.maxHealth"
"generic.armor"
"generic.armorToughness"
These attributes that are listed above will increase damage, health, armor & toughness, now... to define the boost value you can do this...
"generic.maxHealth 2"
This would mean that your Max Health will increase by 2 per point spent. If you wish to cap the max amount of points to spend... you can do this...
"generic.maxHealth 2 10"
With this... Max health will increase by 2 per point, up to a max of 10 points meaning you can boost your health by 20.
Percentage values can also be defined if you set up the config like this.
"generic.attackDamage 0.05 10"
This grants a 5% increase in damage per point spent, up to 10 points max meaning you can have a 50% increase in attack damage.
Now... here's a example of mixing addition values as well as percentage values, along with some attributes from some mods.
"generic.attackDamage 0.05 10"
"generic.maxHealth 1 20"
"potioncore.projectileDamage 0.1 5" (Requires Potion Core Mod)
"potioncore.magicDamage 0.1 5" (Requires Potion Core Mod)
"scalingfeast.maxHungerMod 2 10" (Requires Scaling Feast Mod)
"tconevo.evasionChance 0.02 10" (Requires Tinkers Evolution Mod)
This translates into...
Melee Damage increases by 5% per point, up to a max of 50% at 10 Points Max.
Max Health increases by 1 per point, up to a max of 20 at 20 Points Max.
Ranged Damage is increased by 10% per point, up to a max of 50% at 5 Points Max.
Magic Damage is increased by 10% per point, up to a max of 50% at 5 Points Max.
Max Hunger is increased by 2 per point, up to a max of 20 at 10 Points Max.
Evade Chance is increased by 2% per point, up to a max of 20% at 10 Points Max.
In order to max out all these listed attributes... you need to spend a total of 60 Points. Now... with enough grinding you can max that out but if there's a level cap in place... say Max Level is 20, then you can only get a max of 20 Points to spend so you'll have to think about where to spend your points.
Gaining XP could be gotten from collecting XP Orbs. The XP Curve can be based off a multiplier which increases per level, you set the base XP at... say 20 and the multiplier is set at 2.0 (x2) and the Max Level is 15. The level list will be like this...
Base XP: 25 | Multiplier 2.0 | Max Level: 15
Level 1 requires 25 XP
Level 2 requires 50 XP
Level 3 requires 100 XP
Level 4 requires 200 XP
Level 5 requires 400 XP
Level 6 requires 800 XP
Level 7 requires 1600 XP
Level 8 requires 3200 XP
Level 9 requires 6400 XP
Level 10 requires 12800 XP
Level 11 requires 25600 XP
Level 12 requires 51200 XP
Level 13 requires 102400 XP
Level 14 requires 204800 XP
Level 15 requires 409600 XP
If going with collecting XP Orbs... the 2.0 multiplier is prob a bit high but you can adjust the multiplier.
Each level that is gained would reset the gained XP back to 0 per level, so... it wouldn't be like if the trinket is Level 7 and you have 820/1600 XP for it but rather it would be at 20/1600 XP.
As long as you know the attribute name from the mods being used & such. This can have a number of customizations, also you can have different builds if one wants to buff one stat to max and have another trinket to swap out that increases some other stats.
One more thing to mention... only one Leveling Trinket can be worn at a time, so you will have to unequip your old Leveling Trinket if you wish to equip a new one, otherwise it could get quite powerful if everyone wears maxed out Leveling Trinkets in all their slots.