parent
84d997c289
commit
694092a326
|
|
@ -10,10 +10,11 @@ function _randomArrayChoice(array) {
|
|||
return array[_randomInt(array.length - 1)]
|
||||
}
|
||||
|
||||
const initialArray = ["m","n","p","t","ch","k","b","d","j","g","f","th","s","sh","h","l","r","y","w"]
|
||||
const vowelArray = ["a","e","i","o","u","oo","ee","oa"]
|
||||
const medialArray = ["m","n","p","t","k","b","d","g","f","th","s","sh","h","l","r","y"]
|
||||
const finalArray = ["m","n","p","t","k","b","d","g","f","th","s","sh","l","r","y"]
|
||||
//arbitrarily picked
|
||||
const initialArray = ["m","n","p","t","ch","k","b","d","j","g","f","th","s","sh","h","l","r","y","w","z","sp","st","sk","sl","spl","stl","skl","sr","spr","str","skr","sl","fl","fr","pl","pr","tl","tr","kl","kr","shr","fl","fr","thr"] //:eggTF:
|
||||
const vowelArray = ["a","e","i","o","u","ay","ee","ie","oa","ew","oo","oi","ow"] //:eggTF:
|
||||
const medialArray = ["m","n","p","t","k","b","d","g","f","th","s","sh","h","l","r","y","z","sp","st","sk","sl","spl","stl","skl","sr","spr","str","skr","sl","fl","fr","pl","pr","tl","tr","kl","kr","shr","fl","fr","thr"] //:eggTF:
|
||||
const finalArray = ["m","n","p","t","k","b","d","g","f","th","s","sh","l","r","y","z","sp","st","sk","sl","spl","stl","skl","sr","spr","str","skr","pl","pr","tl","tr","bl","vr"] //:eggTF:
|
||||
|
||||
enabledMods.includes("mods/log_rocks.js") ? logRocks = true : logRocks = false
|
||||
//This is intended for people who want to copy their rocks from the console to a file for some reason. Technically, the empty enabler script doesn't even have to exist, but I'll make it just so that index.html doesn't spit out an ERR_FILE_NOT_FOUND.
|
||||
|
|
@ -205,10 +206,8 @@ function avgRndToMult() {
|
|||
|
||||
elements.gravel.breakInto = "dust"
|
||||
|
||||
generatedRockElementArray = []
|
||||
|
||||
function copyRocks() {
|
||||
copy(generatedRockElementArray)
|
||||
if(logRocks == true) {
|
||||
rockString = ""
|
||||
}
|
||||
|
||||
for(i = 0; i < 10; i++) {
|
||||
|
|
@ -233,11 +232,9 @@ for(i = 0; i < 10; i++) {
|
|||
}
|
||||
|
||||
if(logRocks == true) {
|
||||
console.log(`elements.${name} = {\n name: \"${name}\",\n color: [\"${colors[0]}\", \"${colors[1]}\", \"${colors[2]}\"],\n behavior: behaviors.POWDER,\n tempHigh: ${950 * meltingAdjustment},\n category: \"random rocks\",\n state: \"solid\",\n density: ${2550 * densityAdjustment},\n hardness: ${0.5 * hardnessAdjustment},\n breakInto: [\"dust\",\"${name}_gravel\"],\n};`)
|
||||
rockString = rockString + `elements.${name} = {\n name: \"${name}\",\n color: [\"${colors[0]}\", \"${colors[1]}\", \"${colors[2]}\"],\n behavior: behaviors.POWDER,\n tempHigh: ${950 * meltingAdjustment},\n category: \"random rocks\",\n state: \"solid\",\n density: ${2550 * densityAdjustment},\n hardness: ${0.5 * hardnessAdjustment},\n breakInto: [\"dust\",\"${name}_gravel\"],\n};\n\n`
|
||||
}
|
||||
|
||||
generatedRockElementArray.push(elements[name])
|
||||
|
||||
elements[`${name}_gravel`] = {
|
||||
name: `${name} gravel`,
|
||||
color: [colors[3], colors[4], colors[5], colors[6]],
|
||||
|
|
@ -252,8 +249,9 @@ for(i = 0; i < 10; i++) {
|
|||
}
|
||||
|
||||
if(logRocks == true) {
|
||||
console.log(`elements.${name}_gravel = {\n name: \"${name} gravel\",\n color: [\"${colors[3]}\", \"${colors[4]}\", \"${colors[5]}\", \"${colors[6]}\"],\n behavior: behaviors.POWDER,\n tempHigh: ${950 * meltingAdjustment},\n stateHigh: \"${name}\",\n category: \"random rocks\",\n state: \"solid\",\n density: ${1680 * densityAdjustment},\n hardness: ${0.2 * (hardnessAdjustment ** (2/3))},\n breakInto: \"dust\",\n};`)
|
||||
rockString = rockString + `elements.${name}_gravel = {\n name: \"${name} gravel\",\n color: [\"${colors[3]}\", \"${colors[4]}\", \"${colors[5]}\", \"${colors[6]}\"],\n behavior: behaviors.POWDER,\n tempHigh: ${950 * meltingAdjustment},\n stateHigh: \"${name}\",\n category: \"random rocks\",\n state: \"solid\",\n density: ${1680 * densityAdjustment},\n hardness: ${0.2 * (hardnessAdjustment ** (2/3))},\n breakInto: \"dust\",\n};\n\n`
|
||||
}
|
||||
|
||||
generatedRockElementArray.push(elements[`${name}_gravel`])
|
||||
}
|
||||
|
||||
console.log(`Rocks added to rockString (length ${rockString.length})`)
|
||||
|
|
|
|||
Loading…
Reference in New Issue