mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-26 10:03:45 +00:00
Fixed the meteor gamemode always failing to start.
Tweaked some numbers for deconstruction costs for laser cannons and heavy laser cannons. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1972 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -16,6 +16,17 @@
|
||||
spawn(meteordelay)
|
||||
nometeors = 0
|
||||
|
||||
/datum/game_mode/meteor/can_start()
|
||||
var/num_players = 0
|
||||
for(var/mob/new_player/P in world)
|
||||
if(P.client && P.ready)
|
||||
num_players++
|
||||
|
||||
if(num_players >= 10)
|
||||
return 1 // needs at least 10 players in order to play this mode
|
||||
|
||||
return 0
|
||||
|
||||
/datum/game_mode/meteor/process()
|
||||
if (nometeors) return
|
||||
if (prob(10)) meteor_wave()
|
||||
|
||||
@@ -1077,6 +1077,7 @@
|
||||
icon_state = "laser"
|
||||
force = 15
|
||||
fire_sound = 'pulse.ogg'
|
||||
origin_tech = "combat=4;materials=3;powerstorage=3"
|
||||
load_into_chamber()
|
||||
if(in_chamber)
|
||||
return 1
|
||||
@@ -1112,6 +1113,7 @@
|
||||
icon_state = "laser"
|
||||
force = 20
|
||||
fire_sound = 'pulse.ogg'
|
||||
origin_tech = "combat=4;materials=4;powerstorage=4"
|
||||
load_into_chamber()
|
||||
if(in_chamber)
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user