Host settings 👍
This commit is contained in:
parent
162dbc13e8
commit
54b99eb20f
13 changed files with 203 additions and 148 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue