@@ -62,6 +62,7 @@ export const ResourceTable: React.FC<ResourceTableProps> = ({ map, teamStat, tea
6262 let catDamagePercent = 0
6363 let ratKingCount = 0
6464 let ratKingPercent = 0
65+ let globalCheese = 0
6566
6667 if ( map && teamStat ) {
6768 cheeseAmount = teamStat . cheeseAmount
@@ -70,6 +71,7 @@ export const ResourceTable: React.FC<ResourceTableProps> = ({ map, teamStat, tea
7071 catDamagePercent = teamStat . catDamagePercent
7172 ratKingCount = teamStat . ratKingCount
7273 ratKingPercent = teamStat . ratKingPercent
74+ globalCheese = teamStat . globalCheeseAmount
7375 }
7476
7577 const formatPercent = ( val : number ) => ( val * 100 ) . toFixed ( 1 ) . toString ( ) + '%'
@@ -131,6 +133,7 @@ export const ResourceTable: React.FC<ResourceTableProps> = ({ map, teamStat, tea
131133 </ div >
132134 </ div >
133135 </ div >
136+ < div className = "flex items-center w-full mt-2 mb-1 text-xs font-bold justify-around" > Global Cheese Amount: { globalCheese } </ div >
134137 </ div >
135138 )
136139}
@@ -148,9 +151,9 @@ export const UnitsTable: React.FC<UnitsTableProps> = ({ teamStat, teamIdx }) =>
148151 [ 'Baby Rats' , < UnitsIcon teamIdx = { teamIdx } img = "rat" key = "3" /> ]
149152 ]
150153
151- let data : [ string , number [ ] ] [ ] = [ [ 'Count' , [ 0 , 0 , 0 , 0 ] ] ]
154+ let data : [ string , number [ ] ] [ ] = [ [ 'Count: ' , [ 0 , 0 , 0 , 0 ] ] ]
152155 if ( teamStat ) {
153- data = [ [ 'Count' , [ teamStat . dirtAmount , teamStat . ratTrapAmount , teamStat . catTrapAmount , teamStat . babyRatCount ] ] ]
156+ data = [ [ 'Count: ' , [ teamStat . dirtAmount , teamStat . ratTrapAmount , teamStat . catTrapAmount , teamStat . babyRatCount ] ] ]
154157 }
155158
156159 return (
0 commit comments