mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-13 08:03:43 +01:00
Fix errors from ticker initializing after map ore
Ores only count towards the station's score if it spawns on Z=5 (Mining Asteroid Level). The old method caused errors in the server log because gameticker/ticker initialized after the map ore spawns. This also means that ore mined on the Clown Planet don't count.
This commit is contained in:
@@ -78,8 +78,7 @@
|
||||
/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.
|
||||
|
||||
if(src.z == 5) score_oremined++ //When ore spawns, increment score. Only include ore spawned on mining asteroid (No Clown Planet)
|
||||
|
||||
/obj/item/weapon/ore/attackby(obj/item/weapon/W as obj, mob/user as mob)
|
||||
if(istype(W,/obj/item/device/core_sampler))
|
||||
|
||||
Reference in New Issue
Block a user