34 Commits

Author SHA1 Message Date
Aaron Suen
d9d33d1a4f Fix rad damage blocking
Instead of trying to skip everything (and not
updating stats), just set rate to 0.
2022-01-22 22:17:35 -05:00
Aaron Suen
46241b06d4 Invincible players also clear rad HUD 2022-01-22 14:52:11 -05:00
Aaron Suen
a75e2ca886 Make non-visible players not interact with luxrad
Also remove HUDs from things that don't affect
non-visible players.
2022-01-22 14:47:28 -05:00
Aaron Suen
860bf97905 Special case: reset rad rate when resetting level 2021-12-27 00:32:25 -05:00
Aaron Suen
09af14ced5 Add a "set" method for the health API 2021-12-27 00:31:14 -05:00
Aaron Suen
bca338246c Tweak rad hud math again
Use an exponential scale for alpha intensity so
subtler shading gets narrower gradations
2020-09-28 23:07:43 -04:00
Aaron Suen
a346b5457f Reduce lag from continuous rad hud redraw
Round alpha channel to 16 levels, so we will have
cached all possible alpha values after not too long.
2020-09-27 22:49:34 -04:00
Aaron Suen
7e2a4c0b0c Reintroduce radiation HUD 2020-09-14 09:36:59 -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
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
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
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
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
5b2e61be75 Merge branch 'dev' into fancy_hotbar_9271_fixed 2020-09-04 12:29:08 -04:00
Aaron Suen
0929d007ce Use nodecore.interval where appropriate
Fixes deprecated get_connected_players() at load time issue
2020-06-23 06:43:34 -04:00
Aaron Suen
984e87e155 Consistent ABM labeling
- Make sure every ABM has a label
- Use consistent case
- More concise names / consistent voice
2020-06-17 07:09:20 -04:00
Aaron Suen
2cb09e21dd Buff lux tool radioactivity
Lux tools also glow a bit
2020-06-06 07:36:11 -04:00
Aaron Suen
dfa8615200 Revert "Remove descritption from injury/burn."
This reverts commit 4a13733e68903904e088fe21d86dec6d927ee7d8.

While I'm still not happy with the desciptions, we probably need
some sensible way to talk about these in chat, wikis, etc.
2020-03-25 08:58:31 -04:00
Aaron Suen
4a13733e68 Remove descritption from injury/burn.
This always felt kinda redundant and the names
themselves never seemed all that great.

For Lux Burns in particular, I'd rather the radiation
symbol speak for itself.
2020-03-24 00:06:38 -04:00
Aaron Suen
65c21683a3 Fix burn/injury inventory/hand appearance. 2020-02-24 21:45:13 -05:00
Aaron Suen
32e9c306b7 Attempt to create "fancy" hotbar.
Seems this doesn't actually work.  The hotbar image
MUST be a physical file, and cannot use any texture
modifiers, so sayeth the engine.
2019-12-31 11:06:35 -05:00
Aaron Suen
fdd881ae53 Active ItemStack Modifier overhaul.
AISM's now tick against stacks, including in piles, shelves,
and player inventories, (hopefully) efficiently compared to
the old way with separate ABMs.  Item entity support is also
possible, but not necessary yet.

This started out as a bugfix for being able to put a torch inside a
shelf, which didn't make much sense gameplay-wise.  It ended up
going quite a bit further.

- Aggregate now gets wet in stack form.  Swimming with dry
  concrete now has consequences.
- Lux reactions, radiation, and infusion should now behave more
  consistently.
- Sponges can now wet or dry in stack form, including inside
  containers.
- Torch ignition, quenching, and extinguishing is now more
  consistent regardless of context, and torches are now more
  dangerous, and can ignite things in more contexts.
2019-10-29 20:03:18 -04:00
Aaron Suen
749169a10b Subtlize and overall nerf radiation accumulation rate. 2019-10-14 19:52:19 -04:00
Aaron Suen
22f24f7444 Buff water attenuation, add attenuation for all other materials. 2019-10-14 06:19:45 -04:00
Aaron Suen
88292e402b Lower lux tool radiation rate significantly. 2019-10-14 06:13:48 -04:00
Aaron Suen
f9a1996811 Limit lux radiation distance, water attenuates significantly. 2019-10-14 06:11:50 -04:00
Aaron Suen
af1f808c68 Fix player health FX auto-scaling.
Guarantee 2 usable slots no matter how many different
injury effects accumulate.

Filled slots will be shared among different damage types
roughly proportionally.
2019-10-13 12:57:57 -04:00
Aaron Suen
402f0150b7 Lux Radiation, and player healthfx API. 2019-10-13 11:37:36 -04:00