using Milimoe.FunGame.Core.Api.Utility; using Milimoe.FunGame.Core.Entity; using Oshima.FunGame.OshimaModules.Items; namespace Oshima.FunGame.OshimaModules { public class ItemModule : Milimoe.FunGame.Core.Library.Common.Addon.ItemModule { public override string Name => OshimaGameModuleConstant.Item; public override string Description => OshimaGameModuleConstant.Description; public override string Version => OshimaGameModuleConstant.Version; public override string Author => OshimaGameModuleConstant.Author; public override Dictionary Items { get { return Factory.GetGameModuleInstances(OshimaGameModuleConstant.General, OshimaGameModuleConstant.Item); } } protected override Factory.EntityFactoryDelegate ItemFactory() { return (id, name, args) => { return id switch { (long)AccessoryID.攻击之爪5 => new 攻击之爪5(), (long)AccessoryID.攻击之爪15 => new 攻击之爪15(), (long)AccessoryID.攻击之爪25 => new 攻击之爪25(), (long)AccessoryID.攻击之爪35 => new 攻击之爪35(), (long)ConsumableID.小经验书 => new 小经验书(), (long)ConsumableID.中经验书 => new 中经验书(), (long)ConsumableID.大经验书 => new 大经验书(), (long)SpecialItemID.升华之印 => new 升华之印(), (long)SpecialItemID.流光之印 => new 流光之印(), (long)SpecialItemID.永恒之印 => new 永恒之印(), (long)SpecialItemID.技能卷轴 => new 技能卷轴(), (long)SpecialItemID.智慧之果 => new 智慧之果(), (long)SpecialItemID.奥术符文 => new 奥术符文(), _ => null, }; }; } } }