Skip to content
Snippets Groups Projects
Commit 400a3394 authored by Arkerthan's avatar Arkerthan
Browse files

add dick preset

parent 86c0489e
No related branches found
No related tags found
1 merge request!6365Fully integrate arcology building preset system
...@@ -188,6 +188,32 @@ App.Arcology.presets = (function() { ...@@ -188,6 +188,32 @@ App.Arcology.presets = (function() {
isAllowed: env => env.established && env.location === "oceanic", isAllowed: env => env.established && env.location === "oceanic",
construct() { return templateToBuilding(templates.oceanic); }, construct() { return templateToBuilding(templates.oceanic); },
apply() {} apply() {}
}, {
isAllowed: env => env.established && Math.random() < 0.1,
construct: () => {
// yes, this is a giant dick
const sections = [];
let rows = [];
rows.push([new App.Arcology.Cell.Apartment(1, 1)]);
rows.push([new App.Arcology.Cell.Penthouse()]);
sections.push(new App.Arcology.Section("penthouse", rows));
rows = [];
rows.push([new App.Arcology.Cell.Apartment(1)]);
rows.push([new App.Arcology.Cell.Apartment(1)]);
rows.push([new App.Arcology.Cell.Apartment(1)]);
rows.push([new App.Arcology.Cell.Apartment(1, 3), new App.Arcology.Cell.Filler(0.75), new App.Arcology.Cell.Apartment(1), new App.Arcology.Cell.Filler(0.75), new App.Arcology.Cell.Apartment(1, 3)]);
rows.push([new App.Arcology.Cell.Apartment(1, 3), new App.Arcology.Cell.Apartment(1, 3), new App.Arcology.Cell.Filler(0.25), new App.Arcology.Cell.Shop(1), new App.Arcology.Cell.Filler(0.25), new App.Arcology.Cell.Apartment(1, 3), new App.Arcology.Cell.Apartment(1, 3)]);
sections.push(new App.Arcology.Section("apartments", rows));
rows = [];
rows.push([new App.Arcology.Cell.Market(1), new App.Arcology.Cell.Market(1), new App.Arcology.Cell.Shop(1), new App.Arcology.Cell.Shop(1), new App.Arcology.Cell.Market(1), new App.Arcology.Cell.Market(1)]);
rows.push([new App.Arcology.Cell.Market(1), new App.Arcology.Cell.Manufacturing(1), new App.Arcology.Cell.Filler(0.25), new App.Arcology.Cell.Manufacturing(1), new App.Arcology.Cell.Filler(0.25), new App.Arcology.Cell.Manufacturing(1), new App.Arcology.Cell.Market(1)]);
sections.push(new App.Arcology.Section("markets", rows, true));
rows = [];
rows.push([new App.Arcology.Cell.Manufacturing(1), new App.Arcology.Cell.Filler(0.75), new App.Arcology.Cell.Manufacturing(1), new App.Arcology.Cell.Filler(0.75), new App.Arcology.Cell.Manufacturing(1)]);
sections.push(new App.Arcology.Section("manufacturing", rows));
return new App.Arcology.Building(sections);
},
apply() {}
}, },
]; ];
}()); }());
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment