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

◆ DropAnglerAccByMissing()

bool Terraria.Player.DropAnglerAccByMissing ( List< int > itemIdsOfAccsWeWant,
float totalChance,
out bool botheredRollingForADrop,
out int itemIdToDrop )
inline

Definition at line 57534 of file Player.cs.

57535 {
57537 itemIdToDrop = 0;
57539 Item[] array = inventory;
57540 for (int i = 0; i < array.Length; i++)
57541 {
57543 }
57544 array = armor;
57545 for (int j = 0; j < array.Length; j++)
57546 {
57548 }
57549 array = bank.item;
57550 for (int k = 0; k < array.Length; k++)
57551 {
57553 }
57554 array = bank2.item;
57555 for (int l = 0; l < array.Length; l++)
57556 {
57558 }
57559 array = bank3.item;
57560 for (int m = 0; m < array.Length; m++)
57561 {
57563 }
57564 array = bank4.item;
57565 for (int n = 0; n < array.Length; n++)
57566 {
57568 }
57569 for (int num = 0; num < Loadouts.Length; num++)
57570 {
57571 array = Loadouts[num].Armor;
57572 for (int num2 = 0; num2 < array.Length; num2++)
57573 {
57575 }
57576 }
57577 if (list.Count == 0)
57578 {
57579 return false;
57580 }
57581 bool flag = false;
57582 if (Main.rand.NextDouble() < (double)totalChance)
57583 {
57584 flag = true;
57585 }
57587 if (flag)
57588 {
57589 itemIdToDrop = Main.rand.NextFromList(list.ToArray());
57590 return true;
57591 }
57592 return false;
57593 }
Item[] item
The items this chest contains. F:Terraria.Chest.maxItems elements long.
Definition Chest.cs:93
Item[] armor
The player's armor and accessories. Indexes 0-2 hold head, chest, and legs armor while 10-12 hold the...
Definition Player.cs:1651
EquipmentLoadout[] Loadouts
Definition Player.cs:3281
void RemoveAnglerAccOptionsFromRewardPool(List< int > itemIdsOfAccsWeWant, Item itemToTestAgainst)
Definition Player.cs:57595
Item[] inventory
The player's normal inventory. Indexes 0-9 hold the hotbar items, 10-49 the rest of the main inventor...
Definition Player.cs:1767

References Terraria.EquipmentLoadout.Armor, Terraria.Player.armor, Terraria.Player.bank, Terraria.Player.bank2, Terraria.Player.bank3, Terraria.Player.bank4, Terraria.Player.inventory, Terraria.Chest.item, Terraria.Player.Loadouts, Terraria.Main.rand, and Terraria.Player.RemoveAnglerAccOptionsFromRewardPool().

Referenced by Terraria.Player.GetAnglerReward_MainReward().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: