11 lines
312 B
C++
11 lines
312 B
C++
#include "actor_body.h"
|
|
#include "core/string/print_string.h"
|
|
|
|
void ActorBody::_bind_methods() {
|
|
}
|
|
|
|
void ActorBody::receive_damage(DamageEvent event) {
|
|
this->health -= event.compound_damage;
|
|
print_line(vformat("Damage dealth (%d to %s, %d remaining", event.compound_damage, this->get_name(), this->health));
|
|
}
|