* make materials.lua with hades, minetest game, farlands items
* make textures file for central handling
* make mods game agnostic
* take out the trash
* handle multiple seats in sofas
* add github luacheck workflow and various luacheck fixes
* add fluxionary scope creep
* fix devtest breaking right to a name policy
Co-authored-by: wsor4035 <24964441+wsor4035@users.noreply.github.com>
Co-authored-by: SFENCE <sfence.software@gmail.com>
if you express the connections in ascii where N is the Node 1 is connected and 0 is not connected:
```
y+0: 010
1N1
010
y+1: 010
111
010
y-1: 010
111
010
```
This code structure is more easy to read / a very close representation of the sketched layers.
```
Undeclared global variable "mesecon" accessed at ...etest/mods/homedecor_modpack/homedecor_lighting/init.lua:852
Undeclared global variable "mesecon" accessed at ...etest/mods/homedecor_modpack/homedecor_lighting/init.lua:898
```
- Add screwdriver to optional_depends
- Fix luacheck warnings (mostly removing unused/legacy stuff)
Note: sm_light used to be a light_source value for lattice small lantern,
but when this was changed, only half of the lines were deleted
(including the declaration). The other half has been preserved because
it was part of an if-arm that "seems" unrelated (but it only seems).
- Improve french translation
if mesecons, put "off" rope lights in creative inv, and drop them as "off" as
well. else, put "on" in creative inv and drop "on"
allow right-click on rope lights only if no mesecons
also cache minetest.get_modpath("mesecons")
for backward compat, they'll resond to the usual strings, too:
"off" -> 0
"min" -> 3
"med" -> 7
"hi" -> 11
"max"/"on" -> 14
all dimmable nodes have been renamed to bear the light value in their
names, and aliased.
the non-dimmable lights still respond as before
("off" or n < 4; "on" or n > 3)
merge table and standing lamps into the new code
of all the relevant lights, the plasma ball is the only one that remains
on/off-only, since dimmable doesn't make sense there.
That one, and any future lights that get the on/off-only treatment, will
use the previous on/off behavior, i.e. turn off with the messages "off"
or "low" or a number < 4, and turn on with "med", "hi", "max", "on" or
a number > 3
This alters the behavior of table/standing lamps - they will no longer
cycle brightnesses by right-click. Like all other controllable lights,
they'll just toggle on/off. If there's enough demand for it, I'll add
that feature back in at a later date.
allow non-dimmables to respond to "off", "low", "med", "hi", "max", "on"
number messages for dimmables:
0 turns the light off
1-3 sets it to "low"
4-7 sets it to "med"
8-11 sets it to "hi"
12+ sets it to "max" (i.e. full-on)
non-dimmables:
a number > 3 or the strings "med", "hi", "max", or "on" turn the light on
a number < 4 or the strings "off" and "low" turn the light off