Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this.getLayout = function (seal, value) {
- var sealPreset = getPresetUnit(108, 2, seal);
- if (!seal) {
- throw new Error("Seal preset not found. Can't continue.");
- }
- if (sealPreset.roomy * 5 + sealPreset.y === value || sealPreset.roomx * 5 + sealPreset.x === value) {
- return 1;
- }
- return 2;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement