(define "generic_v"
    {charge %c}
    {score %sc}
    {icon %i}
    {tags "%t"}
    {group "%g"}
    {button "%b"}
    {cw %cw}
    {cp %cp}
)
; Helicopter with pilots
(define "h"
    ("generic_v" c(%c) sc(%sc) t(%t %s) g(%g) i(%i) b(%b) cw(%cw) cp(%cp))
    {content "* ( mp/%s/pilot:%n )"}
)
; vehicle with tankmans
(define "v"
    ("generic_v" c(%c) sc(%sc) t(%t %s) g(%g) i(%i) b(%b) cw(%cw) cp(%cp))
    {content "* ( mp/%s/tankman:%n )"}
)
; vehicle with supporters
(define "vs"
    ("generic_v" c(%c) sc(%sc) t(%t %s) g(%g) i(%i) b(%b) cw(%cw) cp(%cp))
    {content "* ( mp/%s/vehicle_supporter:%n )"}
)
; vehicle with miners
(define "vap"
    ("generic_v" c(%c) sc(%sc) t(%t %s) g(%g) i(%i) b(%b) cw(%cw) cp(%cp))
    {content "* ( mp/%s/antitank_miner:%n )"}
)
; vehicle with engineers
(define "ve"
    ("generic_v" c(%c) sc(%sc) t(%t %s) g(%g) i(%i) b(%b) cw(%cw) cp(%cp))
    {content "* ( mp/%s/engineer:%n )"}
)
; vehicle with smg & support units
(define "vs+"
    ("generic_v" c(%c) sc(%sc) t(%t %s) g(%g) i(%i) b(%b) cw(%cw) cp(%cp))
    {content "* ( mp/%s/vehicle_supporter:%n ) mp/%s/smgs:%m"}
)
; vehicle with tankmans & support units
(define "v+"
    ("generic_v" c(%c) sc(%sc) t(%t %s) g(%g) i(%i) b(%b) cw(%cw) cp(%cp))
    {content "* ( mp/%s/tankman:%n ) mp/%s/vehicle_supporter:%m"}
)
; vehicle with tankmans & amount limit
(define "va"
    ("generic_v" c(%c) sc(%sc) t(%t %s) g(%g) i(%i) b(%b) cw(%cw) cp(%cp))
    {content "* ( mp/%s/tankman:%n )"}
)
; APC with supporters
(define "vb"
    ("generic_v" c(%c) sc(%sc) t(%t %s) g(%g) i(%i) b(%b) cw(%cw) cp(%cp))
    {content "* ( mp/%s/tankman:1 mp/%s/vehicle_supporter:%n)"}
)

(define "how"
	{"%name(%side)"
   		{charge %c}
    	{score %sc}
    	{icon %i}
 		{charge %c}
		{content "%c1 ( mp/%side/vehicle_supporter:2 ) %c2 ( mp/%side/vehicle_supporter:2 )"}
		{tags "all cannon heavy_art fixed %side %t"}
		{group "%g"}
		{button "%b"}
		{cost %cost}
		{fore %f}
		{info %c2}
	}
)

;fore - это доступность юнита для первой покупки. 
;если форе 1 - сразу
;если форе 0 - то через c
;если форе 0.5 - то через с\2
;если форе -1 - то через 2*с

;------------------------------------------------------------------------------
;===============================AUTO===========================================
{"uaz2"           ("vs" c(60) t(all moto vehicle use_charge) s(rus) n(3) g(vh_2)   sc(8) a(1) b(auto) i(1) cw(0) cp(0)) {cost 0} {fore 1}}
{"ural375"        ("vs" c(60) t(all moto vehicle use_charge) s(rus) n(2) g(vh_sup2)  sc(4) a(1) b(auto) i(2) cw(0) cp(0)) {cost 0} {fore 1}}
{"uaz_car"           ("vap" c(60) t(all moto vehicle use_charge) s(rus) n(5) g(vh_sup)   sc(6) a(1) b(auto) i(3) cw(0) cp(0)) {cost 0} {fore 0}}
{"ural_eng"          ("ve" c(60) t(all vehicle use_charge) s(rus) n(2) g(engi)  sc(8) a(1) b(auto) i(4) cw(0) cp(0)) {cost 25} {fore 1}}
{"ural_art"          ("vs" c(60) t(all vehicle use_charge) s(rus) n(2) g(vh_sup1)   sc(8) a(1) b(auto) i(5) cw(0) cp(0)) {cost 20} {fore 1}}

{"m939"        ("vs" c(60) t(all moto vehicle use_charge) s(usa) n(2) g(vh_sup2)  sc(4) a(1) b(auto) i(1) cw(0) cp(0)) {cost 15} {fore 1}}
{"hmmwv"           ("vs" c(65) t(all moto vehicle use_charge) s(usa) n(5) g(vh_2)   sc(9) a(1) b(auto) i(2) cw(0) cp(0)) {cost 25} {fore 1}}
{"hmmwv_tow"           ("vs" c(100) t(all moto vehicle use_charge) s(usa) n(5) g(vh_3)   sc(16) a(1) b(auto) i(3) cw(0) cp(0)) {cost 0} {fore 1}}



;================================Cannons============================================

{"degtyarev_stan"   ("vs" c(15) t(all stan fixed) s(rus) n(2) g(vh_cn1)    sc(7) a(3) b(vh_cn) i(1) cw(2) cp(0)) {cost 15} {fore 1}}
{"kpvt"             ("vs" c(90) t(all stan fixed) s(rus) n(2) g(vh_cn2)    sc(10) a(2) b(vh_cn) i(2) cw(3) cp(0)) {cost 25} {fore 1}}

{"bm37"             ("vs" c(220) t(all mortar fixed) s(rus) n(2) g(vh_cn3) sc(17) a(3) b(vh_cn) i(3) cw(2) cp(0)) {cost 45} {fore 1}}
{"ags30_stan"       ("vs" c(240) t(all mortar fixed) s(rus) n(2) g(vh_cn3) sc(18) a(3) b(vh_cn) i(4) cw(2) cp(0)) {cost 35} {fore 1}}
{"ptur_konkurs"       ("vs" c(200) t(all mortar fixed) s(rus) n(2) g(vh_cn3) sc(16) a(3) b(vh_cn) i(5) cw(2) cp(0)) {cost 30} {fore 1}}

{"ptur_tow"       ("vs" c(180) t(all mortar fixed) s(usa) n(2) g(vh_cn3) sc(16) a(3) b(vh_cn) i(1) cw(2) cp(0)) {cost 30} {fore 1}}

;==============================PVO===================================================

{"zu23-2"       ("vs" c(100) t(all cannon fixed) s(rus) n(2) g(vh_cn4) sc(14) a(2) b(pvo) i(1) cw(3) cp(0)) {cost 32} {fore 1}}
{"ural375_zu"   ("vs" c(120) t(all cannon vehicle) s(rus) n(4) g(vh_cn5) sc(18) a(3) b(pvo) i(2) cw(2) cp(0)) {cost 45} {fore 1}}
{"Shilka"            ("v" c(200) t(all afv vehicle) s(rus) n(4) g(l3) sc(24) b(pvo) i(3) cw(0) cp(0)) {cost 60} {fore -1}}
{"brdm2_strela"        ("vs" c(220) t(all moto vehicle use_charge) s(rus) n(2) g(pvo1)  sc(20) a(2) b(pvo) i(4) cw(0) cp(0)) {cost 70} {fore -1}}

{"m1097_avenger"        ("vs" c(200) t(all moto vehicle use_charge) s(usa) n(3) g(pvo1)  sc(20) a(2) b(pvo) i(1) cw(0) cp(0)) {cost 70} {fore 1}}

;=============================Artilerry====================================================
{"mtlb"     ("vs" c(90) t(alter) s(rus) n(2) g(vh_cn4) sc(10) a(2) b(vh_cn) i(17) cw(3) cp(0)) {cost 0} {fore 1}}

{"d30"     ("vs" c(60) t(alter) s(rus) n(2) g(vh_cn) sc(30) a(1) b(vh_cn) i(7) cw(5) cp(0)) {cost 0} {fore 1}}


("how" side(rus) name(how_mtlb) c(120) c1(mtlb) c2(d30) t(all cannon heavy_art fixed how_mtlb) g(vh_cn) sc(30) a(1) b(asu) i(1) cw(0) cost(0) f(1))

{"2c9"             ("v" c(200) t(all art vehicle use_charge) s(rus) n(4) g(12)   sc(40) b(asu) i(2) cw(0) cp(10)) {cost 0} {fore 1}}
{"ural_grad"       ("vs" c(300) t(all heavy_art vehicle) s(rus) n(2) g(art) sc(50) b(asu) i(3) m(4) cw(0) cp(0)) {cost 18} {fore 1}}
{"msta"            ("v" c(300) t(all heavy_art tankh vehicle) s(rus) n(4) g(art)  sc(70) b(asu) i(4) cw(0) cp(0)) {cost 18} {fore 1}}

{"m-270"       ("v" c(250) t(all heavy_art vehicle) s(usa) n(3) g(art) sc(55) b(asu) i(1) m(4) cw(0) cp(0)) {cost 18} {fore 1}}

;===============================Air==============================================================

{"Apache"            ("h" c(200) t(all helcp vehicle) s(usa) n(2) g(air1)  sc(60) b(asu) i(1) cw(0) cp(0)) {cost 1} {fore 1}}

{"ka50"            ("h" c(200) t(all helcp vehicle) s(rus) n(1) g(air1)  sc(60) b(asu) i(6) cw(0) cp(0)) {cost 18} {fore 1}}
{"mi17"            ("h" c(190) t(all helcp vehicle) s(rus) n(2) g(air1)  sc(55) b(asu) i(5) cw(0) cp(0)) {cost 16} {fore 1}}

;==============================BTRS================================================

{"brdm2"             ("vs" c(100) t(all moto vehicle use_charge) s(rus) n(2) g(l1)   sc(9) a(2) b(lt) i(1) cw(0) cp(0)) {cost 3} {fore 1}}
{"btr80"             ("vs" c(120) t(all moto vehicle use_charge) s(rus) n(3) g(l1)   sc(13) a(2) b(lt) i(2) cw(0) cp(0)) {cost 4} {fore 1}}
{"brdm2_atgm"        ("vs" c(160) t(all moto vehicle use_charge) s(rus) n(2) g(l2)  sc(20) a(2) b(lt) i(3) cw(0) cp(0)) {cost 6} {fore 1}}

{"m113"            ("vs+" c(140) t(all tankm vehicle btr) s(usa) n(2) m(10) g(l2) sc(12) b(lt) i(1) cw(0) cp(10)) {cost 45} {fore 1}} 
{"lav25"          ("vs" c(150) t(all tankm vehicle btr) s(usa) n(4) g(l1) sc(30) b(lt) i(3) cw(0) cp(0)) {cost 5} {fore 1}} 
{"bredly"          ("vs" c(160) t(all tankm vehicle btr) s(usa) n(3) g(l1) sc(35) b(lt) i(4) cw(0) cp(0)) {cost 6} {fore 1}} 
{"m163"            ("vs" c(120) t(all tankm vehicle btr) s(usa) n(3) g(lt) sc(25) b(lt) i(5) cw(0) cp(0)) {cost 6} {fore 1}} 

;=========================================Medium tanks===================================================================

{"bmd1"            ("v" c(140) t(all tankm vehicle btr) s(rus) n(3) g(m1)  sc(20) b(lt) i(5) cw(0) cp(0)) {cost 5} {fore 1}}
{"bmd1p"            ("v" c(200) t(all tankm vehicle btr) s(rus) n(4) g(m1)  sc(24) b(lt) i(6) cw(0) cp(0)) {cost 5} {fore 1}}
{"bmp1"            ("v" c(90) t(all tankm vehicle btr) s(rus) n(3) g(m2) 	sc(18) b(lt) i(7) cw(0) cp(0)) {cost 5} {fore 1}} 
{"bmp2"            ("v" c(100) t(all tankm vehicle btr) s(rus) n(4) g(m0) 	sc(24) b(lt) i(8) cw(0) cp(0)) {cost 6} {fore 1}} 
{"bmp2d"            ("v" c(100) t(all tankm vehicle btr) s(rus) n(4) g(m0) 	sc(28) b(lt) i(9) cw(0) cp(0)) {cost 6} {fore 1}} 
{"bmp3"              ("v" c(140) t(all tankm vehicle btr) s(rus) n(3) g(h0)  sc(32) b(lt) i(10) m(2) cw(0) cp(0)) {cost 75} {fore -2}}

{"m1128"            ("v" c(100) t(all tankm vehicle btr) s(usa) n(4) g(m0) 	sc(24) b(lt) i(0) cw(0) cp(0)) {cost 6} {fore 1}} 
;========================================Tanks===============================================================

{"t62"            ("v" c(140) t(all tankh vehicle) s(rus) n(4) g(m3)  sc(45) b(ht) i(1) m(2) cw(0) cp(0)) {cost 9} {fore 1}} 	
{"t64"            ("v" c(160) t(all tankh vehicle) s(rus) n(3) g(m4)  sc(55) b(ht) i(2) m(2) cw(0) cp(0)) {cost 1} {fore 1}} 	
{"t72a"           ("v" c(220) t(all tankh vehicle) s(rus) n(3) g(h1)  sc(60) b(ht) i(3) m(2) cw(0) cp(0)) {cost 140} {fore 1}} 	
{"t72b"           ("v" c(280) t(all tankh vehicle) s(rus) n(3) g(h2)  sc(100) b(ht) i(4) m(4) cw(0) cp(0)) {cost 170} {fore 1}} 
{"t80y"           ("v" c(320) t(all tankh vehicle) s(rus) n(3) g(h2)  sc(120) b(ht) i(5) m(4) cw(0) cp(0)) {cost 190} {fore 1}} 	

{"m60a3"           ("v" c(150) t(all tankh vehicle) s(usa) n(4) g(m2)   sc(60) b(ht) i(1) m(2) cw(0) cp(0)) {cost 100} {fore 1}}
{"m1_abrams"       ("v" c(190) t(all tankh vehicle) s(usa) n(5) g(h1)   sc(70) b(ht) i(2) m(2) cw(0) cp(0)) {cost 120} {fore 1}}
{"m1a1"            ("v" c(240) t(all tankh vehicle) s(usa) n(3) g(h2)   sc(80) b(ht) i(3) m(2) cw(0) cp(0)) {cost 155} {fore 1}}
{"m1a2tusk"            ("v" c(290) t(all tankh vehicle) s(usa) n(5) g(h2)   sc(90) b(ht) i(4) m(2) cw(0) cp(0)) {cost 0} {fore 1}}

