Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ SetupTravelShop_GetPainting()

static void Terraria.Chest.SetupTravelShop_GetPainting ( Player playerWithHighestLuck,
int[] rarity,
ref int it,
int minimumRarity = 0 )
inlinestatic

Definition at line 870 of file Chest.cs.

871 {
872 if (playerWithHighestLuck.RollLuck(rarity[3]) == 0 && !Main.dontStarveWorld)
873 {
874 it = 5121;
875 }
876 if (playerWithHighestLuck.RollLuck(rarity[3]) == 0 && !Main.dontStarveWorld)
877 {
878 it = 5122;
879 }
880 if (playerWithHighestLuck.RollLuck(rarity[3]) == 0 && !Main.dontStarveWorld)
881 {
882 it = 5124;
883 }
884 if (playerWithHighestLuck.RollLuck(rarity[3]) == 0 && !Main.dontStarveWorld)
885 {
886 it = 5123;
887 }
888 if (minimumRarity > 2)
889 {
890 return;
891 }
892 if (playerWithHighestLuck.RollLuck(rarity[2]) == 0 && Main.hardMode && NPC.downedMoonlord)
893 {
894 it = 3596;
895 }
896 if (playerWithHighestLuck.RollLuck(rarity[2]) == 0 && Main.hardMode && NPC.downedMartians)
897 {
898 it = 2865;
899 }
900 if (playerWithHighestLuck.RollLuck(rarity[2]) == 0 && Main.hardMode && NPC.downedMartians)
901 {
902 it = 2866;
903 }
904 if (playerWithHighestLuck.RollLuck(rarity[2]) == 0 && Main.hardMode && NPC.downedMartians)
905 {
906 it = 2867;
907 }
908 if (playerWithHighestLuck.RollLuck(rarity[2]) == 0 && NPC.downedFrost)
909 {
910 it = 3055;
911 }
912 if (playerWithHighestLuck.RollLuck(rarity[2]) == 0 && NPC.downedFrost)
913 {
914 it = 3056;
915 }
916 if (playerWithHighestLuck.RollLuck(rarity[2]) == 0 && NPC.downedFrost)
917 {
918 it = 3057;
919 }
920 if (playerWithHighestLuck.RollLuck(rarity[2]) == 0 && NPC.downedFrost)
921 {
922 it = 3058;
923 }
924 if (playerWithHighestLuck.RollLuck(rarity[2]) == 0 && NPC.downedFrost)
925 {
926 it = 3059;
927 }
928 if (playerWithHighestLuck.RollLuck(rarity[2]) == 0 && Main.hardMode && NPC.downedMoonlord)
929 {
930 it = 5243;
931 }
932 if (minimumRarity <= 1)
933 {
934 if (playerWithHighestLuck.RollLuck(rarity[1]) == 0 && Main.dontStarveWorld)
935 {
936 it = 5121;
937 }
938 if (playerWithHighestLuck.RollLuck(rarity[1]) == 0 && Main.dontStarveWorld)
939 {
940 it = 5122;
941 }
942 if (playerWithHighestLuck.RollLuck(rarity[1]) == 0 && Main.dontStarveWorld)
943 {
944 it = 5124;
945 }
946 if (playerWithHighestLuck.RollLuck(rarity[1]) == 0 && Main.dontStarveWorld)
947 {
948 it = 5123;
949 }
950 if (playerWithHighestLuck.RollLuck(rarity[1]) == 0)
951 {
952 it = 5225;
953 }
954 if (playerWithHighestLuck.RollLuck(rarity[1]) == 0)
955 {
956 it = 5229;
957 }
958 if (playerWithHighestLuck.RollLuck(rarity[1]) == 0)
959 {
960 it = 5232;
961 }
962 if (playerWithHighestLuck.RollLuck(rarity[1]) == 0)
963 {
964 it = 5389;
965 }
966 if (playerWithHighestLuck.RollLuck(rarity[1]) == 0)
967 {
968 it = 5233;
969 }
970 if (playerWithHighestLuck.RollLuck(rarity[1]) == 0)
971 {
972 it = 5241;
973 }
974 if (playerWithHighestLuck.RollLuck(rarity[1]) == 0)
975 {
976 it = 5244;
977 }
978 if (playerWithHighestLuck.RollLuck(rarity[1]) == 0)
979 {
980 it = 5242;
981 }
982 }
983 }

References Terraria.Main.dontStarveWorld, Terraria.NPC.downedFrost, Terraria.NPC.downedMartians, Terraria.NPC.downedMoonlord, and Terraria.Main.hardMode.

Referenced by Terraria.Chest.SetupTravelShop().