Merchant
Mode1:
Bricks: +6
Mode2:
Gems: +4
Mode3:
Recruits: +5
Cost (B / G / R)
1 / 1 / 1
BB code
Effect
Mode1:
Bricks: +6
Mode2:
Gems: +4
Mode3:
Recruits: +5
Code
if ($t->mode() == 1) {
$t->myData()->addBricks(6);
}
elseif ($t->mode() == 2) {
$t->myData()->addGems(4);
}
elseif ($t->mode() == 3) {
$t->myData()->addRecruits(5);
}