Files
roll20-character-sheets-tester/Shadowrun4thEdition/src/js/Classes/PrimaryWeapon.js
T
Cassie Levett 817909b313 Shadowrun 4th Edition v1 (#6160)
* initial upload

* save 4e start

* saving

* save color updates

* remove limits

* update the colors

* save changes

* begin refactoring names

* fix attribute changes

* save progress. commlinks added

* move attrs to match hero lab

* hide the other sheets until they are converted

* fix translation keys

* update drain, update roll template

* make d6 explode

* save css upates

* move stuff around, fix primary weapons, add skills, add program buttons

* add spec to programs

* save shadowrun progress

* fix primary bug

* update force in npc buttons

* remove unit tests

* add to core ratings

* save preview images
2020-04-13 10:36:51 -07:00

28 lines
777 B
JavaScript

class PrimaryWeapon {
constructor(type) {
this[`primary_${type}_weapon`] = 'select a Primary in Arms',
this[`primary_${type}_weapon_skill`] = type === 'range' ? '@{firearms}' : '@{closecombat}',
this[`primary_${type}_weapon_damage`] = '',
this[`primary_${type}_weapon_dicepool`] = '',
this[`primary_${type}_weapon_ap`] = ''
}
}
class PrimaryRangeWeapon extends PrimaryWeapon {
constructor(type) {
super(type)
this[`primary_${type}_weapon_mode`] = '',
this[`primary_${type}_weapon_recoil`] = '',
this[`primary_${type}_weapon_ammo`] = '',
this[`primary_${type}_weapon_ammo_max`] = ''
}
}
class PrimaryMeleeWeapon extends PrimaryWeapon {
constructor(type) {
super(type)
this[`primary_${type}_weapon_reach`] = ''
}
}