Commit Graph

706 Commits

Author SHA1 Message Date
Zefram
e748af927a Fix drill charge usage
The drills weren't taking the variable usage cost into account (either
the per-type base cost or the per-mode multiplier) when deciding whether
they have sufficient charge to use.  This could cause them to overshoot in
charge usage, although they would then clamp to zero rather than record
negative charge.  Also, for the Mk1 drill where the cost was assessed
correctly, the drill would refuse to discharge to exactly zero charge.
2014-04-27 14:43:00 -04:00
Zefram
04c6f5bea3 Improve message about drill control
The message to "hold shift" makes an unwarranted assumption about the
user's keybindings.  Messages from the server should refer to a key's
game function, rather than its extragame identity.
2014-04-27 14:42:59 -04:00
RealBadAngel
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
Zefram
593972b156 Save chest label when exiting formspec
When using the form to edit a chest label, apply the edited label whenever the
form is submitted with the text field included, rather than only if the form's
specific "finished editing" button is used.  This supports the natural use of
<ret> to indicate that text editing is complete, which works with other text
editing forms such as that for signs.
2014-04-24 16:35:41 -04:00
asl97
628a18977b Add fir leaves to the chainsaw's timber_nodenames 2014-04-22 16:34:14 -04:00
Xanthin
39c41a06f4 Add german translations for all mods 2014-04-22 16:30:27 -04:00
Zefram
db20250371 Fix laser discharging
Commit a6dae893d6 introduced per-version
charge cost for firing mining lasers, but applies this in addition to
the old fixed cost which it was meant to replace.  Fix by removing the
application of the fixed cost.

The same commit did successfully change the check for a laser having
sufficient charge to fire, so that's based purely on the variable cost.
As a consequence, firing a laser that has just enough charge to cover the
variable cost could cause its charge to go negative.  (For example, by
fully charging a Mk1 laser and then firing it until it empties, resulting
in a charge of -400.)  It turned out that set_RE_wear handled that badly,
producing an over-100% wear value that would wrap to a *low* wear value,
leading to the laser's wear bar looking as if it's fully charged.

To protect against silly wear values, make set_RE_wear clamp the wear
value to avoid wrapping.  Handle specially the case of a fully-discharged
tool, where there was desirable wrapping to zero.
2014-04-22 12:48:55 -04:00
Boba
44dbc75b61 Fix typo in frame and template motor recipes 2014-04-14 20:54:28 -04:00
Boba
061d1a3ab4 Fix crash when using the template tool 2014-04-14 20:52:57 -04:00
ShadowNinja
7dc21cec40 Fix steel ingot item name in laser Mk1 crafting recipe 2014-04-02 23:03:51 -04:00
ShadowNinja
179364ff8f Add translation support to technic_chests 2014-03-30 19:32:13 -04:00
Bryant Mairs
5dd09aeff4 Modify mining drill charges and power usage. Also fix bug with mk3 power usage. 2014-03-30 17:40:54 -04:00
Bryant Mairs
9ab5846d56 Make the charge stored by every battery box consistent with the input ingredients. 2014-03-30 17:40:54 -04:00
Bryant Mairs
1b7fa38082 Reduce the charge stored by each type of crystal. 2014-03-30 17:40:54 -04:00
Bryant Mairs
a6dae893d6 Modify the cost, range, and cost-per-shot of all 3 lasers. 2014-03-30 17:40:54 -04:00
Bryant Mairs
49052d6f4a Revised recipe for mk1 laser and added mk2 & mk3 laser recipes. 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
ShadowNinja
821fba9b02 Fix CNC power drain 2014-03-26 22:34:17 -04:00
ShadowNinja
187fd90a7c Make some headers smaller in the READMEs 2014-02-27 00:32:37 -05:00
ShadowNinja
2db9121bdb Update READMEs 2014-02-27 00:30:29 -05:00
Novatux
b28001e36f Infinite stacks fix 2014-01-18 13:29:06 +01:00
Novatux
e1c995f654 Actually call the mvps callback 2014-01-18 13:29:06 +01:00
Novatux
52e7014b7c Mesecons mvps support, better frames 2014-01-18 13:29:06 +01:00
Novatux
8c1be3b48e A few fixes 2014-01-18 13:29:06 +01:00
Novatux
8fba5e1140 Make those frames able to move 2014-01-18 13:29:06 +01:00
Novatux
68f7d34e1b First tests 2014-01-18 13:29:06 +01:00
Carter Kolwey
ebc114df71 Fixed music player 2014-01-11 12:30:10 -05:00
Vanessa Ezekowitz
dc324816db fix a few more tube-based recipes 2014-01-03 22:05:35 -05:00
Vanessa Ezekowitz
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
ShadowNinja
93b0d25cbc Use get_string for owner string 2013-12-29 10:59:04 -05:00
ShadowNinja
8e2cb0121b Fix mining drill digging in the wrong direction 2013-12-23 16:54:21 -05:00
ShadowNinja
2df417feb7 Localize generator fuel 2013-12-23 16:38:05 -05:00
Vanessa Ezekowitz
018b248d51 fix crash in constructor 2013-12-21 02:26:19 -05:00
ShadowNinja
c5a2f0facc Add wrench serialization format version 2013-12-20 18:48:46 -05:00
ShadowNinja
731a82169b Rewrite wrench. INCOMPATIBLE WITH OLD ITEMS
You must place all of your picked up nodes before
updating and pick them back up after.
2013-12-20 17:07:39 -05:00
ShadowNinja
0d32e05b52 Fix stack count fetching 2013-12-20 14:38:16 -05:00
ShadowNinja
82f4862e73 Rename wrench variable 2013-12-19 22:57:25 -05:00
Vanessa Ezekowitz
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
ShadowNinja
92db8e1f76 Remove config file creation
This made it difficult to change default settings
2013-12-17 20:01:01 -05:00
ShadowNinja
dd2962aba6 Rewrite flashlight 2013-12-17 19:57:24 -05:00
ShadowNinja
d8437faebc More global localiztions 2013-12-17 19:56:01 -05:00
ShadowNinja
78cacdcbc6 Rewrite chests 2013-12-17 19:15:20 -05:00
ShadowNinja
c5d287f5f5 Make tube sending faster 2013-12-17 14:37:02 -05:00
ShadowNinja
64db3d14d8 Remove duplicate ABM 2013-12-17 14:24:06 -05:00
ShadowNinja
bab8517b2a Add protection support to tools
This adds support to the chainsaw, mining drill, mining laser,
sonic screwdriver, and tree tap.
2013-12-17 14:22:10 -05:00
ShadowNinja
5cf765b2f1 Localize most variables 2013-12-17 13:56:37 -05:00