mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 16:47:13 +01:00
Swarmer HUD cleanup and improvements (#6387)
This commit is contained in:
@@ -1,68 +1,75 @@
|
||||
/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. (Costs 4 resources)"
|
||||
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/S = usr
|
||||
S.create_trap()
|
||||
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. (Costs 4 resources)"
|
||||
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/S = usr
|
||||
S.create_barricade()
|
||||
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 a drone."
|
||||
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/S = usr
|
||||
S.create_swarmer()
|
||||
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 = "Repairs damage to our body."
|
||||
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/S = usr
|
||||
S.repair_self()
|
||||
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."
|
||||
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/S = usr
|
||||
S.toggle_light()
|
||||
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"
|
||||
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/S = usr
|
||||
S.contact_swarmers()
|
||||
var/mob/living/simple_animal/hostile/swarmer/our_swarmer = usr
|
||||
our_swarmer.contact_swarmers()
|
||||
|
||||
/datum/hud/swarmer/New(mob/owner)
|
||||
..()
|
||||
/datum/hud/living/swarmer/New(mob/living/owner)
|
||||
. = ..()
|
||||
var/atom/movable/screen/using
|
||||
|
||||
using = new /atom/movable/screen/swarmer/fabricate_trap()
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
light_system = MOVABLE_LIGHT
|
||||
light_range = 3
|
||||
light_color = LIGHT_COLOR_CYAN
|
||||
hud_type = /datum/hud/swarmer
|
||||
hud_type = /datum/hud/living/swarmer
|
||||
speech_span = SPAN_ROBOT
|
||||
///Resource points, generated by consuming metal/glass
|
||||
var/resources = 20
|
||||
|
||||
Reference in New Issue
Block a user