fn upgrade_water3(&mut self, cash: &mut i32) {
        if *cash >= self.upgrade_cost {
            self.top_img = String::from("ExtremeSoakerTop");
            self.blast_img = String::from("ExtremeSoakerBlast");
            self.variant = TowerType::WaterGun(WaterGun::ExtremeSoaker);
            self.range *= 1.2;
            self.dmg += 5;
            self.dmg_interval *= 0.7;
            *cash -= self.upgrade_cost;
        }
    }
/// Upgrade the tower to an Extreme Soaker
Upgrade the tower to an Extreme Soaker
Upgrade the tower to an Extreme Soaker
fn upgrade_water3(&mut self, cash: &mut i32) {
        if *cash >= self.upgrade_cost {
            self.top_img = String::from("ExtremeSoakerTop");
            self.blast_img = String::from("ExtremeSoakerBlast");
            self.variant = TowerType::WaterGun(WaterGun::ExtremeSoaker);
            self.range *= 1.2;
            self.dmg += 5;
            self.dmg_interval *= 0.7;
            *cash -= self.upgrade_cost;
        }
    }
fn upgrade_water3 ( & mut self , cash : & mut i32 ) { if * cash >= self . upgrade_cost { self . top_img = String :: from ( " " ) ; self . blast_img = String :: from ( " " ) ; self . variant = TowerType :: WaterGun ( WaterGun :: ExtremeSoaker ) ; self . range *= 1.2 ; self . dmg += 5 ; self . dmg_interval *= 0.7 ; * cash -= self . upgrade_cost ; } }
Upgrade the tower to an Extreme Soaker
Upgrade the tower to an Extreme Soaker
&mut self
cash
&mut i32
&mut self
cash
&mut i32