Reimplemented in Terraria.GameContent.UI.CustomCurrencySingleCoin.
Definition at line 65 of file CustomCurrencySystem.cs.
66 {
69 bool result = true;
70 while (num > 0)
71 {
73 for (
int i = 0;
i < 4;
i++)
74 {
76 {
78 {
80 {
84 {
86 }
87 else
88 {
91 }
93 }
94 }
95 }
97 }
98 if (num <= 0)
99 {
100 continue;
101 }
103 {
104 slotsEmpty.Sort(DelegateMethods.CompareYReverse);
107 {
109 for (
int k = 0;
k < 3;
k++)
110 {
112 {
114 {
116 {
119 {
121 }
123 {
125 }
127 {
129 }
131 {
133 }
135 {
138 }
144 break;
145 }
146 }
147 }
149 {
150 break;
151 }
153 }
154 for (
int l = 0;
l < 2;
l++)
155 {
157 {
158 continue;
159 }
161 {
163 {
166 {
168 }
170 {
172 }
174 {
176 }
178 {
180 }
182 {
185 }
191 break;
192 }
193 }
194 }
196 {
198 break;
199 }
200 }
201 slotsEmpty.Sort(DelegateMethods.CompareYReverse);
206 continue;
207 }
209 {
211 }
212 result = false;
213 break;
214 }
215 return result;
216 }
void Add(TKey key, TValue value)
References System.Collections.Generic.Dictionary< TKey, TValue >.Add(), Terraria.DelegateMethods.CompareYReverse(), System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.dictionary, System.item, System.L, System.list, and Microsoft.Xna.Framework.Graphics.Point.