mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
[MIRROR] refactors most spans (#9139)
Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com> Co-authored-by: Kashargul <KashL@t-online.de>
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
if(can_open == WALL_OPENING)
|
||||
return
|
||||
can_open = WALL_CAN_OPEN
|
||||
user.visible_message("<span class='alium'>\The [user] strokes its feelers against \the [src] and the biomass [density ? "moves aside" : "closes up"].</span>")
|
||||
user.visible_message(span_alium("\The [user] strokes its feelers against \the [src] and the biomass [density ? "moves aside" : "closes up"]."))
|
||||
toggle_open(user)
|
||||
sleep(15)
|
||||
if(can_open == WALL_CAN_OPEN) can_open = 0
|
||||
@@ -169,4 +169,4 @@
|
||||
V.growth = 3
|
||||
V.update_icon()
|
||||
spawn(1)
|
||||
V.spread()
|
||||
V.spread()
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
/obj/structure/droppod_door/attack_hand(var/mob/user)
|
||||
if(deploying) return
|
||||
to_chat(user, "<span class='danger'>You prime the explosive bolts. Better get clear!</span>")
|
||||
to_chat(user, span_danger("You prime the explosive bolts. Better get clear!"))
|
||||
sleep(30)
|
||||
deploy()
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
return
|
||||
|
||||
deployed = 1
|
||||
visible_message("<span class='danger'>The explosive bolts on \the [src] detonate, throwing it open!</span>")
|
||||
visible_message(span_danger("The explosive bolts on \the [src] detonate, throwing it open!"))
|
||||
playsound(src, 'sound/effects/bang.ogg', 50, 1, 5)
|
||||
|
||||
// This is shit but it will do for the sake of testing.
|
||||
|
||||
@@ -25,13 +25,13 @@
|
||||
deep_count++
|
||||
// Sanity check.
|
||||
if(surface_count < MIN_SURFACE_COUNT)
|
||||
admin_notice("<span class='danger'>Insufficient surface minerals. Rerolling...</span>", R_DEBUG)
|
||||
admin_notice(span_danger("Insufficient surface minerals. Rerolling..."), R_DEBUG)
|
||||
return 0
|
||||
else if(rare_count < MIN_RARE_COUNT)
|
||||
admin_notice("<span class='danger'>Insufficient rare minerals. Rerolling...</span>", R_DEBUG)
|
||||
admin_notice(span_danger("Insufficient rare minerals. Rerolling..."), R_DEBUG)
|
||||
return 0
|
||||
else if(deep_count < MIN_DEEP_COUNT)
|
||||
admin_notice("<span class='danger'>Insufficient deep minerals. Rerolling...</span>", R_DEBUG)
|
||||
admin_notice(span_danger("Insufficient deep minerals. Rerolling..."), R_DEBUG)
|
||||
return 0
|
||||
else
|
||||
return 1
|
||||
|
||||
@@ -56,7 +56,7 @@ var/global/list/map_count = list()
|
||||
set_map_size()
|
||||
|
||||
var/start_time = world.timeofday
|
||||
if(!do_not_announce) admin_notice("<span class='danger'>Generating [name].</span>", R_DEBUG)
|
||||
if(!do_not_announce) admin_notice(span_danger("Generating [name]."), R_DEBUG)
|
||||
sleep(-1)
|
||||
|
||||
// Testing needed to see how reliable this is (asynchronous calls, called during worldgen), DM ref is not optimistic
|
||||
@@ -71,9 +71,9 @@ var/global/list/map_count = list()
|
||||
|
||||
if(!do_not_announce)
|
||||
if(!failed)
|
||||
admin_notice("<span class='danger'>[capitalize(name)] generation completed in [round(0.1*(world.timeofday-start_time),0.1)] seconds.</span>", R_DEBUG)
|
||||
admin_notice(span_danger("[capitalize(name)] generation completed in [round(0.1*(world.timeofday-start_time),0.1)] seconds."), R_DEBUG)
|
||||
else
|
||||
admin_notice("<span class='danger'>[capitalize(name)] failed to generate ([round(0.1*(world.timeofday-start_time),0.1)] seconds): could not produce sane map.</span>", R_DEBUG)
|
||||
admin_notice(span_danger("[capitalize(name)] failed to generate ([round(0.1*(world.timeofday-start_time),0.1)] seconds): could not produce sane map."), R_DEBUG)
|
||||
|
||||
/datum/random_map/proc/get_map_cell(var/x,var/y)
|
||||
if(!map)
|
||||
|
||||
Reference in New Issue
Block a user