chore: initialize OshimaBot repository (rename from Enhancement)

This commit is contained in:
2026-11-09 19:38:28 +08:00
commit f9052358a9
414 changed files with 36653 additions and 0 deletions
@@ -0,0 +1,48 @@
using FunGame.Core.Entity;
using FunGame.Core.Library.Constant;
using OshimaBot.Content.Effects.OpenEffects;
namespace OshimaBot.Content.Items
{
[Obsolete("测试物品请勿使用")]
public class 独奏弓 : Item
{
public override long Id => (long)WeaponID.独奏弓;
public override string Name => "独奏弓";
public override string Description => Skills.Passives.Count > 0 ? Skills.Passives.First().Description : "";
public 独奏弓(Character? character = null) : base(ItemType.Weapon)
{
WeaponType = WeaponType.Bow;
Skills.Passives.Add(new 独奏弓技能(character, this));
}
}
public class 独奏弓技能 : Skill
{
public override long Id => (long)WeaponID.独奏弓;
public override string Name => "独奏弓";
public override string Description => string.Join("\r\n", Effects.Select(e => e.Description));
private readonly double 攻击力加成 = 80;
private readonly double 硬直时间减少 = 2;
public 独奏弓技能(Character? character, Item item) : base(SkillType.Passive, character)
{
Level = 1;
Item = item;
Dictionary<string, object> values = new()
{
{ "exatk", 攻击力加成 },
{ "hatr", 硬直时间减少 }
};
Effects.Add(new ExATK(this, values, character));
Effects.Add(new NormalAttackHardTimeReduce(this, values, character));
}
public override IEnumerable<Effect> AddPassiveEffectToCharacter()
{
return Effects;
}
}
}
@@ -0,0 +1,56 @@
using FunGame.Core.Entity;
using FunGame.Core.Library.Constant;
using OshimaBot.Content.Effects.OpenEffects;
using OshimaBot.Content.Skills;
namespace OshimaBot.Content.Items
{
public class 糖糖一周年纪念武器 : Item
{
public override long Id => (long)WeaponID.糖糖一周年纪念武器;
public override string Name => "粉糖雾蝶";
public override string Description => $"{Skills.Passives.First().Description}{Skills.Passives.Last().Name}:{Skills.Passives.Last().Description}";
public override string BackgroundStory => "可长达1.5米的权杖,通体呈半透明的琥珀金色,内部可见如星河般缓缓流动的魔法糖浆。";
public override string Category => "糖糖一周年限定纪念物品";
public override QualityType QualityType => QualityType.Gold;
public 糖糖一周年纪念武器(Character? character = null) : base(ItemType.Weapon)
{
Price = 0;
IsSellable = false;
IsTradable = false;
IsLock = true;
WeaponType = WeaponType.Staff;
Skills.Passives.Add(new 糖糖一周年纪念武器技能(character, this));
Skills.Passives.Add(new 致命节奏(character)
{
Level = 1
});
}
}
public class 糖糖一周年纪念武器技能 : Skill
{
public override long Id => (long)ItemPassiveID.糖糖一周年纪念武器;
public override string Name => "粉糖雾蝶";
public override string Description => string.Join("", Effects.Select(e => e.Description));
private readonly double 攻击力加成 = 0.46;
public 糖糖一周年纪念武器技能(Character? character = null, Item? item = null) : base(SkillType.Passive, character)
{
Level = 1;
Item = item;
Dictionary<string, object> values = new()
{
{ "exatk", 攻击力加成 }
};
Effects.Add(new ExATK2(this, values, character));
}
public override IEnumerable<Effect> AddPassiveEffectToCharacter()
{
return Effects;
}
}
}