Skip to content

Commit

Permalink
Update bounty_manager.wss
Browse files Browse the repository at this point in the history
  • Loading branch information
Aelto committed May 2, 2023
1 parent ff433d3 commit 7cb0823
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/bounty/bounty_manager.wss
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ statemachine class RER_BountyManager extends CEntity {
);

this.displayMarkersForCurrentBounty();
this.displayOnelinersForCurrentBounty();
}

public function endBounty() {
Expand Down Expand Up @@ -289,6 +290,7 @@ statemachine class RER_BountyManager extends CEntity {
this.master.storages.bounty.save();

this.displayMarkersForCurrentBounty();
this.displayOnelinersForCurrentBounty();
}

public function displayOnelinersForCurrentBounty() {
Expand All @@ -301,7 +303,7 @@ statemachine class RER_BountyManager extends CEntity {
return;
}

if (theGame.GetInGameConfigWrapper().GetVarValue('RERoptionalFeatures', 'RERonelinersBountyMainTarget')) {
if (!theGame.GetInGameConfigWrapper().GetVarValue('RERoptionalFeatures', 'RERonelinersBountyMainTarget')) {
return;
}

Expand Down Expand Up @@ -499,6 +501,7 @@ statemachine class RER_BountyManager extends CEntity {
this.master.storages.bounty.save();

this.displayMarkersForCurrentBounty();
this.displayOnelinersForCurrentBounty();

thePlayer.DisplayHudMessage(GetLocStringByKeyExt("rer_bounty_side_target_killed"));
}
Expand Down Expand Up @@ -683,6 +686,7 @@ state Processing in RER_BountyManager {
// we also call it instantly to handle cases where the player teleported near
// a group that was picked but not spawned yet
parent.displayMarkersForCurrentBounty();
parent.displayOnelinersForCurrentBounty();

while (true) {
// no active bounty, do nothing
Expand Down

0 comments on commit 7cb0823

Please sign in to comment.