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:
vageyenaman@gmail.com
2011-08-03 00:12:56 +00:00
parent 0f560983ce
commit d2b9898fad
2 changed files with 13 additions and 0 deletions

View File

@@ -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()

View File

@@ -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