Verified Commit c20518ff authored by Mike Koch's avatar Mike Koch 💬

Fix icons for some missions

parent a9774626
...@@ -4,8 +4,9 @@ namespace BusinessLogic; ...@@ -4,8 +4,9 @@ namespace BusinessLogic;
abstract class MissionType { abstract class MissionType {
const PROLOGUE = "Prologue";
const MISSION = "Mission"; const MISSION = "Mission";
const BONUS_EPISODE = "Bonus Episode"; const BONUS_MISSION = "Bonus Mission";
const PATIENT_ZERO = "Patient Zero"; const PATIENT_ZERO = "Patient Zero";
const ELUSIVE_TARGET = "Elusive Target"; const ELUSIVE_TARGET = "Elusive Target";
const SNIPER_ASSASSIN = "Sniper Assassin"; const SNIPER_ASSASSIN = "Sniper Assassin";
......
...@@ -58,7 +58,9 @@ class GameMapViewModel extends BaseModel { ...@@ -58,7 +58,9 @@ class GameMapViewModel extends BaseModel {
public function setIcon() { public function setIcon() {
$this->icon = str_replace(' ', '-', mb_strtolower($this->missionType)); $this->icon = str_replace(' ', '-', mb_strtolower($this->missionType));
if ($this->missionType === MissionType::BONUS_EPISODE || $this->missionType === MissionType::PATIENT_ZERO) { if ($this->missionType === MissionType::PROLOGUE ||
$this->missionType === MissionType::BONUS_MISSION ||
$this->missionType === MissionType::PATIENT_ZERO) {
$this->icon = 'mission'; $this->icon = 'mission';
} }
} }
......
...@@ -50,7 +50,9 @@ class MissionViewModel extends BaseModel { ...@@ -50,7 +50,9 @@ class MissionViewModel extends BaseModel {
public function setIcon() { public function setIcon() {
$this->icon = str_replace(' ', '-', mb_strtolower($this->missionType)); $this->icon = str_replace(' ', '-', mb_strtolower($this->missionType));
if ($this->missionType === MissionType::BONUS_EPISODE || $this->missionType === MissionType::PATIENT_ZERO) { if ($this->missionType === MissionType::PROLOGUE ||
$this->missionType === MissionType::BONUS_MISSION ||
$this->missionType === MissionType::PATIENT_ZERO) {
$this->icon = 'mission'; $this->icon = 'mission';
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment