Skip to content

Commit 7944c4d

Browse files
authored
Create Blood Cubic Zirconia.ash
you can go up higher than 15 casts if you want but I feel like that's unreasonable
1 parent 3c8d098 commit 7944c4d

1 file changed

Lines changed: 88 additions & 0 deletions

File tree

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
//blood cubic zirconia
2+
RegisterTaskGenerationFunction("IOTMBloodCubicZirconiaGenerateTasks");
3+
void IOTMBloodCubicZirconiaGenerateTasks(ChecklistEntry [int] task_entries, ChecklistEntry [int] optional_task_entries, ChecklistEntry [int] future_task_entries)
4+
{
5+
if ($item[blood cubic zirconia].available_amount() == 0) return;
6+
string url = "inventory.php?ftext=blood+cubic+zirconia";
7+
string [int] description;
8+
int bczRefracts = get_property_int("_bczRefractedGazeCasts");
9+
int bczBullets = get_property_int("_bczSweatBulletsCasts");
10+
int bczEquitys = get_property_int("_bczSweatEquityCasts");
11+
12+
int [int] bloodCast = {
13+
0:11, 1:23, 2:37, 3:110, 4:230,
14+
5:370, 6:1100, 7:2300, 8:3700, 9:11000,
15+
10:23000, 11:37000, 12:420000, 13:1100000, 14:2300000,
16+
15:3700000};
17+
int refractCost = bloodCast[min(bczRefracts, 15)];
18+
int bulletCost = bloodCast[min(bczBullets, 15)];
19+
int equityCost = bloodCast[min(bczEquitys, 15)];
20+
21+
if (lookupItem("blood cubic zirconia").equipped_amount() > 0)
22+
{
23+
if (bczRefracts < 13) {
24+
description.listAppend("Next Refract costs " + HTMLGenerateSpanFont(refractCost + "", "red") + " mys");
25+
}
26+
else if (bczRefracts >= 13) {
27+
description.listAppend(HTMLGenerateSpanFont("Next Refract costs " + refractCost + " mys. EXPENSIVE!", "red") + "");
28+
}
29+
if (bczBullets < 13) {
30+
description.listAppend("Next Bullet costs " + HTMLGenerateSpanFont(bulletCost + "", "red") + " mox");
31+
}
32+
else if (bczBullets >= 13) {
33+
description.listAppend(HTMLGenerateSpanFont("Next Bullet costs " + bulletCost + " mox. EXPENSIVE!", "red") + "");
34+
}
35+
if (bczEquitys < 13) {
36+
description.listAppend("Next Equity costs " + HTMLGenerateSpanFont(equityCost + "", "red") + " mox");
37+
}
38+
else if (bczEquitys >= 13) {
39+
description.listAppend(HTMLGenerateSpanFont("Next Equity costs " + equityCost + " mox. EXPENSIVE!", "red") + "");
40+
}
41+
task_entries.listAppend(ChecklistEntryMake("__item blood cubic zirconia", url, ChecklistSubentryMake(HTMLGenerateSpanFont("BCZ: Blood Cubic Zirconia skills", "brown"), description), -11).ChecklistEntrySetIDTag("bcz important skills"));
42+
}
43+
}
44+
45+
RegisterResourceGenerationFunction("IOTMBloodCubicZirconiaGenerateResource");
46+
void IOTMBloodCubicZirconiaGenerateResource(ChecklistEntry [int] resource_entries)
47+
{
48+
if ($item[blood cubic zirconia].available_amount() == 0) return;
49+
string url = "inventory.php?ftext=blood+cubic+zirconia";
50+
string [int] description;
51+
int bczBaths = get_property_int("_bczBloodBathCasts");
52+
int bczThinners = get_property_int("_bczBloodThinnerCasts");
53+
int bczDials = get_property_int("_bczDialitupCasts");
54+
int bczPheromones = get_property_int("_bczPheromoneCocktailCasts");
55+
int bczSpinalTapas = get_property_int("_bczSpinalTapasCasts");
56+
int bczGeysers = get_property_int("_bczBloodGeyserCasts");
57+
int bczRefracts = get_property_int("_bczRefractedGazeCasts");
58+
int bczBullets = get_property_int("_bczSweatBulletsCasts");
59+
int bczEquitys = get_property_int("_bczSweatEquityCasts");
60+
61+
int [int] bloodCast = {
62+
0:11, 1:23, 2:37, 3:110, 4:230,
63+
5:370, 6:1100, 7:2300, 8:3700, 9:11000,
64+
10:23000, 11:37000, 12:420000, 13:1100000, 14:2300000,
65+
15:3700000};
66+
int bathCost = bloodCast[min(bczBaths, 15)];
67+
int thinnerCost = bloodCast[min(bczThinners, 15)];
68+
int dialCost = bloodCast[min(bczDials, 15)];
69+
int pheromoneCost = bloodCast[min(bczPheromones, 15)];
70+
int tapasCost = bloodCast[min(bczSpinalTapas, 15)];
71+
int geyserCost = bloodCast[min(bczGeysers, 15)];
72+
int refractCost = bloodCast[min(bczRefracts, 15)];
73+
int bulletCost = bloodCast[min(bczBullets, 15)];
74+
int equityCost = bloodCast[min(bczEquitys, 15)];
75+
76+
description.listAppend("Next Refract costs " + HTMLGenerateSpanFont(refractCost + "", "red") + " mys");
77+
description.listAppend("Next Bullet costs " + HTMLGenerateSpanFont(bulletCost + "", "red") + " mox");
78+
description.listAppend("Next Equity costs " + HTMLGenerateSpanFont(equityCost + "", "red") + " mox");
79+
80+
description.listAppend("Next Geyser costs " + HTMLGenerateSpanFont(geyserCost + "", "brown") + " mus");
81+
description.listAppend("Next Bath costs " + HTMLGenerateSpanFont(bathCost + "", "brown") + " mus");
82+
description.listAppend("Next Dial costs " + HTMLGenerateSpanFont(dialCost + "", "brown") + " mys");
83+
description.listAppend("Next Thinner costs " + HTMLGenerateSpanFont(thinnerCost + "", "brown") + " mus");
84+
description.listAppend("Next Tapas costs " + HTMLGenerateSpanFont(tapasCost + "", "brown") + " mys");
85+
description.listAppend("Next Pheromone costs " + HTMLGenerateSpanFont(pheromoneCost + "", "brown") + " mox");
86+
87+
resource_entries.listAppend(ChecklistEntryMake("__item blood cubic zirconia", url, ChecklistSubentryMake(HTMLGenerateSpanFont("BCZ: Blood Cubic Zirconia skills", "brown"), description), 11).ChecklistEntrySetIDTag("bcz important skills"));
88+
}

0 commit comments

Comments
 (0)