Have I found a bug?

The place to post your WML questions and answers.

Moderator: Forum Moderators

Forum rules
  • Please use [code] BBCode tags in your posts for embedding WML snippets.
  • To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Post Reply
User avatar
Atreides
Posts: 1055
Joined: March 30th, 2019, 10:38 pm
Location: On the 2nd story of the centre village of Merwuerdigliebe turning the lights on and off

Have I found a bug?

Post by Atreides »

So I've been noticing that a weapon special has different names for name and name_inactive (based on whether it is in a forest or not) but while the effect of the special (altering damage) quite obviously works (you can see the numbers change when you mouse over a forest) the name does not.

To wit: the inactive name does not appear in the side panel (under the weapon) for the unit, instead the active name appears. It does appear in the attack dialog and is correct there (that bug was fixed as I saw on github).

Bug?
User avatar
octalot
General Code Maintainer
Posts: 783
Joined: July 17th, 2010, 7:40 pm
Location: Austria

Re: Have I found a bug?

Post by octalot »

Which unit has this, please? While I could create one to reproduce it, it's much easier to use an existing one.
User avatar
Atreides
Posts: 1055
Joined: March 30th, 2019, 10:38 pm
Location: On the 2nd story of the centre village of Merwuerdigliebe turning the lights on and off

Re: Have I found a bug?

Post by Atreides »

octalot wrote: January 21st, 2022, 1:04 pm Which unit has this, please? While I could create one to reproduce it, it's much easier to use an existing one.
It's the "Tigran Soldier" (and level ups) from the Beyond Southern Hells era. The weapon special is for a two handed sword that needs space to swing.

P.S. I've also noticed some oddities with name_inactive= (that is the blank form meant to suppress the display but does not). I suspect something is amiss with this attribute under weapon specials... It works well under abilities it looks like though.
Post Reply