void RenderInnovatorPopup(PopupMessageInnovation popup) { bool ourInnovation = Companies.IsRelatedToPlayer(Q, popup.companyId); var innovationBenefit = $"They will get {Balance.INNOVATION_BRAND_POWER_GAIN} Brand Power and " + $"{Format.Minify(popup.clientGain)} clients from their competitors"; RenderUniversalPopup( $"Company {GetCompanyName(popup.companyId)} is innovator!", Visuals.Colorize(innovationBenefit, ourInnovation), typeof(ClosePopupOK) ); }
void RenderInnovatorPopup(PopupMessageInnovation popup) { var company = Companies.Get(Q, popup.companyId); bool ourInnovation = Companies.IsDirectlyRelatedToPlayer(Q, company); bool isRevolution = popup.clientGain > 0; var brandGain = isRevolution ? C.REVOLUTION_BRAND_POWER_GAIN : C.INNOVATION_BRAND_POWER_GAIN; var innovationBenefit = $"They will get {brandGain} Brand Power"; if (isRevolution) { innovationBenefit += $" and {Format.Minify(popup.clientGain)} clients from their competitors"; } var innovationDescription = isRevolution ? "a REVOLUTION" : "an innovaton"; RenderUniversalPopup( $"Company {GetCompanyName(popup.companyId)} made {innovationDescription}!", Visuals.Colorize(innovationBenefit, ourInnovation), typeof(ClosePopupOK) ); }