Skip to content

Commit

Permalink
483 linkfix (#484)
Browse files Browse the repository at this point in the history
* Icons Update

* First corrections

* Changelog/Version

* vehicle icons added

* #483 RC01

* Vehicle & VehicleAddon

---------

Co-authored-by: Gustl80 <[email protected]>
  • Loading branch information
Algor0113 and Gustl80 authored Nov 12, 2024
1 parent 20ed1b4 commit d69f8ee
Show file tree
Hide file tree
Showing 56 changed files with 37 additions and 7 deletions.
8 changes: 8 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# TORG Eternity Changelog

## v.12.3.2

- Fixing some standard item-icons related things [#483](https://github.com/gmmatt/torgeternity/issues/483)

## v.12.3.1

- Fixing a bug that didn't order the cards inside a deck (just on the interface (app), not the cards themself).

## v. 12.3.0

- Active Defense will now automatically be disposed, when the combat round is over or the combat ends. [#438](https://github.com/gmmatt/torgeternity/issues/438)
Expand Down
Binary file modified images/icons/ammo-icon.webp
Binary file not shown.
Binary file modified images/icons/armor-icon.webp
Binary file not shown.
Binary file modified images/icons/aspirant-icon.webp
Binary file not shown.
Binary file modified images/icons/axe-icon.webp
Binary file not shown.
Binary file modified images/icons/bite-icon.webp
Binary file not shown.
Binary file added images/icons/custom-skills.webp
Binary file not shown.
Binary file modified images/icons/cyberware-icon.webp
Binary file not shown.
Binary file removed images/icons/darkvision-icon.webp
Binary file not shown.
Binary file removed images/icons/dragon-warrior-icon.webp
Binary file not shown.
Binary file modified images/icons/dwarf-icon.webp
Binary file not shown.
Binary file modified images/icons/edeinos-icon.webp
Binary file not shown.
Binary file modified images/icons/elf-icon.webp
Binary file not shown.
Binary file modified images/icons/enhancement.webp
Binary file not shown.
Binary file modified images/icons/eternityshard.webp
Binary file not shown.
Binary file modified images/icons/explosion-icon.webp
Binary file not shown.
Binary file added images/icons/firearm-icon-alt.webp
Binary file not shown.
Binary file modified images/icons/firearm-icon.webp
Binary file not shown.
Binary file removed images/icons/firearm-icon2.webp
Binary file not shown.
Binary file modified images/icons/fist-icon.webp
Binary file not shown.
Binary file added images/icons/frame-icon-alt.webp
Binary file not shown.
Binary file added images/icons/frame-icon.webp
Binary file not shown.
Binary file modified images/icons/gear-icon.webp
Binary file not shown.
Binary file modified images/icons/genemod-icon.webp
Binary file not shown.
Binary file modified images/icons/groundsloth-icon.webp
Binary file not shown.
Binary file added images/icons/heavyweapon-icon-alt.webp
Binary file not shown.
Binary file removed images/icons/heavyweapon-icon2.webp
Binary file not shown.
Binary file modified images/icons/human-icon.webp
Binary file not shown.
Binary file modified images/icons/implant.webp
Binary file not shown.
Binary file modified images/icons/melee-weapon-icon.webp
Binary file not shown.
Binary file modified images/icons/miracles-icon.webp
Binary file not shown.
Binary file modified images/icons/missile-weapon-icon.webp
Binary file not shown.
Binary file removed images/icons/nile-empire.webp
Binary file not shown.
Binary file added images/icons/occultech-icon.webp
Binary file not shown.
Binary file removed images/icons/potion-icon.webp
Binary file not shown.
Binary file removed images/icons/prowess-icon.webp
Binary file not shown.
Binary file modified images/icons/psionicpower.webp
Binary file not shown.
Binary file modified images/icons/race-icon.webp
Binary file not shown.
Binary file modified images/icons/reality-icon.webp
Binary file not shown.
Binary file removed images/icons/savagery-icon.webp
Binary file not shown.
Binary file modified images/icons/shield.webp
Binary file not shown.
Binary file modified images/icons/spell-icon.webp
Binary file not shown.
Binary file modified images/icons/stalenger-icon.webp
Binary file not shown.
Binary file modified images/icons/therace-icon.webp
Binary file not shown.
Binary file modified images/icons/torgeternity-icon.webp
Binary file not shown.
Binary file added images/icons/vehicle-addon-icon.webp
Binary file not shown.
Binary file added images/icons/vehicle-icon.webp
Binary file not shown.
1 change: 1 addition & 0 deletions lang/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@
"damageType": "Schadensart",
"description": "Beschreibung",
"gunner": "Schütze",
"implantType": "Implantattyp",
"maxDex": "Max Ges",
"minStrength": "Min Stä",
"mr": "MF",
Expand Down
1 change: 1 addition & 0 deletions lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@
"damageType": "Damage Type",
"description": "Description",
"gunner": "Gunner",
"implantType": "Implant Type",
"maxDex": "Max Dex",
"minStrength": "Min Str",
"mr": "Maneuver",
Expand Down
1 change: 1 addition & 0 deletions lang/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@
"damageType": "Tipo Daño",
"description": "Descripción",
"gunner": "Gunner",
"implantType": "Implant Type",
"maxDex": "DES Máxima",
"minStrength": "FUE Min",
"mr": "VM",
Expand Down
1 change: 1 addition & 0 deletions lang/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@
"damageType": "Type de dommages",
"description": "Description",
"gunner": "Opérateur",
"implantType": "Type d'implant",
"maxDex": "Dex max",
"minStrength": "Force min",
"mr": "MA",
Expand Down
6 changes: 6 additions & 0 deletions module/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,12 @@ torgeternity.magnitudes = {
billions: 'torgeternity.magnitudes.billions',
};

torgeternity.implantTypes = {
cyberware: 'torgeternity.perkTypes.cyberware',
occultech: 'torgeternity.perkTypes.occultech',
geneMod: 'torgeternity.perkTypes.biotech',
}

torgeternity.statusEffects = [
{
img: 'systems/torgeternity/images/status-markers/stymied.webp',
Expand Down
1 change: 1 addition & 0 deletions module/data/item/implant.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export class ImplantItemData extends GeneralItemData {
return {
...super.defineSchema(),
notes: new fields.StringField({ initial: '' }),
implantType: new fields.StringField({ initial: game.i18n.localize('torgeternity.perkTypes.cyberware') })
};
}

Expand Down
19 changes: 13 additions & 6 deletions module/documents/item/torgeternityItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ export default class TorgeternityItem extends Item {
}

static DEFAULT_ICONS = {
// genemod:'genemod-icon.webp',
// occultech: 'implant.webp',
// cyberware: 'cyberware-icon.webp',
ammunition: 'ammo-icon.webp',
gear: 'gear-icon.webp',
eternityshard: 'eternityshard.webp',
Expand All @@ -64,17 +61,20 @@ export default class TorgeternityItem extends Item {
meleeweapon: 'axe-icon.webp',
missileweapon: 'missile-weapon-icon.webp',
firearm: 'firearm-icon.webp',
implant: 'implant.webp',
implant: 'cyberware-icon.webp',
heavyweapon: 'explosion-icon.webp',
vehicle: 'vehicle.webp',
vehicle: 'vehicle-icon.webp',
vehicleAddOn: 'vehicle-addon-icon.webp',
perk: 'reality-icon.webp',
enhancement: 'enhancement.webp',
specialability: 'torgeternity-icon.webp',
'specialability-rollable': 'specialability-rollable.webp',
'specialability-rollable': 'bite-icon.webp',
spell: 'spell-icon.webp',
miracle: 'miracles-icon.webp',
psionicpower: 'psionicpower.webp',
race: 'race-icon.webp',
customSkill: 'custom-skills.webp',
customAttack: 'melee-weapon-icon.webp',
};

/**
Expand Down Expand Up @@ -158,6 +158,13 @@ export default class TorgeternityItem extends Item {
}
}

async _onUpdate(changed, options, userId) {
await super._onUpdate(changed, options, userId);

if (changed?.system && this.type === 'implant' && Object.keys(changed?.system)[0] === 'implantType' && this.img.includes('systems/torgeternity/images/icons/'))
await this.update({img: `systems/torgeternity/images/icons/${this.system.implantType}-icon.webp`});
}

/**
*
* @param {Item} item the item that gets equipped or unequipped
Expand Down
2 changes: 1 addition & 1 deletion system.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"flags": {}
}
],
"version": "12.3.0",
"version": "12.3.2",
"compatibility": {
"minimum": "12",
"verified": "12.331"
Expand Down
4 changes: 4 additions & 0 deletions templates/sheets/implant-sheet.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ <h1><input name="name" type="text" value="{{item.name}}" placeholder="implant Na
<select name="system.cosm" class="input-box">
{{selectOptions config.cosmTypes selected=item.system.cosm localize=true sort=true}}
</select>
<p class="item-data-label">{{localize "torgeternity.gear.implantType"}}</p>
<select name="system.implantType" class="input-box">
{{selectOptions config.implantTypes selected=item.system.implantType localize=true sort=true}}
</select>
<p class="item-data-label">{{localize "torgeternity.gear.techlevel"}}</p>
<input
name="system.techlevel"
Expand Down

0 comments on commit d69f8ee

Please sign in to comment.