Prototype/MiningDrill: Difference between revisions
m (→mining_power: Explanation of mining power.) |
|||
Line 46: | Line 46: | ||
Type: [[Types/double]] | Type: [[Types/double]] | ||
Mining power minus the hardness of the resource is a factor in the mining rate. Burner mining drills have 3.5. Electric mining drills have 3. | |||
=== resource_searching_radius === | === resource_searching_radius === |
Revision as of 22:10, 22 September 2015
Basics
A mining drill. Based on Prototype/EntityWithHealth.
Properties
This prototype inherits the properties of Prototype/EntityWithHealth.
animations
Type: Map of Types/string -> Types/Animation
The animations to use. Should look like this:
animations = { north = { ... animation goes here ... }, south = { ... animation goes here ... }, east = { ... animation goes here ... }, west = { ... animation goes here ... } }
mining_speed
Type: Types/double
The speed of this drill. Electric mining drills have 0.5. Burner mining drills have 0.35.
energy_source
Type: Types/EnergySource
The energy source of this mining drill.
energy_usage
Type: Types/EnergyPower
The amount of energy used by the drill while mining.
mining_power
Type: Types/double
Mining power minus the hardness of the resource is a factor in the mining rate. Burner mining drills have 3.5. Electric mining drills have 3.
resource_searching_radius
Type: Types/double
The distance from the centre of the mining drill to search for resources in.
This is 2.49 for electric mining drills (a 5x5 area) and 0.99 for burner mining drills (a 2x2 area). There is presumably a reason that these are not 2.5 and 1.0.
(Dysoch) The reason is that it searches resource outside its natural boundary box, which is 0.01. (the middle of the entity) making it 2.5 and 1.0 gives it another block radius
vector_to_place_result
Type: Types/vector
The position where the result is placed, when the mining drill is facing south (?).
module_slots
Type: Types/unsigned
The number of module slots.
radius_visualization_picture
Type: Types/Sprite
The sprite used to show the range of the mining drill.