+ if addr[BuyShields] == 1 {
+ relative_price, available := data.Planets[data.i2p[addr[Location]]].RelativePrices["Shield Batterys"]
+ if available {
+ absolute_price := int(float64(data.Commodities["Shield Batterys"].BasePrice) * float64(relative_price) / 100.0)
+ other[BuyShields] = 0
+ UpdateCell(table, my_index, EncodeIndex(dims, other), -absolute_price * *batteries)
+ other[BuyShields] = addr[BuyShields]
+ }
+ }
+