Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

erk and knives #73993

Merged
merged 5 commits into from
Jun 18, 2024
Merged

erk and knives #73993

merged 5 commits into from
Jun 18, 2024

Conversation

Kamejeir
Copy link
Contributor

@Kamejeir Kamejeir commented May 21, 2024

Summary

Features "Various knives now using the variant system"

Purpose of change

@I-am-Erk wanted this

Describe the solution

Move knives_kitchen.json contents to knives.json

Make the kitchen knives into variants as determined below

Changed a mission needing a knife

Changed around tests to check for the base knives instead of the variants

migrate the knives to their respective variants

Made some mods that need the knives now use any of the knives in their category (sorry crazycata, your bread sword is now no longer just a bread sword. rather chef- and carving sword too)

Describe alternatives you've considered

Testing

Small kitchen knife: Loads no fault, spawns in with separate variants, the items get their own ASCII art

further testing: no fault when loading or throughout testing spawning/recipes

found one of each knife and made this beauty
image

all knives disassemble successfully

a practice recipe could successfully utilize a knife

I'm not sure how to see about checking the mod changes over just seeing that the unit tests passed

Additional context

@github-actions github-actions bot added NPC / Factions NPCs, AI, Speech, Factions, Ownership [JSON] Changes (can be) made in JSON Map / Mapgen Overmap, Mapgen, Map extras, Map display Items: Food / Vitamins Comestibles and drinks Crafting / Construction / Recipes Includes: Uncrafting / Disassembling Spawn Creatures, items, vehicles, locations appearing on map Mutations / Traits / Professions/ Hobbies Mutations / Traits / Professions/ Hobbies Monsters Monsters both friendly and unfriendly. Fields / Furniture / Terrain / Traps Objects that are part of the map or its features. Melee Melee weapons, tactics, techniques, reach attack astyled astyled PR, label is assigned by github actions <Enhancement / Feature> New features, or enhancements on existing labels May 21, 2024
@I-am-Erk
Copy link
Member

You can also keep them in the current knife file, it really doesn't matter much

@Kamejeir
Copy link
Contributor Author

Done with the small kitchen knives. I don't know which itemgroups would deserve the extra knives such as the "tomato knife". I mean obviously yes wherever there are all variants (like a kitchen), but scanning for exceptions is the tricky part. Also I'm not too keen on adding descriptions of the extra knives, am not a knife enthusiast.

@Kantonine
Copy link
Contributor

Also, quick thing to add, both cleavers should have the knife proficiencies

@I-am-Erk
Copy link
Member

This is looking good so far. I would not bother with adding new knife variants in this PR, that's just something we can think about later.

@Kamejeir
Copy link
Contributor Author

Here includes all variants of the large knife. Is this the best way to spawn these three? Anything like taking out the variant definitions might not be future-proof, though in case more large knives are added...

[ "knife_bread", 20 ],
[ "knife_chef", 20 ],
[ "knife_carving", 20 ],

This becomes rather silly. One can potentially substitute in a bread knife for use in butchery, which hardly seems appropriate.
"Kit" items are so last year anyway.
[ [ "knife_carving", 1 ] ],

@I-am-Erk
Copy link
Member

I-am-Erk commented May 24, 2024

You could keep the bread knife as a separate item if it makes you more comfortable. I don't personally think it's all that significant a problem, but it is noticeably different from the others

@github-actions github-actions bot added the Missions Quests and missions label May 24, 2024
@Kamejeir
Copy link
Contributor Author

My only concern is this. It's not letting me use variants, so a new huge knife variant would make it not necessarily be giving this NPC a butcher knife. Maybe the description of the mission can be spiced up as more generic, assuming future huge knives all have function similar to a butcher knife?

@Kamejeir
Copy link
Contributor Author

@I-am-Erk I'll go with this. I'll test it now and once you're good with how the mission turned out, I'll put it as ready for review.

@Kamejeir Kamejeir marked this pull request as ready for review May 29, 2024 09:09
data/json/itemgroups/SUS/domestic.json Outdated Show resolved Hide resolved
data/json/itemgroups/SUS/domestic.json Outdated Show resolved Hide resolved
data/json/itemgroups/SUS/domestic.json Outdated Show resolved Hide resolved
data/json/itemgroups/misc.json Outdated Show resolved Hide resolved
data/json/monsterdrops/clothing_halloween.json Outdated Show resolved Hide resolved
data/json/recipes/tools/tools_hand.json Outdated Show resolved Hide resolved
data/json/recipes/tools/tools_hand.json Outdated Show resolved Hide resolved
data/json/recipes/tools/tools_hand.json Outdated Show resolved Hide resolved
data/json/recipes/tools/tools_hand.json Outdated Show resolved Hide resolved
data/json/recipes/weapon/cutting.json Outdated Show resolved Hide resolved
@Kamejeir
Copy link
Contributor Author

still waiting for erk to get in his comment, for the merge reading this. disclaimer: did not test the mission, for I could not figure out how. disclaimer 2: after the reviewbot, only tested again by loading into the game, not encountering any load errors

@github-actions github-actions bot added the json-styled JSON lint passed, label assigned by github actions label May 29, 2024
@Kamejeir
Copy link
Contributor Author

Kamejeir commented May 29, 2024

oh no, tests:
crafting_test - missing a cutting tool
effective_dps_test - make it use knife_small instead of knife_butcher. knife_cleaver instead of knife_meat_cleaver
npc_attack_test - make it use knife_large instead of knife_chef. knife_huge instead of knife_butcher

also to remove str_pl from cleavers

npc_talk_test - something about not having enough starting items

@Kamejeir Kamejeir marked this pull request as draft May 30, 2024 08:10
@github-actions github-actions bot added the Code: Tests Measurement, self-control, statistics, balancing. label May 30, 2024
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-requesting reviews from non-collaborators: @Light-Wave

@github-actions github-actions bot added json-styled JSON lint passed, label assigned by github actions and removed json-styled JSON lint passed, label assigned by github actions labels May 30, 2024
@I-am-Erk
Copy link
Member

I-am-Erk commented May 30, 2024

Ah yeah. The magiclysm conflicts and resulting explosion are a good case study of why it might have been better to do just steak/paring knives, then just bigger knives, in separate PRs. It looks like you have it mostly sorted now though, if it passes these tests I'll merge it in a bit.

I'm not too worreid about the godco mission, if we add another type of knife we could either adjust the mission to specifically ask for a butcher knife or we could change the dialogue.

@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label May 31, 2024
@Kamejeir Kamejeir force-pushed the erk-knife branch 4 times, most recently from 793294e to 9b18aef Compare June 4, 2024 09:32
@github-actions github-actions bot added BasicBuildPassed This PR builds correctly, label assigned by github actions json-styled JSON lint passed, label assigned by github actions and removed json-styled JSON lint passed, label assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions labels Jun 4, 2024
@Kamejeir Kamejeir force-pushed the erk-knife branch 3 times, most recently from 387936d to 4a95cdd Compare June 4, 2024 14:39
@Kamejeir
Copy link
Contributor Author

Kamejeir commented Jun 4, 2024

fixed handling migration. I start to understand that the commit log needs to both serve as a changelog while also being readable. good experience for the future

@Maleclypse
Copy link
Member

Please rebase to resolve conflicts

@Maleclypse Maleclypse merged commit d3ae4fd into CleverRaven:master Jun 18, 2024
22 of 27 checks passed
@Kamejeir Kamejeir deleted the erk-knife branch October 19, 2024 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions [C++] Changes (can be) made in C++. Previously named `Code` Code: Tests Measurement, self-control, statistics, balancing. Crafting / Construction / Recipes Includes: Uncrafting / Disassembling <Enhancement / Feature> New features, or enhancements on existing Fields / Furniture / Terrain / Traps Objects that are part of the map or its features. Items: Food / Vitamins Comestibles and drinks [JSON] Changes (can be) made in JSON json-styled JSON lint passed, label assigned by github actions Map / Mapgen Overmap, Mapgen, Map extras, Map display Mechanics: Enchantments / Spells Enchantments and spells Melee Melee weapons, tactics, techniques, reach attack Missions Quests and missions Mods: Innawood 🌲 Anything to do with Innawood mod Mods: Magiclysm Anything to do with the Magiclysm mod Mods: Xedra Evolved Anything to do with Xedra Evolved Monsters Monsters both friendly and unfriendly. Mutations / Traits / Professions/ Hobbies Mutations / Traits / Professions/ Hobbies NPC / Factions NPCs, AI, Speech, Factions, Ownership Spawn Creatures, items, vehicles, locations appearing on map
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants