Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- switch oGame.EquippedHat {
- case 0:
- oHat.sprite_index = sHatNoHat;
- oHat.HatType = "None";
- oHat.FrontFacingSprite = sHatNoHat;
- break;
- case 1:
- oHat.sprite_index = sHatTopHat;
- oHat.HatType = "Hat";
- oHat.FrontFacingSprite = sHatTopHat;
- break;
- case 2:
- oHat.sprite_index = sHatWizard;
- oHat.HatType = "Hat";
- oHat.FrontFacingSprite = sHatWizard;
- break;
- case 3:
- oHat.sprite_index = sHatPumpkin;
- oHat.HatType = "Full";
- oHat.FrontFacingSprite = sHatPumpkinFront;
- break;
- case 4:
- oHat.sprite_index = sHatBEAR;
- oHat.HatType = "Full";
- oHat.FrontFacingSprite = sHatBEARFront;
- break;
- case 5:
- oHat.sprite_index = sHatBBCap;
- oHat.HatType = "Hat";
- oHat.FrontFacingSprite = sHatBBCapFront;
- break;
- case 6:
- oHat.sprite_index = sHatAviator;
- oHat.HatType = "Full";
- oHat.FrontFacingSprite = sHatAviatorFront;
- break;
- case 7:
- oHat.sprite_index = sHatBeret;
- oHat.HatType = "Hat";
- oHat.FrontFacingSprite = sHatBeret;
- break;
- case 8:
- oHat.sprite_index = sHatBeanie;
- oHat.HatType = "Hat";
- oHat.FrontFacingSprite = sHatBeanieFront;
- break;
- case 9:
- oHat.sprite_index = sHatFez;
- oHat.HatType = "Hat";
- oHat.FrontFacingSprite = sHatFez;
- break;
- case 10:
- oHat.sprite_index = sHatFedora;
- oHat.HatType = "Hat";
- oHat.FrontFacingSprite = sHatFedoraFront;
- break;
- case 11:
- oHat.sprite_index = sHatRoman;
- oHat.HatType = "HatAttached";
- oHat.FrontFacingSprite = sHatRomanFront;
- oHat.depth = oPlayer.depth-3;
- oEar.depth = oPlayer.depth-2;
- break;
- case 12:
- oHat.sprite_index = sHatStraw;
- oHat.HatType = "Hat";
- oHat.FrontFacingSprite = sHatStraw;
- break;
- case 13:
- oHat.sprite_index = sHatUnicorn;
- oHat.HatType = "HatAttached";
- oHat.FrontFacingSprite = sHatUnicornFront;
- oHat.depth = oPlayer.depth-1;
- oEar.depth = oPlayer.depth-2;
- break;
- case 14:
- oHat.sprite_index = sHatBunny;
- oHat.HatType = "Full";
- oHat.FrontFacingSprite = sHatBunnyFront;
- break;
- case 15:
- oHat.sprite_index = sHatShibaInu;
- oHat.HatType = "Full";
- oHat.FrontFacingSprite = sHatShibaInuFront;
- break;
- case 16:
- oHat.sprite_index = sHatJester;
- oHat.HatType = "Hat";
- oHat.FrontFacingSprite = sHatJester;
- break;
- case 17:
- oHat.sprite_index = sHatMarine;
- oHat.HatType = "Full";
- oHat.FrontFacingSprite = sHatMarineFront;
- break;
- case 18:
- oHat.sprite_index = sHatWooly;
- oHat.HatType = "Hat";
- oHat.FrontFacingSprite = sHatWooly;
- break;
- case 19:
- oHat.sprite_index = sHatSkeletal;
- oHat.HatType = "Full";
- oHat.FrontFacingSprite = sHatSkeletalFront;
- break;
- case 20:
- oHat.sprite_index = sHatBow;
- oHat.HatType = "Full";
- oHat.FrontFacingSprite = sHatBow;
- break;
- case 21:
- oHat.sprite_index = sHatHamster;
- oHat.HatType = "Full";
- oHat.FrontFacingSprite = sHatHamsterFront;
- break;
- case 22:
- oHat.sprite_index = sHatXmas;
- oHat.HatType = "Hat";
- oHat.FrontFacingSprite = sHatXmas;
- break;
- case 23:
- oHat.sprite_index = sHatCrown;
- oHat.HatType = "Hat";
- oHat.FrontFacingSprite = sHatCrown;
- break;
- }
- if oHat.HatType == "Hat" {
- oHat.depth = oPlayer.depth-1;
- oEar.depth = oPlayer.depth-2;
- } else if oHat.HatType == "Full" {
- oHat.depth = oPlayer.depth-3;
- oEar.depth = oPlayer.depth-2;
- }
- // Hat Attached needs to derive the hat depths on a case-by-case basis.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement