private void run_npc(NpcData data) { if (data.AdjustRates(exp_f, sp_f, ref exp_count, ref sp_count)) { npc_mgr.HasChanges = true; } // if (adena_f == 1f) { return; } // bool has_changes = false; List <NpcDropGroup> items = data.GetDropGroups(); if (items == null) { return; } // int c = items.Count; for (int i = 0; i < c; i++) { if (items[i].AdjustRates(adena_f, true, true, ref adena_count)) { has_changes = true; } } // if (has_changes) { data.SetDropGroups(items); npc_mgr.HasChanges = true; } }