Damage Types and Resistances are hard coded. Even if you were to go through and completely re-define the damage calculation formula, it would be impossible to show any of your new values in the UI and would have to rely on a bunch of statuses or dialogs to inform the player (or a book?)