Terraria v1.4.4.9
Terraria 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 53154 of file Player.cs.

53155 {
53157 itemIdToDrop = 0;
53159 Item[] array = inventory;
53160 for (int i = 0; i < array.Length; i++)
53161 {
53163 }
53164 array = armor;
53165 for (int j = 0; j < array.Length; j++)
53166 {
53168 }
53169 array = bank.item;
53170 for (int k = 0; k < array.Length; k++)
53171 {
53173 }
53174 array = bank2.item;
53175 for (int l = 0; l < array.Length; l++)
53176 {
53178 }
53179 array = bank3.item;
53180 for (int m = 0; m < array.Length; m++)
53181 {
53183 }
53184 array = bank4.item;
53185 for (int n = 0; n < array.Length; n++)
53186 {
53188 }
53189 for (int num = 0; num < Loadouts.Length; num++)
53190 {
53191 array = Loadouts[num].Armor;
53192 for (int num2 = 0; num2 < array.Length; num2++)
53193 {
53195 }
53196 }
53197 if (list.Count == 0)
53198 {
53199 return false;
53200 }
53201 bool flag = false;
53202 if (Main.rand.NextDouble() < (double)totalChance)
53203 {
53204 flag = true;
53205 }
53207 if (flag)
53208 {
53209 itemIdToDrop = Main.rand.NextFromList(list.ToArray());
53210 return true;
53211 }
53212 return false;
53213 }
Item[] item
Definition Chest.cs:41
EquipmentLoadout[] Loadouts
Definition Player.cs:2721
void RemoveAnglerAccOptionsFromRewardPool(List< int > itemIdsOfAccsWeWant, Item itemToTestAgainst)
Definition Player.cs:53215
Item[] inventory
Definition Player.cs:1257

References System.array, Terraria.Chest.item, System.list, and Terraria.Main.rand.