1736 Commits

Author SHA1 Message Date
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
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
f5362fa950 Retire branch 'origin/fancy_hotbar' into dev
Since it's now possible to do the fancy hotbar using texturemods
in supported MT 5.2+, the old method of trying to reconstruct the
hotbar piecewise via custom HUDs is probably no longer relevant.
2020-09-04 12:36:09 -04:00
Aaron Suen
7c985e9bd5 Merge branch 'fancy_hotbar_9271_fixed' into dev 2020-09-04 12:35:20 -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
d11caf9209 Update notes 2020-09-03 23:29:15 -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
Aaron Suen
50bcbee25e Circumstantial lux tool degradation 2020-08-31 20:35:40 -04:00
Aaron Suen
19fc822f4a Make hint API pass player name/object too
This allows custom hint logic, e.g. for recipes like
in nc_skyrealm that are only applicable based on
location.

Name passing should work even when the player is
offline.
2020-08-31 08:09:39 -04:00
Aaron Suen
6743f97d32 Lava quench fx, notes update
Dump most core game ideas from my
discord collected notes.
2020-08-30 21:49:38 -04:00
Aaron Suen
6b2447266b Add stone softening 2020-08-30 21:07:13 -04:00
Aaron Suen
50498c3edf Nerf stone hardening 2020-08-30 20:26:09 -04:00
Aaron Suen
a002c88642 Remove smoothstone silk touch restriction 2020-08-10 20:16:41 -04:00
Aaron Suen
f01be30a00 Tidy up registration reporting 2020-07-16 07:29:11 -04:00
Aaron Suen
84e5819753 Fix excess node obstruction
Objects that are not static-save luaents, such as
players, wieldview/bandolier, or visinvs, should not
obstruct node movement.
2020-07-15 22:18:01 -04:00
Aaron Suen
1e11f9d81e Remove compat hacks, bump min ver to 5.2+ 2020-07-14 08:20:46 -04:00
Aaron Suen
d000db43f6 Minor code cleanup 2020-07-14 08:08:16 -04:00
Aaron Suen
7cc597156d Pushout refactors 2020-07-14 08:07:03 -04:00
Aaron Suen
b905cccd54 Add documentation to wishlist. 2020-07-12 12:40:41 -04:00
Aaron Suen
dc704a424a Include special_tiles in overlay.txt template 2020-07-12 10:58:17 -04:00