DrugWars - building cost formulas revealed

in #drugwars6 years ago

After @emrebeyler published his base version of Python library to play DrugWars.io (Heisenberg) there is no step back, a lot of bots will be developed and run to harvest some STEEM from the pool before you. In that case the only way to win with them is to prepare better model of building buying schedule.

To know when and which building buy, you have to know what is their price and how it will change in the future.

The basics:

Resource production rate

production_rate * coeff * building_level * 60 * 60 * 24

Building resource cost:

e*(building_level+1*(building_level+1)*(2*(building_level+1)))/5
e is base resource cost: drugs_cost, weapons_cost, alcohols_cost

Instant upgrade cost in $

current_upgrade_cost_in_drug_resource / 10000

Instant upgrade cost in STEEM

Instant upgrade cost in $ / current STEEM price in USD 

Building base information needed for equations source

TypeScoreNamedrugs_costweapons_costalcohols_costproduction_ratecoeff
main6Headquarters4008006004
main31Training Facility250100012001.5
main78Operation Center250100025003
main100Pantheon5005005003
main15Research Center500175015003
drugs5Crack House1252502000.0021
drugs15Hydroponic Farm2500500075000.0053
drugs50Meth Lab450012000150000.013.5
drugs75Cocina1200025000300000.0256
drugs100Pharmaceutical Lab2500035000450000.0358
drugs50Drug Storage1000100010003
weapons5Ammunition Factory25005000.0041
weapons15Weapon Factory1750025000.0083
weapons50Smuggle3500050000.0153.5
weapons75Black Market75000120000.0256
weapons1003D Metal printing150000500000.058
weapons5Weapon Storage1000100010003
alcohols5Traditional Distillery25050000.0041
alcohols15Bar1750250000.0083
alcohols50Brewery3500500000.0153.5
alcohols75Castle75001200000.0256
alcohols100Industrial Distillery150005000000.058
alcohols5Alcohol Silo1000100010003

Base on that information you can quickly develop excel sheet on which you will prepare you future strategy

equation.jpeg

Predefined sets (you can skip this point)

If you don’t have time to do compose those equations and building information I have prepared some basic set of them up to level 20.

Conversion based on STEEM price 0,333257533

ScoreDrugsWeponsAlcoholProduction$STEEMLevelName
640080060000,040,1200272951Headquarters
127201440108000,0720,216049132
1816003200240000,160,4801091783
2428005600420000,280,8401910624
3043208640648000,4321,2962947815
36616012320924000,6161,8484203356
428320166401248000,8322,4965677267
4810800216001620001,083,2407369528
5413600272002040001,364,0809280139
6016720334402508001,6725,0171409110
6620160403203024002,0166,04937564311
7223920478403588002,3927,17763221212
7828000560004200002,88,40191061513
8432400648004860003,249,72221085514
9037120742405568003,71211,1385329315
9642160843206324004,21612,6508768416
10247520950407128004,75214,2592425917
108532001064007980005,3215,9636301718
114592001184008880005,9217,7640395919
120655201310409828006,55219,6604708420
312501000120000,0250,0750170591Training Facility
624501800216000,0450,1350307062
9310004000480000,10,3000682363
12417507000840000,1750,5251194134
1552700108001296000,270,8101842385
1863850154001848000,3851,155262716
2175200208002496000,521,5603548297
2486750270003240000,6752,0254605958
2798500340004080000,852,5505800089
31010450418005016001,0453,13571306910
34112600504006048001,263,78085977711
37214950598007176001,4954,48602013212
40317500700008400001,755,25119413513
43420250810009720002,0256,07638178414
465232009280011136002,326,96158308115
4962635010540012648002,6357,90679802616
5272970011880014256002,978,91202661717
5583325013300015960003,3259,97726885618
5893700014800017760003,711,1025247419
6204095016380019656004,09512,2877942820
782501000250000,0250,0750170591Operation Center
1564501800450000,0450,1350307062
234100040001000000,10,3000682363
312175070001750000,1750,5251194134
3902700108002700000,270,8101842385
4683850154003850000,3851,155262716
5465200208005200000,521,5603548297
6246750270006750000,6752,0254605958
7028500340008500000,852,5505800089
780104504180010450001,0453,13571306910
858126005040012600001,263,78085977711
936149505980014950001,4954,48602013212
1014175007000017500001,755,25119413513
1092202508100020250002,0256,07638178414
1170232009280023200002,326,96158308115
12482635010540026350002,6357,90679802616
13262970011880029700002,978,91202661717
14043325013300033250003,3259,97726885618
14823700014800037000003,711,1025247419
15604095016380040950004,09512,2877942820
10050050050000,050,1500341181Pantheon
20090090090000,090,2700614132
30020002000200000,20,6001364733
40035003500350000,351,0502388274
50054005400540000,541,6203684765
60077007700770000,772,3105254196
70010400104001040001,043,1207096577
80013500135001350001,354,050921198
90017000170001700001,75,1011600179
100020900209002090002,096,27142613810
110025200252002520002,527,56171955411
120029900299002990002,998,97204026412
130035000350003500003,510,5023882713
140040500405004050004,0512,1527635714
150046400464004640004,6413,9231661615
160052700527005270005,2715,8135960516
170059400594005940005,9417,8240532317
180066500665006650006,6519,9545377118
190074000740007400007,422,2050494819
200081900819008190008,1924,5755885520
155001750150000,050,1500341181Research Center
309003150270000,090,2700614132
4520007000600000,20,6001364733
603500122501050000,351,0502388274
755400189001620000,541,6203684765
907700269502310000,772,3105254196
10510400364003120001,043,1207096577
12013500472504050001,354,050921198
13517000595005100001,75,1011600179
15020900731506270002,096,27142613810
16525200882007560002,527,56171955411
180299001046508970002,998,97204026412
1953500012250010500003,510,5023882713
2104050014175012150004,0512,1527635714
2254640016240013920004,6413,9231661615
2405270018445015810005,2715,8135960516
2555940020790017820005,9417,8240532317
2706650023275019950006,6519,9545377118
2857400025900022200007,422,2050494819
3008190028665024570008,1924,5755885520
Drugs
ScoreDrugsWeponsAlcoholProduction$STEEMLevelName
5125250200172,80,01250,037508531Crack House
10225450360345,60,02250,0675153532
155001000800518,40,050,1500341183
2087517501400691,20,08750,2625597074
251350270021608640,1350,4050921195
301925385030801036,80,19250,5776313556
352600520041601209,60,260,7801774147
403375675054001382,40,33751,0127302978
454250850068001555,20,4251,2752900049
50522510450836017280,52251,56785653410
55630012600100801900,80,631,89042988811
60747514950119602073,60,74752,24301006612
65875017500140002246,40,8752,62559706713
701012520250162002419,21,01253,03819089214
7511600232001856025921,163,48079154115
801317526350210802764,81,31753,95339901316
851485029700237602937,61,4854,45601330917
901662533250266003110,41,66254,98863442818
951850037000296003283,21,855,55126237119
10020475409503276034562,04756,14389713820
1525005000750012960,250,7501705911Hydroponic Farm
30450090001350025920,451,3503070632
45100002000030000388813,0006823633
6017500350005250051841,755,2511941354
7527000540008100064802,78,1018423795
90385007700011550077763,8511,55262716
1055200010400015600090725,215,603548297
12067500135000202500103686,7520,254605958
13585000170000255000116648,525,505800089
1501045002090003135001296010,4531,3571306910
1651260002520003780001425612,637,8085977711
1801495002990004485001555214,9544,8602013212
1951750003500005250001684817,552,5119413513
2102025004050006075001814420,2560,7638178414
2252320004640006960001944023,269,6158308115
2402635005270007905002073626,3579,0679802616
2552970005940008910002203229,789,1202661717
2703325006650009975002332833,2599,7726885618
28537000074000011100002462437111,025247419
30040950081900012285002592040,95122,877942820
504500120001500030240,451,3503070631Meth Lab
1008100216002700060480,812,4305527142
15018000480006000090721,85,4012282533
2003150084000105000120963,159,4521494424
25048600129600162000151204,8614,583316285
30069300184800231000181446,9320,794728776
35093600249600312000211689,3628,086386917
4001215003240004050002419212,1536,458290718
4501530004080005100002721615,345,910440159
5001881005016006270003024018,8156,4428352410
5502268006048007560003326422,6868,0554759911
6002691007176008970003628826,9180,7483623812
65031500084000010500003931231,594,5214944213
70036450097200012150004233636,45109,374872114
750417600111360013920004536041,76125,308495515
800474300126480015810004838447,43142,322364516
850534600142560017820005140853,46160,416479117
900598500159600019950005443259,85179,590839418
950666000177600022200005745666,6199,845445419
1000737100196560024570006048073,71221,18029720
75120002500030000129601,23,6008188351Cocina
150216004500054000259202,166,4814739032
22548000100000120000388804,814,403275343
30084000175000210000518408,425,205731854
3751296002700003240006480012,9638,888843425
4501848003850004620007776018,4855,452610066
5252496005200006240009072024,9674,897031777
60032400067500081000010368032,497,222108558
675408000850000102000011664040,8122,42784049
7505016001045000125400012960050,16150,514227310
8256048001260000151200014256060,48181,481269311
9007176001495000179400015552071,76215,328966312
9758400001750000210000016848084252,057318513
10509720002025000243000018144097,2291,666325714
1125111360023200002784000194400111,36334,155987915
1200126480026350003162000207360126,48379,526305216
1275142560029700003564000220320142,56427,777277617
1350159600033250003990000233280159,6478,908905118
1425177600037000004440000246240177,6532,921187619
1500196560040950004914000259200196,56589,814125220
100250003500045000241922,57,5017059071Pharmaceutical Lab
200450006300081000483844,513,503070632
300100000140000180000725761030,006823633
4001750002450003150009676817,552,511941354
5002700003780004860001209602781,018423795
60038500053900069300014515238,5115,5262716
70052000072800093600016934452156,03548297
800675000945000121500019353667,5202,54605958
9008500001190000153000021772885255,05800089
1000104500014630001881000241920104,5313,571306910
1100126000017640002268000266112126378,085977711
1200149500020930002691000290304149,5448,602013212
1300175000024500003150000314496175525,119413513
1400202500028350003645000338688202,5607,638178414
1500232000032480004176000362880232696,158308115
1600263500036890004743000387072263,5790,679802616
1700297000041580005346000411264297891,202661717
1800332500046550005985000435456332,5997,726885618
19003700000518000066600004596483701110,25247419
2000409500057330007371000483840409,51228,77942820
5010001000100000,10,3000682361Drug Storage
10018001800180000,180,5401228252
15040004000400000,41,2002729453
20070007000700000,72,1004776544
25010800108001080001,083,2407369525
30015400154001540001,544,6210508396
35020800208002080002,086,2414193147
40027000270002700002,78,1018423798
45034000340003400003,410,202320039
50041800418004180004,1812,5428522810
55050400504005040005,0415,1234391111
60059800598005980005,9817,9440805312
6507000070000700000721,0047765413
70081000810008100008,124,3055271414
75092800928009280009,2827,8463323315
800105400105400105400010,5431,627192116
850118800118800118800011,8835,6481064717
900133000133000133000013,339,9090754218
950148000148000148000014,844,4100989719
1000163800163800163800016,3849,151177120
Weapons
ScoreDrugsWeponsAlcoholProduction$STEEMLevelName
52500500345,60,0250,0750170591Ammunition Factory
104500900691,20,0450,1350307062
151000020001036,80,10,3000682363
201750035001382,40,1750,5251194134
2527000540017280,270,8101842385
303850077002073,60,3851,155262716
3552000104002419,20,521,5603548297
4067500135002764,80,6752,0254605958
4585000170003110,40,852,5505800089
501045002090034561,0453,13571306910
55126000252003801,61,263,78085977711
60149500299004147,21,4954,48602013212
65175000350004492,81,755,25119413513
70202500405004838,42,0256,07638178414
752320004640051842,326,96158308115
80263500527005529,62,6357,90679802616
85297000594005875,22,978,91202661717
90332500665006220,83,3259,97726885618
95370000740006566,43,711,1025247419
1004095008190069124,09512,2877942820
151750025002073,60,1750,5251194131Weapon Factory
303150045004147,20,3150,9452149442
4570000100006220,80,72,1004776543
60122500175008294,41,2253,6758358944
7518900027000103681,895,6712896655
902695003850012441,62,6958,0868389676
1053640005200014515,23,6410,92248387
1204725006750016588,84,72514,178224168
1355950008500018662,45,9517,854060069
150731500104500207367,31521,9499914810
16588200012600022809,68,8226,4660184411
180104650014950024883,210,46531,4021409312
195122500017500026956,812,2536,7583589413
210141750020250029030,414,17542,5346724914
22516240002320003110416,2448,7310815715
240184450026350033177,618,44555,3475861816
255207900029700035251,220,7962,3841863217
270232750033250037324,823,27569,8408819918
285259000037000039398,425,977,7176731919
30028665004095004147228,66586,0145599320
5035000500045360,351,0502388271Smuggle
10063000900090720,631,8904298882
15014000020000136081,44,2009553083
20024500035000181442,457,3516717894
25037800054000226803,7811,342579335
30053900077000272165,3916,173677936
350728000104000317527,2821,84496767
400945000135000362889,4528,356448338
45011900001700004082411,935,708120129
50014630002090004536014,6343,8999829710
55017640002520004989617,6452,9320368811
60020930002990005443220,9362,8042818512
65024500003500005896824,573,5167178913
70028350004050006350428,3585,0693449814
75032480004640006804032,4897,4621631415
80036890005270007257636,89110,695172416
85041580005940007711241,58124,768372617
90046550006650008164846,55139,68176418
95051800007400008618451,8155,435346419
100057330008190009072057,33172,029119920
757500012000129600,752,2505117721Black Market
15013500021600259201,354,050921192
225300000480003888039,0020470883
30052500084000518405,2515,75358244
375810000129600648008,124,305527145
45011550001848007776011,5534,657881296
52515600002496009072015,646,810644867
600202500032400010368020,2560,763817848
675255000040800011664025,576,517400259
750313500050160012960031,3594,0713920710
825378000060480014256037,8113,425793311
900448500071760015552044,85134,58060412
975525000084000016848052,5157,53582413
1050607500097200018144060,75182,291453514
11256960000111360019440069,6208,847492415
12007905000126480020736079,05237,203940816
12758910000142560022032089,1267,360798517
13509975000159600023328099,75299,318065718
1425111000001776000246240111333,075742319
1500122850001965600259200122,85368,633828320
10015000050000345601,54,50102354413D Metal printing
20027000090000691202,78,1018423792
300600000200000103680618,004094183
400105000035000013824010,531,507164814
500162000054000017280016,248,611054285
600231000077000020736023,169,315762586
7003120000104000024192031,293,621289727
8004050000135000027648040,5121,52763578
9005100000170000031104051153,03480059
10006270000209000034560062,7188,142784110
11007560000252000038016075,6226,851586611
12008970000299000041472089,7269,161207912
1300105000003500000449280105315,071648113
1400121500004050000483840121,5364,582907114
1500139200004640000518400139,2417,694984915
1600158100005270000552960158,1474,407881516
1700178200005940000587520178,2534,72159717
1800199500006650000622080199,5598,636131418
1900222000007400000656640222666,151484519
2000245700008190000691200245,7737,267656520
510001000100000,10,3000682361Weapon Storage
1018001800180000,180,5401228252
1540004000400000,41,2002729453
2070007000700000,72,1004776544
2510800108001080001,083,2407369525
3015400154001540001,544,6210508396
3520800208002080002,086,2414193147
4027000270002700002,78,1018423798
4534000340003400003,410,202320039
5041800418004180004,1812,5428522810
5550400504005040005,0415,1234391111
6059800598005980005,9817,9440805312
657000070000700000721,0047765413
7081000810008100008,124,3055271414
7592800928009280009,2827,8463323315
80105400105400105400010,5431,627192116
85118800118800118800011,8835,6481064717
90133000133000133000013,339,9090754218
95148000148000148000014,844,4100989719
100163800163800163800016,3849,151177120
Alcohols
ScoreDrugsWeponsAlcoholProduction$STEEMLevelName
52505000345,60,0250,0750170591Traditional Distillery
104509000691,20,0450,1350307062
151000200001036,80,10,3000682363
201750350001382,40,1750,5251194134
2527005400017280,270,8101842385
303850770002073,60,3851,155262716
3552001040002419,20,521,5603548297
4067501350002764,80,6752,0254605958
4585001700003110,40,852,5505800089
501045020900034561,0453,13571306910
55126002520003801,61,263,78085977711
60149502990004147,21,4954,48602013212
65175003500004492,81,755,25119413513
70202504050004838,42,0256,07638178414
752320046400051842,326,96158308115
80263505270005529,62,6357,90679802616
85297005940005875,22,978,91202661717
90332506650006220,83,3259,97726885618
95370007400006566,43,711,1025247419
1004095081900069124,09512,2877942820
151750250002073,60,1750,5251194131Bar
303150450004147,20,3150,9452149442
4570001000006220,80,72,1004776543
60122501750008294,41,2253,6758358944
7518900270000103681,895,6712896655
902695038500012441,62,6958,0868389676
1053640052000014515,23,6410,92248387
1204725067500016588,84,72514,178224168
1355950085000018662,45,9517,854060069
150731501045000207367,31521,9499914810
16588200126000022809,68,8226,4660184411
180104650149500024883,210,46531,4021409312
195122500175000026956,812,2536,7583589413
210141750202500029030,414,17542,5346724914
22516240023200003110416,2448,7310815715
240184450263500033177,618,44555,3475861816
255207900297000035251,220,7962,3841863217
270232750332500037324,823,27569,8408819918
285259000370000039398,425,977,7176731919
30028665040950004147228,66586,0145599320
5035005000045360,351,0502388271Brewery
10063009000090720,631,8904298882
15014000200000136081,44,2009553083
20024500350000181442,457,3516717894
25037800540000226803,7811,342579335
30053900770000272165,3916,173677936
350728001040000317527,2821,84496767
400945001350000362889,4528,356448338
45011900017000004082411,935,708120129
50014630020900004536014,6343,8999829710
55017640025200004989617,6452,9320368811
60020930029900005443220,9362,8042818512
65024500035000005896824,573,5167178913
70028350040500006350428,3585,0693449814
75032480046400006804032,4897,4621631415
80036890052700007257636,89110,695172416
85041580059400007711241,58124,768372617
90046550066500008164846,55139,68176418
95051800074000008618451,8155,435346419
100057330081900009072057,33172,029119920
757500120000129600,752,2505117721Castle
15013500216000259201,354,050921192
225300004800003888039,0020470883
30052500840000518405,2515,75358244
375810001296000648008,124,305527145
45011550018480007776011,5534,657881296
52515600024960009072015,646,810644867
600202500324000010368020,2560,763817848
675255000408000011664025,576,517400259
750313500501600012960031,3594,0713920710
825378000604800014256037,8113,425793311
900448500717600015552044,85134,58060412
975525000840000016848052,5157,53582413
1050607500972000018144060,75182,291453514
11256960001113600019440069,6208,847492415
12007905001264800020736079,05237,203940816
12758910001425600022032089,1267,360798517
13509975001596000023328099,75299,318065718
1425111000017760000246240111333,075742319
1500122850019656000259200122,85368,633828320
10015000500000345601,54,5010235441Industrial Distillery
20027000900000691202,78,1018423792
300600002000000103680618,004094183
400105000350000013824010,531,507164814
500162000540000017280016,248,611054285
600231000770000020736023,169,315762586
7003120001040000024192031,293,621289727
8004050001350000027648040,5121,52763578
9005100001700000031104051153,03480059
10006270002090000034560062,7188,142784110
11007560002520000038016075,6226,851586611
12008970002990000041472089,7269,161207912
1300105000035000000449280105315,071648113
1400121500040500000483840121,5364,582907114
1500139200046400000518400139,2417,694984915
1600158100052700000552960158,1474,407881516
1700178200059400000587520178,2534,72159717
1800199500066500000622080199,5598,636131418
1900222000074000000656640222666,151484519
2000245700081900000691200245,7737,267656520
510001000100000,10,3000682361Alcohol Silo
1018001800180000,180,5401228252
1540004000400000,41,2002729453
2070007000700000,72,1004776544
2510800108001080001,083,2407369525
3015400154001540001,544,6210508396
3520800208002080002,086,2414193147
4027000270002700002,78,1018423798
4534000340003400003,410,202320039
5041800418004180004,1812,5428522810
5550400504005040005,0415,1234391111
6059800598005980005,9817,9440805312
657000070000700000721,0047765413
7081000810008100008,124,3055271414
7592800928009280009,2827,8463323315
80105400105400105400010,5431,627192116
85118800118800118800011,8835,6481064717
90133000133000133000013,339,9090754218
95148000148000148000014,844,4100989719
100163800163800163800016,3849,151177120

Disclaimer

The game is development phase and everything can change in its logic so this data can become outdated any time.

Bonus

If you still haven’t join the game please consider doing it using my reference link which will give me a %5 bonus on your earnings. It won’t affect income on your account.

Sort:  

Congratulations @properfraction! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You published more than 10 posts. Your next target is to reach 20 posts.

Click here to view your Board
If you no longer want to receive notifications, reply to this comment with the word STOP

To support your work, I also upvoted your post!

Do not miss the last post from @steemitboard:

Valentine challenge - Love is in the air!

Support SteemitBoard's project! Vote for its witness and get one more award!