Merge pull request #9050 from MistakeNot4892/drakemove

Move intent tweaks.
This commit is contained in:
Atermonera
2023-03-14 00:01:26 -08:00
committed by GitHub
15 changed files with 147 additions and 106 deletions
@@ -2,6 +2,7 @@
name = "observer"
desc = "This shouldn't appear"
density = 0
move_intents = list(/decl/move_intent/no_delay)
/mob/observer/dead
name = "ghost"
@@ -35,8 +35,6 @@
if(get_restraining_bolt()) // Borgs with Restraining Bolts move slower.
. += 1
. += config.robot_delay
. += ..()
// NEW: Use power while moving.
+6 -1
View File
@@ -1,13 +1,18 @@
/mob/living/silicon
gender = NEUTER
voice_name = "synthesized voice"
has_huds = TRUE
move_intents = list(
/decl/move_intent/run/robot,
/decl/move_intent/walk/robot
)
var/syndicate = 0
var/const/MAIN_CHANNEL = "Main Frequency"
var/lawchannel = MAIN_CHANNEL // Default channel on which to state laws
var/list/stating_laws = list()// Channels laws are currently being stated on
var/obj/item/radio/common_radio
has_huds = TRUE
var/list/speech_synthesizer_langs = list() //which languages can be vocalized by the speech synthesizer
//Used in say.dm.
@@ -17,6 +17,11 @@
has_huds = TRUE // We do show AI status huds for buildmode players
move_intents = list(
/decl/move_intent/animal_run,
/decl/move_intent/animal_walk
)
var/tt_desc = null //Tooltip description
//Settings for played mobs
@@ -225,17 +230,17 @@
return ..()
*/
/mob/living/simple_mob/movement_delay()
. = movement_cooldown
if(force_max_speed)
return -3
. = 0
for(var/datum/modifier/M in modifiers)
if(!isnull(M.haste) && M.haste == TRUE)
return -3
if(!isnull(M.slowdown))
. += M.slowdown
. += ..() + movement_cooldown
// Turf related slowdown
var/turf/T = get_turf(src)
if(T && T.get_movement_cost() && !hovering) // Flying mobs ignore turf-based slowdown. Aquatic mobs ignore water slowdown, and can gain bonus speed in it.
@@ -252,8 +257,6 @@
if(IS_WALKING(src))
. *= 1.5
. += config.animal_delay
. += ..()
+1 -1
View File
@@ -34,7 +34,7 @@
zone_sel = null
/mob/Initialize()
move_intent = GET_DECL(/decl/move_intent/run) // Sets the initial move_intent.
move_intent = GET_DECL(move_intents[1]) // Sets the initial move_intent.
mob_list += src
if(stat == DEAD)
dead_mob_list += src