Commit Graph

900 Commits

Author SHA1 Message Date
Zefram
db20250371 Fix laser discharging
Commit a6dae893d66319739e8dfe962f67285221eb9b91 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
ShadowNinja
0ea1bd1fa2 Fix music player
Sounds not included
2013-12-16 18:57:56 -05:00
Vanessa Ezekowitz
ae235ee8f3 more pipeworks API-change updates 2013-12-15 15:49:28 -05:00
Vanessa Ezekowitz
8ef3f20c3c adapt to changes in Pipeworks API 2013-12-15 15:03:41 -05:00
ShadowNinja
f3d8b47b20 Add support for minetest.swap_node 2013-12-10 20:14:39 -05:00
ShadowNinja
818a0e5ff0 Add protection support to the sonic screwdriver 2013-12-10 19:52:40 -05:00
ShadowNinja
47b0b59884 Generators don't send items 2013-12-03 15:30:09 -05:00