Merge tag '3.3.0' into development

Release 3.3.0
This commit is contained in:
Megastruktur 2021-06-16 15:06:43 +03:00
commit 8a44d520db
5 changed files with 8 additions and 14 deletions

View file

@ -1,3 +1,7 @@
v.3.3
- Adds effects instead of item logic fields
- Several image path fixes
v3.2
- Fix issue #120 (Load dropdown)
- Fix issue #122 (Faction tracker labels)

View file

@ -54,16 +54,6 @@ Clocks are now here!
- To add clock go to Actors tab and create a new Actor of type "🕛 clock".
- To share it to other players just drag it to a scene.
## Logic field
Logic field is a json with params which allows to implement some logic when the Item of corresponding type is added or removed.
### Example (from the Vault 1 crew upgrade)
`{"attribute":"data.vault.max","operator":"addition","value":4,"requirement":""}`
- `attribute` - the attribute to affect
- `operator` - what is done to attribute
- `value` - the value for operator
- `requirement` - is not used
### Operators list
- `addition` - is added when item is attached and substracted when removed
- `attribute_change` - changes the "attribute" to value and when removed - uses the "attribute_default" to restore

View file

@ -33,7 +33,7 @@ export class BladesClockSheet extends BladesSheet {
/** @override */
async _updateObject(event, formData) {
let image_path = `/systems/blades-in-the-dark/styles/assets/progressclocks-svg/Progress Clock ${formData['data.type']}-${formData['data.value']}.svg`;
let image_path = `systems/blades-in-the-dark/styles/assets/progressclocks-svg/Progress Clock ${formData['data.type']}-${formData['data.value']}.svg`;
formData['img'] = image_path;
formData['token.img'] = image_path;
let data = [];

View file

@ -245,7 +245,7 @@ Hooks.once("init", async function() {
// Label for 0
html += `<label class="clock-zero-label" for="clock-0-${uniq_id}}"><i class="fab fa-creative-commons-zero nullifier"></i></label>`;
html += `<div id="blades-clock-${uniq_id}" class="blades-clock clock-${type} clock-${type}-${current_value}" style="background-image:url('/systems/blades-in-the-dark/styles/assets/progressclocks-svg/Progress Clock ${type}-${current_value}.svg');">`;
html += `<div id="blades-clock-${uniq_id}" class="blades-clock clock-${type} clock-${type}-${current_value}" style="background-image:url('systems/blades-in-the-dark/styles/assets/progressclocks-svg/Progress Clock ${type}-${current_value}.svg');">`;
let zero_checked = (parseInt(current_value) === 0) ? 'checked="checked"' : '';
html += `<input type="radio" value="0" id="clock-0-${uniq_id}}" name="${parameter_name}" ${zero_checked}>`;

View file

@ -2,7 +2,7 @@
"name": "blades-in-the-dark",
"title": "Blades in the Dark",
"description": "Blades in the dark game system.",
"version": "3.2.2",
"version": "3.3.0",
"minimumCoreVersion": "0.8.5",
"compatibleCoreVersion": "0.8.9",
"templateVersion": 1,
@ -42,7 +42,7 @@
],
"url": "https://github.com/megastruktur/foundryvtt-blades-in-the-dark/",
"manifest": "https://raw.githubusercontent.com/megastruktur/foundryvtt-blades-in-the-dark/master/system.json",
"download": "https://github.com/megastruktur/foundryvtt-blades-in-the-dark/archive/3.2.2.zip",
"download": "https://github.com/megastruktur/foundryvtt-blades-in-the-dark/archive/3.3.0.zip",
"packs": [
{
"name": "class",