File tree 1 file changed +10
-10
lines changed
src/gameserver/event-handler
1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -118,20 +118,20 @@ export class CrimeLogCreatedHandler
118
118
. getMany ( ) ;
119
119
120
120
// total crimes done within 24 hours
121
- // We do `+1` because it doesnt count current crime, but we want to
122
- const countedCrimes = countCrimes ( frequentCrimesCount ) + 1 ;
121
+ const countedCrimes = countCrimes ( frequentCrimesCount ) ;
123
122
124
- let totalPunishmentCount = countedCrimes . get ( thisCrime . crime ) || 0 ;
123
+ // We do `+1` because it doesn't count current crime, but we want to
124
+ let totalPunishmentCount = ( countedCrimes . get ( thisCrime . crime ) || 0 ) + 1 ;
125
125
const basePunishment = getBasePunishment ( thisCrime . crime ) ;
126
126
let punishmentDuration = basePunishment * totalPunishmentCount ;
127
127
128
- console . log (
129
- countedCrimes ,
130
- totalPunishmentCount ,
131
- basePunishment ,
132
- punishmentDuration ,
133
- thisCrime ,
134
- ) ;
128
+ // console.log(
129
+ // countedCrimes,
130
+ // totalPunishmentCount,
131
+ // basePunishment,
132
+ // punishmentDuration,
133
+ // thisCrime,
134
+ // );
135
135
136
136
this . logger . log (
137
137
`Punishment: ${ punishmentDuration / 1000 / 60 } minutes for ${
You can’t perform that action at this time.
0 commit comments