diff --git a/GameModes/cookie_mode.tres b/GameModes/cookie_mode.tres index 7f36888..1297a4f 100644 --- a/GameModes/cookie_mode.tres +++ b/GameModes/cookie_mode.tres @@ -8,6 +8,7 @@ gamemode_name = "Cookie Mode" estimated_difficulty = 4 win_conditions = 0 survival_time = 160.0 +max_number_of_chests = 3 money_lost_multiplier = 0.5 weapon_penalty = 0 weapon_drop_percentage = 0.5 diff --git a/GameModes/hubworld.tres b/GameModes/hubworld.tres index 218e927..f33b3f5 100644 --- a/GameModes/hubworld.tres +++ b/GameModes/hubworld.tres @@ -8,6 +8,7 @@ gamemode_name = "HUB" estimated_difficulty = 0 win_conditions = null survival_time = 160.0 +max_number_of_chests = 3 money_lost_multiplier = 1.0 weapon_penalty = 2 weapon_drop_percentage = 0.0 diff --git a/GameModes/standard.tres b/GameModes/standard.tres index 0eb30d5..3623fcb 100644 --- a/GameModes/standard.tres +++ b/GameModes/standard.tres @@ -8,6 +8,7 @@ gamemode_name = "Standard" estimated_difficulty = 2 win_conditions = 0 survival_time = 160.0 +max_number_of_chests = 3 money_lost_multiplier = 0.5 weapon_penalty = 0 weapon_drop_percentage = 0.5 diff --git a/Tools/playlist_generator.tscn b/Tools/playlist_generator.tscn index ed2a931..82ce846 100644 --- a/Tools/playlist_generator.tscn +++ b/Tools/playlist_generator.tscn @@ -5,7 +5,7 @@ [ext_resource type="Resource" uid="uid://dn3t7wcoumlm3" path="res://GameModes/standard.tres" id="2_85uje"] [ext_resource type="Script" path="res://gamemode.gd" id="2_hoyqc"] [ext_resource type="Resource" uid="uid://bs8yvpq65yh3w" path="res://GameModes/cookie_mode.tres" id="3_t0mxh"] -[ext_resource type="Resource" uid="uid://dlvhtdmtln3bb" path="res://GameModes/do_not_get_hit.tres" id="4_8wht4"] +[ext_resource type="Resource" uid="uid://cwwvseoidm6ha" path="res://GameModes/DoNotGetHit.tres" id="4_8wht4"] [ext_resource type="Resource" uid="uid://u32xafejp3rq" path="res://GameModes/standard_stam_regen.tres" id="6_vu1w7"] [sub_resource type="Resource" id="Resource_3w5k4"] diff --git a/scenes/test_level_2v2.tscn b/scenes/test_level_2v2.tscn index 28777e1..50f1985 100644 --- a/scenes/test_level_2v2.tscn +++ b/scenes/test_level_2v2.tscn @@ -1626,7 +1626,7 @@ level_gamemode = ExtResource("44_1akso") transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -32.0955, 8.4123, 48.532) [node name="ChestSpawner2" parent="." instance=ExtResource("43_480ap")] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 32.9675, 14.6394, -0.15157) +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 32.9675, 15.717, -0.15157) [node name="ChestSpawner3" parent="." instance=ExtResource("43_480ap")] -transform = Transform3D(-0.999819, 0, -0.0190229, 0, 1, 0, 0.0190229, 0, -0.999819, -0.87897, 5.42587, 4.28007) +transform = Transform3D(-0.999819, 0, -0.0190229, 0, 1, 0, 0.0190229, 0, -0.999819, -0.87897, 5.93516, 4.28007) diff --git a/scripts/LevelManager.gd b/scripts/LevelManager.gd index b226ac1..b1ecf67 100644 --- a/scripts/LevelManager.gd +++ b/scripts/LevelManager.gd @@ -97,9 +97,10 @@ func _ready(): var chest_loc = chest_spawners.pick_random() var instance_chest = CHEST_1.instantiate() print("SPAWNING CHEST AT : ",chest_loc.name) + get_tree().current_scene.add_child(instance_chest) + instance_chest.basis = chest_loc.basis instance_chest.global_position = chest_loc.global_position instance_chest.global_rotation = chest_loc.global_rotation - get_tree().current_scene.add_child(instance_chest) number_chests -= 1