sandboxels/mods/cool_tools.js

36 lines
887 B
JavaScript
Raw Normal View History

2023-03-21 17:27:30 -04:00
elements.exploder = {
color: "#fa872f",
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:27:41 -04:00
color: '#248c1c',
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:21:13 -04:00
pixel.element = 'fallout'
2023-03-22 15:27:41 -04:00
}
if (pixel.element == 'explosion') {
2023-03-22 15:21:13 -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