debug give allow overloaded weight

This commit is contained in:
2025-03-19 17:08:06 -05:00
parent 783b19e429
commit cb73d5d7f6

View File

@@ -2033,10 +2033,10 @@ void debug_give_item() {
if(i == -1) return;
bool was_ident = univ.scenario.scen_items[i].ident;
univ.scenario.scen_items[i].ident = true;
bool given = univ.current_pc().give_item(univ.scenario.scen_items[i], true);
bool given = univ.current_pc().give_item(univ.scenario.scen_items[i], GIVE_DO_PRINT | GIVE_ALLOW_OVERLOAD);
if(!given){
ASB("Debug: can't give to " + univ.current_pc().name);
given = univ.party.give_item(univ.scenario.scen_items[i], true);
given = univ.party.give_item(univ.scenario.scen_items[i], GIVE_DO_PRINT | GIVE_ALLOW_OVERLOAD);
}
if(!given)
ASB("Debug: can't give anyone " + univ.scenario.scen_items[i].full_name);