Sheco / cdda-itembrowser

Cataclysm DDA: Item Browser
MIT License
25 stars 10 forks source link

TOOL_ARMOR isn't displayed in CLOTHING #11

Closed Nandorianen closed 8 years ago

Nandorianen commented 8 years ago

Some time ago new item type was added for activatable armor like mining helmets and scarves. I just noticed that the list of clothing does not get items from tool_armor.json. Can't think of a good reason not to, so I suggest changing that.

Sheco commented 8 years ago

That's interesting, I haven't played the game in a long time, hence the item browser can be a bit outdated in parts, your feedback is extremely invaluable.

About this, the clothing catalog is indexed based on the "covers" variable, currently only for items whose type is "ARMOR", I can see these items have a type of "TOOL_ARMOR".

This patch should achieve what you are looking for, please check it.

Nandorianen commented 8 years ago

Works as expected. Thanks! Nice to see you care. For a while it looked like you lost interest. Guess this place just needs more visitors?) Maybe making a sticky thread somewhere on the forums would bring more feedback if you are looking for it. Relatively few people go to github for this kind of thing.

Sheco commented 8 years ago

I just stopped playing, but I'm happy with the item browser and I can improve it as long as the ideas/suggestions keep coming and I have the time to work on this.

Nandorianen commented 8 years ago

Oh, I just noticed item properties screen also doesn't give any clothing info for TOOL_ARMOR type.

Sheco commented 8 years ago

Good catch, that's now fixed.

Nandorianen commented 8 years ago

It's whack-a-bug time! Now pages for clothing that doesn't cover anything won't load. Try colored belts or jewellery, you should get an error.

Nandorianen commented 8 years ago

And now it works. That was quick.

Sheco commented 8 years ago

Thank you for thorough testing, Nandorianen

Nandorianen commented 8 years ago

I feel like I am pestering you with constant requests. If I get on your nerves, just say the word.

Sheco commented 8 years ago

You're doing great, I'm taking a shot at the easiest issues, no need to worry.

Sheco commented 8 years ago

mm I kind of broke this, fixing #12, on commit c5e46c734dc536572614094031ee9ff0f4cd3cb6 ... I forgot about this feature.

I'll fix this later.