refactor(generation): cultures start

This commit is contained in:
max 2022-07-24 23:32:59 +03:00
parent 1a57a8ac08
commit fe20f66b96
15 changed files with 621 additions and 581 deletions

View file

@ -1049,8 +1049,13 @@ window.COA = (function () {
return "heater";
};
const getRandomShield = function () {
const type = rw(shields.types);
return rw(shields[type]);
};
const toString = coa => JSON.stringify(coa).replaceAll("#", "%23");
const copy = coa => JSON.parse(JSON.stringify(coa));
return {generate, toString, copy, getShield, shields};
return {generate, toString, copy, getShield, shields, getRandomShield};
})();