.\README\attr.main\UnlockableContent\Block\Wall>

Wall

extends Block

全部属性

fieldtypedefaultnote
lightningChancefloat-1放电几率
lightningDamagefloat20放电伤害
lightningLengthint17放电长度
lightningColorColorPal.surge放电颜色
lightningSoundSoundSounds.spark放电声音
chanceDeflectfloat-1反弹几率
flashHitboolean反弹时闪烁
flashColorColorColor.white闪烁颜色
deflectSoundSoundSounds.none反弹声音

构造方法

public Wall(String name){
    super(name);
    solid = true;
    destructible = true;
    group = BlockGroup.walls;
    buildCostMultiplier = 6f;
    canOverdrive = false;
    drawDisabled = false;
    crushDamageMultiplier = 5f;
    priority = TargetPriority.wall;

    //it's a wall of course it's supported everywhere
    envEnabled = Env.any;
}