Luxury tax
            
            Players lose N% of each resource
N is relative tower height
           
          
          
          
          
          
            Cost (B / G / R)
            0 / 0 / 0
           
          
          
          
          
          
          
          
          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));