添加角色的其他属性

This commit is contained in:
Mili 2023-02-13 00:41:34 +08:00
parent a87414fdf0
commit 3e86bf15e8
3 changed files with 78 additions and 12 deletions

View File

@ -4,6 +4,7 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Milimoe.FunGame.Core.Library.Constant;
namespace Milimoe.FunGame.Core.Entity namespace Milimoe.FunGame.Core.Entity
{ {
@ -14,23 +15,38 @@ namespace Milimoe.FunGame.Core.Entity
public string FirstName { get; set; } = ""; public string FirstName { get; set; } = "";
public User? User { get; set; } = null; public User? User { get; set; } = null;
public CharacterStatistics? Statistics { get; set; } = null; public CharacterStatistics? Statistics { get; set; } = null;
public MagicType MagicType { get; set; } // 魔法属性
public RoleType FirstRoleType { get; set; } // 角色定位1
public RoleType SecondRoleType { get; set; } // 角色定位2
public RoleType ThirdRoleType { get; set; } // 角色定位3
public int Level { get; set; } = 1; public int Level { get; set; } = 1;
public decimal EXP { get; set; } public decimal EXP { get; set; } // 经验值
public decimal HP { get; set; } public decimal HP { get; set; }
public decimal MP { get; set; } public decimal MP { get; set; }
public decimal EP { get; set; } public decimal EP { get; set; }
public decimal BaseATK { get; set; } // 基础攻击力
public decimal ATK { get; set; } public decimal ATK { get; set; }
public decimal DEF { get; set; } public decimal DEF { get; set; } // Defence 物理护甲
public decimal PhysicalReduction { get; set; } public decimal PDR { get; set; } // Physical Damage Reduction 物理伤害减免
public decimal MDF { get; set; } public decimal MDF { get; set; } // Magical Defence 魔法抗性
public decimal HPRecovery { get; set; } = 0; public decimal PhysicalPenetration { get; set; } // Physical Penetration 物理穿透
public decimal MPRecovery { get; set; } = 0; public decimal MagicPenetration { get; set; } // Magical Penetration 魔法穿透
public decimal EPRecovery { get; set; } = 0; public decimal HR { get; set; } = 0; // Health Regeneration 生命回复力
public decimal SPD { get; set; } public decimal MR { get; set; } = 0; // Mana Regeneration 魔法回复力
public decimal ATR { get; set; } public decimal ER { get; set; } = 0; // Eenergy Regeneration 能量回复力
public decimal CritRate { get; set; } = 0.05M; public decimal STR { get; set; } // Strength 力量
public decimal CritDMG { get; set; } = 1.25M; public decimal AGI { get; set; } // Agility 敏捷
public decimal EvadeRate { get; set; } = 0.05M; public decimal INT { get; set; } // Intelligence 智力
public decimal STRGrowth { get; set; } // Strength Growth 力量成长值
public decimal AGIGrowth { get; set; } // Agility Growth 敏捷成长值
public decimal INTGrowth { get; set; } // Intelligence Growth 智力成长值
public decimal SPD { get; set; } // Speed 速度
public decimal ActionCoefficient { get; set; } // Action Coefficient 行动系数
public decimal AccelerationCoefficient { get; set; } // Acceleration Coefficient 加速系数
public decimal ATR { get; set; } // Attack Range 攻击距离
public decimal CritRate { get; set; } = 0.05M; // 暴击率
public decimal CritDMG { get; set; } = 1.25M; // 暴击伤害
public decimal EvadeRate { get; set; } = 0.05M; // 闪避率
public Hashtable? Skills { get; set; } = new Hashtable(); public Hashtable? Skills { get; set; } = new Hashtable();
public Hashtable? Items { get; set; } = new Hashtable(); public Hashtable? Items { get; set; } = new Hashtable();
} }

View File

@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Milimoe.FunGame.Core.Library.Constant;
namespace Milimoe.FunGame.Core.Entity namespace Milimoe.FunGame.Core.Entity
{ {
@ -14,5 +15,6 @@ namespace Milimoe.FunGame.Core.Entity
public char Key { get; set; } public char Key { get; set; }
public bool Active { get; set; } public bool Active { get; set; }
public bool Enable { get; set; } public bool Enable { get; set; }
public MagicType MagicType { get; set; }
} }
} }

View File

@ -148,4 +148,52 @@ namespace Milimoe.FunGame.Core.Library.Constant
Minute, Minute,
Second Second
} }
public enum MagicType
{
}
public enum RoleType
{
}
public enum CharacterRankType
{
X,
S,
APlus,
A,
B,
C,
D,
E
}
public enum ItemRankType
{
X,
SPlus,
S,
APlus,
A,
B,
C,
D
}
public enum ItemQualityType
{
White,
Green,
Blue,
Purple,
Orange,
Red
}
public enum ItemRarityType
{
OneStar,
TwoStar,
ThreeStar,
FourStar,
FiveStar
}
} }