Advertisement
kolton

Untitled

May 24th, 2012
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. this.getLayout = function (seal, value) {
  2. var sealPreset = getPresetUnit(108, 2, seal);
  3.  
  4. if (!seal) {
  5. throw new Error("Seal preset not found. Can't continue.");
  6. }
  7.  
  8. if (sealPreset.roomy * 5 + sealPreset.y === value || sealPreset.roomx * 5 + sealPreset.x === value) {
  9. return 1;
  10. }
  11.  
  12. return 2;
  13. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement