
//==============================================================================================================================================
//==============================================================================
//      AUTOMAP DISPLAY
//==============================================================================
//==============================================================================================================================================
//Height 10; // Whoops, this broke the status bar
// Also it changes size based on resolution and shit
// so uhhh fuck that
 
statusbar automap, forcescaled
{
    DrawImage "RLZAUTO2", 80, 196, center; // Automap bottom bar left
    DrawImage "RLZAUTO2", 240, 196, center; // Automap bottom bar right
    DrawImage "RLZAUTO", 160, 264, center; // Automap info main background
    DrawImage "RLZAUTO3", 160, 14, centerbottom; // Automap top keys bar
//    DrawSwitchableImage keyslot 2 && 5, "nullimage", "STKEYS0", "STKEYS3", "STKEYS6", 141, 4;
//    DrawSwitchableImage keyslot 3 && 6, "nullimage", "STKEYS1", "STKEYS4", "STKEYS7", 153, 4;
//    DrawSwitchableImage keyslot 1 && 4, "nullimage", "STKEYS2", "STKEYS5", "STKEYS8", 165, 4;
	drawkeybar 14, horizontal, 10, 92, 2;
	DrawString CONFONT, White, levellump, 160, 164, 1, alignment (center);
	DrawString CONFONT, White, levelname, 160, 172, 1, alignment (center);
//    DrawInventoryBar Doom, 5, RLZFONT2, 79, 170, 97, 190, PDAGreen;

//		Temporary debug checking without needing to spam printinv
    InInventory RLNuclearWeaponSetBonusActive, 1
    {
    DrawImage "SB2Nucle", 56, 192, center; // Type 2 set bonus
//	DrawString CONFONT, YELLOW, "FURIOUS FUSION", 160, 162, 1, alignment (center);
    }
    InInventory RLCerberusSetBonusActive, 1
    {
    DrawImage "SB2Cerbe", 42, 192, center; // Type 1 set bonus
//	DrawString CONFONT, CYAN, "TRINITY GUARDIAN", 160, 162, 1, alignment (center);
    }
	
    InInventory RLTacticalSetBonusActive, 1
    {
    DrawImage "SB2Tacti", 42, 192, center; // Type 1 set bonus
//	DrawString CONFONT, DARKGREEN, "TACTICAL READINESS", 160, 152, 1, alignment (center);
    }
    InInventory RLLavaSetBonusActive, 1
    {
    DrawImage "SB2Lava", 42, 192, center; // Type 1 set bonus
//	DrawString CONFONT, ORANGE, "UNSTABLE ELEMENTAL", 160, 152, 1, alignment (center);
    }
    InInventory RLGothicSetBonusActive, 1
    {
    DrawImage "SB2Gothi", 42, 192, center; // Type 1 set bonus
//	DrawString CONFONT, GREY, "GOTHIC ARMS", 160, 152, 1, alignment (center);
    }
    InInventory RLPhaseshiftSetBonusActive, 1
    {
    DrawImage "SB2Phase", 42, 192, center; // Type 1 set bonus
//	DrawString CONFONT, BROWN, "PHASESHIFT SUIT", 160, 152, 1, alignment (center);
    }
    InInventory RLInquisitorsSetBonusActive, 1
    {
    DrawImage "SB2Inqui", 42, 192, center; // Type 1 set bonus
//	DrawString CONFONT, RED, "INQUISITOR'S JUDGEMENT", 160, 152, 1, alignment (center);
    }
    InInventory RLDeathFromAboveSetBonusActive, 1
    {
    DrawImage "SB2Jetpa", 42, 192, center; // Type 1 set bonus
//	DrawString CONFONT, WHITE, "DEATH FROM ABOVE", 160, 152, 1, alignment (center);
    }
    InInventory RLDemonicSetBonusActive, 1
    {
    DrawImage "SB2Demon", 42, 192, center; // Type 1 set bonus
//	DrawString CONFONT, RED, "DEMONIC VENGEANCE", 160, 152, 1, alignment (center);
    }
    InInventory RLRoystenSetBonusActive, 1
    {
    DrawImage "SB2Royst", 42, 192, center; // Type 1 set bonus
//	DrawString CONFONT, TAN, "ROYSTEN'S REVENGE", 160, 152, 1, alignment (center);
    }
    InInventory RLArchitectSetBonusActive, 1
    {
    DrawImage "SB2Archi", 42, 192, center; // Type 1 set bonus
//	DrawString CONFONT, BLACK, "ARCHITECT OF DEATH", 160, 152, 1, alignment (center);
    }
    InInventory RLTorgueSetBonusActive, 1
    {
    DrawImage "SB2Torgu", 42, 192, center; // Type 1 set bonus
//	DrawString CONFONT, ORANGE, "EXPLOOOOOSSSIONS", 160, 152, 1, alignment (center);
    }
    InInventory RLSentrySentinelSetBonusActive, 1
    {
    DrawImage "SB2BLU", 42, 192, center; // Type 1 set bonus
//	DrawString CONFONT, BLUE, "SENTRY SENTINEL", 160, 152, 1, alignment (center);
    }
    InInventory RLSensibleStrategistSetBonusActive, 1
    {
    DrawImage "SB2RED", 42, 192, center; // Type 1 set bonus
//	DrawString CONFONT, RED, "SENSIBLE STRATEGIST", 160, 152, 1, alignment (center);
    }
    InInventory RLEnclaveSetBonusActive, 1
    {
    DrawImage "SB2Encla", 42, 192, center; // Type 1 set bonus
//	DrawString CONFONT, GREEN, "ENCLAVE ENFORCER", 160, 152, 1, alignment (center);
    }
    InInventory RLAngelicAttireSetBonusActive, 1
    {
    DrawImage "SB2Angel", 42, 192, center; // Type 1 set bonus
//	DrawString CONFONT, YELLOW, "ANGELIC ATTIRE", 160, 152, 1, alignment (center);
    }
	
//		Debug stuff for easier testing, just give yourself this item
    InInventory RLHUDDebug, 1
    {
		DrawNumber 2, CONFONT, DarkRed, RLDangerLevel, alignment (center), 260, 181, 0, DarkRed, 0, White, 50;
		DrawNumber 2, CONFONT, Orange, RLUniqueBossLevel, alignment (center), 260, 191, 0, Orange, 0, White, 50;
		InInventory PowerRLTechnicianBasicDamage
			DrawImage "PFON1", 260, 181, center; // Technician Basic damage boost
		InInventory PowerRLTechnicianAdvancedDamage
			DrawImage "PFON2", 260, 171, center; // Technician Advanced damage boost
		InInventory PowerRLTechnicianMasterDamage
			DrawImage "PFON3", 260, 161, center; // Technician Master damage boost
	}
//		Okay debug time is over move along

//============= Draw Weapon Counter =============
    InInventory RLWeaponLimit, 1
    {
        Drawimage "GIDEICO1", 112, 192, center;
        DrawNumber 1, CONFONT, Gray, RLWeaponLimit, alignment (center), 112, 189, 0, Gray, 0, White, 6;
    }

//============= Draw Modpack Counter =============
    InInventory RLScavengerPerk
    {
        InInventory RLScavengerModLimit, 1
        {
            Drawimage "GIDEICO2", 131, 192, center;
            DrawNumber 1, CONFONT, Gray, RLScavengerModLimit, alignment (center), 131, 189, 0, Gray, 0, White, 8;
        }
    }
    InInventory not RLScavengerPerk
    {
        InInventory RLModLimit, 1
        {
            Drawimage "GIDEICO2", 131, 192, center;
            DrawNumber 1, CONFONT, Gray, RLModLimit, alignment (center), 131, 189, 0, Gray, 0, White, 4;   
        }
    }

//============= Draw Armor Counter =============
    InInventory RLArmorInInventory, 1
    {
        Drawimage "GIDEICO3", 150, 192, center;
        InInventory RLBackpack
            DrawNumber 1, CONFONT, Gray, RLArmorInInventory, alignment (center), 150, 189, 0, Gray, 0, White, 4;   
 
        InInventory not RLBackpack
            DrawNumber 1, CONFONT, Gray, RLArmorInInventory, alignment (center), 150, 189, 0, Gray, 0, White, 2;
 
    }

//============= Draw Skull Counter =============
    InInventory RLSkullLimit, 1
    {
        Drawimage "GIDEICO4", 170, 192, center;
        InInventory RLBackpack
        {
            InInventory RLSkullLimit, 10
            {  
                DrawNumber 2, CONFONT, Gray, RLSkullLimit, alignment (center), 170, 189, 0, Gray, 0, White, 12;
            }
            InInventory not RLSkullLimit, 10
            {  
                DrawNumber 1, CONFONT, Gray, RLSkullLimit, alignment (center), 170, 189, 0, Gray, 0, White, 12;    
            }
        }
        InInventory not RLBackpack
        {
            DrawNumber 1, CONFONT, Gray, RLSkullLimit, alignment (center), 170, 189, 0, Gray, 0, White, 6; 
        }
    }

//============= Draw Phase Device Counter =============
    InInventory RLPhaseDeviceLimit, 1
    {
        Drawimage "GIDEICO5", 189, 192, center;
        InInventory RLBackpack
            DrawNumber 1, CONFONT, Gray, RLPhaseDeviceLimit, alignment (center), 189, 189, 0, Gray, 0, White, 8;
 
        InInventory not RLBackpack
            DrawNumber 1, CONFONT, Gray, RLPhaseDeviceLimit, alignment (center), 189, 189, 0, Gray, 0, White, 4;
 
    }

//============= Draw Backpack Type =============
    InInventory RLBackpack, 1
    {
        InInventory not RLCombatBackpackToken, 1
        {
            InInventory not RLSpecialistBackpackToken, 1
            {
                InInventory not RLScroungerBackpackToken, 1
                {
                    InInventory not RLDedicatedBackpackToken, 1
                    {
                        InInventory not RLNuclearBackpackToken, 1
                        {
                            Drawimage "GPK0ICO2", 208, 192, center; // ahahahahaha fuck everything why can it not compare more than two things
                        }
                    }
                }
            }
        }
    }
    InInventory RLCombatBackpackToken, 1
        Drawimage "GPK1ICO2", 208, 192, center;
 
    InInventory RLSpecialistBackpackToken, 1
        Drawimage "GPK2ICO2", 208, 192, center;
 
    InInventory RLScroungerBackpackToken, 1
        Drawimage "GPK3ICO2", 208, 192, center;
 
    InInventory RLDedicatedBackpackToken, 1
        Drawimage "GPK4ICO2", 208, 192, center;
 
    InInventory RLNuclearBackpackToken, 1
        Drawimage "GPK5ICO2", 208, 192, center;

}
 