On most servers, mythril or diamon armor and sword are the best weapons and armors. This mean that you always end up with such equipment and that's it.
I think this lacks some fun and it could be better to have various armors and weapons with different caracteristics. For example, an armor preventing for fire damage, another very strong against sword but weak agains hammers.
But to acheive that, the damage system has to be radically changed in minetest API. Actually there is no damage API, only get_hp/set_hp methods. The usual code for damages is :
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
player:set_hp(player:get_hp() - 5)
First of all, I find that quite ugly. I think there should be a method to tell "I want to hurt that player that strong" and it's up to the player model to react to that. The 3D armor mods use a sort of workaround to change the way player gets hurt.
In my opinion, a good API would be :
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
player:affect(type, strength)
type could be : "heal", "hunger", "fire", "suffocation", "radiation", "hurt" and every kind of damage (more accurate like "pierce", "impact"...). Default behavior shoud be to increase/decrease HP by strength.
Unfortunately, this would break most of mods dealing with damages :/
What is you opinion ?