Fallout2_Restoration_Project icon indicating copy to clipboard operation
Fallout2_Restoration_Project copied to clipboard

wipe_inventory deletes certain items intended to remain in stock

Open phobos2077 opened this issue 1 year ago • 5 comments

What happened

I tried wipe_inventory=1 and it deleted the only instance of .223 Pistol available at New Reno arms dealer.

Some other observations:

  1. The wipe-related code is in upu.h, the list of quest items to keep is hard-coded and doesn't have RP quest items.
  2. It should be easier to extend quest items list. I guess you can define a macro for move_critical_items to "redirect" call to a different procedure with updated logic and different list, but maybe there's a better way.
  3. check_restock_item should call a procedure. I think we're well beyond the point where we need to care about call performance... But this will make compiled code smaller and decompiles easier to work with.

What you expected to happen

The pistol and other "unique" items like it must remain in stock regardless of wipe_inventory setting.

Screenshot

Savegame

phobos2077 avatar Jul 19 '24 09:07 phobos2077

I have a set of work-arounds for the .223 Pistol specifically in EcCo that I can port over to RPU later.

phobos2077 avatar Jul 19 '24 09:07 phobos2077

It's not a bug, as original has no wipe in the first place. I don't care so much about items, either. Probably can script one-off items with no restocking.

burner1024 avatar Jul 19 '24 15:07 burner1024

It's not a bug, as original has no wipe in the first place.

What? RPU has wipe so it is a bug now, so... Take a look at the PR.

phobos2077 avatar Jul 19 '24 18:07 phobos2077

RPU has wipe setting, which is not a bug.

burner1024 avatar Jul 20 '24 06:07 burner1024

RPU has wipe setting, which is not a bug.

Are you trolling now? RPU has wipe setting, which is deletes items that aren't meant to be deleted. This is a bug.

phobos2077 avatar Jul 20 '24 06:07 phobos2077

Two Russkies are now debating over an American franchise who's more "legit" in understanding it. xD

Wickez avatar Jul 22 '24 19:07 Wickez

I think what they actually were going for is make sure it's there the first time around. Probably can add a small chance to restock, too.

burner1024 avatar Jul 23 '24 09:07 burner1024

Two Russkies are now debating over an American franchise who's more "legit" in understanding it. xD

Feel free to add your non-Russkie expertise on this American franchise.

phobos2077 avatar Jul 23 '24 15:07 phobos2077