Here is my understanding of what we know about this item.
- The skill is once per day. Like every other skill of that sort, ascending allows you to cast it again. Therefore, a simple "_" setting suffices to track whether you can currently cast it. This is done.
- The skill gives a chat effect for the next thing you type in chat. If you cast it, ascend, and cast it again, it stacks and affects the next two things you type. Presumably you could chain casual ascensions and get even more stackings. That qualifies as a "stunt"...
- ... because the counter s reset at rollover.
Given the above, I see no reason whatsoever to track the count of how many times the chat effect will activate. I cannot imagine that anybody will ever cast this without knowing exactly what they want to say to activate the effect - and if they ascend between castings, I am quite sure that they know which two things they want to say. And if they want to pull a stunt with multiple casual ascensions, again, it will all be planned and they do not need KoLmafia to track it.
- The item appears in the Swagger Shop if and only if you have never bought it before. A tiny number of people managed to buy two, before that was fixed. We do not need to put in special code to support that; I am sure that the item no longer appears in the Swagger Shop for them.
- I assume - but we will not know for another 50 days - that it will appear in the shop, whether or not it is a pirate season, until you buy it. It will still require you to have earned swagger during a "pirate season" in order to purchase it, but if you earn 1,000 this season and then spend them all on something else and then earn another 1,000 next (non-pirate) season, I expect the item is still unlocked for you; you will still have earned 1,000 swagger "during a pirate season".
Given the above, we can tell that you have already purchased the item in several ways:
- it is in inventory, closet, or storage (or your display case, but that takes a server hit to check)
- you have the skill (although presumably you don't see it on avatar paths)
- the item is not in the Swagger shop.
Given the above, I guess the way I want the Swagger Shop to work in the Coinmasters frame is this:
- If the item is available for purchase, show it.
- If you don't have enough swagger to buy it, grey it out (just like all other unaffordable items in Coinmasters)
- If you have not unlocked it by getting 1,000 pirateSwagger (detectable when we visit), grey it out.
I suppose we could have a setting - blackBartsBooty - which is true or false depending on whether you've bought the item. Visiting the Swagger Shop and seeing if it is on offer would definitively answer that, but purchasing the item - or using it, or seeing the skill in your known skills - could also let us definitively set that setting.
To be honest, I'm not sure it's worth it; right now, we always show the item and I am sure that if you try to buy it, we detect that it didn't work and leave your swagger balance untouched. Seems mostly cosmetic - and prevents a server hit if you intentionally try to buy the item a second time, even though you certainly know you already did it once.
- The skill is once per day. Like every other skill of that sort, ascending allows you to cast it again. Therefore, a simple "_" setting suffices to track whether you can currently cast it. This is done.
- The skill gives a chat effect for the next thing you type in chat. If you cast it, ascend, and cast it again, it stacks and affects the next two things you type. Presumably you could chain casual ascensions and get even more stackings. That qualifies as a "stunt"...
- ... because the counter s reset at rollover.
Given the above, I see no reason whatsoever to track the count of how many times the chat effect will activate. I cannot imagine that anybody will ever cast this without knowing exactly what they want to say to activate the effect - and if they ascend between castings, I am quite sure that they know which two things they want to say. And if they want to pull a stunt with multiple casual ascensions, again, it will all be planned and they do not need KoLmafia to track it.
- The item appears in the Swagger Shop if and only if you have never bought it before. A tiny number of people managed to buy two, before that was fixed. We do not need to put in special code to support that; I am sure that the item no longer appears in the Swagger Shop for them.
- I assume - but we will not know for another 50 days - that it will appear in the shop, whether or not it is a pirate season, until you buy it. It will still require you to have earned swagger during a "pirate season" in order to purchase it, but if you earn 1,000 this season and then spend them all on something else and then earn another 1,000 next (non-pirate) season, I expect the item is still unlocked for you; you will still have earned 1,000 swagger "during a pirate season".
Given the above, we can tell that you have already purchased the item in several ways:
- it is in inventory, closet, or storage (or your display case, but that takes a server hit to check)
- you have the skill (although presumably you don't see it on avatar paths)
- the item is not in the Swagger shop.
Given the above, I guess the way I want the Swagger Shop to work in the Coinmasters frame is this:
- If the item is available for purchase, show it.
- If you don't have enough swagger to buy it, grey it out (just like all other unaffordable items in Coinmasters)
- If you have not unlocked it by getting 1,000 pirateSwagger (detectable when we visit), grey it out.
I suppose we could have a setting - blackBartsBooty - which is true or false depending on whether you've bought the item. Visiting the Swagger Shop and seeing if it is on offer would definitively answer that, but purchasing the item - or using it, or seeing the skill in your known skills - could also let us definitively set that setting.
To be honest, I'm not sure it's worth it; right now, we always show the item and I am sure that if you try to buy it, we detect that it didn't work and leave your swagger balance untouched. Seems mostly cosmetic - and prevents a server hit if you intentionally try to buy the item a second time, even though you certainly know you already did it once.