starting to fix guns under new script workflow
This commit is contained in:
@@ -113,7 +113,7 @@ func _process(delta: float) -> void:
|
||||
stam_bar_visible = true
|
||||
current_stam_bar.value = player.remaining_stamina
|
||||
|
||||
if player.gun != null:
|
||||
if player.gun != null and player.gun.weapon_info.weapon_type == 0:
|
||||
if GameGlobals.gun_ammo.has(player.gun.weapon_info.gun_name) and GameGlobals.gun_ammo[player.gun.weapon_info.gun_name] != null:
|
||||
ammo_counter.visible = true
|
||||
ammo_current.text = str(GameGlobals.gun_ammo[player.gun.weapon_info.gun_name]).pad_zeros(2)
|
||||
|
||||
Reference in New Issue
Block a user