64 lines
5.6 KiB
Plaintext
64 lines
5.6 KiB
Plaintext
global.gotaya = false;
|
|
global.gottkn = false;
|
|
var forest123456 = function() {return new tiledata(u, u, [], [new statmod(st.def, 5, add)])}
|
|
var block1234567 = function() {return new tiledata(false, u, [])}
|
|
var recruit__aya = function() {return new tiledata(u, u, u, u, function(unitobject) {
|
|
if unitobject.alignment == ARMY.US {
|
|
switch unitobject.data.name {
|
|
case "Momiji":
|
|
textbox_create(txt_momijiyaya);
|
|
if !global.gotaya {
|
|
global.gotaya = true;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
})}
|
|
global.map = c_mapgen([
|
|
[block1234567(), block1234567(), block1234567(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), block1234567(), block1234567(), block1234567(), block1234567(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata()],
|
|
[block1234567(), block1234567(), block1234567(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), forest123456(), new tiledata(), new tiledata(), block1234567(), block1234567(), block1234567(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata()],
|
|
[block1234567(), block1234567(), block1234567(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), forest123456(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), block1234567(), block1234567(), block1234567(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata()],
|
|
[block1234567(), block1234567(), block1234567(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), block1234567(), block1234567(), block1234567(), new tiledata(), new tiledata(), new tiledata(), new tiledata()],
|
|
[block1234567(), block1234567(), block1234567(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), block1234567(), block1234567(), new tiledata(), new tiledata(), new tiledata(), block1234567()],
|
|
[block1234567(), block1234567(), block1234567(), forest123456(), new tiledata(), forest123456(), new tiledata(), forest123456(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), block1234567(), new tiledata(), new tiledata(), new tiledata(), block1234567()],
|
|
[block1234567(), block1234567(), block1234567(), new tiledata(), forest123456(), new tiledata(), forest123456(), new tiledata(), forest123456(), new tiledata(), forest123456(), new tiledata(), forest123456(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata()],
|
|
[block1234567(), block1234567(), block1234567(), forest123456(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata()],
|
|
[new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), forest123456(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata()],
|
|
[new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), forest123456(), new tiledata(), new tiledata(), forest123456(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata()],
|
|
[new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata()],
|
|
[new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), forest123456(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata()],
|
|
[block1234567(), block1234567(), block1234567(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), forest123456(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), forest123456(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata()],
|
|
[block1234567(), block1234567(), block1234567(), new tiledata(), new tiledata(), new tiledata(), forest123456(), new tiledata(), forest123456(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata(), new tiledata()],
|
|
]); //i simply dont care
|
|
function c_informtiles() {
|
|
for (i=0; i<array_length(global.map); i++) {
|
|
for (j=0; j<array_length(global.map[i]); j++) {
|
|
mp[i][j].x = i;
|
|
mp[i][j].y = j;
|
|
}
|
|
}
|
|
}
|
|
c_informtiles();
|
|
global.tilesize = new vec2(20, 20);
|
|
|
|
function tiledata(passable_=true, contents_=[], overlays_=[], statmods=[], event_=c_null) constructor {
|
|
passable = passable_;
|
|
contents = contents_;
|
|
overlays = overlays_;
|
|
modifiers = {};
|
|
event = event_;
|
|
var i;
|
|
for (i=0; i<array_length(statmods); i++) {
|
|
modifiers[$statmods[i].name] = statmods[i];
|
|
}
|
|
}
|
|
|
|
function c_mapgen(map) {
|
|
var map2 = [];
|
|
for (i=0; i<array_length(map); i++) {
|
|
for (j=0; j<array_length(map[i]); j++) {
|
|
map2[j][i] = map[i][j];
|
|
}
|
|
}
|
|
return map2;
|
|
} |