Skip to content

Commit

Permalink
refactor(back): remove minimum bound on zone's maxVelocity
Browse files Browse the repository at this point in the history
I set this randomly a while ago without thinking about it much, but game
code doesn't seem to limit this so don't know why backend should. If we
wanted to limit this, should be in zone validation logic. But someone
setting a <3500 maxvel on their map is such a weird case that I don't
think we should handle in code, can just bring up in review.
  • Loading branch information
tsa96 committed Aug 31, 2024
1 parent 58316d6 commit 600feca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/backend/src/app/dto/map/map-zones.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export class MapZonesDto /* extends JsonifiableDto */ implements MapZones {
default: 3500
})
@IsNumber()
@Min(2000)
@Min(1)
@Max(1000000000)
@IsOptional()
readonly maxVelocity?: number;
Expand Down

0 comments on commit 600feca

Please sign in to comment.