(client) chore:修复子弹属性错误,人物属性错误,侧边消息堆叠错误
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user