xrexis / procurement

Automatically exported from code.google.com/p/procurement
0 stars 0 forks source link

Added forum template keywords for gems #253

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi! first of all, thank you for this great app! it is awesome :)

While i was doing some maintenance to my shop thread i wanted to split gems by 
level but i could't find any support for this, so i decided to dig into the 
code and add the functionality :)

The keywords are self explanatory
{LeveledGems} = same effect
{Level1Gems} = only level 1 gems
{Level2Gems} = only level 2 gems
{Level3Gems} = only level 3 gems
...
...
{Level20Gems} = only level 20 gems
{Level21+Gems} = level 21 and above

I hope this gets implemented in the official release :)

Original issue reported on code.google.com by j.a.jaco...@gmail.com on 20 May 2014 at 7:01

Attachments:

GoogleCodeExporter commented 9 years ago
Hi there,

Thanks for the support and code submission. This is a nice addition that I'm 
sure a lot of people will use.

Having looked at your changes, I'm going to add Level as a property to the Gem 
class. That way in Applicable() we can just go:

return gem.Level == this.Level;

Lastly, note that I am slowly moving away from google code and to github due to 
google removing downloads from googlecode, so github will now always have the 
most up to date code (plus you can send me pull requests!)

Original comment by stickymaddness on 25 May 2014 at 9:48