Skip to content

Commit

Permalink
Fix #3: Percentage in 'guest and rating' parks
Browse files Browse the repository at this point in the history
  • Loading branch information
Sadret committed Jul 14, 2021
1 parent a7a3323 commit ef71ed3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions soft-guest-cap-calculator.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var prepareNotify = function(forceNotify) {

var notify = function(wording, sgc) {
var text = "soft guest cap " + wording + " " + sgc;
if (scenario.objective.type === "guestsBy")
if (scenario.objective.type === "guestsBy" || scenario.objective.type === "guestsAndRating")
text += " (" + Math.floor(100 * sgc / scenario.objective.guests) + "%)";
park.postMessage({
type: "blank",
Expand Down Expand Up @@ -92,7 +92,7 @@ var openWindow = function() {

registerPlugin({
name: "soft guest cap calculator",
version: "2.0.0",
version: "2.0.1",
authors: ["Sadret", "Mar-Koeh"],
type: "local",
licence: "GPL-3.0",
Expand Down

0 comments on commit ef71ed3

Please sign in to comment.