twodsix-foundryvtt icon indicating copy to clipboard operation
twodsix-foundryvtt copied to clipboard

WIP: feat: add active effects to items

Open jonepatr opened this issue 3 years ago • 22 comments

NOT READY FOR MERGE as it depends on the migration PR.

  • Please check if the PR fulfills these requirements
  • [x] We use semantic versioning (https://github.com/semantic-release/semantic-release to be specific), so follow https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#-git-commit-guidelines
  • [ ] Docs have been added / updated (for bug fixes / features)
  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...) feature

  • What is the current behavior? (You can also link to an open issue here) Previsouly adding a trait did not affect the actor.

  • What is the new behavior (if this is a feature change)? This change makes it so that a trait is an active effect and can change the actor.

  • Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?) It comes with a migration to ensure backward compability.

  • Other information: Fix #272

jonepatr avatar Dec 29 '21 15:12 jonepatr

This pull request is now in conflicts. Could you fix it? 🙏

mergify[bot] avatar Jan 02 '22 17:01 mergify[bot]

This pull request is now in conflicts. Could you fix it? 🙏

mergify[bot] avatar Jan 02 '22 21:01 mergify[bot]

This pull request is now in conflicts. Could you fix it? 🙏

mergify[bot] avatar Jan 03 '22 20:01 mergify[bot]

Oddly, I'm getting this error when the system initializes. Not certain why. Let me check in the base system.

Screen Shot 2022-01-04 at 7 38 53 AM

Just checked with version 1.3.6 - no error

marvin9257 avatar Jan 04 '22 13:01 marvin9257

What is this supposed to look like? I'm not certain what the header ("starting with "Attribute Key") does. Screen Shot 2022-01-04 at 7 56 40 AM

At least, there is a localization missing.

marvin9257 avatar Jan 04 '22 13:01 marvin9257

When I edit a new effect - I get this warning. Screen Shot 2022-01-04 at 8 21 30 AM

I think it has to do with the color not having an initial value. Is there a way to initialize as black or white when called?

marvin9257 avatar Jan 04 '22 14:01 marvin9257

Oddly, I'm getting this error when the system initializes. Not certain why. Let me check in the base system.

Screen Shot 2022-01-04 at 7 38 53 AM

Just checked with version 1.3.6 - no error

This has to do with the new dynamic import stuff I'm pretty sure. From the looks of it, I think you have a .DS_Store file in the hooks folder. The dynamic import takes all files in the hooks/template/migrations folder and adds them to the system. For now, try removing the .DS_Store. The proper sollution is to filter out those files in the rollup.config.js script

jonepatr avatar Jan 04 '22 14:01 jonepatr

What is this supposed to look like? I'm not certain what the header ("starting with "Attribute Key") does. Screen Shot 2022-01-04 at 7 56 40 AM

At least, there is a localization missing.

So the three headers there were supposed to be the same as if you go into the active effect and add effects.

jonepatr avatar Jan 04 '22 14:01 jonepatr

When I edit a new effect - I get this warning. Screen Shot 2022-01-04 at 8 21 30 AM

I think it has to do with the color not having an initial value. Is there a way to initialize as black or white when called?

Hm, what is it that should have a color? the item or the active effect? or something else?

jonepatr avatar Jan 04 '22 14:01 jonepatr

Yes, it is when I put the edit effect button. When the window opens the tint color is blank. If it is set to something the warning message doesn't appear. Screen Shot 2022-01-04 at 9 26 48 AM

marvin9257 avatar Jan 04 '22 15:01 marvin9257

.DS_Store

Hmm...I can't find this file in the folder - or anywhere when I search - except for another program

marvin9257 avatar Jan 04 '22 15:01 marvin9257

https://github.com/xdy/twodsix-foundryvtt/pull/762#issuecomment-1004862469 Fixed by initializing tint & name on create new effect and drag-drop

marvin9257 avatar Jan 04 '22 18:01 marvin9257

It's a hidden file so in Finder you have to enable to show hidden files. In the terminal use the command ls -al to see hidden files

On Jan 4, 2022, 10:53 -0500, marvin9257 @.***>, wrote:

.DS_Store Hmm...I can't find this file in the folder - or anywhere when I search - except for another program — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

jonepatr avatar Jan 04 '22 18:01 jonepatr

This pull request is now in conflicts. Could you fix it? 🙏

mergify[bot] avatar Jan 07 '22 19:01 mergify[bot]

This pull request is now in conflicts. Could you fix it? 🙏

mergify[bot] avatar Jan 13 '22 16:01 mergify[bot]

This pull request introduces 1 alert when merging 9f75ba96c7e152a4338f032bbff211c6c87d98e4 into 6ddb9a14fba1f60be3cb25d1147412d565f37fe0 - view on LGTM.com

new alerts:

  • 1 for Unused variable, import, function or class

lgtm-com[bot] avatar Jan 13 '22 19:01 lgtm-com[bot]

This pull request is now in conflicts. Could you fix it? 🙏

mergify[bot] avatar Jan 14 '22 16:01 mergify[bot]

This pull request is now in conflicts. Could you fix it? 🙏

mergify[bot] avatar Jan 16 '22 16:01 mergify[bot]

This pull request is now in conflicts. Could you fix it? 🙏

mergify[bot] avatar Jan 21 '22 22:01 mergify[bot]

I went through the Active effects PR and it looks great. I pushed a commit with some suggested styling tweaks. I also fixed a missing label for the effect on create. One thing I noticed it that if the item is dropped into a ship's locker, the active effect can't be edited. Is that the desired function? (duplicate message from discord)

marvin9257 avatar Jan 23 '22 18:01 marvin9257

This pull request is now in conflicts. Could you fix it? 🙏

mergify[bot] avatar Jan 27 '22 18:01 mergify[bot]

This pull request is now in conflicts. Could you fix it? 🙏

mergify[bot] avatar Sep 24 '22 14:09 mergify[bot]

Replaced by #1197

marvin9257 avatar Jan 24 '23 17:01 marvin9257