From bcfbfdedba9ad7d2b41d0dd3c1995f56c54a3ae4 Mon Sep 17 00:00:00 2001 From: Atlantiscze Date: Sun, 17 May 2015 02:54:58 +0200 Subject: [PATCH] CPU Generation adjustment - Doubles CPU generation from APCs. Testing revealed that current values are simply too small. - Decreases DualCPU hardware boost to +50% CPU generated (instead of +100%) - Minor code clean-up at hardware selection screen. --- code/game/gamemodes/malfunction/malf_hardware.dm | 2 +- .../malfunction/newmalf_ability_trees/HELPERS.dm | 16 +++++----------- code/modules/mob/living/silicon/ai/ai.dm | 4 ++-- ingame_manuals/malf_ai.txt | 2 +- 4 files changed, 9 insertions(+), 15 deletions(-) diff --git a/code/game/gamemodes/malfunction/malf_hardware.dm b/code/game/gamemodes/malfunction/malf_hardware.dm index c50a66b7f1c..a3c91b53f2b 100644 --- a/code/game/gamemodes/malfunction/malf_hardware.dm +++ b/code/game/gamemodes/malfunction/malf_hardware.dm @@ -18,7 +18,7 @@ /datum/malf_hardware/dual_cpu name = "Secondary Processor Unit" - desc = "Secondary coprocessor that doubles amount of CPU time generated." + desc = "Secondary coprocessor that increases amount of generated CPU power by 50%" /datum/malf_hardware/dual_ram name = "Secondary Memory Bank" diff --git a/code/game/gamemodes/malfunction/newmalf_ability_trees/HELPERS.dm b/code/game/gamemodes/malfunction/newmalf_ability_trees/HELPERS.dm index 33a24e0cd2a..0851a3771a6 100644 --- a/code/game/gamemodes/malfunction/newmalf_ability_trees/HELPERS.dm +++ b/code/game/gamemodes/malfunction/newmalf_ability_trees/HELPERS.dm @@ -24,18 +24,12 @@ if(choice == "CANCEL") return var/note = null - switch(choice) - if("APU Generator") - note = "APU Generator - When enabled it will keep your core powered. Power output is not large enough so your abilities won't be available while running on APU power. It is also very fragile and prone to failure when your physical core is damaged." - if("Turrets Focus Enhancer") - note = "Overcharges turrets to shoot faster. Turrets will also gain higher health and passive regeneration. This however massively increases power usage of turrets, espicially when regenerating." - if("Secondary Processor Unit") - note = "Doubles your CPU time generation." - if("Secondary Memory Bank") - note = "Doubles your CPU time storage." - if("Self-Destruct Explosives") - note = "High yield explosives are attached to your physical mainframe. This hardware comes with activation driver. Explosives will destroy your core and everything around it." + + if(choice) + note = choice.desc + if(!note) + error("Hardware without description: [choice]") return var/confirmation = input("[note] - Is this what you want?") in list("Yes", "No") diff --git a/code/modules/mob/living/silicon/ai/ai.dm b/code/modules/mob/living/silicon/ai/ai.dm index 191aa235c66..b16b14899b4 100644 --- a/code/modules/mob/living/silicon/ai/ai.dm +++ b/code/modules/mob/living/silicon/ai/ai.dm @@ -758,12 +758,12 @@ var/list/ai_verbs_default = list( // Off-Station APCs should not count towards CPU generation. for(var/obj/machinery/power/apc/A in hacked_apcs) if(A.z == 1) - cpu_gain += 0.001 + cpu_gain += 0.002 cpu_storage += 10 research.max_cpu = cpu_storage + override_CPUStorage if(hardware && istype(hardware, /datum/malf_hardware/dual_ram)) - research.max_cpu = research.max_cpu * 2 + research.max_cpu = research.max_cpu * 1.5 research.stored_cpu = min(research.stored_cpu, research.max_cpu) research.cpu_increase_per_tick = cpu_gain + override_CPURate diff --git a/ingame_manuals/malf_ai.txt b/ingame_manuals/malf_ai.txt index 8e7548f7d07..65424f24ed3 100644 --- a/ingame_manuals/malf_ai.txt +++ b/ingame_manuals/malf_ai.txt @@ -9,7 +9,7 @@ As malfunctioning AI, your primary goal is to overtake station's systems. To do As malfunctioning AI, you may select one hardware piece to help you. Remember that once you select hardware piece, you cannot select another one, so choose wisely! Hardware may be selected by clicking "Select Hardware" button in Hardware tab. Following is list of possible hardware pieces:
APU Generator - Auxiliary Power Unit which allows you to operate even without external power. However, running on APU will stop your CPU time generation, and temporarily disable most of your abilities. APU is also somewhat vulnerable to physical damage, and will fail if your core hardware integrity drops below 50%.
Turrets Focus Enhancer - Removes safeties on installed turrets, boosting their rate of fire, health and enabling nano-regeneration module. This however increases power usage considerably, espicially when regenerating damage.
-Secondary Processor Unit - Simple upgrade that doubles your CPU time generation. Useful if you need to speed up your research.
+Secondary Processor Unit - Simple upgrade that increases your CPU time generation by 50%. Useful if you need to speed up your research.
Secondary Memory Bank - Doubles amount of maximal CPU time you may store. This is useful if you need to use lots of abilities in short amount of time.
Self-Destruct Explosives - Large blocks of C4 are attached to your physical core. This C4 has 15 second timer, and may be activated by special button that appears in your Hardware tab. This self-destruct will remain active, even if you are destroyed. If timer reaches 0 your core explodes in strong explosion. Obviously, this destroys you, as well as anyone nearby.