Skip to content

Commit

Permalink
Patrol mission point changes (#16306)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lumipharon authored Jul 9, 2024
1 parent 140dc0d commit 4ab9750
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions code/datums/gamemodes/campaign/missions/mech_wars.dm
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
starting_faction_objective_description = "Major Victory: Wipe out all hostiles in the area of operation. Minor Victory: Eliminate more hostiles than you lose."
hostile_faction_objective_description = "Major Victory: Wipe out all hostiles in the area of operation. Minor Victory: Eliminate more hostiles than you lose."
mission_start_delay = 3 MINUTES //since there is actual mech prep time required
capture_point_target = 400
starting_faction_additional_rewards = "Mechanised units will be allocated to your battalion for use in future missions."
hostile_faction_additional_rewards = "Mechanised units will be allocated to your battalion for use in future missions."
outro_message = list(
Expand Down Expand Up @@ -110,13 +111,18 @@
. = ..()
if(outcome)
return
if(!ismecha(mission_obj) && !isarmoredvehicle(mission_obj))
var/kill_reward = 0
if(ismecha(mission_obj))
kill_reward = 10
if(isarmoredvehicle(mission_obj))
kill_reward = 30
if(!kill_reward)
return
var/obj/vehicle/sealed/obj_vehicle = mission_obj
if(obj_vehicle.faction == hostile_faction)
start_team_cap_points += 10
start_team_cap_points += kill_reward
else if(obj_vehicle.faction == starting_faction)
hostile_team_cap_points += 10
hostile_team_cap_points += kill_reward


/datum/campaign_mission/tdm/mech_wars/som
Expand Down
2 changes: 1 addition & 1 deletion code/datums/gamemodes/campaign/missions/patrol_mission.dm
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
)

///Point limit to win the game via objectives
var/capture_point_target = 400
var/capture_point_target = 375
///starting team's point count
var/start_team_cap_points = 0
///hostile team's point count
Expand Down

0 comments on commit 4ab9750

Please sign in to comment.