22 Commits

Author SHA1 Message Date
Aaron Suen
5a14a70886 Work around MT #12180 (black wield hand) 2022-04-21 22:27:58 -04:00
Aaron Suen
c2ec7cb942 Emergency dig time upper bound
Make sure no matter how badly players are
trapped, they can still make an emergency
tunnel out.
2021-08-08 08:36:34 -04:00
Aaron Suen
3f0c49a31a Revert "Fix hand wield model regression"
This reverts commit 134977cb49ebae2b8086f2a47fce299f4cbaa0c9.
2021-07-25 14:54:38 -04:00
Aaron Suen
134977cb49 Fix hand wield model regression 2021-07-25 09:59:43 -04:00
Aaron Suen
476f13080d Merge branch 'dev' into flora 2021-06-23 22:24:29 -04:00
Aaron Suen
11c7fb02f7 Revert "Remove emergency digging"
This reverts commit 405833bf32dd0e501c2f79b4728ebe2478569371.

...to use as the basis for the new emergency escape idea.
2021-06-23 20:01:54 -04:00
Aaron Suen
161dbf5f68 Merge branch 'dev' into flora 2021-04-01 22:36:07 -04:00
Aaron Suen
405833bf32 Remove emergency digging
This was added to allow a player to get out of a
rare softlock (trapped inside a cobble room without
any tools).  Since then we have not seen much use
of it for this intended purpose.

However, it has caused MUCH confusion among new
players, wondering why it takes so long to mine
dirt or tree trunks, instead of trying to figure out how
to make the proper tool.

Emergency digging is causing more problems than
it's solving and thus it makes more sense to remove
it than to keep it.  If we need some mechanic to fill
its niche (i.e. a way out of softlock) then we will need
to consider something that's harder to discover
accidentally to avoid confusion.
2021-03-24 09:36:04 -04:00
Aaron Suen
7214dd5f5b Initial import of rushes, by WintersKnight
No behavior yet, just the resource itself, and
basic mapgen spawning.
2021-03-02 22:52:21 -05:00
Aaron Suen
dabf8ac697 Fix node registration alpha for 5.4+ 2021-02-07 12:40:10 -05:00
Aaron Suen
dc912f776c Make sure all things have explicit descriptions
This avoids issues with the translation informer
including technical names in the translation source
2020-10-18 11:50:04 -04:00
Aaron Suen
1632b6352a Revert "Appease 5.4-dev texture_alpha warnings"
This reverts commit 253c2282917ecade5b8356d592edab40b1d517f5.

Apparently this warning is full of crap.  Explicitly
setting use_texture_alpha in the node def does
something DIFFERENT than what the engine says
it's doing enabling it internally.  use_texture_alpha
enables alpha BLENDING, which is what we
don't want with interpolation filters, whereas
leaving it off enables alpha THRESHOLDING which
is exactly what we want.
2020-09-05 23:46:44 -04:00
Aaron Suen
253c228291 Appease 5.4-dev texture_alpha warnings
Apparently we will be required to enable
use_texture_alpha explicitly for anything using
any level of transparency, not just alpha
blending, in some future version.
2020-08-31 23:36:35 -04:00
Aaron Suen
e0156b4742 Add profiler instrumentation metadata everywhere
N.B. the MT built-in profiler doesn't yet actually support reading
labels from bare-function registrations, so a builtin hack is
needed.
2020-06-15 07:21:39 -04:00
Aaron Suen
3817811014 Fix scaling node placement prediction 2020-05-31 20:47:11 -04:00
Aaron Suen
9dd9192bfa Get rid of transient hand wieldmesh. 2020-02-27 22:33:04 -05:00
Aaron Suen
65c21683a3 Fix burn/injury inventory/hand appearance. 2020-02-24 21:45:13 -05:00
Aaron Suen
de5d88b753 Allow for "hand node" cleanup. 2020-02-24 06:23:47 -05:00
Aaron Suen
5a5c546596 Use actual mesh and skin for player hand. 2020-02-24 06:22:09 -05:00
Aaron Suen
df19716624 Make everything diggable by hand.
This should keep players from being able to trap
themselves permanently by burying or sealing
themselves inside a room with no tools, in theory.

Adjust silk touch logic to prevent presence of dig times
by hand from tripping it.

This may affect game balance of things like not being
able to punch trees in the early game, but since dig
times by hand are so very long, hopefully the effect
will be small.

Item drops are left as-is for now; it just takes a LOT
of patience to dig something without the right tool.
2019-12-29 11:51:25 -05:00
Aaron Suen
39dea8a2ae MAJOR: Code quality audit using luacheck.
- Removed lots of unused variables, a few shadowed identifiers.
- Removed a few sections of dead code.
2019-08-31 09:26:53 -04:00
Aaron Suen
701efa73d2 Cleanup/refac. 2019-04-14 00:57:14 -04:00