mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user