mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-20 18:10:44 -04:00
bid -> makeBid.
This commit is contained in:
parent
34f5377754
commit
bb8b9b2e93
4 changed files with 4 additions and 4 deletions
app
scripts
|
@ -400,7 +400,7 @@ module.exports = class Simulator extends CocoClass
|
|||
executionLimit: 1 * 1000 * 1000
|
||||
if methodName is 'hear'
|
||||
aetherOptions.functionParameters = ['speaker', 'message', 'data']
|
||||
if methodName is 'bid'
|
||||
if methodName is 'makeBid'
|
||||
aetherOptions.functionParameters = ['blockNumber']
|
||||
#console.log "creating aether with options", aetherOptions
|
||||
return new Aether aetherOptions
|
||||
|
|
|
@ -96,7 +96,7 @@ module.exports = class World
|
|||
for thang in @thangs when thang.isProgrammable
|
||||
userCode = @userCodeMap[thang.id] ? {}
|
||||
for methodName, aether of userCode
|
||||
framesToLoadFlowBefore = if methodName is 'plan' or methodName is 'bid' then 200 else 1 # Adjust if plan() is taking even longer
|
||||
framesToLoadFlowBefore = if methodName is 'plan' or methodName is 'makeBid' then 200 else 1 # Adjust if plan() is taking even longer
|
||||
aether._shouldSkipFlow = i < loadUntilFrame - framesToLoadFlowBefore
|
||||
try
|
||||
@getFrame(i)
|
||||
|
|
|
@ -92,7 +92,7 @@ module.exports = class LadderSubmissionView extends CocoView
|
|||
includeFlow: false
|
||||
executionLimit: 1 * 1000 * 1000
|
||||
if spellID is "hear" then aetherOptions["functionParameters"] = ["speaker","message","data"]
|
||||
if spellID is "bid" then aetherOptions["functionParameters"] = ["blockNumber"]
|
||||
if spellID is "makeBid" then aetherOptions["functionParameters"] = ["blockNumber"]
|
||||
|
||||
aether = new Aether aetherOptions
|
||||
transpiledCode[thang][spellID] = aether.transpile spell
|
||||
|
|
|
@ -41,7 +41,7 @@ transpileLevelSession = (sessionID, cb) ->
|
|||
includeFlow: false
|
||||
executionLimit: 1 * 1000 * 1000
|
||||
if spellID is "hear" then aetherOptions["functionParameters"] = ["speaker","message","data"]
|
||||
if spellID is "bid" then aetherOptions["functionParameters"] = ["blockNumber"]
|
||||
if spellID is "makeBid" then aetherOptions["functionParameters"] = ["blockNumber"]
|
||||
|
||||
aether = new Aether aetherOptions
|
||||
transpiledCode[thang][spellID] = aether.transpile spell
|
||||
|
|
Loading…
Reference in a new issue