Skip to content
This repository has been archived by the owner on Nov 12, 2022. It is now read-only.

Makes mechs move diagonally again. #104

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions code/modules/vehicles/mecha/_mecha.dm
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@
var/lights_power = 6
///Just stop the mech from doing anything
var/completely_disabled = FALSE
///Whether this mech is allowed to move diagonally
var/allow_diagonal_movement = FALSE
///Whether or not the mech destroys walls by running into it.
var/bumpsmash = FALSE

Expand Down Expand Up @@ -683,10 +681,6 @@
if(internal_damage & MECHA_INT_CONTROL_LOST)
direction = pick(GLOB.alldirs)

//only mechs with diagonal movement may move diagonally
if(!allow_diagonal_movement && ISDIAGONALDIR(direction))
return TRUE

var/keyheld = FALSE
if(strafe)
for(var/mob/driver as anything in return_drivers())
Expand Down
1 change: 0 additions & 1 deletion code/modules/vehicles/mecha/combat/gygax.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
name = "\improper Gygax"
icon_state = "gygax"
base_icon_state = "gygax"
allow_diagonal_movement = TRUE
movedelay = 3
dir_in = 1 //Facing North.
max_integrity = 250
Expand Down
1 change: 0 additions & 1 deletion code/modules/vehicles/mecha/medical/odysseus.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
name = "\improper Odysseus"
icon_state = "odysseus"
base_icon_state = "odysseus"
allow_diagonal_movement = TRUE
movedelay = 2
max_temperature = 15000
max_integrity = 120
Expand Down
1 change: 0 additions & 1 deletion code/modules/vehicles/mecha/working/working.dm
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/obj/vehicle/sealed/mecha/working
internal_damage_threshold = 60
allow_diagonal_movement = TRUE
/// Handles an internal ore box for working mechs
var/obj/structure/ore_box/box

Expand Down