mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-26 10:12:17 +00:00
You brought this upon yourself botany (#21117)
This commit is contained in:
@@ -48,6 +48,7 @@
|
||||
#define STATIONLOVING_2 16
|
||||
#define INFORM_ADMINS_ON_RELOCATE_2 32
|
||||
#define BANG_PROTECT_2 64
|
||||
#define BLOCKS_LIGHT_2 128 // Light sources placed in anything with that flag will not emit light through them.
|
||||
|
||||
// A mob with OMNITONGUE has no restriction in the ability to speak
|
||||
// languages that they know. So even if they wouldn't normally be able to
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
name = "storage"
|
||||
icon = 'icons/obj/storage.dmi'
|
||||
w_class = WEIGHT_CLASS_NORMAL
|
||||
flags_2 = BLOCKS_LIGHT_2
|
||||
/// No message on putting items in.
|
||||
var/silent = FALSE
|
||||
/// List of objects which this item can store (if set, it can't store anything else)
|
||||
|
||||
@@ -32,6 +32,9 @@
|
||||
/datum/light_source/New(atom/owner, atom/top)
|
||||
source_atom = owner // Set our new owner.
|
||||
LAZYADD(source_atom.light_sources, src)
|
||||
if(top.flags_2 & BLOCKS_LIGHT_2) // If the top atom blocks light, then our owner becomes the topmost instead. This still allows atoms that block light to be a light of their own.
|
||||
top_atom = source_atom
|
||||
else
|
||||
top_atom = top
|
||||
if(top_atom != source_atom)
|
||||
LAZYADD(top_atom.light_sources, src)
|
||||
@@ -77,6 +80,9 @@
|
||||
if(top_atom != source_atom && top_atom.light_sources) // Remove ourselves from the light sources of that top atom.
|
||||
LAZYREMOVE(top_atom.light_sources, src)
|
||||
|
||||
if(new_top_atom.flags_2 & BLOCKS_LIGHT_2)
|
||||
top_atom = source_atom
|
||||
else
|
||||
top_atom = new_top_atom
|
||||
|
||||
if(top_atom != source_atom)
|
||||
|
||||
Reference in New Issue
Block a user