24 lines
818 B
C#
24 lines
818 B
C#
using System.Collections.Generic;
|
|
|
|
namespace Game
|
|
{
|
|
/// <summary>
|
|
/// 装备合成系统
|
|
/// </summary>
|
|
public class EquipmentCraftingSystem
|
|
{
|
|
// 合成装备的方法
|
|
public Equipment Combine(Equipment base1, Equipment base2)
|
|
{
|
|
if (base1.Name == "长剑" && base2.Name == "锁子甲")
|
|
{
|
|
return new Equipment("巨人杀手", "增加对高生命值单位的伤害", EquipmentType.Composite,
|
|
new List<StatModifier> { new StatModifier(StatType.AttackDamage, 25) },
|
|
new List<Effect> { new Effect("巨人杀手效果", "对高生命值单位造成额外伤害", EffectType.OnAttack, 0.5f) });
|
|
}
|
|
// 可以加入更多合成配方
|
|
return null;
|
|
}
|
|
}
|
|
|
|
} |