Feature - Implemented sugar counters

I have to assume this has been requested at some point previously, and got rejected, because they've been around for so long, and I don't see a counter for them anywhere I've looked.

Any reason they aren't tracked?
 

Bale

Minion
Actually, they are tracked in preferences, I'd suggest you use this alias if you want to check them from the CLI:

Code:
alias sug => ashq record{int it;string n;}[int]sc;int ind=0;for i from 4178 to 4183{sc[ind].it=i;sc[ind].n=get_property("sugarCounter"+i);ind+=1;}sc[ind].it=4191;sc[ind].n=get_property("sugarCounter4191");sort sc by value.n.to_int();foreach num,rec in sc{if(rec.n>0)print(rec.it.to_item()+": "+rec.n);}
 

slyz

Developer
I was going to post that alias, but Bale beat me to it. Just to expand a little further: the counters are stored in the "sugarCounter<item number>" properties. The alias simply does this:
Code:
> sug

sugar chapeau: 2
sugar shield: 2
sugar shirt: 2
 
Top