public void HandleRankChange(PostGamePopUpEvent_RankChange rankChangeEvent) { if (!rankChangeEvent.IsPositive) { return; } AddCommand(new ShowRewardPopupCommand($"Rank {RomanNumbers.RomanNumber(rankChangeEvent.NewRank)}!")); }
protected override void LoadDataInternal() { HeroData heroData = Main.GameState.CurrentHeroData; if (heroData != null) { ownerNameText.text = heroData.CharacterName + "'s"; tierText.text = "Tier " + RomanNumbers.RomanNumber(heroData.TeleportData.Tier); rankPointsText.text = heroData.RankPoints.ToString(); } else { ownerNameText.text = "Empty"; tierText.text = ""; rankPointsText.text = ""; } }
public override void LoadDataInternal() { ownerNameText.text = MainData.CurrentPlayerData.CharacterName + "'s"; tierText.text = "Tier " + RomanNumbers.RomanNumber(MainData.CurrentPlayerData.CurrentTeleportData.Tier); rankPointsText.text = MainData.CurrentPlayerData.RankPoints.ToString(); }
public override string NameTextString() { return("Rank " + RomanNumbers.RomanNumber(Levels.rp.Level((int)values.current))); }