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

Mining multi-activity for NPCs and players #38505

Merged
merged 11 commits into from Apr 2, 2020
Merged

Mining multi-activity for NPCs and players #38505

merged 11 commits into from Apr 2, 2020

Conversation

ghost
Copy link

@ghost ghost commented Mar 1, 2020

Summary

SUMMARY: Features "Mining multi-activity for NPCs and players"

Purpose of change

Mining multi-activity for NPCs and players

Describe the solution

A new multi-type activity - Mining.
NPC/player will auto-fetch tools, and go and mine in a designated area, clearing up all the products to an unsorted zone nearby.
Not much use for it as things stand really, but mods/scenarios/future features may make an underground base more desirable.
And I guess you do get lots of coal and limestone sometimes.

Describe alternatives you've considered

N/A

Testing

Found two bugs during this in activity code, which I did fixes for in #38503

and

#38504

These fixes were already in another of my feature-freezed PRs, but they needed to be split out.

So those changes are in this PR too, for the purposes of testing, and with this, I tested with electric jackhammers, pickaxes etc, and the NPC went and picked it up and went and did the work, and tidied up the rocks and stuff afterwards.

Additional context

N/A

@ZhilkinSerg ZhilkinSerg added [C++] Changes (can be) made in C++. Previously named `Code` [JSON] Changes (can be) made in JSON Inventory / AIM / Zones Inventory, Advanced Inventory Management or Zones Mechanics: Character / Player Character / Player mechanics NPC / Factions NPCs, AI, Speech, Factions, Ownership 0.E Feature Freeze labels Mar 2, 2020
@Funguss
Copy link
Contributor

Funguss commented Mar 2, 2020

This is another feature I've been hankering for, thanks! The utility of this is a bit lacking at the moment until NPCs work when they're on a different Z level. If the issue hasn't been raised yet I'll go do that now and link it.

Edit: It wasn't raised, here we go! #38516
Edit2: And it seems I was off, though there is still an issue to be resolved.

@ghost ghost requested a review from John-Candlebury as a code owner March 6, 2020 19:21
@ghost ghost changed the base branch from master to dev March 6, 2020 19:21
@ZhilkinSerg ZhilkinSerg force-pushed the dev branch 2 times, most recently from aa39539 to 9761f13 Compare March 10, 2020 09:21
@ZhilkinSerg ZhilkinSerg force-pushed the dev branch 6 times, most recently from 924f105 to 39e00e3 Compare March 18, 2020 07:00
@ZhilkinSerg ZhilkinSerg force-pushed the dev branch 3 times, most recently from ad63e77 to 8e68539 Compare April 1, 2020 12:18
@kevingranade kevingranade force-pushed the dev branch 4 times, most recently from 621a68e to b7106d0 Compare April 2, 2020 07:42
@ZhilkinSerg ZhilkinSerg force-pushed the dev branch 3 times, most recently from 0f30a43 to d432807 Compare April 2, 2020 12:55
@ZhilkinSerg ZhilkinSerg changed the base branch from dev to master April 2, 2020 14:32
@ghost ghost requested review from I-am-Erk and KorGgenT as code owners April 2, 2020 18:10
@ghost
Copy link
Author

ghost commented Apr 2, 2020

Rebased, retargeted, retested - working fine.

@ZhilkinSerg ZhilkinSerg merged commit 86f3e1a into CleverRaven:master Apr 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` Inventory / AIM / Zones Inventory, Advanced Inventory Management or Zones [JSON] Changes (can be) made in JSON Mechanics: Character / Player Character / Player mechanics NPC / Factions NPCs, AI, Speech, Factions, Ownership
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants