tweaks to playlist loader, working on preventing reentry to levels in round

This commit is contained in:
derek
2025-02-28 16:41:21 -06:00
parent dba1be2034
commit 3ab4160be6
9 changed files with 23 additions and 8 deletions

View File

@@ -13,9 +13,13 @@ func _ready() -> void:
if i.is_in_group("portal"):
portals.append(i)
print("NO REENTRY PORTALS : ",GameGlobals.no_reentry_portals)
var id = 0
for i in portals:
i.scene_path = str(GameGlobals.current_match[round_id][id]["level_path"])
i.scene_name = str(GameGlobals.current_match[round_id][id]["level_name"])
i.level_gamemode = load(GameGlobals.current_match[round_id][id]["gamemode_path"])
if !GameGlobals.no_reentry_portals.has(Vector2(round_id,id)):
i.round_id = Vector2(round_id,id)
i.scene_path = str(GameGlobals.current_match[round_id][id]["level_path"])
i.scene_name = str(GameGlobals.current_match[round_id][id]["level_name"])
i.level_gamemode = load(GameGlobals.current_match[round_id][id]["gamemode_path"])
id += 1