Package: omega-rpg
Version: 1:0.90-pa9-14
Severity: normal

Bashing a positively enchanted object may decrease its plus by 1.
However, doing so to an item in use does not update the effect of the
item on the player.  For example, if the player currently wears a ring
of strength +10, and bashes it once, it will become a ring of strength
+9, but the player's strength will not go down.  At that point, taking
off the ring will only decrease the player's strength by 9, leaving 1
point of strength enhancement independent of the ring.  The same thing
works with boots of agility, rings or cloaks of protection, or any
form of armor.

I think the fix involves bracketing the change with turning the use of
the item off and back on, without printing messages.  For instance,
from the enchant function, which *does* correctly handle enchanting an
item in use:

[...]
        used = (Player.possessions[i]->used);
        if (used) {
          setgamestatus(SUPPRESS_PRINTING);
          Player.possessions[i]->used = FALSE;
          item_use(Player.possessions[i]);
          resetgamestatus(SUPPRESS_PRINTING);
        }
        /* [ insert code to decrease plus due to bashing here ] */
        if (used) {
          setgamestatus(SUPPRESS_PRINTING);
          Player.possessions[i]->used = TRUE;
          item_use(Player.possessions[i]);      
          resetgamestatus(SUPPRESS_PRINTING);
        }
[...]

- Josh Triplett

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages omega-rpg depends on:
ii  libc6                     2.7-9          GNU C Library: Shared libraries
ii  libncurses5               5.6+20080203-1 Shared libraries for terminal hand

omega-rpg recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to