Track Ore Mined for Scoreboard

Increments the score for ore mined each time ore is mined (i.e.:
spawned) after the game starts.
This commit is contained in:
Regory
2014-08-04 12:00:44 -04:00
parent 191573852c
commit 109754ac2b
+2
View File
@@ -78,6 +78,8 @@
/obj/item/weapon/ore/New()
pixel_x = rand(0,16)-8
pixel_y = rand(0,8)-8
if(ticker.current_state == GAME_STATE_PLAYING) score_oremined++ //When ore spawns, increment score. Ignore ores that spawn with map before game starts.
/obj/item/weapon/ore/attackby(obj/item/weapon/W as obj, mob/user as mob)
if(istype(W,/obj/item/device/core_sampler))