From f8f5f689d9cd91ff5f6ad727d99de269243f16b4 Mon Sep 17 00:00:00 2001 From: xxalpha Date: Thu, 27 Aug 2015 20:23:35 +0100 Subject: [PATCH] Gave engineering cyborgs permanent magboots effect. --- code/game/objects/items/robot/robot_upgrades.dm | 1 + code/modules/mob/living/silicon/robot/robot.dm | 2 ++ .../modules/mob/living/silicon/robot/robot_movement.dm | 10 ++++++++++ html/changelogs/xxalpha-magborg.yml | 6 ++++++ 4 files changed, 19 insertions(+) create mode 100644 html/changelogs/xxalpha-magborg.yml diff --git a/code/game/objects/items/robot/robot_upgrades.dm b/code/game/objects/items/robot/robot_upgrades.dm index 16f8a2b841e..e8e91caf7ac 100644 --- a/code/game/objects/items/robot/robot_upgrades.dm +++ b/code/game/objects/items/robot/robot_upgrades.dm @@ -37,6 +37,7 @@ R.notify_ai(2) R.update_icons() R.update_headlamp() + R.magpulse = 0 return 1 diff --git a/code/modules/mob/living/silicon/robot/robot.dm b/code/modules/mob/living/silicon/robot/robot.dm index f5a452c3ac3..03947d4941f 100644 --- a/code/modules/mob/living/silicon/robot/robot.dm +++ b/code/modules/mob/living/silicon/robot/robot.dm @@ -9,6 +9,7 @@ var/custom_name = "" designation = "Default" //used for displaying the prefix & getting the current module of cyborg has_limbs = 1 + var/magpulse = 0 //Hud stuff @@ -213,6 +214,7 @@ animation_length = 45 modtype = "Eng" feedback_inc("cyborg_engineering",1) + magpulse = 1 if("Janitor") module = new /obj/item/weapon/robot_module/janitor(src) diff --git a/code/modules/mob/living/silicon/robot/robot_movement.dm b/code/modules/mob/living/silicon/robot/robot_movement.dm index d459886311c..bb643c16811 100644 --- a/code/modules/mob/living/silicon/robot/robot_movement.dm +++ b/code/modules/mob/living/silicon/robot/robot_movement.dm @@ -13,3 +13,13 @@ tally = speed return tally+config.robot_delay + +/mob/living/silicon/robot/mob_negates_gravity() + return magpulse + +/mob/living/silicon/robot/mob_has_gravity() + return ..() || mob_negates_gravity() + +/mob/living/silicon/robot/experience_pressure_difference(pressure_difference, direction) + if(!magpulse) + return ..() diff --git a/html/changelogs/xxalpha-magborg.yml b/html/changelogs/xxalpha-magborg.yml new file mode 100644 index 00000000000..40a10134e57 --- /dev/null +++ b/html/changelogs/xxalpha-magborg.yml @@ -0,0 +1,6 @@ +author: xxalpha + +delete-after: True + +changes: + - rscadd: "Engineering cyborgs now have a constant magpulse."