27 return (
int) Math.floor(super.shoot() * 0.8);
The BadGun has poor quality such that at each shot, only 80% of its original power can be produced (r...
BadGun(String name, int power)
Constructs a new BadGun with the specified name and power level.
int shoot()
Shoots the gun and returns 80% of the original power (rounded down).
The Weapon class represents any game weapon with a name and power level.