EverambleGAME API / 1

CONTENT CONTRACT · VERSION 1

CropHarvestedEvent

An actor harvested a ripe crop; its yield reached the inventory (resource_harvested follows for the item).

Signature

{ actor: ActorRef, count: PositiveCount, crop: CropId, item: ItemId, kind: "crop_harvested", player: (PlayerRef)?, position: Position }

Fields

NameTypeMeaning
actorActorRefActing actor (human- or AI-controlled).
Length: 1…256; Pattern: ^[\s\S]+$
countPositiveCountUnits harvested (more for a well-watered crop).
Range: 1…2147483647; Unit: count
cropCropIdCrop harvested.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: crop
itemItemIdHarvested item.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: item
kind"crop_harvested"Discriminant
playerPlayerRefPlayer controlling the actor; absent for AI-controlled actors.
Length: 1…256; Pattern: ^[\s\S]+$
positionPositionWhere the field lies.