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

◆ SetupTravelShop_AdjustSlotRarities()

static void Terraria.Chest.SetupTravelShop_AdjustSlotRarities ( int slotItemAttempts,
ref int[] rarity )
inlinestatic

Definition at line 1286 of file Chest.cs.

1287 {
1288 if (rarity[5] > 1 && slotItemAttempts > 4700)
1289 {
1290 rarity[5] = 1;
1291 }
1292 if (rarity[4] > 1 && slotItemAttempts > 4600)
1293 {
1294 rarity[4] = 1;
1295 }
1296 if (rarity[3] > 1 && slotItemAttempts > 4500)
1297 {
1298 rarity[3] = 1;
1299 }
1300 if (rarity[2] > 1 && slotItemAttempts > 4400)
1301 {
1302 rarity[2] = 1;
1303 }
1304 if (rarity[1] > 1 && slotItemAttempts > 4300)
1305 {
1306 rarity[1] = 1;
1307 }
1308 if (rarity[0] > 1 && slotItemAttempts > 4200)
1309 {
1310 rarity[0] = 1;
1311 }
1312 }

Referenced by Terraria.Chest.SetupTravelShop().

+ Here is the caller graph for this function: