added keyword phandcount - player hand count

added keyword ohandcount - opponent hand count
This commit is contained in:
anthonycalosa@gmail.com
2013-01-16 12:08:46 +00:00
parent a26f872ff3
commit 5f90d1ee9f

View File

@@ -340,10 +340,18 @@ private:
{
intValue = target->kicked;
}
else if (s == "handsize")
{
intValue = target->controller()->handsize;
}
else if (s == "handsize")
{
intValue = target->controller()->handsize;
}
else if (s == "phandcount")
{
intValue = target->controller()->game->hand->nb_cards;
}
else if (s == "ohandcount")
{
intValue = target->controller()->opponent()->game->hand->nb_cards;
}
else
{
intValue = atoi(s.c_str());