You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
664 B
29 lines
664 B
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class Sword : Weapon
|
|
{
|
|
protected override void Revise()
|
|
{
|
|
description = "一把保养得很好的长剑,拥有不错的穿刺与打击能力";
|
|
weaponName = "长剑";
|
|
manaCovery = 2;
|
|
}
|
|
public override void LevelUp(Character character)
|
|
{
|
|
character.money -= CheckLevelUpCost();
|
|
if(level < 10)
|
|
{
|
|
level += 1;
|
|
strAddition += 0.08f;
|
|
dexAddtion += 0.04f;
|
|
basicDamage += 3;
|
|
}
|
|
}
|
|
public override int CheckLevelUpCost()
|
|
{
|
|
return 5;
|
|
}
|
|
}
|