Sfoglia il codice sorgente

Everything is now a container - no raw objects allowed

tags/v0.7.0
Fen Dweller 7 anni fa
parent
commit
d280067fa5
2 ha cambiato i file con 16 aggiunte e 21 eliminazioni
  1. +2
    -2
      game.js
  2. +14
    -19
      recursive-macro.js

+ 2
- 2
game.js Vedi File

@@ -492,11 +492,11 @@ function getOnePrey(biome,area)
for (var i=0; i<potAreas.length; i++) {
x = potAreas[i];
if (x[1] < area) {
return new things[x[0]](1);
return new Container([new things[x[0]](1)]);
}
};

return new Person(1);
return new Container([new Person(1)]);
}
function getPrey(region, area)
{


+ 14
- 19
recursive-macro.js Vedi File

@@ -147,13 +147,7 @@ function fill_area2(area, weights)
result.push(new things[candidate.name](count));
}

if (result.length > 1) {
return new Container(result);
} else if (result.length == 1) {
return result[0];
} else {
return new Person(1);
}
return new Container(result);
}
// describes everything in the container

@@ -379,18 +373,6 @@ function defaultAddContent(thing) {
}

function DefaultEntity() {
this.stomp = defaultStomp;
this.eat = defaultEat;
this.kick = defaultKick;
this.anal_vore = defaultAnalVore;
this.buttcrush = defaultButtcrush;
this.breast_crush = defaultBreastCrush;
this.unbirth = defaultUnbirth;
this.cockslap = defaultCockslap;
this.cock_vore = defaultCockVore;
this.ball_smother = defaultBallSmother;
this.male_orgasm = defaultMaleOrgasm;
this.female_orgasm = defaultFemaleOrgasm;
this.sum = defaultSum;
this.area = defaultArea;
this.mass = defaultMass;
@@ -441,6 +423,19 @@ function Container(contents = []) {
return line;
};

this.stomp = defaultStomp(this);
this.eat = defaultEat(this);
this.kick = defaultKick(this);
this.anal_vore = defaultAnalVore(this);
this.buttcrush = defaultButtcrush(this);
this.breast_crush = defaultBreastCrush(this);
this.unbirth = defaultUnbirth(this);
this.cockslap = defaultCockslap(this);
this.cock_vore = defaultCockVore(this);
this.ball_smother = defaultBallSmother(this);
this.male_orgasm = defaultMaleOrgasm(this);
this.female_orgasm = defaultFemaleOrgasm(this);

return this;
}



Loading…
Annulla
Salva