Skip to content

System: tile

Tile reward and cost systems.

Increases or decreases the agent's score based on non-collectible rewardable or cost-bearing entities located on the agent's current tile.

get_noncollectible_entities(state, pos, component_map)

Return entity IDs at pos with a component but not collectible.

tile_cost_system(state, eid)

Decrease score for cost-bearing non-collectible entities at agent tile.

tile_reward_system(state, eid)

Increase score for rewardable non-collectible entities at agent tile.