Advertisement
Guest User

Untitled

a guest
Oct 24th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. switch oGame.EquippedHat {
  2.     case 0:
  3.         oHat.sprite_index = sHatNoHat;
  4.         oHat.HatType = "None";
  5.         oHat.FrontFacingSprite = sHatNoHat;
  6.     break;
  7.     case 1:
  8.         oHat.sprite_index = sHatTopHat;
  9.         oHat.HatType = "Hat";
  10.         oHat.FrontFacingSprite = sHatTopHat;
  11.     break;
  12.     case 2:
  13.         oHat.sprite_index = sHatWizard;
  14.         oHat.HatType = "Hat";
  15.         oHat.FrontFacingSprite = sHatWizard;
  16.     break;
  17.     case 3:
  18.         oHat.sprite_index = sHatPumpkin;
  19.         oHat.HatType = "Full";
  20.         oHat.FrontFacingSprite = sHatPumpkinFront;
  21.     break;
  22.     case 4:
  23.         oHat.sprite_index = sHatBEAR;
  24.         oHat.HatType = "Full";
  25.         oHat.FrontFacingSprite = sHatBEARFront;
  26.     break;
  27.     case 5:
  28.         oHat.sprite_index = sHatBBCap;
  29.         oHat.HatType = "Hat";
  30.         oHat.FrontFacingSprite = sHatBBCapFront;
  31.     break;
  32.     case 6:
  33.         oHat.sprite_index = sHatAviator;
  34.         oHat.HatType = "Full";
  35.         oHat.FrontFacingSprite = sHatAviatorFront;
  36.     break;
  37.     case 7:
  38.         oHat.sprite_index = sHatBeret;
  39.         oHat.HatType = "Hat";
  40.         oHat.FrontFacingSprite = sHatBeret;
  41.     break;
  42.     case 8:
  43.         oHat.sprite_index = sHatBeanie;
  44.         oHat.HatType = "Hat";
  45.         oHat.FrontFacingSprite = sHatBeanieFront;
  46.     break;
  47.     case 9:
  48.         oHat.sprite_index = sHatFez;
  49.         oHat.HatType = "Hat";
  50.         oHat.FrontFacingSprite = sHatFez;
  51.     break;
  52.     case 10:
  53.         oHat.sprite_index = sHatFedora;
  54.         oHat.HatType = "Hat";
  55.         oHat.FrontFacingSprite = sHatFedoraFront;
  56.     break;
  57.     case 11:
  58.         oHat.sprite_index = sHatRoman;
  59.         oHat.HatType = "HatAttached";
  60.         oHat.FrontFacingSprite = sHatRomanFront;
  61.         oHat.depth = oPlayer.depth-3;
  62.         oEar.depth = oPlayer.depth-2;
  63.     break;
  64.     case 12:
  65.         oHat.sprite_index = sHatStraw;
  66.         oHat.HatType = "Hat";
  67.         oHat.FrontFacingSprite = sHatStraw;
  68.     break;
  69.     case 13:
  70.         oHat.sprite_index = sHatUnicorn;
  71.         oHat.HatType = "HatAttached";
  72.         oHat.FrontFacingSprite = sHatUnicornFront;
  73.         oHat.depth = oPlayer.depth-1;
  74.         oEar.depth = oPlayer.depth-2;
  75.     break;
  76.     case 14:
  77.         oHat.sprite_index = sHatBunny;
  78.         oHat.HatType = "Full";
  79.         oHat.FrontFacingSprite = sHatBunnyFront;
  80.     break;
  81.     case 15:
  82.         oHat.sprite_index = sHatShibaInu;
  83.         oHat.HatType = "Full";
  84.         oHat.FrontFacingSprite = sHatShibaInuFront;
  85.     break;
  86.     case 16:
  87.         oHat.sprite_index = sHatJester;
  88.         oHat.HatType = "Hat";
  89.         oHat.FrontFacingSprite = sHatJester;
  90.     break;
  91.     case 17:
  92.         oHat.sprite_index = sHatMarine;
  93.         oHat.HatType = "Full";
  94.         oHat.FrontFacingSprite = sHatMarineFront;
  95.     break;
  96.     case 18:
  97.         oHat.sprite_index = sHatWooly;
  98.         oHat.HatType = "Hat";
  99.         oHat.FrontFacingSprite = sHatWooly;
  100.     break;
  101.     case 19:
  102.         oHat.sprite_index = sHatSkeletal;
  103.         oHat.HatType = "Full";
  104.         oHat.FrontFacingSprite = sHatSkeletalFront;
  105.     break;
  106.     case 20:
  107.         oHat.sprite_index = sHatBow;
  108.         oHat.HatType = "Full";
  109.         oHat.FrontFacingSprite = sHatBow;
  110.     break;
  111.     case 21:
  112.         oHat.sprite_index = sHatHamster;
  113.         oHat.HatType = "Full";
  114.         oHat.FrontFacingSprite = sHatHamsterFront;
  115.     break;
  116.     case 22:
  117.         oHat.sprite_index = sHatXmas;
  118.         oHat.HatType = "Hat";
  119.         oHat.FrontFacingSprite = sHatXmas;
  120.     break;
  121.     case 23:
  122.         oHat.sprite_index = sHatCrown;
  123.         oHat.HatType = "Hat";
  124.         oHat.FrontFacingSprite = sHatCrown;
  125.     break;
  126. }
  127.  
  128. if oHat.HatType == "Hat" {
  129.     oHat.depth = oPlayer.depth-1;
  130.     oEar.depth = oPlayer.depth-2;
  131. } else if oHat.HatType == "Full" {
  132.     oHat.depth = oPlayer.depth-3;
  133.     oEar.depth = oPlayer.depth-2;
  134. }
  135. // Hat Attached needs to derive the hat depths on a case-by-case basis.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement