mirror of
https://github.com/oshima-studios/OshimaGameModule.git
synced 2025-08-02 12:02:56 +00:00
添加 CharacterBuilder;为 Item 添加了 Guid;开工库存系统
This commit is contained in:
parent
2a05708207
commit
89e64894e1
@ -1,5 +1,6 @@
|
|||||||
using Milimoe.FunGame.Core.Api.Utility;
|
using Milimoe.FunGame.Core.Api.Utility;
|
||||||
using Milimoe.FunGame.Core.Entity;
|
using Milimoe.FunGame.Core.Entity;
|
||||||
|
using Oshima.FunGame.OshimaModules.Characters;
|
||||||
|
|
||||||
namespace Oshima.FunGame.OshimaModules
|
namespace Oshima.FunGame.OshimaModules
|
||||||
{
|
{
|
||||||
@ -19,5 +20,28 @@ namespace Oshima.FunGame.OshimaModules
|
|||||||
return config;
|
return config;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override Factory.EntityFactoryDelegate<Character> EntityFactory()
|
||||||
|
{
|
||||||
|
return (id, name, args) =>
|
||||||
|
{
|
||||||
|
return id switch
|
||||||
|
{
|
||||||
|
1 => new OshimaShiya(),
|
||||||
|
2 => new XinYin(),
|
||||||
|
3 => new Yang(),
|
||||||
|
4 => new NanGanYu(),
|
||||||
|
5 => new NiuNan(),
|
||||||
|
6 => new DokyoMayor(),
|
||||||
|
7 => new MagicalGirl(),
|
||||||
|
8 => new QingXiang(),
|
||||||
|
9 => new QWQAQW(),
|
||||||
|
10 => new ColdBlue(),
|
||||||
|
11 => new dddovo(),
|
||||||
|
12 => new Quduoduo(),
|
||||||
|
_ => null,
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,7 @@ namespace Oshima.FunGame.OshimaModules
|
|||||||
{
|
{
|
||||||
return (id, name, args) =>
|
return (id, name, args) =>
|
||||||
{
|
{
|
||||||
Skill skill = id switch
|
return id switch
|
||||||
{
|
{
|
||||||
(long)MagicID.冰霜攻击 => new 冰霜攻击(),
|
(long)MagicID.冰霜攻击 => new 冰霜攻击(),
|
||||||
(long)MagicID.火之矢 => new 火之矢(),
|
(long)MagicID.火之矢 => new 火之矢(),
|
||||||
@ -64,18 +64,8 @@ namespace Oshima.FunGame.OshimaModules
|
|||||||
(long)PassiveID.敏捷之刃 => new 敏捷之刃(),
|
(long)PassiveID.敏捷之刃 => new 敏捷之刃(),
|
||||||
(long)PassiveID.弱者猎手 => new 弱者猎手(),
|
(long)PassiveID.弱者猎手 => new 弱者猎手(),
|
||||||
(long)ItemPassiveID.攻击之爪 => new 攻击之爪技能(),
|
(long)ItemPassiveID.攻击之爪 => new 攻击之爪技能(),
|
||||||
_ => new OpenSkill(id, name, args)
|
_ => null
|
||||||
};
|
};
|
||||||
|
|
||||||
if (skill is OpenSkill && args.TryGetValue("values", out object? value) && value is Dictionary<string, object> dict)
|
|
||||||
{
|
|
||||||
foreach (string key in dict.Keys)
|
|
||||||
{
|
|
||||||
skill.Values[key] = dict[key];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return skill;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user