Skip to content

Commit

Permalink
Update survival.js
Browse files Browse the repository at this point in the history
  • Loading branch information
slweeb committed Feb 11, 2024
1 parent 4b66340 commit 19eff2e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mods/survival.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ runAfterAutogen(function(){
delete elements.paint.category;
delete elements.lookup.category;
delete elements.pick;
delete elements.prop;
elements.radiation.category = "tools";
for (var element in elements) {
if (elements[element].category !== "tools") {
Expand Down Expand Up @@ -114,7 +115,7 @@ elements.cloner.tick = function(pixel) {
}
}
};
elements.cloner.ignore = elements.cloner.ignore.concat(["gold","gold_coin","molten_gold"]);
elements.cloner.ignore = elements.cloner.ignore.concat(["gold","gold_coin","molten_gold","sun","supernova"]);
elements.cloner.desc = "You can only clone one element at a time!"

elements.smash.tool = function(pixel) {
Expand All @@ -123,7 +124,7 @@ elements.smash.tool = function(pixel) {
// times 0.25 if not shiftDown else 1
if (Math.random() < (elements[pixel.element].hardness || 1) * (shiftDown ? 1 : 0.25)) {
var breakInto = elements[pixel.element].breakInto;
if (elements[pixel.element].seed) {
if (elements[pixel.element].seed && (!breakInto || Math.random() < 0.5)) {
if (Math.random() < 0.2) {
breakInto = elements[pixel.element].seed;
}
Expand Down Expand Up @@ -181,6 +182,7 @@ elementWorth = {
"fire": 0,
"smoke": 0,
"plasma": 0,
"light": 0,
"petal": -1,
"cell": -1,
"cancer": -1,
Expand Down

0 comments on commit 19eff2e

Please sign in to comment.