Ports advanced shield generators from Baystation

- Creates new advanced shield generators, designed to replace old hull and bubble shield generators.
- Upgrades the floor mounted and handheld shield diffusers.
- Makes underfloor shield diffusers actually constructable.
- Handheld diffusers orderable via uplink.
- Removes supply packs and research datums  for the old generators, but leaves their code in place for maps that still use them.
- Integrates with the meteor and electrical storm events.
- Integrates with mob AI (they know how to attack it)
This commit is contained in:
Leshana
2020-04-03 00:36:46 -04:00
parent a91150750f
commit e2bd546f61
18 changed files with 1349 additions and 125 deletions

View File

@@ -285,6 +285,12 @@
ai_log("destroy_surroundings() : Attacking hull shield.", AI_LOG_INFO)
return melee_attack(shield)
// Kill energy shields in the way.
for(var/obj/effect/shield/S in problem_turf)
if(S.density) // Don't attack shields that are already down.
ai_log("destroy_surroundings() : Attacking energy shield.", AI_LOG_INFO)
return melee_attack(S)
// Kill common obstacle in the way like tables.
var/obj/structure/obstacle = locate(/obj/structure, problem_turf)
if(istype(obstacle, /obj/structure/window) || istype(obstacle, /obj/structure/closet) || istype(obstacle, /obj/structure/table) || istype(obstacle, /obj/structure/grille))