Amorçage de la transition à JS
This commit is contained in:
84
pl_stat.js
Normal file
84
pl_stat.js
Normal file
@@ -0,0 +1,84 @@
|
|||||||
|
exports.planetType = {
|
||||||
|
"Tempérée" : {
|
||||||
|
"population" : 100,
|
||||||
|
},
|
||||||
|
"Glacée" : {
|
||||||
|
"population" : 1
|
||||||
|
},
|
||||||
|
"Volcanique" : {
|
||||||
|
"population" : 2
|
||||||
|
},
|
||||||
|
"Marécageuse" : {
|
||||||
|
"population" : 10
|
||||||
|
},
|
||||||
|
"Forestière" : {
|
||||||
|
"population" : 20
|
||||||
|
},
|
||||||
|
"Océanique" : {
|
||||||
|
"population" : 25
|
||||||
|
},
|
||||||
|
"Oecuménopole" : {
|
||||||
|
"population" : 2000
|
||||||
|
},
|
||||||
|
"Désert" : {
|
||||||
|
"population" : 50
|
||||||
|
},
|
||||||
|
"Minéralogique" : {
|
||||||
|
"population" : 3
|
||||||
|
},
|
||||||
|
"Gazeuse" : {
|
||||||
|
"population" : 1
|
||||||
|
},
|
||||||
|
"Acide" : {
|
||||||
|
"population" : 1
|
||||||
|
},
|
||||||
|
"Monde usine" : {
|
||||||
|
"population" : 500
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
exports.planetPopulationType = [
|
||||||
|
"Humains",
|
||||||
|
"Presqu'humains",
|
||||||
|
"Animaux pacifiques",
|
||||||
|
"Animaux belliqueux",
|
||||||
|
"Aliens"
|
||||||
|
];
|
||||||
|
|
||||||
|
exports.planetNamePrefix = [
|
||||||
|
"Acod", "Acht",
|
||||||
|
"Bex",
|
||||||
|
"Carob",
|
||||||
|
"Daris",
|
||||||
|
"Ecop",
|
||||||
|
"Fron",
|
||||||
|
"Glac", "Glad",
|
||||||
|
"Hac", "Hor",
|
||||||
|
"Is",
|
||||||
|
"Jud",
|
||||||
|
"Kor",
|
||||||
|
"Ler",
|
||||||
|
"Marel",
|
||||||
|
"Naur",
|
||||||
|
"Olep",
|
||||||
|
"Prid", "Plex",
|
||||||
|
"Qef",
|
||||||
|
"Rem",
|
||||||
|
"Sarit",
|
||||||
|
"Thec", "Thex", "Thet",
|
||||||
|
"Uv",
|
||||||
|
"Volc", "Vold",
|
||||||
|
"Wann",
|
||||||
|
"Xal",
|
||||||
|
"Yr",
|
||||||
|
"Zot"
|
||||||
|
];
|
||||||
|
|
||||||
|
exports.planetNameSuffix = [
|
||||||
|
"a Minor", "a Major", "ant", "alor",
|
||||||
|
"eri",
|
||||||
|
"inia", "irid", "is",
|
||||||
|
"o Zion", "or", "oria",
|
||||||
|
"us", "us Prime", "us Secondus",
|
||||||
|
"land", "yard"
|
||||||
|
]
|
||||||
@@ -71,13 +71,13 @@ planet_name_prefix = (
|
|||||||
"Wann",
|
"Wann",
|
||||||
"Xal",
|
"Xal",
|
||||||
"Yr",
|
"Yr",
|
||||||
"Zot",
|
"Zot"
|
||||||
)
|
)
|
||||||
|
|
||||||
planet_name_sufix = (
|
planet_name_sufix = (
|
||||||
"a Minor", "a Major", "ant", "alor",
|
"a Minor", "a Major", "ant", "alor",
|
||||||
"eri",
|
"eri",
|
||||||
"inia", "irid", "is"
|
"inia", "irid", "is",
|
||||||
"o Zion", "or", "oria",
|
"o Zion", "or", "oria",
|
||||||
"us", "us Prime", "us Secondus",
|
"us", "us Prime", "us Secondus",
|
||||||
"land", "yard"
|
"land", "yard"
|
||||||
|
|||||||
6
planets.js
Normal file
6
planets.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
//import { planetPopulationType, planetNamePrefix, planetNameSuffix } from "./pl_stat.js";
|
||||||
|
let pl_stat = require("./pl_stat.js");
|
||||||
|
|
||||||
|
console.log("Hey !");
|
||||||
|
|
||||||
|
console.log(pl_stat.planetPopulationType);
|
||||||
Reference in New Issue
Block a user