MArcomage

Free multiplayer on-line fantasy card game

Please log in


0 U
Luxury tax
Luxury tax

Players lose N% of each resource
N is relative tower height

Id
282
Name
Luxury tax
Rarity
Uncommon
Keywords
Cost (B / G / R)
0 / 0 / 0
Modes
0
Level
10
Created
1. May, 2006
Modified
24. Jan, 2011
Played
615 / 5668
Discarded
258 / 2515
Drawn
1007 / 9159

BB code

Effect

Players lose N% of each resource
N is relative tower height

Code

    $my_ratio = $t->myData()->Tower / $t->config('max_tower');
    $t->myData()
      ->addBricks(-round($t->myData()->Bricks * $my_ratio))
      ->addGems(-round($t->myData()->Gems * $my_ratio))
      ->addRecruits(-round($t->myData()->Recruits * $my_ratio));
    $his_ratio = $t->hisData()->Tower / $t->config('max_tower');
    $t->hisData()
      ->addBricks(-round($t->hisData()->Bricks * $his_ratio))
      ->addGems(-round($t->hisData()->Gems * $his_ratio))
      ->addRecruits(-round($t->hisData()->Recruits * $his_ratio));