made it so certain cheats disallow you from submitting scores (fixes #215)
This commit is contained in:
parent
ee3e1dc650
commit
b925b22333
3 changed files with 30 additions and 2 deletions
|
@ -12,6 +12,9 @@ var lines: int = 0
|
|||
var time: float = 0.0
|
||||
var n: int = 0
|
||||
var debug = false
|
||||
var is_cheating = false
|
||||
var reset_is_cheating = false
|
||||
|
||||
var allow_sword = false
|
||||
var moon_jump = false
|
||||
var cfox_mode = false
|
||||
|
@ -103,18 +106,26 @@ func _enter_code():
|
|||
"1989":
|
||||
for enemy in get_tree().get_nodes_in_group("enemy"):
|
||||
enemy.die()
|
||||
is_cheating = true
|
||||
reset_is_cheating = true
|
||||
"PEN":
|
||||
debug = true
|
||||
is_cheating = true
|
||||
reset_is_cheating = false
|
||||
"6DOUBLOONS":
|
||||
Console.print(get_tree().get_nodes_in_group("gold").size())
|
||||
#Doesnt work
|
||||
"EVILSBANE":
|
||||
allow_sword = true
|
||||
Input.action_press("sword")
|
||||
is_cheating = true
|
||||
reset_is_cheating = false
|
||||
"REDFEATHER":
|
||||
var player = get_tree().get_nodes_in_group("player").pop_back()
|
||||
if player != null:
|
||||
player.state_chart.set_guard_property("red_feather", true)
|
||||
is_cheating = true
|
||||
reset_is_cheating = false
|
||||
"NIGHTCORE":
|
||||
Engine.time_scale = 2
|
||||
Audio.ac_music.pitch_scale = 2
|
||||
|
@ -126,6 +137,8 @@ func _enter_code():
|
|||
"CANYOUDUNK":
|
||||
var player = get_tree().get_nodes_in_group("player").pop_back()
|
||||
if player != null: Game.instance_node(preload("res://objects/environment/zball/zball.tscn"),player.global_position.x,player.global_position.y - 18.0,Game.get_map())
|
||||
is_cheating = true
|
||||
reset_is_cheating = true
|
||||
"YUMMY":
|
||||
var player = get_tree().get_nodes_in_group("player").pop_back()
|
||||
if player != null:
|
||||
|
@ -147,6 +160,8 @@ func _enter_code():
|
|||
if player != null: player.sprite.material.set_shader_param("border_color",Color.blue)
|
||||
"BEESKNEES":
|
||||
Game.get_map().rotation_degrees = -2
|
||||
is_cheating = true
|
||||
reset_is_cheating = true
|
||||
#doesnt work
|
||||
"CFOX":
|
||||
var player = get_tree().get_nodes_in_group("player").pop_back()
|
||||
|
@ -154,12 +169,18 @@ func _enter_code():
|
|||
player.cfox.visible = true
|
||||
"BANDANA":
|
||||
infinite_arrows = true
|
||||
is_cheating = true
|
||||
reset_is_cheating = false
|
||||
"ESCARGOD":
|
||||
var player = get_tree().get_nodes_in_group("player").pop_back()
|
||||
player.state_chart.send_event("become_invulnerable")
|
||||
is_cheating = true
|
||||
reset_is_cheating = false
|
||||
"GILLS":
|
||||
var player = get_tree().get_nodes_in_group("player").pop_back()
|
||||
player.underwater = false
|
||||
is_cheating = true
|
||||
reset_is_cheating = false
|
||||
"CHORUS":
|
||||
var music = AudioServer.get_bus_index("music")
|
||||
AudioServer.set_bus_effect_enabled(music,0,true)
|
||||
|
@ -190,11 +211,13 @@ func _enter_code():
|
|||
dir.list_dir_end()
|
||||
"SKELETON":
|
||||
Game.keys = 50
|
||||
is_cheating = true
|
||||
reset_is_cheating = true
|
||||
"WHATSTHATSMELL":
|
||||
prey_slaughtered = true
|
||||
"SUS":
|
||||
var scrump = get_tree().get_nodes_in_group("scrump").pop_back()
|
||||
scrump.sus_monster()
|
||||
if scrump != null: scrump.sus_monster()
|
||||
sus_monster = true
|
||||
"FASTPUNISHMENT":
|
||||
fast_punishment = 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue