This commit is contained in:
MuHua-123
2025-07-23 18:01:18 +08:00
parent 8ebd3864c6
commit 5ca97fb0b1
54 changed files with 749 additions and 704 deletions
@@ -26,7 +26,7 @@ public class BattleCharacter : DataAttribute {
public BattleCharacter(DataCharacter character, int team) {
this.character = character;
Cover(character);
AttributeTool.Cover(this, character);
this.team = team;
name = character.name;
level = character.Level;
@@ -35,8 +35,12 @@ public class BattleCharacter : DataAttribute {
armorClass = character.ArmorClass;
}
/// <summary> 攻击目标 </summary>
public bool AttackTarget(BattleCharacter target) {
/// <summary> 是否允许行动 </summary>
public bool IsAction() {
return hitPoint.x > 0;
}
/// <summary> 是否敌对目标 </summary>
public bool IsHostility(BattleCharacter target) {
return team != target.team && target.hitPoint.x > 0;
}
}