mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Merge branch 'fix_invite_NPCs' into 'master'
Make npcs decline invites until we have a better recruitment system See merge request veloren/veloren!1358
This commit is contained in:
commit
7dab96a9cf
@ -554,10 +554,10 @@ impl<'a> System<'a> for Sys {
|
||||
}
|
||||
|
||||
// Process group invites
|
||||
for (_invite, alignment, agent, controller) in
|
||||
(&invites, &alignments, &mut agents, &mut controllers).join()
|
||||
for (_invite, /*alignment,*/ agent, controller) in
|
||||
(&invites, /*&alignments,*/ &mut agents, &mut controllers).join()
|
||||
{
|
||||
let accept = matches!(alignment, Alignment::Npc);
|
||||
let accept = false; // set back to "matches!(alignment, Alignment::Npc)" when we got better NPC recruitment mechanics
|
||||
if accept {
|
||||
// Clear agent comp
|
||||
*agent = Agent::default();
|
||||
|
Loading…
Reference in New Issue
Block a user