mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
* those js snippets don't really care what namespace they are included in * .. why are they even php files...?
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++;
|
|
}
|
|
};
|