Fair trade
Player(s) with lowest stock gains
Stock: +15
His opponent gains
Facilities: +1
Cost (B / G / R)
0 / 0 / 0
BB code
Effect
Player(s) with lowest stock gains
Stock: +15
His opponent gains
Facilities: +1
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()->addFacilities(1);
$t->hisData()->addStock(15);
}
if ($my_count <= $his_count) {
$t->hisData()->addFacilities(1);
$t->myData()->addStock(15);
}