Dailylimit property of $skill

ereinion

Member
I wrote this little snippet, printing the dailylimit-property of a few skills:
Code:
void print_skills() {
    foreach sk in $skills[incredible self-esteem, perfect freeze, Advanced Cocktailcrafting, Summon Confiscated Things, Advanced Saucecrafting, Pastamastery, Summon Crimbo Candy, Summon Smithsness] {
        print_html("<font color=0000FF>" + to_string(sk) + " - " + sk.dailylimit + "</font>");
    }
}
However, the results are a bit confusing to me:
Code:
    [COLOR=olive]> test.ash[/COLOR]

[color=#0000FF]Incredible      Self-Esteem - 0[/COLOR]
[color=#0000FF]Perfect Freeze - 0[/COLOR]
[color=#0000FF]Advanced      Cocktailcrafting - 0[/COLOR]
[color=#0000FF]Summon Confiscated      Things - 1[/COLOR]
[color=#0000FF]Advanced Saucecrafting - 0[/COLOR]
[color=#0000FF]Pastamastery      - 0[/COLOR]
[color=#0000FF]Summon Crimbo Candy - 0[/COLOR]
[color=#0000FF]Summon      Smithsness - 0[/COLOR]

Shouldn't the dailylimit be 1 for most of these? Or am I misunderstanding what the property is supposed to describe?
 

Darzil

Developer
I find the name a little confusing, but looking at the code, it appears to be the number of times the skill can currently be used, usually because of daily limits, but sometimes because of other limitations.
 
Top