static */
| 146 | } |
| 147 | |
| 148 | /* static */ Money ScriptBridge::GetPrice(BridgeType bridge_type, SQInteger length) |
| 149 | { |
| 150 | if (!IsValidBridge(bridge_type)) return -1; |
| 151 | |
| 152 | length = Clamp<SQInteger>(length, 0, INT32_MAX); |
| 153 | |
| 154 | return ::CalcBridgeLenCostFactor(length) * _price[PR_BUILD_BRIDGE] * ::GetBridgeSpec(bridge_type)->price >> 8; |
| 155 | } |
| 156 | |
| 157 | /* static */ SQInteger ScriptBridge::GetMaxLength(BridgeType bridge_type) |
| 158 | { |
nothing calls this directly
no test coverage detected