From 254a1a29e868f4b248f1a4bc4bbe6dc322d3a545 Mon Sep 17 00:00:00 2001 From: gauvainboiche Date: Wed, 18 Dec 2024 11:38:47 +0100 Subject: [PATCH] =?UTF-8?q?Amor=C3=A7age=20de=20la=20transition=20=C3=A0?= =?UTF-8?q?=20JS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pl_stat.js | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ pl_stat.py | 4 +-- planets.js | 6 ++++ 3 files changed, 92 insertions(+), 2 deletions(-) create mode 100644 pl_stat.js create mode 100644 planets.js diff --git a/pl_stat.js b/pl_stat.js new file mode 100644 index 0000000..34d6cd5 --- /dev/null +++ b/pl_stat.js @@ -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" +] \ No newline at end of file diff --git a/pl_stat.py b/pl_stat.py index 5491791..73cfd89 100644 --- a/pl_stat.py +++ b/pl_stat.py @@ -71,13 +71,13 @@ planet_name_prefix = ( "Wann", "Xal", "Yr", - "Zot", + "Zot" ) planet_name_sufix = ( "a Minor", "a Major", "ant", "alor", "eri", - "inia", "irid", "is" + "inia", "irid", "is", "o Zion", "or", "oria", "us", "us Prime", "us Secondus", "land", "yard" diff --git a/planets.js b/planets.js new file mode 100644 index 0000000..ed1bd1f --- /dev/null +++ b/planets.js @@ -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); \ No newline at end of file