added '1' to "d100" rolls to avoid a 7.0 alpha bug
This commit is contained in:
+2
-2
@@ -1,5 +1,5 @@
|
||||
export function sendPercentileTestToChat(actor, skill, target){
|
||||
let roll = new Roll('d100', actor.data.data).roll();
|
||||
let roll = new Roll('1D100', actor.data.data).roll();
|
||||
let total = roll.total;
|
||||
let isCritical = false;
|
||||
let isSuccess = false;
|
||||
@@ -82,7 +82,7 @@ export function sendPercentileTestToChat(actor, skill, target){
|
||||
}
|
||||
|
||||
export function sendLethalityTestToChat(actor, weaponName, target){
|
||||
let roll = new Roll('d100', actor.data.data).roll();
|
||||
let roll = new Roll('1D100', actor.data.data).roll();
|
||||
let isCritical = false;
|
||||
let skillCheckTotal = roll.total;
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
{"_id":"0gCwBTqSAbG9J20Y","name":"Hatchet","permission":{"default":0,"bugxCCxa4GzlYx2g":3},"type":"weapon","data":{"name":"","description":"","skill":"melee_weapons","range":"0M","damage":"1D4","armorPiercing":0,"lethality":0,"isLethal":false,"killRadius":"N/A","ammo":"","expense":"Incidental"},"flags":{},"img":"systems/deltagreen/assets/icons/hatchet.svg"}
|
||||
{"_id":"77d2U7eSBn5AaQk7","name":"Wood Axe","permission":{"default":0,"bugxCCxa4GzlYx2g":3},"type":"weapon","data":{"name":"","description":"","skill":"melee_weapons","range":"0M","damage":"1D10","armorPiercing":0,"lethality":0,"isLethal":false,"killRadius":"N/A","ammo":"","expense":"Incidental"},"flags":{},"img":"systems/deltagreen/assets/icons/wood-axe.svg"}
|
||||
{"_id":"DUJXpTwNqHJCqv6E","name":"Two-handed Sword","permission":{"default":0,"bugxCCxa4GzlYx2g":3},"type":"weapon","data":{"name":"","description":"<p>Requires special training</p>","skill":"melee_weapons","range":"10M","damage":"1d12","armorPiercing":0,"lethality":0,"isLethal":false,"killRadius":"","ammo":"","expense":"Standard"},"flags":{},"img":"systems/deltagreen/assets/icons/two-handed-sword.svg"}
|
||||
{"_id":"DUJXpTwNqHJCqv6E","name":"Two-handed Sword","permission":{"default":0,"bugxCCxa4GzlYx2g":3},"type":"weapon","data":{"name":"","description":"<p>Requires special training</p>","skill":"melee_weapons","range":"10M","damage":"1D12","armorPiercing":0,"lethality":0,"isLethal":false,"killRadius":"","ammo":"","expense":"Standard"},"flags":{},"img":"systems/deltagreen/assets/icons/two-handed-sword.svg"}
|
||||
{"name":"Rifle Butt","permission":{"default":0,"bugxCCxa4GzlYx2g":3},"type":"weapon","data":{"name":"","description":"","skill":"melee_weapons","range":"0M","damage":"1D8","armorPiercing":0,"lethality":0,"isLethal":false,"killRadius":"N/A","ammo":"","expense":"Incidental"},"flags":{},"img":"systems/deltagreen/assets/icons/gun-stock.svg","_id":"JAhifOCkSG5Iwaeo"}
|
||||
{"name":"Unarmed Attack","permission":{"default":0,"bugxCCxa4GzlYx2g":3},"type":"weapon","data":{"name":"","description":"","skill":"melee_weapons","range":"0M","damage":"1D4-1","armorPiercing":0,"lethality":0,"isLethal":false,"killRadius":"N/A","ammo":"","expense":"Standard"},"flags":{},"img":"systems/deltagreen/assets/icons/punch.svg","_id":"JQEMyFfCHx38gupS"}
|
||||
{"_id":"OsW9m877sce0LdsO","name":"Knife","permission":{"default":0,"bugxCCxa4GzlYx2g":3},"type":"weapon","data":{"name":"","description":"","skill":"melee_weapons","range":"10M","damage":"1D4","armorPiercing":0,"lethality":0,"isLethal":false,"killRadius":"","ammo":"","expense":"Incidental"},"flags":{},"img":"systems/deltagreen/assets/icons/switchblade.svg"}
|
||||
{"name":"Garotte","permission":{"default":0,"bugxCCxa4GzlYx2g":3},"type":"weapon","data":{"name":"","description":"<p>Works only from surprise. If it succeeds, the target is pinned and cannot make a sound, and the garrote does 1D6 damage per round until the target escapes or dies. A garotte made from Kevlar can cut through flexible cuffs.</p>","skill":"unarmed_combat","range":"0M","damage":"1D6","armorPiercing":0,"lethality":0,"isLethal":false,"killRadius":"N/A","ammo":"","expense":"Incidental"},"flags":{},"img":"systems/deltagreen/assets/icons/wire-coil.svg","_id":"PkhlVFDhDUGqLdCW"}
|
||||
{"_id":"TumiVMIYL7uCGrJW","name":"Brass Knuckles","permission":{"default":0,"bugxCCxa4GzlYx2g":3},"type":"weapon","data":{"name":"","description":"","skill":"unarmed_combat","range":"0M","damage":"1D4","armorPiercing":0,"lethality":0,"isLethal":false,"killRadius":"N/A","ammo":"","expense":"Incidental"},"flags":{},"img":"systems/deltagreen/assets/icons/brass-knuckles.svg"}
|
||||
{"_id":"TvswuYGnr0Mt6aAg","name":"Combat Dagger","permission":{"default":0,"bugxCCxa4GzlYx2g":3},"type":"weapon","data":{"name":"","description":"","skill":"melee_weapons","range":"10M","damage":"1d6","armorPiercing":0,"lethality":0,"isLethal":false,"killRadius":"","ammo":"","expense":"Incidental"},"flags":{},"img":"systems/deltagreen/assets/icons/bowie-knife.svg"}
|
||||
{"_id":"TvswuYGnr0Mt6aAg","name":"Combat Dagger","permission":{"default":0,"bugxCCxa4GzlYx2g":3},"type":"weapon","data":{"name":"","description":"","skill":"melee_weapons","range":"10M","damage":"1D6","armorPiercing":0,"lethality":0,"isLethal":false,"killRadius":"","ammo":"","expense":"Incidental"},"flags":{},"img":"systems/deltagreen/assets/icons/bowie-knife.svg"}
|
||||
{"name":"Fixed Bayonet","permission":{"default":0,"bugxCCxa4GzlYx2g":3},"type":"weapon","data":{"name":"","description":"","skill":"melee_weapons","range":"0M","damage":"1D8","armorPiercing":3,"lethality":0,"isLethal":false,"killRadius":"N/A","ammo":"","expense":"Incidental"},"flags":{},"img":"systems/deltagreen/assets/icons/bayonet.svg","_id":"ZawdvRsFTJyB1SvW"}
|
||||
{"_id":"b9hKP3QHJPzk45YD","name":"Sword","permission":{"default":0,"bugxCCxa4GzlYx2g":3},"type":"weapon","data":{"name":"","description":"","skill":"melee_weapons","range":"10M","damage":"1D8","armorPiercing":0,"lethality":0,"isLethal":false,"killRadius":"","ammo":"","expense":"Incidental"},"flags":{},"img":"systems/deltagreen/assets/icons/stiletto.svg"}
|
||||
{"name":"Spear","permission":{"default":0,"bugxCCxa4GzlYx2g":3},"type":"weapon","data":{"name":"","description":"","skill":"melee_weapons","range":"0M","damage":"1D8","armorPiercing":3,"lethality":0,"isLethal":false,"killRadius":"N/A","ammo":"","expense":"Incidental"},"flags":{},"img":"systems/deltagreen/assets/icons/arrowhead.svg","_id":"bhdeIJZJA4JEi1iW"}
|
||||
|
||||
Reference in New Issue
Block a user