Skip to content

Commit

Permalink
Merge branch 'main' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
afwbkbc committed Nov 16, 2024
2 parents 23dd8cc + 1f8a588 commit 75cd5ea
Show file tree
Hide file tree
Showing 146 changed files with 3,479 additions and 3,056 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ _deps
/.cmake
/cmake-build-debug
/GLSMAC.cbp
/GLSMAC_data/mods
4 changes: 2 additions & 2 deletions GLSMAC_data/default/bases.gls.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const result = {
//pops.init();
},

define: () => {
pops.define();
define: (bm) => {
pops.define(bm);
},

};
Expand Down
28 changes: 14 additions & 14 deletions GLSMAC_data/default/bases/pops.gls.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const define = (id, name, renders_human_x, renders_progenitor_x, properties) => {
const define = (bm, id, name, renders_human_x, renders_progenitor_x, properties) => {
// TODO: if (!properties) { ... }
let rh = [];
for ( x of renders_human_x ) {
Expand All @@ -18,27 +18,27 @@ const define = (id, name, renders_human_x, renders_progenitor_x, properties) =>
w: 38, h: 48,
};
}
#game.bases.define_pop(id, {
bm.define_pop(id, {
name: name,
renders_human: rh,
renders_progenitor: rp,
} + properties);
};

const result = {
define: () => {
define: (bm) => {

define('Worker', 'Worker', [79, 118], [40], {tile_worker: true});
define('Talent', 'Talent', [1, 40], [1], {tile_worker: true});
define('Doctor', 'Doctor', [352], [196], {});
define('Technician', 'Technician', [313], [157], {});
define('Librarian', 'Librarian', [391], [235], {});
define('Engineer', 'Engineer', [430], [274], {});
define('Empath', 'Empath', [469], [313], {});
define('Thinker', 'Thinker', [508], [352], {});
define('Transcend', 'Transcend', [547], [391], {});
define('Drone', 'Drone', [157, 196], [79], {});
define('DronePlus', 'Drone', [235, 274], [118], {});
define(bm, 'Worker', 'Worker', [79, 118], [40], {tile_worker: true});
define(bm, 'Talent', 'Talent', [1, 40], [1], {tile_worker: true});
define(bm, 'Doctor', 'Doctor', [352], [196], {});
define(bm, 'Technician', 'Technician', [313], [157], {});
define(bm, 'Librarian', 'Librarian', [391], [235], {});
define(bm, 'Engineer', 'Engineer', [430], [274], {});
define(bm, 'Empath', 'Empath', [469], [313], {});
define(bm, 'Thinker', 'Thinker', [508], [352], {});
define(bm, 'Transcend', 'Transcend', [547], [391], {});
define(bm, 'Drone', 'Drone', [157, 196], [79], {});
define(bm, 'DronePlus', 'Drone', [235, 274], [118], {});

},
};
Expand Down
51 changes: 33 additions & 18 deletions GLSMAC_data/default/factions.gls.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,38 @@
const factions = [
['Gaians', 'gaians', {}],
['Hive', 'hive', {}],
['University', 'univ', {}],
['Morganites', 'morgan', {}],
['Spartans', 'spartans', {}],
['Believers', 'believe', {}],
['Peacekeepers', 'peace', {}],
['Consciousness', 'cyborg', {}],
['Pirates', 'pirates', {is_naval: true}],
['Drones', 'drone', {}],
['Angels', 'angels', {}],
['Planetcult', 'fungboy', {}],
['Caretakers', 'caretake', {is_progenitor: true}],
['Usurpers', 'usurper', {is_progenitor: true}],
];

return {

define: () => {
for (faction of [
'gaians',
'hive',
'university',
'morganites',
'spartans',
'believers',
'peacekeepers',
'consciousness',
'pirates',
'drones',
'angels',
'planetcult',
'caretakers',
'usurpers'
]) {
#game.factions.define(#to_uppercase(faction), #include('./factions/' + faction));
configure: (fm) => {
for (f of factions) {
fm.add(#uppercase(f[0]), {
name: f[0],
colors: fm.import_colors(f[1] + '.pcx'),
bases: {
render: {
type: 'sprite_grid',
file: f[1] + '.pcx',
grid_x: 1, grid_y: 1,
cell_width: 100, cell_height: 75,
cell_padding: 1,
},
names: fm.import_base_names(f[1] + '.txt'),
},
} + f[2]);
}
},

Expand Down
14 changes: 0 additions & 14 deletions GLSMAC_data/default/factions/angels.gls.js

This file was deleted.

14 changes: 0 additions & 14 deletions GLSMAC_data/default/factions/believers.gls.js

This file was deleted.

15 changes: 0 additions & 15 deletions GLSMAC_data/default/factions/caretakers.gls.js

This file was deleted.

14 changes: 0 additions & 14 deletions GLSMAC_data/default/factions/consciousness.gls.js

This file was deleted.

14 changes: 0 additions & 14 deletions GLSMAC_data/default/factions/drones.gls.js

This file was deleted.

16 changes: 0 additions & 16 deletions GLSMAC_data/default/factions/gaians.gls.js

This file was deleted.

14 changes: 0 additions & 14 deletions GLSMAC_data/default/factions/hive.gls.js

This file was deleted.

14 changes: 0 additions & 14 deletions GLSMAC_data/default/factions/morganites.gls.js

This file was deleted.

14 changes: 0 additions & 14 deletions GLSMAC_data/default/factions/peacekeepers.gls.js

This file was deleted.

15 changes: 0 additions & 15 deletions GLSMAC_data/default/factions/pirates.gls.js

This file was deleted.

14 changes: 0 additions & 14 deletions GLSMAC_data/default/factions/planetcult.gls.js

This file was deleted.

14 changes: 0 additions & 14 deletions GLSMAC_data/default/factions/spartans.gls.js

This file was deleted.

14 changes: 0 additions & 14 deletions GLSMAC_data/default/factions/university.gls.js

This file was deleted.

15 changes: 0 additions & 15 deletions GLSMAC_data/default/factions/usurpers.gls.js

This file was deleted.

Loading

0 comments on commit 75cd5ea

Please sign in to comment.