引入属性、伤害管线
This commit is contained in:
@@ -169,7 +169,7 @@ namespace SepCore.Entity
|
||||
AddWeaponAsync(EntityDataFactory.Create(GameEntry.Entity.NextId(), WeaponType.Knife, Id, _playerData.Camp)).Forget();
|
||||
|
||||
// StatComponent
|
||||
foreach (var modifier in role.Modifiers)
|
||||
foreach (var modifier in role.StatModifierConfigs)
|
||||
{
|
||||
_statComponent.AddModifier(modifier);
|
||||
}
|
||||
@@ -189,7 +189,7 @@ namespace SepCore.Entity
|
||||
|
||||
public override ImpactData GetImpactData()
|
||||
{
|
||||
return new ImpactData(_playerData.Camp, 0, null, _healthComponent.DefenseStat, _healthComponent.DodgeStat);
|
||||
return new ImpactData(_playerData.Camp, 0, _statComponent.Pipeline);
|
||||
}
|
||||
|
||||
protected override void OnInit(object userData)
|
||||
|
||||
Reference in New Issue
Block a user