extends Block
field | type | default | note |
---|---|---|---|
lightningChance | float | -1 | 放电几率 |
lightningDamage | float | 20 | 放电伤害 |
lightningLength | int | 17 | 放电长度 |
lightningColor | Color | Pal.surge | 放电颜色 |
lightningSound | Sound | Sounds.spark | 放电声音 |
chanceDeflect | float | -1 | 反弹几率 |
flashHit | boolean | 反弹时闪烁 | |
flashColor | Color | Color.white | 闪烁颜色 |
deflectSound | Sound | Sounds.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; }