Skip to content
Snippets Groups Projects
Commit 1c713fa2 authored by Malik Rafsanjani's avatar Malik Rafsanjani
Browse files
parents 292a9fd6 8d84c04e
Branches
Tags
No related merge requests found
...@@ -184,4 +184,9 @@ public class CheatManager : MonoBehaviour ...@@ -184,4 +184,9 @@ public class CheatManager : MonoBehaviour
cheats[(int)cheat] = false; cheats[(int)cheat] = false;
} }
} }
public int GetPrevCurrency()
{
return this.prevCurrency;
}
} }
...@@ -51,6 +51,8 @@ public class GlobalStateManager : MonoBehaviour ...@@ -51,6 +51,8 @@ public class GlobalStateManager : MonoBehaviour
{ {
get get
{ {
bool[] temp = cheatManager.SaveCheat();
if (temp[(int)CheatType.MOTHERLODE]) return cheatManager.GetPrevCurrency();
return GameControl.control.currency; return GameControl.control.currency;
} }
} }
...@@ -121,7 +123,7 @@ public class GlobalStateManager : MonoBehaviour ...@@ -121,7 +123,7 @@ public class GlobalStateManager : MonoBehaviour
var type = Enum.GetName(typeof(WeaponType), weapon.Type); var type = Enum.GetName(typeof(WeaponType), weapon.Type);
var level = weapon.Level; var level = weapon.Level;
var isUnlocked = weapon.IsUnlocked; var isUnlocked = weapon.IsUnlocked;
str += string.Format("Weapon {0} is {1}locked on level {2}\n", type, isUnlocked ? "un" : "",level); str += string.Format("Weapon {0} is {1}locked on level {2}\n", type, isUnlocked ? "un" : "", level);
} }
// TODO: PET // TODO: PET
...@@ -132,7 +134,7 @@ public class GlobalStateManager : MonoBehaviour ...@@ -132,7 +134,7 @@ public class GlobalStateManager : MonoBehaviour
{ {
get get
{ {
return temple.IdxCurrentQuest; return temple.IdxCurrentQuest;
} }
} }
...@@ -210,7 +212,7 @@ public class GlobalStateManager : MonoBehaviour ...@@ -210,7 +212,7 @@ public class GlobalStateManager : MonoBehaviour
temple.IdxCurrentQuest = state.playerStateSave.idxQuest; temple.IdxCurrentQuest = state.playerStateSave.idxQuest;
var len = state.playerStateSave.playerWeapons.Length; var len = state.playerStateSave.playerWeapons.Length;
for ( var i = 0; i<len; i++ ) for (var i = 0; i < len; i++)
{ {
var weapon = state.playerStateSave.playerWeapons[i]; var weapon = state.playerStateSave.playerWeapons[i];
var type = weapon.weaponType; var type = weapon.weaponType;
......
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