1680 Commits

Author SHA1 Message Date
Aaron Suen
95d0368f46 Tree and writing hints 2020-09-05 21:51:10 -04:00
Aaron Suen
8fd659068d Fix drop-all repetition guard hook 2020-09-05 20:43:12 -04:00
Aaron Suen
05d985c635 Expand hint system a bit
- Add reset command
- Reset alerts on resetting state
- Add option to hide hints
- Add option to add custom hint attrs
- Add option to pass in an already-fully-formed
  hint object and skip construction helpers
- Tidy up terrain hints a bit
2020-09-05 16:08:17 -04:00
Aaron Suen
065bef313c Remove retired virtual item icons 2020-09-05 09:33:20 -04:00
Aaron Suen
94440b3912 Add a HUD for incident radiation 2020-09-05 09:32:02 -04:00
Aaron Suen
66d1a5fe34 Buff lux exposure rate even more 2020-09-05 09:16:39 -04:00
Aaron Suen
d35819b9af Merge branch 'dev' into luxbuff 2020-09-05 08:59:37 -04:00
Aaron Suen
8324abfab9 "Dev Version" = "Dev/CDB Version"
ContentDB's .gitattributes export-subst support
has been broken for a while now, and apparently
won't be fixed (it's depending on an upstream
that is similarly ignoring the issue).

We need to account for the fact that what looks
like a dev version might actually be a CDB
version that's simply not tagged right.
2020-09-05 08:44:09 -04:00
Aaron Suen
4f24397869 Mirror object crosshair left/right
It looks more aligned with the original this way.
2020-09-04 21:45:33 -04:00
Aaron Suen
e51d9a5a70 Rename textures again to not collide
This allows a texturepack to support both the
original hotbar (for release edition) and the new
hotbar (for the alpha edition) at the same time,
while giving us time to test out the alpha version
and roll out the new release when it's ready, and
without forcing TP authors to trade off support.

Names are also lexically consistent and more
consistent with internal names.
2020-09-04 20:50:29 -04:00
Aaron Suen
76176ea648 Rename selection reticle back 2020-09-04 20:30:44 -04:00
Aaron Suen
b7d6015906 Add back in legacy bar as background
This allows monolithic hotbar drawing, and
variations by position, and brings back partial
support for existing TPs.
2020-09-04 20:16:10 -04:00
Aaron Suen
d7f231f083 Retire redunant textures 2020-09-04 20:03:36 -04:00
Aaron Suen
9d4d89d612 Merge branch 'hintapi' into dev
This is probably at least at parity with what we had before, and
it could use a little field testing.
2020-09-04 20:00:40 -04:00
Aaron Suen
5059f9b3c3 Alternative hotbar approach
We still change the background, but only depend
on the state of the slot, not on wield index.  Go
back to a traditional slot selection ring for the
selection index.

Slot backgrounds are a little bolder normally, and
when broken, especially bold around the broken
areas.

The selection ring itself is broken so that the
gaps in broken slots are still "open" to the outside
when the selection ring is in place.
2020-09-04 19:59:12 -04:00
Aaron Suen
18b01c1ae7 Redistribute hints into each mod
Hints themselves have not been tided up
much, but this makes the project of fixing the
hints for each mod a little more manageable
and breaks up the hard-to-navigate single
monolithic hints file in the old guide mod.

The old guide mod has now been completely
retired.  Hints are now a full-fledged API-layer
standard feature.
2020-09-04 19:07:45 -04:00
Aaron Suen
db0bb65e57 Fix discovery API bugs
Crashes, broken stat names
2020-09-04 16:55:40 -04:00
Aaron Suen
a4b724e1e0 Include hint API in nc_api_all dep 2020-09-04 16:48:14 -04:00
Aaron Suen
223d769827 Retire the old global stats mod 2020-09-04 16:38:43 -04:00
Aaron Suen
edea123a1e Start on new unified Hint API
- Move hint handling down to API layer
- Simplify stat data; old nc_stats counting can
  be moved out to a separate mod.  We only
  need whether the player has seen or not.
- Invert inventory tab responsibility.
- Merge witness system in from crafting.

TODO:
- Redistribute hint registration responsibility
  to individual mods.
- Test external mod compat.
- Retire old nc_stats and nc_guide systems.
- Add a way to reset hints.
2020-09-04 16:28:27 -04:00
Aaron Suen
ef61cfffa6 Start work on buffing lux rad effect
Still needs more tweaking and testing
2020-09-04 14:58:32 -04:00
Aaron Suen
5c73331ec2 Remove description for burn/injury
These are no longer actually "items" in the
player's view, but states of the hotbar slots
themselves...
2020-09-04 13:58:46 -04:00
Aaron Suen
1c0a9f1ade Add a lagless hotbar cursor
- Highlight behind item may lag behind the
  new cursor, but the new cursor will show
  which slot you're trying to select when
  scrolling rapidly.
- Also fix the margins/centering for hotbar
  image.

Will have to see how this plays on the actual
MP server, where there's notable RTT lag.
2020-09-04 13:55:13 -04:00
Aaron Suen
ca20aa5584 Refac HUD into separate files 2020-09-04 13:35:38 -04:00
Aaron Suen
3b64a3ecc4 Aux+sneak+drop = drop all matching 2020-09-04 13:16:41 -04:00
Aaron Suen
79622ce150 Unalias hotbar slot textures
This was causing a texture from texture packs
to be reinterpreted differently, causing buggy-
looking hotbars, and TP authors would not
have been able to change the hotbar to work
with both versions.

Now before and after use different sets of
textures so a single TP can safely support
both before and after.
2020-09-04 12:56:18 -04:00
Aaron Suen
d88e1a9c11 Hotbar fixes
- Hide the redundant selector
- Properly use NC PlayerStep API
2020-09-04 12:34:54 -04:00
Aaron Suen
f8da98acf7 Fixes/tidying 2020-09-04 12:29:34 -04:00
Aaron Suen
5b2e61be75 Merge branch 'dev' into fancy_hotbar_9271_fixed 2020-09-04 12:29:08 -04:00
Aaron Suen
9a05788a06 Fine-tune brick appearance 2020-09-03 21:32:17 -04:00
Aaron Suen
7eb6557870 Genericized brickmaking API
You can now chisel and bond bricks of other
smooth stone types, i.e. the kind made in
concrete processes.
2020-09-03 21:24:59 -04:00
Aaron Suen
3f5f78bbe0 New entity crosshair 2020-09-03 21:02:10 -04:00
Aaron Suen
72e1dc697f Fix missing adze/rake wear-out penalty
Since there are proper recycling recipes for
these to retemper or chop them into bars
and rods, we can impose a penalty for
wearing them down completely now.
2020-09-03 20:55:53 -04:00
Aaron Suen
387a72ccbc Aux+drop dumps entire inventory 2020-09-03 20:22:09 -04:00
Aaron Suen
0440a0644e More pt translations by Terifo 2020-09-02 08:26:55 -04:00
Aaron Suen
6cd356c191 Remove explicit node non-diggability
This opens up the possibility of mods adding
tools that CAN dig some of these more exotic
things.
2020-09-02 08:21:46 -04:00
Aaron Suen
dbae9ee71d Defer fall check during raking
This should fix "messy raking" issues where
the rake fails to pick up some things inside
its volume because they start falling due to
items below being dug first before the rake
hits them, making it more as if the rake is
actually simultaneously digging that volume.
2020-09-02 08:00:07 -04:00
Aaron Suen
ef4b320193 Multimodal Rake API
Based on what's being dug, rakes can have
different dig volumes and checks.

Lode rake now has 3 modes depending on
what's being dug:
- Loose things, same as wooden rake
- 3x3x3 exfoliating
- 3x1x1 soil tilling/digging
2020-09-02 07:53:05 -04:00
Aaron Suen
00779deaa8 Weblate updates 2020-09-02 00:14:36 -04:00
Aaron Suen
30172357fc Texturepack override textures for the lode rakes 2020-09-01 22:59:17 -04:00
Aaron Suen
3a0fad0b99 Guard against a race condition 2020-09-01 22:36:52 -04:00
Aaron Suen
0e709a7819 Add lode rake recycling recipe 2020-09-01 22:01:51 -04:00
Aaron Suen
a4a5a02e54 Fix lode rake prill breakdown 2020-09-01 21:58:06 -04:00
Aaron Suen
c57515a072 Rakes have gone metal too now 2020-09-01 21:42:18 -04:00
Aaron Suen
5556797e45 Genericize rake logic
This makes it possible to register additional
rakes with different capabilities.
2020-09-01 21:07:37 -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
53c7a0c87c Add missing texturepack override textures. 2020-08-31 23:30:06 -04:00
Aaron Suen
50c8dbf6a6 Adzes can now be metal too 2020-08-31 22:03:40 -04:00
Aaron Suen
055859e267 New lode bar/rod recipes
- Hammer bar onto end of bar to make rod,
  instead of pile of 2 bars "shapelessly".  This
  opens up the possibility of hammering lode
  things against each other in a particular
  direction/shape for future crafts.
- Make lode rod chopping recycling (i.e.
  breaking things into multiple parts, not just
  reshaping a bar into a prill) require heated
  lode, consistent with the block recycling
  recipe.
2020-08-31 21:56:54 -04:00
Aaron Suen
7fdea6849a Some small lode fixes 2020-08-31 21:55:10 -04:00