Skip to content

Commit

Permalink
Update Apriling band helmet
Browse files Browse the repository at this point in the history
instrument use count fix
  • Loading branch information
uthuluc authored Apr 9, 2024
1 parent a48ba66 commit 9598c9c
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,21 @@ void IOTMAprilingBandHelmetGenerateResource(ChecklistEntry [int] resource_entrie
int aprilingBandQuadTomUsesLeft = clampi(3 - get_property_int("_aprilBandTomUses"), 0, 3);
int aprilingBandTubaUsesLeft = clampi(3 - get_property_int("_aprilBandTubaUses"), 0, 3);
int aprilingBandPiccoloUsesLeft = clampi(3 - get_property_int("_aprilBandPiccoloUses"), 0, 3);
int faceTheMusic = aprilingBandSaxUsesLeft + aprilingBandQuadTomUsesLeft + aprilingBandTubaUsesLeft + aprilingBandPiccoloUsesLeft;
int faceTheMusic = get_property_int("_aprilBandSaxophoneUses") + get_property_int("_aprilBandTomUses") + get_property_int("_aprilBandTubaUses") + get_property_int("_aprilBandPiccoloUses");

if (faceTheMusic > 6) {
if (faceTheMusic < 6) {
string [int] description2;
string url = "inventory.php?ftext=apriling";
if (aprilingBandSaxUsesLeft > 1 && available_amount($item[apriling band saxophone]) > 0) {
if (aprilingBandSaxUsesLeft > 0 && available_amount($item[apriling band saxophone]) > 0) {
description2.listAppend("Can play the Sax " + aprilingBandSaxUsesLeft + " more times. " + (HTMLGenerateSpanFont("LUCKY!", "green") + ""));
}
if (aprilingBandQuadTomUsesLeft > 1 && available_amount($item[apriling band quad tom]) > 0) {
if (aprilingBandQuadTomUsesLeft > 0 && available_amount($item[apriling band quad tom]) > 0) {
description2.listAppend("Can play the Quad Toms " + aprilingBandQuadTomUsesLeft + " more times. " + (HTMLGenerateSpanFont("Sandworm!", "orange") + ""));
}
if (aprilingBandTubaUsesLeft > 1 && available_amount($item[apriling band tuba]) > 0) {
if (aprilingBandTubaUsesLeft > 0 && available_amount($item[apriling band tuba]) > 0) {
description2.listAppend("Can play the Tuba " + aprilingBandTubaUsesLeft + " more times. " + (HTMLGenerateSpanFont("SNEAK!", "grey") + ""));
}
if (aprilingBandPiccoloUsesLeft > 1 && available_amount($item[apriling band piccolo]) > 0) {
if (aprilingBandPiccoloUsesLeft > 0 && available_amount($item[apriling band piccolo]) > 0) {
description2.listAppend("Can play the Piccolo " + aprilingBandPiccoloUsesLeft + " more times. " + (HTMLGenerateSpanFont("+40 fxp", "purple") + ""));
}
resource_entries.listAppend(ChecklistEntryMake("__item apriling band helmet", url, ChecklistSubentryMake("Apriling band instruments", "", description2), 8));
Expand Down

0 comments on commit 9598c9c

Please sign in to comment.