#208 closed defect (released)
equipmentslot limit issues
Reported by: | Henri | Owned by: | ibboard |
---|---|---|---|
Priority: | minor | Milestone: | WarFoundry 0.1 |
Component: | WarFoundry-GUI-WinForms | Version: | Unknown or N/A |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Referring to the following post:http://forums.hiveworldterra.co.uk/viewtopic.php?f=41&t=1342#p9153
A certain combination of the new eqipmentslot limits, in this case core:unitSizeLimit doesn't seem quite to work as I'd expect. Now this could very well be due to syntax issues when it comes to using the XML tags.
Now it won't exactly allow to take -100% equipment, however it is what the unit window is suggesting, it will simply delete the equipment in question, as it should as it is "zero" equipment.
I have enclosed an screenshot of the -100%, and the datafile and system where it crops up. It is in the Ork Boyz unit, for the Shoota option, which is a replacement for a Slugga (technically Choppa&Slugga)
Attachments (4)
Change History (21)
Changed 10 years ago by
Attachment: | Image1.jpg added |
---|
Changed 10 years ago by
Attachment: | wh40k - Copy.system added |
---|
Changed 10 years ago by
comment:1 Changed 10 years ago by
There is somewhere that I do some maths, so something must be going wrong with it and rather than doing the expected "10 - 0" it is doing "0 - 10" and getting -10. I'll run in debug mode and see what I can find.
comment:2 Changed 10 years ago by
Additionally this. Since it is technically about equipmentslots and is in the same files I'll reuse this ticket.
A Ork Dreadnaught can have 4 "arms". 2 will always be CCW which can be extended to 4. Now the weapons work OK, I can only add up to 2 of any combination. However the Dread CCW option won't allow me to add "arms". Even though its a 2-4 limit (or so I think), also trying to edit the 2 Dread CCW option when other weapons are chosen tries to change the 2 Dread CCW option to 1 or 0. Which it shouldn't. It seems almost to read the 2 pre-existing arms twice?
comment:3 Changed 10 years ago by
There's no crash, so no debug, but I put a screenshot of the the messages it gives.
comment:4 Changed 10 years ago by
Owner: | set to ibboard |
---|---|
Status: | new → accepted |
Working on it now and trying to find the best solution. It looks like I've used "get existing equipment in slot" here but "get existing equipment in slot excluding this item" for percentage calculation.
comment:5 Changed 10 years ago by
comment:6 Changed 10 years ago by
r383 fixes part of it. However it allows each option to be taken up to 4 times, it seems the equipmentslot maxLimit is not enforced. 4 in total among all equipment tagged as "heavyWeapons".
comment:7 Changed 10 years ago by
comment:8 Changed 10 years ago by
comment:9 Changed 10 years ago by
(In r386) Re #208: equipment slot issues
- Consolidate some code in to one line
- Make min/max percentage methods get the min/max of the calculated percentage and the percentage based on the numeric limit to ensure percentage is never greater than or less than (as appropriate) the numeric limit
Also:
- Remove Math.Min and Math.Max calls from Min/Max equipment count methods - we're assuming min < max in the percentages, so assume it here as well
comment:10 Changed 10 years ago by
comment:11 Changed 10 years ago by
Deff Dread situation appears to be fixed, but Ork Boyz are still broken.
r383 also seems to have highlighted a bug when editing an item in a slot, but that's another ticket (the list of items in the slot loses the edited item, so it thinks that it can take the full compliment again).
comment:12 Changed 10 years ago by
Problem with the Ork Boyz has been found - they shouldn't be using slots for the slugga/choppa. Slots are optional and are meant for situations like the heavy weapons where you want more fine-grained control than the "can/can't take it" of exclusivity groups. The default constructor should check the limits, though.
comment:13 Changed 10 years ago by
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
comment:14 Changed 10 years ago by
comment:15 Changed 10 years ago by
comment:17 Changed 10 years ago by
Resolution: | fixed → released |
---|
Mark fix as released under a previous version
-100% !!!