Units can gain experience and level making them slightly stronger when attacking.
Permissions and credits
Credits and distribution permission
Other user's assetsAll the assets in this file belong to the author, or are from free-to-use modder's resources
Upload permissionYou are not allowed to upload this file to other sites under any circumstances
Modification permissionYou must get permission from me before you are allowed to modify my files to improve it
Conversion permissionYou are not allowed to convert this file to work on other games under any circumstances
Asset use permissionYou are allowed to use the assets in this file without permission or crediting me
Asset use permission in mods/files that are being soldYou are not allowed to use assets from this file in any mods/files that are being sold, for money, on Steam Workshop or other platforms
Asset use permission in mods/files that earn donation pointsYou are allowed to earn Donation Points for your mods if they use my assets
Author notes
This author has not provided any additional notes regarding file permissions
File credits
This author has not credited anyone else in this file
Donation Points system
Please log in to find out whether this mod is receiving Donation Points
Changelogs
Version 1.0
+ Suspending and loading a match now supported.
+ Added a fifth rank that is granted once a unit gained experience 15 times the value of its cost.
+ Added the Unit: Rank, Unit: Experience and On Load conditions for custom content
+ Added the Unit: Modify Experience and Unit: Modify Rank actions for custom content
- Fixed the bug causing a rank skip from 2 to 4.
- Altered the rank icons slightly and repositioned them on unit sprites.
- Units no longer activate groove glow due to rounding errors
With this mod common units can gain experience by attacking enemy units. Once a unit has gained enough experience it gains a new rank making them slightly stronger. The relative required experience to gain the next rank is displayed in the groove UI.
In detail
All units capable of attacking excluding the commander can gain up to 4 ranks.
Per rank the unit gains 10 % additional damage adding up to 50% for max rank units.
The experience required for a unit to reach the next rank is based on the cost of the unit and a factor corresponding to the next rank (1, 3, 6, 10, 15). For example a soldier would require a total of 600 (100 * 6) experience to reach rank 3.
The amount of experience gained is equal to the amount of economic damage it dealt to the enemy (i.e. damaging a soldier for 60% gives the attacking unit 60 experience).
Current state: The mod is very likely unbalanced (i.e. Mage easily capable of killing dragon gaining 1250 exp or 2 ranks immediately). Feedback for balancing or bugs is welcome. I'm ridiculously bad at this game.
Altered Functions and Files:
Combat:solveCombat
Combat:getBestWeapon
All unitClasses for the 16 different units capable of attacking
The entirety of events.lua
The git repository for this mod can be found here.
A huge thanks to Ophelia from Discord for their constant support dealing with lua and the API.