forked from BoHBranch/BoH-Bay
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
5,534 additions
and
1,972 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
104 changes: 104 additions & 0 deletions
104
code/game/objects/structures/crates_lockers/munitions_crate.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
/* | ||
THRUSTERS | ||
*/ | ||
/obj/structure/closet/crate/munitions/thruster | ||
name = "\improper Missile thruster crate" | ||
desc = "A crate containing missile thrusters." | ||
closet_appearance = /decl/closet_appearance/crate/munitions/thruster | ||
|
||
/obj/structure/closet/crate/munitions/thruster/point | ||
name = "\improper Missile point thruster crate" | ||
desc = "A crate containing point thrusters." | ||
|
||
/obj/structure/closet/crate/munitions/thruster/planet | ||
name = "\improper Missile planet thruster crate" | ||
desc = "A crate containing missile planet thrusters." | ||
|
||
/obj/structure/closet/crate/munitions/thruster/hunter | ||
name = "\improper Missile planet thruster crate" | ||
desc = "A crate containing missile planet thrusters." | ||
|
||
|
||
/obj/structure/closet/crate/munitions/thruster/WillContain() | ||
return list( | ||
/obj/item/missile_equipment/thruster = 20, | ||
) | ||
|
||
/obj/structure/closet/crate/munitions/thruster/point/WillContain() | ||
return list( | ||
/obj/item/missile_equipment/thruster/point = 10, | ||
) | ||
|
||
/obj/structure/closet/crate/munitions/thruster/planet/WillContain() | ||
return list( | ||
/obj/item/missile_equipment/thruster = 10, | ||
) | ||
|
||
/obj/structure/closet/crate/munitions/thruster/hunter/WillContain() | ||
return list( | ||
/obj/item/missile_equipment/thruster = 5, | ||
) | ||
|
||
/* | ||
PAYLOADS | ||
*/ | ||
|
||
/obj/structure/closet/crate/munitions/payload | ||
name = "\improper Missile payload crate" | ||
desc = "A crate containing missile payloads." | ||
closet_appearance = /decl/closet_appearance/crate/munitions/payload | ||
|
||
/obj/structure/closet/crate/munitions/payload/diffuser | ||
name = "\improper Missile diffuser payload crate" | ||
desc = "A crate containing diffuser missile payloads." | ||
|
||
/obj/structure/closet/crate/munitions/payload/emp | ||
name = "\improper Missile EMP payload crate" | ||
desc = "A crate containing EMP missile payloads." | ||
|
||
/obj/structure/closet/crate/munitions/payload/explosive | ||
name = "\improper Missile explosive payload crate" | ||
desc = "A crate containing explosive missile payloads." | ||
|
||
/obj/structure/closet/crate/munitions/payload/antimissile | ||
name = "\improper Missile antimissile payload crate" | ||
desc = "A crate containing antimissile missile payloads." | ||
|
||
|
||
|
||
/obj/structure/closet/crate/munitions/payload/diffuser/WillContain() | ||
return list( | ||
/obj/item/missile_equipment/payload/diffuser = 5, | ||
) | ||
|
||
/obj/structure/closet/crate/munitions/payload/emp/WillContain() | ||
return list( | ||
/obj/item/missile_equipment/payload/emp = 5, | ||
) | ||
|
||
/obj/structure/closet/crate/munitions/payload/explosive/WillContain() | ||
return list( | ||
/obj/item/missile_equipment/payload/explosive = 15, | ||
) | ||
|
||
/obj/structure/closet/crate/munitions/payload/antimissile/WillContain() | ||
return list( | ||
/obj/item/missile_equipment/payload/antimissile = 10, | ||
) | ||
/* | ||
Equipment | ||
*/ | ||
|
||
/obj/structure/closet/crate/munitions/equipment | ||
name = "\improper Missile equipment crate" | ||
desc = "A crate containing explosive missile equipment." | ||
closet_appearance = /decl/closet_appearance/crate/munitions/equipment | ||
|
||
/obj/structure/closet/crate/munitions/equipment/autoarm | ||
name = "\improper Missile autoarm crate" | ||
desc = "A crate containing autoarm missile equipment." | ||
|
||
/obj/structure/closet/crate/munitions/equipment/autoarm/WillContain() | ||
return list( | ||
/obj/item/missile_equipment/autoarm = 20, | ||
) |
11 changes: 11 additions & 0 deletions
11
code/modules/overmap/projectiles/missiles/equipment/payload/payload.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Destroys missiles that are traveling on the overmap | ||
/obj/item/missile_equipment/payload | ||
name = "missile payload" | ||
desc = "dangerous equipment!!" | ||
|
||
/obj/item/missile_equipment/payload/on_missile_activated(var/obj/effect/overmap/projectile/P) | ||
P.set_dangerous(TRUE) | ||
P.set_enter_zs(TRUE) | ||
|
||
/obj/item/missile_equipment/payload/on_trigger() | ||
qdel(loc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.