diff --git a/global.gd b/global.gd index f10ad03..6cf2e95 100644 --- a/global.gd +++ b/global.gd @@ -12,6 +12,7 @@ var bossready = false var playerx var playery var ccutscene = null +var difdamage = 0 const cutscenes = [["res://levels/Cutscenes/opening/aboutkaizo.tscn", "res://levels/Cutscenes/opening/midorihello.tscn", 18, false], ["res://levels/Cutscenes/opening/midorihello.tscn", "res://levels/Cutscenes/opening/fearlessmidori.tscn", 18, false], ["res://levels/Cutscenes/opening/fearlessmidori.tscn", "res://levels/Cutscenes/opening/midoriwaterfall.tscn", 0, false], ["res://levels/Cutscenes/opening/midoriwaterfall.tscn", "res://levels/Cutscenes/opening/midorireading.tscn", 0, false], ["res://levels/Cutscenes/opening/midorireading.tscn", "res://levels/Cutscenes/opening/boomboomtorofi.tscn", 0, false], ["res://levels/Cutscenes/opening/boomboomtorofi.tscn", "res://levels/ui/gameplay.tscn", 0, true], ["res://levels/Cutscenes/unfunaversary/punishment.tscn", "res://levels/Cutscenes/unfunaversary/sadness.tscn", 1, false], ["res://levels/Cutscenes/unfunaversary/sadness.tscn", "res://levels/Cutscenes/unfunaversary/r3.tscn", 1, false], ["res://levels/Cutscenes/unfunaversary/r3.tscn", "res://levels/Cutscenes/unfunaversary/firstclass.tscn", 1, false], ["res://levels/Cutscenes/unfunaversary/firstclass.tscn", "res://backgounds/result.tscn", 5, true], ["res://levels/Cutscenes/Honker Railway/forest.tscn", "res://levels/Cutscenes/Honker Railway/lordlytrashcan.tscn", 19, false], ["res://levels/Cutscenes/Honker Railway/lordlytrashcan.tscn", "res://levels/Cutscenes/Honker Railway/railway.tscn", 19, false], ["res://levels/Cutscenes/Honker Railway/railway.tscn", "res://levels/ui/gameplay.tscn", 19, true], ["res://levels/Cutscenes/Troublemaker/buildings.tscn", "res://levels/Cutscenes/Troublemaker/pamela.tscn", 18, false], ["res://levels/Cutscenes/Troublemaker/pamela.tscn", "res://levels/Cutscenes/Troublemaker/kungfu.tscn", 18, false], ["res://levels/Cutscenes/Troublemaker/kungfu.tscn", "res://levels/ui/gameplay.tscn", 6, true]] const pcnames = ["Midori Asgardius", "Diana Asgardius", null, "Kimberly Arch", null, null, null, "Pamela Hashimoto", "Lety Hashimoto", "Natasha Dostoyevsky"] const npcnames = ["Lily", "Railway Girl", null, "Kimberly Arch", null, null, null, null, null, "Natasha Dostoyevsky"] diff --git a/levels/ui/erase.gd b/levels/ui/erase.gd index db8cb4e..42271f8 100644 --- a/levels/ui/erase.gd +++ b/levels/ui/erase.gd @@ -55,6 +55,7 @@ func _on_ram_pressed() -> void: Global.cplace = [1, 11, 19] Global.live = 0 Global.cpchar = 0 + Global.difdamage = 0 Global.party = [[0,0], [null,null], [null,null], [null,null]] Global.ccutscene = 0 _on_back_pressed() diff --git a/levels/ui/gameplay.gd b/levels/ui/gameplay.gd index 433aa5c..dc9ae3e 100644 --- a/levels/ui/gameplay.gd +++ b/levels/ui/gameplay.gd @@ -16,6 +16,28 @@ var ishud = true # Called when the node enters the scene tree for the first time. func _ready(): + if Global.dificulty == 1: + if Global.difdamage != 0: + print("Script Kiddie") + Global.difdamage = Global.dparty/0 + elif Global.dificulty == 2: + if Global.difdamage == 0 || Global.difdamage == 1: + Global.difdamage = 1 + else: + print("Script Kiddie") + Global.difdamage = Global.dparty/0 + elif Global.dificulty == 3: + if Global.difdamage == 0 || Global.difdamage == 100: + Global.difdamage = 100 + else: + print("Script Kiddie") + Global.difdamage = Global.dparty/0 + elif Global.dificulty == 4: + if Global.difdamage == 0 || Global.difdamage == 1000: + Global.difdamage = 1000 + else: + print("Script Kiddie") + Global.difdamage = Global.dparty/0 Input.connect("joy_connection_changed",self,"_on_joy_connection_changed") _statrebase() add_child(bgsound) diff --git a/levels/ui/newgame.gd b/levels/ui/newgame.gd index 1d3fa62..9207777 100644 --- a/levels/ui/newgame.gd +++ b/levels/ui/newgame.gd @@ -49,11 +49,17 @@ func _on_thisfirst_pressed(): func _on_challenge_pressed(): - pass # Replace with function body. + _statrebase() + Global.dificulty = 3 + _reset() + get_tree().change_scene("res://levels/ui/Cutscenes.tscn") func _on_maniac_pressed(): - pass # Replace with function body. + _statrebase() + Global.dificulty = 4 + _reset() + get_tree().change_scene("res://levels/ui/Cutscenes.tscn") func _statrebase(): diff --git a/sprites/common/bullet/X11.gd b/sprites/common/bullet/X11.gd index bf516ab..fc574c3 100644 --- a/sprites/common/bullet/X11.gd +++ b/sprites/common/bullet/X11.gd @@ -10,6 +10,7 @@ func _ready(): if is_in_group("players"): speciality = Global.pcspecialities[Global.dparty[Global.dcpchar][0]] add_to_group(btype) + attack = attack * Global.difdamage #pass # Replace with function body. diff --git a/sprites/common/bullet/aero.gd b/sprites/common/bullet/aero.gd index 068db22..be4723e 100644 --- a/sprites/common/bullet/aero.gd +++ b/sprites/common/bullet/aero.gd @@ -17,6 +17,7 @@ func _ready(): if is_in_group("players"): speciality = Global.pcspecialities[Global.dparty[Global.dcpchar][0]] add_to_group(btype) + attack = attack * Global.difdamage #pass # Replace with function body. diff --git a/sprites/common/bullet/arrow.gd b/sprites/common/bullet/arrow.gd index 027ba9b..4cf1f10 100644 --- a/sprites/common/bullet/arrow.gd +++ b/sprites/common/bullet/arrow.gd @@ -17,6 +17,7 @@ func _ready(): rotation = velocity.angle() else: rotation = direction.angle() + attack = attack * Global.difdamage #pass # Replace with function body. diff --git a/sprites/common/bullet/fireball.gd b/sprites/common/bullet/fireball.gd index 2363cb4..5a9100a 100644 --- a/sprites/common/bullet/fireball.gd +++ b/sprites/common/bullet/fireball.gd @@ -11,6 +11,7 @@ var crit func _ready(): isvisible = $VisibleOnScreenNotifier2D add_to_group(btype) + attack = attack * Global.difdamage #pass # Replace with function body. diff --git a/sprites/common/bullet/snowflake.gd b/sprites/common/bullet/snowflake.gd index bfcfdc4..36082c1 100644 --- a/sprites/common/bullet/snowflake.gd +++ b/sprites/common/bullet/snowflake.gd @@ -11,6 +11,7 @@ var crit func _ready(): isvisible = $VisibleOnScreenNotifier2D add_to_group(btype) + attack = attack * Global.difdamage #pass # Replace with function body. diff --git a/sprites/common/bullet/tnt.gd b/sprites/common/bullet/tnt.gd index 084a705..cf95edd 100644 --- a/sprites/common/bullet/tnt.gd +++ b/sprites/common/bullet/tnt.gd @@ -11,6 +11,7 @@ var crit func _ready(): isvisible = $VisibleOnScreenNotifier2D add_to_group(btype) + attack = attack * Global.difdamage #pass # Replace with function body.