1838 Commits

Author SHA1 Message Date
Aaron Suen
64e917fc95 New witnessing system
If a player is close enough to an event when it
happens (withing "likely hearing" distance) then if
they later punch the node then they can "collect"
the discovery.

The idea is that if a player hears the sound of
something happening, then they might go and
investigate and discover the thing they thought
they had left there isn't what's there anymore.

In retrospect I may want to combine this with a
limited form of the visual witnessing, just as there
may be events that a player is less likely to touch
in aftermath, or may not be practical to (e.g.
if what's left behind is air)
2020-09-26 17:52:09 -04:00
Aaron Suen
35186ec076 Hint for throwing an item really fast
Also expand player discover API to allow passing
multiple keys in a single call, saving db lookup/save
repetition.
2020-09-26 16:29:28 -04:00
Aaron Suen
7fc796bd93 Hints for dropping items
These may be especially valuable because some
players may be used to dropping items ONLY using
the formspec inventory and may have forgotten that
they even have key bindings for this; the hint should
motivate them to search for a way.
2020-09-26 16:17:11 -04:00
Aaron Suen
6752808a81 Expand tote hint prereqs 2020-09-26 16:10:39 -04:00
Aaron Suen
3b864e5330 Fix and cache hint key expansion 2020-09-26 15:33:23 -04:00
Aaron Suen
77464e725a Reduce witness log noise 2020-09-26 15:04:34 -04:00
Aaron Suen
d4fdf8c6e8 Fix items unplaceable due to stack/touch-hurt 2020-09-26 15:03:22 -04:00
Aaron Suen
723d30897d Fix a couple more hints 2020-09-26 14:55:15 -04:00
Aaron Suen
90e932bf9d Fix lode smelting hint 2020-09-26 14:19:12 -04:00
Aaron Suen
41ebd02286 Translation update 2020-09-25 09:34:17 -04:00
Aaron Suen
4f35782ecc Fix a few more old skinny selection boxes 2020-09-17 21:51:44 -04:00
Aaron Suen
64462f7265 Revert "Simplify and tidy up rake hook"
This reverts commit 03f8d32967cc35e418d8ffb46b00f65eaf34e685.

Apparently this causes item destruction: when stack nodes are
secondarily dug by a rake, their items are not given to the
player.
2020-09-17 07:10:09 -04:00
Aaron Suen
077def305e Make rakes and drop-matching respect stack families 2020-09-17 07:03:07 -04:00
Aaron Suen
2022371cff Finally retire old inventory rearrange logic
It seems as though the new intercept hooks are catching
everything, and since this logic was disabled hardly anyone
noticed.  The few rearrangements that were happening were
probably caused by inventory clear/restore mods unrelated to
NC operation.  This code was quite complex and removing it
will simplify the project.
2020-09-17 07:01:06 -04:00
Aaron Suen
f24230e924 Late-bind touchtip API
Allow mods to intercept/override
2020-09-16 20:53:22 -04:00
Aaron Suen
f4a9a62269 More Spanish translations 2020-09-16 20:40:32 -04:00
Aaron Suen
ad852b8782 "Wood" in names for stick tools
Now that we have non-wooden versions of
these, suffix material name for consistency.
2020-09-16 20:19:18 -04:00
Aaron Suen
aebc0c6124 Expand stickwork selection hulls 2020-09-16 20:18:15 -04:00
Aaron Suen
3d72999ef6 Log player push-out
It seems as though there might be something
weird happening with this on join.  Add extra
logging so we can see what's happening.
2020-09-16 19:59:07 -04:00
Aaron Suen
b03b047f0a Buff door catapult, esp higher level doors 2020-09-16 19:46:10 -04:00
Aaron Suen
904d6a2321 Change some default settings 2020-09-16 19:39:16 -04:00
Aaron Suen
03f8d32967 Simplify and tidy up rake hook 2020-09-16 19:38:46 -04:00
Aaron Suen
24fd75d666 Translation update 2020-09-15 08:51:16 -04:00
Aaron Suen
b097396290 Fix unescaped @ in email 2020-09-14 23:10:35 -04:00
Aaron Suen
3ea043214c Show message when kicking outdated clients 2020-09-14 22:06:53 -04:00
Aaron Suen
d71f40b1ef Sort variants for translation inheritence
If there are multiple variants with conflicting
translations and no "generic" translation, then
sort the variants into an arbitrary but constistent
order so we always get the same results each
time we run this with the same input, and
translations don't fluctuate.
2020-09-14 21:38:53 -04:00
Aaron Suen
86d513d063 Language bidirectional filling
Share strings across variants for a common
langauge, if we don't have a string for that
specific variant.  This should help us get better
overall translation coverage.

This is done as a "filter" on converting the raw
weblate data to MT locale files, so we don't get
the purity of the original translations ruined.
2020-09-14 21:33:53 -04:00
Aaron Suen
be1785098f Update (C) year for LoneWolfHT contribs
Some changes to the model were made during
the 2020 calendar year, so updated copyright
year applies to those portions.
2020-09-14 20:44:19 -04:00
Aaron Suen
621592bc41 Update translations
New translators: Elon_Satoshi and heshman,
working on the es_US translation
2020-09-14 20:37:56 -04:00
Aaron Suen
7e2a4c0b0c Reintroduce radiation HUD 2020-09-14 09:36:59 -04:00
Aaron Suen
cfeae44a72 Fix items settling into shelves too eagerly
Items now try to settle into air and open stacks
first, and only squeeze into shelves/storeboxes if
there is no other available space.
2020-09-14 08:33:32 -04:00
Aaron Suen
7702830df1 Stop actually rearranging player inventory
Want to see if we see anything weird during
gameplay, since this is quite rare now.  We are
still recalculating what we WOULD have done for
debugging purposes so if we see anything weird
we can tell if the rearrange would have fixed it.
2020-09-13 20:12:42 -04:00
Aaron Suen
8520236197 Add wield index to inv rearrange debug 2020-09-13 20:10:04 -04:00
Aaron Suen
4ea87829b7 Another radiation nerf
When I was watching other people work on their
reactors, I was standing some distance off and
still got significant radiation damage after a
short time, even with the reactors subcritical.

Cut the radiation accumulation rate by 75% this
time, while buffing flux a little more relative to
solids.
2020-09-13 19:43:21 -04:00
Aaron Suen
ab532a3f49 Update some issues 2020-09-12 21:49:22 -04:00
Aaron Suen
92953a6ac1 Fix inv rearrangement trap 2020-09-12 21:40:32 -04:00
Aaron Suen
a68d721e89 Some notes updates 2020-09-12 21:38:31 -04:00
Aaron Suen
81df25633a Add stone brick doors 2020-09-12 21:20:46 -04:00
Aaron Suen
6e939c5877 Nerf rad a bit more, still mainly off solids 2020-09-12 20:38:37 -04:00
Aaron Suen
367e0ec514 Fix rad damage immunity priv 2020-09-12 20:19:19 -04:00
Aaron Suen
4272204cb9 Nerf rads from tools and solids 2020-09-12 18:30:28 -04:00
Aaron Suen
8742b48fc8 New inventory radiation mechanics
Items in inventory can both emit radiation
and shield you from in-inventory radiation.
This process happens separately from
node-space radiation, though.
2020-09-12 16:43:00 -04:00
Aaron Suen
cb74ad204b Remove now-defuct HUD
Lux no longer has a "build-up" level, so
we have no good way to show the HUD
anymore anyway.
2020-09-12 16:31:53 -04:00
Aaron Suen
da75c0dfc6 Merge branch 'dev' into luxredo 2020-09-12 16:30:50 -04:00
Aaron Suen
0f8459c1c7 Fix code formatting issue 2020-09-12 16:30:15 -04:00
Aaron Suen
7ceb716473 Finished node rad emit/absorb
Lux things outside the player now
emit/absorb/scatter radiation, and can
also wash away radiation damage.

Remaining to do: player inventory
2020-09-12 16:27:15 -04:00
Aaron Suen
e6bd880528 Start work on redoing lux radiation logicUse a more direct, straightforward approach tolux radiation. Perhaps allow exposure to be morestochastic and less "smoothed". Offer more directand varied effects from sheilding.The end goal is to make radiation a significant force,but easily, and as intuitively as possible,manageable. 2020-09-12 12:10:18 -04:00
Aaron Suen
2d78f30c11 Add just one more paranoia check 2020-09-11 22:58:34 -04:00
Aaron Suen
4f3f6066c2 Prevent hot potato item moving exploit
Certain items, e.g. heated lode, were meant not to
be carryable so that players would need to plan
certain constructions properly.  The "hot potato"
feature was added to achieve this, and I had
assumed that players would eventually find it
sufficiently frustrating that they would stop and try
to figure out how to do things properly.  This has
not worked out, and players working at a forge
spend a lot of their time fiddling with hot things
trying to randomly throw it into the right spot.

This change should make it more difficult for
players to manipulate the "hot potato" item
physics to move items that shouldn't be movable
by hand once heated.  Problems involving heated
item placement need to be solved through proper
furnace design, not workarounds.  As a bonus, it's
now also harder to accidentally hot-potato your
items into places it's hard to get them out of.

At some point in the future, we will probably be
adding tongs to provide a proper way to move
these items, once players have reached the
proper tech level.
2020-09-11 22:57:33 -04:00
Aaron Suen
761753d5dc Simplify water names 2020-09-11 19:48:42 -04:00