1199 {
1200 float num = 1f;
1201 num += (float)npc.rarity;
1202 if (npc.rarity == 1)
1203 {
1204 num += 1f;
1205 }
1206 else if (npc.rarity == 2)
1207 {
1208 num += 1.5f;
1209 }
1210 else if (npc.rarity == 3)
1211 {
1212 num += 2f;
1213 }
1214 else if (npc.rarity == 4)
1215 {
1216 num += 2.5f;
1217 }
1218 else if (npc.rarity == 5)
1219 {
1220 num += 3f;
1221 }
1222 else if (npc.rarity > 0)
1223 {
1224 num += 3.5f;
1225 }
1226 if (npc.boss)
1227 {
1228 num += 0.5f;
1229 }
1230 int num2 = npc.damage + npc.defense + npc.lifeMax / 4;
1232 {
1233 num += 3.5f;
1234 }
1235 else if (
num2 > 5000)
1236 {
1237 num += 3f;
1238 }
1239 else if (
num2 > 1000)
1240 {
1241 num += 2.5f;
1242 }
1243 else if (
num2 > 500)
1244 {
1245 num += 2f;
1246 }
1247 else if (
num2 > 150)
1248 {
1249 num += 1.5f;
1250 }
1252 {
1253 num += 1f;
1254 }
1255 if (num > 5f)
1256 {
1257 num = 5f;
1258 }
1259 return (int)num;
1260 }