Merge pull request #5798 from tacoguy7765093/krakatoa

Ports Lavaland tiles
This commit is contained in:
Kassc
2023-03-03 21:21:40 -05:00
committed by GitHub
4 changed files with 71 additions and 0 deletions
@@ -0,0 +1,70 @@
/turf/simulated/floor/outdoors/lavaland
icon = 'modular_chomp/icons/turf/lava_land.dmi'
icon_edge = 'modular_chomp/icons/turf/lava_land_edge.dmi'
name = "lavaland base turf"
desc = "This should not exist"
/turf/simulated/floor/outdoors/lavaland/ash
name = "ash"
desc = "A thin soot of grey ash."
icon_state = "ash"
edge_blending_priority = 2
/turf/simulated/floor/outdoors/lavaland/ashrock
name = "ashen rock"
desc = "A rock wall covered in a thick layer of ash."
icon_state = "ashrock"
density = TRUE
opacity = TRUE
edge_blending_priority = 7
initial_flooring = /decl/flooring/lavaland/ashrock
turf_layers = list(/turf/simulated/floor/outdoors/lavaland/ash)
var/last_act = 0
// Stolen from mineral turf code.
/turf/simulated/floor/outdoors/lavaland/ashrock/attackby(obj/item/weapon/W as obj, mob/user as mob)
if(!user.IsAdvancedToolUser())
to_chat(user, "<span class='warning'>You don't have the dexterity to do this!</span>")
return
if(istype(W, /obj/item/weapon/pickaxe))
if(!istype(user.loc, /turf))
return
var/obj/item/weapon/pickaxe/P = W
if(last_act + P.digspeed > world.time)//prevents message spam
return
last_act = world.time
playsound(user, P.drill_sound, 20, 1)
to_chat(user, "<span class='notice'>You start [P.drill_verb].</span>")
if(do_after(user,P.digspeed))
to_chat(user, "<span class='notice'>You finish [P.drill_verb] \the [src].</span>")
density = FALSE
opacity = FALSE
demote() // Converts the turf to the next layer in turf_layers.
..()
/decl/flooring/lavaland/ashrock
name = "ash covered stone"
desc = "Stone that's covered in a thin layer of ash."
icon_base = "ashrock"
icon = 'modular_chomp/icons/turf/lava_land.dmi'
/turf/simulated/floor/outdoors/lavaland/basalt
icon_state = "basalt0"
edge_blending_priority = 3
initial_flooring = /decl/flooring/basalt
turf_layers = list(/turf/simulated/floor/outdoors/lavaland/ash)
/turf/simulated/floor/outdoors/lavaland/basalt/get_edge_icon_state()
return "basalt0"
/decl/flooring/basalt
name = "basalt"
desc = "A hard cracked black rock formed from rapidly cooling lava."
icon = 'modular_chomp/icons/turf/lava_land.dmi'
icon_base = "basalt"
has_base_range = 12
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

+1
View File
@@ -4545,6 +4545,7 @@
#include "modular_chomp\code\game\objects\structures\watercloset_ch.dm"
#include "modular_chomp\code\game\objects\structures\crate_lockers\largecrate.dm"
#include "modular_chomp\code\game\turfs\simulated\outdoors\desert_planet.dm"
#include "modular_chomp\code\game\turfs\simulated\outdoors\lava_land.dm"
#include "modular_chomp\code\modules\admin\functions\modify_traits.dm"
#include "modular_chomp\code\modules\artifice\deadringer.dm"
#include "modular_chomp\code\modules\client\preferences.dm"