Skip to content

Commit

Permalink
Update Apriling band helmet
Browse files Browse the repository at this point in the history
make the second tile invisible when 6/6 charges are used
  • Loading branch information
uthuluc authored Apr 6, 2024
1 parent 673989d commit a48ba66
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ 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;

if ($items[Apriling band saxophone,Apriling band quad tom,Apriling band tuba,Apriling band staff,Apriling band piccolo].available_amount() > 0) {
if (faceTheMusic > 6) {
string [int] description2;
string url = "inventory.php?ftext=apriling";
if (aprilingBandSaxUsesLeft > 1 && available_amount($item[apriling band saxophone]) > 0) {
Expand Down

0 comments on commit a48ba66

Please sign in to comment.