.\README\attr.main\Ability\MoveLightningAbility>

MoveLightningAbility

extends 单位技能

非常奇怪的能力, 先要改minSpeedmaxSpeed, 再改一下几率chance(建议比较小)

主要属性

fieldtypedefaultnote
damagefloat35.0闪电伤害
chancefloat0.150创造几率
lengthint12闪电长度
minSpeedfloat0.80
maxSpeedfloat1.20
colorColorA9D8FF闪电颜色
offsetfloat0.0闪电y轴偏移量
widthfloat0.0闪电x轴偏移量
alternatebooleantrue
bulletBulletTypenull消耗子弹
bulletAnglefloat0.0
bulletSpreadfloat0.0
parentizeEffectboolean

构造方法

public MoveLightningAbility(float damage, int length, float chance, float offset, float minSpeed, float maxSpeed, Color color, String heatRegion){
    this.damage = damage;
    this.length = length;
    this.chance = chance;
    this.offset = offset;
    this.minSpeed = minSpeed;
    this.maxSpeed = maxSpeed;
    this.color = color;
    this.heatRegion = heatRegion;
}

public MoveLightningAbility(float damage, int length, float chance, float offset, float minSpeed, float maxSpeed, Color color){
    this.damage = damage;
    this.length = length;
    this.chance = chance;
    this.offset = offset;
    this.minSpeed = minSpeed;
    this.maxSpeed = maxSpeed;
    this.color = color;
}