Bläddra i källkod

Removed shitposts

tags/v0.7.0
Fen Dweller 7 år sedan
förälder
incheckning
47c6008993
2 ändrade filer med 2 tillägg och 36 borttagningar
  1. +2
    -3
      game.js
  2. +0
    -33
      recursive-macro.js

+ 2
- 3
game.js Visa fil

@@ -24,7 +24,6 @@ function initVictims()
"Train": 0,
"Parking Garage": 0,
"Overpass": 0,
"Tide Pod": 0
};
};

@@ -33,7 +32,7 @@ var bowels = []

function getOnePrey(area)
{
var potential = ["Person", "Car", "Bus", "House", "Train", "Parking Garage", "Tide Pod"];
var potential = ["Person", "Car", "Bus", "House", "Train", "Parking Garage"];

var potAreas = []

@@ -64,7 +63,7 @@ function getPrey(region, area)

function suburbPrey(area)
{
return fill_area(area, {"Person": 0.5, "House": 0.5, "Car": 0.2, "Tide Pod": 100});
return fill_area(area, {"Person": 0.5, "House": 0.5, "Car": 0.2});
}

function updateVictims(type,prey)


+ 0
- 33
recursive-macro.js Visa fil

@@ -11,7 +11,6 @@ var things =
"Train": Train,
"Parking Garage": ParkingGarage,
"Overpass": Overpass,
"Tide Pod": TidePod
};

var areas =
@@ -25,7 +24,6 @@ var areas =
"Train": 10000,
"Parking Garage": 20000,
"Overpass": 10000,
"Tide Pod": 0.01,
};

function fill_area(area, weights = {"Person": 0.1})
@@ -78,7 +76,6 @@ var masses =
"Train": 50000,
"Parking Garage": 100000,
"Overpass": 100000,
"Tide Pod": 1
};

// describes everything in the container
@@ -312,36 +309,6 @@ function Person(count = 1) {
return this;
}


function TidePod(count = 1) {
this.name = "Tide Pod";

copy_defaults(this,new DefaultEntity());

this.count = count;
this.contents = {};


this.describeOne = function (verbose=true) {
species = random_desc(["delicious","scrumptious","savory"]);
return "a " + merge_desc([species,"tide pod"]);
}

this.describe = function() {
if (count <= 3) {
list = [];
for (var i = 0; i < count; i++) {
list.push(this.describeOne(this.count <= 2));
}
return merge_things(list);
} else {
return this.count + " tide pods"
}
}

return this;
}

function EmptyCar(count = 1) {
this.name = "Car";



Laddar…
Avbryt
Spara