Author Topic: Inventory stats bug  (Read 4278 times)

Offline g5-freemen

  • Captain
  • ***
  • Posts: 75
    • View Profile
Inventory stats bug
« on: April 14, 2016, 10:29:34 pm »
There is a small bug - soldier have 100 p.strenght, but in inventory it looks like 10 (zero is cropped)

Offline Countdown

  • Colonel
  • ****
  • Posts: 246
    • View Profile
Re: Inventory stats bug
« Reply #1 on: April 15, 2016, 01:55:19 am »
I'm pretty sure it's because the word for p.strength makes the string longer than optimal and it pushes it too far. On my computer in English part of the zero is cut off, but it's still clear that it's 100 and not 10.

You could do a string replacement and abbreviate p.strength to be something shorter.

Looks like the appropriate string is "STR_PSIONIC_STRENGTH_SHORT"

I haven't tested this, but I think it would go:

Code: [Select]
- type: ru
  strings:
    STR_PSIONIC_STRENGTH_SHORT: "P.S>{ALT}{0}"
« Last Edit: April 15, 2016, 01:59:48 am by Countdown »

Offline g5-freemen

  • Captain
  • ***
  • Posts: 75
    • View Profile
Re: Inventory stats bug
« Reply #2 on: April 15, 2016, 08:16:13 am »
I'm pretty sure it's because the word for p.strength makes the string longer than optimal and it pushes it too far. On my computer in English part of the zero is cut off, but it's still clear that it's 100 and not 10.

You could do a string replacement and abbreviate p.strength to be something shorter.

Looks like the appropriate string is "STR_PSIONIC_STRENGTH_SHORT"

I haven't tested this, but I think it would go:

Code: [Select]
- type: ru
  strings:
    STR_PSIONIC_STRENGTH_SHORT: "P.S>{ALT}{0}"
replace
  STR_PSIONIC_STRENGTH_SHORT: "П.Cила>{ALT}{0}"
with
  STR_PSIONIC_STRENGTH_SHORT: "П.Cила{ALT}{0}"
works, but look like "P.S100", not very beautiful

Offline SupSuper

  • Lazy Developer
  • Administrator
  • Commander
  • *****
  • Posts: 2162
    • View Profile
Re: Inventory stats bug
« Reply #3 on: April 16, 2016, 12:22:20 am »
Fixed.

Offline g5-freemen

  • Captain
  • ***
  • Posts: 75
    • View Profile
Re: Inventory stats bug
« Reply #4 on: April 16, 2016, 10:12:08 pm »