a munch adventure
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 

68 行
1.6 KiB

  1. (() => {
  2. function devour(state, count) {
  3. state.player.stats.stomach.value += 100;
  4. }
  5. stories.push({
  6. id: "mass-vore",
  7. name: "Mass Vore",
  8. tags: [
  9. "Player Predator",
  10. "Macro/Micro",
  11. "Digestion"
  12. ],
  13. sounds: [
  14. ],
  15. preload: [
  16. ],
  17. intro: {
  18. start: "city",
  19. setup: state => {
  20. state.player.stats.stomach = {
  21. name: "Stomach",
  22. type: "meter",
  23. value: 0,
  24. min: 0,
  25. max: 10000,
  26. color: "rgb(200,20,100)"
  27. };
  28. },
  29. intro: state => {
  30. print(["Munch time"]);
  31. }
  32. },
  33. world: {
  34. "city": {
  35. id: "",
  36. name: "",
  37. desc: "",
  38. move: (room, state) => {
  39. },
  40. enter: (room, state) => {
  41. },
  42. exit: (room, state) => {
  43. },
  44. hooks: [
  45. ],
  46. actions: [
  47. {
  48. name: "Eat",
  49. desc: "Munch!",
  50. execute: (room, state) => {
  51. print(["Munch!"]);
  52. devour(state, 100);
  53. }
  54. }
  55. ],
  56. exits: {
  57. }
  58. }
  59. }
  60. });
  61. })();