Refactoring
This commit is contained in:
+6
-6
@@ -4,9 +4,9 @@ import { MatCardModule } from '@angular/material/card';
|
||||
import { MatDividerModule } from '@angular/material/divider';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
|
||||
import { FortificationCardContentComponent } from 'src/app/components/shared';
|
||||
//import { HWMember } from 'src/app/core/models';
|
||||
import { HWGuildWarFortification, HWGuildWarHeroTeam, HWGuildWarSlots, HWGuildWarTitanTeam, HWMember } from 'src/app/core/models';
|
||||
import { FortificationCardContentComponent } from '@components/shared';
|
||||
//import { HWMember } from '@models';
|
||||
import { HWGuildWarFortification, HWGuildWarHeroTeam, HWGuildWarSlots, HWGuildWarTitanTeam, HWMember } from '@models';
|
||||
|
||||
/* JSON data */
|
||||
import guildWarData from 'src/files-data/hw-guild-war.json'; // page Overview -> Statistics | page Guild War -> Guild War
|
||||
@@ -170,17 +170,17 @@ export class GuildwarDefenceComponent implements OnInit {
|
||||
}
|
||||
|
||||
getGatesOfNature(): HWGuildWarFortification {
|
||||
const indexes: number[] = [4, 9, 14, 19];
|
||||
const indexes: number[] = [5, 10, 15, 16];
|
||||
return this._getFortification(indexes, 'titans', 'Gates Of Nature');
|
||||
}
|
||||
|
||||
getBastionOfFire(): HWGuildWarFortification {
|
||||
const indexes: number[] = [5, 10, 15, 16];
|
||||
const indexes: number[] = [6, 11, 12, 17];
|
||||
return this._getFortification(indexes, 'titans', 'Bastion Of Fire');
|
||||
}
|
||||
|
||||
getBastionOfIce(): HWGuildWarFortification {
|
||||
const indexes: number[] = [6, 11, 12, 17];
|
||||
const indexes: number[] = [4, 9, 14, 19];
|
||||
return this._getFortification(indexes, 'titans', 'Bastion Of Ice');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user