mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
* 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
18 lines
332 B
PHP
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++;
|
|
}
|
|
};
|