Fixed setPaletteColor using hardcoded 2 for all tiers.

This commit is contained in:
Florian Nücke 2015-12-23 23:28:31 +01:00
parent b96411c40b
commit 1fc9e8f294

View File

@ -151,7 +151,7 @@ class GraphicsCard(val tier: Int) extends prefab.ManagedEnvironment {
})
}
@Callback(direct = true, limit = 2, doc = """function(index:number, color:number):number -- Set the palette color at the specified palette index. Returns the previous value.""")
@Callback(direct = true, doc = """function(index:number, color:number):number -- Set the palette color at the specified palette index. Returns the previous value.""")
def setPaletteColor(context: Context, args: Arguments): Array[AnyRef] = {
context.consumeCallBudget(setPaletteColorCosts(tier))
val index = args.checkInteger(0)