2022-01-09 02:27:37 +00:00
|
|
|
package balance
|
|
|
|
|
|
|
|
// Store a copy of the PlayerCharacterDoodad original value.
|
|
|
|
var playerCharacterDefault string
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
playerCharacterDefault = PlayerCharacterDoodad
|
|
|
|
}
|
|
|
|
|
|
|
|
// IsPlayerCharacterDefault returns whether the balance.PlayerCharacterDoodad
|
|
|
|
// has been modified at runtime away from its built-in default. This is a cheat
|
|
|
|
// detection method: high scores could be tainted if you `fly like a bird` right
|
|
|
|
// to the exit in a couple of seconds.
|
|
|
|
func IsPlayerCharacterDefault() bool {
|
|
|
|
return PlayerCharacterDoodad == playerCharacterDefault
|
|
|
|
}
|
|
|
|
|
|
|
|
// The game's cheat codes
|
|
|
|
var (
|
|
|
|
CheatUncapFPS = "unleash the beast"
|
|
|
|
CheatEditDuringPlay = "don't edit and drive"
|
|
|
|
CheatScrollDuringPlay = "scroll scroll scroll your boat"
|
|
|
|
CheatAntigravity = "import antigravity"
|
|
|
|
CheatNoclip = "ghost mode"
|
|
|
|
CheatShowAllActors = "show all actors"
|
|
|
|
CheatGiveKeys = "give all keys"
|
|
|
|
CheatDropItems = "drop all items"
|
|
|
|
CheatPlayAsBird = "fly like a bird"
|
|
|
|
CheatPlayAsBoy = "pinocchio"
|
|
|
|
CheatPlayAsAzuBlue = "the cell"
|
|
|
|
CheatPlayAsThief = "play as thief"
|
2022-02-20 19:48:36 +00:00
|
|
|
CheatPlayAsAnvil = "megaton weight"
|
2022-01-18 06:02:27 +00:00
|
|
|
CheatGodMode = "god mode"
|
2022-03-06 06:44:54 +00:00
|
|
|
CheatDebugLoadScreen = "test load screen"
|
2022-03-26 20:55:06 +00:00
|
|
|
CheatUnlockLevels = "master key"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Global cheat boolean states.
|
|
|
|
var (
|
|
|
|
CheatEnabledUnlockLevels bool
|
2022-01-09 02:27:37 +00:00
|
|
|
)
|