mirror of
https://github.com/oshima-studios/OshimaGameModule.git
synced 2025-04-23 12:29:35 +08:00
更新查物品、列表、技能
This commit is contained in:
parent
7a7218f062
commit
1813dca1fa
@ -437,7 +437,7 @@ namespace Oshima.Core.Controllers
|
||||
[HttpGet("cwp")]
|
||||
public string GetItemInfo([FromQuery] long? id = null)
|
||||
{
|
||||
IEnumerable<Item> items = FunGameSimulation.Items;
|
||||
IEnumerable<Item> items = FunGameSimulation.Equipment;
|
||||
if (id != null)
|
||||
{
|
||||
List<string> msg = [];
|
||||
@ -445,7 +445,7 @@ namespace Oshima.Core.Controllers
|
||||
if (i != null)
|
||||
{
|
||||
i.SetLevel(1);
|
||||
msg.Add(i.ToString());
|
||||
msg.Add(i.ToString(false, true));
|
||||
}
|
||||
|
||||
return NetworkUtility.JsonSerialize(string.Join("\r\n\r\n", msg));
|
||||
|
@ -15,6 +15,7 @@ namespace Oshima.Core.Utils
|
||||
public static List<Character> Characters { get; } = [];
|
||||
public static List<Skill> Skills { get; } = [];
|
||||
public static List<Skill> Magics { get; } = [];
|
||||
public static List<Item> Equipment { get; } = [];
|
||||
public static List<Item> Items { get; } = [];
|
||||
public static Dictionary<Character, CharacterStatistics> CharacterStatistics { get; } = [];
|
||||
public static Dictionary<Character, CharacterStatistics> TeamCharacterStatistics { get; } = [];
|
||||
@ -502,7 +503,7 @@ namespace Oshima.Core.Utils
|
||||
|
||||
if (roundMsg != "")
|
||||
{
|
||||
if (isWeb)
|
||||
if ((isTeam && deathMatchRoundDetail || !isTeam) && isWeb)
|
||||
{
|
||||
roundMsg += "\r\n" + Msg;
|
||||
}
|
||||
@ -727,10 +728,10 @@ namespace Oshima.Core.Utils
|
||||
WriteLine($"社区送温暖了,现在随机发放空投!!");
|
||||
foreach (Character character in queue.Queue)
|
||||
{
|
||||
Item[] 武器 = Items.Where(i => i.Id.ToString().StartsWith("11") && (int)i.QualityType == wQuality).ToArray();
|
||||
Item[] 防具 = Items.Where(i => i.Id.ToString().StartsWith("12") && (int)i.QualityType == aQuality).ToArray();
|
||||
Item[] 鞋子 = Items.Where(i => i.Id.ToString().StartsWith("13") && (int)i.QualityType == sQuality).ToArray();
|
||||
Item[] 饰品 = Items.Where(i => i.Id.ToString().StartsWith("14") && (int)i.QualityType == acQuality).ToArray();
|
||||
Item[] 武器 = Equipment.Where(i => i.Id.ToString().StartsWith("11") && (int)i.QualityType == wQuality).ToArray();
|
||||
Item[] 防具 = Equipment.Where(i => i.Id.ToString().StartsWith("12") && (int)i.QualityType == aQuality).ToArray();
|
||||
Item[] 鞋子 = Equipment.Where(i => i.Id.ToString().StartsWith("13") && (int)i.QualityType == sQuality).ToArray();
|
||||
Item[] 饰品 = Equipment.Where(i => i.Id.ToString().StartsWith("14") && (int)i.QualityType == acQuality).ToArray();
|
||||
Item? a = null, b = null, c = null, d = null;
|
||||
if (武器.Length > 0)
|
||||
{
|
||||
@ -808,8 +809,10 @@ namespace Oshima.Core.Utils
|
||||
}
|
||||
|
||||
Dictionary<string, Item> exItems = Factory.GetGameModuleInstances<Item>(OshimaGameModuleConstant.General, OshimaGameModuleConstant.Item);
|
||||
Items.AddRange(exItems.Values);
|
||||
Items.AddRange([new 攻击之爪10(), new 攻击之爪30(), new 攻击之爪50()]);
|
||||
Equipment.AddRange(exItems.Values.Where(i => (int)i.ItemType >= 0 && (int)i.ItemType < 5));
|
||||
Equipment.AddRange([new 攻击之爪10(), new 攻击之爪30(), new 攻击之爪50()]);
|
||||
|
||||
Items.AddRange(exItems.Values.Where(i => (int)i.ItemType > 4));
|
||||
|
||||
Skills.AddRange([new 疾风步()]);
|
||||
|
||||
@ -821,7 +824,7 @@ namespace Oshima.Core.Utils
|
||||
Characters.Clear();
|
||||
CharacterStatistics.Clear();
|
||||
TeamCharacterStatistics.Clear();
|
||||
Items.Clear();
|
||||
Equipment.Clear();
|
||||
Skills.Clear();
|
||||
Magics.Clear();
|
||||
|
||||
|
@ -43,7 +43,7 @@ namespace Oshima.FunGame.OshimaModules.Effects.OpenEffects
|
||||
break;
|
||||
case MagicType.None:
|
||||
default:
|
||||
character.MDF.SetAllValue(实际加成, false);
|
||||
character.MDF.AddAllValue(实际加成);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -78,7 +78,7 @@ namespace Oshima.FunGame.OshimaModules.Effects.OpenEffects
|
||||
break;
|
||||
case MagicType.None:
|
||||
default:
|
||||
character.MDF.SetAllValue(-实际加成, false);
|
||||
character.MDF.AddAllValue(-实际加成);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -52,29 +52,13 @@ namespace Oshima.FunGame.OshimaModules.Skills
|
||||
{
|
||||
已经加过 = true;
|
||||
character.ExEvadeRate += 实际增加闪避率;
|
||||
character.MDF.None += 实际增加魔法抗性;
|
||||
character.MDF.Particle += 实际增加魔法抗性;
|
||||
character.MDF.Fleabane += 实际增加魔法抗性;
|
||||
character.MDF.Element += 实际增加魔法抗性;
|
||||
character.MDF.Shadow += 实际增加魔法抗性;
|
||||
character.MDF.Bright += 实际增加魔法抗性;
|
||||
character.MDF.PurityContemporary += 实际增加魔法抗性;
|
||||
character.MDF.PurityNatural += 实际增加魔法抗性;
|
||||
character.MDF.Starmark += 实际增加魔法抗性;
|
||||
character.MDF.AddAllValue(实际增加魔法抗性);
|
||||
}
|
||||
else
|
||||
{
|
||||
已经加过 = false;
|
||||
character.ExEvadeRate -= 实际增加闪避率;
|
||||
character.MDF.None -= 实际增加魔法抗性;
|
||||
character.MDF.Particle -= 实际增加魔法抗性;
|
||||
character.MDF.Fleabane -= 实际增加魔法抗性;
|
||||
character.MDF.Element -= 实际增加魔法抗性;
|
||||
character.MDF.Shadow -= 实际增加魔法抗性;
|
||||
character.MDF.Bright -= 实际增加魔法抗性;
|
||||
character.MDF.PurityContemporary -= 实际增加魔法抗性;
|
||||
character.MDF.PurityNatural -= 实际增加魔法抗性;
|
||||
character.MDF.Starmark -= 实际增加魔法抗性;
|
||||
character.MDF.AddAllValue(-实际增加魔法抗性);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -41,7 +41,7 @@ namespace Oshima.FunGame.OshimaModules.Skills
|
||||
实际物理伤害减免 = 物理伤害减免;
|
||||
实际魔法抗性 = 魔法抗性;
|
||||
character.ExPDR += 实际物理伤害减免;
|
||||
character.MDF.SetAllValue(实际魔法抗性, false);
|
||||
character.MDF.AddAllValue(实际魔法抗性);
|
||||
WriteLine($"[ {character} ] 提升了 {实际物理伤害减免 * 100:0.##}% 物理伤害减免,{实际魔法抗性 * 100:0.##}% 魔法抗性!!");
|
||||
}
|
||||
|
||||
@ -49,7 +49,7 @@ namespace Oshima.FunGame.OshimaModules.Skills
|
||||
{
|
||||
character.NormalAttack.SetMagicType(false, character.MagicType);
|
||||
character.ExPDR -= 实际物理伤害减免;
|
||||
character.MDF.SetAllValue(-实际魔法抗性, false);
|
||||
character.MDF.AddAllValue(-实际魔法抗性);
|
||||
实际物理伤害减免 = 0;
|
||||
实际魔法抗性 = 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user