Host settings 👍

This commit is contained in:
Rendo 2025-12-12 14:55:53 +05:00
commit 54b99eb20f
13 changed files with 203 additions and 148 deletions

View file

@ -80,6 +80,8 @@ func get_empty_ability_slot() -> StringName:
return "ability_first"
func can_add_ability(ability: StringName, slot: StringName) -> bool:
if LobbySettings.allow_multiple_abilities:
return can_add(slot)
for ability_slot in ["ability_first","ability_second","ability_third"]:
if slots[ability_slot] != null and slots[ability_slot].weapon_gid == ability:
return false