mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 23:27:34 +01:00
Fixes runtime when mineral scanning (#81049)
## About The Pull Request Fixes this  ## Changelog 🆑 fix: fixes runtime when mineral scanning, passes right argument for scanner in golem eyes /🆑
This commit is contained in:
@@ -1069,7 +1069,7 @@
|
||||
skill_modifier = user.mind.get_skill_modifier(/datum/skill/mining, SKILL_SPEED_MODIFIER)
|
||||
|
||||
if(user.mind.get_skill_level(/datum/skill/mining) >= SKILL_LEVEL_JOURNEYMAN && prob(user.mind.get_skill_modifier(/datum/skill/mining, SKILL_PROBS_MODIFIER))) // we check if the skill level is greater than Journeyman and then we check for the probality for that specific level.
|
||||
mineral_scan_pulse(get_turf(user), SKILL_LEVEL_JOURNEYMAN - 2) //SKILL_LEVEL_JOURNEYMAN = 3 So to get range of 1+ we have to subtract 2 from it,.
|
||||
mineral_scan_pulse(get_turf(user), SKILL_LEVEL_JOURNEYMAN - 2, scanner = src) //SKILL_LEVEL_JOURNEYMAN = 3 So to get range of 1+ we have to subtract 2 from it,.
|
||||
|
||||
delay *= toolspeed * skill_modifier
|
||||
|
||||
|
||||
@@ -71,7 +71,6 @@
|
||||
var/vents_nearby = FALSE
|
||||
var/undiscovered = FALSE
|
||||
var/radar_volume = 30
|
||||
scanner.transform = matrix()
|
||||
for(var/turf/closed/mineral/mineral in RANGE_TURFS(range, T))
|
||||
if(mineral.scan_state)
|
||||
minerals += mineral
|
||||
|
||||
@@ -284,7 +284,7 @@
|
||||
|
||||
/datum/action/cooldown/golem_ore_sight/Activate(atom/target)
|
||||
. = ..()
|
||||
mineral_scan_pulse(get_turf(target), scanner = src)
|
||||
mineral_scan_pulse(get_turf(target), scanner = target)
|
||||
|
||||
///Robotic
|
||||
|
||||
|
||||
Reference in New Issue
Block a user