瀏覽代碼

Merge pull request #12 from jsb5468/clonk2u-working-branch

Clonk2u working branch
master
Fen Dweller GitHub 5 年之前
父節點
當前提交
0cfea384ed
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 3 個文件被更改,包括 1016 次插入786 次删除
  1. +15
    -10
      game.js
  2. +12
    -12
      recursive-desc.js
  3. +989
    -764
      recursive-macro.js

+ 15
- 10
game.js 查看文件

@@ -48,12 +48,12 @@ const textFadeChoices = {
},
dims: {
name: "Text Dims",
animation: "log-dim 10s linear",
animation: "log-dim 15s linear",
next: "fades"
},
fades: {
name: "Text Fades",
animation: "log-fade 10s linear",
animation: "log-fade 20s linear",
next: "stays"
}
};
@@ -1813,6 +1813,7 @@ const biomeEnum = {
biomeWeights: { //Weights determine if and how often you run into something while inside of a biome
"Car": 0.1,
"Bus": 0.05,
"Tram": 0.03,
"Business": 0.075,
"Parking Garage": 0.003,
"Small Skyscraper": 0.06,
@@ -1822,11 +1823,15 @@ const biomeEnum = {
enabled: "ruralEnabled",
biomeSize: [4000,8000], //[min,max] Note: this is the distance you will walk until getting to the end of the biome
biomeWeights: { //Weights determine if and how often you run into something while inside of a biome
"Cow": 0,
"Cow": 0.005,
"House": 0.1,
"Barn": 0.08,
"Car": 0.1,
"Train": 0.002,
"Business": 0.075,
"Ranch": 0.01,
"Airstrip": 0.002,
"Airport": 0.002,
"Town": 0.00001
}},
Suburb: {
@@ -2091,7 +2096,7 @@ function getOnePrey(biome, area, sameSize = true)
let potAreas = [];

potential.forEach(function (x) {
potAreas.push([x,areas[x]]);
potAreas.push([x,things[x].area]);
});

potAreas = potAreas.sort(function (x,y) {
@@ -2101,12 +2106,12 @@ function getOnePrey(biome, area, sameSize = true)
for (let i=0; i<potAreas.length; i++) {
let x = potAreas[i];
if (x[1] < area) {
return new Container([new things[x[0]](1)]);
return new Container([new things[x[0]][x[0]](1)]);
}
}

if (sameSize)
return new Container([new things["Person"](1)]);
return new Container([new things["Person"]["Person"](1)]);
else
return new Container();
}
@@ -2114,7 +2119,7 @@ function getOnePrey(biome, area, sameSize = true)
function getWeights(region, area) {
let weights = {};

if (area > areas["Planet"]) {
if (area > things["Planet"].area) {
weights = {
"Planet": 1.47e-3,
"Star": 1.7713746e-3,
@@ -2125,7 +2130,7 @@ function getWeights(region, area) {
"Multiverse": 1
};
}
else if (area > areas["Town"]) {
else if (area > things["Town"].area) {
weights = {
"Town": 0.001,
"City": 0.0005,
@@ -2164,7 +2169,7 @@ function getWeights(region, area) {
weights["Soldier"] = 0.08;
weights["Tank"] = 0.07;
weights["Artillery"] = 0.06;
weights["Helicopter"] = 0.05,
weights["Military Helicopter"] = 0.05,
weights["Squad"]= .04;
weights["Platoon"]= .2,
weights["Company"]= .3,
@@ -5380,7 +5385,7 @@ function startGame(e) {

if (macro.victimsHuman) {
// eh this is ok
things["Person"] = Human;
things["Person"]["Person"] = Human;
}

if (macro.victimsMacros) {


+ 12
- 12
recursive-desc.js 查看文件

@@ -126,7 +126,7 @@ function hasNothingElse(container, things) {
function nothingLarger(container, thing) {
for (var key in container.contents)
if (container.contents.hasOwnProperty(key))
if (areas[key] > areas[thing])
if (things[key].area > things[thing].area)
return false;

return true;
@@ -772,7 +772,7 @@ function defaultSoulAbsorbPaw(container, macro, verbose, flat) {
function defaultPawStench(container, macro, verbose, flat) {
let sum = get_living_prey(container.sum());
if (isSadistic(macro))
return "Horrific miasma flows from your " + macro.footDesc(true)+ ", the corrsoive fumes reducing " + (sum > 1 ? sum + " people" : "a person") + " to charred flesh as they wash over " + container.describeSimple(flat) + ".";
return "Horrific miasma flows from your " + macro.footDesc(true)+ ", the corrosive fumes reducing " + (sum > 1 ? sum + " people" : "a person") + " to charred flesh as they wash over " + container.describeSimple(flat) + ".";
if (isFatal(macro))
return "Vile fumes waft from your " + macro.footDesc(true) + " , choking the life from " + (sum > 1 ? sum + " people." : "a person.");
else
@@ -2568,7 +2568,7 @@ rules["stomp"].push({
isNonFatal(macro);
}, "desc": function(container, macro, verbose, flat) {
return "Your massive " + macro.footDesc() + " casts a shadow over the landscape. You lazily bring it down on "+ container.describe(verbose) + ". You feel it make contact, and cloud of dust spreads around the area. As the dust settles, you can see the clear outline of \
your " + macro.toeDesc(true) + "preserved in newly formed hills and valleys. Surrounding your " + macro.footDesc() + "print is a jagged mound of cracked stone; forming the wall of the " + length((Math.pow(macro.pawArea/Math.PI, .5)* 2.5), unit, true) + " wide \
your " + macro.toeDesc(true) + " preserved in newly formed hills and valleys. Surrounding your " + macro.footDesc() + "print is a jagged mound of cracked stone; forming the wall of the " + length((Math.pow(macro.pawArea/Math.PI, .5)* 2.5), unit, true) + " wide \
dust-filled crater you created.";
}
});
@@ -2580,8 +2580,8 @@ rules["stomp"].push({
!hasAtleast(container, "Planet", 1) &&
isFatal(macro);
}, "desc": function(container, macro, verbose, flat) {
return "Your massive " + macro.footDesc() + " casts a shadow over the landscape. You lazily bring it down on "+ container.describe(verbose) + ". You feel it make contact, and cloud of dust spreads around the area. As the dust settles, you can see the clear outline of your " + macro.toeDesc(true) + "\
preserved in newly formed hills and valleys. Surrounding your " + macro.footDesc() + "print is a jagged mound of cracked stone and twisted steel; forming the wall of the " + length((Math.pow(macro.pawArea/Math.PI, .5)* 2.5), unit, true) + " wide debris-filled crater you created.";
return "Your massive " + macro.footDesc() + " casts a shadow over the landscape. You lazily bring it down on "+ container.describe(verbose) + ". You feel it make contact, and cloud of dust spreads around the area. As the dust settles, you can see the clear outline of your " + macro.toeDesc(true) + " preserved \
in newly formed hills and valleys. Surrounding your " + macro.footDesc() + "print is a jagged mound of cracked stone and twisted steel; forming the wall of the " + length((Math.pow(macro.pawArea/Math.PI, .5)* 2.5), unit, true) + " wide debris-filled crater you created.";
}
});

@@ -2592,8 +2592,8 @@ rules["stomp"].push({
!hasAtleast(container, "Planet", 1) &&
isGory(macro);
}, "desc": function(container, macro, verbose, flat) {
return "Your massive " + macro.footDesc() + " casts a shadow over the landscape. You lazily bring it down on "+ container.describe(verbose) + ". You feel it make contact, and cloud of dust spreads around the area. As the dust settles, you can see the clear outline of your " + macro.toeDesc(true) + "\
preserved in debris strewn hills and valleys. Surrounding your " + macro.footDesc() + "print is a jagged mound of cracked stone and twisted steel; forming the wall of the " + length((Math.pow(macro.pawArea/Math.PI, .5)* 2.5), unit, true) + " wide gore-filled crater you created. \
return "Your massive " + macro.footDesc() + " casts a shadow over the landscape. You lazily bring it down on "+ container.describe(verbose) + ". You feel it make contact, and cloud of dust spreads around the area. As the dust settles, you can see the clear outline of your " + macro.toeDesc(true) + " preserved \
in debris-strewn hills and valleys. Surrounding your " + macro.footDesc() + "print is a jagged mound of cracked stone and twisted steel; forming the wall of the " + length((Math.pow(macro.pawArea/Math.PI, .5)* 2.5), unit, true) + " wide gore-filled crater you created. \
The basin of the crater lined with with a smooth steel, glass, and bone aggregate. Steam rises from the mix as it cools and hardens";
}
});
@@ -2605,8 +2605,8 @@ rules["stomp"].push({
!hasAtleast(container, "Planet", 1) &&
isSadistic(macro);
}, "desc": function(container, macro, verbose, flat) {
return "Your massive " + macro.footDesc() + " casts a shadow over the landscape. You lazily bring it down on "+ container.describe(verbose) + ". As you lower your leg, you feel it catch the tops of the taller skycrapers first, collapsing them with no effort. As they fall, you \
crush more and more buildings until you feel your " + macro.footDesc() + " smash into the ground. You settle into the landscape and cloud of dust spreads around the area. As the dust settles, you can see the clear outline of your " + macro.toeDesc(true) + "preserved in debris strewn \
return "Your massive " + macro.footDesc() + " casts a shadow over the landscape. You lazily bring it down on "+ container.describe(verbose) + ". As you lower your leg, you feel it catch the tops of the taller skyscrapers first, collapsing them with no effort. As they fall, you \
crush more and more buildings until you feel your " + macro.footDesc() + " smash into the ground. You settle into the landscape and cloud of dust spreads around the area. As the dust settles, you can see the clear outline of your " + macro.toeDesc(true) + " preserved in debris-strewn \
hills and valleys. Surrounding your " + macro.footDesc() + "print is a jagged mound of cracked stone and twisted steel; forming the wall of the " + length((Math.pow(macro.pawArea/Math.PI, .5)* 2.5), unit, true) + " wide gore-filled crater you created. The basin of the crater \
lined with with a smooth steel, glass, and bone aggregate. Steam rises from the mix as it cools and hardens";
}
@@ -3774,7 +3774,7 @@ rules["male-orgasm"].push({
isFatal(macro);

}, "desc": function(container, macro, spurtVolume) {
return "You're cumming! Your " + macro.describeDick + " launches $VOLUMEs of frothing load into the atmosphere. As the ocean of cum roars across the plaent, it smashes through " + container.describe(verbose) + ".";
return "You're cumming! Your " + macro.describeDick + " launches $VOLUMEs of frothing load into the atmosphere. As the ocean of cum roars across the planet, it smashes through " + container.describe(verbose) + ".";
}
});

@@ -3786,7 +3786,7 @@ rules["male-orgasm"].push({
isGory(macro);

}, "desc": function(container, macro, spurtVolume) {
return "You're cumming! Your " + macro.describeDick + " launches $VOLUMEs of frothing load into the atmosphere. As the ocean of cum roars across the plaent, it smashes through " + container.describe(verbose) + ". Everything your semen rolls across \
return "You're cumming! Your " + macro.describeDick + " launches $VOLUMEs of frothing load into the atmosphere. As the ocean of cum roars across the planet, it smashes through " + container.describe(verbose) + ". Everything your semen rolls across \
is basted to smithereens as it carves a deep chasm. The destroyed buildings and people it swept along are deposited at the sides of the chasm, forming an unstable wall of gore and rubble.";
}
});
@@ -3799,7 +3799,7 @@ rules["male-orgasm"].push({
isSadistic(macro);

}, "desc": function(container, macro, spurtVolume) {
return "You're cumming! Your " + macro.describeDick + " launches $VOLUMEs of frothing load into the atmosphere. As the ocean of cum roars across the plaent, it smashes through " + container.describe(verbose) + ". Everything your semen rolls across \
return "You're cumming! Your " + macro.describeDick + " launches $VOLUMEs of frothing load into the atmosphere. As the ocean of cum roars across the planet, it smashes through " + container.describe(verbose) + ". Everything your semen rolls across \
is basted to smithereens as it carves a deep gore lined chasm that extends from where it landed to the ocean. As it hits the ocean the resulting wave reverses the tide, dashes ships, and turns the water into an inhabitable murky soup. The destroyed \
buildings and people it swept along are deposited at the bottom of the bay.";
}


+ 989
- 764
recursive-macro.js
文件差異過大導致無法顯示
查看文件


Loading…
取消
儲存