92 Commits

Author SHA1 Message Date
Aaron Suen
69e3ed8035 Fix API when used by downstream mods 2023-06-05 15:44:56 -04:00
Aaron Suen
52e9a0250d Fix custom spawn logic overridability
Allow the custom function to override, not underride, the
standard definition.
2023-06-04 22:04:39 -04:00
Aaron Suen
e753fed2c0 Fix code format 2023-06-04 22:03:31 -04:00
Aaron Suen
c36b3eda5f Give cat textures a little HSV noise
Upon close inspection, it was a bit uncannily unnoisy.
2023-06-04 22:00:39 -04:00
Aaron Suen
e711440984 Public API for easy registration of new cats 2023-06-04 20:35:38 -04:00
Aaron Suen
77a852c73d Switch from group-based spawning to callback-based
Even more control for modders, allowing custom cats with fully
custom spawn probability logic, so they can have special
hatching requirements to spawn at all.
2023-06-04 20:18:20 -04:00
Aaron Suen
43cb46a661 Change cat selection to be group-based
This allows registering new cats (or other things) that can spawn
as part of cat hatching (or other forms of random cat generation).
2023-06-04 20:03:37 -04:00
Aaron Suen
1b2c11476b Fix texture misalignments on adjacent faces 2023-06-04 19:52:01 -04:00
Aaron Suen
bacfc3c5b0 Record birth/creator info for cats
There is currently no use for this data (it is not displayed) but
could be used by mods, or future functionality could be added to
use it.  For now, though, we need to start capturing this data or
else it won't exist for existing cats when those new features are
enabled.
2023-05-31 19:07:31 -04:00
Aaron Suen
5f7a5e7b27 Merge branch 'master' into 'master'
Fix texture modifiers relying on undocumented behavior

See merge request sztest/nc_cats!1
2023-05-28 17:53:58 +00:00
Lars Mueller
28eae5e2c5 Fix texture modifiers relying on undocumented behavior 2023-05-28 12:50:02 +02:00
Aaron Suen
97a04d8a5e Cats can be "brushed" with a rake too
This allows for automated cat petting once
again, but not trivially like before.  Provision for
the tool, AND activation timing, is needed now.
2023-05-20 09:51:37 -04:00
Aaron Suen
e4835417b5 Skip particles on fully occluded faces to conserve packets 2023-05-19 20:15:04 -04:00
Aaron Suen
cd5ea51967 Heart particles while cats are purring 2023-05-19 20:11:15 -04:00
Aaron Suen
89dfd5313a Cats purr only once when petted by machine
Currently there is nothing in the mod or the base game that allows
a cat to be petted by a machine, but I'm considering adding a
brush or allowing the use of rakes or something to make it
automatable, with deliberate planning.

Making the cat only purr once makes it feasible to automate the
machine even if a player is around because a machine that works
only once every 2 seconds will reliably trigger cat purring
without actually digging the cat.
2023-05-19 19:34:28 -04:00
Aaron Suen
9faab1583b Reduce area loading requirement 2023-05-15 20:12:43 -04:00
Aaron Suen
69e6ade970 Cats wet nearby concrete when supported by base game 2023-05-13 22:37:05 -04:00
Aaron Suen
f06d3881e1 Fix misnamed silk touch attribute 2023-05-13 19:10:09 -04:00
Aaron Suen
900de78305 Cat ore should never be silktouch at all 2023-05-13 14:43:03 -04:00
Aaron Suen
388019612d Checkfacedir as public API, and upon creating a cat 2023-05-05 20:35:31 -04:00
Aaron Suen
570a634ec8 Disallow machine-petting
...on relevant versions of NC that support the "cuddly" group.

More automated ways to get furballs from cats MAY be supported, but
it probably doesn't make sense to use the "petting" mechanic,
especially since it only ever worked as long as a player is within
5m of the cat anyway.

Maybe something involving a brush/rake?
2023-04-26 07:25:31 -04:00
Aaron Suen
627adce2ee Don't drop unsoftened ores 2023-04-22 19:42:53 -04:00
Aaron Suen
e65a99b398 Make cat coccoons meow when maturing
The "stone tap" sound they make is too subtle
and too easily lost in ambient noise.
2022-12-27 10:52:46 -05:00
Aaron Suen
edb959b7c2 Idea 2022-11-30 20:05:52 -05:00
Aaron Suen
a885120d2f Fix cat facing direction on "darkcore"
Air is not necessarily sunlight propagating, so
allow cats to face any direction that faces air,
even if it's "opaque".
2022-11-04 00:07:37 -04:00
Aaron Suen
987bdbd835 Add a TODO issue 2022-10-30 15:15:05 -04:00
Aaron Suen
c7f1cba6ad Cats only purr when players near
Cat "petting machines" are still permissible, but
they won't work if the player is too far away.
2022-10-18 22:59:27 -04:00
Aaron Suen
71885b5d47 Fix cat spawning probability effects
Cats should have a pretty significant impact on
the probability distribution of the color of cats
hatching nearby.
2022-10-07 14:59:07 -04:00
Aaron Suen
07ee75e6b8 Count cat faces for furball production, not total mass
Cat furball production logic was not accounting for longcats.
2022-10-04 19:03:05 -04:00
Aaron Suen
e807b38141 Add some clues and teasers 2022-09-24 22:45:08 -04:00
Aaron Suen
b70900c0d9 Longcats only meow at the end with a face 2022-09-24 20:33:10 -04:00
Aaron Suen
0df878a005 TODO item done (for now) 2022-09-24 20:23:53 -04:00
Aaron Suen
072deb949f Petting a longcat checks all parts for furballs 2022-09-24 20:20:43 -04:00
Aaron Suen
e9007c7a38 You can only pet the cute end of a longcat 2022-09-24 20:15:06 -04:00
Aaron Suen
857afcc296 Longcats renormalize when part is dug 2022-09-24 20:08:53 -04:00
Aaron Suen
4a055e1c01 Assembling a longcat works
Disassembling one partially works.
- Cats removed from snake return to original name
- Remaining cats in snake do NOT reconform
2022-09-24 20:04:32 -04:00
Aaron Suen
0389d9d09f Merge branch 'master' into longcats 2022-09-24 19:00:59 -04:00
Aaron Suen
d3c9e547f5 Disable cat prill ambiance
Allow people to store these items in their bases
without giving away base locations, as long as they
aren't moving them around.
2022-09-24 18:57:15 -04:00
Aaron Suen
7d4fe6ae7c Merge branch 'master' into longcats 2022-05-17 11:04:35 -04:00
Aaron Suen
d126f06a51 Fix cat prill exploit 2022-05-17 11:04:27 -04:00
Aaron Suen
d869e5718a Fix cat prill exploit 2022-05-17 07:03:59 -04:00
Aaron Suen
53068f5145 Merge branch 'master' into longcats 2022-04-16 09:02:56 -04:00
Aaron Suen
2c1439a18b Fix wall placement
Don't put cats on their sides against walls unless
they are also blocked in front.  Cats cannot stick
to walls and always prefer to be upright.
2022-04-16 09:02:16 -04:00
Aaron Suen
c432567a01 Node defs for longcats 2022-04-16 09:00:34 -04:00
Aaron Suen
98d914d07e Nearby cats influence hatching colors
When hatching a cat, immediately adjacent
cats increase the probability of getting a cat
with the same colors.
2022-04-16 08:38:47 -04:00
Aaron Suen
b1e7e073ae Ears 2022-02-02 07:11:18 -05:00
Aaron Suen
d5f2d21652 Fixed package thumbnail 2022-01-28 10:00:09 -05:00
Aaron Suen
e66eb391ee Nerf cat prill from eggcorns rate 2022-01-26 22:47:06 -05:00
Aaron Suen
a6a1c45189 Fix ore ambiance at all strata 2022-01-26 22:29:08 -05:00
Aaron Suen
b6b4876efe Stricter check
even though it's probably unnecessary
2022-01-26 20:50:36 -05:00