Limit how many workers can harvest the same resource
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
#include "../sounds.h"
|
||||
|
||||
i32 harvestEvent(ecs_entity_t entity, HarvestEvent event) {
|
||||
BZ_ASSERT(ecs_has_id(ECS, entity, Harvestable));
|
||||
BZ_ASSERT(ecs_has_id(ECS, entity, ecs_id(Harvestable)));
|
||||
BZ_ASSERT(ecs_has(ECS, entity, Resource));
|
||||
|
||||
ecs_set(ECS, entity, Easing, {
|
||||
|
||||
Reference in New Issue
Block a user