more work on the ui theme and changing the hud
This commit is contained in:
@@ -63,3 +63,4 @@ func swap_to_slot(num: int) -> void:
|
||||
if hero.hand.size >= num:
|
||||
hero.hand_selected_index = num - 1
|
||||
hero.swap_card_audio.play()
|
||||
hero.hud.hot_wheel.update_cassettes(hero.get_wheel_cards())
|
||||
|
||||
@@ -15,8 +15,9 @@ func enter_state() -> void:
|
||||
hero.weapons[hero.equipped_weapon].current_energy = hero.weapons[hero.equipped_weapon].max_energy
|
||||
#this had to be commented out coz the new energy bar thinks "energy changed" is "energy used"
|
||||
#weapons[equipped_weapon].energy_changed.emit(weapons[equipped_weapon].current_energy)
|
||||
for x: int in hero.hand.contents.size():
|
||||
hero.discard_pile.add(hero.hand.remove_at(hero.hand.contents.size() - 1))
|
||||
if hero.game_manager.card_gameplay:
|
||||
for x: int in hero.hand.contents.size():
|
||||
hero.discard_pile.add(hero.hand.remove_at(hero.hand.contents.size() - 1))
|
||||
hero.weapon_swap_timer.start()
|
||||
hero.hud.energy_label.visible = false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user