mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 06:00:16 +01:00
[MDB IGNORE] Lavaland Mineral Rework: Yapmining 2026 (#95682)
This commit is contained in:
@@ -179,7 +179,7 @@
|
||||
|
||||
/obj/item/crusher_trophy/bileworm_spewlet/on_projectile_hit_mineral(turf/closed/mineral, mob/living/user)
|
||||
for(var/turf/closed/mineral/mineral_turf in RANGE_TURFS(1, mineral) - mineral)
|
||||
mineral_turf.gets_drilled(user, 1)
|
||||
mineral_turf.drill_aoe(user, 0.2)
|
||||
|
||||
//yes this is a /mob_cooldown subtype being added to an item. I can't recommend you do what I'm doing
|
||||
/datum/action/cooldown/mob_cooldown/projectile_attack/dir_shots/spewlet
|
||||
|
||||
@@ -27,10 +27,10 @@
|
||||
/obj/item/mining_scanner/admin
|
||||
|
||||
/obj/item/mining_scanner/admin/attack_self(mob/user)
|
||||
for(var/turf/closed/mineral/mineral_turf in world)
|
||||
if(mineral_turf.scan_state)
|
||||
mineral_turf.icon = mineral_turf.scan_icon
|
||||
mineral_turf.icon_state = mineral_turf.scan_state
|
||||
for(var/turf/closed/mineral/rock in world)
|
||||
if(rock.scan_state)
|
||||
var/mutable_appearance/rock_overlay = mutable_appearance(rock.scan_icon, rock.scan_state, FLASH_LAYER, rock, ABOVE_LIGHTING_PLANE, appearance_flags = RESET_TRANSFORM)
|
||||
rock.add_overlay(rock_overlay)
|
||||
qdel(src)
|
||||
|
||||
/obj/item/t_scanner/adv_mining_scanner
|
||||
@@ -86,19 +86,8 @@
|
||||
vent.add_mineral_overlays()
|
||||
|
||||
for(var/turf/closed/mineral/mineral in RANGE_TURFS(range, start_turf))
|
||||
if(!mineral.scan_state)
|
||||
continue
|
||||
|
||||
var/obj/effect/temp_visual/mining_overlay/scan_overlay = locate(/obj/effect/temp_visual/mining_overlay) in mineral
|
||||
if(!scan_overlay)
|
||||
scan_overlay = new(mineral)
|
||||
scan_overlay.icon = mineral.scan_icon
|
||||
scan_overlay.icon_state = mineral.scan_state
|
||||
continue
|
||||
|
||||
deltimer(scan_overlay.timerid)
|
||||
scan_overlay.timerid = QDEL_IN_STOPPABLE(scan_overlay, scan_overlay.duration)
|
||||
animate(scan_overlay, alpha = 0, time = scan_overlay.duration, easing = scan_overlay.easing_style)
|
||||
if(mineral.scan_state)
|
||||
mineral.flash_scan()
|
||||
|
||||
if(vents_nearby && scanner)
|
||||
if(undiscovered)
|
||||
@@ -111,7 +100,8 @@
|
||||
/obj/effect/temp_visual/mining_overlay
|
||||
plane = HIGH_GAME_PLANE
|
||||
layer = FLASH_LAYER
|
||||
icon = 'icons/effects/ore_visuals.dmi'
|
||||
icon = 'icons/blanks/480x480.dmi'
|
||||
icon_state = "nothing"
|
||||
appearance_flags = NONE // to avoid having TILE_BOUND in the flags, so that the 480x480 icon states let you see it no matter where you are
|
||||
duration = 3.5 SECONDS
|
||||
pixel_x = -224
|
||||
|
||||
Reference in New Issue
Block a user