Skip to content

Commit

Permalink
updates based on feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jonepatr committed Jan 4, 2022
1 parent f9fea15 commit e58de1e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ async function applyActiveEffects(p, actor) {
if (!item.data.data.effectId) {
const effects = await actor.createEmbeddedDocuments("ActiveEffect", [{
origin: item.uuid,
icon: "systems/twodsix/assets/icons/science.svg"
icon: item.img
}]);
await item.update({ "data.effectId": effects[0].id });
}
Expand Down
5 changes: 2 additions & 3 deletions src/module/sheets/AbstractTwodsixActorSheet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,10 @@ export abstract class AbstractTwodsixActorSheet extends ActorSheet {
this.updateWithItemSpecificValues(itemData, <string>type);

const items = <TwodsixItem[]>await this.actor.createEmbeddedDocuments("Item", [itemData]);

if (type === "trait") {
const effects = await this.actor.createEmbeddedDocuments("ActiveEffect", [{
origin: items[0].uuid,
icon: "systems/twodsix/assets/icons/science.svg"
icon: items[0].img
}]);
items[0].update({"data.effectId": effects[0].id});
}
Expand Down Expand Up @@ -255,7 +254,7 @@ export abstract class AbstractTwodsixActorSheet extends ActorSheet {
if (items[0].type === "trait") {
const effects = await actor.createEmbeddedDocuments("ActiveEffect", [{
origin: items[0].uuid,
icon: "systems/twodsix/assets/icons/science.svg",
icon: items[0].img,
changes: (<Trait>items[0].data.data).changes
}]);
await items[0].update({"data.effectId": effects[0].id});
Expand Down
2 changes: 1 addition & 1 deletion static/styles/twodsix.css
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ a.notes-tab.active {
}

.effect-edit {
width: 150%;
width: 100%;
}

.items-consumable {
Expand Down
2 changes: 1 addition & 1 deletion static/styles/twodsix_basic.css
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ a.skill-tab.active, a.item-tab.active, a.finances-tab.active, a.info-tab.active,
}

.effect-edit {
width: 150%;
width: 100%;
}

.items-consumable {
Expand Down

0 comments on commit e58de1e

Please sign in to comment.