ui-refactor
Bronwen 2021-06-23 18:53:49 -04:00
parent d7aca31c8c
commit 6ab8874432
4 changed files with 30 additions and 17 deletions

View File

@ -14,3 +14,10 @@ registerAction('Gather Slate', (qty) => {
options: {}
})
});
registerAction('Fetch Sticks', (qty) => {
Game.current.board.addTask({
taskId: "core:fetch-sticks",
options: {}
})
});

View File

@ -1,9 +1,2 @@
import { registerAction } from '@actions';
import { Game } from '@game';
registerAction('Fetch Sticks', (qty) => {
Game.current.board.addTask({
taskId: "core:fetch-sticks",
options: {}
})
});
import { Game } from '@game';

View File

@ -1,9 +1,2 @@
import { registerAction } from '@actions';
import { Game } from '@game';
registerAction('Gather Rocks', (qty) => {
Game.current.board.addTask({
taskId: 'core:gather-rocks',
options: {}
})
});

View File

@ -2,12 +2,32 @@ import { Item } from '@items';
export const LOG = new Item().setName("Log").setId('core:resources/log');
export const STICK = new Item().setName("Stick").setId('core:resources/stick');
export const PLANT_FIBRES = new Item().setName("Stick").setId('core:plant-fibres');
export const FLINT_NORMAL = new Item().setName("Flint").setId('core:flint');
export const FLINT_FLAKE = new Item().setName("Flint Flake").setId('core:flint-flake');
export const SANDSTONE_NORMAL = new Item().setName("Sandstone").setId('core:sandstone');
export const SANDSTONE_PEBBLE = new Item().setName("Sandstone Pebble").setId('core:sandstone-pebble');
export const SLATE_NORMAL = new Item().setName("Slate").setId('core:slate');
export const SLATE_FLAKE = new Item().setName("Slate Flake").setId('core:slate-flake');
export const LIMESTONE_NORMAL = new Item().setName("Limestone").setId('core:limestone');
export const LIMESTONE_PEBBLE = new Item().setName("Limestone Pebble").setId('core:limestone-pebble');
export const SHALE_NORMAL = new Item().setName("Shale").setId('core:shale');
export const SHALE_PEBBLE = new Item().setName("Shale Pebble").setId('core:shale-pebble');
export const OBSIDIAN_NORMAL = new Item().setName("Obsidian").setId('core:obsidian')
export const OBSIDIAN_FLAKE = new Item().setName("Obsidian Flake").setId('core:obsidian-flake');
// slate, flint X normal, flake
// limestone, shale, sandstone: large, small
export const FLINT_HATCHET = new Item().setName("Flint Hatchet").setId('core:flint-hatchet');
export const FLINT_ARROWHEAD = new Item().setName("Flint Arrowhead").setId('core:flint-arrowhead');
export const FLINT_SPEAR = new Item().setName("Flint Spear").setId('core:flint-spear');
export const SLATE_HATCHET = new Item().setName("Slate Hatchet").setId('core:slate-hatchet');
export const SLATE_ARROWHEAD = new Item().setName("Slate Arrowhead").setId('core:slate-arrowhead');
export const SLATE_SPEAR = new Item().setName("Slate Spear").setId('core:slate-spear');
export const OBSIDIAN_HATCHET = new Item().setName("Obsidian Hatchet").setId('core:obsidian-hatchet');
export const OBSIDIAN_ARROWHEAD = new Item().setName("Obsidian Arrowhead").setId('core:obsidian-arrowhead');
export const OBSIDIAN_SPEAR = new Item().setName("Obsidian Spear").setId('core:obsidian-spear');
// tools: plant fibres = rope, flint hatchet
// shale - igneous. metamorphasis => slate