Commit Graph

235 Commits

Author SHA1 Message Date
9b64ffea8c Register craft types with unified_inventory 2014-04-30 00:22:48 +01:00
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
ca69473664 fix tube properties for injector
By relying on another no-longer-extant definition, the injector didn't
visually connect to the tube below it.
2014-04-30 00:21:36 +01:00
1a94fdc601 fix groups for injector
The injector was in no groups, and therefore not breakable by ordinary
means.  This was because the code referred to a defined variable that
went away in the course of a rewrite of the chests code.
2014-04-30 00:21:13 +01:00
f504178421 Fix drops for active machines
Active machine nodes need to drop their inactive counterpart.  Some were
missing that declaration.
2014-04-27 14:43:00 -04:00
18cae761af The code to connect an electrical machine to cables would only consider
the first-seen tier for which the machine was registered.  So the
switching station, which is uniquely registered for all tiers, would
only visually connect to LV cable when placed, not to MV or HV cable.
(It would function nevertheless, and cable would connect to the switching
station if placed later.)  Change to consider all tiers.  Incidentally
avoid a gratuitous iteration through all registered machines.
2014-04-27 15:57:11 +02:00
39c41a06f4 Add german translations for all mods 2014-04-22 16:30:27 -04:00
44dbc75b61 Fix typo in frame and template motor recipes 2014-04-14 20:54:28 -04:00
061d1a3ab4 Fix crash when using the template tool 2014-04-14 20:52:57 -04:00
9ab5846d56 Make the charge stored by every battery box consistent with the input ingredients. 2014-03-30 17:40:54 -04:00
1b7fa38082 Reduce the charge stored by each type of crystal. 2014-03-30 17:40:54 -04:00
Tim
252156d653 Fix CNC steel block groups 2014-03-30 14:13:11 -04:00
Tim
8684fa1733 Fix constructor description 2014-03-30 14:13:04 -04:00
Tim
8a88812b8b Make marble, granite, bronze and stainless steel blocks CNC-millable 2014-03-30 14:12:34 -04:00
Tim
0201135231 Remove duplicate CNC registration of default:tree 2014-03-30 14:09:24 -04:00
Tim
8bdbe1e451 Fix steel block node name in the CNC 2014-03-30 14:08:56 -04:00
821fba9b02 Fix CNC power drain 2014-03-26 22:34:17 -04:00
b28001e36f Infinite stacks fix 2014-01-18 13:29:06 +01:00
e1c995f654 Actually call the mvps callback 2014-01-18 13:29:06 +01:00
52e7014b7c Mesecons mvps support, better frames 2014-01-18 13:29:06 +01:00
8c1be3b48e A few fixes 2014-01-18 13:29:06 +01:00
8fba5e1140 Make those frames able to move 2014-01-18 13:29:06 +01:00
68f7d34e1b First tests 2014-01-18 13:29:06 +01:00
ebc114df71 Fixed music player 2014-01-11 12:30:10 -05:00
749df3b581 Fix all recipes that use pipeworks pneumatic tubes to follow latest changes
in pipeworks node namining conventions.
2014-01-01 23:27:51 -05:00
93b0d25cbc Use get_string for owner string 2013-12-29 10:59:04 -05:00
2df417feb7 Localize generator fuel 2013-12-23 16:38:05 -05:00
018b248d51 fix crash in constructor 2013-12-21 02:26:19 -05:00
f3bba0aaac move inject_items to top of file (so that it's above the abm that calls it) 2013-12-18 20:41:08 -05:00
d8437faebc More global localiztions 2013-12-17 19:56:01 -05:00
c5d287f5f5 Make tube sending faster 2013-12-17 14:37:02 -05:00
5cf765b2f1 Localize most variables 2013-12-17 13:56:37 -05:00
0ea1bd1fa2 Fix music player
Sounds not included
2013-12-16 18:57:56 -05:00
ae235ee8f3 more pipeworks API-change updates 2013-12-15 15:49:28 -05:00
8ef3f20c3c adapt to changes in Pipeworks API 2013-12-15 15:03:41 -05:00
f3d8b47b20 Add support for minetest.swap_node 2013-12-10 20:14:39 -05:00
47b0b59884 Generators don't send items 2013-12-03 15:30:09 -05:00
7a3cd49597 Add pipeworks support to generators 2013-12-03 11:22:48 -05:00
37acdc77f7 Move production percentage for geothermal generators to infotext 2013-12-03 10:57:16 -05:00
a35db449b3 Fix generators 2013-11-27 16:56:09 -05:00
354ee6f313 Add missing translations 2013-11-27 16:18:52 -05:00
0809dd747e Externalize common functions and protect inventories 2013-11-27 12:28:56 -05:00
76a8acbe5b Use upvalues in registrations 2013-11-26 16:53:52 -05:00
08db41ee4d Don't allow tubing items into LV machines 2013-11-26 16:33:27 -05:00
bde49aca61 Fix crash when quarrying a protected area 2013-11-18 15:27:17 -05:00
2d8ff45d9a Fix crash with invalid radius 2013-11-15 00:54:17 -05:00
6d31965b36 Fix bug with translations. 2013-11-11 15:37:30 +01:00
be2f30a1a2 Add support for translations via intllib 2013-10-30 13:48:39 -04:00
9aee83f921 Fix generator nodemane 2013-10-28 14:37:40 -04:00
cee65bdd2a Fix crash when entering a non-number for forcefield range 2013-10-27 14:39:45 -04:00