mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 04:30:44 +01:00
[MIRROR] adds a bitflag for no random pixel shift on dropping, adds turf_flags var to replace usage of flags_1 on turfs (#3737)
* adds a bitflag for no random pixel shift on dropping, adds turf_flags var to replace usage of flags_1 on turfs (#57263) Co-authored-by: Mothblocks <35135081+Mothblocks@ users.noreply.github.com> * adds a bitflag for no random pixel shift on dropping, adds turf_flags var to replace usage of flags_1 on turfs Co-authored-by: Fikou <piotrbryla@onet.pl> Co-authored-by: Mothblocks <35135081+Mothblocks@ users.noreply.github.com>
This commit is contained in:
co-authored by
Mothblocks
Fikou
parent
7ef6e29b0b
commit
e63094d9ae
@@ -54,7 +54,7 @@
|
||||
return
|
||||
var/area/destination_area = newloc.loc
|
||||
movedelay = world.time + movespeed
|
||||
if(newloc.flags_1 & NOJAUNT_1)
|
||||
if(newloc.flags_1 & NOJAUNT)
|
||||
to_chat(user, "<span class='warning'>Some strange aura is blocking the way.</span>")
|
||||
return
|
||||
if(destination_area.area_flags & NOTELEPORT)
|
||||
|
||||
@@ -674,7 +674,7 @@ GLOBAL_VAR_INIT(embedpocalypse, FALSE) // if true, all items will be able to emb
|
||||
if (callback) //call the original callback
|
||||
. = callback.Invoke()
|
||||
item_flags &= ~IN_INVENTORY
|
||||
if(!pixel_y && !pixel_x)
|
||||
if(!pixel_y && !pixel_x && !(item_flags & NO_PIXEL_RANDOM_DROP))
|
||||
pixel_x = rand(-8,8)
|
||||
pixel_y = rand(-8,8)
|
||||
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
righthand_file = 'icons/mob/inhands/misc/devices_righthand.dmi'
|
||||
w_class = WEIGHT_CLASS_BULKY
|
||||
flags_1 = CONDUCT_1
|
||||
item_flags = NO_PIXEL_RANDOM_DROP
|
||||
throwforce = 5
|
||||
throw_speed = 1
|
||||
throw_range = 2
|
||||
|
||||
@@ -546,7 +546,7 @@ GLOBAL_LIST_INIT(runed_metal_recipes, list ( \
|
||||
return
|
||||
var/turf/T = get_turf(user) //we may have moved. adjust as needed...
|
||||
var/area/A = get_area(user)
|
||||
if((!is_station_level(T.z) && !is_mining_level(T.z)) || (A && !(A.flags_1 & CULT_PERMITTED_1)))
|
||||
if((!is_station_level(T.z) && !is_mining_level(T.z)) || (A && !(A.area_flags & CULT_PERMITTED)))
|
||||
to_chat(user, "<span class='warning'>The veil is not weak enough here.</span>")
|
||||
return FALSE
|
||||
return ..()
|
||||
|
||||
Reference in New Issue
Block a user