Skip to content
Snippets Groups Projects

scoreMultiplier to Development

Merged Ghost User requested to merge scoreMultiplier into Development
3 files
+ 21
3
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -19,6 +19,7 @@ import {
@@ -19,6 +19,7 @@ import {
PromotePlayerDTO,
PromotePlayerDTO,
JoinFactionDTO,
JoinFactionDTO,
JoinGameGroupDTO,
JoinGameGroupDTO,
 
FactionDTO,
} from './faction.dto';
} from './faction.dto';
import { FactionService } from './faction.service';
import { FactionService } from './faction.service';
import { Roles, GameStates } from '../shared/guard.decorator';
import { Roles, GameStates } from '../shared/guard.decorator';
@@ -90,6 +91,14 @@ export class FactionController {
@@ -90,6 +91,14 @@ export class FactionController {
return this.factionservice.joinFaction(person, data);
return this.factionservice.joinFaction(person, data);
}
}
 
// used to change factions multiplier
 
@Put('faction-multiplier/:id')
 
@Roles('admin')
 
@GameStates('STARTED')
 
factionMultiplier(@Param('id') game, @Body() body: FactionDTO){
 
return this.factionservice.changeFactionMultiplier(body);
 
}
 
// check if person belongs to a faction in a game
// check if person belongs to a faction in a game
@Get('check-faction/:id')
@Get('check-faction/:id')
@UseGuards(new AuthGuard())
@UseGuards(new AuthGuard())
Loading