From 53fbbf58138f2c8d1248468bddba30818539d601 Mon Sep 17 00:00:00 2001 From: Brian Savage Date: Fri, 20 Dec 2024 17:11:40 -0500 Subject: [PATCH] Add Reward data for Addison --- public/game_files/names.json | 26 +++++++++++++++++++++++ src/components/AppMapDetailsObj.ts | 3 +++ src/components/AppMapDetailsObj.vue | 4 ++++ src/components/RewardData.ts | 22 ++++++++++++++++++++ src/components/RewardData.vue | 32 +++++++++++++++++++++++++++++ 5 files changed, 87 insertions(+) create mode 100644 src/components/RewardData.ts create mode 100644 src/components/RewardData.vue diff --git a/public/game_files/names.json b/public/game_files/names.json index cf597a6..3202ad8 100644 --- a/public/game_files/names.json +++ b/public/game_files/names.json @@ -1689,6 +1689,32 @@ "Item_Cook_F_04": "Creamy Heart Soup", "Item_Cook_G_02": "Seafood Rice Balls", "Item_Cook_G_03": "Veggie Rice Balls", + "Item_Cook_G_02_ReadyMade_01": "Seafood Rice Balls", + "Item_Cook_G_02_ReadyMade_02": "Energizing Seafood Rice Balls", + "Item_Cook_G_02_ReadyMade_03": "Spicy Seafood Rice Balls", + "Item_Cook_G_02_ReadyMade_04": "Chilly Seafood Rice Balls", + "Item_Cook_G_02_ReadyMade_05": "Bright Seafood Rice Balls", + "Item_Cook_G_03_ReadyMade_01": "Veggie Rice Balls", + "Item_Cook_G_03_ReadyMade_02": "Energizing Veggie Rice Balls", + "Item_Cook_G_03_ReadyMade_03": "Spicy Veggie Rice Balls", + "Item_Cook_G_03_ReadyMade_04": "Chilly Veggie Rice Balls", + "Item_Cook_G_03_ReadyMade_05": "Electro Veggie Rice Balls", + "Item_Cook_G_03_ReadyMade_06": "Hasty Veggie Rice Balls", + "Item_Cook_G_03_ReadyMade_08": "Sunny Veggie Rice Balls", + "Item_Cook_G_04_ReadyMade_01": "Mushroom Rice Balls", + "Item_Cook_G_04_ReadyMade_02": "Energizing Mushroom Rice Balls", + "Item_Cook_G_04_ReadyMade_03": "Spicy Mushroom Rice Balls", + "Item_Cook_G_04_ReadyMade_04": "Chilly Mushroom Rice Balls", + "Item_Cook_G_04_ReadyMade_05": "Electro Mushroom Rice Balls", + "Item_Cook_G_04_ReadyMade_06": "Hasty Mushroom Rice Balls", + "Item_Cook_G_04_ReadyMade_07": "Sneaky Mushroom Rice Balls", + "Item_Cook_G_15_ReadyMade_01": "Meaty Rice Balls", + "Item_Cook_G_15_ReadyMade_02": "Meaty Rice Balls", + "Item_Cook_G_15_ReadyMade_03": "Meaty Rice Balls", + "Item_Cook_G_15_ReadyMade_04": "Biting Meaty Rice Balls", + "Item_Cook_G_15_ReadyMade_05": "Scorching Meaty Rice Balls", + "Item_Cook_G_15_ReadyMade_06": "Rapid Meaty Rice Balls", + "Item_Cook_G_15_ReadyMade_07": "Stormy Meaty Rice Balls", "Item_Cook_G_04": "Mushroom Rice Balls", "Item_Cook_G_05": "Meat and Rice Bowl", "Item_Cook_G_06": "Prime Meat and Rice Bowl", diff --git a/src/components/AppMapDetailsObj.ts b/src/components/AppMapDetailsObj.ts index 5fedfd1..9e06d02 100644 --- a/src/components/AppMapDetailsObj.ts +++ b/src/components/AppMapDetailsObj.ts @@ -7,6 +7,8 @@ import { Prop } from 'vue-property-decorator'; import AppMapDetailsBase from '@/components/AppMapDetailsBase'; import ObjectInfo from '@/components/ObjectInfo'; import ShopData from '@/components/ShopData'; +import RewardData from '@/components/RewardData'; + import { MapMarkerObj, MapMarkerSearchResult, @@ -66,6 +68,7 @@ const staticData = new StaticData(); components: { ObjectInfo, ShopData, + RewardData, }, }) export default class AppMapDetailsObj extends AppMapDetailsBase { diff --git a/src/components/AppMapDetailsObj.vue b/src/components/AppMapDetailsObj.vue index 940d5a5..a02dcf0 100644 --- a/src/components/AppMapDetailsObj.vue +++ b/src/components/AppMapDetailsObj.vue @@ -46,6 +46,10 @@ +
+ +
+

Presence params

diff --git a/src/components/RewardData.ts b/src/components/RewardData.ts new file mode 100644 index 0000000..bd72185 --- /dev/null +++ b/src/components/RewardData.ts @@ -0,0 +1,22 @@ +import Vue from 'vue' +import Component, { mixins } from 'vue-class-component'; +import { Prop } from 'vue-property-decorator'; +import MixinUtil from '@/components/MixinUtil'; +import * as ui from '@/util/ui'; + +@Component +export default class RewardData extends mixins(MixinUtil) { + @Prop() + private data!: any; + + length() { + return Object.keys(this.data).filter(key => key.startsWith("CraftSignboardR")).length + } + item(i: number) { + const n = (i > 1) ? i.toString() : "" + return this.data[`CraftSignboardReward${n}`] + } + name(i: number) { + return ui.getName(this.item(i)) + } +} diff --git a/src/components/RewardData.vue b/src/components/RewardData.vue new file mode 100644 index 0000000..27dc05c --- /dev/null +++ b/src/components/RewardData.vue @@ -0,0 +1,32 @@ + + +