Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
AchievementAdvisorCard.cs
Go to the documentation of this file.
3
4namespace Terraria.UI;
5
7{
8 private const int _iconSize = 64;
9
10 private const int _iconSizeWithSpace = 66;
11
12 private const int _iconsPerRow = 8;
13
15
16 public float order;
17
19
20 public int achievementIndex;
21
23 {
24 this.achievement = achievement;
25 this.order = order;
27 frame = new Rectangle(achievementIndex % 8 * 66, achievementIndex / 8 * 66, 64, 64);
28 }
29
30 public bool IsAchievableInWorld()
31 {
32 return achievement.Name switch
33 {
34 "MASTERMIND" => WorldGen.crimson,
35 "WORM_FODDER" => !WorldGen.crimson,
36 "PLAY_ON_A_SPECIAL_SEED" => Main.specialSeedWorld,
37 _ => true,
38 };
39 }
40}
static AchievementManager Achievements
Definition Main.cs:2756
static bool specialSeedWorld
Definition Main.cs:2705
AchievementAdvisorCard(Achievement achievement, float order)
static bool crimson
Definition WorldGen.cs:932