[MIRROR] Removes swarmers from the game [MDB IGNORE] (#10645)

* Removes swarmers from the game

* Removes swarmers from the game

Co-authored-by: Jeremiah <42397676+jlsnow301@users.noreply.github.com>
Co-authored-by: Tom <8881105+tf-4@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-01-15 18:19:18 +01:00
committed by GitHub
parent 5023cea362
commit f42d424b49
35 changed files with 42 additions and 1834 deletions

View File

@@ -1,103 +0,0 @@
/atom/movable/screen/swarmer
icon = 'icons/hud/swarmer.dmi'
/atom/movable/screen/swarmer/MouseEntered(location, control, params)
. = ..()
openToolTip(usr, src, params, title = name, content = desc)
/atom/movable/screen/swarmer/MouseExited(location, control, params)
closeToolTip(usr)
/atom/movable/screen/swarmer/fabricate_trap
icon_state = "ui_trap"
name = "Create Trap (Costs 4 Resources)"
desc = "Creates a trap that will nonlethally shock any non-swarmer that attempts to cross it."
/atom/movable/screen/swarmer/fabricate_trap/Click()
if(isswarmer(usr))
var/mob/living/simple_animal/hostile/swarmer/our_swarmer = usr
our_swarmer.create_trap()
/atom/movable/screen/swarmer/barricade
icon_state = "ui_barricade"
name = "Create Barricade (Costs 4 Resources)"
desc = "Creates a destructible barricade that will stop any non-swarmer from passing it. Also allows disabler beams to pass through."
/atom/movable/screen/swarmer/barricade/Click()
if(isswarmer(usr))
var/mob/living/simple_animal/hostile/swarmer/our_swarmer = usr
our_swarmer.create_barricade()
/atom/movable/screen/swarmer/replicate
icon_state = "ui_replicate"
name = "Replicate (Costs 20 Resources)"
desc = "Creates an autonomous melee drone that will follow you and attack all non-swamers entities in sight. They can be ordered to move to a target location by a middle-click."
/atom/movable/screen/swarmer/replicate/Click()
if(isswarmer(usr))
var/mob/living/simple_animal/hostile/swarmer/our_swarmer = usr
our_swarmer.create_swarmer()
/atom/movable/screen/swarmer/repair_self
icon_state = "ui_self_repair"
name = "Repair Self"
desc = "Fully repairs damage done to our body after a moderate delay."
/atom/movable/screen/swarmer/repair_self/Click()
if(isswarmer(usr))
var/mob/living/simple_animal/hostile/swarmer/our_swarmer = usr
our_swarmer.repair_self()
/atom/movable/screen/swarmer/toggle_light
icon_state = "ui_light"
name = "Toggle Light"
desc = "Toggles our inbuilt light on or off. Follower drones will also synchronize their lights with a master unit."
/atom/movable/screen/swarmer/toggle_light/Click()
if(isswarmer(usr))
var/mob/living/simple_animal/hostile/swarmer/our_swarmer = usr
our_swarmer.toggle_light()
/atom/movable/screen/swarmer/contact_swarmers
icon_state = "ui_contact_swarmers"
name = "Contact Swarmers"
desc = "Sends a message to all other swarmers, should they exist."
/atom/movable/screen/swarmer/contact_swarmers/Click()
if(isswarmer(usr))
var/mob/living/simple_animal/hostile/swarmer/our_swarmer = usr
our_swarmer.contact_swarmers()
/datum/hud/living/swarmer/New(mob/living/owner)
. = ..()
var/atom/movable/screen/using
using = new /atom/movable/screen/swarmer/fabricate_trap()
using.screen_loc = ui_hand_position(2)
using.hud = src
static_inventory += using
using = new /atom/movable/screen/swarmer/barricade()
using.screen_loc = ui_hand_position(1)
using.hud = src
static_inventory += using
using = new /atom/movable/screen/swarmer/replicate()
using.screen_loc = ui_zonesel
using.hud = src
static_inventory += using
using = new /atom/movable/screen/swarmer/repair_self()
using.screen_loc = ui_storage1
using.hud = src
static_inventory += using
using = new /atom/movable/screen/swarmer/toggle_light()
using.screen_loc = ui_back
using.hud = src
static_inventory += using
using = new /atom/movable/screen/swarmer/contact_swarmers()
using.screen_loc = ui_inventory
using.hud = src
static_inventory += using