mirror of
https://gitlab.com/open-fpsz/open-fpsz.git
synced 2026-07-12 23:14:54 +00:00
✨ Implement Teams and disallow team damage in Rabbit
This commit is contained in:
parent
1a19e5edfa
commit
ac8bd2d07c
10 changed files with 46 additions and 23 deletions
|
|
@ -31,15 +31,15 @@ func test_that_it_has_max_health_when_ready() -> void:
|
|||
|
||||
func test_that_it_takes_damage() -> void:
|
||||
var damage_amount : float = 10
|
||||
_subject.damage(damage_amount, -1)
|
||||
_subject.damage(damage_amount, -1, 0)
|
||||
assert_eq(_subject.health, TEST_MAX_HEALTH - damage_amount)
|
||||
|
||||
func test_that_it_emits_health_changed_after_damage() -> void:
|
||||
_subject.damage(1, -1)
|
||||
_subject.damage(1, -1, 0)
|
||||
assert_signal_emitted(_subject, 'health_changed')
|
||||
|
||||
func test_that_it_emits_health_zeroed() -> void:
|
||||
_subject.damage(TEST_MAX_HEALTH, -1)
|
||||
_subject.damage(TEST_MAX_HEALTH, -1, 0)
|
||||
assert_signal_emitted_with_parameters(_subject, 'health_zeroed', [-1])
|
||||
|
||||
func test_that_it_heals_fully() -> void:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue