Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal array to store items and prices #126

Closed
mrfatguy opened this issue Apr 3, 2024 · 0 comments · Fixed by #139
Closed

Internal array to store items and prices #126

mrfatguy opened this issue Apr 3, 2024 · 0 comments · Fixed by #139
Assignees
Labels
feature New feature or request, requires business analysis in most cases

Comments

@mrfatguy
Copy link
Contributor

mrfatguy commented Apr 3, 2024

Please, implement and internal two-dimensional array that will hold IDs, names and prices of the items that can be purchased at Mercantile or obtained through panning and picking or by other means.

Suggested size is 42 x 3. Suggested array:

let items = [
    [1, 'Bread', 10],
    [2, 'Eggs', 5],
    [3, 'Beacon', 10],
    [4, 'Steak', 25],
    [5, 'Coffee', 25],
    [6, 'Chicken', 35],
    [7, 'Hash', 15],
    [5, 'Coffee', 25],
    [6, 'Chicken', 35],
    [7, 'Hash', 15],
    [8, 'Beans', 15],
    [9, 'Whiskey', 20],
    [10, 'Cheese', 10],
    [11, 'Anti-Venom', 150],
    [12, 'Skillet', 25],
    [13, 'Fish Hooks', 20],
    [14, 'Coffee Pot', 35],
    [15, 'Knife', 20],
    [16, 'Pan', 35],
    [17, 'Gloves', 10],
    [18, 'Rope', 30],
    [19, 'Lantern', 20],
    [20, 'Blanket', 30],
    [21, 'Matches', 5],
    [19, 'Lantern', 20],
    [20, 'Blanket', 30],
    [21, 'Matches', 5],
    [22, 'Pick', 65],
    [23, 'Shovel', 50],
    [24, 'Map', 10],
    [25, 'Revolver', 200],
    [26, 'Bullets', 50],
    [27, 'Long Johns', 20],
    [28, 'Empty Canteen', 15],
    [29, 'Full Canteen', 0],
    [30, 'Snake', 0],
    [31, 'Small Fish', 0],
    [32, 'Big Fish', 0],
    [33, 'Small Bag of Gold Grade 0', 0],
    [34, 'Small Bag of Gold Grade 1', 0],
    [35, 'Small Bag of Gold Grade 2', 0],
    [36, 'Small Bag of Gold Grade 3', 0],
    [37, 'Small Bag of Gold Grade 4', 0],
    [38, 'Big Bag of Gold Grade 0', 0],
    [39, 'Big Bag of Gold Grade 1', 0],
    [40, 'Big Bag of Gold Grade 2', 0],
    [41, 'Big Bag of Gold Grade 3', 0],
    [42, 'Big Bag of Gold Grade 4', 0]
];

When starting a new game price (last element) of the array should be set to the value as given in here.

Details: here.

@mrfatguy mrfatguy added the feature New feature or request, requires business analysis in most cases label Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request, requires business analysis in most cases
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants