1
0
mirror of https://github.com/mt-mods/plantlife_modpack.git synced 2025-06-28 06:11:53 +02:00
Commit Graph

237 Commits

Author SHA1 Message Date
4eb20c03c2 Renamed config/settings var names 2014-08-22 17:04:34 +10:00
77d0a1040c Merge branch 'master' of https://github.com/VanessaE/plantlife_modpack.git into Zeno 2014-08-22 15:58:44 +10:00
13a249369d Merge branch 'api-tweak' of https://github.com/VanessaE/plantlife_modpack.git into Zeno 2014-08-22 15:57:12 +10:00
69ce1ff826 Merge branch 'ferns-cleanup' of https://github.com/VanessaE/plantlife_modpack.git into Zeno 2014-08-22 15:57:04 +10:00
282e3c3317 Merge branch 'master' of https://github.com/VanessaE/plantlife_modpack.git into Zeno 2014-08-22 15:48:39 +10:00
a60f89a8a2 Merge branch 'api-tweak' 2014-08-21 01:06:52 -04:00
9c7e96dd62 allow random_facedir parameter during mapgen call 2014-08-21 01:06:41 -04:00
b72f1dd5eb syntax errors 2014-08-21 00:50:29 -04:00
ea8ac7f95b fix spelling error in texture filename 2014-08-20 23:38:37 -04:00
d1369c25cf Merge branch 'Zeno' of https://github.com/Zeno-/plantlife_modpack into ferns-cleanup 2014-08-20 15:42:50 -04:00
5f7d08ddc4 spelling error (bonsai, not bonzai) 2014-08-20 15:10:18 -04:00
a0c3b2bd42 add potted bonzai and cactus 2014-08-20 14:01:20 -04:00
1d0543b435 allow random_facedir parameter during mapgen call 2014-08-20 13:38:44 -04:00
38d972d58e Fixed stupid node names 2014-08-20 22:43:32 +10:00
cd0735203a typo (bug fix) 2014-08-20 22:30:22 +10:00
27156fdd71 derp 2014-08-20 21:51:32 +10:00
655cff9f76 Removed obsolete or useless code
Some commented code makes no sense because there is not comment as to why it's commented out. Removed.
2014-08-20 20:37:48 +10:00
abdf76566a Bump minor version number 2014-08-20 18:36:13 +10:00
b069341d33 Stop polluting global namespace 2014-08-20 18:35:08 +10:00
64471c9bfc Renamed SeTTiNGS.txt to settings.lua
It's a Lua file... the extension should reflect what it actually is
2014-08-20 18:05:01 +10:00
fc3363d439 Refactor abstract_ferns.grow_giant_tree_fern
Arguably more readable; definately more maintainable

Potentially slower but if it is the difference would be negligable
2014-08-20 18:00:59 +10:00
786a28a5e9 Renamed "leave" to "leaf" where appropriate 2014-08-20 16:57:01 +10:00
25c8c8aeb0 Early exit from abstract_ferns.grow_giant_tree_fern
(very) small performance increase
2014-08-20 16:41:43 +10:00
0f20658a2a same for mixed berry pies 2014-08-18 23:16:38 -04:00
27c1cc58e7 discontinue the old non-farming junglegrass-based pie recipe. 2014-08-18 23:12:13 -04:00
9e8c58895e Add slightly reduced and rewritten version of mushroom mod by Dan
Duncombe and I, with tweaks added to make mushrooms able to spawn on
woodsoils grass/dirt with leaves.

Rewrites are just to make the ABMs a little lighter-weight, but they should
still function the same as before.

This mod does not hook into the map generator.
2014-08-18 22:33:28 -04:00
5fdcaa25c4 roll "legacy" mapgen calls into a loop similar to the standard one, call them
"no air check" instead.  Adjust debug prints and summary accordingly.

This reduces the total number of mapgen hooks from 5 down to just 2.
2014-08-18 19:23:56 -04:00
3b32a4acb7 typo 2014-08-18 19:23:56 -04:00
809a91e619 don't use inventory/wield image on youngtrees:bamboo.
let the engine show the nodebox instead.
2014-08-18 19:23:56 -04:00
bc48ee59e3 fix wield scale of giant fern tree crown 2014-08-18 19:23:56 -04:00
b914e5395b use set_node(), not add_node()
don't use minetest.env:* method (deprecated), use minetest.* instead
2014-08-15 19:34:15 -04:00
985111d17c that wasn't a memory leak
the table falls out of context at the end of the loop anyway
so the GC will delete it when the loop ends. No reason to delete it manually.
2014-08-15 18:58:05 -04:00
1e4ad757a5 route most of the various recent print statements through plantslib:dbg()
(still defaults to false)
2014-08-15 16:25:32 -04:00
f1356dfd65 don't execute abstract_dryplants.grow_grass with "short" grass as a "surface" node.
as short grass may not always be there.  will do it a more proper way later.
2014-08-15 16:21:55 -04:00
8e4c942d9a don't register surface types if their nodes aren't defined. 2014-08-15 16:14:09 -04:00
a25fb55c57 print a final report of the number of actions and legacy mapgen hooks that were registered 2014-08-15 15:51:03 -04:00
760160d638 legacy stuff should always be marked as "Warning:"
and make warnings more consistent
2014-08-15 11:10:17 -04:00
5cf07fd39f remove useless mention of last revision. 2014-08-15 11:01:42 -04:00
da732bb18e use real function calls instead of the old string method where possible
(basically leaving only the old legacy mapgen calls still using the string method)
2014-08-15 10:47:44 -04:00
7f4fc1d553 fix wield scale on giant tree fern leaves 2014-08-15 08:42:57 -04:00
ae9c8c307d Bugfix: giant tree fern leaves dropping wrong item 2014-08-15 17:43:11 +10:00
8f9b8014c7 Don't allow registration of actions for undefined nodes 2014-08-15 00:51:08 -04:00
6a13ffc5d2 don't bother testing if air check is enabled in legacy
...because it never will be :P
2014-08-15 00:00:30 -04:00
c312c4e52f local-ize the block cache table 2014-08-14 23:52:23 -04:00
33c565fbdb move perlin1 (perlin_fertile_area) out of the inner loop
(it only needs to be inside the action loop)
2014-08-14 23:47:23 -04:00
6bc8fead15 optimize out table.insert() and ipairs() calls 2014-08-14 23:35:02 -04:00
d1aae719d0 Fixed emerge tread dig messages for ferns
Pretty sure it's right this time :)
2014-08-15 12:20:50 +10:00
b2c30c9a5e Use a loop to generate the giant ferns rather than lots of if statements.
NB: Technically giant tree ferns are a subcanopy species and not emergent (which with the current truck heights they are in jungles)
2014-08-14 10:48:07 -04:00
c311de6694 free the block cache memory after using it (fix mem leak) 2014-08-13 21:19:53 -04:00
ce9212c413 make ferns not spawn on gravel actively by default 2014-08-13 00:07:28 -04:00