1680 Commits

Author SHA1 Message Date
Aaron Suen
19e4a225e0 Don't translate player names
- Simplify wield item player owner display
- Don't try to translate player names
2021-03-09 07:51:03 -05:00
Aaron Suen
be71e234d4 Some basic biome tweaks from WintersKnight
- Deeper dirt on land
- Reduce size of beaches
2021-03-02 21:36:01 -05:00
Aaron Suen
1b5df3c67c Grass check logic microoptimization 2021-03-02 21:09:24 -05:00
Aaron Suen
6b5f7e9ace Higher-quality soil gives eggcorns a boost
Just as surrounding sprouts with higher quality
soil causes them to mature faster, planting them
direcly in higher-quality soil gives them a oneshot
boost (since the soil quality is consumed
immediately).
2021-03-02 20:09:19 -05:00
Aaron Suen
eb933c5d4f ContentDB versioning fixed for now 2021-03-02 20:01:52 -05:00
Aaron Suen
fa1f9ec9c1 Pickpocketing tweaks
- Can inspect items at a greater distance than
  you can actually steal.
- Can steal at slightly greater distance.
- Reorganized and reordered checks.
2021-03-02 19:04:20 -05:00
Aaron Suen
01332c2a0b Prevent writing breaking on unloaded areas
If the glyph is in an active area but the node it's
attached to isn't loaded (so we can't check it for
eligibility) then let the writing stay.
2021-03-02 18:53:02 -05:00
Aaron Suen
eac9d0d5ea Stop trying to load node stack without node pos 2021-03-02 06:20:07 -05:00
Aaron Suen
6c649b3747 Relax empty tote handle restrictions
- They can now be stacked, somewhat
- They can be placed inside lode crates
2021-03-01 23:30:38 -05:00
Aaron Suen
fc404891ff Fix a missing dependency 2021-03-01 21:41:35 -05:00
Aaron Suen
d1fd34b8ab Avoid crash on failure to get player client info 2021-03-01 20:25:24 -05:00
Aaron Suen
c10e80ef87 Set name in mod.conf as demanded by 5.5+ 2021-03-01 20:10:27 -05:00
Aaron Suen
f0f348510a More nuanced pickpocketing
- Touchtip
- Can now inspect items w/o stealing by
  just punching once
- Sound/visual effects build over time
  instead of being constant intensity
2021-03-01 19:16:05 -05:00
Aaron Suen
51b5aa8b94 Playerstep microoptimization
Avoid calling get_player_name too much
2021-03-01 18:58:34 -05:00
Aaron Suen
171ebaf5b4 Reset speed on taking normal damage 2021-03-01 18:44:13 -05:00
Aaron Suen
068e5fba9f Hotfix for nav star memory leak issue 2021-03-01 17:14:35 -05:00
Aaron Suen
d69f5fa592 Increase size of spawn star dead zone 2021-02-28 22:52:55 -05:00
Aaron Suen
253ad94fa8 Add spawnward navigation star to skybox
When not pathologically near spawn, a magenta
star appears above pointing toward spawn, and
giving an indication (logarithmic magnitude) of
the distance to spawn.
2021-02-28 22:46:14 -05:00
Aaron Suen
96cbdc3f25 Fix missed color patch 2021-02-28 21:30:46 -05:00
Aaron Suen
34953038c1 Pickpocketing visual, layered audio 2021-02-28 21:26:30 -05:00
Aaron Suen
aad575b685 New "pickpocketing" feature
Complement to YCTIWY (which may be merged
sooner or later).  Bandolier items are now
pointable and can be "dug" to take them.

Pickpocketing requires reasonable aim (players
can protect themselves by moving), produces
sound, and logs the action.  Players also cannot
pickpocket from far away or behind.

TODO: Visual hint that it's happening for players
without sound.
2021-02-28 20:40:30 -05:00
Aaron Suen
0792c426a4 Bandolier upright_sprights work again in 5.3+
Now that 5.2- is retired we can stop using the
geometrically-expensive wieldmesh visuals for
empty slots.
2021-02-28 19:36:30 -05:00
Aaron Suen
7a21096731 Accelerate leaf decay
When leaves decay, they accelerate checks for
decay of nearby leaves, so overall tree leaves
decay much faster, but without increasing load
at steady-state i.e. for stable trees.
2021-02-28 16:45:02 -05:00
Aaron Suen
f3febbb6c1 Cache player color textures
The hashing and trig funcs may be a little
expensive, and it's pretty easy to cache the
results.
2021-02-28 14:26:13 -05:00
Aaron Suen
9e9474d25f Wash out colors and rebalance with SP skin 2021-02-28 14:20:18 -05:00
Aaron Suen
8a79633465 Brighten colors to compensate for multiply filter 2021-02-28 14:14:46 -05:00
Aaron Suen
2270f84336 Unique per-player default skin
Colorize player clothes based on a hash of player
name.  This should make it easier to distinguish
players from each other even when you can't see
their names, by remembering clothing colors.

Unfortunately there's no good way currently to
prevent some ugly color combinations, which may
risk incentivizing players to mess with their name
until they get a combination they like, creating a
bunch of junk accounts.  Making colors never
clash (i.e. always matching or complementary
hues) would reduce the variation in colorations,
causing more player color collisions.

Finding a way to ensure colors are "pretty" but
still having enough variation to give each player
name a unique color scheme would be ideal.  Also
there's room for more variations, e.g. adding some
stripes, patterns, emblems, etc. that can be
colorized separately, ideally something visible
from every angle.
2021-02-28 14:09:29 -05:00
Aaron Suen
c020726ae6 Fix lens flicker
Lenses won't transition directly from active to
shining, which only happens in flicker scenarios
2021-02-27 08:05:53 -05:00
Aaron Suen
32a5f30565 Merge in personal notes 2021-02-26 09:01:54 -05:00
Aaron Suen
c85ad5d662 Compat hack for 5.3- use_texture_alpha. 2021-02-07 13:33:58 -05:00
Aaron Suen
dabf8ac697 Fix node registration alpha for 5.4+ 2021-02-07 12:40:10 -05:00
Aaron Suen
d348b04668 Fix torch AISM bugs
Torches being inert when not wielded
- Not snuffing in water
- Not getting ashy as they approach expiry
2021-02-03 22:02:30 -05:00
Aaron Suen
36981fe24a Clean up oudated client rejection
- Be more specific in messages
- Show fewer messages to in-game players; hide
  the outdated player's join/leave messages and
  collapse all info into the kick message.
2021-01-03 08:57:39 -05:00
Aaron Suen
8e5428cedf Fix lux infusion
Tables containing lists of items to register AISMs
for are broken out into indexes at the time of
registration, so if we delay building the lists, we
need to delay registering the AISMs.  Luckily
AISMs can be registered later at runtime.
2021-01-03 08:56:47 -05:00
Aaron Suen
3548dc9c12 Fix loose humus repose bug 2020-12-31 09:51:29 -05:00
Aaron Suen
e1dc632779 New lux tool infusion API
- Split infusion logic from tool registration
  so tools aren't depending on sharing local
  tables with infusion logic.
- Use alternative_lux_* fields on tool item
  registrations to control how lux infusion and
  boost/unboost applies to tools.
- It should now be possible to register tools
  independently that can tap into lux infusion
  and boost features.
- It should now be possible to make tools
  boostable, unboostable, and infusable all
  independently, so they don't need to support
  all those actions, and they don't need to
  round-trip from e.g. a boost/unboost operation.
- We no longer depend on a naming convention
  for boost/unboost pairs (though in practice we
  follow it in the core game, but mods are not
  required to).
2020-12-28 20:54:57 -05:00
Aaron Suen
aae1ed78bb Support unboostable infused tools
Just make sure the boost/unboosted item is
actually registered before trying to overwrite
the stack.
2020-12-28 00:31:51 -05:00
Aaron Suen
dde05141d0 Make wet concrete transmit light
While I'd like these to be opaque, The MT
engine unfortunately does not allow this
without introducing dark shadows inside the
node the fluid occupies, which is evident if
flowing opaque liquid is up against the side
of a container.
2020-11-28 20:02:42 -05:00
Aaron Suen
0e507a6646 Minor translation update 2020-11-28 20:00:00 -05:00
Aaron Suen
e05de5647f Update ideas 2020-11-07 07:19:53 -05:00
Aaron Suen
7f011b9025 Get rid of all [REMOVED] in translations
The use of [REMOVED] was originally intended to
keep translations of past strings when removed, so if
they were re-added later we could revive the
translations without relying on Weblate to keep them
for us, i.e. we should be able to regenerate Weblate
state (including hidden strings) from this repo.

Since we are now committing copies of the raw
weblate files, we should be able to revive anything
we need from git history anyway.

So far it looks like Weblate does not automatically
remove translation strings from target languages
when the source language is changed.  If this
becomes an issue later then we can scrape the git
repo history to reconstruct lost strings at that time.

This also cleans up some translations that were being
mistakenly included in the final compiled output
despite being removed, because we weren't
correctly filtering out [REMOVED] strings after the
punctuation was added to silence Weblate warnings.
2020-10-18 11:55:23 -04: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
2856398c08 Support auth in weblate pull
There are strict rate limits for anon users.  If an auth
token is available, use it to avoid those limits.
2020-10-18 11:38:57 -04:00
Aaron Suen
b3af182427 Prevent a door item destruction bug
If two stacks try to move into the same spot at the
same time, both will be placed there and one will
overwrite the other; instead, we should do a check for
the "head" of a moving item chain (the only one that
can be moving into a space not being vacated by
another) and block collisions.
2020-10-15 20:04:01 -04:00
Aaron Suen
40d915141b Restore some missing translation strings 2020-10-05 22:12:27 -04:00
Aaron Suen
b4f3ffccfb Fix some translation registration issues 2020-10-05 22:10:47 -04:00
Aaron Suen
08be3a497e Hint wording tweak 2020-10-05 22:01:18 -04:00
Aaron Suen
9bb5c23c39 Fix silk touch when digging by machine 2020-10-05 21:34:28 -04:00
Aaron Suen
12f7419d84 Guard against crash on invalid ent state
Somehow an ent can get into a state where
it needs to set velocity but doesn't know what
velocity to set; velocities are transient
phenomena anyway, so just ignore this.
2020-10-04 08:20:05 -04:00
Aaron Suen
42d4cef19b Log splitting relaxations
- Allow splitting "upside down" logs.
- Allow splitting logs from the bottom using at least lode-tier
  tools (allowing automation options).
2020-09-30 06:38:46 -04:00