mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-21 07:42:21 +00:00
Movement configuration
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
/// Config holder for values relating to mob movement speeds
|
||||
/datum/configuration_section/movement_configuration
|
||||
/// Base run speed before modifiers
|
||||
var/base_run_speed = 1
|
||||
/// Base walk speed before modifiers
|
||||
var/base_walk_speed = 4
|
||||
/// Move delay for humanoids
|
||||
var/human_delay = 1.5
|
||||
/// Move delay for cyborgs
|
||||
var/robot_delay = 2.5
|
||||
/// Move delay for xenomorphs
|
||||
var/alien_delay = 1.5
|
||||
/// Move delay for slimes (xenobio, not slimepeople)
|
||||
var/slime_delay = 1.5
|
||||
/// Move delay for other simple animals
|
||||
var/animal_delay = 2.5
|
||||
|
||||
/datum/configuration_section/movement_configuration/load_data(list/data)
|
||||
// Use the load wrappers here. That way the default isnt made 'null' if you comment out the config line
|
||||
CONFIG_LOAD_NUM(base_run_speed, data["base_run_speed"])
|
||||
CONFIG_LOAD_NUM(base_walk_speed, data["base_walk_speed"])
|
||||
CONFIG_LOAD_NUM(human_delay, data["human_delay"])
|
||||
CONFIG_LOAD_NUM(robot_delay, data["robot_delay"])
|
||||
CONFIG_LOAD_NUM(alien_delay, data["alien_delay"])
|
||||
CONFIG_LOAD_NUM(slime_delay, data["slime_delay"])
|
||||
CONFIG_LOAD_NUM(animal_delay, data["animal_delay"])
|
||||
Reference in New Issue
Block a user