I'm currently working on a strategized PvP/PvE project, and I want to encourage players to rely more on elemental resistances, and I also want to implement a bonus % to x type of damage system, where X would be ice, fire, death, holy, energy, earth, melee and distance.
I was wondering if I should implement it via LUA, and creating dynamic storages for players and checking those values using the Stat Change function. I know that it can be done, but I don't know how optimized this would be.
I could also edit the sources which is obviously more complicated, but I could add those bonus % to damage attributes there and check them using combat.cpp maybe? I don't know exactly which .cpp file handles damage/healing but I would figure it out.
Anyways, which option would be more viable in your opinion? Thanks for your attention!
I was wondering if I should implement it via LUA, and creating dynamic storages for players and checking those values using the Stat Change function. I know that it can be done, but I don't know how optimized this would be.
I could also edit the sources which is obviously more complicated, but I could add those bonus % to damage attributes there and check them using combat.cpp maybe? I don't know exactly which .cpp file handles damage/healing but I would figure it out.
Anyways, which option would be more viable in your opinion? Thanks for your attention!