mirror of
https://github.com/oshima-studios/OshimaGameModule.git
synced 2025-04-22 03:49:35 +08:00
fix等级
This commit is contained in:
parent
37b43d31c7
commit
19e7ac8321
@ -420,11 +420,12 @@ namespace Oshima.Core.Controllers
|
|||||||
{
|
{
|
||||||
s.Character = c;
|
s.Character = c;
|
||||||
msg.Add($"技能展示的属性基于演示角色:[ {c} ]");
|
msg.Add($"技能展示的属性基于演示角色:[ {c} ]");
|
||||||
msg.Add(s.Description);
|
msg.Add(c.ToStringWithLevel() + "\r\n" + s.ToString());
|
||||||
s.Level++; ;
|
s.Level++; ;
|
||||||
msg.Add(s.Description);
|
msg.Add(c.ToStringWithLevel() + "\r\n" + s.ToString());
|
||||||
|
c.Level = General.GameplayEquilibriumConstant.MaxLevel;
|
||||||
s.Level = s.IsMagic ? General.GameplayEquilibriumConstant.MaxMagicLevel : General.GameplayEquilibriumConstant.MaxSkillLevel;
|
s.Level = s.IsMagic ? General.GameplayEquilibriumConstant.MaxMagicLevel : General.GameplayEquilibriumConstant.MaxSkillLevel;
|
||||||
msg.Add(s.Description);
|
msg.Add(c.ToStringWithLevel() + "\r\n" + s.ToString());
|
||||||
}
|
}
|
||||||
|
|
||||||
return NetworkUtility.JsonSerialize(string.Join("\r\n\r\n", msg));
|
return NetworkUtility.JsonSerialize(string.Join("\r\n\r\n", msg));
|
||||||
@ -442,7 +443,8 @@ namespace Oshima.Core.Controllers
|
|||||||
Item? i = items.Where(i => i.Id == id).FirstOrDefault()?.Copy();
|
Item? i = items.Where(i => i.Id == id).FirstOrDefault()?.Copy();
|
||||||
if (i != null)
|
if (i != null)
|
||||||
{
|
{
|
||||||
msg.Add(i.Description);
|
i.SetLevel(1);
|
||||||
|
msg.Add(i.ToString());
|
||||||
}
|
}
|
||||||
|
|
||||||
return NetworkUtility.JsonSerialize(string.Join("\r\n\r\n", msg));
|
return NetworkUtility.JsonSerialize(string.Join("\r\n\r\n", msg));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user