(client) chore:修复子弹属性错误,人物属性错误,侧边消息堆叠错误

This commit is contained in:
m0_75251201
2025-09-08 09:24:32 +08:00
parent 379ed07773
commit 6cb4483d20
9 changed files with 122 additions and 6171 deletions

View File

@ -7,6 +7,24 @@ namespace Entity
{
public class Character : LivingEntity
{
public override Attributes defAttributes
{
get
{
var def = base.defAttributes;
var weaponDef = GetCurrentWeapon()?.Attributes;
if (weaponDef != null)
{
weaponDef.health = def.health;
weaponDef.moveSpeed = def.moveSpeed;
return weaponDef;
}
return def;
}
}
private int _currentSelected; // 私有字段用于存储实际值
/// <summary>