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

Allow player to use more multi-zone activities #34192

Merged
merged 4 commits into from Sep 28, 2019
Merged

Allow player to use more multi-zone activities #34192

merged 4 commits into from Sep 28, 2019

Conversation

ghost
Copy link

@ghost ghost commented Sep 22, 2019

Summary

SUMMARY: Features "Allow player to use more multi-zone activities - chopping, deconstructing etc"

Purpose of change

Fixes #33250

( fixes that bug due to "improving" the logic of how players and NPCs resume activity backlog or multi-type activities only )

fixed two bugs that seemed as yet unreported.
Tilling/churning soil took no moves, so zone farming was done instantly.
Also chopping logs did not work as it never recognised that the player/npc had the required tool quality.

The main thrust of this however, is that now the player can make use of the new multi-zone activitis that the NPCS use.
Player can now deconstruct/repair a vehicle, chop trees, chop logs into planks, and butcher multiple corpses, with the player automaticlly fetching the right tools for the job if required ( if they are in a loot zone ) , and tidying up afterwards by putting all products of the activity back into an unsorted loot zone.

Less keypresses overall as it just continues with the activity automatically. - Only do this if you really want ALL vehicle parts removed, or ALL trees chopped down, or ALL logs chopped into planks etc.
( that is ALL of the things contained in the zone you specified for the work )

Describe the solution

Added the options to the Shift+O menu, and tweaked the activity loops to allow the player to use them.

Describe alternatives you've considered

N/A

Additional context

N/A

@ghost ghost changed the title Allow player to use more multi-zone activities [WIP]Allow player to use more multi-zone activities Sep 22, 2019
@ZhilkinSerg ZhilkinSerg added <Enhancement / Feature> New features, or enhancements on existing [C++] Changes (can be) made in C++. Previously named `Code` [JSON] Changes (can be) made in JSON Mechanics: Character / Player Character / Player mechanics Inventory / AIM / Zones Inventory, Advanced Inventory Management or Zones labels Sep 23, 2019
David Brown added 4 commits September 25, 2019 12:05
# This is the 1st commit message:

npc vehicle repair

compare npc to player to discount current activity agent

deduplicate code into common function - and change fetch_activity back to single item a ta time to avoid erasing inside loop

# This is the commit message #2:

correct time taken check on vehicle_activity(), more places to check for NPC revert to avoid inf.loops
compare npc to player to discount current activity agent

deduplicate code into common function - and change fetch_activity back to single item a ta time to avoid erasing inside loop

correct time taken check on vehicle_activity(), more places to check for NPC revert to avoid inf.loops

remove comment
added handlng for avatar potentially doing this activity too

allow player to use more zone activities

neaten up with common function to unify backlog resuming

typo
@ghost
Copy link
Author

ghost commented Sep 25, 2019

Rebased to latest master. now the dependent PR is merged , removign WIP.

@ghost ghost changed the title [WIP]Allow player to use more multi-zone activities Allow player to use more multi-zone activities Sep 25, 2019
@kevingranade kevingranade merged commit 0b58608 into CleverRaven:master Sep 28, 2019
@ghost ghost deleted the player_use_multi_activities branch December 19, 2019 14:16
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` <Enhancement / Feature> New features, or enhancements on existing Inventory / AIM / Zones Inventory, Advanced Inventory Management or Zones [JSON] Changes (can be) made in JSON Mechanics: Character / Player Character / Player mechanics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Butchering continues automatically (in potentially dangerous situations)
2 participants