Can someone explain the difference between "Total Destruction" and "Destroy Enemies"?
Thanks!
Quote from: Sorrontis on September 23, 2016, 10:06:08 AM
Can someone explain the difference between "Total Destruction" and "Destroy Enemies"?
Thanks!
Total Destruction requires you to destroy all enemy struc, particles, and mire (I think?)
Quote from: planetfall on September 23, 2016, 10:07:30 AM
Quote from: Sorrontis on September 23, 2016, 10:06:08 AM
Can someone explain the difference between "Total Destruction" and "Destroy Enemies"?
Thanks!
Total Destruction requires you to destroy all enemy struc, particles, and mire (I think?)
Thanks, that's what I thought. Lets see if someone knows with confidence :D
Quote from: Sorrontis on September 23, 2016, 10:09:01 AM
Thanks, that's what I thought. Lets see if someone knows with confidence :D
This will be as authoritative as it gets. Looks like structures, particles, emergent, and mines have to be destroyed.
if (gameGoal == GAME_GOAL.DESTROY_ENEMIES) {
//Debug.Log(goalEnemies.Count + " " + goalPlayer.Count);
if (goalEnemies.Count == 0) {
if (!requireAllItemCollection || goalPlayer.Count == 0) {
if (importantMessage.gameObject.activeSelf) importantMessage.Hide();
MissionComplete(true);
} else {
if (!importantMessage.gameObject.activeSelf) importantMessage.Show("COLLECT ALL ITEMS TO COMPLETE MISSION");
}
}
return;
} else if (gameGoal == GAME_GOAL.TOTAL_DESTRUCTION) {
bool enemies = goalEnemies.Count == 0;
bool particles = redParticleCount == 0;
bool emergent = redEmergents.Count == 0;
bool emines = true;
foreach (EnergyMine em in energyMines) {
if (em.enemy) {
emines = false;
break;
}
}
if (enemies && particles && emergent && emines) {
if (!requireAllItemCollection || goalPlayer.Count == 0) {
if (importantMessage.gameObject.activeSelf) importantMessage.Hide();
MissionComplete(true);
} else {
if (!importantMessage.gameObject.activeSelf) importantMessage.Show("COLLECT ALL ITEMS TO COMPLETE MISSION");
}
return;
}
} else if (gameGoal == GAME_GOAL.COLLECT_ITEMS) {
//Debug.Log(goalEnemies.Count + " " + goalPlayer.Count);
if (goalPlayer.Count == 0) {
if (importantMessage.gameObject.activeSelf) importantMessage.Hide();
MissionComplete(true);
}
return;
} else if (gameGoal == GAME_GOAL.PERCENT_MIRE) {
float mireCoverage = (float)Land.instance.blueCoverTotal / (float)Land.instance.landTotal * 100f;
if (mireCoverage >= gameGoalMirePercent) {
if (!requireAllItemCollection || goalPlayer.Count == 0) {
if (importantMessage.gameObject.activeSelf) importantMessage.Hide();
MissionComplete(true);
} else {
if (!importantMessage.gameObject.activeSelf) importantMessage.Show("COLLECT ALL ITEMS TO COMPLETE MISSION");
}
return;
}
} else if (gameGoal == GAME_GOAL.CUSTOM) {
//Something in PRPL has to cause the win
}
Wow, I love your style!
enough confidence for you? hehe
It might have been easier to understand if "Total Destruction" was titled "Total Clean-up".
Sterilisation.
I was keeping my mouth shut on the sterilization one :-[
Fair.