less copy protection, more size visualization
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 

153 строки
3.8 KiB

  1. const speciesMakers = {};
  2. speciesMakers["Synx"] = () => {
  3. const species = makeCharacter(
  4. { name: "Synx" },
  5. {
  6. goochick: {
  7. height: math.unit(0.5, "feet"),
  8. weight: math.unit(3, "lb"),
  9. name: "Goo-chick",
  10. image: {
  11. source: "./media/species/synx/goo-chick.svg",
  12. bottom: 0.12
  13. }
  14. },
  15. oozeeel: {
  16. height: math.unit(1.5, "feet"),
  17. weight: math.unit(20, "lb"),
  18. name: "Ooze-eel",
  19. image: {
  20. source: "./media/species/synx/ooze-eel.svg",
  21. bottom: 0.09
  22. }
  23. },
  24. synx: {
  25. height: math.unit(3.4, "feet"),
  26. weight: math.unit(300, "lb"),
  27. name: "Synx",
  28. image: {
  29. source: "./media/species/synx/synx.svg",
  30. extra: 8.06 / 6.6,
  31. bottom: 0.05
  32. },
  33. default: true
  34. },
  35. weeper: {
  36. height: math.unit(3.9, "feet"),
  37. weight: math.unit(450, "lb"),
  38. name: "Weeper",
  39. image: {
  40. source: "./media/species/synx/weeper.svg",
  41. extra: 8.04 / 7.5,
  42. bottom: 0.05
  43. }
  44. },
  45. },
  46. [
  47. ]
  48. );
  49. species.defaultView = "synx";
  50. return species;
  51. };
  52. speciesMakers["Viper"] = () => makeCharacter(
  53. { name: "Viper" },
  54. {
  55. front: {
  56. height: math.unit(2.6, "meters"),
  57. weight: math.unit(500, "lb"),
  58. name: "Front",
  59. image: {
  60. source: "./media/species/viper/front.svg"
  61. }
  62. },
  63. },
  64. [
  65. {
  66. name: "Normal",
  67. height: math.unit(2.6, "meters"),
  68. default: true
  69. },
  70. ]
  71. );
  72. speciesMakers["Synths"] = () => makeCharacter(
  73. { name: "Synths" },
  74. {
  75. front: {
  76. height: math.unit(6, "feet"),
  77. weight: math.unit(300, "lb"),
  78. name: "Front",
  79. image: {
  80. source: "./media/species/synths/front.svg",
  81. extra: 263/253.5,
  82. bottom: 6.22/268.85
  83. }
  84. },
  85. back: {
  86. height: math.unit(6, "feet"),
  87. weight: math.unit(300, "lb"),
  88. name: "Back",
  89. image: {
  90. source: "./media/species/synths/back.svg",
  91. extra: 263.5/254.5,
  92. bottom: 4.7/269
  93. }
  94. },
  95. bulky: {
  96. height: math.unit(6, "feet"),
  97. weight: math.unit(900, "lb"),
  98. name: "Bulky",
  99. image: {
  100. source: "./media/species/synths/bulky.svg",
  101. extra: 753/740,
  102. bottom: 17.7/771.8
  103. }
  104. },
  105. femme: {
  106. height: math.unit(6, "feet"),
  107. weight: math.unit(400, "lb"),
  108. name: "Femme",
  109. image: {
  110. source: "./media/species/synths/femme.svg",
  111. extra: 756/733,
  112. bottom: 17.2/774
  113. }
  114. },
  115. },
  116. [
  117. {
  118. name: "Small",
  119. height: math.unit(1, "meters")
  120. },
  121. {
  122. name: "Normal",
  123. height: math.unit(2, "meters"),
  124. default: true
  125. },
  126. {
  127. name: "Big",
  128. height: math.unit(3, "meters")
  129. },
  130. {
  131. name: "Huge",
  132. height: math.unit(4, "meters")
  133. },
  134. ]
  135. );
  136. function makeSpecies() {
  137. const results = [];
  138. Object.entries(speciesMakers).forEach(([key, value]) => {
  139. results.push(
  140. value()
  141. );
  142. });
  143. return results;
  144. }