Skip to content

Commit

Permalink
Added new Varible for Mini-rockets, allowing their name to be set. th…
Browse files Browse the repository at this point in the history
…is SHOULD allow more rocket types to be more easily made with correct descriptions which will be useful for the UPP vs USCM game mode.
  • Loading branch information
Tobias-Reaper-MD committed Aug 22, 2024
1 parent b957eaf commit ab09b7a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions code/modules/cm_marines/dropship_ammo.dm
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@
transferable_ammo = TRUE
point_cost = 300
fire_mission_delay = 3 //high cooldown
var/rocket_name = "minirocket"

/obj/structure/ship_ammo/minirocket/detonate_on(turf/impact, obj/structure/dropship_equipment/weapon/fired_from)
impact.ceiling_debris_check(2)
Expand All @@ -393,11 +394,11 @@

/obj/structure/ship_ammo/minirocket/show_loaded_desc(mob/user)
if(ammo_count)
return "It's loaded with \a [src] containing [ammo_count] minirocket\s."
return "It's loaded with \a [src] containing [ammo_count] [rocket_name]\s."

/obj/structure/ship_ammo/minirocket/get_examine_text(mob/user)
. = ..()
. += "It has [ammo_count] minirocket\s."
. += "It has [ammo_count][rocket_name]\s."


/obj/structure/ship_ammo/minirocket/incendiary
Expand All @@ -406,6 +407,8 @@
icon_state = "minirocket_inc"
point_cost = 500
fire_mission_delay = 3 //high cooldown
rocket_name = incendiary minirocket


/obj/structure/ship_ammo/minirocket/incendiary/detonate_on(turf/impact, obj/structure/dropship_equipment/weapon/fired_from)
..()
Expand Down

0 comments on commit ab09b7a

Please sign in to comment.