 		}
 
 # Game timer
-setTimer = !->
+setTimer = ->
 	if Db.shared.peek('game', 'roundTimeUnit') is 'Months'
 		seconds = Db.shared.peek('game', 'roundTimeNumber')*2592000
 	else if Db.shared.peek('game', 'roundTimeUnit') is 'Days'

		beacon.set 'percentage', newPercentage


# Called by the beacon capture timer
exports.onCapture = (args) !->
	beacon = Db.shared.ref 'game', 'beacons', args.beacon
	nextOwner = beacon.peek('nextOwner')
	log 'Team ', nextOwner, ' has captured beacon ', beacon.key(), ', players: ', args.players

						log 'Capture of beacon ', beacon.key(), ' stopped, left the area'

# Update the takeover percentage of a beacon depening on current action and the passed time
updateBeaconPercentage = (beacon) ->
	currentPercentage = beacon.peek 'percentage'
	action = beacon.peek 'action'
	actionStarted = beacon.peek 'actionStarted'
