Skip to content

Commit

Permalink
sound change if wardog is displayed as a military jeep
Browse files Browse the repository at this point in the history
  • Loading branch information
mklemmingen committed Jan 13, 2024
1 parent 2e537a3 commit a9e40e3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion core/src/com/boomchess/game/backend/subsoldier/Wardog.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.boomchess.game.backend.subsoldier;

import static com.boomchess.game.BoomChess.dogIsJeep;

import com.badlogic.gdx.graphics.Texture;
import com.boomchess.game.BoomChess;
import com.boomchess.game.backend.Board;
Expand Down Expand Up @@ -43,7 +45,7 @@ public Texture takeSelfie() {
return BoomChess.greenFea;
}
} else {
if(BoomChess.dogIsJeep){
if(dogIsJeep){
if (teamColor.equals("red")) {
return BoomChess.redJeep;
} else {
Expand Down Expand Up @@ -201,6 +203,11 @@ public int defendAndBleed(int damage, Soldier soldierAttack) {

public void makeASound(){
if(BoomChess.isMedievalMode){
if(dogIsJeep){
BoomChess.smallArmsSound.play(BoomChess.soundVolume);
} else {
BoomChess.dogSound.play(BoomChess.soundVolume);
}
BoomChess.dogSound.play(BoomChess.soundVolume);
} else {
BoomChess.magicSound.play(BoomChess.soundVolume);
Expand Down

0 comments on commit a9e40e3

Please sign in to comment.