|
@@ -19,7 +19,7 @@ export class WeaponModalComponent {
|
|
public hasReach: boolean = false;
|
|
public hasReach: boolean = false;
|
|
public throwRange: number[] = [5, 5];
|
|
public throwRange: number[] = [5, 5];
|
|
public attackBonus: string = '+0';
|
|
public attackBonus: string = '+0';
|
|
- public damage: Damage[] = [{ diceNumber: '', diceType: '', damageType: '' }];
|
|
|
|
|
|
+ public damage: Damage[] = [{ diceNumber: 0, diceType: 0, damageType: '' }];
|
|
public hasAdditionalDamage: boolean = false;
|
|
public hasAdditionalDamage: boolean = false;
|
|
public additionalDamage: number = 0;
|
|
public additionalDamage: number = 0;
|
|
public useAttributeModifier: boolean = false;
|
|
public useAttributeModifier: boolean = false;
|
|
@@ -96,14 +96,6 @@ export class WeaponModalComponent {
|
|
|
|
|
|
additonalDamages: number[] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
|
|
additonalDamages: number[] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
|
|
|
|
|
|
- public magicBonuses: any[] = [
|
|
|
|
- { display: '+1', value: 1 },
|
|
|
|
- { display: '+2', value: 2 },
|
|
|
|
- { display: '+3', value: 3 },
|
|
|
|
- { display: '+4', value: 4 },
|
|
|
|
- { display: '+5', value: 5 },
|
|
|
|
- ];
|
|
|
|
-
|
|
|
|
public ngOnInit(): void {
|
|
public ngOnInit(): void {
|
|
if (this.isUpdate) {
|
|
if (this.isUpdate) {
|
|
this.loadItem();
|
|
this.loadItem();
|
|
@@ -185,7 +177,7 @@ export class WeaponModalComponent {
|
|
this.hasReach = false;
|
|
this.hasReach = false;
|
|
this.throwRange = [5, 5];
|
|
this.throwRange = [5, 5];
|
|
this.attackBonus = '+0';
|
|
this.attackBonus = '+0';
|
|
- this.damage = [{ diceNumber: '', diceType: '', damageType: '' }];
|
|
|
|
|
|
+ this.damage = [{ diceNumber: 0, diceType: 0, damageType: '' }];
|
|
this.hasAdditionalDamage = false;
|
|
this.hasAdditionalDamage = false;
|
|
this.additionalDamage = 0;
|
|
this.additionalDamage = 0;
|
|
this.useAttributeModifier = false;
|
|
this.useAttributeModifier = false;
|
|
@@ -205,7 +197,7 @@ export class WeaponModalComponent {
|
|
// COMPONENT LOGIC
|
|
// COMPONENT LOGIC
|
|
|
|
|
|
public addDamage(): void {
|
|
public addDamage(): void {
|
|
- this.damage.push({ diceNumber: '', diceType: '', damageType: '' });
|
|
|
|
|
|
+ this.damage.push({ diceNumber: 0, diceType: 0, damageType: '' });
|
|
}
|
|
}
|
|
|
|
|
|
public removeDamage(index: number): void {
|
|
public removeDamage(index: number): void {
|