Commit Graph

16 Commits

Author SHA1 Message Date
Zefram 99fd5dfee5 Genericise handling of multiple meanings of wear
The tool workshop is meant to repair mechanical damage to tools, so
is at risk of `repairing' tools that use the wear bar to represent
something other than mechanical wear.  It had special-case recognition
of the water and lava cans, which use the wear bar to represent how much
content they're carrying, and wouldn't repair them.  But it didn't avoid
`repairing' RE chargeable items, which use the wear bar to represent
how much energy they have stored.  It would modify the wear bar without
actually affecting the charge, so the wear bar would jump back to the
correct place when the next charging or discharging event occurred.

To genericise, introduce a new item property, "wear_represents", which
indicates how the wear bar is used for this item.  Currently defined
values are "mechanical_wear" (straightforward damage to tools that
start out perfect), "technic_RE_charge" (electrical energy, canonically
represented in the meta rather than the wear bar), and "content_level"
(how full a container is).  For backcompat, nil is interpreted as
"mechanical_wear".  The tool workshop will only repair "mechanical_wear"
tools.  As a bonus, set_RE_wear() will only set the wear bar for
"technic_RE_charge" items: this means developers will notice if they
forget to declare wear_represents, but also means that with no further
changes it's possible to have an RE chargeable item that uses its wear
bar to represent something else.
2014-04-30 00:21:55 +01:00
ShadowNinja be2f30a1a2 Add support for translations via intllib 2013-10-30 13:48:39 -04:00
ShadowNinja ee0765804c Partial rewrite 2013-09-17 16:37:56 -04:00
hdastwb b3cf1ab693 added a recipe for MESE sand tubes 2013-07-19 17:51:24 -04:00
RealBadAngel 58ae29c5a4 New items by ObKo 2013-07-14 12:42:38 +02:00
ShadowNinja 19c9a0443b Merge branch 'indev'
Conflicts:
	technic/alloy_furnace.lua
	technic/alloy_furnaces_commons.lua
	technic/battery_box.lua
	technic/battery_box_hv.lua
	technic/battery_box_mv.lua
	technic/chainsaw.lua
	technic/cnc.lua
	technic/cnc_nodes.lua
	technic/electric_furnace.lua
	technic/grinder.lua
	technic/init.lua
	technic/solar_array_hv.lua
	technic/solar_array_lv.lua
	technic/solar_array_mv.lua
	technic/solar_panel.lua
	unified_inventory/api.lua
	unified_inventory/depends.txt
2013-07-08 16:57:56 -04:00
Konstantin Oblaukhov 8be389e774 Enriched Uranium. 2013-07-06 20:52:41 +07:00
ShadowNinja 2d168e5afc Use ores from default instead of moreores 2013-07-05 01:57:45 -04:00
RealBadAngel 8e03d7ded6 Sync with indev branch, bump version to 0.4.7 2013-06-30 07:12:02 +02:00
kpoppel ede3978965 Added solar arrays for all voltage tiers.
Added transformers for all voltage tiers.
I changed the recipes for solar panels to make them less expensive.
I also changed the output of the individual panel and made the arrays provie the real "oomph" :-)
Solar panels and arrays are dependent on light level, time of day and height abive ground (0) for output and cheating with torches and stuff.
Textures added.
Fixed bugs in the hv battery box. It was not working at all. I don't understand the hv box top texture though???
I have a sense that all machines connected to the battery boxes are taking the same amount of juice from the box.
A method of taking a little or a lot would be nice.
2013-06-03 23:37:04 +02:00
RealBadAngel 279776ff62 update 2013-03-30 11:36:45 +01:00
RealBadAngel 4411ba6e03 added tubes crafting recipes 2013-02-03 11:53:19 +01:00
RealBadAngel 3b5e6ca05a Added item - Control Logic Unit 2013-02-02 21:26:34 +01:00
RealBadAngel 82cba919fa cleanup phase2 2013-01-27 14:03:47 +01:00
RealBadAngel 887463d95f cleanup 2013-01-27 13:58:47 +01:00
RealBadAngel a30f1db52d fix to mod directory structure 2013-01-27 13:55:14 +01:00