TONPPAMF

The Official NPPAngband And NPPMoria Forum

You are not logged in.

Announcement

November 28, 2016 - NPPAngband forum has been migrated to a new host. SSL has been enabled so please use https:// if possible.

#1 2013-07-27 21:30:20

RunningAway
Member
Registered: 2012-02-27
Posts: 246

Stop magic shop from buying scrolls and potions

The magic shop never stocks potions and scrolls, so it shouldn't buy them.

store.c - store_will_buy()

in case STORE_MAGIC, delete lines 2268 and 2269:
    case TV_SCROLL:
    case TV_POTION:

Modify line 2144 to add the above TVs back for Moria.

As usual, line numbers may not be exact.

This is another hard-coded thing that annoys me.  The things the stores stock should be defined in shop_own.txt, but that's a big change.

Offline

#2 2013-10-23 20:26:46

RunningAway
Member
Registered: 2012-02-27
Posts: 246

Re: Stop magic shop from buying scrolls and potions

I have a patch for the magic shop in my objects branch.  store.c store_will_buy().  Preserves the original behavior in Moria mode.

A separate patch cleans up object_similar() and fixes the test for well-balanced items.  Compared o_ptr with o_ptr instead of j_ptr.

Offline

Board footer

Powered by FluxBB