Elemental resistance calculation changes
This commit is contained in:
@@ -26,7 +26,7 @@ namespace Zennysoft.Ma.Adapter
|
||||
int incomingDamage,
|
||||
double elementalResistance)
|
||||
{
|
||||
var result = incomingDamage - (int)(incomingDamage * (elementalResistance / 100));
|
||||
var result = incomingDamage - (int)(incomingDamage * elementalResistance);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Chickensoft.GodotNodeInterfaces;
|
||||
using Godot;
|
||||
using System.Collections.Immutable;
|
||||
using Zennysoft.Game.Ma;
|
||||
|
||||
@@ -30,6 +31,8 @@ namespace Zennysoft.Ma.Adapter.Entity
|
||||
|
||||
public IDefenseComponent DefenseComponent { get; }
|
||||
|
||||
public ElementalResistanceSet ElementalResistanceSet { get; }
|
||||
|
||||
public int InitialHP { get; }
|
||||
|
||||
public int InitialAttack { get; }
|
||||
|
||||
Reference in New Issue
Block a user