Merge pull request #6965 from VOREStation/aro-fighters

Creates 2 new mech equipments and space fighters
This commit is contained in:
Aronai Sieyes
2020-03-24 14:04:42 -04:00
committed by GitHub
24 changed files with 761 additions and 210 deletions

View File

@@ -125,6 +125,7 @@
for(var/obj/effect/directional_shield/S in active_shields)
active_shields -= S
qdel(S)
set_light(0)
active = FALSE
/obj/item/shield_projector/proc/update_shield_positions()
@@ -179,13 +180,18 @@
if(always_on)
to_chat(user, "<span class='warning'>You can't seem to deactivate \the [src].</span>")
return
destroy_shields()
set_on(FALSE)
else
set_dir(user.dir) // Needed for linear shields.
create_shields()
set_on(TRUE)
visible_message("<span class='notice'>\The [user] [!active ? "de":""]activates \the [src].</span>")
/obj/item/shield_projector/proc/set_on(var/on)
if(isnull(on))
return
on ? create_shields() : destroy_shields() // Harmless if called when in the wrong state.
/obj/item/shield_projector/process()
if(shield_health < max_shield_health && ( (last_damaged_time + shield_regen_delay) < world.time) )
adjust_health(shield_regen_amount)