Power-reading multitool (#5046)
* AMEPartComponent: Switch to ToolSystem.HasQuality because this bugs me. * Multitool can read power when you examine a cable with the multitool held. * Multitool power reading: Condense storage information * power-sensing multitool: Fix ToolSystem ref. * Power-reading multitools: Fix misuse of GetComponent
This commit is contained in:
@@ -10,6 +10,28 @@ zzzz-fmt-pressure = { TOSTRING($divided, "G3") } { $places ->
|
||||
*[5] ???
|
||||
}
|
||||
|
||||
# Used internally by the POWERWATTS() function.
|
||||
zzzz-fmt-power-watts = { TOSTRING($divided, "G3") } { $places ->
|
||||
[0] W
|
||||
[1] kW
|
||||
[2] MW
|
||||
[3] GW
|
||||
[4] TW
|
||||
*[5] ???
|
||||
}
|
||||
|
||||
# Used internally by the POWERJOULES() function.
|
||||
# Reminder: 1 joule = 1 watt for 1 second (multiply watts by seconds to get joules).
|
||||
# Therefore 1 kilowatt-hour is equal to 3,600,000 joules (3.6MJ)
|
||||
zzzz-fmt-power-joules = { TOSTRING($divided, "G3") } { $places ->
|
||||
[0] J
|
||||
[1] kJ
|
||||
[2] MJ
|
||||
[3] GJ
|
||||
[4] TJ
|
||||
*[5] ???
|
||||
}
|
||||
|
||||
# Used internally by the THE() function.
|
||||
zzzz-the = { PROPER($ent) ->
|
||||
*[false] the { $ent }
|
||||
|
||||
11
Resources/Locale/en-US/cable/cable-multitool-system.ftl
Normal file
11
Resources/Locale/en-US/cable/cable-multitool-system.ftl
Normal file
@@ -0,0 +1,11 @@
|
||||
cable-multitool-system-internal-error-no-power-node = Your multitool reads, "INTERNAL ERROR: NOT A POWER CABLE".
|
||||
cable-multitool-system-internal-error-missing-component = Your multitool reads, "INTERNAL ERROR: CABLE ABNORMAL".
|
||||
|
||||
cable-multitool-system-statistics = Your multitool shows a list of statistics:
|
||||
Current Supply: { POWERWATTS($supplyc) }
|
||||
From Batteries: { POWERWATTS($supplyb) }
|
||||
Theoretical Supply: { POWERWATTS($supplym) }
|
||||
Ideal Consumption: { POWERWATTS($consumption) }
|
||||
Input Storage: { POWERJOULES($storagec) } / { POWERJOULES($storagem) } ({ TOSTRING($storager, "P1") })
|
||||
Output Storage: { POWERJOULES($storageoc) } / { POWERJOULES($storageom) } ({ TOSTRING($storageor, "P1") })
|
||||
|
||||
Reference in New Issue
Block a user