Просмотр исходного кода

Allow for a specific kind of victim to be exclusively spawned

master
Fen Dweller 4 лет назад
Родитель
Сommit
ea2ab890c5
3 измененных файлов: 17 добавлений и 1 удалений
  1. +11
    -0
      features.js
  2. +5
    -0
      game.js
  3. +1
    -1
      stroll.html

+ 11
- 0
features.js Просмотреть файл

@@ -890,6 +890,17 @@ options = [
"name": "Micros",
"id": "victimsMicros",
"type": "checkbox"
},
{
"name": "Single Victim Type",
"id": "singleVictimType",
"type": "select",
"default": "Disabled",
"tooltip": "Only spawns one specific kind of victim.",
"choices":
["Disabled"].concat(Object.keys(things)).map(thing => {
return thing === "Container" ? null : thing
}).filter(x => x !== null).map(x => { return { name: x, value: x} })
}
]
},


+ 5
- 0
game.js Просмотреть файл

@@ -2203,6 +2203,11 @@ function getWeights(region, area) {
}
}

if (macro.singleVictimType != "Disabled") {
weights = {}
weights[macro.singleVictimType] = 0.25;
}

return weights;
}



+ 1
- 1
stroll.html Просмотреть файл

@@ -7,11 +7,11 @@
<link rel="stylesheet" type="text/css" href="https://csshake.surge.sh/csshake.min.css">
<link rel="stylesheet" href="style.css">
<script src="sounds.js"></script>
<script src="features.js"></script>
<script src="migrations.js"></script>
<script src="presets.js"></script>
<script src="units.js"></script>
<script src="recursive-macro.js"></script>
<script src="features.js"></script>
<script src="recursive-desc.js"></script>
<script src="game.js"></script>
<meta name="theme-color" content="#000000" />


Загрузка…
Отмена
Сохранить