Merge branch 'main' of https://github.com/R74nCom/sandboxels
This commit is contained in:
commit
75e5309df9
79
mods/mars.js
79
mods/mars.js
|
|
@ -113,7 +113,7 @@ elements.mars_ironheart_ore = {
|
||||||
elements.mars_ironheart = {
|
elements.mars_ironheart = {
|
||||||
color: ["#e8e8e8", "#bd1102"],
|
color: ["#e8e8e8", "#bd1102"],
|
||||||
behavior: [
|
behavior: [
|
||||||
"XX|CR:radiation%3|XX",
|
"XX|XX|XX",
|
||||||
"XX|XX|XX",
|
"XX|XX|XX",
|
||||||
"XX|XX|XX",
|
"XX|XX|XX",
|
||||||
],
|
],
|
||||||
|
|
@ -191,22 +191,6 @@ elements.depleted_ironheart = {
|
||||||
"electric": { elem1: "smint", elem2: "null" },
|
"electric": { elem1: "smint", elem2: "null" },
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
elements.feynmanium = {
|
|
||||||
color: "#8C7656",
|
|
||||||
behavior: [
|
|
||||||
"XX|XX|XX|",
|
|
||||||
"XX|XX|XX|",
|
|
||||||
"M2|M1|M2|",
|
|
||||||
],
|
|
||||||
category: "mars",
|
|
||||||
density: 1200,
|
|
||||||
state: "solid",
|
|
||||||
stateHigh: "molten_mars",
|
|
||||||
tempHigh: 6000,
|
|
||||||
reactions: {
|
|
||||||
"electric": { elem1: "smint", elem2: "null" },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
elements.antigunk = {
|
elements.antigunk = {
|
||||||
color: "#cecece",
|
color: "#cecece",
|
||||||
behavior: behaviors.DGAS,
|
behavior: behaviors.DGAS,
|
||||||
|
|
@ -391,8 +375,59 @@ elements.ironheart_core = {
|
||||||
conduct: 1,
|
conduct: 1,
|
||||||
extraInfo: "wha"
|
extraInfo: "wha"
|
||||||
}
|
}
|
||||||
|
elements.mars_fossil = {
|
||||||
// 2.10.20
|
color: ["#3d3d3d", "#707070", "#395034"],
|
||||||
|
behavior: behaviors.WALL,
|
||||||
|
category: "mars",
|
||||||
|
state: "solid",
|
||||||
|
tempHigh: 2500,
|
||||||
|
hardness: 0.975,
|
||||||
|
stateHigh: "molten_mars",
|
||||||
|
tempLow: -170,
|
||||||
|
stateLow: "mars_rock",
|
||||||
|
extraInfo: "Fossils! From Mars! Simply just smash them to get some tiny creatures.",
|
||||||
|
hardness: 0.4,
|
||||||
|
breakInto: "mars_debris"
|
||||||
|
}
|
||||||
|
elements.ironheart_gas = {
|
||||||
|
color: ["#500000ff", "#a7a7a7ff", "#a80000ff"],
|
||||||
|
behavior: behaviors.GAS,
|
||||||
|
category: "mars",
|
||||||
|
state: "gas",
|
||||||
|
tempLow: -100,
|
||||||
|
stateLow: "liquid_ironheart_gas",
|
||||||
|
extraInfo: "gasses"
|
||||||
|
}
|
||||||
|
elements.liquid_ironheart_gas = {
|
||||||
|
color: ["#500000ff", "#a7a7a7ff", "#a80000ff"],
|
||||||
|
behavior: behaviors.LIQUID,
|
||||||
|
category: "mars",
|
||||||
|
state: "liquid",
|
||||||
|
temp: -150,
|
||||||
|
extraInfo: "liquids"
|
||||||
|
}
|
||||||
|
elements.phing = {
|
||||||
|
color: "#00c40aff",
|
||||||
|
behavior: [
|
||||||
|
"XX|XX|XX|",
|
||||||
|
"XX|XX|XX",
|
||||||
|
"XX|XX|XX",
|
||||||
|
],
|
||||||
|
category: "phings",
|
||||||
|
state: "solid",
|
||||||
|
tempHigh: "800",
|
||||||
|
stateHigh: "dead_phing",
|
||||||
|
breakInto: "dead_phing",
|
||||||
|
extraInfo: "wha"
|
||||||
|
}
|
||||||
|
elements.dead_phing = {
|
||||||
|
color: "#947e00ff",
|
||||||
|
behavior: behaviors.POWDER,
|
||||||
|
category: "phings",
|
||||||
|
state: "solid",
|
||||||
|
extraInfo: "DEAD! You KILLED THEM!"
|
||||||
|
}
|
||||||
|
// 2.11.20
|
||||||
// most elements done :D
|
// most elements done :D
|
||||||
// iron heart ore
|
// iron heart ore
|
||||||
// iron heart
|
// iron heart
|
||||||
|
|
@ -427,6 +462,12 @@ elements.ironheart_core = {
|
||||||
// Red Gold is Solid
|
// Red Gold is Solid
|
||||||
// Feynmanium
|
// Feynmanium
|
||||||
// make things have recaitons
|
// make things have recaitons
|
||||||
|
// its here!
|
||||||
|
// remove feynmanium
|
||||||
|
// ironheart is no longer radioactive
|
||||||
|
// fossils!
|
||||||
|
|
||||||
|
|
||||||
// Creditssss
|
// Creditssss
|
||||||
// Ghanisma - idea for 2.9.16
|
// Ghanisma - idea for 2.9.16
|
||||||
|
|
||||||
|
|
|
||||||
43
mods/zoom.js
43
mods/zoom.js
|
|
@ -1,5 +1,3 @@
|
||||||
// IIFE because paranoid
|
|
||||||
(() => {
|
|
||||||
const zoom_levels = [
|
const zoom_levels = [
|
||||||
0.5,
|
0.5,
|
||||||
1,
|
1,
|
||||||
|
|
@ -73,13 +71,28 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function add_css(){
|
function add_css(){
|
||||||
const FLOATER_CSS = `
|
const CSS = `
|
||||||
#zm_data_div {
|
#zm_data_div { margin-bottom: 10px; }
|
||||||
margin-bottom: 10px;
|
#canvasDiv { overflow: hidden }
|
||||||
|
|
||||||
|
@media(pointer=coarse){
|
||||||
|
#zm_floater_container#zm_floater_container {
|
||||||
|
width: 40%;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
#zm_floater_container:has(#zm_collapse[data-collapsed="true"]){
|
||||||
|
width: calc(40% / 3);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#canvasDiv {
|
@media(pointer:coarse) and (orientation:landscape){
|
||||||
overflow: hidden
|
#zm_floater_container#zm_floater_container {
|
||||||
|
width: auto;
|
||||||
|
top: 5px;
|
||||||
|
}
|
||||||
|
#zm_floater_container:has(#zm_collapse[data-collapsed="true"]){
|
||||||
|
width: calc(40% / 3);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#zm_floater_container {
|
#zm_floater_container {
|
||||||
|
|
@ -88,12 +101,15 @@
|
||||||
|
|
||||||
right: 5px;
|
right: 5px;
|
||||||
bottom: 5px;
|
bottom: 5px;
|
||||||
height: 24%;
|
height: 100px;
|
||||||
aspect-ratio: 1;
|
aspect-ratio: 1;
|
||||||
|
|
||||||
|
max-width: 200px;
|
||||||
|
max-height: 200px;
|
||||||
|
|
||||||
border: 2px solid white;
|
border: 2px solid white;
|
||||||
background-color: black;
|
background-color: black;
|
||||||
font-size: 1.2em;
|
font-size: 120%;
|
||||||
|
|
||||||
button { text-align: center; border: 0px solid white }
|
button { text-align: center; border: 0px solid white }
|
||||||
|
|
||||||
|
|
@ -103,16 +119,12 @@
|
||||||
button:where([data-pos="br"]) { border-width: 2px 0px 0px 2px };
|
button:where([data-pos="br"]) { border-width: 2px 0px 0px 2px };
|
||||||
}
|
}
|
||||||
#zm_floater_container:has(#zm_collapse[data-collapsed="true"]) {
|
#zm_floater_container:has(#zm_collapse[data-collapsed="true"]) {
|
||||||
height: calc(8% - 1px);
|
|
||||||
|
|
||||||
button:not(#zm_collapse) {
|
button:not(#zm_collapse) {
|
||||||
display: none
|
display: none
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.zm_corner {
|
.zm_corner { border: 2px solid white; }
|
||||||
border: 2px solid white;
|
|
||||||
}
|
|
||||||
|
|
||||||
#zm_collapse {
|
#zm_collapse {
|
||||||
grid-row: 3;
|
grid-row: 3;
|
||||||
|
|
@ -126,7 +138,7 @@
|
||||||
`
|
`
|
||||||
|
|
||||||
const style_div = document.createElement("style")
|
const style_div = document.createElement("style")
|
||||||
style_div.innerHTML = FLOATER_CSS
|
style_div.innerHTML = CSS
|
||||||
|
|
||||||
document.head.appendChild(style_div)
|
document.head.appendChild(style_div)
|
||||||
}
|
}
|
||||||
|
|
@ -286,4 +298,3 @@
|
||||||
patch_keybinds()
|
patch_keybinds()
|
||||||
patch_ui()
|
patch_ui()
|
||||||
})
|
})
|
||||||
})()
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue