sandboxels/mods/cool_tools.js

36 lines
895 B
JavaScript
Raw Normal View History

2023-03-21 17:27:30 -04:00
elements.exploder = {
2023-03-22 15:37:14 -04:00
color: "#ffffff",
2023-03-21 17:27:30 -04:00
tool: function(pixel) {
if (pixel.element == "sand") {
pixel.element = "explosion"
}
},
category: "tools",
2023-03-21 17:34:39 -04:00
};
2023-03-21 17:27:30 -04:00
elements.radiator = {
2023-03-22 15:37:14 -04:00
color: '#ffffff',
2023-03-22 15:27:41 -04:00
tool: function (pixel) {
if (pixel.element == 'cloud') {
pixel.element = 'rad_cloud'
}
if (pixel.element == 'cell') {
pixel.element = 'cancer'
}
if (pixel.element == 'steam') {
pixel.element = 'rad_steam'
}
if (pixel.element == 'dust') {
2023-03-22 15:35:34 -04:00
pixel.element = 'fallout'
2023-03-22 15:27:41 -04:00
}
if (pixel.element == 'explosion') {
2023-03-22 15:35:34 -04:00
pixel.element = 'n_explosion'
2023-03-22 15:27:41 -04:00
}
if (pixel.element == 'null') {
pixel.element = 'radiation'
}
},
category: 'tools',
2023-03-21 17:34:39 -04:00
};
2023-03-21 17:27:30 -04:00
//im aware that theres more radiation stuf than this