tweaks to playlist loader, working on preventing reentry to levels in round
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user