Skip to content

Commit

Permalink
Fix subject grade display
Browse files Browse the repository at this point in the history
  • Loading branch information
Rivixer committed Jun 12, 2023
1 parent b9c8937 commit f618835
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions WZIMopoly/GUI/GameScene/GUIMortgage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,8 @@ private void UpdateText()
}
else if (t is SubjectTileModel subject && subject.CanSellGrade(player))
{
var grade = subject.Grade;
SubjectGrade lowerGrade = grade - 1;
// TODO: Convert SubjectGrade to a number
var grade = subject.Grade.ConvertToString();
string lowerGrade = (subject.Grade - 1).ConvertToString();
var sellPrice = subject.SellGradePrice;
text = WZIMopoly.Language switch
{
Expand Down

0 comments on commit f618835

Please sign in to comment.