Files
aowow/template/listviews/petFoodCol.tpl.php
Sarjuuk e29d1e69fe Template/Fixup
* those js snippets don't really care what namespace they are included in
 * .. why are they even php files...?
2025-04-01 23:18:24 +02:00

18 lines
332 B
PHP

var _ = function(family)
{
family.foodCount = 0;
for (var food in g_pet_foods)
{
if( family.diet & food)
family.foodCount++;
}
family.spellCount = 0;
for (var i = 0, len = family.spells.length; i < len; ++i)
{
if (family.spells[i])
family.spellCount++;
}
};