You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As for now, there is nodes with damage of: fire, poison,...
But MineTest does not handle damage_groups for nodes.
We need add ability into Core/damage to handle this.
We use minetest.register_on_player_hpchange(), callback of which can modify changed hp.
So, as a workaround we can just register our own modifers.
In Core/damage
add ability to pass callback as modifier into on_damage_of()
And then we can use it in our lord_defense to prevent damage of those nodes if we have appropriate defense.
The text was updated successfully, but these errors were encountered:
As for now, there is nodes with damage of: fire, poison,...
But MineTest does not handle
damage_groups
for nodes.We need add ability into
Core/damage
to handle this.We use
minetest.register_on_player_hpchange()
, callback of which can modify changed hp.So, as a workaround we can just register our own modifers.
In
Core/damage
on_damage_of()
And then we can use it in our
lord_defense
to prevent damage of those nodes if we have appropriate defense.The text was updated successfully, but these errors were encountered: