From e82c02744e953c974139cc279b2ec6c2f8d32b7d Mon Sep 17 00:00:00 2001 From: Jordie0608 Date: Wed, 27 May 2015 16:54:13 +1000 Subject: [PATCH] paerbin clickdown, removed protectstation, rounded ui chem/plasma count, non-mob hivebot beacon --- code/game/gamemodes/blob/overmind.dm | 4 +- code/game/objects/items/weapons/AI_modules.dm | 10 ---- code/game/objects/structures/hivebot.dm | 37 ++++++++++++++ .../modules/mob/living/carbon/alien/screen.dm | 2 +- code/modules/mob/living/carbon/human/life.dm | 2 +- code/modules/mob/living/carbon/monkey/life.dm | 2 +- .../living/simple_animal/hostile/hivebot.dm | 51 +------------------ code/modules/paperwork/paperbin.dm | 1 + .../research/designs/AI_module_designs.dm | 10 ---- tgstation.dme | 1 + 10 files changed, 45 insertions(+), 75 deletions(-) create mode 100644 code/game/objects/structures/hivebot.dm diff --git a/code/game/gamemodes/blob/overmind.dm b/code/game/gamemodes/blob/overmind.dm index 2ca962f00df..840e16b90f5 100644 --- a/code/game/gamemodes/blob/overmind.dm +++ b/code/game/gamemodes/blob/overmind.dm @@ -65,12 +65,12 @@ /mob/camera/blob/proc/update_health() if(blob_core) - hud_used.blobhealthdisplay.maptext = "
[blob_core.health]
" + hud_used.blobhealthdisplay.maptext = "
[round(blob_core.health)]
" /mob/camera/blob/proc/add_points(var/points) if(points != 0) blob_points = Clamp(blob_points + points, 0, max_blob_points) - hud_used.blobpwrdisplay.maptext = "
[src.blob_points]
" + hud_used.blobpwrdisplay.maptext = "
[round(src.blob_points)]
" /mob/camera/blob/say(var/message) if (!message) diff --git a/code/game/objects/items/weapons/AI_modules.dm b/code/game/objects/items/weapons/AI_modules.dm index ff828898c6a..479cfbbcfd0 100644 --- a/code/game/objects/items/weapons/AI_modules.dm +++ b/code/game/objects/items/weapons/AI_modules.dm @@ -153,16 +153,6 @@ AI MODULES return targetName -/******************** ProtectStation ********************/ - -/obj/item/weapon/aiModule/supplied/protectStation - name = "'ProtectStation' AI Module" - desc = "A 'protect station' AI module: 'Protect the space station against damage. Anyone you see harming the station is to be no longer considered human, and is a threat to the station which must be neutralized.'" - origin_tech = "programming=3;materials=4" //made of gold - laws = list("Protect the space station against damage. Anyone you see harming the station is to be no longer considered human, and is a threat to the station which must be neutralized.") - lawpos = 5 - - /******************** Quarantine ********************/ /obj/item/weapon/aiModule/supplied/quarantine diff --git a/code/game/objects/structures/hivebot.dm b/code/game/objects/structures/hivebot.dm new file mode 100644 index 00000000000..3280a86625a --- /dev/null +++ b/code/game/objects/structures/hivebot.dm @@ -0,0 +1,37 @@ +/obj/structure/hivebot_beacon + name = "beacon" + desc = "Some odd beacon thing." + icon = 'icons/mob/hivebot.dmi' + icon_state = "def_radar-off" + anchored = 1 + density = 1 + var/bot_type = "norm" + var/bot_amt = 10 + +/obj/structure/hivebot_beacon/New() + ..() + var/datum/effect/effect/system/harmless_smoke_spread/smoke = new /datum/effect/effect/system/harmless_smoke_spread() + smoke.set_up(5, 0, src.loc) + smoke.start() + visible_message("The [src] warps in!") + playsound(src.loc, 'sound/effects/EMPulse.ogg', 25, 1) + spawn(rand(10,600)) + warpbots() + +/obj/structure/hivebot_beacon/proc/warpbots() + icon_state = "def_radar" + visible_message("The [src] turns on!") + while(bot_amt > 0) + bot_amt-- + switch(bot_type) + if("norm") + new /mob/living/simple_animal/hostile/hivebot(get_turf(src)) + if("range") + new /mob/living/simple_animal/hostile/hivebot/range(get_turf(src)) + if("rapid") + new /mob/living/simple_animal/hostile/hivebot/rapid(get_turf(src)) + spawn(100) + visible_message("The [src] warps out!") + playsound(src.loc, 'sound/effects/EMPulse.ogg', 25, 1) + qdel(src) + return \ No newline at end of file diff --git a/code/modules/mob/living/carbon/alien/screen.dm b/code/modules/mob/living/carbon/alien/screen.dm index 8ad742fdb64..731fc39b4f1 100644 --- a/code/modules/mob/living/carbon/alien/screen.dm +++ b/code/modules/mob/living/carbon/alien/screen.dm @@ -4,7 +4,7 @@ /mob/living/carbon/alien/proc/updatePlasmaDisplay() if(hud_used) //clientless aliens - hud_used.alien_plasma_display.maptext = "
[storedPlasma]
" + hud_used.alien_plasma_display.maptext = "
[round(storedPlasma)]
" /mob/living/carbon/alien/larva/updatePlasmaDisplay() return \ No newline at end of file diff --git a/code/modules/mob/living/carbon/human/life.dm b/code/modules/mob/living/carbon/human/life.dm index d3aa47771a2..4f953dff6e9 100644 --- a/code/modules/mob/living/carbon/human/life.dm +++ b/code/modules/mob/living/carbon/human/life.dm @@ -306,7 +306,7 @@ if(mind.changeling) mind.changeling.regenerate() hud_used.lingchemdisplay.invisibility = 0 - hud_used.lingchemdisplay.maptext = "
[mind.changeling.chem_charges]
" + hud_used.lingchemdisplay.maptext = "
[round(mind.changeling.chem_charges)]
" else hud_used.lingchemdisplay.invisibility = 101 diff --git a/code/modules/mob/living/carbon/monkey/life.dm b/code/modules/mob/living/carbon/monkey/life.dm index 1a11316bb04..1005cf6f2fc 100644 --- a/code/modules/mob/living/carbon/monkey/life.dm +++ b/code/modules/mob/living/carbon/monkey/life.dm @@ -145,7 +145,7 @@ if(mind.changeling) mind.changeling.regenerate() hud_used.lingchemdisplay.invisibility = 0 - hud_used.lingchemdisplay.maptext = "
[mind.changeling.chem_charges]
" + hud_used.lingchemdisplay.maptext = "
[round(mind.changeling.chem_charges)]
" else hud_used.lingchemdisplay.invisibility = 101 diff --git a/code/modules/mob/living/simple_animal/hostile/hivebot.dm b/code/modules/mob/living/simple_animal/hostile/hivebot.dm index eebd7efb44a..ce67552c952 100644 --- a/code/modules/mob/living/simple_animal/hostile/hivebot.dm +++ b/code/modules/mob/living/simple_animal/hostile/hivebot.dm @@ -50,53 +50,4 @@ s.start() ghostize() qdel(src) - return - -/mob/living/simple_animal/hostile/hivebot/tele//this still needs work - name = "beacon" - desc = "Some odd beacon thing." - icon = 'icons/mob/hivebot.dmi' - icon_state = "def_radar-off" - icon_living = "def_radar-off" - health = 200 - maxHealth = 200 - status_flags = 0 - anchored = 1 - stop_automated_movement = 1 - var/bot_type = "norm" - var/bot_amt = 10 - var/spawn_delay = 600 - var/turn_on = 0 - var/auto_spawn = 1 - -/mob/living/simple_animal/hostile/hivebot/tele/New() - ..() - var/datum/effect/effect/system/harmless_smoke_spread/smoke = new /datum/effect/effect/system/harmless_smoke_spread() - smoke.set_up(5, 0, src.loc) - smoke.start() - visible_message("The [src] warps in!") - playsound(src.loc, 'sound/effects/EMPulse.ogg', 25, 1) - -/mob/living/simple_animal/hostile/hivebot/tele/proc/warpbots() - icon_state = "def_radar" - visible_message("The [src] turns on!") - while(bot_amt > 0) - bot_amt-- - switch(bot_type) - if("norm") - new /mob/living/simple_animal/hostile/hivebot(get_turf(src)) - if("range") - new /mob/living/simple_animal/hostile/hivebot/range(get_turf(src)) - if("rapid") - new /mob/living/simple_animal/hostile/hivebot/rapid(get_turf(src)) - spawn(100) - qdel(src) - return - - -/mob/living/simple_animal/hostile/hivebot/tele/Life() - ..() - if(stat == 0) - if(prob(2))//Might be a bit low, will mess with it likely - warpbots() - + return \ No newline at end of file diff --git a/code/modules/paperwork/paperbin.dm b/code/modules/paperwork/paperbin.dm index 5d34743e722..db8c54962e3 100644 --- a/code/modules/paperwork/paperbin.dm +++ b/code/modules/paperwork/paperbin.dm @@ -39,6 +39,7 @@ /obj/item/weapon/paper_bin/attack_hand(mob/user) if(user.lying) return + user.changeNext_move(CLICK_CD_MELEE) if(amount >= 1) amount-- update_icon() diff --git a/code/modules/research/designs/AI_module_designs.dm b/code/modules/research/designs/AI_module_designs.dm index 9915b0eb92c..8f924f22047 100644 --- a/code/modules/research/designs/AI_module_designs.dm +++ b/code/modules/research/designs/AI_module_designs.dm @@ -23,16 +23,6 @@ build_path = /obj/item/weapon/aiModule/zeroth/oneHuman category = list("AI Modules") -/datum/design/protectstation_module - name = "Module Design (ProtectStation)" - desc = "Allows for the construction of a ProtectStation AI Module." - id = "protectstation_module" - req_tech = list("programming" = 3, "materials" = 6) - build_type = IMPRINTER - materials = list("$glass" = 1000, "sacid" = 20, "$gold" = 100) - build_path = /obj/item/weapon/aiModule/supplied/protectStation - category = list("AI Modules") - /datum/design/quarantine_module name = "Module Design (Quarantine)" desc = "Allows for the construction of a Quarantine AI Module." diff --git a/tgstation.dme b/tgstation.dme index 589476fedf5..5104d551e97 100644 --- a/tgstation.dme +++ b/tgstation.dme @@ -698,6 +698,7 @@ #include "code\game\objects\structures\girders.dm" #include "code\game\objects\structures\grille.dm" #include "code\game\objects\structures\guncase.dm" +#include "code\game\objects\structures\hivebot.dm" #include "code\game\objects\structures\janicart.dm" #include "code\game\objects\structures\kitchen_spike.dm" #include "code\game\objects\structures\ladders.dm"