mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-09 20:29:06 +07:00
Cleanup
This commit is contained in:
parent
f64d078f29
commit
087cd2c55a
@ -95,7 +95,7 @@ public class Wall extends Block{
|
||||
//deflect bullets if necessary
|
||||
if(chanceDeflect > 0f){
|
||||
//slow bullets are not deflected
|
||||
if(bullet.vel().len() <= 0.1f || !bullet.type.reflectable) return true;
|
||||
if(bullet.vel.len() <= 0.1f || !bullet.type.reflectable) return true;
|
||||
|
||||
//bullet reflection chance depends on bullet damage
|
||||
if(!Mathf.chance(chanceDeflect / bullet.damage())) return true;
|
||||
@ -114,9 +114,9 @@ public class Wall extends Block{
|
||||
bullet.vel.y *= -1;
|
||||
}
|
||||
|
||||
bullet.owner(this);
|
||||
bullet.team(team);
|
||||
bullet.time(bullet.time() + 1f);
|
||||
bullet.owner = this;
|
||||
bullet.team = team;
|
||||
bullet.time += 1f;
|
||||
|
||||
//disable bullet collision by returning false
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user