Files
aowow/template/listviews/petFoodCol.tpl.php
Sarjuuk da59440106 Fixup
* access class property in screenshot/comment-admin by function. Aowow is compatible with PHP 5.5 again
 * changed line-endings across the board from \r\n to \n
2017-02-24 18:45:36 +01: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++;
}
};