Files
2026-04-10 16:35:07 +07:00

92 lines
2.4 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#define SKILL_CLIENT
using BrewMonster.Scripts.Skills;
using CSNetwork.GPDataType;
using System.Collections.Generic;
using System.Text;
using UnityEngine;
using static BrewMonster.PET_EVOLVE_CONFIG;
namespace BrewMonster
{
#if SKILL_SERVER
public class Skill14 : Skill
{
public const int SKILL_ID = 14;
public Skill14() : base(SKILL_ID)
{
}
}
#endif
public class Skill14Stub : SkillStub
{
public Skill14Stub() : base(14)
{
cls = 4;
name = "";
nativename = "";
icon = "噬血";
max_level = 3;
type = 3;
apcost = 0;
arrowcost = 0;
apgain = 0;
attr = 0;
rank = 0;
eventflag = 0;
time_type = 0;
showorder = 143;
allow_land = true;
allow_air = true;
allow_water = true;
allow_ride = false;
auto_attack = false;
long_range = 0;
restrict_corpse = 1;
allow_forms = 1;
effect = "噬血";
doenchant = 0;
dobless = 0;
commoncooldown = 0;
commoncooldowntime = 0;
restrict_weapons.Add(9);
range = new Range();
range.type = 0;
pre_skills = new Dictionary<uint, int>();
pre_skills.Add(0, 1);
}
~Skill14Stub() { }
public override float GetMpcost(Skill skill) => (float)(10 + 5 * skill.GetLevel());
public override int GetExecutetime(Skill skill) => 3000;
public override int GetCoolingtime(Skill skill) => 200002;
public float GetRadius(Skill skill) => 0f;
public float GetAttackdistance(Skill skill) => 0f;
public float GetAngle(Skill skill) => (float)(1 - 0.0111111 * 0);
public override float GetPraydistance(Skill skill) => 433f;
#if SKILL_CLIENT
public override int GetIntroduction(Skill skill, StringBuilder buffer, string format)
{
buffer.Append(GPDataTypeHelper.FormatSkillIntroduction(format,
skill.GetLevel()));
return buffer.Length;
}
#endif
#if SKILL_SERVER
public int GetEnmity(Skill skill) => 333;
public bool TakeEffect(Skill skill) => true;
public float GetEffectdistance(Skill skill) => 5f;
public float GetHitrate(Skill skill) => 1.0f;
#endif
}
}