添加技能检查

This commit is contained in:
milimoe 2024-10-28 01:26:27 +08:00
parent d794655862
commit f28e77b3bc
Signed by: milimoe
GPG Key ID: 05D280912DA6C69E

View File

@ -3,8 +3,10 @@ using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using Milimoe.FunGame.Core.Api.Utility;
using Milimoe.FunGame.Core.Entity;
using Milimoe.FunGame.Core.Library.Constant;
using Oshima.Core.Models;
using Oshima.Core.Utils;
using Oshima.FunGame.OshimaModules.Skills;
namespace Oshima.Core.Controllers
{
@ -70,6 +72,212 @@ namespace Oshima.Core.Controllers
return NetworkUtility.JsonSerialize("");
}
[HttpGet("cjs")]
public string GetCharacterIntroduce([FromQuery] int? id = null)
{
if (id != null && id > 0 && id <= FunGameSimulation.Characters.Count)
{
Character c = FunGameSimulation.Characters[Convert.ToInt32(id) - 1];
c.Level = General.GameplayEquilibriumConstant.MaxLevel;
c.NormalAttack.Level = General.GameplayEquilibriumConstant.MaxNormalAttackLevel;
Skill = new (c)
{
Level = General.GameplayEquilibriumConstant.MaxMagicLevel
};
c.Skills.Add();
Skill = new (c)
{
Level = General.GameplayEquilibriumConstant.MaxSkillLevel
};
c.Skills.Add();
if (id == 1)
{
Skill META马 = new META马(c)
{
Level = 1
};
c.Skills.Add(META马);
Skill = new (c)
{
Level = General.GameplayEquilibriumConstant.MaxMagicLevel
};
c.Skills.Add();
}
if (id == 2)
{
Skill = new (c)
{
Level = 1
};
c.Skills.Add();
Skill = new (c)
{
Level = General.GameplayEquilibriumConstant.MaxSkillLevel
};
c.Skills.Add();
}
if (id == 3)
{
Skill = new (c)
{
Level = 1
};
c.Skills.Add();
Skill = new (c)
{
Level = General.GameplayEquilibriumConstant.MaxSkillLevel
};
c.Skills.Add();
}
if (id == 4)
{
Skill = new (c)
{
Level = 1
};
c.Skills.Add();
Skill = new (c)
{
Level = General.GameplayEquilibriumConstant.MaxSkillLevel
};
c.Skills.Add();
}
if (id == 5)
{
Skill = new (c)
{
Level = 1
};
c.Skills.Add();
Skill = new (c)
{
Level = General.GameplayEquilibriumConstant.MaxSkillLevel
};
c.Skills.Add();
}
if (id == 6)
{
Skill = new (c)
{
Level = 1
};
c.Skills.Add();
Skill = new (c)
{
Level = General.GameplayEquilibriumConstant.MaxSkillLevel
};
c.Skills.Add();
}
if (id == 7)
{
Skill = new (c)
{
Level = 1
};
c.Skills.Add();
Skill = new (c)
{
Level = General.GameplayEquilibriumConstant.MaxSkillLevel
};
c.Skills.Add();
}
if (id == 8)
{
Skill = new (c)
{
Level = 1
};
c.Skills.Add();
Skill = new (c)
{
Level = General.GameplayEquilibriumConstant.MaxSkillLevel
};
c.Skills.Add();
}
if (id == 9)
{
Skill = new (c)
{
Level = 1
};
c.Skills.Add();
Skill = new (c)
{
Level = General.GameplayEquilibriumConstant.MaxSkillLevel
};
c.Skills.Add();
}
if (id == 10)
{
Skill = new (c)
{
Level = 1
};
c.Skills.Add();
Skill = new (c)
{
Level = General.GameplayEquilibriumConstant.MaxSkillLevel
};
c.Skills.Add();
}
if (id == 11)
{
Skill = new (c)
{
Level = 1
};
c.Skills.Add();
Skill = new (c)
{
Level = General.GameplayEquilibriumConstant.MaxSkillLevel
};
c.Skills.Add();
}
if (id == 12)
{
Skill = new (c)
{
Level = 1
};
c.Skills.Add();
Skill = new (c)
{
Level = General.GameplayEquilibriumConstant.MaxSkillLevel
};
c.Skills.Add();
}
return NetworkUtility.JsonSerialize(c.GetInfo().Trim());
}
return NetworkUtility.JsonSerialize("");
}
[HttpPost("post")]
public string PostName([FromBody] string name)
{