mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-22 03:27:46 +01:00
Merge pull request #10505 from VOREStation/Arokha/miscfix
Some misc runtime fixes
This commit is contained in:
@@ -240,8 +240,10 @@ turf/simulated/mineral/floor/light_corner
|
||||
spawn(1) // Otherwise most of the ore is lost to the explosion, which makes this rather moot.
|
||||
for(var/ore in resources)
|
||||
var/amount_to_give = rand(CEILING(resources[ore]/2, 1), resources[ore]) // Should result in at least one piece of ore.
|
||||
var/oretype = ore_types[ore]
|
||||
if(!oretype)
|
||||
return // this turf can't give that type
|
||||
for(var/i=1, i <= amount_to_give, i++)
|
||||
var/oretype = ore_types[ore]
|
||||
new oretype(src)
|
||||
resources[ore] = 0
|
||||
|
||||
|
||||
@@ -481,6 +481,9 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
|
||||
/mob/proc/update_following()
|
||||
. = get_turf(src)
|
||||
for(var/mob/observer/dead/M in following_mobs)
|
||||
if(!.)
|
||||
M.stop_following()
|
||||
|
||||
if(M.following != src)
|
||||
following_mobs -= M
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user