Fixes runtime when mineral scanning (#81049)

## About The Pull Request
Fixes this

![Screenshot
(384)](https://github.com/tgstation/tgstation/assets/110812394/2ec17f1d-e69b-400a-a8ab-47c205af56ed)


## Changelog
🆑
fix: fixes runtime when mineral scanning, passes right argument for
scanner in golem eyes
/🆑
This commit is contained in:
SyncIt21
2024-01-24 15:00:52 +01:00
committed by GitHub
parent 21b42d49ec
commit 7a1b8d502c
3 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -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