• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 16:47
CEST 22:47
KST 05:47
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
BGE Stara Zagora 2025: Info & Preview25Code S RO12 Preview: GuMiho, Bunny, SHIN, ByuN3The Memories We Share - Facing the Final(?) GSL46Code S RO12 Preview: Cure, Zoun, Solar, Creator4[ASL19] Finals Preview: Daunting Task30
Community News
[BSL20] ProLeague: Bracket Stage & Dates7GSL Ro4 and Finals moved to Sunday June 15th12Weekly Cups (May 27-June 1): ByuN goes back-to-back0EWC 2025 Regional Qualifier Results26Code S RO12 Results + RO8 Groups (2025 Season 2)3
StarCraft 2
General
The SCII GOAT: A statistical Evaluation Magnus Carlsen and Fabi review Clem's chess game. BGE Stara Zagora 2025: Info & Preview Jim claims he and Firefly were involved in match-fixing GSL Ro4 and Finals moved to Sunday June 15th
Tourneys
Bellum Gens Elite: Stara Zagora 2025 $5,100+ SEL Season 2 Championship (SC: Evo) SOOPer7s Showmatches 2025 Cheeseadelphia 2025 - Open Bracket LAN! $25,000+ WardiTV 2025 Series
Strategy
[G] Darkgrid Layout Simple Questions Simple Answers [G] PvT Cheese: 13 Gate Proxy Robo
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 476 Charnel House Mutation # 475 Hard Target Mutation # 474 Futile Resistance Mutation # 473 Cold is the Void
Brood War
General
I made an ASL quiz BGH auto balance -> http://bghmmr.eu/ [BSL20] ProLeague: Bracket Stage & Dates BW General Discussion Will foreigners ever be able to challenge Koreans?
Tourneys
[ASL19] Grand Finals [Megathread] Daily Proleagues [BSL20] ProLeague Bracket Stage - Day 2 [BSL20] ProLeague Bracket Stage - Day 1
Strategy
I am doing this better than progamers do. [G] How to get started on ladder as a new Z player
Other Games
General Games
Path of Exile Nintendo Switch Thread Stormgate/Frost Giant Megathread Mechabellum Monster Hunter Wilds
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
LiquidLegends to reintegrate into TL.net
Heroes of the Storm
Heroes of the Storm 2.0 Simple Questions, Simple Answers
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread Vape Nation Thread European Politico-economics QA Mega-thread
Fan Clubs
Maru Fan Club Serral Fan Club
Media & Entertainment
Korean Music Discussion [Manga] One Piece
Sports
2024 - 2025 Football Thread Formula 1 Discussion NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread Cleaning My Mechanical Keyboard
TL Community
The Automated Ban List
Blogs
Cognitive styles x game perf…
TrAiDoS
StarCraft improvement
iopq
Heero Yuy & the Tax…
KrillinFromwales
I was completely wrong ab…
jameswatts
Need Your Help/Advice
Glider
Trip to the Zoo
micronesia
Poker
Nebuchad
Customize Sidebar...

Website Feedback

Closed Threads



Active: 19400 users

[Q] Cost to repair?

Forum Index > Brood War Strategy
Post a Reply
1 2 3 4 5 Next All
seppolevne
Profile Blog Joined February 2009
Canada1681 Posts
Last Edited: 2009-04-25 18:19:52
April 23 2009 23:07 GMT
#1
I was just wondering if the cost to repair a damaged building/unit follows a specific formula. Obviously more expensive things will cost more to repair, but would something that costs 200min/100gas cost say 100min/50gas to repair from 1 hp?

Update: Unit repair info:
+ Show Spoiler +

Siege tank: 1-150hp
Minerals/Gas: 33/33
%of new: 22/33

SCV: 1-60hp
Minerals: 17
%of new: 34

Goliath: 1-125
Minerals/Gas: 34/17
%of new: 34/34

Vulture: 1-80hp
Minerals: 25
%of new: 33

Valkyrie: 1-200hp
Minerals/Gas: 84/42
%of new: 34/34

Wraith: 1-120hp
Minerals/Gas: 33/33
%of new: 22/33

Science Vessel: 1-200hp
Minerals/Gas: 33/66
%of new: 33/29

Dropship: 1-150hp
Minerals/Gas: 33/33
%of new: 33/33

Battlecruiser: 1-500hp
Minerals/Gas: 96/96
%of new: 24/32


Update: Building repair info:
+ Show Spoiler +

CC: 1-1500hp
Minerals: 128
%of new: 31,25

Supply Depot: 1-500hp
Minerals: 28
%of new: 35,7

Bunker: 1-350hp
Minerals: 24
%of new: 41,6

Turret: 1-200hp
Minerals: 26
%of new: 28,8

Barracks: 1-1000hp
Minerals: 50
%of new: 30

Refinery: 1-750hp
Minerals: 32
%of new: 31,25

Engineering Bay: 1-850hp
Minerals: 42
%of new: 29,76

academy: 1-600hp
Minerals: 50
%of new: 30

Factory: 1-1250hp
Minerals/Gas: 68/34
%of new: 29,41/29,41

Armory: 1-750hp
Minerals/Gas: 36/18
%of new: 27,7/27,7

Starport:1-1300hp
Minerals/Gas: 34/34
%of new: 44,1/29,4

Science Facility: 1-850hp
Minerals/Gas: 34/34
%of new: 29,4/44,1

Thanks to Jiiks for the repair info
Thanks to everyone for their theorycrafting/two cents
J- Pirate Udyr WW T- Pirate Riven Galio M- Galio Annie S- Sona Lux -- Always farm, never carry.
arb
Profile Blog Joined April 2008
Noobville17921 Posts
April 23 2009 23:10 GMT
#2
i think its 1 min /1 gas for 2hp..though im not sure
Artillery spawned from the forges of Hell
MuR)Ernu
Profile Joined September 2008
Finland768 Posts
April 23 2009 23:11 GMT
#3
i think its only like something like 2 minerals per HP or something. Havent tested it but it isn't anything big i assume
Azrael1111
Profile Joined July 2008
United States550 Posts
April 23 2009 23:12 GMT
#4
I know it takes no gas, and its probably like 5 hp per mineral
peidongyang
Profile Joined January 2009
Canada2084 Posts
April 23 2009 23:15 GMT
#5
Sry, tried googling noone knows the exact cost lol

people just keep saying, the more it cost, the more to repair, basically useless stuff like that.
the throws never bothered me anyway
KwarK
Profile Blog Joined July 2006
United States42415 Posts
April 23 2009 23:19 GMT
#6
I often wonder this too when I'm just setting fire to stuff aimlessly early game in PvT. I think it'd be really interesting if a unit cost significantly more to repair from 1 hp than to replace because it'd mean that repair should only be used when unit production is limited and a boost in unit count is essential, such as a timing push or a desperate defence. Whether to repair or not would become a great benefit/cost question which players would have to deal with in split second decisions.
I expect it's cheaper to repair though.
ModeratorThe angels have the phone box
seppolevne
Profile Blog Joined February 2009
Canada1681 Posts
April 23 2009 23:27 GMT
#7
On April 24 2009 08:19 Kwark wrote:
I often wonder this too when I'm just setting fire to stuff aimlessly early game in PvT. I think it'd be really interesting if a unit cost significantly more to repair from 1 hp than to replace because it'd mean that repair should only be used when unit production is limited and a boost in unit count is essential, such as a timing push or a desperate defence. Whether to repair or not would become a great benefit/cost question which players would have to deal with in split second decisions.
I expect it's cheaper to repair though.


Or choosing which base to attack at the wall-in to make the biggest (albeit small) economic impact.
J- Pirate Udyr WW T- Pirate Riven Galio M- Galio Annie S- Sona Lux -- Always farm, never carry.
LosingID8
Profile Blog Joined December 2006
CA10825 Posts
April 23 2009 23:28 GMT
#8
On April 24 2009 08:12 Azrael1111 wrote:
I know it takes no gas, and its probably like 5 hp per mineral

i don't think that's right.

buildings that only cost minerals will not cost any gas to repair. however advanced structures that cost gas to build will use gas to repair. i think it's the same with units as well.
ModeratorResident K-POP Elitist
Clasic
Profile Blog Joined January 2009
Bosnia-Herzegovina1437 Posts
April 23 2009 23:30 GMT
#9
On April 24 2009 08:28 LosingID8 wrote:
Show nested quote +
On April 24 2009 08:12 Azrael1111 wrote:
I know it takes no gas, and its probably like 5 hp per mineral

i don't think that's right.

buildings that only cost minerals will not cost any gas to repair. however advanced structures that cost gas to build will use gas to repair. i think it's the same with units as well.


So wait, tanks cost gas to repair? Funny, thought it was only minerals.
No no no no its not mine!
Grobyc
Profile Blog Joined June 2008
Canada18410 Posts
April 23 2009 23:32 GMT
#10
On April 24 2009 08:11 MuR)Ernu wrote:
i think its only like something like 2 minerals per HP or something. Havent tested it but it isn't anything big i assume

That would be a lot... A battlecruiser has 500HP. If it had 1 life and you repaired it to 500 according to your answer that would be just about 1000$ to repair. This obviously isn't the case, I would think it's maybe something like 1 mineral/gas per 2 or 3 HP like mentioned before.

Also, note: Buildings repair faster than units; I don't know if that has anything to do with it but yeahhhhh. Different units/buildings repair faster than others.

I'm pretty sure the cost and repair rate are unit specific though. Repairing 100HP of a battlecruiser costs more than 100HP of a siege tank, even though they both cost minerals + cast.

Someone want to test this?
If you watch Godzilla backwards it's about a benevolent lizard who helps rebuild a city and then moonwalks into the ocean.
Michaelj
Profile Joined February 2008
United States186 Posts
Last Edited: 2009-04-23 23:41:30
April 23 2009 23:35 GMT
#11
Some empirical testing..

supply depot from 20 hp to 500 hp - 33 mineral
barrack from 20 hp to 1000 hp - 51 mineral
factory from 10 hp to 1250 hp - 68 min, 34 gas


It generally seems to cost 1/3 of the minerals/gas it costs to build, in order to repair something from scratch. It also seems to be a linear function of how much hp you repar
---
deathgod6
Profile Blog Joined January 2008
United States5064 Posts
April 23 2009 23:36 GMT
#12
If it costs gas to build it, you need gas to repair it.
4.0 GPA = A rank 5.0 GPA = Olympic --------- Bisu, Best, Fantasy. i ♥ oov. They can get in my BoxeR anyday.
Grobyc
Profile Blog Joined June 2008
Canada18410 Posts
April 23 2009 23:38 GMT
#13
On April 24 2009 08:30 Clasic wrote:
Show nested quote +
On April 24 2009 08:28 LosingID8 wrote:
On April 24 2009 08:12 Azrael1111 wrote:
I know it takes no gas, and its probably like 5 hp per mineral

i don't think that's right.

buildings that only cost minerals will not cost any gas to repair. however advanced structures that cost gas to build will use gas to repair. i think it's the same with units as well.


So wait, tanks cost gas to repair? Funny, thought it was only minerals.

Nope, they cost gas as well. like LID said, primary buildings only cost minerals to repair because none of the primary buildings cost gas, so no gas is used to repair. I'm pretty sure the most expensive buildings cost more minerals+gas to repair than other buildings if you used a ratio.
Ex: factory(200,100) costs 4minerals + 2gas to repair 25 HP.
However science facility(150,200) costs 3minerals + 4gas to repair 25 HP.

The science facility costs more gas to produce, so to repair it it costs more gas than a factory, even though they both require some amount of gas. These are just examples I made, but I assume it works in this fashion.
If you watch Godzilla backwards it's about a benevolent lizard who helps rebuild a city and then moonwalks into the ocean.
Zoler
Profile Blog Joined June 2008
Sweden6339 Posts
April 23 2009 23:40 GMT
#14
I think its 1 mineral for 1 hp.
Lim Yo Hwan forever!
APurpleCow
Profile Blog Joined August 2008
United States1372 Posts
Last Edited: 2009-04-23 23:42:57
April 23 2009 23:42 GMT
#15
Just performed a quick test.

Buildings:
0.043 minerals/HP
0.023 gas/HP

Units:
0.172 minerals/HP
0.517 gas/HP

It only costs gas if the original entity cost gas.
Pawsom
Profile Blog Joined February 2009
United States928 Posts
Last Edited: 2009-04-23 23:49:50
April 23 2009 23:45 GMT
#16
Can you seriously not test this yourself? Do you own starcraft?
I'll do your work for you.

Repairing a siege tank from 1 hp to 150 hp-
Trial 1: 26m 26g
Trial 2: 26m 26g
Trial 3: 26m 26g

HP per Mineral: 5.73
HP per Gas: 5.73

Cost of full repair in terms of % of Unit cost(mineral): 17.3%
Cost of full repair in terms of % of Unit cost(gas): 26%
Cost of full repair in terms of % of Unit cost(Total): 34.6%


Repairing a vulture from 1 hp to 80hp-

Trial 1: 16m 0g
Trial 2: 16m 0g
Trial 3: 16m 0g

HP per Mineral: 4.94
HP per Gas: 0

Cost of full repair in terms of % of Unit cost(mineral): 21.3%
Cost of full repair in terms of % of Unit cost(gas): n/a
Cost of full repair in terms of % of Unit cost(Total): 21.3%

Repairing a goliath from 1hp to 125hp
Trial 1: 28m 14g
Trial 2: 28m 14g
Trial 3: 28m 14g

HP per Mineral: 4.43
HP per Gas: 8.85

Cost of full repair in terms of % of Unit cost(mineral): 28%
Cost of full repair in terms of % of Unit cost(gas): 28%
Cost of full repair in terms of % of Unit cost(Total): 28%

Conclusions


Units that cost only minerals require only minerals to repair. Units that cost both gas and minerals require both resources to repair. Health appears to be restored at a rate of 4-6 units of health per mineral. I am unable to identify the exact algorithm used from quick inspection.

Practical application

In game it's always better to repair. This doesn't have to do with cost analysis or anything, it's just always better to have the unit now than remake it later. The mining time lost is negligible.


**I tested in single player with operation cwal turned on. If this makes a difference in the exact numbers I don't really care, someone else can do it The main point is that units only require the resources required to create them to repair, and it is always significantly cheaper to repair.


Edit: I see a lot of people posted before me while testing. Good work A few things I noticed: people testing on buildings are making a mistake. These buildings are burning at the values you tested off and will cause your answers to be slightly off. Also you guys testing with only one unit need to consider this and try with multiple units. I have already shown that the repair rate appears to be different for different units.
deathgod6
Profile Blog Joined January 2008
United States5064 Posts
April 23 2009 23:46 GMT
#17
On April 24 2009 08:40 Zoler wrote:
I think its 1 mineral for 1 hp.

That's why people repair 1500 hp command centers when they cost 400 minerals to build.
4.0 GPA = A rank 5.0 GPA = Olympic --------- Bisu, Best, Fantasy. i ♥ oov. They can get in my BoxeR anyday.
paper
Profile Blog Joined September 2004
13196 Posts
Last Edited: 2009-04-23 23:51:08
April 23 2009 23:50 GMT
#18
On April 24 2009 08:42 APurpleCow wrote:
Just performed a quick test.

Buildings:
0.043 minerals/HP = 23.25 hp / mineral ~ 25
0.023 gas/HP = 43.47 hp / mineral ~ 45

Units:
0.172 minerals/HP = 5.81 hp / mineral ~ 6
0.517 gas/HP = 1.93 hp / mineral ~ 2

It only costs gas if the original entity cost gas.


>_> better units
Hates Fun🤔
Grobyc
Profile Blog Joined June 2008
Canada18410 Posts
April 23 2009 23:50 GMT
#19
On April 24 2009 08:46 deathgod6 wrote:
Show nested quote +
On April 24 2009 08:40 Zoler wrote:
I think its 1 mineral for 1 hp.

That's why people repair 1500 hp command centers when they cost 400 minerals to build.

obviously ;D
If you watch Godzilla backwards it's about a benevolent lizard who helps rebuild a city and then moonwalks into the ocean.
KwarK
Profile Blog Joined July 2006
United States42415 Posts
April 23 2009 23:52 GMT
#20
If the cost is related to building cost, as suggested, and not to raw hp value then damage done to a supply depot will cost more to repair than the same damage done to a barracks because the hp to cost ratio of a depot is worse. I think that's really pretty interesting.
ModeratorThe angels have the phone box
1 2 3 4 5 Next All
Please log in or register to reply.
Live Events Refresh
BSL 2v2 ProLeague
19:00
Day 4
ZZZero.O139
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
mouzHeroMarine 670
JuggernautJason72
ForJumy 33
StarCraft: Brood War
Britney 19231
firebathero 307
TY 152
ZZZero.O 139
Dewaltoss 116
Snow 60
JYJ32
yabsab 15
Dota 2
Pyrionflax216
Counter-Strike
fl0m5884
Stewie2K604
Super Smash Bros
C9.Mang01119
Mew2King64
Heroes of the Storm
Grubby3175
Other Games
FrodaN971
B2W.Neo643
mouzStarbuck89
ZombieGrub79
Trikslyr70
KnowMe45
Organizations
Dota 2
PGL Dota 2 - Secondary Stream3725
Other Games
BasetradeTV84
StarCraft 2
angryscii 22
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 21 non-featured ]
StarCraft 2
• kabyraGe 238
• StrangeGG 66
• Hupsaiya 48
• davetesta30
• Adnapsc2 10
• Kozan
• LaughNgamezSOOP
• AfreecaTV YouTube
• sooper7s
• intothetv
• Migwel
• IndyKCrew
StarCraft: Brood War
• FirePhoenix6
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• masondota21579
• Ler152
League of Legends
• TFBlade1593
• Shiphtur662
Other Games
• imaqtpie1080
Upcoming Events
Replay Cast
3h 13m
CranKy Ducklings
13h 13m
Bellum Gens Elite
13h 13m
SC Evo League
15h 13m
Fire Grow Cup
18h 13m
CSO Contender
20h 13m
BSL: ProLeague
21h 13m
StRyKeR vs MadiNho
Cross vs UltrA
TT1 vs JDConan
Bonyth vs Sziky
Replay Cast
1d 3h
SOOP Global
1d 6h
Creator vs Rogue
Cure vs Classic
SOOP
1d 12h
Classic vs GuMiho
[ Show More ]
Sparkling Tuna Cup
1d 13h
AllThingsProtoss
1d 14h
Fire Grow Cup
1d 18h
BSL: ProLeague
1d 21h
HBO vs Doodle
spx vs Tech
DragOn vs Hawk
Dewalt vs TerrOr
Replay Cast
2 days
Replay Cast
3 days
Replay Cast
3 days
WardiTV Invitational
3 days
WardiTV Invitational
3 days
GSL Code S
4 days
Rogue vs GuMiho
Maru vs Solar
Replay Cast
5 days
GSL Code S
5 days
herO vs TBD
Classic vs TBD
The PondCast
5 days
Replay Cast
6 days
GSL Code S
6 days
WardiTV Invitational
6 days
Liquipedia Results

Completed

CSL Season 17: Qualifier 1
DreamHack Dallas 2025
Heroes 10 EU

Ongoing

JPL Season 2
BSL 2v2 Season 3
BSL Season 20
KCM Race Survival 2025 Season 2
NPSL S3
Rose Open S1
CSL Season 17: Qualifier 2
2025 GSL S2
BGE Stara Zagora 2025
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
ECL Season 49: Europe
BLAST Rivals Spring 2025
MESA Nomadic Masters
CCT Season 2 Global Finals
IEM Melbourne 2025
YaLLa Compass Qatar 2025
PGL Bucharest 2025
BLAST Open Spring 2025

Upcoming

CSL 17: 2025 SUMMER
Copa Latinoamericana 4
CSLPRO Last Chance 2025
CSLPRO Chat StarLAN 3
K-Championship
SEL Season 2 Championship
Esports World Cup 2025
HSC XXVII
Championship of Russia 2025
Murky Cup #2
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.