Prosperity
If Stock < Enemy stock
Stock: +12
else
Stock: +6
Enemy stock: +6
Cost (B / G / R)
0 / 0 / 0
BB code
Effect
If Stock < Enemy stock
Stock: +12
else
Stock: +6
Enemy stock: +6
Code
$my_count = $t->myData()->Bricks + $t->myData()->Gems + $t->myData()->Recruits;
$his_count = $t->hisData()->Bricks + $t->hisData()->Gems + $t->hisData()->Recruits;
if ($my_count < $his_count) {
$t->myData()->addStock(12);
}
else {
$t->myData()->addStock(6);
$t->hisData()->addStock(6);
}