Add health
This commit is contained in:
@@ -80,6 +80,12 @@ ecs_entity_t entityCreateWorker(const Position position, Player player, Game *ga
|
||||
.carryCapacity = 5,
|
||||
});
|
||||
|
||||
ecs_set(ECS, e, Health, {
|
||||
.startHP = 20.0f,
|
||||
.hp = 20.0f,
|
||||
.lastChanged = -1.0f
|
||||
});
|
||||
|
||||
return e;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user