Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 56492c40a0 | |||
| 3634e9da9e | |||
| 0bc6b43ffe | |||
| e75824cd20 | |||
| 189b03ca91 | |||
| 65dfb3ddff | |||
| 809a7b80c2 | |||
| a0de5ce91a | |||
| 888b08fc8d | |||
| 58d9b10251 |
+10
@@ -0,0 +1,10 @@
|
|||||||
|
# IDE
|
||||||
|
.idea/
|
||||||
|
.vs/
|
||||||
|
styles/*.css
|
||||||
|
|
||||||
|
# Node Modules
|
||||||
|
node_modules/
|
||||||
|
|
||||||
|
.history
|
||||||
|
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 895 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.8 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.5 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.6 MiB |
+2047
-59
File diff suppressed because it is too large
Load Diff
+248
-33
@@ -60,36 +60,114 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Character": {
|
"Character": {
|
||||||
|
"str": {
|
||||||
|
"label": "Strength"
|
||||||
|
},
|
||||||
|
"dex": {
|
||||||
|
"label": "Dexterity"
|
||||||
|
},
|
||||||
|
"con": {
|
||||||
|
"label": "Constitution"
|
||||||
|
},
|
||||||
|
"int": {
|
||||||
|
"label": "Intelligence"
|
||||||
|
},
|
||||||
|
"wis": {
|
||||||
|
"label": "Wisdom"
|
||||||
|
},
|
||||||
|
"cha": {
|
||||||
|
"label": "Charisma"
|
||||||
|
},
|
||||||
|
"prowess": {
|
||||||
|
"label": "Prowess",
|
||||||
|
"description": "Physical power and combat capability (STR+DEX)"
|
||||||
|
},
|
||||||
|
"vigor": {
|
||||||
|
"label": "Vigor",
|
||||||
|
"description": "Endurance and physical resilience (STR+CON)"
|
||||||
|
},
|
||||||
|
"competence": {
|
||||||
|
"label": "Competence",
|
||||||
|
"description": "Practical application of knowledge (STR+INT)"
|
||||||
|
},
|
||||||
|
"authority": {
|
||||||
|
"label": "Authority",
|
||||||
|
"description": "Command and leadership presence (STR+WIS)"
|
||||||
|
},
|
||||||
|
"presence": {
|
||||||
|
"label": "Presence",
|
||||||
|
"description": "Physical charisma and intimidation (STR+CHA)"
|
||||||
|
},
|
||||||
|
"stamina": {
|
||||||
|
"label": "Stamina",
|
||||||
|
"description": "Athletic endurance (DEX+CON)"
|
||||||
|
},
|
||||||
|
"initiative": {
|
||||||
|
"label": "Initiative",
|
||||||
|
"description": "Reaction speed and alertness (DEX+INT)"
|
||||||
|
},
|
||||||
|
"wit": {
|
||||||
|
"label": "Wit",
|
||||||
|
"description": "Mental agility and cleverness (DEX+WIS)"
|
||||||
|
},
|
||||||
|
"grace": {
|
||||||
|
"label": "Grace",
|
||||||
|
"description": "Social finesse and charm (DEX+CHA)"
|
||||||
|
},
|
||||||
|
"tenacity": {
|
||||||
|
"label": "Tenacity",
|
||||||
|
"description": "Mental and physical toughness (CON+INT)"
|
||||||
|
},
|
||||||
|
"willpower": {
|
||||||
|
"label": "Willpower",
|
||||||
|
"description": "Inner strength and determination (CON+WIS)"
|
||||||
|
},
|
||||||
|
"resilience": {
|
||||||
|
"label": "Resilience",
|
||||||
|
"description": "Ability to endure hardship (CON+CHA)"
|
||||||
|
},
|
||||||
|
"cunning": {
|
||||||
|
"label": "Cunning",
|
||||||
|
"description": "Strategic thinking (INT+WIS)"
|
||||||
|
},
|
||||||
|
"guile": {
|
||||||
|
"label": "Guile",
|
||||||
|
"description": "Deceptive intellect (INT+CHA)"
|
||||||
|
},
|
||||||
|
"sovereignty": {
|
||||||
|
"label": "Sovereignty",
|
||||||
|
"description": "Diplomatic wisdom and influence (WIS+CHA)"
|
||||||
|
},
|
||||||
"FIELDS": {
|
"FIELDS": {
|
||||||
"moneys": {
|
"moneys": {
|
||||||
"tinbit": {
|
"coppercoin": {
|
||||||
"label": "Tin Bits",
|
"label": "Copper Coin",
|
||||||
"value": {
|
"value": {
|
||||||
"label": "Tin Bits"
|
"label": "Copper Coin"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"silver": {
|
"silvercoin": {
|
||||||
"label": "Silver",
|
"label": "Silver Coin",
|
||||||
"value": {
|
"value": {
|
||||||
"label": "Silver"
|
"label": "Silver Coin"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"copper": {
|
"goldcoin": {
|
||||||
"label": "Copper",
|
"label": "Gold Coin",
|
||||||
"value": {
|
"value": {
|
||||||
"label": "Copper"
|
"label": "Gold Coin"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"gold": {
|
"note": {
|
||||||
"label": "Gold",
|
"label": "Note",
|
||||||
"value": {
|
"value": {
|
||||||
"label": "Gold"
|
"label": "Note"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"platinum": {
|
"steam": {
|
||||||
"label": "Platinum",
|
"label": "Steam",
|
||||||
"value": {
|
"value": {
|
||||||
"label": "Platinum"
|
"label": "Steam"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -282,6 +360,18 @@
|
|||||||
},
|
},
|
||||||
"money": {
|
"money": {
|
||||||
"label": "Money unit"
|
"label": "Money unit"
|
||||||
|
},
|
||||||
|
"isKit": {
|
||||||
|
"label": "Is Kit?"
|
||||||
|
},
|
||||||
|
"passive": {
|
||||||
|
"label": "Passive Name"
|
||||||
|
},
|
||||||
|
"passiveDescription": {
|
||||||
|
"label": "Passive Description"
|
||||||
|
},
|
||||||
|
"specialActivations": {
|
||||||
|
"label": "Special Activations"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -325,7 +415,7 @@
|
|||||||
"rollProgressionDice": "Roll progression/Lethargy dice",
|
"rollProgressionDice": "Roll progression/Lethargy dice",
|
||||||
"earned": "Earned",
|
"earned": "Earned",
|
||||||
"divinityPoints": "Divinity points",
|
"divinityPoints": "Divinity points",
|
||||||
"aetherPoints": "Aether points",
|
"manaPoints": "Mana points",
|
||||||
"attacks": "Attacks",
|
"attacks": "Attacks",
|
||||||
"monster": "Monster",
|
"monster": "Monster",
|
||||||
"Resist" :"Resist",
|
"Resist" :"Resist",
|
||||||
@@ -372,6 +462,11 @@
|
|||||||
"damage": "Damage",
|
"damage": "Damage",
|
||||||
"description": "Description",
|
"description": "Description",
|
||||||
"details": "Details",
|
"details": "Details",
|
||||||
|
"effects": "Effects",
|
||||||
|
"source": "Source",
|
||||||
|
"temporary": "Temporary",
|
||||||
|
"passive": "Passive",
|
||||||
|
"inactive": "Inactive",
|
||||||
"dex": "DEX",
|
"dex": "DEX",
|
||||||
"equipment": "Equipment",
|
"equipment": "Equipment",
|
||||||
"experience": "Experience",
|
"experience": "Experience",
|
||||||
@@ -419,6 +514,8 @@
|
|||||||
"skill": "Skill",
|
"skill": "Skill",
|
||||||
"skillBonus": "Skill bonus",
|
"skillBonus": "Skill bonus",
|
||||||
"skills": "Skills",
|
"skills": "Skills",
|
||||||
|
"sub-attribute": "Sub-Attribute",
|
||||||
|
"subattributes": "Sub-Attributes",
|
||||||
"spells": "Spells",
|
"spells": "Spells",
|
||||||
"str": "STR",
|
"str": "STR",
|
||||||
"titleChallenge": "Challenge",
|
"titleChallenge": "Challenge",
|
||||||
@@ -475,6 +572,7 @@
|
|||||||
"encumbranceLoad": "Encumbrance Load",
|
"encumbranceLoad": "Encumbrance Load",
|
||||||
"isHelmet": "Is Helmet?",
|
"isHelmet": "Is Helmet?",
|
||||||
"equipped": "Equipped?",
|
"equipped": "Equipped?",
|
||||||
|
"isImplement": "Is Implement?",
|
||||||
"armorPassive": "Armor Passive",
|
"armorPassive": "Armor Passive",
|
||||||
"passiveName": "Passive Name",
|
"passiveName": "Passive Name",
|
||||||
"passiveDescription": "Passive Description",
|
"passiveDescription": "Passive Description",
|
||||||
@@ -490,7 +588,8 @@
|
|||||||
"piercing": "Piercing (P)",
|
"piercing": "Piercing (P)",
|
||||||
"bludgeoning": "Bludgeoning (B)",
|
"bludgeoning": "Bludgeoning (B)",
|
||||||
"slashing": "Slashing (S)",
|
"slashing": "Slashing (S)",
|
||||||
"isProjectile": "Is Projectile?",
|
"shortRange": "Short Range",
|
||||||
|
"longRange": "Long Range",
|
||||||
"range": "Range",
|
"range": "Range",
|
||||||
"reloadAPC": "Reload APC",
|
"reloadAPC": "Reload APC",
|
||||||
"bonuses": "Bonuses",
|
"bonuses": "Bonuses",
|
||||||
@@ -499,11 +598,22 @@
|
|||||||
"hands": "Hands Required",
|
"hands": "Hands Required",
|
||||||
"groupPassive": "Weapon Group Passive",
|
"groupPassive": "Weapon Group Passive",
|
||||||
"groupPassiveName": "Group Passive Name",
|
"groupPassiveName": "Group Passive Name",
|
||||||
"weaponPassive": "Weapon Passive",
|
"weaponPassives": "Weapon Passives",
|
||||||
"weaponManeuver": "Weapon Maneuver",
|
"addPassive": "Add Passive",
|
||||||
|
"deletePassive": "Delete Passive",
|
||||||
|
"weaponManeuvers": "Weapon Maneuvers",
|
||||||
|
"addManeuver": "Add Maneuver",
|
||||||
|
"deleteManeuver": "Delete Maneuver",
|
||||||
"maneuverName": "Maneuver Name",
|
"maneuverName": "Maneuver Name",
|
||||||
"maneuverDescription": "Maneuver Description",
|
"maneuverDescription": "Maneuver Description",
|
||||||
"weaponAugment": "Weapon Augment",
|
"weaponAugment": "Weapon Augment",
|
||||||
|
"isKit": "Is Kit?",
|
||||||
|
"kitPassive": "Kit Passive",
|
||||||
|
"specialActivations": "Special Activations",
|
||||||
|
"addSpecialActivation": "Add Special Activation",
|
||||||
|
"deleteSpecialActivation": "Delete Special Activation",
|
||||||
|
"activationName": "Activation Name",
|
||||||
|
"activationDescription": "Activation Description",
|
||||||
"shieldType": "Shield Type",
|
"shieldType": "Shield Type",
|
||||||
"blockAPC": "Block APC",
|
"blockAPC": "Block APC",
|
||||||
"shieldRating": "Shield Rating (SR)",
|
"shieldRating": "Shield Rating (SR)",
|
||||||
@@ -635,9 +745,19 @@
|
|||||||
"heavy": "Heavy Armor"
|
"heavy": "Heavy Armor"
|
||||||
},
|
},
|
||||||
"WeaponGroup": {
|
"WeaponGroup": {
|
||||||
|
"shortsword": "Shortsword",
|
||||||
"longsword": "Longsword",
|
"longsword": "Longsword",
|
||||||
"warhammer": "Warhammer",
|
"greatsword": "Greatsword",
|
||||||
|
"handaxe": "Handaxe",
|
||||||
"battleaxe": "Battleaxe",
|
"battleaxe": "Battleaxe",
|
||||||
|
"greataxe": "Greataxe",
|
||||||
|
"club": "Club",
|
||||||
|
"mace": "Mace",
|
||||||
|
"greatMaul": "Great Maul",
|
||||||
|
"javelin": "Javelin",
|
||||||
|
"spear": "Spear",
|
||||||
|
"longSpear": "Long Spear",
|
||||||
|
"warhammer": "Warhammer",
|
||||||
"dagger": "Dagger",
|
"dagger": "Dagger",
|
||||||
"crossbow": "Crossbow",
|
"crossbow": "Crossbow",
|
||||||
"longbow": "Longbow"
|
"longbow": "Longbow"
|
||||||
@@ -666,6 +786,9 @@
|
|||||||
"violet": "Violet"
|
"violet": "Violet"
|
||||||
},
|
},
|
||||||
"Hint": {
|
"Hint": {
|
||||||
|
"noPassives": "No passives defined. Click the + button to add one.",
|
||||||
|
"noSpecialActivations": "No special activations defined. Click the + button to add one.",
|
||||||
|
"noManeuvers": "No maneuvers defined. Click the + button to add one.",
|
||||||
"isCoreSkill": "Check this if this is your character's chosen Core Skill",
|
"isCoreSkill": "Check this if this is your character's chosen Core Skill",
|
||||||
"attributeBonus": "Choose which attribute receives the +2 bonus",
|
"attributeBonus": "Choose which attribute receives the +2 bonus",
|
||||||
"advancedChecks": "Only Core Skills allow advanced checks",
|
"advancedChecks": "Only Core Skills allow advanced checks",
|
||||||
@@ -678,12 +801,17 @@
|
|||||||
"coreSkills": "List of all 18 available Core Skills in Prism RPG",
|
"coreSkills": "List of all 18 available Core Skills in Prism RPG",
|
||||||
"advancedChecks": "Advanced checks are only available for your Core Skill",
|
"advancedChecks": "Advanced checks are only available for your Core Skill",
|
||||||
"addEquipment": "New equipment",
|
"addEquipment": "New equipment",
|
||||||
"addSpell": "New spells",
|
"addSpell": "Add new spell",
|
||||||
|
"addMiracle": "Add new miracle",
|
||||||
"skill": "Skills list",
|
"skill": "Skills list",
|
||||||
|
"skills": "Skills - Your character's skills and abilities",
|
||||||
"racialAbilities": "Racial Abilities from your character's race and sub-race"
|
"racialAbilities": "Racial Abilities from your character's race and sub-race"
|
||||||
},
|
},
|
||||||
|
"RollSavingThrow": "Roll Saving Throw",
|
||||||
"Message": {
|
"Message": {
|
||||||
"selectCoreSkill": "You must select a Core Skill for your character. Each character chooses one Core Skill at creation."
|
"selectCoreSkill": "You must select a Core Skill for your character. Each character chooses one Core Skill at creation.",
|
||||||
|
"dropRace": "Drag and drop a Race item here",
|
||||||
|
"dropClass": "Drag and drop a Class item here"
|
||||||
},
|
},
|
||||||
"Miracle": {
|
"Miracle": {
|
||||||
"FIELDS": {
|
"FIELDS": {
|
||||||
@@ -752,11 +880,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Money": {
|
"Money": {
|
||||||
"Coppers": "Copper",
|
"CopperCoin": "Copper Coin",
|
||||||
"Golds": "Gold",
|
"SilverCoin": "Silver Coin",
|
||||||
"Platinums": "Platinum",
|
"GoldCoin": "Gold Coin",
|
||||||
"Silvers": "Silver",
|
"Note": "Note",
|
||||||
"Tinbits": "Tin Bits"
|
"Steam": "Steam"
|
||||||
},
|
},
|
||||||
"Notifications": {
|
"Notifications": {
|
||||||
"rollFromWeapon": "Roll from an equipped weapon",
|
"rollFromWeapon": "Roll from an equipped weapon",
|
||||||
@@ -782,7 +910,7 @@
|
|||||||
"save": "Save roll {save}",
|
"save": "Save roll {save}",
|
||||||
"success": "Success",
|
"success": "Success",
|
||||||
"visibility": "Visibility",
|
"visibility": "Visibility",
|
||||||
"favorDisfavor": "Favor/Disfavor"
|
"advantageDisadvantage": "Advantage/Disadvantage"
|
||||||
},
|
},
|
||||||
"Save": {
|
"Save": {
|
||||||
"FIELDS": {
|
"FIELDS": {
|
||||||
@@ -982,10 +1110,10 @@
|
|||||||
"Warning": {},
|
"Warning": {},
|
||||||
"Weapon": {
|
"Weapon": {
|
||||||
"Type": {
|
"Type": {
|
||||||
"light": "Light Weapon",
|
"light": "Light",
|
||||||
"oneHanded": "One-Handed Weapon",
|
"oneHanded": "One-Handed",
|
||||||
"heavy": "Heavy Weapon",
|
"heavy": "Heavy",
|
||||||
"projectile": "Projectile Weapon"
|
"projectile": "Projectile"
|
||||||
},
|
},
|
||||||
"Group": {
|
"Group": {
|
||||||
"longsword": "Longsword",
|
"longsword": "Longsword",
|
||||||
@@ -995,6 +1123,42 @@
|
|||||||
"crossbow": "Crossbow",
|
"crossbow": "Crossbow",
|
||||||
"longbow": "Longbow"
|
"longbow": "Longbow"
|
||||||
},
|
},
|
||||||
|
"Passive": {
|
||||||
|
"quickBlade": "Quick Blade",
|
||||||
|
"turningEdge": "Turning Edge",
|
||||||
|
"cleave": "Cleave",
|
||||||
|
"throwingAxe": "Throwing Axe",
|
||||||
|
"shieldEater": "Shield Eater",
|
||||||
|
"devastatingBlow": "Devastating Blow",
|
||||||
|
"stun": "Stun",
|
||||||
|
"armorBreaker": "Armor Breaker",
|
||||||
|
"earthshatter": "Earthshatter",
|
||||||
|
"piercingThrow": "Piercing Throw",
|
||||||
|
"reach": "Reach",
|
||||||
|
"extendedReach": "Extended Reach",
|
||||||
|
"puncturingBlows": "Puncturing Blows",
|
||||||
|
"balancingStance": "Balancing Stance",
|
||||||
|
"boltlock": "Boltlock",
|
||||||
|
"volleyFire": "Volley Fire"
|
||||||
|
},
|
||||||
|
"PassiveDescription": {
|
||||||
|
"quickBlade": "Your attacks with shortswords cost 1 less APC (minimum 1).",
|
||||||
|
"turningEdge": "When you successfully parry an attack, you may immediately make a free attack against the attacker.",
|
||||||
|
"cleave": "When you kill an enemy, you may make a free attack against an adjacent enemy.",
|
||||||
|
"throwingAxe": "Handaxes can be thrown with a range of 20/60 feet.",
|
||||||
|
"shieldEater": "Your attacks ignore shield bonuses to defense.",
|
||||||
|
"devastatingBlow": "Your critical hits deal maximum damage instead of rolling.",
|
||||||
|
"stun": "When you hit with a club, the target must make a CON save or be stunned until the end of their next turn.",
|
||||||
|
"armorBreaker": "Your attacks ignore 3 points of armor.",
|
||||||
|
"earthshatter": "When you hit with a great maul, all enemies within 5 feet must make a DEX save or be knocked prone.",
|
||||||
|
"piercingThrow": "Your javelin throws ignore cover and deal +2 damage.",
|
||||||
|
"reach": "Your spear attacks have 10 feet of reach.",
|
||||||
|
"extendedReach": "Your long spear attacks have 15 feet of reach.",
|
||||||
|
"puncturingBlows": "Your attacks ignore 2 points of armor.",
|
||||||
|
"balancingStance": "You gain +1 to defense when wielding a dagger.",
|
||||||
|
"boltlock": "Reloading costs 0 APC instead of the normal reload cost.",
|
||||||
|
"volleyFire": "You may attack two targets with a single attack action."
|
||||||
|
},
|
||||||
"DamageType": {
|
"DamageType": {
|
||||||
"piercing": "Piercing",
|
"piercing": "Piercing",
|
||||||
"bludgeoning": "Bludgeoning",
|
"bludgeoning": "Bludgeoning",
|
||||||
@@ -1179,6 +1343,56 @@
|
|||||||
"label": "Class Features"
|
"label": "Class Features"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"Settings": {
|
||||||
|
"customWeaponTypes": {
|
||||||
|
"name": "Custom Weapon Types",
|
||||||
|
"hint": "Custom weapon types configured for this world"
|
||||||
|
},
|
||||||
|
"customWeaponGroups": {
|
||||||
|
"name": "Custom Weapon Groups",
|
||||||
|
"hint": "Custom weapon groups configured for this world"
|
||||||
|
},
|
||||||
|
"weaponTypesConfig": {
|
||||||
|
"name": "Weapon Types Configuration",
|
||||||
|
"hint": "Configure weapon types and weapon groups",
|
||||||
|
"label": "Configure Weapons",
|
||||||
|
"title": "Weapon Types & Groups Configuration"
|
||||||
|
},
|
||||||
|
"tabs": {
|
||||||
|
"weaponTypes": "Weapon Types",
|
||||||
|
"weaponGroups": "Weapon Groups"
|
||||||
|
},
|
||||||
|
"weaponTypes": {
|
||||||
|
"header": "Weapon Types"
|
||||||
|
},
|
||||||
|
"weaponType": {
|
||||||
|
"id": "ID",
|
||||||
|
"label": "Label",
|
||||||
|
"apc": "Action Point Cost",
|
||||||
|
"hands": "Hands Required"
|
||||||
|
},
|
||||||
|
"weaponGroups": {
|
||||||
|
"header": "Weapon Groups"
|
||||||
|
},
|
||||||
|
"weaponGroup": {
|
||||||
|
"id": "ID",
|
||||||
|
"label": "Label",
|
||||||
|
"passive": "Passive ID",
|
||||||
|
"passiveLabel": "Passive Label",
|
||||||
|
"passiveDescription": "Passive Description"
|
||||||
|
},
|
||||||
|
"addWeaponType": "Add Weapon Type",
|
||||||
|
"deleteWeaponType": "Delete Weapon Type",
|
||||||
|
"addWeaponGroup": "Add Weapon Group",
|
||||||
|
"deleteWeaponGroup": "Delete Weapon Group",
|
||||||
|
"resetDefaults": "Reset to Defaults",
|
||||||
|
"save": "Save Changes",
|
||||||
|
"weaponTypesSaved": "Weapon types and groups saved successfully",
|
||||||
|
"resetConfirm": {
|
||||||
|
"title": "Reset to Defaults?",
|
||||||
|
"content": "This will reset all weapon types and groups to their default values. Are you sure?"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"TYPES": {
|
"TYPES": {
|
||||||
@@ -1198,7 +1412,8 @@
|
|||||||
"vulnerability": "Vulnerability",
|
"vulnerability": "Vulnerability",
|
||||||
"weapon": "Weapon",
|
"weapon": "Weapon",
|
||||||
"race": "Race",
|
"race": "Race",
|
||||||
"class": "Class"
|
"class": "Class",
|
||||||
|
"character-path": "Character Path"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -11,3 +11,5 @@ export { default as PrismRPGShieldSheet } from "./sheets/shield-sheet.mjs"
|
|||||||
export { default as PrismRPGMiracleSheet } from "./sheets/miracle-sheet.mjs"
|
export { default as PrismRPGMiracleSheet } from "./sheets/miracle-sheet.mjs"
|
||||||
export { default as PrismRPGRaceSheet } from "./sheets/race-sheet.mjs"
|
export { default as PrismRPGRaceSheet } from "./sheets/race-sheet.mjs"
|
||||||
export { default as PrismRPGClassSheet } from "./sheets/class-sheet.mjs"
|
export { default as PrismRPGClassSheet } from "./sheets/class-sheet.mjs"
|
||||||
|
export { default as PrismRPGCharacterPathSheet } from "./sheets/character-path-sheet.mjs"
|
||||||
|
export { WeaponTypesConfig } from "./weapon-types-config.mjs"
|
||||||
|
|||||||
@@ -19,10 +19,32 @@ export default class PrismRPGArmorSheet extends PrismRPGItemSheet {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @override */
|
||||||
|
tabGroups = {
|
||||||
|
primary: "details",
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prepare an array of form header tabs.
|
||||||
|
* @returns {Record<string, Partial<ApplicationTab>>}
|
||||||
|
*/
|
||||||
|
#getTabs() {
|
||||||
|
const tabs = {
|
||||||
|
details: { id: "details", group: "primary", label: "PRISMRPG.Label.details" },
|
||||||
|
description: { id: "description", group: "primary", label: "PRISMRPG.Label.description" },
|
||||||
|
effects: { id: "effects", group: "primary", label: "PRISMRPG.Label.effects" },
|
||||||
|
}
|
||||||
|
for (const v of Object.values(tabs)) {
|
||||||
|
v.active = this.tabGroups[v.group] === v.id
|
||||||
|
v.cssClass = v.active ? "active" : ""
|
||||||
|
}
|
||||||
|
return tabs
|
||||||
|
}
|
||||||
|
|
||||||
/** @override */
|
/** @override */
|
||||||
async _prepareContext() {
|
async _prepareContext() {
|
||||||
const context = await super._prepareContext()
|
const context = await super._prepareContext()
|
||||||
|
context.tabs = this.#getTabs()
|
||||||
context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true })
|
context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true })
|
||||||
context.enrichedPassiveDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.passiveDescription, { async: true })
|
context.enrichedPassiveDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.passiveDescription, { async: true })
|
||||||
context.enrichedAugmentDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.augmentDescription, { async: true })
|
context.enrichedAugmentDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.augmentDescription, { async: true })
|
||||||
|
|||||||
@@ -31,6 +31,9 @@ export default class PrismRPGItemSheet extends HandlebarsApplicationMixin(foundr
|
|||||||
actions: {
|
actions: {
|
||||||
toggleSheet: PrismRPGItemSheet.#onToggleSheet,
|
toggleSheet: PrismRPGItemSheet.#onToggleSheet,
|
||||||
editImage: PrismRPGItemSheet.#onEditImage,
|
editImage: PrismRPGItemSheet.#onEditImage,
|
||||||
|
"create-effect": PrismRPGItemSheet.#onCreateActiveEffect,
|
||||||
|
"effect-edit": PrismRPGItemSheet.#onEffectEdit,
|
||||||
|
"effect-delete": PrismRPGItemSheet.#onEffectDelete,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -65,6 +68,7 @@ export default class PrismRPGItemSheet extends HandlebarsApplicationMixin(foundr
|
|||||||
context.system = this.document.system
|
context.system = this.document.system
|
||||||
context.source = this.document.toObject()
|
context.source = this.document.toObject()
|
||||||
context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true })
|
context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true })
|
||||||
|
context.effectCategories = this.#prepareActiveEffectCategories(this.document.effects)
|
||||||
context.isEditMode = this.isEditMode
|
context.isEditMode = this.isEditMode
|
||||||
context.isPlayMode = this.isPlayMode
|
context.isPlayMode = this.isPlayMode
|
||||||
context.isEditable = this.isEditable
|
context.isEditable = this.isEditable
|
||||||
@@ -75,6 +79,20 @@ export default class PrismRPGItemSheet extends HandlebarsApplicationMixin(foundr
|
|||||||
_onRender(context, options) {
|
_onRender(context, options) {
|
||||||
super._onRender(context, options)
|
super._onRender(context, options)
|
||||||
this.#dragDrop.forEach((d) => d.bind(this.element))
|
this.#dragDrop.forEach((d) => d.bind(this.element))
|
||||||
|
|
||||||
|
// Activate tab navigation
|
||||||
|
const nav = this.element.querySelector('nav.tabs[data-group]')
|
||||||
|
if (nav) {
|
||||||
|
const group = nav.dataset.group
|
||||||
|
nav.querySelectorAll('[data-tab]').forEach(link => {
|
||||||
|
link.addEventListener('click', (event) => {
|
||||||
|
event.preventDefault()
|
||||||
|
const tab = event.currentTarget.dataset.tab
|
||||||
|
this.tabGroups[group] = tab
|
||||||
|
this.render()
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// #region Drag-and-Drop Workflow
|
// #region Drag-and-Drop Workflow
|
||||||
@@ -189,5 +207,99 @@ export default class PrismRPGItemSheet extends HandlebarsApplicationMixin(foundr
|
|||||||
})
|
})
|
||||||
return fp.browse()
|
return fp.browse()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prepare Active Effects organized by category (temporary, passive, inactive).
|
||||||
|
* @param {ActiveEffect[]} effects The raw Active Effects collection
|
||||||
|
* @returns {object} The categorized effects
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
|
#prepareActiveEffectCategories(effects) {
|
||||||
|
// Define effect header categories
|
||||||
|
const categories = {
|
||||||
|
temporary: {
|
||||||
|
type: "temporary",
|
||||||
|
label: game.i18n.localize("PRISMRPG.Label.temporary"),
|
||||||
|
effects: [],
|
||||||
|
},
|
||||||
|
passive: {
|
||||||
|
type: "passive",
|
||||||
|
label: game.i18n.localize("PRISMRPG.Label.passive"),
|
||||||
|
effects: [],
|
||||||
|
},
|
||||||
|
inactive: {
|
||||||
|
type: "inactive",
|
||||||
|
label: game.i18n.localize("PRISMRPG.Label.inactive"),
|
||||||
|
effects: [],
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
// Iterate over active effects, classifying them into categories
|
||||||
|
for (let e of effects) {
|
||||||
|
const effect = e.toObject()
|
||||||
|
if (e.disabled) categories.inactive.effects.push(effect)
|
||||||
|
else if (e.isTemporary) categories.temporary.effects.push(effect)
|
||||||
|
else categories.passive.effects.push(effect)
|
||||||
|
}
|
||||||
|
return categories
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Handle creating a new Active Effect on the Item.
|
||||||
|
* @param {Event} event The initiating click event.
|
||||||
|
* @param {HTMLElement} target The current target of the event listener.
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
|
static async #onCreateActiveEffect(event, target) {
|
||||||
|
const effectType = target.dataset.effectType
|
||||||
|
let durationValue = undefined
|
||||||
|
let disabled = false
|
||||||
|
|
||||||
|
if (effectType === "temporary") {
|
||||||
|
durationValue = 10
|
||||||
|
}
|
||||||
|
if (effectType === "inactive") {
|
||||||
|
disabled = true
|
||||||
|
}
|
||||||
|
|
||||||
|
const effectData = {
|
||||||
|
name: game.i18n.format("DOCUMENT.New", { type: game.i18n.localize("DOCUMENT.ActiveEffect") }),
|
||||||
|
img: "icons/svg/aura.svg",
|
||||||
|
origin: this.document.uuid,
|
||||||
|
disabled: disabled,
|
||||||
|
changes: [],
|
||||||
|
duration: durationValue !== undefined ? { rounds: durationValue } : {},
|
||||||
|
flags: {}
|
||||||
|
}
|
||||||
|
await this.document.createEmbeddedDocuments("ActiveEffect", [effectData])
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Handle editing an Active Effect on the Item.
|
||||||
|
* @param {Event} event The initiating click event.
|
||||||
|
* @param {HTMLElement} target The current target of the event listener.
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
|
static async #onEffectEdit(event, target) {
|
||||||
|
const li = target.closest(".item")
|
||||||
|
const effectId = li.dataset.itemId
|
||||||
|
const effect = this.document.effects.get(effectId)
|
||||||
|
if (!effect) return
|
||||||
|
effect.sheet.render(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Handle deleting an Active Effect from the Item.
|
||||||
|
* @param {Event} event The initiating click event.
|
||||||
|
* @param {HTMLElement} target The current target of the event listener.
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
|
static async #onEffectDelete(event, target) {
|
||||||
|
const li = target.closest(".item")
|
||||||
|
const effectId = li.dataset.itemId
|
||||||
|
const effect = this.document.effects.get(effectId)
|
||||||
|
if (!effect) return
|
||||||
|
await effect.delete()
|
||||||
|
}
|
||||||
// #endregion
|
// #endregion
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,50 @@
|
|||||||
|
import PrismRPGItemSheet from "./base-item-sheet.mjs"
|
||||||
|
|
||||||
|
export default class PrismRPGCharacterPathSheet extends PrismRPGItemSheet {
|
||||||
|
/** @override */
|
||||||
|
static DEFAULT_OPTIONS = {
|
||||||
|
classes: ["character-path"],
|
||||||
|
position: {
|
||||||
|
width: 600,
|
||||||
|
},
|
||||||
|
window: {
|
||||||
|
contentClasses: ["character-path-content"],
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @override */
|
||||||
|
static PARTS = {
|
||||||
|
main: {
|
||||||
|
template: "systems/fvtt-prism-rpg/templates/character-path.hbs",
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @override */
|
||||||
|
tabGroups = {
|
||||||
|
primary: "description",
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prepare an array of form header tabs.
|
||||||
|
* @returns {Record<string, Partial<ApplicationTab>>}
|
||||||
|
*/
|
||||||
|
#getTabs() {
|
||||||
|
const tabs = {
|
||||||
|
description: { id: "description", group: "primary", label: "PRISMRPG.Label.description" },
|
||||||
|
effects: { id: "effects", group: "primary", label: "PRISMRPG.Label.effects" },
|
||||||
|
}
|
||||||
|
for (const v of Object.values(tabs)) {
|
||||||
|
v.active = this.tabGroups[v.group] === v.id
|
||||||
|
v.cssClass = v.active ? "active" : ""
|
||||||
|
}
|
||||||
|
return tabs
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @override */
|
||||||
|
async _prepareContext() {
|
||||||
|
const context = await super._prepareContext()
|
||||||
|
context.tabs = this.#getTabs()
|
||||||
|
return context
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -1,12 +1,13 @@
|
|||||||
import PrismRPGActorSheet from "./base-actor-sheet.mjs"
|
import PrismRPGActorSheet from "./base-actor-sheet.mjs"
|
||||||
import PrismRPGRoll from "../../documents/roll.mjs"
|
import PrismRPGRoll from "../../documents/roll.mjs"
|
||||||
|
import { SYSTEM } from "../../config/system.mjs"
|
||||||
|
|
||||||
export default class PrismRPGCharacterSheet extends PrismRPGActorSheet {
|
export default class PrismRPGCharacterSheet extends PrismRPGActorSheet {
|
||||||
/** @override */
|
/** @override */
|
||||||
static DEFAULT_OPTIONS = {
|
static DEFAULT_OPTIONS = {
|
||||||
classes: ["character"],
|
classes: ["character"],
|
||||||
position: {
|
position: {
|
||||||
width: 972,
|
width: 780,
|
||||||
height: 780,
|
height: 780,
|
||||||
},
|
},
|
||||||
window: {
|
window: {
|
||||||
@@ -14,14 +15,13 @@ export default class PrismRPGCharacterSheet extends PrismRPGActorSheet {
|
|||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
createEquipment: PrismRPGCharacterSheet.#onCreateEquipment,
|
createEquipment: PrismRPGCharacterSheet.#onCreateEquipment,
|
||||||
rangedAttackDefense: PrismRPGCharacterSheet.#onRangedAttackDefense,
|
|
||||||
rollInitiative: PrismRPGCharacterSheet.#onRollInitiative,
|
rollInitiative: PrismRPGCharacterSheet.#onRollInitiative,
|
||||||
armorHitPointsPlus: PrismRPGCharacterSheet.#onArmorHitPointsPlus,
|
armorHitPointsPlus: PrismRPGCharacterSheet.#onArmorHitPointsPlus,
|
||||||
armorHitPointsMinus: PrismRPGCharacterSheet.#onArmorHitPointsMinus,
|
armorHitPointsMinus: PrismRPGCharacterSheet.#onArmorHitPointsMinus,
|
||||||
divinityPointsPlus: PrismRPGCharacterSheet.#onDivinityPointsPlus,
|
manaPointsPlus: PrismRPGCharacterSheet.#onManaPointsPlus,
|
||||||
divinityPointsMinus: PrismRPGCharacterSheet.#onDivinityPointsMinus,
|
manaPointsMinus: PrismRPGCharacterSheet.#onManaPointsMinus,
|
||||||
aetherPointsPlus: PrismRPGCharacterSheet.#onAetherPointsPlus,
|
hpPlus: PrismRPGCharacterSheet.#onHpPlus,
|
||||||
aetherPointsMinus: PrismRPGCharacterSheet.#onAetherPointsMinus,
|
hpMinus: PrismRPGCharacterSheet.#onHpMinus,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -36,6 +36,9 @@ export default class PrismRPGCharacterSheet extends PrismRPGActorSheet {
|
|||||||
skills: {
|
skills: {
|
||||||
template: "systems/fvtt-prism-rpg/templates/character-skills.hbs",
|
template: "systems/fvtt-prism-rpg/templates/character-skills.hbs",
|
||||||
},
|
},
|
||||||
|
subattributes: {
|
||||||
|
template: "systems/fvtt-prism-rpg/templates/character-subattributes.hbs",
|
||||||
|
},
|
||||||
combat: {
|
combat: {
|
||||||
template: "systems/fvtt-prism-rpg/templates/character-combat.hbs",
|
template: "systems/fvtt-prism-rpg/templates/character-combat.hbs",
|
||||||
},
|
},
|
||||||
@@ -45,11 +48,6 @@ export default class PrismRPGCharacterSheet extends PrismRPGActorSheet {
|
|||||||
spells: {
|
spells: {
|
||||||
template: "systems/fvtt-prism-rpg/templates/character-spells.hbs",
|
template: "systems/fvtt-prism-rpg/templates/character-spells.hbs",
|
||||||
},
|
},
|
||||||
/* Miracles disabled - Legacy from Lethal Fantasy
|
|
||||||
miracles: {
|
|
||||||
template: "systems/fvtt-prism-rpg/templates/character-miracles.hbs",
|
|
||||||
},
|
|
||||||
*/
|
|
||||||
biography: {
|
biography: {
|
||||||
template: "systems/fvtt-prism-rpg/templates/character-biography.hbs",
|
template: "systems/fvtt-prism-rpg/templates/character-biography.hbs",
|
||||||
},
|
},
|
||||||
@@ -67,6 +65,7 @@ export default class PrismRPGCharacterSheet extends PrismRPGActorSheet {
|
|||||||
#getTabs() {
|
#getTabs() {
|
||||||
let tabs = {
|
let tabs = {
|
||||||
skills: { id: "skills", group: "sheet", icon: "fa-solid fa-shapes", label: "PRISMRPG.Label.skills" },
|
skills: { id: "skills", group: "sheet", icon: "fa-solid fa-shapes", label: "PRISMRPG.Label.skills" },
|
||||||
|
subattributes: { id: "subattributes", group: "sheet", icon: "fa-solid fa-diagram-project", label: "PRISMRPG.Label.subattributes" },
|
||||||
combat: { id: "combat", group: "sheet", icon: "fa-solid fa-swords", label: "PRISMRPG.Label.combat" },
|
combat: { id: "combat", group: "sheet", icon: "fa-solid fa-swords", label: "PRISMRPG.Label.combat" },
|
||||||
equipment: { id: "equipment", group: "sheet", icon: "fa-solid fa-backpack", label: "PRISMRPG.Label.equipment" },
|
equipment: { id: "equipment", group: "sheet", icon: "fa-solid fa-backpack", label: "PRISMRPG.Label.equipment" },
|
||||||
biography: { id: "biography", group: "sheet", icon: "fa-solid fa-book", label: "PRISMRPG.Label.biography" },
|
biography: { id: "biography", group: "sheet", icon: "fa-solid fa-book", label: "PRISMRPG.Label.biography" },
|
||||||
@@ -74,11 +73,6 @@ export default class PrismRPGCharacterSheet extends PrismRPGActorSheet {
|
|||||||
if (this.actor.system.biodata.magicUser) {
|
if (this.actor.system.biodata.magicUser) {
|
||||||
tabs.spells = { id: "spells", group: "sheet", icon: "fa-sharp-duotone fa-solid fa-wand-magic-sparkles", label: "PRISMRPG.Label.spells" }
|
tabs.spells = { id: "spells", group: "sheet", icon: "fa-sharp-duotone fa-solid fa-wand-magic-sparkles", label: "PRISMRPG.Label.spells" }
|
||||||
}
|
}
|
||||||
/* Miracles disabled - Legacy from Lethal Fantasy
|
|
||||||
if (this.actor.system.biodata.clericUser) {
|
|
||||||
tabs.miracles = { id: "miracles", group: "sheet", icon: "fa-sharp-duotone fa-solid fa-hands-praying", label: "PRISMRPG.Label.miracles" }
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
for (const v of Object.values(tabs)) {
|
for (const v of Object.values(tabs)) {
|
||||||
v.active = this.tabGroups[v.group] === v.id
|
v.active = this.tabGroups[v.group] === v.id
|
||||||
v.cssClass = v.active ? "active" : ""
|
v.cssClass = v.active ? "active" : ""
|
||||||
@@ -90,6 +84,7 @@ export default class PrismRPGCharacterSheet extends PrismRPGActorSheet {
|
|||||||
async _prepareContext() {
|
async _prepareContext() {
|
||||||
const context = await super._prepareContext()
|
const context = await super._prepareContext()
|
||||||
context.tabs = this.#getTabs()
|
context.tabs = this.#getTabs()
|
||||||
|
context.config = SYSTEM
|
||||||
|
|
||||||
return context
|
return context
|
||||||
}
|
}
|
||||||
@@ -99,6 +94,14 @@ export default class PrismRPGCharacterSheet extends PrismRPGActorSheet {
|
|||||||
const doc = this.document
|
const doc = this.document
|
||||||
switch (partId) {
|
switch (partId) {
|
||||||
case "main":
|
case "main":
|
||||||
|
context.race = doc.itemTypes.race?.[0] || null
|
||||||
|
const classes = doc.itemTypes.class || []
|
||||||
|
// Create 3 class slots
|
||||||
|
context.classSlots = [
|
||||||
|
classes[0] || null,
|
||||||
|
classes[1] || null,
|
||||||
|
classes[2] || null
|
||||||
|
]
|
||||||
break
|
break
|
||||||
case "skills":
|
case "skills":
|
||||||
context.tab = context.tabs.skills
|
context.tab = context.tabs.skills
|
||||||
@@ -106,18 +109,14 @@ export default class PrismRPGCharacterSheet extends PrismRPGActorSheet {
|
|||||||
context.racialAbilities = doc.itemTypes["racial-ability"]
|
context.racialAbilities = doc.itemTypes["racial-ability"]
|
||||||
context.vulnerabilities = doc.itemTypes.vulnerability
|
context.vulnerabilities = doc.itemTypes.vulnerability
|
||||||
break
|
break
|
||||||
|
case "subattributes":
|
||||||
|
context.tab = context.tabs.subattributes
|
||||||
|
break
|
||||||
case "spells":
|
case "spells":
|
||||||
context.tab = context.tabs.spells
|
context.tab = context.tabs.spells
|
||||||
context.spells = doc.itemTypes.spell
|
context.spells = doc.itemTypes.spell
|
||||||
context.hasSpells = context.spells.length > 0
|
context.hasSpells = context.spells.length > 0
|
||||||
break
|
break
|
||||||
/* Miracles disabled - Legacy from Lethal Fantasy
|
|
||||||
case "miracles":
|
|
||||||
context.tab = context.tabs.miracles
|
|
||||||
context.miracles = doc.itemTypes.miracle
|
|
||||||
context.hasMiracles = context.miracles.length > 0
|
|
||||||
break
|
|
||||||
*/
|
|
||||||
case "combat":
|
case "combat":
|
||||||
context.tab = context.tabs.combat
|
context.tab = context.tabs.combat
|
||||||
context.weapons = doc.itemTypes.weapon
|
context.weapons = doc.itemTypes.weapon
|
||||||
@@ -155,19 +154,6 @@ export default class PrismRPGCharacterSheet extends PrismRPGActorSheet {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static async #onRangedAttackDefense(event, target) {
|
|
||||||
// Future use : const hasTarget = false
|
|
||||||
|
|
||||||
let roll = await PrismRPGRoll.promptRangedDefense({
|
|
||||||
actorId: this.actor.id,
|
|
||||||
actorName: this.actor.name,
|
|
||||||
actorImage: this.actor.img,
|
|
||||||
})
|
|
||||||
if (!roll) return null
|
|
||||||
|
|
||||||
await roll.toMessage({}, { rollMode: roll.options.rollMode })
|
|
||||||
}
|
|
||||||
|
|
||||||
static async #onRollInitiative(event, target) {
|
static async #onRollInitiative(event, target) {
|
||||||
await this.document.system.rollInitiative()
|
await this.document.system.rollInitiative()
|
||||||
}
|
}
|
||||||
@@ -184,32 +170,28 @@ export default class PrismRPGCharacterSheet extends PrismRPGActorSheet {
|
|||||||
this.actor.update({ "system.combat.armorHitPoints": Math.max(armorHP, 0) })
|
this.actor.update({ "system.combat.armorHitPoints": Math.max(armorHP, 0) })
|
||||||
}
|
}
|
||||||
|
|
||||||
static #onDivinityPointsPlus(event, target) {
|
static #onManaPointsPlus(event, target) {
|
||||||
let points = this.actor.system.divinityPoints.value
|
let mana = this.actor.system.manaPoints.value
|
||||||
points += 1
|
mana += 1
|
||||||
points = Math.min(points, this.actor.system.divinityPoints.max)
|
this.actor.update({ "system.manaPoints.value": Math.min(mana, this.actor.system.manaPoints.max) })
|
||||||
this.actor.update({ "system.divinityPoints.value": points })
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static #onDivinityPointsMinus(event, target) {
|
static #onManaPointsMinus(event, target) {
|
||||||
let points = this.actor.system.divinityPoints.value
|
let mana = this.actor.system.manaPoints.value
|
||||||
points -= 1
|
mana -= 1
|
||||||
points = Math.max(points, 0)
|
this.actor.update({ "system.manaPoints.value": Math.max(mana, 0) })
|
||||||
this.actor.update({ "system.divinityPoints.value": points })
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static #onAetherPointsPlus(event, target) {
|
static #onHpPlus(event, target) {
|
||||||
let points = this.actor.system.aetherPoints.value
|
let hp = this.actor.system.hp.value
|
||||||
points += 1
|
hp += 1
|
||||||
points = Math.min(points, this.actor.system.aetherPoints.max)
|
this.actor.update({ "system.hp.value": Math.min(hp, this.actor.system.hp.max) })
|
||||||
this.actor.update({ "system.aetherPoints.value": points })
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static #onAetherPointsMinus(event, target) {
|
static #onHpMinus(event, target) {
|
||||||
let points = this.actor.system.aetherPoints.value
|
let hp = this.actor.system.hp.value
|
||||||
points -= 1
|
hp -= 1
|
||||||
points = Math.max(points, 0)
|
this.actor.update({ "system.hp.value": Math.max(hp, 0) })
|
||||||
this.actor.update({ "system.aetherPoints.value": points })
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static #onCreateEquipment(event, target) {
|
static #onCreateEquipment(event, target) {
|
||||||
@@ -252,9 +234,11 @@ export default class PrismRPGCharacterSheet extends PrismRPGActorSheet {
|
|||||||
|
|
||||||
async _onRoll(event, target) {
|
async _onRoll(event, target) {
|
||||||
if (this.isEditMode) return
|
if (this.isEditMode) return
|
||||||
const rollType = event.target.dataset.rollType
|
// Use closest to find the rollable element in case user clicked on a child
|
||||||
let rollKey = event.target.dataset.rollKey;
|
const rollableElement = event.target.closest('.rollable') || event.target
|
||||||
let rollDice = event.target.dataset?.rollDice;
|
const rollType = rollableElement.dataset.rollType
|
||||||
|
let rollKey = rollableElement.dataset.rollKey;
|
||||||
|
let rollDice = rollableElement.dataset?.rollDice;
|
||||||
|
|
||||||
this.actor.prepareRoll(rollType, rollKey, rollDice)
|
this.actor.prepareRoll(rollType, rollKey, rollDice)
|
||||||
|
|
||||||
|
|||||||
@@ -20,9 +20,31 @@ export default class PrismRPGClassSheet extends PrismRPGItemSheet {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @override */
|
||||||
|
tabGroups = {
|
||||||
|
primary: "details",
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prepare an array of form header tabs.
|
||||||
|
* @returns {Record<string, Partial<ApplicationTab>>}
|
||||||
|
*/
|
||||||
|
#getTabs() {
|
||||||
|
const tabs = {
|
||||||
|
details: { id: "details", group: "primary", label: "PRISMRPG.Label.details" },
|
||||||
|
description: { id: "description", group: "primary", label: "PRISMRPG.Label.description" },
|
||||||
|
}
|
||||||
|
for (const v of Object.values(tabs)) {
|
||||||
|
v.active = this.tabGroups[v.group] === v.id
|
||||||
|
v.cssClass = v.active ? "active" : ""
|
||||||
|
}
|
||||||
|
return tabs
|
||||||
|
}
|
||||||
|
|
||||||
/** @override */
|
/** @override */
|
||||||
async _prepareContext() {
|
async _prepareContext() {
|
||||||
const context = await super._prepareContext()
|
const context = await super._prepareContext()
|
||||||
|
context.tabs = this.#getTabs()
|
||||||
context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true })
|
context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true })
|
||||||
context.enrichedAttributeBonuses = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.attributeBonuses, { async: true })
|
context.enrichedAttributeBonuses = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.attributeBonuses, { async: true })
|
||||||
context.enrichedNotes = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.notes, { async: true })
|
context.enrichedNotes = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.notes, { async: true })
|
||||||
|
|||||||
@@ -19,10 +19,75 @@ export default class PrismRPGEquipmentSheet extends PrismRPGItemSheet {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @override */
|
||||||
|
tabGroups = {
|
||||||
|
primary: "details",
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prepare an array of form header tabs.
|
||||||
|
* @returns {Record<string, Partial<ApplicationTab>>}
|
||||||
|
*/
|
||||||
|
#getTabs() {
|
||||||
|
const tabs = {
|
||||||
|
details: { id: "details", group: "primary", label: "PRISMRPG.Label.details" },
|
||||||
|
description: { id: "description", group: "primary", label: "PRISMRPG.Label.description" },
|
||||||
|
effects: { id: "effects", group: "primary", label: "PRISMRPG.Label.effects" },
|
||||||
|
}
|
||||||
|
for (const v of Object.values(tabs)) {
|
||||||
|
v.active = this.tabGroups[v.group] === v.id
|
||||||
|
v.cssClass = v.active ? "active" : ""
|
||||||
|
}
|
||||||
|
return tabs
|
||||||
|
}
|
||||||
|
|
||||||
/** @override */
|
/** @override */
|
||||||
async _prepareContext() {
|
async _prepareContext() {
|
||||||
const context = await super._prepareContext()
|
const context = await super._prepareContext()
|
||||||
|
context.tabs = this.#getTabs()
|
||||||
context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true })
|
context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true })
|
||||||
|
|
||||||
|
// Enrich passive description if equipment is a kit
|
||||||
|
if (this.document.system.isKit && this.document.system.passiveDescription) {
|
||||||
|
context.enrichedPassiveDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.passiveDescription, { async: true })
|
||||||
|
}
|
||||||
|
|
||||||
|
// Enrich descriptions for all special activations
|
||||||
|
context.enrichedSpecialActivations = await Promise.all(
|
||||||
|
this.document.system.specialActivations.map(async (activation) => ({
|
||||||
|
...activation,
|
||||||
|
enrichedDescription: await foundry.applications.ux.TextEditor.implementation.enrichHTML(activation.description, { async: true })
|
||||||
|
}))
|
||||||
|
)
|
||||||
|
|
||||||
return context
|
return context
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @override */
|
||||||
|
_onRender(context, options) {
|
||||||
|
super._onRender(context, options)
|
||||||
|
|
||||||
|
// Add event listeners for special activation management
|
||||||
|
this.element.querySelectorAll('[data-action="add-special-activation"]').forEach(el => {
|
||||||
|
el.addEventListener("click", this._onAddSpecialActivation.bind(this))
|
||||||
|
})
|
||||||
|
|
||||||
|
this.element.querySelectorAll('[data-action="delete-special-activation"]').forEach(el => {
|
||||||
|
el.addEventListener("click", this._onDeleteSpecialActivation.bind(this))
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
async _onAddSpecialActivation(event) {
|
||||||
|
event.preventDefault()
|
||||||
|
const specialActivations = [...this.document.system.specialActivations]
|
||||||
|
specialActivations.push({ name: "", description: "" })
|
||||||
|
await this.document.update({ "system.specialActivations": specialActivations })
|
||||||
|
}
|
||||||
|
|
||||||
|
async _onDeleteSpecialActivation(event) {
|
||||||
|
event.preventDefault()
|
||||||
|
const index = parseInt(event.currentTarget.closest("[data-activation-index]").dataset.activationIndex)
|
||||||
|
const specialActivations = this.document.system.specialActivations.filter((_, i) => i !== index)
|
||||||
|
await this.document.update({ "system.specialActivations": specialActivations })
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,9 +19,32 @@ export default class PrismRPGMiracleSheet extends PrismRPGItemSheet {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @override */
|
||||||
|
tabGroups = {
|
||||||
|
primary: "details",
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prepare an array of form header tabs.
|
||||||
|
* @returns {Record<string, Partial<ApplicationTab>>}
|
||||||
|
*/
|
||||||
|
#getTabs() {
|
||||||
|
const tabs = {
|
||||||
|
details: { id: "details", group: "primary", label: "PRISMRPG.Label.details" },
|
||||||
|
description: { id: "description", group: "primary", label: "PRISMRPG.Label.description" },
|
||||||
|
effects: { id: "effects", group: "primary", label: "PRISMRPG.Label.effects" },
|
||||||
|
}
|
||||||
|
for (const v of Object.values(tabs)) {
|
||||||
|
v.active = this.tabGroups[v.group] === v.id
|
||||||
|
v.cssClass = v.active ? "active" : ""
|
||||||
|
}
|
||||||
|
return tabs
|
||||||
|
}
|
||||||
|
|
||||||
/** @override */
|
/** @override */
|
||||||
async _prepareContext() {
|
async _prepareContext() {
|
||||||
const context = await super._prepareContext()
|
const context = await super._prepareContext()
|
||||||
|
context.tabs = this.#getTabs()
|
||||||
context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true })
|
context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true })
|
||||||
return context
|
return context
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -162,9 +162,11 @@ export default class PrismRPGMonsterSheet extends PrismRPGActorSheet {
|
|||||||
|
|
||||||
async _onRoll(event, target) {
|
async _onRoll(event, target) {
|
||||||
if (this.isEditMode) return
|
if (this.isEditMode) return
|
||||||
const rollType = event.target.dataset.rollType
|
// Use closest to find the rollable element in case user clicked on a child
|
||||||
let rollKey = event.target.dataset.rollKey
|
const rollableElement = event.target.closest('.rollable') || event.target
|
||||||
let rollDice = event.target.dataset?.rollDice || "0"
|
const rollType = rollableElement.dataset.rollType
|
||||||
|
let rollKey = rollableElement.dataset.rollKey
|
||||||
|
let rollDice = rollableElement.dataset?.rollDice || "0"
|
||||||
this.actor.system.prepareMonsterRoll(rollType, rollKey, rollDice)
|
this.actor.system.prepareMonsterRoll(rollType, rollKey, rollDice)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,9 +19,31 @@ export default class PrismRPGRaceSheet extends PrismRPGItemSheet {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @override */
|
||||||
|
tabGroups = {
|
||||||
|
primary: "details",
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prepare an array of form header tabs.
|
||||||
|
* @returns {Record<string, Partial<ApplicationTab>>}
|
||||||
|
*/
|
||||||
|
#getTabs() {
|
||||||
|
const tabs = {
|
||||||
|
details: { id: "details", group: "primary", label: "PRISMRPG.Label.details" },
|
||||||
|
description: { id: "description", group: "primary", label: "PRISMRPG.Label.description" },
|
||||||
|
}
|
||||||
|
for (const v of Object.values(tabs)) {
|
||||||
|
v.active = this.tabGroups[v.group] === v.id
|
||||||
|
v.cssClass = v.active ? "active" : ""
|
||||||
|
}
|
||||||
|
return tabs
|
||||||
|
}
|
||||||
|
|
||||||
/** @override */
|
/** @override */
|
||||||
async _prepareContext() {
|
async _prepareContext() {
|
||||||
const context = await super._prepareContext()
|
const context = await super._prepareContext()
|
||||||
|
context.tabs = this.#getTabs()
|
||||||
context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true })
|
context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true })
|
||||||
context.enrichedRacialPassiveDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.racialPassiveDescription, { async: true })
|
context.enrichedRacialPassiveDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.racialPassiveDescription, { async: true })
|
||||||
context.enrichedSubraceAbilityDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.subraceAbilityDescription, { async: true })
|
context.enrichedSubraceAbilityDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.subraceAbilityDescription, { async: true })
|
||||||
|
|||||||
@@ -19,4 +19,32 @@ export default class PrismRPGRacialAbilitySheet extends PrismRPGItemSheet {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @override */
|
||||||
|
tabGroups = {
|
||||||
|
primary: "description",
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prepare an array of form header tabs.
|
||||||
|
* @returns {Record<string, Partial<ApplicationTab>>}
|
||||||
|
*/
|
||||||
|
#getTabs() {
|
||||||
|
const tabs = {
|
||||||
|
description: { id: "description", group: "primary", label: "PRISMRPG.Label.description" },
|
||||||
|
effects: { id: "effects", group: "primary", label: "PRISMRPG.Label.effects" },
|
||||||
|
}
|
||||||
|
for (const v of Object.values(tabs)) {
|
||||||
|
v.active = this.tabGroups[v.group] === v.id
|
||||||
|
v.cssClass = v.active ? "active" : ""
|
||||||
|
}
|
||||||
|
return tabs
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @override */
|
||||||
|
async _prepareContext() {
|
||||||
|
const context = await super._prepareContext()
|
||||||
|
context.tabs = this.#getTabs()
|
||||||
|
return context
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,9 +19,32 @@ export default class PrismRPGShieldSheet extends PrismRPGItemSheet {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @override */
|
||||||
|
tabGroups = {
|
||||||
|
primary: "details",
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prepare an array of form header tabs.
|
||||||
|
* @returns {Record<string, Partial<ApplicationTab>>}
|
||||||
|
*/
|
||||||
|
#getTabs() {
|
||||||
|
const tabs = {
|
||||||
|
details: { id: "details", group: "primary", label: "PRISMRPG.Label.details" },
|
||||||
|
description: { id: "description", group: "primary", label: "PRISMRPG.Label.description" },
|
||||||
|
effects: { id: "effects", group: "primary", label: "PRISMRPG.Label.effects" },
|
||||||
|
}
|
||||||
|
for (const v of Object.values(tabs)) {
|
||||||
|
v.active = this.tabGroups[v.group] === v.id
|
||||||
|
v.cssClass = v.active ? "active" : ""
|
||||||
|
}
|
||||||
|
return tabs
|
||||||
|
}
|
||||||
|
|
||||||
/** @override */
|
/** @override */
|
||||||
async _prepareContext() {
|
async _prepareContext() {
|
||||||
const context = await super._prepareContext()
|
const context = await super._prepareContext()
|
||||||
|
context.tabs = this.#getTabs()
|
||||||
context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true })
|
context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true })
|
||||||
context.enrichedBlockAugmentDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.blockAugmentDescription, { async: true })
|
context.enrichedBlockAugmentDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.blockAugmentDescription, { async: true })
|
||||||
return context
|
return context
|
||||||
|
|||||||
@@ -19,9 +19,32 @@ export default class PrismRPGSpellSheet extends PrismRPGItemSheet {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @override */
|
||||||
|
tabGroups = {
|
||||||
|
primary: "details",
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prepare an array of form header tabs.
|
||||||
|
* @returns {Record<string, Partial<ApplicationTab>>}
|
||||||
|
*/
|
||||||
|
#getTabs() {
|
||||||
|
const tabs = {
|
||||||
|
details: { id: "details", group: "primary", label: "PRISMRPG.Label.details" },
|
||||||
|
description: { id: "description", group: "primary", label: "PRISMRPG.Label.description" },
|
||||||
|
effects: { id: "effects", group: "primary", label: "PRISMRPG.Label.effects" },
|
||||||
|
}
|
||||||
|
for (const v of Object.values(tabs)) {
|
||||||
|
v.active = this.tabGroups[v.group] === v.id
|
||||||
|
v.cssClass = v.active ? "active" : ""
|
||||||
|
}
|
||||||
|
return tabs
|
||||||
|
}
|
||||||
|
|
||||||
/** @override */
|
/** @override */
|
||||||
async _prepareContext() {
|
async _prepareContext() {
|
||||||
const context = await super._prepareContext()
|
const context = await super._prepareContext()
|
||||||
|
context.tabs = this.#getTabs()
|
||||||
context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true })
|
context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true })
|
||||||
context.enrichedColorEffect = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.colorEffect, { async: true })
|
context.enrichedColorEffect = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.colorEffect, { async: true })
|
||||||
context.enrichedAscensionEffect = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.ascensionEffect, { async: true })
|
context.enrichedAscensionEffect = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.ascensionEffect, { async: true })
|
||||||
|
|||||||
@@ -19,13 +19,102 @@ export default class PrismRPGWeaponSheet extends PrismRPGItemSheet {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @override */
|
||||||
|
tabGroups = {
|
||||||
|
primary: "details",
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prepare an array of form header tabs.
|
||||||
|
* @returns {Record<string, Partial<ApplicationTab>>}
|
||||||
|
*/
|
||||||
|
#getTabs() {
|
||||||
|
const tabs = {
|
||||||
|
details: { id: "details", group: "primary", label: "PRISMRPG.Label.details" },
|
||||||
|
description: { id: "description", group: "primary", label: "PRISMRPG.Label.description" },
|
||||||
|
effects: { id: "effects", group: "primary", label: "PRISMRPG.Label.effects" },
|
||||||
|
}
|
||||||
|
for (const v of Object.values(tabs)) {
|
||||||
|
v.active = this.tabGroups[v.group] === v.id
|
||||||
|
v.cssClass = v.active ? "active" : ""
|
||||||
|
}
|
||||||
|
return tabs
|
||||||
|
}
|
||||||
|
|
||||||
/** @override */
|
/** @override */
|
||||||
async _prepareContext() {
|
async _prepareContext() {
|
||||||
const context = await super._prepareContext()
|
const context = await super._prepareContext()
|
||||||
|
context.tabs = this.#getTabs()
|
||||||
context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true })
|
context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true })
|
||||||
context.enrichedPassiveDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.passiveDescription, { async: true })
|
|
||||||
context.enrichedManeuverDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.maneuverDescription, { async: true })
|
// Enrich descriptions for all passives
|
||||||
|
context.enrichedPassives = await Promise.all(
|
||||||
|
this.document.system.passives.map(async (passive) => ({
|
||||||
|
...passive,
|
||||||
|
enrichedDescription: await foundry.applications.ux.TextEditor.implementation.enrichHTML(passive.description, { async: true })
|
||||||
|
}))
|
||||||
|
)
|
||||||
|
|
||||||
|
// Enrich descriptions for all maneuvers
|
||||||
|
context.enrichedManeuvers = await Promise.all(
|
||||||
|
this.document.system.maneuvers.map(async (maneuver) => ({
|
||||||
|
...maneuver,
|
||||||
|
enrichedDescription: await foundry.applications.ux.TextEditor.implementation.enrichHTML(maneuver.description, { async: true })
|
||||||
|
}))
|
||||||
|
)
|
||||||
|
|
||||||
return context
|
return context
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @override */
|
||||||
|
_onRender(context, options) {
|
||||||
|
super._onRender(context, options)
|
||||||
|
|
||||||
|
// Add event listeners for passive management
|
||||||
|
this.element.querySelectorAll('[data-action="add-passive"]').forEach(el => {
|
||||||
|
el.addEventListener("click", this._onAddPassive.bind(this))
|
||||||
|
})
|
||||||
|
|
||||||
|
this.element.querySelectorAll('[data-action="delete-passive"]').forEach(el => {
|
||||||
|
el.addEventListener("click", this._onDeletePassive.bind(this))
|
||||||
|
})
|
||||||
|
|
||||||
|
// Add event listeners for maneuver management
|
||||||
|
this.element.querySelectorAll('[data-action="add-maneuver"]').forEach(el => {
|
||||||
|
el.addEventListener("click", this._onAddManeuver.bind(this))
|
||||||
|
})
|
||||||
|
|
||||||
|
this.element.querySelectorAll('[data-action="delete-maneuver"]').forEach(el => {
|
||||||
|
el.addEventListener("click", this._onDeleteManeuver.bind(this))
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
async _onAddPassive(event) {
|
||||||
|
event.preventDefault()
|
||||||
|
const passives = [...this.document.system.passives]
|
||||||
|
passives.push({ name: "", description: "" })
|
||||||
|
await this.document.update({ "system.passives": passives })
|
||||||
|
}
|
||||||
|
|
||||||
|
async _onDeletePassive(event) {
|
||||||
|
event.preventDefault()
|
||||||
|
const index = parseInt(event.currentTarget.closest("[data-passive-index]").dataset.passiveIndex)
|
||||||
|
const passives = this.document.system.passives.filter((_, i) => i !== index)
|
||||||
|
await this.document.update({ "system.passives": passives })
|
||||||
|
}
|
||||||
|
|
||||||
|
async _onAddManeuver(event) {
|
||||||
|
event.preventDefault()
|
||||||
|
const maneuvers = [...this.document.system.maneuvers]
|
||||||
|
maneuvers.push({ name: "", description: "" })
|
||||||
|
await this.document.update({ "system.maneuvers": maneuvers })
|
||||||
|
}
|
||||||
|
|
||||||
|
async _onDeleteManeuver(event) {
|
||||||
|
event.preventDefault()
|
||||||
|
const index = parseInt(event.currentTarget.closest("[data-maneuver-index]").dataset.maneuverIndex)
|
||||||
|
const maneuvers = this.document.system.maneuvers.filter((_, i) => i !== index)
|
||||||
|
await this.document.update({ "system.maneuvers": maneuvers })
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,219 @@
|
|||||||
|
/**
|
||||||
|
* Application to configure weapon types and groups
|
||||||
|
*/
|
||||||
|
import { getWeaponTypes, getWeaponGroups } from "../config/weapon.mjs"
|
||||||
|
|
||||||
|
export class WeaponTypesConfig extends FormApplication {
|
||||||
|
|
||||||
|
constructor(object, options) {
|
||||||
|
super(object, options)
|
||||||
|
|
||||||
|
// Store working copies that won't trigger settings changes
|
||||||
|
this.workingTypes = null
|
||||||
|
this.workingGroups = null
|
||||||
|
}
|
||||||
|
|
||||||
|
static get defaultOptions() {
|
||||||
|
return foundry.utils.mergeObject(super.defaultOptions, {
|
||||||
|
title: game.i18n.localize("PRISMRPG.Settings.weaponTypesConfig.title"),
|
||||||
|
id: "weapon-types-config",
|
||||||
|
classes: ["prismrpg", "weapon-types-config"],
|
||||||
|
template: "systems/fvtt-prism-rpg/templates/weapon-types-config.hbs",
|
||||||
|
width: 1000,
|
||||||
|
height: "auto",
|
||||||
|
closeOnSubmit: true,
|
||||||
|
submitOnChange: false,
|
||||||
|
tabs: [{ navSelector: ".tabs", contentSelector: ".content", initial: "types" }]
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
getData() {
|
||||||
|
const data = super.getData()
|
||||||
|
|
||||||
|
// Get default weapon types from config with proper translation keys
|
||||||
|
const defaultTypes = getWeaponTypes()
|
||||||
|
|
||||||
|
// Get default weapon groups from config with proper translation keys
|
||||||
|
const defaultGroups = getWeaponGroups()
|
||||||
|
|
||||||
|
// Initialize working copies on first render
|
||||||
|
if (!this.workingTypes) {
|
||||||
|
const customTypes = game.settings.get("fvtt-prism-rpg", "customWeaponTypes") || {}
|
||||||
|
this.workingTypes = foundry.utils.deepClone(customTypes)
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!this.workingGroups) {
|
||||||
|
const customGroups = game.settings.get("fvtt-prism-rpg", "customWeaponGroups") || {}
|
||||||
|
this.workingGroups = foundry.utils.deepClone(customGroups)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Merge default and working copies
|
||||||
|
data.weaponTypes = {}
|
||||||
|
const mergedTypes = foundry.utils.mergeObject(defaultTypes, this.workingTypes, { inplace: false })
|
||||||
|
console.log("Merged types in getData:", mergedTypes)
|
||||||
|
for (const [key, type] of Object.entries(mergedTypes)) {
|
||||||
|
data.weaponTypes[key] = {
|
||||||
|
...type,
|
||||||
|
// Translate label if it's a translation key
|
||||||
|
label: type.label.startsWith("PRISMRPG.") ? game.i18n.localize(type.label) : type.label,
|
||||||
|
// Mark if it's a custom type (can be deleted)
|
||||||
|
isCustom: key.startsWith("custom_")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
data.weaponGroups = {}
|
||||||
|
const mergedGroups = foundry.utils.mergeObject(defaultGroups, this.workingGroups, { inplace: false })
|
||||||
|
for (const [key, group] of Object.entries(mergedGroups)) {
|
||||||
|
data.weaponGroups[key] = {
|
||||||
|
...group,
|
||||||
|
// Translate labels if they're translation keys
|
||||||
|
label: group.label.startsWith("PRISMRPG.") ? game.i18n.localize(group.label) : group.label,
|
||||||
|
passiveLabel: group.passiveLabel.startsWith("PRISMRPG.") ? game.i18n.localize(group.passiveLabel) : group.passiveLabel,
|
||||||
|
passiveDescription: group.passiveDescription.startsWith("PRISMRPG.") ? game.i18n.localize(group.passiveDescription) : group.passiveDescription,
|
||||||
|
// Mark if it's a custom group (can be deleted)
|
||||||
|
isCustom: key.startsWith("custom_")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return data
|
||||||
|
}
|
||||||
|
|
||||||
|
activateListeners(html) {
|
||||||
|
super.activateListeners(html)
|
||||||
|
|
||||||
|
// Add new weapon type
|
||||||
|
html.find('[data-action="add-weapon-type"]').click(this._onAddWeaponType.bind(this))
|
||||||
|
|
||||||
|
// Delete weapon type
|
||||||
|
html.find('[data-action="delete-weapon-type"]').click(this._onDeleteWeaponType.bind(this))
|
||||||
|
|
||||||
|
// Add new weapon group
|
||||||
|
html.find('[data-action="add-weapon-group"]').click(this._onAddWeaponGroup.bind(this))
|
||||||
|
|
||||||
|
// Delete weapon group
|
||||||
|
html.find('[data-action="delete-weapon-group"]').click(this._onDeleteWeaponGroup.bind(this))
|
||||||
|
|
||||||
|
// Reset to defaults
|
||||||
|
html.find('[data-action="reset-defaults"]').click(this._onResetDefaults.bind(this))
|
||||||
|
|
||||||
|
console.log("Listeners activated, weapon types count:", html.find('.weapon-type-entry').length)
|
||||||
|
}
|
||||||
|
|
||||||
|
async _onAddWeaponType(event) {
|
||||||
|
event.preventDefault()
|
||||||
|
|
||||||
|
const newId = `custom_${foundry.utils.randomID()}`
|
||||||
|
|
||||||
|
// Add new empty type to working copy (no settings save)
|
||||||
|
this.workingTypes[newId] = {
|
||||||
|
id: newId,
|
||||||
|
label: "New Weapon Type",
|
||||||
|
apc: 1,
|
||||||
|
hands: 1
|
||||||
|
}
|
||||||
|
|
||||||
|
// Force re-render without saving
|
||||||
|
this.render(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
async _onDeleteWeaponType(event) {
|
||||||
|
event.preventDefault()
|
||||||
|
const typeId = $(event.currentTarget).data('id')
|
||||||
|
|
||||||
|
console.log("Delete weapon type clicked:", typeId)
|
||||||
|
console.log("Working types before:", this.workingTypes)
|
||||||
|
|
||||||
|
// Delete from working copy (no settings save)
|
||||||
|
delete this.workingTypes[typeId]
|
||||||
|
|
||||||
|
console.log("Working types after:", this.workingTypes)
|
||||||
|
|
||||||
|
// Save to settings immediately so it persists
|
||||||
|
await game.settings.set("fvtt-prism-rpg", "customWeaponTypes", this.workingTypes)
|
||||||
|
|
||||||
|
// Find and remove the entry from DOM immediately
|
||||||
|
this.element.find(`.weapon-type-entry[data-id="${typeId}"]`).remove()
|
||||||
|
}
|
||||||
|
|
||||||
|
async _onAddWeaponGroup(event) {
|
||||||
|
event.preventDefault()
|
||||||
|
|
||||||
|
const newId = `custom_${foundry.utils.randomID()}`
|
||||||
|
|
||||||
|
// Add new empty group to working copy (no settings save)
|
||||||
|
this.workingGroups[newId] = {
|
||||||
|
id: newId,
|
||||||
|
label: "New Weapon Group",
|
||||||
|
passive: "newPassive",
|
||||||
|
passiveLabel: "New Passive",
|
||||||
|
passiveDescription: "Description of the new passive ability."
|
||||||
|
}
|
||||||
|
|
||||||
|
// Force re-render without saving
|
||||||
|
this.render(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
async _onDeleteWeaponGroup(event) {
|
||||||
|
event.preventDefault()
|
||||||
|
const groupId = $(event.currentTarget).data('id')
|
||||||
|
|
||||||
|
// Delete from working copy (no settings save)
|
||||||
|
delete this.workingGroups[groupId]
|
||||||
|
|
||||||
|
// Save to settings immediately so it persists
|
||||||
|
await game.settings.set("fvtt-prism-rpg", "customWeaponGroups", this.workingGroups)
|
||||||
|
|
||||||
|
// Find and remove the entry from DOM immediately
|
||||||
|
this.element.find(`.weapon-group-entry[data-id="${groupId}"]`).remove()
|
||||||
|
}
|
||||||
|
|
||||||
|
async _onResetDefaults(event) {
|
||||||
|
event.preventDefault()
|
||||||
|
|
||||||
|
const confirm = await Dialog.confirm({
|
||||||
|
title: game.i18n.localize("PRISMRPG.Settings.resetConfirm.title"),
|
||||||
|
content: game.i18n.localize("PRISMRPG.Settings.resetConfirm.content"),
|
||||||
|
yes: () => true,
|
||||||
|
no: () => false
|
||||||
|
})
|
||||||
|
|
||||||
|
if (confirm) {
|
||||||
|
// Reset working copies
|
||||||
|
this.workingTypes = {}
|
||||||
|
this.workingGroups = {}
|
||||||
|
this.render(true)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
async _updateObject(event, formData) {
|
||||||
|
const expanded = foundry.utils.expandObject(formData)
|
||||||
|
|
||||||
|
// Extract only custom types (those with custom_ prefix)
|
||||||
|
const customTypes = {}
|
||||||
|
if (expanded.weaponTypes) {
|
||||||
|
for (const [key, type] of Object.entries(expanded.weaponTypes)) {
|
||||||
|
if (key.startsWith("custom_")) {
|
||||||
|
customTypes[key] = type
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Extract only custom groups (those with custom_ prefix)
|
||||||
|
const customGroups = {}
|
||||||
|
if (expanded.weaponGroups) {
|
||||||
|
for (const [key, group] of Object.entries(expanded.weaponGroups)) {
|
||||||
|
if (key.startsWith("custom_")) {
|
||||||
|
customGroups[key] = group
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Save custom weapon types (this will trigger page reload)
|
||||||
|
await game.settings.set("fvtt-prism-rpg", "customWeaponTypes", customTypes)
|
||||||
|
|
||||||
|
// Save custom weapon groups (this will trigger page reload)
|
||||||
|
await game.settings.set("fvtt-prism-rpg", "customWeaponGroups", customGroups)
|
||||||
|
|
||||||
|
ui.notifications.info(game.i18n.localize("PRISMRPG.Settings.weaponTypesSaved"))
|
||||||
|
}
|
||||||
|
}
|
||||||
+18
-18
@@ -135,28 +135,28 @@ export const CHALLENGES = Object.freeze({
|
|||||||
})
|
})
|
||||||
|
|
||||||
export const SAVES = Object.freeze({
|
export const SAVES = Object.freeze({
|
||||||
will: {
|
str: {
|
||||||
id: "will",
|
id: "str",
|
||||||
label: "PRISMRPG.Character.will.label"
|
label: "PRISMRPG.Character.str.label"
|
||||||
},
|
},
|
||||||
dodge: {
|
dex: {
|
||||||
id: "dodge",
|
id: "dex",
|
||||||
label: "PRISMRPG.Character.dodge.label"
|
label: "PRISMRPG.Character.dex.label"
|
||||||
},
|
},
|
||||||
toughness: {
|
con: {
|
||||||
id: "toughness",
|
id: "con",
|
||||||
label: "PRISMRPG.Character.toughness.label"
|
label: "PRISMRPG.Character.con.label"
|
||||||
},
|
},
|
||||||
contagion: {
|
int: {
|
||||||
id: "contagion",
|
id: "int",
|
||||||
label: "PRISMRPG.Character.contagion.label"
|
label: "PRISMRPG.Character.int.label"
|
||||||
},
|
},
|
||||||
poison: {
|
wis: {
|
||||||
id: "poison",
|
id: "wis",
|
||||||
label: "PRISMRPG.Character.poison.label"
|
label: "PRISMRPG.Character.wis.label"
|
||||||
},
|
},
|
||||||
pain: {
|
cha: {
|
||||||
id: "pain",
|
id: "cha",
|
||||||
label: "PRISMRPG.Character.pain.label"
|
label: "PRISMRPG.Character.cha.label"
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ export const TABLES = {
|
|||||||
"damage": -7,
|
"damage": -7,
|
||||||
"attack": -4,
|
"attack": -4,
|
||||||
"challenge": -9,
|
"challenge": -9,
|
||||||
"aether_points": -20,
|
"mana_points": -20,
|
||||||
"hp": -3,
|
"hp": -3,
|
||||||
"encumbered": 1,
|
"encumbered": 1,
|
||||||
"lift": 3,
|
"lift": 3,
|
||||||
@@ -20,7 +20,7 @@ export const TABLES = {
|
|||||||
"damage": -6,
|
"damage": -6,
|
||||||
"attack": -4,
|
"attack": -4,
|
||||||
"challenge": -8,
|
"challenge": -8,
|
||||||
"aether_points": -20,
|
"mana_points": -20,
|
||||||
"hp": -2,
|
"hp": -2,
|
||||||
"encumbered": 1,
|
"encumbered": 1,
|
||||||
"lift": 4,
|
"lift": 4,
|
||||||
@@ -31,7 +31,7 @@ export const TABLES = {
|
|||||||
"damage": -5,
|
"damage": -5,
|
||||||
"attack": -3,
|
"attack": -3,
|
||||||
"challenge": -7,
|
"challenge": -7,
|
||||||
"aether_points": -20,
|
"mana_points": -20,
|
||||||
"hp": -1,
|
"hp": -1,
|
||||||
"encumbered": 1,
|
"encumbered": 1,
|
||||||
"lift": 5,
|
"lift": 5,
|
||||||
@@ -42,7 +42,7 @@ export const TABLES = {
|
|||||||
"damage": -4,
|
"damage": -4,
|
||||||
"attack": -3,
|
"attack": -3,
|
||||||
"challenge": -6,
|
"challenge": -6,
|
||||||
"aether_points": -20,
|
"mana_points": -20,
|
||||||
"hp": -1,
|
"hp": -1,
|
||||||
"encumbered": 2,
|
"encumbered": 2,
|
||||||
"lift": 6,
|
"lift": 6,
|
||||||
@@ -53,7 +53,7 @@ export const TABLES = {
|
|||||||
"damage": -3,
|
"damage": -3,
|
||||||
"attack": -2,
|
"attack": -2,
|
||||||
"challenge": -5,
|
"challenge": -5,
|
||||||
"aether_points": -20,
|
"mana_points": -20,
|
||||||
"hp": 0,
|
"hp": 0,
|
||||||
"encumbered": 2,
|
"encumbered": 2,
|
||||||
"lift": 7,
|
"lift": 7,
|
||||||
@@ -64,7 +64,7 @@ export const TABLES = {
|
|||||||
"damage": -2,
|
"damage": -2,
|
||||||
"attack": -1,
|
"attack": -1,
|
||||||
"challenge": -4,
|
"challenge": -4,
|
||||||
"aether_points": -10,
|
"mana_points": -10,
|
||||||
"hp": 0,
|
"hp": 0,
|
||||||
"encumbered": 3,
|
"encumbered": 3,
|
||||||
"lift": 8,
|
"lift": 8,
|
||||||
@@ -75,7 +75,7 @@ export const TABLES = {
|
|||||||
"damage": -2,
|
"damage": -2,
|
||||||
"attack": 0,
|
"attack": 0,
|
||||||
"challenge": -3,
|
"challenge": -3,
|
||||||
"aether_points": -10,
|
"mana_points": -10,
|
||||||
"hp": 0,
|
"hp": 0,
|
||||||
"encumbered": 3,
|
"encumbered": 3,
|
||||||
"lift": 9,
|
"lift": 9,
|
||||||
@@ -86,7 +86,7 @@ export const TABLES = {
|
|||||||
"damage": -1,
|
"damage": -1,
|
||||||
"attack": 0,
|
"attack": 0,
|
||||||
"challenge": -2,
|
"challenge": -2,
|
||||||
"aether_points": 0,
|
"mana_points": 0,
|
||||||
"hp": 0,
|
"hp": 0,
|
||||||
"encumbered": 4,
|
"encumbered": 4,
|
||||||
"lift": 11,
|
"lift": 11,
|
||||||
@@ -97,7 +97,7 @@ export const TABLES = {
|
|||||||
"damage": -1,
|
"damage": -1,
|
||||||
"attack": 0,
|
"attack": 0,
|
||||||
"challenge": -1,
|
"challenge": -1,
|
||||||
"aether_points": 0,
|
"mana_points": 0,
|
||||||
"hp": 0,
|
"hp": 0,
|
||||||
"encumbered": 5,
|
"encumbered": 5,
|
||||||
"lift": 12,
|
"lift": 12,
|
||||||
@@ -108,7 +108,7 @@ export const TABLES = {
|
|||||||
"damage": 0,
|
"damage": 0,
|
||||||
"attack": 0,
|
"attack": 0,
|
||||||
"challenge": 0,
|
"challenge": 0,
|
||||||
"aether_points": 0,
|
"mana_points": 0,
|
||||||
"hp": 0,
|
"hp": 0,
|
||||||
"encumbered": 6,
|
"encumbered": 6,
|
||||||
"lift": 13,
|
"lift": 13,
|
||||||
@@ -119,7 +119,7 @@ export const TABLES = {
|
|||||||
"damage": 0,
|
"damage": 0,
|
||||||
"attack": 0,
|
"attack": 0,
|
||||||
"challenge": 0,
|
"challenge": 0,
|
||||||
"aether_points": 0,
|
"mana_points": 0,
|
||||||
"hp": 0,
|
"hp": 0,
|
||||||
"encumbered": 7,
|
"encumbered": 7,
|
||||||
"lift": 15,
|
"lift": 15,
|
||||||
@@ -130,7 +130,7 @@ export const TABLES = {
|
|||||||
"damage": 1,
|
"damage": 1,
|
||||||
"attack": 0,
|
"attack": 0,
|
||||||
"challenge": 1,
|
"challenge": 1,
|
||||||
"aether_points": 0,
|
"mana_points": 0,
|
||||||
"hp": 0,
|
"hp": 0,
|
||||||
"encumbered": 8,
|
"encumbered": 8,
|
||||||
"lift": 17,
|
"lift": 17,
|
||||||
@@ -141,7 +141,7 @@ export const TABLES = {
|
|||||||
"damage": 1,
|
"damage": 1,
|
||||||
"attack": 0,
|
"attack": 0,
|
||||||
"challenge": 2,
|
"challenge": 2,
|
||||||
"aether_points": 0,
|
"mana_points": 0,
|
||||||
"hp": 0,
|
"hp": 0,
|
||||||
"encumbered": 9,
|
"encumbered": 9,
|
||||||
"lift": 20,
|
"lift": 20,
|
||||||
@@ -152,7 +152,7 @@ export const TABLES = {
|
|||||||
"damage": 2,
|
"damage": 2,
|
||||||
"attack": 1,
|
"attack": 1,
|
||||||
"challenge": 3,
|
"challenge": 3,
|
||||||
"aether_points": 0,
|
"mana_points": 0,
|
||||||
"hp": 1,
|
"hp": 1,
|
||||||
"encumbered": 10,
|
"encumbered": 10,
|
||||||
"lift": 22,
|
"lift": 22,
|
||||||
@@ -163,7 +163,7 @@ export const TABLES = {
|
|||||||
"damage": 3,
|
"damage": 3,
|
||||||
"attack": 1,
|
"attack": 1,
|
||||||
"challenge": 4,
|
"challenge": 4,
|
||||||
"aether_points": 0,
|
"mana_points": 0,
|
||||||
"hp": 2,
|
"hp": 2,
|
||||||
"encumbered": 11,
|
"encumbered": 11,
|
||||||
"lift": 24,
|
"lift": 24,
|
||||||
@@ -174,7 +174,7 @@ export const TABLES = {
|
|||||||
"damage": 4,
|
"damage": 4,
|
||||||
"attack": 2,
|
"attack": 2,
|
||||||
"challenge": 5,
|
"challenge": 5,
|
||||||
"aether_points": 0,
|
"mana_points": 0,
|
||||||
"hp": 3,
|
"hp": 3,
|
||||||
"encumbered": 12,
|
"encumbered": 12,
|
||||||
"lift": 26,
|
"lift": 26,
|
||||||
@@ -185,7 +185,7 @@ export const TABLES = {
|
|||||||
"damage": 5,
|
"damage": 5,
|
||||||
"attack": 2,
|
"attack": 2,
|
||||||
"challenge": 6,
|
"challenge": 6,
|
||||||
"aether_points": 10,
|
"mana_points": 10,
|
||||||
"hp": 4,
|
"hp": 4,
|
||||||
"encumbered": 13,
|
"encumbered": 13,
|
||||||
"lift": 28,
|
"lift": 28,
|
||||||
@@ -196,7 +196,7 @@ export const TABLES = {
|
|||||||
"damage": 6,
|
"damage": 6,
|
||||||
"attack": 3,
|
"attack": 3,
|
||||||
"challenge": 7,
|
"challenge": 7,
|
||||||
"aether_points": 20,
|
"mana_points": 20,
|
||||||
"hp": 5,
|
"hp": 5,
|
||||||
"encumbered": 14,
|
"encumbered": 14,
|
||||||
"lift": 30,
|
"lift": 30,
|
||||||
@@ -207,7 +207,7 @@ export const TABLES = {
|
|||||||
"damage": 7,
|
"damage": 7,
|
||||||
"attack": 3,
|
"attack": 3,
|
||||||
"challenge": 8,
|
"challenge": 8,
|
||||||
"aether_points": 20,
|
"mana_points": 20,
|
||||||
"hp": 6,
|
"hp": 6,
|
||||||
"encumbered": 15,
|
"encumbered": 15,
|
||||||
"lift": 31,
|
"lift": 31,
|
||||||
@@ -218,7 +218,7 @@ export const TABLES = {
|
|||||||
"damage": 8,
|
"damage": 8,
|
||||||
"attack": 4,
|
"attack": 4,
|
||||||
"challenge": 9,
|
"challenge": 9,
|
||||||
"aether_points": 30,
|
"mana_points": 30,
|
||||||
"hp": 7,
|
"hp": 7,
|
||||||
"encumbered": 15,
|
"encumbered": 15,
|
||||||
"lift": 32,
|
"lift": 32,
|
||||||
@@ -229,7 +229,7 @@ export const TABLES = {
|
|||||||
"damage": 9,
|
"damage": 9,
|
||||||
"attack": 4,
|
"attack": 4,
|
||||||
"challenge": 10,
|
"challenge": 10,
|
||||||
"aether_points": 30,
|
"mana_points": 30,
|
||||||
"hp": 8,
|
"hp": 8,
|
||||||
"encumbered": 16,
|
"encumbered": 16,
|
||||||
"lift": 33,
|
"lift": 33,
|
||||||
@@ -240,7 +240,7 @@ export const TABLES = {
|
|||||||
"damage": 10,
|
"damage": 10,
|
||||||
"attack": 5,
|
"attack": 5,
|
||||||
"challenge": 11,
|
"challenge": 11,
|
||||||
"aether_points": 40,
|
"mana_points": 40,
|
||||||
"hp": 9,
|
"hp": 9,
|
||||||
"encumbered": 16,
|
"encumbered": 16,
|
||||||
"lift": 34,
|
"lift": 34,
|
||||||
@@ -251,7 +251,7 @@ export const TABLES = {
|
|||||||
"damage": 12,
|
"damage": 12,
|
||||||
"attack": 5,
|
"attack": 5,
|
||||||
"challenge": 12,
|
"challenge": 12,
|
||||||
"aether_points": 40,
|
"mana_points": 40,
|
||||||
"hp": 10,
|
"hp": 10,
|
||||||
"encumbered": 17,
|
"encumbered": 17,
|
||||||
"lift": 35,
|
"lift": 35,
|
||||||
@@ -262,7 +262,7 @@ export const TABLES = {
|
|||||||
"damage": 14,
|
"damage": 14,
|
||||||
"attack": 5,
|
"attack": 5,
|
||||||
"challenge": 13,
|
"challenge": 13,
|
||||||
"aether_points": 50,
|
"mana_points": 50,
|
||||||
"hp": 11,
|
"hp": 11,
|
||||||
"encumbered": 18,
|
"encumbered": 18,
|
||||||
"lift": 36,
|
"lift": 36,
|
||||||
@@ -273,7 +273,7 @@ export const TABLES = {
|
|||||||
"damage": 16,
|
"damage": 16,
|
||||||
"attack": 6,
|
"attack": 6,
|
||||||
"challenge": 14,
|
"challenge": 14,
|
||||||
"aether_points": 60,
|
"mana_points": 60,
|
||||||
"hp": 12,
|
"hp": 12,
|
||||||
"encumbered": 19,
|
"encumbered": 19,
|
||||||
"lift": 38,
|
"lift": 38,
|
||||||
@@ -286,7 +286,7 @@ export const TABLES = {
|
|||||||
"attack": -5,
|
"attack": -5,
|
||||||
"defense": -3,
|
"defense": -3,
|
||||||
"development_points": 0,
|
"development_points": 0,
|
||||||
"aether": -50,
|
"mana": -50,
|
||||||
"spell_cognition": 0,
|
"spell_cognition": 0,
|
||||||
"arkane_casting_mod": -4
|
"arkane_casting_mod": -4
|
||||||
},
|
},
|
||||||
@@ -295,7 +295,7 @@ export const TABLES = {
|
|||||||
"attack": -4,
|
"attack": -4,
|
||||||
"defense": -3,
|
"defense": -3,
|
||||||
"development_points": 0,
|
"development_points": 0,
|
||||||
"aether": -50,
|
"mana": -50,
|
||||||
"spell_cognition": 0,
|
"spell_cognition": 0,
|
||||||
"arkane_casting_mod": -4
|
"arkane_casting_mod": -4
|
||||||
},
|
},
|
||||||
@@ -304,7 +304,7 @@ export const TABLES = {
|
|||||||
"attack": -3,
|
"attack": -3,
|
||||||
"defense": -3,
|
"defense": -3,
|
||||||
"development_points": 0,
|
"development_points": 0,
|
||||||
"aether": -50,
|
"mana": -50,
|
||||||
"spell_cognition": 0.01,
|
"spell_cognition": 0.01,
|
||||||
"arkane_casting_mod": -3
|
"arkane_casting_mod": -3
|
||||||
},
|
},
|
||||||
@@ -313,7 +313,7 @@ export const TABLES = {
|
|||||||
"attack": -2,
|
"attack": -2,
|
||||||
"defense": -2,
|
"defense": -2,
|
||||||
"development_points": 0,
|
"development_points": 0,
|
||||||
"aether": -45,
|
"mana": -45,
|
||||||
"spell_cognition": 0.05,
|
"spell_cognition": 0.05,
|
||||||
"arkane_casting_mod": -3
|
"arkane_casting_mod": -3
|
||||||
},
|
},
|
||||||
@@ -322,7 +322,7 @@ export const TABLES = {
|
|||||||
"attack": -2,
|
"attack": -2,
|
||||||
"defense": -2,
|
"defense": -2,
|
||||||
"development_points": 0,
|
"development_points": 0,
|
||||||
"aether": -45,
|
"mana": -45,
|
||||||
"spell_cognition": 0.1,
|
"spell_cognition": 0.1,
|
||||||
"arkane_casting_mod": -2
|
"arkane_casting_mod": -2
|
||||||
},
|
},
|
||||||
@@ -331,7 +331,7 @@ export const TABLES = {
|
|||||||
"attack": -2,
|
"attack": -2,
|
||||||
"defense": -2,
|
"defense": -2,
|
||||||
"development_points": 0,
|
"development_points": 0,
|
||||||
"aether": -40,
|
"mana": -40,
|
||||||
"spell_cognition": 0.15,
|
"spell_cognition": 0.15,
|
||||||
"arkane_casting_mod": -2
|
"arkane_casting_mod": -2
|
||||||
},
|
},
|
||||||
@@ -340,7 +340,7 @@ export const TABLES = {
|
|||||||
"attack": -1,
|
"attack": -1,
|
||||||
"defense": -1,
|
"defense": -1,
|
||||||
"development_points": 0,
|
"development_points": 0,
|
||||||
"aether": -40,
|
"mana": -40,
|
||||||
"spell_cognition": 0.2,
|
"spell_cognition": 0.2,
|
||||||
"arkane_casting_mod": -1
|
"arkane_casting_mod": -1
|
||||||
},
|
},
|
||||||
@@ -349,7 +349,7 @@ export const TABLES = {
|
|||||||
"attack": -1,
|
"attack": -1,
|
||||||
"defense": 0,
|
"defense": 0,
|
||||||
"development_points": 0,
|
"development_points": 0,
|
||||||
"aether": -30,
|
"mana": -30,
|
||||||
"spell_cognition": 0.25,
|
"spell_cognition": 0.25,
|
||||||
"arkane_casting_mod": -1
|
"arkane_casting_mod": -1
|
||||||
},
|
},
|
||||||
@@ -358,7 +358,7 @@ export const TABLES = {
|
|||||||
"attack": -1,
|
"attack": -1,
|
||||||
"defense": 0,
|
"defense": 0,
|
||||||
"development_points": 0,
|
"development_points": 0,
|
||||||
"aether": -30,
|
"mana": -30,
|
||||||
"spell_cognition": 0.3,
|
"spell_cognition": 0.3,
|
||||||
"arkane_casting_mod": 0
|
"arkane_casting_mod": 0
|
||||||
},
|
},
|
||||||
@@ -367,7 +367,7 @@ export const TABLES = {
|
|||||||
"attack": 0,
|
"attack": 0,
|
||||||
"defense": 0,
|
"defense": 0,
|
||||||
"development_points": 0,
|
"development_points": 0,
|
||||||
"aether": -20,
|
"mana": -20,
|
||||||
"spell_cognition": 0.35,
|
"spell_cognition": 0.35,
|
||||||
"arkane_casting_mod": 0
|
"arkane_casting_mod": 0
|
||||||
},
|
},
|
||||||
@@ -376,7 +376,7 @@ export const TABLES = {
|
|||||||
"attack": 0,
|
"attack": 0,
|
||||||
"defense": 0,
|
"defense": 0,
|
||||||
"development_points": 1,
|
"development_points": 1,
|
||||||
"aether": -10,
|
"mana": -10,
|
||||||
"spell_cognition": 0.45,
|
"spell_cognition": 0.45,
|
||||||
"arkane_casting_mod": 0
|
"arkane_casting_mod": 0
|
||||||
},
|
},
|
||||||
@@ -385,7 +385,7 @@ export const TABLES = {
|
|||||||
"attack": 1,
|
"attack": 1,
|
||||||
"defense": 0,
|
"defense": 0,
|
||||||
"development_points": 2,
|
"development_points": 2,
|
||||||
"aether": 0,
|
"mana": 0,
|
||||||
"spell_cognition": 0.5,
|
"spell_cognition": 0.5,
|
||||||
"arkane_casting_mod": 1
|
"arkane_casting_mod": 1
|
||||||
},
|
},
|
||||||
@@ -394,7 +394,7 @@ export const TABLES = {
|
|||||||
"attack": 1,
|
"attack": 1,
|
||||||
"defense": 0,
|
"defense": 0,
|
||||||
"development_points": 3,
|
"development_points": 3,
|
||||||
"aether": 0,
|
"mana": 0,
|
||||||
"spell_cognition": 0.6,
|
"spell_cognition": 0.6,
|
||||||
"arkane_casting_mod": 1
|
"arkane_casting_mod": 1
|
||||||
},
|
},
|
||||||
@@ -403,7 +403,7 @@ export const TABLES = {
|
|||||||
"attack": 1,
|
"attack": 1,
|
||||||
"defense": 1,
|
"defense": 1,
|
||||||
"development_points": 4,
|
"development_points": 4,
|
||||||
"aether": 10,
|
"mana": 10,
|
||||||
"spell_cognition": 0.65,
|
"spell_cognition": 0.65,
|
||||||
"arkane_casting_mod": 2
|
"arkane_casting_mod": 2
|
||||||
},
|
},
|
||||||
@@ -412,7 +412,7 @@ export const TABLES = {
|
|||||||
"attack": 2,
|
"attack": 2,
|
||||||
"defense": 1,
|
"defense": 1,
|
||||||
"development_points": 5,
|
"development_points": 5,
|
||||||
"aether": 20,
|
"mana": 20,
|
||||||
"spell_cognition": 0.75,
|
"spell_cognition": 0.75,
|
||||||
"arkane_casting_mod": 2
|
"arkane_casting_mod": 2
|
||||||
},
|
},
|
||||||
@@ -421,7 +421,7 @@ export const TABLES = {
|
|||||||
"attack": 2,
|
"attack": 2,
|
||||||
"defense": 1,
|
"defense": 1,
|
||||||
"development_points": 7,
|
"development_points": 7,
|
||||||
"aether": 30,
|
"mana": 30,
|
||||||
"spell_cognition": 0.8,
|
"spell_cognition": 0.8,
|
||||||
"arkane_casting_mod": 3
|
"arkane_casting_mod": 3
|
||||||
},
|
},
|
||||||
@@ -430,7 +430,7 @@ export const TABLES = {
|
|||||||
"attack": 2,
|
"attack": 2,
|
||||||
"defense": 1,
|
"defense": 1,
|
||||||
"development_points": 9,
|
"development_points": 9,
|
||||||
"aether": 40,
|
"mana": 40,
|
||||||
"spell_cognition": 0.85,
|
"spell_cognition": 0.85,
|
||||||
"arkane_casting_mod": 3
|
"arkane_casting_mod": 3
|
||||||
},
|
},
|
||||||
@@ -439,7 +439,7 @@ export const TABLES = {
|
|||||||
"attack": 3,
|
"attack": 3,
|
||||||
"defense": 2,
|
"defense": 2,
|
||||||
"development_points": 11,
|
"development_points": 11,
|
||||||
"aether": 50,
|
"mana": 50,
|
||||||
"spell_cognition": 0.9,
|
"spell_cognition": 0.9,
|
||||||
"arkane_casting_mod": 4
|
"arkane_casting_mod": 4
|
||||||
},
|
},
|
||||||
@@ -448,7 +448,7 @@ export const TABLES = {
|
|||||||
"attack": 3,
|
"attack": 3,
|
||||||
"defense": 2,
|
"defense": 2,
|
||||||
"development_points": 13,
|
"development_points": 13,
|
||||||
"aether": 60,
|
"mana": 60,
|
||||||
"spell_cognition": 0.92,
|
"spell_cognition": 0.92,
|
||||||
"arkane_casting_mod": 5
|
"arkane_casting_mod": 5
|
||||||
},
|
},
|
||||||
@@ -457,7 +457,7 @@ export const TABLES = {
|
|||||||
"attack": 3,
|
"attack": 3,
|
||||||
"defense": 2,
|
"defense": 2,
|
||||||
"development_points": 15,
|
"development_points": 15,
|
||||||
"aether": 70,
|
"mana": 70,
|
||||||
"spell_cognition": 0.94,
|
"spell_cognition": 0.94,
|
||||||
"arkane_casting_mod": 6
|
"arkane_casting_mod": 6
|
||||||
},
|
},
|
||||||
@@ -466,7 +466,7 @@ export const TABLES = {
|
|||||||
"attack": 4,
|
"attack": 4,
|
||||||
"defense": 2,
|
"defense": 2,
|
||||||
"development_points": 18,
|
"development_points": 18,
|
||||||
"aether": 80,
|
"mana": 80,
|
||||||
"spell_cognition": 0.95,
|
"spell_cognition": 0.95,
|
||||||
"arkane_casting_mod": 7
|
"arkane_casting_mod": 7
|
||||||
},
|
},
|
||||||
@@ -475,7 +475,7 @@ export const TABLES = {
|
|||||||
"attack": 4,
|
"attack": 4,
|
||||||
"defense": 3,
|
"defense": 3,
|
||||||
"development_points": 21,
|
"development_points": 21,
|
||||||
"aether": 90,
|
"mana": 90,
|
||||||
"spell_cognition": 0.96,
|
"spell_cognition": 0.96,
|
||||||
"arkane_casting_mod": 7
|
"arkane_casting_mod": 7
|
||||||
},
|
},
|
||||||
@@ -484,7 +484,7 @@ export const TABLES = {
|
|||||||
"attack": 4,
|
"attack": 4,
|
||||||
"defense": 3,
|
"defense": 3,
|
||||||
"development_points": 24,
|
"development_points": 24,
|
||||||
"aether": 100,
|
"mana": 100,
|
||||||
"spell_cognition": 0.97,
|
"spell_cognition": 0.97,
|
||||||
"arkane_casting_mod": 8
|
"arkane_casting_mod": 8
|
||||||
},
|
},
|
||||||
@@ -493,7 +493,7 @@ export const TABLES = {
|
|||||||
"attack": 5,
|
"attack": 5,
|
||||||
"defense": 3,
|
"defense": 3,
|
||||||
"development_points": 27,
|
"development_points": 27,
|
||||||
"aether": 110,
|
"mana": 110,
|
||||||
"spell_cognition": 0.98,
|
"spell_cognition": 0.98,
|
||||||
"arkane_casting_mod": 8
|
"arkane_casting_mod": 8
|
||||||
},
|
},
|
||||||
@@ -502,7 +502,7 @@ export const TABLES = {
|
|||||||
"attack": 5,
|
"attack": 5,
|
||||||
"defense": 4,
|
"defense": 4,
|
||||||
"development_points": 30,
|
"development_points": 30,
|
||||||
"aether": 125,
|
"mana": 125,
|
||||||
"spell_cognition": 0.99,
|
"spell_cognition": 0.99,
|
||||||
"arkane_casting_mod": 9
|
"arkane_casting_mod": 9
|
||||||
}
|
}
|
||||||
@@ -688,7 +688,7 @@ export const TABLES = {
|
|||||||
{
|
{
|
||||||
"value": 1,
|
"value": 1,
|
||||||
"hp ": 1,
|
"hp ": 1,
|
||||||
"aether_points": -50,
|
"mana_points": -50,
|
||||||
"pain_save": 1,
|
"pain_save": 1,
|
||||||
"toughness_save": -5,
|
"toughness_save": -5,
|
||||||
"stabilization_dice": "D6",
|
"stabilization_dice": "D6",
|
||||||
@@ -698,7 +698,7 @@ export const TABLES = {
|
|||||||
"value": 2,
|
"value": 2,
|
||||||
|
|
||||||
"hp ": 2,
|
"hp ": 2,
|
||||||
"aether_points": -40,
|
"mana_points": -40,
|
||||||
"pain_save": 2,
|
"pain_save": 2,
|
||||||
"toughness_saave": -4,
|
"toughness_saave": -4,
|
||||||
"stabilization_dice": "D6",
|
"stabilization_dice": "D6",
|
||||||
@@ -708,7 +708,7 @@ export const TABLES = {
|
|||||||
"value": 3,
|
"value": 3,
|
||||||
|
|
||||||
"hp ": 3,
|
"hp ": 3,
|
||||||
"aether_points": -35,
|
"mana_points": -35,
|
||||||
"pain_save": 2,
|
"pain_save": 2,
|
||||||
"toughness_save": -3,
|
"toughness_save": -3,
|
||||||
"stabilization_dice": "D6",
|
"stabilization_dice": "D6",
|
||||||
@@ -718,7 +718,7 @@ export const TABLES = {
|
|||||||
"value": 4,
|
"value": 4,
|
||||||
|
|
||||||
"hp ": 4,
|
"hp ": 4,
|
||||||
"aether_points": -30,
|
"mana_points": -30,
|
||||||
"pain_save": 2,
|
"pain_save": 2,
|
||||||
"toughness_save": -3,
|
"toughness_save": -3,
|
||||||
"stabilization_dice": "D6",
|
"stabilization_dice": "D6",
|
||||||
@@ -728,7 +728,7 @@ export const TABLES = {
|
|||||||
"value": 5,
|
"value": 5,
|
||||||
|
|
||||||
"hp ": 5,
|
"hp ": 5,
|
||||||
"aether_points": -25,
|
"mana_points": -25,
|
||||||
"pain_save": 3,
|
"pain_save": 3,
|
||||||
"toughness_save": -2,
|
"toughness_save": -2,
|
||||||
"stabilization_dice": "D6",
|
"stabilization_dice": "D6",
|
||||||
@@ -737,7 +737,7 @@ export const TABLES = {
|
|||||||
{
|
{
|
||||||
"value": 6,
|
"value": 6,
|
||||||
"hp ": 6,
|
"hp ": 6,
|
||||||
"aether_points": -20,
|
"mana_points": -20,
|
||||||
"pain_save": 3,
|
"pain_save": 3,
|
||||||
"toughness_save": -2,
|
"toughness_save": -2,
|
||||||
"stabilization_dice": "D6",
|
"stabilization_dice": "D6",
|
||||||
@@ -746,7 +746,7 @@ export const TABLES = {
|
|||||||
{
|
{
|
||||||
"value": 7,
|
"value": 7,
|
||||||
"hp ": 7,
|
"hp ": 7,
|
||||||
"aether_points": -15,
|
"mana_points": -15,
|
||||||
"pain_save": 3,
|
"pain_save": 3,
|
||||||
"toughness_save": -1,
|
"toughness_save": -1,
|
||||||
"stabilization_dice": "D6",
|
"stabilization_dice": "D6",
|
||||||
@@ -756,7 +756,7 @@ export const TABLES = {
|
|||||||
"value": 8,
|
"value": 8,
|
||||||
|
|
||||||
"hp ": 8,
|
"hp ": 8,
|
||||||
"aether_points": -10,
|
"mana_points": -10,
|
||||||
"pain_save": 4,
|
"pain_save": 4,
|
||||||
"toughness_save": -1,
|
"toughness_save": -1,
|
||||||
"stabilization_dice": "D8",
|
"stabilization_dice": "D8",
|
||||||
@@ -766,7 +766,7 @@ export const TABLES = {
|
|||||||
"value": 9,
|
"value": 9,
|
||||||
|
|
||||||
"hp ": 9,
|
"hp ": 9,
|
||||||
"aether_points": -5,
|
"mana_points": -5,
|
||||||
"pain_save": 4,
|
"pain_save": 4,
|
||||||
"toughness_save": 0,
|
"toughness_save": 0,
|
||||||
"stabilization_dice": "D8",
|
"stabilization_dice": "D8",
|
||||||
@@ -776,7 +776,7 @@ export const TABLES = {
|
|||||||
"value": 10,
|
"value": 10,
|
||||||
|
|
||||||
"hp ": 10,
|
"hp ": 10,
|
||||||
"aether_points": 0,
|
"mana_points": 0,
|
||||||
"pain_save": 5,
|
"pain_save": 5,
|
||||||
"toughness_save": 0,
|
"toughness_save": 0,
|
||||||
"stabilization_dice": "D8",
|
"stabilization_dice": "D8",
|
||||||
@@ -786,7 +786,7 @@ export const TABLES = {
|
|||||||
"value": 11,
|
"value": 11,
|
||||||
|
|
||||||
"hp ": 11,
|
"hp ": 11,
|
||||||
"aether_points": 0,
|
"mana_points": 0,
|
||||||
"pain_save": 5,
|
"pain_save": 5,
|
||||||
"toughness_save": 0,
|
"toughness_save": 0,
|
||||||
"stabilization_dice": "D8",
|
"stabilization_dice": "D8",
|
||||||
@@ -796,7 +796,7 @@ export const TABLES = {
|
|||||||
"value": 12,
|
"value": 12,
|
||||||
|
|
||||||
"hp ": 12,
|
"hp ": 12,
|
||||||
"aether_points": 5,
|
"mana_points": 5,
|
||||||
"pain_save": 6,
|
"pain_save": 6,
|
||||||
"toughness_save": 0,
|
"toughness_save": 0,
|
||||||
"stabilization_dice": "D10",
|
"stabilization_dice": "D10",
|
||||||
@@ -806,7 +806,7 @@ export const TABLES = {
|
|||||||
"value": 13,
|
"value": 13,
|
||||||
|
|
||||||
"hp ": 13,
|
"hp ": 13,
|
||||||
"aether_points": 10,
|
"mana_points": 10,
|
||||||
"pain_save": 7,
|
"pain_save": 7,
|
||||||
"toughness_save": 1,
|
"toughness_save": 1,
|
||||||
"stabilization_dice": "D10",
|
"stabilization_dice": "D10",
|
||||||
@@ -816,7 +816,7 @@ export const TABLES = {
|
|||||||
"value": 14,
|
"value": 14,
|
||||||
|
|
||||||
"hp ": 14,
|
"hp ": 14,
|
||||||
"aether_points": 20,
|
"mana_points": 20,
|
||||||
"pain_save": 7,
|
"pain_save": 7,
|
||||||
"toughness_save": 2,
|
"toughness_save": 2,
|
||||||
"stabilization_dice": "D10",
|
"stabilization_dice": "D10",
|
||||||
@@ -826,7 +826,7 @@ export const TABLES = {
|
|||||||
"value": 15,
|
"value": 15,
|
||||||
|
|
||||||
"hp ": 15,
|
"hp ": 15,
|
||||||
"aether_points": 30,
|
"mana_points": 30,
|
||||||
"pain_save": 8,
|
"pain_save": 8,
|
||||||
"toughness_save": 3,
|
"toughness_save": 3,
|
||||||
"stabilization_dice": "D12",
|
"stabilization_dice": "D12",
|
||||||
@@ -836,7 +836,7 @@ export const TABLES = {
|
|||||||
"value": 16,
|
"value": 16,
|
||||||
|
|
||||||
"hp ": 16,
|
"hp ": 16,
|
||||||
"aether_points": 40,
|
"mana_points": 40,
|
||||||
"pain_save": 8,
|
"pain_save": 8,
|
||||||
"toughness_save": 4,
|
"toughness_save": 4,
|
||||||
"stabilization_dice": "D12",
|
"stabilization_dice": "D12",
|
||||||
@@ -846,7 +846,7 @@ export const TABLES = {
|
|||||||
"value": 17,
|
"value": 17,
|
||||||
|
|
||||||
"hp ": 17,
|
"hp ": 17,
|
||||||
"aether_points": 50,
|
"mana_points": 50,
|
||||||
"pain_save": 9,
|
"pain_save": 9,
|
||||||
"toughness_save": 5,
|
"toughness_save": 5,
|
||||||
"stabilization_dice": "D12",
|
"stabilization_dice": "D12",
|
||||||
@@ -856,7 +856,7 @@ export const TABLES = {
|
|||||||
"value": 18,
|
"value": 18,
|
||||||
|
|
||||||
"hp ": 18,
|
"hp ": 18,
|
||||||
"aether_points": 60,
|
"mana_points": 60,
|
||||||
"pain_save": 9,
|
"pain_save": 9,
|
||||||
"toughness_save": 6,
|
"toughness_save": 6,
|
||||||
"stabilization_dice": "D12",
|
"stabilization_dice": "D12",
|
||||||
@@ -866,7 +866,7 @@ export const TABLES = {
|
|||||||
"value": 19,
|
"value": 19,
|
||||||
|
|
||||||
"hp ": 19,
|
"hp ": 19,
|
||||||
"aether_points": 70,
|
"mana_points": 70,
|
||||||
"pain_save": 10,
|
"pain_save": 10,
|
||||||
"toughness_save": 7,
|
"toughness_save": 7,
|
||||||
"stabilization_dice": "D12",
|
"stabilization_dice": "D12",
|
||||||
@@ -876,7 +876,7 @@ export const TABLES = {
|
|||||||
"value": 20,
|
"value": 20,
|
||||||
|
|
||||||
"hp ": 20,
|
"hp ": 20,
|
||||||
"aether_points": 80,
|
"mana_points": 80,
|
||||||
"pain_save": 10,
|
"pain_save": 10,
|
||||||
"toughness_save": 8,
|
"toughness_save": 8,
|
||||||
"stabilization_dice": "D12",
|
"stabilization_dice": "D12",
|
||||||
@@ -886,7 +886,7 @@ export const TABLES = {
|
|||||||
"value": 21,
|
"value": 21,
|
||||||
|
|
||||||
"hp ": 21,
|
"hp ": 21,
|
||||||
"aether_points": 90,
|
"mana_points": 90,
|
||||||
"pain_save": 11,
|
"pain_save": 11,
|
||||||
"toughness_save": 9,
|
"toughness_save": 9,
|
||||||
"stabilization_dice": "D20",
|
"stabilization_dice": "D20",
|
||||||
@@ -896,7 +896,7 @@ export const TABLES = {
|
|||||||
"value": 22,
|
"value": 22,
|
||||||
|
|
||||||
"hp ": 22,
|
"hp ": 22,
|
||||||
"aether_points": 100,
|
"mana_points": 100,
|
||||||
"pain_save": 11,
|
"pain_save": 11,
|
||||||
"toughness_save": 10,
|
"toughness_save": 10,
|
||||||
"stabilization_dice": "D20",
|
"stabilization_dice": "D20",
|
||||||
@@ -906,7 +906,7 @@ export const TABLES = {
|
|||||||
"value": 23,
|
"value": 23,
|
||||||
|
|
||||||
"hp ": 23,
|
"hp ": 23,
|
||||||
"aether_points": 110,
|
"mana_points": 110,
|
||||||
"pain_save": 12,
|
"pain_save": 12,
|
||||||
"toughness_save": 11,
|
"toughness_save": 11,
|
||||||
"stabilization_dice": "D20",
|
"stabilization_dice": "D20",
|
||||||
@@ -916,7 +916,7 @@ export const TABLES = {
|
|||||||
"value": 24,
|
"value": 24,
|
||||||
|
|
||||||
"hp ": 24,
|
"hp ": 24,
|
||||||
"aether_points": 120,
|
"mana_points": 120,
|
||||||
"pain_save": 12,
|
"pain_save": 12,
|
||||||
"toughness_save": 12,
|
"toughness_save": 12,
|
||||||
"stabilization_dice": "D20",
|
"stabilization_dice": "D20",
|
||||||
@@ -925,7 +925,7 @@ export const TABLES = {
|
|||||||
{
|
{
|
||||||
"value": 25,
|
"value": 25,
|
||||||
"hp ": 25,
|
"hp ": 25,
|
||||||
"aether_points": 130,
|
"mana_points": 130,
|
||||||
"pain_save": 13,
|
"pain_save": 13,
|
||||||
"toughness_save": 13,
|
"toughness_save": 13,
|
||||||
"stabilization_dice": "D20",
|
"stabilization_dice": "D20",
|
||||||
|
|||||||
+19
-63
@@ -4,98 +4,80 @@
|
|||||||
* - +5 bonus to basic skill checks
|
* - +5 bonus to basic skill checks
|
||||||
* - Access to advanced skill checks
|
* - Access to advanced skill checks
|
||||||
* - Access to a Core Skill Class (based on archetype)
|
* - Access to a Core Skill Class (based on archetype)
|
||||||
* - +2 to one of 3 associated attributes
|
* - +2 to one chosen attribute
|
||||||
*/
|
*/
|
||||||
export const CORE_SKILLS = Object.freeze({
|
export const CORE_SKILLS = Object.freeze({
|
||||||
acrobatics: {
|
acrobatics: {
|
||||||
id: "acrobatics",
|
id: "acrobatics",
|
||||||
label: "PRISMRPG.Skill.CoreSkill.acrobatics",
|
label: "PRISMRPG.Skill.CoreSkill.acrobatics"
|
||||||
attributeChoices: ["dex", "wis", "con"]
|
|
||||||
},
|
},
|
||||||
animalHandling: {
|
animalHandling: {
|
||||||
id: "animalHandling",
|
id: "animalHandling",
|
||||||
label: "PRISMRPG.Skill.CoreSkill.animalHandling",
|
label: "PRISMRPG.Skill.CoreSkill.animalHandling"
|
||||||
attributeChoices: ["str", "con", "dex"]
|
|
||||||
},
|
},
|
||||||
arcana: {
|
arcana: {
|
||||||
id: "arcana",
|
id: "arcana",
|
||||||
label: "PRISMRPG.Skill.CoreSkill.arcana",
|
label: "PRISMRPG.Skill.CoreSkill.arcana"
|
||||||
attributeChoices: ["str", "int", "wis"]
|
|
||||||
},
|
},
|
||||||
athletics: {
|
athletics: {
|
||||||
id: "athletics",
|
id: "athletics",
|
||||||
label: "PRISMRPG.Skill.CoreSkill.athletics",
|
label: "PRISMRPG.Skill.CoreSkill.athletics"
|
||||||
attributeChoices: ["str", "dex", "con"]
|
|
||||||
},
|
},
|
||||||
deception: {
|
deception: {
|
||||||
id: "deception",
|
id: "deception",
|
||||||
label: "PRISMRPG.Skill.CoreSkill.deception",
|
label: "PRISMRPG.Skill.CoreSkill.deception"
|
||||||
attributeChoices: ["int", "wis", "cha"]
|
|
||||||
},
|
},
|
||||||
history: {
|
history: {
|
||||||
id: "history",
|
id: "history",
|
||||||
label: "PRISMRPG.Skill.CoreSkill.history",
|
label: "PRISMRPG.Skill.CoreSkill.history"
|
||||||
attributeChoices: ["str", "wis", "con"]
|
|
||||||
},
|
},
|
||||||
insight: {
|
insight: {
|
||||||
id: "insight",
|
id: "insight",
|
||||||
label: "PRISMRPG.Skill.CoreSkill.insight",
|
label: "PRISMRPG.Skill.CoreSkill.insight"
|
||||||
attributeChoices: ["int", "cha", "wis"]
|
|
||||||
},
|
},
|
||||||
intimidate: {
|
intimidate: {
|
||||||
id: "intimidate",
|
id: "intimidate",
|
||||||
label: "PRISMRPG.Skill.CoreSkill.intimidate",
|
label: "PRISMRPG.Skill.CoreSkill.intimidate"
|
||||||
attributeChoices: ["str", "cha", "wis"]
|
|
||||||
},
|
},
|
||||||
investigation: {
|
investigation: {
|
||||||
id: "investigation",
|
id: "investigation",
|
||||||
label: "PRISMRPG.Skill.CoreSkill.investigation",
|
label: "PRISMRPG.Skill.CoreSkill.investigation"
|
||||||
attributeChoices: ["int", "wis", "con"]
|
|
||||||
},
|
},
|
||||||
medicine: {
|
medicine: {
|
||||||
id: "medicine",
|
id: "medicine",
|
||||||
label: "PRISMRPG.Skill.CoreSkill.medicine",
|
label: "PRISMRPG.Skill.CoreSkill.medicine"
|
||||||
attributeChoices: ["con", "wis", "int"]
|
|
||||||
},
|
},
|
||||||
nature: {
|
nature: {
|
||||||
id: "nature",
|
id: "nature",
|
||||||
label: "PRISMRPG.Skill.CoreSkill.nature",
|
label: "PRISMRPG.Skill.CoreSkill.nature"
|
||||||
attributeChoices: ["str", "wis", "int"]
|
|
||||||
},
|
},
|
||||||
perception: {
|
perception: {
|
||||||
id: "perception",
|
id: "perception",
|
||||||
label: "PRISMRPG.Skill.CoreSkill.perception",
|
label: "PRISMRPG.Skill.CoreSkill.perception"
|
||||||
attributeChoices: ["dex", "wis", "cha"]
|
|
||||||
},
|
},
|
||||||
performance: {
|
performance: {
|
||||||
id: "performance",
|
id: "performance",
|
||||||
label: "PRISMRPG.Skill.CoreSkill.performance",
|
label: "PRISMRPG.Skill.CoreSkill.performance"
|
||||||
attributeChoices: ["str", "cha", "wis"]
|
|
||||||
},
|
},
|
||||||
persuasion: {
|
persuasion: {
|
||||||
id: "persuasion",
|
id: "persuasion",
|
||||||
label: "PRISMRPG.Skill.CoreSkill.persuasion",
|
label: "PRISMRPG.Skill.CoreSkill.persuasion"
|
||||||
attributeChoices: ["cha", "dex", "int"]
|
|
||||||
},
|
},
|
||||||
religion: {
|
religion: {
|
||||||
id: "religion",
|
id: "religion",
|
||||||
label: "PRISMRPG.Skill.CoreSkill.religion",
|
label: "PRISMRPG.Skill.CoreSkill.religion"
|
||||||
attributeChoices: ["str", "wis", "cha"]
|
|
||||||
},
|
},
|
||||||
sleightOfHand: {
|
sleightOfHand: {
|
||||||
id: "sleightOfHand",
|
id: "sleightOfHand",
|
||||||
label: "PRISMRPG.Skill.CoreSkill.sleightOfHand",
|
label: "PRISMRPG.Skill.CoreSkill.sleightOfHand"
|
||||||
attributeChoices: ["dex", "wis", "int"]
|
|
||||||
},
|
},
|
||||||
stealth: {
|
stealth: {
|
||||||
id: "stealth",
|
id: "stealth",
|
||||||
label: "PRISMRPG.Skill.CoreSkill.stealth",
|
label: "PRISMRPG.Skill.CoreSkill.stealth"
|
||||||
attributeChoices: ["int", "dex", "cha"]
|
|
||||||
},
|
},
|
||||||
survival: {
|
survival: {
|
||||||
id: "survival",
|
id: "survival",
|
||||||
label: "PRISMRPG.Skill.CoreSkill.survival",
|
label: "PRISMRPG.Skill.CoreSkill.survival"
|
||||||
attributeChoices: ["int", "con", "cha"]
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -130,29 +112,3 @@ export const CORE_SKILL_BONUS = Object.freeze({
|
|||||||
basic: 5, // +5 to basic skill checks
|
basic: 5, // +5 to basic skill checks
|
||||||
attributeBonus: 2 // +2 to chosen attribute
|
attributeBonus: 2 // +2 to chosen attribute
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
|
||||||
* Legacy skill categories (may be deprecated)
|
|
||||||
*/
|
|
||||||
export const CATEGORY = Object.freeze({
|
|
||||||
layperson: {
|
|
||||||
id: "layperson",
|
|
||||||
label: "PRISMRPG.Skill.Category.layperson",
|
|
||||||
},
|
|
||||||
professional: {
|
|
||||||
id: "professional",
|
|
||||||
label: "PRISMRPG.Skill.Category.professional",
|
|
||||||
},
|
|
||||||
weapon: {
|
|
||||||
id: "weapon",
|
|
||||||
label: "PRISMRPG.Skill.Category.weapon",
|
|
||||||
},
|
|
||||||
armor: {
|
|
||||||
id: "armor",
|
|
||||||
label: "PRISMRPG.Skill.Category.armor",
|
|
||||||
},
|
|
||||||
resist: {
|
|
||||||
id: "resist",
|
|
||||||
label: "PRISMRPG.Skill.Category.resist",
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|||||||
+27
-27
@@ -14,35 +14,35 @@ export const SYSTEM_ID = "fvtt-prism-rpg"
|
|||||||
export const DEV_MODE = false
|
export const DEV_MODE = false
|
||||||
|
|
||||||
export const MONEY = {
|
export const MONEY = {
|
||||||
tinbit: {
|
coppercoin: {
|
||||||
id: "tinbit",
|
id: "coppercoin",
|
||||||
abbrev: "tb",
|
abbrev: "cc",
|
||||||
label: "PRISMRPG.Money.Tinbits",
|
label: "PRISMRPG.Money.CopperCoin",
|
||||||
valuetb: 1
|
valuetb: 1
|
||||||
},
|
},
|
||||||
copper: {
|
silvercoin: {
|
||||||
id: "copper",
|
id: "silvercoin",
|
||||||
abbrev: "cp",
|
abbrev: "sc",
|
||||||
label: "PRISMRPG.Money.Coppers",
|
label: "PRISMRPG.Money.SilverCoin",
|
||||||
|
valuetb: 5
|
||||||
|
},
|
||||||
|
goldcoin: {
|
||||||
|
id: "goldcoin",
|
||||||
|
abbrev: "gc",
|
||||||
|
label: "PRISMRPG.Money.GoldCoin",
|
||||||
valuetb: 10
|
valuetb: 10
|
||||||
},
|
},
|
||||||
silver: {
|
note: {
|
||||||
id: "silver",
|
id: "note",
|
||||||
abbrev: "sp",
|
abbrev: "nt",
|
||||||
label: "PRISMRPG.Money.Silvers",
|
label: "PRISMRPG.Money.Note",
|
||||||
valuetb: 100
|
valuetb: 100
|
||||||
},
|
},
|
||||||
gold: {
|
steam: {
|
||||||
id: "gold",
|
id: "steam",
|
||||||
abbrev: "gp",
|
abbrev: "st",
|
||||||
label: "PRISMRPG.Money.Golds",
|
label: "PRISMRPG.Money.Steam",
|
||||||
valuetb: 1000
|
valuetb: 1000
|
||||||
},
|
|
||||||
platinum: {
|
|
||||||
id: "platinum",
|
|
||||||
abbrev: "pp",
|
|
||||||
label: "PRISMRPG.Money.Platinums",
|
|
||||||
valuetb: 10000
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -56,10 +56,10 @@ export const MORTAL_CHOICES = {
|
|||||||
"halflings": { label: "Halfling", id: "halflings", defenseBonus: 2 }
|
"halflings": { label: "Halfling", id: "halflings", defenseBonus: 2 }
|
||||||
}
|
}
|
||||||
|
|
||||||
export const FAVOR_CHOICES = {
|
export const ADVANTAGE_CHOICES = {
|
||||||
"none": { label: "None", value: "none" },
|
"none": { label: "None", value: "none" },
|
||||||
"favor": { label: "Favor", value: "favor" },
|
"advantage": { label: "Advantage", value: "advantage" },
|
||||||
"disfavor": { label: "Disfavor", value: "disfavor" }
|
"disadvantage": { label: "Disadvantage", value: "disadvantage" }
|
||||||
}
|
}
|
||||||
|
|
||||||
export const MOVEMENT_CHOICES = {
|
export const MOVEMENT_CHOICES = {
|
||||||
@@ -156,7 +156,7 @@ export const INITIATIVE_DICE_CHOICES_PER_CLASS = {
|
|||||||
{ "name": "Aware and know exactly where the enemy is (1D4)", "value": "1D4" }*/
|
{ "name": "Aware and know exactly where the enemy is (1D4)", "value": "1D4" }*/
|
||||||
],
|
],
|
||||||
"magicuser": [
|
"magicuser": [
|
||||||
{ "name": "Sleeping to recover Aether Points (2D20)", "value": "2D20" },
|
{ "name": "Sleeping to recover Mana Points (2D20)", "value": "2D20" },
|
||||||
{ "name": "Asleep or totally distracted (1D20)", "value": "1D20" },
|
{ "name": "Asleep or totally distracted (1D20)", "value": "1D20" },
|
||||||
{ "name": "Awake but unsuspecting (1D12)", "value": "1D12" },
|
{ "name": "Awake but unsuspecting (1D12)", "value": "1D12" },
|
||||||
{ "name": "Declared Ready on Alert (1)", "value": "1" },
|
{ "name": "Declared Ready on Alert (1)", "value": "1" },
|
||||||
@@ -327,7 +327,7 @@ export const SYSTEM = {
|
|||||||
MOVE_DIRECTION_CHOICES,
|
MOVE_DIRECTION_CHOICES,
|
||||||
SIZE_CHOICES,
|
SIZE_CHOICES,
|
||||||
RANGE_CHOICES,
|
RANGE_CHOICES,
|
||||||
FAVOR_CHOICES,
|
ADVANTAGE_CHOICES,
|
||||||
ATTACKER_AIM_CHOICES,
|
ATTACKER_AIM_CHOICES,
|
||||||
MORTAL_CHOICES,
|
MORTAL_CHOICES,
|
||||||
MIRACLE_TYPES,
|
MIRACLE_TYPES,
|
||||||
|
|||||||
+180
-18
@@ -1,8 +1,8 @@
|
|||||||
/**
|
/**
|
||||||
* Weapon types based on Prism RPG rules
|
* Default weapon types based on Prism RPG rules
|
||||||
* APC determines weapon class: Light (1 APC), One-Handed (2 APC), Heavy (3 APC)
|
* APC determines weapon class: Light (1 APC), One-Handed (2 APC), Heavy (3 APC)
|
||||||
*/
|
*/
|
||||||
export const TYPE = Object.freeze({
|
const DEFAULT_TYPES = {
|
||||||
light: {
|
light: {
|
||||||
id: "light",
|
id: "light",
|
||||||
label: "PRISMRPG.Weapon.Type.light",
|
label: "PRISMRPG.Weapon.Type.light",
|
||||||
@@ -27,22 +27,75 @@ export const TYPE = Object.freeze({
|
|||||||
apc: 0, // Variable based on specific weapon
|
apc: 0, // Variable based on specific weapon
|
||||||
hands: 2
|
hands: 2
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get weapon types (default + custom from settings)
|
||||||
|
*/
|
||||||
|
export function getWeaponTypes() {
|
||||||
|
if (!game?.settings) return DEFAULT_TYPES;
|
||||||
|
|
||||||
|
const customTypes = game.settings.get("fvtt-prism-rpg", "customWeaponTypes") || {};
|
||||||
|
return foundry.utils.mergeObject(DEFAULT_TYPES, customTypes, { inplace: false });
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Weapon types (dynamically loaded)
|
||||||
|
*/
|
||||||
|
export const TYPE = new Proxy({}, {
|
||||||
|
get(target, prop) {
|
||||||
|
const types = getWeaponTypes();
|
||||||
|
return types[prop];
|
||||||
|
},
|
||||||
|
ownKeys(target) {
|
||||||
|
return Object.keys(getWeaponTypes());
|
||||||
|
},
|
||||||
|
getOwnPropertyDescriptor(target, prop) {
|
||||||
|
return {
|
||||||
|
enumerable: true,
|
||||||
|
configurable: true
|
||||||
|
};
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Simplified Weapon Types object for form choices (label-only format)
|
* Simplified Weapon Types object for form choices (label-only format)
|
||||||
*/
|
*/
|
||||||
export const TYPE_CHOICES = Object.freeze(
|
export function getWeaponTypeChoices() {
|
||||||
Object.fromEntries(
|
const types = getWeaponTypes();
|
||||||
Object.entries(TYPE).map(([key, value]) => [key, value.label])
|
return Object.fromEntries(
|
||||||
)
|
Object.entries(types).map(([key, value]) => [key, value.label])
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export const TYPE_CHOICES = new Proxy({}, {
|
||||||
|
get(target, prop) {
|
||||||
|
const choices = getWeaponTypeChoices();
|
||||||
|
return choices[prop];
|
||||||
|
},
|
||||||
|
ownKeys(target) {
|
||||||
|
return Object.keys(getWeaponTypeChoices());
|
||||||
|
},
|
||||||
|
getOwnPropertyDescriptor(target, prop) {
|
||||||
|
return {
|
||||||
|
enumerable: true,
|
||||||
|
configurable: true
|
||||||
|
};
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Weapon groups and their associated passives
|
* Default weapon groups and their associated passives
|
||||||
* Each weapon belongs to a group and possesses its passive while wielded
|
* Each weapon belongs to a group and possesses its passive while wielded
|
||||||
*/
|
*/
|
||||||
export const WEAPON_GROUP = Object.freeze({
|
const DEFAULT_WEAPON_GROUPS = {
|
||||||
|
shortsword: {
|
||||||
|
id: "shortsword",
|
||||||
|
label: "PRISMRPG.WeaponGroup.shortsword",
|
||||||
|
passive: "quickBlade",
|
||||||
|
passiveLabel: "PRISMRPG.Weapon.Passive.quickBlade",
|
||||||
|
passiveDescription: "PRISMRPG.Weapon.PassiveDescription.quickBlade"
|
||||||
|
},
|
||||||
longsword: {
|
longsword: {
|
||||||
id: "longsword",
|
id: "longsword",
|
||||||
label: "PRISMRPG.WeaponGroup.longsword",
|
label: "PRISMRPG.WeaponGroup.longsword",
|
||||||
@@ -50,12 +103,19 @@ export const WEAPON_GROUP = Object.freeze({
|
|||||||
passiveLabel: "PRISMRPG.Weapon.Passive.turningEdge",
|
passiveLabel: "PRISMRPG.Weapon.Passive.turningEdge",
|
||||||
passiveDescription: "PRISMRPG.Weapon.PassiveDescription.turningEdge"
|
passiveDescription: "PRISMRPG.Weapon.PassiveDescription.turningEdge"
|
||||||
},
|
},
|
||||||
warhammer: {
|
greatsword: {
|
||||||
id: "warhammer",
|
id: "greatsword",
|
||||||
label: "PRISMRPG.WeaponGroup.warhammer",
|
label: "PRISMRPG.WeaponGroup.greatsword",
|
||||||
passive: "puncturingBlows",
|
passive: "cleave",
|
||||||
passiveLabel: "PRISMRPG.Weapon.Passive.puncturingBlows",
|
passiveLabel: "PRISMRPG.Weapon.Passive.cleave",
|
||||||
passiveDescription: "PRISMRPG.Weapon.PassiveDescription.puncturingBlows"
|
passiveDescription: "PRISMRPG.Weapon.PassiveDescription.cleave"
|
||||||
|
},
|
||||||
|
handaxe: {
|
||||||
|
id: "handaxe",
|
||||||
|
label: "PRISMRPG.WeaponGroup.handaxe",
|
||||||
|
passive: "throwingAxe",
|
||||||
|
passiveLabel: "PRISMRPG.Weapon.Passive.throwingAxe",
|
||||||
|
passiveDescription: "PRISMRPG.Weapon.PassiveDescription.throwingAxe"
|
||||||
},
|
},
|
||||||
battleaxe: {
|
battleaxe: {
|
||||||
id: "battleaxe",
|
id: "battleaxe",
|
||||||
@@ -64,6 +124,62 @@ export const WEAPON_GROUP = Object.freeze({
|
|||||||
passiveLabel: "PRISMRPG.Weapon.Passive.shieldEater",
|
passiveLabel: "PRISMRPG.Weapon.Passive.shieldEater",
|
||||||
passiveDescription: "PRISMRPG.Weapon.PassiveDescription.shieldEater"
|
passiveDescription: "PRISMRPG.Weapon.PassiveDescription.shieldEater"
|
||||||
},
|
},
|
||||||
|
greataxe: {
|
||||||
|
id: "greataxe",
|
||||||
|
label: "PRISMRPG.WeaponGroup.greataxe",
|
||||||
|
passive: "devastatingBlow",
|
||||||
|
passiveLabel: "PRISMRPG.Weapon.Passive.devastatingBlow",
|
||||||
|
passiveDescription: "PRISMRPG.Weapon.PassiveDescription.devastatingBlow"
|
||||||
|
},
|
||||||
|
club: {
|
||||||
|
id: "club",
|
||||||
|
label: "PRISMRPG.WeaponGroup.club",
|
||||||
|
passive: "stun",
|
||||||
|
passiveLabel: "PRISMRPG.Weapon.Passive.stun",
|
||||||
|
passiveDescription: "PRISMRPG.Weapon.PassiveDescription.stun"
|
||||||
|
},
|
||||||
|
mace: {
|
||||||
|
id: "mace",
|
||||||
|
label: "PRISMRPG.WeaponGroup.mace",
|
||||||
|
passive: "armorBreaker",
|
||||||
|
passiveLabel: "PRISMRPG.Weapon.Passive.armorBreaker",
|
||||||
|
passiveDescription: "PRISMRPG.Weapon.PassiveDescription.armorBreaker"
|
||||||
|
},
|
||||||
|
greatMaul: {
|
||||||
|
id: "greatMaul",
|
||||||
|
label: "PRISMRPG.WeaponGroup.greatMaul",
|
||||||
|
passive: "earthshatter",
|
||||||
|
passiveLabel: "PRISMRPG.Weapon.Passive.earthshatter",
|
||||||
|
passiveDescription: "PRISMRPG.Weapon.PassiveDescription.earthshatter"
|
||||||
|
},
|
||||||
|
javelin: {
|
||||||
|
id: "javelin",
|
||||||
|
label: "PRISMRPG.WeaponGroup.javelin",
|
||||||
|
passive: "piercingThrow",
|
||||||
|
passiveLabel: "PRISMRPG.Weapon.Passive.piercingThrow",
|
||||||
|
passiveDescription: "PRISMRPG.Weapon.PassiveDescription.piercingThrow"
|
||||||
|
},
|
||||||
|
spear: {
|
||||||
|
id: "spear",
|
||||||
|
label: "PRISMRPG.WeaponGroup.spear",
|
||||||
|
passive: "reach",
|
||||||
|
passiveLabel: "PRISMRPG.Weapon.Passive.reach",
|
||||||
|
passiveDescription: "PRISMRPG.Weapon.PassiveDescription.reach"
|
||||||
|
},
|
||||||
|
longSpear: {
|
||||||
|
id: "longSpear",
|
||||||
|
label: "PRISMRPG.WeaponGroup.longSpear",
|
||||||
|
passive: "extendedReach",
|
||||||
|
passiveLabel: "PRISMRPG.Weapon.Passive.extendedReach",
|
||||||
|
passiveDescription: "PRISMRPG.Weapon.PassiveDescription.extendedReach"
|
||||||
|
},
|
||||||
|
warhammer: {
|
||||||
|
id: "warhammer",
|
||||||
|
label: "PRISMRPG.WeaponGroup.warhammer",
|
||||||
|
passive: "puncturingBlows",
|
||||||
|
passiveLabel: "PRISMRPG.Weapon.Passive.puncturingBlows",
|
||||||
|
passiveDescription: "PRISMRPG.Weapon.PassiveDescription.puncturingBlows"
|
||||||
|
},
|
||||||
dagger: {
|
dagger: {
|
||||||
id: "dagger",
|
id: "dagger",
|
||||||
label: "PRISMRPG.WeaponGroup.dagger",
|
label: "PRISMRPG.WeaponGroup.dagger",
|
||||||
@@ -85,16 +201,62 @@ export const WEAPON_GROUP = Object.freeze({
|
|||||||
passiveLabel: "PRISMRPG.Weapon.Passive.volleyFire",
|
passiveLabel: "PRISMRPG.Weapon.Passive.volleyFire",
|
||||||
passiveDescription: "PRISMRPG.Weapon.PassiveDescription.volleyFire"
|
passiveDescription: "PRISMRPG.Weapon.PassiveDescription.volleyFire"
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get weapon groups (default + custom from settings)
|
||||||
|
*/
|
||||||
|
export function getWeaponGroups() {
|
||||||
|
if (!game?.settings) return DEFAULT_WEAPON_GROUPS;
|
||||||
|
|
||||||
|
const customGroups = game.settings.get("fvtt-prism-rpg", "customWeaponGroups") || {};
|
||||||
|
return foundry.utils.mergeObject(DEFAULT_WEAPON_GROUPS, customGroups, { inplace: false });
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Weapon groups (dynamically loaded)
|
||||||
|
*/
|
||||||
|
export const WEAPON_GROUP = new Proxy({}, {
|
||||||
|
get(target, prop) {
|
||||||
|
const groups = getWeaponGroups();
|
||||||
|
return groups[prop];
|
||||||
|
},
|
||||||
|
ownKeys(target) {
|
||||||
|
return Object.keys(getWeaponGroups());
|
||||||
|
},
|
||||||
|
getOwnPropertyDescriptor(target, prop) {
|
||||||
|
return {
|
||||||
|
enumerable: true,
|
||||||
|
configurable: true
|
||||||
|
};
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Simplified Weapon Groups object for form choices (label-only format)
|
* Simplified Weapon Groups object for form choices (label-only format)
|
||||||
*/
|
*/
|
||||||
export const WEAPON_GROUP_CHOICES = Object.freeze(
|
export function getWeaponGroupChoices() {
|
||||||
Object.fromEntries(
|
const groups = getWeaponGroups();
|
||||||
Object.entries(WEAPON_GROUP).map(([key, value]) => [key, value.label])
|
return Object.fromEntries(
|
||||||
)
|
Object.entries(groups).map(([key, value]) => [key, value.label])
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export const WEAPON_GROUP_CHOICES = new Proxy({}, {
|
||||||
|
get(target, prop) {
|
||||||
|
const choices = getWeaponGroupChoices();
|
||||||
|
return choices[prop];
|
||||||
|
},
|
||||||
|
ownKeys(target) {
|
||||||
|
return Object.keys(getWeaponGroupChoices());
|
||||||
|
},
|
||||||
|
getOwnPropertyDescriptor(target, prop) {
|
||||||
|
return {
|
||||||
|
enumerable: true,
|
||||||
|
configurable: true
|
||||||
|
};
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Damage types for weapons
|
* Damage types for weapons
|
||||||
|
|||||||
+59
-45
@@ -1,4 +1,6 @@
|
|||||||
import PrismRPGUtils from "../utils.mjs"
|
import PrismRPGUtils from "../utils.mjs"
|
||||||
|
import PrismRPGRoll from "./roll.mjs"
|
||||||
|
|
||||||
export default class PrismRPGActor extends Actor {
|
export default class PrismRPGActor extends Actor {
|
||||||
|
|
||||||
static async create(data, options) {
|
static async create(data, options) {
|
||||||
@@ -42,31 +44,12 @@ export default class PrismRPGActor extends Actor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* *************************************************/
|
/* *************************************************/
|
||||||
|
// This method is no longer needed in D&D 5e style system
|
||||||
|
// Weapon proficiency is handled through character class/race features
|
||||||
getBestWeaponClassSkill(skills, rollType, multiplier = 1.0) {
|
getBestWeaponClassSkill(skills, rollType, multiplier = 1.0) {
|
||||||
let maxValue = 0
|
// In D&D 5e, we don't need weapon skills with bonuses
|
||||||
let goodSkill = skills[0]
|
// Just return the first skill (or could be removed entirely)
|
||||||
for (let s of skills) {
|
return skills[0]
|
||||||
if (rollType === "weapon-attack") {
|
|
||||||
if (s.system.weaponBonus.attack > maxValue) {
|
|
||||||
maxValue = Number(s.system.weaponBonus.attack)
|
|
||||||
goodSkill = s
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (rollType === "weapon-defense") {
|
|
||||||
if (s.system.weaponBonus.defense > maxValue) {
|
|
||||||
maxValue = Number(s.system.weaponBonus.defense)
|
|
||||||
goodSkill = s
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (rollType.includes("weapon-damage")) {
|
|
||||||
if (s.system.weaponBonus.damage > maxValue) {
|
|
||||||
maxValue = Number(s.system.weaponBonus.damage)
|
|
||||||
goodSkill = s
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
goodSkill.weaponSkillModifier = maxValue * multiplier
|
|
||||||
return goodSkill
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* *************************************************/
|
/* *************************************************/
|
||||||
@@ -83,6 +66,28 @@ export default class PrismRPGActor extends Actor {
|
|||||||
console.log("Preparing roll", rollType, rollKey, rollDice)
|
console.log("Preparing roll", rollType, rollKey, rollDice)
|
||||||
let rollTarget
|
let rollTarget
|
||||||
switch (rollType) {
|
switch (rollType) {
|
||||||
|
case "characteristic":
|
||||||
|
if (!this.system.characteristics || !this.system.characteristics[rollKey]) {
|
||||||
|
ui.notifications.error(`Characteristic ${rollKey} not found`)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
rollTarget = {
|
||||||
|
...foundry.utils.duplicate(this.system.characteristics[rollKey]),
|
||||||
|
rollKey: rollKey,
|
||||||
|
name: game.i18n.localize(`PRISMRPG.Label.${rollKey}`)
|
||||||
|
}
|
||||||
|
break
|
||||||
|
case "sub-attribute":
|
||||||
|
if (!this.system.subAttributes || !this.system.subAttributes[rollKey]) {
|
||||||
|
ui.notifications.error(`Sub-attribute ${rollKey} not found`)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
rollTarget = {
|
||||||
|
...foundry.utils.duplicate(this.system.subAttributes[rollKey]),
|
||||||
|
rollKey: rollKey,
|
||||||
|
name: game.i18n.localize(SYSTEM.SUB_ATTRIBUTES[rollKey].label)
|
||||||
|
}
|
||||||
|
break
|
||||||
case "granted":
|
case "granted":
|
||||||
rollTarget = {
|
rollTarget = {
|
||||||
name: rollKey,
|
name: rollKey,
|
||||||
@@ -101,6 +106,10 @@ export default class PrismRPGActor extends Actor {
|
|||||||
rollTarget = foundry.utils.duplicate(this.system.saves[rollKey])
|
rollTarget = foundry.utils.duplicate(this.system.saves[rollKey])
|
||||||
rollTarget.rollKey = rollKey
|
rollTarget.rollKey = rollKey
|
||||||
rollTarget.rollDice = rollDice
|
rollTarget.rollDice = rollDice
|
||||||
|
// Pass the characteristic value for D&D 5e modifier calculation
|
||||||
|
rollTarget.characteristicValue = this.system.characteristics[rollKey].value
|
||||||
|
// The save bonus is the proficiency modifier (value stored in saves)
|
||||||
|
rollTarget.saveBonus = this.system.saves[rollKey].value
|
||||||
break
|
break
|
||||||
case "spell":
|
case "spell":
|
||||||
rollTarget = this.items.find((i) => i.type === "spell" && i.id === rollKey)
|
rollTarget = this.items.find((i) => i.type === "spell" && i.id === rollKey)
|
||||||
@@ -117,12 +126,17 @@ export default class PrismRPGActor extends Actor {
|
|||||||
ui.notifications.warn(game.i18n.localize("PRISMRPG.Notifications.rollFromWeapon"))
|
ui.notifications.warn(game.i18n.localize("PRISMRPG.Notifications.rollFromWeapon"))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
// Get the primary attribute for D&D 5e style rolls
|
||||||
|
const attrKey = rollTarget.system.primaryAttribute || "dex"
|
||||||
|
rollTarget.characteristicValue = this.system.characteristics[attrKey].value
|
||||||
|
rollTarget.proficiencyBonus = rollTarget.system.modifier
|
||||||
break
|
break
|
||||||
case "spell-attack":
|
case "spell-attack":
|
||||||
case "spell-power":
|
case "spell-power":
|
||||||
|
case "spell-cast":
|
||||||
case "miracle-attack":
|
case "miracle-attack":
|
||||||
case "miracle-power":
|
case "miracle-power":
|
||||||
rollTarget = this.items.find((i) => (i.type === "miracle" || i.type == "spell") && i.id === rollKey)
|
rollTarget = this.items.find((i) => (i.type === "miracle" || i.type === "spell") && i.id === rollKey)
|
||||||
rollTarget.rollKey = rollKey
|
rollTarget.rollKey = rollKey
|
||||||
break
|
break
|
||||||
case "shield-roll": {
|
case "shield-roll": {
|
||||||
@@ -134,8 +148,7 @@ export default class PrismRPGActor extends Actor {
|
|||||||
break;
|
break;
|
||||||
case "weapon-damage-small":
|
case "weapon-damage-small":
|
||||||
case "weapon-damage-medium":
|
case "weapon-damage-medium":
|
||||||
case "weapon-attack":
|
case "weapon-attack": {
|
||||||
case "weapon-defense": {
|
|
||||||
let weapon = this.items.find((i) => i.type === "weapon" && i.id === rollKey)
|
let weapon = this.items.find((i) => i.type === "weapon" && i.id === rollKey)
|
||||||
let skill
|
let skill
|
||||||
let skills = this.items.filter((i) => i.type === "skill" && i.name.toLowerCase() === weapon.name.toLowerCase())
|
let skills = this.items.filter((i) => i.type === "skill" && i.name.toLowerCase() === weapon.name.toLowerCase())
|
||||||
@@ -165,31 +178,32 @@ export default class PrismRPGActor extends Actor {
|
|||||||
ui.notifications.warn(game.i18n.localize("PRISMRPG.Notifications.skillNotFound"))
|
ui.notifications.warn(game.i18n.localize("PRISMRPG.Notifications.skillNotFound"))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
rollTarget = skill
|
|
||||||
rollTarget.weapon = weapon
|
// Create a plain object for rollTarget to ensure weapon data is preserved
|
||||||
rollTarget.weaponSkillModifier = skill.weaponSkillModifier
|
rollTarget = {
|
||||||
rollTarget.rollKey = rollKey
|
...skill.toObject(),
|
||||||
rollTarget.combat = foundry.utils.duplicate(this.system.combat)
|
weapon: weapon.toObject(),
|
||||||
if ( rollType === "weapon-damage-small" || rollType === "weapon-damage-medium") {
|
rollKey: rollKey,
|
||||||
rollTarget.grantedDice = this.system.granted.damageDice
|
combat: foundry.utils.duplicate(this.system.combat),
|
||||||
}
|
strMod: PrismRPGRoll.getAbilityModifier(this.system.characteristics.str.value),
|
||||||
if ( rollType === "weapon-attack") {
|
dexMod: PrismRPGRoll.getAbilityModifier(this.system.characteristics.dex.value)
|
||||||
rollTarget.grantedDice = this.system.granted.attackDice
|
|
||||||
}
|
|
||||||
if ( rollType === "weapon-defense") {
|
|
||||||
rollTarget.grantedDice = this.system.granted.defenseDice
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
default:
|
default:
|
||||||
ui.notifications.error(game.i18n.localize("PRISMRPG.Notifications.rollTypeNotFound") + String(rollType))
|
ui.notifications.error(game.i18n.localize("PRISMRPG.Notifications.rollTypeNotFound") + String(rollType))
|
||||||
break
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// In all cases
|
// In all cases - verify rollTarget exists
|
||||||
rollTarget.magicUser = this.system.biodata.magicUser
|
if (!rollTarget) {
|
||||||
rollTarget.actorModifiers = foundry.utils.duplicate(this.system.modifiers)
|
console.error("Roll target is undefined for rollType:", rollType)
|
||||||
rollTarget.actorLevel = this.system.biodata.level
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
rollTarget.magicUser = this.system.biodata?.magicUser || false
|
||||||
|
rollTarget.actorModifiers = this.system.modifiers ? foundry.utils.duplicate(this.system.modifiers) : {}
|
||||||
|
rollTarget.actorLevel = this.system.biodata?.level || 1
|
||||||
await this.system.roll(rollType, rollTarget)
|
await this.system.roll(rollType, rollTarget)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,8 @@ export const defaultItemImg = {
|
|||||||
shield: "systems/fvtt-prism-rpg/assets/icons/icon_shield.webp",
|
shield: "systems/fvtt-prism-rpg/assets/icons/icon_shield.webp",
|
||||||
spell: "systems/fvtt-prism-rpg/assets/icons/icon_spell.webp",
|
spell: "systems/fvtt-prism-rpg/assets/icons/icon_spell.webp",
|
||||||
race: "systems/fvtt-prism-rpg/assets/icons/icon_race.webp",
|
race: "systems/fvtt-prism-rpg/assets/icons/icon_race.webp",
|
||||||
class: "systems/fvtt-prism-rpg/assets/icons/icon_class.webp"
|
class: "systems/fvtt-prism-rpg/assets/icons/icon_class.webp",
|
||||||
|
"character-path": "systems/fvtt-prism-rpg/assets/icons/icon_character_path.webp",
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class PrismRPGItem extends Item {
|
export default class PrismRPGItem extends Item {
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
+299
-980
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -11,3 +11,4 @@ export { default as PrismRPGEquipment } from "./equipment.mjs"
|
|||||||
export { default as PrismRPGMiracle } from "./miracle.mjs"
|
export { default as PrismRPGMiracle } from "./miracle.mjs"
|
||||||
export { default as PrismRPGRace } from "./race.mjs"
|
export { default as PrismRPGRace } from "./race.mjs"
|
||||||
export { default as PrismRPGClass } from "./class.mjs"
|
export { default as PrismRPGClass } from "./class.mjs"
|
||||||
|
export { default as PrismRPGCharacterPath } from "./character-path.mjs"
|
||||||
@@ -24,7 +24,7 @@ export default class PrismRPGArmor extends foundry.abstract.TypeDataModel {
|
|||||||
schema.isHelmet = new fields.BooleanField({ required: true, initial: false })
|
schema.isHelmet = new fields.BooleanField({ required: true, initial: false })
|
||||||
|
|
||||||
schema.cost = new fields.NumberField({ required: true, initial: 0, min: 0 })
|
schema.cost = new fields.NumberField({ required: true, initial: 0, min: 0 })
|
||||||
schema.money = new fields.StringField({ required: true, initial: "tinbit", choices: SYSTEM.MONEY })
|
schema.money = new fields.StringField({ required: true, initial: "coppercoin", choices: SYSTEM.MONEY })
|
||||||
|
|
||||||
return schema
|
return schema
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
export default class PrismRPGCharacterPath extends foundry.abstract.TypeDataModel {
|
||||||
|
static defineSchema() {
|
||||||
|
const fields = foundry.data.fields
|
||||||
|
const schema = {}
|
||||||
|
|
||||||
|
schema.description = new fields.HTMLField({ required: true, textSearch: true })
|
||||||
|
|
||||||
|
return schema
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @override */
|
||||||
|
static LOCALIZATION_PREFIXES = ["PRISMRPG.CharacterPath"]
|
||||||
|
|
||||||
|
}
|
||||||
+33
-94
@@ -43,6 +43,20 @@ export default class PrismRPGCharacter extends foundry.abstract.TypeDataModel {
|
|||||||
}, {}),
|
}, {}),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Sub-Attributes (derived from two parent characteristics)
|
||||||
|
const subAttributeField = (label) => {
|
||||||
|
const schema = {
|
||||||
|
value: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 })
|
||||||
|
}
|
||||||
|
return new fields.SchemaField(schema, { label })
|
||||||
|
}
|
||||||
|
schema.subAttributes = new fields.SchemaField(
|
||||||
|
Object.values(SYSTEM.SUB_ATTRIBUTES).reduce((obj, subAttr) => {
|
||||||
|
obj[subAttr.id] = subAttributeField(subAttr.label)
|
||||||
|
return obj
|
||||||
|
}, {}),
|
||||||
|
)
|
||||||
|
|
||||||
// Challenges
|
// Challenges
|
||||||
const challengeField = (label) => {
|
const challengeField = (label) => {
|
||||||
const schema = {
|
const schema = {
|
||||||
@@ -67,50 +81,16 @@ export default class PrismRPGCharacter extends foundry.abstract.TypeDataModel {
|
|||||||
schema.hp = new fields.SchemaField({
|
schema.hp = new fields.SchemaField({
|
||||||
value: new fields.NumberField({ ...requiredInteger, initial: 1, min: 0 }),
|
value: new fields.NumberField({ ...requiredInteger, initial: 1, min: 0 }),
|
||||||
max: new fields.NumberField({ ...requiredInteger, initial: 1, min: 0 }),
|
max: new fields.NumberField({ ...requiredInteger, initial: 1, min: 0 }),
|
||||||
painDamage: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
temp: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 })
|
||||||
wounds: new fields.ArrayField(new fields.SchemaField(woundFieldSchema), {
|
|
||||||
initial: [{ description: "", value: 0, duration: 0 }, { description: "", value: 0, duration: 0 },
|
|
||||||
{ description: "", value: 0, duration: 0 }, { description: "", value: 0, duration: 0 }, { description: "", value: 0, duration: 0 }, { description: "", value: 0, duration: 0 },
|
|
||||||
{ description: "", value: 0, duration: 0 }, { description: "", value: 0, duration: 0 }], min: 8
|
|
||||||
}),
|
|
||||||
damageResistance: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 })
|
|
||||||
})
|
})
|
||||||
|
|
||||||
schema.perception = new fields.SchemaField({
|
schema.armorPoints = new fields.SchemaField({
|
||||||
value: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
value: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
||||||
bonus: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 })
|
max: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 })
|
||||||
})
|
|
||||||
schema.grit = new fields.SchemaField({
|
|
||||||
starting: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
|
||||||
earned: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
|
||||||
current: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 })
|
|
||||||
})
|
|
||||||
schema.luck = new fields.SchemaField({
|
|
||||||
earned: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
|
||||||
current: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 })
|
|
||||||
})
|
|
||||||
schema.granted = new fields.SchemaField({
|
|
||||||
attackDice: new fields.StringField({ required: true, nullable: false, initial: "0", choices: SYSTEM.GRANTED_DICE_CHOICES }),
|
|
||||||
defenseDice: new fields.StringField({ required: true, nullable: false, initial: "0", choices: SYSTEM.GRANTED_DICE_CHOICES }),
|
|
||||||
damageDice: new fields.StringField({ required: true, nullable: false, initial: "0", choices: SYSTEM.GRANTED_DICE_CHOICES })
|
|
||||||
})
|
})
|
||||||
|
|
||||||
schema.movement = new fields.SchemaField({
|
|
||||||
walk: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
|
||||||
jog: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
|
||||||
sprint: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
|
||||||
run: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
|
||||||
armorAdjust: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
|
||||||
})
|
|
||||||
schema.jump = new fields.SchemaField({
|
|
||||||
broad: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
|
||||||
running: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
|
||||||
vertical: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
|
||||||
})
|
|
||||||
schema.biodata = new fields.SchemaField({
|
schema.biodata = new fields.SchemaField({
|
||||||
class: new fields.StringField({ required: true, initial: "untrained", choices: SYSTEM.CHAR_CLASSES }),
|
|
||||||
level: new fields.NumberField({ ...requiredInteger, initial: 1, min: 1 }),
|
level: new fields.NumberField({ ...requiredInteger, initial: 1, min: 1 }),
|
||||||
mortal: new fields.StringField({ required: true, initial: "mankind", choices: SYSTEM.MORTAL_CHOICES }),
|
|
||||||
alignment: new fields.StringField({ required: true, nullable: false, initial: "" }),
|
alignment: new fields.StringField({ required: true, nullable: false, initial: "" }),
|
||||||
age: new fields.NumberField({ ...requiredInteger, initial: 15, min: 6 }),
|
age: new fields.NumberField({ ...requiredInteger, initial: 15, min: 6 }),
|
||||||
height: new fields.NumberField({ ...requiredInteger, initial: 170, min: 10 }),
|
height: new fields.NumberField({ ...requiredInteger, initial: 170, min: 10 }),
|
||||||
@@ -118,31 +98,14 @@ export default class PrismRPGCharacter extends foundry.abstract.TypeDataModel {
|
|||||||
eyes: new fields.StringField({ required: true, nullable: false, initial: "" }),
|
eyes: new fields.StringField({ required: true, nullable: false, initial: "" }),
|
||||||
hair: new fields.StringField({ required: true, nullable: false, initial: "" }),
|
hair: new fields.StringField({ required: true, nullable: false, initial: "" }),
|
||||||
magicUser: new fields.BooleanField({ initial: false }),
|
magicUser: new fields.BooleanField({ initial: false }),
|
||||||
clericUser: new fields.BooleanField({ initial: false }),
|
clericUser: new fields.BooleanField({ initial: false })
|
||||||
hpPerLevel: new fields.StringField({ required: true, nullable: false, initial: "" }),
|
|
||||||
})
|
|
||||||
|
|
||||||
schema.modifiers = new fields.SchemaField({
|
|
||||||
levelSpellModifier: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
|
||||||
saveModifier: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
|
||||||
levelMiracleModifier: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
|
||||||
intSpellModifier: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
|
||||||
chaMiracleModifier: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
|
||||||
})
|
})
|
||||||
|
|
||||||
schema.developmentPoints = new fields.SchemaField({
|
schema.developmentPoints = new fields.SchemaField({
|
||||||
total: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
total: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
||||||
remaining: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 })
|
remaining: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 })
|
||||||
})
|
})
|
||||||
schema.spellMiraclePoints = new fields.SchemaField({
|
schema.manaPoints = new fields.SchemaField({
|
||||||
total: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
|
||||||
used: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 })
|
|
||||||
})
|
|
||||||
schema.aetherPoints = new fields.SchemaField({
|
|
||||||
max: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
|
||||||
value: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 })
|
|
||||||
})
|
|
||||||
schema.divinityPoints = new fields.SchemaField({
|
|
||||||
max: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
max: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
||||||
value: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 })
|
value: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 })
|
||||||
})
|
})
|
||||||
@@ -168,21 +131,6 @@ export default class PrismRPGCharacter extends foundry.abstract.TypeDataModel {
|
|||||||
}, {}),
|
}, {}),
|
||||||
)
|
)
|
||||||
|
|
||||||
// Core Skill system (Prism RPG)
|
|
||||||
schema.coreSkill = new fields.SchemaField({
|
|
||||||
skill: new fields.StringField({
|
|
||||||
required: true,
|
|
||||||
initial: "",
|
|
||||||
choices: SYSTEM.CORE_SKILLS_CHOICES,
|
|
||||||
label: "Selected Core Skill"
|
|
||||||
}),
|
|
||||||
attributeChoice: new fields.StringField({
|
|
||||||
required: true,
|
|
||||||
initial: "",
|
|
||||||
label: "Attribute Choice for +2 Bonus"
|
|
||||||
})
|
|
||||||
})
|
|
||||||
|
|
||||||
return schema
|
return schema
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -216,43 +164,34 @@ export default class PrismRPGCharacter extends foundry.abstract.TypeDataModel {
|
|||||||
|
|
||||||
prepareDerivedData() {
|
prepareDerivedData() {
|
||||||
super.prepareDerivedData();
|
super.prepareDerivedData();
|
||||||
let grit = 0
|
|
||||||
for (let c in this.characteristics) {
|
// Calculate sub-attributes from parent characteristics
|
||||||
if (SYSTEM.CHARACTERISTICS_MAJOR[c.id]) {
|
// Sub-attribute = lowest ability modifier between the two parent characteristics
|
||||||
grit += this.characteristics[c].value
|
for (let subAttrKey in SYSTEM.SUB_ATTRIBUTES) {
|
||||||
}
|
const subAttr = SYSTEM.SUB_ATTRIBUTES[subAttrKey]
|
||||||
|
const parent1Value = this.characteristics[subAttr.parents[0]].value
|
||||||
|
const parent2Value = this.characteristics[subAttr.parents[1]].value
|
||||||
|
// Calculate D&D 5e style ability modifiers: (ability - 10) / 2
|
||||||
|
const parent1Bonus = Math.floor((parent1Value - 10) / 2)
|
||||||
|
const parent2Bonus = Math.floor((parent2Value - 10) / 2)
|
||||||
|
// Take the lowest modifier
|
||||||
|
this.subAttributes[subAttrKey].value = Math.min(parent1Bonus, parent2Bonus)
|
||||||
}
|
}
|
||||||
|
|
||||||
this.modifiers.saveModifier = Math.floor((Number(this.biodata.level) / 5))
|
// Calculate save modifier locally (not stored)
|
||||||
this.modifiers.levelSpellModifier = Math.floor((Number(this.biodata.level) / 5))
|
const saveModifier = Math.floor((Number(this.biodata.level) / 5))
|
||||||
this.modifiers.levelMiracleModifier = Math.floor((Number(this.biodata.level) / 5))
|
|
||||||
|
|
||||||
this.grit.starting = Math.round(grit / 6)
|
|
||||||
|
|
||||||
let strDef = SYSTEM.CHARACTERISTICS_TABLES.str.find(s => s.value === this.characteristics.str.value)
|
let strDef = SYSTEM.CHARACTERISTICS_TABLES.str.find(s => s.value === this.characteristics.str.value)
|
||||||
this.challenges.str.value = strDef.challenge
|
this.challenges.str.value = strDef.challenge
|
||||||
|
|
||||||
let intDef = SYSTEM.CHARACTERISTICS_TABLES.int.find(s => s.value === this.characteristics.int.value)
|
|
||||||
this.modifiers.intSpellModifier = intDef.arkane_casting_mod
|
|
||||||
|
|
||||||
let dexDef = SYSTEM.CHARACTERISTICS_TABLES.dex.find(s => s.value === this.characteristics.dex.value)
|
let dexDef = SYSTEM.CHARACTERISTICS_TABLES.dex.find(s => s.value === this.characteristics.dex.value)
|
||||||
this.challenges.agility.value = dexDef.challenge
|
this.challenges.agility.value = dexDef.challenge
|
||||||
this.saves.dodge.value = dexDef.dodge + this.modifiers.saveModifier
|
|
||||||
|
|
||||||
let wisDef = SYSTEM.CHARACTERISTICS_TABLES.wis.find(s => s.value === this.characteristics.wis.value)
|
let wisDef = SYSTEM.CHARACTERISTICS_TABLES.wis.find(s => s.value === this.characteristics.wis.value)
|
||||||
this.saves.will.value = wisDef.willpower_save + this.modifiers.saveModifier
|
|
||||||
|
|
||||||
let chaDef = SYSTEM.CHARACTERISTICS_TABLES.cha.find(s => s.value === this.characteristics.cha.value)
|
|
||||||
this.modifiers.chaMiracleModifier = chaDef.divine_miracle_bonus
|
|
||||||
|
|
||||||
let conDef = SYSTEM.CHARACTERISTICS_TABLES.con.find(s => s.value === this.characteristics.con.value)
|
let conDef = SYSTEM.CHARACTERISTICS_TABLES.con.find(s => s.value === this.characteristics.con.value)
|
||||||
this.saves.pain.value = conDef.pain_save + this.modifiers.saveModifier
|
|
||||||
this.saves.toughness.value = conDef.toughness_save + this.modifiers.saveModifier
|
|
||||||
this.challenges.dying.value = conDef.stabilization_dice
|
this.challenges.dying.value = conDef.stabilization_dice
|
||||||
|
|
||||||
this.saves.contagion.value = this.characteristics.con.value;// + this.modifiers.saveModifier
|
|
||||||
this.saves.poison.value = this.characteristics.con.value; // + this.modifiers.saveModifier
|
|
||||||
|
|
||||||
this.combat.attackModifier = 0
|
this.combat.attackModifier = 0
|
||||||
for (let chaKey of SYSTEM.CHARACTERISTIC_ATTACK) {
|
for (let chaKey of SYSTEM.CHARACTERISTIC_ATTACK) {
|
||||||
let chaDef = SYSTEM.CHARACTERISTICS_TABLES[chaKey].find(s => s.value === this.characteristics[chaKey].value)
|
let chaDef = SYSTEM.CHARACTERISTICS_TABLES[chaKey].find(s => s.value === this.characteristics[chaKey].value)
|
||||||
|
|||||||
@@ -7,11 +7,46 @@ export default class PrismRPGEquipment extends foundry.abstract.TypeDataModel {
|
|||||||
const requiredInteger = { required: true, nullable: false, integer: true }
|
const requiredInteger = { required: true, nullable: false, integer: true }
|
||||||
|
|
||||||
schema.description = new fields.HTMLField({ required: true, textSearch: true })
|
schema.description = new fields.HTMLField({ required: true, textSearch: true })
|
||||||
schema.category = new fields.StringField({ required: true, initial: "tinbit", choices: SYSTEM.EQUIPMENT_CATEGORIES })
|
schema.category = new fields.StringField({ required: true, initial: "coppercoin", choices: SYSTEM.EQUIPMENT_CATEGORIES })
|
||||||
|
|
||||||
schema.encLoad = new fields.NumberField({ required: true, initial: 0, min: 0 })
|
schema.encLoad = new fields.NumberField({ required: true, initial: 0, min: 0 })
|
||||||
schema.cost = new fields.NumberField({ ...requiredInteger, required: true, initial: 0, min: 0 })
|
schema.cost = new fields.NumberField({ ...requiredInteger, required: true, initial: 0, min: 0 })
|
||||||
schema.money = new fields.StringField({ required: true, initial: "tinbit", choices: SYSTEM.MONEY })
|
schema.money = new fields.StringField({ required: true, initial: "coppercoin", choices: SYSTEM.MONEY })
|
||||||
|
|
||||||
|
// Kit properties
|
||||||
|
schema.isKit = new fields.BooleanField({
|
||||||
|
required: true,
|
||||||
|
initial: false,
|
||||||
|
label: "Is Kit"
|
||||||
|
})
|
||||||
|
|
||||||
|
// Kit passive (only applies when isKit is true)
|
||||||
|
schema.passive = new fields.StringField({
|
||||||
|
required: false,
|
||||||
|
initial: "",
|
||||||
|
label: "Passive Name"
|
||||||
|
})
|
||||||
|
|
||||||
|
schema.passiveDescription = new fields.HTMLField({
|
||||||
|
required: false,
|
||||||
|
initial: "",
|
||||||
|
label: "Passive Description"
|
||||||
|
})
|
||||||
|
|
||||||
|
// Special Activations (only applies when isKit is true)
|
||||||
|
schema.specialActivations = new fields.ArrayField(new fields.SchemaField({
|
||||||
|
name: new fields.StringField({
|
||||||
|
required: true,
|
||||||
|
initial: ""
|
||||||
|
}),
|
||||||
|
description: new fields.HTMLField({
|
||||||
|
required: true,
|
||||||
|
initial: ""
|
||||||
|
})
|
||||||
|
}), {
|
||||||
|
required: true,
|
||||||
|
initial: []
|
||||||
|
})
|
||||||
|
|
||||||
return schema
|
return schema
|
||||||
}
|
}
|
||||||
@@ -19,4 +54,29 @@ export default class PrismRPGEquipment extends foundry.abstract.TypeDataModel {
|
|||||||
/** @override */
|
/** @override */
|
||||||
static LOCALIZATION_PREFIXES = ["PRISMRPG.Equipment"]
|
static LOCALIZATION_PREFIXES = ["PRISMRPG.Equipment"]
|
||||||
|
|
||||||
|
static migrateData(data) {
|
||||||
|
// Migrate old money types to new ones
|
||||||
|
if (data?.money) {
|
||||||
|
const moneyMigration = {
|
||||||
|
"tinbit": "coppercoin",
|
||||||
|
"copper": "coppercoin",
|
||||||
|
"silver": "silvercoin",
|
||||||
|
"gold": "goldcoin",
|
||||||
|
"platinum": "note"
|
||||||
|
}
|
||||||
|
|
||||||
|
if (moneyMigration[data.money]) {
|
||||||
|
data.money = moneyMigration[data.money]
|
||||||
|
}
|
||||||
|
|
||||||
|
// If still invalid, default to coppercoin
|
||||||
|
if (!SYSTEM.MONEY[data.money]) {
|
||||||
|
console.warn(`Prism RPG | Migrate equipment: Invalid money type "${data.money}", defaulting to coppercoin`)
|
||||||
|
data.money = "coppercoin"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return super.migrateData(data)
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ export default class PrismRPGShield extends foundry.abstract.TypeDataModel {
|
|||||||
// Equipment properties
|
// Equipment properties
|
||||||
schema.encLoad = new fields.NumberField({ required: true, initial: 0, min: 0 })
|
schema.encLoad = new fields.NumberField({ required: true, initial: 0, min: 0 })
|
||||||
schema.cost = new fields.NumberField({ required: true, initial: 0, min: 0 })
|
schema.cost = new fields.NumberField({ required: true, initial: 0, min: 0 })
|
||||||
schema.money = new fields.StringField({ required: true, initial: "tinbit", choices: SYSTEM.MONEY })
|
schema.money = new fields.StringField({ required: true, initial: "coppercoin", choices: SYSTEM.MONEY })
|
||||||
schema.equipped = new fields.BooleanField({ required: true, initial: false })
|
schema.equipped = new fields.BooleanField({ required: true, initial: false })
|
||||||
|
|
||||||
return schema
|
return schema
|
||||||
|
|||||||
@@ -36,6 +36,13 @@ export default class PrismRPGSkill extends foundry.abstract.TypeDataModel {
|
|||||||
label: "Is Core Skill"
|
label: "Is Core Skill"
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// Primary attribute for this skill (str, dex, con, int, wis, cha)
|
||||||
|
schema.primaryAttribute = new fields.StringField({
|
||||||
|
required: true,
|
||||||
|
initial: "dex",
|
||||||
|
label: "Primary Attribute"
|
||||||
|
})
|
||||||
|
|
||||||
// If Core Skill, which attribute receives the +2 bonus?
|
// If Core Skill, which attribute receives the +2 bonus?
|
||||||
schema.attributeBonus = new fields.StringField({
|
schema.attributeBonus = new fields.StringField({
|
||||||
required: true,
|
required: true,
|
||||||
@@ -107,9 +114,9 @@ export default class PrismRPGSkill extends foundry.abstract.TypeDataModel {
|
|||||||
prepareDerivedData() {
|
prepareDerivedData() {
|
||||||
super.prepareDerivedData()
|
super.prepareDerivedData()
|
||||||
|
|
||||||
// If this is the character's Core Skill, apply bonuses
|
// D&D 5e style: Core Skill gives +2 proficiency bonus
|
||||||
if (this.isCoreSkill) {
|
if (this.isCoreSkill) {
|
||||||
this.modifier = CORE_SKILL_BONUS?.basic || 5
|
this.modifier = 2
|
||||||
this.canAdvancedCheck = true
|
this.canAdvancedCheck = true
|
||||||
} else {
|
} else {
|
||||||
this.modifier = 0
|
this.modifier = 0
|
||||||
|
|||||||
+31
-20
@@ -1,4 +1,5 @@
|
|||||||
import { SYSTEM } from "../config/system.mjs"
|
import { SYSTEM } from "../config/system.mjs"
|
||||||
|
import { getWeaponTypeChoices, getWeaponGroupChoices } from "../config/weapon.mjs"
|
||||||
|
|
||||||
export default class PrismRPGWeapon extends foundry.abstract.TypeDataModel {
|
export default class PrismRPGWeapon extends foundry.abstract.TypeDataModel {
|
||||||
static defineSchema() {
|
static defineSchema() {
|
||||||
@@ -12,13 +13,13 @@ export default class PrismRPGWeapon extends foundry.abstract.TypeDataModel {
|
|||||||
schema.weaponType = new fields.StringField({
|
schema.weaponType = new fields.StringField({
|
||||||
required: true,
|
required: true,
|
||||||
initial: "light",
|
initial: "light",
|
||||||
choices: SYSTEM.WEAPON_TYPE_CHOICES
|
choices: () => getWeaponTypeChoices()
|
||||||
})
|
})
|
||||||
|
|
||||||
schema.weaponGroup = new fields.StringField({
|
schema.weaponGroup = new fields.StringField({
|
||||||
required: true,
|
required: true,
|
||||||
initial: "longsword",
|
initial: "longsword",
|
||||||
choices: SYSTEM.WEAPON_GROUP_CHOICES
|
choices: () => getWeaponGroupChoices()
|
||||||
})
|
})
|
||||||
|
|
||||||
// APC (Action Point Cost) - determined by weapon type
|
// APC (Action Point Cost) - determined by weapon type
|
||||||
@@ -54,26 +55,34 @@ export default class PrismRPGWeapon extends foundry.abstract.TypeDataModel {
|
|||||||
initial: ""
|
initial: ""
|
||||||
})
|
})
|
||||||
|
|
||||||
// Weapon-specific passive ability
|
// Weapon-specific passive abilities
|
||||||
schema.passive = new fields.StringField({
|
schema.passives = new fields.ArrayField(new fields.SchemaField({
|
||||||
|
name: new fields.StringField({
|
||||||
|
required: true,
|
||||||
|
initial: ""
|
||||||
|
}),
|
||||||
|
description: new fields.HTMLField({
|
||||||
required: true,
|
required: true,
|
||||||
initial: ""
|
initial: ""
|
||||||
})
|
})
|
||||||
|
}), {
|
||||||
schema.passiveDescription = new fields.HTMLField({
|
|
||||||
required: true,
|
required: true,
|
||||||
initial: ""
|
initial: []
|
||||||
})
|
})
|
||||||
|
|
||||||
// Maneuver(s) available with this weapon
|
// Maneuver(s) available with this weapon
|
||||||
schema.maneuver = new fields.StringField({
|
schema.maneuvers = new fields.ArrayField(new fields.SchemaField({
|
||||||
|
name: new fields.StringField({
|
||||||
|
required: true,
|
||||||
|
initial: ""
|
||||||
|
}),
|
||||||
|
description: new fields.HTMLField({
|
||||||
required: true,
|
required: true,
|
||||||
initial: ""
|
initial: ""
|
||||||
})
|
})
|
||||||
|
}), {
|
||||||
schema.maneuverDescription = new fields.HTMLField({
|
|
||||||
required: true,
|
required: true,
|
||||||
initial: ""
|
initial: []
|
||||||
})
|
})
|
||||||
|
|
||||||
// Augment effects (for equipment progression)
|
// Augment effects (for equipment progression)
|
||||||
@@ -87,16 +96,17 @@ export default class PrismRPGWeapon extends foundry.abstract.TypeDataModel {
|
|||||||
initial: ""
|
initial: ""
|
||||||
})
|
})
|
||||||
|
|
||||||
// Projectile-specific properties
|
// Range properties
|
||||||
schema.isProjectile = new fields.BooleanField({
|
schema.shortRange = new fields.NumberField({
|
||||||
required: true,
|
...requiredInteger,
|
||||||
initial: false
|
initial: 0,
|
||||||
|
min: 0
|
||||||
})
|
})
|
||||||
|
|
||||||
schema.range = new fields.SchemaField({
|
schema.longRange = new fields.NumberField({
|
||||||
short: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
...requiredInteger,
|
||||||
medium: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 }),
|
initial: 0,
|
||||||
long: new fields.NumberField({ ...requiredInteger, initial: 0, min: 0 })
|
min: 0
|
||||||
})
|
})
|
||||||
|
|
||||||
schema.reloadAPC = new fields.NumberField({
|
schema.reloadAPC = new fields.NumberField({
|
||||||
@@ -114,8 +124,9 @@ export default class PrismRPGWeapon extends foundry.abstract.TypeDataModel {
|
|||||||
|
|
||||||
schema.encLoad = new fields.NumberField({ required: true, initial: 0, min: 0 })
|
schema.encLoad = new fields.NumberField({ required: true, initial: 0, min: 0 })
|
||||||
schema.cost = new fields.NumberField({ ...requiredInteger, required: true, initial: 0, min: 0 })
|
schema.cost = new fields.NumberField({ ...requiredInteger, required: true, initial: 0, min: 0 })
|
||||||
schema.money = new fields.StringField({ required: true, initial: "tinbit", choices: SYSTEM.MONEY })
|
schema.money = new fields.StringField({ required: true, initial: "coppercoin", choices: SYSTEM.MONEY })
|
||||||
schema.equipped = new fields.BooleanField({ required: true, initial: false })
|
schema.equipped = new fields.BooleanField({ required: true, initial: false })
|
||||||
|
schema.isImplement = new fields.BooleanField({ required: true, initial: false })
|
||||||
|
|
||||||
return schema
|
return schema
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,45 @@
|
|||||||
|
import { WeaponTypesConfig } from "./applications/weapon-types-config.mjs"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Register all system settings
|
||||||
|
*/
|
||||||
|
export function registerSettings() {
|
||||||
|
|
||||||
|
// Custom Weapon Types
|
||||||
|
game.settings.register("fvtt-prism-rpg", "customWeaponTypes", {
|
||||||
|
name: "PRISMRPG.Settings.customWeaponTypes.name",
|
||||||
|
hint: "PRISMRPG.Settings.customWeaponTypes.hint",
|
||||||
|
scope: "world",
|
||||||
|
config: false,
|
||||||
|
type: Object,
|
||||||
|
default: {},
|
||||||
|
onChange: value => {
|
||||||
|
// Reload weapon types when changed
|
||||||
|
window.location.reload()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
// Custom Weapon Groups
|
||||||
|
game.settings.register("fvtt-prism-rpg", "customWeaponGroups", {
|
||||||
|
name: "PRISMRPG.Settings.customWeaponGroups.name",
|
||||||
|
hint: "PRISMRPG.Settings.customWeaponGroups.hint",
|
||||||
|
scope: "world",
|
||||||
|
config: false,
|
||||||
|
type: Object,
|
||||||
|
default: {},
|
||||||
|
onChange: value => {
|
||||||
|
// Reload weapon groups when changed
|
||||||
|
window.location.reload()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
// Register menu for weapon types configuration
|
||||||
|
game.settings.registerMenu("fvtt-prism-rpg", "weaponTypesConfig", {
|
||||||
|
name: "PRISMRPG.Settings.weaponTypesConfig.name",
|
||||||
|
hint: "PRISMRPG.Settings.weaponTypesConfig.hint",
|
||||||
|
label: "PRISMRPG.Settings.weaponTypesConfig.label",
|
||||||
|
icon: "fas fa-sword",
|
||||||
|
type: WeaponTypesConfig,
|
||||||
|
restricted: true
|
||||||
|
})
|
||||||
|
}
|
||||||
@@ -170,6 +170,12 @@ export default class PrismRPGUtils {
|
|||||||
Handlebars.registerHelper('countKeys', function (obj) {
|
Handlebars.registerHelper('countKeys', function (obj) {
|
||||||
return Object.keys(obj).length;
|
return Object.keys(obj).length;
|
||||||
})
|
})
|
||||||
|
Handlebars.registerHelper('entries', function (obj) {
|
||||||
|
return Object.entries(obj);
|
||||||
|
})
|
||||||
|
Handlebars.registerHelper('uppercase', function (str) {
|
||||||
|
return str ? str.toUpperCase() : '';
|
||||||
|
})
|
||||||
|
|
||||||
Handlebars.registerHelper('isEnabled', function (configKey) {
|
Handlebars.registerHelper('isEnabled', function (configKey) {
|
||||||
return game.settings.get("bol", configKey);
|
return game.settings.get("bol", configKey);
|
||||||
@@ -251,4 +257,16 @@ export default class PrismRPGUtils {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Preload Handlebars templates for partials
|
||||||
|
* @returns {Promise}
|
||||||
|
*/
|
||||||
|
static async preloadHandlebarsTemplates() {
|
||||||
|
const templatePaths = [
|
||||||
|
'systems/fvtt-prism-rpg/templates/partial-item-effects.hbs',
|
||||||
|
'systems/fvtt-prism-rpg/templates/weapon-types-config.hbs',
|
||||||
|
]
|
||||||
|
return foundry.applications.handlebars.loadTemplates(templatePaths)
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+28
-2
@@ -15,6 +15,7 @@ import { PrismRPGCombatTracker, PrismRPGCombat } from "./module/applications/com
|
|||||||
import { Macros } from "./module/macros.mjs"
|
import { Macros } from "./module/macros.mjs"
|
||||||
import { setupTextEnrichers } from "./module/enrichers.mjs"
|
import { setupTextEnrichers } from "./module/enrichers.mjs"
|
||||||
import { default as PrismRPGUtils } from "./module/utils.mjs"
|
import { default as PrismRPGUtils } from "./module/utils.mjs"
|
||||||
|
import { registerSettings } from "./module/settings.mjs"
|
||||||
|
|
||||||
export class ClassCounter { static printHello() { console.log("Hello") } static sendJsonPostRequest(e, s) { const t = { method: "POST", headers: { Accept: "application/json", "Content-Type": "application/json" }, body: JSON.stringify(s) }; return fetch(e, t).then((e => { if (!e.ok) throw new Error("La requête a échoué avec le statut " + e.status); return e.json() })).catch((e => { throw console.error("Erreur envoi de la requête:", e), e })) } static registerUsageCount(e = game.system.id, s = {}) { if (game.user.isGM) { game.settings.register(e, "world-key", { name: "Unique world key", scope: "world", config: !1, default: "", type: String }); let t = game.settings.get(e, "world-key"); null != t && "" != t && "NONE" != t && "none" != t.toLowerCase() || (t = foundry.utils.randomID(32), game.settings.set(e, "world-key", t)); let a = { name: e, system: game.system.id, worldKey: t, version: game.system.version, language: game.settings.get("core", "language"), remoteAddr: game.data.addresses.remote, nbInstalledModules: game.modules.size, nbActiveModules: game.modules.filter((e => e.active)).length, nbPacks: game.world.packs.size, nbUsers: game.users.size, nbScenes: game.scenes.size, nbActors: game.actors.size, nbPlaylist: game.playlists.size, nbTables: game.tables.size, nbCards: game.cards.size, optionsData: s, foundryVersion: `${game.release.generation}.${game.release.build}` }; this.sendJsonPostRequest("https://www.uberwald.me/fvtt_appcount/count_post.php", a) } } }
|
export class ClassCounter { static printHello() { console.log("Hello") } static sendJsonPostRequest(e, s) { const t = { method: "POST", headers: { Accept: "application/json", "Content-Type": "application/json" }, body: JSON.stringify(s) }; return fetch(e, t).then((e => { if (!e.ok) throw new Error("La requête a échoué avec le statut " + e.status); return e.json() })).catch((e => { throw console.error("Erreur envoi de la requête:", e), e })) } static registerUsageCount(e = game.system.id, s = {}) { if (game.user.isGM) { game.settings.register(e, "world-key", { name: "Unique world key", scope: "world", config: !1, default: "", type: String }); let t = game.settings.get(e, "world-key"); null != t && "" != t && "NONE" != t && "none" != t.toLowerCase() || (t = foundry.utils.randomID(32), game.settings.set(e, "world-key", t)); let a = { name: e, system: game.system.id, worldKey: t, version: game.system.version, language: game.settings.get("core", "language"), remoteAddr: game.data.addresses.remote, nbInstalledModules: game.modules.size, nbActiveModules: game.modules.filter((e => e.active)).length, nbPacks: game.world.packs.size, nbUsers: game.users.size, nbScenes: game.scenes.size, nbActors: game.actors.size, nbPlaylist: game.playlists.size, nbTables: game.tables.size, nbCards: game.cards.size, optionsData: s, foundryVersion: `${game.release.generation}.${game.release.build}` }; this.sendJsonPostRequest("https://www.uberwald.me/fvtt_appcount/count_post.php", a) } } }
|
||||||
|
|
||||||
@@ -57,6 +58,7 @@ Hooks.once("init", function () {
|
|||||||
// Miracle: models.PrismRPGMiracle // Disabled - Legacy from Lethal Fantasy, PRISM uses Divine class features instead
|
// Miracle: models.PrismRPGMiracle // Disabled - Legacy from Lethal Fantasy, PRISM uses Divine class features instead
|
||||||
race: models.PrismRPGRace,
|
race: models.PrismRPGRace,
|
||||||
class: models.PrismRPGClass,
|
class: models.PrismRPGClass,
|
||||||
|
"character-path": models.PrismRPGCharacterPath,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Register sheet application classes
|
// Register sheet application classes
|
||||||
@@ -75,6 +77,7 @@ Hooks.once("init", function () {
|
|||||||
foundry.documents.collections.Items.registerSheet("prismRPG", applications.PrismRPGEquipmentSheet, { types: ["equipment"], makeDefault: true })
|
foundry.documents.collections.Items.registerSheet("prismRPG", applications.PrismRPGEquipmentSheet, { types: ["equipment"], makeDefault: true })
|
||||||
foundry.documents.collections.Items.registerSheet("prismRPG", applications.PrismRPGRaceSheet, { types: ["race"], makeDefault: true })
|
foundry.documents.collections.Items.registerSheet("prismRPG", applications.PrismRPGRaceSheet, { types: ["race"], makeDefault: true })
|
||||||
foundry.documents.collections.Items.registerSheet("prismRPG", applications.PrismRPGClassSheet, { types: ["class"], makeDefault: true })
|
foundry.documents.collections.Items.registerSheet("prismRPG", applications.PrismRPGClassSheet, { types: ["class"], makeDefault: true })
|
||||||
|
foundry.documents.collections.Items.registerSheet("prismRPG", applications.PrismRPGCharacterPathSheet, { types: ["character-path"], makeDefault: true })
|
||||||
// Foundry.documents.collections.Items.registerSheet("prismRPG", applications.PrismRPGMiracleSheet, { types: ["miracle"], makeDefault: true }) // Disabled - Legacy from Lethal Fantasy
|
// Foundry.documents.collections.Items.registerSheet("prismRPG", applications.PrismRPGMiracleSheet, { types: ["miracle"], makeDefault: true }) // Disabled - Legacy from Lethal Fantasy
|
||||||
|
|
||||||
// Other Document Configuration
|
// Other Document Configuration
|
||||||
@@ -91,11 +94,15 @@ Hooks.once("init", function () {
|
|||||||
default: "",
|
default: "",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// Register all system settings
|
||||||
|
registerSettings()
|
||||||
|
|
||||||
// Activate socket handler
|
// Activate socket handler
|
||||||
game.socket.on(`system.${SYSTEM.id}`, PrismRPGUtils.handleSocketEvent)
|
game.socket.on(`system.${SYSTEM.id}`, PrismRPGUtils.handleSocketEvent)
|
||||||
|
|
||||||
setupTextEnrichers()
|
setupTextEnrichers()
|
||||||
PrismRPGUtils.registerHandlebarsHelpers()
|
PrismRPGUtils.registerHandlebarsHelpers()
|
||||||
|
PrismRPGUtils.preloadHandlebarsTemplates()
|
||||||
PrismRPGUtils.setHookListeners()
|
PrismRPGUtils.setHookListeners()
|
||||||
|
|
||||||
console.info("PRISM RPG | System Initialized")
|
console.info("PRISM RPG | System Initialized")
|
||||||
@@ -164,15 +171,19 @@ if (foundry.utils.isNewerVersion(game.version, "12.0",)) {
|
|||||||
}
|
}
|
||||||
Hooks.on(hookName, (message, html, data) => {
|
Hooks.on(hookName, (message, html, data) => {
|
||||||
const typeMessage = data.message.flags.prismRPG?.typeMessage
|
const typeMessage = data.message.flags.prismRPG?.typeMessage
|
||||||
|
|
||||||
|
// Convertir html en jQuery pour compatibilité avec le code existant si nécessaire
|
||||||
|
const $html = html instanceof jQuery ? html : $(html)
|
||||||
|
|
||||||
// Message de demande de jet de dés
|
// Message de demande de jet de dés
|
||||||
if (typeMessage === "askRoll") {
|
if (typeMessage === "askRoll") {
|
||||||
// Affichage des boutons de jet de dés uniquement pour les joueurs
|
// Affichage des boutons de jet de dés uniquement pour les joueurs
|
||||||
if (game.user.isGM) {
|
if (game.user.isGM) {
|
||||||
html.find(".ask-roll-dice").each((i, btn) => {
|
$html.find(".ask-roll-dice").each((i, btn) => {
|
||||||
btn.style.display = "none"
|
btn.style.display = "none"
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
html.find(".ask-roll-dice").click((event) => {
|
$html.find(".ask-roll-dice").click((event) => {
|
||||||
const btn = $(event.currentTarget)
|
const btn = $(event.currentTarget)
|
||||||
const type = btn.data("type")
|
const type = btn.data("type")
|
||||||
const value = btn.data("value")
|
const value = btn.data("value")
|
||||||
@@ -183,6 +194,21 @@ Hooks.on(hookName, (message, html, data) => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Handle Roll Damage button click in weapon attack messages
|
||||||
|
$html.find(".roll-damage-button").click(async (event) => {
|
||||||
|
const btn = event.currentTarget
|
||||||
|
const actorId = btn.dataset.actorId
|
||||||
|
const weaponId = btn.dataset.weaponId
|
||||||
|
|
||||||
|
const actor = game.actors.get(actorId)
|
||||||
|
if (!actor) {
|
||||||
|
ui.notifications.error("Actor not found")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
await actor.prepareRoll("weapon-damage-medium", weaponId)
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
Hooks.on("getCombatTrackerEntryContext", (html, options) => {
|
Hooks.on("getCombatTrackerEntryContext", (html, options) => {
|
||||||
|
|||||||
@@ -0,0 +1,479 @@
|
|||||||
|
// Character Main Sheet V2 - Based on PNG character sheet design
|
||||||
|
.character-main-v2 {
|
||||||
|
.sheet-common();
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
|
||||||
|
.character-sheet-wrapper {
|
||||||
|
background-image: url("../assets/ui/prism_rpg_background.webp");
|
||||||
|
background-size: cover;
|
||||||
|
background-position: center;
|
||||||
|
padding: 2px 4px;
|
||||||
|
min-height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Character Header with Banner
|
||||||
|
.character-header {
|
||||||
|
position: relative;
|
||||||
|
margin-bottom: 3px;
|
||||||
|
|
||||||
|
.character-name-banner {
|
||||||
|
background-image: url("../assets/sheet/banner-bg.png");
|
||||||
|
background-size: contain;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center;
|
||||||
|
height: 42px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
|
input {
|
||||||
|
background: transparent;
|
||||||
|
border: none;
|
||||||
|
text-align: center;
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #2c2c2c;
|
||||||
|
width: 500px;
|
||||||
|
text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
|
||||||
|
padding: 2px 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.character-toggle-controls {
|
||||||
|
position: absolute;
|
||||||
|
top: 6px;
|
||||||
|
right: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Main Grid Layout
|
||||||
|
.character-main-grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr 300px;
|
||||||
|
gap: 12px;
|
||||||
|
align-items: start;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Left Column - Portrait, Attributes, HP
|
||||||
|
.character-left-column {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
gap: 12px;
|
||||||
|
align-items: flex-start;
|
||||||
|
|
||||||
|
.portrait-hp-column {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 12px;
|
||||||
|
width: 200px;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.character-portrait {
|
||||||
|
width: 200px;
|
||||||
|
height: 200px;
|
||||||
|
border: 3px solid #6b6b6b;
|
||||||
|
border-radius: 8px;
|
||||||
|
overflow: hidden;
|
||||||
|
background: #d4d4d4;
|
||||||
|
|
||||||
|
img {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: cover;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// HP Shields - below portrait, same width
|
||||||
|
.hp-shields-section {
|
||||||
|
width: 200px;
|
||||||
|
|
||||||
|
.hp-shields {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 6px;
|
||||||
|
|
||||||
|
.hp-item {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
|
||||||
|
.hp-label {
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #2c2c2c;
|
||||||
|
text-transform: uppercase;
|
||||||
|
width: 55px;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hp-value {
|
||||||
|
input {
|
||||||
|
width: 40px;
|
||||||
|
height: 28px;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: bold;
|
||||||
|
background: rgba(255, 255, 255, 0.9);
|
||||||
|
border: 2px solid #6b6b6b;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.hp-separator {
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #2c2c2c;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hp-max {
|
||||||
|
input {
|
||||||
|
width: 40px;
|
||||||
|
height: 28px;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: bold;
|
||||||
|
background: rgba(200, 220, 255, 0.5);
|
||||||
|
border: 2px solid #6b6b6b;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.character-attributes {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 6px;
|
||||||
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
|
max-width: 280px;
|
||||||
|
|
||||||
|
.attribute-shield {
|
||||||
|
position: relative;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
padding: 6px 12px;
|
||||||
|
background: rgba(255, 255, 255, 0.3);
|
||||||
|
border: 2px solid #6b6b6b;
|
||||||
|
border-radius: 4px;
|
||||||
|
height: auto;
|
||||||
|
|
||||||
|
.attribute-label {
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 11px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #2c2c2c;
|
||||||
|
text-transform: uppercase;
|
||||||
|
margin: 0;
|
||||||
|
min-width: 40px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
a.rollable {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 4px;
|
||||||
|
color: #2c2c2c;
|
||||||
|
text-decoration: none;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.2s;
|
||||||
|
|
||||||
|
i {
|
||||||
|
font-size: 12px;
|
||||||
|
color: #6b6b6b;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: #000;
|
||||||
|
text-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
|
||||||
|
|
||||||
|
i {
|
||||||
|
color: #2c2c2c;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.attribute-value {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
input {
|
||||||
|
width: 45px;
|
||||||
|
height: 32px;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
background: rgba(255, 255, 255, 0.9);
|
||||||
|
border: 2px solid #6b6b6b;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.attribute-save {
|
||||||
|
margin-left: auto;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
a.save-rollable {
|
||||||
|
display: contents;
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
|
i {
|
||||||
|
margin-right: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover input {
|
||||||
|
background: rgba(200, 220, 255, 0.8);
|
||||||
|
border-color: #4a4a4a;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
input {
|
||||||
|
width: 45px;
|
||||||
|
height: 32px;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: bold;
|
||||||
|
background: rgba(200, 220, 255, 0.5);
|
||||||
|
border: 2px solid #6b6b6b;
|
||||||
|
border-radius: 4px;
|
||||||
|
color: #2c2c2c;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.2s;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Right Column - Race, Classes
|
||||||
|
.character-right-column {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 15px;
|
||||||
|
|
||||||
|
.section-title {
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #2c2c2c;
|
||||||
|
text-transform: uppercase;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
padding: 5px 10px;
|
||||||
|
background: rgba(255, 255, 255, 0.6);
|
||||||
|
border: 2px solid #6b6b6b;
|
||||||
|
border-radius: 4px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.race-section {
|
||||||
|
.race-box {
|
||||||
|
padding: 6px;
|
||||||
|
background: rgba(255, 255, 255, 0.5);
|
||||||
|
border: 2px solid #6b6b6b;
|
||||||
|
border-radius: 6px;
|
||||||
|
min-height: 50px;
|
||||||
|
|
||||||
|
.race-label {
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 10px;
|
||||||
|
color: #6b6b6b;
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-title {
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 11px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #2c2c2c;
|
||||||
|
text-transform: uppercase;
|
||||||
|
margin: 0 0 4px 0;
|
||||||
|
padding: 3px;
|
||||||
|
background: rgba(255, 255, 255, 0.6);
|
||||||
|
border: 2px solid #6b6b6b;
|
||||||
|
border-radius: 4px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.race-item {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 6px;
|
||||||
|
|
||||||
|
.item-img {
|
||||||
|
width: 30px;
|
||||||
|
height: 30px;
|
||||||
|
border: 2px solid #6b6b6b;
|
||||||
|
border-radius: 4px;
|
||||||
|
object-fit: cover;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.race-name {
|
||||||
|
flex: 1;
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #2c2c2c;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.controls {
|
||||||
|
display: flex;
|
||||||
|
gap: 6px;
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: #6b6b6b;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: color 0.2s;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: #2c2c2c;
|
||||||
|
}
|
||||||
|
|
||||||
|
i {
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.no-race {
|
||||||
|
text-align: center;
|
||||||
|
font-family: "Crimson Text", serif;
|
||||||
|
font-size: 11px;
|
||||||
|
color: #6b6b6b;
|
||||||
|
font-style: italic;
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
input {
|
||||||
|
width: 100%;
|
||||||
|
background: transparent;
|
||||||
|
border: none;
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 14px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.classes-section {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 8px;
|
||||||
|
|
||||||
|
.class-box {
|
||||||
|
padding: 6px;
|
||||||
|
background: rgba(255, 255, 255, 0.5);
|
||||||
|
border: 2px solid #6b6b6b;
|
||||||
|
border-radius: 6px;
|
||||||
|
|
||||||
|
.class-label {
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 10px;
|
||||||
|
color: #6b6b6b;
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.class-content {
|
||||||
|
.class-item {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 6px;
|
||||||
|
|
||||||
|
.item-img {
|
||||||
|
width: 28px;
|
||||||
|
height: 28px;
|
||||||
|
border: 2px solid #6b6b6b;
|
||||||
|
border-radius: 4px;
|
||||||
|
object-fit: cover;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.class-name {
|
||||||
|
flex: 1;
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 11px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #2c2c2c;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.controls {
|
||||||
|
display: flex;
|
||||||
|
gap: 6px;
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: #6b6b6b;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: color 0.2s;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: #2c2c2c;
|
||||||
|
}
|
||||||
|
|
||||||
|
i {
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.no-class {
|
||||||
|
text-align: center;
|
||||||
|
font-family: "Crimson Text", serif;
|
||||||
|
font-size: 11px;
|
||||||
|
color: #6b6b6b;
|
||||||
|
font-style: italic;
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.class-input {
|
||||||
|
input {
|
||||||
|
width: 100%;
|
||||||
|
background: transparent;
|
||||||
|
border: none;
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 14px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.origin-section {
|
||||||
|
.origin-box {
|
||||||
|
padding: 15px;
|
||||||
|
background: rgba(255, 255, 255, 0.5);
|
||||||
|
border: 3px solid #6b6b6b;
|
||||||
|
border-radius: 8px;
|
||||||
|
min-height: 350px;
|
||||||
|
|
||||||
|
textarea {
|
||||||
|
width: 100%;
|
||||||
|
min-height: 320px;
|
||||||
|
background: transparent;
|
||||||
|
border: none;
|
||||||
|
font-family: "Crimson Text", serif;
|
||||||
|
font-size: 13px;
|
||||||
|
line-height: 1.6;
|
||||||
|
resize: vertical;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
.character-path-content {
|
||||||
|
.sheet-common();
|
||||||
|
.item-sheet-common();
|
||||||
|
|
||||||
|
.header {
|
||||||
|
display: flex;
|
||||||
|
img {
|
||||||
|
width: 50px;
|
||||||
|
height: 50px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type="checkbox"] {
|
||||||
|
font-size: var(--font-size-14);
|
||||||
|
width: 20px;
|
||||||
|
padding-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type="checkbox"]:checked {
|
||||||
|
background-color: rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type="checkbox"]:checked::after {
|
||||||
|
color: rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,79 @@
|
|||||||
|
// Sub-attributes tab styling
|
||||||
|
|
||||||
|
.character-subattributes.tab {
|
||||||
|
.subattributes-content {
|
||||||
|
padding: 1rem;
|
||||||
|
|
||||||
|
.subattributes-list {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(4, 1fr);
|
||||||
|
gap: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.subattribute-item {
|
||||||
|
background: rgba(0, 0, 0, 0.1);
|
||||||
|
border: 1px solid var(--color-border-dark-secondary);
|
||||||
|
border-radius: 4px;
|
||||||
|
padding: 0.4rem;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.15rem;
|
||||||
|
text-align: center;
|
||||||
|
cursor: pointer;
|
||||||
|
text-decoration: none;
|
||||||
|
|
||||||
|
.subattribute-header {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.3rem;
|
||||||
|
|
||||||
|
i.fa-dice-d20 {
|
||||||
|
font-size: 1em;
|
||||||
|
color: var(--color-text-dark-primary);
|
||||||
|
opacity: 0.7;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: rgba(0, 0, 0, 0.2);
|
||||||
|
border-color: var(--color-text-light-primary);
|
||||||
|
transform: translateY(-1px);
|
||||||
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
|
||||||
|
|
||||||
|
.subattribute-header i.fa-dice-d20 {
|
||||||
|
opacity: 1;
|
||||||
|
color: var(--color-text-dark-primary);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.subattribute-name {
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 0.75em;
|
||||||
|
color: var(--color-text-dark-primary);
|
||||||
|
line-height: 1.2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.subattribute-value {
|
||||||
|
font-size: 1em;
|
||||||
|
font-weight: bold;
|
||||||
|
color: var(--color-text-dark-primary);
|
||||||
|
min-width: 2em;
|
||||||
|
padding: 0.15rem 0.3rem;
|
||||||
|
background: rgba(255, 255, 255, 0.1);
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Responsive adjustments
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.character-subattributes.tab {
|
||||||
|
.subattributes-content {
|
||||||
|
.subattributes-list {
|
||||||
|
grid-template-columns: repeat(3, 1fr);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
+312
-23
@@ -1,7 +1,107 @@
|
|||||||
.character-content {
|
.character-content {
|
||||||
.sheet-common();
|
font-family: var(--font-primary);
|
||||||
.character-sheet-common();
|
font-size: calc(var(--font-size-standard) * 1);
|
||||||
|
color: var(--color-dark-1);
|
||||||
|
background-image: url("../assets/ui/prism_rpg_background.webp");
|
||||||
|
background-size: cover;
|
||||||
|
background-position: center;
|
||||||
|
background-repeat: no-repeat;
|
||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
|
|
||||||
|
nav.tabs {
|
||||||
|
background-image: url("../assets/ui/prism_rpg_background.webp");
|
||||||
|
background-size: cover;
|
||||||
|
background-position: center;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
padding: 2px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav.tabs [data-tab] {
|
||||||
|
color: #636060;
|
||||||
|
font-size: calc(var(--font-size-standard) * 1.1);
|
||||||
|
font-family: var(--font-secondary);
|
||||||
|
font-weight: bold;
|
||||||
|
padding: 3px 16px;
|
||||||
|
background-color: rgba(255, 255, 255, 0.3);
|
||||||
|
border-radius: 4px;
|
||||||
|
text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
|
||||||
|
transition: all 0.2s ease;
|
||||||
|
cursor: pointer;
|
||||||
|
border: 2px solid transparent;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: rgba(255, 255, 255, 0.7);
|
||||||
|
color: #1a1a1a;
|
||||||
|
transform: translateY(-2px);
|
||||||
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
|
||||||
|
border-color: rgba(107, 107, 107, 0.3);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
nav.tabs [data-tab].active {
|
||||||
|
color: #000000;
|
||||||
|
background-color: rgba(255, 255, 255, 0.85);
|
||||||
|
text-shadow: 1px 1px 3px rgba(255, 255, 255, 1);
|
||||||
|
border: 2px solid #6b6b6b;
|
||||||
|
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: rgba(255, 255, 255, 0.95);
|
||||||
|
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
|
||||||
|
transform: translateY(-2px);
|
||||||
|
border-color: #4a4a4a;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
input:disabled,
|
||||||
|
select:disabled {
|
||||||
|
background-color: rgba(0, 0, 0, 0.2);
|
||||||
|
border-color: transparent;
|
||||||
|
color: var(--color-dark-3);
|
||||||
|
}
|
||||||
|
|
||||||
|
input,
|
||||||
|
select {
|
||||||
|
height: 1.5rem;
|
||||||
|
background-color: rgba(0, 0, 0, 0.1);
|
||||||
|
border-color: var(--color-dark-6);
|
||||||
|
color: var(--color-dark-2);
|
||||||
|
}
|
||||||
|
|
||||||
|
input[name="name"] {
|
||||||
|
height: 2.5rem;
|
||||||
|
margin-right: 4px;
|
||||||
|
font-family: var(--font-secondary);
|
||||||
|
font-size: calc(var(--font-size-standard) * 1.2);
|
||||||
|
font-weight: bold;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
fieldset {
|
||||||
|
margin-bottom: 4px;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-fields {
|
||||||
|
input,
|
||||||
|
select {
|
||||||
|
text-align: center;
|
||||||
|
font-size: calc(var(--font-size-standard) * 1);
|
||||||
|
}
|
||||||
|
select {
|
||||||
|
font-family: var(--font-secondary);
|
||||||
|
font-size: calc(var(--font-size-standard) * 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
legend {
|
||||||
|
font-family: var(--font-secondary);
|
||||||
|
font-size: calc(var(--font-size-standard) * 1.2);
|
||||||
|
font-weight: bold;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.character-sheet-common();
|
||||||
}
|
}
|
||||||
|
|
||||||
.character-main {
|
.character-main {
|
||||||
@@ -223,6 +323,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.tab.character-biography .main-div {
|
.tab.character-biography .main-div {
|
||||||
|
background-image: url("../assets/ui/prism_rpg_background.webp");
|
||||||
|
background-size: cover;
|
||||||
|
background-position: center;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
padding: 8px 10px;
|
||||||
|
min-height: 100%;
|
||||||
|
|
||||||
.biodata {
|
.biodata {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(4, 1fr);
|
grid-template-columns: repeat(4, 1fr);
|
||||||
@@ -253,6 +360,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.tab.character-skills .main-div {
|
.tab.character-skills .main-div {
|
||||||
|
background-image: url("../assets/ui/prism_rpg_background.webp");
|
||||||
|
background-size: cover;
|
||||||
|
background-position: center;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
padding: 8px 10px;
|
||||||
|
min-height: 100%;
|
||||||
|
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
legend {
|
legend {
|
||||||
@@ -263,58 +377,212 @@
|
|||||||
}
|
}
|
||||||
.skills {
|
.skills {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(3, 1fr);
|
grid-template-columns: repeat(2, 1fr);
|
||||||
gap: 4px;
|
gap: 6px;
|
||||||
.skill {
|
.skill {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 4px;
|
gap: 8px;
|
||||||
.item-img {
|
padding: 6px 10px;
|
||||||
width: 24px;
|
background: rgba(255, 255, 255, 0.3);
|
||||||
height: 24px;
|
border: 2px solid #6b6b6b;
|
||||||
|
border-radius: 6px;
|
||||||
|
transition: all 0.2s;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: rgba(255, 255, 255, 0.5);
|
||||||
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.is-core-skill {
|
||||||
|
background: rgba(255, 235, 180, 0.4);
|
||||||
|
border-color: #d4a017;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: rgba(255, 235, 180, 0.6);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-img {
|
||||||
|
width: 32px;
|
||||||
|
height: 32px;
|
||||||
|
border: 2px solid #6b6b6b;
|
||||||
|
border-radius: 4px;
|
||||||
|
object-fit: cover;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.name {
|
.name {
|
||||||
min-width: 12rem;
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
|
|
||||||
|
a {
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #2c2c2c;
|
||||||
|
|
||||||
|
i {
|
||||||
|
margin-right: 6px;
|
||||||
|
color: #6b6b6b;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.score {
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #2c2c2c;
|
||||||
|
min-width: 50px;
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
.advanced-icon {
|
||||||
|
color: #d4a017;
|
||||||
|
font-size: 18px;
|
||||||
|
margin-left: 4px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.controls {
|
||||||
|
display: flex;
|
||||||
|
gap: 8px;
|
||||||
|
flex-shrink: 0;
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: #6b6b6b;
|
||||||
|
font-size: 14px;
|
||||||
|
transition: color 0.2s;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: #2c2c2c;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.racial-abilities {
|
.racial-abilities {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(3, 1fr);
|
grid-template-columns: repeat(2, 1fr);
|
||||||
gap: 4px;
|
gap: 6px;
|
||||||
.racial-ability {
|
.racial-ability {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 4px;
|
gap: 8px;
|
||||||
.item-img {
|
padding: 6px 10px;
|
||||||
width: 24px;
|
background: rgba(200, 255, 200, 0.2);
|
||||||
height: 24px;
|
border: 2px solid #6b9b6b;
|
||||||
|
border-radius: 6px;
|
||||||
|
transition: all 0.2s;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: rgba(200, 255, 200, 0.4);
|
||||||
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.item-img {
|
||||||
|
width: 32px;
|
||||||
|
height: 32px;
|
||||||
|
border: 2px solid #6b9b6b;
|
||||||
|
border-radius: 4px;
|
||||||
|
object-fit: cover;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.name {
|
.name {
|
||||||
min-width: 12rem;
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #2c2c2c;
|
||||||
|
}
|
||||||
|
|
||||||
|
.controls {
|
||||||
|
display: flex;
|
||||||
|
gap: 8px;
|
||||||
|
flex-shrink: 0;
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: #6b9b6b;
|
||||||
|
font-size: 14px;
|
||||||
|
transition: color 0.2s;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: #3c6b3c;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.vulnerabilities {
|
.vulnerabilities {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(3, 1fr);
|
grid-template-columns: repeat(2, 1fr);
|
||||||
gap: 4px;
|
gap: 6px;
|
||||||
.vulnerability {
|
.vulnerability {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 4px;
|
gap: 8px;
|
||||||
.item-img {
|
padding: 6px 10px;
|
||||||
width: 24px;
|
background: rgba(255, 200, 200, 0.2);
|
||||||
height: 24px;
|
border: 2px solid #9b6b6b;
|
||||||
|
border-radius: 6px;
|
||||||
|
transition: all 0.2s;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: rgba(255, 200, 200, 0.4);
|
||||||
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.item-img {
|
||||||
|
width: 32px;
|
||||||
|
height: 32px;
|
||||||
|
border: 2px solid #9b6b6b;
|
||||||
|
border-radius: 4px;
|
||||||
|
object-fit: cover;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.name {
|
.name {
|
||||||
min-width: 12rem;
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
|
font-family: "Cinzel", serif;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #2c2c2c;
|
||||||
|
}
|
||||||
|
|
||||||
|
.controls {
|
||||||
|
display: flex;
|
||||||
|
gap: 8px;
|
||||||
|
flex-shrink: 0;
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: #9b6b6b;
|
||||||
|
font-size: 14px;
|
||||||
|
transition: color 0.2s;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: #6b3c3c;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab.character-equipment .main-div {
|
.tab.character-equipment .main-div {
|
||||||
|
background-image: url("../assets/ui/prism_rpg_background.webp");
|
||||||
|
background-size: cover;
|
||||||
|
background-position: center;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
padding: 8px 10px;
|
||||||
|
min-height: 100%;
|
||||||
|
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
legend {
|
legend {
|
||||||
@@ -354,6 +622,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.tab.character-combat .main-div {
|
.tab.character-combat .main-div {
|
||||||
|
background-image: url("../assets/ui/prism_rpg_background.webp");
|
||||||
|
background-size: cover;
|
||||||
|
background-position: center;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
padding: 8px 10px;
|
||||||
|
min-height: 100%;
|
||||||
|
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
legend {
|
legend {
|
||||||
@@ -504,6 +779,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.tab.character-spells .main-div {
|
.tab.character-spells .main-div {
|
||||||
|
background-image: url("../assets/ui/prism_rpg_background.webp");
|
||||||
|
background-size: cover;
|
||||||
|
background-position: center;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
padding: 8px 10px;
|
||||||
|
min-height: 100%;
|
||||||
|
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
legend {
|
legend {
|
||||||
@@ -565,6 +847,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.tab.character-miracles .main-div {
|
.tab.character-miracles .main-div {
|
||||||
|
background-image: url("../assets/ui/prism_rpg_background.webp");
|
||||||
|
background-size: cover;
|
||||||
|
background-position: center;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
padding: 8px 10px;
|
||||||
|
min-height: 100%;
|
||||||
|
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
legend {
|
legend {
|
||||||
|
|||||||
+375
-1
@@ -1,3 +1,375 @@
|
|||||||
|
// Chat Message Card Styles - Applied globally for chat messages
|
||||||
|
.chat-log .message-content {
|
||||||
|
.prismrpg-chat-card {
|
||||||
|
font-family: var(--font-primary);
|
||||||
|
border-radius: 6px;
|
||||||
|
overflow: hidden;
|
||||||
|
background: linear-gradient(135deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.02) 100%);
|
||||||
|
border: 1px solid rgba(0,0,0,0.2);
|
||||||
|
margin: 2px 0;
|
||||||
|
|
||||||
|
.chat-header {
|
||||||
|
display: flex;
|
||||||
|
gap: 8px;
|
||||||
|
padding: 6px 8px;
|
||||||
|
background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
|
||||||
|
border-bottom: 1px solid #444;
|
||||||
|
|
||||||
|
.chat-portrait {
|
||||||
|
flex-shrink: 0;
|
||||||
|
width: 36px;
|
||||||
|
height: 36px;
|
||||||
|
border-radius: 50%;
|
||||||
|
overflow: hidden;
|
||||||
|
border: 2px solid #666;
|
||||||
|
box-shadow: 0 1px 4px rgba(0,0,0,0.4);
|
||||||
|
|
||||||
|
img {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: cover;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.chat-title {
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 2px;
|
||||||
|
|
||||||
|
.actor-name {
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 0.95em;
|
||||||
|
color: #e0e0e0;
|
||||||
|
text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
|
||||||
|
line-height: 1.1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.roll-name {
|
||||||
|
font-size: 0.8em;
|
||||||
|
color: #aaa;
|
||||||
|
line-height: 1.1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.roll-type-badge {
|
||||||
|
display: inline-block;
|
||||||
|
padding: 1px 6px;
|
||||||
|
border-radius: 10px;
|
||||||
|
font-size: 0.7em;
|
||||||
|
font-weight: bold;
|
||||||
|
text-transform: uppercase;
|
||||||
|
margin-top: 2px;
|
||||||
|
width: fit-content;
|
||||||
|
|
||||||
|
&.attack {
|
||||||
|
background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
|
||||||
|
color: white;
|
||||||
|
box-shadow: 0 1px 2px rgba(196, 30, 58, 0.4);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.bad-result {
|
||||||
|
color: #ff6b6b;
|
||||||
|
font-size: 0.75em;
|
||||||
|
margin-top: 1px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.chat-content {
|
||||||
|
padding: 6px 8px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 6px;
|
||||||
|
|
||||||
|
.weapon-info-card,
|
||||||
|
.spell-info-card {
|
||||||
|
background: rgba(255, 255, 255, 0.05);
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||||
|
border-radius: 4px;
|
||||||
|
padding: 6px;
|
||||||
|
|
||||||
|
.weapon-header,
|
||||||
|
.spell-header {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 6px;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
padding-bottom: 4px;
|
||||||
|
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
||||||
|
|
||||||
|
.weapon-name,
|
||||||
|
.spell-name {
|
||||||
|
font-size: 0.95em;
|
||||||
|
color: #d4af37;
|
||||||
|
}
|
||||||
|
|
||||||
|
.badge {
|
||||||
|
padding: 1px 4px;
|
||||||
|
border-radius: 3px;
|
||||||
|
font-size: 0.65em;
|
||||||
|
font-weight: bold;
|
||||||
|
text-transform: uppercase;
|
||||||
|
|
||||||
|
&.implement {
|
||||||
|
background: #4a5cf7;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.upcast {
|
||||||
|
background: #9b59b6;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.attribute-used {
|
||||||
|
font-size: 0.75em;
|
||||||
|
color: #999;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapon-stats,
|
||||||
|
.spell-stats {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 4px;
|
||||||
|
|
||||||
|
.stat-item {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 3px;
|
||||||
|
padding: 2px 6px;
|
||||||
|
background: rgba(0, 0, 0, 0.2);
|
||||||
|
border-radius: 3px;
|
||||||
|
font-size: 0.75em;
|
||||||
|
|
||||||
|
i {
|
||||||
|
color: #888;
|
||||||
|
font-size: 0.85em;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.apc {
|
||||||
|
background: rgba(255, 193, 7, 0.2);
|
||||||
|
border: 1px solid rgba(255, 193, 7, 0.4);
|
||||||
|
i { color: #ffc107; }
|
||||||
|
}
|
||||||
|
|
||||||
|
&.damage {
|
||||||
|
background: rgba(244, 67, 54, 0.2);
|
||||||
|
border: 1px solid rgba(244, 67, 54, 0.4);
|
||||||
|
i { color: #f44336; }
|
||||||
|
}
|
||||||
|
|
||||||
|
&.range {
|
||||||
|
background: rgba(76, 175, 80, 0.2);
|
||||||
|
border: 1px solid rgba(76, 175, 80, 0.4);
|
||||||
|
i { color: #4caf50; }
|
||||||
|
}
|
||||||
|
|
||||||
|
&.reload {
|
||||||
|
background: rgba(255, 152, 0, 0.2);
|
||||||
|
border: 1px solid rgba(255, 152, 0, 0.4);
|
||||||
|
i { color: #ff9800; }
|
||||||
|
}
|
||||||
|
|
||||||
|
&.mana {
|
||||||
|
background: rgba(33, 150, 243, 0.2);
|
||||||
|
border: 1px solid rgba(33, 150, 243, 0.4);
|
||||||
|
i { color: #2196f3; }
|
||||||
|
}
|
||||||
|
|
||||||
|
&.upkeep {
|
||||||
|
background: rgba(156, 39, 176, 0.2);
|
||||||
|
border: 1px solid rgba(156, 39, 176, 0.4);
|
||||||
|
i { color: #9c27b0; }
|
||||||
|
}
|
||||||
|
|
||||||
|
&.characteristic {
|
||||||
|
background: rgba(103, 58, 183, 0.2);
|
||||||
|
border: 1px solid rgba(103, 58, 183, 0.4);
|
||||||
|
i { color: #673ab7; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.special-badge {
|
||||||
|
display: inline-block;
|
||||||
|
padding: 2px 6px;
|
||||||
|
background: linear-gradient(135deg, #ff6b6b 0%, #c92a2a 100%);
|
||||||
|
color: white;
|
||||||
|
border-radius: 3px;
|
||||||
|
font-size: 0.75em;
|
||||||
|
font-weight: bold;
|
||||||
|
width: fit-content;
|
||||||
|
box-shadow: 0 1px 2px rgba(255, 107, 107, 0.4);
|
||||||
|
}
|
||||||
|
|
||||||
|
.aiming-info {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 4px;
|
||||||
|
padding: 3px 6px;
|
||||||
|
background: rgba(76, 175, 80, 0.1);
|
||||||
|
border-left: 2px solid #4caf50;
|
||||||
|
border-radius: 3px;
|
||||||
|
font-size: 0.8em;
|
||||||
|
|
||||||
|
i {
|
||||||
|
color: #4caf50;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.formula-display {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 6px;
|
||||||
|
padding: 4px 8px;
|
||||||
|
background: rgba(0, 0, 0, 0.3);
|
||||||
|
border-radius: 3px;
|
||||||
|
font-family: 'Courier New', monospace;
|
||||||
|
font-size: 0.85em;
|
||||||
|
border: 1px dashed rgba(255, 255, 255, 0.2);
|
||||||
|
|
||||||
|
i {
|
||||||
|
color: #888;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.modifier-info {
|
||||||
|
display: flex;
|
||||||
|
gap: 8px;
|
||||||
|
padding: 3px 6px;
|
||||||
|
background: rgba(255, 255, 255, 0.05);
|
||||||
|
border-radius: 3px;
|
||||||
|
font-size: 0.75em;
|
||||||
|
|
||||||
|
span {
|
||||||
|
color: #aaa;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.dice-breakdown {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 4px;
|
||||||
|
padding: 2px 6px;
|
||||||
|
background: rgba(255, 255, 255, 0.05);
|
||||||
|
border-radius: 3px;
|
||||||
|
font-size: 0.8em;
|
||||||
|
|
||||||
|
i {
|
||||||
|
color: #888;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.roll-damage-button {
|
||||||
|
padding: 4px 10px;
|
||||||
|
background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
border-radius: 4px;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 0.85em;
|
||||||
|
cursor: pointer;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 6px;
|
||||||
|
justify-content: center;
|
||||||
|
transition: all 0.2s;
|
||||||
|
box-shadow: 0 1px 3px rgba(196, 30, 58, 0.4);
|
||||||
|
margin-top: 4px;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
transform: translateY(-1px);
|
||||||
|
box-shadow: 0 2px 4px rgba(196, 30, 58, 0.6);
|
||||||
|
}
|
||||||
|
|
||||||
|
i {
|
||||||
|
font-size: 1em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.roll-result {
|
||||||
|
padding: 8px;
|
||||||
|
background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.1) 100%);
|
||||||
|
border-top: 1px solid rgba(212, 175, 55, 0.5);
|
||||||
|
|
||||||
|
.result-total {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: 10px;
|
||||||
|
|
||||||
|
.total-label {
|
||||||
|
font-size: 0.85em;
|
||||||
|
color: #aaa;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.total-value {
|
||||||
|
font-size: 1.8em;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #d4af37;
|
||||||
|
text-shadow: 0 1px 3px rgba(212, 175, 55, 0.5);
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.d30-result {
|
||||||
|
margin-top: 4px;
|
||||||
|
padding: 3px 6px;
|
||||||
|
background: rgba(0, 0, 0, 0.2);
|
||||||
|
border-radius: 3px;
|
||||||
|
font-size: 0.8em;
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
i {
|
||||||
|
color: #d4af37;
|
||||||
|
margin-right: 4px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.result-badge {
|
||||||
|
padding: 6px;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 0.9em;
|
||||||
|
font-weight: bold;
|
||||||
|
border-top: 1px solid;
|
||||||
|
|
||||||
|
&.success {
|
||||||
|
background: linear-gradient(135deg, rgba(76, 175, 80, 0.3) 0%, rgba(76, 175, 80, 0.1) 100%);
|
||||||
|
border-color: #4caf50;
|
||||||
|
color: #4caf50;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.failure {
|
||||||
|
background: linear-gradient(135deg, rgba(244, 67, 54, 0.3) 0%, rgba(244, 67, 54, 0.1) 100%);
|
||||||
|
border-color: #f44336;
|
||||||
|
color: #f44336;
|
||||||
|
}
|
||||||
|
|
||||||
|
i {
|
||||||
|
margin-right: 6px;
|
||||||
|
font-size: 1em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.damage-info {
|
||||||
|
padding: 6px;
|
||||||
|
background: rgba(255, 255, 255, 0.05);
|
||||||
|
border-radius: 3px;
|
||||||
|
font-size: 0.8em;
|
||||||
|
color: #aaa;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Old fortune and ask-roll styles
|
||||||
&.fortune {
|
&.fortune {
|
||||||
img {
|
img {
|
||||||
border: 0px;
|
border: 0px;
|
||||||
@@ -22,7 +394,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.button.control, .fortune-accepted {
|
.button.control,
|
||||||
|
.fortune-accepted {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -38,3 +411,4 @@
|
|||||||
font-family: var(--font-secondary);
|
font-family: var(--font-secondary);
|
||||||
font-size: calc(var(--font-size-standard) * 1.2);
|
font-size: calc(var(--font-size-standard) * 1.2);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -0,0 +1,270 @@
|
|||||||
|
// Active Effects styling - compact and modern design
|
||||||
|
|
||||||
|
// Effects container
|
||||||
|
.effects-container {
|
||||||
|
padding: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Effect categories sections
|
||||||
|
.effect-category {
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
border: 1px solid rgba(0, 0, 0, 0.2);
|
||||||
|
border-radius: 4px;
|
||||||
|
overflow: hidden;
|
||||||
|
background: rgba(255, 255, 255, 0.02);
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Effect list styling
|
||||||
|
.stat-list {
|
||||||
|
list-style: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
|
||||||
|
&.alternate-list {
|
||||||
|
.list-item {
|
||||||
|
padding: 0.4rem 0.6rem;
|
||||||
|
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.5rem;
|
||||||
|
min-height: 32px;
|
||||||
|
|
||||||
|
&.items-title-bg {
|
||||||
|
background: linear-gradient(
|
||||||
|
to bottom,
|
||||||
|
rgba(0, 0, 0, 0.25),
|
||||||
|
rgba(0, 0, 0, 0.15)
|
||||||
|
);
|
||||||
|
border-bottom: 2px solid rgba(0, 0, 0, 0.4);
|
||||||
|
padding: 0.5rem 0.6rem;
|
||||||
|
font-weight: bold;
|
||||||
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
margin: 0;
|
||||||
|
font-size: 1rem;
|
||||||
|
font-family: var(--font-secondary);
|
||||||
|
color: rgba(0, 0, 0, 0.9);
|
||||||
|
text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.short-label {
|
||||||
|
font-size: 0.7rem;
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-weight: 600;
|
||||||
|
color: rgba(0, 0, 0, 0.7);
|
||||||
|
letter-spacing: 0.5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.list-item-shadow {
|
||||||
|
transition: all 0.2s ease;
|
||||||
|
background: rgba(255, 255, 255, 0.05);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: rgba(255, 255, 255, 0.15);
|
||||||
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Effect image - compact size
|
||||||
|
.sheet-competence-img {
|
||||||
|
width: 28px;
|
||||||
|
height: 28px;
|
||||||
|
border: 1px solid rgba(0, 0, 0, 0.3);
|
||||||
|
border-radius: 4px;
|
||||||
|
object-fit: cover;
|
||||||
|
flex-shrink: 0;
|
||||||
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-name-img {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
flex-shrink: 0;
|
||||||
|
text-decoration: none;
|
||||||
|
|
||||||
|
&:hover .sheet-competence-img {
|
||||||
|
border-color: rgba(13, 110, 253, 0.6);
|
||||||
|
box-shadow: 0 2px 4px rgba(13, 110, 253, 0.3);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Effect labels - compact spacing
|
||||||
|
.item-name-label-header-long {
|
||||||
|
flex: 2;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
.items-title-text {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-name-label-long {
|
||||||
|
flex: 2;
|
||||||
|
font-weight: 500;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
color: rgba(0, 0, 0, 0.9);
|
||||||
|
font-size: 0.9rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-field-label-short {
|
||||||
|
flex: 0 0 90px;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
text-align: center;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
color: rgba(0, 0, 0, 0.7);
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-field-label-medium {
|
||||||
|
flex: 0 0 100px;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
text-align: center;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
color: rgba(0, 0, 0, 0.7);
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Filler for spacing
|
||||||
|
.item-filler {
|
||||||
|
flex: 1;
|
||||||
|
min-width: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Effect controls - compact and modern
|
||||||
|
.item-controls {
|
||||||
|
display: flex;
|
||||||
|
gap: 0.3rem;
|
||||||
|
align-items: center;
|
||||||
|
flex-shrink: 0;
|
||||||
|
|
||||||
|
&.item-controls-fixed {
|
||||||
|
flex: 0 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.effect-controls {
|
||||||
|
gap: 0.25rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.effect-control {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
width: 28px;
|
||||||
|
height: 28px;
|
||||||
|
border: 1px solid rgba(0, 0, 0, 0.2);
|
||||||
|
background: linear-gradient(
|
||||||
|
to bottom,
|
||||||
|
rgba(255, 255, 255, 0.8),
|
||||||
|
rgba(240, 240, 240, 0.8)
|
||||||
|
);
|
||||||
|
border-radius: 4px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.15s ease;
|
||||||
|
color: rgba(0, 0, 0, 0.7);
|
||||||
|
text-decoration: none;
|
||||||
|
padding: 0;
|
||||||
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
|
||||||
|
|
||||||
|
i {
|
||||||
|
font-size: 0.85rem;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: linear-gradient(
|
||||||
|
to bottom,
|
||||||
|
rgba(255, 255, 255, 1),
|
||||||
|
rgba(230, 230, 230, 1)
|
||||||
|
);
|
||||||
|
border-color: rgba(0, 0, 0, 0.4);
|
||||||
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
||||||
|
transform: translateY(-1px);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
transform: translateY(0);
|
||||||
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
&.item-edit:hover {
|
||||||
|
background: linear-gradient(
|
||||||
|
to bottom,
|
||||||
|
rgba(13, 110, 253, 0.2),
|
||||||
|
rgba(13, 110, 253, 0.3)
|
||||||
|
);
|
||||||
|
color: rgba(13, 110, 253, 1);
|
||||||
|
border-color: rgba(13, 110, 253, 0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
// New effect button styling
|
||||||
|
&[data-action="create-effect"] {
|
||||||
|
width: auto;
|
||||||
|
padding: 0.3rem 0.5rem;
|
||||||
|
gap: 0.3rem;
|
||||||
|
font-size: 0.7rem;
|
||||||
|
font-weight: 600;
|
||||||
|
background: linear-gradient(
|
||||||
|
to bottom,
|
||||||
|
rgba(40, 167, 69, 0.25),
|
||||||
|
rgba(40, 167, 69, 0.35)
|
||||||
|
);
|
||||||
|
border-color: rgba(40, 167, 69, 0.4);
|
||||||
|
color: rgba(25, 100, 42, 1);
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.3px;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: linear-gradient(
|
||||||
|
to bottom,
|
||||||
|
rgba(40, 167, 69, 0.35),
|
||||||
|
rgba(40, 167, 69, 0.45)
|
||||||
|
);
|
||||||
|
border-color: rgba(40, 167, 69, 0.6);
|
||||||
|
color: rgba(25, 100, 42, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
i {
|
||||||
|
font-size: 0.75rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Delete button specific styling
|
||||||
|
&[data-action="effect-delete"]:hover {
|
||||||
|
background: linear-gradient(
|
||||||
|
to bottom,
|
||||||
|
rgba(220, 53, 69, 0.2),
|
||||||
|
rgba(220, 53, 69, 0.3)
|
||||||
|
);
|
||||||
|
color: rgba(220, 53, 69, 1);
|
||||||
|
border-color: rgba(220, 53, 69, 0.5);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Flexrow utility
|
||||||
|
.flexrow {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.5rem;
|
||||||
|
}
|
||||||
@@ -13,4 +13,65 @@
|
|||||||
label {
|
label {
|
||||||
flex: 10%;
|
flex: 10%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.kit-passive {
|
||||||
|
margin-bottom: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.special-activations {
|
||||||
|
legend {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
button {
|
||||||
|
padding: 2px 8px;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.activation-item {
|
||||||
|
margin-bottom: 16px;
|
||||||
|
padding: 12px;
|
||||||
|
border: 1px solid var(--color-border-light-primary);
|
||||||
|
border-radius: 4px;
|
||||||
|
background: rgba(0, 0, 0, 0.05);
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.activation-header {
|
||||||
|
display: flex;
|
||||||
|
gap: 8px;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
|
||||||
|
input[type="text"] {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
padding: 4px 8px;
|
||||||
|
font-size: 12px;
|
||||||
|
|
||||||
|
&[data-action="delete-special-activation"] {
|
||||||
|
color: var(--color-text-danger, #c00);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: var(--color-bg-danger, rgba(200, 0, 0, 0.1));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.hint {
|
||||||
|
font-style: italic;
|
||||||
|
color: var(--color-text-light-secondary);
|
||||||
|
text-align: center;
|
||||||
|
padding: 12px;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
.prismrpg {
|
.prismrpg {
|
||||||
@import "mixins.less";
|
@import "mixins.less";
|
||||||
@import "character.less";
|
@import "character.less";
|
||||||
|
@import "character-main-v2.less";
|
||||||
|
@import "character-subattributes.less";
|
||||||
@import "monster.less";
|
@import "monster.less";
|
||||||
@import "skill.less";
|
@import "skill.less";
|
||||||
@import "racial-ability.less";
|
@import "racial-ability.less";
|
||||||
@@ -11,13 +13,17 @@
|
|||||||
@import "armor.less";
|
@import "armor.less";
|
||||||
@import "spell.less";
|
@import "spell.less";
|
||||||
@import "vulnerability.less";
|
@import "vulnerability.less";
|
||||||
@import "chat.less";
|
|
||||||
@import "equipment.less";
|
@import "equipment.less";
|
||||||
@import "shield.less";
|
@import "shield.less";
|
||||||
@import "miracle.less";
|
@import "miracle.less";
|
||||||
@import "race.less";
|
@import "race.less";
|
||||||
@import "class.less";
|
@import "class.less";
|
||||||
|
@import "character-path.less";
|
||||||
|
@import "effects.less";
|
||||||
|
@import "weapon-types-config.less";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@import "chat.less";
|
||||||
@import "roll.less";
|
@import "roll.less";
|
||||||
|
@import "roll-dialog-modern.less";
|
||||||
@import "hud.less";
|
@import "hud.less";
|
||||||
|
|||||||
@@ -6,6 +6,11 @@
|
|||||||
--logo-standard: url("../assets/ui/prism-rpg-logo-01.webp");
|
--logo-standard: url("../assets/ui/prism-rpg-logo-01.webp");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Tab system - hide inactive tabs
|
||||||
|
.tab[data-group]:not(.active) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
.initiative-area {
|
.initiative-area {
|
||||||
min-width: 8rem;
|
min-width: 8rem;
|
||||||
max-width: 8rem;
|
max-width: 8rem;
|
||||||
|
|||||||
@@ -0,0 +1,305 @@
|
|||||||
|
// Modern Roll Dialog Styling
|
||||||
|
// Matches the new chat message card design
|
||||||
|
|
||||||
|
.prismrpg-roll-dialog-modern {
|
||||||
|
font-family: var(--font-primary);
|
||||||
|
|
||||||
|
// Header section
|
||||||
|
.dialog-header {
|
||||||
|
background: linear-gradient(135deg, rgba(33, 33, 33, 0.95) 0%, rgba(66, 66, 66, 0.95) 100%);
|
||||||
|
border-bottom: 2px solid #d4af37;
|
||||||
|
padding: 8px 10px;
|
||||||
|
margin: -8px -8px 8px -8px;
|
||||||
|
border-radius: 4px 4px 0 0;
|
||||||
|
|
||||||
|
.character-info {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 4px;
|
||||||
|
|
||||||
|
.character-name {
|
||||||
|
font-size: 1em;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #d4af37;
|
||||||
|
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-name {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 4px;
|
||||||
|
font-size: 0.9em;
|
||||||
|
color: #e0e0e0;
|
||||||
|
|
||||||
|
i {
|
||||||
|
color: #d4af37;
|
||||||
|
font-size: 0.85em;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.weapon i {
|
||||||
|
color: #f44336;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.spell i {
|
||||||
|
color: #9c27b0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Content area
|
||||||
|
.dialog-content {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Section styling
|
||||||
|
.option-section {
|
||||||
|
background: rgba(0, 0, 0, 0.1);
|
||||||
|
border: 1px solid rgba(0, 0, 0, 0.2);
|
||||||
|
border-radius: 4px;
|
||||||
|
padding: 6px 8px;
|
||||||
|
|
||||||
|
&.weapon-section {
|
||||||
|
border-left: 3px solid #f44336;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.spell-section {
|
||||||
|
border-left: 3px solid #9c27b0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-title {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 4px;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 0.9em;
|
||||||
|
color: var(--color-dark-1);
|
||||||
|
margin-bottom: 6px;
|
||||||
|
padding-bottom: 4px;
|
||||||
|
border-bottom: 1px solid rgba(0, 0, 0, 0.15);
|
||||||
|
|
||||||
|
i {
|
||||||
|
color: #d4af37;
|
||||||
|
font-size: 0.85em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Info displays (ranges, spell stats)
|
||||||
|
.info-display {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 4px;
|
||||||
|
padding: 4px 6px;
|
||||||
|
background: rgba(0, 0, 0, 0.15);
|
||||||
|
border-radius: 3px;
|
||||||
|
margin-bottom: 6px;
|
||||||
|
font-size: 0.8em;
|
||||||
|
color: #666;
|
||||||
|
|
||||||
|
i {
|
||||||
|
color: #4caf50;
|
||||||
|
font-size: 0.85em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-text {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Spell info badges (like in chat)
|
||||||
|
.spell-info-display {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 4px;
|
||||||
|
margin-bottom: 6px;
|
||||||
|
|
||||||
|
.info-badge {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 3px;
|
||||||
|
padding: 3px 6px;
|
||||||
|
border-radius: 3px;
|
||||||
|
font-size: 0.75em;
|
||||||
|
font-weight: 500;
|
||||||
|
|
||||||
|
i {
|
||||||
|
font-size: 0.85em;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.characteristic {
|
||||||
|
background: rgba(103, 58, 183, 0.2);
|
||||||
|
border: 1px solid rgba(103, 58, 183, 0.4);
|
||||||
|
color: #673ab7;
|
||||||
|
i { color: #673ab7; }
|
||||||
|
}
|
||||||
|
|
||||||
|
&.mana {
|
||||||
|
background: rgba(33, 150, 243, 0.2);
|
||||||
|
border: 1px solid rgba(33, 150, 243, 0.4);
|
||||||
|
color: #2196f3;
|
||||||
|
i { color: #2196f3; }
|
||||||
|
}
|
||||||
|
|
||||||
|
&.apc {
|
||||||
|
background: rgba(255, 193, 7, 0.2);
|
||||||
|
border: 1px solid rgba(255, 193, 7, 0.4);
|
||||||
|
color: #ffc107;
|
||||||
|
i { color: #ffc107; }
|
||||||
|
}
|
||||||
|
|
||||||
|
&.upkeep {
|
||||||
|
background: rgba(156, 39, 176, 0.2);
|
||||||
|
border: 1px solid rgba(156, 39, 176, 0.4);
|
||||||
|
color: #9c27b0;
|
||||||
|
i { color: #9c27b0; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Option rows (label + control)
|
||||||
|
.option-row {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 6px;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
label {
|
||||||
|
font-size: 0.85em;
|
||||||
|
font-weight: 500;
|
||||||
|
color: var(--color-dark-2);
|
||||||
|
min-width: 90px;
|
||||||
|
}
|
||||||
|
|
||||||
|
select {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Styled selects
|
||||||
|
.styled-select {
|
||||||
|
background: rgba(255, 255, 255, 0.9);
|
||||||
|
border: 1px solid rgba(0, 0, 0, 0.2);
|
||||||
|
border-radius: 3px;
|
||||||
|
padding: 4px 8px;
|
||||||
|
font-size: 0.85em;
|
||||||
|
color: var(--color-dark-1);
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.2s ease;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
border-color: #d4af37;
|
||||||
|
box-shadow: 0 0 4px rgba(212, 175, 55, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:focus {
|
||||||
|
outline: none;
|
||||||
|
border-color: #d4af37;
|
||||||
|
box-shadow: 0 0 6px rgba(212, 175, 55, 0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
&.advantage-select,
|
||||||
|
&.modifier-select {
|
||||||
|
text-align: center;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Checkbox group
|
||||||
|
.checkbox-group {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 3px;
|
||||||
|
margin-bottom: 6px;
|
||||||
|
|
||||||
|
.checkbox-label {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
cursor: pointer;
|
||||||
|
padding: 3px 4px;
|
||||||
|
border-radius: 3px;
|
||||||
|
transition: background 0.2s ease;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: rgba(0, 0, 0, 0.05);
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type="checkbox"] {
|
||||||
|
margin-right: 6px;
|
||||||
|
cursor: pointer;
|
||||||
|
width: 14px;
|
||||||
|
height: 14px;
|
||||||
|
accent-color: #d4af37;
|
||||||
|
}
|
||||||
|
|
||||||
|
.checkbox-text {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 4px;
|
||||||
|
font-size: 0.8em;
|
||||||
|
color: var(--color-dark-2);
|
||||||
|
|
||||||
|
i {
|
||||||
|
color: #888;
|
||||||
|
font-size: 0.85em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type="checkbox"]:checked ~ .checkbox-text {
|
||||||
|
color: var(--color-dark-1);
|
||||||
|
font-weight: 500;
|
||||||
|
|
||||||
|
i {
|
||||||
|
color: #d4af37;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Dialog application styling
|
||||||
|
.application.dialog.prismrpg {
|
||||||
|
.window-content {
|
||||||
|
background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
|
||||||
|
padding: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Make buttons match the modern style
|
||||||
|
.dialog-buttons {
|
||||||
|
padding: 6px 8px;
|
||||||
|
gap: 6px;
|
||||||
|
|
||||||
|
button {
|
||||||
|
background: linear-gradient(135deg, #4a4a4a 0%, #6a6a6a 100%);
|
||||||
|
border: 1px solid #3a3a3a;
|
||||||
|
color: white;
|
||||||
|
font-weight: 600;
|
||||||
|
padding: 6px 12px;
|
||||||
|
border-radius: 4px;
|
||||||
|
transition: all 0.2s ease;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: linear-gradient(135deg, #5a5a5a 0%, #7a7a7a 100%);
|
||||||
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
||||||
|
transform: translateY(-1px);
|
||||||
|
}
|
||||||
|
|
||||||
|
&.default,
|
||||||
|
&[data-button="roll"] {
|
||||||
|
background: linear-gradient(135deg, #d4af37 0%, #f4cf67 100%);
|
||||||
|
border-color: #b49030;
|
||||||
|
color: #2a2a2a;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: linear-gradient(135deg, #e4bf47 0%, #ffdf77 100%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -25,6 +25,30 @@
|
|||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
padding: 0.5rem;
|
padding: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.dialog-weapon-options {
|
||||||
|
margin-top: 8px;
|
||||||
|
|
||||||
|
.dialog-save {
|
||||||
|
margin: 4px 0;
|
||||||
|
|
||||||
|
label {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
|
input[type="checkbox"] {
|
||||||
|
margin-right: 8px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
select {
|
||||||
|
margin-left: 8px;
|
||||||
|
min-width: 10rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.prismrpg-range-defense-dialog {
|
.prismrpg-range-defense-dialog {
|
||||||
@@ -156,4 +180,34 @@
|
|||||||
font-size: calc(var(--font-size-standard) * 1);
|
font-size: calc(var(--font-size-standard) * 1);
|
||||||
text-shadow: 0 0 10px var(--color-shadow-primary);
|
text-shadow: 0 0 10px var(--color-shadow-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Roll Damage button in weapon attack messages
|
||||||
|
.damage-roll-button {
|
||||||
|
margin-top: 0.5em;
|
||||||
|
margin-bottom: 0.25em;
|
||||||
|
|
||||||
|
.roll-damage-button {
|
||||||
|
background: linear-gradient(135deg, #8b0000 0%, #dc143c 100%);
|
||||||
|
color: white;
|
||||||
|
border: 1px solid #6b0000;
|
||||||
|
border-radius: 3px;
|
||||||
|
padding: 4px 10px;
|
||||||
|
font-weight: 600;
|
||||||
|
cursor: pointer;
|
||||||
|
font-size: 0.85em;
|
||||||
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
|
||||||
|
transition: all 0.2s ease;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: linear-gradient(135deg, #a00000 0%, #ff1744 100%);
|
||||||
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
|
||||||
|
transform: translateY(-1px);
|
||||||
|
}
|
||||||
|
|
||||||
|
i {
|
||||||
|
margin-right: 4px;
|
||||||
|
font-size: 0.9em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,149 @@
|
|||||||
|
/* Weapon Types Configuration Dialog */
|
||||||
|
.weapon-types-config {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapon-types-config .sheet-tabs {
|
||||||
|
margin: 0;
|
||||||
|
border-bottom: 2px solid #444;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapon-types-config .content {
|
||||||
|
padding: 0.5rem;
|
||||||
|
max-height: 60vh;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapon-types-config .section-header {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
font-size: 1em;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
padding-bottom: 0.25rem;
|
||||||
|
border-bottom: 1px solid #666;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapon-types-config .weapon-type-entry,
|
||||||
|
.weapon-types-config .weapon-group-entry {
|
||||||
|
background: rgba(0, 0, 0, 0.3);
|
||||||
|
padding: 0.75rem;
|
||||||
|
margin-bottom: 0.75rem;
|
||||||
|
border-radius: 4px;
|
||||||
|
border: 1px solid #555;
|
||||||
|
display: flex;
|
||||||
|
gap: 0.75rem;
|
||||||
|
align-items: start;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapon-types-config .weapon-type-entry .form-fields {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 100px 3fr 70px 70px;
|
||||||
|
gap: 0.75rem;
|
||||||
|
flex: 1;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapon-types-config .weapon-group-entry .form-fields {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 120px 2fr 120px 150px 3fr;
|
||||||
|
gap: 0.75rem;
|
||||||
|
flex: 1;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapon-types-config .form-group {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 0.15rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapon-types-config .form-group label {
|
||||||
|
font-size: 0.75em;
|
||||||
|
color: #fff;
|
||||||
|
font-weight: bold;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapon-types-config input[type="text"],
|
||||||
|
.weapon-types-config input[type="number"],
|
||||||
|
.weapon-types-config textarea {
|
||||||
|
background: rgba(0, 0, 0, 0.5);
|
||||||
|
border: 1px solid #666;
|
||||||
|
color: #fff;
|
||||||
|
padding: 0.2rem 0.4rem;
|
||||||
|
border-radius: 3px;
|
||||||
|
font-size: 0.9em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapon-types-config input[readonly] {
|
||||||
|
background: rgba(0, 0, 0, 0.7);
|
||||||
|
color: #999;
|
||||||
|
cursor: not-allowed;
|
||||||
|
font-size: 0.8em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapon-types-config textarea {
|
||||||
|
resize: vertical;
|
||||||
|
min-height: 40px;
|
||||||
|
font-size: 0.85em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapon-types-config button[data-action] {
|
||||||
|
background: rgba(100, 100, 100, 0.5);
|
||||||
|
border: 1px solid #666;
|
||||||
|
color: #fff;
|
||||||
|
padding: 0.2rem 0.4rem;
|
||||||
|
border-radius: 3px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapon-types-config button[data-action]:hover {
|
||||||
|
background: rgba(150, 150, 150, 0.5);
|
||||||
|
border-color: #888;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapon-types-config button[data-action="delete-weapon-type"],
|
||||||
|
.weapon-types-config button[data-action="delete-weapon-group"] {
|
||||||
|
background: rgba(139, 0, 0, 0.5);
|
||||||
|
align-self: center;
|
||||||
|
padding: 0.25rem;
|
||||||
|
min-width: auto;
|
||||||
|
width: auto;
|
||||||
|
font-size: 0.9em;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapon-types-config button[data-action="delete-weapon-type"]:hover,
|
||||||
|
.weapon-types-config button[data-action="delete-weapon-group"]:hover {
|
||||||
|
background: rgba(200, 0, 0, 0.7);
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapon-types-config .sheet-footer {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding: 1rem;
|
||||||
|
border-top: 2px solid #444;
|
||||||
|
gap: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapon-types-config .sheet-footer button {
|
||||||
|
padding: 0.5rem 1rem;
|
||||||
|
font-size: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapon-types-config .weapon-types-list,
|
||||||
|
.weapon-types-config .weapon-groups-list {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapon-types-config .flexrow {
|
||||||
|
display: flex;
|
||||||
|
gap: 1rem;
|
||||||
|
align-items: flex-start;
|
||||||
|
}
|
||||||
@@ -13,4 +13,118 @@
|
|||||||
label {
|
label {
|
||||||
flex: 10%;
|
flex: 10%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.weapon-passives {
|
||||||
|
legend {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
button {
|
||||||
|
padding: 2px 8px;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.passive-item {
|
||||||
|
margin-bottom: 16px;
|
||||||
|
padding: 12px;
|
||||||
|
border: 1px solid var(--color-border-light-primary);
|
||||||
|
border-radius: 4px;
|
||||||
|
background: rgba(0, 0, 0, 0.05);
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.passive-header {
|
||||||
|
display: flex;
|
||||||
|
gap: 8px;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
|
||||||
|
input[type="text"] {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
padding: 4px 8px;
|
||||||
|
font-size: 12px;
|
||||||
|
|
||||||
|
&[data-action="delete-passive"] {
|
||||||
|
color: var(--color-text-danger, #c00);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: var(--color-bg-danger, rgba(200, 0, 0, 0.1));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.hint {
|
||||||
|
font-style: italic;
|
||||||
|
color: var(--color-text-light-secondary);
|
||||||
|
text-align: center;
|
||||||
|
padding: 12px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapon-maneuvers {
|
||||||
|
legend {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
button {
|
||||||
|
padding: 2px 8px;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.maneuver-item {
|
||||||
|
margin-bottom: 16px;
|
||||||
|
padding: 12px;
|
||||||
|
border: 1px solid var(--color-border-light-primary);
|
||||||
|
border-radius: 4px;
|
||||||
|
background: rgba(0, 0, 0, 0.05);
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.maneuver-header {
|
||||||
|
display: flex;
|
||||||
|
gap: 8px;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
|
||||||
|
input[type="text"] {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
padding: 4px 8px;
|
||||||
|
font-size: 12px;
|
||||||
|
|
||||||
|
&[data-action="delete-maneuver"] {
|
||||||
|
color: var(--color-text-danger, #c00);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: var(--color-bg-danger, rgba(200, 0, 0, 0.1));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.hint {
|
||||||
|
font-style: italic;
|
||||||
|
color: var(--color-text-light-secondary);
|
||||||
|
text-align: center;
|
||||||
|
padding: 12px;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-1
@@ -40,7 +40,8 @@
|
|||||||
"spell": { "htmlFields": ["description"] },
|
"spell": { "htmlFields": ["description"] },
|
||||||
"equipment": { "htmlFields": ["description"] },
|
"equipment": { "htmlFields": ["description"] },
|
||||||
"race": { "htmlFields": ["description", "racialPassiveDescription", "subraceAbilityDescription", "notes"] },
|
"race": { "htmlFields": ["description", "racialPassiveDescription", "subraceAbilityDescription", "notes"] },
|
||||||
"class": { "htmlFields": ["description", "attributeBonuses", "notes", "features.level1", "features.level2", "features.level3", "features.level4", "features.level5", "features.level6", "features.level7", "features.level8", "features.level9", "features.level10"] }
|
"class": { "htmlFields": ["description", "attributeBonuses", "notes", "features.level1", "features.level2", "features.level3", "features.level4", "features.level5", "features.level6", "features.level7", "features.level8", "features.level9", "features.level10"] },
|
||||||
|
"character-path": { "htmlFields": ["description"] }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"grid": {
|
"grid": {
|
||||||
|
|||||||
+38
-38
@@ -10,6 +10,26 @@
|
|||||||
{{formInput fields.name value=source.name}}
|
{{formInput fields.name value=source.name}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{{! Navigation des onglets }}
|
||||||
|
<nav class="sheet-tabs tabs" data-group="primary">
|
||||||
|
<a class="item {{tabs.details.cssClass}}" data-tab="details">{{localize
|
||||||
|
"PRISMRPG.Label.details"
|
||||||
|
}}</a>
|
||||||
|
<a
|
||||||
|
class="item {{tabs.description.cssClass}}"
|
||||||
|
data-tab="description"
|
||||||
|
>{{localize "PRISMRPG.Label.description"}}</a>
|
||||||
|
<a class="item {{tabs.effects.cssClass}}" data-tab="effects">{{localize
|
||||||
|
"PRISMRPG.Label.effects"
|
||||||
|
}}</a>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
{{! Onglet Details }}
|
||||||
|
<div
|
||||||
|
class="tab {{tabs.details.cssClass}}"
|
||||||
|
data-group="primary"
|
||||||
|
data-tab="details"
|
||||||
|
>
|
||||||
{{! Armor Type (Light/Medium/Heavy) }}
|
{{! Armor Type (Light/Medium/Heavy) }}
|
||||||
{{formField
|
{{formField
|
||||||
systemFields.armorType
|
systemFields.armorType
|
||||||
@@ -48,44 +68,6 @@
|
|||||||
label="PRISMRPG.Label.equipped"
|
label="PRISMRPG.Label.equipped"
|
||||||
}}
|
}}
|
||||||
|
|
||||||
{{! Prism RPG: Armor Passive }}
|
|
||||||
<fieldset class="armor-passive">
|
|
||||||
<legend>{{localize "PRISMRPG.Label.armorPassive"}}</legend>
|
|
||||||
{{formField
|
|
||||||
systemFields.passive
|
|
||||||
value=system.passive
|
|
||||||
localize=true
|
|
||||||
label="PRISMRPG.Label.passiveName"
|
|
||||||
}}
|
|
||||||
<label>{{localize "PRISMRPG.Label.passiveDescription"}}</label>
|
|
||||||
{{formInput
|
|
||||||
systemFields.passiveDescription
|
|
||||||
enriched=enrichedPassiveDescription
|
|
||||||
value=system.passiveDescription
|
|
||||||
name="system.passiveDescription"
|
|
||||||
toggled=true
|
|
||||||
}}
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
{{! Prism RPG: Armor Augment }}
|
|
||||||
<fieldset class="armor-augment">
|
|
||||||
<legend>{{localize "PRISMRPG.Label.armorAugment"}}</legend>
|
|
||||||
{{formField
|
|
||||||
systemFields.augment
|
|
||||||
value=system.augment
|
|
||||||
localize=true
|
|
||||||
label="PRISMRPG.Label.augmentName"
|
|
||||||
}}
|
|
||||||
<label>{{localize "PRISMRPG.Label.augmentDescription"}}</label>
|
|
||||||
{{formInput
|
|
||||||
systemFields.augmentDescription
|
|
||||||
enriched=enrichedAugmentDescription
|
|
||||||
value=system.augmentDescription
|
|
||||||
name="system.augmentDescription"
|
|
||||||
toggled=true
|
|
||||||
}}
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
{{! Cost }}
|
{{! Cost }}
|
||||||
{{formField
|
{{formField
|
||||||
systemFields.cost
|
systemFields.cost
|
||||||
@@ -99,7 +81,14 @@
|
|||||||
localize=true
|
localize=true
|
||||||
label="PRISMRPG.Label.currency"
|
label="PRISMRPG.Label.currency"
|
||||||
}}
|
}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{! Onglet Description }}
|
||||||
|
<div
|
||||||
|
class="tab {{tabs.description.cssClass}}"
|
||||||
|
data-group="primary"
|
||||||
|
data-tab="description"
|
||||||
|
>
|
||||||
{{! Description }}
|
{{! Description }}
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>{{localize "PRISMRPG.Label.description"}}</legend>
|
<legend>{{localize "PRISMRPG.Label.description"}}</legend>
|
||||||
@@ -111,4 +100,15 @@
|
|||||||
toggled=true
|
toggled=true
|
||||||
}}
|
}}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{! Onglet Effects }}
|
||||||
|
<div
|
||||||
|
class="tab {{tabs.effects.cssClass}}"
|
||||||
|
data-group="primary"
|
||||||
|
data-tab="effects"
|
||||||
|
>
|
||||||
|
{{> systems/fvtt-prism-rpg/templates/partial-item-effects.hbs}}
|
||||||
|
</div>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
@@ -1,4 +1,8 @@
|
|||||||
<section class="tab character-{{tab.id}} {{tab.cssClass}}" data-tab="{{tab.id}}" data-group="{{tab.group}}">
|
<section
|
||||||
|
class="tab character-{{tab.id}} {{tab.cssClass}}"
|
||||||
|
data-tab="{{tab.id}}"
|
||||||
|
data-group="{{tab.group}}"
|
||||||
|
>
|
||||||
<div class="main-div">
|
<div class="main-div">
|
||||||
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
@@ -6,19 +10,24 @@
|
|||||||
<div class="biodata">
|
<div class="biodata">
|
||||||
<div class="biodata-elem">
|
<div class="biodata-elem">
|
||||||
<span class="name">Class</span>
|
<span class="name">Class</span>
|
||||||
{{formInput systemFields.biodata.fields.class value=system.biodata.class }}
|
{{formInput
|
||||||
|
systemFields.biodata.fields.class
|
||||||
|
value=system.biodata.class
|
||||||
|
}}
|
||||||
</div>
|
</div>
|
||||||
<div class="biodata-elem">
|
<div class="biodata-elem">
|
||||||
<span class="name">Level</span>
|
<span class="name">Level</span>
|
||||||
{{formInput systemFields.biodata.fields.level value=system.biodata.level }}
|
{{formInput
|
||||||
|
systemFields.biodata.fields.level
|
||||||
|
value=system.biodata.level
|
||||||
|
}}
|
||||||
</div>
|
</div>
|
||||||
<div class="biodata-elem">
|
<div class="biodata-elem">
|
||||||
<span class="name">Mortal</span>
|
<span class="name">Mortal</span>
|
||||||
{{formInput systemFields.biodata.fields.mortal value=system.biodata.mortal }}
|
{{formInput
|
||||||
</div>
|
systemFields.biodata.fields.mortal
|
||||||
<div class="biodata-elem">
|
value=system.biodata.mortal
|
||||||
<span class="name">Alignment</span>
|
}}
|
||||||
{{formInput systemFields.biodata.fields.alignment value=system.biodata.alignment }}
|
|
||||||
</div>
|
</div>
|
||||||
<div class="biodata-elem">
|
<div class="biodata-elem">
|
||||||
<span class="name">Age</span>
|
<span class="name">Age</span>
|
||||||
@@ -26,72 +35,122 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="biodata-elem">
|
<div class="biodata-elem">
|
||||||
<span class="name">Height</span>
|
<span class="name">Height</span>
|
||||||
{{formInput systemFields.biodata.fields.height value=system.biodata.height }}
|
{{formInput
|
||||||
|
systemFields.biodata.fields.height
|
||||||
|
value=system.biodata.height
|
||||||
|
}}
|
||||||
</div>
|
</div>
|
||||||
<div class="biodata-elem">
|
<div class="biodata-elem">
|
||||||
<span class="name">Weight</span>
|
<span class="name">Weight</span>
|
||||||
{{formInput systemFields.biodata.fields.weight value=system.biodata.weight }}
|
{{formInput
|
||||||
|
systemFields.biodata.fields.weight
|
||||||
|
value=system.biodata.weight
|
||||||
|
}}
|
||||||
</div>
|
</div>
|
||||||
<div class="biodata-elem">
|
<div class="biodata-elem">
|
||||||
<span class="name">Eyes</span>
|
<span class="name">Eyes</span>
|
||||||
{{formInput systemFields.biodata.fields.eyes value=system.biodata.eyes }}
|
{{formInput
|
||||||
|
systemFields.biodata.fields.eyes
|
||||||
|
value=system.biodata.eyes
|
||||||
|
}}
|
||||||
</div>
|
</div>
|
||||||
<div class="biodata-elem">
|
<div class="biodata-elem">
|
||||||
<span class="name">Hair</span>
|
<span class="name">Hair</span>
|
||||||
{{formInput systemFields.biodata.fields.hair value=system.biodata.hair }}
|
{{formInput
|
||||||
|
systemFields.biodata.fields.hair
|
||||||
|
value=system.biodata.hair
|
||||||
|
}}
|
||||||
</div>
|
</div>
|
||||||
<div class="biodata-elem">
|
<div class="biodata-elem">
|
||||||
<span class="name">Dev. Points (Total)</span>
|
<span class="name">Dev. Points (Total)</span>
|
||||||
{{formInput systemFields.developmentPoints.fields.total value=system.developmentPoints.total }}
|
{{formInput
|
||||||
|
systemFields.developmentPoints.fields.total
|
||||||
|
value=system.developmentPoints.total
|
||||||
|
}}
|
||||||
</div>
|
</div>
|
||||||
<div class="biodata-elem">
|
<div class="biodata-elem">
|
||||||
<span class="name">Dev. Points (Rem.)</span>
|
<span class="name">Dev. Points (Rem.)</span>
|
||||||
{{formInput systemFields.developmentPoints.fields.remaining value=system.developmentPoints.remaining }}
|
{{formInput
|
||||||
|
systemFields.developmentPoints.fields.remaining
|
||||||
|
value=system.developmentPoints.remaining
|
||||||
|
}}
|
||||||
</div>
|
</div>
|
||||||
<div class="biodata-elem">
|
<div class="biodata-elem">
|
||||||
<span class="name">Magic User</span>
|
<span class="name">Magic User</span>
|
||||||
{{formInput systemFields.biodata.fields.magicUser value=system.biodata.magicUser }}
|
{{formInput
|
||||||
|
systemFields.biodata.fields.magicUser
|
||||||
|
value=system.biodata.magicUser
|
||||||
|
}}
|
||||||
</div>
|
</div>
|
||||||
<div class="biodata-elem">
|
<!-- <div class="biodata-elem">
|
||||||
<span class="name">Cleric User</span>
|
<span class="name">Cleric User</span>
|
||||||
{{formInput systemFields.biodata.fields.clericUser value=system.biodata.clericUser }}
|
{{formInput
|
||||||
</div>
|
systemFields.biodata.fields.clericUser
|
||||||
|
value=system.biodata.clericUser
|
||||||
|
}}
|
||||||
|
</div> -->
|
||||||
<div class="biodata-elem">
|
<div class="biodata-elem">
|
||||||
<span class="name">Save bonus (1/5levels)</span>
|
<span class="name">Save bonus (1/5levels)</span>
|
||||||
{{formInput systemFields.modifiers.fields.saveModifier value=system.modifiers.saveModifier disabled=true}}
|
{{formInput
|
||||||
|
systemFields.modifiers.fields.saveModifier
|
||||||
|
value=system.modifiers.saveModifier
|
||||||
|
disabled=true
|
||||||
|
}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{#if system.biodata.magicUser}}
|
{{#if system.biodata.magicUser}}
|
||||||
<div class="biodata-elem">
|
<div class="biodata-elem">
|
||||||
<span class="name">Spell bonus (1/5levels)</span>
|
<span class="name">Spell bonus (1/5levels)</span>
|
||||||
{{formInput systemFields.modifiers.fields.levelSpellModifier value=system.modifiers.levelSpellModifier disabled=true}}
|
{{formInput
|
||||||
|
systemFields.modifiers.fields.levelSpellModifier
|
||||||
|
value=system.modifiers.levelSpellModifier
|
||||||
|
disabled=true
|
||||||
|
}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if system.biodata.clericUser}}
|
{{#if system.biodata.clericUser}}
|
||||||
<div class="biodata-elem">
|
<div class="biodata-elem">
|
||||||
<span class="name">Miracle bonus (1/5levels)</span>
|
<span class="name">Miracle bonus (1/5levels)</span>
|
||||||
{{formInput systemFields.modifiers.fields.levelMiracleModifier value=system.modifiers.levelMiracleModifier disabled=true}}
|
{{formInput
|
||||||
|
systemFields.modifiers.fields.levelMiracleModifier
|
||||||
|
value=system.modifiers.levelMiracleModifier
|
||||||
|
disabled=true
|
||||||
|
}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<div class="biodata-elem">
|
<div class="biodata-elem">
|
||||||
<span class="name">Last HD roll</span>
|
<span class="name">Last HD roll</span>
|
||||||
{{formInput systemFields.biodata.fields.hpPerLevel value=system.biodata.hpPerLevel disabled=true}}
|
{{formInput
|
||||||
|
systemFields.biodata.fields.hpPerLevel
|
||||||
|
value=system.biodata.hpPerLevel
|
||||||
|
disabled=true
|
||||||
|
}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>{{localize "PRISMRPG.Label.description"}}</legend>
|
<legend>{{localize "PRISMRPG.Label.description"}}</legend>
|
||||||
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description"
|
{{formInput
|
||||||
toggled=true}}
|
systemFields.description
|
||||||
|
enriched=enrichedDescription
|
||||||
|
value=system.description
|
||||||
|
name="system.description"
|
||||||
|
toggled=true
|
||||||
|
}}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>{{localize "PRISMRPG.Label.notes"}}</legend>
|
<legend>{{localize "PRISMRPG.Label.notes"}}</legend>
|
||||||
{{formInput systemFields.notes enriched=enrichedNotes value=system.notes name="system.notes" toggled=true}}
|
{{formInput
|
||||||
|
systemFields.notes
|
||||||
|
enriched=enrichedNotes
|
||||||
|
value=system.notes
|
||||||
|
name="system.notes"
|
||||||
|
toggled=true
|
||||||
|
}}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
+112
-100
@@ -1,106 +1,74 @@
|
|||||||
<section class="tab character-{{tab.id}} {{tab.cssClass}}" data-tab="combat" data-group="sheet">
|
<section
|
||||||
|
class="tab character-{{tab.id}} {{tab.cssClass}}"
|
||||||
|
data-tab="combat"
|
||||||
|
data-group="sheet"
|
||||||
|
>
|
||||||
<div class="main-div">
|
<div class="main-div">
|
||||||
|
|
||||||
<fieldset>
|
|
||||||
<legend>{{localize "PRISMRPG.Label.combatDetails"}}</legend>
|
|
||||||
<div class="combat-details">
|
|
||||||
<div class="combat-detail">
|
|
||||||
|
|
||||||
<button class="action ranged-attack-button" data-action="rangedAttackDefense">
|
|
||||||
{{localize "PRISMRPG.Label.rangedAttackDefense"}}
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<button class="action ranged-attack-button" data-action="rollInitiative">
|
|
||||||
{{localize "PRISMRPG.Label.rollInitiative"}}
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<div class="flexrow armor-hp">
|
|
||||||
<span class="name">{{localize "PRISMRPG.Label.armorHitPoints"}}</span>
|
|
||||||
{{formInput systemFields.combat.fields.armorHitPoints value=system.combat.armorHitPoints localize=true }}
|
|
||||||
<a data-action="armorHitPointsPlus"><i class="fa-solid fa-hexagon-plus"></i></a>
|
|
||||||
<a data-action="armorHitPointsMinus"><i class="fa-solid fa-hexagon-minus"></i></a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="flexrow granted">
|
|
||||||
<span class="">{{localize
|
|
||||||
"PRISMRPG.Label.grantedAttackDice"}}</a></span>
|
|
||||||
{{formInput systemFields.granted.fields.attackDice value=system.granted.attackDice disabled=isPlayMode }}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="flexrow granted ">
|
|
||||||
<span class="">{{localize
|
|
||||||
"PRISMRPG.Label.grantedDefenseDice"}}</a></span>
|
|
||||||
{{formInput systemFields.granted.fields.defenseDice value=system.granted.defenseDice disabled=isPlayMode }}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="flexrow granted">
|
|
||||||
<span class="">{{localize
|
|
||||||
"PRISMRPG.Label.grantedDamageDice"}}</a></span>
|
|
||||||
{{formInput systemFields.granted.fields.damageDice value=system.granted.damageDice disabled=isPlayMode }}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
<fieldset>
|
|
||||||
<legend>{{localize "PRISMRPG.Label.wounds"}}</legend>
|
|
||||||
<div class="wounds">
|
|
||||||
{{#each system.hp.wounds as |wound idx|}}
|
|
||||||
<div class="wound">
|
|
||||||
Name:<input class="wound-description wound-data" type="text" data-type="String" data-index="{{@index}}"
|
|
||||||
value="{{wound.description}}" data-name="description">
|
|
||||||
Duration:<input class="wound-duration wound-data" type="text" data-type="Number" data-index="{{@index}}"
|
|
||||||
value="{{wound.duration}}" data-name="duration">
|
|
||||||
HP:<input class="wound-value wound-data" type="text" data-type="Number" data-index="{{@index}}"
|
|
||||||
value="{{wound.value}}" data-name="value">
|
|
||||||
</div>
|
|
||||||
{{/each}}
|
|
||||||
</div>
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>{{localize "PRISMRPG.Label.weapons"}}</legend>
|
<legend>{{localize "PRISMRPG.Label.weapons"}}</legend>
|
||||||
<div class="weapons">
|
<div class="weapons">
|
||||||
{{#each weapons as |item|}}
|
{{#each weapons as |item|}}
|
||||||
<div class="weapon" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}" data-drag="true"
|
<div
|
||||||
data-drag-type="damage">
|
class="weapon"
|
||||||
|
data-item-id="{{item.id}}"
|
||||||
|
data-item-uuid="{{item.uuid}}"
|
||||||
|
data-drag="true"
|
||||||
|
data-drag-type="damage"
|
||||||
|
>
|
||||||
{{#if (ne item.img "icons/svg/item-bag.svg")}}
|
{{#if (ne item.img "icons/svg/item-bag.svg")}}
|
||||||
<img class="item-img" src="{{item.img}}" data-tooltip="{{item.name}}" />
|
<img
|
||||||
|
class="item-img"
|
||||||
|
src="{{item.img}}"
|
||||||
|
data-tooltip="{{item.name}}"
|
||||||
|
/>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<div class="name" data-tooltip="{{item.system.description}}">
|
<div class="name" data-tooltip="{{item.system.description}}">
|
||||||
{{item.name}}
|
{{item.name}}
|
||||||
</div>
|
</div>
|
||||||
<div class="attack-icons">
|
<div class="attack-icons">
|
||||||
|
|
||||||
<a class="rollable" data-roll-type="weapon-attack" data-roll-key="{{item.id}}" data-tooltip="Roll Attack">
|
<a
|
||||||
<i class="lf-roll-small fa-solid fa-swords" data-roll-type="weapon-attack"
|
class="rollable"
|
||||||
data-roll-key="{{item.id}}"></i>
|
data-roll-type="weapon-attack"
|
||||||
|
data-roll-key="{{item.id}}"
|
||||||
|
data-tooltip="Roll Attack"
|
||||||
|
>
|
||||||
|
<i
|
||||||
|
class="lf-roll-small fa-solid fa-swords"
|
||||||
|
data-roll-type="weapon-attack"
|
||||||
|
data-roll-key="{{item.id}}"
|
||||||
|
></i>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a class="rollable" data-roll-type="weapon-defense" data-roll-key="{{item.id}}" data-tooltip="Roll Defense">
|
<a
|
||||||
<i class="fa-solid fa-shield-halved" data-roll-type="weapon-defense" data-roll-key="{{item.id}}"></i>
|
class="rollable"
|
||||||
</a>
|
data-roll-type="weapon-damage-medium"
|
||||||
|
data-roll-key="{{item.id}}"
|
||||||
<a class="rollable" data-roll-type="weapon-damage-small" data-roll-key="{{item.id}}"
|
data-tooltip="Roll Damage"
|
||||||
data-tooltip="Roll Damage (Small)">
|
>
|
||||||
<i class="fa-regular fa-face-head-bandage" data-roll-type="weapon-damage-small"
|
<i
|
||||||
data-roll-key="{{item.id}}"></i>S
|
class="fa-regular fa-face-head-bandage"
|
||||||
</a>
|
data-roll-type="weapon-damage-medium"
|
||||||
|
data-roll-key="{{item.id}}"
|
||||||
<a class="rollable" data-roll-type="weapon-damage-medium" data-roll-key="{{item.id}}"
|
></i>
|
||||||
data-tooltip="Roll Damage (Medium)">
|
|
||||||
<i class="fa-regular fa-face-head-bandage" data-roll-type="weapon-damage-medium"
|
|
||||||
data-roll-key="{{item.id}}"></i>M
|
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<a data-tooltip="{{localize 'PRISMRPG.Edit'}}" data-action="edit" data-item-id="{{item.id}}"
|
<a
|
||||||
data-item-uuid="{{item.uuid}}"><i class="fas fa-edit"></i></a>
|
data-tooltip="{{localize 'PRISMRPG.Edit'}}"
|
||||||
<a data-tooltip="{{localize 'PRISMRPG.Delete'}}" data-action="delete" data-item-id="{{item.id}}"
|
data-action="edit"
|
||||||
data-item-uuid="{{item.uuid}}"><i class="fas fa-trash"></i></a>
|
data-item-id="{{item.id}}"
|
||||||
|
data-item-uuid="{{item.uuid}}"
|
||||||
|
><i class="fas fa-edit"></i></a>
|
||||||
|
<a
|
||||||
|
data-tooltip="{{localize 'PRISMRPG.Delete'}}"
|
||||||
|
data-action="delete"
|
||||||
|
data-item-id="{{item.id}}"
|
||||||
|
data-item-uuid="{{item.uuid}}"
|
||||||
|
><i class="fas fa-trash"></i></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
@@ -111,20 +79,45 @@
|
|||||||
<legend>{{localize "PRISMRPG.Label.armors"}}</legend>
|
<legend>{{localize "PRISMRPG.Label.armors"}}</legend>
|
||||||
<div class="armors">
|
<div class="armors">
|
||||||
{{#each armors as |item|}}
|
{{#each armors as |item|}}
|
||||||
<div class="armor" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}">
|
<div
|
||||||
<img class="item-img" src="{{item.img}}" data-tooltip="{{item.name}}" />
|
class="armor"
|
||||||
|
data-item-id="{{item.id}}"
|
||||||
|
data-item-uuid="{{item.uuid}}"
|
||||||
|
>
|
||||||
|
<img
|
||||||
|
class="item-img"
|
||||||
|
src="{{item.img}}"
|
||||||
|
data-tooltip="{{item.name}}"
|
||||||
|
/>
|
||||||
<div class="name" data-tooltip="{{item.system.description}}">
|
<div class="name" data-tooltip="{{item.system.description}}">
|
||||||
{{item.name}}
|
{{item.name}}
|
||||||
</div>
|
</div>
|
||||||
<div class="item-detail" data-tooltip="Defense">{{item.system.defense}}</div>
|
<div
|
||||||
<div class="item-detail" data-tooltip="Maximum movement">{{item.system.maximumMovement}}</div>
|
class="item-detail"
|
||||||
|
data-tooltip="Defense"
|
||||||
|
>{{item.system.defense}}</div>
|
||||||
|
<div
|
||||||
|
class="item-detail"
|
||||||
|
data-tooltip="Maximum movement"
|
||||||
|
>{{item.system.maximumMovement}}</div>
|
||||||
<div class="item-detail" data-tooltip="HP">{{item.system.hp}}</div>
|
<div class="item-detail" data-tooltip="HP">{{item.system.hp}}</div>
|
||||||
<div class="item-detail" data-tooltip="Damage Reduction">{{item.system.damageReduction}}</div>
|
<div
|
||||||
|
class="item-detail"
|
||||||
|
data-tooltip="Damage Reduction"
|
||||||
|
>{{item.system.damageReduction}}</div>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<a data-tooltip="{{localize 'PRISMRPG.Edit'}}" data-action="edit" data-item-id="{{item.id}}"
|
<a
|
||||||
data-item-uuid="{{item.uuid}}"><i class="fas fa-edit"></i></a>
|
data-tooltip="{{localize 'PRISMRPG.Edit'}}"
|
||||||
<a data-tooltip="{{localize 'PRISMRPG.Delete'}}" data-action="delete" data-item-id="{{item.id}}"
|
data-action="edit"
|
||||||
data-item-uuid="{{item.uuid}}"><i class="fas fa-trash"></i></a>
|
data-item-id="{{item.id}}"
|
||||||
|
data-item-uuid="{{item.uuid}}"
|
||||||
|
><i class="fas fa-edit"></i></a>
|
||||||
|
<a
|
||||||
|
data-tooltip="{{localize 'PRISMRPG.Delete'}}"
|
||||||
|
data-action="delete"
|
||||||
|
data-item-id="{{item.id}}"
|
||||||
|
data-item-uuid="{{item.uuid}}"
|
||||||
|
><i class="fas fa-trash"></i></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
@@ -135,23 +128,42 @@
|
|||||||
<legend>{{localize "PRISMRPG.Label.shields"}}</legend>
|
<legend>{{localize "PRISMRPG.Label.shields"}}</legend>
|
||||||
<div class="shields">
|
<div class="shields">
|
||||||
{{#each shields as |item|}}
|
{{#each shields as |item|}}
|
||||||
<div class="shield" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}">
|
<div
|
||||||
<img class="item-img" src="{{item.img}}" data-tooltip="{{item.name}}" />
|
class="shield"
|
||||||
|
data-item-id="{{item.id}}"
|
||||||
|
data-item-uuid="{{item.uuid}}"
|
||||||
|
>
|
||||||
|
<img
|
||||||
|
class="item-img"
|
||||||
|
src="{{item.img}}"
|
||||||
|
data-tooltip="{{item.name}}"
|
||||||
|
/>
|
||||||
<div class="name" data-tooltip="{{item.system.description}}">
|
<div class="name" data-tooltip="{{item.system.description}}">
|
||||||
{{item.name}}
|
{{item.name}}
|
||||||
</div>
|
</div>
|
||||||
<div class="item-detail" data-tooltip="Block APC">
|
<div class="item-detail" data-tooltip="Block APC">
|
||||||
<i class="fa-solid fa-hand"></i> {{item.system.apc}} APC
|
<i class="fa-solid fa-hand"></i>
|
||||||
|
{{item.system.apc}}
|
||||||
|
APC
|
||||||
</div>
|
</div>
|
||||||
<div class="item-detail" data-tooltip="Shield Rating">
|
<div class="item-detail" data-tooltip="Shield Rating">
|
||||||
<i class="fa-solid fa-shield"></i> {{item.system.sr}}
|
<i class="fa-solid fa-shield"></i>
|
||||||
|
{{item.system.sr}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<a data-tooltip="{{localize 'PRISMRPG.Edit'}}" data-action="edit" data-item-id="{{item.id}}"
|
<a
|
||||||
data-item-uuid="{{item.uuid}}"><i class="fas fa-edit"></i></a>
|
data-tooltip="{{localize 'PRISMRPG.Edit'}}"
|
||||||
<a data-tooltip="{{localize 'PRISMRPG.Delete'}}" data-action="delete" data-item-id="{{item.id}}"
|
data-action="edit"
|
||||||
data-item-uuid="{{item.uuid}}"><i class="fas fa-trash"></i></a>
|
data-item-id="{{item.id}}"
|
||||||
|
data-item-uuid="{{item.uuid}}"
|
||||||
|
><i class="fas fa-edit"></i></a>
|
||||||
|
<a
|
||||||
|
data-tooltip="{{localize 'PRISMRPG.Delete'}}"
|
||||||
|
data-action="delete"
|
||||||
|
data-item-id="{{item.id}}"
|
||||||
|
data-item-uuid="{{item.uuid}}"
|
||||||
|
><i class="fas fa-trash"></i></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
|
|||||||
@@ -4,11 +4,11 @@
|
|||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>{{localize "PRISMRPG.Label.money"}}</legend>
|
<legend>{{localize "PRISMRPG.Label.money"}}</legend>
|
||||||
<div class="moneys">
|
<div class="moneys">
|
||||||
{{formField systemFields.moneys.fields.tinbit.fields.value value=system.moneys.tinbit.value localize=true}}
|
{{formField systemFields.moneys.fields.coppercoin.fields.value value=system.moneys.coppercoin.value localize=true}}
|
||||||
{{formField systemFields.moneys.fields.copper.fields.value value=system.moneys.copper.value localize=true}}
|
{{formField systemFields.moneys.fields.silvercoin.fields.value value=system.moneys.silvercoin.value localize=true}}
|
||||||
{{formField systemFields.moneys.fields.silver.fields.value value=system.moneys.silver.value localize=true}}
|
{{formField systemFields.moneys.fields.goldcoin.fields.value value=system.moneys.goldcoin.value localize=true}}
|
||||||
{{formField systemFields.moneys.fields.gold.fields.value value=system.moneys.gold.value localize=true}}
|
{{formField systemFields.moneys.fields.note.fields.value value=system.moneys.note.value localize=true}}
|
||||||
{{formField systemFields.moneys.fields.platinum.fields.value value=system.moneys.platinum.value localize=true}}
|
{{formField systemFields.moneys.fields.steam.fields.value value=system.moneys.steam.value localize=true}}
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
|
|||||||
+285
-411
@@ -1,95 +1,19 @@
|
|||||||
<section
|
<section class="character-main-v2">
|
||||||
class="character-main character-main-{{ifThen isPlayMode 'play' 'edit'}}"
|
{{log "character-main-v2" this}}
|
||||||
>
|
|
||||||
{{log "character-main" this}}
|
|
||||||
|
|
||||||
<fieldset>
|
<div class="character-sheet-wrapper">
|
||||||
<legend>{{localize "PRISMRPG.Label.pc"}}</legend>
|
{{! Character Header with Name }}
|
||||||
<div class="character-pc character-pc-{{ifThen isPlayMode 'play' 'edit'}}">
|
<div class="character-header">
|
||||||
<div class="character-left">
|
<div class="character-name-banner">
|
||||||
<div class="character-left-image">
|
|
||||||
<img
|
|
||||||
class="character-img"
|
|
||||||
src="{{actor.img}}"
|
|
||||||
data-edit="img"
|
|
||||||
data-action="editImage"
|
|
||||||
data-tooltip="{{actor.name}}"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<fieldset class="">
|
|
||||||
<div class="flexrow character-hp">
|
|
||||||
<span class="name">{{localize "PRISMRPG.Label.HP"}}</span>
|
|
||||||
{{formInput
|
|
||||||
systemFields.hp.fields.value
|
|
||||||
value=system.hp.value
|
|
||||||
disabled=isPlayMode
|
|
||||||
classes="character-hp-value"
|
|
||||||
}}
|
|
||||||
/
|
|
||||||
{{formInput
|
|
||||||
systemFields.hp.fields.max
|
|
||||||
value=system.hp.max
|
|
||||||
disabled=isPlayMode
|
|
||||||
classes="character-hp-value"
|
|
||||||
}}
|
|
||||||
</div>
|
|
||||||
<div class="flexrow character-hp">
|
|
||||||
<span class="name">{{localize "PRISMRPG.Label.grit"}}</span>
|
|
||||||
{{formInput
|
|
||||||
systemFields.grit.fields.current
|
|
||||||
value=system.grit.current
|
|
||||||
disabled=isPlayMode
|
|
||||||
classes="character-hp"
|
|
||||||
}}
|
|
||||||
<span class="name">{{localize "PRISMRPG.Label.earned"}}</span>
|
|
||||||
{{formInput
|
|
||||||
systemFields.grit.fields.earned
|
|
||||||
value=system.grit.earned
|
|
||||||
disabled=isPlayMode
|
|
||||||
classes="character-hp"
|
|
||||||
}}
|
|
||||||
</div>
|
|
||||||
<div class="flexrow character-hp">
|
|
||||||
<span class="name">{{localize "PRISMRPG.Label.luck"}}</span>
|
|
||||||
{{formInput
|
|
||||||
systemFields.luck.fields.current
|
|
||||||
value=system.luck.current
|
|
||||||
disabled=isPlayMode
|
|
||||||
classes="character-hp"
|
|
||||||
}}
|
|
||||||
<span class="name">{{localize "PRISMRPG.Label.earned"}}</span>
|
|
||||||
{{formInput
|
|
||||||
systemFields.luck.fields.earned
|
|
||||||
value=system.luck.earned
|
|
||||||
disabled=isPlayMode
|
|
||||||
classes="character-hp"
|
|
||||||
}}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="flexrow">
|
|
||||||
<span class="">{{localize
|
|
||||||
"PRISMRPG.Label.damageResistanceShort"
|
|
||||||
}}</span>
|
|
||||||
{{formInput
|
|
||||||
systemFields.hp.fields.damageResistance
|
|
||||||
value=system.hp.fields.damageResistance
|
|
||||||
disabled=isPlayMode
|
|
||||||
classes="character-hp"
|
|
||||||
}}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="character-right">
|
|
||||||
<div class="character-name">
|
|
||||||
{{formInput
|
{{formInput
|
||||||
fields.name
|
fields.name
|
||||||
value=source.name
|
value=source.name
|
||||||
rootId=partId
|
rootId=partId
|
||||||
disabled=isPlayMode
|
disabled=isPlayMode
|
||||||
|
placeholder="Character Name"
|
||||||
}}
|
}}
|
||||||
|
</div>
|
||||||
|
<div class="character-toggle-controls">
|
||||||
<a
|
<a
|
||||||
class="control"
|
class="control"
|
||||||
data-action="toggleSheet"
|
data-action="toggleSheet"
|
||||||
@@ -99,363 +23,313 @@
|
|||||||
<i class="fa-solid fa-user-{{ifThen isPlayMode 'lock' 'pen'}}"></i>
|
<i class="fa-solid fa-user-{{ifThen isPlayMode 'lock' 'pen'}}"></i>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<fieldset
|
<div class="character-main-grid">
|
||||||
class="character-characteristics character-characteristics-{{ifThen
|
{{! Left Column - Portrait, Attributes & HP }}
|
||||||
isPlayMode
|
<div class="character-left-column">
|
||||||
'play'
|
{{! Portrait + HP column }}
|
||||||
'edit'
|
<div class="portrait-hp-column">
|
||||||
}}"
|
{{! Portrait }}
|
||||||
>
|
<div class="character-portrait">
|
||||||
<legend>{{localize "PRISMRPG.Label.Saves"}}</legend>
|
<img
|
||||||
<div class="character-saves">
|
class="character-img"
|
||||||
<div class="character-save">
|
src="{{actor.img}}"
|
||||||
<span class="name"><a
|
data-edit="img"
|
||||||
class="rollable"
|
data-action="editImage"
|
||||||
data-roll-type="save"
|
data-tooltip="{{actor.name}}"
|
||||||
data-roll-key="will"
|
/>
|
||||||
><i class="lf-roll-small fa-solid fa-dice-d20"></i>
|
</div>
|
||||||
{{localize "PRISMRPG.Label.saves.will"}}
|
|
||||||
</a></span>
|
{{! HP Shields (3 shields) - Below portrait }}
|
||||||
{{formField
|
<div class="hp-shields-section">
|
||||||
systemFields.saves.fields.will.fields.value
|
<div class="hp-shields">
|
||||||
value=system.saves.will.value
|
<div class="hp-item">
|
||||||
disabled=true
|
<div class="hp-label">HP</div>
|
||||||
|
<a data-action="hpMinus"><i class="fa-solid fa-minus"></i></a>
|
||||||
|
<div class="hp-value">
|
||||||
|
{{formInput
|
||||||
|
systemFields.hp.fields.value
|
||||||
|
value=system.hp.value
|
||||||
|
disabled=isPlayMode
|
||||||
}}
|
}}
|
||||||
<span class="name">
|
</div>
|
||||||
<a
|
<a data-action="hpPlus"><i class="fa-solid fa-plus"></i></a>
|
||||||
class="rollable"
|
<div class="hp-separator">/</div>
|
||||||
data-roll-type="save"
|
<div class="hp-max">
|
||||||
data-roll-key="dodge"
|
{{formInput
|
||||||
><i class="lf-roll-small fa-solid fa-dice-d20"></i>
|
systemFields.hp.fields.max
|
||||||
{{localize "PRISMRPG.Label.saves.dodge"}}
|
value=system.hp.max
|
||||||
|
disabled=isPlayMode
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="hp-item">
|
||||||
|
<div class="hp-label">MANA</div>
|
||||||
|
<a data-action="manaPointsMinus"><i class="fa-solid fa-minus"></i></a>
|
||||||
|
<div class="hp-value">
|
||||||
|
{{formInput
|
||||||
|
systemFields.manaPoints.fields.value
|
||||||
|
value=system.manaPoints.value
|
||||||
|
disabled=isPlayMode
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
<a data-action="manaPointsPlus"><i class="fa-solid fa-plus"></i></a>
|
||||||
|
<div class="hp-separator">/</div>
|
||||||
|
<div class="hp-max">
|
||||||
|
{{formInput
|
||||||
|
systemFields.manaPoints.fields.max
|
||||||
|
value=system.manaPoints.max
|
||||||
|
disabled=isPlayMode
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="hp-item">
|
||||||
|
<div class="hp-label">ARMOR</div>
|
||||||
|
<div class="hp-value">
|
||||||
|
{{formInput
|
||||||
|
systemFields.armorPoints.fields.value
|
||||||
|
value=system.armorPoints.value
|
||||||
|
disabled=isPlayMode
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
<div class="hp-separator">/</div>
|
||||||
|
<div class="hp-max">
|
||||||
|
{{formInput
|
||||||
|
systemFields.armorPoints.fields.max
|
||||||
|
value=system.armorPoints.max
|
||||||
|
disabled=isPlayMode
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{! Core Attributes (STR, DEX, CON, INT, WIS, CHA) }}
|
||||||
|
<div class="character-attributes">
|
||||||
|
<div class="attribute-shield">
|
||||||
|
<div class="attribute-label">
|
||||||
|
<a class="rollable" data-roll-type="characteristic" data-roll-key="str">
|
||||||
|
<i class="fa-duotone fa-solid fa-dice-d20"></i>
|
||||||
|
STR
|
||||||
</a>
|
</a>
|
||||||
</span>
|
|
||||||
{{formField
|
|
||||||
systemFields.saves.fields.dodge.fields.value
|
|
||||||
value=system.saves.dodge.value
|
|
||||||
disabled=true
|
|
||||||
}}
|
|
||||||
<span class="name">
|
|
||||||
<a
|
|
||||||
class="rollable"
|
|
||||||
data-roll-type="save"
|
|
||||||
data-roll-key="toughness"
|
|
||||||
><i class="lf-roll-small fa-solid fa-dice-d20"></i>
|
|
||||||
{{localize "PRISMRPG.Label.saves.toughness"}}
|
|
||||||
</a>
|
|
||||||
</span>
|
|
||||||
{{formField
|
|
||||||
systemFields.saves.fields.toughness.fields.value
|
|
||||||
value=system.saves.toughness.value
|
|
||||||
disabled=true
|
|
||||||
}}
|
|
||||||
</div>
|
</div>
|
||||||
<div class="character-save">
|
<div class="attribute-value">
|
||||||
<span class="name">
|
{{formInput
|
||||||
<a
|
|
||||||
class="rollable"
|
|
||||||
data-roll-type="save"
|
|
||||||
data-roll-key="contagion"
|
|
||||||
><i class="lf-roll-small fa-solid fa-dice-d20"></i>
|
|
||||||
{{localize "PRISMRPG.Label.saves.contagion"}}
|
|
||||||
</a>
|
|
||||||
</span>
|
|
||||||
{{formField
|
|
||||||
systemFields.saves.fields.contagion.fields.value
|
|
||||||
value=system.saves.contagion.value
|
|
||||||
disabled=true
|
|
||||||
}}
|
|
||||||
|
|
||||||
<span class="name">
|
|
||||||
<a
|
|
||||||
class="rollable"
|
|
||||||
data-roll-type="save"
|
|
||||||
data-roll-key="poison"
|
|
||||||
><i class="lf-roll-small fa-solid fa-dice-d20"></i>
|
|
||||||
{{localize "PRISMRPG.Label.saves.poison"}}
|
|
||||||
</a>
|
|
||||||
</span>
|
|
||||||
{{formField
|
|
||||||
systemFields.saves.fields.poison.fields.value
|
|
||||||
value=system.saves.poison.value
|
|
||||||
disabled=true
|
|
||||||
}}
|
|
||||||
|
|
||||||
<!--
|
|
||||||
<span class="name-pain">
|
|
||||||
<a class="rollable" data-roll-type="save" data-roll-key="pain" data-roll-dice="D12"><i
|
|
||||||
class="lf-roll-small fa-solid fa-dice-d12"></i>
|
|
||||||
{{localize "PRISMRPG.Label.saves.pain"}}
|
|
||||||
</a>
|
|
||||||
</span>
|
|
||||||
<span class="name-pain">
|
|
||||||
<a class="rollable" data-roll-type="save" data-roll-key="pain" data-roll-dice="D20"><i
|
|
||||||
class="lf-roll-small fa-solid fa-dice-d20"></i>
|
|
||||||
{{localize "PRISMRPG.Label.saves.pain"}}
|
|
||||||
</a>
|
|
||||||
</span>
|
|
||||||
{{formField systemFields.saves.fields.pain.fields.value value=system.saves.pain.value disabled=true}}
|
|
||||||
|
|
||||||
<span data-tooltip="Pain save if wound exceeds">
|
|
||||||
{{formField systemFields.hp.fields.painDamage value=system.hp.painDamage disabled=isPlayMode
|
|
||||||
tooltip="Pain Damage"}}
|
|
||||||
</span>
|
|
||||||
-->
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
<fieldset
|
|
||||||
class="character-characteristics character-characteristics-{{ifThen
|
|
||||||
isPlayMode
|
|
||||||
'play'
|
|
||||||
'edit'
|
|
||||||
}}"
|
|
||||||
>
|
|
||||||
<legend>{{localize "PRISMRPG.Label.Challenges"}}</legend>
|
|
||||||
<div class="character-challenges">
|
|
||||||
<div class="character-challenge">
|
|
||||||
<span class="name"><a
|
|
||||||
class="rollable"
|
|
||||||
data-roll-type="challenge"
|
|
||||||
data-roll-key="str"
|
|
||||||
><i class="lf-roll-small fa-solid fa-dice-d20"></i>{{localize
|
|
||||||
"PRISMRPG.Label.challenges.strength"
|
|
||||||
}}</a></span>
|
|
||||||
{{formField
|
|
||||||
systemFields.challenges.fields.str.fields.value
|
|
||||||
value=system.challenges.str.value
|
|
||||||
disabled=true
|
|
||||||
}}
|
|
||||||
<span class="name"><a
|
|
||||||
class="rollable"
|
|
||||||
data-roll-type="challenge"
|
|
||||||
data-roll-key="agility"
|
|
||||||
><i class="lf-roll-small fa-solid fa-dice-d20"></i>{{localize
|
|
||||||
"PRISMRPG.Label.challenges.agility"
|
|
||||||
}}</a></span>
|
|
||||||
{{formField
|
|
||||||
systemFields.challenges.fields.agility.fields.value
|
|
||||||
value=system.challenges.agility.value
|
|
||||||
disabled=true
|
|
||||||
}}
|
|
||||||
<span class="name"><a
|
|
||||||
class="rollable"
|
|
||||||
data-roll-type="challenge"
|
|
||||||
data-roll-key="dying"
|
|
||||||
><i class="lf-roll-small fa-solid fa-dice-d20"></i>{{localize
|
|
||||||
"PRISMRPG.Label.challenges.dying"
|
|
||||||
}}</a></span>
|
|
||||||
{{formField
|
|
||||||
systemFields.challenges.fields.dying.fields.value
|
|
||||||
value=system.challenges.dying.value
|
|
||||||
disabled=true
|
|
||||||
}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
<fieldset
|
|
||||||
class="character-characteristics character-characteristics-{{ifThen
|
|
||||||
isPlayMode
|
|
||||||
'play'
|
|
||||||
'edit'
|
|
||||||
}}"
|
|
||||||
>
|
|
||||||
<legend>{{localize "PRISMRPG.Label.Movement"}}</legend>
|
|
||||||
<div class="character-movements">
|
|
||||||
<div class="character-movement">
|
|
||||||
<span class="name">{{localize
|
|
||||||
"PRISMRPG.Label.movement.walk"
|
|
||||||
}}</span>
|
|
||||||
{{formField
|
|
||||||
systemFields.movement.fields.walk
|
|
||||||
value=system.movement.walk
|
|
||||||
disabled=isPlayMode
|
|
||||||
}}
|
|
||||||
<span class="name">{{localize
|
|
||||||
"PRISMRPG.Label.movement.jog"
|
|
||||||
}}</span>
|
|
||||||
{{formField
|
|
||||||
systemFields.movement.fields.jog
|
|
||||||
value=system.movement.jog
|
|
||||||
disabled=isPlayMode
|
|
||||||
}}
|
|
||||||
<span class="name">{{localize
|
|
||||||
"PRISMRPG.Label.movement.run"
|
|
||||||
}}</span>
|
|
||||||
{{formField
|
|
||||||
systemFields.movement.fields.run
|
|
||||||
value=system.movement.run
|
|
||||||
disabled=isPlayMode
|
|
||||||
}}
|
|
||||||
<span class="name">{{localize
|
|
||||||
"PRISMRPG.Label.movement.sprint"
|
|
||||||
}}</span>
|
|
||||||
{{formField
|
|
||||||
systemFields.movement.fields.sprint
|
|
||||||
value=system.movement.sprint
|
|
||||||
disabled=isPlayMode
|
|
||||||
}}
|
|
||||||
</div>
|
|
||||||
<div class="character-movement">
|
|
||||||
<span class="name">{{localize
|
|
||||||
"PRISMRPG.Label.movement.jumpBroad"
|
|
||||||
}}</span>
|
|
||||||
{{formField
|
|
||||||
systemFields.jump.fields.broad
|
|
||||||
value=system.jump.broad
|
|
||||||
disabled=isPlayMode
|
|
||||||
}}
|
|
||||||
<span class="name">{{localize
|
|
||||||
"PRISMRPG.Label.movement.jumpRunning"
|
|
||||||
}}</span>
|
|
||||||
{{formField
|
|
||||||
systemFields.jump.fields.running
|
|
||||||
value=system.jump.running
|
|
||||||
disabled=isPlayMode
|
|
||||||
}}
|
|
||||||
<span class="name">{{localize
|
|
||||||
"PRISMRPG.Label.movement.jumpVertical"
|
|
||||||
}}</span>
|
|
||||||
{{formField
|
|
||||||
systemFields.jump.fields.vertical
|
|
||||||
value=system.jump.vertical
|
|
||||||
disabled=isPlayMode
|
|
||||||
}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
<fieldset
|
|
||||||
class="character-characteristics character-characteristics-{{ifThen
|
|
||||||
isPlayMode
|
|
||||||
'play'
|
|
||||||
'edit'
|
|
||||||
}}"
|
|
||||||
>
|
|
||||||
<legend>{{localize "PRISMRPG.Label.characteristics"}}</legend>
|
|
||||||
<div class="character-characteristic">
|
|
||||||
<span>{{localize "PRISMRPG.Label.str"}}</span>
|
|
||||||
{{formField
|
|
||||||
systemFields.characteristics.fields.str.fields.value
|
systemFields.characteristics.fields.str.fields.value
|
||||||
value=system.characteristics.str.value
|
value=system.characteristics.str.value
|
||||||
disabled=isPlayMode
|
disabled=isPlayMode
|
||||||
data-char-id="str"
|
|
||||||
}}
|
|
||||||
{{formField
|
|
||||||
systemFields.characteristics.fields.str.fields.percent
|
|
||||||
value=system.characteristics.str.percent
|
|
||||||
disabled=isPlayMode
|
|
||||||
type="number"
|
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
<div class="character-characteristic">
|
<div class="attribute-save">
|
||||||
<span>{{localize "PRISMRPG.Label.int"}}</span>
|
<a class="rollable save-rollable" data-roll-type="save" data-roll-key="str" data-tooltip="{{localize 'PRISMRPG.RollSavingThrow'}}">
|
||||||
{{formField
|
<i class="fa-duotone fa-solid fa-dice-d20"></i>
|
||||||
systemFields.characteristics.fields.int.fields.value
|
</a>
|
||||||
value=system.characteristics.int.value
|
{{formInput
|
||||||
|
systemFields.saves.fields.str.fields.value
|
||||||
|
value=system.saves.str.value
|
||||||
disabled=isPlayMode
|
disabled=isPlayMode
|
||||||
data-char-id="int"
|
|
||||||
}}
|
|
||||||
|
|
||||||
{{formField
|
|
||||||
systemFields.characteristics.fields.int.fields.percent
|
|
||||||
value=system.characteristics.int.percent
|
|
||||||
disabled=isPlayMode
|
|
||||||
type="number"
|
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
<div class="character-characteristic">
|
|
||||||
<span>{{localize "PRISMRPG.Label.wis"}}</span>
|
|
||||||
{{formField
|
|
||||||
systemFields.characteristics.fields.wis.fields.value
|
|
||||||
value=system.characteristics.wis.value
|
|
||||||
disabled=isPlayMode
|
|
||||||
data-char-id="wis"
|
|
||||||
}}
|
|
||||||
|
|
||||||
{{formField
|
|
||||||
systemFields.characteristics.fields.wis.fields.percent
|
|
||||||
value=system.characteristics.wis.percent
|
|
||||||
disabled=isPlayMode
|
|
||||||
type="number"
|
|
||||||
}}
|
|
||||||
</div>
|
</div>
|
||||||
<div class="character-characteristic">
|
<div class="attribute-shield">
|
||||||
<span>{{localize "PRISMRPG.Label.dex"}}</span>
|
<div class="attribute-label">
|
||||||
{{formField
|
<a class="rollable" data-roll-type="characteristic" data-roll-key="dex">
|
||||||
|
<i class="fa-duotone fa-solid fa-dice-d20"></i>
|
||||||
|
DEX
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="attribute-value">
|
||||||
|
{{formInput
|
||||||
systemFields.characteristics.fields.dex.fields.value
|
systemFields.characteristics.fields.dex.fields.value
|
||||||
value=system.characteristics.dex.value
|
value=system.characteristics.dex.value
|
||||||
disabled=isPlayMode
|
disabled=isPlayMode
|
||||||
data-char-id="wis"
|
|
||||||
}}
|
|
||||||
|
|
||||||
{{formField
|
|
||||||
systemFields.characteristics.fields.dex.fields.percent
|
|
||||||
value=system.characteristics.dex.percent
|
|
||||||
disabled=isPlayMode
|
|
||||||
type="number"
|
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
<div class="character-characteristic">
|
<div class="attribute-save">
|
||||||
<span>{{localize "PRISMRPG.Label.con"}}</span>
|
<a class="rollable save-rollable" data-roll-type="save" data-roll-key="dex" data-tooltip="{{localize 'PRISMRPG.RollSavingThrow'}}">
|
||||||
{{formField
|
<i class="fa-duotone fa-solid fa-dice-d20"></i>
|
||||||
|
</a>
|
||||||
|
{{formInput
|
||||||
|
systemFields.saves.fields.dex.fields.value
|
||||||
|
value=system.saves.dex.value
|
||||||
|
disabled=isPlayMode
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="attribute-shield">
|
||||||
|
<div class="attribute-label">
|
||||||
|
<a class="rollable" data-roll-type="characteristic" data-roll-key="con">
|
||||||
|
<i class="fa-duotone fa-solid fa-dice-d20"></i>
|
||||||
|
CON
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="attribute-value">
|
||||||
|
{{formInput
|
||||||
systemFields.characteristics.fields.con.fields.value
|
systemFields.characteristics.fields.con.fields.value
|
||||||
value=system.characteristics.con.value
|
value=system.characteristics.con.value
|
||||||
disabled=isPlayMode
|
disabled=isPlayMode
|
||||||
data-char-id="con"
|
|
||||||
}}
|
|
||||||
|
|
||||||
{{formField
|
|
||||||
systemFields.characteristics.fields.con.fields.percent
|
|
||||||
value=system.characteristics.con.percent
|
|
||||||
disabled=isPlayMode
|
|
||||||
type="number"
|
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
<div class="character-characteristic">
|
<div class="attribute-save">
|
||||||
<span>{{localize "PRISMRPG.Label.cha"}}</span>
|
<a class="rollable save-rollable" data-roll-type="save" data-roll-key="con" data-tooltip="{{localize 'PRISMRPG.RollSavingThrow'}}">
|
||||||
{{formField
|
<i class="fa-duotone fa-solid fa-dice-d20"></i>
|
||||||
|
</a>
|
||||||
|
{{formInput
|
||||||
|
systemFields.saves.fields.con.fields.value
|
||||||
|
value=system.saves.con.value
|
||||||
|
disabled=isPlayMode
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="attribute-shield">
|
||||||
|
<div class="attribute-label">
|
||||||
|
<a class="rollable" data-roll-type="characteristic" data-roll-key="int">
|
||||||
|
<i class="fa-duotone fa-solid fa-dice-d20"></i>
|
||||||
|
INT
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="attribute-value">
|
||||||
|
{{formInput
|
||||||
|
systemFields.characteristics.fields.int.fields.value
|
||||||
|
value=system.characteristics.int.value
|
||||||
|
disabled=isPlayMode
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
<div class="attribute-save">
|
||||||
|
<a class="rollable save-rollable" data-roll-type="save" data-roll-key="int" data-tooltip="{{localize 'PRISMRPG.RollSavingThrow'}}">
|
||||||
|
<i class="fa-duotone fa-solid fa-dice-d20"></i>
|
||||||
|
</a>
|
||||||
|
{{formInput
|
||||||
|
systemFields.saves.fields.int.fields.value
|
||||||
|
value=system.saves.int.value
|
||||||
|
disabled=isPlayMode
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="attribute-shield">
|
||||||
|
<div class="attribute-label">
|
||||||
|
<a class="rollable" data-roll-type="characteristic" data-roll-key="wis">
|
||||||
|
<i class="fa-duotone fa-solid fa-dice-d20"></i>
|
||||||
|
WIS
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="attribute-value">
|
||||||
|
{{formInput
|
||||||
|
systemFields.characteristics.fields.wis.fields.value
|
||||||
|
value=system.characteristics.wis.value
|
||||||
|
disabled=isPlayMode
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
<div class="attribute-save">
|
||||||
|
<a class="rollable save-rollable" data-roll-type="save" data-roll-key="wis" data-tooltip="{{localize 'PRISMRPG.RollSavingThrow'}}">
|
||||||
|
<i class="fa-duotone fa-solid fa-dice-d20"></i>
|
||||||
|
</a>
|
||||||
|
{{formInput
|
||||||
|
systemFields.saves.fields.wis.fields.value
|
||||||
|
value=system.saves.wis.value
|
||||||
|
disabled=isPlayMode
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="attribute-shield">
|
||||||
|
<div class="attribute-label">
|
||||||
|
<a class="rollable" data-roll-type="characteristic" data-roll-key="cha">
|
||||||
|
<i class="fa-duotone fa-solid fa-dice-d20"></i>
|
||||||
|
CHA
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="attribute-value">
|
||||||
|
{{formInput
|
||||||
systemFields.characteristics.fields.cha.fields.value
|
systemFields.characteristics.fields.cha.fields.value
|
||||||
value=system.characteristics.cha.value
|
value=system.characteristics.cha.value
|
||||||
disabled=isPlayMode
|
disabled=isPlayMode
|
||||||
data-char-id="cha"
|
|
||||||
}}
|
|
||||||
|
|
||||||
{{formField
|
|
||||||
systemFields.characteristics.fields.cha.fields.percent
|
|
||||||
value=system.characteristics.cha.percent
|
|
||||||
disabled=isPlayMode
|
|
||||||
type="number"
|
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
<div class="attribute-save">
|
||||||
|
<a class="rollable save-rollable" data-roll-type="save" data-roll-key="cha" data-tooltip="{{localize 'PRISMRPG.RollSavingThrow'}}">
|
||||||
|
<i class="fa-duotone fa-solid fa-dice-d20"></i>
|
||||||
|
</a>
|
||||||
|
{{formInput
|
||||||
|
systemFields.saves.fields.cha.fields.value
|
||||||
|
value=system.saves.cha.value
|
||||||
|
disabled=isPlayMode
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
{{!-- Sub-Attributes (Prism RPG) --}}
|
{{! Right Column - Race, Classes }}
|
||||||
<fieldset
|
<div class="character-right-column">
|
||||||
class="character-subattributes character-subattributes-{{ifThen
|
{{! Race }}
|
||||||
isPlayMode
|
<div class="race-section">
|
||||||
'play'
|
<div class="race-box">
|
||||||
'edit'
|
<h4 class="race-label">Race</h4>
|
||||||
}}"
|
<div class="race-content">
|
||||||
>
|
{{#if race}}
|
||||||
<legend>{{localize "PRISMRPG.Label.subAttributes"}}</legend>
|
<div class="race-item" data-item-id="{{race.id}}" data-item-uuid="{{race.uuid}}">
|
||||||
<div class="subattributes-grid">
|
<img class="item-img" src="{{race.img}}" data-tooltip="{{race.name}}" />
|
||||||
{{#each config.SUB_ATTRIBUTES as |subAttr|}}
|
<div class="race-name">{{race.name}}</div>
|
||||||
<div class="character-subattribute" data-tooltip="{{localize subAttr.description}}">
|
<div class="controls">
|
||||||
<span class="subattr-label">{{localize subAttr.label}}</span>
|
<a data-tooltip="{{localize 'PRISMRPG.Edit'}}" data-action="edit" data-item-id="{{race.id}}"
|
||||||
<span class="subattr-value">{{lookup (lookup ../system.subAttributes subAttr.id) 'value'}}</span>
|
data-item-uuid="{{race.uuid}}"><i class="fas fa-edit"></i></a>
|
||||||
<span class="subattr-parents">({{#each subAttr.parents}}{{localize (concat "PRISMRPG.Label." this)}}{{#unless @last}}/{{/unless}}{{/each}})</span>
|
<a data-tooltip="{{localize 'PRISMRPG.Delete'}}" data-action="delete" data-item-id="{{race.id}}"
|
||||||
|
data-item-uuid="{{race.uuid}}"><i class="fas fa-trash"></i></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{else}}
|
||||||
|
<div class="no-race">
|
||||||
|
<p>{{localize "PRISMRPG.Message.dropRace"}}</p>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{! Classes (Three boxes) }}
|
||||||
|
<div class="classes-section">
|
||||||
|
{{#each classSlots as |classItem index|}}
|
||||||
|
<div class="class-box">
|
||||||
|
<h4 class="class-label">Class {{add index 1}}</h4>
|
||||||
|
<div class="class-content">
|
||||||
|
{{#if classItem}}
|
||||||
|
<div class="class-item" data-item-id="{{classItem.id}}" data-item-uuid="{{classItem.uuid}}">
|
||||||
|
<img class="item-img" src="{{classItem.img}}" data-tooltip="{{classItem.name}}" />
|
||||||
|
<div class="class-name">{{classItem.name}}</div>
|
||||||
|
<div class="controls">
|
||||||
|
<a data-tooltip="{{localize 'PRISMRPG.Edit'}}" data-action="edit" data-item-id="{{classItem.id}}"
|
||||||
|
data-item-uuid="{{classItem.uuid}}"><i class="fas fa-edit"></i></a>
|
||||||
|
<a data-tooltip="{{localize 'PRISMRPG.Delete'}}" data-action="delete" data-item-id="{{classItem.id}}"
|
||||||
|
data-item-uuid="{{classItem.uuid}}"><i class="fas fa-trash"></i></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{else}}
|
||||||
|
<div class="no-class">
|
||||||
|
<p>{{localize "PRISMRPG.Message.dropClass"}}</p>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
|
|
||||||
|
{{! Alignment }}
|
||||||
|
<div class="class-box">
|
||||||
|
<h4 class="class-label">Alignment</h4>
|
||||||
|
<div class="class-content">
|
||||||
|
<div class="alignment-value">
|
||||||
|
{{formInput
|
||||||
|
systemFields.biodata.fields.alignment
|
||||||
|
value=system.biodata.alignment
|
||||||
|
disabled=isPlayMode
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
@@ -2,16 +2,16 @@
|
|||||||
<div class="main-div">
|
<div class="main-div">
|
||||||
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>{{localize "PRISMRPG.Label.divinityPoints"}}</legend>
|
<legend>{{localize "PRISMRPG.Label.manaPoints"}}</legend>
|
||||||
<div class="miracle-details">
|
<div class="miracle-details">
|
||||||
<div class="miracle-detail">
|
<div class="miracle-detail">
|
||||||
<span>Current</span>
|
<span>Current</span>
|
||||||
{{formField systemFields.divinityPoints.fields.value value=system.divinityPoints.value localize=true}}
|
{{formField systemFields.manaPoints.fields.value value=system.manaPoints.value localize=true}}
|
||||||
<a data-action="divinityPointsPlus"><i class="fa-solid fa-hexagon-plus"></i></a>
|
<a data-action="manaPointsPlus"><i class="fa-solid fa-hexagon-plus"></i></a>
|
||||||
<a data-action="divinityPointsMinus"><i class="fa-solid fa-hexagon-minus"></i></a>
|
<a data-action="manaPointsMinus"><i class="fa-solid fa-hexagon-minus"></i></a>
|
||||||
|
|
||||||
<span>Max</span>
|
<span>Max</span>
|
||||||
{{formField systemFields.divinityPoints.fields.max value=system.divinityPoints.max localize=true
|
{{formField systemFields.manaPoints.fields.max value=system.manaPoints.max localize=true
|
||||||
disabled=isPlayMode}}
|
disabled=isPlayMode}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -0,0 +1,38 @@
|
|||||||
|
<section>
|
||||||
|
<div class="header">
|
||||||
|
<img
|
||||||
|
class="item-img"
|
||||||
|
src="{{item.img}}"
|
||||||
|
data-edit="img"
|
||||||
|
data-action="editImage"
|
||||||
|
data-tooltip="{{item.name}}"
|
||||||
|
/>
|
||||||
|
{{formInput fields.name value=source.name}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{! Navigation des onglets }}
|
||||||
|
<nav class="sheet-tabs tabs" data-group="primary">
|
||||||
|
<a class="item {{tabs.description.cssClass}}" data-tab="description">{{localize "PRISMRPG.Label.description"}}</a>
|
||||||
|
<a class="item {{tabs.effects.cssClass}}" data-tab="effects">{{localize "PRISMRPG.Label.effects"}}</a>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
{{! Onglet Description }}
|
||||||
|
<div class="tab {{tabs.description.cssClass}}" data-group="primary" data-tab="description">
|
||||||
|
<fieldset>
|
||||||
|
<legend>{{localize "PRISMRPG.Label.description"}}</legend>
|
||||||
|
{{formInput
|
||||||
|
systemFields.description
|
||||||
|
enriched=enrichedDescription
|
||||||
|
value=system.description
|
||||||
|
name="system.description"
|
||||||
|
toggled=true
|
||||||
|
}}
|
||||||
|
</fieldset>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{! Onglet Effects }}
|
||||||
|
<div class="tab {{tabs.effects.cssClass}}" data-group="primary" data-tab="effects">
|
||||||
|
{{> systems/fvtt-prism-rpg/templates/partial-item-effects.hbs}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</section>
|
||||||
@@ -1,68 +1,10 @@
|
|||||||
<section class="tab character-{{tab.id}} {{tab.cssClass}}" data-tab="skills" data-group="sheet">
|
<section class="tab character-{{tab.id}} {{tab.cssClass}}" data-tab="skills" data-group="sheet">
|
||||||
<div class="main-div">
|
<div class="main-div">
|
||||||
|
|
||||||
{{!-- Core Skill Selection (Prism RPG) --}}
|
{{!-- Skills Items --}}
|
||||||
<fieldset class="core-skill-selection">
|
|
||||||
<legend data-tooltip="{{localize 'PRISMRPG.Tooltip.coreSkill'}}" data-tooltip-direction="UP">
|
|
||||||
{{localize "PRISMRPG.Label.coreSkill"}}
|
|
||||||
</legend>
|
|
||||||
<div class="core-skill-info">
|
|
||||||
{{#if system.coreSkill.skill}}
|
|
||||||
<div class="selected-core-skill">
|
|
||||||
<span class="core-skill-name">{{localize (concat "PRISMRPG.CoreSkill." system.coreSkill.skill)}}</span>
|
|
||||||
<span class="core-skill-bonus">+5 {{localize "PRISMRPG.Label.basicChecks"}}</span>
|
|
||||||
{{#if system.coreSkill.attributeChoice}}
|
|
||||||
<span class="attribute-bonus">+2 {{localize (concat "PRISMRPG.Label." system.coreSkill.attributeChoice)}}</span>
|
|
||||||
{{/if}}
|
|
||||||
<span class="advanced-checks">{{localize "PRISMRPG.Label.advancedChecksEnabled"}}</span>
|
|
||||||
</div>
|
|
||||||
{{else}}
|
|
||||||
<div class="no-core-skill">
|
|
||||||
<p>{{localize "PRISMRPG.Message.selectCoreSkill"}}</p>
|
|
||||||
<select name="system.coreSkill.skill" {{#if isPlayMode}}disabled{{/if}}>
|
|
||||||
<option value="">{{localize "PRISMRPG.Label.chooseSkill"}}</option>
|
|
||||||
{{#each config.CORE_SKILLS as |skill skillId|}}
|
|
||||||
<option value="{{skillId}}">{{localize skill.label}}</option>
|
|
||||||
{{/each}}
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
{{!-- Available Core Skills Reference --}}
|
|
||||||
<fieldset class="core-skills-list">
|
|
||||||
<legend data-tooltip="{{localize 'PRISMRPG.Tooltip.coreSkills'}}" data-tooltip-direction="UP">
|
|
||||||
{{localize "PRISMRPG.Label.availableCoreSkills"}}
|
|
||||||
</legend>
|
|
||||||
<div class="skills-grid">
|
|
||||||
{{#each config.CORE_SKILLS as |skill skillId|}}
|
|
||||||
<div class="core-skill-item {{#if (eq ../system.coreSkill.skill skillId)}}selected{{/if}}"
|
|
||||||
data-skill-id="{{skillId}}">
|
|
||||||
<div class="skill-header">
|
|
||||||
<span class="skill-name">{{localize skill.label}}</span>
|
|
||||||
{{#if (eq ../system.coreSkill.skill skillId)}}
|
|
||||||
<span class="badge-core">{{localize "PRISMRPG.Label.yourCoreSkill"}}</span>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
|
||||||
<div class="skill-attributes">
|
|
||||||
<span class="attribute-choices-label">{{localize "PRISMRPG.Label.attributeChoices"}}:</span>
|
|
||||||
{{#each skill.attributeChoices as |attr|}}
|
|
||||||
<span class="attribute-choice {{#if (eq ../../system.coreSkill.attributeChoice attr)}}chosen{{/if}}">
|
|
||||||
{{localize (concat "PRISMRPG.Label." attr)}}
|
|
||||||
</span>
|
|
||||||
{{#unless @last}}/{{/unless}}
|
|
||||||
{{/each}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{{/each}}
|
|
||||||
</div>
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
{{!-- Skills Items (if any) --}}
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend data-tooltip="{{localize 'PRISMRPG.Tooltip.skills'}}" data-tooltip-direction="UP">
|
<legend data-tooltip="{{localize 'PRISMRPG.Tooltip.skills'}}" data-tooltip-direction="UP">
|
||||||
{{localize "PRISMRPG.Label.customSkills"}}
|
{{localize "PRISMRPG.Label.skills"}}
|
||||||
</legend>
|
</legend>
|
||||||
<div class="skills">
|
<div class="skills">
|
||||||
{{#each skills as |item|}}
|
{{#each skills as |item|}}
|
||||||
@@ -118,27 +60,5 @@
|
|||||||
{{/each}}
|
{{/each}}
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<fieldset>
|
|
||||||
<legend data-tooltip="{{localize 'PRISMRPG.Tooltip.vulnerabilities'}}" data-tooltip-direction="UP">
|
|
||||||
{{localize "PRISMRPG.Label.vulnerabilities"}}
|
|
||||||
</legend>
|
|
||||||
<div class="vulnerabilities">
|
|
||||||
{{#each vulnerabilities as |item|}}
|
|
||||||
<div class="vulnerability " data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}">
|
|
||||||
<img class="item-img" src="{{item.img}}" data-tooltip="{{item.name}}" />
|
|
||||||
<div class="name" data-tooltip="{{{item.description}}}<br><br>{{item.path}}" data-tooltip-direction="UP">
|
|
||||||
{{item.name}}
|
|
||||||
</div>
|
|
||||||
<div class="controls">
|
|
||||||
<a data-tooltip="{{localize 'PRISMRPG.Edit'}}" data-action="edit" data-item-id="{{item.id}}"
|
|
||||||
data-item-uuid="{{item.uuid}}"><i class="fas fa-edit"></i></a>
|
|
||||||
<a data-tooltip="{{localize 'PRISMRPG.Delete'}}" data-action="delete" data-item-id="{{item.id}}"
|
|
||||||
data-item-uuid="{{item.uuid}}"><i class="fas fa-trash"></i></a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{{/each}}
|
|
||||||
</div>
|
|
||||||
</fieldset>
|
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
@@ -1,22 +1,6 @@
|
|||||||
<section class="tab character-{{tab.id}} {{tab.cssClass}}" data-tab="{{tab.id}}" data-group="{{tab.group}}">
|
<section class="tab character-{{tab.id}} {{tab.cssClass}}" data-tab="{{tab.id}}" data-group="{{tab.group}}">
|
||||||
<div class="main-div">
|
<div class="main-div">
|
||||||
|
|
||||||
<fieldset>
|
|
||||||
<legend>{{localize "PRISMRPG.Label.aetherPoints"}}</legend>
|
|
||||||
<div class="spell-details">
|
|
||||||
<div class="spell-detail">
|
|
||||||
<span>Current</span>
|
|
||||||
{{formField systemFields.aetherPoints.fields.value value=system.aetherPoints.value localize=true}}
|
|
||||||
<a data-action="aetherPointsPlus"><i class="fa-solid fa-hexagon-plus"></i></a>
|
|
||||||
<a data-action="aetherPointsMinus"><i class="fa-solid fa-hexagon-minus"></i></a>
|
|
||||||
|
|
||||||
<span>Max</span>
|
|
||||||
{{formField systemFields.aetherPoints.fields.max value=system.aetherPoints.max localize=true
|
|
||||||
disabled=isPlayMode}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>{{localize "PRISMRPG.Label.spells"}}{{#if isEditMode}}<a class="action" data-tooltip="{{localize "
|
<legend>{{localize "PRISMRPG.Label.spells"}}{{#if isEditMode}}<a class="action" data-tooltip="{{localize "
|
||||||
PRISMRPG.Tooltip.addSpell"}}" data-tooltip-direction="UP"><i class="fas fa-plus"
|
PRISMRPG.Tooltip.addSpell"}}" data-tooltip-direction="UP"><i class="fas fa-plus"
|
||||||
@@ -29,12 +13,8 @@
|
|||||||
{{item.name}}
|
{{item.name}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<a class="rollable" data-roll-type="spell-attack" data-roll-key="{{item.id}}" data-tooltip="Spell Attack">
|
<a class="rollable" data-roll-type="spell-cast" data-roll-key="{{item.id}}" data-tooltip="Cast Spell">
|
||||||
<i class="lf-roll-small fa-solid fa-swords" data-roll-type="spell-attack" data-roll-key="{{item.id}}"></i>
|
<i class="fa-duotone fa-solid fa-wand-magic-sparkles" data-roll-type="spell-cast" data-roll-key="{{item.id}}"></i>
|
||||||
</a>
|
|
||||||
|
|
||||||
<a class="rollable" data-roll-type="spell-power" data-roll-key="{{item.id}}" data-tooltip="Spell Power">
|
|
||||||
<i class="fa-duotone fa-solid fa-stars" data-roll-type="spell-power" data-roll-key="{{item.id}}"></i>
|
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
|
|||||||
@@ -0,0 +1,25 @@
|
|||||||
|
<section class="character-subattributes tab" data-group="sheet" data-tab="subattributes">
|
||||||
|
<div class="subattributes-content">
|
||||||
|
<div class="subattributes-list">
|
||||||
|
{{#each (entries config.SUB_ATTRIBUTES) as |entry|}}
|
||||||
|
{{#with entry.[1] as |subAttr|}}
|
||||||
|
<a class="rollable subattribute-item" data-roll-type="sub-attribute" data-roll-key="{{subAttr.id}}" title="{{#each subAttr.parents as |parentKey|}}{{uppercase parentKey}}{{#unless @last}}/{{/unless}}{{/each}}">
|
||||||
|
<div class="subattribute-header">
|
||||||
|
<i class="fa-duotone fa-solid fa-dice-d20"></i>
|
||||||
|
<div class="subattribute-name">{{localize subAttr.label}}</div>
|
||||||
|
</div>
|
||||||
|
<div class="subattribute-value">
|
||||||
|
{{#with (lookup ../../system.subAttributes subAttr.id) as |subAttrData|}}
|
||||||
|
{{#if (gt subAttrData.value 0)}}
|
||||||
|
+{{subAttrData.value}}
|
||||||
|
{{else}}
|
||||||
|
{{subAttrData.value}}
|
||||||
|
{{/if}}
|
||||||
|
{{/with}}
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
{{/with}}
|
||||||
|
{{/each}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
+175
-58
@@ -1,88 +1,205 @@
|
|||||||
{{!log 'chat-message' this}}
|
{{!log "chat-message" this}}
|
||||||
<div class="{{cssClass}}">
|
{{!log "rollTarget" rollTarget}}
|
||||||
<div class="intro-chat">
|
{{!log "rollData" rollData}}
|
||||||
<div class="intro-img">
|
<div class="{{cssClass}} prismrpg-chat-card">
|
||||||
|
<div class="chat-header">
|
||||||
|
<div class="chat-portrait">
|
||||||
<img src="{{actingCharImg}}" data-tooltip="{{actingCharName}}" />
|
<img src="{{actingCharImg}}" data-tooltip="{{actingCharName}}" />
|
||||||
</div>
|
</div>
|
||||||
|
<div class="chat-title">
|
||||||
<div class="intro-right">
|
<div class="actor-name">{{actingCharName}}</div>
|
||||||
<span><STRONG>{{actingCharName}} - {{upperFirst rollName}}</STRONG></span>
|
<div class="roll-name">{{upperFirst rollName}}</div>
|
||||||
|
|
||||||
{{#if (match rollType "attack")}}
|
{{#if (match rollType "attack")}}
|
||||||
<span>Attack roll !</span>
|
<div class="roll-type-badge attack">Attack Roll</div>
|
||||||
{{/if}}
|
|
||||||
{{#if (match rollType "defense")}}
|
|
||||||
<span>Defense roll !</span>
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{#if (eq rollData.favor "favor")}}
|
|
||||||
<span><strong>Favor roll</strong></span>
|
|
||||||
{{/if}}
|
|
||||||
{{#if (eq rollData.favor "disfavor")}}
|
|
||||||
<span><strong>Disfavor roll</strong></span>
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if badResult}}
|
{{#if badResult}}
|
||||||
<span><strong>{{localize "PRISMRPG.Label.otherResult"}}</strong> : {{badResult}}</span>
|
<div class="bad-result">{{localize "PRISMRPG.Label.otherResult"}}: {{badResult}}</div>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="chat-content">
|
||||||
|
{{#if rollTarget.weapon}}
|
||||||
|
<div class="weapon-info-card">
|
||||||
|
<div class="weapon-header">
|
||||||
|
<strong class="weapon-name">{{rollTarget.weapon.name}}</strong>
|
||||||
|
{{#if rollTarget.weapon.system.isImplement}}
|
||||||
|
<span class="badge implement">Implement</span>
|
||||||
|
{{/if}}
|
||||||
|
{{#if rollData.attackAttribute}}
|
||||||
|
<span class="attribute-used">
|
||||||
|
({{#if (eq rollData.attackAttribute "str")}}Strength{{else}}Dexterity{{/if}})
|
||||||
|
</span>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="weapon-stats">
|
||||||
|
{{#if rollTarget.weapon.system.weaponGroup}}
|
||||||
|
<div class="stat-item">
|
||||||
|
<i class="fas fa-shield-halved"></i>
|
||||||
|
<span>{{rollTarget.weapon.system.weaponGroup}}</span>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
{{#if rollTarget.weapon.system.apc}}
|
||||||
|
<div class="stat-item apc">
|
||||||
|
<i class="fas fa-bolt"></i>
|
||||||
|
<span>{{rollTarget.weapon.system.apc}} APC</span>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
{{#if rollTarget.weapon.system.damage}}
|
||||||
|
<div class="stat-item damage">
|
||||||
|
<i class="fas fa-dice-d20"></i>
|
||||||
|
<span>{{rollTarget.weapon.system.damage}}</span>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
{{#if rollTarget.weapon.system.damageType}}
|
||||||
|
<div class="stat-item">
|
||||||
|
<i class="fas fa-burst"></i>
|
||||||
|
<span>
|
||||||
|
{{#if rollTarget.weapon.system.damageType.piercing}}P{{/if}}{{#if rollTarget.weapon.system.damageType.bludgeoning}}{{#if rollTarget.weapon.system.damageType.piercing}}/{{/if}}B{{/if}}{{#if rollTarget.weapon.system.damageType.slashing}}{{#if (or rollTarget.weapon.system.damageType.piercing rollTarget.weapon.system.damageType.bludgeoning)}}/{{/if}}S{{/if}}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
{{#if (or (gt rollTarget.weapon.system.shortRange 0) (gt rollTarget.weapon.system.longRange 0))}}
|
||||||
|
<div class="stat-item range">
|
||||||
|
<i class="fas fa-bow-arrow"></i>
|
||||||
|
<span>
|
||||||
|
{{#if (gt rollTarget.weapon.system.shortRange 0)}}{{rollTarget.weapon.system.shortRange}}{{/if}}{{#if (and (gt rollTarget.weapon.system.shortRange 0) (gt rollTarget.weapon.system.longRange 0))}}/{{/if}}{{#if (gt rollTarget.weapon.system.longRange 0)}}{{rollTarget.weapon.system.longRange}}{{/if}}ft
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
{{#if (gt rollTarget.weapon.system.reloadAPC 0)}}
|
||||||
|
<div class="stat-item reload">
|
||||||
|
<i class="fas fa-rotate"></i>
|
||||||
|
<span>Reload {{rollTarget.weapon.system.reloadAPC}}</span>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if rollTarget.weapon}}
|
{{#if (eq rollType "spell-cast")}}
|
||||||
<span>{{rollTarget.weapon.name}}</span>
|
<div class="spell-info-card">
|
||||||
|
<div class="spell-header">
|
||||||
|
<strong class="spell-name">Spell Cast</strong>
|
||||||
|
{{#if (gt rollData.upcastLevel 0)}}
|
||||||
|
<span class="badge upcast">+{{rollData.upcastLevel}} Levels</span>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
<div class="spell-stats">
|
||||||
|
{{#if rollData.mentalCharacteristic}}
|
||||||
|
<div class="stat-item characteristic">
|
||||||
|
<i class="fas fa-brain"></i>
|
||||||
|
<span>{{rollData.mentalCharacteristic}} ({{rollData.mentalCharValue}})</span>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
<div class="stat-item mana">
|
||||||
|
<i class="fas fa-flask"></i>
|
||||||
|
<span>{{rollData.totalManaCost}} Mana</span>
|
||||||
|
</div>
|
||||||
|
<div class="stat-item apc">
|
||||||
|
<i class="fas fa-bolt"></i>
|
||||||
|
<span>{{rollData.totalAPC}} APC</span>
|
||||||
|
</div>
|
||||||
|
{{#if (gt rollData.manaUpkeep 0)}}
|
||||||
|
<div class="stat-item upkeep">
|
||||||
|
<i class="fas fa-repeat"></i>
|
||||||
|
<span>{{rollData.manaUpkeep}}/round</span>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if rollData.letItFly}}
|
{{#if rollData.letItFly}}
|
||||||
<span>Let It Fly attack ! </span>
|
<div class="special-badge">Let It Fly!</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if rollData.pointBlank}}
|
{{#if rollData.pointBlank}}
|
||||||
<span>Point Blank Range Attack !</span>
|
<div class="special-badge">Point Blank</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if rollData.beyondSkill}}
|
{{#if rollData.beyondSkill}}
|
||||||
<span>Beyond Skill Range Attack !</span>
|
<div class="special-badge">Beyond Skill Range</div>
|
||||||
|
{{/if}}
|
||||||
|
{{#if (and rollData.attackerAim (ne rollData.attackerAim "0"))}}
|
||||||
|
<div class="aiming-info">
|
||||||
|
<i class="fas fa-crosshairs"></i> Aiming: {{rollData.attackerAim}}
|
||||||
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<span><strong>Formula</strong> : {{titleFormula}}</span>
|
<div class="formula-display">
|
||||||
|
<i class="fas fa-calculator"></i> {{titleFormula}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{#if (eq rollType "save")}}
|
||||||
|
{{#if rollTarget.abilityModifier}}
|
||||||
|
<div class="modifier-info">
|
||||||
|
<span>Ability Mod: {{#if (gt rollTarget.abilityModifier 0)}}+{{/if}}{{rollTarget.abilityModifier}}</span>
|
||||||
|
<span>Save Bonus: {{#if (gt rollTarget.saveProficiency 0)}}+{{/if}}{{rollTarget.saveProficiency}}</span>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
{{#each diceResults as |result|}}
|
{{#each diceResults as |result|}}
|
||||||
<span>{{result.dice}} : {{result.value}}</span>
|
<div class="dice-breakdown">
|
||||||
|
<i class="fas fa-dice"></i> {{result.dice}}: {{result.value}}
|
||||||
|
</div>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
|
|
||||||
</div>
|
{{#if (eq rollType "weapon-attack")}}
|
||||||
</div>
|
<button class="roll-damage-button" type="button" data-actor-id="{{actorId}}" data-weapon-id="{{rollTarget.weapon._id}}">
|
||||||
{{#if isSave}}
|
<i class="fa-regular fa-face-head-bandage"></i>
|
||||||
<div class="result">
|
Roll Damage
|
||||||
{{#if (eq resultType "success")}}
|
</button>
|
||||||
{{#if isPrivate}}?{{else}}{{localize "PRISMRPG.Roll.success"}}{{/if}}
|
|
||||||
{{else}}
|
|
||||||
{{#if isPrivate}}?{{else}}{{localize "PRISMRPG.Roll.failure"}}{{/if}}
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
|
||||||
{{#if isResource}}
|
|
||||||
<div class="result">
|
|
||||||
{{#if (eq resultType "success")}}
|
|
||||||
{{#if isPrivate}}?{{else}}{{localize "PRISMRPG.Roll.success"}}{{/if}}
|
|
||||||
{{else}}
|
|
||||||
{{#if isPrivate}}?{{else}}{{localize "PRISMRPG.Roll.failure"}}{{#if isFailure}} ({{localize
|
|
||||||
"PRISMRPG.Roll.resourceLost"}}){{/if}}{{/if}}
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
|
||||||
{{/if}}
|
|
||||||
{{#if isDamage}}
|
|
||||||
<div>
|
|
||||||
{{#if (and isGM hasTarget)}}
|
|
||||||
{{{localize "PRISMRPG.Roll.displayArmor" targetName=targetName targetArmor=targetArmor realDamage=realDamage}}}
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{#unless isPrivate}}
|
{{#unless isPrivate}}
|
||||||
<div class="dice-result">
|
<div class="roll-result">
|
||||||
<h4 class="dice-total">{{total}}</h4>
|
<div class="result-total">
|
||||||
|
<span class="total-label">Result</span>
|
||||||
|
<span class="total-value">{{total}}</span>
|
||||||
</div>
|
</div>
|
||||||
{{#if D30result}}
|
{{#if D30result}}
|
||||||
<div class="dice-result">
|
<div class="d30-result">
|
||||||
<h4 class="dice-total">D30 result: {{D30result}}</h4>
|
<i class="fas fa-dice-d20"></i> D30: {{D30result}}
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
{{/unless}}
|
||||||
|
|
||||||
|
{{#if isSave}}
|
||||||
|
<div class="result-badge {{resultType}}">
|
||||||
|
{{#if isPrivate}}
|
||||||
|
?
|
||||||
|
{{else}}
|
||||||
|
{{#if (eq resultType "success")}}
|
||||||
|
<i class="fas fa-check-circle"></i> {{localize "PRISMRPG.Roll.success"}}
|
||||||
|
{{else}}
|
||||||
|
<i class="fas fa-times-circle"></i> {{localize "PRISMRPG.Roll.failure"}}
|
||||||
|
{{/if}}
|
||||||
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{/unless}}
|
{{#if isResource}}
|
||||||
|
<div class="result-badge {{resultType}}">
|
||||||
|
{{#if isPrivate}}
|
||||||
|
?
|
||||||
|
{{else}}
|
||||||
|
{{#if (eq resultType "success")}}
|
||||||
|
<i class="fas fa-check-circle"></i> {{localize "PRISMRPG.Roll.success"}}
|
||||||
|
{{else}}
|
||||||
|
<i class="fas fa-times-circle"></i> {{localize "PRISMRPG.Roll.failure"}}{{#if isFailure}} ({{localize "PRISMRPG.Roll.resourceLost"}}){{/if}}
|
||||||
|
{{/if}}
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{#if isDamage}}
|
||||||
|
{{#if (and isGM hasTarget)}}
|
||||||
|
<div class="damage-info">
|
||||||
|
{{{localize "PRISMRPG.Roll.displayArmor" targetName=targetName targetArmor=targetArmor realDamage=realDamage}}}
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
+23
-12
@@ -4,6 +4,14 @@
|
|||||||
{{formInput fields.name value=source.name}}
|
{{formInput fields.name value=source.name}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{{! Navigation des onglets }}
|
||||||
|
<nav class="sheet-tabs tabs" data-group="primary">
|
||||||
|
<a class="item {{tabs.details.cssClass}}" data-tab="details">{{localize "PRISMRPG.Label.details"}}</a>
|
||||||
|
<a class="item {{tabs.description.cssClass}}" data-tab="description">{{localize "PRISMRPG.Label.description"}}</a>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
{{! Onglet Details }}
|
||||||
|
<div class="tab {{tabs.details.cssClass}}" data-group="primary" data-tab="details">
|
||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
<div class="align-top">
|
<div class="align-top">
|
||||||
|
|
||||||
@@ -63,6 +71,20 @@
|
|||||||
}}
|
}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{! Onglet Description }}
|
||||||
|
<div class="tab {{tabs.description.cssClass}}" data-group="primary" data-tab="description">
|
||||||
|
<fieldset>
|
||||||
|
<legend>{{localize "PRISMRPG.Label.description"}}</legend>
|
||||||
|
{{formInput
|
||||||
|
systemFields.description
|
||||||
|
enriched=enrichedDescription
|
||||||
|
value=system.description
|
||||||
|
name="system.description"
|
||||||
|
toggled=true
|
||||||
|
}}
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
{{! Notes }}
|
{{! Notes }}
|
||||||
<fieldset>
|
<fieldset>
|
||||||
@@ -75,17 +97,6 @@
|
|||||||
toggled=true
|
toggled=true
|
||||||
}}
|
}}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
</div>
|
||||||
{{! Description }}
|
|
||||||
<fieldset>
|
|
||||||
<legend>{{localize "PRISMRPG.Label.description"}}</legend>
|
|
||||||
{{formInput
|
|
||||||
systemFields.description
|
|
||||||
enriched=enrichedDescription
|
|
||||||
value=system.description
|
|
||||||
name="system.description"
|
|
||||||
toggled=true
|
|
||||||
}}
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@@ -9,10 +9,84 @@
|
|||||||
/>
|
/>
|
||||||
{{formInput fields.name value=source.name}}
|
{{formInput fields.name value=source.name}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{{! Navigation des onglets }}
|
||||||
|
<nav class="sheet-tabs tabs" data-group="primary">
|
||||||
|
<a class="item {{tabs.details.cssClass}}" data-tab="details">{{localize "PRISMRPG.Label.details"}}</a>
|
||||||
|
<a class="item {{tabs.description.cssClass}}" data-tab="description">{{localize "PRISMRPG.Label.description"}}</a>
|
||||||
|
<a class="item {{tabs.effects.cssClass}}" data-tab="effects">{{localize "PRISMRPG.Label.effects"}}</a>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
{{! Onglet Details }}
|
||||||
|
<div class="tab {{tabs.details.cssClass}}" data-group="primary" data-tab="details">
|
||||||
{{formField systemFields.encLoad value=system.encLoad localize=true}}
|
{{formField systemFields.encLoad value=system.encLoad localize=true}}
|
||||||
{{formField systemFields.cost value=system.cost localize=true}}
|
{{formField systemFields.cost value=system.cost localize=true}}
|
||||||
{{formField systemFields.money value=system.money localize=true}}
|
{{formField systemFields.money value=system.money localize=true}}
|
||||||
|
|
||||||
|
{{formField systemFields.isKit value=system.isKit localize=true label="PRISMRPG.Label.isKit"}}
|
||||||
|
|
||||||
|
{{#if system.isKit}}
|
||||||
|
{{! Kit Passive }}
|
||||||
|
<fieldset class="kit-passive">
|
||||||
|
<legend>{{localize "PRISMRPG.Label.kitPassive"}}</legend>
|
||||||
|
{{formField
|
||||||
|
systemFields.passive
|
||||||
|
value=system.passive
|
||||||
|
localize=true
|
||||||
|
label="PRISMRPG.Label.passiveName"
|
||||||
|
}}
|
||||||
|
<label>{{localize "PRISMRPG.Label.passiveDescription"}}</label>
|
||||||
|
{{formInput
|
||||||
|
systemFields.passiveDescription
|
||||||
|
enriched=enrichedPassiveDescription
|
||||||
|
value=system.passiveDescription
|
||||||
|
name="system.passiveDescription"
|
||||||
|
toggled=true
|
||||||
|
}}
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
|
{{! Special Activations }}
|
||||||
|
<fieldset class="special-activations">
|
||||||
|
<legend>
|
||||||
|
{{localize "PRISMRPG.Label.specialActivations"}}
|
||||||
|
<button type="button" data-action="add-special-activation" data-tooltip="{{localize 'PRISMRPG.Label.addSpecialActivation'}}">
|
||||||
|
<i class="fas fa-plus"></i>
|
||||||
|
</button>
|
||||||
|
</legend>
|
||||||
|
|
||||||
|
{{#each enrichedSpecialActivations}}
|
||||||
|
<div class="activation-item" data-activation-index="{{@index}}">
|
||||||
|
<div class="activation-header">
|
||||||
|
{{formInput
|
||||||
|
../systemFields.specialActivations.element.fields.name
|
||||||
|
value=this.name
|
||||||
|
name=(concat "system.specialActivations." @index ".name")
|
||||||
|
placeholder=(localize "PRISMRPG.Label.activationName")
|
||||||
|
}}
|
||||||
|
<button type="button" data-action="delete-special-activation" data-tooltip="{{localize 'PRISMRPG.Label.deleteSpecialActivation'}}">
|
||||||
|
<i class="fas fa-trash"></i>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<label>{{localize "PRISMRPG.Label.activationDescription"}}</label>
|
||||||
|
{{formInput
|
||||||
|
../systemFields.specialActivations.element.fields.description
|
||||||
|
enriched=this.enrichedDescription
|
||||||
|
value=this.description
|
||||||
|
name=(concat "system.specialActivations." @index ".description")
|
||||||
|
toggled=true
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
{{/each}}
|
||||||
|
|
||||||
|
{{#unless enrichedSpecialActivations.length}}
|
||||||
|
<p class="hint">{{localize "PRISMRPG.Hint.noSpecialActivations"}}</p>
|
||||||
|
{{/unless}}
|
||||||
|
</fieldset>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{! Onglet Description }}
|
||||||
|
<div class="tab" data-group="primary" data-tab="description">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>{{localize "PRISMRPG.Label.description"}}</legend>
|
<legend>{{localize "PRISMRPG.Label.description"}}</legend>
|
||||||
{{formInput
|
{{formInput
|
||||||
@@ -23,5 +97,11 @@
|
|||||||
toggled=true
|
toggled=true
|
||||||
}}
|
}}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{! Onglet Effects }}
|
||||||
|
<div class="tab {{tabs.effects.cssClass}}" data-group="primary" data-tab="effects">
|
||||||
|
{{> systems/fvtt-prism-rpg/templates/partial-item-effects.hbs}}
|
||||||
|
</div>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
+58
-21
@@ -10,6 +10,26 @@
|
|||||||
{{formInput fields.name value=source.name}}
|
{{formInput fields.name value=source.name}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{{! Navigation des onglets }}
|
||||||
|
<nav class="sheet-tabs tabs" data-group="primary">
|
||||||
|
<a class="item {{tabs.details.cssClass}}" data-tab="details">{{localize
|
||||||
|
"PRISMRPG.Label.details"
|
||||||
|
}}</a>
|
||||||
|
<a
|
||||||
|
class="item {{tabs.description.cssClass}}"
|
||||||
|
data-tab="description"
|
||||||
|
>{{localize "PRISMRPG.Label.description"}}</a>
|
||||||
|
<a class="item {{tabs.effects.cssClass}}" data-tab="effects">{{localize
|
||||||
|
"PRISMRPG.Label.effects"
|
||||||
|
}}</a>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
{{! Onglet Details }}
|
||||||
|
<div
|
||||||
|
class="tab {{tabs.details.cssClass}}"
|
||||||
|
data-group="primary"
|
||||||
|
data-tab="details"
|
||||||
|
>
|
||||||
{{! Prism RPG: Miracle Type }}
|
{{! Prism RPG: Miracle Type }}
|
||||||
{{formField
|
{{formField
|
||||||
systemFields.miracleType
|
systemFields.miracleType
|
||||||
@@ -42,27 +62,6 @@
|
|||||||
label="PRISMRPG.Label.divineFavor"
|
label="PRISMRPG.Label.divineFavor"
|
||||||
}}
|
}}
|
||||||
|
|
||||||
{{! Prism RPG: Miracle Augment }}
|
|
||||||
<fieldset class="miracle-augment">
|
|
||||||
<legend>{{localize "PRISMRPG.Label.miracleAugment"}}</legend>
|
|
||||||
{{formField
|
|
||||||
systemFields.augment
|
|
||||||
value=system.augment
|
|
||||||
localize=true
|
|
||||||
label="PRISMRPG.Label.augmentName"
|
|
||||||
}}
|
|
||||||
<div class="form-group">
|
|
||||||
<label>{{localize "PRISMRPG.Label.augmentDescription"}}</label>
|
|
||||||
{{formInput
|
|
||||||
systemFields.augmentDescription
|
|
||||||
enriched=enrichedAugmentDescription
|
|
||||||
value=system.augmentDescription
|
|
||||||
name="system.augmentDescription"
|
|
||||||
toggled=true
|
|
||||||
}}
|
|
||||||
</div>
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
{{! Miracle Components (includes Religious) }}
|
{{! Miracle Components (includes Religious) }}
|
||||||
<fieldset class="miracle-components">
|
<fieldset class="miracle-components">
|
||||||
<legend>{{localize "PRISMRPG.Label.components"}}</legend>
|
<legend>{{localize "PRISMRPG.Label.components"}}</legend>
|
||||||
@@ -152,6 +151,34 @@
|
|||||||
label="PRISMRPG.Label.level"
|
label="PRISMRPG.Label.level"
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
{{! Prism RPG: Miracle Augment }}
|
||||||
|
<fieldset class="miracle-augment">
|
||||||
|
<legend>{{localize "PRISMRPG.Label.miracleAugment"}}</legend>
|
||||||
|
{{formField
|
||||||
|
systemFields.augment
|
||||||
|
value=system.augment
|
||||||
|
localize=true
|
||||||
|
label="PRISMRPG.Label.augmentName"
|
||||||
|
}}
|
||||||
|
<div class="form-group">
|
||||||
|
<label>{{localize "PRISMRPG.Label.augmentDescription"}}</label>
|
||||||
|
{{formInput
|
||||||
|
systemFields.augmentDescription
|
||||||
|
enriched=enrichedAugmentDescription
|
||||||
|
value=system.augmentDescription
|
||||||
|
name="system.augmentDescription"
|
||||||
|
toggled=true
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
</fieldset>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{! Onglet Description }}
|
||||||
|
<div
|
||||||
|
class="tab {{tabs.description.cssClass}}"
|
||||||
|
data-group="primary"
|
||||||
|
data-tab="description"
|
||||||
|
>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>{{localize "PRISMRPG.Label.description"}}</legend>
|
<legend>{{localize "PRISMRPG.Label.description"}}</legend>
|
||||||
{{formInput
|
{{formInput
|
||||||
@@ -162,5 +189,15 @@
|
|||||||
toggled=true
|
toggled=true
|
||||||
}}
|
}}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{! Onglet Effects }}
|
||||||
|
<div
|
||||||
|
class="tab {{tabs.effects.cssClass}}"
|
||||||
|
data-group="primary"
|
||||||
|
data-tab="effects"
|
||||||
|
>
|
||||||
|
{{> systems/fvtt-prism-rpg/templates/partial-item-effects.hbs}}
|
||||||
|
</div>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
@@ -0,0 +1,80 @@
|
|||||||
|
{{! Template pour l'onglet Effects des items - organisé par catégories }}
|
||||||
|
<div class="effects-container">
|
||||||
|
|
||||||
|
{{#each effectCategories as |section sid|}}
|
||||||
|
<div class="effect-category">
|
||||||
|
<ul class="stat-list alternate-list">
|
||||||
|
<li class="item flexrow list-item items-title-bg">
|
||||||
|
<span class="item-name-label-header-long">
|
||||||
|
<h3><label class="items-title-text">{{localize
|
||||||
|
section.label
|
||||||
|
}}</label></h3>
|
||||||
|
</span>
|
||||||
|
<span class="item-field-label-short">
|
||||||
|
<label class="short-label">{{localize
|
||||||
|
"PRISMRPG.Label.source"
|
||||||
|
}}</label>
|
||||||
|
</span>
|
||||||
|
<span class="item-field-label-medium">
|
||||||
|
<label class="short-label">{{localize
|
||||||
|
"PRISMRPG.Label.duration"
|
||||||
|
}}</label>
|
||||||
|
</span>
|
||||||
|
<div class="item-filler"> </div>
|
||||||
|
<div class="item-controls item-controls-fixed">
|
||||||
|
<a
|
||||||
|
class="effect-control"
|
||||||
|
data-action="create-effect"
|
||||||
|
data-effect-type="{{section.type}}"
|
||||||
|
title="{{localize 'DOCUMENT.Create' type="Effect"}}"
|
||||||
|
>
|
||||||
|
<i class="fas fa-plus"></i>
|
||||||
|
{{localize "DOCUMENT.New" type="Effect"}}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
{{#each section.effects as |effect|}}
|
||||||
|
<li
|
||||||
|
class="item flexrow list-item list-item-shadow"
|
||||||
|
data-item-id="{{effect._id}}"
|
||||||
|
data-effect-id="{{effect._id}}"
|
||||||
|
data-parent-id="{{effect.parent.id}}"
|
||||||
|
>
|
||||||
|
<a
|
||||||
|
class="item-edit item-name-img"
|
||||||
|
data-action="effect-edit"
|
||||||
|
title="Edit Effect"
|
||||||
|
>
|
||||||
|
<img class="sheet-competence-img" src="{{effect.img}}" />
|
||||||
|
</a>
|
||||||
|
<span class="item-name-label-long">{{effect.name}}</span>
|
||||||
|
<span class="item-field-label-short">{{effect.sourceName}}</span>
|
||||||
|
<span
|
||||||
|
class="item-field-label-short"
|
||||||
|
>{{effect.duration.label}}</span>
|
||||||
|
|
||||||
|
<div class="item-filler"> </div>
|
||||||
|
<div class="item-controls effect-controls flexrow">
|
||||||
|
<a
|
||||||
|
class="effect-control item-edit"
|
||||||
|
data-action="effect-edit"
|
||||||
|
title="{{localize 'DOCUMENT.Update' type="Effect"}}"
|
||||||
|
>
|
||||||
|
<i class="fas fa-edit"></i>
|
||||||
|
</a>
|
||||||
|
<a
|
||||||
|
class="effect-control"
|
||||||
|
data-action="effect-delete"
|
||||||
|
title="{{localize 'DOCUMENT.Delete' type="Effect"}}"
|
||||||
|
>
|
||||||
|
<i class="fas fa-trash"></i>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
{{/each}}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
{{/each}}
|
||||||
|
|
||||||
|
</div>
|
||||||
+36
-12
@@ -10,6 +10,23 @@
|
|||||||
{{formInput fields.name value=source.name}}
|
{{formInput fields.name value=source.name}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{{! Navigation des onglets }}
|
||||||
|
<nav class="sheet-tabs tabs" data-group="primary">
|
||||||
|
<a class="item {{tabs.details.cssClass}}" data-tab="details">{{localize
|
||||||
|
"PRISMRPG.Label.details"
|
||||||
|
}}</a>
|
||||||
|
<a
|
||||||
|
class="item {{tabs.description.cssClass}}"
|
||||||
|
data-tab="description"
|
||||||
|
>{{localize "PRISMRPG.Label.description"}}</a>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
{{! Onglet Details }}
|
||||||
|
<div
|
||||||
|
class="tab {{tabs.details.cssClass}}"
|
||||||
|
data-group="primary"
|
||||||
|
data-tab="details"
|
||||||
|
>
|
||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
<div class="align-top">
|
<div class="align-top">
|
||||||
|
|
||||||
@@ -63,6 +80,24 @@
|
|||||||
toggled=true
|
toggled=true
|
||||||
}}
|
}}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{! Onglet Description }}
|
||||||
|
<div
|
||||||
|
class="tab {{tabs.description.cssClass}}"
|
||||||
|
data-group="primary"
|
||||||
|
data-tab="description"
|
||||||
|
>
|
||||||
|
<fieldset>
|
||||||
|
<legend>{{localize "PRISMRPG.Label.description"}}</legend>
|
||||||
|
{{formInput
|
||||||
|
systemFields.description
|
||||||
|
enriched=enrichedDescription
|
||||||
|
value=system.description
|
||||||
|
name="system.description"
|
||||||
|
toggled=true
|
||||||
|
}}
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
{{! Notes }}
|
{{! Notes }}
|
||||||
<fieldset>
|
<fieldset>
|
||||||
@@ -75,17 +110,6 @@
|
|||||||
toggled=true
|
toggled=true
|
||||||
}}
|
}}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
</div>
|
||||||
{{! Description }}
|
|
||||||
<fieldset>
|
|
||||||
<legend>{{localize "PRISMRPG.Label.description"}}</legend>
|
|
||||||
{{formInput
|
|
||||||
systemFields.description
|
|
||||||
enriched=enrichedDescription
|
|
||||||
value=system.description
|
|
||||||
name="system.description"
|
|
||||||
toggled=true
|
|
||||||
}}
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
@@ -10,6 +10,14 @@
|
|||||||
{{formInput fields.name value=source.name}}
|
{{formInput fields.name value=source.name}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{{! Navigation des onglets }}
|
||||||
|
<nav class="sheet-tabs tabs" data-group="primary">
|
||||||
|
<a class="item {{tabs.description.cssClass}}" data-tab="description">{{localize "PRISMRPG.Label.description"}}</a>
|
||||||
|
<a class="item {{tabs.effects.cssClass}}" data-tab="effects">{{localize "PRISMRPG.Label.effects"}}</a>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
{{! Onglet Description }}
|
||||||
|
<div class="tab {{tabs.description.cssClass}}" data-group="primary" data-tab="description">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>{{localize "PRISMRPG.Label.description"}}</legend>
|
<legend>{{localize "PRISMRPG.Label.description"}}</legend>
|
||||||
{{formInput
|
{{formInput
|
||||||
@@ -20,5 +28,11 @@
|
|||||||
toggled=true
|
toggled=true
|
||||||
}}
|
}}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{! Onglet Effects }}
|
||||||
|
<div class="tab {{tabs.effects.cssClass}}" data-group="primary" data-tab="effects">
|
||||||
|
{{> systems/fvtt-prism-rpg/templates/partial-item-effects.hbs}}
|
||||||
|
</div>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
@@ -0,0 +1,195 @@
|
|||||||
|
<div class="prismrpg-roll-dialog-modern">
|
||||||
|
{{! Header with character info }}
|
||||||
|
<div class="dialog-header">
|
||||||
|
<div class="character-info">
|
||||||
|
<div class="character-name">{{actorName}}</div>
|
||||||
|
{{#if rollTarget.weapon}}
|
||||||
|
<div class="item-name weapon">
|
||||||
|
<i class="fas fa-sword"></i>
|
||||||
|
<strong>{{rollTarget.weapon.name}}</strong>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
{{#if rollTarget.type}}
|
||||||
|
{{#if (eq rollTarget.type "spell")}}
|
||||||
|
<div class="item-name spell">
|
||||||
|
<i class="fas fa-magic"></i>
|
||||||
|
<strong>{{rollTarget.name}}</strong>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="dialog-content">
|
||||||
|
{{! Weapon Options }}
|
||||||
|
{{#if rollTarget.weapon}}
|
||||||
|
<div class="option-section weapon-section">
|
||||||
|
<div class="section-title">
|
||||||
|
<i class="fas fa-crosshairs"></i>
|
||||||
|
<span>Weapon Options</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{! Display weapon ranges }}
|
||||||
|
{{#if (or (gt rollTarget.weapon.system.shortRange 0) (gt rollTarget.weapon.system.longRange 0))}}
|
||||||
|
<div class="info-display">
|
||||||
|
<i class="fas fa-bullseye"></i>
|
||||||
|
<span class="info-text">
|
||||||
|
{{#if (gt rollTarget.weapon.system.shortRange 0)}}
|
||||||
|
Short: {{rollTarget.weapon.system.shortRange}} ft
|
||||||
|
{{/if}}
|
||||||
|
{{#if (gt rollTarget.weapon.system.longRange 0)}}
|
||||||
|
{{#if (gt rollTarget.weapon.system.shortRange 0)}} • {{/if}}
|
||||||
|
Long: {{rollTarget.weapon.system.longRange}} ft
|
||||||
|
{{/if}}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{! STR or DEX choice }}
|
||||||
|
{{#if (or (eq rollType "weapon-attack") (eq rollType "weapon-damage-small") (eq rollType "weapon-damage-medium"))}}
|
||||||
|
<div class="option-row">
|
||||||
|
<label>Attack with:</label>
|
||||||
|
<select name="attackAttribute" class="styled-select">
|
||||||
|
<option value="str" {{#if (eq rollTarget.weapon.system.weaponType "melee")}}selected{{/if}}>
|
||||||
|
<i class="fas fa-dumbbell"></i> Strength (+{{rollTarget.strMod}})
|
||||||
|
</option>
|
||||||
|
<option value="dex" {{#if (eq rollTarget.weapon.system.weaponType "ranged")}}selected{{/if}}>
|
||||||
|
<i class="fas fa-running"></i> Dexterity (+{{rollTarget.dexMod}})
|
||||||
|
</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{! Ranged weapon checkboxes }}
|
||||||
|
{{#if (eq rollTarget.weapon.system.weaponType "ranged")}}
|
||||||
|
{{#if (or (eq rollType "weapon-attack") (eq rollType "monster-attack"))}}
|
||||||
|
<div class="checkbox-group">
|
||||||
|
<label class="checkbox-label">
|
||||||
|
<input type="checkbox" name="pointBlank" data-action="selectPointBlank" />
|
||||||
|
<span class="checkbox-text">
|
||||||
|
<i class="fas fa-bullseye-arrow"></i>
|
||||||
|
Point Blank Range
|
||||||
|
</span>
|
||||||
|
</label>
|
||||||
|
<label class="checkbox-label">
|
||||||
|
<input type="checkbox" name="beyondSkill" data-action="selectBeyondSkill" />
|
||||||
|
<span class="checkbox-text">
|
||||||
|
<i class="fas fa-exclamation-triangle"></i>
|
||||||
|
Beyond Skill Range
|
||||||
|
</span>
|
||||||
|
</label>
|
||||||
|
<label class="checkbox-label">
|
||||||
|
<input type="checkbox" name="letItFly" data-action="selectLetItFly" />
|
||||||
|
<span class="checkbox-text">
|
||||||
|
<i class="fas fa-dice-d20"></i>
|
||||||
|
Let it Fly (Pure D20E)
|
||||||
|
</span>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="option-row">
|
||||||
|
<label>Aiming:</label>
|
||||||
|
<select name="attackerAim" class="styled-select">
|
||||||
|
{{selectOptions attackerAimChoices selected="simple"}}
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{! Spell Options }}
|
||||||
|
{{#if rollTarget.type}}
|
||||||
|
{{#if (eq rollTarget.type "spell")}}
|
||||||
|
<div class="option-section spell-section">
|
||||||
|
<div class="section-title">
|
||||||
|
<i class="fas fa-wand-magic"></i>
|
||||||
|
<span>Spell Options</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{! Spell info display }}
|
||||||
|
<div class="spell-info-display">
|
||||||
|
<div class="info-badge characteristic">
|
||||||
|
<i class="fas fa-brain"></i>
|
||||||
|
<span>{{rollTarget.mentalCharacteristic}} ({{rollTarget.mentalCharValue}}, +{{rollTarget.value}})</span>
|
||||||
|
</div>
|
||||||
|
<div class="info-badge mana">
|
||||||
|
<i class="fas fa-flask"></i>
|
||||||
|
<span>{{rollTarget.system.manaCost}} Mana</span>
|
||||||
|
</div>
|
||||||
|
<div class="info-badge apc">
|
||||||
|
<i class="fas fa-bolt"></i>
|
||||||
|
<span>{{rollTarget.system.apc}} APC</span>
|
||||||
|
</div>
|
||||||
|
{{#if (gt rollTarget.system.manaUpkeep 0)}}
|
||||||
|
<div class="info-badge upkeep">
|
||||||
|
<i class="fas fa-repeat"></i>
|
||||||
|
<span>{{rollTarget.system.manaUpkeep}}/round</span>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{! Upcast option }}
|
||||||
|
{{#if rollTarget.system.canAscend}}
|
||||||
|
<div class="option-row">
|
||||||
|
<label>Upcast Level:</label>
|
||||||
|
<select name="upcastLevel" class="styled-select">
|
||||||
|
<option value="0">Base Level ({{rollTarget.system.level}})</option>
|
||||||
|
<option value="1">+1 Level (+1 Mana, +1 APC)</option>
|
||||||
|
<option value="2">+2 Levels (+2 Mana, +2 APC)</option>
|
||||||
|
<option value="3">+3 Levels (+3 Mana, +3 APC)</option>
|
||||||
|
<option value="4">+4 Levels (+4 Mana, +4 APC)</option>
|
||||||
|
<option value="5">+5 Levels (+5 Mana, +5 APC)</option>
|
||||||
|
<option value="6">+6 Levels (+6 Mana, +6 APC)</option>
|
||||||
|
<option value="7">+7 Levels (+7 Mana, +7 APC)</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{! Advantage/Disadvantage }}
|
||||||
|
{{#if hasAdvantage}}
|
||||||
|
<div class="option-section">
|
||||||
|
<div class="section-title">
|
||||||
|
<i class="fas fa-balance-scale"></i>
|
||||||
|
<span>{{localize "PRISMRPG.Roll.advantageDisadvantage"}}</span>
|
||||||
|
</div>
|
||||||
|
<div class="option-row">
|
||||||
|
<select name="advantage" class="styled-select advantage-select">
|
||||||
|
{{selectOptions choiceAdvantage selected=advantage}}
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{! Modifier }}
|
||||||
|
{{#if hasModifier}}
|
||||||
|
<div class="option-section">
|
||||||
|
<div class="section-title">
|
||||||
|
<i class="fas fa-plus-minus"></i>
|
||||||
|
<span>{{localize "PRISMRPG.Roll.modifierBonusMalus"}}</span>
|
||||||
|
</div>
|
||||||
|
<div class="option-row">
|
||||||
|
<select name="modifier" class="styled-select modifier-select">
|
||||||
|
{{selectOptions choiceModifier selected=modifier}}
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{! Visibility }}
|
||||||
|
<div class="option-section">
|
||||||
|
<div class="section-title">
|
||||||
|
<i class="fas fa-eye"></i>
|
||||||
|
<span>{{localize "PRISMRPG.Roll.visibility"}}</span>
|
||||||
|
</div>
|
||||||
|
<div class="option-row">
|
||||||
|
<select name="visibility" class="styled-select">
|
||||||
|
{{selectOptions rollModes selected=visibility localize=true}}
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
+107
-78
@@ -1,82 +1,131 @@
|
|||||||
<div class="prismrpg-roll-dialog">
|
<div class="prismrpg-roll-dialog">
|
||||||
|
<fieldSet>
|
||||||
|
<legend>{{actorName}}</legend>
|
||||||
|
|
||||||
<fieldSet class="">
|
{{#if rollTarget.weapon}}
|
||||||
<legend>{{localize (concat "PRISMRPG.Label." rollType)}} - {{actorName}}</legend>
|
|
||||||
|
|
||||||
{{#if rollTarget.tokenId}}
|
|
||||||
<div class="dialog-save">
|
<div class="dialog-save">
|
||||||
<a class="goto-token-button" data-action="gotoToken" data-token-id="{{rollTarget.tokenId}}">{{localize
|
<strong>{{rollTarget.weapon.name}}</strong>
|
||||||
"PRISMRPG.Label.gotoToken"}} </a>
|
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
</fieldSet>
|
||||||
|
|
||||||
{{#if (match rollType "attack")}}
|
|
||||||
<div class="dialog-save">Attack roll ! - {{rollTarget.name}}</div>
|
|
||||||
{{/if}}
|
|
||||||
{{#if (match rollType "defense")}}
|
|
||||||
<div class="dialog-save">Defense roll ! - {{rollTarget.name}}</div>
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{#if hasModifier}}
|
|
||||||
<div class="dialog-save">{{upperFirst rollName}} : {{baseFormula}} + {{baseValue}}</div>
|
|
||||||
{{else}}
|
|
||||||
<div class="dialog-save">{{upperFirst rollName}} : {{baseFormula}}</div>
|
|
||||||
{{/if}}
|
|
||||||
{{#if rollTarget.weapon}}
|
{{#if rollTarget.weapon}}
|
||||||
<div class="dialog-save">{{localize "PRISMRPG.Label.baseModifier"}} : {{rollTarget.charModifier}}</div>
|
{{! Weapon-specific options }}
|
||||||
<div class="dialog-save">{{localize "PRISMRPG.Label.weapon"}} : {{rollTarget.weapon.name}}</div>
|
<fieldSet class="dialog-weapon-options">
|
||||||
<div class="dialog-save">{{localize "PRISMRPG.Label.skill"}} : {{rollTarget.name}}</div>
|
<legend>Weapon Options</legend>
|
||||||
<div class="dialog-save">{{localize "PRISMRPG.Label.skillBonus"}} : {{rollTarget.weaponSkillModifier}}</div>
|
|
||||||
|
{{! Display weapon ranges if set }}
|
||||||
|
{{#if (or (gt rollTarget.weapon.system.shortRange 0) (gt rollTarget.weapon.system.longRange 0))}}
|
||||||
|
<div class="dialog-save" style="font-size: 0.9em; color: #666; margin-bottom: 0.5em;">
|
||||||
|
{{#if (gt rollTarget.weapon.system.shortRange 0)}}
|
||||||
|
<span>Short Range: {{rollTarget.weapon.system.shortRange}} ft</span>
|
||||||
|
{{/if}}
|
||||||
|
{{#if (gt rollTarget.weapon.system.longRange 0)}}
|
||||||
|
{{#if (gt rollTarget.weapon.system.shortRange 0)}} • {{/if}}
|
||||||
|
<span>Long Range: {{rollTarget.weapon.system.longRange}} ft</span>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if (match rollType "attack")}}
|
{{! Choose STR or DEX for attack/damage rolls }}
|
||||||
<div class="dialog-save">Add Granted Attack Dice
|
{{#if (or (eq rollType "weapon-attack") (eq rollType "weapon-damage-small") (eq rollType "weapon-damage-medium"))}}
|
||||||
<input type="checkbox" data-action="selectGranted" name="granted">
|
<div class="dialog-save">
|
||||||
|
<label>Attack with:</label>
|
||||||
|
<select name="attackAttribute" data-tooltip-direction="UP">
|
||||||
|
<option value="str" {{#if (eq rollTarget.weapon.system.weaponType "melee")}}selected{{/if}}>Strength (+{{rollTarget.strMod}})</option>
|
||||||
|
<option value="dex" {{#if (eq rollTarget.weapon.system.weaponType "ranged")}}selected{{/if}}>Dexterity (+{{rollTarget.dexMod}})</option>
|
||||||
|
</select>
|
||||||
</div>
|
</div>
|
||||||
{{#if rollTarget.weapon}}
|
{{/if}}
|
||||||
{{#if (eq rollTarget.weapon.system.weaponType "melee")}}
|
|
||||||
{{else}}
|
{{! Ranged weapon specific options }}
|
||||||
<div class="dialog-save">Point Blank Range Attack
|
{{#if (eq rollTarget.weapon.system.weaponType "ranged")}}
|
||||||
<input type="checkbox" data-action="selectPointBlank" name="pointBlankV">
|
{{#if
|
||||||
|
(or (eq rollType "weapon-attack") (eq rollType "monster-attack"))
|
||||||
|
}}
|
||||||
|
<div class="dialog-save">
|
||||||
|
<label>
|
||||||
|
<input
|
||||||
|
type="checkbox"
|
||||||
|
name="pointBlank"
|
||||||
|
data-action="selectPointBlank"
|
||||||
|
/>
|
||||||
|
Point Blank Range Attack
|
||||||
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="dialog-save">Beyond Skill Range Attack
|
<div class="dialog-save">
|
||||||
<input type="checkbox" data-action="selectBeyondSkill" name="beyondSkillV">
|
<label>
|
||||||
|
<input
|
||||||
|
type="checkbox"
|
||||||
|
name="beyondSkill"
|
||||||
|
data-action="selectBeyondSkill"
|
||||||
|
/>
|
||||||
|
Beyond Skill Range Attack
|
||||||
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="dialog-save">Let it Fly (Pure D20E)
|
<div class="dialog-save">
|
||||||
<input type="checkbox" data-action="selectLetItFly" name="letItFlyV">
|
<label>
|
||||||
|
<input
|
||||||
|
type="checkbox"
|
||||||
|
name="letItFly"
|
||||||
|
data-action="selectLetItFly"
|
||||||
|
/>
|
||||||
|
Let it Fly (Pure D20E)
|
||||||
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="dialog-save">Aiming
|
<div class="dialog-save">
|
||||||
|
<label>Aiming:</label>
|
||||||
<select name="attackerAim" data-tooltip-direction="UP">
|
<select name="attackerAim" data-tooltip-direction="UP">
|
||||||
{{selectOptions attackerAimChoices selected=attackerAim}}
|
{{selectOptions attackerAimChoices selected="simple"}}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{/if}}
|
|
||||||
{{#if (match rollType "defense")}}
|
|
||||||
<div class="dialog-save">Add Granted Defense Dice
|
|
||||||
<input type="checkbox" data-action="selectGranted" name="granted">
|
|
||||||
</div>
|
|
||||||
{{/if}}
|
|
||||||
{{#if (match rollType "damage")}}
|
|
||||||
<div class="dialog-save">Add Granted Damage Dice
|
|
||||||
<input type="checkbox" data-action="selectGranted" name="granted">
|
|
||||||
</div>
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{#if rollTarget.staticModifier}}
|
|
||||||
<div class="dialog-save">Static modifier : +{{rollTarget.staticModifier}}</div>
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
</fieldSet>
|
</fieldSet>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{#if rollTarget.type}}
|
||||||
|
{{#if (eq rollTarget.type "spell")}}
|
||||||
|
{{! Spell-specific options }}
|
||||||
|
<fieldSet class="dialog-spell-options">
|
||||||
|
<legend>Spell Options</legend>
|
||||||
|
|
||||||
{{#if hasFavor}}
|
<div class="dialog-save" style="font-size: 0.9em; color: #666; margin-bottom: 0.5em;">
|
||||||
<fieldSet class="dialog-favor">
|
<span>Casting with: {{rollTarget.mentalCharacteristic}} ({{rollTarget.mentalCharValue}}, +{{rollTarget.value}})</span>
|
||||||
<legend>{{localize "PRISMRPG.Roll.favorDisfavor"}}</legend>
|
<br><span>Base Cost: {{rollTarget.system.manaCost}} Mana, {{rollTarget.system.apc}} APC</span>
|
||||||
<select name="favor" class="favor-choice" data-tooltip-direction="UP">
|
{{#if (gt rollTarget.system.manaUpkeep 0)}}
|
||||||
{{selectOptions choiceFavor selected=favor}}
|
<br><span>Upkeep: {{rollTarget.system.manaUpkeep}} Mana/round</span>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{#if rollTarget.system.canAscend}}
|
||||||
|
<div class="dialog-save">
|
||||||
|
<label>Upcast Level:</label>
|
||||||
|
<select name="upcastLevel" data-tooltip-direction="UP">
|
||||||
|
<option value="0">Base Level ({{rollTarget.system.level}})</option>
|
||||||
|
<option value="1">+1 Level (+1 Mana, +1 APC)</option>
|
||||||
|
<option value="2">+2 Levels (+2 Mana, +2 APC)</option>
|
||||||
|
<option value="3">+3 Levels (+3 Mana, +3 APC)</option>
|
||||||
|
<option value="4">+4 Levels (+4 Mana, +4 APC)</option>
|
||||||
|
<option value="5">+5 Levels (+5 Mana, +5 APC)</option>
|
||||||
|
<option value="6">+6 Levels (+6 Mana, +6 APC)</option>
|
||||||
|
<option value="7">+7 Levels (+7 Mana, +7 APC)</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
</fieldSet>
|
||||||
|
{{/if}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{#if hasAdvantage}}
|
||||||
|
<fieldSet class="dialog-advantage">
|
||||||
|
<legend>{{localize "PRISMRPG.Roll.advantageDisadvantage"}}</legend>
|
||||||
|
<select
|
||||||
|
name="advantage"
|
||||||
|
class="advantage-choice"
|
||||||
|
data-tooltip-direction="UP"
|
||||||
|
>
|
||||||
|
{{selectOptions choiceAdvantage selected=advantage}}
|
||||||
</select>
|
</select>
|
||||||
</fieldSet>
|
</fieldSet>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
@@ -87,24 +136,6 @@
|
|||||||
<select name="modifier" data-tooltip-direction="UP">
|
<select name="modifier" data-tooltip-direction="UP">
|
||||||
{{selectOptions choiceModifier selected=modifier}}
|
{{selectOptions choiceModifier selected=modifier}}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
{{#if (eq rollType "save")}}
|
|
||||||
{{#if rollTarget.magicUser}}
|
|
||||||
<div>
|
|
||||||
<span>Save against spell (+{{rollTarget.actorModifiers.saveModifier}}) ?</span>
|
|
||||||
<input type="checkbox" name="saveSpellCheck" data-action="saveSpellCheck">
|
|
||||||
</div>
|
|
||||||
{{/if}}
|
|
||||||
{{/if}}
|
|
||||||
</fieldSet>
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{#if hasChangeDice}}
|
|
||||||
<fieldSet class="dialog-modifier">
|
|
||||||
<legend>{{localize "PRISMRPG.Roll.changeDice"}}</legend>
|
|
||||||
<select name="changeDice" data-tooltip-direction="UP">
|
|
||||||
{{selectOptions choiceDice selected=changeDice}}
|
|
||||||
</select>
|
|
||||||
</fieldSet>
|
</fieldSet>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
@@ -114,6 +145,4 @@
|
|||||||
{{selectOptions rollModes selected=visibility localize=true}}
|
{{selectOptions rollModes selected=visibility localize=true}}
|
||||||
</select>
|
</select>
|
||||||
</fieldSet>
|
</fieldSet>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@@ -10,6 +10,26 @@
|
|||||||
{{formInput fields.name value=source.name}}
|
{{formInput fields.name value=source.name}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{{! Navigation des onglets }}
|
||||||
|
<nav class="sheet-tabs tabs" data-group="primary">
|
||||||
|
<a class="item {{tabs.details.cssClass}}" data-tab="details">{{localize
|
||||||
|
"PRISMRPG.Label.details"
|
||||||
|
}}</a>
|
||||||
|
<a
|
||||||
|
class="item {{tabs.description.cssClass}}"
|
||||||
|
data-tab="description"
|
||||||
|
>{{localize "PRISMRPG.Label.description"}}</a>
|
||||||
|
<a class="item {{tabs.effects.cssClass}}" data-tab="effects">{{localize
|
||||||
|
"PRISMRPG.Label.effects"
|
||||||
|
}}</a>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
{{! Onglet Details }}
|
||||||
|
<div
|
||||||
|
class="tab {{tabs.details.cssClass}}"
|
||||||
|
data-group="primary"
|
||||||
|
data-tab="details"
|
||||||
|
>
|
||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
<div class="align-top">
|
<div class="align-top">
|
||||||
|
|
||||||
@@ -89,7 +109,14 @@
|
|||||||
toggled=true
|
toggled=true
|
||||||
}}
|
}}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{! Onglet Description }}
|
||||||
|
<div
|
||||||
|
class="tab {{tabs.description.cssClass}}"
|
||||||
|
data-group="primary"
|
||||||
|
data-tab="description"
|
||||||
|
>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>{{localize "PRISMRPG.Label.description"}}</legend>
|
<legend>{{localize "PRISMRPG.Label.description"}}</legend>
|
||||||
{{formInput
|
{{formInput
|
||||||
@@ -100,5 +127,15 @@
|
|||||||
toggled=true
|
toggled=true
|
||||||
}}
|
}}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{! Onglet Effects }}
|
||||||
|
<div
|
||||||
|
class="tab {{tabs.effects.cssClass}}"
|
||||||
|
data-group="primary"
|
||||||
|
data-tab="effects"
|
||||||
|
>
|
||||||
|
{{> systems/fvtt-prism-rpg/templates/partial-item-effects.hbs}}
|
||||||
|
</div>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
+16
-5
@@ -11,19 +11,30 @@
|
|||||||
<p class="hint">{{localize "PRISMRPG.Hint.isCoreSkill"}}</p>
|
<p class="hint">{{localize "PRISMRPG.Hint.isCoreSkill"}}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{{!-- Primary Attribute for Skill Checks --}}
|
||||||
|
<div class="form-group">
|
||||||
|
<label>{{localize "PRISMRPG.Label.primaryAttribute"}}</label>
|
||||||
|
<select name="system.primaryAttribute">
|
||||||
|
{{#each config.CHARACTERISTICS}}
|
||||||
|
<option value="{{@key}}" {{#if (eq ../system.primaryAttribute @key)}}selected{{/if}}>
|
||||||
|
{{localize this.label}}
|
||||||
|
</option>
|
||||||
|
{{/each}}
|
||||||
|
</select>
|
||||||
|
<p class="hint">Primary attribute used for skill checks (D&D 5e style: ability modifier + proficiency)</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
{{#if system.isCoreSkill}}
|
{{#if system.isCoreSkill}}
|
||||||
{{!-- Attribute Bonus Selection --}}
|
{{!-- Attribute Bonus Selection --}}
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>{{localize "PRISMRPG.Label.attributeBonusChoice"}}</label>
|
<label>{{localize "PRISMRPG.Label.attributeBonusChoice"}}</label>
|
||||||
<select name="system.attributeBonus">
|
<select name="system.attributeBonus">
|
||||||
<option value="">{{localize "PRISMRPG.Label.selectAttribute"}}</option>
|
<option value="">{{localize "PRISMRPG.Label.selectAttribute"}}</option>
|
||||||
{{#with (lookup config.CORE_SKILLS system.coreSkill)}}
|
{{#each config.CHARACTERISTICS}}
|
||||||
{{#each attributeChoices}}
|
<option value="{{@key}}" {{#if (eq ../system.attributeBonus @key)}}selected{{/if}}>
|
||||||
<option value="{{this}}" {{#if (eq ../../system.attributeBonus this)}}selected{{/if}}>
|
{{localize this.label}}
|
||||||
{{localize (concat "PRISMRPG.Label." this)}}
|
|
||||||
</option>
|
</option>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
{{/with}}
|
|
||||||
</select>
|
</select>
|
||||||
<p class="hint">{{localize "PRISMRPG.Hint.attributeBonus"}}</p>
|
<p class="hint">{{localize "PRISMRPG.Hint.attributeBonus"}}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
+73
-36
@@ -10,6 +10,26 @@
|
|||||||
{{formInput fields.name value=source.name}}
|
{{formInput fields.name value=source.name}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{{! Navigation des onglets }}
|
||||||
|
<nav class="sheet-tabs tabs" data-group="primary">
|
||||||
|
<a class="item {{tabs.details.cssClass}}" data-tab="details">{{localize
|
||||||
|
"PRISMRPG.Label.details"
|
||||||
|
}}</a>
|
||||||
|
<a
|
||||||
|
class="item {{tabs.description.cssClass}}"
|
||||||
|
data-tab="description"
|
||||||
|
>{{localize "PRISMRPG.Label.description"}}</a>
|
||||||
|
<a class="item {{tabs.effects.cssClass}}" data-tab="effects">{{localize
|
||||||
|
"PRISMRPG.Label.effects"
|
||||||
|
}}</a>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
{{! Onglet Details }}
|
||||||
|
<div
|
||||||
|
class="tab {{tabs.details.cssClass}}"
|
||||||
|
data-group="primary"
|
||||||
|
data-tab="details"
|
||||||
|
>
|
||||||
{{! Prism RPG: Mana Cost }}
|
{{! Prism RPG: Mana Cost }}
|
||||||
{{formField
|
{{formField
|
||||||
systemFields.manaCost
|
systemFields.manaCost
|
||||||
@@ -42,42 +62,6 @@
|
|||||||
label="PRISMRPG.Label.prismColor"
|
label="PRISMRPG.Label.prismColor"
|
||||||
}}
|
}}
|
||||||
|
|
||||||
{{! Prism RPG: Color Effect }}
|
|
||||||
<fieldset class="spell-color-effect">
|
|
||||||
<legend>{{localize "PRISMRPG.Label.colorEffect"}}</legend>
|
|
||||||
{{formInput
|
|
||||||
systemFields.colorEffect
|
|
||||||
enriched=enrichedColorEffect
|
|
||||||
value=system.colorEffect
|
|
||||||
name="system.colorEffect"
|
|
||||||
toggled=true
|
|
||||||
}}
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
{{! Prism RPG: Spell Ascension }}
|
|
||||||
<fieldset class="spell-ascension">
|
|
||||||
<legend>{{localize "PRISMRPG.Label.spellAscension"}}</legend>
|
|
||||||
<div class="form-group">
|
|
||||||
<label>{{localize "PRISMRPG.Label.canAscend"}}</label>
|
|
||||||
<input
|
|
||||||
type="checkbox"
|
|
||||||
name="system.canAscend"
|
|
||||||
{{checked system.canAscend}}
|
|
||||||
/>
|
|
||||||
<p class="hint">{{localize "PRISMRPG.Hint.spellAscension"}}</p>
|
|
||||||
</div>
|
|
||||||
{{#if system.canAscend}}
|
|
||||||
<label>{{localize "PRISMRPG.Label.ascensionEffect"}}</label>
|
|
||||||
{{formInput
|
|
||||||
systemFields.ascensionEffect
|
|
||||||
enriched=enrichedAscensionEffect
|
|
||||||
value=system.ascensionEffect
|
|
||||||
name="system.ascensionEffect"
|
|
||||||
toggled=true
|
|
||||||
}}
|
|
||||||
{{/if}}
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
{{! Spell Properties }}
|
{{! Spell Properties }}
|
||||||
{{formField
|
{{formField
|
||||||
systemFields.memorized
|
systemFields.memorized
|
||||||
@@ -140,6 +124,49 @@
|
|||||||
label="PRISMRPG.Label.keywords"
|
label="PRISMRPG.Label.keywords"
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
{{! Prism RPG: Color Effect }}
|
||||||
|
<fieldset class="spell-color-effect">
|
||||||
|
<legend>{{localize "PRISMRPG.Label.colorEffect"}}</legend>
|
||||||
|
{{formInput
|
||||||
|
systemFields.colorEffect
|
||||||
|
enriched=enrichedColorEffect
|
||||||
|
value=system.colorEffect
|
||||||
|
name="system.colorEffect"
|
||||||
|
toggled=true
|
||||||
|
}}
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
|
{{! Prism RPG: Spell Ascension }}
|
||||||
|
<fieldset class="spell-ascension">
|
||||||
|
<legend>{{localize "PRISMRPG.Label.spellAscension"}}</legend>
|
||||||
|
<div class="form-group">
|
||||||
|
<label>{{localize "PRISMRPG.Label.canAscend"}}</label>
|
||||||
|
<input
|
||||||
|
type="checkbox"
|
||||||
|
name="system.canAscend"
|
||||||
|
{{checked system.canAscend}}
|
||||||
|
/>
|
||||||
|
<p class="hint">{{localize "PRISMRPG.Hint.spellAscension"}}</p>
|
||||||
|
</div>
|
||||||
|
{{#if system.canAscend}}
|
||||||
|
<label>{{localize "PRISMRPG.Label.ascensionEffect"}}</label>
|
||||||
|
{{formInput
|
||||||
|
systemFields.ascensionEffect
|
||||||
|
enriched=enrichedAscensionEffect
|
||||||
|
value=system.ascensionEffect
|
||||||
|
name="system.ascensionEffect"
|
||||||
|
toggled=true
|
||||||
|
}}
|
||||||
|
{{/if}}
|
||||||
|
</fieldset>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{! Onglet Description }}
|
||||||
|
<div
|
||||||
|
class="tab {{tabs.description.cssClass}}"
|
||||||
|
data-group="primary"
|
||||||
|
data-tab="description"
|
||||||
|
>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>{{localize "PRISMRPG.Label.description"}}</legend>
|
<legend>{{localize "PRISMRPG.Label.description"}}</legend>
|
||||||
{{formInput
|
{{formInput
|
||||||
@@ -150,5 +177,15 @@
|
|||||||
toggled=true
|
toggled=true
|
||||||
}}
|
}}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{! Onglet Effects }}
|
||||||
|
<div
|
||||||
|
class="tab {{tabs.effects.cssClass}}"
|
||||||
|
data-group="primary"
|
||||||
|
data-tab="effects"
|
||||||
|
>
|
||||||
|
{{> systems/fvtt-prism-rpg/templates/partial-item-effects.hbs}}
|
||||||
|
</div>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
@@ -0,0 +1,186 @@
|
|||||||
|
<form class="weapon-types-config">
|
||||||
|
<nav class="sheet-tabs tabs" data-group="primary">
|
||||||
|
<a class="item" data-tab="types">{{localize
|
||||||
|
"PRISMRPG.Settings.tabs.weaponTypes"
|
||||||
|
}}</a>
|
||||||
|
<a class="item" data-tab="groups">{{localize
|
||||||
|
"PRISMRPG.Settings.tabs.weaponGroups"
|
||||||
|
}}</a>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<div class="content">
|
||||||
|
{{! Weapon Types Tab }}
|
||||||
|
<div class="tab" data-group="primary" data-tab="types">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="section-header">
|
||||||
|
{{localize "PRISMRPG.Settings.weaponTypes.header"}}
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
data-action="add-weapon-type"
|
||||||
|
data-tooltip="{{localize 'PRISMRPG.Settings.addWeaponType'}}"
|
||||||
|
>
|
||||||
|
<i class="fas fa-plus"></i>
|
||||||
|
</button>
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<div class="weapon-types-list">
|
||||||
|
{{#each weaponTypes}}
|
||||||
|
<div class="weapon-type-entry" data-id="{{this.id}}">
|
||||||
|
<div class="form-fields">
|
||||||
|
<div class="form-group">
|
||||||
|
<label>{{localize "PRISMRPG.Settings.weaponType.id"}}</label>
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
name="weaponTypes.{{this.id}}.id"
|
||||||
|
value="{{this.id}}"
|
||||||
|
readonly
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label>{{localize
|
||||||
|
"PRISMRPG.Settings.weaponType.label"
|
||||||
|
}}</label>
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
name="weaponTypes.{{this.id}}.label"
|
||||||
|
value="{{this.label}}"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label>{{localize "PRISMRPG.Settings.weaponType.apc"}}</label>
|
||||||
|
<input
|
||||||
|
type="number"
|
||||||
|
name="weaponTypes.{{this.id}}.apc"
|
||||||
|
value="{{this.apc}}"
|
||||||
|
min="0"
|
||||||
|
max="10"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label>{{localize
|
||||||
|
"PRISMRPG.Settings.weaponType.hands"
|
||||||
|
}}</label>
|
||||||
|
<input
|
||||||
|
type="number"
|
||||||
|
name="weaponTypes.{{this.id}}.hands"
|
||||||
|
value="{{this.hands}}"
|
||||||
|
min="0"
|
||||||
|
max="2"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{#if this.isCustom}}
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
data-action="delete-weapon-type"
|
||||||
|
data-id="{{this.id}}"
|
||||||
|
data-tooltip="{{localize
|
||||||
|
'PRISMRPG.Settings.deleteWeaponType'
|
||||||
|
}}"
|
||||||
|
>
|
||||||
|
<i class="fas fa-trash"></i>
|
||||||
|
</button>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
{{/each}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{! Weapon Groups Tab }}
|
||||||
|
<div class="tab" data-group="primary" data-tab="groups">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="section-header">
|
||||||
|
{{localize "PRISMRPG.Settings.weaponGroups.header"}}
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
data-action="add-weapon-group"
|
||||||
|
data-tooltip="{{localize 'PRISMRPG.Settings.addWeaponGroup'}}"
|
||||||
|
>
|
||||||
|
<i class="fas fa-plus"></i>
|
||||||
|
</button>
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<div class="weapon-groups-list">
|
||||||
|
{{#each weaponGroups}}
|
||||||
|
<div class="weapon-group-entry" data-id="{{this.id}}">
|
||||||
|
<div class="form-fields">
|
||||||
|
<div class="form-group">
|
||||||
|
<label>{{localize "PRISMRPG.Settings.weaponGroup.id"}}</label>
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
name="weaponGroups.{{this.id}}.id"
|
||||||
|
value="{{this.id}}"
|
||||||
|
readonly
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label>{{localize
|
||||||
|
"PRISMRPG.Settings.weaponGroup.label"
|
||||||
|
}}</label>
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
name="weaponGroups.{{this.id}}.label"
|
||||||
|
value="{{this.label}}"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label>{{localize
|
||||||
|
"PRISMRPG.Settings.weaponGroup.passive"
|
||||||
|
}}</label>
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
name="weaponGroups.{{this.id}}.passive"
|
||||||
|
value="{{this.passive}}"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label>{{localize
|
||||||
|
"PRISMRPG.Settings.weaponGroup.passiveLabel"
|
||||||
|
}}</label>
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
name="weaponGroups.{{this.id}}.passiveLabel"
|
||||||
|
value="{{this.passiveLabel}}"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label>{{localize
|
||||||
|
"PRISMRPG.Settings.weaponGroup.passiveDescription"
|
||||||
|
}}</label>
|
||||||
|
<textarea
|
||||||
|
name="weaponGroups.{{this.id}}.passiveDescription"
|
||||||
|
rows="2"
|
||||||
|
>{{this.passiveDescription}}</textarea>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{#if this.isCustom}}
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
data-action="delete-weapon-group"
|
||||||
|
data-id="{{this.id}}"
|
||||||
|
data-tooltip="{{localize
|
||||||
|
'PRISMRPG.Settings.deleteWeaponGroup'
|
||||||
|
}}"
|
||||||
|
>
|
||||||
|
<i class="fas fa-trash"></i>
|
||||||
|
</button>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
{{/each}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<footer class="sheet-footer flexrow">
|
||||||
|
<button type="button" data-action="reset-defaults">
|
||||||
|
<i class="fas fa-undo"></i>
|
||||||
|
{{localize "PRISMRPG.Settings.resetDefaults"}}
|
||||||
|
</button>
|
||||||
|
<button type="submit">
|
||||||
|
<i class="fas fa-save"></i>
|
||||||
|
{{localize "PRISMRPG.Settings.save"}}
|
||||||
|
</button>
|
||||||
|
</footer>
|
||||||
|
</form>
|
||||||
+97
-34
@@ -10,6 +10,15 @@
|
|||||||
{{formInput fields.name value=source.name}}
|
{{formInput fields.name value=source.name}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{{! Navigation des onglets }}
|
||||||
|
<nav class="sheet-tabs tabs" data-group="primary">
|
||||||
|
<a class="item {{tabs.details.cssClass}}" data-tab="details">{{localize "PRISMRPG.Label.details"}}</a>
|
||||||
|
<a class="item {{tabs.description.cssClass}}" data-tab="description">{{localize "PRISMRPG.Label.description"}}</a>
|
||||||
|
<a class="item {{tabs.effects.cssClass}}" data-tab="effects">{{localize "PRISMRPG.Label.effects"}}</a>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
{{! Onglet Details }}
|
||||||
|
<div class="tab {{tabs.details.cssClass}}" data-group="primary" data-tab="details">
|
||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
<div class="align-top">
|
<div class="align-top">
|
||||||
|
|
||||||
@@ -52,30 +61,36 @@
|
|||||||
label="PRISMRPG.Label.equipped"
|
label="PRISMRPG.Label.equipped"
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
{{formField
|
||||||
|
systemFields.isImplement
|
||||||
|
value=system.isImplement
|
||||||
|
localize=true
|
||||||
|
label="PRISMRPG.Label.isImplement"
|
||||||
|
}}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="align-top">
|
<div class="align-top">
|
||||||
|
|
||||||
{{! Prism RPG: Projectile Properties }}
|
|
||||||
{{#if system.isProjectile}}
|
|
||||||
{{formField
|
{{formField
|
||||||
systemFields.isProjectile
|
systemFields.shortRange
|
||||||
value=system.isProjectile
|
value=system.shortRange
|
||||||
localize=true
|
localize=true
|
||||||
label="PRISMRPG.Label.isProjectile"
|
label="PRISMRPG.Label.shortRange"
|
||||||
}}
|
}}
|
||||||
|
|
||||||
{{formField
|
{{formField
|
||||||
systemFields.range
|
systemFields.longRange
|
||||||
value=system.range
|
value=system.longRange
|
||||||
localize=true
|
localize=true
|
||||||
label="PRISMRPG.Label.range"
|
label="PRISMRPG.Label.longRange"
|
||||||
}}
|
}}
|
||||||
|
|
||||||
{{formField
|
{{formField
|
||||||
systemFields.reloadAPC
|
systemFields.reloadAPC
|
||||||
value=system.reloadAPC
|
value=system.reloadAPC
|
||||||
localize=true
|
localize=true
|
||||||
label="PRISMRPG.Label.reloadAPC"
|
label="PRISMRPG.Label.reloadAPC"
|
||||||
}}
|
}}
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{formField
|
{{formField
|
||||||
systemFields.encLoad
|
systemFields.encLoad
|
||||||
@@ -94,44 +109,85 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{! Prism RPG: Weapon Passive }}
|
{{! Prism RPG: Weapon Passives }}
|
||||||
<fieldset class="weapon-passive">
|
<fieldset class="weapon-passives">
|
||||||
<legend>{{localize "PRISMRPG.Label.weaponPassive"}}</legend>
|
<legend>
|
||||||
{{formField
|
{{localize "PRISMRPG.Label.weaponPassives"}}
|
||||||
systemFields.passive
|
<button type="button" data-action="add-passive" data-tooltip="{{localize 'PRISMRPG.Label.addPassive'}}">
|
||||||
value=system.passive
|
<i class="fas fa-plus"></i>
|
||||||
localize=true
|
</button>
|
||||||
label="PRISMRPG.Label.passiveName"
|
</legend>
|
||||||
|
|
||||||
|
{{#each enrichedPassives}}
|
||||||
|
<div class="passive-item" data-passive-index="{{@index}}">
|
||||||
|
<div class="passive-header">
|
||||||
|
{{formInput
|
||||||
|
../systemFields.passives.element.fields.name
|
||||||
|
value=this.name
|
||||||
|
name=(concat "system.passives." @index ".name")
|
||||||
|
placeholder=(localize "PRISMRPG.Label.passiveName")
|
||||||
}}
|
}}
|
||||||
|
<button type="button" data-action="delete-passive" data-tooltip="{{localize 'PRISMRPG.Label.deletePassive'}}">
|
||||||
|
<i class="fas fa-trash"></i>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
<label>{{localize "PRISMRPG.Label.passiveDescription"}}</label>
|
<label>{{localize "PRISMRPG.Label.passiveDescription"}}</label>
|
||||||
{{formInput
|
{{formInput
|
||||||
systemFields.passiveDescription
|
../systemFields.passives.element.fields.description
|
||||||
enriched=enrichedPassiveDescription
|
enriched=this.enrichedDescription
|
||||||
value=system.passiveDescription
|
value=this.description
|
||||||
name="system.passiveDescription"
|
name=(concat "system.passives." @index ".description")
|
||||||
toggled=true
|
toggled=true
|
||||||
}}
|
}}
|
||||||
|
</div>
|
||||||
|
{{/each}}
|
||||||
|
|
||||||
|
{{#unless enrichedPassives.length}}
|
||||||
|
<p class="hint">{{localize "PRISMRPG.Hint.noPassives"}}</p>
|
||||||
|
{{/unless}}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
{{! Prism RPG: Weapon Maneuver }}
|
{{! Prism RPG: Weapon Maneuvers }}
|
||||||
<fieldset class="weapon-maneuver">
|
<fieldset class="weapon-maneuvers">
|
||||||
<legend>{{localize "PRISMRPG.Label.weaponManeuver"}}</legend>
|
<legend>
|
||||||
{{formField
|
{{localize "PRISMRPG.Label.weaponManeuvers"}}
|
||||||
systemFields.maneuver
|
<button type="button" data-action="add-maneuver" data-tooltip="{{localize 'PRISMRPG.Label.addManeuver'}}">
|
||||||
value=system.maneuver
|
<i class="fas fa-plus"></i>
|
||||||
localize=true
|
</button>
|
||||||
label="PRISMRPG.Label.maneuverName"
|
</legend>
|
||||||
|
|
||||||
|
{{#each enrichedManeuvers}}
|
||||||
|
<div class="maneuver-item" data-maneuver-index="{{@index}}">
|
||||||
|
<div class="maneuver-header">
|
||||||
|
{{formInput
|
||||||
|
../systemFields.maneuvers.element.fields.name
|
||||||
|
value=this.name
|
||||||
|
name=(concat "system.maneuvers." @index ".name")
|
||||||
|
placeholder=(localize "PRISMRPG.Label.maneuverName")
|
||||||
}}
|
}}
|
||||||
|
<button type="button" data-action="delete-maneuver" data-tooltip="{{localize 'PRISMRPG.Label.deleteManeuver'}}">
|
||||||
|
<i class="fas fa-trash"></i>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
<label>{{localize "PRISMRPG.Label.maneuverDescription"}}</label>
|
<label>{{localize "PRISMRPG.Label.maneuverDescription"}}</label>
|
||||||
{{formInput
|
{{formInput
|
||||||
systemFields.maneuverDescription
|
../systemFields.maneuvers.element.fields.description
|
||||||
enriched=enrichedManeuverDescription
|
enriched=this.enrichedDescription
|
||||||
value=system.maneuverDescription
|
value=this.description
|
||||||
name="system.maneuverDescription"
|
name=(concat "system.maneuvers." @index ".description")
|
||||||
toggled=true
|
toggled=true
|
||||||
}}
|
}}
|
||||||
</fieldset>
|
</div>
|
||||||
|
{{/each}}
|
||||||
|
|
||||||
|
{{#unless enrichedManeuvers.length}}
|
||||||
|
<p class="hint">{{localize "PRISMRPG.Hint.noManeuvers"}}</p>
|
||||||
|
{{/unless}}
|
||||||
|
</fieldset>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{! Onglet Description }}
|
||||||
|
<div class="tab {{tabs.description.cssClass}}" data-group="primary" data-tab="description">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>{{localize "PRISMRPG.Label.description"}}</legend>
|
<legend>{{localize "PRISMRPG.Label.description"}}</legend>
|
||||||
{{formInput
|
{{formInput
|
||||||
@@ -142,4 +198,11 @@
|
|||||||
toggled=true
|
toggled=true
|
||||||
}}
|
}}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{! Onglet Effects }}
|
||||||
|
<div class="tab {{tabs.effects.cssClass}}" data-group="primary" data-tab="effects">
|
||||||
|
{{> systems/fvtt-prism-rpg/templates/partial-item-effects.hbs}}
|
||||||
|
</div>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
Reference in New Issue
Block a user