Prototype/Beacon

From Official Factorio Wiki
Revision as of 09:25, 15 July 2017 by LazyFridge (talk | contribs) (New page for the missing Beacon prototype page.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Basics

Entity with the ability to transfer module's effects to it's neighboring entities. Extends the Prototype/EntityWithHealth

Usage in base

Properties

allowed_effects

Type: Types/AllowedEffects

The types of modules that a player can place inside of the Beacon.

base_picture

Type: Types/Sprite The picture of the Beacon when it is not on.

animation

Type: Types/Animation The animation for the Beacon, when in use.

charge_cooldown

Type: Types/Tick

Count of ticks to preserve the animation even when the charging ends.

Used to prevent rapid blinking of the accumulator with unstable need to use it.

supply_area_distance

Type: Types/double

The maximum distance that this Beacon can supply it's neighbors with it's module's effects.

energy_source

Type: Types/EnergySource

energy_usage

Type: Types/EnergyUsage

distribution_effectivity

Type: Types/double

The multiplier of the module's effects, when shared between neighbors. default is 0.5.

module_specification

Type: Types/double

How many modules you can put inside of the Beacon, to share between neighboring entities. Default is 2.

Example

 {
   type = "beacon",
   name = "beacon",
   icon = "__base__/graphics/icons/beacon.png",
   flags = {"placeable-player", "player-creation"},
   minable = {mining_time = 1, result = "beacon"},
   max_health = 200,
   corpse = "big-remnants",
   dying_explosion = "medium-explosion",
   collision_box = {{-1.2, -1.2}, {1.2, 1.2}},
   selection_box = {{-1.5, -1.5}, {1.5, 1.5}},
   allowed_effects = {"consumption", "speed", "pollution"},
   base_picture =
   {
     filename = "__base__/graphics/entity/beacon/beacon-base.png",
     width = 116,
     height = 93,
     shift = { 0.34375, 0.046875}
   },
   animation =
   {
     filename = "__base__/graphics/entity/beacon/beacon-antenna.png",
     width = 54,
     height = 50,
     line_length = 8,
     frame_count = 32,
     shift = { -0.03125, -1.71875},
     animation_speed = 0.5
   },
   supply_area_distance = 3,
   energy_source =
   {
     type = "electric",
     usage_priority = "secondary-input"
   },
   vehicle_impact_sound =  { filename = "__base__/sound/car-metal-impact.ogg", volume = 0.65 },
   energy_usage = "480kW",
   distribution_effectivity = 0.5,
   module_specification =
   {
     module_slots = 2,
     module_info_icon_shift = {0, 0.5},
     module_info_multi_row_initial_height_modifier = -0.3
   }
 },