pellet spread, bulletholes and balance fixes
This commit is contained in:
parent
eabc137ce8
commit
74e37f8a18
17 changed files with 261 additions and 72 deletions
|
|
@ -2,7 +2,7 @@ extends Node
|
|||
|
||||
|
||||
func can_buy(player_id: int,weapon: WeaponResource) -> bool:
|
||||
return Session.player_data[player_id]["money"] >= weapon.cost
|
||||
return Session.player_data[player_id]["money"] >= weapon.cost or LobbySettings.infinite_money
|
||||
|
||||
func buy(player_id: int, weapon: WeaponResource) -> void:
|
||||
if not multiplayer.is_server() or can_buy(player_id,weapon) == false:
|
||||
|
|
@ -27,6 +27,7 @@ func buy(player_id: int, weapon: WeaponResource) -> void:
|
|||
|
||||
|
||||
var player_data = Session.player_data[player_id]
|
||||
player_data["money"] -= weapon.cost
|
||||
if not LobbySettings.infinite_money:
|
||||
player_data["money"] -= weapon.cost
|
||||
|
||||
weapon_system.add(weapon.weapon_system_scene.instantiate(),slot)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue