Skip to content

Instantly share code, notes, and snippets.

@Falconerd
Created July 5, 2015 00:06
Show Gist options
  • Save Falconerd/1fd5e14a3eb46bcc58b4 to your computer and use it in GitHub Desktop.
Save Falconerd/1fd5e14a3eb46bcc58b4 to your computer and use it in GitHub Desktop.
List of SkyProc snippets for retrieving and checking certain information

Armour things

for (ARMO armour : merger.getArmors())
{
    BodyTemplate bodyTemplate = armour.getBodyTemplate();
    
    // Is gear heavy, light or clothing?
    ArmorType type = bodyTemplate.getArmorType(BodyTemplate.BodyTemplateType.Biped);
    
    // Is gear of slot type?
    bodyTemplate.get(BodyTemplate.BodyTemplateType.Biped, FirstPersonFlags.BODY); // boolean
    
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment