Mobility refactor: UI, pull and lying down edition (#54078)

This commit is contained in:
Rohesie
2020-10-03 17:23:21 -07:00
committed by GitHub
parent 2b53da383b
commit db54913fe6
18 changed files with 285 additions and 119 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
/atom/movable
var/can_buckle = FALSE
var/buckle_lying = -1 //bed-like behaviour, forces mob.lying = buckle_lying if != -1
/// Bed-like behaviour, forces mob.lying = buckle_lying if not set to [NO_BUCKLE_LYING].
var/buckle_lying = NO_BUCKLE_LYING
var/buckle_requires_restraints = FALSE //require people to be handcuffed before being able to buckle. eg: pipes
var/list/mob/living/buckled_mobs = null //list()
var/max_buckled_mobs = 1
@@ -9,7 +9,7 @@
anchored = FALSE
density = TRUE
max_integrity = 100
buckle_lying = FALSE
buckle_lying = 0
layer = ABOVE_MOB_LAYER
var/view_range = 2.5
var/cooldown = 0
+1 -1
View File
@@ -552,7 +552,7 @@
smoothing_groups = null
canSmoothWith = null
can_buckle = 1
buckle_lying = -1
buckle_lying = NO_BUCKLE_LYING
buckle_requires_restraints = TRUE
var/mob/living/carbon/human/patient = null
var/obj/machinery/computer/operating/computer = null
+1 -1
View File
@@ -7,7 +7,7 @@
flags_1 = CONDUCT_1
can_buckle = TRUE
max_buckled_mobs = 1
buckle_lying = FALSE
buckle_lying = 0
var/obj/item/target/pinned_target
/obj/structure/target_stake/Destroy()