Skip to content

Commit 037c08c

Browse files
committed
Update for b3725
1 parent 7b94638 commit 037c08c

2 files changed

Lines changed: 41 additions & 41 deletions

File tree

YimResupplier/YimResupplier.lua

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -412,17 +412,17 @@ if GetBuildNumber() == TAGET_BUILD then
412412
CFG.save("cashUpdgrade2", cashUpdgrade2)
413413
end
414414
if cashUpdgrade1 then
415-
cashOffset1 = globals.get_int(262145 + 17326)
415+
cashOffset1 = globals.get_int(262145 + 17415)
416416
else
417417
cashOffset1 = 0
418418
end
419419
if cashUpdgrade2 then
420-
cashOffset2 = globals.get_int(262145 + 17332)
420+
cashOffset2 = globals.get_int(262145 + 17421)
421421
else
422422
cashOffset2 = 0
423423
end
424424
local cashProduct = stats.get_int("MPX_PRODTOTALFORFACTORY0")
425-
cashTotal = ((globals.get_int(262145 + 17320) + cashOffset1 + cashOffset2) * cashProduct)
425+
cashTotal = ((globals.get_int(262145 + 17409) + cashOffset1 + cashOffset2) * cashProduct)
426426
ImGui.Text("Product:"); ImGui.SameLine(); ImGui.Dummy(5, 1); ImGui.SameLine(); ImGui.ProgressBar(
427427
(cashProduct / 40), 160, 25, tostring(cashProduct) .. " Boxes (" ..
428428
tostring(math.floor(cashProduct * 2.5)) .. "%)")
@@ -441,17 +441,17 @@ if GetBuildNumber() == TAGET_BUILD then
441441
CFG.save("cokeUpdgrade2", cokeUpdgrade2)
442442
end
443443
if cokeUpdgrade1 then
444-
cokeOffset1 = globals.get_int(262145 + 17327)
444+
cokeOffset1 = globals.get_int(262145 + 17416)
445445
else
446446
cokeOffset1 = 0
447447
end
448448
if cokeUpdgrade2 then
449-
cokeOffset2 = globals.get_int(262145 + 17333)
449+
cokeOffset2 = globals.get_int(262145 + 17422)
450450
else
451451
cokeOffset2 = 0
452452
end
453453
local cokeProduct = stats.get_int("MPX_PRODTOTALFORFACTORY1")
454-
cokeTotal = ((globals.get_int(262145 + 17321) + cokeOffset1 + cokeOffset2) * cokeProduct)
454+
cokeTotal = ((globals.get_int(262145 + 17410) + cokeOffset1 + cokeOffset2) * cokeProduct)
455455
ImGui.Text("Product:"); ImGui.SameLine(); ImGui.Dummy(5, 1); ImGui.SameLine(); ImGui.ProgressBar(
456456
(cokeProduct / 10), 160, 25, tostring(cokeProduct) .. " Kilos (" .. tostring(cokeProduct * 10) .. "%)")
457457
ImGui.SameLine(); ImGui.Dummy(10, 1); ImGui.SameLine(); ImGui.Text("Value:")
@@ -470,17 +470,17 @@ if GetBuildNumber() == TAGET_BUILD then
470470
CFG.save("methUpdgrade2", methUpdgrade2)
471471
end
472472
if methUpdgrade1 then
473-
methOffset1 = globals.get_int(262145 + 17328)
473+
methOffset1 = globals.get_int(262145 + 17417)
474474
else
475475
methOffset1 = 0
476476
end
477477
if methUpdgrade2 then
478-
methOffset2 = globals.get_int(262145 + 17334)
478+
methOffset2 = globals.get_int(262145 + 17423)
479479
else
480480
methOffset2 = 0
481481
end
482482
local methProduct = stats.get_int("MPX_PRODTOTALFORFACTORY2")
483-
methTotal = ((globals.get_int(262145 + 17322) + methOffset1 + methOffset2) * methProduct)
483+
methTotal = ((globals.get_int(262145 + 17411) + methOffset1 + methOffset2) * methProduct)
484484
ImGui.Text("Product:"); ImGui.SameLine(); ImGui.Dummy(5, 1); ImGui.SameLine(); ImGui.ProgressBar(
485485
(methProduct / 20), 160, 25, tostring(methProduct) .. " Pounds (" .. tostring(methProduct * 5) .. "%)")
486486
ImGui.SameLine(); ImGui.Dummy(10, 1); ImGui.SameLine(); ImGui.Text("Value:"); ImGui.SameLine()
@@ -499,17 +499,17 @@ if GetBuildNumber() == TAGET_BUILD then
499499
CFG.save("weedUpdgrade2", weedUpdgrade2)
500500
end
501501
if weedUpdgrade1 then
502-
weedOffset1 = globals.get_int(262145 + 17329)
502+
weedOffset1 = globals.get_int(262145 + 17418)
503503
else
504504
weedOffset1 = 0
505505
end
506506
if weedUpdgrade2 then
507-
weedOffset2 = globals.get_int(262145 + 17335)
507+
weedOffset2 = globals.get_int(262145 + 17424)
508508
else
509509
weedOffset2 = 0
510510
end
511511
local weedProduct = stats.get_int("MPX_PRODTOTALFORFACTORY3")
512-
weedTotal = ((globals.get_int(262145 + 17323) + weedOffset1 + weedOffset2) * weedProduct)
512+
weedTotal = ((globals.get_int(262145 + 17412) + weedOffset1 + weedOffset2) * weedProduct)
513513
ImGui.Text("Product:"); ImGui.SameLine(); ImGui.Dummy(5, 1); ImGui.SameLine(); ImGui.ProgressBar(
514514
(weedProduct / 80), 160, 25,
515515
tostring(weedProduct) .. " Pounds (" .. tostring(math.floor(weedProduct / 8 * 10)) .. "%)")
@@ -529,17 +529,17 @@ if GetBuildNumber() == TAGET_BUILD then
529529
CFG.save("fdUpdgrade2", fdUpdgrade2)
530530
end
531531
if fdUpdgrade1 then
532-
fdOffset1 = globals.get_int(262145 + 17325)
532+
fdOffset1 = globals.get_int(262145 + 17414)
533533
else
534534
fdOffset1 = 0
535535
end
536536
if fdUpdgrade2 then
537-
fdOffset2 = globals.get_int(262145 + 17331)
537+
fdOffset2 = globals.get_int(262145 + 17420)
538538
else
539539
fdOffset2 = 0
540540
end
541541
local fdProduct = stats.get_int("MPX_PRODTOTALFORFACTORY4")
542-
fdTotal = ((globals.get_int(262145 + 17319) + fdOffset1 + fdOffset2) * fdProduct)
542+
fdTotal = ((globals.get_int(262145 + 17408) + fdOffset1 + fdOffset2) * fdProduct)
543543
ImGui.Text("Product:"); ImGui.SameLine(); ImGui.Dummy(5, 1); ImGui.SameLine(); ImGui.ProgressBar(
544544
(fdProduct / 60), 160, 25, tostring(fdProduct) .. " Boxes (" .. tostring(math.floor(fdProduct / 6 * 10)) ..
545545
"%)")
@@ -558,17 +558,17 @@ if GetBuildNumber() == TAGET_BUILD then
558558
CFG.save("bunkerUpdgrade2", bunkerUpdgrade2)
559559
end
560560
if bunkerUpdgrade1 then
561-
bunkerOffset1 = globals.get_int(262145 + 21256)
561+
bunkerOffset1 = globals.get_int(262145 + 21345)
562562
else
563563
bunkerOffset1 = 0
564564
end
565565
if bunkerUpdgrade2 then
566-
bunkerOffset2 = globals.get_int(262145 + 21255)
566+
bunkerOffset2 = globals.get_int(262145 + 21344)
567567
else
568568
bunkerOffset2 = 0
569569
end
570570
local bunkerProduct = stats.get_int("MPX_PRODTOTALFORFACTORY5")
571-
bunkerTotal = ((globals.get_int(262145 + 21254) + bunkerOffset1 + bunkerOffset2) * bunkerProduct)
571+
bunkerTotal = ((globals.get_int(262145 + 21343) + bunkerOffset1 + bunkerOffset2) * bunkerProduct)
572572
ImGui.Text("Product:"); ImGui.SameLine(); ImGui.Dummy(5, 1); ImGui.SameLine(); ImGui.ProgressBar(
573573
(bunkerProduct / 100), 160, 25, tostring(bunkerProduct) .. " Crates (" .. tostring(bunkerProduct) .. "%)")
574574
ImGui.SameLine(); ImGui.Dummy(10, 1); ImGui.SameLine(); ImGui.Text("Value:"); ImGui.SameLine(); ImGui.Text(
@@ -582,12 +582,12 @@ if GetBuildNumber() == TAGET_BUILD then
582582
CFG.save("acidUpdgrade", acidUpdgrade)
583583
end
584584
if acidUpdgrade then
585-
acidOffset = globals.get_int(262145 + 17330)
585+
acidOffset = globals.get_int(262145 + 17419)
586586
else
587587
acidOffset = 0
588588
end
589589
local acidProduct = stats.get_int("MPX_PRODTOTALFORFACTORY6")
590-
acidTotal = ((globals.get_int(262145 + 17324) + acidOffset) * acidProduct)
590+
acidTotal = ((globals.get_int(262145 + 17413) + acidOffset) * acidProduct)
591591
ImGui.Text("Product:"); ImGui.SameLine(); ImGui.Dummy(5, 1); ImGui.SameLine(); ImGui.ProgressBar(
592592
(acidProduct / 100), 160, 25,
593593
tostring(acidProduct) .. " Sheets (" .. tostring(math.floor(acidProduct / 16 * 10)) .. "%)")

YimResupplier/includes/yr_utils.lua

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -62,67 +62,67 @@ function getCEOvalue_G(crates)
6262
local G
6363
if crates ~= nil then
6464
if crates == 1 then
65-
G = 15732
65+
G = 15821
6666
end
6767
if crates == 2 then
68-
G = 15733
68+
G = 15822
6969
end
7070
if crates == 3 then
71-
G = 15734
71+
G = 15823
7272
end
7373
if crates == 4 or crates == 5 then
74-
G = 15735
74+
G = 15824
7575
end
7676
if crates == 6 or crates == 7 then
77-
G = 15736
77+
G = 15825
7878
end
7979
if crates == 8 or crates == 9 then
80-
G = 15737
80+
G = 15826
8181
end
8282
if crates >= 10 and crates <= 14 then
83-
G = 15738
83+
G = 15827
8484
end
8585
if crates >= 15 and crates <= 19 then
86-
G = 15739
86+
G = 15828
8787
end
8888
if crates >= 20 and crates <= 24 then
89-
G = 15740
89+
G = 15829
9090
end
9191
if crates >= 25 and crates <= 29 then
92-
G = 15741
92+
G = 15830
9393
end
9494
if crates >= 30 and crates <= 34 then
95-
G = 15742
95+
G = 15831
9696
end
9797
if crates >= 35 and crates <= 39 then
98-
G = 15743
98+
G = 15832
9999
end
100100
if crates >= 40 and crates <= 44 then
101-
G = 15744
101+
G = 15833
102102
end
103103
if crates >= 45 and crates <= 49 then
104-
G = 15745
104+
G = 15834
105105
end
106106
if crates >= 50 and crates <= 59 then
107-
G = 15746
107+
G = 15835
108108
end
109109
if crates >= 60 and crates <= 69 then
110-
G = 15747
110+
G = 15836
111111
end
112112
if crates >= 70 and crates <= 79 then
113-
G = 15748
113+
G = 15837
114114
end
115115
if crates >= 80 and crates <= 89 then
116-
G = 15749
116+
G = 15838
117117
end
118118
if crates >= 90 and crates <= 99 then
119-
G = 15750
119+
G = 15839
120120
end
121121
if crates >= 100 and crates <= 110 then
122-
G = 15751
122+
G = 15840
123123
end
124124
if crates == 111 then
125-
G = 15752
125+
G = 15841
126126
end
127127
else
128128
G = 0

0 commit comments

Comments
 (0)