From a72c62b7607ff9ce77943d97fcb01b9e550686a3 Mon Sep 17 00:00:00 2001 From: derek Date: Mon, 10 Mar 2025 16:54:17 -0500 Subject: [PATCH] tweaks to chest center of mass and playlist loader --- chest1.tscn | 1 + scripts/playlist_loader.gd | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/chest1.tscn b/chest1.tscn index 61f664d..44575d1 100644 --- a/chest1.tscn +++ b/chest1.tscn @@ -372,6 +372,7 @@ transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, collision_layer = 32 collision_mask = 109 mass = 45.0 +center_of_mass_mode = 1 continuous_cd = true script = ExtResource("1_0qjnf") weapon_drops = Array[Resource]([ExtResource("2_fw6eu"), ExtResource("3_vrqjr"), ExtResource("4_45tks"), ExtResource("5_koj0g"), ExtResource("6_plk4s"), ExtResource("7_t1qyn")]) diff --git a/scripts/playlist_loader.gd b/scripts/playlist_loader.gd index 478d57c..657ff85 100644 --- a/scripts/playlist_loader.gd +++ b/scripts/playlist_loader.gd @@ -6,7 +6,7 @@ var portals = [] # Called when the node enters the scene tree for the first time. func _ready() -> void: - if GameGlobals.current_match == [] or GameGlobals.current_match == null: + if GameGlobals.current_match[GameGlobals.current_round_id] == [] or GameGlobals.current_match[GameGlobals.current_round_id] == null: playlist_generator.load_playlist() print("CURRENT MATCH : ",GameGlobals.current_match)