more localization work - mostly item sheets

This commit is contained in:
The Last Scrub
2020-10-03 18:07:39 -07:00
parent faeb3b1f16
commit d6704191d0
12 changed files with 182 additions and 103 deletions
+1
View File
@@ -6,6 +6,7 @@
* Fix - Damage on medium pistol in compendium was wrong, also fixed some base range values that were off.
* Enhancement - Adding support for localization. Focusing on main character sheet for now.
* Workaround - The (current alpha) 7.2 Foundry release seems to have a bug where rolls without a leading number ('d100') do not work, so updated all skill checks to roll '1d100' instead to avoid the issue.
* Enhancement - Added support for Dice So Nice module, since moving to custom chat message broke out of the box compatibility with it.
### Version 0.9.3
We will never speak of 0.9.1 or 0.9.2 ever again.
+1 -1
View File
@@ -1,5 +1,5 @@
# (Unofficial) Delta Green: The RPG Foundry System
This is a fan made Foundry VTT system for Delta Green: The RPG, based on the Agent's Handbook from Arc Dream Publishing. It is unaffiliated with the Delta Green Partnershipt or Arc Dream Publishing (although they did give permission to make the system). Please consider supporting the publisher by buying a copy of the official rules book which can be done here:
This is a fan made Foundry VTT system for Delta Green: The RPG, based on the _Agent's Handbook_ rule set from Arc Dream Publishing (_**not** the Call of Cthulu rules_). It is unaffiliated with the Delta Green Partnershipt or Arc Dream Publishing (although they did give permission to make the system). Please consider supporting the publisher by buying a copy of the official rule book which can be done here:
https://www.drivethrurpg.com/product/181674/Delta-Green-Agents-Handbook
+53 -1
View File
@@ -74,6 +74,11 @@
"DG.Navigation.CV": "C.V.",
"DG.Navigation.Contacts": "Contacts",
"DG.About.OnlineHelp": "Online System Documentation",
"DG.About.OnlineHelpTooltip": "Launch browser with online GitHub help.",
"DG.About.OnlineBugTracker": "Questions, Bug Reports or Feature Requests",
"DG.About.OnlineBugTrackerTooltip": "Launch browser with GitHub issue tracker.",
"DG.Roll.Rolling": "Rolling",
"DG.Roll.Target": "Target: ",
"DG.Roll.Success": "Success",
@@ -147,5 +152,52 @@
"DG.Tooltip.SkillFailCheckbox": "After failing a test on this skill (if proficiency is at least 1%), check this box. At the end of the session, add 1D4-1 percentage points to the skill and uncheck the box. Does not apply to the Unnatural skill. See page 29 of the Agent's Handbook.",
"DG.Tooltip.DistinguishingFeature": "Distinguishing Feature (fill out if score is 12 or higher, or 8 or lower).",
"DG.Tooltip.x5AttributeLabel": "Click to roll a x5 check.",
"DG.Tooltip.FirstAidAttempted": "Once an agent receives first aid, they cannot benefit from it again until they are damaged again."
"DG.Tooltip.FirstAidAttempted": "Once an agent receives first aid, they cannot benefit from it again until they are damaged again.",
"DG.Tooltip.AdaptedToViolence": "Being adapted to violence means your Agent’s empathy suffers as they come to view violence as nothing but another tool to be wielded. He or she permanently loses 1D6 CHA and the same amount from each of their Bonds.",
"DG.Tooltip.AdaptedToHelplessness": "Being adapted to helplessness means your Agent’s personal drive suffers as they pull back from the world around them. As soon as your Agent becomes adapted to helplessness, he or she permanently loses 1D6 POW.",
"DG.Gear.Expense.Incidental": "Incidental",
"DG.Gear.Expense.Standard": "Standard",
"DG.Gear.Expense.Unusual": "Unusual",
"DG.Gear.Expense.Major": "Major",
"DG.Gear.Expense.Extreme": "Extreme",
"DG.ItemWindow.Bonds.Description": "Description/Developments",
"DG.ItemWindow.Bonds.ScoreTooltip": "A higher score represents a stronger relationship between the agent and the bond.",
"DG.ItemWindow.Motivations.Attributes": "Attributes",
"DG.ItemWindow.Motivations.Motivation": "Motivation",
"DG.ItemWindow.Motivations.Description": "Description/Notes",
"DG.ItemWindow.Motivations.Disorder": "Disorder",
"DG.ItemWindow.Motivations.IsDisorder": "Is Disorder",
"DG.ItemWindow.Motivations.MotivationNameTooltip": "Something that drives the character.",
"DG.ItemWindow.Motivations.DisorderNameTooltip": "A disorder replaces a motivation after hitting a break point.",
"DG.ItemWindow.Motivations.IsDisorderTooltip": "Check this if adding a disorder, or if an existing motivation has been lost due to gaining a disorder.",
"DG.ItemWindow.Motivations.DisorderHasBeenCured": "Disorder Has Been \"Cured\"",
"DG.ItemWindow.Motivations.DisorderHasBeenCuredTooltip": "A critical success on a therapy luck roll can cure a disorder. It may return the next time a breaking point is hit however.",
"DG.ItemWindow.Gear.Attributes": "Attributes",
"DG.ItemWindow.Gear.Description": "Description",
"DG.ItemWindow.Gear.NamePlaceholder": "Name",
"DG.ItemWindow.Gear.Expense": "Expense",
"DG.ItemWindow.Gear.Equipped": "Equipped",
"DG.ItemWindow.Armor.Description": "Description",
"DG.ItemWindow.Armor.NamePlaceholder": "Name",
"DG.ItemWindow.Armor.ArmorRating": "Armor Rating",
"DG.ItemWindow.Armor.Expense": "Expense",
"DG.ItemWindow.Armor.Equipped": "Equipped",
"DG.ItemWindow.Weapons.Description": "Description",
"DG.ItemWindow.Weapons.NamePlaceholder": "Name",
"DG.ItemWindow.Weapons.Skill": "Skill",
"DG.ItemWindow.Weapons.Expense": "Expense",
"DG.ItemWindow.Weapons.Damage": "Damage",
"DG.ItemWindow.Weapons.Lethality": "Lethality",
"DG.ItemWindow.Weapons.LethalityTooltip": "A lethal weapon has a chance to instantly kill a target. Roll a D100 instead of damage die. If it is not lethal, damage is dealt instead as if the result was a 2d10 roll, with a '00' on the first d10 equaling a 10.",
"DG.ItemWindow.Weapons.IsLethalityTooltip": "Check this if the weapon has a lethality % associated with it.",
"DG.ItemWindow.Weapons.ArmorPiercing": "Armor Piercing",
"DG.ItemWindow.Weapons.Ammo": "Ammo (Amount/Type)",
"DG.ItemWindow.Weapons.Range": "Range",
"DG.ItemWindow.Weapons.KillRadius": "Kill Radius"
}
+55 -3
View File
@@ -15,7 +15,7 @@
"DG.Skills.bureaucracy": "官僚",
"DG.Skills.computer_science": "コンピュータサイエンス",
"DG.Skills.criminology": "犯罪学",
"DG.Skills.demolitions": "解体",
"DG.Skills.demolitions": "取り壊し",
"DG.Skills.disguise": "変装",
"DG.Skills.dodge": "ダッジ",
"DG.Skills.drive": "運転",
@@ -74,6 +74,11 @@
"DG.Navigation.CV": "履歴書",
"DG.Navigation.Contacts": "絆",
"DG.About.OnlineHelp": "オンラインのドキュメンテーション",
"DG.About.OnlineHelpTooltip": "ブラウザにオンラインのGitHubのドキュメンテーションを開く。",
"DG.About.OnlineBugTracker": "質問、バッグを報告、とフィーチャの申請",
"DG.About.OnlineBugTrackerTooltip": "ブラウザにオンラインのGitHubの問題トラッカーを開く。",
"DG.Roll.Rolling": "ローリング",
"DG.Roll.Target": "リミット",
"DG.Roll.Success": "成功",
@@ -105,7 +110,7 @@
"DG.Gear.Armor": "武具",
"DG.Gear.OtherGear": "他の装備",
"DG.Gear.Name": "名前",
"DG.Gear.DamageOrLethality": "ダメージ・致命率",
"DG.Gear.DamageOrLethality": "ダメージ/致命率",
"DG.Gear.ArmorPiercing": "アーマーピアス",
"DG.Gear.ArmorRating": "アーマースコア",
"DG.Gear.Equipped": "装備中",
@@ -147,5 +152,52 @@
"DG.Tooltip.SkillFailCheckbox": "スキルを試して、失敗する場合、そのスキルが1以上このボックスをチェックします。",
"DG.Tooltip.DistinguishingFeature": "特徴の説明 (スコアは13以上それとも8以下のみ、このフィールドに説明を書きます)。",
"DG.Tooltip.x5AttributeLabel": "アトリビュートx5のテストをします",
"DG.Tooltip.FirstAidAttempted": "応急処置を受けたエージェントはまたダメージを受けるまでには応急処置は効きません。"
"DG.Tooltip.FirstAidAttempted": "応急処置を受けたエージェントはまたダメージを受けるまでには応急処置は効きません。",
"DG.Tooltip.AdaptedToViolence": "暴力を道具としかみえない、暴力を見たり、使ったりするのをなんとも思えなくなって、もう精神ダメージは受けないが、永遠に1D6魅力とそれぞれの絆のスコアを失ってしまう。",
"DG.Tooltip.AdaptedToHelplessness": "すべてが無意味と理解し、もう無力の精神ダメージはうけないが、執行するドライブが下がって、永遠に1D6判断力を失ってしまう。",
"DG.Gear.Expense.Incidental": "付帯費用",
"DG.Gear.Expense.Standard": "普通",
"DG.Gear.Expense.Unusual": "普通でない",
"DG.Gear.Expense.Major": "メジャー",
"DG.Gear.Expense.Extreme": "極端",
"DG.ItemWindow.Bonds.Description": "説明と発展",
"DG.ItemWindow.Bonds.ScoreTooltip": "高いスコアはもっと親しい関係を意味する。",
"DG.ItemWindow.Motivations.Attributes": "属性",
"DG.ItemWindow.Motivations.Motivation": "モチベーション",
"DG.ItemWindow.Motivations.Description": "説明とノート",
"DG.ItemWindow.Motivations.Disorder": "精神病",
"DG.ItemWindow.Motivations.IsDisorder": "精神の病である",
"DG.ItemWindow.Motivations.MotivationNameTooltip": "刺激するもの",
"DG.ItemWindow.Motivations.DisorderNameTooltip": "ブレーキポイントに辿り着くと精神の病が発生する。",
"DG.ItemWindow.Motivations.IsDisorderTooltip": "精神の病である場合このボックスをチェックする",
"DG.ItemWindow.Motivations.DisorderHasBeenCured": "病が\"治された\"",
"DG.ItemWindow.Motivations.DisorderHasBeenCuredTooltip": "治療を受ける時、クリックの成功の場合精神の病が治されるが、次のブレーキポイントに着く時戻る可能性がある。",
"DG.ItemWindow.Gear.Attributes": "属性",
"DG.ItemWindow.Gear.Description": "説明",
"DG.ItemWindow.Gear.NamePlaceholder": "名前",
"DG.ItemWindow.Gear.Expense": "費用",
"DG.ItemWindow.Gear.Equipped": "武装中",
"DG.ItemWindow.Armor.Description": "説明",
"DG.ItemWindow.Armor.NamePlaceholder": "名前",
"DG.ItemWindow.Armor.ArmorRating": "アーマーレーティング",
"DG.ItemWindow.Armor.Expense": "費用",
"DG.ItemWindow.Armor.Equipped": "武装中",
"DG.ItemWindow.Weapons.Description": "説明",
"DG.ItemWindow.Weapons.NamePlaceholder": "名前",
"DG.ItemWindow.Weapons.Skill": "技術",
"DG.ItemWindow.Weapons.Expense": "費用",
"DG.ItemWindow.Weapons.Damage": "ダメージ",
"DG.ItemWindow.Weapons.Lethality": "致命率",
"DG.ItemWindow.Weapons.LethalityTooltip": "",
"DG.ItemWindow.Weapons.IsLethalityTooltip": "致命率のある武器なら、このボックスをチェックする",
"DG.ItemWindow.Weapons.ArmorPiercing": "武具貫通",
"DG.ItemWindow.Weapons.Ammo": "弾 (量/種類/など)",
"DG.ItemWindow.Weapons.Range": "距離",
"DG.ItemWindow.Weapons.KillRadius": "致命の半径"
}
+15 -4
View File
@@ -167,7 +167,7 @@
<input class="labeled-resource-checkbox" type="checkbox" name="data.sanity.adaptations.violence.incident3" {{checked data.sanity.adaptations.violence.incident3}} data-dtype="Boolean" />
<label class="adapted-label"
title="Being adapted to violence means your Agent’s empathy suffers as they come to view violence as nothing but another tool to be wielded. He or she permanently loses 1D6 CHA and the same amount from each of their Bonds."
title="{{localize 'DG.Tooltip.AdaptedToViolence'}}"
>
{{#if data.sanity.adaptations.violence.isAdapted}}
{{localize 'DG.Mental.AdaptedToViolence'}}
@@ -180,7 +180,7 @@
<input class="labeled-resource-checkbox" type="checkbox" name="data.sanity.adaptations.helplessness.incident3" {{checked data.sanity.adaptations.helplessness.incident3}} data-dtype="Boolean" />
<label class="adapted-label"
title="Being adapted to helplessness means your Agent’s personal drive suffers as they pull back from the world around them. As soon as your Agent becomes adapted to helplessness, he or she permanently loses 1D6 POW."
title="{{localize 'DG.Tooltip.AdaptedToHelplessness'}}"
>
{{#if data.sanity.adaptations.helplessness.isAdapted}}
{{localize 'DG.Mental.AdaptedToHelplessness'}}
@@ -434,11 +434,22 @@
<div class="tab items" data-group="primary" data-tab="about">
<div class="flex horizontal-flex-column">
<div>
<a class="fas fa-question-circle" title="Launch browser with help." href="https://github.com/TheLastScrub/delta-green-foundry-vtt-system-unofficial/blob/master/documentation/home.md" >Online System Documentation</a>
<a class="fas fa-question-circle"
title="{{localize 'DG.About.OnlineHelpTooltip'}}"
href="https://github.com/TheLastScrub/delta-green-foundry-vtt-system-unofficial/blob/master/documentation/home.md">
{{localize 'DG.About.OnlineHelp'}}
</a>
</div>
<div>
<a class="fas fa-bug"
title="{{localize 'DG.About.OnlineBugTrackerTooltip'}}"
href="https://github.com/TheLastScrub/delta-green-foundry-vtt-system-unofficial/issues">
{{localize 'DG.About.OnlineBugTracker'}}
</a>
</div>
<br>
<div>
<span>This is an unofficial fan work, it is not affiliated with or endorsed by Shaney Ivey or Arc Dream Publishing.</span>
<span style="font-weight: bold;">This is an <span style="font-style: italic">unofficial</span> fan work, it is not affiliated with or endorsed by Shaney Ivey or Arc Dream Publishing.</span>
</div>
<br>
<div>
+10 -10
View File
@@ -2,24 +2,24 @@
<header class="sheet-header">
<img class="profile-img" src="{{item.img}}" data-edit="img" title="{{item.name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{item.name}}" placeholder="Name"/></h1>
<h1 class="charname"><input name="name" type="text" value="{{item.name}}" placeholder="{{localize 'DG.ItemWindow.Armor.NamePlaceholder'}}"/></h1>
<div class="grid grid-2col">
<div class="resource">
<label class="resource-label">Armor Rating</label>
<label class="resource-label">{{localize 'DG.ItemWindow.Armor.ArmorRating'}}</label>
<input type="text" name="data.protection" value="{{data.protection}}" data-dtype="Number"/>
</div>
<div class="resource">
<label class="resource-label">Expense</label>
<label class="resource-label">{{localize 'DG.ItemWindow.Armor.Expense'}}</label>
<select name="data.expense" >
<option {{#if_eq data.expense 'Incidental'}}selected{{/if_eq}} value="Incidental">Incidental</option>
<option {{#if_eq data.expense 'Standard'}}selected{{/if_eq}} value="Standard">Standard</option>
<option {{#if_eq data.expense 'Unusual'}}selected{{/if_eq}} value="Unusual">Unusual</option>
<option {{#if_eq data.expense 'Major'}}selected{{/if_eq}} value="Major">Major</option>
<option {{#if_eq data.expense 'Extreme'}}selected{{/if_eq}} value="Extreme">Extreme</option>
<option {{#if_eq data.expense 'Incidental'}}selected{{/if_eq}} value="Incidental">{{localize 'DG.Gear.Expense.Incidental'}}</option>
<option {{#if_eq data.expense 'Standard'}}selected{{/if_eq}} value="Standard">{{localize 'DG.Gear.Expense.Standard'}}</option>
<option {{#if_eq data.expense 'Unusual'}}selected{{/if_eq}} value="Unusual">{{localize 'DG.Gear.Expense.Unusual'}}</option>
<option {{#if_eq data.expense 'Major'}}selected{{/if_eq}} value="Major">{{localize 'DG.Gear.Expense.Major'}}</option>
<option {{#if_eq data.expense 'Extreme'}}selected{{/if_eq}} value="Extreme">{{localize 'DG.Gear.Expense.Extreme'}}</option>
</select>
</div>
<div class="resource">
<label class="resource-label">Equipped</label>
<label class="resource-label">{{localize 'DG.ItemWindow.Armor.Equipped'}}</label>
<input class="labeled-resource-checkbox" type="checkbox" name="data.equipped" {{checked data.equipped}} data-dtype="Boolean" />
</div>
</div>
@@ -28,7 +28,7 @@
{{!-- Sheet Tab Navigation --}}
<nav class="sheet-tabs tabs" data-group="primary">
<a class="item" data-tab="description">Description</a>
<a class="item" data-tab="description">{{localize 'DG.ItemWindow.Armor.Description'}}</a>
</nav>
{{!-- Sheet Body --}}
+2 -2
View File
@@ -9,7 +9,7 @@
<div class="resource">
<label class="resource-label">Score</label>
<input type="text" name="data.score" value="{{data.score}}" data-dtype="Number"
title="A higher score represents a stronger relationship between the agent and the bond."
title="{{localize 'DG.ItemWindow.Bonds.ScoreTooltip'}}"
/>
</div>
</div>
@@ -18,7 +18,7 @@
{{!-- Sheet Tab Navigation --}}
<nav class="sheet-tabs tabs" data-group="primary">
<a class="item" data-tab="description">Description/Developments</a>
<a class="item" data-tab="description">{{localize 'DG.ItemWindow.Bonds.Description'}}</a>
</nav>
{{!-- Sheet Body --}}
+10 -10
View File
@@ -2,14 +2,14 @@
<header class="sheet-header">
<img class="profile-img" src="{{item.img}}" data-edit="img" title="{{item.name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{item.name}}" placeholder="Name"/></h1>
<h1 class="charname"><input name="name" type="text" value="{{item.name}}" placeholder="{{localize 'DG.ItemWindow.Gear.NamePlaceholder'}}"/></h1>
</div>
</header>
{{!-- Sheet Tab Navigation --}}
<nav class="sheet-tabs tabs" data-group="primary">
<a class="item" data-tab="description">Description</a>
<a class="item" data-tab="attributes">Attributes</a>
<a class="item" data-tab="description">{{localize 'DG.ItemWindow.Gear.Description'}}</a>
<a class="item" data-tab="attributes">{{localize 'DG.ItemWindow.Gear.Attributes'}}</a>
</nav>
{{!-- Sheet Body --}}
@@ -23,17 +23,17 @@
{{!-- Attributes Tab --}}
<div class="tab attributes" data-group="primary" data-tab="attributes">
<div class="resource">
<label class="resource-label">Expense</label>
<label class="resource-label">{{localize 'DG.ItemWindow.Gear.Expense'}}</label>
<select name="data.expense" >
<option {{#if_eq data.expense 'Incidental'}}selected{{/if_eq}} value="Incidental">Incidental</option>
<option {{#if_eq data.expense 'Standard'}}selected{{/if_eq}} value="Standard">Standard</option>
<option {{#if_eq data.expense 'Unusual'}}selected{{/if_eq}} value="Unusual">Unusual</option>
<option {{#if_eq data.expense 'Major'}}selected{{/if_eq}} value="Major">Major</option>
<option {{#if_eq data.expense 'Extreme'}}selected{{/if_eq}} value="Extreme">Extreme</option>
<option {{#if_eq data.expense 'Incidental'}}selected{{/if_eq}} value="Incidental">{{localize 'DG.Gear.Expense.Incidental'}}</option>
<option {{#if_eq data.expense 'Standard'}}selected{{/if_eq}} value="Standard">{{localize 'DG.Gear.Expense.Standard'}}</option>
<option {{#if_eq data.expense 'Unusual'}}selected{{/if_eq}} value="Unusual">{{localize 'DG.Gear.Expense.Unusual'}}</option>
<option {{#if_eq data.expense 'Major'}}selected{{/if_eq}} value="Major">{{localize 'DG.Gear.Expense.Major'}}</option>
<option {{#if_eq data.expense 'Extreme'}}selected{{/if_eq}} value="Extreme">{{localize 'DG.Gear.Expense.Extreme'}}</option>
</select>
</div>
<div class="resource">
<label class="resource-label">Equipped</label>
<label class="resource-label">{{localize 'DG.ItemWindow.Gear.Equipped'}}</label>
<input class="labeled-resource-checkbox" type="checkbox" name="data.equipped" {{checked data.equipped}} data-dtype="Boolean" />
</div>
</div>
+10 -10
View File
@@ -2,8 +2,8 @@
{{!-- Sheet Tab Navigation --}}
<nav class="sheet-tabs tabs" data-group="primary">
<a class="item item-toggle" data-tab="attributes">Attributes</a>
<a class="item" data-tab="description">Description/Notes</a>
<a class="item item-toggle" data-tab="attributes">{{localize 'DG.ItemWindow.Motivations.Attributes'}}</a>
<a class="item" data-tab="description">{{localize 'DG.ItemWindow.Motivations.Description'}}</a>
</nav>
{{!-- Sheet Body --}}
@@ -12,17 +12,17 @@
<div class="tab attributes" data-group="primary" data-tab="attributes">
<div class="motivation-section">
<label class="resource-label">Is Disorder: </label>
<label class="resource-label">{{localize 'DG.ItemWindow.Motivations.IsDisorder'}}: </label>
<input class="labeled-resource-checkbox" type="checkbox" name="data.crossedOut" {{checked data.crossedOut}} data-dtype="Boolean"
title="Check this if adding a disorder, or if an existing motivation has been lost due to gaining a disorder."
title="{{localize 'DG.ItemWindow.Motivations.IsDisorderTooltip'}}"
/>
</div>
<div class="resource">
<label class="resource-label">Motivation</label>
<label class="resource-label">{{localize 'DG.ItemWindow.Motivations.Motivation'}}</label>
<input type="text" name="name" value="{{item.name}}" placeholder="" data-dtype="String"
title="Something that drives the character."
title="{{localize 'DG.ItemWindow.Motivations.MotivationNameTooltip'}}"
{{!-- If a motivation has been crossed off after a breaking point, do a strikeout on it and disable it. --}}
{{#if data.crossedOut}}
@@ -36,16 +36,16 @@
{{#if data.crossedOut}}
<div class="resource">
<label class="resource-label">Disorder</label>
<label class="resource-label">{{localize 'DG.ItemWindow.Motivations.Disorder'}}</label>
<input type="text" name="data.disorder" value="{{data.disorder}}" data-dtype="String"
title="A disorder replaces a motivation after hitting a break point."
title="{{localize 'DG.ItemWindow.Motivations.DisorderNameTooltip'}}"
/>
</div>
<div class="motivation-section">
<label class="resource-label">Disorder Has Been "Cured": </label>
<label class="resource-label">{{localize 'DG.ItemWindow.Motivations.DisorderHasBeenCured'}}: </label>
<input class="" type="checkbox" name="data.disorderCured" {{checked data.disorderCured}} data-dtype="Boolean"
title="A critical success on a therapy luck roll can cure a disorder. It may return the next time a breaking point is hit however."
title="{{localize 'DG.ItemWindow.Motivations.DisorderHasBeenCuredTooltip'}}"
/>
</div>
+1
View File
@@ -1,3 +1,4 @@
{{!-- I don't actually use this file, but leaving it around for now --}}
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="profile-img" src="{{item.img}}" data-edit="img" title="{{item.name}}"/>
-38
View File
@@ -1,38 +0,0 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="profile-img" src="{{item.img}}" data-edit="img" title="{{item.name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{item.name}}" placeholder="Name"/></h1>
<div class="grid grid-2col">
<div class="resource">
<label class="resource-label">Quantity</label>
<input type="text" name="data.quantity" value="{{data.quantity}}" data-dtype="Number"/>
</div>
</div>
</div>
</header>
{{!-- Sheet Tab Navigation --}}
<nav class="sheet-tabs tabs" data-group="primary">
<a class="item" data-tab="description">Description</a>
<a class="item" data-tab="attributes">Attributes</a>
</nav>
{{!-- Sheet Body --}}
<section class="sheet-body">
{{!-- Description Tab --}}
<div class="tab" data-group="primary" data-tab="description">
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
</div>
{{!-- Attributes Tab --}}
<div class="tab attributes" data-group="primary" data-tab="attributes">
<div class="resource">
<label class="resource-label">Group</label>
<input type="text" name="data.group" value="{{data.group}}" data-dtype="String"/>
</div>
</div>
</section>
</form>
+24 -24
View File
@@ -2,34 +2,34 @@
<header class="sheet-header">
<img class="profile-img" src="{{item.img}}" data-edit="img" title="{{item.name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{item.name}}" placeholder="Name"/></h1>
<h1 class="charname"><input name="name" type="text" value="{{item.name}}" placeholder="{{localize 'DG.ItemWindow.Weapons.NamePlaceholder'}}"/></h1>
<div class="weapon-grid-2col">
<div class="resource">
<label class="resource-label">Skill</label>
<label class="resource-label">{{localize 'DG.ItemWindow.Weapons.Skill'}}</label>
<select name="data.skill" >
<option {{#if_eq data.skill 'firearms'}}selected{{/if_eq}} value="firearms">Firearms</option>
<option {{#if_eq data.skill 'melee_weapons'}}selected{{/if_eq}} value="melee_weapons">Melee Weapons</option>
<option {{#if_eq data.skill 'unarmed_combat'}}selected{{/if_eq}} value="unarmed_combat">Unarmed Combat</option>
<option {{#if_eq data.skill 'heavy_weapons'}}selected{{/if_eq}} value="heavy_weapons">Heavy Weapons</option>
<option {{#if_eq data.skill 'athletics'}}selected{{/if_eq}} value="athletics">Athletics</option>
<option {{#if_eq data.skill 'demolitions'}}selected{{/if_eq}} value="demolitions">Demolitions</option>
<option {{#if_eq data.skill 'artillery'}}selected{{/if_eq}} value="artillery">Artillery</option>
<option {{#if_eq data.skill 'firearms'}}selected{{/if_eq}} value="firearms">{{localize 'DG.Skills.firearms'}}</option>
<option {{#if_eq data.skill 'melee_weapons'}}selected{{/if_eq}} value="melee_weapons">{{localize 'DG.Skills.melee_weapons'}}</option>
<option {{#if_eq data.skill 'unarmed_combat'}}selected{{/if_eq}} value="unarmed_combat">{{localize 'DG.Skills.unarmed_combat'}}</option>
<option {{#if_eq data.skill 'heavy_weapons'}}selected{{/if_eq}} value="heavy_weapons">{{localize 'DG.Skills.heavy_weapons'}}</option>
<option {{#if_eq data.skill 'athletics'}}selected{{/if_eq}} value="athletics">{{localize 'DG.Skills.athletics'}}</option>
<option {{#if_eq data.skill 'demolitions'}}selected{{/if_eq}} value="demolitions">{{localize 'DG.Skills.demolitions'}}</option>
<option {{#if_eq data.skill 'artillery'}}selected{{/if_eq}} value="artillery">{{localize 'DG.Skills.artillery'}}</option>
</select>
</div>
<div class="resource">
<label class="resource-label">Expense</label>
<label class="resource-label">{{localize 'DG.ItemWindow.Weapons.Expense'}}</label>
<select name="data.expense" >
<option {{#if_eq data.expense 'Incidental'}}selected{{/if_eq}} value="Incidental">Incidental</option>
<option {{#if_eq data.expense 'Standard'}}selected{{/if_eq}} value="Standard">Standard</option>
<option {{#if_eq data.expense 'Unusual'}}selected{{/if_eq}} value="Unusual">Unusual</option>
<option {{#if_eq data.expense 'Major'}}selected{{/if_eq}} value="Major">Major</option>
<option {{#if_eq data.expense 'Extreme'}}selected{{/if_eq}} value="Extreme">Extreme</option>
<option {{#if_eq data.expense 'Incidental'}}selected{{/if_eq}} value="Incidental">{{localize 'DG.Gear.Expense.Incidental'}}</option>
<option {{#if_eq data.expense 'Standard'}}selected{{/if_eq}} value="Standard">{{localize 'DG.Gear.Expense.Standard'}}</option>
<option {{#if_eq data.expense 'Unusual'}}selected{{/if_eq}} value="Unusual">{{localize 'DG.Gear.Expense.Unusual'}}</option>
<option {{#if_eq data.expense 'Major'}}selected{{/if_eq}} value="Major">{{localize 'DG.Gear.Expense.Major'}}</option>
<option {{#if_eq data.expense 'Extreme'}}selected{{/if_eq}} value="Extreme">{{localize 'DG.Gear.Expense.Extreme'}}</option>
</select>
</div>
<div class="resource">
<label class="resource-label"
title="Check this if the weapon has a lethality % associated with it."
title="{{localize 'DG.ItemWindow.Weapons.IsLethalityTooltip'}}"
>Is Lethal: </label>
<input class="labeled-resource-checkbox" type="checkbox" name="data.isLethal" {{checked data.isLethal}} data-dtype="Boolean"
title="Check this if the weapon has a lethality % associated with it."
@@ -38,16 +38,16 @@
{{#unless data.isLethal}}
<div class="resource">
<label class="resource-label">Damage</label>
<label class="resource-label">{{localize 'DG.ItemWindow.Weapons.Damage'}}</label>
<input type="text" name="data.damage" value="{{data.damage}}" data-dtype="String"/>
</div>
{{/unless}}
{{#if data.isLethal}}
<div class="resource">
<label class="resource-label">Lethality %</label>
<label class="resource-label">{{localize 'DG.ItemWindow.Weapons.Lethality'}} %</label>
<input class="" type="text" name="data.lethality" value="{{data.lethality}}" data-dtype="Number"
title="A lethal weapon has a chance to instantly kill a target. Roll a D100 instead of damage die. If it is not lethal, damage is dealt instead as if the result was a 2d10 roll, with a '00' on the first d10 equaling a 10."
title="{{localize 'DG.ItemWindow.Weapons.LethalityTooltip'}}"
/>
</div>
{{/if}}
@@ -55,22 +55,22 @@
<div class="resource">
<label class="resource-label">Armor Piercing</label>
<label class="resource-label">{{localize 'DG.ItemWindow.Weapons.ArmorPiercing'}}</label>
<input type="text" name="data.armorPiercing" value="{{data.armorPiercing}}" data-dtype="Number"/>
</div>
<div class="resource">
<label class="resource-label">Ammo (Amount/Type)</label>
<label class="resource-label">{{localize 'DG.ItemWindow.Weapons.Ammo'}}</label>
<input type="text" name="data.ammo" value="{{data.ammo}}" data-dtype="String"/>
</div>
<div class="resource">
<label class="resource-label">Range</label>
<label class="resource-label">{{localize 'DG.ItemWindow.Weapons.Range'}}</label>
<input type="text" name="data.range" value="{{data.range}}" data-dtype="String"/>
</div>
<div class="resource">
<label class="resource-label">Kill Radius</label>
<label class="resource-label">{{localize 'DG.ItemWindow.Weapons.KillRadius'}}</label>
<input type="text" name="data.killRadius" value="{{data.killRadius}}" data-dtype="String"/>
</div>
</div>
@@ -79,7 +79,7 @@
{{!-- Sheet Tab Navigation --}}
<nav class="sheet-tabs tabs" data-group="primary">
<a class="item" data-tab="description">Description</a>
<a class="item" data-tab="description">{{localize 'DG.ItemWindow.Weapons.Description'}}</a>
</nav>