Home

ResourceEntityPrototype

A mineable/gatherable entity.

Parent

Properties

stages

Entity's graphics, using a graphic sheet, with variation and depletion. At least one stage must be defined.

When using AnimationVariations::sheet, frame_count is the amount of frames per row in the spritesheet. variation_count is the amount of rows in the spritesheet. Each row in the spritesheet is one stage of the animation.

stage_counts

Number of stages the animation has.

infinite

If the ore is infinitely minable, or if it will eventually run out of resource.

highlight

If the resource should be highlighted when holding a mining drill that can mine it (holding a pumpjack highlights crude-oil in the base game).

randomize_visual_position

Whether there should be a slight offset to graphics of the resource. Used to make patches a little less uniform in appearance.

map_grid

Whether the resource should have a grid pattern on the map instead of a solid map color.

draw_stateless_visualisation_under_building

minimum

Must be not 0 when infinite = true.

normal

Must be not 0 when infinite = true.

infinite_depletion_amount

Every time an infinite-type resource "ticks" lower it's lowered by that amount.

resource_patch_search_radius

When hovering over this resource in the map view: How far to search for other resource patches of this type to display as one (summing amount, white outline).

category

The category for the resource. Available categories in vanilla can be found here.

walking_sound

Sound played when the player walks over this resource.

driving_sound

Sound played when a CarPrototype drives over this resource.

stages_effect

An effect that can be overlaid above the normal ore graphics. Used in the base game to make uranium ore glow.

effect_animation_period

How long it takes stages_effect to go from min_effect_alpha to max_effect_alpha.

effect_animation_period_deviation

How much effect_animation_period can deviate from its original value. Used to make the stages effect alpha change look less uniform.

effect_darkness_multiplier

How much the surface darkness should affect the alpha of stages_effect.

min_effect_alpha

Minimal alpha value of stages_effect.

max_effect_alpha

Maximal alpha value of stages_effect.

tree_removal_probability

Must be greater than or equal to 0.

cliff_removal_probability

Must be greater than or equal to 0.

tree_removal_max_distance

Must be positive when tree_removal_probability is set.

mining_visualisation_tint

Defaults to the resources map color if left unset and map color is set, otherwise defaults to white if left unset.