Skip to content

Commit

Permalink
mortars can be deployed and fired at any z level (#279)
Browse files Browse the repository at this point in the history
Cant fire across z-levels, but it is what it is.
  • Loading branch information
AndroBetel committed Jun 6, 2024
1 parent 68cdbf0 commit 939eaef
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions code/modules/cm_marines/equipment/mortar/mortars.dm
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,6 @@
if(busy)
to_chat(user, SPAN_WARNING("Someone else is currently using [src]."))
return
if(!is_ground_level(z))
to_chat(user, SPAN_WARNING("You cannot fire [src] here."))
return
if(targ_x == 0 && targ_y == 0) //Mortar wasn't set
to_chat(user, SPAN_WARNING("[src] needs to be aimed first."))
return
Expand Down Expand Up @@ -385,9 +382,6 @@
if(!skillcheck(user, SKILL_ENGINEER, SKILL_ENGINEER_TRAINED))
to_chat(user, SPAN_WARNING("You don't have the training to deploy [src]."))
return
if(!is_ground_level(deploy_turf.z))
to_chat(user, SPAN_WARNING("You cannot deploy [src] here."))
return
var/area/A = get_area(deploy_turf)
if(CEILING_IS_PROTECTED(A.ceiling, CEILING_PROTECTION_TIER_1))
to_chat(user, SPAN_WARNING("You probably shouldn't deploy [src] indoors."))
Expand Down

0 comments on commit 939eaef

Please sign in to comment.