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

Support all raid quests in co-op #381

Merged
merged 3 commits into from
Aug 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions DragaliaAPI.Photon.Plugin/GluonPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ public override void OnLeave(ILeaveGameCallInfo info)
)
{
this.logger.InfoFormat(
"Viewer ID {0} left game {1}",
"Actor {0} with viewer ID {1} left game {2}",
info.ActorNr,
viewerId,
this.PluginHost.GameId
);
Expand Down Expand Up @@ -426,8 +427,6 @@ private void OnActorReady(IRaiseEventCallInfo info)

if (this.actorState.All(x => x.Value.Ready))
{
this.logger.Info("All clients were ready, raising StartQuest");

this.RaiseEvent(Event.StartQuest, new Dictionary<string, string> { });

this.roomState.StartActorCount = this.PluginHost.GameActors.Count;
Expand Down Expand Up @@ -649,7 +648,7 @@ private void RaisePartyEvent()
/// <param name="roomId">The new room ID.</param>
private void SetRoomId(ICallInfo info, int roomId)
{
this.logger.DebugFormat("Setting room ID to {0}", roomId);
this.logger.InfoFormat("Setting room ID to {0}", roomId);

this.PluginHost.SetProperties(
0,
Expand Down Expand Up @@ -678,7 +677,7 @@ private void SetRoomId(ICallInfo info, int roomId)
/// <param name="visible">The new visibility.</param>
private void SetRoomVisibility(ICallInfo info, bool visible)
{
this.logger.DebugFormat("Setting room visibility to {0}", visible);
this.logger.InfoFormat("Setting room visibility to {0}", visible);

this.PostStateManagerRequest(
VisibleEndpoint,
Expand Down Expand Up @@ -751,9 +750,10 @@ private Dictionary<int, int> GetMemberCountTable()
{
if (
this.PluginHost.GameProperties.TryGetInt(GamePropertyKeys.QuestId, out int questId)
&& QuestHelper.GetDungeonType(questId) == DungeonTypes.Raid
&& QuestHelper.GetIsRaid(questId)
)
{
logger.InfoFormat("GetMemberCountTable: Quest {0} is a raid", questId);
// Everyone uses all of their units in a raid
return this.PluginHost.GameActors.ToDictionary(
x => x.ActorNr,
Expand Down
Loading
Loading