Skip to content

Commit

Permalink
Небольшие фиксы по ишуям (#2519)
Browse files Browse the repository at this point in the history
Co-authored-by: Builder13 <[email protected]>
  • Loading branch information
Builder-13 and Builder13 authored Jul 24, 2024
1 parent ed102f2 commit a53306e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
8 changes: 7 additions & 1 deletion code/modules/admin/verbs/randomverbs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -796,10 +796,16 @@ Ccomp's first proc.
set name = "Change View Range"
set desc = "switches between 1x and custom views"

if(view == world.view)
// [SIERRA-EDIT]
// if(view == world.view) // SIERRA-EDIT - Original
if(view == get_preference_value(/datum/client_preference/client_view))
// [/SIERRA-EDIT]
view = input("Select view range:", "FUCK YE", 7) in list(1,2,3,4,5,6,7,8,9,10,11,12,13,14,128)
else
// [SIERRA-EDIT]
// view = world.view // SIERRA-EDIT - Original
view = get_preference_value(/datum/client_preference/client_view)
// [/SIERRA-EDIT]

log_and_message_admins("changed their view range to [view].")

Expand Down
14 changes: 8 additions & 6 deletions code/modules/reagents/reagent_containers/glass.dm
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,14 @@
/obj/item/reagent_containers/glass/throw_impact(atom/hit_atom)
if (QDELETED(src))
return
if (!LAZYISIN(matter, MATERIAL_GLASS) && (length(reagents.reagent_list) > 0)) // Не стеклянные предметы просто проливают содержимое на пол/моба, если содержимое есть
// if (length(reagents.reagent_list) > 0)
visible_message(
SPAN_DANGER("\The [src] bounces and spills all its contents!")
)
reagents.splash(hit_atom, reagents.total_volume)
if (!LAZYISIN(matter, MATERIAL_GLASS)) // Не стеклянные предметы просто проливают содержимое на пол/моба, если содержимое есть
// [SIERRA-ADD]
if (length(reagents.reagent_list) > 0)
visible_message(
SPAN_DANGER("\The [src] bounces and spills all its contents!")
)
reagents.splash(hit_atom, reagents.total_volume)
// [/SIERRA-ADD]
return
if (prob(80))
if (length(reagents.reagent_list) > 0)
Expand Down
3 changes: 2 additions & 1 deletion mods/utility_items/code/multimeter.dm
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@
return mapload ? INITIALIZE_HINT_LATELOAD : INITIALIZE_HINT_NORMAL

// Overrides this because otherwise this leads us to unit tests failing
/obj/structure/closet/crate/secure/loot
/obj/structure/closet/crate/secure/loot/Initialize(mapload, need_fill)
. = ..()
codelen = 4

// Proceeding to do stuff
Expand Down

0 comments on commit a53306e

Please sign in to comment.