feat: add poc
This commit is contained in:
parent
43d27b04d9
commit
4a4fa05ce4
53 changed files with 6191 additions and 0 deletions
13
src/items/Item.js
Normal file
13
src/items/Item.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* Base Item class
|
||||
*/
|
||||
export class Item {
|
||||
constructor(id, name, type = 'consumable') {
|
||||
this.id = id;
|
||||
this.name = name;
|
||||
this.type = type; // 'consumable', 'weapon', 'armor', 'accessory'
|
||||
this.description = '';
|
||||
this.value = 0;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue