Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Make big ships feel tankier #2664

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion nsv13/code/modules/overmap/armour/nano_pump.dm
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@
idle_power_usage = 0 //reset power use
var/weight_class = OM.mass
if(weight_class >= MASS_TITAN)
weight_class = 10 //Because someone changed how mass classes work
weight_class = 90 //Because someone changed how mass classes work //Undoing this because a repair rate of .13% is aweful. maths out instead to .5% per pump per secondish
if(weight_class >= MASS_LARGE)
weight_class = 50 //Copying above because a repair rate of .19% Feels aweful as an engineer. maths out to .5% per pump per secondish
if(armour_allocation)
if(OM.armour_quadrants[quadrant]["current_armour"] < OM.armour_quadrants[quadrant]["max_armour"]) //Armour Check
var/armour_integrity = (OM.armour_quadrants[quadrant]["current_armour"] / OM.armour_quadrants[quadrant]["max_armour"]) * 100
Expand All @@ -84,6 +86,7 @@
return
structure_repair_amount = ((2 + (weight_class / 10)) * apnw.repair_efficiency * structure_allocation) / 100
if(apnw.repair_resources >= (structure_repair_amount * weight_class) * 1.5)
//message_admins("repaired [structure_repair_amount]") // Admeme message for mathing help
OM.obj_integrity += structure_repair_amount
if(OM.obj_integrity > OM.max_integrity)
OM.obj_integrity = OM.max_integrity
Expand Down
Loading