Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upAny NPC at camp can start missions etc, even by radio contact. #29249
Conversation
This comment has been minimized.
This comment has been minimized.
adamkad1
commented
Apr 3, 2019
|
sweet |
This comment has been minimized.
This comment has been minimized.
|
This pull request has been mentioned on Cataclysm: Dark Days Ahead. There might be relevant details there: https://discourse.cataclysmdda.org/t/yelling-commands-and-using-military-hand-signals/19487/7 |
davidpwbrown
referenced this pull request
Apr 3, 2019
Closed
Radio max range, build a camp radio tower #29254
davidpwbrown
changed the title
Any NPC at camp can start missions etc, even by radio contact.
[WIP]Any NPC at camp can start missions etc, even by radio contact.
Apr 3, 2019
This comment has been minimized.
This comment has been minimized.
|
Needs some refinement, most camp missions will behave strangely when not loaded in reality bubble. needs camp structure to accomodate that first. I Was a bit naieve in this implementation |
davidpwbrown
added some commits
Apr 3, 2019
davidpwbrown
force-pushed the
davidpwbrown:radio_range_tower
branch
from
b1e9fd3
to
dd841e3
Apr 7, 2019
davidpwbrown
changed the title
[WIP]Any NPC at camp can start missions etc, even by radio contact.
Any NPC at camp can start missions etc, even by radio contact.
Apr 7, 2019
This comment has been minimized.
This comment has been minimized.
|
So I think it works now, tested a lot of things, seems to be ok. For the moment some caveats :
With a bit of work, the crafting inventory code is halfway to being non-player-centric now, can be passed a tinymap and/or a different position to search from. |
davidpwbrown
added some commits
Apr 8, 2019
davidpwbrown
changed the title
Any NPC at camp can start missions etc, even by radio contact.
[WIP]Any NPC at camp can start missions etc, even by radio contact.
Apr 8, 2019
davidpwbrown
changed the title
[WIP]Any NPC at camp can start missions etc, even by radio contact.
Any NPC at camp can start missions etc, even by radio contact.
Apr 8, 2019
This comment has been minimized.
This comment has been minimized.
|
I can contact a NPC without a radio via the # menu, is that expected? |
This comment has been minimized.
This comment has been minimized.
If they are within interaction range, yes. It should say "within interaction range" in green under their entry. |
This comment has been minimized.
This comment has been minimized.
|
Ok it was probably something to do with debug teleport, I'll repeat with driving off in a car or something. |
kevingranade
merged commit 57b7324
into
CleverRaven:master
Apr 12, 2019
ZhilkinSerg
reviewed
Apr 21, 2019
| } | ||
| consume_components_for_camp_mission( omt_tri, making, fortify_om.size() * 2 - 2, by_radio ); | ||
| } | ||
| comp->companion_mission_role_id = bldg_exp; |
This comment has been minimized.
This comment has been minimized.
ZhilkinSerg
Apr 21, 2019
Contributor
I guess whole block below should go to under if( comp != nullptr ) check. Right now it could crash if comp == nullptr and it would try to assign companion_mission_role_id or fill-in companion_mission_points.
davidpwbrown commentedApr 3, 2019
Summary
SUMMARY: Features "Any NPC at camp can start missions etc, even by radio contact."Purpose of change
To allow any NPC "assigned" to a camp, or any NPC you can talk to, who happens to currently be at a camp, to administer it for you, you don't need to examine the bulletin board.
Describe the solution
When an NPC is assigned to guard a position, and that position is inside a camp, that NPC is then "assigned" to that camp.
When you select NPCs for a mission, all visible NPCs will be chooseable, in addition to those which are assigned to the camp, even if they are not currently visible ( maybe patrolling ? maybe sleeping? )
Also, you can talk to any NPC in a camp, and they will give you the mission list for that camp, and you can select missions that way.
When you contact an NPC by radio, if they are currently assigned to a camp, you can then administer the camp through them remotely.
Describe alternatives you've considered
Was going to add a radio tower and radio range , but I'll split that off into a seperate PR
Additional context
N/A