CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.32k stars 4.14k forks source link

Wrong layer-count shown on player-screen #9414

Closed namarrgon closed 9 years ago

namarrgon commented 10 years ago

The first numerical value of the "Encumbrance and Warmth" list on the Player-Screen (@) is, as far as I understand, supposed to show the number of layers on the respective body-part. Right now it shows some arbitrary value between 10 and 19. Tabbing into the list and scrolling it makes the values oscillate around these numbers and sometimes goes up to ~80:

2014-10-04-174921_207x146_scrot

Animated proof for scrolling: http://a.pomf.se/lbmcvs.webm

These two are from the tiles version, the curses version only shows a fixed value which is still nonsense but doesn't change. The curses build is considerably "faster" for me so the "oscillation" might be hidden by the redraw speed. Reloading a save yields different values on both, every time.

namarrgon commented 10 years ago

Just to clarify in case that my description wasn't clear, or the screen-shot wasn't sufficient, citation from the wiki (which might be outdated):

You can check how your equipped gear is encumbering (and warming) you on the Character Stats screen. Each body part will have a display: (U)V+W=X[Y], where

U - the number of layers equipped (should equal N in the formula above) V - the encumbrance from equipment (should equal E) W - the encumbrance from excess layers X - the total encumbrance (truncated version of T) Y - the warmth rating on this body part

http://www.wiki.cataclysmdda.com/index.php?title=Clothing The issue lies with the U-value specifically (and i don't mean the lack of a closing parenthesis). Adding/Removing layers of clothing or even stripping the character completely doesn't affect this number. So either:

KA101 commented 10 years ago

First paren/number there is likely an interface glitch-out, yeah.