Skip to content

Commit

Permalink
Rename defaultAttributes to initialAttributes
Browse files Browse the repository at this point in the history
  • Loading branch information
twobiers committed Nov 26, 2024
1 parent 70c80ef commit 97d39fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/service/lootData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const lootTemplates: LootTemplate[] = [
dropDescription: "Awww",
emote: ":catsmile:",
asset: "assets/loot/01-kadse.jpg",
defaultAttributes: [LootAttributeKindId.SWEET],
initialAttributes: [LootAttributeKindId.SWEET],
attributeAsset: {
[LootAttributeKindId.RADIOACTIVE]: "assets/loot/attributes/01-kadse-verstrahlt.jpg",
},
Expand Down Expand Up @@ -485,7 +485,7 @@ export const lootTemplates: LootTemplate[] = [
dropDescription: "Bóbr kurwa! Ja pierdolę! Jakie bydlę!",
emote: ":beaver:",
asset: "assets/loot/36-biber.jpg",
defaultAttributes: [LootAttributeKindId.SWEET],
initialAttributes: [LootAttributeKindId.SWEET],
},
] as const;

Expand Down
4 changes: 2 additions & 2 deletions src/storage/loot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export interface LootTemplate {
emote: string;
excludeFromInventory?: boolean;
effects?: string[];
defaultAttributes?: LootAttributeKindId[];
initialAttributes?: LootAttributeKindId[];

onDrop?: (
context: BotContext,
Expand Down Expand Up @@ -111,7 +111,7 @@ export async function createLoot(
.returningAll()
.executeTakeFirstOrThrow();

for (const attributeId of template.defaultAttributes || []) {
for (const attributeId of template.initialAttributes || []) {
const attribute = resolveLootAttributeTemplate(attributeId);
if (!attribute) continue;

Expand Down

0 comments on commit 97d39fc

Please sign in to comment.