Commit Graph

234 Commits

Author SHA1 Message Date
FaceDeer
1333748b37 further subroutine breakdown 2019-08-25 17:49:52 -06:00
FaceDeer
7b2b29687c pull some code out into subroutines 2019-08-25 17:44:05 -06:00
FaceDeer
b90e5713aa Executing all on-dig callbacks "properly" with a fake player 2019-08-25 17:16:23 -06:00
FaceDeer
426cd4d82d IT DIGS 2019-08-25 15:52:35 -06:00
FaceDeer
683b941622 split inventory functions into a separate file, add predictive inventory (untested) 2019-08-25 12:33:44 -06:00
FaceDeer
cafb2ec545 add config, add material cost to predict_dig 2019-08-25 11:15:50 -06:00
FaceDeer
a74cc1492e add setting formspec to disassembled digger 2019-08-24 22:52:02 -06:00
FaceDeer
a0f47b50bc no need to persist derived values. Cache digger targets. 2019-08-24 22:22:40 -06:00
FaceDeer
63ea1314ab remove origin displacement, not really needed 2019-08-24 00:04:19 -06:00
FaceDeer
80b9530033 add a basic beginning to dig prediction 2019-08-23 23:53:38 -06:00
FaceDeer
c2959998fd digtron 2.0 can now move 2019-08-22 21:16:08 -06:00
FaceDeer
5d7eea2540 static digger variant for unassembled digtrons 2019-08-22 01:13:59 -06:00
FaceDeer
7f5cf4d0dc add a digger head model 2019-08-21 01:21:03 -06:00
FaceDeer
292889651c indicator entities for when Digtron can't be built 2019-08-20 18:58:32 -06:00
FaceDeer
f14b0a9a42 no need to expose caches globally 2019-08-20 00:54:18 -06:00
FaceDeer
2283cdbbea hide digtron_id from clients, change "construct" to "assemble", various other tidbits 2019-08-20 00:29:26 -06:00
FaceDeer
03c9a81b6b so... much... error checking... 2019-08-19 20:56:28 -06:00
FaceDeer
a9420ea805 explosions automatically deconstruct Digtrons. 2019-08-19 20:02:16 -06:00
FaceDeer
1c732ae1cd change metadata naming standard, add some corrupted data checks 2019-08-18 23:11:24 -06:00
FaceDeer
e16035b037 save bounding box relative to root. 2019-08-18 22:41:01 -06:00
FaceDeer
4031ea0484 tidy up aftermath of building a constructed digtron 2019-08-18 18:37:47 -06:00
FaceDeer
e88a3faae3 basic ability to pick up and put down a complete digtron 2019-08-18 18:23:51 -06:00
FaceDeer
fda6aa9a0e a little more setup for placing constructed Digtrons 2019-08-18 16:24:58 -06:00
FaceDeer
9d526997fc make constructed controllers pick-uppable 2019-08-18 15:51:25 -06:00
FaceDeer
27c9d82ea4 a bit of naming work 2019-08-18 15:29:15 -06:00
FaceDeer
ff229185b2 can now reliably construct and deconstruct 2019-08-18 13:02:42 -06:00
FaceDeer
90c23159d3 persisting inventory between runs 2019-08-18 02:23:08 -06:00
FaceDeer
4e2ac43b2d can now create detached inventory. May be very buggy yet. 2019-08-17 23:12:12 -06:00
FaceDeer
6a38e68433 clean the slate! Old code will be brought back as it's needed. 2019-08-17 01:47:16 -06:00
disba1ancer
b394214ffa Add support for all rechargeble items from technic (#42)
* Add support for all rechargeble items from technic

* Changed comment about batteries

* Changed second comment about batteries
2019-07-19 18:42:47 -05:00
FaceDeer
8b1c63f067 lossless compression of textures 2019-07-05 23:51:58 -06:00
FaceDeer
0b4ec531c7 Use new style of itemstack metadata to show description in inventory 2019-07-05 23:50:55 -06:00
FaceDeer
4b810fc584 removing collectgarbage() from layout creation 2019-06-28 15:56:27 -06:00
FaceDeer
aa927fe26a protect against extremely large builder periods causing entities to be added out of range 2019-06-09 23:53:09 -06:00
Thomas Rudin
445140abaa limit size of the digtron with config option: digtron_size_limit, default to 1000 nodes (#52) 2019-06-09 23:15:27 -06:00
Alex
b3d01a714c Update layout to prevent duplication (#54) 2019-06-06 19:45:25 +02:00
Pierre-Yves Rollo
6726897413 Avoid crate corruption when dug with special tools (#53) 2019-06-06 19:45:11 +02:00
tuedel
d41190a842 execute_downward_dig_cycle: Add missing parameter (#45) 2019-03-17 10:32:35 +01:00
FaceDeer
e09f1b9f56 found a way for incomplete digtron layouts to be created 2019-01-13 16:02:41 -07:00
FaceDeer
556b80bc22 Another guard against a nil that shouldn't be possible 2019-01-13 11:19:40 -07:00
FaceDeer
8ea6d7eb70 collectgarbage hammer fix, and add some asserts to crash before corrupting anything in impossible situations. 2019-01-13 03:02:02 -07:00
FaceDeer
03beff0d33 Add block count to default crate title 2019-01-09 00:39:40 -07:00
FaceDeer
1d5d1d20df a little more optimization, and sounds when placing nodes on builders and diggers 2019-01-09 00:20:02 -07:00
FaceDeer
d4a03478e2 prevent digging of immortal nodes 2019-01-05 22:55:46 -07:00
FaceDeer
5985788181 fixing extrusion - place a copy of the example item, not the example item itself 2019-01-05 22:04:56 -07:00
FaceDeer
5c0700456c
Optimization of table allocation, more sophisticated entity damage (#37)
This pass cleans up a lot of unnecessary table allocation and disposal, which should help with memory usage and garbage collection.

It also adds some sophistication to the entity damage process from diggers, allowing items to be picked up into Digtron inventory.
2019-01-04 22:06:12 -07:00
FaceDeer
fe753a9bed check for presence of node def before testing wallmounted 2019-01-02 20:36:21 -07:00
FaceDeer
1f778ba0fe Handle some formspecs differently, allowing digtron components to be placed on builders and intermittent diggers more easily 2019-01-01 23:31:51 -07:00
FaceDeer
8ff9239274 validate parameters 2019-01-01 23:22:52 -07:00
Alex
cff5385881 Awards: Use custom triggers (#32)
* Awards: Use custom triggers

* Remove extra trigger

* Remove non-existent type

* Replace missed player arg
2018-12-23 19:06:49 -07:00