Array.prototype.__yy_owner=0;var JSON_game={Extensions:[{"name":"Poki","version":"1.0.0",jsFiles:["uph_poki.js"],initfuncs:[]},{init:"gml_Script_poki_init"}],ExtensionOptions:{"iOS_IAPs":{},"RetroBowl":{},"GooglePlayBillingExtension":{},"Poki":{}},Sounds:[{pName:"snd_music_co",kind:1,extension:"",origName:"snd_music_co",effects:0,volume:1,pan:0,preload:false,groupId:0,duration:242.16},{pName:"snd_audience_dis",kind:0,extension:"",origName:"snd_audience_dis",effects:0,volume:1,pan:0,preload:false, groupId:0},{pName:"snd_audience_fg",kind:0,extension:"",origName:"snd_audience_fg",effects:0,volume:1,pan:0,preload:false,groupId:0},{pName:"snd_beep",kind:0,extension:"",origName:"snd_beep",effects:0,volume:1,pan:0,preload:false,groupId:0},{pName:"snd_beep2",kind:0,extension:"",origName:"snd_beep2",effects:0,volume:1,pan:0,preload:false,groupId:0},{pName:"snd_bounce",kind:0,extension:"",origName:"snd_bounce",effects:0,volume:1,pan:0,preload:false,groupId:0},{pName:"snd_click",kind:0,extension:"", origName:"snd_click",effects:0,volume:1,pan:0,preload:false,groupId:0},{pName:"snd_kick",kind:0,extension:"",origName:"snd_kick",effects:0,volume:0.5,pan:0,preload:false,groupId:0},{pName:"snd_oof1",kind:0,extension:"",origName:"snd_oof1",effects:0,volume:1,pan:0,preload:false,groupId:0},{pName:"snd_oof2",kind:0,extension:"",origName:"snd_oof2",effects:0,volume:1,pan:0,preload:false,groupId:0},{pName:"snd_error",kind:0,extension:"",origName:"snd_error",effects:0,volume:1,pan:0,preload:false,groupId:0} ,{pName:"snd_oof3",kind:0,extension:"",origName:"snd_oof3",effects:0,volume:1,pan:0,preload:false,groupId:0},{pName:"snd_post",kind:0,extension:"",origName:"snd_post",effects:0,volume:1,pan:0,preload:false,groupId:0},{pName:"snd_throw",kind:0,extension:"",origName:"snd_throw",effects:0,volume:1,pan:0,preload:false,groupId:0},{pName:"snd_tackle",kind:0,extension:"",origName:"snd_tackle",effects:0,volume:1,pan:0,preload:false,groupId:0},{pName:"snd_music",kind:1,extension:"",origName:"snd_music",effects:0, volume:1,pan:0,preload:false,groupId:0,duration:275.48},{pName:"snd_audible",kind:0,extension:"",origName:"snd_audible",effects:0,volume:1,pan:0,preload:false,groupId:0},{pName:"snd_timeout",kind:0,extension:"",origName:"snd_timeout",effects:0,volume:1,pan:0,preload:false,groupId:0},{pName:"snd_purchase",kind:0,extension:"",origName:"snd_purchase",effects:0,volume:1,pan:0,preload:false,groupId:0},{pName:"snd_co_brass1",kind:0,extension:"",origName:"snd_co_brass1",effects:0,volume:1,pan:0,preload:false, groupId:0},{pName:"snd_audience_idle",kind:0,extension:"",origName:"snd_audience_idle",effects:0,volume:1,pan:0,preload:false,groupId:0},{pName:"snd_co_brass2",kind:0,extension:"",origName:"snd_co_brass2",effects:0,volume:1,pan:0,preload:false,groupId:0},{pName:"snd_co_brass3",kind:0,extension:"",origName:"snd_co_brass3",effects:0,volume:1,pan:0,preload:false,groupId:0},{pName:"snd_success",kind:0,extension:"",origName:"snd_success",effects:0,volume:1,pan:0,preload:false,groupId:0},{pName:"snd_drink", kind:0,extension:"",origName:"snd_drink",effects:0,volume:1,pan:0,preload:false,groupId:0},{pName:"snd_starrating",kind:0,extension:"",origName:"snd_starrating",effects:0,volume:1,pan:0,preload:false,groupId:0},{pName:"snd_co_brass4",kind:0,extension:"",origName:"snd_co_brass4",effects:0,volume:1,pan:0,preload:false,groupId:0}],AudioGroups:[{name:"audiogroup_default",enabled:true,}],Sprites:[{pName:"spr_credit_rec",width:9,height:9,transparent:false,smooth:false,preload:false,xOrigin:4,yOrigin:4, bboxRight:8,bboxBottom:8,playbackspeed:30,TPEntryIndex:[1230],sequence:{pName:"spr_credit_rec",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:4,yorigin:4,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_field",width:1300,height:237, transparent:false,smooth:false,preload:false,bboxRight:1299,bboxBottom:236,playbackspeed:0,TPEntryIndex:[3,6,2,7,8,4,17,5],sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,length:8,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false, channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]} ,nineslice:{nLeft:0,nTop:0,nRight:0,nBottom:0,nEnabled:false,nTilemode:[0,0,0,0,0]}},{pName:"spr_fieldfans",width:1300,height:33,transparent:false,smooth:false,preload:false,bboxRight:1299,bboxBottom:32,playbackspeed:15,TPEntryIndex:[44,39,40],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:3,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[], keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_ball",width:40,height:20,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:20,yOrigin:10,bboxLeft:1,bboxRight:8,bboxBottom:4,playbackspeed:0,TPEntryIndex:[567,566,569,568,570,565],sequence:{pName:"", playback:1,playbackSpeed:0,playbackSpeedType:0,length:6,xorigin:20,yorigin:10,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false, disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_ball1",width:10,height:5,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:5,yOrigin:2,bboxLeft:1,bboxRight:8,bboxBottom:4,playbackspeed:10,TPEntryIndex:[1287,1285,1286,1288],sequence:{pName:"",playback:1,playbackSpeed:10,playbackSpeedType:0, length:4,xorigin:5,yorigin:2,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}} }]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_ball2",width:10,height:5,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:5,yOrigin:2,bboxLeft:1,bboxRight:8,bboxBottom:4,playbackspeed:10,TPEntryIndex:[1291,1289,1292,1290],sequence:{pName:"",playback:1,playbackSpeed:10,playbackSpeedType:0,length:4,xorigin:5,yorigin:2,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[], keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_getup_ball_thin",bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:15,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18, playbackspeed:4,TPEntryIndex:[1042,1081],sequence:{pName:"spr_getup_ball_thin",playback:1,playbackSpeed:4,playbackSpeedType:0,length:2,xorigin:7,yorigin:15,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[], momentsKeystore:[]}},{pName:"spr_ball3",width:10,height:5,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:5,yOrigin:2,bboxLeft:1,bboxRight:8,bboxBottom:4,playbackspeed:10,TPEntryIndex:[1293,1295,1296,1294],sequence:{pName:"",playback:1,playbackSpeed:10,playbackSpeedType:0,length:4,xorigin:5,yorigin:2,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0, length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_ball4",width:10,height:5,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:5,yOrigin:2,bboxLeft:1,bboxRight:8,bboxBottom:4,playbackspeed:10,TPEntryIndex:[1297, 1298,1299,1300],sequence:{pName:"",playback:1,playbackSpeed:10,playbackSpeedType:0,length:4,xorigin:5,yorigin:2,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2} }},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_ball5",width:10,height:5,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:5,yOrigin:2,bboxLeft:1,bboxRight:8,bboxBottom:4,playbackspeed:10,TPEntryIndex:[1301,1303,1304,1302],sequence:{pName:"",playback:1,playbackSpeed:10,playbackSpeedType:0,length:4,xorigin:5,yorigin:2,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0, traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_ball6",width:10,height:5,bboxMode:2,transparent:false,smooth:false,preload:false, xOrigin:5,yOrigin:2,bboxLeft:1,bboxRight:8,bboxBottom:4,playbackspeed:10,TPEntryIndex:[1305,1306,1307,1308],sequence:{pName:"",playback:1,playbackSpeed:10,playbackSpeedType:0,length:4,xorigin:5,yorigin:2,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false, channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_taunt_bulky",height:17,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:15,bboxLeft:4,bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[780,725,782,655,781,726],sequence:{pName:"spr_taunt_bulky",playback:1,playbackSpeed:8,playbackSpeedType:0, length:6,xorigin:7,yorigin:15,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3} }},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_bg_signed1",width:480,height:270,transparent:false,smooth:false,preload:false,bboxRight:479,bboxBottom:269,playbackspeed:30,TPEntryIndex:[27],sequence:{pName:"spr_bg_signed1",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack", pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_ball7",width:10,height:5,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:5,yOrigin:2,bboxLeft:1,bboxRight:8,bboxBottom:4,playbackspeed:10,TPEntryIndex:[1311,1312,1310,1309],sequence:{pName:"",playback:1,playbackSpeed:10,playbackSpeedType:0,length:4, xorigin:5,yorigin:2,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}}]}],sequenceEvents:[], momentsKeystore:[]}},{pName:"spr_blur",width:10,height:5,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:5,yOrigin:1,bboxLeft:1,bboxRight:8,bboxBottom:4,playbackspeed:7,TPEntryIndex:[1283],sequence:{pName:"",playback:1,playbackSpeed:7,playbackSpeedType:0,length:1,xorigin:5,yorigin:1,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false, disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_chains",width:32,height:27,transparent:false,smooth:false,preload:false,xOrigin:16,yOrigin:26,bboxLeft:6,bboxRight:26,bboxBottom:26,playbackspeed:15,TPEntryIndex:[510,509],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:2,xorigin:16,yorigin:26,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[], tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_stand_thin",bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:8,yOrigin:15,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:0,TPEntryIndex:[1103,1056,1023],sequence:{pName:"spr_stand_thin",playback:1,playbackSpeed:0,playbackSpeedType:0,length:3,xorigin:8, yorigin:15,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_cheerleaders",width:100,height:25,transparent:false, smooth:false,preload:false,xOrigin:50,yOrigin:24,bboxLeft:5,bboxRight:94,bboxTop:1,bboxBottom:23,playbackspeed:2,TPEntryIndex:[146,142],sequence:{pName:"",playback:1,playbackSpeed:2,playbackSpeedType:0,length:2,xorigin:50,yorigin:24,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1, stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_dummy",bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:13,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:0,TPEntryIndex:[861,1172,974],sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,length:3,xorigin:7,yorigin:13,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0, tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_cone",width:7,height:4,transparent:false,smooth:false,preload:false,xOrigin:3,yOrigin:2,bboxRight:6,bboxBottom:3,playbackspeed:15,TPEntryIndex:[1272],sequence:{pName:"", playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:3,yorigin:2,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_goal_stand",width:10,height:37,transparent:false,smooth:false,preload:false,yOrigin:32,bboxRight:9,bboxTop:5,bboxBottom:36, playbackspeed:0,TPEntryIndex:[548,547],sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,length:2,xorigin:0,yorigin:32,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]} },{pName:"spr_tag_yb_b",width:32,height:32,transparent:false,smooth:false,preload:false,xOrigin:21,yOrigin:14,bboxLeft:9,bboxRight:23,bboxBottom:19,playbackspeed:0,TPEntryIndex:[558],sequence:{pName:"spr_tag_yb_b",playback:1,playbackSpeed:0,playbackSpeedType:0,length:1,xorigin:21,yorigin:14,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false, channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_adNSS",width:480,height:270,transparent:false,smooth:false,preload:false,bboxRight:479,bboxBottom:269,playbackspeed:30,TPEntryIndex:[24],sequence:{pName:"spr_adNSS",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{ key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_goal_post",width:17,height:90,transparent:false,smooth:false,preload:false,yOrigin:85,bboxLeft:10,bboxRight:16,bboxBottom:61,playbackspeed:0,TPEntryIndex:[586,549,527],sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,length:3,xorigin:0,yorigin:85,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0, tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_goal_shadow",width:32,height:35,transparent:false,smooth:false,preload:false,xOrigin:3,yOrigin:17,bboxLeft:7,bboxRight:24,bboxBottom:34,playbackspeed:0,TPEntryIndex:[497], sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,length:1,xorigin:3,yorigin:17,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_rain",width:2,height:8,transparent:false,smooth:false,preload:false,yOrigin:7,bboxRight:1,bboxBottom:7, playbackspeed:8,TPEntryIndex:[1316,1320],sequence:{pName:"",playback:1,playbackSpeed:8,playbackSpeedType:0,length:2,xorigin:0,yorigin:7,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]} },{pName:"spr_jacket_black",width:32,height:32,transparent:false,smooth:false,preload:false,bboxLeft:1,bboxRight:29,bboxTop:7,bboxBottom:24,playbackspeed:30,TPEntryIndex:[501],sequence:{pName:"spr_jacket_black",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false, channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_splash",width:13,height:12,transparent:false,smooth:false,preload:false,xOrigin:6,yOrigin:9,bboxLeft:2,bboxRight:11,bboxTop:6,bboxBottom:11,playbackspeed:3,TPEntryIndex:[1322,1266,1252,1253,1321],sequence:{pName:"",playback:1,playbackSpeed:3,playbackSpeedType:0,length:5,xorigin:6,yorigin:9,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[], ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_snow",width:3,height:3,transparent:false, smooth:false,preload:false,xOrigin:1,yOrigin:1,bboxRight:2,bboxBottom:2,playbackspeed:9,TPEntryIndex:[1317],sequence:{pName:"",playback:1,playbackSpeed:9,playbackSpeedType:0,length:1,xorigin:1,yorigin:1,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_grass", width:32,height:32,transparent:false,smooth:false,preload:false,bboxRight:31,bboxBottom:31,playbackspeed:15,TPEntryIndex:[158],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]} },{pName:"spr_dark_003_co_s",width:32,height:36,transparent:false,smooth:false,preload:false,bboxLeft:3,bboxRight:29,bboxTop:2,bboxBottom:35,playbackspeed:15,TPEntryIndex:[387,386,267,389,211,388,210,268],sequence:{pName:"spr_dark_003_co_s",playback:1,playbackSpeed:15,playbackSpeedType:0,length:8,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0, length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6} }},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_jump_catch_ball_bulky",width:7,height:28,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:3,yOrigin:27,bboxLeft:4,bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[1187,1109,1107,1108,1169],sequence:{pName:"spr_jump_catch_ball_bulky",playback:1,playbackSpeed:8,playbackSpeedType:0,length:5,xorigin:3,yorigin:27,volume:1,keyframeStore:[], tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:4}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_coach",width:10,height:21,transparent:false,smooth:false,preload:false,xOrigin:5,yOrigin:19,bboxRight:9,bboxTop:1,bboxBottom:19,playbackspeed:15,TPEntryIndex:[749],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:5,yorigin:19,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{ key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_light_002_co_s",width:32,height:36,transparent:false,smooth:false,preload:false,bboxLeft:3,bboxRight:29,bboxTop:3,bboxBottom:35,playbackspeed:15,TPEntryIndex:[434,344,343,486,435,433,342,345],sequence:{pName:"spr_light_002_co_s",playback:1,playbackSpeed:15,playbackSpeedType:0,length:8,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack", pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false, disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_sideline_crew",width:299,height:27,transparent:false,smooth:false,preload:false,bboxRight:298,bboxBottom:26,playbackspeed:15,TPEntryIndex:[95],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[], tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_endzone",width:100,height:169,transparent:false,smooth:false,preload:false,bboxRight:99,bboxBottom:168,playbackspeed:15,TPEntryIndex:[63,61,64,62,60,1323,1324],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0, length:7,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}} },{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_stand_highlight",height:24,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:8,yOrigin:22,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:0,TPEntryIndex:[730,742,729],sequence:{pName:"",playback:1, playbackSpeed:0,playbackSpeedType:0,length:3,xorigin:8,yorigin:22,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]} },{pName:"spr_stand",bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:8,yOrigin:15,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:0,TPEntryIndex:[1010,1048,1009],sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,length:3,xorigin:8,yorigin:15,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false, channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_stand_ball",bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:15,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:0,TPEntryIndex:[1011,1050,1012],sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,length:3,xorigin:7,yorigin:15, volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_stand_ball2",bboxMode:2,transparent:false,smooth:false, preload:false,xOrigin:7,yOrigin:15,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:0,TPEntryIndex:[1016,1052,1017],sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,length:3,xorigin:7,yorigin:15,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false, disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_qb_walk",height:17,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:8,yOrigin:16,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:6,TPEntryIndex:[982,769],sequence:{pName:"",playback:1,playbackSpeed:6,playbackSpeedType:0,length:2,xorigin:8,yorigin:16,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack", pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_qb_aim_old",width:15,height:17,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:16,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:6,TPEntryIndex:[618], sequence:{pName:"spr_qb_aim_old",playback:1,playbackSpeed:6,playbackSpeedType:0,length:1,xorigin:7,yorigin:16,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_qb_aim",width:15,height:17,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7, yOrigin:16,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:6,TPEntryIndex:[604,609,607,610,605,606,608],sequence:{pName:"spr_qb_aim",playback:1,playbackSpeed:6,playbackSpeedType:0,length:7,xorigin:7,yorigin:16,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false, disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_qb_throw",width:12,height:17,bboxMode:2, transparent:false,smooth:false,preload:false,xOrigin:6,yOrigin:16,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:1,TPEntryIndex:[691],sequence:{pName:"",playback:1,playbackSpeed:1,playbackSpeedType:0,length:1,xorigin:6,yorigin:16,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[], momentsKeystore:[]}},{pName:"spr_handoff",bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:8,yOrigin:15,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:4,TPEntryIndex:[955,1000],sequence:{pName:"",playback:1,playbackSpeed:4,playbackSpeedType:0,length:2,xorigin:8,yorigin:15,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false, disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_run",height:17,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:16,bboxLeft:4,bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[1098,771,697,1095,774,694],sequence:{pName:"",playback:1,playbackSpeed:8,playbackSpeedType:0,length:6,xorigin:7,yorigin:16,volume:1,keyframeStore:[],tracks:[{ modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4} }},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_run_ball",bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:15,bboxLeft:4,bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[1131,937,815,1134,940,818],sequence:{pName:"",playback:1,playbackSpeed:8,playbackSpeedType:0,length:6,xorigin:7,yorigin:15,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames", builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false, channels:{0:{imageIndex:5}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_run_ball2",bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:15,bboxLeft:4,bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[1140,946,821,1137,943,822],sequence:{pName:"",playback:1,playbackSpeed:8,playbackSpeedType:0,length:6,xorigin:7,yorigin:15,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[], ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}}]}],sequenceEvents:[], momentsKeystore:[]}},{pName:"spr_firstdown_bulky",width:20,height:20,transparent:false,smooth:false,preload:false,xOrigin:10,yOrigin:19,bboxLeft:4,bboxRight:18,bboxTop:3,bboxBottom:19,playbackspeed:4,TPEntryIndex:[1037,990,978,668,670,669],sequence:{pName:"spr_firstdown_bulky",playback:1,playbackSpeed:4,playbackSpeedType:0,length:6,xorigin:10,yorigin:19,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[], tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}}]}],sequenceEvents:[],momentsKeystore:[]} },{pName:"spr_cheerleaders3_noout",width:20,height:21,transparent:false,smooth:false,preload:false,xOrigin:10,yOrigin:20,bboxLeft:1,bboxRight:19,bboxBottom:20,playbackspeed:4,TPEntryIndex:[854,853,909,544,912,851,852,910,543,911],sequence:{pName:"spr_cheerleaders3_noout",playback:1,playbackSpeed:4,playbackSpeedType:0,length:10,xorigin:10,yorigin:20,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[], tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false, channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}},{key:8,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:8}}},{key:9,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:9}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_getup",bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:15,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:4,TPEntryIndex:[1039,998],sequence:{pName:"",playback:1, playbackSpeed:4,playbackSpeedType:0,length:2,xorigin:7,yorigin:15,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_getup_ball",bboxMode:2,transparent:false,smooth:false,preload:false, xOrigin:7,yOrigin:15,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:4,TPEntryIndex:[1040,993],sequence:{pName:"",playback:1,playbackSpeed:4,playbackSpeedType:0,length:2,xorigin:7,yorigin:15,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false, channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_getup_ball2",bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:15,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:4,TPEntryIndex:[1044,996],sequence:{pName:"",playback:1,playbackSpeed:4,playbackSpeedType:0,length:2,xorigin:7,yorigin:15,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[], tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_stiffarm",height:17,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:15,bboxLeft:4,bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[1024,701,700,1027,706,707],sequence:{pName:"",playback:1,playbackSpeed:8,playbackSpeedType:0,length:6, xorigin:7,yorigin:15,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4, length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_stiffarm2",height:17,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:15,bboxLeft:4,bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[1031,718,713,1030,719,712],sequence:{pName:"",playback:1,playbackSpeed:8,playbackSpeedType:0,length:6,xorigin:7,yorigin:15,volume:1, keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false, channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_jump_catch",width:7,height:28,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:3,yOrigin:27,bboxLeft:4,bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[1185,1105,1127,1104,1194],sequence:{pName:"",playback:1,playbackSpeed:8,playbackSpeedType:0,length:5,xorigin:3,yorigin:27,volume:1,keyframeStore:[],tracks:[{ modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4} }}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_jump_catch_ball",width:7,height:28,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:3,yOrigin:27,bboxLeft:4,bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[1186,1111,1110,1106,1168],sequence:{pName:"",playback:1,playbackSpeed:8,playbackSpeedType:0,length:5,xorigin:3,yorigin:27,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[], tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_jump_catch_ball2",width:7,height:28,bboxMode:2,transparent:false, smooth:false,preload:false,xOrigin:3,yOrigin:27,bboxLeft:4,bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[1189,1116,1115,1117,1170],sequence:{pName:"",playback:1,playbackSpeed:8,playbackSpeedType:0,length:5,xorigin:3,yorigin:27,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}, {key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_jump",height:24,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:22,bboxLeft:4,bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8, TPEntryIndex:[675,800,672],sequence:{pName:"",playback:1,playbackSpeed:8,playbackSpeedType:0,length:3,xorigin:7,yorigin:22,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_jump2",height:24,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:22,bboxLeft:4,bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[681,804,678],sequence:{pName:"",playback:1,playbackSpeed:8,playbackSpeedType:0,length:3,xorigin:7,yorigin:22,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[], tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_jockey",height:17,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:15,bboxLeft:4,bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[1085,765,1084,762],sequence:{ pName:"spr_jockey",playback:1,playbackSpeed:8,playbackSpeedType:0,length:4,xorigin:7,yorigin:15,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3, length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_wrestle",bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:9,yOrigin:15,bboxLeft:2,bboxRight:14,bboxTop:9,bboxBottom:18,playbackspeed:4,TPEntryIndex:[961,1070],sequence:{pName:"",playback:1,playbackSpeed:4,playbackSpeedType:0,length:2,xorigin:9,yorigin:15,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0, tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_falling",width:24,height:24,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:12,yOrigin:22,bboxLeft:8,bboxRight:17,bboxTop:17,bboxBottom:23,playbackspeed:3,TPEntryIndex:[1178,1196],sequence:{pName:"",playback:1,playbackSpeed:3, playbackSpeedType:0,length:2,xorigin:12,yorigin:22,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_arrowD",width:32,height:32,transparent:false,smooth:false,preload:false, xOrigin:16,yOrigin:16,bboxLeft:8,bboxRight:22,bboxTop:7,bboxBottom:22,playbackspeed:15,TPEntryIndex:[632],sequence:{pName:"spr_arrowD",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:16,yorigin:16,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]} },{pName:"spr_falling_ball",width:24,height:24,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:12,yOrigin:22,bboxLeft:8,bboxRight:17,bboxTop:17,bboxBottom:23,playbackspeed:3,TPEntryIndex:[1173,1239],sequence:{pName:"",playback:1,playbackSpeed:3,playbackSpeedType:0,length:2,xorigin:12,yorigin:22,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1, stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_falling_ball2",width:24,height:24,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:12,yOrigin:22,bboxLeft:8,bboxRight:17,bboxTop:17,bboxBottom:23,playbackspeed:3,TPEntryIndex:[1175,1243],sequence:{pName:"",playback:1,playbackSpeed:3,playbackSpeedType:0,length:2,xorigin:12,yorigin:22,volume:1,keyframeStore:[], tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_dive",width:32,height:26,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:16,yOrigin:25,bboxLeft:11,bboxRight:24,bboxTop:20,bboxBottom:24, playbackspeed:8,TPEntryIndex:[949,750,885],sequence:{pName:"",playback:1,playbackSpeed:8,playbackSpeedType:0,length:3,xorigin:16,yorigin:25,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false, channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_dive_ball",width:32,height:26,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:16,yOrigin:25,bboxLeft:13,bboxRight:24,bboxTop:10,bboxBottom:13,playbackspeed:8,TPEntryIndex:[867,751,855],sequence:{pName:"",playback:1,playbackSpeed:8,playbackSpeedType:0,length:3,xorigin:16,yorigin:25,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0, tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_dive_ball2",width:32,height:26,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:16,yOrigin:25,bboxLeft:13,bboxRight:24,bboxTop:10,bboxBottom:13,playbackspeed:8, TPEntryIndex:[870,755,859],sequence:{pName:"",playback:1,playbackSpeed:8,playbackSpeedType:0,length:3,xorigin:16,yorigin:25,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_kick1",height:20,transparent:false,smooth:false,preload:false,xOrigin:8,yOrigin:17,bboxRight:12,bboxTop:3,bboxBottom:19,playbackspeed:8,TPEntryIndex:[684,1090,647],sequence:{pName:"",playback:1,playbackSpeed:8,playbackSpeedType:0,length:3,xorigin:8,yorigin:17,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{ key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_kick2",height:20,transparent:false,smooth:false,preload:false,xOrigin:8,yOrigin:17,bboxLeft:1,bboxRight:14,bboxTop:3,bboxBottom:19,playbackspeed:9,TPEntryIndex:[687,651,958,873,1002],sequence:{pName:"",playback:1,playbackSpeed:9, playbackSpeedType:0,length:5,xorigin:8,yorigin:17,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_place",height:13,transparent:false,smooth:false,preload:false,xOrigin:6,yOrigin:11,bboxLeft:2,bboxRight:14,bboxBottom:11,playbackspeed:0,TPEntryIndex:[965,1166],sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,length:2,xorigin:6,yorigin:11,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0, traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_spike_thin",height:20,transparent:false,smooth:false,preload:false,xOrigin:8,yOrigin:19,bboxRight:13,bboxBottom:19,playbackspeed:9,TPEntryIndex:[639,808,1063],sequence:{pName:"spr_spike_thin",playback:1,playbackSpeed:9, playbackSpeedType:0,length:3,xorigin:8,yorigin:19,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_spike", height:20,transparent:false,smooth:false,preload:false,xOrigin:8,yOrigin:19,bboxRight:13,bboxBottom:19,playbackspeed:9,TPEntryIndex:[587,807,1061],sequence:{pName:"",playback:1,playbackSpeed:9,playbackSpeedType:0,length:3,xorigin:8,yorigin:19,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1, length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_box_flex_fill",transparent:false,smooth:false,preload:false,bboxRight:15,bboxBottom:15,playbackspeed:0,TPEntryIndex:[593],sequence:{pName:"spr_box_flex_fill",playback:1,playbackSpeed:0,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames", builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]},nineslice:{nLeft:4,nTop:4,nRight:4,nBottom:4,nEnabled:true,nTilemode:[0,0,0,0,0]}},{pName:"spr_spike2",height:20,transparent:false,smooth:false,preload:false,xOrigin:8,yOrigin:19,bboxRight:13,bboxBottom:19,playbackspeed:9,TPEntryIndex:[589,809,1064],sequence:{pName:"",playback:1,playbackSpeed:9, playbackSpeedType:0,length:3,xorigin:8,yorigin:19,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_celebrate", height:20,transparent:false,smooth:false,preload:false,xOrigin:8,yOrigin:19,bboxLeft:3,bboxRight:11,bboxTop:1,bboxBottom:19,playbackspeed:2,TPEntryIndex:[1077,989],sequence:{pName:"spr_celebrate",playback:1,playbackSpeed:2,playbackSpeedType:0,length:2,xorigin:8,yorigin:19,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_route_pointR",bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:8,yOrigin:7,bboxLeft:-1,bboxRight:5,bboxTop:-1,bboxBottom:3,playbackspeed:15,TPEntryIndex:[1184],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:8,yorigin:7,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames", builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_bouncespot",transparent:false,smooth:false,preload:false,xOrigin:4,yOrigin:3,bboxLeft:1,bboxRight:7,bboxTop:1,bboxBottom:5,playbackspeed:15,TPEntryIndex:[1268],sequence:{pName:"spr_bouncespot",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:4,yorigin:3,volume:1, keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_kickpoint",width:25,height:7,transparent:false,smooth:false,preload:false,xOrigin:6,yOrigin:3,bboxLeft:12,bboxRight:24,bboxBottom:6,playbackspeed:15,TPEntryIndex:[1207],sequence:{pName:"",playback:1,playbackSpeed:15, playbackSpeedType:0,length:1,xorigin:6,yorigin:3,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_highlight",transparent:false,smooth:false,preload:false,xOrigin:8,yOrigin:7,bboxRight:15,bboxBottom:14,playbackspeed:15,TPEntryIndex:[638],sequence:{ pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:8,yorigin:7,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_aim",width:7,height:7,transparent:false,smooth:false,preload:false,xOrigin:2,yOrigin:3,bboxLeft:1,bboxRight:4, bboxTop:1,bboxBottom:4,playbackspeed:15,TPEntryIndex:[1313],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:2,yorigin:3,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_wind",width:22,height:21,transparent:false, smooth:false,preload:false,xOrigin:9,yOrigin:10,bboxRight:21,bboxBottom:20,playbackspeed:15,TPEntryIndex:[503],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:9,yorigin:10,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}} ,{pName:"spr_pointer",width:9,height:12,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:4,yOrigin:6,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:0,TPEntryIndex:[1180,1181],sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,length:2,xorigin:4,yorigin:6,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false, disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_kneel_bulky",width:18,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:8,yOrigin:13,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:6,TPEntryIndex:[913],sequence:{pName:"spr_kneel_bulky",playback:1,playbackSpeed:6,playbackSpeedType:0,length:1,xorigin:8,yorigin:13,volume:1,keyframeStore:[],tracks:[{ modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_star_s",width:5,height:4,transparent:false,smooth:false,preload:false,xOrigin:2,yOrigin:2,bboxRight:4,bboxBottom:3,playbackspeed:15,TPEntryIndex:[1284],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:2, yorigin:2,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_attitude_s",width:5,height:5,transparent:false,smooth:false,preload:false,xOrigin:2,yOrigin:2,bboxRight:4,bboxBottom:4,playbackspeed:15,TPEntryIndex:[1282,1278,1276,1279,1277,1280,1281], sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:7,xorigin:2,yorigin:2,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3, length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_press_conf",width:100,height:40,transparent:false,smooth:false,preload:false,bboxRight:99,bboxBottom:39,playbackspeed:15,TPEntryIndex:[104],sequence:{pName:"", playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_team_celebration",width:100,height:40,transparent:false,smooth:false,preload:false,bboxRight:99,bboxBottom:39,playbackspeed:15, TPEntryIndex:[105],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_audible",width:96,height:32,bboxMode:2,transparent:false,smooth:false,preload:false, bboxLeft:2,bboxRight:29,bboxTop:2,bboxBottom:28,playbackspeed:0,TPEntryIndex:[119,116,120,117,118],sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,length:5,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_fieldgoalbtn",width:96,height:32,bboxMode:2,transparent:false,smooth:false,preload:false,bboxLeft:2,bboxRight:29,bboxTop:2,bboxBottom:28,playbackspeed:0,TPEntryIndex:[126],sequence:{pName:"spr_fieldgoalbtn", playback:1,playbackSpeed:0,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_dark_008_co",width:32,height:36,transparent:false,smooth:false,preload:false,bboxLeft:3,bboxRight:29,bboxTop:1,bboxBottom:35, playbackspeed:15,TPEntryIndex:[412,319,190,475,320,413,476,321],sequence:{pName:"spr_dark_008_co",playback:1,playbackSpeed:15,playbackSpeedType:0,length:8,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}, {key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_workrate", width:96,height:32,bboxMode:2,transparent:false,smooth:false,preload:false,bboxLeft:2,bboxRight:29,bboxTop:2,bboxBottom:28,playbackspeed:0,TPEntryIndex:[129,130,128],sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,length:3,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0} }},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_dice",width:18,height:18,transparent:false,smooth:false,preload:false,xOrigin:9,yOrigin:9,bboxLeft:2,bboxRight:15,bboxTop:2,bboxBottom:15,playbackspeed:15,TPEntryIndex:[738],sequence:{pName:"spr_dice",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:9,yorigin:9,volume:1,keyframeStore:[], tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_handoff_thin",bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:8,yOrigin:15,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:4,TPEntryIndex:[957,1083],sequence:{pName:"spr_handoff_thin",playback:1, playbackSpeed:4,playbackSpeedType:0,length:2,xorigin:8,yorigin:15,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_clock",width:96,height:32,bboxMode:2,transparent:false, smooth:false,preload:false,bboxLeft:2,bboxRight:29,bboxTop:2,bboxBottom:28,playbackspeed:15,TPEntryIndex:[121,123,122],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:3,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false, channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_controls_presnap",width:140,height:59,transparent:false,smooth:false,preload:false,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,TPEntryIndex:[72],sequence:{pName:"spr_controls_presnap",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70,yorigin:29,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack", pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_clock2",width:96,height:32,bboxMode:2,transparent:false,smooth:false,preload:false,bboxLeft:2,bboxRight:29,bboxTop:2,bboxBottom:28,playbackspeed:15,TPEntryIndex:[125,124],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:2,xorigin:0,yorigin:0, volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_controls_touchback",width:140,height:59,transparent:false,smooth:false,preload:false,xOrigin:70,yOrigin:29,bboxRight:139, bboxBottom:58,playbackspeed:15,TPEntryIndex:[78],sequence:{pName:"spr_controls_touchback",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70,yorigin:29,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_helmet",width:60,height:60, transparent:false,smooth:false,preload:false,xOrigin:30,yOrigin:30,bboxLeft:6,bboxRight:56,bboxTop:6,bboxBottom:56,playbackspeed:0,TPEntryIndex:[135,136],sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,length:2,xorigin:30,yorigin:30,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}} },{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_matchline_dot",width:32,transparent:false,smooth:false,preload:false,xOrigin:16,yOrigin:8,bboxLeft:4,bboxRight:28,bboxTop:2,bboxBottom:15,playbackspeed:15,TPEntryIndex:[533],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:16,yorigin:8,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0, creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_star",width:7,height:7,transparent:false,smooth:false,preload:false,xOrigin:3,yOrigin:4,bboxRight:6,bboxBottom:6,playbackspeed:15,TPEntryIndex:[1260],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:3,yorigin:4,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack", pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_connect",width:7,height:7,transparent:false,smooth:false,preload:false,xOrigin:3,yOrigin:3,bboxRight:6,bboxBottom:6,playbackspeed:15,TPEntryIndex:[1259],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:3,yorigin:3,volume:1,keyframeStore:[], tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_star_b",width:9,height:9,transparent:false,smooth:false,preload:false,xOrigin:4,yOrigin:7,bboxRight:8,bboxBottom:8,playbackspeed:15,TPEntryIndex:[1233],sequence:{pName:"spr_star_b",playback:1,playbackSpeed:15,playbackSpeedType:0, length:1,xorigin:4,yorigin:7,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_xp",width:14,height:7,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:3,bboxRight:13,bboxBottom:6,playbackspeed:15,TPEntryIndex:[1195],sequence:{pName:"spr_xp", playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:7,yorigin:3,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_credit",width:9,height:9,transparent:false,smooth:false,preload:false,xOrigin:4,yOrigin:4,bboxRight:8,bboxBottom:8,playbackspeed:0, TPEntryIndex:[1228,1224,1227,1226,1225,1229],sequence:{pName:"spr_credit",playback:1,playbackSpeed:0,playbackSpeedType:0,length:6,xorigin:4,yorigin:4,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false, disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_credit2",width:14,height:9,transparent:false,smooth:false,preload:false,xOrigin:6,yOrigin:4,bboxRight:8,bboxBottom:8,playbackspeed:0,TPEntryIndex:[1231],sequence:{pName:"spr_credit2", playback:1,playbackSpeed:0,playbackSpeedType:0,length:1,xorigin:6,yorigin:4,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_attitude",width:11,height:11,transparent:false,smooth:false,preload:false,xOrigin:5,yOrigin:5,bboxRight:10,bboxBottom:10, playbackspeed:15,TPEntryIndex:[1147,1153,1152,1148,1150,1151,1149],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:7,xorigin:5,yorigin:5,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1, stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_trade",width:11,height:11,transparent:false,smooth:false,preload:false,xOrigin:5,yOrigin:5,bboxRight:10, bboxBottom:10,playbackspeed:15,TPEntryIndex:[1163],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:5,yorigin:5,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_falling_ball_bulky",width:24,height:24,bboxMode:2, transparent:false,smooth:false,preload:false,xOrigin:12,yOrigin:22,bboxLeft:8,bboxRight:17,bboxTop:17,bboxBottom:23,playbackspeed:3,TPEntryIndex:[1174,1240],sequence:{pName:"spr_falling_ball_bulky",playback:1,playbackSpeed:3,playbackSpeedType:0,length:2,xorigin:12,yorigin:22,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_rookie",width:11,height:11,transparent:false,smooth:false,preload:false,xOrigin:5,yOrigin:5,bboxRight:10,bboxBottom:10,playbackspeed:0,TPEntryIndex:[1159],sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,length:1,xorigin:5,yorigin:5,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0, creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_condition",width:11,height:11,transparent:false,smooth:false,preload:false,xOrigin:5,yOrigin:5,bboxRight:10,bboxBottom:10,playbackspeed:15,TPEntryIndex:[1156,1158,1157,1155,1154],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:5,xorigin:5,yorigin:5,volume:1,keyframeStore:[], tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:4}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_morale",width:9,height:9,transparent:false,smooth:false,preload:false,xOrigin:4,yOrigin:4,bboxRight:8,bboxBottom:8,playbackspeed:15,TPEntryIndex:[1232],sequence:{pName:"spr_morale",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:4,yorigin:4,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{ key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_heart",width:9,height:9,transparent:false,smooth:false,preload:false,xOrigin:4,yOrigin:5,bboxRight:8,bboxTop:1,bboxBottom:8,playbackspeed:15,TPEntryIndex:[1245],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:4,yorigin:5,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0, tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_star_rating",width:39,height:7,transparent:false,smooth:false,preload:false,yOrigin:3,bboxRight:38,bboxBottom:6,playbackspeed:15,TPEntryIndex:[1325,1275,1261,1222,1182,1067,953,741,659,631,579],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:11,xorigin:0,yorigin:3,volume:1,keyframeStore:[], tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}},{key:8,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:8}}},{key:9,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:9}}},{key:10,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:10}}}]}],sequenceEvents:[],momentsKeystore:[]} },{pName:"spr_star_rating_b",width:41,height:9,transparent:false,smooth:false,preload:false,yOrigin:4,bboxRight:40,bboxBottom:8,playbackspeed:15,TPEntryIndex:[1326,1255,1234,1143,983,734,643,582,560,535,528],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:11,xorigin:0,yorigin:4,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false, disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1, stretch:false,disabled:false,channels:{0:{imageIndex:7}}},{key:8,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:8}}},{key:9,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:9}}},{key:10,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:10}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_star_rating_bn",width:41,height:9,transparent:false,smooth:false,preload:false,yOrigin:4,bboxRight:40,bboxBottom:8,playbackspeed:15,TPEntryIndex:[1327,1256,1235,1144, 984,735,644,583,561,536,529],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:11,xorigin:0,yorigin:4,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}},{key:8,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:8}}},{key:9,length:1,stretch:false,disabled:false, channels:{0:{imageIndex:9}}},{key:10,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:10}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_star_rating_c",width:39,height:7,transparent:false,smooth:false,preload:false,xOrigin:19,yOrigin:3,bboxRight:38,bboxBottom:6,playbackspeed:15,TPEntryIndex:[1328,1274,1262,1223,1183,1068,954,740,660,630,580],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:11,xorigin:19,yorigin:3,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack", pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false, disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}},{key:8,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:8}}},{key:9,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:9}}},{key:10,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:10}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_star_rating_cb",width:41,height:9, transparent:false,smooth:false,preload:false,xOrigin:20,yOrigin:4,bboxRight:40,bboxBottom:8,playbackspeed:15,TPEntryIndex:[1329,1257,1236,1145,985,736,645,584,562,537,530],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:11,xorigin:20,yorigin:4,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false, channels:{0:{imageIndex:7}}},{key:8,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:8}}},{key:9,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:9}}},{key:10,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:10}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_star_rating_cbn",width:41,height:9,transparent:false,smooth:false,preload:false,xOrigin:20,yOrigin:4,bboxRight:40,bboxBottom:8,playbackspeed:15,TPEntryIndex:[1265,1258,1237,1146,986,737,646,585, 563,538,531],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:11,xorigin:20,yorigin:4,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2} }},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}},{key:8,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:8}}},{key:9,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:9}}},{key:10,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:10}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_cup",width:15,height:15,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:7,bboxLeft:1,bboxRight:13,bboxTop:1,bboxBottom:13,playbackspeed:15,TPEntryIndex:[881],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:7,yorigin:7,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames", builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_mix_001_co_s",width:32,height:36,transparent:false,smooth:false,preload:false,bboxLeft:3,bboxRight:29,bboxTop:2,bboxBottom:35,playbackspeed:15,TPEntryIndex:[357,358,230,459,355,356,458,231],sequence:{pName:"spr_mix_001_co_s",playback:1,playbackSpeed:15,playbackSpeedType:0,length:8, xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4, length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_store",width:15,height:15,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:7,bboxLeft:1,bboxRight:11,bboxTop:2,bboxBottom:12,playbackspeed:15,TPEntryIndex:[1162], sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:7,yorigin:7,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_spangle",width:23,height:7,transparent:false,smooth:false,preload:false,xOrigin:11,yOrigin:4,bboxRight:22, bboxBottom:6,playbackspeed:15,TPEntryIndex:[952],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:11,yorigin:4,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_fans",width:12,height:14,transparent:false,smooth:false, preload:false,xOrigin:6,yOrigin:7,bboxRight:11,bboxBottom:13,playbackspeed:15,TPEntryIndex:[888],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:6,yorigin:7,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_box_208x64", width:208,height:64,transparent:false,smooth:false,preload:false,bboxRight:207,bboxBottom:63,playbackspeed:15,TPEntryIndex:[69],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]} },{pName:"spr_button_90",width:90,height:34,transparent:false,smooth:false,preload:false,bboxRight:89,bboxBottom:33,playbackspeed:0,TPEntryIndex:[131,132,138],sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,length:3,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0} }},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_button_74",width:74,height:34,transparent:false,smooth:false,preload:false,bboxRight:73,bboxBottom:33,playbackspeed:0,TPEntryIndex:[137,140,145],sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,length:3,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack", pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_button_104",width:106,height:34,transparent:false,smooth:false,preload:false,bboxRight:105,bboxBottom:33,playbackspeed:0, TPEntryIndex:[109,115,133],sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,length:3,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_button_32",width:33,height:34,transparent:false,smooth:false,preload:false,bboxRight:32,bboxBottom:33,playbackspeed:0,TPEntryIndex:[155,167,495],sequence:{pName:"spr_button_32",playback:1,playbackSpeed:0,playbackSpeedType:0,length:3,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{ key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]},nineslice:{nLeft:0,nTop:0,nRight:0,nBottom:0,nEnabled:false,nTilemode:[0,0,0,0,0]}},{pName:"spr_button_64",width:68,height:34,transparent:false,smooth:false,preload:false,bboxRight:67,bboxBottom:33,playbackspeed:0,TPEntryIndex:[139,141,148], sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,length:3,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[], momentsKeystore:[]}},{pName:"spr_button_50",width:54,height:34,transparent:false,smooth:false,preload:false,bboxRight:53,bboxBottom:33,playbackspeed:0,TPEntryIndex:[147,150,153],sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,length:3,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_button_40",width:41,height:34,transparent:false,smooth:false,preload:false,bboxRight:40,bboxBottom:33,playbackspeed:0,TPEntryIndex:[151,154,168],sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,length:3,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack", pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_button_thin",width:41,height:18,transparent:false,smooth:false,preload:false,bboxRight:40,bboxBottom:17,playbackspeed:0, TPEntryIndex:[496,498,508],sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,length:3,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_box_208x80",width:208,height:80,transparent:false,smooth:false,preload:false,bboxRight:207,bboxBottom:79,playbackspeed:15,TPEntryIndex:[65],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1, stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_box_208x32",width:208,height:32,transparent:false,smooth:false,preload:false,bboxRight:207,bboxBottom:31,playbackspeed:15,TPEntryIndex:[97],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[], tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_meter",width:192,height:20,transparent:false,smooth:false,preload:false,bboxRight:191,bboxBottom:19,playbackspeed:15,TPEntryIndex:[106,107],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:2,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0, tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_box_416x144",width:416,height:144,transparent:false,smooth:false,preload:false,bboxRight:415,bboxBottom:143,playbackspeed:15,TPEntryIndex:[36],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1, keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_box_416x144_fill",width:416,height:144,transparent:false,smooth:false,preload:false,bboxLeft:2,bboxRight:413,bboxTop:2,bboxBottom:141,playbackspeed:15,TPEntryIndex:[37],sequence:{pName:"",playback:1,playbackSpeed:15, playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_box_448x80",width:448,height:80,transparent:false,smooth:false,preload:false,bboxRight:447,bboxBottom:79,playbackspeed:15,TPEntryIndex:[47],sequence:{ pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_box_288x160",width:288,height:160,transparent:false,smooth:false,preload:false,bboxRight:287,bboxBottom:159,playbackspeed:15, TPEntryIndex:[38],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_details",width:32,height:32,bboxMode:2,transparent:false,smooth:false,preload:false, xOrigin:16,yOrigin:16,bboxLeft:2,bboxRight:29,bboxTop:2,bboxBottom:28,playbackspeed:15,TPEntryIndex:[524],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:16,yorigin:16,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_arrowL", width:32,height:32,transparent:false,smooth:false,preload:false,xOrigin:16,yOrigin:16,bboxLeft:9,bboxRight:24,bboxTop:8,bboxBottom:22,playbackspeed:15,TPEntryIndex:[633],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:16,yorigin:16,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_arrowU",width:32,height:32,transparent:false,smooth:false,preload:false,xOrigin:16,yOrigin:16,bboxLeft:9,bboxRight:23,bboxTop:9,bboxBottom:24,playbackspeed:15,TPEntryIndex:[635],sequence:{pName:"spr_arrowU",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:16,yorigin:16,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[], tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_arrowL2",width:8,height:15,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:7,bboxRight:7,bboxBottom:14,playbackspeed:15,TPEntryIndex:[1164],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:7,yorigin:7,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0, traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_arrowR",width:32,height:32,transparent:false,smooth:false,preload:false,xOrigin:16,yOrigin:16,bboxLeft:7,bboxRight:22,bboxTop:8,bboxBottom:22,playbackspeed:15,TPEntryIndex:[634],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:16,yorigin:16,volume:1,keyframeStore:[], tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_arrowR2",width:8,height:15,transparent:false,smooth:false,preload:false,xOrigin:2,yOrigin:7,bboxRight:7,bboxBottom:14,playbackspeed:15,TPEntryIndex:[1165],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0, length:1,xorigin:2,yorigin:7,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_arrowR3",width:6,height:13,transparent:false,smooth:false,preload:false,xOrigin:2,yOrigin:6,bboxRight:5,bboxTop:1,bboxBottom:11,playbackspeed:15,TPEntryIndex:[1250],sequence:{ pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:2,yorigin:6,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_edit",width:14,height:14,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:7,bboxRight:13,bboxBottom:13, playbackspeed:15,TPEntryIndex:[739],sequence:{pName:"spr_edit",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:7,yorigin:7,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_tick",width:32,height:32,transparent:false,smooth:false, preload:false,xOrigin:16,yOrigin:16,bboxLeft:6,bboxRight:25,bboxTop:8,bboxBottom:26,playbackspeed:15,TPEntryIndex:[526],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:16,yorigin:16,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]} },{pName:"spr_cross",width:32,height:32,transparent:false,smooth:false,preload:false,xOrigin:15,yOrigin:16,bboxLeft:8,bboxRight:22,bboxTop:9,bboxBottom:23,playbackspeed:15,TPEntryIndex:[642],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:15,yorigin:16,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false, channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_profile",width:32,height:32,transparent:false,smooth:false,preload:false,xOrigin:16,yOrigin:16,bboxLeft:8,bboxRight:22,bboxTop:6,bboxBottom:25,playbackspeed:15,TPEntryIndex:[554],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:16,yorigin:16,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[], tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_box_208x176",width:208,height:176,transparent:false,smooth:false,preload:false,bboxRight:207,bboxBottom:175,playbackspeed:15,TPEntryIndex:[46],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0, tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_box_224x176",width:224,height:176,transparent:false,smooth:false,preload:false,bboxRight:223,bboxBottom:175,playbackspeed:15,TPEntryIndex:[45],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames", builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_box_160x160",width:160,height:160,transparent:false,smooth:false,preload:false,bboxRight:159,bboxBottom:159,playbackspeed:15,TPEntryIndex:[51],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack", pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_box_160x128",width:160,height:128,transparent:false,smooth:false,preload:false,bboxRight:159,bboxBottom:127,playbackspeed:15,TPEntryIndex:[52],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[], tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_box",width:4,height:4,transparent:false,smooth:false,preload:false,bboxRight:3,bboxBottom:3,playbackspeed:15,TPEntryIndex:[1314,1315,1318,1319],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:4,xorigin:0, yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}}]}],sequenceEvents:[], momentsKeystore:[]}},{pName:"spr_kneel",width:18,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:8,yOrigin:13,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:6,TPEntryIndex:[914],sequence:{pName:"spr_kneel",playback:1,playbackSpeed:6,playbackSpeedType:0,length:1,xorigin:8,yorigin:13,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1, stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_spanner",width:32,height:32,transparent:false,smooth:false,preload:false,xOrigin:15,yOrigin:15,bboxLeft:7,bboxRight:23,bboxTop:7,bboxBottom:23,playbackspeed:15,TPEntryIndex:[564],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:15,yorigin:15,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0, tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_home",width:32,height:32,transparent:false,smooth:false,preload:false,xOrigin:15,yOrigin:15,bboxLeft:7,bboxRight:23,bboxTop:8,bboxBottom:25,playbackspeed:15,TPEntryIndex:[552],sequence:{pName:"spr_home",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:15,yorigin:15,volume:1,keyframeStore:[],tracks:[{ modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_trophy",width:32,height:32,transparent:false,smooth:false,preload:false,xOrigin:15,yOrigin:15,bboxLeft:4,bboxRight:13,bboxTop:5,bboxBottom:26,playbackspeed:15,TPEntryIndex:[658],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0, length:1,xorigin:15,yorigin:15,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_msg_bg",width:64,height:64,transparent:false,smooth:false,preload:false,bboxRight:63,bboxBottom:63,playbackspeed:15,TPEntryIndex:[103],sequence:{pName:"",playback:1, playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_textbox64",width:64,transparent:false,smooth:false,preload:false,xOrigin:32,yOrigin:8,bboxRight:63,bboxBottom:15,playbackspeed:15, TPEntryIndex:[165],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:32,yorigin:8,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_textbox48",width:48,transparent:false,smooth:false,preload:false,xOrigin:24,yOrigin:8, bboxRight:47,bboxBottom:15,playbackspeed:15,TPEntryIndex:[493],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:24,yorigin:8,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_box_176x176",width:176,height:176,transparent:false, smooth:false,preload:false,bboxRight:175,bboxBottom:175,playbackspeed:15,TPEntryIndex:[50],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_training", height:23,transparent:false,smooth:false,preload:false,xOrigin:8,yOrigin:11,bboxLeft:2,bboxRight:13,bboxTop:2,bboxBottom:20,playbackspeed:15,TPEntryIndex:[641],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:8,yorigin:11,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0} }}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_qb_walk_thin",height:17,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:8,yOrigin:16,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:6,TPEntryIndex:[1069,876],sequence:{pName:"spr_qb_walk_thin",playback:1,playbackSpeed:6,playbackSpeedType:0,length:2,xorigin:8,yorigin:16,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[], tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_controls_tut_1",width:140,height:59,transparent:false,smooth:false,preload:false,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,TPEntryIndex:[79],sequence:{pName:"spr_controls_tut_1",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70,yorigin:29, volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_box_128x128",width:128,height:128,transparent:false,smooth:false,preload:false,bboxRight:127,bboxBottom:127,playbackspeed:15,TPEntryIndex:[66],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0, length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_getup_ball2_thin",bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:15,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:4,TPEntryIndex:[1045, 1082],sequence:{pName:"spr_getup_ball2_thin",playback:1,playbackSpeed:4,playbackSpeedType:0,length:2,xorigin:7,yorigin:15,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_box_64x64", width:64,height:64,transparent:false,smooth:false,preload:false,bboxRight:63,bboxBottom:63,playbackspeed:15,TPEntryIndex:[101],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]} },{pName:"spr_box_64x32",width:64,height:32,transparent:false,smooth:false,preload:false,bboxRight:63,bboxBottom:31,playbackspeed:15,TPEntryIndex:[143],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]} ],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_box_64x80",width:64,height:80,transparent:false,smooth:false,preload:false,bboxRight:63,bboxBottom:79,playbackspeed:15,TPEntryIndex:[98],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false, channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_box_64x41",width:64,height:41,transparent:false,smooth:false,preload:false,bboxRight:63,bboxBottom:40,playbackspeed:15,TPEntryIndex:[134],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0, length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_info",transparent:false,smooth:false,preload:false,bboxRight:15,bboxBottom:15,playbackspeed:15,TPEntryIndex:[602],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{ key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_checkbox",transparent:false,smooth:false,preload:false,bboxRight:15,bboxBottom:15,playbackspeed:0,TPEntryIndex:[594,595],sequence:{pName:"spr_checkbox",playback:1,playbackSpeed:0,playbackSpeedType:0,length:2,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[], tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_spike_bulky",height:20,transparent:false,smooth:false,preload:false,xOrigin:8,yOrigin:19,bboxRight:13,bboxBottom:19,playbackspeed:9,TPEntryIndex:[588,806,1062],sequence:{pName:"spr_spike_bulky",playback:1,playbackSpeed:9,playbackSpeedType:0,length:3,xorigin:8,yorigin:19,volume:1, keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_scanlines",width:64,height:60,transparent:false,smooth:false, preload:false,bboxRight:63,bboxBottom:57,playbackspeed:15,TPEntryIndex:[108],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_square",transparent:false, smooth:false,preload:false,bboxRight:15,bboxBottom:15,playbackspeed:15,TPEntryIndex:[603],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_jump_catch_bulky", width:7,height:28,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:3,yOrigin:27,bboxLeft:4,bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[1192,1125,1124,1126,1193],sequence:{pName:"spr_jump_catch_bulky",playback:1,playbackSpeed:8,playbackSpeedType:0,length:5,xorigin:3,yorigin:27,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0, length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_weather",width:9,height:9,transparent:false,smooth:false,preload:false,xOrigin:4,yOrigin:4, bboxRight:8,bboxBottom:8,playbackspeed:15,TPEntryIndex:[1263,1267,1264,1238],sequence:{pName:"spr_weather",playback:1,playbackSpeed:15,playbackSpeedType:0,length:4,xorigin:4,yorigin:4,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1} }},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_uniform_select",width:46,height:2,transparent:false,smooth:false,preload:false,xOrigin:23,yOrigin:1,bboxRight:45,bboxBottom:1,playbackspeed:15,TPEntryIndex:[1202,1205,1206,1203,1204],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:5,xorigin:23,yorigin:1,volume:1,keyframeStore:[], tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:4}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_uniform_select2",width:36,height:2,transparent:false,smooth:false,preload:false,xOrigin:18,yOrigin:1,bboxLeft:10,bboxRight:25,bboxBottom:1,playbackspeed:15,TPEntryIndex:[1270,1271],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:2,xorigin:18,yorigin:1,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[], tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_falling_thin",width:24,height:24,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:12,yOrigin:22,bboxLeft:8,bboxRight:17,bboxTop:17,bboxBottom:23,playbackspeed:3,TPEntryIndex:[1200,1201],sequence:{pName:"spr_falling_thin",playback:1,playbackSpeed:3,playbackSpeedType:0, length:2,xorigin:12,yorigin:22,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_uniform_select4",width:36,height:2,transparent:false,smooth:false,preload:false,xOrigin:18, yOrigin:1,bboxRight:35,bboxBottom:1,playbackspeed:15,TPEntryIndex:[1248,1247,1246,1249],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:4,xorigin:18,yorigin:1,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1} }},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_player_edit",width:15,height:20,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:10,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:0,TPEntryIndex:[553,652],sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,length:2,xorigin:7,yorigin:10,volume:1, keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_col_picker",width:391,height:262,transparent:false,smooth:false,preload:false,xOrigin:195,yOrigin:131,bboxRight:390,bboxBottom:261, playbackspeed:15,TPEntryIndex:[31],sequence:{pName:"spr_col_picker",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:195,yorigin:131,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_tag_hof",width:32,height:32,transparent:false, smooth:false,preload:false,bboxLeft:9,bboxRight:23,bboxBottom:19,playbackspeed:0,TPEntryIndex:[828,556,577],sequence:{pName:"spr_tag_hof",playback:1,playbackSpeed:0,playbackSpeedType:0,length:3,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false, channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_hof_s",width:7,height:8,transparent:false,smooth:false,preload:false,xOrigin:3,bboxRight:6,bboxBottom:7,playbackspeed:15,TPEntryIndex:[1269,1254],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:2,xorigin:3,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0, creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_medals",width:7,height:12,transparent:false,smooth:false,preload:false,bboxRight:6,bboxBottom:11,playbackspeed:15,TPEntryIndex:[1213,1212,1214,1215,1221],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:5, xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4, length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_medals_c",width:7,height:12,transparent:false,smooth:false,preload:false,xOrigin:3,yOrigin:5,bboxRight:6,bboxBottom:11,playbackspeed:15,TPEntryIndex:[1219,1216,1217,1218,1220],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:5,xorigin:3,yorigin:5,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0, tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_watermark",width:960, height:540,transparent:false,smooth:false,preload:false,xOrigin:480,yOrigin:270,bboxRight:959,bboxBottom:539,playbackspeed:15,TPEntryIndex:[1],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:480,yorigin:270,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[], momentsKeystore:[]}},{pName:"spr_iconRG",width:32,height:32,transparent:false,smooth:false,preload:false,bboxRight:31,bboxBottom:31,playbackspeed:30,TPEntryIndex:[163],sequence:{pName:"spr_iconRG",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_sb_ring",width:11,height:11,transparent:false,smooth:false,preload:false,bboxRight:10,bboxBottom:10,playbackspeed:15,TPEntryIndex:[1160],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false, disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_sb_ring_c",width:11,height:11,transparent:false,smooth:false,preload:false,xOrigin:5,yOrigin:5,bboxRight:10,bboxBottom:10,playbackspeed:15,TPEntryIndex:[1161],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:5,yorigin:5,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[], tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_jacket",width:32,height:32,transparent:false,smooth:false,preload:false,bboxLeft:3,bboxRight:27,bboxTop:7,bboxBottom:24,playbackspeed:15,TPEntryIndex:[505],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0, traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_button_74s",width:74,height:26,transparent:false,smooth:false,preload:false,bboxRight:73,bboxBottom:25,playbackspeed:15,TPEntryIndex:[144,149,152],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:3,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack", pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_scoreboard",width:208,height:88,transparent:false,smooth:false,preload:false,bboxRight:207,bboxBottom:87,playbackspeed:15, TPEntryIndex:[53],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_light_001",width:32,height:36,transparent:false,smooth:false,preload:false,bboxLeft:3, bboxRight:29,bboxTop:3,bboxBottom:35,playbackspeed:15,TPEntryIndex:[479,478,419,327,326,417,428,418],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:8,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]} },{pName:"spr_qb_aim_old_thin",width:15,height:17,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:16,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:6,TPEntryIndex:[620],sequence:{pName:"spr_qb_aim_old_thin",playback:1,playbackSpeed:6,playbackSpeedType:0,length:1,xorigin:7,yorigin:16,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{ key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_light_002",width:32,height:36,transparent:false,smooth:false,preload:false,bboxLeft:3,bboxRight:29,bboxTop:3,bboxBottom:35,playbackspeed:15,TPEntryIndex:[430,332,336,484,429,334,333,335],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:8,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0, traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_light_003",width:32,height:36,transparent:false,smooth:false,preload:false,bboxLeft:3,bboxRight:29,bboxTop:3,bboxBottom:35,playbackspeed:15,TPEntryIndex:[436,453,440,346,438,439,437,487],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:8,xorigin:0,yorigin:0, volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false, disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_mix_001",width:32,height:36,transparent:false,smooth:false,preload:false,bboxLeft:3,bboxRight:29,bboxTop:1,bboxBottom:35,playbackspeed:15,TPEntryIndex:[349,351,192,454,227,350,455, 232],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:8,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}, {key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_dark_001",width:32,height:36,transparent:false,smooth:false,preload:false,bboxLeft:3, bboxRight:29,bboxTop:1,bboxBottom:35,playbackspeed:15,TPEntryIndex:[249,377,172,248,463,369,464,255],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:8,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]} },{pName:"spr_dark_002",width:32,height:36,transparent:false,smooth:false,preload:false,bboxLeft:3,bboxRight:29,bboxTop:1,bboxBottom:35,playbackspeed:15,TPEntryIndex:[256,198,200,201,175,257,378,199],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:8,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false, disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1, stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_dark_003",width:32,height:36,transparent:false,smooth:false,preload:false,bboxLeft:3,bboxRight:29,bboxBottom:35,playbackspeed:15,TPEntryIndex:[390,382,263,381,178,264,169,177],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:8,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0, tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}}, {key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_dark_004",width:32,height:36,transparent:false,smooth:false,preload:false,bboxLeft:3,bboxRight:29,bboxTop:3,bboxBottom:35,playbackspeed:15,TPEntryIndex:[271,273,391,467,392,270,272,269],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:8,xorigin:0,yorigin:0,volume:1,keyframeStore:[], tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_dark_005",width:32,height:36,transparent:false,smooth:false,preload:false,bboxLeft:3,bboxRight:29,bboxTop:1,bboxBottom:35,playbackspeed:15,TPEntryIndex:[285,284,216,186,212,185,293,397],sequence:{pName:"", playback:1,playbackSpeed:15,playbackSpeedType:0,length:8,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false, disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_dark_006",width:32,height:36,transparent:false,smooth:false,preload:false,bboxLeft:3,bboxRight:29,bboxTop:3, bboxBottom:35,playbackspeed:15,TPEntryIndex:[472,401,297,307,294,296,400,295],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:8,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{ key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_dark_007", width:32,height:36,transparent:false,smooth:false,preload:false,bboxLeft:3,bboxRight:29,bboxTop:1,bboxBottom:35,playbackspeed:15,TPEntryIndex:[309,409,218,316,308,187,226,217],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:8,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false, channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_dark_008",width:32,height:36,transparent:false,smooth:false,preload:false,bboxLeft:3,bboxRight:29,bboxTop:1,bboxBottom:35,playbackspeed:15,TPEntryIndex:[410,317,189,473,318,411,474,325],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:8,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[], tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false, channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_coaches_01",width:32,height:36,transparent:false,smooth:false,preload:false,bboxLeft:2,bboxRight:29,bboxTop:2,bboxBottom:35,playbackspeed:15,TPEntryIndex:[361,233,360,362,359,363,234,235,460],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:9,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack", pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false, disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}},{key:8,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:8}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_coaches_02",width:32,height:36,transparent:false,smooth:false,preload:false,bboxLeft:2,bboxRight:29,bboxTop:2,bboxBottom:35,playbackspeed:15,TPEntryIndex:[238,236,194,365,366,364,237, 461,490],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:9,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2} }},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}},{key:8,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:8}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_coaches_03", width:32,height:36,transparent:false,smooth:false,preload:false,bboxLeft:2,bboxRight:29,bboxTop:1,bboxBottom:35,playbackspeed:15,TPEntryIndex:[240,239,171,241,196,367,242,195,491],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:9,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false, channels:{0:{imageIndex:7}}},{key:8,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:8}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_coaches_04",width:32,height:36,transparent:false,smooth:false,preload:false,bboxLeft:2,bboxRight:29,bboxTop:2,bboxBottom:35,playbackspeed:15,TPEntryIndex:[197,247,246,245,462,368,244,243,492],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:9,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack", pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false, disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}},{key:8,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:8}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_app_apple",width:110,height:32,transparent:false,smooth:false,preload:false,bboxRight:109,bboxBottom:31,playbackspeed:15,TPEntryIndex:[110],sequence:{pName:"",playback:1,playbackSpeed:15, playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_app_google",width:110,height:32,transparent:false,smooth:false,preload:false,bboxRight:109,bboxBottom:31,playbackspeed:15,TPEntryIndex:[112],sequence:{ pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_tag_hof_b",width:32,height:32,transparent:false,smooth:false,preload:false,xOrigin:21,yOrigin:14,bboxLeft:9,bboxRight:23, bboxBottom:19,playbackspeed:0,TPEntryIndex:[555],sequence:{pName:"spr_tag_hof_b",playback:1,playbackSpeed:0,playbackSpeedType:0,length:1,xorigin:21,yorigin:14,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_app_discord",width:110,height:32,transparent:false, smooth:false,preload:false,bboxRight:109,bboxBottom:31,playbackspeed:0,TPEntryIndex:[111],sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_app_twitter", width:110,height:32,transparent:false,smooth:false,preload:false,bboxRight:109,bboxBottom:31,playbackspeed:0,TPEntryIndex:[114],sequence:{pName:"",playback:1,playbackSpeed:0,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]} },{pName:"spr_app_reddit",width:110,height:32,transparent:false,smooth:false,preload:false,bboxRight:109,bboxBottom:31,playbackspeed:15,TPEntryIndex:[113],sequence:{pName:"",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}} }]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_gamepad_any",width:20,height:20,transparent:false,smooth:false,preload:false,xOrigin:12,yOrigin:7,bboxRight:19,bboxBottom:19,playbackspeed:15,TPEntryIndex:[515,512,513,514],sequence:{pName:"spr_gamepad_any",playback:1,playbackSpeed:15,playbackSpeedType:0,length:4,xorigin:12,yorigin:7,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[], keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_gamepad_xbox1",width:20,height:20,transparent:false,smooth:false,preload:false,xOrigin:12,yOrigin:7,bboxRight:19,bboxBottom:19,playbackspeed:15, TPEntryIndex:[521,522,523,520],sequence:{pName:"spr_gamepad_xbox1",playback:1,playbackSpeed:15,playbackSpeedType:0,length:4,xorigin:12,yorigin:7,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false, disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_controls_aim",width:140,height:59,transparent:false,smooth:false,preload:false,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,TPEntryIndex:[70],sequence:{pName:"spr_controls_aim",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70,yorigin:29,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack", pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_controls_run_xbox",width:140,height:59,transparent:false,smooth:false,preload:false,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,TPEntryIndex:[77],sequence:{pName:"spr_controls_run_xbox",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1, xorigin:70,yorigin:29,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_controls_run",width:140,height:59,transparent:false,smooth:false,preload:false,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,TPEntryIndex:[76],sequence:{ pName:"spr_controls_run",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70,yorigin:29,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_dive_ball2_bulky",width:32,height:26,bboxMode:2,transparent:false,smooth:false,preload:false, xOrigin:16,yOrigin:25,bboxLeft:13,bboxRight:24,bboxTop:10,bboxBottom:13,playbackspeed:8,TPEntryIndex:[871,754,858],sequence:{pName:"spr_dive_ball2_bulky",playback:1,playbackSpeed:8,playbackSpeedType:0,length:3,xorigin:16,yorigin:25,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false, disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_jump_bulky",height:24,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:22,bboxLeft:4,bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[673,801,674],sequence:{pName:"spr_jump_bulky",playback:1,playbackSpeed:8,playbackSpeedType:0,length:3,xorigin:7,yorigin:22,volume:1,keyframeStore:[],tracks:[{ modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_mix_001_co",width:32,height:36,transparent:false,smooth:false,preload:false,bboxLeft:3, bboxRight:29,bboxTop:1,bboxBottom:35,playbackspeed:15,TPEntryIndex:[352,354,193,456,228,353,457,229],sequence:{pName:"spr_mix_001_co",playback:1,playbackSpeed:15,playbackSpeedType:0,length:8,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false, channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]} },{pName:"spr_jockey_thin",height:17,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:15,bboxLeft:4,bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[1088,766,1089,767],sequence:{pName:"spr_jockey_thin",playback:1,playbackSpeed:8,playbackSpeedType:0,length:4,xorigin:7,yorigin:15,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{ key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_cross2",width:32,height:32,transparent:false,smooth:false,preload:false,xOrigin:15,yOrigin:16,bboxLeft:9,bboxRight:21,bboxTop:10,bboxBottom:22,playbackspeed:15, TPEntryIndex:[880],sequence:{pName:"spr_cross2",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:15,yorigin:16,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_falling_ball2_bulky",width:24,height:24,bboxMode:2,transparent:false, smooth:false,preload:false,xOrigin:12,yOrigin:22,bboxLeft:8,bboxRight:17,bboxTop:17,bboxBottom:23,playbackspeed:3,TPEntryIndex:[1176,1242],sequence:{pName:"spr_falling_ball2_bulky",playback:1,playbackSpeed:3,playbackSpeedType:0,length:2,xorigin:12,yorigin:22,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0} }},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_dark_006_co",width:32,height:36,transparent:false,smooth:false,preload:false,bboxLeft:3,bboxRight:29,bboxTop:3,bboxBottom:35,playbackspeed:15,TPEntryIndex:[470,403,301,302,298,300,402,299],sequence:{pName:"spr_dark_006_co",playback:1,playbackSpeed:15,playbackSpeedType:0,length:8,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames", builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false, channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_run_ball2_bulky",bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:15,bboxLeft:4,bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[1139,945,824,1138,944,823],sequence:{pName:"spr_run_ball2_bulky",playback:1,playbackSpeed:8,playbackSpeedType:0, length:6,xorigin:7,yorigin:15,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3} }},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_getup_ball2_bulky",bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:15,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:4,TPEntryIndex:[1043,995],sequence:{pName:"spr_getup_ball2_bulky",playback:1,playbackSpeed:4,playbackSpeedType:0,length:2,xorigin:7,yorigin:15, volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_jockey_bulky",height:17,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:15,bboxLeft:4,bboxRight:11, bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[1087,764,1086,763],sequence:{pName:"spr_jockey_bulky",playback:1,playbackSpeed:8,playbackSpeedType:0,length:4,xorigin:7,yorigin:15,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1} }},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_band_trumpet",width:12,height:23,transparent:false,smooth:false,preload:false,bboxLeft:3,bboxRight:9,bboxTop:3,bboxBottom:22,playbackspeed:4,TPEntryIndex:[1076,1060,1075,1059],sequence:{pName:"spr_band_trumpet",playback:1,playbackSpeed:4,playbackSpeedType:0,length:4,xorigin:0,yorigin:0,volume:1, keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}}]}],sequenceEvents:[],momentsKeystore:[]} },{pName:"spr_co_shield",width:23,height:23,transparent:false,smooth:false,preload:false,xOrigin:11,yOrigin:4,bboxLeft:1,bboxRight:21,bboxTop:1,bboxBottom:21,playbackspeed:15,TPEntryIndex:[506],sequence:{pName:"spr_co_shield",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:11,yorigin:4,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false, disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_LozAdGP",width:211,height:84,transparent:false,smooth:false,preload:false,xOrigin:105,yOrigin:42,bboxRight:210,bboxBottom:83,playbackspeed:30,TPEntryIndex:[54],sequence:{pName:"spr_LozAdGP",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:105,yorigin:42,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[], tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_cheerleaders3",width:20,height:20,transparent:false,smooth:false,preload:false,xOrigin:10,yOrigin:20,bboxLeft:1,bboxRight:19,bboxBottom:19,playbackspeed:4,TPEntryIndex:[849,848,908,576,906,850,847,907,575,905],sequence:{pName:"spr_cheerleaders3",playback:1,playbackSpeed:4,playbackSpeedType:0,length:10,xorigin:10,yorigin:20,volume:1,keyframeStore:[], tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}},{key:8,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:8}}},{key:9,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:9}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_LozAdNSS",width:211,height:84,transparent:false,smooth:false, preload:false,xOrigin:105,yOrigin:42,bboxRight:210,bboxBottom:83,playbackspeed:30,TPEntryIndex:[57],sequence:{pName:"spr_LozAdNSS",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:105,yorigin:42,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]} },{pName:"spr_cheerleaders1",width:20,height:20,transparent:false,smooth:false,preload:false,xOrigin:10,yOrigin:20,bboxLeft:1,bboxRight:19,bboxBottom:19,playbackspeed:4,TPEntryIndex:[834,832,890,572,889,833,831,892,571,891],sequence:{pName:"spr_cheerleaders1",playback:1,playbackSpeed:4,playbackSpeedType:0,length:10,xorigin:10,yorigin:20,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[], keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false, channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}},{key:8,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:8}}},{key:9,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:9}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_jump_catch_ball2_bulky",width:7,height:28,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:3,yOrigin:27,bboxLeft:4,bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[1190, 1118,1119,1120,1171],sequence:{pName:"spr_jump_catch_ball2_bulky",playback:1,playbackSpeed:8,playbackSpeedType:0,length:5,xorigin:3,yorigin:27,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false, channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_celebrate_bulky",height:20,transparent:false,smooth:false,preload:false,xOrigin:8,yOrigin:19,bboxLeft:3,bboxRight:11,bboxTop:1,bboxBottom:19,playbackspeed:2,TPEntryIndex:[1078,988],sequence:{pName:"spr_celebrate_bulky",playback:1,playbackSpeed:2,playbackSpeedType:0,length:2, xorigin:8,yorigin:19,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_stand_ball_bulky",bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:15,bboxLeft:2, bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:0,TPEntryIndex:[1014,1049,1013],sequence:{pName:"spr_stand_ball_bulky",playback:1,playbackSpeed:0,playbackSpeedType:0,length:3,xorigin:7,yorigin:15,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_band_sax",width:12,height:23,transparent:false,smooth:false,preload:false,bboxLeft:3,bboxRight:9,bboxTop:3,bboxBottom:22,playbackspeed:4,TPEntryIndex:[1074,1058,1073,1057],sequence:{pName:"spr_band_sax",playback:1,playbackSpeed:4,playbackSpeedType:0,length:4,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames", builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_stiffarm2_thin",height:17,bboxMode:2,transparent:false, smooth:false,preload:false,xOrigin:7,yOrigin:15,bboxLeft:4,bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[1034,720,721,1035,723,722],sequence:{pName:"spr_stiffarm2_thin",playback:1,playbackSpeed:8,playbackSpeedType:0,length:6,xorigin:7,yorigin:15,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_light_003_co_s",width:32,height:36,transparent:false,smooth:false, preload:false,bboxLeft:3,bboxRight:29,bboxTop:3,bboxBottom:35,playbackspeed:15,TPEntryIndex:[449,448,451,348,452,447,450,489],sequence:{pName:"spr_light_003_co_s",playback:1,playbackSpeed:15,playbackSpeedType:0,length:8,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1, stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}} }]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_falling_bulky",width:24,height:24,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:12,yOrigin:22,bboxLeft:8,bboxRight:17,bboxTop:17,bboxBottom:23,playbackspeed:3,TPEntryIndex:[1177,1199],sequence:{pName:"spr_falling_bulky",playback:1,playbackSpeed:3,playbackSpeedType:0,length:2,xorigin:12,yorigin:22,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[], ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_dark_007_co",width:32,height:36,transparent:false,smooth:false,preload:false,bboxLeft:3,bboxRight:29,bboxTop:1,bboxBottom:35,playbackspeed:15,TPEntryIndex:[311,407,220,312,310,188,221,219],sequence:{pName:"spr_dark_007_co",playback:1,playbackSpeed:15, playbackSpeedType:0,length:8,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_kneel_thin",width:18,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:8,yOrigin:13,bboxLeft:2,bboxRight:12,bboxTop:9, bboxBottom:18,playbackspeed:6,TPEntryIndex:[915],sequence:{pName:"spr_kneel_thin",playback:1,playbackSpeed:6,playbackSpeedType:0,length:1,xorigin:8,yorigin:13,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_falling_ball2_thin",width:24,height:24, bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:12,yOrigin:22,bboxLeft:8,bboxRight:17,bboxTop:17,bboxBottom:23,playbackspeed:3,TPEntryIndex:[1198,1244],sequence:{pName:"spr_falling_ball2_thin",playback:1,playbackSpeed:3,playbackSpeedType:0,length:2,xorigin:12,yorigin:22,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false, channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_commentary_bg2",width:20,height:20,transparent:false,smooth:false,preload:false,bboxRight:19,bboxBottom:19,playbackspeed:0,TPEntryIndex:[511],sequence:{pName:"spr_commentary_bg2",playback:1,playbackSpeed:0,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0, traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]},nineslice:{nLeft:4,nTop:4,nRight:4,nBottom:4,nEnabled:true,nTilemode:[0,0,0,0,0]}},{pName:"spr_title_aa",width:480,height:270,transparent:false,smooth:false,preload:false,bboxRight:479,bboxBottom:269,playbackspeed:30,TPEntryIndex:[28],sequence:{pName:"spr_title_aa",playback:1,playbackSpeed:30,playbackSpeedType:0, length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_bouncespot2",transparent:false,smooth:false,preload:false,xOrigin:4,yOrigin:3,bboxRight:8,bboxBottom:6,playbackspeed:15,TPEntryIndex:[1251],sequence:{pName:"spr_bouncespot2", playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:4,yorigin:3,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_stand_ball2_thin",bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:15,bboxLeft:2,bboxRight:12, bboxTop:9,bboxBottom:18,playbackspeed:0,TPEntryIndex:[1102,1054,1020],sequence:{pName:"spr_stand_ball2_thin",playback:1,playbackSpeed:0,playbackSpeedType:0,length:3,xorigin:7,yorigin:15,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1} }},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_qb_aim_old_bulky",width:15,height:17,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:16,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:6,TPEntryIndex:[619],sequence:{pName:"spr_qb_aim_old_bulky",playback:1,playbackSpeed:6,playbackSpeedType:0,length:1,xorigin:7,yorigin:16,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack", pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_kick1_bulky",height:20,transparent:false,smooth:false,preload:false,xOrigin:8,yOrigin:17,bboxRight:12,bboxTop:3,bboxBottom:19,playbackspeed:8,TPEntryIndex:[685,1091,648],sequence:{pName:"spr_kick1_bulky",playback:1,playbackSpeed:8,playbackSpeedType:0,length:3,xorigin:8, yorigin:17,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_stand_highlight_thin",height:24,bboxMode:2, transparent:false,smooth:false,preload:false,xOrigin:8,yOrigin:22,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:0,TPEntryIndex:[827,744,733],sequence:{pName:"spr_stand_highlight_thin",playback:1,playbackSpeed:0,playbackSpeedType:0,length:3,xorigin:8,yorigin:22,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_qb_throw_thin",width:12,height:17,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:6,yOrigin:16,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:1,TPEntryIndex:[693],sequence:{pName:"spr_qb_throw_thin",playback:1,playbackSpeed:1,playbackSpeedType:0,length:1, xorigin:6,yorigin:16,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_bg_news",width:480,height:270,transparent:false,smooth:false,preload:false,bboxLeft:10,bboxRight:469,bboxTop:10,bboxBottom:259,playbackspeed:30,TPEntryIndex:[30],sequence:{pName:"spr_bg_news", playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_qb_slide_bulky",width:20,height:20,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:19,bboxLeft:2, bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:6,TPEntryIndex:[923,926,925,927,924,922,921],sequence:{pName:"spr_qb_slide_bulky",playback:1,playbackSpeed:6,playbackSpeedType:0,length:7,xorigin:7,yorigin:19,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false, channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_iconDiscord",width:32,height:32,transparent:false, smooth:false,preload:false,bboxRight:31,bboxBottom:31,playbackspeed:30,TPEntryIndex:[159],sequence:{pName:"spr_iconDiscord",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_cone_noout", width:7,height:4,transparent:false,smooth:false,preload:false,xOrigin:3,yOrigin:2,bboxRight:6,bboxBottom:3,playbackspeed:15,TPEntryIndex:[1273],sequence:{pName:"spr_cone_noout",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:3,yorigin:2,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0} }}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_player_edit_co_thin",width:15,height:20,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:10,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:0,TPEntryIndex:[1094,768],sequence:{pName:"spr_player_edit_co_thin",playback:1,playbackSpeed:0,playbackSpeedType:0,length:2,xorigin:7,yorigin:10,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0, tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_firstdown_thin",width:20,height:20,transparent:false,smooth:false,preload:false,xOrigin:10,yOrigin:19,bboxLeft:4,bboxRight:17,bboxTop:3,bboxBottom:19,playbackspeed:4,TPEntryIndex:[1038,992,980,760,759,761],sequence:{pName:"spr_firstdown_thin", playback:1,playbackSpeed:4,playbackSpeedType:0,length:6,xorigin:10,yorigin:19,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false, disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_kick2_thin",height:20,transparent:false,smooth:false,preload:false,xOrigin:8,yOrigin:17,bboxLeft:1,bboxRight:14,bboxTop:3,bboxBottom:19,playbackspeed:9,TPEntryIndex:[689,690,960,875,1093],sequence:{pName:"spr_kick2_thin",playback:1,playbackSpeed:9,playbackSpeedType:0, length:5,xorigin:8,yorigin:17,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3} }},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_stand_ball2_bulky",bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:15,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:0,TPEntryIndex:[1018,1053,1019],sequence:{pName:"spr_stand_ball2_bulky",playback:1,playbackSpeed:0,playbackSpeedType:0,length:3,xorigin:7,yorigin:15,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack", pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_bengrams",width:32,height:32,transparent:false,smooth:false,preload:false,xOrigin:15,yOrigin:15,bboxLeft:3,bboxRight:28, bboxTop:4,bboxBottom:26,playbackspeed:15,TPEntryIndex:[525,502,500,581,504,546],sequence:{pName:"spr_bengrams",playback:1,playbackSpeed:15,playbackSpeedType:0,length:6,xorigin:15,yorigin:15,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1} }},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_firstdown",width:20,height:20,transparent:false,smooth:false,preload:false,xOrigin:10,yOrigin:19,bboxLeft:4,bboxRight:18,bboxTop:3,bboxBottom:19,playbackspeed:4, TPEntryIndex:[1036,991,979,671,666,667],sequence:{pName:"spr_firstdown",playback:1,playbackSpeed:4,playbackSpeedType:0,length:6,xorigin:10,yorigin:19,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false, disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_iconTwitter",width:32,height:32,transparent:false,smooth:false,preload:false,bboxRight:31,bboxBottom:31,playbackspeed:30,TPEntryIndex:[164],sequence:{pName:"spr_iconTwitter",playback:1, playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_wrestle_thin",bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:9,yOrigin:15,bboxLeft:2,bboxRight:14,bboxTop:9,bboxBottom:18, playbackspeed:4,TPEntryIndex:[963,1072],sequence:{pName:"spr_wrestle_thin",playback:1,playbackSpeed:4,playbackSpeedType:0,length:2,xorigin:9,yorigin:15,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]} },{pName:"spr_dark_001_co_s",width:32,height:36,transparent:false,smooth:false,preload:false,bboxLeft:3,bboxRight:29,bboxTop:1,bboxBottom:35,playbackspeed:15,TPEntryIndex:[254,373,174,253,375,374,372,376],sequence:{pName:"spr_dark_001_co_s",playback:1,playbackSpeed:15,playbackSpeedType:0,length:8,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0, length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6} }},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_co_year",width:14,height:11,transparent:false,smooth:false,preload:false,xOrigin:5,yOrigin:5,bboxRight:13,bboxBottom:10,playbackspeed:30,TPEntryIndex:[968,969,966,967],sequence:{pName:"spr_co_year",playback:1,playbackSpeed:30,playbackSpeedType:0,length:4,xorigin:5,yorigin:5,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0, traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_jump2_bulky",height:24,bboxMode:2,transparent:false,smooth:false,preload:false, xOrigin:7,yOrigin:22,bboxLeft:4,bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[679,803,680],sequence:{pName:"spr_jump2_bulky",playback:1,playbackSpeed:8,playbackSpeedType:0,length:3,xorigin:7,yorigin:22,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false, disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_controls_tut_2b",width:140,height:59,transparent:false,smooth:false,preload:false,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,TPEntryIndex:[83],sequence:{pName:"spr_controls_tut_2b",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70,yorigin:29,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack", pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_dark_007_co_s",width:32,height:36,transparent:false,smooth:false,preload:false,bboxLeft:3,bboxRight:29,bboxTop:2,bboxBottom:35,playbackspeed:15,TPEntryIndex:[315,408,224,314,222,313,225,223],sequence:{pName:"spr_dark_007_co_s",playback:1,playbackSpeed:15,playbackSpeedType:0, length:8,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}} },{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_pause",width:12,height:12,transparent:false,smooth:false,preload:false,xOrigin:6,yOrigin:6,bboxRight:11,bboxBottom:11,playbackspeed:30,TPEntryIndex:[1006, 1005],sequence:{pName:"spr_pause",playback:1,playbackSpeed:30,playbackSpeedType:0,length:2,xorigin:6,yorigin:6,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_tag_yb",width:32, height:32,transparent:false,smooth:false,preload:false,bboxLeft:9,bboxRight:23,bboxBottom:19,playbackspeed:0,TPEntryIndex:[830,559,578],sequence:{pName:"spr_tag_yb",playback:1,playbackSpeed:0,playbackSpeedType:0,length:3,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1, stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_qb_aim_thin",width:15,height:17,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:16,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:6,TPEntryIndex:[623,626,624,621,627,622,625],sequence:{pName:"spr_qb_aim_thin",playback:1,playbackSpeed:6,playbackSpeedType:0,length:7,xorigin:7, yorigin:16,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1, stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_gradient",width:64,height:64,transparent:false,smooth:false,preload:false,bboxRight:63,bboxBottom:63,playbackspeed:30,TPEntryIndex:[102],sequence:{pName:"spr_gradient",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:0,yorigin:0, volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_qb_slide_thin",width:20,height:20,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:19,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:6,TPEntryIndex:[935,932, 930,933,936,931,934],sequence:{pName:"spr_qb_slide_thin",playback:1,playbackSpeed:6,playbackSpeedType:0,length:7,xorigin:7,yorigin:19,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false, channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_sideline_crew_co",width:299,height:29,transparent:false,smooth:false,preload:false,yOrigin:-1,bboxLeft:2,bboxRight:296,bboxTop:2, bboxBottom:28,playbackspeed:15,TPEntryIndex:[96],sequence:{pName:"spr_sideline_crew_co",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:0,yorigin:-1,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_training_target",width:24,height:18, transparent:false,smooth:false,preload:false,xOrigin:12,yOrigin:9,bboxRight:23,bboxBottom:17,playbackspeed:30,TPEntryIndex:[507],sequence:{pName:"spr_training_target",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:12,yorigin:9,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[], momentsKeystore:[]}},{pName:"spr_firstdown_kneel_thin",height:20,transparent:false,smooth:false,preload:false,xOrigin:10,yOrigin:19,bboxRight:15,bboxTop:5,bboxBottom:19,playbackspeed:4,TPEntryIndex:[977,663,797,796,799,795,798],sequence:{pName:"spr_firstdown_kneel_thin",playback:1,playbackSpeed:4,playbackSpeedType:0,length:7,xorigin:10,yorigin:19,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[], tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false, channels:{0:{imageIndex:6}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_cheerleaders1_noout",width:20,height:21,transparent:false,smooth:false,preload:false,xOrigin:10,yOrigin:20,bboxLeft:1,bboxRight:19,bboxBottom:20,playbackspeed:4,TPEntryIndex:[838,835,895,539,894,836,837,893,540,896],sequence:{pName:"spr_cheerleaders1_noout",playback:1,playbackSpeed:4,playbackSpeedType:0,length:10,xorigin:10,yorigin:20,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames", builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false, channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}},{key:8,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:8}}},{key:9,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:9}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_controls_aim_xbox",width:140,height:59,transparent:false,smooth:false,preload:false,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58, playbackspeed:30,TPEntryIndex:[71],sequence:{pName:"spr_controls_aim_xbox",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:70,yorigin:29,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_spike2_bulky",height:20,transparent:false, smooth:false,preload:false,xOrigin:8,yOrigin:19,bboxRight:13,bboxBottom:19,playbackspeed:9,TPEntryIndex:[590,810,1065],sequence:{pName:"spr_spike2_bulky",playback:1,playbackSpeed:9,playbackSpeedType:0,length:3,xorigin:8,yorigin:19,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false, disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_firstdown_kneel_bulky",height:20,transparent:false,smooth:false,preload:false,xOrigin:10,yOrigin:19,bboxRight:15,bboxTop:5,bboxBottom:19,playbackspeed:4,TPEntryIndex:[975,661,791,789,790,793,792],sequence:{pName:"spr_firstdown_kneel_bulky",playback:1,playbackSpeed:4,playbackSpeedType:0,length:7,xorigin:10,yorigin:19,volume:1,keyframeStore:[], tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_band_drum2",width:12,height:23,transparent:false,smooth:false,preload:false,bboxLeft:2,bboxRight:10,bboxTop:3,bboxBottom:22,playbackspeed:4,TPEntryIndex:[865,813,866,814],sequence:{pName:"spr_band_drum2",playback:1,playbackSpeed:4,playbackSpeedType:0,length:4,xorigin:0,yorigin:0, volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}}]}],sequenceEvents:[],momentsKeystore:[]} },{pName:"spr_controls_replay_xbox",width:140,height:59,transparent:false,smooth:false,preload:false,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,TPEntryIndex:[75],sequence:{pName:"spr_controls_replay_xbox",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70,yorigin:29,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1, stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_dark_004_co_s",width:32,height:36,transparent:false,smooth:false,preload:false,bboxLeft:3,bboxRight:29,bboxTop:3,bboxBottom:35,playbackspeed:15,TPEntryIndex:[280,281,395,469,396,283,279,282],sequence:{pName:"spr_dark_004_co_s",playback:1,playbackSpeed:15,playbackSpeedType:0,length:8,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0, traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_band_flute",width:12,height:23,transparent:false,smooth:false,preload:false,bboxRight:10,bboxTop:3,bboxBottom:22,playbackspeed:4,TPEntryIndex:[748,656,747,657],sequence:{pName:"spr_band_flute",playback:1,playbackSpeed:4,playbackSpeedType:0,length:4,xorigin:0,yorigin:0,volume:1,keyframeStore:[], tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_LozAdNSM", width:211,height:84,transparent:false,smooth:false,preload:false,xOrigin:105,yOrigin:42,bboxRight:210,bboxBottom:83,playbackspeed:30,TPEntryIndex:[56],sequence:{pName:"spr_LozAdNSM",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:105,yorigin:42,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0} }}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_iconReddit",width:32,height:32,transparent:false,smooth:false,preload:false,bboxRight:31,bboxBottom:31,playbackspeed:30,TPEntryIndex:[162],sequence:{pName:"spr_iconReddit",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false, disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_goal_post_noout",width:17,height:90,transparent:false,smooth:false,preload:false,yOrigin:85,bboxLeft:11,bboxRight:14,bboxTop:17,bboxBottom:59,playbackspeed:0,TPEntryIndex:[862],sequence:{pName:"spr_goal_post_noout",playback:1,playbackSpeed:0,playbackSpeedType:0,length:1,xorigin:0,yorigin:85,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0, tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_firstdown_kneel",height:20,transparent:false,smooth:false,preload:false,xOrigin:10,yOrigin:19,bboxRight:15,bboxTop:5,bboxBottom:19,playbackspeed:4,TPEntryIndex:[976,662,786,794,787,788,785],sequence:{pName:"spr_firstdown_kneel",playback:1,playbackSpeed:4,playbackSpeedType:0,length:7,xorigin:10,yorigin:19,volume:1,keyframeStore:[], tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_iconNSM",width:32,height:32,transparent:false,smooth:false,preload:false,bboxRight:31,bboxBottom:31,playbackspeed:30,TPEntryIndex:[160],sequence:{pName:"spr_iconNSM",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack", pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_sideline_crew2_noout",width:734,height:22,transparent:false,smooth:false,preload:false,yOrigin:-1,bboxRight:733,bboxBottom:21,playbackspeed:15,TPEntryIndex:[67],sequence:{pName:"spr_sideline_crew2_noout",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:0, yorigin:-1,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_cheerleaders2_noout",width:20,height:21,transparent:false,smooth:false,preload:false,xOrigin:10,yOrigin:20,bboxLeft:1,bboxRight:19,bboxBottom:20,playbackspeed:4,TPEntryIndex:[844,846,902, 541,903,843,845,901,542,904],sequence:{pName:"spr_cheerleaders2_noout",playback:1,playbackSpeed:4,playbackSpeedType:0,length:10,xorigin:10,yorigin:20,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false, disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}},{key:8,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:8}}},{key:9,length:1, stretch:false,disabled:false,channels:{0:{imageIndex:9}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_checkbox012",transparent:false,smooth:false,preload:false,bboxRight:15,bboxBottom:15,playbackspeed:0,TPEntryIndex:[597,596,598],sequence:{pName:"spr_checkbox012",playback:1,playbackSpeed:0,playbackSpeedType:0,length:3,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[], tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_kick1_thin",height:20,transparent:false,smooth:false,preload:false,xOrigin:8,yOrigin:17,bboxRight:12,bboxTop:3,bboxBottom:19,playbackspeed:8,TPEntryIndex:[686,1092,649],sequence:{pName:"spr_kick1_thin", playback:1,playbackSpeed:8,playbackSpeedType:0,length:3,xorigin:8,yorigin:17,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]} },{pName:"spr_negotiate_num",width:23,height:15,transparent:false,smooth:false,preload:false,xOrigin:11,yOrigin:7,bboxRight:22,bboxBottom:14,playbackspeed:30,TPEntryIndex:[534],sequence:{pName:"spr_negotiate_num",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:11,yorigin:7,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false, channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_qb_aim_bulky",width:15,height:17,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:16,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:6,TPEntryIndex:[614,612,613,611,615,616,617],sequence:{pName:"spr_qb_aim_bulky",playback:1,playbackSpeed:6,playbackSpeedType:0,length:7,xorigin:7,yorigin:16,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0, traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_controls_tut_2",width:140,height:59,transparent:false,smooth:false,preload:false,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,TPEntryIndex:[81],sequence:{pName:"spr_controls_tut_2",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70,yorigin:29,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames", builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_box_flex",transparent:false,smooth:false,preload:false,bboxRight:15,bboxBottom:15,playbackspeed:0,TPEntryIndex:[591],sequence:{pName:"spr_box_flex",playback:1,playbackSpeed:0,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack", pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]},nineslice:{nLeft:4,nTop:4,nRight:4,nBottom:4,nEnabled:true,nTilemode:[0,0,0,0,0]}},{pName:"spr_falling_ball_thin",width:24,height:24,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:12,yOrigin:22,bboxLeft:8,bboxRight:17,bboxTop:17,bboxBottom:23,playbackspeed:3, TPEntryIndex:[1197,1241],sequence:{pName:"spr_falling_ball_thin",playback:1,playbackSpeed:3,playbackSpeedType:0,length:2,xorigin:12,yorigin:22,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]} },{pName:"spr_gpa",width:21,height:7,transparent:false,smooth:false,preload:false,xOrigin:10,yOrigin:3,bboxRight:20,bboxBottom:6,playbackspeed:15,TPEntryIndex:[987],sequence:{pName:"spr_gpa",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:10,yorigin:3,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_player_edit_co",width:15,height:20,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:10,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:0,TPEntryIndex:[1008,653],sequence:{pName:"spr_player_edit_co",playback:1,playbackSpeed:0,playbackSpeedType:0,length:2,xorigin:7,yorigin:10,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0, tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_adNSM",width:480,height:270,transparent:false,smooth:false,preload:false,bboxRight:479,bboxBottom:269,playbackspeed:30,TPEntryIndex:[23],sequence:{pName:"spr_adNSM",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:0,yorigin:0, volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_dark_005_co",width:32,height:36,transparent:false,smooth:false,preload:false,bboxLeft:3,bboxRight:29,bboxTop:1,bboxBottom:35,playbackspeed:15,TPEntryIndex:[287,286,214,182,213,181,288,398],sequence:{ pName:"spr_dark_005_co",playback:1,playbackSpeed:15,playbackSpeedType:0,length:8,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}, {key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_dark_004_co",width:32,height:36,transparent:false,smooth:false,preload:false, bboxLeft:3,bboxRight:29,bboxTop:3,bboxBottom:35,playbackspeed:15,TPEntryIndex:[276,278,393,468,394,275,277,274],sequence:{pName:"spr_dark_004_co",playback:1,playbackSpeed:15,playbackSpeedType:0,length:8,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false, disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[], momentsKeystore:[]}},{pName:"spr_adRG",width:480,height:270,transparent:false,smooth:false,preload:false,bboxRight:479,bboxBottom:269,playbackspeed:30,TPEntryIndex:[25],sequence:{pName:"spr_adRG",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_fieldfans_co",width:1300,height:33,transparent:false,smooth:false,preload:false,bboxRight:1299,bboxBottom:32,playbackspeed:15,TPEntryIndex:[42,41,43],sequence:{pName:"spr_fieldfans_co",playback:1,playbackSpeed:15,playbackSpeedType:0,length:3,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{ key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_LozAdRG",width:211,height:84,transparent:false,smooth:false,preload:false,xOrigin:105,yOrigin:42,bboxRight:210,bboxBottom:83,playbackspeed:30,TPEntryIndex:[59],sequence:{pName:"spr_LozAdRG",playback:1,playbackSpeed:30,playbackSpeedType:0, length:1,xorigin:105,yorigin:42,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_stand_bulky",bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:8,yOrigin:15,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:0,TPEntryIndex:[1022, 1055,1021],sequence:{pName:"spr_stand_bulky",playback:1,playbackSpeed:0,playbackSpeedType:0,length:3,xorigin:8,yorigin:15,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_controls_tut_3b_xbox",width:140,height:59,transparent:false,smooth:false,preload:false,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,TPEntryIndex:[88],sequence:{pName:"spr_controls_tut_3b_xbox",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70,yorigin:29,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[], tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_dive_ball_bulky",width:32,height:26,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:16,yOrigin:25,bboxLeft:13,bboxRight:24,bboxTop:10,bboxBottom:13,playbackspeed:8,TPEntryIndex:[868,752,856],sequence:{pName:"spr_dive_ball_bulky",playback:1,playbackSpeed:8,playbackSpeedType:0,length:3,xorigin:16,yorigin:25,volume:1,keyframeStore:[], tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_dark_008_co_s",width:32,height:36,transparent:false,smooth:false,preload:false, bboxLeft:3,bboxRight:29,bboxTop:1,bboxBottom:35,playbackspeed:15,TPEntryIndex:[415,322,191,477,323,414,416,324],sequence:{pName:"spr_dark_008_co_s",playback:1,playbackSpeed:15,playbackSpeedType:0,length:8,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false, disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[], momentsKeystore:[]}},{pName:"spr_dark_001_co",width:32,height:36,transparent:false,smooth:false,preload:false,bboxLeft:3,bboxRight:29,bboxTop:1,bboxBottom:35,playbackspeed:15,TPEntryIndex:[251,371,173,250,465,370,466,252],sequence:{pName:"spr_dark_001_co",playback:1,playbackSpeed:15,playbackSpeedType:0,length:8,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{ key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{ imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_qb_throw_bulky",width:12,height:17,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:6,yOrigin:16,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:1,TPEntryIndex:[692],sequence:{pName:"spr_qb_throw_bulky",playback:1,playbackSpeed:1,playbackSpeedType:0,length:1,xorigin:6,yorigin:16,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack", pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_controls_tut_3",width:140,height:59,transparent:false,smooth:false,preload:false,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,TPEntryIndex:[85],sequence:{pName:"spr_controls_tut_3",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70, yorigin:29,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_jump_thin",height:24,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:22,bboxLeft:4,bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[676,802, 677],sequence:{pName:"spr_jump_thin",playback:1,playbackSpeed:8,playbackSpeedType:0,length:3,xorigin:7,yorigin:22,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2} }}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_jump_catch_thin",width:7,height:28,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:3,yOrigin:27,bboxLeft:4,bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[1210,1129,1128,1130,1211],sequence:{pName:"spr_jump_catch_thin",playback:1,playbackSpeed:8,playbackSpeedType:0,length:5,xorigin:3,yorigin:27,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0, tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_dark_002_co",width:32, height:36,transparent:false,smooth:false,preload:false,bboxLeft:3,bboxRight:29,bboxTop:1,bboxBottom:35,playbackspeed:15,TPEntryIndex:[258,204,202,205,176,259,379,203],sequence:{pName:"spr_dark_002_co",playback:1,playbackSpeed:15,playbackSpeedType:0,length:8,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false, channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false, disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_controls_replay",width:140,height:59,transparent:false,smooth:false,preload:false,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,TPEntryIndex:[74],sequence:{pName:"spr_controls_replay",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70,yorigin:29,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0, tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_title_co_wide",width:588,height:270,transparent:false,smooth:false,preload:false,bboxRight:587,bboxBottom:269,playbackspeed:30,TPEntryIndex:[20,19,18],sequence:{pName:"spr_title_co_wide",playback:1,playbackSpeed:30,playbackSpeedType:0,length:3,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack", pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_run_ball2_thin",bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:15,bboxLeft:4,bboxRight:11, bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[1142,947,826,1141,948,825],sequence:{pName:"spr_run_ball2_thin",playback:1,playbackSpeed:8,playbackSpeedType:0,length:6,xorigin:7,yorigin:15,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_field_co",width:1300,height:237,transparent:false,smooth:false,preload:false,bboxRight:1299,bboxBottom:236,playbackspeed:0,TPEntryIndex:[9, 11,15,13,12,14,16,10],sequence:{pName:"spr_field_co",playback:1,playbackSpeed:0,playbackSpeedType:0,length:8,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]},nineslice:{nLeft:0,nTop:0,nRight:0,nBottom:0,nEnabled:false,nTilemode:[0, 0,0,0,0]}},{pName:"spr_LozAdRB",width:211,height:84,transparent:false,smooth:false,preload:false,xOrigin:105,yOrigin:42,bboxRight:210,bboxBottom:83,playbackspeed:30,TPEntryIndex:[58],sequence:{pName:"spr_LozAdRB",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:105,yorigin:42,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false, disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_jump2_thin",height:24,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:22,bboxLeft:4,bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[682,805,683],sequence:{pName:"spr_jump2_thin",playback:1,playbackSpeed:8,playbackSpeedType:0,length:3,xorigin:7,yorigin:22,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0, creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_goal_stand_co",width:11,height:37,transparent:false,smooth:false,preload:false,yOrigin:32,bboxLeft:1,bboxRight:10,bboxTop:6,bboxBottom:36,playbackspeed:0, TPEntryIndex:[551,550],sequence:{pName:"spr_goal_stand_co",playback:1,playbackSpeed:0,playbackSpeedType:0,length:2,xorigin:0,yorigin:32,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]} },{pName:"spr_controls_tut_4",width:140,height:59,transparent:false,smooth:false,preload:false,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,TPEntryIndex:[91],sequence:{pName:"spr_controls_tut_4",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70,yorigin:29,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false, disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_controls_tut_4b",width:140,height:59,transparent:false,smooth:false,preload:false,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,TPEntryIndex:[93],sequence:{pName:"spr_controls_tut_4b",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70,yorigin:29,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0, tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_dark_006_co_s",width:32,height:36,transparent:false,smooth:false,preload:false,bboxLeft:3,bboxRight:29,bboxTop:3,bboxBottom:35,playbackspeed:15,TPEntryIndex:[471,406,305,304,303,405,404,306],sequence:{pName:"spr_dark_006_co_s",playback:1,playbackSpeed:15,playbackSpeedType:0,length:8,xorigin:0,yorigin:0,volume:1,keyframeStore:[], tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_adNSGP",width:480,height:270,transparent:false,smooth:false,preload:false,bboxRight:479,bboxBottom:269,playbackspeed:30,TPEntryIndex:[22],sequence:{pName:"spr_adNSGP",playback:1,playbackSpeed:30,playbackSpeedType:0, length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_getup_thin",bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:15,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:4,TPEntryIndex:[1047, 999],sequence:{pName:"spr_getup_thin",playback:1,playbackSpeed:4,playbackSpeedType:0,length:2,xorigin:7,yorigin:15,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_dark_002_co_s", width:32,height:36,transparent:false,smooth:false,preload:false,bboxLeft:3,bboxRight:29,bboxTop:2,bboxBottom:35,playbackspeed:15,TPEntryIndex:[261,208,209,206,207,262,380,260],sequence:{pName:"spr_dark_002_co_s",playback:1,playbackSpeed:15,playbackSpeedType:0,length:8,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false, channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false, disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_light_003_co",width:32,height:36,transparent:false,smooth:false,preload:false,bboxLeft:3,bboxRight:29,bboxTop:3,bboxBottom:35,playbackspeed:15,TPEntryIndex:[441,446,445,347,443,444,442,488],sequence:{pName:"spr_light_003_co",playback:1,playbackSpeed:15,playbackSpeedType:0,length:8,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0, creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{ imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_chains_noout",width:32,height:27,transparent:false,smooth:false,preload:false,xOrigin:16,yOrigin:26,bboxLeft:7,bboxRight:26,bboxTop:2,bboxBottom:26,playbackspeed:15,TPEntryIndex:[545,532],sequence:{pName:"spr_chains_noout",playback:1,playbackSpeed:15,playbackSpeedType:0,length:2,xorigin:16, yorigin:26,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]},nineslice:{nLeft:0,nTop:0,nRight:0,nBottom:0,nEnabled:false,nTilemode:[0,0,0,0,0]}},{pName:"spr_band_drum1",width:12,height:23, transparent:false,smooth:false,preload:false,bboxLeft:1,bboxRight:11,bboxTop:4,bboxBottom:22,playbackspeed:4,TPEntryIndex:[864,746,863,745],sequence:{pName:"spr_band_drum1",playback:1,playbackSpeed:4,playbackSpeedType:0,length:4,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}, {key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_taunt_thin",height:17,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:15,bboxLeft:4,bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[878,783,877,728,879,784],sequence:{pName:"spr_taunt_thin", playback:1,playbackSpeed:8,playbackSpeedType:0,length:6,xorigin:7,yorigin:15,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false, disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_title",width:480,height:270,transparent:false,smooth:false,preload:false,bboxRight:479,bboxBottom:269,playbackspeed:30,TPEntryIndex:[29],sequence:{pName:"spr_title",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[], tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_controls_tut_2b_xbox",width:140,height:59,transparent:false,smooth:false,preload:false,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,TPEntryIndex:[84],sequence:{pName:"spr_controls_tut_2b_xbox",playback:1, playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70,yorigin:29,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_star_16",transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:7,bboxLeft:1,bboxRight:13,bboxBottom:13,playbackspeed:15, TPEntryIndex:[812],sequence:{pName:"spr_star_16",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:7,yorigin:7,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_handoff_bulky",bboxMode:2,transparent:false,smooth:false,preload:false, xOrigin:8,yOrigin:15,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:4,TPEntryIndex:[956,1001],sequence:{pName:"spr_handoff_bulky",playback:1,playbackSpeed:4,playbackSpeedType:0,length:2,xorigin:8,yorigin:15,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false, disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_button_32_9",width:33,height:34,transparent:false,smooth:false,preload:false,bboxRight:32,bboxBottom:33,playbackspeed:0,TPEntryIndex:[156,166,494],sequence:{pName:"spr_button_32_9",playback:1,playbackSpeed:0,playbackSpeedType:0,length:3,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[], tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]},nineslice:{nLeft:6,nTop:6,nRight:6,nBottom:6,nEnabled:true,nTilemode:[0,0,0,0,0]}},{pName:"spr_controls_tut_3c_xbox",width:140,height:59,transparent:false,smooth:false,preload:false,xOrigin:70,yOrigin:29,bboxRight:139, bboxBottom:58,playbackspeed:15,TPEntryIndex:[90],sequence:{pName:"spr_controls_tut_3c_xbox",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70,yorigin:29,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_band_conductor",width:12, height:23,transparent:false,smooth:false,preload:false,bboxLeft:2,bboxRight:10,bboxBottom:22,playbackspeed:4,TPEntryIndex:[882,665,883,884],sequence:{pName:"spr_band_conductor",playback:1,playbackSpeed:4,playbackSpeedType:0,length:4,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0} }},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_adSWITCH",width:480,height:270,transparent:false,smooth:false,preload:false,bboxRight:479,bboxBottom:269,playbackspeed:30,TPEntryIndex:[26],sequence:{pName:"spr_adSWITCH",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1, xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_skiptime",width:96,height:32,bboxMode:2,transparent:false,smooth:false,preload:false,bboxLeft:2,bboxRight:29,bboxTop:2,bboxBottom:28,playbackspeed:0,TPEntryIndex:[127],sequence:{ pName:"spr_skiptime",playback:1,playbackSpeed:0,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_controls_tut_4b_xbox",width:140,height:59,transparent:false,smooth:false,preload:false,xOrigin:70, yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,TPEntryIndex:[94],sequence:{pName:"spr_controls_tut_4b_xbox",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70,yorigin:29,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_spike2_thin", height:20,transparent:false,smooth:false,preload:false,xOrigin:8,yOrigin:19,bboxRight:13,bboxBottom:19,playbackspeed:9,TPEntryIndex:[640,811,1066],sequence:{pName:"spr_spike2_thin",playback:1,playbackSpeed:9,playbackSpeedType:0,length:3,xorigin:8,yorigin:19,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0} }},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_stiffarm2_bulky",height:17,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:15,bboxLeft:4,bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[1032,716,717,1033,715,714],sequence:{pName:"spr_stiffarm2_bulky",playback:1,playbackSpeed:8,playbackSpeedType:0, length:6,xorigin:7,yorigin:15,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3} }},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_jump_catch_ball2_thin",width:7,height:28,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:3,yOrigin:27,bboxLeft:4,bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[1209,1121,1122,1123,1191],sequence:{pName:"spr_jump_catch_ball2_thin",playback:1,playbackSpeed:8,playbackSpeedType:0, length:5,xorigin:3,yorigin:27,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3} }},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_stand_ball_thin",bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:15,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:0,TPEntryIndex:[1101,1051,1015],sequence:{pName:"spr_stand_ball_thin",playback:1,playbackSpeed:0,playbackSpeedType:0,length:3,xorigin:7,yorigin:15,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack", pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_run_bulky",height:17,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:16,bboxLeft:4,bboxRight:11, bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[1096,773,695,1097,772,696],sequence:{pName:"spr_run_bulky",playback:1,playbackSpeed:8,playbackSpeedType:0,length:6,xorigin:7,yorigin:16,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{ imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_light_001_co",width:32,height:36,transparent:false,smooth:false,preload:false,bboxLeft:3,bboxRight:29,bboxTop:3,bboxBottom:35,playbackspeed:15, TPEntryIndex:[481,480,423,328,329,421,420,422],sequence:{pName:"spr_light_001_co",playback:1,playbackSpeed:15,playbackSpeedType:0,length:8,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1, stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_col_picker2",width:391, height:262,transparent:false,smooth:false,preload:false,xOrigin:195,yOrigin:131,bboxRight:390,bboxBottom:261,playbackspeed:15,TPEntryIndex:[32],sequence:{pName:"spr_col_picker2",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:195,yorigin:131,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0} }}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_wrestle_bulky",bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:9,yOrigin:15,bboxLeft:2,bboxRight:14,bboxTop:9,bboxBottom:18,playbackspeed:4,TPEntryIndex:[962,1071],sequence:{pName:"spr_wrestle_bulky",playback:1,playbackSpeed:4,playbackSpeedType:0,length:2,xorigin:9,yorigin:15,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[], tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_jump_catch_ball_thin",width:7,height:28,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:3,yOrigin:27,bboxLeft:4,bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[1208,1113,1114,1112,1188],sequence:{pName:"spr_jump_catch_ball_thin",playback:1, playbackSpeed:8,playbackSpeedType:0,length:5,xorigin:3,yorigin:27,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false, channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_controls_tut_3b",width:140,height:59,transparent:false,smooth:false,preload:false,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,TPEntryIndex:[87],sequence:{pName:"spr_controls_tut_3b",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70,yorigin:29,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack", pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_co_year_military",width:14,height:11,transparent:false,smooth:false,preload:false,xOrigin:5,yOrigin:5,bboxRight:13,bboxBottom:10,playbackspeed:30,TPEntryIndex:[973,970,971,972],sequence:{pName:"spr_co_year_military",playback:1,playbackSpeed:30,playbackSpeedType:0, length:4,xorigin:5,yorigin:5,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}} }]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_taunt",height:17,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:15,bboxLeft:4,bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[779,727,778,654,777,724],sequence:{pName:"spr_taunt",playback:1,playbackSpeed:8,playbackSpeedType:0,length:6,xorigin:7,yorigin:15,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[], tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}}]}],sequenceEvents:[],momentsKeystore:[]} },{pName:"spr_nrg",width:18,height:8,transparent:false,smooth:false,preload:false,xOrigin:9,yOrigin:4,bboxRight:17,bboxBottom:7,playbackspeed:15,TPEntryIndex:[1004],sequence:{pName:"spr_nrg",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:9,yorigin:4,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_bg_signed2",width:480,height:270,transparent:false,smooth:false,preload:false,bboxLeft:128,bboxRight:295,bboxTop:172,bboxBottom:263,playbackspeed:30,TPEntryIndex:[68],sequence:{pName:"spr_bg_signed2",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[], tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_controls_tut_3_xbox",width:140,height:59,transparent:false,smooth:false,preload:false,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,TPEntryIndex:[86],sequence:{pName:"spr_controls_tut_3_xbox",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70,yorigin:29,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack", pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_stiffarm_thin",height:17,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:15,bboxLeft:4,bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[1029,710,711,1028,709,708],sequence:{pName:"spr_stiffarm_thin",playback:1,playbackSpeed:8, playbackSpeedType:0,length:6,xorigin:7,yorigin:15,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_controls_tut_1_xbox",width:140,height:59,transparent:false,smooth:false,preload:false,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,TPEntryIndex:[80],sequence:{pName:"spr_controls_tut_1_xbox",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70, yorigin:29,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_gamepad_switch",width:20,height:20,transparent:false,smooth:false,preload:false,xOrigin:12,yOrigin:7,bboxRight:19,bboxBottom:19,playbackspeed:15,TPEntryIndex:[516,519,517,518],sequence:{ pName:"spr_gamepad_switch",playback:1,playbackSpeed:15,playbackSpeedType:0,length:4,xorigin:12,yorigin:7,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2} }},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_controls_presnap_xbox",width:140,height:59,transparent:false,smooth:false,preload:false,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,TPEntryIndex:[73],sequence:{pName:"spr_controls_presnap_xbox",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70,yorigin:29,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames", builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_run_ball_thin",bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:15,bboxLeft:4,bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[1135,942,819,1136,941,820],sequence:{pName:"spr_run_ball_thin",playback:1,playbackSpeed:8,playbackSpeedType:0, length:6,xorigin:7,yorigin:15,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3} }},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_controls_tut_2_xbox",width:140,height:59,transparent:false,smooth:false,preload:false,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,TPEntryIndex:[82],sequence:{pName:"spr_controls_tut_2_xbox",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70,yorigin:29,volume:1, keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_place_bulky",height:13,transparent:false,smooth:false,preload:false,xOrigin:6,yOrigin:11,bboxLeft:2,bboxRight:14,bboxBottom:11,playbackspeed:0,TPEntryIndex:[964,1167],sequence:{pName:"spr_place_bulky",playback:1, playbackSpeed:0,playbackSpeedType:0,length:2,xorigin:6,yorigin:11,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_qb_slide",width:20,height:20,bboxMode:2,transparent:false, smooth:false,preload:false,xOrigin:7,yOrigin:19,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:6,TPEntryIndex:[916,929,920,919,918,928,917],sequence:{pName:"spr_qb_slide",playback:1,playbackSpeed:6,playbackSpeedType:0,length:7,xorigin:7,yorigin:19,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0} }},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_gown", width:40,height:40,transparent:false,smooth:false,preload:false,xOrigin:4,yOrigin:12,bboxLeft:5,bboxRight:33,bboxTop:1,bboxBottom:36,playbackspeed:30,TPEntryIndex:[157],sequence:{pName:"spr_gown",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:4,yorigin:12,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_band_horn",width:12,height:23,transparent:false,smooth:false,preload:false,bboxRight:11,bboxTop:2,bboxBottom:22,playbackspeed:4,TPEntryIndex:[636,628,637,629],sequence:{pName:"spr_band_horn",playback:1,playbackSpeed:4,playbackSpeedType:0,length:4,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[], keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_getup_bulky",bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:15,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18, playbackspeed:4,TPEntryIndex:[1046,997],sequence:{pName:"spr_getup_bulky",playback:1,playbackSpeed:4,playbackSpeedType:0,length:2,xorigin:7,yorigin:15,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]} },{pName:"spr_tag_kr",width:32,height:32,transparent:false,smooth:false,preload:false,bboxLeft:9,bboxRight:23,bboxBottom:19,playbackspeed:0,TPEntryIndex:[829,557],sequence:{pName:"spr_tag_kr",playback:1,playbackSpeed:0,playbackSpeedType:0,length:2,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_dive_ball2_thin",width:32,height:26,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:16,yOrigin:25,bboxLeft:13,bboxRight:24,bboxTop:10,bboxBottom:13,playbackspeed:8,TPEntryIndex:[872,756,860],sequence:{pName:"spr_dive_ball2_thin",playback:1,playbackSpeed:8,playbackSpeedType:0,length:3,xorigin:16,yorigin:25,volume:1,keyframeStore:[],tracks:[{ modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_iconNSS",width:32,height:32,transparent:false,smooth:false,preload:false,bboxRight:31, bboxBottom:31,playbackspeed:30,TPEntryIndex:[161],sequence:{pName:"spr_iconNSS",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_band_drum1_rest",width:12,height:23,transparent:false, smooth:false,preload:false,bboxLeft:1,bboxRight:11,bboxTop:4,bboxBottom:22,playbackspeed:4,TPEntryIndex:[664],sequence:{pName:"spr_band_drum1_rest",playback:1,playbackSpeed:4,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]} },{pName:"spr_commentary_bg",transparent:false,smooth:false,preload:false,bboxRight:15,bboxBottom:15,playbackspeed:0,TPEntryIndex:[600,601],sequence:{pName:"spr_commentary_bg",playback:1,playbackSpeed:0,playbackSpeedType:0,length:2,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0} }},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]},nineslice:{nLeft:3,nTop:3,nRight:3,nBottom:3,nEnabled:true,nTilemode:[0,0,0,0,0]}},{pName:"spr_watch_ad",width:32,height:32,transparent:false,smooth:false,preload:false,xOrigin:15,yOrigin:15,bboxLeft:3,bboxRight:27,bboxTop:3,bboxBottom:26,playbackspeed:15,TPEntryIndex:[499],sequence:{pName:"spr_watch_ad",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:15,yorigin:15, volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_light_002_co",width:32,height:36,transparent:false,smooth:false,preload:false,bboxLeft:3,bboxRight:29,bboxTop:3,bboxBottom:35,playbackspeed:15,TPEntryIndex:[432,338,341,485,431,339,340,337],sequence:{ pName:"spr_light_002_co",playback:1,playbackSpeed:15,playbackSpeedType:0,length:8,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}} ,{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_box_flex_bg",transparent:false,smooth:false,preload:false,bboxRight:15,bboxBottom:15, playbackspeed:0,TPEntryIndex:[592],sequence:{pName:"spr_box_flex_bg",playback:1,playbackSpeed:0,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]},nineslice:{nLeft:4,nTop:4,nRight:4,nBottom:4,nEnabled:true,nTilemode:[0, 0,0,0,0]}},{pName:"spr_adNSB",width:480,height:270,transparent:false,smooth:false,preload:false,bboxRight:479,bboxBottom:269,playbackspeed:30,TPEntryIndex:[21],sequence:{pName:"spr_adNSB",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{ imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_light_001_co_s",width:32,height:36,transparent:false,smooth:false,preload:false,bboxLeft:3,bboxRight:29,bboxTop:3,bboxBottom:35,playbackspeed:15,TPEntryIndex:[482,483,425,330,424,427,426,331],sequence:{pName:"spr_light_001_co_s",playback:1,playbackSpeed:15,playbackSpeedType:0,length:8,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[], ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1, stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_controls_tut_3c",width:140,height:59,transparent:false,smooth:false,preload:false,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,TPEntryIndex:[89],sequence:{pName:"spr_controls_tut_3c",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70,yorigin:29,volume:1,keyframeStore:[],tracks:[{ modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_dark_005_co_s",width:32,height:36,transparent:false,smooth:false,preload:false,bboxLeft:3,bboxRight:29,bboxTop:1,bboxBottom:35,playbackspeed:15,TPEntryIndex:[291,289,183,184,215,292,290,399],sequence:{pName:"spr_dark_005_co_s",playback:1, playbackSpeed:15,playbackSpeedType:0,length:8,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false, channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_dark_003_co",width:32,height:36,transparent:false,smooth:false,preload:false,bboxLeft:3,bboxRight:29,bboxBottom:35,playbackspeed:15, TPEntryIndex:[385,384,265,383,180,266,170,179],sequence:{pName:"spr_dark_003_co",playback:1,playbackSpeed:15,playbackSpeedType:0,length:8,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false, disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_run_ball_bulky",bboxMode:2,transparent:false, smooth:false,preload:false,xOrigin:7,yOrigin:15,bboxLeft:4,bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[1133,938,817,1132,939,816],sequence:{pName:"spr_run_ball_bulky",playback:1,playbackSpeed:8,playbackSpeedType:0,length:6,xorigin:7,yorigin:15,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_getup_ball_bulky",bboxMode:2,transparent:false,smooth:false, preload:false,xOrigin:7,yOrigin:15,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:4,TPEntryIndex:[1041,994],sequence:{pName:"spr_getup_ball_bulky",playback:1,playbackSpeed:4,playbackSpeedType:0,length:2,xorigin:7,yorigin:15,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1, stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_dive_bulky",width:32,height:26,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:16,yOrigin:25,bboxLeft:11,bboxRight:24,bboxTop:20,bboxBottom:24,playbackspeed:8,TPEntryIndex:[950,757,886],sequence:{pName:"spr_dive_bulky",playback:1,playbackSpeed:8,playbackSpeedType:0,length:3,xorigin:16,yorigin:25,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames", builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_LozAdNSB",width:211,height:84,transparent:false,smooth:false,preload:false,xOrigin:105,yOrigin:42,bboxRight:210,bboxBottom:83,playbackspeed:30, TPEntryIndex:[55],sequence:{pName:"spr_LozAdNSB",playback:1,playbackSpeed:30,playbackSpeedType:0,length:1,xorigin:105,yorigin:42,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_kick2_bulky",height:20,transparent:false,smooth:false,preload:false, xOrigin:8,yOrigin:17,bboxLeft:1,bboxRight:14,bboxTop:3,bboxBottom:19,playbackspeed:9,TPEntryIndex:[688,650,959,874,1003],sequence:{pName:"spr_kick2_bulky",playback:1,playbackSpeed:9,playbackSpeedType:0,length:5,xorigin:8,yorigin:17,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false, disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_stiffarm_bulky",height:17,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:15,bboxLeft:4,bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[1026, 703,705,1025,702,704],sequence:{pName:"spr_stiffarm_bulky",playback:1,playbackSpeed:8,playbackSpeedType:0,length:6,xorigin:7,yorigin:15,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false, channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_dive_ball_thin",width:32,height:26,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:16,yOrigin:25,bboxLeft:13,bboxRight:24,bboxTop:10,bboxBottom:13,playbackspeed:8,TPEntryIndex:[869, 753,857],sequence:{pName:"spr_dive_ball_thin",playback:1,playbackSpeed:8,playbackSpeedType:0,length:3,xorigin:16,yorigin:25,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_dive_thin",width:32,height:26,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:16,yOrigin:25,bboxLeft:11,bboxRight:24,bboxTop:20,bboxBottom:24,playbackspeed:8,TPEntryIndex:[951,758,887],sequence:{pName:"spr_dive_thin",playback:1,playbackSpeed:8,playbackSpeedType:0,length:3,xorigin:16,yorigin:25,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0, tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_controls_tut_4_xbox",width:140,height:59,transparent:false,smooth:false,preload:false,xOrigin:70,yOrigin:29,bboxRight:139,bboxBottom:58,playbackspeed:15,TPEntryIndex:[92], sequence:{pName:"spr_controls_tut_4_xbox",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:70,yorigin:29,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_endzone_text",width:100,height:169,transparent:false,smooth:false,preload:false, bboxLeft:31,bboxRight:68,bboxTop:20,bboxBottom:148,playbackspeed:15,TPEntryIndex:[100,99],sequence:{pName:"spr_endzone_text",playback:1,playbackSpeed:15,playbackSpeedType:0,length:2,xorigin:0,yorigin:0,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{ 0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_celebrate_thin",height:20,transparent:false,smooth:false,preload:false,xOrigin:8,yOrigin:19,bboxLeft:4,bboxRight:11,bboxTop:1,bboxBottom:19,playbackspeed:2,TPEntryIndex:[1079,1080],sequence:{pName:"spr_celebrate_thin",playback:1,playbackSpeed:2,playbackSpeedType:0,length:2,xorigin:8,yorigin:19,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[], tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_col_cursor",transparent:false,smooth:false,preload:false,xOrigin:8,yOrigin:8,bboxRight:15,bboxBottom:15,playbackspeed:15,TPEntryIndex:[599],sequence:{pName:"spr_col_cursor",playback:1,playbackSpeed:15,playbackSpeedType:0,length:1,xorigin:8,yorigin:8,volume:1,keyframeStore:[], tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_stand_highlight_bulky",height:24,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:8,yOrigin:22,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:0,TPEntryIndex:[732,743,731],sequence:{pName:"spr_stand_highlight_bulky", playback:1,playbackSpeed:0,playbackSpeedType:0,length:3,xorigin:8,yorigin:22,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}}]}],sequenceEvents:[],momentsKeystore:[]} },{pName:"spr_cheerleaders2",width:20,height:20,transparent:false,smooth:false,preload:false,xOrigin:10,yOrigin:20,bboxLeft:1,bboxRight:19,bboxBottom:19,playbackspeed:4,TPEntryIndex:[841,840,900,574,898,842,839,899,573,897],sequence:{pName:"spr_cheerleaders2",playback:1,playbackSpeed:4,playbackSpeedType:0,length:10,xorigin:10,yorigin:20,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[], keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:5}}},{key:6,length:1,stretch:false,disabled:false, channels:{0:{imageIndex:6}}},{key:7,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:7}}},{key:8,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:8}}},{key:9,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:9}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_place_thin",height:13,transparent:false,smooth:false,preload:false,xOrigin:6,yOrigin:11,bboxLeft:2,bboxRight:13,bboxBottom:11,playbackspeed:0,TPEntryIndex:[1007,1179],sequence:{pName:"spr_place_thin", playback:1,playbackSpeed:0,playbackSpeedType:0,length:2,xorigin:6,yorigin:11,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_qb_walk_bulky",height:17,bboxMode:2,transparent:false, smooth:false,preload:false,xOrigin:8,yOrigin:16,bboxLeft:2,bboxRight:12,bboxTop:9,bboxBottom:18,playbackspeed:6,TPEntryIndex:[981,770],sequence:{pName:"spr_qb_walk_bulky",playback:1,playbackSpeed:6,playbackSpeedType:0,length:2,xorigin:8,yorigin:16,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack",pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{ key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}}]}],sequenceEvents:[],momentsKeystore:[]}},{pName:"spr_run_thin",height:17,bboxMode:2,transparent:false,smooth:false,preload:false,xOrigin:7,yOrigin:16,bboxLeft:4,bboxRight:11,bboxTop:12,bboxBottom:18,playbackspeed:8,TPEntryIndex:[1099,776,698,1100,775,699],sequence:{pName:"spr_run_thin",playback:1,playbackSpeed:8,playbackSpeedType:0,length:6,xorigin:7,yorigin:16,volume:1,keyframeStore:[],tracks:[{modelName:"GMSpriteFramesTrack", pName:"frames",builtinName:0,traits:0,creationTrack:0,tags:[],ownedResourceModels:[],tracks:[],keyframeStore:[{key:0,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:0}}},{key:1,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:1}}},{key:2,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:2}}},{key:3,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:3}}},{key:4,length:1,stretch:false,disabled:false,channels:{0:{imageIndex:4}}},{key:5,length:1,stretch:false, disabled:false,channels:{0:{imageIndex:5}}}]}],sequenceEvents:[],momentsKeystore:[]}}],EmbeddedEntries:{"fallbacktexture":0},Backgrounds:[],Paths:[{pName:"route_flat",kind:0,closed:false,precision:1,points:[{x:0,y:0,speed:100},{x:32,y:-64,speed:100},{x:64,y:-64,speed:100}]},{pName:"route_slant",kind:0,closed:false,precision:1,points:[{x:0,y:0,speed:100},{x:96,y:0,speed:100},{x:160,y:96,speed:100}]},{pName:"route_slant2",kind:0,closed:false,precision:1,points:[{x:0,y:0,speed:100},{x:128,y:0,speed:100} ,{x:192,y:96,speed:100}]},{pName:"route_curl",kind:0,closed:false,precision:1,points:[{x:0,y:0,speed:100},{x:224,y:0,speed:100},{x:160,y:32,speed:100}]},{pName:"route_comeback",kind:0,closed:false,precision:1,points:[{x:0,y:0,speed:100},{x:256,y:0,speed:100},{x:192,y:-32,speed:100}]},{pName:"route_out1",kind:0,closed:false,precision:1,points:[{x:0,y:0,speed:100},{x:96,y:0,speed:100},{x:96,y:-32,speed:100}]},{pName:"route_out2",kind:0,closed:false,precision:1,points:[{x:0,y:0,speed:100},{x:160,y:0, speed:100},{x:160,y:-32,speed:100}]},{pName:"route_out3",kind:0,closed:false,precision:1,points:[{x:0,y:0,speed:100},{x:224,y:0,speed:100},{x:224,y:-32,speed:100}]},{pName:"route_dig1",kind:0,closed:false,precision:1,points:[{x:0,y:0,speed:100},{x:128,y:0,speed:100},{x:128,y:32,speed:100}]},{pName:"route_dig2",kind:0,closed:false,precision:1,points:[{x:0,y:0,speed:100},{x:192,y:0,speed:100},{x:192,y:32,speed:100}]},{pName:"route_dig3",kind:0,closed:false,precision:1,points:[{x:0,y:0,speed:100},{ x:208,y:0,speed:100},{x:208,y:32,speed:100}]},{pName:"route_post",kind:0,closed:false,precision:1,points:[{x:0,y:0,speed:100},{x:192,y:0,speed:100},{x:256,y:32,speed:100}]},{pName:"route_corner",kind:0,closed:false,precision:1,points:[{x:0,y:0,speed:100},{x:192,y:0,speed:100},{x:256,y:-32,speed:100}]},{pName:"route_streak",kind:0,closed:false,precision:1,points:[{x:0,y:0,speed:100},{x:224,y:0,speed:100},{x:256,y:0,speed:100}]},{pName:"route_fb_1",kind:0,closed:false,precision:1,points:[{x:0,y:0, speed:100},{x:32,y:-32,speed:100},{x:128,y:-32,speed:100}]},{pName:"route_fb_2",kind:0,closed:false,precision:1,points:[{x:0,y:0,speed:100},{x:128,y:0,speed:100}]},{pName:"route_fb_3",kind:0,closed:false,precision:1,points:[{x:0,y:0,speed:100},{x:32,y:32,speed:100},{x:128,y:32,speed:100}]},{pName:"route_fb_4",kind:0,closed:false,precision:1,points:[{x:0,y:0,speed:100},{x:64,y:-32,speed:100},{x:96,y:-32,speed:100}]},{pName:"route_fb_5_notused",kind:0,closed:false,precision:1,points:[{x:0,y:0,speed:100} ,{x:128,y:0,speed:100},{x:128,y:-32,speed:100}]},{pName:"route_fb_flat",kind:0,closed:false,precision:1,points:[{x:0,y:0,speed:100},{x:32,y:-48,speed:100},{x:64,y:-48,speed:100}]},{pName:"route_fb_flat2",kind:0,closed:false,precision:1,points:[{x:0,y:0,speed:100},{x:64,y:-48,speed:100},{x:96,y:-48,speed:100}]},{pName:"route_te_block",kind:0,closed:false,precision:1,points:[{x:0,y:0,speed:100},{x:32,y:0,speed:100}]},{pName:"route_qb",kind:0,closed:false,precision:1,points:[{x:0,y:0,speed:100},{x:-64, y:0,speed:100}]},{pName:"route_hitch",kind:0,closed:false,precision:1,points:[{x:0,y:0,speed:100},{x:108,y:0,speed:100},{x:88,y:20,speed:100}]}],Shaders:[{name:"sh_ColorReplaceBlend",Vertex:"#define LOWPREC lowp\n#define MATRIX_VIEW 0\n#define MATRIX_PROJECTION 1\n#define MATRIX_WORLD 2\n#define MATRIX_WORLD_VIEW 3\n#define MATRIX_WORLD_VIEW_PROJECTION 4\n#define MATRICES_MAX 5\n\nuniform mat4 gm_Matrices[MATRICES_MAX]; \n\nuniform bool gm_LightingEnabled;\nuniform bool gm_VS_FogEnabled;\nuniform float gm_FogStart;\nuniform float gm_RcpFogRange;\n\n#define MAX_VS_LIGHTS 8\n#define MIRROR_WIN32_LIGHTING_EQUATION\n\n\n//#define MAX_VS_LIGHTS 8\nuniform vec4 gm_AmbientColour; // rgb=colour, a=1\nuniform vec4 gm_Lights_Direction[MAX_VS_LIGHTS]; // normalised direction\nuniform vec4 gm_Lights_PosRange[MAX_VS_LIGHTS]; // X,Y,Z position, W range\nuniform vec4 gm_Lights_Colour[MAX_VS_LIGHTS]; // rgb=colour, a=1\n\nfloat CalcFogFactor(vec4 pos)\n{\n if (gm_VS_FogEnabled)\n {\n vec4 viewpos = gm_Matrices[MATRIX_WORLD_VIEW] * pos;\n float fogfactor = ((viewpos.z - gm_FogStart) * gm_RcpFogRange);\n return fogfactor;\n }\n else\n {\n return 0.0;\n }\n}\n\nvec4 DoDirLight(vec3 ws_normal, vec4 dir, vec4 diffusecol)\n{\n float dotresult = dot(ws_normal, dir.xyz);\n dotresult = min(dotresult, dir.w); // the w component is 1 if the directional light is active, or 0 if it isn't\n dotresult = max(0.0, dotresult);\n\n return dotresult * diffusecol;\n}\n\nvec4 DoPointLight(vec3 ws_pos, vec3 ws_normal, vec4 posrange, vec4 diffusecol)\n{\n vec3 diffvec = ws_pos - posrange.xyz;\n float veclen = length(diffvec);\n diffvec /= veclen; // normalise\n float atten;\n if (posrange.w == 0.0) // the w component of posrange is 0 if the point light is disabled - if we don't catch it here we might end up generating INFs or NaNs\n {\n atten = 0.0;\n }\n else\n {\n#ifdef MIRROR_WIN32_LIGHTING_EQUATION\n // This is based on the Win32 D3D and OpenGL falloff model, where:\n // Attenuation = 1.0f / (factor0 + (d * factor1) + (d*d * factor2))\n // For some reason, factor0 is set to 0.0f while factor1 is set to 1.0f/lightrange (on both D3D and OpenGL)\n // This'll result in no visible falloff as 1.0f / (d / lightrange) will always be larger than 1.0f (if the vertex is within range)\n \n atten = 1.0 / (veclen / posrange.w);\n if (veclen > posrange.w)\n {\n atten = 0.0;\n } \n#else\n atten = clamp( (1.0 - (veclen / posrange.w)), 0.0, 1.0); // storing 1.0f/range instead would save a rcp\n#endif\n }\n float dotresult = dot(ws_normal, diffvec);\n dotresult = max(0.0, dotresult);\n\n return dotresult * atten * diffusecol;\n}\n\nvec4 DoLighting(vec4 vertexcolour, vec4 objectspacepos, vec3 objectspacenormal)\n{\n if (gm_LightingEnabled)\n {\n // Normally we'd have the light positions\\directions back-transformed from world to object space\n // But to keep things simple for the moment we'll just transform the normal to world space\n vec4 objectspacenormal4 = vec4(objectspacenormal, 0.0);\n vec3 ws_normal;\n ws_normal = (gm_Matrices[MATRIX_WORLD] * objectspacenormal4).xyz;\n ws_normal = normalize(ws_normal);\n\n vec3 ws_pos;\n ws_pos = (gm_Matrices[MATRIX_WORLD] * objectspacepos).xyz;\n\n // Accumulate lighting from different light types\n vec4 accumcol = vec4(0.0, 0.0, 0.0, 0.0); \n for(int i = 0; i < MAX_VS_LIGHTS; i++)\n {\n accumcol += DoDirLight(ws_normal, gm_Lights_Direction[i], gm_Lights_Colour[i]);\n }\n\n for(int i = 0; i < MAX_VS_LIGHTS; i++)\n {\n accumcol += DoPointLight(ws_pos, ws_normal, gm_Lights_PosRange[i], gm_Lights_Colour[i]);\n }\n\n accumcol *= vertexcolour;\n accumcol += gm_AmbientColour;\n accumcol = min(vec4(1.0, 1.0, 1.0, 1.0), accumcol);\n accumcol.a = vertexcolour.a;\n return accumcol;\n }\n else\n {\n return vertexcolour;\n }\n}\n\n#define _YY_GLSLES_ 1\n//\n// Simple passthrough vertex shader\n//\nattribute vec3 in_Position; // (x,y,z)\n//attribute vec3 in_Normal; // (x,y,z) unused in this shader.\nattribute vec4 in_Colour; // (r,g,b,a)\nattribute vec2 in_TextureCoord; // (u,v)\n\nvarying vec2 v_vTexcoord;\nvarying vec4 v_vColour;\n\nvoid main()\n{\n vec4 object_space_pos = vec4( in_Position.x, in_Position.y, in_Position.z, 1.0);\n gl_Position = gm_Matrices[MATRIX_WORLD_VIEW_PROJECTION] * object_space_pos;\n \n v_vColour = in_Colour;\n v_vTexcoord = in_TextureCoord;\n}\n", Fragment:"precision mediump float;\n#define LOWPREC lowp\n// Uniforms look like they're shared between vertex and fragment shaders in GLSL, so we have to be careful to avoid name clashes\n\nuniform sampler2D gm_BaseTexture;\n\nuniform bool gm_PS_FogEnabled;\nuniform vec4 gm_FogColour;\nuniform bool gm_AlphaTestEnabled;\nuniform float gm_AlphaRefValue;\n\nvoid DoAlphaTest(vec4 SrcColour)\n{\n if (gm_AlphaTestEnabled)\n {\n if (SrcColour.a <= gm_AlphaRefValue)\n {\n discard;\n }\n }\n}\n\nvoid DoFog(inout vec4 SrcColour, float fogval)\n{\n if (gm_PS_FogEnabled)\n {\n SrcColour = mix(SrcColour, gm_FogColour, clamp(fogval, 0.0, 1.0)); \n }\n}\n\n#define _YY_GLSLES_ 1\nvarying vec2 v_vTexcoord;\n\nuniform vec3 colorHelmet;\nuniform vec3 colorLogo;\nuniform vec3 colorShirt;\nuniform vec3 colorSleeve;\nuniform vec3 colorPants;\nuniform vec3 colorPants_b;\nuniform vec3 colorStripe;\nuniform vec3 colorSocks;\nuniform vec3 colorSocks_b;\nuniform vec3 colorSkin;\nuniform vec3 colorCleats;\n\nuniform vec3 replaceHelmet;\nuniform vec3 replaceLogo;\nuniform vec3 replaceShirt;\nuniform vec3 replaceSleeve;\nuniform vec3 replacePants;\nuniform vec3 replacePants_b;\nuniform vec3 replaceStripe;\nuniform vec3 replaceSocks;\nuniform vec3 replaceSocks_b;\nuniform vec3 replaceSkin;\nuniform vec3 replaceCleats;\n\nvoid main()\n{\n vec4 pixel = texture2D( gm_BaseTexture, v_vTexcoord );\n \n if (pixel.a == 1.0)\n { \n vec3 eps = vec3(0.010, 0.010, 0.010);\n // vec3 eps = vec3(0.009, 0.009, 0.009);\n \n if( all( greaterThanEqual(pixel, vec4(colorShirt - eps, 1.0)) ) && all( lessThanEqual(pixel, vec4(colorShirt + eps, 1.0)) ) )\n pixel = vec4(replaceShirt, 1.0);\n else if( all( greaterThanEqual(pixel, vec4(colorSkin - eps, 1.0)) ) && all( lessThanEqual(pixel, vec4(colorSkin + eps, 1.0)) ) )\n pixel = vec4(replaceSkin, 1.0);\n else if( all( greaterThanEqual(pixel, vec4(colorHelmet - eps, 1.0)) ) && all( lessThanEqual(pixel, vec4(colorHelmet + eps, 1.0)) ) )\n pixel = vec4(replaceHelmet, 1.0);\n else if( all( greaterThanEqual(pixel, vec4(colorPants - eps, 1.0)) ) && all( lessThanEqual(pixel, vec4(colorPants + eps, 1.0)) ) )\n pixel = vec4(replacePants, 1.0);\n else if( all( greaterThanEqual(pixel, vec4(colorPants_b - eps, 1.0)) ) && all( lessThanEqual(pixel, vec4(colorPants_b + eps, 1.0)) ) )\n pixel = vec4(replacePants_b, 1.0);\n else if( all( greaterThanEqual(pixel, vec4(colorStripe - eps, 1.0)) ) && all( lessThanEqual(pixel, vec4(colorStripe + eps, 1.0)) ) )\n pixel = vec4(replaceStripe, 1.0);\n else if( all( greaterThanEqual(pixel, vec4(colorSocks - eps, 1.0)) ) && all( lessThanEqual(pixel, vec4(colorSocks + eps, 1.0)) ) )\n pixel = vec4(replaceSocks, 1.0);\n else if( all( greaterThanEqual(pixel, vec4(colorSocks_b - eps, 1.0)) ) && all( lessThanEqual(pixel, vec4(colorSocks_b + eps, 1.0)) ) )\n pixel = vec4(replaceSocks_b, 1.0);\n else if( all( greaterThanEqual(pixel, vec4(colorCleats - eps, 1.0)) ) && all( lessThanEqual(pixel, vec4(colorCleats + eps, 1.0)) ) )\n pixel = vec4(replaceCleats, 1.0);\n else if( all( greaterThanEqual(pixel, vec4(colorSleeve - eps, 1.0)) ) && all( lessThanEqual(pixel, vec4(colorSleeve + eps, 1.0)) ) )\n pixel = vec4(replaceSleeve, 1.0);\n else if( all( greaterThanEqual(pixel, vec4(colorLogo - eps, 1.0)) ) && all( lessThanEqual(pixel, vec4(colorLogo + eps, 1.0)) ) )\n pixel = vec4(replaceLogo, 1.0);\n \n }\n \n gl_FragColor = pixel;\n}\n\n\n/* sh_ColorReplaceBlend\n//\n// Replaces one color with another. Can replace \n// similar colors while preserving shading.\n//\n// colorIn color to replace (vec4)\n// colorOut replacement color (vec4)\n//\n// GMLscripts.com\n//\nvarying vec2 v_vTexcoord;\nvarying vec4 v_vColour;\n\nuniform vec4 colorIn;\nuniform vec4 colorOut;\n\nvoid main()\n{\n vec4 colorPixel = texture2D( gm_BaseTexture, v_vTexcoord );\n \n if (colorPixel.r == 255.0)\n {\n gl_FragColor = v_vColour * colorOut;\n }\n else\n {\n gl_FragColor = v_vColour * colorPixel;\n }\n}\n\n/*\n// Simple passthrough fragment shader\n//\nvarying vec2 v_vTexcoord;\nvarying vec4 v_vColour;\nuniform float pixelW;\nuniform float pixelH;\n\nvoid main()\n{\n vec2 offsetx;\n offsetx.x = pixelW;\n vec2 offsety;\n offsety.y = pixelH;\n \n float alpha = texture2D( gm_BaseTexture, v_vTexcoord ).a;\n \n alpha = max(alpha, texture2D( gm_BaseTexture, v_vTexcoord + offsetx ).a);\n alpha = max(alpha, texture2D( gm_BaseTexture, v_vTexcoord - offsetx ).a);\n alpha = max(alpha, texture2D( gm_BaseTexture, v_vTexcoord + offsety ).a);\n alpha = max(alpha, texture2D( gm_BaseTexture, v_vTexcoord - offsetx ).a);\n \n gl_FragColor = v_vColour * texture2D( gm_BaseTexture, v_vTexcoord );\n gl_FragColor.a = alpha;\n}\n*/\n", Attributes:["in_Position","in_Colour","in_TextureCoord"]},{name:"__yy_sdf_shader",Vertex:"#define LOWPREC lowp\n#define MATRIX_VIEW 0\n#define MATRIX_PROJECTION 1\n#define MATRIX_WORLD 2\n#define MATRIX_WORLD_VIEW 3\n#define MATRIX_WORLD_VIEW_PROJECTION 4\n#define MATRICES_MAX 5\n\nuniform mat4 gm_Matrices[MATRICES_MAX]; \n\nuniform bool gm_LightingEnabled;\nuniform bool gm_VS_FogEnabled;\nuniform float gm_FogStart;\nuniform float gm_RcpFogRange;\n\n#define MAX_VS_LIGHTS 8\n#define MIRROR_WIN32_LIGHTING_EQUATION\n\n\n//#define MAX_VS_LIGHTS 8\nuniform vec4 gm_AmbientColour; // rgb=colour, a=1\nuniform vec4 gm_Lights_Direction[MAX_VS_LIGHTS]; // normalised direction\nuniform vec4 gm_Lights_PosRange[MAX_VS_LIGHTS]; // X,Y,Z position, W range\nuniform vec4 gm_Lights_Colour[MAX_VS_LIGHTS]; // rgb=colour, a=1\n\nfloat CalcFogFactor(vec4 pos)\n{\n if (gm_VS_FogEnabled)\n {\n vec4 viewpos = gm_Matrices[MATRIX_WORLD_VIEW] * pos;\n float fogfactor = ((viewpos.z - gm_FogStart) * gm_RcpFogRange);\n return fogfactor;\n }\n else\n {\n return 0.0;\n }\n}\n\nvec4 DoDirLight(vec3 ws_normal, vec4 dir, vec4 diffusecol)\n{\n float dotresult = dot(ws_normal, dir.xyz);\n dotresult = min(dotresult, dir.w); // the w component is 1 if the directional light is active, or 0 if it isn't\n dotresult = max(0.0, dotresult);\n\n return dotresult * diffusecol;\n}\n\nvec4 DoPointLight(vec3 ws_pos, vec3 ws_normal, vec4 posrange, vec4 diffusecol)\n{\n vec3 diffvec = ws_pos - posrange.xyz;\n float veclen = length(diffvec);\n diffvec /= veclen; // normalise\n float atten;\n if (posrange.w == 0.0) // the w component of posrange is 0 if the point light is disabled - if we don't catch it here we might end up generating INFs or NaNs\n {\n atten = 0.0;\n }\n else\n {\n#ifdef MIRROR_WIN32_LIGHTING_EQUATION\n // This is based on the Win32 D3D and OpenGL falloff model, where:\n // Attenuation = 1.0f / (factor0 + (d * factor1) + (d*d * factor2))\n // For some reason, factor0 is set to 0.0f while factor1 is set to 1.0f/lightrange (on both D3D and OpenGL)\n // This'll result in no visible falloff as 1.0f / (d / lightrange) will always be larger than 1.0f (if the vertex is within range)\n \n atten = 1.0 / (veclen / posrange.w);\n if (veclen > posrange.w)\n {\n atten = 0.0;\n } \n#else\n atten = clamp( (1.0 - (veclen / posrange.w)), 0.0, 1.0); // storing 1.0f/range instead would save a rcp\n#endif\n }\n float dotresult = dot(ws_normal, diffvec);\n dotresult = max(0.0, dotresult);\n\n return dotresult * atten * diffusecol;\n}\n\nvec4 DoLighting(vec4 vertexcolour, vec4 objectspacepos, vec3 objectspacenormal)\n{\n if (gm_LightingEnabled)\n {\n // Normally we'd have the light positions\\directions back-transformed from world to object space\n // But to keep things simple for the moment we'll just transform the normal to world space\n vec4 objectspacenormal4 = vec4(objectspacenormal, 0.0);\n vec3 ws_normal;\n ws_normal = (gm_Matrices[MATRIX_WORLD] * objectspacenormal4).xyz;\n ws_normal = normalize(ws_normal);\n\n vec3 ws_pos;\n ws_pos = (gm_Matrices[MATRIX_WORLD] * objectspacepos).xyz;\n\n // Accumulate lighting from different light types\n vec4 accumcol = vec4(0.0, 0.0, 0.0, 0.0); \n for(int i = 0; i < MAX_VS_LIGHTS; i++)\n {\n accumcol += DoDirLight(ws_normal, gm_Lights_Direction[i], gm_Lights_Colour[i]);\n }\n\n for(int i = 0; i < MAX_VS_LIGHTS; i++)\n {\n accumcol += DoPointLight(ws_pos, ws_normal, gm_Lights_PosRange[i], gm_Lights_Colour[i]);\n }\n\n accumcol *= vertexcolour;\n accumcol += gm_AmbientColour;\n accumcol = min(vec4(1.0, 1.0, 1.0, 1.0), accumcol);\n accumcol.a = vertexcolour.a;\n return accumcol;\n }\n else\n {\n return vertexcolour;\n }\n}\n\n#define _YY_GLSLES_ 1\n//\n// SDF vertex shader\n//\nattribute vec3 in_Position; // (x,y,z)\n//attribute vec3 in_Normal; // (x,y,z) unused in this shader.\nattribute vec4 in_Colour; // (r,g,b,a)\nattribute vec2 in_TextureCoord; // (u,v)\n\nvarying vec2 v_vTexcoord;\nvarying vec4 v_vColour;\n\nvoid main()\n{\n vec4 object_space_pos = vec4( in_Position.x, in_Position.y, in_Position.z, 1.0);\n gl_Position = gm_Matrices[MATRIX_WORLD_VIEW_PROJECTION] * object_space_pos;\n \n v_vColour = in_Colour;\n v_vTexcoord = in_TextureCoord;\n}\n", Fragment:"precision mediump float;\n#define LOWPREC lowp\n// Uniforms look like they're shared between vertex and fragment shaders in GLSL, so we have to be careful to avoid name clashes\n\nuniform sampler2D gm_BaseTexture;\n\nuniform bool gm_PS_FogEnabled;\nuniform vec4 gm_FogColour;\nuniform bool gm_AlphaTestEnabled;\nuniform float gm_AlphaRefValue;\n\nvoid DoAlphaTest(vec4 SrcColour)\n{\n if (gm_AlphaTestEnabled)\n {\n if (SrcColour.a <= gm_AlphaRefValue)\n {\n discard;\n }\n }\n}\n\nvoid DoFog(inout vec4 SrcColour, float fogval)\n{\n if (gm_PS_FogEnabled)\n {\n SrcColour = mix(SrcColour, gm_FogColour, clamp(fogval, 0.0, 1.0)); \n }\n}\n\n#define _YY_GLSLES_ 1\n//\n// SDF fragment shader\n//\nvarying vec2 v_vTexcoord;\nvarying vec4 v_vColour;\n\nvoid main()\n{\n vec4 texcol = texture2D( gm_BaseTexture, v_vTexcoord );\n \n float spread = fwidth(texcol.a); \n spread = max(spread * 0.75, 0.001); \n texcol.a = smoothstep(0.5 - spread, 0.5 + spread, texcol.a); \n \n vec4 combinedcol = v_vColour * texcol;\n DoAlphaTest(combinedcol); \n \n gl_FragColor = combinedcol;\n}\n", Attributes:["in_Position","in_Colour","in_TextureCoord"]},{name:"__yy_sdf_effect_shader",Vertex:"#define LOWPREC lowp\n#define MATRIX_VIEW 0\n#define MATRIX_PROJECTION 1\n#define MATRIX_WORLD 2\n#define MATRIX_WORLD_VIEW 3\n#define MATRIX_WORLD_VIEW_PROJECTION 4\n#define MATRICES_MAX 5\n\nuniform mat4 gm_Matrices[MATRICES_MAX]; \n\nuniform bool gm_LightingEnabled;\nuniform bool gm_VS_FogEnabled;\nuniform float gm_FogStart;\nuniform float gm_RcpFogRange;\n\n#define MAX_VS_LIGHTS 8\n#define MIRROR_WIN32_LIGHTING_EQUATION\n\n\n//#define MAX_VS_LIGHTS 8\nuniform vec4 gm_AmbientColour; // rgb=colour, a=1\nuniform vec4 gm_Lights_Direction[MAX_VS_LIGHTS]; // normalised direction\nuniform vec4 gm_Lights_PosRange[MAX_VS_LIGHTS]; // X,Y,Z position, W range\nuniform vec4 gm_Lights_Colour[MAX_VS_LIGHTS]; // rgb=colour, a=1\n\nfloat CalcFogFactor(vec4 pos)\n{\n if (gm_VS_FogEnabled)\n {\n vec4 viewpos = gm_Matrices[MATRIX_WORLD_VIEW] * pos;\n float fogfactor = ((viewpos.z - gm_FogStart) * gm_RcpFogRange);\n return fogfactor;\n }\n else\n {\n return 0.0;\n }\n}\n\nvec4 DoDirLight(vec3 ws_normal, vec4 dir, vec4 diffusecol)\n{\n float dotresult = dot(ws_normal, dir.xyz);\n dotresult = min(dotresult, dir.w); // the w component is 1 if the directional light is active, or 0 if it isn't\n dotresult = max(0.0, dotresult);\n\n return dotresult * diffusecol;\n}\n\nvec4 DoPointLight(vec3 ws_pos, vec3 ws_normal, vec4 posrange, vec4 diffusecol)\n{\n vec3 diffvec = ws_pos - posrange.xyz;\n float veclen = length(diffvec);\n diffvec /= veclen; // normalise\n float atten;\n if (posrange.w == 0.0) // the w component of posrange is 0 if the point light is disabled - if we don't catch it here we might end up generating INFs or NaNs\n {\n atten = 0.0;\n }\n else\n {\n#ifdef MIRROR_WIN32_LIGHTING_EQUATION\n // This is based on the Win32 D3D and OpenGL falloff model, where:\n // Attenuation = 1.0f / (factor0 + (d * factor1) + (d*d * factor2))\n // For some reason, factor0 is set to 0.0f while factor1 is set to 1.0f/lightrange (on both D3D and OpenGL)\n // This'll result in no visible falloff as 1.0f / (d / lightrange) will always be larger than 1.0f (if the vertex is within range)\n \n atten = 1.0 / (veclen / posrange.w);\n if (veclen > posrange.w)\n {\n atten = 0.0;\n } \n#else\n atten = clamp( (1.0 - (veclen / posrange.w)), 0.0, 1.0); // storing 1.0f/range instead would save a rcp\n#endif\n }\n float dotresult = dot(ws_normal, diffvec);\n dotresult = max(0.0, dotresult);\n\n return dotresult * atten * diffusecol;\n}\n\nvec4 DoLighting(vec4 vertexcolour, vec4 objectspacepos, vec3 objectspacenormal)\n{\n if (gm_LightingEnabled)\n {\n // Normally we'd have the light positions\\directions back-transformed from world to object space\n // But to keep things simple for the moment we'll just transform the normal to world space\n vec4 objectspacenormal4 = vec4(objectspacenormal, 0.0);\n vec3 ws_normal;\n ws_normal = (gm_Matrices[MATRIX_WORLD] * objectspacenormal4).xyz;\n ws_normal = normalize(ws_normal);\n\n vec3 ws_pos;\n ws_pos = (gm_Matrices[MATRIX_WORLD] * objectspacepos).xyz;\n\n // Accumulate lighting from different light types\n vec4 accumcol = vec4(0.0, 0.0, 0.0, 0.0); \n for(int i = 0; i < MAX_VS_LIGHTS; i++)\n {\n accumcol += DoDirLight(ws_normal, gm_Lights_Direction[i], gm_Lights_Colour[i]);\n }\n\n for(int i = 0; i < MAX_VS_LIGHTS; i++)\n {\n accumcol += DoPointLight(ws_pos, ws_normal, gm_Lights_PosRange[i], gm_Lights_Colour[i]);\n }\n\n accumcol *= vertexcolour;\n accumcol += gm_AmbientColour;\n accumcol = min(vec4(1.0, 1.0, 1.0, 1.0), accumcol);\n accumcol.a = vertexcolour.a;\n return accumcol;\n }\n else\n {\n return vertexcolour;\n }\n}\n\n#define _YY_GLSLES_ 1\n//\n// Simple passthrough vertex shader\n//\nattribute vec3 in_Position; // (x,y,z)\n//attribute vec3 in_Normal; // (x,y,z) unused in this shader.\nattribute vec4 in_Colour; // (r,g,b,a)\nattribute vec2 in_TextureCoord; // (u,v)\n\nvarying vec2 v_vTexcoord;\nvarying vec4 v_vColour;\n\nvoid main()\n{\n vec4 object_space_pos = vec4( in_Position.x, in_Position.y, in_Position.z, 1.0);\n gl_Position = gm_Matrices[MATRIX_WORLD_VIEW_PROJECTION] * object_space_pos;\n \n v_vColour = in_Colour;\n v_vTexcoord = in_TextureCoord;\n}\n", Fragment:"precision mediump float;\n#define LOWPREC lowp\n// Uniforms look like they're shared between vertex and fragment shaders in GLSL, so we have to be careful to avoid name clashes\n\nuniform sampler2D gm_BaseTexture;\n\nuniform bool gm_PS_FogEnabled;\nuniform vec4 gm_FogColour;\nuniform bool gm_AlphaTestEnabled;\nuniform float gm_AlphaRefValue;\n\nvoid DoAlphaTest(vec4 SrcColour)\n{\n if (gm_AlphaTestEnabled)\n {\n if (SrcColour.a <= gm_AlphaRefValue)\n {\n discard;\n }\n }\n}\n\nvoid DoFog(inout vec4 SrcColour, float fogval)\n{\n if (gm_PS_FogEnabled)\n {\n SrcColour = mix(SrcColour, gm_FogColour, clamp(fogval, 0.0, 1.0)); \n }\n}\n\n#define _YY_GLSLES_ 1\n//\n// SDF (with effects) fragment shader\n//\nvarying vec2 v_vTexcoord;\nvarying vec4 v_vColour;\n\n// SDF values are measured from 0 (at the outer edge) to 1 which is the innermost point that can be represented\nuniform bool gm_SDF_DrawGlow; // whether the glow effect is enabled\nuniform vec2 gm_SDF_Glow_MinMax; // the SDF range across which the glow fades\nuniform vec4 gm_SDF_Glow_Col; // the colour of the glow\n\nuniform bool gm_SDF_DrawOutline; // whether the outline effect is enabled\nuniform float gm_SDF_Outline_Thresh; // the SDF distance which represents the outer edge of the outline\nuniform vec4 gm_SDF_Outline_Col; // the colour of the outline\n\nuniform float gm_SDF_Core_Thresh; // the SDF distance which represents the outer edge the shape\nuniform vec4 gm_SDF_Core_Col; // the colour of the core part of the shape\n\nvoid main()\n{\n vec4 texcol = texture2D( gm_BaseTexture, v_vTexcoord );\n \n float pixelspread = fwidth(texcol.a); \n pixelspread = max(pixelspread * 0.75, 0.001); \n \n float blendfactor;\n vec4 currcol = vec4(0.0, 0.0, 0.0, -1.0);\n \n // Handle glow effect\n if (gm_SDF_DrawGlow)\n { \n if (texcol.a > gm_SDF_Glow_MinMax.x)\n {\n currcol = gm_SDF_Glow_Col;\n currcol.a *= smoothstep(gm_SDF_Glow_MinMax.x, gm_SDF_Glow_MinMax.y, texcol.a);\n }\n } \n \n // Handle outline effect\n if (gm_SDF_DrawOutline)\n {\n if (texcol.a > (gm_SDF_Outline_Thresh - pixelspread))\n { \n blendfactor = smoothstep(gm_SDF_Outline_Thresh - pixelspread, gm_SDF_Outline_Thresh + pixelspread, texcol.a);\n if (currcol.a < 0.0)\n {\n currcol = vec4(gm_SDF_Outline_Col.r,gm_SDF_Outline_Col.g,gm_SDF_Outline_Col.b, 0.0);\n }\n currcol = mix(currcol, gm_SDF_Outline_Col, blendfactor);\n }\n }\n \n // Handle inner core\n blendfactor = smoothstep(gm_SDF_Core_Thresh - pixelspread, gm_SDF_Core_Thresh + pixelspread, texcol.a);\n \n if (currcol.a < 0.0)\n {\n currcol = vec4(gm_SDF_Core_Col.r,gm_SDF_Core_Col.g,gm_SDF_Core_Col.b, 0.0);\n }\n texcol = mix(currcol, gm_SDF_Core_Col, blendfactor); \n \n vec4 combinedcol = v_vColour * texcol;\n DoAlphaTest(combinedcol); \n \n gl_FragColor = combinedcol;\n}\n", Attributes:["in_Position","in_Colour","in_TextureCoord"]},{name:"__yy_sdf_blur_shader",Vertex:"#define LOWPREC lowp\n#define MATRIX_VIEW 0\n#define MATRIX_PROJECTION 1\n#define MATRIX_WORLD 2\n#define MATRIX_WORLD_VIEW 3\n#define MATRIX_WORLD_VIEW_PROJECTION 4\n#define MATRICES_MAX 5\n\nuniform mat4 gm_Matrices[MATRICES_MAX]; \n\nuniform bool gm_LightingEnabled;\nuniform bool gm_VS_FogEnabled;\nuniform float gm_FogStart;\nuniform float gm_RcpFogRange;\n\n#define MAX_VS_LIGHTS 8\n#define MIRROR_WIN32_LIGHTING_EQUATION\n\n\n//#define MAX_VS_LIGHTS 8\nuniform vec4 gm_AmbientColour; // rgb=colour, a=1\nuniform vec4 gm_Lights_Direction[MAX_VS_LIGHTS]; // normalised direction\nuniform vec4 gm_Lights_PosRange[MAX_VS_LIGHTS]; // X,Y,Z position, W range\nuniform vec4 gm_Lights_Colour[MAX_VS_LIGHTS]; // rgb=colour, a=1\n\nfloat CalcFogFactor(vec4 pos)\n{\n if (gm_VS_FogEnabled)\n {\n vec4 viewpos = gm_Matrices[MATRIX_WORLD_VIEW] * pos;\n float fogfactor = ((viewpos.z - gm_FogStart) * gm_RcpFogRange);\n return fogfactor;\n }\n else\n {\n return 0.0;\n }\n}\n\nvec4 DoDirLight(vec3 ws_normal, vec4 dir, vec4 diffusecol)\n{\n float dotresult = dot(ws_normal, dir.xyz);\n dotresult = min(dotresult, dir.w); // the w component is 1 if the directional light is active, or 0 if it isn't\n dotresult = max(0.0, dotresult);\n\n return dotresult * diffusecol;\n}\n\nvec4 DoPointLight(vec3 ws_pos, vec3 ws_normal, vec4 posrange, vec4 diffusecol)\n{\n vec3 diffvec = ws_pos - posrange.xyz;\n float veclen = length(diffvec);\n diffvec /= veclen; // normalise\n float atten;\n if (posrange.w == 0.0) // the w component of posrange is 0 if the point light is disabled - if we don't catch it here we might end up generating INFs or NaNs\n {\n atten = 0.0;\n }\n else\n {\n#ifdef MIRROR_WIN32_LIGHTING_EQUATION\n // This is based on the Win32 D3D and OpenGL falloff model, where:\n // Attenuation = 1.0f / (factor0 + (d * factor1) + (d*d * factor2))\n // For some reason, factor0 is set to 0.0f while factor1 is set to 1.0f/lightrange (on both D3D and OpenGL)\n // This'll result in no visible falloff as 1.0f / (d / lightrange) will always be larger than 1.0f (if the vertex is within range)\n \n atten = 1.0 / (veclen / posrange.w);\n if (veclen > posrange.w)\n {\n atten = 0.0;\n } \n#else\n atten = clamp( (1.0 - (veclen / posrange.w)), 0.0, 1.0); // storing 1.0f/range instead would save a rcp\n#endif\n }\n float dotresult = dot(ws_normal, diffvec);\n dotresult = max(0.0, dotresult);\n\n return dotresult * atten * diffusecol;\n}\n\nvec4 DoLighting(vec4 vertexcolour, vec4 objectspacepos, vec3 objectspacenormal)\n{\n if (gm_LightingEnabled)\n {\n // Normally we'd have the light positions\\directions back-transformed from world to object space\n // But to keep things simple for the moment we'll just transform the normal to world space\n vec4 objectspacenormal4 = vec4(objectspacenormal, 0.0);\n vec3 ws_normal;\n ws_normal = (gm_Matrices[MATRIX_WORLD] * objectspacenormal4).xyz;\n ws_normal = normalize(ws_normal);\n\n vec3 ws_pos;\n ws_pos = (gm_Matrices[MATRIX_WORLD] * objectspacepos).xyz;\n\n // Accumulate lighting from different light types\n vec4 accumcol = vec4(0.0, 0.0, 0.0, 0.0); \n for(int i = 0; i < MAX_VS_LIGHTS; i++)\n {\n accumcol += DoDirLight(ws_normal, gm_Lights_Direction[i], gm_Lights_Colour[i]);\n }\n\n for(int i = 0; i < MAX_VS_LIGHTS; i++)\n {\n accumcol += DoPointLight(ws_pos, ws_normal, gm_Lights_PosRange[i], gm_Lights_Colour[i]);\n }\n\n accumcol *= vertexcolour;\n accumcol += gm_AmbientColour;\n accumcol = min(vec4(1.0, 1.0, 1.0, 1.0), accumcol);\n accumcol.a = vertexcolour.a;\n return accumcol;\n }\n else\n {\n return vertexcolour;\n }\n}\n\n#define _YY_GLSLES_ 1\n//\n// Simple passthrough vertex shader\n//\nattribute vec3 in_Position; // (x,y,z)\n//attribute vec3 in_Normal; // (x,y,z) unused in this shader.\nattribute vec4 in_Colour; // (r,g,b,a)\nattribute vec2 in_TextureCoord; // (u,v)\n\nvarying vec2 v_vTexcoord;\nvarying vec4 v_vColour;\n\nvoid main()\n{\n vec4 object_space_pos = vec4( in_Position.x, in_Position.y, in_Position.z, 1.0);\n gl_Position = gm_Matrices[MATRIX_WORLD_VIEW_PROJECTION] * object_space_pos;\n \n v_vColour = in_Colour;\n v_vTexcoord = in_TextureCoord;\n}\n", Fragment:"precision mediump float;\n#define LOWPREC lowp\n// Uniforms look like they're shared between vertex and fragment shaders in GLSL, so we have to be careful to avoid name clashes\n\nuniform sampler2D gm_BaseTexture;\n\nuniform bool gm_PS_FogEnabled;\nuniform vec4 gm_FogColour;\nuniform bool gm_AlphaTestEnabled;\nuniform float gm_AlphaRefValue;\n\nvoid DoAlphaTest(vec4 SrcColour)\n{\n if (gm_AlphaTestEnabled)\n {\n if (SrcColour.a <= gm_AlphaRefValue)\n {\n discard;\n }\n }\n}\n\nvoid DoFog(inout vec4 SrcColour, float fogval)\n{\n if (gm_PS_FogEnabled)\n {\n SrcColour = mix(SrcColour, gm_FogColour, clamp(fogval, 0.0, 1.0)); \n }\n}\n\n#define _YY_GLSLES_ 1\n//\n// SDF (with blur) fragment shader\n//\nvarying vec2 v_vTexcoord;\nvarying vec4 v_vColour;\n\n// SDF values are measured from 0 (at the outer edge) to 1 which is the innermost point that can be represented\nuniform vec2 gm_SDF_Blur_MinMax; // the range across which to filter the SDF\nuniform vec4 gm_SDF_Blur_Col; // the colour tint of the blurred text\n\nvoid main()\n{\n vec4 texcol = texture2D( gm_BaseTexture, v_vTexcoord ); \n vec4 currcol = gm_SDF_Blur_Col;\n \n currcol.a *= smoothstep(gm_SDF_Blur_MinMax.x, gm_SDF_Blur_MinMax.y, texcol.a); \n \n vec4 combinedcol = v_vColour * currcol;\n DoAlphaTest(combinedcol); \n\n gl_FragColor = combinedcol;\n}\n", Attributes:["in_Position","in_Colour","in_TextureCoord"]}],Fonts:[{pName:"fnt_restart_big",size:11,bold:false,italic:false,first:32,last:255,charset:0,antialias:0,fontname:"Press Start 2P",ascenderOffset:0,ascender:0,sdfSpread:0,lineHeight:0,TPageEntry:33,scaleX:1,scaleY:1,glyphs:[{i:32,c:" ",x:2,y:2,w:15,h:15,shift:15,offset:0},{i:33,c:"!",x:163,y:104,w:6,h:15,shift:15,offset:4},{i:34,c:"\"",x:171,y:104,w:9,h:15,shift:15,offset:2},{i:35,c:"#",x:182,y:104,w:13,h:15,shift:15,offset:0},{i:36,c:"$", x:197,y:104,w:13,h:15,shift:15,offset:0},{i:37,c:"%",x:212,y:104,w:13,h:15,shift:15,offset:0},{i:38,c:"&",x:227,y:104,w:13,h:15,shift:15,offset:0},{i:39,c:"'",x:242,y:104,w:4,h:15,shift:15,offset:4},{i:40,c:"(",x:2,y:121,w:8,h:15,shift:15,offset:4},{i:41,c:")",x:12,y:121,w:8,h:15,shift:15,offset:2},{i:42,c:"*",x:37,y:121,w:13,h:15,shift:15,offset:0},{i:43,c:"+",x:167,y:121,w:11,h:15,shift:15,offset:2},{i:44,c:",",x:52,y:121,w:6,h:15,shift:15,offset:2},{i:45,c:"-",x:60,y:121,w:11,h:15,shift:15,offset:2} ,{i:46,c:".",x:73,y:121,w:4,h:15,shift:15,offset:4},{i:47,c:"/",x:79,y:121,w:13,h:15,shift:15,offset:0},{i:48,c:"0",x:94,y:121,w:13,h:15,shift:15,offset:0},{i:49,c:"1",x:109,y:121,w:11,h:15,shift:15,offset:2},{i:50,c:"2",x:122,y:121,w:13,h:15,shift:15,offset:0},{i:51,c:"3",x:137,y:121,w:13,h:15,shift:15,offset:0},{i:52,c:"4",x:152,y:121,w:13,h:15,shift:15,offset:0},{i:53,c:"5",x:148,y:104,w:13,h:15,shift:15,offset:0},{i:54,c:"6",x:22,y:121,w:13,h:15,shift:15,offset:0},{i:55,c:"7",x:133,y:104,w:13, h:15,shift:15,offset:0},{i:56,c:"8",x:187,y:87,w:13,h:15,shift:15,offset:0},{i:57,c:"9",x:76,y:87,w:13,h:15,shift:15,offset:0},{i:58,c:":",x:91,y:87,w:4,h:15,shift:15,offset:4},{i:59,c:";",x:97,y:87,w:6,h:15,shift:15,offset:2},{i:60,c:"<",x:105,y:87,w:9,h:15,shift:15,offset:2},{i:61,c:"=",x:116,y:87,w:13,h:15,shift:15,offset:0},{i:62,c:">",x:131,y:87,w:9,h:15,shift:15,offset:2},{i:63,c:"?",x:142,y:87,w:13,h:15,shift:15,offset:0},{i:64,c:"@",x:157,y:87,w:13,h:15,shift:15,offset:0},{i:65,c:"A",x:172, y:87,w:13,h:15,shift:15,offset:0},{i:66,c:"B",x:202,y:87,w:13,h:15,shift:15,offset:0},{i:67,c:"C",x:103,y:104,w:13,h:15,shift:15,offset:0},{i:68,c:"D",x:217,y:87,w:13,h:15,shift:15,offset:0},{i:69,c:"E",x:232,y:87,w:13,h:15,shift:15,offset:0},{i:70,c:"F",x:2,y:104,w:13,h:15,shift:15,offset:0},{i:71,c:"G",x:17,y:104,w:13,h:15,shift:15,offset:0},{i:72,c:"H",x:32,y:104,w:13,h:15,shift:15,offset:0},{i:73,c:"I",x:47,y:104,w:11,h:15,shift:15,offset:2},{i:74,c:"J",x:60,y:104,w:13,h:15,shift:15,offset:0} ,{i:75,c:"K",x:75,y:104,w:13,h:15,shift:15,offset:0},{i:76,c:"L",x:90,y:104,w:11,h:15,shift:15,offset:2},{i:77,c:"M",x:118,y:104,w:13,h:15,shift:15,offset:0},{i:78,c:"N",x:180,y:121,w:13,h:15,shift:15,offset:0},{i:79,c:"O",x:195,y:121,w:13,h:15,shift:15,offset:0},{i:80,c:"P",x:210,y:121,w:13,h:15,shift:15,offset:0},{i:81,c:"Q",x:58,y:155,w:13,h:15,shift:15,offset:0},{i:82,c:"R",x:73,y:155,w:13,h:15,shift:15,offset:0},{i:83,c:"S",x:88,y:155,w:13,h:15,shift:15,offset:0},{i:84,c:"T",x:103,y:155,w:11, h:15,shift:15,offset:2},{i:85,c:"U",x:116,y:155,w:13,h:15,shift:15,offset:0},{i:86,c:"V",x:131,y:155,w:12,h:15,shift:15,offset:0},{i:87,c:"W",x:145,y:155,w:13,h:15,shift:15,offset:0},{i:88,c:"X",x:160,y:155,w:13,h:15,shift:15,offset:0},{i:89,c:"Y",x:175,y:155,w:11,h:15,shift:15,offset:2},{i:90,c:"Z",x:188,y:155,w:13,h:15,shift:15,offset:0},{i:91,c:"[",x:203,y:155,w:8,h:15,shift:15,offset:4},{i:92,c:"\\",x:213,y:155,w:13,h:15,shift:15,offset:0},{i:93,c:"]",x:228,y:155,w:7,h:15,shift:15,offset:2}, {i:94,c:"^",x:237,y:155,w:9,h:15,shift:15,offset:2},{i:95,c:"_",x:2,y:172,w:13,h:15,shift:15,offset:0},{i:96,c:"`",x:17,y:172,w:4,h:15,shift:15,offset:5},{i:97,c:"a",x:23,y:172,w:13,h:15,shift:15,offset:0},{i:98,c:"b",x:38,y:172,w:13,h:15,shift:15,offset:0},{i:99,c:"c",x:53,y:172,w:13,h:15,shift:15,offset:0},{i:100,c:"d",x:68,y:172,w:13,h:15,shift:15,offset:0},{i:101,c:"e",x:83,y:172,w:13,h:15,shift:15,offset:0},{i:102,c:"f",x:45,y:155,w:11,h:15,shift:15,offset:2},{i:103,c:"g",x:30,y:155,w:13,h:15, shift:15,offset:0},{i:104,c:"h",x:15,y:155,w:13,h:15,shift:15,offset:0},{i:105,c:"i",x:103,y:138,w:11,h:15,shift:15,offset:2},{i:106,c:"j",x:225,y:121,w:9,h:15,shift:15,offset:2},{i:107,c:"k",x:236,y:121,w:13,h:15,shift:15,offset:0},{i:108,c:"l",x:2,y:138,w:11,h:15,shift:15,offset:2},{i:109,c:"m",x:15,y:138,w:13,h:15,shift:15,offset:0},{i:110,c:"n",x:30,y:138,w:13,h:15,shift:15,offset:0},{i:111,c:"o",x:45,y:138,w:13,h:15,shift:15,offset:0},{i:112,c:"p",x:60,y:138,w:13,h:15,shift:15,offset:0},{i:113, c:"q",x:75,y:138,w:13,h:15,shift:15,offset:0},{i:114,c:"r",x:90,y:138,w:11,h:15,shift:15,offset:2},{i:115,c:"s",x:116,y:138,w:13,h:15,shift:15,offset:0},{i:116,c:"t",x:2,y:155,w:11,h:15,shift:15,offset:2},{i:117,c:"u",x:131,y:138,w:13,h:15,shift:15,offset:0},{i:118,c:"v",x:146,y:138,w:11,h:15,shift:15,offset:2},{i:119,c:"w",x:159,y:138,w:13,h:15,shift:15,offset:0},{i:120,c:"x",x:174,y:138,w:13,h:15,shift:15,offset:0},{i:121,c:"y",x:189,y:138,w:13,h:15,shift:15,offset:0},{i:122,c:"z",x:204,y:138, w:13,h:15,shift:15,offset:0},{i:123,c:"{",x:219,y:138,w:8,h:15,shift:15,offset:4},{i:124,c:"|",x:229,y:138,w:4,h:15,shift:15,offset:5},{i:125,c:"}",x:235,y:138,w:8,h:15,shift:15,offset:2},{i:126,c:"~",x:61,y:87,w:13,h:15,shift:15,offset:0},{i:127,x:50,y:87,w:9,h:15,shift:15,offset:2},{i:160,c:" ",x:48,y:87,w:0,h:15,shift:15,offset:0},{i:161,c:"¡",x:103,y:36,w:6,h:15,shift:15,offset:4},{i:162,c:"¢",x:107,y:19,w:13,h:15,shift:15,offset:0},{i:163,c:"£",x:122,y:19,w:13,h:15,shift:15,offset:0},{i:164, c:"¤",x:137,y:19,w:11,h:15,shift:15,offset:2},{i:165,c:"¥",x:150,y:19,w:11,h:15,shift:15,offset:2},{i:166,c:"¦",x:163,y:19,w:4,h:15,shift:15,offset:5},{i:167,c:"§",x:169,y:19,w:11,h:15,shift:15,offset:2},{i:168,c:"¨",x:182,y:19,w:9,h:15,shift:15,offset:2},{i:169,c:"©",x:193,y:19,w:15,h:15,shift:15,offset:0},{i:170,c:"ª",x:210,y:19,w:9,h:15,shift:15,offset:2},{i:171,c:"«",x:227,y:19,w:13,h:15,shift:15,offset:0},{i:172,c:"¬",x:90,y:36,w:11,h:15,shift:15,offset:2},{i:173,x:242,y:19,w:11,h:15,shift:15, offset:2},{i:174,c:"®",x:2,y:36,w:15,h:15,shift:15,offset:0},{i:175,c:"¯",x:19,y:36,w:9,h:15,shift:15,offset:2},{i:176,c:"°",x:30,y:36,w:6,h:15,shift:15,offset:4},{i:177,c:"±",x:38,y:36,w:11,h:15,shift:15,offset:2},{i:178,c:"²",x:51,y:36,w:7,h:15,shift:15,offset:4},{i:179,c:"³",x:60,y:36,w:7,h:15,shift:15,offset:4},{i:180,c:"´",x:69,y:36,w:4,h:15,shift:15,offset:5},{i:181,c:"µ",x:75,y:36,w:13,h:15,shift:15,offset:0},{i:182,c:"¶",x:94,y:19,w:11,h:15,shift:15,offset:2},{i:183,c:"·",x:221,y:19,w:4, h:15,shift:15,offset:4},{i:184,c:"¸",x:86,y:19,w:6,h:15,shift:15,offset:4},{i:185,c:"¹",x:149,y:2,w:7,h:15,shift:15,offset:4},{i:186,c:"º",x:19,y:2,w:9,h:15,shift:15,offset:2},{i:187,c:"»",x:30,y:2,w:13,h:15,shift:15,offset:0},{i:188,c:"¼",x:45,y:2,w:13,h:15,shift:15,offset:0},{i:189,c:"½",x:60,y:2,w:13,h:15,shift:15,offset:0},{i:190,c:"¾",x:75,y:2,w:13,h:15,shift:15,offset:0},{i:191,c:"¿",x:90,y:2,w:13,h:15,shift:15,offset:0},{i:192,c:"À",x:105,y:2,w:12,h:15,shift:15,offset:0},{i:193,c:"Á",x:119, y:2,w:13,h:15,shift:15,offset:0},{i:194,c:"Â",x:134,y:2,w:13,h:15,shift:15,offset:0},{i:195,c:"Ã",x:158,y:2,w:13,h:15,shift:15,offset:0},{i:196,c:"Ä",x:58,y:19,w:13,h:15,shift:15,offset:0},{i:197,c:"Å",x:173,y:2,w:13,h:15,shift:15,offset:0},{i:198,c:"Æ",x:188,y:2,w:13,h:15,shift:15,offset:0},{i:199,c:"Ç",x:203,y:2,w:13,h:15,shift:15,offset:0},{i:200,c:"È",x:218,y:2,w:13,h:15,shift:15,offset:0},{i:201,c:"É",x:233,y:2,w:13,h:15,shift:15,offset:0},{i:202,c:"Ê",x:2,y:19,w:13,h:15,shift:15,offset:0}, {i:203,c:"Ë",x:17,y:19,w:13,h:15,shift:15,offset:0},{i:204,c:"Ì",x:32,y:19,w:11,h:15,shift:15,offset:2},{i:205,c:"Í",x:45,y:19,w:11,h:15,shift:15,offset:2},{i:206,c:"Î",x:73,y:19,w:11,h:15,shift:15,offset:2},{i:207,c:"Ï",x:111,y:36,w:11,h:15,shift:15,offset:2},{i:208,c:"Ð",x:195,y:53,w:13,h:15,shift:15,offset:0},{i:209,c:"Ñ",x:124,y:36,w:13,h:15,shift:15,offset:0},{i:210,c:"Ò",x:240,y:53,w:13,h:15,shift:15,offset:0},{i:211,c:"Ó",x:2,y:70,w:13,h:15,shift:15,offset:0},{i:212,c:"Ô",x:17,y:70,w:13,h:15, shift:15,offset:0},{i:213,c:"Õ",x:32,y:70,w:13,h:15,shift:15,offset:0},{i:214,c:"Ö",x:47,y:70,w:13,h:15,shift:15,offset:0},{i:215,c:"×",x:62,y:70,w:9,h:15,shift:15,offset:2},{i:216,c:"Ø",x:73,y:70,w:13,h:15,shift:15,offset:0},{i:217,c:"Ù",x:88,y:70,w:13,h:15,shift:15,offset:0},{i:218,c:"Ú",x:103,y:70,w:13,h:15,shift:15,offset:0},{i:219,c:"Û",x:133,y:70,w:13,h:15,shift:15,offset:0},{i:220,c:"Ü",x:33,y:87,w:13,h:15,shift:15,offset:0},{i:221,c:"Ý",x:148,y:70,w:11,h:15,shift:15,offset:2},{i:222,c:"Þ", x:161,y:70,w:13,h:15,shift:15,offset:0},{i:223,c:"ß",x:176,y:70,w:11,h:15,shift:15,offset:2},{i:224,c:"à ",x:189,y:70,w:13,h:15,shift:15,offset:0},{i:225,c:"á",x:204,y:70,w:13,h:15,shift:15,offset:0},{i:226,c:"â",x:219,y:70,w:13,h:15,shift:15,offset:0},{i:227,c:"ã",x:234,y:70,w:13,h:15,shift:15,offset:0},{i:228,c:"ä",x:2,y:87,w:13,h:15,shift:15,offset:0},{i:229,c:"å",x:17,y:87,w:14,h:15,shift:15,offset:0},{i:230,c:"æ",x:225,y:53,w:13,h:15,shift:15,offset:0},{i:231,c:"ç",x:118,y:70,w:13,h:15,shift:15, offset:0},{i:232,c:"è",x:210,y:53,w:13,h:15,shift:15,offset:0},{i:233,c:"é",x:17,y:53,w:13,h:15,shift:15,offset:0},{i:234,c:"ê",x:139,y:36,w:13,h:15,shift:15,offset:0},{i:235,c:"ë",x:154,y:36,w:13,h:15,shift:15,offset:0},{i:236,c:"ì",x:169,y:36,w:11,h:15,shift:15,offset:2},{i:237,c:"í",x:182,y:36,w:11,h:15,shift:15,offset:2},{i:238,c:"î",x:195,y:36,w:11,h:15,shift:15,offset:2},{i:239,c:"ï",x:208,y:36,w:11,h:15,shift:15,offset:2},{i:240,c:"ð",x:221,y:36,w:13,h:15,shift:15,offset:0},{i:241,c:"ñ",x:236, y:36,w:13,h:15,shift:15,offset:0},{i:242,c:"ò",x:2,y:53,w:13,h:15,shift:15,offset:0},{i:243,c:"ó",x:32,y:53,w:13,h:15,shift:15,offset:0},{i:244,c:"ô",x:180,y:53,w:13,h:15,shift:15,offset:0},{i:245,c:"õ",x:47,y:53,w:13,h:15,shift:15,offset:0},{i:246,c:"ö",x:62,y:53,w:13,h:15,shift:15,offset:0},{i:247,c:"÷",x:77,y:53,w:11,h:15,shift:15,offset:2},{i:248,c:"ø",x:90,y:53,w:13,h:15,shift:15,offset:0},{i:249,c:"ù",x:105,y:53,w:13,h:15,shift:15,offset:0},{i:250,c:"ú",x:120,y:53,w:13,h:15,shift:15,offset:0} ,{i:251,c:"û",x:135,y:53,w:13,h:15,shift:15,offset:0},{i:252,c:"ü",x:150,y:53,w:13,h:15,shift:15,offset:0},{i:253,c:"ý",x:165,y:53,w:13,h:15,shift:15,offset:0},{i:254,c:"þ",x:98,y:172,w:13,h:15,shift:15,offset:0},{i:255,c:"ÿ",x:113,y:172,w:13,h:15,shift:15,offset:0},],},{pName:"fnt_tecmo_small",size:9,bold:true,italic:false,first:32,last:8595,charset:0,antialias:0,fontname:"8-bit Operator+ 8",ascenderOffset:0,ascender:0,sdfSpread:0,lineHeight:0,TPageEntry:49,scaleX:1,scaleY:1,glyphs:[{i:32,c:" ", x:2,y:2,w:4,h:14,shift:4,offset:0},{i:33,c:"!",x:210,y:50,w:2,h:14,shift:4,offset:1},{i:34,c:"\"",x:214,y:50,w:7,h:14,shift:9,offset:1},{i:35,c:"#",x:223,y:50,w:8,h:14,shift:10,offset:1},{i:36,c:"$",x:233,y:50,w:6,h:14,shift:8,offset:1},{i:37,c:"%",x:241,y:50,w:6,h:14,shift:8,offset:1},{i:38,c:"&",x:2,y:66,w:6,h:14,shift:8,offset:1},{i:39,c:"'",x:10,y:66,w:3,h:14,shift:5,offset:1},{i:40,c:"(",x:15,y:66,w:4,h:14,shift:6,offset:1},{i:41,c:")",x:21,y:66,w:4,h:14,shift:6,offset:1},{i:42,c:"*",x:35,y:66, w:8,h:14,shift:10,offset:1},{i:43,c:"+",x:105,y:66,w:6,h:14,shift:8,offset:1},{i:44,c:",",x:45,y:66,w:3,h:14,shift:5,offset:1},{i:45,c:"-",x:50,y:66,w:4,h:14,shift:6,offset:1},{i:46,c:".",x:56,y:66,w:2,h:14,shift:4,offset:1},{i:47,c:"/",x:60,y:66,w:5,h:14,shift:7,offset:1},{i:48,c:"0",x:67,y:66,w:6,h:14,shift:8,offset:1},{i:49,c:"1",x:75,y:66,w:4,h:14,shift:6,offset:1},{i:50,c:"2",x:81,y:66,w:6,h:14,shift:8,offset:1},{i:51,c:"3",x:89,y:66,w:6,h:14,shift:8,offset:1},{i:52,c:"4",x:97,y:66,w:6,h:14, shift:8,offset:1},{i:53,c:"5",x:202,y:50,w:6,h:14,shift:8,offset:1},{i:54,c:"6",x:194,y:50,w:6,h:14,shift:8,offset:1},{i:55,c:"7",x:186,y:50,w:6,h:14,shift:8,offset:1},{i:56,c:"8",x:178,y:50,w:6,h:14,shift:8,offset:1},{i:57,c:"9",x:35,y:50,w:6,h:14,shift:8,offset:1},{i:58,c:":",x:43,y:50,w:2,h:14,shift:4,offset:1},{i:59,c:";",x:47,y:50,w:3,h:14,shift:5,offset:1},{i:60,c:"<",x:52,y:50,w:5,h:14,shift:7,offset:1},{i:61,c:"=",x:59,y:50,w:6,h:14,shift:8,offset:1},{i:62,c:">",x:67,y:50,w:5,h:14,shift:7, offset:1},{i:63,c:"?",x:74,y:50,w:6,h:14,shift:8,offset:1},{i:64,c:"@",x:82,y:50,w:8,h:14,shift:10,offset:1},{i:65,c:"A",x:92,y:50,w:6,h:14,shift:8,offset:1},{i:66,c:"B",x:100,y:50,w:6,h:14,shift:8,offset:1},{i:67,c:"C",x:108,y:50,w:6,h:14,shift:8,offset:1},{i:68,c:"D",x:116,y:50,w:6,h:14,shift:8,offset:1},{i:69,c:"E",x:124,y:50,w:6,h:14,shift:8,offset:1},{i:70,c:"F",x:132,y:50,w:6,h:14,shift:8,offset:1},{i:71,c:"G",x:140,y:50,w:6,h:14,shift:8,offset:1},{i:72,c:"H",x:148,y:50,w:6,h:14,shift:8,offset:1} ,{i:73,c:"I",x:156,y:50,w:4,h:14,shift:6,offset:1},{i:74,c:"J",x:162,y:50,w:6,h:14,shift:8,offset:1},{i:75,c:"K",x:170,y:50,w:6,h:14,shift:8,offset:1},{i:76,c:"L",x:27,y:66,w:6,h:14,shift:8,offset:1},{i:77,c:"M",x:117,y:66,w:7,h:14,shift:9,offset:1},{i:78,c:"N",x:139,y:82,w:6,h:14,shift:8,offset:1},{i:79,c:"O",x:126,y:66,w:6,h:14,shift:8,offset:1},{i:80,c:"P",x:66,y:82,w:6,h:14,shift:8,offset:1},{i:81,c:"Q",x:74,y:82,w:6,h:14,shift:8,offset:1},{i:82,c:"R",x:82,y:82,w:6,h:14,shift:8,offset:1},{i:83, c:"S",x:90,y:82,w:6,h:14,shift:8,offset:1},{i:84,c:"T",x:98,y:82,w:6,h:14,shift:8,offset:1},{i:85,c:"U",x:106,y:82,w:6,h:14,shift:8,offset:1},{i:86,c:"V",x:114,y:82,w:6,h:14,shift:8,offset:1},{i:87,c:"W",x:122,y:82,w:7,h:14,shift:9,offset:1},{i:88,c:"X",x:131,y:82,w:6,h:14,shift:8,offset:1},{i:89,c:"Y",x:147,y:82,w:6,h:14,shift:8,offset:1},{i:90,c:"Z",x:217,y:82,w:6,h:14,shift:8,offset:1},{i:91,c:"[",x:155,y:82,w:4,h:14,shift:6,offset:1},{i:92,c:"\\",x:161,y:82,w:5,h:14,shift:7,offset:1},{i:93,c:"]", x:168,y:82,w:4,h:14,shift:6,offset:1},{i:94,c:"^",x:174,y:82,w:6,h:14,shift:8,offset:1},{i:95,c:"_",x:182,y:82,w:4,h:14,shift:4,offset:0},{i:96,c:"`",x:188,y:82,w:3,h:14,shift:5,offset:1},{i:97,c:"a",x:193,y:82,w:6,h:14,shift:8,offset:1},{i:98,c:"b",x:201,y:82,w:6,h:14,shift:8,offset:1},{i:99,c:"c",x:209,y:82,w:6,h:14,shift:8,offset:1},{i:100,c:"d",x:58,y:82,w:6,h:14,shift:8,offset:1},{i:101,c:"e",x:50,y:82,w:6,h:14,shift:8,offset:1},{i:102,c:"f",x:43,y:82,w:5,h:14,shift:7,offset:1},{i:103,c:"g", x:35,y:82,w:6,h:14,shift:8,offset:1},{i:104,c:"h",x:134,y:66,w:6,h:14,shift:8,offset:1},{i:105,c:"i",x:142,y:66,w:4,h:14,shift:6,offset:1},{i:106,c:"j",x:148,y:66,w:6,h:14,shift:8,offset:1},{i:107,c:"k",x:156,y:66,w:6,h:14,shift:8,offset:1},{i:108,c:"l",x:164,y:66,w:4,h:14,shift:6,offset:1},{i:109,c:"m",x:170,y:66,w:8,h:14,shift:10,offset:1},{i:110,c:"n",x:180,y:66,w:6,h:14,shift:8,offset:1},{i:111,c:"o",x:188,y:66,w:6,h:14,shift:8,offset:1},{i:112,c:"p",x:196,y:66,w:6,h:14,shift:8,offset:1},{i:113, c:"q",x:204,y:66,w:6,h:14,shift:8,offset:1},{i:114,c:"r",x:212,y:66,w:6,h:14,shift:8,offset:1},{i:115,c:"s",x:220,y:66,w:6,h:14,shift:8,offset:1},{i:116,c:"t",x:228,y:66,w:5,h:14,shift:7,offset:1},{i:117,c:"u",x:235,y:66,w:6,h:14,shift:8,offset:1},{i:118,c:"v",x:243,y:66,w:6,h:14,shift:8,offset:1},{i:119,c:"w",x:2,y:82,w:7,h:14,shift:9,offset:1},{i:120,c:"x",x:11,y:82,w:6,h:14,shift:8,offset:1},{i:121,c:"y",x:19,y:82,w:6,h:14,shift:8,offset:1},{i:122,c:"z",x:27,y:82,w:6,h:14,shift:8,offset:1},{i:123, c:"{",x:27,y:50,w:6,h:14,shift:8,offset:1},{i:124,c:"|",x:113,y:66,w:2,h:14,shift:4,offset:1},{i:125,c:"}",x:19,y:50,w:6,h:14,shift:8,offset:1},{i:126,c:"~",x:124,y:18,w:7,h:14,shift:9,offset:1},{i:160,c:" ",x:207,y:2,w:1,h:14,shift:4,offset:0},{i:161,c:"¡",x:210,y:2,w:2,h:14,shift:4,offset:1},{i:162,c:"¢",x:214,y:2,w:6,h:14,shift:8,offset:1},{i:163,c:"£",x:222,y:2,w:7,h:14,shift:9,offset:1},{i:165,c:"¥",x:231,y:2,w:6,h:14,shift:8,offset:1},{i:166,c:"¦",x:239,y:2,w:2,h:14,shift:4,offset:1},{i:168, c:"¨",x:243,y:2,w:6,h:14,shift:8,offset:1},{i:169,c:"©",x:2,y:18,w:8,h:14,shift:10,offset:1},{i:171,c:"«",x:12,y:18,w:8,h:14,shift:10,offset:1},{i:172,c:"¬",x:30,y:18,w:6,h:14,shift:8,offset:1},{i:174,c:"®",x:114,y:18,w:8,h:14,shift:10,offset:1},{i:176,c:"°",x:38,y:18,w:4,h:14,shift:6,offset:1},{i:177,c:"±",x:44,y:18,w:6,h:14,shift:8,offset:1},{i:178,c:"²",x:52,y:18,w:13,h:14,shift:15,offset:1},{i:179,c:"³",x:67,y:18,w:12,h:14,shift:14,offset:1},{i:180,c:"´",x:81,y:18,w:3,h:14,shift:5,offset:1}, {i:181,c:"µ",x:86,y:18,w:6,h:14,shift:8,offset:1},{i:182,c:"¶",x:94,y:18,w:7,h:14,shift:9,offset:1},{i:183,c:"·",x:103,y:18,w:2,h:14,shift:4,offset:1},{i:184,c:"¸",x:107,y:18,w:5,h:14,shift:7,offset:1},{i:185,c:"¹",x:193,y:2,w:12,h:14,shift:14,offset:1},{i:186,c:"º",x:179,y:2,w:12,h:14,shift:14,offset:1},{i:187,c:"»",x:169,y:2,w:8,h:14,shift:10,offset:1},{i:191,c:"¿",x:161,y:2,w:6,h:14,shift:8,offset:1},{i:192,c:"À",x:8,y:2,w:6,h:14,shift:8,offset:1},{i:193,c:"Á",x:16,y:2,w:6,h:14,shift:8,offset:1} ,{i:194,c:"Â",x:24,y:2,w:6,h:14,shift:8,offset:1},{i:195,c:"Ã",x:32,y:2,w:7,h:14,shift:8,offset:1},{i:196,c:"Ä",x:41,y:2,w:6,h:14,shift:8,offset:1},{i:197,c:"Å",x:49,y:2,w:6,h:14,shift:8,offset:1},{i:198,c:"Æ",x:57,y:2,w:8,h:14,shift:10,offset:1},{i:199,c:"Ç",x:67,y:2,w:6,h:14,shift:8,offset:1},{i:200,c:"È",x:75,y:2,w:6,h:14,shift:8,offset:1},{i:201,c:"É",x:83,y:2,w:6,h:14,shift:8,offset:1},{i:202,c:"Ê",x:91,y:2,w:6,h:14,shift:8,offset:1},{i:203,c:"Ë",x:99,y:2,w:6,h:14,shift:8,offset:1},{i:204,c:"Ì", x:107,y:2,w:4,h:14,shift:6,offset:1},{i:205,c:"Í",x:113,y:2,w:4,h:14,shift:6,offset:1},{i:206,c:"Î",x:119,y:2,w:6,h:14,shift:6,offset:0},{i:207,c:"Ï",x:127,y:2,w:6,h:14,shift:6,offset:0},{i:208,c:"Ð",x:135,y:2,w:7,h:14,shift:8,offset:0},{i:209,c:"Ñ",x:144,y:2,w:7,h:14,shift:8,offset:1},{i:210,c:"Ò",x:153,y:2,w:6,h:14,shift:8,offset:1},{i:211,c:"Ó",x:22,y:18,w:6,h:14,shift:8,offset:1},{i:212,c:"Ô",x:133,y:18,w:6,h:14,shift:8,offset:1},{i:213,c:"Õ",x:160,y:34,w:7,h:14,shift:8,offset:1},{i:214,c:"Ö", x:141,y:18,w:6,h:14,shift:8,offset:1},{i:215,c:"×",x:86,y:34,w:6,h:14,shift:8,offset:1},{i:216,c:"Ø",x:94,y:34,w:8,h:14,shift:8,offset:0},{i:217,c:"Ù",x:104,y:34,w:6,h:14,shift:8,offset:1},{i:218,c:"Ú",x:112,y:34,w:6,h:14,shift:8,offset:1},{i:219,c:"Û",x:120,y:34,w:6,h:14,shift:8,offset:1},{i:220,c:"Ü",x:128,y:34,w:6,h:14,shift:8,offset:1},{i:221,c:"Ý",x:136,y:34,w:6,h:14,shift:8,offset:1},{i:222,c:"Þ",x:144,y:34,w:6,h:14,shift:8,offset:1},{i:223,c:"ß",x:152,y:34,w:6,h:14,shift:8,offset:1},{i:224, c:"à ",x:169,y:34,w:6,h:14,shift:8,offset:1},{i:225,c:"á",x:2,y:50,w:6,h:14,shift:8,offset:1},{i:226,c:"â",x:177,y:34,w:6,h:14,shift:8,offset:1},{i:227,c:"ã",x:185,y:34,w:7,h:14,shift:8,offset:1},{i:228,c:"ä",x:194,y:34,w:6,h:14,shift:8,offset:1},{i:229,c:"å",x:202,y:34,w:6,h:14,shift:8,offset:1},{i:230,c:"æ",x:210,y:34,w:8,h:14,shift:10,offset:1},{i:231,c:"ç",x:220,y:34,w:7,h:14,shift:8,offset:0},{i:232,c:"è",x:229,y:34,w:6,h:14,shift:8,offset:1},{i:233,c:"é",x:237,y:34,w:6,h:14,shift:8,offset:1} ,{i:234,c:"ê",x:245,y:34,w:6,h:14,shift:8,offset:1},{i:235,c:"ë",x:78,y:34,w:6,h:14,shift:8,offset:1},{i:236,c:"ì",x:72,y:34,w:4,h:14,shift:6,offset:1},{i:237,c:"í",x:66,y:34,w:4,h:14,shift:6,offset:1},{i:238,c:"î",x:58,y:34,w:6,h:14,shift:6,offset:0},{i:239,c:"ï",x:149,y:18,w:6,h:14,shift:6,offset:0},{i:240,c:"ð",x:157,y:18,w:7,h:14,shift:8,offset:1},{i:241,c:"ñ",x:166,y:18,w:7,h:14,shift:8,offset:1},{i:242,c:"ò",x:175,y:18,w:6,h:14,shift:8,offset:1},{i:243,c:"ó",x:183,y:18,w:6,h:14,shift:8,offset:1} ,{i:244,c:"ô",x:191,y:18,w:6,h:14,shift:8,offset:1},{i:245,c:"õ",x:199,y:18,w:7,h:14,shift:8,offset:1},{i:246,c:"ö",x:208,y:18,w:6,h:14,shift:8,offset:1},{i:247,c:"÷",x:216,y:18,w:6,h:14,shift:8,offset:1},{i:248,c:"ø",x:224,y:18,w:6,h:14,shift:8,offset:1},{i:249,c:"ù",x:232,y:18,w:6,h:14,shift:8,offset:1},{i:250,c:"ú",x:240,y:18,w:6,h:14,shift:8,offset:1},{i:251,c:"û",x:2,y:34,w:6,h:14,shift:8,offset:1},{i:252,c:"ü",x:10,y:34,w:6,h:14,shift:8,offset:1},{i:253,c:"ý",x:18,y:34,w:6,h:14,shift:8,offset:1} ,{i:254,c:"þ",x:26,y:34,w:6,h:14,shift:8,offset:1},{i:255,c:"ÿ",x:34,y:34,w:6,h:14,shift:8,offset:1},{i:8592,c:"←",x:42,y:34,w:7,h:14,shift:9,offset:1},{i:8593,c:"↑",x:51,y:34,w:5,h:14,shift:9,offset:2},{i:8594,c:"→",x:10,y:50,w:7,h:14,shift:9,offset:1},{i:8595,c:"↓",x:225,y:82,w:5,h:14,shift:9,offset:2},],},{pName:"fnt_tecmo",size:11,bold:false,italic:false,first:32,last:126,charset:0,antialias:0,fontname:"Emulogic",ascenderOffset:0,ascender:0,sdfSpread:0,lineHeight:0,TPageEntry:35,scaleX:1,scaleY:1, glyphs:[{i:32,c:" ",x:2,y:2,w:15,h:19,shift:15,offset:0},{i:33,c:"!",x:176,y:65,w:5,h:19,shift:15,offset:6},{i:34,c:"\"",x:165,y:65,w:9,h:19,shift:15,offset:4},{i:35,c:"#",x:150,y:65,w:13,h:19,shift:15,offset:2},{i:36,c:"$",x:135,y:65,w:13,h:19,shift:15,offset:2},{i:37,c:"%",x:120,y:65,w:13,h:19,shift:15,offset:2},{i:38,c:"&",x:105,y:65,w:13,h:19,shift:15,offset:2},{i:39,c:"'",x:99,y:65,w:4,h:19,shift:15,offset:4},{i:40,c:"(",x:90,y:65,w:7,h:19,shift:15,offset:4},{i:41,c:")",x:81,y:65,w:7,h:19,shift:15, offset:6},{i:42,c:"*",x:183,y:65,w:9,h:19,shift:15,offset:4},{i:43,c:"+",x:70,y:65,w:9,h:19,shift:15,offset:4},{i:44,c:",",x:48,y:65,w:5,h:19,shift:15,offset:4},{i:45,c:"-",x:37,y:65,w:9,h:19,shift:15,offset:4},{i:46,c:".",x:32,y:65,w:3,h:19,shift:15,offset:6},{i:47,c:"/",x:17,y:65,w:13,h:19,shift:15,offset:2},{i:48,c:"0",x:2,y:65,w:13,h:19,shift:15,offset:2},{i:49,c:"1",x:236,y:44,w:11,h:19,shift:15,offset:4},{i:50,c:"2",x:221,y:44,w:13,h:19,shift:15,offset:2},{i:51,c:"3",x:206,y:44,w:13,h:19,shift:15, offset:2},{i:52,c:"4",x:191,y:44,w:13,h:19,shift:15,offset:2},{i:53,c:"5",x:55,y:65,w:13,h:19,shift:15,offset:2},{i:54,c:"6",x:209,y:65,w:13,h:19,shift:15,offset:2},{i:55,c:"7",x:120,y:86,w:13,h:19,shift:15,offset:2},{i:56,c:"8",x:224,y:65,w:13,h:19,shift:15,offset:2},{i:57,c:"9",x:240,y:86,w:13,h:19,shift:15,offset:2},{i:58,c:":",x:235,y:86,w:3,h:19,shift:15,offset:6},{i:59,c:";",x:228,y:86,w:5,h:19,shift:15,offset:4},{i:60,c:"<",x:217,y:86,w:9,h:19,shift:15,offset:4},{i:61,c:"=",x:206,y:86,w:9, h:19,shift:15,offset:4},{i:62,c:">",x:195,y:86,w:9,h:19,shift:15,offset:4},{i:63,c:"?",x:180,y:86,w:13,h:19,shift:15,offset:2},{i:64,c:"@",x:165,y:86,w:13,h:19,shift:15,offset:2},{i:65,c:"A",x:150,y:86,w:13,h:19,shift:15,offset:2},{i:66,c:"B",x:2,y:107,w:13,h:19,shift:15,offset:2},{i:67,c:"C",x:135,y:86,w:13,h:19,shift:15,offset:2},{i:68,c:"D",x:105,y:86,w:13,h:19,shift:15,offset:2},{i:69,c:"E",x:90,y:86,w:13,h:19,shift:15,offset:2},{i:70,c:"F",x:75,y:86,w:13,h:19,shift:15,offset:2},{i:71,c:"G", x:60,y:86,w:13,h:19,shift:15,offset:2},{i:72,c:"H",x:45,y:86,w:13,h:19,shift:15,offset:2},{i:73,c:"I",x:32,y:86,w:11,h:19,shift:15,offset:4},{i:74,c:"J",x:17,y:86,w:13,h:19,shift:15,offset:2},{i:75,c:"K",x:2,y:86,w:13,h:19,shift:15,offset:2},{i:76,c:"L",x:239,y:65,w:13,h:19,shift:15,offset:2},{i:77,c:"M",x:176,y:44,w:13,h:19,shift:15,offset:2},{i:78,c:"N",x:194,y:65,w:13,h:19,shift:15,offset:2},{i:79,c:"O",x:161,y:44,w:13,h:19,shift:15,offset:2},{i:80,c:"P",x:62,y:23,w:13,h:19,shift:15,offset:2} ,{i:81,c:"Q",x:32,y:23,w:13,h:19,shift:15,offset:2},{i:82,c:"R",x:17,y:23,w:13,h:19,shift:15,offset:2},{i:83,c:"S",x:2,y:23,w:13,h:19,shift:15,offset:2},{i:84,c:"T",x:233,y:2,w:11,h:19,shift:15,offset:4},{i:85,c:"U",x:218,y:2,w:13,h:19,shift:15,offset:2},{i:86,c:"V",x:203,y:2,w:13,h:19,shift:15,offset:2},{i:87,c:"W",x:188,y:2,w:13,h:19,shift:15,offset:2},{i:88,c:"X",x:173,y:2,w:13,h:19,shift:15,offset:2},{i:89,c:"Y",x:160,y:2,w:11,h:19,shift:15,offset:4},{i:90,c:"Z",x:47,y:23,w:13,h:19,shift:15, offset:2},{i:91,c:"[",x:151,y:2,w:7,h:19,shift:15,offset:6},{i:92,c:"\\",x:121,y:2,w:13,h:19,shift:15,offset:2},{i:93,c:"]",x:112,y:2,w:7,h:19,shift:15,offset:4},{i:94,c:"^",x:101,y:2,w:9,h:19,shift:15,offset:4},{i:95,c:"_",x:86,y:2,w:13,h:19,shift:15,offset:2},{i:96,c:"`",x:79,y:2,w:5,h:19,shift:15,offset:8},{i:97,c:"a",x:64,y:2,w:13,h:19,shift:15,offset:2},{i:98,c:"b",x:49,y:2,w:13,h:19,shift:15,offset:2},{i:99,c:"c",x:34,y:2,w:13,h:19,shift:15,offset:2},{i:100,c:"d",x:19,y:2,w:13,h:19,shift:15, offset:2},{i:101,c:"e",x:136,y:2,w:13,h:19,shift:15,offset:2},{i:102,c:"f",x:77,y:23,w:13,h:19,shift:15,offset:2},{i:103,c:"g",x:224,y:23,w:13,h:19,shift:15,offset:2},{i:104,c:"h",x:92,y:23,w:13,h:19,shift:15,offset:2},{i:105,c:"i",x:122,y:44,w:11,h:19,shift:15,offset:4},{i:106,c:"j",x:107,y:44,w:13,h:19,shift:15,offset:2},{i:107,c:"k",x:92,y:44,w:13,h:19,shift:15,offset:2},{i:108,c:"l",x:77,y:44,w:13,h:19,shift:15,offset:2},{i:109,c:"m",x:62,y:44,w:13,h:19,shift:15,offset:2},{i:110,c:"n",x:47,y:44, w:13,h:19,shift:15,offset:2},{i:111,c:"o",x:32,y:44,w:13,h:19,shift:15,offset:2},{i:112,c:"p",x:17,y:44,w:13,h:19,shift:15,offset:2},{i:113,c:"q",x:2,y:44,w:13,h:19,shift:15,offset:2},{i:114,c:"r",x:135,y:44,w:13,h:19,shift:15,offset:2},{i:115,c:"s",x:239,y:23,w:13,h:19,shift:15,offset:2},{i:116,c:"t",x:211,y:23,w:11,h:19,shift:15,offset:4},{i:117,c:"u",x:196,y:23,w:13,h:19,shift:15,offset:2},{i:118,c:"v",x:181,y:23,w:13,h:19,shift:15,offset:2},{i:119,c:"w",x:166,y:23,w:13,h:19,shift:15,offset:2} ,{i:120,c:"x",x:151,y:23,w:13,h:19,shift:15,offset:2},{i:121,c:"y",x:138,y:23,w:11,h:19,shift:15,offset:4},{i:122,c:"z",x:123,y:23,w:13,h:19,shift:15,offset:2},{i:123,c:"{",x:112,y:23,w:9,h:19,shift:15,offset:4},{i:124,c:"|",x:107,y:23,w:3,h:19,shift:15,offset:6},{i:125,c:"}",x:150,y:44,w:9,h:19,shift:15,offset:4},{i:126,c:"~",x:17,y:107,w:7,h:19,shift:9,offset:1},],},{pName:"fnt_tecmo_big",size:16,bold:true,italic:false,first:32,last:126,charset:0,antialias:0,fontname:"8-bit Operator+ SC",ascenderOffset:0, ascender:0,sdfSpread:0,lineHeight:0,TPageEntry:34,scaleX:1,scaleY:1,glyphs:[{i:32,c:" ",x:2,y:2,w:7,h:30,shift:7,offset:0},{i:33,c:"!",x:93,y:98,w:4,h:30,shift:8,offset:2},{i:34,c:"\"",x:78,y:98,w:13,h:30,shift:17,offset:2},{i:35,c:"#",x:61,y:98,w:15,h:30,shift:19,offset:2},{i:36,c:"$",x:48,y:98,w:11,h:30,shift:15,offset:2},{i:37,c:"%",x:33,y:98,w:13,h:30,shift:17,offset:2},{i:38,c:"&",x:20,y:98,w:11,h:30,shift:15,offset:2},{i:39,c:"'",x:12,y:98,w:6,h:30,shift:10,offset:2},{i:40,c:"(",x:2,y:98,w:8, h:30,shift:12,offset:2},{i:41,c:")",x:239,y:66,w:8,h:30,shift:12,offset:2},{i:42,c:"*",x:99,y:98,w:15,h:30,shift:19,offset:2},{i:43,c:"+",x:226,y:66,w:11,h:30,shift:15,offset:2},{i:44,c:",",x:205,y:66,w:6,h:30,shift:10,offset:2},{i:45,c:"-",x:196,y:66,w:7,h:30,shift:11,offset:2},{i:46,c:".",x:190,y:66,w:4,h:30,shift:8,offset:2},{i:47,c:"/",x:180,y:66,w:8,h:30,shift:12,offset:2},{i:48,c:"0",x:167,y:66,w:11,h:30,shift:15,offset:2},{i:49,c:"1",x:158,y:66,w:7,h:30,shift:11,offset:2},{i:50,c:"2",x:145, y:66,w:11,h:30,shift:15,offset:2},{i:51,c:"3",x:132,y:66,w:11,h:30,shift:15,offset:2},{i:52,c:"4",x:119,y:66,w:11,h:30,shift:15,offset:2},{i:53,c:"5",x:213,y:66,w:11,h:30,shift:15,offset:2},{i:54,c:"6",x:129,y:98,w:11,h:30,shift:15,offset:2},{i:55,c:"7",x:15,y:130,w:11,h:30,shift:15,offset:2},{i:56,c:"8",x:142,y:98,w:11,h:30,shift:15,offset:2},{i:57,c:"9",x:133,y:130,w:11,h:30,shift:15,offset:2},{i:58,c:":",x:127,y:130,w:4,h:30,shift:8,offset:2},{i:59,c:";",x:119,y:130,w:6,h:30,shift:10,offset:2} ,{i:60,c:"<",x:108,y:130,w:9,h:30,shift:13,offset:2},{i:61,c:"=",x:95,y:130,w:11,h:30,shift:15,offset:2},{i:62,c:">",x:84,y:130,w:9,h:30,shift:13,offset:2},{i:63,c:"?",x:71,y:130,w:11,h:30,shift:15,offset:2},{i:64,c:"@",x:54,y:130,w:15,h:30,shift:19,offset:2},{i:65,c:"A",x:41,y:130,w:11,h:30,shift:15,offset:2},{i:66,c:"B",x:146,y:130,w:11,h:30,shift:15,offset:2},{i:67,c:"C",x:28,y:130,w:11,h:30,shift:15,offset:2},{i:68,c:"D",x:2,y:130,w:11,h:30,shift:15,offset:2},{i:69,c:"E",x:242,y:98,w:11,h:30, shift:15,offset:2},{i:70,c:"F",x:229,y:98,w:11,h:30,shift:15,offset:2},{i:71,c:"G",x:216,y:98,w:11,h:30,shift:15,offset:2},{i:72,c:"H",x:203,y:98,w:11,h:30,shift:15,offset:2},{i:73,c:"I",x:194,y:98,w:7,h:30,shift:11,offset:2},{i:74,c:"J",x:181,y:98,w:11,h:30,shift:15,offset:2},{i:75,c:"K",x:168,y:98,w:11,h:30,shift:15,offset:2},{i:76,c:"L",x:155,y:98,w:11,h:30,shift:15,offset:2},{i:77,c:"M",x:104,y:66,w:13,h:30,shift:17,offset:2},{i:78,c:"N",x:116,y:98,w:11,h:30,shift:15,offset:2},{i:79,c:"O",x:91, y:66,w:11,h:30,shift:15,offset:2},{i:80,c:"P",x:15,y:34,w:11,h:30,shift:15,offset:2},{i:81,c:"Q",x:241,y:2,w:11,h:30,shift:15,offset:2},{i:82,c:"R",x:228,y:2,w:11,h:30,shift:15,offset:2},{i:83,c:"S",x:215,y:2,w:11,h:30,shift:15,offset:2},{i:84,c:"T",x:202,y:2,w:11,h:30,shift:15,offset:2},{i:85,c:"U",x:189,y:2,w:11,h:30,shift:15,offset:2},{i:86,c:"V",x:176,y:2,w:11,h:30,shift:15,offset:2},{i:87,c:"W",x:161,y:2,w:13,h:30,shift:17,offset:2},{i:88,c:"X",x:148,y:2,w:11,h:30,shift:15,offset:2},{i:89,c:"Y", x:135,y:2,w:11,h:30,shift:15,offset:2},{i:90,c:"Z",x:2,y:34,w:11,h:30,shift:15,offset:2},{i:91,c:"[",x:125,y:2,w:8,h:30,shift:11,offset:2},{i:92,c:"\\",x:102,y:2,w:8,h:30,shift:12,offset:2},{i:93,c:"]",x:93,y:2,w:7,h:30,shift:11,offset:2},{i:94,c:"^",x:80,y:2,w:11,h:30,shift:15,offset:2},{i:95,c:"_",x:71,y:2,w:7,h:30,shift:7,offset:0},{i:96,c:"`",x:63,y:2,w:6,h:30,shift:10,offset:2},{i:97,c:"a",x:50,y:2,w:11,h:30,shift:15,offset:2},{i:98,c:"b",x:37,y:2,w:11,h:30,shift:15,offset:2},{i:99,c:"c",x:24, y:2,w:11,h:30,shift:15,offset:2},{i:100,c:"d",x:11,y:2,w:11,h:30,shift:15,offset:2},{i:101,c:"e",x:112,y:2,w:11,h:30,shift:15,offset:2},{i:102,c:"f",x:28,y:34,w:11,h:30,shift:15,offset:2},{i:103,c:"g",x:166,y:34,w:11,h:30,shift:15,offset:2},{i:104,c:"h",x:41,y:34,w:11,h:30,shift:15,offset:2},{i:105,c:"i",x:56,y:66,w:7,h:30,shift:11,offset:2},{i:106,c:"j",x:43,y:66,w:11,h:30,shift:15,offset:2},{i:107,c:"k",x:30,y:66,w:11,h:30,shift:15,offset:2},{i:108,c:"l",x:17,y:66,w:11,h:30,shift:15,offset:2}, {i:109,c:"m",x:2,y:66,w:13,h:30,shift:17,offset:2},{i:110,c:"n",x:231,y:34,w:11,h:30,shift:15,offset:2},{i:111,c:"o",x:218,y:34,w:11,h:30,shift:15,offset:2},{i:112,c:"p",x:205,y:34,w:11,h:30,shift:15,offset:2},{i:113,c:"q",x:192,y:34,w:11,h:30,shift:15,offset:2},{i:114,c:"r",x:65,y:66,w:11,h:30,shift:15,offset:2},{i:115,c:"s",x:179,y:34,w:11,h:30,shift:15,offset:2},{i:116,c:"t",x:153,y:34,w:11,h:30,shift:15,offset:2},{i:117,c:"u",x:140,y:34,w:11,h:30,shift:15,offset:2},{i:118,c:"v",x:127,y:34,w:11, h:30,shift:15,offset:2},{i:119,c:"w",x:112,y:34,w:13,h:30,shift:17,offset:2},{i:120,c:"x",x:99,y:34,w:11,h:30,shift:15,offset:2},{i:121,c:"y",x:86,y:34,w:11,h:30,shift:15,offset:2},{i:122,c:"z",x:73,y:34,w:11,h:30,shift:15,offset:2},{i:123,c:"{",x:60,y:34,w:11,h:30,shift:15,offset:2},{i:124,c:"|",x:54,y:34,w:4,h:30,shift:8,offset:2},{i:125,c:"}",x:78,y:66,w:11,h:30,shift:15,offset:2},{i:126,c:"~",x:159,y:130,w:13,h:30,shift:17,offset:2},],},{pName:"fnt_restart",size:6,bold:false,italic:false,first:32, last:255,charset:0,antialias:0,fontname:"Press Start 2P",ascenderOffset:0,ascender:0,sdfSpread:0,lineHeight:0,TPageEntry:48,scaleX:1,scaleY:1,glyphs:[{i:32,c:" ",x:2,y:2,w:8,h:8,shift:8,offset:0},{i:33,c:"!",x:11,y:42,w:3,h:8,shift:8,offset:2},{i:34,c:"\"",x:16,y:42,w:5,h:8,shift:8,offset:1},{i:35,c:"#",x:23,y:42,w:7,h:8,shift:8,offset:0},{i:36,c:"$",x:32,y:42,w:7,h:8,shift:8,offset:0},{i:37,c:"%",x:41,y:42,w:7,h:8,shift:8,offset:0},{i:38,c:"&",x:50,y:42,w:7,h:8,shift:8,offset:0},{i:39,c:"'",x:59, y:42,w:2,h:8,shift:8,offset:2},{i:40,c:"(",x:63,y:42,w:4,h:8,shift:8,offset:2},{i:41,c:")",x:69,y:42,w:4,h:8,shift:8,offset:1},{i:42,c:"*",x:84,y:42,w:7,h:8,shift:8,offset:0},{i:43,c:"+",x:163,y:42,w:6,h:8,shift:8,offset:1},{i:44,c:",",x:93,y:42,w:3,h:8,shift:8,offset:1},{i:45,c:"-",x:98,y:42,w:6,h:8,shift:8,offset:1},{i:46,c:".",x:106,y:42,w:2,h:8,shift:8,offset:2},{i:47,c:"/",x:110,y:42,w:7,h:8,shift:8,offset:0},{i:48,c:"0",x:119,y:42,w:7,h:8,shift:8,offset:0},{i:49,c:"1",x:128,y:42,w:6,h:8,shift:8, offset:1},{i:50,c:"2",x:136,y:42,w:7,h:8,shift:8,offset:0},{i:51,c:"3",x:145,y:42,w:7,h:8,shift:8,offset:0},{i:52,c:"4",x:154,y:42,w:7,h:8,shift:8,offset:0},{i:53,c:"5",x:2,y:42,w:7,h:8,shift:8,offset:0},{i:54,c:"6",x:75,y:42,w:7,h:8,shift:8,offset:0},{i:55,c:"7",x:239,y:32,w:7,h:8,shift:8,offset:0},{i:56,c:"8",x:124,y:32,w:7,h:8,shift:8,offset:0},{i:57,c:"9",x:56,y:32,w:7,h:8,shift:8,offset:0},{i:58,c:":",x:65,y:32,w:2,h:8,shift:8,offset:2},{i:59,c:";",x:69,y:32,w:3,h:8,shift:8,offset:1},{i:60, c:"<",x:74,y:32,w:5,h:8,shift:8,offset:1},{i:61,c:"=",x:81,y:32,w:7,h:8,shift:8,offset:0},{i:62,c:">",x:90,y:32,w:5,h:8,shift:8,offset:1},{i:63,c:"?",x:97,y:32,w:7,h:8,shift:8,offset:0},{i:64,c:"@",x:106,y:32,w:7,h:8,shift:8,offset:0},{i:65,c:"A",x:115,y:32,w:7,h:8,shift:8,offset:0},{i:66,c:"B",x:133,y:32,w:7,h:8,shift:8,offset:0},{i:67,c:"C",x:221,y:32,w:7,h:8,shift:8,offset:0},{i:68,c:"D",x:142,y:32,w:7,h:8,shift:8,offset:0},{i:69,c:"E",x:151,y:32,w:7,h:8,shift:8,offset:0},{i:70,c:"F",x:160,y:32, w:7,h:8,shift:8,offset:0},{i:71,c:"G",x:169,y:32,w:7,h:8,shift:8,offset:0},{i:72,c:"H",x:178,y:32,w:7,h:8,shift:8,offset:0},{i:73,c:"I",x:187,y:32,w:6,h:8,shift:8,offset:1},{i:74,c:"J",x:195,y:32,w:7,h:8,shift:8,offset:0},{i:75,c:"K",x:204,y:32,w:7,h:8,shift:8,offset:0},{i:76,c:"L",x:213,y:32,w:6,h:8,shift:8,offset:1},{i:77,c:"M",x:230,y:32,w:7,h:8,shift:8,offset:0},{i:78,c:"N",x:171,y:42,w:7,h:8,shift:8,offset:0},{i:79,c:"O",x:180,y:42,w:7,h:8,shift:8,offset:0},{i:80,c:"P",x:189,y:42,w:7,h:8,shift:8, offset:0},{i:81,c:"Q",x:148,y:52,w:7,h:8,shift:8,offset:0},{i:82,c:"R",x:157,y:52,w:7,h:8,shift:8,offset:0},{i:83,c:"S",x:166,y:52,w:7,h:8,shift:8,offset:0},{i:84,c:"T",x:175,y:52,w:6,h:8,shift:8,offset:1},{i:85,c:"U",x:183,y:52,w:7,h:8,shift:8,offset:0},{i:86,c:"V",x:192,y:52,w:7,h:8,shift:8,offset:0},{i:87,c:"W",x:201,y:52,w:7,h:8,shift:8,offset:0},{i:88,c:"X",x:210,y:52,w:7,h:8,shift:8,offset:0},{i:89,c:"Y",x:219,y:52,w:6,h:8,shift:8,offset:1},{i:90,c:"Z",x:227,y:52,w:7,h:8,shift:8,offset:0}, {i:91,c:"[",x:236,y:52,w:4,h:8,shift:8,offset:2},{i:92,c:"\\",x:242,y:52,w:7,h:8,shift:8,offset:0},{i:93,c:"]",x:2,y:62,w:4,h:8,shift:8,offset:1},{i:94,c:"^",x:8,y:62,w:5,h:8,shift:8,offset:1},{i:95,c:"_",x:15,y:62,w:7,h:8,shift:8,offset:0},{i:96,c:"`",x:24,y:62,w:2,h:8,shift:8,offset:3},{i:97,c:"a",x:28,y:62,w:7,h:8,shift:8,offset:0},{i:98,c:"b",x:37,y:62,w:7,h:8,shift:8,offset:0},{i:99,c:"c",x:46,y:62,w:7,h:8,shift:8,offset:0},{i:100,c:"d",x:55,y:62,w:7,h:8,shift:8,offset:0},{i:101,c:"e",x:64, y:62,w:7,h:8,shift:8,offset:0},{i:102,c:"f",x:140,y:52,w:6,h:8,shift:8,offset:1},{i:103,c:"g",x:131,y:52,w:7,h:8,shift:8,offset:0},{i:104,c:"h",x:122,y:52,w:7,h:8,shift:8,offset:0},{i:105,c:"i",x:28,y:52,w:6,h:8,shift:8,offset:1},{i:106,c:"j",x:198,y:42,w:5,h:8,shift:8,offset:1},{i:107,c:"k",x:205,y:42,w:7,h:8,shift:8,offset:0},{i:108,c:"l",x:214,y:42,w:6,h:8,shift:8,offset:1},{i:109,c:"m",x:222,y:42,w:7,h:8,shift:8,offset:0},{i:110,c:"n",x:231,y:42,w:7,h:8,shift:8,offset:0},{i:111,c:"o",x:240,y:42, w:7,h:8,shift:8,offset:0},{i:112,c:"p",x:2,y:52,w:7,h:8,shift:8,offset:0},{i:113,c:"q",x:11,y:52,w:7,h:8,shift:8,offset:0},{i:114,c:"r",x:20,y:52,w:6,h:8,shift:8,offset:1},{i:115,c:"s",x:36,y:52,w:7,h:8,shift:8,offset:0},{i:116,c:"t",x:114,y:52,w:6,h:8,shift:8,offset:1},{i:117,c:"u",x:45,y:52,w:7,h:8,shift:8,offset:0},{i:118,c:"v",x:54,y:52,w:6,h:8,shift:8,offset:1},{i:119,c:"w",x:62,y:52,w:7,h:8,shift:8,offset:0},{i:120,c:"x",x:71,y:52,w:7,h:8,shift:8,offset:0},{i:121,c:"y",x:80,y:52,w:7,h:8,shift:8, offset:0},{i:122,c:"z",x:89,y:52,w:7,h:8,shift:8,offset:0},{i:123,c:"{",x:98,y:52,w:4,h:8,shift:8,offset:2},{i:124,c:"|",x:104,y:52,w:2,h:8,shift:8,offset:3},{i:125,c:"}",x:108,y:52,w:4,h:8,shift:8,offset:1},{i:126,c:"~",x:47,y:32,w:7,h:8,shift:8,offset:0},{i:127,x:40,y:32,w:5,h:8,shift:8,offset:1},{i:160,c:" ",x:38,y:32,w:0,h:8,shift:8,offset:0},{i:161,c:"¡",x:118,y:12,w:3,h:8,shift:8,offset:2},{i:162,c:"¢",x:215,y:2,w:7,h:8,shift:8,offset:0},{i:163,c:"£",x:224,y:2,w:7,h:8,shift:8,offset:0},{i:164, c:"¤",x:233,y:2,w:6,h:8,shift:8,offset:1},{i:165,c:"¥",x:241,y:2,w:6,h:8,shift:8,offset:1},{i:166,c:"¦",x:249,y:2,w:2,h:8,shift:8,offset:3},{i:167,c:"§",x:2,y:12,w:6,h:8,shift:8,offset:1},{i:168,c:"¨",x:10,y:12,w:5,h:8,shift:8,offset:1},{i:169,c:"©",x:17,y:12,w:8,h:8,shift:8,offset:0},{i:170,c:"ª",x:27,y:12,w:5,h:8,shift:8,offset:1},{i:171,c:"«",x:38,y:12,w:7,h:8,shift:8,offset:0},{i:172,c:"¬",x:110,y:12,w:6,h:8,shift:8,offset:1},{i:173,x:47,y:12,w:6,h:8,shift:8,offset:1},{i:174,c:"®",x:55,y:12, w:8,h:8,shift:8,offset:0},{i:175,c:"¯",x:65,y:12,w:5,h:8,shift:8,offset:1},{i:176,c:"°",x:72,y:12,w:3,h:8,shift:8,offset:2},{i:177,c:"±",x:77,y:12,w:6,h:8,shift:8,offset:1},{i:178,c:"²",x:85,y:12,w:4,h:8,shift:8,offset:2},{i:179,c:"³",x:91,y:12,w:4,h:8,shift:8,offset:2},{i:180,c:"´",x:97,y:12,w:2,h:8,shift:8,offset:3},{i:181,c:"µ",x:101,y:12,w:7,h:8,shift:8,offset:0},{i:182,c:"¶",x:207,y:2,w:6,h:8,shift:8,offset:1},{i:183,c:"·",x:34,y:12,w:2,h:8,shift:8,offset:2},{i:184,c:"¸",x:202,y:2,w:3,h:8,shift:8, offset:2},{i:185,c:"¹",x:91,y:2,w:4,h:8,shift:8,offset:2},{i:186,c:"º",x:12,y:2,w:5,h:8,shift:8,offset:1},{i:187,c:"»",x:19,y:2,w:7,h:8,shift:8,offset:0},{i:188,c:"¼",x:28,y:2,w:7,h:8,shift:8,offset:0},{i:189,c:"½",x:37,y:2,w:7,h:8,shift:8,offset:0},{i:190,c:"¾",x:46,y:2,w:7,h:8,shift:8,offset:0},{i:191,c:"¿",x:55,y:2,w:7,h:8,shift:8,offset:0},{i:192,c:"À",x:64,y:2,w:7,h:8,shift:8,offset:0},{i:193,c:"Á",x:73,y:2,w:7,h:8,shift:8,offset:0},{i:194,c:"Â",x:82,y:2,w:7,h:8,shift:8,offset:0},{i:195,c:"Ã", x:97,y:2,w:7,h:8,shift:8,offset:0},{i:196,c:"Ä",x:185,y:2,w:7,h:8,shift:8,offset:0},{i:197,c:"Å",x:106,y:2,w:7,h:8,shift:8,offset:0},{i:198,c:"Æ",x:115,y:2,w:7,h:8,shift:8,offset:0},{i:199,c:"Ç",x:124,y:2,w:7,h:8,shift:8,offset:0},{i:200,c:"È",x:133,y:2,w:7,h:8,shift:8,offset:0},{i:201,c:"É",x:142,y:2,w:7,h:8,shift:8,offset:0},{i:202,c:"Ê",x:151,y:2,w:7,h:8,shift:8,offset:0},{i:203,c:"Ë",x:160,y:2,w:7,h:8,shift:8,offset:0},{i:204,c:"Ì",x:169,y:2,w:6,h:8,shift:8,offset:1},{i:205,c:"Í",x:177,y:2,w:6, h:8,shift:8,offset:1},{i:206,c:"Î",x:194,y:2,w:6,h:8,shift:8,offset:1},{i:207,c:"Ï",x:123,y:12,w:6,h:8,shift:8,offset:1},{i:208,c:"Ð",x:73,y:22,w:7,h:8,shift:8,offset:0},{i:209,c:"Ñ",x:131,y:12,w:7,h:8,shift:8,offset:0},{i:210,c:"Ò",x:100,y:22,w:7,h:8,shift:8,offset:0},{i:211,c:"Ó",x:109,y:22,w:7,h:8,shift:8,offset:0},{i:212,c:"Ô",x:118,y:22,w:7,h:8,shift:8,offset:0},{i:213,c:"Õ",x:127,y:22,w:7,h:8,shift:8,offset:0},{i:214,c:"Ö",x:136,y:22,w:7,h:8,shift:8,offset:0},{i:215,c:"×",x:145,y:22,w:5,h:8, shift:8,offset:1},{i:216,c:"Ø",x:152,y:22,w:7,h:8,shift:8,offset:0},{i:217,c:"Ù",x:161,y:22,w:7,h:8,shift:8,offset:0},{i:218,c:"Ú",x:170,y:22,w:7,h:8,shift:8,offset:0},{i:219,c:"Û",x:188,y:22,w:7,h:8,shift:8,offset:0},{i:220,c:"Ü",x:29,y:32,w:7,h:8,shift:8,offset:0},{i:221,c:"Ý",x:197,y:22,w:6,h:8,shift:8,offset:1},{i:222,c:"Þ",x:205,y:22,w:7,h:8,shift:8,offset:0},{i:223,c:"ß",x:214,y:22,w:6,h:8,shift:8,offset:1},{i:224,c:"à ",x:222,y:22,w:7,h:8,shift:8,offset:0},{i:225,c:"á",x:231,y:22,w:7,h:8,shift:8, offset:0},{i:226,c:"â",x:240,y:22,w:7,h:8,shift:8,offset:0},{i:227,c:"ã",x:2,y:32,w:7,h:8,shift:8,offset:0},{i:228,c:"ä",x:11,y:32,w:7,h:8,shift:8,offset:0},{i:229,c:"å",x:20,y:32,w:7,h:8,shift:8,offset:0},{i:230,c:"æ",x:91,y:22,w:7,h:8,shift:8,offset:0},{i:231,c:"ç",x:179,y:22,w:7,h:8,shift:8,offset:0},{i:232,c:"è",x:82,y:22,w:7,h:8,shift:8,offset:0},{i:233,c:"é",x:217,y:12,w:7,h:8,shift:8,offset:0},{i:234,c:"ê",x:140,y:12,w:7,h:8,shift:8,offset:0},{i:235,c:"ë",x:149,y:12,w:7,h:8,shift:8,offset:0} ,{i:236,c:"ì",x:158,y:12,w:6,h:8,shift:8,offset:1},{i:237,c:"í",x:166,y:12,w:6,h:8,shift:8,offset:1},{i:238,c:"î",x:174,y:12,w:6,h:8,shift:8,offset:1},{i:239,c:"ï",x:182,y:12,w:6,h:8,shift:8,offset:1},{i:240,c:"ð",x:190,y:12,w:7,h:8,shift:8,offset:0},{i:241,c:"ñ",x:199,y:12,w:7,h:8,shift:8,offset:0},{i:242,c:"ò",x:208,y:12,w:7,h:8,shift:8,offset:0},{i:243,c:"ó",x:226,y:12,w:7,h:8,shift:8,offset:0},{i:244,c:"ô",x:64,y:22,w:7,h:8,shift:8,offset:0},{i:245,c:"õ",x:235,y:12,w:7,h:8,shift:8,offset:0}, {i:246,c:"ö",x:244,y:12,w:7,h:8,shift:8,offset:0},{i:247,c:"÷",x:2,y:22,w:6,h:8,shift:8,offset:1},{i:248,c:"ø",x:10,y:22,w:7,h:8,shift:8,offset:0},{i:249,c:"ù",x:19,y:22,w:7,h:8,shift:8,offset:0},{i:250,c:"ú",x:28,y:22,w:7,h:8,shift:8,offset:0},{i:251,c:"û",x:37,y:22,w:7,h:8,shift:8,offset:0},{i:252,c:"ü",x:46,y:22,w:7,h:8,shift:8,offset:0},{i:253,c:"ý",x:55,y:22,w:7,h:8,shift:8,offset:0},{i:254,c:"þ",x:73,y:62,w:7,h:8,shift:8,offset:0},{i:255,c:"ÿ",x:82,y:62,w:7,h:8,shift:8,offset:0},],}],Timelines:[], Triggers:[{}],GMObjects:[{pName:"obj_rm_qb_postmatch",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_rm_qb_postmatch_Create_0,StepNormalEvent:gml_Object_obj_rm_qb_postmatch_Step_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_rm_qb_contract",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_rm_qb_contract_Create_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_facility",spriteIndex:135,visible:true,parent:-100,DrawEvent:gml_Object_obj_facility_Draw_0,DrawGUI:gml_Object_obj_facility_Draw_64, PreCreateEvent:gml_Object_obj_facility_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_rm_qb_shopping",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_rm_qb_shopping_Create_0,PreCreateEvent:gml_Object_obj_rm_qb_shopping_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_exhibition_postmatch",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_exhibition_postmatch_Create_0,PreCreateEvent:gml_Object_obj_exhibition_postmatch_PreCreate_0,TriggerEvents:[], CollisionEvents:[]},{pName:"obj_negotiate_num",spriteIndex:302,visible:true,parent:-100,CreateEvent:gml_Object_obj_negotiate_num_Create_0,StepNormalEvent:gml_Object_obj_negotiate_num_Step_0,DrawGUI:gml_Object_obj_negotiate_num_Draw_64,DrawEvent:gml_Object_obj_negotiate_num_Draw_0,PreCreateEvent:gml_Object_obj_negotiate_num_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_halloffame_rm",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_halloffame_rm_Create_0,TriggerEvents:[], CollisionEvents:[]},{pName:"obj_life",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_life_Create_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_news_dyn",spriteIndex:161,visible:true,parent:79,CreateEvent:gml_Object_obj_news_dyn_Create_0,DrawGUI:gml_Object_obj_news_dyn_Draw_64,DrawEvent:gml_Object_obj_news_dyn_Draw_0,KeyPressed_ESCAPE:gml_Object_obj_news_dyn_KeyPress_27,CleanUpEvent:gml_Object_obj_news_dyn_CleanUp_0,PreCreateEvent:gml_Object_obj_news_dyn_PreCreate_0,TriggerEvents:[], CollisionEvents:[]},{pName:"obj_meter_happiness",spriteIndex:135,visible:true,parent:23,CreateEvent:gml_Object_obj_meter_happiness_Create_0,StepNormalEvent:gml_Object_obj_meter_happiness_Step_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_college_nfl_draft",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_college_nfl_draft_Create_0,DrawGUI:gml_Object_obj_college_nfl_draft_Draw_64,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_nx",spriteIndex:-1,visible:true,persistent:true, parent:-100,CreateEvent:gml_Object_obj_nx_Create_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_btn_goforit",spriteIndex:90,visible:true,parent:34,CreateEvent:gml_Object_obj_btn_goforit_Create_0,StepNormalEvent:gml_Object_obj_btn_goforit_Step_0,DrawGUI:gml_Object_obj_btn_goforit_Draw_64,DrawEvent:gml_Object_obj_btn_goforit_Draw_0,DrawGUIEnd:gml_Object_obj_btn_goforit_Draw_75,PreCreateEvent:gml_Object_obj_btn_goforit_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_halloffame_pr_rm", spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_halloffame_pr_rm_Create_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_options_controls",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_options_controls_Create_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_meter_conditionQB",spriteIndex:135,visible:true,parent:23,CreateEvent:gml_Object_obj_meter_conditionQB_Create_0,StepNormalEvent:gml_Object_obj_meter_conditionQB_Step_0,TriggerEvents:[],CollisionEvents:[]} ,{pName:"obj_rm_exhibition",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_rm_exhibition_Create_0,DrawGUI:gml_Object_obj_rm_exhibition_Draw_64,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_meter_lifestyle",spriteIndex:135,visible:true,parent:23,CreateEvent:gml_Object_obj_meter_lifestyle_Create_0,StepNormalEvent:gml_Object_obj_meter_lifestyle_Step_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_checkbox012",spriteIndex:300,visible:true,parent:34,StepNormalEvent:gml_Object_obj_checkbox012_Step_0, DrawGUI:gml_Object_obj_checkbox012_Draw_64,DrawEvent:gml_Object_obj_checkbox012_Draw_0,PreCreateEvent:gml_Object_obj_checkbox012_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_credit_rec",spriteIndex:-1,visible:true,parent:-100,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_button_9s",spriteIndex:346,visible:true,parent:34,CreateEvent:gml_Object_obj_button_9s_Create_0,StepNormalEvent:gml_Object_obj_button_9s_Step_0,DrawEvent:gml_Object_obj_button_9s_Draw_0,DrawGUI:gml_Object_obj_button_9s_Draw_64, PreCreateEvent:gml_Object_obj_button_9s_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_box_relationship",spriteIndex:171,visible:true,parent:-100,CreateEvent:gml_Object_obj_box_relationship_Create_0,StepNormalEvent:gml_Object_obj_box_relationship_Step_0,DrawEvent:gml_Object_obj_box_relationship_Draw_0,DrawGUI:gml_Object_obj_box_relationship_Draw_64,PreCreateEvent:gml_Object_obj_box_relationship_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_roomtitle_special",spriteIndex:-1, visible:true,parent:71,StepNormalEvent:gml_Object_obj_roomtitle_special_Step_0,PreCreateEvent:gml_Object_obj_roomtitle_special_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_meter",spriteIndex:135,visible:true,parent:-100,DrawGUI:gml_Object_obj_meter_Draw_64,DrawEvent:gml_Object_obj_meter_Draw_0,PreCreateEvent:gml_Object_obj_meter_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_options2",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_options2_Create_0, TriggerEvents:[],CollisionEvents:[]},{pName:"obj_btn_pause",spriteIndex:277,visible:true,parent:-100,StepNormalEvent:gml_Object_obj_btn_pause_Step_0,DrawEvent:gml_Object_obj_btn_pause_Draw_0,DrawGUI:gml_Object_obj_btn_pause_Draw_64,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_options_exh",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_options_exh_Create_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_kb_key",spriteIndex:346,visible:true,parent:20,CreateEvent:gml_Object_obj_kb_key_Create_0, StepNormalEvent:gml_Object_obj_kb_key_Step_0,DrawGUI:gml_Object_obj_kb_key_Draw_64,GestureTapEvent:gml_Object_obj_kb_key_Gesture_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_meter_coach",spriteIndex:135,visible:true,parent:23,CreateEvent:gml_Object_obj_meter_coach_Create_0,StepNormalEvent:gml_Object_obj_meter_coach_Step_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_blank",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_blank_Create_0,DestroyEvent:gml_Object_obj_blank_Destroy_0, StepNormalEvent:gml_Object_obj_blank_Step_0,SocialEvent:gml_Object_obj_blank_Other_70,DrawEvent:gml_Object_obj_blank_Draw_0,DrawGUI:gml_Object_obj_blank_Draw_64,GestureGlobalTapEvent:gml_Object_obj_blank_Gesture_64,GestureGlobalFlickEvent:gml_Object_obj_blank_Gesture_69,GestureTapEvent:gml_Object_obj_blank_Gesture_0,PreCreateEvent:gml_Object_obj_blank_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_btn_skiptime",spriteIndex:350,visible:true,parent:34,CreateEvent:gml_Object_obj_btn_skiptime_Create_0, StepNormalEvent:gml_Object_obj_btn_skiptime_Step_0,DrawGUI:gml_Object_obj_btn_skiptime_Draw_64,DrawEvent:gml_Object_obj_btn_skiptime_Draw_0,DrawGUIEnd:gml_Object_obj_btn_skiptime_Draw_75,PreCreateEvent:gml_Object_obj_btn_skiptime_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_stats_player_rm",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_stats_player_rm_Create_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_btn_kickoff",spriteIndex:90,visible:true,parent:34, CreateEvent:gml_Object_obj_btn_kickoff_Create_0,StepNormalEvent:gml_Object_obj_btn_kickoff_Step_0,DrawGUI:gml_Object_obj_btn_kickoff_Draw_64,DrawEvent:gml_Object_obj_btn_kickoff_Draw_0,PreCreateEvent:gml_Object_obj_btn_kickoff_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_box_recruitmentcredit",spriteIndex:135,visible:true,parent:-100,CreateEvent:gml_Object_obj_box_recruitmentcredit_Create_0,StepNormalEvent:gml_Object_obj_box_recruitmentcredit_Step_0,DrawEvent:gml_Object_obj_box_recruitmentcredit_Draw_0, DrawGUI:gml_Object_obj_box_recruitmentcredit_Draw_64,PreCreateEvent:gml_Object_obj_box_recruitmentcredit_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"ui_selectable",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_ui_selectable_Create_0,ObjAlarm0:gml_Object_ui_selectable_Alarm_0,DrawGUIEnd:gml_Object_ui_selectable_Draw_75,PreCreateEvent:gml_Object_ui_selectable_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_button",spriteIndex:126,visible:true,parent:34,CreateEvent:gml_Object_obj_button_Create_0, StepNormalEvent:gml_Object_obj_button_Step_0,DrawEvent:gml_Object_obj_button_Draw_0,DrawGUI:gml_Object_obj_button_Draw_64,PreCreateEvent:gml_Object_obj_button_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_button_color",spriteIndex:131,visible:true,parent:35,CreateEvent:gml_Object_obj_button_color_Create_0,StepNormalEvent:gml_Object_obj_button_color_Step_0,DrawEvent:gml_Object_obj_button_color_Draw_0,DrawGUI:gml_Object_obj_button_color_Draw_64,PreCreateEvent:gml_Object_obj_button_color_PreCreate_0, TriggerEvents:[],CollisionEvents:[]},{pName:"obj_button_sqr",spriteIndex:129,visible:true,parent:35,DrawGUI:gml_Object_obj_button_sqr_Draw_64,PreCreateEvent:gml_Object_obj_button_sqr_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_button_thin",spriteIndex:133,visible:true,parent:35,DrawGUI:gml_Object_obj_button_thin_Draw_64,PreCreateEvent:gml_Object_obj_button_thin_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_button_small",spriteIndex:132,visible:true,parent:35,DrawGUI:gml_Object_obj_button_small_Draw_64, PreCreateEvent:gml_Object_obj_button_small_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_button_med",spriteIndex:127,visible:true,parent:34,CreateEvent:gml_Object_obj_button_med_Create_0,StepNormalEvent:gml_Object_obj_button_med_Step_0,DrawEvent:gml_Object_obj_button_med_Draw_0,DrawGUI:gml_Object_obj_button_med_Draw_64,PreCreateEvent:gml_Object_obj_button_med_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_button_med_slim",spriteIndex:196,visible:true,parent:34,CreateEvent:gml_Object_obj_button_med_slim_Create_0, StepNormalEvent:gml_Object_obj_button_med_slim_Step_0,DrawEvent:gml_Object_obj_button_med_slim_Draw_0,DrawGUI:gml_Object_obj_button_med_slim_Draw_64,PreCreateEvent:gml_Object_obj_button_med_slim_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_button_big",spriteIndex:128,visible:true,parent:35,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_appstore_btn",spriteIndex:215,visible:true,parent:-100,CreateEvent:gml_Object_obj_appstore_btn_Create_0,StepNormalEvent:gml_Object_obj_appstore_btn_Step_0, PreCreateEvent:gml_Object_obj_appstore_btn_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_reddit_btn",spriteIndex:220,visible:true,parent:-100,CreateEvent:gml_Object_obj_reddit_btn_Create_0,StepNormalEvent:gml_Object_obj_reddit_btn_Step_0,PreCreateEvent:gml_Object_obj_reddit_btn_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_btn_store",spriteIndex:129,visible:true,parent:37,CreateEvent:gml_Object_obj_btn_store_Create_0,StepNormalEvent:gml_Object_obj_btn_store_Step_0,PreCreateEvent:gml_Object_obj_btn_store_PreCreate_0, TriggerEvents:[],CollisionEvents:[]},{pName:"obj_bossprofile",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_bossprofile_Create_0,DrawGUI:gml_Object_obj_bossprofile_Draw_64,KeyPressed_Z:gml_Object_obj_bossprofile_KeyPress_90,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_link_btn",spriteIndex:129,visible:true,parent:-100,CreateEvent:gml_Object_obj_link_btn_Create_0,StepNormalEvent:gml_Object_obj_link_btn_Step_0,PreCreateEvent:gml_Object_obj_link_btn_PreCreate_0,TriggerEvents:[], CollisionEvents:[]},{pName:"obj_btn_restore",spriteIndex:126,visible:true,parent:35,CreateEvent:gml_Object_obj_btn_restore_Create_0,ObjAlarm0:gml_Object_obj_btn_restore_Alarm_0,StepNormalEvent:gml_Object_obj_btn_restore_Step_0,PreCreateEvent:gml_Object_obj_btn_restore_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_btn_buy",spriteIndex:126,visible:true,parent:35,ObjAlarm0:gml_Object_obj_btn_buy_Alarm_0,StepNormalEvent:gml_Object_obj_btn_buy_Step_0,PreCreateEvent:gml_Object_obj_btn_buy_PreCreate_0, TriggerEvents:[],CollisionEvents:[]},{pName:"obj_player_profile",spriteIndex:172,visible:true,parent:35,CreateEvent:gml_Object_obj_player_profile_Create_0,StepNormalEvent:gml_Object_obj_player_profile_Step_0,DrawEvent:gml_Object_obj_player_profile_Draw_0,DrawGUI:gml_Object_obj_player_profile_Draw_64,PreCreateEvent:gml_Object_obj_player_profile_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_player_image",spriteIndex:172,visible:true,parent:-100,CreateEvent:gml_Object_obj_player_image_Create_0, DrawEvent:gml_Object_obj_player_image_Draw_0,DrawGUI:gml_Object_obj_player_image_Draw_64,PreCreateEvent:gml_Object_obj_player_image_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_hof_btn",spriteIndex:187,visible:true,parent:37,CreateEvent:gml_Object_obj_hof_btn_Create_0,DrawGUI:gml_Object_obj_hof_btn_Draw_64,PreCreateEvent:gml_Object_obj_hof_btn_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_info",spriteIndex:174,visible:true,parent:34,StepNormalEvent:gml_Object_obj_info_Step_0, DrawGUI:gml_Object_obj_info_Draw_64,DrawEvent:gml_Object_obj_info_Draw_0,PreCreateEvent:gml_Object_obj_info_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_button_team",spriteIndex:-1,visible:true,parent:35,DrawGUIEnd:gml_Object_obj_button_team_Draw_75,PreCreateEvent:gml_Object_obj_button_team_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_meter_fans",spriteIndex:135,visible:true,parent:23,CreateEvent:gml_Object_obj_meter_fans_Create_0,StepNormalEvent:gml_Object_obj_meter_fans_Step_0, PreCreateEvent:gml_Object_obj_meter_fans_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_meter_team",spriteIndex:135,visible:true,parent:23,CreateEvent:gml_Object_obj_meter_team_Create_0,StepNormalEvent:gml_Object_obj_meter_team_Step_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_meter_condition",spriteIndex:135,visible:true,parent:23,CreateEvent:gml_Object_obj_meter_condition_Create_0,StepNormalEvent:gml_Object_obj_meter_condition_Step_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_facility_stadium", spriteIndex:135,visible:true,parent:2,CreateEvent:gml_Object_obj_facility_stadium_Create_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_facility_training",spriteIndex:135,visible:true,parent:2,CreateEvent:gml_Object_obj_facility_training_Create_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_facility_rehab",spriteIndex:135,visible:true,parent:2,CreateEvent:gml_Object_obj_facility_rehab_Create_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_schedulebox",spriteIndex:137,visible:true,parent:-100, CreateEvent:gml_Object_obj_schedulebox_Create_0,DrawEvent:gml_Object_obj_schedulebox_Draw_0,DrawGUI:gml_Object_obj_schedulebox_Draw_64,PreCreateEvent:gml_Object_obj_schedulebox_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_box_offense",spriteIndex:171,visible:true,parent:-100,CreateEvent:gml_Object_obj_box_offense_Create_0,StepNormalEvent:gml_Object_obj_box_offense_Step_0,DrawEvent:gml_Object_obj_box_offense_Draw_0,DrawGUI:gml_Object_obj_box_offense_Draw_64,PreCreateEvent:gml_Object_obj_box_offense_PreCreate_0, TriggerEvents:[],CollisionEvents:[]},{pName:"obj_ad_retrogoal",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_ad_retrogoal_Create_0,StepNormalEvent:gml_Object_obj_ad_retrogoal_Step_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_box_defense",spriteIndex:171,visible:true,parent:-100,CreateEvent:gml_Object_obj_box_defense_Create_0,DrawEvent:gml_Object_obj_box_defense_Draw_0,DrawGUI:gml_Object_obj_box_defense_Draw_64,PreCreateEvent:gml_Object_obj_box_defense_PreCreate_0,TriggerEvents:[], CollisionEvents:[]},{pName:"obj_box_coachcredit",spriteIndex:171,visible:true,parent:-100,CreateEvent:gml_Object_obj_box_coachcredit_Create_0,StepNormalEvent:gml_Object_obj_box_coachcredit_Step_0,DrawEvent:gml_Object_obj_box_coachcredit_Draw_0,DrawGUI:gml_Object_obj_box_coachcredit_Draw_64,PreCreateEvent:gml_Object_obj_box_coachcredit_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_box_morale",spriteIndex:171,visible:true,parent:-100,CreateEvent:gml_Object_obj_box_morale_Create_0,StepNormalEvent:gml_Object_obj_box_morale_Step_0, DrawEvent:gml_Object_obj_box_morale_Draw_0,DrawGUI:gml_Object_obj_box_morale_Draw_64,PreCreateEvent:gml_Object_obj_box_morale_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_vbox",spriteIndex:155,visible:true,parent:34,DrawGUI:gml_Object_obj_vbox_Draw_64,DrawEvent:gml_Object_obj_vbox_Draw_0,PreCreateEvent:gml_Object_obj_vbox_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_infobox",spriteIndex:125,visible:true,parent:-100,DrawEvent:gml_Object_obj_infobox_Draw_0,DrawGUI:gml_Object_obj_infobox_Draw_64, PreCreateEvent:gml_Object_obj_infobox_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_smallbox",spriteIndex:171,visible:true,parent:-100,DrawEvent:gml_Object_obj_smallbox_Draw_0,DrawGUI:gml_Object_obj_smallbox_Draw_64,PreCreateEvent:gml_Object_obj_smallbox_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_checkbox",spriteIndex:175,visible:true,parent:34,StepNormalEvent:gml_Object_obj_checkbox_Step_0,DrawGUI:gml_Object_obj_checkbox_Draw_64,DrawEvent:gml_Object_obj_checkbox_Draw_0, PreCreateEvent:gml_Object_obj_checkbox_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_roomtitle",spriteIndex:-1,visible:true,parent:-100,DrawEvent:gml_Object_obj_roomtitle_Draw_0,DrawGUI:gml_Object_obj_roomtitle_Draw_64,PreCreateEvent:gml_Object_obj_roomtitle_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_input_box",spriteIndex:178,visible:true,parent:34,StepNormalEvent:gml_Object_obj_input_box_Step_0,DrawGUI:gml_Object_obj_input_box_Draw_64,DrawEvent:gml_Object_obj_input_box_Draw_0, PreCreateEvent:gml_Object_obj_input_box_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_text_exp",spriteIndex:163,visible:true,parent:-100,DrawGUI:gml_Object_obj_text_exp_Draw_64,DrawEvent:gml_Object_obj_text_exp_Draw_0,PreCreateEvent:gml_Object_obj_text_exp_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_text_watermark",spriteIndex:163,visible:true,parent:-100,LeftButtonPressed:gml_Object_obj_text_watermark_Mouse_4,DrawGUI:gml_Object_obj_text_watermark_Draw_64,DrawEvent:gml_Object_obj_text_watermark_Draw_0, PreCreateEvent:gml_Object_obj_text_watermark_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_text",spriteIndex:163,visible:true,parent:-100,DrawGUI:gml_Object_obj_text_Draw_64,DrawEvent:gml_Object_obj_text_Draw_0,PreCreateEvent:gml_Object_obj_text_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_txt_credit",spriteIndex:163,visible:true,parent:75,CreateEvent:gml_Object_obj_txt_credit_Create_0,StepNormalEvent:gml_Object_obj_txt_credit_Step_0,PreCreateEvent:gml_Object_obj_txt_credit_PreCreate_0, TriggerEvents:[],CollisionEvents:[]},{pName:"obj_difficulty_watermark",spriteIndex:163,visible:true,parent:75,CreateEvent:gml_Object_obj_difficulty_watermark_Create_0,PreCreateEvent:gml_Object_obj_difficulty_watermark_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_picks",spriteIndex:163,visible:true,parent:75,CreateEvent:gml_Object_obj_picks_Create_0,DrawGUI:gml_Object_obj_picks_Draw_64,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_msgbg",spriteIndex:161,visible:true,parent:-100, CreateEvent:gml_Object_obj_msgbg_Create_0,ObjAlarm0:gml_Object_obj_msgbg_Alarm_0,DrawGUI:gml_Object_obj_msgbg_Draw_64,DrawEvent:gml_Object_obj_msgbg_Draw_0,KeyPressed_ESCAPE:gml_Object_obj_msgbg_KeyPress_27,PreCreateEvent:gml_Object_obj_msgbg_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_messagebox",spriteIndex:138,visible:true,parent:-100,DrawEvent:gml_Object_obj_messagebox_Draw_0,DrawGUI:gml_Object_obj_messagebox_Draw_64,PreCreateEvent:gml_Object_obj_messagebox_PreCreate_0,TriggerEvents:[], CollisionEvents:[]},{pName:"obj_rm_qb_negotiate",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_rm_qb_negotiate_Create_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_division",spriteIndex:134,visible:true,parent:35,StepNormalEvent:gml_Object_obj_division_Step_0,DrawEvent:gml_Object_obj_division_Draw_0,DrawGUI:gml_Object_obj_division_Draw_64,PreCreateEvent:gml_Object_obj_division_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_scoreboard",spriteIndex:197,visible:true, parent:-100,DrawEvent:gml_Object_obj_scoreboard_Draw_0,DrawGUI:gml_Object_obj_scoreboard_Draw_64,PreCreateEvent:gml_Object_obj_scoreboard_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_conference",spriteIndex:155,visible:true,parent:-100,CreateEvent:gml_Object_obj_conference_Create_0,DestroyEvent:gml_Object_obj_conference_Destroy_0,DrawGUI:gml_Object_obj_conference_Draw_64,DrawEvent:gml_Object_obj_conference_Draw_0,PreCreateEvent:gml_Object_obj_conference_PreCreate_0,TriggerEvents:[], CollisionEvents:[]},{pName:"obj_matchline",spriteIndex:100,visible:true,parent:-100,CreateEvent:gml_Object_obj_matchline_Create_0,StepNormalEvent:gml_Object_obj_matchline_Step_0,DrawEvent:gml_Object_obj_matchline_Draw_0,DrawGUI:gml_Object_obj_matchline_Draw_64,GestureGlobalFlickEvent:gml_Object_obj_matchline_Gesture_69,PreCreateEvent:gml_Object_obj_matchline_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_headshot",spriteIndex:173,visible:true,parent:34,CreateEvent:gml_Object_obj_headshot_Create_0, StepNormalEvent:gml_Object_obj_headshot_Step_0,DrawEvent:gml_Object_obj_headshot_Draw_0,DrawGUI:gml_Object_obj_headshot_Draw_64,PreCreateEvent:gml_Object_obj_headshot_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_attribute",spriteIndex:136,visible:true,parent:-100,DrawEvent:gml_Object_obj_attribute_Draw_0,DrawGUI:gml_Object_obj_attribute_Draw_64,PreCreateEvent:gml_Object_obj_attribute_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_xp_player",spriteIndex:135,visible:true, parent:-100,DrawEvent:gml_Object_obj_xp_player_Draw_0,DrawGUI:gml_Object_obj_xp_player_Draw_64,PreCreateEvent:gml_Object_obj_xp_player_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_salarycap",spriteIndex:135,visible:true,parent:-100,CreateEvent:gml_Object_obj_salarycap_Create_0,DrawEvent:gml_Object_obj_salarycap_Draw_0,DrawGUI:gml_Object_obj_salarycap_Draw_64,PreCreateEvent:gml_Object_obj_salarycap_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_notification",spriteIndex:-1, visible:true,persistent:true,parent:80,CreateEvent:gml_Object_obj_notification_Create_0,ObjAlarm0:gml_Object_obj_notification_Alarm_0,StepNormalEvent:gml_Object_obj_notification_Step_0,DrawGUI:gml_Object_obj_notification_Draw_64,PreCreateEvent:gml_Object_obj_notification_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_hof_achievements",spriteIndex:154,visible:true,parent:67,CreateEvent:gml_Object_obj_hof_achievements_Create_0,StepNormalEvent:gml_Object_obj_hof_achievements_Step_0,DrawGUI:gml_Object_obj_hof_achievements_Draw_64, GestureGlobalFlickEvent:gml_Object_obj_hof_achievements_Gesture_69,PreCreateEvent:gml_Object_obj_hof_achievements_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_hof_retrobowl_wins",spriteIndex:154,visible:true,parent:67,CreateEvent:gml_Object_obj_hof_retrobowl_wins_Create_0,DestroyEvent:gml_Object_obj_hof_retrobowl_wins_Destroy_0,DrawGUI:gml_Object_obj_hof_retrobowl_wins_Draw_64,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_hof_retrobowl_history",spriteIndex:154,visible:true,parent:67, CreateEvent:gml_Object_obj_hof_retrobowl_history_Create_0,DestroyEvent:gml_Object_obj_hof_retrobowl_history_Destroy_0,StepNormalEvent:gml_Object_obj_hof_retrobowl_history_Step_0,DrawGUI:gml_Object_obj_hof_retrobowl_history_Draw_64,GestureGlobalFlickEvent:gml_Object_obj_hof_retrobowl_history_Gesture_69,PreCreateEvent:gml_Object_obj_hof_retrobowl_history_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_hof_history",spriteIndex:154,visible:true,parent:67,CreateEvent:gml_Object_obj_hof_history_Create_0, StepNormalEvent:gml_Object_obj_hof_history_Step_0,DrawGUI:gml_Object_obj_hof_history_Draw_64,GestureGlobalFlickEvent:gml_Object_obj_hof_history_Gesture_69,PreCreateEvent:gml_Object_obj_hof_history_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_hof_records_coach",spriteIndex:154,visible:true,parent:67,CreateEvent:gml_Object_obj_hof_records_coach_Create_0,StepNormalEvent:gml_Object_obj_hof_records_coach_Step_0,DrawGUI:gml_Object_obj_hof_records_coach_Draw_64,GestureGlobalFlickEvent:gml_Object_obj_hof_records_coach_Gesture_69, PreCreateEvent:gml_Object_obj_hof_records_coach_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_hof_records_player",spriteIndex:154,visible:true,parent:67,CreateEvent:gml_Object_obj_hof_records_player_Create_0,StepNormalEvent:gml_Object_obj_hof_records_player_Step_0,DrawGUI:gml_Object_obj_hof_records_player_Draw_64,GestureGlobalFlickEvent:gml_Object_obj_hof_records_player_Gesture_69,PreCreateEvent:gml_Object_obj_hof_records_player_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_credits", spriteIndex:-1,visible:true,parent:73,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_master",spriteIndex:-1,persistent:true,parent:-100,CreateEvent:gml_Object_obj_master_Create_0,ObjAlarm0:gml_Object_obj_master_Alarm_0,ObjAlarm1:gml_Object_obj_master_Alarm_1,ObjAlarm2:gml_Object_obj_master_Alarm_2,StepNormalEvent:gml_Object_obj_master_Step_0,SystemEvent:gml_Object_obj_master_Other_75,StartRoomEvent:gml_Object_obj_master_Other_4,KeyPressed_C:gml_Object_obj_master_KeyPress_67,KeyPressed_S:gml_Object_obj_master_KeyPress_83, KeyPressed_0:gml_Object_obj_master_KeyPress_48,KeyPressed_B:gml_Object_obj_master_KeyPress_66,KeyPressed_N:gml_Object_obj_master_KeyPress_78,KeyPressed_D:gml_Object_obj_master_KeyPress_68,KeyPressed_R:gml_Object_obj_master_KeyPress_82,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_camera",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_camera_Create_0,ObjAlarm0:gml_Object_obj_camera_Alarm_0,StepEndEvent:gml_Object_obj_camera_Step_2,StartRoomEvent:gml_Object_obj_camera_Other_4, EndRoomEvent:gml_Object_obj_camera_Other_5,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_scanlines",spriteIndex:-1,visible:true,persistent:true,parent:-100,CreateEvent:gml_Object_obj_scanlines_Create_0,DrawGUIEnd:gml_Object_obj_scanlines_Draw_75,PreCreateEvent:gml_Object_obj_scanlines_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_intercept_point",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_intercept_point_Create_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_credit", spriteIndex:105,visible:true,parent:-100,CreateEvent:gml_Object_obj_credit_Create_0,DestroyEvent:gml_Object_obj_credit_Destroy_0,StepNormalEvent:gml_Object_obj_credit_Step_0,DrawEvent:gml_Object_obj_credit_Draw_0,DrawGUIEnd:gml_Object_obj_credit_Draw_75,PreCreateEvent:gml_Object_obj_credit_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_kongregate",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_kongregate_Create_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_store_async", spriteIndex:-1,visible:true,persistent:true,parent:-100,CreateEvent:gml_Object_obj_store_async_Create_0,WebIAPEvent:gml_Object_obj_store_async_Other_66,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_controller",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_controller_Create_0,ObjAlarm0:gml_Object_obj_controller_Alarm_0,ObjAlarm1:gml_Object_obj_controller_Alarm_1,StepNormalEvent:gml_Object_obj_controller_Step_0,DrawGUI:gml_Object_obj_controller_Draw_64,DrawEventBegin:gml_Object_obj_controller_Draw_72, DrawEvent:gml_Object_obj_controller_Draw_0,KeyPressed_ENTER:gml_Object_obj_controller_KeyPress_13,KeyPressed_F:gml_Object_obj_controller_KeyPress_70,KeyPressed_P:gml_Object_obj_controller_KeyPress_80,KeyPressed_SPACE:gml_Object_obj_controller_KeyPress_32,KeyPressed_T:gml_Object_obj_controller_KeyPress_84,KeyPressed_K:gml_Object_obj_controller_KeyPress_75,GestureGlobalFlickEvent:gml_Object_obj_controller_Gesture_69,GestureGlobalTapEvent:gml_Object_obj_controller_Gesture_64,GestureGlobalDragMoveEvent:gml_Object_obj_controller_Gesture_67, GestureGlobalDragStartEvent:gml_Object_obj_controller_Gesture_66,GestureGlobalDragEndEvent:gml_Object_obj_controller_Gesture_68,GestureGlobalDoubleTapEvent:gml_Object_obj_controller_Gesture_65,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_matchob",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_matchob_Create_0,CleanUpEvent:gml_Object_obj_matchob_CleanUp_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_player",spriteIndex:-1,visible:true,parent:106,CreateEvent:gml_Object_obj_player_Create_0, DestroyEvent:gml_Object_obj_player_Destroy_0,StepNormalEvent:gml_Object_obj_player_Step_0,StepEndEvent:gml_Object_obj_player_Step_2,AnimationEndEvent:gml_Object_obj_player_Other_7,DrawEvent:gml_Object_obj_player_Draw_0,DrawEventBegin:gml_Object_obj_player_Draw_72,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_playerOF",spriteIndex:45,visible:true,parent:107,CreateEvent:gml_Object_obj_playerOF_Create_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_playerDF",spriteIndex:45,visible:true,parent:107, CreateEvent:gml_Object_obj_playerDF_Create_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_dummy",spriteIndex:18,visible:true,parent:-100,StepNormalEvent:gml_Object_obj_dummy_Step_0,DrawEvent:gml_Object_obj_dummy_Draw_0,DrawEventBegin:gml_Object_obj_dummy_Draw_72,PreCreateEvent:gml_Object_obj_dummy_PreCreate_0,TriggerEvents:[],CollisionEvents:[107,gml_Object_obj_dummy_Collision_obj_player]},{pName:"obj_ball",spriteIndex:3,visible:true,parent:106,CreateEvent:gml_Object_obj_ball_Create_0,ObjAlarm0:gml_Object_obj_ball_Alarm_0, ObjAlarm1:gml_Object_obj_ball_Alarm_1,StepNormalEvent:gml_Object_obj_ball_Step_0,StepEndEvent:gml_Object_obj_ball_Step_2,DrawEvent:gml_Object_obj_ball_Draw_0,DrawGUI:gml_Object_obj_ball_Draw_64,TriggerEvents:[],CollisionEvents:[110,gml_Object_obj_ball_Collision_obj_dummy]},{pName:"obj_metaball",spriteIndex:-1,visible:true,parent:111,CreateEvent:gml_Object_obj_metaball_Create_0,StepNormalEvent:gml_Object_obj_metaball_Step_0,DrawEvent:gml_Object_obj_metaball_Draw_0,DrawEventEnd:gml_Object_obj_metaball_Draw_73, TriggerEvents:[],CollisionEvents:[]},{pName:"obj_match_msg",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_match_msg_Create_0,ObjAlarm0:gml_Object_obj_match_msg_Alarm_0,DrawGUI:gml_Object_obj_match_msg_Draw_64,PreCreateEvent:gml_Object_obj_match_msg_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_fieldtxt",spriteIndex:-1,visible:true,parent:-100,StepNormalEvent:gml_Object_obj_fieldtxt_Step_0,DrawEvent:gml_Object_obj_fieldtxt_Draw_0,PreCreateEvent:gml_Object_obj_fieldtxt_PreCreate_0, TriggerEvents:[],CollisionEvents:[]},{pName:"obj_goal_stand",spriteIndex:20,visible:true,parent:-100,CreateEvent:gml_Object_obj_goal_stand_Create_0,StepNormalEvent:gml_Object_obj_goal_stand_Step_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_goal_post",spriteIndex:23,visible:true,parent:-100,CreateEvent:gml_Object_obj_goal_post_Create_0,StepNormalEvent:gml_Object_obj_goal_post_Step_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_boundary",spriteIndex:19,visible:true,parent:-100,StepNormalEvent:gml_Object_obj_boundary_Step_0, DrawEvent:gml_Object_obj_boundary_Draw_0,PreCreateEvent:gml_Object_obj_boundary_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_weather",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_weather_Create_0,StepNormalEvent:gml_Object_obj_weather_Step_0,DrawGUI:gml_Object_obj_weather_Draw_64,PreCreateEvent:gml_Object_obj_weather_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_raindrop",spriteIndex:25,visible:true,parent:-100,CreateEvent:gml_Object_obj_raindrop_Create_0, StepNormalEvent:gml_Object_obj_raindrop_Step_0,DrawEvent:gml_Object_obj_raindrop_Draw_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_season_tally",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_season_tally_Create_0,StepNormalEvent:gml_Object_obj_season_tally_Step_0,DrawGUI:gml_Object_obj_season_tally_Draw_64,DrawGUIBegin:gml_Object_obj_season_tally_Draw_74,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_snowflake",spriteIndex:28,visible:true,parent:-100,CreateEvent:gml_Object_obj_snowflake_Create_0, StepNormalEvent:gml_Object_obj_snowflake_Step_0,DrawEventEnd:gml_Object_obj_snowflake_Draw_73,DrawEvent:gml_Object_obj_snowflake_Draw_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_btn_audible",spriteIndex:89,visible:true,parent:34,CreateEvent:gml_Object_obj_btn_audible_Create_0,StepNormalEvent:gml_Object_obj_btn_audible_Step_0,DrawGUI:gml_Object_obj_btn_audible_Draw_64,DrawEvent:gml_Object_obj_btn_audible_Draw_0,DrawGUIEnd:gml_Object_obj_btn_audible_Draw_75,PreCreateEvent:gml_Object_obj_btn_audible_PreCreate_0, TriggerEvents:[],CollisionEvents:[]},{pName:"obj_btn_timeout",spriteIndex:97,visible:true,parent:34,CreateEvent:gml_Object_obj_btn_timeout_Create_0,StepNormalEvent:gml_Object_obj_btn_timeout_Step_0,DrawGUI:gml_Object_obj_btn_timeout_Draw_64,DrawEvent:gml_Object_obj_btn_timeout_Draw_0,PreCreateEvent:gml_Object_obj_btn_timeout_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_btn_fieldgoal",spriteIndex:90,visible:true,parent:34,CreateEvent:gml_Object_obj_btn_fieldgoal_Create_0,StepNormalEvent:gml_Object_obj_btn_fieldgoal_Step_0, DrawGUI:gml_Object_obj_btn_fieldgoal_Draw_64,DrawEvent:gml_Object_obj_btn_fieldgoal_Draw_0,DrawGUIEnd:gml_Object_obj_btn_fieldgoal_Draw_75,PreCreateEvent:gml_Object_obj_btn_fieldgoal_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_splash",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_splash_Create_0,PreCreateEvent:gml_Object_obj_splash_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_details",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_details_Create_0, PreCreateEvent:gml_Object_obj_details_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_choose_team",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_choose_team_Create_0,StartRoomEvent:gml_Object_obj_choose_team_Other_4,PreCreateEvent:gml_Object_obj_choose_team_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_choose_face",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_choose_face_Create_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_team_editor", spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_team_editor_Create_0,PreCreateEvent:gml_Object_obj_team_editor_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_edit_team",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_edit_team_Create_0,StepNormalEvent:gml_Object_obj_edit_team_Step_0,PreCreateEvent:gml_Object_obj_edit_team_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_colbox",spriteIndex:178,visible:true,parent:-100,DrawGUI:gml_Object_obj_colbox_Draw_64, DrawEvent:gml_Object_obj_colbox_Draw_0,PreCreateEvent:gml_Object_obj_colbox_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_colpicker",spriteIndex:358,visible:true,parent:-100,CreateEvent:gml_Object_obj_colpicker_Create_0,StepNormalEvent:gml_Object_obj_colpicker_Step_0,DrawGUI:gml_Object_obj_colpicker_Draw_64,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_uniform",spriteIndex:185,visible:true,parent:-100,CreateEvent:gml_Object_obj_uniform_Create_0,DrawGUI:gml_Object_obj_uniform_Draw_64, DrawEvent:gml_Object_obj_uniform_Draw_0,PreCreateEvent:gml_Object_obj_uniform_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_frontoffice",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_frontoffice_Create_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_freeagents2",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_freeagents2_Create_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_viewhires",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_viewhires_Create_0, TriggerEvents:[],CollisionEvents:[]},{pName:"obj_home",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_home_Create_0,ObjAlarm0:gml_Object_obj_home_Alarm_0,StepNormalEvent:gml_Object_obj_home_Step_0,DrawEvent:gml_Object_obj_home_Draw_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_options",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_options_Create_0,ObjAlarm0:gml_Object_obj_options_Alarm_0,StepNormalEvent:gml_Object_obj_options_Step_0,TriggerEvents:[], CollisionEvents:[]},{pName:"obj_hof_players",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_hof_players_Create_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_watermark",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_watermark_Create_0,StepNormalEvent:gml_Object_obj_watermark_Step_0,DrawGUI:gml_Object_obj_watermark_Draw_64,DrawGUIBegin:gml_Object_obj_watermark_Draw_74,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_league",spriteIndex:-1,visible:true,parent:-100, CreateEvent:gml_Object_obj_league_Create_0,PreCreateEvent:gml_Object_obj_league_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_playoffs",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_playoffs_Create_0,PreCreateEvent:gml_Object_obj_playoffs_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_playoffs2",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_playoffs2_Create_0,PreCreateEvent:gml_Object_obj_playoffs2_PreCreate_0,TriggerEvents:[], CollisionEvents:[]},{pName:"obj_prematch",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_prematch_Create_0,DrawGUI:gml_Object_obj_prematch_Draw_64,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_helmet",spriteIndex:99,visible:true,parent:-100,CreateEvent:gml_Object_obj_helmet_Create_0,DrawEvent:gml_Object_obj_helmet_Draw_0,DrawGUI:gml_Object_obj_helmet_Draw_64,PreCreateEvent:gml_Object_obj_helmet_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_postmatch",spriteIndex:-1, visible:true,parent:-100,CreateEvent:gml_Object_obj_postmatch_Create_0,StepNormalEvent:gml_Object_obj_postmatch_Step_0,PreCreateEvent:gml_Object_obj_postmatch_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_xp_update",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_xp_update_Create_0,DestroyEvent:gml_Object_obj_xp_update_Destroy_0,StepNormalEvent:gml_Object_obj_xp_update_Step_0,DrawEvent:gml_Object_obj_xp_update_Draw_0,DrawGUI:gml_Object_obj_xp_update_Draw_64,PreCreateEvent:gml_Object_obj_xp_update_PreCreate_0, TriggerEvents:[],CollisionEvents:[]},{pName:"obj_playerprofile_rm",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_playerprofile_rm_Create_0,StepNormalEvent:gml_Object_obj_playerprofile_rm_Step_0,DrawGUI:gml_Object_obj_playerprofile_rm_Draw_64,KeyPressed_X:gml_Object_obj_playerprofile_rm_KeyPress_88,KeyPressed_I:gml_Object_obj_playerprofile_rm_KeyPress_73,KeyPressed_M:gml_Object_obj_playerprofile_rm_KeyPress_77,KeyPressed_D:gml_Object_obj_playerprofile_rm_KeyPress_68,KeyPressed_O:gml_Object_obj_playerprofile_rm_KeyPress_79, KeyPressed_R:gml_Object_obj_playerprofile_rm_KeyPress_82,KeyPressed_Z:gml_Object_obj_playerprofile_rm_KeyPress_90,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_stats_player",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_stats_player_Create_0,DestroyEvent:gml_Object_obj_stats_player_Destroy_0,DrawEvent:gml_Object_obj_stats_player_Draw_0,DrawGUI:gml_Object_obj_stats_player_Draw_64,PreCreateEvent:gml_Object_obj_stats_player_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_tag_kr", spriteIndex:378,visible:true,parent:37,DrawGUI:gml_Object_obj_tag_kr_Draw_64,PreCreateEvent:gml_Object_obj_tag_kr_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_meeting_player",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_meeting_player_Create_0,PreCreateEvent:gml_Object_obj_meeting_player_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_staffprofile",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_staffprofile_Create_0,StepNormalEvent:gml_Object_obj_staffprofile_Step_0, DrawGUI:gml_Object_obj_staffprofile_Draw_64,KeyPressed_X:gml_Object_obj_staffprofile_KeyPress_88,KeyPressed_Z:gml_Object_obj_staffprofile_KeyPress_90,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_roster",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_roster_Create_0,PreCreateEvent:gml_Object_obj_roster_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_winners",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_winners_Create_0,ObjAlarm0:gml_Object_obj_winners_Alarm_0, DrawEvent:gml_Object_obj_winners_Draw_0,PreCreateEvent:gml_Object_obj_winners_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_draft",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_draft_Create_0,PreCreateEvent:gml_Object_obj_draft_PreCreate_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_freeagents",spriteIndex:-1,visible:true,parent:-100,CreateEvent:gml_Object_obj_freeagents_Create_0,PreCreateEvent:gml_Object_obj_freeagents_PreCreate_0,TriggerEvents:[],CollisionEvents:[]} ,{pName:"obj_meter_starrating",spriteIndex:135,visible:true,parent:23,CreateEvent:gml_Object_obj_meter_starrating_Create_0,StepNormalEvent:gml_Object_obj_meter_starrating_Step_0,TriggerEvents:[],CollisionEvents:[]},{pName:"obj_training",spriteIndex:-1,visible:true,parent:-100,TriggerEvents:[],CollisionEvents:[]}],AnimCurves:[],Sequences:[],FiltersAndEffectDefs:[],PSEmitters:[],ParticleSystems:[],GMRooms:[{pName:"rm_master",width:480,height:270,speed:0,colour:0,LayerCount:4,showColour:false,viewClearScreen:false, pCode:gml_Room_rm_master_Create,backgrounds:[],views:[{wview:960,wport:940},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:0,y:0,index:98,id:100002,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{ x:16,y:0,index:100,id:100004,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:208,y:8,index:22,id:100003,pCode:gml_RoomCC_rm_master_2_Create,pPreCreateCode:gml_RoomCC_rm_master_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:304,y:52,index:35,id:100006,pPreCreateCode:gml_RoomCC_rm_master_3_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:71,y:41,index:67,id:100005,pPreCreateCode:gml_RoomCC_rm_master_4_PreCreate, rotation:0,scaleX:2.1000001430511475,scaleY:1.671875,imageSpeed:1,imageIndex:0,colour:4294967295},{x:304,y:92,index:35,id:100007,pPreCreateCode:gml_RoomCC_rm_master_5_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:304,y:132,index:35,id:100008,pPreCreateCode:gml_RoomCC_rm_master_6_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:128,y:52,index:67,id:100012,pPreCreateCode:gml_RoomCC_rm_master_7_PreCreate,rotation:0,scaleX:1, scaleY:0.25,imageSpeed:1,imageIndex:0,colour:4294967295},{x:80,y:52,index:37,id:100009,pPreCreateCode:gml_RoomCC_rm_master_8_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:80,y:91,index:37,id:100010,pPreCreateCode:gml_RoomCC_rm_master_9_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:80,y:132,index:37,id:100011,pPreCreateCode:gml_RoomCC_rm_master_10_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295} ,{x:128,y:91,index:67,id:100013,pPreCreateCode:gml_RoomCC_rm_master_11_PreCreate,rotation:0,scaleX:1,scaleY:0.25,imageSpeed:1,imageIndex:0,colour:4294967295},{x:127,y:132,index:67,id:100014,pPreCreateCode:gml_RoomCC_rm_master_12_PreCreate,rotation:0,scaleX:1,scaleY:0.25,imageSpeed:1,imageIndex:0,colour:4294967295},{x:80,y:171,index:37,id:100016,pPreCreateCode:gml_RoomCC_rm_master_13_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:128,y:171,index:67,id:100017, pPreCreateCode:gml_RoomCC_rm_master_14_PreCreate,rotation:0,scaleX:1,scaleY:0.25,imageSpeed:1,imageIndex:0,colour:4294967295},{x:304,y:171,index:35,id:100018,pPreCreateCode:gml_RoomCC_rm_master_15_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:80,y:211,index:37,id:100019,pPreCreateCode:gml_RoomCC_rm_master_16_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:128,y:211,index:67,id:100020,pPreCreateCode:gml_RoomCC_rm_master_17_PreCreate, rotation:0,scaleX:1,scaleY:0.25,imageSpeed:1,imageIndex:0,colour:4294967295},{x:304,y:211,index:35,id:100021,pPreCreateCode:gml_RoomCC_rm_master_18_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:0,index:125,id:100015,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:424,y:124,index:20,id:100001,pCode:gml_RoomCC_rm_master_20_Create,pPreCreateCode:gml_RoomCC_rm_master_20_PreCreate,rotation:0,scaleX:2.696969747543335,scaleY:1.470588207244873, imageSpeed:1,imageIndex:0,colour:4294967295},{x:416,y:116,index:67,id:100000,pCode:gml_RoomCC_rm_master_21_Create,pPreCreateCode:gml_RoomCC_rm_master_21_PreCreate,rotation:0,scaleX:0.6499999761581421,scaleY:0.5,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:0,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Exhibition",id:1,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1, effectType:"",effectProperties:[],icount:2,iinstIDs:[100000,100001]},{pName:"Instances",id:2,type:2,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:20,iinstIDs:[100002,100003,100004,100005,100006,100007,100008,100009,100010,100011,100012,100013,100014,100015,100016,100017,100018,100019,100020,100021]},{pName:"Background",id:3,type:1,depth:300,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true, bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-16777216,bimage_index:0,bimage_speed:15}]},{pName:"rm_title",width:480,height:270,speed:0,colour:0,LayerCount:2,showColour:false,viewClearScreen:false,backgrounds:[],views:[{wview:1366,hview:768,wport:1366,hport:768},{wview:1366,hview:768,wport:1366,hport:768},{wview:1366,hview:768,wport:1366,hport:768},{wview:1366,hview:768,wport:1366,hport:768},{wview:1366,hview:768,wport:1366,hport:768},{wview:1366,hview:768,wport:1366, hport:768},{wview:1366,hview:768,wport:1366,hport:768},{wview:1366,hview:768,wport:1366,hport:768}],pInstances:[{x:0,y:0,index:29,id:100022,pPreCreateCode:gml_RoomCC_rm_title_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"Instances",id:4,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:1,iinstIDs:[100022]},{pName:"Background",id:5,type:1,depth:100,x:0,y:0,hspeed:0,vspeed:0, visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-16777216,bimage_index:0,bimage_speed:15}]},{pName:"rm_details",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_details_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024, hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:224,y:8,index:71,id:100023,pPreCreateCode:gml_RoomCC_rm_details_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:104,y:48,index:67,id:100024,pPreCreateCode:gml_RoomCC_rm_details_1_PreCreate,rotation:0,scaleX:1.7000000476837158, scaleY:0.5625,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:232,index:35,id:100027,pPreCreateCode:gml_RoomCC_rm_details_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:104,y:136,index:67,id:100029,pPreCreateCode:gml_RoomCC_rm_details_3_PreCreate,rotation:0,scaleX:1.7000000476837158,scaleY:0.625,imageSpeed:1,imageIndex:0,colour:4294967295},{x:272,y:152,index:35,id:100030,pPreCreateCode:gml_RoomCC_rm_details_4_PreCreate,rotation:0,scaleX:1,scaleY:1, imageSpeed:1,imageIndex:0,colour:4294967295},{x:208,y:64,index:72,id:100025,pPreCreateCode:gml_RoomCC_rm_details_5_PreCreate,rotation:0,scaleX:9.5,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:208,y:88,index:72,id:100026,pPreCreateCode:gml_RoomCC_rm_details_6_PreCreate,rotation:0,scaleX:9.5,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:192,y:72,index:73,id:100032,pPreCreateCode:gml_RoomCC_rm_details_7_PreCreate,rotation:0,scaleX:4,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295} ,{x:192,y:96,index:73,id:100033,pPreCreateCode:gml_RoomCC_rm_details_8_PreCreate,rotation:0,scaleX:4,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:120,y:152,index:67,id:100028,pPreCreateCode:gml_RoomCC_rm_details_9_PreCreate,rotation:0,scaleX:0.9000000953674316,scaleY:0.25,imageSpeed:1,imageIndex:0,colour:4294967295},{x:192,y:168,index:75,id:100034,pPreCreateCode:gml_RoomCC_rm_details_10_PreCreate,rotation:0,scaleX:2.6666665077209473,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295} ,{x:384,y:48,index:67,id:100035,pPreCreateCode:gml_RoomCC_rm_details_11_PreCreate,rotation:0,scaleX:0.5,scaleY:0.5625,imageSpeed:1,imageIndex:0,colour:4294967295},{x:320,y:192,index:70,id:100037,pCode:gml_RoomCC_rm_details_12_Create,pPreCreateCode:gml_RoomCC_rm_details_12_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:200,index:73,id:100038,pPreCreateCode:gml_RoomCC_rm_details_13_PreCreate,rotation:0,scaleX:5.666666507720947,scaleY:1,imageSpeed:1,imageIndex:0, colour:4294967295},{x:200,y:232,index:20,id:100039,pPreCreateCode:gml_RoomCC_rm_details_14_PreCreate,rotation:0,scaleX:2.696969747543335,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:20,id:100040,pPreCreateCode:gml_RoomCC_rm_details_15_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:392,y:64,index:86,id:100036,pPreCreateCode:gml_RoomCC_rm_details_16_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}, {x:0,y:0,index:126,id:100031,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:6,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:7,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:18,iinstIDs:[100023,100024,100025,100026,100027,100028,100029,100030,100031,100032,100033,100034,100035, 100036,100037,100038,100039,100040]},{pName:"Background",id:8,type:1,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_choose_team",width:480,height:270,speed:0,colour:0,LayerCount:5,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_choose_team_Create,backgrounds:[],views:[{visible:true, wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:232,y:8,index:71,id:100041,pPreCreateCode:gml_RoomCC_rm_choose_team_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0, colour:4294967295},{x:384,y:232,index:35,id:100044,pPreCreateCode:gml_RoomCC_rm_choose_team_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:128,y:32,index:35,id:100043,pPreCreateCode:gml_RoomCC_rm_choose_team_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:32,index:35,id:100042,pPreCreateCode:gml_RoomCC_rm_choose_team_3_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:0, index:127,id:100045,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:6,index:67,id:100046,rotation:0,scaleX:0.4000000059604645,scaleY:0.15000000596046448,imageSpeed:1,imageIndex:0,colour:4294967295},{x:370,y:32,index:35,id:100047,pPreCreateCode:gml_RoomCC_rm_choose_team_6_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:7,y:231,index:35,id:100048,pPreCreateCode:gml_RoomCC_rm_choose_team_7_PreCreate,rotation:0,scaleX:1,scaleY:1, imageSpeed:1,imageIndex:0,colour:4294967295},{x:101,y:231,index:35,id:100049,pPreCreateCode:gml_RoomCC_rm_choose_team_8_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:195,y:231,index:35,id:100050,pPreCreateCode:gml_RoomCC_rm_choose_team_9_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:289,y:231,index:35,id:100051,pPreCreateCode:gml_RoomCC_rm_choose_team_10_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0, colour:4294967295},{x:383,y:231,index:35,id:100052,pPreCreateCode:gml_RoomCC_rm_choose_team_11_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:9,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:10,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:5,iinstIDs:[100041,100042, 100043,100044,100045]},{pName:"Assets_1",id:11,type:3,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],acount:0,assets:[],scount:0,sprites:[],ecount:0,sequences:[],pcount:0,particles:[],},{pName:"Instances_Exhibition",id:12,type:2,depth:300,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:7,iinstIDs:[100046,100047,100048,100049,100050,100051,100052]},{pName:"Background",id:13,type:1,depth:400,x:0,y:0,hspeed:0, vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_choose_face",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_choose_face_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024, hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:232,y:8,index:71,id:100053,pPreCreateCode:gml_RoomCC_rm_choose_face_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:448,y:20,index:37,id:100055,pPreCreateCode:gml_RoomCC_rm_choose_face_1_PreCreate, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:20,index:37,id:100056,pPreCreateCode:gml_RoomCC_rm_choose_face_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:36,index:75,id:100057,pPreCreateCode:gml_RoomCC_rm_choose_face_3_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:240,index:20,id:100058,pPreCreateCode:gml_RoomCC_rm_choose_face_4_PreCreate,rotation:0,scaleX:0.7575757503509521, scaleY:0.7647058963775635,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:0,index:128,id:100054,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:14,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:15,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:6,iinstIDs:[100053,100054,100055, 100056,100057,100058]},{pName:"Background",id:16,type:1,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_draft",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_draft_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480, hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:224,y:8,index:71,id:100059,pPreCreateCode:gml_RoomCC_rm_draft_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:440,y:232,index:37, id:100067,pPreCreateCode:gml_RoomCC_rm_draft_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:48,y:232,index:89,id:100060,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:396,y:236,index:75,id:100061,pPreCreateCode:gml_RoomCC_rm_draft_3_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:112,index:37,id:100062,pPreCreateCode:gml_RoomCC_rm_draft_4_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1, imageIndex:0,colour:4294967295},{x:448,y:112,index:37,id:100063,pPreCreateCode:gml_RoomCC_rm_draft_5_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:35,index:75,id:100064,pPreCreateCode:gml_RoomCC_rm_draft_6_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:-16,index:155,id:100065,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:264,y:232,index:35,id:100066,pPreCreateCode:gml_RoomCC_rm_draft_8_PreCreate, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:456,y:8,index:53,id:100068,pPreCreateCode:gml_RoomCC_rm_draft_9_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:256,y:-240,index:73,id:100069,pPreCreateCode:gml_RoomCC_rm_draft_10_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:16,index:76,id:100070,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:396,y:253,index:78, id:100071,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:17,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:18,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:13,iinstIDs:[100059,100060,100061,100062,100063,100064,100065,100066,100067,100068,100069,100070,100071]},{pName:"Background", id:19,type:1,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_edit_team",width:480,height:270,speed:0,colour:0,LayerCount:5,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_edit_team_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768, wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:232,y:8,index:71,id:100089,pPreCreateCode:gml_RoomCC_rm_edit_team_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:232,index:35,id:100091,pPreCreateCode:gml_RoomCC_rm_edit_team_1_PreCreate, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:232,index:35,id:100092,pPreCreateCode:gml_RoomCC_rm_edit_team_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:35,id:100093,pPreCreateCode:gml_RoomCC_rm_edit_team_3_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:40,index:67,id:100095,pPreCreateCode:gml_RoomCC_rm_edit_team_4_PreCreate,rotation:0,scaleX:1.149999976158142, scaleY:0.6875,imageSpeed:1,imageIndex:0,colour:4294967295},{x:18,y:152,index:72,id:100096,pPreCreateCode:gml_RoomCC_rm_edit_team_5_PreCreate,rotation:0,scaleX:3.25,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:130,y:152,index:72,id:100097,pPreCreateCode:gml_RoomCC_rm_edit_team_6_PreCreate,rotation:0,scaleX:3.25,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:186,y:152,index:72,id:100098,pPreCreateCode:gml_RoomCC_rm_edit_team_7_PreCreate,rotation:0,scaleX:3.25,scaleY:1,imageSpeed:1, imageIndex:0,colour:4294967295},{x:74,y:152,index:72,id:100099,pPreCreateCode:gml_RoomCC_rm_edit_team_8_PreCreate,rotation:0,scaleX:3.25,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:136,index:67,id:100090,pPreCreateCode:gml_RoomCC_rm_edit_team_9_PreCreate,rotation:0,scaleX:2.9000000953674316,scaleY:0.6875,imageSpeed:1,imageIndex:0,colour:4294967295},{x:242,y:152,index:72,id:100100,pPreCreateCode:gml_RoomCC_rm_edit_team_10_PreCreate,rotation:0,scaleX:3.25,scaleY:1,imageSpeed:1,imageIndex:0, colour:4294967295},{x:298,y:152,index:72,id:100101,pPreCreateCode:gml_RoomCC_rm_edit_team_11_PreCreate,rotation:0,scaleX:3.25,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:354,y:152,index:72,id:100102,pPreCreateCode:gml_RoomCC_rm_edit_team_12_PreCreate,rotation:0,scaleX:3.25,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:410,y:152,index:72,id:100103,pPreCreateCode:gml_RoomCC_rm_edit_team_13_PreCreate,rotation:0,scaleX:3.25,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295} ,{x:16,y:176,index:36,id:100104,pPreCreateCode:gml_RoomCC_rm_edit_team_14_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:72,y:176,index:36,id:100105,pPreCreateCode:gml_RoomCC_rm_edit_team_15_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:128,y:176,index:36,id:100106,pPreCreateCode:gml_RoomCC_rm_edit_team_16_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:184,y:176,index:36,id:100107, pPreCreateCode:gml_RoomCC_rm_edit_team_17_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:176,index:36,id:100108,pPreCreateCode:gml_RoomCC_rm_edit_team_18_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:296,y:176,index:36,id:100109,pPreCreateCode:gml_RoomCC_rm_edit_team_19_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:352,y:176,index:36,id:100110,pPreCreateCode:gml_RoomCC_rm_edit_team_20_PreCreate, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:408,y:176,index:36,id:100111,pPreCreateCode:gml_RoomCC_rm_edit_team_21_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:294,y:88,index:39,id:100112,pPreCreateCode:gml_RoomCC_rm_edit_team_22_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:338,y:88,index:39,id:100113,pPreCreateCode:gml_RoomCC_rm_edit_team_23_PreCreate,rotation:0,scaleX:1,scaleY:1, imageSpeed:1,imageIndex:0,colour:4294967295},{x:382,y:88,index:39,id:100114,pPreCreateCode:gml_RoomCC_rm_edit_team_24_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:314,y:65,index:133,id:100115,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:358,y:65,index:133,id:100116,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:40,index:67,id:100081,pPreCreateCode:gml_RoomCC_rm_edit_team_27_PreCreate,rotation:0, scaleX:1.7000000476837158,scaleY:0.6875,imageSpeed:1,imageIndex:0,colour:4294967295},{x:112,y:88,index:73,id:100082,pPreCreateCode:gml_RoomCC_rm_edit_team_28_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:112,y:112,index:73,id:100083,pPreCreateCode:gml_RoomCC_rm_edit_team_29_PreCreate,rotation:0,scaleX:2.5,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:120,y:80,index:72,id:100084,pPreCreateCode:gml_RoomCC_rm_edit_team_30_PreCreate,rotation:0,scaleX:9.5, scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:120,y:104,index:72,id:100085,pPreCreateCode:gml_RoomCC_rm_edit_team_31_PreCreate,rotation:0,scaleX:3,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:112,y:64,index:73,id:100086,pPreCreateCode:gml_RoomCC_rm_edit_team_32_PreCreate,rotation:0,scaleX:2.5,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:196,y:64,index:75,id:100087,pPreCreateCode:gml_RoomCC_rm_edit_team_33_PreCreate,rotation:0,scaleX:3.1666669845581055,scaleY:1, imageSpeed:1,imageIndex:0,colour:4294967295},{x:232,y:104,index:38,id:100088,pPreCreateCode:gml_RoomCC_rm_edit_team_34_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:40,index:67,id:100072,pPreCreateCode:gml_RoomCC_rm_edit_team_35_PreCreate,rotation:0,scaleX:1.7000000476837158,scaleY:0.6875,imageSpeed:1,imageIndex:0,colour:4294967295},{x:232,y:104,index:38,id:100073,pPreCreateCode:gml_RoomCC_rm_edit_team_36_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1, imageIndex:0,colour:4294967295},{x:96,y:56,index:72,id:100076,pPreCreateCode:gml_RoomCC_rm_edit_team_37_PreCreate,rotation:0,scaleX:3,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:88,y:64,index:73,id:100074,pPreCreateCode:gml_RoomCC_rm_edit_team_38_PreCreate,rotation:0,scaleX:2.5,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:88,y:88,index:73,id:100075,pPreCreateCode:gml_RoomCC_rm_edit_team_39_PreCreate,rotation:0,scaleX:2.5,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295} ,{x:96,y:80,index:72,id:100077,pPreCreateCode:gml_RoomCC_rm_edit_team_40_PreCreate,rotation:0,scaleX:3,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:128,y:104,index:18,id:100078,pPreCreateCode:gml_RoomCC_rm_edit_team_41_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:162,y:56,index:72,id:100079,pPreCreateCode:gml_RoomCC_rm_edit_team_42_PreCreate,rotation:0,scaleX:3.25,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:160,y:80,index:36,id:100080, pPreCreateCode:gml_RoomCC_rm_edit_team_43_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:426,y:88,index:39,id:100117,pPreCreateCode:gml_RoomCC_rm_edit_team_44_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:402,y:65,index:133,id:100118,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:446,y:65,index:133,id:100119,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0, y:0,index:130,id:100094,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:20,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances_Details2",id:21,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:0,effectEnabled:1,effectType:"",effectProperties:[],icount:9,iinstIDs:[100072,100073,100074,100075,100076,100077,100078,100079,100080]},{pName:"Instances_Details1", id:22,type:2,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:8,iinstIDs:[100081,100082,100083,100084,100085,100086,100087,100088]},{pName:"Instances",id:23,type:2,depth:300,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:31,iinstIDs:[100089,100090,100091,100092,100093,100094,100095,100096,100097,100098,100099,100100,100101,100102,100103,100104,100105,100106,100107,100108,100109,100110,100111,100112, 100113,100114,100115,100116,100117,100118,100119]},{pName:"Background",id:24,type:1,depth:400,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_freeagents",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_freeagents_Create,backgrounds:[],views:[{ visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:48,y:232,index:89,id:100120,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:37, id:100121,pPreCreateCode:gml_RoomCC_rm_freeagents_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:264,y:232,index:35,id:100122,pPreCreateCode:gml_RoomCC_rm_freeagents_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:224,y:8,index:71,id:100123,pPreCreateCode:gml_RoomCC_rm_freeagents_3_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:-16,index:156,id:100124,rotation:0,scaleX:1, scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:456,y:8,index:53,id:100125,pPreCreateCode:gml_RoomCC_rm_freeagents_5_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:16,index:76,id:100126,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:388,y:253,index:78,id:100127,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:388,y:237,index:73,id:100128,pPreCreateCode:gml_RoomCC_rm_freeagents_8_PreCreate, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:25,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:26,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:9,iinstIDs:[100120,100121,100122,100123,100124,100125,100126,100127,100128]},{pName:"Background",id:27,type:1,depth:200,x:0,y:0, hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_freeagents2",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_freeagents2_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768} ,{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:48,y:232,index:89,id:100129,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:37,id:100130,pPreCreateCode:gml_RoomCC_rm_freeagents2_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1, imageIndex:0,colour:4294967295},{x:264,y:232,index:35,id:100131,pPreCreateCode:gml_RoomCC_rm_freeagents2_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:224,y:8,index:71,id:100132,pPreCreateCode:gml_RoomCC_rm_freeagents2_3_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:208,y:-240,index:73,id:100133,pPreCreateCode:gml_RoomCC_rm_freeagents2_4_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295} ,{x:81,y:117,index:75,id:100134,pPreCreateCode:gml_RoomCC_rm_freeagents2_5_PreCreate,rotation:0,scaleX:1.0175440311431885,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:161,y:117,index:75,id:100135,pPreCreateCode:gml_RoomCC_rm_freeagents2_6_PreCreate,rotation:0,scaleX:1.0175440311431885,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:241,y:117,index:75,id:100136,pPreCreateCode:gml_RoomCC_rm_freeagents2_7_PreCreate,rotation:0,scaleX:1.0175440311431885,scaleY:1,imageSpeed:1,imageIndex:0, colour:4294967295},{x:321,y:117,index:75,id:100137,pPreCreateCode:gml_RoomCC_rm_freeagents2_8_PreCreate,rotation:0,scaleX:1.0175440311431885,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:401,y:117,index:75,id:100138,pPreCreateCode:gml_RoomCC_rm_freeagents2_9_PreCreate,rotation:0,scaleX:1.0175440311431885,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:121,y:217,index:75,id:100139,pPreCreateCode:gml_RoomCC_rm_freeagents2_10_PreCreate,rotation:0,scaleX:1.0175440311431885,scaleY:1, imageSpeed:1,imageIndex:0,colour:4294967295},{x:48,y:32,index:50,id:100140,rotation:0,scaleX:1.0175440311431885,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:128,y:32,index:50,id:100141,rotation:0,scaleX:1.0175440311431885,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:208,y:32,index:50,id:100142,rotation:0,scaleX:1.0175440311431885,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:32,index:50,id:100143,rotation:0,scaleX:1.0175440311431885,scaleY:1,imageSpeed:1, imageIndex:0,colour:4294967295},{x:368,y:32,index:50,id:100144,rotation:0,scaleX:1.0175440311431885,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:88,y:132,index:50,id:100145,rotation:0,scaleX:1.0175440311431885,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:201,y:217,index:75,id:100146,pPreCreateCode:gml_RoomCC_rm_freeagents2_17_PreCreate,rotation:0,scaleX:1.0175440311431885,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:168,y:132,index:50,id:100147,rotation:0,scaleX:1.0175440311431885, scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:281,y:217,index:75,id:100148,pPreCreateCode:gml_RoomCC_rm_freeagents2_19_PreCreate,rotation:0,scaleX:1.0175440311431885,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:132,index:50,id:100149,rotation:0,scaleX:1.0175440311431885,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:361,y:217,index:75,id:100150,pPreCreateCode:gml_RoomCC_rm_freeagents2_21_PreCreate,rotation:0,scaleX:1.0175440311431885,scaleY:1,imageSpeed:1,imageIndex:0, colour:4294967295},{x:328,y:132,index:50,id:100151,rotation:0,scaleX:1.0175440311431885,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-16,y:-16,index:135,id:100155,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:456,y:8,index:53,id:100152,pPreCreateCode:gml_RoomCC_rm_freeagents2_24_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:440,y:232,index:45,id:100153,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295} ,{x:32,y:16,index:76,id:100154,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:440,y:112,index:37,id:100156,pPreCreateCode:gml_RoomCC_rm_freeagents2_27_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:112,index:37,id:100157,pPreCreateCode:gml_RoomCC_rm_freeagents2_28_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:360,y:232,index:40,id:100158,pPreCreateCode:gml_RoomCC_rm_freeagents2_29_PreCreate, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:28,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:29,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:30,iinstIDs:[100129,100130,100131,100132,100133,100134,100135,100136,100137,100138,100139,100140,100141,100142,100143,100144,100145, 100146,100147,100148,100149,100150,100151,100152,100153,100154,100155,100156,100157,100158]},{pName:"Background",id:30,type:1,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_frontoffice",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_frontoffice_Create, backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:224,y:8,index:71,id:100159,pPreCreateCode:gml_RoomCC_rm_frontoffice_0_PreCreate,rotation:0,scaleX:1, scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:37,id:100160,pPreCreateCode:gml_RoomCC_rm_frontoffice_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:16,y:89,index:58,id:100161,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:16,y:138,index:59,id:100162,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:16,y:187,index:60,id:100163,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0, colour:4294967295},{x:232,y:89,index:20,id:100164,pPreCreateCode:gml_RoomCC_rm_frontoffice_5_PreCreate,rotation:0,scaleX:1.9393939971923828,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:232,y:138,index:20,id:100165,pPreCreateCode:gml_RoomCC_rm_frontoffice_6_PreCreate,rotation:0,scaleX:1.9393939971923828,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:232,y:187,index:20,id:100166,pPreCreateCode:gml_RoomCC_rm_frontoffice_7_PreCreate,rotation:0,scaleX:1.9393939971923828,scaleY:1, imageSpeed:1,imageIndex:0,colour:4294967295},{x:456,y:8,index:53,id:100168,pPreCreateCode:gml_RoomCC_rm_frontoffice_8_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:-288,index:53,id:100169,pPreCreateCode:gml_RoomCC_rm_frontoffice_9_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:-240,index:53,id:100170,pPreCreateCode:gml_RoomCC_rm_frontoffice_10_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0, colour:4294967295},{x:312,y:134,index:50,id:100174,pPreCreateCode:gml_RoomCC_rm_frontoffice_11_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:392,y:134,index:50,id:100175,pPreCreateCode:gml_RoomCC_rm_frontoffice_12_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:496,y:176,index:62,id:100172,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:576,y:176,index:64,id:100173,rotation:0,scaleX:1,scaleY:1, imageSpeed:1,imageIndex:0,colour:4294967295},{x:304,y:40,index:67,id:100171,pPreCreateCode:gml_RoomCC_rm_frontoffice_15_PreCreate,rotation:0,scaleX:1,scaleY:1.3984375,imageSpeed:1,imageIndex:0,colour:4294967295},{x:16,y:40,index:89,id:100176,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:412,y:248,index:75,id:100178,pPreCreateCode:gml_RoomCC_rm_frontoffice_17_PreCreate,rotation:0,scaleX:1.1666666269302368,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:448, y:240,index:53,id:100179,pPreCreateCode:gml_RoomCC_rm_frontoffice_18_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:376,y:232,index:67,id:100177,pPreCreateCode:gml_RoomCC_rm_frontoffice_19_PreCreate,rotation:0,scaleX:0.6000000238418579,scaleY:0.25,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:-256,index:73,id:100180,pPreCreateCode:gml_RoomCC_rm_frontoffice_20_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:232, y:40,index:66,id:100181,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:280,y:232,index:35,id:100182,pPreCreateCode:gml_RoomCC_rm_frontoffice_22_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:184,y:232,index:35,id:100183,pPreCreateCode:gml_RoomCC_rm_frontoffice_23_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:48,y:232,index:45,id:100184,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0, colour:4294967295},{x:32,y:16,index:76,id:100185,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:88,y:232,index:35,id:100186,pCode:gml_RoomCC_rm_frontoffice_26_Create,pPreCreateCode:gml_RoomCC_rm_frontoffice_26_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:351,y:50,index:50,id:100187,pPreCreateCode:gml_RoomCC_rm_frontoffice_27_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-16,y:-24,index:134, id:100167,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:31,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:32,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:29,iinstIDs:[100159,100160,100161,100162,100163,100164,100165,100166,100167,100168,100169,100170,100171,100172,100173, 100174,100175,100176,100177,100178,100179,100180,100181,100182,100183,100184,100185,100186,100187]},{pName:"Background",id:33,type:1,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_halloffame",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_halloffame_Create, backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:232,y:8,index:71,id:100188,pPreCreateCode:gml_RoomCC_rm_halloffame_0_PreCreate,rotation:0,scaleX:1, scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:37,id:100189,pPreCreateCode:gml_RoomCC_rm_halloffame_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:112,y:40,index:91,id:100190,pPreCreateCode:gml_RoomCC_rm_halloffame_2_PreCreate,rotation:0,scaleX:1.5999999046325684,scaleY:1.149999976158142,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:232,index:35,id:100191,pCode:gml_RoomCC_rm_halloffame_3_Create,pPreCreateCode:gml_RoomCC_rm_halloffame_3_PreCreate, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:192,y:232,index:35,id:100192,pPreCreateCode:gml_RoomCC_rm_halloffame_4_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:512,y:-112,index:95,id:100193,pPreCreateCode:gml_RoomCC_rm_halloffame_5_PreCreate,rotation:0,scaleX:1.2999999523162842,scaleY:0.550000011920929,imageSpeed:1,imageIndex:0,colour:4294967295},{x:512,y:-208,index:94,id:100194,pPreCreateCode:gml_RoomCC_rm_halloffame_6_PreCreate, rotation:0,scaleX:1.2999999523162842,scaleY:0.550000011920929,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:232,index:35,id:100195,pPreCreateCode:gml_RoomCC_rm_halloffame_7_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:96,y:232,index:35,id:100196,pCode:gml_RoomCC_rm_halloffame_8_Create,pPreCreateCode:gml_RoomCC_rm_halloffame_8_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:8,index:6,id:100197,rotation:0, scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:34,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:35,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:10,iinstIDs:[100188,100189,100190,100191,100192,100193,100194,100195,100196,100197]},{pName:"Background",id:36,type:1,depth:200,x:0,y:0,hspeed:0, vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_halloffame_retrobowls",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_halloffame_retrobowls_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024, hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:232,y:8,index:71,id:100198,pPreCreateCode:gml_RoomCC_rm_halloffame_retrobowls_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:37,id:100199,pPreCreateCode:gml_RoomCC_rm_halloffame_retrobowls_1_PreCreate, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:496,y:-120,index:92,id:100200,pPreCreateCode:gml_RoomCC_rm_halloffame_retrobowls_2_PreCreate,rotation:0,scaleX:1.2999999523162842,scaleY:0.5,imageSpeed:1,imageIndex:0,colour:4294967295},{x:112,y:40,index:93,id:100201,rotation:0,scaleX:1.5999999046325684,scaleY:1.149999976158142,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:232,index:35,id:100202,pCode:gml_RoomCC_rm_halloffame_retrobowls_4_Create,pPreCreateCode:gml_RoomCC_rm_halloffame_retrobowls_4_PreCreate, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:192,y:232,index:35,id:100203,pCode:gml_RoomCC_rm_halloffame_retrobowls_5_Create,pPreCreateCode:gml_RoomCC_rm_halloffame_retrobowls_5_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:232,index:35,id:100204,pPreCreateCode:gml_RoomCC_rm_halloffame_retrobowls_6_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:96,y:232,index:35,id:100205,pPreCreateCode:gml_RoomCC_rm_halloffame_retrobowls_7_PreCreate, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:37,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:38,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:8,iinstIDs:[100198,100199,100200,100201,100202,100203,100204,100205]},{pName:"Background",id:39,type:1,depth:200,x:0,y:0,hspeed:0, vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_halloffame_players",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_halloffame_players_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768} ,{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:232,y:8,index:71,id:100206,pPreCreateCode:gml_RoomCC_rm_halloffame_players_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:128,index:73,id:100208,pPreCreateCode:gml_RoomCC_rm_halloffame_players_1_PreCreate, rotation:0,scaleX:8.666666984558105,scaleY:9,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:112,index:37,id:100209,pPreCreateCode:gml_RoomCC_rm_halloffame_players_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:440,y:112,index:37,id:100210,pPreCreateCode:gml_RoomCC_rm_halloffame_players_3_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:236,y:40,index:75,id:100211,pPreCreateCode:gml_RoomCC_rm_halloffame_players_4_PreCreate, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:0,index:139,id:100207,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:37,id:100212,pPreCreateCode:gml_RoomCC_rm_halloffame_players_6_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:232,index:35,id:100213,pCode:gml_RoomCC_rm_halloffame_players_7_Create,pPreCreateCode:gml_RoomCC_rm_halloffame_players_7_PreCreate,rotation:0,scaleX:1, scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:192,y:232,index:35,id:100214,pPreCreateCode:gml_RoomCC_rm_halloffame_players_8_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:232,index:35,id:100215,pPreCreateCode:gml_RoomCC_rm_halloffame_players_9_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:96,y:232,index:35,id:100216,pPreCreateCode:gml_RoomCC_rm_halloffame_players_10_PreCreate,rotation:0,scaleX:1,scaleY:1, imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:40,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:41,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:11,iinstIDs:[100206,100207,100208,100209,100210,100211,100212,100213,100214,100215,100216]},{pName:"Background",id:42,type:1,depth:200,x:0,y:0,hspeed:0,vspeed:0, visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_halloffame_player_records",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_halloffame_player_records_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024, hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:232,y:8,index:71,id:100217,pPreCreateCode:gml_RoomCC_rm_halloffame_player_records_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:37,id:100218,pPreCreateCode:gml_RoomCC_rm_halloffame_player_records_1_PreCreate, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:40,index:96,id:100219,pPreCreateCode:gml_RoomCC_rm_halloffame_player_records_2_PreCreate,rotation:0,scaleX:2.9000000953674316,scaleY:1.149999976158142,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:232,index:35,id:100220,pCode:gml_RoomCC_rm_halloffame_player_records_3_Create,pPreCreateCode:gml_RoomCC_rm_halloffame_player_records_3_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295} ,{x:192,y:232,index:35,id:100221,pPreCreateCode:gml_RoomCC_rm_halloffame_player_records_4_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:232,index:35,id:100222,pCode:gml_RoomCC_rm_halloffame_player_records_5_Create,pPreCreateCode:gml_RoomCC_rm_halloffame_player_records_5_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:96,y:232,index:35,id:100223,pPreCreateCode:gml_RoomCC_rm_halloffame_player_records_6_PreCreate, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:416,y:4,index:20,id:100224,pPreCreateCode:gml_RoomCC_rm_halloffame_player_records_7_PreCreate,rotation:0,scaleX:1.7272727489471436,scaleY:0.7647058963775635,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:8,index:13,id:100225,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:43,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"", effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:44,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:9,iinstIDs:[100217,100218,100219,100220,100221,100222,100223,100224,100225]},{pName:"Background",id:45,type:1,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-499648,bimage_index:0,bimage_speed:15} ]},{pName:"rm_home",width:480,height:270,speed:0,colour:0,LayerCount:5,showColour:false,enableViews:true,pCode:gml_Room_rm_home_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024, hport:768}],pInstances:[{x:240,y:72,index:85,id:100237,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:232,index:35,id:100238,pPreCreateCode:gml_RoomCC_rm_home_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:24,y:128,index:82,id:100241,pPreCreateCode:gml_RoomCC_rm_home_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:37,id:100239,pPreCreateCode:gml_RoomCC_rm_home_3_PreCreate, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:192,y:232,index:35,id:100242,pPreCreateCode:gml_RoomCC_rm_home_4_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:232,index:35,id:100243,pPreCreateCode:gml_RoomCC_rm_home_5_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:912,y:220,index:73,id:100244,pPreCreateCode:gml_RoomCC_rm_home_6_PreCreate,rotation:0,scaleX:18.166669845581055,scaleY:1, imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:16,index:76,id:100245,pPreCreateCode:gml_RoomCC_rm_home_7_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:448,y:16,index:74,id:100247,pPreCreateCode:gml_RoomCC_rm_home_8_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:48,y:232,index:20,id:100248,pPreCreateCode:gml_RoomCC_rm_home_9_PreCreate,rotation:0,scaleX:1.2424242496490479,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295} ,{x:248,y:128,index:55,id:100232,pPreCreateCode:gml_RoomCC_rm_home_10_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:176,index:66,id:100233,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:320,y:176,index:62,id:100234,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:392,y:176,index:64,id:100235,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:-80,index:157,id:100226, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:176,index:21,id:100227,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:392,y:176,index:21,id:100228,pPreCreateCode:gml_RoomCC_rm_home_16_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:96,y:232,index:35,id:100236,pPreCreateCode:gml_RoomCC_rm_home_17_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:96,y:232,index:35, id:100229,pPreCreateCode:gml_RoomCC_rm_home_18_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:320,y:176,index:66,id:100230,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:232,y:8,index:71,id:100240,pCode:gml_RoomCC_rm_home_20_Create,pPreCreateCode:gml_RoomCC_rm_home_20_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:-16,index:137,id:100246,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0, colour:4294967295},{x:248,y:128,index:15,id:100231,pPreCreateCode:gml_RoomCC_rm_home_22_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:46,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances_QB",id:47,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:6,iinstIDs:[100226,100227,100228, 100229,100230,100231]},{pName:"Instances_FM",id:48,type:2,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:0,effectEnabled:1,effectType:"",effectProperties:[],icount:5,iinstIDs:[100232,100233,100234,100235,100236]},{pName:"Instances",id:49,type:2,depth:300,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:12,iinstIDs:[100237,100238,100239,100240,100241,100242,100243,100244,100245,100246,100247,100248]},{pName:"Background",id:50,type:1,depth:400,x:0,y:0,hspeed:0, vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-16777216,bimage_index:0,bimage_speed:15}]},{pName:"rm_kongregate",width:960,height:540,speed:0,colour:0,LayerCount:2,showColour:false,viewClearScreen:false,backgrounds:[],views:[{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024, hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:416,y:192,index:71,id:100249,pPreCreateCode:gml_RoomCC_rm_kongregate_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:192,y:352,index:43,id:100250,rotation:0,scaleX:2,scaleY:2,imageSpeed:1,imageIndex:0,colour:4294967295},{x:544,y:352,index:43,id:100251,pPreCreateCode:gml_RoomCC_rm_kongregate_2_PreCreate, rotation:0,scaleX:2,scaleY:2,imageSpeed:1,imageIndex:0,colour:4294967295},{x:96,y:32,index:80,id:100252,pPreCreateCode:gml_RoomCC_rm_kongregate_3_PreCreate,rotation:0,scaleX:0.07692307978868484,scaleY:0.3333333134651184,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:-32,index:103,id:100253,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"Instances",id:51,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[], icount:5,iinstIDs:[100249,100250,100251,100252,100253]},{pName:"Background",id:52,type:1,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-16777216,bimage_index:0,bimage_speed:15}]},{pName:"rm_league",width:480,height:270,speed:0,colour:0,LayerCount:4,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_league_Create,backgrounds:[],views:[{ visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:232,y:8,index:71,id:100259,pPreCreateCode:gml_RoomCC_rm_league_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0, colour:4294967295},{x:8,y:232,index:37,id:100258,pPreCreateCode:gml_RoomCC_rm_league_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:24,y:136,index:82,id:100260,pPreCreateCode:gml_RoomCC_rm_league_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:136,index:82,id:100261,pPreCreateCode:gml_RoomCC_rm_league_3_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:24,y:40,index:82,id:100262, pPreCreateCode:gml_RoomCC_rm_league_4_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:40,index:82,id:100263,pPreCreateCode:gml_RoomCC_rm_league_5_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:96,y:232,index:35,id:100266,pPreCreateCode:gml_RoomCC_rm_league_6_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:192,y:232,index:35,id:100265,pPreCreateCode:gml_RoomCC_rm_league_7_PreCreate, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:232,index:35,id:100267,pPreCreateCode:gml_RoomCC_rm_league_8_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:56,index:61,id:100254,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:112,index:37,id:100255,pPreCreateCode:gml_RoomCC_rm_league_10_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:448,y:112,index:37, id:100256,pPreCreateCode:gml_RoomCC_rm_league_11_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:48,y:232,index:20,id:100269,pPreCreateCode:gml_RoomCC_rm_league_12_PreCreate,rotation:0,scaleX:1.2424242496490479,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:0,index:141,id:100264,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:232,index:35,id:100268,pPreCreateCode:gml_RoomCC_rm_league_14_PreCreate,rotation:0,scaleX:1, scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:360,y:24,index:20,id:100257,pPreCreateCode:gml_RoomCC_rm_league_15_PreCreate,rotation:0,scaleX:2.696969747543335,scaleY:0.7647058963775635,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:53,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:0,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances2",id:54,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"", effectProperties:[],icount:4,iinstIDs:[100254,100255,100256,100257]},{pName:"Instances1",id:55,type:2,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:12,iinstIDs:[100258,100259,100260,100261,100262,100263,100264,100265,100266,100267,100268,100269]},{pName:"Background",id:56,type:1,depth:300,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false, bstretch:false,bblend:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_match",width:2600,height:540,speed:0,colour:0,LayerCount:6,showColour:false,enableViews:true,viewClearScreen:false,backgrounds:[],views:[{visible:true,wview:960,hview:540,wport:960,hport:540,hborder:320,vborder:320},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024, hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:0,y:-64,index:99,id:100271,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:-32,index:105,id:100270,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:57,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Text",id:58, type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Weather",id:59,type:2,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Ball",id:60,type:2,depth:300,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Players",id:61,type:2,depth:400,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1, effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Shadows",id:62,type:2,depth:500,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:2,iinstIDs:[100270,100271]}]},{pName:"rm_options",width:480,height:270,speed:0,colour:0,LayerCount:8,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_options_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768}, {wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:224,y:8,index:71,id:100290,pPreCreateCode:gml_RoomCC_rm_options_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:37,id:100292,pPreCreateCode:gml_RoomCC_rm_options_1_PreCreate, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:241,y:88,index:40,id:100293,pPreCreateCode:gml_RoomCC_rm_options_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:464,y:24,index:75,id:100294,pPreCreateCode:gml_RoomCC_rm_options_3_PreCreate,rotation:0,scaleX:1,scaleY:2,imageSpeed:1,imageIndex:0,colour:4294967295},{x:392,y:88,index:40,id:100295,pPreCreateCode:gml_RoomCC_rm_options_4_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1, imageIndex:0,colour:4294967295},{x:48,y:232,index:45,id:100296,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:79,y:128,index:40,id:100297,pPreCreateCode:gml_RoomCC_rm_options_6_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:79,y:88,index:40,id:100298,pPreCreateCode:gml_RoomCC_rm_options_7_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:1516,y:220,index:73,id:100299,pPreCreateCode:gml_RoomCC_rm_options_8_PreCreate, rotation:0,scaleX:43,scaleY:-1.5,imageSpeed:1,imageIndex:0,colour:4294967295},{x:79,y:168,index:40,id:100301,pPreCreateCode:gml_RoomCC_rm_options_9_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:136,y:232,index:43,id:100280,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:232,index:43,id:100281,pPreCreateCode:gml_RoomCC_rm_options_11_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:392, y:168,index:40,id:100302,pPreCreateCode:gml_RoomCC_rm_options_12_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:241,y:46,index:40,id:100303,pPreCreateCode:gml_RoomCC_rm_options_13_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:221,y:62,index:53,id:100304,pPreCreateCode:gml_RoomCC_rm_options_14_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:77,y:64,index:73,id:100306,pPreCreateCode:gml_RoomCC_rm_options_15_PreCreate, rotation:0,scaleX:1.5238100290298462,scaleY:2,imageSpeed:1,imageIndex:0,colour:4294967295},{x:77,y:104,index:73,id:100307,pPreCreateCode:gml_RoomCC_rm_options_16_PreCreate,rotation:0,scaleX:1.5,scaleY:2,imageSpeed:1,imageIndex:0,colour:4294967295},{x:77,y:144,index:73,id:100308,pPreCreateCode:gml_RoomCC_rm_options_17_PreCreate,rotation:0,scaleX:1.5238100290298462,scaleY:2,imageSpeed:1,imageIndex:0,colour:4294967295},{x:239,y:104,index:73,id:100309,pPreCreateCode:gml_RoomCC_rm_options_18_PreCreate, rotation:0,scaleX:1.5,scaleY:2,imageSpeed:1,imageIndex:0,colour:4294967295},{x:77,y:184,index:73,id:100310,pPreCreateCode:gml_RoomCC_rm_options_19_PreCreate,rotation:0,scaleX:1.5238100290298462,scaleY:2,imageSpeed:1,imageIndex:0,colour:4294967295},{x:390,y:184,index:73,id:100311,pPreCreateCode:gml_RoomCC_rm_options_20_PreCreate,rotation:0,scaleX:1.5238100290298462,scaleY:2,imageSpeed:1,imageIndex:0,colour:4294967295},{x:239,y:54,index:73,id:100312,pPreCreateCode:gml_RoomCC_rm_options_21_PreCreate, rotation:0,scaleX:1.5238100290298462,scaleY:2,imageSpeed:1,imageIndex:0,colour:4294967295},{x:390,y:104,index:73,id:100313,pPreCreateCode:gml_RoomCC_rm_options_22_PreCreate,rotation:0,scaleX:1.5238100290298462,scaleY:2,imageSpeed:1,imageIndex:0,colour:4294967295},{x:79,y:48,index:40,id:100291,pPreCreateCode:gml_RoomCC_rm_options_23_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:360,y:232,index:44,id:100282,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0, colour:4294967295},{x:168,y:232,index:47,id:100272,pPreCreateCode:gml_RoomCC_rm_options_25_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:208,y:232,index:47,id:100273,pPreCreateCode:gml_RoomCC_rm_options_26_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:232,index:47,id:100274,pPreCreateCode:gml_RoomCC_rm_options_27_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:232, index:20,id:100275,pPreCreateCode:gml_RoomCC_rm_options_28_PreCreate,rotation:0,scaleX:2.696969509124756,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:232,index:20,id:100276,pPreCreateCode:gml_RoomCC_rm_options_29_PreCreate,rotation:0,scaleX:2.696969509124756,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:392,y:48,index:40,id:100305,pPreCreateCode:gml_RoomCC_rm_options_30_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:390,y:64,index:73, id:100314,pPreCreateCode:gml_RoomCC_rm_options_31_PreCreate,rotation:0,scaleX:1.5238100290298462,scaleY:2,imageSpeed:1,imageIndex:0,colour:4294967295},{x:320,y:40,index:67,id:100289,pPreCreateCode:gml_RoomCC_rm_options_32_PreCreate,rotation:0,scaleX:0.949999988079071,scaleY:1.3125,imageSpeed:1,imageIndex:0,colour:4294967295},{x:239,y:144,index:73,id:100283,pPreCreateCode:gml_RoomCC_rm_options_33_PreCreate,rotation:0,scaleX:1.7321434020996094,scaleY:2,imageSpeed:1,imageIndex:0,colour:4294967295}, {x:241,y:128,index:40,id:100284,pPreCreateCode:gml_RoomCC_rm_options_34_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:390,y:64,index:73,id:100285,pPreCreateCode:gml_RoomCC_rm_options_35_PreCreate,rotation:0,scaleX:1.5,scaleY:2,imageSpeed:1,imageIndex:0,colour:4294967295},{x:392,y:48,index:40,id:100286,pPreCreateCode:gml_RoomCC_rm_options_36_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:241,y:168,index:40,id:100287, pPreCreateCode:gml_RoomCC_rm_options_37_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:239,y:184,index:73,id:100288,pPreCreateCode:gml_RoomCC_rm_options_38_PreCreate,rotation:0,scaleX:1.7321434020996094,scaleY:2,imageSpeed:1,imageIndex:0,colour:4294967295},{x:239,y:144,index:73,id:100277,pPreCreateCode:gml_RoomCC_rm_options_39_PreCreate,rotation:0,scaleX:1.5238100290298462,scaleY:2,imageSpeed:1,imageIndex:0,colour:4294967295},{x:241,y:128,index:40,id:100278, pPreCreateCode:gml_RoomCC_rm_options_40_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:390,y:144,index:73,id:100315,pPreCreateCode:gml_RoomCC_rm_options_41_PreCreate,rotation:0,scaleX:1.5238100290298462,scaleY:2,imageSpeed:1,imageIndex:0,colour:4294967295},{x:392,y:128,index:40,id:100316,pPreCreateCode:gml_RoomCC_rm_options_42_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-56,y:0,index:138,id:100300,rotation:0,scaleX:1, scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:48,y:232,index:20,id:100279,pCode:gml_RoomCC_rm_options_44_Create,pPreCreateCode:gml_RoomCC_rm_options_44_PreCreate,rotation:0,scaleX:2.454545497894287,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:184,index:73,id:100317,pCode:gml_RoomCC_rm_options_45_Create,pPreCreateCode:gml_RoomCC_rm_options_45_PreCreate,rotation:0,scaleX:1.5,scaleY:2,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:168,index:40,id:100318,pCode:gml_RoomCC_rm_options_46_Create, pPreCreateCode:gml_RoomCC_rm_options_46_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:63,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Links_Mobile",id:64,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:0,effectEnabled:1,effectType:"",effectProperties:[],icount:7,iinstIDs:[100272,100273,100274,100275,100276,100277,100278]},{pName:"Exhibition", id:65,type:2,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:1,iinstIDs:[100279]},{pName:"Links_Browser",id:66,type:2,depth:300,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:3,iinstIDs:[100280,100281,100282]},{pName:"Instances_ConsoleBuild",id:67,type:2,depth:400,x:0,y:0,hspeed:0,vspeed:0,visible:0,effectEnabled:1,effectType:"",effectProperties:[],icount:6,iinstIDs:[100283,100284,100285,100286,100287, 100288]},{pName:"Instances_Box",id:68,type:2,depth:500,x:0,y:0,hspeed:0,vspeed:0,visible:0,effectEnabled:1,effectType:"",effectProperties:[],icount:1,iinstIDs:[100289]},{pName:"Instances",id:69,type:2,depth:600,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:29,iinstIDs:[100290,100291,100292,100293,100294,100295,100296,100297,100298,100299,100300,100301,100302,100303,100304,100305,100306,100307,100308,100309,100310,100311,100312,100313,100314,100315,100316, 100317,100318]},{pName:"Background",id:70,type:1,depth:700,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_playoffs",width:480,height:270,speed:0,colour:0,LayerCount:5,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_playoffs_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480, hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:64,y:56,index:75,id:100324,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:64,y:88,index:75,id:100325,rotation:0,scaleX:1,scaleY:1,imageSpeed:1, imageIndex:0,colour:4294967295},{x:64,y:200,index:75,id:100326,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:64,y:168,index:75,id:100327,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:120,y:72,index:75,id:100328,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:120,y:104,index:75,id:100329,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:120,y:184,index:75,id:100330,rotation:0,scaleX:1, scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:120,y:152,index:75,id:100331,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:176,y:88,index:75,id:100332,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:176,y:168,index:75,id:100333,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:104,index:75,id:100334,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:152,index:75,id:100345, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:416,y:56,index:75,id:100335,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:416,y:88,index:75,id:100336,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:416,y:200,index:75,id:100337,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:416,y:168,index:75,id:100338,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:360, y:72,index:75,id:100339,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:360,y:104,index:75,id:100340,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:360,y:184,index:75,id:100341,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:360,y:152,index:75,id:100342,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:304,y:88,index:75,id:100343,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0, colour:4294967295},{x:304,y:168,index:75,id:100344,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:128,index:75,id:100346,pPreCreateCode:gml_RoomCC_rm_playoffs_22_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:37,id:100347,pPreCreateCode:gml_RoomCC_rm_playoffs_23_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:232,y:16,index:71,id:100348,rotation:0,scaleX:1,scaleY:1,imageSpeed:1, imageIndex:0,colour:4294967295},{x:384,y:232,index:35,id:100349,pPreCreateCode:gml_RoomCC_rm_playoffs_25_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:232,index:35,id:100350,pPreCreateCode:gml_RoomCC_rm_playoffs_26_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:40,index:67,id:100322,pPreCreateCode:gml_RoomCC_rm_playoffs_27_PreCreate,rotation:0,scaleX:1.100000023841858,scaleY:1.375,imageSpeed:1,imageIndex:0, colour:4294967295},{x:272,y:40,index:67,id:100323,pPreCreateCode:gml_RoomCC_rm_playoffs_28_PreCreate,rotation:0,scaleX:1.100000023841858,scaleY:1.375,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:40,index:84,id:100319,pPreCreateCode:gml_RoomCC_rm_playoffs_29_PreCreate,rotation:0,scaleX:1.2000000476837158,scaleY:1.4375,imageSpeed:1,imageIndex:0,colour:4294967295},{x:256,y:40,index:84,id:100320,pPreCreateCode:gml_RoomCC_rm_playoffs_30_PreCreate,rotation:0,scaleX:1.2000000476837158,scaleY:1.4375, imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:0,index:142,id:100321,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:71,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances2",id:72,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:0,effectEnabled:1,effectType:"",effectProperties:[],icount:2,iinstIDs:[100319,100320]},{pName:"Instances1",id:73, type:2,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:26,iinstIDs:[100321,100322,100323,100324,100325,100326,100327,100328,100329,100330,100331,100332,100333,100334,100335,100336,100337,100338,100339,100340,100341,100342,100343,100344,100345,100346]},{pName:"Instances_Btn",id:74,type:2,depth:300,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:4,iinstIDs:[100347,100348,100349,100350]},{pName:"Background", id:75,type:1,depth:400,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_playoffs2",width:480,height:270,speed:0,colour:0,LayerCount:5,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_playoffs2_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768, wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:56,y:56,index:75,id:100355,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:56,y:80,index:75,id:100356,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295} ,{x:56,y:152,index:75,id:100357,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:56,y:128,index:75,id:100358,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:112,y:92,index:75,id:100359,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:112,y:68,index:75,id:100360,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:112,y:140,index:75,id:100361,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0, colour:4294967295},{x:56,y:184,index:75,id:100362,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:168,y:80,index:75,id:100363,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:168,y:168,index:75,id:100364,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:100,index:75,id:100365,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:148,index:75,id:100366,rotation:0,scaleX:1,scaleY:1, imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:124,index:75,id:100367,pPreCreateCode:gml_RoomCC_rm_playoffs2_12_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:37,id:100383,pPreCreateCode:gml_RoomCC_rm_playoffs2_13_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:232,y:16,index:71,id:100384,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:232,index:35,id:100385,pPreCreateCode:gml_RoomCC_rm_playoffs2_15_PreCreate, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:232,index:35,id:100386,pPreCreateCode:gml_RoomCC_rm_playoffs2_16_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:40,index:84,id:100351,pPreCreateCode:gml_RoomCC_rm_playoffs2_17_PreCreate,rotation:0,scaleX:1.2000000476837158,scaleY:1.4375,imageSpeed:1,imageIndex:0,colour:4294967295},{x:256,y:40,index:84,id:100352,pPreCreateCode:gml_RoomCC_rm_playoffs2_18_PreCreate,rotation:0, scaleX:1.2000000476837158,scaleY:1.4375,imageSpeed:1,imageIndex:0,colour:4294967295},{x:112,y:196,index:75,id:100368,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:56,y:208,index:75,id:100369,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:24,y:40,index:67,id:100354,pPreCreateCode:gml_RoomCC_rm_playoffs2_21_PreCreate,rotation:0,scaleX:1.100000023841858,scaleY:1.4375,imageSpeed:1,imageIndex:0,colour:4294967295},{x:280,y:40,index:67,id:100370, pPreCreateCode:gml_RoomCC_rm_playoffs2_22_PreCreate,rotation:0,scaleX:1.100000023841858,scaleY:1.4375,imageSpeed:1,imageIndex:0,colour:4294967295},{x:312,y:80,index:75,id:100371,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:424,y:80,index:75,id:100372,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:424,y:152,index:75,id:100373,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:424,y:128,index:75,id:100374,rotation:0, scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:368,y:92,index:75,id:100375,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:368,y:68,index:75,id:100376,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:368,y:140,index:75,id:100377,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:424,y:184,index:75,id:100378,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:424,y:56,index:75, id:100379,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:312,y:168,index:75,id:100380,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:368,y:196,index:75,id:100381,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:424,y:208,index:75,id:100382,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:0,index:143,id:100353,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295} ],tiles:[],layers:[{pName:"PopUps",id:76,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances2",id:77,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:0,effectEnabled:1,effectType:"",effectProperties:[],icount:2,iinstIDs:[100351,100352]},{pName:"Instances1",id:78,type:2,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:30,iinstIDs:[100353,100354,100355,100356, 100357,100358,100359,100360,100361,100362,100363,100364,100365,100366,100367,100368,100369,100370,100371,100372,100373,100374,100375,100376,100377,100378,100379,100380,100381,100382]},{pName:"Instances_Btn",id:79,type:2,depth:300,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:4,iinstIDs:[100383,100384,100385,100386]},{pName:"Background",id:80,type:1,depth:400,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true, bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_pre_match",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_pre_match_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024, hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:8,y:232,index:37,id:100387,pPreCreateCode:gml_RoomCC_rm_pre_match_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:232,index:35,id:100388,pPreCreateCode:gml_RoomCC_rm_pre_match_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:224,y:16, index:71,id:100389,pPreCreateCode:gml_RoomCC_rm_pre_match_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:144,y:232,index:67,id:100390,pPreCreateCode:gml_RoomCC_rm_pre_match_3_PreCreate,rotation:0,scaleX:1.2000000476837158,scaleY:0.25,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:248,index:75,id:100391,pPreCreateCode:gml_RoomCC_rm_pre_match_4_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:112,y:98,index:133, id:100393,pPreCreateCode:gml_RoomCC_rm_pre_match_5_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:368,y:98,index:133,id:100394,pPreCreateCode:gml_RoomCC_rm_pre_match_6_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:196,y:99,index:67,id:100395,pPreCreateCode:gml_RoomCC_rm_pre_match_7_PreCreate,rotation:0,scaleX:0.550000011920929,scaleY:0.34375,imageSpeed:1,imageIndex:0,colour:4294967295},{x:203,y:106,index:20,id:100397, pPreCreateCode:gml_RoomCC_rm_pre_match_8_PreCreate,rotation:0,scaleX:2.200000047683716,scaleY:0.8999999761581421,imageSpeed:1,imageIndex:0,colour:4294967295},{x:190,y:48,index:20,id:100398,pPreCreateCode:gml_RoomCC_rm_pre_match_9_PreCreate,rotation:0,scaleX:1.399999976158142,scaleY:0.8999999761581421,imageSpeed:1,imageIndex:0,colour:4294967295},{x:242,y:48,index:20,id:100399,pPreCreateCode:gml_RoomCC_rm_pre_match_10_PreCreate,rotation:0,scaleX:1.399999976158142,scaleY:0.8999999761581421,imageSpeed:1, imageIndex:0,colour:4294967295},{x:182,y:40,index:67,id:100396,pPreCreateCode:gml_RoomCC_rm_pre_match_11_PreCreate,rotation:0,scaleX:0.7250000834465027,scaleY:0.39781248569488525,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:8,index:20,id:100400,pPreCreateCode:gml_RoomCC_rm_pre_match_12_PreCreate,rotation:0,scaleX:2.696969747543335,scaleY:0.7647058963775635,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:0,index:144,id:100392,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295} ,{x:384,y:48,index:20,id:100401,pCode:gml_RoomCC_rm_pre_match_14_Create,pPreCreateCode:gml_RoomCC_rm_pre_match_14_PreCreate,rotation:0,scaleX:2.696969747543335,scaleY:0.7647058963775635,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:81,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:82,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"", effectProperties:[],icount:15,iinstIDs:[100387,100388,100389,100390,100391,100392,100393,100394,100395,100396,100397,100398,100399,100400,100401]},{pName:"Background",id:83,type:1,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-16777216,bimage_index:0,bimage_speed:15}]},{pName:"rm_profile_player",width:480,height:270,speed:0,colour:0,LayerCount:12,showColour:false, enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_profile_player_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:200,y:-32,index:71,id:100431, pPreCreateCode:gml_RoomCC_rm_profile_player_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:40,y:72,index:75,id:100435,pPreCreateCode:gml_RoomCC_rm_profile_player_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:40,y:104,index:75,id:100436,pPreCreateCode:gml_RoomCC_rm_profile_player_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:24,y:40,index:67,id:100433,pPreCreateCode:gml_RoomCC_rm_profile_player_3_PreCreate, rotation:0,scaleX:1.2999999523162842,scaleY:1.375,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:40,index:67,id:100432,pPreCreateCode:gml_RoomCC_rm_profile_player_4_PreCreate,rotation:0,scaleX:1.2999999523162842,scaleY:1.375,imageSpeed:1,imageIndex:0,colour:4294967295},{x:256,y:64,index:87,id:100438,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:256,y:144,index:87,id:100439,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:256,y:104, index:87,id:100440,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:40,y:88,index:75,id:100441,pPreCreateCode:gml_RoomCC_rm_profile_player_8_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:80,y:152,index:75,id:100442,pPreCreateCode:gml_RoomCC_rm_profile_player_9_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:40,y:56,index:75,id:100443,pPreCreateCode:gml_RoomCC_rm_profile_player_10_PreCreate, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:16,index:75,id:100434,pPreCreateCode:gml_RoomCC_rm_profile_player_11_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:256,y:184,index:87,id:100444,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:176,y:152,index:75,id:100445,pPreCreateCode:gml_RoomCC_rm_profile_player_13_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295} ,{x:24,y:184,index:88,id:100446,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:448,y:104,index:37,id:100402,pPreCreateCode:gml_RoomCC_rm_profile_player_15_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:104,index:37,id:100403,pPreCreateCode:gml_RoomCC_rm_profile_player_16_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:232,index:35,id:100425,pPreCreateCode:gml_RoomCC_rm_profile_player_17_PreCreate, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:232,index:35,id:100426,pPreCreateCode:gml_RoomCC_rm_profile_player_18_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:368,y:232,index:35,id:100409,pPreCreateCode:gml_RoomCC_rm_profile_player_19_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:51,y:232,index:35,id:100405,pPreCreateCode:gml_RoomCC_rm_profile_player_20_PreCreate,rotation:0,scaleX:1, scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:243,y:232,index:35,id:100406,pPreCreateCode:gml_RoomCC_rm_profile_player_21_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:147,y:232,index:35,id:100407,pPreCreateCode:gml_RoomCC_rm_profile_player_22_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:339,y:232,index:35,id:100408,pPreCreateCode:gml_RoomCC_rm_profile_player_23_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1, imageIndex:0,colour:4294967295},{x:384,y:232,index:35,id:100404,pPreCreateCode:gml_RoomCC_rm_profile_player_24_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:40,y:120,index:75,id:100447,pPreCreateCode:gml_RoomCC_rm_profile_player_25_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:40,y:136,index:75,id:100448,pPreCreateCode:gml_RoomCC_rm_profile_player_26_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0, colour:4294967295},{x:212,y:44,index:53,id:100449,pPreCreateCode:gml_RoomCC_rm_profile_player_27_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:432,y:46,index:53,id:100450,pPreCreateCode:gml_RoomCC_rm_profile_player_28_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:-40,index:73,id:100451,pPreCreateCode:gml_RoomCC_rm_profile_player_29_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295} ,{x:192,y:232,index:35,id:100427,pPreCreateCode:gml_RoomCC_rm_profile_player_30_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:96,y:232,index:35,id:100428,pPreCreateCode:gml_RoomCC_rm_profile_player_31_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:272,y:232,index:35,id:100410,pPreCreateCode:gml_RoomCC_rm_profile_player_32_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:416,y:0, index:37,id:100429,pPreCreateCode:gml_RoomCC_rm_profile_player_33_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:0,index:52,id:100413,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:0,index:150,id:100414,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:48,y:232,index:35,id:100411,pPreCreateCode:gml_RoomCC_rm_profile_player_36_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295} ,{x:8,y:232,index:37,id:100430,pPreCreateCode:gml_RoomCC_rm_profile_player_37_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:176,y:232,index:35,id:100412,pPreCreateCode:gml_RoomCC_rm_profile_player_38_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:232,index:35,id:100415,pPreCreateCode:gml_RoomCC_rm_profile_player_39_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:416,y:0,index:37, id:100416,pPreCreateCode:gml_RoomCC_rm_profile_player_40_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:232,index:35,id:100422,pPreCreateCode:gml_RoomCC_rm_profile_player_41_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:232,index:35,id:100423,pPreCreateCode:gml_RoomCC_rm_profile_player_42_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:416,y:0,index:37,id:100424,pPreCreateCode:gml_RoomCC_rm_profile_player_43_PreCreate, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:232,index:35,id:100417,pPreCreateCode:gml_RoomCC_rm_profile_player_44_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:432,y:86,index:53,id:100452,pPreCreateCode:gml_RoomCC_rm_profile_player_45_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:432,y:126,index:53,id:100453,pPreCreateCode:gml_RoomCC_rm_profile_player_46_PreCreate,rotation:0,scaleX:1, scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:432,y:166,index:53,id:100454,pPreCreateCode:gml_RoomCC_rm_profile_player_47_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:48,y:232,index:67,id:100419,pPreCreateCode:gml_RoomCC_rm_profile_player_48_PreCreate,rotation:0,scaleX:1,scaleY:0.25,imageSpeed:1,imageIndex:0,colour:4294967295},{x:128,y:248,index:75,id:100418,pPreCreateCode:gml_RoomCC_rm_profile_player_49_PreCreate,rotation:0,scaleX:0.6666666865348816, scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:56,y:239,index:20,id:100420,pPreCreateCode:gml_RoomCC_rm_profile_player_50_PreCreate,rotation:0,scaleX:1.4848483800888062,scaleY:0.5882353186607361,imageSpeed:1,imageIndex:0,colour:4294967295},{x:152,y:239,index:20,id:100421,pPreCreateCode:gml_RoomCC_rm_profile_player_51_PreCreate,rotation:0,scaleX:1.4848483800888062,scaleY:0.5882353186607361,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:-16,index:148,id:100437,rotation:0,scaleX:1,scaleY:1, imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:84,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Buttons_Navigate",id:85,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:2,iinstIDs:[100402,100403]},{pName:"Buttons_XP_Continue",id:86,type:2,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[], icount:1,iinstIDs:[100404]},{pName:"Buttons_XP",id:87,type:2,depth:300,x:0,y:0,hspeed:0,vspeed:0,visible:0,effectEnabled:1,effectType:"",effectProperties:[],icount:4,iinstIDs:[100405,100406,100407,100408]},{pName:"Buttons_Pick",id:88,type:2,depth:400,x:0,y:0,hspeed:0,vspeed:0,visible:0,effectEnabled:1,effectType:"",effectProperties:[],icount:4,iinstIDs:[100409,100410,100411,100412]},{pName:"HOF_Tag",id:89,type:2,depth:500,x:0,y:0,hspeed:0,vspeed:0,visible:0,effectEnabled:1,effectType:"",effectProperties:[], icount:2,iinstIDs:[100413,100414]},{pName:"Buttons_Main_QB",id:90,type:2,depth:600,x:0,y:0,hspeed:0,vspeed:0,visible:0,effectEnabled:1,effectType:"",effectProperties:[],icount:7,iinstIDs:[100415,100416,100417,100418,100419,100420,100421]},{pName:"Buttons_Main_Teammate",id:91,type:2,depth:700,x:0,y:0,hspeed:0,vspeed:0,visible:0,effectEnabled:1,effectType:"",effectProperties:[],icount:3,iinstIDs:[100422,100423,100424]},{pName:"Buttons_Main",id:92,type:2,depth:800,x:0,y:0,hspeed:0,vspeed:0,visible:0, effectEnabled:1,effectType:"",effectProperties:[],icount:5,iinstIDs:[100425,100426,100427,100428,100429]},{pName:"Buttons_Back",id:93,type:2,depth:900,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:1,iinstIDs:[100430]},{pName:"Instances",id:94,type:2,depth:1000,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:24,iinstIDs:[100431,100432,100433,100434,100435,100436,100437,100438,100439,100440,100441,100442,100443, 100444,100445,100446,100447,100448,100449,100450,100451,100452,100453,100454]},{pName:"Background",id:95,type:1,depth:1100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_profile_staff",width:480,height:270,speed:0,colour:0,LayerCount:7,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_profile_staff_Create, backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:232,y:8,index:71,id:100466,pPreCreateCode:gml_RoomCC_rm_profile_staff_0_PreCreate,rotation:0,scaleX:1, scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:192,y:54,index:75,id:100468,pPreCreateCode:gml_RoomCC_rm_profile_staff_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:192,y:86,index:75,id:100469,pPreCreateCode:gml_RoomCC_rm_profile_staff_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:192,y:70,index:75,id:100470,pPreCreateCode:gml_RoomCC_rm_profile_staff_3_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1, imageIndex:0,colour:4294967295},{x:366,y:40,index:53,id:100472,pPreCreateCode:gml_RoomCC_rm_profile_staff_4_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:116,y:46,index:50,id:100471,pPreCreateCode:gml_RoomCC_rm_profile_staff_5_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:52,y:104,index:37,id:100462,pPreCreateCode:gml_RoomCC_rm_profile_staff_6_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295} ,{x:396,y:104,index:37,id:100463,pPreCreateCode:gml_RoomCC_rm_profile_staff_7_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:16,index:73,id:100474,pPreCreateCode:gml_RoomCC_rm_profile_staff_8_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:37,id:100464,pPreCreateCode:gml_RoomCC_rm_profile_staff_9_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:140,y:134,index:88, id:100475,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:232,index:35,id:100461,pPreCreateCode:gml_RoomCC_rm_profile_staff_11_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:192,y:102,index:75,id:100476,pPreCreateCode:gml_RoomCC_rm_profile_staff_12_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:366,y:96,index:53,id:100477,pPreCreateCode:gml_RoomCC_rm_profile_staff_13_PreCreate,rotation:0, scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:192,y:118,index:75,id:100478,pPreCreateCode:gml_RoomCC_rm_profile_staff_14_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:448,y:0,index:37,id:100465,pPreCreateCode:gml_RoomCC_rm_profile_staff_15_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:92,y:36,index:67,id:100467,pPreCreateCode:gml_RoomCC_rm_profile_staff_16_PreCreate,rotation:0,scaleX:1.850000023841858, scaleY:1.1171879768371582,imageSpeed:1,imageIndex:0,colour:4294967295},{x:196,y:232,index:35,id:100460,pPreCreateCode:gml_RoomCC_rm_profile_staff_17_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:100,y:187,index:35,id:100455,pPreCreateCode:gml_RoomCC_rm_profile_staff_18_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:196,y:187,index:35,id:100456,pPreCreateCode:gml_RoomCC_rm_profile_staff_19_PreCreate,rotation:0,scaleX:1, scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:292,y:187,index:35,id:100457,pPreCreateCode:gml_RoomCC_rm_profile_staff_20_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:366,y:159,index:53,id:100458,pPreCreateCode:gml_RoomCC_rm_profile_staff_21_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:92,y:177,index:67,id:100459,pPreCreateCode:gml_RoomCC_rm_profile_staff_22_PreCreate,rotation:0,scaleX:1.850000023841858, scaleY:0.375,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:-16,index:152,id:100473,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:96,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances_Training",id:97,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:5,iinstIDs:[100455,100456,100457, 100458,100459]},{pName:"Instances_Hire",id:98,type:2,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:1,iinstIDs:[100460]},{pName:"Instances_XP_Continue",id:99,type:2,depth:300,x:0,y:0,hspeed:0,vspeed:0,visible:0,effectEnabled:1,effectType:"",effectProperties:[],icount:1,iinstIDs:[100461]},{pName:"Instances_Nav",id:100,type:2,depth:400,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:4,iinstIDs:[100462, 100463,100464,100465]},{pName:"Instances",id:101,type:2,depth:500,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:13,iinstIDs:[100466,100467,100468,100469,100470,100471,100472,100473,100474,100475,100476,100477,100478]},{pName:"Background",id:102,type:1,depth:600,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-499648,bimage_index:0, bimage_speed:15}]},{pName:"rm_post_match",width:480,height:270,speed:0,colour:0,LayerCount:4,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_post_match_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768, wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:384,y:232,index:35,id:100479,pPreCreateCode:gml_RoomCC_rm_post_match_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:232,index:35,id:100481,pPreCreateCode:gml_RoomCC_rm_post_match_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:224,y:8,index:71,id:100480,pPreCreateCode:gml_RoomCC_rm_post_match_2_PreCreate,rotation:0,scaleX:1,scaleY:1, imageSpeed:1,imageIndex:0,colour:4294967295},{x:16,y:136,index:55,id:100482,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:16,index:73,id:100483,pPreCreateCode:gml_RoomCC_rm_post_match_4_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:16,y:184,index:82,id:100485,pPreCreateCode:gml_RoomCC_rm_post_match_5_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:256,y:32,index:84,id:100484,rotation:0, scaleX:1.2999999523162842,scaleY:1.4375,imageSpeed:1,imageIndex:0,colour:4294967295},{x:16,y:32,index:83,id:100487,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:0,index:146,id:100486,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:232,y:232,index:20,id:100489,pPreCreateCode:gml_RoomCC_rm_post_match_9_PreCreate,rotation:0,scaleX:1.2424242496490479,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:232,y:232,index:20,id:100488,pPreCreateCode:gml_RoomCC_rm_post_match_10_PreCreate, rotation:0,scaleX:1.4848484992980957,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:103,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:104,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:10,iinstIDs:[100479,100480,100481,100482,100483,100484,100485,100486,100487,100488]},{pName:"Poki_Layer",id:105, type:2,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:1,iinstIDs:[100489]},{pName:"Background",id:106,type:1,depth:300,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-38868,bimage_index:0,bimage_speed:15}]},{pName:"rm_roster",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false, pCode:gml_Room_rm_roster_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:224,y:8,index:71,id:100490,pPreCreateCode:gml_RoomCC_rm_roster_0_PreCreate, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:37,id:100491,pPreCreateCode:gml_RoomCC_rm_roster_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:48,y:232,index:89,id:100493,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:336,y:232,index:62,id:100494,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:408,y:232,index:64,id:100495,rotation:0,scaleX:1,scaleY:1,imageSpeed:1, imageIndex:0,colour:4294967295},{x:456,y:8,index:53,id:100496,pPreCreateCode:gml_RoomCC_rm_roster_5_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:264,y:232,index:66,id:100497,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:-184,index:73,id:100498,pPreCreateCode:gml_RoomCC_rm_roster_7_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:192,index:37,id:100499,pPreCreateCode:gml_RoomCC_rm_roster_8_PreCreate, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:16,index:76,id:100500,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:35,index:75,id:100501,pPreCreateCode:gml_RoomCC_rm_roster_10_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:-16,index:153,id:100492,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:107,type:2,depth:0,x:0,y:0, hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:108,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:12,iinstIDs:[100490,100491,100492,100493,100494,100495,100496,100497,100498,100499,100500,100501]},{pName:"Background",id:109,type:1,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1, bhtiled:false,bvtiled:false,bstretch:false,bblend:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_stats",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_stats_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768} ,{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:16,y:32,index:68,id:100502,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:16,y:104,index:68,id:100503,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:232,y:8,index:71,id:100504,pPreCreateCode:gml_RoomCC_rm_stats_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295} ,{x:8,y:232,index:37,id:100505,pPreCreateCode:gml_RoomCC_rm_stats_3_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:110,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:111,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:4,iinstIDs:[100502,100503,100504,100505]},{pName:"Background", id:112,type:1,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_stats_player",width:480,height:270,speed:0,colour:0,LayerCount:4,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_stats_player_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024, hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:8,y:232,index:37,id:100508,pPreCreateCode:gml_RoomCC_rm_stats_player_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:16,y:40,index:67,id:100509,pPreCreateCode:gml_RoomCC_rm_stats_player_1_PreCreate, rotation:0,scaleX:0.9000000953674316,scaleY:1.4375,imageSpeed:1,imageIndex:0,colour:4294967295},{x:168,y:40,index:67,id:100510,pPreCreateCode:gml_RoomCC_rm_stats_player_2_PreCreate,rotation:0,scaleX:0.9000000953674316,scaleY:1.4375,imageSpeed:1,imageIndex:0,colour:4294967295},{x:320,y:40,index:67,id:100511,pPreCreateCode:gml_RoomCC_rm_stats_player_3_PreCreate,rotation:0,scaleX:0.9000000953674316,scaleY:1.4375,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:16,index:22,id:100513,pPreCreateCode:gml_RoomCC_rm_stats_player_4_PreCreate, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:168,y:40,index:149,id:100514,pPreCreateCode:gml_RoomCC_rm_stats_player_5_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:320,y:40,index:149,id:100515,pPreCreateCode:gml_RoomCC_rm_stats_player_6_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-1,y:0,index:37,id:100516,pPreCreateCode:gml_RoomCC_rm_stats_player_7_PreCreate,rotation:0,scaleX:1,scaleY:1, imageSpeed:1,imageIndex:0,colour:4294967295},{x:447,y:0,index:37,id:100517,pPreCreateCode:gml_RoomCC_rm_stats_player_8_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:448,y:0,index:52,id:100518,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:114,y:255,index:75,id:100519,pPreCreateCode:gml_RoomCC_rm_stats_player_10_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:158,y:255,index:75,id:100520, pPreCreateCode:gml_RoomCC_rm_stats_player_11_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:202,y:255,index:75,id:100521,pPreCreateCode:gml_RoomCC_rm_stats_player_12_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:246,y:255,index:75,id:100522,pPreCreateCode:gml_RoomCC_rm_stats_player_13_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:111,y:241,index:73,id:100523,pPreCreateCode:gml_RoomCC_rm_stats_player_14_PreCreate, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:155,y:241,index:73,id:100524,pPreCreateCode:gml_RoomCC_rm_stats_player_15_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:199,y:241,index:73,id:100525,pPreCreateCode:gml_RoomCC_rm_stats_player_16_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:243,y:241,index:73,id:100526,pPreCreateCode:gml_RoomCC_rm_stats_player_17_PreCreate,rotation:0,scaleX:1, scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:67,y:241,index:73,id:100527,pPreCreateCode:gml_RoomCC_rm_stats_player_18_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:70,y:255,index:75,id:100528,pPreCreateCode:gml_RoomCC_rm_stats_player_19_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:292,y:255,index:75,id:100529,pPreCreateCode:gml_RoomCC_rm_stats_player_20_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1, imageIndex:0,colour:4294967295},{x:289,y:241,index:73,id:100530,pPreCreateCode:gml_RoomCC_rm_stats_player_21_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:397,y:232,index:20,id:100506,pCode:gml_RoomCC_rm_stats_player_22_Create,pPreCreateCode:gml_RoomCC_rm_stats_player_22_PreCreate,rotation:0,scaleX:2.3499999046325684,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:316,y:232,index:20,id:100507,pCode:gml_RoomCC_rm_stats_player_23_Create,pPreCreateCode:gml_RoomCC_rm_stats_player_23_PreCreate, rotation:0,scaleX:2.3499999046325684,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:16,y:40,index:149,id:100512,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:-16,index:31,id:100531,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:113,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances_StatType",id:114,type:2, depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:2,iinstIDs:[100506,100507]},{pName:"Instances",id:115,type:2,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:24,iinstIDs:[100508,100509,100510,100511,100512,100513,100514,100515,100516,100517,100518,100519,100520,100521,100522,100523,100524,100525,100526,100527,100528,100529,100530,100531]},{pName:"Background",id:116,type:1,depth:300,x:0,y:0, hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_meeting_player",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_meeting_player_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768} ,{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:8,y:232,index:37,id:100533,pPreCreateCode:gml_RoomCC_rm_meeting_player_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:160,y:56,index:67,id:100535,rotation:0,scaleX:1.100000023841858, scaleY:0.25,imageSpeed:1,imageIndex:0,colour:4294967295},{x:160,y:96,index:67,id:100534,rotation:0,scaleX:1.100000023841858,scaleY:0.25,imageSpeed:1,imageIndex:0,colour:4294967295},{x:160,y:136,index:67,id:100536,rotation:0,scaleX:1.100000023841858,scaleY:0.25,imageSpeed:1,imageIndex:0,colour:4294967295},{x:160,y:176,index:67,id:100537,rotation:0,scaleX:1.100000023841858,scaleY:0.25,imageSpeed:1,imageIndex:0,colour:4294967295},{x:55,y:96,index:67,id:100538,pPreCreateCode:gml_RoomCC_rm_meeting_player_5_PreCreate, rotation:0,scaleX:0.550000011920929,scaleY:0.25,imageSpeed:1,imageIndex:0,colour:4294967295},{x:56,y:56,index:67,id:100539,pPreCreateCode:gml_RoomCC_rm_meeting_player_6_PreCreate,rotation:0,scaleX:0.550000011920929,scaleY:0.25,imageSpeed:1,imageIndex:0,colour:4294967295},{x:55,y:136,index:67,id:100540,pPreCreateCode:gml_RoomCC_rm_meeting_player_7_PreCreate,rotation:0,scaleX:0.550000011920929,scaleY:0.25,imageSpeed:1,imageIndex:0,colour:4294967295},{x:55,y:176,index:67,id:100541,pPreCreateCode:gml_RoomCC_rm_meeting_player_8_PreCreate, rotation:0,scaleX:0.550000011920929,scaleY:0.25,imageSpeed:1,imageIndex:0,colour:4294967295},{x:40,y:40,index:67,id:100532,pPreCreateCode:gml_RoomCC_rm_meeting_player_9_PreCreate,rotation:0,scaleX:2.5,scaleY:1.4375,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:8,index:71,id:100542,pPreCreateCode:gml_RoomCC_rm_meeting_player_10_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:352,y:56,index:40,id:100543,pPreCreateCode:gml_RoomCC_rm_meeting_player_11_PreCreate, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:352,y:96,index:40,id:100545,pPreCreateCode:gml_RoomCC_rm_meeting_player_12_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:352,y:136,index:40,id:100546,pPreCreateCode:gml_RoomCC_rm_meeting_player_13_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:352,y:176,index:40,id:100547,pPreCreateCode:gml_RoomCC_rm_meeting_player_14_PreCreate,rotation:0,scaleX:1, scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:16,index:76,id:100548,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:248,index:73,id:100549,pPreCreateCode:gml_RoomCC_rm_meeting_player_16_PreCreate,rotation:0,scaleX:7,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-40,y:-8,index:151,id:100544,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:104,index:37,id:100550,pPreCreateCode:gml_RoomCC_rm_meeting_player_18_PreCreate, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:448,y:104,index:37,id:100551,pPreCreateCode:gml_RoomCC_rm_meeting_player_19_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:117,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:118,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"", effectProperties:[],icount:20,iinstIDs:[100532,100533,100534,100535,100536,100537,100538,100539,100540,100541,100542,100543,100544,100545,100546,100547,100548,100549,100550,100551]},{pName:"Background",id:119,type:1,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_team_editor",width:480,height:270,speed:0,colour:0, LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_team_editor_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{ x:232,y:8,index:71,id:100552,pPreCreateCode:gml_RoomCC_rm_team_editor_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:32,index:35,id:100554,pPreCreateCode:gml_RoomCC_rm_team_editor_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:136,y:32,index:35,id:100553,pPreCreateCode:gml_RoomCC_rm_team_editor_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:32,index:35,id:100555, pPreCreateCode:gml_RoomCC_rm_team_editor_3_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:32,index:35,id:100557,pPreCreateCode:gml_RoomCC_rm_team_editor_4_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:35,id:100558,pPreCreateCode:gml_RoomCC_rm_team_editor_5_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:102,y:232,index:35,id:100559,pPreCreateCode:gml_RoomCC_rm_team_editor_6_PreCreate, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:22,y:82,index:73,id:100560,pPreCreateCode:gml_RoomCC_rm_team_editor_7_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:22,y:158,index:73,id:100561,pPreCreateCode:gml_RoomCC_rm_team_editor_8_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:22,y:196,index:73,id:100562,pPreCreateCode:gml_RoomCC_rm_team_editor_9_PreCreate,rotation:0,scaleX:1,scaleY:1, imageSpeed:1,imageIndex:0,colour:4294967295},{x:22,y:120,index:73,id:100563,pPreCreateCode:gml_RoomCC_rm_team_editor_10_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:6,index:67,id:100566,rotation:0,scaleX:0.4000000059604645,scaleY:0.15000000596046448,imageSpeed:1,imageIndex:0,colour:4294967295},{x:196,y:232,index:35,id:100564,pPreCreateCode:gml_RoomCC_rm_team_editor_12_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295} ,{x:290,y:232,index:35,id:100565,pPreCreateCode:gml_RoomCC_rm_team_editor_13_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:232,index:35,id:100567,pPreCreateCode:gml_RoomCC_rm_team_editor_14_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-32,y:-32,index:129,id:100556,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:80,index:37,id:100568,pPreCreateCode:gml_RoomCC_rm_team_editor_16_PreCreate, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:118,index:37,id:100569,pPreCreateCode:gml_RoomCC_rm_team_editor_17_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:156,index:37,id:100570,pPreCreateCode:gml_RoomCC_rm_team_editor_18_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:194,index:37,id:100571,pPreCreateCode:gml_RoomCC_rm_team_editor_19_PreCreate,rotation:0,scaleX:1,scaleY:1, imageSpeed:1,imageIndex:0,colour:4294967295},{x:96,y:32,index:37,id:100572,pPreCreateCode:gml_RoomCC_rm_team_editor_20_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:224,y:32,index:37,id:100573,pPreCreateCode:gml_RoomCC_rm_team_editor_21_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:120,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[], icount:0,iinstIDs:[]},{pName:"Instances",id:121,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:22,iinstIDs:[100552,100553,100554,100555,100556,100557,100558,100559,100560,100561,100562,100563,100564,100565,100566,100567,100568,100569,100570,100571,100572,100573]},{pName:"Background",id:122,type:1,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false, bvtiled:false,bstretch:false,bblend:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_training",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_training_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024, hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:224,y:8,index:71,id:100574,pPreCreateCode:gml_RoomCC_rm_training_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:184,y:48,index:35,id:100576,pPreCreateCode:gml_RoomCC_rm_training_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:184,y:96,index:35,id:100578,pPreCreateCode:gml_RoomCC_rm_training_2_PreCreate, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:37,id:100575,pPreCreateCode:gml_RoomCC_rm_training_3_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:0,index:158,id:100577,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:184,y:144,index:35,id:100579,pPreCreateCode:gml_RoomCC_rm_training_5_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{ pName:"PopUps",id:123,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:124,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:6,iinstIDs:[100574,100575,100576,100577,100578,100579]},{pName:"Background",id:125,type:1,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1, bhtiled:false,bvtiled:false,bstretch:false,bblend:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_viewhires",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_viewhires_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768} ,{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:232,y:8,index:71,id:100580,pPreCreateCode:gml_RoomCC_rm_viewhires_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:216,y:-192,index:73,id:100581,pPreCreateCode:gml_RoomCC_rm_viewhires_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:144,y:36,index:67,id:100582,pPreCreateCode:gml_RoomCC_rm_viewhires_2_PreCreate, rotation:0,scaleX:1.9500000476837158,scaleY:1.46875,imageSpeed:1,imageIndex:0,colour:4294967295},{x:160,y:136,index:50,id:100583,pPreCreateCode:gml_RoomCC_rm_viewhires_3_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:232,y:136,index:50,id:100584,pPreCreateCode:gml_RoomCC_rm_viewhires_4_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:304,y:136,index:50,id:100585,pPreCreateCode:gml_RoomCC_rm_viewhires_5_PreCreate,rotation:0, scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:376,y:136,index:50,id:100586,pPreCreateCode:gml_RoomCC_rm_viewhires_6_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:37,id:100587,pPreCreateCode:gml_RoomCC_rm_viewhires_7_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:24,y:36,index:67,id:100589,pPreCreateCode:gml_RoomCC_rm_viewhires_8_PreCreate,rotation:0,scaleX:0.6000000238418579,scaleY:1.46875, imageSpeed:1,imageIndex:0,colour:4294967295},{x:40,y:48,index:50,id:100590,pPreCreateCode:gml_RoomCC_rm_viewhires_9_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:40,y:136,index:50,id:100591,pPreCreateCode:gml_RoomCC_rm_viewhires_10_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:160,y:48,index:50,id:100592,pPreCreateCode:gml_RoomCC_rm_viewhires_11_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295} ,{x:232,y:48,index:50,id:100593,pPreCreateCode:gml_RoomCC_rm_viewhires_12_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:304,y:48,index:50,id:100594,pPreCreateCode:gml_RoomCC_rm_viewhires_13_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:376,y:48,index:50,id:100595,pPreCreateCode:gml_RoomCC_rm_viewhires_14_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:-16,index:136,id:100588, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:440,y:232,index:45,id:100596,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:16,index:76,id:100597,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:256,y:232,index:35,id:100598,pPreCreateCode:gml_RoomCC_rm_viewhires_18_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:126,type:2,depth:0,x:0, y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:127,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:19,iinstIDs:[100580,100581,100582,100583,100584,100585,100586,100587,100588,100589,100590,100591,100592,100593,100594,100595,100596,100597,100598]},{pName:"Background",id:128,type:1,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[], bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_watermark",width:480,height:270,speed:0,colour:0,LayerCount:4,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_watermark_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768} ,{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:8,y:232,index:37,id:100599,pPreCreateCode:gml_RoomCC_rm_watermark_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:248,index:75,id:100600,pPreCreateCode:gml_RoomCC_rm_watermark_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295} ,{x:240,y:40,index:75,id:100601,pPreCreateCode:gml_RoomCC_rm_watermark_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:37,id:100604,pPreCreateCode:gml_RoomCC_rm_watermark_3_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:472,y:262,index:75,id:100603,pPreCreateCode:gml_RoomCC_rm_watermark_4_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-64,y:-48,index:140,id:100602, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:440,y:24,index:37,id:100605,pPreCreateCode:gml_RoomCC_rm_watermark_6_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:24,index:37,id:100606,pPreCreateCode:gml_RoomCC_rm_watermark_7_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:129,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"", effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:130,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:5,iinstIDs:[100599,100600,100601,100602,100603]},{pName:"Instances_1",id:131,type:2,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:3,iinstIDs:[100604,100605,100606]},{pName:"Background",id:132,type:1,depth:300,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"", effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-41166,bimage_index:0,bimage_speed:15}]},{pName:"rm_winners",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_winners_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768, wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:232,y:8,index:71,id:100607,pPreCreateCode:gml_RoomCC_rm_winners_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:232,index:35,id:100608,pPreCreateCode:gml_RoomCC_rm_winners_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0, colour:4294967295},{x:240,y:40,index:75,id:100609,pPreCreateCode:gml_RoomCC_rm_winners_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:198,index:75,id:100610,pPreCreateCode:gml_RoomCC_rm_winners_3_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:64,index:75,id:100612,pPreCreateCode:gml_RoomCC_rm_winners_4_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:336,y:198,index:75, id:100613,pPreCreateCode:gml_RoomCC_rm_winners_5_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:152,y:198,index:75,id:100614,pPreCreateCode:gml_RoomCC_rm_winners_6_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:0,index:154,id:100611,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:133,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"", effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:134,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:8,iinstIDs:[100607,100608,100609,100610,100611,100612,100613,100614]},{pName:"Background",id:135,type:1,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-499648,bimage_index:0,bimage_speed:15} ]},{pName:"rm_xp",width:480,height:270,speed:0,colour:0,LayerCount:6,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_xp_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024, hview:768,wport:1024,hport:768}],pInstances:[{x:384,y:232,index:35,id:100621,pPreCreateCode:gml_RoomCC_rm_xp_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:224,y:8,index:71,id:100622,pPreCreateCode:gml_RoomCC_rm_xp_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:16,y:72,index:67,id:100623,pPreCreateCode:gml_RoomCC_rm_xp_2_PreCreate,rotation:0,scaleX:2.799999952316284,scaleY:1.1875,imageSpeed:1,imageIndex:0,colour:4294967295} ,{x:8,y:232,index:37,id:100624,pPreCreateCode:gml_RoomCC_rm_xp_3_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:16,y:32,index:57,id:100625,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:16,index:76,id:100626,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:232,y:256,index:77,id:100627,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:48,y:232,index:35,id:100628,pPreCreateCode:gml_RoomCC_rm_xp_7_PreCreate, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:24,y:64,index:147,id:100629,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:144,y:232,index:35,id:100630,pPreCreateCode:gml_RoomCC_rm_xp_9_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:232,index:35,id:100631,pPreCreateCode:gml_RoomCC_rm_xp_10_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:32,index:66, id:100618,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:400,y:32,index:64,id:100619,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:320,y:32,index:62,id:100620,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:32,index:21,id:100615,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:320,y:32,index:21,id:100616,pPreCreateCode:gml_RoomCC_rm_xp_15_PreCreate,rotation:0,scaleX:1,scaleY:1, imageSpeed:1,imageIndex:0,colour:4294967295},{x:400,y:32,index:21,id:100617,pPreCreateCode:gml_RoomCC_rm_xp_16_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:336,y:232,index:35,id:100632,pPreCreateCode:gml_RoomCC_rm_xp_17_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:136,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]} ,{pName:"Instances_1",id:137,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Layer_QB",id:138,type:2,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:3,iinstIDs:[100615,100616,100617]},{pName:"Layer_FM",id:139,type:2,depth:300,x:0,y:0,hspeed:0,vspeed:0,visible:0,effectEnabled:1,effectType:"",effectProperties:[],icount:3,iinstIDs:[100618,100619,100620]},{pName:"Instances", id:140,type:2,depth:400,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:12,iinstIDs:[100621,100622,100623,100624,100625,100626,100627,100628,100629,100630,100631,100632]},{pName:"Background",id:141,type:1,depth:500,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:true,bblend:-16777216,bimage_index:0,bimage_speed:30}]},{pName:"rm_ad_retrogoal", width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_ad_retrogoal_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768, wport:1024,hport:768}],pInstances:[{x:-24,y:-16,index:63,id:100634,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:440,y:8,index:37,id:100633,pPreCreateCode:gml_RoomCC_rm_ad_retrogoal_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:142,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:143,type:2,depth:100, x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:2,iinstIDs:[100633,100634]},{pName:"Background",id:144,type:1,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-1,bimage_index:0,bimage_speed:30}]},{pName:"rm_options2",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false, pCode:gml_Room_rm_options2_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:224,y:8,index:71,id:100636,pPreCreateCode:gml_RoomCC_rm_options2_0_PreCreate, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:37,id:100637,pPreCreateCode:gml_RoomCC_rm_options2_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:16,y:32,index:20,id:100638,pPreCreateCode:gml_RoomCC_rm_options2_2_PreCreate,rotation:0,scaleX:6.57575798034668,scaleY:2.6470587253570557,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:32,index:20,id:100639,pPreCreateCode:gml_RoomCC_rm_options2_3_PreCreate,rotation:0, scaleX:6.57575798034668,scaleY:2.6470587253570557,imageSpeed:1,imageIndex:0,colour:4294967295},{x:16,y:128,index:20,id:100640,pPreCreateCode:gml_RoomCC_rm_options2_4_PreCreate,rotation:0,scaleX:6.57575798034668,scaleY:2.6470587253570557,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:128,index:20,id:100641,pPreCreateCode:gml_RoomCC_rm_options2_5_PreCreate,rotation:0,scaleX:6.57575798034668,scaleY:2.6470587253570557,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:232,index:20,id:100642, pPreCreateCode:gml_RoomCC_rm_options2_6_PreCreate,rotation:0,scaleX:2.696969509124756,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:232,index:20,id:100643,pPreCreateCode:gml_RoomCC_rm_options2_7_PreCreate,rotation:0,scaleX:2.696969509124756,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:192,y:232,index:20,id:100644,pPreCreateCode:gml_RoomCC_rm_options2_8_PreCreate,rotation:0,scaleX:2.696969509124756,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:96,y:232,index:20, id:100645,pPreCreateCode:gml_RoomCC_rm_options2_9_PreCreate,rotation:0,scaleX:2.696969509124756,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:0,index:24,id:100635,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:145,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:146,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1, effectType:"",effectProperties:[],icount:11,iinstIDs:[100635,100636,100637,100638,100639,100640,100641,100642,100643,100644,100645]},{pName:"Background",id:147,type:1,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_options_mapping",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true, viewClearScreen:false,pCode:gml_Room_rm_options_mapping_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:224,y:8,index:71,id:100646,pPreCreateCode:gml_RoomCC_rm_options_mapping_0_PreCreate, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:37,id:100647,pPreCreateCode:gml_RoomCC_rm_options_mapping_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:104,y:232,index:20,id:100648,pPreCreateCode:gml_RoomCC_rm_options_mapping_2_PreCreate,rotation:0,scaleX:2.696969747543335,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:200,y:232,index:20,id:100649,pPreCreateCode:gml_RoomCC_rm_options_mapping_3_PreCreate, rotation:0,scaleX:2.696969747543335,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:296,y:232,index:20,id:100650,pPreCreateCode:gml_RoomCC_rm_options_mapping_4_PreCreate,rotation:0,scaleX:2.696969747543335,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-32,y:0,index:14,id:100651,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:148,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[], icount:0,iinstIDs:[]},{pName:"Instances",id:149,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:6,iinstIDs:[100646,100647,100648,100649,100650,100651]},{pName:"Background",id:150,type:1,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_season_tally", width:480,height:270,speed:0,colour:0,LayerCount:4,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_season_tally_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768, wport:1024,hport:768}],pInstances:[{x:472,y:240,index:75,id:100652,pPreCreateCode:gml_RoomCC_rm_season_tally_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:37,id:100659,pPreCreateCode:gml_RoomCC_rm_season_tally_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:472,y:256,index:75,id:100653,pPreCreateCode:gml_RoomCC_rm_season_tally_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295} ,{x:440,y:104,index:37,id:100660,pPreCreateCode:gml_RoomCC_rm_season_tally_3_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:104,index:37,id:100661,pPreCreateCode:gml_RoomCC_rm_season_tally_4_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:49,y:232,index:67,id:100655,pPreCreateCode:gml_RoomCC_rm_season_tally_5_PreCreate,rotation:0,scaleX:0.4000000059604645,scaleY:0.25,imageSpeed:1,imageIndex:0,colour:4294967295},{x:120, y:232,index:89,id:100656,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:16,index:67,id:100657,rotation:0,scaleX:2.5500001907348633,scaleY:1.625,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:8,index:75,id:100658,pPreCreateCode:gml_RoomCC_rm_season_tally_8_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-48,y:-8,index:120,id:100654,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{ pName:"PopUps",id:151,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:152,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:7,iinstIDs:[100652,100653,100654,100655,100656,100657,100658]},{pName:"Instances_1",id:153,type:2,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:3,iinstIDs:[100659, 100660,100661]},{pName:"Background",id:154,type:1,depth:300,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-41166,bimage_index:0,bimage_speed:15}]},{pName:"rm_qb_life",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_qb_life_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480, hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:224,y:8,index:71,id:100662,pPreCreateCode:gml_RoomCC_rm_qb_life_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:37, id:100663,pPreCreateCode:gml_RoomCC_rm_qb_life_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:456,y:8,index:53,id:100664,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:16,index:76,id:100665,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:40,index:67,id:100667,pPreCreateCode:gml_RoomCC_rm_qb_life_4_PreCreate,rotation:0,scaleX:1.2999999523162842,scaleY:1.375,imageSpeed:1,imageIndex:0,colour:4294967295} ,{x:24,y:40,index:157,id:100668,pPreCreateCode:gml_RoomCC_rm_qb_life_5_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:184,index:55,id:100669,pPreCreateCode:gml_RoomCC_rm_qb_life_6_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:136,index:56,id:100670,pPreCreateCode:gml_RoomCC_rm_qb_life_7_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:88,index:28,id:100671,pPreCreateCode:gml_RoomCC_rm_qb_life_8_PreCreate, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:24,y:88,index:15,id:100672,pPreCreateCode:gml_RoomCC_rm_qb_life_9_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:40,index:9,id:100674,pPreCreateCode:gml_RoomCC_rm_qb_life_10_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:24,y:88,index:67,id:100666,rotation:0,scaleX:1.2999999523162842,scaleY:0.625,imageSpeed:1,imageIndex:0,colour:4294967295} ,{x:24,y:184,index:17,id:100675,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:104,y:128,index:20,id:100676,pPreCreateCode:gml_RoomCC_rm_qb_life_13_PreCreate,rotation:0,scaleX:1.727272629737854,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:128,index:67,id:100677,pPreCreateCode:gml_RoomCC_rm_qb_life_14_PreCreate,rotation:0,scaleX:0.4000000059604645,scaleY:0.25,imageSpeed:1,imageIndex:0,colour:4294967295},{x:168,y:128,index:20,id:100678,pPreCreateCode:gml_RoomCC_rm_qb_life_15_PreCreate, rotation:0,scaleX:1.727272629737854,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:232,index:20,id:100679,pPreCreateCode:gml_RoomCC_rm_qb_life_16_PreCreate,rotation:0,scaleX:2.696969747543335,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:288,y:232,index:35,id:100680,pPreCreateCode:gml_RoomCC_rm_qb_life_17_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:200,y:328,index:35,id:100681,pPreCreateCode:gml_RoomCC_rm_qb_life_18_PreCreate, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:64,y:144,index:75,id:100682,pPreCreateCode:gml_RoomCC_rm_qb_life_19_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-16,y:0,index:7,id:100673,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:155,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances", id:156,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:21,iinstIDs:[100662,100663,100664,100665,100666,100667,100668,100669,100670,100671,100672,100673,100674,100675,100676,100677,100678,100679,100680,100681,100682]},{pName:"Background",id:157,type:1,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-499648, bimage_index:0,bimage_speed:15}]},{pName:"rm_qb_post_match",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_qb_post_match_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768} ,{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:232,y:8,index:71,id:100683,pPreCreateCode:gml_RoomCC_rm_qb_post_match_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:456,y:8,index:53,id:100684,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:16,index:76,id:100685,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:48,index:75,id:100689, pPreCreateCode:gml_RoomCC_rm_qb_post_match_3_PreCreate,rotation:0,scaleX:4,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:64,index:75,id:100690,pPreCreateCode:gml_RoomCC_rm_qb_post_match_4_PreCreate,rotation:0,scaleX:4,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:80,index:75,id:100691,pPreCreateCode:gml_RoomCC_rm_qb_post_match_5_PreCreate,rotation:0,scaleX:4,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:96,index:75,id:100692,pPreCreateCode:gml_RoomCC_rm_qb_post_match_6_PreCreate, rotation:0,scaleX:4,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:192,index:75,id:100693,pPreCreateCode:gml_RoomCC_rm_qb_post_match_7_PreCreate,rotation:0,scaleX:4,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:208,index:75,id:100694,pPreCreateCode:gml_RoomCC_rm_qb_post_match_8_PreCreate,rotation:0,scaleX:4,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:136,y:32,index:67,id:100687,rotation:0,scaleX:1.2999999523162842,scaleY:0.625,imageSpeed:1,imageIndex:0, colour:4294967295},{x:136,y:176,index:67,id:100686,pPreCreateCode:gml_RoomCC_rm_qb_post_match_10_PreCreate,rotation:0,scaleX:1.2999999523162842,scaleY:0.375,imageSpeed:1,imageIndex:0,colour:4294967295},{x:384,y:232,index:35,id:100695,pPreCreateCode:gml_RoomCC_rm_qb_post_match_11_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:136,y:128,index:21,id:100696,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:208,y:128,index:21,id:100697, pPreCreateCode:gml_RoomCC_rm_qb_post_match_13_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:280,y:128,index:21,id:100698,pPreCreateCode:gml_RoomCC_rm_qb_post_match_14_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-16,y:-16,index:0,id:100688,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:158,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1, effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:159,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:16,iinstIDs:[100683,100684,100685,100686,100687,100688,100689,100690,100691,100692,100693,100694,100695,100696,100697,100698]},{pName:"Background",id:160,type:1,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false, bvtiled:false,bstretch:false,bblend:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_qb_shopping",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_qb_shopping_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{ wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:224,y:8,index:71,id:100699,pPreCreateCode:gml_RoomCC_rm_qb_shopping_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:112,index:37,id:100700,pPreCreateCode:gml_RoomCC_rm_qb_shopping_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:448,y:112,index:37,id:100701,pPreCreateCode:gml_RoomCC_rm_qb_shopping_2_PreCreate, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:35,index:75,id:100702,pPreCreateCode:gml_RoomCC_rm_qb_shopping_3_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:456,y:8,index:53,id:100703,pPreCreateCode:gml_RoomCC_rm_qb_shopping_4_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:256,y:-240,index:73,id:100704,pPreCreateCode:gml_RoomCC_rm_qb_shopping_5_PreCreate,rotation:0,scaleX:1,scaleY:1, imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:16,index:76,id:100705,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:37,id:100706,pPreCreateCode:gml_RoomCC_rm_qb_shopping_7_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:104,y:232,index:20,id:100707,pPreCreateCode:gml_RoomCC_rm_qb_shopping_8_PreCreate,rotation:0,scaleX:2.696969509124756,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:200,y:232,index:20, id:100708,pPreCreateCode:gml_RoomCC_rm_qb_shopping_9_PreCreate,rotation:0,scaleX:2.696969509124756,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:296,y:232,index:20,id:100709,pPreCreateCode:gml_RoomCC_rm_qb_shopping_10_PreCreate,rotation:0,scaleX:2.696969509124756,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-16,y:-8,index:3,id:100710,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:161,type:2,depth:0,x:0,y:0,hspeed:0, vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:162,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:12,iinstIDs:[100699,100700,100701,100702,100703,100704,100705,100706,100707,100708,100709,100710]},{pName:"Background",id:163,type:1,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false, bvtiled:false,bstretch:false,bblend:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_qb_contract",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_qb_contract_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{ wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:224,y:8,index:71,id:100711,pPreCreateCode:gml_RoomCC_rm_qb_contract_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:37,id:100714,pPreCreateCode:gml_RoomCC_rm_qb_contract_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:16,index:76,id:100715,rotation:0,scaleX:1, scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:124,y:72,index:73,id:100716,pPreCreateCode:gml_RoomCC_rm_qb_contract_3_PreCreate,rotation:0,scaleX:2.8333332538604736,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:124,y:56,index:73,id:100717,pPreCreateCode:gml_RoomCC_rm_qb_contract_4_PreCreate,rotation:0,scaleX:2.8333332538604736,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:124,y:113,index:73,id:100718,pPreCreateCode:gml_RoomCC_rm_qb_contract_5_PreCreate,rotation:0, scaleX:2.8333332538604736,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:124,y:96,index:73,id:100719,pPreCreateCode:gml_RoomCC_rm_qb_contract_6_PreCreate,rotation:0,scaleX:2.8333332538604736,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:124,y:157,index:73,id:100720,pPreCreateCode:gml_RoomCC_rm_qb_contract_7_PreCreate,rotation:0,scaleX:2.8333332538604736,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:124,y:140,index:73,id:100721,pPreCreateCode:gml_RoomCC_rm_qb_contract_8_PreCreate, rotation:0,scaleX:2.8333332538604736,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:124,y:201,index:73,id:100722,pPreCreateCode:gml_RoomCC_rm_qb_contract_9_PreCreate,rotation:0,scaleX:2.8333332538604736,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:124,y:184,index:73,id:100723,pPreCreateCode:gml_RoomCC_rm_qb_contract_10_PreCreate,rotation:0,scaleX:2.8333332538604736,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:448,y:16,index:75,id:100725,rotation:0,scaleX:1,scaleY:1, imageSpeed:1,imageIndex:0,colour:4294967295},{x:16,y:40,index:67,id:100712,pPreCreateCode:gml_RoomCC_rm_qb_contract_12_PreCreate,rotation:0,scaleX:1.350000023841858,scaleY:1.4375,imageSpeed:1,imageIndex:0,colour:4294967295},{x:356,y:72,index:73,id:100726,pPreCreateCode:gml_RoomCC_rm_qb_contract_13_PreCreate,rotation:0,scaleX:2.8333332538604736,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:356,y:56,index:73,id:100727,pPreCreateCode:gml_RoomCC_rm_qb_contract_14_PreCreate,rotation:0,scaleX:2.8333332538604736, scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:356,y:112,index:73,id:100728,pPreCreateCode:gml_RoomCC_rm_qb_contract_15_PreCreate,rotation:0,scaleX:2.8333332538604736,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:356,y:96,index:73,id:100729,pPreCreateCode:gml_RoomCC_rm_qb_contract_16_PreCreate,rotation:0,scaleX:2.8333332538604736,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:356,y:156,index:73,id:100730,pPreCreateCode:gml_RoomCC_rm_qb_contract_17_PreCreate,rotation:0, scaleX:2.8333332538604736,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:356,y:140,index:73,id:100731,pPreCreateCode:gml_RoomCC_rm_qb_contract_18_PreCreate,rotation:0,scaleX:2.8333332538604736,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:356,y:200,index:73,id:100732,pPreCreateCode:gml_RoomCC_rm_qb_contract_19_PreCreate,rotation:0,scaleX:2.8333332538604736,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:356,y:184,index:73,id:100733,pPreCreateCode:gml_RoomCC_rm_qb_contract_20_PreCreate, rotation:0,scaleX:2.8333332538604736,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:40,index:67,id:100713,pPreCreateCode:gml_RoomCC_rm_qb_contract_21_PreCreate,rotation:0,scaleX:1.3500001430511475,scaleY:1.4375,imageSpeed:1,imageIndex:0,colour:4294967295},{x:256,y:100,index:20,id:100734,pPreCreateCode:gml_RoomCC_rm_qb_contract_22_PreCreate,rotation:0,scaleX:1,scaleY:0.7647058963775635,imageSpeed:1,imageIndex:0,colour:4294967295},{x:424,y:100,index:20,id:100735,pPreCreateCode:gml_RoomCC_rm_qb_contract_23_PreCreate, rotation:0,scaleX:1,scaleY:0.7647058963775635,imageSpeed:1,imageIndex:0,colour:4294967295},{x:424,y:144,index:20,id:100736,pPreCreateCode:gml_RoomCC_rm_qb_contract_24_PreCreate,rotation:0,scaleX:1,scaleY:0.7647058963775635,imageSpeed:1,imageIndex:0,colour:4294967295},{x:256,y:144,index:20,id:100737,pPreCreateCode:gml_RoomCC_rm_qb_contract_25_PreCreate,rotation:0,scaleX:1,scaleY:0.7647058963775635,imageSpeed:1,imageIndex:0,colour:4294967295},{x:424,y:188,index:20,id:100738,pPreCreateCode:gml_RoomCC_rm_qb_contract_26_PreCreate, rotation:0,scaleX:1,scaleY:0.7647058963775635,imageSpeed:1,imageIndex:0,colour:4294967295},{x:256,y:188,index:20,id:100739,pPreCreateCode:gml_RoomCC_rm_qb_contract_27_PreCreate,rotation:0,scaleX:1,scaleY:0.7647058963775635,imageSpeed:1,imageIndex:0,colour:4294967295},{x:376,y:232,index:35,id:100740,pPreCreateCode:gml_RoomCC_rm_qb_contract_28_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-16,y:0,index:1,id:100724,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0, colour:4294967295},{x:248,y:232,index:35,id:100741,pPreCreateCode:gml_RoomCC_rm_qb_contract_30_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:164,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:165,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:31,iinstIDs:[100711,100712, 100713,100714,100715,100716,100717,100718,100719,100720,100721,100722,100723,100724,100725,100726,100727,100728,100729,100730,100731,100732,100733,100734,100735,100736,100737,100738,100739,100740,100741]},{pName:"Background",id:166,type:1,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_qb_negotiate",width:480, height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_qb_negotiate_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024, hport:768}],pInstances:[{x:224,y:8,index:71,id:100742,pPreCreateCode:gml_RoomCC_rm_qb_negotiate_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:37,id:100743,pPreCreateCode:gml_RoomCC_rm_qb_negotiate_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:216,y:80,index:20,id:100744,pPreCreateCode:gml_RoomCC_rm_qb_negotiate_2_PreCreate,rotation:0,scaleX:1.4848484992980957,scaleY:0.7647058963775635,imageSpeed:1, imageIndex:0,colour:4294967295},{x:216,y:192,index:20,id:100745,pPreCreateCode:gml_RoomCC_rm_qb_negotiate_3_PreCreate,rotation:0,scaleX:1.4848484992980957,scaleY:0.7647058963775635,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-16,y:0,index:81,id:100746,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:248,index:73,id:100747,pPreCreateCode:gml_RoomCC_rm_qb_negotiate_5_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:52, index:73,id:100748,pPreCreateCode:gml_RoomCC_rm_qb_negotiate_6_PreCreate,rotation:0,scaleX:9.666666984558105,scaleY:1.5,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:167,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:168,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:7,iinstIDs:[100742,100743,100744,100745, 100746,100747,100748]},{pName:"Background",id:169,type:1,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_qb_post_training",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_qb_post_training_Create,backgrounds:[],views:[{visible:true, wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:232,y:8,index:71,id:100749,pPreCreateCode:gml_RoomCC_rm_qb_post_training_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0, colour:4294967295},{x:456,y:8,index:53,id:100750,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:16,index:76,id:100751,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:48,index:75,id:100755,pPreCreateCode:gml_RoomCC_rm_qb_post_training_3_PreCreate,rotation:0,scaleX:4,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:64,index:75,id:100756,pPreCreateCode:gml_RoomCC_rm_qb_post_training_4_PreCreate,rotation:0,scaleX:4,scaleY:1, imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:80,index:75,id:100757,pPreCreateCode:gml_RoomCC_rm_qb_post_training_5_PreCreate,rotation:0,scaleX:4,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:96,index:75,id:100758,pPreCreateCode:gml_RoomCC_rm_qb_post_training_6_PreCreate,rotation:0,scaleX:4,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:240,y:192,index:75,id:100759,pPreCreateCode:gml_RoomCC_rm_qb_post_training_7_PreCreate,rotation:0,scaleX:4,scaleY:1,imageSpeed:1, imageIndex:0,colour:4294967295},{x:240,y:208,index:75,id:100760,pPreCreateCode:gml_RoomCC_rm_qb_post_training_8_PreCreate,rotation:0,scaleX:4,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:136,y:32,index:67,id:100753,rotation:0,scaleX:1.2999999523162842,scaleY:0.625,imageSpeed:1,imageIndex:0,colour:4294967295},{x:136,y:176,index:67,id:100752,pPreCreateCode:gml_RoomCC_rm_qb_post_training_10_PreCreate,rotation:0,scaleX:1.2999999523162842,scaleY:0.375,imageSpeed:1,imageIndex:0,colour:4294967295} ,{x:384,y:232,index:35,id:100761,pPreCreateCode:gml_RoomCC_rm_qb_post_training_11_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:136,y:128,index:21,id:100762,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:208,y:128,index:21,id:100763,pPreCreateCode:gml_RoomCC_rm_qb_post_training_13_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:280,y:128,index:21,id:100764,pPreCreateCode:gml_RoomCC_rm_qb_post_training_14_PreCreate, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-16,y:-16,index:0,id:100754,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:170,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:171,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:16,iinstIDs:[100749,100750, 100751,100752,100753,100754,100755,100756,100757,100758,100759,100760,100761,100762,100763,100764]},{pName:"Background",id:172,type:1,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_draft_college",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_draft_college_Create, backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1366,hview:768,wport:1366,hport:768},{wview:1366,hview:768,wport:1366,hport:768},{wview:1366,hview:768,wport:1366,hport:768},{wview:1366,hview:768,wport:1366,hport:768},{wview:1366,hview:768,wport:1366,hport:768},{wview:1366,hview:768,wport:1366,hport:768},{wview:1366,hview:768,wport:1366,hport:768}],pInstances:[{x:0,y:0,index:10,id:100765,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}], tiles:[],layers:[{pName:"PopUps",id:173,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:174,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:1,iinstIDs:[100765]},{pName:"Background",id:175,type:1,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false, bvtiled:false,bstretch:true,bblend:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_profile_boss",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_profile_boss_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}, {wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:92,y:58,index:75,id:100768,pPreCreateCode:gml_RoomCC_rm_profile_boss_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:92,y:115,index:75,id:100769,pPreCreateCode:gml_RoomCC_rm_profile_boss_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:92,y:100,index:75,id:100770,pPreCreateCode:gml_RoomCC_rm_profile_boss_2_PreCreate, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:216,y:112,index:53,id:100772,pPreCreateCode:gml_RoomCC_rm_profile_boss_3_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:16,y:48,index:50,id:100771,pPreCreateCode:gml_RoomCC_rm_profile_boss_4_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:32,y:16,index:73,id:100773,pPreCreateCode:gml_RoomCC_rm_profile_boss_5_PreCreate,rotation:0,scaleX:1,scaleY:1, imageSpeed:1,imageIndex:0,colour:4294967295},{x:448,y:257,index:75,id:100774,pPreCreateCode:gml_RoomCC_rm_profile_boss_6_PreCreate,rotation:0,scaleX:1,scaleY:-1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:40,index:67,id:100767,pPreCreateCode:gml_RoomCC_rm_profile_boss_7_PreCreate,rotation:0,scaleX:1.4500000476837158,scaleY:0.7421879172325134,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:144,index:94,id:100775,pPreCreateCode:gml_RoomCC_rm_profile_boss_8_PreCreate,rotation:0,scaleX:1.399999976158142, scaleY:0.5,imageSpeed:1,imageIndex:0,colour:4294967295},{x:248,y:40,index:95,id:100776,pPreCreateCode:gml_RoomCC_rm_profile_boss_9_PreCreate,rotation:0,scaleX:1.399999976158142,scaleY:0.6000000238418579,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:144,index:92,id:100777,pPreCreateCode:gml_RoomCC_rm_profile_boss_10_PreCreate,rotation:0,scaleX:1.4499998092651367,scaleY:0.5,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:37,id:100779,pPreCreateCode:gml_RoomCC_rm_profile_boss_11_PreCreate, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:448,y:0,index:37,id:100780,pPreCreateCode:gml_RoomCC_rm_profile_boss_12_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:92,y:72,index:75,id:100781,pPreCreateCode:gml_RoomCC_rm_profile_boss_13_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:92,y:86,index:75,id:100782,pPreCreateCode:gml_RoomCC_rm_profile_boss_14_PreCreate,rotation:0,scaleX:1,scaleY:1, imageSpeed:1,imageIndex:0,colour:4294967295},{x:232,y:8,index:71,id:100766,pPreCreateCode:gml_RoomCC_rm_profile_boss_15_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:216,y:146,index:53,id:100783,pPreCreateCode:gml_RoomCC_rm_profile_boss_16_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-24,y:0,index:46,id:100778,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps", id:176,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:177,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:18,iinstIDs:[100766,100767,100768,100769,100770,100771,100772,100773,100774,100775,100776,100777,100778,100779,100780,100781,100782,100783]},{pName:"Background",id:178,type:1,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1, effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_exhibition",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_exhibition_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{ wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:232,y:8,index:71,id:100784,pPreCreateCode:gml_RoomCC_rm_exhibition_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:20,id:100785,pPreCreateCode:gml_RoomCC_rm_exhibition_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1, imageIndex:0,colour:4294967295},{x:120,y:98,index:133,id:100786,pPreCreateCode:gml_RoomCC_rm_exhibition_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:360,y:98,index:133,id:100787,pPreCreateCode:gml_RoomCC_rm_exhibition_3_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:198,y:112,index:67,id:100788,pPreCreateCode:gml_RoomCC_rm_exhibition_4_PreCreate,rotation:0,scaleX:0.550000011920929,scaleY:0.375,imageSpeed:1,imageIndex:0, colour:4294967295},{x:184,y:40,index:67,id:100789,pPreCreateCode:gml_RoomCC_rm_exhibition_5_PreCreate,rotation:0,scaleX:0.699999988079071,scaleY:0.4375,imageSpeed:1,imageIndex:0,colour:4294967295},{x:205,y:120,index:40,id:100790,pPreCreateCode:gml_RoomCC_rm_exhibition_6_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:192,y:48,index:20,id:100791,pPreCreateCode:gml_RoomCC_rm_exhibition_7_PreCreate,rotation:0,scaleX:1.2424242496490479,scaleY:1,imageSpeed:1,imageIndex:0, colour:4294967295},{x:245,y:48,index:20,id:100792,pPreCreateCode:gml_RoomCC_rm_exhibition_8_PreCreate,rotation:0,scaleX:1.2424242496490479,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:88,index:20,id:100793,pPreCreateCode:gml_RoomCC_rm_exhibition_9_PreCreate,rotation:0,scaleX:1.9696969985961914,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:408,y:88,index:20,id:100794,pPreCreateCode:gml_RoomCC_rm_exhibition_10_PreCreate,rotation:0,scaleX:1.9696969985961914,scaleY:1,imageSpeed:1, imageIndex:0,colour:4294967295},{x:8,y:48,index:20,id:100797,pPreCreateCode:gml_RoomCC_rm_exhibition_11_PreCreate,rotation:0,scaleX:1.9696969985961914,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:408,y:48,index:20,id:100798,pPreCreateCode:gml_RoomCC_rm_exhibition_12_PreCreate,rotation:0,scaleX:1.9696969985961914,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:440,y:232,index:20,id:100799,pPreCreateCode:gml_RoomCC_rm_exhibition_13_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1, imageIndex:0,colour:4294967295},{x:48,y:232,index:20,id:100796,pPreCreateCode:gml_RoomCC_rm_exhibition_14_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:88,y:232,index:20,id:100802,pPreCreateCode:gml_RoomCC_rm_exhibition_15_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:128,index:20,id:100803,pPreCreateCode:gml_RoomCC_rm_exhibition_16_PreCreate,rotation:0,scaleX:1.9696969985961914,scaleY:1,imageSpeed:1,imageIndex:0, colour:4294967295},{x:408,y:128,index:20,id:100804,pPreCreateCode:gml_RoomCC_rm_exhibition_17_PreCreate,rotation:0,scaleX:1.9696969985961914,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-24,y:-8,index:16,id:100795,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:440,y:40,index:75,id:100800,pPreCreateCode:gml_RoomCC_rm_exhibition_19_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:40,y:40,index:75,id:100801,pPreCreateCode:gml_RoomCC_rm_exhibition_20_PreCreate, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:179,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:180,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:21,iinstIDs:[100784,100785,100786,100787,100788,100789,100790,100791,100792,100793,100794,100795,100796,100797,100798,100799,100800, 100801,100802,100803,100804]},{pName:"Background",id:181,type:1,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_options_exh",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_options_exh_Create,backgrounds:[],views:[{visible:true,wview:480, hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:224,y:8,index:71,id:100805,pPreCreateCode:gml_RoomCC_rm_options_exh_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295} ,{x:8,y:232,index:37,id:100806,pPreCreateCode:gml_RoomCC_rm_options_exh_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:230,y:88,index:40,id:100807,pPreCreateCode:gml_RoomCC_rm_options_exh_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:230,y:46,index:40,id:100808,pPreCreateCode:gml_RoomCC_rm_options_exh_3_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:231,y:170,index:40,id:100809, pPreCreateCode:gml_RoomCC_rm_options_exh_4_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:220,y:104,index:73,id:100810,pPreCreateCode:gml_RoomCC_rm_options_exh_5_PreCreate,rotation:0,scaleX:1.5,scaleY:2,imageSpeed:1,imageIndex:0,colour:4294967295},{x:221,y:186,index:73,id:100811,pPreCreateCode:gml_RoomCC_rm_options_exh_6_PreCreate,rotation:0,scaleX:1.5238100290298462,scaleY:2,imageSpeed:1,imageIndex:0,colour:4294967295},{x:220,y:62,index:73,id:100812,pPreCreateCode:gml_RoomCC_rm_options_exh_7_PreCreate, rotation:0,scaleX:1.5238100290298462,scaleY:2,imageSpeed:1,imageIndex:0,colour:4294967295},{x:221,y:144,index:73,id:100813,pPreCreateCode:gml_RoomCC_rm_options_exh_8_PreCreate,rotation:0,scaleX:1.5238100290298462,scaleY:2,imageSpeed:1,imageIndex:0,colour:4294967295},{x:231,y:128,index:40,id:100814,pPreCreateCode:gml_RoomCC_rm_options_exh_9_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-16,y:0,index:26,id:100815,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0, colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:182,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:183,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:11,iinstIDs:[100805,100806,100807,100808,100809,100810,100811,100812,100813,100814,100815]},{pName:"Background",id:184,type:1,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1, effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_exhibition_postmatch",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_exhibition_postmatch_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024, hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:224,y:8,index:71,id:100816,pPreCreateCode:gml_RoomCC_rm_exhibition_postmatch_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:136,y:72,index:83,id:100817,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295} ,{x:384,y:232,index:35,id:100818,pPreCreateCode:gml_RoomCC_rm_exhibition_postmatch_2_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:0,y:0,index:4,id:100819,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:185,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:186,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0, visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:4,iinstIDs:[100816,100817,100818,100819]},{pName:"Background",id:187,type:1,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-38868,bimage_index:0,bimage_speed:15}]},{pName:"rm_exhibition_options",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false, pCode:gml_Room_rm_exhibition_options_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:232,y:8,index:71,id:100820,pPreCreateCode:gml_RoomCC_rm_exhibition_options_0_PreCreate, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:8,y:232,index:20,id:100821,pPreCreateCode:gml_RoomCC_rm_exhibition_options_1_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:144,y:102,index:67,id:100822,pPreCreateCode:gml_RoomCC_rm_exhibition_options_2_PreCreate,rotation:0,scaleX:1.2000000476837158,scaleY:0.46875,imageSpeed:1,imageIndex:0,colour:4294967295},{x:440,y:232,index:20,id:100824,pPreCreateCode:gml_RoomCC_rm_exhibition_options_3_PreCreate, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295},{x:152,y:114,index:20,id:100823,pPreCreateCode:gml_RoomCC_rm_exhibition_options_4_PreCreate,rotation:0,scaleX:5.323505878448486,scaleY:1.2352941036224365,imageSpeed:1,imageIndex:0,colour:4294967295},{x:-32,y:0,index:29,id:100825,pPreCreateCode:gml_RoomCC_rm_exhibition_options_5_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:188,type:2,depth:0,x:0,y:0, hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:189,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:6,iinstIDs:[100820,100821,100822,100823,100824,100825]},{pName:"Background",id:190,type:1,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false, bblend:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_choose_team_college",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_choose_team_college_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768, wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:0,y:0,index:29,id:100826,pPreCreateCode:gml_RoomCC_rm_choose_team_college_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:191,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:192,type:2,depth:100,x:0,y:0, hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:1,iinstIDs:[100826]},{pName:"Background",id:193,type:1,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_league_college",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false, pCode:gml_Room_rm_league_college_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:0,y:0,index:29,id:100827,pPreCreateCode:gml_RoomCC_rm_league_college_0_PreCreate, rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:194,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:195,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:1,iinstIDs:[100827]},{pName:"Background",id:196,type:1,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"", effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_debug",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_debug_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024, hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:0,y:0,index:29,id:100828,pPreCreateCode:gml_RoomCC_rm_debug_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:197,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0, iinstIDs:[]},{pName:"Instances",id:198,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:1,iinstIDs:[100828]},{pName:"Background",id:199,type:1,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_postseason",width:480,height:270,speed:0,colour:0,LayerCount:3, showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_postseason_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:0,y:0,index:29, id:100829,pPreCreateCode:gml_RoomCC_rm_postseason_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:200,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:201,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:1,iinstIDs:[100829]},{pName:"Background",id:202,type:1,depth:200, x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-499648,bimage_index:0,bimage_speed:15}]},{pName:"rm_editor",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_editor_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{ wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:0,y:0,index:29,id:100830,pPreCreateCode:gml_RoomCC_rm_editor_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:203,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0, visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:204,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:1,iinstIDs:[100830]},{pName:"Background",id:205,type:1,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-499648,bimage_index:0,bimage_speed:15} ]},{pName:"rm_edit_competition",width:480,height:270,speed:0,colour:0,LayerCount:3,showColour:false,enableViews:true,viewClearScreen:false,pCode:gml_Room_rm_edit_competition_Create,backgrounds:[],views:[{visible:true,wview:480,hview:270,wport:480,hport:270},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768},{wview:1024,hview:768, wport:1024,hport:768},{wview:1024,hview:768,wport:1024,hport:768}],pInstances:[{x:0,y:0,index:29,id:100831,pPreCreateCode:gml_RoomCC_rm_edit_competition_0_PreCreate,rotation:0,scaleX:1,scaleY:1,imageSpeed:1,imageIndex:0,colour:4294967295}],tiles:[],layers:[{pName:"PopUps",id:206,type:2,depth:0,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],icount:0,iinstIDs:[]},{pName:"Instances",id:207,type:2,depth:100,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"", effectProperties:[],icount:1,iinstIDs:[100831]},{pName:"Background",id:208,type:1,depth:200,x:0,y:0,hspeed:0,vspeed:0,visible:1,effectEnabled:1,effectType:"",effectProperties:[],bvisible:true,bforeground:false,bindex:-1,bhtiled:false,bvtiled:false,bstretch:false,bblend:-499648,bimage_index:0,bimage_speed:15}]}],RoomOrder:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56],TPageEntries:[{ x:0,y:0,w:64,h:64,XOffset:0,YOffset:0,CropWidth:64,CropHeight:64,ow:64,oh:64,tp:0},{x:2,y:2,w:960,h:540,XOffset:0,YOffset:0,CropWidth:960,CropHeight:540,ow:960,oh:540,tp:1},{x:2,y:546,w:1300,h:237,XOffset:0,YOffset:0,CropWidth:1300,CropHeight:237,ow:1300,oh:237,tp:1},{x:2,y:787,w:1300,h:237,XOffset:0,YOffset:0,CropWidth:1300,CropHeight:237,ow:1300,oh:237,tp:1},{x:2,y:1028,w:1300,h:237,XOffset:0,YOffset:0,CropWidth:1300,CropHeight:237,ow:1300,oh:237,tp:1},{x:2,y:1269,w:1300,h:237,XOffset:0,YOffset:0, CropWidth:1300,CropHeight:237,ow:1300,oh:237,tp:1},{x:2,y:1510,w:1300,h:237,XOffset:0,YOffset:0,CropWidth:1300,CropHeight:237,ow:1300,oh:237,tp:1},{x:2,y:1751,w:1300,h:237,XOffset:0,YOffset:0,CropWidth:1300,CropHeight:237,ow:1300,oh:237,tp:1},{x:2,y:2,w:1300,h:237,XOffset:0,YOffset:0,CropWidth:1300,CropHeight:237,ow:1300,oh:237,tp:2},{x:2,y:243,w:1300,h:237,XOffset:0,YOffset:0,CropWidth:1300,CropHeight:237,ow:1300,oh:237,tp:2},{x:2,y:484,w:1300,h:237,XOffset:0,YOffset:0,CropWidth:1300,CropHeight:237, ow:1300,oh:237,tp:2},{x:2,y:725,w:1300,h:237,XOffset:0,YOffset:0,CropWidth:1300,CropHeight:237,ow:1300,oh:237,tp:2},{x:2,y:966,w:1300,h:237,XOffset:0,YOffset:0,CropWidth:1300,CropHeight:237,ow:1300,oh:237,tp:2},{x:2,y:1207,w:1300,h:237,XOffset:0,YOffset:0,CropWidth:1300,CropHeight:237,ow:1300,oh:237,tp:2},{x:2,y:1448,w:1300,h:237,XOffset:0,YOffset:0,CropWidth:1300,CropHeight:237,ow:1300,oh:237,tp:2},{x:2,y:1689,w:1300,h:237,XOffset:0,YOffset:0,CropWidth:1300,CropHeight:237,ow:1300,oh:237,tp:2},{ x:2,y:2,w:1300,h:237,XOffset:0,YOffset:0,CropWidth:1300,CropHeight:237,ow:1300,oh:237,tp:3},{x:2,y:243,w:1300,h:237,XOffset:0,YOffset:0,CropWidth:1300,CropHeight:237,ow:1300,oh:237,tp:3},{x:1306,y:2,w:588,h:270,XOffset:0,YOffset:0,CropWidth:588,CropHeight:270,ow:588,oh:270,tp:1},{x:1306,y:2,w:588,h:270,XOffset:0,YOffset:0,CropWidth:588,CropHeight:270,ow:588,oh:270,tp:1},{x:1306,y:2,w:588,h:270,XOffset:0,YOffset:0,CropWidth:588,CropHeight:270,ow:588,oh:270,tp:1},{x:1306,y:276,w:480,h:270,XOffset:0, YOffset:0,CropWidth:480,CropHeight:270,ow:480,oh:270,tp:1},{x:1306,y:550,w:480,h:270,XOffset:0,YOffset:0,CropWidth:480,CropHeight:270,ow:480,oh:270,tp:1},{x:1306,y:824,w:480,h:270,XOffset:0,YOffset:0,CropWidth:480,CropHeight:270,ow:480,oh:270,tp:1},{x:1306,y:1098,w:480,h:270,XOffset:0,YOffset:0,CropWidth:480,CropHeight:270,ow:480,oh:270,tp:1},{x:1306,y:1372,w:480,h:270,XOffset:0,YOffset:0,CropWidth:480,CropHeight:270,ow:480,oh:270,tp:1},{x:1306,y:1646,w:480,h:270,XOffset:0,YOffset:0,CropWidth:480, CropHeight:270,ow:480,oh:270,tp:1},{x:1306,y:2,w:480,h:270,XOffset:0,YOffset:0,CropWidth:480,CropHeight:270,ow:480,oh:270,tp:2},{x:1306,y:276,w:480,h:270,XOffset:0,YOffset:0,CropWidth:480,CropHeight:270,ow:480,oh:270,tp:2},{x:1306,y:550,w:480,h:270,XOffset:0,YOffset:0,CropWidth:480,CropHeight:270,ow:480,oh:270,tp:2},{x:1306,y:824,w:460,h:250,XOffset:10,YOffset:10,CropWidth:460,CropHeight:250,ow:480,oh:270,tp:2},{x:1306,y:1078,w:391,h:262,XOffset:0,YOffset:0,CropWidth:391,CropHeight:262,ow:391,oh:262, tp:2},{x:1306,y:1344,w:391,h:262,XOffset:0,YOffset:0,CropWidth:391,CropHeight:262,ow:391,oh:262,tp:2},{x:1790,y:276,w:256,h:256,XOffset:0,YOffset:0,CropWidth:256,CropHeight:256,ow:256,oh:256,tp:1},{x:1790,y:536,w:256,h:256,XOffset:0,YOffset:0,CropWidth:256,CropHeight:256,ow:256,oh:256,tp:1},{x:1790,y:796,w:256,h:256,XOffset:0,YOffset:0,CropWidth:256,CropHeight:256,ow:256,oh:256,tp:1},{x:1306,y:1610,w:416,h:144,XOffset:0,YOffset:0,CropWidth:416,CropHeight:144,ow:416,oh:144,tp:2},{x:1306,y:1758,w:412, h:140,XOffset:2,YOffset:2,CropWidth:412,CropHeight:140,ow:416,oh:144,tp:2},{x:966,y:2,w:288,h:160,XOffset:0,YOffset:0,CropWidth:288,CropHeight:160,ow:288,oh:160,tp:1},{x:2,y:1992,w:1300,h:33,XOffset:0,YOffset:0,CropWidth:1300,CropHeight:33,ow:1300,oh:33,tp:1},{x:2,y:1930,w:1300,h:33,XOffset:0,YOffset:0,CropWidth:1300,CropHeight:33,ow:1300,oh:33,tp:2},{x:2,y:1967,w:1300,h:33,XOffset:0,YOffset:0,CropWidth:1300,CropHeight:33,ow:1300,oh:33,tp:2},{x:2,y:2004,w:1300,h:33,XOffset:0,YOffset:0,CropWidth:1300, CropHeight:33,ow:1300,oh:33,tp:2},{x:2,y:484,w:1300,h:33,XOffset:0,YOffset:0,CropWidth:1300,CropHeight:33,ow:1300,oh:33,tp:3},{x:2,y:521,w:1300,h:33,XOffset:0,YOffset:0,CropWidth:1300,CropHeight:33,ow:1300,oh:33,tp:3},{x:966,y:166,w:224,h:176,XOffset:0,YOffset:0,CropWidth:224,CropHeight:176,ow:224,oh:176,tp:1},{x:966,y:346,w:208,h:176,XOffset:0,YOffset:0,CropWidth:208,CropHeight:176,ow:208,oh:176,tp:1},{x:1306,y:1920,w:448,h:80,XOffset:0,YOffset:0,CropWidth:448,CropHeight:80,ow:448,oh:80,tp:1},{ x:1790,y:1056,w:256,h:128,XOffset:0,YOffset:0,CropWidth:256,CropHeight:128,ow:256,oh:128,tp:1},{x:1790,y:1188,w:256,h:128,XOffset:0,YOffset:0,CropWidth:256,CropHeight:128,ow:256,oh:128,tp:1},{x:1790,y:1320,w:176,h:176,XOffset:0,YOffset:0,CropWidth:176,CropHeight:176,ow:176,oh:176,tp:1},{x:1790,y:1500,w:160,h:160,XOffset:0,YOffset:0,CropWidth:160,CropHeight:160,ow:160,oh:160,tp:1},{x:1790,y:1664,w:160,h:128,XOffset:0,YOffset:0,CropWidth:160,CropHeight:128,ow:160,oh:128,tp:1},{x:1790,y:1796,w:208, h:88,XOffset:0,YOffset:0,CropWidth:208,CropHeight:88,ow:208,oh:88,tp:1},{x:1790,y:1888,w:211,h:84,XOffset:0,YOffset:0,CropWidth:211,CropHeight:84,ow:211,oh:84,tp:1},{x:1306,y:1902,w:211,h:84,XOffset:0,YOffset:0,CropWidth:211,CropHeight:84,ow:211,oh:84,tp:2},{x:1521,y:1902,w:211,h:84,XOffset:0,YOffset:0,CropWidth:211,CropHeight:84,ow:211,oh:84,tp:2},{x:1790,y:2,w:211,h:84,XOffset:0,YOffset:0,CropWidth:211,CropHeight:84,ow:211,oh:84,tp:2},{x:1790,y:90,w:211,h:84,XOffset:0,YOffset:0,CropWidth:211,CropHeight:84, ow:211,oh:84,tp:2},{x:1790,y:178,w:211,h:84,XOffset:0,YOffset:0,CropWidth:211,CropHeight:84,ow:211,oh:84,tp:2},{x:1194,y:166,w:100,h:169,XOffset:0,YOffset:0,CropWidth:100,CropHeight:169,ow:100,oh:169,tp:1},{x:1178,y:346,w:100,h:169,XOffset:0,YOffset:0,CropWidth:100,CropHeight:169,ow:100,oh:169,tp:1},{x:1898,y:2,w:100,h:169,XOffset:0,YOffset:0,CropWidth:100,CropHeight:169,ow:100,oh:169,tp:1},{x:1790,y:266,w:100,h:169,XOffset:0,YOffset:0,CropWidth:100,CropHeight:169,ow:100,oh:169,tp:2},{x:1790,y:439, w:100,h:169,XOffset:0,YOffset:0,CropWidth:100,CropHeight:169,ow:100,oh:169,tp:2},{x:1790,y:612,w:208,h:80,XOffset:0,YOffset:0,CropWidth:208,CropHeight:80,ow:208,oh:80,tp:2},{x:1894,y:266,w:128,h:128,XOffset:0,YOffset:0,CropWidth:128,CropHeight:128,ow:128,oh:128,tp:2},{x:1306,y:2004,w:734,h:22,XOffset:0,YOffset:0,CropWidth:734,CropHeight:22,ow:734,oh:22,tp:1},{x:1790,y:696,w:168,h:92,XOffset:128,YOffset:172,CropWidth:168,CropHeight:92,ow:480,oh:270,tp:2},{x:1790,y:792,w:208,h:64,XOffset:0,YOffset:0, CropWidth:208,CropHeight:64,ow:208,oh:64,tp:2},{x:1898,y:175,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:1},{x:1770,y:860,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:1894,y:398,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:1894,y:461,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:1894,y:524,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59, tp:2},{x:1770,y:923,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:1770,y:986,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:1770,y:1049,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:1736,y:1112,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:1736,y:1175,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:1736,y:1238,w:140,h:59,XOffset:0, YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:1736,y:1301,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:1736,y:1364,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:1736,y:1427,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:1736,y:1490,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:1736,y:1553,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59, ow:140,oh:59,tp:2},{x:1736,y:1553,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:1736,y:1616,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:1736,y:1616,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:1736,y:1679,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:1736,y:1742,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:1736,y:1805,w:140, h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:1736,y:1868,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:1736,y:1931,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:1880,y:1112,w:140,h:59,XOffset:0,YOffset:0,CropWidth:140,CropHeight:59,ow:140,oh:59,tp:2},{x:1306,y:1994,w:299,h:27,XOffset:0,YOffset:0,CropWidth:299,CropHeight:27,ow:299,oh:27,tp:2},{x:1609,y:1994,w:295,h:27,XOffset:2,YOffset:2,CropWidth:295, CropHeight:27,ow:299,oh:29,tp:2},{x:2,y:558,w:208,h:32,XOffset:0,YOffset:0,CropWidth:208,CropHeight:32,ow:208,oh:32,tp:3},{x:1970,y:1320,w:64,h:80,XOffset:0,YOffset:0,CropWidth:64,CropHeight:80,ow:64,oh:80,tp:1},{x:1258,y:2,w:38,h:127,XOffset:31,YOffset:22,CropWidth:38,CropHeight:127,ow:100,oh:169,tp:1},{x:2002,y:2,w:38,h:127,XOffset:31,YOffset:20,CropWidth:38,CropHeight:127,ow:100,oh:169,tp:1},{x:1970,y:1404,w:64,h:64,XOffset:0,YOffset:0,CropWidth:64,CropHeight:64,ow:64,oh:64,tp:1},{x:1970,y:1472, w:64,h:64,XOffset:0,YOffset:0,CropWidth:64,CropHeight:64,ow:64,oh:64,tp:1},{x:1954,y:1540,w:64,h:64,XOffset:0,YOffset:0,CropWidth:64,CropHeight:64,ow:64,oh:64,tp:1},{x:1880,y:1175,w:100,h:40,XOffset:0,YOffset:0,CropWidth:100,CropHeight:40,ow:100,oh:40,tp:2},{x:1880,y:1219,w:100,h:40,XOffset:0,YOffset:0,CropWidth:100,CropHeight:40,ow:100,oh:40,tp:2},{x:1758,y:1976,w:192,h:20,XOffset:0,YOffset:0,CropWidth:192,CropHeight:20,ow:192,oh:20,tp:1},{x:1306,y:2025,w:192,h:20,XOffset:0,YOffset:0,CropWidth:192, CropHeight:20,ow:192,oh:20,tp:2},{x:1954,y:1608,w:64,h:58,XOffset:0,YOffset:0,CropWidth:64,CropHeight:58,ow:64,oh:60,tp:1},{x:1898,y:238,w:106,h:34,XOffset:0,YOffset:0,CropWidth:106,CropHeight:34,ow:106,oh:34,tp:1},{x:1880,y:1263,w:110,h:32,XOffset:0,YOffset:0,CropWidth:110,CropHeight:32,ow:110,oh:32,tp:2},{x:1880,y:1299,w:110,h:32,XOffset:0,YOffset:0,CropWidth:110,CropHeight:32,ow:110,oh:32,tp:2},{x:1880,y:1335,w:110,h:32,XOffset:0,YOffset:0,CropWidth:110,CropHeight:32,ow:110,oh:32,tp:2},{x:1880, y:1371,w:110,h:32,XOffset:0,YOffset:0,CropWidth:110,CropHeight:32,ow:110,oh:32,tp:2},{x:1880,y:1407,w:110,h:32,XOffset:0,YOffset:0,CropWidth:110,CropHeight:32,ow:110,oh:32,tp:2},{x:1880,y:1443,w:104,h:32,XOffset:0,YOffset:2,CropWidth:104,CropHeight:32,ow:106,oh:34,tp:2},{x:1880,y:1479,w:96,h:32,XOffset:0,YOffset:0,CropWidth:96,CropHeight:32,ow:96,oh:32,tp:2},{x:1880,y:1515,w:96,h:32,XOffset:0,YOffset:0,CropWidth:96,CropHeight:32,ow:96,oh:32,tp:2},{x:1880,y:1551,w:96,h:32,XOffset:0,YOffset:0,CropWidth:96, CropHeight:32,ow:96,oh:32,tp:2},{x:1880,y:1587,w:96,h:32,XOffset:0,YOffset:0,CropWidth:96,CropHeight:32,ow:96,oh:32,tp:2},{x:1880,y:1623,w:96,h:32,XOffset:0,YOffset:0,CropWidth:96,CropHeight:32,ow:96,oh:32,tp:2},{x:1880,y:1659,w:96,h:32,XOffset:0,YOffset:0,CropWidth:96,CropHeight:32,ow:96,oh:32,tp:2},{x:1908,y:1695,w:96,h:32,XOffset:0,YOffset:0,CropWidth:96,CropHeight:32,ow:96,oh:32,tp:2},{x:1908,y:1731,w:96,h:32,XOffset:0,YOffset:0,CropWidth:96,CropHeight:32,ow:96,oh:32,tp:2},{x:1908,y:1767,w:96, h:32,XOffset:0,YOffset:0,CropWidth:96,CropHeight:32,ow:96,oh:32,tp:2},{x:1908,y:1803,w:96,h:32,XOffset:0,YOffset:0,CropWidth:96,CropHeight:32,ow:96,oh:32,tp:2},{x:1908,y:1839,w:96,h:32,XOffset:0,YOffset:0,CropWidth:96,CropHeight:32,ow:96,oh:32,tp:2},{x:1908,y:1875,w:96,h:32,XOffset:0,YOffset:0,CropWidth:96,CropHeight:32,ow:96,oh:32,tp:2},{x:1908,y:1911,w:96,h:32,XOffset:0,YOffset:0,CropWidth:96,CropHeight:32,ow:96,oh:32,tp:2},{x:1908,y:1947,w:96,h:32,XOffset:0,YOffset:0,CropWidth:96,CropHeight:32, ow:96,oh:32,tp:2},{x:1908,y:1983,w:96,h:32,XOffset:0,YOffset:0,CropWidth:96,CropHeight:32,ow:96,oh:32,tp:2},{x:1954,y:1670,w:90,h:34,XOffset:0,YOffset:0,CropWidth:90,CropHeight:34,ow:90,oh:34,tp:1},{x:1954,y:1708,w:88,h:32,XOffset:0,YOffset:2,CropWidth:88,CropHeight:32,ow:90,oh:34,tp:1},{x:1914,y:860,w:100,h:28,XOffset:4,YOffset:2,CropWidth:100,CropHeight:28,ow:106,oh:34,tp:2},{x:1954,y:1744,w:64,h:41,XOffset:0,YOffset:0,CropWidth:64,CropHeight:41,ow:64,oh:41,tp:1},{x:1914,y:892,w:51,h:51,XOffset:6, YOffset:6,CropWidth:51,CropHeight:51,ow:60,oh:60,tp:2},{x:1969,y:892,w:51,h:51,XOffset:6,YOffset:6,CropWidth:51,CropHeight:51,ow:60,oh:60,tp:2},{x:1914,y:947,w:74,h:34,XOffset:0,YOffset:0,CropWidth:74,CropHeight:34,ow:74,oh:34,tp:2},{x:1914,y:985,w:84,h:28,XOffset:4,YOffset:2,CropWidth:84,CropHeight:28,ow:90,oh:34,tp:2},{x:1914,y:1017,w:68,h:34,XOffset:0,YOffset:0,CropWidth:68,CropHeight:34,ow:68,oh:34,tp:2},{x:1914,y:1055,w:72,h:32,XOffset:0,YOffset:2,CropWidth:72,CropHeight:32,ow:74,oh:34,tp:2} ,{x:1980,y:1479,w:66,h:32,XOffset:0,YOffset:2,CropWidth:66,CropHeight:32,ow:68,oh:34,tp:2},{x:1954,y:1976,w:90,h:23,XOffset:5,YOffset:1,CropWidth:90,CropHeight:23,ow:100,oh:25,tp:1},{x:1980,y:1515,w:64,h:32,XOffset:0,YOffset:0,CropWidth:64,CropHeight:32,ow:64,oh:32,tp:2},{x:1908,y:2019,w:74,h:26,XOffset:0,YOffset:0,CropWidth:74,CropHeight:26,ow:74,oh:26,tp:2},{x:1962,y:696,w:68,h:28,XOffset:4,YOffset:2,CropWidth:68,CropHeight:28,ow:74,oh:34,tp:2},{x:1178,y:519,w:89,h:21,XOffset:6,YOffset:3,CropWidth:89, CropHeight:21,ow:100,oh:25,tp:1},{x:1962,y:728,w:54,h:34,XOffset:0,YOffset:0,CropWidth:54,CropHeight:34,ow:54,oh:34,tp:2},{x:1980,y:1551,w:62,h:28,XOffset:4,YOffset:2,CropWidth:62,CropHeight:28,ow:68,oh:34,tp:2},{x:2,y:594,w:72,h:24,XOffset:0,YOffset:2,CropWidth:72,CropHeight:24,ow:74,oh:26,tp:3},{x:1980,y:1583,w:52,h:32,XOffset:0,YOffset:2,CropWidth:52,CropHeight:32,ow:54,oh:34,tp:2},{x:2005,y:1789,w:41,h:34,XOffset:0,YOffset:0,CropWidth:41,CropHeight:34,ow:41,oh:34,tp:1},{x:1962,y:766,w:68,h:20, XOffset:4,YOffset:2,CropWidth:68,CropHeight:20,ow:74,oh:26,tp:2},{x:1980,y:1619,w:48,h:28,XOffset:4,YOffset:2,CropWidth:48,CropHeight:28,ow:54,oh:34,tp:2},{x:2005,y:1827,w:39,h:32,XOffset:0,YOffset:2,CropWidth:39,CropHeight:32,ow:41,oh:34,tp:1},{x:2005,y:1863,w:33,h:34,XOffset:0,YOffset:0,CropWidth:33,CropHeight:34,ow:33,oh:34,tp:1},{x:2005,y:1863,w:33,h:34,XOffset:0,YOffset:0,CropWidth:33,CropHeight:34,ow:33,oh:34,tp:1},{x:2005,y:1901,w:29,h:36,XOffset:5,YOffset:1,CropWidth:29,CropHeight:36,ow:40, oh:40,tp:1},{x:2008,y:238,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:2002,y:133,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:1},{x:2002,y:587,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:2},{x:2002,y:790,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:2},{x:1980,y:1651,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:2},{x:2002,y:623,w:32,h:32,XOffset:0,YOffset:0, CropWidth:32,CropHeight:32,ow:32,oh:32,tp:2},{x:2008,y:1687,w:32,h:32,XOffset:0,YOffset:0,CropWidth:32,CropHeight:32,ow:32,oh:32,tp:2},{x:966,y:526,w:64,h:16,XOffset:0,YOffset:0,CropWidth:64,CropHeight:16,ow:64,oh:16,tp:1},{x:1984,y:1175,w:31,h:32,XOffset:0,YOffset:2,CropWidth:31,CropHeight:32,ow:33,oh:34,tp:2},{x:1984,y:1175,w:31,h:32,XOffset:0,YOffset:2,CropWidth:31,CropHeight:32,ow:33,oh:34,tp:2},{x:2005,y:1941,w:35,h:28,XOffset:4,YOffset:2,CropWidth:35,CropHeight:28,ow:41,oh:34,tp:1},{x:1758, y:1920,w:27,h:36,XOffset:3,YOffset:0,CropWidth:27,CropHeight:36,ow:32,oh:36,tp:1},{x:1758,y:1920,w:27,h:36,XOffset:3,YOffset:0,CropWidth:27,CropHeight:36,ow:32,oh:36,tp:1},{x:2002,y:947,w:27,h:35,XOffset:3,YOffset:1,CropWidth:27,CropHeight:35,ow:32,oh:36,tp:2},{x:1990,y:1017,w:27,h:35,XOffset:3,YOffset:1,CropWidth:27,CropHeight:35,ow:32,oh:36,tp:2},{x:2018,y:826,w:27,h:35,XOffset:3,YOffset:1,CropWidth:27,CropHeight:35,ow:32,oh:36,tp:2},{x:2008,y:1723,w:27,h:35,XOffset:3,YOffset:1,CropWidth:27,CropHeight:35, ow:32,oh:36,tp:2},{x:1984,y:1211,w:27,h:35,XOffset:3,YOffset:1,CropWidth:27,CropHeight:35,ow:32,oh:36,tp:2},{x:1984,y:1211,w:27,h:35,XOffset:3,YOffset:1,CropWidth:27,CropHeight:35,ow:32,oh:36,tp:2},{x:2019,y:1175,w:27,h:35,XOffset:3,YOffset:1,CropWidth:27,CropHeight:35,ow:32,oh:36,tp:2},{x:1990,y:1056,w:27,h:35,XOffset:3,YOffset:1,CropWidth:27,CropHeight:35,ow:32,oh:36,tp:2},{x:2019,y:1175,w:27,h:35,XOffset:3,YOffset:1,CropWidth:27,CropHeight:35,ow:32,oh:36,tp:2},{x:1990,y:1056,w:27,h:35,XOffset:3, YOffset:1,CropWidth:27,CropHeight:35,ow:32,oh:36,tp:2},{x:2008,y:1801,w:27,h:35,XOffset:3,YOffset:1,CropWidth:27,CropHeight:35,ow:32,oh:36,tp:2},{x:1994,y:1289,w:27,h:35,XOffset:3,YOffset:1,CropWidth:27,CropHeight:35,ow:32,oh:36,tp:2},{x:2008,y:1762,w:27,h:35,XOffset:3,YOffset:1,CropWidth:27,CropHeight:35,ow:32,oh:36,tp:2},{x:1994,y:1250,w:27,h:35,XOffset:3,YOffset:1,CropWidth:27,CropHeight:35,ow:32,oh:36,tp:2},{x:2008,y:1801,w:27,h:35,XOffset:3,YOffset:1,CropWidth:27,CropHeight:35,ow:32,oh:36,tp:2} ,{x:1994,y:1289,w:27,h:35,XOffset:3,YOffset:1,CropWidth:27,CropHeight:35,ow:32,oh:36,tp:2},{x:2008,y:1840,w:27,h:35,XOffset:3,YOffset:1,CropWidth:27,CropHeight:35,ow:32,oh:36,tp:2},{x:2008,y:1840,w:27,h:35,XOffset:3,YOffset:1,CropWidth:27,CropHeight:35,ow:32,oh:36,tp:2},{x:1994,y:1328,w:27,h:35,XOffset:3,YOffset:1,CropWidth:27,CropHeight:35,ow:32,oh:36,tp:2},{x:2008,y:1879,w:27,h:35,XOffset:3,YOffset:1,CropWidth:27,CropHeight:35,ow:32,oh:36,tp:2},{x:1994,y:1367,w:27,h:35,XOffset:3,YOffset:1,CropWidth:27, CropHeight:35,ow:32,oh:36,tp:2},{x:2008,y:1918,w:27,h:35,XOffset:3,YOffset:1,CropWidth:27,CropHeight:35,ow:32,oh:36,tp:2},{x:2008,y:1918,w:27,h:35,XOffset:3,YOffset:1,CropWidth:27,CropHeight:35,ow:32,oh:36,tp:2},{x:1994,y:1406,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:2},{x:2008,y:1957,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:2},{x:2008,y:1995,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:2},{x:1701,y:1078,w:27, h:34,XOffset:2,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:2},{x:1701,y:1192,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:2},{x:1701,y:1154,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:2},{x:1701,y:1116,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:2},{x:1701,y:1230,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:2},{x:1701,y:1116,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34, ow:32,oh:36,tp:2},{x:1701,y:1154,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:2},{x:1701,y:1192,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:2},{x:1701,y:1230,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:2},{x:1701,y:1268,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:2},{x:1701,y:1306,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:2},{x:1701,y:1344,w:27,h:34,XOffset:3, YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:2},{x:1701,y:1382,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:2},{x:1701,y:1420,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:2},{x:1701,y:1458,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:2},{x:1701,y:1496,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:2},{x:1701,y:1496,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:2} ,{x:1701,y:1572,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:2},{x:1701,y:1534,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:2},{x:1701,y:1572,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:2},{x:2005,y:2,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:2},{x:2005,y:40,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:2},{x:2005,y:2,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27, CropHeight:34,ow:32,oh:36,tp:2},{x:2005,y:40,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:2},{x:78,y:594,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:3},{x:2005,y:78,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:2},{x:2005,y:116,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:2},{x:2005,y:154,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:2},{x:2005,y:192,w:27,h:34,XOffset:3, YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:2},{x:78,y:594,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:3},{x:109,y:594,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:3},{x:109,y:594,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:3},{x:33,y:622,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:3},{x:2,y:622,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:3},{x:140,y:594, w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:3},{x:33,y:622,w:27,h:34,XOffset:3,YOffset:2,CropWidth:27,CropHeight:34,ow:32,oh:36,tp:3},{x:2002,y:659,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:2},{x:2,y:660,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:171,y:594,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:64,y:632,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32, oh:36,tp:3},{x:2,y:697,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:171,y:631,w:27,h:33,XOffset:2,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:33,y:660,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:2,y:734,w:27,h:33,XOffset:2,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:95,y:632,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:64,y:669,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27, CropHeight:33,ow:32,oh:36,tp:3},{x:2,y:771,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:126,y:632,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:95,y:669,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:33,y:697,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:2,y:808,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:157,y:668,w:27,h:33,XOffset:3,YOffset:3, CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:2,y:845,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:64,y:706,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:2,y:845,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:33,y:734,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:126,y:669,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:95,y:706,w:27,h:33, XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:33,y:734,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:2,y:882,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:157,y:705,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:2,y:882,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:157,y:705,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3}, {x:64,y:743,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:2,y:919,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:126,y:706,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:95,y:743,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:33,y:771,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:95,y:743,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33, ow:32,oh:36,tp:3},{x:33,y:771,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:2,y:956,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:157,y:742,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:64,y:780,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:126,y:743,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:95,y:780,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27, CropHeight:33,ow:32,oh:36,tp:3},{x:33,y:808,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:157,y:779,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:64,y:780,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:126,y:743,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:95,y:780,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:33,y:808,w:27,h:33,XOffset:3, YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:157,y:779,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:64,y:817,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:126,y:780,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:95,y:817,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:33,y:845,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:157,y:816, w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:64,y:854,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:126,y:817,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:64,y:854,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:126,y:817,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:126,y:854,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32, oh:36,tp:3},{x:95,y:854,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:33,y:882,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:157,y:853,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:64,y:891,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:126,y:854,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:95,y:891,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27, CropHeight:33,ow:32,oh:36,tp:3},{x:33,y:919,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:157,y:890,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:95,y:928,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:95,y:891,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:33,y:919,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:157,y:890,w:27,h:33,XOffset:3, YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:95,y:928,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:157,y:927,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:64,y:928,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:126,y:891,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:95,y:928,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:33,y:956, w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:157,y:927,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:64,y:965,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:126,y:928,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:64,y:965,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:126,y:928,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32, oh:36,tp:3},{x:188,y:668,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:95,y:965,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:157,y:964,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:126,y:965,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:188,y:668,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:219,y:631,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27, CropHeight:33,ow:32,oh:36,tp:3},{x:202,y:594,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:219,y:631,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:202,y:594,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:264,y:558,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:219,y:631,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:233,y:558,w:27,h:33,XOffset:3, YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:250,y:595,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:264,y:558,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:312,y:595,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:281,y:595,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:295,y:558,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:312, y:595,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:326,y:558,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:343,y:595,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:374,y:595,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:188,y:705,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:388,y:558,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33, ow:32,oh:36,tp:3},{x:357,y:558,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:188,y:742,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:357,y:558,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:374,y:595,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:388,y:558,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:188,y:705,w:27,h:33,XOffset:3,YOffset:3, CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:188,y:742,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:188,y:779,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:188,y:816,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:188,y:853,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:188,y:890,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:188,y:927,w:27, h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:188,y:927,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:188,y:964,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:219,y:668,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:219,y:705,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:219,y:742,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36, tp:3},{x:219,y:668,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:219,y:705,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:219,y:742,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:219,y:779,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:219,y:816,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:219,y:853,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27, CropHeight:33,ow:32,oh:36,tp:3},{x:219,y:890,w:27,h:33,XOffset:3,YOffset:3,CropWidth:27,CropHeight:33,ow:32,oh:36,tp:3},{x:2005,y:230,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:2},{x:2015,y:1214,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:2},{x:2016,y:1651,w:27,h:32,XOffset:2,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:2},{x:219,y:927,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:219,y:963,w:27,h:32, XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:250,y:632,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:281,y:632,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:250,y:668,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:312,y:632,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:281,y:668,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3} ,{x:250,y:704,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:250,y:704,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:343,y:668,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:343,y:632,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:312,y:668,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:281,y:704,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32, ow:32,oh:36,tp:3},{x:250,y:740,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:374,y:632,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:343,y:668,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:312,y:704,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:312,y:704,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:281,y:740,w:27,h:32,XOffset:3,YOffset:4, CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:250,y:776,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:374,y:668,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:250,y:776,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:374,y:668,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:374,y:704,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:343,y:704,w:27, h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:312,y:740,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:281,y:776,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:250,y:812,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:374,y:704,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:343,y:740,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36, tp:3},{x:312,y:776,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:343,y:740,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:312,y:776,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:281,y:812,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:250,y:848,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:374,y:740,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27, CropHeight:32,ow:32,oh:36,tp:3},{x:374,y:740,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:343,y:776,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:312,y:812,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:281,y:848,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:312,y:812,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:281,y:848,w:27,h:32,XOffset:3, YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:250,y:884,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:374,y:776,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:343,y:812,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:281,y:884,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:312,y:848,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:281, y:884,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:250,y:920,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:374,y:812,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:250,y:920,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:374,y:812,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:343,y:848,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32, ow:32,oh:36,tp:3},{x:312,y:884,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:281,y:920,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:250,y:956,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:374,y:848,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:343,y:884,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:312,y:956,w:27,h:32,XOffset:3,YOffset:4, CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:250,y:956,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:374,y:848,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:343,y:884,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:312,y:920,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:281,y:956,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:374,y:884,w:27, h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:343,y:920,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:312,y:956,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:374,y:920,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:343,y:956,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:374,y:920,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36, tp:3},{x:343,y:956,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:374,y:956,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:419,y:558,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:405,y:595,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:450,y:558,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:405,y:631,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27, CropHeight:32,ow:32,oh:36,tp:3},{x:436,y:594,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:481,y:558,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:405,y:667,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:450,y:558,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:405,y:631,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:436,y:594,w:27,h:32,XOffset:3, YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:481,y:558,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:405,y:667,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:436,y:666,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:467,y:594,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:436,y:630,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:512, y:558,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:405,y:703,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:498,y:594,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:467,y:630,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:436,y:666,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:543,y:558,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32, ow:32,oh:36,tp:3},{x:405,y:739,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:543,y:558,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:405,y:739,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:529,y:594,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:498,y:630,w:27,h:32,XOffset:3,YOffset:4,CropWidth:27,CropHeight:32,ow:32,oh:36,tp:3},{x:2021,y:986,w:25,h:34,XOffset:4,YOffset:2, CropWidth:25,CropHeight:34,ow:32,oh:36,tp:2},{x:1988,y:1444,w:27,h:31,XOffset:3,YOffset:5,CropWidth:27,CropHeight:31,ow:32,oh:36,tp:2},{x:2019,y:1444,w:27,h:31,XOffset:3,YOffset:5,CropWidth:27,CropHeight:31,ow:32,oh:36,tp:2},{x:467,y:666,w:27,h:31,XOffset:3,YOffset:5,CropWidth:27,CropHeight:31,ow:32,oh:36,tp:3},{x:436,y:702,w:27,h:31,XOffset:3,YOffset:5,CropWidth:27,CropHeight:31,ow:32,oh:36,tp:3},{x:467,y:666,w:27,h:31,XOffset:3,YOffset:5,CropWidth:27,CropHeight:31,ow:32,oh:36,tp:3},{x:436,y:702, w:27,h:31,XOffset:3,YOffset:5,CropWidth:27,CropHeight:31,ow:32,oh:36,tp:3},{x:574,y:558,w:27,h:31,XOffset:3,YOffset:5,CropWidth:27,CropHeight:31,ow:32,oh:36,tp:3},{x:574,y:558,w:27,h:31,XOffset:3,YOffset:5,CropWidth:27,CropHeight:31,ow:32,oh:36,tp:3},{x:405,y:775,w:27,h:31,XOffset:3,YOffset:5,CropWidth:27,CropHeight:31,ow:32,oh:36,tp:3},{x:529,y:630,w:27,h:31,XOffset:3,YOffset:5,CropWidth:27,CropHeight:31,ow:32,oh:36,tp:3},{x:560,y:594,w:27,h:31,XOffset:3,YOffset:5,CropWidth:27,CropHeight:31,ow:32, oh:36,tp:3},{x:529,y:630,w:27,h:31,XOffset:3,YOffset:5,CropWidth:27,CropHeight:31,ow:32,oh:36,tp:3},{x:498,y:666,w:27,h:31,XOffset:3,YOffset:5,CropWidth:27,CropHeight:31,ow:32,oh:36,tp:3},{x:436,y:737,w:27,h:31,XOffset:3,YOffset:5,CropWidth:27,CropHeight:31,ow:32,oh:36,tp:3},{x:467,y:701,w:27,h:31,XOffset:3,YOffset:5,CropWidth:27,CropHeight:31,ow:32,oh:36,tp:3},{x:436,y:737,w:27,h:31,XOffset:3,YOffset:5,CropWidth:27,CropHeight:31,ow:32,oh:36,tp:3},{x:605,y:558,w:27,h:31,XOffset:3,YOffset:5,CropWidth:27, CropHeight:31,ow:32,oh:36,tp:3},{x:405,y:810,w:27,h:31,XOffset:3,YOffset:5,CropWidth:27,CropHeight:31,ow:32,oh:36,tp:3},{x:560,y:629,w:27,h:31,XOffset:3,YOffset:5,CropWidth:27,CropHeight:31,ow:32,oh:36,tp:3},{x:405,y:810,w:27,h:31,XOffset:3,YOffset:5,CropWidth:27,CropHeight:31,ow:32,oh:36,tp:3},{x:560,y:629,w:27,h:31,XOffset:3,YOffset:5,CropWidth:27,CropHeight:31,ow:32,oh:36,tp:3},{x:591,y:593,w:27,h:31,XOffset:3,YOffset:5,CropWidth:27,CropHeight:31,ow:32,oh:36,tp:3},{x:529,y:665,w:27,h:31,XOffset:3, YOffset:5,CropWidth:27,CropHeight:31,ow:32,oh:36,tp:3},{x:498,y:701,w:27,h:31,XOffset:3,YOffset:5,CropWidth:27,CropHeight:31,ow:32,oh:36,tp:3},{x:498,y:701,w:27,h:31,XOffset:3,YOffset:5,CropWidth:27,CropHeight:31,ow:32,oh:36,tp:3},{x:467,y:736,w:27,h:31,XOffset:3,YOffset:5,CropWidth:27,CropHeight:31,ow:32,oh:36,tp:3},{x:436,y:772,w:27,h:31,XOffset:3,YOffset:5,CropWidth:27,CropHeight:31,ow:32,oh:36,tp:3},{x:436,y:772,w:27,h:31,XOffset:3,YOffset:5,CropWidth:27,CropHeight:31,ow:32,oh:36,tp:3},{x:636, y:558,w:27,h:31,XOffset:3,YOffset:5,CropWidth:27,CropHeight:31,ow:32,oh:36,tp:3},{x:2021,y:1024,w:25,h:33,XOffset:4,YOffset:3,CropWidth:25,CropHeight:33,ow:32,oh:36,tp:2},{x:2021,y:1061,w:25,h:33,XOffset:4,YOffset:3,CropWidth:25,CropHeight:33,ow:32,oh:36,tp:2},{x:2020,y:728,w:25,h:33,XOffset:4,YOffset:3,CropWidth:25,CropHeight:33,ow:32,oh:36,tp:2},{x:1034,y:526,w:48,h:16,XOffset:0,YOffset:0,CropWidth:48,CropHeight:16,ow:48,oh:16,tp:1},{x:1258,y:133,w:27,h:28,XOffset:4,YOffset:2,CropWidth:27,CropHeight:28, ow:33,oh:34,tp:1},{x:1258,y:133,w:27,h:28,XOffset:4,YOffset:2,CropWidth:27,CropHeight:28,ow:33,oh:34,tp:1},{x:1894,y:587,w:41,h:18,XOffset:0,YOffset:0,CropWidth:41,CropHeight:18,ow:41,oh:18,tp:2},{x:2022,y:1540,w:18,h:35,XOffset:7,YOffset:0,CropWidth:18,CropHeight:35,ow:32,oh:35,tp:1},{x:1086,y:526,w:39,h:16,XOffset:0,YOffset:2,CropWidth:39,CropHeight:16,ow:41,oh:18,tp:1},{x:1732,y:1078,w:25,h:24,XOffset:3,YOffset:3,CropWidth:25,CropHeight:24,ow:32,oh:32,tp:2},{x:1271,y:519,w:25,h:22,XOffset:3,YOffset:4, CropWidth:25,CropHeight:22,ow:32,oh:32,tp:1},{x:1939,y:587,w:29,h:18,XOffset:1,YOffset:7,CropWidth:29,CropHeight:18,ow:32,oh:32,tp:2},{x:2018,y:865,w:25,h:20,XOffset:4,YOffset:5,CropWidth:25,CropHeight:20,ow:32,oh:32,tp:2},{x:2022,y:1579,w:22,h:21,XOffset:0,YOffset:0,CropWidth:22,CropHeight:21,ow:22,oh:21,tp:1},{x:2022,y:1604,w:20,h:23,XOffset:6,YOffset:4,CropWidth:20,CropHeight:23,ow:32,oh:32,tp:1},{x:1972,y:587,w:25,h:18,XOffset:3,YOffset:7,CropWidth:25,CropHeight:18,ow:32,oh:32,tp:2},{x:2022, y:1631,w:21,h:21,XOffset:1,YOffset:1,CropWidth:21,CropHeight:21,ow:23,oh:23,tp:1},{x:2022,y:1744,w:24,h:18,XOffset:0,YOffset:0,CropWidth:24,CropHeight:18,ow:24,oh:18,tp:1},{x:1129,y:526,w:35,h:12,XOffset:4,YOffset:2,CropWidth:35,CropHeight:12,ow:41,oh:18,tp:1},{x:1282,y:339,w:15,h:27,XOffset:12,YOffset:0,CropWidth:15,CropHeight:27,ow:32,oh:27,tp:1},{x:1282,y:370,w:15,h:27,XOffset:6,YOffset:0,CropWidth:15,CropHeight:27,ow:32,oh:27,tp:1},{x:1282,y:401,w:20,h:20,XOffset:0,YOffset:0,CropWidth:20,CropHeight:20, ow:20,oh:20,tp:1},{x:1282,y:425,w:20,h:20,XOffset:0,YOffset:0,CropWidth:20,CropHeight:20,ow:20,oh:20,tp:1},{x:1282,y:449,w:20,h:20,XOffset:0,YOffset:0,CropWidth:20,CropHeight:20,ow:20,oh:20,tp:1},{x:1282,y:473,w:20,h:20,XOffset:0,YOffset:0,CropWidth:20,CropHeight:20,ow:20,oh:20,tp:1},{x:2026,y:266,w:20,h:20,XOffset:0,YOffset:0,CropWidth:20,CropHeight:20,ow:20,oh:20,tp:2},{x:1282,y:425,w:20,h:20,XOffset:0,YOffset:0,CropWidth:20,CropHeight:20,ow:20,oh:20,tp:1},{x:1282,y:449,w:20,h:20,XOffset:0,YOffset:0, CropWidth:20,CropHeight:20,ow:20,oh:20,tp:1},{x:1282,y:473,w:20,h:20,XOffset:0,YOffset:0,CropWidth:20,CropHeight:20,ow:20,oh:20,tp:1},{x:2026,y:266,w:20,h:20,XOffset:0,YOffset:0,CropWidth:20,CropHeight:20,ow:20,oh:20,tp:2},{x:2025,y:1250,w:20,h:20,XOffset:0,YOffset:0,CropWidth:20,CropHeight:20,ow:20,oh:20,tp:2},{x:2024,y:1098,w:20,h:20,XOffset:0,YOffset:0,CropWidth:20,CropHeight:20,ow:20,oh:20,tp:2},{x:2024,y:889,w:20,h:20,XOffset:0,YOffset:0,CropWidth:20,CropHeight:20,ow:20,oh:20,tp:2},{x:2026, y:290,w:20,h:20,XOffset:0,YOffset:0,CropWidth:20,CropHeight:20,ow:20,oh:20,tp:2},{x:2022,y:1766,w:21,h:19,XOffset:6,YOffset:6,CropWidth:21,CropHeight:19,ow:32,oh:32,tp:1},{x:1986,y:2019,w:18,h:22,XOffset:6,YOffset:4,CropWidth:18,CropHeight:22,ow:32,oh:32,tp:2},{x:2025,y:1274,w:20,h:19,XOffset:6,YOffset:8,CropWidth:20,CropHeight:19,ow:32,oh:32,tp:2},{x:2038,y:1320,w:7,h:53,XOffset:10,YOffset:0,CropWidth:7,CropHeight:53,ow:17,oh:90,tp:1},{x:47,y:2030,w:41,h:9,XOffset:0,YOffset:0,CropWidth:41,CropHeight:9, ow:41,oh:9,tp:1},{x:2,y:2030,w:41,h:9,XOffset:0,YOffset:0,CropWidth:41,CropHeight:9,ow:41,oh:9,tp:1},{x:47,y:2030,w:41,h:9,XOffset:0,YOffset:0,CropWidth:41,CropHeight:9,ow:41,oh:9,tp:1},{x:92,y:2030,w:41,h:9,XOffset:0,YOffset:0,CropWidth:41,CropHeight:9,ow:41,oh:9,tp:1},{x:2032,y:1619,w:14,h:25,XOffset:13,YOffset:2,CropWidth:14,CropHeight:25,ow:32,oh:27,tp:2},{x:137,y:2030,w:25,h:14,XOffset:4,YOffset:2,CropWidth:25,CropHeight:14,ow:32,oh:16,tp:1},{x:166,y:2030,w:23,h:15,XOffset:0,YOffset:0,CropWidth:23, CropHeight:15,ow:23,oh:15,tp:1},{x:193,y:2030,w:38,h:9,XOffset:0,YOffset:0,CropWidth:38,CropHeight:9,ow:41,oh:9,tp:1},{x:235,y:2030,w:38,h:9,XOffset:0,YOffset:0,CropWidth:38,CropHeight:9,ow:41,oh:9,tp:1},{x:277,y:2030,w:38,h:9,XOffset:1,YOffset:0,CropWidth:38,CropHeight:9,ow:41,oh:9,tp:1},{x:319,y:2030,w:38,h:9,XOffset:1,YOffset:0,CropWidth:38,CropHeight:9,ow:41,oh:9,tp:1},{x:2024,y:1122,w:16,h:21,XOffset:4,YOffset:0,CropWidth:16,CropHeight:21,ow:20,oh:21,tp:2},{x:2024,y:913,w:16,h:21,XOffset:1, YOffset:0,CropWidth:16,CropHeight:21,ow:20,oh:21,tp:2},{x:2026,y:314,w:16,h:21,XOffset:4,YOffset:0,CropWidth:16,CropHeight:21,ow:20,oh:21,tp:2},{x:2025,y:1297,w:16,h:21,XOffset:1,YOffset:0,CropWidth:16,CropHeight:21,ow:20,oh:21,tp:2},{x:2024,y:1147,w:16,h:21,XOffset:1,YOffset:0,CropWidth:16,CropHeight:21,ow:20,oh:21,tp:2},{x:2026,y:339,w:16,h:21,XOffset:4,YOffset:0,CropWidth:16,CropHeight:21,ow:20,oh:21,tp:2},{x:1289,y:133,w:13,h:25,XOffset:7,YOffset:2,CropWidth:13,CropHeight:25,ow:32,oh:27,tp:1} ,{x:1282,y:497,w:18,h:18,XOffset:6,YOffset:7,CropWidth:18,CropHeight:18,ow:32,oh:32,tp:1},{x:1954,y:1500,w:10,h:32,XOffset:0,YOffset:5,CropWidth:10,CropHeight:32,ow:10,oh:37,tp:1},{x:2025,y:1322,w:10,h:32,XOffset:0,YOffset:5,CropWidth:10,CropHeight:32,ow:10,oh:37,tp:2},{x:2038,y:1377,w:6,h:53,XOffset:10,YOffset:0,CropWidth:6,CropHeight:53,ow:17,oh:90,tp:1},{x:2033,y:659,w:10,h:31,XOffset:1,YOffset:6,CropWidth:10,CropHeight:31,ow:11,oh:37,tp:2},{x:2036,y:2,w:10,h:31,XOffset:1,YOffset:6,CropWidth:10, CropHeight:31,ow:11,oh:37,tp:2},{x:2026,y:364,w:17,h:18,XOffset:7,YOffset:8,CropWidth:17,CropHeight:18,ow:32,oh:32,tp:2},{x:2002,y:986,w:15,h:20,XOffset:0,YOffset:0,CropWidth:15,CropHeight:20,ow:15,oh:20,tp:2},{x:2025,y:1358,w:15,h:20,XOffset:8,YOffset:6,CropWidth:15,CropHeight:20,ow:32,oh:32,tp:2},{x:2025,y:1382,w:15,h:20,XOffset:9,YOffset:0,CropWidth:15,CropHeight:20,ow:32,oh:32,tp:2},{x:2025,y:1382,w:15,h:20,XOffset:9,YOffset:0,CropWidth:15,CropHeight:20,ow:32,oh:32,tp:2},{x:2025,y:1406,w:15, h:20,XOffset:9,YOffset:0,CropWidth:15,CropHeight:20,ow:32,oh:32,tp:2},{x:1502,y:2025,w:15,h:20,XOffset:9,YOffset:0,CropWidth:15,CropHeight:20,ow:32,oh:32,tp:2},{x:1502,y:2025,w:15,h:20,XOffset:9,YOffset:0,CropWidth:15,CropHeight:20,ow:32,oh:32,tp:2},{x:361,y:2030,w:33,h:9,XOffset:0,YOffset:0,CropWidth:33,CropHeight:9,ow:41,oh:9,tp:1},{x:398,y:2030,w:33,h:9,XOffset:0,YOffset:0,CropWidth:33,CropHeight:9,ow:41,oh:9,tp:1},{x:435,y:2030,w:33,h:9,XOffset:4,YOffset:0,CropWidth:33,CropHeight:9,ow:41,oh:9, tp:1},{x:472,y:2030,w:33,h:9,XOffset:4,YOffset:0,CropWidth:33,CropHeight:9,ow:41,oh:9,tp:1},{x:509,y:2029,w:17,h:17,XOffset:7,YOffset:7,CropWidth:17,CropHeight:17,ow:32,oh:32,tp:1},{x:530,y:2030,w:24,h:12,XOffset:8,YOffset:4,CropWidth:24,CropHeight:12,ow:40,oh:20,tp:1},{x:558,y:2030,w:24,h:12,XOffset:8,YOffset:4,CropWidth:24,CropHeight:12,ow:40,oh:20,tp:1},{x:586,y:2030,w:24,h:12,XOffset:8,YOffset:4,CropWidth:24,CropHeight:12,ow:40,oh:20,tp:1},{x:614,y:2030,w:24,h:12,XOffset:8,YOffset:4,CropWidth:24, CropHeight:12,ow:40,oh:20,tp:1},{x:642,y:2030,w:24,h:12,XOffset:8,YOffset:4,CropWidth:24,CropHeight:12,ow:40,oh:20,tp:1},{x:670,y:2030,w:24,h:12,XOffset:8,YOffset:4,CropWidth:24,CropHeight:12,ow:40,oh:20,tp:1},{x:1521,y:2025,w:16,h:18,XOffset:1,YOffset:0,CropWidth:16,CropHeight:18,ow:20,oh:20,tp:2},{x:1541,y:2025,w:16,h:18,XOffset:4,YOffset:0,CropWidth:16,CropHeight:18,ow:20,oh:20,tp:2},{x:1561,y:2025,w:16,h:18,XOffset:1,YOffset:0,CropWidth:16,CropHeight:18,ow:20,oh:20,tp:2},{x:1581,y:2025,w:16, h:18,XOffset:4,YOffset:0,CropWidth:16,CropHeight:18,ow:20,oh:20,tp:2},{x:1601,y:2025,w:16,h:18,XOffset:1,YOffset:0,CropWidth:16,CropHeight:18,ow:20,oh:20,tp:2},{x:1621,y:2025,w:16,h:18,XOffset:4,YOffset:0,CropWidth:16,CropHeight:18,ow:20,oh:20,tp:2},{x:1641,y:2025,w:14,h:20,XOffset:9,YOffset:0,CropWidth:14,CropHeight:20,ow:32,oh:32,tp:2},{x:1641,y:2025,w:14,h:20,XOffset:9,YOffset:0,CropWidth:14,CropHeight:20,ow:32,oh:32,tp:2},{x:698,y:2030,w:39,h:7,XOffset:0,YOffset:0,CropWidth:39,CropHeight:7,ow:39, oh:7,tp:1},{x:698,y:2030,w:39,h:7,XOffset:0,YOffset:0,CropWidth:39,CropHeight:7,ow:39,oh:7,tp:1},{x:741,y:2030,w:17,h:16,XOffset:7,YOffset:7,CropWidth:17,CropHeight:16,ow:32,oh:32,tp:1},{x:762,y:2030,w:30,h:9,XOffset:0,YOffset:0,CropWidth:30,CropHeight:9,ow:41,oh:9,tp:1},{x:796,y:2030,w:30,h:9,XOffset:0,YOffset:0,CropWidth:30,CropHeight:9,ow:41,oh:9,tp:1},{x:830,y:2030,w:30,h:9,XOffset:5,YOffset:0,CropWidth:30,CropHeight:9,ow:41,oh:9,tp:1},{x:864,y:2030,w:30,h:9,XOffset:5,YOffset:0,CropWidth:30, CropHeight:9,ow:41,oh:9,tp:1},{x:2038,y:1434,w:6,h:44,XOffset:10,YOffset:18,CropWidth:6,CropHeight:44,ow:17,oh:90,tp:1},{x:2033,y:938,w:13,h:20,XOffset:1,YOffset:0,CropWidth:13,CropHeight:20,ow:16,oh:20,tp:2},{x:2033,y:962,w:13,h:20,XOffset:1,YOffset:0,CropWidth:13,CropHeight:20,ow:16,oh:20,tp:2},{x:1659,y:2025,w:13,h:20,XOffset:1,YOffset:0,CropWidth:13,CropHeight:20,ow:16,oh:20,tp:2},{x:1676,y:2025,w:13,h:20,XOffset:1,YOffset:0,CropWidth:13,CropHeight:20,ow:16,oh:20,tp:2},{x:938,y:2030,w:16,h:16, XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:898,y:2030,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:918,y:2030,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:938,y:2030,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:1058,y:2030,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:958,y:2030,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16, tp:1},{x:978,y:2030,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:998,y:2030,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:1018,y:2030,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:1038,y:2030,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:1058,y:2030,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:1078,y:2030,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16, CropHeight:16,ow:16,oh:16,tp:1},{x:1098,y:2030,w:16,h:16,XOffset:0,YOffset:0,CropWidth:16,CropHeight:16,ow:16,oh:16,tp:1},{x:1118,y:2029,w:15,h:17,XOffset:0,YOffset:0,CropWidth:15,CropHeight:17,ow:15,oh:17,tp:1},{x:1137,y:2029,w:15,h:17,XOffset:0,YOffset:0,CropWidth:15,CropHeight:17,ow:15,oh:17,tp:1},{x:1156,y:2029,w:15,h:17,XOffset:0,YOffset:0,CropWidth:15,CropHeight:17,ow:15,oh:17,tp:1},{x:1175,y:2029,w:15,h:17,XOffset:0,YOffset:0,CropWidth:15,CropHeight:17,ow:15,oh:17,tp:1},{x:1194,y:2029,w:15, h:17,XOffset:0,YOffset:0,CropWidth:15,CropHeight:17,ow:15,oh:17,tp:1},{x:1213,y:2029,w:15,h:17,XOffset:0,YOffset:0,CropWidth:15,CropHeight:17,ow:15,oh:17,tp:1},{x:1232,y:2029,w:15,h:17,XOffset:0,YOffset:0,CropWidth:15,CropHeight:17,ow:15,oh:17,tp:1},{x:1251,y:2029,w:15,h:17,XOffset:0,YOffset:0,CropWidth:15,CropHeight:17,ow:15,oh:17,tp:1},{x:1270,y:2029,w:15,h:17,XOffset:0,YOffset:0,CropWidth:15,CropHeight:17,ow:15,oh:17,tp:1},{x:1914,y:1091,w:15,h:17,XOffset:0,YOffset:0,CropWidth:15,CropHeight:17, ow:15,oh:17,tp:2},{x:1693,y:2025,w:15,h:17,XOffset:0,YOffset:0,CropWidth:15,CropHeight:17,ow:15,oh:17,tp:2},{x:1933,y:1091,w:15,h:17,XOffset:0,YOffset:0,CropWidth:15,CropHeight:17,ow:15,oh:17,tp:2},{x:1712,y:2025,w:15,h:17,XOffset:0,YOffset:0,CropWidth:15,CropHeight:17,ow:15,oh:17,tp:2},{x:1952,y:1091,w:15,h:17,XOffset:0,YOffset:0,CropWidth:15,CropHeight:17,ow:15,oh:17,tp:2},{x:1971,y:1091,w:15,h:17,XOffset:0,YOffset:0,CropWidth:15,CropHeight:17,ow:15,oh:17,tp:2},{x:1731,y:2025,w:15,h:17,XOffset:0, YOffset:0,CropWidth:15,CropHeight:17,ow:15,oh:17,tp:2},{x:1750,y:2025,w:15,h:17,XOffset:0,YOffset:0,CropWidth:15,CropHeight:17,ow:15,oh:17,tp:2},{x:1769,y:2025,w:15,h:17,XOffset:0,YOffset:0,CropWidth:15,CropHeight:17,ow:15,oh:17,tp:2},{x:1788,y:2025,w:15,h:17,XOffset:0,YOffset:0,CropWidth:15,CropHeight:17,ow:15,oh:17,tp:2},{x:1807,y:2025,w:15,h:17,XOffset:0,YOffset:0,CropWidth:15,CropHeight:17,ow:15,oh:17,tp:2},{x:1826,y:2025,w:15,h:17,XOffset:0,YOffset:0,CropWidth:15,CropHeight:17,ow:15,oh:17,tp:2} ,{x:1845,y:2025,w:15,h:17,XOffset:0,YOffset:0,CropWidth:15,CropHeight:17,ow:15,oh:17,tp:2},{x:1864,y:2025,w:15,h:17,XOffset:0,YOffset:0,CropWidth:15,CropHeight:17,ow:15,oh:17,tp:2},{x:1883,y:2025,w:15,h:17,XOffset:0,YOffset:0,CropWidth:15,CropHeight:17,ow:15,oh:17,tp:2},{x:2034,y:765,w:12,h:21,XOffset:0,YOffset:2,CropWidth:12,CropHeight:21,ow:12,oh:23,tp:2},{x:2002,y:826,w:12,h:21,XOffset:0,YOffset:2,CropWidth:12,CropHeight:21,ow:12,oh:23,tp:2},{x:1289,y:2030,w:36,h:7,XOffset:1,YOffset:0,CropWidth:36, CropHeight:7,ow:39,oh:7,tp:1},{x:1329,y:2030,w:36,h:7,XOffset:0,YOffset:0,CropWidth:36,CropHeight:7,ow:39,oh:7,tp:1},{x:1369,y:2030,w:15,h:16,XOffset:8,YOffset:7,CropWidth:15,CropHeight:16,ow:32,oh:32,tp:1},{x:1388,y:2030,w:16,h:15,XOffset:9,YOffset:8,CropWidth:16,CropHeight:15,ow:32,oh:32,tp:1},{x:1408,y:2030,w:16,h:15,XOffset:7,YOffset:8,CropWidth:16,CropHeight:15,ow:32,oh:32,tp:1},{x:1428,y:2030,w:15,h:16,XOffset:9,YOffset:9,CropWidth:15,CropHeight:16,ow:32,oh:32,tp:1},{x:2034,y:694,w:12,h:20, XOffset:0,YOffset:3,CropWidth:12,CropHeight:20,ow:12,oh:23,tp:2},{x:2034,y:694,w:12,h:20,XOffset:0,YOffset:3,CropWidth:12,CropHeight:20,ow:12,oh:23,tp:2},{x:1447,y:2030,w:16,h:15,XOffset:0,YOffset:0,CropWidth:16,CropHeight:15,ow:16,oh:16,tp:1},{x:1880,y:1695,w:12,h:20,XOffset:1,YOffset:0,CropWidth:12,CropHeight:20,ow:16,oh:20,tp:2},{x:1880,y:1719,w:12,h:20,XOffset:1,YOffset:0,CropWidth:12,CropHeight:20,ow:16,oh:20,tp:2},{x:1880,y:1743,w:12,h:19,XOffset:2,YOffset:2,CropWidth:12,CropHeight:19,ow:16, oh:23,tp:2},{x:1467,y:2030,w:15,h:15,XOffset:8,YOffset:9,CropWidth:15,CropHeight:15,ow:32,oh:32,tp:1},{x:1486,y:2030,w:25,h:9,XOffset:0,YOffset:0,CropWidth:25,CropHeight:9,ow:41,oh:9,tp:1},{x:1515,y:2030,w:25,h:9,XOffset:0,YOffset:0,CropWidth:25,CropHeight:9,ow:41,oh:9,tp:1},{x:1544,y:2030,w:25,h:9,XOffset:8,YOffset:0,CropWidth:25,CropHeight:9,ow:41,oh:9,tp:1},{x:1573,y:2030,w:25,h:9,XOffset:8,YOffset:0,CropWidth:25,CropHeight:9,ow:41,oh:9,tp:1},{x:1880,y:1766,w:13,h:17,XOffset:0,YOffset:3,CropWidth:13, CropHeight:17,ow:16,oh:20,tp:2},{x:1880,y:1787,w:13,h:17,XOffset:0,YOffset:3,CropWidth:13,CropHeight:17,ow:16,oh:20,tp:2},{x:1880,y:1808,w:13,h:17,XOffset:0,YOffset:3,CropWidth:13,CropHeight:17,ow:16,oh:20,tp:2},{x:1880,y:1829,w:13,h:17,XOffset:2,YOffset:3,CropWidth:13,CropHeight:17,ow:16,oh:20,tp:2},{x:1880,y:1850,w:13,h:17,XOffset:2,YOffset:3,CropWidth:13,CropHeight:17,ow:16,oh:20,tp:2},{x:1880,y:1871,w:13,h:17,XOffset:1,YOffset:2,CropWidth:13,CropHeight:17,ow:15,oh:20,tp:2},{x:1880,y:1892,w:13, h:17,XOffset:1,YOffset:2,CropWidth:13,CropHeight:17,ow:15,oh:20,tp:2},{x:1880,y:1913,w:13,h:17,XOffset:1,YOffset:0,CropWidth:13,CropHeight:17,ow:16,oh:17,tp:2},{x:1880,y:1934,w:13,h:17,XOffset:1,YOffset:0,CropWidth:13,CropHeight:17,ow:16,oh:17,tp:2},{x:1880,y:1955,w:11,h:20,XOffset:0,YOffset:3,CropWidth:11,CropHeight:20,ow:12,oh:23,tp:2},{x:1770,y:824,w:11,h:20,XOffset:0,YOffset:3,CropWidth:11,CropHeight:20,ow:12,oh:23,tp:2},{x:2036,y:37,w:10,h:22,XOffset:4,YOffset:5,CropWidth:10,CropHeight:22,ow:32, oh:32,tp:2},{x:1602,y:2030,w:31,h:7,XOffset:0,YOffset:0,CropWidth:31,CropHeight:7,ow:39,oh:7,tp:1},{x:1637,y:2030,w:31,h:7,XOffset:4,YOffset:0,CropWidth:31,CropHeight:7,ow:39,oh:7,tp:1},{x:1672,y:2030,w:14,h:15,XOffset:0,YOffset:5,CropWidth:14,CropHeight:15,ow:16,oh:20,tp:1},{x:1690,y:2030,w:14,h:15,XOffset:0,YOffset:5,CropWidth:14,CropHeight:15,ow:16,oh:20,tp:1},{x:1708,y:2030,w:14,h:15,XOffset:0,YOffset:5,CropWidth:14,CropHeight:15,ow:16,oh:20,tp:1},{x:2,y:993,w:11,h:19,XOffset:1,YOffset:4,CropWidth:11, CropHeight:19,ow:12,oh:23,tp:3},{x:2036,y:63,w:9,h:23,XOffset:2,YOffset:0,CropWidth:9,CropHeight:23,ow:12,oh:23,tp:2},{x:202,y:631,w:12,h:17,XOffset:7,YOffset:3,CropWidth:12,CropHeight:17,ow:20,oh:20,tp:3},{x:202,y:631,w:12,h:17,XOffset:7,YOffset:3,CropWidth:12,CropHeight:17,ow:20,oh:20,tp:3},{x:157,y:1001,w:12,h:17,XOffset:7,YOffset:3,CropWidth:12,CropHeight:17,ow:20,oh:20,tp:3},{x:157,y:1001,w:12,h:17,XOffset:7,YOffset:3,CropWidth:12,CropHeight:17,ow:20,oh:20,tp:3},{x:157,y:1001,w:12,h:17,XOffset:7, YOffset:3,CropWidth:12,CropHeight:17,ow:20,oh:20,tp:3},{x:202,y:631,w:12,h:17,XOffset:7,YOffset:3,CropWidth:12,CropHeight:17,ow:20,oh:20,tp:3},{x:214,y:558,w:12,h:17,XOffset:1,YOffset:6,CropWidth:12,CropHeight:17,ow:16,oh:24,tp:3},{x:233,y:595,w:12,h:17,XOffset:1,YOffset:6,CropWidth:12,CropHeight:17,ow:16,oh:24,tp:3},{x:219,y:999,w:12,h:17,XOffset:1,YOffset:6,CropWidth:12,CropHeight:17,ow:16,oh:24,tp:3},{x:250,y:992,w:12,h:17,XOffset:1,YOffset:6,CropWidth:12,CropHeight:17,ow:16,oh:24,tp:3},{x:405, y:845,w:12,h:17,XOffset:1,YOffset:6,CropWidth:12,CropHeight:17,ow:16,oh:24,tp:3},{x:560,y:664,w:12,h:17,XOffset:1,YOffset:6,CropWidth:12,CropHeight:17,ow:16,oh:24,tp:3},{x:622,y:593,w:12,h:17,XOffset:1,YOffset:6,CropWidth:12,CropHeight:17,ow:16,oh:24,tp:3},{x:591,y:628,w:12,h:17,XOffset:1,YOffset:6,CropWidth:12,CropHeight:17,ow:16,oh:24,tp:3},{x:529,y:700,w:12,h:17,XOffset:1,YOffset:6,CropWidth:12,CropHeight:17,ow:16,oh:24,tp:3},{x:498,y:736,w:12,h:17,XOffset:1,YOffset:6,CropWidth:12,CropHeight:17, ow:16,oh:24,tp:3},{x:467,y:771,w:12,h:17,XOffset:1,YOffset:6,CropWidth:12,CropHeight:17,ow:16,oh:24,tp:3},{x:436,y:807,w:12,h:17,XOffset:1,YOffset:6,CropWidth:12,CropHeight:17,ow:16,oh:24,tp:3},{x:667,y:558,w:12,h:17,XOffset:1,YOffset:3,CropWidth:12,CropHeight:17,ow:16,oh:20,tp:3},{x:17,y:993,w:12,h:17,XOffset:1,YOffset:3,CropWidth:12,CropHeight:17,ow:16,oh:20,tp:3},{x:173,y:1001,w:12,h:17,XOffset:1,YOffset:3,CropWidth:12,CropHeight:17,ow:16,oh:20,tp:3},{x:266,y:992,w:12,h:17,XOffset:1,YOffset:3, CropWidth:12,CropHeight:17,ow:16,oh:20,tp:3},{x:421,y:845,w:12,h:17,XOffset:1,YOffset:3,CropWidth:12,CropHeight:17,ow:16,oh:20,tp:3},{x:405,y:866,w:12,h:17,XOffset:1,YOffset:3,CropWidth:12,CropHeight:17,ow:16,oh:20,tp:3},{x:576,y:664,w:12,h:17,XOffset:3,YOffset:3,CropWidth:12,CropHeight:17,ow:16,oh:20,tp:3},{x:560,y:685,w:12,h:17,XOffset:0,YOffset:0,CropWidth:12,CropHeight:17,ow:12,oh:17,tp:3},{x:638,y:593,w:12,h:17,XOffset:0,YOffset:0,CropWidth:12,CropHeight:17,ow:12,oh:17,tp:3},{x:622,y:614,w:12, h:17,XOffset:0,YOffset:0,CropWidth:12,CropHeight:17,ow:12,oh:17,tp:3},{x:529,y:721,w:12,h:17,XOffset:1,YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17,tp:3},{x:498,y:757,w:12,h:17,XOffset:1,YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17,tp:3},{x:467,y:792,w:12,h:17,XOffset:1,YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17,tp:3},{x:683,y:558,w:12,h:17,XOffset:1,YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17,tp:3},{x:667,y:579,w:12,h:17,XOffset:1,YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17, tp:3},{x:33,y:993,w:12,h:17,XOffset:1,YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17,tp:3},{x:189,y:1001,w:12,h:17,XOffset:1,YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17,tp:3},{x:282,y:992,w:12,h:17,XOffset:1,YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17,tp:3},{x:437,y:828,w:12,h:17,XOffset:1,YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17,tp:3},{x:421,y:866,w:12,h:17,XOffset:1,YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17,tp:3},{x:405,y:887,w:12,h:17,XOffset:1,YOffset:0,CropWidth:12, CropHeight:17,ow:16,oh:17,tp:3},{x:592,y:649,w:12,h:17,XOffset:1,YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17,tp:3},{x:576,y:685,w:12,h:17,XOffset:1,YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17,tp:3},{x:545,y:706,w:12,h:17,XOffset:1,YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17,tp:3},{x:638,y:614,w:12,h:17,XOffset:1,YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17,tp:3},{x:514,y:742,w:12,h:17,XOffset:1,YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17,tp:3},{x:483,y:778,w:12,h:17,XOffset:1, YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17,tp:3},{x:699,y:558,w:12,h:17,XOffset:1,YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17,tp:3},{x:683,y:579,w:12,h:17,XOffset:1,YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17,tp:3},{x:654,y:600,w:12,h:17,XOffset:1,YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17,tp:3},{x:49,y:1002,w:12,h:17,XOffset:1,YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17,tp:3},{x:298,y:992,w:12,h:17,XOffset:1,YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17,tp:3},{x:437, y:849,w:12,h:17,XOffset:1,YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17,tp:3},{x:453,y:813,w:12,h:17,XOffset:1,YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17,tp:3},{x:421,y:887,w:12,h:17,XOffset:1,YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17,tp:3},{x:405,y:908,w:12,h:17,XOffset:1,YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17,tp:3},{x:592,y:670,w:12,h:17,XOffset:1,YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17,tp:3},{x:608,y:635,w:12,h:17,XOffset:1,YOffset:0,CropWidth:12,CropHeight:17, ow:16,oh:17,tp:3},{x:561,y:706,w:12,h:17,XOffset:1,YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17,tp:3},{x:545,y:727,w:12,h:17,XOffset:1,YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17,tp:3},{x:715,y:558,w:12,h:17,XOffset:2,YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17,tp:3},{x:514,y:763,w:12,h:17,XOffset:2,YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17,tp:3},{x:483,y:799,w:12,h:17,XOffset:2,YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17,tp:3},{x:715,y:558,w:12,h:17,XOffset:2,YOffset:0, CropWidth:12,CropHeight:17,ow:16,oh:17,tp:3},{x:699,y:579,w:12,h:17,XOffset:1,YOffset:0,CropWidth:12,CropHeight:17,ow:16,oh:17,tp:3},{x:235,y:999,w:11,h:18,XOffset:3,YOffset:6,CropWidth:11,CropHeight:18,ow:16,oh:24,tp:3},{x:670,y:600,w:11,h:18,XOffset:2,YOffset:6,CropWidth:11,CropHeight:18,ow:16,oh:24,tp:3},{x:235,y:999,w:11,h:18,XOffset:3,YOffset:6,CropWidth:11,CropHeight:18,ow:16,oh:24,tp:3},{x:670,y:600,w:11,h:18,XOffset:2,YOffset:6,CropWidth:11,CropHeight:18,ow:16,oh:24,tp:3},{x:65,y:1002,w:11, h:18,XOffset:3,YOffset:6,CropWidth:11,CropHeight:18,ow:16,oh:24,tp:3},{x:1726,y:2030,w:22,h:9,XOffset:0,YOffset:0,CropWidth:22,CropHeight:9,ow:41,oh:9,tp:1},{x:1752,y:2030,w:22,h:9,XOffset:0,YOffset:0,CropWidth:22,CropHeight:9,ow:41,oh:9,tp:1},{x:1778,y:2030,w:22,h:9,XOffset:9,YOffset:0,CropWidth:22,CropHeight:9,ow:41,oh:9,tp:1},{x:1804,y:2030,w:22,h:9,XOffset:9,YOffset:0,CropWidth:22,CropHeight:9,ow:41,oh:9,tp:1},{x:1830,y:2030,w:14,h:14,XOffset:2,YOffset:2,CropWidth:14,CropHeight:14,ow:18,oh:18, tp:1},{x:1848,y:2030,w:14,h:14,XOffset:0,YOffset:0,CropWidth:14,CropHeight:14,ow:14,oh:14,tp:1},{x:1866,y:2030,w:28,h:7,XOffset:5,YOffset:0,CropWidth:28,CropHeight:7,ow:39,oh:7,tp:1},{x:1898,y:2030,w:28,h:7,XOffset:0,YOffset:0,CropWidth:28,CropHeight:7,ow:39,oh:7,tp:1},{x:1930,y:2030,w:15,h:13,XOffset:0,YOffset:11,CropWidth:15,CropHeight:13,ow:16,oh:24,tp:1},{x:1930,y:2030,w:15,h:13,XOffset:0,YOffset:11,CropWidth:15,CropHeight:13,ow:16,oh:24,tp:1},{x:1949,y:2030,w:15,h:13,XOffset:0,YOffset:11,CropWidth:15, CropHeight:13,ow:16,oh:24,tp:1},{x:2036,y:90,w:10,h:19,XOffset:2,YOffset:4,CropWidth:10,CropHeight:19,ow:12,oh:23,tp:2},{x:2036,y:1583,w:10,h:19,XOffset:1,YOffset:4,CropWidth:10,CropHeight:19,ow:12,oh:23,tp:2},{x:2036,y:113,w:10,h:19,XOffset:1,YOffset:4,CropWidth:10,CropHeight:19,ow:12,oh:23,tp:2},{x:2036,y:113,w:10,h:19,XOffset:1,YOffset:4,CropWidth:10,CropHeight:19,ow:12,oh:23,tp:2},{x:2036,y:136,w:10,h:19,XOffset:0,YOffset:1,CropWidth:10,CropHeight:19,ow:10,oh:21,tp:2},{x:1968,y:2030,w:21,h:9, XOffset:6,YOffset:15,CropWidth:21,CropHeight:9,ow:32,oh:26,tp:1},{x:1993,y:2030,w:21,h:9,XOffset:6,YOffset:15,CropWidth:21,CropHeight:9,ow:32,oh:26,tp:1},{x:2022,y:1656,w:21,h:9,XOffset:6,YOffset:15,CropWidth:21,CropHeight:9,ow:32,oh:26,tp:1},{x:2018,y:2030,w:21,h:9,XOffset:6,YOffset:15,CropWidth:21,CropHeight:9,ow:32,oh:26,tp:1},{x:1758,y:1960,w:21,h:9,XOffset:6,YOffset:15,CropWidth:21,CropHeight:9,ow:32,oh:26,tp:1},{x:2025,y:1430,w:21,h:9,XOffset:6,YOffset:15,CropWidth:21,CropHeight:9,ow:32,oh:26, tp:2},{x:1990,y:1095,w:21,h:9,XOffset:6,YOffset:15,CropWidth:21,CropHeight:9,ow:32,oh:26,tp:2},{x:1880,y:1979,w:21,h:9,XOffset:6,YOffset:15,CropWidth:21,CropHeight:9,ow:32,oh:26,tp:2},{x:2008,y:2033,w:21,h:9,XOffset:6,YOffset:15,CropWidth:21,CropHeight:9,ow:32,oh:26,tp:2},{x:314,y:992,w:11,h:17,XOffset:7,YOffset:3,CropWidth:11,CropHeight:17,ow:20,oh:20,tp:3},{x:437,y:870,w:11,h:17,XOffset:7,YOffset:3,CropWidth:11,CropHeight:17,ow:20,oh:20,tp:3},{x:453,y:834,w:11,h:17,XOffset:7,YOffset:3,CropWidth:11, CropHeight:17,ow:20,oh:20,tp:3},{x:421,y:908,w:11,h:17,XOffset:1,YOffset:0,CropWidth:11,CropHeight:17,ow:16,oh:17,tp:3},{x:405,y:929,w:11,h:17,XOffset:1,YOffset:0,CropWidth:11,CropHeight:17,ow:16,oh:17,tp:3},{x:592,y:691,w:11,h:17,XOffset:1,YOffset:0,CropWidth:11,CropHeight:17,ow:16,oh:17,tp:3},{x:624,y:635,w:11,h:17,XOffset:1,YOffset:0,CropWidth:11,CropHeight:17,ow:16,oh:17,tp:3},{x:608,y:656,w:11,h:17,XOffset:1,YOffset:0,CropWidth:11,CropHeight:17,ow:16,oh:17,tp:3},{x:561,y:727,w:11,h:17,XOffset:1, YOffset:0,CropWidth:11,CropHeight:17,ow:16,oh:17,tp:3},{x:530,y:742,w:11,h:17,XOffset:2,YOffset:2,CropWidth:11,CropHeight:17,ow:15,oh:20,tp:3},{x:499,y:778,w:11,h:17,XOffset:3,YOffset:0,CropWidth:11,CropHeight:17,ow:16,oh:17,tp:3},{x:469,y:820,w:11,h:17,XOffset:3,YOffset:0,CropWidth:11,CropHeight:17,ow:16,oh:17,tp:3},{x:731,y:558,w:11,h:17,XOffset:1,YOffset:0,CropWidth:11,CropHeight:17,ow:16,oh:17,tp:3},{x:715,y:579,w:11,h:17,XOffset:1,YOffset:0,CropWidth:11,CropHeight:17,ow:16,oh:17,tp:3},{x:685, y:600,w:11,h:17,XOffset:1,YOffset:0,CropWidth:11,CropHeight:17,ow:16,oh:17,tp:3},{x:654,y:621,w:11,h:17,XOffset:1,YOffset:0,CropWidth:11,CropHeight:17,ow:16,oh:17,tp:3},{x:80,y:1002,w:11,h:17,XOffset:1,YOffset:0,CropWidth:11,CropHeight:17,ow:16,oh:17,tp:3},{x:329,y:992,w:11,h:17,XOffset:1,YOffset:0,CropWidth:11,CropHeight:17,ow:16,oh:17,tp:3},{x:437,y:891,w:11,h:17,XOffset:3,YOffset:0,CropWidth:11,CropHeight:17,ow:16,oh:17,tp:3},{x:452,y:870,w:11,h:17,XOffset:3,YOffset:0,CropWidth:11,CropHeight:17, ow:16,oh:17,tp:3},{x:437,y:891,w:11,h:17,XOffset:3,YOffset:0,CropWidth:11,CropHeight:17,ow:16,oh:17,tp:3},{x:420,y:929,w:11,h:17,XOffset:3,YOffset:0,CropWidth:11,CropHeight:17,ow:16,oh:17,tp:3},{x:420,y:929,w:11,h:17,XOffset:3,YOffset:0,CropWidth:11,CropHeight:17,ow:16,oh:17,tp:3},{x:405,y:950,w:11,h:17,XOffset:3,YOffset:0,CropWidth:11,CropHeight:17,ow:16,oh:17,tp:3},{x:607,y:691,w:11,h:17,XOffset:2,YOffset:0,CropWidth:11,CropHeight:17,ow:16,oh:17,tp:3},{x:577,y:706,w:11,h:17,XOffset:2,YOffset:0, CropWidth:11,CropHeight:17,ow:16,oh:17,tp:3},{x:623,y:656,w:13,h:14,XOffset:3,YOffset:6,CropWidth:13,CropHeight:14,ow:16,oh:20,tp:3},{x:545,y:748,w:13,h:14,XOffset:3,YOffset:6,CropWidth:13,CropHeight:14,ow:16,oh:20,tp:3},{x:545,y:748,w:13,h:14,XOffset:3,YOffset:6,CropWidth:13,CropHeight:14,ow:16,oh:20,tp:3},{x:623,y:656,w:13,h:14,XOffset:3,YOffset:6,CropWidth:13,CropHeight:14,ow:16,oh:20,tp:3},{x:576,y:727,w:13,h:14,XOffset:3,YOffset:6,CropWidth:13,CropHeight:14,ow:16,oh:20,tp:3},{x:576,y:727,w:13, h:14,XOffset:3,YOffset:6,CropWidth:13,CropHeight:14,ow:16,oh:20,tp:3},{x:576,y:727,w:13,h:14,XOffset:3,YOffset:6,CropWidth:13,CropHeight:14,ow:16,oh:20,tp:3},{x:468,y:841,w:13,h:14,XOffset:3,YOffset:6,CropWidth:13,CropHeight:14,ow:16,oh:20,tp:3},{x:468,y:841,w:13,h:14,XOffset:3,YOffset:6,CropWidth:13,CropHeight:14,ow:16,oh:20,tp:3},{x:545,y:748,w:13,h:14,XOffset:3,YOffset:6,CropWidth:13,CropHeight:14,ow:16,oh:20,tp:3},{x:514,y:784,w:13,h:14,XOffset:3,YOffset:6,CropWidth:13,CropHeight:14,ow:16,oh:20, tp:3},{x:484,y:820,w:13,h:14,XOffset:3,YOffset:6,CropWidth:13,CropHeight:14,ow:16,oh:20,tp:3},{x:484,y:820,w:13,h:14,XOffset:3,YOffset:6,CropWidth:13,CropHeight:14,ow:16,oh:20,tp:3},{x:468,y:841,w:13,h:14,XOffset:3,YOffset:6,CropWidth:13,CropHeight:14,ow:16,oh:20,tp:3},{x:746,y:558,w:13,h:14,XOffset:3,YOffset:6,CropWidth:13,CropHeight:14,ow:16,oh:20,tp:3},{x:730,y:579,w:13,h:14,XOffset:1,YOffset:4,CropWidth:13,CropHeight:14,ow:16,oh:24,tp:3},{x:700,y:600,w:13,h:14,XOffset:1,YOffset:4,CropWidth:13, CropHeight:14,ow:16,oh:24,tp:3},{x:685,y:621,w:13,h:14,XOffset:1,YOffset:4,CropWidth:13,CropHeight:14,ow:16,oh:24,tp:3},{x:95,y:1002,w:13,h:14,XOffset:1,YOffset:4,CropWidth:13,CropHeight:14,ow:16,oh:24,tp:3},{x:344,y:992,w:13,h:14,XOffset:1,YOffset:4,CropWidth:13,CropHeight:14,ow:16,oh:24,tp:3},{x:452,y:891,w:13,h:14,XOffset:1,YOffset:4,CropWidth:13,CropHeight:14,ow:16,oh:24,tp:3},{x:436,y:912,w:13,h:14,XOffset:0,YOffset:6,CropWidth:13,CropHeight:14,ow:16,oh:20,tp:3},{x:420,y:950,w:13,h:14,XOffset:0, YOffset:6,CropWidth:13,CropHeight:14,ow:16,oh:20,tp:3},{x:405,y:971,w:13,h:14,XOffset:0,YOffset:6,CropWidth:13,CropHeight:14,ow:16,oh:20,tp:3},{x:622,y:677,w:13,h:14,XOffset:0,YOffset:6,CropWidth:13,CropHeight:14,ow:16,oh:20,tp:3},{x:640,y:642,w:13,h:14,XOffset:0,YOffset:6,CropWidth:13,CropHeight:14,ow:16,oh:20,tp:3},{x:576,y:745,w:13,h:14,XOffset:0,YOffset:6,CropWidth:13,CropHeight:14,ow:16,oh:20,tp:3},{x:593,y:712,w:13,h:14,XOffset:1,YOffset:0,CropWidth:13,CropHeight:14,ow:16,oh:16,tp:3},{x:1895, y:1955,w:9,h:20,XOffset:2,YOffset:3,CropWidth:9,CropHeight:20,ow:12,oh:23,tp:2},{x:2036,y:159,w:9,h:20,XOffset:2,YOffset:3,CropWidth:9,CropHeight:20,ow:12,oh:23,tp:2},{x:531,y:766,w:12,h:15,XOffset:0,YOffset:1,CropWidth:12,CropHeight:15,ow:16,oh:16,tp:3},{x:501,y:802,w:12,h:15,XOffset:0,YOffset:1,CropWidth:12,CropHeight:15,ow:16,oh:16,tp:3},{x:485,y:838,w:12,h:15,XOffset:0,YOffset:1,CropWidth:12,CropHeight:15,ow:16,oh:16,tp:3},{x:763,y:558,w:12,h:15,XOffset:0,YOffset:1,CropWidth:12,CropHeight:15, ow:16,oh:16,tp:3},{x:730,y:597,w:12,h:15,XOffset:0,YOffset:1,CropWidth:12,CropHeight:15,ow:16,oh:16,tp:3},{x:669,y:622,w:12,h:15,XOffset:0,YOffset:1,CropWidth:12,CropHeight:15,ow:16,oh:16,tp:3},{x:702,y:618,w:12,h:15,XOffset:0,YOffset:1,CropWidth:12,CropHeight:15,ow:16,oh:16,tp:3},{x:112,y:1002,w:12,h:15,XOffset:0,YOffset:1,CropWidth:12,CropHeight:15,ow:16,oh:16,tp:3},{x:361,y:992,w:12,h:15,XOffset:0,YOffset:1,CropWidth:12,CropHeight:15,ow:16,oh:16,tp:3},{x:469,y:859,w:12,h:15,XOffset:0,YOffset:1, CropWidth:12,CropHeight:15,ow:16,oh:16,tp:3},{x:453,y:909,w:12,h:15,XOffset:0,YOffset:1,CropWidth:12,CropHeight:15,ow:16,oh:16,tp:3},{x:437,y:930,w:12,h:15,XOffset:0,YOffset:1,CropWidth:12,CropHeight:15,ow:16,oh:16,tp:3},{x:2036,y:183,w:10,h:18,XOffset:3,YOffset:6,CropWidth:10,CropHeight:18,ow:16,oh:24,tp:2},{x:622,y:695,w:15,h:12,XOffset:9,YOffset:0,CropWidth:15,CropHeight:12,ow:32,oh:32,tp:3},{x:405,y:989,w:15,h:12,XOffset:9,YOffset:0,CropWidth:15,CropHeight:12,ow:32,oh:32,tp:3},{x:622,y:695,w:15, h:12,XOffset:9,YOffset:0,CropWidth:15,CropHeight:12,ow:32,oh:32,tp:3},{x:657,y:642,w:11,h:16,XOffset:5,YOffset:4,CropWidth:11,CropHeight:16,ow:20,oh:20,tp:3},{x:657,y:642,w:11,h:16,XOffset:5,YOffset:4,CropWidth:11,CropHeight:16,ow:20,oh:20,tp:3},{x:562,y:763,w:11,h:16,XOffset:5,YOffset:4,CropWidth:11,CropHeight:16,ow:20,oh:20,tp:3},{x:562,y:763,w:11,h:16,XOffset:5,YOffset:4,CropWidth:11,CropHeight:16,ow:20,oh:20,tp:3},{x:610,y:712,w:11,h:16,XOffset:5,YOffset:5,CropWidth:11,CropHeight:16,ow:20,oh:21, tp:3},{x:610,y:712,w:11,h:16,XOffset:5,YOffset:5,CropWidth:11,CropHeight:16,ow:20,oh:21,tp:3},{x:610,y:712,w:11,h:16,XOffset:5,YOffset:5,CropWidth:11,CropHeight:16,ow:20,oh:21,tp:3},{x:610,y:712,w:11,h:16,XOffset:5,YOffset:5,CropWidth:11,CropHeight:16,ow:20,oh:21,tp:3},{x:531,y:785,w:11,h:16,XOffset:5,YOffset:4,CropWidth:11,CropHeight:16,ow:20,oh:20,tp:3},{x:531,y:785,w:11,h:16,XOffset:5,YOffset:4,CropWidth:11,CropHeight:16,ow:20,oh:20,tp:3},{x:501,y:821,w:11,h:16,XOffset:5,YOffset:4,CropWidth:11, CropHeight:16,ow:20,oh:20,tp:3},{x:501,y:821,w:11,h:16,XOffset:5,YOffset:4,CropWidth:11,CropHeight:16,ow:20,oh:20,tp:3},{x:485,y:857,w:11,h:16,XOffset:5,YOffset:5,CropWidth:11,CropHeight:16,ow:20,oh:21,tp:3},{x:485,y:857,w:11,h:16,XOffset:5,YOffset:5,CropWidth:11,CropHeight:16,ow:20,oh:21,tp:3},{x:485,y:857,w:11,h:16,XOffset:5,YOffset:5,CropWidth:11,CropHeight:16,ow:20,oh:21,tp:3},{x:485,y:857,w:11,h:16,XOffset:5,YOffset:5,CropWidth:11,CropHeight:16,ow:20,oh:21,tp:3},{x:779,y:558,w:11,h:16,XOffset:5, YOffset:4,CropWidth:11,CropHeight:16,ow:20,oh:20,tp:3},{x:779,y:558,w:11,h:16,XOffset:5,YOffset:4,CropWidth:11,CropHeight:16,ow:20,oh:20,tp:3},{x:747,y:576,w:11,h:16,XOffset:5,YOffset:4,CropWidth:11,CropHeight:16,ow:20,oh:20,tp:3},{x:747,y:576,w:11,h:16,XOffset:5,YOffset:4,CropWidth:11,CropHeight:16,ow:20,oh:20,tp:3},{x:746,y:597,w:11,h:16,XOffset:5,YOffset:5,CropWidth:11,CropHeight:16,ow:20,oh:21,tp:3},{x:746,y:597,w:11,h:16,XOffset:5,YOffset:5,CropWidth:11,CropHeight:16,ow:20,oh:21,tp:3},{x:746, y:597,w:11,h:16,XOffset:5,YOffset:5,CropWidth:11,CropHeight:16,ow:20,oh:21,tp:3},{x:746,y:597,w:11,h:16,XOffset:5,YOffset:5,CropWidth:11,CropHeight:16,ow:20,oh:21,tp:3},{x:17,y:1014,w:22,h:8,XOffset:6,YOffset:18,CropWidth:22,CropHeight:8,ow:32,oh:26,tp:3},{x:250,y:1013,w:22,h:8,XOffset:6,YOffset:18,CropWidth:22,CropHeight:8,ow:32,oh:26,tp:3},{x:685,y:639,w:22,h:8,XOffset:6,YOffset:18,CropWidth:22,CropHeight:8,ow:32,oh:26,tp:3},{x:128,y:1002,w:22,h:8,XOffset:6,YOffset:18,CropWidth:22,CropHeight:8, ow:32,oh:26,tp:3},{x:344,y:1011,w:22,h:8,XOffset:6,YOffset:18,CropWidth:22,CropHeight:8,ow:32,oh:26,tp:3},{x:469,y:878,w:22,h:8,XOffset:6,YOffset:18,CropWidth:22,CropHeight:8,ow:32,oh:26,tp:3},{x:453,y:928,w:11,h:16,XOffset:2,YOffset:0,CropWidth:11,CropHeight:16,ow:16,oh:16,tp:3},{x:2038,y:1482,w:4,h:43,XOffset:11,YOffset:17,CropWidth:4,CropHeight:43,ow:17,oh:90,tp:1},{x:2036,y:205,w:9,h:19,XOffset:2,YOffset:4,CropWidth:9,CropHeight:19,ow:12,oh:23,tp:2},{x:2036,y:205,w:9,h:19,XOffset:2,YOffset:4, CropWidth:9,CropHeight:19,ow:12,oh:23,tp:2},{x:2036,y:228,w:9,h:19,XOffset:2,YOffset:4,CropWidth:9,CropHeight:19,ow:12,oh:23,tp:2},{x:2036,y:228,w:9,h:19,XOffset:2,YOffset:4,CropWidth:9,CropHeight:19,ow:12,oh:23,tp:2},{x:437,y:949,w:19,h:9,XOffset:7,YOffset:13,CropWidth:19,CropHeight:9,ow:32,oh:26,tp:3},{x:424,y:968,w:19,h:9,XOffset:7,YOffset:13,CropWidth:19,CropHeight:9,ow:32,oh:26,tp:3},{x:377,y:992,w:19,h:9,XOffset:7,YOffset:13,CropWidth:19,CropHeight:9,ow:32,oh:26,tp:3},{x:377,y:1005,w:19,h:9, XOffset:7,YOffset:13,CropWidth:19,CropHeight:9,ow:32,oh:26,tp:3},{x:639,y:674,w:19,h:9,XOffset:7,YOffset:13,CropWidth:19,CropHeight:9,ow:32,oh:26,tp:3},{x:577,y:763,w:19,h:9,XOffset:7,YOffset:13,CropWidth:19,CropHeight:9,ow:32,oh:26,tp:3},{x:1722,y:1758,w:10,h:17,XOffset:5,YOffset:3,CropWidth:10,CropHeight:17,ow:16,oh:20,tp:2},{x:1722,y:1779,w:10,h:17,XOffset:5,YOffset:3,CropWidth:10,CropHeight:17,ow:16,oh:20,tp:2},{x:1722,y:1800,w:10,h:17,XOffset:5,YOffset:3,CropWidth:10,CropHeight:17,ow:16,oh:20, tp:2},{x:1722,y:1821,w:10,h:17,XOffset:4,YOffset:0,CropWidth:10,CropHeight:17,ow:16,oh:17,tp:2},{x:1722,y:1842,w:10,h:17,XOffset:3,YOffset:0,CropWidth:10,CropHeight:17,ow:16,oh:17,tp:2},{x:1722,y:1863,w:10,h:17,XOffset:3,YOffset:0,CropWidth:10,CropHeight:17,ow:16,oh:17,tp:2},{x:157,y:632,w:10,h:17,XOffset:3,YOffset:0,CropWidth:10,CropHeight:17,ow:16,oh:17,tp:3},{x:2033,y:2033,w:13,h:13,XOffset:9,YOffset:10,CropWidth:13,CropHeight:13,ow:32,oh:32,tp:2},{x:547,y:783,w:13,h:13,XOffset:1,YOffset:1,CropWidth:13, CropHeight:13,ow:15,oh:15,tp:3},{x:2038,y:1901,w:8,h:21,XOffset:3,YOffset:2,CropWidth:8,CropHeight:21,ow:12,oh:23,tp:1},{x:2038,y:133,w:8,h:21,XOffset:3,YOffset:2,CropWidth:8,CropHeight:21,ow:12,oh:23,tp:1},{x:2038,y:790,w:8,h:21,XOffset:3,YOffset:2,CropWidth:8,CropHeight:21,ow:12,oh:23,tp:2},{x:625,y:711,w:21,h:8,XOffset:6,YOffset:18,CropWidth:21,CropHeight:8,ow:32,oh:26,tp:3},{x:517,y:805,w:21,h:8,XOffset:6,YOffset:18,CropWidth:21,CropHeight:8,ow:32,oh:26,tp:3},{x:516,y:821,w:21,h:8,XOffset:6, YOffset:18,CropWidth:21,CropHeight:8,ow:32,oh:26,tp:3},{x:501,y:841,w:12,h:14,XOffset:0,YOffset:0,CropWidth:12,CropHeight:14,ow:12,oh:14,tp:3},{x:794,y:558,w:11,h:15,XOffset:5,YOffset:5,CropWidth:11,CropHeight:15,ow:20,oh:20,tp:3},{x:794,y:558,w:11,h:15,XOffset:5,YOffset:5,CropWidth:11,CropHeight:15,ow:20,oh:20,tp:3},{x:794,y:558,w:11,h:15,XOffset:5,YOffset:5,CropWidth:11,CropHeight:15,ow:20,oh:20,tp:3},{x:794,y:558,w:11,h:15,XOffset:5,YOffset:5,CropWidth:11,CropHeight:15,ow:20,oh:20,tp:3},{x:762, y:577,w:11,h:15,XOffset:5,YOffset:6,CropWidth:11,CropHeight:15,ow:20,oh:21,tp:3},{x:762,y:577,w:11,h:15,XOffset:5,YOffset:6,CropWidth:11,CropHeight:15,ow:20,oh:21,tp:3},{x:762,y:577,w:11,h:15,XOffset:5,YOffset:6,CropWidth:11,CropHeight:15,ow:20,oh:21,tp:3},{x:762,y:577,w:11,h:15,XOffset:5,YOffset:6,CropWidth:11,CropHeight:15,ow:20,oh:21,tp:3},{x:718,y:616,w:11,h:15,XOffset:5,YOffset:5,CropWidth:11,CropHeight:15,ow:20,oh:20,tp:3},{x:718,y:616,w:11,h:15,XOffset:5,YOffset:5,CropWidth:11,CropHeight:15, ow:20,oh:20,tp:3},{x:718,y:616,w:11,h:15,XOffset:5,YOffset:5,CropWidth:11,CropHeight:15,ow:20,oh:20,tp:3},{x:718,y:616,w:11,h:15,XOffset:5,YOffset:5,CropWidth:11,CropHeight:15,ow:20,oh:20,tp:3},{x:761,y:596,w:11,h:15,XOffset:5,YOffset:6,CropWidth:11,CropHeight:15,ow:20,oh:21,tp:3},{x:761,y:596,w:11,h:15,XOffset:5,YOffset:6,CropWidth:11,CropHeight:15,ow:20,oh:21,tp:3},{x:761,y:596,w:11,h:15,XOffset:5,YOffset:6,CropWidth:11,CropHeight:15,ow:20,oh:21,tp:3},{x:761,y:596,w:11,h:15,XOffset:5,YOffset:6, CropWidth:11,CropHeight:15,ow:20,oh:21,tp:3},{x:711,y:637,w:11,h:15,XOffset:5,YOffset:5,CropWidth:11,CropHeight:15,ow:20,oh:20,tp:3},{x:711,y:637,w:11,h:15,XOffset:5,YOffset:5,CropWidth:11,CropHeight:15,ow:20,oh:20,tp:3},{x:711,y:637,w:11,h:15,XOffset:5,YOffset:5,CropWidth:11,CropHeight:15,ow:20,oh:20,tp:3},{x:711,y:637,w:11,h:15,XOffset:5,YOffset:5,CropWidth:11,CropHeight:15,ow:20,oh:20,tp:3},{x:469,y:890,w:11,h:15,XOffset:5,YOffset:6,CropWidth:11,CropHeight:15,ow:20,oh:21,tp:3},{x:469,y:890,w:11, h:15,XOffset:5,YOffset:6,CropWidth:11,CropHeight:15,ow:20,oh:21,tp:3},{x:469,y:890,w:11,h:15,XOffset:5,YOffset:6,CropWidth:11,CropHeight:15,ow:20,oh:21,tp:3},{x:469,y:890,w:11,h:15,XOffset:5,YOffset:6,CropWidth:11,CropHeight:15,ow:20,oh:21,tp:3},{x:495,y:877,w:11,h:15,XOffset:5,YOffset:1,CropWidth:11,CropHeight:15,ow:18,oh:16,tp:3},{x:468,y:928,w:11,h:15,XOffset:5,YOffset:1,CropWidth:11,CropHeight:15,ow:18,oh:16,tp:3},{x:460,y:948,w:11,h:15,XOffset:5,YOffset:1,CropWidth:11,CropHeight:15,ow:18,oh:16, tp:3},{x:733,y:617,w:15,h:11,XOffset:3,YOffset:8,CropWidth:15,CropHeight:11,ow:20,oh:20,tp:3},{x:733,y:617,w:15,h:11,XOffset:3,YOffset:8,CropWidth:15,CropHeight:11,ow:20,oh:20,tp:3},{x:733,y:617,w:15,h:11,XOffset:3,YOffset:8,CropWidth:15,CropHeight:11,ow:20,oh:20,tp:3},{x:733,y:617,w:15,h:11,XOffset:3,YOffset:8,CropWidth:15,CropHeight:11,ow:20,oh:20,tp:3},{x:733,y:617,w:15,h:11,XOffset:3,YOffset:8,CropWidth:15,CropHeight:11,ow:20,oh:20,tp:3},{x:777,y:578,w:15,h:11,XOffset:3,YOffset:8,CropWidth:15, CropHeight:11,ow:20,oh:20,tp:3},{x:777,y:578,w:15,h:11,XOffset:3,YOffset:8,CropWidth:15,CropHeight:11,ow:20,oh:20,tp:3},{x:777,y:578,w:15,h:11,XOffset:3,YOffset:8,CropWidth:15,CropHeight:11,ow:20,oh:20,tp:3},{x:777,y:578,w:15,h:11,XOffset:3,YOffset:8,CropWidth:15,CropHeight:11,ow:20,oh:20,tp:3},{x:777,y:578,w:15,h:11,XOffset:3,YOffset:8,CropWidth:15,CropHeight:11,ow:20,oh:20,tp:3},{x:777,y:578,w:15,h:11,XOffset:3,YOffset:8,CropWidth:15,CropHeight:11,ow:20,oh:20,tp:3},{x:777,y:578,w:15,h:11,XOffset:3, YOffset:8,CropWidth:15,CropHeight:11,ow:20,oh:20,tp:3},{x:733,y:617,w:15,h:11,XOffset:3,YOffset:8,CropWidth:15,CropHeight:11,ow:20,oh:20,tp:3},{x:733,y:617,w:15,h:11,XOffset:3,YOffset:8,CropWidth:15,CropHeight:11,ow:20,oh:20,tp:3},{x:761,y:615,w:15,h:11,XOffset:3,YOffset:8,CropWidth:15,CropHeight:11,ow:20,oh:20,tp:3},{x:761,y:615,w:15,h:11,XOffset:3,YOffset:8,CropWidth:15,CropHeight:11,ow:20,oh:20,tp:3},{x:761,y:615,w:15,h:11,XOffset:3,YOffset:8,CropWidth:15,CropHeight:11,ow:20,oh:20,tp:3},{x:761, y:615,w:15,h:11,XOffset:3,YOffset:8,CropWidth:15,CropHeight:11,ow:20,oh:20,tp:3},{x:761,y:615,w:15,h:11,XOffset:3,YOffset:8,CropWidth:15,CropHeight:11,ow:20,oh:20,tp:3},{x:776,y:596,w:15,h:11,XOffset:3,YOffset:8,CropWidth:15,CropHeight:11,ow:20,oh:20,tp:3},{x:761,y:615,w:15,h:11,XOffset:3,YOffset:8,CropWidth:15,CropHeight:11,ow:20,oh:20,tp:3},{x:424,y:981,w:11,h:15,XOffset:0,YOffset:1,CropWidth:11,CropHeight:15,ow:16,oh:16,tp:3},{x:400,y:1005,w:11,h:15,XOffset:0,YOffset:1,CropWidth:11,CropHeight:15, ow:16,oh:16,tp:3},{x:662,y:662,w:11,h:15,XOffset:0,YOffset:1,CropWidth:11,CropHeight:15,ow:16,oh:16,tp:3},{x:577,y:776,w:11,h:15,XOffset:0,YOffset:1,CropWidth:11,CropHeight:15,ow:16,oh:16,tp:3},{x:593,y:730,w:11,h:15,XOffset:0,YOffset:1,CropWidth:11,CropHeight:15,ow:16,oh:16,tp:3},{x:546,y:800,w:11,h:15,XOffset:0,YOffset:1,CropWidth:11,CropHeight:15,ow:16,oh:16,tp:3},{x:625,y:723,w:11,h:15,XOffset:0,YOffset:1,CropWidth:11,CropHeight:15,ow:16,oh:16,tp:3},{x:650,y:687,w:11,h:15,XOffset:0,YOffset:1, CropWidth:11,CropHeight:15,ow:16,oh:16,tp:3},{x:517,y:833,w:11,h:15,XOffset:0,YOffset:1,CropWidth:11,CropHeight:15,ow:16,oh:16,tp:3},{x:809,y:558,w:11,h:15,XOffset:0,YOffset:1,CropWidth:11,CropHeight:15,ow:16,oh:16,tp:3},{x:726,y:635,w:11,h:15,XOffset:0,YOffset:1,CropWidth:11,CropHeight:15,ow:16,oh:16,tp:3},{x:510,y:859,w:11,h:15,XOffset:0,YOffset:1,CropWidth:11,CropHeight:15,ow:16,oh:16,tp:3},{x:276,y:1013,w:18,h:9,XOffset:7,YOffset:13,CropWidth:18,CropHeight:9,ow:32,oh:26,tp:3},{x:484,y:896,w:18, h:9,XOffset:7,YOffset:13,CropWidth:18,CropHeight:9,ow:32,oh:26,tp:3},{x:483,y:909,w:18,h:9,XOffset:7,YOffset:13,CropWidth:18,CropHeight:9,ow:32,oh:26,tp:3},{x:128,y:1014,w:23,h:7,XOffset:0,YOffset:0,CropWidth:23,CropHeight:7,ow:23,oh:7,tp:3},{x:447,y:967,w:23,h:7,XOffset:0,YOffset:0,CropWidth:23,CropHeight:7,ow:39,oh:7,tp:3},{x:475,y:947,w:23,h:7,XOffset:8,YOffset:0,CropWidth:23,CropHeight:7,ow:39,oh:7,tp:3},{x:205,y:1001,w:10,h:16,XOffset:4,YOffset:0,CropWidth:10,CropHeight:16,ow:16,oh:16,tp:3} ,{x:796,y:577,w:10,h:16,XOffset:4,YOffset:0,CropWidth:10,CropHeight:16,ow:16,oh:16,tp:3},{x:752,y:630,w:10,h:16,XOffset:4,YOffset:0,CropWidth:10,CropHeight:16,ow:16,oh:16,tp:3},{x:780,y:611,w:10,h:16,XOffset:5,YOffset:4,CropWidth:10,CropHeight:16,ow:16,oh:20,tp:3},{x:439,y:981,w:10,h:16,XOffset:5,YOffset:4,CropWidth:10,CropHeight:16,ow:16,oh:20,tp:3},{x:415,y:1005,w:10,h:16,XOffset:5,YOffset:4,CropWidth:10,CropHeight:16,ow:16,oh:20,tp:3},{x:677,y:651,w:10,h:16,XOffset:1,YOffset:0,CropWidth:10,CropHeight:16, ow:16,oh:16,tp:3},{x:592,y:776,w:10,h:16,XOffset:1,YOffset:0,CropWidth:10,CropHeight:16,ow:16,oh:16,tp:3},{x:561,y:800,w:10,h:16,XOffset:1,YOffset:0,CropWidth:10,CropHeight:16,ow:16,oh:16,tp:3},{x:726,y:654,w:13,h:12,XOffset:2,YOffset:0,CropWidth:13,CropHeight:12,ow:16,oh:13,tp:3},{x:510,y:878,w:13,h:12,XOffset:2,YOffset:0,CropWidth:13,CropHeight:12,ow:16,oh:13,tp:3},{x:214,y:579,w:14,h:11,XOffset:0,YOffset:0,CropWidth:14,CropHeight:11,ow:14,oh:11,tp:3},{x:640,y:723,w:14,h:11,XOffset:0,YOffset:0, CropWidth:14,CropHeight:11,ow:14,oh:11,tp:3},{x:608,y:742,w:14,h:11,XOffset:0,YOffset:0,CropWidth:14,CropHeight:11,ow:14,oh:11,tp:3},{x:665,y:681,w:14,h:11,XOffset:0,YOffset:0,CropWidth:14,CropHeight:11,ow:14,oh:11,tp:3},{x:532,y:833,w:14,h:11,XOffset:0,YOffset:0,CropWidth:14,CropHeight:11,ow:14,oh:11,tp:3},{x:824,y:558,w:14,h:11,XOffset:0,YOffset:0,CropWidth:14,CropHeight:11,ow:14,oh:11,tp:3},{x:506,y:896,w:14,h:11,XOffset:0,YOffset:0,CropWidth:14,CropHeight:11,ow:14,oh:11,tp:3},{x:474,y:967,w:14, h:11,XOffset:0,YOffset:0,CropWidth:14,CropHeight:11,ow:14,oh:11,tp:3},{x:502,y:922,w:11,h:14,XOffset:2,YOffset:1,CropWidth:11,CropHeight:14,ow:16,oh:16,tp:3},{x:810,y:577,w:11,h:14,XOffset:3,YOffset:6,CropWidth:11,CropHeight:14,ow:16,oh:20,tp:3},{x:795,y:597,w:11,h:14,XOffset:3,YOffset:6,CropWidth:11,CropHeight:14,ow:16,oh:20,tp:3},{x:766,y:631,w:11,h:14,XOffset:3,YOffset:6,CropWidth:11,CropHeight:14,ow:16,oh:20,tp:3},{x:429,y:1001,w:9,h:17,XOffset:6,YOffset:3,CropWidth:9,CropHeight:17,ow:20,oh:20, tp:3},{x:691,y:651,w:9,h:17,XOffset:6,YOffset:3,CropWidth:9,CropHeight:17,ow:20,oh:20,tp:3},{x:575,y:795,w:9,h:17,XOffset:6,YOffset:3,CropWidth:9,CropHeight:17,ow:20,oh:20,tp:3},{x:743,y:650,w:9,h:17,XOffset:3,YOffset:0,CropWidth:9,CropHeight:17,ow:16,oh:17,tp:3},{x:527,y:852,w:9,h:17,XOffset:3,YOffset:0,CropWidth:9,CropHeight:17,ow:16,oh:17,tp:3},{x:298,y:1013,w:17,h:9,XOffset:0,YOffset:0,CropWidth:17,CropHeight:9,ow:41,oh:9,tp:3},{x:640,y:738,w:17,h:9,XOffset:0,YOffset:0,CropWidth:17,CropHeight:9, ow:41,oh:9,tp:3},{x:650,y:706,w:17,h:9,XOffset:12,YOffset:0,CropWidth:17,CropHeight:9,ow:41,oh:9,tp:3},{x:606,y:757,w:17,h:9,XOffset:12,YOffset:0,CropWidth:17,CropHeight:9,ow:41,oh:9,tp:3},{x:550,y:820,w:21,h:7,XOffset:0,YOffset:0,CropWidth:21,CropHeight:7,ow:21,oh:7,tp:3},{x:842,y:558,w:9,h:16,XOffset:3,YOffset:4,CropWidth:9,CropHeight:16,ow:16,oh:20,tp:3},{x:524,y:894,w:9,h:16,XOffset:3,YOffset:4,CropWidth:9,CropHeight:16,ow:16,oh:20,tp:3},{x:492,y:958,w:9,h:16,XOffset:7,YOffset:4,CropWidth:9, CropHeight:16,ow:20,oh:20,tp:3},{x:453,y:978,w:9,h:16,XOffset:7,YOffset:4,CropWidth:9,CropHeight:16,ow:20,oh:20,tp:3},{x:483,y:922,w:9,h:16,XOffset:7,YOffset:4,CropWidth:9,CropHeight:16,ow:20,oh:20,tp:3},{x:810,y:595,w:9,h:16,XOffset:3,YOffset:0,CropWidth:9,CropHeight:16,ow:16,oh:16,tp:3},{x:794,y:615,w:9,h:16,XOffset:3,YOffset:0,CropWidth:9,CropHeight:16,ow:16,oh:16,tp:3},{x:766,y:649,w:9,h:16,XOffset:3,YOffset:0,CropWidth:9,CropHeight:16,ow:16,oh:16,tp:3},{x:442,y:1001,w:9,h:16,XOffset:3,YOffset:0, CropWidth:9,CropHeight:16,ow:16,oh:16,tp:3},{x:704,y:656,w:9,h:16,XOffset:3,YOffset:0,CropWidth:9,CropHeight:16,ow:16,oh:16,tp:3},{x:588,y:796,w:9,h:16,XOffset:3,YOffset:0,CropWidth:9,CropHeight:16,ow:16,oh:16,tp:3},{x:575,y:816,w:9,h:16,XOffset:3,YOffset:0,CropWidth:9,CropHeight:16,ow:16,oh:16,tp:3},{x:855,y:558,w:9,h:16,XOffset:3,YOffset:0,CropWidth:9,CropHeight:16,ow:16,oh:16,tp:3},{x:717,y:670,w:9,h:16,XOffset:3,YOffset:0,CropWidth:9,CropHeight:16,ow:16,oh:16,tp:3},{x:540,y:848,w:9,h:16,XOffset:4, YOffset:4,CropWidth:9,CropHeight:16,ow:16,oh:20,tp:3},{x:671,y:696,w:9,h:16,XOffset:4,YOffset:4,CropWidth:9,CropHeight:16,ow:16,oh:20,tp:3},{x:2026,y:386,w:18,h:8,XOffset:0,YOffset:0,CropWidth:18,CropHeight:8,ow:18,oh:8,tp:2},{x:202,y:652,w:12,h:12,XOffset:0,YOffset:0,CropWidth:12,CropHeight:12,ow:12,oh:12,tp:3},{x:661,y:719,w:12,h:12,XOffset:0,YOffset:0,CropWidth:12,CropHeight:12,ow:12,oh:12,tp:3},{x:606,y:770,w:12,h:12,XOffset:2,YOffset:0,CropWidth:12,CropHeight:12,ow:16,oh:13,tp:3},{x:627,y:742, w:9,h:16,XOffset:3,YOffset:2,CropWidth:9,CropHeight:16,ow:15,oh:20,tp:3},{x:823,y:595,w:9,h:16,XOffset:4,YOffset:0,CropWidth:9,CropHeight:16,ow:16,oh:16,tp:3},{x:855,y:558,w:9,h:16,XOffset:3,YOffset:0,CropWidth:9,CropHeight:16,ow:16,oh:16,tp:3},{x:825,y:573,w:9,h:16,XOffset:3,YOffset:0,CropWidth:9,CropHeight:16,ow:16,oh:16,tp:3},{x:823,y:595,w:9,h:16,XOffset:4,YOffset:0,CropWidth:9,CropHeight:16,ow:16,oh:16,tp:3},{x:517,y:914,w:9,h:16,XOffset:4,YOffset:0,CropWidth:9,CropHeight:16,ow:16,oh:16,tp:3} ,{x:537,y:873,w:9,h:16,XOffset:3,YOffset:0,CropWidth:9,CropHeight:16,ow:16,oh:16,tp:3},{x:492,y:978,w:9,h:16,XOffset:4,YOffset:0,CropWidth:9,CropHeight:16,ow:16,oh:16,tp:3},{x:505,y:940,w:9,h:16,XOffset:3,YOffset:0,CropWidth:9,CropHeight:16,ow:16,oh:16,tp:3},{x:823,y:595,w:9,h:16,XOffset:4,YOffset:0,CropWidth:9,CropHeight:16,ow:16,oh:16,tp:3},{x:807,y:615,w:9,h:16,XOffset:3,YOffset:0,CropWidth:9,CropHeight:16,ow:16,oh:16,tp:3},{x:781,y:631,w:9,h:16,XOffset:4,YOffset:0,CropWidth:9,CropHeight:16,ow:16, oh:16,tp:3},{x:756,y:669,w:9,h:16,XOffset:4,YOffset:0,CropWidth:9,CropHeight:16,ow:16,oh:16,tp:3},{x:455,y:998,w:9,h:16,XOffset:4,YOffset:0,CropWidth:9,CropHeight:16,ow:16,oh:16,tp:3},{x:717,y:670,w:9,h:16,XOffset:3,YOffset:0,CropWidth:9,CropHeight:16,ow:16,oh:16,tp:3},{x:601,y:796,w:9,h:16,XOffset:4,YOffset:0,CropWidth:9,CropHeight:16,ow:16,oh:16,tp:3},{x:588,y:816,w:9,h:16,XOffset:2,YOffset:1,CropWidth:9,CropHeight:16,ow:16,oh:17,tp:3},{x:553,y:831,w:9,h:16,XOffset:2,YOffset:1,CropWidth:9,CropHeight:16, ow:16,oh:17,tp:3},{x:684,y:672,w:9,h:16,XOffset:2,YOffset:1,CropWidth:9,CropHeight:16,ow:16,oh:17,tp:3},{x:661,y:735,w:9,h:16,XOffset:2,YOffset:1,CropWidth:9,CropHeight:16,ow:16,oh:17,tp:3},{x:677,y:716,w:9,h:16,XOffset:2,YOffset:1,CropWidth:9,CropHeight:16,ow:16,oh:17,tp:3},{x:622,y:770,w:9,h:16,XOffset:2,YOffset:1,CropWidth:9,CropHeight:16,ow:16,oh:17,tp:3},{x:868,y:558,w:9,h:16,XOffset:2,YOffset:1,CropWidth:9,CropHeight:16,ow:16,oh:17,tp:3},{x:838,y:578,w:9,h:16,XOffset:2,YOffset:1,CropWidth:9, CropHeight:16,ow:16,oh:17,tp:3},{x:530,y:914,w:9,h:16,XOffset:2,YOffset:1,CropWidth:9,CropHeight:16,ow:16,oh:17,tp:3},{x:550,y:868,w:9,h:16,XOffset:2,YOffset:1,CropWidth:9,CropHeight:16,ow:16,oh:17,tp:3},{x:505,y:960,w:9,h:16,XOffset:2,YOffset:1,CropWidth:9,CropHeight:16,ow:16,oh:17,tp:3},{x:518,y:934,w:9,h:16,XOffset:2,YOffset:1,CropWidth:9,CropHeight:16,ow:16,oh:17,tp:3},{x:851,y:578,w:13,h:11,XOffset:4,YOffset:9,CropWidth:13,CropHeight:11,ow:20,oh:20,tp:3},{x:836,y:598,w:13,h:11,XOffset:4,YOffset:9, CropWidth:13,CropHeight:11,ow:20,oh:20,tp:3},{x:543,y:893,w:13,h:11,XOffset:4,YOffset:9,CropWidth:13,CropHeight:11,ow:20,oh:20,tp:3},{x:522,y:954,w:13,h:11,XOffset:1,YOffset:5,CropWidth:13,CropHeight:11,ow:16,oh:16,tp:3},{x:563,y:851,w:13,h:11,XOffset:1,YOffset:5,CropWidth:13,CropHeight:11,ow:16,oh:16,tp:3},{x:505,y:980,w:13,h:11,XOffset:1,YOffset:5,CropWidth:13,CropHeight:11,ow:16,oh:16,tp:3},{x:531,y:934,w:13,h:11,XOffset:1,YOffset:5,CropWidth:13,CropHeight:11,ow:16,oh:16,tp:3},{x:836,y:613,w:13, h:11,XOffset:1,YOffset:5,CropWidth:13,CropHeight:11,ow:16,oh:16,tp:3},{x:853,y:593,w:13,h:11,XOffset:1,YOffset:5,CropWidth:13,CropHeight:11,ow:16,oh:16,tp:3},{x:560,y:888,w:13,h:11,XOffset:1,YOffset:5,CropWidth:13,CropHeight:11,ow:16,oh:16,tp:3},{x:580,y:836,w:13,h:11,XOffset:1,YOffset:5,CropWidth:13,CropHeight:11,ow:16,oh:16,tp:3},{x:505,y:995,w:13,h:11,XOffset:1,YOffset:5,CropWidth:13,CropHeight:11,ow:16,oh:16,tp:3},{x:522,y:954,w:13,h:11,XOffset:1,YOffset:5,CropWidth:13,CropHeight:11,ow:16,oh:16, tp:3},{x:548,y:908,w:13,h:11,XOffset:1,YOffset:5,CropWidth:13,CropHeight:11,ow:16,oh:16,tp:3},{x:820,y:628,w:13,h:11,XOffset:1,YOffset:5,CropWidth:13,CropHeight:11,ow:16,oh:16,tp:3},{x:853,y:608,w:13,h:11,XOffset:1,YOffset:5,CropWidth:13,CropHeight:11,ow:16,oh:16,tp:3},{x:577,y:866,w:13,h:11,XOffset:1,YOffset:5,CropWidth:13,CropHeight:11,ow:16,oh:16,tp:3},{x:597,y:836,w:13,h:11,XOffset:1,YOffset:5,CropWidth:13,CropHeight:11,ow:16,oh:16,tp:3},{x:468,y:998,w:13,h:11,XOffset:1,YOffset:5,CropWidth:13, CropHeight:11,ow:16,oh:16,tp:3},{x:522,y:969,w:13,h:11,XOffset:1,YOffset:5,CropWidth:13,CropHeight:11,ow:16,oh:16,tp:3},{x:539,y:949,w:13,h:11,XOffset:1,YOffset:5,CropWidth:13,CropHeight:11,ow:16,oh:16,tp:3},{x:2038,y:398,w:7,h:20,XOffset:3,YOffset:3,CropWidth:7,CropHeight:20,ow:12,oh:23,tp:2},{x:2038,y:422,w:7,h:20,XOffset:3,YOffset:3,CropWidth:7,CropHeight:20,ow:12,oh:23,tp:2},{x:2038,y:446,w:7,h:20,XOffset:3,YOffset:3,CropWidth:7,CropHeight:20,ow:12,oh:23,tp:2},{x:2038,y:470,w:7,h:20,XOffset:3, YOffset:3,CropWidth:7,CropHeight:20,ow:12,oh:23,tp:2},{x:779,y:651,w:14,h:10,XOffset:0,YOffset:10,CropWidth:14,CropHeight:10,ow:16,oh:20,tp:3},{x:769,y:669,w:14,h:10,XOffset:0,YOffset:10,CropWidth:14,CropHeight:10,ow:16,oh:20,tp:3},{x:466,y:982,w:14,h:10,XOffset:0,YOffset:10,CropWidth:14,CropHeight:10,ow:16,oh:20,tp:3},{x:730,y:671,w:14,h:10,XOffset:0,YOffset:10,CropWidth:14,CropHeight:10,ow:16,oh:20,tp:3},{x:730,y:689,w:14,h:10,XOffset:0,YOffset:10,CropWidth:14,CropHeight:10,ow:16,oh:20,tp:3},{ x:697,y:676,w:14,h:10,XOffset:0,YOffset:10,CropWidth:14,CropHeight:10,ow:16,oh:20,tp:3},{x:319,y:1013,w:20,h:7,XOffset:0,YOffset:0,CropWidth:20,CropHeight:7,ow:39,oh:7,tp:3},{x:640,y:755,w:20,h:7,XOffset:9,YOffset:0,CropWidth:20,CropHeight:7,ow:39,oh:7,tp:3},{x:2038,y:494,w:8,h:17,XOffset:4,YOffset:0,CropWidth:8,CropHeight:17,ow:16,oh:17,tp:2},{x:469,y:909,w:9,h:15,XOffset:3,YOffset:0,CropWidth:9,CropHeight:15,ow:16,oh:16,tp:3},{x:674,y:736,w:9,h:15,XOffset:3,YOffset:0,CropWidth:9,CropHeight:15, ow:16,oh:16,tp:3},{x:614,y:790,w:9,h:15,XOffset:3,YOffset:0,CropWidth:9,CropHeight:15,ow:16,oh:16,tp:3},{x:2038,y:515,w:7,h:19,XOffset:3,YOffset:4,CropWidth:7,CropHeight:19,ow:12,oh:23,tp:2},{x:2038,y:515,w:7,h:19,XOffset:3,YOffset:4,CropWidth:7,CropHeight:19,ow:12,oh:23,tp:2},{x:2038,y:538,w:7,h:19,XOffset:3,YOffset:4,CropWidth:7,CropHeight:19,ow:12,oh:23,tp:2},{x:2038,y:538,w:7,h:19,XOffset:3,YOffset:4,CropWidth:7,CropHeight:19,ow:12,oh:23,tp:2},{x:2038,y:561,w:7,h:19,XOffset:4,YOffset:1,CropWidth:7, CropHeight:19,ow:16,oh:20,tp:2},{x:2038,y:584,w:7,h:19,XOffset:4,YOffset:1,CropWidth:7,CropHeight:19,ow:16,oh:20,tp:2},{x:2038,y:607,w:7,h:19,XOffset:4,YOffset:1,CropWidth:7,CropHeight:19,ow:16,oh:20,tp:2},{x:2038,y:630,w:8,h:16,XOffset:4,YOffset:4,CropWidth:8,CropHeight:16,ow:16,oh:20,tp:2},{x:1896,y:1695,w:8,h:16,XOffset:4,YOffset:0,CropWidth:8,CropHeight:16,ow:16,oh:16,tp:2},{x:1896,y:1715,w:8,h:16,XOffset:4,YOffset:0,CropWidth:8,CropHeight:16,ow:16,oh:16,tp:2},{x:1896,y:1735,w:8,h:16,XOffset:4, YOffset:0,CropWidth:8,CropHeight:16,ow:16,oh:16,tp:2},{x:881,y:558,w:8,h:16,XOffset:3,YOffset:1,CropWidth:8,CropHeight:16,ow:16,oh:17,tp:3},{x:870,y:578,w:8,h:16,XOffset:3,YOffset:1,CropWidth:8,CropHeight:16,ow:16,oh:17,tp:3},{x:565,y:903,w:8,h:16,XOffset:3,YOffset:1,CropWidth:8,CropHeight:16,ow:16,oh:17,tp:3},{x:837,y:628,w:8,h:16,XOffset:3,YOffset:1,CropWidth:8,CropHeight:16,ow:16,oh:17,tp:3},{x:853,y:623,w:8,h:16,XOffset:3,YOffset:1,CropWidth:8,CropHeight:16,ow:16,oh:17,tp:3},{x:577,y:881,w:8, h:16,XOffset:3,YOffset:1,CropWidth:8,CropHeight:16,ow:16,oh:17,tp:3},{x:563,y:866,w:8,h:16,XOffset:3,YOffset:4,CropWidth:8,CropHeight:16,ow:16,oh:20,tp:3},{x:594,y:851,w:8,h:16,XOffset:3,YOffset:4,CropWidth:8,CropHeight:16,ow:16,oh:20,tp:3},{x:601,y:816,w:8,h:16,XOffset:3,YOffset:4,CropWidth:8,CropHeight:16,ow:16,oh:20,tp:3},{x:485,y:998,w:8,h:16,XOffset:5,YOffset:4,CropWidth:8,CropHeight:16,ow:16,oh:20,tp:3},{x:522,y:984,w:8,h:16,XOffset:4,YOffset:2,CropWidth:8,CropHeight:16,ow:15,oh:20,tp:3},{ x:539,y:964,w:8,h:16,XOffset:3,YOffset:1,CropWidth:8,CropHeight:16,ow:16,oh:17,tp:3},{x:556,y:923,w:8,h:16,XOffset:3,YOffset:1,CropWidth:8,CropHeight:16,ow:16,oh:17,tp:3},{x:797,y:635,w:8,h:16,XOffset:3,YOffset:1,CropWidth:8,CropHeight:16,ow:16,oh:17,tp:3},{x:769,y:683,w:8,h:16,XOffset:3,YOffset:1,CropWidth:8,CropHeight:16,ow:16,oh:17,tp:3},{x:787,y:665,w:8,h:16,XOffset:3,YOffset:1,CropWidth:8,CropHeight:16,ow:16,oh:17,tp:3},{x:697,y:690,w:8,h:16,XOffset:3,YOffset:1,CropWidth:8,CropHeight:16,ow:16, oh:17,tp:3},{x:664,y:755,w:8,h:16,XOffset:4,YOffset:0,CropWidth:8,CropHeight:16,ow:16,oh:16,tp:3},{x:687,y:736,w:8,h:16,XOffset:4,YOffset:0,CropWidth:8,CropHeight:16,ow:16,oh:16,tp:3},{x:627,y:790,w:8,h:16,XOffset:4,YOffset:0,CropWidth:8,CropHeight:16,ow:16,oh:16,tp:3},{x:1897,y:1755,w:6,h:21,XOffset:0,YOffset:5,CropWidth:6,CropHeight:21,ow:7,oh:28,tp:2},{x:1897,y:1755,w:6,h:21,XOffset:0,YOffset:5,CropWidth:6,CropHeight:21,ow:7,oh:28,tp:2},{x:1897,y:1855,w:6,h:21,XOffset:0,YOffset:5,CropWidth:6, CropHeight:21,ow:7,oh:28,tp:2},{x:1897,y:1780,w:6,h:21,XOffset:0,YOffset:2,CropWidth:6,CropHeight:21,ow:7,oh:28,tp:2},{x:1897,y:1805,w:6,h:21,XOffset:0,YOffset:5,CropWidth:6,CropHeight:21,ow:7,oh:28,tp:2},{x:1897,y:1805,w:6,h:21,XOffset:0,YOffset:5,CropWidth:6,CropHeight:21,ow:7,oh:28,tp:2},{x:1897,y:1830,w:6,h:21,XOffset:0,YOffset:2,CropWidth:6,CropHeight:21,ow:7,oh:28,tp:2},{x:1897,y:1855,w:6,h:21,XOffset:0,YOffset:5,CropWidth:6,CropHeight:21,ow:7,oh:28,tp:2},{x:1897,y:1880,w:6,h:21,XOffset:0, YOffset:5,CropWidth:6,CropHeight:21,ow:7,oh:28,tp:2},{x:1897,y:1880,w:6,h:21,XOffset:0,YOffset:5,CropWidth:6,CropHeight:21,ow:7,oh:28,tp:2},{x:1897,y:1905,w:6,h:21,XOffset:0,YOffset:2,CropWidth:6,CropHeight:21,ow:7,oh:28,tp:2},{x:1897,y:1930,w:6,h:21,XOffset:0,YOffset:2,CropWidth:6,CropHeight:21,ow:7,oh:28,tp:2},{x:2039,y:1723,w:6,h:21,XOffset:0,YOffset:5,CropWidth:6,CropHeight:21,ow:7,oh:28,tp:2},{x:2039,y:1723,w:6,h:21,XOffset:0,YOffset:5,CropWidth:6,CropHeight:21,ow:7,oh:28,tp:2},{x:2039,y:1773, w:6,h:21,XOffset:0,YOffset:5,CropWidth:6,CropHeight:21,ow:7,oh:28,tp:2},{x:2039,y:1748,w:6,h:21,XOffset:0,YOffset:2,CropWidth:6,CropHeight:21,ow:7,oh:28,tp:2},{x:2039,y:1773,w:6,h:21,XOffset:0,YOffset:5,CropWidth:6,CropHeight:21,ow:7,oh:28,tp:2},{x:2039,y:1823,w:6,h:21,XOffset:0,YOffset:5,CropWidth:6,CropHeight:21,ow:7,oh:28,tp:2},{x:2039,y:1798,w:6,h:21,XOffset:0,YOffset:2,CropWidth:6,CropHeight:21,ow:7,oh:28,tp:2},{x:2039,y:1823,w:6,h:21,XOffset:0,YOffset:5,CropWidth:6,CropHeight:21,ow:7,oh:28, tp:2},{x:2039,y:1848,w:6,h:21,XOffset:0,YOffset:2,CropWidth:6,CropHeight:21,ow:7,oh:28,tp:2},{x:2039,y:1873,w:6,h:21,XOffset:0,YOffset:5,CropWidth:6,CropHeight:21,ow:7,oh:28,tp:2},{x:2039,y:1873,w:6,h:21,XOffset:0,YOffset:5,CropWidth:6,CropHeight:21,ow:7,oh:28,tp:2},{x:2039,y:1898,w:6,h:21,XOffset:0,YOffset:2,CropWidth:6,CropHeight:21,ow:7,oh:28,tp:2},{x:2039,y:1923,w:6,h:21,XOffset:0,YOffset:2,CropWidth:6,CropHeight:21,ow:7,oh:28,tp:2},{x:2039,y:1948,w:6,h:21,XOffset:0,YOffset:5,CropWidth:6,CropHeight:21, ow:7,oh:28,tp:2},{x:2039,y:1973,w:6,h:21,XOffset:0,YOffset:5,CropWidth:6,CropHeight:21,ow:7,oh:28,tp:2},{x:1722,y:1884,w:9,h:14,XOffset:3,YOffset:2,CropWidth:9,CropHeight:14,ow:16,oh:16,tp:2},{x:893,y:558,w:9,h:14,XOffset:2,YOffset:2,CropWidth:9,CropHeight:14,ow:16,oh:16,tp:3},{x:882,y:578,w:9,h:14,XOffset:3,YOffset:2,CropWidth:9,CropHeight:14,ow:16,oh:16,tp:3},{x:870,y:598,w:9,h:14,XOffset:2,YOffset:2,CropWidth:9,CropHeight:14,ow:16,oh:16,tp:3},{x:865,y:623,w:9,h:14,XOffset:3,YOffset:2,CropWidth:9, CropHeight:14,ow:16,oh:16,tp:3},{x:849,y:643,w:9,h:14,XOffset:2,YOffset:2,CropWidth:9,CropHeight:14,ow:16,oh:16,tp:3},{x:589,y:881,w:9,h:14,XOffset:2,YOffset:2,CropWidth:9,CropHeight:14,ow:16,oh:16,tp:3},{x:577,y:901,w:9,h:14,XOffset:2,YOffset:2,CropWidth:9,CropHeight:14,ow:16,oh:16,tp:3},{x:606,y:851,w:9,h:14,XOffset:3,YOffset:2,CropWidth:9,CropHeight:14,ow:16,oh:16,tp:3},{x:613,y:816,w:9,h:14,XOffset:3,YOffset:2,CropWidth:9,CropHeight:14,ow:16,oh:16,tp:3},{x:534,y:984,w:9,h:14,XOffset:2,YOffset:2, CropWidth:9,CropHeight:14,ow:16,oh:16,tp:3},{x:522,y:1004,w:9,h:14,XOffset:3,YOffset:2,CropWidth:9,CropHeight:14,ow:16,oh:16,tp:3},{x:551,y:964,w:14,h:9,XOffset:0,YOffset:0,CropWidth:14,CropHeight:9,ow:41,oh:9,tp:3},{x:809,y:643,w:14,h:9,XOffset:0,YOffset:0,CropWidth:14,CropHeight:9,ow:41,oh:9,tp:3},{x:748,y:689,w:14,h:9,XOffset:14,YOffset:0,CropWidth:14,CropHeight:9,ow:41,oh:9,tp:3},{x:781,y:685,w:14,h:9,XOffset:14,YOffset:0,CropWidth:14,CropHeight:9,ow:41,oh:9,tp:3},{x:883,y:596,w:11,h:11,XOffset:0, YOffset:0,CropWidth:11,CropHeight:11,ow:11,oh:11,tp:3},{x:865,y:641,w:11,h:11,XOffset:0,YOffset:0,CropWidth:11,CropHeight:11,ow:11,oh:11,tp:3},{x:799,y:661,w:11,h:11,XOffset:0,YOffset:0,CropWidth:11,CropHeight:11,ow:11,oh:11,tp:3},{x:602,y:871,w:11,h:11,XOffset:0,YOffset:0,CropWidth:11,CropHeight:11,ow:11,oh:11,tp:3},{x:577,y:919,w:11,h:11,XOffset:0,YOffset:0,CropWidth:11,CropHeight:11,ow:11,oh:11,tp:3},{x:626,y:810,w:11,h:11,XOffset:0,YOffset:0,CropWidth:11,CropHeight:11,ow:11,oh:11,tp:3},{x:619, y:834,w:11,h:11,XOffset:0,YOffset:0,CropWidth:11,CropHeight:11,ow:11,oh:11,tp:3},{x:547,y:984,w:11,h:11,XOffset:0,YOffset:0,CropWidth:11,CropHeight:11,ow:11,oh:11,tp:3},{x:497,y:1010,w:11,h:11,XOffset:0,YOffset:0,CropWidth:11,CropHeight:11,ow:11,oh:11,tp:3},{x:535,y:1002,w:11,h:11,XOffset:0,YOffset:0,CropWidth:11,CropHeight:11,ow:11,oh:11,tp:3},{x:556,y:943,w:11,h:11,XOffset:0,YOffset:0,CropWidth:11,CropHeight:11,ow:11,oh:11,tp:3},{x:827,y:648,w:11,h:11,XOffset:0,YOffset:0,CropWidth:11,CropHeight:11, ow:11,oh:11,tp:3},{x:748,y:702,w:11,h:11,XOffset:0,YOffset:0,CropWidth:11,CropHeight:11,ow:11,oh:11,tp:3},{x:781,y:698,w:11,h:11,XOffset:0,YOffset:0,CropWidth:11,CropHeight:11,ow:11,oh:11,tp:3},{x:781,y:698,w:11,h:11,XOffset:0,YOffset:0,CropWidth:11,CropHeight:11,ow:11,oh:11,tp:3},{x:883,y:611,w:11,h:11,XOffset:1,YOffset:2,CropWidth:11,CropHeight:11,ow:15,oh:15,tp:3},{x:862,y:656,w:11,h:11,XOffset:0,YOffset:0,CropWidth:11,CropHeight:11,ow:11,oh:11,tp:3},{x:709,y:690,w:8,h:15,XOffset:0,YOffset:0, CropWidth:8,CropHeight:15,ow:8,oh:15,tp:3},{x:684,y:692,w:8,h:15,XOffset:0,YOffset:0,CropWidth:8,CropHeight:15,ow:8,oh:15,tp:3},{x:547,y:766,w:10,h:12,XOffset:2,YOffset:0,CropWidth:10,CropHeight:12,ow:16,oh:13,tp:3},{x:676,y:756,w:10,h:12,XOffset:2,YOffset:0,CropWidth:10,CropHeight:12,ow:16,oh:13,tp:3},{x:2039,y:1998,w:7,h:17,XOffset:0,YOffset:11,CropWidth:7,CropHeight:17,ow:7,oh:28,tp:2},{x:2039,y:1322,w:7,h:17,XOffset:0,YOffset:11,CropWidth:7,CropHeight:17,ow:7,oh:28,tp:2},{x:635,y:766,w:7,h:17, XOffset:0,YOffset:11,CropWidth:7,CropHeight:17,ow:7,oh:28,tp:3},{x:906,y:558,w:7,h:17,XOffset:0,YOffset:11,CropWidth:7,CropHeight:17,ow:7,oh:28,tp:3},{x:895,y:576,w:7,h:16,XOffset:4,YOffset:0,CropWidth:7,CropHeight:16,ow:16,oh:16,tp:3},{x:799,y:676,w:7,h:16,XOffset:9,YOffset:6,CropWidth:7,CropHeight:16,ow:24,oh:24,tp:3},{x:602,y:886,w:7,h:16,XOffset:9,YOffset:6,CropWidth:7,CropHeight:16,ow:24,oh:24,tp:3},{x:617,y:869,w:7,h:16,XOffset:9,YOffset:6,CropWidth:7,CropHeight:16,ow:24,oh:24,tp:3},{x:634, y:825,w:7,h:16,XOffset:9,YOffset:6,CropWidth:7,CropHeight:16,ow:24,oh:24,tp:3},{x:562,y:977,w:7,h:16,XOffset:8,YOffset:6,CropWidth:7,CropHeight:16,ow:24,oh:24,tp:3},{x:550,y:999,w:7,h:16,XOffset:8,YOffset:6,CropWidth:7,CropHeight:16,ow:24,oh:24,tp:3},{x:898,y:596,w:9,h:12,XOffset:2,YOffset:0,CropWidth:9,CropHeight:12,ow:16,oh:13,tp:3},{x:810,y:676,w:9,h:12,XOffset:0,YOffset:0,CropWidth:9,CropHeight:12,ow:9,oh:12,tp:3},{x:799,y:696,w:9,h:12,XOffset:0,YOffset:0,CropWidth:9,CropHeight:12,ow:9,oh:12, tp:3},{x:1770,y:848,w:15,h:7,XOffset:0,YOffset:0,CropWidth:15,CropHeight:7,ow:39,oh:7,tp:2},{x:640,y:662,w:15,h:7,XOffset:12,YOffset:0,CropWidth:15,CropHeight:7,ow:39,oh:7,tp:3},{x:2038,y:158,w:8,h:13,XOffset:8,YOffset:2,CropWidth:8,CropHeight:13,ow:16,oh:16,tp:1},{x:1726,y:1673,w:6,h:17,XOffset:0,YOffset:11,CropWidth:6,CropHeight:17,ow:7,oh:28,tp:2},{x:1726,y:1673,w:6,h:17,XOffset:0,YOffset:11,CropWidth:6,CropHeight:17,ow:7,oh:28,tp:2},{x:1726,y:1652,w:6,h:17,XOffset:0,YOffset:11,CropWidth:6,CropHeight:17, ow:7,oh:28,tp:2},{x:1726,y:1610,w:6,h:17,XOffset:1,YOffset:11,CropWidth:6,CropHeight:17,ow:7,oh:28,tp:2},{x:1726,y:1673,w:6,h:17,XOffset:0,YOffset:11,CropWidth:6,CropHeight:17,ow:7,oh:28,tp:2},{x:1726,y:1652,w:6,h:17,XOffset:0,YOffset:11,CropWidth:6,CropHeight:17,ow:7,oh:28,tp:2},{x:1726,y:1631,w:6,h:17,XOffset:1,YOffset:11,CropWidth:6,CropHeight:17,ow:7,oh:28,tp:2},{x:1726,y:1652,w:6,h:17,XOffset:0,YOffset:11,CropWidth:6,CropHeight:17,ow:7,oh:28,tp:2},{x:1726,y:1652,w:6,h:17,XOffset:0,YOffset:11, CropWidth:6,CropHeight:17,ow:7,oh:28,tp:2},{x:1726,y:1673,w:6,h:17,XOffset:0,YOffset:11,CropWidth:6,CropHeight:17,ow:7,oh:28,tp:2},{x:699,y:710,w:14,h:7,XOffset:0,YOffset:0,CropWidth:14,CropHeight:7,ow:14,oh:7,tp:3},{x:763,y:713,w:16,h:6,XOffset:4,YOffset:17,CropWidth:16,CropHeight:6,ow:24,oh:24,tp:3},{x:1168,y:526,w:6,h:16,XOffset:9,YOffset:6,CropWidth:6,CropHeight:16,ow:24,oh:24,tp:1},{x:1726,y:1694,w:6,h:16,XOffset:9,YOffset:6,CropWidth:6,CropHeight:16,ow:24,oh:24,tp:2},{x:880,y:626,w:16,h:6, XOffset:4,YOffset:17,CropWidth:16,CropHeight:6,ow:24,oh:24,tp:3},{x:1726,y:1714,w:6,h:16,XOffset:8,YOffset:6,CropWidth:6,CropHeight:16,ow:24,oh:24,tp:2},{x:877,y:656,w:16,h:6,XOffset:4,YOffset:17,CropWidth:16,CropHeight:6,ow:24,oh:24,tp:3},{x:762,y:2043,w:46,h:2,XOffset:0,YOffset:0,CropWidth:46,CropHeight:2,ow:46,oh:2,tp:1},{x:1289,y:2041,w:46,h:2,XOffset:0,YOffset:0,CropWidth:46,CropHeight:2,ow:46,oh:2,tp:1},{x:1486,y:2043,w:46,h:2,XOffset:0,YOffset:0,CropWidth:46,CropHeight:2,ow:46,oh:2,tp:1}, {x:1602,y:2041,w:46,h:2,XOffset:0,YOffset:0,CropWidth:46,CropHeight:2,ow:46,oh:2,tp:1},{x:1726,y:2043,w:46,h:2,XOffset:0,YOffset:0,CropWidth:46,CropHeight:2,ow:46,oh:2,tp:1},{x:233,y:616,w:13,h:7,XOffset:12,YOffset:0,CropWidth:13,CropHeight:7,ow:25,oh:7,tp:3},{x:1761,y:1078,w:5,h:17,XOffset:1,YOffset:11,CropWidth:5,CropHeight:17,ow:7,oh:28,tp:2},{x:1761,y:1078,w:5,h:17,XOffset:1,YOffset:11,CropWidth:5,CropHeight:17,ow:7,oh:28,tp:2},{x:1761,y:1078,w:5,h:17,XOffset:1,YOffset:11,CropWidth:5,CropHeight:17, ow:7,oh:28,tp:2},{x:1761,y:1078,w:5,h:17,XOffset:1,YOffset:11,CropWidth:5,CropHeight:17,ow:7,oh:28,tp:2},{x:717,y:600,w:7,h:12,XOffset:0,YOffset:0,CropWidth:7,CropHeight:12,ow:7,oh:12,tp:3},{x:842,y:661,w:7,h:12,XOffset:0,YOffset:0,CropWidth:7,CropHeight:12,ow:7,oh:12,tp:3},{x:564,y:783,w:7,h:12,XOffset:0,YOffset:0,CropWidth:7,CropHeight:12,ow:7,oh:12,tp:3},{x:741,y:632,w:7,h:12,XOffset:0,YOffset:0,CropWidth:7,CropHeight:12,ow:7,oh:12,tp:3},{x:717,y:600,w:7,h:12,XOffset:0,YOffset:0,CropWidth:7,CropHeight:12, ow:7,oh:12,tp:3},{x:564,y:783,w:7,h:12,XOffset:0,YOffset:0,CropWidth:7,CropHeight:12,ow:7,oh:12,tp:3},{x:741,y:632,w:7,h:12,XOffset:0,YOffset:0,CropWidth:7,CropHeight:12,ow:7,oh:12,tp:3},{x:842,y:661,w:7,h:12,XOffset:0,YOffset:0,CropWidth:7,CropHeight:12,ow:7,oh:12,tp:3},{x:721,y:703,w:7,h:12,XOffset:0,YOffset:0,CropWidth:7,CropHeight:12,ow:7,oh:12,tp:3},{x:721,y:703,w:7,h:12,XOffset:0,YOffset:0,CropWidth:7,CropHeight:12,ow:7,oh:12,tp:3},{x:592,y:906,w:12,h:7,XOffset:0,YOffset:0,CropWidth:12,CropHeight:7, ow:39,oh:7,tp:3},{x:628,y:849,w:12,h:7,XOffset:14,YOffset:0,CropWidth:12,CropHeight:7,ow:39,oh:7,tp:3},{x:2036,y:251,w:9,h:9,XOffset:0,YOffset:0,CropWidth:9,CropHeight:9,ow:9,oh:9,tp:2},{x:453,y:855,w:9,h:9,XOffset:0,YOffset:0,CropWidth:9,CropHeight:9,ow:9,oh:9,tp:3},{x:453,y:855,w:9,h:9,XOffset:0,YOffset:0,CropWidth:9,CropHeight:9,ow:9,oh:9,tp:3},{x:453,y:855,w:9,h:9,XOffset:0,YOffset:0,CropWidth:9,CropHeight:9,ow:9,oh:9,tp:3},{x:2036,y:1606,w:9,h:9,XOffset:0,YOffset:0,CropWidth:9,CropHeight:9, ow:9,oh:9,tp:2},{x:453,y:855,w:9,h:9,XOffset:0,YOffset:0,CropWidth:9,CropHeight:9,ow:9,oh:9,tp:3},{x:608,y:677,w:9,h:9,XOffset:0,YOffset:0,CropWidth:9,CropHeight:9,ow:9,oh:9,tp:3},{x:562,y:748,w:9,h:9,XOffset:0,YOffset:0,CropWidth:9,CropHeight:9,ow:14,oh:9,tp:3},{x:157,y:653,w:9,h:9,XOffset:0,YOffset:0,CropWidth:9,CropHeight:9,ow:9,oh:9,tp:3},{x:593,y:749,w:9,h:9,XOffset:0,YOffset:0,CropWidth:9,CropHeight:9,ow:9,oh:9,tp:3},{x:593,y:749,w:9,h:9,XOffset:0,YOffset:0,CropWidth:9,CropHeight:9,ow:41,oh:9, tp:3},{x:566,y:836,w:9,h:9,XOffset:0,YOffset:0,CropWidth:9,CropHeight:9,ow:41,oh:9,tp:3},{x:820,y:615,w:9,h:9,XOffset:16,YOffset:0,CropWidth:9,CropHeight:9,ow:41,oh:9,tp:3},{x:580,y:851,w:9,h:9,XOffset:16,YOffset:0,CropWidth:9,CropHeight:9,ow:41,oh:9,tp:3},{x:468,y:1013,w:9,h:9,XOffset:0,YOffset:0,CropWidth:9,CropHeight:9,ow:9,oh:9,tp:3},{x:639,y:787,w:11,h:7,XOffset:6,YOffset:15,CropWidth:11,CropHeight:7,ow:24,oh:24,tp:3},{x:690,y:756,w:11,h:7,XOffset:6,YOffset:15,CropWidth:11,CropHeight:7,ow:24, oh:24,tp:3},{x:676,y:772,w:11,h:7,XOffset:6,YOffset:15,CropWidth:11,CropHeight:7,ow:24,oh:24,tp:3},{x:646,y:766,w:11,h:7,XOffset:6,YOffset:15,CropWidth:11,CropHeight:7,ow:24,oh:24,tp:3},{x:639,y:787,w:11,h:7,XOffset:6,YOffset:15,CropWidth:11,CropHeight:7,ow:24,oh:24,tp:3},{x:917,y:558,w:11,h:7,XOffset:6,YOffset:15,CropWidth:11,CropHeight:7,ow:24,oh:24,tp:3},{x:613,y:889,w:9,h:8,XOffset:0,YOffset:1,CropWidth:9,CropHeight:8,ow:9,oh:9,tp:3},{x:698,y:2041,w:36,h:2,XOffset:0,YOffset:0,CropWidth:36,CropHeight:2, ow:36,oh:2,tp:1},{x:1866,y:2041,w:36,h:2,XOffset:0,YOffset:0,CropWidth:36,CropHeight:2,ow:36,oh:2,tp:1},{x:1968,y:2043,w:36,h:2,XOffset:0,YOffset:0,CropWidth:36,CropHeight:2,ow:36,oh:2,tp:1},{x:812,y:2043,w:36,h:2,XOffset:0,YOffset:0,CropWidth:36,CropHeight:2,ow:36,oh:2,tp:1},{x:2038,y:1926,w:6,h:11,XOffset:0,YOffset:1,CropWidth:6,CropHeight:11,ow:6,oh:13,tp:1},{x:917,y:569,w:9,h:7,XOffset:0,YOffset:0,CropWidth:9,CropHeight:7,ow:16,oh:16,tp:3},{x:2034,y:718,w:10,h:6,XOffset:2,YOffset:6,CropWidth:10, CropHeight:6,ow:13,oh:12,tp:2},{x:626,y:889,w:10,h:6,XOffset:2,YOffset:6,CropWidth:10,CropHeight:6,ow:13,oh:12,tp:3},{x:2039,y:1343,w:7,h:8,XOffset:0,YOffset:0,CropWidth:7,CropHeight:8,ow:7,oh:8,tp:2},{x:1726,y:1734,w:6,h:9,XOffset:0,YOffset:0,CropWidth:6,CropHeight:9,ow:41,oh:9,tp:2},{x:1984,y:1250,w:6,h:9,XOffset:0,YOffset:0,CropWidth:6,CropHeight:9,ow:41,oh:9,tp:2},{x:2039,y:2019,w:6,h:9,XOffset:17,YOffset:0,CropWidth:6,CropHeight:9,ow:41,oh:9,tp:2},{x:1992,y:947,w:6,h:9,XOffset:17,YOffset:0, CropWidth:6,CropHeight:9,ow:41,oh:9,tp:2},{x:2038,y:1529,w:7,h:7,XOffset:0,YOffset:0,CropWidth:7,CropHeight:7,ow:7,oh:7,tp:1},{x:2038,y:815,w:7,h:7,XOffset:0,YOffset:0,CropWidth:7,CropHeight:7,ow:7,oh:7,tp:2},{x:2038,y:815,w:7,h:7,XOffset:0,YOffset:0,CropWidth:7,CropHeight:7,ow:39,oh:7,tp:2},{x:505,y:911,w:7,h:7,XOffset:16,YOffset:0,CropWidth:7,CropHeight:7,ow:39,oh:7,tp:3},{x:543,y:923,w:7,h:7,XOffset:1,YOffset:1,CropWidth:7,CropHeight:7,ow:9,oh:9,tp:3},{x:562,y:997,w:7,h:7,XOffset:1,YOffset:1, CropWidth:7,CropHeight:7,ow:9,oh:9,tp:3},{x:1992,y:960,w:6,h:7,XOffset:17,YOffset:1,CropWidth:6,CropHeight:7,ow:41,oh:9,tp:2},{x:1652,y:2041,w:10,h:4,XOffset:2,YOffset:6,CropWidth:10,CropHeight:4,ow:13,oh:12,tp:1},{x:1761,y:1099,w:5,h:8,XOffset:2,YOffset:1,CropWidth:5,CropHeight:8,ow:9,oh:9,tp:2},{x:1906,y:2041,w:7,h:5,XOffset:1,YOffset:1,CropWidth:7,CropHeight:5,ow:16,oh:16,tp:1},{x:1917,y:2041,w:7,h:5,XOffset:0,YOffset:0,CropWidth:7,CropHeight:5,ow:7,oh:8,tp:1},{x:2002,y:169,w:16,h:2,XOffset:10, YOffset:0,CropWidth:16,CropHeight:2,ow:36,oh:2,tp:1},{x:1339,y:2041,w:16,h:2,XOffset:10,YOffset:0,CropWidth:16,CropHeight:2,ow:36,oh:2,tp:1},{x:1980,y:1687,w:7,h:4,XOffset:0,YOffset:0,CropWidth:7,CropHeight:4,ow:7,oh:4,tp:2},{x:2002,y:851,w:7,h:4,XOffset:0,YOffset:0,CropWidth:7,CropHeight:4,ow:7,oh:4,tp:2},{x:2042,y:1863,w:4,h:7,XOffset:17,YOffset:0,CropWidth:4,CropHeight:7,ow:39,oh:7,tp:1},{x:2042,y:175,w:4,h:7,XOffset:0,YOffset:0,CropWidth:4,CropHeight:7,ow:39,oh:7,tp:1},{x:1359,y:2041,w:5,h:5, XOffset:0,YOffset:0,CropWidth:5,CropHeight:5,ow:5,oh:5,tp:1},{x:2038,y:650,w:5,h:5,XOffset:0,YOffset:0,CropWidth:5,CropHeight:5,ow:5,oh:5,tp:2},{x:1726,y:1747,w:5,h:5,XOffset:0,YOffset:0,CropWidth:5,CropHeight:5,ow:5,oh:5,tp:2},{x:1992,y:971,w:5,h:5,XOffset:0,YOffset:0,CropWidth:5,CropHeight:5,ow:5,oh:5,tp:2},{x:2024,y:938,w:5,h:5,XOffset:0,YOffset:0,CropWidth:5,CropHeight:5,ow:5,oh:5,tp:2},{x:2015,y:1098,w:5,h:5,XOffset:0,YOffset:0,CropWidth:5,CropHeight:5,ow:5,oh:5,tp:2},{x:2,y:2041,w:5,h:5,XOffset:0, YOffset:0,CropWidth:5,CropHeight:5,ow:5,oh:5,tp:2},{x:1536,y:2043,w:8,h:3,XOffset:1,YOffset:1,CropWidth:8,CropHeight:3,ow:10,oh:5,tp:1},{x:11,y:2041,w:5,h:4,XOffset:0,YOffset:0,CropWidth:5,CropHeight:4,ow:5,oh:4,tp:2},{x:1776,y:2043,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:1},{x:2008,y:2043,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:1},{x:852,y:2043,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:1},{x:1548,y:2043,w:6,h:3,XOffset:2, YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:1},{x:1786,y:2043,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:1},{x:2018,y:2043,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:1},{x:862,y:2043,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:1},{x:1558,y:2043,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:1},{x:1796,y:2043,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:1},{x:2028,y:2043,w:6,h:3,XOffset:2, YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:1},{x:872,y:2043,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:1},{x:1568,y:2043,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:1},{x:1806,y:2043,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:1},{x:2038,y:2043,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:1},{x:882,y:2043,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:1},{x:1578,y:2043,w:6,h:3,XOffset:2, YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:1},{x:1816,y:2043,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:1},{x:1588,y:2043,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:1},{x:193,y:2043,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:1},{x:203,y:2043,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:1},{x:213,y:2043,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:1},{x:223,y:2043,w:6,h:3,XOffset:2, YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:1},{x:233,y:2043,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:1},{x:243,y:2043,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:1},{x:253,y:2043,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:1},{x:263,y:2043,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:1},{x:273,y:2043,w:6,h:3,XOffset:2,YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:1},{x:283,y:2043,w:6,h:3,XOffset:2, YOffset:1,CropWidth:6,CropHeight:3,ow:10,oh:5,tp:1},{x:2042,y:1874,w:4,h:4,XOffset:1,YOffset:1,CropWidth:4,CropHeight:4,ow:7,oh:7,tp:1},{x:2042,y:186,w:4,h:4,XOffset:0,YOffset:0,CropWidth:4,CropHeight:4,ow:4,oh:4,tp:1},{x:2042,y:1882,w:4,h:4,XOffset:0,YOffset:0,CropWidth:4,CropHeight:4,ow:4,oh:4,tp:1},{x:1300,y:519,w:2,h:8,XOffset:0,YOffset:0,CropWidth:2,CropHeight:8,ow:2,oh:8,tp:1},{x:2042,y:194,w:3,h:3,XOffset:0,YOffset:0,CropWidth:3,CropHeight:3,ow:3,oh:3,tp:1},{x:2042,y:1890,w:4,h:2,XOffset:0, YOffset:0,CropWidth:4,CropHeight:2,ow:4,oh:4,tp:1},{x:1783,y:1960,w:2,h:4,XOffset:0,YOffset:0,CropWidth:2,CropHeight:4,ow:4,oh:4,tp:1},{x:2044,y:2,w:2,h:4,XOffset:0,YOffset:4,CropWidth:2,CropHeight:4,ow:2,oh:8,tp:1},{x:1300,y:531,w:2,h:2,XOffset:6,YOffset:8,CropWidth:2,CropHeight:2,ow:13,oh:12,tp:1},{x:2042,y:201,w:2,h:2,XOffset:6,YOffset:8,CropWidth:2,CropHeight:2,ow:13,oh:12,tp:1},{x:2042,y:1896,w:1,h:1,XOffset:0,YOffset:0,CropWidth:1,CropHeight:1,ow:100,oh:169,tp:1},{x:2042,y:1896,w:1,h:1,XOffset:0, YOffset:0,CropWidth:1,CropHeight:1,ow:100,oh:169,tp:1},{x:2042,y:1896,w:1,h:1,XOffset:0,YOffset:0,CropWidth:1,CropHeight:1,ow:39,oh:7,tp:1},{x:2042,y:1896,w:1,h:1,XOffset:0,YOffset:0,CropWidth:1,CropHeight:1,ow:41,oh:9,tp:1},{x:2042,y:1896,w:1,h:1,XOffset:0,YOffset:0,CropWidth:1,CropHeight:1,ow:41,oh:9,tp:1},{x:2042,y:1896,w:1,h:1,XOffset:0,YOffset:0,CropWidth:1,CropHeight:1,ow:39,oh:7,tp:1},{x:2042,y:1896,w:1,h:1,XOffset:0,YOffset:0,CropWidth:1,CropHeight:1,ow:41,oh:9,tp:1}],Textures:["RetroBowl_texture_0.png", "RetroBowl_texture_1.png","RetroBowl_texture_2.png","RetroBowl_texture_3.png"],TexturesBlocks:[{MipsToGenerate:0},{MipsToGenerate:0},{MipsToGenerate:0},{MipsToGenerate:0}],TextureGroupInfo:[{pName:"__YY__0fallbacktexture.png_YYG_AUTO_GEN_TEX_GROUP_NAME_",TextureIDs:[0],SpriteIDs:[],SpineSpriteIDs:[],FontIDs:[],TilesetIDs:[]},{pName:"Default",TextureIDs:[1,2,3],SpriteIDs:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45, 46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184, 185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309, 310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396,397,398,399,400,401,402,403,404,405,406,407],SpineSpriteIDs:[],FontIDs:[0,1,2,3,4],TilesetIDs:[]}],FeatureFlags:{"filt+fx":"filt+fx","subscription":"subscription", "gx_mod_wallpaper":"gx_mod_wallpaper","nullish":"nullish","login_sso":"login_sso","operagx-yyc":"operagx-yyc","mqtt":"mqtt","audio-fx":"audio-fx","rollback":"rollback","intellisense":"intellisense","test":"test","custom_env":"custom_env","filt+fx":"filt+fx"},Options:{debugMode:false,AssetCompilerMajorVersion:2,AssetCompilerMinorVersion:0,AssetCompilerBuildVersion:0,GameSpeed:60,DrawColour:4294967295,xscreensize:480,yscreensize:270,gameId:0,gameGuid:"42d81d57-e160-46ef-aff5-6f4d57769f79",fullScreen:false, interpolatePixels:false,showCursor:true,scale:1,allowFullScreenKey:true,freezeOnLostFocus:false,showLoadingBar:false,displayErrors:false,writeErrors:false,abortErrors:false,variableErrors:true,outputDebugToConsole:true,WebGL:1,WebGLPreserveDrawingBuffer:1,CollisionCompatibility:false,UseNewAudio:true,GameDir:"html5game",Config:"CollegeBowl_WW",ViewColour:0,CreateEventOrder:false,UseParticles:false,UseBuiltinFont:false,LocalRunAlert:true,crc:0,ProjectName:"RetroBowl",md5:[99,82,39,0,0,0,0,0,0,0,0, 0,0,0,0,0],MajorVersion:0,MinorVersion:8,BuildVersion:19,RevisionVersion:0,DisplayName:"Retro Bowl College",UseFBExtension:false,tm:1698834665,AllowStatistics:"True",loadingBarCallback:"poki_loadbar"}};function gml_Script_poki_init(_inst,_other){if(yyGetBool(poki_init_raw())){{gml_Script_gmcallback_poki_closure(_inst,_other,0,0,0);};};}// /// @description (then:script[ok; custom], custom) // /// @param then:script[ok; custom] // /// @param custom function gml_Script_poki_commercial_break(_inst, _other){var $$args=Array.prototype.slice.call(arguments);{var gmll_script=$$args[__yy_gml_array_check_index(2+(0),$$args)];var gmll_custom;if(yyfgreater(($$args.length-2),1)){gmll_custom=$$args[__yy_gml_array_check_index(2+(1),$$args)];}else {gmll_custom=undefined;};poki_commercial_break_raw(gml_Script_poki_script_closure(_inst,_other,gmll_script,gmll_custom));}}// /// @description (then:script[ok; custom], custom) // /// @param then:script[ok; custom] // /// @param custom function gml_Script_poki_rewarded_break(_inst, _other){var $$args=Array.prototype.slice.call(arguments);{var gmll_script=$$args[__yy_gml_array_check_index(2+(0),$$args)];var gmll_custom;if(yyfgreater(($$args.length-2),1)){gmll_custom=$$args[__yy_gml_array_check_index(2+(1),$$args)];}else {gmll_custom=undefined;};poki_rewarded_break_raw(gml_Script_poki_script_closure(_inst,_other,gmll_script,gmll_custom));}}// /// @description (script, custom)~ // /// @param script // /// @param custom function gml_Script_poki_script_closure(_inst,_other,argument0, argument1){var $$args=Array.prototype.slice.call(arguments);{return poki_script_closure_raw($$args[__yy_gml_array_check_index(2+((-2)),$$args)],$$args[__yy_gml_array_check_index(2+((-1)),$$args)],argument0,argument1);}}// /// @description (script, result, custom)~ // /// @param script // /// @param result // /// @param custom function gml_Script_gmcallback_poki_closure(_inst,_other,argument0,argument1,argument2){script_execute(_inst,_other,argument0,argument1,argument2);}var gmcallback_poki_closure=gml_Script_gmcallback_poki_closure; function gml_Script_poki_get_team(_inst,_other){return poki_get_team_raw();}function gml_Script_poki_set_team(_inst,_other,argument0){return poki_set_team_raw(argument0);}function gml_GlobalScript_s_update_shopping_buttons(_inst,_other){(_inst.gmls_update_shopping_buttons=__yy_method(_inst,gml_Script_s_update_shopping_buttons));(_inst.gmlbtn_click_shopping_next=__yy_method(_inst,gml_Script_btn_click_shopping_next));(_inst.gmlbtn_click_shopping_prev=__yy_method(_inst,gml_Script_btn_click_shopping_prev)); (_inst.gmlbtn_shopping_purchase=__yy_method(_inst,gml_Script_btn_shopping_purchase));(_inst.gmls_confirm_purchase=__yy_method(_inst,gml_Script_s_confirm_purchase));(_inst.gmls_count_shop_items_by_type=__yy_method(_inst,gml_Script_s_count_shop_items_by_type));(_inst.gmls_degrade_shop_items=__yy_method(_inst,gml_Script_s_degrade_shop_items));}function gml_Script_s_update_shopping_buttons(_inst,_other){{var gmlitem_count=gml_Script_s_count_shop_items_by_type(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlshopping_type); var gmlmax_pages=ceil(yyfdivide(__yy_gml_errCheck(gmlitem_count),6));gml_Script_slog(_inst,_other,yyfplus("Max pages = ",__yy_gml_errCheck(string(gmlmax_pages))));{var __yy__v0=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1 in __yy__v0){if(!__yy__v0.hasOwnProperty(__yy__v1))continue;var __yy__v2=__yy__v0[__yy__v1];{__yy__v2.gmlshopping_page=clamp(__yy__v2.gmlshopping_page,1,gmlmax_pages);yyInst(_inst,_other,100700).visible=true;yyInst(_inst,_other,100701).visible=true;if(yyfequal(__yy__v2.gmlshopping_page, 1)){yyInst(_inst,_other,100700).visible=false;};if(yyfgreaterequal(__yy__v2.gmlshopping_page,gmlmax_pages)){yyInst(_inst,_other,100701).visible=false;};yyInst(_inst,_other,100702).gmltext="";if(yyfgreater(gmlmax_pages,1)){yyInst(_inst,_other,100702).gmltext=yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(__yy__v2,_inst,"ui_Page"))," "),__yy_gml_errCheck(string(__yy__v2.gmlshopping_page))),"/"),__yy_gml_errCheck(string(gmlmax_pages)));};}}};var gmlfirst_item=yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlshopping_page),1)),6);var gmlitem_num=0;var gmlbx=32;var gmlby=48;var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlshoppinglist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlshoppinglist,gmli);gml_Script_slog(_inst,_other,ds_map_find_value(gmlmap,"name"));if(yyfequal(real(ds_map_find_value(gmlmap, "type")),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlshopping_type)){{if((yyGetBool(yyfgreaterequal(gmlitem_num,gmlfirst_item)))&&(yyGetBool(yyfless(gmlitem_num,yyfplus(__yy_gml_errCheck(gmlfirst_item),6))))){{var gmlbtn=instance_create_layer(gmlbx,gmlby,"Instances",YYASSET_REF(0x00000014));yyInst(_inst,_other,gmlbtn).gmlonClickAction=kgml_Script_btn_shopping_purchase;yyInst(_inst,_other,gmlbtn).image_xscale=4;yyInst(_inst,_other,gmlbtn).image_yscale=2.5;yyInst(_inst,_other,gmlbtn).gmltext=ds_map_find_value(gmlmap, "name");if(yyGetBool(real(ds_map_find_value(gmlmap,"owned")))){{yyInst(_inst,_other,gmlbtn).gmlactive=false;yyInst(_inst,_other,gmlbtn).gmltext=yyfplus(yyInst(_inst,_other,gmlbtn).gmltext,yyfplus(yyfplus("#",__yy_gml_errCheck(string(round(real(ds_map_find_value(gmlmap,"life")))))),"%"));};}else {yyInst(_inst,_other,gmlbtn).gmltext=yyfplus(yyInst(_inst,_other,gmlbtn).gmltext,yyfplus("#$",__yy_gml_errCheck(string(ds_map_find_value(gmlmap,"price")))));};yyInst(_inst,_other,gmlbtn).gmltext=string_hash_to_newline(yyInst(_inst, _other,gmlbtn).gmltext);yyInst(_inst,_other,gmlbtn).gmluid=gmli;var gmlbw=yyftime(__yy_gml_errCheck(yyInst(_inst,_other,gmlbtn).image_xscale),32);var gmlbh=yyftime(__yy_gml_errCheck(yyInst(_inst,_other,gmlbtn).image_yscale),32);gmlbx=yyfplus(gmlbx,yyfplus(16,__yy_gml_errCheck(gmlbw)));if(yyfgreaterequal(gmlbx,yyfminus(480,__yy_gml_errCheck(gmlbw)))){{gmlbx=32;gmlby=yyfplus(gmlby,yyfplus(12,__yy_gml_errCheck(gmlbh)));};};};};(g_yyPrePostObject__=gmlitem_num,gmlitem_num=(g_yyPrePostObject__ instanceof Long?gmlitem_num.add(1):++gmlitem_num), g_yyPrePostObject__);};};}};}}function gml_Script_btn_click_shopping_next(_inst,_other){{(g_yyPrePostObject__=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlshopping_page,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlshopping_page=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlshopping_page.add(1):++yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlshopping_page),g_yyPrePostObject__);room_goto(YYASSET_REF(0x03000029));}}function gml_Script_btn_click_shopping_prev(_inst, _other){{(g_yyPrePostObject__=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlshopping_page,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlshopping_page=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlshopping_page.subtract(1):--yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlshopping_page),g_yyPrePostObject__);room_goto(YYASSET_REF(0x03000029));}}function gml_Script_btn_shopping_purchase(_inst,_other){{{var __yy__v3=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v4 in __yy__v3){ if(!__yy__v3.hasOwnProperty(__yy__v4))continue;var __yy__v5=__yy__v3[__yy__v4];{__yy__v5.gmlshopping_item=_inst.gmluid;var gmlmap=ds_list_find_value(__yy__v5.gmlshoppinglist,__yy__v5.gmlshopping_item);gml_Script_slog(__yy__v5,_inst,ds_map_find_value(gmlmap,"name"));if(yyfless(__yy__v5.gmlcoach_credit,ds_map_find_value(gmlmap,"price"))){{gml_Script_s_create_message(__yy__v5,_inst,"",gml_Script_s_str(__yy__v5,_inst,"msg_NotEnoughCash"),gml_Script_s_str(__yy__v5,_inst,"ui_Ok"),"",kgml_Script_s_msg_clear, "",global.gmlc_background,1);};}else {{var gmlmsg=gml_Script_s_str(__yy__v5,_inst,"msg_ConfirmPurchase");gmlmsg=string_replace(gmlmsg,"$price",string(ds_map_find_value(gmlmap,"price")));gmlmsg=string_replace(gmlmsg,"$itemname",string(ds_map_find_value(gmlmap,"name")));gml_Script_s_create_message(__yy__v5,_inst,"",gmlmsg,gml_Script_s_str(__yy__v5,_inst,"ui_Yes"),gml_Script_s_str(__yy__v5,_inst,"ui_No"),kgml_Script_s_confirm_purchase,kgml_Script_s_msg_clear,global.gmlc_background,1);};};}}};}}function gml_Script_s_confirm_purchase(_inst, _other){{{var __yy__v6=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v7 in __yy__v6){if(!__yy__v6.hasOwnProperty(__yy__v7))continue;var __yy__v8=__yy__v6[__yy__v7];{var gmlmap=ds_list_find_value(__yy__v8.gmlshoppinglist,__yy__v8.gmlshopping_item);ds_map_set(gmlmap,"owned",1);__yy__v8.gmlcoach_credit=yyfminus(__yy__v8.gmlcoach_credit,ds_map_find_value(gmlmap,"price"));room_goto(YYASSET_REF(0x03000029));}}};}}function gml_Script_s_count_shop_items_by_type(_inst,_other,argument0){{{var __yy__v9=GetWithArray(YYASSET_REF(0x00000062)); for(var __yy__v10 in __yy__v9){if(!__yy__v9.hasOwnProperty(__yy__v10))continue;var __yy__v11=__yy__v9[__yy__v10];{var gmlcount=0;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v11.gmlshoppinglist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(__yy__v11.gmlshoppinglist,gmli);if(yyfequal(real(ds_map_find_value(gmlmap,"type")),argument0)){(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount), g_yyPrePostObject__);};}};return gmlcount;}}};}}function gml_Script_s_degrade_shop_items(_inst,_other){{{var __yy__v12=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v13 in __yy__v12){if(!__yy__v12.hasOwnProperty(__yy__v13))continue;var __yy__v14=__yy__v12[__yy__v13];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v14.gmlshoppinglist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(__yy__v14.gmlshoppinglist, gmli);if(yyfequal(real(ds_map_find_value(gmlmap,"owned")),1)){{var ___sw2___=real(ds_map_find_value(gmlmap,"type"));var ___swc3___=-1;if(yyCompareVal(___sw2___,0,g_GMLMathEpsilon,false)==0){___swc3___=0;}else if(yyCompareVal(___sw2___,1,g_GMLMathEpsilon,false)==0){___swc3___=1;}else if(yyCompareVal(___sw2___,2,g_GMLMathEpsilon,false)==0){___swc3___=2;}switch(___swc3___){case 0:{ds_map_set(gmlmap,"life",yyfminus(__yy_gml_errCheck(real(ds_map_find_value(gmlmap,"life"))),__yy_gml_errCheck(irandom_range(2, 10))));break;}case 1:{ds_map_set(gmlmap,"life",yyfminus(__yy_gml_errCheck(real(ds_map_find_value(gmlmap,"life"))),__yy_gml_errCheck(irandom_range(1,5))));break;}case 2:{ds_map_set(gmlmap,"life",yyfminus(__yy_gml_errCheck(real(ds_map_find_value(gmlmap,"life"))),__yy_gml_errCheck(irandom(2))));break;}};if(yyflessequal(ds_map_find_value(gmlmap,"life"),0)){{ds_map_set(gmlmap,"owned",0);var gmlmsg=gml_Script_s_str(__yy__v14,_inst,"msg_ItemDegraded");gmlmsg=string_replace(gmlmsg,"$itemname",string(ds_map_find_value(gmlmap, "name")));gml_Script_s_add_news(__yy__v14,_inst,gmlmsg);};};};};}};}}};}}function gml_GlobalScript_s_college_sorting(_inst,_other){(_inst.gmls_co_teams_data_sort_rank=__yy_method(_inst,gml_Script_s_co_teams_data_sort_rank));(_inst.gmls_co_teams_data_sort_rank_season=__yy_method(_inst,gml_Script_s_co_teams_data_sort_rank_season));(_inst.gmls_co_teams_data_sort_rank_quick=__yy_method(_inst,gml_Script_s_co_teams_data_sort_rank_quick));(_inst.gmls_co_teams_data_sort_rank_pos=__yy_method(_inst,gml_Script_s_co_teams_data_sort_rank_pos)); (_inst.gmls_co_teams_data_sort_pct=__yy_method(_inst,gml_Script_s_co_teams_data_sort_pct));(_inst.gmls_co_teams_data_sort_pct_quick=__yy_method(_inst,gml_Script_s_co_teams_data_sort_pct_quick));(_inst.gmls_co_teams_data_sort_conf_wins_losses=__yy_method(_inst,gml_Script_s_co_teams_data_sort_conf_wins_losses));(_inst.gmls_co_teams_data_sort_wins_rank=__yy_method(_inst,gml_Script_s_co_teams_data_sort_wins_rank));(_inst.gmls_create_team_data_array=__yy_method(_inst,gml_Script_s_create_team_data_array)); (_inst.gmls_update_team_data_rank_pos=__yy_method(_inst,gml_Script_s_update_team_data_rank_pos));(_inst.gmls_team_data_array_add_formatted_data=__yy_method(_inst,gml_Script_s_team_data_array_add_formatted_data));(_inst.gmls_co_teams_tiebreak=__yy_method(_inst,gml_Script_s_co_teams_tiebreak));(_inst.gmls_co_teams_tiebreak_record_next_best_placed_division=__yy_method(_inst,gml_Script_s_co_teams_tiebreak_record_next_best_placed_division));}function gml_Script_s_co_teams_data_sort_rank(_inst,_other,argument0, argument1){{var gmld=yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(real(yyInst(_inst,_other,argument1).gmlrank_pts)),1000)),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(real(yyInst(_inst,_other,argument0).gmlrank_pts)),1000)));if(yyfnotequal(gmld,0)){return gmld;}else {return gml_Script_s_co_teams_tiebreak(_inst,_other,argument0,argument1,false);};}}function gml_Script_s_co_teams_data_sort_rank_season(_inst,_other,argument0,argument1){{var gmld=yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(real(yyInst(_inst, _other,argument1).gmlrank_season)),1000)),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(real(yyInst(_inst,_other,argument0).gmlrank_season)),1000)));if(yyfnotequal(gmld,0)){return gmld;}else {return gml_Script_s_co_teams_tiebreak(_inst,_other,argument0,argument1,false);};}}function gml_Script_s_co_teams_data_sort_rank_quick(_inst,_other,argument0,argument1){{return yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(real(yyInst(_inst,_other,argument1).gmlrank_pts)),1000)),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(real(yyInst(_inst, _other,argument0).gmlrank_pts)),1000)));}}function gml_Script_s_co_teams_data_sort_rank_pos(_inst,_other,argument0,argument1){{return yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gml_Script_s_get_ranking_pos_data(_inst,_other,yyInst(_inst,_other,argument0).gmlteam)).gmlpos),__yy_gml_errCheck(yyInst(_inst,_other,gml_Script_s_get_ranking_pos_data(_inst,_other,yyInst(_inst,_other,argument1).gmlteam)).gmlpos));}}function gml_Script_s_co_teams_data_sort_pct(_inst,_other,argument0,argument1){{var gmld=yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(real(yyInst(_inst, _other,argument1).gmlpct_cnf)),1000)),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(real(yyInst(_inst,_other,argument0).gmlpct_cnf)),1000)));if(yyfnotequal(gmld,0)){return gmld;}else {{gmld=gml_Script_s_co_teams_tiebreak(_inst,_other,argument0,argument1);return gmld;};};}}function gml_Script_s_co_teams_data_sort_pct_quick(_inst,_other,argument0,argument1){{return yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(real(yyInst(_inst,_other,argument1).gmlpct_cnf)),1000)),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(real(yyInst(_inst, _other,argument0).gmlpct_cnf)),1000)));}}function gml_Script_s_co_teams_data_sort_conf_wins_losses(_inst,_other,argument0,argument1){{var gmlwl1=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,argument0).gmlwins_cnf),__yy_gml_errCheck(yyInst(_inst,_other,argument0).gmllosses_cnf));var gmlwl2=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,argument1).gmlwins_cnf),__yy_gml_errCheck(yyInst(_inst,_other,argument1).gmllosses_cnf));if(yyfnotequal(gmlwl1,gmlwl2)){return yyfminus(__yy_gml_errCheck(gmlwl2),__yy_gml_errCheck(gmlwl1)); }else {return gml_Script_s_co_teams_tiebreak(_inst,_other,argument0,argument1,false);};}}function gml_Script_s_co_teams_data_sort_wins_rank(_inst,_other,argument0,argument1){{var gmlwr1=yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,argument0).gmlwins),1000)),__yy_gml_errCheck(yyInst(_inst,_other,argument0).gmlrank_pts));var gmlwr2=yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,argument1).gmlwins),1000)),__yy_gml_errCheck(yyInst(_inst,_other,argument1).gmlrank_pts)); if(yyfnotequal(gmlwr1,gmlwr2)){return yyfminus(__yy_gml_errCheck(gmlwr2),__yy_gml_errCheck(gmlwr1));}else {return gml_Script_s_co_teams_tiebreak(_inst,_other,argument0,argument1,false);};}}function gml_Script____struct___0_s_create_team_data_array_gml_GlobalScript_s_college_sorting(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___0_s_create_team_data_array_gml_GlobalScript_s_college_sorting";}if(gml_Script____struct___0_s_create_team_data_array_gml_GlobalScript_s_college_sorting.prototype.__type===undefined){ gml_Script____struct___0_s_create_team_data_array_gml_GlobalScript_s_college_sorting.prototype.__type="gml_Script____struct___0_s_create_team_data_array_gml_GlobalScript_s_college_sorting";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___0_s_create_team_data_array_gml_GlobalScript_s_college_sorting.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlteam=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmluid=$$args[__yy_gml_array_check_index(2+(1), $$args)];_inst.gmlcnf_id=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.gmldiv_id=$$args[__yy_gml_array_check_index(2+(3),$$args)];_inst.gmlname=$$args[__yy_gml_array_check_index(2+(4),$$args)];_inst.gmlwins=$$args[__yy_gml_array_check_index(2+(5),$$args)];_inst.gmllosses=$$args[__yy_gml_array_check_index(2+(6),$$args)];_inst.gmlwins_cnf=$$args[__yy_gml_array_check_index(2+(7),$$args)];_inst.gmllosses_cnf=$$args[__yy_gml_array_check_index(2+(8),$$args)];_inst.gmlwins_div=$$args[__yy_gml_array_check_index(2+(9), $$args)];_inst.gmllosses_div=$$args[__yy_gml_array_check_index(2+(10),$$args)];_inst.gmlrank_pts=$$args[__yy_gml_array_check_index(2+(11),$$args)];_inst.gmlrank_pts_prev=$$args[__yy_gml_array_check_index(2+(12),$$args)];_inst.gmlrank_season=$$args[__yy_gml_array_check_index(2+(13),$$args)];_inst.gmlpct=$$args[__yy_gml_array_check_index(2+(14),$$args)];_inst.gmlpct_cnf=$$args[__yy_gml_array_check_index(2+(15),$$args)];_inst.gmlseeded=false;}}}}function gml_Script_s_create_team_data_array(_inst,_other, argument0){{var gmlteams_ext=__yy_gml_array_create([]);var gmltm;var gmli=0;for(;yyfless(gmli,array_length(argument0));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmltm=argument0[__yy_gml_array_check_index(gmli,argument0)];var gmlteam=__yy_gml_object_create(_inst,(_inst.gml___struct___0=__yy_method(_inst,gml_Script____struct___0_s_create_team_data_array_gml_GlobalScript_s_college_sorting)),gmltm,ds_map_find_value(gmltm,"uid"),ds_map_find_value(gmltm, "conference"),ds_map_find_value(gmltm,"division"),ds_map_find_value(gmltm,"name"),real(ds_map_find_value(gmltm,"wins")),real(ds_map_find_value(gmltm,"losses")),real(ds_map_find_value(gmltm,"wins_cnf")),real(ds_map_find_value(gmltm,"losses_cnf")),real(ds_map_find_value(gmltm,"wins_div")),real(ds_map_find_value(gmltm,"losses_div")),gml_Script_s_get_map_real(_inst,_other,gmltm,"ranking_points",0),gml_Script_s_get_map_real(_inst,_other,gmltm,"ranking_points_prev",0),gml_Script_s_get_map_real(_inst,_other, gmltm,"ranking_points_season",0),gml_Script_s_get_team_winpct(_inst,_other,gmltm),gml_Script_s_get_team_pct_cnf(_inst,_other,gmltm));array_push(gmlteams_ext,gmlteam);}};return gmlteams_ext;}}function gml_Script_s_update_team_data_rank_pos(_inst,_other,argument0,argument1,argument2){{if(yyfequal(argument1,_inst.undefined)){argument1=false;};if(yyfequal(argument2,_inst.undefined)){argument2=0;};}{var gmlrp=yyInst(_inst,_other,gml_Script_s_get_ranking_pos_data(_inst,_other,yyInst(_inst,_other,argument0).gmlteam)).gmlpos; var gmlrpp=yyInst(_inst,_other,gml_Script_s_get_ranking_pos_data_prev(_inst,_other,yyInst(_inst,_other,argument0).gmlteam)).gmlpos;if(yyGetBool(argument1)){{gmlrp=yyfplus(__yy_gml_errCheck(argument2),1);gmlrpp=yyInst(_inst,_other,gml_Script_s_parse_ranking_pos(_inst,_other,gml_Script_s_get_map_real(_inst,_other,yyInst(_inst,_other,argument0).gmlteam,"ranking_pos_season",0))).gmlpos;};};yyInst(_inst,_other,argument0).gmlrank_pos=gmlrp;yyInst(_inst,_other,argument0).gmlrank_pos_prev=gmlrpp;yyInst(_inst, _other,argument0).gmlrank_s=(yyfnotequal(gmlrpp,0)?gml_Script_s_strfl(_inst,_other,"%1(%2)",gmlrp,gmlrpp):gmlrp);}}function gml_Script_s_team_data_array_add_formatted_data(_inst,_other,argument0,argument1,argument2){{if(yyfequal(argument2,_inst.undefined)){argument2=false;};}{var gmltd,gmlof,gmldf;var gmli=0;for(;yyfless(gmli,array_length(argument0));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmltd=argument0[__yy_gml_array_check_index(gmli, argument0)];yyInst(_inst,_other,gmltd).gmlwins=gml_Script_s_get_map_real(_inst,_other,yyInst(_inst,_other,gmltd).gmlteam,"wins",0);yyInst(_inst,_other,gmltd).gmllosses=gml_Script_s_get_map_real(_inst,_other,yyInst(_inst,_other,gmltd).gmlteam,"losses",0);yyInst(_inst,_other,gmltd).gmlwins_cnf=gml_Script_s_get_map_real(_inst,_other,yyInst(_inst,_other,gmltd).gmlteam,"wins_cnf",0);yyInst(_inst,_other,gmltd).gmllosses_cnf=gml_Script_s_get_map_real(_inst,_other,yyInst(_inst,_other,gmltd).gmlteam,"losses_cnf", 0);yyInst(_inst,_other,gmltd).gmlwins_div=gml_Script_s_get_map_real(_inst,_other,yyInst(_inst,_other,gmltd).gmlteam,"wins_div",0);yyInst(_inst,_other,gmltd).gmllosses_div=gml_Script_s_get_map_real(_inst,_other,yyInst(_inst,_other,gmltd).gmlteam,"losses_div",0);yyInst(_inst,_other,gmltd).gmlrank_pts=gml_Script_s_get_map_real(_inst,_other,yyInst(_inst,_other,gmltd).gmlteam,"ranking_points",0);yyInst(_inst,_other,gmltd).gmlrank_pts_prev=gml_Script_s_get_map_real(_inst,_other,yyInst(_inst,_other,gmltd).gmlteam, "ranking_points_prev",0);yyInst(_inst,_other,gmltd).gmlrank_season=gml_Script_s_get_map_real(_inst,_other,yyInst(_inst,_other,gmltd).gmlteam,"ranking_points_season",0);yyInst(_inst,_other,gmltd).gmlpct_s=gml_Script_s_get_pct_string(_inst,_other,yyInst(_inst,_other,gmltd).gmlpct);yyInst(_inst,_other,gmltd).gmlpct_cnf_s=gml_Script_s_get_pct_string(_inst,_other,yyInst(_inst,_other,gmltd).gmlpct_cnf);yyInst(_inst,_other,gmltd).gmlnet=gml_Script_s_get_team_net_points(_inst,_other,yyInst(_inst,_other, gmltd).gmluid);yyInst(_inst,_other,gmltd).gmlshow_cnf_stats=!yyGetBool(gml_Script_s_is_independent_conference_id(_inst,_other,ds_map_find_value(yyInst(_inst,_other,gmltd).gmlteam,"conference")));gmlof=gml_Script_s_get_team_offense(_inst,_other,yyInst(_inst,_other,gmltd).gmlteam);gmldf=gml_Script_s_get_team_defense(_inst,_other,yyInst(_inst,_other,gmltd).gmlteam);if((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_difficulty,4)))&&(yyGetBool(yyfnotequal(yyInst(_inst,_other,gmltd).gmluid, argument1)))){{gmlof=real(ds_map_find_value(yyInst(_inst,_other,gmltd).gmlteam,"offense"));gmldf=real(ds_map_find_value(yyInst(_inst,_other,gmltd).gmlteam,"defense"));};};yyInst(_inst,_other,gmltd).gmloffense_s=string_format(yyfdivide(__yy_gml_errCheck(gmlof),2),1,1);yyInst(_inst,_other,gmltd).gmldefense_s=string_format(yyfdivide(__yy_gml_errCheck(gmldf),2),1,1);yyInst(_inst,_other,gmltd).gmltxt_col=16777215;if(yyGetBool(argument2)){gml_Script_s_update_team_data_rank_pos(_inst,_other,gmltd,argument2, gmli);};}};}}function gml_Script_s_co_teams_tiebreak(_inst,_other,argument0,argument1,argument2){{if(yyfequal(argument2,_inst.undefined)){argument2=false;};}{var gmlres,gmlr1,gmlr2;gmlres=gml_Script_s_get_head_to_head(_inst,_other,yyInst(_inst,_other,argument0).gmluid,yyInst(_inst,_other,argument1).gmluid);if(yyfnotequal(gmlres,0)){return gmlres;};gmlr1=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,argument0).gmlwins_div),__yy_gml_errCheck(yyInst(_inst,_other,argument0).gmllosses_div));gmlr2=yyfminus(__yy_gml_errCheck(yyInst(_inst, _other,argument1).gmlwins_div),__yy_gml_errCheck(yyInst(_inst,_other,argument1).gmllosses_div));if(yyfnotequal(gmlr1,gmlr2)){return yyfminus(__yy_gml_errCheck(gmlr2),__yy_gml_errCheck(gmlr1));};if(yyGetBool(argument2)){{gml_Script_slog(_inst,_other,"*** unable to split the tie - quick mode");return 0;};};gmlres=gml_Script_s_co_teams_tiebreak_record_next_best_placed_division(_inst,_other,argument0,argument1);if(yyfnotequal(gmlres,0)){return gmlres;};gmlr1=yyfminus(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(yyInst(_inst, _other,argument0).gmlwins),__yy_gml_errCheck(yyInst(_inst,_other,argument0).gmlwins_div))),__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,argument0).gmllosses),__yy_gml_errCheck(yyInst(_inst,_other,argument0).gmllosses_div))));gmlr2=yyfminus(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,argument1).gmlwins),__yy_gml_errCheck(yyInst(_inst,_other,argument1).gmlwins_div))),__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,argument1).gmllosses),__yy_gml_errCheck(yyInst(_inst, _other,argument1).gmllosses_div))));if(yyfnotequal(gmlr1,gmlr2)){return yyfminus(__yy_gml_errCheck(gmlr2),__yy_gml_errCheck(gmlr1));};return yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,argument1).gmlrank_pts),__yy_gml_errCheck(yyInst(_inst,_other,argument0).gmlrank_pts));gml_Script_slog(_inst,_other,"*** unable to split the tie");return 0;}}function gml_Script_s_co_teams_tiebreak_record_next_best_placed_division(_inst,_other,argument0,argument1){{if((yyGetBool(yyfnotequal(yyInst(_inst,_other,argument0).gmlcnf_id, yyInst(_inst,_other,argument1).gmlcnf_id)))||(yyGetBool(yyfnotequal(yyInst(_inst,_other,argument0).gmldiv_id,yyInst(_inst,_other,argument1).gmldiv_id)))){return 0;};var gmlcomp=gml_Script_s_get_competition_by_conference_division(_inst,_other,yyInst(_inst,_other,argument0).gmlcnf_id,yyInst(_inst,_other,argument0).gmldiv_id);gml_Script_s_competition_update_standings(_inst,_other,yyInst(_inst,_other,gmlcomp).gmlconference,yyInst(_inst,_other,gmlcomp).gmldivision,true);var gmlt,gmlr1,gmlr2,gmlsp=(-1);var gmli=0; for(;yyfless(gmli,array_length(yyInst(_inst,_other,gmlcomp).gmlstandings_quick));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlt=yyInst(_inst,_other,gmlcomp).gmlstandings_quick[__yy_gml_array_check_index(gmli,yyInst(_inst,_other,gmlcomp).gmlstandings_quick)];if((yyGetBool(yyfequal(yyInst(_inst,_other,argument0).gmluid,yyInst(_inst,_other,gmlt).gmluid)))||(yyGetBool(yyfequal(yyInst(_inst,_other,argument1).gmluid,yyInst(_inst,_other, gmlt).gmluid)))){{gmlsp=gmli;break;};};}};if(yyfless(gmlsp,0)){return 0;};var gmli=gmlsp;for(;yyfless(gmli,array_length(yyInst(_inst,_other,gmlcomp).gmlstandings_quick));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlt=yyInst(_inst,_other,gmlcomp).gmlstandings_quick[__yy_gml_array_check_index(gmli,yyInst(_inst,_other,gmlcomp).gmlstandings_quick)];if((yyGetBool(yyfnotequal(yyInst(_inst,_other,argument0).gmluid,yyInst(_inst,_other,gmlt).gmluid)))&&(yyGetBool(yyfnotequal(yyInst(_inst, _other,argument1).gmluid,yyInst(_inst,_other,gmlt).gmluid)))){{gmlr1=gml_Script_s_get_head_to_head(_inst,_other,yyInst(_inst,_other,argument0).gmluid,yyInst(_inst,_other,gmlt).gmluid);gmlr2=gml_Script_s_get_head_to_head(_inst,_other,yyInst(_inst,_other,argument1).gmluid,yyInst(_inst,_other,gmlt).gmluid);if(yyfnotequal(gmlr1,gmlr2)){{return(yyfless(gmlr1,gmlr2)?(-1):1);};};};};}};return 0;}}function gml_GlobalScript_s_college_league(_inst,_other){(_inst.gmls_rm_league_co_init=__yy_method(_inst,gml_Script_s_rm_league_co_init)); (_inst.gmls_btn_league_view=__yy_method(_inst,gml_Script_s_btn_league_view));(_inst.gmls_btn_league_mode=__yy_method(_inst,gml_Script_s_btn_league_mode));(_inst.gmls_btn_league_subdivision=__yy_method(_inst,gml_Script_s_btn_league_subdivision));(_inst.gmls_btn_division_home_view=__yy_method(_inst,gml_Script_s_btn_division_home_view));(_inst.gmls_btn_division_postmatch_view=__yy_method(_inst,gml_Script_s_btn_division_postmatch_view));(_inst.gmls_btn_league_next_conference=__yy_method(_inst,gml_Script_s_btn_league_next_conference)); (_inst.gmls_set_league_mode_btn_colour=__yy_method(_inst,gml_Script_s_set_league_mode_btn_colour));(_inst.gmls_set_league_tier_btn_colour=__yy_method(_inst,gml_Script_s_set_league_tier_btn_colour));(_inst.gmls_set_var_if_missing=__yy_method(_inst,gml_Script_s_set_var_if_missing));(_inst.gmls_league_get_btn_back_image=__yy_method(_inst,gml_Script_s_league_get_btn_back_image));(_inst.gmls_league_refresh_subdivision=__yy_method(_inst,gml_Script_s_league_refresh_subdivision));(_inst.gmls_league_create_conference_buttons=__yy_method(_inst, gml_Script_s_league_create_conference_buttons));(_inst.gmls_league_btn_conference=__yy_method(_inst,gml_Script_s_league_btn_conference));(_inst.gmls_league_create_conference_panels=__yy_method(_inst,gml_Script_s_league_create_conference_panels));(_inst.gmls_league_create_conference_division=__yy_method(_inst,gml_Script_s_league_create_conference_division));(_inst.gmls_league_create_ranking_panels=__yy_method(_inst,gml_Script_s_league_create_ranking_panels));(_inst.gmls_is_prev_rank_visible=__yy_method(_inst, gml_Script_s_is_prev_rank_visible));(_inst.gmls_league_create_schedule_panels=__yy_method(_inst,gml_Script_s_league_create_schedule_panels));(_inst.gmls_co_schedule_init=__yy_method(_inst,gml_Script_s_co_schedule_init));(_inst.gmls_league_btn_week=__yy_method(_inst,gml_Script_s_league_btn_week));(_inst.gmls_league_btn_page=__yy_method(_inst,gml_Script_s_league_btn_page));(_inst.gmls_co_schedule_sort_order=__yy_method(_inst,gml_Script_s_co_schedule_sort_order));(_inst.gmls_league_get_own_bracket_page=__yy_method(_inst, gml_Script_s_league_get_own_bracket_page));(_inst.gmls_co_schedule_refresh=__yy_method(_inst,gml_Script_s_co_schedule_refresh));(_inst.gmls_co_schedule_step=__yy_method(_inst,gml_Script_s_co_schedule_step));(_inst.gmls_co_schedule_filter_format=__yy_method(_inst,gml_Script_s_co_schedule_filter_format));(_inst.gmls_set_matchlist_bracket_coords=__yy_method(_inst,gml_Script_s_set_matchlist_bracket_coords));(_inst.gmls_get_bracket_map_entry=__yy_method(_inst,gml_Script_s_get_bracket_map_entry));(_inst.gmls_co_schedule_draw_gui=__yy_method(_inst, gml_Script_s_co_schedule_draw_gui));(_inst.gmls_draw_bracket_name_box=__yy_method(_inst,gml_Script_s_draw_bracket_name_box));}function gml_Script____struct___1_s_rm_league_co_init_gml_GlobalScript_s_college_league(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___1_s_rm_league_co_init_gml_GlobalScript_s_college_league";}if(gml_Script____struct___1_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype.__type===undefined){gml_Script____struct___1_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype.__type="gml_Script____struct___1_s_rm_league_co_init_gml_GlobalScript_s_college_league"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___1_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlimage=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(1),$$args)];}}}}function gml_Script____struct___2_s_rm_league_co_init_gml_GlobalScript_s_college_league(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___2_s_rm_league_co_init_gml_GlobalScript_s_college_league"; }if(gml_Script____struct___2_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype.__type===undefined){gml_Script____struct___2_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype.__type="gml_Script____struct___2_s_rm_league_co_init_gml_GlobalScript_s_college_league";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___2_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0), $$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(2),$$args)];}}}}function gml_Script____struct___3_s_rm_league_co_init_gml_GlobalScript_s_college_league(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___3_s_rm_league_co_init_gml_GlobalScript_s_college_league";}if(gml_Script____struct___3_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype.__type===undefined){gml_Script____struct___3_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype.__type="gml_Script____struct___3_s_rm_league_co_init_gml_GlobalScript_s_college_league"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___3_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlmode=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(3),$$args)];}}}}function gml_Script____struct___4_s_rm_league_co_init_gml_GlobalScript_s_college_league(_inst, _other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___4_s_rm_league_co_init_gml_GlobalScript_s_college_league";}if(gml_Script____struct___4_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype.__type===undefined){gml_Script____struct___4_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype.__type="gml_Script____struct___4_s_rm_league_co_init_gml_GlobalScript_s_college_league";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___4_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype); {var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlmode=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(3),$$args)];}}}}function gml_Script____struct___5_s_rm_league_co_init_gml_GlobalScript_s_college_league(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___5_s_rm_league_co_init_gml_GlobalScript_s_college_league"; }if(gml_Script____struct___5_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype.__type===undefined){gml_Script____struct___5_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype.__type="gml_Script____struct___5_s_rm_league_co_init_gml_GlobalScript_s_college_league";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___5_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0), $$args)];_inst.gmlmode=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(3),$$args)];}}}}function gml_Script____struct___6_s_rm_league_co_init_gml_GlobalScript_s_college_league(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___6_s_rm_league_co_init_gml_GlobalScript_s_college_league";}if(gml_Script____struct___6_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype.__type===undefined){ gml_Script____struct___6_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype.__type="gml_Script____struct___6_s_rm_league_co_init_gml_GlobalScript_s_college_league";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___6_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlmode=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(2), $$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(3),$$args)];}}}}function gml_Script____struct___7_s_rm_league_co_init_gml_GlobalScript_s_college_league(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___7_s_rm_league_co_init_gml_GlobalScript_s_college_league";}if(gml_Script____struct___7_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype.__type===undefined){gml_Script____struct___7_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype.__type="gml_Script____struct___7_s_rm_league_co_init_gml_GlobalScript_s_college_league"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___7_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmltier=0;_inst.gmlonClickAction=(-4);_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(1),$$args)];}}}}function gml_Script____struct___8_s_rm_league_co_init_gml_GlobalScript_s_college_league(_inst,_other){if(_inst.__yyIsGMLObject){ _inst.__type="gml_Script____struct___8_s_rm_league_co_init_gml_GlobalScript_s_college_league";}if(gml_Script____struct___8_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype.__type===undefined){gml_Script____struct___8_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype.__type="gml_Script____struct___8_s_rm_league_co_init_gml_GlobalScript_s_college_league";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___8_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype); {var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmltier=1;_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(2),$$args)];}}}}function gml_Script____struct___9_s_rm_league_co_init_gml_GlobalScript_s_college_league(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___9_s_rm_league_co_init_gml_GlobalScript_s_college_league";}if(gml_Script____struct___9_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype.__type===undefined){ gml_Script____struct___9_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype.__type="gml_Script____struct___9_s_rm_league_co_init_gml_GlobalScript_s_college_league";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___9_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmltier=2;_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(1), $$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(2),$$args)];}}}}function gml_Script____struct___10_s_rm_league_co_init_gml_GlobalScript_s_college_league(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___10_s_rm_league_co_init_gml_GlobalScript_s_college_league";}if(gml_Script____struct___10_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype.__type===undefined){gml_Script____struct___10_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype.__type="gml_Script____struct___10_s_rm_league_co_init_gml_GlobalScript_s_college_league"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___10_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.visible=false;_inst.gmlimage=YYASSET_REF(0x01000090);_inst.gmladd=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlimage_only=true;_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlgp_mapped_button=32773;}}}}function gml_Script____struct___11_s_rm_league_co_init_gml_GlobalScript_s_college_league(_inst, _other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___11_s_rm_league_co_init_gml_GlobalScript_s_college_league";}if(gml_Script____struct___11_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype.__type===undefined){gml_Script____struct___11_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype.__type="gml_Script____struct___11_s_rm_league_co_init_gml_GlobalScript_s_college_league";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___11_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype); {var $$args=Array.prototype.slice.call(arguments);{_inst.visible=false;_inst.gmlimage=YYASSET_REF(0x01000092);_inst.gmladd=1;_inst.gmlimage_only=true;_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlgp_mapped_button=32774;}}}}function gml_Script____struct___12_s_rm_league_co_init_gml_GlobalScript_s_college_league(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___12_s_rm_league_co_init_gml_GlobalScript_s_college_league";}if(gml_Script____struct___12_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype.__type===undefined){ gml_Script____struct___12_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype.__type="gml_Script____struct___12_s_rm_league_co_init_gml_GlobalScript_s_college_league";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___12_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmltier=1;_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(1), $$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(2),$$args)];}}}}function gml_Script____struct___13_s_rm_league_co_init_gml_GlobalScript_s_college_league(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___13_s_rm_league_co_init_gml_GlobalScript_s_college_league";}if(gml_Script____struct___13_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype.__type===undefined){gml_Script____struct___13_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype.__type="gml_Script____struct___13_s_rm_league_co_init_gml_GlobalScript_s_college_league"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___13_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmltier=2;_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(2),$$args)];}}}}function gml_Script____struct___14_s_rm_league_co_init_gml_GlobalScript_s_college_league(_inst, _other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___14_s_rm_league_co_init_gml_GlobalScript_s_college_league";}if(gml_Script____struct___14_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype.__type===undefined){gml_Script____struct___14_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype.__type="gml_Script____struct___14_s_rm_league_co_init_gml_GlobalScript_s_college_league";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___14_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype); {var $$args=Array.prototype.slice.call(arguments);{_inst.gmlimage=YYASSET_REF(0x01000090);_inst.gmladd=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlimage_only=true;_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlgp_mapped_button=32773;}}}}function gml_Script____struct___15_s_rm_league_co_init_gml_GlobalScript_s_college_league(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___15_s_rm_league_co_init_gml_GlobalScript_s_college_league"; }if(gml_Script____struct___15_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype.__type===undefined){gml_Script____struct___15_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype.__type="gml_Script____struct___15_s_rm_league_co_init_gml_GlobalScript_s_college_league";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___15_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlimage=YYASSET_REF(0x01000092); _inst.gmladd=1;_inst.gmlimage_only=true;_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlgp_mapped_button=32774;}}}}function gml_Script____struct___16_s_rm_league_co_init_gml_GlobalScript_s_college_league(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___16_s_rm_league_co_init_gml_GlobalScript_s_college_league";}if(gml_Script____struct___16_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype.__type===undefined){gml_Script____struct___16_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype.__type="gml_Script____struct___16_s_rm_league_co_init_gml_GlobalScript_s_college_league"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___16_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(2),$$args)];}}}}function gml_Script____struct___17_s_rm_league_co_init_gml_GlobalScript_s_college_league(_inst,_other){ if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___17_s_rm_league_co_init_gml_GlobalScript_s_college_league";}if(gml_Script____struct___17_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype.__type===undefined){gml_Script____struct___17_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype.__type="gml_Script____struct___17_s_rm_league_co_init_gml_GlobalScript_s_college_league";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___17_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype); {var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmladd=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(3),$$args)];}}}}function gml_Script____struct___18_s_rm_league_co_init_gml_GlobalScript_s_college_league(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___18_s_rm_league_co_init_gml_GlobalScript_s_college_league"; }if(gml_Script____struct___18_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype.__type===undefined){gml_Script____struct___18_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype.__type="gml_Script____struct___18_s_rm_league_co_init_gml_GlobalScript_s_college_league";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___18_s_rm_league_co_init_gml_GlobalScript_s_college_league.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0), $$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmladd=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(3),$$args)];}}}}function gml_Script_s_rm_league_co_init(_inst,_other){{gml_Script_s_init_rm(_inst,_other);_inst.gmlbtns=__yy_gml_array_create([]);gml_Script_s_create_title(_inst,_other,gml_Script_s_str(_inst,_other,"ui_League"),undefined,true);_inst.gmlb_home=gml_Script_s_create_button(_inst,_other,8, 232,__yy_gml_object_create(_inst,(_inst.gml___struct___1=__yy_method(_inst,gml_Script____struct___1_s_rm_league_co_init_gml_GlobalScript_s_college_league)),gml_Script_s_league_get_btn_back_image(_inst,_other),kgml_Script_btn_click_League_Back));_inst.gmlb_view=gml_Script_s_create_button(_inst,_other,45,232,__yy_gml_object_create(_inst,(_inst.gml___struct___2=__yy_method(_inst,gml_Script____struct___2_s_rm_league_co_init_gml_GlobalScript_s_college_league)),gml_Script_s_str(_inst,_other,"ui_View"), kgml_Script_s_btn_league_view,1.25));_inst.gmlb_conf=gml_Script_s_create_button(_inst,_other,90,232,__yy_gml_object_create(_inst,(_inst.gml___struct___3=__yy_method(_inst,gml_Script____struct___3_s_rm_league_co_init_gml_GlobalScript_s_college_league)),gml_Script_s_str(_inst,_other,"ui_Conference"),0,kgml_Script_s_btn_league_mode,2.8125));_inst.gmlb_rank=gml_Script_s_create_button(_inst,_other,186,232,__yy_gml_object_create(_inst,(_inst.gml___struct___4=__yy_method(_inst,gml_Script____struct___4_s_rm_league_co_init_gml_GlobalScript_s_college_league)), gml_Script_s_str(_inst,_other,"ui_Ranking"),1,kgml_Script_s_btn_league_mode,2.8125));_inst.gmlb_schd=gml_Script_s_create_button(_inst,_other,282,232,__yy_gml_object_create(_inst,(_inst.gml___struct___5=__yy_method(_inst,gml_Script____struct___5_s_rm_league_co_init_gml_GlobalScript_s_college_league)),gml_Script_s_str(_inst,_other,"ui_Schedule"),2,kgml_Script_s_btn_league_mode,2.8125));_inst.gmlb_pssn=gml_Script_s_create_button(_inst,_other,378,232,__yy_gml_object_create(_inst,(_inst.gml___struct___6=__yy_method(_inst, gml_Script____struct___6_s_rm_league_co_init_gml_GlobalScript_s_college_league)),gml_Script_s_str(_inst,_other,"ui_Postseason"),3,kgml_Script_s_btn_league_mode,2.8125));gml_Script_s_set_league_mode_btn_colour(_inst,_other,__yy_gml_array_create([_inst.gmlb_conf,_inst.gmlb_rank,_inst.gmlb_schd,_inst.gmlb_pssn]));var ___sw18___=_inst.gmlmode;var ___swc19___=-1;if(yyCompareVal(___sw18___,0,g_GMLMathEpsilon,false)==0){___swc19___=0;}else if(yyCompareVal(___sw18___,1,g_GMLMathEpsilon,false)==0){___swc19___=1; }else if(yyCompareVal(___sw18___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw18___,3,g_GMLMathEpsilon,false)==0){___swc19___=2;}switch(___swc19___){case 0:{gml_Script_s_set_var_if_missing(_inst,_other,"tier",0);gml_Script_s_set_var_if_missing(_inst,_other,"confd",gml_Script_s_get_conference_data(_inst,_other,gml_Script_s_get_my_conference_uid(_inst,_other)));_inst.gmlb_ours=gml_Script_s_create_button(_inst,_other,80,32,__yy_gml_object_create(_inst,(_inst.gml___struct___7=__yy_method(_inst,gml_Script____struct___7_s_rm_league_co_init_gml_GlobalScript_s_college_league)), gml_Script_s_fit_string(_inst,_other,yyInst(_inst,_other,_inst.gmlconfd).gmlname,yyInst(_inst,_other,_inst.gmlconfd).gmltla,96),3.125));_inst.gmlb_major=gml_Script_s_create_button(_inst,_other,190,32,__yy_gml_object_create(_inst,(_inst.gml___struct___8=__yy_method(_inst,gml_Script____struct___8_s_rm_league_co_init_gml_GlobalScript_s_college_league)),gml_Script_s_get_subdiv_name(_inst,_other,1),kgml_Script_s_btn_league_subdivision,3.125));_inst.gmlb_minor=gml_Script_s_create_button(_inst,_other,300, 32,__yy_gml_object_create(_inst,(_inst.gml___struct___9=__yy_method(_inst,gml_Script____struct___9_s_rm_league_co_init_gml_GlobalScript_s_college_league)),gml_Script_s_get_subdiv_name(_inst,_other,2),kgml_Script_s_btn_league_subdivision,3.125));_inst.gmlb_left=gml_Script_s_create_button(_inst,_other,(-4),130,__yy_gml_object_create(_inst,(_inst.gml___struct___10=__yy_method(_inst,gml_Script____struct___10_s_rm_league_co_init_gml_GlobalScript_s_college_league)),(-1),kgml_Script_s_btn_league_next_conference), YYASSET_REF(0x00000025));_inst.gmlb_right=gml_Script_s_create_button(_inst,_other,450,130,__yy_gml_object_create(_inst,(_inst.gml___struct___11=__yy_method(_inst,gml_Script____struct___11_s_rm_league_co_init_gml_GlobalScript_s_college_league)),kgml_Script_s_btn_league_next_conference),YYASSET_REF(0x00000025));var ___sw20___=_inst.gmltier;var ___swc21___=-1;if(yyCompareVal(___sw20___,0,g_GMLMathEpsilon,false)==0){___swc21___=0;}else if(yyCompareVal(___sw20___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw20___, 2,g_GMLMathEpsilon,false)==0){___swc21___=1;}switch(___swc21___){case 0:{gml_Script_s_league_create_conference_panels(_inst,_other,_inst.gmlconfd,_inst.gmltier);gml_Script_s_set_league_tier_btn_colour(_inst,_other,__yy_gml_array_create([_inst.gmlb_ours,_inst.gmlb_major,_inst.gmlb_minor]));break;}case 1:{gml_Script_s_set_var_if_missing(_inst,_other,"conf_chosen",false);gml_Script_s_league_refresh_subdivision(_inst,_other);break;}};break;}case 1:{gml_Script_s_set_var_if_missing(_inst,_other,"tier",gml_Script_s_get_subdivision(_inst, _other,yyInst(_inst,_other,global.gmlg_m).gmlmyteam));_inst.gmlb_major=gml_Script_s_create_button(_inst,_other,135,32,__yy_gml_object_create(_inst,(_inst.gml___struct___12=__yy_method(_inst,gml_Script____struct___12_s_rm_league_co_init_gml_GlobalScript_s_college_league)),gml_Script_s_get_subdiv_name(_inst,_other,1),kgml_Script_s_btn_league_subdivision,3.125));_inst.gmlb_minor=gml_Script_s_create_button(_inst,_other,245,32,__yy_gml_object_create(_inst,(_inst.gml___struct___13=__yy_method(_inst,gml_Script____struct___13_s_rm_league_co_init_gml_GlobalScript_s_college_league)), gml_Script_s_get_subdiv_name(_inst,_other,2),kgml_Script_s_btn_league_subdivision,3.125));gml_Script_s_set_league_tier_btn_colour(_inst,_other,__yy_gml_array_create([_inst.gmlb_major,_inst.gmlb_minor]));gml_Script_s_league_create_ranking_panels(_inst,_other,_inst.gmltier);break;}case 2:{_inst.gmlb_left=gml_Script_s_create_button(_inst,_other,0,100,__yy_gml_object_create(_inst,(_inst.gml___struct___14=__yy_method(_inst,gml_Script____struct___14_s_rm_league_co_init_gml_GlobalScript_s_college_league)), (-1),kgml_Script_s_league_btn_week),YYASSET_REF(0x00000025));_inst.gmlb_right=gml_Script_s_create_button(_inst,_other,448,100,__yy_gml_object_create(_inst,(_inst.gml___struct___15=__yy_method(_inst,gml_Script____struct___15_s_rm_league_co_init_gml_GlobalScript_s_college_league)),kgml_Script_s_league_btn_week),YYASSET_REF(0x00000025));_inst.gmlb_revw=gml_Script_s_create_button(_inst,_other,30,190,__yy_gml_object_create(_inst,(_inst.gml___struct___16=__yy_method(_inst,gml_Script____struct___16_s_rm_league_co_init_gml_GlobalScript_s_college_league)), gml_Script_s_str(_inst,_other,"ui_Review"),kgml_Script_btn_click_SeasonReview,3.125));_inst.gmlb_up=gml_Script_s_create_button(_inst,_other,230,190,__yy_gml_object_create(_inst,(_inst.gml___struct___17=__yy_method(_inst,gml_Script____struct___17_s_rm_league_co_init_gml_GlobalScript_s_college_league)),gml_Script_s_str(_inst,_other,"ui_PageUp"),kgml_Script_s_league_btn_page,(-1),3.125));_inst.gmlb_down=gml_Script_s_create_button(_inst,_other,340,190,__yy_gml_object_create(_inst,(_inst.gml___struct___18=__yy_method(_inst, gml_Script____struct___18_s_rm_league_co_init_gml_GlobalScript_s_college_league)),gml_Script_s_str(_inst,_other,"ui_PageDown"),kgml_Script_s_league_btn_page,1,3.125));yyInst(_inst,_other,_inst.gmlb_view).gmlactive=false;gml_Script_s_league_create_schedule_panels(_inst,_other);break;}};}}function gml_Script_s_btn_league_view(_inst,_other){{gml_Script_s_change_panel_division_mode(_inst,_other,yyInst(_inst,_other,global.gmlrm).gmlp1);gml_Script_s_change_panel_division_mode(_inst,_other,yyInst(_inst, _other,global.gmlrm).gmlp2);}}function gml_Script____struct___19_s_btn_league_mode_gml_GlobalScript_s_college_league(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___19_s_btn_league_mode_gml_GlobalScript_s_college_league";}if(gml_Script____struct___19_s_btn_league_mode_gml_GlobalScript_s_college_league.prototype.__type===undefined){gml_Script____struct___19_s_btn_league_mode_gml_GlobalScript_s_college_league.prototype.__type="gml_Script____struct___19_s_btn_league_mode_gml_GlobalScript_s_college_league"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___19_s_btn_league_mode_gml_GlobalScript_s_college_league.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlmode=$$args[__yy_gml_array_check_index(2+(0),$$args)];}}}}function gml_Script_s_btn_league_mode(_inst,_other){{gml_Script_s_goto_room(_inst,_other,g_pBuiltIn.get_current_room(),__yy_gml_object_create(_inst,(_inst.gml___struct___19=__yy_method(_inst,gml_Script____struct___19_s_btn_league_mode_gml_GlobalScript_s_college_league)), _inst.gmlmode));}}function gml_Script____struct___20_s_btn_league_subdivision_gml_GlobalScript_s_college_league(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___20_s_btn_league_subdivision_gml_GlobalScript_s_college_league";}if(gml_Script____struct___20_s_btn_league_subdivision_gml_GlobalScript_s_college_league.prototype.__type===undefined){gml_Script____struct___20_s_btn_league_subdivision_gml_GlobalScript_s_college_league.prototype.__type="gml_Script____struct___20_s_btn_league_subdivision_gml_GlobalScript_s_college_league"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___20_s_btn_league_subdivision_gml_GlobalScript_s_college_league.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlmode=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmltier=$$args[__yy_gml_array_check_index(2+(1),$$args)];}}}}function gml_Script_s_btn_league_subdivision(_inst,_other){{gml_Script_s_goto_room(_inst,_other,g_pBuiltIn.get_current_room(),__yy_gml_object_create(_inst,(_inst.gml___struct___20=__yy_method(_inst, gml_Script____struct___20_s_btn_league_subdivision_gml_GlobalScript_s_college_league)),yyInst(_inst,_other,global.gmlrm).gmlmode,_inst.gmltier));}}function gml_Script_s_btn_division_home_view(_inst,_other){{gml_Script_s_change_panel_division_mode(_inst,_other,_inst.gml_panel);}}function gml_Script_s_btn_division_postmatch_view(_inst,_other){{if(yyGetBool(variable_instance_exists(_inst,"_panel"))){gml_Script_s_change_panel_division_mode(_inst,_other,_inst.gml_panel);}else {gml_Script_s_change_panel_division_mode(_inst, _other);};}}function gml_Script____struct___21_s_btn_league_next_conference_gml_GlobalScript_s_college_league(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___21_s_btn_league_next_conference_gml_GlobalScript_s_college_league";}if(gml_Script____struct___21_s_btn_league_next_conference_gml_GlobalScript_s_college_league.prototype.__type===undefined){gml_Script____struct___21_s_btn_league_next_conference_gml_GlobalScript_s_college_league.prototype.__type="gml_Script____struct___21_s_btn_league_next_conference_gml_GlobalScript_s_college_league"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___21_s_btn_league_next_conference_gml_GlobalScript_s_college_league.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlmode=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmltier=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlconfd=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.gmlconf_chosen=true;}}}}function gml_Script_s_btn_league_next_conference(_inst,_other){{var gmlcl=gml_Script_s_get_conference_list(_inst, _other,yyInst(_inst,_other,yyInst(_inst,_other,global.gmlrm).gmlconfd).gmltier);var gmlnext=yyfplus(__yy_gml_errCheck(array_get_index(gmlcl,yyInst(_inst,_other,global.gmlrm).gmlconfd)),__yy_gml_errCheck(_inst.gmladd));if(yyfless(gmlnext,0)){gmlnext=yyfplus(__yy_gml_errCheck(gmlnext),__yy_gml_errCheck(array_length(gmlcl)));};if(yyfgreaterequal(gmlnext,array_length(gmlcl))){gmlnext=0;};gml_Script_s_goto_room(_inst,_other,g_pBuiltIn.get_current_room(),__yy_gml_object_create(_inst,(_inst.gml___struct___21=__yy_method(_inst, gml_Script____struct___21_s_btn_league_next_conference_gml_GlobalScript_s_college_league)),yyInst(_inst,_other,global.gmlrm).gmlmode,yyInst(_inst,_other,global.gmlrm).gmltier,gmlcl[__yy_gml_array_check_index(gmlnext,gmlcl)]));}}function gml_Script_anon_s_set_league_mode_btn_colour_gml_GlobalScript_s_college_league_5863_s_set_league_mode_btn_colour_gml_GlobalScript_s_college_league(_inst,_other,argument0,argument1){{yyInst(_inst,_other,argument0).gmlcolour=(yyfequal(yyInst(_inst,_other,argument0).gmlmode, yyInst(_inst,_other,global.gmlrm).gmlmode)?global.gmlc_primary:global.gmlc_background);}}function gml_Script_s_set_league_mode_btn_colour(_inst,_other,argument0){{array_foreach(argument0,__yy_method(_inst,gml_Script_anon_s_set_league_mode_btn_colour_gml_GlobalScript_s_college_league_5863_s_set_league_mode_btn_colour_gml_GlobalScript_s_college_league));}}function gml_Script_anon_s_set_league_tier_btn_colour_gml_GlobalScript_s_college_league_6029_s_set_league_tier_btn_colour_gml_GlobalScript_s_college_league(_inst, _other,argument0,argument1){{yyInst(_inst,_other,argument0).gmlcolour=(yyfequal(yyInst(_inst,_other,argument0).gmltier,yyInst(_inst,_other,global.gmlrm).gmltier)?global.gmlc_primary:global.gmlc_background);}}function gml_Script_s_set_league_tier_btn_colour(_inst,_other,argument0){{array_foreach(argument0,__yy_method(_inst,gml_Script_anon_s_set_league_tier_btn_colour_gml_GlobalScript_s_college_league_6029_s_set_league_tier_btn_colour_gml_GlobalScript_s_college_league));}}function gml_Script_s_set_var_if_missing(_inst, _other,argument0,argument1){{if(!yyGetBool(variable_instance_exists(_inst.id,argument0))){variable_instance_set(_inst.id,argument0,argument1);};}}function gml_Script_s_league_get_btn_back_image(_inst,_other){{var ___sw22___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstage;var ___swc23___=-1;if(yyCompareVal(___sw22___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw22___,5,g_GMLMathEpsilon,false)==0){___swc23___=0;}switch(___swc23___){case 0:{return YYASSET_REF(0x0100008E);}default :{return YYASSET_REF(0x0100009F); }};}}function gml_Script_s_league_refresh_subdivision(_inst,_other){{{var __yy__v15=GetWithArray(global.gmlrm);for(var __yy__v16 in __yy__v15){if(!__yy__v15.hasOwnProperty(__yy__v16))continue;var __yy__v17=__yy__v15[__yy__v16];{yyInst(_inst,_other,__yy__v17.gmlb_view).gmlactive=__yy__v17.gmlconf_chosen;yyInst(_inst,_other,__yy__v17.gmlb_conf).visible=false;yyInst(_inst,_other,__yy__v17.gmlb_rank).visible=false;yyInst(_inst,_other,__yy__v17.gmlb_schd).visible=false;yyInst(_inst,_other,__yy__v17.gmlb_pssn).visible=false; yyInst(_inst,_other,__yy__v17.gmlb_home).gmlimage=YYASSET_REF(0x0100008E);yyInst(_inst,_other,__yy__v17.gmlb_home).gmlmode=0;yyInst(_inst,_other,__yy__v17.gmlb_home).gmlonClickAction=kgml_Script_s_btn_league_mode;gml_Script_s_destroy_dynamic_buttons(__yy__v17,_inst,__yy__v17.gmlbtns);if(yyGetBool(__yy__v17.gmlconf_chosen)){{gml_Script_s_league_create_conference_panels(__yy__v17,_inst,__yy__v17.gmlconfd,__yy__v17.gmltier);yyInst(_inst,_other,__yy__v17.gmlb_ours).gmlcolour=global.gmlc_primary;};}else { {__yy__v17.gmlbtns=gml_Script_s_league_create_conference_buttons(__yy__v17,_inst,__yy__v17.gmltier);yyInst(_inst,_other,__yy__v17.gmlb_ours).gmlonClickAction=kgml_Script_s_btn_league_mode;yyInst(_inst,_other,__yy__v17.gmlb_ours).gmlmode=0;gml_Script_s_set_league_tier_btn_colour(__yy__v17,_inst,__yy_gml_array_create([__yy__v17.gmlb_ours,__yy__v17.gmlb_major,__yy__v17.gmlb_minor]));};};}}};}}function gml_Script____struct___22_s_league_create_conference_buttons_gml_GlobalScript_s_college_league(_inst, _other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___22_s_league_create_conference_buttons_gml_GlobalScript_s_college_league";}if(gml_Script____struct___22_s_league_create_conference_buttons_gml_GlobalScript_s_college_league.prototype.__type===undefined){gml_Script____struct___22_s_league_create_conference_buttons_gml_GlobalScript_s_college_league.prototype.__type="gml_Script____struct___22_s_league_create_conference_buttons_gml_GlobalScript_s_college_league";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst, gml_Script____struct___22_s_league_create_conference_buttons_gml_GlobalScript_s_college_league.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlconference=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmltier=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(3),$$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(4),$$args)];}}}}function gml_Script_s_league_create_conference_buttons(_inst, _other,argument0){{var gmlcl=gml_Script_s_get_conference_list(_inst,_other,argument0);var gmlcb=__yy_gml_array_create([]);var gmlt=gml_Script_s_calc_grid_coords(_inst,_other,array_length(gmlcl));var gmlbtn,gmljo;var gmli=0;for(;yyfless(gmli,array_length(gmlcl));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlbtn=gml_Script_s_create_button(_inst,_other,yyInst(_inst,_other,gmlt[__yy_gml_array_check_index(gmli,gmlt)]).x,yyInst(_inst,_other, gmlt[__yy_gml_array_check_index(gmli,gmlt)]).y,__yy_gml_object_create(_inst,(_inst.gml___struct___22=__yy_method(_inst,gml_Script____struct___22_s_league_create_conference_buttons_gml_GlobalScript_s_college_league)),gml_Script_s_fit_string(_inst,_other,yyInst(_inst,_other,gmlcl[__yy_gml_array_check_index(gmli,gmlcl)]).gmlname,yyInst(_inst,_other,gmlcl[__yy_gml_array_check_index(gmli,gmlcl)]).gmltla,96),gmlcl[__yy_gml_array_check_index(gmli,gmlcl)],argument0,kgml_Script_s_league_btn_conference,3.125)); array_push(gmlcb,gmlbtn);}};return gmlcb;}}function gml_Script____struct___23_s_league_btn_conference_gml_GlobalScript_s_college_league(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___23_s_league_btn_conference_gml_GlobalScript_s_college_league";}if(gml_Script____struct___23_s_league_btn_conference_gml_GlobalScript_s_college_league.prototype.__type===undefined){gml_Script____struct___23_s_league_btn_conference_gml_GlobalScript_s_college_league.prototype.__type="gml_Script____struct___23_s_league_btn_conference_gml_GlobalScript_s_college_league"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___23_s_league_btn_conference_gml_GlobalScript_s_college_league.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlmode=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmltier=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlconfd=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.gmlconf_chosen=true;}}}}function gml_Script_s_league_btn_conference(_inst,_other){{gml_Script_s_goto_room(_inst, _other,g_pBuiltIn.get_current_room(),__yy_gml_object_create(_inst,(_inst.gml___struct___23=__yy_method(_inst,gml_Script____struct___23_s_league_btn_conference_gml_GlobalScript_s_college_league)),yyInst(_inst,_other,global.gmlrm).gmlmode,_inst.gmltier,_inst.gmlconference));}}function gml_Script_s_league_create_conference_panels(_inst,_other,argument0,argument1){{var gml_divisions=yyInst(_inst,_other,argument0).gmldivisions;var ___sw24___=gml_divisions;var ___swc25___=-1;if(yyCompareVal(___sw24___,2,g_GMLMathEpsilon, false)==0){___swc25___=0;}else if(yyCompareVal(___sw24___,1,g_GMLMathEpsilon,false)==0){___swc25___=1;}switch(___swc25___){case 0:{_inst.gmlp1=gml_Script_s_league_create_conference_division(_inst,_other,yyInst(_inst,_other,argument0).gmluid,0,2);_inst.gmlp2=gml_Script_s_league_create_conference_division(_inst,_other,yyInst(_inst,_other,argument0).gmluid,1,2);break;}case 1:{_inst.gmlp1=gml_Script_s_league_create_conference_division(_inst,_other,yyInst(_inst,_other,argument0).gmluid,0,1);_inst.gmlp2=(-4); break;}};{var __yy__v18=GetWithArray(global.gmlrm);for(var __yy__v19 in __yy__v18){if(!__yy__v18.hasOwnProperty(__yy__v19))continue;var __yy__v20=__yy__v18[__yy__v19];{yyInst(_inst,_other,__yy__v20.gmlb_left).visible=true;yyInst(_inst,_other,__yy__v20.gmlb_right).visible=true;}}};}}function gml_Script____struct___24_s_league_create_conference_division_gml_GlobalScript_s_college_league(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___24_s_league_create_conference_division_gml_GlobalScript_s_college_league"; }if(gml_Script____struct___24_s_league_create_conference_division_gml_GlobalScript_s_college_league.prototype.__type===undefined){gml_Script____struct___24_s_league_create_conference_division_gml_GlobalScript_s_college_league.prototype.__type="gml_Script____struct___24_s_league_create_conference_division_gml_GlobalScript_s_college_league";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___24_s_league_create_conference_division_gml_GlobalScript_s_college_league.prototype); {var $$args=Array.prototype.slice.call(arguments);{_inst.gmlx1=20;_inst.gmlx2=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlxc=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.y=80;_inst.gmlws=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.gmlwl=$$args[__yy_gml_array_check_index(2+(3),$$args)];_inst.gmlh=$$args[__yy_gml_array_check_index(2+(4),$$args)];}}}}function gml_Script____struct___25_s_league_create_conference_division_gml_GlobalScript_s_college_league(_inst,_other){ if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___25_s_league_create_conference_division_gml_GlobalScript_s_college_league";}if(gml_Script____struct___25_s_league_create_conference_division_gml_GlobalScript_s_college_league.prototype.__type===undefined){gml_Script____struct___25_s_league_create_conference_division_gml_GlobalScript_s_college_league.prototype.__type="gml_Script____struct___25_s_league_create_conference_division_gml_GlobalScript_s_college_league";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst, gml_Script____struct___25_s_league_create_conference_division_gml_GlobalScript_s_college_league.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.sprite_index=YYASSET_REF(0x01000131);_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.image_yscale=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlaction_create=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.gmlaction_draw_gui=$$args[__yy_gml_array_check_index(2+(3),$$args)];_inst.gml_lines=8; _inst.gml_columns=$$args[__yy_gml_array_check_index(2+(4),$$args)];_inst.gml_line_height=15.5;_inst.gml_mode_label=false;_inst.gml_conference=$$args[__yy_gml_array_check_index(2+(5),$$args)];_inst.gml_division=$$args[__yy_gml_array_check_index(2+(6),$$args)];_inst.gmlmode=$$args[__yy_gml_array_check_index(2+(7),$$args)];}}}}function gml_Script_s_league_create_conference_division(_inst,_other,argument0,argument1,argument2){{if(yyfequal(argument1,_inst.undefined)){argument1=0;};if(yyfequal(argument2, _inst.undefined)){argument2=2;};}{var gmltl=gml_Script_s_get_team_list(_inst,_other,argument0,argument1);var gmltc=array_length(gmltl);var gmltw=yyfgreater(gmltc,8);var gmlcnt=(yyGetBool(!yyGetBool(gmltw)))&&(yyGetBool(yyfless(argument2,2)));gml_Script_slogf(_inst,_other,"c:%1 d:%2(%3) t:%4",argument0,argument1,argument2,gmltc);var gmls=__yy_gml_object_create(_inst,(_inst.gml___struct___24=__yy_method(_inst,gml_Script____struct___24_s_league_create_conference_division_gml_GlobalScript_s_college_league)), 250,135,210,440,140);var gmlpanel=instance_create_layer((yyfgreater(argument1,0)?yyInst(_inst,_other,gmls).gmlx2:(yyGetBool(gmlcnt)?yyInst(_inst,_other,gmls).gmlxc:yyInst(_inst,_other,gmls).gmlx1)),yyInst(_inst,_other,gmls).y,yyInst(_inst,_other,_inst.id).layer,YYASSET_REF(0x0000001D),__yy_gml_object_create(_inst,(_inst.gml___struct___25=__yy_method(_inst,gml_Script____struct___25_s_league_create_conference_division_gml_GlobalScript_s_college_league)),yyfdivide(__yy_gml_errCheck((yyGetBool(gmltw)?yyInst(_inst, _other,gmls).gmlwl:yyInst(_inst,_other,gmls).gmlws)),16),yyfdivide(__yy_gml_errCheck(yyInst(_inst,_other,gmls).gmlh),16),kgml_Script_s_co_division_init,kgml_Script_s_co_division_draw_gui,(yyGetBool(gmltw)?2:1),argument0,argument1,0));return gmlpanel;}}function gml_Script____struct___26_s_league_create_ranking_panels_gml_GlobalScript_s_college_league(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___26_s_league_create_ranking_panels_gml_GlobalScript_s_college_league";}if(gml_Script____struct___26_s_league_create_ranking_panels_gml_GlobalScript_s_college_league.prototype.__type===undefined){ gml_Script____struct___26_s_league_create_ranking_panels_gml_GlobalScript_s_college_league.prototype.__type="gml_Script____struct___26_s_league_create_ranking_panels_gml_GlobalScript_s_college_league";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___26_s_league_create_ranking_panels_gml_GlobalScript_s_college_league.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.x=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.y=80;_inst.gmlw=$$args[__yy_gml_array_check_index(2+(1), $$args)];_inst.gmlh=$$args[__yy_gml_array_check_index(2+(2),$$args)];}}}}function gml_Script____struct___27_s_league_create_ranking_panels_gml_GlobalScript_s_college_league(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___27_s_league_create_ranking_panels_gml_GlobalScript_s_college_league";}if(gml_Script____struct___27_s_league_create_ranking_panels_gml_GlobalScript_s_college_league.prototype.__type===undefined){gml_Script____struct___27_s_league_create_ranking_panels_gml_GlobalScript_s_college_league.prototype.__type="gml_Script____struct___27_s_league_create_ranking_panels_gml_GlobalScript_s_college_league"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___27_s_league_create_ranking_panels_gml_GlobalScript_s_college_league.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.sprite_index=YYASSET_REF(0x01000131);_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.image_yscale=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmltitle=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.gmlaction_create=$$args[__yy_gml_array_check_index(2+(3), $$args)];_inst.gmlaction_step=$$args[__yy_gml_array_check_index(2+(4),$$args)];_inst.gmlaction_draw_gui=$$args[__yy_gml_array_check_index(2+(5),$$args)];_inst.gml_lines=7;_inst.gml_columns=1;_inst.gml_line_height=12.5;_inst.gml_mode_label=true;_inst.gml_tier=$$args[__yy_gml_array_check_index(2+(6),$$args)];_inst.gml_scroll=true;_inst.gml_show_prev_rank=$$args[__yy_gml_array_check_index(2+(7),$$args)];_inst.gml_debug_rank=0;_inst.gmlmode=$$args[__yy_gml_array_check_index(2+(8),$$args)];}}}}function gml_Script_s_league_create_ranking_panels(_inst, _other,argument0){{var gmls=__yy_gml_object_create(_inst,(_inst.gml___struct___26=__yy_method(_inst,gml_Script____struct___26_s_league_create_ranking_panels_gml_GlobalScript_s_college_league)),105,270,140);yyInst(_inst,_other,global.gmlrm).gmlp1=instance_create_layer(yyInst(_inst,_other,gmls).x,yyInst(_inst,_other,gmls).y,yyInst(_inst,_other,_inst.id).layer,YYASSET_REF(0x0000001D),__yy_gml_object_create(_inst,(_inst.gml___struct___27=__yy_method(_inst,gml_Script____struct___27_s_league_create_ranking_panels_gml_GlobalScript_s_college_league)), yyfdivide(__yy_gml_errCheck(yyInst(_inst,_other,gmls).gmlw),16),yyfdivide(__yy_gml_errCheck(yyInst(_inst,_other,gmls).gmlh),16),gml_Script_s_co_get_year(_inst,_other),kgml_Script_s_co_subdivision_init,kgml_Script_s_co_division_step,kgml_Script_s_co_division_draw_gui,argument0,gml_Script_s_is_prev_rank_visible(_inst,_other),2));yyInst(_inst,_other,global.gmlrm).gmlp2=(-4);}}function gml_Script_s_is_prev_rank_visible(_inst,_other,argument0){{if(yyfequal(argument0,_inst.undefined)){argument0=yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlweek;};}{return(yyGetBool(yyfgreater(argument0,1)))&&(yyGetBool(yyflessequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular),__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlextra_weeks_endofseason)))));}}function gml_Script____struct___28_s_league_create_schedule_panels_gml_GlobalScript_s_college_league(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___28_s_league_create_schedule_panels_gml_GlobalScript_s_college_league"; }if(gml_Script____struct___28_s_league_create_schedule_panels_gml_GlobalScript_s_college_league.prototype.__type===undefined){gml_Script____struct___28_s_league_create_schedule_panels_gml_GlobalScript_s_college_league.prototype.__type="gml_Script____struct___28_s_league_create_schedule_panels_gml_GlobalScript_s_college_league";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___28_s_league_create_schedule_panels_gml_GlobalScript_s_college_league.prototype);{var $$args=Array.prototype.slice.call(arguments); {_inst.x=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.y=40;_inst.gmlw=420;_inst.gmlh=$$args[__yy_gml_array_check_index(2+(1),$$args)];}}}}function gml_Script____struct___29_s_league_create_schedule_panels_gml_GlobalScript_s_college_league(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___29_s_league_create_schedule_panels_gml_GlobalScript_s_college_league";}if(gml_Script____struct___29_s_league_create_schedule_panels_gml_GlobalScript_s_college_league.prototype.__type===undefined){ gml_Script____struct___29_s_league_create_schedule_panels_gml_GlobalScript_s_college_league.prototype.__type="gml_Script____struct___29_s_league_create_schedule_panels_gml_GlobalScript_s_college_league";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___29_s_league_create_schedule_panels_gml_GlobalScript_s_college_league.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.sprite_index=YYASSET_REF(0x01000131);_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(0), $$args)];_inst.image_yscale=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlaction_create=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.gmlaction_step=$$args[__yy_gml_array_check_index(2+(3),$$args)];_inst.gmlaction_draw_gui=$$args[__yy_gml_array_check_index(2+(4),$$args)];_inst.gml_lines=7;_inst.gml_columns=2;_inst.gml_line_height=16;_inst.gml_week=$$args[__yy_gml_array_check_index(2+(5),$$args)];_inst.gml_min_week=$$args[__yy_gml_array_check_index(2+(6),$$args)];_inst.gml_max_week=$$args[__yy_gml_array_check_index(2+(7), $$args)];_inst.gml_page=0;_inst.gml_max_page=3;_inst.gml_mode=$$args[__yy_gml_array_check_index(2+(8),$$args)];}}}}function gml_Script____struct___30_s_league_create_schedule_panels_gml_GlobalScript_s_college_league(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___30_s_league_create_schedule_panels_gml_GlobalScript_s_college_league";}if(gml_Script____struct___30_s_league_create_schedule_panels_gml_GlobalScript_s_college_league.prototype.__type===undefined){gml_Script____struct___30_s_league_create_schedule_panels_gml_GlobalScript_s_college_league.prototype.__type="gml_Script____struct___30_s_league_create_schedule_panels_gml_GlobalScript_s_college_league"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___30_s_league_create_schedule_panels_gml_GlobalScript_s_college_league.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.sprite_index=YYASSET_REF(0x01000131);_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.image_yscale=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlaction_create=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.gmlaction_step=$$args[__yy_gml_array_check_index(2+(3), $$args)];_inst.gmlaction_draw_gui=$$args[__yy_gml_array_check_index(2+(4),$$args)];_inst.gml_lines=2;_inst.gml_columns=1;_inst.gml_line_height=60;_inst.gml_week=$$args[__yy_gml_array_check_index(2+(5),$$args)];_inst.gml_min_week=$$args[__yy_gml_array_check_index(2+(6),$$args)];_inst.gml_max_week=$$args[__yy_gml_array_check_index(2+(7),$$args)];_inst.gml_page=0;_inst.gml_max_page=3;_inst.gml_mode=$$args[__yy_gml_array_check_index(2+(8),$$args)];}}}}function gml_Script_s_league_create_schedule_panels(_inst, _other){{var gmls=__yy_gml_object_create(_inst,(_inst.gml___struct___28=__yy_method(_inst,gml_Script____struct___28_s_league_create_schedule_panels_gml_GlobalScript_s_college_league)),30,140);var gmlmin_week,gmlmax_week,gmlcur_week;var ___sw26___=_inst.gmlmode;var ___swc27___=-1;if(yyCompareVal(___sw26___,2,g_GMLMathEpsilon,false)==0){___swc27___=0;}else if(yyCompareVal(___sw26___,3,g_GMLMathEpsilon,false)==0){___swc27___=1;}switch(___swc27___){case 0:{gmlmin_week=1;gmlmax_week=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular; gmlcur_week=(yyflessequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular)?yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek:gmlmin_week);yyInst(_inst,_other,global.gmlrm).gmlp1=instance_create_layer(yyInst(_inst,_other,gmls).x,yyInst(_inst,_other,gmls).y,yyInst(_inst,_other,_inst.id).layer,YYASSET_REF(0x0000001D),__yy_gml_object_create(_inst,(_inst.gml___struct___29=__yy_method(_inst,gml_Script____struct___29_s_league_create_schedule_panels_gml_GlobalScript_s_college_league)), yyfdivide(__yy_gml_errCheck(yyInst(_inst,_other,gmls).gmlw),16),yyfdivide(__yy_gml_errCheck(yyInst(_inst,_other,gmls).gmlh),16),kgml_Script_s_co_schedule_init,kgml_Script_s_co_schedule_step,kgml_Script_s_co_schedule_draw_gui,gmlcur_week,gmlmin_week,gmlmax_week,_inst.gmlmode));break;}case 1:{gmlmin_week=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_postseason;gmlmax_week=gml_Script_s_get_last_schedule_week(_inst,_other);gmlcur_week=((yyGetBool(yyfgreaterequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek, yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_postseason)))&&(yyGetBool(yyflessequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,gml_Script_s_get_last_schedule_week(_inst,_other))))?yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek:gmlmin_week);if(yyGetBool(gml_Script_s_season_competitions_done(_inst,_other))){gmlcur_week=gml_Script_s_get_last_schedule_week(_inst,_other);};yyInst(_inst,_other,global.gmlrm).gmlp1=instance_create_layer(yyInst(_inst,_other,gmls).x,yyInst(_inst, _other,gmls).y,yyInst(_inst,_other,_inst.id).layer,YYASSET_REF(0x0000001D),__yy_gml_object_create(_inst,(_inst.gml___struct___30=__yy_method(_inst,gml_Script____struct___30_s_league_create_schedule_panels_gml_GlobalScript_s_college_league)),yyfdivide(__yy_gml_errCheck(yyInst(_inst,_other,gmls).gmlw),16),yyfdivide(__yy_gml_errCheck(yyInst(_inst,_other,gmls).gmlh),16),kgml_Script_s_co_schedule_init,kgml_Script_s_co_schedule_step,kgml_Script_s_co_schedule_draw_gui,gmlcur_week,gmlmin_week,gmlmax_week, _inst.gmlmode));break;}};yyInst(_inst,_other,global.gmlrm).gmlp2=(-4);}}function gml_Script_s_co_schedule_init(_inst,_other){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){return;};gml_Script_s_set_var_if_missing(_inst,_other,"active",true);gml_Script_s_set_var_if_missing(_inst,_other,"clicked",false);_inst.gml_schedule=__yy_gml_array_create([]);gml_Script_s_co_schedule_filter_format(_inst,_other,_inst.gml_schedule,_inst.gml_week,_inst.gml_mode,"std");array_sort(_inst.gml_schedule,kgml_Script_s_co_schedule_sort_order); _inst.gml_playoffs=__yy_gml_array_create([]);if(yyfequal(_inst.gml_mode,3)){{gml_Script_s_co_schedule_filter_format(_inst,_other,_inst.gml_playoffs,undefined,_inst.gml_mode,"bkt");};};_inst.gml_page=0;_inst.gml_schedule_size=array_length(_inst.gml_schedule);_inst.gml_playoffs_size=array_length(_inst.gml_playoffs);_inst.gml_max_page_items=yyftime(__yy_gml_errCheck(_inst.gml_lines),__yy_gml_errCheck(_inst.gml_columns));_inst.gml_max_page=yyfminus(__yy_gml_errCheck(ceil(yyfdivide(__yy_gml_errCheck(_inst.gml_schedule_size), __yy_gml_errCheck(_inst.gml_max_page_items)))),1);_inst.gml_show_bracket=false;if((yyGetBool(yyfgreater(_inst.gml_playoffs_size,0)))&&(yyGetBool(yyfgreaterequal(_inst.gml_week,yyInst(_inst,_other,_inst.gml_playoffs[__yy_gml_array_check_index(0,_inst.gml_playoffs)]).gmlweek)))&&(yyGetBool(yyflessequal(_inst.gml_week,yyInst(_inst,_other,_inst.gml_playoffs[__yy_gml_array_check_index(yyfminus(__yy_gml_errCheck(_inst.gml_playoffs_size),1),_inst.gml_playoffs)]).gmlweek)))){{gml_Script_slogf(_inst,_other, "Activate bracket page, %1 games : %4 in (%2-%3)",_inst.gml_playoffs_size,yyInst(_inst,_other,_inst.gml_playoffs[__yy_gml_array_check_index(0,_inst.gml_playoffs)]).gmlweek,yyInst(_inst,_other,_inst.gml_playoffs[__yy_gml_array_check_index(yyfminus(__yy_gml_errCheck(_inst.gml_playoffs_size),1),_inst.gml_playoffs)]).gmlweek,_inst.gml_week);gml_Script_s_set_matchlist_bracket_coords(_inst,_other,_inst.gml_playoffs,_inst.id);_inst.gml_max_page=yyfplus(_inst.gml_max_page,2);_inst.gml_show_bracket=true; if(yyfequal(gml_Script_s_get_subdivision(_inst,_other,yyInst(_inst,_other,global.gmlg_m).gmlmyteam),2)){{_inst.gml_page=yyfplus(yyfminus(__yy_gml_errCheck(_inst.gml_max_page),1),__yy_gml_errCheck(gml_Script_s_league_get_own_bracket_page(_inst,_other,_inst.gml_playoffs)));gml_Script_slogf(_inst,_other,"FCS, page %1",_inst.gml_page);};};};};gml_Script_s_co_schedule_refresh(_inst,_other);}}function gml_Script_s_league_btn_week(_inst,_other){{{var __yy__v21=GetWithArray(yyInst(_inst,_other,global.gmlrm).gmlp1); for(var __yy__v22 in __yy__v21){if(!__yy__v21.hasOwnProperty(__yy__v22))continue;var __yy__v23=__yy__v21[__yy__v22];{__yy__v23.gml_week=clamp(yyfplus(__yy_gml_errCheck(__yy__v23.gml_week),__yy_gml_errCheck(_inst.gmladd)),__yy__v23.gml_min_week,__yy__v23.gml_max_week);gml_Script_s_co_schedule_init(__yy__v23,_inst);}}};}}function gml_Script_s_league_btn_page(_inst,_other){{{var __yy__v24=GetWithArray(yyInst(_inst,_other,global.gmlrm).gmlp1);for(var __yy__v25 in __yy__v24){if(!__yy__v24.hasOwnProperty(__yy__v25))continue; var __yy__v26=__yy__v24[__yy__v25];{__yy__v26.gml_page=clamp(yyfplus(__yy_gml_errCheck(__yy__v26.gml_page),__yy_gml_errCheck(_inst.gmladd)),0,__yy__v26.gml_max_page);gml_Script_s_co_schedule_refresh(__yy__v26,_inst);}}};}}function gml_Script_s_co_schedule_sort_order(_inst,_other,argument0,argument1){{return yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,argument1).gmlorder),__yy_gml_errCheck(yyInst(_inst,_other,argument0).gmlorder));}}function gml_Script_s_league_get_own_bracket_page(_inst,_other,argument0){ {var gmlfix;var gmli=0;for(;yyfless(gmli,array_length(argument0));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlfix=argument0[__yy_gml_array_check_index(gmli,argument0)];if((yyGetBool((yyGetBool(yyfequal(yyInst(_inst,_other,gmlfix).gmlteam_a_id,yyInst(_inst,_other,global.gmlg_m).gmlmyteam_id)))||(yyGetBool(yyfequal(yyInst(_inst,_other,gmlfix).gmlteam_h_id,yyInst(_inst,_other,global.gmlg_m).gmlmyteam_id)))))&&(yyGetBool(yyfnotequal(yyInst(_inst, _other,gmlfix).gmlpg,0)))){return yyInst(_inst,_other,gmlfix).gmlpg;};}};return 0;}}function gml_Script_s_co_schedule_refresh(_inst,_other){{_inst.gmltitle=gml_Script_s_strf(_inst,_other,"%1 (%2/%3)",gml_Script_s_get_week_name(_inst,_other,_inst.gml_week),yyfplus(__yy_gml_errCheck(_inst.gml_page),1),yyfplus(__yy_gml_errCheck(_inst.gml_max_page),1));}}function gml_Script_s_co_schedule_step(_inst,_other){{yyInst(_inst,_other,yyInst(_inst,_other,global.gmlrm).gmlb_left).gmlactive=yyfgreater(_inst.gml_week, _inst.gml_min_week);yyInst(_inst,_other,yyInst(_inst,_other,global.gmlrm).gmlb_right).gmlactive=yyfless(_inst.gml_week,_inst.gml_max_week);yyInst(_inst,_other,yyInst(_inst,_other,global.gmlrm).gmlb_up).gmlactive=yyfgreater(_inst.gml_page,0);yyInst(_inst,_other,yyInst(_inst,_other,global.gmlrm).gmlb_down).gmlactive=yyfless(_inst.gml_page,_inst.gml_max_page);}}function gml_Script____struct___31_s_co_schedule_filter_format_gml_GlobalScript_s_college_league(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___31_s_co_schedule_filter_format_gml_GlobalScript_s_college_league"; }if(gml_Script____struct___31_s_co_schedule_filter_format_gml_GlobalScript_s_college_league.prototype.__type===undefined){gml_Script____struct___31_s_co_schedule_filter_format_gml_GlobalScript_s_college_league.prototype.__type="gml_Script____struct___31_s_co_schedule_filter_format_gml_GlobalScript_s_college_league";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___31_s_co_schedule_filter_format_gml_GlobalScript_s_college_league.prototype);{}}}function gml_Script_s_co_schedule_filter_format(_inst, _other,argument0,argument1,argument2,argument3){{if(yyfequal(argument1,_inst.undefined)){argument1=(-4);};if(yyfequal(argument3,_inst.undefined)){argument3=(-4);};}{var gmlf=0;for(;yyfless(gmlf,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlschedule));(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf),g_yyPrePostObject__)){{var gmlfix=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlschedule,gmlf);if((yyGetBool(yyfequal(argument1,(-4))))||(yyGetBool(yyfequal(real(ds_map_find_value(gmlfix, "week")),argument1)))){{if((yyGetBool(yyfnotequal(argument3,(-4))))&&(yyGetBool(!yyGetBool(is_undefined(ds_map_find_value(gmlfix,"show")))))&&(yyGetBool(yyfnotequal(ds_map_find_value(gmlfix,"show"),argument3)))){{continue;};};if((yyGetBool(yyfequal(argument2,3)))&&(yyGetBool(is_undefined(ds_map_find_value(gmlfix,"show"))))){continue;};var gmlwf=__yy_gml_object_create(_inst,(_inst.gml___struct___31=__yy_method(_inst,gml_Script____struct___31_s_co_schedule_filter_format_gml_GlobalScript_s_college_league))); yyInst(_inst,_other,gmlwf).gmlweek=real(ds_map_find_value(gmlfix,"week"));yyInst(_inst,_other,gmlwf).gmlteam_a_id=ds_map_find_value(gmlfix,"away_team");yyInst(_inst,_other,gmlwf).gmlteam_h_id=ds_map_find_value(gmlfix,"home_team");yyInst(_inst,_other,gmlwf).gmlscore_a=ds_map_find_value(gmlfix,"away_score");yyInst(_inst,_other,gmlwf).gmlscore_h=ds_map_find_value(gmlfix,"home_score");yyInst(_inst,_other,gmlwf).gmlteam_a=gml_Script_s_get_team_by_id(_inst,_other,yyInst(_inst,_other,gmlwf).gmlteam_a_id); yyInst(_inst,_other,gmlwf).gmlteam_h=gml_Script_s_get_team_by_id(_inst,_other,yyInst(_inst,_other,gmlwf).gmlteam_h_id);yyInst(_inst,_other,gmlwf).gmlplayed=yyfgreater(yyInst(_inst,_other,gmlwf).gmlscore_a,(-1));yyInst(_inst,_other,gmlwf).gmlcolour=16777215;yyInst(_inst,_other,gmlwf).gmlalpha=0.6;yyInst(_inst,_other,gmlwf).gmlorder=yyfminus(10000,__yy_gml_errCheck(gml_Script_s_get_map_real(_inst,_other,gmlfix,"cid",0)));var ___sw28___=argument2;var ___swc29___=-1;if(yyCompareVal(___sw28___,2,g_GMLMathEpsilon, false)==0){___swc29___=0;}else if(yyCompareVal(___sw28___,3,g_GMLMathEpsilon,false)==0){___swc29___=1;}switch(___swc29___){case 0:{yyInst(_inst,_other,gmlwf).gmlvs=(yyGetBool(yyInst(_inst,_other,gmlwf).gmlplayed)?yyfplus(yyfplus(__yy_gml_errCheck(string(yyInst(_inst,_other,gmlwf).gmlscore_a))," "),__yy_gml_errCheck(string(yyInst(_inst,_other,gmlwf).gmlscore_h))):gml_Script_s_str(_inst,_other,"tla_At"));break;}case 1:{yyInst(_inst,_other,gmlwf).gmlcompetition=gml_Script_s_get_fix_competition_string(_inst, _other,gmlfix);yyInst(_inst,_other,gmlwf).gmllocation=gml_Script_s_get_fix_location_string(_inst,_other,gmlfix);yyInst(_inst,_other,gmlwf).gmlvs=(yyGetBool(yyInst(_inst,_other,gmlwf).gmlplayed)?yyfplus(yyfplus(__yy_gml_errCheck(string(yyInst(_inst,_other,gmlwf).gmlscore_a))," "),__yy_gml_errCheck(string(yyInst(_inst,_other,gmlwf).gmlscore_h))):gml_Script_s_str(_inst,_other,"tla_versus"));yyInst(_inst,_other,gmlwf).gmlsc=(yyGetBool(yyInst(_inst,_other,gmlwf).gmlplayed)?yyfplus(yyfplus(__yy_gml_errCheck(string(yyInst(_inst, _other,gmlwf).gmlscore_a))," "),__yy_gml_errCheck(string(yyInst(_inst,_other,gmlwf).gmlscore_h))):"");yyInst(_inst,_other,gmlwf).gmlmid=ds_map_find_value(gmlfix,"mid");break;}};if((yyGetBool(yyfequal(ds_map_find_value(yyInst(_inst,_other,gmlwf).gmlteam_a,"conference"),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyconference)))||(yyGetBool(yyfequal(ds_map_find_value(yyInst(_inst,_other,gmlwf).gmlteam_h,"conference"),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyconference)))){{yyInst(_inst, _other,gmlwf).gmlorder=yyfplus(yyInst(_inst,_other,gmlwf).gmlorder,10000);yyInst(_inst,_other,gmlwf).gmlalpha=1;};};if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlwf).gmlteam_a_id,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id)))||(yyGetBool(yyfequal(yyInst(_inst,_other,gmlwf).gmlteam_h_id,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id)))){{yyInst(_inst,_other,gmlwf).gmlorder=yyfplus(yyInst(_inst,_other,gmlwf).gmlorder,10000);yyInst(_inst,_other,gmlwf).gmlcolour=global.gmlc_primary; };};if(yyfequal(ds_map_find_value(gmlfix,"cat"),"sf")){{yyInst(_inst,_other,gmlwf).gmlorder=yyfplus(yyInst(_inst,_other,gmlwf).gmlorder,1000);};};array_push(argument0,gmlwf);};};}};}}function gml_Script____struct___32_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___32_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league";}if(gml_Script____struct___32_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.prototype.__type===undefined){ gml_Script____struct___32_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.prototype.__type="gml_Script____struct___32_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___32_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlid1="5.01";_inst.gmlid2="5.05";_inst.gmlpg=0;_inst.gmlpx=$$args[__yy_gml_array_check_index(2+(0), $$args)];_inst.gmlpy=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmldy=0;}}}}function gml_Script____struct___33_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___33_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league";}if(gml_Script____struct___33_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.prototype.__type===undefined){gml_Script____struct___33_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.prototype.__type="gml_Script____struct___33_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___33_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlid1="5.02";_inst.gmlid2="5.06";_inst.gmlpg=0;_inst.gmlpx=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlpy=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmldy=0;}}}}function gml_Script____struct___34_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league(_inst, _other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___34_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league";}if(gml_Script____struct___34_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.prototype.__type===undefined){gml_Script____struct___34_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.prototype.__type="gml_Script____struct___34_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst, gml_Script____struct___34_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlid1="5.03";_inst.gmlid2="5.07";_inst.gmlpg=0;_inst.gmlpx=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlpy=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmldy=0;}}}}function gml_Script____struct___35_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___35_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league"; }if(gml_Script____struct___35_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.prototype.__type===undefined){gml_Script____struct___35_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.prototype.__type="gml_Script____struct___35_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___35_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.prototype);{var $$args=Array.prototype.slice.call(arguments); {_inst.gmlid1="5.04";_inst.gmlid2="5.08";_inst.gmlpg=0;_inst.gmlpx=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlpy=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmldy=0;}}}}function gml_Script____struct___36_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___36_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league";}if(gml_Script____struct___36_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.prototype.__type===undefined){ gml_Script____struct___36_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.prototype.__type="gml_Script____struct___36_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___36_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlid1="4.01";_inst.gmlid2="4.05";_inst.gmlpg=0;_inst.gmlpx=$$args[__yy_gml_array_check_index(2+(0), $$args)];_inst.gmlpy=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmldy=0;}}}}function gml_Script____struct___37_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___37_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league";}if(gml_Script____struct___37_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.prototype.__type===undefined){gml_Script____struct___37_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.prototype.__type="gml_Script____struct___37_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___37_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlid1="4.02";_inst.gmlid2="4.06";_inst.gmlpg=0;_inst.gmlpx=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlpy=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmldy=0;}}}}function gml_Script____struct___38_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league(_inst, _other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___38_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league";}if(gml_Script____struct___38_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.prototype.__type===undefined){gml_Script____struct___38_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.prototype.__type="gml_Script____struct___38_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst, gml_Script____struct___38_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlid1="4.03";_inst.gmlid2="4.07";_inst.gmlpg=0;_inst.gmlpx=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlpy=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmldy=0;}}}}function gml_Script____struct___39_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___39_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league"; }if(gml_Script____struct___39_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.prototype.__type===undefined){gml_Script____struct___39_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.prototype.__type="gml_Script____struct___39_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___39_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.prototype);{var $$args=Array.prototype.slice.call(arguments); {_inst.gmlid1="4.04";_inst.gmlid2="4.08";_inst.gmlpg=0;_inst.gmlpx=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlpy=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmldy=0;}}}}function gml_Script____struct___40_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___40_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league";}if(gml_Script____struct___40_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.prototype.__type===undefined){ gml_Script____struct___40_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.prototype.__type="gml_Script____struct___40_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___40_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlid1="3.01";_inst.gmlid2="3.03";_inst.gmlpg=0;_inst.gmlpx=$$args[__yy_gml_array_check_index(2+(0), $$args)];_inst.gmlpy=0;_inst.gmldy=1;}}}}function gml_Script____struct___41_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___41_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league";}if(gml_Script____struct___41_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.prototype.__type===undefined){gml_Script____struct___41_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.prototype.__type="gml_Script____struct___41_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___41_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlid1="3.02";_inst.gmlid2="3.04";_inst.gmlpg=0;_inst.gmlpx=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlpy=0;_inst.gmldy=1;}}}}function gml_Script____struct___42_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___42_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league"; }if(gml_Script____struct___42_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.prototype.__type===undefined){gml_Script____struct___42_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.prototype.__type="gml_Script____struct___42_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___42_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.prototype);{_inst.gmlid1="2.01"; _inst.gmlid2="2.02";_inst.gmlpg=0;_inst.gmlpx=0;_inst.gmlpy=0;_inst.gmldy=0;}}}function gml_Script____struct___43_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___43_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league";}if(gml_Script____struct___43_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.prototype.__type===undefined){gml_Script____struct___43_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.prototype.__type="gml_Script____struct___43_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___43_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.x=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.y=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlhw=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.gmlhh=$$args[__yy_gml_array_check_index(2+(3),$$args)];}}}}function gml_Script_s_set_matchlist_bracket_coords(_inst, _other,argument0,argument1){{var gml_map=__yy_gml_array_create([__yy_gml_object_create(_inst,(_inst.gml___struct___32=__yy_method(_inst,gml_Script____struct___32_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league)),(-3),(-3)),__yy_gml_object_create(_inst,(_inst.gml___struct___33=__yy_method(_inst,gml_Script____struct___33_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league)),(-3),3),__yy_gml_object_create(_inst,(_inst.gml___struct___34=__yy_method(_inst,gml_Script____struct___34_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league)), 3,(-3)),__yy_gml_object_create(_inst,(_inst.gml___struct___35=__yy_method(_inst,gml_Script____struct___35_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league)),3,3),__yy_gml_object_create(_inst,(_inst.gml___struct___36=__yy_method(_inst,gml_Script____struct___36_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league)),(-2),(-2.2)),__yy_gml_object_create(_inst,(_inst.gml___struct___37=__yy_method(_inst,gml_Script____struct___37_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league)), (-2),2.2),__yy_gml_object_create(_inst,(_inst.gml___struct___38=__yy_method(_inst,gml_Script____struct___38_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league)),2,(-2.2)),__yy_gml_object_create(_inst,(_inst.gml___struct___39=__yy_method(_inst,gml_Script____struct___39_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league)),2,2.2),__yy_gml_object_create(_inst,(_inst.gml___struct___40=__yy_method(_inst,gml_Script____struct___40_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league)), (-1)),__yy_gml_object_create(_inst,(_inst.gml___struct___41=__yy_method(_inst,gml_Script____struct___41_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league)),1),__yy_gml_object_create(_inst,(_inst.gml___struct___42=__yy_method(_inst,gml_Script____struct___42_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league)))]);var gmlpc=__yy_gml_object_create(_inst,(_inst.gml___struct___43=__yy_method(_inst,gml_Script____struct___43_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league)), yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,argument1).x),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(yyInst(_inst,_other,argument1).sprite_width),2))),yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,argument1).y),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(yyInst(_inst,_other,argument1).sprite_height),2))),yyfdivide(yyfdivide(__yy_gml_errCheck(yyInst(_inst,_other,argument1).sprite_width),2),3.6),yyfdivide(yyfdivide(__yy_gml_errCheck(yyInst(_inst,_other,argument1).sprite_height),2),6));var gmlm, gmlwf;var gmli=0;for(;yyfless(gmli,array_length(argument0));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlwf=argument0[__yy_gml_array_check_index(gmli,argument0)];gmlm=gml_Script_s_get_bracket_map_entry(_inst,_other,gml_map,yyInst(_inst,_other,gmlwf).gmlmid);if(yyGetBool(gmlm)){{yyInst(_inst,_other,gmlwf).gmlpg=yyInst(_inst,_other,gmlm).gmlpg;yyInst(_inst,_other,gmlwf).gmlpx=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmlpc).x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst, _other,gmlm).gmlpx),__yy_gml_errCheck(yyInst(_inst,_other,gmlpc).gmlhw))));yyInst(_inst,_other,gmlwf).gmlpy=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmlpc).y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,gmlm).gmlpy),__yy_gml_errCheck(yyInst(_inst,_other,gmlpc).gmlhh))));yyInst(_inst,_other,gmlwf).gmldy=yyInst(_inst,_other,gmlm).gmldy;};}else {{yyInst(_inst,_other,gmlwf).gmlpg=(-1);};};}};}}function gml_Script_s_get_bracket_map_entry(_inst,_other,argument0,argument1){{var gmli=0; for(;yyfless(gmli,array_length(argument0));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{if((yyGetBool(yyfequal(yyInst(_inst,_other,argument0[__yy_gml_array_check_index(gmli,argument0)]).gmlid1,argument1)))||(yyGetBool(yyfequal(yyInst(_inst,_other,argument0[__yy_gml_array_check_index(gmli,argument0)]).gmlid2,argument1)))){{yyInst(_inst,_other,argument0[__yy_gml_array_check_index(gmli,argument0)]).gmlpg=(yyfequal(yyInst(_inst,_other,argument0[__yy_gml_array_check_index(gmli, argument0)]).gmlid1,argument1)?0:1);return argument0[__yy_gml_array_check_index(gmli,argument0)];};};}};return(-4);}}function gml_Script_s_co_schedule_draw_gui(_inst,_other){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){return;};var gmlgx=_inst.x;var gmlgy=_inst.y;if(yyGetBool(_inst.gmlactive)){draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,yyfminus(__yy_gml_errCheck(_inst.x),2),yyfplus(__yy_gml_errCheck(_inst.y),2),1,1,0,global.gmlc_shadow,1);};var gmltx=gmlgx;var gmlty=gmlgy;draw_rectangle_color(yyfplus(__yy_gml_errCheck(gmltx), 2),gmlty,yyfminus(yyfplus(yyfplus(__yy_gml_errCheck(gmltx),2),__yy_gml_errCheck(_inst.sprite_width)),4),yyfminus(yyfplus(yyfplus(__yy_gml_errCheck(gmlty),2),__yy_gml_errCheck(_inst.sprite_height)),4),global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,gmltx,gmlty,_inst.image_xscale,_inst.image_yscale,0,16777215,1);draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gmlsw=gml_Script_string_hd_width(_inst, _other,_inst.gmltitle);var gmlsh=4;gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2))),gmlty,_inst.gmltitle,true);var gmlj=0;var gmlc=0;var gmlttx=__yy_gml_array_create([yyfplus(__yy_gml_errCheck(gmlgx),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_width),4))),yyfplus(__yy_gml_errCheck(gmlgx),__yy_gml_errCheck(yyftime(yyfdivide(__yy_gml_errCheck(_inst.sprite_width),4),3)))]);var gmltty;var gmlfix;var gmli=yyftime(__yy_gml_errCheck(_inst.gml_max_page_items), __yy_gml_errCheck(_inst.gml_page));for(;yyfless(gmli,min(_inst.gml_schedule_size,yyftime(__yy_gml_errCheck(_inst.gml_max_page_items),__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(_inst.gml_page),1)))));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlfix=_inst.gml_schedule[__yy_gml_array_check_index(gmli,_inst.gml_schedule)];var ___sw30___=_inst.gml_mode;var ___swc31___=-1;if(yyCompareVal(___sw30___,2,g_GMLMathEpsilon,false)==0){___swc31___=0; }else if(yyCompareVal(___sw30___,3,g_GMLMathEpsilon,false)==0){___swc31___=1;}switch(___swc31___){case 0:{gmltty=yyfplus(yyfplus(__yy_gml_errCheck(gmlgy),20),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlj),__yy_gml_errCheck(_inst.gml_line_height))));draw_set_alpha(yyInst(_inst,_other,gmlfix).gmlalpha);draw_set_color(yyInst(_inst,_other,gmlfix).gmlcolour);draw_set_halign(1);gml_Script_draw_hd_text(_inst,_other,gmlttx[__yy_gml_array_check_index(gmlc,gmlttx)],gmltty,yyInst(_inst,_other,gmlfix).gmlvs); draw_set_halign(2);gml_Script_draw_hd_text(_inst,_other,yyfminus(__yy_gml_errCheck(gmlttx[__yy_gml_array_check_index(gmlc,gmlttx)]),40),gmltty,ds_map_find_value(yyInst(_inst,_other,gmlfix).gmlteam_a,"tla"));draw_set_halign(0);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmlttx[__yy_gml_array_check_index(gmlc,gmlttx)]),40),gmltty,ds_map_find_value(yyInst(_inst,_other,gmlfix).gmlteam_h,"tla"));break;}case 1:{gmltx=yyfplus(__yy_gml_errCheck(gmlgx),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_width), 2)));gmltty=yyfplus(yyfplus(__yy_gml_errCheck(gmlgy),24),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlj),__yy_gml_errCheck(_inst.gml_line_height))));draw_set_alpha(1);draw_set_color(16777215);draw_set_halign(1);gml_Script_draw_hd_text(_inst,_other,gmltx,gmltty,yyInst(_inst,_other,gmlfix).gmlcompetition);gmltty=yyfplus(gmltty,14);gml_Script_draw_hd_text(_inst,_other,gmltx,gmltty,yyInst(_inst,_other,gmlfix).gmllocation);gmltty=yyfplus(gmltty,16);gml_Script_draw_hd_text(_inst,_other,gmltx,gmltty, yyInst(_inst,_other,gmlfix).gmlvs);draw_set_alpha(yyInst(_inst,_other,gmlfix).gmlalpha);draw_set_color(yyInst(_inst,_other,gmlfix).gmlcolour);draw_set_halign(2);gml_Script_draw_hd_text(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),40),gmltty,ds_map_find_value(yyInst(_inst,_other,gmlfix).gmlteam_a,"name"));draw_set_halign(0);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),40),gmltty,ds_map_find_value(yyInst(_inst,_other,gmlfix).gmlteam_h,"name"));break;}};(g_yyPrePostObject__=gmlj, gmlj=(g_yyPrePostObject__ instanceof Long?gmlj.add(1):++gmlj),g_yyPrePostObject__);if(yyfgreaterequal(gmlj,_inst.gml_lines)){{gmlj=0;(g_yyPrePostObject__=gmlc,gmlc=(g_yyPrePostObject__ instanceof Long?gmlc.add(1):++gmlc),g_yyPrePostObject__);};};}};if((yyGetBool(_inst.gml_show_bracket))&&(yyGetBool(yyfgreaterequal(_inst.gml_page,yyfminus(__yy_gml_errCheck(_inst.gml_max_page),1))))){{var gmlpg=yyfminus(1,__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(_inst.gml_max_page),__yy_gml_errCheck(_inst.gml_page)))); var gmly1,gmly2;var gmlwk_future,gmltm_future;gmltx=yyfplus(__yy_gml_errCheck(gmlgx),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2)));gmlty=yyfplus(__yy_gml_errCheck(gmlgy),40);draw_set_halign(1);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(gml_Script_s_str(_inst,_other,"ui_Semi")));draw_set_halign(0);gml_Script_draw_hd_text(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),84),yyfminus(__yy_gml_errCheck(gmlty),16),string_upper(gml_Script_s_str(_inst,_other,"ui_Quarter"))); draw_set_halign(2);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),84),yyfminus(__yy_gml_errCheck(gmlty),16),string_upper(gml_Script_s_str(_inst,_other,"ui_Quarter")));var gmli=0;for(;yyfless(gmli,_inst.gml_playoffs_size);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlfix=_inst.gml_playoffs[__yy_gml_array_check_index(gmli,_inst.gml_playoffs)];if(yyfnotequal(yyInst(_inst,_other,gmlfix).gmlpg,gmlpg)){continue;};gmlwk_future=yyfgreater(yyInst(_inst, _other,gmlfix).gmlweek,_inst.gml_week);gmltm_future=yyfgreater(yyInst(_inst,_other,gmlfix).gmlweek,yyfplus(__yy_gml_errCheck(_inst.gml_week),1));draw_set_halign(1);gmly1=yyfminus(yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlfix).gmlpy),14),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,gmlfix).gmldy),16)));gmly2=yyfplus(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmlfix).gmlpy),5),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,gmlfix).gmldy),16)));gml_Script_s_draw_bracket_name_box(_inst, _other,yyInst(_inst,_other,gmlfix).gmlpx,gmly1);draw_set_color(yyInst(_inst,_other,gmlfix).gmlcolour);gml_Script_draw_hd_text(_inst,_other,yyInst(_inst,_other,gmlfix).gmlpx,gmly1,(yyGetBool(gmltm_future)?"-":ds_map_find_value(yyInst(_inst,_other,gmlfix).gmlteam_a,"tla")));gml_Script_s_draw_bracket_name_box(_inst,_other,yyInst(_inst,_other,gmlfix).gmlpx,gmly2);draw_set_color(yyInst(_inst,_other,gmlfix).gmlcolour);gml_Script_draw_hd_text(_inst,_other,yyInst(_inst,_other,gmlfix).gmlpx,gmly2,(yyGetBool(gmltm_future)?"-":ds_map_find_value(yyInst(_inst, _other,gmlfix).gmlteam_h,"tla")));draw_set_color(16777215);gml_Script_draw_hd_text(_inst,_other,yyInst(_inst,_other,gmlfix).gmlpx,yyfplus(__yy_gml_errCheck(gmly2),15),(yyGetBool(gmlwk_future)?"":yyInst(_inst,_other,gmlfix).gmlsc));}};};};draw_set_alpha(1);}}function gml_Script_s_draw_bracket_name_box(_inst,_other,argument0,argument1){{draw_sprite_ext(_inst,YYASSET_REF(0x01000131),0,yyfminus(__yy_gml_errCheck(argument0),25),yyfminus(__yy_gml_errCheck(argument1),7),3.125,0.9375,0,16777215,1);}}function gml_GlobalScript_s_college_balance(_inst, _other){(_inst.gmls_college_balance_create_new_roster=__yy_method(_inst,gml_Script_s_college_balance_create_new_roster));}function gml_Script_s_college_balance_create_new_roster(_inst,_other){{var gmli=0;for(;yyfless(gmli,ds_list_size(_inst.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(_inst.gmlroster,gmli);if(yyfequal(gmli,0)){{ds_map_set(gmlpmap,"age",yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst, _other)),2));};}else {if(yyfequal(gmli,1)){{ds_map_set(gmlpmap,"age",yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),3));};}else {if(yyfequal(gmli,2)){{ds_map_set(gmlpmap,"age",yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),3));};}else {{ds_map_set(gmlpmap,"age",(yyfless(random(1),0.5)?gml_Script_s_rookie_age_internal(_inst,_other):yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),1)));};};};};gml_Script_slog(_inst,_other, yyfplus(yyfplus(yyfplus(yyfplus("Player Age force [",__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))),"] -> ["),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"age")))),"]"));gml_Script_s_refresh_suspended(_inst,_other,gmlpmap,false);}};}}function gml_GlobalScript_s_count_simmed_games(_inst,_other){(_inst.gmls_count_simmed_games=__yy_method(_inst,gml_Script_s_count_simmed_games));}function gml_Script_s_count_simmed_games(_inst,_other,argument0){{var gmlwins=0;var gmllosses=0;var gmlties=0;{ var __yy__v27=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v28 in __yy__v27){if(!__yy__v27.hasOwnProperty(__yy__v28))continue;var __yy__v29=__yy__v27[__yy__v28];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v29.gmlfixturelist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(__yy__v29.gmlfixturelist,gmli);if(yyfnotequal(ds_map_find_value(gmlmap,"human_win"),"unplayed")){{if(yyGetBool(ds_map_exists(gmlmap, "difficulty"))){{var gmldif=ds_map_find_value(gmlmap,"difficulty");if(yyfgreater(string_count(gml_Script_s_str(__yy__v29,_inst,"ui_Sim"),gmldif),0)){{var ___sw36___=ds_map_find_value(gmlmap,"human_win");var ___swc37___=-1;if(yyCompareVal(___sw36___,"win",g_GMLMathEpsilon,false)==0){___swc37___=0;}else if(yyCompareVal(___sw36___,"loss",g_GMLMathEpsilon,false)==0){___swc37___=1;}else if(yyCompareVal(___sw36___,"tie",g_GMLMathEpsilon,false)==0){___swc37___=2;}switch(___swc37___){case 0:{(g_yyPrePostObject__=gmlwins, gmlwins=(g_yyPrePostObject__ instanceof Long?gmlwins.add(1):++gmlwins),g_yyPrePostObject__);break;}case 1:{(g_yyPrePostObject__=gmllosses,gmllosses=(g_yyPrePostObject__ instanceof Long?gmllosses.add(1):++gmllosses),g_yyPrePostObject__);break;}case 2:{(g_yyPrePostObject__=gmlties,gmlties=(g_yyPrePostObject__ instanceof Long?gmlties.add(1):++gmlties),g_yyPrePostObject__);break;}};};};};};};};}};}}};var ___sw38___=argument0;var ___swc39___=-1;if(yyCompareVal(___sw38___,(-1),g_GMLMathEpsilon,false)==0){___swc39___=0; }else if(yyCompareVal(___sw38___,0,g_GMLMathEpsilon,false)==0){___swc39___=1;}else if(yyCompareVal(___sw38___,1,g_GMLMathEpsilon,false)==0){___swc39___=2;}switch(___swc39___){case 0:{return gmllosses;break;}case 1:{return gmlties;break;}case 2:{return gmlwins;break;}};return 0;}}// ds_list_add(other.l_team, s_get_human_opponent_sla_prefix("@", wk) + opp_map[? "tla"]); // if (string_count("@", l_team[| i])) draw_set_alpha(0.7); function gml_GlobalScript_season_tally_scripts(_inst,_other){(_inst.gmls_obj_season_tally_create=__yy_method(_inst, gml_Script_s_obj_season_tally_create));(_inst.gmls_maps_array_sort_week=__yy_method(_inst,gml_Script_s_maps_array_sort_week));(_inst.gmls_get_human_opponent_sla_prefix=__yy_method(_inst,gml_Script_s_get_human_opponent_sla_prefix));(_inst.gmls_obj_season_tally_step=__yy_method(_inst,gml_Script_s_obj_season_tally_step));(_inst.gmls_obj_season_tally_draw_gui=__yy_method(_inst,gml_Script_s_obj_season_tally_draw_gui));(_inst.gmls_obj_season_tally_draw_gui_begin=__yy_method(_inst,gml_Script_s_obj_season_tally_draw_gui_begin)); (_inst.gmls_draw_season_tally_header=__yy_method(_inst,gml_Script_s_draw_season_tally_header));}function gml_Script____struct___44_s_obj_season_tally_create_gml_GlobalScript_season_tally_scripts(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___44_s_obj_season_tally_create_gml_GlobalScript_season_tally_scripts";}if(gml_Script____struct___44_s_obj_season_tally_create_gml_GlobalScript_season_tally_scripts.prototype.__type===undefined){gml_Script____struct___44_s_obj_season_tally_create_gml_GlobalScript_season_tally_scripts.prototype.__type="gml_Script____struct___44_s_obj_season_tally_create_gml_GlobalScript_season_tally_scripts"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___44_s_obj_season_tally_create_gml_GlobalScript_season_tally_scripts.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.image_xscale=0.6;_inst.image_yscale=0.25;_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmltitle=$$args[__yy_gml_array_check_index(2+(1),$$args)];}}}}function gml_Script____struct___45_s_obj_season_tally_create_gml_GlobalScript_season_tally_scripts(_inst,_other){if(_inst.__yyIsGMLObject){ _inst.__type="gml_Script____struct___45_s_obj_season_tally_create_gml_GlobalScript_season_tally_scripts";}if(gml_Script____struct___45_s_obj_season_tally_create_gml_GlobalScript_season_tally_scripts.prototype.__type===undefined){gml_Script____struct___45_s_obj_season_tally_create_gml_GlobalScript_season_tally_scripts.prototype.__type="gml_Script____struct___45_s_obj_season_tally_create_gml_GlobalScript_season_tally_scripts";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___45_s_obj_season_tally_create_gml_GlobalScript_season_tally_scripts.prototype); {var $$args=Array.prototype.slice.call(arguments);{_inst.image_xscale=0.6;_inst.image_yscale=0.25;_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmltitle=$$args[__yy_gml_array_check_index(2+(1),$$args)];}}}}function gml_Script_s_obj_season_tally_create(_inst,_other){{gml_Script_slog(_inst,_other,yyfplus("year: ",__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear))));gml_Script_slog(_inst,_other,yyfplus("week: ",__yy_gml_errCheck(string(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlweek))));gml_Script_slog(_inst,_other,yyfplus("last_week_regular: ",__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular))));_inst.gmlwatcol=gml_Script_s_get_watermark_color(_inst,_other);_inst.gmlsclx=1.1;_inst.gmlscly=1.1;_inst.gmlrot=random(360);_inst.gmlpage=1;{var __yy__v30=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v31 in __yy__v30){if(!__yy__v30.hasOwnProperty(__yy__v31))continue;var __yy__v32=__yy__v30[__yy__v31]; {var gmldt=yyfplus(yyfplus("Y",__yy_gml_errCheck(string(__yy__v32.gmlyear)))," ");if(!yyGetBool(__yy__v32.gmldone_season_review)){gmldt=yyfplus(gmldt,(yyfgreater(__yy__v32.gmlweek,18)?"PS":yyfplus("W",__yy_gml_errCheck(string(__yy__v32.gmlweek)))));};yyInst(_inst,_other,100658).gmltext=yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(__yy__v32,_inst,"ui_SeasonReview")),": "),__yy_gml_errCheck(ds_map_find_value(__yy__v32.gmlmyteam,"name"))), " ("),__yy_gml_errCheck(__yy__v32.gmlfname))," "),__yy_gml_errCheck(__yy__v32.gmllname)),")")," "),__yy_gml_errCheck(gmldt));yyInst(_inst,_other,100655).gmltext=gml_Script_s_get_string_record(__yy__v32,_inst,__yy__v32.gmlmyteam,true);}}};_inst.gmll_result=ds_list_create();_inst.gmll_week=ds_list_create();_inst.gmll_team=ds_list_create();_inst.gmll_score=ds_list_create();_inst.gmll_pd=ds_list_create();_inst.gmll_diff=ds_list_create();_inst.gmll_qtr=ds_list_create();_inst.gmll_weather=ds_list_create(); _inst.gmll_of=ds_list_create();_inst.gmll_df=ds_list_create();_inst.gmltotalpd=0;_inst.gmltotal_of=0;_inst.gmltotal_df=0;_inst.gmll_pname=ds_list_create();_inst.gmll_pos=ds_list_create();_inst.gmll_games=ds_list_create();_inst.gmll_attcmp=ds_list_create();_inst.gmll_yards=ds_list_create();_inst.gmll_tds=ds_list_create();_inst.gmll_turn=ds_list_create();_inst.gmll_sacks_avg=ds_list_create();var gmlgamecount=0;var gmltof=0;var gmltdf=0;var gmlmap,gmlwk,gmlstr_wk,gmlcat;var gmlfixtures=__yy_gml_array_create([]); {var __yy__v33=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v34 in __yy__v33){if(!__yy__v33.hasOwnProperty(__yy__v34))continue;var __yy__v35=__yy__v33[__yy__v34];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v35.gmlfixturelist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{array_push(gmlfixtures,ds_list_find_value(__yy__v35.gmlfixturelist,gmli));}};array_sort(gmlfixtures,kgml_Script_s_maps_array_sort_week);var gmli=0;for(;yyfless(gmli, array_length(gmlfixtures));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlmap=gmlfixtures[__yy_gml_array_check_index(gmli,gmlfixtures)];if(yyfnotequal(ds_map_find_value(gmlmap,"human_win"),"unplayed")){{gmlwk=real(ds_map_find_value(gmlmap,"week"));if((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear,1)))&&(yyGetBool(yyfless(gmlwk,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular)))){{continue; };};gmlstr_wk=string(gmlwk);if(yyGetBool(gml_Script_s_is_co_mode(__yy__v35,_inst))){{gmlcat=ds_map_find_value(gmlmap,"cat");if(!yyGetBool(is_undefined(gmlcat))){{gmlcat=string_upper(string(gmlcat));if(yyfnotequal(gmlcat,"")){gmlstr_wk=gmlcat;};};};};}else {{if(yyfgreaterequal(gmlwk,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs)){gmlstr_wk="PO";};if(yyfequal(gmlwk,gml_Script_s_get_week_superbowl(__yy__v35,_inst))){gmlstr_wk="RB";};};};ds_list_add(_inst.gmll_week,gmlstr_wk);var gmlpd=0; var gmlopp_map=gml_Script_s_get_team_by_id(__yy__v35,_inst,ds_map_find_value(gmlmap,"home_team"));if(yyfequal(ds_map_find_value(gmlmap,"away_team"),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id)){{ds_list_add(_inst.gmll_team,yyfplus(__yy_gml_errCheck(gml_Script_s_get_human_opponent_sla_prefix(__yy__v35,_inst,"@",gmlwk)),__yy_gml_errCheck(ds_map_find_value(gmlopp_map,"tla"))));gmlpd=yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlmap,"away_score")),__yy_gml_errCheck(ds_map_find_value(gmlmap, "home_score")));};}else {{gmlopp_map=gml_Script_s_get_team_by_id(__yy__v35,_inst,ds_map_find_value(gmlmap,"away_team"));ds_list_add(_inst.gmll_team,yyfplus(__yy_gml_errCheck(gml_Script_s_get_human_opponent_sla_prefix(__yy__v35,_inst,"",gmlwk)),__yy_gml_errCheck(ds_map_find_value(gmlopp_map,"tla"))));gmlpd=yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlmap,"home_score")),__yy_gml_errCheck(ds_map_find_value(gmlmap,"away_score")));};};ds_list_add(_inst.gmll_pd,(yyfgreater(gmlpd,0)?yyfplus("+",__yy_gml_errCheck(string(gmlpd))):string(gmlpd))); ds_list_add(_inst.gmll_of,gml_Script_s_get_team_offense_with_reputation_boost(__yy__v35,_inst,gmlopp_map));ds_list_add(_inst.gmll_df,gml_Script_s_get_team_defense_with_reputation_boost(__yy__v35,_inst,gmlopp_map));gmltof=yyfplus(gmltof,gml_Script_s_get_team_offense_with_reputation_boost(__yy__v35,_inst,gmlopp_map));gmltdf=yyfplus(gmltdf,gml_Script_s_get_team_defense_with_reputation_boost(__yy__v35,_inst,gmlopp_map));ds_list_add(_inst.gmll_score,yyfplus(yyfplus(__yy_gml_errCheck(string(ds_map_find_value(gmlmap, "away_score"))),"-"),__yy_gml_errCheck(string(ds_map_find_value(gmlmap,"home_score")))));_inst.gmltotalpd=yyfplus(_inst.gmltotalpd,gmlpd);var ___sw60___=ds_map_find_value(gmlmap,"human_win");var ___swc61___=-1;if(yyCompareVal(___sw60___,"win",g_GMLMathEpsilon,false)==0){___swc61___=0;}else if(yyCompareVal(___sw60___,"loss",g_GMLMathEpsilon,false)==0){___swc61___=1;}else if(yyCompareVal(___sw60___,"tie",g_GMLMathEpsilon,false)==0){___swc61___=2;}switch(___swc61___){case 0:{ds_list_add(_inst.gmll_result, "W");break;}case 1:{ds_list_add(_inst.gmll_result,"L");break;}case 2:{ds_list_add(_inst.gmll_result,"T");break;}default :{ds_list_add(_inst.gmll_result,"");break;}};if(yyGetBool(ds_map_exists(gmlmap,"difficulty"))){{var gmldif=ds_map_find_value(gmlmap,"difficulty");gmldif=string_replace(gmldif,gml_Script_s_str(__yy__v35,_inst,"ui_Dynamic"),"Dyn");gmldif=string_replace(gmldif,gml_Script_s_str(__yy__v35,_inst,"ui_Easy"),"Easy");gmldif=string_replace(gmldif,gml_Script_s_str(__yy__v35,_inst,"ui_Medium"), "Med");gmldif=string_replace(gmldif,gml_Script_s_str(__yy__v35,_inst,"ui_Hard"),"Hard");gmldif=string_replace(gmldif,gml_Script_s_str(__yy__v35,_inst,"ui_Extreme"),"Extrm");ds_list_add(_inst.gmll_diff,gmldif);};};if(yyGetBool(ds_map_exists(gmlmap,"op_matchlength"))){{var ___sw62___=ds_map_find_value(gmlmap,"op_matchlength");var ___swc63___=-1;if(yyCompareVal(___sw62___,(-1),g_GMLMathEpsilon,false)==0){___swc63___=0;}else if(yyCompareVal(___sw62___,0,g_GMLMathEpsilon,false)==0){___swc63___=1;}else if(yyCompareVal(___sw62___, 1,g_GMLMathEpsilon,false)==0){___swc63___=2;}switch(___swc63___){case 0:{ds_list_add(_inst.gmll_qtr,"1m");break;}case 1:{ds_list_add(_inst.gmll_qtr,"2m");break;}case 2:{ds_list_add(_inst.gmll_qtr,"3m");break;}};};};if(yyGetBool(ds_map_exists(gmlmap,"weather"))){{var ___sw64___=ds_map_find_value(gmlmap,"weather");var ___swc65___=-1;if(yyCompareVal(___sw64___,0,g_GMLMathEpsilon,false)==0){___swc65___=0;}else if(yyCompareVal(___sw64___,1,g_GMLMathEpsilon,false)==0){___swc65___=1;}else if(yyCompareVal(___sw64___, 2,g_GMLMathEpsilon,false)==0){___swc65___=2;}switch(___swc65___){case 0:{ds_list_add(_inst.gmll_weather,"C");break;}case 1:{ds_list_add(_inst.gmll_weather,"R");break;}case 2:{ds_list_add(_inst.gmll_weather,"S");break;}};};};(g_yyPrePostObject__=gmlgamecount,gmlgamecount=(g_yyPrePostObject__ instanceof Long?gmlgamecount.add(1):++gmlgamecount),g_yyPrePostObject__);};};}};_inst.gmltotal_of=gml_Script_s_get_string_float(__yy__v35,_inst,yyfdivide(__yy_gml_errCheck(gmltof),2),1);_inst.gmltotal_df=gml_Script_s_get_string_float(__yy__v35, _inst,yyfdivide(__yy_gml_errCheck(gmltdf),2),1);var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v35.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v35.gmlroster,gmli);if(yyfequal(ds_map_find_value(gmlpmap,"position"),1)){{ds_list_add(_inst.gmll_pname,ds_map_find_value(gmlpmap,"lname"));ds_list_add(_inst.gmll_pos,real(ds_map_find_value(gmlpmap,"position")));ds_list_add(_inst.gmll_games,yyfplus(yyfplus(__yy_gml_errCheck(string(ds_map_find_value(gmlpmap, "season_games"))),"/"),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"career_games")))));ds_list_add(_inst.gmll_attcmp,yyfplus(yyfplus(__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"season_attempts"))),"/"),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"season_complete")))));ds_list_add(_inst.gmll_yards,yyfplus(yyfplus(__yy_gml_errCheck(string(round(ds_map_find_value(gmlpmap,"season_yards")))),"/"),__yy_gml_errCheck(string(round(ds_map_find_value(gmlpmap,"season_rush_yards")))))); ds_list_add(_inst.gmll_tds,yyfplus(yyfplus(__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"season_touchdowns"))),"/"),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"season_rush_touchdowns")))));ds_list_add(_inst.gmll_turn,yyfplus(yyfplus(__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"season_int"))),"/"),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"season_fumbles")))));ds_list_add(_inst.gmll_sacks_avg,string(ds_map_find_value(gmlpmap,"season_sacks")));};};}};var gmli=0;for(;yyfless(gmli, ds_list_size(__yy__v35.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v35.gmlroster,gmli);if(yyfequal(ds_map_find_value(gmlpmap,"position"),2)){{ds_list_add(_inst.gmll_pname,ds_map_find_value(gmlpmap,"lname"));ds_list_add(_inst.gmll_pos,real(ds_map_find_value(gmlpmap,"position")));ds_list_add(_inst.gmll_games,yyfplus(yyfplus(__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"season_games"))), "/"),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"career_games")))));ds_list_add(_inst.gmll_attcmp,yyfplus(yyfplus(__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"season_attempts"))),"/"),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"season_rush_attempts")))));ds_list_add(_inst.gmll_yards,yyfplus(yyfplus(__yy_gml_errCheck(string(round(ds_map_find_value(gmlpmap,"season_yards")))),"/"),__yy_gml_errCheck(string(round(ds_map_find_value(gmlpmap,"season_rush_yards"))))));ds_list_add(_inst.gmll_tds, yyfplus(yyfplus(__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"season_touchdowns"))),"/"),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"season_rush_touchdowns")))));ds_list_add(_inst.gmll_turn,string(ds_map_find_value(gmlpmap,"season_fumbles")));ds_list_add(_inst.gmll_sacks_avg,"");};};}};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v35.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v35.gmlroster, gmli);if((yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"position"),4)))||(yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"position"),3)))){{ds_list_add(_inst.gmll_pname,ds_map_find_value(gmlpmap,"lname"));ds_list_add(_inst.gmll_pos,real(ds_map_find_value(gmlpmap,"position")));ds_list_add(_inst.gmll_games,yyfplus(yyfplus(__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"season_games"))),"/"),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"career_games")))));ds_list_add(_inst.gmll_attcmp,string(ds_map_find_value(gmlpmap, "season_attempts")));ds_list_add(_inst.gmll_yards,string(round(ds_map_find_value(gmlpmap,"season_yards"))));ds_list_add(_inst.gmll_tds,string(ds_map_find_value(gmlpmap,"season_touchdowns")));ds_list_add(_inst.gmll_turn,string(ds_map_find_value(gmlpmap,"season_fumbles")));ds_list_add(_inst.gmll_sacks_avg,gml_Script_s_get_string_float(__yy__v35,_inst,gml_Script_s_get_average_yards(__yy__v35,_inst,gmlpmap,1,false),1));};};}};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v35.gmlroster));(g_yyPrePostObject__=gmli, gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v35.gmlroster,gmli);if(yyfequal(ds_map_find_value(gmlpmap,"position"),5)){{ds_list_add(_inst.gmll_pname,ds_map_find_value(gmlpmap,"lname"));ds_list_add(_inst.gmll_pos,real(ds_map_find_value(gmlpmap,"position")));ds_list_add(_inst.gmll_games,yyfplus(yyfplus(__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"season_games"))),"/"),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap, "career_games")))));ds_list_add(_inst.gmll_attcmp,string(ds_map_find_value(gmlpmap,"season_tackles")));ds_list_add(_inst.gmll_yards,"");ds_list_add(_inst.gmll_tds,"");ds_list_add(_inst.gmll_turn,"");ds_list_add(_inst.gmll_sacks_avg,"");};};}};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v35.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v35.gmlroster,gmli);if(yyGetBool(gml_Script_s_is_defensive_player(__yy__v35, _inst,gmlpmap))){{ds_list_add(_inst.gmll_pname,ds_map_find_value(gmlpmap,"lname"));ds_list_add(_inst.gmll_pos,real(ds_map_find_value(gmlpmap,"position")));ds_list_add(_inst.gmll_games,yyfplus(yyfplus(__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"season_games"))),"/"),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"career_games")))));ds_list_add(_inst.gmll_attcmp,string(ds_map_find_value(gmlpmap,"season_tackles")));ds_list_add(_inst.gmll_yards,string(round(ds_map_find_value(gmlpmap,"season_sacks")))); ds_list_add(_inst.gmll_tds,string(ds_map_find_value(gmlpmap,"season_int")));ds_list_add(_inst.gmll_turn,string(ds_map_find_value(gmlpmap,"season_fumbles")));ds_list_add(_inst.gmll_sacks_avg,"");};};}};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v35.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v35.gmlroster,gmli);if(yyfequal(ds_map_find_value(gmlpmap,"position"),10)){{ds_list_add(_inst.gmll_pname, ds_map_find_value(gmlpmap,"lname"));ds_list_add(_inst.gmll_pos,real(ds_map_find_value(gmlpmap,"position")));ds_list_add(_inst.gmll_games,yyfplus(yyfplus(__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"season_games"))),"/"),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"career_games")))));ds_list_add(_inst.gmll_attcmp,yyfplus(yyfplus(__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"season_attempts"))),"/"),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"season_complete")))));ds_list_add(_inst.gmll_yards, string(round(ds_map_find_value(gmlpmap,"season_yards"))));ds_list_add(_inst.gmll_tds,"");ds_list_add(_inst.gmll_turn,"");ds_list_add(_inst.gmll_sacks_avg,"");};};}};}}};{var __yy__v36=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v37 in __yy__v36){if(!__yy__v36.hasOwnProperty(__yy__v37))continue;var __yy__v38=__yy__v36[__yy__v37];{var gmlnum_restarts=max(0,yyfminus(__yy_gml_errCheck(__yy__v38.gmlgamestarts),__yy_gml_errCheck(gmlgamecount)));yyInst(_inst,_other,100652).gmltext=yyfplus("Restarts:", __yy_gml_errCheck(string(gmlnum_restarts)));yyInst(_inst,_other,100652).gmltext=yyfplus(yyInst(_inst,_other,100652).gmltext,yyfplus(" CCs:",__yy_gml_errCheck(string(__yy__v38.gmlseason_credits_purchased))));yyInst(_inst,_other,100652).visible=false;}}};var gmltyp="Html5";if(!yyGetBool(global.gmlbrowser)){{var ___sw66___=g_pBuiltIn.get_os_type();var ___swc67___=-1;if(yyCompareVal(___sw66___,0,g_GMLMathEpsilon,false)==0){___swc67___=0;}else if(yyCompareVal(___sw66___,4,g_GMLMathEpsilon,false)==0){___swc67___=1; }else if(yyCompareVal(___sw66___,1,g_GMLMathEpsilon,false)==0){___swc67___=2;}else if(yyCompareVal(___sw66___,3,g_GMLMathEpsilon,false)==0){___swc67___=3;}else if(yyCompareVal(___sw66___,21,g_GMLMathEpsilon,false)==0){___swc67___=4;}switch(___swc67___){case 0:{gmltyp="Windows";break;}case 1:{gmltyp="Android";break;}case 2:{gmltyp="MacOS";break;}case 3:{gmltyp="iOS";break;}case 4:{gmltyp="Switch";break;}};};};{};yyInst(_inst,_other,100653).gmltext=yyfplus(yyfplus(__yy_gml_errCheck(gmltyp)," v"),__yy_gml_errCheck(gml_Script_s_get_gm_version(_inst, _other)));if(yyGetBool(global.gmlpoki)){yyInst(_inst,_other,100653).gmltext=yyfplus(yyInst(_inst,_other,100653).gmltext," Poki");};yyInst(_inst,_other,100653).gmltext=yyfplus(yyInst(_inst,_other,100653).gmltext,gml_Script_s_cap_breach_str(_inst,_other));yyInst(_inst,_other,100653).visible=false;if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{yyInst(_inst,_other,100656).visible=false;_inst.gmltally_rc_earned=instance_create_layer(120,232,"Instances",YYASSET_REF(0x00000043),__yy_gml_object_create(_inst, (_inst.gml___struct___44=__yy_method(_inst,gml_Script____struct___44_s_obj_season_tally_create_gml_GlobalScript_season_tally_scripts)),yyfplus(yyfplus("$",__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrc_season_earned))),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"sla_Thousand"))),gml_Script_s_str(_inst,_other,"ui_Received")));_inst.gmltally_rc_spent=instance_create_layer(224,232,"Instances",YYASSET_REF(0x00000043),__yy_gml_object_create(_inst,(_inst.gml___struct___45=__yy_method(_inst, gml_Script____struct___45_s_obj_season_tally_create_gml_GlobalScript_season_tally_scripts)),yyfplus(yyfplus("$",__yy_gml_errCheck(string(__yy_gml_errCheck(-__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrc_season_spent))))),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"sla_Thousand"))),gml_Script_s_str(_inst,_other,"ui_Spent")));};};}}function gml_Script_s_maps_array_sort_week(_inst,_other,argument0,argument1){{return yyfminus(__yy_gml_errCheck(real(ds_map_find_value(argument0, "week"))),__yy_gml_errCheck(real(ds_map_find_value(argument1,"week"))));}}function gml_Script_s_get_human_opponent_sla_prefix(_inst,_other,argument0,argument1){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){return argument0;};var gmlfix=gml_Script_s_get_player_schedule_fixture_by_week(_inst,_other,argument1);if(yyGetBool(gml_Script_s_is_co_bowl_fix(_inst,_other,gmlfix))){return "n";};return argument0;}}function gml_Script_s_obj_season_tally_step(_inst,_other){{yyInst(_inst,_other,100661).visible=true; yyInst(_inst,_other,100660).visible=true;var ___sw68___=_inst.gmlpage;var ___swc69___=-1;if(yyCompareVal(___sw68___,1,g_GMLMathEpsilon,false)==0){___swc69___=0;}else if(yyCompareVal(___sw68___,2,g_GMLMathEpsilon,false)==0){___swc69___=1;}switch(___swc69___){case 0:{yyInst(_inst,_other,100661).visible=false;break;}case 1:{yyInst(_inst,_other,100660).visible=false;break;}};}}function gml_Script_s_obj_season_tally_draw_gui(_inst,_other){{}}function gml_Script_s_obj_season_tally_draw_gui_begin(_inst,_other){ {var gmltx=yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5);var gmlty=yyftime(__yy_gml_errCheck(display_get_gui_height()),0.5);var gmlscore_alf=1;if((yyGetBool((yyGetBool(!yyGetBool(global.gmlgamepad)))&&(yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other)))&&(yyGetBool(mouse_check_button(1)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_x(),100)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_y(),100)))))||(yyGetBool((yyGetBool(global.gmlgamepad))&&(yyGetBool(gamepad_button_check(yyInst(_inst,_other, global.gmlgp).gmlslot,32771)))&&(yyGetBool(gamepad_button_check(yyInst(_inst,_other,global.gmlgp).gmlslot,32772)))))){{yyInst(_inst,_other,100652).visible=true;yyInst(_inst,_other,100653).visible=true;draw_sprite_ext(_inst,YYASSET_REF(0x010000BF),0,gmltx,gmlty,_inst.gmlsclx,_inst.gmlscly,_inst.gmlrot,_inst.gmlwatcol,1);gmlscore_alf=0.5;if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{yyInst(_inst,_other,_inst.gmltally_rc_earned).gmltext=yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("$",__yy_gml_errCheck(string(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlrc_season_earned))),"("),__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrc_lifetime_earned))),")"),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"sla_Thousand")));yyInst(_inst,_other,_inst.gmltally_rc_spent).gmltext=yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("$",__yy_gml_errCheck(string(__yy_gml_errCheck(-__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrc_season_spent))))),"("),__yy_gml_errCheck(string(__yy_gml_errCheck(-__yy_gml_errCheck(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlrc_lifetime_spent))))),")"),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"sla_Thousand")));};};};}else {{yyInst(_inst,_other,100652).visible=false;yyInst(_inst,_other,100653).visible=false;if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{yyInst(_inst,_other,_inst.gmltally_rc_earned).gmltext=yyfplus(yyfplus("$",__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrc_season_earned))),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"sla_Thousand"))); yyInst(_inst,_other,_inst.gmltally_rc_spent).gmltext=yyfplus(yyfplus("$",__yy_gml_errCheck(string(__yy_gml_errCheck(-__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrc_season_spent))))),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"sla_Thousand")));};};};};draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);draw_set_alpha(1);var gmltab=46;gmltx=46;gmlty=24;var gmlspc=8.5;if(yyfless(ds_list_size(_inst.gmll_week),21)){gmlspc=9;};if(yyfless(ds_list_size(_inst.gmll_week),18)){ gmlspc=10;};if(yyfless(ds_list_size(_inst.gmll_week),16)){gmlspc=12;};var ___sw70___=_inst.gmlpage;var ___swc71___=-1;if(yyCompareVal(___sw70___,1,g_GMLMathEpsilon,false)==0){___swc71___=0;}else if(yyCompareVal(___sw70___,2,g_GMLMathEpsilon,false)==0){___swc71___=1;}switch(___swc71___){case 0:{gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,gml_Script_s_str(_inst,_other,"tla_Week"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),1),yyfminus(__yy_gml_errCheck(gmlty), 1),gml_Script_s_str(_inst,_other,"tla_Week"),16777215,16777215,16777215,16777215,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(yyfminus(__yy_gml_errCheck(gmltx),6),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),1))),gmlty,gml_Script_s_str(_inst,_other,"ui_Team"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(yyfminus(__yy_gml_errCheck(gmltx),5),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),1))),yyfminus(__yy_gml_errCheck(gmlty),1),gml_Script_s_str(_inst,_other,"ui_Team"), 16777215,16777215,16777215,16777215,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),2))),gmlty,gml_Script_s_str(_inst,_other,"tla_Offense"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),1),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),2))),yyfminus(__yy_gml_errCheck(gmlty),1),gml_Script_s_str(_inst,_other,"tla_Offense"),16777215,16777215,16777215,16777215,1);gml_Script_draw_hd_text_color(_inst, _other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),3))),gmlty,gml_Script_s_str(_inst,_other,"tla_Defense"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),1),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),3))),yyfminus(__yy_gml_errCheck(gmlty),1),gml_Script_s_str(_inst,_other,"tla_Defense"),16777215,16777215,16777215,16777215,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx), 6),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),4))),gmlty,gml_Script_s_str(_inst,_other,"tla_Score"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),7),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),4))),yyfminus(__yy_gml_errCheck(gmlty),1),gml_Script_s_str(_inst,_other,"tla_Score"),16777215,16777215,16777215,16777215,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),4),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab), 5))),gmlty,gml_Script_s_str(_inst,_other,"short_PointDiff"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),5),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),5))),yyfminus(__yy_gml_errCheck(gmlty),1),gml_Script_s_str(_inst,_other,"short_PointDiff"),16777215,16777215,16777215,16777215,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),4),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),6))),gmlty,gml_Script_s_str(_inst, _other,"short_Difficulty"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),5),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),6))),yyfminus(__yy_gml_errCheck(gmlty),1),gml_Script_s_str(_inst,_other,"short_Difficulty"),16777215,16777215,16777215,16777215,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),6),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),7))),gmlty,gml_Script_s_str(_inst,_other,"short_QtrLength"), 0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),7),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),7))),yyfminus(__yy_gml_errCheck(gmlty),1),gml_Script_s_str(_inst,_other,"short_QtrLength"),16777215,16777215,16777215,16777215,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),8))),gmlty,gml_Script_s_str(_inst,_other,"short_Weather"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst, _other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),1),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),8))),yyfminus(__yy_gml_errCheck(gmlty),1),gml_Script_s_str(_inst,_other,"short_Weather"),16777215,16777215,16777215,16777215,1);var gmli=0;for(;yyfless(gmli,ds_list_size(_inst.gmll_week));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlty=yyfplus(gmlty,gmlspc);draw_set_alpha(1);if(yyGetBool(string_count("@",ds_list_find_value(_inst.gmll_team, gmli)))){draw_set_alpha(0.7);};draw_set_color(16777215);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,ds_list_find_value(_inst.gmll_week,gmli));gml_Script_draw_hd_text(_inst,_other,yyfplus(yyfminus(__yy_gml_errCheck(gmltx),6),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),1))),gmlty,ds_list_find_value(_inst.gmll_team,gmli));draw_set_alpha(1);draw_set_color(16777215);if(!yyGetBool(yyInst(_inst,_other,100652).visible)){{draw_sprite_ext(_inst,YYASSET_REF(0x01000076),real(ds_list_find_value(_inst.gmll_of, gmli)),yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),2))),gmlty,1,1,0,global.gmlc_offense,1);draw_sprite_ext(_inst,YYASSET_REF(0x01000076),real(ds_list_find_value(_inst.gmll_df,gmli)),yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),3))),gmlty,1,1,0,global.gmlc_defense,1);};}else {{gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),2))),gmlty,gml_Script_s_get_string_float(_inst, _other,yyfdivide(__yy_gml_errCheck(ds_list_find_value(_inst.gmll_of,gmli)),2),1),global.gmlc_offense,global.gmlc_offense,global.gmlc_offense,global.gmlc_offense,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),3))),gmlty,gml_Script_s_get_string_float(_inst,_other,yyfdivide(__yy_gml_errCheck(ds_list_find_value(_inst.gmll_df,gmli)),2),1),global.gmlc_defense,global.gmlc_defense,global.gmlc_defense,global.gmlc_defense, 1);};};gml_Script_draw_hd_text_color(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),6),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),4))),gmlty,ds_list_find_value(_inst.gmll_score,gmli),16777215,16777215,16777215,16777215,gmlscore_alf);var ___sw72___=ds_list_find_value(_inst.gmll_result,gmli);var ___swc73___=-1;if(yyCompareVal(___sw72___,"W",g_GMLMathEpsilon,false)==0){___swc73___=0;}else if(yyCompareVal(___sw72___,"L",g_GMLMathEpsilon,false)==0){___swc73___=1;}switch(___swc73___){case 0:{ gml_Script_draw_hd_text_color(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),4),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),5))),gmlty,ds_list_find_value(_inst.gmll_pd,gmli),65280,65280,65280,65280,1);break;}case 1:{gml_Script_draw_hd_text_color(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),4),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),5))),gmlty,ds_list_find_value(_inst.gmll_pd,gmli),255,255,255,255,1);break;}default :{gml_Script_draw_hd_text_color(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx), 4),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),5))),gmlty,ds_list_find_value(_inst.gmll_pd,gmli),16777215,16777215,16777215,16777215,1);break;}};if(!yyGetBool(is_undefined(ds_list_find_value(_inst.gmll_diff,gmli)))){gml_Script_draw_hd_text(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),6),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),6))),gmlty,ds_list_find_value(_inst.gmll_diff,gmli));};if(!yyGetBool(is_undefined(ds_list_find_value(_inst.gmll_qtr,gmli)))){gml_Script_draw_hd_text(_inst, _other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),6),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),7))),gmlty,ds_list_find_value(_inst.gmll_qtr,gmli));};if(!yyGetBool(is_undefined(ds_list_find_value(_inst.gmll_weather,gmli)))){{var ___sw74___=ds_list_find_value(_inst.gmll_weather,gmli);var ___swc75___=-1;if(yyCompareVal(___sw74___,"R",g_GMLMathEpsilon,false)==0){___swc75___=0;}else if(yyCompareVal(___sw74___,"S",g_GMLMathEpsilon,false)==0){___swc75___=1;}switch(___swc75___){case 0:{draw_sprite(_inst, YYASSET_REF(0x010000B4),1,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),8))),gmlty);break;}case 1:{draw_sprite(_inst,YYASSET_REF(0x010000B4),2,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),8))),gmlty);break;}default :{draw_sprite(_inst,YYASSET_REF(0x010000B4),0,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),8))),gmlty);break;}};};}else {draw_sprite(_inst,YYASSET_REF(0x010000B4),0,yyfplus(__yy_gml_errCheck(gmltx), __yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),8))),gmlty);};if(yyfequal(gmli,yyfminus(__yy_gml_errCheck(ds_list_size(_inst.gmll_pd)),1))){{gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),2))),yyfplus(__yy_gml_errCheck(gmlty),12),_inst.gmltotal_of,0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),1),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),2))),yyfplus(__yy_gml_errCheck(gmlty), 11),_inst.gmltotal_of,global.gmlc_offense,global.gmlc_offense,global.gmlc_offense,global.gmlc_offense,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),3))),yyfplus(__yy_gml_errCheck(gmlty),12),_inst.gmltotal_df,0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),1),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),3))),yyfplus(__yy_gml_errCheck(gmlty),11),_inst.gmltotal_df, global.gmlc_defense,global.gmlc_defense,global.gmlc_defense,global.gmlc_defense,1);var gmlstr_pd=(yyfgreater(_inst.gmltotalpd,0)?yyfplus("+",__yy_gml_errCheck(string(_inst.gmltotalpd))):string(_inst.gmltotalpd));gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),5))),yyfplus(__yy_gml_errCheck(gmlty),12),gmlstr_pd,0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),1),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab), 5))),yyfplus(__yy_gml_errCheck(gmlty),11),gmlstr_pd,16777215,16777215,16777215,16777215,1);};};}};break;}case 1:{gmltab=50;gmlspc=8.5;gmlty=yyfminus(gmlty,yyftime(__yy_gml_errCheck(gmlspc),2));var gmldone_qb=false;var gmldone_rb=false;var gmldone_rec=false;var gmldone_ol=false;var gmldone_kk=false;var gmldone_def=false;var gmli=0;for(;yyfless(gmli,ds_list_size(_inst.gmll_pos));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var ___sw76___=ds_list_find_value(_inst.gmll_pos, gmli);var ___swc77___=-1;if(yyCompareVal(___sw76___,1,g_GMLMathEpsilon,false)==0){___swc77___=0;}else if(yyCompareVal(___sw76___,2,g_GMLMathEpsilon,false)==0){___swc77___=1;}else if(yyCompareVal(___sw76___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw76___,4,g_GMLMathEpsilon,false)==0){___swc77___=2;}else if(yyCompareVal(___sw76___,5,g_GMLMathEpsilon,false)==0){___swc77___=3;}else if(yyCompareVal(___sw76___,10,g_GMLMathEpsilon,false)==0){___swc77___=4;}switch(___swc77___){case 0:{if(!yyGetBool(gmldone_qb)){ {gmlty=yyfplus(gmlty,yyfplus(__yy_gml_errCheck(gmlspc),__yy_gml_errCheck(gmlspc)));gml_Script_s_draw_season_tally_header(_inst,_other,1,gmltx,gmlty,gmltab);gmldone_qb=true;};};break;}case 1:{if(!yyGetBool(gmldone_rb)){{gmlty=yyfplus(gmlty,yyfplus(__yy_gml_errCheck(gmlspc),__yy_gml_errCheck(gmlspc)));gml_Script_s_draw_season_tally_header(_inst,_other,2,gmltx,gmlty,gmltab);gmldone_rb=true;};};break;}case 2:{if(!yyGetBool(gmldone_rec)){{gmlty=yyfplus(gmlty,yyfplus(__yy_gml_errCheck(gmlspc),__yy_gml_errCheck(gmlspc))); gml_Script_s_draw_season_tally_header(_inst,_other,3,gmltx,gmlty,gmltab);gmldone_rec=true;};};break;}case 3:{if(!yyGetBool(gmldone_ol)){{gmlty=yyfplus(gmlty,yyfplus(__yy_gml_errCheck(gmlspc),__yy_gml_errCheck(gmlspc)));gml_Script_s_draw_season_tally_header(_inst,_other,5,gmltx,gmlty,gmltab);gmldone_ol=true;};};break;}case 4:{if(!yyGetBool(gmldone_kk)){{gmlty=yyfplus(gmlty,yyfplus(__yy_gml_errCheck(gmlspc),__yy_gml_errCheck(gmlspc)));gml_Script_s_draw_season_tally_header(_inst,_other,10,gmltx,gmlty, gmltab);gmldone_kk=true;};};break;}default :{if(!yyGetBool(gmldone_def)){{gmlty=yyfplus(gmlty,yyfplus(__yy_gml_errCheck(gmlspc),__yy_gml_errCheck(gmlspc)));gml_Script_s_draw_season_tally_header(_inst,_other,6,gmltx,gmlty,gmltab);gmldone_def=true;};};break;}};gmlty=yyfplus(gmlty,gmlspc);draw_set_alpha(1);draw_set_color(16777215);draw_set_halign(0);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),21),gmlty,ds_list_find_value(_inst.gmll_pname,gmli));draw_set_halign(1);var gmlcol=gml_Script_s_get_position_colour(_inst, _other,ds_list_find_value(_inst.gmll_pos,gmli));gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),4),gmlty,gml_Script_s_get_string_position(_inst,_other,ds_list_find_value(_inst.gmll_pos,gmli)),gmlcol,gmlcol,gmlcol,gmlcol,1);gml_Script_draw_hd_text(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),8),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),2))),gmlty,ds_list_find_value(_inst.gmll_games,gmli));gml_Script_draw_hd_text(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx), 10),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),3))),gmlty,ds_list_find_value(_inst.gmll_attcmp,gmli));gml_Script_draw_hd_text(_inst,_other,yyfplus(yyfminus(__yy_gml_errCheck(gmltx),6),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),4.5))),gmlty,ds_list_find_value(_inst.gmll_yards,gmli));gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),5.5))),gmlty,ds_list_find_value(_inst.gmll_tds,gmli));gml_Script_draw_hd_text(_inst, _other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),6.5))),gmlty,ds_list_find_value(_inst.gmll_turn,gmli));gml_Script_draw_hd_text(_inst,_other,yyfplus(yyfminus(__yy_gml_errCheck(gmltx),4),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltab),7.5))),gmlty,ds_list_find_value(_inst.gmll_sacks_avg,gmli));}};break;}};draw_set_color(16777215);draw_set_alpha(1);}}function gml_Script_s_draw_season_tally_header(_inst,_other,argument0,argument1,argument2,argument3){{var gmlcolx_1=yyfplus(__yy_gml_errCheck(argument1), 20);var gmlcolx_2=yyfplus(__yy_gml_errCheck(argument1),4);var gmlcolx_3=yyfplus(yyfplus(__yy_gml_errCheck(argument1),8),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(argument3),2)));var gmlcolx_4=yyfplus(yyfplus(__yy_gml_errCheck(argument1),10),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(argument3),3)));var gmlcolx_5=yyfplus(yyfminus(__yy_gml_errCheck(argument1),6),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(argument3),4.5)));var gmlcolx_6=yyfplus(__yy_gml_errCheck(argument1),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(argument3), 5.5)));var gmlcolx_7=yyfplus(__yy_gml_errCheck(argument1),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(argument3),6.5)));var gmlcolx_8=yyfplus(yyfminus(__yy_gml_errCheck(argument1),4),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(argument3),7.5)));draw_set_halign(0);gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_1,argument2,gml_Script_s_str(_inst,_other,"ui_Name"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmlcolx_1),1),yyfminus(__yy_gml_errCheck(argument2),1), gml_Script_s_str(_inst,_other,"ui_Name"),16777215,16777215,16777215,16777215,1);draw_set_halign(1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(argument1),4),argument2,gml_Script_s_str(_inst,_other,"tla_Position"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(argument1),5),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"tla_Position"),16777215,16777215,16777215,16777215,1);gml_Script_draw_hd_text_color(_inst,_other, gmlcolx_3,argument2,gml_Script_s_str(_inst,_other,"short_GamesCareer"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmlcolx_3),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"short_GamesCareer"),16777215,16777215,16777215,16777215,1);var ___sw78___=argument0;var ___swc79___=-1;if(yyCompareVal(___sw78___,1,g_GMLMathEpsilon,false)==0){___swc79___=0;}else if(yyCompareVal(___sw78___,2,g_GMLMathEpsilon,false)==0){___swc79___=1;}else if(yyCompareVal(___sw78___, 3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw78___,4,g_GMLMathEpsilon,false)==0){___swc79___=2;}else if(yyCompareVal(___sw78___,5,g_GMLMathEpsilon,false)==0){___swc79___=3;}else if(yyCompareVal(___sw78___,10,g_GMLMathEpsilon,false)==0){___swc79___=4;}else if(yyCompareVal(___sw78___,6,g_GMLMathEpsilon,false)==0){___swc79___=5;}switch(___swc79___){case 0:{gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_4,argument2,gml_Script_s_str(_inst,_other,"short_AttemptsComplete"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst, _other,yyfplus(__yy_gml_errCheck(gmlcolx_4),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"short_AttemptsComplete"),16777215,16777215,16777215,16777215,1);gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_5,argument2,gml_Script_s_str(_inst,_other,"short_YardsRush"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmlcolx_5),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"short_YardsRush"),16777215,16777215,16777215, 16777215,1);gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_6,argument2,gml_Script_s_str(_inst,_other,"short_TdsRush"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmlcolx_6),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"short_TdsRush"),16777215,16777215,16777215,16777215,1);gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_7,argument2,gml_Script_s_str(_inst,_other,"short_Turnovers"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst, _other,yyfplus(__yy_gml_errCheck(gmlcolx_7),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"short_Turnovers"),16777215,16777215,16777215,16777215,1);gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_8,argument2,gml_Script_s_str(_inst,_other,"short_Sacks"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmlcolx_8),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"short_Sacks"),16777215,16777215,16777215,16777215, 1);break;}case 1:{gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_4,argument2,gml_Script_s_str(_inst,_other,"short_RecepCarries"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmlcolx_4),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"short_RecepCarries"),16777215,16777215,16777215,16777215,1);gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_5,argument2,gml_Script_s_str(_inst,_other,"short_YardsRush"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst, _other,yyfplus(__yy_gml_errCheck(gmlcolx_5),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"short_YardsRush"),16777215,16777215,16777215,16777215,1);gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_6,argument2,gml_Script_s_str(_inst,_other,"short_TdsRush"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmlcolx_6),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"short_TdsRush"),16777215,16777215,16777215,16777215, 1);gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_7,argument2,gml_Script_s_str(_inst,_other,"short_Fumbles"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmlcolx_7),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"short_Fumbles"),16777215,16777215,16777215,16777215,1);break;}case 2:{gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_4,argument2,gml_Script_s_str(_inst,_other,"short_Receptions"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst, _other,yyfplus(__yy_gml_errCheck(gmlcolx_4),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"short_Receptions"),16777215,16777215,16777215,16777215,1);gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_5,argument2,gml_Script_s_str(_inst,_other,"tla_Yards"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmlcolx_5),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"tla_Yards"),16777215,16777215,16777215,16777215,1); gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_6,argument2,gml_Script_s_str(_inst,_other,"short_Touchdowns"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmlcolx_6),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"short_Touchdowns"),16777215,16777215,16777215,16777215,1);gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_7,argument2,gml_Script_s_str(_inst,_other,"short_Fumbles"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other, yyfplus(__yy_gml_errCheck(gmlcolx_7),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"short_Fumbles"),16777215,16777215,16777215,16777215,1);gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_8,argument2,gml_Script_s_str(_inst,_other,"short_Average"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmlcolx_8),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"short_Average"),16777215,16777215,16777215,16777215,1);break; }case 3:{gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_4,argument2,gml_Script_s_str(_inst,_other,"short_Blocks"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmlcolx_4),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"short_Blocks"),16777215,16777215,16777215,16777215,1);break;}case 4:{gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_4,argument2,gml_Script_s_str(_inst,_other,"short_AttemptsComplete"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst, _other,yyfplus(__yy_gml_errCheck(gmlcolx_4),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"short_AttemptsComplete"),16777215,16777215,16777215,16777215,1);gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_5,argument2,gml_Script_s_str(_inst,_other,"tla_Yards"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmlcolx_5),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"tla_Yards"),16777215,16777215,16777215,16777215, 1);break;}case 5:{gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_4,argument2,gml_Script_s_str(_inst,_other,"short_Tackles"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmlcolx_4),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"short_Tackles"),16777215,16777215,16777215,16777215,1);gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_5,argument2,gml_Script_s_str(_inst,_other,"short_Sacks"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst, _other,yyfplus(__yy_gml_errCheck(gmlcolx_5),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"short_Sacks"),16777215,16777215,16777215,16777215,1);gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_6,argument2,gml_Script_s_str(_inst,_other,"short_Interceptions"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmlcolx_6),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"short_Interceptions"),16777215,16777215,16777215, 16777215,1);gml_Script_draw_hd_text_color(_inst,_other,gmlcolx_7,argument2,gml_Script_s_str(_inst,_other,"short_ForcedFumbles"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmlcolx_7),1),yyfminus(__yy_gml_errCheck(argument2),1),gml_Script_s_str(_inst,_other,"short_ForcedFumbles"),16777215,16777215,16777215,16777215,1);break;}};}}function gml_GlobalScript_s_choose_mode_hc(_inst,_other){(_inst.gmls_choose_mode_HC=__yy_method(_inst,gml_Script_s_choose_mode_HC));(_inst.gmls_choose_mode_QB=__yy_method(_inst, gml_Script_s_choose_mode_QB));(_inst.gmls_choose_mode_CO_loading=__yy_method(_inst,gml_Script_s_choose_mode_CO_loading));(_inst.gmls_choose_mode_CO=__yy_method(_inst,gml_Script_s_choose_mode_CO));(_inst.gmls_setup_for_mode_CO=__yy_method(_inst,gml_Script_s_setup_for_mode_CO));(_inst.gmls_update_details_screen=__yy_method(_inst,gml_Script_s_update_details_screen));}function gml_Script_s_choose_mode_HC(_inst,_other){{gml_Script_slog(_inst,_other,"s_choose_mode_HC");yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfr_mode=1; yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode=0;yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlco_mode=0;gml_Script_s_msg_clear(_inst,_other);gml_Script_s_update_ui_colours(_inst,_other);gml_Script_btn_click_GenerateCharacter(_inst,_other);gml_Script_s_set_up_purchase_ids(_inst,_other);}}function gml_Script_s_choose_mode_QB(_inst,_other){{gml_Script_slog(_inst,_other,"s_choose_mode_QB");yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfr_mode=0;yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode=1; yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlco_mode=0;gml_Script_s_msg_clear(_inst,_other);gml_Script_s_update_ui_colours(_inst,_other);gml_Script_s_refresh_strings(_inst,_other);gml_Script_btn_click_GenerateCharacter(_inst,_other);gml_Script_s_set_up_purchase_ids(_inst,_other);}}function gml_Script_s_choose_mode_CO_loading(_inst,_other){{gml_Script_s_loading_start(_inst,_other,kgml_Script_s_choose_mode_CO);}}function gml_Script_s_choose_mode_CO(_inst,_other){{gml_Script_slog(_inst,_other,"s_choose_mode_CO"); gml_Script_s_msg_clear(_inst,_other);gml_Script_s_setup_for_mode_CO(_inst,_other);gml_Script_s_regen_clean_save_mode_dependent_data(_inst,_other);gml_Script_btn_click_GenerateCharacter(_inst,_other);}}function gml_Script_s_setup_for_mode_CO(_inst,_other){{{var __yy__v39=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v40 in __yy__v39){if(!__yy__v39.hasOwnProperty(__yy__v40))continue;var __yy__v41=__yy__v39[__yy__v40];{__yy__v41.gmlfr_mode=0;__yy__v41.gmlqb_mode=0;__yy__v41.gmlco_mode=1;gml_Script_slog(__yy__v41, _inst,"s_setup_for_mode_CO: loading conferences");__yy__v41.gmlconferences=gml_Script_load_data_to_struct_array(__yy__v41,_inst,gml_Script_s_get_versioned_path(__yy__v41,_inst,"Conferences_CO.txt"));__yy__v41.gmlcompetitions=gml_Script_load_data_to_struct_array(__yy__v41,_inst,gml_Script_s_get_versioned_path(__yy__v41,_inst,"Competitions_CO.txt"));__yy__v41.gmleditor=gml_Script_s_load_json(__yy__v41,_inst,"Editor.json");__yy__v41.gmlcustom_data=gml_Script_s_custom_data_load(__yy__v41,_inst);gml_Script_s_custom_data_patch(__yy__v41, _inst);__yy__v41.gmlrounds=gml_Script_load_data_to_struct_array(__yy__v41,_inst,gml_Script_s_get_versioned_path(__yy__v41,_inst,"Rounds_CO.txt"));gml_Script_s_reset_team_selections(__yy__v41,_inst,true);gml_Script_s_reset_competitions_and_subdivisions_pools_and_rankings(__yy__v41,_inst);}}};gml_Script_s_update_ui_colours(_inst,_other);gml_Script_s_refresh_strings(_inst,_other);gml_Script_s_load_co_mode_files(_inst,_other);gml_Script_s_set_up_purchase_ids(_inst,_other);}}function gml_Script_s_update_details_screen(_inst, _other){{if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode,1)){{yyInst(_inst,_other,100035).visible=true;yyInst(_inst,_other,100036).visible=true;yyInst(_inst,_other,100036).gmlcoach_heads=false;yyInst(_inst,_other,100037).visible=false;yyInst(_inst,_other,100038).visible=true;yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlface_type_coach=yyInst(_inst,_other,100036).gmlcoach_heads;return;};};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{yyInst(_inst,_other,100035).visible=true; yyInst(_inst,_other,100036).visible=true;yyInst(_inst,_other,100036).gmlcoach_heads=true;yyInst(_inst,_other,100037).visible=false;yyInst(_inst,_other,100038).visible=true;if(yyGetBool(gml_Script_s_is_debug_desktop(_inst,_other))){{yyInst(_inst,_other,100037).visible=true;yyInst(_inst,_other,100038).visible=false;};};yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlface_type_coach=yyInst(_inst,_other,100036).gmlcoach_heads;return;};};if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfr_mode, 1)){{yyInst(_inst,_other,100035).visible=true;yyInst(_inst,_other,100036).visible=true;yyInst(_inst,_other,100036).gmlcoach_heads=true;yyInst(_inst,_other,100037).visible=true;yyInst(_inst,_other,100038).visible=false;yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlface_type_coach=yyInst(_inst,_other,100036).gmlcoach_heads;return;};};}}function gml_GlobalScript_s_benched(_inst,_other){(_inst.gmls_player_benched=__yy_method(_inst,gml_Script_s_player_benched));}function gml_Script_s_player_benched(_inst, _other,argument0){{if(yyGetBool(ds_map_find_value(argument0,"resting"))){{return true;};};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{if(yyGetBool(ds_map_find_value(argument0,"suspended"))){{return true;};};};};return false;}}function gml_GlobalScript_s_cpu_is_kicking(_inst,_other){(_inst.gmls_cpu_is_kicking_off=__yy_method(_inst,gml_Script_s_cpu_is_kicking_off));(_inst.gmls_is_kickoff=__yy_method(_inst,gml_Script_s_is_kickoff));}function gml_Script_s_cpu_is_kicking_off(_inst,_other){{if(yyfequal(yyInst(_inst, _other,YYASSET_REF(0x00000069)).gmlkicking,3)){return true;};}}function gml_Script_s_is_kickoff(_inst,_other,argument0){{if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice)){return false;};if((yyGetBool(argument0))&&(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldown,99)))){return true;};if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlkicking,3)){return true;}else {return false;};}}function gml_GlobalScript_s_college_edit_competition(_inst,_other){ (_inst.gmls_rm_edit_competition_init=__yy_method(_inst,gml_Script_s_rm_edit_competition_init));(_inst.gmls_btn_edit_comp_confirm=__yy_method(_inst,gml_Script_s_btn_edit_comp_confirm));(_inst.gmls_btn_edit_comp_cancel=__yy_method(_inst,gml_Script_s_btn_edit_comp_cancel));(_inst.gmls_editor_create_competition_fields=__yy_method(_inst,gml_Script_s_editor_create_competition_fields));(_inst.gmls_editor_create_text_field=__yy_method(_inst,gml_Script_s_editor_create_text_field));(_inst.gmls_editor_create_partial_text_field=__yy_method(_inst, gml_Script_s_editor_create_partial_text_field));(_inst.gmls_editor_create_location_field=__yy_method(_inst,gml_Script_s_editor_create_location_field));(_inst.gmls_editor_create_field_label=__yy_method(_inst,gml_Script_s_editor_create_field_label));(_inst.gmls_ui_field_label_draw_gui=__yy_method(_inst,gml_Script_s_ui_field_label_draw_gui));(_inst.gmls_editor_field_validate=__yy_method(_inst,gml_Script_s_editor_field_validate));(_inst.gmls_editor_location_is_neutral=__yy_method(_inst,gml_Script_s_editor_location_is_neutral)); (_inst.gmls_editor_location_toggle_neutral_state=__yy_method(_inst,gml_Script_s_editor_location_toggle_neutral_state));(_inst.gmls_get_editor_mode_data=__yy_method(_inst,gml_Script_s_get_editor_mode_data));}function gml_Script____struct___46_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___46_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition";}if(gml_Script____struct___46_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition.prototype.__type===undefined){ gml_Script____struct___46_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition.prototype.__type="gml_Script____struct___46_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___46_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltag="ed";_inst.gmlmode="subdiv";_inst.gmluid=$$args[__yy_gml_array_check_index(2+(0), $$args)];}}}}function gml_Script____struct___47_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___47_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition";}if(gml_Script____struct___47_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition.prototype.__type===undefined){gml_Script____struct___47_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition.prototype.__type="gml_Script____struct___47_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___47_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltag="ed";_inst.gmlmode="conf";_inst.gmlconf=$$args[__yy_gml_array_check_index(2+(0),$$args)];}}}}function gml_Script____struct___48_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___48_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition"; }if(gml_Script____struct___48_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition.prototype.__type===undefined){gml_Script____struct___48_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition.prototype.__type="gml_Script____struct___48_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___48_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition.prototype); {var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(2),$$args)];}}}}function gml_Script____struct___49_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___49_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition"; }if(gml_Script____struct___49_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition.prototype.__type===undefined){gml_Script____struct___49_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition.prototype.__type="gml_Script____struct___49_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___49_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition.prototype); {var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(2),$$args)];}}}}function gml_Script_s_rm_edit_competition_init(_inst,_other){{gml_Script_s_init_rm(_inst,_other);gml_Script_s_create_title(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Editor"),undefined,true);var gmlcomp,gmlconf;var ___sw88___=_inst.gmled_obj; var ___swc89___=-1;if(yyCompareVal(___sw88___,1,g_GMLMathEpsilon,false)==0){___swc89___=0;}else if(yyCompareVal(___sw88___,2,g_GMLMathEpsilon,false)==0){___swc89___=1;}else if(yyCompareVal(___sw88___,3,g_GMLMathEpsilon,false)==0){___swc89___=2;}switch(___swc89___){case 0:{_inst.gmlem=__yy_gml_object_create(_inst,(_inst.gml___struct___46=__yy_method(_inst,gml_Script____struct___46_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition)),_inst.gmluid);gml_Script_s_editor_create_competition_fields(_inst, _other,_inst.gmlem);break;}case 1:{gmlconf=gml_Script_s_get_conference_data(_inst,_other,_inst.gmluid);if(yyfequal(gmlconf,(-4))){break;};_inst.gmlem=__yy_gml_object_create(_inst,(_inst.gml___struct___47=__yy_method(_inst,gml_Script____struct___47_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition)),gmlconf);gml_Script_s_editor_create_competition_fields(_inst,_other,_inst.gmlem);break;}case 2:{gmlcomp=gml_Script_s_get_competition(_inst,_other,_inst.gmluid);_inst.gmlem=gml_Script_s_get_editor_mode_data(_inst, _other,yyInst(_inst,_other,gmlcomp).gmleditor_mode);if((yyGetBool(yyfequal(_inst.gmlem,(-4))))||(yyGetBool(yyfnotequal(yyInst(_inst,_other,_inst.gmlem).gmltag,"ed")))){break;};yyInst(_inst,_other,_inst.gmlem).gmlcomp=gmlcomp;gml_Script_s_editor_create_competition_fields(_inst,_other,_inst.gmlem);break;}};_inst.gmlbtn_cancel=gml_Script_s_create_button(_inst,_other,99,232,__yy_gml_object_create(_inst,(_inst.gml___struct___48=__yy_method(_inst,gml_Script____struct___48_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition)), gml_Script_s_str(_inst,_other,"ui_Cancel"),kgml_Script_s_btn_edit_comp_cancel,2.8125));_inst.gmlbtn_confirm=gml_Script_s_create_button(_inst,_other,287,232,__yy_gml_object_create(_inst,(_inst.gml___struct___49=__yy_method(_inst,gml_Script____struct___49_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition)),gml_Script_s_str(_inst,_other,"ui_Confirm"),kgml_Script_s_btn_edit_comp_confirm,2.8125));}}function gml_Script_s_btn_edit_comp_confirm(_inst,_other){{gml_Script_s_custom_data_update_from_editor(_inst, _other,yyInst(_inst,_other,global.gmlrm).gmlem);gml_Script_s_custom_data_save(_inst,_other);gml_Script_s_custom_data_patch(_inst,_other);gml_Script_s_goto_room(_inst,_other,YYASSET_REF(0x03000037),gml_Script_s_get_editor_status(_inst,_other));}}function gml_Script_s_btn_edit_comp_cancel(_inst,_other){{gml_Script_s_goto_room(_inst,_other,YYASSET_REF(0x03000037),gml_Script_s_get_editor_status(_inst,_other));}}function gml_Script____struct___50_s_editor_create_competition_fields_gml_GlobalScript_s_college_edit_competition(_inst, _other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___50_s_editor_create_competition_fields_gml_GlobalScript_s_college_edit_competition";}if(gml_Script____struct___50_s_editor_create_competition_fields_gml_GlobalScript_s_college_edit_competition.prototype.__type===undefined){gml_Script____struct___50_s_editor_create_competition_fields_gml_GlobalScript_s_college_edit_competition.prototype.__type="gml_Script____struct___50_s_editor_create_competition_fields_gml_GlobalScript_s_college_edit_competition"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___50_s_editor_create_competition_fields_gml_GlobalScript_s_college_edit_competition.prototype);{}}}function gml_Script_s_editor_create_competition_fields(_inst,_other,argument0){{var gmlmax_chars_subdiv_name=12;var gmlmax_chars_conf_name=12;var gmlmax_chars_conf_tla=4;var gmlmax_chars_conf_division=6;var gmlmax_chars_city=16;var gmlmax_chars_state=2;var gmlmax_chars_bowl_name=12;var gmlmax_chars_comp_suffix=12;if(yyfnotequal(yyInst(_inst, _other,argument0).gmltag,"ed")){return(-4);};yyInst(_inst,_other,argument0).gmlfields=__yy_gml_object_create(_inst,(_inst.gml___struct___50=__yy_method(_inst,gml_Script____struct___50_s_editor_create_competition_fields_gml_GlobalScript_s_college_edit_competition)));var ___sw90___=yyInst(_inst,_other,argument0).gmlmode;var ___swc91___=-1;if(yyCompareVal(___sw90___,"subdiv",g_GMLMathEpsilon,false)==0){___swc91___=0;}else if(yyCompareVal(___sw90___,"conf",g_GMLMathEpsilon,false)==0){___swc91___=1;}else if(yyCompareVal(___sw90___, "bowls",g_GMLMathEpsilon,false)==0){___swc91___=2;}else if(yyCompareVal(___sw90___,"finals",g_GMLMathEpsilon,false)==0||yyCompareVal(___sw90___,"conf_champ",g_GMLMathEpsilon,false)==0){___swc91___=3;}switch(___swc91___){case 0:{gml_Script_s_editor_create_text_field(_inst,_other,yyInst(_inst,_other,argument0).gmlfields,"name",180,60,gml_Script_s_get_subdiv_name(_inst,_other,yyInst(_inst,_other,argument0).gmluid),gml_Script_s_str(_inst,_other,"ui_Subdivision"),gmlmax_chars_subdiv_name);break;}case 1:{ gml_Script_s_editor_create_text_field(_inst,_other,yyInst(_inst,_other,argument0).gmlfields,"name",180,60,yyInst(_inst,_other,yyInst(_inst,_other,argument0).gmlconf).gmlname,gml_Script_s_str(_inst,_other,"ui_Conference"),gmlmax_chars_conf_name);gml_Script_s_editor_create_text_field(_inst,_other,yyInst(_inst,_other,argument0).gmlfields,"tla",180,84,yyInst(_inst,_other,yyInst(_inst,_other,argument0).gmlconf).gmltla,gml_Script_s_str(_inst,_other,"ui_ShortName"),gmlmax_chars_conf_tla);if(yyfgreater(real(yyInst(_inst, _other,yyInst(_inst,_other,argument0).gmlconf).gmldivisions),1)){{gml_Script_s_editor_create_text_field(_inst,_other,yyInst(_inst,_other,argument0).gmlfields,"div_0_name",180,112,yyInst(_inst,_other,yyInst(_inst,_other,argument0).gmlconf).gmldiv_0_name,gml_Script_s_str(_inst,_other,"ui_Divisions"),gmlmax_chars_conf_division,undefined,undefined,19);gml_Script_s_editor_create_text_field(_inst,_other,yyInst(_inst,_other,argument0).gmlfields,"div_1_name",180,136,yyInst(_inst,_other,yyInst(_inst,_other, argument0).gmlconf).gmldiv_1_name,(-4),gmlmax_chars_conf_division);};};break;}case 2:{gml_Script_s_editor_create_text_field(_inst,_other,yyInst(_inst,_other,argument0).gmlfields,"prefix",180,60,yyInst(_inst,_other,yyInst(_inst,_other,argument0).gmlcomp).gmlprefix,gml_Script_s_str(_inst,_other,"ui_BowlName"),gmlmax_chars_bowl_name,105);gml_Script_s_editor_create_text_field(_inst,_other,yyInst(_inst,_other,argument0).gmlfields,"suffix",295,60,yyInst(_inst,_other,yyInst(_inst,_other,argument0).gmlcomp).gmlsuffix, (-4),gmlmax_chars_bowl_name,105);gml_Script_s_editor_create_location_field(_inst,_other,yyInst(_inst,_other,argument0).gmlfields,180,84,yyInst(_inst,_other,yyInst(_inst,_other,argument0).gmlcomp).gmlcity,yyInst(_inst,_other,yyInst(_inst,_other,argument0).gmlcomp).gmlstate,gml_Script_s_str(_inst,_other,"ui_Location"),gmlmax_chars_city,gmlmax_chars_state);break;}case 3:{gml_Script_s_editor_create_partial_text_field(_inst,_other,yyInst(_inst,_other,argument0).gmlfields,"name","suffix",180,60,argument0, gml_Script_s_str(_inst,_other,"ui_GameName"),gmlmax_chars_comp_suffix);gml_Script_s_editor_create_location_field(_inst,_other,yyInst(_inst,_other,argument0).gmlfields,180,84,yyInst(_inst,_other,yyInst(_inst,_other,argument0).gmlcomp).gmlcity,yyInst(_inst,_other,yyInst(_inst,_other,argument0).gmlcomp).gmlstate,gml_Script_s_str(_inst,_other,"ui_Location"),gmlmax_chars_city,gmlmax_chars_state);break;}};}}function gml_Script____struct___51_s_editor_create_text_field_gml_GlobalScript_s_college_edit_competition(_inst, _other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___51_s_editor_create_text_field_gml_GlobalScript_s_college_edit_competition";}if(gml_Script____struct___51_s_editor_create_text_field_gml_GlobalScript_s_college_edit_competition.prototype.__type===undefined){gml_Script____struct___51_s_editor_create_text_field_gml_GlobalScript_s_college_edit_competition.prototype.__type="gml_Script____struct___51_s_editor_create_text_field_gml_GlobalScript_s_college_edit_competition";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst, gml_Script____struct___51_s_editor_create_text_field_gml_GlobalScript_s_college_edit_competition.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmltext_orig=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlmax_length=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(3),$$args)];_inst.gmlvalidate_script=$$args[__yy_gml_array_check_index(2+(4),$$args)]; }}}}function gml_Script_s_editor_create_text_field(_inst,_other,argument0,argument1,argument2,argument3,argument4,argument5,argument6,argument7,argument8,argument9){{if(yyfequal(argument6,_inst.undefined)){argument6=10;};if(yyfequal(argument7,_inst.undefined)){argument7=220;};if(yyfequal(argument8,_inst.undefined)){argument8=(-12);};if(yyfequal(argument9,_inst.undefined)){argument9=8;};}{var gmlbtn=instance_create_layer(argument2,argument3,yyInst(_inst,_other,_inst.id).layer,YYASSET_REF(0x00000048), __yy_gml_object_create(_inst,(_inst.gml___struct___51=__yy_method(_inst,gml_Script____struct___51_s_editor_create_text_field_gml_GlobalScript_s_college_edit_competition)),argument4,argument4,argument6,yyfdivide(__yy_gml_errCheck(argument7),16),kgml_Script_s_editor_field_validate));if(yyfnotequal(argument5,(-4))){gml_Script_s_editor_create_field_label(_inst,_other,argument2,argument3,argument5,argument8,argument9);};variable_struct_set(argument0,argument1,gmlbtn);}}function gml_Script____struct___52_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition(_inst, _other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___52_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition";}if(gml_Script____struct___52_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition.prototype.__type===undefined){gml_Script____struct___52_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition.prototype.__type="gml_Script____struct___52_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___52_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmluid=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlimage=YYASSET_REF(0x01000094);_inst.gmlimage_only=true;}}}}function gml_Script____struct___53_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition(_inst, _other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___53_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition";}if(gml_Script____struct___53_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition.prototype.__type===undefined){gml_Script____struct___53_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition.prototype.__type="gml_Script____struct___53_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___53_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmluid=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlimage=YYASSET_REF(0x01000094);_inst.gmlimage_only=true;}}}}function gml_Script____struct___54_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition(_inst, _other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___54_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition";}if(gml_Script____struct___54_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition.prototype.__type===undefined){gml_Script____struct___54_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition.prototype.__type="gml_Script____struct___54_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___54_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmltext_orig=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlmax_length=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(3),$$args)];_inst.gmlvalidate_script=$$args[__yy_gml_array_check_index(2+(4), $$args)];}}}}function gml_Script____struct___55_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___55_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition";}if(gml_Script____struct___55_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition.prototype.__type===undefined){gml_Script____struct___55_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition.prototype.__type="gml_Script____struct___55_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___55_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];}}}}function gml_Script_s_editor_create_partial_text_field(_inst,_other,argument0,argument1,argument2,argument3,argument4,argument5,argument6,argument7,argument8,argument9){{if(yyfequal(argument7,_inst.undefined)){argument7=10; };if(yyfequal(argument8,_inst.undefined)){argument8=(-12);};if(yyfequal(argument9,_inst.undefined)){argument9=8;};}{var gmlcd,gmlprefix,gmlsuffix;var ___sw92___=yyInst(_inst,_other,argument5).gmlmode;var ___swc93___=-1;if(yyCompareVal(___sw92___,"finals",g_GMLMathEpsilon,false)==0){___swc93___=0;}else if(yyCompareVal(___sw92___,"conf_champ",g_GMLMathEpsilon,false)==0){___swc93___=1;}switch(___swc93___){case 0:{gmlprefix=gml_Script_s_get_subdiv_name(_inst,_other,yyInst(_inst,_other,argument5).gmluid); gmlsuffix=yyInst(_inst,_other,yyInst(_inst,_other,argument5).gmlcomp).gmlsuffix;gml_Script_s_create_button(_inst,_other,yyfminus(__yy_gml_errCheck(argument3),10),yyfminus(__yy_gml_errCheck(argument4),8),__yy_gml_object_create(_inst,(_inst.gml___struct___52=__yy_method(_inst,gml_Script____struct___52_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition)),kgml_Script_s_btn_editor_edit_subdivision,yyInst(_inst,_other,argument5).gmluid),YYASSET_REF(0x00000025));break;}case 1:{ gmlcd=gml_Script_s_get_conference_data(_inst,_other,yyInst(_inst,_other,argument5).gmluid);gmlprefix=(yyfnotequal(gmlcd,(-4))?yyInst(_inst,_other,gmlcd).gmlname:"N/A");gmlsuffix=yyInst(_inst,_other,yyInst(_inst,_other,argument5).gmlcomp).gmlsuffix;gml_Script_s_create_button(_inst,_other,yyfminus(__yy_gml_errCheck(argument3),10),yyfminus(__yy_gml_errCheck(argument4),8),__yy_gml_object_create(_inst,(_inst.gml___struct___53=__yy_method(_inst,gml_Script____struct___53_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition)), kgml_Script_s_btn_editor_edit_conference,yyInst(_inst,_other,argument5).gmluid),YYASSET_REF(0x00000025));break;}};gml_Script_s_editor_create_field_label(_inst,_other,argument3,argument4,argument6,argument8,argument9);gml_Script_s_editor_create_field_label(_inst,_other,yyfplus(__yy_gml_errCheck(argument3),105),argument4,gmlprefix,0,8);var gmlbtn=instance_create_layer(yyfplus(__yy_gml_errCheck(argument3),115),argument4,yyInst(_inst,_other,_inst.id).layer,YYASSET_REF(0x00000048),__yy_gml_object_create(_inst, (_inst.gml___struct___54=__yy_method(_inst,gml_Script____struct___54_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition)),gmlsuffix,gmlsuffix,argument7,6.5625,kgml_Script_s_editor_field_validate));if(yyfnotequal(argument6,(-4))){gml_Script_s_editor_create_field_label(_inst,_other,argument3,argument4,argument6,argument8,argument9);};variable_struct_set(argument0,argument2,gmlbtn);variable_struct_set(argument0,argument1,__yy_gml_object_create(_inst,(_inst.gml___struct___55=__yy_method(_inst, gml_Script____struct___55_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition)),yyfplus(yyfplus(__yy_gml_errCheck(gmlprefix)," "),__yy_gml_errCheck(yyInst(_inst,_other,gmlbtn).gmltext))));}}function gml_Script____struct___56_s_editor_create_location_field_gml_GlobalScript_s_college_edit_competition(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___56_s_editor_create_location_field_gml_GlobalScript_s_college_edit_competition";}if(gml_Script____struct___56_s_editor_create_location_field_gml_GlobalScript_s_college_edit_competition.prototype.__type===undefined){ gml_Script____struct___56_s_editor_create_location_field_gml_GlobalScript_s_college_edit_competition.prototype.__type="gml_Script____struct___56_s_editor_create_location_field_gml_GlobalScript_s_college_edit_competition";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___56_s_editor_create_location_field_gml_GlobalScript_s_college_edit_competition.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)]; _inst.gmltext_orig=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlmax_length=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(3),$$args)];_inst.gmlvalidate_script=$$args[__yy_gml_array_check_index(2+(4),$$args)];_inst.gmlactive=$$args[__yy_gml_array_check_index(2+(5),$$args)];}}}}function gml_Script____struct___57_s_editor_create_location_field_gml_GlobalScript_s_college_edit_competition(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___57_s_editor_create_location_field_gml_GlobalScript_s_college_edit_competition"; }if(gml_Script____struct___57_s_editor_create_location_field_gml_GlobalScript_s_college_edit_competition.prototype.__type===undefined){gml_Script____struct___57_s_editor_create_location_field_gml_GlobalScript_s_college_edit_competition.prototype.__type="gml_Script____struct___57_s_editor_create_location_field_gml_GlobalScript_s_college_edit_competition";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___57_s_editor_create_location_field_gml_GlobalScript_s_college_edit_competition.prototype); {var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmltext_orig=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlmax_length=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(3),$$args)];_inst.gmlvalidate_script=$$args[__yy_gml_array_check_index(2+(4),$$args)];_inst.gmlactive=$$args[__yy_gml_array_check_index(2+(5),$$args)];}}}}function gml_Script____struct___58_s_editor_create_location_field_gml_GlobalScript_s_college_edit_competition(_inst, _other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___58_s_editor_create_location_field_gml_GlobalScript_s_college_edit_competition";}if(gml_Script____struct___58_s_editor_create_location_field_gml_GlobalScript_s_college_edit_competition.prototype.__type===undefined){gml_Script____struct___58_s_editor_create_location_field_gml_GlobalScript_s_college_edit_competition.prototype.__type="gml_Script____struct___58_s_editor_create_location_field_gml_GlobalScript_s_college_edit_competition"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___58_s_editor_create_location_field_gml_GlobalScript_s_college_edit_competition.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmltxt_side=1;_inst.gmlfields=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlstate=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(3),$$args)]; }}}}function gml_Script_s_editor_create_location_field(_inst,_other,argument0,argument1,argument2,argument3,argument4,argument5,argument6,argument7,argument8,argument9){{if(yyfequal(argument6,_inst.undefined)){argument6=16;};if(yyfequal(argument7,_inst.undefined)){argument7=2;};if(yyfequal(argument8,_inst.undefined)){argument8=(-12);};if(yyfequal(argument9,_inst.undefined)){argument9=8;};}{yyInst(_inst,_other,argument0).gmlcity=instance_create_layer(argument1,argument2,yyInst(_inst,_other,_inst.id).layer, YYASSET_REF(0x00000048),__yy_gml_object_create(_inst,(_inst.gml___struct___56=__yy_method(_inst,gml_Script____struct___56_s_editor_create_location_field_gml_GlobalScript_s_college_edit_competition)),argument3,argument3,argument6,10.625,kgml_Script_s_editor_field_validate,gml_Script_s_editor_location_is_neutral(_inst,_other,argument3,argument4)));yyInst(_inst,_other,argument0).gmlstate=instance_create_layer(yyfplus(__yy_gml_errCheck(argument1),180),argument2,yyInst(_inst,_other,_inst.id).layer,YYASSET_REF(0x00000048), __yy_gml_object_create(_inst,(_inst.gml___struct___57=__yy_method(_inst,gml_Script____struct___57_s_editor_create_location_field_gml_GlobalScript_s_college_edit_competition)),argument4,argument4,argument7,2.5,kgml_Script_s_editor_field_validate,gml_Script_s_editor_location_is_neutral(_inst,_other,argument3,argument4)));yyInst(_inst,_other,argument0).gmlneutral=instance_create_layer(argument1,yyfplus(__yy_gml_errCheck(argument2),24),yyInst(_inst,_other,_inst.id).layer,YYASSET_REF(0x00000046),__yy_gml_object_create(_inst, (_inst.gml___struct___58=__yy_method(_inst,gml_Script____struct___58_s_editor_create_location_field_gml_GlobalScript_s_college_edit_competition)),gml_Script_s_str_u(_inst,_other,"ui_NeutralSite"),argument0,gml_Script_s_editor_location_is_neutral(_inst,_other,argument3,argument4),kgml_Script_s_editor_location_toggle_neutral_state));gml_Script_s_editor_create_field_label(_inst,_other,argument1,argument2,argument5,argument8,argument9);gml_Script_s_editor_create_field_label(_inst,_other,argument1,argument2, ",",177,argument9);}}function gml_Script____struct___59_s_editor_create_field_label_gml_GlobalScript_s_college_edit_competition(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___59_s_editor_create_field_label_gml_GlobalScript_s_college_edit_competition";}if(gml_Script____struct___59_s_editor_create_field_label_gml_GlobalScript_s_college_edit_competition.prototype.__type===undefined){gml_Script____struct___59_s_editor_create_field_label_gml_GlobalScript_s_college_edit_competition.prototype.__type="gml_Script____struct___59_s_editor_create_field_label_gml_GlobalScript_s_college_edit_competition"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___59_s_editor_create_field_label_gml_GlobalScript_s_college_edit_competition.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlaction_draw_gui=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlox=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmloy=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.gmltext_align=$$args[__yy_gml_array_check_index(2+(3),$$args)];_inst.gmltext=$$args[__yy_gml_array_check_index(2+(4), $$args)];}}}}function gml_Script_s_editor_create_field_label(_inst,_other,argument0,argument1,argument2,argument3,argument4,argument5){{if(yyfequal(argument3,_inst.undefined)){argument3=(-12);};if(yyfequal(argument4,_inst.undefined)){argument4=8;};if(yyfequal(argument5,_inst.undefined)){argument5=2;};}{instance_create_layer(argument0,argument1,yyInst(_inst,_other,_inst.id).layer,YYASSET_REF(0x0000001D),__yy_gml_object_create(_inst,(_inst.gml___struct___59=__yy_method(_inst,gml_Script____struct___59_s_editor_create_field_label_gml_GlobalScript_s_college_edit_competition)), kgml_Script_s_ui_field_label_draw_gui,argument3,argument4,argument5,string_upper(argument2)));}}function gml_Script_s_ui_field_label_draw_gui(_inst,_other){{draw_set_font(global.gmlfnt_small_flex);draw_set_colour(16777215);draw_set_halign(_inst.gmltext_align);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.gmlox)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.gmloy)),_inst.gmltext);draw_set_halign(0);}}function gml_Script_s_editor_field_validate(_inst, _other){{if(yyfequal(_inst.gmltext,"")){_inst.gmltext=_inst.gmltext_orig;};}}function gml_Script_s_editor_location_is_neutral(_inst,_other,argument0,argument1){{return(yyGetBool(yyfnotequal(argument0,"")))||(yyGetBool(yyfnotequal(argument1,"")));}}function gml_Script_s_editor_location_toggle_neutral_state(_inst,_other,argument0){{if(!yyGetBool(is_undefined(argument0))){_inst.gmlstate=argument0;};yyInst(_inst,_other,yyInst(_inst,_other,_inst.gmlfields).gmlcity).gmlactive=_inst.gmlstate;yyInst(_inst, _other,yyInst(_inst,_other,_inst.gmlfields).gmlstate).gmlactive=_inst.gmlstate;}}function gml_Script____struct___60_s_get_editor_mode_data_gml_GlobalScript_s_college_edit_competition(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___60_s_get_editor_mode_data_gml_GlobalScript_s_college_edit_competition";}if(gml_Script____struct___60_s_get_editor_mode_data_gml_GlobalScript_s_college_edit_competition.prototype.__type===undefined){gml_Script____struct___60_s_get_editor_mode_data_gml_GlobalScript_s_college_edit_competition.prototype.__type="gml_Script____struct___60_s_get_editor_mode_data_gml_GlobalScript_s_college_edit_competition"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___60_s_get_editor_mode_data_gml_GlobalScript_s_college_edit_competition.prototype);{}}}function gml_Script_s_get_editor_mode_data(_inst,_other,argument0){{var gmlem=string_split(argument0,":");var gmleml=array_length(gmlem);var gmlemd=__yy_gml_object_create(_inst,(_inst.gml___struct___60=__yy_method(_inst,gml_Script____struct___60_s_get_editor_mode_data_gml_GlobalScript_s_college_edit_competition)));if(yyfgreater(gmleml,1)){ {yyInst(_inst,_other,gmlemd).gmltag=gmlem[__yy_gml_array_check_index(0,gmlem)];var ___sw94___=gmlem[__yy_gml_array_check_index(0,gmlem)];var ___swc95___=-1;if(yyCompareVal(___sw94___,"ed",g_GMLMathEpsilon,false)==0){___swc95___=0;}else if(yyCompareVal(___sw94___,"cpy",g_GMLMathEpsilon,false)==0){___swc95___=1;}switch(___swc95___){case 0:{yyInst(_inst,_other,gmlemd).gmlmode=gmlem[__yy_gml_array_check_index(1,gmlem)];yyInst(_inst,_other,gmlemd).gmluid=(yyfgreater(gmleml,2)?gmlem[__yy_gml_array_check_index(2, gmlem)]:(-4));break;}case 1:{yyInst(_inst,_other,gmlemd).gmluid=gmlem[__yy_gml_array_check_index(1,gmlem)];break;}};};}else {{return(-4);};};return gmlemd;}}function gml_GlobalScript_nx_scripts(_inst,_other){(_inst.gmls_nx_init=__yy_method(_inst,gml_Script_s_nx_init));(_inst.gmls_nx_commit=__yy_method(_inst,gml_Script_s_nx_commit));(_inst.gmls_nx_get_open_user=__yy_method(_inst,gml_Script_s_nx_get_open_user));}function gml_Script_s_nx_init(_inst,_other){{var ___sw100___=g_pBuiltIn.get_os_type();var ___swc101___=-1; if(yyCompareVal(___sw100___,21,g_GMLMathEpsilon,false)==0){___swc101___=0;}switch(___swc101___){case 0:{{var __yy__v42=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v43 in __yy__v42){if(!__yy__v42.hasOwnProperty(__yy__v43))continue;var __yy__v44=__yy__v42[__yy__v43];{gml_Script_slog(__yy__v44,_inst,"Init switch save slot");__yy__v44.gmlnx_player_id=gml_Script_s_nx_get_open_user(__yy__v44,_inst);gml_Script_slogf(__yy__v44,_inst,"User selected: %1 (%2)",switch_accounts_get_nickname(__yy__v44.gmlnx_player_id), switch_accounts_is_user_open(__yy__v44.gmlnx_player_id));switch_save_data_mount(__yy__v44.gmlnx_player_id);}}};break;}};}}function gml_Script_s_nx_commit(_inst,_other){{var ___sw102___=g_pBuiltIn.get_os_type();var ___swc103___=-1;if(yyCompareVal(___sw102___,21,g_GMLMathEpsilon,false)==0){___swc103___=0;}switch(___swc103___){case 0:{gml_Script_slog(_inst,_other,"Commit data on switch save slot");switch_save_data_commit();break;}};}}function gml_Script_s_nx_get_open_user(_inst,_other){{var gmli=0;for(;yyfless(gmli, switch_accounts_get_accounts());(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gml_Script_slogf(_inst,_other,"User %1 is %2",switch_accounts_get_nickname(gmli),switch_accounts_is_user_open(gmli));if(yyGetBool(switch_accounts_is_user_open(gmli))){return gmli;};}};return(-4);}}function gml_GlobalScript_s_get_player_body_type(_inst,_other){(_inst.gmls_get_player_body_type=__yy_method(_inst,gml_Script_s_get_player_body_type));(_inst.gmls_spr_from_bt=__yy_method(_inst, gml_Script_s_spr_from_bt));(_inst.gmls_is_spr_bodytype=__yy_method(_inst,gml_Script_s_is_spr_bodytype));(_inst.gmls_get_team_body_type=__yy_method(_inst,gml_Script_s_get_team_body_type));}function gml_Script_s_get_player_body_type(_inst,_other,argument0,argument1,argument2){{{};if(yyGetBool(argument0)){{if(yyfequal(argument1,(-4))){{return 1;};}else {{var gmlstats=0;var ___sw114___=ds_map_find_value(argument1,"position");var ___swc115___=-1;if(yyCompareVal(___sw114___,1,g_GMLMathEpsilon,false)==0){___swc115___=0; }else if(yyCompareVal(___sw114___,2,g_GMLMathEpsilon,false)==0){___swc115___=1;}else if(yyCompareVal(___sw114___,3,g_GMLMathEpsilon,false)==0){___swc115___=2;}else if(yyCompareVal(___sw114___,4,g_GMLMathEpsilon,false)==0){___swc115___=3;}else if(yyCompareVal(___sw114___,5,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw114___,6,g_GMLMathEpsilon,false)==0){___swc115___=4;}else if(yyCompareVal(___sw114___,7,g_GMLMathEpsilon,false)==0){___swc115___=5;}else if(yyCompareVal(___sw114___,8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw114___, 9,g_GMLMathEpsilon,false)==0){___swc115___=6;}else if(yyCompareVal(___sw114___,10,g_GMLMathEpsilon,false)==0){___swc115___=7;}switch(___swc115___){case 0:{gmlstats=yyfplus(gmlstats,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument1,"speed")),7));gmlstats=yyfplus(gmlstats,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument1,"strength")),10));gmlstats=yyfplus(gmlstats,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument1,"skill")),10));gmlstats=yyfplus(gmlstats,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument1, "stamina")),10));break;}case 1:{gmlstats=yyfplus(gmlstats,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument1,"speed")),10));gmlstats=yyfplus(gmlstats,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument1,"strength")),9));gmlstats=yyfplus(gmlstats,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument1,"skill")),6));gmlstats=yyfplus(gmlstats,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument1,"stamina")),9));break;}case 2:{gmlstats=yyfplus(gmlstats,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument1, "speed")),7));gmlstats=yyfplus(gmlstats,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument1,"strength")),8));gmlstats=yyfplus(gmlstats,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument1,"skill")),8));gmlstats=yyfplus(gmlstats,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument1,"stamina")),10));break;}case 3:{gmlstats=yyfplus(gmlstats,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument1,"speed")),10));gmlstats=yyfplus(gmlstats,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument1, "strength")),6));gmlstats=yyfplus(gmlstats,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument1,"skill")),10));gmlstats=yyfplus(gmlstats,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument1,"stamina")),8));break;}case 4:{gmlstats=yyfplus(gmlstats,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument1,"speed")),5));gmlstats=yyfplus(gmlstats,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument1,"strength")),10));gmlstats=yyfplus(gmlstats,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument1, "skill")),10));gmlstats=yyfplus(gmlstats,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument1,"stamina")),10));break;}case 5:{gmlstats=yyfplus(gmlstats,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument1,"speed")),7));gmlstats=yyfplus(gmlstats,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument1,"strength")),8));gmlstats=yyfplus(gmlstats,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument1,"skill")),8));gmlstats=yyfplus(gmlstats,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument1, "stamina")),10));break;}case 6:{gmlstats=yyfplus(gmlstats,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument1,"speed")),9));gmlstats=yyfplus(gmlstats,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument1,"strength")),6));gmlstats=yyfplus(gmlstats,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument1,"skill")),8));gmlstats=yyfplus(gmlstats,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument1,"stamina")),10));break;}case 7:{gmlstats=yyfplus(gmlstats,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument1, "speed")),7));gmlstats=yyfplus(gmlstats,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument1,"strength")),10));gmlstats=yyfplus(gmlstats,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument1,"skill")),10));gmlstats=yyfplus(gmlstats,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument1,"stamina")),10));break;}};gmlstats=yyfdivide(gmlstats,4);if(yyfgreaterequal(gmlstats,0.7)){{return 2;};};return 1;};};};}else {{var gmlr=0;if(yyfless(argument2,2)){{gmlr=0;};}else {if(yyfless(argument2,4)){{gmlr=0.1; };}else {if(yyfless(argument2,5)){{gmlr=0.2;};}else {if(yyfless(argument2,6)){{gmlr=0.3;};}else {if(yyfless(argument2,7)){{gmlr=0.4;};}else {if(yyfless(argument2,8)){{gmlr=0.5;};}else {if(yyfless(argument2,9)){{gmlr=0.6;};}else {if(yyfless(argument2,14)){{gmlr=0.8;};}else {{gmlr=0.9;};};};};};};};};};var gmlpick=random_range(0,1);if(yyfless(gmlpick,gmlr)){{return 2;};};return 1;};};gml_Script_slog(_inst,_other,"BODTYP: BODY_THIN(Fallback)");return 1;}}function gml_Script_s_spr_from_bt(_inst,_other,argument0, argument1){{{};var ___sw116___=argument0;var ___swc117___=-1;if(yyCompareVal(___sw116___,YYASSET_REF(0x0100004C),g_GMLMathEpsilon,false)==0){___swc117___=0;}else if(yyCompareVal(___sw116___,YYASSET_REF(0x01000042),g_GMLMathEpsilon,false)==0){___swc117___=1;}else if(yyCompareVal(___sw116___,YYASSET_REF(0x01000043),g_GMLMathEpsilon,false)==0){___swc117___=2;}else if(yyCompareVal(___sw116___,YYASSET_REF(0x01000044),g_GMLMathEpsilon,false)==0){___swc117___=3;}else if(yyCompareVal(___sw116___,YYASSET_REF(0x0100003E), g_GMLMathEpsilon,false)==0){___swc117___=4;}else if(yyCompareVal(___sw116___,YYASSET_REF(0x01000040),g_GMLMathEpsilon,false)==0){___swc117___=5;}else if(yyCompareVal(___sw116___,YYASSET_REF(0x01000041),g_GMLMathEpsilon,false)==0){___swc117___=6;}else if(yyCompareVal(___sw116___,YYASSET_REF(0x0100010D),g_GMLMathEpsilon,false)==0){___swc117___=7;}else if(yyCompareVal(___sw116___,YYASSET_REF(0x01000128),g_GMLMathEpsilon,false)==0){___swc117___=8;}else if(yyCompareVal(___sw116___,YYASSET_REF(0x01000032), g_GMLMathEpsilon,false)==0){___swc117___=9;}else if(yyCompareVal(___sw116___,YYASSET_REF(0x01000033),g_GMLMathEpsilon,false)==0){___swc117___=10;}else if(yyCompareVal(___sw116___,YYASSET_REF(0x01000034),g_GMLMathEpsilon,false)==0){___swc117___=11;}else if(yyCompareVal(___sw116___,YYASSET_REF(0x0100002C),g_GMLMathEpsilon,false)==0){___swc117___=12;}else if(yyCompareVal(___sw116___,YYASSET_REF(0x0100003C),g_GMLMathEpsilon,false)==0){___swc117___=13;}else if(yyCompareVal(___sw116___,YYASSET_REF(0x0100003A), g_GMLMathEpsilon,false)==0){___swc117___=14;}else if(yyCompareVal(___sw116___,YYASSET_REF(0x01000037),g_GMLMathEpsilon,false)==0){___swc117___=15;}else if(yyCompareVal(___sw116___,YYASSET_REF(0x01000038),g_GMLMathEpsilon,false)==0){___swc117___=16;}else if(yyCompareVal(___sw116___,YYASSET_REF(0x01000039),g_GMLMathEpsilon,false)==0){___swc117___=17;}else if(yyCompareVal(___sw116___,YYASSET_REF(0x0100003B),g_GMLMathEpsilon,false)==0){___swc117___=18;}else if(yyCompareVal(___sw116___,YYASSET_REF(0x01000045), g_GMLMathEpsilon,false)==0){___swc117___=19;}else if(yyCompareVal(___sw116___,YYASSET_REF(0x01000046),g_GMLMathEpsilon,false)==0){___swc117___=20;}else if(yyCompareVal(___sw116___,YYASSET_REF(0x0100009D),g_GMLMathEpsilon,false)==0){___swc117___=21;}else if(yyCompareVal(___sw116___,YYASSET_REF(0x01000047),g_GMLMathEpsilon,false)==0){___swc117___=22;}else if(yyCompareVal(___sw116___,YYASSET_REF(0x0100002A),g_GMLMathEpsilon,false)==0){___swc117___=23;}else if(yyCompareVal(___sw116___,YYASSET_REF(0x01000029), g_GMLMathEpsilon,false)==0){___swc117___=24;}else if(yyCompareVal(___sw116___,YYASSET_REF(0x01000176),g_GMLMathEpsilon,false)==0){___swc117___=25;}else if(yyCompareVal(___sw116___,YYASSET_REF(0x0100002B),g_GMLMathEpsilon,false)==0){___swc117___=26;}else if(yyCompareVal(___sw116___,YYASSET_REF(0x01000028),g_GMLMathEpsilon,false)==0){___swc117___=27;}else if(yyCompareVal(___sw116___,YYASSET_REF(0x0100002D),g_GMLMathEpsilon,false)==0){___swc117___=28;}else if(yyCompareVal(___sw116___,YYASSET_REF(0x0100002E), g_GMLMathEpsilon,false)==0){___swc117___=29;}else if(yyCompareVal(___sw116___,YYASSET_REF(0x0100002F),g_GMLMathEpsilon,false)==0){___swc117___=30;}else if(yyCompareVal(___sw116___,YYASSET_REF(0x01000049),g_GMLMathEpsilon,false)==0){___swc117___=31;}else if(yyCompareVal(___sw116___,YYASSET_REF(0x0100004B),g_GMLMathEpsilon,false)==0){___swc117___=32;}else if(yyCompareVal(___sw116___,YYASSET_REF(0x01000025),g_GMLMathEpsilon,false)==0){___swc117___=33;}else if(yyCompareVal(___sw116___,YYASSET_REF(0x01000026), g_GMLMathEpsilon,false)==0){___swc117___=34;}else if(yyCompareVal(___sw116___,YYASSET_REF(0x01000027),g_GMLMathEpsilon,false)==0){___swc117___=35;}else if(yyCompareVal(___sw116___,YYASSET_REF(0x01000024),g_GMLMathEpsilon,false)==0){___swc117___=36;}else if(yyCompareVal(___sw116___,YYASSET_REF(0x01000035),g_GMLMathEpsilon,false)==0){___swc117___=37;}else if(yyCompareVal(___sw116___,YYASSET_REF(0x01000036),g_GMLMathEpsilon,false)==0){___swc117___=38;}else if(yyCompareVal(___sw116___,YYASSET_REF(0x0100016B), g_GMLMathEpsilon,false)==0){___swc117___=39;}else if(yyCompareVal(___sw116___,YYASSET_REF(0x0100003D),g_GMLMathEpsilon,false)==0){___swc117___=40;}switch(___swc117___){case 0:{{return(yyfequal(argument1,2)?YYASSET_REF(0x010000F3):(yyfequal(argument1,1)?YYASSET_REF(0x01000191):YYASSET_REF(0x0100004C)));};}case 1:{{return(yyfequal(argument1,2)?YYASSET_REF(0x01000189):(yyfequal(argument1,1)?YYASSET_REF(0x0100018E):YYASSET_REF(0x01000042)));};}case 2:{{return(yyfequal(argument1,2)?YYASSET_REF(0x0100013D):(yyfequal(argument1, 1)?YYASSET_REF(0x0100018D):YYASSET_REF(0x01000043)));};}case 3:{{return(yyfequal(argument1,2)?YYASSET_REF(0x010000E2):(yyfequal(argument1,1)?YYASSET_REF(0x0100017B):YYASSET_REF(0x01000044)));};}case 4:{{return(yyfequal(argument1,2)?YYASSET_REF(0x010000F8):(yyfequal(argument1,1)?YYASSET_REF(0x010000B7):YYASSET_REF(0x0100003E)));};}case 5:{{return(yyfequal(argument1,2)?YYASSET_REF(0x0100006D):(yyfequal(argument1,1)?YYASSET_REF(0x01000132):YYASSET_REF(0x01000040)));};}case 6:{{return(yyfequal(argument1, 2)?YYASSET_REF(0x010000E7):(yyfequal(argument1,1)?YYASSET_REF(0x010000FB):YYASSET_REF(0x01000041)));};}case 7:{{return(yyfequal(argument1,2)?YYASSET_REF(0x01000030):(yyfequal(argument1,1)?YYASSET_REF(0x01000109):YYASSET_REF(0x0100010D)));};}case 8:{{return(yyfequal(argument1,2)?YYASSET_REF(0x01000120):(yyfequal(argument1,1)?YYASSET_REF(0x0100011C):YYASSET_REF(0x01000128)));};}case 9:{{return(yyfequal(argument1,2)?YYASSET_REF(0x01000179):(yyfequal(argument1,1)?YYASSET_REF(0x01000150):YYASSET_REF(0x01000032))); };}case 10:{{return(yyfequal(argument1,2)?YYASSET_REF(0x01000188):(yyfequal(argument1,1)?YYASSET_REF(0x01000006):YYASSET_REF(0x01000033)));};}case 11:{{return(yyfequal(argument1,2)?YYASSET_REF(0x010000EA):(yyfequal(argument1,1)?YYASSET_REF(0x010000A9):YYASSET_REF(0x01000034)));};}case 12:{{return(yyfequal(argument1,2)?YYASSET_REF(0x01000159):(yyfequal(argument1,1)?YYASSET_REF(0x0100005E):YYASSET_REF(0x0100002C)));};}case 13:{{return(yyfequal(argument1,2)?YYASSET_REF(0x010000EB):(yyfequal(argument1,1)?YYASSET_REF(0x010000E5):YYASSET_REF(0x0100003C))); };}case 14:{{return(yyfequal(argument1,2)?YYASSET_REF(0x010000E3):(yyfequal(argument1,1)?YYASSET_REF(0x01000142):YYASSET_REF(0x0100003A)));};}case 15:{{return(yyfequal(argument1,2)?YYASSET_REF(0x010000B3):(yyfequal(argument1,1)?YYASSET_REF(0x01000143):YYASSET_REF(0x01000037)));};}case 16:{{return(yyfequal(argument1,2)?YYASSET_REF(0x0100001F):(yyfequal(argument1,1)?YYASSET_REF(0x01000168):YYASSET_REF(0x01000038)));};}case 17:{{return(yyfequal(argument1,2)?YYASSET_REF(0x010000F2):(yyfequal(argument1,1)?YYASSET_REF(0x01000162):YYASSET_REF(0x01000039))); };}case 18:{{return(yyfequal(argument1,2)?YYASSET_REF(0x01000112):(yyfequal(argument1,1)?YYASSET_REF(0x0100014A):YYASSET_REF(0x0100003B)));};}case 19:{{return(yyfequal(argument1,2)?YYASSET_REF(0x01000101):(yyfequal(argument1,1)?YYASSET_REF(0x0100012D):YYASSET_REF(0x01000045)));};}case 20:{{return(yyfequal(argument1,2)?YYASSET_REF(0x0100018B):(yyfequal(argument1,1)?YYASSET_REF(0x0100010A):YYASSET_REF(0x01000046)));};}case 21:{{return(yyfequal(argument1,2)?YYASSET_REF(0x01000054):(yyfequal(argument1,1)?YYASSET_REF(0x010000FA):YYASSET_REF(0x0100009D))); };}case 22:{{return(yyfequal(argument1,2)?YYASSET_REF(0x01000175):(yyfequal(argument1,1)?YYASSET_REF(0x01000195):YYASSET_REF(0x01000047)));};}case 23:{{return(yyfequal(argument1,2)?YYASSET_REF(0x0100012F):(yyfequal(argument1,1)?YYASSET_REF(0x01000117):YYASSET_REF(0x0100002A)));};}case 24:{{return(yyfequal(argument1,2)?YYASSET_REF(0x01000100):(yyfequal(argument1,1)?YYASSET_REF(0x010000C7):YYASSET_REF(0x01000029)));};}case 25:{{return(yyfequal(argument1,2)?YYASSET_REF(0x01000105):(yyfequal(argument1,1)?YYASSET_REF(0x01000119):YYASSET_REF(0x01000176))); };}case 26:{{return(yyfequal(argument1,2)?YYASSET_REF(0x01000140):(yyfequal(argument1,1)?YYASSET_REF(0x01000103):YYASSET_REF(0x0100002B)));};}case 27:{{return(yyfequal(argument1,2)?YYASSET_REF(0x01000196):(yyfequal(argument1,1)?YYASSET_REF(0x010000A6):YYASSET_REF(0x01000028)));};}case 28:{{return(yyfequal(argument1,2)?YYASSET_REF(0x01000164):(yyfequal(argument1,1)?YYASSET_REF(0x01000197):YYASSET_REF(0x0100002D)));};}case 29:{{return(yyfequal(argument1,2)?YYASSET_REF(0x01000187):(yyfequal(argument1,1)?YYASSET_REF(0x01000173):YYASSET_REF(0x0100002E))); };}case 30:{{return(yyfequal(argument1,2)?YYASSET_REF(0x010000E9):(yyfequal(argument1,1)?YYASSET_REF(0x01000147):YYASSET_REF(0x0100002F)));};}case 31:{{return(yyfequal(argument1,2)?YYASSET_REF(0x010000B0):(yyfequal(argument1,1)?YYASSET_REF(0x01000048):YYASSET_REF(0x01000049)));};}case 32:{{return(yyfequal(argument1,2)?YYASSET_REF(0x0100011F):(yyfequal(argument1,1)?YYASSET_REF(0x01000160):YYASSET_REF(0x0100004B)));};}case 33:{{return(yyfequal(argument1,2)?YYASSET_REF(0x0100013B):(yyfequal(argument1,1)?YYASSET_REF(0x01000010):YYASSET_REF(0x01000025))); };}case 34:{{return(yyfequal(argument1,2)?YYASSET_REF(0x010000F4):(yyfequal(argument1,1)?YYASSET_REF(0x01000163):YYASSET_REF(0x01000026)));};}case 35:{{return(yyfequal(argument1,2)?YYASSET_REF(0x0100010B):(yyfequal(argument1,1)?YYASSET_REF(0x010000FF):YYASSET_REF(0x01000027)));};}case 36:{{return(yyfequal(argument1,2)?YYASSET_REF(0x01000193):(yyfequal(argument1,1)?YYASSET_REF(0x01000102):YYASSET_REF(0x01000024)));};}case 37:{{return(yyfequal(argument1,2)?YYASSET_REF(0x0100018C):(yyfequal(argument1,1)?YYASSET_REF(0x0100016F):YYASSET_REF(0x01000035))); };}case 38:{{return(yyfequal(argument1,2)?YYASSET_REF(0x01000161):(yyfequal(argument1,1)?YYASSET_REF(0x010000F6):YYASSET_REF(0x01000036)));};}case 39:{{return(yyfequal(argument1,2)?YYASSET_REF(0x0100000B):(yyfequal(argument1,1)?YYASSET_REF(0x01000155):YYASSET_REF(0x0100016B)));};}case 40:{{return(yyfequal(argument1,2)?YYASSET_REF(0x01000167):(yyfequal(argument1,1)?YYASSET_REF(0x0100010F):YYASSET_REF(0x0100003D)));};}};return argument0;}}function gml_Script_s_is_spr_bodytype(_inst,_other,argument0,argument1){ {if(yyfequal(argument1,2)){{var ___sw118___=argument0;var ___swc119___=-1;if(yyCompareVal(___sw118___,YYASSET_REF(0x010000F3),g_GMLMathEpsilon,false)==0){___swc119___=0;}else if(yyCompareVal(___sw118___,YYASSET_REF(0x01000189),g_GMLMathEpsilon,false)==0){___swc119___=1;}else if(yyCompareVal(___sw118___,YYASSET_REF(0x0100013D),g_GMLMathEpsilon,false)==0){___swc119___=2;}else if(yyCompareVal(___sw118___,YYASSET_REF(0x010000E2),g_GMLMathEpsilon,false)==0){___swc119___=3;}else if(yyCompareVal(___sw118___, YYASSET_REF(0x010000F8),g_GMLMathEpsilon,false)==0){___swc119___=4;}else if(yyCompareVal(___sw118___,YYASSET_REF(0x0100006D),g_GMLMathEpsilon,false)==0){___swc119___=5;}else if(yyCompareVal(___sw118___,YYASSET_REF(0x010000E7),g_GMLMathEpsilon,false)==0){___swc119___=6;}else if(yyCompareVal(___sw118___,YYASSET_REF(0x01000030),g_GMLMathEpsilon,false)==0){___swc119___=7;}else if(yyCompareVal(___sw118___,YYASSET_REF(0x01000120),g_GMLMathEpsilon,false)==0){___swc119___=8;}else if(yyCompareVal(___sw118___, YYASSET_REF(0x01000179),g_GMLMathEpsilon,false)==0){___swc119___=9;}else if(yyCompareVal(___sw118___,YYASSET_REF(0x01000188),g_GMLMathEpsilon,false)==0){___swc119___=10;}else if(yyCompareVal(___sw118___,YYASSET_REF(0x010000EA),g_GMLMathEpsilon,false)==0){___swc119___=11;}else if(yyCompareVal(___sw118___,YYASSET_REF(0x01000159),g_GMLMathEpsilon,false)==0){___swc119___=12;}else if(yyCompareVal(___sw118___,YYASSET_REF(0x010000EB),g_GMLMathEpsilon,false)==0){___swc119___=13;}else if(yyCompareVal(___sw118___, YYASSET_REF(0x010000E3),g_GMLMathEpsilon,false)==0){___swc119___=14;}else if(yyCompareVal(___sw118___,YYASSET_REF(0x010000B3),g_GMLMathEpsilon,false)==0){___swc119___=15;}else if(yyCompareVal(___sw118___,YYASSET_REF(0x0100001F),g_GMLMathEpsilon,false)==0){___swc119___=16;}else if(yyCompareVal(___sw118___,YYASSET_REF(0x010000F2),g_GMLMathEpsilon,false)==0){___swc119___=17;}else if(yyCompareVal(___sw118___,YYASSET_REF(0x01000112),g_GMLMathEpsilon,false)==0){___swc119___=18;}else if(yyCompareVal(___sw118___, YYASSET_REF(0x01000101),g_GMLMathEpsilon,false)==0){___swc119___=19;}else if(yyCompareVal(___sw118___,YYASSET_REF(0x0100018B),g_GMLMathEpsilon,false)==0){___swc119___=20;}else if(yyCompareVal(___sw118___,YYASSET_REF(0x01000054),g_GMLMathEpsilon,false)==0){___swc119___=21;}else if(yyCompareVal(___sw118___,YYASSET_REF(0x01000175),g_GMLMathEpsilon,false)==0){___swc119___=22;}else if(yyCompareVal(___sw118___,YYASSET_REF(0x0100012F),g_GMLMathEpsilon,false)==0){___swc119___=23;}else if(yyCompareVal(___sw118___, YYASSET_REF(0x01000100),g_GMLMathEpsilon,false)==0){___swc119___=24;}else if(yyCompareVal(___sw118___,YYASSET_REF(0x01000105),g_GMLMathEpsilon,false)==0){___swc119___=25;}else if(yyCompareVal(___sw118___,YYASSET_REF(0x01000140),g_GMLMathEpsilon,false)==0){___swc119___=26;}else if(yyCompareVal(___sw118___,YYASSET_REF(0x01000196),g_GMLMathEpsilon,false)==0){___swc119___=27;}else if(yyCompareVal(___sw118___,YYASSET_REF(0x01000164),g_GMLMathEpsilon,false)==0){___swc119___=28;}else if(yyCompareVal(___sw118___, YYASSET_REF(0x01000187),g_GMLMathEpsilon,false)==0){___swc119___=29;}else if(yyCompareVal(___sw118___,YYASSET_REF(0x010000E9),g_GMLMathEpsilon,false)==0){___swc119___=30;}else if(yyCompareVal(___sw118___,YYASSET_REF(0x010000B0),g_GMLMathEpsilon,false)==0){___swc119___=31;}else if(yyCompareVal(___sw118___,YYASSET_REF(0x0100011F),g_GMLMathEpsilon,false)==0){___swc119___=32;}else if(yyCompareVal(___sw118___,YYASSET_REF(0x0100013B),g_GMLMathEpsilon,false)==0){___swc119___=33;}else if(yyCompareVal(___sw118___, YYASSET_REF(0x010000F4),g_GMLMathEpsilon,false)==0){___swc119___=34;}else if(yyCompareVal(___sw118___,YYASSET_REF(0x0100010B),g_GMLMathEpsilon,false)==0){___swc119___=35;}else if(yyCompareVal(___sw118___,YYASSET_REF(0x01000193),g_GMLMathEpsilon,false)==0){___swc119___=36;}else if(yyCompareVal(___sw118___,YYASSET_REF(0x0100018C),g_GMLMathEpsilon,false)==0){___swc119___=37;}else if(yyCompareVal(___sw118___,YYASSET_REF(0x01000161),g_GMLMathEpsilon,false)==0){___swc119___=38;}else if(yyCompareVal(___sw118___, YYASSET_REF(0x0100000B),g_GMLMathEpsilon,false)==0){___swc119___=39;}else if(yyCompareVal(___sw118___,YYASSET_REF(0x01000167),g_GMLMathEpsilon,false)==0){___swc119___=40;}switch(___swc119___){case 0:{{return true;};}case 1:{{return true;};}case 2:{{return true;};}case 3:{{return true;};}case 4:{{return true;};}case 5:{{return true;};}case 6:{{return true;};}case 7:{{return true;};}case 8:{{return true;};}case 9:{{return true;};}case 10:{{return true;};}case 11:{{return true;};}case 12:{{return true;};}case 13:{{return true; };}case 14:{{return true;};}case 15:{{return true;};}case 16:{{return true;};}case 17:{{return true;};}case 18:{{return true;};}case 19:{{return true;};}case 20:{{return true;};}case 21:{{return true;};}case 22:{{return true;};}case 23:{{return true;};}case 24:{{return true;};}case 25:{{return true;};}case 26:{{return true;};}case 27:{{return true;};}case 28:{{return true;};}case 29:{{return true;};}case 30:{{return true;};}case 31:{{return true;};}case 32:{{return true;};}case 33:{{return true;};}case 34:{{return true;};}case 35:{{return true; };}case 36:{{return true;};}case 37:{{return true;};}case 38:{{return true;};}case 39:{{return true;};}case 40:{{return true;};}};return false;};};if(yyfequal(argument1,1)){{var ___sw120___=argument0;var ___swc121___=-1;if(yyCompareVal(___sw120___,YYASSET_REF(0x01000191),g_GMLMathEpsilon,false)==0){___swc121___=0;}else if(yyCompareVal(___sw120___,YYASSET_REF(0x0100018E),g_GMLMathEpsilon,false)==0){___swc121___=1;}else if(yyCompareVal(___sw120___,YYASSET_REF(0x0100018D),g_GMLMathEpsilon,false)==0){___swc121___=2; }else if(yyCompareVal(___sw120___,YYASSET_REF(0x0100017B),g_GMLMathEpsilon,false)==0){___swc121___=3;}else if(yyCompareVal(___sw120___,YYASSET_REF(0x010000B7),g_GMLMathEpsilon,false)==0){___swc121___=4;}else if(yyCompareVal(___sw120___,YYASSET_REF(0x01000132),g_GMLMathEpsilon,false)==0){___swc121___=5;}else if(yyCompareVal(___sw120___,YYASSET_REF(0x010000FB),g_GMLMathEpsilon,false)==0){___swc121___=6;}else if(yyCompareVal(___sw120___,YYASSET_REF(0x01000109),g_GMLMathEpsilon,false)==0){___swc121___=7; }else if(yyCompareVal(___sw120___,YYASSET_REF(0x0100011C),g_GMLMathEpsilon,false)==0){___swc121___=8;}else if(yyCompareVal(___sw120___,YYASSET_REF(0x01000150),g_GMLMathEpsilon,false)==0){___swc121___=9;}else if(yyCompareVal(___sw120___,YYASSET_REF(0x01000006),g_GMLMathEpsilon,false)==0){___swc121___=10;}else if(yyCompareVal(___sw120___,YYASSET_REF(0x010000A9),g_GMLMathEpsilon,false)==0){___swc121___=11;}else if(yyCompareVal(___sw120___,YYASSET_REF(0x0100005E),g_GMLMathEpsilon,false)==0){___swc121___=12; }else if(yyCompareVal(___sw120___,YYASSET_REF(0x010000E5),g_GMLMathEpsilon,false)==0){___swc121___=13;}else if(yyCompareVal(___sw120___,YYASSET_REF(0x01000142),g_GMLMathEpsilon,false)==0){___swc121___=14;}else if(yyCompareVal(___sw120___,YYASSET_REF(0x01000143),g_GMLMathEpsilon,false)==0){___swc121___=15;}else if(yyCompareVal(___sw120___,YYASSET_REF(0x01000168),g_GMLMathEpsilon,false)==0){___swc121___=16;}else if(yyCompareVal(___sw120___,YYASSET_REF(0x01000162),g_GMLMathEpsilon,false)==0){___swc121___=17; }else if(yyCompareVal(___sw120___,YYASSET_REF(0x0100014A),g_GMLMathEpsilon,false)==0){___swc121___=18;}else if(yyCompareVal(___sw120___,YYASSET_REF(0x0100012D),g_GMLMathEpsilon,false)==0){___swc121___=19;}else if(yyCompareVal(___sw120___,YYASSET_REF(0x0100010A),g_GMLMathEpsilon,false)==0){___swc121___=20;}else if(yyCompareVal(___sw120___,YYASSET_REF(0x010000FA),g_GMLMathEpsilon,false)==0){___swc121___=21;}else if(yyCompareVal(___sw120___,YYASSET_REF(0x01000195),g_GMLMathEpsilon,false)==0){___swc121___=22; }else if(yyCompareVal(___sw120___,YYASSET_REF(0x01000117),g_GMLMathEpsilon,false)==0){___swc121___=23;}else if(yyCompareVal(___sw120___,YYASSET_REF(0x010000C7),g_GMLMathEpsilon,false)==0){___swc121___=24;}else if(yyCompareVal(___sw120___,YYASSET_REF(0x01000119),g_GMLMathEpsilon,false)==0){___swc121___=25;}else if(yyCompareVal(___sw120___,YYASSET_REF(0x01000103),g_GMLMathEpsilon,false)==0){___swc121___=26;}else if(yyCompareVal(___sw120___,YYASSET_REF(0x010000A6),g_GMLMathEpsilon,false)==0){___swc121___=27; }else if(yyCompareVal(___sw120___,YYASSET_REF(0x01000197),g_GMLMathEpsilon,false)==0){___swc121___=28;}else if(yyCompareVal(___sw120___,YYASSET_REF(0x01000173),g_GMLMathEpsilon,false)==0){___swc121___=29;}else if(yyCompareVal(___sw120___,YYASSET_REF(0x01000147),g_GMLMathEpsilon,false)==0){___swc121___=30;}else if(yyCompareVal(___sw120___,YYASSET_REF(0x01000048),g_GMLMathEpsilon,false)==0){___swc121___=31;}else if(yyCompareVal(___sw120___,YYASSET_REF(0x01000160),g_GMLMathEpsilon,false)==0){___swc121___=32; }else if(yyCompareVal(___sw120___,YYASSET_REF(0x01000010),g_GMLMathEpsilon,false)==0){___swc121___=33;}else if(yyCompareVal(___sw120___,YYASSET_REF(0x01000163),g_GMLMathEpsilon,false)==0){___swc121___=34;}else if(yyCompareVal(___sw120___,YYASSET_REF(0x010000FF),g_GMLMathEpsilon,false)==0){___swc121___=35;}else if(yyCompareVal(___sw120___,YYASSET_REF(0x01000102),g_GMLMathEpsilon,false)==0){___swc121___=36;}else if(yyCompareVal(___sw120___,YYASSET_REF(0x0100016F),g_GMLMathEpsilon,false)==0){___swc121___=37; }else if(yyCompareVal(___sw120___,YYASSET_REF(0x010000F6),g_GMLMathEpsilon,false)==0){___swc121___=38;}else if(yyCompareVal(___sw120___,YYASSET_REF(0x01000155),g_GMLMathEpsilon,false)==0){___swc121___=39;}else if(yyCompareVal(___sw120___,YYASSET_REF(0x0100010F),g_GMLMathEpsilon,false)==0){___swc121___=40;}switch(___swc121___){case 0:{{return true;};}case 1:{{return true;};}case 2:{{return true;};}case 3:{{return true;};}case 4:{{return true;};}case 5:{{return true;};}case 6:{{return true;};}case 7:{{return true;}; }case 8:{{return true;};}case 9:{{return true;};}case 10:{{return true;};}case 11:{{return true;};}case 12:{{return true;};}case 13:{{return true;};}case 14:{{return true;};}case 15:{{return true;};}case 16:{{return true;};}case 17:{{return true;};}case 18:{{return true;};}case 19:{{return true;};}case 20:{{return true;};}case 21:{{return true;};}case 22:{{return true;};}case 23:{{return true;};}case 24:{{return true;};}case 25:{{return true;};}case 26:{{return true;};}case 27:{{return true;};}case 28:{{return true;};}case 29:{{return true; };}case 30:{{return true;};}case 31:{{return true;};}case 32:{{return true;};}case 33:{{return true;};}case 34:{{return true;};}case 35:{{return true;};}case 36:{{return true;};}case 37:{{return true;};}case 38:{{return true;};}case 39:{{return true;};}case 40:{{return true;};}};return false;};};if(yyfequal(argument1,0)){{var ___sw122___=argument0;var ___swc123___=-1;if(yyCompareVal(___sw122___,YYASSET_REF(0x0100004C),g_GMLMathEpsilon,false)==0){___swc123___=0;}else if(yyCompareVal(___sw122___,YYASSET_REF(0x01000042),g_GMLMathEpsilon, false)==0){___swc123___=1;}else if(yyCompareVal(___sw122___,YYASSET_REF(0x01000043),g_GMLMathEpsilon,false)==0){___swc123___=2;}else if(yyCompareVal(___sw122___,YYASSET_REF(0x01000044),g_GMLMathEpsilon,false)==0){___swc123___=3;}else if(yyCompareVal(___sw122___,YYASSET_REF(0x0100003E),g_GMLMathEpsilon,false)==0){___swc123___=4;}else if(yyCompareVal(___sw122___,YYASSET_REF(0x01000040),g_GMLMathEpsilon,false)==0){___swc123___=5;}else if(yyCompareVal(___sw122___,YYASSET_REF(0x01000041),g_GMLMathEpsilon, false)==0){___swc123___=6;}else if(yyCompareVal(___sw122___,YYASSET_REF(0x0100010D),g_GMLMathEpsilon,false)==0){___swc123___=7;}else if(yyCompareVal(___sw122___,YYASSET_REF(0x01000128),g_GMLMathEpsilon,false)==0){___swc123___=8;}else if(yyCompareVal(___sw122___,YYASSET_REF(0x01000032),g_GMLMathEpsilon,false)==0){___swc123___=9;}else if(yyCompareVal(___sw122___,YYASSET_REF(0x01000033),g_GMLMathEpsilon,false)==0){___swc123___=10;}else if(yyCompareVal(___sw122___,YYASSET_REF(0x01000034),g_GMLMathEpsilon, false)==0){___swc123___=11;}else if(yyCompareVal(___sw122___,YYASSET_REF(0x0100002C),g_GMLMathEpsilon,false)==0){___swc123___=12;}else if(yyCompareVal(___sw122___,YYASSET_REF(0x0100003C),g_GMLMathEpsilon,false)==0){___swc123___=13;}else if(yyCompareVal(___sw122___,YYASSET_REF(0x0100003A),g_GMLMathEpsilon,false)==0){___swc123___=14;}else if(yyCompareVal(___sw122___,YYASSET_REF(0x01000037),g_GMLMathEpsilon,false)==0){___swc123___=15;}else if(yyCompareVal(___sw122___,YYASSET_REF(0x01000038),g_GMLMathEpsilon, false)==0){___swc123___=16;}else if(yyCompareVal(___sw122___,YYASSET_REF(0x01000039),g_GMLMathEpsilon,false)==0){___swc123___=17;}else if(yyCompareVal(___sw122___,YYASSET_REF(0x0100003B),g_GMLMathEpsilon,false)==0){___swc123___=18;}else if(yyCompareVal(___sw122___,YYASSET_REF(0x01000045),g_GMLMathEpsilon,false)==0){___swc123___=19;}else if(yyCompareVal(___sw122___,YYASSET_REF(0x01000046),g_GMLMathEpsilon,false)==0){___swc123___=20;}else if(yyCompareVal(___sw122___,YYASSET_REF(0x0100009D),g_GMLMathEpsilon, false)==0){___swc123___=21;}else if(yyCompareVal(___sw122___,YYASSET_REF(0x01000047),g_GMLMathEpsilon,false)==0){___swc123___=22;}else if(yyCompareVal(___sw122___,YYASSET_REF(0x0100002A),g_GMLMathEpsilon,false)==0){___swc123___=23;}else if(yyCompareVal(___sw122___,YYASSET_REF(0x01000029),g_GMLMathEpsilon,false)==0){___swc123___=24;}else if(yyCompareVal(___sw122___,YYASSET_REF(0x01000176),g_GMLMathEpsilon,false)==0){___swc123___=25;}else if(yyCompareVal(___sw122___,YYASSET_REF(0x0100002B),g_GMLMathEpsilon, false)==0){___swc123___=26;}else if(yyCompareVal(___sw122___,YYASSET_REF(0x01000028),g_GMLMathEpsilon,false)==0){___swc123___=27;}else if(yyCompareVal(___sw122___,YYASSET_REF(0x0100002D),g_GMLMathEpsilon,false)==0){___swc123___=28;}else if(yyCompareVal(___sw122___,YYASSET_REF(0x0100002E),g_GMLMathEpsilon,false)==0){___swc123___=29;}else if(yyCompareVal(___sw122___,YYASSET_REF(0x0100002F),g_GMLMathEpsilon,false)==0){___swc123___=30;}else if(yyCompareVal(___sw122___,YYASSET_REF(0x01000049),g_GMLMathEpsilon, false)==0){___swc123___=31;}else if(yyCompareVal(___sw122___,YYASSET_REF(0x0100004B),g_GMLMathEpsilon,false)==0){___swc123___=32;}else if(yyCompareVal(___sw122___,YYASSET_REF(0x01000025),g_GMLMathEpsilon,false)==0){___swc123___=33;}else if(yyCompareVal(___sw122___,YYASSET_REF(0x01000026),g_GMLMathEpsilon,false)==0){___swc123___=34;}else if(yyCompareVal(___sw122___,YYASSET_REF(0x01000027),g_GMLMathEpsilon,false)==0){___swc123___=35;}else if(yyCompareVal(___sw122___,YYASSET_REF(0x01000024),g_GMLMathEpsilon, false)==0){___swc123___=36;}else if(yyCompareVal(___sw122___,YYASSET_REF(0x01000035),g_GMLMathEpsilon,false)==0){___swc123___=37;}else if(yyCompareVal(___sw122___,YYASSET_REF(0x01000036),g_GMLMathEpsilon,false)==0){___swc123___=38;}else if(yyCompareVal(___sw122___,YYASSET_REF(0x0100016B),g_GMLMathEpsilon,false)==0){___swc123___=39;}else if(yyCompareVal(___sw122___,YYASSET_REF(0x0100003D),g_GMLMathEpsilon,false)==0){___swc123___=40;}switch(___swc123___){case 0:{{return true;};}case 1:{{return true;};}case 2:{ {return true;};}case 3:{{return true;};}case 4:{{return true;};}case 5:{{return true;};}case 6:{{return true;};}case 7:{{return true;};}case 8:{{return true;};}case 9:{{return true;};}case 10:{{return true;};}case 11:{{return true;};}case 12:{{return true;};}case 13:{{return true;};}case 14:{{return true;};}case 15:{{return true;};}case 16:{{return true;};}case 17:{{return true;};}case 18:{{return true;};}case 19:{{return true;};}case 20:{{return true;};}case 21:{{return true;};}case 22:{{return true;};}case 23:{{return true;};}case 24:{{ return true;};}case 25:{{return true;};}case 26:{{return true;};}case 27:{{return true;};}case 28:{{return true;};}case 29:{{return true;};}case 30:{{return true;};}case 31:{{return true;};}case 32:{{return true;};}case 33:{{return true;};}case 34:{{return true;};}case 35:{{return true;};}case 36:{{return true;};}case 37:{{return true;};}case 38:{{return true;};}case 39:{{return true;};}case 40:{{return true;};}};return false;};};return false;}}function gml_Script_s_get_team_body_type(_inst,_other,argument0,argument1,argument2){{var gmlPLAYER_TEAM_MIN_BULKY=8; var gmlAI_TEAM_MIN_RATING=15;{var __yy__v45=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v46 in __yy__v45){if(!__yy__v45.hasOwnProperty(__yy__v46))continue;var __yy__v47=__yy__v45[__yy__v46];{if((yyGetBool(yyfequal(ds_map_find_value(argument0,"uid"),__yy__v47.gmlmyteam_id)))&&(yyGetBool(!yyGetBool(global.gmlexhibition)))){{var gmlbulkyCount=0;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v47.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ {var gmlpmap=ds_list_find_value(__yy__v47.gmlroster,gmli);gmlbulkyCount=gml_Script_s_get_player_body_type(__yy__v47,_inst,true,gmlpmap,(-1));}};if(yyfgreaterequal(gmlbulkyCount,gmlPLAYER_TEAM_MIN_BULKY)){{gml_Script_slog(__yy__v47,_inst,yyfplus("tbt:BODY_BULKY - bulkyCount:",__yy_gml_errCheck(string(gmlbulkyCount))));return 2;};}else {{gml_Script_slog(__yy__v47,_inst,yyfplus("tbt:BODY_THIN - bulkyCount:",__yy_gml_errCheck(string(gmlbulkyCount))));return 1;};};};}else {{if(yyfgreater(yyfplus(__yy_gml_errCheck(argument1), __yy_gml_errCheck(argument2)),gmlAI_TEAM_MIN_RATING)){{gml_Script_slog(__yy__v47,_inst,yyfplus("tbt:BODY_BULKY - def+off:",__yy_gml_errCheck(string(yyfplus(__yy_gml_errCheck(argument1),__yy_gml_errCheck(argument2))))));return 2;};}else {{gml_Script_slog(__yy__v47,_inst,yyfplus("tbt:BODY_THIN - def+off:",__yy_gml_errCheck(string(yyfplus(__yy_gml_errCheck(argument1),__yy_gml_errCheck(argument2))))));return 1;};};};};}}};gml_Script_slog(_inst,_other,"tbt:BODY_BULKY - ??");return 2;}}function gml_GlobalScript_s_college_details(_inst, _other){(_inst.gmls_college_details_init=__yy_method(_inst,gml_Script_s_college_details_init));(_inst.gmls_reset_team_selections=__yy_method(_inst,gml_Script_s_reset_team_selections));(_inst.gmls_college_details_hide=__yy_method(_inst,gml_Script_s_college_details_hide));(_inst.gmls_college_details_center=__yy_method(_inst,gml_Script_s_college_details_center));(_inst.gmls_college_details_bottom_panel_init=__yy_method(_inst,gml_Script_s_college_details_bottom_panel_init));(_inst.gmls_college_details_bottom_panel_draw_gui=__yy_method(_inst, gml_Script_s_college_details_bottom_panel_draw_gui));(_inst.gmls_college_details_bottom_panel_create_buttons=__yy_method(_inst,gml_Script_s_college_details_bottom_panel_create_buttons));(_inst.gmls_college_details_favorite_btn_action=__yy_method(_inst,gml_Script_s_college_details_favorite_btn_action));(_inst.gmls_college_details_starting_btn_action=__yy_method(_inst,gml_Script_s_college_details_starting_btn_action));(_inst.gmls_college_details_difficulty_btn_action=__yy_method(_inst,gml_Script_s_college_details_difficulty_btn_action)); (_inst.gmls_get_college_details_favorite_label_text=__yy_method(_inst,gml_Script_s_get_college_details_favorite_label_text));(_inst.gmls_get_college_details_starting_label_text=__yy_method(_inst,gml_Script_s_get_college_details_starting_label_text));(_inst.gmls_get_college_details_difficulty_label_text=__yy_method(_inst,gml_Script_s_get_college_details_difficulty_label_text));(_inst.gmls_college_details_btn_draw=__yy_method(_inst,gml_Script_s_college_details_btn_draw));(_inst.gmls_create_starting_teams_list=__yy_method(_inst, gml_Script_s_create_starting_teams_list));(_inst.gmls_add_starting_team=__yy_method(_inst,gml_Script_s_add_starting_team));(_inst.gmls_is_starting_team_selectable=__yy_method(_inst,gml_Script_s_is_starting_team_selectable));(_inst.gmls_count_starting_team_selectable_conference=__yy_method(_inst,gml_Script_s_count_starting_team_selectable_conference));(_inst.gmls_get_random_non_rival_team=__yy_method(_inst,gml_Script_s_get_random_non_rival_team));}function gml_Script____struct___61_s_college_details_init_gml_GlobalScript_s_college_details(_inst, _other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___61_s_college_details_init_gml_GlobalScript_s_college_details";}if(gml_Script____struct___61_s_college_details_init_gml_GlobalScript_s_college_details.prototype.__type===undefined){gml_Script____struct___61_s_college_details_init_gml_GlobalScript_s_college_details.prototype.__type="gml_Script____struct___61_s_college_details_init_gml_GlobalScript_s_college_details";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___61_s_college_details_init_gml_GlobalScript_s_college_details.prototype); {var $$args=Array.prototype.slice.call(arguments);{_inst.x=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.y=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlw=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.gmlh=$$args[__yy_gml_array_check_index(2+(3),$$args)];_inst.layer=$$args[__yy_gml_array_check_index(2+(4),$$args)];}}}}function gml_Script____struct___62_s_college_details_init_gml_GlobalScript_s_college_details(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___62_s_college_details_init_gml_GlobalScript_s_college_details"; }if(gml_Script____struct___62_s_college_details_init_gml_GlobalScript_s_college_details.prototype.__type===undefined){gml_Script____struct___62_s_college_details_init_gml_GlobalScript_s_college_details.prototype.__type="gml_Script____struct___62_s_college_details_init_gml_GlobalScript_s_college_details";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___62_s_college_details_init_gml_GlobalScript_s_college_details.prototype);{var $$args=Array.prototype.slice.call(arguments); {_inst.sprite_index=YYASSET_REF(0x01000131);_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.image_yscale=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlaction_create=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.gmlaction_draw_gui=$$args[__yy_gml_array_check_index(2+(3),$$args)];}}}}function gml_Script_s_college_details_init(_inst,_other){{gml_Script_s_college_details_center(_inst,_other,__yy_gml_array_create([100024,100032,100033,100025,100026,100035, 100036]));gml_Script_s_college_details_hide(_inst,_other,__yy_gml_array_create([100029,100028,100034,100038,100037,100030]));var gmlpd=__yy_gml_object_create(_inst,(_inst.gml___struct___61=__yy_method(_inst,gml_Script____struct___61_s_college_details_init_gml_GlobalScript_s_college_details)),yyInst(_inst,_other,100024).x,yyfplus(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100024).y),__yy_gml_errCheck(yyInst(_inst,_other,100024).sprite_height)),20),yyfminus(yyfplus(__yy_gml_errCheck(yyInst(_inst, _other,100035).x),__yy_gml_errCheck(yyInst(_inst,_other,100035).sprite_width)),__yy_gml_errCheck(yyInst(_inst,_other,100024).x)),yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100024).sprite_height),10),yyInst(_inst,_other,100024).layer);gml_Script_s_reset_team_selections(_inst,_other);instance_create_layer(yyInst(_inst,_other,gmlpd).x,yyInst(_inst,_other,gmlpd).y,yyInst(_inst,_other,gmlpd).layer,YYASSET_REF(0x0000001D),__yy_gml_object_create(_inst,(_inst.gml___struct___62=__yy_method(_inst,gml_Script____struct___62_s_college_details_init_gml_GlobalScript_s_college_details)), yyfdivide(__yy_gml_errCheck(yyInst(_inst,_other,gmlpd).gmlw),16),yyfdivide(__yy_gml_errCheck(yyInst(_inst,_other,gmlpd).gmlh),16),kgml_Script_s_college_details_bottom_panel_init,kgml_Script_s_college_details_bottom_panel_draw_gui));gml_Script_s_loading_button_hijack(_inst,_other,100027);}}function gml_Script____struct___63_s_reset_team_selections_gml_GlobalScript_s_college_details(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___63_s_reset_team_selections_gml_GlobalScript_s_college_details"; }if(gml_Script____struct___63_s_reset_team_selections_gml_GlobalScript_s_college_details.prototype.__type===undefined){gml_Script____struct___63_s_reset_team_selections_gml_GlobalScript_s_college_details.prototype.__type="gml_Script____struct___63_s_reset_team_selections_gml_GlobalScript_s_college_details";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___63_s_reset_team_selections_gml_GlobalScript_s_college_details.prototype);{var $$args=Array.prototype.slice.call(arguments); {_inst.gmlfavorite_team_id=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlstarting_team_id=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlmode=0;_inst.gmlstarting_teams=$$args[__yy_gml_array_check_index(2+(2),$$args)];}}}}function gml_Script_s_reset_team_selections(_inst,_other,argument0){{if(yyfequal(argument0,_inst.undefined)){argument0=false;};}{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){return;};if((yyGetBool(!yyGetBool(variable_instance_exists(global.gmlg_m,"team_selections"))))||(yyGetBool(argument0))||(yyGetBool(yyfless(array_length(yyInst(_inst, _other,yyInst(_inst,_other,global.gmlg_m).gmlteam_selections).gmlstarting_teams),1)))){{yyInst(_inst,_other,global.gmlg_m).gmlteam_selections=__yy_gml_object_create(_inst,(_inst.gml___struct___63=__yy_method(_inst,gml_Script____struct___63_s_reset_team_selections_gml_GlobalScript_s_college_details)),yyInst(_inst,_other,global.gmlg_m).gmlfavourite_team_id,ds_map_find_value(yyInst(_inst,_other,global.gmlg_m).gmlmyteam,"uid"),gml_Script_s_create_starting_teams_list(_inst,_other));{var __yy__v48=GetWithArray(yyInst(_inst, _other,global.gmlg_m).gmlteam_selections);for(var __yy__v49 in __yy__v48){if(!__yy__v48.hasOwnProperty(__yy__v49))continue;var __yy__v50=__yy__v48[__yy__v49];{if(yyfgreater(array_length(__yy__v50.gmlstarting_teams),0)){{__yy__v50.gmlstarting_team_id=__yy__v50.gmlstarting_teams[__yy_gml_array_check_index(irandom(yyfminus(__yy_gml_errCheck(array_length(__yy__v50.gmlstarting_teams)),1)),__yy__v50.gmlstarting_teams)];__yy__v50.gmlfavorite_team_id=gml_Script_s_get_random_non_rival_team(__yy__v50,_inst,__yy__v50.gmlstarting_team_id); };};}}};};};}}function gml_Script_anon_s_college_details_hide_gml_GlobalScript_s_college_details_2339_s_college_details_hide_gml_GlobalScript_s_college_details(_inst,_other,argument0,argument1){{yyInst(_inst,_other,argument0).visible=false;}}function gml_Script_s_college_details_hide(_inst,_other,argument0){{array_foreach(argument0,__yy_method(_inst,gml_Script_anon_s_college_details_hide_gml_GlobalScript_s_college_details_2339_s_college_details_hide_gml_GlobalScript_s_college_details));}}function gml_Script_anon_s_college_details_center_gml_GlobalScript_s_college_details_2470_s_college_details_center_gml_GlobalScript_s_college_details(_inst, _other,argument0,argument1){{yyInst(_inst,_other,argument0).x=yyfplus(yyInst(_inst,_other,argument0).x,(-44));}}function gml_Script_s_college_details_center(_inst,_other,argument0){{array_foreach(argument0,__yy_method(_inst,gml_Script_anon_s_college_details_center_gml_GlobalScript_s_college_details_2470_s_college_details_center_gml_GlobalScript_s_college_details));}}function gml_Script____struct___64_s_college_details_bottom_panel_init_gml_GlobalScript_s_college_details(_inst,_other){if(_inst.__yyIsGMLObject){ _inst.__type="gml_Script____struct___64_s_college_details_bottom_panel_init_gml_GlobalScript_s_college_details";}if(gml_Script____struct___64_s_college_details_bottom_panel_init_gml_GlobalScript_s_college_details.prototype.__type===undefined){gml_Script____struct___64_s_college_details_bottom_panel_init_gml_GlobalScript_s_college_details.prototype.__type="gml_Script____struct___64_s_college_details_bottom_panel_init_gml_GlobalScript_s_college_details";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst, gml_Script____struct___64_s_college_details_bottom_panel_init_gml_GlobalScript_s_college_details.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltitle=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlbtn_action=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlbtn_draw=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.x=$$args[__yy_gml_array_check_index(2+(3),$$args)];_inst.y=$$args[__yy_gml_array_check_index(2+(4),$$args)];_inst.gmltext=$$args[__yy_gml_array_check_index(2+(5), $$args)];_inst.gmlcolor=16777215;}}}}function gml_Script____struct___65_s_college_details_bottom_panel_init_gml_GlobalScript_s_college_details(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___65_s_college_details_bottom_panel_init_gml_GlobalScript_s_college_details";}if(gml_Script____struct___65_s_college_details_bottom_panel_init_gml_GlobalScript_s_college_details.prototype.__type===undefined){gml_Script____struct___65_s_college_details_bottom_panel_init_gml_GlobalScript_s_college_details.prototype.__type="gml_Script____struct___65_s_college_details_bottom_panel_init_gml_GlobalScript_s_college_details"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___65_s_college_details_bottom_panel_init_gml_GlobalScript_s_college_details.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltitle=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlbtn_action=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlbtn_draw=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.x=$$args[__yy_gml_array_check_index(2+(3),$$args)];_inst.y=$$args[__yy_gml_array_check_index(2+(4), $$args)];_inst.gmltext=$$args[__yy_gml_array_check_index(2+(5),$$args)];_inst.gmlcolor=$$args[__yy_gml_array_check_index(2+(6),$$args)];}}}}function gml_Script____struct___66_s_college_details_bottom_panel_init_gml_GlobalScript_s_college_details(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___66_s_college_details_bottom_panel_init_gml_GlobalScript_s_college_details";}if(gml_Script____struct___66_s_college_details_bottom_panel_init_gml_GlobalScript_s_college_details.prototype.__type===undefined){ gml_Script____struct___66_s_college_details_bottom_panel_init_gml_GlobalScript_s_college_details.prototype.__type="gml_Script____struct___66_s_college_details_bottom_panel_init_gml_GlobalScript_s_college_details";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___66_s_college_details_bottom_panel_init_gml_GlobalScript_s_college_details.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltitle=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlbtn_action=$$args[__yy_gml_array_check_index(2+(1), $$args)];_inst.gmlbtn_draw=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.x=$$args[__yy_gml_array_check_index(2+(3),$$args)];_inst.y=$$args[__yy_gml_array_check_index(2+(4),$$args)];_inst.gmltext=$$args[__yy_gml_array_check_index(2+(5),$$args)];_inst.gmlcolor=16777215;}}}}function gml_Script_s_college_details_bottom_panel_init(_inst,_other){{_inst.gml_col=__yy_gml_array_create([__yy_gml_object_create(_inst,(_inst.gml___struct___64=__yy_method(_inst,gml_Script____struct___64_s_college_details_bottom_panel_init_gml_GlobalScript_s_college_details)), gml_Script_s_str_u(_inst,_other,"ui_Favorite"),kgml_Script_s_college_details_favorite_btn_action,kgml_Script_s_college_details_btn_draw,yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2))),__yy_gml_errCheck(yyftime(yyfdivide(__yy_gml_errCheck(_inst.sprite_width),6),(-2)))),4),_inst.y,gml_Script_s_get_college_details_favorite_label_text(_inst,_other)),__yy_gml_object_create(_inst,(_inst.gml___struct___65=__yy_method(_inst,gml_Script____struct___65_s_college_details_bottom_panel_init_gml_GlobalScript_s_college_details)), gml_Script_s_str_u(_inst,_other,"ui_Starting"),kgml_Script_s_college_details_starting_btn_action,kgml_Script_s_college_details_btn_draw,yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2))),__yy_gml_errCheck(yyftime(yyfdivide(__yy_gml_errCheck(_inst.sprite_width),6),0))),_inst.y,gml_Script_s_get_college_details_starting_label_text(_inst,_other),global.gmlc_primary),__yy_gml_object_create(_inst,(_inst.gml___struct___66=__yy_method(_inst, gml_Script____struct___66_s_college_details_bottom_panel_init_gml_GlobalScript_s_college_details)),gml_Script_s_str_u(_inst,_other,"ui_Difficulty"),kgml_Script_s_college_details_difficulty_btn_action,kgml_Script_s_college_details_btn_draw,yyfminus(yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2))),__yy_gml_errCheck(yyftime(yyfdivide(__yy_gml_errCheck(_inst.sprite_width),6),2))),4),_inst.y,gml_Script_s_get_college_details_difficulty_label_text(_inst, _other))]);gml_Script_s_college_details_bottom_panel_create_buttons(_inst,_other,_inst.gml_col[__yy_gml_array_check_index(0,_inst.gml_col)]);gml_Script_s_college_details_bottom_panel_create_buttons(_inst,_other,_inst.gml_col[__yy_gml_array_check_index(1,_inst.gml_col)]);gml_Script_s_college_details_bottom_panel_create_buttons(_inst,_other,_inst.gml_col[__yy_gml_array_check_index(2,_inst.gml_col)]);}}function gml_Script_s_college_details_bottom_panel_draw_gui(_inst,_other){{draw_sprite_ext(_inst,_inst.sprite_index, _inst.image_index,_inst.x,_inst.y,_inst.image_xscale,_inst.image_yscale,0,16777215,1);draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);gml_Script_draw_hd_text(_inst,_other,yyInst(_inst,_other,_inst.gml_col[__yy_gml_array_check_index(0,_inst.gml_col)]).x,yyInst(_inst,_other,_inst.gml_col[__yy_gml_array_check_index(0,_inst.gml_col)]).y,yyInst(_inst,_other,_inst.gml_col[__yy_gml_array_check_index(0,_inst.gml_col)]).gmltitle,true);gml_Script_draw_hd_text(_inst,_other,yyInst(_inst,_other,_inst.gml_col[__yy_gml_array_check_index(1, _inst.gml_col)]).x,yyInst(_inst,_other,_inst.gml_col[__yy_gml_array_check_index(1,_inst.gml_col)]).y,yyInst(_inst,_other,_inst.gml_col[__yy_gml_array_check_index(1,_inst.gml_col)]).gmltitle,true);gml_Script_draw_hd_text(_inst,_other,yyInst(_inst,_other,_inst.gml_col[__yy_gml_array_check_index(2,_inst.gml_col)]).x,yyInst(_inst,_other,_inst.gml_col[__yy_gml_array_check_index(2,_inst.gml_col)]).y,yyInst(_inst,_other,_inst.gml_col[__yy_gml_array_check_index(2,_inst.gml_col)]).gmltitle,true);}}function gml_Script____struct___67_s_college_details_bottom_panel_create_buttons_gml_GlobalScript_s_college_details(_inst, _other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___67_s_college_details_bottom_panel_create_buttons_gml_GlobalScript_s_college_details";}if(gml_Script____struct___67_s_college_details_bottom_panel_create_buttons_gml_GlobalScript_s_college_details.prototype.__type===undefined){gml_Script____struct___67_s_college_details_bottom_panel_create_buttons_gml_GlobalScript_s_college_details.prototype.__type="gml_Script____struct___67_s_college_details_bottom_panel_create_buttons_gml_GlobalScript_s_college_details"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___67_s_college_details_bottom_panel_create_buttons_gml_GlobalScript_s_college_details.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.sprite_index=YYASSET_REF(0x01000131);_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.image_yscale=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlaction_draw_gui=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.gmlaction_tap=$$args[__yy_gml_array_check_index(2+(3), $$args)];_inst.gmlcol=$$args[__yy_gml_array_check_index(2+(4),$$args)];}}}}function gml_Script____struct___68_s_college_details_bottom_panel_create_buttons_gml_GlobalScript_s_college_details(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___68_s_college_details_bottom_panel_create_buttons_gml_GlobalScript_s_college_details";}if(gml_Script____struct___68_s_college_details_bottom_panel_create_buttons_gml_GlobalScript_s_college_details.prototype.__type===undefined){gml_Script____struct___68_s_college_details_bottom_panel_create_buttons_gml_GlobalScript_s_college_details.prototype.__type="gml_Script____struct___68_s_college_details_bottom_panel_create_buttons_gml_GlobalScript_s_college_details"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___68_s_college_details_bottom_panel_create_buttons_gml_GlobalScript_s_college_details.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.image_yscale=$$args[__yy_gml_array_check_index(2+(3),$$args)];_inst.gmlcol=$$args[__yy_gml_array_check_index(2+(4), $$args)];}}}}function gml_Script_s_college_details_bottom_panel_create_buttons(_inst,_other,argument0){{var gmlbw=100;var gmlbh=30;yyInst(_inst,_other,argument0).gmlbtn_label=instance_create_layer(yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,argument0).x),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlbw),2))),yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,argument0).y),10),_inst.layer,YYASSET_REF(0x0000001D),__yy_gml_object_create(_inst,(_inst.gml___struct___67=__yy_method(_inst,gml_Script____struct___67_s_college_details_bottom_panel_create_buttons_gml_GlobalScript_s_college_details)), yyfdivide(__yy_gml_errCheck(gmlbw),16),yyfdivide(__yy_gml_errCheck(gmlbh),16),yyInst(_inst,_other,argument0).gmlbtn_draw,yyInst(_inst,_other,argument0).gmlbtn_action,argument0));yyInst(_inst,_other,argument0).gmlbtn_inst=gml_Script_s_create_button(_inst,_other,yyfminus(yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,argument0).x),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlbw),2))),2),yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,argument0).y),10),__yy_gml_errCheck(gmlbh)),4), __yy_gml_object_create(_inst,(_inst.gml___struct___68=__yy_method(_inst,gml_Script____struct___68_s_college_details_bottom_panel_create_buttons_gml_GlobalScript_s_college_details)),gml_Script_s_str(_inst,_other,"ui_Change"),yyInst(_inst,_other,argument0).gmlbtn_action,yyfdivide(__yy_gml_errCheck(gmlbw),32),yyfdivide(__yy_gml_errCheck(gmlbh),32),argument0));}}function gml_Script_s_college_details_favorite_btn_action(_inst,_other){{yyInst(_inst,_other,yyInst(_inst,_other,global.gmlg_m).gmlteam_selections).gmlmode=1; gml_Script_btn_click_Change_Favourite(_inst,_other);}}function gml_Script_s_college_details_starting_btn_action(_inst,_other){{yyInst(_inst,_other,yyInst(_inst,_other,global.gmlg_m).gmlteam_selections).gmlmode=0;gml_Script_btn_click_Change_Favourite(_inst,_other);}}function gml_Script_s_college_details_difficulty_btn_action(_inst,_other){{{var __yy__v51=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v52 in __yy__v51){if(!__yy__v51.hasOwnProperty(__yy__v52))continue;var __yy__v53=__yy__v51[__yy__v52]; {__yy__v53.gmlop_difficulty=yyfplus(__yy__v53.gmlop_difficulty,1);if(yyfgreater(__yy__v53.gmlop_difficulty,4)){__yy__v53.gmlop_difficulty=0;};}}};yyInst(_inst,_other,_inst.gmlcol).gmltext=gml_Script_s_get_college_details_difficulty_label_text(_inst,_other);}}function gml_Script_s_get_college_details_favorite_label_text(_inst,_other){{return string_upper(gml_Script_s_get_team_name_by_id(_inst,_other,yyInst(_inst,_other,yyInst(_inst,_other,global.gmlg_m).gmlteam_selections).gmlfavorite_team_id));}}function gml_Script_s_get_college_details_starting_label_text(_inst, _other){{return string_upper(gml_Script_s_get_team_name_by_id(_inst,_other,yyInst(_inst,_other,yyInst(_inst,_other,global.gmlg_m).gmlteam_selections).gmlstarting_team_id));}}function gml_Script_s_get_college_details_difficulty_label_text(_inst,_other){{return string_upper(gml_Script_s_get_difficulty_str(_inst,_other));}}function gml_Script_s_college_details_btn_draw(_inst,_other){{draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y,_inst.image_xscale,_inst.image_yscale,0,16777215, 1);draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);gml_Script_draw_hd_text_color(_inst,_other,yyInst(_inst,_other,_inst.gmlcol).x,yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_height),2))),yyInst(_inst,_other,_inst.gmlcol).gmltext,yyInst(_inst,_other,_inst.gmlcol).gmlcolor,yyInst(_inst,_other,_inst.gmlcol).gmlcolor,yyInst(_inst,_other,_inst.gmlcol).gmlcolor,yyInst(_inst,_other,_inst.gmlcol).gmlcolor,1);}}function gml_Script_s_create_starting_teams_list(_inst, _other){{var gmllist=__yy_gml_array_create([]);var gmlfix;gml_Script_slogf(_inst,_other,"\n*** CREATING STARTING TEAMS LIST");var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,global.gmlg_m).gmlschedule));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlfix=ds_list_find_value(yyInst(_inst,_other,global.gmlg_m).gmlschedule,gmli);if(yyfequal(real(ds_map_find_value(gmlfix,"week")),gml_Script_s_get_skip_to_week(_inst,_other))){{ gml_Script_s_add_starting_team(_inst,_other,gmllist,ds_map_find_value(gmlfix,"away_team"),ds_map_find_value(gmlfix,"home_team"));gml_Script_s_add_starting_team(_inst,_other,gmllist,ds_map_find_value(gmlfix,"home_team"),ds_map_find_value(gmlfix,"away_team"));};};}};array_unique(gmllist);return gmllist;}}function gml_Script_s_add_starting_team(_inst,_other,argument0,argument1,argument2){{var gmlteam=gml_Script_s_get_team_by_id(_inst,_other,argument1);var gmltier=gml_Script_s_get_subdivision(_inst,_other, gmlteam);var gmlrank=yyInst(_inst,_other,gml_Script_s_get_ranking_pos_data(_inst,_other,gmlteam)).gmlpos;var gmlopp_team=gml_Script_s_get_team_by_id(_inst,_other,argument2);var gmlopp_tier=gml_Script_s_get_subdivision(_inst,_other,gmlopp_team);var gmlopp_rank=yyInst(_inst,_other,gml_Script_s_get_ranking_pos_data(_inst,_other,gmlopp_team)).gmlpos;var gmlstarting=gml_Script_s_get_map_real(_inst,_other,gmlteam,"starting",0);if(yyfequal(gmlstarting,(-1))){return;};if(yyfequal(gmlstarting,0)){{if((yyGetBool(yyfequal(gmltier, 1)))&&(yyGetBool(yyflessequal(gmlrank,100)))){return;};if((yyGetBool(yyfequal(gmltier,2)))&&(yyGetBool(yyflessequal(gmlrank,40)))){return;};};};if((yyGetBool(yyfequal(gmltier,2)))&&(yyGetBool(yyfequal(gmlopp_tier,1)))){return;};if(yyfless(gmlopp_rank,40)){return;};array_push(argument0,argument1);gml_Script_slogf(_inst,_other,"%1 tier: %2 rank_pos: %3",ds_map_find_value(gmlteam,"name"),gmltier,gmlrank);}}function gml_Script_s_is_starting_team_selectable(_inst,_other,argument0){{{};return array_contains(yyInst(_inst, _other,yyInst(_inst,_other,global.gmlg_m).gmlteam_selections).gmlstarting_teams,argument0);}}function gml_Script_s_count_starting_team_selectable_conference(_inst,_other,argument0){{var gmltl=gml_Script_s_get_team_list(_inst,_other,yyInst(_inst,_other,argument0).gmluid);var gmlcount=0;var gmli=0;for(;yyfless(gmli,array_length(gmltl));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{if(yyGetBool(gml_Script_s_is_starting_team_selectable(_inst, _other,ds_map_find_value(array_get(gmltl,gmli),"uid")))){(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__);};}};return gmlcount;}}function gml_Script_s_get_random_non_rival_team(_inst,_other,argument0){{var gmlst,gmlft,gmlft_id;var gmlsr_id,gmlfr_id;var gmlcnt=50;gmlst=gml_Script_s_get_team_by_id(_inst,_other,argument0);gmlsr_id=gml_Script_s_get_map_real(_inst,_other,gmlst,"rival",(-1));gml_Script_slogf(_inst,_other,"get random non rival team for %1", argument0);while(yyfgreater((g_yyPrePostObject__=gmlcnt,gmlcnt=(g_yyPrePostObject__ instanceof Long?gmlcnt.subtract(1):--gmlcnt),g_yyPrePostObject__),0)){{gmlft_id=gml_Script_s_get_random_team_id(_inst,_other);gmlft=gml_Script_s_get_team_by_id(_inst,_other,gmlft_id);gmlfr_id=gml_Script_s_get_map_real(_inst,_other,gmlft,"rival",(-1));if((yyGetBool(yyfnotequal(gmlfr_id,argument0)))&&(yyGetBool(yyfnotequal(gmlsr_id,gmlft_id)))){return gmlft_id;};gml_Script_slogf(_inst,_other,"%1 and %2 are rivals",argument0, gmlft_id);}};return gmlft_id;}}function gml_GlobalScript_s_recruitment_credits(_inst,_other){(_inst.gmlrecruitment_credits_cap_total=__yy_method(_inst,gml_Script_recruitment_credits_cap_total));(_inst.gmls_validate_recruitment_credits_cap=__yy_method(_inst,gml_Script_s_validate_recruitment_credits_cap));(_inst.gmlcan_fit_recruitment_credits=__yy_method(_inst,gml_Script_can_fit_recruitment_credits));(_inst.gmlrecruitment_credits_space=__yy_method(_inst,gml_Script_recruitment_credits_space));(_inst.gmlrecruitment_credits_add=__yy_method(_inst, gml_Script_recruitment_credits_add));(_inst.gmlrecruitment_credits_toggle_roster_size=__yy_method(_inst,gml_Script_recruitment_credits_toggle_roster_size));(_inst.gmlrecruitment_credits_button_click_boost=__yy_method(_inst,gml_Script_recruitment_credits_button_click_boost));(_inst.gmlbtn_response_boost_recruitment_credits=__yy_method(_inst,gml_Script_btn_response_boost_recruitment_credits));}function gml_Script_recruitment_credits_cap_total(_inst,_other){{return yyfplus(__yy_gml_errCheck(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlrecruitment_credits_cap),__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlboost_recruitment_credits_cap));}}function gml_Script_s_validate_recruitment_credits_cap(_inst,_other){{{var __yy__v54=GetWithArray(global.gmlg_m);for(var __yy__v55 in __yy__v54){if(!__yy__v54.hasOwnProperty(__yy__v55))continue;var __yy__v56=__yy__v54[__yy__v55];{var ___sw128___=__yy__v56.gmlrecruitment_credits_cap;var ___swc129___=-1;if(yyCompareVal(___sw128___,50,g_GMLMathEpsilon, false)==0||yyCompareVal(___sw128___,60,g_GMLMathEpsilon,false)==0){___swc129___=0;}switch(___swc129___){case 0:{break;}default :{gml_Script_slogf(__yy__v56,_inst,"Fixing invalid recruitment credits cap: %1",__yy__v56.gmlrecruitment_credits_cap);__yy__v56.gmlrecruitment_credits_cap=50;break;}};}}};}}function gml_Script_can_fit_recruitment_credits(_inst,_other,argument0){{var gmlmax_rc=gml_Script_recruitment_credits_cap_total(_inst,_other);var gmlnew_total=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlrecruitment_credits),__yy_gml_errCheck(argument0));if(yyflessequal(gmlnew_total,gmlmax_rc)){{return true;};}else {{return false;};};}}function gml_Script_recruitment_credits_space(_inst,_other){{return yyfminus(__yy_gml_errCheck(gml_Script_recruitment_credits_cap_total(_inst,_other)),__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrecruitment_credits));}}function gml_Script_recruitment_credits_add(_inst,_other,argument0){{var gmlmax_rc=gml_Script_recruitment_credits_cap_total(_inst, _other);var gmlold=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrecruitment_credits;yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrecruitment_credits=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrecruitment_credits,argument0);if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrecruitment_credits,gmlmax_rc)){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrecruitment_credits=gmlmax_rc;};};if(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrecruitment_credits,0)){ {yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrecruitment_credits=0;};};var gmldif=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrecruitment_credits),__yy_gml_errCheck(gmlold));if(yyfgreater(gmldif,0)){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrc_season_earned=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrc_season_earned,gmldif);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrc_lifetime_earned=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrc_lifetime_earned, gmldif);};}else {if(yyfless(gmldif,0)){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrc_season_spent=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrc_season_spent,gmldif);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrc_lifetime_spent=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrc_lifetime_spent,gmldif);};};};}}function gml_Script_recruitment_credits_toggle_roster_size(_inst,_other){{var ___sw130___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrecruitment_credits_cap;var ___swc131___=-1; if(yyCompareVal(___sw130___,50,g_GMLMathEpsilon,false)==0){___swc131___=0;}else if(yyCompareVal(___sw130___,60,g_GMLMathEpsilon,false)==0){___swc131___=1;}switch(___swc131___){case 0:{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrecruitment_credits_cap=60;break;}case 1:{if(yyfgreater(ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster),10)){{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_SalaryCheckRoster"),gml_Script_s_str(_inst,_other,"ui_Continue"), "",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};}else {if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrecruitment_credits,yyfplus(50,__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlboost_recruitment_credits_cap)))){{var gmlmaxRC=yyfplus(50,__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlboost_recruitment_credits_cap));var gmlmsg=gml_Script_s_str(_inst,_other,"msg_SalaryCheckAmount");gmlmsg=string_replace(gmlmsg,"$num",string(gmlmaxRC));gml_Script_s_create_message(_inst, _other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};}else {{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrecruitment_credits_cap=50;};};};break;}};}}function gml_Script_recruitment_credits_button_click_boost(_inst,_other){{if(yyfgreater(100,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit)){{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_BoostSalaryNoCredit");gmlmsg=string_replace(gmlmsg,"$num",string(yyfplus(__yy_gml_errCheck(gml_Script_recruitment_credits_cap_total(_inst, _other)),30)));gmlmsg=string_replace(gmlmsg,"$cost",string(100));gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};}else {{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_BoostSalaryCap");gmlmsg=string_replace(gmlmsg,"$num",string(yyfplus(__yy_gml_errCheck(gml_Script_recruitment_credits_cap_total(_inst,_other)),30)));gmlmsg=string_replace(gmlmsg,"$cost",string(100));gml_Script_s_create_message(_inst, _other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_btn_response_boost_recruitment_credits,global.gmlc_background,1);};};}}function gml_Script_btn_response_boost_recruitment_credits(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);{var __yy__v57=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v58 in __yy__v57){if(!__yy__v57.hasOwnProperty(__yy__v58))continue;var __yy__v59=__yy__v57[__yy__v58];{__yy__v59.gmlboost_recruitment_credits_cap=yyfplus(__yy__v59.gmlboost_recruitment_credits_cap, 30);__yy__v59.gmlcoach_credit=yyfminus(__yy__v59.gmlcoach_credit,100);if(yyfless(__yy__v59.gmlcoach_credit,0)){__yy__v59.gmlcoach_credit=0;};}}};room_goto(YYASSET_REF(0x03000009));}}function gml_GlobalScript_qb_contract_scripts(_inst,_other){(_inst.gmls_qb_mode_set_up_contract_screen=__yy_method(_inst,gml_Script_s_qb_mode_set_up_contract_screen));(_inst.gmls_qb_mode_new_contract=__yy_method(_inst,gml_Script_s_qb_mode_new_contract));(_inst.gmlbtn_contract_negotiate=__yy_method(_inst,gml_Script_btn_contract_negotiate)); (_inst.gmlbtn_contract_salary_minus=__yy_method(_inst,gml_Script_btn_contract_salary_minus));(_inst.gmlbtn_contract_salary_plus=__yy_method(_inst,gml_Script_btn_contract_salary_plus));(_inst.gmlbtn_contract_tdbonus_minus=__yy_method(_inst,gml_Script_btn_contract_tdbonus_minus));(_inst.gmlbtn_contract_tdbonus_plus=__yy_method(_inst,gml_Script_btn_contract_tdbonus_plus));(_inst.gmlbtn_contract_length_minus=__yy_method(_inst,gml_Script_btn_contract_length_minus));(_inst.gmlbtn_contract_length_plus=__yy_method(_inst, gml_Script_btn_contract_length_plus));(_inst.gmlbtn_negotiate_higher=__yy_method(_inst,gml_Script_btn_negotiate_higher));(_inst.gmlbtn_negotiate_lower=__yy_method(_inst,gml_Script_btn_negotiate_lower));(_inst.gmls_check_negotiate=__yy_method(_inst,gml_Script_s_check_negotiate));(_inst.gmls_check_hilo_buttons=__yy_method(_inst,gml_Script_s_check_hilo_buttons));(_inst.gmls_accept_contract=__yy_method(_inst,gml_Script_s_accept_contract));(_inst.gmls_reject_contract=__yy_method(_inst,gml_Script_s_reject_contract)); }function gml_Script_s_qb_mode_set_up_contract_screen(_inst,_other){{gml_Script_slog(_inst,_other,"s_qb_mode_set_up_contract_screen");{var __yy__v60=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v61 in __yy__v60){if(!__yy__v60.hasOwnProperty(__yy__v61))continue;var __yy__v62=__yy__v60[__yy__v61];{var gmlpmap=gml_Script_s_get_qb_pmap(__yy__v62,_inst);yyInst(_inst,_other,100725).gmltext=gml_Script_s_get_string_year(__yy__v62,_inst,true);yyInst(_inst,_other,100716).gmltext=ds_map_find_value(__yy__v62.gmlmyteam, "name");yyInst(_inst,_other,100718).gmltext=yyfplus(yyfplus(__yy_gml_errCheck(string(__yy__v62.gmlqb_salary))," cc / "),__yy_gml_errCheck(gml_Script_s_str(__yy__v62,_inst,"ui_Game")));yyInst(_inst,_other,100720).gmltext=yyfplus(__yy_gml_errCheck(string(__yy__v62.gmlqb_tdbonus))," cc");var gmlexpiry=yyfplus(yyfminus(__yy_gml_errCheck(__yy__v62.gmlyear),1),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"contract")));yyInst(_inst,_other,100722).gmltext=string_replace(gml_Script_s_str(__yy__v62,_inst,"ui_contract_expires"), "$year",gmlexpiry);yyInst(_inst,_other,100741).visible=false;if((yyGetBool(!yyGetBool(__yy__v62.gmlqb_new_offer)))&&(yyGetBool(__yy__v62.gmlnewteam))){__yy__v62.gmlqb_new_offer=gml_Script_s_qb_mode_new_contract(__yy__v62,_inst,__yy__v62.gmlnewteam);};if(!yyGetBool(__yy__v62.gmlqb_new_offer)){{yyInst(_inst,_other,100740).gmltext=gml_Script_s_str(__yy__v62,_inst,"ui_Request");yyInst(_inst,_other,100726).gmltext="-";yyInst(_inst,_other,100728).gmltext="-";yyInst(_inst,_other,100730).gmltext="-";yyInst(_inst, _other,100732).gmltext="-";yyInst(_inst,_other,100734).gmlactive=false;yyInst(_inst,_other,100735).gmlactive=false;yyInst(_inst,_other,100737).gmlactive=false;yyInst(_inst,_other,100736).gmlactive=false;yyInst(_inst,_other,100739).gmlactive=false;yyInst(_inst,_other,100738).gmlactive=false;};}else {{yyInst(_inst,_other,100714).visible=false;if(yyfgreater(ds_map_find_value(gmlpmap,"contract"),0)){yyInst(_inst,_other,100741).visible=true;};var gmltmap=gml_Script_s_get_team_by_id(__yy__v62,_inst,yyInst(_inst, _other,__yy__v62.gmlqb_new_offer).gml_teamid);yyInst(_inst,_other,100726).gmltext=ds_map_find_value(gmltmap,"name");var gmlinc=yyftime(__yy_gml_errCheck(ceil(yyfdivide(__yy_gml_errCheck(yyInst(_inst,_other,__yy__v62.gmlqb_new_offer).gml_salary),10))),__yy_gml_errCheck(yyInst(_inst,_other,__yy__v62.gmlqb_new_offer).gml_salary_neg));yyInst(_inst,_other,100728).gmltext=yyfplus(yyfplus(__yy_gml_errCheck(string(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,__yy__v62.gmlqb_new_offer).gml_salary),__yy_gml_errCheck(gmlinc)))), " cc / "),__yy_gml_errCheck(gml_Script_s_str(__yy__v62,_inst,"ui_Game")));yyInst(_inst,_other,100730).gmltext=yyfplus(__yy_gml_errCheck(string(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,__yy__v62.gmlqb_new_offer).gml_tdbonus),__yy_gml_errCheck(yyInst(_inst,_other,__yy__v62.gmlqb_new_offer).gml_tdbonus_neg))))," cc");yyInst(_inst,_other,100732).gmltext=string_replace(gml_Script_s_str(__yy__v62,_inst,"ui_contract_expires"),"$year",yyfplus(yyfplus(yyfminus(__yy_gml_errCheck(__yy__v62.gmlyear),1), __yy_gml_errCheck(yyInst(_inst,_other,__yy__v62.gmlqb_new_offer).gml_length)),__yy_gml_errCheck(yyInst(_inst,_other,__yy__v62.gmlqb_new_offer).gml_length_neg)));yyInst(_inst,_other,100728).gmltcolour=global.gmlc_primary;yyInst(_inst,_other,100730).gmltcolour=global.gmlc_primary;yyInst(_inst,_other,100732).gmltcolour=global.gmlc_primary;if(yyfgreater(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,__yy__v62.gmlqb_new_offer).gml_salary),__yy_gml_errCheck(gmlinc)),__yy__v62.gmlqb_salary)){yyInst(_inst, _other,100728).gmltcolour=65535;};if(yyfgreater(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,__yy__v62.gmlqb_new_offer).gml_tdbonus),__yy_gml_errCheck(yyInst(_inst,_other,__yy__v62.gmlqb_new_offer).gml_tdbonus_neg)),__yy__v62.gmlqb_tdbonus)){yyInst(_inst,_other,100730).gmltcolour=65535;};if(yyfgreater(yyInst(_inst,_other,__yy__v62.gmlqb_new_offer).gml_length,ds_map_find_value(gmlpmap,"contract"))){yyInst(_inst,_other,100732).gmltcolour=65535;};if(yyGetBool(yyInst(_inst,_other,__yy__v62.gmlqb_new_offer).gml_locked)){ {yyInst(_inst,_other,100734).gmlactive=false;yyInst(_inst,_other,100735).gmlactive=false;yyInst(_inst,_other,100737).gmlactive=false;yyInst(_inst,_other,100736).gmlactive=false;yyInst(_inst,_other,100739).gmlactive=false;yyInst(_inst,_other,100738).gmlactive=false;yyInst(_inst,_other,100740).gmltext=gml_Script_s_str(__yy__v62,_inst,"ui_Accept");};}else {{yyInst(_inst,_other,100734).gmlactive=true;yyInst(_inst,_other,100735).gmlactive=true;if(yyfless(yyInst(_inst,_other,__yy__v62.gmlqb_new_offer).gml_salary_neg, 1)){yyInst(_inst,_other,100734).gmlactive=false;};if(yyfgreater(yyInst(_inst,_other,__yy__v62.gmlqb_new_offer).gml_salary_neg,4)){yyInst(_inst,_other,100735).gmlactive=false;};yyInst(_inst,_other,100737).gmlactive=true;yyInst(_inst,_other,100736).gmlactive=true;if(yyfless(yyInst(_inst,_other,__yy__v62.gmlqb_new_offer).gml_tdbonus_neg,1)){yyInst(_inst,_other,100737).gmlactive=false;};if(yyfgreater(yyInst(_inst,_other,__yy__v62.gmlqb_new_offer).gml_tdbonus_neg,2)){yyInst(_inst,_other,100736).gmlactive=false; };yyInst(_inst,_other,100739).gmlactive=true;yyInst(_inst,_other,100738).gmlactive=true;if(yyfless(yyInst(_inst,_other,__yy__v62.gmlqb_new_offer).gml_length_neg,1)){yyInst(_inst,_other,100739).gmlactive=false;};if(yyfgreater(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,__yy__v62.gmlqb_new_offer).gml_length),__yy_gml_errCheck(yyInst(_inst,_other,__yy__v62.gmlqb_new_offer).gml_length_neg)),2)){yyInst(_inst,_other,100738).gmlactive=false;};if(yyfequal(yyfplus(yyfplus(__yy_gml_errCheck(yyInst(_inst, _other,__yy__v62.gmlqb_new_offer).gml_salary_neg),__yy_gml_errCheck(yyInst(_inst,_other,__yy__v62.gmlqb_new_offer).gml_tdbonus_neg)),__yy_gml_errCheck(yyInst(_inst,_other,__yy__v62.gmlqb_new_offer).gml_length_neg)),0)){yyInst(_inst,_other,100740).gmltext=gml_Script_s_str(__yy__v62,_inst,"ui_Accept");}else {yyInst(_inst,_other,100740).gmltext=gml_Script_s_str(__yy__v62,_inst,"ui_Negotiate");};};};};};}}};}}function gml_Script____struct___69_s_qb_mode_new_contract_gml_GlobalScript_qb_contract_scripts(_inst, _other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___69_s_qb_mode_new_contract_gml_GlobalScript_qb_contract_scripts";}if(gml_Script____struct___69_s_qb_mode_new_contract_gml_GlobalScript_qb_contract_scripts.prototype.__type===undefined){gml_Script____struct___69_s_qb_mode_new_contract_gml_GlobalScript_qb_contract_scripts.prototype.__type="gml_Script____struct___69_s_qb_mode_new_contract_gml_GlobalScript_qb_contract_scripts";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst, gml_Script____struct___69_s_qb_mode_new_contract_gml_GlobalScript_qb_contract_scripts.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gml_teamid=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gml_salary=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gml_tdbonus=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.gml_length=$$args[__yy_gml_array_check_index(2+(3),$$args)];_inst.gml_salary_neg=0;_inst.gml_tdbonus_neg=0;_inst.gml_length_neg=0;_inst.gml_locked=0; }}}}function gml_Script_s_qb_mode_new_contract(_inst,_other,argument0){{var gmlpmap=gml_Script_s_get_qb_pmap(_inst,_other);var gmlprating=gml_Script_s_get_player_rating(_inst,_other,gmlpmap);var gmloffer=__yy_gml_object_create(_inst,(_inst.gml___struct___69=__yy_method(_inst,gml_Script____struct___69_s_qb_mode_new_contract_gml_GlobalScript_qb_contract_scripts)),ds_map_find_value(argument0,"uid"),yyftime(__yy_gml_errCheck(gmlprating),10),gml_Script_s_get_player_rating(_inst,_other,gmlpmap),max(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap, "contract")),1),irandom_range(2,3)));if(yyfless(ds_map_find_value(gmlpmap,"contract"),1)){yyInst(_inst,_other,gmloffer).gml_length=1;};var gmltrating=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(gml_Script_s_get_team_offense_with_reputation_boost(_inst,_other,argument0)),__yy_gml_errCheck(gml_Script_s_get_team_defense_with_reputation_boost(_inst,_other,argument0)))),2);gml_Script_slog(_inst,_other,yyfplus("Team rating = ",__yy_gml_errCheck(string(gmltrating))));gml_Script_slog(_inst,_other, yyfplus("Player rating = ",__yy_gml_errCheck(string(gmlprating))));if(yyfgreater(gmltrating,gmlprating)){{while(yyfgreater(gmltrating,gmlprating)){{gmltrating=yyfminus(gmltrating,1);var ___sw138___=irandom(2);var ___swc139___=-1;if(yyCompareVal(___sw138___,0,g_GMLMathEpsilon,false)==0){___swc139___=0;}else if(yyCompareVal(___sw138___,1,g_GMLMathEpsilon,false)==0){___swc139___=1;}else if(yyCompareVal(___sw138___,2,g_GMLMathEpsilon,false)==0){___swc139___=2;}switch(___swc139___){case 0:{yyInst(_inst,_other, gmloffer).gml_salary=yyfminus(yyInst(_inst,_other,gmloffer).gml_salary,1);break;}case 1:{yyInst(_inst,_other,gmloffer).gml_tdbonus=yyfminus(yyInst(_inst,_other,gmloffer).gml_tdbonus,1);break;}case 2:{break;}};gml_Script_slog(_inst,_other,"-");}};};}else {{while(yyfless(gmltrating,gmlprating)){{gmlprating=yyfminus(gmlprating,1);var ___sw140___=irandom(2);var ___swc141___=-1;if(yyCompareVal(___sw140___,0,g_GMLMathEpsilon,false)==0){___swc141___=0;}else if(yyCompareVal(___sw140___,1,g_GMLMathEpsilon,false)==0){ ___swc141___=1;}else if(yyCompareVal(___sw140___,2,g_GMLMathEpsilon,false)==0){___swc141___=2;}switch(___swc141___){case 0:{yyInst(_inst,_other,gmloffer).gml_salary=yyfplus(yyInst(_inst,_other,gmloffer).gml_salary,1);break;}case 1:{yyInst(_inst,_other,gmloffer).gml_tdbonus=yyfplus(yyInst(_inst,_other,gmloffer).gml_tdbonus,1);break;}case 2:{break;}};gml_Script_slog(_inst,_other,"+");}};};};yyInst(_inst,_other,gmloffer).gml_salary=max(1,yyInst(_inst,_other,gmloffer).gml_salary);yyInst(_inst,_other,gmloffer).gml_tdbonus=max(0, yyInst(_inst,_other,gmloffer).gml_tdbonus);return gmloffer;}}function gml_Script_btn_contract_negotiate(_inst,_other){{var gmlsz=0;{var __yy__v63=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v64 in __yy__v63){if(!__yy__v63.hasOwnProperty(__yy__v64))continue;var __yy__v65=__yy__v63[__yy__v64];{if(!yyGetBool(__yy__v65.gmlqb_new_offer)){{if(yyfgreater(ds_map_find_value(gml_Script_s_get_qb_pmap(__yy__v65,_inst),"contract"),2)){{gml_Script_s_do_message(__yy__v65,_inst,gml_Script_s_str(__yy__v65,_inst, "msg_NegotiateNo_TooLong"));return;};}else {if(yyfless(__yy__v65.gmlweek,9)){{gml_Script_s_do_message(__yy__v65,_inst,gml_Script_s_str(__yy__v65,_inst,"msg_NegotiateNo_TooEarly"));return;};};};__yy__v65.gmlqb_new_offer=gml_Script_s_qb_mode_new_contract(__yy__v65,_inst,__yy__v65.gmlmyteam);gml_Script_s_qb_mode_set_up_contract_screen(__yy__v65,_inst);return;};}else {gmlsz=yyfplus(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,__yy__v65.gmlqb_new_offer).gml_salary_neg),__yy_gml_errCheck(yyInst(_inst,_other, __yy__v65.gmlqb_new_offer).gml_tdbonus_neg)),__yy_gml_errCheck(yyInst(_inst,_other,__yy__v65.gmlqb_new_offer).gml_length_neg));};}}};if(yyfgreater(gmlsz,0)){room_goto(YYASSET_REF(0x0300002B));}else {gml_Script_s_accept_contract(_inst,_other);};}}function gml_Script_btn_contract_salary_minus(_inst,_other){{{var __yy__v66=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v67 in __yy__v66){if(!__yy__v66.hasOwnProperty(__yy__v67))continue;var __yy__v68=__yy__v66[__yy__v67];yyInst(_inst,_other,__yy__v68.gmlqb_new_offer).gml_salary_neg=yyfminus(yyInst(_inst, _other,__yy__v68.gmlqb_new_offer).gml_salary_neg,1);}};gml_Script_s_qb_mode_set_up_contract_screen(_inst,_other);}}function gml_Script_btn_contract_salary_plus(_inst,_other){{{var __yy__v69=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v70 in __yy__v69){if(!__yy__v69.hasOwnProperty(__yy__v70))continue;var __yy__v71=__yy__v69[__yy__v70];yyInst(_inst,_other,__yy__v71.gmlqb_new_offer).gml_salary_neg=yyfplus(yyInst(_inst,_other,__yy__v71.gmlqb_new_offer).gml_salary_neg,1);}};gml_Script_s_qb_mode_set_up_contract_screen(_inst, _other);}}function gml_Script_btn_contract_tdbonus_minus(_inst,_other){{{var __yy__v72=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v73 in __yy__v72){if(!__yy__v72.hasOwnProperty(__yy__v73))continue;var __yy__v74=__yy__v72[__yy__v73];yyInst(_inst,_other,__yy__v74.gmlqb_new_offer).gml_tdbonus_neg=yyfminus(yyInst(_inst,_other,__yy__v74.gmlqb_new_offer).gml_tdbonus_neg,1);}};gml_Script_s_qb_mode_set_up_contract_screen(_inst,_other);}}function gml_Script_btn_contract_tdbonus_plus(_inst,_other){{{var __yy__v75=GetWithArray(YYASSET_REF(0x00000062)); for(var __yy__v76 in __yy__v75){if(!__yy__v75.hasOwnProperty(__yy__v76))continue;var __yy__v77=__yy__v75[__yy__v76];yyInst(_inst,_other,__yy__v77.gmlqb_new_offer).gml_tdbonus_neg=yyfplus(yyInst(_inst,_other,__yy__v77.gmlqb_new_offer).gml_tdbonus_neg,1);}};gml_Script_s_qb_mode_set_up_contract_screen(_inst,_other);}}function gml_Script_btn_contract_length_minus(_inst,_other){{{var __yy__v78=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v79 in __yy__v78){if(!__yy__v78.hasOwnProperty(__yy__v79))continue; var __yy__v80=__yy__v78[__yy__v79];yyInst(_inst,_other,__yy__v80.gmlqb_new_offer).gml_length_neg=yyfminus(yyInst(_inst,_other,__yy__v80.gmlqb_new_offer).gml_length_neg,1);}};gml_Script_s_qb_mode_set_up_contract_screen(_inst,_other);}}function gml_Script_btn_contract_length_plus(_inst,_other){{{var __yy__v81=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v82 in __yy__v81){if(!__yy__v81.hasOwnProperty(__yy__v82))continue;var __yy__v83=__yy__v81[__yy__v82];yyInst(_inst,_other,__yy__v83.gmlqb_new_offer).gml_length_neg=yyfplus(yyInst(_inst, _other,__yy__v83.gmlqb_new_offer).gml_length_neg,1);}};gml_Script_s_qb_mode_set_up_contract_screen(_inst,_other);}}function gml_Script_btn_negotiate_higher(_inst,_other){{gml_Script_s_check_negotiate(_inst,_other,true);}}function gml_Script_btn_negotiate_lower(_inst,_other){{gml_Script_s_check_negotiate(_inst,_other,false);}}function gml_Script_s_check_negotiate(_inst,_other,argument0){{var gmlcurrent_num=(-1);var gmlnext_num=(-1);{var __yy__v84=GetWithArray(YYASSET_REF(0x00000005));for(var __yy__v85 in __yy__v84){ if(!__yy__v84.hasOwnProperty(__yy__v85))continue;var __yy__v86=__yy__v84[__yy__v85];{if(yyfequal(__yy__v86.gmlposition,(-1))){gmlcurrent_num=__yy__v86.gmlnumber;};if(yyfequal(__yy__v86.gmlposition,0)){gmlnext_num=__yy__v86.gmlnumber;};}}};var gmlcorrect=false;var ___sw142___=argument0;var ___swc143___=-1;if(yyCompareVal(___sw142___,true,g_GMLMathEpsilon,false)==0){___swc143___=0;}else if(yyCompareVal(___sw142___,false,g_GMLMathEpsilon,false)==0){___swc143___=1;}switch(___swc143___){case 0:{if(yyfgreater(gmlnext_num, gmlcurrent_num)){gmlcorrect=true;};break;}case 1:{if(yyfless(gmlnext_num,gmlcurrent_num)){gmlcorrect=true;};break;}};if(yyGetBool(gmlcorrect)){{var gmlcomplete=true;{var __yy__v87=GetWithArray(YYASSET_REF(0x00000005));for(var __yy__v88 in __yy__v87){if(!__yy__v87.hasOwnProperty(__yy__v88))continue;var __yy__v89=__yy__v87[__yy__v88];{if(yyfequal(__yy__v89.gmlposition,0)){{__yy__v89.gmlshirt=__yy_gml_array_check(__yy__v89.gmlshirt,696852986);__yy__v89.gmlshirt[__yy_gml_array_check_index_set(0)]=yyfdivide(__yy_gml_errCheck(colour_get_blue(65280)), 256);__yy__v89.gmlshirt[__yy_gml_array_check_index_set(1)]=yyfdivide(__yy_gml_errCheck(colour_get_green(65280)),256);__yy__v89.gmlshirt[__yy_gml_array_check_index_set(2)]=yyfdivide(__yy_gml_errCheck(colour_get_red(65280)),256);};};__yy__v89.gmlposition=yyfminus(__yy__v89.gmlposition,1);if(yyfgreaterequal(__yy__v89.gmlposition,0)){gmlcomplete=false;};}}};if(yyGetBool(gmlcomplete)){{yyInst(_inst,_other,100743).visible=true;yyInst(_inst,_other,100744).gmlactive=false;yyInst(_inst,_other,100745).gmlactive=false; yyInst(_inst,_other,100747).gmltext=yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Success")),"!");yyInst(_inst,_other,100747).visible=true;gml_Script_s_sound(_inst,_other,YYASSET_REF(0x02000019));{var __yy__v90=GetWithArray(YYASSET_REF(0x00000005));for(var __yy__v91 in __yy__v90){if(!__yy__v90.hasOwnProperty(__yy__v91))continue;var __yy__v92=__yy__v90[__yy__v91];{__yy__v92.gmlposition=yyfplus(__yy__v92.gmlposition,1);__yy__v92.gmlrevealed=true;}}};{var __yy__v93=GetWithArray(YYASSET_REF(0x00000062)); for(var __yy__v94 in __yy__v93){if(!__yy__v93.hasOwnProperty(__yy__v94))continue;var __yy__v95=__yy__v93[__yy__v94];{yyInst(_inst,_other,__yy__v95.gmlqb_new_offer).gml_salary=yyfplus(yyInst(_inst,_other,__yy__v95.gmlqb_new_offer).gml_salary,yyInst(_inst,_other,__yy__v95.gmlqb_new_offer).gml_salary_neg);yyInst(_inst,_other,__yy__v95.gmlqb_new_offer).gml_tdbonus=yyfplus(yyInst(_inst,_other,__yy__v95.gmlqb_new_offer).gml_tdbonus,yyInst(_inst,_other,__yy__v95.gmlqb_new_offer).gml_tdbonus_neg);yyInst(_inst, _other,__yy__v95.gmlqb_new_offer).gml_length=yyfplus(yyInst(_inst,_other,__yy__v95.gmlqb_new_offer).gml_length,yyInst(_inst,_other,__yy__v95.gmlqb_new_offer).gml_length_neg);yyInst(_inst,_other,__yy__v95.gmlqb_new_offer).gml_salary_neg=0;yyInst(_inst,_other,__yy__v95.gmlqb_new_offer).gml_tdbonus_neg=0;yyInst(_inst,_other,__yy__v95.gmlqb_new_offer).gml_length_neg=0;yyInst(_inst,_other,__yy__v95.gmlqb_new_offer).gml_locked=true;}}};};}else {{gml_Script_s_sound(_inst,_other,YYASSET_REF(0x02000017)); gml_Script_s_check_hilo_buttons(_inst,_other);};};};}else {{yyInst(_inst,_other,100743).visible=true;yyInst(_inst,_other,100744).gmlactive=false;yyInst(_inst,_other,100745).gmlactive=false;yyInst(_inst,_other,100747).gmltext=yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Failed")),"!");yyInst(_inst,_other,100747).gmltcolour=255;yyInst(_inst,_other,100747).visible=true;gml_Script_s_sound(_inst,_other,YYASSET_REF(0x0200000A));{var __yy__v96=GetWithArray(YYASSET_REF(0x00000005));for(var __yy__v97 in __yy__v96){ if(!__yy__v96.hasOwnProperty(__yy__v97))continue;var __yy__v98=__yy__v96[__yy__v97];{__yy__v98.gmlrevealed=true;if(yyfequal(__yy__v98.gmlposition,0)){{__yy__v98.gmlshirt=__yy_gml_array_check(__yy__v98.gmlshirt,1539735164);__yy__v98.gmlshirt[__yy_gml_array_check_index_set(0)]=yyfdivide(__yy_gml_errCheck(colour_get_blue(255)),256);__yy__v98.gmlshirt[__yy_gml_array_check_index_set(1)]=yyfdivide(__yy_gml_errCheck(colour_get_green(255)),256);__yy__v98.gmlshirt[__yy_gml_array_check_index_set(2)]=yyfdivide(__yy_gml_errCheck(colour_get_red(255)), 256);};};}}};{var __yy__v99=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v100 in __yy__v99){if(!__yy__v99.hasOwnProperty(__yy__v100))continue;var __yy__v101=__yy__v99[__yy__v100];{yyInst(_inst,_other,__yy__v101.gmlqb_new_offer).gml_salary_neg=0;yyInst(_inst,_other,__yy__v101.gmlqb_new_offer).gml_tdbonus_neg=0;yyInst(_inst,_other,__yy__v101.gmlqb_new_offer).gml_length_neg=0;yyInst(_inst,_other,__yy__v101.gmlqb_new_offer).gml_locked=true;}}};};};}}function gml_Script_s_check_hilo_buttons(_inst,_other){ {yyInst(_inst,_other,100744).gmlactive=true;yyInst(_inst,_other,100745).gmlactive=true;{var __yy__v102=GetWithArray(YYASSET_REF(0x00000005));for(var __yy__v103 in __yy__v102){if(!__yy__v102.hasOwnProperty(__yy__v103))continue;var __yy__v104=__yy__v102[__yy__v103];{if(yyfequal(__yy__v104.gmlposition,(-1))){{if(yyfequal(__yy__v104.gmlnumber,1)){yyInst(_inst,_other,100745).gmlactive=false;}else {if(yyfequal(__yy__v104.gmlnumber,11)){yyInst(_inst,_other,100744).gmlactive=false;};};};};}}};}}function gml_Script_s_accept_contract(_inst, _other){{gml_Script_slog(_inst,_other,"s_accept_contract");var gmlpmap=gml_Script_s_get_qb_pmap(_inst,_other);{var __yy__v105=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v106 in __yy__v105){if(!__yy__v105.hasOwnProperty(__yy__v106))continue;var __yy__v107=__yy__v105[__yy__v106];{__yy__v107.gmlqb_salary=yyInst(_inst,_other,__yy__v107.gmlqb_new_offer).gml_salary;__yy__v107.gmlqb_tdbonus=yyInst(_inst,_other,__yy__v107.gmlqb_new_offer).gml_tdbonus;ds_map_set(gmlpmap,"contract",yyInst(_inst,_other, __yy__v107.gmlqb_new_offer).gml_length);if(yyfnotequal(yyInst(_inst,_other,__yy__v107.gmlqb_new_offer).gml_teamid,ds_map_find_value(__yy__v107.gmlmyteam,"uid"))){{ds_map_set(gmlpmap,"teamid",yyInst(_inst,_other,__yy__v107.gmlqb_new_offer).gml_teamid);__yy__v107.gmlmyteam=gml_Script_s_get_team_by_id(__yy__v107,_inst,yyInst(_inst,_other,__yy__v107.gmlqb_new_offer).gml_teamid);__yy__v107.gmlmyteam_id=yyInst(_inst,_other,__yy__v107.gmlqb_new_offer).gml_teamid;__yy__v107.gmlmyconference=ds_map_find_value(__yy__v107.gmlmyteam, "conference");__yy__v107.gmlmydivision=ds_map_find_value(__yy__v107.gmlmyteam,"division");__yy__v107.gmlnewteam=(-1);if(yyfequal(__yy__v107.gmlfavourite_team_id,yyInst(_inst,_other,__yy__v107.gmlqb_new_offer).gml_teamid)){gml_Script_s_add_news(__yy__v107,_inst,gml_Script_s_parse_player_message(__yy__v107,_inst,gml_Script_s_str(__yy__v107,_inst,"news_ContractNewTeamFavorite"),gmlpmap));}else {gml_Script_s_add_news(__yy__v107,_inst,gml_Script_s_parse_player_message(__yy__v107,_inst,gml_Script_s_str(__yy__v107, _inst,"news_ContractNewTeam"),gmlpmap));};};}else {gml_Script_s_add_news(__yy__v107,_inst,gml_Script_s_parse_player_message(__yy__v107,_inst,gml_Script_s_str(__yy__v107,_inst,"news_ContractExtended"),gmlpmap));};__yy__v107.gmlqb_new_offer=(-1);}}};room_goto(YYASSET_REF(0x0300000E));}}function gml_Script_s_reject_contract(_inst,_other){{gml_Script_slog(_inst,_other,"s_reject_contract");{var __yy__v108=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v109 in __yy__v108){if(!__yy__v108.hasOwnProperty(__yy__v109))continue; var __yy__v110=__yy__v108[__yy__v109];{if(yyfequal(yyInst(_inst,_other,__yy__v110.gmlqb_new_offer).gml_teamid,ds_map_find_value(__yy__v110.gmlmyteam,"uid"))){{gml_Script_s_meter_change(__yy__v110,_inst,9,__yy__v110.gmlrelationship_boss,YYASSET_REF(0x03000027),"");__yy__v110.gmlrelationship_boss=clamp(yyfminus(__yy_gml_errCheck(__yy__v110.gmlrelationship_boss),10),1,100);};}else {{ds_list_add(__yy__v110.gmllist_teams_rejected,yyInst(_inst,_other,__yy__v110.gmlqb_new_offer).gml_teamid);room_goto(YYASSET_REF(0x03000003)); };};__yy__v110.gmlqb_new_offer=(-1);gml_Script_s_savegame(__yy__v110,_inst);}}};}}function gml_GlobalScript_s_draw_player_image(_inst,_other){(_inst.gmls_draw_player_image=__yy_method(_inst,gml_Script_s_draw_player_image));}function gml_Script_s_draw_player_image(_inst,_other,argument0,argument1,argument2,argument3){{if(yyfequal(argument2,(-4))){return;};if(yyfequal(_inst.gmlhelmet[__yy_gml_array_check_index(2,_inst.gmlhelmet)],(-1))){{if(yyGetBool(_inst.gmluniform)){{gml_Script_s_load_uniform_file2(_inst, _other,ds_map_find_value(argument2,"teamid"),_inst.gmluniform,0,"");gml_Script_s_set_up_uniform_profile(_inst,_other,_inst.gmluniform);};}else {gml_Script_s_set_up_uniform_profile(_inst,_other,(-4));};};};shader_set(YYASSET_REF(0x0A000000));shader_set_uniform_f(global.gmlcolorHelmet,1,0,0);shader_set_uniform_f(global.gmlcolorShirt,0,1,0);shader_set_uniform_f(global.gmlcolorPants,1,0,1);shader_set_uniform_f(global.gmlreplaceHelmet,_inst.gmlhelmet[__yy_gml_array_check_index(2,_inst.gmlhelmet)],_inst.gmlhelmet[__yy_gml_array_check_index(1, _inst.gmlhelmet)],_inst.gmlhelmet[__yy_gml_array_check_index(0,_inst.gmlhelmet)]);shader_set_uniform_f(global.gmlreplaceShirt,_inst.gmlshirt[__yy_gml_array_check_index(2,_inst.gmlshirt)],_inst.gmlshirt[__yy_gml_array_check_index(1,_inst.gmlshirt)],_inst.gmlshirt[__yy_gml_array_check_index(0,_inst.gmlshirt)]);shader_set_uniform_f(global.gmlreplacePants,_inst.gmlpants[__yy_gml_array_check_index(2,_inst.gmlpants)],_inst.gmlpants[__yy_gml_array_check_index(1,_inst.gmlpants)],_inst.gmlpants[__yy_gml_array_check_index(0, _inst.gmlpants)]);if(yyGetBool(gml_Script_s_is_staff(_inst,_other,ds_map_find_value(argument2,"position")))){{var ___sw154___=ds_map_find_value(argument2,"face_y");var ___swc155___=-1;if(yyCompareVal(___sw154___,0,g_GMLMathEpsilon,false)==0){___swc155___=0;}else if(yyCompareVal(___sw154___,1,g_GMLMathEpsilon,false)==0){___swc155___=1;}else if(yyCompareVal(___sw154___,2,g_GMLMathEpsilon,false)==0){___swc155___=2;}else if(yyCompareVal(___sw154___,3,g_GMLMathEpsilon,false)==0){___swc155___=3;}switch(___swc155___){ case 0:{draw_sprite_ext(_inst,YYASSET_REF(0x010000D3),ds_map_find_value(argument2,"face_x"),argument0,argument1,argument3,argument3,0,16777215,1);break;}case 1:{draw_sprite_ext(_inst,YYASSET_REF(0x010000D4),ds_map_find_value(argument2,"face_x"),argument0,argument1,argument3,argument3,0,16777215,1);break;}case 2:{draw_sprite_ext(_inst,YYASSET_REF(0x010000D5),ds_map_find_value(argument2,"face_x"),argument0,argument1,argument3,argument3,0,16777215,1);break;}case 3:{draw_sprite_ext(_inst,YYASSET_REF(0x010000D6), ds_map_find_value(argument2,"face_x"),argument0,argument1,argument3,argument3,0,16777215,1);break;}};};}else {{var ___sw156___=ds_map_find_value(argument2,"skin");var ___swc157___=-1;if(yyCompareVal(___sw156___,2,g_GMLMathEpsilon,false)==0){___swc157___=0;}else if(yyCompareVal(___sw156___,1,g_GMLMathEpsilon,false)==0){___swc157___=1;}else if(yyCompareVal(___sw156___,0,g_GMLMathEpsilon,false)==0){___swc157___=2;}switch(___swc157___){case 0:{var ___sw158___=ds_map_find_value(argument2,"face_y");var ___swc159___=-1; if(yyCompareVal(___sw158___,0,g_GMLMathEpsilon,false)==0){___swc159___=0;}else if(yyCompareVal(___sw158___,1,g_GMLMathEpsilon,false)==0){___swc159___=1;}else if(yyCompareVal(___sw158___,2,g_GMLMathEpsilon,false)==0){___swc159___=2;}switch(___swc159___){case 0:{draw_sprite_ext(_inst,gml_Script_s_face_from_set(_inst,_other,YYASSET_REF(0x010000C6),argument2),ds_map_find_value(argument2,"face_x"),argument0,argument1,argument3,argument3,0,16777215,1);break;}case 1:{draw_sprite_ext(_inst,gml_Script_s_face_from_set(_inst, _other,YYASSET_REF(0x010000C8),argument2),ds_map_find_value(argument2,"face_x"),argument0,argument1,argument3,argument3,0,16777215,1);break;}case 2:{draw_sprite_ext(_inst,gml_Script_s_face_from_set(_inst,_other,YYASSET_REF(0x010000C9),argument2),ds_map_find_value(argument2,"face_x"),argument0,argument1,argument3,argument3,0,16777215,1);break;}};break;}case 1:{var ___sw160___=ds_map_find_value(argument2,"face_y");var ___swc161___=-1;if(yyCompareVal(___sw160___,0,g_GMLMathEpsilon,false)==0){___swc161___=0; }switch(___swc161___){case 0:{draw_sprite_ext(_inst,gml_Script_s_face_from_set(_inst,_other,YYASSET_REF(0x010000CA),argument2),ds_map_find_value(argument2,"face_x"),argument0,argument1,argument3,argument3,0,16777215,1);break;}};break;}case 2:{var ___sw162___=ds_map_find_value(argument2,"face_y");var ___swc163___=-1;if(yyCompareVal(___sw162___,0,g_GMLMathEpsilon,false)==0){___swc163___=0;}else if(yyCompareVal(___sw162___,1,g_GMLMathEpsilon,false)==0){___swc163___=1;}else if(yyCompareVal(___sw162___,2,g_GMLMathEpsilon, false)==0){___swc163___=2;}else if(yyCompareVal(___sw162___,3,g_GMLMathEpsilon,false)==0){___swc163___=3;}else if(yyCompareVal(___sw162___,4,g_GMLMathEpsilon,false)==0){___swc163___=4;}else if(yyCompareVal(___sw162___,5,g_GMLMathEpsilon,false)==0){___swc163___=5;}else if(yyCompareVal(___sw162___,6,g_GMLMathEpsilon,false)==0){___swc163___=6;}else if(yyCompareVal(___sw162___,7,g_GMLMathEpsilon,false)==0){___swc163___=7;}else if(yyCompareVal(___sw162___,8,g_GMLMathEpsilon,false)==0){___swc163___=8;}switch(___swc163___){ case 0:{draw_sprite_ext(_inst,gml_Script_s_face_from_set(_inst,_other,YYASSET_REF(0x010000CB),argument2),ds_map_find_value(argument2,"face_x"),argument0,argument1,argument3,argument3,0,16777215,1);break;}case 1:{draw_sprite_ext(_inst,gml_Script_s_face_from_set(_inst,_other,YYASSET_REF(0x010000CC),argument2),ds_map_find_value(argument2,"face_x"),argument0,argument1,argument3,argument3,0,16777215,1);break;}case 2:{draw_sprite_ext(_inst,gml_Script_s_face_from_set(_inst,_other,YYASSET_REF(0x010000CD),argument2), ds_map_find_value(argument2,"face_x"),argument0,argument1,argument3,argument3,0,16777215,1);break;}case 3:{draw_sprite_ext(_inst,gml_Script_s_face_from_set(_inst,_other,YYASSET_REF(0x010000CE),argument2),ds_map_find_value(argument2,"face_x"),argument0,argument1,argument3,argument3,0,16777215,1);break;}case 4:{draw_sprite_ext(_inst,gml_Script_s_face_from_set(_inst,_other,YYASSET_REF(0x010000CF),argument2),ds_map_find_value(argument2,"face_x"),argument0,argument1,argument3,argument3,0,16777215,1);break; }case 5:{draw_sprite_ext(_inst,gml_Script_s_face_from_set(_inst,_other,YYASSET_REF(0x010000D0),argument2),ds_map_find_value(argument2,"face_x"),argument0,argument1,argument3,argument3,0,16777215,1);break;}case 6:{draw_sprite_ext(_inst,gml_Script_s_face_from_set(_inst,_other,YYASSET_REF(0x010000D0),argument2),ds_map_find_value(argument2,"face_x"),argument0,argument1,argument3,argument3,0,16777215,1);break;}case 7:{draw_sprite_ext(_inst,gml_Script_s_face_from_set(_inst,_other,YYASSET_REF(0x010000D1), argument2),ds_map_find_value(argument2,"face_x"),argument0,argument1,argument3,argument3,0,16777215,1);break;}case 8:{draw_sprite_ext(_inst,gml_Script_s_face_from_set(_inst,_other,YYASSET_REF(0x010000D2),argument2),ds_map_find_value(argument2,"face_x"),argument0,argument1,argument3,argument3,0,16777215,1);break;}};break;}};};};shader_reset();}}function gml_GlobalScript_s_college_gui_helpers(_inst,_other){(_inst.gmlbuttons_college_custom=__yy_method(_inst,gml_Script_buttons_college_custom));(_inst.gmldraw_custom_increase_wallet=__yy_method(_inst, gml_Script_draw_custom_increase_wallet));(_inst.gmldraw_custom_recruitment_credits_display=__yy_method(_inst,gml_Script_draw_custom_recruitment_credits_display));(_inst.gmlrm_player_profile_show_noncollege_elements=__yy_method(_inst,gml_Script_rm_player_profile_show_noncollege_elements));(_inst.gmlrm_player_profile_show_more=__yy_method(_inst,gml_Script_rm_player_profile_show_more));(_inst.gmlrm_player_profile_college_create_p1=__yy_method(_inst,gml_Script_rm_player_profile_college_create_p1));(_inst.gmlrm_player_profile_college_create_p2=__yy_method(_inst, gml_Script_rm_player_profile_college_create_p2));(_inst.gmlrm_player_profile_college_create=__yy_method(_inst,gml_Script_rm_player_profile_college_create));(_inst.gmlbtn_rm_player_profile_college_showP1=__yy_method(_inst,gml_Script_btn_rm_player_profile_college_showP1));(_inst.gmlbtn_rm_player_profile_college_showP2=__yy_method(_inst,gml_Script_btn_rm_player_profile_college_showP2));(_inst.gmlrm_player_profile_college_step=__yy_method(_inst,gml_Script_rm_player_profile_college_step));(_inst.gmlbtn_click_Profile_College_Cut=__yy_method(_inst, gml_Script_btn_click_Profile_College_Cut));(_inst.gmlbtn_click_Profile_College_Cut_During_Admission_Draft=__yy_method(_inst,gml_Script_btn_click_Profile_College_Cut_During_Admission_Draft));(_inst.gmlbtn_response_cut_player_for_RC_yes=__yy_method(_inst,gml_Script_btn_response_cut_player_for_RC_yes));(_inst.gmls_get_college_player_cut_RC=__yy_method(_inst,gml_Script_s_get_college_player_cut_RC));(_inst.gmlbtn_rm_stats_player_showAwards=__yy_method(_inst,gml_Script_btn_rm_stats_player_showAwards)); (_inst.gmlbtn_rm_stats_player_showEpilogue=__yy_method(_inst,gml_Script_btn_rm_stats_player_showEpilogue));(_inst.gmlstats_player_button_entry=__yy_method(_inst,gml_Script_stats_player_button_entry));(_inst.gmlrm_stats_player_configure_college=__yy_method(_inst,gml_Script_rm_stats_player_configure_college));(_inst.gmls_change_panel_division_mode=__yy_method(_inst,gml_Script_s_change_panel_division_mode));(_inst.gmls_panel_skip_independents_cnf_view=__yy_method(_inst,gml_Script_s_panel_skip_independents_cnf_view)); (_inst.gmls_panel_scroll_init=__yy_method(_inst,gml_Script_s_panel_scroll_init));(_inst.gmls_panel_scroll_step=__yy_method(_inst,gml_Script_s_panel_scroll_step));(_inst.gmls_panel_scroll_set_height=__yy_method(_inst,gml_Script_s_panel_scroll_set_height));(_inst.gmls_panel_scroll_global_flick=__yy_method(_inst,gml_Script_s_panel_scroll_global_flick));(_inst.gmls_panel_scroll_draw_gui=__yy_method(_inst,gml_Script_s_panel_scroll_draw_gui));(_inst.gmls_panel_scroll_is_inside=__yy_method(_inst,gml_Script_s_panel_scroll_is_inside)); }function gml_Script_buttons_college_custom(_inst,_other){{draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gmltx=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2)));var gmlty=yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_height),2)));gmltx=yyfplus(gmltx,1);gmlty=yyfminus(gmlty,1);if(!yyGetBool(_inst.gmlactive)){{draw_sprite_ext(_inst,_inst.sprite_index,1,yyfplus(__yy_gml_errCheck(_inst.x), 2),yyfminus(__yy_gml_errCheck(_inst.y),2),1,1,0,4210752,1);draw_set_color(4210752);gml_Script_draw_custom_increase_wallet(_inst,_other,gmltx,gmlty,_inst.sprite_width,_inst.sprite_height);draw_set_color(16777215);};}else {if(!yyGetBool(_inst.gmlclicked)){{var gmlf=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),60))),1)),2);{var __yy__v111=GetWithArray(YYASSET_REF(0x0000004F));for(var __yy__v112 in __yy__v111){if(!__yy__v111.hasOwnProperty(__yy__v112))continue; var __yy__v113=__yy__v111[__yy__v112];if(yyfless(__yy__v113.depth,_inst.depth)){gmlf=0;};}};draw_sprite(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y);if(yyGetBool(gml_Script_s_is_ui_selected(_inst,_other))){draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y,1,1,0,gml_Script_s_ui_selected_color(_inst,_other),1);};draw_sprite_ext(_inst,_inst.sprite_index,2,_inst.x,_inst.y,1,1,0,_inst.gmlcolour,1);if((yyGetBool(_inst.gmlflash))&&(yyGetBool(yyfgreater(gmlf,0.5)))){ draw_sprite_ext(_inst,_inst.sprite_index,2,_inst.x,_inst.y,1,1,0,global.gmlc_primary,1);};if(yyGetBool(_inst.gmlcontinue_icon)){draw_sprite(_inst,_inst.gmlcontinue_icon,0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),8),yyfminus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),0.5))),1));};gml_Script_draw_custom_increase_wallet(_inst,_other,gmltx,gmlty,_inst.sprite_width,_inst.sprite_height);};}else {{draw_sprite(_inst, _inst.sprite_index,_inst.image_index,_inst.x,_inst.y);draw_sprite_ext(_inst,_inst.sprite_index,2,yyfminus(__yy_gml_errCheck(_inst.x),2),yyfplus(__yy_gml_errCheck(_inst.y),2),1,1,0,_inst.gmlcolour,1);if(yyGetBool(_inst.gmlcontinue_icon)){draw_sprite(_inst,_inst.gmlcontinue_icon,0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),10),yyfplus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),0.5))),1));};gml_Script_draw_custom_increase_wallet(_inst, _other,yyfminus(__yy_gml_errCheck(gmltx),2),yyfplus(__yy_gml_errCheck(gmlty),2),_inst.sprite_width,_inst.sprite_height);};};};}}function gml_Script_draw_custom_increase_wallet(_inst,_other,argument0,argument1,argument2,argument3){{var gmls1=string_upper(gml_Script_s_str(_inst,_other,"ui_increase"));var gmls2=string_upper(gml_Script_s_str(_inst,_other,"ui_wallet"));var gmlrcw=sprite_get_width(YYASSET_REF(0x01000000));var gmls1H=gml_Script_string_hd_height(_inst,_other,gmls1);var gmls2W=gml_Script_string_hd_width(_inst, _other,gmls2);var gmltx=argument0;var gmlty=yyfplus(yyfplus(yyfminus(__yy_gml_errCheck(argument1),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(argument3),2))),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmls1H),2))),4);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmls1);gmlty=yyfplus(gmlty,12);draw_sprite(_inst,YYASSET_REF(0x01000000),0,yyfminus(yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmls2W),2))),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlrcw), 2))),gmlty);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmls2);}}function gml_Script_draw_custom_recruitment_credits_display(_inst,_other,argument0,argument1){{var gmltx=argument0;var gmlty=argument1;draw_set_halign(0);var gmlrcw=sprite_get_width(YYASSET_REF(0x01000000));var gmlcontentTxt=yyfplus(yyfplus("",__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrecruitment_credits)))," ");gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmlcontentTxt);gmltx=yyfplus(gmltx,gml_Script_string_hd_width(_inst, _other,gmlcontentTxt));gmltx=yyfplus(gmltx,yyfdivide(__yy_gml_errCheck(gmlrcw),2));draw_sprite(_inst,YYASSET_REF(0x01000000),0,gmltx,gmlty);gmltx=yyfplus(gmltx,yyfdivide(__yy_gml_errCheck(gmlrcw),2));gmlcontentTxt=yyfplus(yyfplus(" / ",__yy_gml_errCheck(string(gml_Script_recruitment_credits_cap_total(_inst,_other))))," ");gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmlcontentTxt);gmltx=yyfplus(gmltx,gml_Script_string_hd_width(_inst,_other,gmlcontentTxt));gmltx=yyfplus(gmltx,yyfdivide(__yy_gml_errCheck(gmlrcw), 2));draw_sprite(_inst,YYASSET_REF(0x01000000),0,gmltx,gmlty);}}function gml_Script_rm_player_profile_show_noncollege_elements(_inst,_other,argument0){{yyInst(_inst,_other,100435).visible=argument0;yyInst(_inst,_other,100443).visible=argument0;yyInst(_inst,_other,100441).visible=argument0;yyInst(_inst,_other,100436).visible=argument0;yyInst(_inst,_other,100447).visible=argument0;yyInst(_inst,_other,100448).visible=argument0;yyInst(_inst,_other,100442).visible=argument0;yyInst(_inst,_other,100445).visible=argument0; }}function gml_Script_rm_player_profile_show_more(_inst,_other,argument0){{var gmlshowMore=true;if((yyGetBool(yyfequal(ds_map_find_value(argument0,"age"),gml_Script_s_rookie_age_internal(_inst,_other))))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_admissions_draft_round,0)))){{gmlshowMore=false;};};return gmlshowMore;}}function gml_Script____struct___70_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers(_inst,_other){if(_inst.__yyIsGMLObject){ _inst.__type="gml_Script____struct___70_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers";}if(gml_Script____struct___70_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.prototype.__type===undefined){gml_Script____struct___70_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.prototype.__type="gml_Script____struct___70_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst, gml_Script____struct___70_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(1),$$args)];}}}}function gml_Script____struct___71_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___71_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers"; }if(gml_Script____struct___71_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.prototype.__type===undefined){gml_Script____struct___71_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.prototype.__type="gml_Script____struct___71_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___71_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.prototype); {var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmldraw_box=false;_inst.gmlhalign=0;}}}}function gml_Script____struct___72_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___72_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers";}if(gml_Script____struct___72_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.prototype.__type===undefined){ gml_Script____struct___72_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.prototype.__type="gml_Script____struct___72_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___72_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)]; _inst.gmldraw_box=false;_inst.gmlhalign=0;}}}}function gml_Script____struct___73_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___73_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers";}if(gml_Script____struct___73_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.prototype.__type===undefined){gml_Script____struct___73_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.prototype.__type="gml_Script____struct___73_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___73_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmldraw_box=false;_inst.gmlhalign=0;}}}}function gml_Script____struct___74_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___74_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers"; }if(gml_Script____struct___74_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.prototype.__type===undefined){gml_Script____struct___74_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.prototype.__type="gml_Script____struct___74_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___74_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.prototype); {var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmldraw_box=false;_inst.gmlhalign=0;}}}}function gml_Script____struct___75_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___75_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers";}if(gml_Script____struct___75_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.prototype.__type===undefined){ gml_Script____struct___75_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.prototype.__type="gml_Script____struct___75_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___75_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)]; _inst.gmltcolour=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmldraw_box=false;_inst.gmlhalign=0;}}}}function gml_Script____struct___76_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___76_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers";}if(gml_Script____struct___76_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.prototype.__type===undefined){ gml_Script____struct___76_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.prototype.__type="gml_Script____struct___76_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___76_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)]; _inst.gmltcolour=0;_inst.gmldraw_box=false;_inst.gmlhalign=0;}}}}function gml_Script____struct___78_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___78_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers";}if(gml_Script____struct___78_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.prototype.__type===undefined){gml_Script____struct___78_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.prototype.__type="gml_Script____struct___78_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___78_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmldraw_box=false;_inst.gmlhalign=0;}}}}function gml_Script____struct___79_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___79_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers"; }if(gml_Script____struct___79_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.prototype.__type===undefined){gml_Script____struct___79_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.prototype.__type="gml_Script____struct___79_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___79_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.prototype); {var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmldraw_box=false;_inst.gmlhalign=0;}}}}function gml_Script_rm_player_profile_college_create_p1(_inst,_other){{var gmltx=40;var gmlty=56;var gmlc=0;draw_set_font(global.gmlfnt_small_flex);draw_set_halign(0);draw_set_valign(1);if(yyGetBool(gml_Script_rm_player_profile_show_more(_inst,_other,_inst.gmlpmap))){{yyInst(_inst,_other,YYASSET_REF(0x00000094)).gmlco_page1=__yy_gml_array_check(yyInst(_inst, _other,YYASSET_REF(0x00000094)).gmlco_page1,968685270);yyInst(_inst,_other,YYASSET_REF(0x00000094)).gmlco_page1[__yy_gml_array_check_index_set((g_yyPrePostObject__=gmlc,gmlc=(g_yyPrePostObject__ instanceof Long?gmlc.add(1):++gmlc),g_yyPrePostObject__))]=instance_create_layer(176,152,"Instances",YYASSET_REF(0x00000026),__yy_gml_object_create(_inst,(_inst.gml___struct___70=__yy_method(_inst,gml_Script____struct___70_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers)),gml_Script_s_str(_inst, _other,"ui_More"),kgml_Script_btn_rm_player_profile_college_showP2));};};yyInst(_inst,_other,YYASSET_REF(0x00000094)).gmlco_page1=__yy_gml_array_check(yyInst(_inst,_other,YYASSET_REF(0x00000094)).gmlco_page1,968685270);yyInst(_inst,_other,YYASSET_REF(0x00000094)).gmlco_page1[__yy_gml_array_check_index_set((g_yyPrePostObject__=gmlc,gmlc=(g_yyPrePostObject__ instanceof Long?gmlc.add(1):++gmlc),g_yyPrePostObject__))]=instance_create_layer(gmltx,gmlty,"Instances",YYASSET_REF(0x0000004B),__yy_gml_object_create(_inst, (_inst.gml___struct___71=__yy_method(_inst,gml_Script____struct___71_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers)),gml_Script_s_college_age_label(_inst,_other,ds_map_find_value(_inst.gmlpmap,"age"))));gmlty=yyfplus(gmlty,12);var gmlattitudeText=string_upper(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Attitude")),": "),__yy_gml_errCheck(gml_Script_s_get_string_attitude(_inst,_other,ds_map_find_value(_inst.gmlpmap,"attitude")))));_inst.gmlco_attitude=instance_create_layer(gmltx, gmlty,"Instances",YYASSET_REF(0x0000004B),__yy_gml_object_create(_inst,(_inst.gml___struct___72=__yy_method(_inst,gml_Script____struct___72_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers)),gmlattitudeText));gmlty=yyfplus(gmlty,12);yyInst(_inst,_other,YYASSET_REF(0x00000094)).gmlco_page1[__yy_gml_array_check_index_set((g_yyPrePostObject__=gmlc,gmlc=(g_yyPrePostObject__ instanceof Long?gmlc.add(1):++gmlc),g_yyPrePostObject__))]=_inst.gmlco_attitude;_inst.gmlx_attitude=yyfplus(__yy_gml_errCheck(yyInst(_inst, _other,_inst.gmlco_attitude).x),__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlco_attitude).gmltext)," "))));_inst.gmly_attitude=yyInst(_inst,_other,_inst.gmlco_attitude).y;var gmlconditionText=string_upper(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Condition")),": "));var gmlco_condition=instance_create_layer(gmltx,gmlty,"Instances",YYASSET_REF(0x0000004B),__yy_gml_object_create(_inst,(_inst.gml___struct___73=__yy_method(_inst, gml_Script____struct___73_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers)),gmlconditionText));gmlty=yyfplus(gmlty,12);yyInst(_inst,_other,YYASSET_REF(0x00000094)).gmlco_page1[__yy_gml_array_check_index_set((g_yyPrePostObject__=gmlc,gmlc=(g_yyPrePostObject__ instanceof Long?gmlc.add(1):++gmlc),g_yyPrePostObject__))]=gmlco_condition;_inst.gmlx_condition=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmlco_condition).x),__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other, gmlconditionText)));_inst.gmly_condition=yyInst(_inst,_other,gmlco_condition).y;_inst.gmlx_condition2=yyfplus(__yy_gml_errCheck(_inst.gmlx_condition),__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,yyfplus(__yy_gml_errCheck(_inst.gmltxt_condition)," "))));var gmlgpaText=yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_GPA")),": ");var gmlgpaTextVal=string_format(gml_Script_s_gpa_from_percent_grade(_inst,_other,ds_map_find_value(_inst.gmlpmap,"percent_grade")),1,1);var gmlgpaCol=gml_Script_s_player_gpa_color(_inst, _other,_inst.gmlpmap);yyInst(_inst,_other,YYASSET_REF(0x00000094)).gmlco_page1[__yy_gml_array_check_index_set((g_yyPrePostObject__=gmlc,gmlc=(g_yyPrePostObject__ instanceof Long?gmlc.add(1):++gmlc),g_yyPrePostObject__))]=instance_create_layer(gmltx,gmlty,"Instances",YYASSET_REF(0x0000004B),__yy_gml_object_create(_inst,(_inst.gml___struct___74=__yy_method(_inst,gml_Script____struct___74_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers)),gmlgpaText));yyInst(_inst,_other,YYASSET_REF(0x00000094)).gmlco_page1[__yy_gml_array_check_index_set((g_yyPrePostObject__=gmlc, gmlc=(g_yyPrePostObject__ instanceof Long?gmlc.add(1):++gmlc),g_yyPrePostObject__))]=instance_create_layer(yyfplus(__yy_gml_errCheck(gmltx),32),gmlty,"Instances",YYASSET_REF(0x0000004B),__yy_gml_object_create(_inst,(_inst.gml___struct___75=__yy_method(_inst,gml_Script____struct___75_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers)),gmlgpaTextVal,gml_Script_s_player_gpa_color(_inst,_other,_inst.gmlpmap)));if(yyfnotequal(gmlgpaCol,16777215)){{yyInst(_inst,_other,YYASSET_REF(0x00000094)).gmlco_page1[__yy_gml_array_check_index_set((g_yyPrePostObject__=gmlc, gmlc=(g_yyPrePostObject__ instanceof Long?gmlc.add(1):++gmlc),g_yyPrePostObject__))]=instance_create_layer(yyfminus(yyfplus(__yy_gml_errCheck(gmltx),32),1),yyfplus(__yy_gml_errCheck(gmlty),1),"Instances",YYASSET_REF(0x0000004B),__yy_gml_object_create(_inst,(_inst.gml___struct___76=__yy_method(_inst,gml_Script____struct___76_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers)),gmlgpaTextVal));};};gmlty=yyfplus(gmlty,12);{};var gmlco_rating=instance_create_layer(gmltx,gmlty,"Instances", YYASSET_REF(0x0000004B),__yy_gml_object_create(_inst,(_inst.gml___struct___78=__yy_method(_inst,gml_Script____struct___78_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers)),yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Rating")),": ")));gmlty=yyfplus(gmlty,12);yyInst(_inst,_other,YYASSET_REF(0x00000094)).gmlco_page1[__yy_gml_array_check_index_set((g_yyPrePostObject__=gmlc,gmlc=(g_yyPrePostObject__ instanceof Long?gmlc.add(1):++gmlc),g_yyPrePostObject__))]=gmlco_rating; _inst.gmlx_star_rating=yyfplus(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmlco_rating).x),__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,yyInst(_inst,_other,gmlco_rating).gmltext))),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(sprite_get_width(YYASSET_REF(0x01000076))),10)),__yy_gml_errCheck(_inst.gmlstar_rating))),2)));_inst.gmly_star_rating=yyInst(_inst,_other,gmlco_rating).y;var gmlco_potential=instance_create_layer(gmltx,gmlty, "Instances",YYASSET_REF(0x0000004B),__yy_gml_object_create(_inst,(_inst.gml___struct___79=__yy_method(_inst,gml_Script____struct___79_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers)),yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Potential")),": ")));gmlty=yyfplus(gmlty,12);yyInst(_inst,_other,YYASSET_REF(0x00000094)).gmlco_page1[__yy_gml_array_check_index_set((g_yyPrePostObject__=gmlc,gmlc=(g_yyPrePostObject__ instanceof Long?gmlc.add(1):++gmlc),g_yyPrePostObject__))]=gmlco_potential; _inst.gmlx_star_potential=yyfplus(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmlco_potential).x),__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,yyInst(_inst,_other,gmlco_potential).gmltext))),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(sprite_get_width(YYASSET_REF(0x01000077))),10)),__yy_gml_errCheck(_inst.gmlstar_potential))),2)));_inst.gmly_star_potential=yyInst(_inst,_other,gmlco_potential).y;if(yyGetBool(ds_map_find_value(_inst.gmlpmap, "suspended"))){{_inst.gmlcol_condition=255;_inst.gmli_condition=4;};};}}function gml_Script____struct___80_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___80_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers";}if(gml_Script____struct___80_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.prototype.__type===undefined){gml_Script____struct___80_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.prototype.__type="gml_Script____struct___80_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___80_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(1),$$args)];}}}}function gml_Script____struct___81_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers(_inst,_other){if(_inst.__yyIsGMLObject){ _inst.__type="gml_Script____struct___81_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers";}if(gml_Script____struct___81_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.prototype.__type===undefined){gml_Script____struct___81_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.prototype.__type="gml_Script____struct___81_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst, gml_Script____struct___81_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmldraw_box=false;_inst.gmlhalign=0;}}}}function gml_Script____struct___82_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___82_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers"; }if(gml_Script____struct___82_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.prototype.__type===undefined){gml_Script____struct___82_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.prototype.__type="gml_Script____struct___82_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___82_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.prototype); {var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmldraw_box=false;_inst.gmlhalign=0;}}}}function gml_Script____struct___83_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___83_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers";}if(gml_Script____struct___83_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.prototype.__type===undefined){ gml_Script____struct___83_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.prototype.__type="gml_Script____struct___83_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___83_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)]; _inst.gmldraw_box=false;_inst.gmlhalign=0;}}}}function gml_Script____struct___84_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___84_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers";}if(gml_Script____struct___84_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.prototype.__type===undefined){gml_Script____struct___84_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.prototype.__type="gml_Script____struct___84_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___84_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmldraw_box=false;_inst.gmlhalign=0;}}}}function gml_Script____struct___85_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___85_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers"; }if(gml_Script____struct___85_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.prototype.__type===undefined){gml_Script____struct___85_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.prototype.__type="gml_Script____struct___85_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___85_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.prototype); {var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmldraw_box=false;_inst.gmlhalign=0;}}}}function gml_Script____struct___86_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___86_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers";}if(gml_Script____struct___86_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.prototype.__type===undefined){ gml_Script____struct___86_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.prototype.__type="gml_Script____struct___86_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___86_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)]; _inst.gmldraw_box=false;_inst.gmlhalign=0;}}}}function gml_Script____struct___87_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___87_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers";}if(gml_Script____struct___87_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.prototype.__type===undefined){gml_Script____struct___87_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.prototype.__type="gml_Script____struct___87_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___87_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmldraw_box=false;_inst.gmlhalign=0;}}}}function gml_Script____struct___88_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___88_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers"; }if(gml_Script____struct___88_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.prototype.__type===undefined){gml_Script____struct___88_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.prototype.__type="gml_Script____struct___88_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___88_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.prototype); {var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmldraw_box=false;_inst.gmlhalign=0;}}}}function gml_Script_rm_player_profile_college_create_p2(_inst,_other){{var gmltx=40;var gmlty=56;var gmlc=0;draw_set_font(global.gmlfnt_small_flex);draw_set_halign(0);draw_set_valign(1);yyInst(_inst,_other,YYASSET_REF(0x00000094)).gmlco_page2=__yy_gml_array_check(yyInst(_inst,_other,YYASSET_REF(0x00000094)).gmlco_page2,311534869);yyInst(_inst, _other,YYASSET_REF(0x00000094)).gmlco_page2[__yy_gml_array_check_index_set((g_yyPrePostObject__=gmlc,gmlc=(g_yyPrePostObject__ instanceof Long?gmlc.add(1):++gmlc),g_yyPrePostObject__))]=instance_create_layer(176,152,"Instances",YYASSET_REF(0x00000026),__yy_gml_object_create(_inst,(_inst.gml___struct___80=__yy_method(_inst,gml_Script____struct___80_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers)),gml_Script_s_str(_inst,_other,"ui_Back"),kgml_Script_btn_rm_player_profile_college_showP1)); yyInst(_inst,_other,YYASSET_REF(0x00000094)).gmlco_page2[__yy_gml_array_check_index_set((g_yyPrePostObject__=gmlc,gmlc=(g_yyPrePostObject__ instanceof Long?gmlc.add(1):++gmlc),g_yyPrePostObject__))]=instance_create_layer(gmltx,gmlty,"Instances",YYASSET_REF(0x0000004B),__yy_gml_object_create(_inst,(_inst.gml___struct___81=__yy_method(_inst,gml_Script____struct___81_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers)),gml_Script_s_str(_inst,_other,"ui_Major")));gmlty=yyfplus(gmlty, 12);yyInst(_inst,_other,YYASSET_REF(0x00000094)).gmlco_page2[__yy_gml_array_check_index_set((g_yyPrePostObject__=gmlc,gmlc=(g_yyPrePostObject__ instanceof Long?gmlc.add(1):++gmlc),g_yyPrePostObject__))]=instance_create_layer(yyfplus(__yy_gml_errCheck(gmltx),12),gmlty,"Instances",YYASSET_REF(0x0000004B),__yy_gml_object_create(_inst,(_inst.gml___struct___82=__yy_method(_inst,gml_Script____struct___82_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers)),gml_Script_s_get_major_name(_inst, _other,_inst.gmlpmap,true)));gmlty=yyfplus(gmlty,12);yyInst(_inst,_other,YYASSET_REF(0x00000094)).gmlco_page2[__yy_gml_array_check_index_set((g_yyPrePostObject__=gmlc,gmlc=(g_yyPrePostObject__ instanceof Long?gmlc.add(1):++gmlc),g_yyPrePostObject__))]=instance_create_layer(gmltx,gmlty,"Instances",YYASSET_REF(0x0000004B),__yy_gml_object_create(_inst,(_inst.gml___struct___83=__yy_method(_inst,gml_Script____struct___83_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers)),gml_Script_s_str(_inst, _other,"ui_Minor")));gmlty=yyfplus(gmlty,12);yyInst(_inst,_other,YYASSET_REF(0x00000094)).gmlco_page2[__yy_gml_array_check_index_set((g_yyPrePostObject__=gmlc,gmlc=(g_yyPrePostObject__ instanceof Long?gmlc.add(1):++gmlc),g_yyPrePostObject__))]=instance_create_layer(yyfplus(__yy_gml_errCheck(gmltx),12),gmlty,"Instances",YYASSET_REF(0x0000004B),__yy_gml_object_create(_inst,(_inst.gml___struct___84=__yy_method(_inst,gml_Script____struct___84_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers)), gml_Script_s_get_minor_name(_inst,_other,_inst.gmlpmap,true)));gmlty=yyfplus(gmlty,12);yyInst(_inst,_other,YYASSET_REF(0x00000094)).gmlco_page2[__yy_gml_array_check_index_set((g_yyPrePostObject__=gmlc,gmlc=(g_yyPrePostObject__ instanceof Long?gmlc.add(1):++gmlc),g_yyPrePostObject__))]=instance_create_layer(gmltx,gmlty,"Instances",YYASSET_REF(0x0000004B),__yy_gml_object_create(_inst,(_inst.gml___struct___85=__yy_method(_inst,gml_Script____struct___85_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers)), gml_Script_s_str(_inst,_other,"ui_OrientationWeek")));gmlty=yyfplus(gmlty,12);yyInst(_inst,_other,YYASSET_REF(0x00000094)).gmlco_page2[__yy_gml_array_check_index_set((g_yyPrePostObject__=gmlc,gmlc=(g_yyPrePostObject__ instanceof Long?gmlc.add(1):++gmlc),g_yyPrePostObject__))]=instance_create_layer(yyfplus(__yy_gml_errCheck(gmltx),12),gmlty,"Instances",YYASSET_REF(0x0000004B),__yy_gml_object_create(_inst,(_inst.gml___struct___86=__yy_method(_inst,gml_Script____struct___86_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers)), gml_Script_s_get_hobby_name(_inst,_other,_inst.gmlpmap,true)));gmlty=yyfplus(gmlty,12);yyInst(_inst,_other,YYASSET_REF(0x00000094)).gmlco_page2[__yy_gml_array_check_index_set((g_yyPrePostObject__=gmlc,gmlc=(g_yyPrePostObject__ instanceof Long?gmlc.add(1):++gmlc),g_yyPrePostObject__))]=instance_create_layer(gmltx,gmlty,"Instances",YYASSET_REF(0x0000004B),__yy_gml_object_create(_inst,(_inst.gml___struct___87=__yy_method(_inst,gml_Script____struct___87_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers)), gml_Script_s_str(_inst,_other,"ui_Hometown")));gmlty=yyfplus(gmlty,12);yyInst(_inst,_other,YYASSET_REF(0x00000094)).gmlco_page2[__yy_gml_array_check_index_set((g_yyPrePostObject__=gmlc,gmlc=(g_yyPrePostObject__ instanceof Long?gmlc.add(1):++gmlc),g_yyPrePostObject__))]=instance_create_layer(yyfplus(__yy_gml_errCheck(gmltx),12),gmlty,"Instances",YYASSET_REF(0x0000004B),__yy_gml_object_create(_inst,(_inst.gml___struct___88=__yy_method(_inst,gml_Script____struct___88_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers)), gml_Script_s_get_hometown_name(_inst,_other,_inst.gmlpmap)));gmlty=yyfplus(gmlty,12);}}function gml_Script_rm_player_profile_college_create(_inst,_other){{gml_Script_rm_player_profile_show_noncollege_elements(_inst,_other,false);gml_Script_rm_player_profile_college_create_p1(_inst,_other);gml_Script_rm_player_profile_college_create_p2(_inst,_other);if((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_profile_page_num,2)))&&(yyGetBool(gml_Script_rm_player_profile_show_more(_inst, _other,_inst.gmlpmap)))){{gml_Script_btn_rm_player_profile_college_showP2(_inst,_other);};}else {{gml_Script_btn_rm_player_profile_college_showP1(_inst,_other);};};}}function gml_Script_btn_rm_player_profile_college_showP1(_inst,_other){{gml_Script_slog(_inst,_other,"back");var gmli=0;for(;yyfless(gmli,array_length(yyInst(_inst,_other,YYASSET_REF(0x00000094)).gmlco_page1));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{yyInst(_inst,_other, yyInst(_inst,_other,YYASSET_REF(0x00000094)).gmlco_page1[__yy_gml_array_check_index(gmli,yyInst(_inst,_other,YYASSET_REF(0x00000094)).gmlco_page1)]).visible=true;}};var gmli=0;for(;yyfless(gmli,array_length(yyInst(_inst,_other,YYASSET_REF(0x00000094)).gmlco_page2));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{yyInst(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000094)).gmlco_page2[__yy_gml_array_check_index(gmli,yyInst(_inst,_other, YYASSET_REF(0x00000094)).gmlco_page2)]).visible=false;}};yyInst(_inst,_other,YYASSET_REF(0x00000094)).gmlshow_spr_star_rating_cb=true;yyInst(_inst,_other,YYASSET_REF(0x00000094)).gmlshow_spr_star_rating_cbn=true;yyInst(_inst,_other,YYASSET_REF(0x00000094)).gmlshow_spr_attitude=true;yyInst(_inst,_other,YYASSET_REF(0x00000094)).gmlshow_spr_condition=true;yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_profile_page_num=1;}}function gml_Script_btn_rm_player_profile_college_showP2(_inst,_other){ {gml_Script_slog(_inst,_other,"more");var gmli=0;for(;yyfless(gmli,array_length(yyInst(_inst,_other,YYASSET_REF(0x00000094)).gmlco_page1));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{yyInst(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000094)).gmlco_page1[__yy_gml_array_check_index(gmli,yyInst(_inst,_other,YYASSET_REF(0x00000094)).gmlco_page1)]).visible=false;}};var gmli=0;for(;yyfless(gmli,array_length(yyInst(_inst,_other,YYASSET_REF(0x00000094)).gmlco_page2)); (g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{yyInst(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000094)).gmlco_page2[__yy_gml_array_check_index(gmli,yyInst(_inst,_other,YYASSET_REF(0x00000094)).gmlco_page2)]).visible=true;}};yyInst(_inst,_other,YYASSET_REF(0x00000094)).gmlshow_spr_star_rating_cb=false;yyInst(_inst,_other,YYASSET_REF(0x00000094)).gmlshow_spr_star_rating_cbn=false;yyInst(_inst,_other,YYASSET_REF(0x00000094)).gmlshow_spr_attitude=false; yyInst(_inst,_other,YYASSET_REF(0x00000094)).gmlshow_spr_condition=false;yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_profile_page_num=2;}}function gml_Script_rm_player_profile_college_step(_inst,_other){{yyInst(_inst,_other,_inst.gmlco_attitude).gmltext=string_upper(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Attitude")),": "),__yy_gml_errCheck(gml_Script_s_get_string_attitude(_inst,_other,ds_map_find_value(_inst.gmlpmap,"attitude")))));_inst.gmlx_attitude=yyfplus(__yy_gml_errCheck(yyInst(_inst, _other,_inst.gmlco_attitude).x),__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlco_attitude).gmltext)," "))));_inst.gmly_attitude=yyInst(_inst,_other,_inst.gmlco_attitude).y;}}function gml_Script_btn_click_Profile_College_Cut(_inst,_other){{var gmlpmap=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile;var gmlmsg=gml_Script_s_str(_inst,_other,"msg_CutPlayer");var gmlplayername=yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap, "fname"))," "),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname")));gmlmsg=string_replace(gmlmsg,"$playername",gmlplayername);gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position_full(_inst,_other,ds_map_find_value(gmlpmap,"position")));gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_TradePlayer"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Cut"),kgml_Script_s_msg_clear,kgml_Script_btn_response_cut_player_yes, global.gmlc_background,1);}}function gml_Script_btn_click_Profile_College_Cut_During_Admission_Draft(_inst,_other){{var gmlpmap=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile;var gmlmsg=gml_Script_s_str(_inst,_other,"msg_CutPlayerForRC");var gmlrc_space=gml_Script_recruitment_credits_space(_inst,_other);var gmlrc_reward=gml_Script_s_get_college_player_cut_RC(_inst,_other,gmlpmap);if(yyfequal(gmlrc_space,0)){{gmlmsg=gml_Script_s_str(_inst,_other,"msg_CutPlayerForRCWalletFull");};}else { if(yyfgreater(gmlrc_reward,gmlrc_space)){{gmlmsg=gml_Script_s_str(_inst,_other,"msg_CutPlayerForRCWalletFilling");};};};var gmlplayername=yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname")));gmlmsg=string_replace(gmlmsg,"$playername",gmlplayername);gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position_full(_inst,_other,ds_map_find_value(gmlpmap,"position")));gmlmsg=string_replace(gmlmsg,"$num",gmlrc_reward); gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_TradePlayer"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Cut"),kgml_Script_s_msg_clear,kgml_Script_btn_response_cut_player_for_RC_yes,global.gmlc_background,1);}}function gml_Script_btn_response_cut_player_for_RC_yes(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);{var __yy__v114=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v115 in __yy__v114){if(!__yy__v114.hasOwnProperty(__yy__v115))continue; var __yy__v116=__yy__v114[__yy__v115];{var gmlpatt=ds_map_find_value(__yy__v116.gmlplayer_profile,"attitude");var gmlRC_to_add=gml_Script_s_get_college_player_cut_RC(__yy__v116,_inst,__yy__v116.gmlplayer_profile);gml_Script_recruitment_credits_add(__yy__v116,_inst,gmlRC_to_add);if(yyfequal(g_pBuiltIn.get_current_room(),YYASSET_REF(0x03000016))){{var gmldel=gml_Script_s_remove_player(__yy__v116,_inst,__yy__v116.gmlplayer_profile,"cut",gml_Script_s_pick_epilogue_story(__yy__v116,_inst,"epi_admisscut")); if(yyGetBool(gmldel)){{__yy__v116.gmlplayer_profile=(-1);};};};}else {{ds_list_delete(__yy__v116.gmlroster,ds_list_find_index(__yy__v116.gmlroster,__yy__v116.gmlplayer_profile));ds_map_destroy(__yy__v116.gmlplayer_profile);__yy__v116.gmlplayer_profile=(-1);};};gml_Script_s_complete_achievement(__yy__v116,_inst,"ACH_CUT");if(yyfgreater(gmlpatt,15)){{gml_Script_s_meter_change(__yy__v116,_inst,4,gml_Script_s_get_morale(__yy__v116,_inst),YYASSET_REF(0x03000019),"");var gmli=__yy_gml_errCheck(-__yy_gml_errCheck(gml_Script_s_get_attitude_icon(__yy__v116, _inst,gmlpatt)));gml_Script_s_adjust_team_morale_ignore_freshman(__yy__v116,_inst,yyftime(__yy_gml_errCheck(gmli),2),gmli);if(yyfequal(g_pBuiltIn.get_current_room(),YYASSET_REF(0x03000016))){{return;};};};};}}};room_goto(YYASSET_REF(0x03000019));}}function gml_Script_s_get_college_player_cut_RC(_inst,_other,argument0){{var gmlrc=0;if(yyfequal(ds_map_find_value(argument0,"age"),yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),1))){{gmlrc=2;};};if(yyfequal(ds_map_find_value(argument0, "age"),yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),2))){{gmlrc=3;};};if(yyfequal(ds_map_find_value(argument0,"age"),yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),3))){{gmlrc=4;};};if(yyfequal(ds_map_find_value(argument0,"position"),1)){{gmlrc=yyfplus(gmlrc,2);};};if(yyfequal(ds_map_find_value(argument0,"position"),4)){{gmlrc=yyfplus(gmlrc,1);};};if(yyfequal(ds_map_find_value(argument0,"position"),2)){{gmlrc=yyfplus(gmlrc,1);};};return gmlrc; }}function gml_Script_btn_rm_stats_player_showAwards(_inst,_other){{gml_Script_slog(_inst,_other,"showAwards");yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlco_stats_tab=1;room_goto(YYASSET_REF(0x0300001B));}}function gml_Script_btn_rm_stats_player_showEpilogue(_inst,_other){{gml_Script_slog(_inst,_other,"showEpilogue");yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlco_stats_tab=2;room_goto(YYASSET_REF(0x0300001B));}}function gml_Script____struct___89_stats_player_button_entry_gml_GlobalScript_s_college_gui_helpers(_inst, _other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___89_stats_player_button_entry_gml_GlobalScript_s_college_gui_helpers";}if(gml_Script____struct___89_stats_player_button_entry_gml_GlobalScript_s_college_gui_helpers.prototype.__type===undefined){gml_Script____struct___89_stats_player_button_entry_gml_GlobalScript_s_college_gui_helpers.prototype.__type="gml_Script____struct___89_stats_player_button_entry_gml_GlobalScript_s_college_gui_helpers";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst, gml_Script____struct___89_stats_player_button_entry_gml_GlobalScript_s_college_gui_helpers.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.image_xscale=2.35;_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(1),$$args)];}}}}function gml_Script_stats_player_button_entry(_inst,_other,argument0,argument1,argument2,argument3,argument4,argument5){{var gmlbtn=instance_create_layer(argument0,argument1,"Instances",YYASSET_REF(0x00000014), __yy_gml_object_create(_inst,(_inst.gml___struct___89=__yy_method(_inst,gml_Script____struct___89_stats_player_button_entry_gml_GlobalScript_s_college_gui_helpers)),gml_Script_s_str(_inst,_other,argument2),argument3));var ___sw170___=argument4;var ___swc171___=-1;if(yyCompareVal(___sw170___,0,g_GMLMathEpsilon,false)==0){___swc171___=0;}switch(___swc171___){case 0:{{if((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlco_stats_tab,argument4)))&&(yyGetBool(yyfequal(yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlstat_view,argument5)))){{yyInst(_inst,_other,gmlbtn).gmlcolour=global.gmlc_primary;};};break;};}default :{{if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlco_stats_tab,argument4)){{yyInst(_inst,_other,gmlbtn).gmlcolour=global.gmlc_primary;};};};}};}}function gml_Script____struct___90_rm_stats_player_configure_college_gml_GlobalScript_s_college_gui_helpers(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___90_rm_stats_player_configure_college_gml_GlobalScript_s_college_gui_helpers"; }if(gml_Script____struct___90_rm_stats_player_configure_college_gml_GlobalScript_s_college_gui_helpers.prototype.__type===undefined){gml_Script____struct___90_rm_stats_player_configure_college_gml_GlobalScript_s_college_gui_helpers.prototype.__type="gml_Script____struct___90_rm_stats_player_configure_college_gml_GlobalScript_s_college_gui_helpers";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___90_rm_stats_player_configure_college_gml_GlobalScript_s_college_gui_helpers.prototype); {var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmldraw_box=false;_inst.gmlhalign=1;}}}}function gml_Script____struct___91_rm_stats_player_configure_college_gml_GlobalScript_s_college_gui_helpers(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___91_rm_stats_player_configure_college_gml_GlobalScript_s_college_gui_helpers";}if(gml_Script____struct___91_rm_stats_player_configure_college_gml_GlobalScript_s_college_gui_helpers.prototype.__type===undefined){ gml_Script____struct___91_rm_stats_player_configure_college_gml_GlobalScript_s_college_gui_helpers.prototype.__type="gml_Script____struct___91_rm_stats_player_configure_college_gml_GlobalScript_s_college_gui_helpers";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___91_rm_stats_player_configure_college_gml_GlobalScript_s_college_gui_helpers.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.image_xscale=2.6;_inst.image_yscale=1;_inst.gmluse_player_awards=true; _inst.gmltitle=$$args[__yy_gml_array_check_index(2+(0),$$args)];}}}}function gml_Script_rm_stats_player_configure_college(_inst,_other){{yyInst(_inst,_other,100528).visible=false;yyInst(_inst,_other,100527).visible=false;yyInst(_inst,_other,100519).visible=false;yyInst(_inst,_other,100523).visible=false;yyInst(_inst,_other,100520).visible=false;yyInst(_inst,_other,100524).visible=false;yyInst(_inst,_other,100521).visible=false;yyInst(_inst,_other,100525).visible=false;yyInst(_inst,_other,100522).visible=false; yyInst(_inst,_other,100526).visible=false;yyInst(_inst,_other,100529).visible=false;yyInst(_inst,_other,100530).visible=false;var gmlpx=397;var gmlpy=232;var gmldeltaX=81;_inst.gmlpmap=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile;var gmlinRoster=yyfgreaterequal(ds_list_find_index(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster,_inst.gmlpmap),0);var gmlhasLeft=(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlviewing_hof_players,true)))&&(yyGetBool(yyfequal(gmlinRoster, false)));var gmlhasCurriculumVitae=false;if((yyGetBool(ds_map_exists(_inst.gmlpmap,"curriculum_vitae")))&&(yyGetBool(yyfgreater(string_length(ds_map_find_value(_inst.gmlpmap,"curriculum_vitae")),0)))){{gmlhasCurriculumVitae=true;};};var gmlforceShowStatsTab=(yyGetBool(gmlhasCurriculumVitae))||(yyGetBool(gmlhasLeft));var gmlpos=real(ds_map_find_value(_inst.gmlpmap,"position"));var ___sw172___=gmlpos;var ___swc173___=-1;if(yyCompareVal(___sw172___,1,g_GMLMathEpsilon,false)==0){___swc173___=0;}else if(yyCompareVal(___sw172___, 5,g_GMLMathEpsilon,false)==0){___swc173___=1;}else if(yyCompareVal(___sw172___,2,g_GMLMathEpsilon,false)==0){___swc173___=2;}else if(yyCompareVal(___sw172___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw172___,4,g_GMLMathEpsilon,false)==0){___swc173___=3;}else if(yyCompareVal(___sw172___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw172___,7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw172___,9,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw172___,8,g_GMLMathEpsilon,false)==0){___swc173___=4;} else if(yyCompareVal(___sw172___,10,g_GMLMathEpsilon,false)==0){___swc173___=5;}switch(___swc173___){case 0:{gml_Script_stats_player_button_entry(_inst,_other,gmlpx,gmlpy,"ui_Rushing",kgml_Script_btn_click_StatsView2,0,2);gmlpx=yyfminus(gmlpx,gmldeltaX);gml_Script_stats_player_button_entry(_inst,_other,gmlpx,gmlpy,"ui_Passing",kgml_Script_btn_click_StatsView1,0,1);gmlpx=yyfminus(gmlpx,gmldeltaX);break;}case 1:{if(yyGetBool(gmlforceShowStatsTab)){{gml_Script_stats_player_button_entry(_inst,_other,gmlpx, gmlpy,"ui_Blocking",kgml_Script_btn_click_StatsView1,0,1);gmlpx=yyfminus(gmlpx,gmldeltaX);};};break;}case 2:{gml_Script_stats_player_button_entry(_inst,_other,gmlpx,gmlpy,"ui_Rushing",kgml_Script_btn_click_StatsView2,0,2);gmlpx=yyfminus(gmlpx,gmldeltaX);gml_Script_stats_player_button_entry(_inst,_other,gmlpx,gmlpy,"ui_Receiving",kgml_Script_btn_click_StatsView1,0,1);gmlpx=yyfminus(gmlpx,gmldeltaX);break;}case 3:{if(yyGetBool(gmlforceShowStatsTab)){{gml_Script_stats_player_button_entry(_inst,_other, gmlpx,gmlpy,"ui_Receiving",kgml_Script_btn_click_StatsView1,0,1);gmlpx=yyfminus(gmlpx,gmldeltaX);};};break;}case 4:{if(yyGetBool(gmlforceShowStatsTab)){{gml_Script_stats_player_button_entry(_inst,_other,gmlpx,gmlpy,"ui_Defense",kgml_Script_btn_click_StatsView1,0,1);gmlpx=yyfminus(gmlpx,gmldeltaX);};};break;}case 5:{if(yyGetBool(gmlforceShowStatsTab)){{gml_Script_stats_player_button_entry(_inst,_other,gmlpx,gmlpy,"ui_Kicking",kgml_Script_btn_click_StatsView1,0,1);gmlpx=yyfminus(gmlpx,gmldeltaX);};} ;break;}};if(yyGetBool(gmlhasCurriculumVitae)){{gml_Script_stats_player_button_entry(_inst,_other,gmlpx,gmlpy,"ui_Awards",kgml_Script_btn_rm_stats_player_showAwards,1,0);gmlpx=yyfminus(gmlpx,gmldeltaX);};};if(yyGetBool(gmlhasLeft)){{gml_Script_stats_player_button_entry(_inst,_other,gmlpx,gmlpy,"ui_Epilogue",kgml_Script_btn_rm_stats_player_showEpilogue,2,0);gmlpx=yyfminus(gmlpx,gmldeltaX);};};yyInst(_inst,_other,100509).y=60;yyInst(_inst,_other,100510).y=60;yyInst(_inst,_other,100511).y=60;yyInst(_inst, _other,100509).image_yscale=1.3;yyInst(_inst,_other,100510).image_yscale=1.3;yyInst(_inst,_other,100511).image_yscale=1.3;yyInst(_inst,_other,100512).y=60;yyInst(_inst,_other,100514).y=60;yyInst(_inst,_other,100515).y=60;if(yyGetBool(ds_map_exists(_inst.gmlpmap,"class_of"))){{if((yyGetBool(yyfequal(ds_map_find_value(_inst.gmlpmap,"team_leave_reason"),"graduated")))||(yyGetBool(yyfequal(ds_map_find_value(_inst.gmlpmap,"team_leave_reason"),"drafted")))){{if(yyfequal(ds_map_find_value(_inst.gmlpmap, "age"),yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),3))){{instance_create_layer(248,40,"Instances",YYASSET_REF(0x0000004B),__yy_gml_object_create(_inst,(_inst.gml___struct___90=__yy_method(_inst,gml_Script____struct___90_rm_stats_player_configure_college_gml_GlobalScript_s_college_gui_helpers)),yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_ClassOf")),__yy_gml_errCheck(string(ds_map_find_value(_inst.gmlpmap,"class_of"))))));};};};};};};yyInst(_inst,_other, 100509).visible=false;yyInst(_inst,_other,100510).visible=false;yyInst(_inst,_other,100511).visible=false;yyInst(_inst,_other,100512).visible=false;yyInst(_inst,_other,100514).visible=false;yyInst(_inst,_other,100515).visible=false;var ___sw174___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlco_stats_tab;var ___swc175___=-1;if(yyCompareVal(___sw174___,0,g_GMLMathEpsilon,false)==0){___swc175___=0;}else if(yyCompareVal(___sw174___,1,g_GMLMathEpsilon,false)==0){___swc175___=1;}else if(yyCompareVal(___sw174___, 2,g_GMLMathEpsilon,false)==0){___swc175___=2;}switch(___swc175___){case 0:{{yyInst(_inst,_other,100509).visible=true;yyInst(_inst,_other,100510).visible=true;yyInst(_inst,_other,100511).visible=true;yyInst(_inst,_other,100512).visible=true;yyInst(_inst,_other,100514).visible=true;yyInst(_inst,_other,100515).visible=true;break;};}case 1:{{gml_Script_s_set_cv_list_from_player(_inst,_other,_inst.gmlpmap);instance_create_layer(32,60,"Instances",YYASSET_REF(0x0000005B),__yy_gml_object_create(_inst,(_inst.gml___struct___91=__yy_method(_inst, gml_Script____struct___91_rm_stats_player_configure_college_gml_GlobalScript_s_college_gui_helpers)),gml_Script_s_str(_inst,_other,"ui_Awards")));break;};}case 2:{{var gmlepi_text=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_No_Epilogue"))," ("),__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"team_leave_reason"))),")");if((yyGetBool(ds_map_exists(_inst.gmlpmap,"epilogue")))&&(yyGetBool(yyfnotequal(ds_map_find_value(_inst.gmlpmap,"epilogue"),"")))){{gmlepi_text=gml_Script_s_epilogue_story_to_str(_inst, _other,ds_map_find_value(_inst.gmlpmap,"epilogue"));gmlepi_text=gml_Script_s_parse_player_message(_inst,_other,gmlepi_text,_inst.gmlpmap);};};var gmlmsg=instance_create_layer(yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5),yyfplus((-8),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(display_get_gui_height()),0.5))),"Instances",YYASSET_REF(0x00000050));yyInst(_inst,_other,gmlmsg).gmltext=gmlepi_text;yyInst(_inst,_other,gmlmsg).gmlcolour=global.gmlc_background;break;};}};var gmlsingleUnitView=false; if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlprofile_back_to,1)){{gmlsingleUnitView=true;};};if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlprofile_back_to,2)){{gmlsingleUnitView=true;};};if(yyGetBool(gml_Script_s_doing_college_draft(_inst,_other))){{gmlsingleUnitView=true;};};if(yyGetBool(gmlsingleUnitView)){{yyInst(_inst,_other,100516).visible=false;yyInst(_inst,_other,100517).visible=false;};};}}function gml_Script_s_change_panel_division_mode(_inst,_other,argument0){ {if(yyfequal(argument0,_inst.undefined)){argument0=_inst;};}{if(yyGetBool(argument0)){{var __yy__v117=GetWithArray(argument0);for(var __yy__v118 in __yy__v117){if(!__yy__v117.hasOwnProperty(__yy__v118))continue;var __yy__v119=__yy__v117[__yy__v118];{(g_yyPrePostObject__=__yy__v119.gmlmode,__yy__v119.gmlmode=(g_yyPrePostObject__ instanceof Long?__yy__v119.gmlmode.add(1):++__yy__v119.gmlmode),g_yyPrePostObject__);if(yyfgreaterequal(__yy__v119.gmlmode,5)){__yy__v119.gmlmode=0;};gml_Script_s_panel_skip_independents_cnf_view(__yy__v119, _inst,argument0);}}};};}}function gml_Script_s_panel_skip_independents_cnf_view(_inst,_other,argument0){{{var __yy__v120=GetWithArray(argument0);for(var __yy__v121 in __yy__v120){if(!__yy__v120.hasOwnProperty(__yy__v121))continue;var __yy__v122=__yy__v120[__yy__v121];{if((yyGetBool(gml_Script_s_is_co_mode(__yy__v122,_inst)))&&(yyGetBool(variable_instance_exists(__yy__v122.id,"_conf_stats")))&&(yyGetBool(!yyGetBool(__yy__v122.gml_conf_stats)))&&(yyGetBool(yyfequal(__yy__v122.gmlmode,0)))){__yy__v122.gmlmode=2; };}}};}}function gml_Script_s_panel_scroll_init(_inst,_other,argument0){{if(yyfequal(argument0,_inst.undefined)){argument0=0;};}{_inst.gmlactive=true;_inst.gmlclicked=false;_inst.gmlms_offset=0;_inst.gmlaction_global_flick=kgml_Script_s_panel_scroll_global_flick;gml_Script_s_set_var_if_missing(_inst,_other,"_scroll",false);gml_Script_s_set_var_if_missing(_inst,_other,"_scroll_x",0);gml_Script_s_set_var_if_missing(_inst,_other,"_scroll_y",0);_inst.gml_scroll_arrow_top=false;_inst.gml_scroll_arrow_bottom=false; _inst.gml_scroll_flick_y=0;gml_Script_s_panel_scroll_set_height(_inst,_other,argument0);}}function gml_Script_s_panel_scroll_step(_inst,_other){{if((yyGetBool(global.gmlgamepad))&&(yyGetBool(_inst.gmlactive))&&(yyGetBool(yyfequal(yyInst(_inst,_other,global.gmlgp).gmlui_selected,_inst.id)))){{if(yyGetBool(yyInst(_inst,_other,global.gmlgp).gmltriggerl)){_inst.gml_scroll_flick_y=yyfplus(_inst.gml_scroll_flick_y,0.5);}else {if(yyGetBool(yyInst(_inst,_other,global.gmlgp).gmltriggerr)){_inst.gml_scroll_flick_y=yyfminus(_inst.gml_scroll_flick_y, 0.5);}else {_inst.gml_scroll_flick_y=yyfminus(_inst.gml_scroll_flick_y,yyftime(__yy_gml_errCheck(yyInst(_inst,_other,global.gmlgp).gmlaxisr_v),0.5));};};};};if(yyGetBool(abs(_inst.gml_scroll_flick_y))){_inst.gml_scroll_y=yyfplus(_inst.gml_scroll_y,_inst.gml_scroll_flick_y);};if(yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other))){{if((yyGetBool(mouse_check_button_pressed(1)))&&(yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_x(),_inst.x)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_x(),yyfplus(__yy_gml_errCheck(_inst.x), __yy_gml_errCheck(_inst.sprite_width)))))&&(yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_y(),_inst.y)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_y(),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)))))){{_inst.gmlclicked=true;};};if((yyGetBool(mouse_check_button(1)))&&(yyGetBool(_inst.gmlclicked))){{if(yyfequal(_inst.gmlms_offset,0)){_inst.gmlms_offset=yyfminus(__yy_gml_errCheck(_inst.gml_scroll_y),__yy_gml_errCheck(g_pBuiltIn.get_mouse_y()));};_inst.gml_scroll_y=yyfplus(__yy_gml_errCheck(_inst.gmlms_offset), __yy_gml_errCheck(g_pBuiltIn.get_mouse_y()));_inst.gml_scroll_flick_y=0;};}else {{_inst.gmlms_offset=0;};};if((yyGetBool(mouse_check_button_released(1)))&&(yyGetBool(_inst.gmlclicked))){{_inst.gmlclicked=false;};};};};_inst.gml_scroll_flick_y=yyftime(_inst.gml_scroll_flick_y,0.9);_inst.gml_scroll_y=clamp(_inst.gml_scroll_y,_inst.gml_scroll_height,0);}}function gml_Script_s_panel_scroll_set_height(_inst,_other,argument0){{_inst.gml_scroll_height=yyfplus(__yy_gml_errCheck(__yy_gml_errCheck(-__yy_gml_errCheck(argument0))), __yy_gml_errCheck(_inst.sprite_height));}}function gml_Script_s_panel_scroll_global_flick(_inst,_other){{if(yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other))){{if((yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_y(),_inst.y)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_y(),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)))))){{if((yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_x(),_inst.x)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_x(),yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)))))){ _inst.gml_scroll_flick_y=ds_map_find_value(g_pBuiltIn.get_event_data(),"diffY");};};};};};}}function gml_Script_s_panel_scroll_draw_gui(_inst,_other){{if(yyGetBool(_inst.gml_scroll_arrow_top)){draw_sprite_ext(_inst,YYASSET_REF(0x01000090),0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),10),yyfplus(__yy_gml_errCheck(_inst.y),12),0.5,0.5,(-90),16777215,1);};if(yyGetBool(_inst.gml_scroll_arrow_bottom)){draw_sprite_ext(_inst,YYASSET_REF(0x01000090),0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x), __yy_gml_errCheck(_inst.sprite_width)),10),yyfminus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)),12),0.5,0.5,90,16777215,1);};_inst.gml_scroll_arrow_top=false;_inst.gml_scroll_arrow_bottom=false;}}function gml_Script_s_panel_scroll_is_inside(_inst,_other,argument0,argument1){{if(yyfequal(argument1,_inst.undefined)){argument1=4;};}{if(!yyGetBool(_inst.gml_scroll)){return true;};if(yyfless(argument0,yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(argument1)))){{_inst.gml_scroll_arrow_top=true; return false;};};if(yyfgreater(argument0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)),__yy_gml_errCheck(argument1)))){{_inst.gml_scroll_arrow_bottom=true;return false;};};return true;}}function gml_GlobalScript_s_load_profile_uni(_inst,_other){(_inst.gmls_load_profile_uni=__yy_method(_inst,gml_Script_s_load_profile_uni));}function gml_Script_s_load_profile_uni(_inst,_other,argument0){{if((yyGetBool(argument0))&&(yyGetBool(yyfnotequal(yyInst(_inst,_other,argument0).gmlpmap, (-4))))){{gml_Script_slog(_inst,_other,yyfplus(yyfplus("s_load_profile_uni: ",__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,argument0).gmlpmap,"fname"))),__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,argument0).gmlpmap,"lname"))));var gmltid=(-1);if((yyGetBool(ds_map_exists(yyInst(_inst,_other,argument0).gmlpmap,"teamid")))&&(yyGetBool(yyfgreater(ds_map_find_value(yyInst(_inst,_other,argument0).gmlpmap,"teamid"),(-1))))){gmltid=ds_map_find_value(yyInst(_inst,_other,argument0).gmlpmap, "teamid");}else {if(yyfgreater(ds_list_find_index(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstafflist,yyInst(_inst,_other,argument0).gmlpmap),(-1))){gmltid=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id;}else {if(yyfequal(yyInst(_inst,_other,argument0).gmlpmap,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlboss_profile)){gmltid=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id;}else {gml_Script_slog(_inst,_other,"NOT FOUND");};};};if(yyfgreater(gmltid,(-1))){{var gmluniform=instance_create_layer(0, 0,"Instances",YYASSET_REF(0x00000085));yyInst(_inst,_other,gmluniform).visible=false;gml_Script_s_load_uniform_file2(_inst,_other,gmltid,gmluniform,0,"");{var __yy__v123=GetWithArray(argument0);for(var __yy__v124 in __yy__v123){if(!__yy__v123.hasOwnProperty(__yy__v124))continue;var __yy__v125=__yy__v123[__yy__v124];gml_Script_s_set_up_uniform_profile(__yy__v125,_inst,gmluniform);}};};};};};}}function gml_GlobalScript_s_get_lifestyle(_inst,_other){(_inst.gmls_get_lifestyle=__yy_method(_inst,gml_Script_s_get_lifestyle)); }function gml_Script_s_get_lifestyle(_inst,_other){{{var __yy__v126=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v127 in __yy__v126){if(!__yy__v126.hasOwnProperty(__yy__v127))continue;var __yy__v128=__yy__v126[__yy__v127];{var gmllif=50;return round(gmllif);}}};}}function gml_GlobalScript_btn_meet_teammate(_inst,_other){(_inst.gmlbtn_meet_teammate=__yy_method(_inst,gml_Script_btn_meet_teammate));(_inst.gmls_confirm_teammate_meeting=__yy_method(_inst,gml_Script_s_confirm_teammate_meeting));}function gml_Script_btn_meet_teammate(_inst, _other){{{var __yy__v129=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v130 in __yy__v129){if(!__yy__v129.hasOwnProperty(__yy__v130))continue;var __yy__v131=__yy__v129[__yy__v130];{var gmlpmap=gml_Script_s_get_qb_pmap(__yy__v131,_inst);var gmlteammate=__yy__v131.gmlplayer_profile;if(yyfgreater(ds_map_find_value(gmlteammate,"attitude"),90)){{gml_Script_s_create_message(__yy__v131,_inst,"",gml_Script_s_str(__yy__v131,_inst,"msg_TeammateMoraleTooHigh"),gml_Script_s_str(__yy__v131,_inst,"ui_Continue"), "",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};};if(yyfless(yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"condition")),1),20)){{gml_Script_s_create_message(__yy__v131,_inst,"",gml_Script_s_str(__yy__v131,_inst,"msg_NotEnoughCondition"),gml_Script_s_str(__yy__v131,_inst,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};};var gmlmsg=gml_Script_s_str(__yy__v131,_inst,"msg_MeetTeammate");gmlmsg=string_replace(gmlmsg,"$teammate",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlteammate, "fname"))," "),__yy_gml_errCheck(ds_map_find_value(gmlteammate,"lname"))));gmlmsg=string_replace(gmlmsg,"$num",yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"condition")),20));gml_Script_s_create_message(__yy__v131,_inst,"",gmlmsg,gml_Script_s_str(__yy__v131,_inst,"ui_Cancel"),gml_Script_s_str(__yy__v131,_inst,"ui_Confirm"),kgml_Script_s_msg_clear,kgml_Script_s_confirm_teammate_meeting,global.gmlc_background,1);}}};}}function gml_Script_s_confirm_teammate_meeting(_inst,_other){{gml_Script_s_msg_clear(_inst, _other);var gmlpmap=gml_Script_s_get_qb_pmap(_inst,_other);var gmlteammate=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile;ds_map_set(gmlpmap,"condition",clamp(yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"condition")),20),1,100));ds_map_set(gmlteammate,"attitude",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlteammate,"attitude")),15),1,100));}}function gml_GlobalScript_s_check_qb_mode_benched(_inst,_other){(_inst.gmls_qb_mode_benched_status=__yy_method(_inst,gml_Script_s_qb_mode_benched_status)); }function gml_Script_s_qb_mode_benched_status(_inst,_other){{{var __yy__v132=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v133 in __yy__v132){if(!__yy__v132.hasOwnProperty(__yy__v133))continue;var __yy__v134=__yy__v132[__yy__v133];{if(yyfless(__yy__v134.gmlrelationship_boss,15)){return 1;}else {if(yyfless(gml_Script_s_get_qb_energy(__yy__v134,_inst),40)){return 2;};};}}};return 0;}}function gml_GlobalScript_s_college_ranking(_inst,_other){(_inst.gmls_co_set_starting_rank=__yy_method(_inst,gml_Script_s_co_set_starting_rank)); (_inst.gmls_co_set_ranking_points=__yy_method(_inst,gml_Script_s_co_set_ranking_points));(_inst.gmls_co_reset_teams_rank=__yy_method(_inst,gml_Script_s_co_reset_teams_rank));(_inst.gmls_co_update_fix_rank=__yy_method(_inst,gml_Script_s_co_update_fix_rank));(_inst.gmls_get_prestige=__yy_method(_inst,gml_Script_s_get_prestige));(_inst.gmls_update_ranking_positions=__yy_method(_inst,gml_Script_s_update_ranking_positions));(_inst.gmls_get_ranking_pos_data=__yy_method(_inst,gml_Script_s_get_ranking_pos_data)); (_inst.gmls_get_ranking_pos_data_prev=__yy_method(_inst,gml_Script_s_get_ranking_pos_data_prev));(_inst.gmls_parse_ranking_pos=__yy_method(_inst,gml_Script_s_parse_ranking_pos));(_inst.gmls_encode_ranking_pos=__yy_method(_inst,gml_Script_s_encode_ranking_pos));(_inst.gmls_save_ranking_pos_end_of_season=__yy_method(_inst,gml_Script_s_save_ranking_pos_end_of_season));(_inst.gmls_get_ranking_pos_last_season=__yy_method(_inst,gml_Script_s_get_ranking_pos_last_season));(_inst.gmls_is_preseason_for_ranking=__yy_method(_inst, gml_Script_s_is_preseason_for_ranking));(_inst.gmls_update_rank_after_adminssion_draft=__yy_method(_inst,gml_Script_s_update_rank_after_adminssion_draft));}function gml_Script_s_co_set_starting_rank(_inst,_other,argument0){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){return;};var gmlof=gml_Script_s_get_team_offense_with_reputation_boost(_inst,_other,argument0);var gmldf=gml_Script_s_get_team_defense_with_reputation_boost(_inst,_other,argument0);var gmlrp=yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(gmldf), __yy_gml_errCheck(gmlof))),5)),__yy_gml_errCheck(irandom_range((-2),2)));if(yyfgreater(yyfplus(__yy_gml_errCheck(gmlof),__yy_gml_errCheck(gmldf)),16)){gmlrp=yyfplus(yyfplus(65,__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(gmldf),__yy_gml_errCheck(gmlof)))),__yy_gml_errCheck(irandom_range((-1),2)));};if(yyfequal(gml_Script_s_get_prestige(_inst,_other,argument0),2)){gmlrp=yyfminus(gmlrp,10);};gml_Script_s_co_set_ranking_points(_inst,_other,argument0,gmlrp);gml_Script_slogf(_inst,_other,"Team: %1 RP: %2", ds_map_find_value(argument0,"name"),gmlrp);}}function gml_Script_s_co_set_ranking_points(_inst,_other,argument0,argument1){{ds_map_set(argument0,"ranking_points",argument1);ds_map_set(argument0,"ranking_points_prev",argument1);ds_map_set(argument0,"ranking_points_season",argument1);}}function gml_Script_s_co_reset_teams_rank(_inst,_other){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){return;};{var __yy__v135=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v136 in __yy__v135){if(!__yy__v135.hasOwnProperty(__yy__v136))continue; var __yy__v137=__yy__v135[__yy__v136];{gml_Script_slogf(__yy__v137,_inst,"College: Reset teams ranking %1 to %2",__yy__v137.gmlmin_team_id,__yy__v137.gmlmax_team_id);var gmli=__yy__v137.gmlmin_team_id;for(;yyflessequal(gmli,__yy__v137.gmlmax_team_id);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gml_Script_s_co_set_starting_rank(__yy__v137,_inst,ds_list_find_value(__yy__v137.gmlteamlist,gmli));}};}}};}}function gml_Script_s_co_update_fix_rank(_inst, _other,argument0){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){return;};if(yyfequal(argument0,(-4))){return;};var gmltw_rc,gmltl_rc;var gmltw=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(argument0,"away_team"));var gmltl=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(argument0,"home_team"));if(yyfless(real(ds_map_find_value(argument0,"away_score")),real(ds_map_find_value(argument0,"home_score")))){{var gmltt=gmltl;gmltl=gmltw;gmltw=gmltt;};};var gmltw_od=yyfplus(__yy_gml_errCheck(gml_Script_s_get_team_offense_with_reputation_boost(_inst, _other,gmltw)),__yy_gml_errCheck(gml_Script_s_get_team_defense_with_reputation_boost(_inst,_other,gmltw)));var gmltl_od=yyfplus(__yy_gml_errCheck(gml_Script_s_get_team_offense_with_reputation_boost(_inst,_other,gmltl)),__yy_gml_errCheck(gml_Script_s_get_team_defense_with_reputation_boost(_inst,_other,gmltl)));gmltw_rc=gmltl_od;gmltl_rc=gmltw_od;if((yyGetBool(yyfequal(gml_Script_s_get_prestige(_inst,_other,gmltw),1)))&&(yyGetBool(yyfnotequal(gml_Script_s_get_prestige(_inst,_other,gmltl),1)))){gmltl_rc=yyfminus(gmltl_rc, 31);}else {if((yyGetBool(yyfequal(gml_Script_s_get_prestige(_inst,_other,gmltw),2)))&&(yyGetBool(yyfequal(gml_Script_s_get_prestige(_inst,_other,gmltl),3)))){gmltl_rc=yyfminus(gmltl_rc,24);}else {gmltl_rc=yyfminus(gmltl_rc,21);};};if((yyGetBool(yyfnotequal(gml_Script_s_get_prestige(_inst,_other,gmltw),2)))&&(yyGetBool(yyfequal(gml_Script_s_get_prestige(_inst,_other,gmltl),2)))){gmltw_rc=max(gmltw_rc,5);};if(yyflessequal(yyfplus(__yy_gml_errCheck(gml_Script_s_get_map_real(_inst,_other,gmltl,"wins", 0)),__yy_gml_errCheck(gml_Script_s_get_map_real(_inst,_other,gmltl,"losses",0))),1)){gmltl_rc=yyfminus(gmltl_rc,10);};if((yyGetBool(yyfequal(gmltw,yyInst(_inst,_other,global.gmlg_m).gmlmyteam)))&&(yyGetBool(yyfless(yyInst(_inst,_other,gml_Script_s_get_ranking_pos_data(_inst,_other,gmltw)).gmlpos,25)))){gmltl_rc=max(gmltl_rc,(-10));};ds_map_set(gmltw,"ranking_points_prev",ds_map_find_value(gmltw,"ranking_points"));ds_map_set(gmltl,"ranking_points_prev",ds_map_find_value(gmltl,"ranking_points"));ds_map_set(gmltw, "ranking_points",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmltw,"ranking_points")),__yy_gml_errCheck(gmltw_rc)));ds_map_set(gmltl,"ranking_points",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmltl,"ranking_points")),__yy_gml_errCheck(gmltl_rc)));if((yyGetBool(yyflessequal(ds_map_find_value(gmltw,"ranking"),25)))||(yyGetBool(yyflessequal(ds_map_find_value(gmltl,"ranking"),25)))){{if((yyGetBool(yyfless(abs(yyfminus(__yy_gml_errCheck(ds_map_find_value(gmltw,"ranking_points")),__yy_gml_errCheck(ds_map_find_value(gmltl, "ranking_points")))),5)))||(yyGetBool(yyfequal(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmltw,"ranking")),1),ds_map_find_value(gmltl,"ranking"))))){{if(yyfless(ds_map_find_value(gmltw,"ranking_points"),ds_map_find_value(gmltl,"ranking_points"))){{ds_map_set(gmltl,"ranking_points",ds_map_find_value(gmltw,"ranking_points"));ds_map_set(gmltw,"ranking_points",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmltl,"ranking_points")),1));};};};};};};if(yyfless(real(ds_map_find_value(argument0,"week")),yyfplus(__yy_gml_errCheck(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlfirst_week_postseason),__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlextra_weeks_endofseason)))){{gml_Script_slogf(_inst,_other,"updating season team's ranking - week %1",ds_map_find_value(argument0,"week"));ds_map_set(gmltw,"ranking_points_season",ds_map_find_value(gmltw,"ranking_points"));ds_map_set(gmltl,"ranking_points_season",ds_map_find_value(gmltl,"ranking_points"));};};if(yyfequal(real(ds_map_find_value(argument0,"week")),gml_Script_s_get_last_schedule_week(_inst, _other))){{var ___sw178___=ds_map_find_value(argument0,"cat");var ___swc179___=-1;if(yyCompareVal(___sw178___,"f",g_GMLMathEpsilon,false)==0){___swc179___=0;}switch(___swc179___){case 0:{ds_map_set(gmltw,"ranking_points",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmltw,"ranking_points")),2000));ds_map_set(gmltl,"ranking_points",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmltl,"ranking_points")),1000));break;}};};};}}function gml_Script_s_get_prestige(_inst,_other,argument0){{var gmlconference=gml_Script_s_get_struct_in_array_by_uid(_inst, _other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlconferences,ds_map_find_value(argument0,"conference"));if(yyGetBool(gmlconference)){return real(yyInst(_inst,_other,gmlconference).gmlprestige);};return(-1);}}function gml_Script_s_update_ranking_positions(_inst,_other,argument0,argument1){{gml_Script_slogf(_inst,_other,"Update ranking positions");var gml_subdiv=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsubdiv_data[__yy_gml_array_check_index(argument0,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsubdiv_data)]; var gmltd,gmlrpd,gmlrpsd;var gmli=0;for(;yyfless(gmli,array_length(yyInst(_inst,_other,gml_subdiv).gmlrankings));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmltd=yyInst(_inst,_other,gml_subdiv).gmlrankings[__yy_gml_array_check_index(gmli,yyInst(_inst,_other,gml_subdiv).gmlrankings)];gmlrpd=gml_Script_s_get_ranking_pos_data(_inst,_other,yyInst(_inst,_other,gmltd).gmlteam);if((yyGetBool(yyfequal(argument1,1)))||(yyGetBool(yyfgreater(yyInst(_inst, _other,gmlrpd).gmlweek,argument1)))){{ds_map_set(yyInst(_inst,_other,gmltd).gmlteam,"ranking_pos_prev",0);ds_map_set(yyInst(_inst,_other,gmltd).gmlteam,"ranking_pos_season",0);ds_map_set(yyInst(_inst,_other,gmltd).gmlteam,"ranking_pos",gml_Script_s_encode_ranking_pos(_inst,_other,yyfplus(__yy_gml_errCheck(gmli),1),argument1));};}else {if(yyfless(yyInst(_inst,_other,gmlrpd).gmlweek,argument1)){{ds_map_set(yyInst(_inst,_other,gmltd).gmlteam,"ranking_pos_prev",gml_Script_s_encode_ranking_pos(_inst,_other, yyInst(_inst,_other,gmlrpd).gmlpos,yyInst(_inst,_other,gmlrpd).gmlweek));ds_map_set(yyInst(_inst,_other,gmltd).gmlteam,"ranking_pos",gml_Script_s_encode_ranking_pos(_inst,_other,yyfplus(__yy_gml_errCheck(gmli),1),argument1));};};};if(yyfequal(argument1,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular),__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlextra_weeks_endofseason)))){{gmlrpsd=gml_Script_s_parse_ranking_pos(_inst,_other,gml_Script_s_get_map_real(_inst, _other,yyInst(_inst,_other,gmltd).gmlteam,"ranking_pos_season",0));if(yyfequal(yyInst(_inst,_other,gmlrpsd).gmlweek,0)){{gml_Script_slogf(_inst,_other,"*** ranking pos season team %1 pos %2",yyInst(_inst,_other,gmltd).gmluid,yyfplus(__yy_gml_errCheck(gmli),1));ds_map_set(yyInst(_inst,_other,gmltd).gmlteam,"ranking_pos_season",gml_Script_s_encode_ranking_pos(_inst,_other,yyfplus(__yy_gml_errCheck(gmli),1),argument1));};};};};gml_Script_s_update_team_data_rank_pos(_inst,_other,gmltd);}};}}function gml_Script_s_get_ranking_pos_data(_inst, _other,argument0){{return gml_Script_s_parse_ranking_pos(_inst,_other,gml_Script_s_get_map_real(_inst,_other,argument0,"ranking_pos",0));}}function gml_Script_s_get_ranking_pos_data_prev(_inst,_other,argument0){{return gml_Script_s_parse_ranking_pos(_inst,_other,gml_Script_s_get_map_real(_inst,_other,argument0,"ranking_pos_prev",0));}}function gml_Script____struct___92_s_parse_ranking_pos_gml_GlobalScript_s_college_ranking(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___92_s_parse_ranking_pos_gml_GlobalScript_s_college_ranking"; }if(gml_Script____struct___92_s_parse_ranking_pos_gml_GlobalScript_s_college_ranking.prototype.__type===undefined){gml_Script____struct___92_s_parse_ranking_pos_gml_GlobalScript_s_college_ranking.prototype.__type="gml_Script____struct___92_s_parse_ranking_pos_gml_GlobalScript_s_college_ranking";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___92_s_parse_ranking_pos_gml_GlobalScript_s_college_ranking.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlweek=$$args[__yy_gml_array_check_index(2+(0), $$args)];_inst.gmlpos=$$args[__yy_gml_array_check_index(2+(1),$$args)];}}}}function gml_Script_s_parse_ranking_pos(_inst,_other,argument0){{return __yy_gml_object_create(_inst,(_inst.gml___struct___92=__yy_method(_inst,gml_Script____struct___92_s_parse_ranking_pos_gml_GlobalScript_s_college_ranking)),round(yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(argument0),__yy_gml_errCheck(floor(argument0)))),100)),floor(argument0));}}function gml_Script_s_encode_ranking_pos(_inst,_other,argument0,argument1){ {return yyfplus(__yy_gml_errCheck(argument0),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(argument1),100)));}}function gml_Script_s_save_ranking_pos_end_of_season(_inst,_other){{{var __yy__v138=GetWithArray(global.gmlg_m);for(var __yy__v139 in __yy__v138){if(!__yy__v138.hasOwnProperty(__yy__v139))continue;var __yy__v140=__yy__v138[__yy__v139];{ds_map_set(__yy__v140.gmlmyteam,"rank_last_season",yyInst(_inst,_other,gml_Script_s_get_ranking_pos_data(__yy__v140,_inst,__yy__v140.gmlmyteam)).gmlpos);gml_Script_slogf(__yy__v140, _inst,"*** SAVE LAST SEASON RANK FOR MY TEAM\nranking pos: %1",ds_map_find_value(__yy__v140.gmlmyteam,"rank_last_season"));}}};}}function gml_Script_s_get_ranking_pos_last_season(_inst,_other){{return gml_Script_s_get_map_real(_inst,_other,yyInst(_inst,_other,global.gmlg_m).gmlmyteam,"rank_last_season",0);}}function gml_Script_s_is_preseason_for_ranking(_inst,_other){{if((yyGetBool(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))))||(yyGetBool(yyfequal(yyInst(_inst,_other,global.gmlg_m).gmlyear,1)))){ return false;};if((yyGetBool(yyfequal(yyInst(_inst,_other,global.gmlg_m).gmlweek,1)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,global.gmlg_m).gmlcollege_admissions_draft_round,0)))){return true;};return false;}}function gml_Script_s_update_rank_after_adminssion_draft(_inst,_other){{var gmltm=yyInst(_inst,_other,global.gmlg_m).gmlmyteam;var gmlstarting_pts=gml_Script_s_get_map_real(_inst,_other,gmltm,"ranking_points",0);gml_Script_s_get_team_offense(_inst,_other,gmltm);gml_Script_s_get_team_defense(_inst, _other,gmltm);gml_Script_s_co_set_starting_rank(_inst,_other,gmltm);var gmlpostdraft_pts=gml_Script_s_get_map_real(_inst,_other,gmltm,"ranking_points",0);var gmlgenerosity_fallback_pts=yyfminus(71,__yy_gml_errCheck(gml_Script_s_get_ranking_pos_last_season(_inst,_other)));gml_Script_s_co_set_ranking_points(_inst,_other,gmltm,max(gmlpostdraft_pts,gmlgenerosity_fallback_pts));gml_Script_slogf(_inst,_other,"*** User team ranking points updated after the admission draft");gml_Script_slogf(_inst,_other, "start pts: %1 post draft pts: %2 generosity fallback pts: %3",gmlstarting_pts,gmlpostdraft_pts,gmlgenerosity_fallback_pts);gml_Script_s_subdivision_update_rankings(_inst,_other,gml_Script_s_get_subdivision(_inst,_other,gmltm),true,true);}}function gml_GlobalScript_font_scripts(_inst,_other){(_inst.gmls_data_path=__yy_method(_inst,gml_Script_s_data_path));(_inst.gmls_fonts_init=__yy_method(_inst,gml_Script_s_fonts_init));(_inst.gmls_erase_text_background=__yy_method(_inst,gml_Script_s_erase_text_background)); (_inst.gmldraw_hd_text=__yy_method(_inst,gml_Script_draw_hd_text));(_inst.gmldraw_hd_text_color=__yy_method(_inst,gml_Script_draw_hd_text_color));(_inst.gmldraw_hd_text_ext=__yy_method(_inst,gml_Script_draw_hd_text_ext));(_inst.gmldraw_hd_text_ext_color=__yy_method(_inst,gml_Script_draw_hd_text_ext_color));(_inst.gmldraw_hd_text_transformed=__yy_method(_inst,gml_Script_draw_hd_text_transformed));(_inst.gmldraw_hd_text_transformed_color=__yy_method(_inst,gml_Script_draw_hd_text_transformed_color)); (_inst.gmldraw_hd_text_ext_transformed=__yy_method(_inst,gml_Script_draw_hd_text_ext_transformed));(_inst.gmlstring_hd_width=__yy_method(_inst,gml_Script_string_hd_width));(_inst.gmlstring_hd_width_ext=__yy_method(_inst,gml_Script_string_hd_width_ext));(_inst.gmlstring_hd_height=__yy_method(_inst,gml_Script_string_hd_height));(_inst.gmlstring_hd_height_ext=__yy_method(_inst,gml_Script_string_hd_height_ext));}function gml_Script_s_data_path(_inst,_other,argument0){{return yyfplus(__yy_gml_errCheck(g_pBuiltIn.working_directory), __yy_gml_errCheck(argument0));}}function gml_Script_s_fonts_init(_inst,_other){{gml_Script_slog(_inst,_other,"Load JAPAN ttf font");global.gmlfnt_small_flex=YYASSET_REF(0x07000001);global.gmlfnt_flex=YYASSET_REF(0x07000002);global.gmlfnt_restart_flex=YYASSET_REF(0x07000004);global.gmlhd_fonts=false;if(yyfequal(os_get_config(),"Japan")){{gml_Script_slog(_inst,_other,"Load JAPAN ttf font");var gmljapFontPath=gml_Script_s_data_path(_inst,_other,"TT_DotGothic16-M.TTF");font_add_enable_aa(false);global.gmlfnt_jp=font_add(gmljapFontPath, 50.4,false,false,32,128);global.gmlfnt_small_jp=font_add(gmljapFontPath,28.8,false,false,32,128);global.gmlfnt_restart_jp=font_add(gmljapFontPath,50.4,false,false,32,128);global.gmlfnt_flex=global.gmlfnt_jp;global.gmlfnt_small_flex=global.gmlfnt_small_jp;global.gmlfnt_restart_flex=global.gmlfnt_restart_jp;global.gmlhd_fonts=true;gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus("Load ttf font [",__yy_gml_errCheck(string(gmljapFontPath))),"] done:["),__yy_gml_errCheck(string(global.gmlfnt_jp))), "]"));};};}}function gml_Script_s_erase_text_background(_inst,_other,argument0,argument1,argument2,argument3){{if(yyfequal(argument3,_inst.undefined)){argument3=4;};}{var gmlsw=gml_Script_string_hd_width(_inst,_other,argument2);var gmlalpha=draw_get_alpha();var gmlhal=draw_get_halign();var ___sw182___=gmlhal;var ___swc183___=-1;if(yyCompareVal(___sw182___,1,g_GMLMathEpsilon,false)==0){___swc183___=0;}else if(yyCompareVal(___sw182___,2,g_GMLMathEpsilon,false)==0){___swc183___=1;}switch(___swc183___){case 0:{ argument0=yyfminus(argument0,yyfdivide(__yy_gml_errCheck(gmlsw),2));break;}case 1:{argument0=yyfminus(argument0,gmlsw);break;}};draw_set_alpha(1);draw_rectangle_color(yyfminus(__yy_gml_errCheck(argument0),__yy_gml_errCheck(argument3)),yyfminus(__yy_gml_errCheck(argument1),__yy_gml_errCheck(argument3)),yyfplus(yyfplus(__yy_gml_errCheck(argument0),__yy_gml_errCheck(gmlsw)),__yy_gml_errCheck(argument3)),yyfplus(__yy_gml_errCheck(argument1),__yy_gml_errCheck(argument3)),global.gmlc_background,global.gmlc_background, global.gmlc_background,global.gmlc_background,0);draw_set_alpha(gmlalpha);}}function gml_Script_draw_hd_text(_inst,_other,argument0,argument1,argument2,argument3){{if(yyfequal(argument3,_inst.undefined)){argument3=false;};}{if(yyGetBool(argument3)){gml_Script_s_erase_text_background(_inst,_other,argument0,argument1,argument2);};if(yyGetBool(global.gmlhd_fonts)){{draw_text_transformed(argument0,argument1,argument2,0.25,0.25,0);};}else {{draw_text(argument0,argument1,argument2);};};}}function gml_Script_draw_hd_text_color(_inst, _other,argument0,argument1,argument2,argument3,argument4,argument5,argument6,argument7){{if(yyGetBool(global.gmlhd_fonts)){{draw_text_transformed_color(argument0,argument1,argument2,0.25,0.25,0,argument3,argument4,argument5,argument6,argument7);};}else {{draw_text_color(argument0,argument1,argument2,argument3,argument4,argument5,argument6,argument7);};};}}function gml_Script_draw_hd_text_ext(_inst,_other,argument0,argument1,argument2,argument3,argument4){{if(yyGetBool(global.gmlhd_fonts)){{draw_text_ext_transformed(argument0, argument1,argument2,yyftime(__yy_gml_errCheck(argument3),4),yyftime(__yy_gml_errCheck(argument4),4),0.25,0.25,0);};}else {{draw_text_ext(argument0,argument1,argument2,argument3,argument4);};};}}function gml_Script_draw_hd_text_ext_color(_inst,_other,argument0,argument1,argument2,argument3,argument4,argument5,argument6,argument7,argument8,argument9){{if(yyGetBool(global.gmlhd_fonts)){{draw_text_ext_transformed(argument0,argument1,argument2,yyftime(__yy_gml_errCheck(argument3),4),yyftime(__yy_gml_errCheck(argument4), 4),0.25,0.25,0);};}else {{draw_text_ext_color(argument0,argument1,argument2,argument3,argument4,argument5,argument6,argument7,argument8,argument9);};};}}function gml_Script_draw_hd_text_transformed(_inst,_other,argument0,argument1,argument2,argument3,argument4,argument5){{if(yyGetBool(global.gmlhd_fonts)){{draw_text_transformed(argument0,argument1,argument2,yyfdivide(__yy_gml_errCheck(argument3),4),yyfdivide(__yy_gml_errCheck(argument4),4),argument5);};}else {{draw_text_transformed(argument0,argument1, argument2,argument3,argument4,argument5);};};}}function gml_Script_draw_hd_text_transformed_color(_inst,_other,argument0,argument1,argument2,argument3,argument4,argument5,argument6,argument7,argument8,argument9,argument10){{if(yyGetBool(global.gmlhd_fonts)){{draw_text_transformed_color(argument0,argument1,argument2,yyfdivide(__yy_gml_errCheck(argument3),4),yyfdivide(__yy_gml_errCheck(argument4),4),argument5,argument6,argument7,argument8,argument9,argument10);};}else {{draw_text_transformed_color(argument0, argument1,argument2,argument3,argument4,argument5,argument6,argument7,argument8,argument9,argument10);};};}}function gml_Script_draw_hd_text_ext_transformed(_inst,_other,argument0,argument1,argument2,argument3,argument4,argument5,argument6,argument7){{if(yyGetBool(global.gmlhd_fonts)){{draw_text_ext_transformed(argument0,argument1,argument2,yyftime(__yy_gml_errCheck(argument3),4),yyftime(__yy_gml_errCheck(argument4),4),yyfdivide(__yy_gml_errCheck(argument5),4),yyfdivide(__yy_gml_errCheck(argument6), 4),argument7);};}else {{draw_text_ext_transformed(argument0,argument1,argument2,argument3,argument4,argument5,argument6,argument7);};};}}function gml_Script_string_hd_width(_inst,_other,argument0){{if(yyGetBool(global.gmlhd_fonts)){return yyfdivide(__yy_gml_errCheck(string_width(argument0)),4);}else {return string_width(argument0);};}}function gml_Script_string_hd_width_ext(_inst,_other,argument0,argument1,argument2){{if(yyGetBool(global.gmlhd_fonts)){return yyfdivide(__yy_gml_errCheck(string_width_ext(argument0, yyftime(__yy_gml_errCheck(argument1),4),yyftime(__yy_gml_errCheck(argument2),4))),4);}else {return string_width_ext(argument0,argument1,argument2);};}}function gml_Script_string_hd_height(_inst,_other,argument0){{if(yyGetBool(global.gmlhd_fonts)){return yyfdivide(__yy_gml_errCheck(string_height(argument0)),4);}else {return string_height(argument0);};}}function gml_Script_string_hd_height_ext(_inst,_other,argument0,argument1,argument2){{if(yyGetBool(global.gmlhd_fonts)){return yyfdivide(__yy_gml_errCheck(string_height_ext(argument0, yyftime(__yy_gml_errCheck(argument1),4),yyftime(__yy_gml_errCheck(argument2),4))),4);}else {return string_height_ext(argument0,argument1,argument2);};}}function gml_GlobalScript_btn_click_Details_Back(_inst,_other){(_inst.gmlbtn_click_Details_Back=__yy_method(_inst,gml_Script_btn_click_Details_Back));}function gml_Script_btn_click_Details_Back(_inst,_other){{gml_Script_s_destroy_master(_inst,_other);room_goto(YYASSET_REF(0x03000000));}}function gml_GlobalScript_s_replay_controls(_inst,_other){(_inst.gmls_replay_controls=__yy_method(_inst, gml_Script_s_replay_controls));}function gml_Script_s_replay_controls(_inst,_other){{if((yyGetBool(global.gmlgamepad))&&(yyGetBool(gamepad_button_check_released(yyInst(_inst,_other,global.gmlgp).gmlslot,global.gmlgp_select)))&&(yyGetBool(!yyGetBool(gamepad_button_check(yyInst(_inst,_other,global.gmlgp).gmlslot,global.gmlgp_back))))){{gml_Script_s_end_replay(_inst,_other);};}else {{var gmlsz=0;{var __yy__v141=GetWithArray(global.gmlmaster_ball);for(var __yy__v142 in __yy__v141){if(!__yy__v141.hasOwnProperty(__yy__v142))continue; var __yy__v143=__yy__v141[__yy__v142];gmlsz=ds_list_size(__yy__v143.gmlmy_replay);}};if(yyfless(gmlsz,1)){return;};if(yyGetBool(global.gmlgamepad)){{var gmlspd=1;if(yyGetBool(gamepad_button_check(yyInst(_inst,_other,global.gmlgp).gmlslot,global.gmlgp_back))){gmlspd=0.5;};if(yyfgreater(yyInst(_inst,_other,global.gmlgp).gmlaxisl_h,0.2)){{global.gmlreplay_frame=yyfplus(global.gmlreplay_frame,yyfdivide(yyftime(__yy_gml_errCheck(gmlspd),2),4));global.gmlreplay_frame=min(global.gmlreplay_frame,yyfminus(__yy_gml_errCheck(gmlsz), 1));};}else {if(yyfless(yyInst(_inst,_other,global.gmlgp).gmlaxisl_h,(-0.2))){global.gmlreplay_frame=yyfminus(global.gmlreplay_frame,yyfdivide(yyftime(__yy_gml_errCheck(gmlspd),2),4));}else {global.gmlreplay_frame=yyfplus(global.gmlreplay_frame,yyfdivide(__yy_gml_errCheck(gmlspd),4));};};};}else {{if(yyfgreater(global.gmlreplay_drag_x,15)){{global.gmlreplay_frame=yyfplus(global.gmlreplay_frame,0.5);global.gmlreplay_frame=min(global.gmlreplay_frame,yyfminus(__yy_gml_errCheck(gmlsz),1));};}else {if(yyfless(global.gmlreplay_drag_x, (-15))){global.gmlreplay_frame=yyfminus(global.gmlreplay_frame,0.5);}else {if((yyGetBool(mouse_check_button(1)))&&(yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other)))){global.gmlreplay_frame=yyfplus(global.gmlreplay_frame,0.125);}else {global.gmlreplay_frame=yyfplus(global.gmlreplay_frame,0.25);};};};};};{var __yy__v144=GetWithArray(YYASSET_REF(0x0000006A));for(var __yy__v145 in __yy__v144){if(!__yy__v144.hasOwnProperty(__yy__v145))continue;var __yy__v146=__yy__v144[__yy__v145];gml_Script_s_replay_frame(__yy__v146, _inst);}};};};}}function gml_GlobalScript_nrg(_inst,_other){(_inst.gmlbtn_click_nrg_buy=__yy_method(_inst,gml_Script_btn_click_nrg_buy));(_inst.gmlbtn_click_nrg_drink=__yy_method(_inst,gml_Script_btn_click_nrg_drink));(_inst.gmls_drink_nrg=__yy_method(_inst,gml_Script_s_drink_nrg));(_inst.gmls_get_condition_colour=__yy_method(_inst,gml_Script_s_get_condition_colour));(_inst.gmls_get_condition_icon=__yy_method(_inst,gml_Script_s_get_condition_icon));}function gml_Script_btn_click_nrg_buy(_inst,_other){ {{var __yy__v147=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v148 in __yy__v147){if(!__yy__v147.hasOwnProperty(__yy__v148))continue;var __yy__v149=__yy__v147[__yy__v148];{(g_yyPrePostObject__=__yy__v149.gmlqb_nrg,__yy__v149.gmlqb_nrg=(g_yyPrePostObject__ instanceof Long?__yy__v149.gmlqb_nrg.add(1):++__yy__v149.gmlqb_nrg),g_yyPrePostObject__);}}};gml_Script_s_savegame(_inst,_other);room_goto(g_pBuiltIn.get_current_room());}}function gml_Script_btn_click_nrg_drink(_inst,_other){{if(yyfgreater(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlqb_nrg,0)){{if(yyfgreater(gml_Script_s_get_qb_energy(_inst,_other),50)){gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_NRG_ConfirmDrink"),gml_Script_s_str(_inst,_other,"ui_Yes"),gml_Script_s_str(_inst,_other,"ui_Cancel"),kgml_Script_s_drink_nrg,kgml_Script_s_msg_clear,global.gmlc_background,1);}else {gml_Script_s_drink_nrg(_inst,_other);};};}else {gml_Script_s_msg(_inst,_other,gml_Script_s_str(_inst,_other,"msg_NRG_NoCans"));};}}function gml_Script_s_drink_nrg(_inst, _other){{gml_Script_s_msg_clear(_inst,_other);(g_yyPrePostObject__=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_nrg,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_nrg=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_nrg.subtract(1):--yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_nrg),g_yyPrePostObject__);gml_Script_s_sound(_inst,_other,YYASSET_REF(0x02000018));var gmlqb=gml_Script_s_get_qb_pmap(_inst,_other);ds_map_set(gmlqb,"condition",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlqb, "condition")),100),1,100));gml_Script_s_qb_mode_update_resting(_inst,_other);gml_Script_s_savegame(_inst,_other);room_goto(g_pBuiltIn.get_current_room());}}function gml_Script_s_get_condition_colour(_inst,_other,argument0,argument1){{if(yyflessequal(argument0,40)){return 255;}else {if(yyflessequal(argument0,60)){return 65535;}else {return argument1;};};}}function gml_Script_s_get_condition_icon(_inst,_other,argument0){{if(yyGetBool(ds_map_find_value(argument0,"resting"))){return 3;}else {if(yyflessequal(ds_map_find_value(argument0, "condition"),0)){return 0;}else {if(yyfless(ds_map_find_value(argument0,"condition"),40)){return 1;}else {if(yyfless(ds_map_find_value(argument0,"condition"),60)){return 2;}else {return(-1);};};};};}}// slog("DELETING PLAYER @["+string(del_index)+"]: " + string(pmap[? "lname"])); function gml_GlobalScript_s_college_draft(_inst,_other,argument0){(_inst.gmls_college_draft_ranking=__yy_method(_inst,gml_Script_s_college_draft_ranking));(_inst.gmls_college_draft_team_ranking=__yy_method(_inst,gml_Script_s_college_draft_team_ranking)); (_inst.gmls_college_draft_team_pick=__yy_method(_inst,gml_Script_s_college_draft_team_pick));(_inst.gmls_calculate_college_draft=__yy_method(_inst,gml_Script_s_calculate_college_draft));(_inst.gmls_destroy_college_draft=__yy_method(_inst,gml_Script_s_destroy_college_draft));(_inst.gmls_display_college_draft_debug=__yy_method(_inst,gml_Script_s_display_college_draft_debug));(_inst.gmls_message_college_draft_pick=__yy_method(_inst,gml_Script_s_message_college_draft_pick));(_inst.gmls_college_draft_check_achievements=__yy_method(_inst, gml_Script_s_college_draft_check_achievements));(_inst.gmls_message_college_draft_notpick=__yy_method(_inst,gml_Script_s_message_college_draft_notpick));(_inst.gmls_message_college_draft_nottrydraft_y3=__yy_method(_inst,gml_Script_s_message_college_draft_nottrydraft_y3));(_inst.gmls_message_college_draft_early_y3=__yy_method(_inst,gml_Script_s_message_college_draft_early_y3));(_inst.gmls_message_college_draft_pick_continue=__yy_method(_inst,gml_Script_s_message_college_draft_pick_continue));(_inst.gmls_message_college_earyly_yes=__yy_method(_inst, gml_Script_s_message_college_earyly_yes));(_inst.gmls_message_college_earyly_no=__yy_method(_inst,gml_Script_s_message_college_earyly_no));(_inst.gmls_message_college_earyly_info=__yy_method(_inst,gml_Script_s_message_college_earyly_info));(_inst.gmls_college_draft_earyly_info_return=__yy_method(_inst,gml_Script_s_college_draft_earyly_info_return));(_inst.gmls_college_draft_refresh_current_attitude=__yy_method(_inst,gml_Script_s_college_draft_refresh_current_attitude));(_inst.gmls_doing_college_draft=__yy_method(_inst, gml_Script_s_doing_college_draft));(_inst.gmls_check_college_draft_start=__yy_method(_inst,gml_Script_s_check_college_draft_start));(_inst.gmls_start_college_draft=__yy_method(_inst,gml_Script_s_start_college_draft));(_inst.gmls_draft_set_epilogue=__yy_method(_inst,gml_Script_s_draft_set_epilogue));(_inst.gmls_end_college_draft=__yy_method(_inst,gml_Script_s_end_college_draft));(_inst.gmls_end_college_draft_late_msg_clear=__yy_method(_inst,gml_Script_s_end_college_draft_late_msg_clear));(_inst.gmls_end_college_draft_late=__yy_method(_inst, gml_Script_s_end_college_draft_late));(_inst.gmls_college_draft_new_season_loading=__yy_method(_inst,gml_Script_s_college_draft_new_season_loading));(_inst.gmls_college_draft_new_season=__yy_method(_inst,gml_Script_s_college_draft_new_season));(_inst.gmlbtn_click_college_draft_next=__yy_method(_inst,gml_Script_btn_click_college_draft_next));(_inst.gmls_college_draft_refresh=__yy_method(_inst,gml_Script_s_college_draft_refresh));(_inst.gmlbtn_click_college_draft_skip=__yy_method(_inst,gml_Script_btn_click_college_draft_skip)); (_inst.gmlcollege_draft_do_skip=__yy_method(_inst,gml_Script_college_draft_do_skip));(_inst.gmls_college_draft_player_pick=__yy_method(_inst,gml_Script_s_college_draft_player_pick));(_inst.gmls_display_college_draft_roster=__yy_method(_inst,gml_Script_s_display_college_draft_roster));(_inst.gmls_card_layout_pos=__yy_method(_inst,gml_Script_s_card_layout_pos));(_inst.gmls_load_pro_teams=__yy_method(_inst,gml_Script_s_load_pro_teams));}function gml_Script_s_college_draft_ranking(_inst,_other,argument0){ {var gmlpmap=argument0;var gmlgames=ds_map_find_value(gmlpmap,"season_games");var gmlpos=ds_map_find_value(gmlpmap,"position");var gmlyards=yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"season_yards")),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"season_rush_yards")),1.35)));var gmlavg_yds=yyfdivide(__yy_gml_errCheck(gmlyards),__yy_gml_errCheck(gmlgames));var gmltds=ds_map_find_value(gmlpmap,"season_touchdowns");var gmlfumbles=ds_map_find_value(gmlpmap,"season_fumbles"); var gmltackles=ds_map_find_value(gmlpmap,"season_tackles");var gmlints=ds_map_find_value(gmlpmap,"season_int");var gmlsacks=ds_map_find_value(gmlpmap,"season_sacks");var gmlatts=ds_map_find_value(gmlpmap,"season_attempts");var gmlcomp=ds_map_find_value(gmlpmap,"season_complete");var gmlcomp_prc=0;if(yyfgreater(gmlatts,0)){gmlcomp_prc=yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlcomp),__yy_gml_errCheck(gmlatts))),100);};var gmlrating=0;var gmlyard_target=1;var ___sw186___=gmlpos;var ___swc187___=-1; if(yyCompareVal(___sw186___,1,g_GMLMathEpsilon,false)==0){___swc187___=0;}else if(yyCompareVal(___sw186___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw186___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw186___,4,g_GMLMathEpsilon,false)==0){___swc187___=1;}else if(yyCompareVal(___sw186___,5,g_GMLMathEpsilon,false)==0){___swc187___=2;}else if(yyCompareVal(___sw186___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw186___,7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw186___,8,g_GMLMathEpsilon, false)==0||yyCompareVal(___sw186___,9,g_GMLMathEpsilon,false)==0){___swc187___=3;}else if(yyCompareVal(___sw186___,10,g_GMLMathEpsilon,false)==0){___swc187___=4;}switch(___swc187___){case 0:{gmlrating=clamp(yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlyards),3300)),100),1,150);gmlrating=yyfplus(gmlrating,gmltds);gmlrating=yyfminus(gmlrating,gmlints);gmlrating=yyfminus(gmlrating,yyftime(__yy_gml_errCheck(gmlsacks),0.5));gmlrating=round(gmlrating);break;}case 1:{if(yyfequal(gmlpos,2)){gmlyard_target=1750; };if(yyfequal(gmlpos,3)){gmlyard_target=1350;};if(yyfequal(gmlpos,4)){gmlyard_target=2100;};gmlrating=clamp(yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlyards),__yy_gml_errCheck(gmlyard_target))),100),1,150);gmlrating=yyfminus(gmlrating,yyftime(__yy_gml_errCheck(gmlfumbles),5));gmlrating=yyfplus(gmlrating,yyftime(__yy_gml_errCheck(gmltds),1.25));gmlrating=round(gmlrating);break;}case 2:{gmlrating=gmltackles;break;}case 3:{gmlrating=yyftime(__yy_gml_errCheck(gmltackles),0.5);gmlrating=yyfplus(gmlrating, yyftime(__yy_gml_errCheck(gmlints),3));gmlrating=yyfplus(gmlrating,yyftime(__yy_gml_errCheck(gmlsacks),3));gmlrating=yyfplus(gmlrating,yyftime(__yy_gml_errCheck(gmlfumbles),3));gmlrating=round(gmlrating);break;}case 4:{gmlrating=clamp(yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlyards),4000)),100),1,100);gmlrating=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(gmlrating),__yy_gml_errCheck(gmlcomp_prc))),2);gmlrating=round(gmlrating);break;}};return gmlrating;}}function gml_Script_s_college_draft_team_ranking(_inst, _other){{var gmlFBSrank=gml_Script_s_subdivision_get_player_ranking(_inst,_other,1);var gmlFCSrank=gml_Script_s_subdivision_get_player_ranking(_inst,_other,2);gml_Script_slog(_inst,_other,"s_college_draft_team_ranking");gml_Script_slog(_inst,_other,yyfplus(yyfplus("... Team Ranking FBSrank [",__yy_gml_errCheck(string(gmlFBSrank))),"]"));gml_Script_slog(_inst,_other,yyfplus(yyfplus("... Team Ranking FCSrank [",__yy_gml_errCheck(string(gmlFCSrank))),"]"));if(yyfnotequal(gmlFBSrank,1)){{if(yyfgreater(gmlFBSrank, 25)){{gml_Script_slog(_inst,_other,"... [Case 1] Pts[0]");return 0;};};gml_Script_slog(_inst,_other,yyfplus(yyfplus("... [Case 2] Pts[",__yy_gml_errCheck(string(yyfminus(51,__yy_gml_errCheck(gmlFBSrank))))),"]"));return yyfminus(51,__yy_gml_errCheck(gmlFBSrank));};};if(yyfnotequal(gmlFCSrank,1)){{if(yyfgreater(gmlFCSrank,25)){{gml_Script_slog(_inst,_other,"... [Case 3] Pts[0]");return 0;};};gml_Script_slog(_inst,_other,yyfplus(yyfplus("... [Case 4] Pts[",__yy_gml_errCheck(string(yyfminus(26,__yy_gml_errCheck(gmlFCSrank))))), "]"));return yyfminus(26,__yy_gml_errCheck(gmlFCSrank));};};gml_Script_slog(_inst,_other,"... [Case 5] Pts[0]");return 0;}}function gml_Script_s_college_draft_team_pick(_inst,_other,argument0,argument1){{var gmlts=ds_list_size(argument1);return ds_list_find_value(argument1,irandom(yyfminus(__yy_gml_errCheck(gmlts),1)));}}function gml_Script_s_calculate_college_draft(_inst,_other){{var gmly1_balance_seniorGrad=false;var gmlproTeams=gml_Script_s_load_pro_teams(_inst,_other);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft=ds_list_create(); {var __yy__v150=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v151 in __yy__v150){if(!__yy__v150.hasOwnProperty(__yy__v151))continue;var __yy__v152=__yy__v150[__yy__v151];{var gmltR=gml_Script_s_college_draft_team_ranking(__yy__v152,_inst);var gmlsz=ds_list_size(__yy__v152.gmlroster);var gmli=0;for(;yyfless(gmli,gmlsz);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v152.gmlroster,gmli);var gmlyear=yyfplus(yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlpmap, "age")),__yy_gml_errCheck(gml_Script_s_rookie_age_internal(__yy__v152,_inst))),1);if(yyfless(gmlyear,3)){{};}else {{var gmlimap=ds_map_create();var gmls=yyfplus("",__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"lname"))));ds_map_set(gmlimap,"index",gmli);ds_map_set(gmlimap,"year",gmlyear);gmls=yyfplus(gmls,yyfplus(" Y",__yy_gml_errCheck(string(ds_map_find_value(gmlimap,"year")))));ds_map_set(gmlimap,"rating",gml_Script_s_college_draft_ranking(__yy__v152,_inst,gmlpmap));gmls=yyfplus(gmls,yyfplus(yyfplus(" Rating[", __yy_gml_errCheck(string(ds_map_find_value(gmlimap,"rating")))),"]"));ds_map_set(gmlimap,"skills",yyftime(__yy_gml_errCheck(gml_Script_s_get_player_rating(__yy__v152,_inst,gmlpmap)),4));gmls=yyfplus(gmls,yyfplus(yyfplus(" Skills[",__yy_gml_errCheck(string(ds_map_find_value(gmlimap,"skills")))),"]"));ds_map_set(gmlimap,"team_ranking",gmltR);gmls=yyfplus(gmls,yyfplus(yyfplus(" T.Rank[",__yy_gml_errCheck(string(ds_map_find_value(gmlimap,"team_ranking")))),"]"));var gmldraftScore=yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlimap, "rating")),__yy_gml_errCheck(ds_map_find_value(gmlimap,"skills"))),__yy_gml_errCheck(ds_map_find_value(gmlimap,"team_ranking")));ds_map_set(gmlimap,"draft_score",gmldraftScore);gmls=yyfplus(gmls,yyfplus(yyfplus(" DraftScore[",__yy_gml_errCheck(string(gmldraftScore))),"]"));var gmlpickRound=(-1);var gmlpickLabel=gml_Script_s_str(__yy__v152,_inst,"ui_co_Draft_NotPicked");ds_map_set(gmlimap,"pick_r1_rand",(-1));ds_map_set(gmlimap,"pick_r2_rand",(-1));ds_map_set(gmlimap,"pick_r3_rand",(-1));ds_map_set(gmlimap, "credits",10);ds_map_set(gmlimap,"reveal_attitude",ds_map_find_value(gmlpmap,"attitude"));if(yyfless(gmlpickRound,0)){{var gmlrRand=(yyfequal(gmlyear,4)?irandom_range(120,170):irandom_range(120,220));ds_map_set(gmlimap,"pick_r1_rand",gmlrRand);if(yyfless(gmlrRand,gmldraftScore)){{gmlpickRound=1;gmlpickLabel=gml_Script_s_str(__yy__v152,_inst,"ui_co_Draft_R1");ds_map_set(gmlimap,"credits",50);ds_map_set(gmlimap,"reveal_attitude",90);if(yyfequal(gmlyear,3)){{ds_map_set(gmlimap,"credits",100);gmlrRand=irandom_range(100, 170);ds_map_set(gmlimap,"pick_r2_rand",gmlrRand);if(yyfless(gmlrRand,gmldraftScore)){{gmlpickRound=1;gmlpickLabel=gml_Script_s_str(__yy__v152,_inst,"ui_co_Draft_R1");ds_map_set(gmlimap,"credits",100);ds_map_set(gmlimap,"reveal_attitude",90);};}else {{gmlpickRound=2;gmlpickLabel=gml_Script_s_str(__yy__v152,_inst,"ui_co_Draft_R2");ds_map_set(gmlimap,"credits",80);ds_map_set(gmlimap,"reveal_attitude",75);};};};};};};};};if((yyGetBool(yyfless(gmlpickRound,0)))&&(yyGetBool(yyfequal(gmlyear,4)))){{var gmlrRand=irandom_range(80, 140);ds_map_set(gmlimap,"pick_r2_rand",gmlrRand);if(yyfless(gmlrRand,gmldraftScore)){{gmlpickRound=2;gmlpickLabel=gml_Script_s_str(__yy__v152,_inst,"ui_co_Draft_R2");ds_map_set(gmlimap,"credits",40);ds_map_set(gmlimap,"reveal_attitude",75);};};};};if((yyGetBool(yyfless(gmlpickRound,0)))&&(yyGetBool(yyfequal(gmlyear,4)))){{var gmlrRand=irandom_range(60,110);ds_map_set(gmlimap,"pick_r3_rand",gmlrRand);if(yyfless(gmlrRand,gmldraftScore)){{gmlpickRound=3;gmlpickLabel=gml_Script_s_str(__yy__v152,_inst, "ui_co_Draft_R3");ds_map_set(gmlimap,"credits",30);ds_map_set(gmlimap,"reveal_attitude",75);};};};};if((yyGetBool(yyfless(gmlpickRound,0)))&&(yyGetBool(yyfequal(gmlyear,4)))){{gmlpickRound=4;gmlpickLabel=gml_Script_s_str(__yy__v152,_inst,"ui_co_Draft_Graduate");ds_map_set(gmlimap,"credits",10);ds_map_set(gmlimap,"reveal_attitude",45);};};if((yyGetBool(yyfless(gmlpickRound,0)))&&(yyGetBool(yyfequal(gmlyear,3)))){{gmlpickLabel=gml_Script_s_str(__yy__v152,_inst,"ui_co_Draft_SrYear");ds_map_set(gmlimap, "credits",0);};};if((yyGetBool(yyfgreater(gmlpickRound,0)))&&(yyGetBool(yyfless(gmlpickRound,4)))){{var gmlteam=gml_Script_s_college_draft_team_pick(__yy__v152,_inst,gmlpmap,gmlproTeams);ds_map_set(gmlimap,"team_pick",gmlteam);gmlpickLabel=yyfplus(gmlpickLabel,yyfplus(" - ",__yy_gml_errCheck(string(ds_map_find_value(gmlteam,"tla")))));};};if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear,1)){{if(yyfequal(ds_map_find_value(gmlpmap,"age"),yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(__yy__v152, _inst)),2))){{gml_Script_slog(__yy__v152,_inst,yyfplus(yyfplus("Draft Y1 Corrections: Junior[",__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))),"] force stay"));gmlpickRound=(-1);gmlpickLabel=gml_Script_s_str(__yy__v152,_inst,"ui_co_Draft_SrYear");ds_map_set(gmlimap,"credits",0);};};if(yyfequal(ds_map_find_value(gmlpmap,"age"),yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(__yy__v152,_inst)),3))){{if(yyfequal(gmly1_balance_seniorGrad,false)){{gmly1_balance_seniorGrad=true;gml_Script_slog(__yy__v152, _inst,yyfplus(yyfplus("Draft Y1 Corrections: Senior[",__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))),"] force grad"));gmlpickRound=4;gmlpickLabel=gml_Script_s_str(__yy__v152,_inst,"ui_co_Draft_Graduate");ds_map_set(gmlimap,"credits",10);ds_map_set(gmlimap,"reveal_attitude",45);};}else {{gml_Script_slog(__yy__v152,_inst,yyfplus(yyfplus("Draft Y1 Corrections: Senior[",__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))),"] force R3"));gmlpickRound=3;gmlpickLabel=gml_Script_s_str(__yy__v152, _inst,"ui_co_Draft_R3");ds_map_set(gmlimap,"credits",30);ds_map_set(gmlimap,"reveal_attitude",75);var gmlteam=gml_Script_s_college_draft_team_pick(__yy__v152,_inst,gmlpmap,gmlproTeams);ds_map_set(gmlimap,"team_pick",gmlteam);gmlpickLabel=yyfplus(gmlpickLabel,yyfplus(" - ",__yy_gml_errCheck(string(ds_map_find_value(gmlteam,"tla")))));};};};};};};ds_map_set(gmlimap,"pick_round",gmlpickRound);ds_map_set(gmlimap,"pick_label",gmlpickLabel);gmls=yyfplus(gmls,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("\n Pick: ", __yy_gml_errCheck(string(gmlpickLabel)))," | Chances (vs "),__yy_gml_errCheck(string(gmldraftScore))),"): R1["),__yy_gml_errCheck(string(ds_map_find_value(gmlimap,"pick_r1_rand")))),"] R2["),__yy_gml_errCheck(string(ds_map_find_value(gmlimap,"pick_r2_rand")))),"] R3["),__yy_gml_errCheck(string(ds_map_find_value(gmlimap,"pick_r3_rand")))),"]"));ds_map_set(gmlimap,"debug_line",gmls);ds_list_add(__yy__v152.gmlcollege_draft,gmlimap);gml_Script_s_draft_set_epilogue(__yy__v152,_inst,gmlimap,gmlpmap); };};}};}}};ds_list_destroy(gmlproTeams);}}function gml_Script_s_destroy_college_draft(_inst,_other){{var gmlsz=ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft);var gmli=0;for(;yyfless(gmli,gmlsz);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_map_destroy(ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft,gmli));}};ds_list_destroy(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft); yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft=(-4);}}function gml_Script____struct___93_s_display_college_draft_debug_gml_GlobalScript_s_college_draft(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___93_s_display_college_draft_debug_gml_GlobalScript_s_college_draft";}if(gml_Script____struct___93_s_display_college_draft_debug_gml_GlobalScript_s_college_draft.prototype.__type===undefined){gml_Script____struct___93_s_display_college_draft_debug_gml_GlobalScript_s_college_draft.prototype.__type="gml_Script____struct___93_s_display_college_draft_debug_gml_GlobalScript_s_college_draft"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___93_s_display_college_draft_debug_gml_GlobalScript_s_college_draft.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(1),$$args)];}}}}function gml_Script_s_display_college_draft_debug(_inst,_other){{var gmltxt_test=gml_Script_s_create_label(_inst,_other,10,10,"COLLEGE DRAFT - DEBUG STATS");yyInst(_inst, _other,gmltxt_test).gmlhalign=0;var gmltx=10;var gmlty=30;{var __yy__v153=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v154 in __yy__v153){if(!__yy__v153.hasOwnProperty(__yy__v154))continue;var __yy__v155=__yy__v153[__yy__v154];{var gmlsz=ds_list_size(__yy__v155.gmlcollege_draft);var gmli=0;for(;yyfless(gmli,gmlsz);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlimap=ds_list_find_value(__yy__v155.gmlcollege_draft,gmli);var gmlp_txt=gml_Script_s_create_label(__yy__v155, _inst,gmltx,gmlty,yyfplus("",__yy_gml_errCheck(string(ds_map_find_value(gmlimap,"debug_line")))));yyInst(_inst,_other,gmlp_txt).gmlhalign=0;gmlty=yyfplus(gmlty,30);}};}}};instance_create_layer(376,224,"Instances",YYASSET_REF(0x00000023),__yy_gml_object_create(_inst,(_inst.gml___struct___93=__yy_method(_inst,gml_Script____struct___93_s_display_college_draft_debug_gml_GlobalScript_s_college_draft)),gml_Script_s_str(_inst,_other,"ui_next"),kgml_Script_btn_click_college_draft_next));}}function gml_Script_s_message_college_draft_pick(_inst, _other,argument0){{var gmlpick_i=argument0;gml_Script_slog(_inst,_other,yyfplus("btn_click_college_draft_next pick_i:",__yy_gml_errCheck(string(gmlpick_i))));var gmlimap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft,gmlpick_i);var gmlpmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster,ds_map_find_value(gmlimap,"index"));var gmlteam=ds_map_find_value(gmlimap,"team_pick");var gmlmsg=string_replace(gml_Script_s_str(_inst,_other,"msg_co_draft_pick"), "$playername",ds_map_find_value(gmlpmap,"lname"));gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position(_inst,_other,ds_map_find_value(gmlpmap,"position")));gmlmsg=string_replace(gmlmsg,"$round",string(ds_map_find_value(gmlimap,"pick_round")));gmlmsg=string_replace(gmlmsg,"$team",ds_map_find_value(gmlteam,"name"));gmlmsg=string_replace(gmlmsg,"$reccred",string(ds_map_find_value(gmlimap,"credits")));gml_Script_s_create_message(_inst,_other,string(ds_map_find_value(gmlpmap,"lname")), gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_message_college_draft_pick_continue,"",global.gmlc_background,1);gml_Script_s_college_draft_check_achievements(_inst,_other,gmlimap);}}function gml_Script_s_college_draft_check_achievements(_inst,_other,argument0){{var gmlpick_round=ds_map_find_value(argument0,"pick_round");var gmlyear=ds_map_find_value(argument0,"year");if((yyGetBool(yyfgreater(gmlpick_round,0)))&&(yyGetBool(yyfless(gmlpick_round,4)))){{if(yyfequal(gmlyear,3)){{gml_Script_s_complete_achievement(_inst, _other,"ACH_JUNIOR_DRAFT");};}else {{if(yyfequal(gmlpick_round,1)){{gml_Script_s_complete_achievement(_inst,_other,"ACH_SENIOR_DRAFTR1");};};if(yyfequal(gmlpick_round,2)){{gml_Script_s_complete_achievement(_inst,_other,"ACH_SENIOR_DRAFTR2");};};if(yyfequal(gmlpick_round,3)){{gml_Script_s_complete_achievement(_inst,_other,"ACH_SENIOR_DRAFTR3");};};};};};}else {{if(yyfequal(gmlyear,3)){{};}else {{gml_Script_s_complete_achievement(_inst,_other,"ACH_SENIOR_GRAD");};};};};}}function gml_Script_s_message_college_draft_notpick(_inst, _other,argument0){{var gmlpick_i=argument0;gml_Script_slog(_inst,_other,yyfplus("btn_click_college_draft_next pick_i:",__yy_gml_errCheck(string(gmlpick_i))));var gmlimap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft,gmlpick_i);var gmlpmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster,ds_map_find_value(gmlimap,"index"));var gmlmsg=string_replace(gml_Script_s_str(_inst,_other,"msg_co_draft_notpick"),"$playername",ds_map_find_value(gmlpmap, "lname"));gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position(_inst,_other,ds_map_find_value(gmlpmap,"position")));gmlmsg=string_replace(gmlmsg,"$reccred",string(ds_map_find_value(gmlimap,"credits")));{};gml_Script_s_create_message(_inst,_other,string(ds_map_find_value(gmlpmap,"lname")),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_message_college_draft_pick_continue,"",global.gmlc_background,1);gml_Script_s_college_draft_check_achievements(_inst,_other, gmlimap);}}function gml_Script_s_message_college_draft_nottrydraft_y3(_inst,_other,argument0){{var gmlpick_i=argument0;gml_Script_slog(_inst,_other,yyfplus("btn_click_college_draft_next pick_i:",__yy_gml_errCheck(string(gmlpick_i))));var gmlimap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft,gmlpick_i);var gmlpmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster,ds_map_find_value(gmlimap,"index"));var gmlmsg=string_replace(gml_Script_s_str(_inst, _other,"msg_co_draft_nottrydraft_y3"),"$playername",ds_map_find_value(gmlpmap,"lname"));gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position(_inst,_other,ds_map_find_value(gmlpmap,"position")));gmlmsg=string_replace(gmlmsg,"$teamname",gml_Script_s_get_team_name_by_id(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id));gml_Script_s_create_message(_inst,_other,string(ds_map_find_value(gmlpmap,"lname")),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"", kgml_Script_s_message_college_draft_pick_continue,"",global.gmlc_background,1);}}function gml_Script_s_message_college_draft_early_y3(_inst,_other,argument0){{var gmlpick_i=argument0;gml_Script_slog(_inst,_other,yyfplus("btn_click_college_draft_next pick_i:",__yy_gml_errCheck(string(gmlpick_i))));var gmlimap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft,gmlpick_i);var gmlpmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster,ds_map_find_value(gmlimap, "index"));var gmlmsg=string_replace(gml_Script_s_str(_inst,_other,"msg_co_draft_early_y3"),"$playername",ds_map_find_value(gmlpmap,"lname"));gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position(_inst,_other,ds_map_find_value(gmlpmap,"position")));gml_Script_s_create_message3(_inst,_other,string(ds_map_find_value(gmlpmap,"lname")),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Info"),gml_Script_s_str(_inst,_other,"ui_Yes"),gml_Script_s_str(_inst,_other,"ui_No"),kgml_Script_s_message_college_earyly_info, kgml_Script_s_message_college_earyly_yes,kgml_Script_s_message_college_earyly_no,global.gmlc_background,1);}}function gml_Script_s_message_college_draft_pick_continue(_inst,_other){{gml_Script_s_college_draft_refresh_current_attitude(_inst,_other);gml_Script_s_college_draft_refresh(_inst,_other);gml_Script_s_msg_clear(_inst,_other);}}function gml_Script_s_message_college_earyly_yes(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft_skip)){ {gml_Script_s_college_draft_refresh_current_attitude(_inst,_other);(g_yyPrePostObject__=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft_stage,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft_stage=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft_stage.add(1):++yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft_stage),g_yyPrePostObject__);gml_Script_college_draft_do_skip(_inst,_other);};}else {{gml_Script_s_message_college_draft_pick(_inst, _other,gml_Script_s_college_draft_player_pick(_inst,_other));};};}}function gml_Script_s_message_college_earyly_no(_inst,_other){{var gmlpick_i=gml_Script_s_college_draft_player_pick(_inst,_other);var gmlimap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft,gmlpick_i);ds_map_set(gmlimap,"pick_round",(-1));ds_map_set(gmlimap,"pick_label",gml_Script_s_str(_inst,_other,"ui_co_Draft_SrYear"));ds_map_set(gmlimap,"credits",0);ds_map_set(gmlimap,"reveal_attitude",gml_Script_s_attitude_reduce_step(_inst, _other,ds_map_find_value(gmlimap,"reveal_attitude")));ds_map_set(gmlimap,"reveal_attitude",gml_Script_s_attitude_reduce_step(_inst,_other,ds_map_find_value(gmlimap,"reveal_attitude")));if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft_skip)){{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_college_draft_refresh_current_attitude(_inst,_other);(g_yyPrePostObject__=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft_stage,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft_stage=(g_yyPrePostObject__ instanceof Long?yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlcollege_draft_stage.add(1):++yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft_stage),g_yyPrePostObject__);gml_Script_college_draft_do_skip(_inst,_other);};}else {{gml_Script_s_college_draft_refresh_current_attitude(_inst,_other);gml_Script_s_college_draft_refresh(_inst,_other);gml_Script_s_msg_clear(_inst,_other);};};}}function gml_Script_s_message_college_earyly_info(_inst,_other){{var gmlpick_i=gml_Script_s_college_draft_player_pick(_inst,_other);var gmlimap=ds_list_find_value(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlcollege_draft,gmlpick_i);var gmlpmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster,ds_map_find_value(gmlimap,"index"));yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile=gmlpmap;yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlprofile_back_to=3;room_goto(YYASSET_REF(0x03000016));}}function gml_Script_s_college_draft_earyly_info_return(_inst,_other){{room_goto(YYASSET_REF(0x0300002D));yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft_queueY3Msg=1; }}function gml_Script_s_college_draft_refresh_current_attitude(_inst,_other){{var gmlsz=ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft);var gmlpick_i=gml_Script_s_college_draft_player_pick(_inst,_other);if((yyGetBool(yyfless(gmlpick_i,0)))||(yyGetBool(yyfgreaterequal(gmlpick_i,gmlsz)))){{return;};};var gmlimap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft,gmlpick_i);var gmlpmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster, ds_map_find_value(gmlimap,"index"));gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus("New attitude: [",__yy_gml_errCheck(gml_Script_s_get_string_attitude(_inst,_other,ds_map_find_value(gmlpmap,"attitude")))),"] -> ["),__yy_gml_errCheck(gml_Script_s_get_string_attitude(_inst,_other,ds_map_find_value(gmlimap,"reveal_attitude")))),"]"));ds_map_set(gmlpmap,"attitude",ds_map_find_value(gmlimap,"reveal_attitude"));}}function gml_Script_s_doing_college_draft(_inst,_other){{if((yyGetBool(gml_Script_s_is_co_mode(_inst, _other)))&&(yyGetBool(variable_instance_exists(YYASSET_REF(0x00000062),"college_draft")))&&(yyGetBool(yyfnotequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft,(-4))))){return true;};return false;}}function gml_Script_s_check_college_draft_start(_inst,_other){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{return false;};};return yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft_stage,(-1));}}function gml_Script_s_start_college_draft(_inst,_other){{gml_Script_s_save_ranking_pos_end_of_season(_inst, _other);room_goto(YYASSET_REF(0x0300002D));yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft_stage=0;{};yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft_skip=0;yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft_queueY3Msg=0;gml_Script_s_calculate_college_draft(_inst,_other);}}function gml_Script_s_draft_set_epilogue(_inst,_other,argument0,argument1){{var gmlepilogue_tag="epi_graduated";var gmlreason="graduated";var gmlcv_entry="";if(yyfless(ds_map_find_value(argument0, "pick_round"),4)){{gmlreason="drafted";gmlcv_entry="cv_Drafted";gmlepilogue_tag=yyfplus("epi_draftR",__yy_gml_errCheck(string(ds_map_find_value(argument0,"pick_round"))));if(yyfequal(ds_map_find_value(argument0,"year"),3)){{gmlepilogue_tag=yyfplus(gmlepilogue_tag,"Junior");};}else {{gmlepilogue_tag=yyfplus(gmlepilogue_tag,"Senior");};};};};ds_map_set(argument0,"epilogue",gml_Script_s_pick_epilogue_story(_inst,_other,gmlepilogue_tag));ds_map_set(argument0,"reason",gmlreason);ds_map_set(argument0,"curriculum_entry", gmlcv_entry);ds_map_set(argument1,"class_of",yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstart_year),__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear)));}}function gml_Script_s_end_college_draft(_inst,_other){{var gmlshowMsg=false;var gmlsz=ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft);var gmltotCred=0;var gmlr=0;for(;yyfless(gmlr,gmlsz);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr), g_yyPrePostObject__)){{var gmlimap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft,gmlr);gmltotCred=yyfplus(gmltotCred,ds_map_find_value(gmlimap,"credits"));gml_Script_s_college_draft_check_achievements(_inst,_other,gmlimap);}};if(yyfequal(gml_Script_can_fit_recruitment_credits(_inst,_other,gmltotCred),false)){{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_CollegeProDraftRC_NoSpace");var gmlrc_space=gml_Script_recruitment_credits_space(_inst,_other);gmlmsg=string_replace(gmlmsg, "$maxNum",gmltotCred);gmlmsg=string_replace(gmlmsg,"$num",gmlrc_space);gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_end_college_draft_late_msg_clear,"",global.gmlc_background,1);gmlshowMsg=true;};};gml_Script_recruitment_credits_add(_inst,_other,gmltotCred);return gmlshowMsg;}}function gml_Script_s_end_college_draft_late_msg_clear(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_end_college_draft_late(_inst,_other); }}function gml_Script____struct___94_s_end_college_draft_late_gml_GlobalScript_s_college_draft(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___94_s_end_college_draft_late_gml_GlobalScript_s_college_draft";}if(gml_Script____struct___94_s_end_college_draft_late_gml_GlobalScript_s_college_draft.prototype.__type===undefined){gml_Script____struct___94_s_end_college_draft_late_gml_GlobalScript_s_college_draft.prototype.__type="gml_Script____struct___94_s_end_college_draft_late_gml_GlobalScript_s_college_draft"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___94_s_end_college_draft_late_gml_GlobalScript_s_college_draft.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlmode=$$args[__yy_gml_array_check_index(2+(0),$$args)];}}}}function gml_Script_s_end_college_draft_late(_inst,_other){{{var __yy__v156=GetWithArray(YYASSET_REF(0x00000032));for(var __yy__v157 in __yy__v156){if(!__yy__v156.hasOwnProperty(__yy__v157))continue;var __yy__v158=__yy__v156[__yy__v157];instance_destroy(__yy__v158); }};var gmlsz=ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft);var gmlr=yyfminus(__yy_gml_errCheck(gmlsz),1);for(;yyfgreaterequal(gmlr,0);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.subtract(1):--gmlr),g_yyPrePostObject__)){{var gmlimap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft,gmlr);if((yyGetBool(yyfgreater(ds_map_find_value(gmlimap,"pick_round"),0)))&&(yyGetBool(yyfless(ds_map_find_value(gmlimap,"pick_round"), 4)))){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlpro_drafted_players=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlpro_drafted_players,1);};};if(yyfgreater(ds_map_find_value(gmlimap,"pick_round"),0)){{var gmldel_index=ds_map_find_value(gmlimap,"index");var gmlpmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster,ds_map_find_value(gmlimap,"index"));gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus("DELETING PLAYER @[",__yy_gml_errCheck(string(gmldel_index))), "]: "),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"lname")))));ds_map_set(gmlpmap,"class_of",yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstart_year),__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear)));var gmldel=gml_Script_s_remove_player(_inst,_other,gmlpmap,ds_map_find_value(gmlimap,"reason"),ds_map_find_value(gmlimap,"epilogue"));if((yyGetBool(yyfequal(gmldel,false)))&&(yyGetBool(yyfnotequal(gmlpmap,(-4))))){{gml_Script_s_add_cv_entry_from_key(_inst, _other,gmlpmap,"cv_Graduated");if(yyfless(ds_map_find_value(gmlimap,"pick_round"),4)){{var gmlteam=ds_map_find_value(gmlimap,"team_pick");ds_map_set(gmlpmap,"uniform_record",gml_Script_s_extract_uniform_cols_to_record(_inst,_other,ds_map_find_value(gmlteam,"uid"),"uniforms_default.txt",true));ds_map_set(gmlpmap,"drafted_pro_team",ds_map_find_value(gmlteam,"uid"));ds_map_set(gmlpmap,"draft_round_pick",ds_map_find_value(gmlimap,"pick_round"));if(yyfnotequal(ds_map_find_value(gmlimap,"curriculum_entry"), "")){{gml_Script_s_add_cv_entry_from_key(_inst,_other,gmlpmap,ds_map_find_value(gmlimap,"curriculum_entry"));};};};};};};};};}};gml_Script_s_destroy_college_draft(_inst,_other);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft_stage=99;if(yyfgreater(gml_Script_s_count_joboffers(_inst,_other),0)){{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){gml_Script_s_goto_room(_inst,_other,YYASSET_REF(0x03000033),__yy_gml_object_create(_inst,(_inst.gml___struct___94=__yy_method(_inst,gml_Script____struct___94_s_end_college_draft_late_gml_GlobalScript_s_college_draft)), 2));}else {room_goto(YYASSET_REF(0x03000003));};return;};};if(!yyGetBool(gml_Script_s_offer_data_upgrade(_inst,_other))){gml_Script_s_college_draft_new_season_loading(_inst,_other);};}}function gml_Script_s_college_draft_new_season_loading(_inst,_other){{gml_Script_s_loading_start(_inst,_other,kgml_Script_s_college_draft_new_season);}}function gml_Script_s_college_draft_new_season(_inst,_other){{gml_Script_s_start_new_season(_inst,_other,false);gml_Script_s_play(_inst,_other,0);}}function gml_Script_btn_click_college_draft_next(_inst, _other){{var gmld_count=ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft);if(yyfgreaterequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft_stage,gmld_count)){{var gmlshowMsg=gml_Script_s_end_college_draft(_inst,_other);if(yyfequal(gmlshowMsg,false)){{gml_Script_s_end_college_draft_late(_inst,_other);};};return;};};(g_yyPrePostObject__=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft_stage,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft_stage=(g_yyPrePostObject__ instanceof Long?yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlcollege_draft_stage.add(1):++yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft_stage),g_yyPrePostObject__);var gmlpick_i=gml_Script_s_college_draft_player_pick(_inst,_other);if((yyGetBool(yyfgreaterequal(gmlpick_i,0)))&&(yyGetBool(yyfless(gmlpick_i,gmld_count)))){{var gmlimap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft,gmlpick_i);var gmlpick_round=ds_map_find_value(gmlimap,"pick_round");if((yyGetBool(yyfgreater(gmlpick_round, 0)))&&(yyGetBool(yyfless(gmlpick_round,4)))){{if(yyfequal(ds_map_find_value(gmlimap,"year"),3)){{gml_Script_s_message_college_draft_early_y3(_inst,_other,gmlpick_i);};}else {{gml_Script_s_message_college_draft_pick(_inst,_other,gmlpick_i);};};};}else {{if(yyfequal(ds_map_find_value(gmlimap,"year"),3)){{gml_Script_s_message_college_draft_nottrydraft_y3(_inst,_other,gmlpick_i);};}else {{gml_Script_s_message_college_draft_notpick(_inst,_other,gmlpick_i);};};};};};};if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft_stage, 0)){{gml_Script_s_college_draft_refresh(_inst,_other);};};}}function gml_Script_s_college_draft_refresh(_inst,_other){{if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft_stage,(-1))){{gml_Script_s_display_college_draft_debug(_inst,_other);};}else {{gml_Script_s_display_college_draft_roster(_inst,_other);};};}}function gml_Script_btn_click_college_draft_skip(_inst,_other){{var gmld_count=ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft);if(yyfequal(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlcollege_draft_stage,gmld_count)){{return;};};yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft_skip=1;(g_yyPrePostObject__=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft_stage,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft_stage=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft_stage.add(1):++yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft_stage),g_yyPrePostObject__); gml_Script_college_draft_do_skip(_inst,_other);}}function gml_Script_college_draft_do_skip(_inst,_other){{var gmld_count=ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft);var gmli=gml_Script_s_college_draft_player_pick(_inst,_other);for(;yyfless(gmli,gmld_count);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpick_i=gml_Script_s_college_draft_player_pick(_inst,_other);var gmlimap=ds_list_find_value(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlcollege_draft,gmlpick_i);var gmlpick_round=ds_map_find_value(gmlimap,"pick_round");if((yyGetBool(yyfgreater(gmlpick_round,0)))&&(yyGetBool(yyfless(gmlpick_round,4)))){{if(yyfequal(ds_map_find_value(gmlimap,"year"),3)){{gml_Script_s_message_college_draft_early_y3(_inst,_other,gmlpick_i);return;};};};};gml_Script_s_college_draft_refresh_current_attitude(_inst,_other);(g_yyPrePostObject__=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft_stage,yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlcollege_draft_stage=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft_stage.add(1):++yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft_stage),g_yyPrePostObject__);}};gml_Script_s_display_college_draft_roster(_inst,_other);}}function gml_Script_s_college_draft_player_pick(_inst,_other){{return yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft_stage),1);}}function gml_Script____struct___95_s_display_college_draft_roster_gml_GlobalScript_s_college_draft(_inst, _other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___95_s_display_college_draft_roster_gml_GlobalScript_s_college_draft";}if(gml_Script____struct___95_s_display_college_draft_roster_gml_GlobalScript_s_college_draft.prototype.__type===undefined){gml_Script____struct___95_s_display_college_draft_roster_gml_GlobalScript_s_college_draft.prototype.__type="gml_Script____struct___95_s_display_college_draft_roster_gml_GlobalScript_s_college_draft";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst, gml_Script____struct___95_s_display_college_draft_roster_gml_GlobalScript_s_college_draft.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlpmap=$$args[__yy_gml_array_check_index(2+(0),$$args)];}}}}function gml_Script____struct___96_s_display_college_draft_roster_gml_GlobalScript_s_college_draft(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___96_s_display_college_draft_roster_gml_GlobalScript_s_college_draft";}if(gml_Script____struct___96_s_display_college_draft_roster_gml_GlobalScript_s_college_draft.prototype.__type===undefined){ gml_Script____struct___96_s_display_college_draft_roster_gml_GlobalScript_s_college_draft.prototype.__type="gml_Script____struct___96_s_display_college_draft_roster_gml_GlobalScript_s_college_draft";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___96_s_display_college_draft_roster_gml_GlobalScript_s_college_draft.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.image_xscale=0.8;_inst.image_yscale=0.25;_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0), $$args)];_inst.gmltitle=$$args[__yy_gml_array_check_index(2+(1),$$args)];}}}}function gml_Script____struct___97_s_display_college_draft_roster_gml_GlobalScript_s_college_draft(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___97_s_display_college_draft_roster_gml_GlobalScript_s_college_draft";}if(gml_Script____struct___97_s_display_college_draft_roster_gml_GlobalScript_s_college_draft.prototype.__type===undefined){gml_Script____struct___97_s_display_college_draft_roster_gml_GlobalScript_s_college_draft.prototype.__type="gml_Script____struct___97_s_display_college_draft_roster_gml_GlobalScript_s_college_draft"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___97_s_display_college_draft_roster_gml_GlobalScript_s_college_draft.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(1),$$args)];}}}}function gml_Script____struct___98_s_display_college_draft_roster_gml_GlobalScript_s_college_draft(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___98_s_display_college_draft_roster_gml_GlobalScript_s_college_draft"; }if(gml_Script____struct___98_s_display_college_draft_roster_gml_GlobalScript_s_college_draft.prototype.__type===undefined){gml_Script____struct___98_s_display_college_draft_roster_gml_GlobalScript_s_college_draft.prototype.__type="gml_Script____struct___98_s_display_college_draft_roster_gml_GlobalScript_s_college_draft";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___98_s_display_college_draft_roster_gml_GlobalScript_s_college_draft.prototype);{var $$args=Array.prototype.slice.call(arguments); {_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(1),$$args)];}}}}function gml_Script____struct___99_s_display_college_draft_roster_gml_GlobalScript_s_college_draft(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___99_s_display_college_draft_roster_gml_GlobalScript_s_college_draft";}if(gml_Script____struct___99_s_display_college_draft_roster_gml_GlobalScript_s_college_draft.prototype.__type===undefined){ gml_Script____struct___99_s_display_college_draft_roster_gml_GlobalScript_s_college_draft.prototype.__type="gml_Script____struct___99_s_display_college_draft_roster_gml_GlobalScript_s_college_draft";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___99_s_display_college_draft_roster_gml_GlobalScript_s_college_draft.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(1), $$args)];}}}}function gml_Script_s_display_college_draft_roster(_inst,_other){{gml_Script_slog(_inst,_other,"s_display_college_draft_roster");{var __yy__v159=GetWithArray(YYASSET_REF(0x00000032));for(var __yy__v160 in __yy__v159){if(!__yy__v159.hasOwnProperty(__yy__v160))continue;var __yy__v161=__yy__v159[__yy__v160];instance_destroy(__yy__v161);}};{var __yy__v162=GetWithArray(YYASSET_REF(0x0000004B));for(var __yy__v163 in __yy__v162){if(!__yy__v162.hasOwnProperty(__yy__v163))continue;var __yy__v164=__yy__v162[__yy__v163]; instance_destroy(__yy__v164);}};{var __yy__v165=GetWithArray(YYASSET_REF(0x00000045));for(var __yy__v166 in __yy__v165){if(!__yy__v165.hasOwnProperty(__yy__v166))continue;var __yy__v167=__yy__v165[__yy__v166];instance_destroy(__yy__v167);}};{var __yy__v168=GetWithArray(YYASSET_REF(0x00000023));for(var __yy__v169 in __yy__v168){if(!__yy__v168.hasOwnProperty(__yy__v169))continue;var __yy__v170=__yy__v168[__yy__v169];instance_destroy(__yy__v170);}};{var __yy__v171=GetWithArray(YYASSET_REF(0x00000043));for(var __yy__v172 in __yy__v171){ if(!__yy__v171.hasOwnProperty(__yy__v172))continue;var __yy__v173=__yy__v171[__yy__v172];instance_destroy(__yy__v173);}};var gmltitleTxt=gml_Script_s_create_label(_inst,_other,240,10,"Draft-Eligible Players");yyInst(_inst,_other,gmltitleTxt).gmlfont=global.gmlfnt_flex;var gmlsz=ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft);var gmlcount=0;var gmltotCred=0;var gmlpmap,gmlimap,gmlpos,gmlstr,gmllabel;var gmlr=0;for(;yyfless(gmlr,gmlsz);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr), g_yyPrePostObject__)){{gmlimap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft,gmlr);gmlpmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster,real(ds_map_find_value(gmlimap,"index")));if(!yyGetBool(ds_exists(gmlpmap,1))){{gml_Script_slogf(_inst,_other,"warning pmap instance invalid: %1",gmlpmap);};};if(yyfless(ds_map_find_value(gmlimap,"year"),3)){{continue;};};gmlpos=gml_Script_s_card_layout_pos(_inst,_other,gmlsz,gmlr);_inst.gmlprofile=__yy_gml_array_check(_inst.gmlprofile, 4083195518);_inst.gmlprofile[__yy_gml_array_check_index_set(gmlcount)]=instance_create_layer(yyInst(_inst,_other,gmlpos).x,yyInst(_inst,_other,gmlpos).y,"Instances",YYASSET_REF(0x00000032),__yy_gml_object_create(_inst,(_inst.gml___struct___95=__yy_method(_inst,gml_Script____struct___95_s_display_college_draft_roster_gml_GlobalScript_s_college_draft)),gmlpmap));gmlstr="?";if(yyfless(gmlcount,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft_stage)){{gmlstr=yyfplus("",__yy_gml_errCheck(string(ds_map_find_value(gmlimap, "pick_label"))));gmltotCred=yyfplus(gmltotCred,ds_map_find_value(gmlimap,"credits"));};};gmllabel=gml_Script_s_create_label(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmlpos).x),35),yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmlpos).y),85),string(gmlstr));yyInst(_inst,_other,gmllabel).gmlhalign=1;(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__);}};instance_create_layer(236,224,"Instances",YYASSET_REF(0x00000043), __yy_gml_object_create(_inst,(_inst.gml___struct___96=__yy_method(_inst,gml_Script____struct___96_s_display_college_draft_roster_gml_GlobalScript_s_college_draft)),yyfplus(yyfplus("$",__yy_gml_errCheck(string(gmltotCred))),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"sla_Thousand"))),gml_Script_s_str(_inst,_other,"ui_NewDonations")));if(yyfgreaterequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft_stage,gmlsz)){{instance_create_layer(376,224,"Instances",YYASSET_REF(0x00000023), __yy_gml_object_create(_inst,(_inst.gml___struct___97=__yy_method(_inst,gml_Script____struct___97_s_display_college_draft_roster_gml_GlobalScript_s_college_draft)),gml_Script_s_str(_inst,_other,"ui_Continue"),kgml_Script_btn_click_college_draft_next));};}else {{instance_create_layer(376,224,"Instances",YYASSET_REF(0x00000023),__yy_gml_object_create(_inst,(_inst.gml___struct___98=__yy_method(_inst,gml_Script____struct___98_s_display_college_draft_roster_gml_GlobalScript_s_college_draft)),gml_Script_s_str(_inst, _other,"ui_next"),kgml_Script_btn_click_college_draft_next));instance_create_layer(8,224,"Instances",YYASSET_REF(0x00000023),__yy_gml_object_create(_inst,(_inst.gml___struct___99=__yy_method(_inst,gml_Script____struct___99_s_display_college_draft_roster_gml_GlobalScript_s_college_draft)),gml_Script_s_str(_inst,_other,"ui_Skip"),kgml_Script_btn_click_college_draft_skip));};};if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft_queueY3Msg)){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_draft_queueY3Msg=0; var gmlpick_i=gml_Script_s_college_draft_player_pick(_inst,_other);gml_Script_s_message_college_draft_early_y3(_inst,_other,gmlpick_i);};};}}function gml_Script____struct___100_s_card_layout_pos_gml_GlobalScript_s_college_draft(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___100_s_card_layout_pos_gml_GlobalScript_s_college_draft";}if(gml_Script____struct___100_s_card_layout_pos_gml_GlobalScript_s_college_draft.prototype.__type===undefined){gml_Script____struct___100_s_card_layout_pos_gml_GlobalScript_s_college_draft.prototype.__type="gml_Script____struct___100_s_card_layout_pos_gml_GlobalScript_s_college_draft"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___100_s_card_layout_pos_gml_GlobalScript_s_college_draft.prototype);{_inst.x=1;_inst.y=2;}}}function gml_Script_s_card_layout_pos(_inst,_other,argument0,argument1){{var gmlpos=__yy_gml_object_create(_inst,(_inst.gml___struct___100=__yy_method(_inst,gml_Script____struct___100_s_card_layout_pos_gml_GlobalScript_s_college_draft)));var gmlsw=480;var gmlsh=270;var gmlcw=64;var gmlch=80;var gmlcw2=yyfdivide(__yy_gml_errCheck(gmlcw),2); var gmlch2=yyfdivide(__yy_gml_errCheck(gmlch),2);var gmllp=18;var gmltp=24;var gmlgap=12;var gmlyjump=100;var gmlcardsT=0;var gmlcardsB=0;if(yyflessequal(argument0,3)){{gmlcardsT=argument0;};}else {{gmlcardsB=yyfdivide(__yy_gml_errCheck(argument0),2);gmlcardsT=yyfminus(__yy_gml_errCheck(argument0),__yy_gml_errCheck(gmlcardsB));};};var gmlrow=0;var gmlrowIndex=0;var gmlcardsR=0;if(yyfless(argument1,gmlcardsT)){{gmlcardsR=gmlcardsT;gmlrowIndex=argument1;gmlrow=0;};}else {{gmlcardsR=gmlcardsB;gmlrowIndex=yyfminus(__yy_gml_errCheck(argument1), __yy_gml_errCheck(gmlcardsT));gmlrow=1;};};var gmlrowW=yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlcardsR),__yy_gml_errCheck(gmlcw))),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlcardsR),1)),__yy_gml_errCheck(gmlgap))));var gmlstartX=yyfplus(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlsw),__yy_gml_errCheck(gmlrowW))),2)),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmllp),2)));yyInst(_inst,_other,gmlpos).x=yyfplus(yyfplus(__yy_gml_errCheck(gmlstartX), __yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlrowIndex),__yy_gml_errCheck(gmlcw)))),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlrowIndex),1)),__yy_gml_errCheck(gmlgap))));yyInst(_inst,_other,gmlpos).y=yyfplus(__yy_gml_errCheck(gmltp),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlrow),__yy_gml_errCheck(gmlyjump))));if(yyflessequal(argument0,3)){{yyInst(_inst,_other,gmlpos).y=yyfplus(yyInst(_inst,_other,gmlpos).y,gmlch2);};};return gmlpos;}}function gml_Script_s_load_pro_teams(_inst, _other){{gml_Script_slog(_inst,_other,"s_load_pro_teams");var gmllist=ds_list_create();var gmlfile=file_text_open_read("ProTeams_CO.txt");var gmlkeys=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile);while(!yyGetBool(file_text_eof(gmlfile))){{var gmlmap=ds_map_create();var gmlvalues=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile);var gmli=0;for(;yyfless(gmli,array_length_1d(gmlkeys));(g_yyPrePostObject__=gmli, gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_map_add(gmlmap,gmlkeys[__yy_gml_array_check_index(gmli,gmlkeys)],gmlvalues[__yy_gml_array_check_index(gmli,gmlvalues)]);}};ds_list_add(gmllist,gmlmap);}};file_text_close(gmlfile);return gmllist;}}function gml_GlobalScript_s_check_ingame_control_change(_inst,_other){(_inst.gmls_check_ingame_control_change=__yy_method(_inst,gml_Script_s_check_ingame_control_change));}function gml_Script_s_check_ingame_control_change(_inst, _other){{if((yyGetBool(global.gmlconsole_build))&&(yyGetBool(gamepad_button_check_pressed(yyInst(_inst,_other,global.gmlgp).gmlslot,32779)))&&(yyGetBool(global.gmlmaster_ball))&&(yyGetBool(yyfequal(yyInst(_inst,_other,global.gmlmaster_ball).gmlstate,0)))){{{var __yy__v174=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v175 in __yy__v174){if(!__yy__v174.hasOwnProperty(__yy__v175))continue;var __yy__v176=__yy__v174[__yy__v175];{ds_map_set(__yy__v176.gmlmap_options,"op_invert_throw",yyfplus(__yy_gml_errCheck(ds_map_find_value(__yy__v176.gmlmap_options, "op_invert_throw")),1));if(yyfgreater(ds_map_find_value(__yy__v176.gmlmap_options,"op_invert_throw"),3)){ds_map_set(__yy__v176.gmlmap_options,"op_invert_throw",0);};var ___sw190___=ds_map_find_value(__yy__v176.gmlmap_options,"op_invert_throw");var ___swc191___=-1;if(yyCompareVal(___sw190___,0,g_GMLMathEpsilon,false)==0){___swc191___=0;}else if(yyCompareVal(___sw190___,1,g_GMLMathEpsilon,false)==0){___swc191___=1;}else if(yyCompareVal(___sw190___,2,g_GMLMathEpsilon,false)==0){___swc191___=2;}else if(yyCompareVal(___sw190___, 3,g_GMLMathEpsilon,false)==0){___swc191___=3;}switch(___swc191___){case 0:{{var __yy__v177=GetWithArray(YYASSET_REF(0x0000006F));for(var __yy__v178 in __yy__v177){if(!__yy__v177.hasOwnProperty(__yy__v178))continue;var __yy__v179=__yy__v177[__yy__v178];gml_Script_s_fieldtxt(__yy__v179,__yy__v176,gml_Script_s_str(__yy__v179,__yy__v176,"ui_Normal"));}};break;}case 1:{{var __yy__v180=GetWithArray(YYASSET_REF(0x0000006F));for(var __yy__v181 in __yy__v180){if(!__yy__v180.hasOwnProperty(__yy__v181))continue;var __yy__v182=__yy__v180[__yy__v181]; gml_Script_s_fieldtxt(__yy__v182,__yy__v176,gml_Script_s_str(__yy__v182,__yy__v176,"ui_Inverted"));}};break;}case 2:{{var __yy__v183=GetWithArray(YYASSET_REF(0x0000006F));for(var __yy__v184 in __yy__v183){if(!__yy__v183.hasOwnProperty(__yy__v184))continue;var __yy__v185=__yy__v183[__yy__v184];gml_Script_s_fieldtxt(__yy__v185,__yy__v176,gml_Script_s_str(__yy__v185,__yy__v176,"ui_AnalogueL"));}};break;}case 3:{{var __yy__v186=GetWithArray(YYASSET_REF(0x0000006F));for(var __yy__v187 in __yy__v186){if(!__yy__v186.hasOwnProperty(__yy__v187))continue; var __yy__v188=__yy__v186[__yy__v187];gml_Script_s_fieldtxt(__yy__v188,__yy__v176,gml_Script_s_str(__yy__v188,__yy__v176,"ui_AnalogueR"));}};break;}};}}};};};}}function gml_GlobalScript_s_remove_player(_inst,_other){(_inst.gmls_remove_player=__yy_method(_inst,gml_Script_s_remove_player));}function gml_Script_s_remove_player(_inst,_other,argument0,argument1,argument2){{if(yyfequal(argument2,_inst.undefined)){argument2="";};}{{var __yy__v189=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v190 in __yy__v189){ if(!__yy__v189.hasOwnProperty(__yy__v190))continue;var __yy__v191=__yy__v189[__yy__v190];{if(yyfequal(argument0,(-4))){{gml_Script_slog(__yy__v191,_inst,"s_remove_player: Invalid pmap");return true;};};if(yyfequal(ds_exists(argument0,1),false)){{gml_Script_slog(__yy__v191,_inst,"s_remove_player: pmap not a map, direct delete (old version?)");var gmldel_index=ds_list_find_index(__yy__v191.gmlroster,argument0);if(yyfnotequal(gmldel_index,(-1))){ds_list_delete(__yy__v191.gmlroster,gmldel_index);};return true; };};if((yyGetBool(ds_map_exists(argument0,"hof")))&&(yyGetBool(yyfequal(ds_map_find_value(argument0,"hof"),true)))){{gml_Script_slog(__yy__v191,_inst,yyfplus(yyfplus(yyfplus(yyfplus("s_remove_player[",__yy_gml_errCheck(string(ds_map_find_value(argument0,"lname")))),"]: Archived in HoF. Reason["),__yy_gml_errCheck(argument1)),"]"));ds_map_set(argument0,"team_leave_reason",argument1);ds_map_set(argument0,"uniform_record",gml_Script_s_extract_uniform_cols_to_record(__yy__v191,_inst,ds_map_find_value(argument0, "teamid"),""));if(yyfnotequal(argument2,"")){{ds_map_set(argument0,"epilogue",argument2);};};ds_map_set(argument0,"class_of",yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstart_year),__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear)));ds_list_add(__yy__v191.gmlhoflist,argument0);ds_list_delete(__yy__v191.gmlroster,ds_list_find_index(__yy__v191.gmlroster,argument0));return false;};}else {{gml_Script_slog(__yy__v191,_inst,yyfplus(yyfplus(yyfplus(yyfplus("s_remove_player[", __yy_gml_errCheck(string(ds_map_find_value(argument0,"lname")))),"]: Destroyed. Reason["),__yy_gml_errCheck(argument1)),"]"));ds_list_delete(__yy__v191.gmlroster,ds_list_find_index(__yy__v191.gmlroster,argument0));ds_map_destroy(argument0);return true;};};}}};}}function gml_GlobalScript_btn_click_BengRams(_inst,_other){(_inst.gmlbtn_click_BengRams=__yy_method(_inst,gml_Script_btn_click_BengRams));(_inst.gmls_update_btn_bengrams=__yy_method(_inst,gml_Script_s_update_btn_bengrams));(_inst.gmls_set_ui_colours=__yy_method(_inst, gml_Script_s_set_ui_colours));}function gml_Script_btn_click_BengRams(_inst,_other){{global.gmlui_skin=yyfplus(global.gmlui_skin,1);if(yyfgreater(global.gmlui_skin,2)){global.gmlui_skin=0;};gml_Script_s_set_ui_colours(_inst,_other,global.gmlui_skin);if(yyGetBool(global.gmlpoki)){{var ___sw198___=global.gmlui_skin;var ___swc199___=-1;if(yyCompareVal(___sw198___,1,g_GMLMathEpsilon,false)==0){___swc199___=0;}else if(yyCompareVal(___sw198___,2,g_GMLMathEpsilon,false)==0){___swc199___=1;}switch(___swc199___){ case 0:{gml_Script_poki_set_team(_inst,_other,1);break;}case 1:{gml_Script_poki_set_team(_inst,_other,2);break;}default :{gml_Script_poki_set_team(_inst,_other,0);break;}};};};room_goto(YYASSET_REF(0x0300000E));}}function gml_Script_s_update_btn_bengrams(_inst,_other){{{yyInst(_inst,_other,100248).visible=false;return;};gml_Script_s_set_ui_colours(_inst,_other,global.gmlui_skin);yyInst(_inst,_other,100248).gmlimage_num=global.gmlui_skin;var ___sw200___=global.gmlui_skin;var ___swc201___=-1;if(yyCompareVal(___sw200___, 0,g_GMLMathEpsilon,false)==0){___swc201___=0;}else if(yyCompareVal(___sw200___,1,g_GMLMathEpsilon,false)==0){___swc201___=1;}else if(yyCompareVal(___sw200___,2,g_GMLMathEpsilon,false)==0){___swc201___=2;}switch(___swc201___){case 0:{yyInst(_inst,_other,100248).gmlcolour=make_color_rgb(44,104,255);break;}case 1:{yyInst(_inst,_other,100248).gmlcolour=make_color_rgb(0,76,84);break;}case 2:{yyInst(_inst,_other,100248).gmlcolour=make_color_rgb(226,24,54);break;}};}}function gml_Script_s_set_ui_colours(_inst, _other,argument0){{var ___sw202___=argument0;var ___swc203___=-1;if(yyCompareVal(___sw202___,0,g_GMLMathEpsilon,false)==0){___swc203___=0;}else if(yyCompareVal(___sw202___,1,g_GMLMathEpsilon,false)==0){___swc203___=1;}else if(yyCompareVal(___sw202___,2,g_GMLMathEpsilon,false)==0){___swc203___=2;}switch(___swc203___){case 0:{global.gmlc_background=make_color_rgb(44,104,255);global.gmlc_primary=make_color_rgb(210,210,10);global.gmlc_backfill=make_color_rgb(0,0,0);break;}case 1:{global.gmlc_background=make_color_rgb(0, 76,84);global.gmlc_primary=make_color_rgb(220,220,220);global.gmlc_backfill=make_color_rgb(0,0,0);break;}case 2:{global.gmlc_background=make_color_rgb(226,24,54);global.gmlc_primary=make_color_rgb(252,205,21);global.gmlc_backfill=make_color_rgb(0,0,0);break;}};}}function gml_GlobalScript_btn_click_OptionsAutoRun(_inst,_other){(_inst.gmlbtn_click_OptionsAutoRun=__yy_method(_inst,gml_Script_btn_click_OptionsAutoRun));}function gml_Script_btn_click_OptionsAutoRun(_inst,_other){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_autorun=!yyGetBool(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlop_autorun);gml_Script_s_update_options(_inst,_other);}}function gml_GlobalScript_title_scripts(_inst,_other){(_inst.gmls_title_goto=__yy_method(_inst,gml_Script_s_title_goto));(_inst.gmls_title_create=__yy_method(_inst,gml_Script_s_title_create));(_inst.gmls_title_exit=__yy_method(_inst,gml_Script_s_title_exit));(_inst.gmls_title_check_any_button=__yy_method(_inst,gml_Script_s_title_check_any_button));(_inst.gmls_title_create_image=__yy_method(_inst,gml_Script_s_title_create_image)); (_inst.gmls_title_step_image=__yy_method(_inst,gml_Script_s_title_step_image));(_inst.gmls_title_draw_gui_image=__yy_method(_inst,gml_Script_s_title_draw_gui_image));(_inst.gmlf_almost_same=__yy_method(_inst,gml_Script_f_almost_same));(_inst.gmls_title_create_video=__yy_method(_inst,gml_Script_s_title_create_video));(_inst.gmls_title_async_social_video=__yy_method(_inst,gml_Script_s_title_async_social_video));(_inst.gmls_title_do_video_end=__yy_method(_inst,gml_Script_s_title_do_video_end));(_inst.gmls_title_step_video=__yy_method(_inst, gml_Script_s_title_step_video));(_inst.gmls_title_draw_gui_video=__yy_method(_inst,gml_Script_s_title_draw_gui_video));(_inst.gmls_title_create_fadeinout_splash=__yy_method(_inst,gml_Script_s_title_create_fadeinout_splash));(_inst.gmls_title_step_fadeinout_splash=__yy_method(_inst,gml_Script_s_title_step_fadeinout_splash));(_inst.gmls_title_draw_fadeinout_splash=__yy_method(_inst,gml_Script_s_title_draw_fadeinout_splash));}function gml_Script_s_title_goto(_inst,_other){{if(!yyGetBool(global.gmlshow_title)){ {return;};};var gmldoShow=false;var ___sw206___=g_pBuiltIn.get_os_type();var ___swc207___=-1;if(yyCompareVal(___sw206___,21,g_GMLMathEpsilon,false)==0){___swc207___=0;}switch(___swc207___){case 0:{{gmldoShow=true;break;};}};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gmldoShow=true;};};{};if(yyGetBool(gmldoShow)){{gml_Script_s_set_desktop_dev_window_size(_inst,_other);global.gmlshow_title=false;room_goto(YYASSET_REF(0x03000001));};};}}function gml_Script_s_title_create(_inst,_other){{gml_Script_s_refresh_gamepads(_inst, _other);{gml_Script_s_title_create_image(_inst,_other);};}}function gml_Script_s_title_exit(_inst,_other){{display_set_gui_size(480,270);surface_resize(g_pBuiltIn.application_surface,480,270);{};room_goto(YYASSET_REF(0x03000000));}}function gml_Script_s_title_check_any_button(_inst,_other){{gml_Script_s_update_gamepad(_inst,_other);return(yyGetBool(yyInst(_inst,_other,global.gmlgp).gmlgamepad_anybutton))||(yyGetBool(mouse_check_button_released(1)))||(yyGetBool(mouse_check_button_released(2)));}}function gml_Script_s_title_create_image(_inst, _other){{_inst.gmlaction_step=kgml_Script_s_title_step_image;_inst.gmlaction_draw_gui=kgml_Script_s_title_draw_gui_image;yyInst(_inst,_other,100022).gmltitle_spr=YYASSET_REF(0x01000156);yyInst(_inst,_other,100022).gmltitle_frame=0;yyInst(_inst,_other,100022).gmltitle_x=0;yyInst(_inst,_other,100022).gmltitle_y=0;yyInst(_inst,_other,100022).gmltext_x=240;yyInst(_inst,_other,100022).gmltext_y=242;if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{yyInst(_inst,_other,100022).gmltext_x=240;yyInst(_inst, _other,100022).gmltext_y=76;yyInst(_inst,_other,100022).gmltitle_spr=YYASSET_REF(0x01000146);yyInst(_inst,_other,100022).gmltitle_frame=0;var gmlslot=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"saveslot");var gmlsav_week=1;var gmlsav_stage=1;var gmlsav_college_admissions_draft_round=0;var gmlfilename=global.gmlg_savename1;if(yyfequal(gmlslot,2)){gmlfilename=global.gmlg_savename2;};if(yyfequal(gmlslot,3)){gmlfilename=global.gmlg_savename3;};if(yyfequal(gmlslot,4)){gmlfilename=global.gmlg_savename4; };if(yyfequal(gmlslot,5)){gmlfilename=global.gmlg_savename5;};if(yyGetBool(file_exists(gmlfilename))){{gml_Script_slog(_inst,_other,yyfplus("Opening file: ",__yy_gml_errCheck(gmlfilename)));ini_open(gmlfilename);gmlsav_week=ini_read_real("savegame","week",1);gmlsav_college_admissions_draft_round=ini_read_real("savegame","college_admissions_draft_round",0);gmlsav_stage=ini_read_real("savegame","stage",1);ini_close();};};if((yyGetBool(yyfequal(gmlsav_stage,(-10))))||(yyGetBool(yyfgreater(gmlsav_college_admissions_draft_round, 0)))){{gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("TITLE slot:[",__yy_gml_errCheck(string(gmlslot))),"] sav_stage("),__yy_gml_errCheck(string(gmlsav_stage))),") sav_college_admissions_draft_round("),__yy_gml_errCheck(string(gmlsav_college_admissions_draft_round))),") Between seasons -> Spring"));yyInst(_inst,_other,100022).gmltitle_frame=1;};}else {if(yyfless(gmlsav_week,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular)){{gml_Script_slog(_inst,_other, yyfplus(yyfplus(yyfplus(yyfplus("TITLE slot:[",__yy_gml_errCheck(string(gmlslot))),"] week("),__yy_gml_errCheck(string(gmlsav_week))),") Regular season -> Fall"));yyInst(_inst,_other,100022).gmltitle_frame=0;};}else {{gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus("TITLE slot:[",__yy_gml_errCheck(string(gmlslot))),"] week("),__yy_gml_errCheck(string(gmlsav_week))),") Post season -> Winter"));yyInst(_inst,_other,100022).gmltitle_frame=2;};};};var gmldW=display_get_width();var gmldH=display_get_height(); var gmls_ar=yyfdivide(__yy_gml_errCheck(real(gmldW)),__yy_gml_errCheck(real(gmldH)));var gmlsW=sprite_get_width(yyInst(_inst,_other,100022).gmltitle_spr);var gmlsH=sprite_get_height(yyInst(_inst,_other,100022).gmltitle_spr);var gmlnewDW=480;var gmlnewDH=270;var gmlis_tall=yyfgreater(gmls_ar,1.7777777777777777);if(yyGetBool(gmlis_tall)){{gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus("TITLE -> Tall device [",__yy_gml_errCheck(string(gmldW))),","),__yy_gml_errCheck(string(gmldH))),"]"));var gmltH=270; var gmltW=yyftime(__yy_gml_errCheck(gmltH),__yy_gml_errCheck(gmls_ar));gmlnewDW=gmltW;gmlnewDH=gmltH;yyInst(_inst,_other,100022).gmltitle_x=yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmltW),__yy_gml_errCheck(gmlsW))),2);yyInst(_inst,_other,100022).gmltitle_y=0;yyInst(_inst,_other,100022).gmltext_x=yyfplus(yyInst(_inst,_other,100022).gmltext_x,yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmltW),480)),2));yyInst(_inst,_other,100022).gmltext_y=yyfplus(yyInst(_inst,_other,100022).gmltext_y, yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmltH),270)),2));};}else {{gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus("TITLE -> Not Tall device [",__yy_gml_errCheck(string(gmldW))),","),__yy_gml_errCheck(string(gmldH))),"]"));yyInst(_inst,_other,100022).gmltitle_x=yyfdivide(__yy_gml_errCheck(yyfminus(480,__yy_gml_errCheck(gmlsW))),2);};};gml_Script_slog(_inst,_other,"----------------");gml_Script_slog(_inst,_other,yyfplus(yyfplus("newDW [",__yy_gml_errCheck(string(gmlnewDW))), "]"));gml_Script_slog(_inst,_other,yyfplus(yyfplus("newDH [",__yy_gml_errCheck(string(gmlnewDH))),"]"));gml_Script_slog(_inst,_other,"----------------");display_set_gui_size(gmlnewDW,gmlnewDH);surface_resize(g_pBuiltIn.application_surface,gmlnewDW,gmlnewDH);};};}}function gml_Script_s_title_step_image(_inst,_other){{if(yyGetBool(gml_Script_s_title_check_any_button(_inst,_other))){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))){audio_play_sound(YYASSET_REF(0x02000006), 1,false);};gml_Script_s_title_exit(_inst,_other);};};}}function gml_Script_s_title_draw_gui_image(_inst,_other){{draw_sprite(_inst,yyInst(_inst,_other,100022).gmltitle_spr,yyInst(_inst,_other,100022).gmltitle_frame,yyInst(_inst,_other,100022).gmltitle_x,yyInst(_inst,_other,100022).gmltitle_y);var gmltx=yyInst(_inst,_other,100022).gmltext_x;var gmlty=yyInst(_inst,_other,100022).gmltext_y;var gmlmsg=(yyGetBool(global.gmlmobile_device)?"ui_PressStart_mob":"ui_PressStart");var gmlmsgTxt=string_upper(gml_Script_s_str(_inst, _other,gmlmsg));if(yyfgreater(yyfmod(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),1000),500)){{draw_set_font(global.gmlfnt_small_flex);draw_set_color(16777215);draw_set_halign(1);draw_set_valign(1);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmlmsgTxt);};};}}function gml_Script_f_almost_same(_inst,_other,argument0,argument1){{return yyfless(abs(yyfminus(__yy_gml_errCheck(argument0),__yy_gml_errCheck(argument1))),0.011);}}function gml_Script_s_title_create_video(_inst,_other){{_inst.gmlaction_async_social=kgml_Script_s_title_async_social_video; _inst.gmlaction_draw_gui=kgml_Script_s_title_draw_gui_video;_inst.gmlaction_step=kgml_Script_s_title_step_video;gml_Script_slogf(_inst,_other,"Window: %1x%2",window_get_width(),window_get_height());gml_Script_slogf(_inst,_other,"Screen: %1x%2",display_get_width(),display_get_height());var gmlvidName="16x9_Landscape_1920.mp4";var gmlresW=1920;var gmlresH=1080;var gmldW=display_get_width();var gmldH=display_get_height();var gmlaspRat="?";var gmls_ar=yyfdivide(__yy_gml_errCheck(real(gmldW)),__yy_gml_errCheck(real(gmldH))); if(yyGetBool(gml_Script_f_almost_same(_inst,_other,1.7777777777777777,gmls_ar))){{gmlaspRat="16:9";if(yyfless(gmldW,2000)){{gmlresW=1920;gmlresH=1080;gmlvidName="16x9_Landscape_1920.mp4";};}else {if(yyfless(gmldW,5000)){{gmlresW=4096;gmlresH=2304;gmlvidName="16x9_Landscape_4096.mp4";};}else {{gmlresW=5120;gmlresH=2880;gmlvidName="16x9_Landscape_5120.mp4";};};};};}else {if(yyGetBool(gml_Script_f_almost_same(_inst,_other,1.6,gmls_ar))){{gmlaspRat="16:10";if(yyfless(gmldW,2000)){{gmlresW=1440;gmlresH=900; gmlvidName="16x10_Landscape_1440.mp4";};}else {{gmlresW=2880;gmlresH=1800;gmlvidName="16x10_Landscape_2880.mp4";};};};}else {if(yyGetBool(gml_Script_f_almost_same(_inst,_other,1.3333333333333333,gmls_ar))){{gmlresW=2732;gmlresH=2048;gmlvidName="4x3_Landscape.mp4";gmlaspRat="4:3";};}else {if(yyGetBool(gml_Script_f_almost_same(_inst,_other,2.1666666666666665,gmls_ar))){{gmlresW=2688;gmlresH=1242;gmlvidName="19.5x9_Landscape.mp4";gmlaspRat="19.5:9";};}else {if(yyGetBool(gml_Script_f_almost_same(_inst,_other, 1.525,gmls_ar))){{gmlresW=2266;gmlresH=1488;gmlvidName="4.6x3_Landscape.mp4";gmlaspRat="4.5:3 but really 6.1:4";};}else {if(yyGetBool(gml_Script_f_almost_same(_inst,_other,1.4285714285714286,gmls_ar))){{gmlresW=2388;gmlresH=1668;gmlvidName="4.3x3_Landscape.mp4";gmlaspRat="4.3:3 but really 10:7";};};};};};};};gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("s_title_create_video [",__yy_gml_errCheck(gmlvidName)),"] size ["), __yy_gml_errCheck(string(gmlresW))),"/"),__yy_gml_errCheck(string(gmlresH))),"] for screen ["),__yy_gml_errCheck(string(gmldW))),"/"),__yy_gml_errCheck(string(gmldH))),"] aspRat["),__yy_gml_errCheck(gmlaspRat)),"]"));video_open(yyfplus("AppleArcade/",__yy_gml_errCheck(gmlvidName)));display_set_gui_size(gmlresW,gmlresH);surface_resize(g_pBuiltIn.application_surface,gmlresW,gmlresH);}}function gml_Script_s_title_async_social_video(_inst,_other){{var gml_type=ds_map_find_value(g_pBuiltIn.get_async_load(), "type");if(yyfequal(gml_type,"video_start")){{gml_Script_slog(_inst,_other,"video_start");};}else {if(yyfequal(gml_type,"video_end")){{gml_Script_s_title_do_video_end(_inst,_other);gml_Script_s_title_create_fadeinout_splash(_inst,_other);};};};}}function gml_Script_s_title_do_video_end(_inst,_other){{gml_Script_slog(_inst,_other,"video_end");ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"aa_video_watched",1);yyInst(_inst,_other,YYASSET_REF(0x00000064)).visible=true;gml_Script_s_save_options(_inst, _other);video_close();display_set_gui_size(480,270);surface_resize(g_pBuiltIn.application_surface,480,270);}}function gml_Script_s_title_step_video(_inst,_other){{if(yyGetBool(gml_Script_s_title_check_any_button(_inst,_other))){{gml_Script_slog(_inst,_other,yyfplus(yyfplus("aa_video_watched[",__yy_gml_errCheck(string(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"aa_video_watched")))),"]"));if(yyfequal(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options, "aa_video_watched"),0)){{return;};};gml_Script_slog(_inst,_other,"video_skip");gml_Script_s_title_do_video_end(_inst,_other);gml_Script_s_title_exit(_inst,_other);};};}}function gml_Script_s_title_draw_gui_video(_inst,_other){{var gml_data=video_draw();var gml_status=gml_data[__yy_gml_array_check_index(0,gml_data)];if(yyfequal(gml_status,0)){{var gml_surface=gml_data[__yy_gml_array_check_index(1,gml_data)];draw_surface(gml_surface,_inst.x,_inst.y);};};}}function gml_Script_s_title_create_fadeinout_splash(_inst, _other){{_inst.gmlaction_async_social=(-4);_inst.gmlaction_step=kgml_Script_s_title_step_fadeinout_splash;_inst.gmlaction_draw_gui=kgml_Script_s_title_draw_fadeinout_splash;yyInst(_inst,_other,100022).gmltitle_spr=YYASSET_REF(0x010000FD);yyInst(_inst,_other,100022).gmlfade_start_t=g_pBuiltIn.get_current_time();}}function gml_Script_s_title_step_fadeinout_splash(_inst,_other){{if(yyGetBool(gml_Script_s_title_check_any_button(_inst,_other))){{gml_Script_s_title_exit(_inst,_other);return;};};var gmlt=yyfminus(__yy_gml_errCheck(g_pBuiltIn.get_current_time()), __yy_gml_errCheck(_inst.gmlfade_start_t));if(yyfgreaterequal(gmlt,2100)){{gml_Script_s_title_exit(_inst,_other);};};}}function gml_Script_s_title_draw_fadeinout_splash(_inst,_other){{var gmla=1;var gmlt=yyfminus(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),__yy_gml_errCheck(_inst.gmlfade_start_t));if(yyflessequal(gmlt,350)){{gmla=lerp(0,1,yyfdivide(__yy_gml_errCheck(gmlt),350));};}else {if((yyGetBool(yyfgreater(gmlt,350)))&&(yyGetBool(yyflessequal(gmlt,1850)))){{gmla=1;};}else {if((yyGetBool(yyfgreater(gmlt, 1850)))&&(yyGetBool(yyflessequal(gmlt,2100)))){{gmla=lerp(1,0,yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlt),1850)),250));};}else {{gmla=0;};};};};draw_sprite_ext(_inst,yyInst(_inst,_other,100022).gmltitle_spr,0,0,0,1,1,0,16777215,gmla);}}function gml_GlobalScript_s_str_helpers(_inst,_other){(_inst.gmls_str_int_to_ordinal=__yy_method(_inst,gml_Script_s_str_int_to_ordinal));}function gml_Script_s_str_int_to_ordinal(_inst,_other,argument0){{var gmllast_digit=yyfmod(__yy_gml_errCheck(argument0), 10);var gmllast_two_digits=yyfmod(__yy_gml_errCheck(argument0),100);var gmlsuffix="th";if((yyGetBool(yyfless(gmllast_two_digits,11)))||(yyGetBool(yyfgreater(gmllast_two_digits,13)))){{var ___sw210___=gmllast_digit;var ___swc211___=-1;if(yyCompareVal(___sw210___,1,g_GMLMathEpsilon,false)==0){___swc211___=0;}else if(yyCompareVal(___sw210___,2,g_GMLMathEpsilon,false)==0){___swc211___=1;}else if(yyCompareVal(___sw210___,3,g_GMLMathEpsilon,false)==0){___swc211___=2;}switch(___swc211___){case 0:{gmlsuffix="st"; break;}case 1:{gmlsuffix="nd";break;}case 2:{gmlsuffix="rd";break;}};};};return yyfplus(__yy_gml_errCheck(string(argument0)),__yy_gml_errCheck(gmlsuffix));}}// /// @return {bool} New team added function gml_GlobalScript_s_college_competitions_seeding(_inst,_other){(_inst.gmls_get_team_from_tag=__yy_method(_inst,gml_Script_s_get_team_from_tag));(_inst.gmls_get_winner_by_cid=__yy_method(_inst,gml_Script_s_get_winner_by_cid));(_inst.gmls_get_winner_by_mid=__yy_method(_inst,gml_Script_s_get_winner_by_mid)); (_inst.gmls_get_co_conference_winner=__yy_method(_inst,gml_Script_s_get_co_conference_winner));(_inst.gmls_get_co_division_winner=__yy_method(_inst,gml_Script_s_get_co_division_winner));(_inst.gmls_get_co_conference_best=__yy_method(_inst,gml_Script_s_get_co_conference_best));(_inst.gmls_get_co_subdivision_best=__yy_method(_inst,gml_Script_s_get_co_subdivision_best));(_inst.gmls_get_co_bowl_seed=__yy_method(_inst,gml_Script_s_get_co_bowl_seed));(_inst.gmls_get_co_prestige_bowl_seed=__yy_method(_inst, gml_Script_s_get_co_prestige_bowl_seed));(_inst.gmls_create_prestige_pool=__yy_method(_inst,gml_Script_s_create_prestige_pool));(_inst.gmls_prestige_pool_sort_order_ranking=__yy_method(_inst,gml_Script_s_prestige_pool_sort_order_ranking));(_inst.gmls_prestige_pool_list=__yy_method(_inst,gml_Script_s_prestige_pool_list));(_inst.gmls_prestige_pool_add=__yy_method(_inst,gml_Script_s_prestige_pool_add));(_inst.gmls_get_prestige_pool=__yy_method(_inst,gml_Script_s_get_prestige_pool));(_inst.gmls_get_team_in_prestige_pool=__yy_method(_inst, gml_Script_s_get_team_in_prestige_pool));(_inst.gmls_prestige_pool_force_one_per_conf=__yy_method(_inst,gml_Script_s_prestige_pool_force_one_per_conf));(_inst.gmls_prestige_pool_fill_per_rank=__yy_method(_inst,gml_Script_s_prestige_pool_fill_per_rank));(_inst.gmls_get_bowl_seed_first_loop_pool=__yy_method(_inst,gml_Script_s_get_bowl_seed_first_loop_pool));(_inst.gmls_get_bowl_seed_second_loop_pool=__yy_method(_inst,gml_Script_s_get_bowl_seed_second_loop_pool));(_inst.gmls_get_bowl_seed_third_loop_pool=__yy_method(_inst, gml_Script_s_get_bowl_seed_third_loop_pool));(_inst.gmls_get_first_team_data=__yy_method(_inst,gml_Script_s_get_first_team_data));(_inst.gmls_get_competition_pool=__yy_method(_inst,gml_Script_s_get_competition_pool));(_inst.gmls_competition_pool_team=__yy_method(_inst,gml_Script_s_competition_pool_team));(_inst.gmls_get_competition_winner=__yy_method(_inst,gml_Script_s_get_competition_winner));(_inst.gmls_competition_pool_fill_from_rankings=__yy_method(_inst,gml_Script_s_competition_pool_fill_from_rankings)); (_inst.gmls_competition_pool_exclude_teams=__yy_method(_inst,gml_Script_s_competition_pool_exclude_teams));(_inst.gmls_competition_pool_add_team=__yy_method(_inst,gml_Script_s_competition_pool_add_team));(_inst.gmls_competition_pool_rankings_exclude=__yy_method(_inst,gml_Script_s_competition_pool_rankings_exclude));(_inst.gmls_get_tagged_source=__yy_method(_inst,gml_Script_s_get_tagged_source));(_inst.gmls_get_pool_position=__yy_method(_inst,gml_Script_s_get_pool_position));(_inst.gmls_competitions_debug_printout=__yy_method(_inst, gml_Script_s_competitions_debug_printout));}function gml_Script_s_get_team_from_tag(_inst,_other,argument0,argument1,argument2,argument3){{if(yyfequal(argument1,_inst.undefined)){argument1=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlschedule;};if(yyfequal(argument2,_inst.undefined)){argument2=1;};if(yyfequal(argument3,_inst.undefined)){argument3=(-4);};}{var gmlsrc=gml_Script_s_get_tagged_source(_inst,_other,argument0);if(yyfequal(gmlsrc,(-4))){return(-4);};var ___sw222___=yyInst(_inst,_other,gmlsrc).gmltag; var ___swc223___=-1;if(yyCompareVal(___sw222___,"tm",g_GMLMathEpsilon,false)==0){___swc223___=0;}else if(yyCompareVal(___sw222___,"c",g_GMLMathEpsilon,false)==0){___swc223___=1;}else if(yyCompareVal(___sw222___,"m",g_GMLMathEpsilon,false)==0){___swc223___=2;}switch(___swc223___){case 0:{var ___sw224___=yyInst(_inst,_other,gmlsrc).gmlsource;var ___swc225___=-1;if(yyCompareVal(___sw224___,"teams",g_GMLMathEpsilon,false)==0){___swc225___=0;}else if(yyCompareVal(___sw224___,"pool",g_GMLMathEpsilon,false)==0){ ___swc225___=1;}else if(yyCompareVal(___sw224___,"c_win",g_GMLMathEpsilon,false)==0){___swc225___=2;}else if(yyCompareVal(___sw224___,"m_win",g_GMLMathEpsilon,false)==0){___swc225___=3;}else if(yyCompareVal(___sw224___,"cnf_win",g_GMLMathEpsilon,false)==0){___swc225___=4;}else if(yyCompareVal(___sw224___,"div_win",g_GMLMathEpsilon,false)==0){___swc225___=5;}else if(yyCompareVal(___sw224___,"best_1",g_GMLMathEpsilon,false)==0){___swc225___=6;}else if(yyCompareVal(___sw224___,"best_2",g_GMLMathEpsilon,false)==0){ ___swc225___=7;}else if(yyCompareVal(___sw224___,"maj_rank",g_GMLMathEpsilon,false)==0){___swc225___=8;}else if(yyCompareVal(___sw224___,"min_rank",g_GMLMathEpsilon,false)==0){___swc225___=9;}else if(yyCompareVal(___sw224___,"pbowl",g_GMLMathEpsilon,false)==0){___swc225___=10;}else if(yyCompareVal(___sw224___,"bowl",g_GMLMathEpsilon,false)==0){___swc225___=11;}switch(___swc225___){case 0:{if(yyfgreater(argument2,1)){return(-4);};return yyInst(_inst,_other,gmlsrc).gmlkey;}case 1:{if(yyfgreater(argument2, 1)){return(-4);};return gml_Script_s_get_pool_position(_inst,_other,yyInst(_inst,_other,gmlsrc).gmlkey,argument3);}case 2:{if(yyfgreater(argument2,1)){return(-4);};return gml_Script_s_get_winner_by_cid(_inst,_other,yyInst(_inst,_other,gmlsrc).gmlkey,argument1);}case 3:{if(yyfgreater(argument2,1)){return(-4);};return gml_Script_s_get_winner_by_mid(_inst,_other,yyInst(_inst,_other,gmlsrc).gmlkey,argument1);}case 4:{if(yyfgreater(argument2,1)){return(-4);};return gml_Script_s_get_co_conference_winner(_inst, _other,yyInst(_inst,_other,gmlsrc).gmlkey);}case 5:{if(yyfgreater(argument2,1)){return(-4);};return gml_Script_s_get_co_division_winner(_inst,_other,yyInst(_inst,_other,gmlsrc).gmlkey);}case 6:{if(yyfgreater(argument2,1)){return(-4);};return gml_Script_s_get_co_conference_best(_inst,_other,yyInst(_inst,_other,gmlsrc).gmlkey,0);}case 7:{if(yyfgreater(argument2,1)){return(-4);};return gml_Script_s_get_co_conference_best(_inst,_other,yyInst(_inst,_other,gmlsrc).gmlkey,1);}case 8:{if(yyfgreater(argument2,1)){ return(-4);};return gml_Script_s_get_co_subdivision_best(_inst,_other,1,yyInst(_inst,_other,gmlsrc).gmlkey);}case 9:{if(yyfgreater(argument2,1)){return(-4);};return gml_Script_s_get_co_subdivision_best(_inst,_other,2,yyInst(_inst,_other,gmlsrc).gmlkey);}case 10:{if(yyfgreater(argument2,2)){return(-4);};return gml_Script_s_get_co_prestige_bowl_seed(_inst,_other,1,yyInst(_inst,_other,gmlsrc).gmlkey,argument2);}case 11:{return gml_Script_s_get_co_bowl_seed(_inst,_other,1,yyInst(_inst,_other,gmlsrc).gmlkey, argument2);}};}case 1:{break;}case 2:{break;}};return(-4);}}function gml_Script_s_get_winner_by_cid(_inst,_other,argument0,argument1){{var gmlfix=gml_Script_s_get_fix_by_competition_id(_inst,_other,argument0,argument1);if((yyGetBool(gmlfix))&&(yyGetBool(gml_Script_s_is_fix_filled(_inst,_other,gmlfix)))){{gml_Script_slogf(_inst,_other,"found %1 vs %2 (%3:%4)",ds_map_find_value(gmlfix,"home_team"),ds_map_find_value(gmlfix,"away_team"),ds_map_find_value(gmlfix,"home_score"),ds_map_find_value(gmlfix,"away_score")); return gml_Script_s_get_fix_winner_id(_inst,_other,gmlfix);};};return(-1);}}function gml_Script_s_get_winner_by_mid(_inst,_other,argument0,argument1){{var gmlfix=gml_Script_s_get_fix_by_match_id(_inst,_other,argument0,argument1);if((yyGetBool(gmlfix))&&(yyGetBool(gml_Script_s_is_fix_filled(_inst,_other,gmlfix)))){{gml_Script_slogf(_inst,_other,"found %1 vs %2 (%3:%4)",ds_map_find_value(gmlfix,"home_team"),ds_map_find_value(gmlfix,"away_team"),ds_map_find_value(gmlfix,"home_score"),ds_map_find_value(gmlfix, "away_score"));return gml_Script_s_get_fix_winner_id(_inst,_other,gmlfix);};};return(-1);}}function gml_Script_s_get_co_conference_winner(_inst,_other,argument0){{return gml_Script_s_get_co_division_winner(_inst,_other,yyfplus(__yy_gml_errCheck(argument0),".0"));}}function gml_Script_s_get_co_division_winner(_inst,_other,argument0){{var gmlc=string_split(argument0,".");if(yyfless(array_length(gmlc),2)){return(-1);};if(!yyGetBool(gml_Script_s_is_co_postseason(_inst,_other))){return(-1);};var gmlcomp=gml_Script_s_get_competition_by_conference_division(_inst, _other,gmlc[__yy_gml_array_check_index(0,gmlc)],gmlc[__yy_gml_array_check_index(1,gmlc)]);gml_Script_s_competition_update_standings(_inst,_other,yyInst(_inst,_other,gmlcomp).gmlconference,yyInst(_inst,_other,gmlcomp).gmldivision);if((yyGetBool(is_undefined(yyInst(_inst,_other,gmlcomp).gmlstandings)))||(yyGetBool(!yyGetBool(is_array(yyInst(_inst,_other,gmlcomp).gmlstandings))))){return(-1);};return yyInst(_inst,_other,yyInst(_inst,_other,gmlcomp).gmlstandings[__yy_gml_array_check_index(0,yyInst(_inst, _other,gmlcomp).gmlstandings)]).gmluid;}}function gml_Script_s_get_co_conference_best(_inst,_other,argument0,argument1){{if(!yyGetBool(gml_Script_s_is_co_postseason(_inst,_other))){return(-1);};var gmlconf=gml_Script_s_get_conference_data(_inst,_other,argument0);gml_Script_s_conference_update_standings(_inst,_other,gmlconf);if(yyfgreaterequal(argument1,array_length(yyInst(_inst,_other,gmlconf).gmlstandings))){return(-1);};return yyInst(_inst,_other,yyInst(_inst,_other,gmlconf).gmlstandings[__yy_gml_array_check_index(argument1, yyInst(_inst,_other,gmlconf).gmlstandings)]).gmluid;}}function gml_Script_s_get_co_subdivision_best(_inst,_other,argument0,argument1){{if(!yyGetBool(gml_Script_s_is_co_actual_postseason(_inst,_other))){return(-1);};gml_Script_s_subdivision_update_rankings(_inst,_other,argument0);var gmltd=yyInst(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsubdiv_data[__yy_gml_array_check_index(argument0,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsubdiv_data)]).gmlrankings[__yy_gml_array_check_index(yyfminus(__yy_gml_errCheck(argument1), 1),yyInst(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsubdiv_data[__yy_gml_array_check_index(argument0,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsubdiv_data)]).gmlrankings)];yyInst(_inst,_other,gmltd).gmlseeded=true;return yyInst(_inst,_other,gmltd).gmluid;}}function gml_Script_s_get_co_bowl_seed(_inst,_other,argument0,argument1,argument2){{if(!yyGetBool(gml_Script_s_is_co_actual_postseason(_inst,_other))){return(-1);};gml_Script_s_subdivision_update_rankings(_inst,_other,argument0); var gmltid;var ___sw226___=argument2;var ___swc227___=-1;if(yyCompareVal(___sw226___,1,g_GMLMathEpsilon,false)==0){___swc227___=0;}else if(yyCompareVal(___sw226___,2,g_GMLMathEpsilon,false)==0){___swc227___=1;}else if(yyCompareVal(___sw226___,3,g_GMLMathEpsilon,false)==0){___swc227___=2;}else if(yyCompareVal(___sw226___,4,g_GMLMathEpsilon,false)==0){___swc227___=3;}switch(___swc227___){case 0:{return(-1);}case 1:{gmltid=gml_Script_s_get_bowl_seed_first_loop_pool(_inst,_other,argument0,argument1);break;} case 2:{gmltid=gml_Script_s_get_bowl_seed_second_loop_pool(_inst,_other,argument0);break;}case 3:{gmltid=gml_Script_s_get_bowl_seed_third_loop_pool(_inst,_other,argument0);break;}};if((yyGetBool(yyfnotequal(gmltid,(-4))))&&(yyGetBool(yyfgreater(gmltid,(-1))))){return gmltid;};return(-1);}}function gml_Script_s_get_co_prestige_bowl_seed(_inst,_other,argument0,argument1,argument2){{if(yyGetBool(gml_Script_s_is_earlier_than(_inst,_other,16))){return(-1);};gml_Script_s_subdivision_update_rankings(_inst, _other,argument0);gml_Script_s_create_prestige_pool(_inst,_other);var gmlpbp=gml_Script_s_get_prestige_pool(_inst,_other);return gml_Script_s_get_team_in_prestige_pool(_inst,_other,argument1,argument2);}}function gml_Script_s_create_prestige_pool(_inst,_other){{var gmlpbp=gml_Script_s_get_prestige_pool(_inst,_other);if(yyfgreater(array_length(gmlpbp),0)){return;};var gmlconfs=__yy_gml_array_create([]);var gmlcomps=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcompetitions;var gmltag,gmlfix,gmlat,gmlht, gmlwt;gml_Script_slogf(_inst,_other,"\n*** CREATE PRESTIGE POOL");var gmli=0;for(;yyfless(gmli,array_length(gmlcomps));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmltag=string_split(yyInst(_inst,_other,gmlcomps[__yy_gml_array_check_index(gmli,gmlcomps)]).gmlpool_cfg,":");if((yyGetBool(yyfgreater(array_length(gmltag),2)))&&(yyGetBool(yyfequal(gmltag[__yy_gml_array_check_index(0,gmltag)],"pbp")))&&(yyGetBool(yyfequal(gmltag[__yy_gml_array_check_index(1, gmltag)],"inc")))&&(yyGetBool(yyfequal(gmltag[__yy_gml_array_check_index(2,gmltag)],"w")))){{gmlfix=gml_Script_s_get_fix_by_competition_id(_inst,_other,yyInst(_inst,_other,gmlcomps[__yy_gml_array_check_index(gmli,gmlcomps)]).gmluid);if(yyGetBool(gml_Script_s_is_fix_played(_inst,_other,gmlfix))){{gmlwt=gml_Script_s_get_fix_winner_id(_inst,_other,gmlfix);array_push(gmlconfs,gmltag[__yy_gml_array_check_index(3,gmltag)]);gml_Script_s_prestige_pool_add(_inst,_other,gmlwt,1,true);gml_Script_slogf(_inst, _other,"Adding conf champ winner: %1 ",gmlwt);};};};};}};gmlconfs=array_unique(gmlconfs);var gmli=0;for(;yyfless(gmli,array_length(gmlcomps));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmltag=string_split(yyInst(_inst,_other,gmlcomps[__yy_gml_array_check_index(gmli,gmlcomps)]).gmlpool_cfg,":");if((yyGetBool(yyfgreater(array_length(gmltag),2)))&&(yyGetBool(yyfequal(gmltag[__yy_gml_array_check_index(0,gmltag)],"pbp")))&&(yyGetBool(yyfequal(gmltag[__yy_gml_array_check_index(1, gmltag)],"exc")))&&(yyGetBool(yyfequal(gmltag[__yy_gml_array_check_index(2,gmltag)],"sd")))){{gmlfix=gml_Script_s_get_fix_by_competition_id(_inst,_other,yyInst(_inst,_other,gmlcomps[__yy_gml_array_check_index(gmli,gmlcomps)]).gmluid);if((yyGetBool(yyfnotequal(gmlfix,(-4))))&&(yyGetBool(gml_Script_s_is_fix_filled(_inst,_other,gmlfix)))){{gmlat=gml_Script_s_get_fix_away_team_id(_inst,_other,gmlfix);gmlht=gml_Script_s_get_fix_home_team_id(_inst,_other,gmlfix);gml_Script_s_prestige_pool_add(_inst,_other, gmlat,1,false,false);gml_Script_s_prestige_pool_add(_inst,_other,gmlht,1,false,false);gml_Script_slogf(_inst,_other,"Adding and/or unselecting top ranked teams: %1 %2",gmlat,gmlht);};};};};}};var gmlpt,gmlbt=(-4);var gmli=0;for(;yyfless(gmli,array_length(gmlcomps));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmltag=string_split(yyInst(_inst,_other,gmlcomps[__yy_gml_array_check_index(gmli,gmlcomps)]).gmlpool_cfg,":");if((yyGetBool(yyfgreater(array_length(gmltag), 2)))&&(yyGetBool(yyfequal(gmltag[__yy_gml_array_check_index(0,gmltag)],"pbp")))&&(yyGetBool(yyfequal(gmltag[__yy_gml_array_check_index(1,gmltag)],"best")))&&(yyGetBool(yyfequal(gmltag[__yy_gml_array_check_index(2,gmltag)],"w")))){{gmlfix=gml_Script_s_get_fix_by_competition_id(_inst,_other,yyInst(_inst,_other,gmlcomps[__yy_gml_array_check_index(gmli,gmlcomps)]).gmluid);if((yyGetBool(yyfnotequal(gmlfix,(-4))))&&(yyGetBool(gml_Script_s_is_fix_played(_inst,_other,gmlfix)))){{gmlwt=gml_Script_s_get_fix_winner_id(_inst, _other,gmlfix);gmlpt=gml_Script_s_get_struct_in_array_by_uid(_inst,_other,gmlpbp,gmlwt);if((yyGetBool(yyfequal(gmlpt,(-4))))&&(yyGetBool((yyGetBool(yyfequal(gmlbt,(-4))))||(yyGetBool((yyGetBool(yyfnotequal(gmlbt,(-4))))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,gml_Script_s_get_ranking_pos_data(_inst,_other,gml_Script_s_get_team_by_id(_inst,_other,gmlbt))).gmlpos,yyInst(_inst,_other,gml_Script_s_get_ranking_pos_data(_inst,_other,gml_Script_s_get_team_by_id(_inst,_other,gmlwt))).gmlpos)))))))){gmlbt=gmlwt; };};};};};}};if(yyfnotequal(gmlbt,(-4))){{gml_Script_s_prestige_pool_add(_inst,_other,gmlbt,2,true);gml_Script_slogf(_inst,_other,"Adding additional champ team: %1",gmlbt);};};gml_Script_s_prestige_pool_fill_per_rank(_inst,_other,8);array_sort(gmlpbp,kgml_Script_s_prestige_pool_sort_order_ranking);gml_Script_s_prestige_pool_list(_inst,_other);gml_Script_slogf(_inst,_other,"Conferences:\n%1",gmlconfs);gml_Script_slogf(_inst,_other,"Prestige bowls pool:\n%1",gmlpbp);}}function gml_Script_s_prestige_pool_sort_order_ranking(_inst, _other,argument0,argument1){{return yyfminus(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,argument0).gmlorder),10000)),__yy_gml_errCheck(yyInst(_inst,_other,argument0).gmlrank))),__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,argument1).gmlorder),10000)),__yy_gml_errCheck(yyInst(_inst,_other,argument1).gmlrank))));}}function gml_Script_s_prestige_pool_list(_inst,_other){{var gmlpbp=gml_Script_s_get_prestige_pool(_inst, _other);var gmlpt;gml_Script_slogf(_inst,_other,"\n***PRESTIGE POOL LIST");var gmli=0;for(;yyfless(gmli,array_length(gmlpbp));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlpt=gmlpbp[__yy_gml_array_check_index(gmli,gmlpbp)];if(!yyGetBool(yyInst(_inst,_other,gmlpt).gmlselectable)){continue;};gml_Script_slogf(_inst,_other,"%1: %2 order:%3 rank:%4 cid:%5 w:%6",gmli,gml_Script_s_get_team_name_by_id(_inst,_other,yyInst(_inst,_other,gmlpt).gmluid), yyInst(_inst,_other,gmlpt).gmlorder,yyInst(_inst,_other,gmlpt).gmlrank,yyInst(_inst,_other,gmlpt).gmlconf_uid,yyInst(_inst,_other,gmlpt).gmlconf_win);}};}}function gml_Script____struct___101_s_prestige_pool_add_gml_GlobalScript_s_college_competitions_seeding(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___101_s_prestige_pool_add_gml_GlobalScript_s_college_competitions_seeding";}if(gml_Script____struct___101_s_prestige_pool_add_gml_GlobalScript_s_college_competitions_seeding.prototype.__type===undefined){ gml_Script____struct___101_s_prestige_pool_add_gml_GlobalScript_s_college_competitions_seeding.prototype.__type="gml_Script____struct___101_s_prestige_pool_add_gml_GlobalScript_s_college_competitions_seeding";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___101_s_prestige_pool_add_gml_GlobalScript_s_college_competitions_seeding.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmluid=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlorder=$$args[__yy_gml_array_check_index(2+(1), $$args)];_inst.gmlconf_uid=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.gmlrank=$$args[__yy_gml_array_check_index(2+(3),$$args)];_inst.gmlconf_win=$$args[__yy_gml_array_check_index(2+(4),$$args)];_inst.gmlselectable=$$args[__yy_gml_array_check_index(2+(5),$$args)];}}}}function gml_Script_s_prestige_pool_add(_inst,_other,argument0,argument1,argument2,argument3){{if(yyfequal(argument3,_inst.undefined)){argument3=true;};}{var gmlpbp=gml_Script_s_get_prestige_pool(_inst,_other);var gmlteam=gml_Script_s_get_struct_in_array_by_uid(_inst, _other,gmlpbp,argument0);if(yyfequal(gmlteam,(-4))){{var gmltd=gml_Script_s_get_team_by_id(_inst,_other,argument0);array_push(gmlpbp,__yy_gml_object_create(_inst,(_inst.gml___struct___101=__yy_method(_inst,gml_Script____struct___101_s_prestige_pool_add_gml_GlobalScript_s_college_competitions_seeding)),argument0,argument1,real(ds_map_find_value(gmltd,"conference")),yyInst(_inst,_other,gml_Script_s_get_ranking_pos_data(_inst,_other,gmltd)).gmlpos,argument2,argument3));return true;};}else {{if(!yyGetBool(argument3)){ yyInst(_inst,_other,gmlteam).gmlselectable=argument3;};return false;};};}}function gml_Script_s_get_prestige_pool(_inst,_other){{return yyInst(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsubdiv_data[__yy_gml_array_check_index(1,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsubdiv_data)]).gmlprestige_pool;}}function gml_Script_s_get_team_in_prestige_pool(_inst,_other,argument0,argument1){{var gmlpbp=gml_Script_s_get_prestige_pool(_inst,_other);var gmlpt,gmlrt;var gmli=0;for(;yyfless(gmli, array_length(gmlpbp));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlpt=gmlpbp[__yy_gml_array_check_index(gmli,gmlpbp)];if((yyGetBool(yyInst(_inst,_other,gmlpt).gmlselectable))&&(yyGetBool((yyGetBool(yyfequal(yyInst(_inst,_other,gmlpt).gmlconf_uid,argument0)))||(yyGetBool(yyfequal(argument1,2)))))){{yyInst(_inst,_other,gmlpt).gmlselectable=false;gmlrt=gml_Script_s_get_struct_in_array_by_uid(_inst,_other,yyInst(_inst,_other,yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlsubdiv_data[__yy_gml_array_check_index(1,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsubdiv_data)]).gmlrankings,yyInst(_inst,_other,gmlpt).gmluid);yyInst(_inst,_other,gmlrt).gmlseeded=true;return yyInst(_inst,_other,gmlpt).gmluid;};};}};return(-1);}}function gml_Script_s_prestige_pool_force_one_per_conf(_inst,_other,argument0){{var gmlpbp=gml_Script_s_get_prestige_pool(_inst,_other);var gmlcount=0;var gmlloser=(-4);var gmlpt,gmlteam_uid;var gmli=0;for(;yyfless(gmli, array_length(gmlpbp));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlpt=gmlpbp[__yy_gml_array_check_index(gmli,gmlpbp)];if((yyGetBool(yyInst(_inst,_other,gmlpt).gmlselectable))&&(yyGetBool(yyfequal(yyInst(_inst,_other,gmlpt).gmlconf_uid,argument0)))){{if(yyfequal(yyInst(_inst,_other,gmlpt).gmlconf_win,false)){gmlloser=gmlpt;};(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__); };};}};if(yyfequal(gmlcount,1)){{gml_Script_slogf(_inst,_other,"conf %1 exactly one team",argument0);return;};};if(yyfequal(gmlcount,0)){{var gmlpos=0;while(yyfequal(gmlcount,0)){{gmlteam_uid=gml_Script_s_get_co_conference_best(_inst,_other,argument0,(g_yyPrePostObject__=gmlpos,gmlpos=(g_yyPrePostObject__ instanceof Long?gmlpos.add(1):++gmlpos),g_yyPrePostObject__));if(yyfgreater(gmlteam_uid,0)){{gmlpt=gml_Script_s_get_struct_in_array_by_uid(_inst,_other,gmlpbp,gmlteam_uid);if(yyfequal(gmlpt,(-4))){ {gml_Script_slogf(_inst,_other,"conf %1 zero teams added %2",argument0,gmlteam_uid);gml_Script_s_prestige_pool_add(_inst,_other,gmlteam_uid,1,false);(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__);};};};}else {break;};}};};};}}function gml_Script_s_prestige_pool_fill_per_rank(_inst,_other,argument0){{if(yyfless(argument0,1)){return;};var gmlpbp=gml_Script_s_get_prestige_pool(_inst,_other);var gmltd;{var __yy__v192=GetWithArray(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlsubdiv_data[__yy_gml_array_check_index(1,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsubdiv_data)]);for(var __yy__v193 in __yy__v192){if(!__yy__v192.hasOwnProperty(__yy__v193))continue;var __yy__v194=__yy__v192[__yy__v193];{var gmli=0;for(;yyfless(gmli,array_length(__yy__v194.gmlrankings));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{if(yyfless(argument0,1)){return;};gmltd=__yy__v194.gmlrankings[__yy_gml_array_check_index(gmli, __yy__v194.gmlrankings)];__yy__v194.gmlpt=gml_Script_s_get_struct_in_array_by_uid(__yy__v194,_inst,gmlpbp,yyInst(_inst,_other,gmltd).gmluid);if(yyfequal(__yy__v194.gmlpt,(-4))){{gml_Script_slogf(__yy__v194,_inst,"fill per rank added %1",yyInst(_inst,_other,gmltd).gmluid);gml_Script_s_prestige_pool_add(__yy__v194,_inst,yyInst(_inst,_other,gmltd).gmluid,3,false);(g_yyPrePostObject__=argument0,argument0=(g_yyPrePostObject__ instanceof Long?argument0.subtract(1):--argument0),g_yyPrePostObject__);};};} };}}};}}function gml_Script_s_get_bowl_seed_first_loop_pool(_inst,_other,argument0,argument1){{var gmlpool=__yy_gml_array_create([]);if(yyfless(argument1,0)){return(-4);};var gmltd;{var __yy__v195=GetWithArray(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsubdiv_data[__yy_gml_array_check_index(argument0,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsubdiv_data)]);for(var __yy__v196 in __yy__v195){if(!__yy__v195.hasOwnProperty(__yy__v196))continue;var __yy__v197=__yy__v195[__yy__v196];{var gmli=0;for(; yyfless(gmli,array_length(__yy__v197.gmlrankings));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmltd=__yy__v197.gmlrankings[__yy_gml_array_check_index(gmli,__yy__v197.gmlrankings)];if((yyGetBool(yyfequal(yyInst(_inst,_other,gmltd).gmlcnf_id,argument1)))&&(yyGetBool(yyfgreaterequal(yyInst(_inst,_other,gmltd).gmlwins,6)))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,gmltd).gmlseeded)))){array_push(gmlpool,gmltd);};}};}}};array_sort(gmlpool, kgml_Script_s_co_teams_data_sort_conf_wins_losses);return gml_Script_s_get_first_team_data(_inst,_other,gmlpool);}}function gml_Script_s_get_bowl_seed_second_loop_pool(_inst,_other,argument0){{var gmlpool=__yy_gml_array_create([]);var gmltd;{var __yy__v198=GetWithArray(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsubdiv_data[__yy_gml_array_check_index(argument0,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsubdiv_data)]);for(var __yy__v199 in __yy__v198){if(!__yy__v198.hasOwnProperty(__yy__v199))continue; var __yy__v200=__yy__v198[__yy__v199];{var gmli=0;for(;yyfless(gmli,array_length(__yy__v200.gmlrankings));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmltd=__yy__v200.gmlrankings[__yy_gml_array_check_index(gmli,__yy__v200.gmlrankings)];if((yyGetBool(!yyGetBool(yyInst(_inst,_other,gmltd).gmlseeded)))&&(yyGetBool(yyfgreaterequal(yyInst(_inst,_other,gmltd).gmlwins,6)))){array_push(gmlpool,gmltd);};}};}}};array_sort(gmlpool,kgml_Script_s_co_teams_data_sort_rank); return gml_Script_s_get_first_team_data(_inst,_other,gmlpool);}}function gml_Script_s_get_bowl_seed_third_loop_pool(_inst,_other,argument0){{var gmlpool=__yy_gml_array_create([]);var gmltd;{var __yy__v201=GetWithArray(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsubdiv_data[__yy_gml_array_check_index(argument0,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsubdiv_data)]);for(var __yy__v202 in __yy__v201){if(!__yy__v201.hasOwnProperty(__yy__v202))continue;var __yy__v203=__yy__v201[__yy__v202];{var gmli=0; for(;yyfless(gmli,array_length(__yy__v203.gmlrankings));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmltd=__yy__v203.gmlrankings[__yy_gml_array_check_index(gmli,__yy__v203.gmlrankings)];if(!yyGetBool(yyInst(_inst,_other,gmltd).gmlseeded)){{array_push(gmlpool,gmltd);};};}};gml_Script_slogf(__yy__v203,_inst,"loop 3 rankings has %1 teams - pool %2 teams",array_length(__yy__v203.gmlrankings),array_length(gmlpool));}}};array_sort(gmlpool, kgml_Script_s_co_teams_data_sort_wins_rank);return gml_Script_s_get_first_team_data(_inst,_other,gmlpool);}}function gml_Script_s_get_first_team_data(_inst,_other,argument0){{if(yyfgreater(array_length(argument0),0)){{yyInst(_inst,_other,argument0[__yy_gml_array_check_index(0,argument0)]).gmlseeded=true;return yyInst(_inst,_other,argument0[__yy_gml_array_check_index(0,argument0)]).gmluid;};};return(-4);}}function gml_Script____struct___102_s_get_competition_pool_gml_GlobalScript_s_college_competitions_seeding(_inst, _other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___102_s_get_competition_pool_gml_GlobalScript_s_college_competitions_seeding";}if(gml_Script____struct___102_s_get_competition_pool_gml_GlobalScript_s_college_competitions_seeding.prototype.__type===undefined){gml_Script____struct___102_s_get_competition_pool_gml_GlobalScript_s_college_competitions_seeding.prototype.__type="gml_Script____struct___102_s_get_competition_pool_gml_GlobalScript_s_college_competitions_seeding";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst, gml_Script____struct___102_s_get_competition_pool_gml_GlobalScript_s_college_competitions_seeding.prototype);{_inst.gmltier=1;_inst.gmlnum=0;_inst.gmlrankings=(-4);_inst.gmllist=__yy_gml_array_create([]);}}}function gml_Script_s_get_competition_pool(_inst,_other,argument0){{gml_Script_slogf(_inst,_other,"\n*** Create competition pool\n%1",argument0);var gmlpool=__yy_gml_object_create(_inst,(_inst.gml___struct___102=__yy_method(_inst,gml_Script____struct___102_s_get_competition_pool_gml_GlobalScript_s_college_competitions_seeding))); var gmlst,gmlv;var gmlsteps=string_split(argument0,";");var gmlis=0;for(;yyfless(gmlis,array_length(gmlsteps));(g_yyPrePostObject__=gmlis,gmlis=(g_yyPrePostObject__ instanceof Long?gmlis.add(1):++gmlis),g_yyPrePostObject__)){{gmlst=string_split(gmlsteps[__yy_gml_array_check_index(gmlis,gmlsteps)],":");var ___sw228___=string_trim(gmlst[__yy_gml_array_check_index(0,gmlst)]);var ___swc229___=-1;if(yyCompareVal(___sw228___,"tier",g_GMLMathEpsilon,false)==0){___swc229___=0;}else if(yyCompareVal(___sw228___,"num", g_GMLMathEpsilon,false)==0){___swc229___=1;}else if(yyCompareVal(___sw228___,"tm",g_GMLMathEpsilon,false)==0){___swc229___=2;}else if(yyCompareVal(___sw228___,"sort",g_GMLMathEpsilon,false)==0){___swc229___=3;}else if(yyCompareVal(___sw228___,"rnd",g_GMLMathEpsilon,false)==0){___swc229___=4;}switch(___swc229___){case 0:{yyInst(_inst,_other,gmlpool).gmltier=real(gmlst[__yy_gml_array_check_index(1,gmlst)]);gml_Script_s_subdivision_update_rankings(_inst,_other,yyInst(_inst,_other,gmlpool).gmltier);yyInst(_inst, _other,gmlpool).gmlrankings=yyInst(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsubdiv_data[__yy_gml_array_check_index(yyInst(_inst,_other,gmlpool).gmltier,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsubdiv_data)]).gmlrankings;gml_Script_slogf(_inst,_other,"Source tier %1 - %2 teams",yyInst(_inst,_other,gmlpool).gmltier,array_length(yyInst(_inst,_other,gmlpool).gmlrankings));break;}case 1:{yyInst(_inst,_other,gmlpool).gmlnum=real(gmlst[__yy_gml_array_check_index(1,gmlst)]);gml_Script_slogf(_inst, _other,"Pool wanted size: %1",yyInst(_inst,_other,gmlpool).gmlnum);break;}case 2:{if(yyfless(array_length(gmlst),3)){gmlst=__yy_gml_array_check(gmlst,693059915);gmlst[__yy_gml_array_check_index_set(2)]=(-4);};gml_Script_slogf(_inst,_other,"Pool teams: %1 from %2",gmlst[__yy_gml_array_check_index(1,gmlst)],gmlst[__yy_gml_array_check_index(2,gmlst)]);gml_Script_s_competition_pool_team(_inst,_other,gmlpool,gmlst[__yy_gml_array_check_index(1,gmlst)],gmlst[__yy_gml_array_check_index(2,gmlst)]);break;} case 3:{gml_Script_slogf(_inst,_other,"Pool sorting by rank position");array_sort(yyInst(_inst,_other,gmlpool).gmllist,kgml_Script_s_co_teams_data_sort_rank_pos);break;}case 4:{gmlv=string_split(gmlst[__yy_gml_array_check_index(1,gmlst)],"-");gml_Script_slogf(_inst,_other,"Pool randomise: %1 - %2 in 1 - %3",gmlv[__yy_gml_array_check_index(0,gmlv)],gmlv[__yy_gml_array_check_index(1,gmlv)],array_length(yyInst(_inst,_other,gmlpool).gmllist));array_shuffle_ext(yyInst(_inst,_other,gmlpool).gmllist,yyfminus(__yy_gml_errCheck(real(gmlv[__yy_gml_array_check_index(0, gmlv)])),1),yyfplus(yyfminus(__yy_gml_errCheck(real(gmlv[__yy_gml_array_check_index(1,gmlv)])),__yy_gml_errCheck(real(gmlv[__yy_gml_array_check_index(0,gmlv)]))),1));break;}};}};var gmltd;var gmli=0;for(;yyfless(gmli,array_length(yyInst(_inst,_other,gmlpool).gmllist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmltd=yyInst(_inst,_other,gmlpool).gmllist[__yy_gml_array_check_index(gmli,yyInst(_inst,_other,gmlpool).gmllist)];gml_Script_slogf(_inst, _other,"%1. %2 rp:%3",gmli,yyInst(_inst,_other,gmltd).gmlname,yyInst(_inst,_other,gml_Script_s_get_ranking_pos_data(_inst,_other,yyInst(_inst,_other,gmltd).gmlteam)).gmlpos);}};return yyInst(_inst,_other,gmlpool).gmllist;}}function gml_Script_s_competition_pool_team(_inst,_other,argument0,argument1,argument2){{var gmla,gmltd,gmlt1,gmlt2,gmltr;if(yyGetBool(argument2)){gmla=string_split(argument2,",");};var ___sw230___=argument1;var ___swc231___=-1;if(yyCompareVal(___sw230___,"best_win",g_GMLMathEpsilon, false)==0){___swc231___=0;}else if(yyCompareVal(___sw230___,"win",g_GMLMathEpsilon,false)==0){___swc231___=1;}else if(yyCompareVal(___sw230___,"excl_any",g_GMLMathEpsilon,false)==0){___swc231___=2;}else if(yyCompareVal(___sw230___,"rank_fill",g_GMLMathEpsilon,false)==0){___swc231___=3;}switch(___swc231___){case 0:{gmlt1=gml_Script_s_get_competition_winner(_inst,_other,gmla[__yy_gml_array_check_index(0,gmla)]);gmlt2=gml_Script_s_get_competition_winner(_inst,_other,gmla[__yy_gml_array_check_index(1,gmla)]); gmltr=(yyfgreaterequal(yyInst(_inst,_other,gmlt1).gmlrank_pts,yyInst(_inst,_other,gmlt2).gmlrank_pts)?gmlt1:gmlt2);gml_Script_s_competition_pool_add_team(_inst,_other,argument0,gmltr);break;}case 1:{var gmli=0;for(;yyfless(gmli,array_length(gmla));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmltr=gml_Script_s_get_competition_winner(_inst,_other,gmla[__yy_gml_array_check_index(gmli,gmla)]);gml_Script_s_competition_pool_add_team(_inst, _other,argument0,gmltr);}};break;}case 2:{var gmli=0;for(;yyfless(gmli,array_length(gmla));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gml_Script_s_competition_pool_exclude_teams(_inst,_other,argument0,gmla[__yy_gml_array_check_index(gmli,gmla)]);}};break;}case 3:{gml_Script_s_competition_pool_fill_from_rankings(_inst,_other,argument0);break;}};}}function gml_Script_s_get_competition_winner(_inst,_other,argument0){{var gmlcomp=gml_Script_s_get_competition(_inst, _other,argument0);gml_Script_s_competition_update_standings(_inst,_other,yyInst(_inst,_other,gmlcomp).gmlconference,yyInst(_inst,_other,gmlcomp).gmldivision);if((yyGetBool(is_undefined(yyInst(_inst,_other,gmlcomp).gmlstandings)))||(yyGetBool(!yyGetBool(is_array(yyInst(_inst,_other,gmlcomp).gmlstandings))))){return(-4);};return yyInst(_inst,_other,gmlcomp).gmlstandings[__yy_gml_array_check_index(0,yyInst(_inst,_other,gmlcomp).gmlstandings)];}}function gml_Script_s_competition_pool_fill_from_rankings(_inst, _other,argument0){{var gmltd;var gmlcount=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,argument0).gmlnum),__yy_gml_errCheck(array_length(yyInst(_inst,_other,argument0).gmllist)));var gmli=0;for(;yyfless(gmli,array_length(yyInst(_inst,_other,argument0).gmlrankings));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{if(yyflessequal(gmlcount,0)){return;};gmltd=yyInst(_inst,_other,argument0).gmlrankings[__yy_gml_array_check_index(gmli,yyInst(_inst, _other,argument0).gmlrankings)];if(!yyGetBool(yyInst(_inst,_other,gmltd).gmlseeded)){{gml_Script_s_competition_pool_add_team(_inst,_other,argument0,gmltd);(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.subtract(1):--gmlcount),g_yyPrePostObject__);};};}};}}function gml_Script_s_competition_pool_exclude_teams(_inst,_other,argument0,argument1){{argument1=real(argument1);var gmltd,gmlcomp;var gmli=0;for(;yyfless(gmli,array_length(yyInst(_inst,_other,argument0).gmlrankings)); (g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmltd=yyInst(_inst,_other,argument0).gmlrankings[__yy_gml_array_check_index(gmli,yyInst(_inst,_other,argument0).gmlrankings)];if(yyGetBool(yyInst(_inst,_other,gmltd).gmlseeded)){continue;};gmlcomp=gml_Script_s_get_competition_by_conference_division(_inst,_other,ds_map_find_value(yyInst(_inst,_other,gmltd).gmlteam,"conference"),ds_map_find_value(yyInst(_inst,_other,gmltd).gmlteam,"division")); if(yyfequal(yyInst(_inst,_other,gmlcomp).gmluid,argument1)){{gml_Script_slogf(_inst,_other,"exclude: %1 in %2:%3",yyInst(_inst,_other,gmltd).gmlname,yyInst(_inst,_other,gmltd).gmlcnf_id,yyInst(_inst,_other,gmltd).gmldiv_id);yyInst(_inst,_other,gmltd).gmlseeded=true;};};}};}}function gml_Script_s_competition_pool_add_team(_inst,_other,argument0,argument1){{gml_Script_s_competition_pool_rankings_exclude(_inst,_other,yyInst(_inst,_other,argument0).gmlrankings,yyInst(_inst,_other,argument1).gmluid);array_push(yyInst(_inst, _other,argument0).gmllist,argument1);gml_Script_slogf(_inst,_other,yyInst(_inst,_other,argument1).gmlname);}}function gml_Script_s_competition_pool_rankings_exclude(_inst,_other,argument0,argument1){{var gmli=0;for(;yyfless(gmli,array_length(argument0));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{if(yyfequal(yyInst(_inst,_other,argument0[__yy_gml_array_check_index(gmli,argument0)]).gmluid,argument1)){{yyInst(_inst,_other,argument0[__yy_gml_array_check_index(gmli, argument0)]).gmlseeded=true;};};}};}}function gml_Script____struct___103_s_get_tagged_source_gml_GlobalScript_s_college_competitions_seeding(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___103_s_get_tagged_source_gml_GlobalScript_s_college_competitions_seeding";}if(gml_Script____struct___103_s_get_tagged_source_gml_GlobalScript_s_college_competitions_seeding.prototype.__type===undefined){gml_Script____struct___103_s_get_tagged_source_gml_GlobalScript_s_college_competitions_seeding.prototype.__type="gml_Script____struct___103_s_get_tagged_source_gml_GlobalScript_s_college_competitions_seeding"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___103_s_get_tagged_source_gml_GlobalScript_s_college_competitions_seeding.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltag=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlsource=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlkey=$$args[__yy_gml_array_check_index(2+(2),$$args)];}}}}function gml_Script_s_get_tagged_source(_inst,_other,argument0){{if((yyGetBool(yyfequal(argument0, (-4))))||(yyGetBool(yyfequal(argument0,"")))){return(-4);};var gmlts=string_split(argument0,":");return __yy_gml_object_create(_inst,(_inst.gml___struct___103=__yy_method(_inst,gml_Script____struct___103_s_get_tagged_source_gml_GlobalScript_s_college_competitions_seeding)),gmlts[__yy_gml_array_check_index(0,gmlts)],gmlts[__yy_gml_array_check_index(1,gmlts)],(yyfgreater(array_length(gmlts),2)?gmlts[__yy_gml_array_check_index(2,gmlts)]:(-4)));}}function gml_Script_s_get_pool_position(_inst,_other,argument0, argument1){{if(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_postseason)){return(-1);};var gmlcomp=gml_Script_s_get_competition(_inst,_other,ds_map_find_value(argument1,"cid"));if(!yyGetBool(is_array(yyInst(_inst,_other,gmlcomp).gmlpool))){yyInst(_inst,_other,gmlcomp).gmlpool=gml_Script_s_get_competition_pool(_inst,_other,yyInst(_inst,_other,gmlcomp).gmlpool_cfg);};gml_Script_slogf(_inst,_other,"get pool position %1",argument0); argument0=yyfminus(__yy_gml_errCheck(real(argument0)),1);if((yyGetBool(is_array(yyInst(_inst,_other,gmlcomp).gmlpool)))&&(yyGetBool(yyfless(argument0,array_length(yyInst(_inst,_other,gmlcomp).gmlpool))))){return yyInst(_inst,_other,yyInst(_inst,_other,gmlcomp).gmlpool[__yy_gml_array_check_index(argument0,yyInst(_inst,_other,gmlcomp).gmlpool)]).gmluid;};return(-1);}}function gml_Script_s_competitions_debug_printout(_inst,_other){{var gmlfix,gmlcid,gmlat,gmlht;gml_Script_slogf(_inst,_other,"\n*** BOWLS"); var gmlf=0;for(;yyfless(gmlf,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlschedule));(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf),g_yyPrePostObject__)){{gmlfix=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlschedule,gmlf);gmlcid=ds_map_find_value(gmlfix,"cid");gmlat=ds_map_find_value(gmlfix,"away_team");gmlht=ds_map_find_value(gmlfix,"home_team");if((yyGetBool(!yyGetBool(is_undefined(gmlcid))))&&(yyGetBool(yyfnotequal(gmlcid, (-4))))&&(yyGetBool(yyfless(gmlcid,6000)))&&(yyGetBool(yyfnotequal(gmlcid,4000)))){{gml_Script_slogf(_inst,_other,"cid: %1 at: %2 ht: %3",gmlcid,gmlat,gmlht);};};}};}}function gml_GlobalScript_s_get_achievement(_inst,_other){}function gml_GlobalScript_s_count_achievement(_inst,_other){}function gml_GlobalScript_s_get_achievement_percentage(_inst,_other){}function gml_GlobalScript_s_complete_achievement(_inst,_other){}function gml_GlobalScript_s_sort_retrobowl_list(_inst,_other,argument0){(_inst.gmls_sort_retrobowl_list=__yy_method(_inst, gml_Script_s_sort_retrobowl_list));}function gml_Script_s_sort_retrobowl_list(_inst,_other,argument0){{gml_Script_slog(_inst,_other,"s_sort_retrobowl_list");var gmlplist=argument0;var gmlsortedlist=ds_list_create();while(yyfgreater(ds_list_size(gmlplist),0)){{var gmlbest=(-4);var gmlbestcount=0;var gmli=0;for(;yyfless(gmli,ds_list_size(gmlplist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(gmlplist,gmli);var gmlcount=real(ds_map_find_value(gmlpmap, "count"));if((yyGetBool(!yyGetBool(gmlbest)))||(yyGetBool(yyfgreater(gmlcount,gmlbestcount)))){{gmlbest=gmlpmap;gmlbestcount=gmlcount;};};}};ds_list_add(gmlsortedlist,gmlbest);var gmli=ds_list_find_index(gmlplist,gmlbest);ds_list_delete(gmlplist,gmli);}};ds_list_destroy(gmlplist);gmlplist=(-1);return gmlsortedlist;}}function gml_GlobalScript_s_sort_retrobowl_history_list(_inst,_other){(_inst.gmls_sort_retrobowl_history_list=__yy_method(_inst,gml_Script_s_sort_retrobowl_history_list));}function gml_Script_s_sort_retrobowl_history_list(_inst, _other,argument0){{gml_Script_slog(_inst,_other,"s_sort_retrobowl_winners_list");var gmlsortedlist=ds_list_create();while(yyfgreater(ds_list_size(argument0),0)){{var gmlbest=(-4);var gmlbestcount=0;var gmli=0;for(;yyfless(gmli,ds_list_size(argument0));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(argument0,gmli);if(!yyGetBool(ds_map_exists(gmlpmap,"year"))){ds_map_set(gmlpmap,"year",0);};var gmlyear=real(ds_map_find_value(gmlpmap, "year"));if((yyGetBool(!yyGetBool(gmlbest)))||(yyGetBool(yyfless(gmlyear,gmlbestcount)))){{gmlbest=gmlpmap;gmlbestcount=gmlyear;};};}};ds_list_add(gmlsortedlist,gmlbest);var gmli=ds_list_find_index(argument0,gmlbest);ds_list_delete(argument0,gmli);}};ds_list_destroy(argument0);argument0=(-1);return gmlsortedlist;}}function gml_GlobalScript_btn_click_EditAFC(_inst,_other){(_inst.gmlbtn_click_EditAFC=__yy_method(_inst,gml_Script_btn_click_EditAFC));}function gml_Script_btn_click_EditAFC(_inst,_other){ {yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmledit_conf=0;{var __yy__v204=GetWithArray(YYASSET_REF(0x00000081));for(var __yy__v205 in __yy__v204){if(!__yy__v204.hasOwnProperty(__yy__v205))continue;var __yy__v206=__yy__v204[__yy__v205];gml_Script_s_update_team_edit_buttons(__yy__v206,_inst);}};}}function gml_GlobalScript_btn_click_EditNFC(_inst,_other){(_inst.gmlbtn_click_EditNFC=__yy_method(_inst,gml_Script_btn_click_EditNFC));}function gml_Script_btn_click_EditNFC(_inst,_other){{yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmledit_conf=1;{var __yy__v207=GetWithArray(YYASSET_REF(0x00000081));for(var __yy__v208 in __yy__v207){if(!__yy__v207.hasOwnProperty(__yy__v208))continue;var __yy__v209=__yy__v207[__yy__v208];gml_Script_s_update_team_edit_buttons(__yy__v209,_inst);}};}}function gml_GlobalScript_btn_click_EditTeam(_inst,_other){(_inst.gmlbtn_click_EditTeam=__yy_method(_inst,gml_Script_btn_click_EditTeam));}function gml_Script_btn_click_EditTeam(_inst,_other){{var gmlchoose_teamuid=_inst.gmluid;{var __yy__v210=GetWithArray(YYASSET_REF(0x00000062)); for(var __yy__v211 in __yy__v210){if(!__yy__v210.hasOwnProperty(__yy__v211))continue;var __yy__v212=__yy__v210[__yy__v211];{var gmlt=0;for(;yyfless(gmlt,ds_list_size(__yy__v212.gmlteamlist));(g_yyPrePostObject__=gmlt,gmlt=(g_yyPrePostObject__ instanceof Long?gmlt.add(1):++gmlt),g_yyPrePostObject__)){{var gmlteam=ds_list_find_value(__yy__v212.gmlteamlist,gmlt);if(yyfequal(real(ds_map_find_value(gmlteam,"uid")),gmlchoose_teamuid)){{__yy__v212.gmledit_team=gmlteam;};};}};}}};room_goto(YYASSET_REF(0x03000006)); }}function gml_GlobalScript_s_round_to_decimal(_inst,_other){(_inst.gmls_round_to_decimal=__yy_method(_inst,gml_Script_s_round_to_decimal));}function gml_Script_s_round_to_decimal(_inst,_other,argument0,argument1){{var gmlmult=power(10,argument1);return yyfdivide(__yy_gml_errCheck(floor(yyftime(__yy_gml_errCheck(argument0),__yy_gml_errCheck(gmlmult)))),__yy_gml_errCheck(gmlmult));}}function gml_GlobalScript_btn_click_TeamEditCancel(_inst,_other){(_inst.gmlbtn_click_TeamEditCancel=__yy_method(_inst,gml_Script_btn_click_TeamEditCancel)); }function gml_Script_btn_click_TeamEditCancel(_inst,_other){{gml_Script_s_goto_editor(_inst,_other);}}function gml_GlobalScript_btn_click_TeamEditDone(_inst,_other){(_inst.gmlbtn_click_TeamEditDone=__yy_method(_inst,gml_Script_btn_click_TeamEditDone));}function gml_Script_btn_click_TeamEditDone(_inst,_other){{{var __yy__v213=GetWithArray(YYASSET_REF(0x00000082));for(var __yy__v214 in __yy__v213){if(!__yy__v213.hasOwnProperty(__yy__v214))continue;var __yy__v215=__yy__v213[__yy__v214];{gml_Script_s_update_uniform_name(__yy__v215, _inst);ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmledit_team,"name",yyInst(_inst,_other,__yy__v215.gmlcurrent_uni).gmlname);ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmledit_team,"tla",yyInst(_inst,_other,__yy__v215.gmlcurrent_uni).gmltla);ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmledit_team,"rainfall",yyInst(_inst,_other,__yy__v215.gmlcurrent_uni).gmlrainfall);ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmledit_team,"snowfall",yyInst(_inst, _other,__yy__v215.gmlcurrent_uni).gmlsnowfall);ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmledit_team,"roof",yyInst(_inst,_other,__yy__v215.gmlcurrent_uni).gmlroof);gml_Script_s_save_uniform_file2(__yy__v215,_inst,__yy__v215.gmluid,__yy__v215.gmlcurrent_uni,__yy__v215.gmlkittype);gml_Script_s_savegame(__yy__v215,_inst);}}};gml_Script_s_goto_editor(_inst,_other);}}function gml_GlobalScript_btn_click_TeamEditRestore(_inst,_other){(_inst.gmlbtn_click_TeamEditRestore=__yy_method(_inst,gml_Script_btn_click_TeamEditRestore)); }function gml_Script_btn_click_TeamEditRestore(_inst,_other){{{var __yy__v216=GetWithArray(YYASSET_REF(0x00000082));for(var __yy__v217 in __yy__v216){if(!__yy__v216.hasOwnProperty(__yy__v217))continue;var __yy__v218=__yy__v216[__yy__v217];{gml_Script_s_load_uniform_file2(__yy__v218,_inst,__yy__v218.gmluid,__yy__v218.gmlcurrent_uni,__yy__v218.gmlkittype,gml_Script_s_uniforms_default_file(__yy__v218,_inst));gml_Script_s_set_up_edit_screen(__yy__v218,_inst);}}};}}function gml_GlobalScript_btn_click_InputHelmet(_inst, _other){(_inst.gmlbtn_click_InputHelmet=__yy_method(_inst,gml_Script_btn_click_InputHelmet));}function gml_Script_btn_click_InputHelmet(_inst,_other){{var gmlnew_hexcol=gml_Script_s_format_hex_color(_inst,_other,_inst.gmltext);{var __yy__v219=GetWithArray(YYASSET_REF(0x00000082));for(var __yy__v220 in __yy__v219){if(!__yy__v219.hasOwnProperty(__yy__v220))continue;var __yy__v221=__yy__v219[__yy__v220];{yyInst(_inst,_other,__yy__v221.gmlcurrent_uni).gmlhex_helmet=gmlnew_hexcol;gml_Script_s_convert_uniform_colours_all(__yy__v221, _inst,__yy__v221.gmlcurrent_uni);gml_Script_s_set_up_edit_screen(__yy__v221,_inst);}}};}}function gml_GlobalScript_btn_click_InputLogo(_inst,_other){(_inst.gmlbtn_click_InputLogo=__yy_method(_inst,gml_Script_btn_click_InputLogo));}function gml_Script_btn_click_InputLogo(_inst,_other){{var gmlnew_hexcol=gml_Script_s_format_hex_color(_inst,_other,_inst.gmltext);{var __yy__v222=GetWithArray(YYASSET_REF(0x00000082));for(var __yy__v223 in __yy__v222){if(!__yy__v222.hasOwnProperty(__yy__v223))continue;var __yy__v224=__yy__v222[__yy__v223]; {yyInst(_inst,_other,__yy__v224.gmlcurrent_uni).gmlhex_logo=gmlnew_hexcol;gml_Script_s_convert_uniform_colours_all(__yy__v224,_inst,__yy__v224.gmlcurrent_uni);gml_Script_s_set_up_edit_screen(__yy__v224,_inst);}}};}}function gml_GlobalScript_btn_click_InputShirt(_inst,_other){(_inst.gmlbtn_click_InputShirt=__yy_method(_inst,gml_Script_btn_click_InputShirt));}function gml_Script_btn_click_InputShirt(_inst,_other){{var gmlnew_hexcol=gml_Script_s_format_hex_color(_inst,_other,_inst.gmltext);{var __yy__v225=GetWithArray(YYASSET_REF(0x00000082)); for(var __yy__v226 in __yy__v225){if(!__yy__v225.hasOwnProperty(__yy__v226))continue;var __yy__v227=__yy__v225[__yy__v226];{yyInst(_inst,_other,__yy__v227.gmlcurrent_uni).gmlhex_shirt=gmlnew_hexcol;gml_Script_s_convert_uniform_colours_all(__yy__v227,_inst,__yy__v227.gmlcurrent_uni);gml_Script_s_set_up_edit_screen(__yy__v227,_inst);}}};}}function gml_GlobalScript_btn_click_InputSleeve(_inst,_other){(_inst.gmlbtn_click_InputSleeve=__yy_method(_inst,gml_Script_btn_click_InputSleeve));}function gml_Script_btn_click_InputSleeve(_inst, _other){{var gmlnew_hexcol=gml_Script_s_format_hex_color(_inst,_other,_inst.gmltext);{var __yy__v228=GetWithArray(YYASSET_REF(0x00000082));for(var __yy__v229 in __yy__v228){if(!__yy__v228.hasOwnProperty(__yy__v229))continue;var __yy__v230=__yy__v228[__yy__v229];{yyInst(_inst,_other,__yy__v230.gmlcurrent_uni).gmlhex_sleeve=gmlnew_hexcol;gml_Script_s_convert_uniform_colours_all(__yy__v230,_inst,__yy__v230.gmlcurrent_uni);gml_Script_s_set_up_edit_screen(__yy__v230,_inst);}}};}}function gml_GlobalScript_btn_click_InputPants(_inst, _other){(_inst.gmlbtn_click_InputPants=__yy_method(_inst,gml_Script_btn_click_InputPants));}function gml_Script_btn_click_InputPants(_inst,_other){{var gmlnew_hexcol=gml_Script_s_format_hex_color(_inst,_other,_inst.gmltext);{var __yy__v231=GetWithArray(YYASSET_REF(0x00000082));for(var __yy__v232 in __yy__v231){if(!__yy__v231.hasOwnProperty(__yy__v232))continue;var __yy__v233=__yy__v231[__yy__v232];{yyInst(_inst,_other,__yy__v233.gmlcurrent_uni).gmlhex_pants=gmlnew_hexcol;gml_Script_s_convert_uniform_colours_all(__yy__v233, _inst,__yy__v233.gmlcurrent_uni);gml_Script_s_set_up_edit_screen(__yy__v233,_inst);}}};}}function gml_GlobalScript_btn_click_InputStripe(_inst,_other){(_inst.gmlbtn_click_InputStripe=__yy_method(_inst,gml_Script_btn_click_InputStripe));}function gml_Script_btn_click_InputStripe(_inst,_other){{var gmlnew_hexcol=gml_Script_s_format_hex_color(_inst,_other,_inst.gmltext);{var __yy__v234=GetWithArray(YYASSET_REF(0x00000082));for(var __yy__v235 in __yy__v234){if(!__yy__v234.hasOwnProperty(__yy__v235))continue; var __yy__v236=__yy__v234[__yy__v235];{yyInst(_inst,_other,__yy__v236.gmlcurrent_uni).gmlhex_stripe=gmlnew_hexcol;gml_Script_s_convert_uniform_colours_all(__yy__v236,_inst,__yy__v236.gmlcurrent_uni);gml_Script_s_set_up_edit_screen(__yy__v236,_inst);}}};}}function gml_GlobalScript_btn_click_InputSocks1(_inst,_other){(_inst.gmlbtn_click_InputSocks1=__yy_method(_inst,gml_Script_btn_click_InputSocks1));}function gml_Script_btn_click_InputSocks1(_inst,_other){{var gmlnew_hexcol=gml_Script_s_format_hex_color(_inst, _other,_inst.gmltext);{var __yy__v237=GetWithArray(YYASSET_REF(0x00000082));for(var __yy__v238 in __yy__v237){if(!__yy__v237.hasOwnProperty(__yy__v238))continue;var __yy__v239=__yy__v237[__yy__v238];{yyInst(_inst,_other,__yy__v239.gmlcurrent_uni).gmlhex_socks1=gmlnew_hexcol;gml_Script_s_convert_uniform_colours_all(__yy__v239,_inst,__yy__v239.gmlcurrent_uni);gml_Script_s_set_up_edit_screen(__yy__v239,_inst);}}};}}function gml_GlobalScript_btn_click_InputSocks2(_inst,_other){(_inst.gmlbtn_click_InputSocks2=__yy_method(_inst, gml_Script_btn_click_InputSocks2));}function gml_Script_btn_click_InputSocks2(_inst,_other){{var gmlnew_hexcol=gml_Script_s_format_hex_color(_inst,_other,_inst.gmltext);{var __yy__v240=GetWithArray(YYASSET_REF(0x00000082));for(var __yy__v241 in __yy__v240){if(!__yy__v240.hasOwnProperty(__yy__v241))continue;var __yy__v242=__yy__v240[__yy__v241];{yyInst(_inst,_other,__yy__v242.gmlcurrent_uni).gmlhex_socks2=gmlnew_hexcol;gml_Script_s_convert_uniform_colours_all(__yy__v242,_inst,__yy__v242.gmlcurrent_uni); gml_Script_s_set_up_edit_screen(__yy__v242,_inst);}}};}}function gml_GlobalScript_btn_click_InputEndzone(_inst,_other){(_inst.gmlbtn_click_InputEndzone=__yy_method(_inst,gml_Script_btn_click_InputEndzone));}function gml_Script_btn_click_InputEndzone(_inst,_other){{var gmlnew_hexcol=gml_Script_s_format_hex_color(_inst,_other,_inst.gmltext);{var __yy__v243=GetWithArray(YYASSET_REF(0x00000082));for(var __yy__v244 in __yy__v243){if(!__yy__v243.hasOwnProperty(__yy__v244))continue;var __yy__v245=__yy__v243[__yy__v244]; {yyInst(_inst,_other,__yy__v245.gmlcurrent_uni).gmlhex_endzone=gmlnew_hexcol;gml_Script_s_convert_uniform_colours_all(__yy__v245,_inst,__yy__v245.gmlcurrent_uni);gml_Script_s_set_up_edit_screen(__yy__v245,_inst);}}};}}function gml_GlobalScript_btn_click_EditHelmet(_inst,_other){(_inst.gmlbtn_click_EditHelmet=__yy_method(_inst,gml_Script_btn_click_EditHelmet));}function gml_Script_btn_click_EditHelmet(_inst,_other){{{var __yy__v246=GetWithArray(YYASSET_REF(0x00000082));for(var __yy__v247 in __yy__v246){ if(!__yy__v246.hasOwnProperty(__yy__v247))continue;var __yy__v248=__yy__v246[__yy__v247];{__yy__v248.gmlnewpick=0;gml_Script_s_color_picker(__yy__v248,_inst);}}};}}function gml_GlobalScript_btn_click_EditLogo(_inst,_other){(_inst.gmlbtn_click_EditLogo=__yy_method(_inst,gml_Script_btn_click_EditLogo));}function gml_Script_btn_click_EditLogo(_inst,_other){{{var __yy__v249=GetWithArray(YYASSET_REF(0x00000082));for(var __yy__v250 in __yy__v249){if(!__yy__v249.hasOwnProperty(__yy__v250))continue;var __yy__v251=__yy__v249[__yy__v250]; {__yy__v251.gmlnewpick=1;gml_Script_s_color_picker(__yy__v251,_inst);}}};}}function gml_GlobalScript_btn_click_EditShirt(_inst,_other){(_inst.gmlbtn_click_EditShirt=__yy_method(_inst,gml_Script_btn_click_EditShirt));}function gml_Script_btn_click_EditShirt(_inst,_other){{{var __yy__v252=GetWithArray(YYASSET_REF(0x00000082));for(var __yy__v253 in __yy__v252){if(!__yy__v252.hasOwnProperty(__yy__v253))continue;var __yy__v254=__yy__v252[__yy__v253];{__yy__v254.gmlnewpick=2;gml_Script_s_color_picker(__yy__v254, _inst);}}};}}function gml_GlobalScript_btn_click_EditSleeve(_inst,_other){(_inst.gmlbtn_click_EditSleeve=__yy_method(_inst,gml_Script_btn_click_EditSleeve));}function gml_Script_btn_click_EditSleeve(_inst,_other){{{var __yy__v255=GetWithArray(YYASSET_REF(0x00000082));for(var __yy__v256 in __yy__v255){if(!__yy__v255.hasOwnProperty(__yy__v256))continue;var __yy__v257=__yy__v255[__yy__v256];{__yy__v257.gmlnewpick=3;gml_Script_s_color_picker(__yy__v257,_inst);}}};}}function gml_GlobalScript_btn_click_EditPants(_inst, _other){(_inst.gmlbtn_click_EditPants=__yy_method(_inst,gml_Script_btn_click_EditPants));}function gml_Script_btn_click_EditPants(_inst,_other){{{var __yy__v258=GetWithArray(YYASSET_REF(0x00000082));for(var __yy__v259 in __yy__v258){if(!__yy__v258.hasOwnProperty(__yy__v259))continue;var __yy__v260=__yy__v258[__yy__v259];{__yy__v260.gmlnewpick=4;gml_Script_s_color_picker(__yy__v260,_inst);}}};}}function gml_GlobalScript_btn_click_EditStripe(_inst,_other){(_inst.gmlbtn_click_EditStripe=__yy_method(_inst, gml_Script_btn_click_EditStripe));}function gml_Script_btn_click_EditStripe(_inst,_other){{{var __yy__v261=GetWithArray(YYASSET_REF(0x00000082));for(var __yy__v262 in __yy__v261){if(!__yy__v261.hasOwnProperty(__yy__v262))continue;var __yy__v263=__yy__v261[__yy__v262];{__yy__v263.gmlnewpick=5;gml_Script_s_color_picker(__yy__v263,_inst);}}};}}function gml_GlobalScript_btn_click_EditSocks1(_inst,_other){(_inst.gmlbtn_click_EditSocks1=__yy_method(_inst,gml_Script_btn_click_EditSocks1));}function gml_Script_btn_click_EditSocks1(_inst, _other){{{var __yy__v264=GetWithArray(YYASSET_REF(0x00000082));for(var __yy__v265 in __yy__v264){if(!__yy__v264.hasOwnProperty(__yy__v265))continue;var __yy__v266=__yy__v264[__yy__v265];{__yy__v266.gmlnewpick=6;gml_Script_s_color_picker(__yy__v266,_inst);}}};}}function gml_GlobalScript_btn_click_EditSocks2(_inst,_other){(_inst.gmlbtn_click_EditSocks2=__yy_method(_inst,gml_Script_btn_click_EditSocks2));}function gml_Script_btn_click_EditSocks2(_inst,_other){{{var __yy__v267=GetWithArray(YYASSET_REF(0x00000082)); for(var __yy__v268 in __yy__v267){if(!__yy__v267.hasOwnProperty(__yy__v268))continue;var __yy__v269=__yy__v267[__yy__v268];{__yy__v269.gmlnewpick=7;gml_Script_s_color_picker(__yy__v269,_inst);}}};}}function gml_GlobalScript_btn_click_EditEndzone(_inst,_other){(_inst.gmlbtn_click_EditEndzone=__yy_method(_inst,gml_Script_btn_click_EditEndzone));}function gml_Script_btn_click_EditEndzone(_inst,_other){{{var __yy__v270=GetWithArray(YYASSET_REF(0x00000082));for(var __yy__v271 in __yy__v270){if(!__yy__v270.hasOwnProperty(__yy__v271))continue; var __yy__v272=__yy__v270[__yy__v271];{__yy__v272.gmlnewpick=8;gml_Script_s_color_picker(__yy__v272,_inst);}}};}}function gml_GlobalScript_btn_click_Kit1(_inst,_other){(_inst.gmlbtn_click_Kit1=__yy_method(_inst,gml_Script_btn_click_Kit1));}function gml_Script_btn_click_Kit1(_inst,_other){{{var __yy__v273=GetWithArray(YYASSET_REF(0x00000082));for(var __yy__v274 in __yy__v273){if(!__yy__v273.hasOwnProperty(__yy__v274))continue;var __yy__v275=__yy__v273[__yy__v274];{gml_Script_s_save_uniform_file2(__yy__v275, _inst,__yy__v275.gmluid,__yy__v275.gmlcurrent_uni,__yy__v275.gmlkittype);__yy__v275.gmlkittype=0;__yy__v275.gmlcurrent_uni=100115;gml_Script_s_set_up_edit_screen(__yy__v275,_inst);}}};}}function gml_GlobalScript_btn_click_Kit2(_inst,_other){(_inst.gmlbtn_click_Kit2=__yy_method(_inst,gml_Script_btn_click_Kit2));}function gml_Script_btn_click_Kit2(_inst,_other){{{var __yy__v276=GetWithArray(YYASSET_REF(0x00000082));for(var __yy__v277 in __yy__v276){if(!__yy__v276.hasOwnProperty(__yy__v277))continue;var __yy__v278=__yy__v276[__yy__v277]; {gml_Script_s_save_uniform_file2(__yy__v278,_inst,__yy__v278.gmluid,__yy__v278.gmlcurrent_uni,__yy__v278.gmlkittype);__yy__v278.gmlkittype=1;__yy__v278.gmlcurrent_uni=100116;gml_Script_s_set_up_edit_screen(__yy__v278,_inst);}}};}}function gml_GlobalScript_btn_click_Kit3(_inst,_other){(_inst.gmlbtn_click_Kit3=__yy_method(_inst,gml_Script_btn_click_Kit3));}function gml_Script_btn_click_Kit3(_inst,_other){{{var __yy__v279=GetWithArray(YYASSET_REF(0x00000082));for(var __yy__v280 in __yy__v279){if(!__yy__v279.hasOwnProperty(__yy__v280))continue; var __yy__v281=__yy__v279[__yy__v280];{gml_Script_s_save_uniform_file2(__yy__v281,_inst,__yy__v281.gmluid,__yy__v281.gmlcurrent_uni,__yy__v281.gmlkittype);__yy__v281.gmlkittype=2;__yy__v281.gmlcurrent_uni=100118;gml_Script_s_set_up_edit_screen(__yy__v281,_inst);}}};}}function gml_GlobalScript_btn_click_Kit4(_inst,_other){(_inst.gmlbtn_click_Kit4=__yy_method(_inst,gml_Script_btn_click_Kit4));}function gml_Script_btn_click_Kit4(_inst,_other){{{var __yy__v282=GetWithArray(YYASSET_REF(0x00000082));for(var __yy__v283 in __yy__v282){ if(!__yy__v282.hasOwnProperty(__yy__v283))continue;var __yy__v284=__yy__v282[__yy__v283];{gml_Script_s_save_uniform_file2(__yy__v284,_inst,__yy__v284.gmluid,__yy__v284.gmlcurrent_uni,__yy__v284.gmlkittype);__yy__v284.gmlkittype=3;__yy__v284.gmlcurrent_uni=100119;gml_Script_s_set_up_edit_screen(__yy__v284,_inst);}}};}}function gml_GlobalScript_btn_click_RestoreAllTeams(_inst,_other){(_inst.gmlbtn_click_RestoreAllTeams=__yy_method(_inst,gml_Script_btn_click_RestoreAllTeams));}function gml_Script_btn_click_RestoreAllTeams(_inst, _other){{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_RestoreAllTeams"),gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Confirm"),kgml_Script_s_msg_clear,kgml_Script_s_restore_uniforms_all,global.gmlc_background,1);}}function gml_GlobalScript_btn_click_KR_Select(_inst,_other){(_inst.gmlbtn_click_KR_Select=__yy_method(_inst,gml_Script_btn_click_KR_Select));}function gml_Script_btn_click_KR_Select(_inst,_other){{{var __yy__v285=GetWithArray(YYASSET_REF(0x0000004F)); for(var __yy__v286 in __yy__v285){if(!__yy__v285.hasOwnProperty(__yy__v286))continue;var __yy__v287=__yy__v285[__yy__v286];return;}};if(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltag_kr_message_done,2)){{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_TagMessageKR"),"",gml_Script_s_str(_inst,_other,"ui_Continue"),kgml_Script_s_msg_clear,kgml_Script_s_msg_clear,global.gmlc_background,1);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltag_kr_message_done=2;} ;};var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster,gmli);ds_map_set(gmlpmap,"kr",0);}};_inst.gmlselected=!yyGetBool(_inst.gmlselected);ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"kr",_inst.gmlselected);if(yyGetBool(_inst.gmlselected)){ ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_kickoffs",1);};}}function gml_GlobalScript_btn_click_EditCopySlotA(_inst,_other){(_inst.gmlbtn_click_EditCopySlotA=__yy_method(_inst,gml_Script_btn_click_EditCopySlotA));}function gml_Script_btn_click_EditCopySlotA(_inst,_other){{var gmlstr=gml_Script_s_str(_inst,_other,"msg_CopyUniforms");gmlstr=string_replace(gmlstr,"$num",1);gml_Script_s_create_message(_inst,_other,"",gmlstr,gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst, _other,"ui_Confirm"),kgml_Script_s_msg_clear,kgml_Script_s_copy_uniforms_slot_a,global.gmlc_background,1);}}function gml_GlobalScript_s_sound_audience_inc(_inst,_other){(_inst.gmls_sound_audience_inc=__yy_method(_inst,gml_Script_s_sound_audience_inc));}function gml_Script_s_sound_audience_inc(_inst,_other){{if((yyGetBool(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))))||(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice))){ return;};var gmlsnd=audio_play_sound(YYASSET_REF(0x02000001),1,false);audio_sound_pitch(gmlsnd,random_range(0.9,1));audio_sound_gain(gmlsnd,0.5,0);}}function gml_GlobalScript_btn_click_EditCopySlotB(_inst,_other){(_inst.gmlbtn_click_EditCopySlotB=__yy_method(_inst,gml_Script_btn_click_EditCopySlotB));}function gml_Script_btn_click_EditCopySlotB(_inst,_other){{var gmlstr=gml_Script_s_str(_inst,_other,"msg_CopyUniforms");gmlstr=string_replace(gmlstr,"$num",2);gml_Script_s_create_message(_inst,_other,"", gmlstr,gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Confirm"),kgml_Script_s_msg_clear,kgml_Script_s_copy_uniforms_slot_b,global.gmlc_background,1);}}function gml_GlobalScript_btn_click_EditCopySlotC(_inst,_other){(_inst.gmlbtn_click_EditCopySlotC=__yy_method(_inst,gml_Script_btn_click_EditCopySlotC));}function gml_Script_btn_click_EditCopySlotC(_inst,_other){{var gmlstr=gml_Script_s_str(_inst,_other,"msg_CopyUniforms");gmlstr=string_replace(gmlstr,"$num",3);gml_Script_s_create_message(_inst, _other,"",gmlstr,gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Confirm"),kgml_Script_s_msg_clear,kgml_Script_s_copy_uniforms_slot_c,global.gmlc_background,1);}}function gml_GlobalScript_btn_click_EditCopySlotD(_inst,_other){(_inst.gmlbtn_click_EditCopySlotD=__yy_method(_inst,gml_Script_btn_click_EditCopySlotD));}function gml_Script_btn_click_EditCopySlotD(_inst,_other){{var gmlstr=gml_Script_s_str(_inst,_other,"msg_CopyUniforms");gmlstr=string_replace(gmlstr,"$num",4); gml_Script_s_create_message(_inst,_other,"",gmlstr,gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Confirm"),kgml_Script_s_msg_clear,kgml_Script_s_copy_uniforms_slot_d,global.gmlc_background,1);}}function gml_GlobalScript_btn_click_EditCopySlotE(_inst,_other){(_inst.gmlbtn_click_EditCopySlotE=__yy_method(_inst,gml_Script_btn_click_EditCopySlotE));}function gml_Script_btn_click_EditCopySlotE(_inst,_other){{var gmlstr=gml_Script_s_str(_inst,_other,"msg_CopyUniforms");gmlstr=string_replace(gmlstr, "$num",5);gml_Script_s_create_message(_inst,_other,"",gmlstr,gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Confirm"),kgml_Script_s_msg_clear,kgml_Script_s_copy_uniforms_slot_e,global.gmlc_background,1);}}function gml_GlobalScript_btn_click_TeamEditMore(_inst,_other){(_inst.gmlbtn_click_TeamEditMore=__yy_method(_inst,gml_Script_btn_click_TeamEditMore));}function gml_Script_btn_click_TeamEditMore(_inst,_other){{layer_set_visible(layer_get_id("Instances_Details1"),false); layer_set_visible(layer_get_id("Instances_Details2"),true);}}function gml_GlobalScript_btn_click_TeamEditMoreDone(_inst,_other){(_inst.gmlbtn_click_TeamEditMoreDone=__yy_method(_inst,gml_Script_btn_click_TeamEditMoreDone));}function gml_Script_btn_click_TeamEditMoreDone(_inst,_other){{layer_set_visible(layer_get_id("Instances_Details1"),true);layer_set_visible(layer_get_id("Instances_Details2"),false);}}function gml_GlobalScript_btn_click_FacilityStadium(_inst,_other){(_inst.gmlbtn_click_FacilityStadium=__yy_method(_inst, gml_Script_btn_click_FacilityStadium));}function gml_Script_btn_click_FacilityStadium(_inst,_other){{{var __yy__v288=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v289 in __yy__v288){if(!__yy__v288.hasOwnProperty(__yy__v289))continue;var __yy__v290=__yy__v288[__yy__v289];{if(yyfless(__yy__v290.gmlcoach_credit,yyfplus(__yy_gml_errCheck(__yy__v290.gmlfacility_stadium),1))){{gml_Script_s_create_message(__yy__v290,_inst,"",gml_Script_s_str(__yy__v290,_inst,"msg_NoCreditFacility"),gml_Script_s_str(__yy__v290, _inst,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};};if(yyfequal(__yy__v290.gmlfacility_upgraded_stadium,__yy__v290.gmlweek)){{gml_Script_s_create_message(__yy__v290,_inst,"",gml_Script_s_str(__yy__v290,_inst,"msg_FacilityTooSoon"),gml_Script_s_str(__yy__v290,_inst,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};};var gmlmsg=gml_Script_s_str(__yy__v290,_inst,"msg_facility_Stadium");gmlmsg=string_replace(gmlmsg,"$num",yyfplus(__yy_gml_errCheck(__yy__v290.gmlfacility_stadium), 1));gml_Script_s_create_message(__yy__v290,_inst,"",gmlmsg,gml_Script_s_str(__yy__v290,_inst,"ui_Cancel"),gml_Script_s_str(__yy__v290,_inst,"ui_Confirm"),kgml_Script_s_msg_clear,kgml_Script_s_confirm_upgrade_stadium,global.gmlc_background,1);}}};}}function gml_GlobalScript_btn_click_FacilityTraining(_inst,_other){(_inst.gmlbtn_click_FacilityTraining=__yy_method(_inst,gml_Script_btn_click_FacilityTraining));}function gml_Script_btn_click_FacilityTraining(_inst,_other){{{var __yy__v291=GetWithArray(YYASSET_REF(0x00000062)); for(var __yy__v292 in __yy__v291){if(!__yy__v291.hasOwnProperty(__yy__v292))continue;var __yy__v293=__yy__v291[__yy__v292];{if(yyfless(__yy__v293.gmlcoach_credit,yyfplus(__yy_gml_errCheck(__yy__v293.gmlfacility_training),1))){{gml_Script_s_create_message(__yy__v293,_inst,"",gml_Script_s_str(__yy__v293,_inst,"msg_NoCreditFacility"),gml_Script_s_str(__yy__v293,_inst,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};};if(yyfequal(__yy__v293.gmlfacility_upgraded_training,__yy__v293.gmlweek)){ {gml_Script_s_create_message(__yy__v293,_inst,"",gml_Script_s_str(__yy__v293,_inst,"msg_FacilityTooSoon"),gml_Script_s_str(__yy__v293,_inst,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};};var gmlmsg=gml_Script_s_str(__yy__v293,_inst,"msg_facility_Training");gmlmsg=string_replace(gmlmsg,"$num",yyfplus(__yy_gml_errCheck(__yy__v293.gmlfacility_training),1));gml_Script_s_create_message(__yy__v293,_inst,"",gmlmsg,gml_Script_s_str(__yy__v293,_inst,"ui_Cancel"),gml_Script_s_str(__yy__v293, _inst,"ui_Confirm"),kgml_Script_s_msg_clear,kgml_Script_s_confirm_upgrade_training,global.gmlc_background,1);}}};}}function gml_GlobalScript_btn_click_FacilityStaff(_inst,_other){(_inst.gmlbtn_click_FacilityStaff=__yy_method(_inst,gml_Script_btn_click_FacilityStaff));}function gml_Script_btn_click_FacilityStaff(_inst,_other){{{var __yy__v294=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v295 in __yy__v294){if(!__yy__v294.hasOwnProperty(__yy__v295))continue;var __yy__v296=__yy__v294[__yy__v295];{if(yyfless(__yy__v296.gmlcoach_credit, yyfplus(__yy_gml_errCheck(__yy__v296.gmlfacility_rehab),1))){{gml_Script_s_create_message(__yy__v296,_inst,"",gml_Script_s_str(__yy__v296,_inst,"msg_NoCreditFacility"),gml_Script_s_str(__yy__v296,_inst,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};};if(yyfequal(__yy__v296.gmlfacility_upgraded_rehab,__yy__v296.gmlweek)){{gml_Script_s_create_message(__yy__v296,_inst,"",gml_Script_s_str(__yy__v296,_inst,"msg_FacilityTooSoon"),gml_Script_s_str(__yy__v296,_inst,"ui_Continue"), "",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};};var gmlmsg=gml_Script_s_str(__yy__v296,_inst,"msg_facility_Rehab");gmlmsg=string_replace(gmlmsg,"$num",yyfplus(__yy_gml_errCheck(__yy__v296.gmlfacility_rehab),1));gml_Script_s_create_message(__yy__v296,_inst,"",gmlmsg,gml_Script_s_str(__yy__v296,_inst,"ui_Cancel"),gml_Script_s_str(__yy__v296,_inst,"ui_Confirm"),kgml_Script_s_msg_clear,kgml_Script_s_confirm_upgrade_rehab,global.gmlc_background,1);}}};}}function gml_GlobalScript_btn_click_HOF_players(_inst, _other){(_inst.gmlbtn_click_HOF_players=__yy_method(_inst,gml_Script_btn_click_HOF_players));}function gml_Script_btn_click_HOF_players(_inst,_other){{room_goto(YYASSET_REF(0x0300000C));}}function gml_GlobalScript_btn_click_HOF_player_records(_inst,_other){(_inst.gmlbtn_click_HOF_player_records=__yy_method(_inst,gml_Script_btn_click_HOF_player_records));}function gml_Script_btn_click_HOF_player_records(_inst,_other){{room_goto(YYASSET_REF(0x0300000D));}}function gml_GlobalScript_btn_click_HOF_Select(_inst, _other){(_inst.gmlbtn_click_HOF_Select=__yy_method(_inst,gml_Script_btn_click_HOF_Select));}function gml_Script_btn_click_HOF_Select(_inst,_other){{{var __yy__v297=GetWithArray(YYASSET_REF(0x0000004F));for(var __yy__v298 in __yy__v297){if(!__yy__v297.hasOwnProperty(__yy__v298))continue;var __yy__v299=__yy__v297[__yy__v298];return;}};if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltag_hof_message_done,0)){{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_TagMessageHOF"), "",gml_Script_s_str(_inst,_other,"ui_Continue"),kgml_Script_s_msg_clear,kgml_Script_s_msg_clear,global.gmlc_background,1);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltag_hof_message_done=1;};};var gmlcount=gml_Script_s_count_hof_entries(_inst,_other);if((yyGetBool(!yyGetBool(_inst.gmlselected)))&&(yyGetBool(yyfgreaterequal(gmlcount,50)))){{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_HofListTooBig"),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear, "",global.gmlc_background,1);return;};};if((yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlviewing_hof_players))&&(yyGetBool(yyfless(ds_list_find_index(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile),0)))){{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_RemoveFromHallOfFame"),gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Remove"),kgml_Script_s_msg_clear, kgml_Script_btn_response_hof_select,global.gmlc_background,1);};}else {{_inst.gmlselected=!yyGetBool(_inst.gmlselected);ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"hof",_inst.gmlselected);};};}}function gml_GlobalScript_btn_click_HofNext(_inst,_other){(_inst.gmlbtn_click_HofNext=__yy_method(_inst,gml_Script_btn_click_HofNext));}function gml_Script_btn_click_HofNext(_inst,_other){{{var __yy__v300=GetWithArray(YYASSET_REF(0x0000008B));for(var __yy__v301 in __yy__v300){if(!__yy__v300.hasOwnProperty(__yy__v301))continue; var __yy__v302=__yy__v300[__yy__v301];{(g_yyPrePostObject__=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhof_page,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhof_page=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhof_page.add(1):++yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhof_page),g_yyPrePostObject__);room_goto(YYASSET_REF(0x0300000C));}}};}}function gml_GlobalScript_btn_click_HofPrev(_inst,_other){(_inst.gmlbtn_click_HofPrev=__yy_method(_inst,gml_Script_btn_click_HofPrev)); }function gml_Script_btn_click_HofPrev(_inst,_other){{{var __yy__v303=GetWithArray(YYASSET_REF(0x0000008B));for(var __yy__v304 in __yy__v303){if(!__yy__v303.hasOwnProperty(__yy__v304))continue;var __yy__v305=__yy__v303[__yy__v304];{(g_yyPrePostObject__=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhof_page,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhof_page=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhof_page.subtract(1):--yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhof_page), g_yyPrePostObject__);room_goto(YYASSET_REF(0x0300000C));}}};}}function gml_GlobalScript_btn_click_HOF_Coach(_inst,_other){(_inst.gmlbtn_click_HOF_Coach=__yy_method(_inst,gml_Script_btn_click_HOF_Coach));}function gml_Script_btn_click_HOF_Coach(_inst,_other){{room_goto(YYASSET_REF(0x0300000B));}}function gml_GlobalScript_btn_click_Records_Reset(_inst,_other){(_inst.gmlbtn_click_Records_Reset=__yy_method(_inst,gml_Script_btn_click_Records_Reset));}function gml_Script_btn_click_Records_Reset(_inst,_other){ {gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_RecordsReset"),gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Reset"),kgml_Script_s_msg_clear,kgml_Script_btn_response_records_reset,global.gmlc_background,1);}}function gml_GlobalScript_btn_click_League_Back(_inst,_other){(_inst.gmlbtn_click_League_Back=__yy_method(_inst,gml_Script_btn_click_League_Back));}function gml_Script_btn_click_League_Back(_inst,_other){{var ___sw234___=yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlstage;var ___swc235___=-1;if(yyCompareVal(___sw234___,3,g_GMLMathEpsilon,false)==0){___swc235___=0;}else if(yyCompareVal(___sw234___,5,g_GMLMathEpsilon,false)==0){___swc235___=1;}switch(___swc235___){case 0:{room_goto(YYASSET_REF(0x03000015));break;}case 1:{room_goto(YYASSET_REF(0x03000018));break;}default :{room_goto(YYASSET_REF(0x0300000E));break;}};}}function gml_GlobalScript_btn_click_LeaguePanel(_inst,_other,argument0){(_inst.gmlbtn_click_LeaguePanel=__yy_method(_inst, gml_Script_btn_click_LeaguePanel));}function gml_Script_btn_click_LeaguePanel(_inst,_other,argument0){{yyInst(_inst,_other,100262).visible=true;yyInst(_inst,_other,100263).visible=true;yyInst(_inst,_other,100260).visible=true;yyInst(_inst,_other,100261).visible=true;yyInst(_inst,_other,100254).visible=true;yyInst(_inst,_other,100255).visible=true;yyInst(_inst,_other,100256).visible=true;yyInst(_inst,_other,100266).gmltext=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_conf1;yyInst(_inst,_other, 100265).gmltext=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_conf2;yyInst(_inst,_other,100269).gmlactive=true;{var __yy__v306=GetWithArray(YYASSET_REF(0x0000008D));for(var __yy__v307 in __yy__v306){if(!__yy__v306.hasOwnProperty(__yy__v307))continue;var __yy__v308=__yy__v306[__yy__v307];{__yy__v308.gmlshow_panel=argument0;var ___sw238___=__yy__v308.gmlshow_panel;var ___swc239___=-1;if(yyCompareVal(___sw238___,0,g_GMLMathEpsilon,false)==0){___swc239___=0;}else if(yyCompareVal(___sw238___,1,g_GMLMathEpsilon, false)==0){___swc239___=1;}else if(yyCompareVal(___sw238___,2,g_GMLMathEpsilon,false)==0){___swc239___=2;}switch(___swc239___){case 0:{yyInst(_inst,_other,100266).gmlcolour=global.gmlc_primary;yyInst(_inst,_other,100265).gmlcolour=global.gmlc_background;yyInst(_inst,_other,100267).gmlcolour=global.gmlc_background;yyInst(_inst,_other,100254).visible=false;yyInst(_inst,_other,100255).visible=false;yyInst(_inst,_other,100256).visible=false;yyInst(_inst,_other,100257).visible=false;break;}case 1:{yyInst(_inst, _other,100266).gmlcolour=global.gmlc_background;yyInst(_inst,_other,100265).gmlcolour=global.gmlc_primary;yyInst(_inst,_other,100267).gmlcolour=global.gmlc_background;yyInst(_inst,_other,100254).visible=false;yyInst(_inst,_other,100255).visible=false;yyInst(_inst,_other,100256).visible=false;yyInst(_inst,_other,100257).visible=false;break;}case 2:{yyInst(_inst,_other,100266).gmlcolour=global.gmlc_background;yyInst(_inst,_other,100265).gmlcolour=global.gmlc_background;yyInst(_inst,_other,100267).gmlcolour=global.gmlc_primary; yyInst(_inst,_other,100262).visible=false;yyInst(_inst,_other,100263).visible=false;yyInst(_inst,_other,100260).visible=false;yyInst(_inst,_other,100261).visible=false;yyInst(_inst,_other,100269).gmlactive=false;yyInst(_inst,_other,100257).visible=true;break;}};if(!yyGetBool(gml_Script_s_is_co_mode(__yy__v308,_inst))){{gml_Script_s_populate_division(__yy__v308,_inst,100262,__yy__v308.gmlshow_panel,0);gml_Script_s_populate_division(__yy__v308,_inst,100263,__yy__v308.gmlshow_panel,1);gml_Script_s_populate_division(__yy__v308, _inst,100260,__yy__v308.gmlshow_panel,2);gml_Script_s_populate_division(__yy__v308,_inst,100261,__yy__v308.gmlshow_panel,3);};};gml_Script_s_populate_schedulebox(__yy__v308,_inst);{var __yy__v309=GetWithArray(YYASSET_REF(0x00000052));for(var __yy__v310 in __yy__v309){if(!__yy__v309.hasOwnProperty(__yy__v310))continue;var __yy__v311=__yy__v309[__yy__v310];__yy__v311.gmlmode=1;}};}}};}}function gml_GlobalScript_btn_click_LeagueNFC(_inst,_other){(_inst.gmlbtn_click_LeagueNFC=__yy_method(_inst,gml_Script_btn_click_LeagueNFC)); }function gml_Script_btn_click_LeagueNFC(_inst,_other){{gml_Script_btn_click_LeaguePanel(_inst,_other,1);}}function gml_GlobalScript_btn_click_LeagueAFC(_inst,_other){(_inst.gmlbtn_click_LeagueAFC=__yy_method(_inst,gml_Script_btn_click_LeagueAFC));}function gml_Script_btn_click_LeagueAFC(_inst,_other){{gml_Script_btn_click_LeaguePanel(_inst,_other,0);}}function gml_GlobalScript_keyboard_scripts(_inst,_other){(_inst.gmls_keyboard_custom_enabled=__yy_method(_inst,gml_Script_s_keyboard_custom_enabled)); (_inst.gmls_keyboard_custom_init=__yy_method(_inst,gml_Script_s_keyboard_custom_init));(_inst.gmls_keyboard_custom_show=__yy_method(_inst,gml_Script_s_keyboard_custom_show));(_inst.gmls_keyboard_custom_hide=__yy_method(_inst,gml_Script_s_keyboard_custom_hide));(_inst.gmls_keyboard_custom_layer=__yy_method(_inst,gml_Script_s_keyboard_custom_layer));(_inst.gmls_keyboard_custom_create=__yy_method(_inst,gml_Script_s_keyboard_custom_create));(_inst.gmls_keyboard_custom_destroy=__yy_method(_inst,gml_Script_s_keyboard_custom_destroy)); (_inst.gmls_keyboard_custom_create_button=__yy_method(_inst,gml_Script_s_keyboard_custom_create_button));(_inst.gmls_custkb_base_draw_gui=__yy_method(_inst,gml_Script_s_custkb_base_draw_gui));(_inst.gmls_custkb_base_step=__yy_method(_inst,gml_Script_s_custkb_base_step));(_inst.gmls_custkb_confirm=__yy_method(_inst,gml_Script_s_custkb_confirm));(_inst.gmls_custkb_delete=__yy_method(_inst,gml_Script_s_custkb_delete));(_inst.gmls_custkb_shift_toggle=__yy_method(_inst,gml_Script_s_custkb_shift_toggle)); (_inst.gmls_custkb_add_text=__yy_method(_inst,gml_Script_s_custkb_add_text));(_inst.gmls_custkb_key_init=__yy_method(_inst,gml_Script_s_custkb_key_init));(_inst.gmls_custkb_key_draw_gui=__yy_method(_inst,gml_Script_s_custkb_key_draw_gui));(_inst.gmls_custkb_key_step=__yy_method(_inst,gml_Script_s_custkb_key_step));(_inst.gmls_custkb_key_tap=__yy_method(_inst,gml_Script_s_custkb_key_tap));}function gml_Script_s_keyboard_custom_enabled(_inst,_other){{var ___sw250___=g_pBuiltIn.get_os_type();var ___swc251___=-1; if(yyCompareVal(___sw250___,21,g_GMLMathEpsilon,false)==0){___swc251___=0;}switch(___swc251___){case 0:{return true;}};return false;}}function gml_Script____struct___104_s_keyboard_custom_init_gml_GlobalScript_keyboard_scripts(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___104_s_keyboard_custom_init_gml_GlobalScript_keyboard_scripts";}if(gml_Script____struct___104_s_keyboard_custom_init_gml_GlobalScript_keyboard_scripts.prototype.__type===undefined){gml_Script____struct___104_s_keyboard_custom_init_gml_GlobalScript_keyboard_scripts.prototype.__type="gml_Script____struct___104_s_keyboard_custom_init_gml_GlobalScript_keyboard_scripts"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___104_s_keyboard_custom_init_gml_GlobalScript_keyboard_scripts.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlbase=(-4);_inst.gmltype=0;_inst.gmlactive=false;_inst.gmlinput_id=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmllayer_id=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlcaps=true;_inst.gmlcaps_key=(-4);_inst.gmldefault_key=$$args[__yy_gml_array_check_index(2+(2),$$args)]; }}}}function gml_Script_s_keyboard_custom_init(_inst,_other){{global.gmlcustkb=__yy_gml_object_create(_inst,(_inst.gml___struct___104=__yy_method(_inst,gml_Script____struct___104_s_keyboard_custom_init_gml_GlobalScript_keyboard_scripts)),undefined,undefined,(-1));}}function gml_Script_s_keyboard_custom_show(_inst,_other,argument0){{gml_Script_slog(_inst,_other,"Show custom keyboard");{var __yy__v312=GetWithArray(global.gmlcustkb);for(var __yy__v313 in __yy__v312){if(!__yy__v312.hasOwnProperty(__yy__v313))continue; var __yy__v314=__yy__v312[__yy__v313];{__yy__v314.gmlactive=true;__yy__v314.gmlinput_id=argument0;__yy__v314.gmllayer_id=gml_Script_s_keyboard_custom_layer(__yy__v314,_inst);gml_Script_s_keyboard_custom_create(__yy__v314,_inst,__yy__v314.gmllayer_id);}}};}}function gml_Script_s_keyboard_custom_hide(_inst,_other){{gml_Script_slog(_inst,_other,"Hide custom keyboard");yyInst(_inst,_other,global.gmlcustkb).gmlactive=false;gml_Script_s_keyboard_custom_destroy(_inst,_other);}}function gml_Script_s_keyboard_custom_layer(_inst, _other){{var gmllid=layer_get_id("Keyboard");if(yyfless(gmllid,0)){gmllid=layer_create((-1000),"Keyboard");};return gmllid;}}function gml_Script_s_keyboard_custom_create(_inst,_other,argument0){{var gmlkb_type=yyInst(_inst,_other,yyInst(_inst,_other,global.gmlcustkb).gmlinput_id).gmlcustom_keyboard_type;var gmlkb_cols,gmlkb_rows;var ___sw252___=gmlkb_type;var ___swc253___=-1;if(yyCompareVal(___sw252___,2,g_GMLMathEpsilon,false)==0){___swc253___=0;}else if(yyCompareVal(___sw252___,1,g_GMLMathEpsilon,false)==0){ ___swc253___=1;}switch(___swc253___){case 0:{gmlkb_cols=8;gmlkb_rows=2;break;}case 1:{gmlkb_cols=11;gmlkb_rows=2;break;}default :{gmlkb_cols=13;gmlkb_rows=4;break;}};var gmlkey_default=(-1);var gmlkey_size=28;var gmlkey_step=30;var gmlmargin=8;var gmlkb_width=yyfplus(yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlkey_step),__yy_gml_errCheck(gmlkb_cols))),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlmargin),2))),2);var gmlkb_height=yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlkey_step), __yy_gml_errCheck(gmlkb_rows))),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlmargin),2)));var gmlkb_x=yyfdivide(__yy_gml_errCheck(yyfminus(480,__yy_gml_errCheck(gmlkb_width))),2);var gmlkb_y=yyfminus(yyfminus(270,__yy_gml_errCheck(gmlkb_height)),__yy_gml_errCheck(gmlmargin));var gmlkb_xo=0;var gmlkb_yo=0;var gmlkeys;gmlkeys=__yy_gml_array_check(gmlkeys,2112867822);gmlkeys[__yy_gml_array_check_index_set(0)]="0123456789\nABCDEFGHIJKLM\nNOPQRSTUVWXYZ\n!/*⇧ ,.-\r";gmlkeys[__yy_gml_array_check_index_set(1)]="01234567\n89ABCDEF\r"; gmlkeys[__yy_gml_array_check_index_set(2)]="01234\n56789\r";var gmlchar,gmlnl,gmlskip,gmlwidth,gmlimage;var gmlkey;var gmli=0;for(;yyfless(gmli,string_length(gmlkeys[__yy_gml_array_check_index(gmlkb_type,gmlkeys)]));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlchar=string_char_at(gmlkeys[__yy_gml_array_check_index(gmlkb_type,gmlkeys)],yyfplus(__yy_gml_errCheck(gmli),1));gmlnl=false;gmlskip=false;gmlwidth=1;gmlimage=(-1);var ___sw254___=gmlchar; var ___swc255___=-1;if(yyCompareVal(___sw254___,"\n",g_GMLMathEpsilon,false)==0){___swc255___=0;}else if(yyCompareVal(___sw254___,"",g_GMLMathEpsilon,false)==0){___swc255___=1;}else if(yyCompareVal(___sw254___,"\r",g_GMLMathEpsilon,false)==0){___swc255___=2;}else if(yyCompareVal(___sw254___,"⇧",g_GMLMathEpsilon,false)==0){___swc255___=3;}else if(yyCompareVal(___sw254___," ",g_GMLMathEpsilon,false)==0){___swc255___=4;}switch(___swc255___){case 0:{gmlnl=true;gmlskip=true;break;}case 1:{gmlimage=YYASSET_REF(0x0100008E); gmlwidth=3;break;}case 2:{gmlimage=YYASSET_REF(0x01000091);gmlwidth=3;break;}case 3:{gmlimage=YYASSET_REF(0x0100008F);break;}case 4:{gmlwidth=3;break;}};if(!yyGetBool(gmlskip)){{gmlkey=gml_Script_s_keyboard_custom_create_button(_inst,_other,gmlchar,gmlchar,yyfplus(yyfplus(__yy_gml_errCheck(gmlkb_x),__yy_gml_errCheck(gmlkb_xo)),10),yyfplus(yyfplus(__yy_gml_errCheck(gmlkb_y),__yy_gml_errCheck(gmlkb_yo)),10),argument0);yyInst(_inst,_other,gmlkey).image_xscale=yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlkey_step), __yy_gml_errCheck(gmlwidth))),__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlkey_step),__yy_gml_errCheck(gmlkey_size))))),__yy_gml_errCheck(yyInst(_inst,_other,gmlkey).sprite_width));yyInst(_inst,_other,gmlkey).image_yscale=yyfdivide(__yy_gml_errCheck(gmlkey_size),__yy_gml_errCheck(yyInst(_inst,_other,gmlkey).sprite_height));yyInst(_inst,_other,gmlkey).gmlonClickAction=kgml_Script_s_custkb_key_tap;yyInst(_inst,_other,gmlkey).gmlgp_active_editing=true;if(yyfgreaterequal(gmlimage,0)){yyInst(_inst, _other,gmlkey).gmlimage=gmlimage;};gmlkb_xo=yyfplus(gmlkb_xo,yyftime(__yy_gml_errCheck(gmlkey_step),__yy_gml_errCheck(gmlwidth)));if(yyfless(gmlkey_default,0)){gmlkey_default=gmlkey;};};};if((yyGetBool(yyfgreater(gmlkb_xo,gmlkb_width)))||(yyGetBool(gmlnl))){{gmlkb_xo=0;gmlkb_yo=yyfplus(gmlkb_yo,gmlkey_step);};};}};var gmlbase=instance_create_layer(gmlkb_x,gmlkb_y,argument0,YYASSET_REF(0x0000001D));yyInst(_inst,_other,gmlbase).sprite_index=YYASSET_REF(0x0100004A);yyInst(_inst,_other,gmlbase).image_xscale=yyfdivide(__yy_gml_errCheck(gmlkb_width), 16);yyInst(_inst,_other,gmlbase).image_yscale=yyfdivide(__yy_gml_errCheck(gmlkb_height),16);yyInst(_inst,_other,gmlbase).gmlaction_step=kgml_Script_s_custkb_base_step;yyInst(_inst,_other,gmlbase).gmlaction_draw_gui=kgml_Script_s_custkb_base_draw_gui;yyInst(_inst,_other,global.gmlcustkb).gmlbase=gmlbase;yyInst(_inst,_other,global.gmlcustkb).gmltype=gmlkb_type;yyInst(_inst,_other,global.gmlcustkb).gmlcaps=true;if(yyGetBool(global.gmlgamepad)){{yyInst(_inst,_other,global.gmlcustkb).gmldefault_key=gmlkey_default; gml_Script_s_find_default_button(_inst,_other);};};return argument0;}}function gml_Script_s_keyboard_custom_destroy(_inst,_other){{{var __yy__v315=GetWithArray(global.gmlcustkb);for(var __yy__v316 in __yy__v315){if(!__yy__v315.hasOwnProperty(__yy__v316))continue;var __yy__v317=__yy__v315[__yy__v316];if(!yyGetBool(is_undefined(__yy__v317.gmllayer_id))){layer_destroy(__yy__v317.gmllayer_id);};}};if(yyGetBool(global.gmlgamepad)){{var __yy__v318=GetWithArray(yyInst(_inst,_other,global.gmlcustkb).gmlinput_id); for(var __yy__v319 in __yy__v318){if(!__yy__v318.hasOwnProperty(__yy__v319))continue;var __yy__v320=__yy__v318[__yy__v319];gml_Script_s_save_last_selected(__yy__v320,_inst);}};};}}function gml_Script_s_keyboard_custom_create_button(_inst,_other,argument0,argument1,argument2,argument3,argument4){{var gmlkey=instance_create_layer(argument2,argument3,argument4,YYASSET_REF(0x0000001B));yyInst(_inst,_other,gmlkey).gmlsymbol=argument0;yyInst(_inst,_other,gmlkey).gmltext=argument1;return gmlkey;}}function gml_Script_s_custkb_base_draw_gui(_inst, _other){{draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y,_inst.image_xscale,_inst.image_yscale,0,16777215,1);}}function gml_Script_s_custkb_base_step(_inst,_other){{if((yyGetBool((yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),21)))||(yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),1)))))&&(yyGetBool(global.gmlgamepad))){{if(yyGetBool(gamepad_button_check_released(yyInst(_inst,_other,global.gmlgp).gmlslot,32778))){gml_Script_s_custkb_confirm(_inst,_other);};if(yyGetBool(gamepad_button_check_released(yyInst(_inst, _other,global.gmlgp).gmlslot,global.gmlgp_back))){gml_Script_s_custkb_delete(_inst,_other);};};};}}function gml_Script_s_custkb_confirm(_inst,_other){{{var __yy__v321=GetWithArray(yyInst(_inst,_other,global.gmlcustkb).gmlinput_id);for(var __yy__v322 in __yy__v321){if(!__yy__v321.hasOwnProperty(__yy__v322))continue;var __yy__v323=__yy__v321[__yy__v322];{__yy__v323.gmltext=g_pBuiltIn.keyboard_string;__yy__v323.gmlediting=false;gml_Script_s_keyboard_custom_hide(__yy__v323,_inst);if(yyGetBool(script_exists(__yy__v323.gmlvalidate_script))){ script_execute(__yy__v323,_inst,__yy__v323.gmlvalidate_script);};}}};}}function gml_Script_s_custkb_delete(_inst,_other){{if(yyfgreater(string_length(g_pBuiltIn.keyboard_string),0)){{g_pBuiltIn.keyboard_string=string_delete(g_pBuiltIn.keyboard_string,string_length(g_pBuiltIn.keyboard_string),1);};};}}function gml_Script_s_custkb_shift_toggle(_inst,_other){{yyInst(_inst,_other,global.gmlcustkb).gmlcaps=!yyGetBool(yyInst(_inst,_other,global.gmlcustkb).gmlcaps);}}function gml_Script_s_custkb_add_text(_inst, _other){{g_pBuiltIn.keyboard_string=yyfplus(g_pBuiltIn.keyboard_string,_inst.gmltext);if(yyfequal(yyInst(_inst,_other,global.gmlcustkb).gmltype,0)){{var gmllc=string_copy(g_pBuiltIn.keyboard_string,string_length(g_pBuiltIn.keyboard_string),1);var ___sw256___=gmllc;var ___swc257___=-1;if(yyCompareVal(___sw256___,"",g_GMLMathEpsilon,false)==0||yyCompareVal(___sw256___," ",g_GMLMathEpsilon,false)==0){___swc257___=0;}switch(___swc257___){case 0:{yyInst(_inst,_other,global.gmlcustkb).gmlcaps=true;break;} default :{yyInst(_inst,_other,global.gmlcustkb).gmlcaps=false;break;}};};};}}function gml_Script_s_custkb_key_init(_inst,_other){{event_inherited(_inst,_other);}}function gml_Script_s_custkb_key_draw_gui(_inst,_other){{event_inherited(_inst,_other);}}function gml_Script_s_custkb_key_step(_inst,_other){{event_inherited(_inst,_other);_inst.gmltext=(yyGetBool(yyInst(_inst,_other,global.gmlcustkb).gmlcaps)?string_upper(_inst.gmltext):string_lower(_inst.gmltext));if(yyfequal(_inst.gmltext,"⇧")){{_inst.gmlimage=(yyGetBool(yyInst(_inst, _other,global.gmlcustkb).gmlcaps)?YYASSET_REF(0x0100003F):YYASSET_REF(0x0100008F));};};}}function gml_Script_s_custkb_key_tap(_inst,_other){{var ___sw258___=_inst.gmltext;var ___swc259___=-1;if(yyCompareVal(___sw258___,"",g_GMLMathEpsilon,false)==0){___swc259___=0;}else if(yyCompareVal(___sw258___,"\r",g_GMLMathEpsilon,false)==0){___swc259___=1;}else if(yyCompareVal(___sw258___,"⇧",g_GMLMathEpsilon,false)==0){___swc259___=2;}switch(___swc259___){case 0:{gml_Script_s_custkb_delete(_inst,_other);break; }case 1:{gml_Script_s_custkb_confirm(_inst,_other);break;}case 2:{gml_Script_s_custkb_shift_toggle(_inst,_other);break;}default :{gml_Script_s_custkb_add_text(_inst,_other);break;}};}}// slog("s_get_random_hobby for insitution type["+string(insititutionType)+"] (num:"+string(num)+") selected @index["+string(index)+"] ("+string(chosenUID)+")"+(s_get_hobby_from_uid(chosenUID)[? "Society"])); // // slog("s_get_random_study_subject for insitution type["+string(insititutionType)+"] (num:"+string(num)+") selected @index["+string(index)+"] ("+string(chosenUID)+")"+(s_get_study_subject_name_from_uid(chosenUID))) // /// @param {bool} _refresh update cached value // /// @return {bool} function gml_GlobalScript_s_college_tools(_inst, _other,argument0){(_inst.gmls_college_set_up_globals=__yy_method(_inst,gml_Script_s_college_set_up_globals));(_inst.gmls_college_age_index=__yy_method(_inst,gml_Script_s_college_age_index));(_inst.gmls_college_age_label=__yy_method(_inst,gml_Script_s_college_age_label));(_inst.gmls_college_age_simple=__yy_method(_inst,gml_Script_s_college_age_simple));(_inst.gmls_college_age_simple_other=__yy_method(_inst,gml_Script_s_college_age_simple_other));(_inst.gmls_college_age_simple_short=__yy_method(_inst, gml_Script_s_college_age_simple_short));(_inst.gmls_college_shorter_season=__yy_method(_inst,gml_Script_s_college_shorter_season));(_inst.gmls_college_academics_type=__yy_method(_inst,gml_Script_s_college_academics_type));(_inst.gmls_college_correct_new_player=__yy_method(_inst,gml_Script_s_college_correct_new_player));(_inst.gmls_get_random_hobby=__yy_method(_inst,gml_Script_s_get_random_hobby));(_inst.gmls_get_hobby_name=__yy_method(_inst,gml_Script_s_get_hobby_name));(_inst.gmls_get_hobby_from_uid=__yy_method(_inst, gml_Script_s_get_hobby_from_uid));(_inst.gmls_is_player_hobby_fraternity=__yy_method(_inst,gml_Script_s_is_player_hobby_fraternity));(_inst.gmls_get_random_study_subject=__yy_method(_inst,gml_Script_s_get_random_study_subject));(_inst.gmls_get_study_subject_from_uid=__yy_method(_inst,gml_Script_s_get_study_subject_from_uid));(_inst.gmls_get_study_subject_name_from_uid=__yy_method(_inst,gml_Script_s_get_study_subject_name_from_uid));(_inst.gmls_get_minor_name=__yy_method(_inst,gml_Script_s_get_minor_name)); (_inst.gmls_get_major_name=__yy_method(_inst,gml_Script_s_get_major_name));(_inst.gmls_get_study_info=__yy_method(_inst,gml_Script_s_get_study_info));(_inst.gmls_get_random_trait=__yy_method(_inst,gml_Script_s_get_random_trait));(_inst.gmls_get_trait_name=__yy_method(_inst,gml_Script_s_get_trait_name));(_inst.gmls_get_trait_from_uid=__yy_method(_inst,gml_Script_s_get_trait_from_uid));(_inst.gmls_get_random_hometown=__yy_method(_inst,gml_Script_s_get_random_hometown));(_inst.gmls_get_hometown_name=__yy_method(_inst, gml_Script_s_get_hometown_name));(_inst.gmls_get_only_hometown_name=__yy_method(_inst,gml_Script_s_get_only_hometown_name));(_inst.gmls_get_only_state_name=__yy_method(_inst,gml_Script_s_get_only_state_name));(_inst.gmls_get_hometown_from_uid=__yy_method(_inst,gml_Script_s_get_hometown_from_uid));(_inst.gmls_pick_rand_epilogue_uid=__yy_method(_inst,gml_Script_s_pick_rand_epilogue_uid));(_inst.gmls_get_epilogue_name=__yy_method(_inst,gml_Script_s_get_epilogue_name));(_inst.gmls_epilogue_tests=__yy_method(_inst, gml_Script_s_epilogue_tests));(_inst.gmls_pick_epilogue_story=__yy_method(_inst,gml_Script_s_pick_epilogue_story));(_inst.gmls_epilogue_story_to_str=__yy_method(_inst,gml_Script_s_epilogue_story_to_str));(_inst.gmls_add_cv_entry_from_key=__yy_method(_inst,gml_Script_s_add_cv_entry_from_key));(_inst.gmls_add_cv_entry_direct=__yy_method(_inst,gml_Script_s_add_cv_entry_direct));(_inst.gmls_get_random_cv_entry=__yy_method(_inst,gml_Script_s_get_random_cv_entry));(_inst.gmls_extract_cv_entry_from_pool=__yy_method(_inst, gml_Script_s_extract_cv_entry_from_pool));(_inst.gmls_set_cv_list_from_player=__yy_method(_inst,gml_Script_s_set_cv_list_from_player));(_inst.gmls_add_cv_list_entry=__yy_method(_inst,gml_Script_s_add_cv_list_entry));(_inst.gmlsplit_into_chunks=__yy_method(_inst,gml_Script_split_into_chunks));(_inst.gmlbtn_response_player_meeting_academic_coaching=__yy_method(_inst,gml_Script_btn_response_player_meeting_academic_coaching));(_inst.gmls_get_meeting_cost_academic_coaching=__yy_method(_inst,gml_Script_s_get_meeting_cost_academic_coaching)); (_inst.gmls_is_co_mode=__yy_method(_inst,gml_Script_s_is_co_mode));(_inst.gmls_is_co_postseason=__yy_method(_inst,gml_Script_s_is_co_postseason));(_inst.gmls_is_co_actual_postseason=__yy_method(_inst,gml_Script_s_is_co_actual_postseason));(_inst.gmls_get_postseason_chunk=__yy_method(_inst,gml_Script_s_get_postseason_chunk));(_inst.gmls_is_earlier_than=__yy_method(_inst,gml_Script_s_is_earlier_than));(_inst.gmls_get_skip_to_week=__yy_method(_inst,gml_Script_s_get_skip_to_week));(_inst.gmls_is_co_team=__yy_method(_inst, gml_Script_s_is_co_team));(_inst.gmls_get_conference_list=__yy_method(_inst,gml_Script_s_get_conference_list));(_inst.gmls_get_team_list_by_tier=__yy_method(_inst,gml_Script_s_get_team_list_by_tier));(_inst.gmls_get_team_list=__yy_method(_inst,gml_Script_s_get_team_list));(_inst.gmls_count_joboffers_conference=__yy_method(_inst,gml_Script_s_count_joboffers_conference));(_inst.gmls_co_get_year=__yy_method(_inst,gml_Script_s_co_get_year));(_inst.gmls_get_my_conference_uid=__yy_method(_inst,gml_Script_s_get_my_conference_uid)); (_inst.gmls_get_my_conference_data=__yy_method(_inst,gml_Script_s_get_my_conference_data));(_inst.gmls_get_conference_data=__yy_method(_inst,gml_Script_s_get_conference_data));(_inst.gmls_get_my_division=__yy_method(_inst,gml_Script_s_get_my_division));(_inst.gmls_get_subdivision=__yy_method(_inst,gml_Script_s_get_subdivision));(_inst.gmls_get_team_pct_cnf=__yy_method(_inst,gml_Script_s_get_team_pct_cnf));(_inst.gmls_is_independent_team=__yy_method(_inst,gml_Script_s_is_independent_team));(_inst.gmls_is_independent_conference_id=__yy_method(_inst, gml_Script_s_is_independent_conference_id));(_inst.gmls_is_independent_conference=__yy_method(_inst,gml_Script_s_is_independent_conference));(_inst.gmls_is_co_bowl_week=__yy_method(_inst,gml_Script_s_is_co_bowl_week));(_inst.gmls_is_co_bowl_fix=__yy_method(_inst,gml_Script_s_is_co_bowl_fix));(_inst.gmls_is_co_bowl_comp=__yy_method(_inst,gml_Script_s_is_co_bowl_comp));(_inst.gmls_get_object_data=__yy_method(_inst,gml_Script_s_get_object_data));(_inst.gmls_get_map=__yy_method(_inst,gml_Script_s_get_map)); (_inst.gmls_get_map_real=__yy_method(_inst,gml_Script_s_get_map_real));(_inst.gmls_map_swap=__yy_method(_inst,gml_Script_s_map_swap));(_inst.gmls_get_save_slot=__yy_method(_inst,gml_Script_s_get_save_slot));(_inst.gmls_get_week_name=__yy_method(_inst,gml_Script_s_get_week_name));(_inst.gmls_get_my_conference_division_string=__yy_method(_inst,gml_Script_s_get_my_conference_division_string));(_inst.gmls_get_fix_competition_string=__yy_method(_inst,gml_Script_s_get_fix_competition_string));(_inst.gmls_get_competition_string=__yy_method(_inst, gml_Script_s_get_competition_string));(_inst.gmls_get_fix_location_string=__yy_method(_inst,gml_Script_s_get_fix_location_string));(_inst.gmls_get_my_subdivision_string=__yy_method(_inst,gml_Script_s_get_my_subdivision_string));(_inst.gmls_get_subdiv_name=__yy_method(_inst,gml_Script_s_get_subdiv_name));(_inst.gmls_joboffers_string=__yy_method(_inst,gml_Script_s_joboffers_string));(_inst.gmls_get_pct_string=__yy_method(_inst,gml_Script_s_get_pct_string));(_inst.gmls_get_comp_level_str=__yy_method(_inst, gml_Script_s_get_comp_level_str));(_inst.gmls_get_comp_level_str_plain=__yy_method(_inst,gml_Script_s_get_comp_level_str_plain));(_inst.gmls_get_difficulty_str=__yy_method(_inst,gml_Script_s_get_difficulty_str));(_inst.gmls_is_ps_chunk_filled=__yy_method(_inst,gml_Script_s_is_ps_chunk_filled));(_inst.gmls_is_week_played=__yy_method(_inst,gml_Script_s_is_week_played));(_inst.gmls_is_human_in_week=__yy_method(_inst,gml_Script_s_is_human_in_week));(_inst.gmls_is_human_fix=__yy_method(_inst,gml_Script_s_is_human_fix)); (_inst.gmls_get_next_college_human_fixture=__yy_method(_inst,gml_Script_s_get_next_college_human_fixture));(_inst.gmls_update_week_done=__yy_method(_inst,gml_Script_s_update_week_done));(_inst.gmls_is_week_done=__yy_method(_inst,gml_Script_s_is_week_done));(_inst.gmls_is_fix_played=__yy_method(_inst,gml_Script_s_is_fix_played));(_inst.gmls_is_fix_filled=__yy_method(_inst,gml_Script_s_is_fix_filled));(_inst.gmls_is_fix_on_neutral_ground=__yy_method(_inst,gml_Script_s_is_fix_on_neutral_ground));(_inst.gmls_season_competitions_done=__yy_method(_inst, gml_Script_s_season_competitions_done));(_inst.gmls_get_fix_away_team_id=__yy_method(_inst,gml_Script_s_get_fix_away_team_id));(_inst.gmls_get_fix_home_team_id=__yy_method(_inst,gml_Script_s_get_fix_home_team_id));(_inst.gmls_get_fix_by_competition_id=__yy_method(_inst,gml_Script_s_get_fix_by_competition_id));(_inst.gmls_get_fix_by_match_id=__yy_method(_inst,gml_Script_s_get_fix_by_match_id));(_inst.gmls_get_fix_winner_id=__yy_method(_inst,gml_Script_s_get_fix_winner_id));(_inst.gmls_get_fix_by_week_and_teams=__yy_method(_inst, gml_Script_s_get_fix_by_week_and_teams));}function gml_Script_s_college_set_up_globals(_inst,_other){{_inst.gmlco_stats_tab=0;_inst.gmlpostseason_chunk_news_last_shown=0;}}function gml_Script_s_college_age_index(_inst,_other,argument0){{if(yyfequal(argument0,gml_Script_s_rookie_age_internal(_inst,_other))){{return 0;};};if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),1))){{return 1;};};if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst, _other)),2))){{return 2;};};if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),3))){{return 3;};};return 3;}}function gml_Script_s_college_age_label(_inst,_other,argument0){{var gmllabel=yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Year")),":");if(yyfequal(argument0,gml_Script_s_rookie_age_internal(_inst,_other))){{gmllabel=yyfplus(gmllabel,yyfplus(" ",__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Freshman"))));};};if(yyfequal(argument0, yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),1))){{gmllabel=yyfplus(gmllabel,yyfplus(" ",__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Sophomore"))));};};if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),2))){{gmllabel=yyfplus(gmllabel,yyfplus(" ",__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Junior"))));};};if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),3))){{gmllabel=yyfplus(gmllabel, yyfplus(" ",__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Senior"))));};};return gmllabel;}}function gml_Script_s_college_age_simple(_inst,_other,argument0){{var gmlage=ds_map_find_value(argument0,"age");if(yyfequal(gmlage,gml_Script_s_rookie_age_internal(_inst,_other))){{return gml_Script_s_str(_inst,_other,"ui_Freshman");};};if(yyfequal(gmlage,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),1))){{return gml_Script_s_str(_inst,_other,"ui_Sophomore");};};if(yyfequal(gmlage, yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),2))){{return gml_Script_s_str(_inst,_other,"ui_Junior");};};if(yyfequal(gmlage,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),3))){{return gml_Script_s_str(_inst,_other,"ui_Senior");};};return "N/A";}}function gml_Script_s_college_age_simple_other(_inst,_other,argument0){{var gmlage=ds_map_find_value(argument0,"age");if(yyfequal(gmlage,gml_Script_s_rookie_age_internal(_inst,_other))){{return gml_Script_s_str(_inst, _other,"ui_Freshman_other");};};if(yyfequal(gmlage,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),1))){{return gml_Script_s_str(_inst,_other,"ui_Sophomore_other");};};if(yyfequal(gmlage,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),2))){{return gml_Script_s_str(_inst,_other,"ui_Junior_other");};};if(yyfequal(gmlage,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),3))){{return gml_Script_s_str(_inst,_other,"ui_Senior_other"); };};return "N/A";}}function gml_Script_s_college_age_simple_short(_inst,_other,argument0){{var gmlage=ds_map_find_value(argument0,"age");if(yyfequal(gmlage,gml_Script_s_rookie_age_internal(_inst,_other))){{return gml_Script_s_str(_inst,_other,"ui_Freshman_Short");};};if(yyfequal(gmlage,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),1))){{return gml_Script_s_str(_inst,_other,"ui_Sophomore_Short");};};if(yyfequal(gmlage,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst, _other)),2))){{return gml_Script_s_str(_inst,_other,"ui_Junior_Short");};};if(yyfequal(gmlage,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),3))){{return gml_Script_s_str(_inst,_other,"ui_Senior_Short");};};return "N/A";}}function gml_Script_s_college_shorter_season(_inst,_other){{gml_Script_slogf(_inst,_other,"College shorter season - co %1",gml_Script_s_is_co_mode(_inst,_other));if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){return;};{var __yy__v324=GetWithArray(YYASSET_REF(0x00000062)); for(var __yy__v325 in __yy__v324){if(!__yy__v324.hasOwnProperty(__yy__v325))continue;var __yy__v326=__yy__v324[__yy__v325];{__yy__v326.gmllast_week_regular=14;__yy__v326.gmlfirst_week_playoffs=15;__yy__v326.gmlfirst_week_postseason=15;__yy__v326.gmlyear_stagger=gml_Script_s_get_schedule_year_stagger(__yy__v326,_inst);}}};}}function gml_Script_s_college_academics_type(_inst,_other,argument0){{if(yyfequal(gml_Script_s_is_co_mode(_inst,_other),false)){{return false;};};if(!yyGetBool(instance_exists(YYASSET_REF(0x00000062)))){ {return false;};};if(!yyGetBool(variable_instance_exists(YYASSET_REF(0x00000062),"myteam_id"))){{return false;};};if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id,(-1))){{return false;};};var gmltmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteamlist,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id);if(yyGetBool(is_undefined(gmltmap))){{return false;};};if(yyfequal(ds_map_find_value(gmltmap,"type"),argument0)){{return true;};};return false;}}function gml_Script_s_college_correct_new_player(_inst, _other,argument0){{if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlco_mode,0)){{return;};};gml_Script_slog2(_inst,_other,"s_college_correct_new_player");var gmlorigPG=ds_map_find_value(argument0,"percent_grade");var gmlminPG=yyfplus(79,__yy_gml_errCheck(gml_Script_s_my_team_academics(_inst,_other)));var gmlmaxPG=ds_map_find_value(argument0,"max_percent_grade");ds_map_set(argument0,"percent_grade",irandom_range(gmlminPG,gmlmaxPG));gml_Script_s_refresh_suspended(_inst,_other,argument0,false); gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("Player grade corrected [",__yy_gml_errCheck(string(gmlorigPG))),"]->["),__yy_gml_errCheck(string(ds_map_find_value(argument0,"percent_grade")))),"] (aca:"),__yy_gml_errCheck(string(gml_Script_s_my_team_academics(_inst,_other)))),", range:"),__yy_gml_errCheck(string(gmlminPG))),"|"),__yy_gml_errCheck(string(gmlmaxPG))),")"));ds_map_set(argument0,"face_set",2);var gmltmap=gml_Script_s_get_team_by_id(_inst, _other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id);if(yyfequal(is_undefined(gmltmap),false)){{if((yyGetBool(yyfequal(ds_map_find_value(gmltmap,"type"),"HBU")))||(yyGetBool(yyfequal(ds_map_find_value(gmltmap,"type"),"Ivy")))||(yyGetBool(yyfequal(ds_map_find_value(gmltmap,"type"),"0")))){{if(yyfequal(irandom(1),0)){ds_map_set(argument0,"face_set",1);};};};if((yyGetBool(yyfequal(ds_map_find_value(gmltmap,"type"),"HBU")))||(yyGetBool(yyfequal(ds_map_find_value(gmltmap,"type"),"Religious")))){ {var ___sw280___=ds_map_find_value(gmltmap,"type");var ___swc281___=-1;if(yyCompareVal(___sw280___,"HBU",g_GMLMathEpsilon,false)==0){___swc281___=0;}else if(yyCompareVal(___sw280___,"Religious",g_GMLMathEpsilon,false)==0){___swc281___=1;}switch(___swc281___){case 0:{if(yyGetBool(irandom(9))){ds_map_set(argument0,"skin",0);};break;}case 1:{if(yyGetBool(irandom(3))){ds_map_set(argument0,"skin",2);};break;}};var gmlfgrid=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlface_grid_L;var ___sw282___=ds_map_find_value(argument0, "skin");var ___swc283___=-1;if(yyCompareVal(___sw282___,2,g_GMLMathEpsilon,false)==0){___swc283___=0;}else if(yyCompareVal(___sw282___,1,g_GMLMathEpsilon,false)==0){___swc283___=1;}else if(yyCompareVal(___sw282___,0,g_GMLMathEpsilon,false)==0){___swc283___=2;}switch(___swc283___){case 0:{gmlfgrid=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlface_grid_L;break;}case 1:{gmlfgrid=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlface_grid_M;break;}case 2:{gmlfgrid=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlface_grid_D; break;}};if(yyfequal(ds_grid_get_min(gmlfgrid,0,0,ds_grid_width(gmlfgrid),ds_grid_height(gmlfgrid)),1)){{gml_Script_slog(_inst,_other,"Clearing face grid");ds_grid_clear(gmlfgrid,0);};};gml_Script_s_choose_face(_inst,_other,argument0,gmlfgrid);gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("Player face corrected. For institution[",__yy_gml_errCheck(ds_map_find_value(gmltmap,"name"))),"|"),__yy_gml_errCheck(ds_map_find_value(gmltmap,"type"))),"] -> Picked new face using skin color["), __yy_gml_errCheck(string(ds_map_find_value(argument0,"skin")))),"] and face set["),__yy_gml_errCheck(string(ds_map_find_value(argument0,"face_set")))),"]"));};}else {{gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("Player face corrected. For institution[",__yy_gml_errCheck(ds_map_find_value(gmltmap,"name"))),"|"),__yy_gml_errCheck(ds_map_find_value(gmltmap,"type"))),"] -> Changed face set to ["),__yy_gml_errCheck(string(ds_map_find_value(argument0,"face_set")))),"]")); };};gml_Script_slog(_inst,_other,"Player hobby corrected for institution");ds_map_set(argument0,"hobby",gml_Script_s_get_random_hobby(_inst,_other));ds_map_set(argument0,"curriculum_vitae","");var gmlgrad_year=yyfminus(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstart_year),__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear))),__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(ds_map_find_value(argument0,"age")),__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst, _other)))));gml_Script_s_add_cv_entry_from_key(_inst,_other,argument0,"cv_GradHighSchool",gmlgrad_year);if(yyfequal(ds_map_find_value(argument0,"walk_on"),1)){{gml_Script_s_add_cv_entry_from_key(_inst,_other,argument0,"cv_WalkOnJoinTeamB");gml_Script_s_add_cv_entry_from_key(_inst,_other,argument0,"cv_WalkOnJoinTeamA");};}else {{gml_Script_s_add_cv_entry_from_key(_inst,_other,argument0,"cv_JoinTeam",gmlgrad_year);};};ds_map_set(argument0,"curriculum_interest",gml_Script_s_str(_inst,_other,gml_Script_s_get_random_cv_entry(_inst, _other,argument0,"cv_LameInterest")));};}else {{gml_Script_slog(_inst,_other,yyfplus(yyfplus("Player face corrected. No institution data -> Changed face set to [",__yy_gml_errCheck(string(ds_map_find_value(argument0,"face_set")))),"]"));};};}}function gml_Script_s_get_random_hobby(_inst,_other){{var gmlinsititutionType="Unknown";var gmltmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteamlist,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id);if(yyfequal(is_undefined(gmltmap), false)){{var gmlteamType=ds_map_find_value(gmltmap,"type");if(yyfnotequal(gmlteamType,"0")){{gmlinsititutionType=gmlteamType;};}else {{gmlinsititutionType="Unspecified";};};};};var gmlshortlist=ds_list_create();var gmli=1;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhobbies));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlstudy=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhobbies, gmli);var gmlweight=ds_map_find_value(gmlstudy,gmlinsititutionType);var gmlw=0;for(;yyfless(gmlw,gmlweight);(g_yyPrePostObject__=gmlw,gmlw=(g_yyPrePostObject__ instanceof Long?gmlw.add(1):++gmlw),g_yyPrePostObject__)){{ds_list_add(gmlshortlist,ds_map_find_value(gmlstudy,"uid"));}};}};var gmlnum=ds_list_size(gmlshortlist);var gmlindex=irandom_range(0,yyfminus(__yy_gml_errCheck(gmlnum),1));var gmlchosenUID=ds_list_find_value(gmlshortlist,gmlindex);gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("s_get_random_hobby for insitution type[", __yy_gml_errCheck(string(gmlinsititutionType))),"] (num:"),__yy_gml_errCheck(string(gmlnum))),") selected @index["),__yy_gml_errCheck(string(gmlindex))),"] ("),__yy_gml_errCheck(string(gmlchosenUID))),")"),__yy_gml_errCheck(ds_map_find_value(gml_Script_s_get_hobby_from_uid(_inst,_other,gmlchosenUID),"Society"))));ds_list_destroy(gmlshortlist);return gmlchosenUID;}}function gml_Script_s_get_hobby_name(_inst,_other,argument0,argument1){{var gmluid=ds_map_find_value(argument0,"hobby");var gmlhobby=gml_Script_s_get_hobby_from_uid(_inst, _other,gmluid);if(yyGetBool(argument1)){{if((yyGetBool(yyfequal(ds_map_find_value(argument0,"age"),gml_Script_s_rookie_age_internal(_inst,_other))))&&(yyGetBool(yyfgreaterequal(gmluid,1000)))){{return gml_Script_s_str(_inst,_other,"ui_FraternityRush");};};};};return ds_map_find_value(gmlhobby,"Society");}}function gml_Script_s_get_hobby_from_uid(_inst,_other,argument0){{var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhobbies));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli), g_yyPrePostObject__)){{var gmlhobby=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhobbies,gmli);if(yyfequal(ds_map_find_value(gmlhobby,"uid"),argument0)){{return gmlhobby;};};}};return undefined;}}function gml_Script_s_is_player_hobby_fraternity(_inst,_other,argument0){{return yyfgreaterequal(ds_map_find_value(argument0,"hobby"),1000);}}function gml_Script_s_get_random_study_subject(_inst,_other,argument0){{var gmlinsititutionType="Unknown";var gmltmap=ds_list_find_value(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlteamlist,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id);if(yyfequal(is_undefined(gmltmap),false)){{var gmlteamType=ds_map_find_value(gmltmap,"type");if(yyfnotequal(gmlteamType,"0")){{gmlinsititutionType=gmlteamType;};}else {{gmlinsititutionType="Unspecified";};};};};var gmlshortlist=ds_list_create();var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmajorminor));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli), g_yyPrePostObject__)){{var gmlstudy=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmajorminor,gmli);if(yyfequal(ds_map_find_value(gmlstudy,"uid"),argument0)){{continue;};};var gmlweight=ds_map_find_value(gmlstudy,gmlinsititutionType);var gmlw=0;for(;yyfless(gmlw,gmlweight);(g_yyPrePostObject__=gmlw,gmlw=(g_yyPrePostObject__ instanceof Long?gmlw.add(1):++gmlw),g_yyPrePostObject__)){{ds_list_add(gmlshortlist,ds_map_find_value(gmlstudy,"uid"));}};}};var gmlnum=ds_list_size(gmlshortlist); var gmlindex=irandom_range(0,yyfminus(__yy_gml_errCheck(gmlnum),1));var gmlchosenUID=ds_list_find_value(gmlshortlist,gmlindex);ds_list_destroy(gmlshortlist);return gmlchosenUID;}}function gml_Script_s_get_study_subject_from_uid(_inst,_other,argument0){{var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmajorminor));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlsubject=ds_list_find_value(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlmajorminor,gmli);if(yyfequal(ds_map_find_value(gmlsubject,"uid"),argument0)){{return gmlsubject;};};}};return undefined;}}function gml_Script_s_get_study_subject_name_from_uid(_inst,_other,argument0){{var gmlsubject=gml_Script_s_get_study_subject_from_uid(_inst,_other,argument0);return ds_map_find_value(gmlsubject,"Subject");}}function gml_Script_s_get_minor_name(_inst,_other,argument0,argument1){{var gmluid=ds_map_find_value(argument0,"minor");var gmlsubject=gml_Script_s_get_study_subject_from_uid(_inst, _other,gmluid);if(yyfequal(argument1,false)){{return ds_map_find_value(gmlsubject,"Subject");};};var gmlage=ds_map_find_value(argument0,"age");var gmlunveiled=false;var gmlY1=gml_Script_s_rookie_age_internal(_inst,_other);var gmlY2=yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),1);var gmlY3=yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),2);var gmlY4=yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),3);var ___sw284___=ds_map_find_value(argument0, "subject_reveal");var ___swc285___=-1;if(yyCompareVal(___sw284___,0,g_GMLMathEpsilon,false)==0){___swc285___=0;}else if(yyCompareVal(___sw284___,1,g_GMLMathEpsilon,false)==0){___swc285___=1;}else if(yyCompareVal(___sw284___,2,g_GMLMathEpsilon,false)==0){___swc285___=2;}else if(yyCompareVal(___sw284___,3,g_GMLMathEpsilon,false)==0){___swc285___=3;}else if(yyCompareVal(___sw284___,4,g_GMLMathEpsilon,false)==0){___swc285___=4;}switch(___swc285___){case 0:{break;}case 1:{if(yyfgreaterequal(gmlage,gmlY4)){{ gmlunveiled=true;};};break;}case 2:{break;}case 3:{if(yyfgreaterequal(gmlage,gmlY3)){{gmlunveiled=true;};};break;}case 4:{if(yyfgreaterequal(gmlage,gmlY4)){{gmlunveiled=true;};};break;}};if(yyGetBool(gmlunveiled)){{return ds_map_find_value(gmlsubject,"Subject");};};return gml_Script_s_str(_inst,_other,"ui_Undeclared");}}function gml_Script_s_get_major_name(_inst,_other,argument0,argument1){{var gmluid=ds_map_find_value(argument0,"major");var gmlsubject=gml_Script_s_get_study_subject_from_uid(_inst,_other, gmluid);if(yyfequal(argument1,false)){{return ds_map_find_value(gmlsubject,"Subject");};};var gmlage=ds_map_find_value(argument0,"age");var gmlunveiled=false;var gmlY1=gml_Script_s_rookie_age_internal(_inst,_other);var gmlY2=yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),1);var gmlY3=yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),2);var gmlY4=yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),3);var ___sw286___=ds_map_find_value(argument0, "subject_reveal");var ___swc287___=-1;if(yyCompareVal(___sw286___,0,g_GMLMathEpsilon,false)==0){___swc287___=0;}else if(yyCompareVal(___sw286___,1,g_GMLMathEpsilon,false)==0){___swc287___=1;}else if(yyCompareVal(___sw286___,2,g_GMLMathEpsilon,false)==0){___swc287___=2;}else if(yyCompareVal(___sw286___,3,g_GMLMathEpsilon,false)==0){___swc287___=3;}else if(yyCompareVal(___sw286___,4,g_GMLMathEpsilon,false)==0){___swc287___=4;}switch(___swc287___){case 0:{if(yyfgreaterequal(gmlage,gmlY4)){{gmlunveiled=true; };};break;}case 1:{if(yyfgreaterequal(gmlage,gmlY4)){{gmlunveiled=true;};};break;}case 2:{if(yyfgreaterequal(gmlage,gmlY3)){{gmlunveiled=true;};};break;}case 3:{if(yyfgreaterequal(gmlage,gmlY3)){{gmlunveiled=true;};};break;}case 4:{if(yyfgreaterequal(gmlage,gmlY3)){{gmlunveiled=true;};};break;}};if(yyGetBool(gmlunveiled)){{return ds_map_find_value(gmlsubject,"Subject");};};return gml_Script_s_str(_inst,_other,"ui_Undeclared");}}function gml_Script_s_get_study_info(_inst,_other,argument0){{return yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("M:", __yy_gml_errCheck(gml_Script_s_get_major_name(_inst,_other,argument0,false)))," / m:"),__yy_gml_errCheck(gml_Script_s_get_minor_name(_inst,_other,argument0,false)))," Subject reveal #"),__yy_gml_errCheck(string(ds_map_find_value(argument0,"subject_reveal"))));}}function gml_Script_s_get_random_trait(_inst,_other){{var gmlnum=ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltraits);var gmltrait=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltraits,irandom_range(0,yyfminus(__yy_gml_errCheck(gmlnum), 1)));return ds_map_find_value(gmltrait,"uid");}}function gml_Script_s_get_trait_name(_inst,_other,argument0){{var gmluid=ds_map_find_value(argument0,"trait");var gmltrait=gml_Script_s_get_trait_from_uid(_inst,_other,gmluid);return ds_map_find_value(gmltrait,"name");}}function gml_Script_s_get_trait_from_uid(_inst,_other,argument0){{var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltraits));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli), g_yyPrePostObject__)){{var gmltrait=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltraits,gmli);if(yyfequal(ds_map_find_value(gmltrait,"uid"),argument0)){{return gmltrait;};};}};return undefined;}}function gml_Script_s_get_random_hometown(_inst,_other){{var gmlnum=ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcities);var gmlcity=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcities,irandom_range(0,yyfminus(__yy_gml_errCheck(gmlnum),1)));return ds_map_find_value(gmlcity, "uid");}}function gml_Script_s_get_hometown_name(_inst,_other,argument0){{var gmluid=ds_map_find_value(argument0,"hometown");var gmlcity=gml_Script_s_get_hometown_from_uid(_inst,_other,gmluid);return yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlcity,"city")),", "),__yy_gml_errCheck(ds_map_find_value(gmlcity,"state")));}}function gml_Script_s_get_only_hometown_name(_inst,_other,argument0){{var gmluid=ds_map_find_value(argument0,"hometown");var gmlcity=gml_Script_s_get_hometown_from_uid(_inst,_other, gmluid);return ds_map_find_value(gmlcity,"city");}}function gml_Script_s_get_only_state_name(_inst,_other,argument0){{var gmluid=ds_map_find_value(argument0,"hometown");var gmlcity=gml_Script_s_get_hometown_from_uid(_inst,_other,gmluid);return ds_map_find_value(gmlcity,"state");}}function gml_Script_s_get_hometown_from_uid(_inst,_other,argument0){{var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcities));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli), g_yyPrePostObject__)){{var gmlcity=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcities,gmli);if(yyfequal(ds_map_find_value(gmlcity,"uid"),argument0)){{return gmlcity;};};}};return undefined;}}function gml_Script_s_pick_rand_epilogue_uid(_inst,_other,argument0){{var gmllist=ds_list_create();var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlepilogue));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ {var gmlentry=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlepilogue,gmli);if(yyfequal(ds_map_find_value(gmlentry,"token"),argument0)){{ds_list_add(gmllist,ds_map_find_value(gmlentry,"uid"));};};}};var gmlres=(-4);if(yyfgreater(ds_list_size(gmllist),0)){{var gmlpick=irandom_range(0,yyfminus(__yy_gml_errCheck(ds_list_size(gmllist)),1));gmlres=ds_list_find_value(gmllist,gmlpick);};};ds_list_destroy(gmllist);return gmlres;}}function gml_Script_s_get_epilogue_name(_inst,_other,argument0, argument1){{var gmlfallback=(-4);var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlepilogue));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlentry=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlepilogue,gmli);if(yyfequal(ds_map_find_value(gmlentry,"token"),argument0)){{gmlfallback=gmlentry;if(yyfequal(ds_map_find_value(gmlentry,"uid"),argument1)){{return ds_map_find_value(gmlentry, "value");};};};};}};if(yyfnotequal(gmlfallback,(-4))){{return ds_map_find_value(gmlfallback,"value");};};return "UNKNOWN";}}function gml_Script_s_epilogue_tests(_inst,_other){{if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlepilogue,(-4))){{return;};};gml_Script_slog(_inst,_other,"EPILOGUE TESTS");var gmlres="";var gmlepi_cutStory=gml_Script_s_pick_epilogue_story(_inst,_other,"epi_cut");gml_Script_slog(_inst,_other,yyfplus(yyfplus("epi_cutStory[",__yy_gml_errCheck(gmlepi_cutStory)),"]")); gmlres=gml_Script_s_epilogue_story_to_str(_inst,_other,gmlepi_cutStory);gml_Script_slog(_inst,_other,gmlres);var gmlepi_graduatedStory1=gml_Script_s_pick_epilogue_story(_inst,_other,"epi_graduated");gml_Script_slog(_inst,_other,yyfplus(yyfplus("epi_graduatedStory1[",__yy_gml_errCheck(gmlepi_graduatedStory1)),"]"));gmlres=gml_Script_s_epilogue_story_to_str(_inst,_other,gmlepi_graduatedStory1);gml_Script_slog(_inst,_other,gmlres);var gmlepi_graduatedStory2=gml_Script_s_pick_epilogue_story(_inst,_other, "epi_graduated");gml_Script_slog(_inst,_other,yyfplus(yyfplus("epi_graduatedStory2[",__yy_gml_errCheck(gmlepi_graduatedStory2)),"]"));gmlres=gml_Script_s_epilogue_story_to_str(_inst,_other,gmlepi_graduatedStory2);gml_Script_slog(_inst,_other,gmlres);}}function gml_Script_s_pick_epilogue_story(_inst,_other,argument0){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{return "";};};if(yyGetBool(gml_Script_s_college_academics_type(_inst,_other,"Military"))){{argument0=yyfplus("epiMilitary_",__yy_gml_errCheck(string_delete(argument0, 1,4)));};};var gmlfile=file_text_open_read(gml_Script_s_select_override_lang_file(_inst,_other));if(yyfequal(gmlfile,(-1))){{return;};};var gmllist=ds_list_create();while(!yyGetBool(file_text_eof(gmlfile))){{var gmltxt=file_text_read_string(gmlfile);file_text_readln(gmlfile);if(yyGetBool(string_count(argument0,gmltxt))){{var gmlpos=string_pos(" ",gmltxt);gmltxt=string_copy(gmltxt,1,yyfminus(__yy_gml_errCheck(gmlpos),1));ds_list_add(gmllist,gmltxt);};};}};file_text_close(gmlfile);var gmllocKey="";if(yyfgreater(ds_list_size(gmllist), 0)){{var gmlpick=irandom_range(0,yyfminus(__yy_gml_errCheck(ds_list_size(gmllist)),1));gmllocKey=ds_list_find_value(gmllist,gmlpick);};};ds_list_destroy(gmllist);if(yyfequal(gmllocKey,"")){{return "";};};var gmllocStr=gml_Script_s_str(_inst,_other,gmllocKey);var gmlepi_tokens=ds_list_create();var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlepilogue));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlentry=ds_list_find_value(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlepilogue,gmli);if(yyfequal(ds_list_find_index(gmlepi_tokens,ds_map_find_value(gmlentry,"token")),(-1))){{ds_list_add(gmlepi_tokens,ds_map_find_value(gmlentry,"token"));};};}};var gmlparam="";var gmli=0;for(;yyfless(gmli,ds_list_size(gmlepi_tokens));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmltok=ds_list_find_value(gmlepi_tokens,gmli);if(yyfequal(string_pos(gmltok,gmllocStr),0)){{continue;};};var gmlparamUID=gml_Script_s_pick_rand_epilogue_uid(_inst, _other,gmltok);gmlparam=yyfplus("|",__yy_gml_errCheck(gmlparamUID));gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("s_pick_epilogue_story picked for tag[",__yy_gml_errCheck(argument0)),"] with token["),__yy_gml_errCheck(gmltok)),"] the param["),__yy_gml_errCheck(gmlparamUID)),"] which is ["),__yy_gml_errCheck(gml_Script_s_get_epilogue_name(_inst,_other,gmltok,gmlparamUID))),"]"));break;}};ds_list_destroy(gmlepi_tokens);return yyfplus(__yy_gml_errCheck(gmllocKey), __yy_gml_errCheck(gmlparam));}}function gml_Script_s_epilogue_story_to_str(_inst,_other,argument0){{if(yyfequal(argument0,"")){{return "";};};var gmlsep_pos=string_pos("|",argument0);if(yyfequal(gmlsep_pos,0)){{return gml_Script_s_str(_inst,_other,argument0);};};var gmllocKey=string_copy(argument0,1,yyfminus(__yy_gml_errCheck(gmlsep_pos),1));var gmlparamUID=string_copy(argument0,yyfplus(__yy_gml_errCheck(gmlsep_pos),1),string_length(argument0));var gmllocStr=gml_Script_s_str(_inst,_other,gmllocKey);var gmlhc_map=gml_Script_s_get_staff(_inst, _other,100);if(yyGetBool(gmlhc_map)){{gmllocStr=string_replace_all(gmllocStr,"$headcoachlastname",ds_map_find_value(gmlhc_map,"lname"));gmllocStr=string_replace_all(gmllocStr,"$headcoachname",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlhc_map,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(gmlhc_map,"lname"))));};};var gmlepi_tokens=ds_list_create();var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlepilogue));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli), g_yyPrePostObject__)){{var gmlentry=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlepilogue,gmli);if(yyfequal(ds_list_find_index(gmlepi_tokens,ds_map_find_value(gmlentry,"token")),(-1))){{ds_list_add(gmlepi_tokens,ds_map_find_value(gmlentry,"token"));};};}};var gmli=0;for(;yyfless(gmli,ds_list_size(gmlepi_tokens));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmltok=ds_list_find_value(gmlepi_tokens,gmli);if(yyfequal(string_pos(gmltok, gmllocStr),0)){{continue;};};var gmlparamStr=gml_Script_s_get_epilogue_name(_inst,_other,gmltok,real(gmlparamUID));gmllocStr=string_replace_all(gmllocStr,yyfplus("$",__yy_gml_errCheck(gmltok)),gmlparamStr);break;}};ds_list_destroy(gmlepi_tokens);return gmllocStr;}}function gml_Script_s_add_cv_entry_from_key(_inst,_other,argument0,argument1,argument2){{if(yyfequal(argument2,_inst.undefined)){argument2=(-1);};}{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{return;};};if(yyGetBool(gml_Script_s_college_academics_type(_inst, _other,"Military"))){{argument1=yyfplus("cvMilitary_",__yy_gml_errCheck(string_delete(argument1,1,3)));};};gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("s_add_cv_entry_from_key player[",__yy_gml_errCheck(ds_map_find_value(argument0,"lname"))),"] cv["),__yy_gml_errCheck(argument1)),"] previous["),__yy_gml_errCheck(ds_map_find_value(argument0,"curriculum_vitae"))),"]"));var gmlaward_txt=gml_Script_s_str(_inst,_other,gml_Script_s_get_random_cv_entry(_inst,_other,argument0, argument1));gmlaward_txt=gml_Script_s_parse_player_message(_inst,_other,gmlaward_txt,argument0);gml_Script_s_add_cv_entry_direct(_inst,_other,argument0,gmlaward_txt,argument2);}}function gml_Script_s_add_cv_entry_direct(_inst,_other,argument0,argument1,argument2){{if(yyfequal(argument2,_inst.undefined)){argument2=(-1);};}{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{return;};};if(yyfequal(argument2,(-1))){{argument2=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstart_year), __yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear));};};var gmlmsg="";if(yyfnotequal(argument1,"")){{gmlmsg=yyfplus(yyfplus(__yy_gml_errCheck(string(argument2)),"-"),__yy_gml_errCheck(argument1));};};if(yyfgreater(string_length(ds_map_find_value(argument0,"curriculum_vitae")),0)){{gmlmsg=yyfplus("|",__yy_gml_errCheck(gmlmsg));};};gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("s_add_cv_entry_direct player[",__yy_gml_errCheck(ds_map_find_value(argument0, "lname"))),"] award_txt["),__yy_gml_errCheck(argument1)),"] previous["),__yy_gml_errCheck(ds_map_find_value(argument0,"curriculum_vitae"))),"]"));ds_map_set(argument0,"curriculum_vitae",yyfplus(__yy_gml_errCheck(ds_map_find_value(argument0,"curriculum_vitae")),__yy_gml_errCheck(gmlmsg)));}}function gml_Script_s_get_random_cv_entry(_inst,_other,argument0,argument1){{var gmlres=gml_Script_s_extract_cv_entry_from_pool(_inst,_other,argument0,argument1);if(yyfnotequal(gmlres,"")){{gml_Script_slog(_inst, _other,yyfplus(yyfplus("s_get_random_cv_entry.1: Existing list [",__yy_gml_errCheck(string(gmlres))),"]"));return gmlres;};};gml_Script_slog(_inst,_other,"Repopulate curriculum vitate tags...");var gmlignore_pattern="_news";gml_Script_s_add_tag_matches_to_list(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcurriculum_tags,argument1,gml_Script_s_select_lang_file(_inst,_other),gmlignore_pattern);gml_Script_s_add_tag_matches_to_list(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcurriculum_tags, argument1,gml_Script_s_select_override_lang_file(_inst,_other),gmlignore_pattern);var gmlres=gml_Script_s_extract_cv_entry_from_pool(_inst,_other,argument0,argument1);if(yyfnotequal(gmlres,"")){{gml_Script_slog(_inst,_other,yyfplus(yyfplus("s_get_random_cv_entry.2: Fresh list [",__yy_gml_errCheck(string(gmlres))),"]"));return gmlres;};};gml_Script_slog(_inst,_other,"s_get_random_cv_entry.3: Failed");return "";}}function gml_Script_s_extract_cv_entry_from_pool(_inst,_other,argument0,argument1){{var gmli=yyfminus(__yy_gml_errCheck(ds_list_size(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlcurriculum_tags)),1);for(;yyfgreaterequal(gmli,0);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.subtract(1):--gmli),g_yyPrePostObject__)){{var gmlstr=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcurriculum_tags,gmli);if(yyGetBool(string_count(argument1,gmlstr))){{ds_list_delete(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcurriculum_tags,gmli);return gmlstr;};};}};return "";}}function gml_Script_s_set_cv_list_from_player(_inst, _other,argument0){{var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_cv));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_map_destroy(ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_cv,gmli));}};ds_list_clear(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_cv);if((yyGetBool(yyfequal(ds_map_exists(argument0,"curriculum_vitae"),false)))||(yyGetBool(yyfequal(string_length(ds_map_find_value(argument0, "curriculum_vitae")),0)))){{gml_Script_s_add_cv_list_entry(_inst,_other,gml_Script_s_str(_inst,_other,"ui_No_Awards"));};}else {{var gmlcv_string=ds_map_find_value(argument0,"curriculum_vitae");gml_Script_slog(_inst,_other,yyfplus(yyfplus("s_set_cv_list_from_player [",__yy_gml_errCheck(gmlcv_string)),"]"));var gmlachievements=string_split(gmlcv_string,"|");var gmli=yyfminus(__yy_gml_errCheck(array_length_1d(gmlachievements)),1);for(;yyfgreaterequal(gmli,0);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.subtract(1):--gmli), g_yyPrePostObject__)){{var gmlachievement_chunks=gml_Script_split_into_chunks(_inst,_other,gmlachievements[__yy_gml_array_check_index(gmli,gmlachievements)],55);var gmlj=0;for(;yyfless(gmlj,array_length_1d(gmlachievement_chunks));(g_yyPrePostObject__=gmlj,gmlj=(g_yyPrePostObject__ instanceof Long?gmlj.add(1):++gmlj),g_yyPrePostObject__)){{gml_Script_s_add_cv_list_entry(_inst,_other,gmlachievement_chunks[__yy_gml_array_check_index(gmlj,gmlachievement_chunks)]);}};}};};};gml_Script_s_add_cv_list_entry(_inst, _other,"");gml_Script_s_add_cv_list_entry(_inst,_other,gml_Script_s_str(_inst,_other,"cv_InterestsTitle"));gml_Script_s_add_cv_list_entry(_inst,_other,gml_Script_s_get_hobby_name(_inst,_other,argument0,true));gml_Script_s_add_cv_list_entry(_inst,_other,ds_map_find_value(argument0,"curriculum_interest"));}}function gml_Script_s_add_cv_list_entry(_inst,_other,argument0){{var gmlentry_cv=ds_map_create();ds_map_set(gmlentry_cv,"tag","");ds_map_set(gmlentry_cv,"description",argument0);ds_map_set(gmlentry_cv, "achieved",1);ds_list_add(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_cv,gmlentry_cv);}}function gml_Script_split_into_chunks(_inst,_other,argument0,argument1){{var gmlchunks=__yy_gml_array_create([]);var gmlstart_index=0;while(yyfless(gmlstart_index,string_length(argument0))){{var gmlend_index=yyfplus(__yy_gml_errCheck(gmlstart_index),__yy_gml_errCheck(argument1));if(yyfgreater(gmlend_index,string_length(argument0))){{gmlend_index=string_length(argument0);};}else {{while((yyGetBool(yyfnotequal(string_char_at(argument0, gmlend_index)," ")))&&(yyGetBool(yyfgreater(gmlend_index,gmlstart_index)))){{(g_yyPrePostObject__=gmlend_index,gmlend_index=(g_yyPrePostObject__ instanceof Long?gmlend_index.subtract(1):--gmlend_index),g_yyPrePostObject__);}};if(yyfequal(gmlend_index,gmlstart_index)){{gmlend_index=yyfplus(__yy_gml_errCheck(gmlstart_index),__yy_gml_errCheck(argument1));};};};};var gmlchunk=string_copy(argument0,yyfplus(__yy_gml_errCheck(gmlstart_index),1),yyfminus(__yy_gml_errCheck(gmlend_index),__yy_gml_errCheck(gmlstart_index))); if(yyfgreater(array_length_1d(gmlchunks),0)){{gmlchunk=yyfplus(" ",__yy_gml_errCheck(gmlchunk));};};gmlchunks=__yy_gml_array_check(gmlchunks,2879746761);gmlchunks[__yy_gml_array_check_index_set(array_length_1d(gmlchunks))]=gmlchunk;gmlstart_index=gmlend_index;}};return gmlchunks;}}function gml_Script_btn_response_player_meeting_academic_coaching(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);{var __yy__v327=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v328 in __yy__v327){if(!__yy__v327.hasOwnProperty(__yy__v328))continue; var __yy__v329=__yy__v327[__yy__v328];{ds_map_set(__yy__v329.gmlplayer_profile,"meetingdone",1);var gmlmeetcost=gml_Script_s_get_meeting_cost_extend_contract(__yy__v329,_inst,__yy__v329.gmlplayer_profile);ds_map_set(__yy__v329.gmlmap_options,"op_credits_purchased",max(yyfminus(__yy_gml_errCheck(ds_map_find_value(__yy__v329.gmlmap_options,"op_credits_purchased")),__yy_gml_errCheck(gmlmeetcost)),0));__yy__v329.gmlcoach_credit=yyfminus(__yy__v329.gmlcoach_credit,gmlmeetcost);if(yyfless(__yy__v329.gmlcoach_credit, 0)){__yy__v329.gmlcoach_credit=0;};gml_Script_s_add_percent_grade(__yy__v329,_inst,__yy__v329.gmlplayer_profile,10);gml_Script_s_clear_party_meter(__yy__v329,_inst,__yy__v329.gmlplayer_profile);gml_Script_s_savegame(__yy__v329,_inst);room_goto(YYASSET_REF(0x03000016));}}};}}function gml_Script_s_get_meeting_cost_academic_coaching(_inst,_other,argument0){{var gmlpmap=argument0;var gmlgrade=ds_map_find_value(gmlpmap,"percent_grade");if(yyflessequal(gmlgrade,72)){{return 4;};};if(yyflessequal(gmlgrade, 79)){{return 3;};};if(yyflessequal(gmlgrade,86)){{return 2;};};if(yyflessequal(gmlgrade,94)){{return 1;};};return 0;}}function gml_Script_s_is_co_mode(_inst,_other){{return 1;}}function gml_Script_s_is_co_postseason(_inst,_other,argument0){{if(yyfequal(argument0,_inst.undefined)){argument0=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek;};}{return(yyGetBool(gml_Script_s_is_co_mode(_inst,_other)))&&(yyGetBool(yyfgreaterequal(argument0,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_postseason))); }}function gml_Script_s_is_co_actual_postseason(_inst,_other,argument0){{if(yyfequal(argument0,_inst.undefined)){argument0=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek;};}{return(yyGetBool(gml_Script_s_is_co_mode(_inst,_other)))&&(yyGetBool(yyfgreaterequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_postseason),__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlextra_weeks_endofseason)))));}}function gml_Script_s_get_postseason_chunk(_inst, _other,argument0){{if(yyfequal(argument0,_inst.undefined)){argument0=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek;};}{if(yyfless(argument0,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_postseason)){return 0;};return yyfplus(yyfminus(__yy_gml_errCheck(argument0),__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_postseason)),1);}}function gml_Script_s_is_earlier_than(_inst,_other,argument0){{return yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek, argument0);}}function gml_Script_s_get_skip_to_week(_inst,_other){{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){return yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular;};return 18;}}function gml_Script_s_is_co_team(_inst,_other,argument0){{if((yyGetBool(argument0))&&(yyGetBool(yyfgreaterequal(ds_map_find_value(argument0,"uid"),32)))){return true;};return false;}}function gml_Script_s_get_conference_list(_inst,_other,argument0,argument1){{if(yyfequal(argument1,_inst.undefined)){ argument1=true;};}{var gmlcl=__yy_gml_array_create([]);var gmli=0;for(;yyfless(gmli,array_length(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlconferences));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{if(yyfequal(yyInst(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlconferences[__yy_gml_array_check_index(gmli,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlconferences)]).gmltier,argument0)){if((yyGetBool(!yyGetBool(argument1)))||(yyGetBool((yyGetBool(argument1))&&(yyGetBool(real(yyInst(_inst, _other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlconferences[__yy_gml_array_check_index(gmli,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlconferences)]).gmlactive)))))){array_push(gmlcl,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlconferences[__yy_gml_array_check_index(gmli,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlconferences)]);};};}};return gmlcl;}}function gml_Script_s_get_team_list_by_tier(_inst,_other,argument0){{var gmltl=__yy_gml_array_create([]);var gmli=0;for(;yyfless(gmli, ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteamlist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlteam=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteamlist,gmli);if(yyfequal(gml_Script_s_get_subdivision(_inst,_other,gmlteam),argument0)){{array_push(gmltl,gmlteam);};};}};return gmltl;}}function gml_Script_s_get_team_list(_inst,_other,argument0,argument1){{if(yyfequal(argument1,_inst.undefined)){ argument1=(-4);};}{var gmltl=__yy_gml_array_create([]);var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteamlist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlteam=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteamlist,gmli);if((yyGetBool(yyfequal(ds_map_find_value(gmlteam,"conference"),argument0)))&&(yyGetBool((yyGetBool(yyfequal(ds_map_find_value(gmlteam,"division"), argument1)))||(yyGetBool(yyfequal(argument1,(-4))))))){{array_push(gmltl,gmlteam);};};}};return gmltl;}}function gml_Script_s_count_joboffers_conference(_inst,_other,argument0){{var gmltl=gml_Script_s_get_team_list(_inst,_other,yyInst(_inst,_other,argument0).gmluid);var gmlcount=0;var gmli=0;for(;yyfless(gmli,array_length(gmltl));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{if(yyGetBool(gml_Script_s_team_interested(_inst,_other,gmltl[__yy_gml_array_check_index(gmli, gmltl)]))){(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__);};}};return gmlcount;}}function gml_Script_s_co_get_year(_inst,_other){{{var __yy__v330=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v331 in __yy__v330){if(!__yy__v330.hasOwnProperty(__yy__v331))continue;var __yy__v332=__yy__v330[__yy__v331];return yyfplus(__yy_gml_errCheck(__yy__v332.gmlstart_year),__yy_gml_errCheck(__yy__v332.gmlyear));}};}}function gml_Script_s_get_my_conference_uid(_inst, _other){{return ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam,"conference");}}function gml_Script_s_get_my_conference_data(_inst,_other){{return gml_Script_s_get_struct_in_array_by_uid(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlconferences,gml_Script_s_get_my_conference_uid(_inst,_other));}}function gml_Script_s_get_conference_data(_inst,_other,argument0){{return gml_Script_s_get_struct_in_array_by_uid(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlconferences, argument0);}}function gml_Script_s_get_my_division(_inst,_other){{return ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam,"division");}}function gml_Script_s_get_subdivision(_inst,_other,argument0){{var gmlconference=gml_Script_s_get_struct_in_array_by_uid(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlconferences,ds_map_find_value(argument0,"conference"));return(yyfnotequal(gmlconference,(-4))?yyInst(_inst,_other,gmlconference).gmltier:(-4));}}function gml_Script_s_get_team_pct_cnf(_inst, _other,argument0){{var gmlwins=real(ds_map_find_value(argument0,"wins_cnf"));var gmllosses=real(ds_map_find_value(argument0,"losses_cnf"));var gmlgames=yyfplus(__yy_gml_errCheck(gmlwins),__yy_gml_errCheck(gmllosses));if(yyfgreater(gmlgames,0)){return yyfdivide(__yy_gml_errCheck(gmlwins),__yy_gml_errCheck(gmlgames));};return 0;}}function gml_Script_s_is_independent_team(_inst,_other,argument0){{var gmlconf=gml_Script_s_get_conference_data(_inst,_other,ds_map_find_value(argument0,"conference"));return gml_Script_s_is_independent_conference(_inst, _other,gmlconf);}}function gml_Script_s_is_independent_conference_id(_inst,_other,argument0){{var gmlconf=gml_Script_s_get_conference_data(_inst,_other,argument0);return gml_Script_s_is_independent_conference(_inst,_other,gmlconf);}}function gml_Script_s_is_independent_conference(_inst,_other,argument0){{if((yyGetBool(yyfnotequal(argument0,(-4))))&&(yyGetBool(yyfequal(yyInst(_inst,_other,argument0).gmlprestige,0)))){return true;};return false;}}function gml_Script_s_is_co_bowl_week(_inst,_other,argument0){ {if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){return false;};var gmlfix=gml_Script_s_get_player_schedule_fixture_by_week(_inst,_other,argument0);return gml_Script_s_is_co_bowl_fix(_inst,_other,gmlfix);}}function gml_Script_s_is_co_bowl_fix(_inst,_other,argument0){{if((yyGetBool(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))))||(yyGetBool(yyfequal(argument0,(-4))))){return false;};var gmlcomp=gml_Script_s_get_competition(_inst,_other,ds_map_find_value(argument0,"cid"));if(yyGetBool(gml_Script_s_is_co_bowl_comp(_inst, _other,gmlcomp))){{if((yyGetBool(is_string(ds_map_find_value(argument0,"mid"))))&&(yyGetBool(yyfnotequal(ds_map_find_value(argument0,"mid"),"")))&&(yyGetBool(yyfnotequal(ds_map_find_value(argument0,"mid"),"1.01")))){return false;};return true;};};return false;}}function gml_Script_s_is_co_bowl_comp(_inst,_other,argument0){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){return false;};if(!yyGetBool(argument0)){return false;};if((yyGetBool(is_string(yyInst(_inst,_other,argument0).gmlcity)))&&(yyGetBool(yyfnotequal(yyInst(_inst, _other,argument0).gmlcity,"")))){return true;};return false;}}function gml_Script____struct___105_s_get_object_data_gml_GlobalScript_s_college_tools(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___105_s_get_object_data_gml_GlobalScript_s_college_tools";}if(gml_Script____struct___105_s_get_object_data_gml_GlobalScript_s_college_tools.prototype.__type===undefined){gml_Script____struct___105_s_get_object_data_gml_GlobalScript_s_college_tools.prototype.__type="gml_Script____struct___105_s_get_object_data_gml_GlobalScript_s_college_tools"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___105_s_get_object_data_gml_GlobalScript_s_college_tools.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlobject=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlsprite=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.layer=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.x=$$args[__yy_gml_array_check_index(2+(3),$$args)];_inst.y=$$args[__yy_gml_array_check_index(2+(4),$$args)];_inst.gmlxs=$$args[__yy_gml_array_check_index(2+(5), $$args)];_inst.gmlys=$$args[__yy_gml_array_check_index(2+(6),$$args)];_inst.gmlw=$$args[__yy_gml_array_check_index(2+(7),$$args)];_inst.gmlh=$$args[__yy_gml_array_check_index(2+(8),$$args)];}}}}function gml_Script_s_get_object_data(_inst,_other,argument0){{return __yy_gml_object_create(_inst,(_inst.gml___struct___105=__yy_method(_inst,gml_Script____struct___105_s_get_object_data_gml_GlobalScript_s_college_tools)),yyInst(_inst,_other,argument0).object_index,yyInst(_inst,_other,argument0).sprite_index, yyInst(_inst,_other,argument0).layer,yyInst(_inst,_other,argument0).x,yyInst(_inst,_other,argument0).y,yyInst(_inst,_other,argument0).image_xscale,yyInst(_inst,_other,argument0).image_yscale,yyInst(_inst,_other,argument0).sprite_width,yyInst(_inst,_other,argument0).sprite_height);}}function gml_Script_s_get_map(_inst,_other,argument0,argument1,argument2){{if(yyfequal(argument0,(-4))){return argument2;};if(yyfequal(ds_exists(argument0,1),false)){return argument2;};var gmlvalue=ds_map_find_value(argument0, argument1);if(yyGetBool(is_undefined(gmlvalue))){return argument2;};return gmlvalue;}}function gml_Script_s_get_map_real(_inst,_other,argument0,argument1,argument2){{if(yyfequal(argument0,(-4))){return argument2;};if(yyfequal(ds_exists(argument0,1),false)){return argument2;};var gmlvalue=ds_map_find_value(argument0,argument1);if(yyGetBool(is_undefined(gmlvalue))){return argument2;};return real(gmlvalue);}}function gml_Script_s_map_swap(_inst,_other,argument0,argument1,argument2){{if(yyfequal(argument0,(-4))){ return;};var gmltemp=ds_map_find_value(argument0,argument1);ds_map_set(argument0,argument1,ds_map_find_value(argument0,argument2));ds_map_set(argument0,argument2,gmltemp);}}function gml_Script_s_get_save_slot(_inst,_other){{return ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"saveslot");}}function gml_Script_s_get_week_name(_inst,_other,argument0,argument1){{if(yyfequal(argument0,_inst.undefined)){argument0=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek;};if(yyfequal(argument1, _inst.undefined)){argument1=false;};}{var gmlchunk=gml_Script_s_get_postseason_chunk(_inst,_other,argument0);if(yyGetBool(argument1)){var ___sw288___=gmlchunk;var ___swc289___=-1;if(yyCompareVal(___sw288___,0,g_GMLMathEpsilon,false)==0){___swc289___=0;}else if(yyCompareVal(___sw288___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw288___,2,g_GMLMathEpsilon,false)==0){___swc289___=1;}switch(___swc289___){case 0:{return gml_Script_s_strf(_inst,_other,"W%1",argument0);}case 1:{return gml_Script_s_strf(_inst, _other,"ES%1",gmlchunk);}default :{return gml_Script_s_strf(_inst,_other,"PS%1",yyfminus(__yy_gml_errCheck(gmlchunk),2));}};}else {var ___sw290___=gmlchunk;var ___swc291___=-1;if(yyCompareVal(___sw290___,0,g_GMLMathEpsilon,false)==0){___swc291___=0;}else if(yyCompareVal(___sw290___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw290___,2,g_GMLMathEpsilon,false)==0){___swc291___=1;}switch(___swc291___){case 0:{return gml_Script_s_strf(_inst,_other,"%1 %2",gml_Script_s_str(_inst,_other,"ui_Week"),argument0); }case 1:{return gml_Script_s_strf(_inst,_other,"%1 %2",gml_Script_s_str(_inst,_other,"ui_SeasonEnd"),gmlchunk);}default :{return gml_Script_s_strf(_inst,_other,"%1 %2",gml_Script_s_str(_inst,_other,"ui_Postseason"),yyfminus(__yy_gml_errCheck(gmlchunk),2));}};};}}function gml_Script_s_get_my_conference_division_string(_inst,_other,argument0,argument1,argument2){{if(yyfequal(argument2,_inst.undefined)){argument2=false;};}{gml_Script_slog(_inst,_other,yyfplus("s_get_my_conference_division_string conferences size: ", __yy_gml_errCheck(string(array_length_1d(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlconferences)))));var gmlconference=gml_Script_s_get_struct_in_array_by_uid(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlconferences,argument0);if(yyfequal(gmlconference,(-4))){{gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus("error! conference not found! for _conference ",__yy_gml_errCheck(string(argument0)))," and _division "),__yy_gml_errCheck(string(argument1))));};};var gmlcnf_name=(yyGetBool(argument2)?yyInst(_inst, _other,gmlconference).gmltla:yyInst(_inst,_other,gmlconference).gmlname);if(yyfless(yyInst(_inst,_other,gmlconference).gmldivisions,2)){return gmlcnf_name;};if(yyfequal(argument1,0)){return yyfplus(yyfplus(__yy_gml_errCheck(gmlcnf_name)," "),__yy_gml_errCheck(yyInst(_inst,_other,gmlconference).gmldiv_0_name));}else {return yyfplus(yyfplus(__yy_gml_errCheck(gmlcnf_name)," "),__yy_gml_errCheck(yyInst(_inst,_other,gmlconference).gmldiv_1_name));};}}function gml_Script_s_get_fix_competition_string(_inst, _other,argument0){{if(yyfequal(argument0,(-4))){return(-4);};return gml_Script_s_get_competition_string(_inst,_other,ds_map_find_value(argument0,"cid"));}}function gml_Script_s_get_competition_string(_inst,_other,argument0){{var gmlcomp=gml_Script_s_get_competition(_inst,_other,argument0);if(yyfnotequal(gmlcomp,(-4))){return gml_Script_s_strf(_inst,_other,"%1 %2",gml_Script_s_co_get_year(_inst,_other),yyInst(_inst,_other,gmlcomp).gmlname);};return(-4);}}function gml_Script_s_get_fix_location_string(_inst, _other,argument0){{var gmlcomp=gml_Script_s_get_competition(_inst,_other,ds_map_find_value(argument0,"cid"));if(yyGetBool(gml_Script_s_is_co_bowl_fix(_inst,_other,argument0))){return gml_Script_s_strfl(_inst,_other,"%1, %2",yyInst(_inst,_other,gmlcomp).gmlcity,yyInst(_inst,_other,gmlcomp).gmlstate);};if(yyfequal(ds_map_find_value(argument0,"home_team"),(-1))){return "";};return yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_at"))," "),__yy_gml_errCheck(gml_Script_s_get_team_name_by_id(_inst, _other,ds_map_find_value(argument0,"home_team"))));}}function gml_Script_s_get_my_subdivision_string(_inst,_other,argument0){{return gml_Script_s_get_subdiv_name(_inst,_other,yyInst(_inst,_other,argument0).gmltier);}}function gml_Script_s_get_subdiv_name(_inst,_other,argument0){{if(yyGetBool(gml_Script_s_custom_data_exists(_inst,_other))){return yyInst(_inst,_other,gml_Script_s_get_custom_data_subdivision(_inst,_other,argument0)).gmlname;};var ___sw292___=real(argument0);var ___swc293___=-1;if(yyCompareVal(___sw292___, 1,g_GMLMathEpsilon,false)==0){___swc293___=0;}else if(yyCompareVal(___sw292___,2,g_GMLMathEpsilon,false)==0){___swc293___=1;}switch(___swc293___){case 0:{return gml_Script_s_str(_inst,_other,"ui_Major");}case 1:{return gml_Script_s_str(_inst,_other,"ui_Minor");}};return "N/A";}}function gml_Script_s_joboffers_string(_inst,_other,argument0){{var ___sw294___=argument0;var ___swc295___=-1;if(yyCompareVal(___sw294___,0,g_GMLMathEpsilon,false)==0){___swc295___=0;}else if(yyCompareVal(___sw294___,1,g_GMLMathEpsilon, false)==0){___swc295___=1;}switch(___swc295___){case 0:{return gml_Script_s_str(_inst,_other,"ui_NoOffers");}case 1:{return gml_Script_s_str(_inst,_other,"ui_OneOffer");}default :{return yyfplus(yyfplus(__yy_gml_errCheck(string(argument0))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Offers")));}};}}function gml_Script_s_get_pct_string(_inst,_other,argument0){{var gmlpct_s=string_format(argument0,0,3);gmlpct_s=string_replace(gmlpct_s,"0.",".");return gmlpct_s;}}function gml_Script_s_get_comp_level_str(_inst, _other,argument0){{var ___sw296___=real(argument0);var ___swc297___=-1;if(yyCompareVal(___sw296___,1,g_GMLMathEpsilon,false)==0){___swc297___=0;}else if(yyCompareVal(___sw296___,2,g_GMLMathEpsilon,false)==0){___swc297___=1;}else if(yyCompareVal(___sw296___,3,g_GMLMathEpsilon,false)==0){___swc297___=2;}else if(yyCompareVal(___sw296___,4,g_GMLMathEpsilon,false)==0){___swc297___=3;}else if(yyCompareVal(___sw296___,5,g_GMLMathEpsilon,false)==0){___swc297___=4;}switch(___swc297___){case 0:{return gml_Script_s_str(_inst, _other,"ui_TheFinal");}case 1:{return gml_Script_s_str(_inst,_other,"ui_TheSemiFinals");}case 2:{return gml_Script_s_str(_inst,_other,"ui_TheQuarterFinals");}case 3:{return gml_Script_s_str(_inst,_other,"ui_Round2");}case 4:{return gml_Script_s_str(_inst,_other,"ui_Round1");}};return "-";}}function gml_Script_s_get_comp_level_str_plain(_inst,_other,argument0){{var ___sw298___=real(argument0);var ___swc299___=-1;if(yyCompareVal(___sw298___,1,g_GMLMathEpsilon,false)==0){___swc299___=0;}else if(yyCompareVal(___sw298___, 2,g_GMLMathEpsilon,false)==0){___swc299___=1;}else if(yyCompareVal(___sw298___,3,g_GMLMathEpsilon,false)==0){___swc299___=2;}else if(yyCompareVal(___sw298___,4,g_GMLMathEpsilon,false)==0){___swc299___=3;}else if(yyCompareVal(___sw298___,5,g_GMLMathEpsilon,false)==0){___swc299___=4;}switch(___swc299___){case 0:{return gml_Script_s_str(_inst,_other,"ui_Final");}case 1:{return gml_Script_s_str(_inst,_other,"ui_SemiFinal");}case 2:{return gml_Script_s_str(_inst,_other,"ui_QuarterFinal");}case 3:{return gml_Script_s_str(_inst, _other,"ui_Round2");}case 4:{return gml_Script_s_str(_inst,_other,"ui_Round1");}};return "-";}}function gml_Script_s_get_difficulty_str(_inst,_other,argument0){{if(yyfequal(argument0,_inst.undefined)){argument0=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_difficulty;};}{return gml_Script_s_str(_inst,_other,gml_Script_s_strfl(_inst,_other,"ui_Difficulty%1",argument0));}}function gml_Script_s_is_ps_chunk_filled(_inst,_other,argument0){{{var __yy__v333=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v334 in __yy__v333){ if(!__yy__v333.hasOwnProperty(__yy__v334))continue;var __yy__v335=__yy__v333[__yy__v334];{var gmlfix;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v335.gmlschedule));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlfix=ds_list_find_value(__yy__v335.gmlschedule,gmli);if((yyGetBool(yyfequal(real(ds_map_find_value(gmlfix,"week")),argument0)))&&(yyGetBool(!yyGetBool(gml_Script_s_is_fix_filled(__yy__v335,_inst,gmlfix))))){{return false;};}; }};}}};return true;}}function gml_Script_s_is_week_played(_inst,_other,argument0){{argument0=real(argument0);{var __yy__v336=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v337 in __yy__v336){if(!__yy__v336.hasOwnProperty(__yy__v337))continue;var __yy__v338=__yy__v336[__yy__v337];{var gmlfix;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v338.gmlschedule));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlfix=ds_list_find_value(__yy__v338.gmlschedule, gmli);if((yyGetBool(yyfequal(real(ds_map_find_value(gmlfix,"week")),argument0)))&&(yyGetBool(!yyGetBool(gml_Script_s_is_fix_played(__yy__v338,_inst,gmlfix))))){{return false;};};}};}}};return true;}}function gml_Script_s_is_human_in_week(_inst,_other,argument0){{argument0=real(argument0);{var __yy__v339=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v340 in __yy__v339){if(!__yy__v339.hasOwnProperty(__yy__v340))continue;var __yy__v341=__yy__v339[__yy__v340];{var gmlfix;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v341.gmlschedule)); (g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlfix=ds_list_find_value(__yy__v341.gmlschedule,gmli);if((yyGetBool(yyfequal(real(ds_map_find_value(gmlfix,"week")),argument0)))&&(yyGetBool(gml_Script_s_is_human_fix(__yy__v341,_inst,gmlfix)))){return true;};}};}}};return false;}}function gml_Script_s_is_human_fix(_inst,_other,argument0){{var gmlid1,gmlid2;{var __yy__v342=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v343 in __yy__v342){if(!__yy__v342.hasOwnProperty(__yy__v343))continue; var __yy__v344=__yy__v342[__yy__v343];{gmlid1=real(ds_map_find_value(argument0,"away_team"));gmlid2=real(ds_map_find_value(argument0,"home_team"));if((yyGetBool(yyfequal(gmlid1,__yy__v344.gmlmyteam_id)))||(yyGetBool(yyfequal(gmlid2,__yy__v344.gmlmyteam_id)))){return true;};}}};return false;}}function gml_Script_s_get_next_college_human_fixture(_inst,_other){{var gmlfix,gmlnext_fix=(-4);var gmlf=0;for(;yyfless(gmlf,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfixturelist));(g_yyPrePostObject__=gmlf, gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf),g_yyPrePostObject__)){{gmlfix=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfixturelist,gmlf);if((yyGetBool(gmlfix))&&(yyGetBool(yyfequal(ds_map_find_value(gmlfix,"human_win"),"unplayed")))){{if((yyGetBool(yyfequal(gmlnext_fix,(-4))))||(yyGetBool((yyGetBool(yyfnotequal(gmlnext_fix,(-4))))&&(yyGetBool(yyfless(real(ds_map_find_value(gmlfix,"week")),real(ds_map_find_value(gmlnext_fix,"week")))))))){gmlnext_fix=gmlfix;} ;};};}};return gmlnext_fix;}}function gml_Script_s_update_week_done(_inst,_other){{yyInst(_inst,_other,global.gmlg_m).gmlweek_done=gml_Script_s_is_week_played(_inst,_other,yyInst(_inst,_other,global.gmlg_m).gmlweek);}}function gml_Script_s_is_week_done(_inst,_other,argument0){{if(yyfequal(argument0,_inst.undefined)){argument0=false;};}{if(yyGetBool(argument0)){gml_Script_s_update_week_done(_inst,_other);};return yyInst(_inst,_other,global.gmlg_m).gmlweek_done;}}function gml_Script_s_is_fix_played(_inst, _other,argument0){{return !yyGetBool((yyGetBool(yyfless(real(ds_map_find_value(argument0,"away_score")),0)))||(yyGetBool(yyfless(real(ds_map_find_value(argument0,"home_score")),0))));}}function gml_Script_s_is_fix_filled(_inst,_other,argument0){{return !yyGetBool((yyGetBool(yyfless(real(ds_map_find_value(argument0,"away_team")),0)))||(yyGetBool(yyfless(real(ds_map_find_value(argument0,"home_team")),0))));}}function gml_Script_s_is_fix_on_neutral_ground(_inst,_other,argument0){{var gmlcomp=gml_Script_s_get_competition(_inst, _other,gml_Script_s_get_map_real(_inst,_other,argument0,"cid",(-1)));if(yyfequal(gmlcomp,(-4))){return false;};if((yyGetBool(is_string(yyInst(_inst,_other,gmlcomp).gmlcity)))&&(yyGetBool(yyfnotequal(yyInst(_inst,_other,gmlcomp).gmlcity,"")))){return true;};return false;}}function gml_Script_s_season_competitions_done(_inst,_other){{return gml_Script_s_is_week_played(_inst,_other,gml_Script_s_get_last_schedule_week(_inst,_other));}}function gml_Script_s_get_fix_away_team_id(_inst,_other,argument0){{if(yyfnotequal(argument0, (-4))){return real(ds_map_find_value(argument0,"away_team"));};return(-1);}}function gml_Script_s_get_fix_home_team_id(_inst,_other,argument0){{if(yyfnotequal(argument0,(-4))){return real(ds_map_find_value(argument0,"home_team"));};return(-1);}}function gml_Script_s_get_fix_by_competition_id(_inst,_other,argument0,argument1){{if(yyfequal(argument1,_inst.undefined)){argument1=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlschedule;};}{var gmlfix;var gmli=0;for(;yyfless(gmli,ds_list_size(argument1));(g_yyPrePostObject__=gmli, gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlfix=ds_list_find_value(argument1,gmli);if(yyfequal(ds_map_find_value(gmlfix,"cid"),argument0)){return gmlfix;};}};return(-4);}}function gml_Script_s_get_fix_by_match_id(_inst,_other,argument0,argument1){{if(yyfequal(argument1,_inst.undefined)){argument1=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlschedule;};}{var gmlfix;var gmli=0;for(;yyfless(gmli,ds_list_size(argument1));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli), g_yyPrePostObject__)){{gmlfix=ds_list_find_value(argument1,gmli);if(yyfequal(ds_map_find_value(gmlfix,"mid"),argument0)){return gmlfix;};}};return(-4);}}function gml_Script_s_get_fix_winner_id(_inst,_other,argument0){{if(!yyGetBool(gml_Script_s_is_fix_played(_inst,_other,argument0))){return(-1);};return(yyfgreater(real(ds_map_find_value(argument0,"away_score")),real(ds_map_find_value(argument0,"home_score")))?real(ds_map_find_value(argument0,"away_team")):real(ds_map_find_value(argument0,"home_team"))); }}function gml_Script_s_get_fix_by_week_and_teams(_inst,_other,argument0,argument1,argument2,argument3){{var gmlfix;var gmli=0;for(;yyfless(gmli,ds_list_size(argument0));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlfix=ds_list_find_value(argument0,gmli);if((yyGetBool(yyfequal(ds_map_find_value(gmlfix,"week"),argument1)))&&(yyGetBool(yyfequal(gml_Script_s_get_fix_away_team_id(_inst,_other,gmlfix),argument2)))&&(yyGetBool(yyfequal(gml_Script_s_get_fix_home_team_id(_inst, _other,gmlfix),argument3)))){return gmlfix;};}};return(-4);}}function gml_GlobalScript_btn_click_LeagueSchedule(_inst,_other){(_inst.gmlbtn_click_LeagueSchedule=__yy_method(_inst,gml_Script_btn_click_LeagueSchedule));}function gml_Script_btn_click_LeagueSchedule(_inst,_other){{gml_Script_btn_click_LeaguePanel(_inst,_other,2);}}function gml_GlobalScript_btn_click_SchedulePrev(_inst,_other){(_inst.gmlbtn_click_SchedulePrev=__yy_method(_inst,gml_Script_btn_click_SchedulePrev));}function gml_Script_btn_click_SchedulePrev(_inst, _other){{yyInst(_inst,_other,100254).gmlsweek=clamp(yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,100254).gmlsweek),1),1,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular);gml_Script_s_populate_schedulebox(_inst,_other);}}function gml_GlobalScript_btn_click_ScheduleNext(_inst,_other){(_inst.gmlbtn_click_ScheduleNext=__yy_method(_inst,gml_Script_btn_click_ScheduleNext));}function gml_Script_btn_click_ScheduleNext(_inst,_other){{yyInst(_inst,_other,100254).gmlsweek=clamp(yyfplus(__yy_gml_errCheck(yyInst(_inst, _other,100254).gmlsweek),1),1,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular);gml_Script_s_populate_schedulebox(_inst,_other);}}function gml_GlobalScript_btn_click_PlayOffs(_inst,_other){(_inst.gmlbtn_click_PlayOffs=__yy_method(_inst,gml_Script_btn_click_PlayOffs));}function gml_Script_btn_click_PlayOffs(_inst,_other){{if(yyGetBool(gml_Script_s_playoffs_12(_inst,_other))){room_goto(YYASSET_REF(0x03000013));}else {room_goto(YYASSET_REF(0x03000014));};}}function gml_GlobalScript_btn_click_PlayOffs_Back(_inst, _other){(_inst.gmlbtn_click_PlayOffs_Back=__yy_method(_inst,gml_Script_btn_click_PlayOffs_Back));}function gml_Script_btn_click_PlayOffs_Back(_inst,_other){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayoff_proceed=false;room_goto(YYASSET_REF(0x03000010));}}function gml_GlobalScript_btn_click_PlayOffsPlay(_inst,_other){(_inst.gmlbtn_click_PlayOffsPlay=__yy_method(_inst,gml_Script_btn_click_PlayOffsPlay));}function gml_Script_btn_click_PlayOffsPlay(_inst,_other){{if(!yyGetBool(gml_Script_s_do_schedule(_inst, _other,false))){return;};yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayoff_proceed=false;yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstage=7;gml_Script_s_play(_inst,_other,1);}}function gml_GlobalScript_btn_click_PlayOffsSkip(_inst,_other){(_inst.gmlbtn_click_PlayOffsSkip=__yy_method(_inst,gml_Script_btn_click_PlayOffsSkip));}function gml_Script_btn_click_PlayOffsSkip(_inst,_other){{{var __yy__v345=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v346 in __yy__v345){if(!__yy__v345.hasOwnProperty(__yy__v346))continue; var __yy__v347=__yy__v345[__yy__v346];{while((yyGetBool(!yyGetBool(gml_Script_s_get_human_fixture_by_week(__yy__v347,_inst,__yy__v347.gmlweek))))&&(yyGetBool(yyflessequal(__yy__v347.gmlweek,gml_Script_s_get_week_superbowl(__yy__v347,_inst))))){{gml_Script_slog(__yy__v347,_inst,yyfplus("SKIP PLAY-OFFS wk=",__yy_gml_errCheck(string(__yy__v347.gmlweek))));if(!yyGetBool(gml_Script_s_do_schedule(__yy__v347,_inst,false))){return;};(g_yyPrePostObject__=__yy__v347.gmlweek,__yy__v347.gmlweek=(g_yyPrePostObject__ instanceof Long?__yy__v347.gmlweek.add(1):++__yy__v347.gmlweek), g_yyPrePostObject__);}};(g_yyPrePostObject__=__yy__v347.gmlweek,__yy__v347.gmlweek=(g_yyPrePostObject__ instanceof Long?__yy__v347.gmlweek.subtract(1):--__yy__v347.gmlweek),g_yyPrePostObject__);var gmlsz=0;if(yyfgreaterequal(__yy__v347.gmlweek,gml_Script_s_get_week_superbowl(__yy__v347,_inst))){{gmlsz=1;if(yyfgreater(__yy__v347.gmlyear,1)){(g_yyPrePostObject__=gmlsz,gmlsz=(g_yyPrePostObject__ instanceof Long?gmlsz.add(1):++gmlsz),g_yyPrePostObject__);};};};if((yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfr_mode))||(yyGetBool(gml_Script_s_is_co_mode(__yy__v347, _inst)))){{while(yyfgreater(ds_list_size(__yy__v347.gmlnewslist),gmlsz)){ds_list_delete(__yy__v347.gmlnewslist,0)};};}else {{while(yyfgreater(ds_list_size(__yy__v347.gmllist_news_dyn),gmlsz)){ds_list_delete(__yy__v347.gmllist_news_dyn,0)};};};__yy__v347.gmlplayoff_proceed=false;__yy__v347.gmlstage=7;gml_Script_s_play(__yy__v347,_inst,1);}}};}}function gml_GlobalScript_btn_click_Change_Favourite(_inst,_other){(_inst.gmlbtn_click_Change_Favourite=__yy_method(_inst,gml_Script_btn_click_Change_Favourite)); }function gml_Script____struct___106_btn_click_Change_Favourite_gml_GlobalScript_btn_click_Change_Favourite(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___106_btn_click_Change_Favourite_gml_GlobalScript_btn_click_Change_Favourite";}if(gml_Script____struct___106_btn_click_Change_Favourite_gml_GlobalScript_btn_click_Change_Favourite.prototype.__type===undefined){gml_Script____struct___106_btn_click_Change_Favourite_gml_GlobalScript_btn_click_Change_Favourite.prototype.__type="gml_Script____struct___106_btn_click_Change_Favourite_gml_GlobalScript_btn_click_Change_Favourite"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___106_btn_click_Change_Favourite_gml_GlobalScript_btn_click_Change_Favourite.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlmode=$$args[__yy_gml_array_check_index(2+(0),$$args)];}}}}function gml_Script_btn_click_Change_Favourite(_inst,_other){{{var __yy__v348=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v349 in __yy__v348){if(!__yy__v348.hasOwnProperty(__yy__v349))continue;var __yy__v350=__yy__v348[__yy__v349]; {__yy__v350.gmlfname=yyInst(_inst,_other,100025).gmltext;__yy__v350.gmllname=yyInst(_inst,_other,100026).gmltext;__yy__v350.gmlfave_team_check=yyInst(_inst,_other,100037).gmlstate;}}};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){gml_Script_s_goto_room(_inst,_other,YYASSET_REF(0x03000033),__yy_gml_object_create(_inst,(_inst.gml___struct___106=__yy_method(_inst,gml_Script____struct___106_btn_click_Change_Favourite_gml_GlobalScript_btn_click_Change_Favourite)),yyInst(_inst,_other,yyInst(_inst, _other,global.gmlg_m).gmlteam_selections).gmlmode));}else {room_goto(YYASSET_REF(0x03000003));};}}function gml_GlobalScript_btn_click_ChooseAFC(_inst,_other){(_inst.gmlbtn_click_ChooseAFC=__yy_method(_inst,gml_Script_btn_click_ChooseAFC));}function gml_Script_btn_click_ChooseAFC(_inst,_other){{{var __yy__v351=GetWithArray(YYASSET_REF(0x0000007F));for(var __yy__v352 in __yy__v351){if(!__yy__v351.hasOwnProperty(__yy__v352))continue;var __yy__v353=__yy__v351[__yy__v352];{__yy__v353.gmlconference=0;if((yyGetBool((yyGetBool(yyfequal(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlyear,1)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,1)))))||(yyGetBool(global.gmlexhibition))){gml_Script_s_update_team_buttons(__yy__v353,_inst);}else {gml_Script_s_update_job_offer_buttons(__yy__v353,_inst);};}}};}}function gml_GlobalScript_btn_click_ChooseNFC(_inst,_other){(_inst.gmlbtn_click_ChooseNFC=__yy_method(_inst,gml_Script_btn_click_ChooseNFC));}function gml_Script_btn_click_ChooseNFC(_inst,_other){{{var __yy__v354=GetWithArray(YYASSET_REF(0x0000007F)); for(var __yy__v355 in __yy__v354){if(!__yy__v354.hasOwnProperty(__yy__v355))continue;var __yy__v356=__yy__v354[__yy__v355];{__yy__v356.gmlconference=1;if((yyGetBool((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear,1)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,1)))))||(yyGetBool(global.gmlexhibition))){gml_Script_s_update_team_buttons(__yy__v356,_inst);}else {gml_Script_s_update_job_offer_buttons(__yy__v356,_inst);};}}};}}function gml_GlobalScript_btn_click_ChooseTeam(_inst, _other){(_inst.gmlbtn_click_ChooseTeam=__yy_method(_inst,gml_Script_btn_click_ChooseTeam));(_inst.gmlbtn_click_ChooseTeamExhibition=__yy_method(_inst,gml_Script_btn_click_ChooseTeamExhibition));(_inst.gmlbtn_click_ChoosePlayerExhibition=__yy_method(_inst,gml_Script_btn_click_ChoosePlayerExhibition));(_inst.gmlbtn_click_ChoosePlayerExhibition_confirm=__yy_method(_inst,gml_Script_btn_click_ChoosePlayerExhibition_confirm));(_inst.gmlbtn_click_ChoosePlayerExhibition_cancel=__yy_method(_inst,gml_Script_btn_click_ChoosePlayerExhibition_cancel)); }function gml_Script_btn_click_ChooseTeam(_inst,_other){{var gmlchoose_teamuid=_inst.gmluid;{var __yy__v357=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v358 in __yy__v357){if(!__yy__v357.hasOwnProperty(__yy__v358))continue;var __yy__v359=__yy__v357[__yy__v358];{var gmlt=0;for(;yyfless(gmlt,ds_list_size(__yy__v359.gmlteamlist));(g_yyPrePostObject__=gmlt,gmlt=(g_yyPrePostObject__ instanceof Long?gmlt.add(1):++gmlt),g_yyPrePostObject__)){{var gmlteam=ds_list_find_value(__yy__v359.gmlteamlist,gmlt);if(yyfequal(real(ds_map_find_value(gmlteam, "uid")),gmlchoose_teamuid)){{__yy__v359.gmlmyteam=gmlteam;};};}};__yy__v359.gmlfavourite_team_id=ds_map_find_value(__yy__v359.gmlmyteam,"uid");if((yyGetBool(__yy__v359.gmlfr_mode))&&(yyGetBool(yyfgreater(18,__yy__v359.gmlweek)))){{room_goto(YYASSET_REF(0x03000002));return;};}else {if((yyGetBool(gml_Script_s_is_co_mode(__yy__v359,_inst)))&&(yyGetBool(yyfgreater(gml_Script_s_get_skip_to_week(__yy__v359,_inst),__yy__v359.gmlweek)))){{var ___sw310___=yyInst(_inst,_other,yyInst(_inst,_other,global.gmlg_m).gmlteam_selections).gmlmode; var ___swc311___=-1;if(yyCompareVal(___sw310___,1,g_GMLMathEpsilon,false)==0){___swc311___=0;}else if(yyCompareVal(___sw310___,0,g_GMLMathEpsilon,false)==0){___swc311___=1;}switch(___swc311___){case 0:{yyInst(_inst,_other,yyInst(_inst,_other,global.gmlg_m).gmlteam_selections).gmlfavorite_team_id=gmlchoose_teamuid;break;}case 1:{yyInst(_inst,_other,yyInst(_inst,_other,global.gmlg_m).gmlteam_selections).gmlstarting_team_id=gmlchoose_teamuid;break;}};room_goto(YYASSET_REF(0x03000002));return;};}else {{__yy__v359.gmlmyteam_id=real(ds_map_find_value(__yy__v359.gmlmyteam, "uid"));__yy__v359.gmlmyconference=real(ds_map_find_value(__yy__v359.gmlmyteam,"conference"));__yy__v359.gmlmydivision=real(ds_map_find_value(__yy__v359.gmlmyteam,"division"));ds_list_destroy(__yy__v359.gmlfixturelist);__yy__v359.gmlfixturelist=(-1);__yy__v359.gmlfixturelist=gml_Script_s_create_my_fixture_list(__yy__v359,_inst);};};};}}};room_goto(YYASSET_REF(0x0300000E));}}function gml_Script_btn_click_ChooseTeamExhibition(_inst,_other){{var ___sw312___=global.gmlexh_choosing;var ___swc313___=-1;if(yyCompareVal(___sw312___, 0,g_GMLMathEpsilon,false)==0){___swc313___=0;}else if(yyCompareVal(___sw312___,1,g_GMLMathEpsilon,false)==0){___swc313___=1;}switch(___swc313___){case 0:{ds_map_set(global.gmlexh_fix,"away_team",_inst.gmluid);global.gmlexh_use_roster_p0=false;break;}case 1:{ds_map_set(global.gmlexh_fix,"home_team",_inst.gmluid);global.gmlexh_use_roster_p1=false;break;}};room_goto(YYASSET_REF(0x0300002F));}}function gml_Script_btn_click_ChoosePlayerExhibition(_inst,_other){{var ___sw314___=global.gmlexh_choosing;var ___swc315___=-1; if(yyCompareVal(___sw314___,0,g_GMLMathEpsilon,false)==0){___swc315___=0;}else if(yyCompareVal(___sw314___,1,g_GMLMathEpsilon,false)==0){___swc315___=1;}switch(___swc315___){case 0:{ds_map_set(global.gmlexh_fix,"away_team",_inst.gmluid);global.gmlexh_use_roster_p0=false;break;}case 1:{ds_map_set(global.gmlexh_fix,"home_team",_inst.gmluid);global.gmlexh_use_roster_p1=false;break;}};gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_ExhibitionUseStarPlayers"),gml_Script_s_str(_inst, _other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_btn_click_ChoosePlayerExhibition_cancel,kgml_Script_btn_click_ChoosePlayerExhibition_confirm,global.gmlc_background,1);}}function gml_Script_btn_click_ChoosePlayerExhibition_confirm(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);var ___sw316___=global.gmlexh_choosing;var ___swc317___=-1;if(yyCompareVal(___sw316___,0,g_GMLMathEpsilon,false)==0){___swc317___=0;}else if(yyCompareVal(___sw316___,1,g_GMLMathEpsilon,false)==0){___swc317___=1; }switch(___swc317___){case 0:{global.gmlexh_use_roster_p0=true;break;}case 1:{global.gmlexh_use_roster_p1=true;break;}};room_goto(YYASSET_REF(0x0300002F));}}function gml_Script_btn_click_ChoosePlayerExhibition_cancel(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);var ___sw318___=global.gmlexh_choosing;var ___swc319___=-1;if(yyCompareVal(___sw318___,0,g_GMLMathEpsilon,false)==0){___swc319___=0;}else if(yyCompareVal(___sw318___,1,g_GMLMathEpsilon,false)==0){___swc319___=1;}switch(___swc319___){case 0:{ global.gmlexh_use_roster_p0=false;break;}case 1:{global.gmlexh_use_roster_p1=false;break;}};room_goto(YYASSET_REF(0x0300002F));}}function gml_GlobalScript_btn_click_ChooseTeamNew(_inst,_other){(_inst.gmlbtn_click_ChooseTeamNew=__yy_method(_inst,gml_Script_btn_click_ChooseTeamNew));(_inst.gmlbtn_click_qb_mode_ChooseTeamNew=__yy_method(_inst,gml_Script_btn_click_qb_mode_ChooseTeamNew));}function gml_Script_btn_click_ChooseTeamNew(_inst,_other){{gml_Script_slog(_inst,_other,"btn_click_ChooseTeamNew"); var gmlchoose_teamuid=_inst.gmluid;{var __yy__v360=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v361 in __yy__v360){if(!__yy__v360.hasOwnProperty(__yy__v361))continue;var __yy__v362=__yy__v360[__yy__v361];{var gmlt=0;for(;yyfless(gmlt,ds_list_size(__yy__v362.gmlteamlist));(g_yyPrePostObject__=gmlt,gmlt=(g_yyPrePostObject__ instanceof Long?gmlt.add(1):++gmlt),g_yyPrePostObject__)){{var gmlteam=ds_list_find_value(__yy__v362.gmlteamlist,gmlt);if(yyfequal(ds_map_find_value(gmlteam,"uid"),gmlchoose_teamuid)){ {__yy__v362.gmlnewteam=gmlteam;var gmlmsg=gml_Script_s_str(__yy__v362,_inst,"msg_ChooseNewTeam");gmlmsg=string_replace(gmlmsg,"$teamname",ds_map_find_value(gmlteam,"name"));gml_Script_s_create_message(__yy__v362,_inst,"",gmlmsg,gml_Script_s_str(__yy__v362,_inst,"ui_Cancel"),gml_Script_s_str(__yy__v362,_inst,"ui_Confirm"),kgml_Script_s_msg_clear,kgml_Script_btn_response_confirm_new_team_loading,global.gmlc_background,1);};};}};}}};}}function gml_Script_btn_click_qb_mode_ChooseTeamNew(_inst,_other){ {gml_Script_slog(_inst,_other,"btn_click_qb_mode_ChooseTeamNew");var gmlchoose_teamuid=_inst.gmluid;{var __yy__v363=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v364 in __yy__v363){if(!__yy__v363.hasOwnProperty(__yy__v364))continue;var __yy__v365=__yy__v363[__yy__v364];{var gmlt=0;for(;yyfless(gmlt,ds_list_size(__yy__v365.gmlteamlist));(g_yyPrePostObject__=gmlt,gmlt=(g_yyPrePostObject__ instanceof Long?gmlt.add(1):++gmlt),g_yyPrePostObject__)){{var gmlteam=ds_list_find_value(__yy__v365.gmlteamlist, gmlt);if(yyfequal(ds_map_find_value(gmlteam,"uid"),gmlchoose_teamuid)){{__yy__v365.gmlnewteam=gmlteam;room_goto(YYASSET_REF(0x0300002A));};};}};}}};}}function gml_GlobalScript_btn_click_ChooseReject(_inst,_other){(_inst.gmlbtn_click_ChooseReject_loading=__yy_method(_inst,gml_Script_btn_click_ChooseReject_loading));(_inst.gmlbtn_click_ChooseReject=__yy_method(_inst,gml_Script_btn_click_ChooseReject));}function gml_Script_btn_click_ChooseReject_loading(_inst,_other){{gml_Script_s_loading_start(_inst, _other,kgml_Script_btn_click_ChooseReject);}}function gml_Script_btn_click_ChooseReject(_inst,_other){{gml_Script_s_start_new_season(_inst,_other,false);}}function gml_GlobalScript_btn_click_Continue(_inst,_other){(_inst.gmlbtn_click_Continue=__yy_method(_inst,gml_Script_btn_click_Continue));(_inst.gmlbtn_click_SimGame=__yy_method(_inst,gml_Script_btn_click_SimGame));}function gml_Script_btn_click_Continue(_inst,_other){{gml_Script_s_play(_inst,_other,1);}}function gml_Script_btn_click_SimGame(_inst, _other){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsim_action=true;gml_Script_s_play(_inst,_other,1);}}function gml_GlobalScript_btn_click_Details_Continue(_inst,_other){(_inst.gmlbtn_click_Details_Continue=__yy_method(_inst,gml_Script_btn_click_Details_Continue));}function gml_Script_btn_click_Details_Continue(_inst,_other){{gml_Script_slog(_inst,_other,"btn_click_Details_Continue");{var __yy__v366=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v367 in __yy__v366){if(!__yy__v366.hasOwnProperty(__yy__v367))continue; var __yy__v368=__yy__v366[__yy__v367];{__yy__v368.gmlfname=yyInst(_inst,_other,100025).gmltext;__yy__v368.gmllname=yyInst(_inst,_other,100026).gmltext;if(yyfequal(__yy__v368.gmlfname,"")){__yy__v368.gmlfname=gml_Script_s_get_random_first_name(__yy__v368,_inst,true);};if(yyfequal(__yy__v368.gmllname,"")){__yy__v368.gmllname=gml_Script_s_get_random_last_name(__yy__v368,_inst);};__yy__v368.gmlfname_coach=gml_Script_s_get_random_first_name(__yy__v368,_inst,true);__yy__v368.gmllname_coach=gml_Script_s_get_random_last_name(__yy__v368, _inst);__yy__v368.gmlfavourite_team_id=real(ds_map_find_value(__yy__v368.gmlmyteam,"uid"));if(yyfequal(yyInst(_inst,_other,100037).gmlstate,true)){{gml_Script_slog(__yy__v368,_inst,"Choosing fave team!");__yy__v368.gmlmyteam_id=real(ds_map_find_value(__yy__v368.gmlmyteam,"uid"));__yy__v368.gmlmyconference=real(ds_map_find_value(__yy__v368.gmlmyteam,"conference"));__yy__v368.gmlmydivision=real(ds_map_find_value(__yy__v368.gmlmyteam,"division"));ds_map_set(__yy__v368.gmlmyteam,"offense",1);ds_map_set(__yy__v368.gmlmyteam, "defense",1);if((yyGetBool(__yy__v368.gmlfr_mode))&&(yyGetBool(1))){gml_Script_s_skip_to_week(__yy__v368,_inst,18);};if((yyGetBool(gml_Script_s_is_co_mode(__yy__v368,_inst)))&&(yyGetBool(yyfgreater(gml_Script_s_get_skip_to_week(__yy__v368,_inst),1)))){{gml_Script_s_skip_to_week(__yy__v368,_inst,gml_Script_s_get_skip_to_week(__yy__v368,_inst));gml_Script_s_competitions_status_update(__yy__v368,_inst);};};};}else {{if((yyGetBool(__yy__v368.gmlfr_mode))&&(yyGetBool(1))){gml_Script_s_skip_to_week(__yy__v368, _inst,18);};if((yyGetBool(gml_Script_s_is_co_mode(__yy__v368,_inst)))&&(yyGetBool(yyfgreater(gml_Script_s_get_skip_to_week(__yy__v368,_inst),1)))){{gml_Script_s_skip_to_week(__yy__v368,_inst,gml_Script_s_get_skip_to_week(__yy__v368,_inst));gml_Script_s_competitions_status_update(__yy__v368,_inst);};};if(yyGetBool(gml_Script_s_is_co_mode(__yy__v368,_inst))){{__yy__v368.gmlfavourite_team_id=yyInst(_inst,_other,yyInst(_inst,_other,global.gmlg_m).gmlteam_selections).gmlfavorite_team_id;__yy__v368.gmlmyteam_id=yyInst(_inst, _other,yyInst(_inst,_other,global.gmlg_m).gmlteam_selections).gmlstarting_team_id;__yy__v368.gmlmyteam=gml_Script_s_get_team_by_id(__yy__v368,_inst,__yy__v368.gmlmyteam_id);__yy__v368.gmlmyconference=real(ds_map_find_value(__yy__v368.gmlmyteam,"conference"));__yy__v368.gmlmydivision=real(ds_map_find_value(__yy__v368.gmlmyteam,"division"));gml_Script_slogf(__yy__v368,_inst,"my team: %1 conf: %2",__yy__v368.gmlmyteam_id,__yy__v368.gmlmyconference);var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v368.gmlroster)); (g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v368.gmlroster,gmli);ds_map_set(gmlpmap,"teamid",__yy__v368.gmlmyteam_id);gml_Script_s_college_correct_new_player(__yy__v368,_inst,gmlpmap);}};};};if(!yyGetBool(gml_Script_s_is_co_mode(__yy__v368,_inst))){{gml_Script_slog(__yy__v368,_inst,"Choosing random team!");var gmlsorted_teams=ds_list_create();ds_list_copy(gmlsorted_teams,__yy__v368.gmlteamlist);gmlsorted_teams=gml_Script_s_sort_teams(__yy__v368, _inst,gmlsorted_teams,0,true);var gmli=0;for(;yyfless(gmli,ds_list_size(gmlsorted_teams));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{__yy__v368.gmlmyteam=ds_list_find_value(gmlsorted_teams,gmli);__yy__v368.gmlmyteam_id=real(ds_map_find_value(__yy__v368.gmlmyteam,"uid"));__yy__v368.gmlmyconference=real(ds_map_find_value(__yy__v368.gmlmyteam,"conference"));__yy__v368.gmlmydivision=real(ds_map_find_value(__yy__v368.gmlmyteam,"division")); gml_Script_slogf(__yy__v368,_inst,"my team: %1 conf: %2",__yy__v368.gmlmyteam_id,__yy__v368.gmlmyconference);if(yyGetBool(gml_Script_s_is_co_mode(__yy__v368,_inst))){{if((yyGetBool(yyfgreaterequal(__yy__v368.gmlmyteam_id,__yy__v368.gmlmin_team_id)))&&(yyGetBool(yyfnotequal(__yy__v368.gmlmyteam_id,__yy__v368.gmlfavourite_team_id)))&&(yyGetBool(!yyGetBool(irandom(1))))){break;};};}else {{if((yyGetBool(yyfnotequal(__yy__v368.gmlmyteam_id,__yy__v368.gmlfavourite_team_id)))&&(yyGetBool(!yyGetBool(irandom(1))))){ break;};};};}};ds_list_destroy(gmlsorted_teams);gmlsorted_teams=(-1);};};};};gml_Script_s_set_team_morale(__yy__v368,_inst,60,90);var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v368.gmlfixturelist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_map_destroy(ds_list_find_value(__yy__v368.gmlfixturelist,gmli));ds_list_set(__yy__v368.gmlfixturelist,gmli,(-1));}};ds_list_destroy(__yy__v368.gmlfixturelist);__yy__v368.gmlfixturelist=(-1); __yy__v368.gmlfixturelist=gml_Script_s_create_my_fixture_list(__yy__v368,_inst);var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v368.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlpmap=ds_list_find_value(__yy__v368.gmlroster,gmli);ds_map_set(gmlpmap,"teamid",__yy__v368.gmlmyteam_id);ds_map_set(gmlpmap,"condition",irandom_range(80,100));}};var gmlweeks_rem=1;var gmlmsg=gml_Script_s_str(__yy__v368,_inst,"news_NewCareer");if(yyGetBool(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlqb_mode)){{gmlmsg=gml_Script_s_str(__yy__v368,_inst,"news_NewCareerQB");gmlmsg=string_replace_all(gmlmsg,"$teamname",gml_Script_s_get_team_name_by_id(__yy__v368,_inst,__yy__v368.gmlmyteam_id));var gmlpick=irandom(95);var gmlrnd=floor(yyfdivide(__yy_gml_errCheck(gmlpick),32));gmlmsg=string_replace(gmlmsg,"$playername",yyfplus(yyfplus(__yy_gml_errCheck(__yy__v368.gmlfname)," "),__yy_gml_errCheck(__yy__v368.gmllname)));gmlmsg=string_replace(gmlmsg,"$coachname",yyfplus(yyfplus(__yy_gml_errCheck(__yy__v368.gmlfname_coach), " "),__yy_gml_errCheck(__yy__v368.gmllname_coach)));gmlmsg=string_replace(gmlmsg,"$num",string(yyfplus(__yy_gml_errCheck(gmlpick),1)));gmlmsg=string_replace(gmlmsg,"$round",string(yyfplus(__yy_gml_errCheck(gmlrnd),1)));gml_Script_s_set_up_qb_pmap(__yy__v368,_inst);};}else {{gmlmsg=string_replace_all(gmlmsg,"$teamname",gml_Script_s_get_team_name_by_id(__yy__v368,_inst,__yy__v368.gmlmyteam_id));gmlmsg=string_replace(gmlmsg,"$coachname",yyfplus(yyfplus(__yy_gml_errCheck(__yy__v368.gmlfname)," "),__yy_gml_errCheck(__yy__v368.gmllname))); gmlmsg=string_replace(gmlmsg,"$num",string(gmlweeks_rem));};};if(yyfgreater(gmlweeks_rem,1)){gmlmsg=string_replace(gmlmsg,"$weeks",string_lower(gml_Script_s_str(__yy__v368,_inst,"ui_Weeks")));}else {gmlmsg=string_replace(gmlmsg,"$weeks",string_lower(gml_Script_s_str(__yy__v368,_inst,"ui_Week")));};gmlmsg=string_replace(gmlmsg,"$lname",__yy__v368.gmllname);gmlmsg=string_replace(gmlmsg,"$randomcollegename",gml_Script_s_get_random_college_name(__yy__v368,_inst));gml_Script_s_add_news(__yy__v368,_inst, gmlmsg);}}};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gml_Script_s_refresh_strings(_inst,_other);};};gml_Script_s_play(_inst,_other,0);}}function gml_GlobalScript_s_uniform_helpers(_inst,_other){(_inst.gmls_uniforms_default_file=__yy_method(_inst,gml_Script_s_uniforms_default_file));(_inst.gmls_extract_uniform_cols_to_record=__yy_method(_inst,gml_Script_s_extract_uniform_cols_to_record));(_inst.gmls_uniform_cols_to_record=__yy_method(_inst,gml_Script_s_uniform_cols_to_record));(_inst.gmls_uniform_cols_from_record=__yy_method(_inst, gml_Script_s_uniform_cols_from_record));}function gml_Script_s_uniforms_default_file(_inst,_other){{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{return gml_Script_s_get_versioned_path(_inst,_other,"uniforms_default_CO.txt");};};return "uniforms_default.txt";}}function gml_Script_s_extract_uniform_cols_to_record(_inst,_other,argument0,argument1){{var gmluniform=instance_create_layer(0,0,"Instances",YYASSET_REF(0x00000085));yyInst(_inst,_other,gmluniform).visible=false;gml_Script_s_load_uniform_file2(_inst, _other,argument0,gmluniform,0,argument1);var gmlrecord=gml_Script_s_uniform_cols_to_record(_inst,_other,gmluniform);instance_destroy(_inst,gmluniform);return gmlrecord;}}function gml_Script_s_uniform_cols_to_record(_inst,_other,argument0){{return yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(string(yyInst(_inst,_other,argument0).gmlhelmet[__yy_gml_array_check_index(2,yyInst(_inst,_other,argument0).gmlhelmet)])), "|"),__yy_gml_errCheck(string(yyInst(_inst,_other,argument0).gmlhelmet[__yy_gml_array_check_index(1,yyInst(_inst,_other,argument0).gmlhelmet)]))),"|"),__yy_gml_errCheck(string(yyInst(_inst,_other,argument0).gmlhelmet[__yy_gml_array_check_index(0,yyInst(_inst,_other,argument0).gmlhelmet)]))),"|"),__yy_gml_errCheck(string(yyInst(_inst,_other,argument0).gmlshirt[__yy_gml_array_check_index(2,yyInst(_inst,_other,argument0).gmlshirt)]))),"|"),__yy_gml_errCheck(string(yyInst(_inst,_other,argument0).gmlshirt[__yy_gml_array_check_index(1, yyInst(_inst,_other,argument0).gmlshirt)]))),"|"),__yy_gml_errCheck(string(yyInst(_inst,_other,argument0).gmlshirt[__yy_gml_array_check_index(0,yyInst(_inst,_other,argument0).gmlshirt)]))),"|"),__yy_gml_errCheck(string(yyInst(_inst,_other,argument0).gmlpants[__yy_gml_array_check_index(2,yyInst(_inst,_other,argument0).gmlpants)]))),"|"),__yy_gml_errCheck(string(yyInst(_inst,_other,argument0).gmlpants[__yy_gml_array_check_index(1,yyInst(_inst,_other,argument0).gmlpants)]))),"|"),__yy_gml_errCheck(string(yyInst(_inst, _other,argument0).gmlpants[__yy_gml_array_check_index(0,yyInst(_inst,_other,argument0).gmlpants)]))),"|");}}function gml_Script_s_uniform_cols_from_record(_inst,_other,argument0){{var gmli,gmltext,gmlarrI;gmlarrI=0;gmltext="";_inst.gmlarr=__yy_gml_array_create([]);gmli=1;for(;yyfless(gmli,yyfplus(__yy_gml_errCheck(string_length(argument0)),1));gmli=yyfplus(gmli,1)){{if(yyfnotequal(string_char_at(argument0,gmli),"|")){{gmltext=yyfplus(gmltext,string_char_at(argument0,gmli));};}else {{_inst.gmlarr=__yy_gml_array_check(_inst.gmlarr, 4070340835);_inst.gmlarr[__yy_gml_array_check_index_set(gmlarrI)]=real(gmltext);(g_yyPrePostObject__=gmlarrI,gmlarrI=(g_yyPrePostObject__ instanceof Long?gmlarrI.add(1):++gmlarrI),g_yyPrePostObject__);gmltext="";};};}};return _inst.gmlarr;}}function gml_GlobalScript_btn_click_FrontOffice(_inst,_other){(_inst.gmlbtn_click_FrontOffice=__yy_method(_inst,gml_Script_btn_click_FrontOffice));}function gml_Script_btn_click_FrontOffice(_inst,_other){{room_goto(YYASSET_REF(0x03000009));}}function gml_GlobalScript_btn_click_FreeAgents2(_inst, _other){(_inst.gmlbtn_click_FreeAgents2=__yy_method(_inst,gml_Script_btn_click_FreeAgents2));}function gml_Script_btn_click_FreeAgents2(_inst,_other){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster_from_store=true;room_goto(YYASSET_REF(0x03000008));}}function gml_GlobalScript_btn_click_HallOfFame(_inst,_other){(_inst.gmlbtn_click_HallOfFame=__yy_method(_inst,gml_Script_btn_click_HallOfFame));}function gml_Script_btn_click_HallOfFame(_inst,_other){{room_goto(YYASSET_REF(0x0300000A));}}function gml_GlobalScript_btn_click_Home(_inst, _other){(_inst.gmlbtn_click_Home=__yy_method(_inst,gml_Script_btn_click_Home));(_inst.gmlbtn_click_Play1=__yy_method(_inst,gml_Script_btn_click_Play1));(_inst.gmlbtn_click_Options_Exit=__yy_method(_inst,gml_Script_btn_click_Options_Exit));(_inst.gmlbtn_click_Home_rm_winners=__yy_method(_inst,gml_Script_btn_click_Home_rm_winners));(_inst.gmls_rm_winners_notice=__yy_method(_inst,gml_Script_s_rm_winners_notice));}function gml_Script_btn_click_Home(_inst,_other){{gml_Script_slog(_inst,_other,"btn_click_Home"); gml_Script_s_stop_brass_loop(_inst,_other);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstage=1;room_goto(YYASSET_REF(0x0300000E));gml_Script_s_rm_winners_notice(_inst,_other);}}function gml_Script_btn_click_Play1(_inst,_other){{gml_Script_slog(_inst,_other,"btn_click_Play1");gml_Script_s_stop_brass_loop(_inst,_other);gml_Script_s_play(_inst,_other,1);}}function gml_Script_btn_click_Options_Exit(_inst,_other){{gml_Script__poki_gameplay_start(_inst,_other);gml_Script_s_save_options(_inst,_other); gml_Script_btn_click_Home(_inst,_other);}}function gml_Script_btn_click_Home_rm_winners(_inst,_other){{if((yyGetBool(gml_Script_s_is_co_mode(_inst,_other)))&&(yyGetBool(variable_instance_exists(YYASSET_REF(0x00000062),"rm_winners_do_awards")))&&(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrm_winners_do_awards,0)))){{gml_Script_slog(_inst,_other,"btn_click_Home_rm_winners - s_play");gml_Script_s_play(_inst,_other,1);gml_Script_s_rm_winners_notice(_inst,_other);return;};};gml_Script_slog(_inst, _other,"btn_click_Home_rm_winners - rm_home");gml_Script_btn_click_Home(_inst,_other);}}function gml_Script_s_rm_winners_notice(_inst,_other){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){return;};var gmlconf=gml_Script_s_get_conference_data(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyconference);if((yyGetBool(yyfnotequal(gmlconf,(-4))))&&(yyGetBool(yyfequal(yyInst(_inst,_other,gmlconf).gmlname,"Academic")))){{gml_Script_s_add_news(_inst,_other,gml_Script_s_str(_inst,_other, "msg_AcademicSeasonEnd"));};};}}function gml_GlobalScript_btn_click_League(_inst,_other){(_inst.gmlbtn_click_League=__yy_method(_inst,gml_Script_btn_click_League));}function gml_Script____struct___107_btn_click_League_gml_GlobalScript_btn_click_League(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___107_btn_click_League_gml_GlobalScript_btn_click_League";}if(gml_Script____struct___107_btn_click_League_gml_GlobalScript_btn_click_League.prototype.__type===undefined){gml_Script____struct___107_btn_click_League_gml_GlobalScript_btn_click_League.prototype.__type="gml_Script____struct___107_btn_click_League_gml_GlobalScript_btn_click_League"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___107_btn_click_League_gml_GlobalScript_btn_click_League.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlmode=$$args[__yy_gml_array_check_index(2+(0),$$args)];}}}}function gml_Script_btn_click_League(_inst,_other){{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gml_Script_s_goto_room(_inst,_other,YYASSET_REF(0x03000034),__yy_gml_object_create(_inst,(_inst.gml___struct___107=__yy_method(_inst,gml_Script____struct___107_btn_click_League_gml_GlobalScript_btn_click_League)), (yyfequal(g_pBuiltIn.get_current_room(),YYASSET_REF(0x0300000E))?0:2)));};}else {room_goto(YYASSET_REF(0x03000010));};}}function gml_GlobalScript_btn_click_Options(_inst,_other){(_inst.gmlbtn_click_Options=__yy_method(_inst,gml_Script_btn_click_Options));}function gml_Script_btn_click_Options(_inst,_other){{room_goto(YYASSET_REF(0x03000012));gml_Script__poki_gameplay_stop(_inst,_other);}}function gml_GlobalScript_btn_click_Profile(_inst,_other){(_inst.gmlbtn_click_Profile=__yy_method(_inst,gml_Script_btn_click_Profile)); }function gml_Script_btn_click_Profile(_inst,_other){{room_goto(YYASSET_REF(0x0300001A));}}function gml_GlobalScript_btn_click_ChooseFace(_inst,_other){(_inst.gmlbtn_click_ChooseFace=__yy_method(_inst,gml_Script_btn_click_ChooseFace));(_inst.gmls_goto_rm_choose_face=__yy_method(_inst,gml_Script_s_goto_rm_choose_face));}function gml_Script_btn_click_ChooseFace(_inst,_other){{gml_Script_slog(_inst,_other,"btn_click_ChooseFace");yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfname=yyInst(_inst,_other, 100025).gmltext;yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllname=yyInst(_inst,_other,100026).gmltext;room_goto(YYASSET_REF(0x03000004));}}function gml_Script_s_goto_rm_choose_face(_inst,_other){{gml_Script_slog(_inst,_other,"s_goto_rm_choose_face");gml_Script_s_edit_confirm_profile(_inst,_other);room_goto(YYASSET_REF(0x03000004));}}function gml_GlobalScript_btn_click_ChooseFacePrev(_inst,_other){(_inst.gmlbtn_click_ChooseFacePrev=__yy_method(_inst,gml_Script_btn_click_ChooseFacePrev));}function gml_Script_btn_click_ChooseFacePrev(_inst, _other){{(g_yyPrePostObject__=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlface_page,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlface_page=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlface_page.subtract(1):--yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlface_page),g_yyPrePostObject__);if(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlface_page,1)){yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlface_page=1;};room_goto(YYASSET_REF(0x03000004)); }}function gml_GlobalScript_btn_click_ChooseFaceNext(_inst,_other){(_inst.gmlbtn_click_ChooseFaceNext=__yy_method(_inst,gml_Script_btn_click_ChooseFaceNext));}function gml_Script_btn_click_ChooseFaceNext(_inst,_other){{(g_yyPrePostObject__=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlface_page,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlface_page=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlface_page.add(1):++yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlface_page), g_yyPrePostObject__);if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlface_page,yyInst(_inst,_other,YYASSET_REF(0x00000080)).gmlmax_pages)){yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlface_page=yyInst(_inst,_other,YYASSET_REF(0x00000080)).gmlmax_pages;};room_goto(YYASSET_REF(0x03000004));}}function gml_GlobalScript_btn_click_ChooseFaceDone(_inst,_other){(_inst.gmlbtn_click_ChooseFaceDone=__yy_method(_inst,gml_Script_btn_click_ChooseFaceDone));(_inst.gmlbtn_click_cancel_chooseface=__yy_method(_inst, gml_Script_btn_click_cancel_chooseface));}function gml_Script_btn_click_ChooseFaceDone(_inst,_other){{if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile)){{ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"skin",_inst.gmlskin);ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"face_x",_inst.gmlface_x);ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"face_y",_inst.gmlface_y);ds_map_set(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlplayer_profile,"face_set",_inst.gmlface_set);var ___sw324___=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"position");var ___swc325___=-1;if(yyCompareVal(___sw324___,100,g_GMLMathEpsilon,false)==0){___swc325___=0;}else if(yyCompareVal(___sw324___,102,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw324___,101,g_GMLMathEpsilon,false)==0){___swc325___=1;}switch(___swc325___){case 0:{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyface_x=_inst.gmlface_x; yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyface_y=_inst.gmlface_y;gml_Script_btn_click_EditProfile(_inst,_other);break;}case 1:{gml_Script_btn_click_EditProfile(_inst,_other);break;}default :{gml_Script_btn_click_EditProfile(_inst,_other);break;}};gml_Script_s_savegame(_inst,_other);};}else {{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmy_skin=_inst.gmlskin;yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyface_x=_inst.gmlface_x;yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyface_y=_inst.gmlface_y; gml_Script_slog(_inst,_other,yyfplus("skin = ",__yy_gml_errCheck(string(_inst.gmlskin))));gml_Script_slog(_inst,_other,yyfplus("face_x = ",__yy_gml_errCheck(string(_inst.gmlface_x))));gml_Script_slog(_inst,_other,yyfplus("face_y = ",__yy_gml_errCheck(string(_inst.gmlface_y))));if((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear,1)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,1)))){room_goto(YYASSET_REF(0x03000002));}else {room_goto(YYASSET_REF(0x0300000E)); };};};}}function gml_Script_btn_click_cancel_chooseface(_inst,_other){{if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile)){{var ___sw326___=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"position");var ___swc327___=-1;if(yyCompareVal(___sw326___,100,g_GMLMathEpsilon,false)==0){___swc327___=0;}else if(yyCompareVal(___sw326___,102,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw326___,101,g_GMLMathEpsilon,false)==0){___swc327___=1;}switch(___swc327___){ case 0:{gml_Script_btn_click_EditProfile(_inst,_other);break;}case 1:{gml_Script_btn_click_EditProfile(_inst,_other);break;}default :{gml_Script_btn_click_EditProfile(_inst,_other);break;}};};}else {{if((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear,1)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,1)))){room_goto(YYASSET_REF(0x03000002));}else {room_goto(YYASSET_REF(0x0300000E));};};};}}function gml_GlobalScript_btn_click_Uniforms(_inst,_other){(_inst.gmlbtn_click_Uniforms=__yy_method(_inst, gml_Script_btn_click_Uniforms));}function gml_Script_btn_click_Uniforms(_inst,_other){{(g_yyPrePostObject__=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlforce_uniforms,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlforce_uniforms=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlforce_uniforms.add(1):++yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlforce_uniforms),g_yyPrePostObject__);if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlforce_uniforms, 3)){yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlforce_uniforms=0;};room_goto(YYASSET_REF(0x03000015));}}function gml_GlobalScript_btn_click_Uniform_Away(_inst,_other){(_inst.gmlbtn_click_Uniform_Away=__yy_method(_inst,gml_Script_btn_click_Uniform_Away));}function gml_Script_btn_click_Uniform_Away(_inst,_other){{(g_yyPrePostObject__=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlforce_uniform_sel1,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlforce_uniform_sel1=(g_yyPrePostObject__ instanceof Long?yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlforce_uniform_sel1.add(1):++yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlforce_uniform_sel1),g_yyPrePostObject__);if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlforce_uniform_sel1,3)){yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlforce_uniform_sel1=0;};{var __yy__v369=GetWithArray(YYASSET_REF(0x00000090));for(var __yy__v370 in __yy__v369){if(!__yy__v369.hasOwnProperty(__yy__v370))continue;var __yy__v371=__yy__v369[__yy__v370];instance_destroy(__yy__v371); }};{var __yy__v372=GetWithArray(YYASSET_REF(0x00000010));for(var __yy__v373 in __yy__v372){if(!__yy__v372.hasOwnProperty(__yy__v373))continue;var __yy__v374=__yy__v372[__yy__v373];instance_destroy(__yy__v374);}};if(yyfequal(g_pBuiltIn.get_current_room(),YYASSET_REF(0x03000015))){instance_create_layer(0,0,"Instances",YYASSET_REF(0x00000090));}else {instance_create_layer(0,0,"Instances",YYASSET_REF(0x00000010));};}}function gml_GlobalScript_btn_click_Uniform_Home(_inst,_other){(_inst.gmlbtn_click_Uniform_Home=__yy_method(_inst, gml_Script_btn_click_Uniform_Home));}function gml_Script_btn_click_Uniform_Home(_inst,_other){{(g_yyPrePostObject__=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlforce_uniform_sel2,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlforce_uniform_sel2=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlforce_uniform_sel2.add(1):++yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlforce_uniform_sel2),g_yyPrePostObject__);if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlforce_uniform_sel2, 3)){yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlforce_uniform_sel2=0;};{var __yy__v375=GetWithArray(YYASSET_REF(0x00000090));for(var __yy__v376 in __yy__v375){if(!__yy__v375.hasOwnProperty(__yy__v376))continue;var __yy__v377=__yy__v375[__yy__v376];instance_destroy(__yy__v377);}};{var __yy__v378=GetWithArray(YYASSET_REF(0x00000010));for(var __yy__v379 in __yy__v378){if(!__yy__v378.hasOwnProperty(__yy__v379))continue;var __yy__v380=__yy__v378[__yy__v379];instance_destroy(__yy__v380);}};if(yyfequal(g_pBuiltIn.get_current_room(), YYASSET_REF(0x03000015))){instance_create_layer(0,0,"Instances",YYASSET_REF(0x00000090));}else {instance_create_layer(0,0,"Instances",YYASSET_REF(0x00000010));};}}function gml_GlobalScript__poki_rewarded_ad(_inst,_other){(_inst.gml_poki_rewarded_ad=__yy_method(_inst,gml_Script__poki_rewarded_ad));}function gml_Script__poki_rewarded_ad(_inst,_other,argument0,argument1){{gml_Script_slog(_inst,_other,"_poki_rewarded_ad");if(yyfequal(argument1,"rewarded_break")){{if(yyGetBool(argument0)){{var gmlcx1=yyfplus(__yy_gml_errCheck(yyInst(_inst, _other,100482).x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,100482).sprite_width),0.16)));var gmlcx2=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100482).x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,100482).sprite_width),0.5)));var gmlcx3=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100482).x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,100482).sprite_width),0.82)));var gmlcy=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100482).y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst, _other,100482).sprite_height),0.5)));var gmldx=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100483).x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,100483).sprite_width),0.5)));var gmldy=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100483).y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,100483).sprite_height),0.5)));var gmlcoins=1;gml_Script_s_create_credit(_inst,_other,gmlcx1,gmlcy,gmldx,gmldy,1,1,(-4),true);if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfans, 33)){{gmlcoins=2;gml_Script_s_create_credit(_inst,_other,gmlcx2,gmlcy,gmldx,gmldy,1,1,(-4),false);};};if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfans,66)){{gmlcoins=3;gml_Script_s_create_credit(_inst,_other,gmlcx3,gmlcy,gmldx,gmldy,1,1,(-4),false);};};ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_credits_purchased",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_credits_purchased")),__yy_gml_errCheck(gmlcoins))); yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlseason_credits_purchased=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlseason_credits_purchased,gmlcoins);audio_play_sound(YYASSET_REF(0x02000012),1,false);};};};};gml_Script_poki_resume(_inst,_other);}}function gml_GlobalScript_btn_click_BallStyle(_inst,_other){(_inst.gmlbtn_click_BallStyle=__yy_method(_inst,gml_Script_btn_click_BallStyle));}function gml_Script_btn_click_BallStyle(_inst,_other){{{var __yy__v381=GetWithArray(YYASSET_REF(0x00000062)); for(var __yy__v382 in __yy__v381){if(!__yy__v381.hasOwnProperty(__yy__v382))continue;var __yy__v383=__yy__v381[__yy__v382];{__yy__v383.gmlop_ball=yyfplus(__yy_gml_errCheck(real(__yy__v383.gmlop_ball)),1);if(yyfgreater(__yy__v383.gmlop_ball,5)){__yy__v383.gmlop_ball=0;};{var __yy__v384=GetWithArray(100397);for(var __yy__v385 in __yy__v384){if(!__yy__v384.hasOwnProperty(__yy__v385))continue;var __yy__v386=__yy__v384[__yy__v385];__yy__v386.gmlimage_num=__yy__v383.gmlop_ball;}};{var __yy__v387=GetWithArray(100395); for(var __yy__v388 in __yy__v387){if(!__yy__v387.hasOwnProperty(__yy__v388))continue;var __yy__v389=__yy__v387[__yy__v388];__yy__v389.gmltitle=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(__yy__v389,__yy__v383,"ui_Ball"))," "),__yy_gml_errCheck(string(yyfplus(__yy_gml_errCheck(__yy__v383.gmlop_ball),1))));}};{var __yy__v390=GetWithArray(100790);for(var __yy__v391 in __yy__v390){if(!__yy__v390.hasOwnProperty(__yy__v391))continue;var __yy__v392=__yy__v390[__yy__v391];__yy__v392.gmlimage_num=__yy__v383.gmlop_ball; }};{var __yy__v393=GetWithArray(100788);for(var __yy__v394 in __yy__v393){if(!__yy__v393.hasOwnProperty(__yy__v394))continue;var __yy__v395=__yy__v393[__yy__v394];__yy__v395.gmltitle=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(__yy__v395,__yy__v383,"ui_Ball"))," "),__yy_gml_errCheck(string(yyfplus(__yy_gml_errCheck(__yy__v383.gmlop_ball),1))));}};}}};}}function gml_GlobalScript_btn_click_LeagueReportNext(_inst,_other){(_inst.gmlbtn_click_LeagueReportNext=__yy_method(_inst,gml_Script_btn_click_LeagueReportNext)); }function gml_Script_btn_click_LeagueReportNext(_inst,_other){{{var __yy__v396=GetWithArray(YYASSET_REF(0x0000008C));for(var __yy__v397 in __yy__v396){if(!__yy__v396.hasOwnProperty(__yy__v397))continue;var __yy__v398=__yy__v396[__yy__v397];{__yy__v398.gmlpage=clamp(yyfplus(__yy_gml_errCheck(__yy__v398.gmlpage),1),1,3);}}};{var __yy__v399=GetWithArray(YYASSET_REF(0x00000078));for(var __yy__v400 in __yy__v399){if(!__yy__v399.hasOwnProperty(__yy__v400))continue;var __yy__v401=__yy__v399[__yy__v400];__yy__v401.gmlpage=2; }};}}function gml_GlobalScript_btn_click_LeagueReportPrev(_inst,_other){(_inst.gmlbtn_click_LeagueReportPrev=__yy_method(_inst,gml_Script_btn_click_LeagueReportPrev));}function gml_Script_btn_click_LeagueReportPrev(_inst,_other){{{var __yy__v402=GetWithArray(YYASSET_REF(0x0000008C));for(var __yy__v403 in __yy__v402){if(!__yy__v402.hasOwnProperty(__yy__v403))continue;var __yy__v404=__yy__v402[__yy__v403];{__yy__v404.gmlpage=clamp(yyfminus(__yy_gml_errCheck(__yy__v404.gmlpage),1),1,3);}}};{var __yy__v405=GetWithArray(YYASSET_REF(0x00000078)); for(var __yy__v406 in __yy__v405){if(!__yy__v405.hasOwnProperty(__yy__v406))continue;var __yy__v407=__yy__v405[__yy__v406];__yy__v407.gmlpage=1;}};}}function gml_GlobalScript_btn_click_OptionsNewGame(_inst,_other){(_inst.gmlbtn_click_OptionsNewGame=__yy_method(_inst,gml_Script_btn_click_OptionsNewGame));}function gml_Script_btn_click_OptionsNewGame(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);if(yyGetBool(global.gmlbrowser)){{gml_Script_s_save_options(_inst,_other);gml_Script_s_create_message(_inst, _other,"",gml_Script_s_str(_inst,_other,"msg_NewGame"),gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Confirm"),kgml_Script_s_msg_clear,kgml_Script_btn_response_newgame_commit,global.gmlc_background,1);};}else {{gml_Script_s_savegame(_inst,_other);gml_Script_s_destroy_master(_inst,_other);room_goto(YYASSET_REF(0x03000000));};};}}function gml_GlobalScript_btn_click_OptionsDriveLeft(_inst,_other){(_inst.gmlbtn_click_OptionsDriveLeft=__yy_method(_inst,gml_Script_btn_click_OptionsDriveLeft)); (_inst.gmlbtn_click_OptionsDriveLeft_Exh=__yy_method(_inst,gml_Script_btn_click_OptionsDriveLeft_Exh));}function gml_Script_btn_click_OptionsDriveLeft(_inst,_other){{{var __yy__v408=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v409 in __yy__v408){if(!__yy__v408.hasOwnProperty(__yy__v409))continue;var __yy__v410=__yy__v408[__yy__v409];{var ___sw332___=ds_map_find_value(__yy__v410.gmlmap_options,"op_drivedir");var ___swc333___=-1;if(yyCompareVal(___sw332___,0,g_GMLMathEpsilon,false)==0){___swc333___=0; }else if(yyCompareVal(___sw332___,(-1),g_GMLMathEpsilon,false)==0){___swc333___=1;}else if(yyCompareVal(___sw332___,1,g_GMLMathEpsilon,false)==0){___swc333___=2;}switch(___swc333___){case 0:{ds_map_set(__yy__v410.gmlmap_options,"op_drivedir",(-1));break;}case 1:{ds_map_set(__yy__v410.gmlmap_options,"op_drivedir",1);break;}case 2:{ds_map_set(__yy__v410.gmlmap_options,"op_drivedir",0);break;}};gml_Script_s_update_options(__yy__v410,_inst);}}};}}function gml_Script_btn_click_OptionsDriveLeft_Exh(_inst,_other){ {{var __yy__v411=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v412 in __yy__v411){if(!__yy__v411.hasOwnProperty(__yy__v412))continue;var __yy__v413=__yy__v411[__yy__v412];{var ___sw334___=ds_map_find_value(__yy__v413.gmlmap_options,"exh_op_drivedir");var ___swc335___=-1;if(yyCompareVal(___sw334___,0,g_GMLMathEpsilon,false)==0){___swc335___=0;}else if(yyCompareVal(___sw334___,(-1),g_GMLMathEpsilon,false)==0){___swc335___=1;}else if(yyCompareVal(___sw334___,1,g_GMLMathEpsilon,false)==0){___swc335___=2; }switch(___swc335___){case 0:{ds_map_set(__yy__v413.gmlmap_options,"exh_op_drivedir",(-1));break;}case 1:{ds_map_set(__yy__v413.gmlmap_options,"exh_op_drivedir",1);break;}case 2:{ds_map_set(__yy__v413.gmlmap_options,"exh_op_drivedir",0);break;}};gml_Script_s_update_options_exh(__yy__v413,_inst);}}};}}function gml_GlobalScript_btn_click_OptionsDriveRight(_inst,_other){(_inst.gmlbtn_click_OptionsDriveRight=__yy_method(_inst,gml_Script_btn_click_OptionsDriveRight));}function gml_Script_btn_click_OptionsDriveRight(_inst, _other){{{var __yy__v414=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v415 in __yy__v414){if(!__yy__v414.hasOwnProperty(__yy__v415))continue;var __yy__v416=__yy__v414[__yy__v415];{ds_map_set(__yy__v416.gmlmap_options,"op_drivedir",1);gml_Script_s_update_options(__yy__v416,_inst);}}};}}function gml_GlobalScript_btn_click_OptionsDriveBoth(_inst,_other){(_inst.gmlbtn_click_OptionsDriveBoth=__yy_method(_inst,gml_Script_btn_click_OptionsDriveBoth));}function gml_Script_btn_click_OptionsDriveBoth(_inst, _other){{{var __yy__v417=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v418 in __yy__v417){if(!__yy__v417.hasOwnProperty(__yy__v418))continue;var __yy__v419=__yy__v417[__yy__v418];{ds_map_set(__yy__v419.gmlmap_options,"op_drivedir",0);gml_Script_s_update_options(__yy__v419,_inst);}}};}}function gml_GlobalScript_btn_click_OptionsScanlines(_inst,_other){(_inst.gmlbtn_click_OptionsScanlines=__yy_method(_inst,gml_Script_btn_click_OptionsScanlines));}function gml_Script_btn_click_OptionsScanlines(_inst, _other){{{var __yy__v420=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v421 in __yy__v420){if(!__yy__v420.hasOwnProperty(__yy__v421))continue;var __yy__v422=__yy__v420[__yy__v421];{ds_map_set(__yy__v422.gmlmap_options,"op_scanlines",!yyGetBool(ds_map_find_value(__yy__v422.gmlmap_options,"op_scanlines")));yyInst(_inst,_other,YYASSET_REF(0x00000064)).gmlon=ds_map_find_value(__yy__v422.gmlmap_options,"op_scanlines");gml_Script_s_update_options(__yy__v422,_inst);}}};}}function gml_GlobalScript_btn_click_OptionsSoundFX(_inst, _other){(_inst.gmlbtn_click_OptionsSoundFX=__yy_method(_inst,gml_Script_btn_click_OptionsSoundFX));}function gml_Script_btn_click_OptionsSoundFX(_inst,_other){{{var __yy__v423=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v424 in __yy__v423){if(!__yy__v423.hasOwnProperty(__yy__v424))continue;var __yy__v425=__yy__v423[__yy__v424];{gml_Script_slog(__yy__v425,_inst,"btn_click_OptionsSoundFX");ds_map_set(__yy__v425.gmlmap_options,"op_soundfx",yyfplus(__yy_gml_errCheck(ds_map_find_value(__yy__v425.gmlmap_options, "op_soundfx")),1));if(yyfgreater(ds_map_find_value(__yy__v425.gmlmap_options,"op_soundfx"),2)){{ds_map_set(__yy__v425.gmlmap_options,"op_soundfx",0);};};gml_Script_s_update_options(__yy__v425,_inst);global.gmllast_opt_music_change_time=get_timer();}}};}}function gml_GlobalScript_btn_click_OptionsWeather(_inst,_other){(_inst.gmlbtn_click_OptionsWeather=__yy_method(_inst,gml_Script_btn_click_OptionsWeather));(_inst.gmlbtn_click_OptionsWeather_Exh=__yy_method(_inst,gml_Script_btn_click_OptionsWeather_Exh)); }function gml_Script_btn_click_OptionsWeather(_inst,_other){{{var __yy__v426=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v427 in __yy__v426){if(!__yy__v426.hasOwnProperty(__yy__v427))continue;var __yy__v428=__yy__v426[__yy__v427];{if(yyfequal(ds_map_find_value(__yy__v428.gmlmap_options,"fullversion"),1)){{ds_map_set(__yy__v428.gmlmap_options,"op_weather",!yyGetBool(ds_map_find_value(__yy__v428.gmlmap_options,"op_weather")));gml_Script_s_update_options(__yy__v428,_inst);};}else {{gml_Script_s_create_message(__yy__v428, _inst,"",gml_Script_s_str(__yy__v428,_inst,"msg_NeedUnlimited"),gml_Script_s_str(__yy__v428,_inst,"ui_No"),gml_Script_s_str(__yy__v428,_inst,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_s_open_store,global.gmlc_background,1);};};}}};}}function gml_Script_btn_click_OptionsWeather_Exh(_inst,_other){{{var __yy__v429=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v430 in __yy__v429){if(!__yy__v429.hasOwnProperty(__yy__v430))continue;var __yy__v431=__yy__v429[__yy__v430];{ds_map_set(__yy__v431.gmlmap_options, "exh_op_weather",yyfplus(__yy_gml_errCheck(real(ds_map_find_value(__yy__v431.gmlmap_options,"exh_op_weather"))),1));if(yyfgreater(ds_map_find_value(__yy__v431.gmlmap_options,"exh_op_weather"),3)){ds_map_set(__yy__v431.gmlmap_options,"exh_op_weather",0);};gml_Script_s_update_options_exh(__yy__v431,_inst);}}};}}function gml_GlobalScript_btn_click_OptionsReplays(_inst,_other){(_inst.gmlbtn_click_OptionsReplays=__yy_method(_inst,gml_Script_btn_click_OptionsReplays));}function gml_Script_btn_click_OptionsReplays(_inst, _other){{{var __yy__v432=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v433 in __yy__v432){if(!__yy__v432.hasOwnProperty(__yy__v433))continue;var __yy__v434=__yy__v432[__yy__v433];{ds_map_set(__yy__v434.gmlmap_options,"op_replays",yyfplus(__yy_gml_errCheck(ds_map_find_value(__yy__v434.gmlmap_options,"op_replays")),1));if(yyfgreater(ds_map_find_value(__yy__v434.gmlmap_options,"op_replays"),2)){ds_map_set(__yy__v434.gmlmap_options,"op_replays",0);};gml_Script_s_update_options(__yy__v434,_inst);}} };}}function gml_GlobalScript_btn_click_OptionsZoom(_inst,_other){(_inst.gmlbtn_click_OptionsZoom=__yy_method(_inst,gml_Script_btn_click_OptionsZoom));}function gml_Script_btn_click_OptionsZoom(_inst,_other){{{var __yy__v435=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v436 in __yy__v435){if(!__yy__v435.hasOwnProperty(__yy__v436))continue;var __yy__v437=__yy__v435[__yy__v436];{ds_map_set(__yy__v437.gmlmap_options,"op_zoom",!yyGetBool(ds_map_find_value(__yy__v437.gmlmap_options,"op_zoom")));gml_Script_s_update_options(__yy__v437, _inst);}}};}}function gml_GlobalScript_btn_click_InvertedThrowing(_inst,_other){(_inst.gmlbtn_click_InvertedThrowing=__yy_method(_inst,gml_Script_btn_click_InvertedThrowing));}function gml_Script_btn_click_InvertedThrowing(_inst,_other){{{var __yy__v438=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v439 in __yy__v438){if(!__yy__v438.hasOwnProperty(__yy__v439))continue;var __yy__v440=__yy__v438[__yy__v439];{ds_map_set(__yy__v440.gmlmap_options,"op_invert_throw",yyfplus(__yy_gml_errCheck(ds_map_find_value(__yy__v440.gmlmap_options, "op_invert_throw")),1));if(yyfgreater(ds_map_find_value(__yy__v440.gmlmap_options,"op_invert_throw"),1)){ds_map_set(__yy__v440.gmlmap_options,"op_invert_throw",0);};gml_Script_s_update_options(__yy__v440,_inst);}}};}}function gml_GlobalScript_btn_click_OptionsMatchLength(_inst,_other){(_inst.gmlbtn_click_OptionsMatchLength=__yy_method(_inst,gml_Script_btn_click_OptionsMatchLength));(_inst.gmlbtn_click_OptionsMatchLength_Exh=__yy_method(_inst,gml_Script_btn_click_OptionsMatchLength_Exh));}function gml_Script_btn_click_OptionsMatchLength(_inst, _other){{{var __yy__v441=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v442 in __yy__v441){if(!__yy__v441.hasOwnProperty(__yy__v442))continue;var __yy__v443=__yy__v441[__yy__v442];{__yy__v443.gmlop_matchlength=yyfplus(__yy_gml_errCheck(__yy__v443.gmlop_matchlength),1);if(yyfgreater(__yy__v443.gmlop_matchlength,1)){__yy__v443.gmlop_matchlength=(-1);};gml_Script_s_update_options(__yy__v443,_inst);}}};}}function gml_Script_btn_click_OptionsMatchLength_Exh(_inst,_other){{{var __yy__v444=GetWithArray(YYASSET_REF(0x00000062)); for(var __yy__v445 in __yy__v444){if(!__yy__v444.hasOwnProperty(__yy__v445))continue;var __yy__v446=__yy__v444[__yy__v445];{ds_map_set(__yy__v446.gmlmap_options,"exh_op_matchlength",yyfplus(__yy_gml_errCheck(real(ds_map_find_value(__yy__v446.gmlmap_options,"exh_op_matchlength"))),1));if(yyfgreater(ds_map_find_value(__yy__v446.gmlmap_options,"exh_op_matchlength"),1)){ds_map_set(__yy__v446.gmlmap_options,"exh_op_matchlength",(-1));};gml_Script_s_update_options_exh(__yy__v446,_inst);}}};}}function gml_GlobalScript_btn_click_OptionsTeamEditor(_inst, _other){(_inst.gmlbtn_click_OptionsTeamEditor=__yy_method(_inst,gml_Script_btn_click_OptionsTeamEditor));}function gml_Script_btn_click_OptionsTeamEditor(_inst,_other){{if(yyfequal(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"fullversion"),1)){{gml_Script_s_save_options(_inst,_other);if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){gml_Script_s_goto_room(_inst,_other,YYASSET_REF(0x03000037),gml_Script_s_get_editor_status(_inst,_other));}else {room_goto(YYASSET_REF(0x0300001D)); };};}else {{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_NeedUnlimited"),gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_s_open_store,global.gmlc_background,1);};};}}function gml_GlobalScript_btn_click_OptionsDifficulty(_inst,_other){(_inst.gmlbtn_click_OptionsDifficulty=__yy_method(_inst,gml_Script_btn_click_OptionsDifficulty));}function gml_Script_btn_click_OptionsDifficulty(_inst,_other){{yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlop_difficulty=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_difficulty,1);if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_difficulty,4)){yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_difficulty=0;};gml_Script_s_update_options(_inst,_other);}}function gml_GlobalScript_btn_click_OptionsSalaryCap(_inst,_other){(_inst.gmlbtn_click_OptionsSalaryCap=__yy_method(_inst,gml_Script_btn_click_OptionsSalaryCap));(_inst.gmlsalary_cap_toggle_roster_size=__yy_method(_inst, gml_Script_salary_cap_toggle_roster_size));(_inst.gmls_get_roster_cap=__yy_method(_inst,gml_Script_s_get_roster_cap));}function gml_Script_btn_click_OptionsSalaryCap(_inst,_other){{if(yyfequal(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"fullversion"),1)){{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gml_Script_recruitment_credits_toggle_roster_size(_inst,_other);};}else {{gml_Script_salary_cap_toggle_roster_size(_inst,_other);};};gml_Script_s_update_options(_inst, _other);};}else {{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_NeedUnlimited"),gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_s_open_store,global.gmlc_background,1);};};}}function gml_Script_salary_cap_toggle_roster_size(_inst,_other){{var ___sw342___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsalary_cap;var ___swc343___=-1;if(yyCompareVal(___sw342___,150,g_GMLMathEpsilon,false)==0){___swc343___=0; }else if(yyCompareVal(___sw342___,200,g_GMLMathEpsilon,false)==0){___swc343___=1;}switch(___swc343___){case 0:{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsalary_cap=200;break;}case 1:{if(yyfgreater(ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster),10)){gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_SalaryCheckRoster"),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);}else {yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlsalary_cap=150;};break;}};}}function gml_Script_s_get_roster_cap(_inst,_other){{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{var ___sw344___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrecruitment_credits_cap;var ___swc345___=-1;if(yyCompareVal(___sw344___,50,g_GMLMathEpsilon,false)==0){___swc345___=0;}else if(yyCompareVal(___sw344___,60,g_GMLMathEpsilon,false)==0){___swc345___=1;}switch(___swc345___){case 0:{return 10;}case 1:{return 12;}};};}else {{var ___sw346___=yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlsalary_cap;var ___swc347___=-1;if(yyCompareVal(___sw346___,150,g_GMLMathEpsilon,false)==0){___swc347___=0;}else if(yyCompareVal(___sw346___,200,g_GMLMathEpsilon,false)==0){___swc347___=1;}switch(___swc347___){case 0:{return 10;}case 1:{return 12;}};};};return 10;}}function gml_GlobalScript_chk_click_gamepad(_inst,_other){(_inst.gmlchk_click_gamepad=__yy_method(_inst,gml_Script_chk_click_gamepad));}function gml_Script_chk_click_gamepad(_inst,_other){{gml_Script_slog(_inst, _other,"chk_click_gamepad");return;}}function gml_GlobalScript_s_apple_arcade_helpers(_inst,_other){(_inst.gmls_aa_debug_give_cc=__yy_method(_inst,gml_Script_s_aa_debug_give_cc));}function gml_Script_s_aa_debug_give_cc(_inst,_other){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit,10);}}function gml_GlobalScript_btn_click_PlayerProfile(_inst,_other){(_inst.gmlbtn_click_PlayerProfile=__yy_method(_inst,gml_Script_btn_click_PlayerProfile)); }function gml_Script_btn_click_PlayerProfile(_inst,_other){{gml_Script_slog(_inst,_other,"btn_click_PlayerProfile");if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlprofile_back_to,(-1))){{if(yyfequal(g_pBuiltIn.get_current_room(),YYASSET_REF(0x03000016))){return;};};};yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile=_inst.gmlpmap;if(yyfequal(g_pBuiltIn.get_current_room(),YYASSET_REF(0x0300000C))){gml_Script_btn_click_Profile_Stats(_inst,_other);}else {room_goto(YYASSET_REF(0x03000016)); };}}function gml_GlobalScript_btn_click_PlayerProfile_Back(_inst,_other){(_inst.gmlbtn_click_PlayerProfile_Back=__yy_method(_inst,gml_Script_btn_click_PlayerProfile_Back));}function gml_Script_btn_click_PlayerProfile_Back(_inst,_other){{if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlviewing_hof_players)){room_goto(YYASSET_REF(0x0300000C));}else {room_goto(YYASSET_REF(0x03000016));};}}function gml_GlobalScript_btn_click_ProfilePrev(_inst,_other){(_inst.gmlbtn_click_ProfilePrev=__yy_method(_inst, gml_Script_btn_click_ProfilePrev));}function gml_Script_btn_click_ProfilePrev(_inst,_other){{{var __yy__v447=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v448 in __yy__v447){if(!__yy__v447.hasOwnProperty(__yy__v448))continue;var __yy__v449=__yy__v447[__yy__v448];{var gmllist=(-4);var gmlpos=ds_list_find_index(__yy__v449.gmlroster,__yy__v449.gmlplayer_profile);if(yyfgreaterequal(gmlpos,0)){{gmllist=__yy__v449.gmlroster;};}else {{gmlpos=ds_list_find_index(__yy__v449.gmldraftlist,__yy__v449.gmlplayer_profile); if(yyfgreaterequal(gmlpos,0)){{gmllist=__yy__v449.gmldraftlist;};}else {{gmlpos=ds_list_find_index(__yy__v449.gmlfreeagentlist,__yy__v449.gmlplayer_profile);if(yyfgreaterequal(gmlpos,0)){{gmllist=__yy__v449.gmlfreeagentlist;};}else {{gmlpos=ds_list_find_index(__yy__v449.gmltradelist,__yy__v449.gmlplayer_profile);if(yyfgreaterequal(gmlpos,0)){{gmllist=__yy__v449.gmltradelist;};}else {{gmlpos=ds_list_find_index(__yy__v449.gmlstorelist,__yy__v449.gmlplayer_profile);if(yyfgreaterequal(gmlpos,0)){{gmllist=__yy__v449.gmlstorelist; };};};};};};};};};};if(yyGetBool(gmllist)){{(g_yyPrePostObject__=gmlpos,gmlpos=(g_yyPrePostObject__ instanceof Long?gmlpos.subtract(1):--gmlpos),g_yyPrePostObject__);if(yyfless(gmlpos,0)){gmlpos=yyfminus(__yy_gml_errCheck(ds_list_size(gmllist)),1);};__yy__v449.gmlplayer_profile=ds_list_find_value(gmllist,gmlpos);};};}}};room_goto(YYASSET_REF(0x03000016));}}function gml_GlobalScript_btn_click_MeetingPrev(_inst,_other){(_inst.gmlbtn_click_MeetingPrev=__yy_method(_inst,gml_Script_btn_click_MeetingPrev)); }function gml_Script_btn_click_MeetingPrev(_inst,_other){{{var __yy__v450=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v451 in __yy__v450){if(!__yy__v450.hasOwnProperty(__yy__v451))continue;var __yy__v452=__yy__v450[__yy__v451];{var gmlpos=ds_list_find_index(__yy__v452.gmlroster,__yy__v452.gmlplayer_profile);if(yyfgreaterequal(gmlpos,0)){{(g_yyPrePostObject__=gmlpos,gmlpos=(g_yyPrePostObject__ instanceof Long?gmlpos.subtract(1):--gmlpos),g_yyPrePostObject__);if(yyfless(gmlpos,0)){gmlpos=yyfminus(__yy_gml_errCheck(ds_list_size(__yy__v452.gmlroster)), 1);};__yy__v452.gmlplayer_profile=ds_list_find_value(__yy__v452.gmlroster,gmlpos);};};}}};room_goto(YYASSET_REF(0x0300001C));}}function gml_GlobalScript_btn_click_ProfileNext(_inst,_other){(_inst.gmlbtn_click_ProfileNext=__yy_method(_inst,gml_Script_btn_click_ProfileNext));}function gml_Script_btn_click_ProfileNext(_inst,_other){{{var __yy__v453=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v454 in __yy__v453){if(!__yy__v453.hasOwnProperty(__yy__v454))continue;var __yy__v455=__yy__v453[__yy__v454]; {var gmllist=(-4);var gmlpos=ds_list_find_index(__yy__v455.gmlroster,__yy__v455.gmlplayer_profile);if(yyfgreaterequal(gmlpos,0)){{gmllist=__yy__v455.gmlroster;};}else {{gmlpos=ds_list_find_index(__yy__v455.gmldraftlist,__yy__v455.gmlplayer_profile);if(yyfgreaterequal(gmlpos,0)){{gmllist=__yy__v455.gmldraftlist;};}else {{gmlpos=ds_list_find_index(__yy__v455.gmlfreeagentlist,__yy__v455.gmlplayer_profile);if(yyfgreaterequal(gmlpos,0)){{gmllist=__yy__v455.gmlfreeagentlist;};}else {{gmlpos=ds_list_find_index(__yy__v455.gmltradelist, __yy__v455.gmlplayer_profile);if(yyfgreaterequal(gmlpos,0)){{gmllist=__yy__v455.gmltradelist;};}else {{gmlpos=ds_list_find_index(__yy__v455.gmlstorelist,__yy__v455.gmlplayer_profile);if(yyfgreaterequal(gmlpos,0)){{gmllist=__yy__v455.gmlstorelist;};};};};};};};};};};if(yyGetBool(gmllist)){{(g_yyPrePostObject__=gmlpos,gmlpos=(g_yyPrePostObject__ instanceof Long?gmlpos.add(1):++gmlpos),g_yyPrePostObject__);if(yyfgreaterequal(gmlpos,ds_list_size(gmllist))){gmlpos=0;};__yy__v455.gmlplayer_profile=ds_list_find_value(gmllist, gmlpos);};};}}};room_goto(YYASSET_REF(0x03000016));}}function gml_GlobalScript_btn_click_MeetingNext(_inst,_other){(_inst.gmlbtn_click_MeetingNext=__yy_method(_inst,gml_Script_btn_click_MeetingNext));}function gml_Script_btn_click_MeetingNext(_inst,_other){{{var __yy__v456=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v457 in __yy__v456){if(!__yy__v456.hasOwnProperty(__yy__v457))continue;var __yy__v458=__yy__v456[__yy__v457];{var gmlpos=ds_list_find_index(__yy__v458.gmlroster,__yy__v458.gmlplayer_profile); if(yyfgreaterequal(gmlpos,0)){{(g_yyPrePostObject__=gmlpos,gmlpos=(g_yyPrePostObject__ instanceof Long?gmlpos.add(1):++gmlpos),g_yyPrePostObject__);if(yyfgreaterequal(gmlpos,ds_list_size(__yy__v458.gmlroster))){gmlpos=0;};__yy__v458.gmlplayer_profile=ds_list_find_value(__yy__v458.gmlroster,gmlpos);};};}}};room_goto(YYASSET_REF(0x0300001C));}}function gml_GlobalScript_btn_click_Profile_Back(_inst,_other){(_inst.gmlbtn_click_Profile_Back=__yy_method(_inst,gml_Script_btn_click_Profile_Back));}function gml_Script_btn_click_Profile_Back(_inst, _other){{gml_Script_slog(_inst,_other,"btn_click_Profile_Back");{var __yy__v459=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v460 in __yy__v459){if(!__yy__v459.hasOwnProperty(__yy__v460))continue;var __yy__v461=__yy__v459[__yy__v460];{__yy__v461.gmlcollege_profile_page_num=1;if(yyfequal(__yy__v461.gmlprofile_back_to,1)){{__yy__v461.gmlprofile_back_to=(-1);{var __yy__v462=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v463 in __yy__v462){if(!__yy__v462.hasOwnProperty(__yy__v463))continue;var __yy__v464=__yy__v462[__yy__v463]; {gml_Script_s_create_dilemma(__yy__v464,__yy__v461,__yy__v464.gmlmap_dilemma);}}};};}else {if(yyfequal(__yy__v461.gmlprofile_back_to,2)){{__yy__v461.gmlprofile_back_to=(-1);{var __yy__v465=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v466 in __yy__v465){if(!__yy__v465.hasOwnProperty(__yy__v466))continue;var __yy__v467=__yy__v465[__yy__v466];{gml_Script_s_create_dilemma_news(__yy__v467,__yy__v461);}}};};}else {if(yyfequal(__yy__v461.gmlprofile_back_to,3)){{__yy__v461.gmlprofile_back_to=(-1);{var __yy__v468=GetWithArray(YYASSET_REF(0x00000062)); for(var __yy__v469 in __yy__v468){if(!__yy__v468.hasOwnProperty(__yy__v469))continue;var __yy__v470=__yy__v468[__yy__v469];{gml_Script_s_college_draft_earyly_info_return(__yy__v470,__yy__v461);}}};};}else {if(yyGetBool(gml_Script_s_doing_college_draft(__yy__v461,_inst))){room_goto(YYASSET_REF(0x0300002D));}else {if(yyfgreaterequal(ds_list_find_index(__yy__v461.gmlstorelist,__yy__v461.gmlplayer_profile),0)){room_goto(YYASSET_REF(0x03000008));}else {if(yyfgreaterequal(ds_list_find_index(__yy__v461.gmlroster, __yy__v461.gmlplayer_profile),0)){room_goto(YYASSET_REF(0x03000019));}else {if(yyfgreaterequal(ds_list_find_index(__yy__v461.gmldraftlist,__yy__v461.gmlplayer_profile),0)){room_goto(YYASSET_REF(0x03000005));}else {if(yyfgreaterequal(ds_list_find_index(__yy__v461.gmlfreeagentlist,__yy__v461.gmlplayer_profile),0)){room_goto(YYASSET_REF(0x03000007));}else {if(yyfgreaterequal(ds_list_find_index(__yy__v461.gmltradelist,__yy__v461.gmlplayer_profile),0)){room_goto(YYASSET_REF(0x03000007));}else {room_goto(YYASSET_REF(0x0300000E)); };};};};};};};};};}}};}}function gml_GlobalScript_btn_click_Profile_Pick(_inst,_other){(_inst.gmlbtn_click_Profile_Pick=__yy_method(_inst,gml_Script_btn_click_Profile_Pick));}function gml_Script_btn_click_Profile_Pick(_inst,_other){{var gmllist=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster;global.gmldebug_track_str="PP|";if(yyfgreaterequal(ds_list_find_index(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstorelist,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile),0)){{global.gmldebug_track_str=yyfplus(global.gmldebug_track_str, "LS|");gmllist=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstorelist;};}else {if(yyfgreaterequal(ds_list_find_index(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraftlist,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile),0)){{global.gmldebug_track_str=yyfplus(global.gmldebug_track_str,"DS|");gmllist=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraftlist;};}else {if(yyfgreaterequal(ds_list_find_index(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfreeagentlist,yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlplayer_profile),0)){{global.gmldebug_track_str=yyfplus(global.gmldebug_track_str,"FS|");gmllist=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfreeagentlist;};}else {if(yyfgreaterequal(ds_list_find_index(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltradelist,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile),0)){{global.gmldebug_track_str=yyfplus(global.gmldebug_track_str,"TS|");gmllist=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltradelist;} ;}else {if(yyfgreaterequal(ds_list_find_index(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhoflist,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile),0)){{global.gmldebug_track_str=yyfplus(global.gmldebug_track_str,"HS|");gmllist=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhoflist;};};};};};};var gmlplayername=yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlplayer_profile,"lname")));var gmlmax_roster=gml_Script_s_get_roster_cap(_inst,_other);if(yyfgreaterequal(ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster),gmlmax_roster)){{var gmllimitMsg="msg_RosterLimit";if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{var gmlallAreFreshman=true;var gmlr=0;for(;yyfless(gmlr,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster));(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr), g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster,gmlr);if((yyGetBool(gmlpmap))&&(yyGetBool(yyfnotequal(ds_map_find_value(gmlpmap,"age"),gml_Script_s_rookie_age_internal(_inst,_other))))){{gmlallAreFreshman=false;break;};};}};if(yyGetBool(gmlallAreFreshman)){{gmllimitMsg="msg_RosterLimitAllFreshman";};};};};gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,gmllimitMsg),gml_Script_s_str(_inst,_other,"ui_Continue"),"", kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};}else {if((yyGetBool(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))))&&(yyGetBool(yyfgreater(yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"salary")),__yy_gml_errCheck(gml_Script_s_get_salary_total(_inst,_other))),yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsalary_cap),__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlboost_salary_cap)))))){ {var gmlmsg=gml_Script_s_str(_inst,_other,"ui_ExceedSalaryCap");gmlmsg=string_replace(gmlmsg,"$playername",gmlplayername);gmlmsg=string_replace(gmlmsg,"$num",string(yyfminus(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsalary_cap),__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlboost_salary_cap)),__yy_gml_errCheck(gml_Script_s_get_salary_total(_inst,_other)))));gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_Cancel"), gml_Script_s_str(_inst,_other,"ui_Roster"),kgml_Script_s_msg_clear,kgml_Script_btn_click_Roster,global.gmlc_background,1);return;};}else {if((yyGetBool(gml_Script_s_is_co_mode(_inst,_other)))&&(yyGetBool(yyfgreater(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"rc_cost"),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrecruitment_credits)))){{var gmlmsg=gml_Script_s_str(_inst,_other,"ui_ExceedRecruitmentCredits");gmlmsg=string_replace(gmlmsg,"$playername",gmlplayername); gmlmsg=string_replace(gmlmsg,"$num",string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrecruitment_credits));gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};}else {if((yyGetBool(yyfequal(gmllist,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfreeagentlist)))&&(yyGetBool(yyfequal(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"teamid"),yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlmyteam_id)))&&(yyGetBool(yyflessequal(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"attitude"),15)))){{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_CannotSignMoraleLow");gmlmsg=string_replace(gmlmsg,"$playername",gmlplayername);gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};}else {{var gmlpos=ds_map_find_value(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlplayer_profile,"position");var gmlcount=gml_Script_s_count_players_by_position(_inst,_other,gmlpos);var gmlmaxpos=1;var ___sw350___=gmlpos;var ___swc351___=-1;if(yyCompareVal(___sw350___,1,g_GMLMathEpsilon,false)==0){___swc351___=0;}else if(yyCompareVal(___sw350___,2,g_GMLMathEpsilon,false)==0){___swc351___=1;}else if(yyCompareVal(___sw350___,3,g_GMLMathEpsilon,false)==0){___swc351___=2;}else if(yyCompareVal(___sw350___,4,g_GMLMathEpsilon,false)==0){___swc351___=3;}else if(yyCompareVal(___sw350___, 5,g_GMLMathEpsilon,false)==0){___swc351___=4;}else if(yyCompareVal(___sw350___,6,g_GMLMathEpsilon,false)==0){___swc351___=5;}else if(yyCompareVal(___sw350___,7,g_GMLMathEpsilon,false)==0){___swc351___=6;}else if(yyCompareVal(___sw350___,9,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw350___,8,g_GMLMathEpsilon,false)==0){___swc351___=7;}else if(yyCompareVal(___sw350___,10,g_GMLMathEpsilon,false)==0){___swc351___=8;}switch(___swc351___){case 0:{gmlmaxpos=2;break;}case 1:{gmlmaxpos=2;break;}case 2:{gmlmaxpos=3; break;}case 3:{gmlmaxpos=3;break;}case 4:{gmlmaxpos=5;break;}case 5:{gmlmaxpos=4;break;}case 6:{gmlmaxpos=3;break;}case 7:{gmlmaxpos=4;break;}case 8:{gmlmaxpos=2;break;}};if(yyfgreaterequal(gmlcount,gmlmaxpos)){{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_CannotSign1");if(yyfgreater(gmlmaxpos,1)){gmlmsg=gml_Script_s_str(_inst,_other,"msg_CannotSign2");};gmlmsg=string_replace(gmlmsg,"$num",gmlcount);gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position_full(_inst,_other,gmlpos));gmlmsg=string_replace(gmlmsg, "$position",gml_Script_s_get_string_position_full(_inst,_other,gmlpos));gmlmsg=string_replace(gmlmsg,"$playername",gmlplayername);gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Roster"),kgml_Script_s_msg_clear,kgml_Script_btn_click_Roster,global.gmlc_background,1);return;};};};};};};};if(yyfequal(gmllist,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltradelist)){{var gmlteam_id=ds_map_find_value(yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlplayer_profile,"teamid");var gmltmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteamlist,gmlteam_id);var gmlteamname=ds_map_find_value(gmltmap,"name");var gmlpick=gml_Script_s_get_trade_value(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile);if(yyfgreater(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"intrade_pick"),0)){gmlpick=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile, "intrade_pick");};if(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraft_picks[__yy_gml_array_check_index(yyfminus(__yy_gml_errCheck(gmlpick),1),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraft_picks)],1)){{var gmlmsg=gml_Script_s_str(_inst,_other,"ui_NoMorePicksToTrade");gmlmsg=string_replace(gmlmsg,"$num",string(gmlpick));gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;} ;};ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"intrade_pick",gmlpick);var gmlmsg=gml_Script_s_str(_inst,_other,"msg_TradeOfferSign");gmlmsg=string_replace(gmlmsg,"$teamname",gmlteamname);gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position_full(_inst,_other,ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"position")));gmlmsg=string_replace(gmlmsg,"$playername",gmlplayername);gmlmsg=string_replace(gmlmsg,"$num",string(gmlpick)); gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_TradePlayer"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Confirm"),kgml_Script_s_msg_clear,kgml_Script_btn_response_in_trade_player_yes,global.gmlc_background,1);};}else {if(yyfequal(gmllist,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstorelist)){{var gmlcost=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"creditcost");if(yyfless(yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlcoach_credit,gmlcost)){{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_SignPlayerStoreNoCredit");gmlmsg=string_replace(gmlmsg,"$num",string(gmlcost));gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_SignPlayer"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_store_cant_afford,"",global.gmlc_background,1);return;};};var gmlmsg=gml_Script_s_str(_inst,_other,"msg_SignPlayerStore");gmlmsg=string_replace(gmlmsg,"$num",string(gmlcost)); gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position_full(_inst,_other,ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"position")));gmlmsg=string_replace(gmlmsg,"$playername",gmlplayername);global.gmldebug_track_str=yyfplus(global.gmldebug_track_str,"Y1|");gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_SignPlayer"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear, kgml_Script_btn_response_pick_player_yes,global.gmlc_background,1);};}else {if(yyfequal(gmllist,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhoflist)){{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_ReinstatePlayer");gmlmsg=string_replace(gmlmsg,"$playername",string_upper(gmlplayername));gmlmsg=string_replace(gmlmsg,"$salary",string(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"salary")));global.gmldebug_track_str=yyfplus(global.gmldebug_track_str,"Y2|");gml_Script_s_create_message(_inst, _other,gml_Script_s_str(_inst,_other,"ui_SignPlayer"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_btn_response_pick_player_yes,global.gmlc_background,1);};}else {{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_SignPlayer");if(yyfequal(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"age"),gml_Script_s_rookie_age_internal(_inst,_other))){gmlmsg=gml_Script_s_str(_inst,_other,"msg_SignRookie"); };gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position_full(_inst,_other,ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"position")));gmlmsg=string_replace(gmlmsg,"$playername",gmlplayername);global.gmldebug_track_str=yyfplus(global.gmldebug_track_str,"Y3|");gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_SignPlayer"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear, kgml_Script_btn_response_pick_player_yes,global.gmlc_background,1);};};};};}}function gml_GlobalScript_btn_click_Profile_Cut(_inst,_other){(_inst.gmlbtn_click_Profile_Cut=__yy_method(_inst,gml_Script_btn_click_Profile_Cut));(_inst.gmlbtn_click_Profile_JefeBoost=__yy_method(_inst,gml_Script_btn_click_Profile_JefeBoost));(_inst.gmls_JefeBoost=__yy_method(_inst,gml_Script_s_JefeBoost));(_inst.gmlbtn_click_Profile_JefeOutOfRetirement=__yy_method(_inst,gml_Script_btn_click_Profile_JefeOutOfRetirement)); (_inst.gmls_JefeOutOfRetirement=__yy_method(_inst,gml_Script_s_JefeOutOfRetirement));}function gml_Script_btn_click_Profile_Cut(_inst,_other){{var gmlname=yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"lname")));var gmlmsg=string_replace(gml_Script_s_str(_inst,_other,"msg_CutPlayer"),"$playername",gmlname);gmlmsg=string_replace(gmlmsg, "$position",gml_Script_s_get_string_position_full(_inst,_other,ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"position")));gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_CutPlayer"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_btn_response_cut_player_yes,global.gmlc_background,1);}}function gml_Script_btn_click_Profile_JefeBoost(_inst,_other){{var gmlpmap=yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlplayer_profile;if(yyfequal(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"skill")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"speed"))),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"strength"))),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stamina"))),40)){return;};gml_Script_s_create_message(_inst,_other,"Boost player","Do you want to give this player maximum stats?",gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"), kgml_Script_s_msg_clear,kgml_Script_s_JefeBoost,global.gmlc_background,1);}}function gml_Script_s_JefeBoost(_inst,_other){{var gmlpmap=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile;if(yyfequal(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"skill")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"speed"))),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"strength"))),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stamina"))),40)){{audio_play_sound(YYASSET_REF(0x02000008), 1,false);return;};};ds_map_set(gmlpmap,"skill",10);ds_map_set(gmlpmap,"speed",10);ds_map_set(gmlpmap,"strength",10);ds_map_set(gmlpmap,"stamina",10);ds_map_set(gmlpmap,"max_skill",10);ds_map_set(gmlpmap,"max_speed",10);ds_map_set(gmlpmap,"max_strength",10);ds_map_set(gmlpmap,"max_stamina",10);room_goto(YYASSET_REF(0x03000019));}}function gml_Script_btn_click_Profile_JefeOutOfRetirement(_inst,_other){{gml_Script_s_create_message(_inst,_other,"Boost player","Do you want to bring this player out of retirement?", gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_s_JefeOutOfRetirement,global.gmlc_background,1);}}function gml_Script_s_JefeOutOfRetirement(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);{var __yy__v471=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v472 in __yy__v471){if(!__yy__v471.hasOwnProperty(__yy__v472))continue;var __yy__v473=__yy__v471[__yy__v472];{var gmlphof=__yy__v473.gmlplayer_profile;var gmlsz=ds_list_size(__yy__v473.gmlroster); var gmlr=0;for(;yyfless(gmlr,gmlsz);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{if(yyfequal(ds_list_find_value(__yy__v473.gmlroster,gmlr),gmlphof)){{gml_Script_s_do_message(__yy__v473,_inst,"This player is already on your roster.");return;};};}};if(yyfgreaterequal(gmlsz,__yyg_call_method(__yy__v473.gmls_get_roster_limit)(__yy__v473,_inst))){{gml_Script_s_do_message(__yy__v473,_inst,"You don't have enough space on your roster to bring this player out of retirement."); return;};};ds_map_set(__yy__v473.gmlplayer_profile,"contract",max(2,ds_map_find_value(__yy__v473.gmlplayer_profile,"contract")));ds_list_delete(__yy__v473.gmlhoflist,ds_list_find_index(__yy__v473.gmlhoflist,__yy__v473.gmlplayer_profile));ds_list_add(__yy__v473.gmlroster,__yy__v473.gmlplayer_profile);room_goto(YYASSET_REF(0x0300000C));}}};}}function gml_GlobalScript_btn_click_Profile_Trade(_inst,_other){(_inst.gmlbtn_click_Profile_Trade=__yy_method(_inst,gml_Script_btn_click_Profile_Trade));}function gml_Script_btn_click_Profile_Trade(_inst, _other){{var gmlpmap=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile;var gmlplayername=yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname")));var gmloffer=yyfgreater(ds_map_find_value(gmlpmap,"outtrade_pick"),0);if((yyGetBool(!yyGetBool(gmloffer)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,8)))){{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_CannotTradeWeek");gmlmsg=string_replace(gmlmsg, "$playername",gmlplayername);gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_TradePlayer"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Cut"),kgml_Script_s_msg_clear,kgml_Script_btn_response_cut_player_yes,global.gmlc_background,1);};}else {if((yyGetBool(!yyGetBool(gmloffer)))&&(yyGetBool(yyflessequal(ds_map_find_value(gmlpmap,"condition"),(-1))))){{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_CannotTradeInjured");gmlmsg=string_replace(gmlmsg, "$playername",gmlplayername);gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_TradePlayer"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Cut"),kgml_Script_s_msg_clear,kgml_Script_btn_response_cut_player_yes,global.gmlc_background,1);};}else {if((yyGetBool(!yyGetBool(gmloffer)))&&(yyGetBool(yyflessequal(ds_map_find_value(gmlpmap,"attitude"),15)))){{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_CannotTradeToxic");gmlmsg=string_replace(gmlmsg, "$playername",gmlplayername);gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_TradePlayer"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Cut"),kgml_Script_s_msg_clear,kgml_Script_btn_response_cut_player_yes,global.gmlc_background,1);};}else {{var gmltmap=gml_Script_s_get_offer_team(_inst,_other,gmlpmap);var gmlteamname=ds_map_find_value(gmltmap,"name");var gmlplayername=yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"fname")), " "),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname")));if(yyfequal(ds_map_find_value(gmlpmap,"outtrade_pick"),0)){ds_map_set(gmlpmap,"outtrade_pick",gml_Script_s_get_trade_value(_inst,_other,gmlpmap));};var gmlmsg=gml_Script_s_str(_inst,_other,"msg_TradePlayerThis");if(yyfless(ds_map_find_value(gmlpmap,"outtrade_pick"),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraft_round)){gmlmsg=gml_Script_s_str(_inst,_other,"msg_TradePlayerNext");};gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position_full(_inst, _other,ds_map_find_value(gmlpmap,"position")));gmlmsg=string_replace(gmlmsg,"$teamname",gmlteamname);gmlmsg=string_replace(gmlmsg,"$playername",gmlplayername);gmlmsg=string_replace(gmlmsg,"$num",string(ds_map_find_value(gmlpmap,"outtrade_pick")));if(yyfequal(ds_map_find_value(gmlpmap,"signed_year"),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear)){{gmlmsg=string_hash_to_newline(yyfplus(yyfplus(__yy_gml_errCheck(gmlmsg),"##"),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"msg_TradeAwayRookie")))); };};gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_TradePlayer"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Trade"),kgml_Script_btn_response_out_trade_player_no,kgml_Script_btn_response_out_trade_player_yes,global.gmlc_background,1);};};};};}}function gml_GlobalScript_btn_click_Profile_Stats(_inst,_other){(_inst.gmlbtn_click_Profile_Stats=__yy_method(_inst,gml_Script_btn_click_Profile_Stats));}function gml_Script_btn_click_Profile_Stats(_inst, _other){{{var __yy__v474=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v475 in __yy__v474){if(!__yy__v474.hasOwnProperty(__yy__v475))continue;var __yy__v476=__yy__v474[__yy__v475];{if(yyfequal(ds_map_find_value(__yy__v476.gmlplayer_profile,"position"),1)){__yy__v476.gmlstat_view=1;};if(yyfequal(ds_map_find_value(__yy__v476.gmlplayer_profile,"position"),2)){__yy__v476.gmlstat_view=2;};if(yyGetBool(gml_Script_s_is_co_mode(__yy__v476,_inst))){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlco_stats_tab=0; };};}}};room_goto(YYASSET_REF(0x0300001B));}}function gml_GlobalScript_btn_click_Profile_Rest(_inst,_other){(_inst.gmlbtn_click_Profile_Rest=__yy_method(_inst,gml_Script_btn_click_Profile_Rest));}function gml_Script_btn_click_Profile_Rest(_inst,_other){{gml_Script_slog(_inst,_other,"btn_profile_rest");{var __yy__v477=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v478 in __yy__v477){if(!__yy__v477.hasOwnProperty(__yy__v478))continue;var __yy__v479=__yy__v477[__yy__v478];{if(yyGetBool(gml_Script_s_is_co_mode(__yy__v479, _inst))){{if(yyGetBool(ds_map_find_value(__yy__v479.gmlplayer_profile,"suspended"))){{var gmlmsg=gml_Script_s_parse_player_message(__yy__v479,_inst,gml_Script_s_str(__yy__v479,_inst,"msg_suspended"),__yy__v479.gmlplayer_profile);gml_Script_s_create_message(__yy__v479,_inst,gml_Script_s_str(__yy__v479,_inst,"ui_PlayerSuspended"),gmlmsg,gml_Script_s_str(__yy__v479,_inst,"ui_Ok"),"",kgml_Script_s_msg_clear,(-4),global.gmlc_background,1);return;};};};};if(yyGetBool(global.gmlexhibition)){{var ___sw356___=ds_map_find_value(__yy__v479.gmlplayer_profile, "resting");var ___swc357___=-1;if(yyCompareVal(___sw356___,0,g_GMLMathEpsilon,false)==0){___swc357___=0;}else if(yyCompareVal(___sw356___,1,g_GMLMathEpsilon,false)==0){___swc357___=1;}switch(___swc357___){case 0:{ds_map_set(__yy__v479.gmlplayer_profile,"resting",true);break;}case 1:{ds_map_set(__yy__v479.gmlplayer_profile,"resting",false);break;}};room_goto(YYASSET_REF(0x03000016));return;};};var ___sw358___=ds_map_find_value(__yy__v479.gmlplayer_profile,"resting");var ___swc359___=-1;if(yyCompareVal(___sw358___, 0,g_GMLMathEpsilon,false)==0){___swc359___=0;}else if(yyCompareVal(___sw358___,1,g_GMLMathEpsilon,false)==0){___swc359___=1;}switch(___swc359___){case 0:{var gmlmsg=gml_Script_s_parse_player_message(__yy__v479,_inst,gml_Script_s_str(__yy__v479,_inst,"msg_Bench"),__yy__v479.gmlplayer_profile);gml_Script_s_create_message(__yy__v479,_inst,gml_Script_s_str(__yy__v479,_inst,"ui_BenchPlayer"),gmlmsg,gml_Script_s_str(__yy__v479,_inst,"ui_No"),gml_Script_s_str(__yy__v479,_inst,"ui_Yes"),kgml_Script_s_msg_clear, kgml_Script_btn_response_rest_player_yes,global.gmlc_background,1);break;}case 1:{if(yyfless(ds_map_find_value(__yy__v479.gmlplayer_profile,"condition"),40)){ds_map_set(__yy__v479.gmlplayer_profile,"attitude",clamp(yyfminus(__yy_gml_errCheck(ds_map_find_value(__yy__v479.gmlplayer_profile,"attitude")),15),1,100));};ds_map_set(__yy__v479.gmlplayer_profile,"resting",false);room_goto(YYASSET_REF(0x03000016));break;}};}}};}}function gml_GlobalScript_btn_click_Profile_Not_Interested(_inst,_other){(_inst.gmlbtn_click_Profile_Not_Interested=__yy_method(_inst, gml_Script_btn_click_Profile_Not_Interested));}function gml_Script_btn_click_Profile_Not_Interested(_inst,_other){{{var __yy__v480=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v481 in __yy__v480){if(!__yy__v480.hasOwnProperty(__yy__v481))continue;var __yy__v482=__yy__v480[__yy__v481];{__yy__v482.gmlstage=1;var gmlpos=ds_list_find_index(__yy__v482.gmlfreeagentlist,__yy__v482.gmlplayer_profile);if(yyfgreater(gmlpos,(-1))){{if((yyGetBool(ds_exists(__yy__v482.gmlplayer_profile,1)))&&(yyGetBool(ds_map_exists(__yy__v482.gmlplayer_profile, "hof")))&&(yyGetBool(yyfequal(ds_map_find_value(__yy__v482.gmlplayer_profile,"hof"),true)))){{ds_map_set(__yy__v482.gmlplayer_profile,"team_leave_reason","cut");ds_list_add(__yy__v482.gmlhoflist,__yy__v482.gmlplayer_profile);};}else {{ds_map_destroy(ds_list_find_value(__yy__v482.gmlfreeagentlist,gmlpos));ds_list_set(__yy__v482.gmlfreeagentlist,gmlpos,(-1));};};ds_list_delete(__yy__v482.gmlfreeagentlist,gmlpos);if(yyfgreater(ds_list_size(__yy__v482.gmlfreeagentlist),0)){{room_goto(YYASSET_REF(0x03000007)); return;};};};};gmlpos=ds_list_find_index(__yy__v482.gmltradelist,__yy__v482.gmlplayer_profile);if(yyfgreater(gmlpos,(-1))){{ds_map_destroy(ds_list_find_value(__yy__v482.gmltradelist,gmlpos));ds_list_set(__yy__v482.gmltradelist,gmlpos,(-1));ds_list_delete(__yy__v482.gmltradelist,gmlpos);if(yyfgreater(ds_list_size(__yy__v482.gmltradelist),0)){{room_goto(YYASSET_REF(0x03000007));return;};};};};}}};room_goto(YYASSET_REF(0x0300000E));}}function gml_GlobalScript_btn_click_Profile_ScoutPlayer(_inst,_other){ (_inst.gmlbtn_click_Profile_ScoutPlayer=__yy_method(_inst,gml_Script_btn_click_Profile_ScoutPlayer));}function gml_Script_btn_click_Profile_ScoutPlayer(_inst,_other){{{var __yy__v483=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v484 in __yy__v483){if(!__yy__v483.hasOwnProperty(__yy__v484))continue;var __yy__v485=__yy__v483[__yy__v484];{ds_map_set(__yy__v485.gmlplayer_profile,"scouted",true);(g_yyPrePostObject__=__yy__v485.gmlinterviews,__yy__v485.gmlinterviews=(g_yyPrePostObject__ instanceof Long?__yy__v485.gmlinterviews.subtract(1):--__yy__v485.gmlinterviews), g_yyPrePostObject__);}}};room_goto(YYASSET_REF(0x03000016));}}function gml_GlobalScript_btn_click_AddSkill(_inst,_other){(_inst.gmlbtn_click_AddSkill=__yy_method(_inst,gml_Script_btn_click_AddSkill));}function gml_Script_btn_click_AddSkill(_inst,_other){{gml_Script_s_increase_player_attribute(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,1);{var __yy__v486=GetWithArray(YYASSET_REF(0x00000094));for(var __yy__v487 in __yy__v486){if(!__yy__v486.hasOwnProperty(__yy__v487))continue; var __yy__v488=__yy__v486[__yy__v487];{yyInst(_inst,_other,100438).gmlpercent=yyftime(__yy_gml_errCheck(ds_map_find_value(__yy__v488.gmlpmap,"skill")),10);yyInst(_inst,_other,100438).gmlflash=true;yyInst(_inst,_other,100439).gmlflash=false;yyInst(_inst,_other,100440).gmlflash=false;yyInst(_inst,_other,100444).gmlflash=false;layer_set_visible(__yy__v488.gmllayer_back,false);layer_set_visible(__yy__v488.gmllayer_main,false);layer_set_visible(__yy__v488.gmllayer_pick,false);layer_set_visible(__yy__v488.gmllayer_xp, false);layer_set_visible(__yy__v488.gmllayer_xp_cont,true);gml_Script_s_sound(__yy__v488,_inst,YYASSET_REF(0x02000019));}}};}}function gml_GlobalScript_btn_click_AddSpeed(_inst,_other){(_inst.gmlbtn_click_AddSpeed=__yy_method(_inst,gml_Script_btn_click_AddSpeed));}function gml_Script_btn_click_AddSpeed(_inst,_other){{gml_Script_s_increase_player_attribute(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,2);{var __yy__v489=GetWithArray(YYASSET_REF(0x00000094));for(var __yy__v490 in __yy__v489){ if(!__yy__v489.hasOwnProperty(__yy__v490))continue;var __yy__v491=__yy__v489[__yy__v490];{yyInst(_inst,_other,100439).gmlpercent=yyftime(__yy_gml_errCheck(ds_map_find_value(__yy__v491.gmlpmap,"speed")),10);yyInst(_inst,_other,100438).gmlflash=false;yyInst(_inst,_other,100439).gmlflash=true;yyInst(_inst,_other,100440).gmlflash=false;yyInst(_inst,_other,100444).gmlflash=false;layer_set_visible(__yy__v491.gmllayer_back,false);layer_set_visible(__yy__v491.gmllayer_main,false);layer_set_visible(__yy__v491.gmllayer_pick, false);layer_set_visible(__yy__v491.gmllayer_xp,false);layer_set_visible(__yy__v491.gmllayer_xp_cont,true);gml_Script_s_sound(__yy__v491,_inst,YYASSET_REF(0x02000019));}}};}}function gml_GlobalScript_btn_click_AddStrength(_inst,_other){(_inst.gmlbtn_click_AddStrength=__yy_method(_inst,gml_Script_btn_click_AddStrength));}function gml_Script_btn_click_AddStrength(_inst,_other){{gml_Script_s_increase_player_attribute(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,3);{var __yy__v492=GetWithArray(YYASSET_REF(0x00000094)); for(var __yy__v493 in __yy__v492){if(!__yy__v492.hasOwnProperty(__yy__v493))continue;var __yy__v494=__yy__v492[__yy__v493];{yyInst(_inst,_other,100440).gmlpercent=yyftime(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"strength")),10);yyInst(_inst,_other,100438).gmlflash=false;yyInst(_inst,_other,100439).gmlflash=false;yyInst(_inst,_other,100440).gmlflash=true;yyInst(_inst,_other,100444).gmlflash=false;layer_set_visible(__yy__v494.gmllayer_back,false); layer_set_visible(__yy__v494.gmllayer_main,false);layer_set_visible(__yy__v494.gmllayer_pick,false);layer_set_visible(__yy__v494.gmllayer_xp,false);layer_set_visible(__yy__v494.gmllayer_xp_cont,true);gml_Script_s_sound(__yy__v494,_inst,YYASSET_REF(0x02000019));}}};}}function gml_GlobalScript_btn_click_AddStamina(_inst,_other){(_inst.gmlbtn_click_AddStamina=__yy_method(_inst,gml_Script_btn_click_AddStamina));}function gml_Script_btn_click_AddStamina(_inst,_other){{gml_Script_s_increase_player_attribute(_inst, _other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,4);{var __yy__v495=GetWithArray(YYASSET_REF(0x00000094));for(var __yy__v496 in __yy__v495){if(!__yy__v495.hasOwnProperty(__yy__v496))continue;var __yy__v497=__yy__v495[__yy__v496];{yyInst(_inst,_other,100444).gmlpercent=yyftime(__yy_gml_errCheck(ds_map_find_value(__yy__v497.gmlpmap,"stamina")),10);yyInst(_inst,_other,100438).gmlflash=false;yyInst(_inst,_other,100439).gmlflash=false;yyInst(_inst,_other,100440).gmlflash=false;yyInst(_inst, _other,100444).gmlflash=true;layer_set_visible(__yy__v497.gmllayer_back,false);layer_set_visible(__yy__v497.gmllayer_main,false);layer_set_visible(__yy__v497.gmllayer_pick,false);layer_set_visible(__yy__v497.gmllayer_xp,false);layer_set_visible(__yy__v497.gmllayer_xp_cont,true);gml_Script_s_sound(__yy__v497,_inst,YYASSET_REF(0x02000019));}}};}}function gml_GlobalScript_btn_click_StatsNext(_inst,_other){(_inst.gmlbtn_click_StatsNext=__yy_method(_inst,gml_Script_btn_click_StatsNext));}function gml_Script_btn_click_StatsNext(_inst, _other){{{var __yy__v498=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v499 in __yy__v498){if(!__yy__v498.hasOwnProperty(__yy__v499))continue;var __yy__v500=__yy__v498[__yy__v499];{__yy__v500.gmlpos=yyfplus(__yy_gml_errCheck(ds_list_find_index(__yy__v500.gmlroster,__yy__v500.gmlplayer_profile)),1);if(yyfgreaterequal(__yy__v500.gmlpos,ds_list_size(__yy__v500.gmlroster))){__yy__v500.gmlpos=0;};__yy__v500.gmlplayer_profile=ds_list_find_value(__yy__v500.gmlroster,__yy__v500.gmlpos);if(yyfequal(ds_map_find_value(__yy__v500.gmlplayer_profile, "position"),1)){__yy__v500.gmlstat_view=1;};if(yyfequal(ds_map_find_value(__yy__v500.gmlplayer_profile,"position"),2)){__yy__v500.gmlstat_view=2;};if(yyGetBool(gml_Script_s_is_co_mode(__yy__v500,_inst))){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlco_stats_tab=0;};};}}};room_goto(YYASSET_REF(0x0300001B));}}function gml_GlobalScript_btn_click_StatsPrev(_inst,_other){(_inst.gmlbtn_click_StatsPrev=__yy_method(_inst,gml_Script_btn_click_StatsPrev));}function gml_Script_btn_click_StatsPrev(_inst,_other){ {{var __yy__v501=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v502 in __yy__v501){if(!__yy__v501.hasOwnProperty(__yy__v502))continue;var __yy__v503=__yy__v501[__yy__v502];{__yy__v503.gmlpos=yyfminus(__yy_gml_errCheck(ds_list_find_index(__yy__v503.gmlroster,__yy__v503.gmlplayer_profile)),1);if(yyfless(__yy__v503.gmlpos,0)){__yy__v503.gmlpos=yyfminus(__yy_gml_errCheck(ds_list_size(__yy__v503.gmlroster)),1);};__yy__v503.gmlplayer_profile=ds_list_find_value(__yy__v503.gmlroster,__yy__v503.gmlpos); if(yyfequal(ds_map_find_value(__yy__v503.gmlplayer_profile,"position"),1)){__yy__v503.gmlstat_view=1;};if(yyfequal(ds_map_find_value(__yy__v503.gmlplayer_profile,"position"),2)){__yy__v503.gmlstat_view=2;};if(yyGetBool(gml_Script_s_is_co_mode(__yy__v503,_inst))){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlco_stats_tab=0;};};}}};room_goto(YYASSET_REF(0x0300001B));}}function gml_GlobalScript_btn_click_StatsView1(_inst,_other){(_inst.gmlbtn_click_StatsView1=__yy_method(_inst,gml_Script_btn_click_StatsView1)); }function gml_Script_btn_click_StatsView1(_inst,_other){{gml_Script_slog(_inst,_other,"showStats(2)");yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstat_view=1;if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlco_stats_tab=0;};};room_goto(YYASSET_REF(0x0300001B));}}function gml_GlobalScript_btn_click_StatsView2(_inst,_other){(_inst.gmlbtn_click_StatsView2=__yy_method(_inst,gml_Script_btn_click_StatsView2));}function gml_Script_btn_click_StatsView2(_inst, _other){{gml_Script_slog(_inst,_other,"showStats(2)");yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstat_view=2;if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlco_stats_tab=0;};};room_goto(YYASSET_REF(0x0300001B));}}function gml_GlobalScript_btn_click_EditProfile(_inst,_other){(_inst.gmlbtn_click_EditProfile=__yy_method(_inst,gml_Script_btn_click_EditProfile));}function gml_Script_btn_click_EditProfile(_inst,_other){{gml_Script_s_msg_clear(_inst, _other);{var __yy__v504=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v505 in __yy__v504){if(!__yy__v504.hasOwnProperty(__yy__v505))continue;var __yy__v506=__yy__v504[__yy__v505];{if(yyGetBool(__yy__v506.gmlplayer_profile)){{if((yyGetBool(yyfequal(ds_map_find_value(__yy__v506.gmlmap_options,"fullversion"),1)))||(yyGetBool(yyfequal(ds_map_find_value(__yy__v506.gmlplayer_profile,"position"),100)))){{var gmlis_staff=gml_Script_s_is_staff(__yy__v506,_inst,ds_map_find_value(__yy__v506.gmlplayer_profile, "position"));__yy__v506.gmlface_type_coach=gmlis_staff;gml_Script_s_edit_field(__yy__v506,_inst,gml_Script_s_str(__yy__v506,_inst,"ui_FirstName"),gml_Script_s_str(__yy__v506,_inst,"ui_LastName"),ds_map_find_value(__yy__v506.gmlplayer_profile,"fname"),ds_map_find_value(__yy__v506.gmlplayer_profile,"lname"),ds_map_find_value(__yy__v506.gmlplayer_profile,"skin"),ds_map_find_value(__yy__v506.gmlplayer_profile,"face_x"),ds_map_find_value(__yy__v506.gmlplayer_profile,"face_y"),gmlis_staff,ds_map_find_value(__yy__v506.gmlplayer_profile, "face_set"));};}else {{gml_Script_s_create_message(__yy__v506,_inst,"",gml_Script_s_str(__yy__v506,_inst,"msg_NeedUnlimited"),gml_Script_s_str(__yy__v506,_inst,"ui_No"),gml_Script_s_str(__yy__v506,_inst,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_s_open_store,global.gmlc_background,1);};};};};}}};}}function gml_GlobalScript_btn_click_Meeting_Morale(_inst,_other){(_inst.gmlbtn_click_Meeting_Morale=__yy_method(_inst,gml_Script_btn_click_Meeting_Morale));}function gml_Script_btn_click_Meeting_Morale(_inst, _other){{var gmlname=yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"lname")));var gmlmsg=gml_Script_s_str(_inst,_other,"msg_MeetingMorale");var gmlmeetcost=gml_Script_s_get_meeting_cost_morale(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile);if(yyfgreaterequal(ds_map_find_value(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlplayer_profile,"attitude"),100)){{gmlmsg=gml_Script_s_str(_inst,_other,"msg_MeetingMoraleNotNeeded");gmlmsg=string_replace(gmlmsg,"$playername",gmlname);gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Meeting"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};}else {if(yyfgreater(gmlmeetcost,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit)){{gmlmsg=gml_Script_s_str(_inst, _other,"msg_MeetingNoCredit");gmlmsg=string_replace(gmlmsg,"$playername",gmlname);gmlmsg=string_replace(gmlmsg,"$num",string(gmlmeetcost));gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Meeting"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};}else {{gmlmsg=string_replace(gmlmsg,"$playername",gmlname);gmlmsg=string_replace(gmlmsg,"$num",string(gmlmeetcost));gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst, _other,"ui_Meeting"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_btn_response_player_meeting_morale_yes,global.gmlc_background,1);};};};}}function gml_GlobalScript_btn_click_Meeting_Condition(_inst,_other){(_inst.gmlbtn_click_Meeting_Condition=__yy_method(_inst,gml_Script_btn_click_Meeting_Condition));}function gml_Script_btn_click_Meeting_Condition(_inst,_other){{var gmlname=yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlplayer_profile,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"lname")));var gmlmsg=gml_Script_s_str(_inst,_other,"msg_MeetingCondition");var gmlmeetcost=gml_Script_s_get_meeting_cost_condition(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile);if(yyfgreaterequal(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"condition"),100)){{gmlmsg=gml_Script_s_str(_inst, _other,"msg_MeetingConditionNotNeeded");gmlmsg=string_replace(gmlmsg,"$playername",gmlname);gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Meeting"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};}else {if(yyfgreater(gmlmeetcost,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit)){{gmlmsg=gml_Script_s_str(_inst,_other,"msg_MeetingNoCredit");gmlmsg=string_replace(gmlmsg,"$playername",gmlname);gmlmsg=string_replace(gmlmsg, "$num",string(gmlmeetcost));gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Meeting"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};}else {{gmlmsg=string_replace(gmlmsg,"$playername",gmlname);gmlmsg=string_replace(gmlmsg,"$num",string(gmlmeetcost));gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Meeting"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other, "ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_btn_response_player_meeting_condition_yes,global.gmlc_background,1);};};};}}function gml_GlobalScript_s_qb_mode_update_resting(_inst,_other){(_inst.gmls_qb_mode_update_resting=__yy_method(_inst,gml_Script_s_qb_mode_update_resting));}function gml_Script_s_qb_mode_update_resting(_inst,_other){{if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)){{var gmlpmap=gml_Script_s_get_qb_pmap(_inst,_other);ds_map_set(gmlpmap,"resting",0);if(yyfnotequal(gml_Script_s_qb_mode_benched_status(_inst, _other),0)){ds_map_set(gmlpmap,"resting",1);};};};}}function gml_GlobalScript_btn_click_Meeting_LevelUp(_inst,_other){(_inst.gmlbtn_click_Meeting_LevelUp=__yy_method(_inst,gml_Script_btn_click_Meeting_LevelUp));}function gml_Script_btn_click_Meeting_LevelUp(_inst,_other){{var gmlname=yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile, "lname")));var gmli=string(yyfplus(1,__yy_gml_errCheck(yyfmod(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek),__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"position")))),3))));var gmlmsg=gml_Script_s_str(_inst,_other,yyfplus("msg_MeetingLevelUp",__yy_gml_errCheck(gmli)));var gmlmeetcost=gml_Script_s_get_meeting_cost_levelup(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile); if(yyGetBool(gml_Script_s_player_at_max_potential(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile))){{gmlmsg=gml_Script_s_str(_inst,_other,"msg_MeetingLevelUpNotNeeded");gmlmsg=string_replace(gmlmsg,"$playername",gmlname);gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Meeting"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};}else {if(yyfgreater(gmlmeetcost,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit)){ {gmlmsg=gml_Script_s_str(_inst,_other,"msg_MeetingNoCredit");gmlmsg=string_replace(gmlmsg,"$playername",gmlname);gmlmsg=string_replace(gmlmsg,"$num",string(gmlmeetcost));gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Meeting"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};}else {{gmlmsg=string_replace(gmlmsg,"$playername",gmlname);gmlmsg=string_replace(gmlmsg,"$num",string(gmlmeetcost));gml_Script_s_create_message(_inst, _other,gml_Script_s_str(_inst,_other,"ui_Meeting"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_btn_response_player_meeting_levelup_yes,global.gmlc_background,1);};};};}}function gml_GlobalScript_btn_click_Meeting_ExtendContract(_inst,_other){(_inst.gmlbtn_click_Meeting_ExtendContract=__yy_method(_inst,gml_Script_btn_click_Meeting_ExtendContract));}function gml_Script_btn_click_Meeting_ExtendContract(_inst,_other){{var gmlname=yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlplayer_profile,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"lname")));var gmlmeetcost=gml_Script_s_get_meeting_cost_extend_contract(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile);if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000097)).gmlretirement)){gmlmeetcost=max(gml_Script_s_get_meeting_cost_extend_contract(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile), gml_Script_s_get_meeting_cost_delay_retirement(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile));};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gmlmeetcost=gml_Script_s_get_meeting_cost_extend_contract(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile);};};if(yyfgreater(gmlmeetcost,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit)){{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_MeetingNoCredit");gmlmsg=string_replace(gmlmsg, "$playername",gmlname);gmlmsg=string_replace(gmlmsg,"$num",string(gmlmeetcost));gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Meeting"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{if(yyfgreaterequal(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"percent_grade"),yyfminus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlplayer_profile,"max_percent_grade")),5))){{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_MeetingGPANotNeeded");gmlmsg=string_replace(gmlmsg,"$playername",gmlname);gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Meeting"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};}else {{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_MeetingExtendContract");gmlmsg=string_replace(gmlmsg, "$playername",gmlname);gmlmsg=string_replace(gmlmsg,"$num",string(gmlmeetcost));gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Meeting"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_btn_response_player_meeting_academic_coaching,global.gmlc_background,1);return;};};};};if(yyflessequal(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"attitude"),45)){{var gmlmsg=gml_Script_s_str(_inst, _other,"msg_CannotSignMoraleLow");gmlmsg=string_replace(gmlmsg,"$playername",gmlname);gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Meeting"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};};var ___sw362___=yyInst(_inst,_other,YYASSET_REF(0x00000097)).gmlretirement;var ___swc363___=-1;if(yyCompareVal(___sw362___,false,g_GMLMathEpsilon,false)==0){___swc363___=0;}else if(yyCompareVal(___sw362___,true,g_GMLMathEpsilon, false)==0){___swc363___=1;}switch(___swc363___){case 0:{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_MeetingExtendContract");gmlmsg=string_replace(gmlmsg,"$playername",gmlname);gmlmsg=string_replace(gmlmsg,"$num",string(gmlmeetcost));gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Meeting"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_btn_response_player_meeting_extend_contract,global.gmlc_background, 1);break;}case 1:{if(yyfgreaterequal(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"age"),yyfplus(__yy_gml_errCheck(gml_Script_s_get_max_age(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile)),5))){{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_MeetingTooOld");gmlmsg=string_replace(gmlmsg,"$playername",gmlname);gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Meeting"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"), "",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};}else {{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_MeetingDelayRetirement");gmlmsg=string_replace(gmlmsg,"$playername",gmlname);gmlmsg=string_replace(gmlmsg,"$num",string(gmlmeetcost));gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Meeting"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_btn_response_player_meeting_extend_contract,global.gmlc_background, 1);};};break;}};}}function gml_GlobalScript_btn_click_FieldGoal(_inst,_other){(_inst.gmlbtn_click_FieldGoal=__yy_method(_inst,gml_Script_btn_click_FieldGoal));}function gml_Script_btn_click_FieldGoal(_inst,_other){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice=1;gml_Script_s_set_up_uniforms_training(_inst,_other);room_goto(YYASSET_REF(0x03000011));}}function gml_GlobalScript_btn_click_Running(_inst,_other){(_inst.gmlbtn_click_Running=__yy_method(_inst,gml_Script_btn_click_Running));} function gml_Script_btn_click_Running(_inst,_other){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice=2;gml_Script_s_set_up_uniforms_training(_inst,_other);room_goto(YYASSET_REF(0x03000011));}}function gml_GlobalScript_btn_click_Passing(_inst,_other){(_inst.gmlbtn_click_Passing=__yy_method(_inst,gml_Script_btn_click_Passing));}function gml_Script_btn_click_Passing(_inst,_other){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice=3;gml_Script_s_set_up_uniforms_training(_inst,_other); room_goto(YYASSET_REF(0x03000011));}}function gml_GlobalScript_s_get_happiness(_inst,_other){(_inst.gmls_get_happiness=__yy_method(_inst,gml_Script_s_get_happiness));}function gml_Script_s_get_happiness(_inst,_other){{{var __yy__v507=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v508 in __yy__v507){if(!__yy__v507.hasOwnProperty(__yy__v508))continue;var __yy__v509=__yy__v507[__yy__v508];{var gmlhap=yyfplus(yyfplus(__yy_gml_errCheck(__yy__v509.gmlfans),__yy_gml_errCheck(__yy__v509.gmlrelationship_boss)), __yy_gml_errCheck(gml_Script_s_get_morale(__yy__v509,_inst)));return yyfdivide(__yy_gml_errCheck(gmlhap),3);}}};}}function gml_GlobalScript_btn_click_Training(_inst,_other){(_inst.gmlbtn_click_Training=__yy_method(_inst,gml_Script_btn_click_Training));}function gml_Script_btn_click_Training(_inst,_other){{room_goto(YYASSET_REF(0x0300001E));}}function gml_GlobalScript_btn_click_Roster(_inst,_other){(_inst.gmlbtn_click_Roster=__yy_method(_inst,gml_Script_btn_click_Roster));}function gml_Script_btn_click_Roster(_inst, _other){{if((yyGetBool(yyfequal(g_pBuiltIn.get_current_room(),YYASSET_REF(0x0300000E))))&&(yyGetBool(ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfreeagentlist)))){{_inst.gmlstage=1;room_goto(YYASSET_REF(0x03000007));return;};};room_goto(YYASSET_REF(0x03000019));}}function gml_GlobalScript_btn_click_Roster_Back(_inst,_other){(_inst.gmlbtn_click_Roster_Back=__yy_method(_inst,gml_Script_btn_click_Roster_Back));(_inst.gmlbtn_click_Profile_Back_To_Draft=__yy_method(_inst,gml_Script_btn_click_Profile_Back_To_Draft)); (_inst.gmlbtn_click_Profile_Back_To_Draft_Continue=__yy_method(_inst,gml_Script_btn_click_Profile_Back_To_Draft_Continue));}function gml_Script_btn_click_Roster_Back(_inst,_other){{{var __yy__v510=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v511 in __yy__v510){if(!__yy__v510.hasOwnProperty(__yy__v511))continue;var __yy__v512=__yy__v510[__yy__v511];{if(yyGetBool(__yy__v512.gmlroster_from_store)){room_goto(YYASSET_REF(0x03000008));}else {if((yyGetBool(yyfgreater(ds_list_size(__yy__v512.gmldraftlist), 0)))&&(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraft_entered))){gml_Script_btn_click_Profile_Back_To_Draft(__yy__v512,_inst);}else {if(yyfgreater(ds_list_size(__yy__v512.gmlfreeagentlist),0)){room_goto(YYASSET_REF(0x03000007));}else {if(yyfgreater(ds_list_size(__yy__v512.gmltradelist),0)){room_goto(YYASSET_REF(0x03000007));}else {room_goto(YYASSET_REF(0x0300000E));};};};};}}};}}function gml_Script_btn_click_Profile_Back_To_Draft(_inst,_other){{gml_Script_slog(_inst,_other,"btn_click_Profile_Back_To_Draft"); if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{room_goto(YYASSET_REF(0x03000005));return;};};if((yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_admissions_warn_once))&&(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_admissions_doing_player_draft_sign))){{gml_Script_slog(_inst,_other,"btn_click_Profile_Back_To_Draft - Warn");yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_admissions_warn_once=0;gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst, _other,"ui_Admissions_Warn_Once"),"",gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_btn_click_Profile_Back_To_Draft_Continue,global.gmlc_background,1);};}else {{gml_Script_slog(_inst,_other,"btn_click_Profile_Back_To_Draft - No Warn");yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_admissions_doing_player_draft_sign=false;room_goto(YYASSET_REF(0x03000005));};};}}function gml_Script_btn_click_Profile_Back_To_Draft_Continue(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlcollege_admissions_doing_player_draft_sign=false;room_goto(YYASSET_REF(0x03000005));}}function gml_GlobalScript_btn_click_DraftPrev(_inst,_other){(_inst.gmlbtn_click_DraftPrev=__yy_method(_inst,gml_Script_btn_click_DraftPrev));}function gml_Script_btn_click_DraftPrev(_inst,_other){{{var __yy__v513=GetWithArray(YYASSET_REF(0x0000009B));for(var __yy__v514 in __yy__v513){if(!__yy__v513.hasOwnProperty(__yy__v514))continue;var __yy__v515=__yy__v513[__yy__v514];{(g_yyPrePostObject__=yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmldraft_page,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraft_page=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraft_page.subtract(1):--yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraft_page),g_yyPrePostObject__);if(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraft_page,1)){yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraft_page=__yy__v515.gmlpage_max;};gml_Script_s_update_draft_page(__yy__v515,_inst); }}};}}function gml_GlobalScript_btn_click_DraftNext(_inst,_other){(_inst.gmlbtn_click_DraftNext=__yy_method(_inst,gml_Script_btn_click_DraftNext));}function gml_Script_btn_click_DraftNext(_inst,_other){{{var __yy__v516=GetWithArray(YYASSET_REF(0x0000009B));for(var __yy__v517 in __yy__v516){if(!__yy__v516.hasOwnProperty(__yy__v517))continue;var __yy__v518=__yy__v516[__yy__v517];{(g_yyPrePostObject__=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraft_page,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraft_page=(g_yyPrePostObject__ instanceof Long?yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmldraft_page.add(1):++yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraft_page),g_yyPrePostObject__);if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraft_page,__yy__v518.gmlpage_max)){yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraft_page=1;};gml_Script_s_update_draft_page(__yy__v518,_inst);}}};}}function gml_GlobalScript_btn_click_DraftDone(_inst,_other){(_inst.gmlbtn_click_DraftDone=__yy_method(_inst,gml_Script_btn_click_DraftDone));}function gml_Script_btn_click_DraftDone(_inst, _other){{gml_Script_slog(_inst,_other,"btn_click_DraftRound");if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gml_Script_s_college_admissions_draft_done(_inst,_other);return;};};var gmlpicks=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraft_picks[__yy_gml_array_check_index(yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraft_round),1),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraft_picks)];gml_Script_slog(_inst,_other,yyfplus("Picks = ",__yy_gml_errCheck(string(gmlpicks)))); if(yyfgreater(gmlpicks,0)){{var gmlvalue=yyftime(__yy_gml_errCheck(gmlpicks),__yy_gml_errCheck(yyfminus(4,__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraft_round))));var gmlmsg=gml_Script_s_str(_inst,_other,"msg_SkipDraft");if(yyfequal(gmlpicks,1)){gmlmsg=gml_Script_s_str(_inst,_other,"msg_SkipDraft1");};gmlmsg=string_replace(gmlmsg,"$num",string(gmlpicks));gmlmsg=string_replace(gmlmsg,"$value",string(gmlvalue));gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst, _other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_btn_response_skip_draft_yes,global.gmlc_background,1);};}else {{gml_Script_s_end_draft_round(_inst,_other,false);};};}}function gml_GlobalScript_btn_click_FreeAgents(_inst,_other){(_inst.gmlbtn_click_FreeAgents=__yy_method(_inst,gml_Script_btn_click_FreeAgents));}function gml_Script_btn_click_FreeAgents(_inst,_other){{room_goto(YYASSET_REF(0x03000007));}}function gml_GlobalScript_btn_click_FreeAgentsBack(_inst, _other){(_inst.gmlbtn_click_FreeAgentsBack=__yy_method(_inst,gml_Script_btn_click_FreeAgentsBack));}function gml_Script_btn_click_FreeAgentsBack(_inst,_other){{gml_Script_slog(_inst,_other,"btn_click_FreeAgentBack");{var __yy__v519=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v520 in __yy__v519){if(!__yy__v519.hasOwnProperty(__yy__v520))continue;var __yy__v521=__yy__v519[__yy__v520];{gml_Script_slog(__yy__v521,_inst,yyfplus("FreeAgents=",__yy_gml_errCheck(string(ds_list_size(__yy__v521.gmlfreeagentlist))))); gml_Script_slog(__yy__v521,_inst,yyfplus("TradeList=",__yy_gml_errCheck(string(ds_list_size(__yy__v521.gmltradelist)))));if(yyGetBool(gml_Script_s_is_co_mode(__yy__v521,_inst))){{gml_Script_s_clear_freeagents(__yy__v521,_inst);};};if(yyfgreater(ds_list_size(__yy__v521.gmlfreeagentlist),0)){{var gmlmsg=gml_Script_s_str(__yy__v521,_inst,"msg_ClearFreeAgent");if(yyfgreater(ds_list_size(__yy__v521.gmlfreeagentlist),1)){gmlmsg=gml_Script_s_str(__yy__v521,_inst,"msg_ClearFreeAgents");};gml_Script_s_create_message(__yy__v521, _inst,"",gmlmsg,gml_Script_s_str(__yy__v521,_inst,"ui_No"),gml_Script_s_str(__yy__v521,_inst,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_btn_response_clearfreeagents,global.gmlc_background,1);return;};}else {if(yyfgreater(ds_list_size(__yy__v521.gmltradelist),0)){{var gmlmsg=gml_Script_s_str(__yy__v521,_inst,"msg_ClearTradeOffer");gml_Script_s_create_message(__yy__v521,_inst,"",gmlmsg,gml_Script_s_str(__yy__v521,_inst,"ui_No"),gml_Script_s_str(__yy__v521,_inst,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_btn_response_clearfreeagents, global.gmlc_background,1);return;};};};}}};room_goto(YYASSET_REF(0x0300000E));}}function gml_GlobalScript_btn_click_RestAll(_inst,_other){(_inst.gmlbtn_click_RestAll=__yy_method(_inst,gml_Script_btn_click_RestAll));}function gml_Script_btn_click_RestAll(_inst,_other){{gml_Script_s_rest_all_players(_inst,_other,!yyGetBool(gml_Script_s_all_players_resting(_inst,_other)));room_goto(YYASSET_REF(0x03000022));}}function gml_GlobalScript_btn_click_FreeAgentsNext(_inst,_other){(_inst.gmlbtn_click_FreeAgentsNext=__yy_method(_inst, gml_Script_btn_click_FreeAgentsNext));}function gml_Script_btn_click_FreeAgentsNext(_inst,_other){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfa_page=2;room_goto(YYASSET_REF(0x03000008));}}function gml_GlobalScript_btn_click_FreeAgentsPrev(_inst,_other){(_inst.gmlbtn_click_FreeAgentsPrev=__yy_method(_inst,gml_Script_btn_click_FreeAgentsPrev));}function gml_Script_btn_click_FreeAgentsPrev(_inst,_other){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfa_page=1;room_goto(YYASSET_REF(0x03000008)); }}function gml_GlobalScript_btn_click_FreeAgentsReset(_inst,_other){(_inst.gmlbtn_click_FreeAgentsReset=__yy_method(_inst,gml_Script_btn_click_FreeAgentsReset));}function gml_Script_btn_click_FreeAgentsReset(_inst,_other){{{var __yy__v522=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v523 in __yy__v522){if(!__yy__v522.hasOwnProperty(__yy__v523))continue;var __yy__v524=__yy__v522[__yy__v523];{if(yyfless(__yy__v524.gmlcoach_credit,5)){{var gmlmsg=gml_Script_s_str(__yy__v524,_inst,"msg_ResetNoCredit"); gmlmsg=string_replace(gmlmsg,"$num",5);gml_Script_s_create_message(__yy__v524,_inst,"",gmlmsg,gml_Script_s_str(__yy__v524,_inst,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};};if(yyfequal(__yy__v524.gmlfreeagent_reset_week,__yy__v524.gmlweek)){{gml_Script_s_create_message(__yy__v524,_inst,"",gml_Script_s_str(__yy__v524,_inst,"msg_ResetTooSoon"),gml_Script_s_str(__yy__v524,_inst,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};};var gmlmsg=gml_Script_s_str(__yy__v524, _inst,"msg_FreeAgentReset");gmlmsg=string_replace(gmlmsg,"$num",5);gml_Script_s_create_message(__yy__v524,_inst,"",gmlmsg,gml_Script_s_str(__yy__v524,_inst,"ui_Cancel"),gml_Script_s_str(__yy__v524,_inst,"ui_Confirm"),kgml_Script_s_msg_clear,kgml_Script_s_confirm_freeagent_hire_reset,global.gmlc_background,1);}}};}}function gml_GlobalScript_btn_click_Boost_Morale(_inst,_other){(_inst.gmlbtn_click_Boost_Morale=__yy_method(_inst,gml_Script_btn_click_Boost_Morale));}function gml_Script_btn_click_Boost_Morale(_inst, _other){{if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlboost_morale_done)){{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_BoostMoraleAlreadyDone"),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};}else {if(yyfgreater(25,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit)){{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_BoostMoraleNoCredit");gmlmsg=string_replace(gmlmsg,"$num",string(25)); gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};}else {{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_BoostMorale");gmlmsg=string_replace(gmlmsg,"$num",string(25));gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_btn_response_boost_morale,global.gmlc_background,1);};};};}}function gml_GlobalScript_btn_click_Boost_Condition(_inst, _other){(_inst.gmlbtn_click_Boost_Condition=__yy_method(_inst,gml_Script_btn_click_Boost_Condition));}function gml_Script_btn_click_Boost_Condition(_inst,_other){{if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlboost_condition_done)){{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_BoostConditionAlreadyDone"),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};}else {if(yyfgreater(25,yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlcoach_credit)){{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_BoostConditionNoCredit");gmlmsg=string_replace(gmlmsg,"$num",string(25));gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};}else {{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_BoostCondition");gmlmsg=string_replace(gmlmsg,"$num",string(25));gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst, _other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_btn_response_boost_condition,global.gmlc_background,1);};};};}}function gml_GlobalScript_btn_click_Boost_Salary_Cap(_inst,_other){(_inst.gmlbtn_click_Boost_Salary_Cap=__yy_method(_inst,gml_Script_btn_click_Boost_Salary_Cap));}function gml_Script_btn_click_Boost_Salary_Cap(_inst,_other){{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gml_Script_recruitment_credits_button_click_boost(_inst,_other);return; };};if(yyfgreater(100,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit)){{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_BoostSalaryNoCredit");gmlmsg=string_replace(gmlmsg,"$num",string(yyfplus(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsalary_cap),__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlboost_salary_cap)),25)));gmlmsg=string_replace(gmlmsg,"$cost",string(100));gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst, _other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};}else {{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_BoostSalaryCap");gmlmsg=string_replace(gmlmsg,"$num",string(yyfplus(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsalary_cap),__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlboost_salary_cap)),25)));gmlmsg=string_replace(gmlmsg,"$cost",string(100));gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst, _other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_btn_response_boost_salary_cap,global.gmlc_background,1);};};}}function gml_GlobalScript_s_set_up_button_kickoff(_inst,_other){(_inst.gmls_set_up_button_kickoff=__yy_method(_inst,gml_Script_s_set_up_button_kickoff));(_inst.gmlbtn_kick_off=__yy_method(_inst,gml_Script_btn_kick_off));(_inst.gmls_btn_kickoff_recenter=__yy_method(_inst,gml_Script_s_btn_kickoff_recenter));}function gml_Script_s_set_up_button_kickoff(_inst, _other){{gml_Script_slog(_inst,_other,"s_set_up_button_kickoff");_inst.gmlbtn_kickoff=(-1);if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice)){return;};{var __yy__v525=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v526 in __yy__v525){if(!__yy__v525.hasOwnProperty(__yy__v526))continue;var __yy__v527=__yy__v525[__yy__v526];{var gmlbx=yyfminus(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(display_get_gui_width()),2)),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(sprite_get_width(YYASSET_REF(0x0100005A))), 2)));var gmlby=180;__yy__v527.gmlbtn_kickoff=instance_create_layer(gmlbx,gmlby,"Text",YYASSET_REF(0x00000020));yyInst(_inst,_other,__yy__v527.gmlbtn_kickoff).gmlgp_mapped_button=global.gmlgp_select;{var __yy__v528=GetWithArray(YYASSET_REF(0x0000001E));for(var __yy__v529 in __yy__v528){if(!__yy__v528.hasOwnProperty(__yy__v529))continue;var __yy__v530=__yy__v528[__yy__v529];instance_destroy(__yy__v530);}};gml_Script_slog(__yy__v527,_inst,gml_Script_s_get_string_commstage(__yy__v527,_inst,__yy__v527.gmlcomm_stage)); gml_Script_slog(__yy__v527,_inst,yyfplus("Quarter = ",__yy_gml_errCheck(string(__yy__v527.gmlquarter))));var gmlkickingoff=(-1);var ___sw368___=__yy__v527.gmlcomm_stage;var ___swc369___=-1;if(yyCompareVal(___sw368___,0,g_GMLMathEpsilon,false)==0){___swc369___=0;}else if(yyCompareVal(___sw368___,12,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw368___,13,g_GMLMathEpsilon,false)==0){___swc369___=1;}switch(___swc369___){case 0:{if((yyGetBool(yyfequal(__yy__v527.gmlkickoffteam,__yy__v527.gmlhuman_team)))||(yyGetBool(yyfequal(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlplayerteamindex,(-1))))){gmlkickingoff=1;}else {gmlkickingoff=0;};break;}case 1:{if(yyfequal(__yy__v527.gmlquarter,2)){{if((yyGetBool(yyfnotequal(__yy__v527.gmlkickoffteam,__yy__v527.gmlhuman_team)))||(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayerteamindex,(-1))))){gmlkickingoff=1;}else {gmlkickingoff=0;};};};break;}};var ___sw370___=gmlkickingoff;var ___swc371___=-1;if(yyCompareVal(___sw370___,(-1),g_GMLMathEpsilon,false)==0){___swc371___=0; }else if(yyCompareVal(___sw370___,0,g_GMLMathEpsilon,false)==0){___swc371___=1;}else if(yyCompareVal(___sw370___,1,g_GMLMathEpsilon,false)==0){___swc371___=2;}switch(___swc371___){case 0:{yyInst(_inst,_other,__yy__v527.gmlbtn_kickoff).gmltxt=gml_Script_s_str(__yy__v527,_inst,"ui_Continue");break;}case 1:{yyInst(_inst,_other,__yy__v527.gmlbtn_kickoff).gmltxt=gml_Script_s_str(__yy__v527,_inst,"match_Receive");break;}case 2:{yyInst(_inst,_other,__yy__v527.gmlbtn_kickoff).gmltxt=gml_Script_s_str(__yy__v527, _inst,"match_KickOff");break;}};}}};}}function gml_Script_btn_kick_off(_inst,_other){{gml_Script_slog(_inst,_other,"btn_kick_off");instance_destroy(_inst);{var __yy__v531=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v532 in __yy__v531){if(!__yy__v531.hasOwnProperty(__yy__v532))continue;var __yy__v533=__yy__v531[__yy__v532];__yy__v533.gmlcomm_proceed=true;}};if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))){audio_play_sound(YYASSET_REF(0x02000006), 1,false);};}}function gml_Script_s_btn_kickoff_recenter(_inst,_other){{_inst.x=yyfminus(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(display_get_gui_width()),2)),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(sprite_get_width(YYASSET_REF(0x0100005A))),2)));}}function gml_GlobalScript_s_college_editor(_inst,_other){(_inst.gmls_rm_editor_init=__yy_method(_inst,gml_Script_s_rm_editor_init));(_inst.gmls_goto_editor=__yy_method(_inst,gml_Script_s_goto_editor));(_inst.gmls_btn_editor_done=__yy_method(_inst, gml_Script_s_btn_editor_done));(_inst.gmls_btn_editor_major=__yy_method(_inst,gml_Script_s_btn_editor_major));(_inst.gmls_btn_editor_minor=__yy_method(_inst,gml_Script_s_btn_editor_minor));(_inst.gmls_btn_editor_bowls=__yy_method(_inst,gml_Script_s_btn_editor_bowls));(_inst.gmls_btn_editor_back=__yy_method(_inst,gml_Script_s_btn_editor_back));(_inst.gmls_btn_editor_edit_subdivision=__yy_method(_inst,gml_Script_s_btn_editor_edit_subdivision));(_inst.gmls_btn_editor_edit_conference=__yy_method(_inst, gml_Script_s_btn_editor_edit_conference));(_inst.gmls_btn_editor_conference=__yy_method(_inst,gml_Script_s_btn_editor_conference));(_inst.gmls_btn_editor_select_team=__yy_method(_inst,gml_Script_s_btn_editor_select_team));(_inst.gmls_btn_editor_select_bowl_group=__yy_method(_inst,gml_Script_s_btn_editor_select_bowl_group));(_inst.gmls_btn_editor_select_bowl_competition=__yy_method(_inst,gml_Script_s_btn_editor_select_bowl_competition));(_inst.gmls_save_editor_status=__yy_method(_inst,gml_Script_s_save_editor_status)); (_inst.gmls_get_editor_status=__yy_method(_inst,gml_Script_s_get_editor_status));(_inst.gmls_reset_editor_status=__yy_method(_inst,gml_Script_s_reset_editor_status));(_inst.gmls_editor_subdivision_mode=__yy_method(_inst,gml_Script_s_editor_subdivision_mode));(_inst.gmls_editor_conference_mode=__yy_method(_inst,gml_Script_s_editor_conference_mode));(_inst.gmls_editor_bowls_group_mode=__yy_method(_inst,gml_Script_s_editor_bowls_group_mode));(_inst.gmls_editor_bowls_competition_mode=__yy_method(_inst, gml_Script_s_editor_bowls_competition_mode));(_inst.gmls_editor_set_buttons=__yy_method(_inst,gml_Script_s_editor_set_buttons));(_inst.gmls_editor_refresh_bowls_groups=__yy_method(_inst,gml_Script_s_editor_refresh_bowls_groups));(_inst.gmls_editor_create_bowls_buttons=__yy_method(_inst,gml_Script_s_editor_create_bowls_buttons));(_inst.gmls_create_slot_label=__yy_method(_inst,gml_Script_s_create_slot_label));(_inst.gmls_ui_label_draw_gui=__yy_method(_inst,gml_Script_s_ui_label_draw_gui));(_inst.gmls_get_editor_bowl_group_name_by_tag=__yy_method(_inst, gml_Script_s_get_editor_bowl_group_name_by_tag));(_inst.gmls_editor_copy_buttons=__yy_method(_inst,gml_Script_s_editor_copy_buttons));(_inst.gmls_init_btn_editor_copy=__yy_method(_inst,gml_Script_s_init_btn_editor_copy));(_inst.gmls_btn_editor_copy=__yy_method(_inst,gml_Script_s_btn_editor_copy));(_inst.gmls_btn_editor_confirm_copy=__yy_method(_inst,gml_Script_s_btn_editor_confirm_copy));(_inst.gmls_btn_editor_restore_all=__yy_method(_inst,gml_Script_s_btn_editor_restore_all));(_inst.gmls_btn_editor_confirm_restore_all=__yy_method(_inst, gml_Script_s_btn_editor_confirm_restore_all));}function gml_Script____struct___108_s_rm_editor_init_gml_GlobalScript_s_college_editor(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___108_s_rm_editor_init_gml_GlobalScript_s_college_editor";}if(gml_Script____struct___108_s_rm_editor_init_gml_GlobalScript_s_college_editor.prototype.__type===undefined){gml_Script____struct___108_s_rm_editor_init_gml_GlobalScript_s_college_editor.prototype.__type="gml_Script____struct___108_s_rm_editor_init_gml_GlobalScript_s_college_editor"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___108_s_rm_editor_init_gml_GlobalScript_s_college_editor.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(2),$$args)];}}}}function gml_Script____struct___109_s_rm_editor_init_gml_GlobalScript_s_college_editor(_inst,_other){ if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___109_s_rm_editor_init_gml_GlobalScript_s_college_editor";}if(gml_Script____struct___109_s_rm_editor_init_gml_GlobalScript_s_college_editor.prototype.__type===undefined){gml_Script____struct___109_s_rm_editor_init_gml_GlobalScript_s_college_editor.prototype.__type="gml_Script____struct___109_s_rm_editor_init_gml_GlobalScript_s_college_editor";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___109_s_rm_editor_init_gml_GlobalScript_s_college_editor.prototype); {var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(2),$$args)];}}}}function gml_Script____struct___110_s_rm_editor_init_gml_GlobalScript_s_college_editor(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___110_s_rm_editor_init_gml_GlobalScript_s_college_editor";}if(gml_Script____struct___110_s_rm_editor_init_gml_GlobalScript_s_college_editor.prototype.__type===undefined){ gml_Script____struct___110_s_rm_editor_init_gml_GlobalScript_s_college_editor.prototype.__type="gml_Script____struct___110_s_rm_editor_init_gml_GlobalScript_s_college_editor";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___110_s_rm_editor_init_gml_GlobalScript_s_college_editor.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(1),$$args)]; _inst.image_xscale=$$args[__yy_gml_array_check_index(2+(2),$$args)];}}}}function gml_Script____struct___111_s_rm_editor_init_gml_GlobalScript_s_college_editor(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___111_s_rm_editor_init_gml_GlobalScript_s_college_editor";}if(gml_Script____struct___111_s_rm_editor_init_gml_GlobalScript_s_college_editor.prototype.__type===undefined){gml_Script____struct___111_s_rm_editor_init_gml_GlobalScript_s_college_editor.prototype.__type="gml_Script____struct___111_s_rm_editor_init_gml_GlobalScript_s_college_editor"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___111_s_rm_editor_init_gml_GlobalScript_s_college_editor.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext="";_inst.gmlonClickAction=(-4);_inst.gmlcolour=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(1),$$args)];}}}}function gml_Script____struct___112_s_rm_editor_init_gml_GlobalScript_s_college_editor(_inst,_other){if(_inst.__yyIsGMLObject){ _inst.__type="gml_Script____struct___112_s_rm_editor_init_gml_GlobalScript_s_college_editor";}if(gml_Script____struct___112_s_rm_editor_init_gml_GlobalScript_s_college_editor.prototype.__type===undefined){gml_Script____struct___112_s_rm_editor_init_gml_GlobalScript_s_college_editor.prototype.__type="gml_Script____struct___112_s_rm_editor_init_gml_GlobalScript_s_college_editor";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___112_s_rm_editor_init_gml_GlobalScript_s_college_editor.prototype); {var $$args=Array.prototype.slice.call(arguments);{_inst.gmlimage=YYASSET_REF(0x0100008E);_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(0),$$args)];}}}}function gml_Script____struct___113_s_rm_editor_init_gml_GlobalScript_s_college_editor(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___113_s_rm_editor_init_gml_GlobalScript_s_college_editor";}if(gml_Script____struct___113_s_rm_editor_init_gml_GlobalScript_s_college_editor.prototype.__type===undefined){gml_Script____struct___113_s_rm_editor_init_gml_GlobalScript_s_college_editor.prototype.__type="gml_Script____struct___113_s_rm_editor_init_gml_GlobalScript_s_college_editor"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___113_s_rm_editor_init_gml_GlobalScript_s_college_editor.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmluid=1;_inst.gmlimage=YYASSET_REF(0x01000094);_inst.gmlimage_only=true;}}}}function gml_Script____struct___114_s_rm_editor_init_gml_GlobalScript_s_college_editor(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___114_s_rm_editor_init_gml_GlobalScript_s_college_editor"; }if(gml_Script____struct___114_s_rm_editor_init_gml_GlobalScript_s_college_editor.prototype.__type===undefined){gml_Script____struct___114_s_rm_editor_init_gml_GlobalScript_s_college_editor.prototype.__type="gml_Script____struct___114_s_rm_editor_init_gml_GlobalScript_s_college_editor";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___114_s_rm_editor_init_gml_GlobalScript_s_college_editor.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(0), $$args)];_inst.gmluid=2;_inst.gmlimage=YYASSET_REF(0x01000094);_inst.gmlimage_only=true;}}}}function gml_Script____struct___115_s_rm_editor_init_gml_GlobalScript_s_college_editor(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___115_s_rm_editor_init_gml_GlobalScript_s_college_editor";}if(gml_Script____struct___115_s_rm_editor_init_gml_GlobalScript_s_college_editor.prototype.__type===undefined){gml_Script____struct___115_s_rm_editor_init_gml_GlobalScript_s_college_editor.prototype.__type="gml_Script____struct___115_s_rm_editor_init_gml_GlobalScript_s_college_editor"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___115_s_rm_editor_init_gml_GlobalScript_s_college_editor.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmluid=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlimage=YYASSET_REF(0x01000094);_inst.gmlimage_only=true;}}}}function gml_Script____struct___116_s_rm_editor_init_gml_GlobalScript_s_college_editor(_inst,_other){if(_inst.__yyIsGMLObject){ _inst.__type="gml_Script____struct___116_s_rm_editor_init_gml_GlobalScript_s_college_editor";}if(gml_Script____struct___116_s_rm_editor_init_gml_GlobalScript_s_college_editor.prototype.__type===undefined){gml_Script____struct___116_s_rm_editor_init_gml_GlobalScript_s_college_editor.prototype.__type="gml_Script____struct___116_s_rm_editor_init_gml_GlobalScript_s_college_editor";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___116_s_rm_editor_init_gml_GlobalScript_s_college_editor.prototype); {var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(2),$$args)];}}}}function gml_Script____struct___117_s_rm_editor_init_gml_GlobalScript_s_college_editor(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___117_s_rm_editor_init_gml_GlobalScript_s_college_editor";}if(gml_Script____struct___117_s_rm_editor_init_gml_GlobalScript_s_college_editor.prototype.__type===undefined){ gml_Script____struct___117_s_rm_editor_init_gml_GlobalScript_s_college_editor.prototype.__type="gml_Script____struct___117_s_rm_editor_init_gml_GlobalScript_s_college_editor";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___117_s_rm_editor_init_gml_GlobalScript_s_college_editor.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(1),$$args)]; _inst.image_xscale=$$args[__yy_gml_array_check_index(2+(2),$$args)];}}}}function gml_Script_s_rm_editor_init(_inst,_other){{gml_Script_s_init_rm(_inst,_other);gml_Script_s_set_var_if_missing(_inst,_other,"tier",1);if(yyfequal(_inst.gmltier,(-4))){_inst.gmltier=1;};_inst.gmlbtns=__yy_gml_array_create([]);gml_Script_s_create_title(_inst,_other,gml_Script_s_str(_inst,_other,"ui_TeamEditor"),undefined,true);gml_Script_s_create_slot_label(_inst,_other,7,6);_inst.gmlbtn_major=gml_Script_s_create_button(_inst, _other,45,32,__yy_gml_object_create(_inst,(_inst.gml___struct___108=__yy_method(_inst,gml_Script____struct___108_s_rm_editor_init_gml_GlobalScript_s_college_editor)),gml_Script_s_get_subdiv_name(_inst,_other,1),kgml_Script_s_btn_editor_major,3.125));_inst.gmlbtn_minor=gml_Script_s_create_button(_inst,_other,189,32,__yy_gml_object_create(_inst,(_inst.gml___struct___109=__yy_method(_inst,gml_Script____struct___109_s_rm_editor_init_gml_GlobalScript_s_college_editor)),gml_Script_s_get_subdiv_name(_inst, _other,2),kgml_Script_s_btn_editor_minor,3.125));_inst.gmlbtn_bowls=gml_Script_s_create_button(_inst,_other,333,32,__yy_gml_object_create(_inst,(_inst.gml___struct___110=__yy_method(_inst,gml_Script____struct___110_s_rm_editor_init_gml_GlobalScript_s_college_editor)),gml_Script_s_str(_inst,_other,"ui_Bowls"),kgml_Script_s_btn_editor_bowls,3.125));_inst.gmlbtn_conf=gml_Script_s_create_button(_inst,_other,190,32,__yy_gml_object_create(_inst,(_inst.gml___struct___111=__yy_method(_inst,gml_Script____struct___111_s_rm_editor_init_gml_GlobalScript_s_college_editor)), global.gmlc_primary,3.125));_inst.gmlbtn_back=gml_Script_s_create_button(_inst,_other,5,32,__yy_gml_object_create(_inst,(_inst.gml___struct___112=__yy_method(_inst,gml_Script____struct___112_s_rm_editor_init_gml_GlobalScript_s_college_editor)),kgml_Script_s_btn_editor_back));_inst.gmlbtn_major_edit=gml_Script_s_create_button(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlbtn_major).x),__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlbtn_major).sprite_width)),0),yyInst(_inst, _other,_inst.gmlbtn_major).y,__yy_gml_object_create(_inst,(_inst.gml___struct___113=__yy_method(_inst,gml_Script____struct___113_s_rm_editor_init_gml_GlobalScript_s_college_editor)),kgml_Script_s_btn_editor_edit_subdivision),YYASSET_REF(0x00000025));_inst.gmlbtn_minor_edit=gml_Script_s_create_button(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlbtn_minor).x),__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlbtn_minor).sprite_width)),0),yyInst(_inst,_other,_inst.gmlbtn_minor).y, __yy_gml_object_create(_inst,(_inst.gml___struct___114=__yy_method(_inst,gml_Script____struct___114_s_rm_editor_init_gml_GlobalScript_s_college_editor)),kgml_Script_s_btn_editor_edit_subdivision),YYASSET_REF(0x00000025));_inst.gmlbtn_conf_edit=gml_Script_s_create_button(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlbtn_conf).x),__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlbtn_conf).sprite_width)),0),yyInst(_inst,_other,_inst.gmlbtn_conf).y,__yy_gml_object_create(_inst, (_inst.gml___struct___115=__yy_method(_inst,gml_Script____struct___115_s_rm_editor_init_gml_GlobalScript_s_college_editor)),kgml_Script_s_btn_editor_edit_conference,(yyGetBool(_inst.gmlconference)?yyInst(_inst,_other,_inst.gmlconference).gmluid:(-4))),YYASSET_REF(0x00000025));_inst.gmlbtn_restore=gml_Script_s_create_button(_inst,_other,5,232,__yy_gml_object_create(_inst,(_inst.gml___struct___116=__yy_method(_inst,gml_Script____struct___116_s_rm_editor_init_gml_GlobalScript_s_college_editor)),gml_Script_s_str(_inst, _other,"ui_RestoreAllTeams"),kgml_Script_s_btn_editor_restore_all,2.8125));_inst.gmlbtn_done=gml_Script_s_create_button(_inst,_other,381,232,__yy_gml_object_create(_inst,(_inst.gml___struct___117=__yy_method(_inst,gml_Script____struct___117_s_rm_editor_init_gml_GlobalScript_s_college_editor)),gml_Script_s_str(_inst,_other,"ui_Done"),kgml_Script_s_btn_editor_done,2.8125));var ___sw374___=_inst.gmltier;var ___swc375___=-1;if(yyCompareVal(___sw374___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw374___, 2,g_GMLMathEpsilon,false)==0){___swc375___=0;}else if(yyCompareVal(___sw374___,3,g_GMLMathEpsilon,false)==0){___swc375___=1;}switch(___swc375___){case 0:{if(yyfnotequal(_inst.gmlconference,(-4))){gml_Script_s_editor_conference_mode(_inst,_other);}else {gml_Script_s_editor_subdivision_mode(_inst,_other);};break;}case 1:{if(yyfnotequal(_inst.gmlgroup,(-4))){gml_Script_s_editor_bowls_competition_mode(_inst,_other);}else {gml_Script_s_editor_bowls_group_mode(_inst,_other);};break;}};}}function gml_Script_s_goto_editor(_inst, _other){{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){gml_Script_s_goto_room(_inst,_other,YYASSET_REF(0x03000037),gml_Script_s_get_editor_status(_inst,_other));}else {room_goto(YYASSET_REF(0x0300001D));};}}function gml_Script_s_btn_editor_done(_inst,_other){{gml_Script_s_reset_editor_status(_inst,_other);room_goto(YYASSET_REF(0x03000012));}}function gml_Script_s_btn_editor_major(_inst,_other){{yyInst(_inst,_other,global.gmlrm).gmltier=1;gml_Script_s_choose_team_refresh_subdivision(_inst,_other); }}function gml_Script_s_btn_editor_minor(_inst,_other){{yyInst(_inst,_other,global.gmlrm).gmltier=2;gml_Script_s_choose_team_refresh_subdivision(_inst,_other);}}function gml_Script_s_btn_editor_bowls(_inst,_other){{yyInst(_inst,_other,global.gmlrm).gmltier=3;gml_Script_s_editor_refresh_bowls_groups(_inst,_other);}}function gml_Script_s_btn_editor_back(_inst,_other){{var gmlback=gml_Script_s_save_editor_status(_inst,_other);yyInst(_inst,_other,gmlback).gmlconference=(-4);yyInst(_inst,_other,gmlback).gmlgroup=(-4); gml_Script_s_goto_room(_inst,_other,g_pBuiltIn.get_current_room(),gml_Script_s_get_editor_status(_inst,_other));}}function gml_Script____struct___118_s_btn_editor_edit_subdivision_gml_GlobalScript_s_college_editor(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___118_s_btn_editor_edit_subdivision_gml_GlobalScript_s_college_editor";}if(gml_Script____struct___118_s_btn_editor_edit_subdivision_gml_GlobalScript_s_college_editor.prototype.__type===undefined){gml_Script____struct___118_s_btn_editor_edit_subdivision_gml_GlobalScript_s_college_editor.prototype.__type="gml_Script____struct___118_s_btn_editor_edit_subdivision_gml_GlobalScript_s_college_editor"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___118_s_btn_editor_edit_subdivision_gml_GlobalScript_s_college_editor.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmled_obj=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmluid=$$args[__yy_gml_array_check_index(2+(1),$$args)];}}}}function gml_Script_s_btn_editor_edit_subdivision(_inst,_other){{gml_Script_s_save_editor_status(_inst,_other);gml_Script_s_goto_room(_inst,_other,YYASSET_REF(0x03000038), __yy_gml_object_create(_inst,(_inst.gml___struct___118=__yy_method(_inst,gml_Script____struct___118_s_btn_editor_edit_subdivision_gml_GlobalScript_s_college_editor)),1,_inst.gmluid));}}function gml_Script____struct___119_s_btn_editor_edit_conference_gml_GlobalScript_s_college_editor(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___119_s_btn_editor_edit_conference_gml_GlobalScript_s_college_editor";}if(gml_Script____struct___119_s_btn_editor_edit_conference_gml_GlobalScript_s_college_editor.prototype.__type===undefined){ gml_Script____struct___119_s_btn_editor_edit_conference_gml_GlobalScript_s_college_editor.prototype.__type="gml_Script____struct___119_s_btn_editor_edit_conference_gml_GlobalScript_s_college_editor";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___119_s_btn_editor_edit_conference_gml_GlobalScript_s_college_editor.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmled_obj=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmluid=$$args[__yy_gml_array_check_index(2+(1), $$args)];}}}}function gml_Script_s_btn_editor_edit_conference(_inst,_other){{gml_Script_s_save_editor_status(_inst,_other);gml_Script_s_goto_room(_inst,_other,YYASSET_REF(0x03000038),__yy_gml_object_create(_inst,(_inst.gml___struct___119=__yy_method(_inst,gml_Script____struct___119_s_btn_editor_edit_conference_gml_GlobalScript_s_college_editor)),2,_inst.gmluid));}}function gml_Script_s_btn_editor_conference(_inst,_other){{yyInst(_inst,_other,global.gmlrm).gmlconference=_inst.gmlconference;gml_Script_s_editor_conference_mode(_inst, _other);}}function gml_Script_s_btn_editor_select_team(_inst,_other){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmledit_team=gml_Script_s_get_team_by_id(_inst,_other,_inst.gmluid);gml_Script_s_save_editor_status(_inst,_other);room_goto(YYASSET_REF(0x03000006));}}function gml_Script_s_btn_editor_select_bowl_group(_inst,_other){{yyInst(_inst,_other,global.gmlrm).gmlgroup=_inst.gmlgroup;gml_Script_s_editor_bowls_competition_mode(_inst,_other);}}function gml_Script____struct___120_s_btn_editor_select_bowl_competition_gml_GlobalScript_s_college_editor(_inst, _other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___120_s_btn_editor_select_bowl_competition_gml_GlobalScript_s_college_editor";}if(gml_Script____struct___120_s_btn_editor_select_bowl_competition_gml_GlobalScript_s_college_editor.prototype.__type===undefined){gml_Script____struct___120_s_btn_editor_select_bowl_competition_gml_GlobalScript_s_college_editor.prototype.__type="gml_Script____struct___120_s_btn_editor_select_bowl_competition_gml_GlobalScript_s_college_editor";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst, gml_Script____struct___120_s_btn_editor_select_bowl_competition_gml_GlobalScript_s_college_editor.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmled_obj=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmluid=$$args[__yy_gml_array_check_index(2+(1),$$args)];}}}}function gml_Script_s_btn_editor_select_bowl_competition(_inst,_other){{gml_Script_s_save_editor_status(_inst,_other);gml_Script_s_goto_room(_inst,_other,YYASSET_REF(0x03000038),__yy_gml_object_create(_inst,(_inst.gml___struct___120=__yy_method(_inst, gml_Script____struct___120_s_btn_editor_select_bowl_competition_gml_GlobalScript_s_college_editor)),3,_inst.gmluid));}}function gml_Script____struct___121_s_save_editor_status_gml_GlobalScript_s_college_editor(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___121_s_save_editor_status_gml_GlobalScript_s_college_editor";}if(gml_Script____struct___121_s_save_editor_status_gml_GlobalScript_s_college_editor.prototype.__type===undefined){gml_Script____struct___121_s_save_editor_status_gml_GlobalScript_s_college_editor.prototype.__type="gml_Script____struct___121_s_save_editor_status_gml_GlobalScript_s_college_editor"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___121_s_save_editor_status_gml_GlobalScript_s_college_editor.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlmode=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmltier=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlconference=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.gmlgroup=$$args[__yy_gml_array_check_index(2+(3),$$args)];}}}}function gml_Script_s_save_editor_status(_inst, _other){{if(yyfequal(g_pBuiltIn.get_current_room(),YYASSET_REF(0x03000037))){{var __yy__v534=GetWithArray(global.gmlrm);for(var __yy__v535 in __yy__v534){if(!__yy__v534.hasOwnProperty(__yy__v535))continue;var __yy__v536=__yy__v534[__yy__v535];global.gmlrm_params_save=__yy_gml_object_create(__yy__v536,(__yy__v536.gml___struct___121=__yy_method(__yy__v536,gml_Script____struct___121_s_save_editor_status_gml_GlobalScript_s_college_editor)),(yyGetBool(variable_instance_exists(__yy__v536.id,"mode"))?__yy__v536.gmlmode:(-4)), (yyGetBool(variable_instance_exists(__yy__v536.id,"tier"))?__yy__v536.gmltier:(-4)),(yyGetBool(variable_instance_exists(__yy__v536.id,"conference"))?__yy__v536.gmlconference:(-4)),(yyGetBool(variable_instance_exists(__yy__v536.id,"group"))?__yy__v536.gmlgroup:(-4)));}};};return global.gmlrm_params_save;}}function gml_Script____struct___122_s_get_editor_status_gml_GlobalScript_s_college_editor(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___122_s_get_editor_status_gml_GlobalScript_s_college_editor"; }if(gml_Script____struct___122_s_get_editor_status_gml_GlobalScript_s_college_editor.prototype.__type===undefined){gml_Script____struct___122_s_get_editor_status_gml_GlobalScript_s_college_editor.prototype.__type="gml_Script____struct___122_s_get_editor_status_gml_GlobalScript_s_college_editor";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___122_s_get_editor_status_gml_GlobalScript_s_college_editor.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlmode=$$args[__yy_gml_array_check_index(2+(0), $$args)];_inst.gmltier=(-4);_inst.gmlconference=(-4);_inst.gmlgroup=(-4);}}}}function gml_Script_s_get_editor_status(_inst,_other){{if((yyGetBool(variable_global_exists("rm_params_save")))&&(yyGetBool(is_struct(global.gmlrm_params_save)))){return global.gmlrm_params_save;};return __yy_gml_object_create(_inst,(_inst.gml___struct___122=__yy_method(_inst,gml_Script____struct___122_s_get_editor_status_gml_GlobalScript_s_college_editor)),3);}}function gml_Script_s_reset_editor_status(_inst,_other){{global.gmlrm_params=(-4); global.gmlrm_params_save=(-4);}}function gml_Script_s_editor_subdivision_mode(_inst,_other){{{var __yy__v537=GetWithArray(global.gmlrm);for(var __yy__v538 in __yy__v537){if(!__yy__v537.hasOwnProperty(__yy__v538))continue;var __yy__v539=__yy__v537[__yy__v538];{gml_Script_s_editor_set_buttons(__yy__v539,_inst,1);gml_Script_s_editor_copy_buttons(__yy__v539,_inst,false);gml_Script_s_choose_team_refresh_subdivision(__yy__v539,_inst);}}};}}function gml_Script_s_editor_conference_mode(_inst,_other){{{var __yy__v540=GetWithArray(global.gmlrm); for(var __yy__v541 in __yy__v540){if(!__yy__v540.hasOwnProperty(__yy__v541))continue;var __yy__v542=__yy__v540[__yy__v541];{gml_Script_s_editor_set_buttons(__yy__v542,_inst,2);yyInst(_inst,_other,__yy__v542.gmlbtn_conf).gmltext=gml_Script_s_fit_string(__yy__v542,_inst,yyInst(_inst,_other,__yy__v542.gmlconference).gmlname,yyInst(_inst,_other,__yy__v542.gmlconference).gmltla,96);yyInst(_inst,_other,__yy__v542.gmlbtn_conf).gmlcolour=global.gmlc_primary;yyInst(_inst,_other,__yy__v542.gmlbtn_conf_edit).gmluid=yyInst(_inst, _other,__yy__v542.gmlconference).gmluid;gml_Script_s_editor_copy_buttons(__yy__v542,_inst,true);gml_Script_s_choose_team_refresh_conference(__yy__v542,_inst);}}};}}function gml_Script_s_editor_bowls_group_mode(_inst,_other){{{var __yy__v543=GetWithArray(global.gmlrm);for(var __yy__v544 in __yy__v543){if(!__yy__v543.hasOwnProperty(__yy__v544))continue;var __yy__v545=__yy__v543[__yy__v544];{gml_Script_s_editor_set_buttons(__yy__v545,_inst,1);gml_Script_s_editor_copy_buttons(__yy__v545,_inst,false);gml_Script_s_editor_refresh_bowls_groups(__yy__v545, _inst);}}};}}function gml_Script_s_editor_bowls_competition_mode(_inst,_other){{{var __yy__v546=GetWithArray(global.gmlrm);for(var __yy__v547 in __yy__v546){if(!__yy__v546.hasOwnProperty(__yy__v547))continue;var __yy__v548=__yy__v546[__yy__v547];{gml_Script_s_editor_set_buttons(__yy__v548,_inst,2);yyInst(_inst,_other,__yy__v548.gmlbtn_conf).gmltext=gml_Script_s_get_editor_bowl_group_name_by_tag(__yy__v548,_inst,__yy__v548.gmlgroup);gml_Script_s_editor_copy_buttons(__yy__v548,_inst,true,true);gml_Script_s_editor_refresh_bowls_groups(__yy__v548, _inst,__yy__v548.gmlgroup);}}};}}function gml_Script_s_editor_set_buttons(_inst,_other,argument0){{{var __yy__v549=GetWithArray(global.gmlrm);for(var __yy__v550 in __yy__v549){if(!__yy__v549.hasOwnProperty(__yy__v550))continue;var __yy__v551=__yy__v549[__yy__v550];{yyInst(_inst,_other,__yy__v551.gmlbtn_major).visible=yyfequal(argument0,1);yyInst(_inst,_other,__yy__v551.gmlbtn_minor).visible=yyfequal(argument0,1);yyInst(_inst,_other,__yy__v551.gmlbtn_bowls).visible=yyfequal(argument0,1);yyInst(_inst,_other, __yy__v551.gmlbtn_back).visible=yyfequal(argument0,2);yyInst(_inst,_other,__yy__v551.gmlbtn_conf).visible=yyfequal(argument0,2);yyInst(_inst,_other,__yy__v551.gmlbtn_major_edit).visible=yyfequal(argument0,1);yyInst(_inst,_other,__yy__v551.gmlbtn_minor_edit).visible=yyfequal(argument0,1);yyInst(_inst,_other,__yy__v551.gmlbtn_conf_edit).visible=(yyGetBool(yyfequal(argument0,2)))&&(yyGetBool(yyfnotequal(__yy__v551.gmltier,3)));yyInst(_inst,_other,__yy__v551.gmlbtn_restore).visible=yyfequal(argument0, 1);yyInst(_inst,_other,__yy__v551.gmlbtn_done).y=(yyfequal(argument0,1)?232:32);}}};}}function gml_Script_s_editor_refresh_bowls_groups(_inst,_other,argument0){{if(yyfequal(argument0,_inst.undefined)){argument0=(-4);};}{{var __yy__v552=GetWithArray(global.gmlrm);for(var __yy__v553 in __yy__v552){if(!__yy__v552.hasOwnProperty(__yy__v553))continue;var __yy__v554=__yy__v552[__yy__v553];{gml_Script_s_refresh_main_sections_buttons(__yy__v554,_inst);gml_Script_s_destroy_dynamic_buttons(__yy__v554,_inst,__yy__v554.gmlbtns); __yy__v554.gmlbtns=gml_Script_s_editor_create_bowls_buttons(__yy__v554,_inst,argument0);}}};}}function gml_Script____struct___123_s_editor_create_bowls_buttons_gml_GlobalScript_s_college_editor(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___123_s_editor_create_bowls_buttons_gml_GlobalScript_s_college_editor";}if(gml_Script____struct___123_s_editor_create_bowls_buttons_gml_GlobalScript_s_college_editor.prototype.__type===undefined){gml_Script____struct___123_s_editor_create_bowls_buttons_gml_GlobalScript_s_college_editor.prototype.__type="gml_Script____struct___123_s_editor_create_bowls_buttons_gml_GlobalScript_s_college_editor"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___123_s_editor_create_bowls_buttons_gml_GlobalScript_s_college_editor.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlgroup=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(3),$$args)];}}}}function gml_Script____struct___124_s_editor_create_bowls_buttons_gml_GlobalScript_s_college_editor(_inst, _other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___124_s_editor_create_bowls_buttons_gml_GlobalScript_s_college_editor";}if(gml_Script____struct___124_s_editor_create_bowls_buttons_gml_GlobalScript_s_college_editor.prototype.__type===undefined){gml_Script____struct___124_s_editor_create_bowls_buttons_gml_GlobalScript_s_college_editor.prototype.__type="gml_Script____struct___124_s_editor_create_bowls_buttons_gml_GlobalScript_s_college_editor";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst, gml_Script____struct___124_s_editor_create_bowls_buttons_gml_GlobalScript_s_college_editor.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmluid=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(3),$$args)];}}}}function gml_Script_s_editor_create_bowls_buttons(_inst,_other,argument0){{if(yyfequal(argument0, _inst.undefined)){argument0=(-4);};}{var gmlcb=__yy_gml_array_create([]);var gmlbtn,gmlname;if(yyfequal(argument0,(-4))){{var gmlbl=yyInst(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmleditor).gmlbowls_groups;var gmlt=gml_Script_s_calc_grid_coords(_inst,_other,array_length(gmlbl),yyInst(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmleditor).gmlbowls_groups_chunks);var gmli=0;for(;yyfless(gmli,array_length(gmlbl));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli), g_yyPrePostObject__)){{gmlbtn=gml_Script_s_create_button(_inst,_other,yyInst(_inst,_other,gmlt[__yy_gml_array_check_index(gmli,gmlt)]).x,yyInst(_inst,_other,gmlt[__yy_gml_array_check_index(gmli,gmlt)]).y,__yy_gml_object_create(_inst,(_inst.gml___struct___123=__yy_method(_inst,gml_Script____struct___123_s_editor_create_bowls_buttons_gml_GlobalScript_s_college_editor)),yyInst(_inst,_other,gmlbl[__yy_gml_array_check_index(gmli,gmlbl)]).gmlname,yyInst(_inst,_other,gmlbl[__yy_gml_array_check_index(gmli, gmlbl)]).gmltag,kgml_Script_s_btn_editor_select_bowl_group,3.125));array_push(gmlcb,gmlbtn);}};};}else {{var gmlcl=gml_Script_s_get_competitions_in_editor_group(_inst,_other,argument0);var gmlt=gml_Script_s_calc_grid_coords(_inst,_other,array_length(gmlcl));var gmli=0;for(;yyfless(gmli,array_length(gmlcl));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlbtn=gml_Script_s_create_button(_inst,_other,yyInst(_inst,_other,gmlt[__yy_gml_array_check_index(gmli, gmlt)]).x,yyInst(_inst,_other,gmlt[__yy_gml_array_check_index(gmli,gmlt)]).y,__yy_gml_object_create(_inst,(_inst.gml___struct___124=__yy_method(_inst,gml_Script____struct___124_s_editor_create_bowls_buttons_gml_GlobalScript_s_college_editor)),yyInst(_inst,_other,gmlcl[__yy_gml_array_check_index(gmli,gmlcl)]).gmlname,yyInst(_inst,_other,gmlcl[__yy_gml_array_check_index(gmli,gmlcl)]).gmluid,kgml_Script_s_btn_editor_select_bowl_competition,3.125));array_push(gmlcb,gmlbtn);}};};};return gmlcb;}}function gml_Script____struct___125_s_create_slot_label_gml_GlobalScript_s_college_editor(_inst, _other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___125_s_create_slot_label_gml_GlobalScript_s_college_editor";}if(gml_Script____struct___125_s_create_slot_label_gml_GlobalScript_s_college_editor.prototype.__type===undefined){gml_Script____struct___125_s_create_slot_label_gml_GlobalScript_s_college_editor.prototype.__type="gml_Script____struct___125_s_create_slot_label_gml_GlobalScript_s_college_editor";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___125_s_create_slot_label_gml_GlobalScript_s_college_editor.prototype); {var $$args=Array.prototype.slice.call(arguments);{_inst.sprite_index=YYASSET_REF(0x01000131);_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.image_yscale=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlaction_draw_gui=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.gmltext=$$args[__yy_gml_array_check_index(2+(3),$$args)];}}}}function gml_Script_s_create_slot_label(_inst,_other,argument0,argument1){{instance_create_layer(argument0,argument1,yyInst(_inst,_other, _inst.id).layer,YYASSET_REF(0x0000001D),__yy_gml_object_create(_inst,(_inst.gml___struct___125=__yy_method(_inst,gml_Script____struct___125_s_create_slot_label_gml_GlobalScript_s_college_editor)),4,1.25,kgml_Script_s_ui_label_draw_gui,gml_Script_s_str(_inst,_other,yyfplus("ui_SaveSlot",__yy_gml_errCheck(string(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"saveslot")))))));}}function gml_Script_s_ui_label_draw_gui(_inst,_other){{var gmltx=yyfplus(__yy_gml_errCheck(_inst.x), __yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2)));var gmlty=yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_height),2)));draw_sprite_ext(_inst,_inst.sprite_index,0,_inst.x,_inst.y,_inst.image_xscale,_inst.image_yscale,0,16777215,1);draw_set_font(global.gmlfnt_small_flex);draw_set_colour(16777215);draw_set_halign(1);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,_inst.gmltext);draw_set_halign(0);}}function gml_Script_s_get_editor_bowl_group_name_by_tag(_inst, _other,argument0){{{var __yy__v555=GetWithArray(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmleditor);for(var __yy__v556 in __yy__v555){if(!__yy__v555.hasOwnProperty(__yy__v556))continue;var __yy__v557=__yy__v555[__yy__v556];{var gmli=0;for(;yyfless(gmli,array_length(__yy__v557.gmlbowls_groups));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{if(yyfequal(yyInst(_inst,_other,__yy__v557.gmlbowls_groups[__yy_gml_array_check_index(gmli,__yy__v557.gmlbowls_groups)]).gmltag, argument0)){return yyInst(_inst,_other,__yy__v557.gmlbowls_groups[__yy_gml_array_check_index(gmli,__yy__v557.gmlbowls_groups)]).gmlname;};}};return "";}}};}}function gml_Script____struct___126_s_editor_copy_buttons_gml_GlobalScript_s_college_editor(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___126_s_editor_copy_buttons_gml_GlobalScript_s_college_editor";}if(gml_Script____struct___126_s_editor_copy_buttons_gml_GlobalScript_s_college_editor.prototype.__type===undefined){ gml_Script____struct___126_s_editor_copy_buttons_gml_GlobalScript_s_college_editor.prototype.__type="gml_Script____struct___126_s_editor_copy_buttons_gml_GlobalScript_s_college_editor";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___126_s_editor_copy_buttons_gml_GlobalScript_s_college_editor.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlslot=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlis_bowls=$$args[__yy_gml_array_check_index(2+(1), $$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(3),$$args)];}}}}function gml_Script____struct___127_s_editor_copy_buttons_gml_GlobalScript_s_college_editor(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___127_s_editor_copy_buttons_gml_GlobalScript_s_college_editor";}if(gml_Script____struct___127_s_editor_copy_buttons_gml_GlobalScript_s_college_editor.prototype.__type===undefined){gml_Script____struct___127_s_editor_copy_buttons_gml_GlobalScript_s_college_editor.prototype.__type="gml_Script____struct___127_s_editor_copy_buttons_gml_GlobalScript_s_college_editor"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___127_s_editor_copy_buttons_gml_GlobalScript_s_college_editor.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlslot=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlis_bowls=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(3),$$args)];}}}}function gml_Script____struct___128_s_editor_copy_buttons_gml_GlobalScript_s_college_editor(_inst, _other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___128_s_editor_copy_buttons_gml_GlobalScript_s_college_editor";}if(gml_Script____struct___128_s_editor_copy_buttons_gml_GlobalScript_s_college_editor.prototype.__type===undefined){gml_Script____struct___128_s_editor_copy_buttons_gml_GlobalScript_s_college_editor.prototype.__type="gml_Script____struct___128_s_editor_copy_buttons_gml_GlobalScript_s_college_editor";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___128_s_editor_copy_buttons_gml_GlobalScript_s_college_editor.prototype); {var $$args=Array.prototype.slice.call(arguments);{_inst.gmlslot=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlis_bowls=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(3),$$args)];}}}}function gml_Script____struct___129_s_editor_copy_buttons_gml_GlobalScript_s_college_editor(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___129_s_editor_copy_buttons_gml_GlobalScript_s_college_editor"; }if(gml_Script____struct___129_s_editor_copy_buttons_gml_GlobalScript_s_college_editor.prototype.__type===undefined){gml_Script____struct___129_s_editor_copy_buttons_gml_GlobalScript_s_college_editor.prototype.__type="gml_Script____struct___129_s_editor_copy_buttons_gml_GlobalScript_s_college_editor";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___129_s_editor_copy_buttons_gml_GlobalScript_s_college_editor.prototype);{var $$args=Array.prototype.slice.call(arguments); {_inst.gmlslot=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlis_bowls=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(3),$$args)];}}}}function gml_Script____struct___130_s_editor_copy_buttons_gml_GlobalScript_s_college_editor(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___130_s_editor_copy_buttons_gml_GlobalScript_s_college_editor"; }if(gml_Script____struct___130_s_editor_copy_buttons_gml_GlobalScript_s_college_editor.prototype.__type===undefined){gml_Script____struct___130_s_editor_copy_buttons_gml_GlobalScript_s_college_editor.prototype.__type="gml_Script____struct___130_s_editor_copy_buttons_gml_GlobalScript_s_college_editor";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___130_s_editor_copy_buttons_gml_GlobalScript_s_college_editor.prototype);{var $$args=Array.prototype.slice.call(arguments); {_inst.gmlslot=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlis_bowls=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(3),$$args)];}}}}function gml_Script_s_editor_copy_buttons(_inst,_other,argument0,argument1){{if(yyfequal(argument1,_inst.undefined)){argument1=false;};}{{var __yy__v558=GetWithArray(global.gmlrm);for(var __yy__v559 in __yy__v558){if(!__yy__v558.hasOwnProperty(__yy__v559))continue; var __yy__v560=__yy__v558[__yy__v559];{if(!yyGetBool(variable_instance_exists(__yy__v560.id,"btn_copy1"))){{var gmli=0;__yy__v560.gmlbtn_copy_1=gml_Script_s_create_button(__yy__v560,_inst,yyfplus(5,__yy_gml_errCheck(yyftime(94,__yy_gml_errCheck((g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__))))),232,__yy_gml_object_create(__yy__v560,(__yy__v560.gml___struct___126=__yy_method(__yy__v560,gml_Script____struct___126_s_editor_copy_buttons_gml_GlobalScript_s_college_editor)), yyfplus(__yy_gml_errCheck(gmli),1),argument1,kgml_Script_s_btn_editor_copy,2.8125));__yy__v560.gmlbtn_copy_2=gml_Script_s_create_button(__yy__v560,_inst,yyfplus(5,__yy_gml_errCheck(yyftime(94,__yy_gml_errCheck((g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__))))),232,__yy_gml_object_create(__yy__v560,(__yy__v560.gml___struct___127=__yy_method(__yy__v560,gml_Script____struct___127_s_editor_copy_buttons_gml_GlobalScript_s_college_editor)),yyfplus(__yy_gml_errCheck(gmli), 1),argument1,kgml_Script_s_btn_editor_copy,2.8125));__yy__v560.gmlbtn_copy_3=gml_Script_s_create_button(__yy__v560,_inst,yyfplus(5,__yy_gml_errCheck(yyftime(94,__yy_gml_errCheck((g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__))))),232,__yy_gml_object_create(__yy__v560,(__yy__v560.gml___struct___128=__yy_method(__yy__v560,gml_Script____struct___128_s_editor_copy_buttons_gml_GlobalScript_s_college_editor)),yyfplus(__yy_gml_errCheck(gmli),1), argument1,kgml_Script_s_btn_editor_copy,2.8125));__yy__v560.gmlbtn_copy_4=gml_Script_s_create_button(__yy__v560,_inst,yyfplus(5,__yy_gml_errCheck(yyftime(94,__yy_gml_errCheck((g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__))))),232,__yy_gml_object_create(__yy__v560,(__yy__v560.gml___struct___129=__yy_method(__yy__v560,gml_Script____struct___129_s_editor_copy_buttons_gml_GlobalScript_s_college_editor)),yyfplus(__yy_gml_errCheck(gmli),1),argument1, kgml_Script_s_btn_editor_copy,2.8125));__yy__v560.gmlbtn_copy_5=gml_Script_s_create_button(__yy__v560,_inst,yyfplus(5,__yy_gml_errCheck(yyftime(94,__yy_gml_errCheck((g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__))))),232,__yy_gml_object_create(__yy__v560,(__yy__v560.gml___struct___130=__yy_method(__yy__v560,gml_Script____struct___130_s_editor_copy_buttons_gml_GlobalScript_s_college_editor)),yyfplus(__yy_gml_errCheck(gmli),1),argument1,kgml_Script_s_btn_editor_copy, 2.8125));};};gml_Script_s_init_btn_editor_copy(__yy__v560,_inst,__yy__v560.gmlbtn_copy_1,argument0);gml_Script_s_init_btn_editor_copy(__yy__v560,_inst,__yy__v560.gmlbtn_copy_2,argument0);gml_Script_s_init_btn_editor_copy(__yy__v560,_inst,__yy__v560.gmlbtn_copy_3,argument0);gml_Script_s_init_btn_editor_copy(__yy__v560,_inst,__yy__v560.gmlbtn_copy_4,argument0);gml_Script_s_init_btn_editor_copy(__yy__v560,_inst,__yy__v560.gmlbtn_copy_5,argument0);}}};}}function gml_Script_s_init_btn_editor_copy(_inst, _other,argument0,argument1){{{var __yy__v561=GetWithArray(argument0);for(var __yy__v562 in __yy__v561){if(!__yy__v561.hasOwnProperty(__yy__v562))continue;var __yy__v563=__yy__v561[__yy__v562];{__yy__v563.gmltext=gml_Script_s_str(__yy__v563,_inst,gml_Script_s_strfl(__yy__v563,_inst,(yyGetBool(__yy__v563.gmlis_bowls)?"ui_CopyCompsSlot%1":"ui_CopySlot%1"),__yy__v563.gmlslot));if(yyfequal(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"saveslot"),__yy__v563.gmlslot)){{__yy__v563.gmlactive=false; __yy__v563.gmltext=gml_Script_s_str(__yy__v563,_inst,"ui_Current");};};if((yyGetBool(!yyGetBool(file_exists(variable_global_get(gml_Script_s_strfl(__yy__v563,_inst,"g_savename%1",__yy__v563.gmlslot))))))||(yyGetBool(!yyGetBool((yyGetBool(file_exists(gml_Script_s_strfl(__yy__v563,_inst,"uniforms_custom_%1.txt",__yy__v563.gmlslot))))||(yyGetBool(gml_Script_s_custom_data_file_exists(__yy__v563,_inst,__yy__v563.gmlslot))))))){__yy__v563.gmlactive=false;};__yy__v563.visible=argument1;}}};}}function gml_Script_s_btn_editor_copy(_inst, _other){{gml_Script_slogf(_inst,_other,"Copy button %1 action",_inst.gmlslot);var gmlstr=gml_Script_s_str(_inst,_other,"msg_CopyUniforms");gmlstr=string_replace(gmlstr,"$num",_inst.gmlslot);yyInst(_inst,_other,global.gmlrm).gmlclicked_slot=_inst.gmlslot;gml_Script_s_create_message(_inst,_other,"",gmlstr,gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Confirm"),kgml_Script_s_msg_clear,kgml_Script_s_btn_editor_confirm_copy,global.gmlc_background,1);}}function gml_Script_s_btn_editor_confirm_copy(_inst, _other){{var gmlslot=yyInst(_inst,_other,global.gmlrm).gmlclicked_slot;yyInst(_inst,_other,global.gmlrm).gmlclicked_slot=(-4);gml_Script_slogf(_inst,_other,"copying from slot: %1",gmlslot);gml_Script_s_copy_uniforms_from(_inst,_other,gmlslot);gml_Script_s_custom_data_copy_from(_inst,_other,gmlslot);gml_Script_s_msg_clear(_inst,_other);gml_Script_s_goto_editor(_inst,_other);}}function gml_Script_s_btn_editor_restore_all(_inst,_other){{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst, _other,"msg_RestoreAllTeams"),gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Confirm"),kgml_Script_s_msg_clear,kgml_Script_s_btn_editor_confirm_restore_all,global.gmlc_background,1);}}function gml_Script_s_btn_editor_confirm_restore_all(_inst,_other){{gml_Script_s_college_restore_all_uniforms(_inst,_other);gml_Script_s_custom_data_restore(_inst,_other);gml_Script_s_msg_clear(_inst,_other);gml_Script_s_goto_editor(_inst,_other);}}function gml_GlobalScript_btn_click_DeleteSlot1(_inst, _other){(_inst.gmlbtn_click_DeleteSlot1=__yy_method(_inst,gml_Script_btn_click_DeleteSlot1));}function gml_Script_btn_click_DeleteSlot1(_inst,_other){{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_DeleteGame");gmlmsg=string_replace(gmlmsg,"$savedetails",gml_Script_s_get_string_save_details(_inst,_other,1,false));gmlmsg=string_replace(gmlmsg,"$num","1");if(yyGetBool(global.gmlmobile_device)){gmlmsg=yyfplus(gmlmsg,gml_Script_s_str(_inst,_other,"msg_DeleteGame2"));};gml_Script_s_create_message(_inst, _other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Delete"),kgml_Script_s_msg_clear,kgml_Script_btn_response_deletegame1,global.gmlc_background,1);}}function gml_GlobalScript_btn_click_DeleteSlot2(_inst,_other){(_inst.gmlbtn_click_DeleteSlot2=__yy_method(_inst,gml_Script_btn_click_DeleteSlot2));}function gml_Script_btn_click_DeleteSlot2(_inst,_other){{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_DeleteGame");gmlmsg=string_replace(gmlmsg,"$savedetails",gml_Script_s_get_string_save_details(_inst, _other,2,false));gmlmsg=string_replace(gmlmsg,"$num","2");if(yyGetBool(global.gmlmobile_device)){gmlmsg=yyfplus(gmlmsg,gml_Script_s_str(_inst,_other,"msg_DeleteGame2"));};gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Delete"),kgml_Script_s_msg_clear,kgml_Script_btn_response_deletegame2,global.gmlc_background,1);}}function gml_GlobalScript_btn_click_DeleteSlot3(_inst,_other){(_inst.gmlbtn_click_DeleteSlot3=__yy_method(_inst, gml_Script_btn_click_DeleteSlot3));}function gml_Script_btn_click_DeleteSlot3(_inst,_other){{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_DeleteGame");gmlmsg=string_replace(gmlmsg,"$savedetails",gml_Script_s_get_string_save_details(_inst,_other,3,false));gmlmsg=string_replace(gmlmsg,"$num","3");if(yyGetBool(global.gmlmobile_device)){gmlmsg=yyfplus(gmlmsg,gml_Script_s_str(_inst,_other,"msg_DeleteGame2"));};gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_Cancel"), gml_Script_s_str(_inst,_other,"ui_Delete"),kgml_Script_s_msg_clear,kgml_Script_btn_response_deletegame3,global.gmlc_background,1);}}function gml_GlobalScript_btn_click_DeleteSlot4(_inst,_other){(_inst.gmlbtn_click_DeleteSlot4=__yy_method(_inst,gml_Script_btn_click_DeleteSlot4));}function gml_Script_btn_click_DeleteSlot4(_inst,_other){{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_DeleteGame");gmlmsg=string_replace(gmlmsg,"$savedetails",gml_Script_s_get_string_save_details(_inst,_other,4,false));gmlmsg=string_replace(gmlmsg, "$num","4");if(yyGetBool(global.gmlmobile_device)){gmlmsg=yyfplus(gmlmsg,gml_Script_s_str(_inst,_other,"msg_DeleteGame2"));};gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Delete"),kgml_Script_s_msg_clear,kgml_Script_btn_response_deletegame4,global.gmlc_background,1);}}function gml_GlobalScript_btn_click_DeleteSlot5(_inst,_other){(_inst.gmlbtn_click_DeleteSlot5=__yy_method(_inst,gml_Script_btn_click_DeleteSlot5));}function gml_Script_btn_click_DeleteSlot5(_inst, _other){{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_DeleteGame");gmlmsg=string_replace(gmlmsg,"$savedetails",gml_Script_s_get_string_save_details(_inst,_other,5,false));gmlmsg=string_replace(gmlmsg,"$num","5");if(yyGetBool(global.gmlmobile_device)){gmlmsg=yyfplus(gmlmsg,gml_Script_s_str(_inst,_other,"msg_DeleteGame2"));};gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Delete"),kgml_Script_s_msg_clear,kgml_Script_btn_response_deletegame5, global.gmlc_background,1);}}function gml_GlobalScript_btn_click_StaffProfile(_inst,_other){(_inst.gmlbtn_click_StaffProfile=__yy_method(_inst,gml_Script_btn_click_StaffProfile));}function gml_Script_btn_click_StaffProfile(_inst,_other){{if(yyfequal(g_pBuiltIn.get_current_room(),YYASSET_REF(0x03000017))){return;};yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile=_inst.gmlpmap;room_goto(YYASSET_REF(0x03000017));}}function gml_GlobalScript_btn_click_StaffProfileNext(_inst,_other){(_inst.gmlbtn_click_StaffProfileNext=__yy_method(_inst, gml_Script_btn_click_StaffProfileNext));}function gml_Script_btn_click_StaffProfileNext(_inst,_other){{{var __yy__v564=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v565 in __yy__v564){if(!__yy__v564.hasOwnProperty(__yy__v565))continue;var __yy__v566=__yy__v564[__yy__v565];{if(yyfgreater(ds_list_find_index(__yy__v566.gmlstafflist,__yy__v566.gmlplayer_profile),(-1))){{var gmlpos=yyfplus(__yy_gml_errCheck(ds_list_find_index(__yy__v566.gmlstafflist,__yy__v566.gmlplayer_profile)),1);if(yyfgreaterequal(gmlpos, ds_list_size(__yy__v566.gmlstafflist))){gmlpos=0;};__yy__v566.gmlplayer_profile=ds_list_find_value(__yy__v566.gmlstafflist,gmlpos);};}else {if(yyfgreater(ds_list_find_index(__yy__v566.gmlhirelist,__yy__v566.gmlplayer_profile),(-1))){{var gmlshortlist=gml_Script_s_get_hire_shortlist(__yy__v566,_inst,ds_map_find_value(__yy__v566.gmlplayer_profile,"position"));var gmlpos=yyfplus(__yy_gml_errCheck(ds_list_find_index(gmlshortlist,__yy__v566.gmlplayer_profile)),1);if(yyfgreaterequal(gmlpos,ds_list_size(gmlshortlist))){ gmlpos=0;};__yy__v566.gmlplayer_profile=ds_list_find_value(gmlshortlist,gmlpos);ds_list_destroy(gmlshortlist);gmlshortlist=(-1);};};};}}};room_goto(YYASSET_REF(0x03000017));}}function gml_GlobalScript_s_draw_gamepad_controls(_inst,_other){(_inst.gmls_draw_gamepad_controls=__yy_method(_inst,gml_Script_s_draw_gamepad_controls));}function gml_Script_s_draw_gamepad_controls(_inst,_other){{{var __yy__v567=GetWithArray(YYASSET_REF(0x00000071));for(var __yy__v568 in __yy__v567){if(!__yy__v567.hasOwnProperty(__yy__v568))continue; var __yy__v569=__yy__v567[__yy__v568];return;}};{var __yy__v570=GetWithArray(YYASSET_REF(0x0000004F));for(var __yy__v571 in __yy__v570){if(!__yy__v570.hasOwnProperty(__yy__v571))continue;var __yy__v572=__yy__v570[__yy__v571];return;}};var gmldw=display_get_gui_width();var gmlsx=(yyfequal(_inst.gmldrivedir,(-1))?yyfminus(__yy_gml_errCheck(gmldw),78):78);var gmlsy=(yyfequal(_inst.gmldrivedir,(-1))?232:220);if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlstate,3)){{if(yyGetBool(ds_map_find_value(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlmap_options,"op_gamepad_guides"))){draw_sprite_ext(_inst,(yyfequal(g_pBuiltIn.get_os_type(),21)?YYASSET_REF(0x01000145):YYASSET_REF(0x01000122)),0,gmlsx,236,1,1,0,16777215,1);};return;};};var ___sw386___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice;var ___swc387___=-1;if(yyCompareVal(___sw386___,4,g_GMLMathEpsilon,false)==0){___swc387___=0;}else if(yyCompareVal(___sw386___,3,g_GMLMathEpsilon,false)==0){___swc387___=1;}else if(yyCompareVal(___sw386___, 2,g_GMLMathEpsilon,false)==0){___swc387___=2;}else if(yyCompareVal(___sw386___,1,g_GMLMathEpsilon,false)==0){___swc387___=3;}switch(___swc387___){case 0:{break;}case 1:{{var __yy__v573=GetWithArray(global.gmlmaster_ball);for(var __yy__v574 in __yy__v573){if(!__yy__v573.hasOwnProperty(__yy__v574))continue;var __yy__v575=__yy__v573[__yy__v574];if(yyfgreater(__yy__v575.gmlstate,2)){return;};}};draw_sprite_ext(_inst,(yyfequal(g_pBuiltIn.get_os_type(),21)?YYASSET_REF(0x010000A7):YYASSET_REF(0x01000170)),0,gmlsx, gmlsy,1,1,0,16777215,1);break;}case 2:{if(yyfequal(_inst.gmlpractice_success,0)){{{var __yy__v576=GetWithArray(global.gmlmaster_ball);for(var __yy__v577 in __yy__v576){if(!__yy__v576.hasOwnProperty(__yy__v577))continue;var __yy__v578=__yy__v576[__yy__v577];{var ___sw388___=g_pBuiltIn.get_os_type();var ___swc389___=-1;if(yyCompareVal(___sw388___,21,g_GMLMathEpsilon,false)==0){___swc389___=0;}switch(___swc389___){case 0:{draw_sprite_ext(__yy__v578,(yyfequal(__yy__v578.gmlstate,0)?YYASSET_REF(0x01000130):YYASSET_REF(0x01000113)), 0,gmlsx,gmlsy,1,1,0,16777215,1);break;}default :{draw_sprite_ext(__yy__v578,(yyfequal(__yy__v578.gmlstate,0)?YYASSET_REF(0x01000174):YYASSET_REF(0x01000157)),0,gmlsx,gmlsy,1,1,0,16777215,1);break;}};}}};};}else {{{var __yy__v579=GetWithArray(global.gmlmaster_ball);for(var __yy__v580 in __yy__v579){if(!__yy__v579.hasOwnProperty(__yy__v580))continue;var __yy__v581=__yy__v579[__yy__v580];{var ___sw390___=__yy__v581.gmlstate;var ___swc391___=-1;if(yyCompareVal(___sw390___,0,g_GMLMathEpsilon,false)==0){___swc391___=0; }else if(yyCompareVal(___sw390___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw390___,1,g_GMLMathEpsilon,false)==0){___swc391___=1;}switch(___swc391___){case 0:{draw_sprite_ext(__yy__v581,(yyfequal(g_pBuiltIn.get_os_type(),21)?YYASSET_REF(0x01000141):YYASSET_REF(0x0100016E)),0,gmlsx,gmlsy,1,1,0,16777215,1);break;}case 1:{draw_sprite_ext(__yy__v581,(yyfequal(g_pBuiltIn.get_os_type(),21)?YYASSET_REF(0x01000169):YYASSET_REF(0x0100013C)),0,gmlsx,gmlsy,1,1,0,16777215,1);break;}default :{draw_sprite_ext(__yy__v581, (yyfequal(g_pBuiltIn.get_os_type(),21)?YYASSET_REF(0x01000184):YYASSET_REF(0x0100015B)),0,gmlsx,gmlsy,1,1,0,16777215,1);break;}};}}};};};break;}case 3:{{var __yy__v582=GetWithArray(global.gmlmaster_ball);for(var __yy__v583 in __yy__v582){if(!__yy__v582.hasOwnProperty(__yy__v583))continue;var __yy__v584=__yy__v582[__yy__v583];{var ___sw392___=g_pBuiltIn.get_os_type();var ___swc393___=-1;if(yyCompareVal(___sw392___,21,g_GMLMathEpsilon,false)==0){___swc393___=0;}switch(___swc393___){case 0:{if(yyflessequal(__yy__v584.gmlstate, 2)){draw_sprite_ext(__yy__v584,(yyfequal(__yy__v584.gmlstate,0)?YYASSET_REF(0x0100014C):YYASSET_REF(0x0100014D)),0,gmlsx,gmlsy,1,1,0,16777215,1);};break;}default :{if(yyflessequal(__yy__v584.gmlstate,2)){draw_sprite_ext(__yy__v584,(yyfequal(__yy__v584.gmlstate,0)?YYASSET_REF(0x0100018F):YYASSET_REF(0x0100015F)),0,gmlsx,gmlsy,1,1,0,16777215,1);};break;}};}}};break;}default :{if(yyGetBool(_inst.gmlkicking)){return;};if(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options, "op_gamepad_guides"))){return;};{var __yy__v585=GetWithArray(global.gmlmaster_ball);for(var __yy__v586 in __yy__v585){if(!__yy__v585.hasOwnProperty(__yy__v586))continue;var __yy__v587=__yy__v585[__yy__v586];var ___sw394___=__yy__v587.gmlstate;var ___swc395___=-1;if(yyCompareVal(___sw394___,0,g_GMLMathEpsilon,false)==0){___swc395___=0;}else if(yyCompareVal(___sw394___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw394___,1,g_GMLMathEpsilon,false)==0){___swc395___=1;}else if(yyCompareVal(___sw394___,5,g_GMLMathEpsilon, false)==0){___swc395___=2;}switch(___swc395___){case 0:{draw_sprite_ext(__yy__v587,(yyfequal(g_pBuiltIn.get_os_type(),21)?YYASSET_REF(0x01000060):YYASSET_REF(0x01000172)),0,gmlsx,gmlsy,1,1,0,16777215,1);break;}case 1:{draw_sprite_ext(__yy__v587,(yyfequal(g_pBuiltIn.get_os_type(),21)?YYASSET_REF(0x010000DF):YYASSET_REF(0x0100011E)),0,gmlsx,gmlsy,1,1,0,16777215,1);break;}case 2:{if((yyGetBool(gml_Script_s_is_kickoff(__yy__v587,_inst,true)))&&(yyGetBool(gml_Script_s_can_touchback(__yy__v587,_inst)))){ draw_sprite_ext(__yy__v587,YYASSET_REF(0x01000062),0,gmlsx,gmlsy,1,1,0,16777215,1);}else {draw_sprite_ext(__yy__v587,(yyfequal(g_pBuiltIn.get_os_type(),21)?YYASSET_REF(0x010000E1):YYASSET_REF(0x010000E0)),0,gmlsx,gmlsy,1,1,0,16777215,1);};break;}};}};break;}};}}function gml_GlobalScript_s_team_helpers(_inst,_other){(_inst.gmls_teams_file=__yy_method(_inst,gml_Script_s_teams_file));}function gml_Script_s_teams_file(_inst,_other){{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){return gml_Script_s_get_versioned_path(_inst, _other,"Teams_CO.txt");};return "Teams.txt";}}function gml_GlobalScript_btn_click_StaffProfilePrev(_inst,_other){(_inst.gmlbtn_click_StaffProfilePrev=__yy_method(_inst,gml_Script_btn_click_StaffProfilePrev));}function gml_Script_btn_click_StaffProfilePrev(_inst,_other){{{var __yy__v588=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v589 in __yy__v588){if(!__yy__v588.hasOwnProperty(__yy__v589))continue;var __yy__v590=__yy__v588[__yy__v589];{if(yyfgreater(ds_list_find_index(__yy__v590.gmlstafflist,__yy__v590.gmlplayer_profile), (-1))){{var gmlpos=yyfminus(__yy_gml_errCheck(ds_list_find_index(__yy__v590.gmlstafflist,__yy__v590.gmlplayer_profile)),1);if(yyfless(gmlpos,0)){gmlpos=yyfminus(__yy_gml_errCheck(ds_list_size(__yy__v590.gmlstafflist)),1);};__yy__v590.gmlplayer_profile=ds_list_find_value(__yy__v590.gmlstafflist,gmlpos);};}else {if(yyfgreater(ds_list_find_index(__yy__v590.gmlhirelist,__yy__v590.gmlplayer_profile),(-1))){{var gmlshortlist=gml_Script_s_get_hire_shortlist(__yy__v590,_inst,ds_map_find_value(__yy__v590.gmlplayer_profile, "position"));var gmlpos=yyfminus(__yy_gml_errCheck(ds_list_find_index(gmlshortlist,__yy__v590.gmlplayer_profile)),1);if(yyfless(gmlpos,0)){gmlpos=yyfminus(__yy_gml_errCheck(ds_list_size(gmlshortlist)),1);};__yy__v590.gmlplayer_profile=ds_list_find_value(gmlshortlist,gmlpos);ds_list_destroy(gmlshortlist);gmlshortlist=(-1);};};};}}};room_goto(YYASSET_REF(0x03000017));}}function gml_GlobalScript_btn_click_StaffProfileBack(_inst,_other){(_inst.gmlbtn_click_StaffProfileBack=__yy_method(_inst,gml_Script_btn_click_StaffProfileBack)); }function gml_Script_btn_click_StaffProfileBack(_inst,_other){{{var __yy__v591=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v592 in __yy__v591){if(!__yy__v591.hasOwnProperty(__yy__v592))continue;var __yy__v593=__yy__v591[__yy__v592];{if((yyGetBool(yyfgreaterequal(ds_list_find_index(__yy__v593.gmlstafflist,__yy__v593.gmlplayer_profile),0)))||(yyGetBool(yyfequal(ds_map_find_value(__yy__v593.gmlplayer_profile,"position"),100)))){room_goto(YYASSET_REF(0x03000009));}else {gml_Script_btn_click_ViewHires(__yy__v593, _inst);};}}};}}function gml_GlobalScript_btn_click_HireStaff(_inst,_other){(_inst.gmlbtn_click_HireStaff=__yy_method(_inst,gml_Script_btn_click_HireStaff));}function gml_Script_btn_click_HireStaff(_inst,_other){{var gmlpmap=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile;var gmlmsg=gml_Script_s_str(_inst,_other,"msg_HireStaff");var gmlcontract=2;var gmlcost=gml_Script_s_get_coach_cost(_inst,_other,gmlpmap);if(yyfless(ds_list_find_index(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstafflist, gmlpmap),0)){{if(yyfgreater(gmlcost,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit)){{gmlmsg=gml_Script_s_str(_inst,_other,"msg_HireStaffNoCost");gmlmsg=string_replace(gmlmsg,"$hirename",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))));gmlmsg=string_replace(gmlmsg,"$num",gmlcost);gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_HireStaff"),gmlmsg,gml_Script_s_str(_inst,_other, "ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};};gmlmsg=string_replace(gmlmsg,"$hirename",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))));gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position_full(_inst,_other,ds_map_find_value(gmlpmap,"position")));gmlmsg=string_replace(gmlmsg,"$year",string(gmlcontract));gmlmsg=string_replace(gmlmsg,"$num",gmlcost);yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlstaff_hire=gmlpmap;gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_HireStaff"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_btn_response_hirestaff,global.gmlc_background,1);};}else {{gmlcost=round(yyftime(__yy_gml_errCheck(gmlcost),0.5));if(yyfless(gmlcost,1)){gmlcost=1;};if(yyfgreaterequal(ds_map_find_value(gmlpmap,"age"),gml_Script_s_get_max_age(_inst,_other, gmlpmap))){{gmlmsg=gml_Script_s_str(_inst,_other,"msg_StaffExtendNoAge");gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_HireStaff"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};}else {if(yyfgreater(gmlcost,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit)){{gmlmsg=gml_Script_s_str(_inst,_other,"msg_StaffExtendNoCost");if(yyfless(gmlcost,2)){gmlmsg=gml_Script_s_str(_inst,_other,"msg_StaffExtendNoCost1"); };gmlmsg=string_replace(gmlmsg,"$hirename",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))));gmlmsg=string_replace(gmlmsg,"$num",gmlcost);gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_HireStaff"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};};};yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstaff_hire=gmlpmap;gmlmsg=gml_Script_s_str(_inst, _other,"msg_StaffExtend");if(yyfless(gmlcost,2)){gmlmsg=gml_Script_s_str(_inst,_other,"msg_StaffExtend1");};if(yyfless(ds_map_find_value(gmlpmap,"contract"),2)){gmlmsg=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"msg_StaffExpiring"))," "),__yy_gml_errCheck(gmlmsg));};gmlmsg=string_replace_all(gmlmsg,"$hirename",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))));gmlmsg=string_replace_all(gmlmsg,"$position", gml_Script_s_get_string_position_full(_inst,_other,ds_map_find_value(gmlpmap,"position")));gmlmsg=string_replace_all(gmlmsg,"$num",gmlcost);gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_HireStaff"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_btn_response_hirestaff,global.gmlc_background,1);};};}}function gml_GlobalScript_btn_click_ViewHires(_inst,_other){(_inst.gmlbtn_click_ViewHires=__yy_method(_inst, gml_Script_btn_click_ViewHires));}function gml_Script_btn_click_ViewHires(_inst,_other){{room_goto(YYASSET_REF(0x0300001F));}}function gml_GlobalScript_btn_click_ViewHiresProfile(_inst,_other){(_inst.gmlbtn_click_ViewHiresProfile=__yy_method(_inst,gml_Script_btn_click_ViewHiresProfile));}function gml_Script_btn_click_ViewHiresProfile(_inst,_other){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile=_inst.gmlpmap;room_goto(YYASSET_REF(0x03000017));}}function gml_GlobalScript_btn_click_ViewHiresBack(_inst, _other){(_inst.gmlbtn_click_ViewHiresBack=__yy_method(_inst,gml_Script_btn_click_ViewHiresBack));}function gml_Script_btn_click_ViewHiresBack(_inst,_other){{room_goto(YYASSET_REF(0x03000009));}}function gml_GlobalScript_btn_click_ViewHiresReset(_inst,_other){(_inst.gmlbtn_click_ViewHiresReset=__yy_method(_inst,gml_Script_btn_click_ViewHiresReset));}function gml_Script_btn_click_ViewHiresReset(_inst,_other){{{var __yy__v594=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v595 in __yy__v594){if(!__yy__v594.hasOwnProperty(__yy__v595))continue; var __yy__v596=__yy__v594[__yy__v595];{if(yyfless(__yy__v596.gmlcoach_credit,5)){{var gmlmsg=gml_Script_s_str(__yy__v596,_inst,"msg_ResetNoCredit");gmlmsg=string_replace(gmlmsg,"$num",5);gml_Script_s_create_message(__yy__v596,_inst,"",gmlmsg,gml_Script_s_str(__yy__v596,_inst,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};};if(yyfequal(__yy__v596.gmlstaff_reset_week,__yy__v596.gmlweek)){{gml_Script_s_create_message(__yy__v596,_inst,"",gml_Script_s_str(__yy__v596,_inst, "msg_ResetTooSoon"),gml_Script_s_str(__yy__v596,_inst,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};};var gmlmsg=gml_Script_s_str(__yy__v596,_inst,"msg_StaffReset");gmlmsg=string_replace(gmlmsg,"$num",5);gml_Script_s_create_message(__yy__v596,_inst,"",gmlmsg,gml_Script_s_str(__yy__v596,_inst,"ui_Cancel"),gml_Script_s_str(__yy__v596,_inst,"ui_Confirm"),kgml_Script_s_msg_clear,kgml_Script_s_confirm_staff_hire_reset,global.gmlc_background,1);}}};}}function gml_GlobalScript_btn_click_TrainingLight(_inst, _other){(_inst.gmlbtn_click_TrainingLight=__yy_method(_inst,gml_Script_btn_click_TrainingLight));}function gml_Script_btn_click_TrainingLight(_inst,_other){{{var __yy__v597=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v598 in __yy__v597){if(!__yy__v597.hasOwnProperty(__yy__v598))continue;var __yy__v599=__yy__v597[__yy__v598];{var ___sw398___=ds_map_find_value(__yy__v599.gmlplayer_profile,"position");var ___swc399___=-1;if(yyCompareVal(___sw398___,101,g_GMLMathEpsilon,false)==0){___swc399___=0;}else if(yyCompareVal(___sw398___, 102,g_GMLMathEpsilon,false)==0){___swc399___=1;}switch(___swc399___){case 0:{__yy__v599.gmltraining_reg_df=1;break;}case 1:{__yy__v599.gmltraining_reg_of=1;break;}};}}};room_goto(YYASSET_REF(0x03000017));}}function gml_GlobalScript_btn_click_TrainingNormal(_inst,_other){(_inst.gmlbtn_click_TrainingNormal=__yy_method(_inst,gml_Script_btn_click_TrainingNormal));}function gml_Script_btn_click_TrainingNormal(_inst,_other){{{var __yy__v600=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v601 in __yy__v600){ if(!__yy__v600.hasOwnProperty(__yy__v601))continue;var __yy__v602=__yy__v600[__yy__v601];{var ___sw402___=ds_map_find_value(__yy__v602.gmlplayer_profile,"position");var ___swc403___=-1;if(yyCompareVal(___sw402___,101,g_GMLMathEpsilon,false)==0){___swc403___=0;}else if(yyCompareVal(___sw402___,102,g_GMLMathEpsilon,false)==0){___swc403___=1;}switch(___swc403___){case 0:{__yy__v602.gmltraining_reg_df=2;break;}case 1:{__yy__v602.gmltraining_reg_of=2;break;}};}}};room_goto(YYASSET_REF(0x03000017));}}function gml_GlobalScript_btn_click_TrainingHard(_inst, _other){(_inst.gmlbtn_click_TrainingHard=__yy_method(_inst,gml_Script_btn_click_TrainingHard));}function gml_Script_btn_click_TrainingHard(_inst,_other){{{var __yy__v603=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v604 in __yy__v603){if(!__yy__v603.hasOwnProperty(__yy__v604))continue;var __yy__v605=__yy__v603[__yy__v604];{var ___sw406___=ds_map_find_value(__yy__v605.gmlplayer_profile,"position");var ___swc407___=-1;if(yyCompareVal(___sw406___,101,g_GMLMathEpsilon,false)==0){___swc407___=0;}else if(yyCompareVal(___sw406___, 102,g_GMLMathEpsilon,false)==0){___swc407___=1;}switch(___swc407___){case 0:{__yy__v605.gmltraining_reg_df=3;break;}case 1:{__yy__v605.gmltraining_reg_of=3;break;}};}}};room_goto(YYASSET_REF(0x03000017));}}function gml_GlobalScript_btn_click_XP_Continue(_inst,_other){(_inst.gmlbtn_click_XP_Continue=__yy_method(_inst,gml_Script_btn_click_XP_Continue));}function gml_Script_btn_click_XP_Continue(_inst,_other){{{var __yy__v606=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v607 in __yy__v606){if(!__yy__v606.hasOwnProperty(__yy__v607))continue; var __yy__v608=__yy__v606[__yy__v607];{{var __yy__v609=GetWithArray(YYASSET_REF(0x00000066));for(var __yy__v610 in __yy__v609){if(!__yy__v609.hasOwnProperty(__yy__v610))continue;var __yy__v611=__yy__v609[__yy__v610];instance_destroy(__yy__v611);}};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v608.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v608.gmlroster,gmli);if(!yyGetBool(gml_Script_s_has_xp_gain(__yy__v608, _inst,gmlpmap))){{ds_map_set(gmlpmap,"xp",round(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"xp")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"xp_gain")))));ds_map_set(gmlpmap,"xp_gain",0);};};}};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v608.gmlstafflist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v608.gmlstafflist,gmli);if(!yyGetBool(gml_Script_s_has_xp_gain(__yy__v608,_inst,gmlpmap))){ {ds_map_set(gmlpmap,"xp",round(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"xp")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"xp_gain")))));ds_map_set(gmlpmap,"xp_gain",0);};};}};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v608.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v608.gmlroster,gmli);if(yyGetBool(gml_Script_s_has_xp_gain(__yy__v608,_inst,gmlpmap))){{__yy__v608.gmlplayer_profile=gmlpmap; room_goto(YYASSET_REF(0x03000016));return;};};}};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v608.gmlstafflist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v608.gmlstafflist,gmli);if(yyGetBool(gml_Script_s_has_xp_gain(__yy__v608,_inst,gmlpmap))){{__yy__v608.gmlplayer_profile=gmlpmap;room_goto(YYASSET_REF(0x03000017));return;};};}};}}};if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstage, 7)){gml_Script_s_play(_inst,_other,1);}else {if((yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile))&&(yyGetBool(yyfequal(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"meetingdone"),1)))){room_goto(YYASSET_REF(0x03000016));}else {if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)){room_goto(YYASSET_REF(0x03000016));}else {room_goto(YYASSET_REF(0x03000009));};};};}}function gml_GlobalScript_btn_click_XP_Back(_inst,_other){(_inst.gmlbtn_click_XP_Back=__yy_method(_inst, gml_Script_btn_click_XP_Back));}function gml_Script_btn_click_XP_Back(_inst,_other){{room_goto(YYASSET_REF(0x03000019));}}function gml_GlobalScript_btn_response_quit_yes(_inst,_other){(_inst.gmlbtn_response_quit_yes=__yy_method(_inst,gml_Script_btn_response_quit_yes));}function gml_Script_btn_response_quit_yes(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);game_end();}}function gml_GlobalScript_btn_response_newgame_commit(_inst,_other){(_inst.gmlbtn_response_newgame_commit=__yy_method(_inst,gml_Script_btn_response_newgame_commit)); }function gml_Script_btn_response_newgame_commit(_inst,_other){{file_delete(gml_Script_s_get_savename(_inst,_other));gml_Script_s_msg_clear(_inst,_other);gml_Script_s_destroy_master(_inst,_other);room_goto(YYASSET_REF(0x03000000));}}function gml_GlobalScript_btn_response_kick_no(_inst,_other){(_inst.gmlbtn_response_kick_no=__yy_method(_inst,gml_Script_btn_response_kick_no));}function gml_Script_btn_response_kick_no(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);}}function gml_GlobalScript_btn_response_punt_yes(_inst, _other){(_inst.gmlbtn_response_punt_yes=__yy_method(_inst,gml_Script_btn_response_punt_yes));}function gml_Script_btn_response_punt_yes(_inst,_other){{gml_Script_s_action_result(_inst,_other,5);gml_Script_s_msg_clear(_inst,_other);}}function gml_GlobalScript_btn_response_fg_yes(_inst,_other){(_inst.gmlbtn_response_fg_yes=__yy_method(_inst,gml_Script_btn_response_fg_yes));}function gml_Script_btn_response_fg_yes(_inst,_other){{gml_Script_s_set_up_fieldgoal(_inst,_other,1);gml_Script_s_msg_clear(_inst, _other);}}function gml_GlobalScript_btn_response_1pt(_inst,_other){(_inst.gmlbtn_response_1pt=__yy_method(_inst,gml_Script_btn_response_1pt));}function gml_Script_btn_response_1pt(_inst,_other){{gml_Script_s_set_up_fieldgoal(_inst,_other,2);gml_Script_s_msg_clear(_inst,_other);}}function gml_GlobalScript_btn_response_2pt(_inst,_other){(_inst.gmlbtn_response_2pt=__yy_method(_inst,gml_Script_btn_response_2pt));}function gml_Script_btn_response_2pt(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);}} function gml_GlobalScript_btn_response_onsidekick_no(_inst,_other){(_inst.gmlbtn_response_onsidekick_no=__yy_method(_inst,gml_Script_btn_response_onsidekick_no));}function gml_Script_btn_response_onsidekick_no(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);{var __yy__v612=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v613 in __yy__v612){if(!__yy__v612.hasOwnProperty(__yy__v613))continue;var __yy__v614=__yy__v612[__yy__v613];__yy__v614.gmlcomm_stage=26;}};}}function gml_GlobalScript_btn_response_onsidekick_yes(_inst, _other){(_inst.gmlbtn_response_onsidekick_yes=__yy_method(_inst,gml_Script_btn_response_onsidekick_yes));}function gml_Script_btn_response_onsidekick_yes(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);{var __yy__v615=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v616 in __yy__v615){if(!__yy__v615.hasOwnProperty(__yy__v616))continue;var __yy__v617=__yy__v615[__yy__v616];__yy__v617.gmlcomm_stage=27;}};}}function gml_GlobalScript_btn_response_cut_player_yes(_inst,_other){(_inst.gmlbtn_response_cut_player_yes=__yy_method(_inst, gml_Script_btn_response_cut_player_yes));}function gml_Script_btn_response_cut_player_yes(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);{var __yy__v618=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v619 in __yy__v618){if(!__yy__v618.hasOwnProperty(__yy__v619))continue;var __yy__v620=__yy__v618[__yy__v619];{var gmlpatt=ds_map_find_value(__yy__v620.gmlplayer_profile,"attitude");if(yyfequal(g_pBuiltIn.get_current_room(),YYASSET_REF(0x03000016))){{var gmldel=gml_Script_s_remove_player(__yy__v620, _inst,__yy__v620.gmlplayer_profile,"cut",gml_Script_s_pick_epilogue_story(__yy__v620,_inst,"epi_cut"));if(yyGetBool(gmldel)){{__yy__v620.gmlplayer_profile=(-1);};};};}else {{ds_list_delete(__yy__v620.gmlroster,ds_list_find_index(__yy__v620.gmlroster,__yy__v620.gmlplayer_profile));ds_map_destroy(__yy__v620.gmlplayer_profile);__yy__v620.gmlplayer_profile=(-1);};};gml_Script_s_complete_achievement(__yy__v620,_inst,"ACH_CUT");if(yyfgreater(gmlpatt,15)){{gml_Script_s_meter_change(__yy__v620,_inst,4,gml_Script_s_get_morale(__yy__v620, _inst),YYASSET_REF(0x03000019),"");var gmli=__yy_gml_errCheck(-__yy_gml_errCheck(gml_Script_s_get_attitude_icon(__yy__v620,_inst,gmlpatt)));gml_Script_s_adjust_team_morale(__yy__v620,_inst,yyftime(__yy_gml_errCheck(gmli),2),gmli);if(yyfequal(g_pBuiltIn.get_current_room(),YYASSET_REF(0x03000016))){return;};};};}}};room_goto(YYASSET_REF(0x03000019));}}function gml_GlobalScript_btn_response_skip_draft_yes(_inst,_other){(_inst.gmlbtn_response_skip_draft_yes=__yy_method(_inst,gml_Script_btn_response_skip_draft_yes)); }function gml_Script_btn_response_skip_draft_yes(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);var gmlpicks=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraft_picks[__yy_gml_array_check_index(yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraft_round),1),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraft_picks)];if(yyfgreater(gmlpicks,0)){{var gmlvalue=yyftime(__yy_gml_errCheck(gmlpicks),__yy_gml_errCheck(yyfminus(4,__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraft_round)))); yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit,gmlvalue);};};gml_Script_s_end_draft_round(_inst,_other,false);}}function gml_GlobalScript_btn_response_pick_player_yes(_inst,_other){(_inst.gmlbtn_response_pick_player_yes=__yy_method(_inst,gml_Script_btn_response_pick_player_yes));}function gml_Script_btn_response_pick_player_yes(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);{var __yy__v621=GetWithArray(YYASSET_REF(0x00000062)); for(var __yy__v622 in __yy__v621){if(!__yy__v621.hasOwnProperty(__yy__v622))continue;var __yy__v623=__yy__v621[__yy__v622];{var gmlfrom_team_id=ds_map_find_value(__yy__v623.gmlplayer_profile,"teamid");gml_Script_slog(__yy__v623,_inst,yyfplus("Pick player yes. TeamId = ",__yy_gml_errCheck(string(gmlfrom_team_id))));ds_map_set(__yy__v623.gmlplayer_profile,"signed_year",yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear);ds_map_set(__yy__v623.gmlplayer_profile,"teamid",yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id); ds_map_set(__yy__v623.gmlplayer_profile,"flash_time",g_pBuiltIn.get_current_time());ds_list_add(__yy__v623.gmlroster,__yy__v623.gmlplayer_profile);var gmlpos=ds_list_find_index(__yy__v623.gmlfreeagentlist,__yy__v623.gmlplayer_profile);if(yyfgreater(gmlpos,(-1))){{var gmlmsg=gml_Script_s_str(__yy__v623,_inst,"news_SignFreeAgent");if(yyfequal(gmlfrom_team_id,__yy__v623.gmlmyteam_id)){{gmlmsg=gml_Script_s_str(__yy__v623,_inst,"news_ResignedPlayer");if(yyGetBool(gml_Script_s_is_co_mode(__yy__v623,_inst))){ {gmlmsg=yyfplus(gmlmsg,yyfplus(" ||",__yy_gml_errCheck(global.gmldebug_track_str)));gmlmsg=yyfplus(gmlmsg,yyfplus("|PTI:",__yy_gml_errCheck(string(gmlfrom_team_id))));gmlmsg=yyfplus(gmlmsg,yyfplus(yyfplus("|TI:",__yy_gml_errCheck(string(__yy__v623.gmlmyteam_id))),__yy_gml_errCheck(gml_Script_s_get_team_name_by_id(__yy__v623,_inst,__yy__v623.gmlmyteam_id))));gmlmsg=yyfplus(gmlmsg,yyfplus("|PC:",__yy_gml_errCheck(string(gml_Script_s_get_map(__yy__v623,_inst,__yy__v623.gmlplayer_profile,"contract", (-404))))));gmlmsg=yyfplus(gmlmsg,yyfplus("|PA:",__yy_gml_errCheck(string(gml_Script_s_get_map(__yy__v623,_inst,__yy__v623.gmlplayer_profile,"age",(-404))))));gmlmsg=yyfplus(gmlmsg,yyfplus("|PLR:",__yy_gml_errCheck(string(gml_Script_s_get_map(__yy__v623,_inst,__yy__v623.gmlplayer_profile,"team_leave_reason",(-404))))));gmlmsg=yyfplus(gmlmsg,yyfplus("|PSY:",__yy_gml_errCheck(string(gml_Script_s_get_map(__yy__v623,_inst,__yy__v623.gmlplayer_profile,"signed_year",(-404))))));};};};};gmlmsg=gml_Script_s_parse_player_message(__yy__v623, _inst,gmlmsg,__yy__v623.gmlplayer_profile);gml_Script_s_add_news(__yy__v623,_inst,gmlmsg);gml_Script_s_complete_achievement(__yy__v623,_inst,"ACH_FREEAGENT");if(yyfgreaterequal(gml_Script_s_get_player_rating(__yy__v623,_inst,__yy__v623.gmlplayer_profile),10)){gml_Script_s_complete_achievement(__yy__v623,_inst,"ACH_FREEAGENT5");};ds_list_delete(__yy__v623.gmlfreeagentlist,gmlpos);room_goto(YYASSET_REF(0x03000019));return;};};gmlpos=ds_list_find_index(__yy__v623.gmltradelist,__yy__v623.gmlplayer_profile); if(yyfgreater(gmlpos,(-1))){{var gmlmsg=gml_Script_s_str(__yy__v623,_inst,"news_SignTrade");gmlmsg=gml_Script_s_parse_player_message(__yy__v623,_inst,gmlmsg,__yy__v623.gmlplayer_profile);gmlmsg=string_replace(gmlmsg,"$otherteamname",gml_Script_s_get_team_name_by_id(__yy__v623,_inst,gmlfrom_team_id));gml_Script_s_add_news(__yy__v623,_inst,gmlmsg);gml_Script_s_complete_achievement(__yy__v623,_inst,"ACH_TRADEIN");ds_list_delete(__yy__v623.gmltradelist,gmlpos);room_goto(YYASSET_REF(0x03000019));return; };};gmlpos=ds_list_find_index(__yy__v623.gmldraftlist,__yy__v623.gmlplayer_profile);if(yyfgreater(gmlpos,(-1))){{if(yyGetBool(gml_Script_s_is_co_mode(__yy__v623,_inst))){{gml_Script_s_college_admissions_pick_player(__yy__v623,_inst,gmlpos);};}else {{__yy__v623.gmldraft_picks=__yy_gml_array_check(__yy__v623.gmldraft_picks,2582952936);(g_yyPrePostObject__=__yy__v623.gmldraft_picks[__yy_gml_array_check_index_set(yyfminus(__yy_gml_errCheck(__yy__v623.gmldraft_round),1))],__yy__v623.gmldraft_picks[__yy_gml_array_check_index_set(yyfminus(__yy_gml_errCheck(__yy__v623.gmldraft_round), 1))]=(g_yyPrePostObject__ instanceof Long?__yy__v623.gmldraft_picks[__yy_gml_array_check_index_set(yyfminus(__yy_gml_errCheck(__yy__v623.gmldraft_round),1))].subtract(1):--__yy__v623.gmldraft_picks[__yy_gml_array_check_index_set(yyfminus(__yy_gml_errCheck(__yy__v623.gmldraft_round),1))]),g_yyPrePostObject__);ds_list_delete(__yy__v623.gmldraftlist,gmlpos);};};room_goto(YYASSET_REF(0x03000019));gml_Script_s_complete_achievement(__yy__v623,_inst,"ACH_DRAFT");gml_Script_s_complete_achievement(__yy__v623, _inst,"ACH_NEW_FRESHMAN");return;};};gmlpos=ds_list_find_index(__yy__v623.gmlstorelist,__yy__v623.gmlplayer_profile);if(yyfgreater(gmlpos,(-1))){{var gmlmsg=gml_Script_s_str(__yy__v623,_inst,"news_SignTrade2");gmlmsg=gml_Script_s_parse_player_message(__yy__v623,_inst,gmlmsg,__yy__v623.gmlplayer_profile);gml_Script_s_add_news(__yy__v623,_inst,gmlmsg);__yy__v623.gmlcoach_credit=yyfminus(__yy__v623.gmlcoach_credit,ds_map_find_value(__yy__v623.gmlplayer_profile,"creditcost"));ds_map_set(__yy__v623.gmlmap_options, "op_credits_purchased",max(yyfminus(__yy_gml_errCheck(ds_map_find_value(__yy__v623.gmlmap_options,"op_credits_purchased")),__yy_gml_errCheck(ds_map_find_value(__yy__v623.gmlplayer_profile,"creditcost"))),0));ds_list_delete(__yy__v623.gmlstorelist,gmlpos);__yy__v623.gmlroster_from_store=false;gml_Script_s_savegame(__yy__v623,_inst);room_goto(YYASSET_REF(0x03000019));gml_Script_s_complete_achievement(__yy__v623,_inst,"ACH_FREEAGENT");if(yyfgreaterequal(gml_Script_s_get_player_rating(__yy__v623,_inst, __yy__v623.gmlplayer_profile),10)){gml_Script_s_complete_achievement(__yy__v623,_inst,"ACH_FREEAGENT5");};return;};};gmlpos=ds_list_find_index(__yy__v623.gmlhoflist,__yy__v623.gmlplayer_profile);if(yyfgreater(gmlpos,(-1))){{ds_list_delete(__yy__v623.gmlhoflist,gmlpos);room_goto(YYASSET_REF(0x03000019));return;};};}}};room_goto(YYASSET_REF(0x03000019));}}function gml_GlobalScript_btn_click_OptionsKickReturns(_inst,_other){(_inst.gmlbtn_click_OptionsKickReturns=__yy_method(_inst,gml_Script_btn_click_OptionsKickReturns)); (_inst.gmlbtn_click_OptionsKickReturns_Exh=__yy_method(_inst,gml_Script_btn_click_OptionsKickReturns_Exh));}function gml_Script_btn_click_OptionsKickReturns(_inst,_other){{{var __yy__v624=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v625 in __yy__v624){if(!__yy__v624.hasOwnProperty(__yy__v625))continue;var __yy__v626=__yy__v624[__yy__v625];{if(yyfequal(ds_map_find_value(__yy__v626.gmlmap_options,"fullversion"),1)){{ds_map_set(__yy__v626.gmlmap_options,"op_kickoffs",!yyGetBool(ds_map_find_value(__yy__v626.gmlmap_options, "op_kickoffs")));gml_Script_s_update_options(__yy__v626,_inst);if(!yyGetBool(ds_map_find_value(__yy__v626.gmlmap_options,"op_kickoffs"))){{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v626.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ds_map_set(ds_list_find_value(__yy__v626.gmlroster,gmli),"kr",0)};};};};}else {{ds_map_set(__yy__v626.gmlmap_options,"op_kickoffs",0);gml_Script_s_create_message(__yy__v626,_inst,"",gml_Script_s_str(__yy__v626, _inst,"msg_NeedUnlimited"),gml_Script_s_str(__yy__v626,_inst,"ui_No"),gml_Script_s_str(__yy__v626,_inst,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_s_open_store,global.gmlc_background,1);};};}}};}}function gml_Script_btn_click_OptionsKickReturns_Exh(_inst,_other){{{var __yy__v627=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v628 in __yy__v627){if(!__yy__v627.hasOwnProperty(__yy__v628))continue;var __yy__v629=__yy__v627[__yy__v628];{ds_map_set(__yy__v629.gmlmap_options,"exh_op_kickoffs",!yyGetBool(ds_map_find_value(__yy__v629.gmlmap_options, "exh_op_kickoffs")));gml_Script_s_update_options_exh(__yy__v629,_inst);}}};}}function gml_GlobalScript_btn_response_in_trade_player_yes(_inst,_other){(_inst.gmlbtn_response_in_trade_player_yes=__yy_method(_inst,gml_Script_btn_response_in_trade_player_yes));}function gml_Script_btn_response_in_trade_player_yes(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);{var __yy__v630=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v631 in __yy__v630){if(!__yy__v630.hasOwnProperty(__yy__v631))continue;var __yy__v632=__yy__v630[__yy__v631]; {var gmlpick=ds_map_find_value(__yy__v632.gmlplayer_profile,"intrade_pick");var gmlfrom_team_id=ds_map_find_value(__yy__v632.gmlplayer_profile,"teamid");__yy__v632.gmldraft_picks=__yy_gml_array_check(__yy__v632.gmldraft_picks,1286401908);(g_yyPrePostObject__=__yy__v632.gmldraft_picks[__yy_gml_array_check_index_set(yyfminus(__yy_gml_errCheck(gmlpick),1))],__yy__v632.gmldraft_picks[__yy_gml_array_check_index_set(yyfminus(__yy_gml_errCheck(gmlpick),1))]=(g_yyPrePostObject__ instanceof Long?__yy__v632.gmldraft_picks[__yy_gml_array_check_index_set(yyfminus(__yy_gml_errCheck(gmlpick), 1))].subtract(1):--__yy__v632.gmldraft_picks[__yy_gml_array_check_index_set(yyfminus(__yy_gml_errCheck(gmlpick),1))]),g_yyPrePostObject__);ds_map_set(__yy__v632.gmlplayer_profile,"signed_year",yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear);ds_map_set(__yy__v632.gmlplayer_profile,"teamid",yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id);ds_map_set(__yy__v632.gmlplayer_profile,"intrade_pick",0);ds_map_set(__yy__v632.gmlplayer_profile,"flash_time",g_pBuiltIn.get_current_time());var gmlmsg=gml_Script_s_str(__yy__v632, _inst,"news_SignTrade");gmlmsg=gml_Script_s_parse_player_message(__yy__v632,_inst,gmlmsg,__yy__v632.gmlplayer_profile);gmlmsg=string_replace(gmlmsg,"$otherteamname",gml_Script_s_get_team_name_by_id(__yy__v632,_inst,gmlfrom_team_id));gml_Script_s_add_news(__yy__v632,_inst,gmlmsg);gml_Script_s_complete_achievement(__yy__v632,_inst,"ACH_TRADEIN");ds_list_add(__yy__v632.gmlroster,__yy__v632.gmlplayer_profile);ds_list_delete(__yy__v632.gmltradelist,ds_list_find_index(__yy__v632.gmltradelist,__yy__v632.gmlplayer_profile)); gml_Script_s_savegame(__yy__v632,_inst);room_goto(YYASSET_REF(0x03000019));}}};}}function gml_GlobalScript_btn_response_out_trade_player_yes(_inst,_other){(_inst.gmlbtn_response_out_trade_player_yes=__yy_method(_inst,gml_Script_btn_response_out_trade_player_yes));}function gml_Script_btn_response_out_trade_player_yes(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);{var __yy__v633=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v634 in __yy__v633){if(!__yy__v633.hasOwnProperty(__yy__v634))continue; var __yy__v635=__yy__v633[__yy__v634];{array_set_post(__yy__v635.gmldraft_picks,yyfminus(__yy_gml_errCheck(ds_map_find_value(__yy__v635.gmlplayer_profile,"outtrade_pick")),1),yyfplus(__yy_gml_errCheck(array_get(__yy__v635.gmldraft_picks,yyfminus(__yy_gml_errCheck(ds_map_find_value(__yy__v635.gmlplayer_profile,"outtrade_pick")),1))),1));ds_map_set(__yy__v635.gmlplayer_profile,"outtrade_pick",0);var gmlorig_fans=__yy__v635.gmlfans;if(yyfequal(ds_map_find_value(__yy__v635.gmlplayer_profile,"signed_year"), __yy__v635.gmlyear)){{gml_Script_s_adjust_team_morale(__yy__v635,_inst,(-15),(-10));__yy__v635.gmlfans=clamp(yyftime(__yy_gml_errCheck(__yy__v635.gmlfans),0.85),1,100);};};var gmldel=gml_Script_s_remove_player(__yy__v635,_inst,__yy__v635.gmlplayer_profile,"trade");if(yyGetBool(gmldel)){{__yy__v635.gmlplayer_profile=(-1);};};gml_Script_s_complete_achievement(__yy__v635,_inst,"ACH_TRADEOUT");gml_Script_s_savegame(__yy__v635,_inst);if(yyfless(__yy__v635.gmlfans,yyfminus(__yy_gml_errCheck(gmlorig_fans), 2))){gml_Script_s_meter_change(__yy__v635,_inst,1,gmlorig_fans,YYASSET_REF(0x03000019),"");}else {room_goto(YYASSET_REF(0x03000019));};}}};}}function gml_GlobalScript_btn_response_out_trade_player_no(_inst,_other){(_inst.gmlbtn_response_out_trade_player_no=__yy_method(_inst,gml_Script_btn_response_out_trade_player_no));}function gml_Script_btn_response_out_trade_player_no(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);room_goto(YYASSET_REF(0x03000016));}}function gml_GlobalScript_btn_response_player_meeting_morale_yes(_inst, _other){(_inst.gmlbtn_response_player_meeting_morale_yes=__yy_method(_inst,gml_Script_btn_response_player_meeting_morale_yes));}function gml_Script_btn_response_player_meeting_morale_yes(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);{var __yy__v636=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v637 in __yy__v636){if(!__yy__v636.hasOwnProperty(__yy__v637))continue;var __yy__v638=__yy__v636[__yy__v637];{var gmlmeetcost=gml_Script_s_get_meeting_cost_morale(__yy__v638,_inst,__yy__v638.gmlplayer_profile); var gmlpatt=ds_map_find_value(__yy__v638.gmlplayer_profile,"attitude");var gmlold_amount=gmlpatt;__yy__v638.gmlcoach_credit=yyfminus(__yy__v638.gmlcoach_credit,gmlmeetcost);if(yyfless(__yy__v638.gmlcoach_credit,0)){__yy__v638.gmlcoach_credit=0;};ds_map_set(__yy__v638.gmlmap_options,"op_credits_purchased",max(yyfminus(__yy_gml_errCheck(ds_map_find_value(__yy__v638.gmlmap_options,"op_credits_purchased")),__yy_gml_errCheck(gmlmeetcost)),0));gmlpatt=clamp(yyfplus(__yy_gml_errCheck(gmlpatt),15),1,100); ds_map_set(__yy__v638.gmlplayer_profile,"attitude",gmlpatt);ds_map_set(__yy__v638.gmlplayer_profile,"meetingdone",1);var gmlnum=string(irandom_range(1,3));var gmlmsg=gml_Script_s_str(__yy__v638,_inst,yyfplus("msg_boost_morale",__yy_gml_errCheck(gmlnum)));gmlmsg=string_replace(gmlmsg,"$playername",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(__yy__v638.gmlplayer_profile,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(__yy__v638.gmlplayer_profile,"lname"))));gml_Script_s_meter_change(__yy__v638, _inst,5,gmlold_amount,YYASSET_REF(0x03000016),gmlmsg);gml_Script_s_clear_party_meter(__yy__v638,_inst,__yy__v638.gmlplayer_profile);}}};}}function gml_GlobalScript_btn_response_player_meeting_condition_yes(_inst,_other){(_inst.gmlbtn_response_player_meeting_condition_yes=__yy_method(_inst,gml_Script_btn_response_player_meeting_condition_yes));}function gml_Script_btn_response_player_meeting_condition_yes(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);{var __yy__v639=GetWithArray(YYASSET_REF(0x00000062)); for(var __yy__v640 in __yy__v639){if(!__yy__v639.hasOwnProperty(__yy__v640))continue;var __yy__v641=__yy__v639[__yy__v640];{var gmlmeetcost=gml_Script_s_get_meeting_cost_condition(__yy__v641,_inst,__yy__v641.gmlplayer_profile);var gmlcon=ds_map_find_value(__yy__v641.gmlplayer_profile,"condition");var gmlold_amount=gmlcon;__yy__v641.gmlcoach_credit=yyfminus(__yy__v641.gmlcoach_credit,gmlmeetcost);if(yyfless(__yy__v641.gmlcoach_credit,0)){__yy__v641.gmlcoach_credit=0;};ds_map_set(__yy__v641.gmlmap_options, "op_credits_purchased",max(yyfminus(__yy_gml_errCheck(ds_map_find_value(__yy__v641.gmlmap_options,"op_credits_purchased")),__yy_gml_errCheck(gmlmeetcost)),0));ds_map_set(__yy__v641.gmlplayer_profile,"condition",100);ds_map_set(__yy__v641.gmlplayer_profile,"meetingdone",1);var gmlnum=string(irandom_range(1,3));var gmlmsg=gml_Script_s_str(__yy__v641,_inst,yyfplus("msg_boost_condition",__yy_gml_errCheck(gmlnum)));gmlmsg=string_replace(gmlmsg,"$playername",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(__yy__v641.gmlplayer_profile, "fname"))," "),__yy_gml_errCheck(ds_map_find_value(__yy__v641.gmlplayer_profile,"lname"))));gml_Script_s_meter_change(__yy__v641,_inst,3,gmlold_amount,YYASSET_REF(0x03000016),gmlmsg);gml_Script_s_clear_party_meter(__yy__v641,_inst,__yy__v641.gmlplayer_profile);}}};}}function gml_GlobalScript_btn_response_player_meeting_levelup_yes(_inst,_other){(_inst.gmlbtn_response_player_meeting_levelup_yes=__yy_method(_inst,gml_Script_btn_response_player_meeting_levelup_yes));}function gml_Script_btn_response_player_meeting_levelup_yes(_inst, _other){{gml_Script_s_msg_clear(_inst,_other);{var __yy__v642=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v643 in __yy__v642){if(!__yy__v642.hasOwnProperty(__yy__v643))continue;var __yy__v644=__yy__v642[__yy__v643];{var gmlmeetcost=gml_Script_s_get_meeting_cost_levelup(__yy__v644,_inst,__yy__v644.gmlplayer_profile);__yy__v644.gmlcoach_credit=yyfminus(__yy__v644.gmlcoach_credit,gmlmeetcost);if(yyfless(__yy__v644.gmlcoach_credit,0)){__yy__v644.gmlcoach_credit=0;};ds_map_set(__yy__v644.gmlmap_options, "op_credits_purchased",max(yyfminus(__yy_gml_errCheck(ds_map_find_value(__yy__v644.gmlmap_options,"op_credits_purchased")),__yy_gml_errCheck(gmlmeetcost)),0));ds_map_set(__yy__v644.gmlplayer_profile,"meetingdone",1);var gmlxp=ds_map_find_value(__yy__v644.gmlplayer_profile,"xp");ds_map_set(__yy__v644.gmlplayer_profile,"xp",yyftime(__yy_gml_errCheck(ds_map_find_value(__yy__v644.gmlplayer_profile,"xp_level")),100));ds_map_set(__yy__v644.gmlplayer_profile,"xp_gain",round(yyfplus(yyfplus(__yy_gml_errCheck(real(ds_map_find_value(__yy__v644.gmlplayer_profile, "xp_gain"))),10),__yy_gml_errCheck(gmlxp))));gml_Script_s_clear_party_meter(__yy__v644,_inst,__yy__v644.gmlplayer_profile);room_goto(YYASSET_REF(0x03000016));}}};}}function gml_GlobalScript_btn_response_player_meeting_extend_contract(_inst,_other){(_inst.gmlbtn_response_player_meeting_extend_contract=__yy_method(_inst,gml_Script_btn_response_player_meeting_extend_contract));}function gml_Script_btn_response_player_meeting_extend_contract(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);{var __yy__v645=GetWithArray(YYASSET_REF(0x00000062)); for(var __yy__v646 in __yy__v645){if(!__yy__v645.hasOwnProperty(__yy__v646))continue;var __yy__v647=__yy__v645[__yy__v646];{ds_map_set(__yy__v647.gmlplayer_profile,"meetingdone",1);var ___sw410___=yyInst(_inst,_other,YYASSET_REF(0x00000097)).gmlretirement;var ___swc411___=-1;if(yyCompareVal(___sw410___,false,g_GMLMathEpsilon,false)==0){___swc411___=0;}else if(yyCompareVal(___sw410___,true,g_GMLMathEpsilon,false)==0){___swc411___=1;}switch(___swc411___){case 0:{var gmlmeetcost=gml_Script_s_get_meeting_cost_extend_contract(__yy__v647, _inst,__yy__v647.gmlplayer_profile);ds_map_set(__yy__v647.gmlmap_options,"op_credits_purchased",max(yyfminus(__yy_gml_errCheck(ds_map_find_value(__yy__v647.gmlmap_options,"op_credits_purchased")),__yy_gml_errCheck(gmlmeetcost)),0));__yy__v647.gmlcoach_credit=yyfminus(__yy__v647.gmlcoach_credit,gmlmeetcost);if(yyfless(__yy__v647.gmlcoach_credit,0)){__yy__v647.gmlcoach_credit=0;};ds_map_set(__yy__v647.gmlplayer_profile,"contract",yyfplus(__yy_gml_errCheck(real(ds_map_find_value(__yy__v647.gmlplayer_profile, "contract"))),1));break;}case 1:{var gmlmeetcost=max(gml_Script_s_get_meeting_cost_extend_contract(__yy__v647,_inst,__yy__v647.gmlplayer_profile),gml_Script_s_get_meeting_cost_delay_retirement(__yy__v647,_inst,__yy__v647.gmlplayer_profile));ds_map_set(__yy__v647.gmlmap_options,"op_credits_purchased",max(yyfminus(__yy_gml_errCheck(ds_map_find_value(__yy__v647.gmlmap_options,"op_credits_purchased")),__yy_gml_errCheck(gmlmeetcost)),0));__yy__v647.gmlcoach_credit=yyfminus(__yy__v647.gmlcoach_credit,gmlmeetcost); if(yyfless(__yy__v647.gmlcoach_credit,0)){__yy__v647.gmlcoach_credit=0;};if(yyGetBool(ds_map_exists(__yy__v647.gmlplayer_profile,"delay_retirement"))){ds_map_set(__yy__v647.gmlplayer_profile,"delay_retirement",yyfplus(__yy_gml_errCheck(real(ds_map_find_value(__yy__v647.gmlplayer_profile,"delay_retirement"))),1));}else {ds_map_set(__yy__v647.gmlplayer_profile,"delay_retirement",1);};if(yyfless(real(ds_map_find_value(__yy__v647.gmlplayer_profile,"contract")),2)){ds_map_set(__yy__v647.gmlplayer_profile, "contract",2);};break;}};gml_Script_s_savegame(__yy__v647,_inst);room_goto(YYASSET_REF(0x03000016));}}};}}function gml_GlobalScript_btn_response_boost_morale(_inst,_other){(_inst.gmlbtn_response_boost_morale=__yy_method(_inst,gml_Script_btn_response_boost_morale));}function gml_Script_btn_response_boost_morale(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);{var __yy__v648=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v649 in __yy__v648){if(!__yy__v648.hasOwnProperty(__yy__v649))continue;var __yy__v650=__yy__v648[__yy__v649]; {__yy__v650.gmlboost_morale_done=true;__yy__v650.gmlcoach_credit=yyfminus(__yy__v650.gmlcoach_credit,25);if(yyfless(__yy__v650.gmlcoach_credit,0)){__yy__v650.gmlcoach_credit=0;};var gmlmor=gml_Script_s_get_morale(__yy__v650,_inst);var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v650.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v650.gmlroster,gmli);ds_map_set(gmlpmap,"attitude",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap, "attitude")),10),1,100));}};gml_Script_s_team_halve_all_party_meters(__yy__v650,_inst);gml_Script_s_meter_change(__yy__v650,_inst,4,gmlmor,YYASSET_REF(0x03000022),gml_Script_s_str(__yy__v650,_inst,yyfplus("msg_BoostMoraleEvent",__yy_gml_errCheck(string(irandom(9))))));}}};}}function gml_GlobalScript_btn_response_boost_condition(_inst,_other){(_inst.gmlbtn_response_boost_condition=__yy_method(_inst,gml_Script_btn_response_boost_condition));}function gml_Script_btn_response_boost_condition(_inst,_other){ {gml_Script_s_msg_clear(_inst,_other);{var __yy__v651=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v652 in __yy__v651){if(!__yy__v651.hasOwnProperty(__yy__v652))continue;var __yy__v653=__yy__v651[__yy__v652];{__yy__v653.gmlboost_condition_done=true;__yy__v653.gmlcoach_credit=yyfminus(__yy__v653.gmlcoach_credit,25);if(yyfless(__yy__v653.gmlcoach_credit,0)){__yy__v653.gmlcoach_credit=0;};var gmlcon=gml_Script_s_get_condition_squad(__yy__v653,_inst);var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v653.gmlroster)); (g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v653.gmlroster,gmli);if(yyfgreater(ds_map_find_value(gmlpmap,"condition"),0)){{ds_map_set(gmlpmap,"condition",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"condition")),20),1,100));};};}};gml_Script_s_team_halve_all_party_meters(__yy__v653,_inst);gml_Script_s_meter_change(__yy__v653,_inst,2,gmlcon,YYASSET_REF(0x03000022),gml_Script_s_str(__yy__v653, _inst,yyfplus("msg_BoostConditionEvent",__yy_gml_errCheck(string(irandom(5))))));}}};}}function gml_GlobalScript_btn_response_boost_salary_cap(_inst,_other){(_inst.gmlbtn_response_boost_salary_cap=__yy_method(_inst,gml_Script_btn_response_boost_salary_cap));}function gml_Script_btn_response_boost_salary_cap(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);{var __yy__v654=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v655 in __yy__v654){if(!__yy__v654.hasOwnProperty(__yy__v655))continue;var __yy__v656=__yy__v654[__yy__v655]; {__yy__v656.gmlboost_salary_cap=yyfplus(__yy__v656.gmlboost_salary_cap,25);__yy__v656.gmlcoach_credit=yyfminus(__yy__v656.gmlcoach_credit,100);if(yyfless(__yy__v656.gmlcoach_credit,0)){__yy__v656.gmlcoach_credit=0;};}}};room_goto(YYASSET_REF(0x03000009));}}function gml_GlobalScript_s_confirm_upgrade_stadium(_inst,_other){(_inst.gmls_confirm_upgrade_stadium=__yy_method(_inst,gml_Script_s_confirm_upgrade_stadium));}function gml_Script_s_confirm_upgrade_stadium(_inst,_other){{{var __yy__v657=GetWithArray(YYASSET_REF(0x00000062)); for(var __yy__v658 in __yy__v657){if(!__yy__v657.hasOwnProperty(__yy__v658))continue;var __yy__v659=__yy__v657[__yy__v658];{gml_Script_s_msg_clear(__yy__v659,_inst);__yy__v659.gmlfacility_upgraded_stadium=__yy__v659.gmlweek;__yy__v659.gmlfacility_stadium=clamp(yyfplus(__yy_gml_errCheck(__yy__v659.gmlfacility_stadium),1),1,10);__yy__v659.gmlcoach_credit=yyfminus(__yy__v659.gmlcoach_credit,__yy__v659.gmlfacility_stadium);if(yyfless(__yy__v659.gmlcoach_credit,0)){__yy__v659.gmlcoach_credit=0;};ds_map_set(__yy__v659.gmlmap_options, "op_credits_purchased",max(yyfminus(__yy_gml_errCheck(ds_map_find_value(__yy__v659.gmlmap_options,"op_credits_purchased")),__yy_gml_errCheck(__yy__v659.gmlfacility_stadium)),0));gml_Script_s_complete_achievement(__yy__v659,_inst,"ACH_UPGRADE_STADIUM");if(yyfequal(__yy__v659.gmlfacility_stadium,10)){gml_Script_s_complete_achievement(__yy__v659,_inst,"ACH_MAX_STADIUM");};var gmlorig=__yy__v659.gmlfans;var gmlamt=yyftime(__yy_gml_errCheck(yyfminus(100,__yy_gml_errCheck(__yy__v659.gmlfans))),0.1);__yy__v659.gmlfans=clamp(yyfplus(__yy_gml_errCheck(__yy__v659.gmlfans), __yy_gml_errCheck(gmlamt)),1,100);if(yyfgreater(__yy__v659.gmlfans,yyfplus(__yy_gml_errCheck(gmlorig),2))){{gml_Script_s_meter_change(__yy__v659,_inst,1,gmlorig,YYASSET_REF(0x03000009),"");};}else {room_goto(YYASSET_REF(0x03000009));};}}};}}function gml_GlobalScript_s_confirm_upgrade_training(_inst,_other){(_inst.gmls_confirm_upgrade_training=__yy_method(_inst,gml_Script_s_confirm_upgrade_training));}function gml_Script_s_confirm_upgrade_training(_inst,_other){{{var __yy__v660=GetWithArray(YYASSET_REF(0x00000062)); for(var __yy__v661 in __yy__v660){if(!__yy__v660.hasOwnProperty(__yy__v661))continue;var __yy__v662=__yy__v660[__yy__v661];{gml_Script_s_msg_clear(__yy__v662,_inst);__yy__v662.gmlfacility_upgraded_training=__yy__v662.gmlweek;__yy__v662.gmlfacility_training=clamp(yyfplus(__yy_gml_errCheck(__yy__v662.gmlfacility_training),1),1,10);__yy__v662.gmlcoach_credit=yyfminus(__yy__v662.gmlcoach_credit,__yy__v662.gmlfacility_training);if(yyfless(__yy__v662.gmlcoach_credit,0)){__yy__v662.gmlcoach_credit=0;};ds_map_set(__yy__v662.gmlmap_options, "op_credits_purchased",max(yyfminus(__yy_gml_errCheck(ds_map_find_value(__yy__v662.gmlmap_options,"op_credits_purchased")),__yy_gml_errCheck(__yy__v662.gmlfacility_training)),0));gml_Script_s_complete_achievement(__yy__v662,_inst,"ACH_UPGRADE_TRAINING");if(yyfequal(__yy__v662.gmlfacility_training,10)){gml_Script_s_complete_achievement(__yy__v662,_inst,"ACH_MAX_TRAINING");};var gmlmor=gml_Script_s_get_morale(__yy__v662,_inst);var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v662.gmlroster));(g_yyPrePostObject__=gmli, gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v662.gmlroster,gmli);var gmlamt=yyftime(__yy_gml_errCheck(yyfminus(100,__yy_gml_errCheck(ds_map_find_value(gmlpmap,"attitude")))),0.1);ds_map_set(gmlpmap,"attitude",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"attitude")),__yy_gml_errCheck(round(gmlamt))),1,100));}};if(yyfgreater(gml_Script_s_get_morale(__yy__v662,_inst),yyfplus(__yy_gml_errCheck(gmlmor),2))){{gml_Script_s_meter_change(__yy__v662, _inst,4,gmlmor,YYASSET_REF(0x03000009),"");};}else {room_goto(YYASSET_REF(0x03000009));};}}};}}function gml_GlobalScript_s_confirm_upgrade_rehab(_inst,_other){(_inst.gmls_confirm_upgrade_rehab=__yy_method(_inst,gml_Script_s_confirm_upgrade_rehab));}function gml_Script_s_confirm_upgrade_rehab(_inst,_other){{{var __yy__v663=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v664 in __yy__v663){if(!__yy__v663.hasOwnProperty(__yy__v664))continue;var __yy__v665=__yy__v663[__yy__v664];{gml_Script_s_msg_clear(__yy__v665, _inst);__yy__v665.gmlfacility_upgraded_rehab=__yy__v665.gmlweek;__yy__v665.gmlfacility_rehab=clamp(yyfplus(__yy_gml_errCheck(__yy__v665.gmlfacility_rehab),1),1,10);__yy__v665.gmlcoach_credit=yyfminus(__yy__v665.gmlcoach_credit,__yy__v665.gmlfacility_rehab);if(yyfless(__yy__v665.gmlcoach_credit,0)){__yy__v665.gmlcoach_credit=0;};ds_map_set(__yy__v665.gmlmap_options,"op_credits_purchased",max(yyfminus(__yy_gml_errCheck(ds_map_find_value(__yy__v665.gmlmap_options,"op_credits_purchased")),__yy_gml_errCheck(__yy__v665.gmlfacility_rehab)), 0));gml_Script_s_complete_achievement(__yy__v665,_inst,"ACH_UPGRADE_REHAB");if(yyfequal(__yy__v665.gmlfacility_rehab,10)){gml_Script_s_complete_achievement(__yy__v665,_inst,"ACH_MAX_REHAB");};var gmlcond=gml_Script_s_get_condition_squad(__yy__v665,_inst);var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v665.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v665.gmlroster,gmli);if(yyfgreater(ds_map_find_value(gmlpmap, "condition"),0)){{var gmlamt=yyftime(__yy_gml_errCheck(yyfminus(100,__yy_gml_errCheck(ds_map_find_value(gmlpmap,"condition")))),0.1);ds_map_set(gmlpmap,"condition",clamp(round(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"condition")),__yy_gml_errCheck(gmlamt))),1,100));};};}};if(yyfgreater(gml_Script_s_get_condition_squad(__yy__v665,_inst),yyfplus(__yy_gml_errCheck(gmlcond),2))){{gml_Script_s_meter_change(__yy__v665,_inst,2,gmlcond,YYASSET_REF(0x03000009),"");};}else {room_goto(YYASSET_REF(0x03000009)); };}}};}}function gml_GlobalScript_btn_response_hirestaff(_inst,_other){(_inst.gmlbtn_response_hirestaff=__yy_method(_inst,gml_Script_btn_response_hirestaff));}function gml_Script_btn_response_hirestaff(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);{var __yy__v666=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v667 in __yy__v666){if(!__yy__v666.hasOwnProperty(__yy__v667))continue;var __yy__v668=__yy__v666[__yy__v667];{if(yyfless(ds_list_find_index(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstafflist, __yy__v668.gmlstaff_hire),0)){{var gmlrating=0;if(yyfequal(ds_map_find_value(__yy__v668.gmlstaff_hire,"position"),101)){{gmlrating=gml_Script_s_get_team_defense(__yy__v668,_inst,__yy__v668.gmlmyteam);gml_Script_s_fire_coach(__yy__v668,_inst,gml_Script_s_get_staff(__yy__v668,_inst,101));gml_Script_s_complete_achievement(__yy__v668,_inst,"ACH_HIRE_DF");if(yyfgreaterequal(ds_map_find_value(__yy__v668.gmlstaff_hire,"rating"),10)){gml_Script_s_complete_achievement(__yy__v668,_inst,"ACH_HIRE_DF5");};if(yyfgreaterequal(gmlrating, 10)){gml_Script_s_complete_achievement(__yy__v668,_inst,"ACH_DEFENSE5");};};}else {{gmlrating=gml_Script_s_get_team_offense(__yy__v668,_inst,__yy__v668.gmlmyteam);gml_Script_s_fire_coach(__yy__v668,_inst,gml_Script_s_get_staff(__yy__v668,_inst,102));gml_Script_s_complete_achievement(__yy__v668,_inst,"ACH_HIRE_OF");if(yyfgreaterequal(ds_map_find_value(__yy__v668.gmlstaff_hire,"rating"),10)){gml_Script_s_complete_achievement(__yy__v668,_inst,"ACH_HIRE_OF5");};if(yyfgreaterequal(gmlrating,10)){gml_Script_s_complete_achievement(__yy__v668, _inst,"ACH_OFFENSE5");};};};ds_list_delete(__yy__v668.gmlhirelist,ds_list_find_index(__yy__v668.gmlhirelist,__yy__v668.gmlstaff_hire));ds_list_add(__yy__v668.gmlstafflist,__yy__v668.gmlstaff_hire);ds_map_set(__yy__v668.gmlstaff_hire,"contract",2);if(yyfgreater(__yy__v668.gmlweek,8)){ds_map_set(__yy__v668.gmlstaff_hire,"contract",3);};var gmlcost=gml_Script_s_get_coach_cost(__yy__v668,_inst,__yy__v668.gmlstaff_hire);__yy__v668.gmlcoach_credit=yyfminus(__yy__v668.gmlcoach_credit,gmlcost);ds_map_set(__yy__v668.gmlmap_options, "op_credits_purchased",max(yyfminus(__yy_gml_errCheck(ds_map_find_value(__yy__v668.gmlmap_options,"op_credits_purchased")),__yy_gml_errCheck(gmlcost)),0));var ___sw414___=ds_map_find_value(__yy__v668.gmlstaff_hire,"trait");var ___swc415___=-1;if(yyCompareVal(___sw414___,1,g_GMLMathEpsilon,false)==0){___swc415___=0;}else if(yyCompareVal(___sw414___,3,g_GMLMathEpsilon,false)==0){___swc415___=1;}else if(yyCompareVal(___sw414___,2,g_GMLMathEpsilon,false)==0){___swc415___=2;}switch(___swc415___){case 0:{gml_Script_s_coach_trait_experience(__yy__v668, _inst,__yy__v668.gmlstaff_hire);break;}case 1:{gml_Script_s_coach_trait_motivator(__yy__v668,_inst,__yy__v668.gmlstaff_hire);break;}case 2:{gml_Script_s_coach_trait_talentspotter(__yy__v668,_inst,__yy__v668.gmlstaff_hire);}default :{if(yyfequal(ds_map_find_value(__yy__v668.gmlstaff_hire,"position"),101)){{if(yyfnotequal(gmlrating,gml_Script_s_get_team_defense(__yy__v668,_inst,__yy__v668.gmlmyteam))){gml_Script_s_meter_change(__yy__v668,_inst,7,gmlrating,YYASSET_REF(0x03000009),"");}else {room_goto(YYASSET_REF(0x03000009)); };};}else {{if(yyfnotequal(gmlrating,gml_Script_s_get_team_offense(__yy__v668,_inst,__yy__v668.gmlmyteam))){gml_Script_s_meter_change(__yy__v668,_inst,6,gmlrating,YYASSET_REF(0x03000009),"");}else {room_goto(YYASSET_REF(0x03000009));};};};break;}};var gmlmsg=gml_Script_s_str(__yy__v668,_inst,"news_HireStaff");gmlmsg=string_replace(gmlmsg,"$teamname",ds_map_find_value(__yy__v668.gmlmyteam,"name"));gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position_full(__yy__v668,_inst,ds_map_find_value(__yy__v668.gmlstaff_hire, "position")));gmlmsg=string_replace(gmlmsg,"$hirename",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(__yy__v668.gmlstaff_hire,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(__yy__v668.gmlstaff_hire,"lname"))));gmlmsg=string_replace(gmlmsg,"$num",string(ds_map_find_value(__yy__v668.gmlstaff_hire,"contract")));gml_Script_s_add_news(__yy__v668,_inst,gmlmsg);};}else {{var gmlcost=round(yyftime(__yy_gml_errCheck(gml_Script_s_get_coach_cost(__yy__v668,_inst,__yy__v668.gmlstaff_hire)),0.5));if(yyfless(gmlcost, 1)){gmlcost=1;};__yy__v668.gmlcoach_credit=yyfminus(__yy__v668.gmlcoach_credit,gmlcost);ds_map_set(__yy__v668.gmlstaff_hire,"contract",yyfplus(__yy_gml_errCheck(ds_map_find_value(__yy__v668.gmlstaff_hire,"contract")),1));ds_map_set(__yy__v668.gmlmap_options,"op_credits_purchased",max(yyfminus(__yy_gml_errCheck(ds_map_find_value(__yy__v668.gmlmap_options,"op_credits_purchased")),__yy_gml_errCheck(gmlcost)),0));gml_Script_s_complete_achievement(__yy__v668,_inst,"ACH_COACHEXTEND");if(yyfgreaterequal(ds_map_find_value(__yy__v668.gmlstaff_hire, "rating"),10)){{if(yyfequal(ds_map_find_value(__yy__v668.gmlstaff_hire,"position"),101)){gml_Script_s_complete_achievement(__yy__v668,_inst,"ACH_HIRE_DF5");}else {gml_Script_s_complete_achievement(__yy__v668,_inst,"ACH_HIRE_OF5");};};};room_goto(YYASSET_REF(0x03000009));};};}}};}}function gml_GlobalScript_btn_response_clearfreeagents(_inst,_other){(_inst.gmlbtn_response_clearfreeagents=__yy_method(_inst,gml_Script_btn_response_clearfreeagents));}function gml_Script_btn_response_clearfreeagents(_inst, _other){{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_clear_freeagents(_inst,_other);room_goto(YYASSET_REF(0x0300000E));}}function gml_GlobalScript_btn_response_rest_player_yes(_inst,_other){(_inst.gmlbtn_response_rest_player_yes=__yy_method(_inst,gml_Script_btn_response_rest_player_yes));}function gml_Script_btn_response_rest_player_yes(_inst,_other){{{var __yy__v669=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v670 in __yy__v669){if(!__yy__v669.hasOwnProperty(__yy__v670))continue;var __yy__v671=__yy__v669[__yy__v670]; {ds_map_set(__yy__v671.gmlplayer_profile,"resting",true);if(yyfless(ds_map_find_value(__yy__v671.gmlplayer_profile,"condition"),40)){ds_map_set(__yy__v671.gmlplayer_profile,"attitude",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(__yy__v671.gmlplayer_profile,"attitude")),15),1,100));};}}};room_goto(YYASSET_REF(0x03000016));}}function gml_GlobalScript_btn_response_cointoss_kick(_inst,_other){(_inst.gmlbtn_response_cointoss_kick=__yy_method(_inst,gml_Script_btn_response_cointoss_kick));}function gml_Script_btn_response_cointoss_kick(_inst, _other){{yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpossession=yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlhuman_team;yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlcomm_stage=0;gml_Script_s_msg_clear(_inst,_other);}}function gml_GlobalScript_btn_response_cointoss_receive(_inst,_other){(_inst.gmlbtn_response_cointoss_receive=__yy_method(_inst,gml_Script_btn_response_cointoss_receive));}function gml_Script_btn_response_cointoss_receive(_inst,_other){{yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpossession=!yyGetBool(yyInst(_inst, _other,YYASSET_REF(0x00000069)).gmlhuman_team);yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlcomm_stage=0;gml_Script_s_msg_clear(_inst,_other);}}function gml_GlobalScript_btn_response_skip_tutorial(_inst,_other){(_inst.gmlbtn_response_skip_tutorial=__yy_method(_inst,gml_Script_btn_response_skip_tutorial));}function gml_Script_btn_response_skip_tutorial(_inst,_other){{gml_Script_slog(_inst,_other,"btn_skip_tutorial");gml_Script_s_msg_clear(_inst,_other);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlintro=0; room_goto(YYASSET_REF(0x0300000E));}}function gml_GlobalScript_btn_response_confirm_new_team(_inst,_other){(_inst.gmlbtn_response_confirm_new_team_loading=__yy_method(_inst,gml_Script_btn_response_confirm_new_team_loading));(_inst.gmlbtn_response_confirm_new_team=__yy_method(_inst,gml_Script_btn_response_confirm_new_team));}function gml_Script_btn_response_confirm_new_team_loading(_inst,_other){{gml_Script_s_loading_start(_inst,_other,kgml_Script_btn_response_confirm_new_team);}}function gml_Script_btn_response_confirm_new_team(_inst, _other){{{var __yy__v672=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v673 in __yy__v672){if(!__yy__v672.hasOwnProperty(__yy__v673))continue;var __yy__v674=__yy__v672[__yy__v673];{var gmloldteamname=ds_map_find_value(__yy__v674.gmlmyteam,"name");var gmloldteamid=__yy__v674.gmlmyteam_id;ds_map_set(__yy__v674.gmlmyteam,"defense",gml_Script_s_get_team_defense(__yy__v674,_inst,__yy__v674.gmlmyteam,false));ds_map_set(__yy__v674.gmlmyteam,"offense",gml_Script_s_get_team_offense(__yy__v674,_inst,__yy__v674.gmlmyteam, false));gml_Script_s_create_new_roster_cut_old_roster(__yy__v674,_inst);__yy__v674.gmlmyteam=__yy__v674.gmlnewteam;__yy__v674.gmlnewteam=(-4);__yy__v674.gmlmyteam_id=real(ds_map_find_value(__yy__v674.gmlmyteam,"uid"));__yy__v674.gmlmyconference=real(ds_map_find_value(__yy__v674.gmlmyteam,"conference"));__yy__v674.gmlmydivision=real(ds_map_find_value(__yy__v674.gmlmyteam,"division"));__yy__v674.gmlfacility_stadium=1;__yy__v674.gmlfacility_training=1;__yy__v674.gmlfacility_rehab=1;__yy__v674.gmlfans=yyfplus(10, __yy_gml_errCheck(irandom(10)));for(var __yy__v675=0,__yy__v676=yyGetInt32(3);__yy__v675<__yy__v676;__yy__v675++){{var ___sw418___=irandom(3);var ___swc419___=-1;if(yyCompareVal(___sw418___,0,g_GMLMathEpsilon,false)==0){___swc419___=0;}else if(yyCompareVal(___sw418___,1,g_GMLMathEpsilon,false)==0){___swc419___=1;}else if(yyCompareVal(___sw418___,2,g_GMLMathEpsilon,false)==0){___swc419___=2;}else if(yyCompareVal(___sw418___,3,g_GMLMathEpsilon,false)==0){___swc419___=3;}switch(___swc419___){case 0:{(g_yyPrePostObject__=__yy__v674.gmlfacility_stadium, __yy__v674.gmlfacility_stadium=(g_yyPrePostObject__ instanceof Long?__yy__v674.gmlfacility_stadium.add(1):++__yy__v674.gmlfacility_stadium),g_yyPrePostObject__);break;}case 1:{(g_yyPrePostObject__=__yy__v674.gmlfacility_training,__yy__v674.gmlfacility_training=(g_yyPrePostObject__ instanceof Long?__yy__v674.gmlfacility_training.add(1):++__yy__v674.gmlfacility_training),g_yyPrePostObject__);break;}case 2:{(g_yyPrePostObject__=__yy__v674.gmlfacility_rehab,__yy__v674.gmlfacility_rehab=(g_yyPrePostObject__ instanceof Long?__yy__v674.gmlfacility_rehab.add(1):++__yy__v674.gmlfacility_rehab), g_yyPrePostObject__);break;}case 3:{__yy__v674.gmlfans=yyfplus(__yy__v674.gmlfans,10);break;}};}};__yy__v674.gmldraft_picks=__yy_gml_array_check(__yy__v674.gmldraft_picks,2548743315);__yy__v674.gmldraft_picks[__yy_gml_array_check_index_set(0)]=1;__yy__v674.gmldraft_picks[__yy_gml_array_check_index_set(1)]=1;__yy__v674.gmldraft_picks[__yy_gml_array_check_index_set(2)]=1;__yy__v674.gmlfacility_upgraded_stadium=0;__yy__v674.gmlfacility_upgraded_training=0;__yy__v674.gmlfacility_upgraded_rehab=0;if(yyGetBool(gml_Script_s_is_co_mode(__yy__v674, _inst))){{gml_Script_s_refresh_strings(__yy__v674,_inst);};};gml_Script_s_create_new_roster_newteam(__yy__v674,_inst);gml_Script_s_create_new_stafflist(__yy__v674,_inst);gml_Script_s_set_team_morale(__yy__v674,_inst,15,100);var gmlmsg=gml_Script_s_str(__yy__v674,_inst,yyfplus("news_NewJob",__yy_gml_errCheck(string(yyfplus(1,__yy_gml_errCheck(irandom(2)))))));if(yyfequal(__yy__v674.gmlmyteam_id,__yy__v674.gmlfavourite_team_id)){gmlmsg=yyfplus(gmlmsg,yyfplus("##",__yy_gml_errCheck(gml_Script_s_str(__yy__v674, _inst,yyfplus("news_FavoriteTeam",__yy_gml_errCheck(string(yyfplus(1,__yy_gml_errCheck(irandom(2))))))))));};gmlmsg=string_replace_all(gmlmsg,"$oldteamname",gmloldteamname);gmlmsg=string_replace_all(gmlmsg,"$newteamname",ds_map_find_value(__yy__v674.gmlmyteam,"name"));gmlmsg=string_replace_all(gmlmsg,"$yourname",yyfplus(yyfplus(__yy_gml_errCheck(__yy__v674.gmlfname)," "),__yy_gml_errCheck(__yy__v674.gmllname)));gmlmsg=string_replace_all(gmlmsg,"$yourlastname",__yy__v674.gmllname);gmlmsg=string_hash_to_newline(gmlmsg); gml_Script_s_add_news(__yy__v674,_inst,gmlmsg);gml_Script_s_complete_achievement(__yy__v674,_inst,"ACH_TEAMS2");gml_Script_s_start_new_season(__yy__v674,_inst,true,gmloldteamid);}}};}}function gml_GlobalScript_s_store_cant_afford(_inst,_other){(_inst.gmls_store_cant_afford=__yy_method(_inst,gml_Script_s_store_cant_afford));}function gml_Script_s_store_cant_afford(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);room_goto(YYASSET_REF(0x03000008));}}function gml_GlobalScript_s_tip_continue(_inst,_other){ (_inst.gmls_tip_continue=__yy_method(_inst,gml_Script_s_tip_continue));}function gml_Script_s_tip_continue(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_play(_inst,_other,1);}}function gml_GlobalScript_s_qb_mode_auto_xp(_inst,_other){(_inst.gmls_qb_mode_auto_xp=__yy_method(_inst,gml_Script_s_qb_mode_auto_xp));}function gml_Script_s_qb_mode_auto_xp(_inst,_other,argument0,argument1,argument2,argument3){{while(yyGetBool(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(argument0),__yy_gml_errCheck(argument1)), __yy_gml_errCheck(argument2)),__yy_gml_errCheck(argument3)))){{var ___sw422___=irandom(3);var ___swc423___=-1;if(yyCompareVal(___sw422___,0,g_GMLMathEpsilon,false)==0){___swc423___=0;}else if(yyCompareVal(___sw422___,1,g_GMLMathEpsilon,false)==0){___swc423___=1;}else if(yyCompareVal(___sw422___,2,g_GMLMathEpsilon,false)==0){___swc423___=2;}else if(yyCompareVal(___sw422___,3,g_GMLMathEpsilon,false)==0){___swc423___=3;}switch(___swc423___){case 0:{if(yyGetBool(argument0)){{gml_Script_btn_click_AddSkill(_inst, _other);return;};};break;}case 1:{if(yyGetBool(argument1)){{gml_Script_btn_click_AddSpeed(_inst,_other);return;};};break;}case 2:{if(yyGetBool(argument2)){{gml_Script_btn_click_AddStrength(_inst,_other);return;};};break;}case 3:{if(yyGetBool(argument3)){{gml_Script_btn_click_AddStamina(_inst,_other);return;};};break;}};}};}}function gml_GlobalScript_s_confirm_staff_hire_reset(_inst,_other){(_inst.gmls_confirm_staff_hire_reset=__yy_method(_inst,gml_Script_s_confirm_staff_hire_reset));}function gml_Script_s_confirm_staff_hire_reset(_inst, _other){{{var __yy__v677=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v678 in __yy__v677){if(!__yy__v677.hasOwnProperty(__yy__v678))continue;var __yy__v679=__yy__v677[__yy__v678];{gml_Script_s_msg_clear(__yy__v679,_inst);__yy__v679.gmlstaff_reset_week=__yy__v679.gmlweek;__yy__v679.gmlcoach_credit=yyfminus(__yy__v679.gmlcoach_credit,5);if(yyfless(__yy__v679.gmlcoach_credit,0)){__yy__v679.gmlcoach_credit=0;};ds_map_set(__yy__v679.gmlmap_options,"op_credits_purchased",max(yyfminus(__yy_gml_errCheck(ds_map_find_value(__yy__v679.gmlmap_options, "op_credits_purchased")),5),0));gml_Script_s_reset_staff_hire_list(__yy__v679,_inst,true);room_goto(YYASSET_REF(0x0300001F));gml_Script_s_savegame(__yy__v679,_inst);}}};}}function gml_GlobalScript_s_confirm_freeagent_hire_reset(_inst,_other){(_inst.gmls_confirm_freeagent_hire_reset=__yy_method(_inst,gml_Script_s_confirm_freeagent_hire_reset));}function gml_Script_s_confirm_freeagent_hire_reset(_inst,_other){{{var __yy__v680=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v681 in __yy__v680){if(!__yy__v680.hasOwnProperty(__yy__v681))continue; var __yy__v682=__yy__v680[__yy__v681];{gml_Script_s_msg_clear(__yy__v682,_inst);__yy__v682.gmlfreeagent_reset_week=__yy__v682.gmlweek;__yy__v682.gmlcoach_credit=yyfminus(__yy__v682.gmlcoach_credit,5);if(yyfless(__yy__v682.gmlcoach_credit,0)){__yy__v682.gmlcoach_credit=0;};ds_map_set(__yy__v682.gmlmap_options,"op_credits_purchased",max(yyfminus(__yy_gml_errCheck(ds_map_find_value(__yy__v682.gmlmap_options,"op_credits_purchased")),5),0));yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfa_page=1;gml_Script_s_clear_storelist(__yy__v682, _inst);room_goto(YYASSET_REF(0x03000008));}}};}}function gml_GlobalScript_btn_response_deletegame1(_inst,_other){(_inst.gmlbtn_response_deletegame1=__yy_method(_inst,gml_Script_btn_response_deletegame1));}function gml_Script_btn_response_deletegame1(_inst,_other){{file_delete(global.gmlg_savename1);file_delete("uniforms_custom_1.txt");gml_Script_s_custom_data_file_delete(_inst,_other,1);gml_Script_s_nx_commit(_inst,_other);room_goto(YYASSET_REF(0x03000000));}}function gml_GlobalScript_btn_response_deletegame2(_inst, _other){(_inst.gmlbtn_response_deletegame2=__yy_method(_inst,gml_Script_btn_response_deletegame2));}function gml_Script_btn_response_deletegame2(_inst,_other){{file_delete(global.gmlg_savename2);file_delete("uniforms_custom_2.txt");gml_Script_s_custom_data_file_delete(_inst,_other,2);gml_Script_s_nx_commit(_inst,_other);room_goto(YYASSET_REF(0x03000000));}}function gml_GlobalScript_btn_response_deletegame3(_inst,_other){(_inst.gmlbtn_response_deletegame3=__yy_method(_inst,gml_Script_btn_response_deletegame3)); }function gml_Script_btn_response_deletegame3(_inst,_other){{file_delete(global.gmlg_savename3);file_delete("uniforms_custom_3.txt");gml_Script_s_custom_data_file_delete(_inst,_other,3);gml_Script_s_nx_commit(_inst,_other);room_goto(YYASSET_REF(0x03000000));}}function gml_GlobalScript_btn_response_deletegame4(_inst,_other){(_inst.gmlbtn_response_deletegame4=__yy_method(_inst,gml_Script_btn_response_deletegame4));}function gml_Script_btn_response_deletegame4(_inst,_other){{file_delete(global.gmlg_savename4); file_delete("uniforms_custom_4.txt");gml_Script_s_custom_data_file_delete(_inst,_other,4);gml_Script_s_nx_commit(_inst,_other);room_goto(YYASSET_REF(0x03000000));}}function gml_GlobalScript_btn_response_deletegame5(_inst,_other){(_inst.gmlbtn_response_deletegame5=__yy_method(_inst,gml_Script_btn_response_deletegame5));}function gml_Script_btn_response_deletegame5(_inst,_other){{file_delete(global.gmlg_savename5);file_delete("uniforms_custom_5.txt");gml_Script_s_custom_data_file_delete(_inst,_other, 5);gml_Script_s_nx_commit(_inst,_other);room_goto(YYASSET_REF(0x03000000));}}function gml_GlobalScript_s_simming_action(_inst,_other){(_inst.gmls_simming_action=__yy_method(_inst,gml_Script_s_simming_action));}function gml_Script_s_simming_action(_inst,_other){{if((yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode))&&(yyGetBool(yyfgreater(gml_Script_s_qb_mode_benched_status(_inst,_other),0)))){return true;}else {return yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsim_action;};}}function gml_GlobalScript_btn_response_hof_select(_inst, _other){(_inst.gmlbtn_response_hof_select=__yy_method(_inst,gml_Script_btn_response_hof_select));}function gml_Script_btn_response_hof_select(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"hof",false);var gmlpos=ds_list_find_index(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhoflist,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile);if(yyfgreater(gmlpos,(-1))){{ds_list_delete(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhoflist, gmlpos);ds_map_destroy(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile=(-1);};};room_goto(YYASSET_REF(0x0300000C));}}function gml_GlobalScript_btn_response_records_reset(_inst,_other){(_inst.gmlbtn_response_records_reset=__yy_method(_inst,gml_Script_btn_response_records_reset));}function gml_Script_btn_response_records_reset(_inst,_other){{{var __yy__v683=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v684 in __yy__v683){ if(!__yy__v683.hasOwnProperty(__yy__v684))continue;var __yy__v685=__yy__v683[__yy__v684];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v685.gmlrecords));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_map_destroy(ds_list_find_value(__yy__v685.gmlrecords,gmli));ds_list_set(__yy__v685.gmlrecords,gmli,(-1));}};ds_list_clear(__yy__v685.gmlrecords);ds_list_destroy(__yy__v685.gmlrecords);__yy__v685.gmlrecords=(-1);__yy__v685.gmlrecords=gml_Script_s_load_map_file(__yy__v685, _inst,"PlayerRecords.txt");__yy__v685.gmlplayer_record_msg_done=true;}}};gml_Script_s_msg_clear(_inst,_other);room_goto(YYASSET_REF(0x0300000D));}}function gml_GlobalScript_btn_match_kick(_inst,_other){(_inst.gmlbtn_match_kick=__yy_method(_inst,gml_Script_btn_match_kick));(_inst.gmlbtn_match_goforit=__yy_method(_inst,gml_Script_btn_match_goforit));(_inst.gmlbtn_match_gofor1pt=__yy_method(_inst,gml_Script_btn_match_gofor1pt));}function gml_Script_btn_match_kick(_inst,_other){{mouse_clear(1);if(yyGetBool(ds_map_find_value(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))){{audio_play_sound(YYASSET_REF(0x02000006),1,false);audio_play_sound(YYASSET_REF(0x02000010),1,false);};};{var __yy__v686=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v687 in __yy__v686){if(!__yy__v686.hasOwnProperty(__yy__v687))continue;var __yy__v688=__yy__v686[__yy__v687];{gml_Script_s_update_timeouts(__yy__v688,_inst,(-1));if(yyfgreater(__yy__v688.gmlscrimmage,0)){gml_Script_btn_response_fg_yes(__yy__v688,_inst);}else {gml_Script_btn_response_punt_yes(__yy__v688, _inst);};}}};}}function gml_Script_btn_match_goforit(_inst,_other){{mouse_clear(1);if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))){{audio_play_sound(YYASSET_REF(0x02000006),1,false);audio_play_sound(YYASSET_REF(0x02000010),1,false);};};{var __yy__v689=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v690 in __yy__v689){if(!__yy__v689.hasOwnProperty(__yy__v690))continue;var __yy__v691=__yy__v689[__yy__v690];{gml_Script_s_update_timeouts(__yy__v691, _inst,(-1));gml_Script_s_set_up_play(__yy__v691,_inst,true);}}};}}function gml_Script_btn_match_gofor1pt(_inst,_other){{mouse_clear(1);if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))){{audio_play_sound(YYASSET_REF(0x02000006),1,false);audio_play_sound(YYASSET_REF(0x02000010),1,false);};};{var __yy__v692=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v693 in __yy__v692){if(!__yy__v692.hasOwnProperty(__yy__v693))continue;var __yy__v694=__yy__v692[__yy__v693]; {gml_Script_s_update_timeouts(__yy__v694,_inst,(-1));gml_Script_s_set_up_fieldgoal(__yy__v694,_inst,2);}}};}}function gml_GlobalScript_s_do_prematch_dilemma(_inst,_other){(_inst.gmls_do_prematch_dilemma=__yy_method(_inst,gml_Script_s_do_prematch_dilemma));(_inst.gmls_create_dilemma_news=__yy_method(_inst,gml_Script_s_create_dilemma_news));(_inst.gmls_clear_msg_and_back=__yy_method(_inst,gml_Script_s_clear_msg_and_back));(_inst.gmls_get_standard_dilemmas=__yy_method(_inst,gml_Script_s_get_standard_dilemmas)); (_inst.gmls_dilemma_defend_player_cost=__yy_method(_inst,gml_Script_s_dilemma_defend_player_cost));(_inst.gmls_can_afford_dilemma_cc=__yy_method(_inst,gml_Script_s_can_afford_dilemma_cc));(_inst.gmls_get_college_dilemmas=__yy_method(_inst,gml_Script_s_get_college_dilemmas));}function gml_Script_s_do_prematch_dilemma(_inst,_other,argument0){{gml_Script_slog(_inst,_other,yyfplus(yyfplus("s_do_prematch_dilemma START (chained count: ",__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlprematch_dilemma_shown_count))), ")"));{var __yy__v695=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v696 in __yy__v695){if(!__yy__v695.hasOwnProperty(__yy__v696))continue;var __yy__v697=__yy__v695[__yy__v696];{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlprematch_dilemma_done=true;if(!yyGetBool(gml_Script_s_get_human_fixture_next(__yy__v697,_inst))){return false;};var gmlmsg="";var gmlpmap=gml_Script_s_get_random_player(__yy__v697,_inst,true,__yy__v697.gmlprematch_dilemma_chosen_players);var gmlsmap=gml_Script_s_get_staff(__yy__v697, _inst,101);var gmldilemmas=ds_list_create();if(yyfequal(gmlpmap,(-4))){{gml_Script_slog(__yy__v697,_inst,yyfplus(yyfplus(yyfplus(yyfplus("Invalid PMAP (likely we've run out of fresh players in test/chained dilemmas) Discarded/Roster: [",__yy_gml_errCheck(string(ds_list_size(__yy__v697.gmlprematch_dilemma_chosen_players)))),"/"),__yy_gml_errCheck(string(ds_list_size(__yy__v697.gmlroster)))),"] - Refreshing discard pile and picking new."));ds_list_clear(__yy__v697.gmlprematch_dilemma_chosen_players); gmlpmap=gml_Script_s_get_random_player(__yy__v697,_inst,true,__yy__v697.gmlprematch_dilemma_chosen_players);};};if(yyfequal(gmlpmap,(-4))){{gml_Script_slog2(__yy__v697,_inst,"ERROR! Invalid PMAP! - Aborting s_do_prematch_dilemma");return false;};};gml_Script_slog(__yy__v697,_inst,yyfplus(yyfplus(yyfplus("s_do_prematch_dilemma START chosen player[",__yy_gml_errCheck(ds_map_find_value(gmlpmap,"fname"))),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))),"]"));if((yyGetBool((yyGetBool(irandom(2)))&&(yyGetBool(yyfgreater(__yy__v697.gmlyear, 1)))))||(yyGetBool(argument0))){{ds_list_add(__yy__v697.gmlprematch_dilemma_chosen_players,gmlpmap);if(yyGetBool(gml_Script_s_is_co_mode(__yy__v697,_inst))){{gml_Script_s_get_college_dilemmas(__yy__v697,_inst,gmlpmap,gmlsmap,gmldilemmas);};}else {{gml_Script_s_get_standard_dilemmas(__yy__v697,_inst,gmlpmap,gmlsmap,gmldilemmas);};};var gmli=0;for(;yyfless(gmli,ds_list_size(gmldilemmas));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gml_Script_slog(__yy__v697, _inst,yyfplus("List: ",__yy_gml_errCheck(ds_list_find_value(gmldilemmas,gmli))));}};ds_list_shuffle(gmldilemmas);gmlmsg=gml_Script_s_choose_dilemma(__yy__v697,_inst,ds_list_find_value(gmldilemmas,0));gml_Script_slog(__yy__v697,_inst,yyfplus("s_do_prematch_dilemma: ",__yy_gml_errCheck(gmlmsg)));};};if(yyGetBool(string_count("dilemma_",gmlmsg))){{ds_map_destroy(__yy__v697.gmlmap_dilemma);__yy__v697.gmlmap_dilemma=(-1);__yy__v697.gmlmap_dilemma=gml_Script_s_parse_dilemma(__yy__v697,_inst,gmlmsg,gmlpmap, "ui_Dilemma");yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile=gmlpmap;gml_Script_s_create_dilemma(__yy__v697,_inst,__yy__v697.gmlmap_dilemma);ds_list_destroy(gmldilemmas);gmldilemmas=(-1);return true;};}else {if(yyGetBool(string_count("news_",gmlmsg))){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlnews_dilemma=gmlmsg;yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile=gmlpmap;gml_Script_s_create_dilemma_news(__yy__v697,_inst);ds_list_destroy(gmldilemmas);gmldilemmas=(-1); return true;};};};ds_list_destroy(gmldilemmas);gmldilemmas=(-1);return false;}}};}}function gml_Script_s_create_dilemma_news(_inst,_other){{var gmlmsg=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlnews_dilemma;var gmlpmap=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile;if(yyGetBool(string_count("news_CharityWork",gmlmsg))){{gmlmsg=gml_Script_s_parse_player_message(_inst,_other,gml_Script_s_str(_inst,_other,gmlmsg),gmlpmap);gml_Script_s_meter_change(_inst,_other,1,yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlfans,(-4),gmlmsg);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfans=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfans,2);};}else {if(yyGetBool(string_count("news_playerleaves_toxic",gmlmsg))){{gmlmsg=gml_Script_s_parse_player_message(_inst,_other,gml_Script_s_str(_inst,_other,gmlmsg),gmlpmap);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlprofile_back_to=2;gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_News"),gmlmsg,gml_Script_s_str(_inst, _other,"ui_Continue"),"",kgml_Script_s_cut_player_end_toxic_max,"",global.gmlc_background,1,gmlpmap);};}else {if(yyGetBool(string_count("news_playerleaves_party",gmlmsg))){{gmlmsg=gml_Script_s_parse_player_message(_inst,_other,gml_Script_s_str(_inst,_other,gmlmsg),gmlpmap);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlprofile_back_to=2;gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_News"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_cut_player_end_party_max, "",global.gmlc_background,1,gmlpmap);};}else {if(yyGetBool(string_count("news_playerleaves_gpa",gmlmsg))){{gmlmsg=gml_Script_s_parse_player_message(_inst,_other,gml_Script_s_str(_inst,_other,gmlmsg),gmlpmap);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlprofile_back_to=2;gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_News"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_cut_player_end_gpa,"",global.gmlc_background,1,gmlpmap);};}else {{gmlmsg=gml_Script_s_parse_player_message(_inst, _other,gml_Script_s_str(_inst,_other,gmlmsg),gmlpmap);gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_News"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_clear_msg_and_back,"",global.gmlc_background,1);};};};};};}}function gml_Script_s_clear_msg_and_back(_inst,_other){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlprofile_back_to=(-1);gml_Script_s_msg_clear(_inst,_other);}}function gml_Script_s_get_standard_dilemmas(_inst,_other,argument0,argument1, argument2){{gml_Script_slog(_inst,_other," s_do_prematch_dilemma choosing standard dilemmas");{var __yy__v698=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v699 in __yy__v698){if(!__yy__v698.hasOwnProperty(__yy__v699))continue;var __yy__v700=__yy__v698[__yy__v699];{ds_list_add(argument2,"dilemma_Owner");if(yyGetBool(argument0)){{if(yyGetBool(gml_Script_s_is_offensive_player(__yy__v700,_inst,argument0))){argument1=gml_Script_s_get_staff(__yy__v700,_inst,102);};if((yyGetBool(!yyGetBool(gml_Script_s_player_benched(__yy__v700, _inst,argument0))))&&(yyGetBool(yyfgreater(ds_map_find_value(argument0,"condition"),0)))&&(yyGetBool(yyfless(ds_map_find_value(argument0,"condition"),20)))&&(yyGetBool(yyfless(__yy__v700.gmlweek,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular)))){ds_list_add(argument2,"dilemma_RestPlayer");};if(yyflessequal(ds_map_find_value(argument0,"attitude"),30)){ds_list_add(argument2,"dilemma_toxic");};if((yyGetBool(argument1))&&(yyGetBool((yyGetBool(yyflessequal(ds_map_find_value(argument0, "attitude"),30)))||(yyGetBool(yyflessequal(ds_map_find_value(argument1,"attitude"),30)))))){ds_list_add(argument2,"dilemma_Coach_BustUp");};if(yyflessequal(ds_map_find_value(argument0,"attitude"),60)){ds_list_add(argument2,"dilemma_late");};if(yyfequal(ds_map_find_value(argument0,"age"),gml_Script_s_rookie_age_internal(__yy__v700,_inst))){ds_list_add(argument2,"dilemma_rookie");};if((yyGetBool(yyfgreater(ds_map_find_value(argument0,"attitude"),90)))&&(yyGetBool(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfans, 98)))){ds_list_add(argument2,"news_CharityWork");}else {ds_list_add(argument2,"dilemma_random");};};};}}};}}function gml_Script_s_dilemma_defend_player_cost(_inst,_other,argument0,argument1){{var gmlcc_cost=(-1);if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{if(yyGetBool(string_pos("dilemma_leaverescue_gpa",argument0))){{gmlcc_cost=gml_Script_s_str_real(_inst,_other,"dlr_gpa_cost");};};if(yyGetBool(string_pos("dilemma_leaverescue_toxic",argument0))){{if(yyfequal(ds_map_find_value(argument1,"toxic_dilemmas"), 1)){{gmlcc_cost=gml_Script_s_str_real(_inst,_other,"dlr_toxic_cost_2nd");};}else {if(yyfequal(ds_map_find_value(argument1,"toxic_dilemmas"),2)){{gmlcc_cost=gml_Script_s_str_real(_inst,_other,"dlr_toxic_cost_3rd");};}else {{gmlcc_cost=gml_Script_s_str_real(_inst,_other,"dlr_toxic_cost");};};};};};if(yyGetBool(string_pos("dilemma_leaverescue_party",argument0))){{if(yyfequal(ds_map_find_value(argument1,"party_dilemmas"),1)){{gmlcc_cost=gml_Script_s_str_real(_inst,_other,"dlr_party_cost_2nd");};}else { if(yyfequal(ds_map_find_value(argument1,"party_dilemmas"),2)){{gmlcc_cost=gml_Script_s_str_real(_inst,_other,"dlr_party_cost_3rd");};}else {{gmlcc_cost=gml_Script_s_str_real(_inst,_other,"dlr_party_cost");};};};};};};};return gmlcc_cost;}}function gml_Script_s_can_afford_dilemma_cc(_inst,_other,argument0,argument1){{var gmlcc_cost=gml_Script_s_dilemma_defend_player_cost(_inst,_other,argument0,argument1);if(yyfless(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit), __yy_gml_errCheck(gmlcc_cost)),0)){{return false;};};return true;}}function gml_Script_s_get_college_dilemmas(_inst,_other,argument0,argument1,argument2){{gml_Script_slog(_inst,_other," s_do_prematch_dilemma choosing college dilemmas");{var __yy__v701=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v702 in __yy__v701){if(!__yy__v701.hasOwnProperty(__yy__v702))continue;var __yy__v703=__yy__v701[__yy__v702];{ds_list_add(argument2,"dilemma_Owner");ds_list_add(argument2,"dilemma_hobby");var gmlleaveRescueAllowed=true; if(yyGetBool(global.gmlbrowser)){{gmlleaveRescueAllowed=false;};};if(yyGetBool(argument0)){{if(yyGetBool(gml_Script_s_is_offensive_player(__yy__v703,_inst,argument0))){argument1=gml_Script_s_get_staff(__yy__v703,_inst,102);};if((yyGetBool(!yyGetBool(gml_Script_s_player_benched(__yy__v703,_inst,argument0))))&&(yyGetBool(yyfgreater(ds_map_find_value(argument0,"condition"),0)))&&(yyGetBool(yyfless(ds_map_find_value(argument0,"condition"),20)))&&(yyGetBool(yyfless(__yy__v703.gmlweek,yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmllast_week_regular)))){ds_list_add(argument2,"dilemma_RestPlayer");};if(yyflessequal(ds_map_find_value(argument0,"attitude"),30)){{var gmlisLeaveRescue=false;var gmlcanAfford=gml_Script_s_can_afford_dilemma_cc(__yy__v703,_inst,"dilemma_leaverescue_toxic",argument0);if((yyGetBool(gmlleaveRescueAllowed))||(yyGetBool(gmlcanAfford))){{if(yyfequal(ds_map_find_value(argument0,"toxic_dilemmas"),0)){{gmlisLeaveRescue=false;};}else {if(yyfequal(ds_map_find_value(argument0,"toxic_dilemmas"), 1)){{gmlisLeaveRescue=yyfless(random(1),0.3);};}else {if(yyfequal(ds_map_find_value(argument0,"toxic_dilemmas"),2)){{gmlisLeaveRescue=yyfless(random(1),0.6);};}else {{gmlisLeaveRescue=yyfless(random(1),0.9);};};};};};}else {{if(yyfequal(ds_map_find_value(argument0,"toxic_dilemmas"),0)){{gmlisLeaveRescue=false;};}else {if(yyfequal(ds_map_find_value(argument0,"toxic_dilemmas"),1)){{gmlisLeaveRescue=yyfless(random(1),0);};}else {if(yyfequal(ds_map_find_value(argument0,"toxic_dilemmas"),2)){{gmlisLeaveRescue=yyfless(random(1), 0.3);};}else {{gmlisLeaveRescue=yyfless(random(1),0.4);};};};};};};if((yyGetBool(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear,3)))&&(yyGetBool(1))){{gmlisLeaveRescue=false;};};if(yyGetBool(gmlisLeaveRescue)){{if(yyGetBool(gmlleaveRescueAllowed)){{ds_list_add(argument2,"dilemma_leaverescue_toxic");};}else {{ds_list_add(argument2,"news_playerleaves_toxic");};};};}else {{ds_list_add(argument2,"dilemma_toxic");};};};};if(yyflessequal(ds_map_find_value(argument0,"attitude"),60)){{if(yyfgreaterequal(ds_map_find_value(argument0, "party_meter"),60)){{ds_list_add(argument2,"dilemma_hangover_party");};}else {{ds_list_add(argument2,"dilemma_late");};};};};if(yyfequal(ds_map_find_value(argument0,"age"),gml_Script_s_rookie_age_internal(__yy__v703,_inst))){ds_list_add(argument2,"dilemma_rookie");};if((yyGetBool(yyfgreater(ds_map_find_value(argument0,"attitude"),90)))&&(yyGetBool(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfans,98)))){{ds_list_add(argument2,"news_CharityWork");};}else {{ds_list_add(argument2,"dilemma_random"); };};if(yyfequal(ds_map_find_value(argument0,"suspended"),1)){{if(yyGetBool(gmlleaveRescueAllowed)){{ds_list_add(argument2,"dilemma_leaverescue_gpa");};}else {{ds_list_add(argument2,"news_playerleaves_gpa");};};};};if((yyGetBool(yyfgreaterequal(ds_map_find_value(argument0,"percent_grade"),68)))&&(yyGetBool(yyflessequal(ds_map_find_value(argument0,"percent_grade"),82)))){{ds_list_add(argument2,"dilemma_study");};};if(yyfgreaterequal(ds_map_find_value(argument0,"party_meter"),85)){{ds_list_clear(argument2); var gmlisLeaveRescue=false;var gmlcanAfford=gml_Script_s_can_afford_dilemma_cc(__yy__v703,_inst,"dilemma_leaverescue_party",argument0);if((yyGetBool(gmlleaveRescueAllowed))||(yyGetBool(gmlcanAfford))){{if(yyfequal(ds_map_find_value(argument0,"party_dilemmas"),0)){{gmlisLeaveRescue=false;};}else {if(yyfequal(ds_map_find_value(argument0,"party_dilemmas"),1)){{gmlisLeaveRescue=yyfless(random(1),0.3);};}else {if(yyfequal(ds_map_find_value(argument0,"party_dilemmas"),2)){{gmlisLeaveRescue=yyfless(random(1), 0.6);};}else {{gmlisLeaveRescue=yyfless(random(1),0.9);};};};};};}else {{if(yyfequal(ds_map_find_value(argument0,"party_dilemmas"),0)){{gmlisLeaveRescue=false;};}else {if(yyfequal(ds_map_find_value(argument0,"party_dilemmas"),1)){{gmlisLeaveRescue=yyfless(random(1),0);};}else {if(yyfequal(ds_map_find_value(argument0,"party_dilemmas"),2)){{gmlisLeaveRescue=yyfless(random(1),0.2);};}else {{gmlisLeaveRescue=yyfless(random(1),0.3);};};};};};};if((yyGetBool(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear, 3)))&&(yyGetBool(1))){{gmlisLeaveRescue=false;};};if(yyGetBool(gmlisLeaveRescue)){{if(yyGetBool(gmlleaveRescueAllowed)){{ds_list_add(argument2,"dilemma_leaverescue_party");};}else {{ds_list_add(argument2,"news_playerleaves_party");};};};}else {{ds_list_add(argument2,"dilemma_party");};};};};};};}}};}}function gml_GlobalScript_s_do_postmatch_dilemma(_inst,_other){(_inst.gmls_do_postmatch_dilemma=__yy_method(_inst,gml_Script_s_do_postmatch_dilemma));}function gml_Script_s_do_postmatch_dilemma(_inst,_other){ {{var __yy__v704=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v705 in __yy__v704){if(!__yy__v704.hasOwnProperty(__yy__v705))continue;var __yy__v706=__yy__v704[__yy__v705];{if((yyGetBool(__yy__v706.gmlqb_mode))&&(yyGetBool(gml_Script_s_qb_mode_benched_status(__yy__v706,_inst)))){{gml_Script_s_play(__yy__v706,_inst,1);return;};};var gmlpmap=gml_Script_s_get_random_player(__yy__v706,_inst,false);var gmlmsg="";var gmlfixture=gml_Script_s_get_human_fixture_by_week(__yy__v706,_inst,__yy__v706.gmlweek); if((yyGetBool(yyfgreater(__yy__v706.gmlweek,4)))&&(yyGetBool(yyfless(__yy__v706.gmlweek,gml_Script_s_get_week_superbowl(__yy__v706,_inst))))&&(yyGetBool(gmlpmap))&&(yyGetBool(yyflessequal(ds_map_find_value(gmlpmap,"attitude"),15)))){gmlmsg=gml_Script_s_choose_dilemma(__yy__v706,_inst,"postmatch_toxic");}else {if((yyGetBool(gmlpmap))&&(yyGetBool(yyfgreater(gml_Script_s_get_match_rating(__yy__v706,_inst,gmlpmap),7)))){gmlmsg=gml_Script_s_choose_dilemma(__yy__v706,_inst,"postmatch_performance_good"); }else {if((yyGetBool(yyfless(__yy__v706.gmlweek,gml_Script_s_get_week_superbowl(__yy__v706,_inst))))&&(yyGetBool(gmlpmap))&&(yyGetBool(yyfless(gml_Script_s_get_match_rating(__yy__v706,_inst,gmlpmap),4)))){gmlmsg=gml_Script_s_choose_dilemma(__yy__v706,_inst,"postmatch_performance_bad");}else {if((yyGetBool(gmlpmap))&&(yyGetBool(!yyGetBool(irandom(4))))){{if(yyGetBool(irandom(4))){gmlmsg=gml_Script_s_choose_dilemma(__yy__v706,_inst,"postmatch_question_player");}else {{gmlpmap=gml_Script_s_get_random_coach(__yy__v706, _inst);gmlmsg=gml_Script_s_choose_dilemma(__yy__v706,_inst,"postmatch_question_staff");};};};}else {if(yyfequal(ds_map_find_value(gmlfixture,"human_win"),"loss")){gmlmsg=gml_Script_s_choose_dilemma(__yy__v706,_inst,"postmatch_loss");}else {if(yyfequal(ds_map_find_value(gmlfixture,"human_win"),"win")){gmlmsg=gml_Script_s_choose_dilemma(__yy__v706,_inst,"postmatch_win");}else {if(yyGetBool(gmlpmap)){gmlmsg=gml_Script_s_choose_dilemma(__yy__v706,_inst,"postmatch_question_player");};};};};};};};if(yyfnotequal(gmlmsg, "")){{ds_map_clear(__yy__v706.gmlmap_dilemma);__yy__v706.gmlmap_dilemma=gml_Script_s_parse_dilemma(__yy__v706,_inst,gmlmsg,gmlpmap,"ui_PressInterview");yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile=gmlpmap;gml_Script_s_create_dilemma(__yy__v706,_inst,__yy__v706.gmlmap_dilemma);};}else {{gml_Script_s_play(__yy__v706,_inst,1);};};}}};}}function gml_GlobalScript_s_parse_dilemma(_inst,_other,argument0,argument1,argument2){(_inst.gmls_parse_dilemma=__yy_method(_inst,gml_Script_s_parse_dilemma)); }function gml_Script_s_parse_dilemma(_inst,_other,argument0,argument1,argument2){{var gmlmsg_key=argument0;var gmlmsg=gml_Script_s_str(_inst,_other,argument0);var gmlpmap=argument1;var gmlmap_dilemma=ds_map_create();gml_Script_slog(_inst,_other,gmlmsg);ds_map_set(gmlmap_dilemma,"title",gml_Script_s_str(_inst,_other,argument2));ds_map_set(gmlmap_dilemma,"effect_on1","");ds_map_set(gmlmap_dilemma,"effect_on2","");ds_map_set(gmlmap_dilemma,"msg_key",gmlmsg_key);ds_map_set(gmlmap_dilemma,"cost_amt1",0);ds_map_set(gmlmap_dilemma, "cost_amt2",0);var gmlbtn="1";if(yyGetBool(string_count("-choice_DefendPlayer",gmlmsg))){{var gmlcc_cost=(-1);if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)){{gmlcc_cost=(-3);};};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gmlcc_cost=gml_Script_s_dilemma_defend_player_cost(_inst,_other,gmlmsg_key,gmlpmap);};};ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_DefendPlayer"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ", __yy_gml_errCheck(gmlbtn)),"choice_DefendPlayer");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),gmlcc_cost);ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)?"spr_fans":"spr_credit"));ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"player");gmlmsg=string_replace_all(gmlmsg,"-choice_DefendPlayer","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_PraisePlayer", gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_PraisePlayer"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_PraisePlayer");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),15);ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_attitude");ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"player");gmlmsg=string_replace_all(gmlmsg, "-choice_PraisePlayer","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_CriticisePlayer",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_CriticisePlayer"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_CriticisePlayer");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),(-15));ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_attitude");ds_map_set(gmlmap_dilemma, yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"player");gmlmsg=string_replace_all(gmlmsg,"-choice_CriticisePlayer","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_SideWithPlayer",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_SideWithPlayer"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_SideWithPlayer");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),10);ds_map_set(gmlmap_dilemma, yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_attitude");ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"player");gmlmsg=string_replace_all(gmlmsg,"-choice_SideWithPlayer","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_RestYes",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_RestYes"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_RestYes");ds_map_set(gmlmap_dilemma, yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),15);ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_attitude");ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"player");gmlmsg=string_replace_all(gmlmsg,"-choice_RestYes","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_RestNo",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_RestNo"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ", __yy_gml_errCheck(gmlbtn)),"choice_RestNo");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),(-5));ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_attitude");ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"player");gmlmsg=string_replace_all(gmlmsg,"-choice_RestNo","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_FinePlayer",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst, _other,"choice_FinePlayer"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_FinePlayer");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),(-10));ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_attitude");ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"player");gmlmsg=string_replace_all(gmlmsg,"-choice_FinePlayer","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_IgnoreFine",gmlmsg))){ {ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_IgnoreFine"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_IgnoreFine");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),(-5));ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_attitude");ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"team");gmlmsg=string_replace_all(gmlmsg,"-choice_IgnoreFine", "");gmlbtn="2";};};if(yyGetBool(string_count("-choice_PraiseTeam",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_PraiseTeam"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_PraiseTeam");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),3);ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_attitude");ds_map_set(gmlmap_dilemma,yyfplus("effect_on", __yy_gml_errCheck(gmlbtn)),"team");gmlmsg=string_replace_all(gmlmsg,"-choice_PraiseTeam","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_CriticiseTeam",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_CriticiseTeam"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_CriticiseTeam");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),(-10));ds_map_set(gmlmap_dilemma,yyfplus("cost_img", __yy_gml_errCheck(gmlbtn)),"spr_attitude");ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"team");gmlmsg=string_replace_all(gmlmsg,"-choice_CriticiseTeam","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_FocusTeam",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_FocusTeam"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_FocusTeam");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt", __yy_gml_errCheck(gmlbtn)),300);ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_xp");ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"team");gmlmsg=string_replace_all(gmlmsg,"-choice_FocusTeam","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_MeetTeam",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_MeetTeam"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)), "choice_MeetTeam");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),10);ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_attitude");ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"team");gmlmsg=string_replace_all(gmlmsg,"-choice_MeetTeam","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_PraiseFans",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_PraiseFans")); ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_PraiseFans");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),3);ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_fans");gmlmsg=string_replace_all(gmlmsg,"-choice_PraiseFans","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_CriticiseFans",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_CriticiseFans")); ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_CriticiseFans");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),(-10));ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_fans");gmlmsg=string_replace_all(gmlmsg,"-choice_CriticiseFans","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_FocusMedia",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_FocusMedia")); ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_FocusMedia");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),5);ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_fans");gmlmsg=string_replace_all(gmlmsg,"-choice_FocusMedia","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_MeetMedia",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_MeetMedia")); ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_MeetMedia");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),5);ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_fans");gmlmsg=string_replace_all(gmlmsg,"-choice_MeetMedia","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_PraiseCoaches",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_PraiseCoaches")); ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_PraiseCoaches");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),15);ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_attitude");ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"coaches");gmlmsg=string_replace_all(gmlmsg,"-choice_PraiseCoaches","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_CriticiseCoaches",gmlmsg))){{ds_map_set(gmlmap_dilemma, yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_CriticiseCoaches"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_CriticiseCoaches");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),(-15));ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_attitude");ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"coaches");gmlmsg=string_replace_all(gmlmsg,"-choice_CriticiseCoaches", "");gmlbtn="2";};};if(yyGetBool(string_count("-choice_FocusCoaches",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_FocusCoaches"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_FocusCoaches");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),100);ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_xp");ds_map_set(gmlmap_dilemma,yyfplus("effect_on", __yy_gml_errCheck(gmlbtn)),"coaches");if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)){ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"qb_self");};gmlmsg=string_replace_all(gmlmsg,"-choice_FocusCoaches","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_MeetCoaches",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_MeetCoaches"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)), "choice_MeetCoaches");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),15);ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_attitude");ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"coaches");gmlmsg=string_replace_all(gmlmsg,"-choice_MeetCoaches","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_SideWithCoach",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other, "choice_SideWithCoach"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_SideWithCoach");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),10);ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_attitude");ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"coaches");gmlmsg=string_replace_all(gmlmsg,"-choice_SideWithCoach","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_CriticiseSelf",gmlmsg))){ {ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_CriticiseSelf"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_CriticiseSelf");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)?(-3):(-1)));ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)?"spr_fans":"spr_credit")); ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"self");gmlmsg=string_replace_all(gmlmsg,"-choice_CriticiseSelf","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_PraiseOwner",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_PraiseOwner"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_PraiseOwner");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)), 1);ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_credit");gmlmsg=string_replace_all(gmlmsg,"-choice_PraiseOwner","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_FocusOwner",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_FocusOwner"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_FocusOwner");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)), 2);ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_credit");gmlmsg=string_replace_all(gmlmsg,"-choice_FocusOwner","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_MeetOwner",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_MeetOwner"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_MeetOwner");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)), (yyGetBool(global.gmlconsole_build)?2:1));ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_credit");gmlmsg=string_replace_all(gmlmsg,"-choice_MeetOwner","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_CriticiseOfficials",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_CriticiseOfficials"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_CriticiseOfficials");ds_map_set(gmlmap_dilemma, yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)?(-3):(-1)));ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)?"spr_fans":"spr_credit"));gmlmsg=string_replace_all(gmlmsg,"-choice_CriticiseOfficials","");gmlbtn="2";};};if(yyGetBool(irandom(1))){{if(yyGetBool(string_count("-choice_qpos_correct",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt", __yy_gml_errCheck(gmlbtn)),gml_Script_s_get_string_position(_inst,_other,ds_map_find_value(gmlpmap,"position")));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_PraiseFans");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),3);ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"-1");ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"fans");gmlmsg=string_replace_all(gmlmsg,"-choice_qpos_correct",""); gmlbtn="2";};};};};if(yyGetBool(string_count("-choice_qpos_wrong",gmlmsg))){{var gmlpos=irandom_range(1,10);if(yyfequal(ds_map_find_value(gmlpmap,"position"),101)){gmlpos=102;}else {if(yyfequal(ds_map_find_value(gmlpmap,"position"),102)){gmlpos=101;}else {{while((yyGetBool(yyfequal(gmlpos,real(ds_map_find_value(gmlpmap,"position")))))||(yyGetBool(yyfequal(gmlpos,8)))||(yyGetBool(yyfequal(gmlpos,9)))){gmlpos=irandom_range(1,10)};};};};ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)), gml_Script_s_get_string_position(_inst,_other,gmlpos));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_CriticiseFans");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),(-5));ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"-1");ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"fans");gmlmsg=string_replace_all(gmlmsg,"-choice_qpos_wrong","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_qpos_correct", gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_get_string_position(_inst,_other,ds_map_find_value(gmlpmap,"position")));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_PraiseFans");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),3);ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"-1");ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"fans");gmlmsg=string_replace_all(gmlmsg, "-choice_qpos_correct","");gmlbtn="2";};};var gmlreplaceCCWithTeam=yyflessequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit,0);if((yyGetBool(gml_Script_s_is_co_mode(_inst,_other)))&&(yyGetBool(string_pos("leaverescue",gmlmsg_key)))){{gmlreplaceCCWithTeam=false;};};if(yyGetBool(gmlreplaceCCWithTeam)){{if((yyGetBool(yyfequal(ds_map_find_value(gmlmap_dilemma,"cost_img1"),"spr_credit")))&&(yyGetBool(yyfless(ds_map_find_value(gmlmap_dilemma,"cost_amt1"),0)))){{ds_map_set(gmlmap_dilemma, "cost_typ1","choice_CriticiseTeam");ds_map_set(gmlmap_dilemma,"cost_amt1",(-10));ds_map_set(gmlmap_dilemma,"cost_img1","spr_attitude");ds_map_set(gmlmap_dilemma,"effect_on1","team");};};if((yyGetBool(yyfequal(ds_map_find_value(gmlmap_dilemma,"cost_img2"),"spr_credit")))&&(yyGetBool(yyfless(ds_map_find_value(gmlmap_dilemma,"cost_amt2"),0)))){{ds_map_set(gmlmap_dilemma,"cost_typ2","choice_CriticiseTeam");ds_map_set(gmlmap_dilemma,"cost_amt2",(-10));ds_map_set(gmlmap_dilemma,"cost_img2","spr_attitude"); ds_map_set(gmlmap_dilemma,"effect_on2","team");};};};};if(yyGetBool(string_count("-choice_FocusNRG",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_FocusNRG"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_FocusNRG");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),1);ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_nrg");ds_map_set(gmlmap_dilemma, yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"nrg");gmlmsg=string_replace_all(gmlmsg,"-choice_FocusNRG","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_GPAUp",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_GPAUp"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_GPAUp");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),7);ds_map_set(gmlmap_dilemma,yyfplus("cost_img", __yy_gml_errCheck(gmlbtn)),"spr_gpa");ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"player");gmlmsg=string_replace_all(gmlmsg,"-choice_GPAUp","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_GPADrop",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_GPADrop"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_GPADrop");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)), (-9));ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_gpa");ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"player");gmlmsg=string_replace_all(gmlmsg,"-choice_GPADrop","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_CutPlayer",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_CutPlayer"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_CutPlayer"); ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),0);ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"-1");ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"player");gmlmsg=string_replace_all(gmlmsg,"-choice_CutPlayer","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_FocusGPA",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str(_inst,_other,"choice_FocusGPA"));ds_map_set(gmlmap_dilemma, yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_FocusGPA");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),7);ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_gpa");ds_map_set(gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)),"team");gmlmsg=string_replace_all(gmlmsg,"-choice_FocusGPA","");gmlbtn="2";};};if(yyGetBool(string_count("-choice_FocusRC",gmlmsg))){{ds_map_set(gmlmap_dilemma,yyfplus("btn_txt",__yy_gml_errCheck(gmlbtn)), gml_Script_s_str(_inst,_other,"choice_FocusRC"));ds_map_set(gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn)),"choice_FocusRC");ds_map_set(gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)),gml_Script_s_str_real(_inst,_other,"choice_FocusRC_bonus"));ds_map_set(gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)),"spr_credit_rec");gmlmsg=string_replace_all(gmlmsg,"-choice_FocusRC","");gmlbtn="2";};};if(yyGetBool(gmlpmap)){{gmlmsg=gml_Script_s_parse_player_message(_inst, _other,gmlmsg,gmlpmap);gml_Script_slog(_inst,_other,yyfplus("Dilemma about: ",__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))));if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{if(yyGetBool(string_count("toxic",gmlmsg_key))){{ds_map_set(gmlpmap,"toxic_dilemmas",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"toxic_dilemmas")),1));};};if(yyGetBool(string_count("party",gmlmsg_key))){{ds_map_set(gmlpmap,"party_dilemmas",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"party_dilemmas")), 1));};};};};};};ds_map_set(gmlmap_dilemma,"msg",gmlmsg);gml_Script_slog(_inst,_other,yyfplus("Dilemma: ",__yy_gml_errCheck(gmlmsg)));return gmlmap_dilemma;}}function gml_GlobalScript_s_create_dilemma(_inst,_other){(_inst.gmls_create_dilemma=__yy_method(_inst,gml_Script_s_create_dilemma));}function gml_Script_s_create_dilemma(_inst,_other,argument0){{gml_Script_slog(_inst,_other,"s_create_dilemma");var gmlallowProfileClick=false;if((yyGetBool(gml_Script_s_is_co_mode(_inst,_other)))&&(yyGetBool(yyfequal(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlstage,2)))){{gmlallowProfileClick=true;};};if(yyGetBool(gmlallowProfileClick)){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlprofile_back_to=1;};};yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstore_to_dilemma=false;var gmltitle_txt=ds_map_find_value(argument0,"title");var gmlmsg_txt=ds_map_find_value(argument0,"msg");var gmlbtn_txt1=ds_map_find_value(argument0,"btn_txt1");var gmlbtn_txt2=ds_map_find_value(argument0,"btn_txt2");var gmlcost_txt1=string(ds_map_find_value(argument0, "cost_amt1"));var gmlcost_txt2=string(ds_map_find_value(argument0,"cost_amt2"));var gmlcost_img1=ds_map_find_value(argument0,"cost_img1");var gmlcost_img2=ds_map_find_value(argument0,"cost_img2");var gmlbg=instance_create_layer(0,0,"PopUps",YYASSET_REF(0x0000004F));var gmltitle=instance_create_layer(yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5),32,"PopUps",YYASSET_REF(0x00000047));var gmlmsg=instance_create_layer(yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5),yyftime(__yy_gml_errCheck(display_get_gui_height()), 0.5),"PopUps",YYASSET_REF(0x00000050));var gmlbtn_1=instance_create_layer(104,224,"PopUps",YYASSET_REF(0x0000002A));var gmlbtn_2=instance_create_layer(272,224,"PopUps",YYASSET_REF(0x0000002A));var gmlcost_1=instance_create_layer(32,224,"PopUps",YYASSET_REF(0x00000045));var gmlcost_2=instance_create_layer(384,224,"PopUps",YYASSET_REF(0x00000045));var gmlcreds=instance_create_layer(32,16,"PopUps",YYASSET_REF(0x00000049));var gmlprof_1=instance_create_layer(32,136,"PopUps",YYASSET_REF(0x00000032));var gmlprof_2=instance_create_layer(384, 136,"PopUps",YYASSET_REF(0x00000032));var gmlmorale_1=instance_create_layer(32,184,"PopUps",YYASSET_REF(0x00000042));var gmlmorale_2=instance_create_layer(384,184,"PopUps",YYASSET_REF(0x00000042));yyInst(_inst,_other,gmlbg).gmlcolour=global.gmlc_background;yyInst(_inst,_other,gmlbg).gmlalpha=1;yyInst(_inst,_other,gmltitle).gmlty=32;yyInst(_inst,_other,gmltitle).gmlshow_stars=false;yyInst(_inst,_other,gmltitle).gmltext=string(gmltitle_txt);yyInst(_inst,_other,gmlmsg).gmltext=gmlmsg_txt;yyInst(_inst, _other,gmlmsg).gmlcolour=global.gmlc_background;yyInst(_inst,_other,gmlmsg).gmlmsg_width=260;yyInst(_inst,_other,gmlbtn_1).gmltext=gmlbtn_txt1;yyInst(_inst,_other,gmlbtn_2).gmltext=gmlbtn_txt2;yyInst(_inst,_other,gmlbtn_1).gmlonClickAction=kgml_Script_s_dilemma_choice_1;yyInst(_inst,_other,gmlbtn_2).gmlonClickAction=kgml_Script_s_dilemma_choice_2;yyInst(_inst,_other,gmlcost_1).gmltitle=gml_Script_s_str(_inst,_other,"ui_Effect");yyInst(_inst,_other,gmlcost_2).gmltitle=gml_Script_s_str(_inst,_other, "ui_Effect");yyInst(_inst,_other,gmlcost_1).gmltext=gmlcost_txt1;yyInst(_inst,_other,gmlcost_2).gmltext=gmlcost_txt2;yyInst(_inst,_other,gmlcost_1).gmlimage=gml_Script_s_convert_string_to_sprite(_inst,_other,gmlcost_img1);yyInst(_inst,_other,gmlcost_2).gmlimage=gml_Script_s_convert_string_to_sprite(_inst,_other,gmlcost_img2);yyInst(_inst,_other,gmlprof_1).gmlactive=false;yyInst(_inst,_other,gmlprof_2).gmlactive=false;yyInst(_inst,_other,gmlprof_1).gmlpmap=(-4);yyInst(_inst,_other,gmlprof_2).gmlpmap=(-4); yyInst(_inst,_other,gmlmorale_1).visible=false;yyInst(_inst,_other,gmlmorale_2).visible=false;var ___sw432___=ds_map_find_value(argument0,"effect_on1");var ___swc433___=-1;if(yyCompareVal(___sw432___,"player",g_GMLMathEpsilon,false)==0){___swc433___=0;}else if(yyCompareVal(___sw432___,"coaches",g_GMLMathEpsilon,false)==0){___swc433___=1;}else if(yyCompareVal(___sw432___,"team",g_GMLMathEpsilon,false)==0){___swc433___=2;}else if(yyCompareVal(___sw432___,"self",g_GMLMathEpsilon,false)==0){___swc433___=3; }switch(___swc433___){case 0:{yyInst(_inst,_other,gmlprof_1).gmlpmap=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile;yyInst(_inst,_other,gmlprof_1).gmlactive=gmlallowProfileClick;gml_Script_slog(_inst,_other,yyfplus("DILEMMA1: ",__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,gmlprof_1).gmlpmap,"lname"))));break;}case 1:{var gmlof=true;if((yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile))&&(yyGetBool(!yyGetBool(gml_Script_s_is_offensive_player(_inst,_other, yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile))))){gmlof=false;};var ___sw434___=gmlof;var ___swc435___=-1;if(yyCompareVal(___sw434___,true,g_GMLMathEpsilon,false)==0){___swc435___=0;}else if(yyCompareVal(___sw434___,false,g_GMLMathEpsilon,false)==0){___swc435___=1;}switch(___swc435___){case 0:{yyInst(_inst,_other,gmlprof_1).gmlpmap=gml_Script_s_get_staff(_inst,_other,102);break;}case 1:{yyInst(_inst,_other,gmlprof_1).gmlpmap=gml_Script_s_get_staff(_inst,_other,101);break;}};break;}case 2:{ if(yyfequal(yyInst(_inst,_other,gmlcost_1).gmlimage,YYASSET_REF(0x0100006B))){yyInst(_inst,_other,gmlmorale_1).visible=true;};break;}case 3:{yyInst(_inst,_other,gmlprof_1).gmlpmap=gml_Script_s_get_staff(_inst,_other,100);break;}};if(yyfequal(yyInst(_inst,_other,gmlcost_1).gmlimage,YYASSET_REF(0x0100006B))){{yyInst(_inst,_other,gmlcost_1).gmlimage_num=2;if(yyfgreater(ds_map_find_value(argument0,"cost_amt1"),0)){yyInst(_inst,_other,gmlcost_1).gmlimage_num=5;};yyInst(_inst,_other,gmlcost_1).gmltext=""; };}else {if(yyfgreater(real(ds_map_find_value(argument0,"cost_amt1")),0)){yyInst(_inst,_other,gmlcost_1).gmltext=yyfplus("+",__yy_gml_errCheck(yyInst(_inst,_other,gmlcost_1).gmltext));};};var ___sw436___=ds_map_find_value(argument0,"effect_on2");var ___swc437___=-1;if(yyCompareVal(___sw436___,"player",g_GMLMathEpsilon,false)==0){___swc437___=0;}else if(yyCompareVal(___sw436___,"coaches",g_GMLMathEpsilon,false)==0){___swc437___=1;}else if(yyCompareVal(___sw436___,"team",g_GMLMathEpsilon,false)==0){___swc437___=2; }else if(yyCompareVal(___sw436___,"self",g_GMLMathEpsilon,false)==0){___swc437___=3;}switch(___swc437___){case 0:{yyInst(_inst,_other,gmlprof_2).gmlpmap=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile;yyInst(_inst,_other,gmlprof_2).gmlactive=gmlallowProfileClick;gml_Script_slog(_inst,_other,yyfplus("DILEMMA2: ",__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,gmlprof_2).gmlpmap,"lname"))));break;}case 1:{var gmlof=true;if((yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile))&&(yyGetBool(!yyGetBool(gml_Script_s_is_offensive_player(_inst, _other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile))))){gmlof=false;};var ___sw438___=gmlof;var ___swc439___=-1;if(yyCompareVal(___sw438___,true,g_GMLMathEpsilon,false)==0){___swc439___=0;}else if(yyCompareVal(___sw438___,false,g_GMLMathEpsilon,false)==0){___swc439___=1;}switch(___swc439___){case 0:{yyInst(_inst,_other,gmlprof_2).gmlpmap=gml_Script_s_get_staff(_inst,_other,102);break;}case 1:{yyInst(_inst,_other,gmlprof_2).gmlpmap=gml_Script_s_get_staff(_inst,_other,101);break;}};break; }case 2:{if(yyfequal(yyInst(_inst,_other,gmlcost_2).gmlimage,YYASSET_REF(0x0100006B))){yyInst(_inst,_other,gmlmorale_2).visible=true;};break;}case 3:{yyInst(_inst,_other,gmlprof_2).gmlpmap=gml_Script_s_get_staff(_inst,_other,100);break;}};if(yyfequal(yyInst(_inst,_other,gmlcost_2).gmlimage,YYASSET_REF(0x0100006B))){{yyInst(_inst,_other,gmlcost_2).gmlimage_num=2;if(yyfgreater(ds_map_find_value(argument0,"cost_amt2"),0)){yyInst(_inst,_other,gmlcost_2).gmlimage_num=5;};yyInst(_inst,_other,gmlcost_2).gmltext=""; };}else {if(yyfgreater(real(ds_map_find_value(argument0,"cost_amt2")),0)){yyInst(_inst,_other,gmlcost_2).gmltext=yyfplus("+",__yy_gml_errCheck(yyInst(_inst,_other,gmlcost_2).gmltext));};};yyInst(_inst,_other,gmlcreds).gmlicon=YYASSET_REF(0x01000069);yyInst(_inst,_other,gmlcreds).gmltext=gml_Script_s_get_credit(_inst,_other);if(yyfequal(yyInst(_inst,_other,gmlcost_1).gmlimage,YYASSET_REF(0x01000068))){yyInst(_inst,_other,gmlcost_1).gmltext="+";};if(yyfequal(yyInst(_inst,_other,gmlcost_2).gmlimage, YYASSET_REF(0x01000068))){yyInst(_inst,_other,gmlcost_2).gmltext="+";};if(yyfequal(yyInst(_inst,_other,gmlcost_1).gmlimage,YYASSET_REF(0x0100016C))){yyInst(_inst,_other,gmlcost_1).gmltext=yyfplus(__yy_gml_errCheck(string(ds_map_find_value(argument0,"cost_amt1"))),"x");};if(yyfequal(yyInst(_inst,_other,gmlcost_2).gmlimage,YYASSET_REF(0x0100016C))){yyInst(_inst,_other,gmlcost_2).gmltext=yyfplus(__yy_gml_errCheck(string(ds_map_find_value(argument0,"cost_amt2"))),"x");};if(yyfequal(yyInst(_inst,_other, gmlcost_1).gmlimage,YYASSET_REF(0x01000133))){{if(yyfgreater(ds_map_find_value(argument0,"cost_amt1"),0)){{if(yyfequal(ds_map_find_value(argument0,"cost_typ1"),"choice_FocusGPA")){{yyInst(_inst,_other,gmlcost_1).gmltext="+";};}else {{yyInst(_inst,_other,gmlprof_1).gmlactive=false;yyInst(_inst,_other,gmlprof_1).visible=false;yyInst(_inst,_other,gmlmorale_1).visible=true;yyInst(_inst,_other,gmlcost_1).gmltext="";yyInst(_inst,_other,gmlcost_1).gmlimage_num=2;yyInst(_inst,_other,gmlcost_1).gmlimage=gml_Script_s_convert_string_to_sprite(_inst, _other,"spr_attitude");};};};}else {{yyInst(_inst,_other,gmlcost_1).gmltext="-";};};};};if(yyfequal(yyInst(_inst,_other,gmlcost_2).gmlimage,YYASSET_REF(0x01000133))){{if(yyfgreater(ds_map_find_value(argument0,"cost_amt2"),0)){{if(yyfequal(ds_map_find_value(argument0,"cost_typ2"),"choice_FocusGPA")){{yyInst(_inst,_other,gmlcost_2).gmltext="+";};}else {{yyInst(_inst,_other,gmlprof_2).gmlactive=false;yyInst(_inst,_other,gmlprof_2).visible=false;yyInst(_inst,_other,gmlmorale_2).visible=true;yyInst(_inst, _other,gmlcost_2).gmltext="";yyInst(_inst,_other,gmlcost_2).gmlimage_num=2;yyInst(_inst,_other,gmlcost_2).gmlimage=gml_Script_s_convert_string_to_sprite(_inst,_other,"spr_attitude");};};};}else {{yyInst(_inst,_other,gmlcost_2).gmltext="-";};};};};if(yyfequal(yyInst(_inst,_other,gmlcost_1).gmlimage,(-1))){{yyInst(_inst,_other,gmlcost_1).visible=false;yyInst(_inst,_other,gmlprof_1).visible=false;yyInst(_inst,_other,gmlmorale_1).visible=false;};};if(yyfequal(yyInst(_inst,_other,gmlcost_2).gmlimage,(-1))){ {yyInst(_inst,_other,gmlcost_2).visible=false;yyInst(_inst,_other,gmlprof_2).visible=false;yyInst(_inst,_other,gmlmorale_2).visible=false;};};if(yyfequal(yyInst(_inst,_other,gmlcost_1).gmlimage,YYASSET_REF(0x01000000))){{yyInst(_inst,_other,gmlcost_1).gmltext=yyfplus(yyfplus("$",__yy_gml_errCheck(string(ds_map_find_value(argument0,"cost_amt1")))),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"sla_Thousand")));yyInst(_inst,_other,gmlcost_1).gmlimage=(-4);};};if(yyfequal(yyInst(_inst,_other,gmlcost_2).gmlimage, YYASSET_REF(0x01000000))){{yyInst(_inst,_other,gmlcost_2).gmltext=yyfplus(yyfplus("$",__yy_gml_errCheck(string(ds_map_find_value(argument0,"cost_amt2")))),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"sla_Thousand")));yyInst(_inst,_other,gmlcost_2).gmlimage=(-4);};};yyInst(_inst,_other,gmltitle).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other,gmlmsg).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other,gmlbtn_1).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst, _other,gmlbg).depth),1);yyInst(_inst,_other,gmlbtn_2).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other,gmlcost_1).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other,gmlcost_2).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other,gmlcreds).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other,gmlprof_1).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst, _other,gmlbg).depth),2);yyInst(_inst,_other,gmlprof_2).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),2);yyInst(_inst,_other,gmlmorale_1).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),2);yyInst(_inst,_other,gmlmorale_2).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),2);if(yyfequal(gmltitle_txt,"")){yyInst(_inst,_other,gmltitle).visible=false;};if(yyfequal(gmlbtn_txt1,"")){{yyInst(_inst,_other,gmlbtn_1).visible=false;yyInst(_inst,_other, gmlbtn_2).x=360;};};if(yyfequal(gmlbtn_txt2,"")){{yyInst(_inst,_other,gmlbtn_2).visible=false;yyInst(_inst,_other,gmlbtn_1).x=360;};};if(yyfequal(gmlcost_txt1,"")){yyInst(_inst,_other,gmlcost_1).visible=false;};if(yyfequal(gmlcost_txt2,"")){yyInst(_inst,_other,gmlcost_2).visible=false;};gml_Script_s_load_profile_uni(_inst,_other,gmlprof_1);gml_Script_s_load_profile_uni(_inst,_other,gmlprof_2);}}function gml_GlobalScript_s_choose_dilemma(_inst,_other){(_inst.gmls_choose_dilemma=__yy_method(_inst,gml_Script_s_choose_dilemma)); (_inst.gmls_extract_dilemma_from_pool=__yy_method(_inst,gml_Script_s_extract_dilemma_from_pool));(_inst.gmls_add_tag_matches_to_list=__yy_method(_inst,gml_Script_s_add_tag_matches_to_list));(_inst.gmls_reject_dilemma_not_enough_RC=__yy_method(_inst,gml_Script_s_reject_dilemma_not_enough_RC));}function gml_Script_s_choose_dilemma(_inst,_other,argument0){{{var __yy__v707=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v708 in __yy__v707){if(!__yy__v707.hasOwnProperty(__yy__v708))continue;var __yy__v709=__yy__v707[__yy__v708]; {ds_list_shuffle(__yy__v709.gmldilemma_tags);var gmlres=gml_Script_s_extract_dilemma_from_pool(__yy__v709,_inst,argument0,true);if(yyfnotequal(gmlres,"")){{gml_Script_slog(__yy__v709,_inst,yyfplus(yyfplus("s_choose_dilemma.1: Existing list [",__yy_gml_errCheck(string(gmlres))),"]"));return gmlres;};};gml_Script_slog(__yy__v709,_inst,"Repopulate dilemma_tags...");gml_Script_s_add_tag_matches_to_list(__yy__v709,_inst,__yy__v709.gmldilemma_tags,argument0,gml_Script_s_select_lang_file(__yy__v709,_inst)); gml_Script_s_add_tag_matches_to_list(__yy__v709,_inst,__yy__v709.gmldilemma_tags,argument0,gml_Script_s_select_override_lang_file(__yy__v709,_inst));var gmlres=gml_Script_s_extract_dilemma_from_pool(__yy__v709,_inst,argument0,true);if(yyfnotequal(gmlres,"")){{gml_Script_slog(__yy__v709,_inst,yyfplus(yyfplus("s_choose_dilemma.2: Fresh list [",__yy_gml_errCheck(string(gmlres))),"]"));return gmlres;};};var gmlres=gml_Script_s_extract_dilemma_from_pool(__yy__v709,_inst,argument0,false);if(yyfnotequal(gmlres, "")){{gml_Script_slog(__yy__v709,_inst,yyfplus(yyfplus("s_choose_dilemma.3: No constraints list [",__yy_gml_errCheck(string(gmlres))),"]"));return gmlres;};};gml_Script_slog(__yy__v709,_inst,"s_choose_dilemma.4: Failed");return "";}}};}}function gml_Script_s_extract_dilemma_from_pool(_inst,_other,argument0,argument1){{var gmli=yyfminus(__yy_gml_errCheck(ds_list_size(_inst.gmldilemma_tags)),1);for(;yyfgreaterequal(gmli,0);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.subtract(1):--gmli), g_yyPrePostObject__)){{var gmlstr=ds_list_find_value(_inst.gmldilemma_tags,gmli);if(yyGetBool(string_count(argument0,gmlstr))){{ds_list_delete(_inst.gmldilemma_tags,gmli);if(yyGetBool(argument1)){{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{if(yyGetBool(gml_Script_s_reject_dilemma_not_enough_RC(_inst,_other,gmlstr))){{continue;};};};};};};return gmlstr;};};}};return "";}}function gml_Script_s_add_tag_matches_to_list(_inst,_other,argument0,argument1,argument2,argument3){{if(yyfequal(argument3, _inst.undefined)){argument3="";};}{var gmlfile=file_text_open_read(argument2);if(yyfequal(gmlfile,(-1))){{return;};};while(!yyGetBool(file_text_eof(gmlfile))){{var gmltxt=file_text_read_string(gmlfile);file_text_readln(gmlfile);if(yyfnotequal(string_pos("//",gmltxt),0)){{continue;};};if((yyGetBool(yyfnotequal(argument3,"")))&&(yyGetBool(string_count(argument3,gmltxt)))){{continue;};};if(yyGetBool(string_count(argument1,gmltxt))){{var gmlpos=string_pos(" ",gmltxt);gmltxt=string_copy(gmltxt,1,yyfminus(__yy_gml_errCheck(gmlpos), 1));if(yyfequal(ds_list_find_index(argument0,gmltxt),(-1))){{ds_list_add(argument0,gmltxt);gml_Script_slog(_inst,_other,gmltxt);};};};};}};file_text_close(gmlfile);}}function gml_Script_s_reject_dilemma_not_enough_RC(_inst,_other,argument0){{var gmlmsg=gml_Script_s_str(_inst,_other,argument0);if(yyGetBool(string_count("-choice_FocusRC",gmlmsg))){{var gmlbonus=gml_Script_s_str_real(_inst,_other,"choice_FocusRC_bonus");if(yyfequal(gml_Script_can_fit_recruitment_credits(_inst,_other,gmlbonus),false)){ {gml_Script_slog(_inst,_other,yyfplus(yyfplus("s_reject_dilemma_not_enough_RC rejected[",__yy_gml_errCheck(argument0)),"]"));return true;};};};};return false;}}function gml_GlobalScript_s_dilemma_choice_1(_inst,_other){(_inst.gmls_dilemma_choice_1=__yy_method(_inst,gml_Script_s_dilemma_choice_1));}function gml_Script_s_dilemma_choice_1(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_dilemma_choice(_inst,_other,1);}}function gml_GlobalScript_s_dilemma_choice_2(_inst,_other){(_inst.gmls_dilemma_choice_2=__yy_method(_inst, gml_Script_s_dilemma_choice_2));}function gml_Script_s_dilemma_choice_2(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_dilemma_choice(_inst,_other,2);}}function gml_GlobalScript_s_dilemma_choice(_inst,_other,argument0){(_inst.gmls_dilemma_choice=__yy_method(_inst,gml_Script_s_dilemma_choice));(_inst.gmls_cut_player_end=__yy_method(_inst,gml_Script_s_cut_player_end));(_inst.gmls_cut_player_end_gpa=__yy_method(_inst,gml_Script_s_cut_player_end_gpa));(_inst.gmls_cut_player_end_toxic=__yy_method(_inst, gml_Script_s_cut_player_end_toxic));(_inst.gmls_cut_player_end_party=__yy_method(_inst,gml_Script_s_cut_player_end_party));(_inst.gmls_cut_player_end_toxic_max=__yy_method(_inst,gml_Script_s_cut_player_end_toxic_max));(_inst.gmls_cut_player_end_party_max=__yy_method(_inst,gml_Script_s_cut_player_end_party_max));(_inst.gmls_dilemma_morecc_store=__yy_method(_inst,gml_Script_s_dilemma_morecc_store));(_inst.gmls_dilemma_morecc_back=__yy_method(_inst,gml_Script_s_dilemma_morecc_back));(_inst.gmls_dilemma_end=__yy_method(_inst, gml_Script_s_dilemma_end));(_inst.gmls_dilemma_college_check_chained=__yy_method(_inst,gml_Script_s_dilemma_college_check_chained));(_inst.gmls_dilemma_college_check_pending_news=__yy_method(_inst,gml_Script_s_dilemma_college_check_pending_news));}function gml_Script_s_dilemma_choice(_inst,_other,argument0){{var gmlbtn=string(argument0);{var __yy__v710=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v711 in __yy__v710){if(!__yy__v710.hasOwnProperty(__yy__v711))continue;var __yy__v712=__yy__v710[__yy__v711]; {gml_Script_slog(__yy__v712,_inst,yyfplus(yyfplus(yyfplus(yyfplus("s_dilemma_choice [",__yy_gml_errCheck(string(gmlbtn))),"]::["),__yy_gml_errCheck(string(ds_map_find_value(__yy__v712.gmlmap_dilemma,yyfplus("cost_img",__yy_gml_errCheck(gmlbtn)))))),"]"));if(yyGetBool(string_count("party",ds_map_find_value(__yy__v712.gmlmap_dilemma,"msg_key")))){{gml_Script_s_clear_party_meter(__yy__v712,_inst,__yy__v712.gmlplayer_profile);};};var ___sw452___=ds_map_find_value(__yy__v712.gmlmap_dilemma,yyfplus("cost_img", __yy_gml_errCheck(gmlbtn)));var ___swc453___=-1;if(yyCompareVal(___sw452___,"spr_xp",g_GMLMathEpsilon,false)==0){___swc453___=0;}else if(yyCompareVal(___sw452___,"spr_credit",g_GMLMathEpsilon,false)==0){___swc453___=1;}else if(yyCompareVal(___sw452___,"spr_attitude",g_GMLMathEpsilon,false)==0){___swc453___=2;}else if(yyCompareVal(___sw452___,"spr_fans",g_GMLMathEpsilon,false)==0){___swc453___=3;}else if(yyCompareVal(___sw452___,"-1",g_GMLMathEpsilon,false)==0){___swc453___=4;}else if(yyCompareVal(___sw452___, "spr_nrg",g_GMLMathEpsilon,false)==0){___swc453___=5;}else if(yyCompareVal(___sw452___,"spr_gpa",g_GMLMathEpsilon,false)==0){___swc453___=6;}else if(yyCompareVal(___sw452___,"spr_credit_rec",g_GMLMathEpsilon,false)==0){___swc453___=7;}switch(___swc453___){case 0:{var ___sw454___=ds_map_find_value(__yy__v712.gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)));var ___swc455___=-1;if(yyCompareVal(___sw454___,"team",g_GMLMathEpsilon,false)==0){___swc455___=0;}else if(yyCompareVal(___sw454___,"coaches", g_GMLMathEpsilon,false)==0){___swc455___=1;}else if(yyCompareVal(___sw454___,"qb_self",g_GMLMathEpsilon,false)==0){___swc455___=2;}switch(___swc455___){case 0:{var gmlamt=yyfdivide(__yy_gml_errCheck(real(ds_map_find_value(__yy__v712.gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn))))),__yy_gml_errCheck(clamp(ds_list_size(__yy__v712.gmlroster),1,10)));gmlamt=round(gmlamt);gml_Script_slog(__yy__v712,_inst,yyfplus("XP gain per player = ",__yy_gml_errCheck(string(gmlamt))));var gmli=0;for(;yyfless(gmli, ds_list_size(__yy__v712.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v712.gmlroster,gmli);ds_map_set(gmlpmap,"xp_gain",round(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"xp_gain")),__yy_gml_errCheck(gmlamt))));}};break;}case 1:{var gmlamt=yyfdivide(__yy_gml_errCheck(real(ds_map_find_value(__yy__v712.gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn))))),__yy_gml_errCheck(ds_list_size(__yy__v712.gmlstafflist))); gml_Script_slog(__yy__v712,_inst,yyfplus("XP gain per coach = ",__yy_gml_errCheck(string(gmlamt))));var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v712.gmlstafflist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v712.gmlstafflist,gmli);ds_map_set(gmlpmap,"xp_gain",round(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"xp_gain")),__yy_gml_errCheck(gmlamt))));}};break;}case 2:{var gmlpmap=gml_Script_s_get_qb_pmap(__yy__v712, _inst);ds_map_set(gmlpmap,"xp_gain",round(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"xp_gain")),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"xp_level")),50)))));break;}};gml_Script_s_dilemma_end(__yy__v712,_inst);break;}case 1:{if(yyfless(yyfplus(__yy_gml_errCheck(__yy__v712.gmlcoach_credit),__yy_gml_errCheck(real(ds_map_find_value(__yy__v712.gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)))))),0)){{var gmluseMoraleInsteadOfCC=true;if((yyGetBool(gml_Script_s_is_co_mode(__yy__v712, _inst)))&&(yyGetBool(string_pos("leaverescue",ds_map_find_value(__yy__v712.gmlmap_dilemma,"msg_key"))))){{gmluseMoraleInsteadOfCC=false;};};if(yyGetBool(gmluseMoraleInsteadOfCC)){{__yy__v712.gmlcoach_credit=0;var gmlold_morale=gml_Script_s_get_morale(__yy__v712,_inst);gml_Script_s_adjust_team_morale(__yy__v712,_inst,(-5),(-10));gml_Script_s_meter_change(__yy__v712,_inst,4,gmlold_morale,(-4),"");};}else {{var ___sw456___=g_pBuiltIn.get_os_type();var ___swc457___=-1;if(yyCompareVal(___sw456___,4,g_GMLMathEpsilon, false)==0||yyCompareVal(___sw456___,3,g_GMLMathEpsilon,false)==0){___swc457___=0;}switch(___swc457___){case 0:{{gml_Script_s_create_message(__yy__v712,_inst,gml_Script_s_str(__yy__v712,_inst,"ui_News"),gml_Script_s_str(__yy__v712,_inst,"msg_NotEnoughCCStore"),gml_Script_s_str(__yy__v712,_inst,"ui_Yes"),gml_Script_s_str(__yy__v712,_inst,"ui_No"),kgml_Script_s_dilemma_morecc_store,kgml_Script_s_dilemma_morecc_back,global.gmlc_background,1);break;};}default :{{gml_Script_s_create_message(__yy__v712,_inst, gml_Script_s_str(__yy__v712,_inst,"ui_News"),gml_Script_s_str(__yy__v712,_inst,"msg_NotEnoughCC"),"",gml_Script_s_str(__yy__v712,_inst,"ui_Continue"),"",kgml_Script_s_dilemma_morecc_back,global.gmlc_background,1);break;};}};};};return;};};if(yyfequal(ds_map_find_value(__yy__v712.gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn))),"choice_DefendPlayer")){{__yy__v712.gmlcoach_credit=yyfplus(__yy__v712.gmlcoach_credit,real(ds_map_find_value(__yy__v712.gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn))))); gmlpmap=__yy__v712.gmlplayer_profile;var gmlold_att=ds_map_find_value(gmlpmap,"attitude");ds_map_set(gmlpmap,"attitude",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"attitude")),5),1,100));gml_Script_s_meter_change(__yy__v712,_inst,5,gmlold_att,(-4),"");return;};}else {{gml_Script_s_meter_change(__yy__v712,_inst,8,__yy__v712.gmlcoach_credit,(-4),"");__yy__v712.gmlcoach_credit=yyfplus(__yy__v712.gmlcoach_credit,real(ds_map_find_value(__yy__v712.gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn))))); return;};};gml_Script_s_dilemma_end(__yy__v712,_inst);break;}case 2:{var gmlpmap=(-4);var ___sw458___=ds_map_find_value(__yy__v712.gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)));var ___swc459___=-1;if(yyCompareVal(___sw458___,"team",g_GMLMathEpsilon,false)==0){___swc459___=0;}else if(yyCompareVal(___sw458___,"coaches",g_GMLMathEpsilon,false)==0){___swc459___=1;}else if(yyCompareVal(___sw458___,"player",g_GMLMathEpsilon,false)==0){___swc459___=2;}switch(___swc459___){case 0:{gml_Script_s_meter_change(__yy__v712, _inst,4,gml_Script_s_get_morale(__yy__v712,_inst),(-4),"");var gmlamt=real(ds_map_find_value(__yy__v712.gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn))));gml_Script_s_adjust_team_morale(__yy__v712,_inst,gmlamt,gmlamt);break;}case 1:{if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile)){{if(yyfequal(ds_map_find_value(__yy__v712.gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn))),"choice_SideWithCoach")){ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile, "attitude",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"attitude")),__yy_gml_errCheck(real(__yy_gml_errCheck(-__yy_gml_errCheck(ds_map_find_value(__yy__v712.gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)))))))),1,100));};var ___sw460___=gml_Script_s_is_offensive_player(__yy__v712,_inst,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile);var ___swc461___=-1;if(yyCompareVal(___sw460___,true,g_GMLMathEpsilon, false)==0){___swc461___=0;}else if(yyCompareVal(___sw460___,false,g_GMLMathEpsilon,false)==0){___swc461___=1;}switch(___swc461___){case 0:{gmlpmap=gml_Script_s_get_staff(__yy__v712,_inst,102);break;}case 1:{gmlpmap=gml_Script_s_get_staff(__yy__v712,_inst,101);break;}};};};if(yyfequal(gmlpmap,(-4))){{gmlpmap=gml_Script_s_get_random_coach(__yy__v712,_inst);};};yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile=gmlpmap;var gmlold_amount=ds_map_find_value(gmlpmap,"attitude");ds_map_set(gmlpmap, "attitude",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"attitude")),__yy_gml_errCheck(real(ds_map_find_value(__yy__v712.gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)))))),1,100));gml_Script_s_meter_change(__yy__v712,_inst,5,gmlold_amount,(-4),"");break;}case 2:{if(yyfequal(ds_map_find_value(__yy__v712.gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn))),"choice_SideWithPlayer")){{var gmlsmap=gml_Script_s_get_staff(__yy__v712,_inst,101);if(yyGetBool(gml_Script_s_is_offensive_player(__yy__v712, _inst,__yy__v712.gmlplayer_profile))){gmlsmap=gml_Script_s_get_staff(__yy__v712,_inst,102);};ds_map_set(gmlsmap,"attitude",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlsmap,"attitude")),__yy_gml_errCheck(real(__yy_gml_errCheck(-__yy_gml_errCheck(ds_map_find_value(__yy__v712.gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)))))))),1,100));};}else {if(yyfequal(ds_map_find_value(__yy__v712.gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn))),"choice_RestYes")){{ds_map_set(__yy__v712.gmlplayer_profile, "resting",1);};};};gmlpmap=__yy__v712.gmlplayer_profile;var gmlold_amount=ds_map_find_value(gmlpmap,"attitude");ds_map_set(gmlpmap,"attitude",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"attitude")),__yy_gml_errCheck(real(ds_map_find_value(__yy__v712.gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)))))),1,100));gml_Script_s_meter_change(__yy__v712,_inst,5,gmlold_amount,(-4),"");break;}};break;}case 3:{gml_Script_s_meter_change(__yy__v712,_inst,1,__yy__v712.gmlfans,(-4),""); __yy__v712.gmlfans=clamp(yyfplus(__yy_gml_errCheck(__yy__v712.gmlfans),__yy_gml_errCheck(real(ds_map_find_value(__yy__v712.gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)))))),1,100);break;}case 4:{if(yyfequal(ds_map_find_value(__yy__v712.gmlmap_dilemma,yyfplus("cost_typ",__yy_gml_errCheck(gmlbtn))),"choice_CutPlayer")){{if(yyGetBool(string_count("gpa",ds_map_find_value(__yy__v712.gmlmap_dilemma,"msg_key")))){{__yy__v712.gmlmsg=gml_Script_s_parse_player_message(__yy__v712,_inst,gml_Script_s_str(__yy__v712, _inst,"news_playerleaves_gpa_norescue"),__yy__v712.gmlplayer_profile);gml_Script_s_create_message(__yy__v712,_inst,gml_Script_s_str(__yy__v712,_inst,"ui_News"),__yy__v712.gmlmsg,gml_Script_s_str(__yy__v712,_inst,"ui_Continue"),"",kgml_Script_s_cut_player_end_gpa,"",global.gmlc_background,1);};}else {if(yyGetBool(string_count("toxic",ds_map_find_value(__yy__v712.gmlmap_dilemma,"msg_key")))){{__yy__v712.gmlmsg=gml_Script_s_parse_player_message(__yy__v712,_inst,gml_Script_s_str(__yy__v712,_inst,"news_playerleaves_toxic_norescue"), __yy__v712.gmlplayer_profile);gml_Script_s_create_message(__yy__v712,_inst,gml_Script_s_str(__yy__v712,_inst,"ui_News"),__yy__v712.gmlmsg,gml_Script_s_str(__yy__v712,_inst,"ui_Continue"),"",kgml_Script_s_cut_player_end_toxic,"",global.gmlc_background,1);};}else {if(yyGetBool(string_count("party",ds_map_find_value(__yy__v712.gmlmap_dilemma,"msg_key")))){{__yy__v712.gmlmsg=gml_Script_s_parse_player_message(__yy__v712,_inst,gml_Script_s_str(__yy__v712,_inst,"news_playerleaves_party_norescue"),__yy__v712.gmlplayer_profile); gml_Script_s_create_message(__yy__v712,_inst,gml_Script_s_str(__yy__v712,_inst,"ui_News"),__yy__v712.gmlmsg,gml_Script_s_str(__yy__v712,_inst,"ui_Continue"),"",kgml_Script_s_cut_player_end_party,"",global.gmlc_background,1);};}else {{__yy__v712.gmlmsg=gml_Script_s_parse_player_message(__yy__v712,_inst,gml_Script_s_str(__yy__v712,_inst,"news_playerleaves_gpa_norescue"),__yy__v712.gmlplayer_profile);gml_Script_s_create_message(__yy__v712,_inst,gml_Script_s_str(__yy__v712,_inst,"ui_News"),__yy__v712.gmlmsg, gml_Script_s_str(__yy__v712,_inst,"ui_Continue"),"",kgml_Script_s_cut_player_end,"",global.gmlc_background,1);};};};};return;};}else {{var gmlamt=real(ds_map_find_value(__yy__v712.gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn))));var gmlresult=gml_Script_s_str(__yy__v712,_inst,"ui_Correct");if(yyfless(gmlamt,0)){gmlresult=gml_Script_s_str(__yy__v712,_inst,"ui_Wrong");};gml_Script_s_meter_change(__yy__v712,_inst,1,__yy__v712.gmlfans,(-4),yyfplus(__yy_gml_errCheck(gmlresult),"!"));__yy__v712.gmlfans=clamp(yyfplus(__yy_gml_errCheck(__yy__v712.gmlfans), __yy_gml_errCheck(gmlamt)),1,100);};};break;}case 5:{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_nrg=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_nrg,real(ds_map_find_value(__yy__v712.gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)))));gml_Script_s_sound(__yy__v712,_inst,YYASSET_REF(0x02000017));gml_Script_s_dilemma_end(__yy__v712,_inst);break;}case 6:{var gmlgrade_boost=real(ds_map_find_value(__yy__v712.gmlmap_dilemma,yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)))); var ___sw462___=ds_map_find_value(__yy__v712.gmlmap_dilemma,yyfplus("effect_on",__yy_gml_errCheck(gmlbtn)));var ___swc463___=-1;if(yyCompareVal(___sw462___,"team",g_GMLMathEpsilon,false)==0){___swc463___=0;}else if(yyCompareVal(___sw462___,"player",g_GMLMathEpsilon,false)==0){___swc463___=1;}switch(___swc463___){case 0:{{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlbyeweek_gpaup=true;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v712.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli), g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v712.gmlroster,gmli);ds_map_set(gmlpmap,"saved_percent_grade",ds_map_find_value(gmlpmap,"percent_grade"));gml_Script_s_add_percent_grade(__yy__v712,_inst,gmlpmap,gmlgrade_boost);gml_Script_slog(__yy__v712,_inst,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))," percent grade increased from "),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"saved_percent_grade"))))," to "),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap, "percent_grade"))))," or in GPA: "),__yy_gml_errCheck(gml_Script_s_gpa_string_direct(__yy__v712,_inst,ds_map_find_value(gmlpmap,"percent_grade")))));}};gml_Script_s_dilemma_end(__yy__v712,_inst);break;};}case 1:{{gmlpmap=__yy__v712.gmlplayer_profile;if(yyfgreater(gmlgrade_boost,0)){{gml_Script_s_add_percent_grade(__yy__v712,_inst,gmlpmap,gmlgrade_boost);var gmlold_morale=gml_Script_s_get_morale(__yy__v712,_inst);gml_Script_s_adjust_team_morale(__yy__v712,_inst,(-5),(-10));gml_Script_s_meter_change(__yy__v712, _inst,4,gmlold_morale,(-4),gml_Script_s_str(__yy__v712,_inst,"choice_GPAUpResultMsg"));return;};}else {{gml_Script_s_add_percent_grade(__yy__v712,_inst,gmlpmap,gmlgrade_boost);gml_Script_s_dilemma_end(__yy__v712,_inst);return;};};break;};}};break;}case 7:{{var gmlold_rc=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrecruitment_credits;gml_Script_s_meter_change(__yy__v712,_inst,10,gmlold_rc,(-4),"");gml_Script_recruitment_credits_add(__yy__v712,_inst,real(ds_map_find_value(__yy__v712.gmlmap_dilemma, yyfplus("cost_amt",__yy_gml_errCheck(gmlbtn)))));break;};}};}}};}}function gml_Script_s_cut_player_end(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_remove_player(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"cut",gml_Script_s_pick_epilogue_story(_inst,_other,"epi_cut"));gml_Script_s_dilemma_end(_inst,_other);}}function gml_Script_s_cut_player_end_gpa(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_remove_player(_inst,_other,yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlplayer_profile,"cut",gml_Script_s_pick_epilogue_story(_inst,_other,"epi_dil_lowGPANoRescue"));gml_Script_s_dilemma_end(_inst,_other);}}function gml_Script_s_cut_player_end_toxic(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_remove_player(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"cut",gml_Script_s_pick_epilogue_story(_inst,_other,"epi_dil_toxicNoRescue"));gml_Script_s_dilemma_end(_inst,_other);}}function gml_Script_s_cut_player_end_party(_inst, _other){{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_remove_player(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"cut",gml_Script_s_pick_epilogue_story(_inst,_other,"epi_dil_partyNoRescue"));gml_Script_s_dilemma_end(_inst,_other);}}function gml_Script_s_cut_player_end_toxic_max(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_remove_player(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"cut",gml_Script_s_pick_epilogue_story(_inst, _other,"epi_dil_maxToxic"));gml_Script_s_dilemma_end(_inst,_other);}}function gml_Script_s_cut_player_end_party_max(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_remove_player(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"cut",gml_Script_s_pick_epilogue_story(_inst,_other,"epi_dil_maxParty"));gml_Script_s_dilemma_end(_inst,_other);}}function gml_Script_s_dilemma_morecc_store(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);{var __yy__v713=GetWithArray(YYASSET_REF(0x00000062)); for(var __yy__v714 in __yy__v713){if(!__yy__v713.hasOwnProperty(__yy__v714))continue;var __yy__v715=__yy__v713[__yy__v714];{__yy__v715.gmlstore_to_dilemma=true;gml_Script_s_open_store(__yy__v715,_inst);}}};}}function gml_Script_s_dilemma_morecc_back(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);{var __yy__v716=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v717 in __yy__v716){if(!__yy__v716.hasOwnProperty(__yy__v717))continue;var __yy__v718=__yy__v716[__yy__v717];{gml_Script_s_create_dilemma(__yy__v718, _inst,__yy__v718.gmlmap_dilemma);}}};}}function gml_Script_s_dilemma_end(_inst,_other){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlprofile_back_to=(-1);gml_Script_slog(_inst,_other,"s_dilemma_end");if(yyGetBool(gml_Script_s_dilemma_college_check_chained(_inst,_other))){{return;};};if(yyGetBool(gml_Script_s_dilemma_college_check_pending_news(_inst,_other))){{return;};};gml_Script_s_play(_inst,_other,1);}}function gml_Script_s_dilemma_college_check_chained(_inst,_other){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlprofile_back_to=(-1); if((yyGetBool(gml_Script_s_is_co_mode(_inst,_other)))&&(yyGetBool((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstage,2)))||(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstage,1)))))){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlprematch_dilemma_shown_count=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlprematch_dilemma_shown_count,1);var gmlr=random_range(0,1);gml_Script_slog(_inst,_other,yyfplus("s_dilemma_college_check_chained - Checking for chained dilemma. count:", __yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlprematch_dilemma_shown_count))));var gmlteamSize=ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster);if((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlprematch_dilemma_shown_count,1)))&&(yyGetBool(yyfless(irandom(20),yyfminus(__yy_gml_errCheck(gmlteamSize),2))))){{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_do_prematch_dilemma(_inst,_other,true);return true;};};if((yyGetBool(yyfequal(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlprematch_dilemma_shown_count,2)))&&(yyGetBool(yyfless(random_range(0,1),0.05)))){{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_do_prematch_dilemma(_inst,_other,true);return true;};};};}else {{gml_Script_slog(_inst,_other,"s_dilemma_college_check_chained ignored");};};return false;}}function gml_Script_s_dilemma_college_check_pending_news(_inst,_other){{gml_Script_slog(_inst,_other,yyfplus("to_news_from_dilemma- s_dilemma_college_check_pending_news : ",__yy_gml_errCheck(string(gml_Script_s_has_news(_inst, _other)))));if(yyGetBool(gml_Script_s_has_news(_inst,_other))){{global.gmlto_news_from_dilemma=true;gml_Script_s_msg_clear(_inst,_other);gml_Script_s_check_for_news(_inst,_other);return true;};};return false;}}function gml_GlobalScript_s_convert_string_to_sprite(_inst,_other){(_inst.gmls_convert_string_to_sprite=__yy_method(_inst,gml_Script_s_convert_string_to_sprite));}function gml_Script_s_convert_string_to_sprite(_inst,_other,argument0){{var ___sw466___=argument0;var ___swc467___=-1;if(yyCompareVal(___sw466___, "spr_attitude",g_GMLMathEpsilon,false)==0){___swc467___=0;}else if(yyCompareVal(___sw466___,"spr_star",g_GMLMathEpsilon,false)==0){___swc467___=1;}else if(yyCompareVal(___sw466___,"spr_credit",g_GMLMathEpsilon,false)==0){___swc467___=2;}else if(yyCompareVal(___sw466___,"spr_fans",g_GMLMathEpsilon,false)==0){___swc467___=3;}else if(yyCompareVal(___sw466___,"spr_xp",g_GMLMathEpsilon,false)==0){___swc467___=4;}else if(yyCompareVal(___sw466___,"spr_nrg",g_GMLMathEpsilon,false)==0){___swc467___=5;}else if(yyCompareVal(___sw466___, "spr_gpa",g_GMLMathEpsilon,false)==0){___swc467___=6;}else if(yyCompareVal(___sw466___,"spr_credit_rec",g_GMLMathEpsilon,false)==0){___swc467___=7;}switch(___swc467___){case 0:{return YYASSET_REF(0x0100006B);break;}case 1:{return YYASSET_REF(0x01000065);break;}case 2:{return YYASSET_REF(0x01000069);break;}case 3:{return YYASSET_REF(0x0100007C);break;}case 4:{return YYASSET_REF(0x01000068);break;}case 5:{return YYASSET_REF(0x0100016C);break;}case 6:{return YYASSET_REF(0x01000133);break;}case 7:{return YYASSET_REF(0x01000000); break;}};return(-1);}}function gml_GlobalScript_s_sort_list_by_column(_inst,_other){(_inst.gmls_sort_maplist_by_numeric_field=__yy_method(_inst,gml_Script_s_sort_maplist_by_numeric_field));}function gml_Script_s_sort_maplist_by_numeric_field(_inst,_other,argument0,argument1,argument2){{gml_Script_slog(_inst,_other,"s_sort_list_by_column");var gmlsortedlist=ds_list_create();while(yyfgreater(ds_list_size(argument0),0)){{var gmlbestmap=(-1);var gmli=0;for(;yyfless(gmli,ds_list_size(argument0));(g_yyPrePostObject__=gmli, gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(argument0,gmli);if(!yyGetBool(gmlbestmap)){gmlbestmap=gmlmap;}else {if(yyGetBool(argument2)){{if(yyfless(real(ds_map_find_value(gmlmap,argument1)),real(ds_map_find_value(gmlbestmap,argument1)))){gmlbestmap=gmlmap;};};}else {{if(yyfgreater(real(ds_map_find_value(gmlmap,argument1)),real(ds_map_find_value(gmlbestmap,argument1)))){gmlbestmap=gmlmap;};};};};}};ds_list_add(gmlsortedlist,gmlbestmap); var gmli=ds_list_find_index(argument0,gmlbestmap);ds_list_delete(argument0,gmli);}};ds_list_destroy(argument0);argument0=(-1);return gmlsortedlist;}}function gml_GlobalScript_s_check_draft(_inst,_other){(_inst.gmls_check_draft=__yy_method(_inst,gml_Script_s_check_draft));}function gml_Script_s_check_draft(_inst,_other){{{var __yy__v719=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v720 in __yy__v719){if(!__yy__v719.hasOwnProperty(__yy__v720))continue;var __yy__v721=__yy__v719[__yy__v720];{if(yyGetBool(__yy__v721.gmlqb_mode)){ {gml_Script_s_check_draft_QB(__yy__v721,_inst);return;};};if(yyGetBool(gml_Script_s_is_co_mode(__yy__v721,_inst))){{gml_Script_s_check_draft_CO(__yy__v721,_inst);return;};};gml_Script_slog(__yy__v721,_inst,"s_check_draft");gml_Script_slog(__yy__v721,_inst,yyfplus("Week = ",__yy_gml_errCheck(string(__yy__v721.gmlweek))));gml_Script_slog(__yy__v721,_inst,yyfplus("Draft = ",__yy_gml_errCheck(string(__yy__v721.gmldraft_round))));if(yyfgreater(__yy__v721.gmlintro,0)){{};}else {if(yyfequal(__yy__v721.gmlweek, 1)){{if(yyGetBool(ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfreeagentlist))){{__yy__v721.gmlstage=1;room_goto(YYASSET_REF(0x03000007));return;};}else {{var ___sw472___=__yy__v721.gmldraft_round;var ___swc473___=-1;if(yyCompareVal(___sw472___,1,g_GMLMathEpsilon,false)==0){___swc473___=0;}else if(yyCompareVal(___sw472___,2,g_GMLMathEpsilon,false)==0){___swc473___=1;}else if(yyCompareVal(___sw472___,3,g_GMLMathEpsilon,false)==0){___swc473___=2;}switch(___swc473___){case 0:{if(yyfless(ds_list_size(__yy__v721.gmldraftlist), 50)){gml_Script_s_create_draftlist(__yy__v721,_inst);};room_goto(YYASSET_REF(0x03000005));return;break;}case 1:{room_goto(YYASSET_REF(0x03000005));return;break;}case 2:{room_goto(YYASSET_REF(0x03000005));return;break;}};};};};}else {if((yyGetBool(yyfgreaterequal(ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster),12)))||(yyGetBool((yyGetBool(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsalary_cap,200)))&&(yyGetBool(yyfgreaterequal(ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster), 10)))))){{gml_Script_s_clear_freeagents(__yy__v721,_inst);};}else {if((yyGetBool(yyfless(__yy__v721.gmlweek,8)))&&(yyGetBool(!yyGetBool(__yy__v721.gmloffers_done)))){{__yy__v721.gmloffers_done=true;if((yyGetBool(ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfreeagentlist)))||(yyGetBool(ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltradelist)))){{room_goto(YYASSET_REF(0x03000007));return;};};var ___sw474___=irandom(2);var ___swc475___=-1;if(yyCompareVal(___sw474___,0,g_GMLMathEpsilon, false)==0){___swc475___=0;}else if(yyCompareVal(___sw474___,1,g_GMLMathEpsilon,false)==0){___swc475___=1;}else if(yyCompareVal(___sw474___,2,g_GMLMathEpsilon,false)==0){___swc475___=2;}switch(___swc475___){case 0:{gml_Script_s_create_freeagentlist(__yy__v721,_inst,1);var gmlpmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfreeagentlist,0);if(yyGetBool(gmlpmap)){{if((yyGetBool(gml_Script_s_position_already_on_roster(__yy__v721,_inst,ds_map_find_value(gmlpmap,"position"))))||(yyGetBool(yyfgreater(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap, "salary")),__yy_gml_errCheck(gml_Script_s_get_salary_total(__yy__v721,_inst))),yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsalary_cap),__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlboost_salary_cap)))))){{gml_Script_s_clear_freeagents(__yy__v721,_inst);break;};};yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile=gmlpmap;var gmlstaffmap=(-4);var gmlmsg=gml_Script_s_str(__yy__v721,_inst,"msg_FreeAgentOffer");if(yyfequal(ds_map_find_value(gmlpmap, "age"),gml_Script_s_rookie_age_internal(__yy__v721,_inst))){{gmlmsg=gml_Script_s_str(__yy__v721,_inst,"msg_FreeAgentOffer_Rookie");if(yyGetBool(gml_Script_s_is_offensive_player(__yy__v721,_inst,gmlpmap))){gmlstaffmap=gml_Script_s_get_staff(__yy__v721,_inst,102);}else {gmlstaffmap=gml_Script_s_get_staff(__yy__v721,_inst,101);};};};gmlmsg=string_replace(gmlmsg,"$playername",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname")))); gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position_full(__yy__v721,_inst,ds_map_find_value(gmlpmap,"position")));if(yyGetBool(gmlstaffmap)){gmlmsg=string_replace(gmlmsg,"$coachname",gml_Script_s_get_player_name(__yy__v721,_inst,gmlstaffmap,true));};gml_Script_s_create_message(__yy__v721,_inst,gml_Script_s_str(__yy__v721,_inst,"ui_FreeAgent"),gmlmsg,gml_Script_s_str(__yy__v721,_inst,"ui_Continue"),"",kgml_Script_btn_click_PlayerProfile_Back,"",global.gmlc_background,1);gml_Script_s_savegame(__yy__v721, _inst);return;};};break;}case 1:{gml_Script_s_create_tradelist(__yy__v721,_inst,1);var gmlpmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltradelist,0);if(yyGetBool(gmlpmap)){{if(yyfgreater(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"salary")),__yy_gml_errCheck(gml_Script_s_get_salary_total(__yy__v721,_inst))),yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsalary_cap),__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlboost_salary_cap)))){ {gml_Script_s_clear_freeagents(__yy__v721,_inst);break;};};yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile=gmlpmap;var gmlrating=clamp(yyfminus(__yy_gml_errCheck(gml_Script_s_get_player_rating(__yy__v721,_inst,gmlpmap)),4),1,10);if(yyflessequal(ds_map_find_value(gmlpmap,"attitude"),15)){gmlrating=1;};var gmlpick=gml_Script_s_get_trade_value_by_rating(__yy__v721,_inst,gmlrating);if(yyfgreater(gml_Script_s_remaining_picks_by_round(__yy__v721,_inst,gmlpick),0)){{ds_map_set(gmlpmap,"intrade_pick", gmlpick);gml_Script_s_savegame(__yy__v721,_inst);var gmlmsg=gml_Script_s_str(__yy__v721,_inst,"msg_TradeOffer");gmlmsg=string_replace(gmlmsg,"$teamname",gml_Script_s_get_team_name_by_id(__yy__v721,_inst,ds_map_find_value(gmlpmap,"teamid")));gmlmsg=string_replace(gmlmsg,"$playername",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))));gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position_full(__yy__v721, _inst,ds_map_find_value(gmlpmap,"position")));gmlmsg=string_replace(gmlmsg,"$num",string(gmlpick));gml_Script_s_create_message(__yy__v721,_inst,gml_Script_s_str(__yy__v721,_inst,"ui_TradeOffer"),gmlmsg,gml_Script_s_str(__yy__v721,_inst,"ui_Continue"),"",kgml_Script_btn_click_PlayerProfile_Back,"",global.gmlc_background,1);return;};}else {{gml_Script_s_clear_freeagents(__yy__v721,_inst);break;};};};};break;}case 2:{var gmlsize=ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster);if(yyfless(gmlsize, 4)){break;};var gmlpmap=gml_Script_s_get_random_player(__yy__v721,_inst,false);if(yyGetBool(gmlpmap)){{if((yyGetBool(yyfgreater(ds_map_find_value(gmlpmap,"age"),31)))||(yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"signed_year"),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear)))||(yyGetBool(yyflessequal(ds_map_find_value(gmlpmap,"attitude"),15)))){{break;};};yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile=gmlpmap;var gmlrating=clamp(yyfplus(__yy_gml_errCheck(gml_Script_s_get_player_rating(__yy__v721, _inst,gmlpmap)),4),1,10);ds_map_set(gmlpmap,"outtrade_pick",gml_Script_s_get_trade_value_by_rating(__yy__v721,_inst,gmlrating));gml_Script_s_savegame(__yy__v721,_inst);var gmltmap=gml_Script_s_get_offer_team(__yy__v721,_inst,gmlpmap);var gmlmsg=gml_Script_s_str(__yy__v721,_inst,"msg_TradeRequest");gmlmsg=string_replace(gmlmsg,"$teamname",ds_map_find_value(gmltmap,"name"));gmlmsg=string_replace(gmlmsg,"$playername",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(gmlpmap, "lname"))));gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position_full(__yy__v721,_inst,ds_map_find_value(gmlpmap,"position")));gmlmsg=string_replace(gmlmsg,"$num",string(ds_map_find_value(gmlpmap,"outtrade_pick")));gml_Script_s_create_message(__yy__v721,_inst,gml_Script_s_str(__yy__v721,_inst,"ui_TradeRequest"),gmlmsg,gml_Script_s_str(__yy__v721,_inst,"ui_Continue"),"",kgml_Script_btn_click_PlayerProfile_Back,"",global.gmlc_background,1);return;};};break;}};};};};};};if((yyGetBool(!yyGetBool(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlprematch_dilemma_done)))&&(yyGetBool(!yyGetBool(gml_Script_s_is_bye_week(__yy__v721,_inst,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek))))&&(yyGetBool(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear,1)))){{if(yyGetBool(gml_Script_s_do_prematch_dilemma(__yy__v721,_inst,false))){return;};};};yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlprematch_dilemma_done=true;gml_Script_s_savegame(__yy__v721,_inst);gml_Script_s_play(__yy__v721,_inst,1);}}};}}function gml_GlobalScript_s_create_draftlist(_inst,_other){(_inst.gmls_create_draftlist=__yy_method(_inst,gml_Script_s_create_draftlist));}function gml_Script_s_create_draftlist(_inst,_other){{gml_Script_slog(_inst,_other,"s_create_draftlist");{var __yy__v722=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v723 in __yy__v722){if(!__yy__v722.hasOwnProperty(__yy__v723))continue; var __yy__v724=__yy__v722[__yy__v723];{__yy__v724.gmlinterviews=10;var ___sw478___=__yy__v724.gmlop_difficulty;var ___swc479___=-1;if(yyCompareVal(___sw478___,0,g_GMLMathEpsilon,false)==0){___swc479___=0;}else if(yyCompareVal(___sw478___,1,g_GMLMathEpsilon,false)==0){___swc479___=1;}else if(yyCompareVal(___sw478___,2,g_GMLMathEpsilon,false)==0){___swc479___=2;}else if(yyCompareVal(___sw478___,3,g_GMLMathEpsilon,false)==0){___swc479___=3;}else if(yyCompareVal(___sw478___,4,g_GMLMathEpsilon,false)==0){___swc479___=4; }switch(___swc479___){case 0:{__yy__v724.gmlinterviews=yyfplus(10,__yy_gml_errCheck(round(yyfdivide(__yy_gml_errCheck(yyfplus(5,__yy_gml_errCheck(__yy__v724.gmlsuppress_difficulty))),2))));break;}case 1:{__yy__v724.gmlinterviews=20;break;}case 2:{__yy__v724.gmlinterviews=15;break;}case 3:{__yy__v724.gmlinterviews=10;break;}case 4:{__yy__v724.gmlinterviews=5;break;}};__yy__v724.gmlinterviews=yyfplus(__yy__v724.gmlinterviews,yyftime(__yy_gml_errCheck(gml_Script_s_count_trait_scout(__yy__v724,_inst)),3)); var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v724.gmldraftlist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_map_destroy(ds_list_find_value(__yy__v724.gmldraftlist,gmli));ds_list_set(__yy__v724.gmldraftlist,gmli,(-1));}};ds_list_clear(__yy__v724.gmldraftlist);var gmlwins=0;var gmllosses=0;var gmlties=0;var gmlmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhistory,yyfminus(__yy_gml_errCheck(ds_list_size(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlhistory)),1));if((yyGetBool(gmlmap))&&(yyGetBool(ds_exists(gmlmap,1)))&&(yyGetBool(ds_map_exists(gmlmap,"wins")))){{gmlwins=real(ds_map_find_value(gmlmap,"wins"));gmllosses=real(ds_map_find_value(gmlmap,"losses"));gmlties=real(ds_map_find_value(gmlmap,"ties"));};};var gmlstr=yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(string(gmlwins)),"-"),__yy_gml_errCheck(string(gmllosses))),"-"),__yy_gml_errCheck(string(gmlties)));gml_Script_slog(__yy__v724,_inst,gmlstr); var gmlnum_games=yyfplus(yyfplus(__yy_gml_errCheck(gmlwins),__yy_gml_errCheck(gmllosses)),__yy_gml_errCheck(gmlties));var gmlprc=0;if(yyfgreater(gmlnum_games,0)){gmlprc=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(gmlwins),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlties),0.5)))),__yy_gml_errCheck(gmlnum_games));};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v724.gmlhistory));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ var gmlmap=ds_list_find_value(__yy__v724.gmlhistory,gmli);if((yyGetBool(gmlmap))&&(yyGetBool(ds_map_exists(gmlmap,"year")))&&(yyGetBool(yyfequal(real(ds_map_find_value(gmlmap,"year")),yyfminus(__yy_gml_errCheck(__yy__v724.gmlyear),1))))){{if(yyfnotequal(ds_map_find_value(gmlmap,"tla"),ds_map_find_value(__yy__v724.gmlmyteam,"tla"))){{gmlprc=yyftime(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(gml_Script_s_get_team_offense_with_reputation_boost(__yy__v724,_inst,__yy__v724.gmlmyteam)),__yy_gml_errCheck(gml_Script_s_get_team_defense_with_reputation_boost(__yy__v724, _inst,__yy__v724.gmlmyteam)))),0.05);};};break;};};}};var gmli=1;for(;yyflessequal(gmli,50);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlmax_skill=lerp(8.5,5.5,gmlprc);if(yyfequal(__yy__v724.gmlyear,2)){gmlmax_skill=8;};if(yyfless(gmli,5)){gmlmax_skill=8;};__yy__v724.gmlpos=yyfmod(__yy_gml_errCheck(gmli),10);__yy__v724.gmlpos=yyfplus(__yy__v724.gmlpos,1);if((yyGetBool(irandom(1)))&&(yyGetBool((yyGetBool(yyfequal(__yy__v724.gmlpos, 8)))||(yyGetBool(yyfequal(__yy__v724.gmlpos,9)))))){__yy__v724.gmlpos=irandom_range(1,10);};if(yyfequal(__yy__v724.gmlpos,10)){gmlmax_skill=yyftime(gmlmax_skill,random_range(0.5,0.8));};var gmlpmap=gml_Script_s_create_player(__yy__v724,_inst,__yy__v724.gmlpos,gml_Script_s_rookie_age_internal(__yy__v724,_inst),2,round(gmlmax_skill));if((yyGetBool(yyfequal(__yy__v724.gmlpos,1)))&&(yyGetBool(yyfgreater(ds_map_find_value(gmlpmap,"strength"),4)))){{ds_map_set(gmlpmap,"strength",4);ds_map_set(gmlpmap,"salary", gml_Script_s_get_new_salary(__yy__v724,_inst,gmlpmap));if(yyGetBool(gml_Script_s_is_co_mode(__yy__v724,_inst))){{ds_map_set(gmlpmap,"rc_cost",gml_Script_s_create_player_get_RC_cost(__yy__v724,_inst,gmlpmap));};};};};if(yyGetBool(gml_Script_s_is_co_mode(__yy__v724,_inst))){{gml_Script_s_college_correct_new_player(__yy__v724,_inst,gmlpmap);if(yyfless(ds_map_find_value(gmlpmap,"percent_grade"),79)){{ds_map_set(gmlpmap,"percent_grade",79);gml_Script_s_refresh_suspended(__yy__v724,_inst,gmlpmap,false); };};};};ds_list_add(__yy__v724.gmldraftlist,gmlpmap);}};__yy__v724.gmldraftlist=gml_Script_s_sort_players(__yy__v724,_inst,__yy__v724.gmldraftlist,2);gml_Script_s_savegame(__yy__v724,_inst);}}};}}function gml_GlobalScript_s_sound_audience_tck(_inst,_other){(_inst.gmls_sound_audience_tck=__yy_method(_inst,gml_Script_s_sound_audience_tck));}function gml_Script_s_sound_audience_tck(_inst,_other){{if((yyGetBool(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))))||(yyGetBool(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlgamepractice))){return;};var gmlsnd=audio_play_sound(YYASSET_REF(0x02000001),1,false);audio_sound_gain(gmlsnd,0.5,0);}}function gml_GlobalScript_s_create_freeagentlist(_inst,_other){(_inst.gmls_create_freeagentlist=__yy_method(_inst,gml_Script_s_create_freeagentlist));}function gml_Script_s_create_freeagentlist(_inst,_other,argument0){{{var __yy__v725=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v726 in __yy__v725){if(!__yy__v725.hasOwnProperty(__yy__v726))continue; var __yy__v727=__yy__v725[__yy__v726];{while(yyfless(ds_list_size(__yy__v727.gmlfreeagentlist),argument0)){ds_list_add(__yy__v727.gmlfreeagentlist,gml_Script_s_create_freeagent(__yy__v727,_inst))};__yy__v727.gmlfreeagentlist=gml_Script_s_sort_players(__yy__v727,_inst,__yy__v727.gmlfreeagentlist,2);}}};}}function gml_GlobalScript_s_create_freeagent(_inst,_other){(_inst.gmls_create_freeagent=__yy_method(_inst,gml_Script_s_create_freeagent));}function gml_Script_s_create_freeagent(_inst,_other){{var ___sw482___=irandom(2); var ___swc483___=-1;if(yyCompareVal(___sw482___,0,g_GMLMathEpsilon,false)==0){___swc483___=0;}else if(yyCompareVal(___sw482___,1,g_GMLMathEpsilon,false)==0){___swc483___=1;}else if(yyCompareVal(___sw482___,2,g_GMLMathEpsilon,false)==0){___swc483___=2;}switch(___swc483___){case 0:{var gmlpmap=gml_Script_s_create_player(_inst,_other,gml_Script_s_get_required_position(_inst,_other,false),gml_Script_s_rookie_age_internal(_inst,_other),1,2);ds_map_set(gmlpmap,"attitude",irandom_range(15,90));ds_map_set(gmlpmap, "walk_on",1);return gmlpmap;break;}case 1:{var gmlpmap=gml_Script_s_create_player(_inst,_other,gml_Script_s_get_required_position(_inst,_other,false),irandom_range(33,40),1,3);ds_map_set(gmlpmap,"stamina",1);ds_map_set(gmlpmap,"max_stamina",1);ds_map_set(gmlpmap,"walk_on",1);return gmlpmap;break;}case 2:{var gmlpmap=gml_Script_s_create_player(_inst,_other,gml_Script_s_get_required_position(_inst,_other,false),0,1,4);ds_map_set(gmlpmap,"attitude",irandom_range(5,15));ds_map_set(gmlpmap,"walk_on",1);return gmlpmap; break;}};}}function gml_GlobalScript_s_create_tradelist(_inst,_other,argument0){(_inst.gmls_create_tradelist=__yy_method(_inst,gml_Script_s_create_tradelist));}function gml_Script_s_create_tradelist(_inst,_other,argument0){{{var __yy__v728=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v729 in __yy__v728){if(!__yy__v728.hasOwnProperty(__yy__v729))continue;var __yy__v730=__yy__v728[__yy__v729];{while(yyfless(ds_list_size(__yy__v730.gmltradelist),argument0)){{var gmlpmap=gml_Script_s_create_player(__yy__v730, _inst,gml_Script_s_get_required_position(__yy__v730,_inst,false),irandom_range(yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(__yy__v730,_inst)),1),40),1,10);do {{ds_map_set(gmlpmap,"teamid",gml_Script_s_get_random_team_id(__yy__v730,_inst));}}while(!(yyfnotequal(ds_map_find_value(gmlpmap,"teamid"),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id)));ds_list_add(__yy__v730.gmltradelist,gmlpmap);}};__yy__v730.gmltradelist=gml_Script_s_sort_players(__yy__v730,_inst,__yy__v730.gmltradelist, 2);}}};}}function gml_GlobalScript_s_create_storelist(_inst,_other){(_inst.gmls_create_storelist=__yy_method(_inst,gml_Script_s_create_storelist));}function gml_Script_s_create_storelist(_inst,_other,argument0){{gml_Script_slog(_inst,_other,"s_create_storelist");{var __yy__v731=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v732 in __yy__v731){if(!__yy__v731.hasOwnProperty(__yy__v732))continue;var __yy__v733=__yy__v731[__yy__v732];{var gmlsize=ds_list_size(__yy__v733.gmlstorelist);if(yyfgreater(argument0, 0)){{for(var __yy__v734=0,__yy__v735=yyGetInt32(argument0);__yy__v734<__yy__v735;__yy__v734++){{if(yyfgreater(gmlsize,0)){{var gmli=irandom(yyfminus(__yy_gml_errCheck(gmlsize),1));ds_map_destroy(ds_list_find_value(__yy__v733.gmlstorelist,gmli));ds_list_set(__yy__v733.gmlstorelist,gmli,(-1));ds_list_delete(__yy__v733.gmlstorelist,gmli);gmlsize=yyfminus(gmlsize,1);};};}};};};var gmll=0;for(;yyfless(gmll,2);(g_yyPrePostObject__=gmll,gmll=(g_yyPrePostObject__ instanceof Long?gmll.add(1):++gmll),g_yyPrePostObject__)){ {var gmli=1;for(;yyflessequal(gmli,10);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{if(yyfless(gml_Script_s_count_players_by_position_store(__yy__v733,_inst,gmli),2)){{if(yyfequal(gmli,9)){continue;};var gmllower_rating=false;if((yyGetBool(argument0))||(yyGetBool(yyfequal(gmll,1)))){gmllower_rating=true;};ds_list_add(__yy__v733.gmlstorelist,gml_Script_s_create_player_storelist(__yy__v733,_inst,gmli,gmllower_rating));};};}};}};gml_Script_slog(__yy__v733, _inst,yyfplus("Storelist size = ",__yy_gml_errCheck(string(ds_list_size(__yy__v733.gmlstorelist)))));__yy__v733.gmlstorelist=gml_Script_s_sort_hirelist(__yy__v733,_inst,__yy__v733.gmlstorelist);}}};}}function gml_GlobalScript_s_create_player_storelist(_inst,_other){(_inst.gmls_create_player_storelist=__yy_method(_inst,gml_Script_s_create_player_storelist));}function gml_Script_s_create_player_storelist(_inst,_other,argument0,argument1){{gml_Script_slog(_inst,_other,"s_create_player_storelist");var gmlmax_rating=10; if(yyGetBool(argument1)){{gmlmax_rating=yyfminus(8,__yy_gml_errCheck(floor(yyfdivide(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek),3))));if(yyfless(gmlmax_rating,4)){gmlmax_rating=4;};};};var gmlpmap=gml_Script_s_create_player(_inst,_other,argument0,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),2),__yy_gml_errCheck(irandom(5))),yyfminus(__yy_gml_errCheck(gmlmax_rating),2),gmlmax_rating);ds_map_set(gmlpmap,"attitude",irandom_range(50,100)); ds_map_set(gmlpmap,"salary",round(yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"salary")),0.8)));var ___sw486___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_difficulty;var ___swc487___=-1;if(yyCompareVal(___sw486___,0,g_GMLMathEpsilon,false)==0){___swc487___=0;}else if(yyCompareVal(___sw486___,1,g_GMLMathEpsilon,false)==0){___swc487___=1;}else if(yyCompareVal(___sw486___,2,g_GMLMathEpsilon,false)==0){___swc487___=2;}else if(yyCompareVal(___sw486___,3,g_GMLMathEpsilon,false)==0){___swc487___=3; }else if(yyCompareVal(___sw486___,4,g_GMLMathEpsilon,false)==0){___swc487___=4;}switch(___swc487___){case 0:{ds_map_set(gmlpmap,"salary",round(yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"salary")),1)));break;}case 1:{break;}case 2:{ds_map_set(gmlpmap,"salary",round(yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"salary")),0.9)));break;}case 3:{ds_map_set(gmlpmap,"salary",round(yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"salary")),1)));break;}case 4:{ds_map_set(gmlpmap,"salary",round(yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap, "salary")),1.1)));break;}};ds_map_set(gmlpmap,"creditcost",round(yyfplus(__yy_gml_errCheck(gml_Script_s_get_player_rating(_inst,_other,gmlpmap)),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"salary")),0.5)))));ds_map_set(gmlpmap,"contract",3);if(yyGetBool(argument1)){ds_map_set(gmlpmap,"attitude",irandom_range(20,90));};return gmlpmap;}}function gml_GlobalScript_s_count_hires_by_position(_inst,_other,argument0){(_inst.gmls_count_hires_by_position=__yy_method(_inst,gml_Script_s_count_hires_by_position)); }function gml_Script_s_count_hires_by_position(_inst,_other,argument0){{{var __yy__v736=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v737 in __yy__v736){if(!__yy__v736.hasOwnProperty(__yy__v737))continue;var __yy__v738=__yy__v736[__yy__v737];{var gmlcount=0;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v738.gmlhirelist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v738.gmlhirelist,gmli);if(yyfequal(ds_map_find_value(gmlpmap, "position"),argument0)){(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__);};}};return gmlcount;}}};}}function gml_GlobalScript_s_count_players_by_position_store(_inst,_other,argument0){(_inst.gmls_count_players_by_position_store=__yy_method(_inst,gml_Script_s_count_players_by_position_store));}function gml_Script_s_count_players_by_position_store(_inst,_other,argument0){{{var __yy__v739=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v740 in __yy__v739){ if(!__yy__v739.hasOwnProperty(__yy__v740))continue;var __yy__v741=__yy__v739[__yy__v740];{var gmlcount=0;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v741.gmlstorelist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v741.gmlstorelist,gmli);if(yyfequal(ds_map_find_value(gmlpmap,"position"),argument0)){(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount), g_yyPrePostObject__);};}};return gmlcount;}}};}}function gml_GlobalScript_s_get_hire_shortlist(_inst,_other,argument0){(_inst.gmls_get_hire_shortlist=__yy_method(_inst,gml_Script_s_get_hire_shortlist));}function gml_Script_s_get_hire_shortlist(_inst,_other,argument0){{{var __yy__v742=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v743 in __yy__v742){if(!__yy__v742.hasOwnProperty(__yy__v743))continue;var __yy__v744=__yy__v742[__yy__v743];{var gmlshortlist=ds_list_create();var gmlstaffpos=argument0;var gmli=0; for(;yyfless(gmli,ds_list_size(__yy__v744.gmlhirelist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v744.gmlhirelist,gmli);if(yyfequal(ds_map_find_value(gmlpmap,"position"),gmlstaffpos)){ds_list_add(gmlshortlist,gmlpmap);};}};return gmlshortlist;}}};}}function gml_GlobalScript_s_reset_draft_picks(_inst,_other){(_inst.gmls_reset_draft_picks=__yy_method(_inst,gml_Script_s_reset_draft_picks));}function gml_Script_s_reset_draft_picks(_inst, _other){{{var __yy__v745=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v746 in __yy__v745){if(!__yy__v745.hasOwnProperty(__yy__v746))continue;var __yy__v747=__yy__v745[__yy__v746];{__yy__v747.gmldraft_picks=__yy_gml_array_check(__yy__v747.gmldraft_picks,2785252323);__yy__v747.gmldraft_picks[__yy_gml_array_check_index_set(0)]=yyfplus(__yy__v747.gmldraft_picks[__yy_gml_array_check_index_set(0)],1);__yy__v747.gmldraft_picks[__yy_gml_array_check_index_set(1)]=yyfplus(__yy__v747.gmldraft_picks[__yy_gml_array_check_index_set(1)], 1);__yy__v747.gmldraft_picks[__yy_gml_array_check_index_set(2)]=yyfplus(__yy__v747.gmldraft_picks[__yy_gml_array_check_index_set(2)],1);gml_Script_s_savegame(__yy__v747,_inst);}}};}}function gml_GlobalScript_poki_btn_click_CoinBoost(_inst,_other){(_inst.gmlpoki_btn_click_CoinBoost=__yy_method(_inst,gml_Script_poki_btn_click_CoinBoost));(_inst.gmlpoki_CoinBoost_No=__yy_method(_inst,gml_Script_poki_CoinBoost_No));(_inst.gmlpoki_CoinBoost_Yes=__yy_method(_inst,gml_Script_poki_CoinBoost_Yes));}function gml_Script_poki_btn_click_CoinBoost(_inst, _other){{gml_Script_slog(_inst,_other,"poki_btn_click_CoinBoost");gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"poki_CoinBoostMsg"),gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_poki_CoinBoost_No,kgml_Script_poki_CoinBoost_Yes,global.gmlc_background,1);}}function gml_Script_poki_CoinBoost_No(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);layer_set_visible(layer_get_id("Poki_Layer"),false);}}function gml_Script_poki_CoinBoost_Yes(_inst, _other){{global.gmlpoki_done_post_match_reward=true;gml_Script_poki_CoinBoost_No(_inst,_other);gml_Script_poki_pause(_inst,_other);gml_Script_poki_rewarded_break(_inst,_other,kgml_Script__poki_rewarded_ad,"rewarded_break");}}function gml_GlobalScript_s_update_draft_page(_inst,_other){(_inst.gmls_update_draft_page=__yy_method(_inst,gml_Script_s_update_draft_page));}function gml_Script_s_update_draft_page(_inst,_other){{{var __yy__v748=GetWithArray(YYASSET_REF(0x00000032));for(var __yy__v749 in __yy__v748){ if(!__yy__v748.hasOwnProperty(__yy__v749))continue;var __yy__v750=__yy__v748[__yy__v749];instance_destroy(__yy__v750);}};var gmlrx=48;var gmlry=48;var gmlfirst=yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraft_page),1)),10);var gmllast=min(yyfplus(__yy_gml_errCheck(gmlfirst),10),ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraftlist));var gmlcount=0;var gmlr=gmlfirst;for(;yyfless(gmlr,gmllast);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr), g_yyPrePostObject__)){{_inst.gmlprofile=__yy_gml_array_check(_inst.gmlprofile,4083195518);_inst.gmlprofile[__yy_gml_array_check_index_set(gmlcount)]=instance_create_layer(gmlrx,gmlry,"Instances",YYASSET_REF(0x00000032));gmlrx=yyfplus(gmlrx,80);yyInst(_inst,_other,_inst.gmlprofile[__yy_gml_array_check_index(gmlcount,_inst.gmlprofile)]).gmlpmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraftlist,gmlr);if(yyfequal((g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount), g_yyPrePostObject__),4)){{gmlrx=48;gmlry=yyfplus(gmlry,88);};};}};var gmlpg=yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Page"))," "),__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraft_page))),"/"),__yy_gml_errCheck(string(_inst.gmlpage_max)));if(yyflessequal(_inst.gmlpage_max,1)){gmlpg=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Page"))," "),__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraft_page))); };yyInst(_inst,_other,100064).gmltext=gmlpg;yyInst(_inst,_other,100062).visible=true;yyInst(_inst,_other,100063).visible=true;if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraft_page,1)){yyInst(_inst,_other,100062).visible=false;};if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraft_page,_inst.gmlpage_max)){yyInst(_inst,_other,100063).visible=false;};}}function gml_GlobalScript_s_update_freeagents_page(_inst,_other){(_inst.gmls_update_freeagents_page=__yy_method(_inst,gml_Script_s_update_freeagents_page)); }function gml_Script_s_update_freeagents_page(_inst,_other){{gml_Script_slog(_inst,_other,"s_update_freeagents");{var __yy__v751=GetWithArray(YYASSET_REF(0x00000032));for(var __yy__v752 in __yy__v751){if(!__yy__v751.hasOwnProperty(__yy__v752))continue;var __yy__v753=__yy__v751[__yy__v752];instance_destroy(__yy__v753);}};var gmllist=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfreeagentlist;var gmlsize=ds_list_size(gmllist);if(yyfless(gmlsize,1)){{gml_Script_slog(_inst,_other,"tradeoffer");gmllist=yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmltradelist;gmlsize=ds_list_size(gmllist);yyInst(_inst,_other,100123).gmltext=gml_Script_s_str(_inst,_other,"ui_TradeOffer");};};var gmlgap=4;var gmlmax_roster=gml_Script_s_get_roster_cap(_inst,_other);var gmlcards_per_row=yyfdivide(__yy_gml_errCheck(gmlmax_roster),2);if(yyflessequal(gmlsize,10)){{gmlcards_per_row=5;gmlgap=8;};};if(yyflessequal(gmlsize,8)){gmlcards_per_row=4;};if(yyflessequal(gmlsize,6)){gmlcards_per_row=3;};var gmlpx=round(yyftime(__yy_gml_errCheck(g_pBuiltIn.room_width), 0.5));var gmlpy=round(yyftime(__yy_gml_errCheck(g_pBuiltIn.room_height),0.49));var gmlpw=yyfplus(__yy_gml_errCheck(sprite_get_width(YYASSET_REF(0x010000AC))),__yy_gml_errCheck(gmlgap));if(yyfgreater(gmlsize,gmlcards_per_row)){{gmlpy=yyfminus(gmlpy,44);gmlpx=yyfminus(gmlpx,yyftime(yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlcards_per_row),1)),__yy_gml_errCheck(gmlpw)),0.5));};}else {{gmlpx=yyfminus(gmlpx,yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlsize),1)),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlpw), 0.5))));};};var gmli=0;for(;yyfless(gmli,gmlsize);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{_inst.gmlprofile=__yy_gml_array_check(_inst.gmlprofile,4083195518);_inst.gmlprofile[__yy_gml_array_check_index_set(gmli)]=instance_create_layer(0,0,"Instances",YYASSET_REF(0x00000032));yyInst(_inst,_other,_inst.gmlprofile[__yy_gml_array_check_index(gmli,_inst.gmlprofile)]).gmlpmap=ds_list_find_value(gmllist,gmli);yyInst(_inst,_other,_inst.gmlprofile[__yy_gml_array_check_index(gmli, _inst.gmlprofile)]).x=yyfminus(__yy_gml_errCheck(gmlpx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlpw),0.5)));yyInst(_inst,_other,_inst.gmlprofile[__yy_gml_array_check_index(gmli,_inst.gmlprofile)]).y=yyfminus(__yy_gml_errCheck(gmlpy),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlprofile[__yy_gml_array_check_index(0,_inst.gmlprofile)]).sprite_height),0.5)));gmlpx=yyfplus(gmlpx,gmlpw);if(yyfequal(gmli,yyfminus(__yy_gml_errCheck(gmlcards_per_row),1))){{var gmlsz=yyfminus(__yy_gml_errCheck(gmlsize), __yy_gml_errCheck(gmlcards_per_row));gmlpx=yyftime(__yy_gml_errCheck(g_pBuiltIn.room_width),0.5);gmlpx=yyfminus(gmlpx,yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlsz),1)),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlpw),0.5))));gmlpy=yyfplus(gmlpy,88);};};}};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{yyInst(_inst,_other,100128).visible=false;};};}}function gml_GlobalScript_s_college_admissions_draft(_inst,_other){(_inst.gmls_check_draft_CO=__yy_method(_inst,gml_Script_s_check_draft_CO)); (_inst.gmls_college_free_agent_check=__yy_method(_inst,gml_Script_s_college_free_agent_check));(_inst.gmlbtn_respose_college_free_agent_yes=__yy_method(_inst,gml_Script_btn_respose_college_free_agent_yes));(_inst.gmlbtn_respose_college_free_agent_no=__yy_method(_inst,gml_Script_btn_respose_college_free_agent_no));(_inst.gmls_college_dilemma_check=__yy_method(_inst,gml_Script_s_college_dilemma_check));(_inst.gmls_college_admissions_check_trigger=__yy_method(_inst,gml_Script_s_college_admissions_check_trigger)); (_inst.gmls_college_admissions_pick_player=__yy_method(_inst,gml_Script_s_college_admissions_pick_player));(_inst.gmls_college_admissions_players_lost_per_round=__yy_method(_inst,gml_Script_s_college_admissions_players_lost_per_round));(_inst.gmls_college_admissions_draft_done=__yy_method(_inst,gml_Script_s_college_admissions_draft_done));(_inst.gmlbtn_response_college_admissions_draft_done_yes=__yy_method(_inst,gml_Script_btn_response_college_admissions_draft_done_yes));}function gml_Script_s_check_draft_CO(_inst, _other){{{var __yy__v754=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v755 in __yy__v754){if(!__yy__v754.hasOwnProperty(__yy__v755))continue;var __yy__v756=__yy__v754[__yy__v755];{gml_Script_slog(__yy__v756,_inst,"s_check_draft_CO");gml_Script_slog(__yy__v756,_inst,yyfplus("Week = ",__yy_gml_errCheck(string(__yy__v756.gmlweek))));gml_Script_slog(__yy__v756,_inst,yyfplus("Draft = ",__yy_gml_errCheck(string(__yy__v756.gmlcollege_admissions_draft_round))));if(yyfgreater(__yy__v756.gmlintro,0)){{gml_Script_slog(__yy__v756, _inst,"s_check_draft_CO... skip: Intro");gml_Script_s_play(__yy__v756,_inst,1);return;};};if(yyGetBool(gml_Script_s_college_admissions_check_trigger(__yy__v756,_inst))){{return;};};if(yyGetBool(gml_Script_s_college_free_agent_check(__yy__v756,_inst))){{return;};};if(yyGetBool(gml_Script_s_college_dilemma_check(__yy__v756,_inst))){{return;};};yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlprematch_dilemma_done=true;gml_Script_s_savegame(__yy__v756,_inst);gml_Script_s_play(__yy__v756,_inst,1);}}} ;}}function gml_Script_s_college_free_agent_check(_inst,_other){{var gmlforce=false;if((yyGetBool(yyfless(_inst.gmlweek,2)))||(yyGetBool(yyfgreater(_inst.gmlweek,7)))){{gml_Script_slog(_inst,_other,yyfplus(yyfplus("s_college_free_agent_check skip - Week(",__yy_gml_errCheck(string(_inst.gmlweek))),") Out of valid week range(2-7)"));return false;};};if(yyGetBool(_inst.gmloffers_done)){{gml_Script_slog(_inst,_other,"s_college_free_agent_check skip - Already checked this week");return false;};};var gmlrr=irandom(2); if(yyfless(gmlrr,2)){{gml_Script_slog(_inst,_other,"s_college_free_agent_check skip - 30% Random change failed");_inst.gmloffers_done=true;return false;};}else {{gml_Script_slog(_inst,_other,yyfplus(yyfplus("s_college_free_agent_check passed 30% chance with r[",__yy_gml_errCheck(string(gmlrr))),"]"));};};var gmlless5=yyfless(ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster),5);if(yyGetBool(gmlforce)){{gmlless5=true;};};var gmlhasQB=false;var gmlhasRB=false;var gmli=0;for(;yyfless(gmli, ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster,gmli);if(yyfequal(ds_map_find_value(gmlpmap,"position"),1)){{gmlhasQB=true;};};if(yyfequal(ds_map_find_value(gmlpmap,"position"),2)){{gmlhasRB=true;};};}};var gmlcQB=0;var gmlcRB=0;var gmlcOther=0;if(yyGetBool(gmlless5)){{if((yyGetBool(!yyGetBool(gmlhasQB)))&&(yyGetBool(!yyGetBool(gmlhasRB)))){ {gmlcQB=0.3;gmlcRB=0.3;gmlcOther=0.4;};}else {if(!yyGetBool(gmlhasQB)){{gmlcQB=0.4;gmlcRB=0.1;gmlcOther=0.5;};}else {if(!yyGetBool(gmlhasRB)){{gmlcQB=0.1;gmlcRB=0.4;gmlcOther=0.5;};}else {{gmlcQB=0.1;gmlcRB=0.1;gmlcOther=0.8;};};};};};}else {{if((yyGetBool(!yyGetBool(gmlhasQB)))&&(yyGetBool(!yyGetBool(gmlhasRB)))){{gmlcQB=0.5;gmlcRB=0.5;gmlcOther=0;};}else {if(!yyGetBool(gmlhasQB)){{gmlcQB=1;gmlcRB=0;gmlcOther=0;};}else {if(!yyGetBool(gmlhasRB)){{gmlcQB=0;gmlcRB=1;gmlcOther=0;};}else {{gmlcQB=0;gmlcRB=0; gmlcOther=0;};};};};};};var gmlcTotal=yyfplus(yyfplus(__yy_gml_errCheck(gmlcQB),__yy_gml_errCheck(gmlcRB)),__yy_gml_errCheck(gmlcOther));if(yyfequal(gmlcTotal,0)){{gml_Script_slog(_inst,_other,"s_college_free_agent_check skip - Position selection chance is 0");return false;};};var gmlr=random_range(0,gmlcTotal);var gmlpos=(-1);if(yyflessequal(gmlr,gmlcQB)){{gmlpos=1;};}else {if(yyflessequal(gmlr,yyfplus(__yy_gml_errCheck(gmlcQB),__yy_gml_errCheck(gmlcRB)))){{gmlpos=2;};}else {if(yyflessequal(gmlr,yyfplus(yyfplus(__yy_gml_errCheck(gmlcQB), __yy_gml_errCheck(gmlcRB)),__yy_gml_errCheck(gmlcOther)))){{gmlpos=gml_Script_s_get_required_position_no_QB_RB(_inst,_other,false);};};};};if(yyfequal(gmlpos,(-1))){{gml_Script_slog(_inst,_other,"s_college_free_agent_check skip - Error. Failed pos select");return false;};};_inst.gmloffers_done=true;gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("s_college_free_agent_check: Trigger! [cQB:",__yy_gml_errCheck(string(gmlcQB)))," cRB:"),__yy_gml_errCheck(string(gmlcRB))), " cOther:"),__yy_gml_errCheck(string(gmlcOther)))," r:"),__yy_gml_errCheck(string(gmlr))),"]"));gml_Script_s_clear_freeagents(_inst,_other);var gmlpmap=gml_Script_s_create_player(_inst,_other,gmlpos,gml_Script_s_rookie_age_internal(_inst,_other),1,2);ds_map_set(gmlpmap,"attitude",irandom_range(30,90));ds_map_set(gmlpmap,"rc_cost",0);ds_map_set(gmlpmap,"walk_on",1);ds_map_set(gmlpmap,"teamid",yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id);gml_Script_s_college_correct_new_player(_inst,_other, gmlpmap);ds_map_set(gmlpmap,"teamid",(-1));ds_list_add(_inst.gmlfreeagentlist,gmlpmap);if((yyGetBool(yyfequal(gmlforce,false)))&&(yyGetBool(gml_Script_s_position_already_on_roster(_inst,_other,ds_map_find_value(gmlpmap,"position"))))){{gml_Script_slog(_inst,_other,yyfplus(yyfplus("s_college_free_agent_check skip - Already got one of these (",__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"position")))),")"));return false;};};var gmlstaffmap=(-4);if(yyGetBool(gml_Script_s_is_offensive_player(_inst, _other,gmlpmap))){{gmlstaffmap=gml_Script_s_get_staff(_inst,_other,102);};}else {{gmlstaffmap=gml_Script_s_get_staff(_inst,_other,101);};};var gmlmsg=gml_Script_s_str(_inst,_other,"ui_WalkOnStudentOffer");gmlmsg=string_replace(gmlmsg,"$playername",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))));gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position_full(_inst,_other,ds_map_find_value(gmlpmap,"position"))); if(yyGetBool(gmlstaffmap)){gmlmsg=string_replace(gmlmsg,"$coachname",gml_Script_s_get_player_name(_inst,_other,gmlstaffmap,true));};gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_WalkOnStudent"),gmlmsg,gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_btn_respose_college_free_agent_no,kgml_Script_btn_respose_college_free_agent_yes,global.gmlc_background,1);return true;}}function gml_Script_btn_respose_college_free_agent_yes(_inst, _other){{room_goto(YYASSET_REF(0x03000007));}}function gml_Script_btn_respose_college_free_agent_no(_inst,_other){{gml_Script_s_clear_freeagents(_inst,_other);gml_Script_s_msg_clear(_inst,_other);}}function gml_Script_s_college_dilemma_check(_inst,_other){{if((yyGetBool(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlprematch_dilemma_done)))&&(yyGetBool(!yyGetBool(gml_Script_s_is_bye_week(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek))))&&(yyGetBool(yyfless(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlweek,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear,1)))){{if(yyGetBool(gml_Script_s_do_prematch_dilemma(_inst,_other,false))){{return true;};};};};return false;}}function gml_Script_s_college_admissions_check_trigger(_inst,_other){{if(yyfequal(_inst.gmlweek,1)){{if(yyfgreater(_inst.gmlcollege_admissions_draft_round,0)){{if(yyfequal(_inst.gmlcollege_admissions_draft_round, 1)){{gml_Script_s_create_draftlist(_inst,_other);};};room_goto(YYASSET_REF(0x03000005));return true;};};};};return false;}}function gml_Script_s_college_admissions_pick_player(_inst,_other,argument0){{gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus("s_college_admissions_pick_player -> Drafted player at pos #",__yy_gml_errCheck(string(argument0)))," during round "),__yy_gml_errCheck(string(_inst.gmlcollege_admissions_draft_round))));gml_Script_recruitment_credits_add(_inst,_other,yyftime((-1),__yy_gml_errCheck(ds_map_find_value(_inst.gmlplayer_profile, "rc_cost"))));ds_list_delete(_inst.gmldraftlist,argument0);var gmlloseCount=gml_Script_s_college_admissions_players_lost_per_round(_inst,_other);var gmli=0;for(;yyfless(gmli,gmlloseCount);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmllPos=irandom_range(0,yyfminus(__yy_gml_errCheck(ds_list_size(_inst.gmldraftlist)),1));gml_Script_slog(_inst,_other,yyfplus(".. another team picked player at pos #",__yy_gml_errCheck(string(gmllPos)))); ds_list_delete(_inst.gmldraftlist,gmllPos);}};(g_yyPrePostObject__=_inst.gmlcollege_admissions_draft_round,_inst.gmlcollege_admissions_draft_round=(g_yyPrePostObject__ instanceof Long?_inst.gmlcollege_admissions_draft_round.add(1):++_inst.gmlcollege_admissions_draft_round),g_yyPrePostObject__);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_admissions_doing_player_draft_sign=true;}}function gml_Script_s_college_admissions_players_lost_per_round(_inst,_other){{var ___sw490___=_inst.gmlcollege_admissions_draft_round; var ___swc491___=-1;if(yyCompareVal(___sw490___,1,g_GMLMathEpsilon,false)==0){___swc491___=0;}else if(yyCompareVal(___sw490___,2,g_GMLMathEpsilon,false)==0){___swc491___=1;}else if(yyCompareVal(___sw490___,3,g_GMLMathEpsilon,false)==0){___swc491___=2;}else if(yyCompareVal(___sw490___,4,g_GMLMathEpsilon,false)==0){___swc491___=3;}else if(yyCompareVal(___sw490___,5,g_GMLMathEpsilon,false)==0){___swc491___=4;}else if(yyCompareVal(___sw490___,6,g_GMLMathEpsilon,false)==0){___swc491___=5;}else if(yyCompareVal(___sw490___, 7,g_GMLMathEpsilon,false)==0){___swc491___=6;}else if(yyCompareVal(___sw490___,8,g_GMLMathEpsilon,false)==0){___swc491___=7;}else if(yyCompareVal(___sw490___,9,g_GMLMathEpsilon,false)==0){___swc491___=8;}else if(yyCompareVal(___sw490___,10,g_GMLMathEpsilon,false)==0){___swc491___=9;}else if(yyCompareVal(___sw490___,11,g_GMLMathEpsilon,false)==0){___swc491___=10;}switch(___swc491___){case 0:{return 9;}case 1:{return 7;}case 2:{return 5;}case 3:{return 3;}case 4:{return 1;}case 5:{return 1;}case 6:{return 1;}case 7:{ return 1;}case 8:{return 1;}case 9:{return 1;}case 10:{return 1;}};return 0;}}function gml_Script_s_college_admissions_draft_done(_inst,_other){{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"ui_AdmissionsDraftConfirm"),gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_btn_response_college_admissions_draft_done_yes,global.gmlc_background,1);}}function gml_Script_btn_response_college_admissions_draft_done_yes(_inst, _other){{{var __yy__v757=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v758 in __yy__v757){if(!__yy__v757.hasOwnProperty(__yy__v758))continue;var __yy__v759=__yy__v757[__yy__v758];{__yy__v759.gmlcollege_admissions_draft_round=0;gml_Script_s_destroy_draftlist(__yy__v759,_inst);gml_Script_s_update_rank_after_adminssion_draft(__yy__v759,_inst);gml_Script_s_add_news(__yy__v759,_inst,gml_Script_s_str(__yy__v759,_inst,"news_DraftEnded"));__yy__v759.gmlstage=1;gml_Script_s_savegame(__yy__v759,_inst);room_goto(YYASSET_REF(0x0300000E)); }}};}}function gml_GlobalScript_s_remaining_picks(_inst,_other){(_inst.gmls_remaining_picks=__yy_method(_inst,gml_Script_s_remaining_picks));}function gml_Script_s_remaining_picks(_inst,_other){{{var __yy__v760=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v761 in __yy__v760){if(!__yy__v760.hasOwnProperty(__yy__v761))continue;var __yy__v762=__yy__v760[__yy__v761];{if(yyfless(__yy__v762.gmldraft_round,1)){return 0;};if(yyfgreater(__yy__v762.gmldraft_round,3)){return 0;};return __yy__v762.gmldraft_picks[__yy_gml_array_check_index(yyfminus(__yy_gml_errCheck(__yy__v762.gmldraft_round), 1),__yy__v762.gmldraft_picks)];}}};}}function gml_GlobalScript_s_remaining_picks_by_round(_inst,_other,argument0){(_inst.gmls_remaining_picks_by_round=__yy_method(_inst,gml_Script_s_remaining_picks_by_round));}function gml_Script_s_remaining_picks_by_round(_inst,_other,argument0){{var gmlpick_round=argument0;{var __yy__v763=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v764 in __yy__v763){if(!__yy__v763.hasOwnProperty(__yy__v764))continue;var __yy__v765=__yy__v763[__yy__v764];{if(yyfless(gmlpick_round, 1)){return 0;};if(yyfgreater(gmlpick_round,3)){return 0;};return __yy__v765.gmldraft_picks[__yy_gml_array_check_index(yyfminus(__yy_gml_errCheck(gmlpick_round),1),__yy__v765.gmldraft_picks)];}}};}}function gml_GlobalScript_s_get_trade_value(_inst,_other,argument0){(_inst.gmls_get_trade_value=__yy_method(_inst,gml_Script_s_get_trade_value));}function gml_Script_s_get_trade_value(_inst,_other,argument0){{var gmlrating=gml_Script_s_get_player_rating(_inst,_other,argument0);if(yyfgreaterequal(gmlrating,8)){ return 1;};if(yyfgreaterequal(gmlrating,4)){return 2;};return 3;}}function gml_GlobalScript_s_get_trade_value_by_rating(_inst,_other,argument0){(_inst.gmls_get_trade_value_by_rating=__yy_method(_inst,gml_Script_s_get_trade_value_by_rating));}function gml_Script_s_get_trade_value_by_rating(_inst,_other,argument0){{var gmlrating=argument0;if(yyfgreaterequal(gmlrating,8)){return 1;};if(yyfgreaterequal(gmlrating,4)){return 2;};return 3;}}function gml_GlobalScript_s_get_offer_team(_inst,_other,argument0){(_inst.gmls_get_offer_team=__yy_method(_inst, gml_Script_s_get_offer_team));}function gml_Script_s_get_offer_team(_inst,_other,argument0){{var gmlpmap=argument0;var gmlteam_id=yyfmod(__yy_gml_errCheck(round(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"skill"))),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"strength"))),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stamina"))),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"speed"))), __yy_gml_errCheck(ds_map_find_value(gmlpmap,"age"))),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"attitude"))))),32);if(yyfequal(gmlteam_id,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id)){(g_yyPrePostObject__=gmlteam_id,gmlteam_id=(g_yyPrePostObject__ instanceof Long?gmlteam_id.add(1):++gmlteam_id),g_yyPrePostObject__);};if(yyfless(gmlteam_id,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmin_team_id)){gmlteam_id=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmax_team_id;};if(yyfgreater(gmlteam_id, yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmax_team_id)){gmlteam_id=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmin_team_id;};return gml_Script_s_get_team_by_id(_inst,_other,gmlteam_id);}}function gml_GlobalScript_s_clear_trade_offers(_inst,_other){(_inst.gmls_clear_trade_offers=__yy_method(_inst,gml_Script_s_clear_trade_offers));}function gml_Script_s_clear_trade_offers(_inst,_other){{var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster));(g_yyPrePostObject__=gmli, gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster,gmli);ds_map_set(gmlpmap,"outtrade_pick",0);ds_map_set(gmlpmap,"intrade_pick",0);}};gml_Script_s_savegame(_inst,_other);}}function gml_GlobalScript_s_clear_freeagents(_inst,_other){(_inst.gmls_clear_freeagents=__yy_method(_inst,gml_Script_s_clear_freeagents));}function gml_Script_s_clear_freeagents(_inst,_other){{{var __yy__v766=GetWithArray(YYASSET_REF(0x00000062)); for(var __yy__v767 in __yy__v766){if(!__yy__v766.hasOwnProperty(__yy__v767))continue;var __yy__v768=__yy__v766[__yy__v767];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v768.gmltradelist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_map_destroy(ds_list_find_value(__yy__v768.gmltradelist,gmli));ds_list_set(__yy__v768.gmltradelist,gmli,(-1));}};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v768.gmlfreeagentlist));(g_yyPrePostObject__=gmli, gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v768.gmlfreeagentlist,gmli);if((yyGetBool(ds_exists(gmlpmap,1)))&&(yyGetBool(ds_map_exists(gmlpmap,"hof")))&&(yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"hof"),true)))){{ds_map_set(gmlpmap,"team_leave_reason","cut");ds_list_add(__yy__v768.gmlhoflist,gmlpmap);};}else {{ds_map_destroy(ds_list_find_value(__yy__v768.gmlfreeagentlist,gmli));ds_list_set(__yy__v768.gmlfreeagentlist,gmli, (-1));};};}};ds_list_clear(__yy__v768.gmltradelist);ds_list_clear(__yy__v768.gmlfreeagentlist);}}};gml_Script_s_savegame(_inst,_other);}}function gml_GlobalScript_s_clear_storelist(_inst,_other){(_inst.gmls_clear_storelist=__yy_method(_inst,gml_Script_s_clear_storelist));}function gml_Script_s_clear_storelist(_inst,_other){{{var __yy__v769=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v770 in __yy__v769){if(!__yy__v769.hasOwnProperty(__yy__v770))continue;var __yy__v771=__yy__v769[__yy__v770];{var gmli=0; for(;yyfless(gmli,ds_list_size(__yy__v771.gmlstorelist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_map_destroy(ds_list_find_value(__yy__v771.gmlstorelist,gmli));ds_list_set(__yy__v771.gmlstorelist,gmli,(-1));}};ds_list_clear(__yy__v771.gmlstorelist);}}};}}function gml_GlobalScript_s_end_draft_round(_inst,_other){(_inst.gmls_end_draft_round=__yy_method(_inst,gml_Script_s_end_draft_round));(_inst.gmls_destroy_draftlist=__yy_method(_inst, gml_Script_s_destroy_draftlist));}function gml_Script_s_end_draft_round(_inst,_other,argument0){{gml_Script_slog(_inst,_other,"s_end_draft_round");{var __yy__v772=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v773 in __yy__v772){if(!__yy__v772.hasOwnProperty(__yy__v773))continue;var __yy__v774=__yy__v772[__yy__v773];{var ___sw494___=__yy__v774.gmldraft_round;var ___swc495___=-1;if(yyCompareVal(___sw494___,1,g_GMLMathEpsilon,false)==0){___swc495___=0;}else if(yyCompareVal(___sw494___,2,g_GMLMathEpsilon, false)==0){___swc495___=1;}else if(yyCompareVal(___sw494___,3,g_GMLMathEpsilon,false)==0){___swc495___=2;}switch(___swc495___){case 0:{while(yyfgreater(ds_list_size(__yy__v774.gmldraftlist),35)){{var gmli=irandom(5);ds_map_destroy(ds_list_find_value(__yy__v774.gmldraftlist,gmli));ds_list_set(__yy__v774.gmldraftlist,gmli,(-1));ds_list_delete(__yy__v774.gmldraftlist,gmli);}};break;}case 1:{while(yyfgreater(ds_list_size(__yy__v774.gmldraftlist),20)){{var gmli=irandom(5);ds_map_destroy(ds_list_find_value(__yy__v774.gmldraftlist, gmli));ds_list_set(__yy__v774.gmldraftlist,gmli,(-1));ds_list_delete(__yy__v774.gmldraftlist,gmli);}};break;}case 2:{var gmlsize=ds_list_size(__yy__v774.gmldraftlist);if(yyfgreater(gmlsize,yyftime(__yy_gml_errCheck(__yy__v774.gmldraft_picks[__yy_gml_array_check_index(2,__yy__v774.gmldraft_picks)]),2))){{var gmli=irandom(yyfminus(__yy_gml_errCheck(gmlsize),1));ds_map_destroy(ds_list_find_value(__yy__v774.gmldraftlist,gmli));ds_list_set(__yy__v774.gmldraftlist,gmli,(-1));ds_list_delete(__yy__v774.gmldraftlist, gmli);};};break;}};__yy__v774.gmldraft_picks=__yy_gml_array_check(__yy__v774.gmldraft_picks,43673606);__yy__v774.gmldraft_picks[__yy_gml_array_check_index_set(yyfminus(__yy_gml_errCheck(__yy__v774.gmldraft_round),1))]=0;(g_yyPrePostObject__=__yy__v774.gmldraft_round,__yy__v774.gmldraft_round=(g_yyPrePostObject__ instanceof Long?__yy__v774.gmldraft_round.add(1):++__yy__v774.gmldraft_round),g_yyPrePostObject__);__yy__v774.gmldraft_page=1;if(yyGetBool(argument0)){__yy__v774.gmldraft_round=4;};if(yyfgreater(__yy__v774.gmldraft_round, 3)){{gml_Script_s_destroy_draftlist(__yy__v774,_inst);gml_Script_s_add_news(__yy__v774,_inst,gml_Script_s_str(__yy__v774,_inst,"news_DraftEnded"));__yy__v774.gmlstage=1;room_goto(YYASSET_REF(0x0300000E));};}else {if(!yyGetBool(__yy__v774.gmlqb_mode)){{__yy__v774.gmldodraftbanner=true;room_goto(YYASSET_REF(0x03000005));};};};}}};}}function gml_Script_s_destroy_draftlist(_inst,_other){{{var __yy__v775=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v776 in __yy__v775){if(!__yy__v775.hasOwnProperty(__yy__v776))continue; var __yy__v777=__yy__v775[__yy__v776];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v777.gmldraftlist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_map_destroy(ds_list_find_value(__yy__v777.gmldraftlist,gmli));ds_list_set(__yy__v777.gmldraftlist,gmli,(-1));}};ds_list_clear(__yy__v777.gmldraftlist);}}};gml_Script_s_reset_draft_picks(_inst,_other);}}function gml_GlobalScript_s_received_AI_kickoff(_inst,_other){(_inst.gmls_received_AI_kickoff=__yy_method(_inst, gml_Script_s_received_AI_kickoff));}function gml_Script_s_received_AI_kickoff(_inst,_other){{var gmlball=global.gmlmaster_ball;_inst.gmljforce=1;if(yyfequal(_inst.gmlfacing,(-1))){_inst.gmljdir=180;}else {_inst.gmljdir=0;};if(yyfequal(yyInst(_inst,_other,gmlball).gmlholder,_inst.id)){{if(yyGetBool(global.gmlgamepad)){{if(!yyGetBool(gml_Script_s_get_op_autorun(_inst,_other))){_inst.gmljforce=0;};};};return;};};if(yyfequal(_inst.gmloffense,yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmloffense)){ {if(yyfless(_inst.gmlnearest_opp_dist,100)){{gml_Script_s_aim_for_nearest_opponent(_inst,_other);_inst.gmljforce=1;};}else {{var gmlf=_inst.gmlfacing;if(yyfless(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmlgoaldist,1200)){gmlf=yyftime(__yy_gml_errCheck(real(!yyGetBool(_inst.gmlfacing))),0.35);};var ___sw498___=_inst.gmlinum;var ___swc499___=-1;if(yyCompareVal(___sw498___,1,g_GMLMathEpsilon,false)==0){___swc499___=0;}else if(yyCompareVal(___sw498___,2,g_GMLMathEpsilon,false)==0){___swc499___=1; }else if(yyCompareVal(___sw498___,3,g_GMLMathEpsilon,false)==0){___swc499___=2;}else if(yyCompareVal(___sw498___,4,g_GMLMathEpsilon,false)==0){___swc499___=3;}else if(yyCompareVal(___sw498___,5,g_GMLMathEpsilon,false)==0){___swc499___=4;}else if(yyCompareVal(___sw498___,6,g_GMLMathEpsilon,false)==0){___swc499___=5;}else if(yyCompareVal(___sw498___,7,g_GMLMathEpsilon,false)==0){___swc499___=6;}else if(yyCompareVal(___sw498___,8,g_GMLMathEpsilon,false)==0){___swc499___=7;}else if(yyCompareVal(___sw498___, 9,g_GMLMathEpsilon,false)==0){___swc499___=8;}else if(yyCompareVal(___sw498___,10,g_GMLMathEpsilon,false)==0){___swc499___=9;}else if(yyCompareVal(___sw498___,11,g_GMLMathEpsilon,false)==0){___swc499___=10;}switch(___swc499___){case 0:{_inst.gmljdir=point_direction(_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).x),__yy_gml_errCheck(yyftime(280,__yy_gml_errCheck(gmlf)))),yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).y), 80));break;}case 1:{_inst.gmljdir=point_direction(_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).x),__yy_gml_errCheck(yyftime(320,__yy_gml_errCheck(gmlf)))),yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).y),50));break;}case 2:{_inst.gmljdir=point_direction(_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).x),__yy_gml_errCheck(yyftime(320,__yy_gml_errCheck(gmlf)))), yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).y);break;}case 3:{_inst.gmljdir=point_direction(_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).x),__yy_gml_errCheck(yyftime(320,__yy_gml_errCheck(gmlf)))),yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).y),50));break;}case 4:{_inst.gmljdir=point_direction(_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).x), __yy_gml_errCheck(yyftime(280,__yy_gml_errCheck(gmlf)))),yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).y),80));break;}case 5:{_inst.gmljdir=point_direction(_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).x),__yy_gml_errCheck(yyftime(220,__yy_gml_errCheck(gmlf)))),yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).y),35));break;}case 6:{_inst.gmljdir=point_direction(_inst.x, _inst.y,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).x),__yy_gml_errCheck(yyftime(260,__yy_gml_errCheck(gmlf)))),yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).y);break;}case 7:{_inst.gmljdir=point_direction(_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).x),__yy_gml_errCheck(yyftime(220,__yy_gml_errCheck(gmlf)))),yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).y), 35));break;}case 8:{_inst.gmljdir=point_direction(_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).x),__yy_gml_errCheck(yyftime(140,__yy_gml_errCheck(gmlf)))),yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).y),10));break;}case 9:{_inst.gmljdir=point_direction(_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).x),__yy_gml_errCheck(yyftime(140,__yy_gml_errCheck(gmlf)))), yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).y);break;}case 10:{_inst.gmljdir=point_direction(_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).x),__yy_gml_errCheck(yyftime(140,__yy_gml_errCheck(gmlf)))),yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).y),10));break;}};};};};}else {{if(yyfgreater(_inst.gmlballdist,400)){return;};gml_Script_s_intercept_object(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder); };};}}function gml_GlobalScript_s_update_contracts(_inst,_other){(_inst.gmls_update_contracts=__yy_method(_inst,gml_Script_s_update_contracts));(_inst.gmls_check_staff_exist=__yy_method(_inst,gml_Script_s_check_staff_exist));}function gml_Script_s_update_contracts(_inst,_other){{gml_Script_slog(_inst,_other,"s_update_contracts");{var __yy__v778=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v779 in __yy__v778){if(!__yy__v778.hasOwnProperty(__yy__v779))continue;var __yy__v780=__yy__v778[__yy__v779]; {gml_Script_s_clear_freeagents(__yy__v780,_inst);var gmlretirements=ds_list_create();var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v780.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v780.gmlroster,gmli);ds_map_set(gmlpmap,"age",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"age")),1));ds_map_set(gmlpmap,"contract",yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"contract")),1)); ds_map_set(gmlpmap,"condition",irandom_range(90,100));ds_map_set(gmlpmap,"meetingdone",0);var gmlqb_is_me=false;if((yyGetBool(__yy__v780.gmlqb_mode))&&(yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"position"),1)))){gmlqb_is_me=true;};if(yyfgreater(ds_map_find_value(gmlpmap,"age"),30)){ds_map_set(gmlpmap,"stamina",clamp(yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stamina")),1),1,10));};if(yyfgreater(ds_map_find_value(gmlpmap,"age"),30)){{var gmlsp_st=irandom(1);if((yyGetBool((yyGetBool(yyfequal(ds_map_find_value(gmlpmap, "position"),1)))||(yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"position"),10)))))&&(yyGetBool(yyfless(ds_map_find_value(gmlpmap,"age"),35)))){gmlsp_st=0;};var ___sw502___=gmlsp_st;var ___swc503___=-1;if(yyCompareVal(___sw502___,0,g_GMLMathEpsilon,false)==0){___swc503___=0;}else if(yyCompareVal(___sw502___,1,g_GMLMathEpsilon,false)==0){___swc503___=1;}switch(___swc503___){case 0:{ds_map_set(gmlpmap,"speed",clamp(yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"speed")),1),1,10));break;}case 1:{ ds_map_set(gmlpmap,"strength",clamp(yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"strength")),1),1,10));break;}};};};if((yyGetBool(gmlqb_is_me))&&(yyGetBool(yyfgreater(ds_map_find_value(gmlpmap,"age"),30)))){gml_Script_s_add_news(__yy__v780,_inst,gml_Script_s_str(__yy__v780,_inst,"msg_QB_aging"));};var gmlmax_age=gml_Script_s_get_max_age(__yy__v780,_inst,gmlpmap);if(!yyGetBool(gmlqb_is_me)){{if(yyfgreater(ds_map_find_value(gmlpmap,"age"),gmlmax_age)){{ds_list_add(gmlretirements,gmlpmap);gml_Script_slog(__yy__v780, _inst,yyfplus(yyfplus(yyfplus(yyfplus("Retired: ",__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"lname"))))," at age["),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"age")))),"]"));if(yyfequal(gml_Script_s_is_co_mode(__yy__v780,_inst),false)){{var gmlmsg=gml_Script_s_str(__yy__v780,_inst,"news_PlayerRetired");gmlmsg=string_replace(gmlmsg,"$teamname",gml_Script_s_get_team_name_by_id(__yy__v780,_inst,__yy__v780.gmlmyteam_id));gmlmsg=gml_Script_s_parse_player_message(__yy__v780,_inst,gmlmsg, gmlpmap);gml_Script_s_add_news(__yy__v780,_inst,gmlmsg);};};};}else {if(yyfless(ds_map_find_value(gmlpmap,"contract"),1)){{ds_map_set(gmlpmap,"salary",gml_Script_s_get_new_salary(__yy__v780,_inst,gmlpmap));ds_map_set(gmlpmap,"contract",irandom_range(2,3));var gmlmax_age=gml_Script_s_get_max_age(__yy__v780,_inst,gmlpmap);if(yyfgreater(ds_map_find_value(gmlpmap,"age"),yyfminus(__yy_gml_errCheck(gmlmax_age),3))){ds_map_set(gmlpmap,"contract",1);};if(yyfless(ds_map_find_value(gmlpmap,"age"),gmlmax_age)){ {ds_list_add(__yy__v780.gmlfreeagentlist,gmlpmap);};};};};};};};}};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v780.gmlfreeagentlist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_list_delete(__yy__v780.gmlroster,ds_list_find_index(__yy__v780.gmlroster,ds_list_find_value(__yy__v780.gmlfreeagentlist,gmli)));}};var gmli=0;for(;yyfless(gmli,ds_list_size(gmlretirements));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli), g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(gmlretirements,gmli);var gmldel=gml_Script_s_remove_player(__yy__v780,_inst,gmlpmap,"retired");if(yyGetBool(gmldel)){{ds_list_set(gmlretirements,gmli,(-1));};};}};ds_list_destroy(gmlretirements);gmlretirements=(-1);__yy__v780.gmlexpiredcontract_msg_done=false;if(!yyGetBool(__yy__v780.gmlqb_mode)){{var gmlstaff_retirements=ds_list_create();var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v780.gmlstafflist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli), g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v780.gmlstafflist,gmli);ds_map_set(gmlpmap,"age",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"age")),1));ds_map_set(gmlpmap,"contract",yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"contract")),1));if((yyGetBool(yyfgreater(ds_map_find_value(gmlpmap,"age"),gml_Script_s_get_max_age(__yy__v780,_inst,gmlpmap))))&&(yyGetBool(yyfless(ds_map_find_value(gmlpmap,"contract"),1)))){{var gmlmsg=gml_Script_s_str(__yy__v780,_inst,"msg_StaffRetired"); gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position_full(__yy__v780,_inst,ds_map_find_value(gmlpmap,"position")));gmlmsg=string_replace(gmlmsg,"$hirename",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))));gml_Script_s_add_news(__yy__v780,_inst,gmlmsg);ds_list_add(gmlstaff_retirements,gmlpmap);};}else {if(yyfless(ds_map_find_value(gmlpmap,"contract"),1)){{var gmlmsg=gml_Script_s_str(__yy__v780,_inst, "msg_StaffExpired");gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position_full(__yy__v780,_inst,ds_map_find_value(gmlpmap,"position")));gmlmsg=string_replace(gmlmsg,"$hirename",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))));gml_Script_s_add_news(__yy__v780,_inst,gmlmsg);ds_list_add(gmlstaff_retirements,gmlpmap);};};};}};var gmli=0;for(;yyfless(gmli,ds_list_size(gmlstaff_retirements));(g_yyPrePostObject__=gmli, gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpos=ds_list_find_index(__yy__v780.gmlstafflist,ds_list_find_value(gmlstaff_retirements,gmli));ds_list_delete(__yy__v780.gmlstafflist,gmlpos);ds_map_destroy(ds_list_find_value(gmlstaff_retirements,gmli));ds_list_set(gmlstaff_retirements,gmli,(-1));}};ds_list_destroy(gmlstaff_retirements);gmlstaff_retirements=(-1);};};gml_Script_s_check_staff_exist(__yy__v780,_inst);}}};}}function gml_Script_s_check_staff_exist(_inst, _other){{{var __yy__v781=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v782 in __yy__v781){if(!__yy__v781.hasOwnProperty(__yy__v782))continue;var __yy__v783=__yy__v781[__yy__v782];{if(yyfequal(gml_Script_s_get_staff(__yy__v783,_inst,101),(-4))){ds_list_add(__yy__v783.gmlstafflist,gml_Script_s_create_staff(__yy__v783,_inst,101,1));};if(yyfequal(gml_Script_s_get_staff(__yy__v783,_inst,102),(-4))){ds_list_add(__yy__v783.gmlstafflist,gml_Script_s_create_staff(__yy__v783,_inst,102,1));};}}};}}function gml_GlobalScript_s_aim_AI_kickoff(_inst, _other){(_inst.gmls_aim_AI_kickoff=__yy_method(_inst,gml_Script_s_aim_AI_kickoff));}function gml_Script_s_aim_AI_kickoff(_inst,_other){{var ___sw510___=_inst.gmlposition;var ___swc511___=-1;if(yyCompareVal(___sw510___,1,g_GMLMathEpsilon,false)==0){___swc511___=0;}else if(yyCompareVal(___sw510___,12,g_GMLMathEpsilon,false)==0){___swc511___=1;}else if(yyCompareVal(___sw510___,13,g_GMLMathEpsilon,false)==0){___swc511___=2;}else if(yyCompareVal(___sw510___,14,g_GMLMathEpsilon,false)==0){___swc511___=3;}switch(___swc511___){ case 0:{_inst.gmljforce=1;_inst.gmljdir=point_direction(_inst.x,_inst.y,yyInst(_inst,_other,YYASSET_REF(0x00000070)).gmlbounce_x,yyInst(_inst,_other,YYASSET_REF(0x00000070)).gmlbounce_y);break;}case 1:{_inst.gmljforce=1.2;_inst.gmljdir=point_direction(_inst.x,_inst.y,yyInst(_inst,_other,YYASSET_REF(0x00000070)).gmlbounce_x,_inst.y);var ___sw512___=_inst.gmlinum;var ___swc513___=-1;if(yyCompareVal(___sw512___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw512___,10,g_GMLMathEpsilon,false)==0){___swc513___=0; }else if(yyCompareVal(___sw512___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw512___,11,g_GMLMathEpsilon,false)==0){___swc513___=1;}switch(___swc513___){case 0:{_inst.gmljforce=1.1;break;}case 1:{_inst.gmljforce=1.05;break;}};break;}case 2:{var gmlbdir=point_direction(_inst.x,_inst.y,yyInst(_inst,_other,YYASSET_REF(0x00000070)).gmlbounce_x,yyInst(_inst,_other,YYASSET_REF(0x00000070)).gmlbounce_y);var gmlbdis=point_distance(_inst.x,_inst.y,yyInst(_inst,_other,YYASSET_REF(0x00000070)).gmlbounce_x,yyInst(_inst, _other,YYASSET_REF(0x00000070)).gmlbounce_y);_inst.gmljdir=point_direction(_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(dcos(gmlbdir)),__yy_gml_errCheck(gmlbdis)),0.9))),yyfminus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(dsin(gmlbdir)),__yy_gml_errCheck(gmlbdis)),0.9))));_inst.gmljforce=clamp(yyfdivide(__yy_gml_errCheck(gmlbdis),20),0.5,0.9);var ___sw514___=_inst.gmlinum;var ___swc515___=-1;if(yyCompareVal(___sw514___, 9,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw514___,11,g_GMLMathEpsilon,false)==0){___swc515___=0;}switch(___swc515___){case 0:{_inst.gmljforce=0.75;break;}};break;}case 3:{_inst.gmljdir=point_direction(_inst.x,_inst.y,yyInst(_inst,_other,YYASSET_REF(0x00000070)).gmlbounce_x,yyInst(_inst,_other,YYASSET_REF(0x00000070)).gmlbounce_y);_inst.gmljforce=clamp(yyfdivide(__yy_gml_errCheck(_inst.gmlbouncedist),20),0.1,1);break;}};}}function gml_GlobalScript_btn_click_SeasonReview(_inst,_other){(_inst.gmlbtn_click_SeasonReview=__yy_method(_inst, gml_Script_btn_click_SeasonReview));}function gml_Script_btn_click_SeasonReview(_inst,_other){{room_goto(YYASSET_REF(0x03000026));}}function gml_GlobalScript_s_get_new_salary(_inst,_other,argument0){(_inst.gmls_get_new_salary=__yy_method(_inst,gml_Script_s_get_new_salary));}function gml_Script_s_get_new_salary(_inst,_other,argument0){{var gmlpmap=argument0;var gmlrating=gml_Script_s_get_player_rating(_inst,_other,gmlpmap);var gmlsalary=0;var ___sw518___=ds_map_find_value(gmlpmap,"position");var ___swc519___=-1; if(yyCompareVal(___sw518___,1,g_GMLMathEpsilon,false)==0){___swc519___=0;}else if(yyCompareVal(___sw518___,2,g_GMLMathEpsilon,false)==0){___swc519___=1;}else if(yyCompareVal(___sw518___,3,g_GMLMathEpsilon,false)==0){___swc519___=2;}else if(yyCompareVal(___sw518___,4,g_GMLMathEpsilon,false)==0){___swc519___=3;}else if(yyCompareVal(___sw518___,5,g_GMLMathEpsilon,false)==0){___swc519___=4;}else if(yyCompareVal(___sw518___,6,g_GMLMathEpsilon,false)==0){___swc519___=5;}else if(yyCompareVal(___sw518___,7,g_GMLMathEpsilon, false)==0){___swc519___=6;}else if(yyCompareVal(___sw518___,8,g_GMLMathEpsilon,false)==0){___swc519___=7;}else if(yyCompareVal(___sw518___,9,g_GMLMathEpsilon,false)==0){___swc519___=8;}else if(yyCompareVal(___sw518___,10,g_GMLMathEpsilon,false)==0){___swc519___=9;}switch(___swc519___){case 0:{gmlsalary=yyftime(__yy_gml_errCheck(gmlrating),1.66);break;}case 1:{gmlsalary=yyftime(__yy_gml_errCheck(gmlrating),1);break;}case 2:{gmlsalary=yyftime(__yy_gml_errCheck(gmlrating),0.9);break;}case 3:{gmlsalary=yyftime(__yy_gml_errCheck(gmlrating), 1.1);break;}case 4:{gmlsalary=yyftime(__yy_gml_errCheck(gmlrating),0.8);break;}case 5:{gmlsalary=yyftime(__yy_gml_errCheck(gmlrating),1);break;}case 6:{gmlsalary=yyftime(__yy_gml_errCheck(gmlrating),0.9);break;}case 7:{gmlsalary=yyftime(__yy_gml_errCheck(gmlrating),0.8);break;}case 8:{gmlsalary=yyftime(__yy_gml_errCheck(gmlrating),0.75);break;}case 9:{gmlsalary=yyftime(__yy_gml_errCheck(gmlrating),0.55);break;}};gmlsalary=yyftime(gmlsalary,3);var gmlage=ds_map_find_value(gmlpmap,"age");var gmlmax_age=gml_Script_s_get_max_age(_inst, _other,gmlpmap);if(yyfequal(gmlage,gml_Script_s_rookie_age_internal(_inst,_other))){gmlsalary=yyftime(gmlsalary,0.6);}else {if(yyfgreater(gmlage,yyfminus(__yy_gml_errCheck(gmlmax_age),2))){gmlsalary=yyftime(gmlsalary,0.55);}else {if(yyfgreater(gmlage,yyfminus(__yy_gml_errCheck(gmlmax_age),3))){gmlsalary=yyftime(gmlsalary,0.65);}else {if(yyfgreater(gmlage,yyfminus(__yy_gml_errCheck(gmlmax_age),4))){gmlsalary=yyftime(gmlsalary,0.75);}else {if(yyfgreater(gmlage,yyfminus(__yy_gml_errCheck(gmlmax_age),5))){ gmlsalary=yyftime(gmlsalary,0.85);};};};};};return round(gmlsalary);}}function gml_GlobalScript_s_check_expired_contract_message(_inst,_other){(_inst.gmls_check_expired_contract_message=__yy_method(_inst,gml_Script_s_check_expired_contract_message));}function gml_Script_s_check_expired_contract_message(_inst,_other){{{var __yy__v784=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v785 in __yy__v784){if(!__yy__v784.hasOwnProperty(__yy__v785))continue;var __yy__v786=__yy__v784[__yy__v785];{if(!yyGetBool(__yy__v786.gmlexpiredcontract_msg_done)){ {if(yyGetBool(gml_Script_s_is_co_mode(__yy__v786,_inst))){{__yy__v786.gmlexpiredcontract_msg_done=true;return;};};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v786.gmlfreeagentlist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v786.gmlfreeagentlist,gmli);if(yyfnotequal(ds_map_find_value(gmlpmap,"signed_year"),0)){{var gmlmsg=gml_Script_s_str(__yy__v786,_inst,"msg_OutOfContractPlayers");if(yyfequal(ds_list_size(__yy__v786.gmlfreeagentlist), 1)){{gmlmsg=gml_Script_s_str(__yy__v786,_inst,"msg_OutOfContractPlayer");gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position_full(__yy__v786,_inst,ds_map_find_value(gmlpmap,"position")));gmlmsg=string_replace(gmlmsg,"$playername",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))));};};gml_Script_s_create_message(__yy__v786,_inst,"",gmlmsg,gml_Script_s_str(__yy__v786,_inst,"ui_Continue"),"",kgml_Script_s_msg_clear, "",global.gmlc_background,1);__yy__v786.gmlexpiredcontract_msg_done=true;return;};};}};};};}}};}}function gml_GlobalScript_s_get_salary_cap_space(_inst,_other){(_inst.gmls_get_salary_cap_space=__yy_method(_inst,gml_Script_s_get_salary_cap_space));}function gml_Script_s_get_salary_cap_space(_inst,_other){{{var __yy__v787=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v788 in __yy__v787){if(!__yy__v787.hasOwnProperty(__yy__v788))continue;var __yy__v789=__yy__v787[__yy__v788];{return yyfminus(yyfplus(__yy_gml_errCheck(__yy__v789.gmlsalary_cap), __yy_gml_errCheck(__yy__v789.gmlboost_salary_cap)),__yy_gml_errCheck(gml_Script_s_get_salary_total(__yy__v789,_inst)));}}};}}function gml_GlobalScript_s_create_new_save(_inst,_other){(_inst.gmls_create_new_save=__yy_method(_inst,gml_Script_s_create_new_save));(_inst.gmls_regen_clean_save_mode_dependent_data=__yy_method(_inst,gml_Script_s_regen_clean_save_mode_dependent_data));(_inst.gmls_load_co_mode_files=__yy_method(_inst,gml_Script_s_load_co_mode_files));}function gml_Script_s_create_new_save(_inst, _other){{gml_Script_slog(_inst,_other,"s_create_new_save");{var __yy__v790=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v791 in __yy__v790){if(!__yy__v790.hasOwnProperty(__yy__v791))continue;var __yy__v792=__yy__v790[__yy__v791];{__yy__v792.gmlnewslist=ds_list_create();__yy__v792.gmllist_news_dyn=ds_list_create();__yy__v792.gmldilemma_tags=ds_list_create();__yy__v792.gmlnews_tags=ds_list_create();__yy__v792.gmlteamlist=gml_Script_s_load_teams(__yy__v792,_inst);gml_Script_s_set_teams_min_max_ids(__yy__v792, _inst);__yy__v792.gmlachievements=gml_Script_s_load_map_file(__yy__v792,_inst,"Achievements.txt");__yy__v792.gmlrecords=gml_Script_s_load_map_file(__yy__v792,_inst,"PlayerRecords.txt");__yy__v792.gmlhistory=ds_list_create();__yy__v792.gmlschedule=gml_Script_s_load_schedule(__yy__v792,_inst);__yy__v792.gmlfixturelist=gml_Script_s_create_my_fixture_list(__yy__v792,_inst);__yy__v792.gmlplayoffs=ds_list_create();__yy__v792.gmldraftlist=ds_list_create();__yy__v792.gmlhirelist=ds_list_create();__yy__v792.gmlstorelist=ds_list_create(); __yy__v792.gmltradelist=ds_list_create();__yy__v792.gmlfreeagentlist=ds_list_create();__yy__v792.gmlroster=ds_list_create();__yy__v792.gmlstafflist=ds_list_create();__yy__v792.gmlhoflist=ds_list_create();__yy__v792.gmlrbhistorylist=ds_list_create();__yy__v792.gmlshoppinglist=gml_Script_s_load_map_file(__yy__v792,_inst,"Shopping.txt");__yy__v792.gmllist_teams_rejected=ds_list_create();__yy__v792.gmlface_grid_L=ds_grid_create(8,3);__yy__v792.gmlface_grid_M=ds_grid_create(8,1);__yy__v792.gmlface_grid_D=ds_grid_create(8, 8);__yy__v792.gmlface_grid_C=ds_grid_create(9,4);ds_grid_clear(__yy__v792.gmlface_grid_L,0);ds_grid_clear(__yy__v792.gmlface_grid_M,0);ds_grid_clear(__yy__v792.gmlface_grid_D,0);ds_grid_clear(__yy__v792.gmlface_grid_C,0);if(yyfequal(gml_Script_s_is_co_mode(__yy__v792,_inst),false)){{gml_Script_s_create_new_roster(__yy__v792,_inst);};};gml_Script_s_create_new_stafflist(__yy__v792,_inst);__yy__v792.gmlcap_breach_flag=(-1);__yy__v792.gmldo_welcome_msg=true;}}};}}function gml_Script_s_regen_clean_save_mode_dependent_data(_inst, _other){{{var __yy__v793=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v794 in __yy__v793){if(!__yy__v793.hasOwnProperty(__yy__v794))continue;var __yy__v795=__yy__v793[__yy__v794];{gml_Script_s_destroy_map_file(__yy__v795,_inst,__yy__v795.gmlteamlist);__yy__v795.gmlteamlist=gml_Script_s_load_teams(__yy__v795,_inst);gml_Script_s_set_teams_min_max_ids(__yy__v795,_inst);if(yyGetBool(gml_Script_s_is_co_mode(__yy__v795,_inst))){{gml_Script_s_load_co_mode_files(__yy__v795,_inst);gml_Script_slog(__yy__v795, _inst,"SETTING INITIAL TEAM RANKING");gml_Script_s_co_reset_teams_rank(__yy__v795,_inst);gml_Script_s_subdivision_update_rankings(__yy__v795,_inst,1);gml_Script_s_subdivision_update_rankings(__yy__v795,_inst,2);gml_Script_slog(__yy__v795,_inst,"RELOADING SCHEDULE");gml_Script_s_destroy_map_file(__yy__v795,_inst,__yy__v795.gmlschedule);__yy__v795.gmlschedule=gml_Script_s_load_schedule(__yy__v795,_inst);gml_Script_slogf(__yy__v795,_inst,"schedule size: %1",ds_list_size(__yy__v795.gmlschedule));gml_Script_s_destroy_map_file(__yy__v795, _inst,__yy__v795.gmlfixturelist);__yy__v795.gmlfixturelist=gml_Script_s_create_my_fixture_list(__yy__v795,_inst);};};}}};gml_Script_s_create_new_roster(_inst,_other);gml_Script_s_create_new_stafflist(_inst,_other);}}function gml_Script_s_load_co_mode_files(_inst,_other){{{var __yy__v796=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v797 in __yy__v796){if(!__yy__v796.hasOwnProperty(__yy__v797))continue;var __yy__v798=__yy__v796[__yy__v797];{if((yyGetBool(yyfequal(variable_instance_exists(__yy__v798.id, "hobbies"),false)))||(yyGetBool(yyfequal(__yy__v798.gmlhobbies,(-1))))){{__yy__v798.gmlhobbies=gml_Script_s_load_map_file(__yy__v798,_inst,"Hobbies_CO.txt");};};if((yyGetBool(yyfequal(variable_instance_exists(__yy__v798.id,"majorminor"),false)))||(yyGetBool(yyfequal(__yy__v798.gmlmajorminor,(-1))))){{__yy__v798.gmlmajorminor=gml_Script_s_load_map_file(__yy__v798,_inst,"MajorMinor_CO.txt");};};if((yyGetBool(yyfequal(variable_instance_exists(__yy__v798.id,"cities"),false)))||(yyGetBool(yyfequal(__yy__v798.gmlcities, (-1))))){{__yy__v798.gmlcities=gml_Script_s_load_map_file(__yy__v798,_inst,"Cities_CO.txt");};};if((yyGetBool(yyfequal(variable_instance_exists(__yy__v798.id,"traits"),false)))||(yyGetBool(yyfequal(__yy__v798.gmltraits,(-1))))){{__yy__v798.gmltraits=gml_Script_s_load_map_file(__yy__v798,_inst,"Traits_CO.txt");};};if((yyGetBool(yyfequal(variable_instance_exists(__yy__v798.id,"epilogue"),false)))||(yyGetBool(yyfequal(__yy__v798.gmlepilogue,(-1))))){{__yy__v798.gmlepilogue=gml_Script_s_load_map_file(__yy__v798, _inst,"EpilogueValues_CO.txt");};};}}};}}function gml_GlobalScript_s_loadgame(_inst,_other){(_inst.gmlbtn_click_LoadSlot1=__yy_method(_inst,gml_Script_btn_click_LoadSlot1));(_inst.gmlbtn_click_LoadSlot2=__yy_method(_inst,gml_Script_btn_click_LoadSlot2));(_inst.gmlbtn_click_LoadSlot3=__yy_method(_inst,gml_Script_btn_click_LoadSlot3));(_inst.gmlbtn_click_LoadSlot4=__yy_method(_inst,gml_Script_btn_click_LoadSlot4));(_inst.gmlbtn_click_LoadSlot5=__yy_method(_inst,gml_Script_btn_click_LoadSlot5));(_inst.gmlbtn_click_slot=__yy_method(_inst, gml_Script_btn_click_slot));(_inst.gmls_master_load=__yy_method(_inst,gml_Script_s_master_load));(_inst.gmls_master_load_from_backup=__yy_method(_inst,gml_Script_s_master_load_from_backup));(_inst.gmls_loadgame=__yy_method(_inst,gml_Script_s_loadgame));(_inst.gmls_cap_breach_refresh=__yy_method(_inst,gml_Script_s_cap_breach_refresh));(_inst.gmls_cap_breach_str=__yy_method(_inst,gml_Script_s_cap_breach_str));(_inst.gmls_is_player_pmap_corrupt=__yy_method(_inst,gml_Script_s_is_player_pmap_corrupt)); (_inst.gmls_check_for_return_stats=__yy_method(_inst,gml_Script_s_check_for_return_stats));(_inst.gmls_check_longest_records=__yy_method(_inst,gml_Script_s_check_longest_records));(_inst.gmls_fix_poki_browser_max_percent_grade=__yy_method(_inst,gml_Script_s_fix_poki_browser_max_percent_grade));(_inst.gmls_update_ui_colours=__yy_method(_inst,gml_Script_s_update_ui_colours));(_inst.gmls_get_college_primary_col=__yy_method(_inst,gml_Script_s_get_college_primary_col));(_inst.gmls_update_game_title=__yy_method(_inst, gml_Script_s_update_game_title));}function gml_Script_btn_click_LoadSlot1(_inst,_other){{gml_Script_btn_click_slot(_inst,_other,1,global.gmlg_savename1,false);}}function gml_Script_btn_click_LoadSlot2(_inst,_other){{gml_Script_btn_click_slot(_inst,_other,2,global.gmlg_savename2,false);}}function gml_Script_btn_click_LoadSlot3(_inst,_other){{gml_Script_btn_click_slot(_inst,_other,3,global.gmlg_savename3,false);}}function gml_Script_btn_click_LoadSlot4(_inst,_other){{gml_Script_btn_click_slot(_inst,_other, 4,global.gmlg_savename4,false);}}function gml_Script_btn_click_LoadSlot5(_inst,_other){{gml_Script_btn_click_slot(_inst,_other,5,global.gmlg_savename5,false);}}function gml_Script_btn_click_slot(_inst,_other,argument0,argument1,argument2){{ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"saveslot",argument0);gml_Script_s_save_options(_inst,_other);gml_Script_s_destroy_master(_inst,_other);if(yyGetBool(file_exists(argument1))){{if(yyGetBool(argument2)){{gml_Script_s_loading_start(_inst, _other,kgml_Script_s_master_load_from_backup);};}else {{gml_Script_s_loading_start(_inst,_other,kgml_Script_s_master_load);};};};}else {{instance_create_layer(0,0,"Instances",YYASSET_REF(0x00000062));room_goto(YYASSET_REF(0x03000002));};};}}function gml_Script_s_master_load(_inst,_other){{instance_create_layer(0,0,"Instances",YYASSET_REF(0x00000062));room_goto(YYASSET_REF(0x0300000E));}}function gml_Script_s_master_load_from_backup(_inst,_other){{instance_create_layer(0,0,"Instances",YYASSET_REF(0x00000062)); yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamestarts=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamestarts,100);room_goto(YYASSET_REF(0x0300000E));}}function gml_Script_s_loadgame(_inst,_other,argument0){{{var __yy__v799=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v800 in __yy__v799){if(!__yy__v799.hasOwnProperty(__yy__v800))continue;var __yy__v801=__yy__v799[__yy__v800];{gml_Script_slog(__yy__v801,_inst,yyfplus("loading save data: ",__yy_gml_errCheck(argument0)));ini_open(argument0); if(yyGetBool(gml_Script_s_is_co_mode(__yy__v801,_inst))){{__yy__v801.gmldata_version=ini_read_real("savegame","data_version",1);__yy__v801.gmlyear_offset=ini_read_real("savegame","year_offset",0);};};__yy__v801.gmlstart_year=ini_read_real("savegame","start_year",2021);__yy__v801.gmlyear_stagger=ini_read_real("savegame","year_stagger",gml_Script_s_get_schedule_year_stagger(__yy__v801,_inst));__yy__v801.gmllast_week_regular=ini_read_real("savegame","last_week_regular",17);__yy__v801.gmlfirst_week_playoffs=ini_read_real("savegame", "first_week_playoffs",18);__yy__v801.gmlyear=ini_read_real("savegame","year",1);__yy__v801.gmlweek=ini_read_real("savegame","week",1);__yy__v801.gmlstage=ini_read_real("savegame","stage",1);__yy__v801.gmlintro=ini_read_real("savegame","intro",1);__yy__v801.gmlfname=ini_read_string("savegame","fname","");__yy__v801.gmllname=ini_read_string("savegame","lname","");__yy__v801.gmlqb_mode=ini_read_real("savegame","qb_mode",0);__yy__v801.gmlco_mode=ini_read_real("savegame","co_mode",0);__yy__v801.gmlfr_mode=ini_read_real("savegame", "fr_mode",1);__yy__v801.gmlfname_coach=ini_read_string("savegame","fname_coach","");__yy__v801.gmllname_coach=ini_read_string("savegame","lname_coach","");__yy__v801.gmlstarrating=ini_read_real("savegame","starrating",0);__yy__v801.gmlrelationship_boss=ini_read_real("savegame","relationship_boss",50);__yy__v801.gmlqb_salary=ini_read_real("savegame","qb_salary",1);__yy__v801.gmlqb_tdbonus=ini_read_real("savegame","qb_tdbonus",1);__yy__v801.gmlqb_training_hiscore=ini_read_real("savegame","qb_training_hiscore", 0);__yy__v801.gmlqb_nrg=ini_read_real("savegame","qb_nrg",1);__yy__v801.gmlmyteam_id=ini_read_real("savegame","myteam_id",0);gml_Script_slog(__yy__v801,_inst,yyfplus("loading myteam_id ",__yy_gml_errCheck(string(__yy__v801.gmlmyteam_id))));__yy__v801.gmlmyface_x=ini_read_real("savegame","myface_x",(-1));__yy__v801.gmlmyface_y=ini_read_real("savegame","myface_y",(-1));__yy__v801.gmlfavourite_team_id=ini_read_real("savegame","favourite_team_id",0);__yy__v801.gmlsuppress_difficulty=ini_read_real("savegame", "suppress_difficulty",5);__yy__v801.gmlsalary_cap=ini_read_real("savegame","salary_cap",150);if(yyfless(__yy__v801.gmlsalary_cap,150)){__yy__v801.gmlsalary_cap=150;};if((yyGetBool(global.gmlconsole_build))||(yyGetBool(0))){__yy__v801.gmlsalary_cap=200;};__yy__v801.gmlboost_salary_cap=abs(ini_read_real("savegame","boost_salary_cap",0));__yy__v801.gmlprematch_dilemma_done=ini_read_real("savegame","prematch_dilemma_done",0);__yy__v801.gmltip_count=ini_read_real("savegame","tip_count",0);__yy__v801.gmlmatchcount=ini_read_real("savegame", "matchcount",0);__yy__v801.gmlgamestarts=ini_read_real("savegame","gamestarts",0);__yy__v801.gmltimeout_message_done=ini_read_real("savegame","timeout_message_done",0);__yy__v801.gmlbullet_throw_message_done=ini_read_real("savegame","bullet_throw_message_done",0);__yy__v801.gmltag_hof_message_done=ini_read_real("savegame","tag_hof_message_done",0);__yy__v801.gmltag_kr_message_done=ini_read_real("savegame","tag_kr_message_done",0);__yy__v801.gmlseason_credits_purchased=ini_read_real("savegame","season_credits_purchased", 0);__yy__v801.gmlop_ball=ini_read_real("savegame","op_ball",0);__yy__v801.gmlcoach_credit=ini_read_real("savegame","coach_credit",0);__yy__v801.gmlpurchased_credit=ini_read_real("savegame","purchased_credit",0);__yy__v801.gmlcoach_rating=ini_read_real("savegame","coach_rating",1);__yy__v801.gmlfans=ini_read_real("savegame","fans",30);__yy__v801.gmlfacility_stadium=ini_read_real("savegame","facility_stadium",1);__yy__v801.gmlfacility_training=ini_read_real("savegame","facility_training",1);__yy__v801.gmlfacility_rehab=ini_read_real("savegame", "facility_rehab",1);__yy__v801.gmlfacility_upgraded_stadium=ini_read_real("savegame","facility_upgraded_stadium",0);__yy__v801.gmlfacility_upgraded_training=ini_read_real("savegame","facility_upgraded_training",0);__yy__v801.gmlfacility_upgraded_rehab=ini_read_real("savegame","facility_upgraded_rehab",0);__yy__v801.gmltraining_reg_df=ini_read_real("savegame","training_reg_df",2);__yy__v801.gmltraining_reg_of=ini_read_real("savegame","training_reg_of",2);__yy__v801.gmldraft_round=ini_read_real("savegame", "draft_round",0);__yy__v801.gmldraft_picks=__yy_gml_array_check(__yy__v801.gmldraft_picks,1364546115);__yy__v801.gmldraft_picks[__yy_gml_array_check_index_set(0)]=ini_read_real("savegame","draft_picks_0",0);__yy__v801.gmldraft_picks[__yy_gml_array_check_index_set(1)]=ini_read_real("savegame","draft_picks_1",0);__yy__v801.gmldraft_picks[__yy_gml_array_check_index_set(2)]=ini_read_real("savegame","draft_picks_2",0);__yy__v801.gmldraft_info_done=ini_read_real("savegame","draft_info_done",0);__yy__v801.gmlexpiredcontract_msg_done=ini_read_real("savegame", "expiredcontract_msg_done",0);__yy__v801.gmloffers_done=ini_read_real("savegame","offers_done",0);__yy__v801.gmlop_difficulty=ini_read_real("savegame","op_difficulty",0);__yy__v801.gmlop_matchlength=ini_read_real("savegame","op_matchlength",0);__yy__v801.gmlop_autorun=ini_read_real("savegame","op_autorun",1);__yy__v801.gmlop_autorun_p2=ini_read_real("savegame","op_autorun_p2",1);__yy__v801.gmlname_conf1=ini_read_string("savegame","name_conf1",gml_Script_s_str(__yy__v801,_inst,"conf_AFC"));gml_Script_slog(__yy__v801, _inst,yyfplus(">>>>>>>>>>>>>>>>>>>>>>> ",__yy_gml_errCheck(__yy__v801.gmlname_conf1)));__yy__v801.gmlname_conf2=ini_read_string("savegame","name_conf2",gml_Script_s_str(__yy__v801,_inst,"conf_NFC"));__yy__v801.gmlname_div1=ini_read_string("savegame","name_div1",gml_Script_s_str(__yy__v801,_inst,"division_East"));__yy__v801.gmlname_div2=ini_read_string("savegame","name_div2",gml_Script_s_str(__yy__v801,_inst,"division_West"));__yy__v801.gmlname_div3=ini_read_string("savegame","name_div3",gml_Script_s_str(__yy__v801, _inst,"division_North"));__yy__v801.gmlname_div4=ini_read_string("savegame","name_div4",gml_Script_s_str(__yy__v801,_inst,"division_South"));__yy__v801.gmlname_div1b=ini_read_string("savegame","name_div1b",gml_Script_s_str(__yy__v801,_inst,"division_East"));__yy__v801.gmlname_div2b=ini_read_string("savegame","name_div2b",gml_Script_s_str(__yy__v801,_inst,"division_West"));__yy__v801.gmlname_div3b=ini_read_string("savegame","name_div3b",gml_Script_s_str(__yy__v801,_inst,"division_North"));__yy__v801.gmlname_div4b=ini_read_string("savegame", "name_div4b",gml_Script_s_str(__yy__v801,_inst,"division_South"));__yy__v801.gmlnewslist=ds_list_create();__yy__v801.gmllist_news_dyn=ds_list_create();__yy__v801.gmldilemma_tags=ds_list_create();__yy__v801.gmlnews_tags=ds_list_create();__yy__v801.gmlteamlist=ds_list_create();__yy__v801.gmlachievements=ds_list_create();__yy__v801.gmlrecords=ds_list_create();__yy__v801.gmlhistory=ds_list_create();__yy__v801.gmlschedule=ds_list_create();__yy__v801.gmlfixturelist=ds_list_create();__yy__v801.gmlplayoffs=ds_list_create(); __yy__v801.gmldraftlist=ds_list_create();__yy__v801.gmlhirelist=ds_list_create();__yy__v801.gmlstorelist=ds_list_create();__yy__v801.gmltradelist=ds_list_create();__yy__v801.gmlfreeagentlist=ds_list_create();__yy__v801.gmlroster=ds_list_create();__yy__v801.gmlstafflist=ds_list_create();__yy__v801.gmlhoflist=ds_list_create();__yy__v801.gmlrbhistorylist=ds_list_create();__yy__v801.gmlshoppinglist=ds_list_create();__yy__v801.gmllist_teams_rejected=ds_list_create();__yy__v801.gmlface_grid_L=ds_grid_create(8, 3);__yy__v801.gmlface_grid_M=ds_grid_create(8,1);__yy__v801.gmlface_grid_D=ds_grid_create(8,8);__yy__v801.gmlface_grid_C=ds_grid_create(9,4);ds_grid_clear(__yy__v801.gmlface_grid_L,0);ds_grid_clear(__yy__v801.gmlface_grid_M,0);ds_grid_clear(__yy__v801.gmlface_grid_D,0);ds_grid_clear(__yy__v801.gmlface_grid_C,0);ds_list_read(__yy__v801.gmlnewslist,ini_read_string("savegame","news","0"));ds_list_read(__yy__v801.gmldilemma_tags,ini_read_string("savegame","dilemma_tags","0"));ds_list_read(__yy__v801.gmlnews_tags, ini_read_string("savegame","news_tags","0"));var gmlsize,gmlmap,gmlpmap,gmlstr;gmlsize=ini_read_real("savegame","news_dyn",0);gml_Script_slog(__yy__v801,_inst,yyfplus("news_dyn list size=",__yy_gml_errCheck(string(gmlsize))));var gmlr=0;for(;yyfless(gmlr,gmlsize);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{gmlmap=ds_map_create();ds_map_read(gmlmap,ini_read_string("savegame",yyfplus("news_dyn_",__yy_gml_errCheck(string(gmlr))),""));ds_list_add(__yy__v801.gmllist_news_dyn, gmlmap);}};gmlsize=ini_read_real("savegame","teamlist",0);gml_Script_slog(__yy__v801,_inst,yyfplus("teamlist size=",__yy_gml_errCheck(string(gmlsize))));var gmlm=0;for(;yyfless(gmlm,gmlsize);(g_yyPrePostObject__=gmlm,gmlm=(g_yyPrePostObject__ instanceof Long?gmlm.add(1):++gmlm),g_yyPrePostObject__)){{gmlmap=ds_map_create();ds_map_read(gmlmap,ini_read_string("savegame",yyfplus("teamlist_",__yy_gml_errCheck(string(gmlm))),""));ds_list_add(__yy__v801.gmlteamlist,gmlmap);}};gml_Script_s_set_teams_min_max_ids(__yy__v801, _inst);gmlsize=ini_read_real("savegame","achievements",0);gml_Script_slog(__yy__v801,_inst,yyfplus("achievements size=",__yy_gml_errCheck(string(gmlsize))));var gmlm=0;for(;yyfless(gmlm,gmlsize);(g_yyPrePostObject__=gmlm,gmlm=(g_yyPrePostObject__ instanceof Long?gmlm.add(1):++gmlm),g_yyPrePostObject__)){{gmlmap=ds_map_create();ds_map_read(gmlmap,ini_read_string("savegame",yyfplus("achievements_",__yy_gml_errCheck(string(gmlm))),""));ds_list_add(__yy__v801.gmlachievements,gmlmap);}};gml_Script_s_update_maplist_from_file(__yy__v801, _inst,__yy__v801.gmlachievements,"Achievements.txt");gmlsize=ini_read_real("savegame","records",0);gml_Script_slog(__yy__v801,_inst,yyfplus("records size=",__yy_gml_errCheck(string(gmlsize))));if(yyfequal(gmlsize,0)){{__yy__v801.gmlrecords=gml_Script_s_load_map_file(__yy__v801,_inst,"PlayerRecords.txt");gmlsize=ds_list_size(__yy__v801.gmlrecords);gml_Script_slog(__yy__v801,_inst,yyfplus("new records size=",__yy_gml_errCheck(string(gmlsize))));};}else {{var gmlm=0;for(;yyfless(gmlm,gmlsize);(g_yyPrePostObject__=gmlm, gmlm=(g_yyPrePostObject__ instanceof Long?gmlm.add(1):++gmlm),g_yyPrePostObject__)){{gmlmap=ds_map_create();ds_map_read(gmlmap,ini_read_string("savegame",yyfplus("records_",__yy_gml_errCheck(string(gmlm))),""));if((yyGetBool(yyfequal(ds_map_find_value(gmlmap,"tag"),"ui_MostSacksGame")))||(yyGetBool(yyfequal(ds_map_find_value(gmlmap,"tag"),"ui_MostSacksSeason")))||(yyGetBool(yyfequal(ds_map_find_value(gmlmap,"tag"),"ui_MostSacksCareer")))||(yyGetBool(yyfequal(ds_map_find_value(gmlmap,"tag"),"ui_MostTacklesGame")))||(yyGetBool(yyfequal(ds_map_find_value(gmlmap, "tag"),"ui_MostTacklesSeason")))||(yyGetBool(yyfequal(ds_map_find_value(gmlmap,"tag"),"ui_MostTacklesCareer")))){{if(yyfgreater(string_count(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_position(__yy__v801,_inst,5))," "),ds_map_find_value(gmlmap,"playername")),0)){{continue;};};};};ds_list_add(__yy__v801.gmlrecords,gmlmap);}};gml_Script_s_update_maplist_from_file(__yy__v801,_inst,__yy__v801.gmlrecords,"PlayerRecords.txt");};};gmlsize=ini_read_real("savegame","history",0);gml_Script_slog(__yy__v801, _inst,yyfplus("history size=",__yy_gml_errCheck(string(gmlsize))));var gmlm=0;for(;yyfless(gmlm,gmlsize);(g_yyPrePostObject__=gmlm,gmlm=(g_yyPrePostObject__ instanceof Long?gmlm.add(1):++gmlm),g_yyPrePostObject__)){{gmlmap=ds_map_create();ds_map_read(gmlmap,ini_read_string("savegame",yyfplus("history_",__yy_gml_errCheck(string(gmlm))),""));ds_list_add(__yy__v801.gmlhistory,gmlmap);}};gmlsize=ini_read_real("savegame","schedule",0);gml_Script_slog(__yy__v801,_inst,yyfplus("schedule size=",__yy_gml_errCheck(string(gmlsize)))); var gmlm=0;for(;yyfless(gmlm,gmlsize);(g_yyPrePostObject__=gmlm,gmlm=(g_yyPrePostObject__ instanceof Long?gmlm.add(1):++gmlm),g_yyPrePostObject__)){{gmlmap=ds_map_create();ds_map_read(gmlmap,ini_read_string("savegame",yyfplus("schedule_",__yy_gml_errCheck(string(gmlm))),""));ds_list_add(__yy__v801.gmlschedule,gmlmap);}};gmlsize=ini_read_real("savegame","fixturelist",0);gml_Script_slog(__yy__v801,_inst,yyfplus("fixture size=",__yy_gml_errCheck(string(gmlsize))));var gmlm=0;for(;yyfless(gmlm,gmlsize); (g_yyPrePostObject__=gmlm,gmlm=(g_yyPrePostObject__ instanceof Long?gmlm.add(1):++gmlm),g_yyPrePostObject__)){{gmlmap=ds_map_create();ds_map_read(gmlmap,ini_read_string("savegame",yyfplus("fixture_",__yy_gml_errCheck(string(gmlm))),""));ds_list_add(__yy__v801.gmlfixturelist,gmlmap);}};gml_Script_slogf(__yy__v801,_inst,"my fix list size: %1",ds_list_size(__yy__v801.gmlfixturelist));gmlsize=ini_read_real("savegame","playoffs",0);gml_Script_slog(__yy__v801,_inst,yyfplus("play-off size=",__yy_gml_errCheck(string(gmlsize)))); var gmlm=0;for(;yyfless(gmlm,gmlsize);(g_yyPrePostObject__=gmlm,gmlm=(g_yyPrePostObject__ instanceof Long?gmlm.add(1):++gmlm),g_yyPrePostObject__)){{gmlmap=ds_map_create();ds_map_read(gmlmap,ini_read_string("savegame",yyfplus("playoff_",__yy_gml_errCheck(string(gmlm))),""));ds_list_add(__yy__v801.gmlplayoffs,gmlmap);}};gmlsize=ini_read_real("savegame","draftlist",0);gml_Script_slog(__yy__v801,_inst,yyfplus("draft size=",__yy_gml_errCheck(string(gmlsize))));var gmld=0;for(;yyfless(gmld,gmlsize);(g_yyPrePostObject__=gmld, gmld=(g_yyPrePostObject__ instanceof Long?gmld.add(1):++gmld),g_yyPrePostObject__)){{gmlmap=ds_map_create();ds_map_read(gmlmap,ini_read_string("savegame",yyfplus("draftlist_",__yy_gml_errCheck(string(gmld))),""));gml_Script_s_check_for_return_stats(__yy__v801,_inst,gmlmap);ds_list_add(__yy__v801.gmldraftlist,gmlmap);}};gmlsize=ini_read_real("savegame","hirelist",0);gml_Script_slog(__yy__v801,_inst,yyfplus("hire list size=",__yy_gml_errCheck(string(gmlsize))));var gmld=0;for(;yyfless(gmld,gmlsize);(g_yyPrePostObject__=gmld, gmld=(g_yyPrePostObject__ instanceof Long?gmld.add(1):++gmld),g_yyPrePostObject__)){{var gmlmap=ds_map_create();ds_map_read(gmlmap,ini_read_string("savegame",yyfplus("hirelist_",__yy_gml_errCheck(string(gmld))),""));ds_list_add(__yy__v801.gmlhirelist,gmlmap);}};gmlsize=ini_read_real("savegame","storelist",0);gml_Script_slog(__yy__v801,_inst,yyfplus("storelist size=",__yy_gml_errCheck(string(gmlsize))));var gmld=0;for(;yyfless(gmld,gmlsize);(g_yyPrePostObject__=gmld,gmld=(g_yyPrePostObject__ instanceof Long?gmld.add(1):++gmld), g_yyPrePostObject__)){{gmlmap=ds_map_create();ds_map_read(gmlmap,ini_read_string("savegame",yyfplus("storelist_",__yy_gml_errCheck(string(gmld))),""));if(yyGetBool(gml_Script_s_is_player_pmap_corrupt(__yy__v801,_inst,gmlmap))){{ds_map_destroy(gmlmap);gmlmap=(-1);continue;};};gml_Script_s_check_for_return_stats(__yy__v801,_inst,gmlmap);ds_list_add(__yy__v801.gmlstorelist,gmlmap);}};gmlsize=ini_read_real("savegame","tradelist",0);gml_Script_slog(__yy__v801,_inst,yyfplus("tradelist size=",__yy_gml_errCheck(string(gmlsize)))); var gmlr=0;for(;yyfless(gmlr,gmlsize);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{gmlmap=ds_map_create();ds_map_read(gmlmap,ini_read_string("savegame",yyfplus("tradelist_",__yy_gml_errCheck(string(gmlr))),""));if(yyGetBool(gml_Script_s_is_player_pmap_corrupt(__yy__v801,_inst,gmlmap))){{ds_map_destroy(gmlmap);gmlmap=(-1);continue;};};gml_Script_s_check_for_return_stats(__yy__v801,_inst,gmlmap);ds_list_add(__yy__v801.gmltradelist,gmlmap); }};gmlsize=ini_read_real("savegame","freeagentlist",0);gml_Script_slog(__yy__v801,_inst,yyfplus("freeagentlist size=",__yy_gml_errCheck(string(gmlsize))));var gmlr=0;for(;yyfless(gmlr,gmlsize);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{gmlmap=ds_map_create();ds_map_read(gmlmap,ini_read_string("savegame",yyfplus("freeagentlist_",__yy_gml_errCheck(string(gmlr))),""));if(yyGetBool(gml_Script_s_is_player_pmap_corrupt(__yy__v801,_inst,gmlmap))){ {ds_map_destroy(gmlmap);gmlmap=(-1);continue;};};gml_Script_s_check_for_return_stats(__yy__v801,_inst,gmlmap);ds_list_add(__yy__v801.gmlfreeagentlist,gmlmap);}};gmlsize=ini_read_real("savegame","roster",0);gml_Script_slog(__yy__v801,_inst,yyfplus("roster size=",__yy_gml_errCheck(string(gmlsize))));var gmlr=0;for(;yyfless(gmlr,gmlsize);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{gmlpmap=ds_map_create();ds_map_read(gmlpmap,ini_read_string("savegame", yyfplus("roster_",__yy_gml_errCheck(string(gmlr))),""));if(yyGetBool(gml_Script_s_is_player_pmap_corrupt(__yy__v801,_inst,gmlpmap))){{ds_map_destroy(gmlpmap);gmlpmap=(-1);continue;};};gml_Script_s_check_longest_records(__yy__v801,_inst,gmlpmap);if((yyGetBool(gml_Script_s_is_co_mode(__yy__v801,_inst)))&&(yyGetBool(global.gmlbrowser))){{gml_Script_s_fix_poki_browser_max_percent_grade(__yy__v801,_inst,gmlpmap);};};if(yyGetBool(ds_map_exists(gmlpmap,"saved_percent_grade"))){{ds_map_delete(gmlpmap,"saved_percent_grade"); };};ds_list_add(__yy__v801.gmlroster,gmlpmap);}};gmlsize=ini_read_real("savegame","stafflist",0);gml_Script_slog(__yy__v801,_inst,yyfplus("stafflist size=",__yy_gml_errCheck(string(gmlsize))));var gmlr=0;for(;yyfless(gmlr,gmlsize);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{gmlpmap=ds_map_create();ds_map_read(gmlpmap,ini_read_string("savegame",yyfplus("stafflist_",__yy_gml_errCheck(string(gmlr))),""));ds_map_set(gmlpmap,"flash_time", (-9999));if(!yyGetBool(ds_map_exists(gmlpmap,"randnum"))){ds_map_set(gmlpmap,"randnum",irandom(999));};if(!yyGetBool(ds_map_exists(gmlpmap,"xp_level"))){{ds_map_set(gmlpmap,"xp_level",ds_map_find_value(gmlpmap,"rating"));ds_map_set(gmlpmap,"xp",0);ds_map_set(gmlpmap,"xp_gain",0);};};ds_list_add(__yy__v801.gmlstafflist,gmlpmap);}};gmlsize=ini_read_real("savegame","hoflist",0);gml_Script_slog(__yy__v801,_inst,yyfplus("hoflist size=",__yy_gml_errCheck(string(gmlsize))));var gmlr=0;for(;yyfless(gmlr, gmlsize);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{gmlpmap=ds_map_create();ds_map_read(gmlpmap,ini_read_string("savegame",yyfplus("hoflist_",__yy_gml_errCheck(string(gmlr))),""));if(yyGetBool(gml_Script_s_is_player_pmap_corrupt(__yy__v801,_inst,gmlpmap))){{ds_map_destroy(gmlpmap);gmlpmap=(-1);continue;};};ds_list_add(__yy__v801.gmlhoflist,gmlpmap);}};gmlsize=ini_read_real("savegame","rbhistorylist",0);gml_Script_slog(__yy__v801,_inst, yyfplus("rbhistorylist size=",__yy_gml_errCheck(string(gmlsize))));var gmlr=0;for(;yyfless(gmlr,gmlsize);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{gmlmap=ds_map_create();gmlstr=ini_read_string("savegame",yyfplus("rbhistorylist_",__yy_gml_errCheck(string(gmlr))),"");gml_Script_slog(__yy__v801,_inst,gmlstr);ds_map_read(gmlmap,gmlstr);ds_list_add(__yy__v801.gmlrbhistorylist,gmlmap);}};ds_grid_read(__yy__v801.gmlface_grid_L,ini_read_string("savegame", "face_grid_L","0"));ds_grid_read(__yy__v801.gmlface_grid_M,ini_read_string("savegame","face_grid_M","0"));ds_grid_read(__yy__v801.gmlface_grid_D,ini_read_string("savegame","face_grid_D","0"));ds_grid_read(__yy__v801.gmlface_grid_C,ini_read_string("savegame","face_grid_C","0"));gmlsize=ini_read_real("savegame","shoppinglist",0);gml_Script_slog(__yy__v801,_inst,yyfplus("shoppinglist size=",__yy_gml_errCheck(string(gmlsize))));var gmlm=0;for(;yyfless(gmlm,gmlsize);(g_yyPrePostObject__=gmlm,gmlm=(g_yyPrePostObject__ instanceof Long?gmlm.add(1):++gmlm), g_yyPrePostObject__)){{gmlmap=ds_map_create();ds_map_read(gmlmap,ini_read_string("savegame",yyfplus("shoppinglist_",__yy_gml_errCheck(string(gmlm))),""));ds_list_add(__yy__v801.gmlshoppinglist,gmlmap);}};gml_Script_s_update_maplist_from_file(__yy__v801,_inst,__yy__v801.gmlshoppinglist,"Shopping.txt");gmlsize=ini_read_real("savegame","list_teams_rejected",0);var gmlm=0;for(;yyfless(gmlm,gmlsize);(g_yyPrePostObject__=gmlm,gmlm=(g_yyPrePostObject__ instanceof Long?gmlm.add(1):++gmlm),g_yyPrePostObject__)){ {ds_list_add(__yy__v801.gmllist_teams_rejected,ini_read_real("savegame",yyfplus("list_teams_rejected_",__yy_gml_errCheck(string(gmlm))),(-1)));}};if(yyGetBool(gml_Script_s_is_co_mode(__yy__v801,_inst))){{__yy__v801.gmlrecruitment_credits=ini_read_real("savegame","recruitment_credits",0);__yy__v801.gmlrecruitment_credits_cap=ini_read_real("savegame","recruitment_credits_cap",50);__yy__v801.gmlrc_season_earned=ini_read_real("savegame","rc_season_earned",0);__yy__v801.gmlrc_lifetime_earned=ini_read_real("savegame", "rc_lifetime_earned",0);__yy__v801.gmlrc_season_spent=ini_read_real("savegame","rc_season_spent",0);__yy__v801.gmlrc_lifetime_spent=ini_read_real("savegame","rc_lifetime_spent",0);__yy__v801.gmlboost_recruitment_credits_cap=abs(ini_read_real("savegame","boost_recruitment_credits_cap",0));__yy__v801.gmlcollege_admissions_draft_round=ini_read_real("savegame","college_admissions_draft_round",0);__yy__v801.gmlcollege_admissions_warn_once=ini_read_real("savegame","college_admissions_warn_once",1);__yy__v801.gmlcollege_awards_done=ini_read_real("savegame", "college_awards_done",0);__yy__v801.gmlpro_drafted_players=ini_read_real("savegame","pro_drafted_players",0);__yy__v801.gmlrec_conf_champ_wins=ini_read_real("savegame","rec_conf_champ_wins",0);__yy__v801.gmlrec_bowl_wins=ini_read_real("savegame","rec_bowl_wins",0);__yy__v801.gmlrec_champ_wins=ini_read_real("savegame","rec_champ_wins",0);__yy__v801.gmlrec_highest_rank_major=ini_read_real("savegame","rec_highest_rank_major",999999);__yy__v801.gmlrec_highest_rank_minor=ini_read_real("savegame","rec_highest_rank_minor", 999999);__yy__v801.gmlnon_champ_conferences_resolved=ini_read_real("savegame","non_champ_conferences_resolved",0);gml_Script_s_validate_recruitment_credits_cap(__yy__v801,_inst);};};__yy__v801.gmlcap_breach_flag=ini_read_real("savegame","cap_breach_flag",(-2));gml_Script_s_cap_breach_refresh(__yy__v801,_inst);ini_close();__yy__v801.gmlstage=1;}}};gml_Script_s_update_human_playoff_fixtures(_inst,_other);gml_Script_s_check_staff_exist(_inst,_other);gml_Script_s_update_ui_colours(_inst,_other);gml_Script_s_refresh_strings(_inst, _other);if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gml_Script_s_reset_competitions_and_subdivisions_pools_and_rankings(_inst,_other);gml_Script_s_load_co_mode_files(_inst,_other);gml_Script_s_co_conference_stats(_inst,_other);gml_Script_s_competitions_status_update(_inst,_other);};};}}function gml_Script_s_cap_breach_refresh(_inst,_other){{gml_Script_slog(_inst,_other,yyfplus(yyfplus("s_cap_breach_refresh[",__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcap_breach_flag))), "]"));if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcap_breach_flag,(-2))){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcap_breach_flag=0;};};if(yyfgreater(gml_Script_s_get_salary_total(_inst,_other),yyfplus(__yy_gml_errCheck(_inst.gmlsalary_cap),__yy_gml_errCheck(_inst.gmlboost_salary_cap)))){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcap_breach_flag=1;};};var gmli=0;for(;yyfless(gmli,ds_list_size(_inst.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli), g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(_inst.gmlroster,gmli);var gmlpos=ds_map_find_value(gmlpmap,"position");var gmlcount=gml_Script_s_count_players_by_position(_inst,_other,gmlpos);var gmlmaxpos=1;var ___sw524___=gmlpos;var ___swc525___=-1;if(yyCompareVal(___sw524___,1,g_GMLMathEpsilon,false)==0){___swc525___=0;}else if(yyCompareVal(___sw524___,2,g_GMLMathEpsilon,false)==0){___swc525___=1;}else if(yyCompareVal(___sw524___,3,g_GMLMathEpsilon,false)==0){___swc525___=2;}else if(yyCompareVal(___sw524___, 4,g_GMLMathEpsilon,false)==0){___swc525___=3;}else if(yyCompareVal(___sw524___,5,g_GMLMathEpsilon,false)==0){___swc525___=4;}else if(yyCompareVal(___sw524___,6,g_GMLMathEpsilon,false)==0){___swc525___=5;}else if(yyCompareVal(___sw524___,7,g_GMLMathEpsilon,false)==0){___swc525___=6;}else if(yyCompareVal(___sw524___,9,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw524___,8,g_GMLMathEpsilon,false)==0){___swc525___=7;}else if(yyCompareVal(___sw524___,10,g_GMLMathEpsilon,false)==0){___swc525___=8;}switch(___swc525___){ case 0:{gmlmaxpos=2;break;}case 1:{gmlmaxpos=2;break;}case 2:{gmlmaxpos=3;break;}case 3:{gmlmaxpos=3;break;}case 4:{gmlmaxpos=5;break;}case 5:{gmlmaxpos=4;break;}case 6:{gmlmaxpos=3;break;}case 7:{gmlmaxpos=4;break;}case 8:{gmlmaxpos=2;break;}};if(yyfgreater(gmlcount,gmlmaxpos)){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcap_breach_flag=1;};};}};var gmli=0;for(;yyfless(gmli,ds_list_size(_inst.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ {var gmlpmap=ds_list_find_value(_inst.gmlroster,gmli);if(yyfgreater(ds_map_find_value(gmlpmap,"age"),gml_Script_s_get_max_age(_inst,_other,gmlpmap))){{gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("BREACH in roster: name[",__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"lname")))),"] age["),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"age")))),"] maxage["),__yy_gml_errCheck(string(gml_Script_s_get_max_age(_inst,_other,gmlpmap)))),"]"));yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlcap_breach_flag=1;};};}};var gmli=0;for(;yyfless(gmli,ds_list_size(_inst.gmlhoflist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(_inst.gmlhoflist,gmli);if(yyfgreater(ds_map_find_value(gmlpmap,"age"),yyfplus(__yy_gml_errCheck(gml_Script_s_get_max_age(_inst,_other,gmlpmap)),1))){{gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("BREACH in hoflist: name[", __yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"lname")))),"] age["),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"age")))),"] maxage["),__yy_gml_errCheck(string(yyfplus(__yy_gml_errCheck(gml_Script_s_get_max_age(_inst,_other,gmlpmap)),1)))),"]"));yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcap_breach_flag=1;};};}};gml_Script_slog(_inst,_other,yyfplus(yyfplus("s_cap_breach_refresh... set to: [",__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcap_breach_flag))), "]"));}}function gml_Script_s_cap_breach_str(_inst,_other){{var ___sw526___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcap_breach_flag;var ___swc527___=-1;if(yyCompareVal(___sw526___,(-1),g_GMLMathEpsilon,false)==0){___swc527___=0;}else if(yyCompareVal(___sw526___,0,g_GMLMathEpsilon,false)==0){___swc527___=1;}else if(yyCompareVal(___sw526___,1,g_GMLMathEpsilon,false)==0){___swc527___=2;}switch(___swc527___){case 0:{return " CB:NV";}case 1:{return " CB:NO";}case 2:{return " CB:YES";}};return yyfplus(yyfplus("?[", __yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcap_breach_flag))),"]");}}function gml_Script_s_is_player_pmap_corrupt(_inst,_other,argument0){{if(!yyGetBool(ds_map_exists(argument0,"position"))){return true;};if(!yyGetBool(ds_map_exists(argument0,"lname"))){return true;};if(!yyGetBool(ds_map_exists(argument0,"condition"))){return true;};if(!yyGetBool(is_real(ds_map_find_value(argument0,"position")))){ds_map_set(argument0,"position",real(ds_map_find_value(argument0,"position"))); };if(!yyGetBool(is_string(ds_map_find_value(argument0,"lname")))){ds_map_set(argument0,"lname",string(ds_map_find_value(argument0,"lname")));};if(!yyGetBool(is_real(ds_map_find_value(argument0,"condition")))){ds_map_set(argument0,"condition",real(ds_map_find_value(argument0,"condition")));};if((yyGetBool(ds_map_exists(argument0,"strength")))&&(yyGetBool(yyfgreater(ds_map_find_value(argument0,"strength"),10)))){ds_map_set(argument0,"strength",10);};if((yyGetBool(ds_map_exists(argument0,"stamina")))&&(yyGetBool(yyfgreater(ds_map_find_value(argument0, "stamina"),10)))){ds_map_set(argument0,"stamina",10);};if((yyGetBool(ds_map_exists(argument0,"speed")))&&(yyGetBool(yyfgreater(ds_map_find_value(argument0,"speed"),10)))){ds_map_set(argument0,"speed",10);};if((yyGetBool(ds_map_exists(argument0,"skill")))&&(yyGetBool(yyfgreater(ds_map_find_value(argument0,"skill"),10)))){ds_map_set(argument0,"skill",10);};ds_map_set(argument0,"flash_time",(-9999));if(!yyGetBool(ds_map_exists(argument0,"randnum"))){ds_map_set(argument0,"randnum",irandom(999));};gml_Script_s_check_for_return_stats(_inst, _other,argument0);return false;}}function gml_Script_s_check_for_return_stats(_inst,_other,argument0){{if(!yyGetBool(ds_map_exists(argument0,"stat_return_attempts"))){ds_map_set(argument0,"stat_return_attempts",0);};if(!yyGetBool(ds_map_exists(argument0,"stat_return_yards"))){ds_map_set(argument0,"stat_return_yards",0);};if(!yyGetBool(ds_map_exists(argument0,"stat_return_tds"))){ds_map_set(argument0,"stat_return_tds",0);};if(!yyGetBool(ds_map_exists(argument0,"stat_return_longest"))){ds_map_set(argument0, "stat_return_longest",0);};if(!yyGetBool(ds_map_exists(argument0,"season_return_attempts"))){ds_map_set(argument0,"season_return_attempts",0);};if(!yyGetBool(ds_map_exists(argument0,"season_return_yards"))){ds_map_set(argument0,"season_return_yards",0);};if(!yyGetBool(ds_map_exists(argument0,"season_return_tds"))){ds_map_set(argument0,"season_return_tds",0);};if(!yyGetBool(ds_map_exists(argument0,"season_return_longest"))){ds_map_set(argument0,"season_return_longest",0);};if(!yyGetBool(ds_map_exists(argument0, "career_return_attempts"))){ds_map_set(argument0,"career_return_attempts",0);};if(!yyGetBool(ds_map_exists(argument0,"career_return_yards"))){ds_map_set(argument0,"career_return_yards",0);};if(!yyGetBool(ds_map_exists(argument0,"career_return_tds"))){ds_map_set(argument0,"career_return_tds",0);};if(!yyGetBool(ds_map_exists(argument0,"career_return_longest"))){ds_map_set(argument0,"career_return_longest",0);};if(yyfequal(ds_map_find_value(argument0,"position"),10)){{if(!yyGetBool(ds_map_exists(argument0, "stat_attempts_XP"))){ds_map_set(argument0,"stat_attempts_XP",0);};if(!yyGetBool(ds_map_exists(argument0,"season_attempts_XP"))){ds_map_set(argument0,"season_attempts_XP",0);};if(!yyGetBool(ds_map_exists(argument0,"career_attempts_XP"))){ds_map_set(argument0,"career_attempts_XP",0);};if(!yyGetBool(ds_map_exists(argument0,"stat_complete_XP"))){ds_map_set(argument0,"stat_complete_XP",0);};if(!yyGetBool(ds_map_exists(argument0,"season_complete_XP"))){ds_map_set(argument0,"season_complete_XP",0);};if(!yyGetBool(ds_map_exists(argument0, "career_complete_XP"))){ds_map_set(argument0,"career_complete_XP",0);};};};}}function gml_Script_s_check_longest_records(_inst,_other,argument0){{var gmllmax=100;if(yyfequal(ds_map_find_value(argument0,"position"),10)){gmllmax=65;};if((yyGetBool(ds_map_exists(argument0,"stat_longest")))&&(yyGetBool(yyfgreater(real(ds_map_find_value(argument0,"stat_longest")),gmllmax)))){ds_map_set(argument0,"stat_longest",0);};if((yyGetBool(ds_map_exists(argument0,"stat_rush_longest")))&&(yyGetBool(yyfgreater(real(ds_map_find_value(argument0, "stat_rush_longest")),gmllmax)))){ds_map_set(argument0,"stat_rush_longest",0);};if((yyGetBool(ds_map_exists(argument0,"season_longest")))&&(yyGetBool(yyfgreater(real(ds_map_find_value(argument0,"season_longest")),gmllmax)))){ds_map_set(argument0,"season_longest",0);};if((yyGetBool(ds_map_exists(argument0,"season_rush_longest")))&&(yyGetBool(yyfgreater(real(ds_map_find_value(argument0,"season_rush_longest")),gmllmax)))){ds_map_set(argument0,"season_rush_longest",0);};if((yyGetBool(ds_map_exists(argument0, "career_longest")))&&(yyGetBool(yyfgreater(real(ds_map_find_value(argument0,"career_longest")),gmllmax)))){ds_map_set(argument0,"career_longest",0);};if((yyGetBool(ds_map_exists(argument0,"career_rush_longest")))&&(yyGetBool(yyfgreater(real(ds_map_find_value(argument0,"career_rush_longest")),gmllmax)))){ds_map_set(argument0,"career_rush_longest",0);};}}function gml_Script_s_fix_poki_browser_max_percent_grade(_inst,_other,argument0){{var gmlmaxPR=ds_map_find_value(argument0,"max_percent_grade");if(yyGetBool(is_undefined(gmlmaxPR))){ {gml_Script_slog(_inst,_other,yyfplus(yyfplus("s_fix_poki_browser_max_percent_grade: max_percent_grade is [",__yy_gml_errCheck(string(gmlmaxPR))),"]"));ds_map_set(argument0,"max_percent_grade",83);};};}}function gml_Script_s_update_ui_colours(_inst,_other){{if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfr_mode)){{global.gmlc_background=make_color_rgb(44,104,255);global.gmlc_primary=make_color_rgb(210,210,10);};};if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)){ {global.gmlc_background=make_color_rgb(128,150,208);global.gmlc_buttons=make_color_rgb(170,200,255);};};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{global.gmlc_background=make_color_rgb(5,50,110);global.gmlc_primary=gml_Script_s_get_college_primary_col(_inst,_other);};};if((yyGetBool(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfr_mode)))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)))&&(yyGetBool(!yyGetBool(gml_Script_s_is_co_mode(_inst, _other))))){yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfr_mode=1;};gml_Script_slog(_inst,_other,yyfplus("fr_mode=",__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfr_mode))));gml_Script_slog(_inst,_other,yyfplus("qb_mode=",__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode))));gml_Script_slog(_inst,_other,yyfplus("co_mode=",__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlco_mode))));gml_Script_s_update_game_title(_inst, _other);}}function gml_Script_s_get_college_primary_col(_inst,_other){{return make_color_rgb(181,158,101);}}function gml_Script_s_update_game_title(_inst,_other){{{var gmlhash=variable_get_hash("game_Title");if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfr_mode)){struct_set_from_hash(yyInst(_inst,_other,global.gmlg_m).gmllangdata,gmlhash,"Retro Bowl");}else {if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)){struct_set_from_hash(yyInst(_inst,_other,global.gmlg_m).gmllangdata, gmlhash,"Retro Bowl MVP");}else {if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){struct_set_from_hash(yyInst(_inst,_other,global.gmlg_m).gmllangdata,gmlhash,"Retro Bowl College");};};};};}}function gml_GlobalScript_s_savegame(_inst,_other){(_inst.gmls_savegame=__yy_method(_inst,gml_Script_s_savegame));}function gml_Script_s_savegame(_inst,_other){{gml_Script_slog(_inst,_other,"<<< s_savegame >>>");if(yyGetBool(instance_exists(YYASSET_REF(0x00000069)))){return;};if(yyfequal(yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlstage,4)){return;};if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_load)){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_load=false;return;};};if(yyGetBool(global.gmlexhibition)){return;};gml_Script_s_save_options(_inst,_other);{var __yy__v802=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v803 in __yy__v802){if(!__yy__v802.hasOwnProperty(__yy__v803))continue;var __yy__v804=__yy__v802[__yy__v803];{if(!yyGetBool(gml_Script_s_is_debug_desktop(__yy__v804, _inst))){gml_Script_slog(__yy__v804,_inst,"Verify team data...");};if((yyGetBool(yyfless(__yy__v804.gmlmyteam_id,__yy__v804.gmlmin_team_id)))||(yyGetBool(yyfgreater(__yy__v804.gmlmyteam_id,__yy__v804.gmlmax_team_id)))){{gml_Script_slogf(__yy__v804,_inst,"team %3 ot of bounds (%1,%2), not saving",__yy__v804.gmlmin_team_id,__yy__v804.gmlmax_team_id,__yy__v804.gmlmyteam_id);return;};};var gmltmap,gmluid,gmlteam_name,gmltla,gmlverify;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v804.gmlteamlist));(g_yyPrePostObject__=gmli, gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmltmap=ds_list_find_value(__yy__v804.gmlteamlist,gmli);gmluid=string(ds_map_find_value(gmltmap,"uid"));gmlteam_name=string(ds_map_find_value(gmltmap,"name"));gmltla=string(ds_map_find_value(gmltmap,"tla"));gmlverify=yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gmluid),". "),__yy_gml_errCheck(gmltla))," - "),__yy_gml_errCheck(gmlteam_name)),"... Ok");gml_Script_slog(__yy__v804,_inst,gmlverify);}};var gmlpmap, gmlname,gmlpos,gmlskin;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v804.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlpmap=ds_list_find_value(__yy__v804.gmlroster,gmli);gmlname=ds_map_find_value(gmlpmap,"lname");gmlpos=ds_map_find_value(gmlpmap,"position");gmlskin=ds_map_find_value(gmlpmap,"skin");gmlverify=yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gmlname)," - "),__yy_gml_errCheck(gml_Script_s_get_string_position(__yy__v804, _inst,gmlpos)))," Skin:"),__yy_gml_errCheck(string(gmlskin))),"... Ok");if(!yyGetBool(gml_Script_s_is_debug_desktop(__yy__v804,_inst))){gml_Script_slog(__yy__v804,_inst,gmlverify);};}};gmltmap=ds_list_find_value(__yy__v804.gmlteamlist,__yy__v804.gmlmyteam_id);gmlteam_name=ds_map_find_value(gmltmap,"name");if(yyGetBool(os_is_paused())){return;};gml_Script_slog(__yy__v804,_inst,yyfplus(yyfplus(yyfplus("My team ID(",__yy_gml_errCheck(string(__yy__v804.gmlmyteam_id))),") My team="),__yy_gml_errCheck(gmlteam_name))); ini_open(gml_Script_s_get_savename(__yy__v804,_inst));if(yyGetBool(gml_Script_s_is_co_mode(__yy__v804,_inst))){{ini_write_real("savegame","data_version",__yy__v804.gmldata_version);ini_write_real("savegame","year_offset",__yy__v804.gmlyear_offset);};};ini_write_real("savegame","start_year",__yy__v804.gmlstart_year);ini_write_real("savegame","year_stagger",__yy__v804.gmlyear_stagger);ini_write_real("savegame","last_week_regular",__yy__v804.gmllast_week_regular);ini_write_real("savegame","first_week_playoffs", __yy__v804.gmlfirst_week_playoffs);ini_write_real("savegame","year",__yy__v804.gmlyear);ini_write_real("savegame","week",__yy__v804.gmlweek);ini_write_real("savegame","stage",__yy__v804.gmlstage);ini_write_real("savegame","intro",__yy__v804.gmlintro);ini_write_string("savegame","fname",__yy__v804.gmlfname);ini_write_string("savegame","lname",__yy__v804.gmllname);ini_write_real("savegame","qb_mode",__yy__v804.gmlqb_mode);ini_write_real("savegame","co_mode",__yy__v804.gmlco_mode);ini_write_real("savegame", "fr_mode",__yy__v804.gmlfr_mode);ini_write_string("savegame","fname_coach",__yy__v804.gmlfname_coach);ini_write_string("savegame","lname_coach",__yy__v804.gmllname_coach);ini_write_string("savegame","starrating",__yy__v804.gmlstarrating);ini_write_string("savegame","relationship_boss",__yy__v804.gmlrelationship_boss);ini_write_string("savegame","qb_salary",__yy__v804.gmlqb_salary);ini_write_string("savegame","qb_tdbonus",__yy__v804.gmlqb_tdbonus);ini_write_string("savegame","qb_training_hiscore", __yy__v804.gmlqb_training_hiscore);ini_write_string("savegame","qb_nrg",__yy__v804.gmlqb_nrg);ini_write_real("savegame","myteam_id",__yy__v804.gmlmyteam_id);ini_write_real("savegame","myface_x",__yy__v804.gmlmyface_x);ini_write_real("savegame","myface_y",__yy__v804.gmlmyface_y);ini_write_real("savegame","favourite_team_id",__yy__v804.gmlfavourite_team_id);ini_write_real("savegame","suppress_difficulty",__yy__v804.gmlsuppress_difficulty);ini_write_real("savegame","salary_cap",__yy__v804.gmlsalary_cap); ini_write_real("savegame","boost_salary_cap",__yy__v804.gmlboost_salary_cap);ini_write_real("savegame","prematch_dilemma_done",__yy__v804.gmlprematch_dilemma_done);ini_write_real("savegame","tip_count",__yy__v804.gmltip_count);ini_write_real("savegame","matchcount",__yy__v804.gmlmatchcount);ini_write_real("savegame","gamestarts",__yy__v804.gmlgamestarts);ini_write_real("savegame","timeout_message_done",__yy__v804.gmltimeout_message_done);ini_write_real("savegame","bullet_throw_message_done",__yy__v804.gmlbullet_throw_message_done); ini_write_real("savegame","tag_hof_message_done",__yy__v804.gmltag_hof_message_done);ini_write_real("savegame","tag_kr_message_done",__yy__v804.gmltag_kr_message_done);ini_write_real("savegame","season_credits_purchased",__yy__v804.gmlseason_credits_purchased);ini_write_real("savegame","op_ball",__yy__v804.gmlop_ball);ini_write_real("savegame","coach_credit",__yy__v804.gmlcoach_credit);ini_write_real("savegame","purchased_credit",__yy__v804.gmlpurchased_credit);ini_write_real("savegame","coach_rating", __yy__v804.gmlcoach_rating);ini_write_real("savegame","fans",__yy__v804.gmlfans);ini_write_real("savegame","facility_stadium",__yy__v804.gmlfacility_stadium);ini_write_real("savegame","facility_training",__yy__v804.gmlfacility_training);ini_write_real("savegame","facility_rehab",__yy__v804.gmlfacility_rehab);ini_write_real("savegame","facility_upgraded_stadium",__yy__v804.gmlfacility_upgraded_stadium);ini_write_real("savegame","facility_upgraded_training",__yy__v804.gmlfacility_upgraded_training); ini_write_real("savegame","facility_upgraded_rehab",__yy__v804.gmlfacility_upgraded_rehab);ini_write_real("savegame","training_reg_df",__yy__v804.gmltraining_reg_df);ini_write_real("savegame","training_reg_of",__yy__v804.gmltraining_reg_of);ini_write_real("savegame","draft_round",__yy__v804.gmldraft_round);ini_write_real("savegame","draft_picks_0",__yy__v804.gmldraft_picks[__yy_gml_array_check_index(0,__yy__v804.gmldraft_picks)]);ini_write_real("savegame","draft_picks_1",__yy__v804.gmldraft_picks[__yy_gml_array_check_index(1, __yy__v804.gmldraft_picks)]);ini_write_real("savegame","draft_picks_2",__yy__v804.gmldraft_picks[__yy_gml_array_check_index(2,__yy__v804.gmldraft_picks)]);ini_write_real("savegame","draft_info_done",__yy__v804.gmldraft_info_done);ini_write_real("savegame","expiredcontract_msg_done",__yy__v804.gmlexpiredcontract_msg_done);ini_write_real("savegame","offers_done",__yy__v804.gmloffers_done);ini_write_real("savegame","op_difficulty",__yy__v804.gmlop_difficulty);ini_write_real("savegame","op_matchlength", __yy__v804.gmlop_matchlength);ini_write_real("savegame","op_autorun",__yy__v804.gmlop_autorun);ini_write_real("savegame","op_autorun_p2",__yy__v804.gmlop_autorun_p2);if(!yyGetBool(gml_Script_s_is_debug_desktop(__yy__v804,_inst))){gml_Script_slog(__yy__v804,_inst,yyfplus(">>>>>>>>>>>>>>>>>>>>>>> ",__yy_gml_errCheck(__yy__v804.gmlname_conf1)));};ini_write_string("savegame","name_conf1",__yy__v804.gmlname_conf1);ini_write_string("savegame","name_conf2",__yy__v804.gmlname_conf2);ini_write_string("savegame", "name_div1",__yy__v804.gmlname_div1);ini_write_string("savegame","name_div2",__yy__v804.gmlname_div2);ini_write_string("savegame","name_div3",__yy__v804.gmlname_div3);ini_write_string("savegame","name_div4",__yy__v804.gmlname_div4);ini_write_string("savegame","name_div1b",__yy__v804.gmlname_div1b);ini_write_string("savegame","name_div2b",__yy__v804.gmlname_div2b);ini_write_string("savegame","name_div3b",__yy__v804.gmlname_div3b);ini_write_string("savegame","name_div4b",__yy__v804.gmlname_div4b); ini_write_string("savegame","news",ds_list_write(__yy__v804.gmlnewslist));ini_write_string("savegame","dilemma_tags",ds_list_write(__yy__v804.gmldilemma_tags));ini_write_string("savegame","news_tags",ds_list_write(__yy__v804.gmlnews_tags));var gmlsize,gmlval,gmlstr;gmlsize=ds_list_size(__yy__v804.gmllist_news_dyn);ini_write_real("savegame","news_dyn",gmlsize);var gmlr=0;for(;yyfless(gmlr,gmlsize);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){ {gmlstr=ds_map_write(ds_list_find_value(__yy__v804.gmllist_news_dyn,gmlr));ini_write_string("savegame",yyfplus("news_dyn_",__yy_gml_errCheck(string(gmlr))),gmlstr);}};gmlsize=ds_list_size(__yy__v804.gmlteamlist);ini_write_real("savegame","teamlist",gmlsize);var gmlm=0;for(;yyfless(gmlm,gmlsize);(g_yyPrePostObject__=gmlm,gmlm=(g_yyPrePostObject__ instanceof Long?gmlm.add(1):++gmlm),g_yyPrePostObject__)){{gmltmap=ds_list_find_value(__yy__v804.gmlteamlist,gmlm);ini_write_string("savegame",yyfplus("teamlist_", __yy_gml_errCheck(string(gmlm))),ds_map_write(gmltmap));}};gmlsize=ds_list_size(__yy__v804.gmlachievements);ini_write_real("savegame","achievements",gmlsize);var gmlm=0;for(;yyfless(gmlm,gmlsize);(g_yyPrePostObject__=gmlm,gmlm=(g_yyPrePostObject__ instanceof Long?gmlm.add(1):++gmlm),g_yyPrePostObject__)){{gmlval=ds_list_find_value(__yy__v804.gmlachievements,gmlm);ini_write_string("savegame",yyfplus("achievements_",__yy_gml_errCheck(string(gmlm))),ds_map_write(gmlval));}};gmlsize=ds_list_size(__yy__v804.gmlrecords); ini_write_real("savegame","records",gmlsize);var gmlm=0;for(;yyfless(gmlm,gmlsize);(g_yyPrePostObject__=gmlm,gmlm=(g_yyPrePostObject__ instanceof Long?gmlm.add(1):++gmlm),g_yyPrePostObject__)){{gmlval=ds_list_find_value(__yy__v804.gmlrecords,gmlm);ini_write_string("savegame",yyfplus("records_",__yy_gml_errCheck(string(gmlm))),ds_map_write(gmlval));}};gmlsize=ds_list_size(__yy__v804.gmlhistory);ini_write_real("savegame","history",gmlsize);var gmlm=0;for(;yyfless(gmlm,gmlsize);(g_yyPrePostObject__=gmlm, gmlm=(g_yyPrePostObject__ instanceof Long?gmlm.add(1):++gmlm),g_yyPrePostObject__)){{gmlstr=ds_map_write(ds_list_find_value(__yy__v804.gmlhistory,gmlm));ini_write_string("savegame",yyfplus("history_",__yy_gml_errCheck(string(gmlm))),gmlstr);}};gmlsize=ds_list_size(__yy__v804.gmlschedule);ini_write_real("savegame","schedule",gmlsize);gml_Script_slogf(__yy__v804,_inst,"schedule size: %1",ds_list_size(__yy__v804.gmlschedule));var gmlm=0;for(;yyfless(gmlm,gmlsize);(g_yyPrePostObject__=gmlm,gmlm=(g_yyPrePostObject__ instanceof Long?gmlm.add(1):++gmlm), g_yyPrePostObject__)){{gmlstr=ds_map_write(ds_list_find_value(__yy__v804.gmlschedule,gmlm));ini_write_string("savegame",yyfplus("schedule_",__yy_gml_errCheck(string(gmlm))),gmlstr);}};gmlsize=ds_list_size(__yy__v804.gmlfixturelist);ini_write_real("savegame","fixturelist",gmlsize);var gmlm=0;for(;yyfless(gmlm,gmlsize);(g_yyPrePostObject__=gmlm,gmlm=(g_yyPrePostObject__ instanceof Long?gmlm.add(1):++gmlm),g_yyPrePostObject__)){{gmlstr=ds_map_write(ds_list_find_value(__yy__v804.gmlfixturelist,gmlm));ini_write_string("savegame", yyfplus("fixture_",__yy_gml_errCheck(string(gmlm))),gmlstr);}};gmlsize=ds_list_size(__yy__v804.gmlplayoffs);ini_write_real("savegame","playoffs",gmlsize);var gmlm=0;for(;yyfless(gmlm,gmlsize);(g_yyPrePostObject__=gmlm,gmlm=(g_yyPrePostObject__ instanceof Long?gmlm.add(1):++gmlm),g_yyPrePostObject__)){{gmlstr=ds_map_write(ds_list_find_value(__yy__v804.gmlplayoffs,gmlm));ini_write_string("savegame",yyfplus("playoff_",__yy_gml_errCheck(string(gmlm))),gmlstr);}};gmlsize=ds_list_size(__yy__v804.gmldraftlist); ini_write_real("savegame","draftlist",gmlsize);var gmlr=0;for(;yyfless(gmlr,gmlsize);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{gmlstr=ds_map_write(ds_list_find_value(__yy__v804.gmldraftlist,gmlr));ini_write_string("savegame",yyfplus("draftlist_",__yy_gml_errCheck(string(gmlr))),gmlstr);}};var gmli=gmlsize;for(;yyfless(gmli,50);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ ini_key_delete("savegame",yyfplus("draftlist_",__yy_gml_errCheck(string(gmli))))};gmlsize=ds_list_size(__yy__v804.gmlhirelist);ini_write_real("savegame","hirelist",gmlsize);var gmlr=0;for(;yyfless(gmlr,gmlsize);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{gmlstr=ds_map_write(ds_list_find_value(__yy__v804.gmlhirelist,gmlr));ini_write_string("savegame",yyfplus("hirelist_",__yy_gml_errCheck(string(gmlr))),gmlstr);}};gmlsize=ds_list_size(__yy__v804.gmlstorelist); ini_write_real("savegame","storelist",gmlsize);var gmlr=0;for(;yyfless(gmlr,gmlsize);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{gmlstr=ds_map_write(ds_list_find_value(__yy__v804.gmlstorelist,gmlr));ini_write_string("savegame",yyfplus("storelist_",__yy_gml_errCheck(string(gmlr))),gmlstr);}};gmlsize=ds_list_size(__yy__v804.gmltradelist);ini_write_real("savegame","tradelist",gmlsize);var gmlr=0;for(;yyfless(gmlr,gmlsize);(g_yyPrePostObject__=gmlr, gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{gmlstr=ds_map_write(ds_list_find_value(__yy__v804.gmltradelist,gmlr));ini_write_string("savegame",yyfplus("tradelist_",__yy_gml_errCheck(string(gmlr))),gmlstr);}};var gmli=gmlsize;for(;yyfless(gmli,12);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ini_key_delete("savegame",yyfplus("tradelist_",__yy_gml_errCheck(string(gmli))))};gmlsize=ds_list_size(__yy__v804.gmlfreeagentlist); ini_write_real("savegame","freeagentlist",gmlsize);var gmlr=0;for(;yyfless(gmlr,gmlsize);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{gmlstr=ds_map_write(ds_list_find_value(__yy__v804.gmlfreeagentlist,gmlr));ini_write_string("savegame",yyfplus("freeagentlist_",__yy_gml_errCheck(string(gmlr))),gmlstr);}};var gmli=gmlsize;for(;yyfless(gmli,12);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ ini_key_delete("savegame",yyfplus("freeagentlist_",__yy_gml_errCheck(string(gmli))))};gmlsize=ds_list_size(__yy__v804.gmlroster);ini_write_real("savegame","roster",gmlsize);var gmlr=0;for(;yyfless(gmlr,gmlsize);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{gmlpmap=ds_list_find_value(__yy__v804.gmlroster,gmlr);gmlstr=ds_map_write(gmlpmap);gml_Script_slog(__yy__v804,_inst,ds_map_find_value(gmlpmap,"lname"));ini_write_string("savegame",yyfplus("roster_", __yy_gml_errCheck(string(gmlr))),gmlstr);}};var gmli=gmlsize;for(;yyfless(gmli,12);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ini_key_delete("savegame",yyfplus("roster_",__yy_gml_errCheck(string(gmli))))};gmlsize=ds_list_size(__yy__v804.gmlstafflist);ini_write_real("savegame","stafflist",gmlsize);var gmlr=0;for(;yyfless(gmlr,gmlsize);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){ {gmlstr=ds_map_write(ds_list_find_value(__yy__v804.gmlstafflist,gmlr));ini_write_string("savegame",yyfplus("stafflist_",__yy_gml_errCheck(string(gmlr))),gmlstr);}};gmlsize=ds_list_size(__yy__v804.gmlhoflist);ini_write_real("savegame","hoflist",gmlsize);var gmlr=0;for(;yyfless(gmlr,gmlsize);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{gmlstr=ds_map_write(ds_list_find_value(__yy__v804.gmlhoflist,gmlr));ini_write_string("savegame",yyfplus("hoflist_", __yy_gml_errCheck(string(gmlr))),gmlstr);}};var gmli=gmlsize;for(;yyfless(gmli,50);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ini_key_delete("savegame",yyfplus("hoflist_",__yy_gml_errCheck(string(gmli))))};gmlsize=ds_list_size(__yy__v804.gmlrbhistorylist);ini_write_real("savegame","rbhistorylist",gmlsize);var gmlr=0;for(;yyfless(gmlr,gmlsize);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){ {var gmlstr=ds_map_write(ds_list_find_value(__yy__v804.gmlrbhistorylist,gmlr));gml_Script_slog(__yy__v804,_inst,gmlstr);ini_write_string("savegame",yyfplus("rbhistorylist_",__yy_gml_errCheck(string(gmlr))),gmlstr);}};ini_write_string("savegame","face_grid_L",ds_grid_write(__yy__v804.gmlface_grid_L));ini_write_string("savegame","face_grid_M",ds_grid_write(__yy__v804.gmlface_grid_M));ini_write_string("savegame","face_grid_D",ds_grid_write(__yy__v804.gmlface_grid_D));ini_write_string("savegame","face_grid_C", ds_grid_write(__yy__v804.gmlface_grid_C));gmlsize=ds_list_size(__yy__v804.gmlshoppinglist);ini_write_real("savegame","shoppinglist",gmlsize);var gmlm=0;for(;yyfless(gmlm,gmlsize);(g_yyPrePostObject__=gmlm,gmlm=(g_yyPrePostObject__ instanceof Long?gmlm.add(1):++gmlm),g_yyPrePostObject__)){{gmlval=ds_list_find_value(__yy__v804.gmlshoppinglist,gmlm);ini_write_string("savegame",yyfplus("shoppinglist_",__yy_gml_errCheck(string(gmlm))),ds_map_write(gmlval));}};gmlsize=ds_list_size(__yy__v804.gmllist_teams_rejected); ini_write_real("savegame","list_teams_rejected",gmlsize);var gmlm=0;for(;yyfless(gmlm,gmlsize);(g_yyPrePostObject__=gmlm,gmlm=(g_yyPrePostObject__ instanceof Long?gmlm.add(1):++gmlm),g_yyPrePostObject__)){{gmlval=ds_list_find_value(__yy__v804.gmllist_teams_rejected,gmlm);ini_write_real("savegame",yyfplus("list_teams_rejected_",__yy_gml_errCheck(string(gmlm))),gmlval);}};if(yyGetBool(gml_Script_s_is_co_mode(__yy__v804,_inst))){{ini_write_real("savegame","recruitment_credits",__yy__v804.gmlrecruitment_credits); ini_write_real("savegame","recruitment_credits_cap",__yy__v804.gmlrecruitment_credits_cap);ini_write_real("savegame","rc_season_earned",__yy__v804.gmlrc_season_earned);ini_write_real("savegame","rc_lifetime_earned",__yy__v804.gmlrc_lifetime_earned);ini_write_real("savegame","rc_lifetime_spent",__yy__v804.gmlrc_lifetime_spent);ini_write_real("savegame","recruitment_credits",__yy__v804.gmlrecruitment_credits);ini_write_real("savegame","boost_recruitment_credits_cap",__yy__v804.gmlboost_recruitment_credits_cap); ini_write_real("savegame","college_admissions_draft_round",__yy__v804.gmlcollege_admissions_draft_round);ini_write_real("savegame","college_admissions_warn_once",__yy__v804.gmlcollege_admissions_warn_once);ini_write_real("savegame","college_awards_done",__yy__v804.gmlcollege_awards_done);ini_write_real("savegame","pro_drafted_players",__yy__v804.gmlpro_drafted_players);ini_write_real("savegame","rec_conf_champ_wins",__yy__v804.gmlrec_conf_champ_wins);ini_write_real("savegame","rec_bowl_wins",__yy__v804.gmlrec_bowl_wins); ini_write_real("savegame","rec_champ_wins",__yy__v804.gmlrec_champ_wins);ini_write_real("savegame","rec_highest_rank_major",__yy__v804.gmlrec_highest_rank_major);ini_write_real("savegame","rec_highest_rank_minor",__yy__v804.gmlrec_highest_rank_minor);ini_write_real("savegame","non_champ_conferences_resolved",__yy__v804.gmlnon_champ_conferences_resolved);};};ini_write_real("savegame","cap_breach_flag",__yy__v804.gmlcap_breach_flag);ini_close();}}};gml_Script_s_nx_commit(_inst,_other);}}function gml_GlobalScript_s_create_map_options(_inst, _other){(_inst.gmls_create_map_options=__yy_method(_inst,gml_Script_s_create_map_options));}function gml_Script_s_create_map_options(_inst,_other){{gml_Script_slog(_inst,_other,"creating options map...");{var __yy__v805=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v806 in __yy__v805){if(!__yy__v805.hasOwnProperty(__yy__v806))continue;var __yy__v807=__yy__v805[__yy__v806];{__yy__v807.gmlmap_options=ds_map_create();ds_map_set(__yy__v807.gmlmap_options,"my_version",0);ds_map_set(__yy__v807.gmlmap_options, "fullversion",0);if((yyGetBool(global.gmlconsole_build))||(yyGetBool(0))||(yyGetBool(global.gmlbrowser))){ds_map_set(__yy__v807.gmlmap_options,"fullversion",1);};ds_map_set(__yy__v807.gmlmap_options,"op_drivedir",0);ds_map_set(__yy__v807.gmlmap_options,"op_scanlines",0);ds_map_set(__yy__v807.gmlmap_options,"op_weather",ds_map_find_value(__yy__v807.gmlmap_options,"fullversion"));ds_map_set(__yy__v807.gmlmap_options,"op_soundfx",2);ds_map_set(__yy__v807.gmlmap_options,"done_review_reward",0);ds_map_set(__yy__v807.gmlmap_options, "op_zoom",1);ds_map_set(__yy__v807.gmlmap_options,"op_music",1);ds_map_set(__yy__v807.gmlmap_options,"op_credits_purchased",0);ds_map_set(__yy__v807.gmlmap_options,"saveslot",(-1));ds_map_set(__yy__v807.gmlmap_options,"op_replays",1);ds_map_set(__yy__v807.gmlmap_options,"done_ad_retrogoal",0);ds_map_set(__yy__v807.gmlmap_options,"op_kickoffs",ds_map_find_value(__yy__v807.gmlmap_options,"fullversion"));ds_map_set(__yy__v807.gmlmap_options,"op_invert_throw",0);ds_map_set(__yy__v807.gmlmap_options, "op_gamepad_guides",1);ds_map_set(__yy__v807.gmlmap_options,"op_invert_throw_p2",0);if(yyGetBool(global.gmlmobile_device)){ds_map_set(__yy__v807.gmlmap_options,"op_drivedir",(-1));};if(yyGetBool(global.gmlbrowser)){{ds_map_set(__yy__v807.gmlmap_options,"op_zoom",0);ds_map_set(__yy__v807.gmlmap_options,"op_replays",0);ds_map_set(__yy__v807.gmlmap_options,"op_soundfx",1);};};ds_map_set(__yy__v807.gmlmap_options,"exh_op_weather",0);ds_map_set(__yy__v807.gmlmap_options,"exh_op_kickoffs",ds_map_find_value(__yy__v807.gmlmap_options, "fullversion"));ds_map_set(__yy__v807.gmlmap_options,"exh_op_drivedir",1);ds_map_set(__yy__v807.gmlmap_options,"exh_op_matchlength",0);ds_map_set(__yy__v807.gmlmap_options,"aa_video_watched",0);gml_Script_s_save_options(__yy__v807,_inst);}}};}}function gml_GlobalScript_s_count_full_seasons(_inst,_other){(_inst.gmls_count_full_seasons=__yy_method(_inst,gml_Script_s_count_full_seasons));(_inst.gmls_count_games_coached=__yy_method(_inst,gml_Script_s_count_games_coached));(_inst.gmls_count_games_simmed=__yy_method(_inst, gml_Script_s_count_games_simmed));(_inst.gmls_count_fixtures_played=__yy_method(_inst,gml_Script_s_count_fixtures_played));}function gml_Script_s_count_full_seasons(_inst,_other){{{var __yy__v808=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v809 in __yy__v808){if(!__yy__v808.hasOwnProperty(__yy__v809))continue;var __yy__v810=__yy__v808[__yy__v809];{var gmlseason_count=0;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v810.gmlhistory));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli), g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(__yy__v810.gmlhistory,gmli);if((yyGetBool(gmlmap))&&(yyGetBool(ds_exists(gmlmap,1)))){{if((yyGetBool(ds_map_exists(gmlmap,"year")))&&(yyGetBool((yyGetBool(yyfequal(real(ds_map_find_value(gmlmap,"year")),1)))||(yyGetBool(yyfequal(real(ds_map_find_value(gmlmap,"year")),__yy__v810.gmlyear)))))){continue;};if((yyGetBool(ds_map_exists(gmlmap,"wins_sim")))&&(yyGetBool(yyfgreater(real(ds_map_find_value(gmlmap,"wins_sim")),0)))){continue;};if((yyGetBool(ds_map_exists(gmlmap, "losses_sim")))&&(yyGetBool(yyfgreater(real(ds_map_find_value(gmlmap,"losses_sim")),0)))){continue;};if((yyGetBool(ds_map_exists(gmlmap,"ties_sim")))&&(yyGetBool(yyfgreater(real(ds_map_find_value(gmlmap,"ties_sim")),0)))){continue;};(g_yyPrePostObject__=gmlseason_count,gmlseason_count=(g_yyPrePostObject__ instanceof Long?gmlseason_count.add(1):++gmlseason_count),g_yyPrePostObject__);};};}};return gmlseason_count;}}};}}function gml_Script_s_count_games_coached(_inst,_other){{var gmlcount=0;var gmllast_map_year=0; var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhistory));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhistory,gmli);if(yyGetBool(ds_exists(gmlmap,1))){{if(yyGetBool(ds_map_exists(gmlmap,"wins"))){gmlcount=yyfplus(gmlcount,real(ds_map_find_value(gmlmap,"wins")));};if(yyGetBool(ds_map_exists(gmlmap,"losses"))){gmlcount=yyfplus(gmlcount, real(ds_map_find_value(gmlmap,"losses")));};if(yyGetBool(ds_map_exists(gmlmap,"ties"))){gmlcount=yyfplus(gmlcount,real(ds_map_find_value(gmlmap,"ties")));};if(yyGetBool(ds_map_exists(gmlmap,"wins_po"))){gmlcount=yyfplus(gmlcount,real(ds_map_find_value(gmlmap,"wins_po")));};if(yyGetBool(ds_map_exists(gmlmap,"losses_po"))){gmlcount=yyfplus(gmlcount,real(ds_map_find_value(gmlmap,"losses_po")));};if((yyGetBool(ds_map_exists(gmlmap,"year")))&&(yyGetBool(yyfgreater(real(ds_map_find_value(gmlmap,"year")), gmllast_map_year)))){gmllast_map_year=ds_map_find_value(gmlmap,"year");};};};}};if(yyfless(gmllast_map_year,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear)){gmlcount=yyfplus(gmlcount,gml_Script_s_count_fixtures_played(_inst,_other));};if((yyGetBool(gml_Script_s_is_co_mode(_inst,_other)))&&(yyGetBool(yyfequal(gmllast_map_year,0)))){gmlcount=0;};return gmlcount;}}function gml_Script_s_count_games_simmed(_inst,_other){{var gmlcount=0;var gmllast_map_year=0;var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlhistory));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhistory,gmli);if(yyGetBool(ds_exists(gmlmap,1))){{if(yyGetBool(ds_map_exists(gmlmap,"wins_sim"))){gmlcount=yyfplus(gmlcount,real(ds_map_find_value(gmlmap,"wins_sim")));};if(yyGetBool(ds_map_exists(gmlmap,"losses_sim"))){gmlcount=yyfplus(gmlcount,real(ds_map_find_value(gmlmap, "losses_sim")));};if(yyGetBool(ds_map_exists(gmlmap,"ties_sim"))){gmlcount=yyfplus(gmlcount,real(ds_map_find_value(gmlmap,"ties_sim")));};if((yyGetBool(ds_map_exists(gmlmap,"year")))&&(yyGetBool(yyfgreater(real(ds_map_find_value(gmlmap,"year")),gmllast_map_year)))){gmllast_map_year=ds_map_find_value(gmlmap,"year");};};};}};if(yyfless(gmllast_map_year,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear)){{gmlcount=yyfplus(gmlcount,gml_Script_s_count_simmed_games(_inst,_other,(-1)));gmlcount=yyfplus(gmlcount, gml_Script_s_count_simmed_games(_inst,_other,0));gmlcount=yyfplus(gmlcount,gml_Script_s_count_simmed_games(_inst,_other,1));};};return gmlcount;}}function gml_Script_s_count_fixtures_played(_inst,_other){{var gmlcount=0;{var __yy__v811=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v812 in __yy__v811){if(!__yy__v811.hasOwnProperty(__yy__v812))continue;var __yy__v813=__yy__v811[__yy__v812];{gmlcount=yyfplus(gmlcount,real(ds_map_find_value(__yy__v813.gmlmyteam,"wins")));gmlcount=yyfplus(gmlcount,real(ds_map_find_value(__yy__v813.gmlmyteam, "losses")));gmlcount=yyfplus(gmlcount,real(ds_map_find_value(__yy__v813.gmlmyteam,"ties")));}}};return gmlcount;}}function gml_GlobalScript_s_load_options(_inst,_other){(_inst.gmls_load_options=__yy_method(_inst,gml_Script_s_load_options));}function gml_Script_s_load_options(_inst,_other){{gml_Script_slog(_inst,_other,yyfplus("loading options...",__yy_gml_errCheck(global.gmlg_optionsave)));{var __yy__v814=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v815 in __yy__v814){if(!__yy__v814.hasOwnProperty(__yy__v815))continue; var __yy__v816=__yy__v814[__yy__v815];{__yy__v816.gmlmap_options=ds_map_secure_load(global.gmlg_optionsave);if(!yyGetBool(ds_exists(__yy__v816.gmlmap_options,1))){{gml_Script_slog(__yy__v816,_inst,"map_options does not exist");gml_Script_s_create_map_options(__yy__v816,_inst);return;};};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v816.gmlmap_options,"my_version")))){ds_map_set(__yy__v816.gmlmap_options,"my_version",0);};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v816.gmlmap_options,"fullversion")))){ ds_map_set(__yy__v816.gmlmap_options,"fullversion",0);};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v816.gmlmap_options,"op_soundfx")))){ds_map_set(__yy__v816.gmlmap_options,"op_soundfx",1);};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v816.gmlmap_options,"op_drivedir")))){ds_map_set(__yy__v816.gmlmap_options,"op_drivedir",1);};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v816.gmlmap_options,"op_scanlines")))){ds_map_set(__yy__v816.gmlmap_options,"op_scanlines",0);};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v816.gmlmap_options, "op_weather")))){ds_map_set(__yy__v816.gmlmap_options,"op_weather",0);};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v816.gmlmap_options,"done_review_reward")))){ds_map_set(__yy__v816.gmlmap_options,"done_review_reward",0);};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v816.gmlmap_options,"op_zoom")))){ds_map_set(__yy__v816.gmlmap_options,"op_zoom",1);};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v816.gmlmap_options,"op_music")))){ds_map_set(__yy__v816.gmlmap_options,"op_music",1); };if(yyGetBool(is_undefined(ds_map_find_value(__yy__v816.gmlmap_options,"op_credits_purchased")))){ds_map_set(__yy__v816.gmlmap_options,"op_credits_purchased",0);};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v816.gmlmap_options,"saveslot")))){ds_map_set(__yy__v816.gmlmap_options,"saveslot",1);};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v816.gmlmap_options,"op_replays")))){ds_map_set(__yy__v816.gmlmap_options,"op_replays",1);};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v816.gmlmap_options, "done_ad_retrogoal")))){ds_map_set(__yy__v816.gmlmap_options,"done_ad_retrogoal",0);};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v816.gmlmap_options,"op_gamepad")))){ds_map_set(__yy__v816.gmlmap_options,"op_gamepad",0);};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v816.gmlmap_options,"op_kickoffs")))){ds_map_set(__yy__v816.gmlmap_options,"op_kickoffs",ds_map_find_value(__yy__v816.gmlmap_options,"fullversion"));};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v816.gmlmap_options,"op_invert_throw")))){ ds_map_set(__yy__v816.gmlmap_options,"op_invert_throw",0);};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v816.gmlmap_options,"op_gamepad_guides")))){ds_map_set(__yy__v816.gmlmap_options,"op_gamepad_guides",1);};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v816.gmlmap_options,"op_invert_throw_p2")))){ds_map_set(__yy__v816.gmlmap_options,"op_invert_throw_p2",0);};if(yyfequal(ds_map_find_value(__yy__v816.gmlmap_options,"op_weather"),"true")){ds_map_set(__yy__v816.gmlmap_options,"op_weather", 1);};if(yyfequal(ds_map_find_value(__yy__v816.gmlmap_options,"op_weather"),"false")){ds_map_set(__yy__v816.gmlmap_options,"op_weather",0);};if(yyfgreater(ds_map_find_value(__yy__v816.gmlmap_options,"op_music"),1)){ds_map_set(__yy__v816.gmlmap_options,"op_music",1);};if(!yyGetBool(global.gmlmobile_device)){ds_map_set(__yy__v816.gmlmap_options,"fullversion",1);};if(yyfless(ds_map_find_value(__yy__v816.gmlmap_options,"fullversion"),1)){{ds_map_set(__yy__v816.gmlmap_options,"op_weather",0);};};ds_map_set(__yy__v816.gmlmap_options, "op_invert_throw",clamp(ds_map_find_value(__yy__v816.gmlmap_options,"op_invert_throw"),0,1));ds_map_set(__yy__v816.gmlmap_options,"op_invert_throw_p2",clamp(ds_map_find_value(__yy__v816.gmlmap_options,"op_invert_throw_p2"),0,1));if((yyGetBool(!yyGetBool(global.gmlmobile_device)))&&(yyGetBool(1))){ds_map_set(__yy__v816.gmlmap_options,"op_scanlines",0);};if(yyfequal(ds_map_find_value(__yy__v816.gmlmap_options,"op_soundfx"),"false")){ds_map_set(__yy__v816.gmlmap_options,"op_soundfx",0);};if(yyfequal(ds_map_find_value(__yy__v816.gmlmap_options, "op_soundfx"),"true")){ds_map_set(__yy__v816.gmlmap_options,"op_soundfx",1);};if(yyGetBool(global.gmlbrowser)){ds_map_set(__yy__v816.gmlmap_options,"op_soundfx",clamp(ds_map_find_value(__yy__v816.gmlmap_options,"op_soundfx"),0,1));};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v816.gmlmap_options,"exh_op_weather")))){ds_map_set(__yy__v816.gmlmap_options,"exh_op_weather",1);};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v816.gmlmap_options,"exh_op_kickoffs")))){ds_map_set(__yy__v816.gmlmap_options, "exh_op_kickoffs",ds_map_find_value(__yy__v816.gmlmap_options,"fullversion"));};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v816.gmlmap_options,"exh_op_drivedir")))){ds_map_set(__yy__v816.gmlmap_options,"exh_op_drivedir",1);};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v816.gmlmap_options,"exh_op_matchlength")))){ds_map_set(__yy__v816.gmlmap_options,"exh_op_matchlength",0);};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v816.gmlmap_options,"aa_video_watched")))){ds_map_set(__yy__v816.gmlmap_options, "aa_video_watched",0);};if(yyGetBool(is_undefined(ds_map_find_value(__yy__v816.gmlmap_options,"co_op_color")))){ds_map_set(__yy__v816.gmlmap_options,"co_op_color",0);};}}};}}function gml_GlobalScript_s_save_options(_inst,_other){(_inst.gmls_save_options=__yy_method(_inst,gml_Script_s_save_options));}function gml_Script_s_save_options(_inst,_other){{gml_Script_slog(_inst,_other,"saving options...");if(yyGetBool(os_is_paused())){return;};{var __yy__v817=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v818 in __yy__v817){ if(!__yy__v817.hasOwnProperty(__yy__v818))continue;var __yy__v819=__yy__v817[__yy__v818];{ds_map_set(__yy__v819.gmlmap_options,"my_version",global.gmlg_version);ds_map_secure_save(__yy__v819.gmlmap_options,global.gmlg_optionsave);}}};gml_Script_s_nx_commit(_inst,_other);}}function gml_GlobalScript_s_save_backup(_inst,_other){(_inst.gmls_save_backup=__yy_method(_inst,gml_Script_s_save_backup));}function gml_Script_s_save_backup(_inst,_other){{if(yyfequal(g_pBuiltIn.get_os_browser(),(-1))){{gml_Script_slog(_inst, _other,"s_save_backup");var gmlsave_name=gml_Script_s_get_savename(_inst,_other);var gmlbackup_name=yyfplus("backup_",__yy_gml_errCheck(gmlsave_name));if(yyGetBool(file_exists(gmlbackup_name))){file_delete(gmlbackup_name);};file_copy(gmlsave_name,gmlbackup_name);gml_Script_s_nx_commit(_inst,_other);};};}}function gml_GlobalScript_s_load_map_file(_inst,_other){(_inst.gmls_load_map_file=__yy_method(_inst,gml_Script_s_load_map_file));(_inst.gmls_destroy_map_file=__yy_method(_inst,gml_Script_s_destroy_map_file)); }function gml_Script_s_load_map_file(_inst,_other,argument0){{gml_Script_slog(_inst,_other,yyfplus("s_load_mapfile:",__yy_gml_errCheck(argument0)));var gmllist=ds_list_create();var gmlfile=file_text_open_read(argument0);var gmlkeys=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile);while(!yyGetBool(file_text_eof(gmlfile))){{var gmlmap=ds_map_create();var gmlvalues=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile); var gmli=0;for(;yyfless(gmli,array_length_1d(gmlkeys));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_map_add(gmlmap,gmlkeys[__yy_gml_array_check_index(gmli,gmlkeys)],gmlvalues[__yy_gml_array_check_index(gmli,gmlvalues)]);}};ds_list_add(gmllist,gmlmap);}};file_text_close(gmlfile);gml_Script_slog(_inst,_other,yyfplus("Added items: ",__yy_gml_errCheck(string(ds_list_size(gmllist)))));return gmllist;}}function gml_Script_s_destroy_map_file(_inst, _other,argument0){{if(yyfequal(ds_exists(argument0,2),false)){{return;};};var gmli=yyfminus(__yy_gml_errCheck(ds_list_size(argument0)),1);for(;yyfgreaterequal(gmli,0);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.subtract(1):--gmli),g_yyPrePostObject__)){{ds_map_destroy(ds_list_find_value(argument0,gmli));ds_list_set(argument0,gmli,(-1));}};ds_list_destroy(argument0);}}function gml_GlobalScript_s_update_maplist_from_file(_inst,_other,argument0,argument1){(_inst.gmls_update_maplist_from_file=__yy_method(_inst, gml_Script_s_update_maplist_from_file));}function gml_Script_s_update_maplist_from_file(_inst,_other,argument0,argument1){{var gmlmaplist=argument0;var gmlfname=argument1;gml_Script_slog(_inst,_other,yyfplus("s_update_maplist_from_file:",__yy_gml_errCheck(gmlfname)));gml_Script_slog(_inst,_other,yyfplus("Existing list = ",__yy_gml_errCheck(string(ds_list_size(gmlmaplist)))));var gmlfile=file_text_open_read(gmlfname);var gmlkeys=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile); while(!yyGetBool(file_text_eof(gmlfile))){{var gmlmap=ds_map_create();var gmlvalues=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile);var gmli=0;for(;yyfless(gmli,array_length_1d(gmlkeys));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_map_add(gmlmap,gmlkeys[__yy_gml_array_check_index(gmli,gmlkeys)],gmlvalues[__yy_gml_array_check_index(gmli,gmlvalues)]);}};var gmlmapexists=false;var gmli=0; for(;yyfless(gmli,ds_list_size(gmlmaplist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmloldmap=ds_list_find_value(gmlmaplist,gmli);if(yyfequal(ds_map_find_value(gmloldmap,"tag"),ds_map_find_value(gmlmap,"tag"))){{gmlmapexists=true;ds_map_set(gmloldmap,"description",ds_map_find_value(gmlmap,"description"));break;};};}};if(!yyGetBool(gmlmapexists)){{ds_list_add(gmlmaplist,gmlmap);};};}};file_text_close(gmlfile);gml_Script_slog(_inst, _other,yyfplus("New list = ",__yy_gml_errCheck(string(ds_list_size(gmlmaplist)))));}}function gml_GlobalScript_s_load_strings(_inst,_other,argument0,argument1){(_inst.gmls_refresh_strings=__yy_method(_inst,gml_Script_s_refresh_strings));(_inst.gmls_load_strings=__yy_method(_inst,gml_Script_s_load_strings));(_inst.gmls_select_lang=__yy_method(_inst,gml_Script_s_select_lang));(_inst.gmls_select_lang_file=__yy_method(_inst,gml_Script_s_select_lang_file));(_inst.gmls_select_override_lang_file=__yy_method(_inst, gml_Script_s_select_override_lang_file));(_inst.gmls_select_institution_lang_file=__yy_method(_inst,gml_Script_s_select_institution_lang_file));(_inst.gmls_add_file_to_lang_strings=__yy_method(_inst,gml_Script_s_add_file_to_lang_strings));(_inst.gmls_co_refresh_strings=__yy_method(_inst,gml_Script_s_co_refresh_strings));(_inst.gmls_co_load_strings=__yy_method(_inst,gml_Script_s_co_load_strings));(_inst.gmls_load_language_file=__yy_method(_inst,gml_Script_s_load_language_file));}function gml_Script_s_refresh_strings(_inst, _other){{return gml_Script_s_co_refresh_strings(_inst,_other);if(yyGetBool(ds_exists(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstringmap,1))){ds_map_destroy(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstringmap);};yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstringmap=gml_Script_s_load_strings(_inst,_other);gml_Script_s_update_game_title(_inst,_other);}}function gml_Script_s_load_strings(_inst,_other){{return gml_Script_s_co_load_strings(_inst,_other);gml_Script_slog(_inst,_other,"RELOADING LOCALE FILES"); var gmlmap=ds_map_create();gml_Script_s_add_file_to_lang_strings(_inst,_other,gmlmap,gml_Script_s_select_lang_file(_inst,_other));gml_Script_s_add_file_to_lang_strings(_inst,_other,gmlmap,gml_Script_s_select_override_lang_file(_inst,_other));gml_Script_s_add_file_to_lang_strings(_inst,_other,gmlmap,gml_Script_s_select_institution_lang_file(_inst,_other));return gmlmap;}}function gml_Script_s_select_lang(_inst,_other){{if(yyfequal(os_get_config(),"Japan")){{return "JP";};};return "US";}}function gml_Script_s_select_lang_file(_inst, _other){{return yyfplus(yyfplus("Language",__yy_gml_errCheck(gml_Script_s_select_lang(_inst,_other))),".txt");}}function gml_Script_s_select_override_lang_file(_inst,_other){{var gmlmode="FR";if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gmlmode="CO";};};if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)){{gmlmode="QB";};};if((yyGetBool(0))&&(yyGetBool(yyfequal(gmlmode,"CO")))){gmlmode="CO_dbg";};return yyfplus(yyfplus(yyfplus(yyfplus("Language",__yy_gml_errCheck(gml_Script_s_select_lang(_inst, _other))),"_"),__yy_gml_errCheck(gmlmode)),".txt");}}function gml_Script_s_select_institution_lang_file(_inst,_other){{if(yyfequal(gml_Script_s_is_co_mode(_inst,_other),false)){{return "";};};if(yyGetBool(gml_Script_s_college_academics_type(_inst,_other,"Military"))){{return yyfplus(yyfplus("Language",__yy_gml_errCheck(gml_Script_s_select_lang(_inst,_other))),"_MILCO.txt");};};return "";}}function gml_Script_s_add_file_to_lang_strings(_inst,_other,argument0,argument1){{gml_Script_slog(_inst,_other,yyfplus(yyfplus("s_add_file_to_lang_strings [", __yy_gml_errCheck(string(argument1))),"]"));var gmlmap=argument0;var gmlfstr=argument1;if(yyfequal(gmlfstr,"")){{return;};};if(!yyGetBool(file_exists(gmlfstr))){{gml_Script_slog(_inst,_other,yyfplus(yyfplus("s_add_file_to_lang_strings [",__yy_gml_errCheck(string(argument1))),"].. skipped. File invalid."));return;};};var gmlfile=file_text_open_read(gmlfstr);if(yyfequal(gmlfile,(-1))){{return;};};var gmlc=0;while(!yyGetBool(file_text_eof(gmlfile))){{var gmltxt=file_text_read_string(gmlfile);file_text_readln(gmlfile); var gmlpos=string_pos(" ",gmltxt);if(yyfequal(gmlpos,0)){{continue;};};var gmllen=string_length(gmltxt);(g_yyPrePostObject__=gmlc,gmlc=(g_yyPrePostObject__ instanceof Long?gmlc.add(1):++gmlc),g_yyPrePostObject__);ds_map_replace(gmlmap,string_copy(gmltxt,1,yyfminus(__yy_gml_errCheck(gmlpos),1)),string_copy(gmltxt,yyfplus(__yy_gml_errCheck(gmlpos),1),yyfminus(__yy_gml_errCheck(gmllen),1)));}};file_text_close(gmlfile);}}function gml_Script____struct___131_s_co_refresh_strings_gml_GlobalScript_s_load_strings(_inst, _other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___131_s_co_refresh_strings_gml_GlobalScript_s_load_strings";}if(gml_Script____struct___131_s_co_refresh_strings_gml_GlobalScript_s_load_strings.prototype.__type===undefined){gml_Script____struct___131_s_co_refresh_strings_gml_GlobalScript_s_load_strings.prototype.__type="gml_Script____struct___131_s_co_refresh_strings_gml_GlobalScript_s_load_strings";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___131_s_co_refresh_strings_gml_GlobalScript_s_load_strings.prototype); {}}}function gml_Script_s_co_refresh_strings(_inst,_other){{yyInst(_inst,_other,global.gmlg_m).gmllangdata=__yy_gml_object_create(_inst,(_inst.gml___struct___131=__yy_method(_inst,gml_Script____struct___131_s_co_refresh_strings_gml_GlobalScript_s_load_strings)));gml_Script_s_co_load_strings(_inst,_other,yyInst(_inst,_other,global.gmlg_m).gmllangdata);gml_Script_s_update_game_title(_inst,_other);}}function gml_Script_s_co_load_strings(_inst,_other,argument0){{gml_Script_slog(_inst,_other,"RELOADING LOCALE FILES"); gml_Script_s_load_language_file(_inst,_other,argument0,gml_Script_s_select_lang_file(_inst,_other));gml_Script_s_load_language_file(_inst,_other,argument0,gml_Script_s_select_override_lang_file(_inst,_other));gml_Script_s_load_language_file(_inst,_other,argument0,gml_Script_s_select_institution_lang_file(_inst,_other));}}function gml_Script_s_load_language_file(_inst,_other,argument0,argument1){{if((yyGetBool(yyfequal(argument1,(-4))))||(yyGetBool(yyfequal(argument1,"")))){return;};var gmlfile=file_text_open_read(argument1); var gmlvalues,gmlvalues_count;while(!yyGetBool(file_text_eof(gmlfile))){{gmlvalues=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));gmlvalues_count=array_length(gmlvalues);file_text_readln(gmlfile);if((yyGetBool(yyfnotequal(string_pos("//",gmlvalues[__yy_gml_array_check_index(0,gmlvalues)]),1)))&&(yyGetBool(yyfnotequal(gmlvalues[__yy_gml_array_check_index(0,gmlvalues)],"")))&&(yyGetBool(!yyGetBool(is_undefined(gmlvalues[__yy_gml_array_check_index(0,gmlvalues)]))))&&(yyGetBool(yyfgreater(gmlvalues_count, 1)))){{struct_set_from_hash(argument0,variable_get_hash(gmlvalues[__yy_gml_array_check_index(0,gmlvalues)]),gmlvalues[__yy_gml_array_check_index(1,gmlvalues)]);};};}};file_text_close(gmlfile);}}function gml_GlobalScript_s_load_teams(_inst,_other){(_inst.gmls_load_teams=__yy_method(_inst,gml_Script_s_load_teams));(_inst.gmls_load_teams_data=__yy_method(_inst,gml_Script_s_load_teams_data));(_inst.gmls_reset_co_team_data=__yy_method(_inst,gml_Script_s_reset_co_team_data));(_inst.gmls_set_teams_min_max_ids=__yy_method(_inst, gml_Script_s_set_teams_min_max_ids));(_inst.gmls_get_struct_in_array_by_uid=__yy_method(_inst,gml_Script_s_get_struct_in_array_by_uid));(_inst.gmlload_data_to_struct_array=__yy_method(_inst,gml_Script_load_data_to_struct_array));(_inst.gmls_load_json=__yy_method(_inst,gml_Script_s_load_json));(_inst.gmls_save_json=__yy_method(_inst,gml_Script_s_save_json));}function gml_Script_s_load_teams(_inst,_other){{gml_Script_slog(_inst,_other,yyfplus(yyfplus("s_load_teams co_mode:",__yy_gml_errCheck(string(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlco_mode)))," "));var gmllist=ds_list_create();if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gml_Script_s_load_teams_data(_inst,_other,gmllist,"Teams.txt");gml_Script_s_load_teams_data(_inst,_other,gmllist,gml_Script_s_get_versioned_path(_inst,_other,"Teams_CO.txt"));};}else {{gml_Script_s_load_teams_data(_inst,_other,gmllist,"Teams.txt");};};return gmllist;}}function gml_Script_s_load_teams_data(_inst,_other,argument0,argument1){{var gmlfile=file_text_open_read(argument1); var gmlkeys=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile);var gmlmap,gmlvalues,gmli;while(!yyGetBool(file_text_eof(gmlfile))){{gmlmap=ds_map_create();gmlvalues=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile);gmli=0;for(;yyfless(gmli,array_length(gmlkeys));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_map_add(gmlmap,gmlkeys[__yy_gml_array_check_index(gmli, gmlkeys)],gmlvalues[__yy_gml_array_check_index(gmli,gmlvalues)]);}};gml_Script_s_reset_co_team_data(_inst,_other,gmlmap);ds_list_add(argument0,gmlmap);}};file_text_close(gmlfile);}}function gml_Script_s_reset_co_team_data(_inst,_other,argument0){{ds_map_set(argument0,"wins_cnf",0);ds_map_set(argument0,"losses_cnf",0);ds_map_set(argument0,"wins_div",0);ds_map_set(argument0,"losses_div",0);ds_map_set(argument0,"ranking_points",0);ds_map_set(argument0,"ranking_points_prev",0);ds_map_set(argument0,"ranking_points_season", 0);}}function gml_Script_s_set_teams_min_max_ids(_inst,_other){{{var __yy__v820=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v821 in __yy__v820){if(!__yy__v820.hasOwnProperty(__yy__v821))continue;var __yy__v822=__yy__v820[__yy__v821];{__yy__v822.gmlmin_team_id=0;__yy__v822.gmlmax_team_id=31;if((yyGetBool(gml_Script_s_is_co_mode(__yy__v822,_inst)))&&(yyGetBool(variable_instance_exists(__yy__v822.id,"teamlist")))){{__yy__v822.gmlmin_team_id=32;__yy__v822.gmlmax_team_id=yyfminus(__yy_gml_errCheck(ds_list_size(__yy__v822.gmlteamlist)), 1);};};}}};}}function gml_Script_s_get_struct_in_array_by_uid(_inst,_other,argument0,argument1){{var gmli=0;for(;yyfless(gmli,array_length(argument0));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{if(yyfequal(yyInst(_inst,_other,argument0[__yy_gml_array_check_index(gmli,argument0)]).gmluid,argument1)){return argument0[__yy_gml_array_check_index(gmli,argument0)];};}};return(-4);}}function gml_Script____struct___132_load_data_to_struct_array_gml_GlobalScript_s_load_teams(_inst, _other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___132_load_data_to_struct_array_gml_GlobalScript_s_load_teams";}if(gml_Script____struct___132_load_data_to_struct_array_gml_GlobalScript_s_load_teams.prototype.__type===undefined){gml_Script____struct___132_load_data_to_struct_array_gml_GlobalScript_s_load_teams.prototype.__type="gml_Script____struct___132_load_data_to_struct_array_gml_GlobalScript_s_load_teams";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___132_load_data_to_struct_array_gml_GlobalScript_s_load_teams.prototype); {}}}function gml_Script_load_data_to_struct_array(_inst,_other,argument0){{var gmlfile=file_text_open_read(argument0);var gmlarray=__yy_gml_array_create([]);var gmlline=0;var gmlstr=file_text_read_string(gmlfile);gml_Script_slog(_inst,_other,gmlstr);var gmlkeys=gml_Script_s_split_string(_inst,_other,gmlstr);file_text_readln(gmlfile);var gmlvalues,gmlvalues_count;while(!yyGetBool(file_text_eof(gmlfile))){{gmlvalues=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));gmlvalues_count=array_length(gmlvalues); file_text_readln(gmlfile);if((yyGetBool(yyfnotequal(string_pos("//",gmlvalues[__yy_gml_array_check_index(0,gmlvalues)]),1)))&&(yyGetBool(yyfnotequal(gmlvalues[__yy_gml_array_check_index(0,gmlvalues)],"")))&&(yyGetBool(!yyGetBool(is_undefined(gmlvalues[__yy_gml_array_check_index(0,gmlvalues)]))))){{gmlarray=__yy_gml_array_check(gmlarray,710809619);gmlarray[__yy_gml_array_check_index_set(gmlline)]=__yy_gml_object_create(_inst,(_inst.gml___struct___132=__yy_method(_inst,gml_Script____struct___132_load_data_to_struct_array_gml_GlobalScript_s_load_teams))); var gmli=0;for(;yyfless(gmli,array_length(gmlkeys));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{variable_struct_set(gmlarray[__yy_gml_array_check_index(gmlline,gmlarray)],gmlkeys[__yy_gml_array_check_index(gmli,gmlkeys)],(yyfless(gmli,gmlvalues_count)?gmlvalues[__yy_gml_array_check_index(gmli,gmlvalues)]:""));}};(g_yyPrePostObject__=gmlline,gmlline=(g_yyPrePostObject__ instanceof Long?gmlline.add(1):++gmlline),g_yyPrePostObject__);};} ;}};file_text_close(gmlfile);return gmlarray;}}function gml_Script____struct___133_s_load_json_gml_GlobalScript_s_load_teams(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___133_s_load_json_gml_GlobalScript_s_load_teams";}if(gml_Script____struct___133_s_load_json_gml_GlobalScript_s_load_teams.prototype.__type===undefined){gml_Script____struct___133_s_load_json_gml_GlobalScript_s_load_teams.prototype.__type="gml_Script____struct___133_s_load_json_gml_GlobalScript_s_load_teams"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___133_s_load_json_gml_GlobalScript_s_load_teams.prototype);{}}}function gml_Script_s_load_json(_inst,_other,argument0){{var gmlfile_handle;var gmljson_string="";var gmldata=__yy_gml_object_create(_inst,(_inst.gml___struct___133=__yy_method(_inst,gml_Script____struct___133_s_load_json_gml_GlobalScript_s_load_teams)));gml_Script_slogf(_inst,_other,"Opening json file %1",argument0);gmlfile_handle=file_text_open_read(argument0); if(yyfequal(gmlfile_handle,(-1))){{gml_Script_slogf(_inst,_other,"File %1 cannnot be opened",argument0);return(-4);};};while(!yyGetBool(file_text_eof(gmlfile_handle))){{gmljson_string=yyfplus(gmljson_string,file_text_readln(gmlfile_handle));}};file_text_close(gmlfile_handle);gmldata=json_parse(gmljson_string);return gmldata;}}function gml_Script_s_save_json(_inst,_other,argument0,argument1){{var gmlfile_handle;var gmljson_string="";gml_Script_slogf(_inst,_other,"Opening json file %1 for writing",argument0); gmlfile_handle=file_text_open_write(argument0);if(yyfequal(gmlfile_handle,(-1))){{gml_Script_slogf(_inst,_other,"File %1 cannnot be opened for writing",argument0);return false;};};gmljson_string=json_stringify(argument1);file_text_write_string(gmlfile_handle,gmljson_string);file_text_close(gmlfile_handle);}}function gml_GlobalScript_s_load_team_detail(_inst,_other,argument0,argument1){(_inst.gmls_load_team_detail=__yy_method(_inst,gml_Script_s_load_team_detail));}function gml_Script_s_load_team_detail(_inst, _other,argument0,argument1){{var gmltid=argument0;var gmlfindkey=argument1;gml_Script_slog(_inst,_other,yyfplus("s_load_team:",__yy_gml_errCheck(string(gmltid))));var gmlfile=file_text_open_read(gml_Script_s_teams_file(_inst,_other));var gmlkeys=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile);while(!yyGetBool(file_text_eof(gmlfile))){{var gmlvalues=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile);if(yyfequal(gmlvalues[__yy_gml_array_check_index(0, gmlvalues)],gmltid)){{var gmli=0;for(;yyfless(gmli,array_length_1d(gmlkeys));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{if(yyfequal(gmlkeys[__yy_gml_array_check_index(gmli,gmlkeys)],gmlfindkey)){{file_text_close(gmlfile);return gmlvalues[__yy_gml_array_check_index(gmli,gmlvalues)];};};}};};};}};file_text_close(gmlfile);return "";}}function gml_GlobalScript_s_load_retrobowl_hof(_inst,_other){(_inst.gmls_load_retrobowl_hof=__yy_method(_inst, gml_Script_s_load_retrobowl_hof));}function gml_Script_s_load_retrobowl_hof(_inst,_other){{gml_Script_slog(_inst,_other,"s_load_retrobowl_hof");var gmllist=ds_list_create();var gmlfile=file_text_open_read("RetroBowlHOF.txt");var gmlkeys=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile);while(!yyGetBool(file_text_eof(gmlfile))){{var gmlmap=ds_map_create();var gmlvalues=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile); var gmli=0;for(;yyfless(gmli,array_length_1d(gmlkeys));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_map_add(gmlmap,gmlkeys[__yy_gml_array_check_index(gmli,gmlkeys)],gmlvalues[__yy_gml_array_check_index(gmli,gmlvalues)]);}};ds_list_add(gmllist,gmlmap);}};file_text_close(gmlfile);return gmllist;}}function gml_GlobalScript_s_load_retrobowl_history(_inst,_other){(_inst.gmls_load_retrobowl_history=__yy_method(_inst,gml_Script_s_load_retrobowl_history)); }function gml_Script_s_load_retrobowl_history(_inst,_other){{gml_Script_slog(_inst,_other,"s_load_retrobowl_history");var gmllist=ds_list_create();var gmlfile=file_text_open_read("RetroBowl_History.txt");var gmlkeys=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile);while(!yyGetBool(file_text_eof(gmlfile))){{var gmlmap=ds_map_create();var gmlvalues=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile);var gmli=0;for(; yyfless(gmli,array_length_1d(gmlkeys));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_map_add(gmlmap,gmlkeys[__yy_gml_array_check_index(gmli,gmlkeys)],gmlvalues[__yy_gml_array_check_index(gmli,gmlvalues)]);}};if(yyflessequal(real(ds_map_find_value(gmlmap,"year")),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstart_year)){ds_list_add(gmllist,gmlmap);}else {ds_map_destroy(gmlmap);};}};file_text_close(gmlfile);return gmllist;}}// // slog ("adding fix: "+string(map[? "week"])+":"+string(map[? "away_team"])+"@"+string(map[? "home_team"])); // // slogf("adding fix (y:%4) %1:%2@%3", map[? "week"], map[? "away_team"], map[? "home_team"], map[? "year"]); function gml_GlobalScript_s_load_schedule(_inst, _other){(_inst.gmls_load_schedule=__yy_method(_inst,gml_Script_s_load_schedule));(_inst.gmls_load_college_schedule=__yy_method(_inst,gml_Script_s_load_college_schedule));(_inst.gmls_get_schedule_data_years=__yy_method(_inst,gml_Script_s_get_schedule_data_years));(_inst.gmls_get_schedule_year_stagger=__yy_method(_inst,gml_Script_s_get_schedule_year_stagger));(_inst.gmls_get_fix_type=__yy_method(_inst,gml_Script_s_get_fix_type));(_inst.gmls_calc_fix_type=__yy_method(_inst,gml_Script_s_calc_fix_type)); (_inst.gmls_get_fix_type_string=__yy_method(_inst,gml_Script_s_get_fix_type_string));(_inst.gmls_get_fix_type_string_by_values=__yy_method(_inst,gml_Script_s_get_fix_type_string_by_values));(_inst.gmls_create_fix_type_string=__yy_method(_inst,gml_Script_s_create_fix_type_string));(_inst.gmls_list_schedule_fix_type=__yy_method(_inst,gml_Script_s_list_schedule_fix_type));}function gml_Script_s_load_schedule(_inst,_other){{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){return gml_Script_s_load_college_schedule(_inst, _other);};var gmllist=ds_list_create();var gmlfilename="Schedule17.txt";var gmlfile=file_text_open_read(gmlfilename);var gmlkeys=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile);while(!yyGetBool(file_text_eof(gmlfile))){{var gmlmap=ds_map_create();var gmlvalues=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile);var gmli=0;for(;yyfless(gmli,array_length_1d(gmlkeys));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli), g_yyPrePostObject__)){{ds_map_add(gmlmap,gmlkeys[__yy_gml_array_check_index(gmli,gmlkeys)],real(gmlvalues[__yy_gml_array_check_index(gmli,gmlvalues)]));}};if(yyfequal(yyfminus(__yy_gml_errCheck(real(ds_map_find_value(gmlmap,"year"))),1),yyfmod(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear),__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear_stagger))),12))){{ds_list_add(gmllist,gmlmap);};}else {{ds_map_destroy(gmlmap);gmlmap=(-1); };};}};file_text_close(gmlfile);return gmllist;}}function gml_Script_s_load_college_schedule(_inst,_other){{var gmllist=ds_list_create();var gmlfilename=gml_Script_s_get_versioned_path(_inst,_other,"Schedule_CO.txt");if(!yyGetBool(variable_instance_exists(YYASSET_REF(0x00000062),"competitions"))){return gmllist;};var gmldata=gml_Script_load_data_to_struct_array(_inst,_other,gmlfilename);var gmldata_years=gml_Script_s_get_schedule_data_years(_inst,_other,gmldata);var gmlselected_year=yyfplus(__yy_gml_errCheck(yyfmod(__yy_gml_errCheck(yyfminus(yyfplus(__yy_gml_errCheck(yyInst(_inst, _other,global.gmlg_m).gmlyear),__yy_gml_errCheck(yyInst(_inst,_other,global.gmlg_m).gmlyear_stagger)),1)),__yy_gml_errCheck(gmldata_years))),1);var gmlsi;gml_Script_slogf(_inst,_other,"*** LOAD COLLEGE SCHEDULE - YEAR %1\nyears available: %2 year stagger: %3 selected year: %4",yyInst(_inst,_other,global.gmlg_m).gmlyear,gmldata_years,yyInst(_inst,_other,global.gmlg_m).gmlyear_stagger,gmlselected_year);var gmli=0;for(;yyfless(gmli,array_length(gmldata));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli), g_yyPrePostObject__)){{gmlsi=gmldata[__yy_gml_array_check_index(gmli,gmldata)];if(yyfequal(yyInst(_inst,_other,gmlsi).gmlyear,gmlselected_year)){{var gmlmap=ds_map_create();ds_map_set(gmlmap,"year",real(yyInst(_inst,_other,gmlsi).gmlyear));ds_map_set(gmlmap,"week",real(yyInst(_inst,_other,gmlsi).gmlweek));ds_map_set(gmlmap,"away_team",real(yyInst(_inst,_other,gmlsi).gmlaway_team));ds_map_set(gmlmap,"home_team",real(yyInst(_inst,_other,gmlsi).gmlhome_team));ds_map_set(gmlmap,"away_score",real(yyInst(_inst, _other,gmlsi).gmlaway_score));ds_map_set(gmlmap,"home_score",real(yyInst(_inst,_other,gmlsi).gmlhome_score));ds_map_set(gmlmap,"cid",gml_Script_s_get_competition_id_from_fix(_inst,_other,gmlmap));ds_list_add(gmllist,gmlmap);};};}};gml_Script_s_reset_competitions_and_subdivisions_pools_and_rankings(_inst,_other);var gmlcomp;var gmli=0;for(;yyfless(gmli,array_length(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcompetitions));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli), g_yyPrePostObject__)){{gmlcomp=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcompetitions[__yy_gml_array_check_index(gmli,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcompetitions)];gml_Script_s_competition_reset_standings(_inst,_other,gmlcomp);if(yyGetBool(real(yyInst(_inst,_other,gmlcomp).gmlactive))){{gml_Script_slogf(_inst,_other,"*** generate schedule for competition %1",yyInst(_inst,_other,gmlcomp).gmlname);gml_Script_s_schedule_generation(_inst,_other,gmlcomp,gmllist,yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlyear);};}else {{gml_Script_slogf(_inst,_other,"*** ignoring deactivated competition %1",yyInst(_inst,_other,gmlcomp).gmlname);};};}};return gmllist;}}function gml_Script_s_get_schedule_data_years(_inst,_other,argument0){{var gmlmax_year=1;var gmli=0;for(;yyfless(gmli,array_length(argument0));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){gmlmax_year=max(real(yyInst(_inst,_other,argument0[__yy_gml_array_check_index(gmli, argument0)]).gmlyear),gmlmax_year)};return gmlmax_year;}}function gml_Script_s_get_schedule_year_stagger(_inst,_other){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){return irandom(12);};var ___sw532___=yyInst(_inst,_other,global.gmlg_m).gmldata_version;var ___swc533___=-1;if(yyCompareVal(___sw532___,1,g_GMLMathEpsilon,false)==0){___swc533___=0;}switch(___swc533___){case 0:{return 0;}default :{return 5;}};}}function gml_Script_s_get_fix_type(_inst,_other,argument0){{var gmltype=gml_Script_s_get_map_real(_inst, _other,argument0,"type",0);if(yyfequal(gmltype,0)){{gmltype=yyInst(_inst,_other,gml_Script_s_calc_fix_type(_inst,_other,argument0)).gmltype;if(yyfnotequal(gmltype,0)){ds_map_set(argument0,"type",gmltype);};};};return gmltype;}}function gml_Script____struct___134_s_calc_fix_type_gml_GlobalScript_s_load_schedule(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___134_s_calc_fix_type_gml_GlobalScript_s_load_schedule";}if(gml_Script____struct___134_s_calc_fix_type_gml_GlobalScript_s_load_schedule.prototype.__type===undefined){ gml_Script____struct___134_s_calc_fix_type_gml_GlobalScript_s_load_schedule.prototype.__type="gml_Script____struct___134_s_calc_fix_type_gml_GlobalScript_s_load_schedule";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___134_s_calc_fix_type_gml_GlobalScript_s_load_schedule.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltype=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlac=(-4);_inst.gmlhc=(-4);}}}}function gml_Script_s_calc_fix_type(_inst, _other,argument0,argument1,argument2,argument3){{if(yyfequal(argument0,_inst.undefined)){argument0=(-4);};if(yyfequal(argument1,_inst.undefined)){argument1=(-4);};if(yyfequal(argument2,_inst.undefined)){argument2=(-4);};if(yyfequal(argument3,_inst.undefined)){argument3=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek;};}{var gmlft=__yy_gml_object_create(_inst,(_inst.gml___struct___134=__yy_method(_inst,gml_Script____struct___134_s_calc_fix_type_gml_GlobalScript_s_load_schedule)),0);if(yyfnotequal(argument0, (-4))){{argument1=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(argument0,"away_team"));argument2=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(argument0,"home_team"));argument3=gml_Script_s_get_map_real(_inst,_other,argument0,"week",0);};};if((yyGetBool((yyGetBool(yyfnotequal(argument0,(-4))))&&(yyGetBool(!yyGetBool(gml_Script_s_is_fix_filled(_inst,_other,argument0))))))||(yyGetBool(yyfgreater(argument3,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular)))){ return gmlft;};yyInst(_inst,_other,gmlft).gmlac=gml_Script_s_get_conference_data(_inst,_other,gml_Script_s_get_map_real(_inst,_other,argument1,"conference",0));yyInst(_inst,_other,gmlft).gmlhc=gml_Script_s_get_conference_data(_inst,_other,gml_Script_s_get_map_real(_inst,_other,argument2,"conference",0));if(yyfnotequal(yyInst(_inst,_other,yyInst(_inst,_other,gmlft).gmlac).gmltier,yyInst(_inst,_other,yyInst(_inst,_other,gmlft).gmlhc).gmltier)){{yyInst(_inst,_other,gmlft).gmltype=3;return gmlft;};};if(yyfnotequal(yyInst(_inst, _other,yyInst(_inst,_other,gmlft).gmlac).gmluid,yyInst(_inst,_other,yyInst(_inst,_other,gmlft).gmlhc).gmluid)){{yyInst(_inst,_other,gmlft).gmltype=2;return gmlft;};};yyInst(_inst,_other,gmlft).gmltype=1;return gmlft;}}function gml_Script_s_get_fix_type_string(_inst,_other,argument0){{var gmlft=gml_Script_s_calc_fix_type(_inst,_other,argument0);return gml_Script_s_create_fix_type_string(_inst,_other,gmlft);}}function gml_Script_s_get_fix_type_string_by_values(_inst,_other,argument0,argument1,argument2){ {if(yyfequal(argument2,_inst.undefined)){argument2=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek;};}{var gmlft=gml_Script_s_calc_fix_type(_inst,_other,(-4),argument0,argument1,argument2);return gml_Script_s_create_fix_type_string(_inst,_other,gmlft);}}function gml_Script_s_create_fix_type_string(_inst,_other,argument0){{var ___sw534___=yyInst(_inst,_other,argument0).gmltype;var ___swc535___=-1;if(yyCompareVal(___sw534___,1,g_GMLMathEpsilon,false)==0){___swc535___=0;}else if(yyCompareVal(___sw534___, 2,g_GMLMathEpsilon,false)==0){___swc535___=1;}else if(yyCompareVal(___sw534___,3,g_GMLMathEpsilon,false)==0){___swc535___=2;}switch(___swc535___){case 0:{return gml_Script_s_str_u(_inst,_other,"ui_ConferenceGame");}case 1:{return gml_Script_s_str_u(_inst,_other,"ui_NonConferenceGame");}case 2:{return gml_Script_s_strfl(_inst,_other,"%1 v %2",string_upper(gml_Script_s_get_subdiv_name(_inst,_other,yyInst(_inst,_other,yyInst(_inst,_other,argument0).gmlac).gmltier)),string_upper(gml_Script_s_get_subdiv_name(_inst, _other,yyInst(_inst,_other,yyInst(_inst,_other,argument0).gmlhc).gmltier)));}};return "";}}function gml_Script_s_list_schedule_fix_type(_inst,_other){{{var __yy__v823=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v824 in __yy__v823){if(!__yy__v823.hasOwnProperty(__yy__v824))continue;var __yy__v825=__yy__v823[__yy__v824];{var gmlfix;gml_Script_slogf(__yy__v825,_inst,"\n*** SCHEDULE FIX TYPES");var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v825.gmlschedule));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli), g_yyPrePostObject__)){{gmlfix=ds_list_find_value(__yy__v825.gmlschedule,gmli);gml_Script_slogf(__yy__v825,_inst,"fix: %1 week: %2 type: %3",gmli,ds_map_find_value(gmlfix,"week"),gml_Script_s_get_fix_type_string(__yy__v825,_inst,gmlfix));}};}}};}}function gml_GlobalScript_s_get_savename(_inst,_other){(_inst.gmls_get_savename=__yy_method(_inst,gml_Script_s_get_savename));}function gml_Script_s_get_savename(_inst,_other){{{var __yy__v826=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v827 in __yy__v826){ if(!__yy__v826.hasOwnProperty(__yy__v827))continue;var __yy__v828=__yy__v826[__yy__v827];{var gmlslot=ds_map_find_value(__yy__v828.gmlmap_options,"saveslot");if(yyfequal(gmlslot,5)){return global.gmlg_savename5;};if(yyfequal(gmlslot,4)){return global.gmlg_savename4;};if(yyfequal(gmlslot,3)){return global.gmlg_savename3;};if(yyfequal(gmlslot,2)){return global.gmlg_savename2;};return global.gmlg_savename1;}}};}}function gml_GlobalScript_s_get_string_save_details(_inst,_other){(_inst.gmls_get_string_save_details=__yy_method(_inst, gml_Script_s_get_string_save_details));}function gml_Script_s_get_string_save_details(_inst,_other,argument0,argument1){{var gmlfilename=global.gmlg_savename1;if(yyfequal(argument0,2)){gmlfilename=global.gmlg_savename2;};if(yyfequal(argument0,3)){gmlfilename=global.gmlg_savename3;};if(yyfequal(argument0,4)){gmlfilename=global.gmlg_savename4;};if(yyfequal(argument0,5)){gmlfilename=global.gmlg_savename5;};if(yyGetBool(argument1)){gmlfilename=yyfplus("backup_",__yy_gml_errCheck(gmlfilename));};gml_Script_slog(_inst, _other,yyfplus("Getting save details: ",__yy_gml_errCheck(gmlfilename)));if(yyGetBool(file_exists(gmlfilename))){{gml_Script_slog(_inst,_other,yyfplus("Opening file: ",__yy_gml_errCheck(gmlfilename)));ini_open(gmlfilename);var gmlyear=ini_read_real("savegame","year",1);var gmlweek=ini_read_real("savegame","week",1);var gmlwk=yyfplus("W",__yy_gml_errCheck(string(gmlweek)));if(yyfgreater(gmlweek,18)){gmlwk="PS";};{var gmlES_LEN=2;if(yyflessequal(gmlweek,14)){{gmlwk=yyfplus("W",__yy_gml_errCheck(string(gmlweek))); };}else {if((yyGetBool(yyfgreater(gmlweek,14)))&&(yyGetBool(yyflessequal(gmlweek,yyfplus(14,__yy_gml_errCheck(gmlES_LEN)))))){{gmlwk=yyfplus("ES",__yy_gml_errCheck(string(yyfminus(__yy_gml_errCheck(gmlweek),14))));};}else {{gmlwk=yyfplus("PS",__yy_gml_errCheck(string(yyfminus(yyfminus(__yy_gml_errCheck(gmlweek),14),__yy_gml_errCheck(gmlES_LEN)))));};};};};var gmlmy_tid=ini_read_real("savegame","myteam_id",0);ini_close();var gmlteam_name=gml_Script_s_load_teamname_from_uniform_file(_inst,_other,gmlmy_tid, yyfplus(yyfplus("uniforms_custom_",__yy_gml_errCheck(string(argument0))),".txt"));var gmltxt=string_hash_to_newline(yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gmlteam_name)," Y"),__yy_gml_errCheck(string(gmlyear)))," "),__yy_gml_errCheck(gmlwk)));return gmltxt;};};return "";}}function gml_GlobalScript_s_destroy_master(_inst,_other){(_inst.gmls_destroy_master=__yy_method(_inst,gml_Script_s_destroy_master));}function gml_Script_s_destroy_master(_inst,_other){{{var __yy__v829=GetWithArray(YYASSET_REF(0x00000062)); for(var __yy__v830 in __yy__v829){if(!__yy__v829.hasOwnProperty(__yy__v830))continue;var __yy__v831=__yy__v829[__yy__v830];{ds_map_destroy(__yy__v831.gmlmap_options);__yy__v831.gmlmap_options=(-1);{};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v831.gmlteamlist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ds_map_destroy(ds_list_find_value(__yy__v831.gmlteamlist,gmli))};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v831.gmlachievements)); (g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ds_map_destroy(ds_list_find_value(__yy__v831.gmlachievements,gmli))};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v831.gmlrecords));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ds_map_destroy(ds_list_find_value(__yy__v831.gmlrecords,gmli))};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v831.gmlhistory));(g_yyPrePostObject__=gmli, gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ds_map_destroy(ds_list_find_value(__yy__v831.gmlhistory,gmli))};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v831.gmlschedule));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ds_map_destroy(ds_list_find_value(__yy__v831.gmlschedule,gmli))};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v831.gmlfixturelist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli), g_yyPrePostObject__)){ds_map_destroy(ds_list_find_value(__yy__v831.gmlfixturelist,gmli))};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v831.gmlplayoffs));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ds_map_destroy(ds_list_find_value(__yy__v831.gmlplayoffs,gmli))};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v831.gmldraftlist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ ds_map_destroy(ds_list_find_value(__yy__v831.gmldraftlist,gmli))};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v831.gmlhirelist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ds_map_destroy(ds_list_find_value(__yy__v831.gmlhirelist,gmli))};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v831.gmlstorelist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ds_map_destroy(ds_list_find_value(__yy__v831.gmlstorelist, gmli))};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v831.gmltradelist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ds_map_destroy(ds_list_find_value(__yy__v831.gmltradelist,gmli))};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v831.gmlfreeagentlist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ds_map_destroy(ds_list_find_value(__yy__v831.gmlfreeagentlist,gmli))};var gmli=0; for(;yyfless(gmli,ds_list_size(__yy__v831.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ds_map_destroy(ds_list_find_value(__yy__v831.gmlroster,gmli))};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v831.gmlstafflist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ds_map_destroy(ds_list_find_value(__yy__v831.gmlstafflist,gmli))};ds_list_destroy(__yy__v831.gmlnewslist); ds_list_destroy(__yy__v831.gmllist_news_dyn);ds_list_destroy(__yy__v831.gmldilemma_tags);ds_list_destroy(__yy__v831.gmlnews_tags);ds_list_destroy(__yy__v831.gmlteamlist);ds_list_destroy(__yy__v831.gmlachievements);ds_list_destroy(__yy__v831.gmlrecords);ds_list_destroy(__yy__v831.gmlhistory);ds_list_destroy(__yy__v831.gmlschedule);ds_list_destroy(__yy__v831.gmlfixturelist);ds_list_destroy(__yy__v831.gmlplayoffs);ds_list_destroy(__yy__v831.gmldraftlist);ds_list_destroy(__yy__v831.gmlhirelist);ds_list_destroy(__yy__v831.gmlstorelist); ds_list_destroy(__yy__v831.gmltradelist);ds_list_destroy(__yy__v831.gmlfreeagentlist);ds_list_destroy(__yy__v831.gmlroster);ds_list_destroy(__yy__v831.gmlstafflist);ds_list_destroy(__yy__v831.gmlhoflist);ds_list_destroy(__yy__v831.gmlrbhistorylist);ds_list_destroy(__yy__v831.gmlcurriculum_tags);if(yyGetBool(gml_Script_s_is_co_mode(__yy__v831,_inst))){{gml_Script_slog(__yy__v831,_inst,"s_destroy_CO_FILES");gml_Script_s_destroy_map_file(__yy__v831,_inst,__yy__v831.gmlhobbies);__yy__v831.gmlhobbies=(-1); gml_Script_s_destroy_map_file(__yy__v831,_inst,__yy__v831.gmlmajorminor);__yy__v831.gmlmajorminor=(-1);gml_Script_s_destroy_map_file(__yy__v831,_inst,__yy__v831.gmlcities);__yy__v831.gmlcities=(-1);gml_Script_s_destroy_map_file(__yy__v831,_inst,__yy__v831.gmltraits);__yy__v831.gmltraits=(-1);gml_Script_s_destroy_map_file(__yy__v831,_inst,__yy__v831.gmlepilogue);__yy__v831.gmlepilogue=(-1);};};__yy__v831.gmlnewslist=(-1);__yy__v831.gmllist_news_dyn=(-1);__yy__v831.gmldilemma_tags=(-1);__yy__v831.gmlnews_tags=(-1); __yy__v831.gmlteamlist=(-1);__yy__v831.gmlachievements=(-1);__yy__v831.gmlrecords=(-1);__yy__v831.gmlhistory=(-1);__yy__v831.gmlschedule=(-1);__yy__v831.gmlfixturelist=(-1);__yy__v831.gmlplayoffs=(-1);__yy__v831.gmldraftlist=(-1);__yy__v831.gmlhirelist=(-1);__yy__v831.gmlstorelist=(-1);__yy__v831.gmltradelist=(-1);__yy__v831.gmlfreeagentlist=(-1);__yy__v831.gmlroster=(-1);__yy__v831.gmlstafflist=(-1);__yy__v831.gmlhoflist=(-1);__yy__v831.gmlrbhistorylist=(-1);__yy__v831.gmlcurriculum_tags=(-1);instance_destroy(__yy__v831); }}};}}function gml_GlobalScript_s_save_uniform_file2(_inst,_other,argument0,argument1,argument2){(_inst.gmls_save_uniform_file2=__yy_method(_inst,gml_Script_s_save_uniform_file2));}function gml_Script_s_save_uniform_file2(_inst,_other,argument0,argument1,argument2){{gml_Script_slog(_inst,_other,"s_save_uniform_file2");var gmluid=argument0;var gmlobj_uni=argument1;var gmluniformtype=argument2;var gmlfile_name=yyfplus(yyfplus("uniforms_custom_",__yy_gml_errCheck(string(ds_map_find_value(yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlmap_options,"saveslot")))),".txt");if(!yyGetBool(file_exists(gmlfile_name))){file_copy(gml_Script_s_uniforms_default_file(_inst,_other),gmlfile_name);};var gmlfile_old=file_text_open_read(gmlfile_name);var gmllist=ds_list_create();var gmlcount=(-1);while(!yyGetBool(file_text_eof(gmlfile_old))){{ds_list_add(gmllist,file_text_readln(gmlfile_old));}};file_text_close(gmlfile_old);file_delete(gmlfile_name);var gmlfile_new=file_text_open_write(gmlfile_name);var gmlcount=0;for(;yyfless(gmlcount, ds_list_size(gmllist));(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__)){{if(yyfless(string_length(ds_list_find_value(gmllist,gmlcount)),10)){continue;};var gmlvalues=gml_Script_s_split_string(_inst,_other,ds_list_find_value(gmllist,gmlcount));if(yyfequal(gmlvalues[__yy_gml_array_check_index(0,gmlvalues)],gmluid)){{gmlvalues=__yy_gml_array_check(gmlvalues,691104900);gmlvalues[__yy_gml_array_check_index_set(1)]=yyInst(_inst, _other,gmlobj_uni).gmlname;gmlvalues[__yy_gml_array_check_index_set(2)]=yyInst(_inst,_other,gmlobj_uni).gmltla;var ___sw538___=gmluniformtype;var ___swc539___=-1;if(yyCompareVal(___sw538___,0,g_GMLMathEpsilon,false)==0){___swc539___=0;}else if(yyCompareVal(___sw538___,1,g_GMLMathEpsilon,false)==0){___swc539___=1;}else if(yyCompareVal(___sw538___,2,g_GMLMathEpsilon,false)==0){___swc539___=2;}else if(yyCompareVal(___sw538___,3,g_GMLMathEpsilon,false)==0){___swc539___=3;}switch(___swc539___){case 0:{gmlvalues[__yy_gml_array_check_index_set(3)]=yyInst(_inst, _other,gmlobj_uni).gmlhex_helmet;gmlvalues[__yy_gml_array_check_index_set(4)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_logo;gmlvalues[__yy_gml_array_check_index_set(5)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_shirt;gmlvalues[__yy_gml_array_check_index_set(6)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_sleeve;gmlvalues[__yy_gml_array_check_index_set(7)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_pants;gmlvalues[__yy_gml_array_check_index_set(8)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_stripe;gmlvalues[__yy_gml_array_check_index_set(9)]=yyInst(_inst, _other,gmlobj_uni).gmlhex_socks1;gmlvalues[__yy_gml_array_check_index_set(10)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_socks2;break;}case 1:{gmlvalues[__yy_gml_array_check_index_set(11)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_helmet;gmlvalues[__yy_gml_array_check_index_set(12)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_logo;gmlvalues[__yy_gml_array_check_index_set(13)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_shirt;gmlvalues[__yy_gml_array_check_index_set(14)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_sleeve; gmlvalues[__yy_gml_array_check_index_set(15)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_pants;gmlvalues[__yy_gml_array_check_index_set(16)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_stripe;gmlvalues[__yy_gml_array_check_index_set(17)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_socks1;gmlvalues[__yy_gml_array_check_index_set(18)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_socks2;break;}case 2:{gmlvalues[__yy_gml_array_check_index_set(19)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_helmet;gmlvalues[__yy_gml_array_check_index_set(20)]=yyInst(_inst, _other,gmlobj_uni).gmlhex_logo;gmlvalues[__yy_gml_array_check_index_set(21)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_shirt;gmlvalues[__yy_gml_array_check_index_set(22)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_sleeve;gmlvalues[__yy_gml_array_check_index_set(23)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_pants;gmlvalues[__yy_gml_array_check_index_set(24)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_stripe;gmlvalues[__yy_gml_array_check_index_set(25)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_socks1;gmlvalues[__yy_gml_array_check_index_set(26)]=yyInst(_inst, _other,gmlobj_uni).gmlhex_socks2;break;}case 3:{gmlvalues[__yy_gml_array_check_index_set(27)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_helmet;gmlvalues[__yy_gml_array_check_index_set(28)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_logo;gmlvalues[__yy_gml_array_check_index_set(29)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_shirt;gmlvalues[__yy_gml_array_check_index_set(30)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_sleeve;gmlvalues[__yy_gml_array_check_index_set(31)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_pants; gmlvalues[__yy_gml_array_check_index_set(32)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_stripe;gmlvalues[__yy_gml_array_check_index_set(33)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_socks1;gmlvalues[__yy_gml_array_check_index_set(34)]=yyInst(_inst,_other,gmlobj_uni).gmlhex_socks2;break;}};gmlvalues[__yy_gml_array_check_index_set(34)]=yyfplus("$",__yy_gml_errCheck(string_lettersdigits(gmlvalues[__yy_gml_array_check_index(34,gmlvalues)])));gmlvalues[__yy_gml_array_check_index_set(35)]=string(yyInst(_inst, _other,gmlobj_uni).gmlroof);gmlvalues[__yy_gml_array_check_index_set(36)]=string(yyInst(_inst,_other,gmlobj_uni).gmlrainfall);gmlvalues[__yy_gml_array_check_index_set(37)]=string(yyInst(_inst,_other,gmlobj_uni).gmlsnowfall);gmlvalues[__yy_gml_array_check_index_set(38)]=string(yyInst(_inst,_other,gmlobj_uni).gmlhex_endzone);ds_list_set(gmllist,gmlcount,gmlvalues[__yy_gml_array_check_index(0,gmlvalues)]);var gmli=1;for(;yyfless(gmli,array_length_1d(gmlvalues));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli), g_yyPrePostObject__)){{ds_list_set(gmllist,gmlcount,yyfplus(__yy_gml_errCheck(ds_list_find_value(gmllist,gmlcount)),__yy_gml_errCheck(yyfplus(" ",__yy_gml_errCheck(gmlvalues[__yy_gml_array_check_index(gmli,gmlvalues)])))));}};};};ds_list_set(gmllist,gmlcount,string_replace_all(ds_list_find_value(gmllist,gmlcount),"\n",""));ds_list_set(gmllist,gmlcount,yyfplus(__yy_gml_errCheck(ds_list_find_value(gmllist,gmlcount)),"\n"));file_text_write_string(gmlfile_new,ds_list_find_value(gmllist,gmlcount));}} ;file_text_close(gmlfile_new);}}function gml_GlobalScript_s_load_uniform_file2(_inst,_other){(_inst.gmls_load_uniform_file2=__yy_method(_inst,gml_Script_s_load_uniform_file2));}function gml_Script_s_load_uniform_file2(_inst,_other,argument0,argument1,argument2,argument3,argument4){{if(yyfequal(argument4,_inst.undefined)){argument4=false;};}{if(yyfequal(argument4,false)){{if((yyGetBool(global.gmlbrowser))||(yyGetBool(global.gmlexhibition))){{argument3=gml_Script_s_uniforms_default_file(_inst,_other); };}else {{if(yyfequal(argument3,"")){argument3=yyfplus(yyfplus("uniforms_custom_",__yy_gml_errCheck(string(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"saveslot")))),".txt");};if(!yyGetBool(file_exists(argument3))){file_copy(gml_Script_s_uniforms_default_file(_inst,_other),argument3);};};};};};gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus("s_load_uniform_file:",__yy_gml_errCheck(argument3)),": Team="),__yy_gml_errCheck(string(argument0))));var gmlfile=file_text_open_read(argument3); if(yyGetBool(gmlfile)){{var gmlkeys=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile);while(!yyGetBool(file_text_eof(gmlfile))){{var gmlstr=file_text_read_string(gmlfile);var gmlvalues=gml_Script_s_split_string(_inst,_other,gmlstr);file_text_readln(gmlfile);if(yyfequal(gmlvalues[__yy_gml_array_check_index(0,gmlvalues)],argument0)){{yyInst(_inst,_other,argument1).gmlname=gmlvalues[__yy_gml_array_check_index(1,gmlvalues)];yyInst(_inst,_other,argument1).gmltla=gmlvalues[__yy_gml_array_check_index(2, gmlvalues)];var ___sw542___=argument2;var ___swc543___=-1;if(yyCompareVal(___sw542___,0,g_GMLMathEpsilon,false)==0){___swc543___=0;}else if(yyCompareVal(___sw542___,1,g_GMLMathEpsilon,false)==0){___swc543___=1;}else if(yyCompareVal(___sw542___,2,g_GMLMathEpsilon,false)==0){___swc543___=2;}else if(yyCompareVal(___sw542___,3,g_GMLMathEpsilon,false)==0){___swc543___=3;}switch(___swc543___){case 0:{yyInst(_inst,_other,argument1).gmlhex_helmet=gmlvalues[__yy_gml_array_check_index(3,gmlvalues)];yyInst(_inst, _other,argument1).gmlhex_logo=gmlvalues[__yy_gml_array_check_index(4,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_shirt=gmlvalues[__yy_gml_array_check_index(5,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_sleeve=gmlvalues[__yy_gml_array_check_index(6,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_pants=gmlvalues[__yy_gml_array_check_index(7,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_stripe=gmlvalues[__yy_gml_array_check_index(8,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_socks1=gmlvalues[__yy_gml_array_check_index(9, gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_socks2=gmlvalues[__yy_gml_array_check_index(10,gmlvalues)];break;}case 1:{yyInst(_inst,_other,argument1).gmlhex_helmet=gmlvalues[__yy_gml_array_check_index(11,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_logo=gmlvalues[__yy_gml_array_check_index(12,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_shirt=gmlvalues[__yy_gml_array_check_index(13,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_sleeve=gmlvalues[__yy_gml_array_check_index(14,gmlvalues)]; yyInst(_inst,_other,argument1).gmlhex_pants=gmlvalues[__yy_gml_array_check_index(15,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_stripe=gmlvalues[__yy_gml_array_check_index(16,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_socks1=gmlvalues[__yy_gml_array_check_index(17,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_socks2=gmlvalues[__yy_gml_array_check_index(18,gmlvalues)];break;}case 2:{yyInst(_inst,_other,argument1).gmlhex_helmet=gmlvalues[__yy_gml_array_check_index(19,gmlvalues)];yyInst(_inst, _other,argument1).gmlhex_logo=gmlvalues[__yy_gml_array_check_index(20,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_shirt=gmlvalues[__yy_gml_array_check_index(21,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_sleeve=gmlvalues[__yy_gml_array_check_index(22,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_pants=gmlvalues[__yy_gml_array_check_index(23,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_stripe=gmlvalues[__yy_gml_array_check_index(24,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_socks1=gmlvalues[__yy_gml_array_check_index(25, gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_socks2=gmlvalues[__yy_gml_array_check_index(26,gmlvalues)];break;}case 3:{yyInst(_inst,_other,argument1).gmlhex_helmet=gmlvalues[__yy_gml_array_check_index(27,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_logo=gmlvalues[__yy_gml_array_check_index(28,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_shirt=gmlvalues[__yy_gml_array_check_index(29,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_sleeve=gmlvalues[__yy_gml_array_check_index(30,gmlvalues)]; yyInst(_inst,_other,argument1).gmlhex_pants=gmlvalues[__yy_gml_array_check_index(31,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_stripe=gmlvalues[__yy_gml_array_check_index(32,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_socks1=gmlvalues[__yy_gml_array_check_index(33,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_socks2=gmlvalues[__yy_gml_array_check_index(34,gmlvalues)];break;}};if(yyfgreater(array_length_1d(gmlvalues),35)){{gml_Script_slog(_inst,_other,"loading 35");yyInst(_inst,_other, argument1).gmlroof=real(gmlvalues[__yy_gml_array_check_index(35,gmlvalues)]);yyInst(_inst,_other,argument1).gmlrainfall=gmlvalues[__yy_gml_array_check_index(36,gmlvalues)];yyInst(_inst,_other,argument1).gmlsnowfall=gmlvalues[__yy_gml_array_check_index(37,gmlvalues)];yyInst(_inst,_other,argument1).gmlhex_endzone=gmlvalues[__yy_gml_array_check_index(38,gmlvalues)];};}else {{gml_Script_slog(_inst,_other,"pulling from tmap");var gmltmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteamlist, argument0);yyInst(_inst,_other,argument1).gmlroof=real(ds_map_find_value(gmltmap,"roof"));yyInst(_inst,_other,argument1).gmlrainfall=ds_map_find_value(gmltmap,"rainfall");yyInst(_inst,_other,argument1).gmlsnowfall=ds_map_find_value(gmltmap,"snowfall");yyInst(_inst,_other,argument1).gmlhex_endzone=gml_Script_s_load_endzone_from_uniform_file(_inst,_other,argument0,gml_Script_s_uniforms_default_file(_inst,_other));};};break;};};}};file_text_close(gmlfile);};};gml_Script_slog(_inst,_other,"Uniform loaded"); gml_Script_s_convert_uniform_colours_all(_inst,_other,argument1);}}function gml_GlobalScript_s_load_teamname_from_uniform_file(_inst,_other,argument0,argument1){(_inst.gmls_load_teamname_from_uniform_file=__yy_method(_inst,gml_Script_s_load_teamname_from_uniform_file));}function gml_Script_s_load_teamname_from_uniform_file(_inst,_other,argument0,argument1){{var gmluid=argument0;var gmlfilename=argument1;gml_Script_slog(_inst,_other,yyfplus("s_load_teamname_from_uniform_file:",__yy_gml_errCheck(gmlfilename))); if(!yyGetBool(file_exists(gmlfilename))){{gml_Script_slog(_inst,_other,yyfplus(__yy_gml_errCheck(gmlfilename)," does not exist. Using default."));gmlfilename=gml_Script_s_uniforms_default_file(_inst,_other);};};if(yyGetBool(file_exists(gmlfilename))){{var gmlfile=file_text_open_read(gmlfilename);var gmlkeys=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile);while(!yyGetBool(file_text_eof(gmlfile))){{var gmlvalues=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile)); file_text_readln(gmlfile);if(yyfequal(gmlvalues[__yy_gml_array_check_index(0,gmlvalues)],gmluid)){{file_text_close(gmlfile);return string(gmlvalues[__yy_gml_array_check_index(1,gmlvalues)]);break;};};}};file_text_close(gmlfile);};};return "Team name";}}function gml_GlobalScript_s_load_endzone_from_uniform_file(_inst,_other,argument0,argument1){(_inst.gmls_load_endzone_from_uniform_file=__yy_method(_inst,gml_Script_s_load_endzone_from_uniform_file));}function gml_Script_s_load_endzone_from_uniform_file(_inst, _other,argument0,argument1){{var gmluid=argument0;var gmlfilename=argument1;gml_Script_slog(_inst,_other,yyfplus("s_load_endzone_from_uniform_file:",__yy_gml_errCheck(gmlfilename)));if(!yyGetBool(file_exists(gmlfilename))){{var gmltmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteamlist,gmluid);return string(ds_map_find_value(gmltmap,"colshirt"));};}else {{var gmlfile=file_text_open_read(gmlfilename);var gmlkeys=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile)); file_text_readln(gmlfile);while(!yyGetBool(file_text_eof(gmlfile))){{var gmlvalues=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile);if(yyfequal(gmlvalues[__yy_gml_array_check_index(0,gmlvalues)],gmluid)){{file_text_close(gmlfile);return string(gmlvalues[__yy_gml_array_check_index(38,gmlvalues)]);break;};};}};file_text_close(gmlfile);};};}}// // slog ("Week: "+string(fix[? "week"])+" team "+string(team_id1)+" @ "+string(team_id2)); function gml_GlobalScript_s_create_my_fixture_list(_inst, _other){(_inst.gmls_create_my_fixture_list=__yy_method(_inst,gml_Script_s_create_my_fixture_list));}function gml_Script_s_create_my_fixture_list(_inst,_other){{gml_Script_slog(_inst,_other,"s_create_my_fixture_list");var gmlfixlist=ds_list_create();var gmlf=0;for(;yyfless(gmlf,ds_list_size(_inst.gmlschedule));(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf),g_yyPrePostObject__)){{var gmlfix=ds_list_find_value(_inst.gmlschedule,gmlf);var gmlteam_id1=ds_map_find_value(gmlfix, "away_team");var gmlteam_id2=ds_map_find_value(gmlfix,"home_team");if((yyGetBool(yyfequal(gmlteam_id1,_inst.gmlmyteam_id)))||(yyGetBool(yyfequal(gmlteam_id2,_inst.gmlmyteam_id)))){{var gmlmap=ds_map_create();ds_map_set(gmlmap,"week",ds_map_find_value(gmlfix,"week"));ds_map_set(gmlmap,"away_team",gmlteam_id1);ds_map_set(gmlmap,"home_team",gmlteam_id2);ds_map_set(gmlmap,"away_score",ds_map_find_value(gmlfix,"away_score"));ds_map_set(gmlmap,"home_score",ds_map_find_value(gmlfix,"home_score"));ds_map_set(gmlmap, "human_win","unplayed");if(yyfgreater(ds_map_find_value(gmlfix,"away_score"),(-1))){{if(yyfequal(ds_map_find_value(gmlfix,"away_score"),ds_map_find_value(gmlfix,"home_score"))){ds_map_set(gmlmap,"human_win","tie");}else {if((yyGetBool(yyfequal(ds_map_find_value(gmlfix,"away_team"),_inst.gmlmyteam_id)))&&(yyGetBool(yyfgreater(ds_map_find_value(gmlfix,"away_score"),ds_map_find_value(gmlfix,"home_score"))))){ds_map_set(gmlmap,"human_win","win");}else {if((yyGetBool(yyfequal(ds_map_find_value(gmlfix,"home_team"), _inst.gmlmyteam_id)))&&(yyGetBool(yyfgreater(ds_map_find_value(gmlfix,"home_score"),ds_map_find_value(gmlfix,"away_score"))))){ds_map_set(gmlmap,"human_win","win");}else {ds_map_set(gmlmap,"human_win","loss");};};};};};gml_Script_s_update_fixturelist_fix_extra_data(_inst,_other,gmlfix,gmlmap);ds_list_add(gmlfixlist,gmlmap);};};}};return gmlfixlist;}}// slog("create fixture "+string(away_id)+" @ "+string(home_id)); function gml_GlobalScript_s_create_fixdata(_inst,_other){(_inst.gmls_create_fixdata=__yy_method(_inst, gml_Script_s_create_fixdata));}function gml_Script_s_create_fixdata(_inst,_other,argument0,argument1,argument2,argument3){{gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus("create fixture ",__yy_gml_errCheck(string(argument2)))," @ "),__yy_gml_errCheck(string(argument3))));var gmlfix=ds_map_create();ds_map_set(gmlfix,"week",argument1);ds_map_set(gmlfix,"away_team",argument2);ds_map_set(gmlfix,"home_team",argument3);ds_map_set(gmlfix,"away_score",(-1));ds_map_set(gmlfix,"home_score",(-1));ds_list_add(argument0, gmlfix);if((yyGetBool(yyfequal(argument2,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id)))||(yyGetBool(yyfequal(argument3,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id)))){{gml_Script_s_add_to_human_fixtures(_inst,_other,argument1,argument2,argument3);};};}}function gml_GlobalScript_s_do_schedule(_inst,_other){(_inst.gmls_do_schedule=__yy_method(_inst,gml_Script_s_do_schedule));(_inst.gmls_co_get_sim_results=__yy_method(_inst,gml_Script_s_co_get_sim_results));(_inst.gmls_co_conference_stats=__yy_method(_inst, gml_Script_s_co_conference_stats));}function gml_Script_s_do_schedule(_inst,_other,argument0){{gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus("s_do_schedule week: ",__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek)))," skipping: "),__yy_gml_errCheck(string(argument0))));var gmlmyresult=0;{var __yy__v832=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v833 in __yy__v832){if(!__yy__v832.hasOwnProperty(__yy__v833))continue;var __yy__v834=__yy__v832[__yy__v833];{if((yyGetBool(yyfgreater(__yy__v834.gmlweek, yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular)))&&(yyGetBool(!yyGetBool(gml_Script_s_is_co_mode(__yy__v834,_inst))))){{return gml_Script_s_do_playoff_schedule(__yy__v834,_inst,argument0);};};var gmlf=0;for(;yyfless(gmlf,ds_list_size(__yy__v834.gmlschedule));(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf),g_yyPrePostObject__)){{var gmlfix=ds_list_find_value(__yy__v834.gmlschedule,gmlf);if(yyfequal(ds_map_find_value(gmlfix,"week"),__yy__v834.gmlweek)){ {var gmlteam_idAway=ds_map_find_value(gmlfix,"away_team");var gmlteam_idHome=ds_map_find_value(gmlfix,"home_team");if((yyGetBool(gml_Script_s_is_co_mode(__yy__v834,_inst)))&&(yyGetBool((yyGetBool(yyfless(gmlteam_idAway,0)))||(yyGetBool(yyfless(gmlteam_idHome,0)))))){{gml_Script_slogf(__yy__v834,_inst,"*** WARNING: match %1 has not been filled with teams",ds_map_find_value(gmlfix,"cid"));continue;};};var gmlteam_mapAway=ds_list_find_value(__yy__v834.gmlteamlist,gmlteam_idAway);var gmlteam_mapHome=ds_list_find_value(__yy__v834.gmlteamlist, gmlteam_idHome);if(yyGetBool(gml_Script_s_is_co_mode(__yy__v834,_inst))){{var gmlsim=gml_Script_s_co_get_sim_results(__yy__v834,_inst,gmlteam_mapAway,gmlteam_mapHome,(yyGetBool(gml_Script_s_is_co_bowl_fix(__yy__v834,_inst,gmlfix))?false:true));var gmlscoredataAway=yyInst(_inst,_other,gmlsim).gmlscoredataAway;var gmlscoredataHome=yyInst(_inst,_other,gmlsim).gmlscoredataHome;};}else {{var gmlteam_strengthAway=gml_Script_s_get_team_offense_with_reputation_boost(__yy__v834,_inst,gmlteam_mapAway);gmlteam_strengthAway=yyfplus(gmlteam_strengthAway, gml_Script_s_get_team_defense_with_reputation_boost(__yy__v834,_inst,gmlteam_mapAway));var gmlteam_strengthHome=gml_Script_s_get_team_offense_with_reputation_boost(__yy__v834,_inst,gmlteam_mapHome);gmlteam_strengthHome=yyfplus(gmlteam_strengthHome,gml_Script_s_get_team_defense_with_reputation_boost(__yy__v834,_inst,gmlteam_mapHome));gmlteam_strengthHome=yyfplus(gmlteam_strengthHome,1);var gmlscoredataAway=gml_Script_s_get_random_scoredata(__yy__v834,_inst);var gmlscoredataHome=gml_Script_s_get_random_scoredata(__yy__v834, _inst);var gmlr_no_ties=irandom(2);if(yyGetBool(gml_Script_s_is_co_mode(__yy__v834,_inst))){{gmlr_no_ties=1;};};if((yyGetBool(yyfequal(ds_map_find_value(gmlscoredataAway,"points"),ds_map_find_value(gmlscoredataHome,"points"))))&&(yyGetBool(gmlr_no_ties))){{ds_map_set(gmlscoredataHome,"points",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlscoredataHome,"points")),3));};};var gmldo_swap=false;var gmlupset_chance=99;gmlupset_chance=abs(yyfminus(__yy_gml_errCheck(gmlteam_strengthAway),__yy_gml_errCheck(gmlteam_strengthHome))); gmlupset_chance=round(yyftime(__yy_gml_errCheck(gmlupset_chance),0.25));if(yyfgreater(ds_map_find_value(gmlscoredataAway,"points"),ds_map_find_value(gmlscoredataHome,"points"))){{if(yyfless(gmlteam_strengthAway,gmlteam_strengthHome)){gmldo_swap=irandom(gmlupset_chance);};};}else {{if(yyfgreater(gmlteam_strengthAway,gmlteam_strengthHome)){gmldo_swap=irandom(gmlupset_chance);};};};if(yyGetBool(gmldo_swap)){{var gmltemp_map=ds_map_create();ds_map_copy(gmltemp_map,gmlscoredataAway);ds_map_copy(gmlscoredataAway, gmlscoredataHome);ds_map_copy(gmlscoredataHome,gmltemp_map);ds_map_destroy(gmltemp_map);gmltemp_map=(-1);};};};};if(!yyGetBool(argument0)){{if(yyfequal(gmlteam_idAway,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id)){{ds_map_set(gmlscoredataAway,"points",yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltscore[__yy_gml_array_check_index(0,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltscore)]);ds_map_set(gmlscoredataHome,"points",yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltscore[__yy_gml_array_check_index(1, yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltscore)]);if(yyfgreater(ds_map_find_value(gmlscoredataAway,"points"),ds_map_find_value(gmlscoredataHome,"points"))){gmlmyresult=1;};if(yyfless(ds_map_find_value(gmlscoredataAway,"points"),ds_map_find_value(gmlscoredataHome,"points"))){gmlmyresult=(-1);};};}else {if(yyfequal(gmlteam_idHome,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id)){{ds_map_set(gmlscoredataHome,"points",yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltscore[__yy_gml_array_check_index(1, yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltscore)]);ds_map_set(gmlscoredataAway,"points",yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltscore[__yy_gml_array_check_index(0,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltscore)]);if(yyfless(ds_map_find_value(gmlscoredataAway,"points"),ds_map_find_value(gmlscoredataHome,"points"))){gmlmyresult=1;};if(yyfgreater(ds_map_find_value(gmlscoredataAway,"points"),ds_map_find_value(gmlscoredataHome,"points"))){gmlmyresult=(-1);};};};};};}else {if((yyGetBool(global.gmldebug))&&(yyGetBool(yyfnotequal(global.gmldebug_force_skip_result, 0)))){{if((yyGetBool(yyfequal(gmlteam_idAway,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id)))||(yyGetBool(yyfequal(gmlteam_idHome,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id)))){{gmlmyresult=global.gmldebug_force_skip_result;if((yyGetBool((yyGetBool(yyfequal(gmlmyresult,1)))&&(yyGetBool(yyfequal(gmlteam_idAway,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id)))))||(yyGetBool((yyGetBool(yyfequal(gmlmyresult,(-1))))&&(yyGetBool(yyfequal(gmlteam_idHome,yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlmyteam_id)))))){{ds_map_set(gmlscoredataAway,"points",21);ds_map_set(gmlscoredataHome,"points",7);};}else {{ds_map_set(gmlscoredataAway,"points",7);ds_map_set(gmlscoredataHome,"points",21);};};};};};};};ds_map_set(gmlfix,"away_score",ds_map_find_value(gmlscoredataAway,"points"));ds_map_set(gmlfix,"home_score",ds_map_find_value(gmlscoredataHome,"points"));if(yyfgreater(ds_map_find_value(gmlscoredataAway,"points"),ds_map_find_value(gmlscoredataHome,"points"))){{ds_map_set(gmlteam_mapAway, "wins",yyfplus(__yy_gml_errCheck(real(ds_map_find_value(gmlteam_mapAway,"wins"))),1));ds_map_set(gmlteam_mapHome,"losses",yyfplus(__yy_gml_errCheck(real(ds_map_find_value(gmlteam_mapHome,"losses"))),1));};}else {if(yyfless(ds_map_find_value(gmlscoredataAway,"points"),ds_map_find_value(gmlscoredataHome,"points"))){{ds_map_set(gmlteam_mapAway,"losses",yyfplus(__yy_gml_errCheck(real(ds_map_find_value(gmlteam_mapAway,"losses"))),1));ds_map_set(gmlteam_mapHome,"wins",yyfplus(__yy_gml_errCheck(real(ds_map_find_value(gmlteam_mapHome, "wins"))),1));};}else {{ds_map_set(gmlteam_mapAway,"ties",yyfplus(__yy_gml_errCheck(real(ds_map_find_value(gmlteam_mapAway,"ties"))),1));ds_map_set(gmlteam_mapHome,"ties",yyfplus(__yy_gml_errCheck(real(ds_map_find_value(gmlteam_mapHome,"ties"))),1));};};};ds_map_destroy(gmlscoredataAway);ds_map_destroy(gmlscoredataHome);gmlscoredataAway=(-1);gmlscoredataHome=(-1);gml_Script_s_co_update_fix_rank(__yy__v834,_inst,gmlfix);gml_Script_s_update_fixture_teams_reputation(__yy__v834,_inst,gmlfix);};};}};} }};gml_Script_s_co_conference_stats(_inst,_other);if(!yyGetBool(argument0)){gml_Script_s_competitions_status_update(_inst,_other);};{var __yy__v835=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v836 in __yy__v835){if(!__yy__v835.hasOwnProperty(__yy__v836))continue;var __yy__v837=__yy__v835[__yy__v836];{if(yyfequal(__yy__v837.gmlweek,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular)){{gml_Script_s_competitions_status_update(__yy__v837,_inst);var gmlseason_wins=gml_Script_s_get_map_real(__yy__v837, _inst,__yy__v837.gmlmyteam,"wins",0);var gmlseason_losses=gml_Script_s_get_map_real(__yy__v837,_inst,__yy__v837.gmlmyteam,"losses",0);if(yyfgreater(gmlseason_wins,gmlseason_losses)){gml_Script_s_complete_achievement(__yy__v837,_inst,"ACH_WINNING_SEASON");};if((yyGetBool((yyGetBool(gml_Script_s_is_co_mode(__yy__v837,_inst)))&&(yyGetBool(yyfequal(gmlseason_losses,0)))))||(yyGetBool((yyGetBool(!yyGetBool(gml_Script_s_is_co_mode(__yy__v837,_inst))))&&(yyGetBool(yyfequal(gmlseason_wins,17)))))){gml_Script_s_complete_achievement(__yy__v837, _inst,"ACH_UNBEATEN_SEASON");};gml_Script_s_update_history(__yy__v837,_inst,gmlmyresult);};};}}};}}function gml_Script____struct___135_s_co_get_sim_results_gml_GlobalScript_s_do_schedule(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___135_s_co_get_sim_results_gml_GlobalScript_s_do_schedule";}if(gml_Script____struct___135_s_co_get_sim_results_gml_GlobalScript_s_do_schedule.prototype.__type===undefined){gml_Script____struct___135_s_co_get_sim_results_gml_GlobalScript_s_do_schedule.prototype.__type="gml_Script____struct___135_s_co_get_sim_results_gml_GlobalScript_s_do_schedule"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___135_s_co_get_sim_results_gml_GlobalScript_s_do_schedule.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlscoredataAway=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlscoredataHome=$$args[__yy_gml_array_check_index(2+(1),$$args)];}}}}function gml_Script_s_co_get_sim_results(_inst,_other,argument0,argument1,argument2,argument3,argument4){{if(yyfequal(argument2,_inst.undefined)){argument2=true; };if(yyfequal(argument3,_inst.undefined)){argument3=(-4);};if(yyfequal(argument4,_inst.undefined)){argument4=(-4);};}{if((yyGetBool(yyfnotequal(argument3,(-4))))&&(yyGetBool(yyfnotequal(argument4,(-4))))){{var gmlteam_strengthAway=argument3;var gmlteam_strengthHome=argument4;};}else {{var gmlteam_strengthAway=real(ds_map_find_value(argument0,"offense"));gmlteam_strengthAway=yyfplus(gmlteam_strengthAway,real(ds_map_find_value(argument0,"defense")));var gmlteam_strengthHome=real(ds_map_find_value(argument1, "offense"));gmlteam_strengthHome=yyfplus(gmlteam_strengthHome,real(ds_map_find_value(argument1,"defense")));gmlteam_strengthAway=yyfplus(gmlteam_strengthAway,gml_Script_s_get_reputation_points(_inst,_other,argument0));gmlteam_strengthHome=yyfplus(gmlteam_strengthHome,gml_Script_s_get_reputation_points(_inst,_other,argument1));};};if(yyGetBool(argument2)){gmlteam_strengthHome=yyfplus(gmlteam_strengthHome,1);};gmlteam_strengthHome=power(yyfplus(__yy_gml_errCheck(gmlteam_strengthHome),5),3);gmlteam_strengthAway=power(yyfplus(__yy_gml_errCheck(gmlteam_strengthAway), 5),3);var gmlwinningTeamRoll=irandom(yyfplus(__yy_gml_errCheck(gmlteam_strengthHome),__yy_gml_errCheck(gmlteam_strengthAway)));var gmlwinningTeam=0;if(yyfgreater(gmlwinningTeamRoll,gmlteam_strengthHome)){{gmlwinningTeam=1;};};var gmlscoringChancePct=yyfdivide(__yy_gml_errCheck(abs(yyfminus(__yy_gml_errCheck(gmlteam_strengthHome),__yy_gml_errCheck(gmlwinningTeamRoll)))),__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(gmlteam_strengthHome),__yy_gml_errCheck(gmlteam_strengthAway))));var gmlscoringChances=irandom_range(7, 13);var gmlscoringChancesHome=gmlscoringChances;var gmlscoringChancesAway=gmlscoringChances;if(yyfequal(gmlwinningTeam,0)){{gmlscoringChancesHome=yyfplus(__yy_gml_errCheck(gmlscoringChancesHome),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlscoringChancesHome),__yy_gml_errCheck(gmlscoringChancePct))));gmlscoringChancesAway=yyfminus(__yy_gml_errCheck(gmlscoringChancesAway),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlscoringChancesAway),__yy_gml_errCheck(gmlscoringChancePct))));};}else {{gmlscoringChancesHome=yyfminus(__yy_gml_errCheck(gmlscoringChancesHome), __yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlscoringChancesHome),__yy_gml_errCheck(gmlscoringChancePct))));gmlscoringChancesAway=yyfplus(__yy_gml_errCheck(gmlscoringChancesAway),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlscoringChancesAway),__yy_gml_errCheck(gmlscoringChancePct))));};};if(yyfgreater(gmlscoringChancesHome,13)){{gmlscoringChancesHome=13;};};if(yyfgreater(gmlscoringChancesAway,13)){{gmlscoringChancesAway=13;};};if(yyfless(gmlscoringChancesHome,1)){{gmlscoringChancesHome=1;};} ;if(yyfless(gmlscoringChancesAway,1)){{gmlscoringChancesAway=1;};};var gmldo_swap=false;var gmlsim=__yy_gml_object_create(_inst,(_inst.gml___struct___135=__yy_method(_inst,gml_Script____struct___135_s_co_get_sim_results_gml_GlobalScript_s_do_schedule)),gml_Script_s_co_get_random_scoredata(_inst,_other,gmlscoringChancesAway),gml_Script_s_co_get_random_scoredata(_inst,_other,gmlscoringChancesHome));if(yyfequal(ds_map_find_value(yyInst(_inst,_other,gmlsim).gmlscoredataAway,"points"),ds_map_find_value(yyInst(_inst, _other,gmlsim).gmlscoredataHome,"points"))){{var gmltie_scoredata=yyInst(_inst,_other,gmlsim).gmlscoredataHome;if((yyGetBool(!yyGetBool(argument2)))&&(yyGetBool(yyfgreater(ds_map_find_value(argument0,"ranking_points"),ds_map_find_value(argument1,"ranking_points"))))){gmltie_scoredata=yyInst(_inst,_other,gmlsim).gmlscoredataAway;};if(yyfequal(irandom(3),1)){{ds_map_set(gmltie_scoredata,"points",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmltie_scoredata,"points")),3));};}else {{ds_map_set(gmltie_scoredata, "points",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmltie_scoredata,"points")),7));};};};};if(yyfgreater(ds_map_find_value(yyInst(_inst,_other,gmlsim).gmlscoredataAway,"points"),ds_map_find_value(yyInst(_inst,_other,gmlsim).gmlscoredataHome,"points"))){{if(yyfequal(gmlwinningTeam,0)){gmldo_swap=true;};};}else {{if(yyfequal(gmlwinningTeam,1)){gmldo_swap=true;};};};if(yyGetBool(gmldo_swap)){{var gmltemp=yyInst(_inst,_other,gmlsim).gmlscoredataAway;yyInst(_inst,_other,gmlsim).gmlscoredataAway=yyInst(_inst, _other,gmlsim).gmlscoredataHome;yyInst(_inst,_other,gmlsim).gmlscoredataHome=gmltemp;};};return gmlsim;}}function gml_Script_s_co_conference_stats(_inst,_other){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){return;};gml_Script_slog(_inst,_other,"s_do_conference_stats");var gmlteam,gmlteam_away,gmlteam_home,gmlfix;{var __yy__v838=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v839 in __yy__v838){if(!__yy__v838.hasOwnProperty(__yy__v839))continue;var __yy__v840=__yy__v838[__yy__v839];{var gmli=0; for(;yyfless(gmli,ds_list_size(__yy__v840.gmlteamlist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlteam=ds_list_find_value(__yy__v840.gmlteamlist,gmli);ds_map_set(gmlteam,"wins_cnf",0);ds_map_set(gmlteam,"losses_cnf",0);ds_map_set(gmlteam,"wins_div",0);ds_map_set(gmlteam,"losses_div",0);}};var gmlf=0;for(;yyfless(gmlf,ds_list_size(__yy__v840.gmlschedule));(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf), g_yyPrePostObject__)){{gmlfix=ds_list_find_value(__yy__v840.gmlschedule,gmlf);if((yyGetBool(yyfless(real(ds_map_find_value(gmlfix,"away_score")),0)))&&(yyGetBool(yyfless(real(ds_map_find_value(gmlfix,"home_score")),0)))){continue;};if(yyfgreater(real(ds_map_find_value(gmlfix,"week")),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular)){continue;};gmlteam_away=ds_list_find_value(__yy__v840.gmlteamlist,ds_map_find_value(gmlfix,"away_team"));gmlteam_home=ds_list_find_value(__yy__v840.gmlteamlist, ds_map_find_value(gmlfix,"home_team"));if((yyGetBool(!yyGetBool(gml_Script_s_is_co_team(__yy__v840,_inst,gmlteam_away))))||(yyGetBool(!yyGetBool(gml_Script_s_is_co_team(__yy__v840,_inst,gmlteam_home))))){continue;};if(yyfequal(ds_map_find_value(gmlteam_away,"conference"),ds_map_find_value(gmlteam_home,"conference"))){{if(yyfgreater(real(ds_map_find_value(gmlfix,"away_score")),real(ds_map_find_value(gmlfix,"home_score")))){{ds_map_set_post(gmlteam_away,"wins_cnf",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlteam_away, "wins_cnf")),1));ds_map_set_post(gmlteam_home,"losses_cnf",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlteam_home,"losses_cnf")),1));};}else {{ds_map_set_post(gmlteam_away,"losses_cnf",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlteam_away,"losses_cnf")),1));ds_map_set_post(gmlteam_home,"wins_cnf",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlteam_home,"wins_cnf")),1));};};if(yyfequal(ds_map_find_value(gmlteam_away,"division"),ds_map_find_value(gmlteam_home,"division"))){{if(yyfgreater(real(ds_map_find_value(gmlfix, "away_score")),real(ds_map_find_value(gmlfix,"home_score")))){{ds_map_set_post(gmlteam_away,"wins_div",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlteam_away,"wins_div")),1));ds_map_set_post(gmlteam_home,"losses_div",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlteam_home,"losses_div")),1));};}else {{ds_map_set_post(gmlteam_away,"losses_div",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlteam_away,"losses_div")),1));ds_map_set_post(gmlteam_home,"wins_div",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlteam_home, "wins_div")),1));};};};};};};}};}}};}}function gml_GlobalScript_s_create_playoffs(_inst,_other){(_inst.gmls_create_playoffs=__yy_method(_inst,gml_Script_s_create_playoffs));}function gml_Script_s_create_playoffs(_inst,_other){{gml_Script_s_clear_playoff_fixtures(_inst,_other);var gmlafc_seed4=gml_Script_s_get_division_winner_by_seed(_inst,_other,0,4);var gmlafc_seed5=gml_Script_s_get_team_by_seed(_inst,_other,0,5);gml_Script_s_create_fixdata(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayoffs, yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs,ds_map_find_value(gmlafc_seed5,"uid"),ds_map_find_value(gmlafc_seed4,"uid"));var gmlafc_seed3=gml_Script_s_get_division_winner_by_seed(_inst,_other,0,3);var gmlafc_seed6=gml_Script_s_get_team_by_seed(_inst,_other,0,6);gml_Script_s_create_fixdata(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),1),ds_map_find_value(gmlafc_seed6, "uid"),ds_map_find_value(gmlafc_seed3,"uid"));var gmlnfc_seed4=gml_Script_s_get_division_winner_by_seed(_inst,_other,1,4);var gmlnfc_seed5=gml_Script_s_get_team_by_seed(_inst,_other,1,5);gml_Script_s_create_fixdata(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),2),ds_map_find_value(gmlnfc_seed5,"uid"),ds_map_find_value(gmlnfc_seed4,"uid"));var gmlnfc_seed3=gml_Script_s_get_division_winner_by_seed(_inst, _other,1,3);var gmlnfc_seed6=gml_Script_s_get_team_by_seed(_inst,_other,1,6);gml_Script_s_create_fixdata(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),3),ds_map_find_value(gmlnfc_seed6,"uid"),ds_map_find_value(gmlnfc_seed3,"uid"));var gmlafc_seed1=gml_Script_s_get_division_winner_by_seed(_inst,_other,0,1);var gmlafc_seed2=gml_Script_s_get_division_winner_by_seed(_inst,_other,0,2);gml_Script_s_create_fixdata(_inst, _other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),4),(-1),ds_map_find_value(gmlafc_seed1,"uid"));gml_Script_s_create_fixdata(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),5),(-1),ds_map_find_value(gmlafc_seed2,"uid"));var gmlnfc_seed1=gml_Script_s_get_division_winner_by_seed(_inst, _other,1,1);var gmlnfc_seed2=gml_Script_s_get_division_winner_by_seed(_inst,_other,1,2);gml_Script_s_create_fixdata(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),6),(-1),ds_map_find_value(gmlnfc_seed1,"uid"));gml_Script_s_create_fixdata(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs), 7),(-1),ds_map_find_value(gmlnfc_seed2,"uid"));gml_Script_s_create_fixdata(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),8),(-1),(-1));gml_Script_s_create_fixdata(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),9),(-1),(-1));gml_Script_s_create_fixdata(_inst,_other, yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),10),(-1),(-1));}}function gml_GlobalScript_s_create_playoffs2(_inst,_other){(_inst.gmls_create_playoffs2=__yy_method(_inst,gml_Script_s_create_playoffs2));}function gml_Script_s_create_playoffs2(_inst,_other){{gml_Script_s_clear_playoff_fixtures(_inst,_other);var gmlafc_seed4=gml_Script_s_get_division_winner_by_seed(_inst,_other,0,4);var gmlafc_seed5=gml_Script_s_get_team_by_seed(_inst, _other,0,5);gml_Script_s_create_fixdata(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayoffs,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs,ds_map_find_value(gmlafc_seed5,"uid"),ds_map_find_value(gmlafc_seed4,"uid"));var gmlafc_seed3=gml_Script_s_get_division_winner_by_seed(_inst,_other,0,3);var gmlafc_seed6=gml_Script_s_get_team_by_seed(_inst,_other,0,6);gml_Script_s_create_fixdata(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),1),ds_map_find_value(gmlafc_seed6,"uid"),ds_map_find_value(gmlafc_seed3,"uid"));var gmlafc_seed2=gml_Script_s_get_division_winner_by_seed(_inst,_other,0,2);var gmlafc_seed7=gml_Script_s_get_team_by_seed(_inst,_other,0,7);gml_Script_s_create_fixdata(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),2),ds_map_find_value(gmlafc_seed7, "uid"),ds_map_find_value(gmlafc_seed2,"uid"));var gmlnfc_seed4=gml_Script_s_get_division_winner_by_seed(_inst,_other,1,4);var gmlnfc_seed5=gml_Script_s_get_team_by_seed(_inst,_other,1,5);gml_Script_s_create_fixdata(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),3),ds_map_find_value(gmlnfc_seed5,"uid"),ds_map_find_value(gmlnfc_seed4,"uid"));var gmlnfc_seed3=gml_Script_s_get_division_winner_by_seed(_inst, _other,1,3);var gmlnfc_seed6=gml_Script_s_get_team_by_seed(_inst,_other,1,6);gml_Script_s_create_fixdata(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),4),ds_map_find_value(gmlnfc_seed6,"uid"),ds_map_find_value(gmlnfc_seed3,"uid"));var gmlnfc_seed2=gml_Script_s_get_division_winner_by_seed(_inst,_other,1,2);var gmlnfc_seed7=gml_Script_s_get_team_by_seed(_inst,_other,1,7);gml_Script_s_create_fixdata(_inst, _other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),5),ds_map_find_value(gmlnfc_seed7,"uid"),ds_map_find_value(gmlnfc_seed2,"uid"));var gmlafc_seed1=gml_Script_s_get_division_winner_by_seed(_inst,_other,0,1);gml_Script_s_create_fixdata(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs), 6),(-1),ds_map_find_value(gmlafc_seed1,"uid"));gml_Script_s_create_fixdata(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),7),(-1),(-1));var gmlnfc_seed1=gml_Script_s_get_division_winner_by_seed(_inst,_other,1,1);gml_Script_s_create_fixdata(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs), 8),(-1),ds_map_find_value(gmlnfc_seed1,"uid"));gml_Script_s_create_fixdata(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),9),(-1),(-1));gml_Script_s_create_fixdata(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),10),(-1),(-1));gml_Script_s_create_fixdata(_inst,_other, yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),11),(-1),(-1));gml_Script_s_create_fixdata(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayoffs,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),12),(-1),(-1));}}function gml_GlobalScript_s_playoffs_12(_inst,_other){(_inst.gmls_playoffs_12=__yy_method(_inst,gml_Script_s_playoffs_12));} function gml_Script_s_playoffs_12(_inst,_other){{if(yyGetBool(ds_exists(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayoffs,2))){{if(yyfequal(ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayoffs),11)){return true;};};};return false;}}function gml_GlobalScript_s_get_week_superbowl(_inst,_other){(_inst.gmls_get_week_superbowl=__yy_method(_inst,gml_Script_s_get_week_superbowl));}function gml_Script_s_get_week_superbowl(_inst,_other){{var gmlw=28;if(!yyGetBool(gml_Script_s_playoffs_12(_inst, _other))){gmlw=30;};if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs,19)){gmlw=yyfplus(gmlw,1);};return gmlw;}}function gml_GlobalScript_s_do_playoff_schedule(_inst,_other){(_inst.gmls_do_playoff_schedule=__yy_method(_inst,gml_Script_s_do_playoff_schedule));(_inst.gmls_get_retrobowl_mvp_winner=__yy_method(_inst,gml_Script_s_get_retrobowl_mvp_winner));}function gml_Script_s_do_playoff_schedule(_inst,_other,argument0){{var gmlweek_afc_champ=26;var gmlweek_nfc_champ=27;var gmlweek_superbowl=28; {var __yy__v841=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v842 in __yy__v841){if(!__yy__v841.hasOwnProperty(__yy__v842))continue;var __yy__v843=__yy__v841[__yy__v842];{if(!yyGetBool(gml_Script_s_playoffs_12(__yy__v843,_inst))){{gmlweek_afc_champ=yyfplus(gmlweek_afc_champ,2);gmlweek_nfc_champ=yyfplus(gmlweek_nfc_champ,2);gmlweek_superbowl=yyfplus(gmlweek_superbowl,2);};};if(yyfequal(__yy__v843.gmlfirst_week_playoffs,19)){{gmlweek_afc_champ=yyfplus(gmlweek_afc_champ,1);gmlweek_nfc_champ=yyfplus(gmlweek_nfc_champ, 1);gmlweek_superbowl=yyfplus(gmlweek_superbowl,1);};};gml_Script_slog(__yy__v843,_inst,yyfplus("s_do_playoff_schedule:",__yy_gml_errCheck(string(__yy__v843.gmlweek))));var gmlfix=gml_Script_s_get_playoff_fixture_by_week(__yy__v843,_inst,__yy__v843.gmlweek);if(!yyGetBool(ds_exists(gmlfix,1))){{gml_Script_slog(__yy__v843,_inst,"Fixture error! Trying to recreate playoffs");gml_Script_s_create_playoffs2(__yy__v843,_inst);gmlfix=gml_Script_s_get_playoff_fixture_by_week(__yy__v843,_inst,__yy__v843.gmlweek); if(!yyGetBool(ds_exists(gmlfix,1))){{gml_Script_slog(__yy__v843,_inst,"Fixture error! Skipping season");gml_Script_s_start_new_season(__yy__v843,_inst,false);return false;};};};};var gmlteam_idAway=ds_map_find_value(gmlfix,"away_team");var gmlteam_idHome=ds_map_find_value(gmlfix,"home_team");var gmlteam_mapAway=ds_list_find_value(__yy__v843.gmlteamlist,gmlteam_idAway);var gmlteam_mapHome=ds_list_find_value(__yy__v843.gmlteamlist,gmlteam_idHome);var gmlteam_strengthAway=gml_Script_s_get_team_offense_with_reputation_boost(__yy__v843, _inst,gmlteam_mapAway);gmlteam_strengthAway=yyfplus(gmlteam_strengthAway,gml_Script_s_get_team_defense_with_reputation_boost(__yy__v843,_inst,gmlteam_mapAway));var gmlteam_strengthHome=gml_Script_s_get_team_offense_with_reputation_boost(__yy__v843,_inst,gmlteam_mapHome);gmlteam_strengthHome=yyfplus(gmlteam_strengthHome,gml_Script_s_get_team_defense_with_reputation_boost(__yy__v843,_inst,gmlteam_mapHome));gmlteam_strengthHome=yyfplus(gmlteam_strengthHome,1);gmlteam_strengthHome=yyfplus(gmlteam_strengthHome, 1);var gmlscoredataAway=gml_Script_s_get_random_scoredata(__yy__v843,_inst);var gmlscoredataHome=gml_Script_s_get_random_scoredata(__yy__v843,_inst);if(yyfequal(ds_map_find_value(gmlscoredataAway,"points"),ds_map_find_value(gmlscoredataHome,"points"))){{ds_map_set(gmlscoredataHome,"points",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlscoredataHome,"points")),3));};};if((yyGetBool(!yyGetBool(irandom(4))))&&(yyGetBool(yyfgreater(ds_map_find_value(gmlscoredataAway,"points"),ds_map_find_value(gmlscoredataHome, "points"))))&&(yyGetBool(yyfless(gmlteam_strengthAway,gmlteam_strengthHome)))){{var gmltemp_map=ds_map_create();ds_map_copy(gmltemp_map,gmlscoredataAway);ds_map_copy(gmlscoredataAway,gmlscoredataHome);ds_map_copy(gmlscoredataHome,gmltemp_map);ds_map_destroy(gmltemp_map);gmltemp_map=(-1);};};if((yyGetBool(yyfequal(gmlteam_idAway,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id)))||(yyGetBool(yyfequal(gmlteam_idHome,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id)))){{ds_map_set(gmlscoredataAway, "points",yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltscore[__yy_gml_array_check_index(0,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltscore)]);ds_map_set(gmlscoredataHome,"points",yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltscore[__yy_gml_array_check_index(1,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltscore)]);};};ds_map_set(gmlfix,"away_score",ds_map_find_value(gmlscoredataAway,"points"));ds_map_set(gmlfix,"home_score",ds_map_find_value(gmlscoredataHome,"points"));var gmlwinning_team=gmlteam_mapAway; var gmllosing_team=gmlteam_mapHome;if(yyfless(ds_map_find_value(gmlscoredataAway,"points"),ds_map_find_value(gmlscoredataHome,"points"))){{gmlwinning_team=gmlteam_mapHome;gmllosing_team=gmlteam_mapAway;};};var gmlscr1=real(ds_map_find_value(gmlfix,"away_score"));var gmlscr2=real(ds_map_find_value(gmlfix,"home_score"));if(yyfgreater(gmlscr2,gmlscr1)){{gmlscr2=real(ds_map_find_value(gmlfix,"away_score"));gmlscr1=real(ds_map_find_value(gmlfix,"home_score"));};};if(yyfequal(__yy__v843.gmlweek,gmlweek_superbowl)){ {gml_Script_s_add_news(__yy__v843,_inst,gml_Script_s_parse_news(__yy__v843,_inst,"msg_SuperBowlWinner",gmlwinning_team,gmllosing_team,ds_map_find_value(gmlfix,"away_score"),ds_map_find_value(gmlfix,"home_score")));var gmlmap=ds_map_create();ds_map_set(gmlmap,"year",yyfplus(__yy_gml_errCheck(__yy__v843.gmlstart_year),__yy_gml_errCheck(__yy__v843.gmlyear)));ds_map_set(gmlmap,"winner",ds_map_find_value(gmlwinning_team,"name"));ds_map_set(gmlmap,"score",yyfplus(yyfplus(__yy_gml_errCheck(string(gmlscr1)), "-"),__yy_gml_errCheck(string(gmlscr2))));ds_map_set(gmlmap,"loser",ds_map_find_value(gmllosing_team,"tla"));ds_map_set(gmlmap,"human",0);if((yyGetBool(yyfequal(gmlteam_idAway,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id)))||(yyGetBool(yyfequal(gmlteam_idHome,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id)))){{if(yyfequal(gmlwinning_team,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam)){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlretrobowlwinner=1;ds_map_set(gmlmap, "human",1);gml_Script_s_get_retrobowl_mvp_winner(__yy__v843,_inst);};}else {{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlretrobowlwinner=(-1);ds_map_set(gmlmap,"human",(-1));};};};}else {{gml_Script_s_do_player_awards(__yy__v843,_inst);};};ds_list_add(__yy__v843.gmlrbhistorylist,gmlmap);};}else {{gml_Script_s_add_news(__yy__v843,_inst,gml_Script_s_parse_news(__yy__v843,_inst,"msg_PlayOffResult",gmlwinning_team,gmllosing_team,gmlscr1,gmlscr2));gml_Script_s_promote_playoff_winner(__yy__v843,_inst, __yy__v843.gmlweek,ds_map_find_value(gmlwinning_team,"uid"));if((yyGetBool(yyfequal(__yy__v843.gmlweek,gmlweek_afc_champ)))||(yyGetBool(yyfequal(__yy__v843.gmlweek,gmlweek_nfc_champ)))){{var gmlstr=gml_Script_s_str(__yy__v843,_inst,"news_ConferenceChamps");gmlstr=string_replace(gmlstr,"$teamname",ds_map_find_value(gmlwinning_team,"name"));gmlstr=string_replace(gmlstr,"$conference",gml_Script_s_get_string_conference(__yy__v843,_inst,ds_map_find_value(gmlwinning_team,"conference")));gml_Script_s_add_news(__yy__v843, _inst,gmlstr);};};};};ds_map_destroy(gmlscoredataAway);ds_map_destroy(gmlscoredataHome);gmlscoredataAway=(-1);gmlscoredataHome=(-1);}}};return true;}}function gml_Script_s_get_retrobowl_mvp_winner(_inst,_other){{{var __yy__v844=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v845 in __yy__v844){if(!__yy__v844.hasOwnProperty(__yy__v845))continue;var __yy__v846=__yy__v844[__yy__v845];{var gmlmvp=(-4);var gmlqb=gml_Script_s_get_qb_pmap(__yy__v846,_inst);if((yyGetBool(gmlqb))&&(yyGetBool(yyfgreater(gml_Script_s_get_match_rating(__yy__v846, _inst,gmlqb),9)))&&(yyGetBool(yyfgreater(ds_map_find_value(gmlqb,"condition"),0)))&&(yyGetBool(!yyGetBool(gml_Script_s_player_benched(__yy__v846,_inst,gmlqb))))){gmlmvp=gmlqb;}else {{var gmlrat=0;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v846.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v846.gmlroster,gmli);if((yyGetBool(yyfless(ds_map_find_value(gmlpmap,"condition"),0)))||(yyGetBool(gml_Script_s_player_benched(__yy__v846, _inst,gmlpmap)))||(yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"position"),10)))){continue;};var gmlmr=gml_Script_s_get_match_rating(__yy__v846,_inst,gmlpmap);if((yyGetBool(yyfgreater(gmlmr,gmlrat)))&&(yyGetBool(gml_Script_s_is_offensive_player(__yy__v846,_inst,gmlpmap)))){{gmlrat=gmlmr;gmlmvp=gmlpmap;};}else {if((yyGetBool(yyfgreater(yyfminus(__yy_gml_errCheck(gmlmr),1),gmlrat)))&&(yyGetBool(!yyGetBool(gml_Script_s_is_offensive_player(__yy__v846,_inst,gmlpmap))))){{gmlrat=yyfminus(__yy_gml_errCheck(gmlmr), 1);gmlmvp=gmlpmap;};}else {if((yyGetBool(yyfequal(gmlmr,gmlrat)))&&(yyGetBool(gml_Script_s_is_offensive_player(__yy__v846,_inst,gmlpmap)))){{if(yyfgreater(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_yards")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_rush_yards"))),yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlmvp,"stat_yards")),__yy_gml_errCheck(ds_map_find_value(gmlmvp,"stat_rush_yards"))))){{gmlrat=gmlmr;gmlmvp=gmlpmap;};};};};};};}};};};if(yyGetBool(gmlmvp)){{var gmlmsg=string_replace(gml_Script_s_str(__yy__v846, _inst,"msg_RetroBowlMVPWinner"),"$playername",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlmvp,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(gmlmvp,"lname"))));gml_Script_s_add_news(__yy__v846,_inst,gmlmsg);if(!yyGetBool(ds_map_exists(gmlmvp,"rbmvp"))){ds_map_set(gmlmvp,"rbmvp",1);}else {ds_map_set(gmlmvp,"rbmvp",yyfplus(__yy_gml_errCheck(real(ds_map_find_value(gmlmvp,"rbmvp"))),1));};};};}}};}}function gml_GlobalScript_s_get_random_scoredata(_inst,_other){(_inst.gmls_get_random_scoredata=__yy_method(_inst, gml_Script_s_get_random_scoredata));(_inst.gmls_co_get_random_scoredata=__yy_method(_inst,gml_Script_s_co_get_random_scoredata));}function gml_Script_s_get_random_scoredata(_inst,_other){{var gmlmap=ds_map_create();ds_map_set(gmlmap,"points",0);ds_map_set(gmlmap,"yards",0);ds_map_set(gmlmap,"tds",0);ds_map_set(gmlmap,"sacks",0);ds_map_set(gmlmap,"ints",0);var gmlchances=irandom_range(6,12);var gmls=0;for(;yyfless(gmls,gmlchances);(g_yyPrePostObject__=gmls,gmls=(g_yyPrePostObject__ instanceof Long?gmls.add(1):++gmls), g_yyPrePostObject__)){{var ___sw552___=irandom(2);var ___swc553___=-1;if(yyCompareVal(___sw552___,0,g_GMLMathEpsilon,false)==0){___swc553___=0;}else if(yyCompareVal(___sw552___,1,g_GMLMathEpsilon,false)==0){___swc553___=1;}switch(___swc553___){case 0:{if(yyGetBool(irandom(1))){{ds_map_set(gmlmap,"tds",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlmap,"tds")),1));ds_map_set(gmlmap,"yards",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlmap,"yards")),__yy_gml_errCheck(yyfplus(40,__yy_gml_errCheck(irandom(40)))))); };};ds_map_set(gmlmap,"points",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlmap,"points")),7));if(yyfgreater(irandom(99),93)){ds_map_set(gmlmap,"points",yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlmap,"points")),1));};break;}case 1:{ds_map_set(gmlmap,"yards",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlmap,"yards")),__yy_gml_errCheck(irandom(20))));ds_map_set(gmlmap,"points",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlmap,"points")),3));if(yyfequal(irandom(5),0)){ds_map_set(gmlmap,"points", yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlmap,"points")),3));};break;}default :{ds_map_set(gmlmap,"yards",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlmap,"yards")),__yy_gml_errCheck(irandom(10))));var ___sw554___=irandom(2);var ___swc555___=-1;if(yyCompareVal(___sw554___,0,g_GMLMathEpsilon,false)==0){___swc555___=0;}else if(yyCompareVal(___sw554___,1,g_GMLMathEpsilon,false)==0){___swc555___=1;}else if(yyCompareVal(___sw554___,2,g_GMLMathEpsilon,false)==0){___swc555___=2;}switch(___swc555___){ case 0:{ds_map_set(gmlmap,"sacks",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlmap,"sacks")),1));break;}case 1:{ds_map_set(gmlmap,"ints",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlmap,"ints")),1));break;}case 2:{break;}};break;}};}};return gmlmap;}}function gml_Script_s_co_get_random_scoredata(_inst,_other,argument0){{var gmlmap=ds_map_create();ds_map_set(gmlmap,"points",0);ds_map_set(gmlmap,"yards",0);ds_map_set(gmlmap,"tds",0);ds_map_set(gmlmap,"sacks",0);ds_map_set(gmlmap,"ints",0);if(yyfequal(argument0, 0)){{argument0=irandom_range(6,12);};};var gmls=0;for(;yyfless(gmls,argument0);(g_yyPrePostObject__=gmls,gmls=(g_yyPrePostObject__ instanceof Long?gmls.add(1):++gmls),g_yyPrePostObject__)){{var ___sw556___=irandom(2);var ___swc557___=-1;if(yyCompareVal(___sw556___,0,g_GMLMathEpsilon,false)==0){___swc557___=0;}else if(yyCompareVal(___sw556___,1,g_GMLMathEpsilon,false)==0){___swc557___=1;}switch(___swc557___){case 0:{if(yyGetBool(irandom(1))){{ds_map_set(gmlmap,"tds",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlmap, "tds")),1));ds_map_set(gmlmap,"yards",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlmap,"yards")),__yy_gml_errCheck(yyfplus(40,__yy_gml_errCheck(irandom(40))))));};};ds_map_set(gmlmap,"points",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlmap,"points")),6));if(yyfgreater(irandom(99),93)){ds_map_set(gmlmap,"points",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlmap,"points")),1));};break;}case 1:{ds_map_set(gmlmap,"yards",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlmap,"yards")),__yy_gml_errCheck(irandom(20)))); ds_map_set(gmlmap,"points",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlmap,"points")),3));if(yyfequal(irandom(5),0)){ds_map_set(gmlmap,"points",yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlmap,"points")),3));};break;}default :{ds_map_set(gmlmap,"yards",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlmap,"yards")),__yy_gml_errCheck(irandom(10))));var ___sw558___=irandom(2);var ___swc559___=-1;if(yyCompareVal(___sw558___,0,g_GMLMathEpsilon,false)==0){___swc559___=0;}else if(yyCompareVal(___sw558___, 1,g_GMLMathEpsilon,false)==0){___swc559___=1;}else if(yyCompareVal(___sw558___,2,g_GMLMathEpsilon,false)==0){___swc559___=2;}switch(___swc559___){case 0:{ds_map_set(gmlmap,"sacks",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlmap,"sacks")),1));break;}case 1:{ds_map_set(gmlmap,"ints",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlmap,"ints")),1));break;}case 2:{break;}};break;}};}};return gmlmap;}}// // Make sure Divisional rounds are seeded (#4 @ #1, #3 @ #2) function gml_GlobalScript_s_promote_playoff_winner(_inst, _other){(_inst.gmls_promote_playoff_winner=__yy_method(_inst,gml_Script_s_promote_playoff_winner));(_inst.gmls_seed_divisional_round=__yy_method(_inst,gml_Script_s_seed_divisional_round));}function gml_Script_s_promote_playoff_winner(_inst,_other,argument0,argument1){{gml_Script_slog(_inst,_other,yyfplus("s_promote_playoff_winner",__yy_gml_errCheck(string(argument1))));var gmlnextround_fix;var gmlweek_afc_champ=26;var gmlweek_nfc_champ=27;if(yyGetBool(gml_Script_s_playoffs_12(_inst,_other))){{if(yyfequal(argument0, yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs)){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),4));}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),1))){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs), 5));}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),2))){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),6));}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),3))){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other, yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),7));}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),4))){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),8));}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs), 5))){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),8));}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),6))){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),9));}else {if(yyfequal(argument0, yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),7))){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),9));}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),8))){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),10));}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),9))){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),10));}else {return;};};};};};};};};};};};}else {{gmlweek_afc_champ=28;gmlweek_nfc_champ=29;if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs, 19)){{gmlweek_afc_champ=yyfplus(gmlweek_afc_champ,1);gmlweek_nfc_champ=yyfplus(gmlweek_nfc_champ,1);};};if(yyfequal(argument0,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs)){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),6));}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),1))){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst, _other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),7));}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),2))){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),7));}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs), 3))){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),8));}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),4))){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),9));}else {if(yyfequal(argument0, yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),5))){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),9));}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),6))){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,gmlweek_afc_champ);}else {if(yyfequal(argument0, yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),7))){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,gmlweek_afc_champ);}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),8))){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,gmlweek_nfc_champ);}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs), 9))){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,gmlweek_nfc_champ);}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),10))){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),12));}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs), 11))){gmlnextround_fix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),12));}else {return;};};};};};};};};};};};};};};if(yyGetBool(gmlnextround_fix)){{gml_Script_slog(_inst,_other,yyfplus("Got next round fix: ",__yy_gml_errCheck(string(ds_map_find_value(gmlnextround_fix,"week")))));if(yyfequal(ds_map_find_value(gmlnextround_fix,"away_team"),(-1))){{ds_map_set(gmlnextround_fix,"away_team",argument1); };}else {if(yyfequal(ds_map_find_value(gmlnextround_fix,"home_team"),(-1))){{ds_map_set(gmlnextround_fix,"home_team",argument1);};};};if((yyGetBool(yyfequal(real(ds_map_find_value(gmlnextround_fix,"week")),yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),7))))&&(yyGetBool(yyfgreater(ds_map_find_value(gmlnextround_fix,"away_team"),(-1))))&&(yyGetBool(yyfgreater(ds_map_find_value(gmlnextround_fix,"home_team"),(-1))))){{gml_Script_s_seed_divisional_round(_inst, _other,0);};}else {if((yyGetBool(yyfequal(real(ds_map_find_value(gmlnextround_fix,"week")),yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),9))))&&(yyGetBool(yyfgreater(ds_map_find_value(gmlnextround_fix,"away_team"),(-1))))&&(yyGetBool(yyfgreater(ds_map_find_value(gmlnextround_fix,"home_team"),(-1))))){{gml_Script_s_seed_divisional_round(_inst,_other,1);};};};if((yyGetBool(yyfequal(real(ds_map_find_value(gmlnextround_fix,"week")),gmlweek_afc_champ)))||(yyGetBool(yyfequal(real(ds_map_find_value(gmlnextround_fix, "week")),gmlweek_nfc_champ)))){{if((yyGetBool(yyfgreater(ds_map_find_value(gmlnextround_fix,"away_team"),(-1))))&&(yyGetBool(yyfgreater(ds_map_find_value(gmlnextround_fix,"home_team"),(-1))))){{var gmltmap1=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlnextround_fix,"away_team"));var gmltmap2=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlnextround_fix,"home_team"));if(yyfgreater(gml_Script_s_get_team_winpct(_inst,_other,gmltmap1),gml_Script_s_get_team_winpct(_inst,_other, gmltmap2))){{ds_map_set(gmlnextround_fix,"away_team",real(ds_map_find_value(gmltmap2,"uid")));ds_map_set(gmlnextround_fix,"home_team",real(ds_map_find_value(gmltmap1,"uid")));};};};};};};if((yyGetBool(irandom(1)))&&(yyGetBool(yyfequal(real(ds_map_find_value(gmlnextround_fix,"week")),yyfplus(__yy_gml_errCheck(gmlweek_nfc_champ),1))))){{var gmltmp=ds_map_find_value(gmlnextround_fix,"away_team");ds_map_set(gmlnextround_fix,"away_team",ds_map_find_value(gmlnextround_fix,"home_team"));ds_map_set(gmlnextround_fix, "home_team",gmltmp);};};};};gml_Script_s_update_human_playoff_fixtures(_inst,_other);}}function gml_Script_s_seed_divisional_round(_inst,_other,argument0){{var gmlfix1=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),6));var gmlfix2=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),7));if(yyfequal(argument0, 1)){{gmlfix1=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),8));gmlfix2=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),9));};};var gmltmap2=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix1,"away_team"));var gmltmap3=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix2, "home_team"));var gmltmap4=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix2,"away_team"));var gmlpct2=__yy_gml_errCheck(-__yy_gml_errCheck(gml_Script_s_get_team_seeding(_inst,_other,gmltmap2)));var gmlpct3=__yy_gml_errCheck(-__yy_gml_errCheck(gml_Script_s_get_team_seeding(_inst,_other,gmltmap3)));var gmlpct4=__yy_gml_errCheck(-__yy_gml_errCheck(gml_Script_s_get_team_seeding(_inst,_other,gmltmap4)));var gmltgrid=ds_grid_create(2,3);ds_grid_set(gmltgrid,0,0,gmlpct2);ds_grid_set(gmltgrid, 1,0,ds_map_find_value(gmltmap2,"uid"));ds_grid_set(gmltgrid,0,1,gmlpct3);ds_grid_set(gmltgrid,1,1,ds_map_find_value(gmltmap3,"uid"));ds_grid_set(gmltgrid,0,2,gmlpct4);ds_grid_set(gmltgrid,1,2,ds_map_find_value(gmltmap4,"uid"));ds_grid_sort(gmltgrid,0,true);ds_map_set(gmlfix1,"away_team",real(ds_grid_get(gmltgrid,1,0)));ds_map_set(gmlfix2,"away_team",real(ds_grid_get(gmltgrid,1,1)));ds_map_set(gmlfix2,"home_team",real(ds_grid_get(gmltgrid,1,2)));ds_grid_destroy(gmltgrid);}}function gml_GlobalScript_s_add_to_human_fixtures(_inst, _other,argument0,argument1,argument2){(_inst.gmls_add_to_human_fixtures=__yy_method(_inst,gml_Script_s_add_to_human_fixtures));}function gml_Script_s_add_to_human_fixtures(_inst,_other,argument0,argument1,argument2){{var gmlmap=ds_map_create();ds_map_set(gmlmap,"week",argument0);ds_map_set(gmlmap,"away_team",argument1);ds_map_set(gmlmap,"home_team",argument2);ds_map_set(gmlmap,"away_score",0);ds_map_set(gmlmap,"home_score",0);ds_map_set(gmlmap,"human_win","unplayed");ds_list_add(yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlfixturelist,gmlmap);}}// slog ("Team "+string(teamid_away)+" @ Team "+string(teamid_home)); function gml_GlobalScript_s_update_human_playoff_fixtures(_inst,_other){(_inst.gmls_update_human_playoff_fixtures=__yy_method(_inst,gml_Script_s_update_human_playoff_fixtures));(_inst.gmls_check_rearranged_human_playoff=__yy_method(_inst,gml_Script_s_check_rearranged_human_playoff));(_inst.gmls_update_human_fixtures=__yy_method(_inst,gml_Script_s_update_human_fixtures));(_inst.gmls_update_fixturelist_fix_extra_data=__yy_method(_inst, gml_Script_s_update_fixturelist_fix_extra_data));}function gml_Script_s_update_human_playoff_fixtures(_inst,_other){{gml_Script_slog(_inst,_other,"s_update_human_playoff_fixtures");var gmlf=0;for(;yyfless(gmlf,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayoffs));(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf),g_yyPrePostObject__)){{var gmlpo_fix=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayoffs,gmlf);if((yyGetBool(yyfequal(ds_map_find_value(gmlpo_fix, "away_team"),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id)))||(yyGetBool(yyfequal(ds_map_find_value(gmlpo_fix,"home_team"),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id)))){{var gmlfixweek=real(ds_map_find_value(gmlpo_fix,"week"));var gmlmy_fix=gml_Script_s_get_human_fixture_by_week(_inst,_other,gmlfixweek);if(!yyGetBool(gmlmy_fix)){{gml_Script_s_add_to_human_fixtures(_inst,_other,gmlfixweek,ds_map_find_value(gmlpo_fix,"away_team"),ds_map_find_value(gmlpo_fix,"home_team")); gml_Script_s_check_rearranged_human_playoff(_inst,_other,gmlfixweek);};}else {{ds_map_set(gmlmy_fix,"away_team",ds_map_find_value(gmlpo_fix,"away_team"));ds_map_set(gmlmy_fix,"home_team",ds_map_find_value(gmlpo_fix,"home_team"));if(yyfequal(ds_map_find_value(gmlmy_fix,"human_win"),"unplayed")){gml_Script_s_check_rearranged_human_playoff(_inst,_other,gmlfixweek);};};};};};}};}}function gml_Script_s_check_rearranged_human_playoff(_inst,_other,argument0){{gml_Script_slog(_inst,_other,yyfplus("s_check_rearranged_human_playoff: ", __yy_gml_errCheck(string(argument0))));var gmlf=0;for(;yyfless(gmlf,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfixturelist));(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf),g_yyPrePostObject__)){{var gmlfix=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfixturelist,gmlf);if((yyGetBool(gmlfix))&&(yyGetBool(yyfnotequal(ds_map_find_value(gmlfix,"week"),argument0)))&&(yyGetBool(yyfequal(ds_map_find_value(gmlfix,"human_win"),"unplayed")))){ {var gmlteamid_away=ds_map_find_value(gmlfix,"away_team");var gmlteamid_home=ds_map_find_value(gmlfix,"home_team");gml_Script_slog(_inst,_other,yyfplus("Destroying human fixture week: ",__yy_gml_errCheck(string(ds_map_find_value(gmlfix,"week")))));gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus("Team ",__yy_gml_errCheck(string(gmlteamid_away)))," @ Team "),__yy_gml_errCheck(string(gmlteamid_home))));ds_map_destroy(ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfixturelist, gmlf));ds_list_delete(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfixturelist,gmlf);};};}};}}function gml_Script_s_update_human_fixtures(_inst,_other){{gml_Script_slog(_inst,_other,"s_update_human_fixtures");var gmlf=0;for(;yyfless(gmlf,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlschedule));(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf),g_yyPrePostObject__)){{var gmlpo_fix=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlschedule, gmlf);if((yyGetBool(yyfequal(ds_map_find_value(gmlpo_fix,"away_team"),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id)))||(yyGetBool(yyfequal(ds_map_find_value(gmlpo_fix,"home_team"),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id)))){{if(yyfgreater(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpo_fix,"away_score")),__yy_gml_errCheck(ds_map_find_value(gmlpo_fix,"home_score"))),(-1))){{var gmlfixweek=real(ds_map_find_value(gmlpo_fix,"week"));var gmlmy_fix=gml_Script_s_get_human_fixture_by_week(_inst, _other,gmlfixweek);if(yyGetBool(gmlmy_fix)){{ds_map_set(gmlmy_fix,"away_score",ds_map_find_value(gmlpo_fix,"away_score"));ds_map_set(gmlmy_fix,"home_score",ds_map_find_value(gmlpo_fix,"home_score"));ds_map_set(gmlmy_fix,"away_team",ds_map_find_value(gmlpo_fix,"away_team"));ds_map_set(gmlmy_fix,"home_team",ds_map_find_value(gmlpo_fix,"home_team"));if(yyfequal(ds_map_find_value(gmlmy_fix,"human_win"),"unplayed")){{if(yyfequal(ds_map_find_value(gmlpo_fix,"away_score"),ds_map_find_value(gmlpo_fix,"home_score"))){ ds_map_set(gmlmy_fix,"human_win","tie");}else {if((yyGetBool(yyfequal(ds_map_find_value(gmlpo_fix,"away_team"),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id)))&&(yyGetBool(yyfgreater(ds_map_find_value(gmlpo_fix,"away_score"),ds_map_find_value(gmlpo_fix,"home_score"))))){ds_map_set(gmlmy_fix,"human_win","win");}else {if((yyGetBool(yyfequal(ds_map_find_value(gmlpo_fix,"home_team"),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id)))&&(yyGetBool(yyfgreater(ds_map_find_value(gmlpo_fix, "home_score"),ds_map_find_value(gmlpo_fix,"away_score"))))){ds_map_set(gmlmy_fix,"human_win","win");}else {ds_map_set(gmlmy_fix,"human_win","loss");};};};};};gml_Script_s_update_fixturelist_fix_extra_data(_inst,_other,gmlpo_fix,gmlmy_fix);};};};};};};}};}}function gml_Script_s_update_fixturelist_fix_extra_data(_inst,_other,argument0,argument1){{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{ds_map_set(argument1,"cid",ds_map_find_value(argument0,"cid"));ds_map_set(argument1,"mid",ds_map_find_value(argument0, "mid"));ds_map_set(argument1,"cat",ds_map_find_value(argument0,"cat"));};};}}function gml_GlobalScript_s_get_playoff_fixture_by_week(_inst,_other,argument0){(_inst.gmls_get_playoff_fixture_by_week=__yy_method(_inst,gml_Script_s_get_playoff_fixture_by_week));}function gml_Script_s_get_playoff_fixture_by_week(_inst,_other,argument0){{var gmlf=0;for(;yyfless(gmlf,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayoffs));(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf), g_yyPrePostObject__)){{var gmlfix=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayoffs,gmlf);if((yyGetBool(ds_exists(gmlfix,1)))&&(yyGetBool(ds_map_exists(gmlfix,"week")))){{if(yyfequal(real(ds_map_find_value(gmlfix,"week")),argument0)){return gmlfix;};};};}};return(-4);}}function gml_GlobalScript_s_get_human_fixture_by_week(_inst,_other){(_inst.gmls_get_human_fixture_by_week=__yy_method(_inst,gml_Script_s_get_human_fixture_by_week));}function gml_Script_s_get_human_fixture_by_week(_inst, _other,argument0){{{var __yy__v847=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v848 in __yy__v847){if(!__yy__v847.hasOwnProperty(__yy__v848))continue;var __yy__v849=__yy__v847[__yy__v848];{var gmlf=0;for(;yyfless(gmlf,ds_list_size(__yy__v849.gmlfixturelist));(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf),g_yyPrePostObject__)){{var gmlfix=ds_list_find_value(__yy__v849.gmlfixturelist,gmlf);if((yyGetBool(gmlfix))&&(yyGetBool(!yyGetBool(is_undefined(ds_map_find_value(gmlfix, "week")))))&&(yyGetBool(yyfequal(real(ds_map_find_value(gmlfix,"week")),argument0)))){return gmlfix;};}};}}};return(-4);}}function gml_GlobalScript_s_get_human_fixture_previous(_inst,_other){(_inst.gmls_get_human_fixture_previous=__yy_method(_inst,gml_Script_s_get_human_fixture_previous));}function gml_Script_s_get_human_fixture_previous(_inst,_other){{{var __yy__v850=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v851 in __yy__v850){if(!__yy__v850.hasOwnProperty(__yy__v851))continue;var __yy__v852=__yy__v850[__yy__v851]; {var gmlprevfix=(-4);var gmlf=0;for(;yyfless(gmlf,ds_list_size(__yy__v852.gmlfixturelist));(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf),g_yyPrePostObject__)){{var gmlfix=ds_list_find_value(__yy__v852.gmlfixturelist,gmlf);if((yyGetBool(gmlfix))&&(yyGetBool(yyfequal(ds_map_find_value(gmlfix,"human_win"),"unplayed")))){return gmlprevfix;};gmlprevfix=gmlfix;}};return gmlprevfix;}}};}}// slog ("Team "+string(teamid_away)+" @ Team "+string(teamid_home)); // slog("create fixture "+string(away_id)+" @ "+string(home_id)); function gml_GlobalScript_exhibition_scripts(_inst, _other){(_inst.gmlbtn_click_exhibition_start=__yy_method(_inst,gml_Script_btn_click_exhibition_start));(_inst.gmlbtn_click_exhibition_exit=__yy_method(_inst,gml_Script_btn_click_exhibition_exit));(_inst.gmls_exhibition_exit=__yy_method(_inst,gml_Script_s_exhibition_exit));(_inst.gmls_exhibition_lost_two_controllers=__yy_method(_inst,gml_Script_s_exhibition_lost_two_controllers));(_inst.gmls_exhibition_assign_lost_controller=__yy_method(_inst,gml_Script_s_exhibition_assign_lost_controller));(_inst.gmls_exhibition_abandon=__yy_method(_inst, gml_Script_s_exhibition_abandon));(_inst.gmls_set_up_uniforms_exhibition=__yy_method(_inst,gml_Script_s_set_up_uniforms_exhibition));(_inst.gmls_create_exhibition_fixture=__yy_method(_inst,gml_Script_s_create_exhibition_fixture));(_inst.gmlbtn_click_exhibition_controller_0=__yy_method(_inst,gml_Script_btn_click_exhibition_controller_0));(_inst.gmlbtn_click_exhibition_controller_1=__yy_method(_inst,gml_Script_btn_click_exhibition_controller_1));(_inst.gmls_update_exhibition_controllers=__yy_method(_inst, gml_Script_s_update_exhibition_controllers));(_inst.gmlbtn_click_ChangeTeamAway=__yy_method(_inst,gml_Script_btn_click_ChangeTeamAway));(_inst.gmlbtn_click_ChangeTeamHome=__yy_method(_inst,gml_Script_btn_click_ChangeTeamHome));(_inst.gmlbtn_click_Exhibition_Play=__yy_method(_inst,gml_Script_btn_click_Exhibition_Play));(_inst.gmls_update_options_exh=__yy_method(_inst,gml_Script_s_update_options_exh));(_inst.gmls_force_kick_direction=__yy_method(_inst,gml_Script_s_force_kick_direction));(_inst.gmls_count_audibles=__yy_method(_inst, gml_Script_s_count_audibles));(_inst.gmls_update_audibles=__yy_method(_inst,gml_Script_s_update_audibles));(_inst.gmls_set_audibles=__yy_method(_inst,gml_Script_s_set_audibles));(_inst.gmls_count_timeouts=__yy_method(_inst,gml_Script_s_count_timeouts));(_inst.gmls_update_timeouts=__yy_method(_inst,gml_Script_s_update_timeouts));(_inst.gmls_set_timeouts=__yy_method(_inst,gml_Script_s_set_timeouts));(_inst.gmls_set_exhibition_buttons=__yy_method(_inst,gml_Script_s_set_exhibition_buttons));(_inst.gmlbtn_click_exhibition_switch_start=__yy_method(_inst, gml_Script_btn_click_exhibition_switch_start));(_inst.gmls_exhibition_controller_check_continue=__yy_method(_inst,gml_Script_s_exhibition_controller_check_continue));(_inst.gmlbtn_click_exhibition_controllers=__yy_method(_inst,gml_Script_btn_click_exhibition_controllers));(_inst.gmlbtn_exhibition_controllers_refresh=__yy_method(_inst,gml_Script_btn_exhibition_controllers_refresh));(_inst.gmlrm_exhibition_options_create=__yy_method(_inst,gml_Script_rm_exhibition_options_create));(_inst.gmls_exh_teamswap_allowed=__yy_method(_inst, gml_Script_s_exh_teamswap_allowed));(_inst.gmlget_ex_teamset_0=__yy_method(_inst,gml_Script_get_ex_teamset_0));(_inst.gmlget_ex_teamset_1=__yy_method(_inst,gml_Script_get_ex_teamset_1));(_inst.gmlget_ex_uniform_file=__yy_method(_inst,gml_Script_get_ex_uniform_file));(_inst.gmlbtn_click_ExhibitionLoadUniformsA=__yy_method(_inst,gml_Script_btn_click_ExhibitionLoadUniformsA));(_inst.gmlbtn_click_ExhibitionLoadUniformsB=__yy_method(_inst,gml_Script_btn_click_ExhibitionLoadUniformsB));(_inst.gmlbtn_click_ExhibitionLoadUniformsC=__yy_method(_inst, gml_Script_btn_click_ExhibitionLoadUniformsC));(_inst.gmlbtn_click_ExhibitionLoadUniformsD=__yy_method(_inst,gml_Script_btn_click_ExhibitionLoadUniformsD));(_inst.gmlbtn_click_ExhibitionLoadUniformsE=__yy_method(_inst,gml_Script_btn_click_ExhibitionLoadUniformsE));(_inst.gmlbtn_click_ExhibitionLoadUniforms=__yy_method(_inst,gml_Script_btn_click_ExhibitionLoadUniforms));(_inst.gmls_get_save_from_number=__yy_method(_inst,gml_Script_s_get_save_from_number));(_inst.gmls_load_save_team_exhibitionA=__yy_method(_inst, gml_Script_s_load_save_team_exhibitionA));(_inst.gmls_load_save_team_exhibitionB=__yy_method(_inst,gml_Script_s_load_save_team_exhibitionB));(_inst.gmls_load_save_team_exhibitionC=__yy_method(_inst,gml_Script_s_load_save_team_exhibitionC));(_inst.gmls_load_save_team_exhibitionD=__yy_method(_inst,gml_Script_s_load_save_team_exhibitionD));(_inst.gmls_load_save_team_exhibitionE=__yy_method(_inst,gml_Script_s_load_save_team_exhibitionE));(_inst.gmls_load_save_team_exhibition=__yy_method(_inst,gml_Script_s_load_save_team_exhibition)); (_inst.gmlexh_refresh_roster_from_save=__yy_method(_inst,gml_Script_exh_refresh_roster_from_save));(_inst.gmls_load_html_save1_exhibition=__yy_method(_inst,gml_Script_s_load_html_save1_exhibition));(_inst.gmlbtn_click_RestoreAllTeams_ex=__yy_method(_inst,gml_Script_btn_click_RestoreAllTeams_ex));(_inst.gmls_restore_uniforms_all_ex=__yy_method(_inst,gml_Script_s_restore_uniforms_all_ex));(_inst.gmls_exhibition_team_management_start=__yy_method(_inst,gml_Script_s_exhibition_team_management_start)); (_inst.gmls_exhibition_team_management_clear=__yy_method(_inst,gml_Script_s_exhibition_team_management_clear));(_inst.gmls_exhibition_wipe_list=__yy_method(_inst,gml_Script_s_exhibition_wipe_list));(_inst.gmls_refresh_exhibition_team_load_buttons=__yy_method(_inst,gml_Script_s_refresh_exhibition_team_load_buttons));(_inst.gmlrefresh_exh_roster_buttons=__yy_method(_inst,gml_Script_refresh_exh_roster_buttons));(_inst.gmlbtn_click_RosterTeamAway=__yy_method(_inst,gml_Script_btn_click_RosterTeamAway)); (_inst.gmlbtn_click_RosterTeamHome=__yy_method(_inst,gml_Script_btn_click_RosterTeamHome));(_inst.gmlbtn_click_Profile_Back_To_Exhibition=__yy_method(_inst,gml_Script_btn_click_Profile_Back_To_Exhibition));(_inst.gmlrm_player_profile_exhibition_create=__yy_method(_inst,gml_Script_rm_player_profile_exhibition_create));(_inst.gmlrm_roster_exhibition_create=__yy_method(_inst,gml_Script_rm_roster_exhibition_create));(_inst.gmlexhibition_handle_exit_match=__yy_method(_inst,gml_Script_exhibition_handle_exit_match)); }function gml_Script_btn_click_exhibition_start(_inst,_other){{gml_Script_slog(_inst,_other,"btn_click_exhibition_start");if((yyGetBool((yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),21)))||(yyGetBool(gml_Script_s_is_debug_desktop(_inst,_other)))))&&(yyGetBool(yyfequal(g_pBuiltIn.get_current_room(),YYASSET_REF(0x03000000))))){{gml_Script_slogf(_inst,_other,"NX: Controller options");room_goto(YYASSET_REF(0x03000032));return;};};global.gmlexhibition=true;gml_Script_s_create_new_save(_inst,_other);yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlname_conf1="AFC";yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_conf2="NFC";yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_difficulty=3;yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlbtn_continue_state=0;gml_Script_s_exhibition_team_management_start(_inst,_other);room_goto(YYASSET_REF(0x0300002F));}}function gml_Script_btn_click_exhibition_exit(_inst,_other){{if(yyGetBool(gml_Script_s_is_multicon(_inst,_other))){gml_Script_s_create_message(_inst,_other, "",gml_Script_s_str(_inst,_other,"msg_TouchscreenReactivation"),"",gml_Script_s_str(_inst,_other,"ui_Continue"),kgml_Script_s_msg_clear,kgml_Script_s_exhibition_exit,global.gmlc_background,1);}else {gml_Script_s_exhibition_exit(_inst,_other);};gml_Script_s_multicon_reset(_inst,_other);}}function gml_Script_s_exhibition_exit(_inst,_other){{gml_Script_s_multicon_reset(_inst,_other);gml_Script_s_exhibition_team_management_clear(_inst,_other);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster=ds_list_create(); gml_Script_s_destroy_master(_inst,_other);room_goto(YYASSET_REF(0x03000000));}}function gml_Script_s_exhibition_lost_two_controllers(_inst,_other){{gml_Script_s_multicon_reset(_inst,_other);if(!yyGetBool(gml_Script_s_is_paused_or_just_unpaused(_inst,_other))){gml_Script_s_pause_toggle(_inst,_other,false);};var gmlmsg_lost=gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_LostController"),gml_Script_s_str(_inst,_other,"ui_AssignController"),gml_Script_s_str(_inst,_other, "ui_Exit"),kgml_Script_s_exhibition_assign_lost_controller,kgml_Script_s_exhibition_abandon,global.gmlc_background,1);yyInst(_inst,_other,gmlmsg_lost).gmlmessage_id=10;}}function gml_Script_s_exhibition_assign_lost_controller(_inst,_other){{gml_Script_s_msg_clear(_inst,_other,10);gml_Script_s_multicon_init(_inst,_other);if(!yyGetBool(gml_Script_s_is_multicon(_inst,_other))){gml_Script_s_exhibition_lost_two_controllers(_inst,_other);}else {{if(yyGetBool(gml_Script_s_is_paused_or_just_unpaused(_inst, _other))){gml_Script_s_pause_toggle(_inst,_other);};gml_Script_s_multicon_restore_turn(_inst,_other);};};}}function gml_Script_s_exhibition_abandon(_inst,_other){{audio_sound_gain(YYASSET_REF(0x02000014),0,3000);gml_Script_s_exhibition_exit(_inst,_other);}}function gml_Script_s_set_up_uniforms_exhibition(_inst,_other){{var gmlteamid_away=ds_map_find_value(global.gmlexh_fix,"away_team");var gmlteamid_home=ds_map_find_value(global.gmlexh_fix,"home_team");gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus("Team ", __yy_gml_errCheck(string(gmlteamid_away)))," @ Team "),__yy_gml_errCheck(string(gmlteamid_home))));yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteam=__yy_gml_array_check(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteam,595587002);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteam[__yy_gml_array_check_index_set(0)]=ds_list_find_value(gml_Script_get_ex_teamset_0(_inst,_other),gmlteamid_away);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteam[__yy_gml_array_check_index_set(1)]=ds_list_find_value(gml_Script_get_ex_teamset_1(_inst, _other),gmlteamid_home);}}function gml_Script_s_create_exhibition_fixture(_inst,_other,argument0,argument1){{gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus("create fixture ",__yy_gml_errCheck(string(argument0)))," @ "),__yy_gml_errCheck(string(argument1))));var gmlfix=ds_map_create();ds_map_set(gmlfix,"week",(-1));ds_map_set(gmlfix,"away_team",argument0);ds_map_set(gmlfix,"home_team",argument1);ds_map_set(gmlfix,"away_score",(-1));ds_map_set(gmlfix,"home_score",(-1));return gmlfix;}}function gml_Script_btn_click_exhibition_controller_0(_inst, _other){{var ___sw588___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayerteamindex;var ___swc589___=-1;if(yyCompareVal(___sw588___,(-1),g_GMLMathEpsilon,false)==0){___swc589___=0;}else if(yyCompareVal(___sw588___,0,g_GMLMathEpsilon,false)==0){___swc589___=1;}else if(yyCompareVal(___sw588___,1,g_GMLMathEpsilon,false)==0){___swc589___=2;}switch(___swc589___){case 0:{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayerteamindex=1;break;}case 1:{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayerteamindex=1; break;}case 2:{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayerteamindex=(-1);break;}};gml_Script_s_update_exhibition_controllers(_inst,_other);}}function gml_Script_btn_click_exhibition_controller_1(_inst,_other){{var ___sw590___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayerteamindex;var ___swc591___=-1;if(yyCompareVal(___sw590___,(-1),g_GMLMathEpsilon,false)==0){___swc591___=0;}else if(yyCompareVal(___sw590___,0,g_GMLMathEpsilon,false)==0){___swc591___=1;}else if(yyCompareVal(___sw590___, 1,g_GMLMathEpsilon,false)==0){___swc591___=2;}switch(___swc591___){case 0:{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayerteamindex=0;break;}case 1:{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayerteamindex=(-1);break;}case 2:{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayerteamindex=0;break;}};gml_Script_s_update_exhibition_controllers(_inst,_other);}}function gml_Script_s_update_exhibition_controllers(_inst,_other){{yyInst(_inst,_other,100797).gmltext="CPU";yyInst(_inst,_other,100798).gmltext="CPU"; var ___sw592___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayerteamindex;var ___swc593___=-1;if(yyCompareVal(___sw592___,(-1),g_GMLMathEpsilon,false)==0){___swc593___=0;}else if(yyCompareVal(___sw592___,0,g_GMLMathEpsilon,false)==0){___swc593___=1;}else if(yyCompareVal(___sw592___,1,g_GMLMathEpsilon,false)==0){___swc593___=2;}switch(___swc593___){case 0:{yyInst(_inst,_other,100797).gmltext="HUMAN";yyInst(_inst,_other,100798).gmltext="HUMAN";break;}case 1:{yyInst(_inst,_other,100797).gmltext="HUMAN"; break;}case 2:{yyInst(_inst,_other,100798).gmltext="HUMAN";break;}};gml_Script_refresh_exh_roster_buttons(_inst,_other);}}function gml_Script_btn_click_ChangeTeamAway(_inst,_other){{gml_Script_slog(_inst,_other,"btn_click_ChangeTeamAway");global.gmlexh_choosing=0;room_goto(YYASSET_REF(0x03000003));}}function gml_Script_btn_click_ChangeTeamHome(_inst,_other){{gml_Script_slog(_inst,_other,"btn_click_ChangeTeamHome");global.gmlexh_choosing=1;room_goto(YYASSET_REF(0x03000003));}}function gml_Script_btn_click_Exhibition_Play(_inst, _other){{gml_Script_slog_master_roster(_inst,_other,"btn_click_Exhibition_Play");gml_Script_slog(_inst,_other,gml_Script_roster_short_desc_tag(_inst,_other,global.gmlexh_roster_p0,"btn_click_Exhibition_Play Start T0"));gml_Script_slog(_inst,_other,gml_Script_roster_short_desc_tag(_inst,_other,global.gmlexh_roster_p1,"btn_click_Exhibition_Play Start T1"));if(yyGetBool(gml_Script_s_is_multicon(_inst,_other))){{if(yyGetBool(yyfbitand(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlbtn_continue_state), __yy_gml_errCheck(_inst.gmlplayer_id)))){yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlbtn_continue_state=yyfminus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlbtn_continue_state,_inst.gmlplayer_id);}else {yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlbtn_continue_state=yyfbitor(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlbtn_continue_state,_inst.gmlplayer_id);};gml_Script_s_set_exhibition_buttons(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlbtn_continue_state);};};if((yyGetBool(!yyGetBool(gml_Script_s_is_multicon(_inst, _other))))||(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlbtn_continue_state,3)))){{{var __yy__v853=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v854 in __yy__v853){if(!__yy__v853.hasOwnProperty(__yy__v854))continue;var __yy__v855=__yy__v853[__yy__v854];{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_matchlength=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"exh_op_matchlength");yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstage=4;if(yyfnotequal(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlroster,(-4))){{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v855.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ds_map_destroy(ds_list_find_value(__yy__v855.gmlroster,gmli))};ds_list_clear(__yy__v855.gmlroster);};};}}};gml_Script_slog(_inst,_other,gml_Script_roster_short_desc_tag(_inst,_other,global.gmlexh_roster_p0,"btn_click_Exhibition_Play End T0"));gml_Script_slog(_inst,_other,gml_Script_roster_short_desc_tag(_inst, _other,global.gmlexh_roster_p1,"btn_click_Exhibition_Play End T1"));room_goto(YYASSET_REF(0x03000011));};};}}function gml_Script_s_update_options_exh(_inst,_other){{gml_Script_slog(_inst,_other,"s_update_options_exh");if(yyGetBool(gml_Script_s_is_multicon(_inst,_other))){{yyInst(_inst,_other,100808).gmlgp_allowed=1;yyInst(_inst,_other,100807).gmlgp_allowed=1;yyInst(_inst,_other,100814).gmlgp_allowed=1;yyInst(_inst,_other,100809).gmlgp_allowed=1;yyInst(_inst,_other,100806).gmlgp_allowed=1;};};var ___sw594___=ds_map_find_value(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlmap_options,"exh_op_weather");var ___swc595___=-1;if(yyCompareVal(___sw594___,0,g_GMLMathEpsilon,false)==0){___swc595___=0;}else if(yyCompareVal(___sw594___,1,g_GMLMathEpsilon,false)==0){___swc595___=1;}else if(yyCompareVal(___sw594___,2,g_GMLMathEpsilon,false)==0){___swc595___=2;}else if(yyCompareVal(___sw594___,3,g_GMLMathEpsilon,false)==0){___swc595___=3;}switch(___swc595___){case 0:{yyInst(_inst,_other,100808).gmltext=gml_Script_s_str(_inst,_other,"btn_WeatherRandom"); break;}case 1:{yyInst(_inst,_other,100808).gmltext=gml_Script_s_str(_inst,_other,"btn_WeatherSun");break;}case 2:{yyInst(_inst,_other,100808).gmltext=gml_Script_s_str(_inst,_other,"btn_WeatherRain");break;}case 3:{yyInst(_inst,_other,100808).gmltext=gml_Script_s_str(_inst,_other,"btn_WeatherSnow");break;}};var ___sw596___=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"exh_op_drivedir");var ___swc597___=-1;if(yyCompareVal(___sw596___,(-1),g_GMLMathEpsilon,false)==0){___swc597___=0; }else if(yyCompareVal(___sw596___,0,g_GMLMathEpsilon,false)==0){___swc597___=1;}else if(yyCompareVal(___sw596___,1,g_GMLMathEpsilon,false)==0){___swc597___=2;}switch(___swc597___){case 0:{yyInst(_inst,_other,100807).gmltext=gml_Script_s_str(_inst,_other,"ui_driveLeft");break;}case 1:{yyInst(_inst,_other,100807).gmltext=gml_Script_s_str(_inst,_other,"ui_driveBoth");break;}case 2:{yyInst(_inst,_other,100807).gmltext=gml_Script_s_str(_inst,_other,"ui_driveRight");break;}};var ___sw598___=ds_map_find_value(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlmap_options,"exh_op_matchlength");var ___swc599___=-1;if(yyCompareVal(___sw598___,(-1),g_GMLMathEpsilon,false)==0){___swc599___=0;}else if(yyCompareVal(___sw598___,0,g_GMLMathEpsilon,false)==0){___swc599___=1;}else if(yyCompareVal(___sw598___,1,g_GMLMathEpsilon,false)==0){___swc599___=2;}switch(___swc599___){case 0:{yyInst(_inst,_other,100809).gmltext=gml_Script_s_str(_inst,_other,"ui_min1");break;}case 1:{yyInst(_inst,_other,100809).gmltext=gml_Script_s_str(_inst,_other, "ui_min2");break;}case 2:{yyInst(_inst,_other,100809).gmltext=gml_Script_s_str(_inst,_other,"ui_min3");break;}};var ___sw600___=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"exh_op_kickoffs");var ___swc601___=-1;if(yyCompareVal(___sw600___,false,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw600___,"false",g_GMLMathEpsilon,false)==0){___swc601___=0;}else if(yyCompareVal(___sw600___,true,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw600___,"true",g_GMLMathEpsilon,false)==0){ ___swc601___=1;}switch(___swc601___){case 0:{yyInst(_inst,_other,100814).gmltext=gml_Script_s_str(_inst,_other,"ui_Off");break;}case 1:{yyInst(_inst,_other,100814).gmltext=gml_Script_s_str(_inst,_other,"ui_On");break;}};}}function gml_Script_s_force_kick_direction(_inst,_other){{{var __yy__v856=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v857 in __yy__v856){if(!__yy__v856.hasOwnProperty(__yy__v857))continue;var __yy__v858=__yy__v856[__yy__v857];{var ___sw602___=__yy__v858.gmlquarter;var ___swc603___=-1; if(yyCompareVal(___sw602___,1,g_GMLMathEpsilon,false)==0){___swc603___=0;}else if(yyCompareVal(___sw602___,2,g_GMLMathEpsilon,false)==0){___swc603___=1;}else if(yyCompareVal(___sw602___,3,g_GMLMathEpsilon,false)==0){___swc603___=2;}else if(yyCompareVal(___sw602___,4,g_GMLMathEpsilon,false)==0){___swc603___=3;}else if(yyCompareVal(___sw602___,5,g_GMLMathEpsilon,false)==0){___swc603___=4;}switch(___swc603___){case 0:{__yy__v858.gmldrivedir=(yyfequal(__yy__v858.gmlpossession,0)?1:(-1));break;}case 1:{__yy__v858.gmldrivedir=(yyfequal(__yy__v858.gmlpossession, 0)?(-1):1);break;}case 2:{__yy__v858.gmldrivedir=(yyfequal(__yy__v858.gmlpossession,0)?(-1):1);break;}case 3:{__yy__v858.gmldrivedir=(yyfequal(__yy__v858.gmlpossession,0)?1:(-1));break;}case 4:{__yy__v858.gmldrivedir=(yyfequal(__yy__v858.gmlpossession,0)?1:(-1));break;}};if(yyfnotequal(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"exh_op_drivedir"),0)){__yy__v858.gmldrivedir=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"exh_op_drivedir"); };if(yyGetBool(gml_Script_s_is_kickoff(__yy__v858,_inst,1))){gml_Script_s_switch_drivedirection(__yy__v858,_inst);};}}};}}function gml_Script_s_count_audibles(_inst,_other){{{var __yy__v859=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v860 in __yy__v859){if(!__yy__v859.hasOwnProperty(__yy__v860))continue;var __yy__v861=__yy__v859[__yy__v860];{if((yyGetBool(global.gmlexhibition))&&(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayerteamindex,(-1))))){{var ___sw604___=__yy__v861.gmlpossession; var ___swc605___=-1;if(yyCompareVal(___sw604___,0,g_GMLMathEpsilon,false)==0){___swc605___=0;}else if(yyCompareVal(___sw604___,1,g_GMLMathEpsilon,false)==0){___swc605___=1;}switch(___swc605___){case 0:{return __yy__v861.gmlaudibles;break;}case 1:{return __yy__v861.gmlaudibles_p2;break;}};};}else {return __yy__v861.gmlaudibles;};}}};}}function gml_Script_s_update_audibles(_inst,_other,argument0){{{var __yy__v862=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v863 in __yy__v862){if(!__yy__v862.hasOwnProperty(__yy__v863))continue; var __yy__v864=__yy__v862[__yy__v863];{if((yyGetBool(global.gmlexhibition))&&(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayerteamindex,(-1))))){{var ___sw606___=__yy__v864.gmlpossession;var ___swc607___=-1;if(yyCompareVal(___sw606___,0,g_GMLMathEpsilon,false)==0){___swc607___=0;}else if(yyCompareVal(___sw606___,1,g_GMLMathEpsilon,false)==0){___swc607___=1;}switch(___swc607___){case 0:{__yy__v864.gmlaudibles=yyfplus(__yy__v864.gmlaudibles,argument0);break;}case 1:{__yy__v864.gmlaudibles_p2=yyfplus(__yy__v864.gmlaudibles_p2, argument0);break;}};};}else {__yy__v864.gmlaudibles=yyfplus(__yy__v864.gmlaudibles,argument0);};}}};}}function gml_Script_s_set_audibles(_inst,_other,argument0){{gml_Script_slog(_inst,_other,yyfplus("s_set_audibles:",__yy_gml_errCheck(string(argument0))));{var __yy__v865=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v866 in __yy__v865){if(!__yy__v865.hasOwnProperty(__yy__v866))continue;var __yy__v867=__yy__v865[__yy__v866];{__yy__v867.gmlaudibles=argument0;__yy__v867.gmlaudibles_p2=argument0;}}}; }}function gml_Script_s_count_timeouts(_inst,_other){{{var __yy__v868=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v869 in __yy__v868){if(!__yy__v868.hasOwnProperty(__yy__v869))continue;var __yy__v870=__yy__v868[__yy__v869];{if((yyGetBool(global.gmlexhibition))&&(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayerteamindex,(-1))))){{var ___sw608___=__yy__v870.gmlpossession;var ___swc609___=-1;if(yyCompareVal(___sw608___,0,g_GMLMathEpsilon,false)==0){___swc609___=0;}else if(yyCompareVal(___sw608___, 1,g_GMLMathEpsilon,false)==0){___swc609___=1;}switch(___swc609___){case 0:{return __yy__v870.gmltimeouts;break;}case 1:{return __yy__v870.gmltimeouts_p2;break;}};};}else {return __yy__v870.gmltimeouts;};}}};}}function gml_Script_s_update_timeouts(_inst,_other,argument0){{{var __yy__v871=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v872 in __yy__v871){if(!__yy__v871.hasOwnProperty(__yy__v872))continue;var __yy__v873=__yy__v871[__yy__v872];{if((yyGetBool(global.gmlexhibition))&&(yyGetBool(yyfequal(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlplayerteamindex,(-1))))){{var ___sw610___=__yy__v873.gmlpossession;var ___swc611___=-1;if(yyCompareVal(___sw610___,0,g_GMLMathEpsilon,false)==0){___swc611___=0;}else if(yyCompareVal(___sw610___,1,g_GMLMathEpsilon,false)==0){___swc611___=1;}switch(___swc611___){case 0:{__yy__v873.gmltimeouts=yyfplus(__yy__v873.gmltimeouts,argument0);break;}case 1:{__yy__v873.gmltimeouts_p2=yyfplus(__yy__v873.gmltimeouts_p2,argument0);break;}};};}else {__yy__v873.gmltimeouts=yyfplus(__yy__v873.gmltimeouts, argument0);};}}};}}function gml_Script_s_set_timeouts(_inst,_other,argument0){{gml_Script_slog(_inst,_other,yyfplus("s_set_timeouts:",__yy_gml_errCheck(string(argument0))));{var __yy__v874=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v875 in __yy__v874){if(!__yy__v874.hasOwnProperty(__yy__v875))continue;var __yy__v876=__yy__v874[__yy__v875];{__yy__v876.gmltimeouts=argument0;__yy__v876.gmltimeouts_p2=argument0;}}};}}function gml_Script_s_set_exhibition_buttons(_inst,_other,argument0){{yyInst(_inst, _other,100802).visible=false;yyInst(_inst,_other,100802).gmlimage=YYASSET_REF(0x01000091);yyInst(_inst,_other,100799).gmlimage=YYASSET_REF(0x01000091);if(yyGetBool(gml_Script_s_is_multicon(_inst,_other))){{yyInst(_inst,_other,100802).visible=true;yyInst(_inst,_other,100802).gmlplayer_id=1;yyInst(_inst,_other,100793).gmlgp_allowed=1;yyInst(_inst,_other,100785).gmlgp_allowed=1;yyInst(_inst,_other,100796).gmlgp_allowed=1;yyInst(_inst,_other,100791).gmlgp_allowed=1;yyInst(_inst,_other,100802).gmlgp_allowed=1; yyInst(_inst,_other,100790).gmlgp_allowed=1;yyInst(_inst,_other,100793).gmlactive=true;yyInst(_inst,_other,100785).gmlactive=true;yyInst(_inst,_other,100796).gmlactive=true;yyInst(_inst,_other,100791).gmlactive=true;yyInst(_inst,_other,100790).gmlactive=true;yyInst(_inst,_other,100799).gmlplayer_id=2;yyInst(_inst,_other,100794).gmlgp_allowed=2;yyInst(_inst,_other,100792).gmlgp_allowed=2;yyInst(_inst,_other,100799).gmlgp_allowed=2;yyInst(_inst,_other,100794).gmlactive=true;yyInst(_inst,_other,100792).gmlactive=true; if(yyGetBool(yyfbitand(__yy_gml_errCheck(argument0),1))){{yyInst(_inst,_other,100802).gmlimage=YYASSET_REF(0x01000095);yyInst(_inst,_other,100793).gmlactive=false;yyInst(_inst,_other,100785).gmlactive=false;yyInst(_inst,_other,100796).gmlactive=false;yyInst(_inst,_other,100791).gmlactive=false;yyInst(_inst,_other,100790).gmlactive=false;};};if(yyGetBool(yyfbitand(__yy_gml_errCheck(argument0),2))){{yyInst(_inst,_other,100799).gmlimage=YYASSET_REF(0x01000095);yyInst(_inst,_other,100794).gmlactive=false; yyInst(_inst,_other,100792).gmlactive=false;};};};};}}function gml_Script_btn_click_exhibition_switch_start(_inst,_other){{if((yyGetBool(yyfequal(g_pBuiltIn.get_current_room(),YYASSET_REF(0x03000032))))&&(yyGetBool(gml_Script_s_is_multicon_wanted(_inst,_other)))){{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_TouchscreenDeactivation"),gml_Script_s_str(_inst,_other,"ui_Continue"),gml_Script_s_str(_inst,_other,"ui_Back"),kgml_Script_s_exhibition_controller_check_continue, kgml_Script_s_msg_clear,global.gmlc_background,1);return;};};gml_Script_btn_click_exhibition_start(_inst,_other);}}function gml_Script_s_exhibition_controller_check_continue(_inst,_other){{gml_Script_s_multicon_init(_inst,_other);gml_Script_s_msg_clear(_inst,_other);if(yyGetBool(gml_Script_s_is_multicon(_inst,_other))){{gml_Script_s_set_multicon_touch(_inst,_other,false);gml_Script_btn_click_exhibition_start(_inst,_other);};};}}function gml_Script_btn_click_exhibition_controllers(_inst,_other){{gml_Script_s_toggle_multicon_wanted(_inst, _other);gml_Script_btn_exhibition_controllers_refresh(_inst,_other);}}function gml_Script_btn_exhibition_controllers_refresh(_inst,_other){{{var __yy__v877=GetWithArray(100823);for(var __yy__v878 in __yy__v877){if(!__yy__v877.hasOwnProperty(__yy__v878))continue;var __yy__v879=__yy__v877[__yy__v878];{__yy__v879.gmltext=gml_Script_s_str(__yy__v879,_inst,(yyGetBool(gml_Script_s_is_multicon_wanted(__yy__v879,_inst))?"ui_Controllers_Double":"ui_Controllers_Single"));}}};}}function gml_Script_rm_exhibition_options_create(_inst, _other){{gml_Script_s_multicon_reset(_inst,_other);gml_Script_btn_exhibition_controllers_refresh(_inst,_other);}}function gml_Script_s_exh_teamswap_allowed(_inst,_other){{return yyfequal(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"fullversion"),1);}}function gml_Script_get_ex_teamset_0(_inst,_other){{return(yyfnotequal(global.gmlexh_teamlist_p0,(-4))?global.gmlexh_teamlist_p0:yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteamlist);}}function gml_Script_get_ex_teamset_1(_inst, _other){{return(yyfnotequal(global.gmlexh_teamlist_p1,(-4))?global.gmlexh_teamlist_p1:yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteamlist);}}function gml_Script_get_ex_uniform_file(_inst,_other,argument0){{if(yyfnotequal(argument0,(-1))){{var gmlcustom_name=yyfplus(yyfplus("uniforms_custom_",__yy_gml_errCheck(string(argument0))),".txt");if(yyGetBool(file_exists(gmlcustom_name))){{return gmlcustom_name;};};};};return gml_Script_s_uniforms_default_file(_inst,_other);}}function gml_Script_btn_click_ExhibitionLoadUniformsA(_inst, _other){{gml_Script_btn_click_ExhibitionLoadUniforms(_inst,_other,1,kgml_Script_s_load_save_team_exhibitionA);}}function gml_Script_btn_click_ExhibitionLoadUniformsB(_inst,_other){{gml_Script_btn_click_ExhibitionLoadUniforms(_inst,_other,2,kgml_Script_s_load_save_team_exhibitionB);}}function gml_Script_btn_click_ExhibitionLoadUniformsC(_inst,_other){{gml_Script_btn_click_ExhibitionLoadUniforms(_inst,_other,3,kgml_Script_s_load_save_team_exhibitionC);}}function gml_Script_btn_click_ExhibitionLoadUniformsD(_inst, _other){{gml_Script_btn_click_ExhibitionLoadUniforms(_inst,_other,4,kgml_Script_s_load_save_team_exhibitionD);}}function gml_Script_btn_click_ExhibitionLoadUniformsE(_inst,_other){{gml_Script_btn_click_ExhibitionLoadUniforms(_inst,_other,5,kgml_Script_s_load_save_team_exhibitionE);}}function gml_Script_btn_click_ExhibitionLoadUniforms(_inst,_other,argument0,argument1){{if(yyfequal(gml_Script_s_exh_teamswap_allowed(_inst,_other),false)){{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst, _other,"msg_ExhibitionCantCopyUniforms"),"",gml_Script_s_str(_inst,_other,"ui_Confirm"),kgml_Script_s_msg_clear,kgml_Script_s_msg_clear,global.gmlc_background,1);return;};};gml_Script_slog(_inst,_other,yyfplus(yyfplus("btn_click_ExhibitionLoadUniforms [",__yy_gml_errCheck(string(argument0))),"]"));var gmlstr=string_replace(gml_Script_s_str(_inst,_other,"msg_ExhibitionCopyUniforms"),"$num",argument0);gml_Script_s_create_message(_inst,_other,"",gmlstr,gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst, _other,"ui_Confirm"),kgml_Script_s_msg_clear,argument1,global.gmlc_background,1);}}function gml_Script_s_get_save_from_number(_inst,_other,argument0){{var ___sw612___=argument0;var ___swc613___=-1;if(yyCompareVal(___sw612___,1,g_GMLMathEpsilon,false)==0){___swc613___=0;}else if(yyCompareVal(___sw612___,2,g_GMLMathEpsilon,false)==0){___swc613___=1;}else if(yyCompareVal(___sw612___,3,g_GMLMathEpsilon,false)==0){___swc613___=2;}else if(yyCompareVal(___sw612___,4,g_GMLMathEpsilon,false)==0){___swc613___=3; }else if(yyCompareVal(___sw612___,5,g_GMLMathEpsilon,false)==0){___swc613___=4;}switch(___swc613___){case 0:{return global.gmlg_savename1;}case 1:{return global.gmlg_savename2;}case 2:{return global.gmlg_savename3;}case 3:{return global.gmlg_savename4;}case 4:{return global.gmlg_savename5;}};}}function gml_Script_s_load_save_team_exhibitionA(_inst,_other){{gml_Script_s_load_save_team_exhibition(_inst,_other,1,global.gmlg_savename1);}}function gml_Script_s_load_save_team_exhibitionB(_inst,_other){{gml_Script_s_load_save_team_exhibition(_inst, _other,2,global.gmlg_savename2);}}function gml_Script_s_load_save_team_exhibitionC(_inst,_other){{gml_Script_s_load_save_team_exhibition(_inst,_other,3,global.gmlg_savename3);}}function gml_Script_s_load_save_team_exhibitionD(_inst,_other){{gml_Script_s_load_save_team_exhibition(_inst,_other,4,global.gmlg_savename4);}}function gml_Script_s_load_save_team_exhibitionE(_inst,_other){{gml_Script_s_load_save_team_exhibition(_inst,_other,5,global.gmlg_savename5);}}function gml_Script_s_load_save_team_exhibition(_inst, _other,argument0,argument1){{gml_Script_s_msg_clear(_inst,_other);gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("s_load_save_team_exhibition [",__yy_gml_errCheck(string(argument0))),"("),__yy_gml_errCheck(argument1)),")] for player["),__yy_gml_errCheck(string(global.gmlexh_choosing))),"]"));if(yyfequal(global.gmlexh_choosing,0)){{global.gmlexh_teamset_p0=argument0;};}else {if(yyfequal(global.gmlexh_choosing,1)){{global.gmlexh_teamset_p1=argument0;};};};ini_open(argument1); var gmlcur_teamlist=ds_list_create();var gmlteamsize=ini_read_real("savegame","teamlist",0);var gmlm=0;for(;yyfless(gmlm,gmlteamsize);(g_yyPrePostObject__=gmlm,gmlm=(g_yyPrePostObject__ instanceof Long?gmlm.add(1):++gmlm),g_yyPrePostObject__)){{var gmlmap=ds_map_create();ds_map_read(gmlmap,ini_read_string("savegame",yyfplus("teamlist_",__yy_gml_errCheck(string(gmlm))),""));ds_list_add(gmlcur_teamlist,gmlmap);}};var gmlcur_roster=ds_list_create();var gmlroster_size=ini_read_real("savegame","roster",0);var gmlr=0; for(;yyfless(gmlr,gmlroster_size);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{var gmlpmap=ds_map_create();ds_map_read(gmlpmap,ini_read_string("savegame",yyfplus("roster_",__yy_gml_errCheck(string(gmlr))),""));if(yyGetBool(gml_Script_s_is_player_pmap_corrupt(_inst,_other,gmlpmap))){{ds_map_destroy(gmlpmap);gmlpmap=(-1);continue;};};ds_list_add(gmlcur_roster,gmlpmap);}};var gmlname_conf1=ini_read_string("savegame","name_conf1",gml_Script_s_str(_inst, _other,"conf_AFC"));var gmlname_conf2=ini_read_string("savegame","name_conf2",gml_Script_s_str(_inst,_other,"conf_NFC"));var gmlload_teamid=ini_read_real("savegame","myteam_id",(-1));gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus("name_conf1[",__yy_gml_errCheck(gmlname_conf1)),"] name_conf2["),__yy_gml_errCheck(gmlname_conf2)),"]"));ini_close();if(yyfequal(global.gmlexh_choosing,0)){{global.gmlexh_teamlist_p0=gml_Script_s_exhibition_wipe_list(_inst,_other,global.gmlexh_teamlist_p0);global.gmlexh_teamlist_p0=gmlcur_teamlist; global.gmlexh_confAFC_p0=gmlname_conf1;global.gmlexh_confNFC_p0=gmlname_conf2;global.gmlexh_teamId_p0=gmlload_teamid;global.gmlexh_roster_p0=gmlcur_roster;gml_Script_slog(_inst,_other,yyfplus(yyfplus("test: Team 0 in loaded teams is [",__yy_gml_errCheck(ds_map_find_value(gml_Script_s_get_team_by_id_internal(_inst,_other,0,global.gmlexh_teamlist_p0),"name"))),"]"));};}else {if(yyfequal(global.gmlexh_choosing,1)){{global.gmlexh_teamlist_p1=gml_Script_s_exhibition_wipe_list(_inst,_other,global.gmlexh_teamlist_p1); global.gmlexh_teamlist_p1=gmlcur_teamlist;global.gmlexh_confAFC_p1=gmlname_conf1;global.gmlexh_confNFC_p1=gmlname_conf2;global.gmlexh_teamId_p1=gmlload_teamid;global.gmlexh_roster_p1=gmlcur_roster;gml_Script_slog(_inst,_other,yyfplus(yyfplus("test: Team 0 in loaded teams is [",__yy_gml_errCheck(ds_map_find_value(gml_Script_s_get_team_by_id_internal(_inst,_other,0,global.gmlexh_teamlist_p1),"name"))),"]"));};};};var gmlfilename=yyfplus(yyfplus("uniforms_custom_",__yy_gml_errCheck(string(argument0))), ".txt");if(yyGetBool(file_exists(gmlfilename))){{var gmlfile=file_text_open_read(gmlfilename);var gmlkeys=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile);while(!yyGetBool(file_text_eof(gmlfile))){{var gmlvalues=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile);var gmluid=gmlvalues[__yy_gml_array_check_index(0,gmlvalues)];var gmltmap=gml_Script_s_get_team_by_id_internal(_inst,_other,gmluid,gmlcur_teamlist); ds_map_set(gmltmap,"name",gmlvalues[__yy_gml_array_check_index(1,gmlvalues)]);ds_map_set(gmltmap,"tla",gmlvalues[__yy_gml_array_check_index(2,gmlvalues)]);}};file_text_close(gmlfile);};};gml_Script_s_refresh_exhibition_team_load_buttons(_inst,_other);}}function gml_Script_exh_refresh_roster_from_save(_inst,_other,argument0,argument1){{if(yyfequal(argument1,(-1))){{gml_Script_slog(_inst,_other,yyfplus(yyfplus("exh_refresh_roster_from_save skipped. Player[",__yy_gml_errCheck(string(argument0))),"] has no save loaded")); return;};};gml_Script_s_msg_clear(_inst,_other);var gmlsave_filename=gml_Script_s_get_save_from_number(_inst,_other,argument1);gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("exh_refresh_roster_from_save loading roster from save [",__yy_gml_errCheck(string(argument1))),"("),__yy_gml_errCheck(gmlsave_filename)),")] for player["),__yy_gml_errCheck(string(argument0))),"]"));ini_open(gmlsave_filename);var gmlcur_roster=ds_list_create();var gmlroster_size=ini_read_real("savegame", "roster",0);var gmlr=0;for(;yyfless(gmlr,gmlroster_size);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{var gmlpmap=ds_map_create();ds_map_read(gmlpmap,ini_read_string("savegame",yyfplus("roster_",__yy_gml_errCheck(string(gmlr))),""));if(yyGetBool(gml_Script_s_is_player_pmap_corrupt(_inst,_other,gmlpmap))){{ds_map_destroy(gmlpmap);gmlpmap=(-1);continue;};};ds_list_add(gmlcur_roster,gmlpmap);}};ini_close();if(yyfequal(argument0,0)){{global.gmlexh_roster_p0=gml_Script_s_exhibition_wipe_list(_inst, _other,global.gmlexh_roster_p0);global.gmlexh_roster_p0=gmlcur_roster;};}else {if(yyfequal(argument0,1)){{global.gmlexh_roster_p1=gml_Script_s_exhibition_wipe_list(_inst,_other,global.gmlexh_roster_p1);global.gmlexh_roster_p1=gmlcur_roster;};};};}}function gml_Script_s_load_html_save1_exhibition(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);var gmlsaveNumber=1;var gmlsave_filename=global.gmlg_savename1;if((yyGetBool(yyfequal(global.gmlexh_choosing,0)))&&(yyGetBool(yyfnotequal(global.gmlexh_teamId_p0, (-1))))){{return;};};if((yyGetBool(yyfequal(global.gmlexh_choosing,1)))&&(yyGetBool(yyfnotequal(global.gmlexh_teamId_p1,(-1))))){{return;};};gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("s_load_save_team_exhibition [",__yy_gml_errCheck(string(gmlsaveNumber))),"("),__yy_gml_errCheck(gmlsave_filename)),")] for player["),__yy_gml_errCheck(string(global.gmlexh_choosing))),"]"));ini_open(gmlsave_filename);var gmlcur_roster=ds_list_create();var gmlroster_size=ini_read_real("savegame", "roster",0);var gmlr=0;for(;yyfless(gmlr,gmlroster_size);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{var gmlpmap=ds_map_create();ds_map_read(gmlpmap,ini_read_string("savegame",yyfplus("roster_",__yy_gml_errCheck(string(gmlr))),""));if(yyGetBool(gml_Script_s_is_player_pmap_corrupt(_inst,_other,gmlpmap))){{ds_map_destroy(gmlpmap);gmlpmap=(-1);continue;};};ds_list_add(gmlcur_roster,gmlpmap);}};var gmlload_teamid=ini_read_real("savegame", "myteam_id",(-1));ini_close();if(yyfequal(global.gmlexh_choosing,0)){{global.gmlexh_teamset_p0=gmlsaveNumber;global.gmlexh_teamId_p0=gmlload_teamid;global.gmlexh_roster_p0=gmlcur_roster;};}else {if(yyfequal(global.gmlexh_choosing,1)){{global.gmlexh_teamset_p1=gmlsaveNumber;global.gmlexh_teamId_p1=gmlload_teamid;global.gmlexh_roster_p1=gmlcur_roster;};};};}}function gml_Script_btn_click_RestoreAllTeams_ex(_inst,_other){{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_RestoreAllTeams"), gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Confirm"),kgml_Script_s_msg_clear,kgml_Script_s_restore_uniforms_all_ex,global.gmlc_background,1);}}function gml_Script_s_restore_uniforms_all_ex(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);if(yyfequal(global.gmlexh_choosing,0)){{global.gmlexh_teamset_p0=(-1);global.gmlexh_teamlist_p0=gml_Script_s_exhibition_wipe_list(_inst,_other,global.gmlexh_teamlist_p0);global.gmlexh_confAFC_p0=gml_Script_s_str(_inst,_other,"conf_AFC"); global.gmlexh_confNFC_p0=gml_Script_s_str(_inst,_other,"conf_NFC");global.gmlexh_teamId_p0=(-1);global.gmlexh_use_roster_p0=false;global.gmlexh_roster_p0=gml_Script_s_exhibition_wipe_list(_inst,_other,global.gmlexh_roster_p0);};}else {if(yyfequal(global.gmlexh_choosing,1)){{global.gmlexh_teamset_p1=(-1);global.gmlexh_teamlist_p1=gml_Script_s_exhibition_wipe_list(_inst,_other,global.gmlexh_teamlist_p1);global.gmlexh_confAFC_p1=gml_Script_s_str(_inst,_other,"conf_AFC");global.gmlexh_confNFC_p1=gml_Script_s_str(_inst, _other,"conf_NFC");global.gmlexh_teamId_p1=(-1);global.gmlexh_use_roster_p1=false;global.gmlexh_roster_p1=gml_Script_s_exhibition_wipe_list(_inst,_other,global.gmlexh_roster_p1);};};};gml_Script_s_copy_teamnames_from_uniform_file(_inst,_other,gml_Script_s_uniforms_default_file(_inst,_other));gml_Script_s_refresh_exhibition_team_load_buttons(_inst,_other);}}function gml_Script_s_exhibition_team_management_start(_inst,_other){{gml_Script_s_exhibition_team_management_clear(_inst,_other);{var __yy__v880=GetWithArray(YYASSET_REF(0x00000062)); for(var __yy__v881 in __yy__v880){if(!__yy__v880.hasOwnProperty(__yy__v881))continue;var __yy__v882=__yy__v880[__yy__v881];{__yy__v882.gmlteamlist=gml_Script_s_exhibition_wipe_list(__yy__v882,_inst,__yy__v882.gmlteamlist);__yy__v882.gmlteamlist=gml_Script_s_load_teams(__yy__v882,_inst);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster=gml_Script_s_exhibition_wipe_list(__yy__v882,_inst,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster);}}};}}function gml_Script_s_exhibition_team_management_clear(_inst, _other){{global.gmlexh_teamset_p0=(-1);global.gmlexh_confAFC_p0=gml_Script_s_str(_inst,_other,"conf_AFC");global.gmlexh_confNFC_p0=gml_Script_s_str(_inst,_other,"conf_NFC");global.gmlexh_teamId_p0=(-1);global.gmlexh_use_roster_p0=false;global.gmlexh_teamset_p1=(-1);global.gmlexh_confAFC_p1=gml_Script_s_str(_inst,_other,"conf_AFC");global.gmlexh_confNFC_p1=gml_Script_s_str(_inst,_other,"conf_NFC");global.gmlexh_teamId_p1=(-1);global.gmlexh_use_roster_p1=false;if(!yyGetBool(variable_global_exists("exh_roster_p0"))){ {global.gmlexh_roster_p0=(-4);};};if(!yyGetBool(variable_global_exists("exh_roster_p1"))){{global.gmlexh_roster_p1=(-4);};};global.gmlexh_roster_p0=gml_Script_s_exhibition_wipe_list(_inst,_other,global.gmlexh_roster_p0);global.gmlexh_roster_p1=gml_Script_s_exhibition_wipe_list(_inst,_other,global.gmlexh_roster_p1);if(!yyGetBool(variable_global_exists("exh_teamlist_p0"))){{global.gmlexh_teamlist_p0=(-4);};};if(!yyGetBool(variable_global_exists("exh_teamlist_p1"))){{global.gmlexh_teamlist_p1=(-4); };};global.gmlexh_teamlist_p0=gml_Script_s_exhibition_wipe_list(_inst,_other,global.gmlexh_teamlist_p0);global.gmlexh_teamlist_p1=gml_Script_s_exhibition_wipe_list(_inst,_other,global.gmlexh_teamlist_p1);}}function gml_Script_s_exhibition_wipe_list(_inst,_other,argument0){{if(yyfequal(argument0,(-4))){{return(-4);};};var gmli=0;for(;yyfless(gmli,ds_list_size(argument0));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_map_destroy(ds_list_find_value(argument0, gmli));}};ds_list_destroy(argument0);argument0=(-4);return(-4);}}function gml_Script_s_refresh_exhibition_team_load_buttons(_inst,_other){{var gmlsaveSlot=(yyfequal(global.gmlexh_choosing,0)?global.gmlexh_teamset_p0:global.gmlexh_teamset_p1);if(yyGetBool(global.gmlexhibition_html_1save)){{gmlsaveSlot=(-1);};};gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus("s_refresh_exhibition_team_load_buttons for player[",__yy_gml_errCheck(string(global.gmlexh_choosing))),"] with current teamset["), __yy_gml_errCheck(string(gmlsaveSlot))),"]"));gml_Script_slog(_inst,_other,yyfplus(yyfplus("global.exh_confAFC_p0 [",__yy_gml_errCheck(global.gmlexh_confAFC_p0)),"]"));gml_Script_slog(_inst,_other,yyfplus(yyfplus("global.exh_confNFC_p0 [",__yy_gml_errCheck(global.gmlexh_confNFC_p0)),"]"));gml_Script_slog(_inst,_other,yyfplus(yyfplus("global.exh_confAFC_p1 [",__yy_gml_errCheck(global.gmlexh_confAFC_p1)),"]"));gml_Script_slog(_inst,_other,yyfplus(yyfplus("global.exh_confNFC_p1 [",__yy_gml_errCheck(global.gmlexh_confNFC_p1)), "]"));yyInst(_inst,_other,100048).gmlactive=true;yyInst(_inst,_other,100048).gmltext=gml_Script_s_str(_inst,_other,"ui_CopySlot1");yyInst(_inst,_other,100049).gmlactive=true;yyInst(_inst,_other,100049).gmltext=gml_Script_s_str(_inst,_other,"ui_CopySlot2");yyInst(_inst,_other,100050).gmlactive=true;yyInst(_inst,_other,100050).gmltext=gml_Script_s_str(_inst,_other,"ui_CopySlot3");yyInst(_inst,_other,100051).gmlactive=true;yyInst(_inst,_other,100051).gmltext=gml_Script_s_str(_inst,_other,"ui_CopySlot4"); yyInst(_inst,_other,100052).gmlactive=true;yyInst(_inst,_other,100052).gmltext=gml_Script_s_str(_inst,_other,"ui_CopySlot5");if(!yyGetBool(file_exists(global.gmlg_savename1))){yyInst(_inst,_other,100048).gmlactive=false;};if(!yyGetBool(file_exists(global.gmlg_savename2))){yyInst(_inst,_other,100049).gmlactive=false;};if(!yyGetBool(file_exists(global.gmlg_savename3))){yyInst(_inst,_other,100050).gmlactive=false;};if(!yyGetBool(file_exists(global.gmlg_savename4))){yyInst(_inst,_other,100051).gmlactive=false; };if(!yyGetBool(file_exists(global.gmlg_savename5))){yyInst(_inst,_other,100052).gmlactive=false;};var ___sw614___=gmlsaveSlot;var ___swc615___=-1;if(yyCompareVal(___sw614___,1,g_GMLMathEpsilon,false)==0){___swc615___=0;}else if(yyCompareVal(___sw614___,2,g_GMLMathEpsilon,false)==0){___swc615___=1;}else if(yyCompareVal(___sw614___,3,g_GMLMathEpsilon,false)==0){___swc615___=2;}else if(yyCompareVal(___sw614___,4,g_GMLMathEpsilon,false)==0){___swc615___=3;}else if(yyCompareVal(___sw614___,5,g_GMLMathEpsilon, false)==0){___swc615___=4;}switch(___swc615___){case 0:{yyInst(_inst,_other,100048).gmlactive=false;yyInst(_inst,_other,100048).gmltext=gml_Script_s_str(_inst,_other,"ui_Current");break;}case 1:{yyInst(_inst,_other,100049).gmlactive=false;yyInst(_inst,_other,100049).gmltext=gml_Script_s_str(_inst,_other,"ui_Current");break;}case 2:{yyInst(_inst,_other,100050).gmlactive=false;yyInst(_inst,_other,100050).gmltext=gml_Script_s_str(_inst,_other,"ui_Current");break;}case 3:{yyInst(_inst,_other,100051).gmlactive=false; yyInst(_inst,_other,100051).gmltext=gml_Script_s_str(_inst,_other,"ui_Current");break;}case 4:{yyInst(_inst,_other,100052).gmlactive=false;yyInst(_inst,_other,100052).gmltext=gml_Script_s_str(_inst,_other,"ui_Current");break;}};if(yyfequal(gml_Script_s_exh_teamswap_allowed(_inst,_other),false)){{yyInst(_inst,_other,100048).gmlcolour=4210752;yyInst(_inst,_other,100049).gmlcolour=4210752;yyInst(_inst,_other,100050).gmlcolour=4210752;yyInst(_inst,_other,100051).gmlcolour=4210752;yyInst(_inst,_other, 100052).gmlcolour=4210752;};};yyInst(_inst,_other,100047).gmlactive=yyfnotequal(gmlsaveSlot,(-1));yyInst(_inst,_other,100046).gmltext=gml_Script_s_str(_inst,_other,yyfplus("ui_SaveSlot",__yy_gml_errCheck(string(gmlsaveSlot))));{var __yy__v883=GetWithArray(YYASSET_REF(0x0000007F));for(var __yy__v884 in __yy__v883){if(!__yy__v883.hasOwnProperty(__yy__v884))continue;var __yy__v885=__yy__v883[__yy__v884];{gml_Script_s_update_team_buttons(__yy__v885,_inst);}}};}}function gml_Script_refresh_exh_roster_buttons(_inst, _other){{var gmlp0Human=(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayerteamindex,(-1))))||(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayerteamindex,0)));var gmlp1Human=(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayerteamindex,(-1))))||(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayerteamindex,1)));yyInst(_inst,_other,100803).gmlactive=(yyGetBool(global.gmlexh_use_roster_p0))&&(yyGetBool(gmlp0Human)); yyInst(_inst,_other,100804).gmlactive=(yyGetBool(global.gmlexh_use_roster_p1))&&(yyGetBool(gmlp1Human));}}function gml_Script_btn_click_RosterTeamAway(_inst,_other){{global.gmlexh_choosing=0;yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster=global.gmlexh_roster_p0;gml_Script_slog(_inst,_other,gml_Script_roster_short_desc_tag(_inst,_other,global.gmlexh_roster_p0,"TO ROSTER ROOM exh_roster_p0"));gml_Script_slog(_inst,_other,gml_Script_roster_short_desc_tag(_inst,_other,global.gmlexh_roster_p1, "TO ROSTER ROOM exh_roster_p1"));room_goto(YYASSET_REF(0x03000019));}}function gml_Script_btn_click_RosterTeamHome(_inst,_other){{global.gmlexh_choosing=1;yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster=global.gmlexh_roster_p1;gml_Script_slog(_inst,_other,gml_Script_roster_short_desc_tag(_inst,_other,global.gmlexh_roster_p0,"TO ROSTER ROOM exh_roster_p0"));gml_Script_slog(_inst,_other,gml_Script_roster_short_desc_tag(_inst,_other,global.gmlexh_roster_p1,"TO ROSTER ROOM exh_roster_p1"));room_goto(YYASSET_REF(0x03000019)); }}function gml_Script_btn_click_Profile_Back_To_Exhibition(_inst,_other){{if(yyfequal(global.gmlexh_choosing,0)){{global.gmlexh_roster_p0=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster;};};if(yyfequal(global.gmlexh_choosing,1)){{global.gmlexh_roster_p1=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster;};};yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster=(-4);gml_Script_slog(_inst,_other,gml_Script_roster_short_desc_tag(_inst,_other,global.gmlexh_roster_p0,"Back to EXH ROOM T0")); gml_Script_slog(_inst,_other,gml_Script_roster_short_desc_tag(_inst,_other,global.gmlexh_roster_p1,"Back to EXH ROOM T1"));room_goto(YYASSET_REF(0x0300002F));}}function gml_Script_rm_player_profile_exhibition_create(_inst,_other){{yyInst(_inst,_other,100429).visible=false;yyInst(_inst,_other,100427).visible=false;yyInst(_inst,_other,100426).visible=false;yyInst(_inst,_other,100425).visible=false;layer_set_visible(_inst.gmllayer_hoftag,false);}}function gml_Script_rm_roster_exhibition_create(_inst, _other){{yyInst(_inst,_other,100499).visible=false;yyInst(_inst,_other,100493).visible=false;yyInst(_inst,_other,100500).visible=false;yyInst(_inst,_other,100496).visible=false;yyInst(_inst,_other,100491).gmlimage=YYASSET_REF(0x0100008E);yyInst(_inst,_other,100491).gmlonClickAction=kgml_Script_btn_click_Profile_Back_To_Exhibition;}}function gml_Script_exhibition_handle_exit_match(_inst,_other){{gml_Script_slog(_inst,_other,"exhibition_handle_exit_match");yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_roster=__yy_gml_array_check(yyInst(_inst, _other,YYASSET_REF(0x00000069)).gmlteam_roster,335846446);yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_roster[__yy_gml_array_check_index_set(0)]=gml_Script_s_exhibition_wipe_list(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_roster[__yy_gml_array_check_index(0,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_roster)]);yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_roster[__yy_gml_array_check_index_set(1)]=gml_Script_s_exhibition_wipe_list(_inst,_other,yyInst(_inst, _other,YYASSET_REF(0x00000069)).gmlteam_roster[__yy_gml_array_check_index(1,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_roster)]);gml_Script_exh_refresh_roster_from_save(_inst,_other,0,global.gmlexh_teamset_p0);gml_Script_exh_refresh_roster_from_save(_inst,_other,1,global.gmlexh_teamset_p1);gml_Script_slog_roster(_inst,_other,"QUIT team_roster[0]",0);gml_Script_slog_roster(_inst,_other,"QUIT team_roster[1]",1);gml_Script_slog(_inst,_other,gml_Script_roster_short_desc_tag(_inst,_other,global.gmlexh_roster_p0, "QUIT exh_roster_p0"));gml_Script_slog(_inst,_other,gml_Script_roster_short_desc_tag(_inst,_other,global.gmlexh_roster_p1,"QUIT exh_roster_p1"));}}function gml_GlobalScript_s_get_human_fixture_next(_inst,_other){(_inst.gmls_get_human_fixture_next=__yy_method(_inst,gml_Script_s_get_human_fixture_next));}function gml_Script_s_get_human_fixture_next(_inst,_other){{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){return gml_Script_s_get_next_college_human_fixture(_inst,_other);};{var __yy__v886=GetWithArray(YYASSET_REF(0x00000062)); for(var __yy__v887 in __yy__v886){if(!__yy__v886.hasOwnProperty(__yy__v887))continue;var __yy__v888=__yy__v886[__yy__v887];{var gmlf=0;for(;yyfless(gmlf,ds_list_size(__yy__v888.gmlfixturelist));(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf),g_yyPrePostObject__)){{var gmlfix=ds_list_find_value(__yy__v888.gmlfixturelist,gmlf);if((yyGetBool(gmlfix))&&(yyGetBool(yyfequal(ds_map_find_value(gmlfix,"human_win"),"unplayed")))){return gmlfix;};}};}}};return(-4);}}function gml_GlobalScript_s_count_remaining_fixtures(_inst, _other){(_inst.gmls_count_remaining_fixtures=__yy_method(_inst,gml_Script_s_count_remaining_fixtures));}function gml_Script_s_count_remaining_fixtures(_inst,_other){{{var __yy__v889=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v890 in __yy__v889){if(!__yy__v889.hasOwnProperty(__yy__v890))continue;var __yy__v891=__yy__v889[__yy__v890];{var gmlcount=0;var gmlf=0;for(;yyfless(gmlf,ds_list_size(__yy__v891.gmlfixturelist));(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf), g_yyPrePostObject__)){{var gmlfix=ds_list_find_value(__yy__v891.gmlfixturelist,gmlf);if((yyGetBool(gmlfix))&&(yyGetBool(yyfequal(ds_map_find_value(gmlfix,"human_win"),"unplayed")))){(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__);};}};return gmlcount;}}};}}function gml_GlobalScript_s_get_division_winner(_inst,_other,argument0,argument1){(_inst.gmls_get_division_winner=__yy_method(_inst,gml_Script_s_get_division_winner));}function gml_Script_s_get_division_winner(_inst, _other,argument0,argument1){{var gmlconf=argument0;var gmldivision=argument1;var gmlteams_div=ds_list_create();var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteamlist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlteam=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteamlist,gmli);if((yyGetBool(yyfequal(real(ds_map_find_value(gmlteam,"conference")),gmlconf)))&&(yyGetBool(yyfequal(real(ds_map_find_value(gmlteam, "division")),gmldivision)))){{ds_list_add(gmlteams_div,gmlteam);};};}};gmlteams_div=gml_Script_s_sort_teams(_inst,_other,gmlteams_div,0,false);var gmlteam=ds_list_find_value(gmlteams_div,0);ds_list_destroy(gmlteams_div);gmlteams_div=(-1);return gmlteam;}}function gml_GlobalScript_s_get_team_position_by_id(_inst,_other,argument0){(_inst.gmls_get_team_position_by_id=__yy_method(_inst,gml_Script_s_get_team_position_by_id));}function gml_Script_s_get_team_position_by_id(_inst,_other,argument0){{var gmltmap=gml_Script_s_get_team_by_id(_inst, _other,argument0);var gmlconf=ds_map_find_value(gmltmap,"conference");var gmldivision=ds_map_find_value(gmltmap,"division");var gmlteams_div=ds_list_create();var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteamlist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlteam=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteamlist,gmli);if((yyGetBool(yyfequal(real(ds_map_find_value(gmlteam, "conference")),gmlconf)))&&(yyGetBool(yyfequal(real(ds_map_find_value(gmlteam,"division")),gmldivision)))){{ds_list_add(gmlteams_div,gmlteam);};};}};gmlteams_div=gml_Script_s_sort_teams(_inst,_other,gmlteams_div,0,false);var gmlretval=1;if(yyfequal(ds_list_find_value(gmlteams_div,0),gmltmap)){gmlretval=1;};if(yyfequal(ds_list_find_value(gmlteams_div,1),gmltmap)){gmlretval=2;};if(yyfequal(ds_list_find_value(gmlteams_div,2),gmltmap)){gmlretval=3;};if(yyfequal(ds_list_find_value(gmlteams_div,3),gmltmap)){ gmlretval=4;};ds_list_destroy(gmlteams_div);gmlteams_div=(-1);return gmlretval;}}function gml_GlobalScript_s_get_division_winner_name(_inst,_other,argument0,argument1,argument2){(_inst.gmls_get_division_winner_name=__yy_method(_inst,gml_Script_s_get_division_winner_name));}function gml_Script_s_get_division_winner_name(_inst,_other,argument0,argument1,argument2){{var gmlconf=argument0;var gmldivision=argument1;var gmltla=argument2;var gmlteam=gml_Script_s_get_division_winner(_inst,_other,gmlconf,gmldivision); var ___sw618___=gmltla;var ___swc619___=-1;if(yyCompareVal(___sw618___,false,g_GMLMathEpsilon,false)==0){___swc619___=0;}else if(yyCompareVal(___sw618___,true,g_GMLMathEpsilon,false)==0){___swc619___=1;}switch(___swc619___){case 0:{return ds_map_find_value(gmlteam,"name");break;}case 1:{return ds_map_find_value(gmlteam,"tla");break;}};}}function gml_GlobalScript_s_get_division_winner_by_seed(_inst,_other){(_inst.gmls_get_division_winner_by_seed=__yy_method(_inst,gml_Script_s_get_division_winner_by_seed)); }function gml_Script_s_get_division_winner_by_seed(_inst,_other,argument0,argument1){{var gmldiv_winners=ds_list_create();ds_list_add(gmldiv_winners,gml_Script_s_get_division_winner(_inst,_other,argument0,0));ds_list_add(gmldiv_winners,gml_Script_s_get_division_winner(_inst,_other,argument0,1));ds_list_add(gmldiv_winners,gml_Script_s_get_division_winner(_inst,_other,argument0,2));ds_list_add(gmldiv_winners,gml_Script_s_get_division_winner(_inst,_other,argument0,3));gmldiv_winners=gml_Script_s_sort_teams(_inst, _other,gmldiv_winners,0,false);var gmlteam=ds_list_find_value(gmldiv_winners,yyfminus(__yy_gml_errCheck(argument1),1));ds_list_destroy(gmldiv_winners);gmldiv_winners=(-1);return gmlteam;}}function gml_GlobalScript_s_get_division_winner_name_by_seed(_inst,_other,argument0,argument1,argument2){(_inst.gmls_get_division_winner_name_by_seed=__yy_method(_inst,gml_Script_s_get_division_winner_name_by_seed));}function gml_Script_s_get_division_winner_name_by_seed(_inst,_other,argument0,argument1,argument2){ {var gmlconf=argument0;var gmlseed=argument1;var gmltla=argument2;var gmlteam=gml_Script_s_get_division_winner_by_seed(_inst,_other,gmlconf,gmlseed);var ___sw622___=gmltla;var ___swc623___=-1;if(yyCompareVal(___sw622___,false,g_GMLMathEpsilon,false)==0){___swc623___=0;}else if(yyCompareVal(___sw622___,true,g_GMLMathEpsilon,false)==0){___swc623___=1;}switch(___swc623___){case 0:{return ds_map_find_value(gmlteam,"name");break;}case 1:{return ds_map_find_value(gmlteam,"tla");break;}};}}function gml_GlobalScript_s_skip_to_week(_inst, _other){(_inst.gmls_skip_to_week=__yy_method(_inst,gml_Script_s_skip_to_week));}function gml_Script_s_skip_to_week(_inst,_other,argument0){{gml_Script_slog(_inst,_other,yyfplus(yyfplus("s_skip_to_week ",__yy_gml_errCheck(string(argument0)))," "));{var __yy__v892=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v893 in __yy__v892){if(!__yy__v892.hasOwnProperty(__yy__v893))continue;var __yy__v894=__yy__v892[__yy__v893];{do {{gml_Script_s_do_schedule(__yy__v894,_inst,true);(g_yyPrePostObject__=__yy__v894.gmlweek, __yy__v894.gmlweek=(g_yyPrePostObject__ instanceof Long?__yy__v894.gmlweek.add(1):++__yy__v894.gmlweek),g_yyPrePostObject__);}}while(!(yyfequal(__yy__v894.gmlweek,argument0)));__yy__v894.gmldraft_round=4;}}};}}function gml_GlobalScript_s_clear_playoff_fixtures(_inst,_other){(_inst.gmls_clear_playoff_fixtures=__yy_method(_inst,gml_Script_s_clear_playoff_fixtures));}function gml_Script_s_clear_playoff_fixtures(_inst,_other){{if(yyGetBool(ds_exists(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayoffs, 2))){{var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayoffs));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_map_destroy(ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayoffs,gmli));ds_list_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayoffs,gmli,(-1));}};ds_list_clear(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayoffs);};};}}function gml_GlobalScript_s_update_team_edit_buttons(_inst, _other){(_inst.gmls_update_team_edit_buttons=__yy_method(_inst,gml_Script_s_update_team_edit_buttons));}function gml_Script_s_update_team_edit_buttons(_inst,_other){{gml_Script_slog(_inst,_other,yyfplus("s_update_team_edit_buttons:",__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmledit_conf))));var gmlb=0;var gmlt=0;for(;yyfless(gmlt,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteamlist));(g_yyPrePostObject__=gmlt,gmlt=(g_yyPrePostObject__ instanceof Long?gmlt.add(1):++gmlt), g_yyPrePostObject__)){{var gmlteam=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteamlist,gmlt);if(yyfequal(real(ds_map_find_value(gmlteam,"conference")),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmledit_conf)){{yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).gmltext=ds_map_find_value(gmlteam,"name");yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).gmluid=real(ds_map_find_value(gmlteam,"uid"));(g_yyPrePostObject__=gmlb, gmlb=(g_yyPrePostObject__ instanceof Long?gmlb.add(1):++gmlb),g_yyPrePostObject__);};};}};var ___sw626___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmledit_conf;var ___swc627___=-1;if(yyCompareVal(___sw626___,0,g_GMLMathEpsilon,false)==0){___swc627___=0;}else if(yyCompareVal(___sw626___,1,g_GMLMathEpsilon,false)==0){___swc627___=1;}switch(___swc627___){case 0:{yyInst(_inst,_other,100554).gmlcolour=global.gmlc_primary;yyInst(_inst,_other,100553).gmlcolour=global.gmlc_background;yyInst(_inst,_other,100560).gmltext=yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlname_div1;yyInst(_inst,_other,100563).gmltext=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_div2;yyInst(_inst,_other,100561).gmltext=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_div3;yyInst(_inst,_other,100562).gmltext=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_div4;break;}case 1:{yyInst(_inst,_other,100554).gmlcolour=global.gmlc_background;yyInst(_inst,_other,100553).gmlcolour=global.gmlc_primary;yyInst(_inst,_other,100560).gmltext=yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlname_div1b;yyInst(_inst,_other,100563).gmltext=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_div2b;yyInst(_inst,_other,100561).gmltext=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_div3b;yyInst(_inst,_other,100562).gmltext=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_div4b;break;}};yyInst(_inst,_other,100554).gmltext=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_conf1;yyInst(_inst,_other,100553).gmltext=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_conf2; }}function gml_GlobalScript_s_set_up_edit_screen(_inst,_other){(_inst.gmls_set_up_edit_screen=__yy_method(_inst,gml_Script_s_set_up_edit_screen));}function gml_Script_s_set_up_edit_screen(_inst,_other){{{var __yy__v895=GetWithArray(YYASSET_REF(0x00000082));for(var __yy__v896 in __yy__v895){if(!__yy__v895.hasOwnProperty(__yy__v896))continue;var __yy__v897=__yy__v895[__yy__v896];{yyInst(_inst,_other,100112).gmlcolour=global.gmlc_background;yyInst(_inst,_other,100113).gmlcolour=global.gmlc_background;yyInst(_inst, _other,100114).gmlcolour=global.gmlc_background;yyInst(_inst,_other,100117).gmlcolour=global.gmlc_background;var ___sw630___=__yy__v897.gmlkittype;var ___swc631___=-1;if(yyCompareVal(___sw630___,0,g_GMLMathEpsilon,false)==0){___swc631___=0;}else if(yyCompareVal(___sw630___,1,g_GMLMathEpsilon,false)==0){___swc631___=1;}else if(yyCompareVal(___sw630___,2,g_GMLMathEpsilon,false)==0){___swc631___=2;}else if(yyCompareVal(___sw630___,3,g_GMLMathEpsilon,false)==0){___swc631___=3;}switch(___swc631___){case 0:{ yyInst(_inst,_other,100112).gmlcolour=global.gmlc_primary;break;}case 1:{yyInst(_inst,_other,100113).gmlcolour=global.gmlc_primary;break;}case 2:{yyInst(_inst,_other,100114).gmlcolour=global.gmlc_primary;break;}case 3:{yyInst(_inst,_other,100117).gmlcolour=global.gmlc_primary;break;}};yyInst(_inst,_other,100089).gmltext=yyInst(_inst,_other,__yy__v897.gmlcurrent_uni).gmlname;yyInst(_inst,_other,100087).gmltext=gml_Script_s_load_team_detail(__yy__v897,_inst,ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmledit_team, "uid"),"name");yyInst(_inst,_other,100084).gmltext=yyInst(_inst,_other,__yy__v897.gmlcurrent_uni).gmlname;yyInst(_inst,_other,100085).gmltext=yyInst(_inst,_other,__yy__v897.gmlcurrent_uni).gmltla;yyInst(_inst,_other,100076).gmltext=string(yyInst(_inst,_other,__yy__v897.gmlcurrent_uni).gmlrainfall);yyInst(_inst,_other,100077).gmltext=string(yyInst(_inst,_other,__yy__v897.gmlcurrent_uni).gmlsnowfall);yyInst(_inst,_other,100078).gmlstate=yyInst(_inst,_other,__yy__v897.gmlcurrent_uni).gmlroof;yyInst(_inst, _other,100096).gmltext=string_upper(string_replace_all(yyInst(_inst,_other,__yy__v897.gmlcurrent_uni).gmlhex_helmet,"$",""));yyInst(_inst,_other,100099).gmltext=string_upper(string_replace_all(yyInst(_inst,_other,__yy__v897.gmlcurrent_uni).gmlhex_logo,"$",""));yyInst(_inst,_other,100097).gmltext=string_upper(string_replace_all(yyInst(_inst,_other,__yy__v897.gmlcurrent_uni).gmlhex_shirt,"$",""));yyInst(_inst,_other,100098).gmltext=string_upper(string_replace_all(yyInst(_inst,_other,__yy__v897.gmlcurrent_uni).gmlhex_sleeve, "$",""));yyInst(_inst,_other,100100).gmltext=string_upper(string_replace_all(yyInst(_inst,_other,__yy__v897.gmlcurrent_uni).gmlhex_pants,"$",""));yyInst(_inst,_other,100101).gmltext=string_upper(string_replace_all(yyInst(_inst,_other,__yy__v897.gmlcurrent_uni).gmlhex_stripe,"$",""));yyInst(_inst,_other,100102).gmltext=string_upper(string_replace_all(yyInst(_inst,_other,__yy__v897.gmlcurrent_uni).gmlhex_socks1,"$",""));yyInst(_inst,_other,100103).gmltext=string_upper(string_replace_all(yyInst(_inst, _other,__yy__v897.gmlcurrent_uni).gmlhex_socks2,"$",""));yyInst(_inst,_other,100079).gmltext=string_upper(string_replace_all(yyInst(_inst,_other,__yy__v897.gmlcurrent_uni).gmlhex_endzone,"$",""));yyInst(_inst,_other,100104).gmlcolour=gml_Script_s_rgb_to_bgr(__yy__v897,_inst,gml_Script_s_hex_string_to_col(__yy__v897,_inst,yyInst(_inst,_other,__yy__v897.gmlcurrent_uni).gmlhex_helmet));yyInst(_inst,_other,100105).gmlcolour=gml_Script_s_rgb_to_bgr(__yy__v897,_inst,gml_Script_s_hex_string_to_col(__yy__v897, _inst,yyInst(_inst,_other,__yy__v897.gmlcurrent_uni).gmlhex_logo));yyInst(_inst,_other,100106).gmlcolour=gml_Script_s_rgb_to_bgr(__yy__v897,_inst,gml_Script_s_hex_string_to_col(__yy__v897,_inst,yyInst(_inst,_other,__yy__v897.gmlcurrent_uni).gmlhex_shirt));yyInst(_inst,_other,100107).gmlcolour=gml_Script_s_rgb_to_bgr(__yy__v897,_inst,gml_Script_s_hex_string_to_col(__yy__v897,_inst,yyInst(_inst,_other,__yy__v897.gmlcurrent_uni).gmlhex_sleeve));yyInst(_inst,_other,100108).gmlcolour=gml_Script_s_rgb_to_bgr(__yy__v897, _inst,gml_Script_s_hex_string_to_col(__yy__v897,_inst,yyInst(_inst,_other,__yy__v897.gmlcurrent_uni).gmlhex_pants));yyInst(_inst,_other,100109).gmlcolour=gml_Script_s_rgb_to_bgr(__yy__v897,_inst,gml_Script_s_hex_string_to_col(__yy__v897,_inst,yyInst(_inst,_other,__yy__v897.gmlcurrent_uni).gmlhex_stripe));yyInst(_inst,_other,100110).gmlcolour=gml_Script_s_rgb_to_bgr(__yy__v897,_inst,gml_Script_s_hex_string_to_col(__yy__v897,_inst,yyInst(_inst,_other,__yy__v897.gmlcurrent_uni).gmlhex_socks1));yyInst(_inst, _other,100111).gmlcolour=gml_Script_s_rgb_to_bgr(__yy__v897,_inst,gml_Script_s_hex_string_to_col(__yy__v897,_inst,yyInst(_inst,_other,__yy__v897.gmlcurrent_uni).gmlhex_socks2));yyInst(_inst,_other,100080).gmlcolour=gml_Script_s_rgb_to_bgr(__yy__v897,_inst,gml_Script_s_hex_string_to_col(__yy__v897,_inst,yyInst(_inst,_other,__yy__v897.gmlcurrent_uni).gmlhex_endzone));}}};}}function gml_GlobalScript_s_color_picker(_inst,_other){(_inst.gmls_color_picker=__yy_method(_inst,gml_Script_s_color_picker));} function gml_Script_s_color_picker(_inst,_other){{var gmlbg=instance_create_layer(0,0,"PopUps",YYASSET_REF(0x0000004F));var gmlpicker=instance_create_layer(yyfdivide(__yy_gml_errCheck(display_get_gui_width()),2),yyfdivide(__yy_gml_errCheck(display_get_gui_height()),2),"PopUps",YYASSET_REF(0x00000084));yyInst(_inst,_other,gmlbg).gmlalpha=0.9;yyInst(_inst,_other,gmlpicker).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);}}// slog ("Team "+string(teamid_away)+" @ Team "+string(teamid_home)); function gml_GlobalScript_s_set_up_uniforms(_inst, _other){(_inst.gmls_set_up_uniforms=__yy_method(_inst,gml_Script_s_set_up_uniforms));}function gml_Script_s_set_up_uniforms(_inst,_other){{var gmlfixture=gml_Script_s_get_human_fixture_next(_inst,_other);var gmlteamid_away=ds_map_find_value(gmlfixture,"away_team");var gmlteamid_home=ds_map_find_value(gmlfixture,"home_team");gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus("Team ",__yy_gml_errCheck(string(gmlteamid_away)))," @ Team "),__yy_gml_errCheck(string(gmlteamid_home))));yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlteam=__yy_gml_array_check(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteam,595587002);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteam[__yy_gml_array_check_index_set(0)]=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteamlist,gmlteamid_away);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteam[__yy_gml_array_check_index_set(1)]=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteamlist,gmlteamid_home);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayerteamindex=0; if(yyfequal(gmlteamid_home,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id)){yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayerteamindex=1;};}}function gml_GlobalScript_s_set_up_uniforms_training(_inst,_other){(_inst.gmls_set_up_uniforms_training=__yy_method(_inst,gml_Script_s_set_up_uniforms_training));}function gml_Script_s_set_up_uniforms_training(_inst,_other){{var gmlteamid_away=gml_Script_s_get_random_team_id(_inst,_other);var gmlteamid_home=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id; yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteam=__yy_gml_array_check(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteam,595587002);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteam[__yy_gml_array_check_index_set(0)]=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteamlist,gmlteamid_away);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteam[__yy_gml_array_check_index_set(1)]=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteamlist,gmlteamid_home);yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlplayerteamindex=1;var gmlstr_helmet1=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteam[__yy_gml_array_check_index(0,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteam)],"colhelmet");var gmlstr_shirt1=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteam[__yy_gml_array_check_index(0,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteam)],"colshirt");var gmlstr_pants1=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteam[__yy_gml_array_check_index(0, yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteam)],"colpants");var gmlstr_helmet2=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteam[__yy_gml_array_check_index(1,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteam)],"colhelmet");var gmlstr_shirt2=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteam[__yy_gml_array_check_index(1,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteam)],"colshirt");var gmlstr_pants2=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteam[__yy_gml_array_check_index(1, yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteam)],"colpants");if(yyfequal(gmlstr_helmet1,gmlstr_helmet2)){gmlstr_helmet1=gmlstr_shirt1;};if(yyfequal(gmlstr_shirt1,gmlstr_shirt2)){gmlstr_shirt1=gmlstr_pants1;};if(yyfequal(gmlstr_pants1,gmlstr_pants2)){gmlstr_pants1=gmlstr_helmet1;};var gmlcolhelmet=gml_Script_s_hex_string_to_col(_inst,_other,gmlstr_helmet2);var gmlcolshirt=gml_Script_s_hex_string_to_col(_inst,_other,gmlstr_shirt2);var gmlcolpants=gml_Script_s_hex_string_to_col(_inst,_other,gmlstr_pants2); yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_helmet_home=__yy_gml_array_check(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_helmet_home,2715351469);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_helmet_home[__yy_gml_array_check_index_set(0)]=yyfdivide(__yy_gml_errCheck(colour_get_blue(gmlcolhelmet)),256);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_helmet_home[__yy_gml_array_check_index_set(1)]=yyfdivide(__yy_gml_errCheck(colour_get_green(gmlcolhelmet)),256);yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlcol_helmet_home[__yy_gml_array_check_index_set(2)]=yyfdivide(__yy_gml_errCheck(colour_get_red(gmlcolhelmet)),256);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_shirt_home=__yy_gml_array_check(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_shirt_home,1730302392);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_shirt_home[__yy_gml_array_check_index_set(0)]=yyfdivide(__yy_gml_errCheck(colour_get_blue(gmlcolshirt)),256);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_shirt_home[__yy_gml_array_check_index_set(1)]=yyfdivide(__yy_gml_errCheck(colour_get_green(gmlcolshirt)), 256);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_shirt_home[__yy_gml_array_check_index_set(2)]=yyfdivide(__yy_gml_errCheck(colour_get_red(gmlcolshirt)),256);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_sleeve_home=__yy_gml_array_check(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_sleeve_home,1993796318);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_sleeve_home[__yy_gml_array_check_index_set(0)]=yyfdivide(__yy_gml_errCheck(colour_get_blue(gmlcolshirt)),300);yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlcol_sleeve_home[__yy_gml_array_check_index_set(1)]=yyfdivide(__yy_gml_errCheck(colour_get_green(gmlcolshirt)),300);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_sleeve_home[__yy_gml_array_check_index_set(2)]=yyfdivide(__yy_gml_errCheck(colour_get_red(gmlcolshirt)),300);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_pants_home=__yy_gml_array_check(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_pants_home,1093361363);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_pants_home[__yy_gml_array_check_index_set(0)]=yyfdivide(__yy_gml_errCheck(colour_get_blue(gmlcolpants)), 256);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_pants_home[__yy_gml_array_check_index_set(1)]=yyfdivide(__yy_gml_errCheck(colour_get_green(gmlcolpants)),256);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_pants_home[__yy_gml_array_check_index_set(2)]=yyfdivide(__yy_gml_errCheck(colour_get_red(gmlcolpants)),256);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_pants_home_b=__yy_gml_array_check(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_pants_home_b,3788345203);yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlcol_pants_home_b[__yy_gml_array_check_index_set(0)]=yyfdivide(__yy_gml_errCheck(colour_get_blue(gmlcolpants)),300);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_pants_home_b[__yy_gml_array_check_index_set(1)]=yyfdivide(__yy_gml_errCheck(colour_get_green(gmlcolpants)),300);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_pants_home_b[__yy_gml_array_check_index_set(2)]=yyfdivide(__yy_gml_errCheck(colour_get_red(gmlcolpants)),300);gmlcolhelmet=gml_Script_s_hex_string_to_col(_inst, _other,gmlstr_helmet1);gmlcolshirt=gml_Script_s_hex_string_to_col(_inst,_other,gmlstr_shirt1);gmlcolpants=gml_Script_s_hex_string_to_col(_inst,_other,gmlstr_pants1);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_helmet_away=__yy_gml_array_check(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_helmet_away,4256399509);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_helmet_away[__yy_gml_array_check_index_set(0)]=yyfdivide(__yy_gml_errCheck(colour_get_blue(gmlcolhelmet)),256);yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlcol_helmet_away[__yy_gml_array_check_index_set(1)]=yyfdivide(__yy_gml_errCheck(colour_get_green(gmlcolhelmet)),256);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_helmet_away[__yy_gml_array_check_index_set(2)]=yyfdivide(__yy_gml_errCheck(colour_get_red(gmlcolhelmet)),256);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_shirt_away=__yy_gml_array_check(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_shirt_away,994650240);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_shirt_away[__yy_gml_array_check_index_set(0)]=yyfdivide(__yy_gml_errCheck(colour_get_blue(gmlcolshirt)), 256);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_shirt_away[__yy_gml_array_check_index_set(1)]=yyfdivide(__yy_gml_errCheck(colour_get_green(gmlcolshirt)),256);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_shirt_away[__yy_gml_array_check_index_set(2)]=yyfdivide(__yy_gml_errCheck(colour_get_red(gmlcolshirt)),256);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_sleeve_away=__yy_gml_array_check(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_sleeve_away,717067238);yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlcol_sleeve_away[__yy_gml_array_check_index_set(0)]=yyfdivide(__yy_gml_errCheck(colour_get_blue(gmlcolshirt)),300);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_sleeve_away[__yy_gml_array_check_index_set(1)]=yyfdivide(__yy_gml_errCheck(colour_get_green(gmlcolshirt)),300);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_sleeve_away[__yy_gml_array_check_index_set(2)]=yyfdivide(__yy_gml_errCheck(colour_get_red(gmlcolshirt)),300);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_pants_away=__yy_gml_array_check(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlcol_pants_away,490743787);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_pants_away[__yy_gml_array_check_index_set(0)]=yyfdivide(__yy_gml_errCheck(colour_get_blue(gmlcolpants)),256);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_pants_away[__yy_gml_array_check_index_set(1)]=yyfdivide(__yy_gml_errCheck(colour_get_green(gmlcolpants)),256);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_pants_away[__yy_gml_array_check_index_set(2)]=yyfdivide(__yy_gml_errCheck(colour_get_red(gmlcolpants)), 256);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_pants_away_b=__yy_gml_array_check(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_pants_away_b,1806082897);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_pants_away_b[__yy_gml_array_check_index_set(0)]=yyfdivide(__yy_gml_errCheck(colour_get_blue(gmlcolpants)),300);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_pants_away_b[__yy_gml_array_check_index_set(1)]=yyfdivide(__yy_gml_errCheck(colour_get_green(gmlcolpants)),300);yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlcol_pants_away_b[__yy_gml_array_check_index_set(2)]=yyfdivide(__yy_gml_errCheck(colour_get_red(gmlcolpants)),300);}}function gml_GlobalScript_s_set_up_uniform_profile(_inst,_other){(_inst.gmls_set_up_uniform_profile=__yy_method(_inst,gml_Script_s_set_up_uniform_profile));}function gml_Script_s_set_up_uniform_profile(_inst,_other,argument0){{if(yyGetBool(argument0)){{_inst.gmlhelmet=yyInst(_inst,_other,argument0).gmlhelmet;_inst.gmlshirt=yyInst(_inst,_other,argument0).gmlshirt; _inst.gmlpants=yyInst(_inst,_other,argument0).gmlpants;};}else {{_inst.gmlhelmet=__yy_gml_array_check(_inst.gmlhelmet,3666812894);_inst.gmlhelmet[__yy_gml_array_check_index_set(0)]=yyfdivide(__yy_gml_errCheck(colour_get_blue(8421504)),256);_inst.gmlhelmet[__yy_gml_array_check_index_set(1)]=yyfdivide(__yy_gml_errCheck(colour_get_green(8421504)),256);_inst.gmlhelmet[__yy_gml_array_check_index_set(2)]=yyfdivide(__yy_gml_errCheck(colour_get_red(8421504)),256);_inst.gmlshirt=__yy_gml_array_check(_inst.gmlshirt, 1027333011);_inst.gmlshirt[__yy_gml_array_check_index_set(0)]=yyfdivide(__yy_gml_errCheck(colour_get_blue(12632256)),256);_inst.gmlshirt[__yy_gml_array_check_index_set(1)]=yyfdivide(__yy_gml_errCheck(colour_get_green(12632256)),256);_inst.gmlshirt[__yy_gml_array_check_index_set(2)]=yyfdivide(__yy_gml_errCheck(colour_get_red(12632256)),256);_inst.gmlpants=__yy_gml_array_check(_inst.gmlpants,3194782232);_inst.gmlpants[__yy_gml_array_check_index_set(0)]=yyfdivide(__yy_gml_errCheck(colour_get_blue(0)), 256);_inst.gmlpants[__yy_gml_array_check_index_set(1)]=yyfdivide(__yy_gml_errCheck(colour_get_green(0)),256);_inst.gmlpants[__yy_gml_array_check_index_set(2)]=yyfdivide(__yy_gml_errCheck(colour_get_red(0)),256);};};}}function gml_GlobalScript_s_shader_get_uniforms(_inst,_other){(_inst.gmls_shader_get_uniforms=__yy_method(_inst,gml_Script_s_shader_get_uniforms));}function gml_Script_s_shader_get_uniforms(_inst,_other){{return;global.gmlcolorHelmet=shader_get_uniform(YYASSET_REF(0x0A000000),"colorHelmet"); global.gmlcolorLogo=shader_get_uniform(YYASSET_REF(0x0A000000),"colorLogo");global.gmlcolorShirt=shader_get_uniform(YYASSET_REF(0x0A000000),"colorShirt");global.gmlcolorSleeve=shader_get_uniform(YYASSET_REF(0x0A000000),"colorSleeve");global.gmlcolorPants=shader_get_uniform(YYASSET_REF(0x0A000000),"colorPants");global.gmlcolorPants_b=shader_get_uniform(YYASSET_REF(0x0A000000),"colorPants_b");global.gmlcolorStripe=shader_get_uniform(YYASSET_REF(0x0A000000),"colorStripe");global.gmlcolorSocks=shader_get_uniform(YYASSET_REF(0x0A000000), "colorSocks");global.gmlcolorSocks_b=shader_get_uniform(YYASSET_REF(0x0A000000),"colorSocks_b");global.gmlcolorSkin=shader_get_uniform(YYASSET_REF(0x0A000000),"colorSkin");global.gmlcolorCleats=shader_get_uniform(YYASSET_REF(0x0A000000),"colorCleats");global.gmlreplaceHelmet=shader_get_uniform(YYASSET_REF(0x0A000000),"replaceHelmet");global.gmlreplaceLogo=shader_get_uniform(YYASSET_REF(0x0A000000),"replaceLogo");global.gmlreplaceShirt=shader_get_uniform(YYASSET_REF(0x0A000000),"replaceShirt");global.gmlreplaceSleeve=shader_get_uniform(YYASSET_REF(0x0A000000), "replaceSleeve");global.gmlreplacePants=shader_get_uniform(YYASSET_REF(0x0A000000),"replacePants");global.gmlreplacePants_b=shader_get_uniform(YYASSET_REF(0x0A000000),"replacePants_b");global.gmlreplaceStripe=shader_get_uniform(YYASSET_REF(0x0A000000),"replaceStripe");global.gmlreplaceSocks=shader_get_uniform(YYASSET_REF(0x0A000000),"replaceSocks");global.gmlreplaceSocks_b=shader_get_uniform(YYASSET_REF(0x0A000000),"replaceSocks_b");global.gmlreplaceSkin=shader_get_uniform(YYASSET_REF(0x0A000000), "replaceSkin");global.gmlreplaceCleats=shader_get_uniform(YYASSET_REF(0x0A000000),"replaceCleats");}}function gml_GlobalScript_s_shader_set_uniforms(_inst,_other){(_inst.gmls_shader_set_uniforms=__yy_method(_inst,gml_Script_s_shader_set_uniforms));(_inst.gmls_blackwhite_colour_hack=__yy_method(_inst,gml_Script_s_blackwhite_colour_hack));}function gml_Script_s_shader_set_uniforms(_inst,_other){{shader_set(YYASSET_REF(0x0A000000));shader_set_uniform_f(global.gmlcolorHelmet,1,0,0);shader_set_uniform_f(global.gmlcolorLogo, 0.5,0,0);shader_set_uniform_f(global.gmlcolorShirt,0.5,0.5,1);shader_set_uniform_f(global.gmlcolorSleeve,0.5,0.5,0.5);shader_set_uniform_f(global.gmlcolorPants,1,0,1);shader_set_uniform_f(global.gmlcolorPants_b,0.5,0,0.5);shader_set_uniform_f(global.gmlcolorStripe,0,0,0.5);shader_set_uniform_f(global.gmlcolorSocks,0,1,0);shader_set_uniform_f(global.gmlcolorSocks_b,0,0.5,0);shader_set_uniform_f(global.gmlcolorSkin,0,0,1);shader_set_uniform_f(global.gmlcolorCleats,1,1,0);shader_set_uniform_f(global.gmlreplaceHelmet, _inst.gmlhelmet[__yy_gml_array_check_index(2,_inst.gmlhelmet)],_inst.gmlhelmet[__yy_gml_array_check_index(1,_inst.gmlhelmet)],_inst.gmlhelmet[__yy_gml_array_check_index(0,_inst.gmlhelmet)]);shader_set_uniform_f(global.gmlreplaceLogo,_inst.gmllogo[__yy_gml_array_check_index(2,_inst.gmllogo)],_inst.gmllogo[__yy_gml_array_check_index(1,_inst.gmllogo)],_inst.gmllogo[__yy_gml_array_check_index(0,_inst.gmllogo)]);shader_set_uniform_f(global.gmlreplaceShirt,_inst.gmlshirt[__yy_gml_array_check_index(2,_inst.gmlshirt)], _inst.gmlshirt[__yy_gml_array_check_index(1,_inst.gmlshirt)],_inst.gmlshirt[__yy_gml_array_check_index(0,_inst.gmlshirt)]);shader_set_uniform_f(global.gmlreplaceSleeve,_inst.gmlsleeve[__yy_gml_array_check_index(2,_inst.gmlsleeve)],_inst.gmlsleeve[__yy_gml_array_check_index(1,_inst.gmlsleeve)],_inst.gmlsleeve[__yy_gml_array_check_index(0,_inst.gmlsleeve)]);shader_set_uniform_f(global.gmlreplacePants,_inst.gmlpants[__yy_gml_array_check_index(2,_inst.gmlpants)],_inst.gmlpants[__yy_gml_array_check_index(1, _inst.gmlpants)],_inst.gmlpants[__yy_gml_array_check_index(0,_inst.gmlpants)]);shader_set_uniform_f(global.gmlreplacePants_b,_inst.gmlpants_b[__yy_gml_array_check_index(2,_inst.gmlpants_b)],_inst.gmlpants_b[__yy_gml_array_check_index(1,_inst.gmlpants_b)],_inst.gmlpants_b[__yy_gml_array_check_index(0,_inst.gmlpants_b)]);shader_set_uniform_f(global.gmlreplaceStripe,_inst.gmlstripe[__yy_gml_array_check_index(2,_inst.gmlstripe)],_inst.gmlstripe[__yy_gml_array_check_index(1,_inst.gmlstripe)],_inst.gmlstripe[__yy_gml_array_check_index(0, _inst.gmlstripe)]);shader_set_uniform_f(global.gmlreplaceSocks,_inst.gmlsocks1[__yy_gml_array_check_index(2,_inst.gmlsocks1)],_inst.gmlsocks1[__yy_gml_array_check_index(1,_inst.gmlsocks1)],_inst.gmlsocks1[__yy_gml_array_check_index(0,_inst.gmlsocks1)]);shader_set_uniform_f(global.gmlreplaceSocks_b,_inst.gmlsocks2[__yy_gml_array_check_index(2,_inst.gmlsocks2)],_inst.gmlsocks2[__yy_gml_array_check_index(1,_inst.gmlsocks2)],_inst.gmlsocks2[__yy_gml_array_check_index(0,_inst.gmlsocks2)]);shader_set_uniform_f(global.gmlreplaceSkin, _inst.gmlcol_skin_r,_inst.gmlcol_skin_g,_inst.gmlcol_skin_b);shader_set_uniform_f(global.gmlreplaceCleats,_inst.gmlcleats[__yy_gml_array_check_index(2,_inst.gmlcleats)],_inst.gmlcleats[__yy_gml_array_check_index(1,_inst.gmlcleats)],_inst.gmlcleats[__yy_gml_array_check_index(0,_inst.gmlcleats)]);}}function gml_Script_s_blackwhite_colour_hack(_inst,_other,argument0){{if(yyfequal(yyfplus(yyfplus(__yy_gml_errCheck(argument0[__yy_gml_array_check_index(0,argument0)]),__yy_gml_errCheck(argument0[__yy_gml_array_check_index(1, argument0)])),__yy_gml_errCheck(argument0[__yy_gml_array_check_index(2,argument0)])),0)){argument0=__yy_gml_array_check(argument0,682968441);argument0[__yy_gml_array_check_index_set(0)]=0.001;};}}function gml_GlobalScript_s_convert_uniform_colours_all(_inst,_other){(_inst.gmls_convert_uniform_colours_all=__yy_method(_inst,gml_Script_s_convert_uniform_colours_all));}function gml_Script_s_convert_uniform_colours_all(_inst,_other,argument0){{{var __yy__v898=GetWithArray(argument0);for(var __yy__v899 in __yy__v898){ if(!__yy__v898.hasOwnProperty(__yy__v899))continue;var __yy__v900=__yy__v898[__yy__v899];{__yy__v900.gmlhelmet=gml_Script_s_convert_uniform_colour(__yy__v900,_inst,__yy__v900.gmlhelmet,__yy__v900.gmlhex_helmet,256);__yy__v900.gmllogo=gml_Script_s_convert_uniform_colour(__yy__v900,_inst,__yy__v900.gmllogo,__yy__v900.gmlhex_logo,256);__yy__v900.gmlshirt=gml_Script_s_convert_uniform_colour(__yy__v900,_inst,__yy__v900.gmlshirt,__yy__v900.gmlhex_shirt,256);__yy__v900.gmlsleeve=gml_Script_s_convert_uniform_colour(__yy__v900, _inst,__yy__v900.gmlsleeve,__yy__v900.gmlhex_sleeve,256);__yy__v900.gmlpants=gml_Script_s_convert_uniform_colour(__yy__v900,_inst,__yy__v900.gmlpants,__yy__v900.gmlhex_pants,256);__yy__v900.gmlpants_b=gml_Script_s_convert_uniform_colour(__yy__v900,_inst,__yy__v900.gmlpants_b,__yy__v900.gmlhex_pants,300);__yy__v900.gmlstripe=gml_Script_s_convert_uniform_colour(__yy__v900,_inst,__yy__v900.gmlstripe,__yy__v900.gmlhex_stripe,256);__yy__v900.gmlsocks1=gml_Script_s_convert_uniform_colour(__yy__v900,_inst, __yy__v900.gmlsocks1,__yy__v900.gmlhex_socks1,256);__yy__v900.gmlsocks2=gml_Script_s_convert_uniform_colour(__yy__v900,_inst,__yy__v900.gmlsocks2,__yy__v900.gmlhex_socks2,256);__yy__v900.gmlendzone=gml_Script_s_convert_uniform_colour(__yy__v900,_inst,__yy__v900.gmlendzone,__yy__v900.gmlhex_endzone,256);}}};}}function gml_GlobalScript_s_convert_uniform_colour(_inst,_other){(_inst.gmls_convert_uniform_colour=__yy_method(_inst,gml_Script_s_convert_uniform_colour));}function gml_Script_s_convert_uniform_colour(_inst, _other,argument0,argument1,argument2){{argument0=__yy_gml_array_check(argument0,682968441);argument0[__yy_gml_array_check_index_set(0)]=yyfdivide(__yy_gml_errCheck(colour_get_red(gml_Script_s_hex_string_to_col(_inst,_other,argument1))),__yy_gml_errCheck(argument2));argument0[__yy_gml_array_check_index_set(1)]=yyfdivide(__yy_gml_errCheck(colour_get_green(gml_Script_s_hex_string_to_col(_inst,_other,argument1))),__yy_gml_errCheck(argument2));argument0[__yy_gml_array_check_index_set(2)]=yyfdivide(__yy_gml_errCheck(colour_get_blue(gml_Script_s_hex_string_to_col(_inst, _other,argument1))),__yy_gml_errCheck(argument2));return argument0;}}function gml_GlobalScript_s_restore_uniforms_all(_inst,_other){(_inst.gmls_restore_uniforms_all=__yy_method(_inst,gml_Script_s_restore_uniforms_all));}function gml_Script_s_restore_uniforms_all(_inst,_other){{var gmlfile_name=yyfplus(yyfplus("uniforms_custom_",__yy_gml_errCheck(string(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"saveslot")))),".txt");file_delete(gmlfile_name);gml_Script_s_msg_clear(_inst, _other);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_conf1="AFC";yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_conf2="NFC";yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_div1="EAST";yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_div2="WEST";yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_div3="NORTH";yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_div4="SOUTH";yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_div1b="EAST";yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_div2b="WEST"; yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_div3b="NORTH";yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_div4b="SOUTH";gml_Script_s_copy_teamnames_from_uniform_file(_inst,_other,gml_Script_s_uniforms_default_file(_inst,_other));room_goto(YYASSET_REF(0x0300001D));}}function gml_GlobalScript_s_copy_uniforms_slot_a(_inst,_other){(_inst.gmls_copy_uniforms_slot_a=__yy_method(_inst,gml_Script_s_copy_uniforms_slot_a));}function gml_Script_s_copy_uniforms_slot_a(_inst,_other){{gml_Script_s_copy_uniforms_from(_inst, _other,1);gml_Script_s_msg_clear(_inst,_other);gml_Script_s_goto_editor(_inst,_other);}}function gml_GlobalScript_s_copy_uniforms_slot_b(_inst,_other){(_inst.gmls_copy_uniforms_slot_b=__yy_method(_inst,gml_Script_s_copy_uniforms_slot_b));}function gml_Script_s_copy_uniforms_slot_b(_inst,_other){{gml_Script_s_copy_uniforms_from(_inst,_other,2);gml_Script_s_msg_clear(_inst,_other);gml_Script_s_goto_editor(_inst,_other);}}function gml_GlobalScript_s_copy_uniforms_slot_c(_inst,_other){(_inst.gmls_copy_uniforms_slot_c=__yy_method(_inst, gml_Script_s_copy_uniforms_slot_c));}function gml_Script_s_copy_uniforms_slot_c(_inst,_other){{gml_Script_s_copy_uniforms_from(_inst,_other,3);gml_Script_s_msg_clear(_inst,_other);gml_Script_s_goto_editor(_inst,_other);}}function gml_GlobalScript_s_copy_uniforms_slot_d(_inst,_other){(_inst.gmls_copy_uniforms_slot_d=__yy_method(_inst,gml_Script_s_copy_uniforms_slot_d));}function gml_Script_s_copy_uniforms_slot_d(_inst,_other){{gml_Script_s_copy_uniforms_from(_inst,_other,4);gml_Script_s_msg_clear(_inst, _other);gml_Script_s_goto_editor(_inst,_other);}}function gml_GlobalScript_s_set_up_kickoff(_inst,_other){(_inst.gmls_set_up_kickoff=__yy_method(_inst,gml_Script_s_set_up_kickoff));}function gml_Script_s_set_up_kickoff(_inst,_other){{show_debug_message("s_set_up_kickoff");_inst.gmlplaystart_time=g_pBuiltIn.get_current_time();_inst.gmldown=99;global.gmlreplay_do=false;{var __yy__v901=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v902 in __yy__v901){if(!__yy__v901.hasOwnProperty(__yy__v902))continue; var __yy__v903=__yy__v901[__yy__v902];{__yy__v903.alarm=__yy_gml_array_check(__yy__v903.alarm,1448645077);__yy__v903.alarm[__yy_gml_array_check_index_set(0)]=0;gml_Script_s_reset_wind(__yy__v903,_inst);__yy__v903.gmlkicking=3;__yy__v903.gmlscored_by=(-1);__yy__v903.gmlscrimmage=(-15);__yy__v903.gmlx_scrim=yyfplus(1300,__yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(__yy__v903.gmlscrimmage),20),__yy_gml_errCheck(__yy_gml_errCheck(-__yy_gml_errCheck(__yy__v903.gmldrivedir))))));__yy__v903.gmlx_yards=yyfplus(__yy_gml_errCheck(__yy__v903.gmlx_scrim), __yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(__yy__v903.gmlyards),20),__yy_gml_errCheck(__yy__v903.gmldrivedir))));__yy__v903.gmly_scrim=300;__yy__v903.gmlkick_dist=0;gml_Script_s_destroy_match_objects(__yy__v903,_inst);var gmlo=1;for(;yyfless(gmlo,12);(g_yyPrePostObject__=gmlo,gmlo=(g_yyPrePostObject__ instanceof Long?gmlo.add(1):++gmlo),g_yyPrePostObject__)){{instance_create_layer(0,0,"Players",YYASSET_REF(0x0000006C));}};var gmld=1;for(;yyfless(gmld,12);(g_yyPrePostObject__=gmld,gmld=(g_yyPrePostObject__ instanceof Long?gmld.add(1):++gmld), g_yyPrePostObject__)){{instance_create_layer(0,0,"Players",YYASSET_REF(0x0000006D));}};{var __yy__v904=GetWithArray(YYASSET_REF(0x0000006B));for(var __yy__v905 in __yy__v904){if(!__yy__v904.hasOwnProperty(__yy__v905))continue;var __yy__v906=__yy__v904[__yy__v905];gml_Script_s_set_skills_and_skin(__yy__v906,__yy__v903);}};global.gmlmaster_ball=instance_create_layer(0,0,"Ball",YYASSET_REF(0x0000006F));instance_create_layer(0,0,"Ball",YYASSET_REF(0x00000070));}}};}}function gml_GlobalScript_s_copy_uniforms_slot_e(_inst, _other){(_inst.gmls_copy_uniforms_slot_e=__yy_method(_inst,gml_Script_s_copy_uniforms_slot_e));}function gml_Script_s_copy_uniforms_slot_e(_inst,_other){{gml_Script_s_copy_uniforms_from(_inst,_other,5);gml_Script_s_msg_clear(_inst,_other);gml_Script_s_goto_editor(_inst,_other);}}function gml_GlobalScript_s_update_uniform_name(_inst,_other){(_inst.gmls_update_uniform_name=__yy_method(_inst,gml_Script_s_update_uniform_name));}function gml_Script_s_update_uniform_name(_inst,_other){{{var __yy__v907=GetWithArray(YYASSET_REF(0x00000082)); for(var __yy__v908 in __yy__v907){if(!__yy__v907.hasOwnProperty(__yy__v908))continue;var __yy__v909=__yy__v907[__yy__v908];{if(yyfnotequal(string_letters(yyInst(_inst,_other,100084).gmltext),"")){yyInst(_inst,_other,__yy__v909.gmlcurrent_uni).gmlname=yyInst(_inst,_other,100084).gmltext;}else {yyInst(_inst,_other,100084).gmltext=yyInst(_inst,_other,__yy__v909.gmlcurrent_uni).gmlname;};if(yyfnotequal(string_letters(yyInst(_inst,_other,100085).gmltext),"")){yyInst(_inst,_other,__yy__v909.gmlcurrent_uni).gmltla=yyInst(_inst, _other,100085).gmltext;}else {yyInst(_inst,_other,100085).gmltext=yyInst(_inst,_other,__yy__v909.gmlcurrent_uni).gmltla;};var gmlrain=real(string_digits(yyfplus("0",__yy_gml_errCheck(yyInst(_inst,_other,100076).gmltext))));yyInst(_inst,_other,__yy__v909.gmlcurrent_uni).gmlrainfall=clamp(gmlrain,0,100);yyInst(_inst,_other,100076).gmltext=string(yyInst(_inst,_other,__yy__v909.gmlcurrent_uni).gmlrainfall);var gmlsnow=real(string_digits(yyfplus("0",__yy_gml_errCheck(yyInst(_inst,_other,100077).gmltext)))); yyInst(_inst,_other,__yy__v909.gmlcurrent_uni).gmlsnowfall=clamp(gmlsnow,0,100);yyInst(_inst,_other,100077).gmltext=string(yyInst(_inst,_other,__yy__v909.gmlcurrent_uni).gmlsnowfall);yyInst(_inst,_other,__yy__v909.gmlcurrent_uni).gmlroof=yyInst(_inst,_other,100078).gmlstate;}}};}}function gml_GlobalScript_s_copy_teamnames_from_uniform_file(_inst,_other){(_inst.gmls_copy_teamnames_from_uniform_file=__yy_method(_inst,gml_Script_s_copy_teamnames_from_uniform_file));}function gml_Script_s_copy_teamnames_from_uniform_file(_inst, _other,argument0){{gml_Script_slog(_inst,_other,yyfplus("s_copy_teamnames_from_uniform_file:",__yy_gml_errCheck(argument0)));var gmlfile=file_text_open_read(argument0);var gmlkeys=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile);while(!yyGetBool(file_text_eof(gmlfile))){{var gmlvalues=gml_Script_s_split_string(_inst,_other,file_text_read_string(gmlfile));file_text_readln(gmlfile);var gmluid=gmlvalues[__yy_gml_array_check_index(0,gmlvalues)];var gmltmap=gml_Script_s_get_team_by_id(_inst, _other,gmluid);ds_map_set(gmltmap,"name",gmlvalues[__yy_gml_array_check_index(1,gmlvalues)]);ds_map_set(gmltmap,"tla",gmlvalues[__yy_gml_array_check_index(2,gmlvalues)]);}};file_text_close(gmlfile);}}function gml_GlobalScript_s_edit_name(_inst,_other){(_inst.gmls_edit_name=__yy_method(_inst,gml_Script_s_edit_name));}function gml_Script_s_edit_name(_inst,_other,argument0,argument1,argument2){{gml_Script_slog(_inst,_other,"s_edit_name");var gmlbg=instance_create_layer(0,0,"PopUps",YYASSET_REF(0x0000004F)); yyInst(_inst,_other,gmlbg).gmlcolour=global.gmlc_background;yyInst(_inst,_other,gmlbg).gmlalpha=1;var gmltitle=instance_create_layer(yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5),32,"PopUps",YYASSET_REF(0x00000047));yyInst(_inst,_other,gmltitle).gmlty=16;yyInst(_inst,_other,gmltitle).gmltext=gml_Script_s_str(_inst,_other,"ui_Editor");yyInst(_inst,_other,gmltitle).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);var gmltx=yyftime(__yy_gml_errCheck(display_get_gui_width()), 0.4);var gmltxt_1=instance_create_layer(yyfminus(__yy_gml_errCheck(gmltx),10),72,"PopUps",YYASSET_REF(0x0000004B));yyInst(_inst,_other,gmltxt_1).gmltext=argument0;yyInst(_inst,_other,gmltxt_1).gmlhalign=2;yyInst(_inst,_other,gmltxt_1).gmldraw_box=false;yyInst(_inst,_other,gmltxt_1).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmledit_box1=instance_create_layer(gmltx,64,"PopUps",YYASSET_REF(0x00000048));yyInst(_inst,_other,yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmledit_box1).gmlmax_length=5;yyInst(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmledit_box1).image_xscale=10;yyInst(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmledit_box1).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmledit_box1).gmltext=argument1;var gmlbtn_1=instance_create_layer(yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(display_get_gui_width()), 0.33)),45),224,"PopUps",YYASSET_REF(0x00000023));yyInst(_inst,_other,gmlbtn_1).gmltext=gml_Script_s_str(_inst,_other,"ui_Cancel");yyInst(_inst,_other,gmlbtn_1).gmlonClickAction=kgml_Script_s_msg_clear;yyInst(_inst,_other,gmlbtn_1).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);var gmlbtn_2=instance_create_layer(yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(display_get_gui_width()),0.66)),45),224,"PopUps",YYASSET_REF(0x00000023));yyInst(_inst,_other,gmlbtn_2).gmltext=gml_Script_s_str(_inst, _other,"ui_Confirm");yyInst(_inst,_other,gmlbtn_2).gmlonClickAction=argument2;yyInst(_inst,_other,gmlbtn_2).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);}}function gml_GlobalScript_btn_click_edit_div1(_inst,_other){(_inst.gmlbtn_click_edit_div1=__yy_method(_inst,gml_Script_btn_click_edit_div1));}function gml_Script_btn_click_edit_div1(_inst,_other){{var ___sw634___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmledit_conf;var ___swc635___=-1;if(yyCompareVal(___sw634___,0,g_GMLMathEpsilon, false)==0){___swc635___=0;}else if(yyCompareVal(___sw634___,1,g_GMLMathEpsilon,false)==0){___swc635___=1;}switch(___swc635___){case 0:{gml_Script_s_edit_name(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Division"),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_div1,kgml_Script_s_edit_confirm_div1);break;}case 1:{gml_Script_s_edit_name(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Division"),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_div1b,kgml_Script_s_edit_confirm_div1);break;}} ;}}function gml_GlobalScript_btn_click_edit_div2(_inst,_other){(_inst.gmlbtn_click_edit_div2=__yy_method(_inst,gml_Script_btn_click_edit_div2));}function gml_Script_btn_click_edit_div2(_inst,_other){{var ___sw638___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmledit_conf;var ___swc639___=-1;if(yyCompareVal(___sw638___,0,g_GMLMathEpsilon,false)==0){___swc639___=0;}else if(yyCompareVal(___sw638___,1,g_GMLMathEpsilon,false)==0){___swc639___=1;}switch(___swc639___){case 0:{gml_Script_s_edit_name(_inst,_other, gml_Script_s_str(_inst,_other,"ui_Division"),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_div2,kgml_Script_s_edit_confirm_div2);break;}case 1:{gml_Script_s_edit_name(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Division"),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_div2b,kgml_Script_s_edit_confirm_div2);break;}};}}function gml_GlobalScript_s_history(_inst,_other,argument0){(_inst.gmls_get_history_by_year=__yy_method(_inst,gml_Script_s_get_history_by_year));(_inst.gmls_create_history_for_current_year=__yy_method(_inst, gml_Script_s_create_history_for_current_year));(_inst.gmls_log_this_year_history=__yy_method(_inst,gml_Script_s_log_this_year_history));(_inst.gmls_log_full_history=__yy_method(_inst,gml_Script_s_log_full_history));(_inst.gmls_update_history=__yy_method(_inst,gml_Script_s_update_history));(_inst.gmls_update_history_playoffs=__yy_method(_inst,gml_Script_s_update_history_playoffs));(_inst.gmls_update_history_finish=__yy_method(_inst,gml_Script_s_update_history_finish));(_inst.gmls_update_history_season_end=__yy_method(_inst, gml_Script_s_update_history_season_end));(_inst.gmls_update_history_won_championship=__yy_method(_inst,gml_Script_s_update_history_won_championship));(_inst.gmls_update_history_reached_playoffs_round=__yy_method(_inst,gml_Script_s_update_history_reached_playoffs_round));(_inst.gmls_update_history_won_bowl=__yy_method(_inst,gml_Script_s_update_history_won_bowl));(_inst.gmls_update_history_subdivisional_champ_finals=__yy_method(_inst,gml_Script_s_update_history_subdivisional_champ_finals));(_inst.gmls_history_display_lines_count=__yy_method(_inst, gml_Script_s_history_display_lines_count));(_inst.gmls_history_display_lines_count_yearindex=__yy_method(_inst,gml_Script_s_history_display_lines_count_yearindex));}function gml_Script_s_get_history_by_year(_inst,_other,argument0){{var gmlyr=argument0;{var __yy__v910=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v911 in __yy__v910){if(!__yy__v910.hasOwnProperty(__yy__v911))continue;var __yy__v912=__yy__v910[__yy__v911];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v912.gmlhistory));(g_yyPrePostObject__=gmli, gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(__yy__v912.gmlhistory,gmli);if(yyfequal(ds_map_find_value(gmlmap,"year"),gmlyr)){return gmlmap;};}};return(-4);}}};}}function gml_Script_s_create_history_for_current_year(_inst,_other){{var gmlmap=ds_map_create();ds_map_set(gmlmap,"year",yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear);ds_map_set(gmlmap,"uid",ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam,"uid")); ds_map_set(gmlmap,"name",ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam,"name"));ds_map_set(gmlmap,"tla",ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam,"tla"));ds_map_set(gmlmap,"wins",0);ds_map_set(gmlmap,"losses",0);ds_map_set(gmlmap,"ties",0);ds_map_set(gmlmap,"finish","");ds_map_set(gmlmap,"wins_sim",0);ds_map_set(gmlmap,"losses_sim",0);ds_map_set(gmlmap,"ties_sim",0);ds_map_set(gmlmap,"wins_cnf",0);ds_map_set(gmlmap,"losses_cnf",0);ds_map_set(gmlmap, "losses_po",0);ds_map_set(gmlmap,"wins_po",0);if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{ds_map_set(gmlmap,"conference",ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam,"conference"));ds_map_set(gmlmap,"conference_finish_place",(-1));ds_map_set(gmlmap,"division",ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam,"division"));ds_map_set(gmlmap,"subdivision","");ds_map_set(gmlmap,"subdivision_rank",(-1));ds_map_set(gmlmap,"conf_champ_win",(-1)); ds_map_set(gmlmap,"conf_armynavy_win",(-1));ds_map_set(gmlmap,"playoff_round_reach",(-1));ds_map_set(gmlmap,"won_bowl",(-1));ds_map_set(gmlmap,"subdivision_champ","");};};ds_list_add(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhistory,gmlmap);return gmlmap;}}function gml_Script_s_log_this_year_history(_inst,_other){{var gmlmap=gml_Script_s_get_history_by_year(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear);if(yyfnotequal(gmlmap,(-4))){{gml_Script_slog_map(_inst,_other,yyfplus(yyfplus("HISTORICAL SO FAR, Y[", __yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear))),"]"),gmlmap);};};}}function gml_Script_s_log_full_history(_inst,_other){{gml_Script_slog(_inst,_other,"s_log_full_history");var gmli=yyfminus(__yy_gml_errCheck(ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhistory)),1);for(;yyfgreaterequal(gmli,0);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.subtract(1):--gmli),g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlhistory,gmli);gml_Script_slog_map(_inst,_other,yyfplus(yyfplus(" Y[",__yy_gml_errCheck(string(gmli))),"]"),gmlmap);}};}}function gml_Script_s_update_history(_inst,_other,argument0){{gml_Script_slog(_inst,_other,"s_update_history");{var __yy__v913=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v914 in __yy__v913){if(!__yy__v913.hasOwnProperty(__yy__v914))continue;var __yy__v915=__yy__v913[__yy__v914];{var gmlmap=gml_Script_s_create_history_for_current_year(__yy__v915,_inst); if(yyfequal(__yy__v915.gmlyear,1)){{ds_map_set(gmlmap,"wins",0);ds_map_set(gmlmap,"losses",0);ds_map_set(gmlmap,"ties",0);var ___sw648___=argument0;var ___swc649___=-1;if(yyCompareVal(___sw648___,(-1),g_GMLMathEpsilon,false)==0){___swc649___=0;}else if(yyCompareVal(___sw648___,0,g_GMLMathEpsilon,false)==0){___swc649___=1;}else if(yyCompareVal(___sw648___,1,g_GMLMathEpsilon,false)==0){___swc649___=2;}switch(___swc649___){case 0:{ds_map_set(gmlmap,"losses",1);break;}case 1:{ds_map_set(gmlmap,"ties",1);break; }case 2:{ds_map_set(gmlmap,"wins",1);break;}};};}else {{ds_map_set(gmlmap,"wins",ds_map_find_value(__yy__v915.gmlmyteam,"wins"));ds_map_set(gmlmap,"losses",ds_map_find_value(__yy__v915.gmlmyteam,"losses"));ds_map_set(gmlmap,"ties",ds_map_find_value(__yy__v915.gmlmyteam,"ties"));};};var gml_conf=string_copy(gml_Script_s_get_string_conference(__yy__v915,_inst,__yy__v915.gmlmyconference),1,3);var gml_div=string_copy(gml_Script_s_get_string_division(__yy__v915,_inst,__yy__v915.gmlmyconference,__yy__v915.gmlmydivision), 1,3);var gml_pos=gml_Script_s_get_team_position_by_id(__yy__v915,_inst,__yy__v915.gmlmyteam_id);ds_map_set(gmlmap,"finish",yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_conf)," "),__yy_gml_errCheck(gml_div))," "),__yy_gml_errCheck(gml_Script_s_str(__yy__v915,_inst,yyfplus("pos_",__yy_gml_errCheck(string(gml_pos)))))));ds_map_set(gmlmap,"wins_sim",gml_Script_s_count_simmed_games(__yy__v915,_inst,1));ds_map_set(gmlmap,"losses_sim",gml_Script_s_count_simmed_games(__yy__v915,_inst,(-1)));ds_map_set(gmlmap, "ties_sim",gml_Script_s_count_simmed_games(__yy__v915,_inst,0));if(yyGetBool(gml_Script_s_is_co_mode(__yy__v915,_inst))){{if(yyfequal(__yy__v915.gmlyear,1)){{ds_map_set(gmlmap,"wins_cnf",0);ds_map_set(gmlmap,"losses_cnf",0);var ___sw650___=argument0;var ___swc651___=-1;if(yyCompareVal(___sw650___,(-1),g_GMLMathEpsilon,false)==0){___swc651___=0;}else if(yyCompareVal(___sw650___,1,g_GMLMathEpsilon,false)==0){___swc651___=1;}switch(___swc651___){case 0:{ds_map_set(gmlmap,"losses_cnf",1);break;}case 1:{ds_map_set(gmlmap, "wins_cnf",1);break;}};};}else {{ds_map_set(gmlmap,"wins_cnf",ds_map_find_value(__yy__v915.gmlmyteam,"wins_cnf"));ds_map_set(gmlmap,"losses_cnf",ds_map_find_value(__yy__v915.gmlmyteam,"losses_cnf"));};};var gmlc_finish_place=gml_Script_s_get_my_conference_current_place(__yy__v915,_inst);ds_map_set(gmlmap,"conference_finish_place",gmlc_finish_place);if(yyfequal(gmlc_finish_place,0)){{gml_Script_s_complete_achievement(__yy__v915,_inst,"ACH_WIN_CONF_DIV");};};};};}}};gml_Script_s_log_this_year_history(_inst, _other);}}function gml_Script_s_update_history_playoffs(_inst,_other,argument0){{{var __yy__v916=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v917 in __yy__v916){if(!__yy__v916.hasOwnProperty(__yy__v917))continue;var __yy__v918=__yy__v916[__yy__v917];{var gmlmap=gml_Script_s_get_history_by_year(__yy__v918,_inst,__yy__v918.gmlyear);if(yyGetBool(ds_exists(gmlmap,1))){{if(!yyGetBool(ds_map_exists(gmlmap,"wins_po"))){ds_map_set(gmlmap,"wins_po",0);};if(!yyGetBool(ds_map_exists(gmlmap,"losses_po"))){ ds_map_set(gmlmap,"losses_po",0);};var ___sw652___=argument0;var ___swc653___=-1;if(yyCompareVal(___sw652___,0,g_GMLMathEpsilon,false)==0){___swc653___=0;}else if(yyCompareVal(___sw652___,1,g_GMLMathEpsilon,false)==0){___swc653___=1;}switch(___swc653___){case 0:{ds_map_set(gmlmap,"losses_po",yyfplus(__yy_gml_errCheck(real(ds_map_find_value(gmlmap,"losses_po"))),1));break;}case 1:{ds_map_set(gmlmap,"wins_po",yyfplus(__yy_gml_errCheck(real(ds_map_find_value(gmlmap,"wins_po"))),1));break;}};};};}}};gml_Script_s_log_this_year_history(_inst, _other);}}function gml_Script_s_update_history_finish(_inst,_other,argument0){{{var __yy__v919=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v920 in __yy__v919){if(!__yy__v919.hasOwnProperty(__yy__v920))continue;var __yy__v921=__yy__v919[__yy__v920];{var gmlmap=gml_Script_s_get_history_by_year(__yy__v921,_inst,__yy__v921.gmlyear);if(yyGetBool(ds_exists(gmlmap,1))){{var ___sw654___=argument0;var ___swc655___=-1;if(yyCompareVal(___sw654___,1,g_GMLMathEpsilon,false)==0){___swc655___=0;}else if(yyCompareVal(___sw654___, 2,g_GMLMathEpsilon,false)==0){___swc655___=1;}else if(yyCompareVal(___sw654___,3,g_GMLMathEpsilon,false)==0){___swc655___=2;}else if(yyCompareVal(___sw654___,4,g_GMLMathEpsilon,false)==0){___swc655___=3;}else if(yyCompareVal(___sw654___,5,g_GMLMathEpsilon,false)==0){___swc655___=4;}switch(___swc655___){case 0:{ds_map_set(gmlmap,"finish",gml_Script_s_str(__yy__v921,_inst,"finish_WildCard"));break;}case 1:{ds_map_set(gmlmap,"finish",gml_Script_s_str(__yy__v921,_inst,"finish_Divisional"));break;}case 2:{ ds_map_set(gmlmap,"finish",gml_Script_s_str(__yy__v921,_inst,"finish_Championship"));break;}case 3:{ds_map_set(gmlmap,"finish",gml_Script_s_str(__yy__v921,_inst,"finish_Champ_AFC"));if(yyfequal(__yy__v921.gmlmyconference,1)){ds_map_set(gmlmap,"finish",gml_Script_s_str(__yy__v921,_inst,"finish_Champ_NFC"));};break;}case 4:{ds_map_set(gmlmap,"finish",gml_Script_s_str(__yy__v921,_inst,"finish_SuperBowl"));break;}};};};ds_map_set(gmlmap,"wins_sim",gml_Script_s_count_simmed_games(__yy__v921,_inst,1));ds_map_set(gmlmap, "losses_sim",gml_Script_s_count_simmed_games(__yy__v921,_inst,(-1)));ds_map_set(gmlmap,"ties_sim",gml_Script_s_count_simmed_games(__yy__v921,_inst,0));}}};gml_Script_s_log_this_year_history(_inst,_other);}}function gml_Script_s_update_history_season_end(_inst,_other,argument0){{var gmlFBSrank=gml_Script_s_subdivision_get_player_ranking(_inst,_other,1,argument0);var gmlFCSrank=gml_Script_s_subdivision_get_player_ranking(_inst,_other,2,argument0);gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus("FBSrank[", __yy_gml_errCheck(string(gmlFBSrank))),"] FCSrank["),__yy_gml_errCheck(string(gmlFCSrank))),"]"));if((yyGetBool(yyfnotequal(gmlFBSrank,(-1))))&&(yyGetBool(yyfless(gmlFBSrank,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrec_highest_rank_major)))){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrec_highest_rank_major=gmlFBSrank;};};if((yyGetBool(yyfnotequal(gmlFCSrank,(-1))))&&(yyGetBool(yyfless(gmlFCSrank,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrec_highest_rank_minor)))){{yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlrec_highest_rank_minor=gmlFCSrank;};};{var __yy__v922=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v923 in __yy__v922){if(!__yy__v922.hasOwnProperty(__yy__v923))continue;var __yy__v924=__yy__v922[__yy__v923];{var gmlmap=gml_Script_s_get_history_by_year(__yy__v924,_inst,__yy__v924.gmlyear);if(yyGetBool(ds_exists(gmlmap,1))){{ds_map_set(gmlmap,"subdivision",(yyfequal(gmlFBSrank,(-1))?"FCS":"FBS"));ds_map_set(gmlmap,"subdivision_rank",(yyfequal(gmlFBSrank,(-1))?gmlFCSrank:gmlFBSrank)); };};}}};}}function gml_Script_s_update_history_won_championship(_inst,_other,argument0){{{var __yy__v925=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v926 in __yy__v925){if(!__yy__v925.hasOwnProperty(__yy__v926))continue;var __yy__v927=__yy__v925[__yy__v926];{var gmlmap=gml_Script_s_get_history_by_year(__yy__v927,_inst,__yy__v927.gmlyear);if(yyGetBool(ds_exists(gmlmap,1))){{if(yyfnotequal(real(argument0),8000)){{ds_map_set(gmlmap,"conf_champ_win",argument0);};}else {{ds_map_set(gmlmap,"conf_armynavy_win", argument0);};};};};}}};}}function gml_Script_s_update_history_reached_playoffs_round(_inst,_other,argument0){{{var __yy__v928=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v929 in __yy__v928){if(!__yy__v928.hasOwnProperty(__yy__v929))continue;var __yy__v930=__yy__v928[__yy__v929];{var gmlmap=gml_Script_s_get_history_by_year(__yy__v930,_inst,__yy__v930.gmlyear);if(yyGetBool(ds_exists(gmlmap,1))){{ds_map_set(gmlmap,"playoff_round_reach",argument0);};};}}};}}function gml_Script_s_update_history_won_bowl(_inst, _other,argument0){{{var __yy__v931=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v932 in __yy__v931){if(!__yy__v931.hasOwnProperty(__yy__v932))continue;var __yy__v933=__yy__v931[__yy__v932];{var gmlmap=gml_Script_s_get_history_by_year(__yy__v933,_inst,__yy__v933.gmlyear);if(yyGetBool(ds_exists(gmlmap,1))){{ds_map_set(gmlmap,"won_bowl",argument0);};};}}};}}function gml_Script_s_update_history_subdivisional_champ_finals(_inst,_other,argument0){{{var __yy__v934=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v935 in __yy__v934){ if(!__yy__v934.hasOwnProperty(__yy__v935))continue;var __yy__v936=__yy__v934[__yy__v935];{var gmlmap=gml_Script_s_get_history_by_year(__yy__v936,_inst,__yy__v936.gmlyear);if(yyGetBool(ds_exists(gmlmap,1))){{ds_map_set(gmlmap,"subdivision_champ",argument0);};};}}};}}function gml_Script_s_history_display_lines_count(_inst,_other){{var gml_size=ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhistory);if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{return gml_size;};};var gmlc=0;var gmli=yyfminus(__yy_gml_errCheck(gml_size), 1);for(;yyfgreaterequal(gmli,0);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.subtract(1):--gmli),g_yyPrePostObject__)){{gmlc=yyfplus(gmlc,gml_Script_s_history_display_lines_count_yearindex(_inst,_other,gmli));}};return yyfplus(__yy_gml_errCheck(gmlc),1);}}function gml_Script_s_history_display_lines_count_yearindex(_inst,_other,argument0){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{return 1;};};var gmlc=0;var gmlmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhistory, argument0);var gmlrecYear=real(ds_map_find_value(gmlmap,"year"));if(yyfequal(gmlrecYear,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear)){{return 0;};};var gmlplayoff_round=gml_Script_s_get_map_real(_inst,_other,gmlmap,"playoff_round_reach",(-1));gmlc=yyfplus(gmlc,1);if(yyfnotequal(ds_map_find_value(gmlmap,"subdivision"),"")){{gmlc=yyfplus(gmlc,1);};};if(yyfnotequal(gml_Script_s_get_map_real(_inst,_other,gmlmap,"conf_champ_win",(-1)),(-1))){{gmlc=yyfplus(gmlc,1);};};if(yyfnotequal(gml_Script_s_get_map_real(_inst, _other,gmlmap,"conf_armynavy_win",(-1)),(-1))){{gmlc=yyfplus(gmlc,1);};};if(yyfnotequal(gmlplayoff_round,(-1))){{gmlc=yyfplus(gmlc,1);};};if(yyfnotequal(gml_Script_s_get_map_real(_inst,_other,gmlmap,"won_bowl",(-1)),(-1))){{gmlc=yyfplus(gmlc,1);};};if(yyfequal(ds_map_find_value(gmlmap,"subdivision_champ"),"loss")){{gmlc=yyfplus(gmlc,1);};};if(yyfequal(ds_map_find_value(gmlmap,"subdivision_champ"),"win")){{gmlc=yyfplus(gmlc,1);};};return gmlc;}}function gml_GlobalScript_btn_click_edit_div3(_inst,_other){ (_inst.gmlbtn_click_edit_div3=__yy_method(_inst,gml_Script_btn_click_edit_div3));}function gml_Script_btn_click_edit_div3(_inst,_other){{var ___sw658___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmledit_conf;var ___swc659___=-1;if(yyCompareVal(___sw658___,0,g_GMLMathEpsilon,false)==0){___swc659___=0;}else if(yyCompareVal(___sw658___,1,g_GMLMathEpsilon,false)==0){___swc659___=1;}switch(___swc659___){case 0:{gml_Script_s_edit_name(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Division"),yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlname_div3,kgml_Script_s_edit_confirm_div3);break;}case 1:{gml_Script_s_edit_name(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Division"),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_div3b,kgml_Script_s_edit_confirm_div3);break;}};}}function gml_GlobalScript_btn_click_edit_div4(_inst,_other){(_inst.gmlbtn_click_edit_div4=__yy_method(_inst,gml_Script_btn_click_edit_div4));}function gml_Script_btn_click_edit_div4(_inst,_other){{var ___sw662___=yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmledit_conf;var ___swc663___=-1;if(yyCompareVal(___sw662___,0,g_GMLMathEpsilon,false)==0){___swc663___=0;}else if(yyCompareVal(___sw662___,1,g_GMLMathEpsilon,false)==0){___swc663___=1;}switch(___swc663___){case 0:{gml_Script_s_edit_name(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Division"),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_div4,kgml_Script_s_edit_confirm_div4);break;}case 1:{gml_Script_s_edit_name(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Division"), yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_div4b,kgml_Script_s_edit_confirm_div4);break;}};}}// /// @param _filename Optional filename to be added to path // /// @param _version Optional numeric data version defaults to current function gml_GlobalScript_s_college_data_versioning(_inst,_other){(_inst.gmls_get_versioned_path=__yy_method(_inst,gml_Script_s_get_versioned_path));(_inst.gmls_is_newer_data_available=__yy_method(_inst,gml_Script_s_is_newer_data_available));(_inst.gmls_is_team_active_in_new_data=__yy_method(_inst, gml_Script_s_is_team_active_in_new_data));(_inst.gmls_get_build_data_version=__yy_method(_inst,gml_Script_s_get_build_data_version));(_inst.gmls_get_build_year_offset=__yy_method(_inst,gml_Script_s_get_build_year_offset));(_inst.gmls_get_data_version_string=__yy_method(_inst,gml_Script_s_get_data_version_string));(_inst.gmls_reset_to_version=__yy_method(_inst,gml_Script_s_reset_to_version));(_inst.gmls_data_upgrade_teams=__yy_method(_inst,gml_Script_s_data_upgrade_teams));(_inst.gmls_offer_data_upgrade=__yy_method(_inst, gml_Script_s_offer_data_upgrade));(_inst.gmls_data_upgrade_offer_deny=__yy_method(_inst,gml_Script_s_data_upgrade_offer_deny));(_inst.gmls_data_upgrade_offer_accept=__yy_method(_inst,gml_Script_s_data_upgrade_offer_accept));}function gml_Script_s_get_versioned_path(_inst,_other,argument0,argument1){{if(yyfequal(argument0,_inst.undefined)){argument0="";};if(yyfequal(argument1,_inst.undefined)){argument1=yyInst(_inst,_other,global.gmlg_m).gmldata_version;};}{if(yyGetBool(is_undefined(argument1))){argument1=gml_Script_s_get_build_data_version(_inst, _other);};var gmlpath=yyfplus(yyfplus(yyfplus("v",__yy_gml_errCheck(string(argument1))),"/"),__yy_gml_errCheck(argument0));gml_Script_slogf(_inst,_other,"Versioned path: %1",gmlpath);return gmlpath;}}function gml_Script_s_is_newer_data_available(_inst,_other){{if((yyGetBool(variable_instance_exists(global.gmlg_m,"data_version")))&&(yyGetBool(!yyGetBool(is_undefined(yyInst(_inst,_other,global.gmlg_m).gmldata_version))))){{if(yyfgreater(gml_Script_s_get_build_data_version(_inst,_other),yyInst(_inst,_other, global.gmlg_m).gmldata_version)){return true;};};};return false;}}function gml_Script_s_is_team_active_in_new_data(_inst,_other,argument0){{if(yyfequal(argument0,_inst.undefined)){argument0=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id;};}{var gmlnew_data=gml_Script_load_data_to_struct_array(_inst,_other,gml_Script_s_get_versioned_path(_inst,_other,"Teams_CO.txt",gml_Script_s_get_build_data_version(_inst,_other)));var gmlteam=gml_Script_s_get_struct_in_array_by_uid(_inst,_other,gmlnew_data, argument0);gml_Script_slog(_inst,_other,gmlteam);if(yyfnotequal(gmlteam,(-4))){return real(yyInst(_inst,_other,gmlteam).gmlactive);};return false;}}function gml_Script_s_get_build_data_version(_inst,_other,argument0){{if(yyfequal(argument0,_inst.undefined)){argument0=false;};}{if((yyGetBool(!yyGetBool(argument0)))&&(yyGetBool(gml_Script_s_is_debug_desktop(_inst,_other)))){return 2;};return 2;}}function gml_Script_s_get_build_year_offset(_inst,_other,argument0){{if(yyfequal(argument0,_inst.undefined)){ argument0=false;};}{if((yyGetBool(!yyGetBool(argument0)))&&(yyGetBool(gml_Script_s_is_debug_desktop(_inst,_other)))){return 0;};return 0;}}function gml_Script_s_get_data_version_string(_inst,_other){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){return "";};return gml_Script_s_strf(_inst,_other," v%1 yo%2",yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldata_version,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear_offset);}}function gml_Script____struct___136_s_reset_to_version_gml_GlobalScript_s_college_data_versioning(_inst, _other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___136_s_reset_to_version_gml_GlobalScript_s_college_data_versioning";}if(gml_Script____struct___136_s_reset_to_version_gml_GlobalScript_s_college_data_versioning.prototype.__type===undefined){gml_Script____struct___136_s_reset_to_version_gml_GlobalScript_s_college_data_versioning.prototype.__type="gml_Script____struct___136_s_reset_to_version_gml_GlobalScript_s_college_data_versioning";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst, gml_Script____struct___136_s_reset_to_version_gml_GlobalScript_s_college_data_versioning.prototype);{_inst.gmldata_upgraded=true;}}}function gml_Script_s_reset_to_version(_inst,_other,argument0,argument1){{if(yyfequal(argument1,_inst.undefined)){argument1=0;};}{gml_Script_slogf(_inst,_other,"*** Data reset - Save slot %3 Version: %1 Year offset: %2",argument0,argument1,gml_Script_s_get_save_slot(_inst,_other));{var __yy__v937=GetWithArray(global.gmlg_m);for(var __yy__v938 in __yy__v937){if(!__yy__v937.hasOwnProperty(__yy__v938))continue; var __yy__v939=__yy__v937[__yy__v938];{__yy__v939.gmldata_version=argument0;__yy__v939.gmlyear_offset=argument1;__yy__v939.gmlteamlist=gml_Script_s_data_upgrade_teams(__yy__v939,_inst,argument0);}}};gml_Script_s_savegame(_inst,_other);gml_Script_s_destroy_master(_inst,_other);instance_create_layer(0,0,"Instances",YYASSET_REF(0x00000062),__yy_gml_object_create(_inst,(_inst.gml___struct___136=__yy_method(_inst,gml_Script____struct___136_s_reset_to_version_gml_GlobalScript_s_college_data_versioning)))); }}function gml_Script_s_data_upgrade_teams(_inst,_other,argument0){{var gmlnew_teams=ds_list_create();gml_Script_s_load_teams_data(_inst,_other,gmlnew_teams,"Teams.txt");gml_Script_s_load_teams_data(_inst,_other,gmlnew_teams,gml_Script_s_get_versioned_path(_inst,_other,"Teams_CO.txt",argument0));var gmlot,gmlnt;{var __yy__v940=GetWithArray(global.gmlg_m);for(var __yy__v941 in __yy__v940){if(!__yy__v940.hasOwnProperty(__yy__v941))continue;var __yy__v942=__yy__v940[__yy__v941];{var gmlt=0;for(;yyfless(gmlt, ds_list_size(gmlnew_teams));(g_yyPrePostObject__=gmlt,gmlt=(g_yyPrePostObject__ instanceof Long?gmlt.add(1):++gmlt),g_yyPrePostObject__)){{gmlnt=ds_list_find_value(gmlnew_teams,gmlt);gmlot=gml_Script_s_get_team_by_id(__yy__v942,_inst,ds_map_find_value(gmlnt,"uid"));if(yyfequal(real(ds_map_find_value(gmlot,"uid")),ds_map_find_value(gmlnt,"uid"))){{gml_Script_slogf(__yy__v942,_inst,"%1 team %2",ds_map_find_value(gmlnt,"uid"),ds_map_find_value(gmlnt,"name"));ds_map_set(gmlnt,"reputation",ds_map_find_value(gmlot, "reputation"));};};}};}}};return gmlnew_teams;}}function gml_Script_s_offer_data_upgrade(_inst,_other){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){return false;};if(!yyGetBool(gml_Script_s_is_newer_data_available(_inst,_other))){return false;};gml_Script_slogf(_inst,_other,"*** DATA UPGRADE AVAILABLE");if(yyGetBool(gml_Script_s_is_team_active_in_new_data(_inst,_other))){{gml_Script_slogf(_inst,_other,"*** my team is active in new data");{var __yy__v943=GetWithArray(YYASSET_REF(0x00000032)); for(var __yy__v944 in __yy__v943){if(!__yy__v943.hasOwnProperty(__yy__v944))continue;var __yy__v945=__yy__v943[__yy__v944];instance_destroy(__yy__v945);}};gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_NewSeasonScheduleAvailable"),gml_Script_s_str(_inst,_other,"ui_Yes"),gml_Script_s_str(_inst,_other,"ui_No"),kgml_Script_s_data_upgrade_offer_accept,kgml_Script_s_data_upgrade_offer_deny,global.gmlc_background,1);return true;};};gml_Script_slogf(_inst,_other,"*** my team is not active in new data"); return false;}}function gml_Script_s_data_upgrade_offer_deny(_inst,_other){{gml_Script_s_college_draft_new_season_loading(_inst,_other);}}function gml_Script_s_data_upgrade_offer_accept(_inst,_other){{gml_Script_s_reset_to_version(_inst,_other,gml_Script_s_get_build_data_version(_inst,_other),gml_Script_s_get_build_year_offset(_inst,_other));}}function gml_GlobalScript_btn_click_edit_conf1(_inst,_other){(_inst.gmlbtn_click_edit_conf1=__yy_method(_inst,gml_Script_btn_click_edit_conf1));}function gml_Script_btn_click_edit_conf1(_inst, _other){{gml_Script_s_edit_name(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Conference"),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_conf1,kgml_Script_s_edit_confirm_conf1);}}function gml_GlobalScript_btn_click_edit_conf2(_inst,_other){(_inst.gmlbtn_click_edit_conf2=__yy_method(_inst,gml_Script_btn_click_edit_conf2));}function gml_Script_btn_click_edit_conf2(_inst,_other){{gml_Script_s_edit_name(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Conference"),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_conf2, kgml_Script_s_edit_confirm_conf2);}}function gml_GlobalScript_s_edit_confirm_div1(_inst,_other){(_inst.gmls_edit_confirm_div1=__yy_method(_inst,gml_Script_s_edit_confirm_div1));}function gml_Script_s_edit_confirm_div1(_inst,_other){{{var __yy__v946=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v947 in __yy__v946){if(!__yy__v946.hasOwnProperty(__yy__v947))continue;var __yy__v948=__yy__v946[__yy__v947];{var gmltxt1=yyInst(_inst,_other,__yy__v948.gmledit_box1).gmltext;if(yyfgreater(string_length(gmltxt1), 0)){{var ___sw666___=__yy__v948.gmledit_conf;var ___swc667___=-1;if(yyCompareVal(___sw666___,0,g_GMLMathEpsilon,false)==0){___swc667___=0;}else if(yyCompareVal(___sw666___,1,g_GMLMathEpsilon,false)==0){___swc667___=1;}switch(___swc667___){case 0:{__yy__v948.gmlname_div1=gmltxt1;break;}case 1:{__yy__v948.gmlname_div1b=gmltxt1;break;}};};};gml_Script_s_msg_clear(__yy__v948,_inst);room_goto(YYASSET_REF(0x0300001D));}}};}}function gml_GlobalScript_s_edit_confirm_div2(_inst,_other){(_inst.gmls_edit_confirm_div2=__yy_method(_inst, gml_Script_s_edit_confirm_div2));}function gml_Script_s_edit_confirm_div2(_inst,_other){{{var __yy__v949=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v950 in __yy__v949){if(!__yy__v949.hasOwnProperty(__yy__v950))continue;var __yy__v951=__yy__v949[__yy__v950];{var gmltxt1=yyInst(_inst,_other,__yy__v951.gmledit_box1).gmltext;if(yyfgreater(string_length(gmltxt1),0)){{var ___sw670___=__yy__v951.gmledit_conf;var ___swc671___=-1;if(yyCompareVal(___sw670___,0,g_GMLMathEpsilon,false)==0){___swc671___=0;}else if(yyCompareVal(___sw670___, 1,g_GMLMathEpsilon,false)==0){___swc671___=1;}switch(___swc671___){case 0:{__yy__v951.gmlname_div2=gmltxt1;break;}case 1:{__yy__v951.gmlname_div2b=gmltxt1;break;}};};};gml_Script_s_msg_clear(__yy__v951,_inst);room_goto(YYASSET_REF(0x0300001D));}}};}}function gml_GlobalScript_s_edit_confirm_div3(_inst,_other){(_inst.gmls_edit_confirm_div3=__yy_method(_inst,gml_Script_s_edit_confirm_div3));}function gml_Script_s_edit_confirm_div3(_inst,_other){{{var __yy__v952=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v953 in __yy__v952){ if(!__yy__v952.hasOwnProperty(__yy__v953))continue;var __yy__v954=__yy__v952[__yy__v953];{var gmltxt1=yyInst(_inst,_other,__yy__v954.gmledit_box1).gmltext;if(yyfgreater(string_length(gmltxt1),0)){{var ___sw674___=__yy__v954.gmledit_conf;var ___swc675___=-1;if(yyCompareVal(___sw674___,0,g_GMLMathEpsilon,false)==0){___swc675___=0;}else if(yyCompareVal(___sw674___,1,g_GMLMathEpsilon,false)==0){___swc675___=1;}switch(___swc675___){case 0:{__yy__v954.gmlname_div3=gmltxt1;break;}case 1:{__yy__v954.gmlname_div3b=gmltxt1; break;}};};};gml_Script_s_msg_clear(__yy__v954,_inst);room_goto(YYASSET_REF(0x0300001D));}}};}}function gml_GlobalScript_s_edit_confirm_div4(_inst,_other){(_inst.gmls_edit_confirm_div4=__yy_method(_inst,gml_Script_s_edit_confirm_div4));}function gml_Script_s_edit_confirm_div4(_inst,_other){{{var __yy__v955=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v956 in __yy__v955){if(!__yy__v955.hasOwnProperty(__yy__v956))continue;var __yy__v957=__yy__v955[__yy__v956];{var gmltxt1=yyInst(_inst,_other,__yy__v957.gmledit_box1).gmltext; if(yyfgreater(string_length(gmltxt1),0)){{var ___sw678___=__yy__v957.gmledit_conf;var ___swc679___=-1;if(yyCompareVal(___sw678___,0,g_GMLMathEpsilon,false)==0){___swc679___=0;}else if(yyCompareVal(___sw678___,1,g_GMLMathEpsilon,false)==0){___swc679___=1;}switch(___swc679___){case 0:{__yy__v957.gmlname_div4=gmltxt1;break;}case 1:{__yy__v957.gmlname_div4b=gmltxt1;break;}};};};gml_Script_s_msg_clear(__yy__v957,_inst);room_goto(YYASSET_REF(0x0300001D));}}};}}function gml_GlobalScript_s_edit_confirm_conf1(_inst, _other){(_inst.gmls_edit_confirm_conf1=__yy_method(_inst,gml_Script_s_edit_confirm_conf1));}function gml_Script_s_edit_confirm_conf1(_inst,_other){{{var __yy__v958=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v959 in __yy__v958){if(!__yy__v958.hasOwnProperty(__yy__v959))continue;var __yy__v960=__yy__v958[__yy__v959];{var gmltxt1=yyInst(_inst,_other,__yy__v960.gmledit_box1).gmltext;if(yyfgreater(string_length(gmltxt1),0)){__yy__v960.gmlname_conf1=gmltxt1;};gml_Script_s_msg_clear(__yy__v960,_inst); room_goto(YYASSET_REF(0x0300001D));}}};}}function gml_GlobalScript_s_edit_confirm_conf2(_inst,_other){(_inst.gmls_edit_confirm_conf2=__yy_method(_inst,gml_Script_s_edit_confirm_conf2));}function gml_Script_s_edit_confirm_conf2(_inst,_other){{{var __yy__v961=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v962 in __yy__v961){if(!__yy__v961.hasOwnProperty(__yy__v962))continue;var __yy__v963=__yy__v961[__yy__v962];{var gmltxt1=yyInst(_inst,_other,__yy__v963.gmledit_box1).gmltext;if(yyfgreater(string_length(gmltxt1), 0)){__yy__v963.gmlname_conf2=gmltxt1;};gml_Script_s_msg_clear(__yy__v963,_inst);room_goto(YYASSET_REF(0x0300001D));}}};}}function gml_GlobalScript_s_populate_division(_inst,_other,argument0,argument1,argument2){(_inst.gmls_populate_division=__yy_method(_inst,gml_Script_s_populate_division));}function gml_Script_s_populate_division(_inst,_other,argument0,argument1,argument2){{var gmlinfobox=argument0;var gmlconference=argument1;var gmldivision=argument2;if((yyGetBool(!yyGetBool(gml_Script_s_is_co_mode(_inst, _other))))&&(yyGetBool(yyfgreater(gmlconference,1)))){return;};yyInst(_inst,_other,gmlinfobox).gmltitle=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,gmlconference))," "),__yy_gml_errCheck(gml_Script_s_get_string_division(_inst,_other,gmlconference,gmldivision)));var gmldivteams=ds_list_create();var gmlmyid=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id;var gmlmyconf=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyconference;var gmlmydiv=yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlmydivision;yyInst(_inst,_other,gmlinfobox).gmlalpha=0.6;if((yyGetBool(yyfequal(gmlconference,gmlmyconf)))&&(yyGetBool(yyfequal(gmldivision,gmlmydiv)))){yyInst(_inst,_other,gmlinfobox).gmlalpha=1;};var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteamlist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlteam=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteamlist, gmli);if((yyGetBool(yyfequal(ds_map_find_value(gmlteam,"conference"),gmlconference)))&&(yyGetBool(yyfequal(ds_map_find_value(gmlteam,"division"),gmldivision)))){ds_list_add(gmldivteams,gmlteam);};}};gmldivteams=gml_Script_s_sort_teams(_inst,_other,gmldivteams,0,false);var gmli=0;for(;yyfless(gmli,ds_list_size(gmldivteams));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlteam=ds_list_find_value(gmldivteams,gmli);var gmltxt=ds_map_find_value(gmlteam, "name");var gmlwins=string(ds_map_find_value(gmlteam,"wins"));var gmllosses=string(ds_map_find_value(gmlteam,"losses"));var gmlties=string(ds_map_find_value(gmlteam,"ties"));var gmlpct=string_format(gml_Script_s_get_team_winpct(_inst,_other,gmlteam),0,3);gmlpct=string_replace(gmlpct,"0.",".");var gmlnet=gml_Script_s_get_team_net_points(_inst,_other,ds_map_find_value(gmlteam,"uid"));var gmlof=gml_Script_s_get_team_offense(_inst,_other,gmlteam);var gmldf=gml_Script_s_get_team_defense(_inst,_other,gmlteam); if((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_difficulty,4)))&&(yyGetBool(yyfnotequal(gmlteam,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id)))){{gmlof=real(ds_map_find_value(gmlteam,"offense"));gmldf=real(ds_map_find_value(gmlteam,"defense"));};};var gmloffense=string_format(yyfdivide(__yy_gml_errCheck(gmlof),2),1,1);var gmldefense=string_format(yyfdivide(__yy_gml_errCheck(gmldf),2),1,1);var gmltxt_col=16777215;if(yyfequal(ds_map_find_value(gmlteam,"uid"),gmlmyid)){ gmltxt_col=global.gmlc_primary;};var ___sw682___=gmli;var ___swc683___=-1;if(yyCompareVal(___sw682___,0,g_GMLMathEpsilon,false)==0){___swc683___=0;}else if(yyCompareVal(___sw682___,1,g_GMLMathEpsilon,false)==0){___swc683___=1;}else if(yyCompareVal(___sw682___,2,g_GMLMathEpsilon,false)==0){___swc683___=2;}else if(yyCompareVal(___sw682___,3,g_GMLMathEpsilon,false)==0){___swc683___=3;}switch(___swc683___){case 0:{yyInst(_inst,_other,gmlinfobox).gmlteam_name=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlteam_name, 3121750312);yyInst(_inst,_other,gmlinfobox).gmlteam_name[__yy_gml_array_check_index_set(0)]=gmltxt;yyInst(_inst,_other,gmlinfobox).gmlcol_txt=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlcol_txt,372587872);yyInst(_inst,_other,gmlinfobox).gmlcol_txt[__yy_gml_array_check_index_set(0)]=gmltxt_col;yyInst(_inst,_other,gmlinfobox).gmlwins=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlwins,1467464228);yyInst(_inst,_other,gmlinfobox).gmlwins[__yy_gml_array_check_index_set(0)]=gmlwins; yyInst(_inst,_other,gmlinfobox).gmllosses=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmllosses,3978844290);yyInst(_inst,_other,gmlinfobox).gmllosses[__yy_gml_array_check_index_set(0)]=gmllosses;yyInst(_inst,_other,gmlinfobox).gmlties=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlties,251214534);yyInst(_inst,_other,gmlinfobox).gmlties[__yy_gml_array_check_index_set(0)]=gmlties;yyInst(_inst,_other,gmlinfobox).gmlpct=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlpct,387395751); yyInst(_inst,_other,gmlinfobox).gmlpct[__yy_gml_array_check_index_set(0)]=gmlpct;yyInst(_inst,_other,gmlinfobox).gmlnet=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlnet,195038352);yyInst(_inst,_other,gmlinfobox).gmlnet[__yy_gml_array_check_index_set(0)]=gmlnet;yyInst(_inst,_other,gmlinfobox).gmloffense=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmloffense,2228472908);yyInst(_inst,_other,gmlinfobox).gmloffense[__yy_gml_array_check_index_set(0)]=gmloffense;yyInst(_inst,_other, gmlinfobox).gmldefense=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmldefense,3161793873);yyInst(_inst,_other,gmlinfobox).gmldefense[__yy_gml_array_check_index_set(0)]=gmldefense;break;}case 1:{yyInst(_inst,_other,gmlinfobox).gmlteam_name=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlteam_name,3121750312);yyInst(_inst,_other,gmlinfobox).gmlteam_name[__yy_gml_array_check_index_set(1)]=gmltxt;yyInst(_inst,_other,gmlinfobox).gmlcol_txt=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlcol_txt, 372587872);yyInst(_inst,_other,gmlinfobox).gmlcol_txt[__yy_gml_array_check_index_set(1)]=gmltxt_col;yyInst(_inst,_other,gmlinfobox).gmlwins=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlwins,1467464228);yyInst(_inst,_other,gmlinfobox).gmlwins[__yy_gml_array_check_index_set(1)]=gmlwins;yyInst(_inst,_other,gmlinfobox).gmllosses=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmllosses,3978844290);yyInst(_inst,_other,gmlinfobox).gmllosses[__yy_gml_array_check_index_set(1)]=gmllosses; yyInst(_inst,_other,gmlinfobox).gmlties=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlties,251214534);yyInst(_inst,_other,gmlinfobox).gmlties[__yy_gml_array_check_index_set(1)]=gmlties;yyInst(_inst,_other,gmlinfobox).gmlpct=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlpct,387395751);yyInst(_inst,_other,gmlinfobox).gmlpct[__yy_gml_array_check_index_set(1)]=gmlpct;yyInst(_inst,_other,gmlinfobox).gmlnet=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlnet,195038352);yyInst(_inst, _other,gmlinfobox).gmlnet[__yy_gml_array_check_index_set(1)]=gmlnet;yyInst(_inst,_other,gmlinfobox).gmloffense=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmloffense,2228472908);yyInst(_inst,_other,gmlinfobox).gmloffense[__yy_gml_array_check_index_set(1)]=gmloffense;yyInst(_inst,_other,gmlinfobox).gmldefense=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmldefense,3161793873);yyInst(_inst,_other,gmlinfobox).gmldefense[__yy_gml_array_check_index_set(1)]=gmldefense;break;}case 2:{yyInst(_inst, _other,gmlinfobox).gmlteam_name=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlteam_name,3121750312);yyInst(_inst,_other,gmlinfobox).gmlteam_name[__yy_gml_array_check_index_set(2)]=gmltxt;yyInst(_inst,_other,gmlinfobox).gmlcol_txt=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlcol_txt,372587872);yyInst(_inst,_other,gmlinfobox).gmlcol_txt[__yy_gml_array_check_index_set(2)]=gmltxt_col;yyInst(_inst,_other,gmlinfobox).gmlwins=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlwins, 1467464228);yyInst(_inst,_other,gmlinfobox).gmlwins[__yy_gml_array_check_index_set(2)]=gmlwins;yyInst(_inst,_other,gmlinfobox).gmllosses=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmllosses,3978844290);yyInst(_inst,_other,gmlinfobox).gmllosses[__yy_gml_array_check_index_set(2)]=gmllosses;yyInst(_inst,_other,gmlinfobox).gmlties=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlties,251214534);yyInst(_inst,_other,gmlinfobox).gmlties[__yy_gml_array_check_index_set(2)]=gmlties;yyInst(_inst, _other,gmlinfobox).gmlpct=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlpct,387395751);yyInst(_inst,_other,gmlinfobox).gmlpct[__yy_gml_array_check_index_set(2)]=gmlpct;yyInst(_inst,_other,gmlinfobox).gmlnet=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlnet,195038352);yyInst(_inst,_other,gmlinfobox).gmlnet[__yy_gml_array_check_index_set(2)]=gmlnet;yyInst(_inst,_other,gmlinfobox).gmloffense=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmloffense,2228472908);yyInst(_inst, _other,gmlinfobox).gmloffense[__yy_gml_array_check_index_set(2)]=gmloffense;yyInst(_inst,_other,gmlinfobox).gmldefense=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmldefense,3161793873);yyInst(_inst,_other,gmlinfobox).gmldefense[__yy_gml_array_check_index_set(2)]=gmldefense;break;}case 3:{yyInst(_inst,_other,gmlinfobox).gmlteam_name=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlteam_name,3121750312);yyInst(_inst,_other,gmlinfobox).gmlteam_name[__yy_gml_array_check_index_set(3)]=gmltxt; yyInst(_inst,_other,gmlinfobox).gmlcol_txt=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlcol_txt,372587872);yyInst(_inst,_other,gmlinfobox).gmlcol_txt[__yy_gml_array_check_index_set(3)]=gmltxt_col;yyInst(_inst,_other,gmlinfobox).gmlwins=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlwins,1467464228);yyInst(_inst,_other,gmlinfobox).gmlwins[__yy_gml_array_check_index_set(3)]=gmlwins;yyInst(_inst,_other,gmlinfobox).gmllosses=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmllosses, 3978844290);yyInst(_inst,_other,gmlinfobox).gmllosses[__yy_gml_array_check_index_set(3)]=gmllosses;yyInst(_inst,_other,gmlinfobox).gmlties=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlties,251214534);yyInst(_inst,_other,gmlinfobox).gmlties[__yy_gml_array_check_index_set(3)]=gmlties;yyInst(_inst,_other,gmlinfobox).gmlpct=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlpct,387395751);yyInst(_inst,_other,gmlinfobox).gmlpct[__yy_gml_array_check_index_set(3)]=gmlpct;yyInst(_inst,_other, gmlinfobox).gmlnet=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmlnet,195038352);yyInst(_inst,_other,gmlinfobox).gmlnet[__yy_gml_array_check_index_set(3)]=gmlnet;yyInst(_inst,_other,gmlinfobox).gmloffense=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmloffense,2228472908);yyInst(_inst,_other,gmlinfobox).gmloffense[__yy_gml_array_check_index_set(3)]=gmloffense;yyInst(_inst,_other,gmlinfobox).gmldefense=__yy_gml_array_check(yyInst(_inst,_other,gmlinfobox).gmldefense,3161793873);yyInst(_inst, _other,gmlinfobox).gmldefense[__yy_gml_array_check_index_set(3)]=gmldefense;break;}};}};ds_list_destroy(gmldivteams);gmldivteams=(-1);}}function gml_GlobalScript_s_populate_schedulebox(_inst,_other){(_inst.gmls_populate_schedulebox=__yy_method(_inst,gml_Script_s_populate_schedulebox));}function gml_Script_s_populate_schedulebox(_inst,_other){{gml_Script_slog(_inst,_other,"s_populate_schedulebox");{var __yy__v964=GetWithArray(100254);for(var __yy__v965 in __yy__v964){if(!__yy__v964.hasOwnProperty(__yy__v965))continue; var __yy__v966=__yy__v964[__yy__v965];{__yy__v966.gmlhighlight=(-1);var gmlw=clamp(__yy__v966.gmlsweek,1,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular);var gmlcount=0;var gmlf=0;for(;yyfless(gmlf,16);(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf),g_yyPrePostObject__)){{__yy__v966.gmlstr_fix_a=__yy_gml_array_check(__yy__v966.gmlstr_fix_a,1450994054);__yy__v966.gmlstr_fix_a[__yy_gml_array_check_index_set(gmlf)]="";__yy__v966.gmlstr_fix_h=__yy_gml_array_check(__yy__v966.gmlstr_fix_h, 2277429967);__yy__v966.gmlstr_fix_h[__yy_gml_array_check_index_set(gmlf)]="";__yy__v966.gmlstr_scr_a=__yy_gml_array_check(__yy__v966.gmlstr_scr_a,2812288132);__yy__v966.gmlstr_scr_a[__yy_gml_array_check_index_set(gmlf)]="";__yy__v966.gmlstr_scr_h=__yy_gml_array_check(__yy__v966.gmlstr_scr_h,1986176973);__yy__v966.gmlstr_scr_h[__yy_gml_array_check_index_set(gmlf)]="";__yy__v966.gmlstr_fix_vs=__yy_gml_array_check(__yy__v966.gmlstr_fix_vs,2422994270);__yy__v966.gmlstr_fix_vs[__yy_gml_array_check_index_set(gmlf)]=""; __yy__v966.gmlstr_fix_alf=__yy_gml_array_check(__yy__v966.gmlstr_fix_alf,3437322217);__yy__v966.gmlstr_fix_alf[__yy_gml_array_check_index_set(gmlf)]=0.6;}};var gmlf=0;for(;yyfless(gmlf,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlschedule));(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf),g_yyPrePostObject__)){{var gmlfix=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlschedule,gmlf);if(yyfequal(ds_map_find_value(gmlfix,"week"), gmlw)){{var gmlteam_id1=ds_map_find_value(gmlfix,"away_team");var gmlteam_id2=ds_map_find_value(gmlfix,"home_team");var gmlscore1=ds_map_find_value(gmlfix,"away_score");var gmlscore2=ds_map_find_value(gmlfix,"home_score");var gmlteam_map1=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteamlist,gmlteam_id1);var gmlteam_map2=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteamlist,gmlteam_id2);var gmlteam_name1=ds_map_find_value(gmlteam_map1,"tla");var gmlteam_name2=ds_map_find_value(gmlteam_map2, "tla");if(yyGetBool(is_undefined(ds_map_find_value(gmlteam_map1,"tla")))){gmlteam_name1=string(gmlteam_id1);};if(yyGetBool(is_undefined(ds_map_find_value(gmlteam_map2,"tla")))){gmlteam_name2=string(gmlteam_id2);};var gmlconf_1=ds_map_find_value(gmlteam_map1,"conference");var gmlconf_2=ds_map_find_value(gmlteam_map2,"conference");var gmldiv_1=ds_map_find_value(gmlteam_map1,"division");var gmldiv_2=ds_map_find_value(gmlteam_map2,"division");__yy__v966.gmlstr_fix_a=__yy_gml_array_check(__yy__v966.gmlstr_fix_a, 1450994054);__yy__v966.gmlstr_fix_a[__yy_gml_array_check_index_set(gmlcount)]=gmlteam_name1;__yy__v966.gmlstr_fix_h=__yy_gml_array_check(__yy__v966.gmlstr_fix_h,2277429967);__yy__v966.gmlstr_fix_h[__yy_gml_array_check_index_set(gmlcount)]=gmlteam_name2;__yy__v966.gmlstr_scr_a=__yy_gml_array_check(__yy__v966.gmlstr_scr_a,2812288132);__yy__v966.gmlstr_scr_a[__yy_gml_array_check_index_set(gmlcount)]="";__yy__v966.gmlstr_scr_h=__yy_gml_array_check(__yy__v966.gmlstr_scr_h,1986176973);__yy__v966.gmlstr_scr_h[__yy_gml_array_check_index_set(gmlcount)]=""; __yy__v966.gmlstr_fix_vs=__yy_gml_array_check(__yy__v966.gmlstr_fix_vs,2422994270);__yy__v966.gmlstr_fix_vs[__yy_gml_array_check_index_set(gmlcount)]=yyfplus(__yy_gml_errCheck(gml_Script_s_str(__yy__v966,_inst,"tla_At"))," ");__yy__v966.gmlstr_fix_alf=__yy_gml_array_check(__yy__v966.gmlstr_fix_alf,3437322217);__yy__v966.gmlstr_fix_alf[__yy_gml_array_check_index_set(gmlcount)]=0.6;if((yyGetBool(yyfequal(gmlconf_1,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyconference)))&&(yyGetBool(yyfequal(gmldiv_1, yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmydivision)))){__yy__v966.gmlstr_fix_alf[__yy_gml_array_check_index_set(gmlcount)]=1;}else {if((yyGetBool(yyfequal(gmldiv_2,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmydivision)))&&(yyGetBool(yyfequal(gmlconf_2,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyconference)))){__yy__v966.gmlstr_fix_alf[__yy_gml_array_check_index_set(gmlcount)]=1;};};if(yyfgreater(gmlscore1,(-1))){{__yy__v966.gmlbuf=40;__yy__v966.gmlstr_fix_vs[__yy_gml_array_check_index_set(gmlcount)]=""; __yy__v966.gmlstr_scr_a[__yy_gml_array_check_index_set(gmlcount)]=string(gmlscore1);__yy__v966.gmlstr_scr_h[__yy_gml_array_check_index_set(gmlcount)]=string(gmlscore2);};};if((yyGetBool(yyfequal(gmlteam_id1,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id)))||(yyGetBool(yyfequal(gmlteam_id2,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id)))){__yy__v966.gmlhighlight=gmlcount;};(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount), g_yyPrePostObject__);};};}};}}};}}function gml_GlobalScript_s_create_credit(_inst,_other,argument0,argument1,argument2,argument3,argument4,argument5,argument6){(_inst.gmls_create_credit=__yy_method(_inst,gml_Script_s_create_credit));}function gml_Script_s_create_credit(_inst,_other,argument0,argument1,argument2,argument3,argument4,argument5,argument6,argument7){{var gmlcrd=instance_create_layer(0,0,"Instances",YYASSET_REF(0x00000066));yyInst(_inst,_other,gmlcrd).x=argument0;yyInst(_inst,_other,gmlcrd).y=argument1; yyInst(_inst,_other,gmlcrd).gmldes_x=argument2;yyInst(_inst,_other,gmlcrd).gmldes_y=argument3;yyInst(_inst,_other,gmlcrd).gmlvalue=argument4;yyInst(_inst,_other,gmlcrd).gmltype=argument5;yyInst(_inst,_other,gmlcrd).gmlpmap=argument6;var ___sw686___=yyInst(_inst,_other,gmlcrd).gmltype;var ___swc687___=-1;if(yyCompareVal(___sw686___,1,g_GMLMathEpsilon,false)==0){___swc687___=0;}else if(yyCompareVal(___sw686___,2,g_GMLMathEpsilon,false)==0){___swc687___=1;}switch(___swc687___){case 0:{yyInst(_inst,_other, gmlcrd).sprite_index=YYASSET_REF(0x01000069);break;}case 1:{yyInst(_inst,_other,gmlcrd).sprite_index=YYASSET_REF(0x01000065);break;}};if(yyfgreater(yyInst(_inst,_other,gmlcrd).gmlvalue,1)){yyInst(_inst,_other,gmlcrd).gmldes_scale=yyftime(yyInst(_inst,_other,gmlcrd).gmldes_scale,2);};if(yyGetBool(argument7)){gml_Script_s_sound(_inst,_other,YYASSET_REF(0x02000012));};}}function gml_GlobalScript_s_set_up_xp_headers(_inst,_other){(_inst.gmls_set_up_xp_headers=__yy_method(_inst,gml_Script_s_set_up_xp_headers)); }function gml_Script_s_set_up_xp_headers(_inst,_other,argument0,argument1){{gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus("s_set_up_xp_headers(show_skills:",__yy_gml_errCheck(string(argument0))),", show_xp:"),__yy_gml_errCheck(string(argument1))),")"));if(yyGetBool(argument0)){{ds_list_add(_inst.gmll_attitude,gml_Script_s_str(_inst,_other,"tla_Attitude"));ds_list_add(_inst.gmll_names,gml_Script_s_str(_inst,_other,"ui_Name"));ds_list_add(_inst.gmll_pos,gml_Script_s_str(_inst,_other, "tla_Position"));ds_list_add(_inst.gmll_condition,gml_Script_s_str(_inst,_other,"tla_Condition"));ds_list_add(_inst.gmll_resting,"");ds_list_add(_inst.gmll_yards,gml_Script_s_str(_inst,_other,"tla_Skill"));ds_list_add(_inst.gmll_tds,gml_Script_s_str(_inst,_other,"tla_Strength"));ds_list_add(_inst.gmll_tackles,gml_Script_s_str(_inst,_other,"tla_Speed"));ds_list_add(_inst.gmll_intsacks,gml_Script_s_str(_inst,_other,"tla_Stamina"));if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{ds_list_add(_inst.gmll_suspended, "");};};if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)){ds_list_add(_inst.gmll_fumbles,0);}else {ds_list_add(_inst.gmll_fumbles,gml_Script_s_str(_inst,_other,"tla_Salary"));};ds_list_add(_inst.gmll_rating,gml_Script_s_str(_inst,_other,"tla_Contract"));if(yyGetBool(argument1)){{ds_list_add(_inst.gmll_xp,yyfplus("+",__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_XP"))));ds_list_add(_inst.gmll_levelup,gml_Script_s_str(_inst,_other,"short_LevelUp"));};}else {{if(yyGetBool(gml_Script_s_is_co_mode(_inst, _other))){{ds_list_add(_inst.gmll_xp,gml_Script_s_str(_inst,_other,"ui_Year_Short"));};}else {{ds_list_add(_inst.gmll_xp,gml_Script_s_str(_inst,_other,"tla_Age"));};};ds_list_add(_inst.gmll_levelup,gml_Script_s_str(_inst,_other,"short_LevelXP"));};};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{ds_list_add(_inst.gmll_gpa,gml_Script_s_str(_inst,_other,"ui_GPA"));ds_list_add(_inst.gmll_gpa_col,16777215);};};var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster)); (g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster,gmli);ds_list_add(_inst.gmll_attitude,ds_map_find_value(gmlpmap,"attitude"));ds_list_add(_inst.gmll_names,gml_Script_s_get_player_name(_inst,_other,gmlpmap,true));ds_list_add(_inst.gmll_pos,ds_map_find_value(gmlpmap,"position"));ds_list_add(_inst.gmll_condition,ds_map_find_value(gmlpmap,"condition"));ds_list_add(_inst.gmll_resting, ds_map_find_value(gmlpmap,"resting"));ds_list_add(_inst.gmll_yards,ds_map_find_value(gmlpmap,"skill"));ds_list_add(_inst.gmll_tds,ds_map_find_value(gmlpmap,"strength"));ds_list_add(_inst.gmll_tackles,ds_map_find_value(gmlpmap,"speed"));ds_list_add(_inst.gmll_intsacks,ds_map_find_value(gmlpmap,"stamina"));if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{ds_list_add(_inst.gmll_suspended,ds_map_find_value(gmlpmap,"suspended"));};};if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)){ ds_list_add(_inst.gmll_fumbles,gml_Script_s_get_player_rating(_inst,_other,gmlpmap));}else {ds_list_add(_inst.gmll_fumbles,yyfplus(yyfplus("$",__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"salary")))),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"sla_Million"))));};ds_list_add(_inst.gmll_rating,yyfplus(__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"contract"))),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"sla_Year"))));if(yyGetBool(argument1)){{ds_list_add(_inst.gmll_xp,ds_map_find_value(gmlpmap, "xp_gain"));if(yyGetBool(gml_Script_s_has_xp_gain(_inst,_other,gmlpmap))){ds_list_add(_inst.gmll_levelup,yyfplus("flash_",__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Yes"))));}else {ds_list_add(_inst.gmll_levelup,gml_Script_s_str(_inst,_other,"ui_No"));};};}else {{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{ds_list_add(_inst.gmll_xp,gml_Script_s_college_age_simple_short(_inst,_other,gmlpmap));};}else {{ds_list_add(_inst.gmll_xp,ds_map_find_value(gmlpmap,"age"));};};ds_list_add(_inst.gmll_levelup, ds_map_find_value(gmlpmap,"xp_level"));};};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{var gmlgrade=ds_map_find_value(gmlpmap,"percent_grade");if(yyGetBool(ds_map_exists(gmlpmap,"saved_percent_grade"))){{gmlgrade=ds_map_find_value(gmlpmap,"saved_percent_grade");ds_map_delete(gmlpmap,"saved_percent_grade");};};gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("rm_xp/CreateA: ",__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname")))," grade:"),__yy_gml_errCheck(string(gmlgrade))), "/"),__yy_gml_errCheck(gml_Script_s_gpa_string_direct(_inst,_other,gmlgrade))));ds_list_add(_inst.gmll_gpa,gmlgrade);ds_list_add(_inst.gmll_gpa_col,gml_Script_s_player_gpa_color(_inst,_other,gmlpmap));};};}};};}else {{ds_list_add(_inst.gmll_attitude,gml_Script_s_str(_inst,_other,"tla_Attitude"));ds_list_add(_inst.gmll_names,gml_Script_s_str(_inst,_other,"ui_Name"));ds_list_add(_inst.gmll_pos,gml_Script_s_str(_inst,_other,"tla_Position"));ds_list_add(_inst.gmll_condition,gml_Script_s_str(_inst,_other, "tla_Condition"));ds_list_add(_inst.gmll_resting,"");ds_list_add(_inst.gmll_yards,gml_Script_s_str(_inst,_other,"ui_stat_yards"));ds_list_add(_inst.gmll_tds,gml_Script_s_str(_inst,_other,"ui_stat_touchdowns"));ds_list_add(_inst.gmll_tackles,gml_Script_s_str(_inst,_other,"ui_stat_tackles"));ds_list_add(_inst.gmll_intsacks,gml_Script_s_str(_inst,_other,"ui_stat_intsacks"));ds_list_add(_inst.gmll_fumbles,gml_Script_s_str(_inst,_other,"ui_stat_fumbles"));ds_list_add(_inst.gmll_rating,gml_Script_s_str(_inst, _other,"tla_Rating"));ds_list_add(_inst.gmll_xp,yyfplus("+",__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_XP"))));ds_list_add(_inst.gmll_levelup,gml_Script_s_str(_inst,_other,"short_LevelUp"));if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{ds_list_add(_inst.gmll_suspended,"");};};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{ds_list_add(_inst.gmll_gpa,gml_Script_s_str(_inst,_other,"ui_GPA"));ds_list_add(_inst.gmll_gpa_col,16777215);};};var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster,gmli);var gmlpos=ds_map_find_value(gmlpmap,"position");var gmlcon=ds_map_find_value(gmlpmap,"condition");var gmlrst=ds_map_find_value(gmlpmap,"resting");var gmlatt=ds_map_find_value(gmlpmap,"attitude");var gmlyds=string(round(yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap, "stat_yards")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_rush_yards"))),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_return_yards")))));var gmltds=string(yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_touchdowns")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_rush_touchdowns"))),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_return_tds"))));var gmlfum=string(ds_map_find_value(gmlpmap,"stat_fumbles"));var gmltck=string(ds_map_find_value(gmlpmap,"stat_tackles")); var gmlintsck="-";var gmlxpg=ds_map_find_value(gmlpmap,"xp_gain");var ___sw690___=gmlpos;var ___swc691___=-1;if(yyCompareVal(___sw690___,1,g_GMLMathEpsilon,false)==0){___swc691___=0;}else if(yyCompareVal(___sw690___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw690___,7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw690___,8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw690___,9,g_GMLMathEpsilon,false)==0){___swc691___=1;}else if(yyCompareVal(___sw690___,10,g_GMLMathEpsilon,false)==0){___swc691___=2; }switch(___swc691___){case 0:{gmltck="-";gmlintsck=yyfplus(yyfplus(__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"stat_int"))),"/"),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"stat_sacks"))));break;}case 1:{gmlintsck=yyfplus(yyfplus(__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"stat_int"))),"/"),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"stat_sacks"))));break;}case 2:{gmltck="-";gmltds="-";gmlfum="-";break;}};var gmlrat=string(gml_Script_s_get_match_rating(_inst,_other,gmlpmap)); if((yyGetBool((yyGetBool(yyfless(ds_map_find_value(gmlpmap,"condition"),0)))&&(yyGetBool(yyfnotequal(ds_map_find_value(gmlpmap,"injury_week"),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek)))))||(yyGetBool(gml_Script_s_player_benched(_inst,_other,gmlpmap)))||(yyGetBool((yyGetBool(ds_map_exists(gmlpmap,"backup")))&&(yyGetBool(ds_map_find_value(gmlpmap,"backup")))))){{gmlfum="-";gmltck="-";gmlintsck="-";if((yyGetBool(!yyGetBool(ds_map_exists(gmlpmap,"kr"))))||(yyGetBool(!yyGetBool(ds_map_find_value(gmlpmap, "kr"))))){{gmlyds="-";gmltds="-";gmlrat="-";};};};};ds_list_add(_inst.gmll_names,gml_Script_s_get_player_name(_inst,_other,gmlpmap,true));ds_list_add(_inst.gmll_attitude,gmlatt);ds_list_add(_inst.gmll_pos,gmlpos);ds_list_add(_inst.gmll_condition,gmlcon);ds_list_add(_inst.gmll_resting,gmlrst);ds_list_add(_inst.gmll_yards,gmlyds);ds_list_add(_inst.gmll_tds,gmltds);ds_list_add(_inst.gmll_fumbles,gmlfum);ds_list_add(_inst.gmll_tackles,gmltck);ds_list_add(_inst.gmll_intsacks,gmlintsck);ds_list_add(_inst.gmll_rating, gmlrat);ds_list_add(_inst.gmll_xp,gmlxpg);if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{ds_list_add(_inst.gmll_suspended,ds_map_find_value(gmlpmap,"suspended"));};};if(yyGetBool(gml_Script_s_has_xp_gain(_inst,_other,gmlpmap))){ds_list_add(_inst.gmll_levelup,yyfplus("flash_",__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Yes"))));}else {ds_list_add(_inst.gmll_levelup,gml_Script_s_str(_inst,_other,"ui_No"));};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{var gmlgrade=ds_map_find_value(gmlpmap, "percent_grade");if(yyGetBool(ds_map_exists(gmlpmap,"saved_percent_grade"))){{gmlgrade=ds_map_find_value(gmlpmap,"saved_percent_grade");ds_map_delete(gmlpmap,"saved_percent_grade");};};gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("rm_xp/CreateB: ",__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname")))," grade:"),__yy_gml_errCheck(string(gmlgrade))),"/"),__yy_gml_errCheck(gml_Script_s_gpa_string_direct(_inst,_other,gmlgrade))));ds_list_add(_inst.gmll_gpa,gmlgrade);ds_list_add(_inst.gmll_gpa_col, gml_Script_s_player_gpa_color(_inst,_other,gmlpmap));};};}};};};}}function gml_GlobalScript_s_count_hof_entries(_inst,_other){(_inst.gmls_count_hof_entries=__yy_method(_inst,gml_Script_s_count_hof_entries));}function gml_Script_s_count_hof_entries(_inst,_other){{{var __yy__v967=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v968 in __yy__v967){if(!__yy__v967.hasOwnProperty(__yy__v968))continue;var __yy__v969=__yy__v967[__yy__v968];{var gmlcount=0;var gmlr=0;for(;yyfless(gmlr,ds_list_size(__yy__v969.gmlroster)); (g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v969.gmlroster,gmlr);if((yyGetBool(gmlpmap))&&(yyGetBool(ds_map_exists(gmlpmap,"hof")))&&(yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"hof"),true)))){(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__);};}};gmlcount=yyfplus(gmlcount,ds_list_size(__yy__v969.gmlhoflist));return gmlcount; }}};}}function gml_GlobalScript_s_set_up_hof_players_screen(_inst,_other){(_inst.gmls_set_up_hof_players_screen=__yy_method(_inst,gml_Script_s_set_up_hof_players_screen));}function gml_Script_s_set_up_hof_players_screen(_inst,_other){{yyInst(_inst,_other,100209).visible=false;yyInst(_inst,_other,100210).visible=false;yyInst(_inst,_other,100211).visible=false;var gmlhof_list=ds_list_create();var gmlr=0;for(;yyfless(gmlr,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster));(g_yyPrePostObject__=gmlr, gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster,gmlr);if((yyGetBool(gmlpmap))&&(yyGetBool(ds_map_exists(gmlpmap,"hof")))){{if(yyfequal(ds_map_find_value(gmlpmap,"hof"),true)){{ds_list_add(gmlhof_list,gmlpmap);};};};};}};var gmlr=0;for(;yyfless(gmlr,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhoflist));(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr), g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhoflist,gmlr);if((yyGetBool(ds_exists(gmlpmap,1)))&&(yyGetBool(ds_map_exists(gmlpmap,"hof")))){ds_list_add(gmlhof_list,ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhoflist,gmlr));};}};var gmlsize=ds_list_size(gmlhof_list);if(yyfequal(gmlsize,0)){{ds_list_destroy(gmlhof_list);gmlhof_list=(-1);return;};};gmlhof_list=gml_Script_s_sort_players(_inst,_other,gmlhof_list,3);yyInst(_inst, _other,100208).visible=false;gml_Script_slog(_inst,_other,yyfplus("SIZE = ",__yy_gml_errCheck(string(ds_list_size(gmlhof_list)))));var gmlmax_pages=ceil(yyfdivide(__yy_gml_errCheck(gmlsize),10));if(yyfgreater(gmlmax_pages,1)){yyInst(_inst,_other,100211).visible=true;};if(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhof_page,1)){yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhof_page=1;}else {if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhof_page,gmlmax_pages)){yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlhof_page=gmlmax_pages;};};yyInst(_inst,_other,100209).visible=false;if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhof_page,1)){yyInst(_inst,_other,100209).visible=true;};yyInst(_inst,_other,100210).visible=false;if(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhof_page,gmlmax_pages)){yyInst(_inst,_other,100210).visible=true;};yyInst(_inst,_other,100211).gmltext=yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other, "ui_Page"))," "),__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhof_page))),"/"),__yy_gml_errCheck(string(gmlmax_pages)));if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhof_page,1)){{var gmlr=0;for(;yyfless(gmlr,yyftime(10,__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhof_page),1))));(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{ds_list_delete(gmlhof_list, 0);}};};};while(yyfgreater(ds_list_size(gmlhof_list),10)){{ds_list_delete(gmlhof_list,yyfminus(__yy_gml_errCheck(ds_list_size(gmlhof_list)),1));}};gmlsize=ds_list_size(gmlhof_list);var gmlpx=round(yyftime(__yy_gml_errCheck(g_pBuiltIn.room_width),0.5));var gmlpy=round(yyftime(__yy_gml_errCheck(g_pBuiltIn.room_height),0.45));var gmlpw=yyfplus(__yy_gml_errCheck(sprite_get_width(YYASSET_REF(0x010000AC))),8);if(yyfgreater(gmlsize,5)){{gmlpy=yyfminus(gmlpy,24);gmlpx=yyfminus(gmlpx,yyftime(4,__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlpw), 0.5))));};}else {{gmlpx=yyfminus(gmlpx,yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlsize),1)),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlpw),0.5))));};};var gmluniform=instance_create_layer(0,0,"Instances",YYASSET_REF(0x00000085));yyInst(_inst,_other,gmluniform).visible=false;gml_Script_s_load_uniform_file2(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id,gmluniform,0,"");gml_Script_slog(_inst,_other,yyfplus("Hof list size = ",__yy_gml_errCheck(string(gmlsize)))); var gmlproTeams=(-4);if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gmlproTeams=gml_Script_s_load_pro_teams(_inst,_other);};};var gmlr=0;for(;yyfless(gmlr,gmlsize);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(gmlhof_list,gmlr);if(!yyGetBool(gmlpmap)){continue;};_inst.gmlroster_profile=__yy_gml_array_check(_inst.gmlroster_profile,917944806);_inst.gmlroster_profile[__yy_gml_array_check_index_set(gmlr)]=instance_create_layer(0, 0,"Instances",YYASSET_REF(0x00000032));if(yyGetBool(global.gmljefebuild)){{yyInst(_inst,_other,_inst.gmlroster_profile[__yy_gml_array_check_index(gmlr,_inst.gmlroster_profile)]).gmlonHoldAction=kgml_Script_btn_click_Profile_JefeOutOfRetirement;};};yyInst(_inst,_other,_inst.gmlroster_profile[__yy_gml_array_check_index(gmlr,_inst.gmlroster_profile)]).gmlpmap=gmlpmap;{var __yy__v970=GetWithArray(_inst.gmlroster_profile[__yy_gml_array_check_index(gmlr,_inst.gmlroster_profile)]);for(var __yy__v971 in __yy__v970){ if(!__yy__v970.hasOwnProperty(__yy__v971))continue;var __yy__v972=__yy__v970[__yy__v971];gml_Script_s_set_up_uniform_profile(__yy__v972,_inst,gmluniform);}};gml_Script_slog(_inst,_other,ds_map_find_value(gmlpmap,"lname"));var gmlteamid=ds_map_find_value(gmlpmap,"teamid");var gmlteam=gml_Script_s_get_team_by_id(_inst,_other,gmlteamid);if(yyGetBool(gmlteam)){yyInst(_inst,_other,_inst.gmlroster_profile[__yy_gml_array_check_index(gmlr,_inst.gmlroster_profile)]).gmlmy_tla=ds_map_find_value(gmlteam,"tla"); };if((yyGetBool(gml_Script_s_is_co_mode(_inst,_other)))&&(yyGetBool(ds_map_exists(gmlpmap,"drafted_pro_team")))&&(yyGetBool(yyfnotequal(ds_map_find_value(gmlpmap,"drafted_pro_team"),"")))){{var gmli=0;for(;yyfless(gmli,ds_list_size(gmlproTeams));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlproTeam=ds_list_find_value(gmlproTeams,gmli);if(yyfequal(ds_map_find_value(gmlproTeam,"uid"),ds_map_find_value(gmlpmap,"drafted_pro_team"))){ {yyInst(_inst,_other,_inst.gmlroster_profile[__yy_gml_array_check_index(gmlr,_inst.gmlroster_profile)]).gmlmy_tla=yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlteam,"tla")),">"),__yy_gml_errCheck(ds_map_find_value(gmlproTeam,"tla")));break;};};}};};};yyInst(_inst,_other,_inst.gmlroster_profile[__yy_gml_array_check_index(gmlr,_inst.gmlroster_profile)]).x=yyfminus(__yy_gml_errCheck(gmlpx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlpw),0.5)));yyInst(_inst,_other,_inst.gmlroster_profile[__yy_gml_array_check_index(gmlr, _inst.gmlroster_profile)]).y=yyfminus(__yy_gml_errCheck(gmlpy),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlroster_profile[__yy_gml_array_check_index(0,_inst.gmlroster_profile)]).sprite_height),0.5)));gmlpx=yyfplus(gmlpx,gmlpw);if(yyfequal(gmlr,4)){{var gmlsz=yyfminus(__yy_gml_errCheck(min(gmlsize,10)),5);gmlpx=yyftime(__yy_gml_errCheck(g_pBuiltIn.room_width),0.5);gmlpx=yyfminus(gmlpx,yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlsz),1)),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlpw), 0.5))));gmlpy=yyfplus(gmlpy,88);};};}};ds_list_destroy(gmlhof_list);gmlhof_list=(-1);}}function gml_GlobalScript_s_iap_init(_inst,_other){(_inst.gmls_iap_init=__yy_method(_inst,gml_Script_s_iap_init));}function gml_Script_s_iap_init(_inst,_other){{gml_Script_slog(_inst,_other,"_s_iap_init__________________");var ___sw694___=g_pBuiltIn.get_os_type();var ___swc695___=-1;if(yyCompareVal(___sw694___,4,g_GMLMathEpsilon,false)==0){___swc695___=0;}else if(yyCompareVal(___sw694___,3,g_GMLMathEpsilon,false)==0){ ___swc695___=1;}switch(___swc695___){case 0:{gml_Script_slog(_inst,_other,"s_iap_android");global.gmlCurrentTokens=ds_list_create();global.gmlCurrentProducts=ds_list_create();var gml_init=extension_stubfunc_real();if(yyfequal(gml_init,(-1))){{gml_Script_slog(_inst,_other,"ERROR - Billing API Has Not Connected!");yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm=__yy_gml_array_check(yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm,3662155414);yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm[__yy_gml_array_check_index_set(0)]=yyftime(__yy_gml_errCheck(g_pBuiltIn.get_room_speed()), 10);};};break;}case 1:{gml_Script_slog(_inst,_other,"s_iap_init: ios");if((yyGetBool(!yyGetBool(global.gmlIAP_Enabled)))&&(yyGetBool(extension_stubfunc_real()))){{gml_Script_slog(_inst,_other,"ios_iap_IsAuthorisedForPayment == true");extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~0])]);extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(1,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0, global.gmlIAP_PurchaseID[~~1])]);extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(2,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~2])]);extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(3,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~3])]);extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(4,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0, global.gmlIAP_PurchaseID[~~4])]);extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(5,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~5])]);extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(6,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~6])]);extension_stubfunc_real();};}else {{gml_Script_slog(_inst,_other,"ios_iap_IsAuthorisedForPayment == false");yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm=__yy_gml_array_check(yyInst(_inst, _other,YYASSET_REF(0x00000062)).alarm,3662155414);yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm[__yy_gml_array_check_index_set(0)]=yyftime(__yy_gml_errCheck(g_pBuiltIn.get_room_speed()),10);};};break;}};}}function gml_GlobalScript_s_set_up_purchase_ids(_inst,_other){(_inst.gmls_set_up_purchase_ids=__yy_method(_inst,gml_Script_s_set_up_purchase_ids));}function gml_Script_s_set_up_purchase_ids(_inst,_other){{gml_Script_slog(_inst,_other,"s_set_up_purchase_ids");global.gmlcredits_20="credits_20"; global.gmlcredits_50="credits_50";global.gmlcredits_100="credits_100";global.gmlcredits_250="credits_250";global.gmlcredits_25="credits_25";global.gmlcredits_75="credits_75";global.gmlrb_full_version="rb_full_version";if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{global.gmlcredits_20="college_credits_500";global.gmlcredits_50="college_credits_50";global.gmlcredits_100="college_credits_100";global.gmlcredits_250="college_credits_250";global.gmlcredits_25="college_credits_25";global.gmlcredits_75="college_credits_75"; global.gmlrb_full_version="college_full_version";};};gml_Script_slog(_inst,_other,yyfplus(yyfplus("s_set_up_purchase_ids... using style (credits_20)->(",__yy_gml_errCheck(string(global.gmlcredits_20))),")"));global.gmlIAP_PurchaseID=__yy_gml_array_check(global.gmlIAP_PurchaseID,3134966082);global.gmlIAP_PurchaseID[__yy_gml_array_check_index_chain(0,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index_set(0)]=global.gmlrb_full_version;global.gmlIAP_PurchaseID[__yy_gml_array_check_index_chain(1,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index_set(0)]=global.gmlcredits_20; global.gmlIAP_PurchaseID[__yy_gml_array_check_index_chain(2,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index_set(0)]=global.gmlcredits_50;global.gmlIAP_PurchaseID[__yy_gml_array_check_index_chain(3,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index_set(0)]=global.gmlcredits_100;global.gmlIAP_PurchaseID[__yy_gml_array_check_index_chain(4,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index_set(0)]=global.gmlcredits_250;global.gmlIAP_PurchaseID[__yy_gml_array_check_index_chain(5,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index_set(0)]=global.gmlcredits_25; global.gmlIAP_PurchaseID[__yy_gml_array_check_index_chain(6,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index_set(0)]=global.gmlcredits_75;var gmli=1;for(;yyfless(gmli,4);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{global.gmlIAP_PurchaseID[__yy_gml_array_check_index_chain(0,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index_set(gmli)]="";global.gmlIAP_PurchaseID[__yy_gml_array_check_index_chain(1,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index_set(gmli)]=""; global.gmlIAP_PurchaseID[__yy_gml_array_check_index_chain(2,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index_set(gmli)]="";global.gmlIAP_PurchaseID[__yy_gml_array_check_index_chain(3,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index_set(gmli)]="";global.gmlIAP_PurchaseID[__yy_gml_array_check_index_chain(4,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index_set(gmli)]="";global.gmlIAP_PurchaseID[__yy_gml_array_check_index_chain(5,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index_set(gmli)]=""; global.gmlIAP_PurchaseID[__yy_gml_array_check_index_chain(6,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index_set(gmli)]="";}};}}function gml_GlobalScript_s_iap_async_android(_inst,_other){(_inst.gmls_debug_purge_all_android_iap=__yy_method(_inst,gml_Script_s_debug_purge_all_android_iap));(_inst.gmls_iap_async_android=__yy_method(_inst,gml_Script_s_iap_async_android));}function gml_Script_s_debug_purge_all_android_iap(_inst,_other){{gml_Script_slog(_inst,_other,"s_debug_purge_all_android_iap"); gml_Script_slog(_inst,_other,yyfplus(yyfplus("Current Tokens [",__yy_gml_errCheck(string(ds_list_size(global.gmlCurrentTokens)))),"]"));var gmli=0;for(;yyfless(gmli,ds_list_size(global.gmlCurrentTokens));(gmli=(gmli instanceof Long?gmli.add(1):++gmli),gmli)){{gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus("..Current Tokens[",__yy_gml_errCheck(string(gmli))),"]:["),__yy_gml_errCheck(string(ds_list_find_value(global.gmlCurrentTokens,gmli)))),"]"));}};gml_Script_slog(_inst,_other,yyfplus(yyfplus("Current Products [", __yy_gml_errCheck(string(ds_list_size(global.gmlCurrentProducts)))),"]"));var gmli=0;for(;yyfless(gmli,ds_list_size(global.gmlCurrentProducts));(gmli=(gmli instanceof Long?gmli.add(1):++gmli),gmli)){{gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus("..Current Products[",__yy_gml_errCheck(string(gmli))),"]:["),__yy_gml_errCheck(string(ds_list_find_value(global.gmlCurrentProducts,gmli)))),"]"));}};}}function gml_Script_s_iap_async_android(_inst,_other){{gml_Script_slog(_inst,_other,"s_iap_async_android"); var gml_eventId=ds_map_find_value(g_pBuiltIn.get_async_load(),"id");if(!yyGetBool(ds_exists(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,1))){gml_Script_s_create_map_options(_inst,_other);};var ___sw698___=gml_eventId;var ___swc699___=-1;if(yyCompareVal(___sw698___,12005,g_GMLMathEpsilon,false)==0){___swc699___=0;}else if(yyCompareVal(___sw698___,12006,g_GMLMathEpsilon,false)==0){___swc699___=1;}else if(yyCompareVal(___sw698___,12003,g_GMLMathEpsilon,false)==0){___swc699___=2;}else if(yyCompareVal(___sw698___, 12010,g_GMLMathEpsilon,false)==0){___swc699___=3;}else if(yyCompareVal(___sw698___,12001,g_GMLMathEpsilon,false)==0){___swc699___=4;}else if(yyCompareVal(___sw698___,12007,g_GMLMathEpsilon,false)==0){___swc699___=5;}else if(yyCompareVal(___sw698___,12008,g_GMLMathEpsilon,false)==0){___swc699___=6;}switch(___swc699___){case 0:{gml_Script_slog(_inst,_other,"gpb_store_connect");extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0, global.gmlIAP_PurchaseID[~~0])]);extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(1,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~1])]);extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(2,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~2])]);extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(3,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0, global.gmlIAP_PurchaseID[~~3])]);extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(4,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~4])]);extension_stubfunc_real();break;}case 1:{gml_Script_slog(_inst,_other,"gpb_store_connect_failed");yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm=__yy_gml_array_check(yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm,3662155414);yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm[__yy_gml_array_check_index_set(0)]=yyftime(__yy_gml_errCheck(g_pBuiltIn.get_room_speed()), 10);break;}case 2:{gml_Script_slog(_inst,_other,"gpb_product_data_response");var gml_json=ds_map_find_value(g_pBuiltIn.get_async_load(),"response_json");var gml_map=json_decode(gml_json);if(yyfequal(ds_map_find_value(gml_map,"success"),true)){{global.gmlIAP_Enabled=true;var gml_plist=ds_map_find_value(gml_map,"skuDetails");gml_Script_slog(_inst,_other,yyfplus(yyfplus("gpb_product_data_response skuDetails count[",__yy_gml_errCheck(string(ds_list_size(gml_plist)))),"]"));var gmli=0;for(;yyfless(gmli,ds_list_size(gml_plist)); (gmli=(gmli instanceof Long?gmli.add(1):++gmli),gmli)){{var gml_pmap=ds_list_find_value(gml_plist,gmli);var gml_num=0;while(yyfnotequal(ds_map_find_value(gml_pmap,"productId"),global.gmlIAP_PurchaseID[__yy_gml_array_check_index(gml_num,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~gml_num])])){{(gml_num=(gml_num instanceof Long?gml_num.add(1):++gml_num),gml_num);}};gml_Script_slog(_inst,_other,ds_map_find_value(gml_pmap,"productId"));gml_Script_slog(_inst,_other,ds_map_find_value(gml_pmap, "price"));gml_Script_slog(_inst,_other,ds_map_find_value(gml_pmap,"title"));gml_Script_slog(_inst,_other,ds_map_find_value(gml_pmap,"description"));global.gmlIAP_PurchaseID=__yy_gml_array_check(global.gmlIAP_PurchaseID,3134966082);global.gmlIAP_PurchaseID[__yy_gml_array_check_index_chain(gml_num,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index_set(0)]=ds_map_find_value(gml_pmap,"productId");global.gmlIAP_PurchaseID[__yy_gml_array_check_index_chain(gml_num,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index_set(1)]=ds_map_find_value(gml_pmap, "price");global.gmlIAP_PurchaseID[__yy_gml_array_check_index_chain(gml_num,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index_set(3)]=ds_map_find_value(gml_pmap,"title");global.gmlIAP_PurchaseID[__yy_gml_array_check_index_chain(gml_num,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index_set(2)]=ds_map_find_value(gml_pmap,"description");}};extension_stubfunc_string("\"inapp\"");};};ds_map_destroy(gml_map);gml_map=(-1);break;}case 3:{gml_Script_slog(_inst,_other,"gpb_query_purchase_async");var gml_json=ds_map_find_value(g_pBuiltIn.get_async_load(), "response_json");var gml_purchase_map=json_decode(gml_json);if(yyfequal(ds_map_find_value(gml_purchase_map,"success"),true)){{var gml_list=ds_map_find_value(gml_purchase_map,"purchases");var gml_sz=ds_list_size(gml_list);var gmli=0;for(;yyfless(gmli,gml_sz);(gmli=(gmli instanceof Long?gmli.add(1):++gmli),gmli)){{var gml_map=ds_list_find_value(gml_list,gmli);if(yyfequal(ds_map_find_value(gml_map,"purchaseState"),0)){{var gml_pid=ds_map_find_value(gml_map,"productId");var gml_token=ds_map_find_value(gml_map, "purchaseToken");var gml_add=false;gml_Script_slog(_inst,_other,yyfplus(yyfplus("gpb_query_purchase_async - [",__yy_gml_errCheck(string(gml_pid))),"]"));if(yyfequal(gml_pid,global.gmlIAP_PurchaseID[__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~0])])){{gml_Script_slog(_inst,_other,yyfplus("gpb_query_purchase_async - acknowledged = ",__yy_gml_errCheck(string(ds_map_find_value(gml_map,"acknowledged")))));if(yyfequal(ds_map_find_value(gml_map, "acknowledged"),0)){{extension_stubfunc_real(gml_token);};}else {if(yyfequal(ds_map_find_value(gml_map,"acknowledged"),1)){{if(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"fullversion"))){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit,25);ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_weather",1);ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options, "op_replays",1);ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_kickoffs",1);audio_play_sound(YYASSET_REF(0x02000012),1,false);};};ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"fullversion",1);};};};gml_add=true;};}else {if((yyGetBool(yyfequal(gml_pid,global.gmlIAP_PurchaseID[__yy_gml_array_check_index(1,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~1])])))||(yyGetBool(yyfequal(gml_pid,global.gmlIAP_PurchaseID[__yy_gml_array_check_index(2, global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~2])])))||(yyGetBool(yyfequal(gml_pid,global.gmlIAP_PurchaseID[__yy_gml_array_check_index(3,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~3])])))||(yyGetBool(yyfequal(gml_pid,global.gmlIAP_PurchaseID[__yy_gml_array_check_index(4,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~4])])))){{gml_Script_slog(_inst,_other,yyfplus(yyfplus("gpb_query_purchase_async - Trigger CONSUME [", __yy_gml_errCheck(string(gml_pid))),"]"));extension_stubfunc_real(gml_token);gml_add=true;};};};if(yyGetBool(gml_add)){{ds_list_add(global.gmlCurrentTokens,gml_token);ds_list_add(global.gmlCurrentProducts,gml_pid);};};};};}};};};ds_map_destroy(gml_purchase_map);gml_purchase_map=(-1);break;}case 4:{gml_Script_slog(_inst,_other,"gpb_iap_receipt");var gml_json=ds_map_find_value(g_pBuiltIn.get_async_load(),"response_json");var gml_map=json_decode(gml_json);if(yyfequal(ds_map_find_value(gml_map,"success"), true)){{if(yyGetBool(ds_map_exists(gml_map,"purchases"))){{var gml_plist=ds_map_find_value(gml_map,"purchases");var gmli=0;for(;yyfless(gmli,ds_list_size(gml_plist));(gmli=(gmli instanceof Long?gmli.add(1):++gmli),gmli)){{var gml_pmap=ds_list_find_value(gml_plist,gmli);gml_Script_slog(_inst,_other,yyfplus(yyfplus("gpb_iap_receipt for [",__yy_gml_errCheck(string(ds_map_find_value(gml_pmap,"productId")))),"]"));var gml_ptoken=ds_map_find_value(gml_pmap,"purchaseToken");var gml_sig=extension_stubfunc_string(gml_ptoken); var gml_pjson=extension_stubfunc_string(gml_ptoken);if(yyGetBool(extension_stubfunc_real(gml_pjson,gml_sig))){{if(yyfequal(ds_map_find_value(gml_pmap,"productId"),global.gmlIAP_PurchaseID[__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~0])])){extension_stubfunc_real(gml_ptoken);}else {extension_stubfunc_real(gml_ptoken);};ds_list_add(global.gmlCurrentTokens,gml_ptoken);ds_list_add(global.gmlCurrentProducts,ds_map_find_value(gml_pmap,"productId")); };};}};};};};};gml_Script_s_unfreeze_purchase_buttons(_inst,_other);ds_map_destroy(gml_map);gml_map=(-1);break;}case 5:{gml_Script_slog(_inst,_other,"gpb_product_consume_response");var gml_json=ds_map_find_value(g_pBuiltIn.get_async_load(),"response_json");var gml_map=json_decode(gml_json);var gml_num=(-1);if(yyGetBool(ds_map_exists(gml_map,"purchaseToken"))){{var gmli=0;for(;yyfless(gmli,ds_list_size(global.gmlCurrentTokens));(gmli=(gmli instanceof Long?gmli.add(1):++gmli),gmli)){{if(yyfequal(ds_map_find_value(gml_map, "purchaseToken"),ds_list_find_value(global.gmlCurrentTokens,gmli))){{if(yyfequal(ds_list_find_value(global.gmlCurrentProducts,gmli),global.gmlIAP_PurchaseID[__yy_gml_array_check_index(1,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~1])])){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit,500);ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_credits_purchased", yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_credits_purchased")),500));yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlseason_credits_purchased=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlseason_credits_purchased,500);audio_play_sound(YYASSET_REF(0x02000012),1,false);gml_num=gmli;break;};}else {if(yyfequal(ds_list_find_value(global.gmlCurrentProducts,gmli),global.gmlIAP_PurchaseID[__yy_gml_array_check_index(2,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0, global.gmlIAP_PurchaseID[~~2])])){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit,50);ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_credits_purchased",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_credits_purchased")),50));yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlseason_credits_purchased=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlseason_credits_purchased, 50);audio_play_sound(YYASSET_REF(0x02000012),1,false);gml_num=gmli;break;};}else {if(yyfequal(ds_list_find_value(global.gmlCurrentProducts,gmli),global.gmlIAP_PurchaseID[__yy_gml_array_check_index(3,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~3])])){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit,100);ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_credits_purchased", yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_credits_purchased")),100));yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlseason_credits_purchased=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlseason_credits_purchased,100);audio_play_sound(YYASSET_REF(0x02000012),1,false);gml_num=gmli;break;};}else {if(yyfequal(ds_list_find_value(global.gmlCurrentProducts,gmli),global.gmlIAP_PurchaseID[__yy_gml_array_check_index(4,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0, global.gmlIAP_PurchaseID[~~4])])){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit,250);ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_credits_purchased",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_credits_purchased")),250));yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlseason_credits_purchased=yyfplus(yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlseason_credits_purchased,250);audio_play_sound(YYASSET_REF(0x02000012),1,false);gml_num=gmli;break;};};};};};};};}};gml_Script_s_savegame(_inst,_other);if(yyfgreater(gml_num,(-1))){{ds_list_delete(global.gmlCurrentProducts,gml_num);ds_list_delete(global.gmlCurrentTokens,gml_num);};};};}else {{};};gml_Script_s_unfreeze_purchase_buttons(_inst,_other);ds_map_destroy(gml_map);gml_map=(-1);break;}case 6:{gml_Script_slog(_inst,_other,"gpb_acknowledge_purchase_response");var gml_map=json_decode(ds_map_find_value(g_pBuiltIn.get_async_load(), "response_json"));var gml_num=(-1);if(yyGetBool(ds_map_exists(gml_map,"responseCode"))){{if(yyfequal(ds_map_find_value(gml_map,"responseCode"),0)){{var gmli=0;for(;yyfless(gmli,ds_list_size(global.gmlCurrentProducts));(gmli=(gmli instanceof Long?gmli.add(1):++gmli),gmli)){{if(yyfequal(ds_list_find_value(global.gmlCurrentProducts,gmli),global.gmlIAP_PurchaseID[__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~0])])){{if(!yyGetBool(ds_map_find_value(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlmap_options,"fullversion"))){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit,25);ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_weather",1);ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_replays",1);ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_kickoffs",1);audio_play_sound(YYASSET_REF(0x02000012), 1,false);};};ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"fullversion",1);gml_num=gmli;break;};};}};gml_Script_s_savegame(_inst,_other);if(yyfgreater(gml_num,(-1))){{ds_list_delete(global.gmlCurrentProducts,gml_num);ds_list_delete(global.gmlCurrentTokens,gml_num);};};};}else {{};};};};gml_Script_s_unfreeze_purchase_buttons(_inst,_other);ds_map_destroy(gml_map);gml_map=(-1);break;}};}}function gml_GlobalScript_s_iap_async_ios(_inst,_other){(_inst.gmls_iap_async_ios=__yy_method(_inst, gml_Script_s_iap_async_ios));}function gml_Script_s_iap_async_ios(_inst,_other){{gml_Script_slog(_inst,_other,"s_iap_async_ios");if(!yyGetBool(is_array(global.gmlIAP_PurchaseID))){gml_Script_s_set_up_purchase_ids(_inst,_other);};if(!yyGetBool(ds_exists(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,1))){gml_Script_s_create_map_options(_inst,_other);};var gml_eventId=(yyGetBool(ds_exists(g_pBuiltIn.get_async_load(),1))?ds_map_find_value(g_pBuiltIn.get_async_load(),"id"):(-4));var ___sw708___=gml_eventId; var ___swc709___=-1;if(yyCompareVal(___sw708___,23004,g_GMLMathEpsilon,false)==0){___swc709___=0;}else if(yyCompareVal(___sw708___,23000,g_GMLMathEpsilon,false)==0){___swc709___=1;}switch(___swc709___){case 0:{gml_Script_slog(_inst,_other,"s_iap_async: ios_product_update");global.gmlIAP_Enabled=true;var gml_json=ds_map_find_value(g_pBuiltIn.get_async_load(),"response_json");var gml_map=json_decode(gml_json);var gml_plist=ds_map_find_value(gml_map,"valid");var gml_sz=ds_list_size(gml_plist);var gmli=0;for(; yyfless(gmli,gml_sz);(gmli=(gmli instanceof Long?gmli.add(1):++gmli),gmli)){{var gml_pmap=ds_list_find_value(gml_plist,gmli);gml_Script_slog(_inst,_other,ds_map_find_value(gml_pmap,"productId"));var gml_pid=(-1);var ___sw710___=ds_map_find_value(gml_pmap,"productId");var ___swc711___=-1;if(yyCompareVal(___sw710___,global.gmlrb_full_version,g_GMLMathEpsilon,false)==0){___swc711___=0;}else if(yyCompareVal(___sw710___,global.gmlcredits_20,g_GMLMathEpsilon,false)==0){___swc711___=1;}else if(yyCompareVal(___sw710___, global.gmlcredits_50,g_GMLMathEpsilon,false)==0){___swc711___=2;}else if(yyCompareVal(___sw710___,global.gmlcredits_100,g_GMLMathEpsilon,false)==0){___swc711___=3;}else if(yyCompareVal(___sw710___,global.gmlcredits_250,g_GMLMathEpsilon,false)==0){___swc711___=4;}else if(yyCompareVal(___sw710___,global.gmlcredits_25,g_GMLMathEpsilon,false)==0){___swc711___=5;}else if(yyCompareVal(___sw710___,global.gmlcredits_75,g_GMLMathEpsilon,false)==0){___swc711___=6;}switch(___swc711___){case 0:{gml_pid=0;break;} case 1:{gml_pid=1;break;}case 2:{gml_pid=2;break;}case 3:{gml_pid=3;break;}case 4:{gml_pid=4;break;}case 5:{gml_pid=5;break;}case 6:{gml_pid=6;break;}};if(yyfgreater(gml_pid,(-1))){{global.gmlIAP_PurchaseID=__yy_gml_array_check(global.gmlIAP_PurchaseID,3134966082);global.gmlIAP_PurchaseID[__yy_gml_array_check_index_chain(gml_pid,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index_set(1)]=ds_map_find_value(gml_pmap,"price");global.gmlIAP_PurchaseID[__yy_gml_array_check_index_chain(gml_pid,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index_set(2)]=ds_map_find_value(gml_pmap, "localizedDescription");global.gmlIAP_PurchaseID[__yy_gml_array_check_index_chain(gml_pid,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index_set(3)]=ds_map_find_value(gml_pmap,"localizedTitle");};};}};ds_map_destroy(gml_map);gml_map=(-1);var gml_json=extension_stubfunc_string();if(yyfnotequal(gml_json,"")){{gml_Script_slog(_inst,_other,"checking for purchases...");var gml_map=json_decode(gml_json);var gml_plist=ds_map_find_value(gml_map,"purchases");var gml_sz=ds_list_size(gml_plist);var gmli=0;for(; yyfless(gmli,gml_sz);(gmli=(gmli instanceof Long?gmli.add(1):++gmli),gmli)){{var gml_pmap=ds_list_find_value(gml_plist,gmli);var gml_ptoken=ds_map_find_value(gml_pmap,"purchaseToken");if(yyfnotequal(ds_map_find_value(gml_pmap,"purchaseState"),23002)){{var gml_receipt=extension_stubfunc_string();if(yyfequal(extension_stubfunc_real(),true)){{var ___sw712___=ds_map_find_value(gml_pmap,"productId");var ___swc713___=-1;if(yyCompareVal(___sw712___,global.gmlrb_full_version,g_GMLMathEpsilon,false)==0){___swc713___=0; }else if(yyCompareVal(___sw712___,global.gmlcredits_20,g_GMLMathEpsilon,false)==0){___swc713___=1;}else if(yyCompareVal(___sw712___,global.gmlcredits_50,g_GMLMathEpsilon,false)==0){___swc713___=2;}else if(yyCompareVal(___sw712___,global.gmlcredits_100,g_GMLMathEpsilon,false)==0){___swc713___=3;}else if(yyCompareVal(___sw712___,global.gmlcredits_25,g_GMLMathEpsilon,false)==0){___swc713___=4;}else if(yyCompareVal(___sw712___,global.gmlcredits_75,g_GMLMathEpsilon,false)==0){___swc713___=5;}else if(yyCompareVal(___sw712___, global.gmlcredits_250,g_GMLMathEpsilon,false)==0){___swc713___=6;}switch(___swc713___){case 0:{gml_Script_slog(_inst,_other,"receipt for: rb_full_version");if(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"fullversion"))){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit,25);ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_weather",1);ds_map_set(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlmap_options,"op_replays",1);ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_kickoffs",1);audio_play_sound(YYASSET_REF(0x02000012),1,false);};};ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"fullversion",1);break;}case 1:{gml_Script_slog(_inst,_other,"receipt for: credits_20");yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit,500);ds_map_set(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlmap_options,"op_credits_purchased",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_credits_purchased")),500));yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlseason_credits_purchased=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlseason_credits_purchased,500);audio_play_sound(YYASSET_REF(0x02000012),1,false);break;}case 2:{gml_Script_slog(_inst,_other,"receipt for: credits_50");yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlcoach_credit=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit,50);ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_credits_purchased",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_credits_purchased")),50));yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlseason_credits_purchased=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlseason_credits_purchased,50); audio_play_sound(YYASSET_REF(0x02000012),1,false);break;}case 3:{gml_Script_slog(_inst,_other,"receipt for: credits_100");yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit,100);ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_credits_purchased",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_credits_purchased")),100));yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlseason_credits_purchased=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlseason_credits_purchased,100);audio_play_sound(YYASSET_REF(0x02000012),1,false);break;}case 4:{gml_Script_slog(_inst,_other,"receipt for: credits_25");yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit,25);ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_credits_purchased",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlmap_options,"op_credits_purchased")),25));yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlseason_credits_purchased=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlseason_credits_purchased,25);audio_play_sound(YYASSET_REF(0x02000012),1,false);break;}case 5:{gml_Script_slog(_inst,_other,"receipt for: credits_75");yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit,75);ds_map_set(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlmap_options,"op_credits_purchased",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_credits_purchased")),75));yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlseason_credits_purchased=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlseason_credits_purchased,75);audio_play_sound(YYASSET_REF(0x02000012),1,false);break;}case 6:{gml_Script_slog(_inst,_other,"receipt for: credits_250");yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlcoach_credit=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit,250);ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_credits_purchased",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_credits_purchased")),250));yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlseason_credits_purchased=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlseason_credits_purchased,250); audio_play_sound(YYASSET_REF(0x02000012),1,false);break;}};gml_Script_s_savegame(_inst,_other);gml_Script_s_unfreeze_purchase_buttons(_inst,_other);};}else {{gml_Script_s_unfreeze_purchase_buttons(_inst,_other);};};};}else {{gml_Script_s_unfreeze_purchase_buttons(_inst,_other);};};extension_stubfunc_real(gml_ptoken);ds_map_destroy(gml_pmap);gml_pmap=(-1);}};ds_map_destroy(gml_map);gml_map=(-1);};};break;}case 1:{gml_Script_slog(_inst,_other,"s_iap_async: ios_payment_queue_update");var gml_json=ds_map_find_value(g_pBuiltIn.get_async_load(), "response_json");if(yyfnotequal(gml_json,"")){{gml_Script_slog(_inst,_other,gml_json);var gml_map=json_decode(gml_json);if(yyGetBool(ds_map_exists(gml_map,"purchases"))){{var gml_plist=ds_map_find_value(gml_map,"purchases");var gml_sz=ds_list_size(gml_plist);var gmli=0;for(;yyfless(gmli,gml_sz);(gmli=(gmli instanceof Long?gmli.add(1):++gmli),gmli)){{var gml_pmap=ds_list_find_value(gml_plist,gmli);var gml_ptoken=ds_map_find_value(gml_pmap,"purchaseToken");if(yyfnotequal(ds_map_find_value(gml_pmap,"purchaseState"), 23002)){{var gml_receipt=extension_stubfunc_string();if(yyfequal(extension_stubfunc_real(),true)){{var ___sw714___=ds_map_find_value(gml_pmap,"productId");var ___swc715___=-1;if(yyCompareVal(___sw714___,global.gmlrb_full_version,g_GMLMathEpsilon,false)==0){___swc715___=0;}else if(yyCompareVal(___sw714___,global.gmlcredits_20,g_GMLMathEpsilon,false)==0){___swc715___=1;}else if(yyCompareVal(___sw714___,global.gmlcredits_50,g_GMLMathEpsilon,false)==0){___swc715___=2;}else if(yyCompareVal(___sw714___,global.gmlcredits_100, g_GMLMathEpsilon,false)==0){___swc715___=3;}else if(yyCompareVal(___sw714___,global.gmlcredits_25,g_GMLMathEpsilon,false)==0){___swc715___=4;}else if(yyCompareVal(___sw714___,global.gmlcredits_75,g_GMLMathEpsilon,false)==0){___swc715___=5;}else if(yyCompareVal(___sw714___,global.gmlcredits_250,g_GMLMathEpsilon,false)==0){___swc715___=6;}switch(___swc715___){case 0:{gml_Script_slog(_inst,_other,"receipt for: rb_full_version");if(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options, "fullversion"))){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit,25);ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_weather",1);ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_replays",1);ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_kickoffs",1);audio_play_sound(YYASSET_REF(0x02000012),1,false);};};ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options, "fullversion",1);break;}case 1:{gml_Script_slog(_inst,_other,"receipt for: credits_20");yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit,500);ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_credits_purchased",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_credits_purchased")),500));yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlseason_credits_purchased=yyfplus(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlseason_credits_purchased,500);audio_play_sound(YYASSET_REF(0x02000012),1,false);break;}case 2:{gml_Script_slog(_inst,_other,"receipt for: credits_50");yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit,50);ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_credits_purchased",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options, "op_credits_purchased")),50));yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlseason_credits_purchased=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlseason_credits_purchased,50);audio_play_sound(YYASSET_REF(0x02000012),1,false);break;}case 3:{gml_Script_slog(_inst,_other,"receipt for: credits_100");yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit,100);ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options, "op_credits_purchased",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_credits_purchased")),100));yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlseason_credits_purchased=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlseason_credits_purchased,100);audio_play_sound(YYASSET_REF(0x02000012),1,false);break;}case 4:{gml_Script_slog(_inst,_other,"receipt for: credits_25");yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit=yyfplus(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlcoach_credit,25);ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_credits_purchased",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_credits_purchased")),25));yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlseason_credits_purchased=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlseason_credits_purchased,25);audio_play_sound(YYASSET_REF(0x02000012),1,false);break;}case 5:{ gml_Script_slog(_inst,_other,"receipt for: credits_75");yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit,75);ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_credits_purchased",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_credits_purchased")),75));yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlseason_credits_purchased=yyfplus(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlseason_credits_purchased,75);audio_play_sound(YYASSET_REF(0x02000012),1,false);break;}case 6:{gml_Script_slog(_inst,_other,"receipt for: credits_250");yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit,250);ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_credits_purchased",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options, "op_credits_purchased")),250));yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlseason_credits_purchased=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlseason_credits_purchased,250);audio_play_sound(YYASSET_REF(0x02000012),1,false);break;}};gml_Script_s_savegame(_inst,_other);gml_Script_s_unfreeze_purchase_buttons(_inst,_other);};}else {{gml_Script_s_unfreeze_purchase_buttons(_inst,_other);};};};}else {{gml_Script_s_unfreeze_purchase_buttons(_inst,_other);};};extension_stubfunc_real(gml_ptoken); ds_map_destroy(gml_pmap);gml_pmap=(-1);}};};};ds_map_destroy(gml_map);gml_map=(-1);};};break;}};}}function gml_GlobalScript_s_iap_purchase_FullVersion(_inst,_other){(_inst.gmls_iap_purchase_FullVersion=__yy_method(_inst,gml_Script_s_iap_purchase_FullVersion));}function gml_Script_s_iap_purchase_FullVersion(_inst,_other){{if(!yyGetBool(os_is_network_connected())){{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_StoreConnect"),gml_Script_s_str(_inst, _other,"ui_Continue"),"",kgml_Script_s_btn_store_exit,"",global.gmlc_background,1);return;};};gml_Script_s_freeze_purchase_buttons(_inst,_other);var ___sw718___=g_pBuiltIn.get_os_type();var ___swc719___=-1;if(yyCompareVal(___sw718___,4,g_GMLMathEpsilon,false)==0){___swc719___=0;}else if(yyCompareVal(___sw718___,3,g_GMLMathEpsilon,false)==0){___swc719___=1;}else if(yyCompareVal(___sw718___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw718___,0,g_GMLMathEpsilon,false)==0){___swc719___=2;}switch(___swc719___){ case 0:{if((yyGetBool(extension_stubfunc_real()))&&(yyGetBool(global.gmlIAP_Enabled))){{var gml_chk=extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~0])]);if(yyfnotequal(gml_chk,0)){{};};};}else {{yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm=__yy_gml_array_check(yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm,3662155414);yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm[__yy_gml_array_check_index_set(0)]=yyftime(__yy_gml_errCheck(g_pBuiltIn.get_room_speed()), 10);};};break;}case 1:{if(yyGetBool(global.gmlIAP_Enabled)){{extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~0])]);};}else {yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm=__yy_gml_array_check(yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm,3662155414);yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm[__yy_gml_array_check_index_set(0)]=yyftime(__yy_gml_errCheck(g_pBuiltIn.get_room_speed()), 10);};break;}case 2:{if(yyGetBool(gml_Script_s_is_debug_desktop(_inst,_other))){{gml_Script_slog(_inst,_other,"receipt for: rb_full_version");if(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"fullversion"))){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit,25);ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_weather",1);ds_map_set(yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlmap_options,"op_replays",1);ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_kickoffs",1);audio_play_sound(YYASSET_REF(0x02000012),1,false);};};ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"fullversion",1);gml_Script_s_savegame(_inst,_other);gml_Script_s_unfreeze_purchase_buttons(_inst,_other);};};break;}};}}function gml_GlobalScript_s_set_position_kickoff(_inst,_other){(_inst.gmls_set_position_return_ko=__yy_method(_inst, gml_Script_s_set_position_return_ko));(_inst.gmls_set_position_take_ko=__yy_method(_inst,gml_Script_s_set_position_take_ko));}function gml_Script_s_set_position_return_ko(_inst,_other){{_inst.gmlposition=13;_inst.x=yyfminus(1300,__yy_gml_errCheck(yyftime(20,__yy_gml_errCheck(_inst.gmlfacing))));var ___sw724___=_inst.gmlinum;var ___swc725___=-1;if(yyCompareVal(___sw724___,1,g_GMLMathEpsilon,false)==0){___swc725___=0;}else if(yyCompareVal(___sw724___,2,g_GMLMathEpsilon,false)==0){___swc725___=1;}else if(yyCompareVal(___sw724___, 3,g_GMLMathEpsilon,false)==0){___swc725___=2;}else if(yyCompareVal(___sw724___,4,g_GMLMathEpsilon,false)==0){___swc725___=3;}else if(yyCompareVal(___sw724___,5,g_GMLMathEpsilon,false)==0){___swc725___=4;}else if(yyCompareVal(___sw724___,6,g_GMLMathEpsilon,false)==0){___swc725___=5;}else if(yyCompareVal(___sw724___,7,g_GMLMathEpsilon,false)==0){___swc725___=6;}else if(yyCompareVal(___sw724___,8,g_GMLMathEpsilon,false)==0){___swc725___=7;}else if(yyCompareVal(___sw724___,9,g_GMLMathEpsilon,false)==0){___swc725___=8; }else if(yyCompareVal(___sw724___,10,g_GMLMathEpsilon,false)==0){___swc725___=9;}else if(yyCompareVal(___sw724___,11,g_GMLMathEpsilon,false)==0){___swc725___=10;}switch(___swc725___){case 0:{_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),120);break;}case 1:{_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),70);break;}case 2:{_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim), 20);break;}case 3:{_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),60);break;}case 4:{_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),120);break;}case 5:{_inst.x=yyfminus(_inst.x,yyftime(200,__yy_gml_errCheck(_inst.gmlfacing)));_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),100);break;}case 6:{_inst.x=yyfminus(_inst.x,yyftime(200,__yy_gml_errCheck(_inst.gmlfacing)));_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst, _other,YYASSET_REF(0x00000069)).gmly_scrim),20);break;}case 7:{_inst.x=yyfminus(_inst.x,yyftime(200,__yy_gml_errCheck(_inst.gmlfacing)));_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),110);break;}case 8:{_inst.x=yyfminus(_inst.x,yyftime(400,__yy_gml_errCheck(_inst.gmlfacing)));_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),100);break;}case 9:{_inst.gmlposition=14;_inst.x=yyfminus(_inst.x,yyftime(1000,__yy_gml_errCheck(_inst.gmlfacing))); _inst.y=yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim;break;}case 10:{_inst.x=yyfminus(_inst.x,yyftime(400,__yy_gml_errCheck(_inst.gmlfacing)));_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),100);break;}};_inst.x=yyfplus(_inst.x,random_range((-2),2));_inst.y=yyfplus(_inst.y,random_range((-2),2));}}function gml_Script_s_set_position_take_ko(_inst,_other){{_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim), __yy_gml_errCheck(yyftime(__yy_gml_errCheck(irandom_range(8,13)),__yy_gml_errCheck(_inst.gmlfacing))));_inst.gmlposition=12;var ___sw726___=_inst.gmlinum;var ___swc727___=-1;if(yyCompareVal(___sw726___,1,g_GMLMathEpsilon,false)==0){___swc727___=0;}else if(yyCompareVal(___sw726___,2,g_GMLMathEpsilon,false)==0){___swc727___=1;}else if(yyCompareVal(___sw726___,3,g_GMLMathEpsilon,false)==0){___swc727___=2;}else if(yyCompareVal(___sw726___,4,g_GMLMathEpsilon,false)==0){___swc727___=3;}else if(yyCompareVal(___sw726___, 5,g_GMLMathEpsilon,false)==0){___swc727___=4;}else if(yyCompareVal(___sw726___,6,g_GMLMathEpsilon,false)==0){___swc727___=5;}else if(yyCompareVal(___sw726___,7,g_GMLMathEpsilon,false)==0){___swc727___=6;}else if(yyCompareVal(___sw726___,8,g_GMLMathEpsilon,false)==0){___swc727___=7;}else if(yyCompareVal(___sw726___,9,g_GMLMathEpsilon,false)==0){___swc727___=8;}else if(yyCompareVal(___sw726___,10,g_GMLMathEpsilon,false)==0){___swc727___=9;}else if(yyCompareVal(___sw726___,11,g_GMLMathEpsilon,false)==0){ ___swc727___=10;}switch(___swc727___){case 0:{_inst.gmlposition=1;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim),__yy_gml_errCheck(yyftime(40,__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim;return;break;}case 1:{_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),160);break;}case 2:{_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim), 130);break;}case 3:{_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),100);break;}case 4:{_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),70);break;}case 5:{_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),40);break;}case 6:{_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),40);break;}case 7:{_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst, _other,YYASSET_REF(0x00000069)).gmly_scrim),70);break;}case 8:{_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),100);break;}case 9:{_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),130);break;}case 10:{_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),160);break;}};_inst.y=yyfplus(_inst.y,irandom_range((-2),2));}}function gml_GlobalScript_s_iap_purchase_Credits_20(_inst,_other){ (_inst.gmls_iap_purchase_Credits_20=__yy_method(_inst,gml_Script_s_iap_purchase_Credits_20));}function gml_Script_s_iap_purchase_Credits_20(_inst,_other){{if(!yyGetBool(os_is_network_connected())){{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_StoreConnect"),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_btn_store_exit,"",global.gmlc_background,1);return;};};gml_Script_s_freeze_purchase_buttons(_inst,_other);var ___sw730___=g_pBuiltIn.get_os_type(); var ___swc731___=-1;if(yyCompareVal(___sw730___,4,g_GMLMathEpsilon,false)==0){___swc731___=0;}else if(yyCompareVal(___sw730___,3,g_GMLMathEpsilon,false)==0){___swc731___=1;}switch(___swc731___){case 0:{if((yyGetBool(extension_stubfunc_real()))&&(yyGetBool(global.gmlIAP_Enabled))){{var gml_chk=extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(1,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~1])]);if(yyfnotequal(gml_chk,0)){{};};};}else {{yyInst(_inst, _other,YYASSET_REF(0x00000062)).alarm=__yy_gml_array_check(yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm,3662155414);yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm[__yy_gml_array_check_index_set(0)]=yyftime(__yy_gml_errCheck(g_pBuiltIn.get_room_speed()),10);};};break;}case 1:{if(yyGetBool(global.gmlIAP_Enabled)){{extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(1,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~1])]);};}else {yyInst(_inst, _other,YYASSET_REF(0x00000062)).alarm=__yy_gml_array_check(yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm,3662155414);yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm[__yy_gml_array_check_index_set(0)]=yyftime(__yy_gml_errCheck(g_pBuiltIn.get_room_speed()),10);};break;}};}}function gml_GlobalScript_s_iap_purchase_Credits_50(_inst,_other){(_inst.gmls_iap_purchase_Credits_50=__yy_method(_inst,gml_Script_s_iap_purchase_Credits_50));}function gml_Script_s_iap_purchase_Credits_50(_inst,_other){{if(!yyGetBool(os_is_network_connected())){ {gml_Script_s_msg_clear(_inst,_other);gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_StoreConnect"),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_btn_store_exit,"",global.gmlc_background,1);return;};};gml_Script_s_freeze_purchase_buttons(_inst,_other);var ___sw734___=g_pBuiltIn.get_os_type();var ___swc735___=-1;if(yyCompareVal(___sw734___,4,g_GMLMathEpsilon,false)==0){___swc735___=0;}else if(yyCompareVal(___sw734___,3,g_GMLMathEpsilon,false)==0){___swc735___=1; }switch(___swc735___){case 0:{if((yyGetBool(extension_stubfunc_real()))&&(yyGetBool(global.gmlIAP_Enabled))){{var gml_chk=extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(2,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~2])]);if(yyfnotequal(gml_chk,0)){{};};};}else {{yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm=__yy_gml_array_check(yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm,3662155414);yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm[__yy_gml_array_check_index_set(0)]=yyftime(__yy_gml_errCheck(g_pBuiltIn.get_room_speed()), 10);};};break;}case 1:{if(yyGetBool(global.gmlIAP_Enabled)){{extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(2,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~2])]);};}else {yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm=__yy_gml_array_check(yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm,3662155414);yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm[__yy_gml_array_check_index_set(0)]=yyftime(__yy_gml_errCheck(g_pBuiltIn.get_room_speed()), 10);};break;}};}}function gml_GlobalScript_s_iap_purchase_Credits_100(_inst,_other){(_inst.gmls_iap_purchase_Credits_100=__yy_method(_inst,gml_Script_s_iap_purchase_Credits_100));}function gml_Script_s_iap_purchase_Credits_100(_inst,_other){{if(!yyGetBool(os_is_network_connected())){{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_StoreConnect"),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_btn_store_exit,"",global.gmlc_background, 1);return;};};gml_Script_s_freeze_purchase_buttons(_inst,_other);var ___sw738___=g_pBuiltIn.get_os_type();var ___swc739___=-1;if(yyCompareVal(___sw738___,4,g_GMLMathEpsilon,false)==0){___swc739___=0;}else if(yyCompareVal(___sw738___,3,g_GMLMathEpsilon,false)==0){___swc739___=1;}switch(___swc739___){case 0:{if((yyGetBool(extension_stubfunc_real()))&&(yyGetBool(global.gmlIAP_Enabled))){{var gml_chk=extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(3,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0, global.gmlIAP_PurchaseID[~~3])]);if(yyfnotequal(gml_chk,0)){{};};};}else {{yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm=__yy_gml_array_check(yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm,3662155414);yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm[__yy_gml_array_check_index_set(0)]=yyftime(__yy_gml_errCheck(g_pBuiltIn.get_room_speed()),10);};};break;}case 1:{if(yyGetBool(global.gmlIAP_Enabled)){{extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(3,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0, global.gmlIAP_PurchaseID[~~3])]);};}else {yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm=__yy_gml_array_check(yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm,3662155414);yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm[__yy_gml_array_check_index_set(0)]=yyftime(__yy_gml_errCheck(g_pBuiltIn.get_room_speed()),10);};break;}};}}function gml_GlobalScript_s_iap_purchase_Credits_250(_inst,_other){(_inst.gmls_iap_purchase_Credits_250=__yy_method(_inst,gml_Script_s_iap_purchase_Credits_250));}function gml_Script_s_iap_purchase_Credits_250(_inst, _other){{if(!yyGetBool(os_is_network_connected())){{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_StoreConnect"),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_btn_store_exit,"",global.gmlc_background,1);return;};};gml_Script_s_freeze_purchase_buttons(_inst,_other);var ___sw742___=g_pBuiltIn.get_os_type();var ___swc743___=-1;if(yyCompareVal(___sw742___,4,g_GMLMathEpsilon,false)==0){___swc743___=0;}else if(yyCompareVal(___sw742___, 3,g_GMLMathEpsilon,false)==0){___swc743___=1;}switch(___swc743___){case 0:{if((yyGetBool(extension_stubfunc_real()))&&(yyGetBool(global.gmlIAP_Enabled))){{var gml_chk=extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(4,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~4])]);if(yyfnotequal(gml_chk,0)){{};};};}else {{yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm=__yy_gml_array_check(yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm,3662155414); yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm[__yy_gml_array_check_index_set(0)]=yyftime(__yy_gml_errCheck(g_pBuiltIn.get_room_speed()),10);};};break;}case 1:{if(yyGetBool(global.gmlIAP_Enabled)){{extension_stubfunc_real(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(4,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~4])]);};}else {yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm=__yy_gml_array_check(yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm,3662155414); yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm[__yy_gml_array_check_index_set(0)]=yyftime(__yy_gml_errCheck(g_pBuiltIn.get_room_speed()),10);};break;}};}}function gml_GlobalScript_s_iap_restore(_inst,_other){(_inst.gmls_iap_restore=__yy_method(_inst,gml_Script_s_iap_restore));}function gml_Script_s_iap_restore(_inst,_other){{var ___sw746___=g_pBuiltIn.get_os_type();var ___swc747___=-1;if(yyCompareVal(___sw746___,4,g_GMLMathEpsilon,false)==0){___swc747___=0;}else if(yyCompareVal(___sw746___,3,g_GMLMathEpsilon, false)==0){___swc747___=1;}switch(___swc747___){case 0:{break;}case 1:{if(!yyGetBool(os_is_network_connected())){{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_StoreConnect"),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};}else {{_inst.alarm=__yy_gml_array_check(_inst.alarm,1584050178);_inst.alarm[__yy_gml_array_check_index_set(1)]=yyftime(__yy_gml_errCheck(g_pBuiltIn.get_room_speed()), 4);gml_Script_s_freeze_purchase_buttons(_inst,_other);extension_stubfunc_real();};};break;}};}}function gml_GlobalScript_s_open_store(_inst,_other){(_inst.gmls_open_store=__yy_method(_inst,gml_Script_s_open_store));(_inst.gmls_btn_store_exit=__yy_method(_inst,gml_Script_s_btn_store_exit));}function gml_Script_s_open_store(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);if(yyGetBool(global.gmlmobile_device)){{if((yyGetBool(!yyGetBool(global.gmlIAP_Enabled)))||(yyGetBool(!yyGetBool(os_is_network_connected())))){ {gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_StoreConnect"),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);return;};};};};{var __yy__v973=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v974 in __yy__v973){if(!__yy__v973.hasOwnProperty(__yy__v974))continue;var __yy__v975=__yy__v973[__yy__v974];{var gmlbg=instance_create_layer(0,0,"PopUps",YYASSET_REF(0x0000004F));yyInst(_inst,_other,gmlbg).gmlcolour=global.gmlc_background; yyInst(_inst,_other,gmlbg).gmlalpha=1;var gmltitle=instance_create_layer(yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5),32,"PopUps",YYASSET_REF(0x00000047));yyInst(_inst,_other,gmltitle).gmltext=gml_Script_s_str(__yy__v975,_inst,"ui_Store");yyInst(_inst,_other,gmltitle).gmlshow_stars=true;yyInst(_inst,_other,gmltitle).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);var gmlbtn_store_exit=instance_create_layer(8,232,"PopUps",YYASSET_REF(0x00000025));yyInst(_inst,_other, gmlbtn_store_exit).gmlimage=YYASSET_REF(0x0100008E);yyInst(_inst,_other,gmlbtn_store_exit).gmlonClickAction=kgml_Script_s_btn_store_exit;yyInst(_inst,_other,gmlbtn_store_exit).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other,gmlbtn_store_exit).gmlgp_mapped_hidden=global.gmlgp_back;var gmlbtn_store_restore=instance_create_layer(384,232,"PopUps",YYASSET_REF(0x00000030));yyInst(_inst,_other,gmlbtn_store_restore).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other, gmlbg).depth),1);var gmlobj_cc=instance_create_layer(16,16,"PopUps",YYASSET_REF(0x00000041));yyInst(_inst,_other,gmlobj_cc).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);var gmlby=52;var gmlbh=36;var gmli=0;for(;yyfless(gmli,5);(gmli=(gmli instanceof Long?gmli.add(1):++gmli),gmli)){{var gml_name="";var gml_price=0;var gml_desc="";gml_Script_slog(__yy__v975,_inst,"_______________________");var ___sw752___=g_pBuiltIn.get_os_type();var ___swc753___=-1;if(yyCompareVal(___sw752___,4,g_GMLMathEpsilon, false)==0){___swc753___=0;}else if(yyCompareVal(___sw752___,3,g_GMLMathEpsilon,false)==0){___swc753___=1;}switch(___swc753___){case 0:{gml_Script_slog(__yy__v975,_inst,"Get store details: android");gml_name=extension_stubfunc_string(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(gmli,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~gmli])]);gml_name=string_replace(gml_name," (Retro Bowl)","");gml_name=string_replace(gml_name," (Retro Bowl: College Edition)",""); gml_name=string_replace(gml_name," (Retro Bowl College)","");gml_price=extension_stubfunc_string(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(gmli,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~gmli])]);gml_desc=extension_stubfunc_string(global.gmlIAP_PurchaseID[__yy_gml_array_check_index(gmli,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID[~~gmli])]);break;}case 1:{gml_Script_slog(__yy__v975,_inst,"Get store details: ios"); gml_price=global.gmlIAP_PurchaseID[__yy_gml_array_check_index(gmli,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(1,global.gmlIAP_PurchaseID[~~gmli])];gml_name=global.gmlIAP_PurchaseID[__yy_gml_array_check_index(gmli,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(3,global.gmlIAP_PurchaseID[~~gmli])];gml_desc=global.gmlIAP_PurchaseID[__yy_gml_array_check_index(gmli,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(2,global.gmlIAP_PurchaseID[~~gmli])];break;}};gml_Script_slog(__yy__v975, _inst,yyfplus("Product name = ",__yy_gml_errCheck(string(gml_name))));gml_Script_slog(__yy__v975,_inst,yyfplus("Product price = ",__yy_gml_errCheck(string(gml_price))));gml_Script_slog(__yy__v975,_inst,yyfplus("Product desc = ",__yy_gml_errCheck(string(gml_desc))));__yy__v975.gmlvbox_iap=__yy_gml_array_check(__yy__v975.gmlvbox_iap,2588052203);__yy__v975.gmlvbox_iap[__yy_gml_array_check_index_set(gmli)]=instance_create_layer(80,gmlby,"PopUps",YYASSET_REF(0x00000043));yyInst(_inst,_other,__yy__v975.gmlvbox_iap[__yy_gml_array_check_index(gmli, __yy__v975.gmlvbox_iap)]).image_xscale=1.3;yyInst(_inst,_other,__yy__v975.gmlvbox_iap[__yy_gml_array_check_index(gmli,__yy__v975.gmlvbox_iap)]).image_yscale=0.25;yyInst(_inst,_other,__yy__v975.gmlvbox_iap[__yy_gml_array_check_index(gmli,__yy__v975.gmlvbox_iap)]).gmltitle="";yyInst(_inst,_other,__yy__v975.gmlvbox_iap[__yy_gml_array_check_index(gmli,__yy__v975.gmlvbox_iap)]).gmltext=gml_name;yyInst(_inst,_other,__yy__v975.gmlvbox_iap[__yy_gml_array_check_index(gmli,__yy__v975.gmlvbox_iap)]).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst, _other,gmlbg).depth),1);__yy__v975.gmlbtn_iap=__yy_gml_array_check(__yy__v975.gmlbtn_iap,2678124351);__yy__v975.gmlbtn_iap[__yy_gml_array_check_index_set(gmli)]=instance_create_layer(294,gmlby,"PopUps",YYASSET_REF(0x00000031));yyInst(_inst,_other,__yy__v975.gmlbtn_iap[__yy_gml_array_check_index(gmli,__yy__v975.gmlbtn_iap)]).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other,__yy__v975.gmlbtn_iap[__yy_gml_array_check_index(gmli,__yy__v975.gmlbtn_iap)]).gmltext=gml_price; var ___sw754___=gmli;var ___swc755___=-1;if(yyCompareVal(___sw754___,0,g_GMLMathEpsilon,false)==0){___swc755___=0;}else if(yyCompareVal(___sw754___,1,g_GMLMathEpsilon,false)==0){___swc755___=1;}else if(yyCompareVal(___sw754___,2,g_GMLMathEpsilon,false)==0){___swc755___=2;}else if(yyCompareVal(___sw754___,3,g_GMLMathEpsilon,false)==0){___swc755___=3;}else if(yyCompareVal(___sw754___,4,g_GMLMathEpsilon,false)==0){___swc755___=4;}switch(___swc755___){case 0:{yyInst(_inst,_other,__yy__v975.gmlvbox_iap[__yy_gml_array_check_index(gmli, __yy__v975.gmlvbox_iap)]).gmltext=yyfplus(yyInst(_inst,_other,__yy__v975.gmlvbox_iap[__yy_gml_array_check_index(gmli,__yy__v975.gmlvbox_iap)]).gmltext,gml_Script_s_str(__yy__v975,_inst,"info_UnlimitedVersion"));yyInst(_inst,_other,__yy__v975.gmlvbox_iap[__yy_gml_array_check_index(gmli,__yy__v975.gmlvbox_iap)]).image_yscale=0.5;yyInst(_inst,_other,__yy__v975.gmlbtn_iap[__yy_gml_array_check_index(gmli,__yy__v975.gmlbtn_iap)]).gmlonClickAction=kgml_Script_s_iap_purchase_FullVersion;gmlby=yyfplus(gmlby, gmlbh);break;}case 1:{yyInst(_inst,_other,__yy__v975.gmlbtn_iap[__yy_gml_array_check_index(gmli,__yy__v975.gmlbtn_iap)]).gmlonClickAction=kgml_Script_s_iap_purchase_Credits_20;break;}case 2:{yyInst(_inst,_other,__yy__v975.gmlbtn_iap[__yy_gml_array_check_index(gmli,__yy__v975.gmlbtn_iap)]).gmlonClickAction=kgml_Script_s_iap_purchase_Credits_50;break;}case 3:{yyInst(_inst,_other,__yy__v975.gmlbtn_iap[__yy_gml_array_check_index(gmli,__yy__v975.gmlbtn_iap)]).gmlonClickAction=kgml_Script_s_iap_purchase_Credits_100; break;}case 4:{yyInst(_inst,_other,__yy__v975.gmlbtn_iap[__yy_gml_array_check_index(gmli,__yy__v975.gmlbtn_iap)]).gmlonClickAction=kgml_Script_s_iap_purchase_Credits_250;break;}};yyInst(_inst,_other,__yy__v975.gmlbtn_iap[__yy_gml_array_check_index(gmli,__yy__v975.gmlbtn_iap)]).gmlactive=false;yyInst(_inst,_other,__yy__v975.gmlbtn_iap[__yy_gml_array_check_index(gmli,__yy__v975.gmlbtn_iap)]).gmlstep_check=kgml_Script_btn_step_check_iaps;gmlby=yyfplus(gmlby,gmlbh);}};if(!yyGetBool(ds_map_find_value(__yy__v975.gmlmap_options, "fullversion"))){yyInst(_inst,_other,__yy__v975.gmlbtn_iap[__yy_gml_array_check_index(0,__yy__v975.gmlbtn_iap)]).gmlactive=true;};yyInst(_inst,_other,__yy__v975.gmlbtn_iap[__yy_gml_array_check_index(0,__yy__v975.gmlbtn_iap)]).gmlstep_check=kgml_Script_btn_step_check_fullversion;}}};}}function gml_Script_s_btn_store_exit(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_update_options_if_present(_inst,_other);if((yyGetBool(gml_Script_s_is_co_mode(_inst,_other)))&&(yyGetBool(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlstore_to_dilemma))){{{var __yy__v976=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v977 in __yy__v976){if(!__yy__v976.hasOwnProperty(__yy__v977))continue;var __yy__v978=__yy__v976[__yy__v977];{gml_Script_s_create_dilemma(__yy__v978,_inst,__yy__v978.gmlmap_dilemma);}}};};};}}function gml_GlobalScript_s_open_store_nag(_inst,_other){(_inst.gmls_open_store_nag=__yy_method(_inst,gml_Script_s_open_store_nag));}function gml_Script_s_open_store_nag(_inst,_other){{gml_Script_s_open_store(_inst, _other);if(!yyGetBool(global.gmlIAP_Enabled)){return;};}}function gml_GlobalScript_s_do_nag_message(_inst,_other){(_inst.gmls_do_nag_message=__yy_method(_inst,gml_Script_s_do_nag_message));(_inst.gmls_do_ad_retrogoal=__yy_method(_inst,gml_Script_s_do_ad_retrogoal));}function gml_Script_s_do_nag_message(_inst,_other){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlnag=0;if(yyfequal(yyfmod(__yy_gml_errCheck((g_yyPrePostObject__=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlad_tick,yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlad_tick=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlad_tick.add(1):++yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlad_tick),g_yyPrePostObject__)),3),0)){{gml_Script_s_do_ad_retrogoal(_inst,_other);return;};};gml_Script_s_msg_clear(_inst,_other);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstage=1;gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_UnlimitedFeatures"),gml_Script_s_str(_inst,_other,"ui_Cancel"), gml_Script_s_str(_inst,_other,"ui_Upgrade"),kgml_Script_s_msg_clear,kgml_Script_s_open_store_nag,global.gmlc_background,1);}}function gml_Script_s_do_ad_retrogoal(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstage=1;ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"done_ad_retrogoal",yyfplus(__yy_gml_errCheck(real(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"done_ad_retrogoal"))),1));gml_Script_s_save_options(_inst, _other);room_goto(YYASSET_REF(0x03000023));}}function gml_GlobalScript_s_do_purchase_message(_inst,_other){(_inst.gmls_do_purchase_message=__yy_method(_inst,gml_Script_s_do_purchase_message));}function gml_Script_s_do_purchase_message(_inst,_other){{var ___sw758___=g_pBuiltIn.get_os_type();var ___swc759___=-1;if(yyCompareVal(___sw758___,4,g_GMLMathEpsilon,false)==0){___swc759___=0;}else if(yyCompareVal(___sw758___,3,g_GMLMathEpsilon,false)==0){___swc759___=1;}switch(___swc759___){case 0:{if((yyGetBool(global.gmlIAP_Enabled))&&(yyGetBool(extension_stubfunc_real()))){ {var gmlmsg=gml_Script_s_str(_inst,_other,"msg_PurchaseUnlock");gmlmsg=string_replace(gmlmsg,"$price",global.gmlIAP_PurchaseID[__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(1,global.gmlIAP_PurchaseID[~~0])]);gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_s_open_store,global.gmlc_background,1);};}else {{global.gmlIAP_Enabled=false;yyInst(_inst, _other,YYASSET_REF(0x00000062)).alarm=__yy_gml_array_check(yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm,3662155414);yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm[__yy_gml_array_check_index_set(0)]=yyftime(__yy_gml_errCheck(g_pBuiltIn.get_room_speed()),10);gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_StoreConnect_Unlock"),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};};break;}case 1:{if(yyGetBool(global.gmlIAP_Enabled)){ {var gmlmsg=gml_Script_s_str(_inst,_other,"msg_PurchaseUnlock");gmlmsg=string_replace(gmlmsg,"$price",global.gmlIAP_PurchaseID[__yy_gml_array_check_index(0,global.gmlIAP_PurchaseID)][__yy_gml_array_check_index(1,global.gmlIAP_PurchaseID[~~0])]);gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_s_msg_clear,kgml_Script_s_open_store,global.gmlc_background,1);};}else {{yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm=__yy_gml_array_check(yyInst(_inst, _other,YYASSET_REF(0x00000062)).alarm,3662155414);yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm[__yy_gml_array_check_index_set(0)]=yyftime(__yy_gml_errCheck(g_pBuiltIn.get_room_speed()),10);gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_StoreConnect_Unlock"),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};};break;}};}}function gml_GlobalScript_btn_step_check_fullversion(_inst,_other){(_inst.gmlbtn_step_check_fullversion=__yy_method(_inst, gml_Script_btn_step_check_fullversion));}function gml_Script_btn_step_check_fullversion(_inst,_other){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"fullversion"))){{_inst.gmlactive=false;_inst.gmltext=gml_Script_s_str(_inst,_other,"ui_Purchased");};};}}function gml_GlobalScript_btn_step_check_iaps(_inst,_other){(_inst.gmlbtn_step_check_iaps=__yy_method(_inst,gml_Script_btn_step_check_iaps));}function gml_Script_btn_step_check_iaps(_inst,_other){{if(!yyGetBool(_inst.alarm[__yy_gml_array_check_index(0, _inst.alarm)])){{_inst.gmlactive=true;};};}}function gml_GlobalScript_s_freeze_purchase_buttons(_inst,_other){(_inst.gmls_freeze_purchase_buttons=__yy_method(_inst,gml_Script_s_freeze_purchase_buttons));}function gml_Script_s_freeze_purchase_buttons(_inst,_other){{gml_Script_slog(_inst,_other,"s_freeze_purchase_buttons");{var __yy__v979=GetWithArray(YYASSET_REF(0x00000031));for(var __yy__v980 in __yy__v979){if(!__yy__v979.hasOwnProperty(__yy__v980))continue;var __yy__v981=__yy__v979[__yy__v980];{__yy__v981.gmlactive=false; __yy__v981.alarm=__yy_gml_array_check(__yy__v981.alarm,3290810935);__yy__v981.alarm[__yy_gml_array_check_index_set(0)]=yyftime(__yy_gml_errCheck(g_pBuiltIn.get_room_speed()),30);}}};{var __yy__v982=GetWithArray(YYASSET_REF(0x00000030));for(var __yy__v983 in __yy__v982){if(!__yy__v982.hasOwnProperty(__yy__v983))continue;var __yy__v984=__yy__v982[__yy__v983];{__yy__v984.gmlactive=false;__yy__v984.alarm=__yy_gml_array_check(__yy__v984.alarm,1082565722);__yy__v984.alarm[__yy_gml_array_check_index_set(0)]=yyftime(__yy_gml_errCheck(g_pBuiltIn.get_room_speed()), 30);}}};}}function gml_GlobalScript_s_unfreeze_purchase_buttons(_inst,_other){(_inst.gmls_unfreeze_purchase_buttons=__yy_method(_inst,gml_Script_s_unfreeze_purchase_buttons));}function gml_Script_s_unfreeze_purchase_buttons(_inst,_other){{gml_Script_slog(_inst,_other,"s_unfreeze_purchase_buttons");{var __yy__v985=GetWithArray(YYASSET_REF(0x00000031));for(var __yy__v986 in __yy__v985){if(!__yy__v985.hasOwnProperty(__yy__v986))continue;var __yy__v987=__yy__v985[__yy__v986];{__yy__v987.alarm=__yy_gml_array_check(__yy__v987.alarm, 1021804929);__yy__v987.alarm[__yy_gml_array_check_index_set(0)]=yyftime(__yy_gml_errCheck(g_pBuiltIn.get_room_speed()),2);}}};{var __yy__v988=GetWithArray(YYASSET_REF(0x00000030));for(var __yy__v989 in __yy__v988){if(!__yy__v988.hasOwnProperty(__yy__v989))continue;var __yy__v990=__yy__v988[__yy__v989];{__yy__v990.alarm=__yy_gml_array_check(__yy__v990.alarm,4148345552);__yy__v990.alarm[__yy_gml_array_check_index_set(0)]=yyftime(__yy_gml_errCheck(g_pBuiltIn.get_room_speed()),2);}}};}}function gml_GlobalScript_s_do_info_position(_inst, _other){(_inst.gmls_do_info_position=__yy_method(_inst,gml_Script_s_do_info_position));}function gml_Script_s_do_info_position(_inst,_other){{var gmlmsg=yyfplus("info_",__yy_gml_errCheck(gml_Script_s_get_string_position(_inst,_other,ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"position"))));gmlmsg=gml_Script_s_str(_inst,_other,gmlmsg);if((yyGetBool(0))&&(yyGetBool(gml_Script_s_is_co_mode(_inst,_other)))){{gmlmsg=yyfplus(gmlmsg,"\nDebug:");gmlmsg=yyfplus(gmlmsg, yyfplus("\nGRADE:",__yy_gml_errCheck(gml_Script_s_get_decay_info(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile))));gmlmsg=yyfplus(gmlmsg,yyfplus("\nPARTY:",__yy_gml_errCheck(gml_Script_s_get_party_info(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile))));gmlmsg=yyfplus(gmlmsg,yyfplus("\nSTUDIES:",__yy_gml_errCheck(gml_Script_s_get_study_info(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile))));};};gml_Script_s_create_message(_inst, _other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);}}function gml_GlobalScript_s_do_info_skills(_inst,_other){(_inst.gmls_do_info_skills=__yy_method(_inst,gml_Script_s_do_info_skills));}function gml_Script_s_do_info_skills(_inst,_other){{var gmlmsg="";var ___sw762___=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"position");var ___swc763___=-1;if(yyCompareVal(___sw762___,1,g_GMLMathEpsilon,false)==0){ ___swc763___=0;}else if(yyCompareVal(___sw762___,10,g_GMLMathEpsilon,false)==0){___swc763___=1;}else if(yyCompareVal(___sw762___,5,g_GMLMathEpsilon,false)==0){___swc763___=2;}else if(yyCompareVal(___sw762___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw762___,7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw762___,9,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw762___,8,g_GMLMathEpsilon,false)==0){___swc763___=3;}switch(___swc763___){case 0:{gmlmsg=gml_Script_s_str(_inst,_other,"info_Skill_Throwing"); break;}case 1:{gmlmsg=gml_Script_s_str(_inst,_other,"info_Skill_Kicking");break;}case 2:{gmlmsg=gml_Script_s_str(_inst,_other,"info_Skill_Blocking");break;}case 3:{gmlmsg=gml_Script_s_str(_inst,_other,"info_Skill_Tackling");break;}default :{gmlmsg=gml_Script_s_str(_inst,_other,"info_Skill_Catching");break;}};if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfr_mode)){gmlmsg=yyfplus(gmlmsg,yyfplus("\n\n",__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"info_Skill_Buff"))));};gml_Script_s_create_message(_inst, _other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);}}function gml_GlobalScript_s_do_info_coachtrait(_inst,_other){(_inst.gmls_do_info_coachtrait=__yy_method(_inst,gml_Script_s_do_info_coachtrait));}function gml_Script_s_do_info_coachtrait(_inst,_other){{var gmlmsg=yyfplus("info_coachtrait_",__yy_gml_errCheck(string(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"trait"))));gmlmsg=gml_Script_s_str(_inst, _other,gmlmsg);var ___sw766___=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"position");var ___swc767___=-1;if(yyCompareVal(___sw766___,101,g_GMLMathEpsilon,false)==0){___swc767___=0;}else if(yyCompareVal(___sw766___,102,g_GMLMathEpsilon,false)==0){___swc767___=1;}switch(___swc767___){case 0:{gmlmsg=string_replace_all(gmlmsg,"$pos",string_lower(gml_Script_s_str(_inst,_other,"ui_Defensive")));break;}case 1:{gmlmsg=string_replace_all(gmlmsg,"$pos",string_lower(gml_Script_s_str(_inst, _other,"ui_Offensive")));break;}};gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);}}function gml_GlobalScript_s_do_info_draftpicks(_inst,_other){(_inst.gmls_do_info_draftpicks=__yy_method(_inst,gml_Script_s_do_info_draftpicks));}function gml_Script_s_do_info_draftpicks(_inst,_other){{var gmlmsg=gml_Script_s_str(_inst,_other,"info_DraftPicks");{var __yy__v991=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v992 in __yy__v991){ if(!__yy__v991.hasOwnProperty(__yy__v992))continue;var __yy__v993=__yy__v991[__yy__v992];{gmlmsg=string_replace(gmlmsg,"$num1",string(__yy__v993.gmldraft_picks[__yy_gml_array_check_index(0,__yy__v993.gmldraft_picks)]));gmlmsg=string_replace(gmlmsg,"$num2",string(__yy__v993.gmldraft_picks[__yy_gml_array_check_index(1,__yy__v993.gmldraft_picks)]));gmlmsg=string_replace(gmlmsg,"$num3",string(__yy__v993.gmldraft_picks[__yy_gml_array_check_index(2,__yy__v993.gmldraft_picks)]));}}};gml_Script_s_create_message(_inst, _other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);}}function gml_GlobalScript_s_do_info(_inst,_other){(_inst.gmls_do_info=__yy_method(_inst,gml_Script_s_do_info));(_inst.gmls_info_draft_col1=__yy_method(_inst,gml_Script_s_info_draft_col1));(_inst.gmls_info_draft_col2=__yy_method(_inst,gml_Script_s_info_draft_col2));}function gml_Script_s_do_info(_inst,_other,argument0){{var ___sw770___=argument0;var ___swc771___=-1;if(yyCompareVal(___sw770___, "info_Position",g_GMLMathEpsilon,false)==0){___swc771___=0;}else if(yyCompareVal(___sw770___,"info_Skills",g_GMLMathEpsilon,false)==0){___swc771___=1;}else if(yyCompareVal(___sw770___,"info_DraftPicks",g_GMLMathEpsilon,false)==0){___swc771___=2;}else if(yyCompareVal(___sw770___,"info_CoachTrait",g_GMLMathEpsilon,false)==0){___swc771___=3;}else if(yyCompareVal(___sw770___,"info_Skill_Strength",g_GMLMathEpsilon,false)==0){___swc771___=4;}else if(yyCompareVal(___sw770___,"info_Skill_Speed",g_GMLMathEpsilon, false)==0){___swc771___=5;}else if(yyCompareVal(___sw770___,"info_Skill_Stamina",g_GMLMathEpsilon,false)==0){___swc771___=6;}else if(yyCompareVal(___sw770___,"info_GPAExplanation",g_GMLMathEpsilon,false)==0){___swc771___=7;}else if(yyCompareVal(___sw770___,"info_Draft",g_GMLMathEpsilon,false)==0){___swc771___=8;}switch(___swc771___){case 0:{gml_Script_s_do_info_position(_inst,_other);break;}case 1:{gml_Script_s_do_info_skills(_inst,_other);break;}case 2:{gml_Script_s_do_info_draftpicks(_inst,_other);break; }case 3:{gml_Script_s_do_info_coachtrait(_inst,_other);break;}case 4:{argument0=gml_Script_s_str(_inst,_other,argument0);if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfr_mode)){argument0=yyfplus(argument0,yyfplus("\n\n",__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"info_Strength_Buff"))));};gml_Script_s_create_message(_inst,_other,"",argument0,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);break;}case 5:{argument0=gml_Script_s_str(_inst, _other,argument0);if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfr_mode)){argument0=yyfplus(argument0,yyfplus("\n\n",__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"info_Speed_Buff"))));};gml_Script_s_create_message(_inst,_other,"",argument0,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);break;}case 6:{argument0=gml_Script_s_str(_inst,_other,argument0);if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfr_mode)){argument0=yyfplus(argument0, yyfplus("\n\n",__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"info_Stamina_Buff"))));};gml_Script_s_create_message(_inst,_other,"",argument0,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);break;}case 7:{gml_Script_s_info_gpa_explanation_open(_inst,_other);break;}case 8:{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,argument0),gml_Script_s_str(_inst,_other,"ui_Continue"), "",kgml_Script_s_info_draft_col1,"",global.gmlc_background,1);};}else {{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,argument0),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};};break;}default :{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,argument0),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);break;}};}}function gml_Script_s_info_draft_col1(_inst, _other){{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"info_Draft_b"),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_info_draft_col2,"",global.gmlc_background,1);}}function gml_Script_s_info_draft_col2(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"info_Draft_c"),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background, 1);}}function gml_GlobalScript_s_create_camera(_inst,_other){(_inst.gmls_create_camera=__yy_method(_inst,gml_Script_s_create_camera));}function gml_Script_s_create_camera(_inst,_other){{{var __yy__v994=GetWithArray(YYASSET_REF(0x00000063));for(var __yy__v995 in __yy__v994){if(!__yy__v994.hasOwnProperty(__yy__v995))continue;var __yy__v996=__yy__v994[__yy__v995];{surface_depth_disable(true);if((yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),1)))&&(yyGetBool(!yyGetBool(global.gmlbrowser)))){{__yy__v996.gmldisplay_width=yyftime(__yy_gml_errCheck(window_get_width()), 2);__yy__v996.gmldisplay_height=yyftime(__yy_gml_errCheck(window_get_height()),2);};}else {{__yy__v996.gmldisplay_width=display_get_width();__yy__v996.gmldisplay_height=display_get_height();};};__yy__v996.gmlzoom=2;__yy__v996.gmlaspect_ratio=yyfdivide(__yy_gml_errCheck(__yy__v996.gmldisplay_width),__yy_gml_errCheck(__yy__v996.gmldisplay_height));gml_Script_slog(__yy__v996,_inst,yyfplus("Aspect Ratio = ",__yy_gml_errCheck(string(__yy__v996.gmlaspect_ratio))));__yy__v996.gmlview_height=270;__yy__v996.gmlview_width=round(yyftime(__yy_gml_errCheck(__yy__v996.gmlview_height), __yy_gml_errCheck(__yy__v996.gmlaspect_ratio)));if(yyGetBool(yyfbitand(__yy_gml_errCheck(__yy__v996.gmlview_width),1))){(g_yyPrePostObject__=__yy__v996.gmlview_width,__yy__v996.gmlview_width=(g_yyPrePostObject__ instanceof Long?__yy__v996.gmlview_width.add(1):++__yy__v996.gmlview_width),g_yyPrePostObject__);};if(yyGetBool(yyfbitand(__yy_gml_errCheck(__yy__v996.gmlview_height),1))){(g_yyPrePostObject__=__yy__v996.gmlview_height,__yy__v996.gmlview_height=(g_yyPrePostObject__ instanceof Long?__yy__v996.gmlview_height.add(1):++__yy__v996.gmlview_height), g_yyPrePostObject__);};if(yyGetBool(global.gmlbrowser)){__yy__v996.gmlmax_window_scale=min(yyfdivide(__yy_gml_errCheck(__yy__v996.gmldisplay_width),__yy_gml_errCheck(__yy__v996.gmlview_width)),yyfdivide(__yy_gml_errCheck(__yy__v996.gmldisplay_height),__yy_gml_errCheck(__yy__v996.gmlview_height)));}else {{__yy__v996.gmlmax_window_scale=min(floor(yyfdivide(__yy_gml_errCheck(__yy__v996.gmldisplay_width),__yy_gml_errCheck(__yy__v996.gmlview_width))),floor(yyfdivide(__yy_gml_errCheck(__yy__v996.gmldisplay_height), __yy_gml_errCheck(__yy__v996.gmlview_height))));if(yyfequal(yyftime(__yy_gml_errCheck(__yy__v996.gmlview_height),__yy_gml_errCheck(__yy__v996.gmlmax_window_scale)),__yy__v996.gmldisplay_height)){(g_yyPrePostObject__=__yy__v996.gmlmax_window_scale,__yy__v996.gmlmax_window_scale=(g_yyPrePostObject__ instanceof Long?__yy__v996.gmlmax_window_scale.subtract(1):--__yy__v996.gmlmax_window_scale),g_yyPrePostObject__);};};};window_set_size(yyftime(__yy_gml_errCheck(__yy__v996.gmlview_width),__yy_gml_errCheck(__yy__v996.gmlmax_window_scale)), yyftime(__yy_gml_errCheck(__yy__v996.gmlview_height),__yy_gml_errCheck(__yy__v996.gmlmax_window_scale)));display_set_gui_size(__yy__v996.gmlview_width,__yy__v996.gmlview_height);__yy__v996.alarm=__yy_gml_array_check(__yy__v996.alarm,260108646);__yy__v996.alarm[__yy_gml_array_check_index_set(0)]=1;surface_resize(g_pBuiltIn.application_surface,yyftime(__yy_gml_errCheck(__yy__v996.gmlview_width),__yy_gml_errCheck(__yy__v996.gmlmax_window_scale)),yyftime(__yy_gml_errCheck(__yy__v996.gmlview_height), __yy_gml_errCheck(__yy__v996.gmlmax_window_scale)));}}};}}function gml_GlobalScript_s_play(_inst,_other,argument0){(_inst.gmls_play=__yy_method(_inst,gml_Script_s_play));(_inst.gmls_play_endweek=__yy_method(_inst,gml_Script_s_play_endweek));}function gml_Script_s_play(_inst,_other,argument0){{if(yyGetBool(argument0)){yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstage=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstage,1);};if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstage, 8)){yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstage=1;};show_debug_message(yyfplus(yyfplus(yyfplus("s_play(",__yy_gml_errCheck(string(argument0))),") STAGE = "),__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstage))));global.gmlto_news_from_dilemma=false;var ___sw774___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstage;var ___swc775___=-1;if(yyCompareVal(___sw774___,1,g_GMLMathEpsilon,false)==0){___swc775___=0;}else if(yyCompareVal(___sw774___,2,g_GMLMathEpsilon, false)==0){___swc775___=1;}else if(yyCompareVal(___sw774___,3,g_GMLMathEpsilon,false)==0){___swc775___=2;}else if(yyCompareVal(___sw774___,4,g_GMLMathEpsilon,false)==0){___swc775___=3;}else if(yyCompareVal(___sw774___,5,g_GMLMathEpsilon,false)==0){___swc775___=4;}else if(yyCompareVal(___sw774___,6,g_GMLMathEpsilon,false)==0){___swc775___=5;}else if(yyCompareVal(___sw774___,7,g_GMLMathEpsilon,false)==0){___swc775___=6;}else if(yyCompareVal(___sw774___,8,g_GMLMathEpsilon,false)==0){___swc775___=7;}else if(yyCompareVal(___sw774___, (-10),g_GMLMathEpsilon,false)==0){___swc775___=8;}switch(___swc775___){case 0:{room_goto(YYASSET_REF(0x0300000E));break;}case 1:{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraft_entered=true;gml_Script_s_check_draft(_inst,_other);break;}case 2:{(g_yyPrePostObject__=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlnag,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlnag=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlnag.add(1):++yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlnag), g_yyPrePostObject__);gml_Script_slog(_inst,_other,yyfplus("fullversion = ",__yy_gml_errCheck(string(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"fullversion")))));gml_Script_slog(_inst,_other,yyfplus("nag = ",__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlnag))));var gmlallowNag=true;if((yyGetBool(gml_Script_s_is_co_mode(_inst,_other)))&&(yyGetBool(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear,2)))){{gmlallowNag=false;};}; if((yyGetBool(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)))&&(yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"fullversion")))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltag_kr_message_done)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear,1)))){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstage=1;yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltag_kr_message_done=1;gml_Script_s_create_message(_inst, _other,"",gml_Script_s_str(_inst,_other,"msg_KickReturns"),"",gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,global.gmlc_background,1);return;};}else {if((yyGetBool(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"done_ad_retrogoal"))))&&(yyGetBool(global.gmlmobile_device))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear,1)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,2)))&&(yyGetBool(1))&&(yyGetBool(gmlallowNag))){ {gml_Script_s_do_ad_retrogoal(_inst,_other);return;};}else {if((yyGetBool(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"fullversion"))))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlnag,4)))&&(yyGetBool(gmlallowNag))){{gml_Script_s_do_nag_message(_inst,_other);return;};};};};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){gml_Script_s_co_pre_match(_inst,_other);}else {gml_Script_s_pre_match(_inst,_other);};break;}case 3:{if(!yyGetBool(gml_Script_s_get_human_fixture_by_week(_inst, _other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek))){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstage=1;return;};};yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstage=0;yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamestarts=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamestarts,1);gml_Script_s_savegame(_inst,_other);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstage=4;room_goto(YYASSET_REF(0x03000011));break;}case 4:{gml_Script_s_do_schedule(_inst,_other,false); room_goto(YYASSET_REF(0x03000018));break;}case 5:{if(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)){{(g_yyPrePostObject__=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstage,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstage=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstage.add(1):++yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstage),g_yyPrePostObject__);room_goto(YYASSET_REF(0x03000022));};}else {room_goto(YYASSET_REF(0x03000028)); };break;}case 6:{room_goto(YYASSET_REF(0x03000022));break;}case 7:{gml_Script_s_loading_start(_inst,_other,kgml_Script_s_play_endweek);break;}case 8:{gml_Script_s_start_college_draft(_inst,_other);break;}};}}function gml_Script_s_play_endweek(_inst,_other){{gml_Script_s_do_next_week(_inst,_other);gml_Script_s_play(_inst,_other,1);}}function gml_GlobalScript_s_update_poki_scaling(_inst,_other){(_inst.gmls_update_poki_scaling=__yy_method(_inst,gml_Script_s_update_poki_scaling));}function gml_Script_s_update_poki_scaling(_inst, _other){{if(yyGetBool(global.gmlbrowser)){{{var __yy__v997=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v998 in __yy__v997){if(!__yy__v997.hasOwnProperty(__yy__v998))continue;var __yy__v999=__yy__v997[__yy__v998];{if((yyGetBool(yyfnotequal(g_pBuiltIn.get_browser_width(),__yy__v999.gmlcanvaswidth)))||(yyGetBool(yyfnotequal(g_pBuiltIn.get_browser_height(),__yy__v999.gmlcanvasheight)))){{__yy__v999.gmlcanvaswidth=g_pBuiltIn.get_browser_width();__yy__v999.gmlcanvasheight=g_pBuiltIn.get_browser_height(); gml_Script_scale_canvas(__yy__v999,_inst,480,270,max(480,__yy__v999.gmlcanvaswidth),max(270,__yy__v999.gmlcanvasheight),true);};};return;if((yyGetBool(yyfnotequal(g_pBuiltIn.get_browser_width(),__yy__v999.gmlcanvaswidth)))||(yyGetBool(yyfnotequal(g_pBuiltIn.get_browser_height(),__yy__v999.gmlcanvasheight)))){{var gmlscl=4;while(yyfgreaterequal(gmlscl,1)){{if(yyfgreaterequal(g_pBuiltIn.get_browser_height(),yyftime(270,__yy_gml_errCheck(gmlscl)))){{__yy__v999.gmlcanvaswidth=g_pBuiltIn.get_browser_width(); __yy__v999.gmlcanvasheight=g_pBuiltIn.get_browser_height();gml_Script_scale_canvas(__yy__v999,_inst,480,270,max(480,yyftime(480,__yy_gml_errCheck(gmlscl))),max(270,yyftime(270,__yy_gml_errCheck(gmlscl))),true);return;};};gmlscl=yyfminus(gmlscl,0.1);}};};};}}};};};}}function gml_GlobalScript_s_pre_match(_inst,_other){(_inst.gmls_pre_match=__yy_method(_inst,gml_Script_s_pre_match));(_inst.gmls_continue_time_for_draft_msg=__yy_method(_inst,gml_Script_s_continue_time_for_draft_msg));(_inst.gmls_co_pre_match=__yy_method(_inst, gml_Script_s_co_pre_match));}function gml_Script_s_pre_match(_inst,_other){{gml_Script_slog(_inst,_other,"s_next_match");yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice=0;var gmlweek=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek;var gmlfix=gml_Script_s_get_human_fixture_by_week(_inst,_other,gmlweek);if((yyGetBool(gmlfix))&&(yyGetBool(yyfnotequal(ds_map_find_value(gmlfix,"human_win"),"unplayed")))){{(g_yyPrePostObject__=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlweek=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek.add(1):++yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek),g_yyPrePostObject__);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstage=2;return;};};if(yyGetBool(gmlfix)){{room_goto(YYASSET_REF(0x03000015));};}else {if(yyfless(gmlweek,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs)){{gml_Script_s_do_bye_week(_inst,_other);};}else {if((yyGetBool(yyfequal(gmlweek, yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs)))&&(yyGetBool((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam,gml_Script_s_get_division_winner_by_seed(_inst,_other,0,1))))||(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam,gml_Script_s_get_division_winner_by_seed(_inst,_other,1,1))))))){{gml_Script_s_do_bye_week(_inst,_other);};}else {if(yyflessequal(gmlweek,gml_Script_s_get_week_superbowl(_inst,_other))){{yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlplayoff_proceed=true;gml_Script_btn_click_PlayOffs(_inst,_other);};}else {if((yyGetBool(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldone_season_review)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear,1)))){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstage=1;yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldone_season_review=true;room_goto(YYASSET_REF(0x03000026));};}else {if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){ {yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstage=(-11);gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_TimeForProDraft"),"",gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_continue_time_for_draft_msg,global.gmlc_background,1);};}else {if(yyfgreater(gml_Script_s_count_joboffers(_inst,_other),0)){{room_goto(YYASSET_REF(0x03000003));};}else {{gml_Script_s_start_new_season(_inst,_other,false);};};};};};};};};}}function gml_Script_s_continue_time_for_draft_msg(_inst, _other){{room_goto(YYASSET_REF(0x0300000E));gml_Script_s_msg_clear(_inst,_other);}}function gml_Script_s_co_pre_match(_inst,_other){{gml_Script_slog(_inst,_other,"s_co_pre_match - College: next match or next season");yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice=0;var gmlweek=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek;var gmlfix=gml_Script_s_get_human_fixture_by_week(_inst,_other,gmlweek);if((yyGetBool(gmlfix))&&(yyGetBool(yyfnotequal(ds_map_find_value(gmlfix,"human_win"),"unplayed")))){ {(g_yyPrePostObject__=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek.add(1):++yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek),g_yyPrePostObject__);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstage=2;return;};};if(yyGetBool(gmlfix)){{gml_Script_slogf(_inst,_other,"*** Enter: Next human match (season or post season)");if((yyGetBool(yyfequal(g_pBuiltIn.get_current_room(), YYASSET_REF(0x0300000E))))&&(yyGetBool(gml_Script_s_is_co_postseason(_inst,_other)))){gml_Script_s_goto_room(_inst,_other,YYASSET_REF(0x03000036));}else {room_goto(YYASSET_REF(0x03000015));};};}else {if(yyfless(gmlweek,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_postseason)){{gml_Script_slogf(_inst,_other,"*** Enter: Bye week");gml_Script_s_do_bye_week(_inst,_other);};}else {if((yyGetBool(yyfgreaterequal(gmlweek,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_postseason)))&&(yyGetBool(yyflessequal(gmlweek, gml_Script_s_get_last_schedule_week(_inst,_other))))){{gml_Script_slogf(_inst,_other,"*** Enter: Postseason (non player)");gml_Script_s_goto_room(_inst,_other,YYASSET_REF(0x03000036));};}else {if((yyGetBool(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldone_season_review)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear,1)))){{gml_Script_slogf(_inst,_other,"*** Enter: Season review");yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstage=1;yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmldone_season_review=true;room_goto(YYASSET_REF(0x03000026));};}else {if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gml_Script_slogf(_inst,_other,"*** Enter: Pro draft");yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstage=(-11);gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_TimeForProDraft"),"",gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_continue_time_for_draft_msg,global.gmlc_background,1);};}else {if(yyfgreater(gml_Script_s_count_joboffers(_inst, _other),0)){{gml_Script_slogf(_inst,_other,"*** Enter: Job offers");room_goto(YYASSET_REF(0x03000003));};}else {{gml_Script_slogf(_inst,_other,"*** Enter: New season");gml_Script_s_start_new_season(_inst,_other,false);};};};};};};};}}function gml_GlobalScript_s_player_profile_qb_mode(_inst,_other){(_inst.gmls_player_profile_qb_mode=__yy_method(_inst,gml_Script_s_player_profile_qb_mode));}function gml_Script_s_player_profile_qb_mode(_inst,_other){{yyInst(_inst,_other,100418).gmltext=string(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlqb_nrg);if(yyfgreater(gml_Script_s_get_qb_energy(_inst,_other),99)){yyInst(_inst,_other,100421).gmlactive=false;};}}function gml_GlobalScript_s_do_next_week(_inst,_other){(_inst.gmls_do_next_week=__yy_method(_inst,gml_Script_s_do_next_week));}function gml_Script_s_do_next_week(_inst,_other){{gml_Script_slog(_inst,_other,"s_do_next_week");var gmlfacilities_week=9;var gmlcontracts_week=16;{var __yy__v1000=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1001 in __yy__v1000){ if(!__yy__v1000.hasOwnProperty(__yy__v1001))continue;var __yy__v1002=__yy__v1000[__yy__v1001];{(g_yyPrePostObject__=__yy__v1002.gmlweek,__yy__v1002.gmlweek=(g_yyPrePostObject__ instanceof Long?__yy__v1002.gmlweek.add(1):++__yy__v1002.gmlweek),g_yyPrePostObject__);__yy__v1002.gmloffers_done=false;__yy__v1002.gmlfans_done_update=false;__yy__v1002.gmlprematch_dilemma_done=false;__yy__v1002.gmlprematch_dilemma_shown_count=0;ds_list_clear(__yy__v1002.gmlprematch_dilemma_chosen_players);__yy__v1002.gmlboost_morale_done=false; __yy__v1002.gmlboost_condition_done=false;__yy__v1002.gmlboost_gpa_done=false;if(yyGetBool(__yy__v1002.gmlqb_mode)){{gml_Script_s_degrade_shop_items(__yy__v1002,_inst);gml_Script_s_qb_mode_update_resting(__yy__v1002,_inst);};};gml_Script_s_clear_trade_offers(__yy__v1002,_inst);gml_Script_s_reset_player_meetings(__yy__v1002,_inst);gml_Script_s_do_result_news(__yy__v1002,_inst);if(yyfequal(__yy__v1002.gmlweek,gmlfacilities_week)){gml_Script_s_decline_facilities(__yy__v1002,_inst);};if((yyGetBool(yyfequal(__yy__v1002.gmlweek, yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs)))&&(yyGetBool(!yyGetBool(gml_Script_s_is_co_mode(__yy__v1002,_inst))))){gml_Script_s_create_playoffs2(__yy__v1002,_inst);};gml_Script_s_competitions_status_update(__yy__v1002,_inst);gml_Script_s_create_hirelist(__yy__v1002,_inst,true,false);gml_Script_s_create_storelist(__yy__v1002,_inst,yyfplus(1,__yy_gml_errCheck(irandom(2))));if(!yyGetBool(__yy__v1002.gmlqb_mode)){{if(yyfequal(__yy__v1002.gmlweek,gmlcontracts_week)){gml_Script_s_check_contracts_expiring(__yy__v1002, _inst);};if((yyGetBool(yyfequal(__yy__v1002.gmlweek,8)))&&(yyGetBool(!yyGetBool(gml_Script_s_is_co_mode(__yy__v1002,_inst))))){gml_Script_s_add_news(__yy__v1002,_inst,gml_Script_s_str(__yy__v1002,_inst,"msg_TradeDeadline"));};};};gml_Script_s_savegame(__yy__v1002,_inst);gml_Script_slog(__yy__v1002,_inst,yyfplus(">>>>> NEW WEEK = ",__yy_gml_errCheck(string(__yy__v1002.gmlweek))));}}};}}function gml_GlobalScript_s_start_new_season(_inst,_other){(_inst.gmls_start_new_season=__yy_method(_inst,gml_Script_s_start_new_season)); (_inst.gmls_renew_contracts_qb_mode=__yy_method(_inst,gml_Script_s_renew_contracts_qb_mode));}function gml_Script_s_start_new_season(_inst,_other,argument0,argument1){{if(yyfequal(argument1,_inst.undefined)){argument1=(-4);};}{gml_Script_slog(_inst,_other,"s_start_new_season");{var __yy__v1003=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1004 in __yy__v1003){if(!__yy__v1003.hasOwnProperty(__yy__v1004))continue;var __yy__v1005=__yy__v1003[__yy__v1004];{if(yyGetBool(gml_Script_s_is_co_mode(__yy__v1005, _inst))){{gml_Script_s_update_history_season_end(__yy__v1005,_inst,(yyfnotequal(argument1,(-4))?argument1:__yy__v1005.gmlmyteam_id));gml_Script_slog(__yy__v1005,_inst,yyfplus(yyfplus(yyfplus(yyfplus("s_start_new_season rc tally: rc_season_earned[",__yy_gml_errCheck(string(__yy__v1005.gmlrc_season_earned))),"] rc_season_spent["),__yy_gml_errCheck(string(__yy__v1005.gmlrc_season_spent))),"] "));gml_Script_slog(__yy__v1005,_inst,yyfplus(yyfplus(yyfplus(yyfplus("s_start_new_season rc tally: rc_lifetime_earned[", __yy_gml_errCheck(string(__yy__v1005.gmlrc_lifetime_earned))),"] rc_lifetime_spent["),__yy_gml_errCheck(string(__yy__v1005.gmlrc_lifetime_spent))),"] "));__yy__v1005.gmlrc_season_earned=0;__yy__v1005.gmlrc_season_spent=0;};};gml_Script_s_reset_match_stats(__yy__v1005,_inst,true);__yy__v1005.gmljobofferdone=false;if(yyfgreater(__yy__v1005.gmlyear,1)){gml_Script_s_complete_achievement(__yy__v1005,_inst,"ACH_SEASON1");};if(yyfgreaterequal(gml_Script_s_count_achievement(__yy__v1005,_inst,"ACH_SEASON1"), 5)){gml_Script_s_complete_achievement(__yy__v1005,_inst,"ACH_SEASON5");};if(yyfgreaterequal(gml_Script_s_count_achievement(__yy__v1005,_inst,"ACH_SEASON1"),10)){gml_Script_s_complete_achievement(__yy__v1005,_inst,"ACH_SEASON10");};if(yyfgreaterequal(gml_Script_s_count_achievement(__yy__v1005,_inst,"ACH_SEASON1"),20)){gml_Script_s_complete_achievement(__yy__v1005,_inst,"ACH_SEASON20");};__yy__v1005.gmlweek=1;__yy__v1005.gmllast_week_regular=18;__yy__v1005.gmlfirst_week_playoffs=19;gml_Script_s_college_shorter_season(__yy__v1005, _inst);__yy__v1005.gmlyear=yyfplus(__yy__v1005.gmlyear,1);__yy__v1005.gmlgamestarts=0;__yy__v1005.gmldone_season_review=false;__yy__v1005.gmlqb_new_offer=(-1);gml_Script_s_update_all_teams_reputation(__yy__v1005,_inst,__yy__v1005.gmlyear);var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1005.gmlschedule));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_map_destroy(ds_list_find_value(__yy__v1005.gmlschedule,gmli));ds_list_set(__yy__v1005.gmlschedule, gmli,(-1));}};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1005.gmlfixturelist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_map_destroy(ds_list_find_value(__yy__v1005.gmlfixturelist,gmli));ds_list_set(__yy__v1005.gmlfixturelist,gmli,(-1));}};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1005.gmlplayoffs));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_map_destroy(ds_list_find_value(__yy__v1005.gmlplayoffs, gmli));ds_list_set(__yy__v1005.gmlplayoffs,gmli,(-1));}};ds_list_destroy(__yy__v1005.gmlplayoffs);ds_list_destroy(__yy__v1005.gmlschedule);ds_list_destroy(__yy__v1005.gmlfixturelist);__yy__v1005.gmlplayoffs=(-1);__yy__v1005.gmlschedule=(-1);__yy__v1005.gmlfixturelist=(-1);__yy__v1005.gmlplayoffs=ds_list_create();__yy__v1005.gmlschedule=gml_Script_s_load_schedule(__yy__v1005,_inst);__yy__v1005.gmlfixturelist=gml_Script_s_create_my_fixture_list(__yy__v1005,_inst);ds_list_clear(__yy__v1005.gmllist_teams_rejected); var gmlmsg=gml_Script_s_str(__yy__v1005,_inst,"msg_NewSeason");if(yyGetBool(gml_Script_s_is_co_mode(__yy__v1005,_inst))){{var gmlrc_amount=10;if(yyfequal(__yy__v1005.gmlyear,2)){{gml_Script_slog(__yy__v1005,_inst,yyfplus(yyfplus("First RC new season award. Ensuring at least 25RC. Current[",__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrecruitment_credits))),"]"));if(yyfless(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrecruitment_credits),__yy_gml_errCheck(gmlrc_amount)), 25)){{gmlrc_amount=yyfplus(gmlrc_amount,yyfminus(25,__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrecruitment_credits),__yy_gml_errCheck(gmlrc_amount)))));};};};};if(yyGetBool(gml_Script_can_fit_recruitment_credits(__yy__v1005,_inst,gmlrc_amount))){{gmlmsg=string_replace(gml_Script_s_str(__yy__v1005,_inst,"msg_NewSeasonCollege"),"$num",gmlrc_amount);gml_Script_recruitment_credits_add(__yy__v1005,_inst,gmlrc_amount);};}else {{var gmlrc_space=gml_Script_recruitment_credits_space(__yy__v1005, _inst);if(yyfequal(gmlrc_space,0)){{gmlmsg=string_replace(gml_Script_s_str(__yy__v1005,_inst,"msg_NewSeasonCollege_Zero"),"$maxNum",gmlrc_amount);};}else {{gmlmsg=string_replace(gml_Script_s_str(__yy__v1005,_inst,"msg_NewSeasonCollege_NoSpace"),"$maxNum",gmlrc_amount);gmlmsg=string_replace(gmlmsg,"$num",gmlrc_space);};};gml_Script_recruitment_credits_add(__yy__v1005,_inst,gmlrc_amount);};};__yy__v1005.gmlcollege_awards_done=false;__yy__v1005.gmlnon_champ_conferences_resolved=false;};};gml_Script_s_add_news(__yy__v1005, _inst,gmlmsg);__yy__v1005.gmldraft_round=1;__yy__v1005.gmldraft_entered=false;if(yyGetBool(gml_Script_s_is_co_mode(__yy__v1005,_inst))){{__yy__v1005.gmlcollege_admissions_draft_round=1;};};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1005.gmlteamlist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlteam=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteamlist,gmli);ds_map_set(gmlteam,"wins",0);ds_map_set(gmlteam, "losses",0);ds_map_set(gmlteam,"ties",0);ds_map_set(gmlteam,"old_rating",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlteam,"offense")),__yy_gml_errCheck(ds_map_find_value(gmlteam,"defense"))));if(yyfless(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlteam,"defense")),__yy_gml_errCheck(ds_map_find_value(gmlteam,"offense"))),9)){{ds_map_set(gmlteam,"defense",clamp(yyfplus(yyfplus(__yy_gml_errCheck(real(ds_map_find_value(gmlteam,"defense"))),1),__yy_gml_errCheck(irandom(2))),1,10));ds_map_set(gmlteam, "offense",clamp(yyfplus(yyfplus(__yy_gml_errCheck(real(ds_map_find_value(gmlteam,"offense"))),1),__yy_gml_errCheck(irandom(2))),1,10));};}else {if(yyfgreater(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlteam,"defense")),__yy_gml_errCheck(ds_map_find_value(gmlteam,"offense"))),15)){{ds_map_set(gmlteam,"defense",clamp(yyfplus(__yy_gml_errCheck(real(ds_map_find_value(gmlteam,"defense"))),__yy_gml_errCheck(irandom_range((-2),1))),1,10));ds_map_set(gmlteam,"offense",clamp(yyfplus(__yy_gml_errCheck(real(ds_map_find_value(gmlteam, "offense"))),__yy_gml_errCheck(irandom_range((-2),1))),1,10));};}else {{ds_map_set(gmlteam,"defense",clamp(yyfplus(__yy_gml_errCheck(real(ds_map_find_value(gmlteam,"defense"))),__yy_gml_errCheck(irandom_range((-2),2))),1,10));ds_map_set(gmlteam,"offense",clamp(yyfplus(__yy_gml_errCheck(real(ds_map_find_value(gmlteam,"offense"))),__yy_gml_errCheck(irandom_range((-2),2))),1,10));};};};}};gml_Script_s_refactor_team_strengths(__yy__v1005,_inst);gml_Script_s_co_reset_teams_rank(__yy__v1005,_inst);gml_Script_s_co_conference_stats(__yy__v1005, _inst);gml_Script_s_competitions_status_update(__yy__v1005,_inst);gml_Script_s_update_contracts(__yy__v1005,_inst);if(yyGetBool(__yy__v1005.gmlqb_mode)){gml_Script_s_renew_contracts_qb_mode(__yy__v1005,_inst);};if((yyGetBool(!yyGetBool(argument0)))&&(yyGetBool(yyfgreater(__yy__v1005.gmlyear,2)))){{gml_Script_s_decline_facilities(__yy__v1005,_inst);if(yyfgreater(__yy__v1005.gmlfans,80)){{__yy__v1005.gmlfans=clamp(yyftime(__yy_gml_errCheck(__yy__v1005.gmlfans),0.75),10,100);gml_Script_s_add_news(__yy__v1005, _inst,gml_Script_s_str(__yy__v1005,_inst,yyfplus("msg_FansGood",__yy_gml_errCheck(string(yyfplus(1,__yy_gml_errCheck(irandom(2))))))));};}else {if(yyfgreater(__yy__v1005.gmlfans,50)){{__yy__v1005.gmlfans=clamp(yyftime(__yy_gml_errCheck(__yy__v1005.gmlfans),0.85),10,100);gml_Script_s_add_news(__yy__v1005,_inst,gml_Script_s_str(__yy__v1005,_inst,yyfplus("msg_FansBad",__yy_gml_errCheck(string(yyfplus(1,__yy_gml_errCheck(irandom(2))))))));};};};if(yyfgreater(gml_Script_s_get_morale(__yy__v1005,_inst), 65)){{gml_Script_s_adjust_team_morale(__yy__v1005,_inst,(-5),(-15));gml_Script_s_add_news(__yy__v1005,_inst,gml_Script_s_str(__yy__v1005,_inst,"msg_MoraleDown"));};};};};gml_Script_s_clear_storelist(__yy__v1005,_inst);gml_Script_s_create_storelist(__yy__v1005,_inst,false);gml_Script_s_reset_staff_hire_list(__yy__v1005,_inst,false);room_goto(YYASSET_REF(0x0300000E));__yy__v1005.gmlstage=1;}}};}}function gml_Script_s_renew_contracts_qb_mode(_inst,_other){{{var __yy__v1006=GetWithArray(YYASSET_REF(0x00000062)); for(var __yy__v1007 in __yy__v1006){if(!__yy__v1006.hasOwnProperty(__yy__v1007))continue;var __yy__v1008=__yy__v1006[__yy__v1007];{if(yyGetBool(ds_list_size(__yy__v1008.gmlfreeagentlist))){{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1008.gmlfreeagentlist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1008.gmlfreeagentlist,gmli);if(!yyGetBool(irandom(2))){{gml_Script_s_do_contract_news(__yy__v1008, _inst,gml_Script_s_str(__yy__v1008,_inst,yyfplus("news_QB_contract_playerleaves",__yy_gml_errCheck(choose("1","2")))),gmlpmap);};}else {{gml_Script_s_do_contract_news(__yy__v1008,_inst,gml_Script_s_str(__yy__v1008,_inst,"news_QB_contract_playersigns"),gmlpmap);ds_list_add(__yy__v1008.gmlroster,gmlpmap);ds_list_delete(__yy__v1008.gmlfreeagentlist,ds_list_find_index(__yy__v1008.gmlfreeagentlist,gmlpmap));};};}};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1008.gmlfreeagentlist));(g_yyPrePostObject__=gmli, gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_map_destroy(ds_list_find_value(__yy__v1008.gmlfreeagentlist,gmli));ds_list_set(__yy__v1008.gmlfreeagentlist,gmli,(-1));}};ds_list_clear(__yy__v1008.gmlfreeagentlist);};};}}};}}function gml_GlobalScript_s_update_team_buttons(_inst,_other){(_inst.gmls_update_team_buttons=__yy_method(_inst,gml_Script_s_update_team_buttons));}function gml_Script_s_update_team_buttons(_inst,_other){{gml_Script_slog(_inst,_other,yyfplus("s_update_team_buttons:", __yy_gml_errCheck(string(_inst.gmlconference))));var gmlteams=ds_list_create();var gmlcur_teamlist=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteamlist;var gmlcur_teamid=(-1);if(yyGetBool(global.gmlexhibition)){{if((yyGetBool(yyfequal(global.gmlexh_choosing,0)))&&(yyGetBool(yyfnotequal(global.gmlexh_teamset_p0,(-1))))&&(yyGetBool(!yyGetBool(global.gmlexhibition_html_1save)))){{gmlcur_teamlist=global.gmlexh_teamlist_p0;};}else {if((yyGetBool(yyfequal(global.gmlexh_choosing,1)))&&(yyGetBool(yyfnotequal(global.gmlexh_teamset_p1, (-1))))&&(yyGetBool(!yyGetBool(global.gmlexhibition_html_1save)))){{gmlcur_teamlist=global.gmlexh_teamlist_p1;};};};if(yyfequal(global.gmlexh_choosing,0)){{gmlcur_teamid=global.gmlexh_teamId_p0;};}else {if(yyfequal(global.gmlexh_choosing,1)){{gmlcur_teamid=global.gmlexh_teamId_p1;};};};};};var gmlt=0;for(;yyfless(gmlt,ds_list_size(gmlcur_teamlist));(g_yyPrePostObject__=gmlt,gmlt=(g_yyPrePostObject__ instanceof Long?gmlt.add(1):++gmlt),g_yyPrePostObject__)){{var gmltmap=ds_list_find_value(gmlcur_teamlist, gmlt);if(yyfequal(ds_map_find_value(gmltmap,"conference"),_inst.gmlconference)){ds_list_add(gmlteams,gmltmap);};}};gmlteams=gml_Script_s_sort_teams(_inst,_other,gmlteams,1,true);var gmlb=0;for(;yyfless(gmlb,16);(g_yyPrePostObject__=gmlb,gmlb=(g_yyPrePostObject__ instanceof Long?gmlb.add(1):++gmlb),g_yyPrePostObject__)){{var gmlteam=ds_list_find_value(gmlteams,gmlb);yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).gmltext=ds_map_find_value(gmlteam,"name");yyInst(_inst, _other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).gmluid=real(ds_map_find_value(gmlteam,"uid"));if(yyGetBool(global.gmlexhibition)){{yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).gmltext=string_hash_to_newline(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlteam,"name")),"# "));yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).gmloffense=gml_Script_s_get_team_offense_with_reputation_boost(_inst,_other,gmlteam);yyInst(_inst, _other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).gmldefense=gml_Script_s_get_team_defense_with_reputation_boost(_inst,_other,gmlteam);if(yyGetBool(gml_Script_s_is_multicon(_inst,_other))){yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).gmlgp_allowed=yyInst(_inst,_other,global.gmlgp).id;};yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).gmlcolour_text=16777215;yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb, _inst.gmlbtn)]).gmlonClickAction=kgml_Script_btn_click_ChooseTeamExhibition;if(yyfequal(yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).gmluid,gmlcur_teamid)){{yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).gmlcolour_text=global.gmlc_primary;yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).gmlonClickAction=kgml_Script_btn_click_ChoosePlayerExhibition;};};};};}};ds_list_destroy(gmlteams);gmlteams=(-1); var ___sw778___=_inst.gmlconference;var ___swc779___=-1;if(yyCompareVal(___sw778___,0,g_GMLMathEpsilon,false)==0){___swc779___=0;}else if(yyCompareVal(___sw778___,1,g_GMLMathEpsilon,false)==0){___swc779___=1;}switch(___swc779___){case 0:{yyInst(_inst,_other,100043).gmlcolour=global.gmlc_primary;yyInst(_inst,_other,100042).gmlcolour=global.gmlc_background;break;}case 1:{yyInst(_inst,_other,100043).gmlcolour=global.gmlc_background;yyInst(_inst,_other,100042).gmlcolour=global.gmlc_primary;break;}};yyInst(_inst, _other,100043).gmltext=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_conf1;yyInst(_inst,_other,100042).gmltext=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_conf2;if(yyGetBool(global.gmlexhibition)){{yyInst(_inst,_other,100043).gmltext=(yyfequal(global.gmlexh_choosing,0)?global.gmlexh_confAFC_p0:global.gmlexh_confAFC_p1);yyInst(_inst,_other,100042).gmltext=(yyfequal(global.gmlexh_choosing,0)?global.gmlexh_confNFC_p0:global.gmlexh_confNFC_p1);};};if(yyGetBool(gml_Script_s_is_multicon(_inst, _other))){{gml_Script_slog(_inst,_other,"multicon limit %1",yyInst(_inst,_other,global.gmlgp).id);yyInst(_inst,_other,100043).gmlgp_allowed=yyInst(_inst,_other,global.gmlgp).id;yyInst(_inst,_other,100042).gmlgp_allowed=yyInst(_inst,_other,global.gmlgp).id;};};}}function gml_GlobalScript_s_update_job_offer_buttons(_inst,_other){(_inst.gmls_update_job_offer_buttons=__yy_method(_inst,gml_Script_s_update_job_offer_buttons));}function gml_Script_s_update_job_offer_buttons(_inst,_other){{gml_Script_slog(_inst, _other,yyfplus("s_update_job_offer_buttons: ",__yy_gml_errCheck(string(_inst.gmlconference))));var gmlteams=ds_list_create();ds_list_copy(gmlteams,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteamlist);gmlteams=gml_Script_s_sort_teams(_inst,_other,gmlteams,1,true);var gmlt=0;for(;yyfless(gmlt,ds_list_size(gmlteams));(g_yyPrePostObject__=gmlt,gmlt=(g_yyPrePostObject__ instanceof Long?gmlt.add(1):++gmlt),g_yyPrePostObject__)){{var gmlteam=ds_list_find_value(gmlteams,gmlt);if(yyfnotequal(ds_map_find_value(gmlteam, "conference"),_inst.gmlconference)){ds_list_delete(gmlteams,(g_yyPrePostObject__=gmlt,gmlt=(g_yyPrePostObject__ instanceof Long?gmlt.subtract(1):--gmlt),g_yyPrePostObject__));};}};var gmlb=0;for(;yyfless(gmlb,16);(g_yyPrePostObject__=gmlb,gmlb=(g_yyPrePostObject__ instanceof Long?gmlb.add(1):++gmlb),g_yyPrePostObject__)){{var gmlteam=ds_list_find_value(gmlteams,gmlb);yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).gmltext=string_hash_to_newline(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlteam, "name")),"# "));yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).gmlactive=true;yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).gmluid=real(ds_map_find_value(gmlteam,"uid"));yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).gmloffense=real(ds_map_find_value(gmlteam,"offense"));yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).gmldefense=real(ds_map_find_value(gmlteam,"defense")); if(!yyGetBool(gml_Script_s_team_interested(_inst,_other,gmlteam))){yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).gmlactive=false;};}};random_set_seed(g_pBuiltIn.get_current_time());ds_list_destroy(gmlteams);gmlteams=(-1);var ___sw782___=_inst.gmlconference;var ___swc783___=-1;if(yyCompareVal(___sw782___,0,g_GMLMathEpsilon,false)==0){___swc783___=0;}else if(yyCompareVal(___sw782___,1,g_GMLMathEpsilon,false)==0){___swc783___=1;}switch(___swc783___){case 0:{yyInst(_inst, _other,100043).gmlcolour=global.gmlc_primary;yyInst(_inst,_other,100042).gmlcolour=global.gmlc_background;break;}case 1:{yyInst(_inst,_other,100043).gmlcolour=global.gmlc_background;yyInst(_inst,_other,100042).gmlcolour=global.gmlc_primary;break;}};}}function gml_GlobalScript_s_update_options(_inst,_other){(_inst.gmls_update_options=__yy_method(_inst,gml_Script_s_update_options));(_inst.gmls_get_op_invert_throw=__yy_method(_inst,gml_Script_s_get_op_invert_throw));(_inst.gmls_get_op_autorun=__yy_method(_inst, gml_Script_s_get_op_autorun));(_inst.gmlbtn_click_CollegeToggleColor=__yy_method(_inst,gml_Script_btn_click_CollegeToggleColor));(_inst.gmls_get_gm_version=__yy_method(_inst,gml_Script_s_get_gm_version));(_inst.gmls_update_options_if_present=__yy_method(_inst,gml_Script_s_update_options_if_present));}function gml_Script_s_update_options(_inst,_other){{gml_Script_slog(_inst,_other,yyfplus(yyfplus("s_update_options op_soundfx[",__yy_gml_errCheck(string(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options, "op_soundfx")))),"]"));if((yyGetBool(global.gmlconsole_build))||(yyGetBool(0))){{yyInst(_inst,_other,100289).visible=false;};}else {if(yyGetBool(global.gmlbrowser)){{yyInst(_inst,_other,100291).gmlimage=YYASSET_REF(0x01000096);yyInst(_inst,_other,100302).visible=false;yyInst(_inst,_other,100289).visible=false;yyInst(_inst,_other,100311).visible=false;if(yyGetBool(global.gmlpoki)){{yyInst(_inst,_other,100306).gmltext=gml_Script_s_str(_inst,_other,"ui_ExitGamePoki");};};};}else {{yyInst(_inst,_other, 100302).gmlcolour=4235519;yyInst(_inst,_other,100295).gmlcolour=4235519;yyInst(_inst,_other,100316).gmlcolour=4235519;yyInst(_inst,_other,100305).gmlcolour=4235519;};};};yyInst(_inst,_other,100293).gmlcolour=global.gmlc_background;var ___sw810___=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_drivedir");var ___swc811___=-1;if(yyCompareVal(___sw810___,(-1),g_GMLMathEpsilon,false)==0){___swc811___=0;}else if(yyCompareVal(___sw810___,0,g_GMLMathEpsilon,false)==0){___swc811___=1; }else if(yyCompareVal(___sw810___,1,g_GMLMathEpsilon,false)==0){___swc811___=2;}switch(___swc811___){case 0:{yyInst(_inst,_other,100293).gmltext=gml_Script_s_str(_inst,_other,"ui_driveLeft");break;}case 1:{yyInst(_inst,_other,100293).gmltext=gml_Script_s_str(_inst,_other,"ui_driveBoth");break;}case 2:{yyInst(_inst,_other,100293).gmltext=gml_Script_s_str(_inst,_other,"ui_driveRight");break;}};var ___sw812___=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_scanlines"); var ___swc813___=-1;if(yyCompareVal(___sw812___,true,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw812___,"true",g_GMLMathEpsilon,false)==0){___swc813___=0;}else if(yyCompareVal(___sw812___,false,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw812___,"false",g_GMLMathEpsilon,false)==0){___swc813___=1;}switch(___swc813___){case 0:{yyInst(_inst,_other,100278).gmltext=gml_Script_s_str(_inst,_other,"ui_On");break;}case 1:{yyInst(_inst,_other,100278).gmltext=gml_Script_s_str(_inst,_other,"ui_Off");break;}default :{ gml_Script_slog(_inst,_other,yyfplus("op_scanlines=",__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_scanlines"))));}};var ___sw814___=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_weather");var ___swc815___=-1;if(yyCompareVal(___sw814___,true,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw814___,"true",g_GMLMathEpsilon,false)==0){___swc815___=0;}else if(yyCompareVal(___sw814___,false,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw814___, "false",g_GMLMathEpsilon,false)==0){___swc815___=1;}switch(___swc815___){case 0:{yyInst(_inst,_other,100295).gmltext=gml_Script_s_str(_inst,_other,"btn_WeatherOn");break;}case 1:{yyInst(_inst,_other,100295).gmltext=gml_Script_s_str(_inst,_other,"btn_WeatherOff");break;}};var ___sw816___=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx");var ___swc817___=-1;if(yyCompareVal(___sw816___,0,g_GMLMathEpsilon,false)==0){___swc817___=0;}else if(yyCompareVal(___sw816___, 1,g_GMLMathEpsilon,false)==0){___swc817___=1;}else if(yyCompareVal(___sw816___,2,g_GMLMathEpsilon,false)==0){___swc817___=2;}switch(___swc817___){case 0:{yyInst(_inst,_other,100297).gmltext=gml_Script_s_str(_inst,_other,"ui_Off");break;}case 1:{yyInst(_inst,_other,100297).gmltext=gml_Script_s_str(_inst,_other,"ui_SoundFX");break;}case 2:{yyInst(_inst,_other,100297).gmltext=string_hash_to_newline(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_SoundFX")),"#& "),__yy_gml_errCheck(gml_Script_s_str(_inst, _other,"ui_Music"))));break;}};var ___sw818___=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_zoom");var ___swc819___=-1;if(yyCompareVal(___sw818___,true,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw818___,"true",g_GMLMathEpsilon,false)==0){___swc819___=0;}else if(yyCompareVal(___sw818___,false,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw818___,"false",g_GMLMathEpsilon,false)==0){___swc819___=1;}switch(___swc819___){case 0:{yyInst(_inst,_other,100298).gmltext=gml_Script_s_str(_inst, _other,"ui_On");break;}case 1:{yyInst(_inst,_other,100298).gmltext=gml_Script_s_str(_inst,_other,"ui_Off");break;}};var ___sw820___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_matchlength;var ___swc821___=-1;if(yyCompareVal(___sw820___,(-1),g_GMLMathEpsilon,false)==0){___swc821___=0;}else if(yyCompareVal(___sw820___,0,g_GMLMathEpsilon,false)==0){___swc821___=1;}else if(yyCompareVal(___sw820___,1,g_GMLMathEpsilon,false)==0){___swc821___=2;}switch(___swc821___){case 0:{yyInst(_inst,_other,100301).gmltext=gml_Script_s_str(_inst, _other,"ui_min1");break;}case 1:{yyInst(_inst,_other,100301).gmltext=gml_Script_s_str(_inst,_other,"ui_min2");break;}case 2:{yyInst(_inst,_other,100301).gmltext=gml_Script_s_str(_inst,_other,"ui_min3");break;}};var ___sw822___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_difficulty;var ___swc823___=-1;if(yyCompareVal(___sw822___,0,g_GMLMathEpsilon,false)==0){___swc823___=0;}else if(yyCompareVal(___sw822___,1,g_GMLMathEpsilon,false)==0){___swc823___=1;}else if(yyCompareVal(___sw822___,2,g_GMLMathEpsilon, false)==0){___swc823___=2;}else if(yyCompareVal(___sw822___,3,g_GMLMathEpsilon,false)==0){___swc823___=3;}else if(yyCompareVal(___sw822___,4,g_GMLMathEpsilon,false)==0){___swc823___=4;}switch(___swc823___){case 0:{yyInst(_inst,_other,100303).gmltext=gml_Script_s_str(_inst,_other,"ui_Difficulty0");break;}case 1:{yyInst(_inst,_other,100303).gmltext=gml_Script_s_str(_inst,_other,"ui_Difficulty1");break;}case 2:{yyInst(_inst,_other,100303).gmltext=gml_Script_s_str(_inst,_other,"ui_Difficulty2");break;}case 3:{ yyInst(_inst,_other,100303).gmltext=gml_Script_s_str(_inst,_other,"ui_Difficulty3");break;}case 4:{yyInst(_inst,_other,100303).gmltext=gml_Script_s_str(_inst,_other,"ui_Difficulty4");break;}};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{var ___sw824___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrecruitment_credits_cap;var ___swc825___=-1;if(yyCompareVal(___sw824___,50,g_GMLMathEpsilon,false)==0){___swc825___=0;}else if(yyCompareVal(___sw824___,60,g_GMLMathEpsilon,false)==0){___swc825___=1; }switch(___swc825___){case 0:{yyInst(_inst,_other,100305).gmltext=gml_Script_s_str(_inst,_other,"ui_Roster10");break;}case 1:{yyInst(_inst,_other,100305).gmltext=gml_Script_s_str(_inst,_other,"ui_Roster12");break;}default :{yyInst(_inst,_other,100305).gmltext=gml_Script_s_strfl(_inst,_other,"INV: %1",yyInst(_inst,_other,global.gmlg_m).gmlrecruitment_credits_cap);break;}};yyInst(_inst,_other,100318).gmltext=yyfplus("Col: ",__yy_gml_errCheck(string(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options, "co_op_color"))));};}else {{var ___sw826___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsalary_cap;var ___swc827___=-1;if(yyCompareVal(___sw826___,150,g_GMLMathEpsilon,false)==0){___swc827___=0;}else if(yyCompareVal(___sw826___,200,g_GMLMathEpsilon,false)==0){___swc827___=1;}switch(___swc827___){case 0:{yyInst(_inst,_other,100305).gmltext=gml_Script_s_str(_inst,_other,"ui_Roster10");break;}case 1:{yyInst(_inst,_other,100305).gmltext=gml_Script_s_str(_inst,_other,"ui_Roster12");break;}};};};var ___sw828___=ds_map_find_value(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlmap_options,"op_invert_throw");var ___swc829___=-1;if(yyCompareVal(___sw828___,0,g_GMLMathEpsilon,false)==0){___swc829___=0;}else if(yyCompareVal(___sw828___,1,g_GMLMathEpsilon,false)==0){___swc829___=1;}else if(yyCompareVal(___sw828___,2,g_GMLMathEpsilon,false)==0){___swc829___=2;}else if(yyCompareVal(___sw828___,3,g_GMLMathEpsilon,false)==0){___swc829___=3;}switch(___swc829___){case 0:{yyInst(_inst,_other,100284).gmltext=gml_Script_s_str(_inst,_other,"ui_Normal"); break;}case 1:{yyInst(_inst,_other,100284).gmltext=gml_Script_s_str(_inst,_other,"ui_Inverted");break;}case 2:{yyInst(_inst,_other,100284).gmltext=gml_Script_s_str(_inst,_other,"ui_AnalogueL");break;}case 3:{yyInst(_inst,_other,100284).gmltext=gml_Script_s_str(_inst,_other,"ui_AnalogueR");break;}};var ___sw830___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_autorun;var ___swc831___=-1;if(yyCompareVal(___sw830___,0,g_GMLMathEpsilon,false)==0){___swc831___=0;}else if(yyCompareVal(___sw830___,1,g_GMLMathEpsilon, false)==0){___swc831___=1;}switch(___swc831___){case 0:{yyInst(_inst,_other,100287).gmltext=gml_Script_s_str(_inst,_other,"ui_Off");break;}case 1:{yyInst(_inst,_other,100287).gmltext=gml_Script_s_str(_inst,_other,"ui_On");break;}};var ___sw832___=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_kickoffs");var ___swc833___=-1;if(yyCompareVal(___sw832___,false,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw832___,"false",g_GMLMathEpsilon,false)==0){___swc833___=0;}else if(yyCompareVal(___sw832___, true,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw832___,"true",g_GMLMathEpsilon,false)==0){___swc833___=1;}switch(___swc833___){case 0:{yyInst(_inst,_other,100316).gmltext=gml_Script_s_str(_inst,_other,"ui_Off");break;}case 1:{yyInst(_inst,_other,100316).gmltext=gml_Script_s_str(_inst,_other,"ui_On");break;}};yyInst(_inst,_other,100294).gmltext=yyfplus("v",__yy_gml_errCheck(gml_Script_s_get_gm_version(_inst,_other)));if((yyGetBool(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfr_mode)))&&(yyGetBool(global.gmldebug))){ yyInst(_inst,_other,100294).gmltext=yyfplus(yyInst(_inst,_other,100294).gmltext,yyfplus(yyfplus("\n",__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Version_Mode"))),__yy_gml_errCheck(gml_Script_s_get_data_version_string(_inst,_other))));};if((yyGetBool(global.gmlbrowser))&&(yyGetBool(yyfequal(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"),2)))){{gml_Script_slog(_inst,_other,"- Queueing s_update_music()");yyInst(_inst,_other,YYASSET_REF(0x0000008A)).alarm=__yy_gml_array_check(yyInst(_inst, _other,YYASSET_REF(0x0000008A)).alarm,3764260059);yyInst(_inst,_other,YYASSET_REF(0x0000008A)).alarm[__yy_gml_array_check_index_set(0)]=30;};}else {{gml_Script_s_update_music(_inst,_other);};};}}function gml_Script_s_get_op_invert_throw(_inst,_other){{if(!yyGetBool(gml_Script_s_is_multicon(_inst,_other))){{return ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_invert_throw");};}else {{return ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options, (yyfequal(yyInst(_inst,_other,global.gmlgp).id,2)?"op_invert_throw_p2":"op_invert_throw"));};};}}function gml_Script_s_get_op_autorun(_inst,_other){{if(!yyGetBool(gml_Script_s_is_multicon(_inst,_other))){{return yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_autorun;};}else {{return(yyfequal(yyInst(_inst,_other,global.gmlgp).id,2)?yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_autorun_p2:yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_autorun);};};}}function gml_Script_btn_click_CollegeToggleColor(_inst, _other){{var gmlcurC=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"co_op_color");gmlcurC=yyfplus(gmlcurC,1);if(yyfgreater(gmlcurC,3)){{gmlcurC=0;};};ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"co_op_color",gmlcurC);gml_Script_s_update_options(_inst,_other);gml_Script_s_update_ui_colours(_inst,_other);}}function gml_Script_s_get_gm_version(_inst,_other){{var ___sw834___=g_pBuiltIn.get_os_type();var ___swc835___=-1;switch(___swc835___){default :{ return "0.8.19.0";}};}}function gml_Script_s_update_options_if_present(_inst,_other){{if(yyfequal(g_pBuiltIn.get_current_room(),YYASSET_REF(0x03000012))){{gml_Script_slogf(_inst,_other,"*** refresh options");gml_Script_s_update_options(_inst,_other);};};}}function gml_GlobalScript_s_get_attitude_icon(_inst,_other){(_inst.gmls_get_attitude_icon=__yy_method(_inst,gml_Script_s_get_attitude_icon));(_inst.gmls_attitude_reduce_step=__yy_method(_inst,gml_Script_s_attitude_reduce_step));}function gml_Script_s_get_attitude_icon(_inst, _other,argument0){{if(yyflessequal(argument0,15)){return 0;};if(yyflessequal(argument0,30)){return 1;};if(yyflessequal(argument0,45)){return 2;};if(yyflessequal(argument0,60)){return 3;};if(yyflessequal(argument0,75)){return 4;};if(yyflessequal(argument0,90)){return 5;};return 6;}}function gml_Script_s_attitude_reduce_step(_inst,_other,argument0){{if(yyflessequal(argument0,15)){return 15;};if(yyflessequal(argument0,30)){return 15;};if(yyflessequal(argument0,45)){return 30;};if(yyflessequal(argument0,60)){return 45; };if(yyflessequal(argument0,75)){return 60;};if(yyflessequal(argument0,90)){return 75;};return 90;}}function gml_GlobalScript_s_get_credit(_inst,_other){(_inst.gmls_get_credit=__yy_method(_inst,gml_Script_s_get_credit));}function gml_Script_s_get_credit(_inst,_other){{return yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit;}}function gml_GlobalScript_s_decline_facilities(_inst,_other){(_inst.gmls_decline_facilities=__yy_method(_inst,gml_Script_s_decline_facilities));}function gml_Script_s_decline_facilities(_inst, _other){{{var __yy__v1009=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1010 in __yy__v1009){if(!__yy__v1009.hasOwnProperty(__yy__v1010))continue;var __yy__v1011=__yy__v1009[__yy__v1010];{var ___sw838___=irandom(2);var ___swc839___=-1;if(yyCompareVal(___sw838___,0,g_GMLMathEpsilon,false)==0){___swc839___=0;}else if(yyCompareVal(___sw838___,1,g_GMLMathEpsilon,false)==0){___swc839___=1;}else if(yyCompareVal(___sw838___,2,g_GMLMathEpsilon,false)==0){___swc839___=2;}switch(___swc839___){case 0:{if((yyGetBool(yyfequal(__yy__v1011.gmlfacility_upgraded_stadium, 0)))&&(yyGetBool(yyfgreater(__yy__v1011.gmlfacility_stadium,1)))){{(g_yyPrePostObject__=__yy__v1011.gmlfacility_stadium,__yy__v1011.gmlfacility_stadium=(g_yyPrePostObject__ instanceof Long?__yy__v1011.gmlfacility_stadium.subtract(1):--__yy__v1011.gmlfacility_stadium),g_yyPrePostObject__);gml_Script_s_add_news(__yy__v1011,_inst,gml_Script_s_str(__yy__v1011,_inst,"msg_FacilityDeclineStadium"));};};break;}case 1:{if((yyGetBool(yyfequal(__yy__v1011.gmlfacility_upgraded_training,0)))&&(yyGetBool(yyfgreater(__yy__v1011.gmlfacility_training, 1)))){{(g_yyPrePostObject__=__yy__v1011.gmlfacility_training,__yy__v1011.gmlfacility_training=(g_yyPrePostObject__ instanceof Long?__yy__v1011.gmlfacility_training.subtract(1):--__yy__v1011.gmlfacility_training),g_yyPrePostObject__);gml_Script_s_add_news(__yy__v1011,_inst,gml_Script_s_str(__yy__v1011,_inst,"msg_FacilityDeclineTraining"));};};}case 2:{if((yyGetBool(yyfequal(__yy__v1011.gmlfacility_upgraded_rehab,0)))&&(yyGetBool(yyfgreater(__yy__v1011.gmlfacility_rehab,1)))){{(g_yyPrePostObject__=__yy__v1011.gmlfacility_rehab, __yy__v1011.gmlfacility_rehab=(g_yyPrePostObject__ instanceof Long?__yy__v1011.gmlfacility_rehab.subtract(1):--__yy__v1011.gmlfacility_rehab),g_yyPrePostObject__);gml_Script_s_add_news(__yy__v1011,_inst,gml_Script_s_str(__yy__v1011,_inst,"msg_FacilityDeclineRehab"));};};}};__yy__v1011.gmlfacility_upgraded_stadium=0;__yy__v1011.gmlfacility_upgraded_training=0;__yy__v1011.gmlfacility_upgraded_rehab=0;}}};}}function gml_GlobalScript_s_do_result_news_qb(_inst,_other){(_inst.gmls_do_result_news_qb=__yy_method(_inst, gml_Script_s_do_result_news_qb));(_inst.gmls_choose_news=__yy_method(_inst,gml_Script_s_choose_news));}function gml_Script_s_do_result_news_qb(_inst,_other){{var gmlfix=gml_Script_s_get_human_fixture_previous(_inst,_other);if(yyGetBool(gmlfix)){{var gmlpmap=gml_Script_s_get_qb_pmap(_inst,_other);var gmlnews="";if((yyGetBool(yyfequal(_inst.gmlyear,1)))&&(yyGetBool(yyfequal(ds_map_find_value(gmlfix,"week"),1)))){{var ___sw842___=ds_map_find_value(gmlfix,"human_win");var ___swc843___=-1;if(yyCompareVal(___sw842___, "win",g_GMLMathEpsilon,false)==0){___swc843___=0;}else if(yyCompareVal(___sw842___,"loss",g_GMLMathEpsilon,false)==0){___swc843___=1;}else if(yyCompareVal(___sw842___,"tie",g_GMLMathEpsilon,false)==0){___swc843___=2;}switch(___swc843___){case 0:{gmlnews="news_qb_postgame1_win";break;}case 1:{gmlnews="news_qb_postgame1_loss";break;}case 2:{gmlnews="news_qb_postgame1_tie";break;}};};}else {if(yyfequal(ds_map_find_value(gmlfix,"human_win"),"win")){{if(yyfgreater(gml_Script_s_get_match_rating(_inst,_other, gmlpmap),0)){gmlnews=(yyfequal(ds_map_find_value(gmlpmap,"age"),gml_Script_s_rookie_age_internal(_inst,_other))?gml_Script_s_choose_news(_inst,_other,"news_starman_vet"):gml_Script_s_choose_news(_inst,_other,"news_starman_vet"));};};};};if(yyfnotequal(gmlnews,"")){gml_Script_s_add_news(_inst,_other,gml_Script_s_parse_player_message(_inst,_other,gml_Script_s_str(_inst,_other,gmlnews),gmlpmap));};};};}}function gml_Script_s_choose_news(_inst,_other,argument0){{{var __yy__v1012=GetWithArray(YYASSET_REF(0x00000062)); for(var __yy__v1013 in __yy__v1012){if(!__yy__v1012.hasOwnProperty(__yy__v1013))continue;var __yy__v1014=__yy__v1012[__yy__v1013];{ds_list_shuffle(__yy__v1014.gmlnews_tags);var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1014.gmlnews_tags));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlstr=ds_list_find_value(__yy__v1014.gmlnews_tags,gmli);if(yyGetBool(string_count(argument0,gmlstr))){{ds_list_delete(__yy__v1014.gmlnews_tags,gmli);return gmlstr; };};}};gml_Script_slog(__yy__v1014,_inst,"Repopulate dilemma_tags...");gml_Script_s_add_tag_matches_to_list(__yy__v1014,_inst,__yy__v1014.gmlnews_tags,argument0,gml_Script_s_select_lang_file(__yy__v1014,_inst));gml_Script_s_add_tag_matches_to_list(__yy__v1014,_inst,__yy__v1014.gmlnews_tags,argument0,gml_Script_s_select_override_lang_file(__yy__v1014,_inst));return gml_Script_s_choose_news(__yy__v1014,_inst,argument0);}}};}}function gml_GlobalScript_s_reset_player_meetings(_inst,_other){(_inst.gmls_reset_player_meetings=__yy_method(_inst, gml_Script_s_reset_player_meetings));}function gml_Script_s_reset_player_meetings(_inst,_other){{{var __yy__v1015=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1016 in __yy__v1015){if(!__yy__v1015.hasOwnProperty(__yy__v1016))continue;var __yy__v1017=__yy__v1015[__yy__v1016];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1017.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1017.gmlroster, gmli);ds_map_set(gmlpmap,"meetingdone",0);}};}}};}}function gml_GlobalScript_s_has_xp_gain(_inst,_other){(_inst.gmls_has_xp_gain=__yy_method(_inst,gml_Script_s_has_xp_gain));}function gml_Script_s_has_xp_gain(_inst,_other,argument0){{if(yyfless(round(yyfplus(__yy_gml_errCheck(ds_map_find_value(argument0,"xp")),__yy_gml_errCheck(ds_map_find_value(argument0,"xp_gain")))),yyftime(__yy_gml_errCheck(ds_map_find_value(argument0,"xp_level")),100))){return false;};return true;}}function gml_GlobalScript_s_is_bye_week(_inst, _other){(_inst.gmls_is_bye_week=__yy_method(_inst,gml_Script_s_is_bye_week));(_inst.gmls_get_bye_week=__yy_method(_inst,gml_Script_s_get_bye_week));}function gml_Script_s_is_bye_week(_inst,_other,argument0){{{var __yy__v1018=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1019 in __yy__v1018){if(!__yy__v1018.hasOwnProperty(__yy__v1019))continue;var __yy__v1020=__yy__v1018[__yy__v1019];{var gmlfix=gml_Script_s_get_human_fixture_by_week(__yy__v1020,_inst,argument0);if((yyGetBool(!yyGetBool(gmlfix)))&&(yyGetBool(yyfless(argument0, yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs)))){return true;};}}};return false;}}function gml_Script_s_get_bye_week(_inst,_other){{{var __yy__v1021=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1022 in __yy__v1021){if(!__yy__v1021.hasOwnProperty(__yy__v1022))continue;var __yy__v1023=__yy__v1021[__yy__v1022];{var gmlwk=1;var gmlf=0;for(;yyfless(gmlf,ds_list_size(__yy__v1023.gmlfixturelist));(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf), g_yyPrePostObject__)){{var gmlfix=ds_list_find_value(__yy__v1023.gmlfixturelist,gmlf);if((yyGetBool(gmlfix))&&(yyGetBool(!yyGetBool(is_undefined(ds_map_find_value(gmlfix,"week")))))&&(yyGetBool(yyfequal(real(ds_map_find_value(gmlfix,"week")),gmlwk)))){(g_yyPrePostObject__=gmlwk,gmlwk=(g_yyPrePostObject__ instanceof Long?gmlwk.add(1):++gmlwk),g_yyPrePostObject__);}else {return gmlwk;};if(yyfgreater(gmlwk,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs)){return yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs; };}};}}};}}function gml_GlobalScript_s_do_bye_week(_inst,_other){(_inst.gmls_do_bye_week=__yy_method(_inst,gml_Script_s_do_bye_week));}function gml_Script_s_do_bye_week(_inst,_other){{{var __yy__v1024=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1025 in __yy__v1024){if(!__yy__v1024.hasOwnProperty(__yy__v1025))continue;var __yy__v1026=__yy__v1024[__yy__v1025];{gml_Script_s_do_schedule(__yy__v1026,_inst,false);gml_Script_s_rehab_effect(__yy__v1026,_inst,yyftime(__yy_gml_errCheck(__yy__v1026.gmlfacility_rehab), 10),false);gml_Script_s_injury_effect_on_attitude(__yy__v1026,_inst);gml_Script_s_toxic_effect_on_morale(__yy__v1026,_inst);gml_Script_s_add_xp_gain_all(__yy__v1026,_inst,round(8),false);var gmlmsg="";if(yyGetBool(__yy__v1026.gmlqb_mode)){gmlmsg=gml_Script_s_choose_dilemma(__yy__v1026,_inst,"dilemma_ByeWeek_QB");}else {gmlmsg=gml_Script_s_choose_dilemma(__yy__v1026,_inst,"dilemma_ByeWeek");};ds_map_clear(__yy__v1026.gmlmap_dilemma);__yy__v1026.gmlmap_dilemma=gml_Script_s_parse_dilemma(__yy__v1026, _inst,gmlmsg,(-4),"ui_ByeWeek");gml_Script_s_create_dilemma(__yy__v1026,_inst,__yy__v1026.gmlmap_dilemma);__yy__v1026.gmlstage=5;}}};}}function gml_GlobalScript_s_do_postmatch_effects(_inst,_other){(_inst.gmls_do_postmatch_effects=__yy_method(_inst,gml_Script_s_do_postmatch_effects));}function gml_Script_s_do_postmatch_effects(_inst,_other){{{var __yy__v1027=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1028 in __yy__v1027){if(!__yy__v1027.hasOwnProperty(__yy__v1028))continue;var __yy__v1029=__yy__v1027[__yy__v1028]; {gml_Script_s_rehab_effect(__yy__v1029,_inst,yyfplus(50,__yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy__v1029.gmlfacility_rehab),1.5))),true);gml_Script_s_injury_effect_on_attitude(__yy__v1029,_inst);var gmlfix=gml_Script_s_get_human_fixture_previous(__yy__v1029,_inst);if((yyGetBool(gmlfix))&&(yyGetBool(yyfnotequal(ds_map_find_value(gmlfix,"human_win"),"win")))){gml_Script_s_toxic_effect_on_morale(__yy__v1029,_inst);};}}};}}function gml_GlobalScript_s_do_postmatch_fans(_inst,_other){(_inst.gmls_do_postmatch_fans=__yy_method(_inst, gml_Script_s_do_postmatch_fans));(_inst.gmls_get_postmatch_fans_qb=__yy_method(_inst,gml_Script_s_get_postmatch_fans_qb));}function gml_Script_s_do_postmatch_fans(_inst,_other){{{var __yy__v1030=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1031 in __yy__v1030){if(!__yy__v1030.hasOwnProperty(__yy__v1031))continue;var __yy__v1032=__yy__v1030[__yy__v1031];{var gmlfixture=gml_Script_s_get_human_fixture_by_week(__yy__v1032,_inst,__yy__v1032.gmlweek);var gmlfans_inc=0;if(yyGetBool(gmlfixture)){{gmlfans_inc=yyfminus(__yy_gml_errCheck(__yy__v1032.gmlfacility_stadium), 6);if(yyfequal(ds_map_find_value(gmlfixture,"human_win"),"loss")){{gmlfans_inc=yyfminus(gmlfans_inc,10);};}else {if(yyfequal(ds_map_find_value(gmlfixture,"human_win"),"win")){{gmlfans_inc=yyfplus(gmlfans_inc,8);};}else {gmlfans_inc=yyfminus(gmlfans_inc,3);};};gmlfans_inc=yyfplus(gmlfans_inc,gml_Script_s_count_trait_fanfavorite(__yy__v1032,_inst));if(yyfless(__yy__v1032.gmlsuppress_difficulty,5)){(g_yyPrePostObject__=gmlfans_inc,gmlfans_inc=(g_yyPrePostObject__ instanceof Long?gmlfans_inc.subtract(1):--gmlfans_inc), g_yyPrePostObject__);};if(yyfless(__yy__v1032.gmlsuppress_difficulty,1)){(g_yyPrePostObject__=gmlfans_inc,gmlfans_inc=(g_yyPrePostObject__ instanceof Long?gmlfans_inc.subtract(1):--gmlfans_inc),g_yyPrePostObject__);};};};gmlfans_inc=clamp(gmlfans_inc,(-15),15);__yy__v1032.gmlfans=clamp(yyfplus(__yy_gml_errCheck(__yy__v1032.gmlfans),__yy_gml_errCheck(gmlfans_inc)),1,100);__yy__v1032.gmlfans_done_update=true;}}};}}function gml_Script_s_get_postmatch_fans_qb(_inst,_other){{{var __yy__v1033=GetWithArray(YYASSET_REF(0x00000062)); for(var __yy__v1034 in __yy__v1033){if(!__yy__v1033.hasOwnProperty(__yy__v1034))continue;var __yy__v1035=__yy__v1033[__yy__v1034];{var gmlfixture=gml_Script_s_get_human_fixture_by_week(__yy__v1035,_inst,__yy__v1035.gmlweek);if(yyGetBool(gmlfixture)){{if(yyfequal(ds_map_find_value(gmlfixture,"human_win"),"loss")){return(-5);}else {if(yyfequal(ds_map_find_value(gmlfixture,"human_win"),"win")){return 3;}else {return(-2);};};};};}}};return 0;}}function gml_GlobalScript_s_check_intro(_inst,_other){(_inst.gmls_check_intro=__yy_method(_inst, gml_Script_s_check_intro));(_inst.gmls_check_intro_college=__yy_method(_inst,gml_Script_s_check_intro_college));(_inst.gmls_check_intro_rm_home=__yy_method(_inst,gml_Script_s_check_intro_rm_home));(_inst.gmls_check_intro_rm_home_college=__yy_method(_inst,gml_Script_s_check_intro_rm_home_college));(_inst.gmls_check_intro_rm_roster=__yy_method(_inst,gml_Script_s_check_intro_rm_roster));(_inst.gmls_check_intro_rm_roster_college=__yy_method(_inst,gml_Script_s_check_intro_rm_roster_college));(_inst.gmls_check_intro_rm_frontoffice=__yy_method(_inst, gml_Script_s_check_intro_rm_frontoffice));(_inst.gmls_check_intro_rm_frontoffice_college=__yy_method(_inst,gml_Script_s_check_intro_rm_frontoffice_college));(_inst.gmls_check_intro_rm_profile_staff=__yy_method(_inst,gml_Script_s_check_intro_rm_profile_staff));(_inst.gmls_check_intro_rm_profile_staff_college=__yy_method(_inst,gml_Script_s_check_intro_rm_profile_staff_college));(_inst.gmls_check_intro_rm_profile_boss=__yy_method(_inst,gml_Script_s_check_intro_rm_profile_boss));(_inst.gmls_check_intro_rm_profile_boss_college=__yy_method(_inst, gml_Script_s_check_intro_rm_profile_boss_college));(_inst.gmls_check_intro_case1=__yy_method(_inst,gml_Script_s_check_intro_case1));(_inst.gmls_check_intro_case2=__yy_method(_inst,gml_Script_s_check_intro_case2));(_inst.gmls_check_intro_case3=__yy_method(_inst,gml_Script_s_check_intro_case3));(_inst.gmls_check_intro_case4=__yy_method(_inst,gml_Script_s_check_intro_case4));(_inst.gmls_check_intro_case5=__yy_method(_inst,gml_Script_s_check_intro_case5));(_inst.gmls_check_intro_case6=__yy_method(_inst, gml_Script_s_check_intro_case6));(_inst.gmls_check_intro_case7=__yy_method(_inst,gml_Script_s_check_intro_case7));(_inst.gmls_check_intro_case8=__yy_method(_inst,gml_Script_s_check_intro_case8));(_inst.gmls_check_intro_case2_b=__yy_method(_inst,gml_Script_s_check_intro_case2_b));(_inst.gmls_check_intro_case2_c=__yy_method(_inst,gml_Script_s_check_intro_case2_c));(_inst.gmls_check_intro_case2_d=__yy_method(_inst,gml_Script_s_check_intro_case2_d));(_inst.gmls_check_intro_case2_e=__yy_method(_inst, gml_Script_s_check_intro_case2_e));(_inst.gmls_check_intro_case2_f=__yy_method(_inst,gml_Script_s_check_intro_case2_f));(_inst.gmls_check_intro_case2_g=__yy_method(_inst,gml_Script_s_check_intro_case2_g));(_inst.gmls_info_gpa_explanation_open=__yy_method(_inst,gml_Script_s_info_gpa_explanation_open));(_inst.gmlbtn_info_gpa_explanation_intro_close=__yy_method(_inst,gml_Script_btn_info_gpa_explanation_intro_close));(_inst.gmls_check_intro_case5_b=__yy_method(_inst,gml_Script_s_check_intro_case5_b)); (_inst.gmls_check_intro_case5_second_msg=__yy_method(_inst,gml_Script_s_check_intro_case5_second_msg));}function gml_Script_s_check_intro(_inst,_other){{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{return gml_Script_s_check_intro_college(_inst,_other);};};{var __yy__v1036=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1037 in __yy__v1036){if(!__yy__v1036.hasOwnProperty(__yy__v1037))continue;var __yy__v1038=__yy__v1036[__yy__v1037];{gml_Script_slog(__yy__v1038,_inst,yyfplus("s_check_intro: ", __yy_gml_errCheck(string(__yy__v1038.gmlintro))));var ___sw862___=__yy__v1038.gmlintro;var ___swc863___=-1;if(yyCompareVal(___sw862___,1,g_GMLMathEpsilon,false)==0){___swc863___=0;}else if(yyCompareVal(___sw862___,2,g_GMLMathEpsilon,false)==0){___swc863___=1;}else if(yyCompareVal(___sw862___,3,g_GMLMathEpsilon,false)==0){___swc863___=2;}else if(yyCompareVal(___sw862___,4,g_GMLMathEpsilon,false)==0){___swc863___=3;}else if(yyCompareVal(___sw862___,5,g_GMLMathEpsilon,false)==0){___swc863___=4;}else if(yyCompareVal(___sw862___, 6,g_GMLMathEpsilon,false)==0){___swc863___=5;}else if(yyCompareVal(___sw862___,7,g_GMLMathEpsilon,false)==0){___swc863___=6;}else if(yyCompareVal(___sw862___,8,g_GMLMathEpsilon,false)==0){___swc863___=7;}switch(___swc863___){case 0:{{gml_Script_s_check_intro_case1(__yy__v1038,_inst);break;};}case 1:{{gml_Script_s_check_intro_case2(__yy__v1038,_inst);break;};}case 2:{{gml_Script_s_check_intro_case3(__yy__v1038,_inst);break;};}case 3:{{gml_Script_s_check_intro_case4(__yy__v1038,_inst);break;};}case 4:{{gml_Script_s_check_intro_case5(__yy__v1038, _inst);break;};}case 5:{{gml_Script_s_check_intro_case6(__yy__v1038,_inst);break;};}case 6:{{gml_Script_s_check_intro_case7(__yy__v1038,_inst);break;};}case 7:{{gml_Script_s_check_intro_case8(__yy__v1038,_inst);break;};}};}}};}}function gml_Script_s_check_intro_college(_inst,_other){{{var __yy__v1039=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1040 in __yy__v1039){if(!__yy__v1039.hasOwnProperty(__yy__v1040))continue;var __yy__v1041=__yy__v1039[__yy__v1040];{gml_Script_slog(__yy__v1041,_inst,yyfplus("s_check_intro_college: ", __yy_gml_errCheck(string(__yy__v1041.gmlintro))));var ___sw864___=__yy__v1041.gmlintro;var ___swc865___=-1;if(yyCompareVal(___sw864___,1,g_GMLMathEpsilon,false)==0){___swc865___=0;}else if(yyCompareVal(___sw864___,2,g_GMLMathEpsilon,false)==0){___swc865___=1;}else if(yyCompareVal(___sw864___,3,g_GMLMathEpsilon,false)==0){___swc865___=2;}else if(yyCompareVal(___sw864___,4,g_GMLMathEpsilon,false)==0){___swc865___=3;}else if(yyCompareVal(___sw864___,5,g_GMLMathEpsilon,false)==0){___swc865___=4;}else if(yyCompareVal(___sw864___, 6,g_GMLMathEpsilon,false)==0){___swc865___=5;}else if(yyCompareVal(___sw864___,7,g_GMLMathEpsilon,false)==0){___swc865___=6;}else if(yyCompareVal(___sw864___,8,g_GMLMathEpsilon,false)==0){___swc865___=7;}else if(yyCompareVal(___sw864___,9,g_GMLMathEpsilon,false)==0){___swc865___=8;}else if(yyCompareVal(___sw864___,10,g_GMLMathEpsilon,false)==0){___swc865___=9;}else if(yyCompareVal(___sw864___,11,g_GMLMathEpsilon,false)==0){___swc865___=10;}else if(yyCompareVal(___sw864___,12,g_GMLMathEpsilon,false)==0){ ___swc865___=11;}else if(yyCompareVal(___sw864___,13,g_GMLMathEpsilon,false)==0){___swc865___=12;}switch(___swc865___){case 0:{{gml_Script_s_check_intro_case1(__yy__v1041,_inst);break;};}case 1:{{gml_Script_s_check_intro_case2_b(__yy__v1041,_inst);break;};}case 2:{{gml_Script_s_check_intro_case2_c(__yy__v1041,_inst);break;};}case 3:{{gml_Script_s_check_intro_case2_d(__yy__v1041,_inst);break;};}case 4:{{gml_Script_s_check_intro_case2_e(__yy__v1041,_inst);break;};}case 5:{{gml_Script_s_check_intro_case2_f(__yy__v1041, _inst);break;};}case 6:{{gml_Script_s_check_intro_case2_g(__yy__v1041,_inst);break;};}case 7:{{gml_Script_s_check_intro_case3(__yy__v1041,_inst);break;};}case 8:{{gml_Script_s_check_intro_case4(__yy__v1041,_inst);break;};}case 9:{{gml_Script_s_check_intro_case5_b(__yy__v1041,_inst);break;};}case 10:{{gml_Script_s_check_intro_case6(__yy__v1041,_inst);break;};}case 11:{{gml_Script_s_check_intro_case7(__yy__v1041,_inst);break;};}case 12:{{gml_Script_s_check_intro_case8(__yy__v1041,_inst);break;};}};}}};}} function gml_Script_s_check_intro_rm_home(_inst,_other){{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gml_Script_s_check_intro_rm_home_college(_inst,_other);return;};};var ___sw866___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlintro;var ___swc867___=-1;if(yyCompareVal(___sw866___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw866___,2,g_GMLMathEpsilon,false)==0){___swc867___=0;}else if(yyCompareVal(___sw866___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw866___,4,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw866___, 5,g_GMLMathEpsilon,false)==0){___swc867___=1;}else if(yyCompareVal(___sw866___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw866___,7,g_GMLMathEpsilon,false)==0){___swc867___=2;}switch(___swc867___){case 0:{yyInst(_inst,_other,100236).gmlflash=true;yyInst(_inst,_other,100242).gmlactive=false;yyInst(_inst,_other,100238).gmlactive=false;yyInst(_inst,_other,100243).gmlactive=false;break;}case 1:{yyInst(_inst,_other,100242).gmlflash=true;yyInst(_inst,_other,100238).gmlactive=false;yyInst(_inst,_other, 100243).gmlactive=false;break;}case 2:{yyInst(_inst,_other,100238).gmlflash=true;break;}default :{break;}};}}function gml_Script_s_check_intro_rm_home_college(_inst,_other){{var ___sw868___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlintro;var ___swc869___=-1;if(yyCompareVal(___sw868___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw868___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw868___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw868___,4,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw868___, 5,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw868___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw868___,7,g_GMLMathEpsilon,false)==0){___swc869___=0;}else if(yyCompareVal(___sw868___,8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw868___,9,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw868___,10,g_GMLMathEpsilon,false)==0){___swc869___=1;}else if(yyCompareVal(___sw868___,11,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw868___,12,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw868___,13,g_GMLMathEpsilon, false)==0){___swc869___=2;}switch(___swc869___){case 0:{yyInst(_inst,_other,100236).gmlflash=true;yyInst(_inst,_other,100242).gmlactive=false;yyInst(_inst,_other,100238).gmlactive=false;yyInst(_inst,_other,100243).gmlactive=false;break;}case 1:{yyInst(_inst,_other,100242).gmlflash=true;yyInst(_inst,_other,100238).gmlactive=false;yyInst(_inst,_other,100243).gmlactive=false;break;}case 2:{yyInst(_inst,_other,100238).gmlflash=true;break;}default :{break;}};}}function gml_Script_s_check_intro_rm_roster(_inst, _other){{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gml_Script_s_check_intro_rm_roster_college(_inst,_other);return;};};var ___sw870___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlintro;var ___swc871___=-1;if(yyCompareVal(___sw870___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw870___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw870___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw870___,4,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw870___,5,g_GMLMathEpsilon,false)==0){___swc871___=0; }else if(yyCompareVal(___sw870___,6,g_GMLMathEpsilon,false)==0){___swc871___=1;}else if(yyCompareVal(___sw870___,7,g_GMLMathEpsilon,false)==0){___swc871___=2;}switch(___swc871___){case 0:{yyInst(_inst,_other,_inst.gmlroster_profile[__yy_gml_array_check_index(0,_inst.gmlroster_profile)]).gmlflash=true;yyInst(_inst,_other,100499).gmlactive=false;yyInst(_inst,_other,100491).gmlactive=false;break;}case 1:{yyInst(_inst,_other,100499).gmlactive=false;yyInst(_inst,_other,100491).gmlflash=true;}case 2:{break; }default :{return;break;}};}}function gml_Script_s_check_intro_rm_roster_college(_inst,_other){{var ___sw872___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlintro;var ___swc873___=-1;if(yyCompareVal(___sw872___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw872___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw872___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw872___,4,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw872___,5,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw872___,6,g_GMLMathEpsilon, false)==0||yyCompareVal(___sw872___,7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw872___,8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw872___,9,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw872___,10,g_GMLMathEpsilon,false)==0){___swc873___=0;}else if(yyCompareVal(___sw872___,11,g_GMLMathEpsilon,false)==0){___swc873___=1;}else if(yyCompareVal(___sw872___,12,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw872___,13,g_GMLMathEpsilon,false)==0){___swc873___=2;}switch(___swc873___){case 0:{yyInst(_inst, _other,_inst.gmlroster_profile[__yy_gml_array_check_index(0,_inst.gmlroster_profile)]).gmlflash=true;yyInst(_inst,_other,100499).gmlactive=false;yyInst(_inst,_other,100491).gmlactive=false;break;}case 1:{yyInst(_inst,_other,100499).gmlactive=false;yyInst(_inst,_other,100491).gmlflash=true;}case 2:{break;}default :{return;break;}};}}function gml_Script_s_check_intro_rm_frontoffice(_inst,_other){{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gml_Script_s_check_intro_rm_frontoffice_college(_inst, _other);return;};};}}function gml_Script_s_check_intro_rm_frontoffice_college(_inst,_other){{if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlintro,0)){{yyInst(_inst,_other,100164).gmlactive=false;yyInst(_inst,_other,100165).gmlactive=false;yyInst(_inst,_other,100166).gmlactive=false;};};var ___sw874___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlintro;var ___swc875___=-1;if(yyCompareVal(___sw874___,3,g_GMLMathEpsilon,false)==0){___swc875___=0;}else if(yyCompareVal(___sw874___,5,g_GMLMathEpsilon, false)==0){___swc875___=1;}else if(yyCompareVal(___sw874___,8,g_GMLMathEpsilon,false)==0){___swc875___=2;}switch(___swc875___){case 0:{yyInst(_inst,_other,100174).gmlflash=true;yyInst(_inst,_other,100160).gmlactive=false;break;}case 1:{yyInst(_inst,_other,100187).gmlflash=true;yyInst(_inst,_other,100160).gmlactive=false;break;}case 2:{yyInst(_inst,_other,100187).gmlflash=false;yyInst(_inst,_other,100160).gmlactive=true;yyInst(_inst,_other,100160).gmlflash=true;break;}};}}function gml_Script_s_check_intro_rm_profile_staff(_inst, _other){{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gml_Script_s_check_intro_rm_profile_staff_college(_inst,_other);return;};};}}function gml_Script_s_check_intro_rm_profile_staff_college(_inst,_other){{var ___sw876___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlintro;var ___swc877___=-1;if(yyCompareVal(___sw876___,4,g_GMLMathEpsilon,false)==0){___swc877___=0;}switch(___swc877___){case 0:{yyInst(_inst,_other,100464).gmlflash=true;break;}};if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlintro, 0)){yyInst(_inst,_other,100460).gmlactive=false;};}}function gml_Script_s_check_intro_rm_profile_boss(_inst,_other){{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gml_Script_s_check_intro_rm_profile_boss_college(_inst,_other);return;};};}}function gml_Script_s_check_intro_rm_profile_boss_college(_inst,_other){{var ___sw878___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlintro;var ___swc879___=-1;if(yyCompareVal(___sw878___,6,g_GMLMathEpsilon,false)==0){___swc879___=0;}else if(yyCompareVal(___sw878___, 8,g_GMLMathEpsilon,false)==0){___swc879___=1;}switch(___swc879___){case 0:{yyInst(_inst,_other,100783).gmlflash=true;yyInst(_inst,_other,100779).gmlactive=false;break;}case 1:{yyInst(_inst,_other,100779).gmlactive=true;yyInst(_inst,_other,100779).gmlflash=true;break;}};}}function gml_Script_s_check_intro_case1(_inst,_other){{if(yyfequal(g_pBuiltIn.get_current_room(),YYASSET_REF(0x0300000E))){{var gmlmsg=gml_Script_s_parse_intro(_inst,_other,"msg_Intro_1");gml_Script_s_create_message(_inst,_other,"", gmlmsg,gml_Script_s_str(_inst,_other,"ui_SkipTutorial"),gml_Script_s_str(_inst,_other,"ui_Ok"),kgml_Script_btn_response_skip_tutorial,kgml_Script_s_msg_clear,global.gmlc_background,0.85);(g_yyPrePostObject__=_inst.gmlintro,_inst.gmlintro=(g_yyPrePostObject__ instanceof Long?_inst.gmlintro.add(1):++_inst.gmlintro),g_yyPrePostObject__);};};}}function gml_Script_s_check_intro_case2(_inst,_other){{if(yyfequal(g_pBuiltIn.get_current_room(),YYASSET_REF(0x03000009))){{var gmlmsg=gml_Script_s_parse_intro(_inst, _other,"msg_Intro_2");gml_Script_s_create_message(_inst,_other,"",gmlmsg,"",gml_Script_s_str(_inst,_other,"ui_Ok"),"",kgml_Script_s_msg_clear,global.gmlc_background,0.85);(g_yyPrePostObject__=_inst.gmlintro,_inst.gmlintro=(g_yyPrePostObject__ instanceof Long?_inst.gmlintro.add(1):++_inst.gmlintro),g_yyPrePostObject__);yyInst(_inst,_other,100160).gmlflash=true;};};}}function gml_Script_s_check_intro_case3(_inst,_other){{if(yyfequal(g_pBuiltIn.get_current_room(),YYASSET_REF(0x03000009))){yyInst(_inst, _other,100160).gmlflash=true;};if(yyfequal(g_pBuiltIn.get_current_room(),YYASSET_REF(0x0300000E))){{var gmlmsg=gml_Script_s_parse_intro(_inst,_other,"msg_Intro_3");gml_Script_s_create_message(_inst,_other,"",gmlmsg,"",gml_Script_s_str(_inst,_other,"ui_Ok"),"",kgml_Script_s_msg_clear,global.gmlc_background,0.85);(g_yyPrePostObject__=_inst.gmlintro,_inst.gmlintro=(g_yyPrePostObject__ instanceof Long?_inst.gmlintro.add(1):++_inst.gmlintro),g_yyPrePostObject__);};};}}function gml_Script_s_check_intro_case4(_inst, _other){{if(yyfequal(g_pBuiltIn.get_current_room(),YYASSET_REF(0x03000019))){{var gmlmsg=gml_Script_s_parse_intro(_inst,_other,"msg_Intro_4");gml_Script_s_create_message(_inst,_other,"",gmlmsg,"",gml_Script_s_str(_inst,_other,"ui_Ok"),"",kgml_Script_s_msg_clear,global.gmlc_background,0.85);(g_yyPrePostObject__=_inst.gmlintro,_inst.gmlintro=(g_yyPrePostObject__ instanceof Long?_inst.gmlintro.add(1):++_inst.gmlintro),g_yyPrePostObject__);};};}}function gml_Script_s_check_intro_case5(_inst,_other){{if(yyfequal(g_pBuiltIn.get_current_room(), YYASSET_REF(0x03000016))){{var gmlmsg=gml_Script_s_parse_intro(_inst,_other,"msg_Intro_5");gml_Script_s_create_message(_inst,_other,"",gmlmsg,"",gml_Script_s_str(_inst,_other,"ui_Ok"),"",kgml_Script_s_msg_clear,global.gmlc_background,0.85);(g_yyPrePostObject__=_inst.gmlintro,_inst.gmlintro=(g_yyPrePostObject__ instanceof Long?_inst.gmlintro.add(1):++_inst.gmlintro),g_yyPrePostObject__);yyInst(_inst,_other,100430).gmlflash=true;};};}}function gml_Script_s_check_intro_case6(_inst,_other){{if(yyfequal(g_pBuiltIn.get_current_room(), YYASSET_REF(0x0300000E))){{var gmlmsg=gml_Script_s_parse_intro(_inst,_other,"msg_Intro_6");gml_Script_s_create_message(_inst,_other,"",gmlmsg,"",gml_Script_s_str(_inst,_other,"ui_Ok"),"",kgml_Script_s_msg_clear,global.gmlc_background,0.85);(g_yyPrePostObject__=_inst.gmlintro,_inst.gmlintro=(g_yyPrePostObject__ instanceof Long?_inst.gmlintro.add(1):++_inst.gmlintro),g_yyPrePostObject__);};};}}function gml_Script_s_check_intro_case7(_inst,_other){{if(yyfequal(g_pBuiltIn.get_current_room(),YYASSET_REF(0x03000015))){ {gml_Script_btn_click_Passing(_inst,_other);(g_yyPrePostObject__=_inst.gmlintro,_inst.gmlintro=(g_yyPrePostObject__ instanceof Long?_inst.gmlintro.add(1):++_inst.gmlintro),g_yyPrePostObject__);};};}}function gml_Script_s_check_intro_case8(_inst,_other){{if(yyfequal(g_pBuiltIn.get_current_room(),YYASSET_REF(0x0300000E))){{var gmlmsg=gml_Script_s_parse_intro(_inst,_other,"msg_Intro_8");gml_Script_s_create_message(_inst,_other,"",gmlmsg,"",gml_Script_s_str(_inst,_other,"ui_Ok"),"",kgml_Script_s_msg_clear, global.gmlc_background,0.85);_inst.gmlintro=0;_inst.gmlstage=1;};};}}function gml_Script_s_check_intro_case2_b(_inst,_other){{if(yyfequal(g_pBuiltIn.get_current_room(),YYASSET_REF(0x03000009))){{var gmlmsg=gml_Script_s_parse_intro(_inst,_other,"msg_Intro_2_b");gml_Script_s_create_message(_inst,_other,"",gmlmsg,"",gml_Script_s_str(_inst,_other,"ui_Ok"),"",kgml_Script_s_msg_clear,global.gmlc_background,0.85);(g_yyPrePostObject__=_inst.gmlintro,_inst.gmlintro=(g_yyPrePostObject__ instanceof Long?_inst.gmlintro.add(1):++_inst.gmlintro), g_yyPrePostObject__);yyInst(_inst,_other,100174).gmlflash=true;yyInst(_inst,_other,100160).gmlactive=false;};};}}function gml_Script_s_check_intro_case2_c(_inst,_other){{if(yyfequal(g_pBuiltIn.get_current_room(),YYASSET_REF(0x03000017))){{var gmlmsg=gml_Script_s_parse_intro(_inst,_other,"msg_Intro_2_c");gml_Script_s_create_message(_inst,_other,"",gmlmsg,"",gml_Script_s_str(_inst,_other,"ui_Ok"),"",kgml_Script_s_msg_clear,global.gmlc_background,0.85);(g_yyPrePostObject__=_inst.gmlintro,_inst.gmlintro=(g_yyPrePostObject__ instanceof Long?_inst.gmlintro.add(1):++_inst.gmlintro), g_yyPrePostObject__);yyInst(_inst,_other,100464).gmlflash=true;};};}}function gml_Script_s_check_intro_case2_d(_inst,_other){{if(yyfequal(g_pBuiltIn.get_current_room(),YYASSET_REF(0x03000009))){{var gmlmsg=gml_Script_s_parse_intro(_inst,_other,"msg_Intro_2_d");gml_Script_s_create_message(_inst,_other,"",gmlmsg,"",gml_Script_s_str(_inst,_other,"ui_Ok"),"",kgml_Script_s_msg_clear,global.gmlc_background,0.85);(g_yyPrePostObject__=_inst.gmlintro,_inst.gmlintro=(g_yyPrePostObject__ instanceof Long?_inst.gmlintro.add(1):++_inst.gmlintro), g_yyPrePostObject__);yyInst(_inst,_other,100187).gmlflash=true;yyInst(_inst,_other,100160).gmlactive=false;};};}}function gml_Script_s_check_intro_case2_e(_inst,_other){{if(yyfequal(g_pBuiltIn.get_current_room(),YYASSET_REF(0x0300002E))){{var gmlmsg=gml_Script_s_parse_intro(_inst,_other,"msg_Intro_2_e");gml_Script_s_create_message(_inst,_other,"",gmlmsg,"",gml_Script_s_str(_inst,_other,"ui_Ok"),"",kgml_Script_s_msg_clear,global.gmlc_background,0.85);(g_yyPrePostObject__=_inst.gmlintro,_inst.gmlintro=(g_yyPrePostObject__ instanceof Long?_inst.gmlintro.add(1):++_inst.gmlintro), g_yyPrePostObject__);yyInst(_inst,_other,100783).gmlflash=true;yyInst(_inst,_other,100779).gmlactive=false;};};}}function gml_Script_s_check_intro_case2_f(_inst,_other){{}}function gml_Script_s_check_intro_case2_g(_inst,_other){{if(yyfequal(g_pBuiltIn.get_current_room(),YYASSET_REF(0x03000009))){{yyInst(_inst,_other,100187).gmlflash=false;yyInst(_inst,_other,100160).gmlactive=false;yyInst(_inst,_other,100160).gmlflash=true;};};}}function gml_Script_s_info_gpa_explanation_open(_inst,_other){{if(yyfequal(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlintro,6)){{gml_Script_slog(_inst,_other,yyfplus("s_check_intro_college: ",__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlintro))));gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,_inst.gmlinfo_msg),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_btn_info_gpa_explanation_intro_close,"",global.gmlc_background,1);(g_yyPrePostObject__=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlintro,yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlintro=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlintro.add(1):++yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlintro),g_yyPrePostObject__);};}else {{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,_inst.gmlinfo_msg),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};};}}function gml_Script_btn_info_gpa_explanation_intro_close(_inst,_other){{gml_Script_s_msg_clear(_inst, _other);if(yyfequal(g_pBuiltIn.get_current_room(),YYASSET_REF(0x0300002E))){{yyInst(_inst,_other,100783).gmlflash=false;yyInst(_inst,_other,100779).gmlactive=true;yyInst(_inst,_other,100779).gmlflash=true;(g_yyPrePostObject__=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlintro,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlintro=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlintro.add(1):++yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlintro),g_yyPrePostObject__); };};}}function gml_Script_s_check_intro_case5_b(_inst,_other){{if(yyfequal(g_pBuiltIn.get_current_room(),YYASSET_REF(0x03000016))){{var gmlmsg=gml_Script_s_parse_intro(_inst,_other,"msg_Intro_5");gml_Script_s_create_message(_inst,_other,"",gmlmsg,"",gml_Script_s_str(_inst,_other,"ui_Ok"),"",kgml_Script_s_check_intro_case5_second_msg,global.gmlc_background,0.85);(g_yyPrePostObject__=_inst.gmlintro,_inst.gmlintro=(g_yyPrePostObject__ instanceof Long?_inst.gmlintro.add(1):++_inst.gmlintro),g_yyPrePostObject__); yyInst(_inst,_other,100430).gmlflash=true;};};}}function gml_Script_s_check_intro_case5_second_msg(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);var gmlmsg=gml_Script_s_parse_intro(_inst,_other,"msg_Intro_5_b");gml_Script_s_create_message(_inst,_other,"",gmlmsg,"",gml_Script_s_str(_inst,_other,"ui_Ok"),"",kgml_Script_s_msg_clear,global.gmlc_background,0.85);}}function gml_GlobalScript_s_do_result_news(_inst,_other){(_inst.gmls_do_result_news=__yy_method(_inst,gml_Script_s_do_result_news));}function gml_Script_s_do_result_news(_inst, _other){{gml_Script_slog(_inst,_other,"s_do_result_news");gml_Script_slog(_inst,_other,yyfplus("Year=",__yy_gml_errCheck(string(_inst.gmlyear))));gml_Script_slog(_inst,_other,yyfplus("Week=",__yy_gml_errCheck(string(_inst.gmlweek))));{var __yy__v1042=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1043 in __yy__v1042){if(!__yy__v1042.hasOwnProperty(__yy__v1043))continue;var __yy__v1044=__yy__v1042[__yy__v1043];{if(yyGetBool(__yy__v1044.gmlqb_mode)){{gml_Script_s_do_result_news_qb(__yy__v1044,_inst); return;};};var gmlfix=gml_Script_s_get_human_fixture_previous(__yy__v1044,_inst);if(yyGetBool(gmlfix)){{var gmlnews="";if((yyGetBool(yyfequal(__yy__v1044.gmlyear,1)))&&(yyGetBool(yyfequal(__yy__v1044.gmlweek,__yy__v1044.gmlfirst_week_playoffs)))){{var ___sw882___=ds_map_find_value(gmlfix,"human_win");var ___swc883___=-1;if(yyCompareVal(___sw882___,"win",g_GMLMathEpsilon,false)==0){___swc883___=0;}else if(yyCompareVal(___sw882___,"loss",g_GMLMathEpsilon,false)==0){___swc883___=1;}else if(yyCompareVal(___sw882___, "tie",g_GMLMathEpsilon,false)==0){___swc883___=2;}switch(___swc883___){case 0:{gmlnews="news_firstmatchWin";break;}case 1:{gmlnews="news_firstmatchLoss";break;}case 2:{gmlnews="news_firstmatchTie";break;}};};};var gmloppteamid=ds_map_find_value(gmlfix,"away_team");if(yyfequal(gmloppteamid,__yy__v1044.gmlmyteam_id)){gmloppteamid=ds_map_find_value(gmlfix,"home_team");};var gmloppteam=gml_Script_s_get_team_by_id(__yy__v1044,_inst,gmloppteamid);if(yyfnotequal(gmlnews,"")){{gml_Script_s_add_news(__yy__v1044, _inst,gml_Script_s_parse_news(__yy__v1044,_inst,gmlnews,__yy__v1044.gmlmyteam,gmloppteam,0,0));};};};};}}};}}function gml_GlobalScript_s_count_joboffers(_inst,_other){(_inst.gmls_count_joboffers=__yy_method(_inst,gml_Script_s_count_joboffers));}function gml_Script_s_count_joboffers(_inst,_other){{gml_Script_slog(_inst,_other,"Count job offers");{var __yy__v1045=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1046 in __yy__v1045){if(!__yy__v1045.hasOwnProperty(__yy__v1046))continue;var __yy__v1047=__yy__v1045[__yy__v1046]; {if(yyfequal(__yy__v1047.gmlyear,1)){return 0;};var gmlcount=0;var gmlt=0;for(;yyfless(gmlt,ds_list_size(__yy__v1047.gmlteamlist));(g_yyPrePostObject__=gmlt,gmlt=(g_yyPrePostObject__ instanceof Long?gmlt.add(1):++gmlt),g_yyPrePostObject__)){{if(yyGetBool(gml_Script_s_team_interested(__yy__v1047,_inst,ds_list_find_value(__yy__v1047.gmlteamlist,gmlt)))){(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__);};}};random_set_seed(g_pBuiltIn.get_current_time()); return gmlcount;}}};}}function gml_GlobalScript_s_refresh_save_slots(_inst,_other){(_inst.gmls_refresh_save_slots=__yy_method(_inst,gml_Script_s_refresh_save_slots));}function gml_Script_s_refresh_save_slots(_inst,_other){{if(yyGetBool(file_exists(global.gmlg_savename1))){yyInst(_inst,_other,100012).gmltext=gml_Script_s_get_string_save_details(_inst,_other,1,false);}else {{yyInst(_inst,_other,100006).gmltext=gml_Script_s_str(_inst,_other,"ui_NewGame");yyInst(_inst,_other,100009).gmlactive=false;};}; if(yyGetBool(file_exists(global.gmlg_savename2))){yyInst(_inst,_other,100013).gmltext=gml_Script_s_get_string_save_details(_inst,_other,2,false);}else {{yyInst(_inst,_other,100007).gmltext=gml_Script_s_str(_inst,_other,"ui_NewGame");yyInst(_inst,_other,100010).gmlactive=false;};};if(yyGetBool(file_exists(global.gmlg_savename3))){yyInst(_inst,_other,100014).gmltext=gml_Script_s_get_string_save_details(_inst,_other,3,false);}else {{yyInst(_inst,_other,100008).gmltext=gml_Script_s_str(_inst,_other,"ui_NewGame"); yyInst(_inst,_other,100011).gmlactive=false;};};if(yyGetBool(file_exists(global.gmlg_savename4))){yyInst(_inst,_other,100017).gmltext=gml_Script_s_get_string_save_details(_inst,_other,4,false);}else {{yyInst(_inst,_other,100018).gmltext=gml_Script_s_str(_inst,_other,"ui_NewGame");yyInst(_inst,_other,100016).gmlactive=false;};};if(yyGetBool(file_exists(global.gmlg_savename5))){yyInst(_inst,_other,100020).gmltext=gml_Script_s_get_string_save_details(_inst,_other,5,false);}else {{yyInst(_inst,_other, 100021).gmltext=gml_Script_s_str(_inst,_other,"ui_NewGame");yyInst(_inst,_other,100019).gmlactive=false;};};}}function gml_GlobalScript_s_show_backups(_inst,_other){(_inst.gmls_show_backups=__yy_method(_inst,gml_Script_s_show_backups));(_inst.gmls_restore_backup1=__yy_method(_inst,gml_Script_s_restore_backup1));(_inst.gmls_restore_backup2=__yy_method(_inst,gml_Script_s_restore_backup2));(_inst.gmls_restore_backup3=__yy_method(_inst,gml_Script_s_restore_backup3));(_inst.gmls_restore_backup4=__yy_method(_inst, gml_Script_s_restore_backup4));(_inst.gmls_restore_backup5=__yy_method(_inst,gml_Script_s_restore_backup5));}function gml_Script_s_show_backups(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);{var __yy__v1048=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1049 in __yy__v1048){if(!__yy__v1048.hasOwnProperty(__yy__v1049))continue;var __yy__v1050=__yy__v1048[__yy__v1049];{var gmlbg=instance_create_layer(0,0,"PopUps",YYASSET_REF(0x0000004F));yyInst(_inst,_other,gmlbg).gmlcolour=global.gmlc_background; yyInst(_inst,_other,gmlbg).gmlalpha=1;var gmltitle=instance_create_layer(yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5),32,"PopUps",YYASSET_REF(0x00000047));yyInst(_inst,_other,gmltitle).gmltext=gml_Script_s_str(__yy__v1050,_inst,"ui_RestoreSave");yyInst(_inst,_other,gmltitle).gmlshow_stars=true;yyInst(_inst,_other,gmltitle).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);var gmlbtn_store_exit=instance_create_layer(8,232,"PopUps",YYASSET_REF(0x00000025));yyInst(_inst, _other,gmlbtn_store_exit).gmlimage=YYASSET_REF(0x0100008E);yyInst(_inst,_other,gmlbtn_store_exit).gmlonClickAction=kgml_Script_s_msg_clear;yyInst(_inst,_other,gmlbtn_store_exit).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);var gmlby=52;var gmlbh=36;var gmli=1;for(;yyfless(gmli,6);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{__yy__v1050.gmlvbox_iap=__yy_gml_array_check(__yy__v1050.gmlvbox_iap,2773781820);__yy__v1050.gmlvbox_iap[__yy_gml_array_check_index_set(gmli)]=instance_create_layer(80, gmlby,"PopUps",YYASSET_REF(0x00000043));yyInst(_inst,_other,__yy__v1050.gmlvbox_iap[__yy_gml_array_check_index(gmli,__yy__v1050.gmlvbox_iap)]).image_xscale=1.3;yyInst(_inst,_other,__yy__v1050.gmlvbox_iap[__yy_gml_array_check_index(gmli,__yy__v1050.gmlvbox_iap)]).image_yscale=0.25;yyInst(_inst,_other,__yy__v1050.gmlvbox_iap[__yy_gml_array_check_index(gmli,__yy__v1050.gmlvbox_iap)]).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other,__yy__v1050.gmlvbox_iap[__yy_gml_array_check_index(gmli, __yy__v1050.gmlvbox_iap)]).gmltitle="";__yy__v1050.gmlbtn_iap=__yy_gml_array_check(__yy__v1050.gmlbtn_iap,581582173);__yy__v1050.gmlbtn_iap[__yy_gml_array_check_index_set(gmli)]=instance_create_layer(294,gmlby,"PopUps",YYASSET_REF(0x00000023));yyInst(_inst,_other,__yy__v1050.gmlbtn_iap[__yy_gml_array_check_index(gmli,__yy__v1050.gmlbtn_iap)]).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other,__yy__v1050.gmlbtn_iap[__yy_gml_array_check_index(gmli,__yy__v1050.gmlbtn_iap)]).gmltext="Restore"; yyInst(_inst,_other,__yy__v1050.gmlbtn_iap[__yy_gml_array_check_index(gmli,__yy__v1050.gmlbtn_iap)]).gmlactive=false;var gmlbackup_name="backup_";var ___sw886___=gmli;var ___swc887___=-1;if(yyCompareVal(___sw886___,1,g_GMLMathEpsilon,false)==0){___swc887___=0;}else if(yyCompareVal(___sw886___,2,g_GMLMathEpsilon,false)==0){___swc887___=1;}else if(yyCompareVal(___sw886___,3,g_GMLMathEpsilon,false)==0){___swc887___=2;}else if(yyCompareVal(___sw886___,4,g_GMLMathEpsilon,false)==0){___swc887___=3;}else if(yyCompareVal(___sw886___, 5,g_GMLMathEpsilon,false)==0){___swc887___=4;}switch(___swc887___){case 0:{gmlbackup_name=yyfplus(gmlbackup_name,global.gmlg_savename1);yyInst(_inst,_other,__yy__v1050.gmlbtn_iap[__yy_gml_array_check_index(gmli,__yy__v1050.gmlbtn_iap)]).gmlonClickAction=kgml_Script_s_restore_backup1;break;}case 1:{gmlbackup_name=yyfplus(gmlbackup_name,global.gmlg_savename2);yyInst(_inst,_other,__yy__v1050.gmlbtn_iap[__yy_gml_array_check_index(gmli,__yy__v1050.gmlbtn_iap)]).gmlonClickAction=kgml_Script_s_restore_backup2; break;}case 2:{gmlbackup_name=yyfplus(gmlbackup_name,global.gmlg_savename3);yyInst(_inst,_other,__yy__v1050.gmlbtn_iap[__yy_gml_array_check_index(gmli,__yy__v1050.gmlbtn_iap)]).gmlonClickAction=kgml_Script_s_restore_backup3;break;}case 3:{gmlbackup_name=yyfplus(gmlbackup_name,global.gmlg_savename4);yyInst(_inst,_other,__yy__v1050.gmlbtn_iap[__yy_gml_array_check_index(gmli,__yy__v1050.gmlbtn_iap)]).gmlonClickAction=kgml_Script_s_restore_backup4;break;}case 4:{gmlbackup_name=yyfplus(gmlbackup_name,global.gmlg_savename5); yyInst(_inst,_other,__yy__v1050.gmlbtn_iap[__yy_gml_array_check_index(gmli,__yy__v1050.gmlbtn_iap)]).gmlonClickAction=kgml_Script_s_restore_backup5;break;}};if(yyGetBool(file_exists(gmlbackup_name))){{yyInst(_inst,_other,__yy__v1050.gmlvbox_iap[__yy_gml_array_check_index(gmli,__yy__v1050.gmlvbox_iap)]).gmltext=gml_Script_s_get_string_save_details(__yy__v1050,_inst,gmli,true);yyInst(_inst,_other,__yy__v1050.gmlbtn_iap[__yy_gml_array_check_index(gmli,__yy__v1050.gmlbtn_iap)]).gmlactive=true;};};gmlby=yyfplus(gmlby, gmlbh);}};}}};}}function gml_Script_s_restore_backup1(_inst,_other){{if(yyGetBool(file_exists(yyfplus("backup_",__yy_gml_errCheck(global.gmlg_savename1))))){{if(yyGetBool(file_exists(global.gmlg_savename1))){file_delete(global.gmlg_savename1);};file_copy(yyfplus("backup_",__yy_gml_errCheck(global.gmlg_savename1)),global.gmlg_savename1);gml_Script_s_msg_clear(_inst,_other);gml_Script_btn_click_slot(_inst,_other,1,global.gmlg_savename1,true);};};}}function gml_Script_s_restore_backup2(_inst,_other){ {if(yyGetBool(file_exists(yyfplus("backup_",__yy_gml_errCheck(global.gmlg_savename2))))){{if(yyGetBool(file_exists(global.gmlg_savename2))){file_delete(global.gmlg_savename2);};file_copy(yyfplus("backup_",__yy_gml_errCheck(global.gmlg_savename2)),global.gmlg_savename2);gml_Script_s_msg_clear(_inst,_other);gml_Script_btn_click_slot(_inst,_other,2,global.gmlg_savename2,true);};};}}function gml_Script_s_restore_backup3(_inst,_other){{if(yyGetBool(file_exists(yyfplus("backup_",__yy_gml_errCheck(global.gmlg_savename3))))){ {if(yyGetBool(file_exists(global.gmlg_savename3))){file_delete(global.gmlg_savename3);};file_copy(yyfplus("backup_",__yy_gml_errCheck(global.gmlg_savename3)),global.gmlg_savename3);gml_Script_s_msg_clear(_inst,_other);gml_Script_btn_click_slot(_inst,_other,3,global.gmlg_savename3,true);};};}}function gml_Script_s_restore_backup4(_inst,_other){{if(yyGetBool(file_exists(yyfplus("backup_",__yy_gml_errCheck(global.gmlg_savename4))))){{if(yyGetBool(file_exists(global.gmlg_savename4))){file_delete(global.gmlg_savename4); };file_copy(yyfplus("backup_",__yy_gml_errCheck(global.gmlg_savename4)),global.gmlg_savename4);gml_Script_s_msg_clear(_inst,_other);gml_Script_btn_click_slot(_inst,_other,4,global.gmlg_savename4,true);};};}}function gml_Script_s_restore_backup5(_inst,_other){{if(yyGetBool(file_exists(yyfplus("backup_",__yy_gml_errCheck(global.gmlg_savename5))))){{if(yyGetBool(file_exists(global.gmlg_savename5))){file_delete(global.gmlg_savename5);};file_copy(yyfplus("backup_",__yy_gml_errCheck(global.gmlg_savename5)), global.gmlg_savename5);gml_Script_s_msg_clear(_inst,_other);gml_Script_btn_click_slot(_inst,_other,5,global.gmlg_savename5,true);};};}}function gml_GlobalScript_s_team_interested(_inst,_other){(_inst.gmls_team_interested=__yy_method(_inst,gml_Script_s_team_interested));(_inst.gmls_qb_mode_team_interested=__yy_method(_inst,gml_Script_s_qb_mode_team_interested));}function gml_Script_s_team_interested(_inst,_other,argument0){{if((yyGetBool(global.gmldebug))||(yyGetBool(global.gmljefebuild))){return true; };{var __yy__v1051=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1052 in __yy__v1051){if(!__yy__v1051.hasOwnProperty(__yy__v1052))continue;var __yy__v1053=__yy__v1051[__yy__v1052];{if(yyGetBool(__yy__v1053.gmlqb_mode)){return gml_Script_s_qb_mode_team_interested(__yy__v1053,_inst,argument0);};var gmlteamrating=yyfplus(__yy_gml_errCheck(gml_Script_s_get_team_offense_with_reputation_boost(__yy__v1053,_inst,argument0)),__yy_gml_errCheck(gml_Script_s_get_team_defense_with_reputation_boost(__yy__v1053, _inst,argument0)));gml_Script_slog(__yy__v1053,_inst,yyfplus("s_team_interested: ",__yy_gml_errCheck(ds_map_find_value(argument0,"name"))));gml_Script_slog(__yy__v1053,_inst,yyfplus("coach_rating: ",__yy_gml_errCheck(string(__yy__v1053.gmlcoach_rating))));gml_Script_slog(__yy__v1053,_inst,yyfplus("team_rating: ",__yy_gml_errCheck(string(gmlteamrating))));if(yyfequal(real(ds_map_find_value(argument0,"uid")),__yy__v1053.gmlmyteam_id)){return false;};if(yyfless(__yy__v1053.gmlcoach_rating,gmlteamrating)){ return false;};if((yyGetBool(yyfless(__yy__v1053.gmlyear,3)))&&(yyGetBool(yyfequal(real(ds_map_find_value(argument0,"uid")),__yy__v1053.gmlfavourite_team_id)))){return false;};random_set_seed(yyfplus(yyfplus(__yy_gml_errCheck(__yy__v1053.gmlyear),__yy_gml_errCheck(__yy__v1053.gmlcoach_rating)),__yy_gml_errCheck(real(ds_map_find_value(argument0,"uid")))));if(!yyGetBool(irandom(3))){return false;};}}};return true;}}function gml_Script_s_qb_mode_team_interested(_inst,_other,argument0){{var gmlteamrating=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(gml_Script_s_get_team_offense_with_reputation_boost(_inst, _other,argument0)),__yy_gml_errCheck(gml_Script_s_get_team_defense_with_reputation_boost(_inst,_other,argument0)))),2);var gmlmyrating=10;{var __yy__v1054=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1055 in __yy__v1054){if(!__yy__v1054.hasOwnProperty(__yy__v1055))continue;var __yy__v1056=__yy__v1054[__yy__v1055];{if(yyfequal(real(ds_map_find_value(argument0,"uid")),__yy__v1056.gmlmyteam_id)){return false;};if(yyfless(gmlmyrating,gmlteamrating)){return false;};if((yyGetBool(yyfless(__yy__v1056.gmlyear, 3)))&&(yyGetBool(yyfequal(real(ds_map_find_value(argument0,"uid")),__yy__v1056.gmlfavourite_team_id)))){return false;};if(yyfgreater(ds_list_find_index(__yy__v1056.gmllist_teams_rejected,real(ds_map_find_value(argument0,"uid"))),(-1))){return false;};random_set_seed(yyfplus(yyfplus(__yy_gml_errCheck(__yy__v1056.gmlyear),__yy_gml_errCheck(gmlmyrating)),__yy_gml_errCheck(real(ds_map_find_value(argument0,"uid")))));if(!yyGetBool(irandom(3))){return false;};}}};return true;}}function gml_GlobalScript_s_update_history(_inst, _other){}function gml_GlobalScript_s_update_history_finish(_inst,_other){}function gml_GlobalScript_age_scripts(_inst,_other,argument0){(_inst.gmls_rookie_age_internal=__yy_method(_inst,gml_Script_s_rookie_age_internal));(_inst.gmls_max_age_player_internal=__yy_method(_inst,gml_Script_s_max_age_player_internal));(_inst.gmls_max_age_qb_internal=__yy_method(_inst,gml_Script_s_max_age_qb_internal));(_inst.gmls_get_max_age=__yy_method(_inst,gml_Script_s_get_max_age));}function gml_Script_s_rookie_age_internal(_inst, _other){{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{return 18;};};return 21;}}function gml_Script_s_max_age_player_internal(_inst,_other){{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{return 21;};};return 35;}}function gml_Script_s_max_age_qb_internal(_inst,_other){{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{return 21;};};return 40;}}function gml_Script_s_get_max_age(_inst,_other,argument0){{var gmlpmap=argument0;var gmlmax_age=gml_Script_s_max_age_player_internal(_inst,_other); var ___sw890___=ds_map_find_value(gmlpmap,"position");var ___swc891___=-1;if(yyCompareVal(___sw890___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw890___,10,g_GMLMathEpsilon,false)==0){___swc891___=0;}else if(yyCompareVal(___sw890___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw890___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw890___,4,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw890___,5,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw890___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw890___, 7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw890___,8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw890___,9,g_GMLMathEpsilon,false)==0){___swc891___=1;}else if(yyCompareVal(___sw890___,100,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw890___,101,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw890___,102,g_GMLMathEpsilon,false)==0){___swc891___=2;}switch(___swc891___){case 0:{gmlmax_age=gml_Script_s_max_age_qb_internal(_inst,_other);break;}case 1:{break;}case 2:{gmlmax_age=65;break;}};if(yyGetBool(ds_map_exists(gmlpmap, "delay_retirement"))){gmlmax_age=yyfplus(gmlmax_age,ds_map_find_value(gmlpmap,"delay_retirement"));};return gmlmax_age;}}function gml_GlobalScript_s_update_history_playoffs(_inst,_other){}function gml_GlobalScript_s_college_custom_data(_inst,_other){(_inst.gmls_custom_data_file_exists=__yy_method(_inst,gml_Script_s_custom_data_file_exists));(_inst.gmls_custom_data_load=__yy_method(_inst,gml_Script_s_custom_data_load));(_inst.gmls_custom_data_file_delete=__yy_method(_inst,gml_Script_s_custom_data_file_delete)); (_inst.gmls_custom_data_patch=__yy_method(_inst,gml_Script_s_custom_data_patch));(_inst.gmls_custom_data_update_from_editor=__yy_method(_inst,gml_Script_s_custom_data_update_from_editor));(_inst.gmls_custom_data_save=__yy_method(_inst,gml_Script_s_custom_data_save));(_inst.gmls_custom_data_delete=__yy_method(_inst,gml_Script_s_custom_data_delete));(_inst.gmls_custom_data_reset=__yy_method(_inst,gml_Script_s_custom_data_reset));(_inst.gmls_custom_data_template=__yy_method(_inst,gml_Script_s_custom_data_template)); (_inst.gmls_custom_data_restore=__yy_method(_inst,gml_Script_s_custom_data_restore));(_inst.gmls_custom_data_copy_from=__yy_method(_inst,gml_Script_s_custom_data_copy_from));(_inst.gmls_copy_uniforms_from=__yy_method(_inst,gml_Script_s_copy_uniforms_from));(_inst.gmls_college_restore_all_uniforms=__yy_method(_inst,gml_Script_s_college_restore_all_uniforms));(_inst.gmls_custom_data_exists=__yy_method(_inst,gml_Script_s_custom_data_exists));(_inst.gmls_is_custom_data_active=__yy_method(_inst,gml_Script_s_is_custom_data_active)); (_inst.gmls_set_custom_data_active=__yy_method(_inst,gml_Script_s_set_custom_data_active));(_inst.gmls_get_custom_data_subdivision=__yy_method(_inst,gml_Script_s_get_custom_data_subdivision));(_inst.gmls_get_custom_data_conference=__yy_method(_inst,gml_Script_s_get_custom_data_conference));(_inst.gmls_get_custom_data_competition=__yy_method(_inst,gml_Script_s_get_custom_data_competition));(_inst.gmls_get_custom_data_filename=__yy_method(_inst,gml_Script_s_get_custom_data_filename));(_inst.gmls_get_or_create_custom_data_conference=__yy_method(_inst, gml_Script_s_get_or_create_custom_data_conference));(_inst.gmls_get_or_create_custom_data_competition=__yy_method(_inst,gml_Script_s_get_or_create_custom_data_competition));(_inst.gmls_get_custom_data_suffix=__yy_method(_inst,gml_Script_s_get_custom_data_suffix));(_inst.gmls_get_custom_data_comp_name_prefix=__yy_method(_inst,gml_Script_s_get_custom_data_comp_name_prefix));(_inst.gmls_get_custom_data_comp_name_suffix=__yy_method(_inst,gml_Script_s_get_custom_data_comp_name_suffix));(_inst.gmls_get_bowl_split_name=__yy_method(_inst, gml_Script_s_get_bowl_split_name));}function gml_Script_s_custom_data_file_exists(_inst,_other,argument0){{if(yyfequal(argument0,_inst.undefined)){argument0=(-4);};}{var gmlfilename=gml_Script_s_get_custom_data_filename(_inst,_other,argument0);return file_exists(gmlfilename);}}function gml_Script_s_custom_data_load(_inst,_other,argument0){{if(yyfequal(argument0,_inst.undefined)){argument0=(-4);};}{var gmlfilename=gml_Script_s_get_custom_data_filename(_inst,_other,argument0);gml_Script_slogf(_inst,_other, "Loading custom data from %1",gmlfilename);var gmlcd=gml_Script_s_load_json(_inst,_other,gmlfilename);if(yyfequal(gmlcd,(-4))){{gml_Script_slogf(_inst,_other,"no custom data file");gmlcd=gml_Script_s_custom_data_template(_inst,_other);};};return gmlcd;}}function gml_Script_s_custom_data_file_delete(_inst,_other,argument0){{if((yyGetBool(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))))||(yyGetBool(!yyGetBool(gml_Script_s_custom_data_file_exists(_inst,_other,argument0))))){return;};file_delete(gml_Script_s_get_custom_data_filename(_inst, _other,argument0));}}function gml_Script_s_custom_data_patch(_inst,_other){{var gmlconferences_base=gml_Script_load_data_to_struct_array(_inst,_other,gml_Script_s_get_versioned_path(_inst,_other,"Conferences_CO.txt"));var gmlcompetitions_base=gml_Script_load_data_to_struct_array(_inst,_other,gml_Script_s_get_versioned_path(_inst,_other,"Competitions_CO.txt"));var gmlccd,gmlocd,gmlcfd,gmluid,gmlem;gml_Script_slogf(_inst,_other,"Patching competition data");var gmli=0;for(;yyfless(gmli,array_length(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlconferences));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlccd=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlconferences[__yy_gml_array_check_index(gmli,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlconferences)];_inst.gmlbcd=gmlconferences_base[__yy_gml_array_check_index(gmli,gmlconferences_base)];gmluid=yyInst(_inst,_other,gmlccd).gmluid;_inst.gmlced=gml_Script_s_get_custom_data_conference(_inst, _other,gmluid);if(yyfequal(_inst.gmlced,(-4))){{yyInst(_inst,_other,gmlccd).gmlname=yyInst(_inst,_other,_inst.gmlbcd).gmlname;yyInst(_inst,_other,gmlccd).gmltla=yyInst(_inst,_other,_inst.gmlbcd).gmltla;yyInst(_inst,_other,gmlccd).gmldiv_0_name=yyInst(_inst,_other,_inst.gmlbcd).gmldiv_0_name;yyInst(_inst,_other,gmlccd).gmldiv_1_name=yyInst(_inst,_other,_inst.gmlbcd).gmldiv_1_name;continue;};};yyInst(_inst,_other,gmlccd).gmlname=yyInst(_inst,_other,_inst.gmlced).gmlname;yyInst(_inst,_other,gmlccd).gmltla=yyInst(_inst, _other,_inst.gmlced).gmltla;yyInst(_inst,_other,gmlccd).gmldiv_0_name=yyInst(_inst,_other,_inst.gmlced).gmldiv_0_name;yyInst(_inst,_other,gmlccd).gmldiv_1_name=yyInst(_inst,_other,_inst.gmlced).gmldiv_1_name;}};var gmli=0;for(;yyfless(gmli,array_length(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcompetitions));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlccd=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcompetitions[__yy_gml_array_check_index(gmli, yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcompetitions)];_inst.gmlbcd=gmlcompetitions_base[__yy_gml_array_check_index(gmli,gmlcompetitions_base)];gmluid=yyInst(_inst,_other,gmlccd).gmluid;_inst.gmlced=gml_Script_s_get_custom_data_competition(_inst,_other,gmluid);gmlem=gml_Script_s_get_editor_mode_data(_inst,_other,yyInst(_inst,_other,gmlccd).gmleditor_mode);if((yyGetBool(yyfequal(_inst.gmlced,(-4))))&&(yyGetBool(yyfequal(gmlem,(-4))))){{yyInst(_inst,_other,gmlccd).gmlname=yyInst(_inst,_other, _inst.gmlbcd).gmlname;yyInst(_inst,_other,gmlccd).gmlcity=yyInst(_inst,_other,_inst.gmlbcd).gmlcity;yyInst(_inst,_other,gmlccd).gmlstate=yyInst(_inst,_other,_inst.gmlbcd).gmlstate;continue;};};if((yyGetBool(yyfnotequal(gmlem,(-4))))&&(yyGetBool(yyfequal(yyInst(_inst,_other,gmlem).gmltag,"cpy")))){{_inst.gmlbcd=gml_Script_s_get_competition(_inst,_other,yyInst(_inst,_other,gmlem).gmluid);yyInst(_inst,_other,gmlccd).gmlname=yyInst(_inst,_other,_inst.gmlbcd).gmlname;yyInst(_inst,_other,gmlccd).gmlcity=yyInst(_inst, _other,_inst.gmlbcd).gmlcity;yyInst(_inst,_other,gmlccd).gmlstate=yyInst(_inst,_other,_inst.gmlbcd).gmlstate;continue;};};if(yyfnotequal(_inst.gmlced,(-4))){{yyInst(_inst,_other,gmlccd).gmlname=yyInst(_inst,_other,_inst.gmlced).gmlname;yyInst(_inst,_other,gmlccd).gmlcity=yyInst(_inst,_other,_inst.gmlced).gmlcity;yyInst(_inst,_other,gmlccd).gmlstate=yyInst(_inst,_other,_inst.gmlced).gmlstate;};};if((yyGetBool(yyfnotequal(gmlem,(-4))))&&(yyGetBool(yyfequal(yyInst(_inst,_other,gmlem).gmltag,"ed")))&&(yyGetBool(yyfequal(yyInst(_inst, _other,gmlem).gmlmode,"bowls")))){{yyInst(_inst,_other,gmlccd).gmlprefix=gml_Script_s_get_custom_data_comp_name_prefix(_inst,_other,yyInst(_inst,_other,_inst.gmlbcd).gmlname,_inst.gmlced);yyInst(_inst,_other,gmlccd).gmlsuffix=gml_Script_s_get_custom_data_comp_name_suffix(_inst,_other,yyInst(_inst,_other,_inst.gmlbcd).gmlname,_inst.gmlced);yyInst(_inst,_other,gmlccd).gmlname=yyfplus(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmlccd).gmlprefix)," "),__yy_gml_errCheck(yyInst(_inst,_other,gmlccd).gmlsuffix)); continue;};};if((yyGetBool(yyfnotequal(gmlem,(-4))))&&(yyGetBool(yyfequal(yyInst(_inst,_other,gmlem).gmltag,"ed")))&&(yyGetBool(yyfequal(yyInst(_inst,_other,gmlem).gmlmode,"finals")))){{yyInst(_inst,_other,gmlccd).gmlsuffix=gml_Script_s_get_custom_data_comp_name_suffix(_inst,_other,yyInst(_inst,_other,_inst.gmlbcd).gmlname,_inst.gmlced);yyInst(_inst,_other,gmlccd).gmlname=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_subdiv_name(_inst,_other,yyInst(_inst,_other,gmlem).gmluid))," "),__yy_gml_errCheck(yyInst(_inst, _other,gmlccd).gmlsuffix));continue;};};if((yyGetBool(yyfnotequal(gmlem,(-4))))&&(yyGetBool(yyfequal(yyInst(_inst,_other,gmlem).gmltag,"ed")))&&(yyGetBool(yyfequal(yyInst(_inst,_other,gmlem).gmlmode,"conf_champ")))){{gmlcfd=gml_Script_s_get_conference_data(_inst,_other,yyInst(_inst,_other,gmlem).gmluid);yyInst(_inst,_other,gmlccd).gmlsuffix=gml_Script_s_get_custom_data_comp_name_suffix(_inst,_other,yyInst(_inst,_other,_inst.gmlbcd).gmlname,_inst.gmlced);yyInst(_inst,_other,gmlccd).gmlname=yyfplus(yyfplus(__yy_gml_errCheck(yyInst(_inst, _other,gmlcfd).gmlname)," "),__yy_gml_errCheck(yyInst(_inst,_other,gmlccd).gmlsuffix));continue;};};}};}}function gml_Script_s_custom_data_update_from_editor(_inst,_other,argument0){{var ___sw896___=yyInst(_inst,_other,argument0).gmlmode;var ___swc897___=-1;if(yyCompareVal(___sw896___,"subdiv",g_GMLMathEpsilon,false)==0){___swc897___=0;}else if(yyCompareVal(___sw896___,"conf",g_GMLMathEpsilon,false)==0){___swc897___=1;}else if(yyCompareVal(___sw896___,"bowls",g_GMLMathEpsilon,false)==0){___swc897___=2; }else if(yyCompareVal(___sw896___,"finals",g_GMLMathEpsilon,false)==0||yyCompareVal(___sw896___,"conf_champ",g_GMLMathEpsilon,false)==0){___swc897___=3;}switch(___swc897___){case 0:{if(yyfnotequal(yyInst(_inst,_other,yyInst(_inst,_other,argument0).gmlfields).gmlname,"")){{{var __yy__v1057=GetWithArray(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcustom_data);for(var __yy__v1058 in __yy__v1057){if(!__yy__v1057.hasOwnProperty(__yy__v1058))continue;var __yy__v1059=__yy__v1057[__yy__v1058];{yyInst(_inst, _other,__yy__v1059.gmlsubdivisions[__yy_gml_array_check_index(yyInst(_inst,_other,argument0).gmluid,__yy__v1059.gmlsubdivisions)]).gmlname=yyInst(_inst,_other,yyInst(_inst,_other,yyInst(_inst,_other,argument0).gmlfields).gmlname).gmltext;gml_Script_s_set_custom_data_active(__yy__v1059,_inst,true);}}};};};break;}case 1:{var gmlccd=gml_Script_s_get_or_create_custom_data_conference(_inst,_other,yyInst(_inst,_other,yyInst(_inst,_other,argument0).gmlconf).gmluid);yyInst(_inst,_other,gmlccd).gmlname=yyInst(_inst, _other,yyInst(_inst,_other,yyInst(_inst,_other,argument0).gmlfields).gmlname).gmltext;yyInst(_inst,_other,gmlccd).gmltla=yyInst(_inst,_other,yyInst(_inst,_other,yyInst(_inst,_other,argument0).gmlfields).gmltla).gmltext;yyInst(_inst,_other,gmlccd).gmldiv_0_name=(yyfgreater(yyInst(_inst,_other,yyInst(_inst,_other,argument0).gmlconf).gmldivisions,1)?yyInst(_inst,_other,yyInst(_inst,_other,yyInst(_inst,_other,argument0).gmlfields).gmldiv_0_name).gmltext:"N/A");yyInst(_inst,_other,gmlccd).gmldiv_1_name=(yyfgreater(yyInst(_inst, _other,yyInst(_inst,_other,argument0).gmlconf).gmldivisions,1)?yyInst(_inst,_other,yyInst(_inst,_other,yyInst(_inst,_other,argument0).gmlfields).gmldiv_1_name).gmltext:"N/A");gml_Script_s_set_custom_data_active(_inst,_other,true);break;}case 2:{var gmlccd=gml_Script_s_get_or_create_custom_data_competition(_inst,_other,yyInst(_inst,_other,yyInst(_inst,_other,argument0).gmlcomp).gmluid);yyInst(_inst,_other,gmlccd).gmlprefix=yyInst(_inst,_other,yyInst(_inst,_other,yyInst(_inst,_other,argument0).gmlfields).gmlprefix).gmltext; yyInst(_inst,_other,gmlccd).gmlsuffix=yyInst(_inst,_other,yyInst(_inst,_other,yyInst(_inst,_other,argument0).gmlfields).gmlsuffix).gmltext;yyInst(_inst,_other,gmlccd).gmlname=string_join(" ",yyInst(_inst,_other,gmlccd).gmlprefix,yyInst(_inst,_other,gmlccd).gmlsuffix);if(yyGetBool(yyInst(_inst,_other,yyInst(_inst,_other,yyInst(_inst,_other,argument0).gmlfields).gmlneutral).gmlstate)){{yyInst(_inst,_other,gmlccd).gmlcity=yyInst(_inst,_other,yyInst(_inst,_other,yyInst(_inst,_other,argument0).gmlfields).gmlcity).gmltext; yyInst(_inst,_other,gmlccd).gmlstate=yyInst(_inst,_other,yyInst(_inst,_other,yyInst(_inst,_other,argument0).gmlfields).gmlstate).gmltext;};}else {{yyInst(_inst,_other,gmlccd).gmlcity="";yyInst(_inst,_other,gmlccd).gmlstate="";};};gml_Script_s_set_custom_data_active(_inst,_other,true);break;}case 3:{var gmlccd=gml_Script_s_get_or_create_custom_data_competition(_inst,_other,yyInst(_inst,_other,yyInst(_inst,_other,argument0).gmlcomp).gmluid);yyInst(_inst,_other,gmlccd).gmlname=yyInst(_inst,_other,yyInst(_inst, _other,yyInst(_inst,_other,argument0).gmlfields).gmlname).gmltext;yyInst(_inst,_other,gmlccd).gmlsuffix=yyInst(_inst,_other,yyInst(_inst,_other,yyInst(_inst,_other,argument0).gmlfields).gmlsuffix).gmltext;if(yyGetBool(yyInst(_inst,_other,yyInst(_inst,_other,yyInst(_inst,_other,argument0).gmlfields).gmlneutral).gmlstate)){{yyInst(_inst,_other,gmlccd).gmlcity=yyInst(_inst,_other,yyInst(_inst,_other,yyInst(_inst,_other,argument0).gmlfields).gmlcity).gmltext;yyInst(_inst,_other,gmlccd).gmlstate=yyInst(_inst, _other,yyInst(_inst,_other,yyInst(_inst,_other,argument0).gmlfields).gmlstate).gmltext;};}else {{yyInst(_inst,_other,gmlccd).gmlcity="";yyInst(_inst,_other,gmlccd).gmlstate="";};};gml_Script_s_set_custom_data_active(_inst,_other,true);break;}};}}function gml_Script_s_custom_data_save(_inst,_other){{var gmlfilename=gml_Script_s_get_custom_data_filename(_inst,_other);gml_Script_slogf(_inst,_other,"Saving custom data to %1",gmlfilename);if(!yyGetBool(gml_Script_s_is_custom_data_active(_inst,_other))){ {gml_Script_slogf(_inst,_other,"Not saving unchanged custom data");return;};};gml_Script_s_save_json(_inst,_other,gmlfilename,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcustom_data);}}function gml_Script_s_custom_data_delete(_inst,_other){{var gmlfilename=gml_Script_s_get_custom_data_filename(_inst,_other);if(yyGetBool(file_exists(gmlfilename))){{gml_Script_slogf(_inst,_other,"Deleting custom data %1",gmlfilename);file_delete(gmlfilename);};};}}function gml_Script_s_custom_data_reset(_inst,_other){ {yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcustom_data=gml_Script_s_custom_data_template(_inst,_other);}}function gml_Script____struct___137_s_custom_data_template_gml_GlobalScript_s_college_custom_data(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___137_s_custom_data_template_gml_GlobalScript_s_college_custom_data";}if(gml_Script____struct___137_s_custom_data_template_gml_GlobalScript_s_college_custom_data.prototype.__type===undefined){gml_Script____struct___137_s_custom_data_template_gml_GlobalScript_s_college_custom_data.prototype.__type="gml_Script____struct___137_s_custom_data_template_gml_GlobalScript_s_college_custom_data"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___137_s_custom_data_template_gml_GlobalScript_s_college_custom_data.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlversion=1;_inst.gmlactive=0;_inst.gmlsubdivisions=__yy_gml_array_create([$$args[__yy_gml_array_check_index(2+(0),$$args)],$$args[__yy_gml_array_check_index(2+(1),$$args)],$$args[__yy_gml_array_check_index(2+(2),$$args)]]);_inst.gmlconferences=__yy_gml_array_create([]);_inst.gmlcompetitions=__yy_gml_array_create([]); }}}}function gml_Script____struct___138_s_custom_data_template_gml_GlobalScript_s_college_custom_data(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___138_s_custom_data_template_gml_GlobalScript_s_college_custom_data";}if(gml_Script____struct___138_s_custom_data_template_gml_GlobalScript_s_college_custom_data.prototype.__type===undefined){gml_Script____struct___138_s_custom_data_template_gml_GlobalScript_s_college_custom_data.prototype.__type="gml_Script____struct___138_s_custom_data_template_gml_GlobalScript_s_college_custom_data"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___138_s_custom_data_template_gml_GlobalScript_s_college_custom_data.prototype);{_inst.gmlname="N/A";}}}function gml_Script____struct___139_s_custom_data_template_gml_GlobalScript_s_college_custom_data(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___139_s_custom_data_template_gml_GlobalScript_s_college_custom_data";}if(gml_Script____struct___139_s_custom_data_template_gml_GlobalScript_s_college_custom_data.prototype.__type===undefined){ gml_Script____struct___139_s_custom_data_template_gml_GlobalScript_s_college_custom_data.prototype.__type="gml_Script____struct___139_s_custom_data_template_gml_GlobalScript_s_college_custom_data";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___139_s_custom_data_template_gml_GlobalScript_s_college_custom_data.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlname=$$args[__yy_gml_array_check_index(2+(0),$$args)];}}}}function gml_Script____struct___140_s_custom_data_template_gml_GlobalScript_s_college_custom_data(_inst, _other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___140_s_custom_data_template_gml_GlobalScript_s_college_custom_data";}if(gml_Script____struct___140_s_custom_data_template_gml_GlobalScript_s_college_custom_data.prototype.__type===undefined){gml_Script____struct___140_s_custom_data_template_gml_GlobalScript_s_college_custom_data.prototype.__type="gml_Script____struct___140_s_custom_data_template_gml_GlobalScript_s_college_custom_data";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst, gml_Script____struct___140_s_custom_data_template_gml_GlobalScript_s_college_custom_data.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlname=$$args[__yy_gml_array_check_index(2+(0),$$args)];}}}}function gml_Script_s_custom_data_template(_inst,_other){{var gmldata=__yy_gml_object_create(_inst,(_inst.gml___struct___137=__yy_method(_inst,gml_Script____struct___137_s_custom_data_template_gml_GlobalScript_s_college_custom_data)),__yy_gml_object_create(_inst,(_inst.gml___struct___138=__yy_method(_inst, gml_Script____struct___138_s_custom_data_template_gml_GlobalScript_s_college_custom_data))),__yy_gml_object_create(_inst,(_inst.gml___struct___139=__yy_method(_inst,gml_Script____struct___139_s_custom_data_template_gml_GlobalScript_s_college_custom_data)),gml_Script_s_str(_inst,_other,"ui_Major")),__yy_gml_object_create(_inst,(_inst.gml___struct___140=__yy_method(_inst,gml_Script____struct___140_s_custom_data_template_gml_GlobalScript_s_college_custom_data)),gml_Script_s_str(_inst,_other,"ui_Minor"))); return gmldata;}}function gml_Script_s_custom_data_restore(_inst,_other){{gml_Script_s_custom_data_delete(_inst,_other);gml_Script_s_custom_data_reset(_inst,_other);gml_Script_s_custom_data_patch(_inst,_other);}}function gml_Script_s_custom_data_copy_from(_inst,_other,argument0){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcustom_data=gml_Script_s_custom_data_load(_inst,_other,argument0);gml_Script_s_custom_data_delete(_inst,_other);gml_Script_s_custom_data_save(_inst,_other);gml_Script_s_custom_data_patch(_inst, _other);}}function gml_Script_s_copy_uniforms_from(_inst,_other,argument0){{var gmlfilename_src=gml_Script_s_strfl(_inst,_other,"uniforms_custom_%1.txt",argument0);var gmlfilename_dst=gml_Script_s_strfl(_inst,_other,"uniforms_custom_%1.txt",ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"saveslot"));file_delete(gmlfilename_dst);if(yyGetBool(file_exists(gmlfilename_src))){{file_copy(gmlfilename_src,gmlfilename_dst);};};gml_Script_s_copy_teamnames_from_uniform_file(_inst, _other,gmlfilename_dst);}}function gml_Script_s_college_restore_all_uniforms(_inst,_other){{var gmlfilename=gml_Script_s_strfl(_inst,_other,"uniforms_custom_%1.txt",ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"saveslot"));if(yyGetBool(file_exists(gmlfilename))){{file_delete(gmlfilename);};};gml_Script_s_copy_teamnames_from_uniform_file(_inst,_other,gml_Script_s_uniforms_default_file(_inst,_other));}}function gml_Script_s_custom_data_exists(_inst,_other){{return is_struct(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlcustom_data);}}function gml_Script_s_is_custom_data_active(_inst,_other){{return(yyGetBool(is_struct(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcustom_data)))&&(yyGetBool(yyInst(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcustom_data).gmlactive));}}function gml_Script_s_set_custom_data_active(_inst,_other,argument0){{yyInst(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcustom_data).gmlactive=argument0;}}function gml_Script_s_get_custom_data_subdivision(_inst, _other,argument0){{return yyInst(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcustom_data).gmlsubdivisions[__yy_gml_array_check_index(argument0,yyInst(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcustom_data).gmlsubdivisions)];}}function gml_Script_s_get_custom_data_conference(_inst,_other,argument0){{return gml_Script_s_get_struct_in_array_by_uid(_inst,_other,yyInst(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcustom_data).gmlconferences,argument0);} }function gml_Script_s_get_custom_data_competition(_inst,_other,argument0){{return gml_Script_s_get_struct_in_array_by_uid(_inst,_other,yyInst(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcustom_data).gmlcompetitions,argument0);}}function gml_Script_s_get_custom_data_filename(_inst,_other,argument0){{if(yyfequal(argument0,_inst.undefined)){argument0=(-4);};}{if(yyfequal(argument0,(-4))){argument0=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"saveslot"); };return gml_Script_s_strfl(_inst,_other,"rb_save_%1.json",argument0);}}function gml_Script____struct___141_s_get_or_create_custom_data_conference_gml_GlobalScript_s_college_custom_data(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___141_s_get_or_create_custom_data_conference_gml_GlobalScript_s_college_custom_data";}if(gml_Script____struct___141_s_get_or_create_custom_data_conference_gml_GlobalScript_s_college_custom_data.prototype.__type===undefined){gml_Script____struct___141_s_get_or_create_custom_data_conference_gml_GlobalScript_s_college_custom_data.prototype.__type="gml_Script____struct___141_s_get_or_create_custom_data_conference_gml_GlobalScript_s_college_custom_data"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___141_s_get_or_create_custom_data_conference_gml_GlobalScript_s_college_custom_data.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmluid=$$args[__yy_gml_array_check_index(2+(0),$$args)];}}}}function gml_Script_s_get_or_create_custom_data_conference(_inst,_other,argument0){{var gmlccd=gml_Script_s_get_custom_data_conference(_inst,_other,argument0);if(yyfequal(gmlccd,(-4))){{gmlccd=__yy_gml_object_create(_inst, (_inst.gml___struct___141=__yy_method(_inst,gml_Script____struct___141_s_get_or_create_custom_data_conference_gml_GlobalScript_s_college_custom_data)),argument0);array_push(yyInst(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcustom_data).gmlconferences,gmlccd);};};return gmlccd;}}function gml_Script____struct___142_s_get_or_create_custom_data_competition_gml_GlobalScript_s_college_custom_data(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___142_s_get_or_create_custom_data_competition_gml_GlobalScript_s_college_custom_data"; }if(gml_Script____struct___142_s_get_or_create_custom_data_competition_gml_GlobalScript_s_college_custom_data.prototype.__type===undefined){gml_Script____struct___142_s_get_or_create_custom_data_competition_gml_GlobalScript_s_college_custom_data.prototype.__type="gml_Script____struct___142_s_get_or_create_custom_data_competition_gml_GlobalScript_s_college_custom_data";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___142_s_get_or_create_custom_data_competition_gml_GlobalScript_s_college_custom_data.prototype); {var $$args=Array.prototype.slice.call(arguments);{_inst.gmluid=$$args[__yy_gml_array_check_index(2+(0),$$args)];}}}}function gml_Script_s_get_or_create_custom_data_competition(_inst,_other,argument0){{var gmlccd=gml_Script_s_get_custom_data_competition(_inst,_other,argument0);if(yyfequal(gmlccd,(-4))){{gmlccd=__yy_gml_object_create(_inst,(_inst.gml___struct___142=__yy_method(_inst,gml_Script____struct___142_s_get_or_create_custom_data_competition_gml_GlobalScript_s_college_custom_data)),argument0); array_push(yyInst(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcustom_data).gmlcompetitions,gmlccd);};};return gmlccd;}}function gml_Script_s_get_custom_data_suffix(_inst,_other,argument0){{if(yyfnotequal(argument0,(-4))){return yyInst(_inst,_other,argument0).gmlsuffix;}else {return gml_Script_s_str(_inst,_other,"ui_Championship");};}}function gml_Script_s_get_custom_data_comp_name_prefix(_inst,_other,argument0,argument1){{if(yyfnotequal(argument1,(-4))){return yyInst(_inst,_other,argument1).gmlprefix; }else {return array_get(gml_Script_s_get_bowl_split_name(_inst,_other,argument0),0);};}}function gml_Script_s_get_custom_data_comp_name_suffix(_inst,_other,argument0,argument1){{if(yyfnotequal(argument1,(-4))){return yyInst(_inst,_other,argument1).gmlsuffix;}else {return array_get(gml_Script_s_get_bowl_split_name(_inst,_other,argument0),1);};}}function gml_Script_s_get_bowl_split_name(_inst,_other,argument0){{var gmlnp=string_split(argument0," ",true,4);var ___sw898___=array_length(gmlnp);var ___swc899___=-1; if(yyCompareVal(___sw898___,1,g_GMLMathEpsilon,false)==0){___swc899___=0;}else if(yyCompareVal(___sw898___,2,g_GMLMathEpsilon,false)==0){___swc899___=1;}else if(yyCompareVal(___sw898___,3,g_GMLMathEpsilon,false)==0){___swc899___=2;}switch(___swc899___){case 0:{array_push(gmlnp,"");return gmlnp;}case 1:{return gmlnp;}case 2:{gmlnp=__yy_gml_array_check(gmlnp,4015000333);gmlnp[__yy_gml_array_check_index_set(0)]=string_join(" ",gmlnp[__yy_gml_array_check_index(0,gmlnp)],gmlnp[__yy_gml_array_check_index(1,gmlnp)]); array_delete(gmlnp,1,1);return gmlnp;}default :{gmlnp=__yy_gml_array_check(gmlnp,4015000333);gmlnp[__yy_gml_array_check_index_set(0)]=string_join(" ",gmlnp[__yy_gml_array_check_index(0,gmlnp)],gmlnp[__yy_gml_array_check_index(1,gmlnp)],gmlnp[__yy_gml_array_check_index(2,gmlnp)]);array_delete(gmlnp,1,2);return gmlnp;}};}}function gml_GlobalScript_s_get_history_by_year(_inst,_other){}function gml_GlobalScript_s_update_music(_inst,_other){(_inst.gmls_update_music=__yy_method(_inst,gml_Script_s_update_music)); (_inst.gmls_update_music_safe=__yy_method(_inst,gml_Script_s_update_music_safe));}function gml_Script_s_update_music(_inst,_other){{if((yyGetBool(global.gmlbrowser))&&(yyGetBool(!yyGetBool(audio_system_is_available())))){return;};var gmlmusic=YYASSET_REF(0x0200000F);{gmlmusic=YYASSET_REF(0x02000000);};var ___sw902___=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx");var ___swc903___=-1;if(yyCompareVal(___sw902___,0,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw902___, 1,g_GMLMathEpsilon,false)==0){___swc903___=0;}else if(yyCompareVal(___sw902___,2,g_GMLMathEpsilon,false)==0){___swc903___=1;}switch(___swc903___){case 0:{if(yyGetBool(audio_is_playing(gmlmusic))){{audio_stop_sound(gmlmusic);};};break;}case 1:{if((yyGetBool(instance_exists(YYASSET_REF(0x00000069))))&&(yyGetBool(audio_is_playing(gmlmusic)))){{audio_sound_gain(gmlmusic,0,2500);return;};};if(!yyGetBool(audio_is_playing(gmlmusic))){{gml_Script_slog2(_inst,_other,"audio_play_sound music");audio_stop_sound(gmlmusic); audio_play_sound(gmlmusic,0,true);audio_sound_gain(gmlmusic,0.6,1);};}else {audio_sound_gain(gmlmusic,0.6,5000);};break;}};}}function gml_Script_s_update_music_safe(_inst,_other){{var gmlcur_time=get_timer();gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("- s_update_music_safe cur_time: ",__yy_gml_errCheck(string(gmlcur_time)))," last_opt_music_change_time: "),__yy_gml_errCheck(string(global.gmllast_opt_music_change_time)))," diff: "),__yy_gml_errCheck(string(yyfminus(__yy_gml_errCheck(gmlcur_time), __yy_gml_errCheck(global.gmllast_opt_music_change_time))))));if(yyfgreaterequal(yyfminus(__yy_gml_errCheck(gmlcur_time),__yy_gml_errCheck(global.gmllast_opt_music_change_time)),2000000)){{gml_Script_s_update_music(_inst,_other);};};}}// if (string_count("@", msg)) function gml_GlobalScript_s_get_ticker_text(_inst,_other){(_inst.gmls_get_ticker_text=__yy_method(_inst,gml_Script_s_get_ticker_text));}function gml_Script_s_get_ticker_text(_inst,_other){{(g_yyPrePostObject__=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlticker_count, yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlticker_count=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlticker_count.add(1):++yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlticker_count),g_yyPrePostObject__);if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlticker_count,3)){yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlticker_count=0;};var gmlallowLinks=!yyGetBool((yyGetBool(global.gmlconsole_build))||(yyGetBool(0)));var ___sw906___=yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlticker_count;var ___swc907___=-1;if(yyCompareVal(___sw906___,0,g_GMLMathEpsilon,false)==0){___swc907___=0;}else if(yyCompareVal(___sw906___,2,g_GMLMathEpsilon,false)==0){___swc907___=1;}else if(yyCompareVal(___sw906___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw906___,3,g_GMLMathEpsilon,false)==0){___swc907___=2;}switch(___swc907___){case 0:{if(yyGetBool(gmlallowLinks)){{return gml_Script_s_str(_inst,_other,"msg_TickerTwitter");break;};};}case 1:{if(yyGetBool(gmlallowLinks)){ {return gml_Script_s_str(_inst,_other,"msg_TickerReddit");break;};};}case 2:{if(yyGetBool(gmlallowLinks)){{if((yyGetBool(yyfgreaterequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltip_count,32)))&&(yyGetBool(yyflessequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltip_count,36)))){yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltip_count=1;};};};var gmlmsg=gml_Script_s_str(_inst,_other,yyfplus("tip_",__yy_gml_errCheck(string((yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltip_count=(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmltip_count instanceof Long?yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltip_count.add(1):++yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltip_count),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltip_count)))));if(yyGetBool(string_count("@",gmlmsg))){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltip_count=1;gmlmsg=gml_Script_s_str(_inst,_other,"tip_1");};};return yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Tip")),"! "),__yy_gml_errCheck(gmlmsg)); break;}};return gml_Script_s_get_ticker_text(_inst,_other);}}function gml_GlobalScript_s_choose_random_face_for_me(_inst,_other){(_inst.gmls_choose_random_face_for_me=__yy_method(_inst,gml_Script_s_choose_random_face_for_me));}function gml_Script_s_choose_random_face_for_me(_inst,_other){{gml_Script_slog(_inst,_other,"s_choose_random_face_for_me");{var __yy__v1060=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1061 in __yy__v1060){if(!__yy__v1060.hasOwnProperty(__yy__v1061))continue;var __yy__v1062=__yy__v1060[__yy__v1061]; {if(yyGetBool(__yy__v1062.gmlqb_mode)){{__yy__v1062.gmlmy_skin=choose(2,1,0);__yy__v1062.gmlmyface_x=irandom(7);var ___sw910___=__yy__v1062.gmlmy_skin;var ___swc911___=-1;if(yyCompareVal(___sw910___,2,g_GMLMathEpsilon,false)==0){___swc911___=0;}else if(yyCompareVal(___sw910___,1,g_GMLMathEpsilon,false)==0){___swc911___=1;}else if(yyCompareVal(___sw910___,0,g_GMLMathEpsilon,false)==0){___swc911___=2;}switch(___swc911___){case 0:{__yy__v1062.gmlmyface_y=irandom(2);break;}case 1:{__yy__v1062.gmlmyface_y=0; break;}case 2:{__yy__v1062.gmlmyface_y=irandom(8);break;}};gml_Script_slog(__yy__v1062,_inst,yyfplus("new skin = ",__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmy_skin))));gml_Script_slog(__yy__v1062,_inst,yyfplus("new face_x = ",__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyface_x))));gml_Script_slog(__yy__v1062,_inst,yyfplus("new face_y = ",__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyface_y))));};}else {{__yy__v1062.gmlmyface_x=irandom(8); __yy__v1062.gmlmyface_y=irandom(3);};};}}};}}function gml_GlobalScript_s_get_kick_direction(_inst,_other){(_inst.gmls_get_kick_direction=__yy_method(_inst,gml_Script_s_get_kick_direction));}function gml_Script_s_get_kick_direction(_inst,_other){{var gmlskl=yyfdivide(__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlholder).gmlmy_kick_skill),3);var gmlsp=yyfminus(9,__yy_gml_errCheck(gmlskl));var gmldif=yyfdivide(__yy_gml_errCheck(yyfplus(5,__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldifficulty))), 5);gmlsp=yyfminus(gmlsp,gmldif);gmlsp=clamp(gmlsp,3,9);var gmlconewid=100;if(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,false))){{gmlsp=9;gmlconewid=200;};};_inst.gmlkicky=yyfplus(_inst.gmlkicky,yyftime(__yy_gml_errCheck(_inst.gmlkickflip),__yy_gml_errCheck(gmlsp)));if((yyGetBool(yyfgreater(_inst.gmlkicky,yyfplus(300,__yy_gml_errCheck(gmlconewid)))))||(yyGetBool(yyfless(_inst.gmlkicky,yyfminus(300,__yy_gml_errCheck(gmlconewid)))))){_inst.gmlkickflip=__yy_gml_errCheck(-__yy_gml_errCheck(_inst.gmlkickflip)); };return __yy_gml_errCheck(-__yy_gml_errCheck(point_direction(yyInst(_inst,_other,_inst.gmlholder).x,yyInst(_inst,_other,_inst.gmlholder).y,_inst.gmlkickx,_inst.gmlkicky)));}}function gml_GlobalScript_s_aiming(_inst,_other){(_inst.gmls_aiming=__yy_method(_inst,gml_Script_s_aiming));}function gml_Script_s_aiming(_inst,_other){{{var __yy__v1063=GetWithArray(global.gmlmaster_ball);for(var __yy__v1064 in __yy__v1063){if(!__yy__v1063.hasOwnProperty(__yy__v1064))continue;var __yy__v1065=__yy__v1063[__yy__v1064]; {var ___sw914___=__yy__v1065.gmlstate;var ___swc915___=-1;if(yyCompareVal(___sw914___,0,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw914___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw914___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw914___,18,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw914___,19,g_GMLMathEpsilon,false)==0){___swc915___=0;}switch(___swc915___){case 0:{return true;}default :{return false;}};}}};return false;}}function gml_GlobalScript_s_update_ball(_inst,_other){(_inst.gmls_update_ball=__yy_method(_inst, gml_Script_s_update_ball));}function gml_Script_s_update_ball(_inst,_other){{var gmlmx=device_mouse_x_to_gui(0);var gmlmy=device_mouse_y_to_gui(0);var gmlcont=YYASSET_REF(0x00000069);if(!yyGetBool(mouse_check_button(1))){_inst.gmltouch_starty=(-1);}else {if(yyfequal(_inst.gmltouch_starty,(-1))){_inst.gmltouch_starty=gmlmy;};};if((yyGetBool(yyfgreaterequal(_inst.gmltouch_starty,250)))&&(yyGetBool(yyfequal(_inst.gmlstate,0)))){return;};var gmlgp_axis=0;if(yyGetBool(global.gmlgamepad)){{gmlgp_axis=yyInst(_inst, _other,global.gmlgp).gmlaxisl_force;if(yyfequal(gml_Script_s_get_op_invert_throw(_inst,_other),3)){gmlgp_axis=yyInst(_inst,_other,global.gmlgp).gmlaxisr_force;};};};var ___sw924___=_inst.gmlstate;var ___swc925___=-1;if(yyCompareVal(___sw924___,18,g_GMLMathEpsilon,false)==0){___swc925___=0;}else if(yyCompareVal(___sw924___,0,g_GMLMathEpsilon,false)==0){___swc925___=1;}else if(yyCompareVal(___sw924___,1,g_GMLMathEpsilon,false)==0){___swc925___=2;}else if(yyCompareVal(___sw924___,2,g_GMLMathEpsilon,false)==0){ ___swc925___=3;}else if(yyCompareVal(___sw924___,3,g_GMLMathEpsilon,false)==0){___swc925___=4;}else if(yyCompareVal(___sw924___,4,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw924___,11,g_GMLMathEpsilon,false)==0){___swc925___=5;}else if(yyCompareVal(___sw924___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw924___,7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw924___,8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw924___,13,g_GMLMathEpsilon,false)==0){___swc925___=6;}else if(yyCompareVal(___sw924___, 19,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw924___,9,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw924___,21,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw924___,20,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw924___,10,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw924___,5,g_GMLMathEpsilon,false)==0){___swc925___=7;}else if(yyCompareVal(___sw924___,14,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw924___,15,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw924___,16,g_GMLMathEpsilon,false)==0){ ___swc925___=8;}else if(yyCompareVal(___sw924___,17,g_GMLMathEpsilon,false)==0){___swc925___=9;}switch(___swc925___){case 0:{if((yyGetBool(gml_Script_s_can_throw(_inst,_other)))&&(yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other)))&&(yyGetBool(mouse_check_button(1)))&&(yyGetBool(yyfless(point_distance(_inst.x,_inst.y,g_pBuiltIn.get_mouse_x(),g_pBuiltIn.get_mouse_y()),40)))){{_inst.gmlxtouch=gmlmx;_inst.gmlytouch=gmlmy;_inst.gmlstate=1;};};if(yyGetBool(_inst.gmlholder)){gml_Script_s_update_ball_offset(_inst, _other);};break;}case 1:{_inst.x=yyInst(_inst,_other,gmlcont).gmlx_scrim;_inst.y=yyInst(_inst,_other,gmlcont).gmly_scrim;var ___sw926___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice;var ___swc927___=-1;if(yyCompareVal(___sw926___,3,g_GMLMathEpsilon,false)==0){___swc927___=0;}else if(yyCompareVal(___sw926___,2,g_GMLMathEpsilon,false)==0){___swc927___=1;}switch(___swc927___){case 0:{yyInst(_inst,_other,gmlcont).gmltap_msg=gml_Script_s_str(_inst,_other,"training_Throw1");break;}case 1:{yyInst(_inst, _other,gmlcont).gmltap_msg=gml_Script_s_str(_inst,_other,"training_Throw3");if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpractice_success,0)){{yyInst(_inst,_other,gmlcont).gmltap_msg=gml_Script_s_str(_inst,_other,"training_Running1");if((yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),0)))||(yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),1)))){yyInst(_inst,_other,gmlcont).gmltap_msg=gml_Script_s_str(_inst,_other,"training_Running1b");};};};break;}};if((yyGetBool((yyGetBool(gml_Script_s_is_touch_allowed(_inst, _other)))&&(yyGetBool(mouse_check_button(1)))))||(yyGetBool((yyGetBool(global.gmlgamepad))&&(yyGetBool((yyGetBool(gamepad_button_check_released(yyInst(_inst,_other,global.gmlgp).gmlslot,global.gmlgp_handoff)))||(yyGetBool(gmlgp_axis))))&&(yyGetBool(!yyGetBool(gml_Script_s_is_paused_or_just_unpaused(_inst,_other))))))){{{var __yy__v1066=GetWithArray(YYASSET_REF(0x0000006C));for(var __yy__v1067 in __yy__v1066){if(!__yy__v1066.hasOwnProperty(__yy__v1067))continue;var __yy__v1068=__yy__v1066[__yy__v1067]; {if((yyGetBool(yyfequal(__yy__v1068.gmlposition,2)))&&(yyGetBool((yyGetBool((yyGetBool(global.gmlgamepad))&&(yyGetBool(gamepad_button_check_released(yyInst(_inst,_other,global.gmlgp).gmlslot,global.gmlgp_handoff)))&&(yyGetBool(!yyGetBool(gml_Script_s_is_paused_or_just_unpaused(__yy__v1068,_inst))))))||(yyGetBool((yyGetBool(!yyGetBool(global.gmlgamepad)))&&(yyGetBool(yyfless(point_distance(__yy__v1068.x,__yy__v1068.y,g_pBuiltIn.get_mouse_x(),g_pBuiltIn.get_mouse_y()),20)))))))){{gml_Script_slog(__yy__v1068, _inst,"global.master_ball.state = BALL_HANDOFF;");yyInst(_inst,_other,global.gmlmaster_ball).gmlstate=19;yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlplay_start=g_pBuiltIn.get_current_time();yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlrunning_play=true;gml_Script_s_sound_throw(__yy__v1068,_inst);instance_destroy(__yy__v1068,YYASSET_REF(0x0000007A));instance_destroy(__yy__v1068,YYASSET_REF(0x0000007C));break;};};}}};if((yyGetBool(yyfnotequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice, 2)))||(yyGetBool(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpractice_success,0)))){{if(yyfnotequal(_inst.gmlstate,19)){{_inst.gmlxtouch=gmlmx;_inst.gmlytouch=gmlmy;_inst.gmlstate=1;gml_Script_slog(_inst,_other,"state = BALL_AIM_DEADZONE");};};};};};};break;}case 2:{if((yyGetBool(global.gmlgamepad))&&(yyGetBool(yyfgreater(gmlgp_axis,0.2)))){{_inst.gmlstate=2;gml_Script_s_sound_throw(_inst,_other);};}else {if((yyGetBool(mouse_check_button(1)))&&(yyGetBool(gml_Script_s_is_touch_allowed(_inst, _other)))){{_inst.gmldragdist=point_distance(_inst.gmlxtouch,_inst.gmlytouch,gmlmx,gmlmy);if(yyfgreater(_inst.gmldragdist,20)){{_inst.gmlstate=2;gml_Script_s_sound_throw(_inst,_other);};};};}else {{_inst.gmlstate=0;return;};};};break;}case 3:{instance_destroy(_inst,YYASSET_REF(0x0000007A));instance_destroy(_inst,YYASSET_REF(0x0000007C));if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice,3)){yyInst(_inst,_other,gmlcont).gmltap_msg=gml_Script_s_str(_inst,_other,"training_Throw2"); };if((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice,2)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpractice_success,0)))){yyInst(_inst,_other,gmlcont).gmltap_msg=gml_Script_s_str(_inst,_other,"training_Throw3");};{var __yy__v1069=GetWithArray(_inst.gmlholder);for(var __yy__v1070 in __yy__v1069){if(!__yy__v1069.hasOwnProperty(__yy__v1070))continue;var __yy__v1071=__yy__v1069[__yy__v1070];{if((yyGetBool(!yyGetBool(path_exists(__yy__v1071.gmlmy_route))))&&(yyGetBool(!yyGetBool(gml_Script_s_is_falling(__yy__v1071, _inst))))&&(yyGetBool(yyfless(__yy__v1071.gmlballdist,10)))){gml_Script_s_set_anim(__yy__v1071,_inst,11);};gml_Script_s_update_ball_offset(_inst,__yy__v1071);;}}};var ___sw928___=global.gmlgamepad;var ___swc929___=-1;if(yyCompareVal(___sw928___,true,g_GMLMathEpsilon,false)==0){___swc929___=0;}else if(yyCompareVal(___sw928___,false,g_GMLMathEpsilon,false)==0){___swc929___=1;}switch(___swc929___){case 0:{var ___sw930___=gml_Script_s_get_op_invert_throw(_inst,_other);var ___swc931___=-1;if(yyCompareVal(___sw930___, 0,g_GMLMathEpsilon,false)==0){___swc931___=0;}else if(yyCompareVal(___sw930___,1,g_GMLMathEpsilon,false)==0){___swc931___=1;}else if(yyCompareVal(___sw930___,2,g_GMLMathEpsilon,false)==0){___swc931___=2;}else if(yyCompareVal(___sw930___,3,g_GMLMathEpsilon,false)==0){___swc931___=3;}switch(___swc931___){case 0:{if(yyfgreater(gmlgp_axis,0.2)){{_inst.gmldragx=clamp(yyfplus(__yy_gml_errCheck(_inst.gmldragx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,global.gmlgp).gmlaxisl_h),2))),(-100), 100);_inst.gmldragy=clamp(yyfplus(__yy_gml_errCheck(_inst.gmldragy),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,global.gmlgp).gmlaxisl_v),2))),(-100),100);_inst.gmldragdist=point_distance(0,0,_inst.gmldragx,__yy_gml_errCheck(-__yy_gml_errCheck(_inst.gmldragy)));_inst.gmldirec=point_direction(0,0,_inst.gmldragx,__yy_gml_errCheck(-__yy_gml_errCheck(_inst.gmldragy)));};};break;}case 1:{if(yyfgreater(gmlgp_axis,0.2)){{_inst.gmldragx=clamp(yyfminus(__yy_gml_errCheck(_inst.gmldragx), __yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,global.gmlgp).gmlaxisl_h),2))),(-100),100);_inst.gmldragy=clamp(yyfminus(__yy_gml_errCheck(_inst.gmldragy),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,global.gmlgp).gmlaxisl_v),2))),(-100),100);_inst.gmldragdist=point_distance(0,0,_inst.gmldragx,__yy_gml_errCheck(-__yy_gml_errCheck(_inst.gmldragy)));_inst.gmldirec=point_direction(0,0,_inst.gmldragx,__yy_gml_errCheck(-__yy_gml_errCheck(_inst.gmldragy)));};};break; }case 2:{_inst.gmldes_drag=yyftime(__yy_gml_errCheck(gmlgp_axis),100);_inst.gmldragdist=lerp(_inst.gmldragdist,_inst.gmldes_drag,0.25);_inst.gmldragdist=clamp(_inst.gmldragdist,20,100);_inst.gmldes_direc=yyfplus(__yy_gml_errCheck(point_direction(0,0,yyInst(_inst,_other,global.gmlgp).gmlaxisl_h,__yy_gml_errCheck(-__yy_gml_errCheck(yyInst(_inst,_other,global.gmlgp).gmlaxisl_v)))),180);_inst.gmldirec=yyfminus(_inst.gmldirec,yyftime(__yy_gml_errCheck(angle_difference(_inst.gmldirec,_inst.gmldes_direc)), 0.1));break;}case 3:{_inst.gmldes_drag=yyftime(__yy_gml_errCheck(gmlgp_axis),100);_inst.gmldragdist=lerp(_inst.gmldragdist,_inst.gmldes_drag,0.25);_inst.gmldragdist=clamp(_inst.gmldragdist,20,100);_inst.gmldes_direc=yyfplus(__yy_gml_errCheck(point_direction(0,0,yyInst(_inst,_other,global.gmlgp).gmlaxisr_h,__yy_gml_errCheck(-__yy_gml_errCheck(yyInst(_inst,_other,global.gmlgp).gmlaxisr_v)))),180);_inst.gmldirec=yyfminus(_inst.gmldirec,yyftime(__yy_gml_errCheck(angle_difference(_inst.gmldirec,_inst.gmldes_direc)), 0.1));break;}};if((yyGetBool((yyGetBool((yyGetBool(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice)))||(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice,2)))))&&(yyGetBool(gamepad_button_check_released(yyInst(_inst,_other,global.gmlgp).gmlslot,32771)))))||(yyGetBool(gamepad_button_check_released(yyInst(_inst,_other,global.gmlgp).gmlslot,32777)))){{{var __yy__v1072=GetWithArray(_inst.gmlholder);for(var __yy__v1073 in __yy__v1072){if(!__yy__v1072.hasOwnProperty(__yy__v1073))continue; var __yy__v1074=__yy__v1072[__yy__v1073];if(yyGetBool(path_exists(__yy__v1074.gmlmy_route))){path_delete(__yy__v1074.gmlmy_route);};}};gml_Script_s_qb_run(_inst,_other,true);};}else {if((yyGetBool(gamepad_button_check_released(yyInst(_inst,_other,global.gmlgp).gmlslot,global.gmlgp_back)))&&(yyGetBool(!yyGetBool(gml_Script_s_is_paused_or_just_unpaused(_inst,_other))))){{_inst.gmlbullet_throw_hold=false;_inst.gmlbullet_throw=!yyGetBool(_inst.gmlbullet_throw);};};};if(yyGetBool(yyInst(_inst,_other,global.gmlgp).gmltriggerl)){ {_inst.gmlbullet_throw_hold=true;_inst.gmlbullet_throw=true;};}else {if(yyGetBool(_inst.gmlbullet_throw_hold)){{_inst.gmlbullet_throw_hold=false;_inst.gmlbullet_throw=false;};};};if((yyGetBool(_inst.gmlbullet_throw))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice)))){{_inst.gmlvelocity=yyftime(yyftime(__yy_gml_errCheck(_inst.gmldragdist),__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlholder).gmlmy_throw_power)),1.2);_inst.gmlzvel=yyftime(yyftime(__yy_gml_errCheck(_inst.gmlvelocity), 0.35),0.5);};}else {{_inst.gmlvelocity=yyftime(__yy_gml_errCheck(_inst.gmldragdist),__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlholder).gmlmy_throw_power));_inst.gmlzvel=yyftime(__yy_gml_errCheck(_inst.gmlvelocity),0.35);};};if(yyGetBool(gamepad_button_check_released(yyInst(_inst,_other,global.gmlgp).gmlslot,global.gmlgp_select))){gml_Script_s_throw_ball(_inst,_other);};break;}case 1:{_inst.gmldragdist=min(point_distance(_inst.gmlxtouch,_inst.gmlytouch,gmlmx,gmlmy),100);var gmlfinger_down=false; if((yyGetBool(global.gmlmobile_device))||(yyGetBool(global.gmlconsole_build))){{if((yyGetBool(device_mouse_check_button(0,1)))&&(yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other)))){{gmlfinger_down=true;if(yyGetBool(device_mouse_check_button_released(1,1))){_inst.gmlbullet_throw=!yyGetBool(_inst.gmlbullet_throw);};};};};}else {if((yyGetBool(mouse_check_button(1)))&&(yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other)))){{gmlfinger_down=true;if(yyGetBool(mouse_check_button_released(2))){_inst.gmlbullet_throw=!yyGetBool(_inst.gmlbullet_throw); };};};};if(yyGetBool(gmlfinger_down)){{_inst.gmldirec=yyfplus(__yy_gml_errCheck(__yy_gml_errCheck(-__yy_gml_errCheck(point_direction(_inst.gmlxtouch,_inst.gmlytouch,gmlmx,gmlmy)))),180);if(yyGetBool(_inst.gmlbullet_throw)){{_inst.gmlvelocity=yyftime(yyftime(__yy_gml_errCheck(_inst.gmldragdist),__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlholder).gmlmy_throw_power)),1.2);_inst.gmlzvel=yyftime(yyftime(__yy_gml_errCheck(_inst.gmlvelocity),0.35),0.5);};}else {{_inst.gmlvelocity=yyftime(__yy_gml_errCheck(_inst.gmldragdist), __yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlholder).gmlmy_throw_power));_inst.gmlzvel=yyftime(__yy_gml_errCheck(_inst.gmlvelocity),0.35);};};};}else {if((yyGetBool(yyfless(_inst.gmldragdist,20)))||(yyGetBool(gml_Script_s_opposite_aim(_inst,_other,_inst.gmldirec)))){{{var __yy__v1075=GetWithArray(_inst.gmlholder);for(var __yy__v1076 in __yy__v1075){if(!__yy__v1075.hasOwnProperty(__yy__v1076))continue;var __yy__v1077=__yy__v1075[__yy__v1076];if(yyGetBool(path_exists(__yy__v1077.gmlmy_route))){path_delete(__yy__v1077.gmlmy_route); };}};gml_Script_s_qb_run(_inst,_other,false);};}else {gml_Script_s_throw_ball(_inst,_other);};};break;}};break;}case 4:{yyInst(_inst,_other,gmlcont).gmltap_msg="";gml_Script_s_update_ball_movement(_inst,_other,false);break;}case 5:{if((yyGetBool(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice)))&&(yyGetBool(!yyGetBool(instance_exists(YYASSET_REF(0x0000007B)))))&&(yyGetBool(yyfgreater(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmlcont).gmlminutes),__yy_gml_errCheck(yyInst(_inst, _other,gmlcont).gmlseconds)),0)))&&(yyGetBool(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldown,5)))){{if((yyGetBool(_inst.gmlholder))&&(yyGetBool(yyInst(_inst,_other,_inst.gmlholder).gmloffense))&&(yyGetBool(gml_Script_s_count_timeouts(_inst,_other)))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,gmlcont).gmltimeout_called)))){{var gmlbx=32;var gmlby=48;if(yyfequal(yyInst(_inst,_other,gmlcont).gmldrivedir,(-1))){gmlbx=yyfminus(yyfminus(__yy_gml_errCheck(display_get_gui_width()),32),__yy_gml_errCheck(sprite_get_width(YYASSET_REF(0x01000059)))); };var gmlbtn_to=instance_create_layer(gmlbx,gmlby,"Text",YYASSET_REF(0x0000007B));yyInst(_inst,_other,gmlbtn_to).gmlgp_mapped_button=global.gmlgp_timeout;};};};};}case 6:{if(yyGetBool(_inst.gmlholder)){gml_Script_s_update_ball_offset(_inst,_other);}else {gml_Script_s_update_ball_movement(_inst,_other,false);};break;}case 7:{if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice,2)){{if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpractice_success,0)){{yyInst(_inst,_other, gmlcont).gmltap_msg=gml_Script_s_str(_inst,_other,"training_Running2");if((yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),0)))||(yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),1)))){yyInst(_inst,_other,gmlcont).gmltap_msg=gml_Script_s_str(_inst,_other,"training_Running2b");};};}else {{yyInst(_inst,_other,gmlcont).gmltap_msg=gml_Script_s_str(_inst,_other,"training_Running3");if((yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),0)))||(yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),1)))){{if(yyfequal(yyInst(_inst, _other,YYASSET_REF(0x00000069)).gmldrivedir,1)){yyInst(_inst,_other,gmlcont).gmltap_msg=gml_Script_s_str(_inst,_other,"training_Running3D");}else {yyInst(_inst,_other,gmlcont).gmltap_msg=gml_Script_s_str(_inst,_other,"training_Running3A");};};};};};};}else {if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice,3)){{yyInst(_inst,_other,gmlcont).gmltap_msg="";_inst.gmlstate=16;};}else {{};};};gml_Script_s_update_ball_offset(_inst,_other);break;}case 8:{if(yyGetBool(_inst.gmlholder)){ {gml_Script_s_update_ball_offset(_inst,_other);return;};};}case 9:{gml_Script_s_update_ball_movement(_inst,_other,false);break;}};}}function gml_GlobalScript_s_do_touchback(_inst,_other){(_inst.gmls_do_touchback=__yy_method(_inst,gml_Script_s_do_touchback));}function gml_Script_s_do_touchback(_inst,_other){{if((yyGetBool(gml_Script_s_is_kickoff(_inst,_other,true)))&&(yyGetBool(gml_Script_s_can_touchback(_inst,_other)))){{var gmlddir=(-1);{var __yy__v1078=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v1079 in __yy__v1078){ if(!__yy__v1078.hasOwnProperty(__yy__v1079))continue;var __yy__v1080=__yy__v1078[__yy__v1079];gmlddir=__yy__v1080.gmldrivedir;}};if((yyGetBool((yyGetBool(yyfless(_inst.x,300)))&&(yyGetBool(yyfequal(gmlddir,1)))))||(yyGetBool((yyGetBool(yyfgreater(_inst.x,2300)))&&(yyGetBool(yyfequal(gmlddir,(-1))))))){{gml_Script_s_set_anim(_inst,_other,19);return true;};};};};return false;}}function gml_GlobalScript_s_update_ball_fieldgoal(_inst,_other){(_inst.gmls_update_ball_fieldgoal=__yy_method(_inst,gml_Script_s_update_ball_fieldgoal)); }function gml_Script_s_update_ball_fieldgoal(_inst,_other){{var gmlcont=YYASSET_REF(0x00000069);var ___sw936___=_inst.gmlstate;var ___swc937___=-1;if(yyCompareVal(___sw936___,0,g_GMLMathEpsilon,false)==0){___swc937___=0;}else if(yyCompareVal(___sw936___,1,g_GMLMathEpsilon,false)==0){___swc937___=1;}else if(yyCompareVal(___sw936___,2,g_GMLMathEpsilon,false)==0){___swc937___=2;}else if(yyCompareVal(___sw936___,3,g_GMLMathEpsilon,false)==0){___swc937___=3;}else if(yyCompareVal(___sw936___,4,g_GMLMathEpsilon, false)==0||yyCompareVal(___sw936___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw936___,7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw936___,8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw936___,11,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw936___,12,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw936___,13,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw936___,5,g_GMLMathEpsilon,false)==0){___swc937___=4;}else if(yyCompareVal(___sw936___,9,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw936___, 21,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw936___,10,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw936___,14,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw936___,15,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw936___,16,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw936___,17,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw936___,20,g_GMLMathEpsilon,false)==0){___swc937___=5;}switch(___swc937___){case 0:{if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice,1)){{yyInst(_inst, _other,gmlcont).gmltap_msg=gml_Script_s_str(_inst,_other,"training_Kick1");if((yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),0)))||(yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),1)))){yyInst(_inst,_other,gmlcont).gmltap_msg=gml_Script_s_str(_inst,_other,"training_Kick1b");};};};_inst.x=yyInst(_inst,_other,gmlcont).gmlx_scrim;_inst.y=yyInst(_inst,_other,gmlcont).gmly_scrim;var gmlsp=yyfminus(1.4,__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlholder).gmlmy_kick_skill),0.05))); var ___sw938___=_inst.gmlkickflip;var ___swc939___=-1;if(yyCompareVal(___sw938___,(-1),g_GMLMathEpsilon,false)==0){___swc939___=0;}else if(yyCompareVal(___sw938___,1,g_GMLMathEpsilon,false)==0){___swc939___=1;}switch(___swc939___){case 0:{_inst.gmlkickpow=yyfminus(_inst.gmlkickpow,5);break;}case 1:{_inst.gmlkickpow=yyfplus(_inst.gmlkickpow,gmlsp);break;}};if(yyfgreaterequal(_inst.gmlkickpow,55)){{_inst.gmlkickpow=55;_inst.gmlkickflip=__yy_gml_errCheck(-__yy_gml_errCheck(_inst.gmlkickflip));};};if(yyflessequal(_inst.gmlkickpow, 0)){{_inst.gmlkickpow=0;_inst.gmlkickflip=__yy_gml_errCheck(-__yy_gml_errCheck(_inst.gmlkickflip));};};gml_Script_s_update_ball_offset(_inst,_other);if(yyGetBool(gml_Script_s_cpu_is_kicking_off(_inst,_other))){{if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltag_kr_message_done,3)){{_inst.gmlcpu_kickpow=55;yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltag_kr_message_done=4;};};if(yyfequal(round(_inst.gmlkickpow),round(_inst.gmlcpu_kickpow))){_inst.gmlstate=1;};break;};};if((yyGetBool(global.gmlgamepad))&&(yyGetBool(gamepad_button_check(yyInst(_inst, _other,global.gmlgp).gmlslot,global.gmlgp_select)))){_inst.gmlstate=1;}else {if((yyGetBool(mouse_check_button(1)))&&(yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other)))){{{var __yy__v1081=GetWithArray(YYASSET_REF(0x0000000C));for(var __yy__v1082 in __yy__v1081){if(!__yy__v1081.hasOwnProperty(__yy__v1082))continue;var __yy__v1083=__yy__v1081[__yy__v1082];{if(yyfgreater(device_mouse_y_to_gui(0),yyfplus(__yy_gml_errCheck(__yy__v1083.y),__yy_gml_errCheck(__yy__v1083.sprite_height)))){_inst.gmlstate=1; };return;}}};_inst.gmlstate=1;};};};break;}case 1:{instance_destroy(_inst,YYASSET_REF(0x0000000C));if((yyGetBool(gml_Script_s_cpu_is_kicking_off(_inst,_other)))||(yyGetBool((yyGetBool(!yyGetBool(mouse_check_button(1))))&&(yyGetBool((yyGetBool(!yyGetBool(global.gmlgamepad)))||(yyGetBool(!yyGetBool(gamepad_button_check(yyInst(_inst,_other,global.gmlgp).gmlslot,global.gmlgp_select))))))))){{_inst.gmlstate=2;{var __yy__v1084=GetWithArray(_inst.gmlholder);for(var __yy__v1085 in __yy__v1084){if(!__yy__v1084.hasOwnProperty(__yy__v1085))continue; var __yy__v1086=__yy__v1084[__yy__v1085];gml_Script_s_set_anim(__yy__v1086,_inst,14);}};};}else {_inst.gmldirec=gml_Script_s_get_kick_direction(_inst,_other);};break;}case 2:{if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice,1)){{yyInst(_inst,_other,gmlcont).gmltap_msg=gml_Script_s_str(_inst,_other,"training_Kick2");if((yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),0)))||(yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),1)))){yyInst(_inst,_other,gmlcont).gmltap_msg=gml_Script_s_str(_inst, _other,"training_Kick2b");};};};if(yyGetBool(_inst.gmlholder)){{gml_Script_s_update_ball_offset(_inst,_other);var gmld=point_distance(_inst.x,_inst.y,yyInst(_inst,_other,_inst.gmlholder).x,yyInst(_inst,_other,_inst.gmlholder).y);if(yyfless(gmld,30)){{{var __yy__v1087=GetWithArray(YYASSET_REF(0x0000006C));for(var __yy__v1088 in __yy__v1087){if(!__yy__v1087.hasOwnProperty(__yy__v1088))continue;var __yy__v1089=__yy__v1087[__yy__v1088];if(yyfequal(__yy__v1089.gmlposition,11)){__yy__v1089.image_index=1;};} };};};if(yyfgreater(gmld,25)){break;};};};if(yyfless(_inst.gmlkickpow,15)){{_inst.gmldirec=random_range((-5),5);if(yyfequal(yyInst(_inst,_other,_inst.gmlholder).gmlfacing,(-1))){_inst.gmldirec=yyfplus(180,__yy_gml_errCheck(irandom_range((-5),5)));};_inst.gmlvelocity=yyftime(__yy_gml_errCheck(yyfplus(50,__yy_gml_errCheck(_inst.gmlkickpow))),__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlholder).gmlmy_kick_power));_inst.gmlzvel=yyftime(__yy_gml_errCheck(_inst.gmlvelocity),0.4);gml_Script_s_kick_ball(_inst, _other);break;};};_inst.gmldirec=gml_Script_s_get_kick_direction(_inst,_other);_inst.gmlvelocity=yyftime(__yy_gml_errCheck(yyfplus(50,__yy_gml_errCheck(_inst.gmlkickpow))),__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlholder).gmlmy_kick_power));_inst.gmlzvel=yyftime(__yy_gml_errCheck(_inst.gmlvelocity),0.4);if(yyGetBool(gml_Script_s_cpu_is_kicking_off(_inst,_other))){gml_Script_s_kick_ball(_inst,_other);}else {if((yyGetBool(mouse_check_button(1)))&&(yyGetBool(gml_Script_s_is_touch_allowed(_inst, _other)))){gml_Script_s_kick_ball(_inst,_other);}else {if((yyGetBool(global.gmlgamepad))&&(yyGetBool(gamepad_button_check(yyInst(_inst,_other,global.gmlgp).gmlslot,global.gmlgp_select)))){gml_Script_s_kick_ball(_inst,_other);};};};break;}case 3:{gml_Script_s_update_ball_movement(_inst,_other,false);break;}case 4:{if(yyGetBool(_inst.gmlholder)){gml_Script_s_update_ball_offset(_inst,_other);}else {gml_Script_s_update_ball_movement(_inst,_other,false);};break;}case 5:{gml_Script_s_update_ball_movement(_inst, _other,false);break;}};}}function gml_GlobalScript_s_update_ball_movement(_inst,_other){(_inst.gmls_update_ball_movement=__yy_method(_inst,gml_Script_s_update_ball_movement));}function gml_Script_s_update_ball_movement(_inst,_other,argument0){{_inst.gmllast_x=_inst.x;_inst.gmllast_y=_inst.y;var ___sw942___=yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlkicking;var ___swc943___=-1;if(yyCompareVal(___sw942___,0,g_GMLMathEpsilon,false)==0){___swc943___=0;}switch(___swc943___){case 0:{_inst.gmlvelocity=yyftime(_inst.gmlvelocity, 0.986);_inst.gmlzvel=yyfminus(_inst.gmlzvel,0.08);break;}default :{_inst.gmlvelocity=yyftime(_inst.gmlvelocity,0.9995);_inst.gmlzvel=yyfminus(_inst.gmlzvel,0.03);break;}};_inst.x=yyfplus(_inst.x,yyftime(__yy_gml_errCheck(dcos(_inst.gmldirec)),__yy_gml_errCheck(_inst.gmlvelocity)));_inst.y=yyfplus(_inst.y,yyftime(__yy_gml_errCheck(dsin(_inst.gmldirec)),__yy_gml_errCheck(_inst.gmlvelocity)));_inst.gmllastheight=_inst.gmlheight;_inst.gmlheight=yyfplus(_inst.gmlheight,_inst.gmlzvel);_inst.gmlrotation=yyfplus(_inst.gmlrotation, _inst.gmlroll);if(yyGetBool(argument0)){return;};if(yyflessequal(_inst.gmlheight,1)){{if(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,false))){{if((yyGetBool(yyfless(_inst.x,300)))||(yyGetBool(yyfgreater(_inst.x,2300)))){{gml_Script_slog(_inst,_other,"BALL_TOUCHBACK 6");_inst.gmlstate=20;_inst.gmlydead=round(_inst.y);_inst.gmlxdead=round(_inst.x);yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_down=_inst.y;};};};}else {if(yyfnotequal(_inst.gmlstate,6)){{if(yyGetBool(_inst.gmllast_touched_by)){ {if(yyGetBool(yyInst(_inst,_other,_inst.gmllast_touched_by).gmloffense)){{if(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice)){_inst.gmlstate=13;};};}else {{gml_Script_s_set_ball_down(_inst,_other);};};};};};};};if(yyfless(_inst.gmlzvel,(-1))){gml_Script_s_sound_bounce(_inst,_other);};_inst.gmlbouncecount=yyfplus(_inst.gmlbouncecount,1);_inst.gmlheight=1;_inst.gmlzvel=yyftime(_inst.gmlzvel,(-0.5));_inst.gmlvelocity=yyftime(_inst.gmlvelocity,random_range(0.2,0.5));_inst.gmldirec=yyfplus(_inst.gmldirec, random_range((-40),40));_inst.gmlroll=irandom(15);};};if(yyfless(_inst.gmlvelocity,0.1)){{_inst.gmlvelocity=0;_inst.gmlroll=0;_inst.gmlrotation=0;};};if((yyGetBool(yyfequal(_inst.gmlbouncecount,0)))&&(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlkicking))&&(yyGetBool(!yyGetBool(gml_Script_s_is_kickoff(_inst,_other,true))))){{{var __yy__v1090=GetWithArray(YYASSET_REF(0x00000076));for(var __yy__v1091 in __yy__v1090){if(!__yy__v1090.hasOwnProperty(__yy__v1091))continue;var __yy__v1092=__yy__v1090[__yy__v1091]; {if(yyfgreater(__yy__v1092.gmlwind,0)){{__yy__v1092.gmlwind_force=clamp(yyfplus(__yy_gml_errCheck(__yy__v1092.gmlwind_force),0.008),0,__yy__v1092.gmlwind);_inst.x=yyfplus(_inst.x,yyftime(__yy_gml_errCheck(dcos(yyftime(__yy_gml_errCheck(__yy__v1092.gmlwind_dir),45))),__yy_gml_errCheck(__yy__v1092.gmlwind_force)));_inst.y=yyfplus(_inst.y,yyftime(__yy_gml_errCheck(dsin(yyftime(__yy_gml_errCheck(__yy_gml_errCheck(-__yy_gml_errCheck(__yy__v1092.gmlwind_dir))),45))),__yy_gml_errCheck(__yy__v1092.gmlwind_force))); };};}}};};};gml_Script_s_check_dummy_collision(_inst,_other);}}function gml_GlobalScript_s_update_ball_offset(_inst,_other){(_inst.gmls_update_ball_offset=__yy_method(_inst,gml_Script_s_update_ball_offset));}function gml_Script_s_update_ball_offset(_inst,_other){{var gmloffsetx=0;var gmloffsety=0;_inst.gmlroll=0;_inst.gmlrotation=0;if(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,false))){{gmloffsetx=11;gmloffsety=1;_inst.gmlheight=1;_inst.gmlrotation=90;return;};};if((yyGetBool(yyInst(_inst,_other, YYASSET_REF(0x00000069)).gmlkicking))&&(yyGetBool(yyfequal(yyInst(_inst,_other,_inst.gmlholder).gmlposition,1)))){{gmloffsetx=11;gmloffsety=1;_inst.gmlheight=1;_inst.gmlrotation=90;};}else {{var ___sw950___=yyInst(_inst,_other,_inst.gmlholder).gmlanim;var ___swc951___=-1;if(yyCompareVal(___sw950___,0,g_GMLMathEpsilon,false)==0){___swc951___=0;}else if(yyCompareVal(___sw950___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw950___,1,g_GMLMathEpsilon,false)==0){___swc951___=1;}else if(yyCompareVal(___sw950___, 7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw950___,2,g_GMLMathEpsilon,false)==0){___swc951___=2;}else if(yyCompareVal(___sw950___,3,g_GMLMathEpsilon,false)==0){___swc951___=3;}else if(yyCompareVal(___sw950___,4,g_GMLMathEpsilon,false)==0){___swc951___=4;}else if(yyCompareVal(___sw950___,5,g_GMLMathEpsilon,false)==0){___swc951___=5;}else if(yyCompareVal(___sw950___,8,g_GMLMathEpsilon,false)==0){___swc951___=6;}else if(yyCompareVal(___sw950___,9,g_GMLMathEpsilon,false)==0){___swc951___=7;}else if(yyCompareVal(___sw950___, 10,g_GMLMathEpsilon,false)==0){___swc951___=8;}else if(yyCompareVal(___sw950___,18,g_GMLMathEpsilon,false)==0){___swc951___=9;}else if(yyCompareVal(___sw950___,19,g_GMLMathEpsilon,false)==0){___swc951___=10;}switch(___swc951___){case 0:{gmloffsetx=1;gmloffsety=2;_inst.gmlheight=yyftime(7,__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlholder).image_yscale));break;}case 1:{gmloffsetx=3;gmloffsety=(-2);_inst.gmlheight=0;break;}case 2:{gmloffsetx=yyfplus(1,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(yyInst(_inst, _other,_inst.gmlholder).image_index),2)));gmloffsety=2;_inst.gmlheight=yyftime(10,__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlholder).image_yscale));break;}case 3:{gmloffsetx=4;gmloffsety=(-2);_inst.gmlheight=yyftime(8,__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlholder).image_yscale));break;}case 4:{if(yyfless(yyInst(_inst,_other,_inst.gmlholder).image_index,1)){{gmloffsetx=2;gmloffsety=(-2);_inst.gmlheight=yyftime(9,__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlholder).image_yscale));};}else { {gmloffsetx=0;gmloffsety=(-2);_inst.gmlheight=yyftime(9,__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlholder).image_yscale));if(yyfless(yyInst(_inst,_other,_inst.gmlholder).speed,1)){_inst.gmlheight=0;};};};break;}case 5:{gmloffsetx=9;gmloffsety=(-2);_inst.gmlheight=0;if(yyfless(yyInst(_inst,_other,_inst.gmlholder).image_index,2)){{gmloffsety=(-3);_inst.gmlheight=4;};};break;}case 6:{gmloffsetx=yyfplus(1,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlholder).image_index), 2)));gmloffsety=2;_inst.gmlheight=yyftime(10,__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlholder).image_yscale));var ___sw952___=yyInst(_inst,_other,_inst.gmlholder).image_index;var ___swc953___=-1;if(yyCompareVal(___sw952___,0,g_GMLMathEpsilon,false)==0){___swc953___=0;}else if(yyCompareVal(___sw952___,1,g_GMLMathEpsilon,false)==0){___swc953___=1;}else if(yyCompareVal(___sw952___,2,g_GMLMathEpsilon,false)==0){___swc953___=2;}switch(___swc953___){case 0:{_inst.gmlheight=yyfminus(_inst.gmlheight,1); break;}case 1:{_inst.gmlheight=yyfminus(_inst.gmlheight,2);break;}case 2:{_inst.gmlheight=yyfminus(_inst.gmlheight,1);break;}};break;}case 7:{gmloffsetx=1;gmloffsety=2;_inst.gmlheight=yyftime(10,__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlholder).image_yscale));break;}case 8:{gmloffsetx=1;gmloffsety=0;var ___sw954___=yyInst(_inst,_other,_inst.gmlholder).image_index;var ___swc955___=-1;if(yyCompareVal(___sw954___,0,g_GMLMathEpsilon,false)==0){___swc955___=0;}else if(yyCompareVal(___sw954___,1,g_GMLMathEpsilon, false)==0){___swc955___=1;}else if(yyCompareVal(___sw954___,2,g_GMLMathEpsilon,false)==0){___swc955___=2;}else if(yyCompareVal(___sw954___,4,g_GMLMathEpsilon,false)==0){___swc955___=3;}else if(yyCompareVal(___sw954___,5,g_GMLMathEpsilon,false)==0){___swc955___=4;}switch(___swc955___){case 0:{_inst.gmlheight=36;break;}case 1:{_inst.gmlheight=38;break;}case 2:{_inst.gmlheight=40;break;}case 3:{_inst.gmlheight=38;break;}case 4:{_inst.gmlheight=36;break;}};break;}case 9:{gmloffsetx=9;gmloffsety=(-2);_inst.gmlheight=0; break;}case 10:{gmloffsetx=1;gmloffsety=2;_inst.gmlheight=0;break;}};};};gmloffsetx=yyftime(gmloffsetx,yyInst(_inst,_other,_inst.gmlholder).image_xscale);gmloffsety=yyftime(gmloffsety,yyInst(_inst,_other,_inst.gmlholder).image_yscale);var gmldist=distance_to_point(_inst,yyInst(_inst,_other,_inst.gmlholder).x,yyInst(_inst,_other,_inst.gmlholder).y);if((yyGetBool(yyfless(gmldist,3)))&&(yyGetBool(gml_Script_s_sprite_holding_ball(_inst,_other,yyInst(_inst,_other,_inst.gmlholder).sprite_index)))){{_inst.x=yyfplus(__yy_gml_errCheck(yyInst(_inst, _other,_inst.gmlholder).x),__yy_gml_errCheck(gmloffsetx));_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlholder).y),__yy_gml_errCheck(gmloffsety));};}else {{_inst.x=lerp(_inst.x,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlholder).x),__yy_gml_errCheck(gmloffsetx)),0.2);_inst.y=lerp(_inst.y,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlholder).y),__yy_gml_errCheck(gmloffsety)),0.2);};};}}function gml_GlobalScript_s_is_ball_dead(_inst,_other){(_inst.gmls_is_ball_dead=__yy_method(_inst, gml_Script_s_is_ball_dead));}function gml_Script_s_is_ball_dead(_inst,_other){{{var __yy__v1093=GetWithArray(global.gmlmaster_ball);for(var __yy__v1094 in __yy__v1093){if(!__yy__v1093.hasOwnProperty(__yy__v1094))continue;var __yy__v1095=__yy__v1093[__yy__v1094];{__yy__v1095.gmlis_dead=false;var ___sw960___=__yy__v1095.gmlstate;var ___swc961___=-1;if(yyCompareVal(___sw960___,9,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw960___,10,g_GMLMathEpsilon,false)==0){___swc961___=0;}else if(yyCompareVal(___sw960___, 18,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw960___,19,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw960___,0,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw960___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw960___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw960___,5,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw960___,13,g_GMLMathEpsilon,false)==0){___swc961___=1;}else if(yyCompareVal(___sw960___,4,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw960___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw960___, 7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw960___,8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw960___,11,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw960___,12,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw960___,14,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw960___,15,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw960___,16,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw960___,17,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw960___,20,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw960___, 21,g_GMLMathEpsilon,false)==0){___swc961___=2;}switch(___swc961___){case 0:{if(yyGetBool(__yy__v1095.gmlholder)){{var ___sw962___=yyInst(_inst,_other,__yy__v1095.gmlholder).gmlfacing;var ___swc963___=-1;if(yyCompareVal(___sw962___,(-1),g_GMLMathEpsilon,false)==0){___swc963___=0;}else if(yyCompareVal(___sw962___,1,g_GMLMathEpsilon,false)==0){___swc963___=1;}switch(___swc963___){case 0:{if(yyfgreaterequal(__yy__v1095.x,2300)){__yy__v1095.gmlis_dead=true;};return __yy__v1095.gmlis_dead;break;}case 1:{if(yyflessequal(__yy__v1095.x, 300)){__yy__v1095.gmlis_dead=true;};return __yy__v1095.gmlis_dead;break;}};};};}case 1:{__yy__v1095.gmlis_dead=false;break;}case 2:{__yy__v1095.gmlis_dead=true;break;}};return __yy__v1095.gmlis_dead;}}};}}function gml_GlobalScript_s_check_ball_position(_inst,_other){(_inst.gmls_check_ball_position=__yy_method(_inst,gml_Script_s_check_ball_position));}function gml_Script_s_check_ball_position(_inst,_other){{if(!yyGetBool(gml_Script_s_is_ball_dead(_inst,_other))){{var gmlcont=YYASSET_REF(0x00000069);var gmlby=_inst.y; if(yyGetBool(instance_exists(_inst.gmlholder))){{gmlby=yyInst(_inst,_other,_inst.gmlholder).y;};};if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlcont).gmlkicking,1)))||(yyGetBool(yyfequal(yyInst(_inst,_other,gmlcont).gmlkicking,2)))){{if((yyGetBool(yyfgreater(_inst.gmlbouncecount,0)))||(yyGetBool(yyfless(_inst.y,132)))||(yyGetBool(yyfgreater(_inst.y,468)))){{_inst.gmlstate=15;};}else {if((yyGetBool(yyfless(_inst.x,100)))||(yyGetBool(yyfgreater(_inst.x,2500)))){{var gmlglx=100;if(yyfgreater(_inst.x, 1300)){gmlglx=2500;};var gmlipoint=gml_Script_s_lines_intersect(_inst,_other,_inst.gmllast_x,_inst.gmllast_y,_inst.x,_inst.y,gmlglx,270,gmlglx,336);gml_Script_slog(_inst,_other,yyfplus("intercept = ",__yy_gml_errCheck(string(yyInst(_inst,_other,gmlipoint).gmlintercept))));var gmltempx=_inst.x;var gmltxtx=yyfminus(__yy_gml_errCheck(_inst.x),80);if(yyfequal(yyInst(_inst,_other,gmlcont).gmldrivedir,(-1))){gmltxtx=yyfplus(__yy_gml_errCheck(_inst.x),80);};if(yyGetBool(yyInst(_inst,_other,gmlipoint).gmlintercept)){ {if(yyfless(_inst.gmlheight,60)){{_inst.x=gmltxtx;gml_Script_s_fieldtxt(_inst,_other,yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"match_TooLow")),"!"));_inst.x=gmltempx;if(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice)){gml_Script_s_sound_audience_dis(_inst,_other);};_inst.gmlstate=15;return;};}else {if(yyfless(_inst.gmlheight,140)){{if((yyGetBool(yyfless(yyInst(_inst,_other,gmlipoint).gmlintercept_CD,0.1)))||(yyGetBool(yyfgreater(yyInst(_inst,_other,gmlipoint).gmlintercept_CD, 0.9)))){{global.gmlreplay_do=true;_inst.x=gmltxtx;gml_Script_s_fieldtxt(_inst,_other,yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"match_Doink")),"!"));_inst.x=gmltempx;gml_Script_s_sound_post(_inst,_other);if(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice)){gml_Script_s_sound_audience_dis(_inst,_other);};_inst.gmlstate=15;_inst.gmldirec=yyfplus(_inst.gmldirec,yyfplus(180,__yy_gml_errCheck(irandom_range((-35),35))));_inst.gmlvelocity=yyftime(_inst.gmlvelocity, 0.1);_inst.gmlroll=yyftime(_inst.gmlroll,2);_inst.x=_inst.gmllast_x;_inst.y=_inst.gmllast_y;return;};}else {if((yyGetBool(yyfless(yyInst(_inst,_other,gmlipoint).gmlintercept_CD,0.2)))||(yyGetBool(yyfgreater(yyInst(_inst,_other,gmlipoint).gmlintercept_CD,0.8)))){{global.gmlreplay_do=true;_inst.x=gmltxtx;gml_Script_s_fieldtxt(_inst,_other,yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"match_Doink")),"!"));_inst.x=gmltempx;gml_Script_s_complete_achievement(_inst,_other,"ACH_DOINK");gml_Script_s_sound_post(_inst, _other);{var __yy__v1096=GetWithArray(YYASSET_REF(0x00000076));for(var __yy__v1097 in __yy__v1096){if(!__yy__v1096.hasOwnProperty(__yy__v1097))continue;var __yy__v1098=__yy__v1096[__yy__v1097];__yy__v1098.gmlwind_force=0;}};var gmlay=468;if(yyfless(_inst.y,300)){gmlay=132;};gml_Script_slog(_inst,_other,string(_inst.gmldirec));var ___sw970___=yyInst(_inst,_other,gmlcont).gmldrivedir;var ___swc971___=-1;if(yyCompareVal(___sw970___,(-1),g_GMLMathEpsilon,false)==0){___swc971___=0;}else if(yyCompareVal(___sw970___, 1,g_GMLMathEpsilon,false)==0){___swc971___=1;}switch(___swc971___){case 0:{_inst.gmldirec=point_direction(_inst.x,_inst.y,yyfminus(__yy_gml_errCheck(gmlglx),210),gmlay);break;}case 1:{_inst.gmldirec=point_direction(_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(gmlglx),210),gmlay);break;}};gml_Script_slog(_inst,_other,string(_inst.gmldirec));_inst.gmldirec=yyfplus(_inst.gmldirec,irandom_range((-5),5));_inst.gmlvelocity=yyftime(_inst.gmlvelocity,0.25);_inst.gmlroll=yyftime(_inst.gmlroll,2);_inst.x=_inst.gmllast_x; _inst.y=_inst.gmllast_y;};};};};};};if(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice)){{gml_Script_s_sound_audience_fg(_inst,_other);var gmlkicker=gml_Script_s_get_kicker(_inst,_other);var ___sw972___=yyInst(_inst,_other,gmlcont).gmlkicking;var ___swc973___=-1;if(yyCompareVal(___sw972___,1,g_GMLMathEpsilon,false)==0){___swc973___=0;}else if(yyCompareVal(___sw972___,2,g_GMLMathEpsilon,false)==0){___swc973___=1;}switch(___swc973___){case 0:{if((yyGetBool(gmlkicker))&&(yyGetBool(yyInst(_inst, _other,gmlkicker).gmlpmap))){{ds_map_set(yyInst(_inst,_other,gmlkicker).gmlpmap,"stat_complete",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,gmlkicker).gmlpmap,"stat_complete")),1));ds_map_set(yyInst(_inst,_other,gmlkicker).gmlpmap,"stat_yards",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,gmlkicker).gmlpmap,"stat_yards")),__yy_gml_errCheck(yyInst(_inst,_other,gmlcont).gmlkick_dist)));if(yyfgreater(yyInst(_inst,_other,gmlcont).gmlkick_dist,ds_map_find_value(yyInst(_inst, _other,gmlkicker).gmlpmap,"stat_longest"))){ds_map_set(yyInst(_inst,_other,gmlkicker).gmlpmap,"stat_longest",yyInst(_inst,_other,gmlcont).gmlkick_dist);};};};gml_Script_s_complete_achievement(_inst,_other,"ACH_FIELDGOAL");if(yyfgreaterequal(yyInst(_inst,_other,gmlcont).gmlkick_dist,25)){gml_Script_s_complete_achievement(_inst,_other,"ACH_FIELDGOAL25");};if(yyfgreaterequal(yyInst(_inst,_other,gmlcont).gmlkick_dist,50)){gml_Script_s_complete_achievement(_inst,_other,"ACH_FIELDGOAL50");};if(yyfgreaterequal(yyInst(_inst, _other,gmlcont).gmlkick_dist,60)){gml_Script_s_complete_achievement(_inst,_other,"ACH_FIELDGOAL60");};gml_Script_s_check_record(_inst,_other,"ui_LongFG",yyInst(_inst,_other,gmlcont).gmlkick_dist,gml_Script_s_get_kicker_name(_inst,_other),"",gml_Script_s_get_opponent_team_tla(_inst,_other));if(!yyGetBool(gml_Script_s_simming_action(_inst,_other))){{gml_Script_s_sound_brass_loop(_inst,_other,1);};};break;}case 1:{if((yyGetBool(gmlkicker))&&(yyGetBool(yyInst(_inst,_other,gmlkicker).gmlpmap))){ds_map_set(yyInst(_inst, _other,gmlkicker).gmlpmap,"stat_complete_XP",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,gmlkicker).gmlpmap,"stat_complete_XP")),1));};gml_Script_s_complete_achievement(_inst,_other,"ACH_POINTAFTER1");if(!yyGetBool(gml_Script_s_simming_action(_inst,_other))){{gml_Script_s_sound_brass_loop(_inst,_other,1);};};break;}};};};if(yyfgreaterequal(yyInst(_inst,_other,gmlcont).gmlkick_dist,40)){global.gmlreplay_do=true;};yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlscored_by=yyInst(_inst, _other,YYASSET_REF(0x00000069)).gmlpossession;_inst.gmlstate=14;_inst.gmlxdead=yyInst(_inst,_other,gmlipoint).gmlpx;_inst.gmlydead=yyInst(_inst,_other,gmlipoint).gmlpy;return;};};if(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice)){gml_Script_s_sound_audience_dis(_inst,_other);};_inst.gmlstate=15;};};};};}else {if(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,false))){{if((yyGetBool(yyfless(gmlby,132)))||(yyGetBool(yyfgreater(gmlby,468)))){{if((yyGetBool(yyfgreater(_inst.x, 300)))&&(yyGetBool(yyfless(_inst.x,2300)))){{_inst.gmlstate=8;_inst.gmlydead=round(_inst.y);_inst.gmlxdead=round(_inst.x);yyInst(_inst,_other,gmlcont).gmly_down=gmlby;};}else {{gml_Script_slog(_inst,_other,"BALL_TOUCHBACK 1");_inst.gmlstate=20;_inst.gmlydead=round(_inst.y);_inst.gmlxdead=round(_inst.x);yyInst(_inst,_other,gmlcont).gmly_down=gmlby;};};};}else {if((yyGetBool(yyfless(_inst.x,100)))||(yyGetBool(yyfgreater(_inst.x,2500)))){{gml_Script_slog(_inst,_other,"BALL_TOUCHBACK 2");_inst.gmlstate=20; _inst.gmlydead=round(_inst.y);_inst.gmlxdead=round(_inst.x);yyInst(_inst,_other,gmlcont).gmly_down=gmlby;};};};};}else {if((yyGetBool((yyGetBool(yyfless(_inst.x,300)))||(yyGetBool(yyfgreater(_inst.x,2300)))))&&(yyGetBool(_inst.gmlholder))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,_inst.gmlholder).gmlgoaldist,1000)))&&(yyGetBool((yyGetBool(yyfless(gmlby,132)))||(yyGetBool(yyfgreater(gmlby,468)))||(yyGetBool(yyfless(_inst.x,100)))||(yyGetBool(yyfgreater(_inst.x,2500)))))){{if(yyGetBool(gml_Script_s_can_touchback(_inst, _other))){{gml_Script_slog(_inst,_other,"BALL_TOUCHBACK 3");_inst.gmlstate=20;};}else {_inst.gmlstate=12;};_inst.gmlydead=round(_inst.y);_inst.gmlxdead=round(_inst.x);yyInst(_inst,_other,gmlcont).gmly_down=gmlby;};}else {if((yyGetBool(yyfless(gmlby,132)))||(yyGetBool(yyfgreater(gmlby,468)))){{if((yyGetBool((yyGetBool(yyfless(yyInst(_inst,_other,gmlcont).gmldown,5)))||(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,true)))))&&(yyGetBool((yyGetBool(_inst.gmlholder))||(yyGetBool(yyfequal(_inst.gmlstate, 13)))))){{_inst.gmlstate=8;yyInst(_inst,_other,gmlcont).gmly_down=gmlby;gml_Script_s_update_yard_gain(_inst,_other);};}else {{_inst.gmlstate=7;gml_Script_s_sound_audience_inc(_inst,_other);};};};}else {if((yyGetBool(yyfless(_inst.x,100)))||(yyGetBool(yyfgreater(_inst.x,2500)))){{_inst.gmlstate=7;gml_Script_s_sound_audience_inc(_inst,_other);};}else {if(yyGetBool(_inst.gmlholder)){{if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlcont).gmldrivedir,(-1))))&&(yyGetBool(yyfgreater(_inst.x,1300)))&&(yyGetBool(yyfequal(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlgamepractice,2)))){_inst.gmlstate=17;}else {if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlcont).gmldrivedir,1)))&&(yyGetBool(yyfless(_inst.x,1300)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice,2)))){_inst.gmlstate=17;}else {if((yyGetBool((yyGetBool(yyfgreater(_inst.x,2300)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,_inst.gmlholder).gmlfacing,1)))))||(yyGetBool((yyGetBool(yyfless(_inst.x,300)))&&(yyGetBool(yyfequal(yyInst(_inst, _other,_inst.gmlholder).gmlfacing,(-1))))))){{_inst.gmlstate=6;yyInst(_inst,_other,gmlcont).gmly_down=gmlby;yyInst(_inst,_other,gmlcont).gmltd_time=g_pBuiltIn.get_current_time();if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice,2)){{if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpractice_success,0)){{yyInst(_inst,_other,gmlcont).gmltap_msg="";_inst.gmlstate=16;};}else {{yyInst(_inst,_other,gmlcont).gmltap_msg="";_inst.gmlstate=17;};};};}else {if(yyGetBool(yyInst(_inst, _other,_inst.gmlholder).gmloffense)){{yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlscored_by=yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpossession;if((yyGetBool(yyfless(yyInst(_inst,_other,gmlcont).gmldown,6)))||(yyGetBool(yyfequal(yyInst(_inst,_other,gmlcont).gmldown,99)))){{yyInst(_inst,_other,gmlcont).gmlscorer=yyInst(_inst,_other,_inst.gmlholder).gmlpos_name2;gml_Script_s_complete_achievement(_inst,_other,"ACH_TOUCHDOWN1");(g_yyPrePostObject__=yyInst(_inst,_other,gmlcont).gmltouchdowns, yyInst(_inst,_other,gmlcont).gmltouchdowns=(g_yyPrePostObject__ instanceof Long?yyInst(_inst,_other,gmlcont).gmltouchdowns.add(1):++yyInst(_inst,_other,gmlcont).gmltouchdowns),g_yyPrePostObject__);if(yyfequal(yyInst(_inst,_other,gmlcont).gmltouchdowns,3)){gml_Script_s_complete_achievement(_inst,_other,"ACH_TOUCHDOWN3");};if(yyfequal(yyInst(_inst,_other,gmlcont).gmltouchdowns,5)){gml_Script_s_complete_achievement(_inst,_other,"ACH_TOUCHDOWN5");};var gmlcount=gml_Script_s_count_achievement(_inst,_other, "ACH_TOUCHDOWN1");if(yyfgreaterequal(gmlcount,50)){gml_Script_s_complete_achievement(_inst,_other,"ACH_CAREER_TD50");};if(yyfgreaterequal(gmlcount,100)){gml_Script_s_complete_achievement(_inst,_other,"ACH_CAREER_TD100");};if(yyfgreaterequal(gmlcount,250)){gml_Script_s_complete_achievement(_inst,_other,"ACH_CAREER_TD250");};if(yyfgreaterequal(gmlcount,500)){gml_Script_s_complete_achievement(_inst,_other,"ACH_CAREER_TD500");};};}else {{yyInst(_inst,_other,gmlcont).gmlscorer=yyInst(_inst,_other,_inst.gmlholder).gmlpos_name2; gml_Script_s_complete_achievement(_inst,_other,"ACH_POINTAFTER2");};};gml_Script_s_update_yard_gain(_inst,_other);gml_Script_s_sound_audience_fg(_inst,_other);if(!yyGetBool(gml_Script_s_simming_action(_inst,_other))){{gml_Script_s_sound_brass_loop(_inst,_other,1);};};};}else {{yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlscored_by=!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpossession);gml_Script_s_sound_audience_fg(_inst,_other);};};};if(yyGetBool(_inst.gmlholder)){{{var __yy__v1099=GetWithArray(YYASSET_REF(0x0000006B)); for(var __yy__v1100 in __yy__v1099){if(!__yy__v1099.hasOwnProperty(__yy__v1100))continue;var __yy__v1101=__yy__v1099[__yy__v1100];{if((yyGetBool(yyfnotequal(yyInst(_inst,_other,_inst.gmlholder).id,__yy__v1101.id)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,_inst.gmlholder).gmloffense,__yy__v1101.gmloffense)))){{if((yyGetBool(yyfequal(__yy__v1101.gmlanim,2)))||(yyGetBool(yyfequal(__yy__v1101.gmlanim,0)))||(yyGetBool(yyfequal(__yy__v1101.gmlanim,1)))){gml_Script_s_set_anim(__yy__v1101,_inst,17);};};};} }};};};};}else {if(yyfless(_inst.gmlheight,1)){{gml_Script_s_set_ball_down(_inst,_other);};};};};};};}else {{if((yyGetBool(yyfgreater(_inst.gmlbouncecount,0)))&&(yyGetBool(yyfequal(_inst.gmlstate,3)))){{_inst.gmlstate=7;gml_Script_s_sound_audience_inc(_inst,_other);var ___sw974___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice;var ___swc975___=-1;if(yyCompareVal(___sw974___,1,g_GMLMathEpsilon,false)==0){___swc975___=0;}else if(yyCompareVal(___sw974___,2,g_GMLMathEpsilon,false)==0){___swc975___=1; }else if(yyCompareVal(___sw974___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw974___,4,g_GMLMathEpsilon,false)==0){___swc975___=2;}switch(___swc975___){case 0:{break;}case 1:{break;}case 2:{_inst.gmlstate=17;yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpractice_chain_qb_mode=0;gml_Script_s_sound(_inst,_other,YYASSET_REF(0x0200000A));break;}};};};};};};};};};};if(yyGetBool(gml_Script_s_is_ball_dead(_inst,_other))){{gml_Script_s_update_xdead(_inst,_other);};};};};}}function gml_GlobalScript_s_check_ball_collision(_inst, _other){(_inst.gmls_check_ball_collision=__yy_method(_inst,gml_Script_s_check_ball_collision));}function gml_Script_s_check_ball_collision(_inst,_other){{if(yyfgreater(_inst.gmlballdist,20)){return false;};if(yyGetBool(_inst.gmldead)){return;};if(yyGetBool(_inst.gmltackling)){return;};if(yyfequal(_inst.gmlanim,4)){return;};if(yyfequal(_inst.gmlposition,5)){return;};if((yyGetBool(yyfless(_inst.y,132)))||(yyGetBool(yyfgreater(_inst.y,468)))){return;};var gmlball=global.gmlmaster_ball;var gmlcont=YYASSET_REF(0x00000069); if((yyGetBool(yyfequal(_inst.gmlposition,1)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,3)))){return;};if(yyfless(g_pBuiltIn.get_current_time(),yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmlball).gmldropped_time),750))){return;};if(yyGetBool(yyInst(_inst,_other,gmlball).gmlis_dead)){return;};if(yyGetBool(yyInst(_inst,_other,gmlball).gmlholder)){return;};var gmlair_yards=yyfdivide(__yy_gml_errCheck(point_distance(_inst.x,_inst.y,yyInst(_inst,_other,gmlball).gmlxthrow,yyInst(_inst, _other,gmlball).gmlythrow)),20);var gmlthrow_distance=0;gmlthrow_distance=yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyInst(_inst,_other,gmlcont).gmlx_scrim))),20);if(yyfequal(_inst.gmlfacing,(-1))){gmlthrow_distance=yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlcont).gmlx_scrim),__yy_gml_errCheck(_inst.x))),20);};var ___sw980___=_inst.gmlanim;var ___swc981___=-1;if(yyCompareVal(___sw980___,10,g_GMLMathEpsilon,false)==0){___swc981___=0; }else if(yyCompareVal(___sw980___,5,g_GMLMathEpsilon,false)==0){___swc981___=1;}switch(___swc981___){case 0:{if(yyfgreater(yyInst(_inst,_other,gmlball).gmlheight,60)){return false;};break;}case 1:{if(yyfgreater(yyInst(_inst,_other,gmlball).gmlheight,15)){return false;};break;}default :{if(yyfgreater(yyInst(_inst,_other,gmlball).gmlheight,30)){return false;};break;}};var ___sw982___=_inst.gmloffense;var ___swc983___=-1;if(yyCompareVal(___sw982___,true,g_GMLMathEpsilon,false)==0){___swc983___=0;}else if(yyCompareVal(___sw982___, false,g_GMLMathEpsilon,false)==0){___swc983___=1;}switch(___swc983___){case 0:{if(yyfgreater(distance_to_point(_inst,yyInst(_inst,_other,YYASSET_REF(0x00000070)).gmlbounce_x,yyInst(_inst,_other,YYASSET_REF(0x00000070)).gmlbounce_y),100)){return false;};if(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,false))){{gml_Script_s_sound_bounce(_inst,_other);gml_Script_s_receive_ball(_inst,_other);yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlkicking=0;yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpossession=!yyGetBool(yyInst(_inst, _other,YYASSET_REF(0x00000069)).gmlpossession);yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim=clamp(yyInst(_inst,_other,gmlball).x,300,2300);};}else {if(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,13)){{yyInst(_inst,_other,gmlball).gmlholder=_inst.id;yyInst(_inst,_other,gmlball).gmlstate=5;gml_Script_s_fieldtxt(_inst,_other,yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"match_Recovered")),"!"));if(yyfnotequal(_inst.gmlanim,5)){gml_Script_s_set_anim(_inst,_other,5);};gml_Script_s_sound_bounce(_inst, _other);};}else {if((yyGetBool(yyflessequal(gmlthrow_distance,0)))||(yyGetBool(!yyGetBool(gml_Script_s_check_tipped(_inst,_other))))){{var gmlcatch_radius=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldifficulty),5)),15);if((yyGetBool(yyfgreaterequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_difficulty,3)))&&(yyGetBool(_inst.gmlpmap))){gmlcatch_radius=yyfdivide(__yy_gml_errCheck(gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"skill")), 11);};var gmlcdif=lerp(0.75,1,gmlcatch_radius);if(yyfgreater(_inst.gmlballdist,yyftime(20,__yy_gml_errCheck(gmlcdif)))){{gml_Script_slog(_inst,_other,"catch radius fail");return false;};};gml_Script_s_sound_bounce(_inst,_other);gml_Script_s_receive_ball(_inst,_other);if((yyGetBool(!yyGetBool(yyInst(_inst,_other,gmlcont).gmlrunning_play)))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice)))&&(yyGetBool(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldown,5)))&&(yyGetBool(!yyGetBool(yyInst(_inst, _other,YYASSET_REF(0x00000069)).gmldrop_happened)))){{{var __yy__v1102=GetWithArray(YYASSET_REF(0x0000006C));for(var __yy__v1103 in __yy__v1102){if(!__yy__v1102.hasOwnProperty(__yy__v1103))continue;var __yy__v1104=__yy__v1102[__yy__v1103];if((yyGetBool(__yy__v1104.gmlpmap))&&(yyGetBool((yyGetBool(yyfequal(__yy__v1104.gmlposition,1)))||(yyGetBool(yyfequal(__yy__v1104.gmlposition,5)))))){ds_map_set_post(__yy__v1104.gmlpmap,"stat_complete",yyfplus(__yy_gml_errCheck(ds_map_find_value(__yy__v1104.gmlpmap, "stat_complete")),1));};}};};};if((yyGetBool(!yyGetBool(yyInst(_inst,_other,gmlcont).gmlrunning_play)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,global.gmlmaster_ball).gmldropped_time,0)))){{gml_Script_s_complete_achievement(_inst,_other,"ACH_PASS");if(yyfgreater(gmlthrow_distance,0)){{gml_Script_s_fieldtxt(_inst,_other,yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"match_Caught")),"!"));gml_Script_s_check_record(_inst,_other,"ui_LongPassAir",gmlair_yards,gml_Script_s_get_qb_name(_inst, _other),gml_Script_s_get_holder_name(_inst,_other),gml_Script_s_get_opponent_team_tla(_inst,_other));};};};};};};};};break;}case 1:{var gmlcatch_radius=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldifficulty),5)),15);var gmlcdif=lerp(0.9,0.5,gmlcatch_radius);if(yyfgreaterequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_difficulty,3)){gmlcdif=lerp(0.95,0.8,gmlcatch_radius);};if(yyfgreater(_inst.gmlballdist,yyftime(20,__yy_gml_errCheck(gmlcdif)))){ return false;};if(yyfless(distance_to_point(_inst,yyInst(_inst,_other,gmlball).gmlxthrow,yyInst(_inst,_other,gmlball).gmlythrow),100)){return false;};if(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,false))){{gml_Script_s_sound_bounce(_inst,_other);gml_Script_s_receive_ball(_inst,_other);yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlkicking=0;};}else {if(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,13)){{yyInst(_inst,_other,gmlball).gmlholder=_inst.id;yyInst(_inst,_other,gmlball).gmlstate=10;gml_Script_s_create_match_message(_inst, _other,10);if(yyfnotequal(_inst.gmlanim,5)){gml_Script_s_set_anim(_inst,_other,5);};gml_Script_s_sound_bounce(_inst,_other);gml_Script_s_sound_audience_dis(_inst,_other);};}else {if(!yyGetBool(gml_Script_s_check_tipped(_inst,_other))){{gml_Script_s_sound_bounce(_inst,_other);gml_Script_s_receive_ball(_inst,_other);if(yyfequal(yyInst(_inst,_other,global.gmlmaster_ball).gmlfumble_time,0)){{if((yyGetBool((yyGetBool(yyfless(yyInst(_inst,_other,gmlball).x,300)))||(yyGetBool(yyfgreater(yyInst(_inst,_other, gmlball).x,2300)))))&&(yyGetBool(yyfnotequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldown,6)))){{yyInst(_inst,_other,gmlball).gmlstate=21;gml_Script_s_create_match_message(_inst,_other,21);};}else {{yyInst(_inst,_other,gmlball).gmlstate=9;if((yyGetBool(!yyGetBool(yyInst(_inst,_other,gmlcont).gmlrunning_play)))&&(yyGetBool(yyfless(yyInst(_inst,_other,gmlcont).gmldown,5)))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice)))){{var gmlqb=gml_Script_s_get_quarterback(_inst, _other);if((yyGetBool(gmlqb))&&(yyGetBool(yyInst(_inst,_other,gmlqb).gmlpmap))){ds_map_set_post(yyInst(_inst,_other,gmlqb).gmlpmap,"stat_int",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,gmlqb).gmlpmap,"stat_int")),1));};};};gml_Script_s_create_match_message(_inst,_other,9);};};};};gml_Script_s_sound_audience_dis(_inst,_other);};};};};break;}};}}function gml_GlobalScript_s_check_tipped(_inst,_other){(_inst.gmls_check_tipped=__yy_method(_inst,gml_Script_s_check_tipped));}function gml_Script_s_check_tipped(_inst, _other){{if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice)){return false;};if(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,true))){return false;};var ___sw986___=_inst.gmlanim;var ___swc987___=-1;if(yyCompareVal(___sw986___,10,g_GMLMathEpsilon,false)==0){___swc987___=0;}else if(yyCompareVal(___sw986___,5,g_GMLMathEpsilon,false)==0){___swc987___=1;}switch(___swc987___){case 0:{break;}case 1:{return false;break;}default :{var gmllow_catch=lerp(0.5,0.4,yyftime(__yy_gml_errCheck(_inst.gmlskill), 0.1));if(yyfgreaterequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_difficulty,3)){gmllow_catch=lerp(0.55,0.45,yyftime(__yy_gml_errCheck(_inst.gmlskill),0.1));};{var __yy__v1105=GetWithArray(YYASSET_REF(0x00000076));for(var __yy__v1106 in __yy__v1105){if(!__yy__v1105.hasOwnProperty(__yy__v1106))continue;var __yy__v1107=__yy__v1105[__yy__v1106];if(yyfnotequal(__yy__v1107.gmltype,0)){gmllow_catch=yyfplus(gmllow_catch,0.05);};}};var gmlch=30;if(yyGetBool(yyInst(_inst,_other,global.gmlmaster_ball).gmlbullet_throw)){ gmlch=yyfplus(gmlch,5);};if(yyfless(yyInst(_inst,_other,global.gmlmaster_ball).gmlheight,yyftime(__yy_gml_errCheck(gmlch),__yy_gml_errCheck(gmllow_catch)))){{gml_Script_slog(_inst,_other,">>> Tipped: low");gml_Script_s_sound_bounce(_inst,_other);gml_Script_s_drop_ball(_inst,_other,false);return true;};};break;}};if((yyGetBool(_inst.gmloffense))&&(yyGetBool(_inst.gmlintheclear))){return false;};if(!yyGetBool(_inst.gmlnearest_opp)){return false;};var gmloppballdist=yyInst(_inst,_other,_inst.gmlnearest_opp).gmlballdist; if(yyGetBool(_inst.gmloffense)){{if(!yyGetBool(_inst.gmlpmap)){gmloppballdist=yyfminus(gmloppballdist,2);};if(yyfgreater(yyInst(_inst,_other,global.gmlmaster_ball).gmldropped_time,0)){gmloppballdist=yyfplus(gmloppballdist,5);};};}else {{gmloppballdist=yyfminus(gmloppballdist,5);};};if((yyGetBool(yyfless(gmloppballdist,_inst.gmlballdist)))||(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlkicking))){{gml_Script_slog(_inst,_other,">>> Tipped: pressure");gml_Script_s_sound_bounce(_inst,_other); gml_Script_s_drop_ball(_inst,_other,false);return true;};};return false;}}function gml_GlobalScript_s_drop_ball(_inst,_other){(_inst.gmls_drop_ball=__yy_method(_inst,gml_Script_s_drop_ball));}function gml_Script_s_drop_ball(_inst,_other,argument0){{gml_Script_slog(_inst,_other,"s_drop_ball: Dropped!");{var __yy__v1108=GetWithArray(global.gmlmaster_ball);for(var __yy__v1109 in __yy__v1108){if(!__yy__v1108.hasOwnProperty(__yy__v1109))continue;var __yy__v1110=__yy__v1108[__yy__v1109];{__yy__v1110.gmldirec=yyfplus(__yy_gml_errCheck(_inst.gmljdir), __yy_gml_errCheck(irandom_range((-20),20)));__yy__v1110.gmlvelocity=yyfplus(1,__yy_gml_errCheck(random_range(0.1,1)));__yy__v1110.gmlzvel=clamp(random(yyftime(__yy_gml_errCheck(__yy__v1110.gmlheight),0.1)),0.1,2);__yy__v1110.gmlroll=yyfplus(5,__yy_gml_errCheck(irandom(5)));__yy__v1110.gmldropped_time=yyfminus(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),__yy_gml_errCheck(irandom(250)));if(yyGetBool(argument0)){__yy__v1110.gmlfumble_time=g_pBuiltIn.get_current_time();};if((yyGetBool(argument0))&&(yyGetBool(!yyGetBool(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlgamepractice)))&&(yyGetBool(__yy__v1110.gmlholder))&&(yyGetBool(yyInst(_inst,_other,__yy__v1110.gmlholder).gmlpmap))){ds_map_set_post(yyInst(_inst,_other,__yy__v1110.gmlholder).gmlpmap,"stat_fumbles",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,__yy__v1110.gmlholder).gmlpmap,"stat_fumbles")),1));};__yy__v1110.gmlstate=3;__yy__v1110.gmlholder=(-4);if(yyGetBool(argument0)){{gml_Script_s_fieldtxt(__yy__v1110,_inst,yyfplus(__yy_gml_errCheck(gml_Script_s_str(__yy__v1110, _inst,"match_Fumble")),"!"));yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldrop_happened=true;};};}}};}}function gml_GlobalScript_s_check_dummy_collision(_inst,_other){(_inst.gmls_check_dummy_collision=__yy_method(_inst,gml_Script_s_check_dummy_collision));(_inst.gmls_sound_training_success=__yy_method(_inst,gml_Script_s_sound_training_success));}function gml_Script_s_check_dummy_collision(_inst,_other){{if((yyGetBool(yyfless(_inst.gmlheight,24)))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,global.gmlmaster_ball).gmlis_dead)))){ {if(yyfless(distance_to_object(_inst,YYASSET_REF(0x0000006E)),8)){{gml_Script_slog(_inst,_other,yyfplus("bheight:",__yy_gml_errCheck(string(_inst.gmlheight))));gml_Script_s_sound_bounce(_inst,_other);if(yyfgreaterequal(_inst.gmllastheight,22)){{_other.gmlzvel=1;};}else {{_inst.gmldirec=yyfplus(_inst.gmldirec,yyfplus(180,__yy_gml_errCheck(random_range((-30),30))));};};var ___sw990___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice;var ___swc991___=-1;if(yyCompareVal(___sw990___,3,g_GMLMathEpsilon, false)==0||yyCompareVal(___sw990___,4,g_GMLMathEpsilon,false)==0){___swc991___=0;}switch(___swc991___){case 0:{var gmlqb=gml_Script_s_get_quarterback(_inst,_other);var gmlscr=yyfdivide(__yy_gml_errCheck(yyfplus(1,__yy_gml_errCheck(point_distance(_inst.x,_inst.y,yyInst(_inst,_other,gmlqb).x,yyInst(_inst,_other,gmlqb).y)))),20);gmlscr=yyftime(gmlscr,yyfplus(1,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpractice_chain_qb_mode),5))));gmlscr=round(gmlscr); yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpractice_score_qb_mode=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpractice_score_qb_mode,gmlscr);yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpractice_chain_qb_mode=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpractice_chain_qb_mode,1);yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmltap_msg="";_inst.gmlstate=16;gml_Script_s_fieldtxt(_inst,_other,yyfplus("+",__yy_gml_errCheck(string(gmlscr))));gml_Script_s_sound_training_success(_inst, _other,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpractice_chain_qb_mode);gml_Script_slog(_inst,_other,yyfplus("Chain = ",__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpractice_chain_qb_mode))));break;}default :{_inst.gmlstate=17;yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpractice_chain_qb_mode=0;gml_Script_s_sound(_inst,_other,YYASSET_REF(0x0200000A));break;}};};};};};}}function gml_Script_s_sound_training_success(_inst,_other,argument0){{if(!yyGetBool(ds_map_find_value(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))){return;};var gmlsnd=audio_play_sound(YYASSET_REF(0x02000017),1,false);var gmlp=lerp(0.5,1.5,yyfdivide(__yy_gml_errCheck(min(argument0,20)),20));audio_sound_pitch(gmlsnd,gmlp);}}function gml_GlobalScript_s_kick_ball(_inst,_other){(_inst.gmls_kick_ball=__yy_method(_inst,gml_Script_s_kick_ball));}function gml_Script_s_kick_ball(_inst,_other){{if((yyGetBool(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice)))&&(yyGetBool(!yyGetBool(gml_Script_s_is_kickoff(_inst, _other,false))))){{{var __yy__v1111=GetWithArray(_inst.gmlholder);for(var __yy__v1112 in __yy__v1111){if(!__yy__v1111.hasOwnProperty(__yy__v1112))continue;var __yy__v1113=__yy__v1111[__yy__v1112];{if(yyGetBool(__yy__v1113.gmlpmap)){{if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlkicking,1)){ds_map_set(__yy__v1113.gmlpmap,"stat_attempts",yyfplus(__yy_gml_errCheck(ds_map_find_value(__yy__v1113.gmlpmap,"stat_attempts")),1));}else {ds_map_set(__yy__v1113.gmlpmap,"stat_attempts_XP",yyfplus(__yy_gml_errCheck(ds_map_find_value(__yy__v1113.gmlpmap, "stat_attempts_XP")),1));};};};}}};};};{var __yy__v1114=GetWithArray(_inst.gmlholder);for(var __yy__v1115 in __yy__v1114){if(!__yy__v1114.hasOwnProperty(__yy__v1115))continue;var __yy__v1116=__yy__v1114[__yy__v1115];gml_Script_s_set_anim(__yy__v1116,_inst,15);}};if(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,false))){{if(yyfless(_inst.gmlkickpow,15)){{_inst.gmlvelocity=yyftime(_inst.gmlvelocity,1.5);_inst.gmlzvel=yyftime(_inst.gmlzvel,0.5);};}else {{_inst.gmlvelocity=yyftime(_inst.gmlvelocity,0.7); _inst.gmlzvel=yyfplus(_inst.gmlzvel,2.2);};};};}else {{var gmlplacing=false;{var __yy__v1117=GetWithArray(YYASSET_REF(0x0000006C));for(var __yy__v1118 in __yy__v1117){if(!__yy__v1117.hasOwnProperty(__yy__v1118))continue;var __yy__v1119=__yy__v1117[__yy__v1118];if(yyfequal(__yy__v1119.gmlanim,13)){gmlplacing=true;};}};if(!yyGetBool(gmlplacing)){_inst.gmlvelocity=yyftime(_inst.gmlvelocity,random_range(0.4,0.7));};};};_inst.gmlxthrow=_inst.x;_inst.gmlythrow=_inst.y;_inst.gmlstate=3;_inst.gmlroll=yyfplus(9, __yy_gml_errCheck(irandom(9)));_inst.gmlholder=(-4);gml_Script_s_sound_kick(_inst,_other);if((yyGetBool(gml_Script_s_is_kickoff(_inst,_other,false)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlquarter,1)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlminutes,yyfplus(2,__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_matchlength)))))){gml_Script_s_sound_audience_fg(_inst,_other);};if(yyfnotequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmltap_msg, "")){gml_Script_slog(_inst,_other,"s_kick_ball");};yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmltap_msg="";}}function gml_GlobalScript_s_spike_ball(_inst,_other){(_inst.gmls_spike_ball=__yy_method(_inst,gml_Script_s_spike_ball));}function gml_Script_s_spike_ball(_inst,_other){{gml_Script_slog(_inst,_other,"s_spike_ball");{var __yy__v1120=GetWithArray(global.gmlmaster_ball);for(var __yy__v1121 in __yy__v1120){if(!__yy__v1120.hasOwnProperty(__yy__v1121))continue;var __yy__v1122=__yy__v1120[__yy__v1121]; {if(yyGetBool(__yy__v1122.gmlholder)){{__yy__v1122.x=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,__yy__v1122.gmlholder).x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,__yy__v1122.gmlholder).gmlfacing),4)));__yy__v1122.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,__yy__v1122.gmlholder).y),2);__yy__v1122.gmldirec=yyInst(_inst,_other,__yy__v1122.gmlholder).gmljdir;};};__yy__v1122.gmlheight=1;__yy__v1122.gmlvelocity=4;__yy__v1122.gmlzvel=(-5);__yy__v1122.gmlholder=(-4);gml_Script_s_sound_bounce(__yy__v1122, _inst);}}};}}function gml_GlobalScript_s_college_gui_panels(_inst,_other){(_inst.gmls_co_subdivision_create=__yy_method(_inst,gml_Script_s_co_subdivision_create));(_inst.gmls_co_subdivision_init=__yy_method(_inst,gml_Script_s_co_subdivision_init));(_inst.gmls_co_subdivision_hidden_draw_gui=__yy_method(_inst,gml_Script_s_co_subdivision_hidden_draw_gui));(_inst.gmls_co_division_create=__yy_method(_inst,gml_Script_s_co_division_create));(_inst.gmls_co_division_init=__yy_method(_inst,gml_Script_s_co_division_init)); (_inst.gmls_co_division_step=__yy_method(_inst,gml_Script_s_co_division_step));(_inst.gmls_fit_string=__yy_method(_inst,gml_Script_s_fit_string));(_inst.gmls_co_division_draw_gui=__yy_method(_inst,gml_Script_s_co_division_draw_gui));}function gml_Script____struct___143_s_co_subdivision_create_gml_GlobalScript_s_college_gui_panels(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___143_s_co_subdivision_create_gml_GlobalScript_s_college_gui_panels";}if(gml_Script____struct___143_s_co_subdivision_create_gml_GlobalScript_s_college_gui_panels.prototype.__type===undefined){ gml_Script____struct___143_s_co_subdivision_create_gml_GlobalScript_s_college_gui_panels.prototype.__type="gml_Script____struct___143_s_co_subdivision_create_gml_GlobalScript_s_college_gui_panels";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___143_s_co_subdivision_create_gml_GlobalScript_s_college_gui_panels.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.sprite_index=YYASSET_REF(0x01000131);_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(0), $$args)];_inst.image_yscale=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmltitle=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.gmlaction_create=$$args[__yy_gml_array_check_index(2+(3),$$args)];_inst.gmlaction_draw_gui=$$args[__yy_gml_array_check_index(2+(4),$$args)];_inst.gml_lines=$$args[__yy_gml_array_check_index(2+(5),$$args)];_inst.gml_line_height=12.5;_inst.gml_columns=1;_inst.gml_mode_label=false;_inst.gmlconference=$$args[__yy_gml_array_check_index(2+(6),$$args)];_inst.gmlmode=2; _inst.gml_tier=$$args[__yy_gml_array_check_index(2+(7),$$args)];}}}}function gml_Script_s_co_subdivision_create(_inst,_other,argument0,argument1,argument2){{if(yyfequal(argument2,_inst.undefined)){argument2=14;};}{instance_create_layer(yyInst(_inst,_other,argument0).x,yyInst(_inst,_other,argument0).y,yyInst(_inst,_other,argument0).layer,YYASSET_REF(0x0000001D),__yy_gml_object_create(_inst,(_inst.gml___struct___143=__yy_method(_inst,gml_Script____struct___143_s_co_subdivision_create_gml_GlobalScript_s_college_gui_panels)), yyfdivide(__yy_gml_errCheck(yyInst(_inst,_other,argument0).gmlw),16),yyfdivide(__yy_gml_errCheck(yyInst(_inst,_other,argument0).gmlh),16),yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_my_subdivision_string(_inst,_other,argument1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Rankings"))),kgml_Script_s_co_subdivision_init,kgml_Script_s_co_division_draw_gui,argument2,argument1,yyInst(_inst,_other,argument1).gmltier));}}function gml_Script_s_co_subdivision_init(_inst,_other){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst, _other))){return;};gml_Script_slogf(_inst,_other,"College populate subdivision: %1 (%2)",_inst.gmltitle,_inst.gml_tier);gml_Script_s_set_var_if_missing(_inst,_other,"_show_prev_rank",false);if(yyGetBool(gml_Script_s_is_preseason_for_ranking(_inst,_other))){{_inst.gmlaction_draw_gui=kgml_Script_s_co_subdivision_hidden_draw_gui;};};_inst.gmlalpha=1;var gmlmyid=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id;if(yyGetBool(gml_Script_s_season_competitions_done(_inst,_other))){{_inst.gml_teams=__yy_gml_array_create([]); array_copy(_inst.gml_teams,0,yyInst(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsubdiv_data[__yy_gml_array_check_index(_inst.gml_tier,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsubdiv_data)]).gmlrankings,0,array_length(yyInst(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsubdiv_data[__yy_gml_array_check_index(_inst.gml_tier,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsubdiv_data)]).gmlrankings));array_sort(_inst.gml_teams,kgml_Script_s_co_teams_data_sort_rank); gml_Script_s_team_data_array_add_formatted_data(_inst,_other,_inst.gml_teams,gmlmyid,true);_inst.gml_show_prev_rank=(yyGetBool(true))&&(yyGetBool(yyfnotequal(g_pBuiltIn.get_current_room(),YYASSET_REF(0x03000018))));};}else {{gml_Script_s_subdivision_update_rankings(_inst,_other,_inst.gml_tier,yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,1));_inst.gml_teams=yyInst(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsubdiv_data[__yy_gml_array_check_index(_inst.gml_tier,yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlsubdiv_data)]).gmlrankings;gml_Script_s_team_data_array_add_formatted_data(_inst,_other,_inst.gml_teams,gmlmyid);};};_inst.gml_my_team_data=gml_Script_s_get_struct_in_array_by_uid(_inst,_other,_inst.gml_teams,gmlmyid);_inst.gml_my_place=array_get_index(_inst.gml_teams,_inst.gml_my_team_data);_inst.gml_conf_stats=true;if(yyGetBool(_inst.gml_my_team_data)){yyInst(_inst,_other,_inst.gml_my_team_data).gmltxt_col=global.gmlc_primary;};if(yyfequal(_inst.gml_tier,1)){ _inst.gml_highlight_playoffs=true;};_inst.gml_split_view=yyfgreater(_inst.gml_my_place,yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.gml_lines),__yy_gml_errCheck(_inst.gml_columns))),1));gml_Script_s_panel_scroll_init(_inst,_other,yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(array_length(_inst.gml_teams)),1)),__yy_gml_errCheck(_inst.gml_line_height))),4));}}function gml_Script_s_co_subdivision_hidden_draw_gui(_inst,_other){{draw_sprite_ext(_inst,_inst.sprite_index, _inst.image_index,_inst.x,_inst.y,_inst.image_xscale,_inst.image_yscale,0,16777215,1);draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);gml_Script_draw_hd_text(_inst,_other,240,yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_height),2))),gml_Script_s_str_u(_inst,_other,"msg_PreSeasonRankings"));}}function gml_Script_s_co_division_create(_inst,_other,argument0,argument1,argument2,argument3,argument4){{if(yyfequal(argument3,_inst.undefined)){argument3=4; };if(yyfequal(argument4,_inst.undefined)){argument4=1;};}{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){return;};{var __yy__v1123=GetWithArray(argument0);for(var __yy__v1124 in __yy__v1123){if(!__yy__v1123.hasOwnProperty(__yy__v1124))continue;var __yy__v1125=__yy__v1123[__yy__v1124];{__yy__v1125.gml_conference=argument1;__yy__v1125.gml_division=argument2;__yy__v1125.gml_lines=argument3;__yy__v1125.gml_columns=argument4;__yy__v1125.gmlmode=0;gml_Script_s_co_division_init(__yy__v1125,_inst);}}} ;}}function gml_Script_s_co_division_init(_inst,_other){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){return;};var gmlmy_id=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id;var gmlmy_conf=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam,"conference");var gmlmy_div=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam,"division");gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("s_co_division_init my_conf: ",__yy_gml_errCheck(string(gmlmy_conf))), " my_div: "),__yy_gml_errCheck(string(gmlmy_div)))," myteam_id: "),__yy_gml_errCheck(string(gmlmy_id))));_inst.gmltitle=gml_Script_s_get_my_conference_division_string(_inst,_other,_inst.gml_conference,_inst.gml_division);gml_Script_slogf(_inst,_other,"College populate division: %1 (%2,%3)",_inst.gmltitle,_inst.gml_conference,_inst.gml_division);_inst.gmlalpha=0.6;if((yyGetBool(yyfequal(_inst.gml_conference,gmlmy_conf)))&&(yyGetBool(yyfequal(_inst.gml_division,gmlmy_div)))){_inst.gmlalpha=1;};_inst.gml_teams=gml_Script_s_get_team_list(_inst, _other,_inst.gml_conference,_inst.gml_division);_inst.gml_teams=gml_Script_s_create_team_data_array(_inst,_other,_inst.gml_teams);gml_Script_s_team_data_array_add_formatted_data(_inst,_other,_inst.gml_teams,gmlmy_id);array_sort(_inst.gml_teams,kgml_Script_s_co_teams_data_sort_pct);_inst.gml_my_team_data=gml_Script_s_get_struct_in_array_by_uid(_inst,_other,_inst.gml_teams,gmlmy_id);_inst.gml_my_place=array_get_index(_inst.gml_teams,_inst.gml_my_team_data);_inst.gml_conf_stats=!yyGetBool(gml_Script_s_is_independent_conference_id(_inst, _other,_inst.gml_conference));if((yyGetBool(!yyGetBool(_inst.gml_conf_stats)))&&(yyGetBool(yyfequal(_inst.gmlmode,0)))){_inst.gmlmode=2;};if(yyGetBool(_inst.gml_my_team_data)){yyInst(_inst,_other,_inst.gml_my_team_data).gmltxt_col=global.gmlc_primary;};_inst.gml_line_height=15.5;_inst.gml_mode_label=true;_inst.gml_split_view=yyfgreater(_inst.gml_my_place,yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.gml_lines),__yy_gml_errCheck(_inst.gml_columns))),1));gml_Script_s_panel_scroll_init(_inst, _other,yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(array_length(_inst.gml_teams)),__yy_gml_errCheck(_inst.gml_line_height))),4));_inst.gml_title_space=yyfminus(yyfminus(yyfminus(yyfminus(yyfminus(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_width),__yy_gml_errCheck(_inst.gml_columns))),16),16),56),__yy_gml_errCheck((yyGetBool(_inst.gml_mode_label)?32:0))),__yy_gml_errCheck((yyGetBool(_inst.gml_scroll)?10:0)));gml_Script_slogf(_inst,_other,"title space: %1",_inst.gml_title_space); _inst.gmltitle=gml_Script_s_fit_string(_inst,_other,_inst.gmltitle,gml_Script_s_get_my_conference_division_string(_inst,_other,_inst.gml_conference,_inst.gml_division,true),_inst.gml_title_space);}}function gml_Script_s_co_division_step(_inst,_other){{gml_Script_s_panel_scroll_step(_inst,_other);}}function gml_Script_s_fit_string(_inst,_other,argument0,argument1,argument2,argument3){{if(yyfequal(argument3,_inst.undefined)){argument3=global.gmlfnt_small_flex;};}{draw_set_font(argument3);if(yyflessequal(gml_Script_string_hd_width(_inst, _other,argument0),argument2)){return argument0;};return argument1;}}function gml_Script_s_co_division_draw_gui(_inst,_other){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){return;};if((yyGetBool(!yyGetBool(variable_instance_exists(_inst.id,"_teams"))))||(yyGetBool(is_undefined(_inst.gml_teams)))){return;};gml_Script_s_set_var_if_missing(_inst,_other,"active",true);gml_Script_s_set_var_if_missing(_inst,_other,"clicked",false);gml_Script_s_set_var_if_missing(_inst,_other,"_show_prev_rank",false); gml_Script_s_set_var_if_missing(_inst,_other,"_debug_rank",false);gml_Script_s_set_var_if_missing(_inst,_other,"_highlight_playoffs",false);var gmlgx=_inst.x;var gmlgy=_inst.y;if((yyGetBool(_inst.gmlclicked))&&(yyGetBool(variable_instance_exists(_inst.id,"onClickAction")))&&(yyGetBool(yyfnotequal(_inst.gmlonClickAction,(-4))))){{gmlgx=yyfminus(gmlgx,2);gmlgy=yyfplus(gmlgy,2);};};if((yyGetBool(!yyGetBool(_inst.gmlclicked)))&&(yyGetBool(variable_instance_exists(_inst.id,"onClickAction")))&&(yyGetBool(yyfnotequal(_inst.gmlonClickAction, (-4))))){draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,yyfminus(__yy_gml_errCheck(gmlgx),2),yyfplus(__yy_gml_errCheck(gmlgy),2),_inst.image_xscale,_inst.image_yscale,0,global.gmlc_shadow,_inst.gmlalpha);};draw_rectangle_color(yyfplus(__yy_gml_errCheck(gmlgx),2),gmlgy,yyfminus(yyfplus(yyfplus(__yy_gml_errCheck(gmlgx),2),__yy_gml_errCheck(_inst.sprite_width)),4),yyfminus(yyfplus(yyfplus(__yy_gml_errCheck(gmlgy),2),__yy_gml_errCheck(_inst.sprite_height)),4),global.gmlc_background,global.gmlc_background, global.gmlc_background,global.gmlc_background,0);draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,gmlgx,gmlgy,_inst.image_xscale,_inst.image_yscale,0,16777215,_inst.gmlalpha);draw_set_font(global.gmlfnt_small_flex);draw_set_halign(0);var gmltx=gmlgx;var gmlty=gmlgy;var gmlsw=yyfplus(2,__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,_inst.gmltitle)));var gmlsh=yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_height(_inst,_other,_inst.gmltitle)),2);var gmlpw=yyfdivide(__yy_gml_errCheck(_inst.sprite_width), __yy_gml_errCheck(_inst.gml_columns));var gmltb=__yy_gml_array_create([gmlgx,yyfplus(__yy_gml_errCheck(gmlgx),__yy_gml_errCheck(gmlpw))]);gmltx=yyfplus(gmltx,16);draw_set_alpha(_inst.gmlalpha);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(_inst.gmltitle),true);var gmlc=0;for(;yyfless(gmlc,_inst.gml_columns);(g_yyPrePostObject__=gmlc,gmlc=(g_yyPrePostObject__ instanceof Long?gmlc.add(1):++gmlc),g_yyPrePostObject__)){{draw_set_halign(1);gmltx=yyfminus(yyfplus(__yy_gml_errCheck(gmltb[__yy_gml_array_check_index(gmlc, gmltb)]),__yy_gml_errCheck(gmlpw)),__yy_gml_errCheck((yyGetBool(_inst.gml_scroll)?66:56)));gmlty=gmlgy;var ___sw996___=_inst.gmlmode;var ___swc997___=-1;if(yyCompareVal(___sw996___,1,g_GMLMathEpsilon,false)==0){___swc997___=0;}else if(yyCompareVal(___sw996___,3,g_GMLMathEpsilon,false)==0){___swc997___=1;}else if(yyCompareVal(___sw996___,0,g_GMLMathEpsilon,false)==0){___swc997___=2;}else if(yyCompareVal(___sw996___,2,g_GMLMathEpsilon,false)==0){___swc997___=3;}else if(yyCompareVal(___sw996___,4,g_GMLMathEpsilon, false)==0){___swc997___=4;}switch(___swc997___){case 0:{if(yyGetBool(_inst.gml_mode_label)){gml_Script_draw_hd_text(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),32),gmlty,string_upper(gml_Script_s_str(_inst,_other,"tla_Conference")),true);};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(gml_Script_s_str(_inst,_other,"tla_Percentage")),true);gmltx=yyfplus(gmltx,35);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(gml_Script_s_str(_inst,_other,"tla_NetPoints")),true);break; }case 1:{if(yyGetBool(_inst.gml_mode_label)){gml_Script_draw_hd_text(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),32),gmlty,string_upper(gml_Script_s_str(_inst,_other,"tla_Overall")),true);};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(gml_Script_s_str(_inst,_other,"tla_Percentage")),true);gmltx=yyfplus(gmltx,35);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(gml_Script_s_str(_inst,_other,"tla_NetPoints")),true);break;}case 2:{if(yyGetBool(_inst.gml_mode_label)){gml_Script_draw_hd_text(_inst, _other,yyfminus(__yy_gml_errCheck(gmltx),32),gmlty,string_upper(gml_Script_s_str(_inst,_other,"tla_Conference")),true);};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gml_Script_s_str(_inst,_other,"sla_Wins"),true);gmltx=yyfplus(gmltx,35);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gml_Script_s_str(_inst,_other,"sla_Losses"),true);break;}case 3:{if(yyGetBool(_inst.gml_mode_label)){gml_Script_draw_hd_text(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),32),gmlty,string_upper(gml_Script_s_str(_inst, _other,"tla_Overall")),true);};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gml_Script_s_str(_inst,_other,"sla_Wins"),true);gmltx=yyfplus(gmltx,35);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gml_Script_s_str(_inst,_other,"sla_Losses"),true);break;}case 4:{gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(gml_Script_s_str(_inst,_other,"tla_Offense")),true);gmltx=yyfplus(gmltx,35);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(gml_Script_s_str(_inst,_other,"tla_Defense")), true);break;}};if(yyGetBool(_inst.gml_debug_rank)){{draw_set_halign(0);gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmlgx),90),gmlgy,yyfplus(__yy_gml_errCheck(string(gml_Script_s_get_ranking_pos_last_season(_inst,_other))),(yyGetBool(gml_Script_s_is_preseason_for_ranking(_inst,_other))?" - preseason":"")),16777215,16777215,16777215,16777215,0.3);};};if(yyGetBool(_inst.gml_scroll)){_inst.gml_split_view=false;};gmlty=yyfplus(yyfplus(__yy_gml_errCheck(gmlgy),16),__yy_gml_errCheck(_inst.gml_scroll_y)); var gmltd,gmltc;var gmllc=array_length(_inst.gml_teams);var gmlt=yyfplus(0,__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.gml_lines),__yy_gml_errCheck(gmlc))));for(;yyfless(gmlt,((yyGetBool(_inst.gml_split_view))||(yyGetBool(_inst.gml_scroll))?gmllc:min(gmllc,yyftime(__yy_gml_errCheck(_inst.gml_lines),__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(gmlc),1))))));(g_yyPrePostObject__=gmlt,gmlt=(g_yyPrePostObject__ instanceof Long?gmlt.add(1):++gmlt),g_yyPrePostObject__)){{gmltd=_inst.gml_teams[__yy_gml_array_check_index(gmlt, _inst.gml_teams)];gmltc=yyInst(_inst,_other,gmltd).gmltxt_col;if((yyGetBool(_inst.gml_highlight_playoffs))&&(yyGetBool(yyfless(gmlt,4)))){{if(yyfequal(gmltc,16777215)){gmltc=global.gmlc_highlight;};};};gmltx=yyfplus(__yy_gml_errCheck(gmltb[__yy_gml_array_check_index(gmlc,gmltb)]),16);if((yyGetBool(_inst.gml_scroll))||(yyGetBool((yyGetBool(yyfless(gmlt,yyftime(__yy_gml_errCheck(_inst.gml_lines),__yy_gml_errCheck(_inst.gml_columns)))))&&(yyGetBool(!yyGetBool(_inst.gml_split_view)))))||(yyGetBool((yyGetBool(yyfless(gmlt, yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.gml_lines),__yy_gml_errCheck(_inst.gml_columns))),3))))&&(yyGetBool(_inst.gml_split_view))))||(yyGetBool((yyGetBool(yyfequal(_inst.gml_my_place,gmlt)))||(yyGetBool(yyfequal(yyfminus(__yy_gml_errCheck(_inst.gml_my_place),1),gmlt)))))){{if((yyGetBool(_inst.gml_split_view))&&(yyGetBool(yyfequal(yyfminus(__yy_gml_errCheck(_inst.gml_my_place),1),gmlt)))){{draw_rectangle_color(gmltx,yyfminus(__yy_gml_errCheck(gmlty),1),yyfminus(yyfplus(__yy_gml_errCheck(gmltx), __yy_gml_errCheck(_inst.sprite_width)),32),yyfminus(__yy_gml_errCheck(gmlty),0),16777215,16777215,16777215,16777215,0);gmlty=yyfplus(gmlty,_inst.gml_line_height);};};if(yyGetBool(gml_Script_s_panel_scroll_is_inside(_inst,_other,gmlty))){{draw_set_halign(0);if(yyGetBool(_inst.gml_show_prev_rank)){gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,yyInst(_inst,_other,gmltd).gmlrank_s,gmltc,gmltc,gmltc,gmltc,_inst.gmlalpha);};if((yyGetBool(_inst.gml_conf_stats))&&(yyGetBool(!yyGetBool(_inst.gml_show_prev_rank)))){ gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,string(yyfplus(__yy_gml_errCheck(gmlt),1)),gmltc,gmltc,gmltc,gmltc,_inst.gmlalpha);};gml_Script_draw_hd_text_color(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck((yyGetBool(_inst.gml_conf_stats)?24:0))),__yy_gml_errCheck((yyGetBool(_inst.gml_show_prev_rank)?36:0))),gmlty,string_upper(yyInst(_inst,_other,gmltd).gmlname),gmltc,gmltc,gmltc,gmltc,_inst.gmlalpha);gmltx=yyfminus(yyfplus(__yy_gml_errCheck(gmltb[__yy_gml_array_check_index(gmlc, gmltb)]),__yy_gml_errCheck(gmlpw)),__yy_gml_errCheck((yyGetBool(_inst.gml_scroll)?66:56)));draw_set_halign(1);var ___sw998___=_inst.gmlmode;var ___swc999___=-1;if(yyCompareVal(___sw998___,1,g_GMLMathEpsilon,false)==0){___swc999___=0;}else if(yyCompareVal(___sw998___,3,g_GMLMathEpsilon,false)==0){___swc999___=1;}else if(yyCompareVal(___sw998___,0,g_GMLMathEpsilon,false)==0){___swc999___=2;}else if(yyCompareVal(___sw998___,2,g_GMLMathEpsilon,false)==0){___swc999___=3;}else if(yyCompareVal(___sw998___,4, g_GMLMathEpsilon,false)==0){___swc999___=4;}switch(___swc999___){case 0:{gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,(yyGetBool(yyInst(_inst,_other,gmltd).gmlshow_cnf_stats)?yyInst(_inst,_other,gmltd).gmlpct_cnf_s:"-"),gmltc,gmltc,gmltc,gmltc,_inst.gmlalpha);gmltx=yyfplus(gmltx,35);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,(yyGetBool(yyInst(_inst,_other,gmltd).gmlshow_cnf_stats)?yyInst(_inst,_other,gmltd).gmlnet:"-"),gmltc,gmltc,gmltc,gmltc,_inst.gmlalpha);break;}case 1:{gml_Script_draw_hd_text_color(_inst, _other,gmltx,gmlty,yyInst(_inst,_other,gmltd).gmlpct_s,gmltc,gmltc,gmltc,gmltc,_inst.gmlalpha);gmltx=yyfplus(gmltx,35);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,yyInst(_inst,_other,gmltd).gmlnet,gmltc,gmltc,gmltc,gmltc,_inst.gmlalpha);break;}case 2:{gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,(yyGetBool(yyInst(_inst,_other,gmltd).gmlshow_cnf_stats)?yyInst(_inst,_other,gmltd).gmlwins_cnf:"-"),gmltc,gmltc,gmltc,gmltc,_inst.gmlalpha);gmltx=yyfplus(gmltx,35);gml_Script_draw_hd_text_color(_inst, _other,gmltx,gmlty,(yyGetBool(yyInst(_inst,_other,gmltd).gmlshow_cnf_stats)?yyInst(_inst,_other,gmltd).gmllosses_cnf:"-"),gmltc,gmltc,gmltc,gmltc,_inst.gmlalpha);break;}case 3:{gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,yyInst(_inst,_other,gmltd).gmlwins,gmltc,gmltc,gmltc,gmltc,_inst.gmlalpha);gmltx=yyfplus(gmltx,35);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,yyInst(_inst,_other,gmltd).gmllosses,gmltc,gmltc,gmltc,gmltc,_inst.gmlalpha);break;}case 4:{gml_Script_draw_hd_text_color(_inst, _other,gmltx,gmlty,yyInst(_inst,_other,gmltd).gmloffense_s,gmltc,gmltc,gmltc,gmltc,_inst.gmlalpha);gmltx=yyfplus(gmltx,35);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,yyInst(_inst,_other,gmltd).gmldefense_s,gmltc,gmltc,gmltc,gmltc,_inst.gmlalpha);break;}};if(yyGetBool(_inst.gml_debug_rank)){{draw_set_halign(0);gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmlgx),90),gmlty,yyInst(_inst,_other,gmltd).gmlrank_pts_prev,gmltc,gmltc,gmltc,gmltc,0.3);gml_Script_draw_hd_text_color(_inst, _other,yyfminus(__yy_gml_errCheck(gmlgx),60),gmlty,yyInst(_inst,_other,gmltd).gmlrank_pts,gmltc,gmltc,gmltc,gmltc,0.3);gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmlgx),30),gmlty,yyInst(_inst,_other,gmltd).gmlrank_season,gmltc,gmltc,gmltc,gmltc,0.3);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),40),gmlty,ds_map_find_value(yyInst(_inst,_other,gmltd).gmlteam,"reputation"),gmltc,gmltc,gmltc,gmltc,0.3);};};};};gmlty=yyfplus(gmlty,_inst.gml_line_height); };};}};}};gml_Script_s_panel_scroll_draw_gui(_inst,_other);draw_set_alpha(1);}}function gml_GlobalScript_s_set_ball_down(_inst,_other){(_inst.gmls_set_ball_down=__yy_method(_inst,gml_Script_s_set_ball_down));}function gml_Script_s_set_ball_down(_inst,_other){{gml_Script_slog(_inst,_other,"s_set_ball_down");{var __yy__v1126=GetWithArray(global.gmlmaster_ball);for(var __yy__v1127 in __yy__v1126){if(!__yy__v1126.hasOwnProperty(__yy__v1127))continue;var __yy__v1128=__yy__v1126[__yy__v1127];{__yy__v1128.gmlstate=4; yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_down=__yy__v1128.y;if(yyGetBool(__yy__v1128.gmlholder)){yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_down=yyInst(_inst,_other,__yy__v1128.gmlholder).y;};if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice,2)){{if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpractice_success,0)){__yy__v1128.gmlstate=17;}else {__yy__v1128.gmlstate=16;};};}else {if(yyGetBool(__yy__v1128.gmlholder)){{if(yyfequal(yyInst(_inst,_other, __yy__v1128.gmlholder).gmlmin_x,(-1))){yyInst(_inst,_other,__yy__v1128.gmlholder).gmlmin_x=yyInst(_inst,_other,global.gmlmaster_ball).x;};if(yyfequal(yyInst(_inst,_other,__yy__v1128.gmlholder).gmlmax_x,(-1))){yyInst(_inst,_other,__yy__v1128.gmlholder).gmlmax_x=yyInst(_inst,_other,global.gmlmaster_ball).x;};var gmlbx=yyInst(_inst,_other,global.gmlmaster_ball).x;var gmlis_qb=(yyGetBool(__yy__v1128.gmlholder))&&(yyGetBool(yyfequal(yyInst(_inst,_other,__yy__v1128.gmlholder).gmlposition,1)));if((yyGetBool(gmlis_qb))&&(yyGetBool((yyGetBool((yyGetBool(yyfgreater(gmlbx, yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldrivedir,(-1))))))||(yyGetBool((yyGetBool(yyfless(gmlbx,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldrivedir,1)))))))){{__yy__v1128.gmlxdead=gmlbx;__yy__v1128.gmlstate=11;if((yyGetBool(yyInst(_inst,_other,__yy__v1128.gmlholder).gmlpmap))&&(yyGetBool(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldown, 5)))){ds_map_set_post(yyInst(_inst,_other,__yy__v1128.gmlholder).gmlpmap,"stat_sacks",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,__yy__v1128.gmlholder).gmlpmap,"stat_sacks")),1));};{var __yy__v1129=GetWithArray(YYASSET_REF(0x0000006C));for(var __yy__v1130 in __yy__v1129){if(!__yy__v1129.hasOwnProperty(__yy__v1130))continue;var __yy__v1131=__yy__v1129[__yy__v1130];if((yyGetBool(yyfequal(__yy__v1131.gmlposition,5)))&&(yyGetBool(__yy__v1131.gmlpmap))){ds_map_set_post(__yy__v1131.gmlpmap, "stat_sacks",yyfplus(__yy_gml_errCheck(ds_map_find_value(__yy__v1131.gmlpmap,"stat_sacks")),1));};}};gml_Script_slog(__yy__v1128,_inst,yyfplus("SACKED! ball.xdead = ",__yy_gml_errCheck(string(yyInst(_inst,_other,global.gmlmaster_ball).x))));gml_Script_s_sound_audience_dis(__yy__v1128,_inst);};};var ___sw1002___=yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldrivedir;var ___swc1003___=-1;if(yyCompareVal(___sw1002___,(-1),g_GMLMathEpsilon,false)==0){___swc1003___=0;}else if(yyCompareVal(___sw1002___, 1,g_GMLMathEpsilon,false)==0){___swc1003___=1;}switch(___swc1003___){case 0:{if(yyfgreater(__yy__v1128.x,2300)){{if((yyGetBool(gml_Script_s_is_kickoff(__yy__v1128,_inst,true)))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,__yy__v1128.gmlholder).gmllast_tackled)))){{if(yyfgreaterequal(yyInst(_inst,_other,__yy__v1128.gmlholder).gmlmin_x,2300)){{gml_Script_slog(__yy__v1128,_inst,"BALL_TOUCHBACK 4");__yy__v1128.gmlstate=20;};};__yy__v1128.gmlydead=round(__yy__v1128.y);__yy__v1128.gmlxdead=round(__yy__v1128.x); };}else {__yy__v1128.gmlstate=12;};gml_Script_s_sound_audience_dis(__yy__v1128,_inst);return;};};break;}case 1:{if(yyfless(__yy__v1128.x,300)){{if((yyGetBool(gml_Script_s_is_kickoff(__yy__v1128,_inst,true)))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,__yy__v1128.gmlholder).gmllast_tackled)))){{if(yyflessequal(yyInst(_inst,_other,__yy__v1128.gmlholder).gmlmax_x,300)){{gml_Script_slog(__yy__v1128,_inst,"BALL_TOUCHBACK 5");__yy__v1128.gmlstate=20;};};__yy__v1128.gmlydead=round(__yy__v1128.y);__yy__v1128.gmlxdead=round(__yy__v1128.x); };}else {__yy__v1128.gmlstate=12;};gml_Script_s_sound_audience_dis(__yy__v1128,_inst);return;};};break;}};gml_Script_s_update_yard_gain(__yy__v1128,_inst);};};};}}};}}function gml_GlobalScript_s_receive_ball(_inst,_other){(_inst.gmls_receive_ball=__yy_method(_inst,gml_Script_s_receive_ball));}function gml_Script_s_receive_ball(_inst,_other){{gml_Script_slog(_inst,_other,"s_receive_ball");{var __yy__v1132=GetWithArray(global.gmlmaster_ball);for(var __yy__v1133 in __yy__v1132){if(!__yy__v1132.hasOwnProperty(__yy__v1133))continue; var __yy__v1134=__yy__v1132[__yy__v1133];{__yy__v1134.gmlholder=_inst.id;__yy__v1134.gmllast_touched_by=_inst.id;__yy__v1134.gmlstate=5;__yy__v1134.gmlxreceived=__yy__v1134.x;__yy__v1134.gmlyreceived=__yy__v1134.y;}}};if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)){{if(yyGetBool(_inst.gmlrewarded_route)){{gml_Script_s_sound(_inst,_other,YYASSET_REF(0x02000017));if(yyGetBool(_inst.gmlpmap)){{ds_map_set(_inst.gmlpmap,"attitude",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap, "attitude")),1),1,100));gml_Script_s_fieldimg(_inst,_other,YYASSET_REF(0x01000070),0,2);};}else {{var gmlqb=gml_Script_s_get_qb_pmap(_inst,_other);ds_map_set(gmlqb,"xp_gain",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlqb,"xp_gain")),2));gml_Script_s_fieldimg(_inst,_other,YYASSET_REF(0x01000068),0,2);};};};};{var __yy__v1135=GetWithArray(YYASSET_REF(0x0000006C));for(var __yy__v1136 in __yy__v1135){if(!__yy__v1135.hasOwnProperty(__yy__v1136))continue;var __yy__v1137=__yy__v1135[__yy__v1136];__yy__v1137.gmlrewarded_route=false; }};};};global.gmlflickVelX=0;global.gmlflickVelY=0;}}function gml_GlobalScript_s_opposite_aim(_inst,_other,argument0){(_inst.gmls_opposite_aim=__yy_method(_inst,gml_Script_s_opposite_aim));}function gml_Script_s_opposite_aim(_inst,_other,argument0){{gml_Script_slog(_inst,_other,yyfplus("Direc = ",__yy_gml_errCheck(string(_inst.gmldirec))));var gmldir=argument0;while(yyfless(gmldir,0)){gmldir=yyfplus(gmldir,360)};while(yyfgreater(gmldir,359)){gmldir=yyfminus(gmldir,360)};var ___sw1006___=yyInst(_inst, _other,YYASSET_REF(0x00000069)).gmldrivedir;var ___swc1007___=-1;if(yyCompareVal(___sw1006___,(-1),g_GMLMathEpsilon,false)==0){___swc1007___=0;}else if(yyCompareVal(___sw1006___,1,g_GMLMathEpsilon,false)==0){___swc1007___=1;}switch(___swc1007___){case 0:{if((yyGetBool(yyfgreater(gmldir,280)))||(yyGetBool(yyfless(gmldir,80)))){return true;};break;}case 1:{if((yyGetBool(yyfgreater(gmldir,100)))&&(yyGetBool(yyfless(gmldir,260)))){return true;};break;}};}}function gml_GlobalScript_s_update_xdead(_inst,_other){ (_inst.gmls_update_xdead=__yy_method(_inst,gml_Script_s_update_xdead));}function gml_Script_s_update_xdead(_inst,_other){{_inst.gmlydead=round(_inst.y);_inst.gmlxdead=round(_inst.x);var gmlis_qb=false;if((yyGetBool(_inst.gmlholder))&&(yyGetBool((yyGetBool(yyfequal(yyInst(_inst,_other,_inst.gmlholder).gmlposition,1)))||(yyGetBool(yyInst(_inst,_other,_inst.gmlholder).gmlqb_rushing))))){gmlis_qb=true;};if((yyGetBool(_inst.gmlholder))&&(yyGetBool(!yyGetBool(gmlis_qb)))){{if(yyfequal(yyInst(_inst,_other, _inst.gmlholder).gmlmin_x,(-1))){yyInst(_inst,_other,_inst.gmlholder).gmlmin_x=yyInst(_inst,_other,global.gmlmaster_ball).x;};if(yyfequal(yyInst(_inst,_other,_inst.gmlholder).gmlmax_x,(-1))){yyInst(_inst,_other,_inst.gmlholder).gmlmax_x=yyInst(_inst,_other,global.gmlmaster_ball).x;};var ___sw1010___=yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldrivedir;var ___swc1011___=-1;if(yyCompareVal(___sw1010___,(-1),g_GMLMathEpsilon,false)==0){___swc1011___=0;}else if(yyCompareVal(___sw1010___,1,g_GMLMathEpsilon, false)==0){___swc1011___=1;}switch(___swc1011___){case 0:{_inst.gmlxdead=yyInst(_inst,_other,_inst.gmlholder).gmlmin_x;if(yyfequal(_inst.gmlstate,6)){_inst.gmlxdead=300;};if(!yyGetBool(yyInst(_inst,_other,_inst.gmlholder).gmloffense)){{_inst.gmlxdead=yyInst(_inst,_other,_inst.gmlholder).gmlmax_x;if(yyfequal(_inst.gmlstate,6)){_inst.gmlxdead=2300;};};};break;}case 1:{_inst.gmlxdead=yyInst(_inst,_other,_inst.gmlholder).gmlmax_x;if(yyfequal(_inst.gmlstate,6)){_inst.gmlxdead=2300;};if(!yyGetBool(yyInst(_inst, _other,_inst.gmlholder).gmloffense)){{_inst.gmlxdead=yyInst(_inst,_other,_inst.gmlholder).gmlmin_x;if(yyfequal(_inst.gmlstate,6)){_inst.gmlxdead=300;};};};break;}};};};}}function gml_GlobalScript_s_set_skills_and_skin(_inst,_other){(_inst.gmls_set_skills_and_skin=__yy_method(_inst,gml_Script_s_set_skills_and_skin));}function gml_Script_s_set_skills_and_skin(_inst,_other){{var gmlskin=irandom(2);if(yyfgreater(irandom(9),1)){gmlskin=0;};var gmlteam_offense=1;var gmloc=gml_Script_s_get_staff(_inst,_other, 102);if(yyGetBool(gmloc)){gmlteam_offense=clamp(real(yyftime(__yy_gml_errCheck(ds_map_find_value(gmloc,"rating")),0.5)),1,5);};var gmlteam_defense=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_defense[__yy_gml_array_check_index(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlhuman_team)?1:0,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_defense)]),__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldifficulty));if(yyfequal(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlop_difficulty,4)){gmlteam_defense=15;};gmlteam_defense=clamp(gmlteam_defense,2,15);var gmlspecialteams=1;var gmldc=gml_Script_s_get_staff(_inst,_other,101);if(yyGetBool(gmldc)){gmlspecialteams=clamp(real(yyftime(__yy_gml_errCheck(ds_map_find_value(gmloc,"rating")),0.5)),1,5);};var gmlte_blockers=0;{var __yy__v1138=GetWithArray(YYASSET_REF(0x0000006B));for(var __yy__v1139 in __yy__v1138){if(!__yy__v1138.hasOwnProperty(__yy__v1139))continue;var __yy__v1140=__yy__v1138[__yy__v1139]; {if(yyGetBool(__yy__v1140.gmlte_blocking)){(g_yyPrePostObject__=gmlte_blockers,gmlte_blockers=(g_yyPrePostObject__ instanceof Long?gmlte_blockers.add(1):++gmlte_blockers),g_yyPrePostObject__);}else {if((yyGetBool(__yy__v1140.gmlpmap))&&(yyGetBool(yyfequal(ds_map_find_value(__yy__v1140.gmlpmap,"position"),5)))){(g_yyPrePostObject__=gmlte_blockers,gmlte_blockers=(g_yyPrePostObject__ instanceof Long?gmlte_blockers.add(1):++gmlte_blockers),g_yyPrePostObject__);};};}}};_inst.gmlpmap=(-4);var gmlattack_roster=yyInst(_inst, _other,YYASSET_REF(0x00000069)).gmlteam_roster[__yy_gml_array_check_index(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpossession,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_roster)];var gmldefense_roster=yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_roster[__yy_gml_array_check_index(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpossession)?1:0,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_roster)];if(!yyGetBool(gml_Script_s_is_kickoff(_inst,_other,false))){ {if(yyGetBool(_inst.gmloffense)){{var ___sw1026___=_inst.gmlinum;var ___swc1027___=-1;if(yyCompareVal(___sw1026___,1,g_GMLMathEpsilon,false)==0){___swc1027___=0;}else if(yyCompareVal(___sw1026___,2,g_GMLMathEpsilon,false)==0){___swc1027___=1;}else if(yyCompareVal(___sw1026___,9,g_GMLMathEpsilon,false)==0){___swc1027___=2;}else if(yyCompareVal(___sw1026___,11,g_GMLMathEpsilon,false)==0){___swc1027___=3;}else if(yyCompareVal(___sw1026___,10,g_GMLMathEpsilon,false)==0){___swc1027___=4;}else if(yyCompareVal(___sw1026___, 8,g_GMLMathEpsilon,false)==0){___swc1027___=5;}else if(yyCompareVal(___sw1026___,3,g_GMLMathEpsilon,false)==0){___swc1027___=6;}else if(yyCompareVal(___sw1026___,4,g_GMLMathEpsilon,false)==0){___swc1027___=7;}else if(yyCompareVal(___sw1026___,5,g_GMLMathEpsilon,false)==0){___swc1027___=8;}else if(yyCompareVal(___sw1026___,6,g_GMLMathEpsilon,false)==0){___swc1027___=9;}else if(yyCompareVal(___sw1026___,7,g_GMLMathEpsilon,false)==0){___swc1027___=10;}switch(___swc1027___){case 0:{if(yyGetBool(yyInst(_inst, _other,YYASSET_REF(0x00000069)).gmlkicking)){_inst.gmlpmap=gml_Script_s_get_player_by_position_from_roster(_inst,_other,10,1,gmlattack_roster);}else {_inst.gmlpmap=gml_Script_s_get_player_by_position_from_roster(_inst,_other,1,1,gmlattack_roster);};break;}case 1:{_inst.gmlpmap=gml_Script_s_get_player_by_position_from_roster(_inst,_other,_inst.gmlposition,1,gmlattack_roster);break;}case 2:{if((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlquarter,1)))||(yyGetBool(yyfequal(yyInst(_inst, _other,YYASSET_REF(0x00000069)).gmlquarter,4)))){_inst.gmlpmap=gml_Script_s_get_player_by_position_from_roster(_inst,_other,_inst.gmlposition,1,gmlattack_roster);}else {_inst.gmlpmap=gml_Script_s_get_player_by_position_from_roster(_inst,_other,_inst.gmlposition,2,gmlattack_roster);};break;}case 3:{if((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlquarter,1)))||(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlquarter,4)))){_inst.gmlpmap=gml_Script_s_get_player_by_position_from_roster(_inst, _other,_inst.gmlposition,2,gmlattack_roster);}else {_inst.gmlpmap=gml_Script_s_get_player_by_position_from_roster(_inst,_other,_inst.gmlposition,1,gmlattack_roster);};break;}case 4:{if(yyfequal(gml_Script_s_count_players_onfield_by_position(_inst,_other,3,gmlattack_roster),1)){{if(!yyGetBool(_inst.gmlte_blocking)){_inst.gmlpmap=gml_Script_s_get_player_by_position_from_roster(_inst,_other,_inst.gmlposition,1,gmlattack_roster);};};}else {if((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlquarter, 1)))||(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlquarter,4)))){_inst.gmlpmap=gml_Script_s_get_player_by_position_from_roster(_inst,_other,_inst.gmlposition,1,gmlattack_roster);}else {_inst.gmlpmap=gml_Script_s_get_player_by_position_from_roster(_inst,_other,_inst.gmlposition,2,gmlattack_roster);};};break;}case 5:{if(yyfequal(gml_Script_s_count_players_onfield_by_position(_inst,_other,3,gmlattack_roster),1)){{_inst.gmlpmap=gml_Script_s_get_player_by_position_from_roster(_inst, _other,_inst.gmlposition,1,gmlattack_roster);{var __yy__v1141=GetWithArray(YYASSET_REF(0x0000006B));for(var __yy__v1142 in __yy__v1141){if(!__yy__v1141.hasOwnProperty(__yy__v1142))continue;var __yy__v1143=__yy__v1141[__yy__v1142];if((yyGetBool(yyfequal(__yy__v1143.gmlinum,10)))&&(yyGetBool(__yy__v1143.gmlpmap))){_inst.gmlpmap=(-4);};}};};}else {if((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlquarter,1)))||(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlquarter, 4)))){_inst.gmlpmap=gml_Script_s_get_player_by_position_from_roster(_inst,_other,_inst.gmlposition,2,gmlattack_roster);}else {_inst.gmlpmap=gml_Script_s_get_player_by_position_from_roster(_inst,_other,_inst.gmlposition,1,gmlattack_roster);};};break;}case 6:{_inst.gmlpmap=gml_Script_s_get_player_by_position_from_roster(_inst,_other,_inst.gmlposition,3,gmlattack_roster);break;}case 7:{_inst.gmlpmap=gml_Script_s_get_player_by_position_from_roster(_inst,_other,_inst.gmlposition,1,gmlattack_roster);break; }case 8:{_inst.gmlpmap=gml_Script_s_get_player_by_position_from_roster(_inst,_other,_inst.gmlposition,2,gmlattack_roster);break;}case 9:{_inst.gmlpmap=gml_Script_s_get_player_by_position_from_roster(_inst,_other,_inst.gmlposition,4,gmlattack_roster);break;}case 10:{_inst.gmlpmap=gml_Script_s_get_player_by_position_from_roster(_inst,_other,_inst.gmlposition,5,gmlattack_roster);break;}};};};};}else {if(yyfequal(_inst.gmlposition,14)){{gml_Script_slog(_inst,_other,"POS RETURNER :");if(yyGetBool(_inst.gmloffense)){ {_inst.gmlpmap=gml_Script_s_get_player_kick_returner(_inst,_other,gmldefense_roster);};}else {{_inst.gmlpmap=gml_Script_s_get_player_kick_returner(_inst,_other,gmlattack_roster);};};};};};if(yyfequal(_inst.gmlbody_type,(-1))){{var gmlbody_pmap=_inst.gmlpmap;if((yyGetBool(_inst.gmloffense))&&(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,false)))&&(yyGetBool(yyfequal(gmlbody_pmap,(-4))))){{var ___sw1028___=_inst.gmlinum;var ___swc1029___=-1;if(yyCompareVal(___sw1028___,1,g_GMLMathEpsilon,false)==0){ ___swc1029___=0;}else if(yyCompareVal(___sw1028___,2,g_GMLMathEpsilon,false)==0){___swc1029___=1;}else if(yyCompareVal(___sw1028___,9,g_GMLMathEpsilon,false)==0){___swc1029___=2;}else if(yyCompareVal(___sw1028___,11,g_GMLMathEpsilon,false)==0){___swc1029___=3;}else if(yyCompareVal(___sw1028___,10,g_GMLMathEpsilon,false)==0){___swc1029___=4;}else if(yyCompareVal(___sw1028___,8,g_GMLMathEpsilon,false)==0){___swc1029___=5;}else if(yyCompareVal(___sw1028___,3,g_GMLMathEpsilon,false)==0){___swc1029___=6;}else if(yyCompareVal(___sw1028___, 4,g_GMLMathEpsilon,false)==0){___swc1029___=7;}else if(yyCompareVal(___sw1028___,5,g_GMLMathEpsilon,false)==0){___swc1029___=8;}else if(yyCompareVal(___sw1028___,6,g_GMLMathEpsilon,false)==0){___swc1029___=9;}else if(yyCompareVal(___sw1028___,7,g_GMLMathEpsilon,false)==0){___swc1029___=10;}switch(___swc1029___){case 0:{gmlbody_pmap=gml_Script_s_get_player_by_position_from_roster(_inst,_other,1,1,gmlattack_roster);break;}case 1:{gmlbody_pmap=gml_Script_s_get_player_by_position_from_roster(_inst,_other, 2,1,gmlattack_roster);break;}case 2:{gmlbody_pmap=gml_Script_s_get_player_by_position_from_roster(_inst,_other,4,1,gmlattack_roster);break;}case 3:{gmlbody_pmap=gml_Script_s_get_player_by_position_from_roster(_inst,_other,4,2,gmlattack_roster);break;}case 4:{gmlbody_pmap=gml_Script_s_get_player_by_position_from_roster(_inst,_other,3,1,gmlattack_roster);break;}case 5:{gmlbody_pmap=gml_Script_s_get_player_by_position_from_roster(_inst,_other,3,2,gmlattack_roster);break;}case 6:{gmlbody_pmap=gml_Script_s_get_player_by_position_from_roster(_inst, _other,5,3,gmlattack_roster);break;}case 7:{gmlbody_pmap=gml_Script_s_get_player_by_position_from_roster(_inst,_other,5,1,gmlattack_roster);break;}case 8:{gmlbody_pmap=gml_Script_s_get_player_by_position_from_roster(_inst,_other,5,2,gmlattack_roster);break;}case 9:{gmlbody_pmap=gml_Script_s_get_player_by_position_from_roster(_inst,_other,5,4,gmlattack_roster);break;}case 10:{gmlbody_pmap=gml_Script_s_get_player_by_position_from_roster(_inst,_other,5,5,gmlattack_roster);break;}};};};_inst.gmlbody_type=gml_Script_s_get_player_body_type(_inst, _other,_inst.gmloffense,gmlbody_pmap,gmlteam_defense);};};if(yyGetBool(_inst.gmlpmap)){{_inst.gmlname=true;};}else {{};};if(yyGetBool(global.gmlexhibition)){{gmlteam_offense=yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_offense[__yy_gml_array_check_index(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpossession,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_offense)];gmlteam_defense=yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_defense[__yy_gml_array_check_index(!yyGetBool(yyInst(_inst, _other,YYASSET_REF(0x00000069)).gmlpossession)?1:0,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_defense)];};};gml_Script_s_set_anim(_inst,_other,0);var ___sw1030___=_inst.gmlposition;var ___swc1031___=-1;if(yyCompareVal(___sw1030___,12,g_GMLMathEpsilon,false)==0){___swc1031___=0;}else if(yyCompareVal(___sw1030___,13,g_GMLMathEpsilon,false)==0){___swc1031___=1;}else if(yyCompareVal(___sw1030___,14,g_GMLMathEpsilon,false)==0){___swc1031___=2;}else if(yyCompareVal(___sw1030___,1,g_GMLMathEpsilon, false)==0){___swc1031___=3;}else if(yyCompareVal(___sw1030___,11,g_GMLMathEpsilon,false)==0){___swc1031___=4;}else if(yyCompareVal(___sw1030___,10,g_GMLMathEpsilon,false)==0){___swc1031___=5;}else if(yyCompareVal(___sw1030___,5,g_GMLMathEpsilon,false)==0){___swc1031___=6;}else if(yyCompareVal(___sw1030___,3,g_GMLMathEpsilon,false)==0){___swc1031___=7;}else if(yyCompareVal(___sw1030___,2,g_GMLMathEpsilon,false)==0){___swc1031___=8;}else if(yyCompareVal(___sw1030___,4,g_GMLMathEpsilon,false)==0){___swc1031___=9; }else if(yyCompareVal(___sw1030___,6,g_GMLMathEpsilon,false)==0){___swc1031___=10;}else if(yyCompareVal(___sw1030___,7,g_GMLMathEpsilon,false)==0){___swc1031___=11;}else if(yyCompareVal(___sw1030___,9,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1030___,8,g_GMLMathEpsilon,false)==0){___swc1031___=12;}switch(___swc1031___){case 0:{gmlteam_defense=min(gmlteam_defense,10);_inst.gmlcollsize=10;_inst.gmlstrength=yyfplus(__yy_gml_errCheck(random_range(2.1,2.5)),__yy_gml_errCheck(yyftime(0.1,__yy_gml_errCheck(random(gmlteam_defense))))); _inst.gmlmy_tackle_limit=yyftime(__yy_gml_errCheck(yyfplus(21,__yy_gml_errCheck(gmlteam_defense))),__yy_gml_errCheck(irandom_range(3,5)));_inst.gmlmy_accel=yyfplus(yyfplus(0.065,__yy_gml_errCheck(random_range(0.03,0.04))),__yy_gml_errCheck(yyftime(0.002,__yy_gml_errCheck(gmlteam_defense))));_inst.gmlstamina=clamp(yyfminus(__yy_gml_errCheck(gmlteam_defense),__yy_gml_errCheck(irandom(2))),1,8);gml_Script_s_set_anim(_inst,_other,1);break;}case 1:{_inst.gmlcollsize=10;_inst.gmlstrength=yyfplus(2.5,__yy_gml_errCheck(yyftime(0.1, __yy_gml_errCheck(random(gmlspecialteams)))));_inst.gmlmy_tackle_limit=yyftime(__yy_gml_errCheck(yyfplus(21,__yy_gml_errCheck(gmlteam_defense))),__yy_gml_errCheck(irandom_range(3,5)));_inst.gmlmy_accel=yyfplus(yyfplus(0.065,__yy_gml_errCheck(random_range(0.03,0.04))),__yy_gml_errCheck(yyftime(0.002,__yy_gml_errCheck(gmlspecialteams))));_inst.gmlstamina=clamp(yyfminus(__yy_gml_errCheck(gmlspecialteams),__yy_gml_errCheck(irandom(2))),1,8);break;}case 2:{_inst.gmlcollsize=10;_inst.gmlstrength=yyfplus(2.5, __yy_gml_errCheck(yyftime(0.1,__yy_gml_errCheck(gmlteam_defense))));_inst.gmlmy_tackle_limit=yyfplus(20,__yy_gml_errCheck(gmlspecialteams));_inst.gmlmy_accel=yyfplus(0.10500000000000001,__yy_gml_errCheck(yyftime(0.002,__yy_gml_errCheck(gmlspecialteams))));_inst.gmlstamina=clamp(yyfminus(__yy_gml_errCheck(gmlspecialteams),__yy_gml_errCheck(irandom(2))),1,8);_inst.gmlstiff_arm=0;_inst.gmljumps=0;if(yyGetBool(_inst.gmlpmap)){{_inst.gmlstrength=yyfplus(1,__yy_gml_errCheck(yyftime(0.2,__yy_gml_errCheck(gml_Script_s_get_attribute(_inst, _other,_inst.gmlpmap,"strength")))));_inst.gmlmy_accel=yyfplus(0.10500000000000001,__yy_gml_errCheck(yyftime(0.002,__yy_gml_errCheck(gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"speed")))));if(yyfless(irandom(15),gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"strenth"))){(g_yyPrePostObject__=_inst.gmlstiff_arm,_inst.gmlstiff_arm=(g_yyPrePostObject__ instanceof Long?_inst.gmlstiff_arm.add(1):++_inst.gmlstiff_arm),g_yyPrePostObject__);};if(yyfless(irandom(15),gml_Script_s_get_attribute(_inst, _other,_inst.gmlpmap,"speed"))){(g_yyPrePostObject__=_inst.gmljumps,_inst.gmljumps=(g_yyPrePostObject__ instanceof Long?_inst.gmljumps.add(1):++_inst.gmljumps),g_yyPrePostObject__);};};}else {{var ___sw1032___=irandom(1);var ___swc1033___=-1;if(yyCompareVal(___sw1032___,0,g_GMLMathEpsilon,false)==0){___swc1033___=0;}else if(yyCompareVal(___sw1032___,1,g_GMLMathEpsilon,false)==0){___swc1033___=1;}switch(___swc1033___){case 0:{_inst.gmlstiff_arm=irandom(1);break;}case 1:{_inst.gmljumps=irandom(1);break;}} ;};};break;}case 3:{_inst.gmlcollsize=5;if(yyfnotequal(_inst.gmlpmap,(-4))){{_inst.gmlstrength=yyfplus(1,__yy_gml_errCheck(yyftime(0.1,__yy_gml_errCheck(gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"strength")))));_inst.gmlmy_accel=yyfplus(0.095,__yy_gml_errCheck(yyftime(0.002,__yy_gml_errCheck(gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"speed")))));_inst.gmlskill=gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"skill");yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlroute_alpha=yyfplus(1, __yy_gml_errCheck(gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"strength")));if((yyGetBool(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlkicking)))&&(yyGetBool(yyfless(gml_Script_s_count_audibles(_inst,_other),0)))){yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlaudibles=gml_Script_s_get_num_audibles(_inst,_other,_inst.gmlpmap);};};}else {{_inst.gmlstrength=yyfplus(1,__yy_gml_errCheck(yyftime(0.1,__yy_gml_errCheck(gmlteam_offense))));_inst.gmlmy_accel=yyfplus(0.065,__yy_gml_errCheck(yyftime(0.002, __yy_gml_errCheck(gmlteam_offense))));_inst.gmlskill=1;if((yyGetBool(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlkicking)))&&(yyGetBool(yyfless(gml_Script_s_count_audibles(_inst,_other),0)))){{if(yyGetBool(global.gmlexhibition)){gml_Script_s_set_audibles(_inst,_other,3);}else {if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear,1)){gml_Script_s_set_audibles(_inst,_other,1);};};};};};};gml_Script_s_set_anim(_inst,_other,0);break;}case 4:{gml_Script_s_set_anim(_inst,_other, 13);}case 5:{_inst.gmlcollsize=5;if(yyfnotequal(_inst.gmlpmap,(-4))){{_inst.gmlstrength=yyfplus(1,__yy_gml_errCheck(yyftime(0.1,__yy_gml_errCheck(gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"strength")))));_inst.gmlmy_accel=yyfplus(0.045,__yy_gml_errCheck(yyftime(0.002,__yy_gml_errCheck(gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"speed")))));_inst.gmlskill=gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"skill");};}else {{_inst.gmlskill=1;_inst.gmlstrength=yyfplus(1,__yy_gml_errCheck(yyftime(0.1, __yy_gml_errCheck(gmlteam_defense))));_inst.gmlmy_accel=yyfplus(0.045,__yy_gml_errCheck(yyftime(0.002,__yy_gml_errCheck(gmlteam_defense))));};};break;}case 6:{_inst.gmlcollsize=10;var gmlstr=yyfplus(4.75,__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlte_blockers),0.85)));var gmltacklimit=yyfplus(yyfplus(20,__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldifficulty)),__yy_gml_errCheck(yyftime(5.5,__yy_gml_errCheck(gmlte_blockers))));if(yyGetBool(_inst.gmlpmap)){{_inst.gmlstrength=yyfplus(__yy_gml_errCheck(gmlstr), __yy_gml_errCheck(yyftime(0.4,__yy_gml_errCheck(gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"strength")))));_inst.gmlmy_accel=yyfplus(0.055,__yy_gml_errCheck(yyftime(0.002,__yy_gml_errCheck(gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"speed")))));_inst.gmlmy_tackle_limit=yyftime(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(gmltacklimit),__yy_gml_errCheck(gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"skill")))),5);};}else {{_inst.gmlstrength=yyfplus(__yy_gml_errCheck(gmlstr), __yy_gml_errCheck(yyftime(0.1,__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_offense[__yy_gml_array_check_index(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlhuman_team,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_offense)]))));_inst.gmlmy_accel=yyfplus(0.035,__yy_gml_errCheck(yyftime(0.002,__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_offense[__yy_gml_array_check_index(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlhuman_team,yyInst(_inst, _other,YYASSET_REF(0x00000069)).gmlteam_offense)]))));_inst.gmlmy_tackle_limit=yyftime(__yy_gml_errCheck(gmltacklimit),__yy_gml_errCheck(irandom_range(3,4)));};};gml_Script_s_set_anim(_inst,_other,1);break;}case 7:{if(yyGetBool(_inst.gmlpmap)){{_inst.gmlmy_tackle_limit=yyftime(__yy_gml_errCheck(yyfplus(yyfplus(20,__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldifficulty)),__yy_gml_errCheck(gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"skill")))),4);_inst.gmlmy_accel=yyfplus(0.095, __yy_gml_errCheck(yyftime(0.002,__yy_gml_errCheck(gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"speed")))));};}else {_inst.gmlmy_tackle_limit=yyftime(__yy_gml_errCheck(yyfplus(20,__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldifficulty))),__yy_gml_errCheck(irandom_range(2,3)));};}case 8:{_inst.gmlcollsize=5;if(yyfnotequal(_inst.gmlpmap,(-4))){{_inst.gmlstrength=yyfplus(2,__yy_gml_errCheck(yyftime(0.1,__yy_gml_errCheck(gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap, "strength")))));if(yyfequal(_inst.gmlposition,2)){_inst.gmlmy_accel=yyfplus(0.10500000000000001,__yy_gml_errCheck(yyftime(0.002,__yy_gml_errCheck(gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"speed")))));};_inst.gmlskill=gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"skill");_inst.gmlstiff_arm=irandom(1);if((yyGetBool(yyfequal(_inst.gmlstiff_arm,0)))&&(yyGetBool(yyfgreaterequal(gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"strength"),6)))){_inst.gmlstiff_arm=1;};if(yyfless(irandom(10), gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"strength"))){(g_yyPrePostObject__=_inst.gmlstiff_arm,_inst.gmlstiff_arm=(g_yyPrePostObject__ instanceof Long?_inst.gmlstiff_arm.add(1):++_inst.gmlstiff_arm),g_yyPrePostObject__);};_inst.gmljumps=irandom(1);if(yyfless(irandom(10),gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"speed"))){(g_yyPrePostObject__=_inst.gmljumps,_inst.gmljumps=(g_yyPrePostObject__ instanceof Long?_inst.gmljumps.add(1):++_inst.gmljumps),g_yyPrePostObject__);};if((yyGetBool(yyfequal(_inst.gmljumps, 0)))&&(yyGetBool(yyfgreaterequal(gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"speed"),10)))){(g_yyPrePostObject__=_inst.gmljumps,_inst.gmljumps=(g_yyPrePostObject__ instanceof Long?_inst.gmljumps.add(1):++_inst.gmljumps),g_yyPrePostObject__);};if((yyGetBool(yyfequal(_inst.gmlposition,2)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldefensive_cover,0)))){{_inst.gmlstiff_arm=yyfminus(_inst.gmlstiff_arm,irandom(1));_inst.gmljumps=yyfminus(_inst.gmljumps,irandom(1)); };}else {if(yyfless(yyfminus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"age")),__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other))),irandom(10))){{var ___sw1034___=irandom(1);var ___swc1035___=-1;if(yyCompareVal(___sw1034___,0,g_GMLMathEpsilon,false)==0){___swc1035___=0;}else if(yyCompareVal(___sw1034___,1,g_GMLMathEpsilon,false)==0){___swc1035___=1;}switch(___swc1035___){case 0:{(g_yyPrePostObject__=_inst.gmlstiff_arm,_inst.gmlstiff_arm=(g_yyPrePostObject__ instanceof Long?_inst.gmlstiff_arm.subtract(1):--_inst.gmlstiff_arm), g_yyPrePostObject__);break;}case 1:{(g_yyPrePostObject__=_inst.gmljumps,_inst.gmljumps=(g_yyPrePostObject__ instanceof Long?_inst.gmljumps.subtract(1):--_inst.gmljumps),g_yyPrePostObject__);break;}};};};};};}else {{_inst.gmlstrength=yyfplus(2,__yy_gml_errCheck(yyftime(0.1,__yy_gml_errCheck(gmlteam_offense))));_inst.gmlmy_accel=yyfplus(0.09,__yy_gml_errCheck(yyftime(0.002,__yy_gml_errCheck(gmlteam_offense))));_inst.gmlskill=1;_inst.gmlstiff_arm=irandom(1);_inst.gmljumps=irandom(1);if(yyGetBool(global.gmlexhibition)){ {_inst.gmlmy_accel=yyfplus(0.1,__yy_gml_errCheck(yyftime(0.002,__yy_gml_errCheck(gmlteam_offense))));_inst.gmlskill=gmlteam_offense;_inst.gmlstiff_arm=yyfplus(_inst.gmlstiff_arm,irandom(1));_inst.gmljumps=yyfplus(_inst.gmljumps,irandom(1));};}else {if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_difficulty,4)){{_inst.gmlstiff_arm=0;_inst.gmljumps=0;};};};};};var gmlmax_stiff=2;if((yyGetBool(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldifficulty,0)))&&(yyGetBool(!yyGetBool(global.gmlexhibition)))){ gmlmax_stiff=1;};_inst.gmlstiff_arm=clamp(yyfminus(__yy_gml_errCheck(_inst.gmlstiff_arm),__yy_gml_errCheck(irandom(1))),0,gmlmax_stiff);_inst.gmljumps=clamp(yyfminus(__yy_gml_errCheck(_inst.gmljumps),__yy_gml_errCheck(irandom(1))),0,gmlmax_stiff);if(yyGetBool(irandom(9))){gmlskin=0;};break;}case 9:{_inst.gmlcollsize=2.5;if(yyGetBool(_inst.gmlpmap)){{_inst.gmlstrength=yyfplus(1,__yy_gml_errCheck(yyftime(0.2,__yy_gml_errCheck(gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"strength")))));_inst.gmlmy_accel=yyfplus(0.115, __yy_gml_errCheck(yyftime(0.002,__yy_gml_errCheck(gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"speed")))));_inst.gmlskill=gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"skill");_inst.gmlstiff_arm=irandom(1);if(yyfless(irandom(11),gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"strength"))){(g_yyPrePostObject__=_inst.gmlstiff_arm,_inst.gmlstiff_arm=(g_yyPrePostObject__ instanceof Long?_inst.gmlstiff_arm.add(1):++_inst.gmlstiff_arm),g_yyPrePostObject__);};if((yyGetBool(yyfequal(_inst.gmlstiff_arm, 0)))&&(yyGetBool(yyfgreaterequal(gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"strength"),10)))){(g_yyPrePostObject__=_inst.gmlstiff_arm,_inst.gmlstiff_arm=(g_yyPrePostObject__ instanceof Long?_inst.gmlstiff_arm.add(1):++_inst.gmlstiff_arm),g_yyPrePostObject__);};_inst.gmljumps=irandom(1);if(yyfless(irandom(11),gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"speed"))){(g_yyPrePostObject__=_inst.gmljumps,_inst.gmljumps=(g_yyPrePostObject__ instanceof Long?_inst.gmljumps.add(1):++_inst.gmljumps), g_yyPrePostObject__);};if((yyGetBool(yyfequal(_inst.gmljumps,0)))&&(yyGetBool(yyfgreaterequal(gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"speed"),10)))){(g_yyPrePostObject__=_inst.gmljumps,_inst.gmljumps=(g_yyPrePostObject__ instanceof Long?_inst.gmljumps.add(1):++_inst.gmljumps),g_yyPrePostObject__);};if(yyfless(yyfminus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"age")),__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other))),irandom(10))){{var ___sw1036___=irandom(1); var ___swc1037___=-1;if(yyCompareVal(___sw1036___,0,g_GMLMathEpsilon,false)==0){___swc1037___=0;}else if(yyCompareVal(___sw1036___,1,g_GMLMathEpsilon,false)==0){___swc1037___=1;}switch(___swc1037___){case 0:{(g_yyPrePostObject__=_inst.gmlstiff_arm,_inst.gmlstiff_arm=(g_yyPrePostObject__ instanceof Long?_inst.gmlstiff_arm.subtract(1):--_inst.gmlstiff_arm),g_yyPrePostObject__);break;}case 1:{(g_yyPrePostObject__=_inst.gmljumps,_inst.gmljumps=(g_yyPrePostObject__ instanceof Long?_inst.gmljumps.subtract(1):--_inst.gmljumps), g_yyPrePostObject__);break;}};};};};}else {{_inst.gmlstrength=yyfplus(1,__yy_gml_errCheck(yyftime(0.2,__yy_gml_errCheck(gmlteam_offense))));_inst.gmlmy_accel=yyfplus(0.10500000000000001,__yy_gml_errCheck(yyftime(0.002,__yy_gml_errCheck(gmlteam_offense))));_inst.gmlskill=1;_inst.gmlstiff_arm=irandom(1);_inst.gmljumps=irandom(1);if(yyGetBool(global.gmlexhibition)){{_inst.gmlmy_accel=yyfplus(0.115,__yy_gml_errCheck(yyftime(0.002,__yy_gml_errCheck(gmlteam_offense))));_inst.gmlskill=gmlteam_offense;_inst.gmlstiff_arm=yyfplus(_inst.gmlstiff_arm, irandom(1));_inst.gmljumps=yyfplus(_inst.gmljumps,irandom(1));};}else {if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_difficulty,4)){{_inst.gmlstiff_arm=0;_inst.gmljumps=0;};};};};};if(!yyGetBool(global.gmlexhibition)){{if(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldifficulty,2)){{_inst.gmlstiff_arm=yyfminus(_inst.gmlstiff_arm,1);_inst.gmljumps=yyfminus(_inst.gmljumps,1);};}else {if(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldifficulty,5)){{_inst.gmlstiff_arm=yyfminus(_inst.gmlstiff_arm, irandom(1));_inst.gmljumps=yyfminus(_inst.gmljumps,irandom(1));};};};};};if(yyfless(_inst.gmlstiff_arm,0)){_inst.gmlstiff_arm=0;};if(yyfless(_inst.gmljumps,0)){_inst.gmljumps=0;};if(yyGetBool(irandom(9))){gmlskin=0;};break;}case 10:{if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldefensive_cover,0)){gmlteam_defense=clamp(yyfplus(__yy_gml_errCheck(gmlteam_defense),3),1,10);};if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldown,6)){gmlteam_defense=yyfplus(gmlteam_defense,3); };_inst.gmlcollsize=10;_inst.gmlstrength=yyfplus(3.5,__yy_gml_errCheck(yyftime(0.2,__yy_gml_errCheck(gmlteam_defense))));if(yyfgreaterequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_difficulty,3)){_inst.gmlstrength=yyfplus(4,__yy_gml_errCheck(yyftime(0.2,__yy_gml_errCheck(gmlteam_defense))));};_inst.gmlmy_tackle_limit=yyftime(__yy_gml_errCheck(yyfplus(20,__yy_gml_errCheck(gmlteam_defense))),__yy_gml_errCheck(irandom_range(3,5)));_inst.gmlmy_accel=yyfplus(0.035,__yy_gml_errCheck(yyftime(0.002, __yy_gml_errCheck(gmlteam_defense))));gml_Script_s_set_anim(_inst,_other,1);break;}case 11:{if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldefensive_cover,0)){gmlteam_defense=clamp(yyfplus(__yy_gml_errCheck(gmlteam_defense),3),1,10);};_inst.gmlcollsize=5;_inst.gmlstrength=yyfplus(2,__yy_gml_errCheck(yyftime(0.1,__yy_gml_errCheck(gmlteam_defense))));_inst.gmlmy_tackle_limit=yyfplus(20,__yy_gml_errCheck(gmlteam_defense));_inst.gmlmy_accel=yyfplus(yyfplus(0.065,__yy_gml_errCheck(random(0.005))), __yy_gml_errCheck(yyftime(0.002,__yy_gml_errCheck(gmlteam_defense))));if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_difficulty,4)){_inst.gmlmy_accel=yyfplus(0.07,__yy_gml_errCheck(yyftime(0.003,__yy_gml_errCheck(gmlteam_defense))));};break;}case 12:{_inst.gmlcollsize=5;_inst.gmlstrength=yyfplus(1,__yy_gml_errCheck(yyftime(0.2,__yy_gml_errCheck(gmlteam_defense))));_inst.gmlmy_tackle_limit=yyfplus(20,__yy_gml_errCheck(gmlteam_defense));_inst.gmlmy_accel=yyfplus(yyfplus(0.065,__yy_gml_errCheck(random_range(0.04, 0.055))),__yy_gml_errCheck(yyftime(0.002,__yy_gml_errCheck(gmlteam_defense))));if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_difficulty,3)){_inst.gmlmy_accel=yyfplus(yyfplus(0.065,__yy_gml_errCheck(random_range(0.05,0.06))),__yy_gml_errCheck(yyftime(0.002,__yy_gml_errCheck(gmlteam_defense))));}else {if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_difficulty,4)){_inst.gmlmy_accel=yyfplus(0.135,__yy_gml_errCheck(yyftime(0.003,__yy_gml_errCheck(gmlteam_defense))));};} ;if((yyGetBool(gml_Script_s_is_kickoff(_inst,_other,false)))&&(yyGetBool(yyfnotequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpossession,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlhuman_team)))){{_inst.gmlstrength=yyfplus(1,__yy_gml_errCheck(yyftime(0.2,__yy_gml_errCheck(gmlspecialteams))));_inst.gmlmy_tackle_limit=yyfplus(20,__yy_gml_errCheck(gmlspecialteams));_inst.gmlmy_accel=yyfplus(yyfplus(0.065,__yy_gml_errCheck(random_range(0.04,0.055))),__yy_gml_errCheck(yyftime(0.002,__yy_gml_errCheck(gmlspecialteams)))); };};if(yyGetBool(irandom(9))){gmlskin=0;};break;}};if(yyGetBool(_inst.gmlpmap)){{var gmlstr=gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"strength");_inst.gmlstamina=gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"stamina");var gmlstam=yyftime(__yy_gml_errCheck(yyfminus(10,__yy_gml_errCheck(_inst.gmlstamina))),0.05);var gmldep=yyftime(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"stat_attempts")),__yy_gml_errCheck(gmlstam));gmlstr=clamp(yyfminus(__yy_gml_errCheck(gmlstr),__yy_gml_errCheck(gmldep)), 1,10);_inst.gmlmy_throw_power=yyfplus(0.08,__yy_gml_errCheck(yyftime(0.004,__yy_gml_errCheck(gmlstr))));gmlstr=gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"strength");gmlstam=yyftime(__yy_gml_errCheck(yyfminus(11,__yy_gml_errCheck(_inst.gmlstamina))),0.2);gmldep=yyftime(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"stat_attempts")),__yy_gml_errCheck(gmlstam));gmlstr=clamp(yyfminus(__yy_gml_errCheck(gmlstr),__yy_gml_errCheck(gmldep)),1,10);_inst.gmlmy_kick_power=yyfplus(0.065,__yy_gml_errCheck(yyftime(0.001235, __yy_gml_errCheck(gmlstr))));_inst.gmlmy_kick_skill=gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"skill");var gmlstam=yyftime(__yy_gml_errCheck(yyfminus(10,__yy_gml_errCheck(_inst.gmlstamina))),0.05);var gmldep=yyftime(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"stat_attempts")),__yy_gml_errCheck(gmlstam));var gmlyds=yyfdivide(__yy_gml_errCheck(clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"stat_yards")),__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"stat_rush_yards"))), 0,275)),275);gmlyds=lerp(yyftime(__yy_gml_errCheck(gmlyds),0.99),yyftime(__yy_gml_errCheck(gmlyds),0.5),yyftime(__yy_gml_errCheck(_inst.gmlstamina),0.1));_inst.gmlmy_accel=lerp(_inst.gmlmy_accel,yyftime(__yy_gml_errCheck(_inst.gmlmy_accel),0.8),gmlyds);gmlskin=ds_map_find_value(_inst.gmlpmap,"skin");};}else {if(!yyGetBool(gml_Script_s_is_kickoff(_inst,_other,true))){{if(yyfequal(_inst.gmlposition,1)){gmlskin=yyfmod(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(real(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id)), __yy_gml_errCheck(real(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear)))),3);};if(yyGetBool(global.gmlexhibition)){{_inst.gmlskill=gmlteam_offense;_inst.gmlmy_throw_power=yyfplus(0.08,__yy_gml_errCheck(yyftime(0.004,__yy_gml_errCheck(gmlteam_offense))));_inst.gmlmy_kick_power=yyfplus(0.065,__yy_gml_errCheck(yyftime(0.001235,__yy_gml_errCheck(gmlteam_offense))));_inst.gmlmy_kick_skill=gmlteam_offense;};};if(yyGetBool(_inst.gmloffense)){{var gmlqtr=yyfdivide(__yy_gml_errCheck(clamp(yyInst(_inst, _other,YYASSET_REF(0x00000069)).gmlquarter,1,5)),5);_inst.gmlmy_accel=lerp(_inst.gmlmy_accel,yyftime(__yy_gml_errCheck(_inst.gmlmy_accel),0.7),gmlqtr);_inst.gmlstamina=gmlteam_offense;};}else {{var gmlqtr=yyfdivide(__yy_gml_errCheck(clamp(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlquarter,1,5)),5);_inst.gmlmy_accel=lerp(_inst.gmlmy_accel,yyftime(__yy_gml_errCheck(_inst.gmlmy_accel),0.85),gmlqtr);_inst.gmlstamina=clamp(yyfminus(__yy_gml_errCheck(gmlteam_defense),__yy_gml_errCheck(irandom(2))), 1,8);};};};};};if((yyGetBool(yyfequal(_inst.gmlposition,1)))||(yyGetBool(yyfequal(_inst.gmlposition,10)))){gml_Script_slog(_inst,_other,yyfplus("My kick skill = ",__yy_gml_errCheck(string(_inst.gmlmy_kick_skill))));};if(!yyGetBool(_inst.gmlte_blocking)){_inst.gmlmy_route_alpha=yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlroute_alpha;};var gmlcolSkin=gml_Script_s_get_skin_colour_by_index(_inst,_other,gmlskin);_inst.gmlcol_skin_r=yyfdivide(__yy_gml_errCheck(color_get_red(gmlcolSkin)),255);_inst.gmlcol_skin_g=yyfdivide(__yy_gml_errCheck(color_get_green(gmlcolSkin)), 255);_inst.gmlcol_skin_b=yyfdivide(__yy_gml_errCheck(color_get_blue(gmlcolSkin)),255);if(yyGetBool(_inst.gmlte_blocking)){_inst.gmlposition=5;};if(yyGetBool(_inst.gmlpmap)){{_inst.gmlpos_name=yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(string_copy(ds_map_find_value(_inst.gmlpmap,"fname"),1,1)),"."),__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"lname")))," ["),__yy_gml_errCheck(gml_Script_s_get_string_position(_inst,_other,ds_map_find_value(_inst.gmlpmap,"position")))),"]");_inst.gmlpos_name2=yyfplus(yyfplus(__yy_gml_errCheck(string_copy(ds_map_find_value(_inst.gmlpmap, "fname"),1,1)),"."),__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"lname")));if(yyfequal(_inst.gmlposition,4)){_inst.gmlpos_name3=yyfplus(yyfplus(__yy_gml_errCheck(string_copy(ds_map_find_value(_inst.gmlpmap,"fname"),1,1)),"."),__yy_gml_errCheck(string_copy(ds_map_find_value(_inst.gmlpmap,"lname"),1,1)));};if(yyfequal(_inst.gmlposition,3)){_inst.gmlpos_name3=yyfplus(yyfplus(__yy_gml_errCheck(string_copy(ds_map_find_value(_inst.gmlpmap,"fname"),1,1)),"."),__yy_gml_errCheck(string_copy(ds_map_find_value(_inst.gmlpmap, "lname"),1,1)));};if(!yyGetBool(ds_map_exists(_inst.gmlpmap,"randnum"))){ds_map_set(_inst.gmlpmap,"randnum",irandom(999));};var ___sw1038___=yyfmod(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"randnum")),3);var ___swc1039___=-1;if(yyCompareVal(___sw1038___,0,g_GMLMathEpsilon,false)==0){___swc1039___=0;}else if(yyCompareVal(___sw1038___,1,g_GMLMathEpsilon,false)==0){___swc1039___=1;}else if(yyCompareVal(___sw1038___,2,g_GMLMathEpsilon,false)==0){___swc1039___=2;}switch(___swc1039___){case 0:{_inst.gmlcleats=_inst.gmlshirt; break;}case 1:{_inst.gmlcleats=_inst.gmlpants;break;}case 2:{_inst.gmlcleats=_inst.gmlstripe;break;}};if(yyfequal(yyfplus(yyfplus(__yy_gml_errCheck(_inst.gmlcleats[__yy_gml_array_check_index(0,_inst.gmlcleats)]),__yy_gml_errCheck(_inst.gmlcleats[__yy_gml_array_check_index(1,_inst.gmlcleats)])),__yy_gml_errCheck(_inst.gmlcleats[__yy_gml_array_check_index(2,_inst.gmlcleats)])),0)){{_inst.gmlcleats=__yy_gml_array_check(_inst.gmlcleats,2556554615);_inst.gmlcleats[__yy_gml_array_check_index_set(0)]=255; _inst.gmlcleats[__yy_gml_array_check_index_set(1)]=255;_inst.gmlcleats[__yy_gml_array_check_index_set(2)]=255;};};};};gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("Setup player[",(yyGetBool(_inst.gmloffense)?"OF":"DF")),"] ["),(yyfequal(_inst.gmlpmap,(-4))?"Anon":ds_map_find_value(_inst.gmlpmap,"lname"))),"] with roster: "),__yy_gml_errCheck(gml_Script_roster_short_desc(_inst,_other,_inst.gmlplayer_roster))));}}function gml_GlobalScript_s_set_anim(_inst,_other,argument0){(_inst.gmls_set_anim=__yy_method(_inst, gml_Script_s_set_anim));}function gml_Script_s_set_anim(_inst,_other,argument0){{_inst.gmlanim=argument0;_inst.image_speed=1;var gmlball=global.gmlmaster_ball;var ___sw1042___=_inst.gmlanim;var ___swc1043___=-1;if(yyCompareVal(___sw1042___,0,g_GMLMathEpsilon,false)==0){___swc1043___=0;}else if(yyCompareVal(___sw1042___,1,g_GMLMathEpsilon,false)==0){___swc1043___=1;}else if(yyCompareVal(___sw1042___,2,g_GMLMathEpsilon,false)==0){___swc1043___=2;}else if(yyCompareVal(___sw1042___,3,g_GMLMathEpsilon,false)==0){ ___swc1043___=3;}else if(yyCompareVal(___sw1042___,4,g_GMLMathEpsilon,false)==0){___swc1043___=4;}else if(yyCompareVal(___sw1042___,5,g_GMLMathEpsilon,false)==0){___swc1043___=5;}else if(yyCompareVal(___sw1042___,6,g_GMLMathEpsilon,false)==0){___swc1043___=6;}else if(yyCompareVal(___sw1042___,7,g_GMLMathEpsilon,false)==0){___swc1043___=7;}else if(yyCompareVal(___sw1042___,8,g_GMLMathEpsilon,false)==0){___swc1043___=8;}else if(yyCompareVal(___sw1042___,9,g_GMLMathEpsilon,false)==0){___swc1043___=9;}else if(yyCompareVal(___sw1042___, 10,g_GMLMathEpsilon,false)==0){___swc1043___=10;}else if(yyCompareVal(___sw1042___,11,g_GMLMathEpsilon,false)==0){___swc1043___=11;}else if(yyCompareVal(___sw1042___,12,g_GMLMathEpsilon,false)==0){___swc1043___=12;}else if(yyCompareVal(___sw1042___,13,g_GMLMathEpsilon,false)==0){___swc1043___=13;}else if(yyCompareVal(___sw1042___,14,g_GMLMathEpsilon,false)==0){___swc1043___=14;}else if(yyCompareVal(___sw1042___,15,g_GMLMathEpsilon,false)==0){___swc1043___=15;}else if(yyCompareVal(___sw1042___,16,g_GMLMathEpsilon, false)==0){___swc1043___=16;}else if(yyCompareVal(___sw1042___,17,g_GMLMathEpsilon,false)==0){___swc1043___=17;}else if(yyCompareVal(___sw1042___,18,g_GMLMathEpsilon,false)==0){___swc1043___=18;}else if(yyCompareVal(___sw1042___,19,g_GMLMathEpsilon,false)==0){___swc1043___=19;}switch(___swc1043___){case 0:{_inst.sprite_index=gml_Script_s_spr_from_bt(_inst,_other,YYASSET_REF(0x01000025),_inst.gmlbody_type);{var __yy__v1144=GetWithArray(gmlball);for(var __yy__v1145 in __yy__v1144){if(!__yy__v1144.hasOwnProperty(__yy__v1145))continue; var __yy__v1146=__yy__v1144[__yy__v1145];if(yyfequal(__yy__v1146.gmlholder,_inst.id)){_inst.sprite_index=gml_Script_s_spr_from_bt(__yy__v1146,_inst,YYASSET_REF(0x01000026),_inst.gmlbody_type);};}};if((yyGetBool(yyfequal(_inst.gmlposition,1)))&&(yyGetBool(yyfequal(instance_number(YYASSET_REF(0x0000006F)),0)))){_inst.image_index=2;}else {_inst.image_index=0;};_inst.image_speed=0;_inst.gmltackling=(-4);break;}case 1:{_inst.sprite_index=gml_Script_s_spr_from_bt(_inst,_other,YYASSET_REF(0x01000025),_inst.gmlbody_type); _inst.image_index=1;_inst.image_speed=0;_inst.gmltackling=(-4);break;}case 2:{if(yyfequal(yyInst(_inst,_other,gmlball).gmlholder,_inst.id)){_inst.sprite_index=gml_Script_s_spr_from_bt(_inst,_other,YYASSET_REF(0x0100002E),_inst.gmlbody_type);}else {_inst.sprite_index=gml_Script_s_spr_from_bt(_inst,_other,YYASSET_REF(0x0100002D),_inst.gmlbody_type);};_inst.image_index=0;_inst.image_speed=min(_inst.speed,1);_inst.gmltackling=(-4);break;}case 3:{_inst.sprite_index=gml_Script_s_spr_from_bt(_inst,_other, YYASSET_REF(0x0100003D),_inst.gmlbody_type);_inst.image_index=0;break;}case 4:{gml_Script_s_sound_oof(_inst,_other);if((yyGetBool(yyfequal(_inst.sprite_index,YYASSET_REF(0x0100003E))))||(yyGetBool(yyfequal(_inst.sprite_index,YYASSET_REF(0x01000040))))||(yyGetBool(yyfequal(_inst.sprite_index,YYASSET_REF(0x01000041))))){return;};if((yyGetBool(yyfequal(_inst.sprite_index,YYASSET_REF(0x010000B7))))||(yyGetBool(yyfequal(_inst.sprite_index,YYASSET_REF(0x01000132))))||(yyGetBool(yyfequal(_inst.sprite_index, YYASSET_REF(0x010000FB))))){return;};if((yyGetBool(yyfequal(_inst.sprite_index,YYASSET_REF(0x010000F8))))||(yyGetBool(yyfequal(_inst.sprite_index,YYASSET_REF(0x0100006D))))||(yyGetBool(yyfequal(_inst.sprite_index,YYASSET_REF(0x010000E7))))){return;};_inst.sprite_index=gml_Script_s_spr_from_bt(_inst,_other,YYASSET_REF(0x0100003E),_inst.gmlbody_type);if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlholder,_inst.id)))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,gmlball).gmlis_dead)))){{var gmlfumble_chance=10; if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_difficulty,2)){gmlfumble_chance=yyfminus(gmlfumble_chance,1);};if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_difficulty,3)){gmlfumble_chance=yyfminus(gmlfumble_chance,1);};{var __yy__v1147=GetWithArray(YYASSET_REF(0x00000076));for(var __yy__v1148 in __yy__v1147){if(!__yy__v1147.hasOwnProperty(__yy__v1148))continue;var __yy__v1149=__yy__v1147[__yy__v1148];if(yyfnotequal(__yy__v1149.gmltype,0)){gmlfumble_chance=yyfminus(gmlfumble_chance, 2);};}};gml_Script_slog(_inst,_other,">>>>>>>>>>>>>>>>>>>>>>>>>");gml_Script_slog(_inst,_other,yyfplus("fumble_c = ",__yy_gml_errCheck(string(gmlfumble_chance))));gmlfumble_chance=irandom(gmlfumble_chance);if((yyGetBool(yyfless(_inst.x,400)))||(yyGetBool(yyfgreater(_inst.x,2200)))){gmlfumble_chance=1;};if((yyGetBool(!yyGetBool(gmlfumble_chance)))&&(yyGetBool(_inst.gmloffense))&&(yyGetBool(yyfnotequal(_inst.gmlposition,1)))&&(yyGetBool(!yyGetBool(gml_Script_s_is_kickoff(_inst,_other,true))))&&(yyGetBool(yyfnotequal(_inst.gmlplayer_roster, (-4))))){{gml_Script_slog(_inst,_other,">>>>>>>>>>>>>>>>>>>>>>>>> FUMBLE CHANCE!");var gmlcatching=yyftime(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(gml_Script_s_get_morale_from_roster(_inst,_other,_inst.gmlplayer_roster)),__yy_gml_errCheck(gml_Script_s_get_condition_squad_from_roster(_inst,_other,_inst.gmlplayer_roster)))),0.5);if((yyGetBool(yyInst(_inst,_other,gmlball).gmlholder))&&(yyGetBool(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmlpmap))){{var gmlskl=yyftime(__yy_gml_errCheck(gml_Script_s_get_attribute(_inst, _other,yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmlpmap,"skill")),10);var gmlatt=real(ds_map_find_value(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmlpmap,"attitude"));var gmlfmb=real(ds_map_find_value(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmlpmap,"stat_fumbles"));gml_Script_slog(_inst,_other,yyfplus("player_skill = ",__yy_gml_errCheck(string(gmlskl))));gml_Script_slog(_inst,_other,yyfplus("player_attit = ",__yy_gml_errCheck(string(gmlatt)))); gml_Script_slog(_inst,_other,yyfplus("stat_fumbles = ",__yy_gml_errCheck(string(gmlfmb))));gmlcatching=yyftime(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(gmlskl),__yy_gml_errCheck(gmlatt))),0.5);if(yyfgreater(max(gml_Script_s_rookie_age_internal(_inst,_other),real(ds_map_find_value(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmlpmap,"age"))),gml_Script_s_rookie_age_internal(_inst,_other))){gmlcatching=yyfplus(gmlcatching,yyftime(__yy_gml_errCheck(gmlfmb),50));};gml_Script_slog(_inst, _other,yyfplus("player catching = ",__yy_gml_errCheck(string(gmlcatching))));};}else {gml_Script_slog(_inst,_other,yyfplus("catching squad = ",__yy_gml_errCheck(string(gmlcatching))));};gmlcatching=yyfplus(gmlcatching,yyftime(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldifficulty),2));gmlcatching=clamp(gmlcatching,1,100);gml_Script_slog(_inst,_other,yyfplus("final catching = ",__yy_gml_errCheck(string(gmlcatching))));var gmlcatch_dice=irandom_range((-100),85);gml_Script_slog(_inst, _other,yyfplus("catch_dice = ",__yy_gml_errCheck(string(gmlcatch_dice))));if((yyGetBool(yyfgreater(gmlcatch_dice,gmlcatching)))||(yyGetBool(!yyGetBool(irandom(49))))){gml_Script_s_drop_ball(_inst,_other,true);}else {_inst.sprite_index=gml_Script_s_spr_from_bt(_inst,_other,YYASSET_REF(0x01000040),_inst.gmlbody_type);};};}else {_inst.sprite_index=gml_Script_s_spr_from_bt(_inst,_other,YYASSET_REF(0x01000040),_inst.gmlbody_type);};};};_inst.image_index=0;_inst.gmltackling=(-4);_inst.gmltacklecount=0;break; }case 5:{_inst.image_index=0;_inst.sprite_index=gml_Script_s_spr_from_bt(_inst,_other,YYASSET_REF(0x01000043),_inst.gmlbody_type);if(yyfequal(yyInst(_inst,_other,gmlball).gmlholder,_inst.id)){{if(yyGetBool(gml_Script_s_do_touchback(_inst,_other))){return;};if((yyGetBool(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice)))&&(yyGetBool((yyGetBool(yyfequal(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmlposition,1)))||(yyGetBool(yyInst(_inst,_other,yyInst(_inst,_other, gmlball).gmlholder).gmlqb_rushing))))){{if(yyfgreater(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmlgoaldist,100)){{if((yyGetBool((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldrivedir,(-1))))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).x,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim),30))))))||(yyGetBool((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldrivedir,1)))&&(yyGetBool(yyfless(yyInst(_inst, _other,yyInst(_inst,_other,gmlball).gmlholder).x,yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim),30))))))){{gml_Script_s_set_anim(_inst,_other,19);return;};}else {if((yyGetBool(yyfless(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmlremaining_dist,0)))||(yyGetBool(yyfgreater(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmlremaining_dist,60)))){_inst.sprite_index=gml_Script_s_spr_from_bt(_inst,_other,YYASSET_REF(0x01000176),_inst.gmlbody_type); };};};};};};};};_inst.hspeed=yyftime(_inst.hspeed,1.9);_inst.vspeed=yyftime(_inst.vspeed,1.7);_inst.gmltackling=(-4);gml_Script_s_sound_dive(_inst,_other);break;}case 6:{if(yyfequal(yyInst(_inst,_other,gmlball).gmlholder,_inst.id)){{if((yyGetBool(yyfequal(_inst.sprite_index,YYASSET_REF(0x0100009D))))||(yyGetBool(yyfequal(_inst.sprite_index,YYASSET_REF(0x010000FA))))||(yyGetBool(yyfequal(_inst.sprite_index,YYASSET_REF(0x01000054))))){_inst.sprite_index=gml_Script_s_spr_from_bt(_inst,_other,YYASSET_REF(0x01000026), _inst.gmlbody_type);}else {_inst.sprite_index=gml_Script_s_spr_from_bt(_inst,_other,YYASSET_REF(0x01000033),_inst.gmlbody_type);};};}else {_inst.sprite_index=gml_Script_s_spr_from_bt(_inst,_other,YYASSET_REF(0x01000032),_inst.gmlbody_type);};_inst.image_index=0;_inst.gmltackling=(-4);break;}case 7:{if(yyGetBool(gml_Script_s_do_touchback(_inst,_other))){return;}else {if((yyGetBool(yyfless(_inst.gmlgoaldist,40)))&&(yyGetBool(_inst.gmlintheclear))){_inst.sprite_index=gml_Script_s_spr_from_bt(_inst,_other, YYASSET_REF(0x0100016B),_inst.gmlbody_type);}else {_inst.sprite_index=gml_Script_s_spr_from_bt(_inst,_other,YYASSET_REF(0x0100003C),_inst.gmlbody_type);};};_inst.image_index=0;_inst.hspeed=yyftime(_inst.hspeed,0.1);_inst.gmltackling=(-4);break;}case 8:{gml_Script_s_sound_dive(_inst,_other);gml_Script_s_sound_audience_catch(_inst,_other);_inst.sprite_index=gml_Script_s_spr_from_bt(_inst,_other,YYASSET_REF(0x0100003A),_inst.gmlbody_type);(g_yyPrePostObject__=_inst.gmljumps,_inst.gmljumps=(g_yyPrePostObject__ instanceof Long?_inst.gmljumps.subtract(1):--_inst.gmljumps), g_yyPrePostObject__);_inst.image_index=0;_inst.gmltackling=(-4);break;}case 9:{_inst.sprite_index=gml_Script_s_spr_from_bt(_inst,_other,YYASSET_REF(0x01000035),_inst.gmlbody_type);(g_yyPrePostObject__=_inst.gmlstiff_arm,_inst.gmlstiff_arm=(g_yyPrePostObject__ instanceof Long?_inst.gmlstiff_arm.subtract(1):--_inst.gmlstiff_arm),g_yyPrePostObject__);_inst.gmltackling=(-4);global.gmlflickVelX=0;global.gmlflickVelY=0;break;}case 10:{gml_Script_s_sound_dive(_inst,_other);_inst.sprite_index=gml_Script_s_spr_from_bt(_inst, _other,YYASSET_REF(0x01000037),_inst.gmlbody_type);_inst.image_index=0;_inst.gmltackling=(-4);break;}case 11:{_inst.sprite_index=gml_Script_s_spr_from_bt(_inst,_other,YYASSET_REF(0x01000028),_inst.gmlbody_type);{var __yy__v1150=GetWithArray(global.gmlmaster_ball);for(var __yy__v1151 in __yy__v1150){if(!__yy__v1150.hasOwnProperty(__yy__v1151))continue;var __yy__v1152=__yy__v1150[__yy__v1151];{if(yyfgreater(__yy__v1152.gmldragdist,85)){_inst.sprite_index=gml_Script_s_spr_from_bt(__yy__v1152,_inst,YYASSET_REF(0x0100002A), _inst.gmlbody_type);};}}};_inst.image_index=0;break;}case 12:{if(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,19)){_inst.sprite_index=gml_Script_s_spr_from_bt(_inst,_other,YYASSET_REF(0x0100002C),_inst.gmlbody_type);}else {_inst.sprite_index=gml_Script_s_spr_from_bt(_inst,_other,YYASSET_REF(0x0100002B),_inst.gmlbody_type);};_inst.image_index=0;gml_Script_s_sound_throw(_inst,_other);break;}case 13:{_inst.sprite_index=gml_Script_s_spr_from_bt(_inst,_other,YYASSET_REF(0x01000047),_inst.gmlbody_type); _inst.image_index=0;_inst.image_speed=0;break;}case 14:{_inst.hspeed=yyftime(__yy_gml_errCheck(_inst.image_xscale),0.85);_inst.sprite_index=gml_Script_s_spr_from_bt(_inst,_other,YYASSET_REF(0x01000045),_inst.gmlbody_type);_inst.image_index=0;break;}case 15:{_inst.sprite_index=gml_Script_s_spr_from_bt(_inst,_other,YYASSET_REF(0x01000046),_inst.gmlbody_type);_inst.image_index=0;break;}case 16:{_inst.sprite_index=gml_Script_s_spr_from_bt(_inst,_other,YYASSET_REF(0x01000049),_inst.gmlbody_type);_inst.image_index=0; break;}case 17:{_inst.sprite_index=gml_Script_s_spr_from_bt(_inst,_other,YYASSET_REF(0x0100004C),_inst.gmlbody_type);_inst.image_index=irandom(1);break;}case 18:{_inst.sprite_index=gml_Script_s_spr_from_bt(_inst,_other,(yyGetBool(irandom(1))?YYASSET_REF(0x0100010D):YYASSET_REF(0x01000128)),_inst.gmlbody_type);_inst.image_index=0;break;}case 19:{_inst.sprite_index=gml_Script_s_spr_from_bt(_inst,_other,YYASSET_REF(0x0100009D),_inst.gmlbody_type);_inst.image_index=0;_inst.hspeed=yyftime(_inst.hspeed,0.1); _inst.vspeed=yyftime(_inst.vspeed,0.1);break;}};}}function gml_GlobalScript_s_set_position_offense(_inst,_other){(_inst.gmls_set_position_offense=__yy_method(_inst,gml_Script_s_set_position_offense));}function gml_Script_s_set_position_offense(_inst,_other){{_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim),__yy_gml_errCheck(yyftime(20,__yy_gml_errCheck(_inst.gmlfacing))));var gmlQB_X=100;var ___sw1054___=_inst.gmlinum;var ___swc1055___=-1;if(yyCompareVal(___sw1054___, 1,g_GMLMathEpsilon,false)==0){___swc1055___=0;}else if(yyCompareVal(___sw1054___,2,g_GMLMathEpsilon,false)==0){___swc1055___=1;}else if(yyCompareVal(___sw1054___,3,g_GMLMathEpsilon,false)==0){___swc1055___=2;}else if(yyCompareVal(___sw1054___,4,g_GMLMathEpsilon,false)==0){___swc1055___=3;}else if(yyCompareVal(___sw1054___,5,g_GMLMathEpsilon,false)==0){___swc1055___=4;}else if(yyCompareVal(___sw1054___,6,g_GMLMathEpsilon,false)==0){___swc1055___=5;}else if(yyCompareVal(___sw1054___,7,g_GMLMathEpsilon,false)==0){ ___swc1055___=6;}else if(yyCompareVal(___sw1054___,8,g_GMLMathEpsilon,false)==0){___swc1055___=7;}else if(yyCompareVal(___sw1054___,9,g_GMLMathEpsilon,false)==0){___swc1055___=8;}else if(yyCompareVal(___sw1054___,10,g_GMLMathEpsilon,false)==0){___swc1055___=9;}else if(yyCompareVal(___sw1054___,11,g_GMLMathEpsilon,false)==0){___swc1055___=10;}switch(___swc1055___){case 0:{_inst.gmlposition=1;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlQB_X), __yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim;break;}case 1:{if((yyGetBool(irandom(1)))||(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice,2)))){{_inst.gmlposition=2;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlQB_X),__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim), 35);if(yyGetBool(irandom(1))){_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),35);};};}else {{_inst.gmlposition=2;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(gmlQB_X),35)),__yy_gml_errCheck(_inst.gmlfacing))));var ___sw1056___=irandom(2);var ___swc1057___=-1;if(yyCompareVal(___sw1056___,0,g_GMLMathEpsilon,false)==0){___swc1057___=0;}else if(yyCompareVal(___sw1056___, 1,g_GMLMathEpsilon,false)==0){___swc1057___=1;}else if(yyCompareVal(___sw1056___,2,g_GMLMathEpsilon,false)==0){___swc1057___=2;}switch(___swc1057___){case 0:{_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),17);break;}case 1:{_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),17);break;}case 2:{_inst.y=300;break;}};};};break;}case 2:{_inst.gmlposition=5;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim), __yy_gml_errCheck(yyftime(10,__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim;break;}case 3:{_inst.gmlposition=5;_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),15);break;}case 4:{_inst.gmlposition=5;_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),15);break;}case 5:{_inst.gmlposition=5;_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim), 30);break;}case 6:{_inst.gmlposition=5;_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),30);break;}case 7:{_inst.gmlposition=3;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim),__yy_gml_errCheck(yyftime(12,__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),60);var gmlrb=false;{var __yy__v1153=GetWithArray(YYASSET_REF(0x0000006C));for(var __yy__v1154 in __yy__v1153){ if(!__yy__v1153.hasOwnProperty(__yy__v1154))continue;var __yy__v1155=__yy__v1153[__yy__v1154];if((yyGetBool(yyfequal(__yy__v1155.gmlposition,2)))&&(yyGetBool(yyfgreaterequal(__yy__v1155.y,300)))){gmlrb=true;};}};if((yyGetBool(gmlrb))&&(yyGetBool(1))){{_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),45);_inst.gmlte_blocking=true;};};break;}case 8:{_inst.gmlposition=4;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim), __yy_gml_errCheck(yyftime(yyftime(20,__yy_gml_errCheck(irandom_range(1,2))),__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),__yy_gml_errCheck(random_range(100,120)));if((yyGetBool((yyGetBool(yyfgreater(_inst.y,300)))&&(yyGetBool(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim,300)))))||(yyGetBool((yyGetBool(yyfless(_inst.y,300)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim, 300)))))){_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),__yy_gml_errCheck(random_range(120,160)));};break;}case 9:{_inst.gmlposition=3;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim),__yy_gml_errCheck(yyftime(12,__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),60);var gmlrb=false;{var __yy__v1156=GetWithArray(YYASSET_REF(0x0000006C)); for(var __yy__v1157 in __yy__v1156){if(!__yy__v1156.hasOwnProperty(__yy__v1157))continue;var __yy__v1158=__yy__v1156[__yy__v1157];if((yyGetBool(yyfequal(__yy__v1158.gmlposition,2)))&&(yyGetBool(yyflessequal(__yy__v1158.y,300)))){gmlrb=true;};}};if(yyGetBool(gmlrb)){{_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),45);_inst.gmlte_blocking=true;};};break;}case 10:{_inst.gmlposition=4;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim), __yy_gml_errCheck(yyftime(yyftime(20,__yy_gml_errCheck(irandom_range(1,2))),__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),__yy_gml_errCheck(random_range(100,120)));if((yyGetBool((yyGetBool(yyfgreater(_inst.y,300)))&&(yyGetBool(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim,300)))))||(yyGetBool((yyGetBool(yyfless(_inst.y,300)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim, 300)))))){_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),__yy_gml_errCheck(random_range(120,160)));};break;}};_inst.gmlmy_route_name="";var ___sw1058___=_inst.gmlposition;var ___swc1059___=-1;if(yyCompareVal(___sw1058___,1,g_GMLMathEpsilon,false)==0){___swc1059___=0;}else if(yyCompareVal(___sw1058___,4,g_GMLMathEpsilon,false)==0){___swc1059___=1;}else if(yyCompareVal(___sw1058___,3,g_GMLMathEpsilon,false)==0){___swc1059___=2;}else if(yyCompareVal(___sw1058___, 2,g_GMLMathEpsilon,false)==0){___swc1059___=3;}switch(___swc1059___){case 0:{if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice)){{if((yyGetBool(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpractice_success,0)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice,3)))){{_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim),__yy_gml_errCheck(yyftime(40,__yy_gml_errCheck(_inst.gmlfacing))));_inst.gmlmy_route=path_duplicate(YYASSET_REF(0x05000016)); };};};}else {if(yyGetBool(irandom(1))){{_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim),__yy_gml_errCheck(yyftime(40,__yy_gml_errCheck(_inst.gmlfacing))));_inst.gmlmy_route=path_duplicate(YYASSET_REF(0x05000016));};};};break;}case 1:{if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice,3)){{if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpractice_success,0)){_inst.gmlmy_route=path_duplicate(YYASSET_REF(0x05000009));}else {_inst.gmlmy_route=path_duplicate(YYASSET_REF(0x0500000B)); };};}else {if((yyGetBool((yyGetBool(gml_Script_s_last_secs_of_half(_inst,_other,15)))&&(yyGetBool(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlscrimmage,40)))))||(yyGetBool(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlyards,10)))){{_inst.gmlmy_route_name=choose("route_slant","route_post","route_streak");};}else {if((yyGetBool(yyfless(_inst.y,200)))||(yyGetBool(yyfgreater(_inst.y,400)))){{if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlscrimmage,40)){_inst.gmlmy_route_name=choose("route_hitch", "route_slant","route_slant2","route_curl","route_dig1","route_dig2","route_dig3");}else {_inst.gmlmy_route_name=choose("route_hitch","route_slant","route_slant2","route_curl","route_dig1","route_dig2","route_dig3","route_post","route_streak");};};}else {{if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlscrimmage,40)){_inst.gmlmy_route_name=choose("route_hitch","route_slant","route_slant2","route_out1","route_out2","route_out3","route_curl","route_comeback","route_dig1","route_dig2","route_dig3"); }else {_inst.gmlmy_route_name=choose("route_hitch","route_slant","route_slant2","route_out1","route_out2","route_out3","route_curl","route_comeback","route_dig1","route_dig2","route_dig3","route_post","route_corner","route_streak");};};};};};break;}case 2:{if(yyGetBool(_inst.gmlte_blocking)){{_inst.gmlmy_route=path_duplicate(YYASSET_REF(0x05000015));};}else {if((yyGetBool(gml_Script_s_last_secs_of_half(_inst,_other,15)))&&(yyGetBool(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlscrimmage, 40)))){{_inst.gmlmy_route_name=choose("route_slant","route_post","route_streak");};}else {if(yyGetBool(irandom(1))){_inst.gmlmy_route_name=choose("route_fb_1","route_fb_2","route_fb_4","route_fb_flat");}else {_inst.gmlmy_route_name=choose("route_flat","route_slant","route_slant2","route_out1","route_out2","route_out3","route_curl","route_comeback","route_dig1","route_dig2","route_dig3","route_post","route_corner","route_streak");};};};break;}case 3:{var gmlshotgun=true;var gmlqby=0;{var __yy__v1159=GetWithArray(YYASSET_REF(0x0000006C)); for(var __yy__v1160 in __yy__v1159){if(!__yy__v1159.hasOwnProperty(__yy__v1160))continue;var __yy__v1161=__yy__v1159[__yy__v1160];{if((yyGetBool(yyfequal(__yy__v1161.gmlposition,1)))&&(yyGetBool(path_exists(__yy__v1161.gmlmy_route)))){{gmlqby=__yy__v1161.y;gmlshotgun=false;};};}}};if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice,2)){_inst.gmlmy_route=path_duplicate(YYASSET_REF(0x0500000F));}else {if(yyGetBool(gmlshotgun)){_inst.gmlmy_route_name=choose("route_fb_1","route_fb_2", "route_fb_3","route_fb_4","route_fb_flat","route_fb_flat2");}else {_inst.gmlmy_route_name=choose("route_fb_1","route_fb_2","route_fb_3","route_fb_4");};};break;}};if((yyGetBool(yyfnotequal(_inst.gmlmy_route_name,"")))&&(yyGetBool(yyfequal(_inst.gmlposition,4)))){{var gmldupe=false;{var __yy__v1162=GetWithArray(YYASSET_REF(0x0000006C));for(var __yy__v1163 in __yy__v1162){if(!__yy__v1162.hasOwnProperty(__yy__v1163))continue;var __yy__v1164=__yy__v1162[__yy__v1163];{if(yyfnotequal(_inst.id,__yy__v1164.id)){ {if((yyGetBool((yyGetBool(yyfequal(__yy__v1164.gmlmy_route_name,"route_slant")))||(yyGetBool(yyfequal(__yy__v1164.gmlmy_route_name,"route_slant2")))))&&(yyGetBool((yyGetBool(yyfequal(_inst.gmlmy_route_name,"route_slant")))||(yyGetBool(yyfequal(_inst.gmlmy_route_name,"route_slant2")))))){gmldupe=true;}else {if((yyGetBool((yyGetBool(yyfequal(__yy__v1164.gmlmy_route_name,"route_dig1")))||(yyGetBool(yyfequal(__yy__v1164.gmlmy_route_name,"route_dig2")))||(yyGetBool(yyfequal(__yy__v1164.gmlmy_route_name, "route_dig3")))))&&(yyGetBool((yyGetBool(yyfequal(_inst.gmlmy_route_name,"route_dig1")))||(yyGetBool(yyfequal(_inst.gmlmy_route_name,"route_dig2")))||(yyGetBool(yyfequal(_inst.gmlmy_route_name,"route_dig3")))))){gmldupe=true;}else {if((yyGetBool(yyfequal(__yy__v1164.gmlmy_route_name,"route_hitch")))&&(yyGetBool(yyfequal(_inst.gmlmy_route_name,"route_hitch")))){gmldupe=true;};};};};};}}};if(yyGetBool(gmldupe)){{var ___sw1060___=_inst.gmlmy_route_name;var ___swc1061___=-1;if(yyCompareVal(___sw1060___, "route_slant",g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1060___,"route_slant2",g_GMLMathEpsilon,false)==0){___swc1061___=0;}else if(yyCompareVal(___sw1060___,"route_dig1",g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1060___,"route_dig2",g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1060___,"route_dig3",g_GMLMathEpsilon,false)==0){___swc1061___=1;}else if(yyCompareVal(___sw1060___,"route_hitch",g_GMLMathEpsilon,false)==0){___swc1061___=2;}switch(___swc1061___){case 0:{_inst.gmlmy_route_name=choose("route_curl", "route_dig1","route_dig2","route_dig3","route_post","route_streak");break;}case 1:{_inst.gmlmy_route_name=choose("route_curl","route_slant","route_slant2","route_post","route_streak");break;}case 2:{_inst.gmlmy_route_name=choose("route_curl","route_slant","route_slant2","route_post","route_streak");break;}};};};};};var ___sw1062___=_inst.gmlmy_route_name;var ___swc1063___=-1;if(yyCompareVal(___sw1062___,"route_flat",g_GMLMathEpsilon,false)==0){___swc1063___=0;}else if(yyCompareVal(___sw1062___,"route_slant", g_GMLMathEpsilon,false)==0){___swc1063___=1;}else if(yyCompareVal(___sw1062___,"route_slant_fake",g_GMLMathEpsilon,false)==0){___swc1063___=2;}else if(yyCompareVal(___sw1062___,"route_slant2",g_GMLMathEpsilon,false)==0){___swc1063___=3;}else if(yyCompareVal(___sw1062___,"route_out1",g_GMLMathEpsilon,false)==0){___swc1063___=4;}else if(yyCompareVal(___sw1062___,"route_out2",g_GMLMathEpsilon,false)==0){___swc1063___=5;}else if(yyCompareVal(___sw1062___,"route_out3",g_GMLMathEpsilon,false)==0){___swc1063___=6; }else if(yyCompareVal(___sw1062___,"route_curl",g_GMLMathEpsilon,false)==0){___swc1063___=7;}else if(yyCompareVal(___sw1062___,"route_comeback",g_GMLMathEpsilon,false)==0){___swc1063___=8;}else if(yyCompareVal(___sw1062___,"route_dig1",g_GMLMathEpsilon,false)==0){___swc1063___=9;}else if(yyCompareVal(___sw1062___,"route_dig2",g_GMLMathEpsilon,false)==0){___swc1063___=10;}else if(yyCompareVal(___sw1062___,"route_dig3",g_GMLMathEpsilon,false)==0){___swc1063___=11;}else if(yyCompareVal(___sw1062___,"route_post", g_GMLMathEpsilon,false)==0){___swc1063___=12;}else if(yyCompareVal(___sw1062___,"route_corner",g_GMLMathEpsilon,false)==0){___swc1063___=13;}else if(yyCompareVal(___sw1062___,"route_streak",g_GMLMathEpsilon,false)==0){___swc1063___=14;}else if(yyCompareVal(___sw1062___,"route_fb_1",g_GMLMathEpsilon,false)==0){___swc1063___=15;}else if(yyCompareVal(___sw1062___,"route_fb_2",g_GMLMathEpsilon,false)==0){___swc1063___=16;}else if(yyCompareVal(___sw1062___,"route_fb_3",g_GMLMathEpsilon,false)==0){___swc1063___=17; }else if(yyCompareVal(___sw1062___,"route_fb_4",g_GMLMathEpsilon,false)==0){___swc1063___=18;}else if(yyCompareVal(___sw1062___,"route_fb_flat",g_GMLMathEpsilon,false)==0){___swc1063___=19;}else if(yyCompareVal(___sw1062___,"route_fb_flat2",g_GMLMathEpsilon,false)==0){___swc1063___=20;}else if(yyCompareVal(___sw1062___,"route_hitch",g_GMLMathEpsilon,false)==0){___swc1063___=21;}switch(___swc1063___){case 0:{_inst.gmlmy_route=path_duplicate(YYASSET_REF(0x05000000));break;}case 1:{_inst.gmlmy_route=path_duplicate(YYASSET_REF(0x05000001)); break;}case 2:{_inst.gmlmy_route=path_duplicate(_inst.gmlroute_slant_fake);break;}case 3:{_inst.gmlmy_route=path_duplicate(YYASSET_REF(0x05000002));break;}case 4:{_inst.gmlmy_route=path_duplicate(YYASSET_REF(0x05000005));break;}case 5:{_inst.gmlmy_route=path_duplicate(YYASSET_REF(0x05000006));break;}case 6:{_inst.gmlmy_route=path_duplicate(YYASSET_REF(0x05000007));break;}case 7:{_inst.gmlmy_route=path_duplicate(YYASSET_REF(0x05000003));break;}case 8:{_inst.gmlmy_route=path_duplicate(YYASSET_REF(0x05000004)); break;}case 9:{_inst.gmlmy_route=path_duplicate(YYASSET_REF(0x05000008));break;}case 10:{_inst.gmlmy_route=path_duplicate(YYASSET_REF(0x05000009));break;}case 11:{_inst.gmlmy_route=path_duplicate(YYASSET_REF(0x0500000A));break;}case 12:{_inst.gmlmy_route=path_duplicate(YYASSET_REF(0x0500000B));break;}case 13:{_inst.gmlmy_route=path_duplicate(YYASSET_REF(0x0500000C));break;}case 14:{_inst.gmlmy_route=path_duplicate(YYASSET_REF(0x0500000D));break;}case 15:{_inst.gmlmy_route=path_duplicate(YYASSET_REF(0x0500000E)); break;}case 16:{_inst.gmlmy_route=path_duplicate(YYASSET_REF(0x0500000F));break;}case 17:{_inst.gmlmy_route=path_duplicate(YYASSET_REF(0x05000010));break;}case 18:{_inst.gmlmy_route=path_duplicate(YYASSET_REF(0x05000011));break;}case 19:{_inst.gmlmy_route=path_duplicate(YYASSET_REF(0x05000013));break;}case 20:{_inst.gmlmy_route=path_duplicate(YYASSET_REF(0x05000014));break;}case 21:{_inst.gmlmy_route=path_duplicate(YYASSET_REF(0x05000017));break;}default :{break;}};if((yyGetBool(yyfequal(_inst.gmlfacing, (-1))))&&(yyGetBool(path_exists(_inst.gmlmy_route)))){{path_mirror(_inst.gmlmy_route);path_shift(_inst.gmlmy_route,__yy_gml_errCheck(-__yy_gml_errCheck(path_get_x(_inst.gmlmy_route,0))),0);};};_inst.gmlmy_route_startx=_inst.x;_inst.gmlmy_route_starty=_inst.y;}}function gml_GlobalScript_s_create_news_message(_inst,_other){(_inst.gmls_create_news_dyn_message=__yy_method(_inst,gml_Script_s_create_news_dyn_message));}function gml_Script_s_create_news_dyn_message(_inst,_other,argument0){{var gmlbx=yyfminus(__yy_gml_errCheck(display_get_gui_width()), 157);var gmlond=instance_create_layer(0,0,"PopUps",YYASSET_REF(0x00000008));var gmlbtn_1=instance_create_layer(gmlbx,215,"PopUps",YYASSET_REF(0x00000023));yyInst(_inst,_other,gmlond).gmlmsg_type=ds_map_find_value(argument0,"typ");yyInst(_inst,_other,gmlond).gmltext=string_hash_to_newline(ds_map_find_value(argument0,"txt"));var gml_pmap=ds_map_create();ds_map_set(gml_pmap,"teamid",real(ds_map_find_value(argument0,"pmap_teamid")));ds_map_set(gml_pmap,"position",real(ds_map_find_value(argument0,"pmap_position"))); ds_map_set(gml_pmap,"skin",real(ds_map_find_value(argument0,"pmap_skin")));ds_map_set(gml_pmap,"face_x",real(ds_map_find_value(argument0,"pmap_face_x")));ds_map_set(gml_pmap,"face_y",real(ds_map_find_value(argument0,"pmap_face_y")));yyInst(_inst,_other,gmlond).gmlpmap=gml_pmap;yyInst(_inst,_other,gmlbtn_1).gmltext=gml_Script_s_str(_inst,_other,"ui_Continue");yyInst(_inst,_other,gmlbtn_1).gmlonClickAction=kgml_Script_s_news_clear;yyInst(_inst,_other,gmlbtn_1).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst, _other,gmlond).depth),1);}}function gml_GlobalScript_s_set_position_defense(_inst,_other){(_inst.gmls_set_position_defense=__yy_method(_inst,gml_Script_s_set_position_defense));}function gml_Script_s_set_position_defense(_inst,_other){{_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim),__yy_gml_errCheck(yyftime(20,__yy_gml_errCheck(_inst.gmlfacing))));var ___sw1066___=_inst.gmlinum;var ___swc1067___=-1;if(yyCompareVal(___sw1066___,1,g_GMLMathEpsilon,false)==0){ ___swc1067___=0;}else if(yyCompareVal(___sw1066___,2,g_GMLMathEpsilon,false)==0){___swc1067___=1;}else if(yyCompareVal(___sw1066___,3,g_GMLMathEpsilon,false)==0){___swc1067___=2;}else if(yyCompareVal(___sw1066___,4,g_GMLMathEpsilon,false)==0){___swc1067___=3;}else if(yyCompareVal(___sw1066___,5,g_GMLMathEpsilon,false)==0){___swc1067___=4;}else if(yyCompareVal(___sw1066___,6,g_GMLMathEpsilon,false)==0){___swc1067___=5;}else if(yyCompareVal(___sw1066___,7,g_GMLMathEpsilon,false)==0){___swc1067___=6;}else if(yyCompareVal(___sw1066___, 8,g_GMLMathEpsilon,false)==0){___swc1067___=7;}else if(yyCompareVal(___sw1066___,9,g_GMLMathEpsilon,false)==0){___swc1067___=8;}else if(yyCompareVal(___sw1066___,10,g_GMLMathEpsilon,false)==0){___swc1067___=9;}else if(yyCompareVal(___sw1066___,11,g_GMLMathEpsilon,false)==0){___swc1067___=10;}switch(___swc1067___){case 0:{_inst.gmlposition=6;_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),18);break;}case 1:{_inst.gmlposition=6;_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst, _other,YYASSET_REF(0x00000069)).gmly_scrim),18);break;}case 2:{_inst.gmlposition=6;_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),36);break;}case 3:{_inst.gmlposition=6;_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),36);break;}case 4:{_inst.gmlposition=7;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(random_range(40,60)),__yy_gml_errCheck(_inst.gmlfacing)))); _inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),__yy_gml_errCheck(random_range(40,50)));if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldefensive_cover,3)){_inst.gmlposition=9;};if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldefensive_cover,0)){{_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim),__yy_gml_errCheck(yyftime(40,__yy_gml_errCheck(_inst.gmlfacing))));};};break;}case 5:{_inst.gmlposition=7; _inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(random_range(40,60)),__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),__yy_gml_errCheck(random_range(40,50)));if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldefensive_cover,3)){_inst.gmlposition=9;};if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldefensive_cover, 0)){{_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim),__yy_gml_errCheck(yyftime(40,__yy_gml_errCheck(_inst.gmlfacing))));};};break;}case 6:{_inst.gmlposition=9;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim),__yy_gml_errCheck(yyftime(140,__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),60);if((yyGetBool(yyfequal(yyInst(_inst,_other, YYASSET_REF(0x00000069)).gmldefensive_cover,1)))||(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldefensive_cover,3)))){{_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim),__yy_gml_errCheck(yyftime(180,__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim;};};if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldefensive_cover,0)){{_inst.gmlposition=7;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst, _other,YYASSET_REF(0x00000069)).gmlx_scrim),__yy_gml_errCheck(yyftime(20,__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),70);};};break;}case 7:{_inst.gmlposition=8;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim),__yy_gml_errCheck(yyftime(40,__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),100); if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim,300)){{_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),140);};};if((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldefensive_cover,3)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlyards,3)))){{_inst.gmlposition=9;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim),__yy_gml_errCheck(yyftime(100,__yy_gml_errCheck(_inst.gmlfacing)))); };};if(yyfgreaterequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldown,6)){_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim),__yy_gml_errCheck(yyftime(20,__yy_gml_errCheck(_inst.gmlfacing))));};break;}case 8:{_inst.gmlposition=8;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim),__yy_gml_errCheck(yyftime(40,__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim), 100);if(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim,300)){{_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),140);};};if((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldefensive_cover,3)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlyards,3)))){{_inst.gmlposition=9;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim),__yy_gml_errCheck(yyftime(100,__yy_gml_errCheck(_inst.gmlfacing)))); };};if(yyfgreaterequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldown,6)){_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim),__yy_gml_errCheck(yyftime(20,__yy_gml_errCheck(_inst.gmlfacing))));};break;}case 9:{_inst.gmlposition=7;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim),__yy_gml_errCheck(yyftime(80,__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim;if(yyfequal(yyInst(_inst, _other,YYASSET_REF(0x00000069)).gmldefensive_cover,0)){{_inst.gmlposition=9;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim),__yy_gml_errCheck(yyftime(80,__yy_gml_errCheck(_inst.gmlfacing))));};};break;}case 10:{_inst.gmlposition=9;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim),__yy_gml_errCheck(yyftime(160,__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim), 20);if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldefensive_cover,1)){{_inst.gmlposition=7;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim),__yy_gml_errCheck(yyftime(120,__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(random_range((-1),1)),20)));};};if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldefensive_cover, 3)){{_inst.gmlposition=7;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim),__yy_gml_errCheck(yyftime(140,__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(random_range((-1),1)),20)));};};if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldefensive_cover,0)){{_inst.gmlposition=7;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst, _other,YYASSET_REF(0x00000069)).gmlx_scrim),__yy_gml_errCheck(yyftime(20,__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),70);};};break;}};if(yyfnotequal(_inst.gmlposition,6)){_inst.y=yyfplus(_inst.y,_inst.gmlrandyards);};if(yyfless(_inst.x,280)){{var gmlyds_back=yyfminus(280,__yy_gml_errCheck(_inst.x));_inst.x=yyfminus(300,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlyds_back),2)));};}else {if(yyfgreater(_inst.x, 2320)){{var gmlyds_back=yyfminus(__yy_gml_errCheck(_inst.x),2320);_inst.x=yyfplus(2300,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlyds_back),2)));};};};}}function gml_GlobalScript_s_college_postseason(_inst,_other){(_inst.gmls_rm_postseason_init=__yy_method(_inst,gml_Script_s_rm_postseason_init));(_inst.gmls_btn_postseason_skip_loading=__yy_method(_inst,gml_Script_s_btn_postseason_skip_loading));(_inst.gmls_btn_postseason_skip=__yy_method(_inst,gml_Script_s_btn_postseason_skip));(_inst.gmls_btn_postseason_play=__yy_method(_inst, gml_Script_s_btn_postseason_play));(_inst.gmls_postseason_goto_home=__yy_method(_inst,gml_Script_s_postseason_goto_home));(_inst.gmls_btn_result_postseason_continue=__yy_method(_inst,gml_Script_s_btn_result_postseason_continue));(_inst.gmls_btn_postmatch_co_continue=__yy_method(_inst,gml_Script_s_btn_postmatch_co_continue));(_inst.gmls_btn_postmatch_co_league=__yy_method(_inst,gml_Script_s_btn_postmatch_co_league));(_inst.gmls_postseason_show_news=__yy_method(_inst,gml_Script_s_postseason_show_news)); (_inst.gmls_postseason_show_finals=__yy_method(_inst,gml_Script_s_postseason_show_finals));(_inst.gmls_postseason_show_next_result=__yy_method(_inst,gml_Script_s_postseason_show_next_result));(_inst.gmls_postseason_show_finals_result=__yy_method(_inst,gml_Script_s_postseason_show_finals_result));(_inst.gmls_btn_postseason_news_skip=__yy_method(_inst,gml_Script_s_btn_postseason_news_skip));(_inst.gmls_btn_postseason_news_continue=__yy_method(_inst,gml_Script_s_btn_postseason_news_continue));(_inst.gmls_postseason_results=__yy_method(_inst, gml_Script_s_postseason_results));(_inst.gmls_create_postseason_result=__yy_method(_inst,gml_Script_s_create_postseason_result));(_inst.gmls_postseason_results_data_sort=__yy_method(_inst,gml_Script_s_postseason_results_data_sort));(_inst.gmls_get_postseason_result_by_cid=__yy_method(_inst,gml_Script_s_get_postseason_result_by_cid));(_inst.gmls_get_competition_win_access=__yy_method(_inst,gml_Script_s_get_competition_win_access));(_inst.gmls_get_fix_access_string=__yy_method(_inst,gml_Script_s_get_fix_access_string)); (_inst.gmls_get_fix_result_string=__yy_method(_inst,gml_Script_s_get_fix_result_string));(_inst.gmls_skip_postseason_until_human_match=__yy_method(_inst,gml_Script_s_skip_postseason_until_human_match));(_inst.gmls_skip_postseason_chunk=__yy_method(_inst,gml_Script_s_skip_postseason_chunk));}function gml_Script____struct___144_s_rm_postseason_init_gml_GlobalScript_s_college_postseason(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___144_s_rm_postseason_init_gml_GlobalScript_s_college_postseason"; }if(gml_Script____struct___144_s_rm_postseason_init_gml_GlobalScript_s_college_postseason.prototype.__type===undefined){gml_Script____struct___144_s_rm_postseason_init_gml_GlobalScript_s_college_postseason.prototype.__type="gml_Script____struct___144_s_rm_postseason_init_gml_GlobalScript_s_college_postseason";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___144_s_rm_postseason_init_gml_GlobalScript_s_college_postseason.prototype);{var $$args=Array.prototype.slice.call(arguments); {_inst.gmlimage=YYASSET_REF(0x0100008E);_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(0),$$args)];}}}}function gml_Script____struct___145_s_rm_postseason_init_gml_GlobalScript_s_college_postseason(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___145_s_rm_postseason_init_gml_GlobalScript_s_college_postseason";}if(gml_Script____struct___145_s_rm_postseason_init_gml_GlobalScript_s_college_postseason.prototype.__type===undefined){gml_Script____struct___145_s_rm_postseason_init_gml_GlobalScript_s_college_postseason.prototype.__type="gml_Script____struct___145_s_rm_postseason_init_gml_GlobalScript_s_college_postseason"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___145_s_rm_postseason_init_gml_GlobalScript_s_college_postseason.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlmode=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(3),$$args)];_inst.visible=$$args[__yy_gml_array_check_index(2+(4), $$args)];}}}}function gml_Script____struct___146_s_rm_postseason_init_gml_GlobalScript_s_college_postseason(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___146_s_rm_postseason_init_gml_GlobalScript_s_college_postseason";}if(gml_Script____struct___146_s_rm_postseason_init_gml_GlobalScript_s_college_postseason.prototype.__type===undefined){gml_Script____struct___146_s_rm_postseason_init_gml_GlobalScript_s_college_postseason.prototype.__type="gml_Script____struct___146_s_rm_postseason_init_gml_GlobalScript_s_college_postseason"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___146_s_rm_postseason_init_gml_GlobalScript_s_college_postseason.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlmode=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(3),$$args)];}}}}function gml_Script____struct___147_s_rm_postseason_init_gml_GlobalScript_s_college_postseason(_inst, _other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___147_s_rm_postseason_init_gml_GlobalScript_s_college_postseason";}if(gml_Script____struct___147_s_rm_postseason_init_gml_GlobalScript_s_college_postseason.prototype.__type===undefined){gml_Script____struct___147_s_rm_postseason_init_gml_GlobalScript_s_college_postseason.prototype.__type="gml_Script____struct___147_s_rm_postseason_init_gml_GlobalScript_s_college_postseason";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst, gml_Script____struct___147_s_rm_postseason_init_gml_GlobalScript_s_college_postseason.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.visible=false;_inst.gmlimage=YYASSET_REF(0x01000090);_inst.gmladd=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlimage_only=true;_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlgp_mapped_button=32773;}}}}function gml_Script____struct___148_s_rm_postseason_init_gml_GlobalScript_s_college_postseason(_inst, _other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___148_s_rm_postseason_init_gml_GlobalScript_s_college_postseason";}if(gml_Script____struct___148_s_rm_postseason_init_gml_GlobalScript_s_college_postseason.prototype.__type===undefined){gml_Script____struct___148_s_rm_postseason_init_gml_GlobalScript_s_college_postseason.prototype.__type="gml_Script____struct___148_s_rm_postseason_init_gml_GlobalScript_s_college_postseason";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst, gml_Script____struct___148_s_rm_postseason_init_gml_GlobalScript_s_college_postseason.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.visible=false;_inst.gmlimage=YYASSET_REF(0x01000092);_inst.gmladd=1;_inst.gmlimage_only=true;_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlgp_mapped_button=32774;}}}}function gml_Script____struct___149_s_rm_postseason_init_gml_GlobalScript_s_college_postseason(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___149_s_rm_postseason_init_gml_GlobalScript_s_college_postseason"; }if(gml_Script____struct___149_s_rm_postseason_init_gml_GlobalScript_s_college_postseason.prototype.__type===undefined){gml_Script____struct___149_s_rm_postseason_init_gml_GlobalScript_s_college_postseason.prototype.__type="gml_Script____struct___149_s_rm_postseason_init_gml_GlobalScript_s_college_postseason";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___149_s_rm_postseason_init_gml_GlobalScript_s_college_postseason.prototype);{var $$args=Array.prototype.slice.call(arguments); {_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmladd=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(3),$$args)];}}}}function gml_Script____struct___150_s_rm_postseason_init_gml_GlobalScript_s_college_postseason(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___150_s_rm_postseason_init_gml_GlobalScript_s_college_postseason"; }if(gml_Script____struct___150_s_rm_postseason_init_gml_GlobalScript_s_college_postseason.prototype.__type===undefined){gml_Script____struct___150_s_rm_postseason_init_gml_GlobalScript_s_college_postseason.prototype.__type="gml_Script____struct___150_s_rm_postseason_init_gml_GlobalScript_s_college_postseason";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___150_s_rm_postseason_init_gml_GlobalScript_s_college_postseason.prototype);{var $$args=Array.prototype.slice.call(arguments); {_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmladd=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(3),$$args)];}}}}function gml_Script_s_rm_postseason_init(_inst,_other){{gml_Script_s_init_rm(_inst,_other);_inst.gmlbtns=__yy_gml_array_create([]);_inst.gmlmode=3;gml_Script_s_create_title(_inst,_other,gml_Script_s_str(_inst,_other,"ui_League"),undefined, true);_inst.gmlb_back=gml_Script_s_create_button(_inst,_other,8,232,__yy_gml_object_create(_inst,(_inst.gml___struct___144=__yy_method(_inst,gml_Script____struct___144_s_rm_postseason_init_gml_GlobalScript_s_college_postseason)),kgml_Script_s_postseason_goto_home));_inst.gmlb_skip=gml_Script_s_create_button(_inst,_other,282,232,__yy_gml_object_create(_inst,(_inst.gml___struct___145=__yy_method(_inst,gml_Script____struct___145_s_rm_postseason_init_gml_GlobalScript_s_college_postseason)),gml_Script_s_str(_inst, _other,"ui_Skip"),2,kgml_Script_s_btn_postseason_skip_loading,2.8125,!yyGetBool(gml_Script_s_is_human_in_week(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek))));_inst.gmlb_continue=gml_Script_s_create_button(_inst,_other,378,232,__yy_gml_object_create(_inst,(_inst.gml___struct___146=__yy_method(_inst,gml_Script____struct___146_s_rm_postseason_init_gml_GlobalScript_s_college_postseason)),gml_Script_s_str(_inst,_other,"ui_Play"),3,kgml_Script_s_btn_postseason_play,2.8125));_inst.gmlb_left=gml_Script_s_create_button(_inst, _other,0,100,__yy_gml_object_create(_inst,(_inst.gml___struct___147=__yy_method(_inst,gml_Script____struct___147_s_rm_postseason_init_gml_GlobalScript_s_college_postseason)),(-1),kgml_Script_s_league_btn_week),YYASSET_REF(0x00000025));_inst.gmlb_right=gml_Script_s_create_button(_inst,_other,448,100,__yy_gml_object_create(_inst,(_inst.gml___struct___148=__yy_method(_inst,gml_Script____struct___148_s_rm_postseason_init_gml_GlobalScript_s_college_postseason)),kgml_Script_s_league_btn_week),YYASSET_REF(0x00000025)); _inst.gmlb_up=gml_Script_s_create_button(_inst,_other,230,190,__yy_gml_object_create(_inst,(_inst.gml___struct___149=__yy_method(_inst,gml_Script____struct___149_s_rm_postseason_init_gml_GlobalScript_s_college_postseason)),gml_Script_s_str(_inst,_other,"ui_PageUp"),kgml_Script_s_league_btn_page,(-1),3.125));_inst.gmlb_down=gml_Script_s_create_button(_inst,_other,340,190,__yy_gml_object_create(_inst,(_inst.gml___struct___150=__yy_method(_inst,gml_Script____struct___150_s_rm_postseason_init_gml_GlobalScript_s_college_postseason)), gml_Script_s_str(_inst,_other,"ui_PageDown"),kgml_Script_s_league_btn_page,1,3.125));gml_Script_s_league_create_schedule_panels(_inst,_other);}}function gml_Script_s_btn_postseason_skip_loading(_inst,_other){{gml_Script_s_loading_start(_inst,_other,kgml_Script_s_btn_postseason_skip);}}function gml_Script_s_btn_postseason_skip(_inst,_other){{var gmlis_there_human=gml_Script_s_skip_postseason_until_human_match(_inst,_other);if(yyGetBool(gmlis_there_human)){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstage=1; gml_Script_s_goto_room(_inst,_other,YYASSET_REF(0x0300000E));};}else {{gml_Script_slogf(_inst,_other,"*** show finals");gml_Script_s_postseason_show_finals(_inst,_other,kgml_Script_s_postseason_goto_home);};};}}function gml_Script_s_btn_postseason_play(_inst,_other){{if(yyGetBool(gml_Script_s_is_human_in_week(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek))){{gml_Script_slogf(_inst,_other,"there's a human in ps chunk");gml_Script_s_play(_inst,_other,0);};}else {{var gmlnews_week=yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlweek;gml_Script_s_skip_postseason_chunk(_inst,_other);gml_Script_s_postseason_show_news(_inst,_other,gmlnews_week,kgml_Script_s_postseason_goto_home);};};}}function gml_Script_s_postseason_goto_home(_inst,_other){{gml_Script_slogf(_inst,_other,"*** postseason go home");yyInst(_inst,_other,global.gmlg_m).gmlstage=1;gml_Script_s_play(_inst,_other,0);}}function gml_Script_s_btn_result_postseason_continue(_inst,_other,argument0){{if(yyfequal(argument0,_inst.undefined)){ argument0=(-4);};}{gml_Script_s_postseason_show_news(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,argument0);}}function gml_Script_s_btn_postmatch_co_continue(_inst,_other){{gml_Script_s_btn_result_postseason_continue(_inst,_other,_inst.gmlpost_click_action);}}function gml_Script_s_btn_postmatch_co_league(_inst,_other){{gml_Script_s_btn_result_postseason_continue(_inst,_other,_inst.gmlpost_click_action);}}function gml_Script_s_postseason_show_news(_inst,_other,argument0,argument1){ {if(yyfequal(argument1,_inst.undefined)){argument1=(-4);};}{if((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlpostseason_chunk_news_last_shown,argument0)))||(yyGetBool(!yyGetBool(gml_Script_s_is_co_postseason(_inst,_other,argument0))))){{gml_Script_slogf(_inst,_other,"*** postseason news already shown or still in regular season, proceeding");gml_Script_s_msg_clear(_inst,_other);if(yyfnotequal(argument1,(-4))){__yyg_call_method(argument1)(_inst,_other);};};}else {{gml_Script_slogf(_inst, _other,"*** show postseason news for %1",gml_Script_s_get_week_name(_inst,_other,argument0));yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlpostseason_chunk_results=gml_Script_s_postseason_results(_inst,_other,argument0);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlpostseason_chunk_news_post_action=argument1;yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlpostseason_chunk_news_last_shown=argument0;gml_Script_s_postseason_show_next_result(_inst,_other);};};}}function gml_Script_s_postseason_show_finals(_inst, _other,argument0){{if(yyfequal(argument0,_inst.undefined)){argument0=(-4);};}{var gml_week=gml_Script_s_get_last_schedule_week(_inst,_other);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlpostseason_chunk_results=gml_Script_s_postseason_results(_inst,_other,gml_week);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlpostseason_chunk_news_post_action=argument0;yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlpostseason_chunk_news_last_shown=gml_week;gml_Script_s_postseason_show_finals_result(_inst,_other); }}function gml_Script_s_postseason_show_next_result(_inst,_other){{var gmlresult=(-4);if(yyfgreater(array_length(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlpostseason_chunk_results),0)){{gmlresult=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlpostseason_chunk_results[__yy_gml_array_check_index(0,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlpostseason_chunk_results)];array_delete(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlpostseason_chunk_results,0,1);};};if(yyfequal(gmlresult,(-4))){ {if(yyfnotequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlpostseason_chunk_news_post_action,(-4))){(__temp__=yyInst(_inst,_other,YYASSET_REF(0x00000062)),__yyg_call_method(__temp__.gmlpostseason_chunk_news_post_action)(__temp__,_other));};return;};};var gmlis_last=(yyGetBool(yyfnotequal(gmlresult,(-4))))&&(yyGetBool(yyfless(array_length(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlpostseason_chunk_results),1)));var gmltext;var ___sw1072___=yyInst(_inst,_other,gmlresult).gmlshow;var ___swc1073___=-1; if(yyCompareVal(___sw1072___,"std",g_GMLMathEpsilon,false)==0){___swc1073___=0;}else if(yyCompareVal(___sw1072___,"bkt",g_GMLMathEpsilon,false)==0){___swc1073___=1;}switch(___swc1073___){case 0:{gmltext=yyfplus(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmlresult).gmlcomp_str),"\n\n"),__yy_gml_errCheck(yyInst(_inst,_other,gmlresult).gmlscore_str));if(yyfnotequal(yyInst(_inst,_other,gmlresult).gmlaccess_str,"")){gmltext=yyfplus(gmltext,yyfplus("\n\n",__yy_gml_errCheck(string_replace(gml_Script_s_str(_inst, _other,"msg_WillCompete"),"$COMPETITION",yyInst(_inst,_other,gmlresult).gmlaccess_str))));};break;}case 1:{gmltext=gml_Script_s_str(_inst,_other,"msg_TeamsAdvance");gmltext=string_replace(gmltext,"$LEVEL",gml_Script_s_get_comp_level_str(_inst,_other,yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlresult).gmllevel),1)));gmltext=string_replace(gmltext,"$COMPETITION",yyInst(_inst,_other,gmlresult).gmlcomp_str);gmltext=yyfplus(gmltext,yyfplus("\n\n",__yy_gml_errCheck(yyInst(_inst,_other,gmlresult).gmlteam_names))); break;}};gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_News"),gmltext,(yyGetBool(gmlis_last)?"":gml_Script_s_str(_inst,_other,"ui_Skip")),gml_Script_s_str(_inst,_other,"ui_Continue"),kgml_Script_s_btn_postseason_news_skip,kgml_Script_s_btn_postseason_news_continue,global.gmlc_background,1);}}function gml_Script_s_postseason_show_finals_result(_inst,_other){{var gmlresult=(-4);var gmlcomps_str="";while(yyfgreater(array_length(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlpostseason_chunk_results), 0)){{gmlresult=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlpostseason_chunk_results[__yy_gml_array_check_index(0,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlpostseason_chunk_results)];array_delete(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlpostseason_chunk_results,0,1);gmlcomps_str=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmlresult).gmlcomp_str),"\n\n"),__yy_gml_errCheck(yyInst(_inst,_other,gmlresult).gmlscore_str)),__yy_gml_errCheck((yyfnotequal(gmlcomps_str,"")?yyfplus("\n\n", __yy_gml_errCheck(gmlcomps_str)):"")));}};gml_Script_s_create_message(_inst,_other,gml_Script_s_str(_inst,_other,"ui_News"),gmlcomps_str,"",gml_Script_s_str(_inst,_other,"ui_Continue"),(-4),kgml_Script_s_btn_postseason_news_continue,global.gmlc_background,1);}}function gml_Script_s_btn_postseason_news_skip(_inst,_other){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlpostseason_chunk_results=__yy_gml_array_create([]);gml_Script_s_btn_postseason_news_continue(_inst,_other);}}function gml_Script_s_btn_postseason_news_continue(_inst, _other){{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_postseason_show_next_result(_inst,_other);}}function gml_Script_s_postseason_results(_inst,_other,argument0,argument1){{if(yyfequal(argument1,_inst.undefined)){argument1=true;};}{var gmlresults=__yy_gml_array_create([]);var gmlfix;{var __yy__v1165=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1166 in __yy__v1165){if(!__yy__v1165.hasOwnProperty(__yy__v1166))continue;var __yy__v1167=__yy__v1165[__yy__v1166];var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1167.gmlschedule)); (g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlfix=ds_list_find_value(__yy__v1167.gmlschedule,gmli);if(yyfequal(real(ds_map_find_value(gmlfix,"week")),argument0)){{if((yyGetBool(argument1))&&(yyGetBool(gml_Script_s_is_human_fix(__yy__v1167,_inst,gmlfix)))){continue;};if(!yyGetBool(gml_Script_s_is_fix_played(__yy__v1167,_inst,gmlfix))){continue;};gml_Script_s_create_postseason_result(__yy__v1167,_inst,gmlresults,gmlfix);};};}};}};array_sort(gmlresults, kgml_Script_s_postseason_results_data_sort);return gmlresults;}}function gml_Script____struct___151_s_create_postseason_result_gml_GlobalScript_s_college_postseason(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___151_s_create_postseason_result_gml_GlobalScript_s_college_postseason";}if(gml_Script____struct___151_s_create_postseason_result_gml_GlobalScript_s_college_postseason.prototype.__type===undefined){gml_Script____struct___151_s_create_postseason_result_gml_GlobalScript_s_college_postseason.prototype.__type="gml_Script____struct___151_s_create_postseason_result_gml_GlobalScript_s_college_postseason"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___151_s_create_postseason_result_gml_GlobalScript_s_college_postseason.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlshow=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlcomp_id=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlcomp_str=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.gmlscore_str=$$args[__yy_gml_array_check_index(2+(3),$$args)];_inst.gmlaccess_str=$$args[__yy_gml_array_check_index(2+(4), $$args)];_inst.gmlsort=$$args[__yy_gml_array_check_index(2+(5),$$args)];}}}}function gml_Script____struct___152_s_create_postseason_result_gml_GlobalScript_s_college_postseason(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___152_s_create_postseason_result_gml_GlobalScript_s_college_postseason";}if(gml_Script____struct___152_s_create_postseason_result_gml_GlobalScript_s_college_postseason.prototype.__type===undefined){gml_Script____struct___152_s_create_postseason_result_gml_GlobalScript_s_college_postseason.prototype.__type="gml_Script____struct___152_s_create_postseason_result_gml_GlobalScript_s_college_postseason"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___152_s_create_postseason_result_gml_GlobalScript_s_college_postseason.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlshow=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmllevel=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlcomp_id=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.gmlcomp_str=$$args[__yy_gml_array_check_index(2+(3),$$args)];_inst.gmlteam_names=$$args[__yy_gml_array_check_index(2+(4), $$args)];_inst.gmlsort=1000;}}}}function gml_Script_s_create_postseason_result(_inst,_other,argument0,argument1){{var ___sw1074___=ds_map_find_value(argument1,"show");var ___swc1075___=-1;if(yyCompareVal(___sw1074___,"std",g_GMLMathEpsilon,false)==0){___swc1075___=0;}else if(yyCompareVal(___sw1074___,"bkt",g_GMLMathEpsilon,false)==0){___swc1075___=1;}switch(___swc1075___){case 0:{var gmlitem=__yy_gml_object_create(_inst,(_inst.gml___struct___151=__yy_method(_inst,gml_Script____struct___151_s_create_postseason_result_gml_GlobalScript_s_college_postseason)), ds_map_find_value(argument1,"show"),ds_map_find_value(argument1,"cid"),gml_Script_s_get_fix_competition_string(_inst,_other,argument1),gml_Script_s_get_fix_result_string(_inst,_other,argument1),gml_Script_s_get_fix_access_string(_inst,_other,argument1),real(ds_map_find_value(argument1,"cid")));var gmlat=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(argument1,"away_team"));var gmlht=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(argument1,"home_team"));if((yyGetBool(yyfequal(ds_map_find_value(gmlat, "conference"),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyconference)))||(yyGetBool(yyfequal(ds_map_find_value(gmlht,"conference"),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyconference)))){yyInst(_inst,_other,gmlitem).gmlsort=yyfplus(yyInst(_inst,_other,gmlitem).gmlsort,10000);};array_push(argument0,gmlitem);break;}case 1:{var gmlitem=gml_Script_s_get_postseason_result_by_cid(_inst,_other,argument0,ds_map_find_value(argument1,"cid"));if(yyfequal(gmlitem,(-4))){{gmlitem=__yy_gml_object_create(_inst, (_inst.gml___struct___152=__yy_method(_inst,gml_Script____struct___152_s_create_postseason_result_gml_GlobalScript_s_college_postseason)),ds_map_find_value(argument1,"show"),array_get(string_split(ds_map_find_value(argument1,"mid"),"."),0),ds_map_find_value(argument1,"cid"),gml_Script_s_get_fix_competition_string(_inst,_other,argument1),gml_Script_s_get_team_name_by_id(_inst,_other,gml_Script_s_get_fix_winner_id(_inst,_other,argument1)));array_push(argument0,gmlitem);};}else {{yyInst(_inst,_other, gmlitem).gmlteam_names=yyfplus(yyInst(_inst,_other,gmlitem).gmlteam_names,yyfplus("\n",__yy_gml_errCheck(gml_Script_s_get_team_name_by_id(_inst,_other,gml_Script_s_get_fix_winner_id(_inst,_other,argument1)))));};};break;}};}}function gml_Script_s_postseason_results_data_sort(_inst,_other,argument0,argument1){{return yyfminus(__yy_gml_errCheck(real(yyInst(_inst,_other,argument1).gmlsort)),__yy_gml_errCheck(real(yyInst(_inst,_other,argument0).gmlsort)));}}function gml_Script_s_get_postseason_result_by_cid(_inst, _other,argument0,argument1){{var gmli=0;for(;yyfless(gmli,array_length(argument0));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{if(yyfequal(yyInst(_inst,_other,argument0[__yy_gml_array_check_index(gmli,argument0)]).gmlcomp_id,argument1)){return argument0[__yy_gml_array_check_index(gmli,argument0)];};}};return(-4);}}function gml_Script_s_get_competition_win_access(_inst,_other,argument0){{var gmllist=gml_Script_s_get_competition_win_access_list(_inst, _other);return gml_Script_s_get_struct_in_array_by_uid(_inst,_other,gmllist,argument0);}}function gml_Script_s_get_fix_access_string(_inst,_other,argument0){{var gmlaid=gml_Script_s_get_competition_win_access(_inst,_other,ds_map_find_value(argument0,"cid"));if(yyfnotequal(gmlaid,(-4))){{return gml_Script_s_get_competition_string(_inst,_other,yyInst(_inst,_other,gmlaid).gmlaccess);};};return "";}}function gml_Script_s_get_fix_result_string(_inst,_other,argument0){{var gmlt1,gmlt2,gmls1,gmls2,gmlfmt;gmls1=real(ds_map_find_value(argument0, "away_score"));gmls2=real(ds_map_find_value(argument0,"home_score"));gmlt1=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(argument0,"away_team"));gmlt2=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(argument0,"home_team"));gmlfmt=(yyfgreater(gmls1,gmls2)?"%1 %5 %2 %3-%4!":"%2 %5 %1 %4-%3!");return gml_Script_s_strfl(_inst,_other,gmlfmt,ds_map_find_value(gmlt1,"name"),ds_map_find_value(gmlt2,"name"),gmls1,gmls2,gml_Script_s_str(_inst,_other,"ui_beat"));}}function gml_Script_s_skip_postseason_until_human_match(_inst, _other){{{var __yy__v1168=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1169 in __yy__v1168){if(!__yy__v1168.hasOwnProperty(__yy__v1169))continue;var __yy__v1170=__yy__v1168[__yy__v1169];{while(yyflessequal(__yy__v1170.gmlweek,gml_Script_s_get_last_schedule_week(__yy__v1170,_inst))){{if(yyGetBool(gml_Script_s_is_human_in_week(__yy__v1170,_inst,__yy__v1170.gmlweek))){return true;}else {gml_Script_s_skip_postseason_chunk(__yy__v1170,_inst);};}};return false;}}};}}function gml_Script_s_skip_postseason_chunk(_inst, _other){{{var __yy__v1171=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1172 in __yy__v1171){if(!__yy__v1171.hasOwnProperty(__yy__v1172))continue;var __yy__v1173=__yy__v1171[__yy__v1172];{gml_Script_s_do_schedule(__yy__v1173,_inst,true);(g_yyPrePostObject__=__yy__v1173.gmlweek,__yy__v1173.gmlweek=(g_yyPrePostObject__ instanceof Long?__yy__v1173.gmlweek.add(1):++__yy__v1173.gmlweek),g_yyPrePostObject__);gml_Script_s_competitions_status_update(__yy__v1173,_inst);}}};}}function gml_GlobalScript_s_get_nearest_opponent_by_position(_inst, _other,argument0,argument1){(_inst.gmls_get_nearest_opponent_by_position=__yy_method(_inst,gml_Script_s_get_nearest_opponent_by_position));}function gml_Script_s_get_nearest_opponent_by_position(_inst,_other,argument0,argument1){{if(yyGetBool(yyInst(_inst,_other,argument0).gmltackling)){return yyInst(_inst,_other,argument0).gmltackling;};var gmlpos=argument1;var gmllowest,gmllowest_val;gmllowest=(-4);gmllowest_val=(-1);{var __yy__v1174=GetWithArray(YYASSET_REF(0x0000006B));for(var __yy__v1175 in __yy__v1174){ if(!__yy__v1174.hasOwnProperty(__yy__v1175))continue;var __yy__v1176=__yy__v1174[__yy__v1175];{if(yyfequal(__yy__v1176.gmloffense,yyInst(_inst,_other,argument0).gmloffense)){continue;};if((yyGetBool(yyfless(gmlpos,0)))&&(yyGetBool(yyfequal(__yy__v1176.gmlposition,abs(gmlpos))))){continue;};if((yyGetBool(yyfgreater(gmlpos,0)))&&(yyGetBool(yyfnotequal(__yy__v1176.gmlposition,gmlpos)))){continue;};if((yyGetBool(!yyGetBool(__yy__v1176.gmldead)))&&(yyGetBool(yyfequal(__yy__v1176.gmltackling,(-4))))){{ var gmlval=point_distance(__yy__v1176.x,__yy__v1176.y,yyInst(_inst,_other,argument0).x,yyInst(_inst,_other,argument0).y);if((yyGetBool(yyfequal(gmllowest,(-4))))||(yyGetBool(yyfless(gmlval,gmllowest_val)))){{gmllowest=__yy__v1176.id;gmllowest_val=gmlval;};};};};}}};return gmllowest;}}function gml_GlobalScript_s_set_position_defense_fg(_inst,_other){(_inst.gmls_set_position_defense_fg=__yy_method(_inst,gml_Script_s_set_position_defense_fg));}function gml_Script_s_set_position_defense_fg(_inst,_other){ {_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim),__yy_gml_errCheck(yyftime(20,__yy_gml_errCheck(_inst.gmlfacing))));var ___sw1078___=_inst.gmlinum;var ___swc1079___=-1;if(yyCompareVal(___sw1078___,1,g_GMLMathEpsilon,false)==0){___swc1079___=0;}else if(yyCompareVal(___sw1078___,2,g_GMLMathEpsilon,false)==0){___swc1079___=1;}else if(yyCompareVal(___sw1078___,3,g_GMLMathEpsilon,false)==0){___swc1079___=2;}else if(yyCompareVal(___sw1078___,4,g_GMLMathEpsilon,false)==0){ ___swc1079___=3;}else if(yyCompareVal(___sw1078___,5,g_GMLMathEpsilon,false)==0){___swc1079___=4;}else if(yyCompareVal(___sw1078___,6,g_GMLMathEpsilon,false)==0){___swc1079___=5;}else if(yyCompareVal(___sw1078___,7,g_GMLMathEpsilon,false)==0){___swc1079___=6;}else if(yyCompareVal(___sw1078___,8,g_GMLMathEpsilon,false)==0){___swc1079___=7;}else if(yyCompareVal(___sw1078___,9,g_GMLMathEpsilon,false)==0){___swc1079___=8;}else if(yyCompareVal(___sw1078___,10,g_GMLMathEpsilon,false)==0){___swc1079___=9;}else if(yyCompareVal(___sw1078___, 11,g_GMLMathEpsilon,false)==0){___swc1079___=10;}switch(___swc1079___){case 0:{_inst.gmlposition=6;_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),6);break;}case 1:{_inst.gmlposition=6;_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),6);break;}case 2:{_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim),__yy_gml_errCheck(yyftime(40,__yy_gml_errCheck(_inst.gmlfacing))));_inst.gmlposition=6; _inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),12);break;}case 3:{_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim),__yy_gml_errCheck(yyftime(40,__yy_gml_errCheck(_inst.gmlfacing))));_inst.gmlposition=6;_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),12);break;}case 4:{_inst.gmlposition=6;_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim), 18);break;}case 5:{_inst.gmlposition=6;_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),18);break;}case 6:{_inst.gmlposition=6;_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),30);break;}case 7:{_inst.gmlposition=6;_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),30);break;}case 8:{_inst.gmlposition=6;_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim), 48);break;}case 9:{_inst.gmlposition=6;_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),48);break;}case 10:{_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim),__yy_gml_errCheck(yyftime(60,__yy_gml_errCheck(_inst.gmlfacing))));_inst.gmlposition=6;_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),22);break;}};}}function gml_GlobalScript_s_set_position_offense_fg(_inst,_other){(_inst.gmls_set_position_offense_fg=__yy_method(_inst, gml_Script_s_set_position_offense_fg));}function gml_Script_s_set_position_offense_fg(_inst,_other){{_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim),__yy_gml_errCheck(yyftime(20,__yy_gml_errCheck(_inst.gmlfacing))));var ___sw1082___=_inst.gmlinum;var ___swc1083___=-1;if(yyCompareVal(___sw1082___,1,g_GMLMathEpsilon,false)==0){___swc1083___=0;}else if(yyCompareVal(___sw1082___,2,g_GMLMathEpsilon,false)==0){___swc1083___=1;}else if(yyCompareVal(___sw1082___,3, g_GMLMathEpsilon,false)==0){___swc1083___=2;}else if(yyCompareVal(___sw1082___,4,g_GMLMathEpsilon,false)==0){___swc1083___=3;}else if(yyCompareVal(___sw1082___,5,g_GMLMathEpsilon,false)==0){___swc1083___=4;}else if(yyCompareVal(___sw1082___,6,g_GMLMathEpsilon,false)==0){___swc1083___=5;}else if(yyCompareVal(___sw1082___,7,g_GMLMathEpsilon,false)==0){___swc1083___=6;}else if(yyCompareVal(___sw1082___,8,g_GMLMathEpsilon,false)==0){___swc1083___=7;}else if(yyCompareVal(___sw1082___,9,g_GMLMathEpsilon,false)==0){ ___swc1083___=8;}else if(yyCompareVal(___sw1082___,10,g_GMLMathEpsilon,false)==0){___swc1083___=9;}else if(yyCompareVal(___sw1082___,11,g_GMLMathEpsilon,false)==0){___swc1083___=10;}switch(___swc1083___){case 0:{_inst.gmlposition=1;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim),__yy_gml_errCheck(yyftime(120,__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim;break;}case 1:{_inst.gmlposition=11;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst, _other,YYASSET_REF(0x00000069)).gmlx_scrim),__yy_gml_errCheck(yyftime(80,__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim;break;}case 2:{_inst.gmlposition=5;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim),__yy_gml_errCheck(yyftime(10,__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim;break;}case 3:{_inst.gmlposition=5;_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst, _other,YYASSET_REF(0x00000069)).gmly_scrim),8);break;}case 4:{_inst.gmlposition=5;_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),8);break;}case 5:{_inst.gmlposition=5;_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),18);break;}case 6:{_inst.gmlposition=5;_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),18);break;}case 7:{_inst.gmlposition=5;_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst, _other,YYASSET_REF(0x00000069)).gmly_scrim),28);break;}case 8:{_inst.gmlposition=5;_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),28);break;}case 9:{_inst.gmlposition=5;_inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim),__yy_gml_errCheck(yyftime(30,__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),38);break;}case 10:{_inst.gmlposition=5; _inst.x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim),__yy_gml_errCheck(yyftime(30,__yy_gml_errCheck(_inst.gmlfacing))));_inst.y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmly_scrim),38);break;}};}}function gml_GlobalScript_s_get_skin_colour_by_index(_inst,_other,argument0){(_inst.gmls_get_skin_colour_by_index=__yy_method(_inst,gml_Script_s_get_skin_colour_by_index));}function gml_Script_s_get_skin_colour_by_index(_inst,_other,argument0){ {var ___sw1086___=argument0;var ___swc1087___=-1;if(yyCompareVal(___sw1086___,2,g_GMLMathEpsilon,false)==0){___swc1087___=0;}else if(yyCompareVal(___sw1086___,1,g_GMLMathEpsilon,false)==0){___swc1087___=1;}else if(yyCompareVal(___sw1086___,0,g_GMLMathEpsilon,false)==0){___swc1087___=2;}switch(___swc1087___){case 0:{return make_color_rgb(238,195,154);break;}case 1:{return make_color_rgb(186,136,87);break;}case 2:{return make_color_rgb(93,51,36);break;}};return choose(2,1,0);}}function gml_GlobalScript_s_point_to_path(_inst, _other){(_inst.gmls_point_to_path=__yy_method(_inst,gml_Script_s_point_to_path));}function gml_Script_s_point_to_path(_inst,_other){{_inst.gmlpx=yyfplus(__yy_gml_errCheck(_inst.gmlmy_route_startx),__yy_gml_errCheck(path_get_point_x(_inst.gmlmy_route,_inst.gmlmy_route_point)));_inst.gmlpy=yyfplus(__yy_gml_errCheck(_inst.gmlmy_route_starty),__yy_gml_errCheck(path_get_point_y(_inst.gmlmy_route,_inst.gmlmy_route_point)));if(yyfgreater(_inst.gmlmy_route_starty,300)){_inst.gmlpy=yyfminus(__yy_gml_errCheck(_inst.gmlmy_route_starty), __yy_gml_errCheck(path_get_point_y(_inst.gmlmy_route,_inst.gmlmy_route_point)));};if(yyfless(point_distance(_inst.x,_inst.y,_inst.gmlpx,_inst.gmlpy),20)){{_inst.gmlmy_route_point=yyfplus(_inst.gmlmy_route_point,1);};};if(yyfgreaterequal(_inst.gmlmy_route_point,path_get_number(_inst.gmlmy_route))){{path_delete(_inst.gmlmy_route);};};return point_direction(_inst.x,_inst.y,_inst.gmlpx,_inst.gmlpy);}}function gml_GlobalScript_s_intercept_object(_inst,_other){(_inst.gmls_intercept_object=__yy_method(_inst, gml_Script_s_intercept_object));}function gml_Script_s_intercept_object(_inst,_other,argument0){{var gmldist=point_distance(_inst.x,_inst.y,yyInst(_inst,_other,argument0).x,yyInst(_inst,_other,argument0).y);var gmltimefactor=yyftime(__yy_gml_errCheck(gmldist),0.5);if(yyfless(abs(yyfminus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyInst(_inst,_other,argument0).y))),40)){gmltimefactor=yyftime(gmltimefactor,0.5);};_inst.gmldes_x=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,argument0).x),__yy_gml_errCheck(lengthdir_x(yyftime(__yy_gml_errCheck(yyInst(_inst, _other,argument0).speed),__yy_gml_errCheck(gmltimefactor)),yyInst(_inst,_other,argument0).direction)));_inst.gmldes_y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,argument0).y),__yy_gml_errCheck(lengthdir_y(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,argument0).speed),__yy_gml_errCheck(gmltimefactor)),yyInst(_inst,_other,argument0).direction)));if(yyfless(_inst.y,yyInst(_inst,_other,argument0).y)){_inst.gmldes_y=yyfminus(_inst.gmldes_y,2);}else {_inst.gmldes_y=yyfplus(_inst.gmldes_y,2);};_inst.gmljdir=point_direction(_inst.x, _inst.y,_inst.gmldes_x,_inst.gmldes_y);_inst.gmljforce=1;}}function gml_GlobalScript_s_cover_object(_inst,_other,argument0,argument1){(_inst.gmls_cover_object=__yy_method(_inst,gml_Script_s_cover_object));}function gml_Script_s_cover_object(_inst,_other,argument0,argument1){{var gmltarget=argument0;var gmlrange=yyftime(180,__yy_gml_errCheck(argument1));if(yyfequal(yyInst(_inst,_other,gmltarget).gmlfacing,(-1))){_inst.gmljdir=point_direction(_inst.x,_inst.y,yyfminus(__yy_gml_errCheck(yyInst(_inst,_other, gmltarget).x),__yy_gml_errCheck(gmlrange)),yyInst(_inst,_other,gmltarget).y);}else {_inst.gmljdir=point_direction(_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmltarget).x),__yy_gml_errCheck(gmlrange)),yyInst(_inst,_other,gmltarget).y);};}}function gml_GlobalScript_s_get_nearest_opponent(_inst,_other,argument0){(_inst.gmls_get_nearest_opponent=__yy_method(_inst,gml_Script_s_get_nearest_opponent));}function gml_Script_s_get_nearest_opponent(_inst,_other,argument0){{if(yyGetBool(yyInst(_inst, _other,argument0).gmltackling)){return yyInst(_inst,_other,argument0).gmltackling;};var gmllowest,gmllowest_val;gmllowest=(-4);gmllowest_val=(-1);{var __yy__v1177=GetWithArray(YYASSET_REF(0x0000006B));for(var __yy__v1178 in __yy__v1177){if(!__yy__v1177.hasOwnProperty(__yy__v1178))continue;var __yy__v1179=__yy__v1177[__yy__v1178];{if((yyGetBool(!yyGetBool(__yy__v1179.gmldead)))&&(yyGetBool(yyfnotequal(__yy__v1179.gmloffense,yyInst(_inst,_other,argument0).gmloffense)))&&(yyGetBool(yyfequal(__yy__v1179.gmltackling, (-4))))){{var gmlval=point_distance(__yy__v1179.x,__yy__v1179.y,yyInst(_inst,_other,argument0).x,yyInst(_inst,_other,argument0).y);if((yyGetBool(yyfequal(gmllowest,(-4))))||(yyGetBool(yyfless(gmlval,gmllowest_val)))){{gmllowest=__yy__v1179.id;gmllowest_val=gmlval;};};};};}}};return gmllowest;}}function gml_GlobalScript_s_aim_for_nearest_opponent(_inst,_other){(_inst.gmls_aim_for_nearest_opponent=__yy_method(_inst,gml_Script_s_aim_for_nearest_opponent));}function gml_Script_s_aim_for_nearest_opponent(_inst, _other){{if(yyGetBool(_inst.gmlnearest_opp)){{_inst.gmljdir=point_direction(_inst.x,_inst.y,yyInst(_inst,_other,_inst.gmlnearest_opp).x,yyInst(_inst,_other,_inst.gmlnearest_opp).y);_inst.gmljforce=clamp(yyfdivide(__yy_gml_errCheck(_inst.gmlnearest_opp_dist),20),0.5,1);};};return;var gmllowest,gmllowest_val;gmllowest=(-4);gmllowest_val=(-1);{var __yy__v1180=GetWithArray(YYASSET_REF(0x0000006B));for(var __yy__v1181 in __yy__v1180){if(!__yy__v1180.hasOwnProperty(__yy__v1181))continue;var __yy__v1182=__yy__v1180[__yy__v1181]; {if((yyGetBool(!yyGetBool(__yy__v1182.gmldead)))&&(yyGetBool(yyfnotequal(__yy__v1182.gmloffense,_inst.gmloffense)))&&(yyGetBool(yyfequal(_inst.gmltackling,(-4))))&&(yyGetBool(yyfequal(__yy__v1182.gmltackling,(-4))))){{var gmlval=point_distance(__yy__v1182.x,__yy__v1182.y,_inst.x,_inst.y);if((yyGetBool(yyfequal(gmllowest,(-4))))||(yyGetBool(yyfless(gmlval,gmllowest_val)))){{gmllowest=__yy__v1182.id;gmllowest_val=gmlval;};};};};}}};if(yyfnotequal(gmllowest,(-4))){{_inst.gmljdir=point_direction(_inst.x, _inst.y,yyInst(_inst,_other,gmllowest).x,yyInst(_inst,_other,gmllowest).y);_inst.gmljforce=clamp(yyfdivide(__yy_gml_errCheck(gmllowest_val),20),0.5,1);return;};};_inst.gmljforce=0;}}function gml_GlobalScript_s_get_distance_to_nearest_opponent(_inst,_other){(_inst.gmls_get_distance_to_nearest_opponent=__yy_method(_inst,gml_Script_s_get_distance_to_nearest_opponent));}function gml_Script_s_get_distance_to_nearest_opponent(_inst,_other){{var gmlnearest=1000;{var __yy__v1183=GetWithArray(YYASSET_REF(0x0000006B)); for(var __yy__v1184 in __yy__v1183){if(!__yy__v1183.hasOwnProperty(__yy__v1184))continue;var __yy__v1185=__yy__v1183[__yy__v1184];{if((yyGetBool(yyfnotequal(__yy__v1185.gmloffense,_inst.gmloffense)))&&(yyGetBool(!yyGetBool(__yy__v1185.gmldead)))){{var gmlval=point_distance(__yy__v1185.x,__yy__v1185.y,_inst.x,_inst.y);if(yyfless(gmlval,gmlnearest)){{gmlnearest=gmlval;};};};};}}};return gmlnearest;}}function gml_GlobalScript_s_get_distance_to_furthest_teammate(_inst,_other,argument0){(_inst.gmls_get_distance_to_furthest_teammate=__yy_method(_inst, gml_Script_s_get_distance_to_furthest_teammate));}function gml_Script_s_get_distance_to_furthest_teammate(_inst,_other,argument0){{var gmlfurthest=0;{var __yy__v1186=GetWithArray(YYASSET_REF(0x0000006B));for(var __yy__v1187 in __yy__v1186){if(!__yy__v1186.hasOwnProperty(__yy__v1187))continue;var __yy__v1188=__yy__v1186[__yy__v1187];{if(yyfequal(__yy__v1188.gmloffense,yyInst(_inst,_other,argument0).gmloffense)){{var gmlval=point_distance(__yy__v1188.x,__yy__v1188.y,yyInst(_inst,_other,argument0).x,yyInst(_inst, _other,argument0).y);if(yyfgreater(gmlval,gmlfurthest)){gmlfurthest=gmlval;};};};}}};{var __yy__v1189=GetWithArray(YYASSET_REF(0x0000006E));for(var __yy__v1190 in __yy__v1189){if(!__yy__v1189.hasOwnProperty(__yy__v1190))continue;var __yy__v1191=__yy__v1189[__yy__v1190];{var gmlval=point_distance(__yy__v1191.x,__yy__v1191.y,yyInst(_inst,_other,argument0).x,yyInst(_inst,_other,argument0).y);if(yyfgreater(gmlval,gmlfurthest)){gmlfurthest=gmlval;};}}};return gmlfurthest;}}function gml_GlobalScript_s_get_destination(_inst, _other){(_inst.gmls_get_destination=__yy_method(_inst,gml_Script_s_get_destination));}function gml_Script_s_get_destination(_inst,_other){{var gmlball=global.gmlmaster_ball;var ___sw1090___=yyInst(_inst,_other,gmlball).gmlstate;var ___swc1091___=-1;if(yyCompareVal(___sw1090___,0,g_GMLMathEpsilon,false)==0){___swc1091___=0;}else if(yyCompareVal(___sw1090___,18,g_GMLMathEpsilon,false)==0){___swc1091___=1;}else if(yyCompareVal(___sw1090___,19,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1090___,2,g_GMLMathEpsilon, false)==0){___swc1091___=2;}else if(yyCompareVal(___sw1090___,3,g_GMLMathEpsilon,false)==0){___swc1091___=3;}else if(yyCompareVal(___sw1090___,5,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1090___,9,g_GMLMathEpsilon,false)==0){___swc1091___=4;}else if(yyCompareVal(___sw1090___,13,g_GMLMathEpsilon,false)==0){___swc1091___=5;}switch(___swc1091___){case 0:{_inst.gmljforce=0;break;}case 1:{if(yyGetBool(_inst.gmloffense)){{gml_Script_s_aim_AI_offense(_inst,_other);};}else {{if(yyfequal(_inst.gmlposition, 7)){gml_Script_s_received_AI_new(_inst,_other);}else {gml_Script_s_aim_AI_defense(_inst,_other);};};};break;}case 2:{if(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,false))){return;};}case 3:{if(yyGetBool(_inst.gmloffense)){gml_Script_s_aim_AI_offense(_inst,_other);}else {gml_Script_s_aim_AI_defense(_inst,_other);};break;}case 4:{if((yyGetBool(_inst.gmloffense))&&(yyGetBool(global.gmlgamepad))&&(yyGetBool(yyfequal(yyInst(_inst,_other,global.gmlmaster_ball).gmlholder,_inst.id)))&&(yyGetBool(yyfgreater(yyInst(_inst, _other,global.gmlgp).gmlaxisl_force,0.2)))){{_inst.gmljdir=point_direction(0,0,yyInst(_inst,_other,global.gmlgp).gmlaxisl_h,yyInst(_inst,_other,global.gmlgp).gmlaxisl_v);_inst.gmljforce=yyInst(_inst,_other,global.gmlgp).gmlaxisl_force;};}else {gml_Script_s_received_AI_new(_inst,_other);};break;}case 5:{_inst.gmljdir=point_direction(_inst.x,_inst.y,yyInst(_inst,_other,gmlball).x,yyInst(_inst,_other,gmlball).y);_inst.gmljforce=clamp(yyfdivide(__yy_gml_errCheck(_inst.gmlballdist),40),0.25,0.75);break; }default :{break;}};}}function gml_GlobalScript_s_check_human_control(_inst,_other){(_inst.gmls_check_human_control=__yy_method(_inst,gml_Script_s_check_human_control));(_inst.gmls_do_dive=__yy_method(_inst,gml_Script_s_do_dive));(_inst.gmls_do_stutterstep=__yy_method(_inst,gml_Script_s_do_stutterstep));}function gml_Script_s_check_human_control(_inst,_other){{if(!yyGetBool(yyInst(_inst,_other,global.gmlmaster_ball).gmlholder)){return;};if(yyfnotequal(yyInst(_inst,_other,global.gmlmaster_ball).gmlholder, _inst.id)){return;};if(yyGetBool(gml_Script_s_can_run(_inst,_other))){{if(yyGetBool(global.gmlgamepad)){{if(!yyGetBool(yyInst(_inst,_other,global.gmlgp).gmlaxisr_flick)){{if(yyfless(yyInst(_inst,_other,global.gmlgp).gmlaxisr_v,(-0.75))){{global.gmlflickVelY=(-1);yyInst(_inst,_other,global.gmlgp).gmlaxisr_flick=true;};};if(yyfgreater(yyInst(_inst,_other,global.gmlgp).gmlaxisr_v,0.75)){{global.gmlflickVelY=1;yyInst(_inst,_other,global.gmlgp).gmlaxisr_flick=true;};};if(yyfless(yyInst(_inst,_other,global.gmlgp).gmlaxisr_h, (-0.75))){{global.gmlflickVelX=(-1);yyInst(_inst,_other,global.gmlgp).gmlaxisr_flick=true;};};if(yyfgreater(yyInst(_inst,_other,global.gmlgp).gmlaxisr_h,0.75)){{global.gmlflickVelX=1;yyInst(_inst,_other,global.gmlgp).gmlaxisr_flick=true;};};if(!yyGetBool(yyInst(_inst,_other,global.gmlgp).gmlaxisr_flick)){{var gml_pressed=0;if(yyGetBool(gml_Script_s_can_touchback(_inst,_other))){gml_pressed=gamepad_button_check(yyInst(_inst,_other,global.gmlgp).gmlslot,global.gmlgp_back);}else {gml_pressed=gamepad_button_check_released(yyInst(_inst, _other,global.gmlgp).gmlslot,global.gmlgp_back);};if((yyGetBool(gml_pressed))&&(yyGetBool(!yyGetBool(gml_Script_s_is_paused_or_just_unpaused(_inst,_other))))){{yyInst(_inst,_other,global.gmlgp).gmlaxisr_flick=true;if((yyGetBool(yyfless(abs(yyInst(_inst,_other,global.gmlgp).gmlaxisl_v),0.2)))&&(yyGetBool(yyfless(abs(yyInst(_inst,_other,global.gmlgp).gmlaxisl_h),0.2)))){{if(yyfequal(_inst.gmlfacing,(-1))){global.gmlflickVelX=1;}else {global.gmlflickVelX=(-1);};};}else {if(yyfless(yyInst(_inst,_other, global.gmlgp).gmlaxisl_v,0)){global.gmlflickVelY=(-1);}else {global.gmlflickVelY=1;};};};};if(yyGetBool(gamepad_button_check(yyInst(_inst,_other,global.gmlgp).gmlslot,global.gmlgp_select))){gml_Script_s_do_dive(_inst,_other);};};};};};};}else {{if(yyGetBool(keyboard_check_pressed(87))){global.gmlflickVelY=(-2);};if(yyGetBool(keyboard_check_pressed(83))){global.gmlflickVelY=2;};if(yyGetBool(keyboard_check_pressed(65))){global.gmlflickVelX=(-2);};if(yyGetBool(keyboard_check_pressed(68))){global.gmlflickVelX=2; };if(yyGetBool(keyboard_check_pressed(38))){global.gmlflickVelY=(-2);};if(yyGetBool(keyboard_check_pressed(40))){global.gmlflickVelY=2;};if(yyGetBool(keyboard_check_pressed(37))){global.gmlflickVelX=(-2);};if(yyGetBool(keyboard_check_pressed(39))){global.gmlflickVelX=2;};};};if(yyfgreater(abs(global.gmlflickVelY),yyftime(__yy_gml_errCheck(abs(global.gmlflickVelX)),0.85))){{_inst.hspeed=yyftime(_inst.hspeed,0.1);if(yyGetBool(global.gmlgamepad)){{if(yyfless(_inst.vspeed,0.2)){_inst.vspeed=yyftime(yyftime(__yy_gml_errCheck(sign(global.gmlflickVelY)), __yy_gml_errCheck(_inst.gmlmy_sidestep)),0.8);}else {if(yyfgreater(_inst.vspeed,0.2)){_inst.vspeed=yyftime(yyftime(__yy_gml_errCheck(sign(global.gmlflickVelY)),__yy_gml_errCheck(_inst.gmlmy_sidestep)),0.8);}else {_inst.vspeed=yyftime(__yy_gml_errCheck(sign(global.gmlflickVelY)),__yy_gml_errCheck(_inst.gmlmy_sidestep));};};};}else {_inst.vspeed=yyftime(__yy_gml_errCheck(sign(global.gmlflickVelY)),__yy_gml_errCheck(_inst.gmlmy_sidestep));};global.gmlflickVelX=0;global.gmlflickVelY=0;_inst.gmljforce=0; if(yyGetBool(path_exists(_inst.gmlmy_route))){path_delete(_inst.gmlmy_route);};if(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice)){{_inst.gmlmy_sidestep=yyftime(_inst.gmlmy_sidestep,0.925);};};};};if(yyGetBool(abs(global.gmlflickVelX))){{if((yyGetBool((yyGetBool(yyfgreater(global.gmlflickVelX,0)))&&(yyGetBool(yyfequal(_inst.gmlfacing,(-1))))))||(yyGetBool((yyGetBool(yyfless(global.gmlflickVelX,0)))&&(yyGetBool(yyfequal(_inst.gmlfacing,1)))))){gml_Script_s_do_stutterstep(_inst, _other);}else {gml_Script_s_do_dive(_inst,_other);};_inst.gmljforce=0;if(yyGetBool(path_exists(_inst.gmlmy_route))){path_delete(_inst.gmlmy_route);};};};if(yyfless(_inst.gmlmy_sidestep,2.1)){_inst.gmlmy_sidestep=yyfplus(_inst.gmlmy_sidestep,0.003);};};};global.gmlflickVelX=0;global.gmlflickVelY=0;}}function gml_Script_s_do_dive(_inst,_other){{if((yyGetBool(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice)))||(yyGetBool(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpractice_success, 0)))){{gml_Script_s_set_anim(_inst,_other,5);_inst.gmljforce=0;if(yyGetBool(path_exists(_inst.gmlmy_route))){path_delete(_inst.gmlmy_route);};};};}}function gml_Script_s_do_stutterstep(_inst,_other){{gml_Script_s_set_anim(_inst,_other,7);_inst.gmljforce=0;if(yyGetBool(path_exists(_inst.gmlmy_route))){path_delete(_inst.gmlmy_route);};}}function gml_GlobalScript_s_check_tackling(_inst,_other){(_inst.gmls_check_tackling=__yy_method(_inst,gml_Script_s_check_tackling));}function gml_Script_s_check_tackling(_inst, _other){{if(yyGetBool(_inst.gmldead)){return;};if(yyfequal(_inst.gmlanim,4)){return;};if(yyfequal(_inst.gmlanim,8)){return;};if(yyfequal(_inst.gmlanim,10)){return;};var gmlball=global.gmlmaster_ball;var gmlcont=YYASSET_REF(0x00000069);if((yyGetBool(!yyGetBool(_inst.gmltackling)))&&(yyGetBool(yyfnotequal(yyInst(_inst,_other,gmlball).gmlholder,_inst.id)))){{{var __yy__v1192=GetWithArray(_inst.gmlnearest_opp);for(var __yy__v1193 in __yy__v1192){if(!__yy__v1192.hasOwnProperty(__yy__v1193))continue;var __yy__v1194=__yy__v1192[__yy__v1193]; {if((yyGetBool(yyfnotequal(yyInst(_inst,_other,gmlball).gmlholder,__yy__v1194.id)))&&(yyGetBool(yyfnotequal(yyInst(_inst,_other,gmlball).gmlstate,5)))&&(yyGetBool((yyGetBool(gml_Script_is_defensiveback(__yy__v1194,_inst,__yy__v1194.id)))||(yyGetBool(gml_Script_is_defensiveback(__yy__v1194,_inst,_inst.id)))))){{if(yyfless(g_pBuiltIn.get_current_time(),yyfplus(__yy_gml_errCheck(__yy__v1194.gmltackle_time),2000))){continue;};if((yyGetBool(!yyGetBool(path_exists(__yy__v1194.gmlmy_route))))&&(yyGetBool(!yyGetBool(path_exists(_inst.gmlmy_route))))){ continue;};};};if(yyfequal(__yy__v1194.gmloffense,_inst.gmloffense)){continue;};var gmlodist=point_distance(__yy__v1194.x,__yy__v1194.y,_inst.x,_inst.y);if(yyfgreater(gmlodist,40)){continue;};if((yyGetBool(yyfnotequal(__yy__v1194.gmlanim,4)))&&(yyGetBool(yyfnotequal(__yy__v1194.gmlanim,5)))&&(yyGetBool(yyfnotequal(__yy__v1194.gmlanim,8)))&&(yyGetBool(yyfnotequal(__yy__v1194.gmlanim,10)))&&(yyGetBool((yyGetBool(!yyGetBool(__yy__v1194.gmltackling)))||(yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlholder, __yy__v1194.id)))))){{if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlholder,__yy__v1194.id)))&&(yyGetBool(yyfequal(_inst.gmlanim,5)))&&(yyGetBool(yyfgreater(_inst.speed,0.1)))&&(yyGetBool(place_meeting(__yy__v1194,__yy__v1194.x,__yy__v1194.y,_inst)))&&(yyGetBool(yyfless(abs(yyfminus(__yy_gml_errCheck(__yy__v1194.y),__yy_gml_errCheck(_inst.y))),10)))){{if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlcont).gmlkicking,1)))||(yyGetBool(yyfequal(yyInst(_inst,_other,gmlcont).gmlkicking,2)))){{yyInst(_inst, _other,gmlball).gmlstate=15;yyInst(_inst,_other,gmlball).gmlvelocity=0;yyInst(_inst,_other,gmlball).gmlzvel=0;return;};}else {if(yyfgreater(__yy__v1194.gmljumps,0)){{gml_Script_s_sound_tackle(__yy__v1194,_inst);__yy__v1194.hspeed=yyftime(__yy_gml_errCheck(_inst.hspeed),0.5);__yy__v1194.vspeed=yyftime(__yy_gml_errCheck(_inst.vspeed),0.5);gml_Script_s_set_anim(__yy__v1194,_inst,8);_inst.gmldead=g_pBuiltIn.get_current_time();_inst.speed=yyftime(_inst.speed,0.9);return;};}else {{gml_Script_s_sound_tackle(__yy__v1194, _inst);gml_Script_s_set_anim(__yy__v1194,_inst,4);_inst.speed=yyftime(_inst.speed,0.75);__yy__v1194.hspeed=_inst.hspeed;__yy__v1194.vspeed=_inst.vspeed;return;};};};};}else {{if(yyfless(gmlodist,__yy__v1194.gmlcollsize)){{if(!yyGetBool(gml_Script_s_opponent_goalside(__yy__v1194,_inst,_inst))){{_inst.hspeed=yyfplus(_inst.hspeed,yyftime(__yy_gml_errCheck(__yy__v1194.hspeed),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(__yy__v1194.gmlstrength),5))));_inst.vspeed=yyfplus(_inst.vspeed,yyftime(__yy_gml_errCheck(__yy__v1194.vspeed), __yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(__yy__v1194.gmlstrength),5))));};}else {{__yy__v1194.speed=yyftime(__yy__v1194.speed,0.5);_inst.speed=yyftime(_inst.speed,0.5);};};__yy__v1194.x=__yy__v1194.xprevious;__yy__v1194.y=__yy__v1194.yprevious;_inst.x=_inst.xprevious;_inst.y=_inst.yprevious;__yy__v1194.gmltackling=_inst.id;__yy__v1194.gmltackle_time=g_pBuiltIn.get_current_time();gml_Script_s_set_anim(__yy__v1194,_inst,3);_inst.gmltackling=__yy__v1194.id;_inst.gmltackle_time=g_pBuiltIn.get_current_time(); gml_Script_s_set_anim(_inst,__yy__v1194,3);;gml_Script_s_sound_tackle(__yy__v1194,_inst);};};};};};};}}};};}else {if((yyGetBool(!yyGetBool(_inst.gmldead)))&&(yyGetBool(yyInst(_inst,_other,gmlball).gmlholder))&&(yyGetBool(yyfnotequal(yyInst(_inst,_other,gmlball).gmlholder,_inst.id)))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmltackling)))){{if(yyfless(point_distance(_inst.x,_inst.y,yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).x,yyInst(_inst, _other,yyInst(_inst,_other,gmlball).gmlholder).y),5)){{yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).hspeed=yyftime(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).hspeed,(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,true))?0.5:0.9));if(yyfless(_inst.y,yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).y)){yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).vspeed=yyfplus(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).vspeed,0.06);}else {yyInst(_inst, _other,yyInst(_inst,_other,gmlball).gmlholder).vspeed=yyfminus(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).vspeed,0.06);};};};};};};if(yyfequal(_inst.gmlanim,5)){return;};if(yyGetBool(_inst.gmltackling)){{_inst.gmllast_tackled=_inst.gmltackling;var gmldist_tack=point_distance(_inst.x,_inst.y,yyInst(_inst,_other,_inst.gmltackling).x,yyInst(_inst,_other,_inst.gmltackling).y);var gmldist_break=12;if(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,true))){gmldist_break=20;};if(yyGetBool(yyInst(_inst, _other,_inst.gmltackling).gmldead)){{yyInst(_inst,_other,_inst.gmltackling).gmltackling=(-4);gml_Script_s_set_anim(_inst,_other,0);};}else {if((yyGetBool(yyfgreater(gmldist_tack,gmldist_break)))||(yyGetBool((yyGetBool(yyfgreater(g_pBuiltIn.get_current_time(),yyfplus(__yy_gml_errCheck(_inst.gmltackle_time),100))))&&(yyGetBool(path_exists(_inst.gmlmy_route)))))){{{var __yy__v1195=GetWithArray(_inst.gmltackling);for(var __yy__v1196 in __yy__v1195){if(!__yy__v1195.hasOwnProperty(__yy__v1196))continue;var __yy__v1197=__yy__v1195[__yy__v1196]; gml_Script_s_set_anim(__yy__v1197,_inst,2);}};gml_Script_s_set_anim(_inst,_other,2);};}else {if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlholder,_inst.id)))&&(yyGetBool(yyfgreater(_inst.gmlstiff_arm,0)))){{gml_Script_s_fieldtxt(_inst,_other,gml_Script_s_str(_inst,_other,"match_StiffArm"));gml_Script_s_sound_audience_catch(_inst,_other);if(yyfless(_inst.y,yyInst(_inst,_other,_inst.gmltackling).y)){yyInst(_inst,_other,_inst.gmltackling).vspeed=1;}else {yyInst(_inst,_other,_inst.gmltackling).vspeed=(-1); };{var __yy__v1198=GetWithArray(_inst.gmltackling);for(var __yy__v1199 in __yy__v1198){if(!__yy__v1198.hasOwnProperty(__yy__v1199))continue;var __yy__v1200=__yy__v1198[__yy__v1199];gml_Script_s_set_anim(__yy__v1200,_inst,4);}};gml_Script_s_set_anim(_inst,_other,9);};}else {{if(yyfnotequal(_inst.id,yyInst(_inst,_other,gmlball).gmlholder)){yyInst(_inst,_other,_inst.gmltackling).gmltacklecount=yyfplus(yyInst(_inst,_other,_inst.gmltackling).gmltacklecount,_inst.gmlstrength);};if((yyGetBool(yyfequal(_inst.gmlposition, 12)))||(yyGetBool(yyfequal(_inst.gmlposition,13)))){{yyInst(_inst,_other,_inst.gmltackling).speed=yyftime(yyInst(_inst,_other,_inst.gmltackling).speed,0.9);if(yyfless(_inst.x,yyInst(_inst,_other,_inst.gmltackling).x)){yyInst(_inst,_other,_inst.gmltackling).x=yyfplus(yyInst(_inst,_other,_inst.gmltackling).x,0.05);}else {yyInst(_inst,_other,_inst.gmltackling).x=yyfplus(yyInst(_inst,_other,_inst.gmltackling).x,(-0.05));};};}else {if((yyGetBool(yyfnotequal(_inst.gmlposition,6)))&&(yyGetBool(yyfnotequal(_inst.gmlposition, 5)))){{if(yyfless(_inst.y,yyInst(_inst,_other,_inst.gmltackling).y)){yyInst(_inst,_other,_inst.gmltackling).vspeed=0.1;}else {yyInst(_inst,_other,_inst.gmltackling).vspeed=(-0.1);};};}else {{if(yyfless(_inst.x,yyInst(_inst,_other,_inst.gmltackling).x)){yyInst(_inst,_other,_inst.gmltackling).x=yyfplus(yyInst(_inst,_other,_inst.gmltackling).x,yyftime(0.025,__yy_gml_errCheck(_inst.gmlstrength)));}else {yyInst(_inst,_other,_inst.gmltackling).x=yyfplus(yyInst(_inst,_other,_inst.gmltackling).x,yyftime((-0.025), __yy_gml_errCheck(_inst.gmlstrength)));};};};};if((yyGetBool(yyfequal(yyInst(_inst,_other,_inst.gmltackling).gmlposition,4)))&&(yyGetBool(yyfnotequal(yyInst(_inst,_other,gmlball).gmlholder,_inst.gmltackling)))){return;};if((yyGetBool((yyGetBool(yyfequal(yyInst(_inst,_other,_inst.gmltackling).gmlposition,1)))&&(yyGetBool(!yyGetBool(gml_Script_s_is_kickoff(_inst,_other,true))))))||(yyGetBool(yyfgreater(yyInst(_inst,_other,_inst.gmltackling).gmltacklecount,yyftime(__yy_gml_errCheck(yyInst(_inst,_other, _inst.gmltackling).gmlstrength),__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmltackling).gmlmy_tackle_limit)))))){{{var __yy__v1201=GetWithArray(_inst.gmltackling);for(var __yy__v1202 in __yy__v1201){if(!__yy__v1201.hasOwnProperty(__yy__v1202))continue;var __yy__v1203=__yy__v1201[__yy__v1202];{var gmld=yyfplus(__yy_gml_errCheck(__yy__v1203.gmljdir),180);__yy__v1203.hspeed=yyftime(__yy_gml_errCheck(dcos(gmld)),1.5);__yy__v1203.vspeed=yyftime(__yy_gml_errCheck(dsin(gmld)),1.5);gml_Script_s_set_anim(__yy__v1203, _inst,4);}}};if((yyGetBool(_inst.gmlpmap))&&(yyGetBool(!yyGetBool(_inst.gmldone_tackle)))){{var gmldotacklestat=false;var ___sw1098___=ds_map_find_value(_inst.gmlpmap,"position");var ___swc1099___=-1;if(yyCompareVal(___sw1098___,5,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1098___,3,g_GMLMathEpsilon,false)==0){___swc1099___=0;}else if(yyCompareVal(___sw1098___,4,g_GMLMathEpsilon,false)==0){___swc1099___=1;}else if(yyCompareVal(___sw1098___,10,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1098___,1, g_GMLMathEpsilon,false)==0){___swc1099___=2;}switch(___swc1099___){case 0:{var ___sw1100___=yyInst(_inst,_other,gmlcont).gmldrivedir;var ___swc1101___=-1;if(yyCompareVal(___sw1100___,(-1),g_GMLMathEpsilon,false)==0){___swc1101___=0;}else if(yyCompareVal(___sw1100___,1,g_GMLMathEpsilon,false)==0){___swc1101___=1;}switch(___swc1101___){case 0:{if(yyfgreater(yyInst(_inst,_other,gmlball).x,yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlcont).gmlx_scrim),5))){gmldotacklestat=true;};break;}case 1:{if(yyfless(yyInst(_inst, _other,gmlball).x,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmlcont).gmlx_scrim),5))){gmldotacklestat=true;};break;}};break;}case 1:{if(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,5)){{var ___sw1102___=yyInst(_inst,_other,gmlcont).gmldrivedir;var ___swc1103___=-1;if(yyCompareVal(___sw1102___,(-1),g_GMLMathEpsilon,false)==0){___swc1103___=0;}else if(yyCompareVal(___sw1102___,1,g_GMLMathEpsilon,false)==0){___swc1103___=1;}switch(___swc1103___){case 0:{if(yyfless(yyInst(_inst,_other,gmlball).x,yyInst(_inst, _other,gmlcont).gmlx_scrim)){gmldotacklestat=true;};break;}case 1:{if(yyfgreater(yyInst(_inst,_other,gmlball).x,yyInst(_inst,_other,gmlcont).gmlx_scrim)){gmldotacklestat=true;};break;}};};};break;}case 2:{break;}default :{gmldotacklestat=true;break;}};if(yyGetBool(gmldotacklestat)){{ds_map_set_post(_inst.gmlpmap,"stat_tackles",yyfplus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"stat_tackles")),1));_inst.gmldone_tackle=true;};};};};gml_Script_s_set_anim(_inst,_other,2);};};};};};};};};}}function gml_GlobalScript_s_stop_tackling(_inst, _other){(_inst.gmls_stop_tackling=__yy_method(_inst,gml_Script_s_stop_tackling));}function gml_Script_s_stop_tackling(_inst,_other){{if(!yyGetBool(_inst.gmltackling)){return;};_inst.gmltackling=(-4);if(yyfequal(_inst.gmlanim,3)){gml_Script_s_set_anim(_inst,_other,0);};}}function gml_GlobalScript_s_check_dive(_inst,_other){(_inst.gmls_check_dive=__yy_method(_inst,gml_Script_s_check_dive));}function gml_Script_s_check_dive(_inst,_other){{var gmlball=global.gmlmaster_ball;var gmlcont=YYASSET_REF(0x00000069); if(yyfequal(yyInst(_inst,_other,gmlball).gmlholder,(-4))){{if((yyGetBool(_inst.gmloffense))&&(yyGetBool((yyGetBool(!yyGetBool(_inst.gmlpmap)))||(yyGetBool(yyfless(gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"skill"),4)))))){return;};if((yyGetBool(!yyGetBool(_inst.gmloffense)))&&(yyGetBool(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_difficulty,4)))){return;};var gmljump_max=12;if(!yyGetBool(_inst.gmloffense)){gmljump_max=6;};if((yyGetBool(yyfequal(_inst.gmlanim,2)))&&(yyGetBool(yyfless(_inst.gmlballdist, 60)))&&(yyGetBool(yyfless(point_distance(_inst.x,_inst.y,yyInst(_inst,_other,YYASSET_REF(0x00000070)).gmljump_x,yyInst(_inst,_other,YYASSET_REF(0x00000070)).gmljump_y),gmljump_max)))){{gml_Script_s_set_anim(_other,_inst,10);;};}else {if((yyGetBool((yyGetBool(yyfequal(_inst.gmlfacing,1)))&&(yyGetBool(yyfgreater(_inst.x,yyInst(_inst,_other,gmlcont).gmlx_scrim)))))||(yyGetBool((yyGetBool(yyfequal(_inst.gmlfacing,(-1))))&&(yyGetBool(yyfless(_inst.x,yyInst(_inst,_other,gmlcont).gmlx_scrim)))))){{if((yyGetBool(yyfequal(_inst.gmlanim, 2)))&&(yyGetBool(yyfless(yyInst(_inst,_other,gmlball).gmlzvel,0)))&&(yyGetBool(yyfless(yyInst(_inst,_other,gmlball).gmlheight,30)))&&(yyGetBool(yyfgreater(_inst.gmlbouncedist,_inst.gmlballdist)))&&(yyGetBool(yyfgreater(_inst.gmlballdist,20)))&&(yyGetBool(yyfless(_inst.gmlbouncedist,40)))){{{_other.gmljdir=point_direction(_other.x,_other.y,yyInst(_inst,_other,YYASSET_REF(0x00000070)).gmlbounce_x,yyInst(_inst,_other,YYASSET_REF(0x00000070)).gmlbounce_y);gml_Script_s_set_anim(_other,_inst,5);};};}; };};};};}else {{if((yyGetBool(yyfnotequal(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmloffense,_inst.gmloffense)))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmldead)))){{if((yyGetBool(yyfequal(_inst.gmlanim,2)))&&(yyGetBool(yyfgreater(abs(_inst.hspeed),0.05)))){{var gmlhardmode=false;if((yyGetBool(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlrunning_play)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmlposition, 2)))){gmlhardmode=true;};if((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldown,6)))||(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldefensive_cover,0)))||(yyGetBool(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlscrimmage,40)))||(yyGetBool(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlyards,3)))){gmlhardmode=true;};if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_difficulty,4)){{var ___sw1106___=yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldrivedir; var ___swc1107___=-1;if(yyCompareVal(___sw1106___,(-1),g_GMLMathEpsilon,false)==0){___swc1107___=0;}else if(yyCompareVal(___sw1106___,1,g_GMLMathEpsilon,false)==0){___swc1107___=1;}switch(___swc1107___){case 0:{if(yyfless(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).x,yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim),60))){gml_Script_slog(_inst,_other,"scrim_L");};break;}case 1:{if(yyfgreater(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).x, yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim),60))){gml_Script_slog(_inst,_other,"scrim_R");};break;}};};};if((yyGetBool(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmlintheclear))||(yyGetBool(!yyGetBool(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmloffense)))||(yyGetBool(gmlhardmode))||(yyGetBool(yyfequal(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmlposition,1)))||(yyGetBool(gml_Script_s_ball_holder_goalside(_inst, _other)))){{var gmloppdist=distance_to_point(_inst,yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).x,yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).y);var gmlydist=abs(yyfminus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).y)));if((yyGetBool(yyfless(gmloppdist,20)))&&(yyGetBool(yyfless(gmlydist,5)))){{gml_Script_s_set_anim(_inst,_other,5);};};};};};};};};};};}}function gml_GlobalScript_s_get_quarterback(_inst,_other){ (_inst.gmls_get_quarterback=__yy_method(_inst,gml_Script_s_get_quarterback));}function gml_Script_s_get_quarterback(_inst,_other){{{var __yy__v1204=GetWithArray(YYASSET_REF(0x0000006B));for(var __yy__v1205 in __yy__v1204){if(!__yy__v1204.hasOwnProperty(__yy__v1205))continue;var __yy__v1206=__yy__v1204[__yy__v1205];if(yyfequal(__yy__v1206.gmlposition,1)){return __yy__v1206.id;};}};return(-4);}}function gml_GlobalScript_s_get_kicker(_inst,_other){(_inst.gmls_get_kicker=__yy_method(_inst,gml_Script_s_get_kicker)); }function gml_Script_s_get_kicker(_inst,_other){{{var __yy__v1207=GetWithArray(YYASSET_REF(0x0000006C));for(var __yy__v1208 in __yy__v1207){if(!__yy__v1207.hasOwnProperty(__yy__v1208))continue;var __yy__v1209=__yy__v1207[__yy__v1208];if(yyfequal(__yy__v1209.gmlposition,1)){return __yy__v1209.id;};}};return(-4);}}function gml_GlobalScript_s_can_run(_inst,_other){(_inst.gmls_can_run=__yy_method(_inst,gml_Script_s_can_run));}function gml_Script_s_can_run(_inst,_other){{if(yyGetBool(_inst.gmldead)){return false; };if(yyfequal(_inst.gmlposition,1)){return false;};var ___sw1110___=_inst.gmlanim;var ___swc1111___=-1;if(yyCompareVal(___sw1110___,0,g_GMLMathEpsilon,false)==0){___swc1111___=0;}else if(yyCompareVal(___sw1110___,1,g_GMLMathEpsilon,false)==0){___swc1111___=1;}else if(yyCompareVal(___sw1110___,2,g_GMLMathEpsilon,false)==0){___swc1111___=2;}else if(yyCompareVal(___sw1110___,3,g_GMLMathEpsilon,false)==0){___swc1111___=3;}else if(yyCompareVal(___sw1110___,4,g_GMLMathEpsilon,false)==0){___swc1111___=4;}else if(yyCompareVal(___sw1110___, 5,g_GMLMathEpsilon,false)==0){___swc1111___=5;}else if(yyCompareVal(___sw1110___,6,g_GMLMathEpsilon,false)==0){___swc1111___=6;}else if(yyCompareVal(___sw1110___,7,g_GMLMathEpsilon,false)==0){___swc1111___=7;}else if(yyCompareVal(___sw1110___,8,g_GMLMathEpsilon,false)==0){___swc1111___=8;}else if(yyCompareVal(___sw1110___,9,g_GMLMathEpsilon,false)==0){___swc1111___=9;}else if(yyCompareVal(___sw1110___,10,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1110___,11,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1110___, 12,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1110___,13,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1110___,14,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1110___,15,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1110___,16,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1110___,17,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1110___,18,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1110___,19,g_GMLMathEpsilon,false)==0){___swc1111___=10;}switch(___swc1111___){case 0:{return true;break;}case 1:{ return true;break;}case 2:{return true;break;}case 3:{return false;break;}case 4:{return false;break;}case 5:{return false;break;}case 6:{return false;break;}case 7:{return true;break;}case 8:{return false;break;}case 9:{return true;break;}case 10:{return false;break;}};return false;}}function gml_GlobalScript_s_is_in_the_clear(_inst,_other){(_inst.gmls_is_in_the_clear=__yy_method(_inst,gml_Script_s_is_in_the_clear));}function gml_Script_s_is_in_the_clear(_inst,_other){{if(yyfnotequal(yyInst(_inst,_other,global.gmlmaster_ball).gmlholder, _other.id)){return false;};var ___sw1114___=_inst.gmlfacing;var ___swc1115___=-1;if(yyCompareVal(___sw1114___,(-1),g_GMLMathEpsilon,false)==0){___swc1115___=0;}else if(yyCompareVal(___sw1114___,1,g_GMLMathEpsilon,false)==0){___swc1115___=1;}switch(___swc1115___){case 0:{{var __yy__v1210=GetWithArray(YYASSET_REF(0x0000006B));for(var __yy__v1211 in __yy__v1210){if(!__yy__v1210.hasOwnProperty(__yy__v1211))continue;var __yy__v1212=__yy__v1210[__yy__v1211];if((yyGetBool(yyfnotequal(__yy__v1212.gmloffense,_inst.gmloffense)))&&(yyGetBool(yyfless(__yy__v1212.x, _inst.x)))){return false;};}};break;}case 1:{{var __yy__v1213=GetWithArray(YYASSET_REF(0x0000006B));for(var __yy__v1214 in __yy__v1213){if(!__yy__v1213.hasOwnProperty(__yy__v1214))continue;var __yy__v1215=__yy__v1213[__yy__v1214];if((yyGetBool(yyfnotequal(__yy__v1215.gmloffense,_inst.gmloffense)))&&(yyGetBool(yyfgreater(__yy__v1215.x,_inst.x)))){return false;};}};break;}};return true;}}function gml_GlobalScript_s_ball_holder_goalside(_inst,_other){(_inst.gmls_ball_holder_goalside=__yy_method(_inst,gml_Script_s_ball_holder_goalside)); }function gml_Script_s_ball_holder_goalside(_inst,_other){{var gmlmy_x=_inst.x;{var __yy__v1216=GetWithArray(global.gmlmaster_ball);for(var __yy__v1217 in __yy__v1216){if(!__yy__v1216.hasOwnProperty(__yy__v1217))continue;var __yy__v1218=__yy__v1216[__yy__v1217];{if(yyfequal(__yy__v1218.gmlholder,(-4))){return false;};var ___sw1118___=yyInst(_inst,_other,__yy__v1218.gmlholder).gmlfacing;var ___swc1119___=-1;if(yyCompareVal(___sw1118___,1,g_GMLMathEpsilon,false)==0){___swc1119___=0;}else if(yyCompareVal(___sw1118___, (-1),g_GMLMathEpsilon,false)==0){___swc1119___=1;}switch(___swc1119___){case 0:{if(yyfgreater(yyInst(_inst,_other,__yy__v1218.gmlholder).x,yyfplus(__yy_gml_errCheck(gmlmy_x),5))){return true;};break;}case 1:{if(yyfless(yyInst(_inst,_other,__yy__v1218.gmlholder).x,yyfminus(__yy_gml_errCheck(gmlmy_x),5))){return true;};break;}};}}};return false;}}function gml_GlobalScript_s_opponent_goalside(_inst,_other,argument0){(_inst.gmls_opponent_goalside=__yy_method(_inst,gml_Script_s_opponent_goalside));}function gml_Script_s_opponent_goalside(_inst, _other,argument0){{var gmlopp=argument0;var ___sw1122___=yyInst(_inst,_other,gmlopp).gmlfacing;var ___swc1123___=-1;if(yyCompareVal(___sw1122___,1,g_GMLMathEpsilon,false)==0){___swc1123___=0;}else if(yyCompareVal(___sw1122___,(-1),g_GMLMathEpsilon,false)==0){___swc1123___=1;}switch(___swc1123___){case 0:{if(yyfgreater(yyInst(_inst,_other,gmlopp).x,yyfplus(__yy_gml_errCheck(_inst.x),5))){return true;};break;}case 1:{if(yyfless(yyInst(_inst,_other,gmlopp).x,yyfminus(__yy_gml_errCheck(_inst.x),5))){return true; };break;}};return false;}}function gml_GlobalScript_s_y_on_myside(_inst,_other,argument0){(_inst.gmls_y_on_myside=__yy_method(_inst,gml_Script_s_y_on_myside));}function gml_Script_s_y_on_myside(_inst,_other,argument0){{if(yyfless(_inst.y,300)){{{var __yy__v1219=GetWithArray(YYASSET_REF(0x00000070));for(var __yy__v1220 in __yy__v1219){if(!__yy__v1219.hasOwnProperty(__yy__v1220))continue;var __yy__v1221=__yy__v1219[__yy__v1220];if(yyfless(argument0,276)){return true;};}};};}else {{{var __yy__v1222=GetWithArray(YYASSET_REF(0x00000070)); for(var __yy__v1223 in __yy__v1222){if(!__yy__v1222.hasOwnProperty(__yy__v1223))continue;var __yy__v1224=__yy__v1222[__yy__v1223];if(yyfgreater(argument0,332)){return true;};}};};};return false;}}function gml_GlobalScript_s_aim_AI_offense(_inst,_other){(_inst.gmls_aim_AI_offense=__yy_method(_inst,gml_Script_s_aim_AI_offense));}function gml_Script_s_aim_AI_offense(_inst,_other){{if(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,true))){return gml_Script_s_aim_AI_kickoff(_inst,_other);};if(yyGetBool(path_exists(_inst.gmlmy_route))){ {_inst.gmljforce=1;_inst.gmljdir=gml_Script_s_point_to_path(_inst,_other);};};if((yyGetBool(yyfequal(_inst.gmlposition,2)))&&(yyGetBool(_inst.gmlpmap))&&(yyGetBool(gml_Script_s_aiming(_inst,_other)))){{_inst.gmljforce=0.9;var gmlslowdown=false;{var __yy__v1225=GetWithArray(YYASSET_REF(0x0000006D));for(var __yy__v1226 in __yy__v1225){if(!__yy__v1225.hasOwnProperty(__yy__v1226))continue;var __yy__v1227=__yy__v1225[__yy__v1226];if((yyGetBool(yyfequal(__yy__v1227.gmlposition,6)))&&(yyGetBool(yyfless(point_distance(__yy__v1227.x, __yy__v1227.y,_inst.x,_inst.y),40)))){{gmlslowdown=true;break;};};}};if(yyGetBool(gmlslowdown)){_inst.gmljforce=0.5;};};};var gmlball=global.gmlmaster_ball;var ___sw1128___=_inst.gmlposition;var ___swc1129___=-1;if(yyCompareVal(___sw1128___,1,g_GMLMathEpsilon,false)==0){___swc1129___=0;}else if(yyCompareVal(___sw1128___,5,g_GMLMathEpsilon,false)==0){___swc1129___=1;}else if(yyCompareVal(___sw1128___,2,g_GMLMathEpsilon,false)==0){___swc1129___=2;}else if(yyCompareVal(___sw1128___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1128___, 4,g_GMLMathEpsilon,false)==0){___swc1129___=3;}switch(___swc1129___){case 0:{if(!yyGetBool(path_exists(_inst.gmlmy_route))){{_inst.gmljforce=0;if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlholder,_inst.id)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,19)))&&(yyGetBool(yyfless(_inst.gmlballdist,5)))){{gml_Script_s_set_anim(_inst,_other,12);{var __yy__v1228=GetWithArray(YYASSET_REF(0x0000006C));for(var __yy__v1229 in __yy__v1228){if(!__yy__v1228.hasOwnProperty(__yy__v1229))continue; var __yy__v1230=__yy__v1228[__yy__v1229];if(yyfequal(__yy__v1230.gmlposition,2)){{gml_Script_s_receive_ball(__yy__v1230,_inst);gml_Script_s_sound_bounce(__yy__v1230,_inst);};};}};};};};};break;}case 1:{if(yyGetBool(_inst.gmltackling)){{_inst.gmljforce=1;_inst.gmljdir=point_direction(_inst.x,_inst.y,yyInst(_inst,_other,_inst.gmltackling).x,yyInst(_inst,_other,_inst.gmltackling).y);break;};}else {if((yyGetBool(!yyGetBool(_inst.gmllast_tackled)))||(yyGetBool((yyGetBool(_inst.gmlnearest_opp))&&(yyGetBool(yyfless(_inst.gmlnearest_opp_dist, 20)))))){{gml_Script_s_aim_for_nearest_opponent(_inst,_other);};}else {{_inst.gmljforce=0;};};};break;}case 2:{if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,19)))&&(yyGetBool(yyfless(_inst.gmlballdist,40)))){{{var __yy__v1231=GetWithArray(YYASSET_REF(0x0000006C));for(var __yy__v1232 in __yy__v1231){if(!__yy__v1231.hasOwnProperty(__yy__v1232))continue;var __yy__v1233=__yy__v1231[__yy__v1232];{if(yyfequal(__yy__v1233.gmlposition,1)){gml_Script_s_set_anim(__yy__v1233,_inst,12);};}}};gml_Script_s_receive_ball(_inst, _other);gml_Script_s_sound_bounce(_inst,_other);return;};};}case 3:{if(yyGetBool(_inst.gmltackling)){{var ___sw1130___=yyfmod(__yy_gml_errCheck(_inst.gmlstrength),2);var ___swc1131___=-1;if(yyCompareVal(___sw1130___,0,g_GMLMathEpsilon,false)==0){___swc1131___=0;}else if(yyCompareVal(___sw1130___,1,g_GMLMathEpsilon,false)==0){___swc1131___=1;}switch(___swc1131___){case 0:{_inst.gmljdir=90;break;}case 1:{_inst.gmljdir=270;break;}};};}else {if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,3)))&&(yyGetBool(yyfless(_inst.gmlbouncedist, 100)))){{_inst.gmljdir=point_direction(_inst.x,_inst.y,yyInst(_inst,_other,YYASSET_REF(0x00000070)).gmlbounce_x,yyInst(_inst,_other,YYASSET_REF(0x00000070)).gmlbounce_y);_inst.gmljforce=clamp(yyfdivide(__yy_gml_errCheck(_inst.gmlbouncedist),40),0.25,1);};}else {if(!yyGetBool(path_exists(_inst.gmlmy_route))){{_inst.gmljforce=0;if((yyGetBool(yyfnotequal(_inst.gmlmy_route_end_dir,999)))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice)))){{_inst.gmljdir=_inst.gmlmy_route_end_dir; _inst.gmljforce=1;};};};};};};break;}};if(!yyGetBool(path_exists(_inst.gmlmy_route))){{var gmlarmstrength=0;var gmlqb=gml_Script_s_get_quarterback(_inst,_other);if((yyGetBool(gmlqb))&&(yyGetBool(yyInst(_inst,_other,gmlqb).gmlpmap))){gmlarmstrength=gml_Script_s_get_attribute(_inst,_other,yyInst(_inst,_other,gmlqb).gmlpmap,"strength");}else {if(yyGetBool(global.gmlexhibition)){gmlarmstrength=yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_offense[__yy_gml_array_check_index(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpossession, yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_offense)];};};var gmldist=yyfplus(260,__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlarmstrength),40)));if((yyGetBool(gmlqb))&&(yyGetBool((yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,2)))||(yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,1)))))){{if(yyfgreater(_inst.gmlballdist,gmldist)){{_inst.gmljdir=_inst.gmlballdir;_inst.gmljforce=0.1;};};};};};};}}function gml_GlobalScript_s_aim_AI_defense(_inst,_other){(_inst.gmls_aim_AI_defense=__yy_method(_inst, gml_Script_s_aim_AI_defense));}function gml_Script_s_aim_AI_defense(_inst,_other){{if(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,true))){return gml_Script_s_aim_AI_kickoff(_inst,_other);};var gmlball=global.gmlmaster_ball;var gmlcont=YYASSET_REF(0x00000069);var ___sw1138___=_inst.gmlposition;var ___swc1139___=-1;if(yyCompareVal(___sw1138___,6,g_GMLMathEpsilon,false)==0){___swc1139___=0;}else if(yyCompareVal(___sw1138___,9,g_GMLMathEpsilon,false)==0){___swc1139___=1;}else if(yyCompareVal(___sw1138___, 8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1138___,7,g_GMLMathEpsilon,false)==0){___swc1139___=2;}switch(___swc1139___){case 0:{var gmlqb=(-4);{var __yy__v1234=GetWithArray(YYASSET_REF(0x0000006C));for(var __yy__v1235 in __yy__v1234){if(!__yy__v1234.hasOwnProperty(__yy__v1235))continue;var __yy__v1236=__yy__v1234[__yy__v1235];if(yyfequal(__yy__v1236.gmlposition,1)){gmlqb=__yy__v1236.id;};}};if(yyGetBool(gmlqb)){{_inst.gmljforce=1;_inst.gmljdir=point_direction(_inst.x,_inst.y,yyInst(_inst,_other,gmlqb).x, yyInst(_inst,_other,gmlqb).y);};}else {{_inst.gmljforce=0;};};break;}case 1:{if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,3)))&&(yyGetBool(yyfless(_inst.gmlbouncedist,80)))){{_inst.gmljdir=point_direction(_inst.x,_inst.y,yyInst(_inst,_other,YYASSET_REF(0x00000070)).gmlbounce_x,yyInst(_inst,_other,YYASSET_REF(0x00000070)).gmlbounce_y);_inst.gmljforce=clamp(yyfdivide(__yy_gml_errCheck(_inst.gmlbouncedist),40),0.25,0.75);};}else {{_inst.gmljdir=180;if(yyfequal(_inst.gmlfacing,(-1))){_inst.gmljdir=0; };_inst.gmljforce=0.3;var gmlopp=gml_Script_s_get_nearest_opponent_by_position(_inst,_other,_inst.id,4);if((yyGetBool(yyfgreater(yyInst(_inst,_other,gmlcont).gmldefensive_cover,0)))||(yyGetBool(yyfless((yyGetBool(gmlopp))&&(yyGetBool(point_distance(_inst.x,_inst.y,yyInst(_inst,_other,gmlopp).x,yyInst(_inst,_other,gmlopp).y))),80)))){{if(yyGetBool(gmlopp)){{gml_Script_s_cover_object(_inst,_other,gmlopp,1);_inst.gmljforce=0.5;};};};};};};break;}case 2:{if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate, 3)))&&(yyGetBool(yyfless(_inst.gmlbouncedist,100)))){{_inst.gmljdir=point_direction(_inst.x,_inst.y,yyInst(_inst,_other,YYASSET_REF(0x00000070)).gmlbounce_x,yyInst(_inst,_other,YYASSET_REF(0x00000070)).gmlbounce_y);_inst.gmljforce=clamp(yyfdivide(__yy_gml_errCheck(_inst.gmlbouncedist),40),0.25,0.75);};}else {if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlcont).gmldefensive_cover,0)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,gmlcont).gmldown,6)))&&(yyGetBool(yyfequal(yyfmod(__yy_gml_errCheck(_inst.gmlrandyards), 2),0)))){{_inst.gmlposition=9;};}else {if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlcont).gmldefensive_cover,0)))&&(yyGetBool(yyfequal(_inst.gmlposition,8)))&&(yyGetBool(yyfequal(yyfmod(__yy_gml_errCheck(_inst.gmlrandyards),2),0)))){{_inst.gmlposition=9;};}else {{var gmlopp=_inst.gmlnearest_opp;if(yyfequal(_inst.gmlposition,7)){{{var __yy__v1237=GetWithArray(YYASSET_REF(0x0000006C));for(var __yy__v1238 in __yy__v1237){if(!__yy__v1237.hasOwnProperty(__yy__v1238))continue;var __yy__v1239=__yy__v1237[__yy__v1238]; if(yyfequal(__yy__v1239.gmlposition,2)){gmlopp=__yy__v1239.id;};}};var gmlclosest_dist=0;var gmlclosest_lb=(-4);{var __yy__v1240=GetWithArray(YYASSET_REF(0x0000006D));for(var __yy__v1241 in __yy__v1240){if(!__yy__v1240.hasOwnProperty(__yy__v1241))continue;var __yy__v1242=__yy__v1240[__yy__v1241];{var gmldist=point_distance(__yy__v1242.x,__yy__v1242.y,yyInst(_inst,_other,gmlopp).x,yyInst(_inst,_other,gmlopp).y);if((yyGetBool(!yyGetBool(gmlclosest_lb)))||(yyGetBool(yyfless(gmldist,gmlclosest_dist)))){{gmlclosest_dist=gmldist; gmlclosest_lb=__yy__v1242.id;};};}}};if(yyfnotequal(gmlclosest_lb,_inst.id)){{gmlopp=_inst.gmlnearest_opp;if(yyfequal(yyInst(_inst,_other,gmlcont).gmldefensive_cover,0)){{{var __yy__v1243=GetWithArray(YYASSET_REF(0x0000006C));for(var __yy__v1244 in __yy__v1243){if(!__yy__v1243.hasOwnProperty(__yy__v1244))continue;var __yy__v1245=__yy__v1243[__yy__v1244];if(yyfequal(__yy__v1245.gmlposition,1)){gmlopp=__yy__v1245.id;};}};};};};};};}else {if(!yyGetBool(gmlopp)){{if(yyfequal(_inst.gmlposition,8)){gmlopp=gml_Script_s_get_nearest_opponent_by_position(_inst, _other,_inst.id,4);};if(yyfequal(_inst.gmlposition,7)){gmlopp=gml_Script_s_get_nearest_opponent_by_position(_inst,_other,_inst.id,(-4));};};};};if((yyGetBool(gmlopp))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,gmlopp).gmltackling)))&&(yyGetBool(yyfnotequal(yyInst(_inst,_other,gmlopp).gmlposition,5)))){{var gmldiff=yyfdivide(__yy_gml_errCheck(clamp(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldifficulty,1,10)),10);var gmld=lerp(10,40,gmldiff);var gmloppdist=point_distance(_inst.x,_inst.y,yyInst(_inst, _other,gmlopp).x,yyInst(_inst,_other,gmlopp).y);if((yyGetBool(yyfnotequal(yyInst(_inst,_other,gmlball).gmlholder,yyInst(_inst,_other,gmlopp).id)))&&(yyGetBool(yyfgreater(gmloppdist,gmld)))){{gml_Script_s_cover_object(_inst,_other,gmlopp,lerp(0.25,0.5,gmldiff));_inst.gmljforce=1;};}else {{if((yyGetBool(yyfnotequal(yyInst(_inst,_other,gmlopp).gmlposition,1)))&&(yyGetBool(!yyGetBool(gml_Script_s_opponent_goalside(_inst,_other,gmlopp))))){{var gmloppdist=point_distance(_inst.x,_inst.y,yyInst(_inst,_other, gmlopp).x,yyInst(_inst,_other,gmlopp).y);_inst.gmljforce=clamp(yyfdivide(__yy_gml_errCheck(gmloppdist),20),0.5,1);};}else {{gml_Script_s_intercept_object(_inst,_other,gmlopp);};};};};};}else {if(yyfequal(_inst.gmlposition,7)){{var ___sw1140___=yyfmod(__yy_gml_errCheck(_inst.gmlrandyards),2);var ___swc1141___=-1;if(yyCompareVal(___sw1140___,0,g_GMLMathEpsilon,false)==0){___swc1141___=0;}switch(___swc1141___){case 0:{_inst.gmljdir=180;if(yyfequal(_inst.gmlfacing,(-1))){_inst.gmljdir=0;};_inst.gmljforce=0.25; break;}default :{_inst.gmljforce=0.75;var gmlopp=(-4);var ___sw1142___=_inst.gmlfacing;var ___swc1143___=-1;if(yyCompareVal(___sw1142___,(-1),g_GMLMathEpsilon,false)==0){___swc1143___=0;}else if(yyCompareVal(___sw1142___,1,g_GMLMathEpsilon,false)==0){___swc1143___=1;}switch(___swc1143___){case 0:{_inst.gmljdir=180;if(yyfless(_inst.x,yyInst(_inst,_other,gmlcont).gmlx_scrim)){gmlopp=gml_Script_s_get_nearest_opponent_by_position(_inst,_other,_inst.id,1);};break;}case 1:{_inst.gmljdir=0;if(yyfgreater(_inst.x, yyInst(_inst,_other,gmlcont).gmlx_scrim)){gmlopp=gml_Script_s_get_nearest_opponent_by_position(_inst,_other,_inst.id,1);};}};if(yyGetBool(gmlopp)){gml_Script_s_intercept_object(_inst,_other,gmlopp);};break;}};};};};};};};};break;}};}}function gml_GlobalScript_s_received_AI_new(_inst,_other){(_inst.gmls_received_AI_new=__yy_method(_inst,gml_Script_s_received_AI_new));}function gml_Script_s_received_AI_new(_inst,_other){{if((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice, 3)))||(yyGetBool((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice,2)))&&(yyGetBool(yyfequal(_inst.gmlposition,5)))))){{_inst.gmljforce=0;return;};};if(yyGetBool(path_exists(_inst.gmlmy_route))){path_delete(_inst.gmlmy_route);};if(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,true))){return gml_Script_s_received_AI_kickoff(_inst,_other);};var gmlball=global.gmlmaster_ball;if(yyfnotequal(yyInst(_inst,_other,gmlball).gmlholder,_inst.id)){{if(yyfequal(_inst.gmlposition, 1)){{_inst.gmljforce=0;return;};};var gmlbeyond_scrim=false;var ___sw1148___=yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmlfacing;var ___swc1149___=-1;if(yyCompareVal(___sw1148___,(-1),g_GMLMathEpsilon,false)==0){___swc1149___=0;}else if(yyCompareVal(___sw1148___,1,g_GMLMathEpsilon,false)==0){___swc1149___=1;}switch(___swc1149___){case 0:{if(yyfless(yyInst(_inst,_other,gmlball).x,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim)){gmlbeyond_scrim=true;};break;}case 1:{if(yyfgreater(yyInst(_inst, _other,gmlball).x,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim)){gmlbeyond_scrim=true;};break;}};if((yyGetBool(!yyGetBool(gmlbeyond_scrim)))&&(yyGetBool(yyfgreater(_inst.gmlballdist,200)))){_inst.gmljforce=0.1;}else {if((yyGetBool(!yyGetBool(gmlbeyond_scrim)))&&(yyGetBool(yyfless(g_pBuiltIn.get_current_time(),yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlplay_start),1000))))){{var gmlt=yyfminus(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),__yy_gml_errCheck(yyInst(_inst, _other,YYASSET_REF(0x00000069)).gmlplay_start));_inst.gmljforce=yyftime(__yy_gml_errCheck(gmlt),0.001);};}else {gml_Script_s_intercept_object(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder);};};};}else {if(yyfnotequal(_inst.gmlposition,1)){{if((yyGetBool(global.gmlgamepad))&&(yyGetBool(!yyGetBool(gml_Script_s_get_op_autorun(_inst,_other))))&&(yyGetBool(_inst.gmloffense))){_inst.gmljforce=0;}else {_inst.gmljforce=1;};return;};};};var ___sw1150___=_inst.gmlposition;var ___swc1151___=-1;if(yyCompareVal(___sw1150___, 3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1150___,4,g_GMLMathEpsilon,false)==0){___swc1151___=0;}else if(yyCompareVal(___sw1150___,5,g_GMLMathEpsilon,false)==0){___swc1151___=1;}else if(yyCompareVal(___sw1150___,6,g_GMLMathEpsilon,false)==0){___swc1151___=2;}switch(___swc1151___){case 0:{if(yyfequal(yyInst(_inst,_other,gmlball).gmlholder,_inst.id)){break;};}case 1:{if(!yyGetBool(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmloffense)){break;};}case 2:{gml_Script_s_aim_for_nearest_opponent(_inst, _other);break;}default :{break;}};if((yyGetBool(yyfnotequal(yyInst(_inst,_other,gmlball).gmlholder,_inst.id)))&&(yyGetBool(yyfequal(_inst.gmloffense,yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmloffense)))){{if(yyfless(_inst.gmlnearest_opp_dist,_inst.gmlballdist)){{gml_Script_s_aim_for_nearest_opponent(_inst,_other);_inst.gmljforce=clamp(yyfdivide(__yy_gml_errCheck(_inst.gmlnearest_opp_dist),20),0.5,1);};}else {{_inst.gmljforce=0.7;};};};};}}function gml_GlobalScript_s_can_throw(_inst, _other){(_inst.gmls_can_throw=__yy_method(_inst,gml_Script_s_can_throw));}function gml_Script_s_can_throw(_inst,_other){{{var __yy__v1246=GetWithArray(yyInst(_inst,_other,global.gmlmaster_ball).gmlholder);for(var __yy__v1247 in __yy__v1246){if(!__yy__v1246.hasOwnProperty(__yy__v1247))continue;var __yy__v1248=__yy__v1246[__yy__v1247];{if(yyfnotequal(__yy__v1248.gmlposition,1)){return false;};var ___sw1154___=__yy__v1248.gmlfacing;var ___swc1155___=-1;if(yyCompareVal(___sw1154___,(-1),g_GMLMathEpsilon,false)==0){ ___swc1155___=0;}else if(yyCompareVal(___sw1154___,1,g_GMLMathEpsilon,false)==0){___swc1155___=1;}switch(___swc1155___){case 0:{if(yyfless(__yy__v1248.x,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim)){return false;};break;}case 1:{if(yyfgreater(__yy__v1248.x,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim)){return false;};break;}};return true;}}};return false;}}function gml_GlobalScript_s_sprite_holding_ball(_inst,_other,argument0){(_inst.gmls_sprite_holding_ball=__yy_method(_inst,gml_Script_s_sprite_holding_ball)); }function gml_Script_s_sprite_holding_ball(_inst,_other,argument0){{var ___sw1158___=argument0;var ___swc1159___=-1;if(yyCompareVal(___sw1158___,YYASSET_REF(0x01000026),g_GMLMathEpsilon,false)==0){___swc1159___=0;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x01000027),g_GMLMathEpsilon,false)==0){___swc1159___=1;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x0100002A),g_GMLMathEpsilon,false)==0){___swc1159___=2;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x01000028),g_GMLMathEpsilon,false)==0){ ___swc1159___=3;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x01000176),g_GMLMathEpsilon,false)==0){___swc1159___=4;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x0100002E),g_GMLMathEpsilon,false)==0){___swc1159___=5;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x0100002F),g_GMLMathEpsilon,false)==0){___swc1159___=6;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x01000033),g_GMLMathEpsilon,false)==0){___swc1159___=7;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x01000034),g_GMLMathEpsilon,false)==0){ ___swc1159___=8;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x01000035),g_GMLMathEpsilon,false)==0){___swc1159___=9;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x01000036),g_GMLMathEpsilon,false)==0){___swc1159___=10;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x01000038),g_GMLMathEpsilon,false)==0){___swc1159___=11;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x01000039),g_GMLMathEpsilon,false)==0){___swc1159___=12;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x0100003A),g_GMLMathEpsilon, false)==0){___swc1159___=13;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x0100003B),g_GMLMathEpsilon,false)==0){___swc1159___=14;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x0100003C),g_GMLMathEpsilon,false)==0){___swc1159___=15;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x01000040),g_GMLMathEpsilon,false)==0){___swc1159___=16;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x01000041),g_GMLMathEpsilon,false)==0){___swc1159___=17;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x01000043),g_GMLMathEpsilon, false)==0){___swc1159___=18;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x01000044),g_GMLMathEpsilon,false)==0){___swc1159___=19;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x01000049),g_GMLMathEpsilon,false)==0){___swc1159___=20;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x0100004B),g_GMLMathEpsilon,false)==0){___swc1159___=21;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x0100009D),g_GMLMathEpsilon,false)==0){___swc1159___=22;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x0100016B),g_GMLMathEpsilon, false)==0){___swc1159___=23;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x01000128),g_GMLMathEpsilon,false)==0){___swc1159___=24;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x01000163),g_GMLMathEpsilon,false)==0){___swc1159___=25;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x010000FF),g_GMLMathEpsilon,false)==0){___swc1159___=26;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x01000117),g_GMLMathEpsilon,false)==0){___swc1159___=27;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x010000A6),g_GMLMathEpsilon, false)==0){___swc1159___=28;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x01000119),g_GMLMathEpsilon,false)==0){___swc1159___=29;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x01000173),g_GMLMathEpsilon,false)==0){___swc1159___=30;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x01000147),g_GMLMathEpsilon,false)==0){___swc1159___=31;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x01000006),g_GMLMathEpsilon,false)==0){___swc1159___=32;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x010000A9),g_GMLMathEpsilon, false)==0){___swc1159___=33;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x0100016F),g_GMLMathEpsilon,false)==0){___swc1159___=34;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x010000F6),g_GMLMathEpsilon,false)==0){___swc1159___=35;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x01000168),g_GMLMathEpsilon,false)==0){___swc1159___=36;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x01000162),g_GMLMathEpsilon,false)==0){___swc1159___=37;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x01000142),g_GMLMathEpsilon, false)==0){___swc1159___=38;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x0100014A),g_GMLMathEpsilon,false)==0){___swc1159___=39;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x010000E5),g_GMLMathEpsilon,false)==0){___swc1159___=40;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x01000132),g_GMLMathEpsilon,false)==0){___swc1159___=41;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x010000FB),g_GMLMathEpsilon,false)==0){___swc1159___=42;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x0100018D),g_GMLMathEpsilon, false)==0){___swc1159___=43;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x0100017B),g_GMLMathEpsilon,false)==0){___swc1159___=44;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x01000048),g_GMLMathEpsilon,false)==0){___swc1159___=45;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x01000160),g_GMLMathEpsilon,false)==0){___swc1159___=46;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x010000FA),g_GMLMathEpsilon,false)==0){___swc1159___=47;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x01000155),g_GMLMathEpsilon, false)==0){___swc1159___=48;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x0100011C),g_GMLMathEpsilon,false)==0){___swc1159___=49;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x010000F4),g_GMLMathEpsilon,false)==0){___swc1159___=50;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x0100010B),g_GMLMathEpsilon,false)==0){___swc1159___=51;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x0100012F),g_GMLMathEpsilon,false)==0){___swc1159___=52;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x01000196),g_GMLMathEpsilon, false)==0){___swc1159___=53;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x01000105),g_GMLMathEpsilon,false)==0){___swc1159___=54;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x01000187),g_GMLMathEpsilon,false)==0){___swc1159___=55;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x010000E9),g_GMLMathEpsilon,false)==0){___swc1159___=56;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x01000188),g_GMLMathEpsilon,false)==0){___swc1159___=57;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x010000EA),g_GMLMathEpsilon, false)==0){___swc1159___=58;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x0100018C),g_GMLMathEpsilon,false)==0){___swc1159___=59;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x01000161),g_GMLMathEpsilon,false)==0){___swc1159___=60;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x0100001F),g_GMLMathEpsilon,false)==0){___swc1159___=61;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x010000F2),g_GMLMathEpsilon,false)==0){___swc1159___=62;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x010000E3),g_GMLMathEpsilon, false)==0){___swc1159___=63;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x01000112),g_GMLMathEpsilon,false)==0){___swc1159___=64;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x010000EB),g_GMLMathEpsilon,false)==0){___swc1159___=65;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x0100006D),g_GMLMathEpsilon,false)==0){___swc1159___=66;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x010000E7),g_GMLMathEpsilon,false)==0){___swc1159___=67;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x0100013D),g_GMLMathEpsilon, false)==0){___swc1159___=68;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x010000E2),g_GMLMathEpsilon,false)==0){___swc1159___=69;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x010000B0),g_GMLMathEpsilon,false)==0){___swc1159___=70;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x0100011F),g_GMLMathEpsilon,false)==0){___swc1159___=71;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x01000054),g_GMLMathEpsilon,false)==0){___swc1159___=72;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x0100000B),g_GMLMathEpsilon, false)==0){___swc1159___=73;}else if(yyCompareVal(___sw1158___,YYASSET_REF(0x01000120),g_GMLMathEpsilon,false)==0){___swc1159___=74;}switch(___swc1159___){case 0:{return true;break;}case 1:{return true;break;}case 2:{return true;break;}case 3:{return true;break;}case 4:{return true;break;}case 5:{return true;break;}case 6:{return true;break;}case 7:{return true;break;}case 8:{return true;break;}case 9:{return true;break;}case 10:{return true;break;}case 11:{return true;break;}case 12:{return true;break;}case 13:{return true; break;}case 14:{return true;break;}case 15:{return true;break;}case 16:{return true;break;}case 17:{return true;break;}case 18:{return true;break;}case 19:{return true;break;}case 20:{return true;break;}case 21:{return true;break;}case 22:{return true;break;}case 23:{return true;break;}case 24:{return true;break;}case 25:{return true;break;}case 26:{return true;break;}case 27:{return true;break;}case 28:{return true;break;}case 29:{return true;break;}case 30:{return true;break;}case 31:{return true;break;}case 32:{return true;break; }case 33:{return true;break;}case 34:{return true;break;}case 35:{return true;break;}case 36:{return true;break;}case 37:{return true;break;}case 38:{return true;break;}case 39:{return true;break;}case 40:{return true;break;}case 41:{return true;break;}case 42:{return true;break;}case 43:{return true;break;}case 44:{return true;break;}case 45:{return true;break;}case 46:{return true;break;}case 47:{return true;break;}case 48:{return true;break;}case 49:{return true;break;}case 50:{return true;break;}case 51:{return true;break;}case 52:{ return true;break;}case 53:{return true;break;}case 54:{return true;break;}case 55:{return true;break;}case 56:{return true;break;}case 57:{return true;break;}case 58:{return true;break;}case 59:{return true;break;}case 60:{return true;break;}case 61:{return true;break;}case 62:{return true;break;}case 63:{return true;break;}case 64:{return true;break;}case 65:{return true;break;}case 66:{return true;break;}case 67:{return true;break;}case 68:{return true;break;}case 69:{return true;break;}case 70:{return true;break;}case 71:{return true; break;}case 72:{return true;break;}case 73:{return true;break;}case 74:{return true;break;}};return false;}}function gml_GlobalScript_s_is_falling(_inst,_other){(_inst.gmls_is_falling=__yy_method(_inst,gml_Script_s_is_falling));}function gml_Script_s_is_falling(_inst,_other){{if((yyGetBool(yyfequal(_inst.sprite_index,YYASSET_REF(0x0100003E))))||(yyGetBool(yyfequal(_inst.sprite_index,YYASSET_REF(0x01000040))))||(yyGetBool(yyfequal(_inst.sprite_index,YYASSET_REF(0x01000041))))){return true;};if((yyGetBool(yyfequal(_inst.sprite_index, YYASSET_REF(0x010000B7))))||(yyGetBool(yyfequal(_inst.sprite_index,YYASSET_REF(0x01000132))))||(yyGetBool(yyfequal(_inst.sprite_index,YYASSET_REF(0x010000FB))))){return true;};if((yyGetBool(yyfequal(_inst.sprite_index,YYASSET_REF(0x010000F8))))||(yyGetBool(yyfequal(_inst.sprite_index,YYASSET_REF(0x0100006D))))||(yyGetBool(yyfequal(_inst.sprite_index,YYASSET_REF(0x010000E7))))){return true;};return false;}}function gml_GlobalScript_is_defensiveback(_inst,_other,argument0){(_inst.gmlis_defensiveback=__yy_method(_inst, gml_Script_is_defensiveback));}function gml_Script_is_defensiveback(_inst,_other,argument0){{{var __yy__v1249=GetWithArray(argument0);for(var __yy__v1250 in __yy__v1249){if(!__yy__v1249.hasOwnProperty(__yy__v1250))continue;var __yy__v1251=__yy__v1249[__yy__v1250];{var ___sw1162___=__yy__v1251.gmlposition;var ___swc1163___=-1;if(yyCompareVal(___sw1162___,8,g_GMLMathEpsilon,false)==0){___swc1163___=0;}else if(yyCompareVal(___sw1162___,7,g_GMLMathEpsilon,false)==0){___swc1163___=1;}else if(yyCompareVal(___sw1162___, 9,g_GMLMathEpsilon,false)==0){___swc1163___=2;}switch(___swc1163___){case 0:{return true;break;}case 1:{return true;break;}case 2:{return true;break;}};}}};return false;}}function gml_GlobalScript_s_get_qb_name(_inst,_other){(_inst.gmls_get_qb_name=__yy_method(_inst,gml_Script_s_get_qb_name));}function gml_Script_s_get_qb_name(_inst,_other){{var gmlqb=gml_Script_s_get_quarterback(_inst,_other);if((yyGetBool(gmlqb))&&(yyGetBool(yyInst(_inst,_other,gmlqb).gmlpmap))){return yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_position(_inst, _other,ds_map_find_value(yyInst(_inst,_other,gmlqb).gmlpmap,"position")))," "),__yy_gml_errCheck(string_copy(ds_map_find_value(yyInst(_inst,_other,gmlqb).gmlpmap,"fname"),1,1))),"."),__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,gmlqb).gmlpmap,"lname")));};return "0";}}function gml_GlobalScript_s_get_kicker_name(_inst,_other){(_inst.gmls_get_kicker_name=__yy_method(_inst,gml_Script_s_get_kicker_name));}function gml_Script_s_get_kicker_name(_inst,_other){{var gmlkk=gml_Script_s_get_kicker(_inst, _other);if((yyGetBool(gmlkk))&&(yyGetBool(yyInst(_inst,_other,gmlkk).gmlpmap))){return yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_position(_inst,_other,ds_map_find_value(yyInst(_inst,_other,gmlkk).gmlpmap,"position")))," "),__yy_gml_errCheck(string_copy(ds_map_find_value(yyInst(_inst,_other,gmlkk).gmlpmap,"fname"),1,1))),"."),__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,gmlkk).gmlpmap,"lname")));};return "0";}}function gml_GlobalScript_s_get_holder_name(_inst, _other){(_inst.gmls_get_holder_name=__yy_method(_inst,gml_Script_s_get_holder_name));}function gml_Script_s_get_holder_name(_inst,_other){{{var __yy__v1252=GetWithArray(global.gmlmaster_ball);for(var __yy__v1253 in __yy__v1252){if(!__yy__v1252.hasOwnProperty(__yy__v1253))continue;var __yy__v1254=__yy__v1252[__yy__v1253];{if((yyGetBool(__yy__v1254.gmlholder))&&(yyGetBool(yyInst(_inst,_other,__yy__v1254.gmlholder).gmlpmap))){return yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_position(__yy__v1254, _inst,ds_map_find_value(yyInst(_inst,_other,__yy__v1254.gmlholder).gmlpmap,"position")))," "),__yy_gml_errCheck(string_copy(ds_map_find_value(yyInst(_inst,_other,__yy__v1254.gmlholder).gmlpmap,"fname"),1,1))),"."),__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,__yy__v1254.gmlholder).gmlpmap,"lname")));};}}};return "0";}}function gml_GlobalScript_s_get_opponent_team_tla(_inst,_other){(_inst.gmls_get_opponent_team_tla=__yy_method(_inst,gml_Script_s_get_opponent_team_tla));}function gml_Script_s_get_opponent_team_tla(_inst, _other){{{var __yy__v1255=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v1256 in __yy__v1255){if(!__yy__v1255.hasOwnProperty(__yy__v1256))continue;var __yy__v1257=__yy__v1255[__yy__v1256];{var gmlmap=__yy__v1257.gmlteam[__yy_gml_array_check_index(!yyGetBool(__yy__v1257.gmlhuman_team)?1:0,__yy__v1257.gmlteam)];if((yyGetBool(ds_exists(gmlmap,1)))&&(yyGetBool(ds_map_exists(gmlmap,"tla")))){return ds_map_find_value(gmlmap,"tla");};}}};return "0";}}function gml_GlobalScript_s_set_up_play(_inst,_other){(_inst.gmls_set_up_play=__yy_method(_inst, gml_Script_s_set_up_play));(_inst.gmls_btn_audible_reposition=__yy_method(_inst,gml_Script_s_btn_audible_reposition));(_inst.gmls_btn_fieldgoal_reposition=__yy_method(_inst,gml_Script_s_btn_fieldgoal_reposition));}function gml_Script_s_set_up_play(_inst,_other,argument0){{show_debug_message(yyfplus("s_set_up_play: difficulty = ",__yy_gml_errCheck(string(yyfplus(5,__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldifficulty))))));if(yyGetBool(global.gmlexhibition)){gml_Script_s_force_kick_direction(_inst, _other);};gml_Script__poki_gameplay_start(_inst,_other);{var __yy__v1258=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v1259 in __yy__v1258){if(!__yy__v1258.hasOwnProperty(__yy__v1259))continue;var __yy__v1260=__yy__v1258[__yy__v1259];{gml_Script_slog_roster(__yy__v1260,_inst,"setup_play",0);gml_Script_slog_roster(__yy__v1260,_inst,"setup_play",1);__yy__v1260.gmlteam_roster=__yy_gml_array_check(__yy__v1260.gmlteam_roster,466443160);__yy__v1260.gmlteam_roster[__yy_gml_array_check_index_set(0)]=gml_Script_s_sort_players(__yy__v1260, _inst,__yy__v1260.gmlteam_roster[__yy_gml_array_check_index(0,__yy__v1260.gmlteam_roster)],4);__yy__v1260.gmlteam_roster[__yy_gml_array_check_index_set(1)]=gml_Script_s_sort_players(__yy__v1260,_inst,__yy__v1260.gmlteam_roster[__yy_gml_array_check_index(1,__yy__v1260.gmlteam_roster)],4);}}};global.gmlreplay_do=false;_inst.gmlplaystart_time=g_pBuiltIn.get_current_time();_inst.gmltimeout_called=false;_inst.gmlkicking=0;_inst.gmlrunning_play=false;_inst.gmlscorer="";_inst.gmlscored_by=(-1);_inst.gmldrop_happened=false; _inst.gmlcheer_frame=0;_inst.gmldist_td=0;if(yyfequal(_inst.gmlquarter,5)){{_inst.gmlhad_ot_possession=__yy_gml_array_check(_inst.gmlhad_ot_possession,1346804767);_inst.gmlhad_ot_possession[__yy_gml_array_check_index_set(_inst.gmlpossession)]=1;gml_Script_slog(_inst,_other,yyfplus(yyfplus("had_ot_possession[",__yy_gml_errCheck(string(_inst.gmlpossession))),"] = 1"));};};var ___sw1166___=_inst.gmldown;var ___swc1167___=-1;if(yyCompareVal(___sw1166___,99,g_GMLMathEpsilon,false)==0){___swc1167___=0;} else if(yyCompareVal(___sw1166___,4,g_GMLMathEpsilon,false)==0){___swc1167___=1;}else if(yyCompareVal(___sw1166___,5,g_GMLMathEpsilon,false)==0){___swc1167___=2;}else if(yyCompareVal(___sw1166___,6,g_GMLMathEpsilon,false)==0){___swc1167___=3;}else if(yyCompareVal(___sw1166___,7,g_GMLMathEpsilon,false)==0){___swc1167___=4;}switch(___swc1167___){case 0:{gml_Script_s_set_up_kickoff(_inst,_other);if(!yyGetBool(global.gmlexhibition)){{if((yyGetBool(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltag_kr_message_done, 0)))&&(yyGetBool(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltag_kr_message_done,3)))){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltag_kr_message_done=3;gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_TouchBack"),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",16777215,0.7);};};};};return;}case 1:{if((yyGetBool(yyflessequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlminutes,0)))&&(yyGetBool(yyflessequal(yyInst(_inst,_other, YYASSET_REF(0x00000069)).gmlseconds,0)))){{gml_Script_s_action_result(_inst,_other,9);return;};}else {if(!yyGetBool(argument0)){{if(yyfless(_inst.gmlscrimmage,(-2))){{if((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlquarter,5)))&&(yyGetBool(gml_Script_s_both_teams_had_possession(_inst,_other)))&&(yyGetBool(yyfnotequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_score[__yy_gml_array_check_index(0,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_score)],yyInst(_inst, _other,YYASSET_REF(0x00000069)).gmlteam_score[__yy_gml_array_check_index(1,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_score)])))){break;}else {gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"matchmsg_PlayPunt"),gml_Script_s_str(_inst,_other,"down_4"),gml_Script_s_str(_inst,_other,"Punt"),kgml_Script_btn_response_kick_no,kgml_Script_btn_response_punt_yes,16777215,0.7);};};}else {{var gmlstr_down=gml_Script_s_str(_inst,_other,yyfplus("down_",__yy_gml_errCheck(string(_inst.gmldown)))); var gmlmsg=string_replace(gml_Script_s_str(_inst,_other,"matchmsg_PlayFG"),"$down",gmlstr_down);gml_Script_s_create_message(_inst,_other,"",gmlmsg,gmlstr_down,gml_Script_s_str(_inst,_other,"Field Goal"),kgml_Script_btn_response_kick_no,kgml_Script_btn_response_fg_yes,16777215,0.7);};};};};};break;}case 2:{gml_Script_s_action_result(_inst,_other,4);return;break;}case 3:{_inst.gmlyards=3;_inst.gmlscrimmage=47;break;}case 4:{gml_Script_s_action_result(_inst,_other,4);return;break;}default :{if(yyGetBool(gml_Script_s_college_overtime_offer_kick(_inst, _other))){{gml_Script_slog(_inst,_other,"Offer C.OT Field Goal");var gmlstr_down=gml_Script_s_str(_inst,_other,yyfplus("down_",__yy_gml_errCheck(string(_inst.gmldown))));var gmlmsg=string_replace(gml_Script_s_str(_inst,_other,"matchmsg_PlayFG"),"$down",gml_Script_s_str(_inst,_other,yyfplus("down_",__yy_gml_errCheck(string(_inst.gmldown)))));gml_Script_s_create_message(_inst,_other,"",gmlmsg,gmlstr_down,gml_Script_s_str(_inst,_other,"Field Goal"),kgml_Script_btn_response_kick_no,kgml_Script_btn_response_fg_yes, 16777215,0.7);};}else {if((yyGetBool(yyflessequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlminutes,0)))&&(yyGetBool(yyflessequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlseconds,0)))){{gml_Script_s_action_result(_inst,_other,9);return;};}else {if((yyGetBool(!yyGetBool(argument0)))&&(yyGetBool(yyfgreaterequal(_inst.gmlscrimmage,(-2))))&&(yyGetBool(gml_Script_s_last_secs_of_half(_inst,_other,20)))){{var gmlstr_down=gml_Script_s_str(_inst,_other,yyfplus("down_",__yy_gml_errCheck(string(_inst.gmldown)))); var gmlmsg=gml_Script_s_str(_inst,_other,"matchmsg_PlayFG");gmlmsg=string_replace(gmlmsg,"$down",gmlstr_down);gml_Script_slog(_inst,_other,"Offer Field Goal");gml_Script_s_create_message(_inst,_other,"",gmlmsg,gmlstr_down,gml_Script_s_str(_inst,_other,"Field Goal"),kgml_Script_btn_response_kick_no,kgml_Script_btn_response_fg_yes,16777215,0.7);};}else {if((yyGetBool(!yyGetBool(global.gmlexhibition)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear,1)))&&(yyGetBool(!yyGetBool(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlgamepractice)))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltimeout_message_done)))){{var gmlmsg="msg_Audibles";if(yyGetBool(global.gmlbrowser)){gmlmsg="msg_AudiblesHtml";};if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)){gmlmsg="msg_AudiblesQB";};gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,gmlmsg),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_timeouts,"",16777215, 0.7);};}else {if((yyGetBool(!yyGetBool(global.gmlexhibition)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear,1)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,1)))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice)))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlbullet_throw_message_done)))){{var gmlmsg="msg_BulletThrow";if(yyGetBool(global.gmlgamepad)){gmlmsg="msg_BulletThrowGamepad"; }else {if(!yyGetBool(global.gmlmobile_device)){gmlmsg="msg_BulletThrowHtml";};};yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlbullet_throw_message_done=1;gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,gmlmsg),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",16777215,0.7);};};};};};};break;}};show_debug_message(yyfplus("Down = ",__yy_gml_errCheck(string(_inst.gmldown))));show_debug_message(yyfplus("Scrimmage = ",__yy_gml_errCheck(string(_inst.gmlscrimmage)))); _inst.gmlx_scrim=yyfplus(1300,__yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(_inst.gmlscrimmage),20),__yy_gml_errCheck(_inst.gmldrivedir))));_inst.gmlx_yards=yyfplus(__yy_gml_errCheck(_inst.gmlx_scrim),__yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(_inst.gmlyards),20),__yy_gml_errCheck(_inst.gmldrivedir))));_inst.gmly_scrim=276;if(yyfgreater(_inst.gmly_down,300)){_inst.gmly_scrim=332;};if(yyfequal(_inst.gmldown,6)){_inst.gmly_scrim=300;};gml_Script_s_choose_defensive_formation(_inst,_other); (g_yyPrePostObject__=_inst.gmlsnaps,_inst.gmlsnaps=(g_yyPrePostObject__ instanceof Long?_inst.gmlsnaps.add(1):++_inst.gmlsnaps),g_yyPrePostObject__);gml_Script_s_destroy_match_objects(_inst,_other);gml_Script_slog(_inst,_other,"Create players");var gmlo=0;for(;yyfless(gmlo,11);(g_yyPrePostObject__=gmlo,gmlo=(g_yyPrePostObject__ instanceof Long?gmlo.add(1):++gmlo),g_yyPrePostObject__)){{instance_create_layer(0,0,"Players",YYASSET_REF(0x0000006C));}};var gmld=0;for(;yyfless(gmld,11);(g_yyPrePostObject__=gmld, gmld=(g_yyPrePostObject__ instanceof Long?gmld.add(1):++gmld),g_yyPrePostObject__)){{instance_create_layer(0,0,"Players",YYASSET_REF(0x0000006D));}};{var __yy__v1261=GetWithArray(YYASSET_REF(0x0000006B));for(var __yy__v1262 in __yy__v1261){if(!__yy__v1261.hasOwnProperty(__yy__v1262))continue;var __yy__v1263=__yy__v1261[__yy__v1262];gml_Script_s_set_skills_and_skin(__yy__v1263,_inst);}};if((yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode))&&(yyGetBool(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldown, 5)))){gml_Script_s_set_rewarded_route(_inst,_other);};gml_Script_slog(_inst,_other,"Create ball");global.gmlmaster_ball=instance_create_layer(0,0,"Ball",YYASSET_REF(0x0000006F));instance_create_layer(0,0,"Ball",YYASSET_REF(0x00000070));gml_Script_slog(_inst,_other,yyfplus("instance_number(obj_ball) == ",__yy_gml_errCheck(string(instance_number(YYASSET_REF(0x0000006F))))));yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlcontrol_alpha=5;var gmlauds=gml_Script_s_count_audibles(_inst,_other);if(yyGetBool(gmlauds)){ {var gmlbx=32;var gmlby=48;if(yyfequal(_inst.gmldrivedir,(-1))){gmlbx=yyfminus(yyfminus(__yy_gml_errCheck(display_get_gui_width()),32),__yy_gml_errCheck(sprite_get_width(YYASSET_REF(0x01000059))));};gml_Script_slog(_inst,_other,yyfplus("Create audible button: ",__yy_gml_errCheck(string(gmlauds))));var gmlbtn_aud=instance_create_layer(gmlbx,gmlby,"Text",YYASSET_REF(0x0000007A));yyInst(_inst,_other,gmlbtn_aud).gmlgp_mapped_button=global.gmlgp_timeout;};};var gmllateCollegeOT=false;if((yyGetBool(yyInst(_inst, _other,YYASSET_REF(0x00000069)).gmlcollege_overtime))&&(yyGetBool(yyfgreaterequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlcollege_overtime_round,3)))){{gmllateCollegeOT=true;};};if((yyGetBool((yyGetBool(yyfequal(_inst.gmldown,4)))||(yyGetBool(yyfequal(_inst.gmldown,6)))))&&(yyGetBool(gml_Script_s_count_timeouts(_inst,_other)))&&(yyGetBool(!yyGetBool(gmllateCollegeOT)))){{var gmlbx=yyfminus(yyfminus(__yy_gml_errCheck(display_get_gui_width()),32),__yy_gml_errCheck(sprite_get_width(YYASSET_REF(0x01000059)))); var gmlby=48;if(yyfequal(_inst.gmldrivedir,(-1))){gmlbx=32;};var gmlobj_btn_fg=instance_create_layer(gmlbx,gmlby,"Text",YYASSET_REF(0x0000007C));yyInst(_inst,_other,gmlobj_btn_fg).gmlgp_mapped_button=32772;yyInst(_inst,_other,gmlobj_btn_fg).gmlgp_mapped_hidden=32774;if(yyfequal(_inst.gmldown,6)){{yyInst(_inst,_other,gmlobj_btn_fg).gmltxt=gml_Script_s_str(_inst,_other,"btn_GoFor1");yyInst(_inst,_other,gmlobj_btn_fg).gmlonClickAction=kgml_Script_btn_match_gofor1pt;};};gml_Script_slog(_inst,_other,yyfplus(yyfplus("Kick button offer: [", __yy_gml_errCheck(yyInst(_inst,_other,gmlobj_btn_fg).gmltxt)),"]"));};};}}function gml_Script_s_btn_audible_reposition(_inst,_other){{if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldrivedir,(-1))){_inst.x=yyfminus(yyfminus(__yy_gml_errCheck(display_get_gui_width()),32),__yy_gml_errCheck(sprite_get_width(YYASSET_REF(0x01000059))));}else {_inst.x=32;};}}function gml_Script_s_btn_fieldgoal_reposition(_inst,_other){{if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldrivedir,(-1))){ _inst.x=32;}else {_inst.x=yyfminus(yyfminus(__yy_gml_errCheck(display_get_gui_width()),32),__yy_gml_errCheck(sprite_get_width(YYASSET_REF(0x01000059))));};}}function gml_GlobalScript_s_update_commentary(_inst,_other){(_inst.gmls_update_commentary=__yy_method(_inst,gml_Script_s_update_commentary));(_inst.gmls_go_for_it_or_not=__yy_method(_inst,gml_Script_s_go_for_it_or_not));(_inst.gmls_check_skip_time_button=__yy_method(_inst,gml_Script_s_check_skip_time_button));(_inst.gmlbtn_skip_time=__yy_method(_inst, gml_Script_btn_skip_time));(_inst.gmls_no_ties_allowed=__yy_method(_inst,gml_Script_s_no_ties_allowed));(_inst.gmlroster_short_desc=__yy_method(_inst,gml_Script_roster_short_desc));(_inst.gmlroster_short_desc_tag=__yy_method(_inst,gml_Script_roster_short_desc_tag));(_inst.gmlslog_roster=__yy_method(_inst,gml_Script_slog_roster));(_inst.gmlslog_master_roster=__yy_method(_inst,gml_Script_slog_master_roster));}function gml_Script_s_update_commentary(_inst,_other){{gml_Script_s_stop_brass_loop(_inst, _other);gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("s_update_commentary: ",__yy_gml_errCheck(gml_Script_s_get_string_commstage(_inst,_other,_inst.gmlcomm_stage)))," possesion: "),__yy_gml_errCheck(gml_Script_s_co_poss_str(_inst,_other,_inst.gmlpossession)))," scrimmage:"),__yy_gml_errCheck(string(_inst.gmlscrimmage))));_inst.gmlcomm_proceed=false;_inst.gmltap_msg="";_inst.gmllast_stage=_inst.gmlcomm_stage;if(yyGetBool(_inst.gmlskip_half)){_inst.alarm=__yy_gml_array_check(_inst.alarm, 1584050178);_inst.alarm[__yy_gml_array_check_index_set(1)]=1;}else {_inst.alarm=__yy_gml_array_check(_inst.alarm,1584050178);_inst.alarm[__yy_gml_array_check_index_set(1)]=100;};instance_destroy(_inst,YYASSET_REF(0x00000071));gml_Script_slog(_inst,_other,yyfplus("drives=",__yy_gml_errCheck(string(_inst.gmldrives))));if(yyGetBool(gml_Script_s_simming_action(_inst,_other))){gml_Script_s_check_skip_time_button(_inst,_other);};if(yyGetBool(global.gmldebug_co_overtime)){{if(yyfless(_inst.gmlquarter,4)){ {_inst.gmlquarter=4;};};};};var ___sw1198___=_inst.gmlcomm_stage;var ___swc1199___=-1;if(yyCompareVal(___sw1198___,0,g_GMLMathEpsilon,false)==0){___swc1199___=0;}else if(yyCompareVal(___sw1198___,1,g_GMLMathEpsilon,false)==0){___swc1199___=1;}else if(yyCompareVal(___sw1198___,25,g_GMLMathEpsilon,false)==0){___swc1199___=2;}else if(yyCompareVal(___sw1198___,26,g_GMLMathEpsilon,false)==0){___swc1199___=3;}else if(yyCompareVal(___sw1198___,27,g_GMLMathEpsilon,false)==0){___swc1199___=4;}else if(yyCompareVal(___sw1198___, 28,g_GMLMathEpsilon,false)==0){___swc1199___=5;}else if(yyCompareVal(___sw1198___,29,g_GMLMathEpsilon,false)==0){___swc1199___=6;}else if(yyCompareVal(___sw1198___,2,g_GMLMathEpsilon,false)==0){___swc1199___=7;}else if(yyCompareVal(___sw1198___,3,g_GMLMathEpsilon,false)==0){___swc1199___=8;}else if(yyCompareVal(___sw1198___,24,g_GMLMathEpsilon,false)==0){___swc1199___=9;}else if(yyCompareVal(___sw1198___,4,g_GMLMathEpsilon,false)==0){___swc1199___=10;}else if(yyCompareVal(___sw1198___,23,g_GMLMathEpsilon, false)==0){___swc1199___=11;}else if(yyCompareVal(___sw1198___,5,g_GMLMathEpsilon,false)==0){___swc1199___=12;}else if(yyCompareVal(___sw1198___,6,g_GMLMathEpsilon,false)==0){___swc1199___=13;}else if(yyCompareVal(___sw1198___,7,g_GMLMathEpsilon,false)==0){___swc1199___=14;}else if(yyCompareVal(___sw1198___,8,g_GMLMathEpsilon,false)==0){___swc1199___=15;}else if(yyCompareVal(___sw1198___,9,g_GMLMathEpsilon,false)==0){___swc1199___=16;}else if(yyCompareVal(___sw1198___,10,g_GMLMathEpsilon,false)==0){___swc1199___=17; }else if(yyCompareVal(___sw1198___,11,g_GMLMathEpsilon,false)==0){___swc1199___=18;}else if(yyCompareVal(___sw1198___,12,g_GMLMathEpsilon,false)==0){___swc1199___=19;}else if(yyCompareVal(___sw1198___,13,g_GMLMathEpsilon,false)==0){___swc1199___=20;}else if(yyCompareVal(___sw1198___,14,g_GMLMathEpsilon,false)==0){___swc1199___=21;}else if(yyCompareVal(___sw1198___,15,g_GMLMathEpsilon,false)==0){___swc1199___=22;}else if(yyCompareVal(___sw1198___,16,g_GMLMathEpsilon,false)==0){___swc1199___=23;}else if(yyCompareVal(___sw1198___, 17,g_GMLMathEpsilon,false)==0){___swc1199___=24;}else if(yyCompareVal(___sw1198___,18,g_GMLMathEpsilon,false)==0){___swc1199___=25;}else if(yyCompareVal(___sw1198___,19,g_GMLMathEpsilon,false)==0){___swc1199___=26;}else if(yyCompareVal(___sw1198___,20,g_GMLMathEpsilon,false)==0){___swc1199___=27;}else if(yyCompareVal(___sw1198___,21,g_GMLMathEpsilon,false)==0){___swc1199___=28;}else if(yyCompareVal(___sw1198___,22,g_GMLMathEpsilon,false)==0){___swc1199___=29;}else if(yyCompareVal(___sw1198___,30,g_GMLMathEpsilon, false)==0){___swc1199___=30;}switch(___swc1199___){case 0:{_inst.gmlcomm_stage=1;_inst.alarm=__yy_gml_array_check(_inst.alarm,1584050178);_inst.alarm[__yy_gml_array_check_index_set(1)]=1;break;}case 1:{if(yyGetBool(gml_Script_s_is_quarter_over(_inst,_other))){{gml_Script_s_update_commentary(_inst,_other);break;};};var gmldeficit=abs(yyfminus(__yy_gml_errCheck(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlhuman_team,_inst.gmlteam_score)]),__yy_gml_errCheck(_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlhuman_team)?1:0, _inst.gmlteam_score)])));var gmlsecs_remaining=gml_Script_s_seconds_remaining(_inst,_other);var gmllsecs=100;if(yyfgreater(gmldeficit,8)){gmllsecs=160;};if((yyGetBool(yyfequal(_inst.gmlpossession,_inst.gmlhuman_team)))&&(yyGetBool(gml_Script_s_simming_action(_inst,_other)))){{gml_Script_s_kick_off(_inst,_other);};}else {if((yyGetBool((yyGetBool(yyfequal(_inst.gmlpossession,_inst.gmlhuman_team)))||(yyGetBool((yyGetBool(global.gmlexhibition))&&(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayerteamindex, (-1))))))))&&(yyGetBool(yyfequal(_inst.gmlquarter,4)))&&(yyGetBool(yyflessequal(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_score)],_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlpossession)?1:0,_inst.gmlteam_score)])))&&(yyGetBool(gml_Script_s_last_secs_of_half(_inst,_other,gmllsecs)))){{var gmlchance=9;var gmlkk=gml_Script_s_get_player_by_position_from_roster(_inst,_other,10,1,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_roster[__yy_gml_array_check_index(_inst.gmlpossession, yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_roster)]);if(yyGetBool(gmlkk)){gmlchance=yyfplus(gmlchance,gml_Script_s_get_attribute(_inst,_other,gmlkk,"skill"));};var gmlmsg=string_replace(gml_Script_s_str(_inst,_other,"msg_OnSideKick"),"$num",string(gmlchance));gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_btn_response_onsidekick_no,kgml_Script_btn_response_onsidekick_yes,16777215,0.7);_inst.gmlcomm_stage=25; _inst.gmlscrimmage=(-15);};}else {if((yyGetBool(yyfnotequal(_inst.gmlpossession,_inst.gmlhuman_team)))&&(yyGetBool(yyfequal(_inst.gmlquarter,4)))&&(yyGetBool(yyfgreater(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlhuman_team,_inst.gmlteam_score)],_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlhuman_team)?1:0,_inst.gmlteam_score)])))&&(yyGetBool((yyGetBool((yyGetBool(yyflessequal(gmldeficit,8)))&&(yyGetBool(yyflessequal(gmlsecs_remaining,60)))))||(yyGetBool((yyGetBool(yyfgreater(gmldeficit, 8)))&&(yyGetBool(yyflessequal(gmldeficit,16)))&&(yyGetBool(yyfgreater(gmlsecs_remaining,60)))))))){{_inst.gmlcomm_stage=27;_inst.gmlscrimmage=(-15);gml_Script_s_update_commentary(_inst,_other);};}else {{gml_Script_s_kick_off(_inst,_other);};};};};break;}case 2:{break;}case 3:{gml_Script_s_kick_off(_inst,_other);gml_Script_s_sound_kick(_inst,_other);break;}case 4:{gml_Script_s_sound_kick(_inst,_other);var gmlchance=9;var gmlkk=(-1);if(yyfequal(_inst.gmlpossession,_inst.gmlhuman_team)){{gmlkk=gml_Script_s_get_player_by_position_from_roster(_inst, _other,10,1,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_roster[__yy_gml_array_check_index(_inst.gmlpossession,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_roster)]);if(yyGetBool(gmlkk)){gmlchance=yyfplus(gmlchance,gml_Script_s_get_attribute(_inst,_other,gmlkk,"skill"));};};};_inst.gmlcomm_stage=1;if(yyGetBool(gmlkk)){_inst.gmlcomm_txt=string_replace(gml_Script_s_str(_inst,_other,"match_OnsideKickingPlayer"),"$playername",ds_map_find_value(gmlkk,"lname"));}else {_inst.gmlcomm_txt=string_replace(gml_Script_s_str(_inst, _other,"match_OnsideKicking"),"$teamname",_inst.gmlteam_name[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_name)]);};if(yyfless(irandom(99),gmlchance)){_inst.gmlcomm_stage=28;}else {_inst.gmlcomm_stage=29;};break;}case 5:{gml_Script_s_sound_audience_fg(_inst,_other);_inst.gmldown=1;_inst.gmlyards=10;_inst.gmlscrimmage=yyfplus(_inst.gmlscrimmage,irandom_range(10,15));gml_Script_s_subtract_time(_inst,_other,3,4,"COMM_STAGE_ONSIDEKICK_SUCCESS");_inst.gmlcomm_txt=string_replace(gml_Script_s_str(_inst, _other,"match_OnsideKickingSuccess"),"$teamname",_inst.gmlteam_name[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_name)]);gml_Script_s_change_possession(_inst,_other);gml_Script_s_change_possession(_inst,_other);_inst.gmllast_play=1;break;}case 6:{gml_Script_s_sound_audience_dis(_inst,_other);_inst.gmldown=1;_inst.gmlyards=10;_inst.gmlscrimmage=yyfplus(_inst.gmlscrimmage,irandom_range(10,15));gml_Script_s_subtract_time(_inst,_other,3,4,"COMM_STAGE_ONSIDEKICK_FAIL");gml_Script_s_change_possession(_inst, _other);_inst.gmlcomm_txt=string_replace(gml_Script_s_str(_inst,_other,"match_OnsideKickingFail"),"$teamname",_inst.gmlteam_name[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_name)]);_inst.gmllast_play=1;break;}case 7:{_inst.gmlgoforit=false;_inst.gmlhailmary=false;_inst.gmlscored_by=(-1);if(yyfequal(_inst.gmlquarter,5)){{_inst.gmlhad_ot_possession=__yy_gml_array_check(_inst.gmlhad_ot_possession,1346804767);_inst.gmlhad_ot_possession[__yy_gml_array_check_index_set(_inst.gmlpossession)]=1; gml_Script_slog(_inst,_other,yyfplus(yyfplus("had_ot_possession[",__yy_gml_errCheck(string(_inst.gmlpossession))),"] = 1"));};};if(yyGetBool(gml_Script_s_is_quarter_over(_inst,_other))){{gml_Script_s_update_commentary(_inst,_other);break;};};var gmlscr=round(_inst.gmlscrimmage);if(yyfgreater(gmlscr,40)){_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,"comm_stage_Possession_RedZone");}else {if(yyfless(gmlscr,(-40))){_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,"comm_stage_Possession_BackedUp");} else {if((yyGetBool(yyfgreaterequal(gmlscr,(-10))))&&(yyGetBool(yyflessequal(gmlscr,20)))){_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,"comm_stage_Possession_Halfway");}else {if(yyfless(gmlscr,(-10))){_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,yyfplus("comm_stage_Possession_OwnHalf",__yy_gml_errCheck(string(yyfplus(1,__yy_gml_errCheck(yyfmod(__yy_gml_errCheck((g_yyPrePostObject__=_inst.gmlposs_txt,_inst.gmlposs_txt=(g_yyPrePostObject__ instanceof Long?_inst.gmlposs_txt.add(1):++_inst.gmlposs_txt), g_yyPrePostObject__)),3)))))));}else {_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,yyfplus("comm_stage_Possession_OppHalf",__yy_gml_errCheck(string(yyfplus(1,__yy_gml_errCheck(yyfmod(__yy_gml_errCheck((g_yyPrePostObject__=_inst.gmlposs_txt,_inst.gmlposs_txt=(g_yyPrePostObject__ instanceof Long?_inst.gmlposs_txt.add(1):++_inst.gmlposs_txt),g_yyPrePostObject__)),3)))))));};};};};var gmlyrd=yyfminus(50,__yy_gml_errCheck(abs(gmlscr)));_inst.gmlcomm_txt=string_replace(_inst.gmlcomm_txt,"$num",string(gmlyrd)); _inst.gmlcomm_txt=string_replace(_inst.gmlcomm_txt,"$teamname",_inst.gmlteam_name[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_name)]);_inst.gmlcomm_stage=3;break;}case 8:{_inst.gmlphase=yyfplus(_inst.gmlphase,1);if((yyGetBool(!yyGetBool(gml_Script_s_simming_action(_inst,_other))))&&(yyGetBool((yyGetBool(yyfequal(_inst.gmlpossession,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayerteamindex)))||(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayerteamindex, (-1))))))){{if((yyGetBool((yyGetBool(yyfequal(_inst.gmllast_play,5)))||(yyGetBool(yyfequal(_inst.gmllast_play,1)))))&&(yyGetBool(yyfless(_inst.gmlscrimmage,(-10))))&&(yyGetBool(yyfequal(_inst.gmlphase,1)))){{_inst.gmlcomm_gain=yyfplus(__yy_gml_errCheck(irandom_range(7,15)),__yy_gml_errCheck(irandom(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldifficulty)));_inst.gmlcomm_gain=clamp(_inst.gmlcomm_gain,7,30);_inst.gmlscrimmage=yyfplus(_inst.gmlscrimmage,_inst.gmlcomm_gain);if(yyfgreater(_inst.gmlcomm_gain, 10)){{_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,"comm_stage_PuntReturnGood");_inst.gmlcomm_txt=string_replace(_inst.gmlcomm_txt,"$num",_inst.gmlcomm_gain);};}else {_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,"comm_stage_PuntReturnShort");};_inst.gmlcomm_stage=2;};}else {{_inst.gmlstate=2;};};};}else {{_inst.gmlcomm_stage=4;if(yyfnotequal(_inst.gmlpossession,_inst.gmlhuman_team)){{{var __yy__v1264=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1265 in __yy__v1264){if(!__yy__v1264.hasOwnProperty(__yy__v1265))continue; var __yy__v1266=__yy__v1264[__yy__v1265];{var gmldef_roster=yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_roster[__yy_gml_array_check_index(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpossession)?1:0,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_roster)];if(yyfnotequal(gmldef_roster,(-4))){{var gmli=0;for(;yyfless(gmli,ds_list_size(gmldef_roster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(gmldef_roster, gmli);if((yyGetBool(ds_map_exists(gmlpmap,"backup")))&&(yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"backup"),true)))){continue;};if((yyGetBool(yyfgreater(ds_map_find_value(gmlpmap,"condition"),0)))&&(yyGetBool(!yyGetBool(gml_Script_s_player_benched(__yy__v1266,_inst,gmlpmap))))){{var ___sw1200___=ds_map_find_value(gmlpmap,"position");var ___swc1201___=-1;if(yyCompareVal(___sw1200___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1200___,7,g_GMLMathEpsilon,false)==0){___swc1201___=0;}else if(yyCompareVal(___sw1200___, 9,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1200___,8,g_GMLMathEpsilon,false)==0){___swc1201___=1;}switch(___swc1201___){case 0:{if(yyfless(random(4),random(gml_Script_s_get_attribute(__yy__v1266,_inst,gmlpmap,"skill")))){ds_map_set_post(gmlpmap,"stat_tackles",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_tackles")),1));};break;}case 1:{if(yyfless(random(6),random(gml_Script_s_get_attribute(__yy__v1266,_inst,gmlpmap,"skill")))){ds_map_set_post(gmlpmap,"stat_tackles",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap, "stat_tackles")),1));};break;}};};};}};};};}}};};};gml_Script_s_update_commentary(_inst,_other);};};break;}case 9:{_inst.gmlgoforit=true;_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,"comm_stage_GoForIt");_inst.gmlcomm_txt=string_replace(_inst.gmlcomm_txt,"$teamname",_inst.gmlteam_name[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_name)]);_inst.gmlcomm_stage=4;break;}case 10:{_inst.gmlscored_by=(-1);var ___sw1202___=irandom(2);var ___swc1203___=-1;if(yyCompareVal(___sw1202___,0,g_GMLMathEpsilon, false)==0){___swc1203___=0;}else if(yyCompareVal(___sw1202___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1202___,2,g_GMLMathEpsilon,false)==0){___swc1203___=1;}switch(___swc1203___){case 0:{_inst.gmlrunorpass=1;break;}case 1:{_inst.gmlrunorpass=2;break;}};if(yyfgreaterequal(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_score)],_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_score)])){{if((yyGetBool(gml_Script_s_last_secs_of_half(_inst, _other,45)))&&(yyGetBool(!yyGetBool(irandom(4))))){_inst.gmlrunorpass=1;};};}else {{if((yyGetBool(gml_Script_s_last_secs_of_half(_inst,_other,60)))&&(yyGetBool(!yyGetBool(irandom(4))))&&(yyGetBool(yyfgreater(_inst.gmlscrimmage,25)))){_inst.gmlrunorpass=2;};};};_inst.gmlcomm_gain=irandom_range(20,35);if(yyGetBool(gml_Script_s_last_secs_of_half(_inst,_other,30))){{_inst.gmlrunorpass=2;_inst.gmlcomm_txt=string_replace(gml_Script_s_str(_inst,_other,yyfplus("comm_stage_DrivePass",__yy_gml_errCheck(string(irandom(4))))), "$teamname",_inst.gmlteam_name[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_name)]);if((yyGetBool(yyfless(_inst.gmlscrimmage,10)))&&(yyGetBool((yyGetBool((yyGetBool(yyfequal(_inst.gmlquarter,4)))&&(yyGetBool(yyfgreaterequal(_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlpossession)?1:0,_inst.gmlteam_score)],yyfminus(__yy_gml_errCheck(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_score)]),6))))))||(yyGetBool((yyGetBool(yyfequal(_inst.gmlquarter, 2)))&&(yyGetBool(yyfgreaterequal(_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlpossession)?1:0,_inst.gmlteam_score)],yyfminus(__yy_gml_errCheck(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_score)]),14))))))))){{_inst.gmlcomm_txt=string_replace(gml_Script_s_str(_inst,_other,yyfplus("comm_stage_DriveHailMary",__yy_gml_errCheck(string(irandom(2))))),"$teamname",_inst.gmlteam_name[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_name)]); _inst.gmlcomm_gain=yyfplus(_inst.gmlcomm_gain,yyfplus(5,__yy_gml_errCheck(irandom(30))));_inst.gmlhailmary=true;gml_Script_s_subtract_time(_inst,_other,21,22,"comm_stage_DriveHailMary");};}else {if((yyGetBool(yyfgreater(_inst.gmlscrimmage,5)))&&(yyGetBool(yyfgreaterequal(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_score)],yyfminus(__yy_gml_errCheck(_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlpossession)?1:0,_inst.gmlteam_score)]),3))))){ {_inst.gmlcomm_stage=6;gml_Script_s_update_commentary(_inst,_other);break;};};};};}else {{var ___sw1204___=_inst.gmlrunorpass;var ___swc1205___=-1;if(yyCompareVal(___sw1204___,1,g_GMLMathEpsilon,false)==0){___swc1205___=0;}else if(yyCompareVal(___sw1204___,2,g_GMLMathEpsilon,false)==0){___swc1205___=1;}switch(___swc1205___){case 0:{_inst.gmlcomm_txt=string_replace(gml_Script_s_str(_inst,_other,yyfplus("comm_stage_DriveRun",__yy_gml_errCheck(string(irandom(4))))),"$teamname",_inst.gmlteam_name[__yy_gml_array_check_index(_inst.gmlpossession, _inst.gmlteam_name)]);break;}case 1:{_inst.gmlcomm_txt=string_replace(gml_Script_s_str(_inst,_other,yyfplus("comm_stage_DrivePass",__yy_gml_errCheck(string(irandom(4))))),"$teamname",_inst.gmlteam_name[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_name)]);break;}};};};if(yyfless(_inst.gmlscrimmage,(-40))){{if(yyfequal(_inst.gmlrunorpass,1)){gml_Script_s_subtract_time(_inst,_other,15,20,"Get out of red-zone RUN");}else {gml_Script_s_subtract_time(_inst,_other,10,15,"Get out of red-zone PASS"); };_inst.gmlscrimmage=yyfplus(_inst.gmlscrimmage,_inst.gmlcomm_gain);_inst.gmlcomm_stage=2;break;};};_inst.gmlcomm_defender=(-4);var gmldef_roster=yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_roster[__yy_gml_array_check_index(!yyGetBool(_inst.gmlpossession)?1:0,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_roster)];if((yyGetBool(yyfnotequal(gmldef_roster,(-4))))&&(yyGetBool(irandom(yyfplus(1,__yy_gml_errCheck(gml_Script_s_count_defenders(_inst,_other,gmldef_roster))))))){{if(yyGetBool(_inst.gmlhailmary)){ _inst.gmlcomm_defender=gml_Script_s_get_random_player_by_position_from_roster(_inst,_other,false,8,gmldef_roster);}else {_inst.gmlcomm_defender=gml_Script_s_get_random_player_by_position_from_roster(_inst,_other,false,choose(6,7,choose(8,9)),gmldef_roster);};if(yyfequal(_inst.gmlcomm_defender,(-4))){_inst.gmlcomm_defender=gml_Script_s_get_random_player_by_position_from_roster(_inst,_other,false,choose(6,7,choose(8,9)),gmldef_roster);};};};var gmlrat_defense=0;var gmlrat_offense=0;var gmlboost_defense=0; var gmlboost_offense=0;if(yyfequal(_inst.gmlpossession,_inst.gmlhuman_team)){{if(!yyGetBool(global.gmlexhibition)){{_inst.gmlcomm_defender=(-1);};};gmlrat_defense=_inst.gmlteam_defense[__yy_gml_array_check_index(!yyGetBool(_inst.gmlhuman_team)?1:0,_inst.gmlteam_defense)];gmlrat_offense=yyfplus(__yy_gml_errCheck(_inst.gmlteam_offense[__yy_gml_array_check_index(_inst.gmlhuman_team,_inst.gmlteam_offense)]),5);if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_difficulty,4)){gmlrat_defense=10; };};}else {{gmlrat_defense=_inst.gmlteam_defense[__yy_gml_array_check_index(_inst.gmlhuman_team,_inst.gmlteam_defense)];gmlrat_offense=_inst.gmlteam_offense[__yy_gml_array_check_index(!yyGetBool(_inst.gmlhuman_team)?1:0,_inst.gmlteam_offense)];if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_difficulty,4)){gmlrat_offense=10;};gmlboost_defense=round(yyftime(__yy_gml_errCheck(clamp(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldifficulty,0,10)),0.3));gmlboost_offense=1;if((yyGetBool(yyfgreater(_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlhuman_team)?1:0, _inst.gmlteam_score)],yyfplus(__yy_gml_errCheck(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlhuman_team,_inst.gmlteam_score)]),7))))||(yyGetBool(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldifficulty,7)))){gmlboost_offense=0;};if(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldifficulty,1)){(g_yyPrePostObject__=gmlboost_offense,gmlboost_offense=(g_yyPrePostObject__ instanceof Long?gmlboost_offense.add(1):++gmlboost_offense),g_yyPrePostObject__);};if(yyfequal(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlop_difficulty,4)){gmlboost_offense=yyfplus(gmlboost_offense,0.6);}else {if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldifficulty,(-5))){gmlboost_offense=yyfplus(gmlboost_offense,random_range(0.1,0.5));};};};};if(yyGetBool(_inst.gmlgoforit)){{gmlboost_offense=0;gmlrat_offense=yyftime(gmlrat_offense,0.7);};};var gmlresult_offense=yyfplus(__yy_gml_errCheck(gmlboost_offense),__yy_gml_errCheck(random(gmlrat_offense)));var gmlresult_defense=yyfplus(__yy_gml_errCheck(gmlboost_defense), __yy_gml_errCheck(random(max(2,gmlrat_defense))));if(yyGetBool(_inst.gmlcomm_defender)){{gml_Script_slog(_inst,_other,yyfplus(">>>>>>>>>>>>>>>>>>>>>>> comm_defender = ",__yy_gml_errCheck(ds_map_find_value(_inst.gmlcomm_defender,"lname"))));gml_Script_s_subtract_time(_inst,_other,7,12,"COMM_STAGE_DRIVE_1");var gmltmax=1.5;if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_difficulty,3)){gmltmax=1;};var gmlteamskl=min(yyftime(__yy_gml_errCheck(gml_Script_s_get_defense_attribute(_inst,_other, "skill",gmldef_roster)),0.05),gmltmax);var gmlteamspd=min(yyftime(__yy_gml_errCheck(gml_Script_s_get_defense_attribute(_inst,_other,"speed",gmldef_roster)),0.05),gmltmax);var gmlteamstr=min(yyftime(__yy_gml_errCheck(gml_Script_s_get_defense_attribute(_inst,_other,"strength",gmldef_roster)),0.05),gmltmax);var gmldef_skill=random(yyfplus(__yy_gml_errCheck(gmlteamskl),__yy_gml_errCheck(gml_Script_s_get_attribute(_inst,_other,_inst.gmlcomm_defender,"skill"))));var gmldef_speed=random(yyfplus(__yy_gml_errCheck(gmlteamspd), __yy_gml_errCheck(gml_Script_s_get_attribute(_inst,_other,_inst.gmlcomm_defender,"speed"))));var gmldef_strength=random(yyfplus(__yy_gml_errCheck(gmlteamstr),__yy_gml_errCheck(gml_Script_s_get_attribute(_inst,_other,_inst.gmlcomm_defender,"strength"))));if(yyfless(random(gml_Script_s_get_attribute(_inst,_other,_inst.gmlcomm_defender,"stamina")),random(9))){{var ___sw1206___=irandom(2);var ___swc1207___=-1;if(yyCompareVal(___sw1206___,0,g_GMLMathEpsilon,false)==0){___swc1207___=0;}else if(yyCompareVal(___sw1206___, 1,g_GMLMathEpsilon,false)==0){___swc1207___=1;}else if(yyCompareVal(___sw1206___,2,g_GMLMathEpsilon,false)==0){___swc1207___=2;}switch(___swc1207___){case 0:{gmldef_skill=max(yyfminus(__yy_gml_errCheck(gmldef_skill),1),1);break;}case 1:{gmldef_speed=max(yyfminus(__yy_gml_errCheck(gmldef_speed),1),1);break;}case 2:{gmldef_strength=max(yyfminus(__yy_gml_errCheck(gmldef_strength),1),1);break;}};};};var ___sw1208___=irandom(2);var ___swc1209___=-1;if(yyCompareVal(___sw1208___,0,g_GMLMathEpsilon,false)==0){ ___swc1209___=0;}else if(yyCompareVal(___sw1208___,1,g_GMLMathEpsilon,false)==0){___swc1209___=1;}else if(yyCompareVal(___sw1208___,2,g_GMLMathEpsilon,false)==0){___swc1209___=2;}switch(___swc1209___){case 0:{gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus("Skill of ",__yy_gml_errCheck(string(gml_Script_s_get_attribute(_inst,_other,_inst.gmlcomm_defender,"skill"))))," = r"),__yy_gml_errCheck(string(gmldef_skill))));if(yyfless(gmlresult_offense,gmldef_skill)){{if(yyGetBool(irandom(2))){_inst.gmlcomm_stage=23; }else {_inst.gmlcomm_stage=8;};};}else {_inst.gmlcomm_stage=19;};break;}case 1:{gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus("Strength of ",__yy_gml_errCheck(string(gml_Script_s_get_attribute(_inst,_other,_inst.gmlcomm_defender,"strength"))))," = r"),__yy_gml_errCheck(string(gmldef_strength))));if(yyfless(gmlresult_offense,gmldef_strength)){{if(yyGetBool(irandom(3))){_inst.gmlcomm_stage=23;}else {_inst.gmlcomm_stage=8;};};}else {_inst.gmlcomm_stage=20;};break;}case 2:{gml_Script_slog(_inst,_other, yyfplus(yyfplus(yyfplus("Speed of ",__yy_gml_errCheck(string(gml_Script_s_get_attribute(_inst,_other,_inst.gmlcomm_defender,"speed"))))," = r"),__yy_gml_errCheck(string(gmldef_speed))));if(yyfless(gmlresult_offense,gmldef_speed)){{if(yyGetBool(irandom(3))){_inst.gmlcomm_stage=23;}else {_inst.gmlcomm_stage=8;};};}else {_inst.gmlcomm_stage=21;};break;}};};}else {if(yyfgreater(gmlresult_offense,gmlresult_defense)){{gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(">>>>>>>>>>>>>>>>>>>>>>> OFFENSE WIN: ", __yy_gml_errCheck(string(gmlresult_offense)))," > "),__yy_gml_errCheck(string(gmlresult_defense))));if(yyfgreaterequal(yyfplus(__yy_gml_errCheck(_inst.gmlscrimmage),__yy_gml_errCheck(_inst.gmlcomm_gain)),50)){{gml_Script_s_subtract_time(_inst,_other,10,15,"COMM_STAGE_DRIVE_2");_inst.gmlcomm_stage=9;};}else {{gml_Script_s_subtract_time(_inst,_other,10,15,"COMM_STAGE_DRIVE_3");_inst.gmlscrimmage=yyfplus(_inst.gmlscrimmage,_inst.gmlcomm_gain);_inst.gmlcomm_stage=2;if((yyGetBool(gml_Script_s_simming_action(_inst, _other)))&&(yyGetBool(yyfequal(_inst.gmlpossession,_inst.gmlhuman_team)))){{var ___sw1210___=_inst.gmlrunorpass;var ___swc1211___=-1;if(yyCompareVal(___sw1210___,2,g_GMLMathEpsilon,false)==0){___swc1211___=0;}else if(yyCompareVal(___sw1210___,1,g_GMLMathEpsilon,false)==0){___swc1211___=1;}switch(___swc1211___){case 0:{gml_Script_s_sim_stat_pass(_inst,_other,_inst.gmlcomm_gain);break;}case 1:{gml_Script_s_sim_stat_run(_inst,_other,_inst.gmlcomm_gain);break;}};};};};};};}else {if(yyGetBool(irandom(3))){ {gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(">>>>>>>>>>>>>>>>>>>>>>> DEFENSE WIN - COMM_STAGE_INCOMPLETE: ",__yy_gml_errCheck(string(gmlresult_defense)))," > "),__yy_gml_errCheck(string(gmlresult_offense))));gml_Script_s_subtract_time(_inst,_other,5,10,"COMM_STAGE_DRIVE_4");_inst.gmlcomm_stage=23;};}else {{gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(">>>>>>>>>>>>>>>>>>>>>>> DEFENSE WIN - COMM_STAGE_TURNOVER: ",__yy_gml_errCheck(string(gmlresult_defense)))," > "),__yy_gml_errCheck(string(gmlresult_offense)))); gml_Script_s_subtract_time(_inst,_other,5,10,"COMM_STAGE_DRIVE_5");_inst.gmlcomm_stage=8;};};};};break;}case 11:{var ___sw1212___=_inst.gmlrunorpass;var ___swc1213___=-1;if(yyCompareVal(___sw1212___,1,g_GMLMathEpsilon,false)==0){___swc1213___=0;}else if(yyCompareVal(___sw1212___,2,g_GMLMathEpsilon,false)==0){___swc1213___=1;}switch(___swc1213___){case 0:{_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,"comm_stage_incomplete_Run");if((yyGetBool(gml_Script_s_simming_action(_inst,_other)))&&(yyGetBool(yyfequal(_inst.gmlpossession, _inst.gmlhuman_team)))){gml_Script_s_sim_stat_run(_inst,_other,round(yyftime(__yy_gml_errCheck(_inst.gmlcomm_gain),0.5)));};break;}case 1:{_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,"comm_stage_incomplete_Pass");break;}};if((yyGetBool(_inst.gmlcomm_defender))&&(yyGetBool(yyfless(ds_map_find_value(_inst.gmlcomm_defender,"position"),8)))){ds_map_set_post(_inst.gmlcomm_defender,"stat_tackles",yyfplus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlcomm_defender,"stat_tackles")),1));};if(yyGetBool(gml_Script_s_is_quarter_over(_inst, _other))){{gml_Script_s_update_commentary(_inst,_other);break;};}else {if(yyGetBool(_inst.gmlgoforit)){{_inst.gmlcomm_stage=8;gml_Script_s_update_commentary(_inst,_other);};}else {gml_Script_s_go_for_it_or_not(_inst,_other);};};break;}case 12:{if(yyGetBool(gml_Script_s_is_quarter_over(_inst,_other))){{gml_Script_s_update_commentary(_inst,_other);break;};};gml_Script_s_punt(_inst,_other);break;}case 13:{_inst.gmlscrimmage=yyfminus(_inst.gmlscrimmage,4);var gmlfg_dist=clamp(round(yyfplus(__yy_gml_errCheck(gml_Script_s_convert_scrimmage_to_goal_distance(_inst, _other)),10)),17,63);_inst.gmlcomm_txt=string_replace(gml_Script_s_str(_inst,_other,"comm_stage_FieldGoal1"),"$num",gmlfg_dist);_inst.gmlcomm_txt=string_replace(_inst.gmlcomm_txt,"$teamname",_inst.gmlteam_name[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_name)]);_inst.gmlcomm_stage=7;if((yyGetBool(gml_Script_s_simming_action(_inst,_other)))&&(yyGetBool(yyfequal(_inst.gmlpossession,_inst.gmlhuman_team)))){gml_Script_s_sim_stat_increment(_inst,_other,gml_Script_s_get_player_by_position_from_roster(_inst, _other,10,1,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_roster[__yy_gml_array_check_index(_inst.gmlpossession,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_roster)]),"stat_attempts",1);};gml_Script_s_sound_kick(_inst,_other);break;}case 14:{gml_Script_s_subtract_time(_inst,_other,4,5,"COMM_STAGE_FIELDGOAL2");var gmlfg_dist=clamp(round(yyfplus(__yy_gml_errCheck(gml_Script_s_convert_scrimmage_to_goal_distance(_inst,_other)),10)),17,63);if(yyfless(irandom(75),irandom(gmlfg_dist))){{gml_Script_slog(_inst, _other,"field goal missed!");_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,"comm_stage_FieldGoal2_Missed");gml_Script_s_sound_audience_dis(_inst,_other);if(yyfgreater(_inst.gmlscrimmage,30)){_inst.gmlscrimmage=30;};if(yyGetBool(_inst.gmlcollege_overtime)){{gml_Script_s_college_overtime_handle_play_end(_inst,_other);break;};};gml_Script_s_change_possession(_inst,_other);if((yyGetBool(yyfequal(_inst.gmlquarter,5)))&&(yyGetBool(yyfnotequal(_inst.gmlteam_score[__yy_gml_array_check_index(0,_inst.gmlteam_score)], _inst.gmlteam_score[__yy_gml_array_check_index(1,_inst.gmlteam_score)])))&&(yyGetBool(gml_Script_s_both_teams_had_possession(_inst,_other)))){{gml_Script_slog(_inst,_other,"Overtime win 3");_inst.gmlcomm_stage=17;break;};};};}else {{gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus("field goal in! scrimmage[",__yy_gml_errCheck(string(_inst.gmlscrimmage))),"] fg_dist["),__yy_gml_errCheck(string(gmlfg_dist))),"]"));_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,"comm_stage_FieldGoal2_Scored"); gml_Script_s_sound_audience_fg(_inst,_other);if((yyGetBool(gml_Script_s_simming_action(_inst,_other)))&&(yyGetBool(yyfequal(_inst.gmlpossession,_inst.gmlhuman_team)))){{var gmlpmap=gml_Script_s_get_player_by_position_from_roster(_inst,_other,10,1,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_roster[__yy_gml_array_check_index(_inst.gmlpossession,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_roster)]);if(yyGetBool(gmlpmap)){{gml_Script_s_sim_stat_increment(_inst,_other,gmlpmap,"stat_complete", 1);gml_Script_s_sim_stat_increment(_inst,_other,gmlpmap,"stat_yards",gmlfg_dist);if(yyfgreater(gmlfg_dist,ds_map_find_value(gmlpmap,"stat_longest"))){gml_Script_s_sim_stat_update(_inst,_other,gmlpmap,"stat_longest",gmlfg_dist);};};};};};_inst.gmlteam_score=__yy_gml_array_check(_inst.gmlteam_score,4137727317);_inst.gmlteam_score[__yy_gml_array_check_index_set(_inst.gmlpossession)]=yyfplus(_inst.gmlteam_score[__yy_gml_array_check_index_set(_inst.gmlpossession)],3);if(yyGetBool(_inst.gmlcollege_overtime)){ {gml_Script_s_college_overtime_handle_play_end(_inst,_other);break;};};if((yyGetBool(yyfequal(_inst.gmlquarter,5)))&&(yyGetBool(yyfnotequal(_inst.gmlteam_score[__yy_gml_array_check_index(0,_inst.gmlteam_score)],_inst.gmlteam_score[__yy_gml_array_check_index(1,_inst.gmlteam_score)])))&&(yyGetBool(gml_Script_s_both_teams_had_possession(_inst,_other)))){{if(yyflessequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular)){{if(yyfgreater(_inst.gmldrives, 1)){_inst.gmlcomm_stage=17;}else {_inst.gmlcomm_stage=1;};};}else {{gml_Script_slog(_inst,_other,"Overtime win 2");_inst.gmlcomm_stage=17;};};break;};};_inst.gmlcomm_stage=1;};};break;}case 15:{if(yyfgreater(_inst.gmlscrimmage,49)){_inst.gmlscrimmage=yyfplus(40,__yy_gml_errCheck(irandom(9)));};if(!yyGetBool(_inst.gmlcomm_defender)){{var gmlsimstat=(yyGetBool(gml_Script_s_simming_action(_inst,_other)))&&(yyGetBool(yyfequal(_inst.gmlpossession,_inst.gmlhuman_team)));var ___sw1214___=_inst.gmlrunorpass; var ___swc1215___=-1;if(yyCompareVal(___sw1214___,1,g_GMLMathEpsilon,false)==0){___swc1215___=0;}else if(yyCompareVal(___sw1214___,2,g_GMLMathEpsilon,false)==0){___swc1215___=1;}switch(___swc1215___){case 0:{_inst.gmlcomm_txt=string_replace(gml_Script_s_str(_inst,_other,"comm_stage_Turnover_Fumble"),"$teamname",_inst.gmlteam_name[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_name)]);if(yyGetBool(gmlsimstat)){gml_Script_s_sim_stat_fumble(_inst,_other);};break;}case 1:{var ___sw1216___=irandom(1); var ___swc1217___=-1;if(yyCompareVal(___sw1216___,0,g_GMLMathEpsilon,false)==0){___swc1217___=0;}else if(yyCompareVal(___sw1216___,1,g_GMLMathEpsilon,false)==0){___swc1217___=1;}switch(___swc1217___){case 0:{_inst.gmlcomm_txt=string_replace(gml_Script_s_str(_inst,_other,"comm_stage_Turnover_Interception"),"$teamname",_inst.gmlteam_name[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_name)]);if(yyGetBool(gmlsimstat)){gml_Script_s_sim_stat_interception(_inst,_other);};break;}case 1:{_inst.gmlcomm_txt=string_replace(gml_Script_s_str(_inst, _other,"comm_stage_Turnover_Sack"),"$teamname",_inst.gmlteam_name[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_name)]);if(yyGetBool(gmlsimstat)){gml_Script_s_sim_stat_sack(_inst,_other);};break;}};break;}};gml_Script_s_change_possession(_inst,_other);gml_Script_s_check_win_after_turnover(_inst,_other);};}else {{var ___sw1218___=_inst.gmlrunorpass;var ___swc1219___=-1;if(yyCompareVal(___sw1218___,1,g_GMLMathEpsilon,false)==0){___swc1219___=0;}else if(yyCompareVal(___sw1218___,2,g_GMLMathEpsilon, false)==0){___swc1219___=1;}switch(___swc1219___){case 0:{var gmlfumble=irandom(1);if(!yyGetBool(gmlfumble)){{_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,yyfplus("comm_stage_Turnover_Tackle",__yy_gml_errCheck(string(yyfplus(1,__yy_gml_errCheck(irandom(1)))))));_inst.gmlcomm_txt=string_replace(_inst.gmlcomm_txt,"$playername",ds_map_find_value(_inst.gmlcomm_defender,"lname"));_inst.gmlcomm_txt=string_replace(_inst.gmlcomm_txt,"$pos",gml_Script_s_get_string_position(_inst,_other,ds_map_find_value(_inst.gmlcomm_defender, "position")));ds_map_set_post(_inst.gmlcomm_defender,"stat_tackles",yyfplus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlcomm_defender,"stat_tackles")),1));if((yyGetBool(_inst.gmlgoforit))||(yyGetBool(yyfequal(_inst.gmlquarter,5)))){{gml_Script_s_change_possession(_inst,_other);gml_Script_s_check_win_after_turnover(_inst,_other);};}else {{_inst.gmlcomm_stage=5;if(yyfgreater(_inst.gmlscrimmage,0)){_inst.gmlcomm_stage=6;};};};};}else {{var gmlpunch=irandom(1);_inst.gmlcomm_txt=gml_Script_s_str(_inst, _other,yyfplus("comm_stage_Turnover_Fumble",__yy_gml_errCheck(string(yyfplus(1,__yy_gml_errCheck(gmlpunch))))));_inst.gmlcomm_txt=string_replace(_inst.gmlcomm_txt,"$playername",ds_map_find_value(_inst.gmlcomm_defender,"lname"));_inst.gmlcomm_txt=string_replace(_inst.gmlcomm_txt,"$pos",gml_Script_s_get_string_position(_inst,_other,ds_map_find_value(_inst.gmlcomm_defender,"position")));ds_map_set_post(_inst.gmlcomm_defender,"stat_tackles",yyfplus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlcomm_defender, "stat_tackles")),1));ds_map_set_post(_inst.gmlcomm_defender,"stat_fumbles",yyfplus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlcomm_defender,"stat_fumbles")),1));gml_Script_s_change_possession(_inst,_other);gml_Script_s_check_win_after_turnover(_inst,_other);};};break;}case 1:{var gmlsack=false;if(yyfequal(ds_map_find_value(_inst.gmlcomm_defender,"position"),6)){gmlsack=true;};if((yyGetBool(irandom(1)))&&(yyGetBool(yyfequal(ds_map_find_value(_inst.gmlcomm_defender,"position"),7)))){gmlsack=true;} ;if(yyGetBool(gmlsack)){{_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,yyfplus("comm_stage_Turnover_Sack",__yy_gml_errCheck(string(yyfplus(1,__yy_gml_errCheck(irandom(1)))))));_inst.gmlcomm_txt=string_replace(_inst.gmlcomm_txt,"$playername",ds_map_find_value(_inst.gmlcomm_defender,"lname"));_inst.gmlcomm_txt=string_replace(_inst.gmlcomm_txt,"$pos",gml_Script_s_get_string_position(_inst,_other,ds_map_find_value(_inst.gmlcomm_defender,"position")));ds_map_set_post(_inst.gmlcomm_defender,"stat_tackles", yyfplus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlcomm_defender,"stat_tackles")),1));ds_map_set_post(_inst.gmlcomm_defender,"stat_sacks",yyfplus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlcomm_defender,"stat_sacks")),1));if((yyGetBool(_inst.gmlgoforit))||(yyGetBool(yyfequal(_inst.gmlquarter,5)))){{gml_Script_s_change_possession(_inst,_other);gml_Script_s_check_win_after_turnover(_inst,_other);};}else {{_inst.gmlcomm_stage=5;if(yyfgreater(_inst.gmlscrimmage,0)){_inst.gmlcomm_stage=6;};};};};} else {{_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,yyfplus("comm_stage_Turnover_Interception",__yy_gml_errCheck(string(yyfplus(1,__yy_gml_errCheck(irandom(1)))))));_inst.gmlcomm_txt=string_replace(_inst.gmlcomm_txt,"$playername",ds_map_find_value(_inst.gmlcomm_defender,"lname"));_inst.gmlcomm_txt=string_replace(_inst.gmlcomm_txt,"$pos",gml_Script_s_get_string_position(_inst,_other,ds_map_find_value(_inst.gmlcomm_defender,"position")));ds_map_set_post(_inst.gmlcomm_defender,"stat_int",yyfplus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlcomm_defender, "stat_int")),1));gml_Script_s_change_possession(_inst,_other);gml_Script_s_check_win_after_turnover(_inst,_other);};};}};};};_inst.gmlcomm_defender=(-4);break;}case 16:{_inst.gmlscrimmage=yyfplus(_inst.gmlscrimmage,_inst.gmlcomm_gain);gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus("COMM_STAGE_TOUCHDOWN scrimmage[",__yy_gml_errCheck(string(_inst.gmlscrimmage))),"] after com_gain["),__yy_gml_errCheck(string(_inst.gmlcomm_gain))),"]"));_inst.gmlcomm_txt="";_inst.gmlcomm_stage=10;_inst.gmlteam_score=__yy_gml_array_check(_inst.gmlteam_score, 4137727317);_inst.gmlteam_score[__yy_gml_array_check_index_set(_inst.gmlpossession)]=yyfplus(_inst.gmlteam_score[__yy_gml_array_check_index_set(_inst.gmlpossession)],6);_inst.gmlscored_by=_inst.gmlpossession;gml_Script_s_create_match_message(_inst,_other,6);gml_Script_s_sound_audience_fg(_inst,_other);if((yyGetBool(gml_Script_s_simming_action(_inst,_other)))&&(yyGetBool(yyfequal(_inst.gmlpossession,_inst.gmlhuman_team)))){gml_Script_s_sim_stat_touchdown(_inst,_other,_inst.gmlrunorpass,_inst.gmlcomm_gain); };if(yyGetBool(_inst.gmlcollege_overtime)){{};}else {if((yyGetBool(yyfequal(_inst.gmlquarter,5)))&&(yyGetBool(yyfgreater(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_score)],_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlpossession)?1:0,_inst.gmlteam_score)])))&&(yyGetBool(gml_Script_s_both_teams_had_possession(_inst,_other)))){{gml_Script_slog(_inst,_other,"overtime win TOUCHDOWN");_inst.gmlcomm_stage=17;};};};break;}case 17:{var gmlpt2=false; var gmlmargin=yyfminus(__yy_gml_errCheck(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_score)]),__yy_gml_errCheck(_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlpossession)?1:0,_inst.gmlteam_score)]));if(yyfequal(yyfmod(__yy_gml_errCheck(abs(gmlmargin)),8),0)){gmlpt2=true;};if((yyGetBool(yyfequal(gmlmargin,1)))||(yyGetBool(yyfequal(gmlmargin,5)))||(yyGetBool(yyfequal(gmlmargin,12)))||(yyGetBool(yyfequal(gmlmargin,(-2))))||(yyGetBool(yyfequal(gmlmargin, (-4))))||(yyGetBool(yyfequal(gmlmargin,(-5))))||(yyGetBool(yyfequal(gmlmargin,(-8))))||(yyGetBool(yyfequal(gmlmargin,(-10))))||(yyGetBool(yyfequal(gmlmargin,(-13))))||(yyGetBool(yyfequal(gmlmargin,(-15))))){gmlpt2=true;};if((yyGetBool(yyfgreater(_inst.gmlquarter,2)))&&(yyGetBool((yyGetBool(yyfequal(gmlmargin,7)))||(yyGetBool(yyfequal(gmlmargin,14)))||(yyGetBool(yyfequal(gmlmargin,(-9))))||(yyGetBool(yyfequal(gmlmargin,(-12))))))&&(yyGetBool(!yyGetBool(irandom(2))))){gmlpt2=true;};if(yyfequal(gmlmargin, 0)){gmlpt2=false;};var ___sw1220___=gmlmargin;var ___swc1221___=-1;if(yyCompareVal(___sw1220___,(-1),g_GMLMathEpsilon,false)==0){___swc1221___=0;}else if(yyCompareVal(___sw1220___,(-2),g_GMLMathEpsilon,false)==0){___swc1221___=1;}else if(yyCompareVal(___sw1220___,(-3),g_GMLMathEpsilon,false)==0){___swc1221___=2;}else if(yyCompareVal(___sw1220___,(-4),g_GMLMathEpsilon,false)==0){___swc1221___=3;}else if(yyCompareVal(___sw1220___,(-5),g_GMLMathEpsilon,false)==0){___swc1221___=4;}else if(yyCompareVal(___sw1220___, (-6),g_GMLMathEpsilon,false)==0){___swc1221___=5;}else if(yyCompareVal(___sw1220___,(-7),g_GMLMathEpsilon,false)==0){___swc1221___=6;}else if(yyCompareVal(___sw1220___,(-8),g_GMLMathEpsilon,false)==0){___swc1221___=7;}else if(yyCompareVal(___sw1220___,(-9),g_GMLMathEpsilon,false)==0){___swc1221___=8;}else if(yyCompareVal(___sw1220___,(-10),g_GMLMathEpsilon,false)==0){___swc1221___=9;}else if(yyCompareVal(___sw1220___,(-11),g_GMLMathEpsilon,false)==0){___swc1221___=10;}else if(yyCompareVal(___sw1220___, (-12),g_GMLMathEpsilon,false)==0){___swc1221___=11;}else if(yyCompareVal(___sw1220___,(-13),g_GMLMathEpsilon,false)==0){___swc1221___=12;}else if(yyCompareVal(___sw1220___,(-14),g_GMLMathEpsilon,false)==0){___swc1221___=13;}else if(yyCompareVal(___sw1220___,(-15),g_GMLMathEpsilon,false)==0){___swc1221___=14;}else if(yyCompareVal(___sw1220___,(-16),g_GMLMathEpsilon,false)==0){___swc1221___=15;}else if(yyCompareVal(___sw1220___,(-17),g_GMLMathEpsilon,false)==0){___swc1221___=16;}else if(yyCompareVal(___sw1220___, (-18),g_GMLMathEpsilon,false)==0){___swc1221___=17;}else if(yyCompareVal(___sw1220___,(-19),g_GMLMathEpsilon,false)==0){___swc1221___=18;}else if(yyCompareVal(___sw1220___,(-20),g_GMLMathEpsilon,false)==0){___swc1221___=19;}else if(yyCompareVal(___sw1220___,1,g_GMLMathEpsilon,false)==0){___swc1221___=20;}else if(yyCompareVal(___sw1220___,2,g_GMLMathEpsilon,false)==0){___swc1221___=21;}else if(yyCompareVal(___sw1220___,3,g_GMLMathEpsilon,false)==0){___swc1221___=22;}else if(yyCompareVal(___sw1220___,4, g_GMLMathEpsilon,false)==0){___swc1221___=23;}else if(yyCompareVal(___sw1220___,5,g_GMLMathEpsilon,false)==0){___swc1221___=24;}else if(yyCompareVal(___sw1220___,6,g_GMLMathEpsilon,false)==0){___swc1221___=25;}else if(yyCompareVal(___sw1220___,7,g_GMLMathEpsilon,false)==0){___swc1221___=26;}else if(yyCompareVal(___sw1220___,8,g_GMLMathEpsilon,false)==0){___swc1221___=27;}else if(yyCompareVal(___sw1220___,9,g_GMLMathEpsilon,false)==0){___swc1221___=28;}else if(yyCompareVal(___sw1220___,10,g_GMLMathEpsilon, false)==0){___swc1221___=29;}else if(yyCompareVal(___sw1220___,11,g_GMLMathEpsilon,false)==0){___swc1221___=30;}else if(yyCompareVal(___sw1220___,12,g_GMLMathEpsilon,false)==0){___swc1221___=31;}else if(yyCompareVal(___sw1220___,13,g_GMLMathEpsilon,false)==0){___swc1221___=32;}else if(yyCompareVal(___sw1220___,14,g_GMLMathEpsilon,false)==0){___swc1221___=33;}else if(yyCompareVal(___sw1220___,15,g_GMLMathEpsilon,false)==0){___swc1221___=34;}else if(yyCompareVal(___sw1220___,16,g_GMLMathEpsilon,false)==0){ ___swc1221___=35;}else if(yyCompareVal(___sw1220___,17,g_GMLMathEpsilon,false)==0){___swc1221___=36;}else if(yyCompareVal(___sw1220___,18,g_GMLMathEpsilon,false)==0){___swc1221___=37;}else if(yyCompareVal(___sw1220___,19,g_GMLMathEpsilon,false)==0){___swc1221___=38;}else if(yyCompareVal(___sw1220___,20,g_GMLMathEpsilon,false)==0){___swc1221___=39;}switch(___swc1221___){case 0:{gmlpt2=false;break;}case 1:{gmlpt2=true;break;}case 2:{gmlpt2=false;break;}case 3:{gmlpt2=false;break;}case 4:{gmlpt2=true;break; }case 5:{gmlpt2=false;break;}case 6:{gmlpt2=false;break;}case 7:{gmlpt2=false;break;}case 8:{gmlpt2=true;break;}case 9:{gmlpt2=true;break;}case 10:{gmlpt2=false;break;}case 11:{gmlpt2=true;break;}case 12:{gmlpt2=false;break;}case 13:{gmlpt2=false;break;}case 14:{gmlpt2=false;break;}case 15:{gmlpt2=true;break;}case 16:{gmlpt2=false;break;}case 17:{gmlpt2=false;break;}case 18:{gmlpt2=true;break;}case 19:{gmlpt2=false;break;}case 20:{gmlpt2=true;break;}case 21:{gmlpt2=false;break;}case 22:{gmlpt2=false;break;}case 23:{ gmlpt2=true;break;}case 24:{gmlpt2=true;break;}case 25:{gmlpt2=false;break;}case 26:{gmlpt2=false;break;}case 27:{gmlpt2=false;break;}case 28:{gmlpt2=false;break;}case 29:{gmlpt2=false;break;}case 30:{gmlpt2=false;break;}case 31:{gmlpt2=true;break;}case 32:{gmlpt2=false;break;}case 33:{gmlpt2=false;break;}case 34:{gmlpt2=true;break;}case 35:{gmlpt2=false;break;}case 36:{gmlpt2=false;break;}case 37:{gmlpt2=false;break;}case 38:{gmlpt2=true;break;}case 39:{gmlpt2=false;break;}};if((yyGetBool(_inst.gmlcollege_overtime))&&(yyGetBool(yyfgreaterequal(_inst.gmlcollege_overtime_round, 2)))){{gml_Script_slog(_inst,_other,yyfplus(yyfplus("college_overtime force PAT to be pt2, since it's round[",__yy_gml_errCheck(string(_inst.gmlcollege_overtime_round))),"]"));gmlpt2=true;};};if(yyGetBool(gmlpt2)){{_inst.gmlcomm_stage=15;gml_Script_s_update_commentary(_inst,_other);break;};};if((yyGetBool(gml_Script_s_simming_action(_inst,_other)))&&(yyGetBool(yyfequal(_inst.gmlpossession,_inst.gmlhuman_team)))){gml_Script_s_sim_stat_increment(_inst,_other,gml_Script_s_get_player_by_position_from_roster(_inst, _other,10,1,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_roster[__yy_gml_array_check_index(_inst.gmlpossession,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_roster)]),"stat_attempts_XP",1);};_inst.gmlcomm_txt=string_replace(gml_Script_s_str(_inst,_other,"comm_stage_PAT1"),"$teamname",_inst.gmlteam_name[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_name)]);_inst.gmlcomm_stage=11;gml_Script_s_sound_kick(_inst,_other);break;}case 18:{if(!yyGetBool(irandom(8))){{gml_Script_slog(_inst, _other,yyfplus(yyfplus("1pt kick missed! scrimmage[",__yy_gml_errCheck(string(_inst.gmlscrimmage))),"]"));_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,"comm_stage_PAT2_Missed");gml_Script_s_sound_audience_dis(_inst,_other);_inst.gmlscored_by=(-1);};}else {{gml_Script_slog(_inst,_other,yyfplus(yyfplus("1pt kick in! scrimmage[",__yy_gml_errCheck(string(_inst.gmlscrimmage))),"]!"));if((yyGetBool(gml_Script_s_simming_action(_inst,_other)))&&(yyGetBool(yyfequal(_inst.gmlpossession,_inst.gmlhuman_team)))){ gml_Script_s_sim_stat_increment(_inst,_other,gml_Script_s_get_player_by_position_from_roster(_inst,_other,10,1,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_roster[__yy_gml_array_check_index(_inst.gmlpossession,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_roster)]),"stat_complete_XP",1);};_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,"comm_stage_PAT2_Scored");gml_Script_s_sound_audience_fg(_inst,_other);_inst.gmlteam_score=__yy_gml_array_check(_inst.gmlteam_score,4137727317);_inst.gmlteam_score[__yy_gml_array_check_index_set(_inst.gmlpossession)]=yyfplus(_inst.gmlteam_score[__yy_gml_array_check_index_set(_inst.gmlpossession)], 1);_inst.gmlscored_by=_inst.gmlpossession;};};if(yyGetBool(_inst.gmlcollege_overtime)){{gml_Script_s_college_overtime_handle_play_end(_inst,_other);break;};};if((yyGetBool(yyfequal(_inst.gmlquarter,5)))&&(yyGetBool(yyfnotequal(_inst.gmlteam_score[__yy_gml_array_check_index(0,_inst.gmlteam_score)],_inst.gmlteam_score[__yy_gml_array_check_index(0,_inst.gmlteam_score)])))&&(yyGetBool(gml_Script_s_both_teams_had_possession(_inst,_other)))){{gml_Script_slog(_inst,_other,"Overtime win 2");_inst.gmlcomm_stage=17; break;};};_inst.gmlcomm_stage=1;break;}case 19:{gml_Script_s_set_up_button_kickoff(_inst,_other);_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,yyfplus("comm_stage_end_quarter",__yy_gml_errCheck(string(min(_inst.gmlquarter,4)))));if(!yyGetBool(_inst.gmlcollege_overtime)){{gml_Script_s_college_overtime_score_hack(_inst,_other);};};if((yyGetBool(yyfequal(_inst.gmlquarter,4)))||(yyGetBool((yyGetBool(yyfgreaterequal(_inst.gmlquarter,4)))&&(yyGetBool(gml_Script_s_no_ties_allowed(_inst,_other)))))){{if(yyfgreater(_inst.gmlquarter, 4)){_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,"comm_stage_overtime_over");};if(yyfequal(_inst.gmlteam_score[__yy_gml_array_check_index(0,_inst.gmlteam_score)],_inst.gmlteam_score[__yy_gml_array_check_index(1,_inst.gmlteam_score)])){_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,"comm_stage_overtime");};};};_inst.gmlcomm_stage=13;_inst.alarm=__yy_gml_array_check(_inst.alarm,1584050178);_inst.alarm[__yy_gml_array_check_index_set(1)]=0;gml_Script_s_sound_brass_loop(_inst,_other,0.5);var ___sw1222___=_inst.gmlquarter; var ___swc1223___=-1;if(yyCompareVal(___sw1222___,1,g_GMLMathEpsilon,false)==0){___swc1223___=0;}else if(yyCompareVal(___sw1222___,2,g_GMLMathEpsilon,false)==0){___swc1223___=1;}else if(yyCompareVal(___sw1222___,3,g_GMLMathEpsilon,false)==0){___swc1223___=2;}else if(yyCompareVal(___sw1222___,4,g_GMLMathEpsilon,false)==0){___swc1223___=3;}switch(___swc1223___){case 0:{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores0=__yy_gml_array_check(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores0, 3217058981);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores0[__yy_gml_array_check_index_set(yyfminus(__yy_gml_errCheck(_inst.gmlquarter),1))]=_inst.gmlteam_score[__yy_gml_array_check_index(0,_inst.gmlteam_score)];yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores1=__yy_gml_array_check(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores1,2799394276);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores1[__yy_gml_array_check_index_set(yyfminus(__yy_gml_errCheck(_inst.gmlquarter), 1))]=_inst.gmlteam_score[__yy_gml_array_check_index(1,_inst.gmlteam_score)];break;}case 1:{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores0=__yy_gml_array_check(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores0,3217058981);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores0[__yy_gml_array_check_index_set(yyfminus(__yy_gml_errCheck(_inst.gmlquarter),1))]=yyfminus(__yy_gml_errCheck(_inst.gmlteam_score[__yy_gml_array_check_index(0,_inst.gmlteam_score)]),__yy_gml_errCheck(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlqtr_scores0[__yy_gml_array_check_index(0,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores0)]));yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores1=__yy_gml_array_check(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores1,2799394276);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores1[__yy_gml_array_check_index_set(yyfminus(__yy_gml_errCheck(_inst.gmlquarter),1))]=yyfminus(__yy_gml_errCheck(_inst.gmlteam_score[__yy_gml_array_check_index(1, _inst.gmlteam_score)]),__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores1[__yy_gml_array_check_index(0,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores1)]));break;}case 2:{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores0=__yy_gml_array_check(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores0,3217058981);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores0[__yy_gml_array_check_index_set(yyfminus(__yy_gml_errCheck(_inst.gmlquarter),1))]=yyfminus(yyfminus(__yy_gml_errCheck(_inst.gmlteam_score[__yy_gml_array_check_index(0, _inst.gmlteam_score)]),__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores0[__yy_gml_array_check_index(0,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores0)])),__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores0[__yy_gml_array_check_index(1,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores0)]));yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores1=__yy_gml_array_check(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores1, 2799394276);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores1[__yy_gml_array_check_index_set(yyfminus(__yy_gml_errCheck(_inst.gmlquarter),1))]=yyfminus(yyfminus(__yy_gml_errCheck(_inst.gmlteam_score[__yy_gml_array_check_index(1,_inst.gmlteam_score)]),__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores1[__yy_gml_array_check_index(0,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores1)])),__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores1[__yy_gml_array_check_index(1, yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores1)]));break;}case 3:{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores0=__yy_gml_array_check(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores0,3217058981);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores0[__yy_gml_array_check_index_set(yyfminus(__yy_gml_errCheck(_inst.gmlquarter),1))]=yyfminus(yyfminus(yyfminus(__yy_gml_errCheck(_inst.gmlteam_score[__yy_gml_array_check_index(0,_inst.gmlteam_score)]),__yy_gml_errCheck(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlqtr_scores0[__yy_gml_array_check_index(0,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores0)])),__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores0[__yy_gml_array_check_index(1,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores0)])),__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores0[__yy_gml_array_check_index(2,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores0)]));yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlqtr_scores1=__yy_gml_array_check(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores1,2799394276);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores1[__yy_gml_array_check_index_set(yyfminus(__yy_gml_errCheck(_inst.gmlquarter),1))]=yyfminus(yyfminus(yyfminus(__yy_gml_errCheck(_inst.gmlteam_score[__yy_gml_array_check_index(1,_inst.gmlteam_score)]),__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores1[__yy_gml_array_check_index(0,yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlqtr_scores1)])),__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores1[__yy_gml_array_check_index(1,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores1)])),__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores1[__yy_gml_array_check_index(2,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqtr_scores1)]));if(yyfnotequal(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlhuman_team,_inst.gmlteam_score)],_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlhuman_team)?1:0, _inst.gmlteam_score)])){{gml_Script__poki_gameplay_stop(_inst,_other);};};break;}};(g_yyPrePostObject__=_inst.gmlquarter,_inst.gmlquarter=(g_yyPrePostObject__ instanceof Long?_inst.gmlquarter.add(1):++_inst.gmlquarter),g_yyPrePostObject__);if((yyGetBool(yyfequal(_inst.gmlquarter,3)))||(yyGetBool(yyfequal(_inst.gmlquarter,5)))){gml_Script_s_set_audibles(_inst,_other,(-1));};var gmltos=clamp(yyfplus(2,__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_matchlength)),2,3);if(yyfequal(_inst.gmlquarter, 3)){gml_Script_s_set_timeouts(_inst,_other,gmltos);};if(yyfequal(_inst.gmlquarter,5)){gml_Script_s_set_timeouts(_inst,_other,2);};if((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear,1)))&&(yyGetBool(!yyGetBool(global.gmlexhibition)))){gml_Script_s_set_timeouts(_inst,_other,0);};if(yyfnotequal(_inst.gmlquarter,3)){{gml_Script_s_switch_drivedirection(_inst,_other);if((yyGetBool(global.gmlpoki))&&(yyGetBool(!yyGetBool(gml_Script__poki_is_mobile(_inst,_other))))&&(yyGetBool(yyfless(_inst.gmlquarter, 5)))){{gml_Script_poki_pause(_inst,_other);gml_Script_poki_commercial_break(_inst,_other,kgml_Script_poki_resume,"poki_commercial_break");};};};};break;}case 20:{{var __yy__v1267=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v1268 in __yy__v1267){if(!__yy__v1267.hasOwnProperty(__yy__v1268))continue;var __yy__v1269=__yy__v1267[__yy__v1268];{__yy__v1269.gmlskip_half=false;__yy__v1269.gmlminutes=yyfplus(2,__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_matchlength));__yy__v1269.gmlseconds=0; __yy__v1269.gmltime_subtract=0;}}};var ___sw1224___=_inst.gmlquarter;var ___swc1225___=-1;if(yyCompareVal(___sw1224___,2,g_GMLMathEpsilon,false)==0){___swc1225___=0;}else if(yyCompareVal(___sw1224___,3,g_GMLMathEpsilon,false)==0){___swc1225___=1;}else if(yyCompareVal(___sw1224___,4,g_GMLMathEpsilon,false)==0){___swc1225___=2;}else if(yyCompareVal(___sw1224___,5,g_GMLMathEpsilon,false)==0){___swc1225___=3;}else if(yyCompareVal(___sw1224___,6,g_GMLMathEpsilon,false)==0){___swc1225___=4;}switch(___swc1225___){ case 0:{_inst.gmlcomm_stage=_inst.gmlcomm_next_stage;gml_Script_s_update_commentary(_inst,_other);break;}case 1:{_inst.gmlcomm_stage=1;_inst.gmlpossession=!yyGetBool(_inst.gmlkickoffteam);gml_Script_s_update_commentary(_inst,_other);break;}case 2:{_inst.gmlcomm_stage=_inst.gmlcomm_next_stage;gml_Script_s_update_commentary(_inst,_other);break;}case 3:{_inst.gmlcomm_txt="";if(yyfgreater(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlhuman_team,_inst.gmlteam_score)],_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlhuman_team)?1:0, _inst.gmlteam_score)])){{gml_Script_s_end_match(_inst,_other,1);return;};};if(yyfless(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlhuman_team,_inst.gmlteam_score)],_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlhuman_team)?1:0,_inst.gmlteam_score)])){{gml_Script_s_end_match(_inst,_other,(-1));return;};};_inst.gmlcomm_stage=1;_inst.gmlpossession=!yyGetBool(_inst.gmlhuman_team);var ___sw1226___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_difficulty;var ___swc1227___=-1; if(yyCompareVal(___sw1226___,1,g_GMLMathEpsilon,false)==0){___swc1227___=0;}else if(yyCompareVal(___sw1226___,0,g_GMLMathEpsilon,false)==0){___swc1227___=1;}else if(yyCompareVal(___sw1226___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1226___,3,g_GMLMathEpsilon,false)==0){___swc1227___=2;}else if(yyCompareVal(___sw1226___,4,g_GMLMathEpsilon,false)==0){___swc1227___=3;}switch(___swc1227___){case 0:{break;}case 1:{if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsuppress_difficulty,0)){ break;};}case 2:{if(!yyGetBool(irandom(2))){_inst.gmlpossession=_inst.gmlhuman_team;};break;}case 3:{if(!yyGetBool(irandom(1))){_inst.gmlpossession=_inst.gmlhuman_team;};break;}};if((yyGetBool(gml_Script_s_is_co_mode(_inst,_other)))&&(yyGetBool(!yyGetBool(_inst.gmlcollege_overtime)))){{gml_Script_s_college_overtime_start(_inst,_other);};};_inst.gmldrives=0;gml_Script_s_update_commentary(_inst,_other);break;}case 4:{gml_Script_slog(_inst,_other,"End of OT: quarter == 6");if((yyGetBool(yyflessequal(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlweek,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular)))&&(yyGetBool(!yyGetBool(global.gmlexhibition)))&&(yyGetBool(!yyGetBool(_inst.gmlcollege_overtime)))){{if(yyfgreater(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlhuman_team,_inst.gmlteam_score)],_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlhuman_team)?1:0,_inst.gmlteam_score)])){{gml_Script_s_end_match(_inst,_other,1);return;};}else {if(yyfless(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlhuman_team, _inst.gmlteam_score)],_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlhuman_team)?1:0,_inst.gmlteam_score)])){{gml_Script_s_end_match(_inst,_other,(-1));return;};}else {{gml_Script_s_end_match(_inst,_other,0);return;};};};};};_inst.gmlquarter=5;(g_yyPrePostObject__=_inst.gmlot_count,_inst.gmlot_count=(g_yyPrePostObject__ instanceof Long?_inst.gmlot_count.add(1):++_inst.gmlot_count),g_yyPrePostObject__);_inst.gmlcomm_stage=_inst.gmlcomm_next_stage;gml_Script_s_update_commentary(_inst, _other);break;}};break;}case 21:{_inst.gmlstate=2;_inst.alarm=__yy_gml_array_check(_inst.alarm,1584050178);_inst.alarm[__yy_gml_array_check_index_set(1)]=1;break;}case 22:{_inst.gmlcomm_txt=string_replace(gml_Script_s_str(_inst,_other,yyfplus("comm_stage_2pt_attempt",(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)?"QB":""))),"$teamname",_inst.gmlteam_name[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_name)]);_inst.gmlcomm_stage=16;break;}case 23:{if((yyGetBool(!yyGetBool(gml_Script_s_simming_action(_inst, _other))))&&(yyGetBool(yyfequal(_inst.gmlpossession,_inst.gmlhuman_team)))){{_inst.gmlstate=2;_inst.gmldown=6;break;};};if(yyfgreater(irandom(99),60)){{gml_Script_slog(_inst,_other,yyfplus(yyfplus("2pt touchdown failed! scrimmage[",__yy_gml_errCheck(string(_inst.gmlscrimmage))),"]"));_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,"comm_stage_2pt_missed");_inst.gmlscored_by=(-1);};}else {{gml_Script_slog(_inst,_other,yyfplus(yyfplus("2pt touchdown success! scrimmage[",__yy_gml_errCheck(string(_inst.gmlscrimmage))), "]"));_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,"comm_stage_2pt_scored");_inst.gmlteam_score=__yy_gml_array_check(_inst.gmlteam_score,4137727317);_inst.gmlteam_score[__yy_gml_array_check_index_set(_inst.gmlpossession)]=yyfplus(_inst.gmlteam_score[__yy_gml_array_check_index_set(_inst.gmlpossession)],2);_inst.gmlscored_by=_inst.gmlpossession;};};if(yyGetBool(_inst.gmlcollege_overtime)){{yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlhad_ot_possession=__yy_gml_array_check(yyInst(_inst,_other, YYASSET_REF(0x00000069)).gmlhad_ot_possession,3637644805);yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlhad_ot_possession[__yy_gml_array_check_index_set(_inst.gmlpossession)]=1;gml_Script_s_college_overtime_handle_play_end(_inst,_other);break;};};if((yyGetBool(yyfequal(_inst.gmlquarter,5)))&&(yyGetBool(yyfnotequal(_inst.gmlteam_score[__yy_gml_array_check_index(0,_inst.gmlteam_score)],_inst.gmlteam_score[__yy_gml_array_check_index(0,_inst.gmlteam_score)])))&&(yyGetBool(gml_Script_s_both_teams_had_possession(_inst, _other)))){{gml_Script_slog(_inst,_other,"Overtime win 2pt fail");_inst.gmlcomm_stage=17;break;};};_inst.gmlcomm_stage=1;break;}case 24:{gml_Script_s_set_up_button_kickoff(_inst,_other);_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,"comm_stage_overtime_over");_inst.gmlcomm_stage=18;_inst.alarm=__yy_gml_array_check(_inst.alarm,1584050178);_inst.alarm[__yy_gml_array_check_index_set(1)]=0;gml_Script_s_sound_brass_loop(_inst,_other,0.5);break;}case 25:{_inst.gmlcomm_txt="";if(yyfgreater(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlhuman_team, _inst.gmlteam_score)],_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlhuman_team)?1:0,_inst.gmlteam_score)])){{gml_Script_s_end_match(_inst,_other,1);return;};};if(yyfless(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlhuman_team,_inst.gmlteam_score)],_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlhuman_team)?1:0,_inst.gmlteam_score)])){{gml_Script_s_end_match(_inst,_other,(-1));return;};};if(yyGetBool(gml_Script_s_no_ties_allowed(_inst,_other))){{ _inst.gmlquarter=5;_inst.gmlcomm_stage=_inst.gmlcomm_next_stage;gml_Script_s_update_commentary(_inst,_other);};}else {{gml_Script_s_end_match(_inst,_other,0);return;};};break;}case 26:{_inst.gmlscrimmage=yyfplus(_inst.gmlscrimmage,_inst.gmlcomm_gain);gml_Script_s_tackle_failure(_inst,_other);_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,"comm_stage_failed_skill");_inst.gmlcomm_txt=string_replace(_inst.gmlcomm_txt,"$playername",ds_map_find_value(_inst.gmlcomm_defender,"lname"));_inst.gmlcomm_txt=string_replace(_inst.gmlcomm_txt, "$pos",gml_Script_s_get_string_position(_inst,_other,ds_map_find_value(_inst.gmlcomm_defender,"position")));_inst.gmlcomm_defender=(-4);if(yyfgreaterequal(_inst.gmlscrimmage,50)){{_inst.gmlcomm_stage=9;};}else {_inst.gmlcomm_stage=2;};break;}case 27:{_inst.gmlscrimmage=yyfplus(_inst.gmlscrimmage,_inst.gmlcomm_gain);gml_Script_s_tackle_failure(_inst,_other);_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,"comm_stage_failed_strength");_inst.gmlcomm_txt=string_replace(_inst.gmlcomm_txt,"$playername", ds_map_find_value(_inst.gmlcomm_defender,"lname"));_inst.gmlcomm_txt=string_replace(_inst.gmlcomm_txt,"$pos",gml_Script_s_get_string_position(_inst,_other,ds_map_find_value(_inst.gmlcomm_defender,"position")));_inst.gmlcomm_defender=(-4);if(yyfgreaterequal(_inst.gmlscrimmage,50)){{_inst.gmlcomm_stage=9;};}else {_inst.gmlcomm_stage=2;};break;}case 28:{_inst.gmlscrimmage=yyfplus(_inst.gmlscrimmage,_inst.gmlcomm_gain);gml_Script_s_tackle_failure(_inst,_other);_inst.gmlcomm_txt=gml_Script_s_str(_inst, _other,"comm_stage_failed_speed");_inst.gmlcomm_txt=string_replace(_inst.gmlcomm_txt,"$playername",ds_map_find_value(_inst.gmlcomm_defender,"lname"));_inst.gmlcomm_txt=string_replace(_inst.gmlcomm_txt,"$pos",gml_Script_s_get_string_position(_inst,_other,ds_map_find_value(_inst.gmlcomm_defender,"position")));_inst.gmlcomm_defender=(-4);if(yyfgreaterequal(_inst.gmlscrimmage,50)){{_inst.gmlcomm_stage=9;};}else {_inst.gmlcomm_stage=2;};break;}case 29:{if(yyfequal(_inst.gmldown,5)){_inst.gmlcomm_txt=string_replace(gml_Script_s_str(_inst, _other,"comm_stage_TurnoverHuman4th"),"$teamname",_inst.gmlteam_name[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_name)]);}else {_inst.gmlcomm_txt=string_replace(gml_Script_s_str(_inst,_other,"comm_stage_TurnoverHuman"),"$teamname",_inst.gmlteam_name[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_name)]);};gml_Script_s_change_possession(_inst,_other);break;}case 30:{break;}};}}function gml_Script_s_go_for_it_or_not(_inst,_other){{if(yyfgreater(_inst.gmlscrimmage,0)){_inst.gmlcomm_stage=6; }else {_inst.gmlcomm_stage=5;};var gmldownby=yyfminus(__yy_gml_errCheck(_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlpossession)?1:0,_inst.gmlteam_score)]),__yy_gml_errCheck(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_score)]));if(yyfequal(_inst.gmlquarter,5)){{if((yyGetBool(yyfgreater(_inst.gmlscrimmage,10)))&&(yyGetBool(yyfless(gmldownby,4)))){_inst.gmlcomm_stage=6;}else {_inst.gmlcomm_stage=24;};return;};};if((yyGetBool(yyfgreater(gmldownby, 16)))&&(yyGetBool(yyfless(_inst.gmlscrimmage,0)))){return;};if((yyGetBool(yyfequal(_inst.gmlquarter,4)))&&(yyGetBool(yyfgreater(gmldownby,7)))){{if((yyGetBool(yyfgreater(_inst.gmlscrimmage,10)))&&(yyGetBool(yyfgreater(gmldownby,8)))&&(yyGetBool(yyfless(gmldownby,12)))){_inst.gmlcomm_stage=6;}else {_inst.gmlcomm_stage=24;};return;};};if((yyGetBool(gml_Script_s_last_secs_of_half(_inst,_other,60)))&&(yyGetBool(yyfgreater(gmldownby,0)))&&(yyGetBool(yyfless(gmldownby,9)))){_inst.gmlcomm_stage=24;};}}function gml_Script_s_check_skip_time_button(_inst, _other){{if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlskip_half)){return;};{var __yy__v1270=GetWithArray(YYASSET_REF(0x0000001E));for(var __yy__v1271 in __yy__v1270){if(!__yy__v1270.hasOwnProperty(__yy__v1271))continue;var __yy__v1272=__yy__v1270[__yy__v1271];return;}};var gmlbx=yyfminus(yyfminus(__yy_gml_errCheck(display_get_gui_width()),16),__yy_gml_errCheck(sprite_get_width(YYASSET_REF(0x0100005A))));var gmlby=yyfminus(yyfminus(__yy_gml_errCheck(display_get_gui_height()),16),__yy_gml_errCheck(sprite_get_height(YYASSET_REF(0x0100005A)))); var gmlbtn_skiptime=instance_create_layer(gmlbx,gmlby,"Text",YYASSET_REF(0x0000001E));yyInst(_inst,_other,gmlbtn_skiptime).gmlgp_mapped_button=global.gmlgp_timeout;}}function gml_Script_btn_skip_time(_inst,_other){{yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlskip_half=true;yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlcomm_proceed=true;{var __yy__v1273=GetWithArray(YYASSET_REF(0x0000001E));for(var __yy__v1274 in __yy__v1273){if(!__yy__v1273.hasOwnProperty(__yy__v1274))continue;var __yy__v1275=__yy__v1273[__yy__v1274]; instance_destroy(__yy__v1275);}};}}function gml_Script_s_no_ties_allowed(_inst,_other){{return(yyGetBool(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular)))||(yyGetBool(global.gmlexhibition))||(yyGetBool(gml_Script_s_is_co_mode(_inst,_other)));}}function gml_Script_roster_short_desc(_inst,_other,argument0){{if(yyfequal(argument0,(-4))){{return "No Roster";};};if(yyfequal(ds_list_size(argument0),0)){{return "Empty Roster"; };};return yyfplus(yyfplus("Roster of [",__yy_gml_errCheck(string(ds_list_size(argument0)))),"] players");}}function gml_Script_roster_short_desc_tag(_inst,_other,argument0,argument1){{if(yyfequal(argument0,(-4))){{return yyfplus(__yy_gml_errCheck(argument1),": No Roster");};};if(yyfequal(ds_list_size(argument0),0)){{return yyfplus(__yy_gml_errCheck(argument1),": Empty Roster");};};return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(argument1),": Roster of ["),__yy_gml_errCheck(string(ds_list_size(argument0)))), "] players");}}function gml_Script_slog_roster(_inst,_other,argument0,argument1){{if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_roster[__yy_gml_array_check_index(argument1,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_roster)],(-4))){{gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus("ROSTER[",__yy_gml_errCheck(string(argument1))),"] "),__yy_gml_errCheck(argument0)),": No roster"));return;};};var gmlcur_roster=yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_roster[__yy_gml_array_check_index(argument1, yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_roster)];var gmlsize=ds_list_size(gmlcur_roster);if(yyfequal(gmlsize,0)){{gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus("ROSTER[",__yy_gml_errCheck(string(argument1))),"] "),__yy_gml_errCheck(argument0)),": Valid, but empty"));return;};};var gmldispCount=min(gmlsize,3);var gmlplayersStr="";_inst.gmli=1;for(;yyfless(_inst.gmli,gmldispCount);_inst.gmli=yyfplus(_inst.gmli,1)){{var gmlpmap=ds_list_find_value(gmlcur_roster,_inst.gmli);gmlplayersStr=yyfplus(gmlplayersStr, yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname")),","));}};gmlplayersStr=yyfplus(gmlplayersStr,"...");gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("ROSTER[",__yy_gml_errCheck(string(argument1))),"] "),__yy_gml_errCheck(argument0)),": Valid, ["),__yy_gml_errCheck(string(gmlsize))),"] entries: "),__yy_gml_errCheck(gmlplayersStr)));}}function gml_Script_slog_master_roster(_inst,_other,argument0){{if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster, (-4))){{gml_Script_slog(_inst,_other,yyfplus(yyfplus("ROSTER[MASTER] ",__yy_gml_errCheck(argument0)),": No roster"));return;};};var gmlsize=ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster);if(yyfequal(gmlsize,0)){{gml_Script_slog(_inst,_other,yyfplus(yyfplus("ROSTER[MASTER] ",__yy_gml_errCheck(argument0)),": Valid, but empty"));return;};};var gmldispCount=min(gmlsize,3);var gmlplayersStr="";_inst.gmli=1;for(;yyfless(_inst.gmli,gmldispCount);_inst.gmli=yyfplus(_inst.gmli,1)){{var gmlpmap=ds_list_find_value(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlroster,_inst.gmli);gmlplayersStr=yyfplus(gmlplayersStr,yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname")),","));}};gmlplayersStr=yyfplus(gmlplayersStr,"...");gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("ROSTER[MASTER] ",__yy_gml_errCheck(argument0)),": Valid, ["),__yy_gml_errCheck(string(gmlsize))),"] entries: "),__yy_gml_errCheck(gmlplayersStr)));}}function gml_GlobalScript_s_choose_defensive_formation(_inst,_other){(_inst.gmls_choose_defensive_formation=__yy_method(_inst, gml_Script_s_choose_defensive_formation));}function gml_Script_s_choose_defensive_formation(_inst,_other){{{var __yy__v1276=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v1277 in __yy__v1276){if(!__yy__v1276.hasOwnProperty(__yy__v1277))continue;var __yy__v1278=__yy__v1276[__yy__v1277];{__yy__v1278.gmldefensive_cover=irandom(3);var gmldist=4;if(yyfless(__yy__v1278.gmlyards,8)){gmldist=3;};if(yyflessequal(__yy__v1278.gmlyards,4)){gmldist=2;};if(yyfless(__yy__v1278.gmlyards,2)){gmldist=1;};var gmld43=2; var gmlblitz=1;var gmlc1=1;var gmlc4=1;var ___sw1234___=__yy__v1278.gmldown;var ___swc1235___=-1;if(yyCompareVal(___sw1234___,1,g_GMLMathEpsilon,false)==0){___swc1235___=0;}else if(yyCompareVal(___sw1234___,2,g_GMLMathEpsilon,false)==0){___swc1235___=1;}else if(yyCompareVal(___sw1234___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1234___,4,g_GMLMathEpsilon,false)==0){___swc1235___=2;}else if(yyCompareVal(___sw1234___,6,g_GMLMathEpsilon,false)==0){___swc1235___=3;}switch(___swc1235___){case 0:{break;} case 1:{var ___sw1236___=gmldist;var ___swc1237___=-1;if(yyCompareVal(___sw1236___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1236___,2,g_GMLMathEpsilon,false)==0){___swc1237___=0;}else if(yyCompareVal(___sw1236___,3,g_GMLMathEpsilon,false)==0){___swc1237___=1;}else if(yyCompareVal(___sw1236___,4,g_GMLMathEpsilon,false)==0){___swc1237___=2;}switch(___swc1237___){case 0:{gmld43=1;gmlblitz=1;gmlc1=7;gmlc4=1;break;}case 1:{gmld43=4;gmlblitz=1;gmlc1=4;gmlc4=1;break;}case 2:{gmld43=4;gmlblitz=1;gmlc1=4; gmlc4=1;break;}};break;}case 2:{var ___sw1238___=gmldist;var ___swc1239___=-1;if(yyCompareVal(___sw1238___,1,g_GMLMathEpsilon,false)==0){___swc1239___=0;}else if(yyCompareVal(___sw1238___,2,g_GMLMathEpsilon,false)==0){___swc1239___=1;}else if(yyCompareVal(___sw1238___,3,g_GMLMathEpsilon,false)==0){___swc1239___=2;}else if(yyCompareVal(___sw1238___,4,g_GMLMathEpsilon,false)==0){___swc1239___=3;}switch(___swc1239___){case 0:{gmld43=1;gmlblitz=2;gmlc1=6;gmlc4=1;break;}case 1:{gmld43=5;gmlblitz=3;gmlc1=1;gmlc4=1; break;}case 2:{gmld43=4;gmlblitz=3;gmlc1=1;gmlc4=2;break;}case 3:{gmld43=3;gmlblitz=4;gmlc1=1;gmlc4=4;break;}};break;}case 3:{gmld43=1;gmlblitz=5;gmlc1=1;gmlc4=1;break;}default :{break;}};var gmlplaycallroll=random_range(0,yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gmld43),__yy_gml_errCheck(gmlblitz)),__yy_gml_errCheck(gmlc1)),__yy_gml_errCheck(gmlc4)));gml_Script_slog(__yy__v1278,_inst,yyfplus("playcallroll = ",__yy_gml_errCheck(string(gmlplaycallroll))));__yy__v1278.gmldefensive_cover=2;if(yyfgreater(gmlplaycallroll, gmld43)){__yy__v1278.gmldefensive_cover=0;};if(yyfgreater(gmlplaycallroll,yyfplus(__yy_gml_errCheck(gmld43),__yy_gml_errCheck(gmlblitz)))){__yy__v1278.gmldefensive_cover=1;};if(yyfgreater(gmlplaycallroll,yyfplus(yyfplus(__yy_gml_errCheck(gmld43),__yy_gml_errCheck(gmlblitz)),__yy_gml_errCheck(gmlc1)))){__yy__v1278.gmldefensive_cover=3;};}}};}}function gml_GlobalScript_s_set_up_fieldgoal(_inst,_other,argument0){(_inst.gmls_set_up_fieldgoal=__yy_method(_inst,gml_Script_s_set_up_fieldgoal));}function gml_Script_s_set_up_fieldgoal(_inst, _other,argument0){{show_debug_message("s_set_up_fieldgoal");if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)){{if(yyfequal(argument0,2)){gml_Script_s_action_result(_inst,_other,11);}else {gml_Script_s_action_result(_inst,_other,10);};return;};};_inst.gmlplaystart_time=g_pBuiltIn.get_current_time();global.gmlreplay_do=false;{var __yy__v1279=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v1280 in __yy__v1279){if(!__yy__v1279.hasOwnProperty(__yy__v1280))continue;var __yy__v1281=__yy__v1279[__yy__v1280]; {__yy__v1281.alarm=__yy_gml_array_check(__yy__v1281.alarm,4174532144);__yy__v1281.alarm[__yy_gml_array_check_index_set(0)]=0;gml_Script_s_reset_wind(__yy__v1281,_inst);__yy__v1281.gmlkicking=argument0;__yy__v1281.gmlscored_by=(-1);if(yyfequal(__yy__v1281.gmlkicking,2)){__yy__v1281.gmlscrimmage=47;};__yy__v1281.gmlx_scrim=yyfplus(1300,__yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(__yy__v1281.gmlscrimmage),20),__yy_gml_errCheck(__yy__v1281.gmldrivedir))));__yy__v1281.gmlx_yards=yyfplus(__yy_gml_errCheck(__yy__v1281.gmlx_scrim), __yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(__yy__v1281.gmlyards),20),__yy_gml_errCheck(__yy__v1281.gmldrivedir))));__yy__v1281.gmly_scrim=300;(g_yyPrePostObject__=__yy__v1281.gmlkicks,__yy__v1281.gmlkicks=(g_yyPrePostObject__ instanceof Long?__yy__v1281.gmlkicks.add(1):++__yy__v1281.gmlkicks),g_yyPrePostObject__);if(yyfgreater(__yy__v1281.gmlsnaps,0)){(g_yyPrePostObject__=__yy__v1281.gmlsnaps,__yy__v1281.gmlsnaps=(g_yyPrePostObject__ instanceof Long?__yy__v1281.gmlsnaps.subtract(1):--__yy__v1281.gmlsnaps), g_yyPrePostObject__);};if((yyGetBool(yyfnotequal(__yy__v1281.gmlkicking,2)))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice)))){{__yy__v1281.gmly_scrim=276;if(yyfgreater(__yy__v1281.gmly_down,300)){__yy__v1281.gmly_scrim=332;};};};__yy__v1281.gmlkick_dist=yyfminus(__yy_gml_errCheck(__yy__v1281.gmlx_scrim),90);if(yyfequal(__yy__v1281.gmldrivedir,1)){__yy__v1281.gmlkick_dist=yyfminus(2510,__yy_gml_errCheck(__yy__v1281.gmlx_scrim));};__yy__v1281.gmlkick_dist=yyfplus(4, __yy_gml_errCheck(floor(yyfdivide(__yy_gml_errCheck(__yy__v1281.gmlkick_dist),20))));gml_Script_s_destroy_match_objects(__yy__v1281,_inst);var gmlo=1;for(;yyfless(gmlo,12);(g_yyPrePostObject__=gmlo,gmlo=(g_yyPrePostObject__ instanceof Long?gmlo.add(1):++gmlo),g_yyPrePostObject__)){{instance_create_layer(0,0,"Players",YYASSET_REF(0x0000006C));if((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice,1)))&&(yyGetBool(yyfequal(gmlo,2)))){break;};}};if(yyfnotequal(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlgamepractice,1)){{var gmld=1;for(;yyfless(gmld,12);(g_yyPrePostObject__=gmld,gmld=(g_yyPrePostObject__ instanceof Long?gmld.add(1):++gmld),g_yyPrePostObject__)){{instance_create_layer(0,0,"Players",YYASSET_REF(0x0000006D));}};};};{var __yy__v1282=GetWithArray(YYASSET_REF(0x0000006B));for(var __yy__v1283 in __yy__v1282){if(!__yy__v1282.hasOwnProperty(__yy__v1283))continue;var __yy__v1284=__yy__v1282[__yy__v1283];gml_Script_s_set_skills_and_skin(__yy__v1284,__yy__v1281); }};global.gmlmaster_ball=instance_create_layer(0,0,"Ball",YYASSET_REF(0x0000006F));instance_create_layer(0,0,"Ball",YYASSET_REF(0x00000070));if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice,1)){{__yy__v1281.gmlstate=1;__yy__v1281.gmlcomm_stage=14;__yy__v1281.gmlcomm_txt="";__yy__v1281.gmlcomm_proceed=false;__yy__v1281.gmltap_msg=gml_Script_s_str(__yy__v1281,_inst,"training_Kick1");if((yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),0)))||(yyGetBool(yyfequal(g_pBuiltIn.get_os_type(), 1)))){__yy__v1281.gmltap_msg=gml_Script_s_str(__yy__v1281,_inst,"training_Kick1b");};if(yyGetBool(global.gmlgamepad)){__yy__v1281.gmlcomm_proceed=true;};};};}}};var gmlshowChangeMind=(yyGetBool((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldown,4)))||(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlkicking,2)))))&&(yyGetBool(gml_Script_s_count_timeouts(_inst,_other)));if((yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlcollege_overtime))&&(yyGetBool(yyflessequal(yyInst(_inst, _other,YYASSET_REF(0x00000069)).gmlcollege_overtime_round,2)))&&(yyGetBool(gml_Script_s_count_timeouts(_inst,_other)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlkicking,1)))){{gmlshowChangeMind=true;};};if(yyGetBool(gmlshowChangeMind)){{var gmlbx=yyfminus(yyfminus(__yy_gml_errCheck(display_get_gui_width()),8),__yy_gml_errCheck(sprite_get_width(YYASSET_REF(0x01000059))));var gmlby=68;if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldrivedir,(-1))){gmlbx=8;};var gmlobj_btn_g4i=instance_create_layer(gmlbx, gmlby,"Text",YYASSET_REF(0x0000000C));yyInst(_inst,_other,gmlobj_btn_g4i).gmlgp_mapped_button=32772;yyInst(_inst,_other,gmlobj_btn_g4i).gmlgp_mapped_hidden=32774;if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlkicking,2)){yyInst(_inst,_other,gmlobj_btn_g4i).gmltxt=gml_Script_s_str(_inst,_other,"btn_GoFor2");};};};}}function gml_GlobalScript_s_subtract_time(_inst,_other){(_inst.gmls_subtract_time=__yy_method(_inst,gml_Script_s_subtract_time));}function gml_Script_s_subtract_time(_inst,_other, argument0,argument1,argument2){{var gmltm=irandom_range(argument0,argument1);if(yyGetBool(_inst.gmlgoforit)){gmltm=yyfplus(1,__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltm),0.5)));}else {if((yyGetBool(yyfgreater(argument1,1)))&&(yyGetBool(yyfgreater(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlhuman_team,_inst.gmlteam_score)],yyfplus(__yy_gml_errCheck(_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlhuman_team)?1:0,_inst.gmlteam_score)]),7))))&&(yyGetBool(yyfgreater(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlop_matchlength,(-1))))){gmltm=yyftime(gmltm,1.5);};};_inst.gmltime_subtract=yyfplus(_inst.gmltime_subtract,round(gmltm));}}function gml_GlobalScript_s_update_game_timer(_inst,_other){(_inst.gmls_update_game_timer=__yy_method(_inst,gml_Script_s_update_game_timer));}function gml_Script_s_update_game_timer(_inst,_other){{if((yyGetBool(yyflessequal(_inst.gmlminutes,0)))&&(yyGetBool(yyflessequal(_inst.gmlseconds,0)))){return;};if(yyfequal(_inst.gmlkicking,2)){return;} ;if(yyGetBool(_inst.gmltimeout_called)){return;};if((yyGetBool(yyfgreater(_inst.gmldown,4)))&&(yyGetBool(yyfless(_inst.gmldown,99)))){return;};if(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,false))){return;};if(yyGetBool(_inst.gmlcollege_overtime)){return;};{var __yy__v1285=GetWithArray(global.gmlmaster_ball);for(var __yy__v1286 in __yy__v1285){if(!__yy__v1285.hasOwnProperty(__yy__v1286))continue;var __yy__v1287=__yy__v1285[__yy__v1286];{var ___sw1242___=__yy__v1287.gmlstate;var ___swc1243___=-1;if(yyCompareVal(___sw1242___, 0,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1242___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1242___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1242___,7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1242___,8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1242___,12,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1242___,14,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1242___,15,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1242___,16,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1242___, 17,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1242___,20,g_GMLMathEpsilon,false)==0){___swc1243___=0;}switch(___swc1243___){case 0:{return;break;}default :{if((yyGetBool(yyfequal(__yy__v1287.gmlstate,4)))&&(yyGetBool(__yy__v1287.gmlholder))){{if((yyGetBool(!yyGetBool(yyInst(_inst,_other,__yy__v1287.gmlholder).gmloffense)))||(yyGetBool(gml_Script_s_is_kickoff(__yy__v1287,_inst,true)))){return;}else {if((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldown,4)))&&(yyGetBool(yyfgreater(yyInst(_inst, _other,__yy__v1287.gmlholder).gmlremaining_dist,0)))){return;};};};};if((yyGetBool(gml_Script_s_is_kickoff(__yy__v1287,_inst,true)))&&(yyGetBool((yyGetBool(yyfless(__yy__v1287.x,300)))||(yyGetBool(yyfgreater(__yy__v1287.x,2300)))))){return;};var gmlsec=700;if((yyGetBool(yyfequal(__yy__v1287.gmlstate,4)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_matchlength,(-1))))){gmlsec=yyftime(gmlsec,1.5);};{if(yyfgreater(g_pBuiltIn.get_current_time(),yyfplus(__yy_gml_errCheck(_inst.gmlgametimer), __yy_gml_errCheck(gmlsec)))){{_inst.gmlgametimer=g_pBuiltIn.get_current_time();gml_Script_s_subtract_time(_inst,__yy__v1287,1,1,"Tick");gml_Script_s_update_game_clock(_inst,__yy__v1287);};};};break;}};}}};}}function gml_GlobalScript_s_update_game_clock(_inst,_other){(_inst.gmls_update_game_clock=__yy_method(_inst,gml_Script_s_update_game_clock));}function gml_Script_s_update_game_clock(_inst,_other){{{var __yy__v1288=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v1289 in __yy__v1288){if(!__yy__v1288.hasOwnProperty(__yy__v1289))continue; var __yy__v1290=__yy__v1288[__yy__v1289];{if(yyfgreater(__yy__v1290.gmltime_subtract,0)){{(g_yyPrePostObject__=__yy__v1290.gmltime_subtract,__yy__v1290.gmltime_subtract=(g_yyPrePostObject__ instanceof Long?__yy__v1290.gmltime_subtract.subtract(1):--__yy__v1290.gmltime_subtract),g_yyPrePostObject__);(g_yyPrePostObject__=__yy__v1290.gmlseconds,__yy__v1290.gmlseconds=(g_yyPrePostObject__ instanceof Long?__yy__v1290.gmlseconds.subtract(1):--__yy__v1290.gmlseconds),g_yyPrePostObject__);if(yyfequal(__yy__v1290.gmlstate, 2)){{if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice)){{if(yyfequal(__yy__v1290.gmlminutes,0)){{if(yyfless(__yy__v1290.gmlseconds,6)){gml_Script_s_sound(__yy__v1290,_inst,YYASSET_REF(0x02000004));}else {gml_Script_s_sound(__yy__v1290,_inst,YYASSET_REF(0x02000003));};};};};}else {if((yyGetBool(yyfequal(__yy__v1290.gmlquarter,2)))||(yyGetBool(yyfequal(__yy__v1290.gmlquarter,4)))){{if((yyGetBool(yyfequal(__yy__v1290.gmlminutes,0)))&&(yyGetBool(yyfequal(__yy__v1290.gmlseconds, 20)))){gml_Script_s_sound(__yy__v1290,_inst,YYASSET_REF(0x02000004));};if((yyGetBool(yyfequal(__yy__v1290.gmlminutes,0)))&&(yyGetBool(yyfless(__yy__v1290.gmlseconds,11)))){gml_Script_s_sound(__yy__v1290,_inst,YYASSET_REF(0x02000003));};};};};};};if(yyfless(__yy__v1290.gmlseconds,0)){{(g_yyPrePostObject__=__yy__v1290.gmlminutes,__yy__v1290.gmlminutes=(g_yyPrePostObject__ instanceof Long?__yy__v1290.gmlminutes.subtract(1):--__yy__v1290.gmlminutes),g_yyPrePostObject__);__yy__v1290.gmlseconds=yyfplus(__yy__v1290.gmlseconds, 60);if(yyfless(__yy__v1290.gmlminutes,0)){{__yy__v1290.gmlminutes=0;__yy__v1290.gmlseconds=0;};};};};};};}}};}}function gml_GlobalScript_s_update_yard_gain(_inst,_other){(_inst.gmls_update_yard_gain=__yy_method(_inst,gml_Script_s_update_yard_gain));}function gml_Script_s_update_yard_gain(_inst,_other){{gml_Script_s_update_xdead(_inst,_other);var gmlgain=0;var gmlbx=clamp(_inst.gmlxdead,300,2300);var gmlball=global.gmlmaster_ball;if((yyGetBool(yyInst(_inst,_other,gmlball).gmlholder))&&(yyGetBool(!yyGetBool(yyInst(_inst, _other,yyInst(_inst,_other,gmlball).gmlholder).gmloffense)))){return;};var ___sw1248___=yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldrivedir;var ___swc1249___=-1;if(yyCompareVal(___sw1248___,(-1),g_GMLMathEpsilon,false)==0){___swc1249___=0;}else if(yyCompareVal(___sw1248___,1,g_GMLMathEpsilon,false)==0){___swc1249___=1;}switch(___swc1249___){case 0:{gmlgain=yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim),__yy_gml_errCheck(gmlbx))),20); break;}case 1:{gmlgain=yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlbx),__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_scrim))),20);break;}};if((yyGetBool(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice)))&&(yyGetBool(yyInst(_inst,_other,gmlball).gmlholder))&&(yyGetBool(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmlpmap))&&(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,true)))){{gml_Script_slog(_inst,_other,yyfplus("Check return record gain = ", __yy_gml_errCheck(string(gmlgain))));ds_map_set(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmlpmap,"stat_return_attempts",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmlpmap,"stat_return_attempts")),1));if(yyfgreater(gmlgain,0)){{ds_map_set(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmlpmap,"stat_return_yards",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmlpmap, "stat_return_yards")),__yy_gml_errCheck(gmlgain)));if(yyfgreater(gmlgain,ds_map_find_value(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmlpmap,"stat_return_longest"))){ds_map_set(yyInst(_inst,_other,_inst.gmlholder).gmlpmap,"stat_return_longest",gmlgain);};gml_Script_s_check_record(_inst,_other,"ui_LongKickReturn",gmlgain,"",gml_Script_s_get_holder_name(_inst,_other),gml_Script_s_get_opponent_team_tla(_inst,_other));if(!yyGetBool(gml_Script_s_simming_action(_inst,_other))){{if(yyfgreaterequal(gmlgain, 25)){gml_Script_s_complete_achievement(_inst,_other,"ACH_RETURN_25");};if(yyfgreaterequal(gmlgain,50)){gml_Script_s_complete_achievement(_inst,_other,"ACH_RETURN_50");};if(yyfgreaterequal(gmlgain,75)){gml_Script_s_complete_achievement(_inst,_other,"ACH_RETURN_75");};};};if(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,6)){{ds_map_set(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).gmlpmap,"stat_return_tds",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,yyInst(_inst, _other,gmlball).gmlholder).gmlpmap,"stat_return_tds")),1));if(!yyGetBool(gml_Script_s_simming_action(_inst,_other))){gml_Script_s_complete_achievement(_inst,_other,"ACH_RETURN_TD");};};};if(yyfgreater(gmlgain,25)){global.gmlreplay_do=true;};};};return;};};var gmlqb=gml_Script_s_get_quarterback(_inst,_other);if((yyGetBool(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice)))&&(yyGetBool(_inst.gmlholder))&&(yyGetBool(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldown, 5)))){{var ___sw1250___=yyInst(_inst,_other,_inst.gmlholder).gmlposition;var ___swc1251___=-1;if(yyCompareVal(___sw1250___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1250___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1250___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1250___,4,g_GMLMathEpsilon,false)==0){___swc1251___=0;}else if(yyCompareVal(___sw1250___,5,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1250___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1250___,7,g_GMLMathEpsilon, false)==0||yyCompareVal(___sw1250___,9,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1250___,8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1250___,10,g_GMLMathEpsilon,false)==0){___swc1251___=1;}switch(___swc1251___){case 0:{if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlrunning_play)){{gml_Script_slog(_inst,_other,">>> RUNNING_PLAY");if(yyGetBool(yyInst(_inst,_other,_inst.gmlholder).gmlpmap)){{if(yyfnotequal(_inst.gmlstate,11)){ds_map_set(yyInst(_inst,_other,_inst.gmlholder).gmlpmap, "stat_rush_attempts",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,_inst.gmlholder).gmlpmap,"stat_rush_attempts")),1));};if((yyGetBool(yyfgreater(gmlgain,0)))||(yyGetBool(yyfnotequal(yyInst(_inst,_other,_inst.gmlholder).gmlposition,1)))){ds_map_set(yyInst(_inst,_other,_inst.gmlholder).gmlpmap,"stat_rush_yards",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,_inst.gmlholder).gmlpmap,"stat_rush_yards")),__yy_gml_errCheck(gmlgain)));};if(yyfgreater(gmlgain,ds_map_find_value(yyInst(_inst, _other,_inst.gmlholder).gmlpmap,"stat_rush_longest"))){ds_map_set(yyInst(_inst,_other,_inst.gmlholder).gmlpmap,"stat_rush_longest",gmlgain);};if(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,6)){{ds_map_set(yyInst(_inst,_other,_inst.gmlholder).gmlpmap,"stat_rush_touchdowns",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,_inst.gmlholder).gmlpmap,"stat_rush_touchdowns")),1));if((yyGetBool(yyfequal(ds_map_find_value(yyInst(_inst,_other,_inst.gmlholder).gmlpmap,"position"),1)))&&(yyGetBool(!yyGetBool(gml_Script_s_simming_action(_inst, _other))))){gml_Script_s_complete_achievement(_inst,_other,"ACH_TD_QB");};};};};}else {{if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,6)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,_inst.gmlholder).gmlposition,1)))&&(yyGetBool(!yyGetBool(gml_Script_s_simming_action(_inst,_other))))){gml_Script_s_complete_achievement(_inst,_other,"ACH_TD_QB");};};};if(!yyGetBool(gml_Script_s_simming_action(_inst,_other))){{if(yyfgreater(gmlgain,15)){gml_Script_s_complete_achievement(_inst,_other,"ACH_RUN15"); }else {if(yyfgreater(gmlgain,10)){gml_Script_s_complete_achievement(_inst,_other,"ACH_RUN10");}else {if(yyfgreater(gmlgain,5)){gml_Script_s_complete_achievement(_inst,_other,"ACH_RUN5");};};};};};if(yyfgreater(gmlgain,15)){global.gmlreplay_do=true;};gml_Script_s_check_record(_inst,_other,"ui_LongRushingPlay",gmlgain,gml_Script_s_get_qb_name(_inst,_other),gml_Script_s_get_holder_name(_inst,_other),gml_Script_s_get_opponent_team_tla(_inst,_other));if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate, 6)))&&(yyGetBool(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldown,6)))){{gml_Script_s_check_record(_inst,_other,"ui_LongRushTD",gmlgain,gml_Script_s_get_qb_name(_inst,_other),gml_Script_s_get_holder_name(_inst,_other),gml_Script_s_get_opponent_team_tla(_inst,_other));yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldist_td=round(gmlgain);};};};}else {{if(yyGetBool(yyInst(_inst,_other,_inst.gmlholder).gmlpmap)){{ds_map_set(yyInst(_inst,_other,_inst.gmlholder).gmlpmap,"stat_attempts",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst, _other,_inst.gmlholder).gmlpmap,"stat_attempts")),1));ds_map_set(yyInst(_inst,_other,_inst.gmlholder).gmlpmap,"stat_yards",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,_inst.gmlholder).gmlpmap,"stat_yards")),__yy_gml_errCheck(gmlgain)));if(yyfgreater(gmlgain,ds_map_find_value(yyInst(_inst,_other,_inst.gmlholder).gmlpmap,"stat_longest"))){ds_map_set(yyInst(_inst,_other,_inst.gmlholder).gmlpmap,"stat_longest",gmlgain);};if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate, 6)))&&(yyGetBool(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldown,6)))){ds_map_set(yyInst(_inst,_other,_inst.gmlholder).gmlpmap,"stat_touchdowns",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,_inst.gmlholder).gmlpmap,"stat_touchdowns")),1));};};};if((yyGetBool(gmlqb))&&(yyGetBool(yyInst(_inst,_other,gmlqb).gmlpmap))){{ds_map_set(yyInst(_inst,_other,gmlqb).gmlpmap,"stat_yards",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,gmlqb).gmlpmap,"stat_yards")), __yy_gml_errCheck(gmlgain)));if(yyfgreater(gmlgain,ds_map_find_value(yyInst(_inst,_other,gmlqb).gmlpmap,"stat_longest"))){ds_map_set(yyInst(_inst,_other,gmlqb).gmlpmap,"stat_longest",gmlgain);};if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,6)))&&(yyGetBool(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldown,6)))){ds_map_set(yyInst(_inst,_other,gmlqb).gmlpmap,"stat_touchdowns",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,gmlqb).gmlpmap,"stat_touchdowns")), 1));};};};if((yyGetBool(!yyGetBool(gml_Script_s_is_kickoff(_inst,_other,true))))&&(yyGetBool(!yyGetBool(gml_Script_s_simming_action(_inst,_other))))){{if(yyfgreater(gmlgain,50)){gml_Script_s_complete_achievement(_inst,_other,"ACH_PASS50");}else {if(yyfgreater(gmlgain,25)){gml_Script_s_complete_achievement(_inst,_other,"ACH_PASS25");}else {if(yyfgreater(gmlgain,10)){gml_Script_s_complete_achievement(_inst,_other,"ACH_PASS10");};};};};};if(yyfgreater(gmlgain,25)){global.gmlreplay_do=true;};gml_Script_s_check_record(_inst, _other,"ui_LongPassingPlay",gmlgain,gml_Script_s_get_qb_name(_inst,_other),gml_Script_s_get_holder_name(_inst,_other),gml_Script_s_get_opponent_team_tla(_inst,_other));if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,6)))&&(yyGetBool(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldown,6)))){{gml_Script_s_check_record(_inst,_other,"ui_LongPassTD",gmlgain,gml_Script_s_get_qb_name(_inst,_other),gml_Script_s_get_holder_name(_inst,_other),gml_Script_s_get_opponent_team_tla(_inst, _other));yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldist_td=round(gmlgain);};};};};break;}case 1:{break;}};};};gml_Script_s_fieldtxt_yards(_inst,_other,gmlgain);}}function gml_GlobalScript_s_set_rewarded_route(_inst,_other){(_inst.gmls_set_rewarded_route=__yy_method(_inst,gml_Script_s_set_rewarded_route));}function gml_Script_s_set_rewarded_route(_inst,_other){{{var __yy__v1291=GetWithArray(YYASSET_REF(0x0000006C));for(var __yy__v1292 in __yy__v1291){if(!__yy__v1291.hasOwnProperty(__yy__v1292))continue; var __yy__v1293=__yy__v1291[__yy__v1292];{if((yyGetBool(path_exists(__yy__v1293.gmlmy_route)))&&(yyGetBool(!yyGetBool(__yy__v1293.gmlte_blocking)))&&(yyGetBool(yyfnotequal(__yy__v1293.gmlposition,1)))){{if(!yyGetBool(irandom(4))){{if((yyGetBool(__yy__v1293.gmlpmap))&&(yyGetBool(yyfgreater(ds_map_find_value(__yy__v1293.gmlpmap,"attitude"),99)))){continue;}else {{__yy__v1293.gmlrewarded_route=true;return;};};};};};};}}};}}function gml_GlobalScript_s_switch_drivedirection(_inst,_other){(_inst.gmls_switch_drivedirection=__yy_method(_inst, gml_Script_s_switch_drivedirection));}function gml_Script_s_switch_drivedirection(_inst,_other){{{var __yy__v1294=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v1295 in __yy__v1294){if(!__yy__v1294.hasOwnProperty(__yy__v1295))continue;var __yy__v1296=__yy__v1294[__yy__v1295];{__yy__v1296.gmldrivedir=__yy_gml_errCheck(-__yy_gml_errCheck(__yy__v1296.gmldrivedir));var gmldd=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_drivedir");if(yyGetBool(global.gmlexhibition)){ gmldd=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"exh_op_drivedir");};if(yyfnotequal(gmldd,0)){__yy__v1296.gmldrivedir=gmldd;};}}};{var __yy__v1297=GetWithArray(YYASSET_REF(0x0000006B));for(var __yy__v1298 in __yy__v1297){if(!__yy__v1297.hasOwnProperty(__yy__v1298))continue;var __yy__v1299=__yy__v1297[__yy__v1298];{__yy__v1299.gmlfacing=__yy_gml_errCheck(-__yy_gml_errCheck(__yy__v1299.gmlfacing));__yy__v1299.gmlgoalline_attack=2300;if(yyfequal(__yy__v1299.gmlfacing, (-1))){__yy__v1299.gmlgoalline_attack=300;};}}};}}function gml_GlobalScript_s_destroy_match_objects(_inst,_other){(_inst.gmls_destroy_match_objects=__yy_method(_inst,gml_Script_s_destroy_match_objects));}function gml_Script_s_destroy_match_objects(_inst,_other){{gml_Script_slog(_inst,_other,"s_destroy_match_objects");{var __yy__v1300=GetWithArray(YYASSET_REF(0x0000006B));for(var __yy__v1301 in __yy__v1300){if(!__yy__v1300.hasOwnProperty(__yy__v1301))continue;var __yy__v1302=__yy__v1300[__yy__v1301];layer_sprite_destroy(__yy__v1302.gmlmy_shadow); }};{var __yy__v1303=GetWithArray(global.gmlmaster_ball);for(var __yy__v1304 in __yy__v1303){if(!__yy__v1303.hasOwnProperty(__yy__v1304))continue;var __yy__v1305=__yy__v1303[__yy__v1304];layer_sprite_destroy(__yy__v1305.gmlmy_shadow);}};instance_destroy(_inst,YYASSET_REF(0x0000006B));instance_destroy(_inst,YYASSET_REF(0x0000006F));instance_destroy(_inst,YYASSET_REF(0x00000070));instance_destroy(_inst,YYASSET_REF(0x0000006E));instance_destroy(_inst,YYASSET_REF(0x00000075));instance_destroy(_inst,YYASSET_REF(0x0000007A)); instance_destroy(_inst,YYASSET_REF(0x0000007B));instance_destroy(_inst,YYASSET_REF(0x0000007C));instance_destroy(_inst,YYASSET_REF(0x0000000C));}}function gml_GlobalScript_s_action_result(_inst,_other){(_inst.gmls_action_result=__yy_method(_inst,gml_Script_s_action_result));}function gml_Script_s_action_result(_inst,_other,argument0){{gml_Script_s_destroy_match_objects(_inst,_other);gml_Script_slog(_inst,_other,yyfplus("s_action_result: ",__yy_gml_errCheck(gml_Script_s_get_string_action_result(_inst, _other,argument0))));{var __yy__v1306=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v1307 in __yy__v1306){if(!__yy__v1306.hasOwnProperty(__yy__v1307))continue;var __yy__v1308=__yy__v1306[__yy__v1307];{__yy__v1308.gmlscorer="";var ___sw1254___=argument0;var ___swc1255___=-1;if(yyCompareVal(___sw1254___,1,g_GMLMathEpsilon,false)==0){___swc1255___=0;}else if(yyCompareVal(___sw1254___,2,g_GMLMathEpsilon,false)==0){___swc1255___=1;}else if(yyCompareVal(___sw1254___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1254___, 4,g_GMLMathEpsilon,false)==0){___swc1255___=2;}else if(yyCompareVal(___sw1254___,5,g_GMLMathEpsilon,false)==0){___swc1255___=3;}else if(yyCompareVal(___sw1254___,6,g_GMLMathEpsilon,false)==0){___swc1255___=4;}else if(yyCompareVal(___sw1254___,7,g_GMLMathEpsilon,false)==0){___swc1255___=5;}else if(yyCompareVal(___sw1254___,8,g_GMLMathEpsilon,false)==0){___swc1255___=6;}else if(yyCompareVal(___sw1254___,9,g_GMLMathEpsilon,false)==0){___swc1255___=7;}else if(yyCompareVal(___sw1254___,10,g_GMLMathEpsilon, false)==0){___swc1255___=8;}else if(yyCompareVal(___sw1254___,11,g_GMLMathEpsilon,false)==0){___swc1255___=9;}switch(___swc1255___){case 0:{gml_Script_slog(__yy__v1308,_inst,yyfplus("quarter=",__yy_gml_errCheck(string(__yy__v1308.gmlquarter))));gml_Script_slog(__yy__v1308,_inst,yyfplus("drives=",__yy_gml_errCheck(string(__yy__v1308.gmldrives))));var gmlis2PointConv=yyfgreaterequal(__yy__v1308.gmldown,6);if(yyGetBool(__yy__v1308.gmlcollege_overtime)){{if(yyGetBool(gmlis2PointConv)){{gml_Script_slog(__yy__v1308, _inst,"ACTION_RESULT_TOUCHDOWN (college_overtime - 2pconv)");__yy__v1308.gmlteam_score=__yy_gml_array_check(__yy__v1308.gmlteam_score,1312652163);__yy__v1308.gmlteam_score[__yy_gml_array_check_index_set(__yy__v1308.gmlpossession)]=yyfplus(__yy__v1308.gmlteam_score[__yy_gml_array_check_index_set(__yy__v1308.gmlpossession)],2);gml_Script_s_college_overtime_handle_play_end(__yy__v1308,_inst);__yy__v1308.gmlstate=1;__yy__v1308.gmlcomm_proceed=true;return;};}else {{gml_Script_slog(__yy__v1308,_inst,"ACTION_RESULT_TOUCHDOWN (college_overtime - touchdown)"); __yy__v1308.gmlteam_score=__yy_gml_array_check(__yy__v1308.gmlteam_score,1312652163);__yy__v1308.gmlteam_score[__yy_gml_array_check_index_set(__yy__v1308.gmlpossession)]=yyfplus(__yy__v1308.gmlteam_score[__yy_gml_array_check_index_set(__yy__v1308.gmlpossession)],6);gml_Script_s_college_overtime_trigger_point_conversion(__yy__v1308,_inst);__yy__v1308.gmlstate=1;__yy__v1308.gmlcomm_proceed=true;return;};};break;};}else {if((yyGetBool(yyfequal(__yy__v1308.gmlquarter,5)))&&(yyGetBool(yyfless(__yy__v1308.gmldown, 6)))&&(yyGetBool(yyfgreater(yyfplus(__yy_gml_errCheck(__yy__v1308.gmlteam_score[__yy_gml_array_check_index(__yy__v1308.gmlpossession,__yy__v1308.gmlteam_score)]),6),__yy__v1308.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(__yy__v1308.gmlpossession)?1:0,__yy__v1308.gmlteam_score)])))&&(yyGetBool(gml_Script_s_both_teams_had_possession(__yy__v1308,_inst)))){{__yy__v1308.gmlteam_score=__yy_gml_array_check(__yy__v1308.gmlteam_score,1312652163);__yy__v1308.gmlteam_score[__yy_gml_array_check_index_set(__yy__v1308.gmlpossession)]=yyfplus(__yy__v1308.gmlteam_score[__yy_gml_array_check_index_set(__yy__v1308.gmlpossession)], 6);__yy__v1308.gmlcomm_stage=17;break;};}else {if((yyGetBool(yyfgreaterequal(__yy__v1308.gmldown,6)))&&(yyGetBool(!yyGetBool(gml_Script_s_is_kickoff(__yy__v1308,_inst,true))))){{gml_Script_s_complete_achievement(__yy__v1308,_inst,"ACH_POINTAFTER2");if((yyGetBool(yyfequal(__yy__v1308.gmlquarter,5)))&&(yyGetBool(yyfgreater(yyfplus(__yy_gml_errCheck(__yy__v1308.gmlteam_score[__yy_gml_array_check_index(__yy__v1308.gmlpossession,__yy__v1308.gmlteam_score)]),2),__yy__v1308.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(__yy__v1308.gmlpossession)?1:0, __yy__v1308.gmlteam_score)])))&&(yyGetBool(gml_Script_s_both_teams_had_possession(__yy__v1308,_inst)))){{__yy__v1308.gmlteam_score=__yy_gml_array_check(__yy__v1308.gmlteam_score,1312652163);__yy__v1308.gmlteam_score[__yy_gml_array_check_index_set(__yy__v1308.gmlpossession)]=yyfplus(__yy__v1308.gmlteam_score[__yy_gml_array_check_index_set(__yy__v1308.gmlpossession)],2);__yy__v1308.gmlcomm_stage=17;break;};}else {{__yy__v1308.gmlteam_score=__yy_gml_array_check(__yy__v1308.gmlteam_score,1312652163); __yy__v1308.gmlteam_score[__yy_gml_array_check_index_set(__yy__v1308.gmlpossession)]=yyfplus(__yy__v1308.gmlteam_score[__yy_gml_array_check_index_set(__yy__v1308.gmlpossession)],2);__yy__v1308.gmlcomm_stage=1;break;};};};}else {{__yy__v1308.gmlteam_score=__yy_gml_array_check(__yy__v1308.gmlteam_score,1312652163);__yy__v1308.gmlteam_score[__yy_gml_array_check_index_set(__yy__v1308.gmlpossession)]=yyfplus(__yy__v1308.gmlteam_score[__yy_gml_array_check_index_set(__yy__v1308.gmlpossession)],6);__yy__v1308.gmldown=6; if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)){__yy__v1308.gmlcomm_stage=10;}else {{gml_Script_slog(__yy__v1308,_inst,yyfplus(yyfplus("Offer after touchdown [",__yy_gml_errCheck(gml_Script_s_str(__yy__v1308,_inst,"matchmsg_PATor2"))),"]"));gml_Script_s_create_message(__yy__v1308,_inst,"",gml_Script_s_str(__yy__v1308,_inst,"matchmsg_PATor2"),gml_Script_s_str(__yy__v1308,_inst,"match_1pt"),gml_Script_s_str(__yy__v1308,_inst,"match_2pt"),kgml_Script_btn_response_1pt,kgml_Script_btn_response_2pt, 16777215,0.7);return;};};};};};};break;}case 1:{var gmlis2PointConv=yyfgreaterequal(__yy__v1308.gmldown,6);if(yyGetBool(__yy__v1308.gmlcollege_overtime)){{if(yyGetBool(gmlis2PointConv)){{__yy__v1308.gmlteam_score=__yy_gml_array_check(__yy__v1308.gmlteam_score,1312652163);__yy__v1308.gmlteam_score[__yy_gml_array_check_index_set(!yyGetBool(__yy__v1308.gmlpossession)?1:0)]=yyfplus(__yy__v1308.gmlteam_score[__yy_gml_array_check_index_set(!yyGetBool(__yy__v1308.gmlpossession)?1:0)],2);gml_Script_s_college_overtime_handle_play_end(__yy__v1308, _inst);__yy__v1308.gmlstate=1;__yy__v1308.gmlcomm_proceed=true;return;};}else {{gml_Script_s_change_possession(__yy__v1308,_inst);__yy__v1308.gmlteam_score=__yy_gml_array_check(__yy__v1308.gmlteam_score,1312652163);__yy__v1308.gmlteam_score[__yy_gml_array_check_index_set(__yy__v1308.gmlpossession)]=yyfplus(__yy__v1308.gmlteam_score[__yy_gml_array_check_index_set(__yy__v1308.gmlpossession)],6);gml_Script_s_college_overtime_trigger_point_conversion(__yy__v1308,_inst);__yy__v1308.gmlstate=1;__yy__v1308.gmlcomm_proceed=true; return;};};break;};}else {if((yyGetBool(yyfequal(__yy__v1308.gmlquarter,5)))&&(yyGetBool(yyfnotequal(__yy__v1308.gmlteam_score[__yy_gml_array_check_index(0,__yy__v1308.gmlteam_score)],__yy__v1308.gmlteam_score[__yy_gml_array_check_index(1,__yy__v1308.gmlteam_score)])))&&(yyGetBool(gml_Script_s_both_teams_had_possession(__yy__v1308,_inst)))){{gml_Script_s_change_possession(__yy__v1308,_inst);__yy__v1308.gmlteam_score=__yy_gml_array_check(__yy__v1308.gmlteam_score,1312652163);__yy__v1308.gmlteam_score[__yy_gml_array_check_index_set(__yy__v1308.gmlpossession)]=yyfplus(__yy__v1308.gmlteam_score[__yy_gml_array_check_index_set(__yy__v1308.gmlpossession)], 6);__yy__v1308.gmlcomm_stage=17;};}else {if(yyfgreaterequal(__yy__v1308.gmldown,6)){{__yy__v1308.gmlteam_score=__yy_gml_array_check(__yy__v1308.gmlteam_score,1312652163);__yy__v1308.gmlteam_score[__yy_gml_array_check_index_set(!yyGetBool(__yy__v1308.gmlpossession)?1:0)]=yyfplus(__yy__v1308.gmlteam_score[__yy_gml_array_check_index_set(!yyGetBool(__yy__v1308.gmlpossession)?1:0)],2);__yy__v1308.gmlcomm_stage=1;};}else {{gml_Script_s_change_possession(__yy__v1308,_inst);__yy__v1308.gmlteam_score=__yy_gml_array_check(__yy__v1308.gmlteam_score, 1312652163);__yy__v1308.gmlteam_score[__yy_gml_array_check_index_set(__yy__v1308.gmlpossession)]=yyfplus(__yy__v1308.gmlteam_score[__yy_gml_array_check_index_set(__yy__v1308.gmlpossession)],6);__yy__v1308.gmldown=6;if((yyGetBool(global.gmlexhibition))&&(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayerteamindex,(-1))))){{gml_Script_s_create_message(__yy__v1308,_inst,"",gml_Script_s_str(__yy__v1308,_inst,"matchmsg_PATor2"),gml_Script_s_str(__yy__v1308,_inst,"match_1pt"),gml_Script_s_str(__yy__v1308, _inst,"match_2pt"),kgml_Script_btn_response_1pt,kgml_Script_btn_response_2pt,16777215,0.7);return;};}else {__yy__v1308.gmlcomm_stage=10;};};};};};break;}case 2:{if(yyGetBool(__yy__v1308.gmlcollege_overtime)){{gml_Script_s_college_overtime_handle_play_end(__yy__v1308,_inst);};}else {if((yyGetBool(yyfequal(__yy__v1308.gmlquarter,5)))&&(yyGetBool(yyfnotequal(__yy__v1308.gmlteam_score[__yy_gml_array_check_index(0,__yy__v1308.gmlteam_score)],__yy__v1308.gmlteam_score[__yy_gml_array_check_index(1,__yy__v1308.gmlteam_score)])))&&(yyGetBool(gml_Script_s_both_teams_had_possession(__yy__v1308, _inst)))){__yy__v1308.gmlcomm_stage=17;}else {if(yyfgreaterequal(__yy__v1308.gmldown,6)){{gml_Script_slog(__yy__v1308,_inst,"Missed 2pt attempt");if((yyGetBool(yyfequal(__yy__v1308.gmlquarter,5)))&&(yyGetBool(yyfnotequal(__yy__v1308.gmlteam_score[__yy_gml_array_check_index(0,__yy__v1308.gmlteam_score)],__yy__v1308.gmlteam_score[__yy_gml_array_check_index(1,__yy__v1308.gmlteam_score)])))&&(yyGetBool(gml_Script_s_both_teams_had_possession(__yy__v1308,_inst)))){__yy__v1308.gmlcomm_stage=17;}else {__yy__v1308.gmlcomm_stage=1; };};}else {__yy__v1308.gmlcomm_stage=22;};};};break;}case 3:{__yy__v1308.gmlcomm_stage=5;break;}case 4:{if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice,1)){{if(yyfequal(__yy__v1308.gmlpractice_success,0)){__yy__v1308.gmlpractice_success=__yy__v1308.gmlpractice_count;}else {__yy__v1308.gmlpractice_success=(-1);};gml_Script_s_set_up_practice(__yy__v1308,_inst);return;};};gml_Script_s_change_wind(__yy__v1308,_inst);if(yyfequal(__yy__v1308.gmlkicking,2)){__yy__v1308.gmlteam_score=__yy_gml_array_check(__yy__v1308.gmlteam_score, 1312652163);__yy__v1308.gmlteam_score[__yy_gml_array_check_index_set(__yy__v1308.gmlpossession)]=yyfplus(__yy__v1308.gmlteam_score[__yy_gml_array_check_index_set(__yy__v1308.gmlpossession)],1);}else {__yy__v1308.gmlteam_score=__yy_gml_array_check(__yy__v1308.gmlteam_score,1312652163);__yy__v1308.gmlteam_score[__yy_gml_array_check_index_set(__yy__v1308.gmlpossession)]=yyfplus(__yy__v1308.gmlteam_score[__yy_gml_array_check_index_set(__yy__v1308.gmlpossession)],3);};if(yyGetBool(__yy__v1308.gmlcollege_overtime)){ {gml_Script_s_college_overtime_handle_play_end(__yy__v1308,_inst);break;};}else {if((yyGetBool(yyfequal(__yy__v1308.gmlquarter,5)))&&(yyGetBool(yyfnotequal(__yy__v1308.gmlteam_score[__yy_gml_array_check_index(0,__yy__v1308.gmlteam_score)],__yy__v1308.gmlteam_score[__yy_gml_array_check_index(1,__yy__v1308.gmlteam_score)])))&&(yyGetBool(gml_Script_s_both_teams_had_possession(__yy__v1308,_inst)))){{if(yyfgreater(__yy__v1308.gmldrives,1)){{__yy__v1308.gmlcomm_stage=17;gml_Script_slog(__yy__v1308,_inst, "Overtime win 1");};}else {__yy__v1308.gmlcomm_stage=1;};};}else {__yy__v1308.gmlcomm_stage=1;};};break;}case 5:{if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice,1)){{gml_Script_s_set_up_practice(__yy__v1308,_inst);return;};};if(yyGetBool(__yy__v1308.gmlcollege_overtime)){{gml_Script_s_college_overtime_handle_play_end(__yy__v1308,_inst);break;};}else {if((yyGetBool(yyfequal(__yy__v1308.gmlquarter,5)))&&(yyGetBool(yyfnotequal(__yy__v1308.gmlteam_score[__yy_gml_array_check_index(0, __yy__v1308.gmlteam_score)],__yy__v1308.gmlteam_score[__yy_gml_array_check_index(1,__yy__v1308.gmlteam_score)])))&&(yyGetBool(gml_Script_s_both_teams_had_possession(__yy__v1308,_inst)))){{gml_Script_slog(__yy__v1308,_inst,"Overtime win 4");__yy__v1308.gmlcomm_stage=17;};}else {if(yyfequal(__yy__v1308.gmlkicking,2)){__yy__v1308.gmlcomm_stage=1;}else {gml_Script_s_change_possession(__yy__v1308,_inst);};};};gml_Script_s_change_wind(__yy__v1308,_inst);break;}case 6:{if(yyGetBool(__yy__v1308.gmlcollege_overtime)){ {gml_Script_s_college_overtime_handle_play_end(__yy__v1308,_inst);break;};}else {if((yyGetBool(yyfequal(__yy__v1308.gmlquarter,5)))&&(yyGetBool(yyfnotequal(__yy__v1308.gmlteam_score[__yy_gml_array_check_index(0,__yy__v1308.gmlteam_score)],__yy__v1308.gmlteam_score[__yy_gml_array_check_index(1,__yy__v1308.gmlteam_score)])))&&(yyGetBool(gml_Script_s_both_teams_had_possession(__yy__v1308,_inst)))){{__yy__v1308.gmlcomm_stage=17;__yy__v1308.gmlteam_score=__yy_gml_array_check(__yy__v1308.gmlteam_score, 1312652163);__yy__v1308.gmlteam_score[__yy_gml_array_check_index_set(!yyGetBool(__yy__v1308.gmlpossession)?1:0)]=yyfplus(__yy__v1308.gmlteam_score[__yy_gml_array_check_index_set(!yyGetBool(__yy__v1308.gmlpossession)?1:0)],2);};}else {{__yy__v1308.gmlcomm_stage=1;__yy__v1308.gmlteam_score=__yy_gml_array_check(__yy__v1308.gmlteam_score,1312652163);__yy__v1308.gmlteam_score[__yy_gml_array_check_index_set(!yyGetBool(__yy__v1308.gmlpossession)?1:0)]=yyfplus(__yy__v1308.gmlteam_score[__yy_gml_array_check_index_set(!yyGetBool(__yy__v1308.gmlpossession)?1:0)], 2);};};};break;}case 7:{__yy__v1308.gmlcomm_stage=2;break;}case 8:{__yy__v1308.gmlcomm_stage=6;break;}case 9:{__yy__v1308.gmlcomm_stage=10;break;}};__yy__v1308.gmlstate=1;__yy__v1308.gmlcomm_proceed=true;if(yyfnotequal(argument0,9)){__yy__v1308.gmldown=1;};}}};}}function gml_GlobalScript_s_is_quarter_over(_inst,_other){(_inst.gmls_is_quarter_over=__yy_method(_inst,gml_Script_s_is_quarter_over));}function gml_Script_s_is_quarter_over(_inst,_other){{var gmltime_up=(yyGetBool(yyflessequal(yyInst(_inst,_other, YYASSET_REF(0x00000069)).gmlminutes,0)))&&(yyGetBool(yyflessequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlseconds,0)));if(yyGetBool(gmltime_up)){{gml_Script_slog(_inst,_other,yyfplus(yyfplus("is_quarter_over = YES (",__yy_gml_errCheck(gml_Script_s_get_string_commstage(_inst,_other,_inst.gmlcomm_stage))),")"));_inst.gmlcomm_next_stage=_inst.gmlcomm_stage;_inst.gmlcomm_stage=12;if(yyfless(_inst.gmlquarter,5)){_inst.gmldrives=0;};return true;};};gml_Script_slog(_inst,_other,yyfplus(yyfplus("is_quarter_over = NO (", __yy_gml_errCheck(gml_Script_s_get_string_commstage(_inst,_other,_inst.gmlcomm_stage))),")"));return false;}}function gml_GlobalScript_s_is_on_pitch(_inst,_other,argument0){(_inst.gmls_is_on_pitch=__yy_method(_inst,gml_Script_s_is_on_pitch));}function gml_Script_s_is_on_pitch(_inst,_other,argument0){{var gmlinclude_endzone=argument0;if(yyfless(_inst.y,132)){return false;};if(yyfgreater(_inst.y,468)){return false;};if((yyGetBool(yyfgreater(_inst.x,300)))&&(yyGetBool(yyfless(_inst.x,2300)))){return true; };if(yyGetBool(gmlinclude_endzone)){{if((yyGetBool(yyfgreater(_inst.x,90)))&&(yyGetBool(yyfless(_inst.x,2510)))){return true;};};};return false;}}function gml_GlobalScript__poki_is_mobile(_inst,_other){(_inst.gml_poki_is_mobile=__yy_method(_inst,gml_Script__poki_is_mobile));}function gml_Script__poki_is_mobile(_inst,_other){{gml_Script_slog(_inst,_other,"_poki_is_mobile");if((yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),4)))||(yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),3)))){return true;};return false; }}function gml_GlobalScript_s_is_on_pitch_xy(_inst,_other,argument0,argument1,argument2){(_inst.gmls_is_on_pitch_xy=__yy_method(_inst,gml_Script_s_is_on_pitch_xy));}function gml_Script_s_is_on_pitch_xy(_inst,_other,argument0,argument1,argument2){{var gmlcx=argument0;var gmlcy=argument1;var gmlinclude_endzone=argument2;if(yyfless(gmlcy,132)){return false;};if(yyfgreater(gmlcy,468)){return false;};if((yyGetBool(yyfgreater(gmlcx,300)))&&(yyGetBool(yyfless(gmlcx,2300)))){return true;};if(yyGetBool(gmlinclude_endzone)){ {if((yyGetBool(yyfgreater(gmlcx,90)))&&(yyGetBool(yyfless(gmlcx,2510)))){return true;};};};return false;}}function gml_GlobalScript_s_end_match(_inst,_other){(_inst.gmls_end_match=__yy_method(_inst,gml_Script_s_end_match));}function gml_Script_s_end_match(_inst,_other,argument0){{gml_Script_slog(_inst,_other,yyfplus("s_end_match:",__yy_gml_errCheck(string(argument0))));gml_Script__poki_gameplay_start(_inst,_other);audio_sound_gain(YYASSET_REF(0x02000014),0,3000);yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlcomm_stage=31; {var __yy__v1309=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1310 in __yy__v1309){if(!__yy__v1309.hasOwnProperty(__yy__v1310))continue;var __yy__v1311=__yy__v1309[__yy__v1310];{__yy__v1311.gmltscore=__yy_gml_array_check(__yy__v1311.gmltscore,3182469177);__yy__v1311.gmltscore[__yy_gml_array_check_index_set(0)]=yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_score[__yy_gml_array_check_index(0,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_score)];__yy__v1311.gmltscore[__yy_gml_array_check_index_set(1)]=yyInst(_inst, _other,YYASSET_REF(0x00000069)).gmlteam_score[__yy_gml_array_check_index(1,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_score)];if(yyGetBool(global.gmlexhibition)){{gml_Script_s_set_multicon_turn(__yy__v1311,_inst);gml_Script_exhibition_handle_exit_match(__yy__v1311,_inst);room_goto(YYASSET_REF(0x03000031));return;};};__yy__v1311.gmlroster=yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_roster[__yy_gml_array_check_index(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlhuman_team,yyInst(_inst, _other,YYASSET_REF(0x00000069)).gmlteam_roster)];gml_Script_slog_master_roster(__yy__v1311,_inst,"s_end_match");gml_Script_s_update_stats(__yy__v1311,_inst);gml_Script_s_match_rating_effect_on_morale(__yy__v1311,_inst);gml_Script_s_training_regime_effect_on_morale(__yy__v1311,_inst);if((yyGetBool(yyfequal(argument0,1)))&&(yyGetBool(!yyGetBool(gml_Script_s_simming_action(__yy__v1311,_inst))))){{if(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlstarqb)){gml_Script_s_complete_achievement(__yy__v1311, _inst,"ACH_WIN_NOSTARQB");};if(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlstarplayer)){gml_Script_s_complete_achievement(__yy__v1311,_inst,"ACH_WIN_NOSTAR");};};};var gmltmap1=yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam[__yy_gml_array_check_index(0,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam)];var gmltmap2=yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam[__yy_gml_array_check_index(1,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam)];var gmlstr=yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmltmap1, "tla"))," "),__yy_gml_errCheck(string(__yy__v1311.gmltscore[__yy_gml_array_check_index(0,__yy__v1311.gmltscore)]))),"-"),__yy_gml_errCheck(string(__yy__v1311.gmltscore[__yy_gml_array_check_index(1,__yy__v1311.gmltscore)])))," "),__yy_gml_errCheck(ds_map_find_value(gmltmap2,"tla")));gml_Script_s_check_record_text(__yy__v1311,_inst,"ui_MostPointsGame",yyfplus(__yy_gml_errCheck(__yy__v1311.gmltscore[__yy_gml_array_check_index(0,__yy__v1311.gmltscore)]),__yy_gml_errCheck(__yy__v1311.gmltscore[__yy_gml_array_check_index(1, __yy__v1311.gmltscore)])),gmlstr);var gmldif=abs(yyfminus(__yy_gml_errCheck(__yy__v1311.gmltscore[__yy_gml_array_check_index(0,__yy__v1311.gmltscore)]),__yy_gml_errCheck(__yy__v1311.gmltscore[__yy_gml_array_check_index(1,__yy__v1311.gmltscore)])));var ___sw1268___=argument0;var ___swc1269___=-1;if(yyCompareVal(___sw1268___,(-1),g_GMLMathEpsilon,false)==0){___swc1269___=0;}else if(yyCompareVal(___sw1268___,1,g_GMLMathEpsilon,false)==0){___swc1269___=1;}switch(___swc1269___){case 0:{gml_Script_s_check_record_text(__yy__v1311, _inst,"ui_BiggestLoss",gmldif,gmlstr);break;}case 1:{gml_Script_s_check_record_text(__yy__v1311,_inst,"ui_BiggestWin",gmldif,gmlstr);if((yyGetBool(yyfequal(__yy__v1311.gmltscore[__yy_gml_array_check_index(0,__yy__v1311.gmltscore)],0)))||(yyGetBool(yyfequal(__yy__v1311.gmltscore[__yy_gml_array_check_index(1,__yy__v1311.gmltscore)],0)))){gml_Script_s_complete_achievement(__yy__v1311,_inst,"ACH_SHUTOUT");};break;}};if((yyGetBool(yyfgreaterequal(__yy__v1311.gmltscore[__yy_gml_array_check_index(yyInst(_inst, _other,YYASSET_REF(0x00000069)).gmlhuman_team,__yy__v1311.gmltscore)],50)))&&(yyGetBool(!yyGetBool(gml_Script_s_simming_action(__yy__v1311,_inst))))){gml_Script_s_complete_achievement(__yy__v1311,_inst,"ACH_SCORE50");};var gmltds=yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmltouchdowns;gml_Script_s_check_record_text(__yy__v1311,_inst,"ui_MostTDsGame",gmltds,yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gmlstr)," ("),__yy_gml_errCheck(string(gmltds))),")"));var gmlfixture=gml_Script_s_get_human_fixture_by_week(__yy__v1311, _inst,__yy__v1311.gmlweek);if(yyGetBool(gml_Script_s_simming_action(__yy__v1311,_inst))){{var ___sw1270___=__yy__v1311.gmlop_difficulty;var ___swc1271___=-1;if(yyCompareVal(___sw1270___,0,g_GMLMathEpsilon,false)==0){___swc1271___=0;}else if(yyCompareVal(___sw1270___,1,g_GMLMathEpsilon,false)==0){___swc1271___=1;}else if(yyCompareVal(___sw1270___,2,g_GMLMathEpsilon,false)==0){___swc1271___=2;}else if(yyCompareVal(___sw1270___,3,g_GMLMathEpsilon,false)==0){___swc1271___=3;}else if(yyCompareVal(___sw1270___, 4,g_GMLMathEpsilon,false)==0){___swc1271___=4;}switch(___swc1271___){case 0:{ds_map_set(gmlfixture,"difficulty",yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(__yy__v1311,_inst,"ui_Sim"))," "),__yy_gml_errCheck(string(yyfminus(16,__yy_gml_errCheck(yyfplus(5,__yy_gml_errCheck(__yy__v1311.gmlsuppress_difficulty))))))));break;}case 1:{ds_map_set(gmlfixture,"difficulty",yyfplus(__yy_gml_errCheck(gml_Script_s_str(__yy__v1311,_inst,"ui_Sim"))," E"));break;}case 2:{ds_map_set(gmlfixture,"difficulty",yyfplus(__yy_gml_errCheck(gml_Script_s_str(__yy__v1311, _inst,"ui_Sim"))," M"));break;}case 3:{ds_map_set(gmlfixture,"difficulty",yyfplus(__yy_gml_errCheck(gml_Script_s_str(__yy__v1311,_inst,"ui_Sim"))," H"));break;}case 4:{ds_map_set(gmlfixture,"difficulty",yyfplus(__yy_gml_errCheck(gml_Script_s_str(__yy__v1311,_inst,"ui_Sim"))," X"));break;}};};}else {{var ___sw1272___=__yy__v1311.gmlop_difficulty;var ___swc1273___=-1;if(yyCompareVal(___sw1272___,0,g_GMLMathEpsilon,false)==0){___swc1273___=0;}else if(yyCompareVal(___sw1272___,1,g_GMLMathEpsilon,false)==0){ ___swc1273___=1;}else if(yyCompareVal(___sw1272___,2,g_GMLMathEpsilon,false)==0){___swc1273___=2;}else if(yyCompareVal(___sw1272___,3,g_GMLMathEpsilon,false)==0){___swc1273___=3;}else if(yyCompareVal(___sw1272___,4,g_GMLMathEpsilon,false)==0){___swc1273___=4;}switch(___swc1273___){case 0:{ds_map_set(gmlfixture,"difficulty",yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(__yy__v1311,_inst,"ui_Dynamic"))," "),__yy_gml_errCheck(string(yyfminus(16,__yy_gml_errCheck(yyfplus(5,__yy_gml_errCheck(__yy__v1311.gmlsuppress_difficulty)))))))); break;}case 1:{ds_map_set(gmlfixture,"difficulty",gml_Script_s_str(__yy__v1311,_inst,"ui_Easy"));break;}case 2:{ds_map_set(gmlfixture,"difficulty",gml_Script_s_str(__yy__v1311,_inst,"ui_Medium"));break;}case 3:{ds_map_set(gmlfixture,"difficulty",gml_Script_s_str(__yy__v1311,_inst,"ui_Hard"));break;}case 4:{ds_map_set(gmlfixture,"difficulty",gml_Script_s_str(__yy__v1311,_inst,"ui_Extreme"));break;}};};};ds_map_set(gmlfixture,"op_matchlength",yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_matchlength); ds_map_set(gmlfixture,"away_score",__yy__v1311.gmltscore[__yy_gml_array_check_index(0,__yy__v1311.gmltscore)]);ds_map_set(gmlfixture,"home_score",__yy__v1311.gmltscore[__yy_gml_array_check_index(1,__yy__v1311.gmltscore)]);if(yyfequal(__yy__v1311.gmlweek,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular)){{gml_Script_slog(__yy__v1311,_inst,yyfplus("End of regular season. My rating was ",__yy_gml_errCheck(string(__yy__v1311.gmlcoach_rating))));if(yyfequal(gml_Script_s_get_division_winner(__yy__v1311, _inst,__yy__v1311.gmlmyconference,__yy__v1311.gmlmydivision),__yy__v1311.gmlmyteam)){{gml_Script_slog(__yy__v1311,_inst,"Divisional winner!");gml_Script_s_complete_achievement(__yy__v1311,_inst,"ACH_WIN_DIVISION");};};if(yyfequal(gml_Script_s_get_team_id_by_seed(__yy__v1311,_inst,__yy__v1311.gmlmyconference,1),__yy__v1311.gmlmyteam_id)){{__yy__v1311.gmlcoach_rating=yyfplus(__yy__v1311.gmlcoach_rating,4);gml_Script_slog(__yy__v1311,_inst,yyfplus("1st seed. My rating is now ",__yy_gml_errCheck(string(__yy__v1311.gmlcoach_rating)))); };}else {if(yyfequal(gml_Script_s_get_team_id_by_seed(__yy__v1311,_inst,__yy__v1311.gmlmyconference,2),__yy__v1311.gmlmyteam_id)){{__yy__v1311.gmlcoach_rating=yyfplus(__yy__v1311.gmlcoach_rating,3);gml_Script_slog(__yy__v1311,_inst,yyfplus("2nd seed. My rating is now ",__yy_gml_errCheck(string(__yy__v1311.gmlcoach_rating))));};}else {if(yyfequal(gml_Script_s_get_team_id_by_seed(__yy__v1311,_inst,__yy__v1311.gmlmyconference,3),__yy__v1311.gmlmyteam_id)){{__yy__v1311.gmlcoach_rating=yyfplus(__yy__v1311.gmlcoach_rating, 2);gml_Script_slog(__yy__v1311,_inst,yyfplus("3rd seed. My rating is now ",__yy_gml_errCheck(string(__yy__v1311.gmlcoach_rating))));};}else {if(yyfequal(gml_Script_s_get_team_id_by_seed(__yy__v1311,_inst,__yy__v1311.gmlmyconference,4),__yy__v1311.gmlmyteam_id)){{gml_Script_slog(__yy__v1311,_inst,yyfplus("4th seed. My rating is now ",__yy_gml_errCheck(string(__yy__v1311.gmlcoach_rating))));};}else {{__yy__v1311.gmlcoach_rating=round(yyftime(__yy_gml_errCheck(__yy__v1311.gmlcoach_rating),0.5));gml_Script_slog(__yy__v1311, _inst,yyfplus("Unseeded. My rating is now ",__yy_gml_errCheck(string(__yy__v1311.gmlcoach_rating))));};};};};};};};gml_Script_s_complete_achievement(__yy__v1311,_inst,"ACH_PLAYGAME1");(g_yyPrePostObject__=__yy__v1311.gmlmatchcount,__yy__v1311.gmlmatchcount=(g_yyPrePostObject__ instanceof Long?__yy__v1311.gmlmatchcount.add(1):++__yy__v1311.gmlmatchcount),g_yyPrePostObject__);var ___sw1274___=argument0;var ___swc1275___=-1;if(yyCompareVal(___sw1274___,(-1),g_GMLMathEpsilon,false)==0){___swc1275___=0;} else if(yyCompareVal(___sw1274___,0,g_GMLMathEpsilon,false)==0){___swc1275___=1;}else if(yyCompareVal(___sw1274___,1,g_GMLMathEpsilon,false)==0){___swc1275___=2;}switch(___swc1275___){case 0:{ds_map_set(gmlfixture,"human_win","loss");__yy__v1311.gmlsuppress_difficulty=yyfplus(__yy__v1311.gmlsuppress_difficulty,1);if(yyfgreaterequal(__yy__v1311.gmlweek,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs)){gml_Script_s_update_history_playoffs(__yy__v1311,_inst,0);};if(yyGetBool(gml_Script_s_playoffs_12(__yy__v1311, _inst))){{if((yyGetBool(yyfgreaterequal(__yy__v1311.gmlweek,__yy__v1311.gmlfirst_week_playoffs)))&&(yyGetBool(yyflessequal(__yy__v1311.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1311.gmlfirst_week_playoffs),3))))){{__yy__v1311.gmlcoach_rating=yyfplus(__yy__v1311.gmlcoach_rating,3);gml_Script_slog(__yy__v1311,_inst,yyfplus("Out in wild card round. My rating is now ",__yy_gml_errCheck(string(__yy__v1311.gmlcoach_rating))));gml_Script_s_update_history_finish(__yy__v1311,_inst,1);};}else {if((yyGetBool(yyfgreaterequal(__yy__v1311.gmlweek, yyfplus(__yy_gml_errCheck(__yy__v1311.gmlfirst_week_playoffs),4))))&&(yyGetBool(yyflessequal(__yy__v1311.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1311.gmlfirst_week_playoffs),7))))){{__yy__v1311.gmlcoach_rating=yyfplus(__yy__v1311.gmlcoach_rating,4);gml_Script_slog(__yy__v1311,_inst,yyfplus("Out in divisional round. My rating is now ",__yy_gml_errCheck(string(__yy__v1311.gmlcoach_rating))));};}else {if((yyGetBool(yyfgreaterequal(__yy__v1311.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1311.gmlfirst_week_playoffs), 8))))&&(yyGetBool(yyflessequal(__yy__v1311.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1311.gmlfirst_week_playoffs),9))))){{__yy__v1311.gmlcoach_rating=yyfplus(__yy__v1311.gmlcoach_rating,5);gml_Script_slog(__yy__v1311,_inst,yyfplus("Out in wild championship round. My rating is now ",__yy_gml_errCheck(string(__yy__v1311.gmlcoach_rating))));};}else {if(yyfequal(__yy__v1311.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1311.gmlfirst_week_playoffs),10))){{__yy__v1311.gmlcoach_rating=yyfplus(__yy__v1311.gmlcoach_rating, 6);gml_Script_slog(__yy__v1311,_inst,yyfplus("Lost the superbowl. My rating is now ",__yy_gml_errCheck(string(__yy__v1311.gmlcoach_rating))));};};};};};};}else {{if((yyGetBool(yyfgreaterequal(__yy__v1311.gmlweek,__yy__v1311.gmlfirst_week_playoffs)))&&(yyGetBool(yyflessequal(__yy__v1311.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1311.gmlfirst_week_playoffs),5))))){{__yy__v1311.gmlcoach_rating=yyfplus(__yy__v1311.gmlcoach_rating,3);gml_Script_slog(__yy__v1311,_inst,yyfplus("Out in wild card round. My rating is now ", __yy_gml_errCheck(string(__yy__v1311.gmlcoach_rating))));gml_Script_s_update_history_finish(__yy__v1311,_inst,1);};}else {if((yyGetBool(yyfgreaterequal(__yy__v1311.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1311.gmlfirst_week_playoffs),6))))&&(yyGetBool(yyflessequal(__yy__v1311.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1311.gmlfirst_week_playoffs),9))))){{__yy__v1311.gmlcoach_rating=yyfplus(__yy__v1311.gmlcoach_rating,4);gml_Script_slog(__yy__v1311,_inst,yyfplus("Out in divisional round. My rating is now ", __yy_gml_errCheck(string(__yy__v1311.gmlcoach_rating))));};}else {if((yyGetBool(yyfgreaterequal(__yy__v1311.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1311.gmlfirst_week_playoffs),10))))&&(yyGetBool(yyflessequal(__yy__v1311.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1311.gmlfirst_week_playoffs),11))))){{__yy__v1311.gmlcoach_rating=yyfplus(__yy__v1311.gmlcoach_rating,5);gml_Script_slog(__yy__v1311,_inst,yyfplus("Out in wild championship round. My rating is now ",__yy_gml_errCheck(string(__yy__v1311.gmlcoach_rating)))); };}else {if(yyfequal(__yy__v1311.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1311.gmlfirst_week_playoffs),12))){{__yy__v1311.gmlcoach_rating=yyfplus(__yy__v1311.gmlcoach_rating,6);gml_Script_slog(__yy__v1311,_inst,yyfplus("Lost the superbowl. My rating is now ",__yy_gml_errCheck(string(__yy__v1311.gmlcoach_rating))));};};};};};};};break;}case 1:{ds_map_set(gmlfixture,"human_win","tie");break;}case 2:{if(yyGetBool(global.gmlpoki)){poki_happy_time(1);};ds_map_set(gmlfixture,"human_win","win");__yy__v1311.gmlsuppress_difficulty=yyfminus(__yy__v1311.gmlsuppress_difficulty, 1);if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_score[__yy_gml_array_check_index(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlhuman_team,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_score)],yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_score[__yy_gml_array_check_index(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlhuman_team)?1:0,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_score)]),14))){__yy__v1311.gmlsuppress_difficulty=yyfminus(__yy__v1311.gmlsuppress_difficulty, 1);};gml_Script_s_complete_achievement(__yy__v1311,_inst,"ACH_WIN1");var gmlcount=gml_Script_s_count_achievement(__yy__v1311,_inst,"ACH_WIN1");if(yyfgreaterequal(gmlcount,5)){gml_Script_s_complete_achievement(__yy__v1311,_inst,"ACH_WIN5");};if(yyfgreaterequal(gmlcount,10)){gml_Script_s_complete_achievement(__yy__v1311,_inst,"ACH_WIN10");};if(yyfgreaterequal(gmlcount,25)){gml_Script_s_complete_achievement(__yy__v1311,_inst,"ACH_WIN25");};if(yyfgreaterequal(gmlcount,50)){gml_Script_s_complete_achievement(__yy__v1311, _inst,"ACH_WIN50");};if(yyfgreaterequal(gmlcount,100)){gml_Script_s_complete_achievement(__yy__v1311,_inst,"ACH_WIN100");};if(yyfgreaterequal(__yy__v1311.gmlweek,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs)){gml_Script_s_update_history_playoffs(__yy__v1311,_inst,1);};if(yyGetBool(gml_Script_s_playoffs_12(__yy__v1311,_inst))){{if((yyGetBool(yyfgreaterequal(__yy__v1311.gmlweek,__yy__v1311.gmlfirst_week_playoffs)))&&(yyGetBool(yyflessequal(__yy__v1311.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1311.gmlfirst_week_playoffs), 3))))){{gml_Script_s_complete_achievement(__yy__v1311,_inst,"ACH_WIN_PLAYOFF");gml_Script_s_update_history_finish(__yy__v1311,_inst,2);};}else {if((yyGetBool(yyfgreaterequal(__yy__v1311.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1311.gmlfirst_week_playoffs),4))))&&(yyGetBool(yyflessequal(__yy__v1311.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1311.gmlfirst_week_playoffs),7))))){{gml_Script_s_complete_achievement(__yy__v1311,_inst,"ACH_WIN_PLAYOFF");gml_Script_s_update_history_finish(__yy__v1311,_inst, 3);};}else {if((yyGetBool(yyfgreaterequal(__yy__v1311.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1311.gmlfirst_week_playoffs),8))))&&(yyGetBool(yyflessequal(__yy__v1311.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1311.gmlfirst_week_playoffs),9))))){{var ___sw1276___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyconference;var ___swc1277___=-1;if(yyCompareVal(___sw1276___,0,g_GMLMathEpsilon,false)==0){___swc1277___=0;}else if(yyCompareVal(___sw1276___,1,g_GMLMathEpsilon,false)==0){___swc1277___=1;}switch(___swc1277___){ case 0:{gml_Script_s_complete_achievement(__yy__v1311,_inst,"ACH_WIN_AFC");break;}case 1:{gml_Script_s_complete_achievement(__yy__v1311,_inst,"ACH_WIN_NFC");break;}};gml_Script_s_update_history_finish(__yy__v1311,_inst,4);};}else {if(yyfequal(__yy__v1311.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1311.gmlfirst_week_playoffs),10))){{__yy__v1311.gmlcoach_rating=yyfplus(__yy__v1311.gmlcoach_rating,8);gml_Script_slog(__yy__v1311,_inst,yyfplus("Won the superbowl! My rating is now ",__yy_gml_errCheck(string(__yy__v1311.gmlcoach_rating)))); gml_Script_s_update_history_finish(__yy__v1311,_inst,5);gml_Script_s_complete_achievement(__yy__v1311,_inst,"ACH_WIN_RETROBOWL1");var gmlcount=gml_Script_s_count_achievement(__yy__v1311,_inst,"ACH_WIN_RETROBOWL1");if(yyfequal(gmlcount,3)){gml_Script_s_complete_achievement(__yy__v1311,_inst,"ACH_WIN_RETROBOWL3");};if(yyfequal(gmlcount,5)){gml_Script_s_complete_achievement(__yy__v1311,_inst,"ACH_WIN_RETROBOWL5");};if(yyfequal(gmlcount,10)){gml_Script_s_complete_achievement(__yy__v1311,_inst,"ACH_WIN_RETROBOWL10"); };if(!yyGetBool(gml_Script_s_simming_action(__yy__v1311,_inst))){{if(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlstarqb)){gml_Script_s_complete_achievement(__yy__v1311,_inst,"ACH_RETROBOWL_NOSTARQB");};if(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlstarplayer)){gml_Script_s_complete_achievement(__yy__v1311,_inst,"ACH_RETROBOWL_NOSTAR");};};};gml_Script_s_check_repeat_retrobowls(__yy__v1311,_inst);gml_Script_s_award_sb_rings(__yy__v1311,_inst);};};};};};};}else {{if((yyGetBool(yyfgreaterequal(__yy__v1311.gmlweek, __yy__v1311.gmlfirst_week_playoffs)))&&(yyGetBool(yyflessequal(__yy__v1311.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1311.gmlfirst_week_playoffs),5))))){{gml_Script_s_complete_achievement(__yy__v1311,_inst,"ACH_WIN_PLAYOFF");gml_Script_s_update_history_finish(__yy__v1311,_inst,2);};}else {if((yyGetBool(yyfgreaterequal(__yy__v1311.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1311.gmlfirst_week_playoffs),6))))&&(yyGetBool(yyflessequal(__yy__v1311.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1311.gmlfirst_week_playoffs), 9))))){{gml_Script_s_complete_achievement(__yy__v1311,_inst,"ACH_WIN_PLAYOFF");gml_Script_s_update_history_finish(__yy__v1311,_inst,3);};}else {if((yyGetBool(yyfgreaterequal(__yy__v1311.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1311.gmlfirst_week_playoffs),10))))&&(yyGetBool(yyflessequal(__yy__v1311.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1311.gmlfirst_week_playoffs),11))))){{var ___sw1278___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyconference;var ___swc1279___=-1;if(yyCompareVal(___sw1278___, 0,g_GMLMathEpsilon,false)==0){___swc1279___=0;}else if(yyCompareVal(___sw1278___,1,g_GMLMathEpsilon,false)==0){___swc1279___=1;}switch(___swc1279___){case 0:{gml_Script_s_complete_achievement(__yy__v1311,_inst,"ACH_WIN_AFC");break;}case 1:{gml_Script_s_complete_achievement(__yy__v1311,_inst,"ACH_WIN_NFC");break;}};gml_Script_s_update_history_finish(__yy__v1311,_inst,4);};}else {if(yyfequal(__yy__v1311.gmlweek,yyfplus(__yy_gml_errCheck(__yy__v1311.gmlfirst_week_playoffs),12))){{__yy__v1311.gmlcoach_rating=yyfplus(__yy__v1311.gmlcoach_rating, 8);gml_Script_slog(__yy__v1311,_inst,yyfplus("Won the superbowl! My rating is now ",__yy_gml_errCheck(string(__yy__v1311.gmlcoach_rating))));gml_Script_s_update_history_finish(__yy__v1311,_inst,5);gml_Script_s_complete_achievement(__yy__v1311,_inst,"ACH_WIN_RETROBOWL1");var gmlcount=gml_Script_s_count_achievement(__yy__v1311,_inst,"ACH_WIN_RETROBOWL1");if(yyfequal(gmlcount,3)){gml_Script_s_complete_achievement(__yy__v1311,_inst,"ACH_WIN_RETROBOWL3");};if(yyfequal(gmlcount,5)){gml_Script_s_complete_achievement(__yy__v1311, _inst,"ACH_WIN_RETROBOWL5");};if(yyfequal(gmlcount,10)){gml_Script_s_complete_achievement(__yy__v1311,_inst,"ACH_WIN_RETROBOWL10");};if(!yyGetBool(gml_Script_s_simming_action(__yy__v1311,_inst))){{if(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlstarqb)){gml_Script_s_complete_achievement(__yy__v1311,_inst,"ACH_RETROBOWL_NOSTARQB");};if(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlstarplayer)){gml_Script_s_complete_achievement(__yy__v1311,_inst,"ACH_RETROBOWL_NOSTAR");} ;};};gml_Script_s_check_repeat_retrobowls(__yy__v1311,_inst);gml_Script_s_award_sb_rings(__yy__v1311,_inst);};};};};};};};break;}};var gmlshow_comp_win_screen="none";var gmlcid=(-1);if(yyGetBool(gml_Script_s_is_co_mode(__yy__v1311,_inst))){{var gmlschedule_fix=gml_Script_s_get_player_schedule_fixture_by_week(__yy__v1311,_inst,__yy__v1311.gmlweek);gml_Script_slog_map(__yy__v1311,_inst,"FIXTURE:: ",gmlschedule_fix);if(yyfnotequal(gmlschedule_fix,(-4))){{gmlcid=ds_map_find_value(gmlschedule_fix,"cid"); if(yyGetBool(ds_map_exists(gmlschedule_fix,"notify"))){{gml_Script_slog(__yy__v1311,_inst,yyfplus(yyfplus("Fixture has notification request [",__yy_gml_errCheck(string(ds_map_find_value(gmlschedule_fix,"notify")))),"]"));gml_Script_s_handle_fixture_notification(__yy__v1311,_inst,gmlschedule_fix,ds_map_find_value(gmlfixture,"human_win"));};}else {{gml_Script_slog(__yy__v1311,_inst,"Fixture has no notification request");};};if(yyGetBool(ds_map_exists(gmlschedule_fix,"history_rec"))){{gml_Script_slog(__yy__v1311, _inst,yyfplus(yyfplus("Fixture has history record request [",__yy_gml_errCheck(string(ds_map_find_value(gmlschedule_fix,"history_rec")))),"]"));gml_Script_s_handle_fixture_history_record(__yy__v1311,_inst,gmlschedule_fix,ds_map_find_value(gmlfixture,"human_win"));};}else {{gml_Script_slog(__yy__v1311,_inst,"Fixture has no history record request");};};if(yyGetBool(ds_map_exists(gmlschedule_fix,"reward"))){{gml_Script_s_handle_fixture_reward(__yy__v1311,_inst,gmlschedule_fix,ds_map_find_value(gmlfixture, "human_win"));};};gmlshow_comp_win_screen=gml_Script_s_fixture_victory_screen(__yy__v1311,_inst,gmlschedule_fix,ds_map_find_value(gmlfixture,"human_win"));};};};};ds_map_set(gmlfixture,"weather",0);{var __yy__v1312=GetWithArray(YYASSET_REF(0x00000076));for(var __yy__v1313 in __yy__v1312){if(!__yy__v1312.hasOwnProperty(__yy__v1313))continue;var __yy__v1314=__yy__v1312[__yy__v1313];ds_map_set(gmlfixture,"weather",__yy__v1314.gmltype);}};__yy__v1311.gmlcoach_rating=clamp(__yy__v1311.gmlcoach_rating,1,20); if(yyfgreater(gml_Script_s_count_achievement(__yy__v1311,_inst,"ACH_WIN_RETROBOWL1"),0)){__yy__v1311.gmlsuppress_difficulty=clamp(__yy__v1311.gmlsuppress_difficulty,(-5),10);}else {__yy__v1311.gmlsuppress_difficulty=clamp(__yy__v1311.gmlsuppress_difficulty,(-1),10);};}}};gml_Script_s_save_backup(_inst,_other);gml_Script_s_update_music(_inst,_other);gml_Script_s_log_this_year_history(_inst,_other);if(yyfnotequal(gmlshow_comp_win_screen,"none")){{gml_Script_s_show_rm_winners(_inst,_other,0,gmlcid,gmlshow_comp_win_screen, "",kgml_Script_btn_click_Play1,true);};}else {{gml_Script_s_play(_inst,_other,1);};};}}function gml_GlobalScript_s_update_stats(_inst,_other){(_inst.gmls_update_stats=__yy_method(_inst,gml_Script_s_update_stats));}function gml_Script_s_update_stats(_inst,_other){{{var __yy__v1315=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1316 in __yy__v1315){if(!__yy__v1315.hasOwnProperty(__yy__v1316))continue;var __yy__v1317=__yy__v1315[__yy__v1316];{gml_Script_slog(__yy__v1317,_inst,"s_update_stats");ds_list_shuffle(__yy__v1317.gmlroster); var gmlinjury_done=false;var gmloc=gml_Script_s_get_staff(__yy__v1317,_inst,102);var gmldc=gml_Script_s_get_staff(__yy__v1317,_inst,101);if(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)){{ds_map_set(gmloc,"xp_gain",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmloc,"xp_gain")),__yy_gml_errCheck(clamp(round(yyftime(__yy_gml_errCheck(ds_map_find_value(gmloc,"attitude")),0.25)),1,25))));ds_map_set(gmldc,"xp_gain",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmldc,"xp_gain")),__yy_gml_errCheck(clamp(round(yyftime(__yy_gml_errCheck(ds_map_find_value(gmldc, "attitude")),0.25)),1,25))));};};var gmltotal_passing=0;var gmlqb_passing=0;var gmltotal_rushing=0;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1317.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1317.gmlroster,gmli);gml_Script_s_check_for_return_stats(__yy__v1317,_inst,gmlpmap);gml_Script_s_update_party_meter(__yy__v1317,_inst,gmlpmap);if(!yyGetBool(ds_map_exists(gmlpmap,"xp_dev"))){ds_map_set(gmlpmap, "xp_dev",random_range(0.75,1.5));};if((yyGetBool(yyfless(ds_map_find_value(gmlpmap,"condition"),0)))||(yyGetBool(gml_Script_s_player_benched(__yy__v1317,_inst,gmlpmap)))){continue;};if((yyGetBool(ds_map_exists(gmlpmap,"backup")))&&(yyGetBool(ds_map_find_value(gmlpmap,"backup")))&&(yyGetBool((yyGetBool(!yyGetBool(ds_map_exists(gmlpmap,"kr"))))||(yyGetBool(!yyGetBool(ds_map_find_value(gmlpmap,"kr"))))))){{ds_map_set(gmlpmap,"xp_gain",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"xp_gain")), __yy_gml_errCheck(round(yyftime(10,__yy_gml_errCheck(real(yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"xp_dev")),0.8))))))));continue;};};ds_map_set_post(gmlpmap,"season_games",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"season_games")),1));ds_map_set(gmlpmap,"season_attempts",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"season_attempts")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_attempts"))));ds_map_set(gmlpmap,"season_complete",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap, "season_complete")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_complete"))));ds_map_set(gmlpmap,"season_yards",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"season_yards")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_yards"))));ds_map_set(gmlpmap,"season_touchdowns",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"season_touchdowns")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_touchdowns"))));ds_map_set(gmlpmap,"season_fumbles",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap, "season_fumbles")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_fumbles"))));ds_map_set(gmlpmap,"season_int",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"season_int")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_int"))));ds_map_set(gmlpmap,"season_sacks",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"season_sacks")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_sacks"))));ds_map_set(gmlpmap,"season_tackles",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"season_tackles")), __yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_tackles"))));ds_map_set(gmlpmap,"season_rush_attempts",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"season_rush_attempts")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_rush_attempts"))));ds_map_set(gmlpmap,"season_rush_yards",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"season_rush_yards")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_rush_yards"))));ds_map_set(gmlpmap,"season_rush_touchdowns",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap, "season_rush_touchdowns")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_rush_touchdowns"))));ds_map_set(gmlpmap,"season_return_yards",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"season_return_yards")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_return_yards"))));ds_map_set(gmlpmap,"season_return_tds",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"season_return_tds")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_return_tds"))));ds_map_set(gmlpmap,"season_return_attempts", yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"season_return_attempts")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_return_attempts"))));if(yyfequal(ds_map_find_value(gmlpmap,"position"),10)){{if(yyGetBool(ds_map_exists(gmlpmap,"stat_attempts_XP"))){ds_map_set(gmlpmap,"season_attempts_XP",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"season_attempts_XP")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_attempts_XP"))));};if(yyGetBool(ds_map_exists(gmlpmap,"stat_complete_XP"))){ ds_map_set(gmlpmap,"season_complete_XP",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"season_complete_XP")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_complete_XP"))));};};};if(yyfequal(ds_map_find_value(gmlpmap,"position"),1)){gmlqb_passing=ds_map_find_value(gmlpmap,"stat_yards");}else {if(yyfnotequal(ds_map_find_value(gmlpmap,"position"),10)){gmltotal_passing=yyfplus(gmltotal_passing,ds_map_find_value(gmlpmap,"stat_yards"));};};gmltotal_rushing=yyfplus(gmltotal_rushing,ds_map_find_value(gmlpmap, "stat_rush_yards"));if(yyfgreater(ds_map_find_value(gmlpmap,"stat_longest"),ds_map_find_value(gmlpmap,"season_longest"))){ds_map_set(gmlpmap,"season_longest",ds_map_find_value(gmlpmap,"stat_longest"));};if(yyfgreater(ds_map_find_value(gmlpmap,"stat_rush_longest"),ds_map_find_value(gmlpmap,"season_rush_longest"))){ds_map_set(gmlpmap,"season_rush_longest",ds_map_find_value(gmlpmap,"stat_rush_longest"));};if(yyfgreater(ds_map_find_value(gmlpmap,"stat_return_longest"),ds_map_find_value(gmlpmap,"season_return_longest"))){ ds_map_set(gmlpmap,"season_return_longest",ds_map_find_value(gmlpmap,"stat_return_longest"));};ds_map_set_post(gmlpmap,"career_games",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"career_games")),1));ds_map_set(gmlpmap,"career_attempts",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"career_attempts")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_attempts"))));ds_map_set(gmlpmap,"career_complete",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"career_complete")),__yy_gml_errCheck(ds_map_find_value(gmlpmap, "stat_complete"))));ds_map_set(gmlpmap,"career_yards",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"career_yards")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_yards"))));ds_map_set(gmlpmap,"career_touchdowns",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"career_touchdowns")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_touchdowns"))));ds_map_set(gmlpmap,"career_fumbles",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"career_fumbles")),__yy_gml_errCheck(ds_map_find_value(gmlpmap, "stat_fumbles"))));ds_map_set(gmlpmap,"career_int",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"career_int")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_int"))));ds_map_set(gmlpmap,"career_sacks",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"career_sacks")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_sacks"))));ds_map_set(gmlpmap,"career_tackles",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"career_tackles")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_tackles")))); ds_map_set(gmlpmap,"career_rush_attempts",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"career_rush_attempts")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_rush_attempts"))));ds_map_set(gmlpmap,"career_rush_yards",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"career_rush_yards")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_rush_yards"))));ds_map_set(gmlpmap,"career_rush_touchdowns",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"career_rush_touchdowns")),__yy_gml_errCheck(ds_map_find_value(gmlpmap, "stat_rush_touchdowns"))));ds_map_set(gmlpmap,"career_return_yards",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"career_return_yards")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_return_yards"))));ds_map_set(gmlpmap,"career_return_tds",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"career_return_tds")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_return_tds"))));ds_map_set(gmlpmap,"career_return_attempts",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"career_return_attempts")), __yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_return_attempts"))));if(yyfequal(ds_map_find_value(gmlpmap,"position"),10)){{if(yyGetBool(ds_map_exists(gmlpmap,"stat_attempts_XP"))){ds_map_set(gmlpmap,"career_attempts_XP",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"career_attempts_XP")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_attempts_XP"))));};if(yyGetBool(ds_map_exists(gmlpmap,"stat_complete_XP"))){ds_map_set(gmlpmap,"career_complete_XP",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap, "career_complete_XP")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_complete_XP"))));};};};if(yyfgreater(ds_map_find_value(gmlpmap,"stat_longest"),ds_map_find_value(gmlpmap,"career_longest"))){ds_map_set(gmlpmap,"career_longest",ds_map_find_value(gmlpmap,"stat_longest"));};if(yyfgreater(ds_map_find_value(gmlpmap,"stat_rush_longest"),ds_map_find_value(gmlpmap,"career_rush_longest"))){ds_map_set(gmlpmap,"career_rush_longest",ds_map_find_value(gmlpmap,"stat_rush_longest"));};if(yyfgreater(ds_map_find_value(gmlpmap, "stat_return_longest"),ds_map_find_value(gmlpmap,"career_return_longest"))){ds_map_set(gmlpmap,"career_return_longest",ds_map_find_value(gmlpmap,"stat_return_longest"));};if(yyfequal(ds_map_find_value(gmlpmap,"position"),1)){{gml_Script_s_check_record(__yy__v1317,_inst,"ui_BestPassGame",ds_map_find_value(gmlpmap,"stat_yards"),gml_Script_s_get_player_name_for_record(__yy__v1317,_inst,gmlpmap),"",gml_Script_s_get_opponent_team_tla(__yy__v1317,_inst));gml_Script_s_check_record(__yy__v1317,_inst,"ui_BestPassSeason", ds_map_find_value(gmlpmap,"season_yards"),gml_Script_s_get_player_name_for_record(__yy__v1317,_inst,gmlpmap),"","");gml_Script_s_check_record(__yy__v1317,_inst,"ui_BestPassCareer",ds_map_find_value(gmlpmap,"career_yards"),gml_Script_s_get_player_name_for_record(__yy__v1317,_inst,gmlpmap),"","");gml_Script_s_check_record(__yy__v1317,_inst,"ui_MostTDPassesGame",ds_map_find_value(gmlpmap,"stat_touchdowns"),gml_Script_s_get_player_name_for_record(__yy__v1317,_inst,gmlpmap),"",gml_Script_s_get_opponent_team_tla(__yy__v1317, _inst));gml_Script_s_check_record(__yy__v1317,_inst,"ui_MostTDPassesSeason",ds_map_find_value(gmlpmap,"season_touchdowns"),gml_Script_s_get_player_name_for_record(__yy__v1317,_inst,gmlpmap),"","");gml_Script_s_check_record(__yy__v1317,_inst,"ui_MostTDPassesCareer",ds_map_find_value(gmlpmap,"career_touchdowns"),gml_Script_s_get_player_name_for_record(__yy__v1317,_inst,gmlpmap),"","");if(!yyGetBool(gml_Script_s_simming_action(__yy__v1317,_inst))){{if(yyfgreater(ds_map_find_value(gmlpmap,"season_touchdowns"), 50)){gml_Script_s_complete_achievement(__yy__v1317,_inst,"ACH_TD_PASS50");};if((yyGetBool(yyfgreater(ds_map_find_value(gmlpmap,"stat_attempts"),0)))&&(yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"stat_attempts"),ds_map_find_value(gmlpmap,"stat_complete"))))){gml_Script_s_complete_achievement(__yy__v1317,_inst,"ACH_GAME_COMPLETE_100");};};};};}else {if(yyfequal(ds_map_find_value(gmlpmap,"position"),10)){{gml_Script_s_check_record(__yy__v1317,_inst,"ui_BestFGDistGame",ds_map_find_value(gmlpmap,"stat_yards"), gml_Script_s_get_player_name_for_record(__yy__v1317,_inst,gmlpmap),"",gml_Script_s_get_opponent_team_tla(__yy__v1317,_inst));gml_Script_s_check_record(__yy__v1317,_inst,"ui_BestFGDistSeason",ds_map_find_value(gmlpmap,"season_yards"),gml_Script_s_get_player_name_for_record(__yy__v1317,_inst,gmlpmap),"","");gml_Script_s_check_record(__yy__v1317,_inst,"ui_BestFGDistCareer",ds_map_find_value(gmlpmap,"career_yards"),gml_Script_s_get_player_name_for_record(__yy__v1317,_inst,gmlpmap),"","");gml_Script_s_check_record(__yy__v1317, _inst,"ui_MostFGGame",ds_map_find_value(gmlpmap,"stat_complete"),gml_Script_s_get_player_name_for_record(__yy__v1317,_inst,gmlpmap),"",gml_Script_s_get_opponent_team_tla(__yy__v1317,_inst));gml_Script_s_check_record(__yy__v1317,_inst,"ui_MostFGSeason",ds_map_find_value(gmlpmap,"season_complete"),gml_Script_s_get_player_name_for_record(__yy__v1317,_inst,gmlpmap),"","");gml_Script_s_check_record(__yy__v1317,_inst,"ui_MostFGCareer",ds_map_find_value(gmlpmap,"career_complete"),gml_Script_s_get_player_name_for_record(__yy__v1317, _inst,gmlpmap),"","");};}else {if((yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"position"),4)))||(yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"position"),3)))||(yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"position"),2)))){{gml_Script_s_check_record(__yy__v1317,_inst,"ui_BestRecGame",ds_map_find_value(gmlpmap,"stat_yards"),gml_Script_s_get_player_name_for_record(__yy__v1317,_inst,gmlpmap),"",gml_Script_s_get_opponent_team_tla(__yy__v1317,_inst));gml_Script_s_check_record(__yy__v1317,_inst,"ui_BestRecSeason", ds_map_find_value(gmlpmap,"season_yards"),gml_Script_s_get_player_name_for_record(__yy__v1317,_inst,gmlpmap),"","");gml_Script_s_check_record(__yy__v1317,_inst,"ui_BestRecCareer",ds_map_find_value(gmlpmap,"career_yards"),gml_Script_s_get_player_name_for_record(__yy__v1317,_inst,gmlpmap),"","");gml_Script_s_check_record(__yy__v1317,_inst,"ui_MostTDRecGame",ds_map_find_value(gmlpmap,"stat_touchdowns"),gml_Script_s_get_player_name_for_record(__yy__v1317,_inst,gmlpmap),"",gml_Script_s_get_opponent_team_tla(__yy__v1317, _inst));gml_Script_s_check_record(__yy__v1317,_inst,"ui_MostTDRecSeason",ds_map_find_value(gmlpmap,"season_touchdowns"),gml_Script_s_get_player_name_for_record(__yy__v1317,_inst,gmlpmap),"","");gml_Script_s_check_record(__yy__v1317,_inst,"ui_MostTDRecCareer",ds_map_find_value(gmlpmap,"career_touchdowns"),gml_Script_s_get_player_name_for_record(__yy__v1317,_inst,gmlpmap),"","");};}else {if(yyfnotequal(ds_map_find_value(gmlpmap,"position"),5)){{gml_Script_s_check_record(__yy__v1317,_inst,"ui_MostTacklesGame", ds_map_find_value(gmlpmap,"stat_tackles"),gml_Script_s_get_player_name_for_record(__yy__v1317,_inst,gmlpmap),"",gml_Script_s_get_opponent_team_tla(__yy__v1317,_inst));gml_Script_s_check_record(__yy__v1317,_inst,"ui_MostTacklesSeason",ds_map_find_value(gmlpmap,"season_tackles"),gml_Script_s_get_player_name_for_record(__yy__v1317,_inst,gmlpmap),"","");gml_Script_s_check_record(__yy__v1317,_inst,"ui_MostTacklesCareer",ds_map_find_value(gmlpmap,"career_tackles"),gml_Script_s_get_player_name_for_record(__yy__v1317, _inst,gmlpmap),"","");gml_Script_s_check_record(__yy__v1317,_inst,"ui_MostSacksGame",ds_map_find_value(gmlpmap,"stat_sacks"),gml_Script_s_get_player_name_for_record(__yy__v1317,_inst,gmlpmap),"",gml_Script_s_get_opponent_team_tla(__yy__v1317,_inst));gml_Script_s_check_record(__yy__v1317,_inst,"ui_MostSacksSeason",ds_map_find_value(gmlpmap,"season_sacks"),gml_Script_s_get_player_name_for_record(__yy__v1317,_inst,gmlpmap),"","");gml_Script_s_check_record(__yy__v1317,_inst,"ui_MostSacksCareer",ds_map_find_value(gmlpmap, "career_sacks"),gml_Script_s_get_player_name_for_record(__yy__v1317,_inst,gmlpmap),"","");gml_Script_s_check_record(__yy__v1317,_inst,"ui_MostIntGame",ds_map_find_value(gmlpmap,"stat_int"),gml_Script_s_get_player_name_for_record(__yy__v1317,_inst,gmlpmap),"",gml_Script_s_get_opponent_team_tla(__yy__v1317,_inst));gml_Script_s_check_record(__yy__v1317,_inst,"ui_MostIntSeason",ds_map_find_value(gmlpmap,"season_int"),gml_Script_s_get_player_name_for_record(__yy__v1317,_inst,gmlpmap),"","");gml_Script_s_check_record(__yy__v1317, _inst,"ui_MostIntCareer",ds_map_find_value(gmlpmap,"career_int"),gml_Script_s_get_player_name_for_record(__yy__v1317,_inst,gmlpmap),"","");gml_Script_s_check_record(__yy__v1317,_inst,"ui_MostFFGame",ds_map_find_value(gmlpmap,"stat_fumbles"),gml_Script_s_get_player_name_for_record(__yy__v1317,_inst,gmlpmap),"",gml_Script_s_get_opponent_team_tla(__yy__v1317,_inst));gml_Script_s_check_record(__yy__v1317,_inst,"ui_MostFFSeason",ds_map_find_value(gmlpmap,"season_fumbles"),gml_Script_s_get_player_name_for_record(__yy__v1317, _inst,gmlpmap),"","");gml_Script_s_check_record(__yy__v1317,_inst,"ui_MostFFCareer",ds_map_find_value(gmlpmap,"career_fumbles"),gml_Script_s_get_player_name_for_record(__yy__v1317,_inst,gmlpmap),"","");};}else {{};};};};};gml_Script_s_check_record(__yy__v1317,_inst,"ui_BestRushGame",ds_map_find_value(gmlpmap,"stat_rush_yards"),gml_Script_s_get_player_name_for_record(__yy__v1317,_inst,gmlpmap),"",gml_Script_s_get_opponent_team_tla(__yy__v1317,_inst));gml_Script_s_check_record(__yy__v1317,_inst,"ui_BestRushSeason", ds_map_find_value(gmlpmap,"season_rush_yards"),gml_Script_s_get_player_name_for_record(__yy__v1317,_inst,gmlpmap),"","");gml_Script_s_check_record(__yy__v1317,_inst,"ui_BestRushCareer",ds_map_find_value(gmlpmap,"career_rush_yards"),gml_Script_s_get_player_name_for_record(__yy__v1317,_inst,gmlpmap),"","");gml_Script_s_check_record(__yy__v1317,_inst,"ui_MostTDRushGame",ds_map_find_value(gmlpmap,"stat_rush_touchdowns"),gml_Script_s_get_player_name_for_record(__yy__v1317,_inst,gmlpmap),"",gml_Script_s_get_opponent_team_tla(__yy__v1317, _inst));gml_Script_s_check_record(__yy__v1317,_inst,"ui_MostTDRushSeason",ds_map_find_value(gmlpmap,"season_rush_touchdowns"),gml_Script_s_get_player_name_for_record(__yy__v1317,_inst,gmlpmap),"","");gml_Script_s_check_record(__yy__v1317,_inst,"ui_MostTDRushCareer",ds_map_find_value(gmlpmap,"career_rush_touchdowns"),gml_Script_s_get_player_name_for_record(__yy__v1317,_inst,gmlpmap),"","");gml_Script_s_check_record(__yy__v1317,_inst,"ui_MostReturnYardsGame",ds_map_find_value(gmlpmap,"stat_return_yards"), gml_Script_s_get_player_name_for_record(__yy__v1317,_inst,gmlpmap),"",gml_Script_s_get_opponent_team_tla(__yy__v1317,_inst));gml_Script_s_check_record(__yy__v1317,_inst,"ui_MostReturnYardsSeason",ds_map_find_value(gmlpmap,"season_return_yards"),gml_Script_s_get_player_name_for_record(__yy__v1317,_inst,gmlpmap),"","");gml_Script_s_check_record(__yy__v1317,_inst,"ui_MostReturnYardsCareer",ds_map_find_value(gmlpmap,"career_return_yards"),gml_Script_s_get_player_name_for_record(__yy__v1317,_inst,gmlpmap), "","");var gmlxp_lev=ds_map_find_value(gmlpmap,"xp_level");var gmlxp_g=yyftime(__yy_gml_errCheck(__yy__v1317.gmlfacility_training),2);var gmleffort=0;var ___sw1282___=ds_map_find_value(gmlpmap,"position");var ___swc1283___=-1;if(yyCompareVal(___sw1282___,1,g_GMLMathEpsilon,false)==0){___swc1283___=0;}else if(yyCompareVal(___sw1282___,2,g_GMLMathEpsilon,false)==0){___swc1283___=1;}else if(yyCompareVal(___sw1282___,4,g_GMLMathEpsilon,false)==0){___swc1283___=2;}else if(yyCompareVal(___sw1282___,3,g_GMLMathEpsilon, false)==0){___swc1283___=3;}else if(yyCompareVal(___sw1282___,10,g_GMLMathEpsilon,false)==0){___swc1283___=4;}else if(yyCompareVal(___sw1282___,5,g_GMLMathEpsilon,false)==0){___swc1283___=5;}switch(___swc1283___){case 0:{gmlxp_g=yyfplus(gmlxp_g,yyftime(yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_touchdowns")),5),0.5));gmlxp_g=yyfplus(gmlxp_g,yyftime(yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_rush_touchdowns")),5),0.5));gmlxp_g=yyfplus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap, "stat_yards")),0.1));gmlxp_g=yyfplus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_rush_yards")),0.1));gmlxp_g=yyfminus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_fumbles")),5));gmlxp_g=yyfminus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_int")),2.5));gmlxp_g=yyfminus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_sacks")),2.5));gmleffort=clamp(yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap, "stat_yards")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_yards")))),100),0,10);gmleffort=yyfplus(gmleffort,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_sacks")),2));break;}case 1:{gmlxp_g=yyfplus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_touchdowns")),5));gmlxp_g=yyfplus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_return_tds")),5));gmlxp_g=yyfplus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_rush_touchdowns")), 5));gmlxp_g=yyfplus(gmlxp_g,yyftime(yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_rush_yards")),0.1),3));gmlxp_g=yyfplus(gmlxp_g,yyftime(yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_yards")),0.1),2.5));gmlxp_g=yyfminus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_fumbles")),5));gmlxp_g=yyfplus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_return_yards")),0.1));gmleffort=clamp(yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap, "stat_yards")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_yards")))),50),0,10);break;}case 2:{gmlxp_g=yyfplus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_tackles")),5));gmlxp_g=yyfplus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_touchdowns")),5));gmlxp_g=yyfplus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_return_tds")),5));gmlxp_g=yyfplus(gmlxp_g,yyftime(yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_yards")),0.1), 2));gmlxp_g=yyfminus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_fumbles")),5));gmlxp_g=yyfplus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_return_yards")),0.1));gmleffort=clamp(yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_yards")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_yards")))),50),0,10);break;}case 3:{gmlxp_g=yyfplus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_tackles")),5));gmlxp_g=yyfplus(gmlxp_g, yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_touchdowns")),5));gmlxp_g=yyfplus(gmlxp_g,yyftime(yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_yards")),0.1),3));gmlxp_g=yyfminus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_fumbles")),5));gmleffort=clamp(yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_yards")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_yards")))),25),0,10);break;}case 4:{gmlxp_g=yyfplus(gmlxp_g, yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_yards")),0.4));gmleffort=clamp(yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_yards")),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_yards")))),50),0,10);break;}case 5:{gmlxp_g=yyfplus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_tackles")),5));gmlxp_g=yyfminus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_sacks")),2.5));gmleffort=yyfplus(gmleffort,ds_map_find_value(gmlpmap, "stat_tackles"));break;}default :{gmlxp_g=yyfplus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_tackles")),5));gmlxp_g=yyfplus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_fumbles")),5));gmlxp_g=yyfplus(gmlxp_g,yyftime(yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_sacks")),2.5),2));gmlxp_g=yyfplus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_return_yards")),0.1));gmlxp_g=yyfplus(gmlxp_g,yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap, "stat_return_tds")),5));gmleffort=yyfplus(gmleffort,ds_map_find_value(gmlpmap,"stat_tackles"));break;}};if((yyGetBool(yyfequal(ds_map_find_value(gmloc,"trait"),7)))&&(yyGetBool(gml_Script_s_is_offensive_player(__yy__v1317,_inst,gmlpmap)))){gmlxp_g=yyfplus(gmlxp_g,yyftime(__yy_gml_errCheck(gmlxp_lev),5));}else {if((yyGetBool(yyfequal(ds_map_find_value(gmldc,"trait"),7)))&&(yyGetBool(!yyGetBool(gml_Script_s_is_offensive_player(__yy__v1317,_inst,gmlpmap))))){gmlxp_g=yyfplus(gmlxp_g,yyftime(__yy_gml_errCheck(gmlxp_lev), 5));};};var gmltrainingreg=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltraining_reg_df;if(yyGetBool(gml_Script_s_is_offensive_player(__yy__v1317,_inst,gmlpmap))){gmltrainingreg=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltraining_reg_of;};if(yyfequal(gmltrainingreg,1)){gmlxp_g=yyftime(gmlxp_g,0.6);}else {if(yyfequal(gmltrainingreg,3)){gmlxp_g=yyftime(gmlxp_g,1.5);};};gmlxp_g=yyftime(gmlxp_g,real(ds_map_find_value(gmlpmap,"xp_dev")));gmlxp_g=yyftime(gmlxp_g,0.8);gmlxp_g=clamp(gmlxp_g,0,yyftime(__yy_gml_errCheck(gmlxp_lev), 200));ds_map_set(gmlpmap,"xp_gain",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"xp_gain")),__yy_gml_errCheck(round(gmlxp_g))));gmleffort=yyfplus(25,__yy_gml_errCheck(real(ds_map_find_value(gmlpmap,"age"))));gmleffort=yyfplus(gmleffort,clamp(round(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek),0.6)),2,10));gmleffort=yyfplus(gmleffort,gml_Script_s_get_match_rating(__yy__v1317,_inst,gmlpmap));if(yyfequal(ds_map_find_value(gmlpmap,"position"),10)){gmleffort=yyftime(gmleffort, 0.5);};ds_map_set(gmlpmap,"condition",clamp(round(yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"condition")),__yy_gml_errCheck(gmleffort))),1,100));if((yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"position"),10)))&&(yyGetBool(yyfless(ds_map_find_value(gmlpmap,"stat_attempts"),1)))){continue;};if(!yyGetBool(gmlinjury_done)){gmlinjury_done=gml_Script_s_check_for_injury(__yy__v1317,_inst,gmlpmap);};}};if(!yyGetBool(gml_Script_s_simming_action(__yy__v1317,_inst))){{if(yyfgreaterequal(gmlqb_passing, 200)){gml_Script_s_complete_achievement(__yy__v1317,_inst,"ACH_GAME_PASS_200");};if(yyfgreaterequal(gmlqb_passing,300)){gml_Script_s_complete_achievement(__yy__v1317,_inst,"ACH_GAME_PASS_300");};if(yyfgreaterequal(gmlqb_passing,400)){gml_Script_s_complete_achievement(__yy__v1317,_inst,"ACH_GAME_PASS_400");};if(yyfgreaterequal(gmlqb_passing,500)){gml_Script_s_complete_achievement(__yy__v1317,_inst,"ACH_GAME_PASS_500");};if(yyfgreaterequal(gmltotal_passing,200)){gml_Script_s_complete_achievement(__yy__v1317, _inst,"ACH_GAME_PASS_200");};if(yyfgreaterequal(gmltotal_passing,300)){gml_Script_s_complete_achievement(__yy__v1317,_inst,"ACH_GAME_PASS_300");};if(yyfgreaterequal(gmltotal_passing,400)){gml_Script_s_complete_achievement(__yy__v1317,_inst,"ACH_GAME_PASS_400");};if(yyfgreaterequal(gmltotal_passing,500)){gml_Script_s_complete_achievement(__yy__v1317,_inst,"ACH_GAME_PASS_500");};if(yyfgreaterequal(gmltotal_rushing,50)){gml_Script_s_complete_achievement(__yy__v1317,_inst,"ACH_GAME_RUSH_50");};if(yyfgreaterequal(gmltotal_rushing, 100)){gml_Script_s_complete_achievement(__yy__v1317,_inst,"ACH_GAME_RUSH_100");};if(yyfgreaterequal(gmltotal_rushing,150)){gml_Script_s_complete_achievement(__yy__v1317,_inst,"ACH_GAME_RUSH_150");};};};}}};}}function gml_GlobalScript_s_convert_scrimmage_to_goal_distance(_inst,_other){(_inst.gmls_convert_scrimmage_to_goal_distance=__yy_method(_inst,gml_Script_s_convert_scrimmage_to_goal_distance));}function gml_Script_s_convert_scrimmage_to_goal_distance(_inst,_other){{{var __yy__v1318=GetWithArray(YYASSET_REF(0x00000069)); for(var __yy__v1319 in __yy__v1318){if(!__yy__v1318.hasOwnProperty(__yy__v1319))continue;var __yy__v1320=__yy__v1318[__yy__v1319];return yyfplus(__yy_gml_errCheck(__yy_gml_errCheck(-__yy_gml_errCheck(__yy__v1320.gmlscrimmage))),50);}};}}function gml_GlobalScript_s_kick_off(_inst,_other){(_inst.gmls_kick_off=__yy_method(_inst,gml_Script_s_kick_off));}function gml_Script_s_kick_off(_inst,_other){{gml_Script_slog(_inst,_other,"s_kick_off");{var __yy__v1321=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v1322 in __yy__v1321){ if(!__yy__v1321.hasOwnProperty(__yy__v1322))continue;var __yy__v1323=__yy__v1321[__yy__v1322];{__yy__v1323.gmlcomm_txt=string_replace(gml_Script_s_str(__yy__v1323,_inst,"comm_stage_KickOff"),"$teamname",__yy__v1323.gmlteam_name[__yy_gml_array_check_index(__yy__v1323.gmlpossession,__yy__v1323.gmlteam_name)]);__yy__v1323.gmldown=1;__yy__v1323.gmlyards=10;__yy__v1323.gmlscrimmage=(-15);var gmlko=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_kickoffs");if(yyGetBool(global.gmlexhibition)){ gmlko=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"exh_op_kickoffs");};if((yyGetBool(gmlko))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)))&&(yyGetBool(!yyGetBool(gml_Script_s_simming_action(__yy__v1323,_inst))))&&(yyGetBool((yyGetBool(yyfnotequal(__yy__v1323.gmlpossession,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayerteamindex)))||(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayerteamindex,(-1))))))){ {__yy__v1323.gmldown=99;__yy__v1323.gmlstate=2;__yy__v1323.gmllast_play=1;__yy__v1323.gmldrives=yyfplus(__yy__v1323.gmldrives,1);return;};};if(yyfequal(__yy__v1323.gmlpossession,__yy__v1323.gmlhuman_team)){{var gmlkk=gml_Script_s_get_player_by_position_from_roster(__yy__v1323,_inst,10,1,__yy__v1323.gmlteam_roster[__yy_gml_array_check_index(__yy__v1323.gmlpossession,__yy__v1323.gmlteam_roster)]);if(yyGetBool(gmlkk)){{__yy__v1323.gmlcomm_txt=string_replace(gml_Script_s_str(__yy__v1323,_inst,"comm_stage_KickOffPlayer"), "$teamname",__yy__v1323.gmlteam_name[__yy_gml_array_check_index(__yy__v1323.gmlpossession,__yy__v1323.gmlteam_name)]);__yy__v1323.gmlcomm_txt=string_replace(__yy__v1323.gmlcomm_txt,"$playername",ds_map_find_value(gmlkk,"lname"));__yy__v1323.gmlscrimmage=yyfplus(yyfplus(25,__yy_gml_errCheck(gml_Script_s_get_attribute(__yy__v1323,_inst,gmlkk,"strength"))),__yy_gml_errCheck(gml_Script_s_get_attribute(__yy__v1323,_inst,gmlkk,"skill")));};}else {__yy__v1323.gmlscrimmage=irandom_range(20,25);};};}else { {__yy__v1323.gmlscrimmage=yyfplus(__yy__v1323.gmlscrimmage,irandom_range(45,70));if(yyfgreater(__yy__v1323.gmlscrimmage,40)){__yy__v1323.gmlscrimmage=25;};};};gml_Script_s_subtract_time(__yy__v1323,_inst,3,5,"COMM_STAGE_KICKOFF");gml_Script_s_change_possession(__yy__v1323,_inst);__yy__v1323.gmllast_play=1;}}};}}function gml_GlobalScript_s_punt(_inst,_other){(_inst.gmls_punt=__yy_method(_inst,gml_Script_s_punt));}function gml_Script_s_punt(_inst,_other){{gml_Script_slog(_inst,_other,"s_punt");_inst.gmlscrimmage=yyfplus(_inst.gmlscrimmage, irandom_range(40,60));if(yyfgreater(_inst.gmlscrimmage,49)){_inst.gmlscrimmage=25;};_inst.gmlcomm_txt=string_replace(gml_Script_s_str(_inst,_other,"comm_stage_Punt"),"$teamname",_inst.gmlteam_name[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_name)]);gml_Script_s_sound_kick(_inst,_other);gml_Script_s_subtract_time(_inst,_other,5,10,"COMM_STAGE_PUNT");gml_Script_s_change_possession(_inst,_other);_inst.gmllast_play=5;}}function gml_GlobalScript_s_change_possession(_inst,_other){(_inst.gmls_change_possession=__yy_method(_inst, gml_Script_s_change_possession));(_inst.gmls_force_possession=__yy_method(_inst,gml_Script_s_force_possession));}function gml_Script_s_change_possession(_inst,_other){{gml_Script_slog(_inst,_other,"s_change_possession");{var __yy__v1324=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v1325 in __yy__v1324){if(!__yy__v1324.hasOwnProperty(__yy__v1325))continue;var __yy__v1326=__yy__v1324[__yy__v1325];{__yy__v1326.gmlscorer="";__yy__v1326.gmldown=1;__yy__v1326.gmlyards=10;__yy__v1326.gmlscrimmage=__yy_gml_errCheck(-__yy_gml_errCheck(__yy__v1326.gmlscrimmage)); __yy__v1326.gmlpossession=!yyGetBool(__yy__v1326.gmlpossession);__yy__v1326.gmllast_play=__yy__v1326.gmlcomm_stage;__yy__v1326.gmlcomm_stage=2;__yy__v1326.gmlphase=0;__yy__v1326.gmldrives=yyfplus(__yy__v1326.gmldrives,1);gml_Script_slog(__yy__v1326,_inst,yyfplus("scrimmage = ",__yy_gml_errCheck(string(__yy__v1326.gmlscrimmage))));}}};}}function gml_Script_s_force_possession(_inst,_other,argument0){{if(yyfnotequal(argument0,_inst.gmlpossession)){{gml_Script_s_change_possession(_inst,_other);};};}} function gml_GlobalScript_s_tackle_failure(_inst,_other){(_inst.gmls_tackle_failure=__yy_method(_inst,gml_Script_s_tackle_failure));}function gml_Script_s_tackle_failure(_inst,_other){{if(yyGetBool(_inst.gmlcomm_defender)){{var ___sw1286___=ds_map_find_value(_inst.gmlcomm_defender,"position");var ___swc1287___=-1;if(yyCompareVal(___sw1286___,6,g_GMLMathEpsilon,false)==0){___swc1287___=0;}else if(yyCompareVal(___sw1286___,7,g_GMLMathEpsilon,false)==0){___swc1287___=1;}else if(yyCompareVal(___sw1286___, 9,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1286___,8,g_GMLMathEpsilon,false)==0){___swc1287___=2;}switch(___swc1287___){case 0:{ds_map_set(_inst.gmlcomm_defender,"stat_tackles",yyfminus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlcomm_defender,"stat_tackles")),4));break;}case 1:{ds_map_set(_inst.gmlcomm_defender,"stat_tackles",yyfminus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlcomm_defender,"stat_tackles")),3));break;}case 2:{ds_map_set(_inst.gmlcomm_defender,"stat_tackles",yyfminus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlcomm_defender, "stat_tackles")),2));break;}};if(yyfless(ds_map_find_value(_inst.gmlcomm_defender,"stat_tackles"),0)){ds_map_set(_inst.gmlcomm_defender,"stat_tackles",0);};};};}}function gml_GlobalScript_s_last_secs_of_half(_inst,_other,argument0){(_inst.gmls_last_secs_of_half=__yy_method(_inst,gml_Script_s_last_secs_of_half));(_inst.gmls_seconds_remaining=__yy_method(_inst,gml_Script_s_seconds_remaining));}function gml_Script_s_last_secs_of_half(_inst,_other,argument0){{{var __yy__v1327=GetWithArray(YYASSET_REF(0x00000069)); for(var __yy__v1328 in __yy__v1327){if(!__yy__v1327.hasOwnProperty(__yy__v1328))continue;var __yy__v1329=__yy__v1327[__yy__v1328];{var gmlrsecs=yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy__v1329.gmlminutes),60)),__yy_gml_errCheck(__yy__v1329.gmlseconds));if((yyGetBool((yyGetBool(yyfequal(__yy__v1329.gmlquarter,2)))||(yyGetBool(yyfequal(__yy__v1329.gmlquarter,4)))||(yyGetBool(yyfequal(__yy__v1329.gmlquarter,5)))))&&(yyGetBool(yyflessequal(gmlrsecs,argument0)))){return true;};}}};return false; }}function gml_Script_s_seconds_remaining(_inst,_other){{{var __yy__v1330=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v1331 in __yy__v1330){if(!__yy__v1330.hasOwnProperty(__yy__v1331))continue;var __yy__v1332=__yy__v1330[__yy__v1331];{var gmlrsecs=yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy__v1332.gmlminutes),60)),__yy_gml_errCheck(__yy__v1332.gmlseconds));if((yyGetBool(yyfequal(__yy__v1332.gmlquarter,1)))||(yyGetBool(yyfequal(__yy__v1332.gmlquarter,3)))){gmlrsecs=yyfplus(gmlrsecs, yyftime(__yy_gml_errCheck(yyfplus(2,__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_matchlength))),60));};return gmlrsecs;}}};}}function gml_GlobalScript_s_reset_wind(_inst,_other){(_inst.gmls_reset_wind=__yy_method(_inst,gml_Script_s_reset_wind));}function gml_Script_s_reset_wind(_inst,_other){{{var __yy__v1333=GetWithArray(YYASSET_REF(0x00000076));for(var __yy__v1334 in __yy__v1333){if(!__yy__v1333.hasOwnProperty(__yy__v1334))continue;var __yy__v1335=__yy__v1333[__yy__v1334];{__yy__v1335.gmlwind_force=0; if(yyfequal(__yy__v1335.gmltype,2)){{__yy__v1335.gmlwind=0;return;};};if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice,1)){{__yy__v1335.gmlwind=5;if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpractice_success,0)){__yy__v1335.gmlwind=0;};};};}}};}}function gml_GlobalScript_s_change_wind(_inst,_other){(_inst.gmls_change_wind=__yy_method(_inst,gml_Script_s_change_wind));}function gml_Script_s_change_wind(_inst,_other){{{var __yy__v1336=GetWithArray(YYASSET_REF(0x00000076)); for(var __yy__v1337 in __yy__v1336){if(!__yy__v1336.hasOwnProperty(__yy__v1337))continue;var __yy__v1338=__yy__v1336[__yy__v1337];{if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice,1)){return;};if(yyfequal(__yy__v1338.gmltype,2)){return;};var ___sw1290___=irandom(4);var ___swc1291___=-1;if(yyCompareVal(___sw1290___,0,g_GMLMathEpsilon,false)==0){___swc1291___=0;}else if(yyCompareVal(___sw1290___,1,g_GMLMathEpsilon,false)==0){___swc1291___=1;}else if(yyCompareVal(___sw1290___,2,g_GMLMathEpsilon, false)==0){___swc1291___=2;}else if(yyCompareVal(___sw1290___,3,g_GMLMathEpsilon,false)==0){___swc1291___=3;}switch(___swc1291___){case 0:{__yy__v1338.gmlwind=clamp(yyfplus(__yy_gml_errCheck(__yy__v1338.gmlwind),1),0,9);break;}case 1:{__yy__v1338.gmlwind=clamp(yyfminus(__yy_gml_errCheck(__yy__v1338.gmlwind),1),0,9);break;}case 2:{__yy__v1338.gmlwind_dir=yyfplus(__yy__v1338.gmlwind_dir,1);break;}case 3:{__yy__v1338.gmlwind_dir=yyfminus(__yy__v1338.gmlwind_dir,1);break;}default :{break;}};__yy__v1338.gmlwind=clamp(__yy__v1338.gmlwind, 0,9);if(yyfgreater(__yy__v1338.gmlwind_dir,7)){__yy__v1338.gmlwind_dir=0;};if(yyfless(__yy__v1338.gmlwind_dir,0)){__yy__v1338.gmlwind_dir=7;};}}};}}function gml_GlobalScript_s_force_quit(_inst,_other){(_inst.gmls_force_quit=__yy_method(_inst,gml_Script_s_force_quit));}function gml_Script_s_force_quit(_inst,_other){{{var __yy__v1339=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v1340 in __yy__v1339){if(!__yy__v1339.hasOwnProperty(__yy__v1340))continue;var __yy__v1341=__yy__v1339[__yy__v1340];{show_debug_message("force quit match"); if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice)){{room_goto(YYASSET_REF(0x0300000E));return;};};__yy__v1341.gmlteam_score=__yy_gml_array_check(__yy__v1341.gmlteam_score,1000447136);__yy__v1341.gmlteam_score[__yy_gml_array_check_index_set(__yy__v1341.gmlhuman_team)]=yyfplus(__yy__v1341.gmlteam_score[__yy_gml_array_check_index_set(__yy__v1341.gmlhuman_team)],3);if(yyfgreater(__yy__v1341.gmlteam_score[__yy_gml_array_check_index(__yy__v1341.gmlhuman_team,__yy__v1341.gmlteam_score)], __yy__v1341.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(__yy__v1341.gmlhuman_team)?1:0,__yy__v1341.gmlteam_score)])){gml_Script_s_end_match(__yy__v1341,_inst,1);}else {if(yyfless(__yy__v1341.gmlteam_score[__yy_gml_array_check_index(__yy__v1341.gmlhuman_team,__yy__v1341.gmlteam_score)],__yy__v1341.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(__yy__v1341.gmlhuman_team)?1:0,__yy__v1341.gmlteam_score)])){gml_Script_s_end_match(__yy__v1341,_inst,(-1));}else {gml_Script_s_end_match(__yy__v1341, _inst,0);};};}}};}}function gml_GlobalScript_s_do_audible(_inst,_other){(_inst.gmls_do_audible=__yy_method(_inst,gml_Script_s_do_audible));}function gml_Script_s_do_audible(_inst,_other){{gml_Script_slog(_inst,_other,"s_do_audible");mouse_clear(1);{var __yy__v1342=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v1343 in __yy__v1342){if(!__yy__v1342.hasOwnProperty(__yy__v1343))continue;var __yy__v1344=__yy__v1342[__yy__v1343];{if(yyfless(gml_Script_s_count_audibles(__yy__v1344,_inst),1)){{{var __yy__v1345=GetWithArray(global.gmlmaster_ball); for(var __yy__v1346 in __yy__v1345){if(!__yy__v1345.hasOwnProperty(__yy__v1346))continue;var __yy__v1347=__yy__v1345[__yy__v1346];{{var __yy__v1348=GetWithArray(__yy__v1347.gmlholder);for(var __yy__v1349 in __yy__v1348){if(!__yy__v1348.hasOwnProperty(__yy__v1349))continue;var __yy__v1350=__yy__v1348[__yy__v1349];gml_Script_s_fieldtxt(__yy__v1350,__yy__v1347,yyfplus(__yy_gml_errCheck(gml_Script_s_str(__yy__v1350,__yy__v1347,"match_AudiblesNone")),"!"));}};}}};};}else {{if(yyGetBool(ds_map_find_value(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))){{audio_play_sound(YYASSET_REF(0x02000006),1,false);audio_play_sound(YYASSET_REF(0x02000010),1,false);};};gml_Script_s_update_audibles(__yy__v1344,_inst,(-1));gml_Script_s_set_up_play(__yy__v1344,_inst,true);{var __yy__v1351=GetWithArray(YYASSET_REF(0x0000006B));for(var __yy__v1352 in __yy__v1351){if(!__yy__v1351.hasOwnProperty(__yy__v1352))continue;var __yy__v1353=__yy__v1351[__yy__v1352];if(yyfequal(__yy__v1353.gmlposition,1)){gml_Script_s_fieldtxt(__yy__v1353, __yy__v1344,yyfplus(__yy_gml_errCheck(gml_Script_s_str(__yy__v1353,__yy__v1344,"match_Audible")),"!"));};}};};};}}};}}function gml_GlobalScript_s_do_timeout(_inst,_other){(_inst.gmls_do_timeout=__yy_method(_inst,gml_Script_s_do_timeout));}function gml_Script_s_do_timeout(_inst,_other){{gml_Script_slog(_inst,_other,"s_do_timeout");mouse_clear(1);{var __yy__v1354=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v1355 in __yy__v1354){if(!__yy__v1354.hasOwnProperty(__yy__v1355))continue;var __yy__v1356=__yy__v1354[__yy__v1355]; {if(yyGetBool(gml_Script_s_count_timeouts(__yy__v1356,_inst))){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))){{audio_play_sound(YYASSET_REF(0x02000006),1,false);audio_play_sound(YYASSET_REF(0x02000011),1,false);};};gml_Script_s_update_timeouts(__yy__v1356,_inst,(-1));__yy__v1356.gmltimeout_called=true;{var __yy__v1357=GetWithArray(YYASSET_REF(0x0000006F));for(var __yy__v1358 in __yy__v1357){if(!__yy__v1357.hasOwnProperty(__yy__v1358))continue; var __yy__v1359=__yy__v1357[__yy__v1358];gml_Script_s_fieldtxt(__yy__v1359,__yy__v1356,yyfplus(__yy_gml_errCheck(gml_Script_s_str(__yy__v1359,__yy__v1356,"match_TimeOut")),"!"));}};instance_destroy(__yy__v1356,YYASSET_REF(0x0000007B));};};}}};}}function gml_GlobalScript_s_check_win_after_turnover(_inst,_other){(_inst.gmls_check_win_after_turnover=__yy_method(_inst,gml_Script_s_check_win_after_turnover));(_inst.gmls_both_teams_had_possession=__yy_method(_inst,gml_Script_s_both_teams_had_possession)); }function gml_Script_s_check_win_after_turnover(_inst,_other){{gml_Script_slog(_inst,_other,"s_check_win_after_turnover:");gml_Script_slog(_inst,_other,yyfplus("quarter = ",__yy_gml_errCheck(string(_inst.gmlquarter))));gml_Script_slog(_inst,_other,yyfplus("drives = ",__yy_gml_errCheck(string(_inst.gmldrives))));gml_Script_slog(_inst,_other,yyfplus("Team 0 score = ",__yy_gml_errCheck(string(_inst.gmlteam_score[__yy_gml_array_check_index(0,_inst.gmlteam_score)]))));gml_Script_slog(_inst,_other,yyfplus("Team 1 score = ", __yy_gml_errCheck(string(_inst.gmlteam_score[__yy_gml_array_check_index(1,_inst.gmlteam_score)]))));if(yyGetBool(_inst.gmlcollege_overtime)){{gml_Script_s_college_overtime_handle_play_end(_inst,_other);};}else {if((yyGetBool(yyfequal(_inst.gmlquarter,5)))&&(yyGetBool(yyfgreater(_inst.gmldrives,1)))&&(yyGetBool(yyfnotequal(_inst.gmlteam_score[__yy_gml_array_check_index(0,_inst.gmlteam_score)],_inst.gmlteam_score[__yy_gml_array_check_index(1,_inst.gmlteam_score)])))&&(yyGetBool(gml_Script_s_both_teams_had_possession(_inst, _other)))){{gml_Script_slog(_inst,_other,"winning after turnover");_inst.gmlcomm_stage=17;gml_Script_s_sound_audience_fg(_inst,_other);};};};}}function gml_Script_s_both_teams_had_possession(_inst,_other){{var gmllog_str="";gmllog_str=yyfplus(gmllog_str,"s_both_teams_had_possession:\n");gmllog_str=yyfplus(gmllog_str,yyfplus(yyfplus("- week = ",__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek))),"\n"));gmllog_str=yyfplus(gmllog_str,yyfplus(yyfplus("- last_week_regular = ", __yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular))),"\n"));gmllog_str=yyfplus(gmllog_str,yyfplus(yyfplus("- Team 0 had possession = ",__yy_gml_errCheck(string(_inst.gmlhad_ot_possession[__yy_gml_array_check_index(0,_inst.gmlhad_ot_possession)]))),"\n"));gmllog_str=yyfplus(gmllog_str,yyfplus(yyfplus("- Team 1 had possession = ",__yy_gml_errCheck(string(_inst.gmlhad_ot_possession[__yy_gml_array_check_index(1,_inst.gmlhad_ot_possession)]))),"\n"));if((yyGetBool(yyflessequal(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlweek,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular)))&&(yyGetBool(!yyGetBool(global.gmlexhibition)))&&(yyGetBool(!yyGetBool(_inst.gmlcollege_overtime)))){{gmllog_str=yyfplus(gmllog_str,"-- regular season game: return true\n");gml_Script_slog(_inst,_other,gmllog_str);return true;};}else {if((yyGetBool(_inst.gmlhad_ot_possession[__yy_gml_array_check_index(0,_inst.gmlhad_ot_possession)]))&&(yyGetBool(_inst.gmlhad_ot_possession[__yy_gml_array_check_index(1, _inst.gmlhad_ot_possession)]))){{gmllog_str=yyfplus(gmllog_str,"-- play off game: return true\n");gml_Script_slog(_inst,_other,gmllog_str);return true;};}else {{gmllog_str=yyfplus(gmllog_str,"-- return false\n");gml_Script_slog(_inst,_other,gmllog_str);return false;};};};gml_Script_slog(_inst,_other,gmllog_str);}}function gml_GlobalScript_s_clear_clock(_inst,_other){(_inst.gmls_clear_clock=__yy_method(_inst,gml_Script_s_clear_clock));}function gml_Script_s_clear_clock(_inst,_other){{{var __yy__v1360=GetWithArray(YYASSET_REF(0x00000069)); for(var __yy__v1361 in __yy__v1360){if(!__yy__v1360.hasOwnProperty(__yy__v1361))continue;var __yy__v1362=__yy__v1360[__yy__v1361];{while(yyfgreater(__yy__v1362.gmltime_subtract,0)){{(g_yyPrePostObject__=__yy__v1362.gmltime_subtract,__yy__v1362.gmltime_subtract=(g_yyPrePostObject__ instanceof Long?__yy__v1362.gmltime_subtract.subtract(1):--__yy__v1362.gmltime_subtract),g_yyPrePostObject__);(g_yyPrePostObject__=__yy__v1362.gmlseconds,__yy__v1362.gmlseconds=(g_yyPrePostObject__ instanceof Long?__yy__v1362.gmlseconds.subtract(1):--__yy__v1362.gmlseconds), g_yyPrePostObject__);if(yyfless(__yy__v1362.gmlseconds,0)){{(g_yyPrePostObject__=__yy__v1362.gmlminutes,__yy__v1362.gmlminutes=(g_yyPrePostObject__ instanceof Long?__yy__v1362.gmlminutes.subtract(1):--__yy__v1362.gmlminutes),g_yyPrePostObject__);__yy__v1362.gmlseconds=yyfplus(__yy__v1362.gmlseconds,60);if(yyfless(__yy__v1362.gmlminutes,0)){{__yy__v1362.gmlminutes=0;__yy__v1362.gmlseconds=0;};};};};}};}}};}}function gml_GlobalScript_s_fieldtxt(_inst,_other){(_inst.gmls_fieldtxt=__yy_method(_inst,gml_Script_s_fieldtxt)); (_inst.gmls_fieldtxt_yards=__yy_method(_inst,gml_Script_s_fieldtxt_yards));(_inst.gmls_fieldimg=__yy_method(_inst,gml_Script_s_fieldimg));}function gml_Script_s_fieldtxt(_inst,_other,argument0){{{var __yy__v1363=GetWithArray(YYASSET_REF(0x00000072));for(var __yy__v1364 in __yy__v1363){if(!__yy__v1363.hasOwnProperty(__yy__v1364))continue;var __yy__v1365=__yy__v1363[__yy__v1364];{if(yyGetBool(__yy__v1365.gmlimg)){return;}else {instance_destroy(__yy__v1365);};}}};var gmlft=instance_create_layer(_inst.x,yyfminus(__yy_gml_errCheck(_inst.y), 48),"Text",YYASSET_REF(0x00000072));yyInst(_inst,_other,gmlft).depth=(-10000);yyInst(_inst,_other,gmlft).gmltxt=argument0;}}function gml_Script_s_fieldtxt_yards(_inst,_other,argument0){{var gmlyds=round(argument0);if(yyfequal(gmlyds,0)){return;};{var __yy__v1366=GetWithArray(YYASSET_REF(0x00000072));for(var __yy__v1367 in __yy__v1366){if(!__yy__v1366.hasOwnProperty(__yy__v1367))continue;var __yy__v1368=__yy__v1366[__yy__v1367];{if(yyfgreater(string_count(gml_Script_s_str(__yy__v1368,_inst,"match_Recovered"), __yy__v1368.gmltxt),0)){return;};if(!yyGetBool(__yy__v1368.gmlimg)){instance_destroy(__yy__v1368);};}}};var gmlft=instance_create_layer(_inst.x,yyfminus(__yy_gml_errCheck(_inst.y),32),"Text",YYASSET_REF(0x00000072));yyInst(_inst,_other,gmlft).depth=(-10000);yyInst(_inst,_other,gmlft).gmltxt=yyfplus(__yy_gml_errCheck(string(gmlyds)),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"sla_yards")));}}function gml_Script_s_fieldimg(_inst,_other,argument0,argument1,argument2){{var gmlft=instance_create_layer(_inst.x, yyfminus(__yy_gml_errCheck(_inst.y),48),"Text",YYASSET_REF(0x00000072));yyInst(_inst,_other,gmlft).depth=(-10000);yyInst(_inst,_other,gmlft).gmlimg=argument0;yyInst(_inst,_other,gmlft).gmlsubimg=argument1;yyInst(_inst,_other,gmlft).gmlimgscl=argument2;}}function gml_GlobalScript_s_fieldtxt_yards(_inst,_other){}function gml_GlobalScript_s_sound_audience_idle(_inst,_other){(_inst.gmls_sound_audience_idle=__yy_method(_inst,gml_Script_s_sound_audience_idle));}function gml_Script_s_sound_audience_idle(_inst, _other){{if((yyGetBool(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))))||(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice))){return;};if(yyGetBool(audio_is_playing(YYASSET_REF(0x02000014)))){audio_sound_gain(YYASSET_REF(0x02000014),0.2,1000);}else {{var gmlsnd=audio_play_sound(YYASSET_REF(0x02000014),1,true);audio_sound_gain(gmlsnd,0,0);audio_sound_gain(gmlsnd,0.2,1000);audio_sound_pitch(gmlsnd,1);};};}}function gml_GlobalScript_s_create_match_message(_inst, _other){(_inst.gmls_create_match_message=__yy_method(_inst,gml_Script_s_create_match_message));(_inst.gmls_create_head2head_message=__yy_method(_inst,gml_Script_s_create_head2head_message));}function gml_Script_s_create_match_message(_inst,_other,argument0){{{var __yy__v1369=GetWithArray(YYASSET_REF(0x00000071));for(var __yy__v1370 in __yy__v1369){if(!__yy__v1369.hasOwnProperty(__yy__v1370))continue;var __yy__v1371=__yy__v1369[__yy__v1370];instance_destroy(__yy__v1371);}};var gmltxt="";var gmlsub_txt=""; var gmlflash=false;var gmlcol=16777215;var ___sw1294___=argument0;var ___swc1295___=-1;if(yyCompareVal(___sw1294___,0,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1294___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1294___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1294___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1294___,4,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1294___,5,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1294___,13,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1294___, 18,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1294___,19,g_GMLMathEpsilon,false)==0){___swc1295___=0;}else if(yyCompareVal(___sw1294___,6,g_GMLMathEpsilon,false)==0){___swc1295___=1;}else if(yyCompareVal(___sw1294___,7,g_GMLMathEpsilon,false)==0){___swc1295___=2;}else if(yyCompareVal(___sw1294___,8,g_GMLMathEpsilon,false)==0){___swc1295___=3;}else if(yyCompareVal(___sw1294___,9,g_GMLMathEpsilon,false)==0){___swc1295___=4;}else if(yyCompareVal(___sw1294___,10,g_GMLMathEpsilon,false)==0){___swc1295___=5; }else if(yyCompareVal(___sw1294___,11,g_GMLMathEpsilon,false)==0){___swc1295___=6;}else if(yyCompareVal(___sw1294___,12,g_GMLMathEpsilon,false)==0){___swc1295___=7;}else if(yyCompareVal(___sw1294___,14,g_GMLMathEpsilon,false)==0){___swc1295___=8;}else if(yyCompareVal(___sw1294___,15,g_GMLMathEpsilon,false)==0){___swc1295___=9;}else if(yyCompareVal(___sw1294___,16,g_GMLMathEpsilon,false)==0){___swc1295___=10;}else if(yyCompareVal(___sw1294___,17,g_GMLMathEpsilon,false)==0){___swc1295___=11;}else if(yyCompareVal(___sw1294___, 20,g_GMLMathEpsilon,false)==0){___swc1295___=12;}else if(yyCompareVal(___sw1294___,21,g_GMLMathEpsilon,false)==0){___swc1295___=13;}switch(___swc1295___){case 0:{return;break;}case 1:{gmltxt=yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"match_Touchdown")),"!!!");gmlflash=true;gmlcol=65535;if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldown,6)){{gmltxt=yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"match_Scored")),"!!!");};};if(yyGetBool(global.gmlpoki)){{{var __yy__v1372=GetWithArray(YYASSET_REF(0x00000069)); for(var __yy__v1373 in __yy__v1372){if(!__yy__v1372.hasOwnProperty(__yy__v1373))continue;var __yy__v1374=__yy__v1372[__yy__v1373];if(yyfequal(__yy__v1374.gmlpossession,__yy__v1374.gmlhuman_team)){poki_happy_time(0.75);};}};};};gmlsub_txt=yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlscorer;if(yyfgreaterequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldist_td,1)){gmlsub_txt=yyfplus(gmlsub_txt,yyfplus(yyfplus(yyfplus(" ",__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldist_td))), " "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_yards"))));};break;}case 2:{gmltxt=gml_Script_s_str(_inst,_other,"match_Incomplete");gmlflash=false;gmlcol=16777215;break;}case 3:{gmltxt=gml_Script_s_str(_inst,_other,"match_OutOfBounds");gmlflash=false;gmlcol=16777215;break;}case 4:{gmltxt=yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"match_Interception")),"!");gmlflash=true;gmlcol=255;break;}case 5:{gmltxt=yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"match_Turnover")), "!");gmlflash=true;gmlcol=255;break;}case 6:{gmltxt=yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"match_Sacked")),"!");gmlflash=true;gmlcol=255;break;}case 7:{gmltxt=yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"match_Safety")),"!");gmlflash=true;gmlcol=255;break;}case 8:{if(yyGetBool(global.gmlpoki)){{{var __yy__v1375=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v1376 in __yy__v1375){if(!__yy__v1375.hasOwnProperty(__yy__v1376))continue;var __yy__v1377=__yy__v1375[__yy__v1376]; if(yyfequal(__yy__v1377.gmlpossession,__yy__v1377.gmlhuman_team)){poki_happy_time(0.5);};}};};};gmltxt=yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"match_FG_Good")),"!");gmlflash=true;gmlcol=65535;{var __yy__v1378=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v1379 in __yy__v1378){if(!__yy__v1378.hasOwnProperty(__yy__v1379))continue;var __yy__v1380=__yy__v1378[__yy__v1379];{if(yyGetBool(__yy__v1380.gmlkicking)){{gmlsub_txt=yyfplus(yyfplus(__yy_gml_errCheck(string(__yy__v1380.gmlkick_dist)), " "),__yy_gml_errCheck(gml_Script_s_str(__yy__v1380,_inst,"tla_yards")));var gmlkk=gml_Script_s_get_kicker(__yy__v1380,_inst);if(yyGetBool(gmlkk)){gmlsub_txt=yyfplus(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmlkk).gmlpos_name2)," "),__yy_gml_errCheck(gmlsub_txt));};};};}}};break;}case 9:{gmltxt=yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"match_FG_Bad")),"!");gmlflash=true;gmlcol=255;break;}case 10:{gmltxt=yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"match_Success")), "!");gmlflash=true;gmlcol=65535;if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice,4)){{gmltxt=yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"match_Hit")),"!");yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpractice_success=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpractice_success,1);};}else {if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpractice_success,0)){yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpractice_success=(-1);}else { yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpractice_success=yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpractice_count;};};if(yyGetBool(global.gmlpoki)){{{var __yy__v1381=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v1382 in __yy__v1381){if(!__yy__v1381.hasOwnProperty(__yy__v1382))continue;var __yy__v1383=__yy__v1381[__yy__v1382];if(yyfequal(__yy__v1383.gmlpossession,__yy__v1383.gmlhuman_team)){poki_happy_time(0.5);};}};};};break;}case 11:{gmltxt=yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst, _other,"match_Fail")),"!");if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice,4)){{yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpractice_success=max(0,yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpractice_success),1));gmltxt=yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"match_Miss")),"!");};};gmlflash=true;gmlcol=255;break;}case 12:{gmltxt=gml_Script_s_str(_inst,_other,"match_TouchBack");gmlflash=false;gmlcol=16777215;break;}case 13:{ gmltxt=yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"match_Interception")),"!");gmlflash=true;gmlcol=255;gmlsub_txt=gml_Script_s_str(_inst,_other,"match_TouchBack");break;}};var gmlmsg=instance_create_layer(0,0,"Text",YYASSET_REF(0x00000071));yyInst(_inst,_other,gmlmsg).gmltext=string_upper(gmltxt);yyInst(_inst,_other,gmlmsg).gmlsub_text=string_upper(gmlsub_txt);yyInst(_inst,_other,gmlmsg).gmlflash=gmlflash;yyInst(_inst,_other,gmlmsg).gmlcol=gmlcol;yyInst(_inst,_other,gmlmsg).alarm=__yy_gml_array_check(yyInst(_inst, _other,gmlmsg).alarm,2633220098);yyInst(_inst,_other,gmlmsg).alarm[__yy_gml_array_check_index_set(0)]=100;yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmltap_msg="";gml_Script_slog(_inst,_other,gmltxt);}}function gml_Script_s_create_head2head_message(_inst,_other){{gml_Script_slog(_inst,_other,"s_create_head2head_message");if((yyGetBool(!yyGetBool(global.gmlexhibition)))||(yyGetBool(yyfnotequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayerteamindex,(-1))))){return;};{var __yy__v1384=GetWithArray(YYASSET_REF(0x00000050)); for(var __yy__v1385 in __yy__v1384){if(!__yy__v1384.hasOwnProperty(__yy__v1385))continue;var __yy__v1386=__yy__v1384[__yy__v1385];return;}};var gmlps=0;{var __yy__v1387=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v1388 in __yy__v1387){if(!__yy__v1387.hasOwnProperty(__yy__v1388))continue;var __yy__v1389=__yy__v1387[__yy__v1388];{gmlps=__yy__v1389.gmlpossession;if(yyGetBool(gml_Script_s_is_kickoff(__yy__v1389,_inst,0))){gmlps=!yyGetBool(gmlps);};if(yyfequal(gmlps,__yy__v1389.gmllast_h2h_possession)){ return;};__yy__v1389.gmllast_h2h_possession=gmlps;}}};gml_Script_s_set_multicon_turn(_inst,_other,yyfplus(__yy_gml_errCheck(gmlps),1));var gmlmsg=instance_create_layer(0,0,"Text",YYASSET_REF(0x00000071));gml_Script_s_sound_training_success(_inst,_other,1);yyInst(_inst,_other,gmlmsg).gmltext=string_upper(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"head2head_Player"))," "),__yy_gml_errCheck(string(yyfplus(__yy_gml_errCheck(gmlps),1)))));yyInst(_inst,_other,gmlmsg).gmlsub_text=_inst.gmlteam_name[__yy_gml_array_check_index(gmlps, _inst.gmlteam_name)];yyInst(_inst,_other,gmlmsg).gmlflash=false;yyInst(_inst,_other,gmlmsg).gmlcol=65535;yyInst(_inst,_other,gmlmsg).alarm=__yy_gml_array_check(yyInst(_inst,_other,gmlmsg).alarm,2633220098);yyInst(_inst,_other,gmlmsg).alarm[__yy_gml_array_check_index_set(0)]=200;yyInst(_inst,_other,gmlmsg).gmlty=yyftime(__yy_gml_errCheck(yyInst(_inst,_other,gmlmsg).gmlh),0.5);yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmltap_msg="";gml_Script_slog(_inst,_other,yyInst(_inst,_other,gmlmsg).gmltext); gml_Script_slog(_inst,_other,yyInst(_inst,_other,gmlmsg).gmlsub_text);}}function gml_GlobalScript_s_draw_commentary(_inst,_other){(_inst.gmls_draw_commentary=__yy_method(_inst,gml_Script_s_draw_commentary));}function gml_Script_s_draw_commentary(_inst,_other){{var gmlbuf=8;if(yyfequal(_inst.gmlstate,2)){{_inst.gmlcomm_txt="";if((yyGetBool(instance_exists(YYASSET_REF(0x0000006F))))&&(yyGetBool(yyfequal(yyInst(_inst,_other,global.gmlmaster_ball).gmlstate,0)))&&(yyGetBool(yyfless(g_pBuiltIn.get_current_time(), yyfplus(__yy_gml_errCheck(_inst.gmlplaystart_time),2000))))){{if(yyGetBool(_inst.gmlkicking)){{var ___sw1300___=_inst.gmlkicking;var ___swc1301___=-1;if(yyCompareVal(___sw1300___,1,g_GMLMathEpsilon,false)==0){___swc1301___=0;}else if(yyCompareVal(___sw1300___,2,g_GMLMathEpsilon,false)==0){___swc1301___=1;}else if(yyCompareVal(___sw1300___,3,g_GMLMathEpsilon,false)==0){___swc1301___=2;}switch(___swc1301___){case 0:{_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,"match_FieldGoal");break;}case 1:{_inst.gmlcomm_txt=gml_Script_s_str(_inst, _other,"match_PAT");break;}case 2:{_inst.gmlcomm_txt=gml_Script_s_str(_inst,_other,"match_KickOff");break;}};};}else {if(yyfgreater(_inst.gmldown,0)){{_inst.gmlcomm_txt=gml_Script_s_get_string_downand(_inst,_other);};};};};};{var __yy__v1390=GetWithArray(YYASSET_REF(0x00000050));for(var __yy__v1391 in __yy__v1390){if(!__yy__v1390.hasOwnProperty(__yy__v1391))continue;var __yy__v1392=__yy__v1390[__yy__v1391];return;}};};};draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);draw_set_valign(1);draw_set_alpha(1); var gmltx=yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5);var gmlty=yyftime(__yy_gml_errCheck(display_get_gui_height()),0.5);if(yyfequal(_inst.gmlstate,2)){gmlty=yyftime(__yy_gml_errCheck(display_get_gui_height()),0.75);};if(yyfnotequal(_inst.gmlcomm_txt,"")){{var gmltw=yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,_inst.gmlcomm_txt)),0.5)),__yy_gml_errCheck(gmlbuf));var gmlcomm_col=_inst.gmlcomm_col_a;if(yyfequal(_inst.gmlpossession,1)){gmlcomm_col=_inst.gmlcomm_col_h; };var ___sw1302___=_inst.gmllast_stage;var ___swc1303___=-1;if(yyCompareVal(___sw1302___,0,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1302___,12,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1302___,13,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1302___,14,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1302___,17,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1302___,18,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1302___,22,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1302___,25,g_GMLMathEpsilon, false)==0||yyCompareVal(___sw1302___,30,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1302___,31,g_GMLMathEpsilon,false)==0){___swc1303___=0;}else if(yyCompareVal(___sw1302___,19,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1302___,20,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1302___,21,g_GMLMathEpsilon,false)==0){___swc1303___=1;}else if(yyCompareVal(___sw1302___,1,g_GMLMathEpsilon,false)==0){___swc1303___=2;}else if(yyCompareVal(___sw1302___,5,g_GMLMathEpsilon,false)==0){___swc1303___=3;}else if(yyCompareVal(___sw1302___, 7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1302___,16,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1302___,11,g_GMLMathEpsilon,false)==0){___swc1303___=4;}switch(___swc1303___){case 0:{gmlcomm_col=0;break;}case 1:{gmlcomm_col=_inst.gmlcomm_col_h;if(yyfequal(_inst.gmlpossession,1)){gmlcomm_col=_inst.gmlcomm_col_a;};break;}case 2:{if((yyGetBool(yyfnotequal(_inst.gmllast_stage,7)))&&(yyGetBool(yyfnotequal(_inst.gmllast_stage,16)))){{gmlcomm_col=_inst.gmlcomm_col_a;if(yyfequal(_inst.gmlpossession, 0)){gmlcomm_col=_inst.gmlcomm_col_h;};};};break;}case 3:{gmlcomm_col=_inst.gmlcomm_col_a;if(yyfequal(_inst.gmlpossession,0)){gmlcomm_col=_inst.gmlcomm_col_h;};break;}case 4:{break;}};if((yyGetBool(yyfequal(_inst.gmlcomm_stage,2)))&&(yyGetBool(yyfequal(_inst.gmllast_stage,7)))){{gmlcomm_col=_inst.gmlcomm_col_a;if(yyfequal(_inst.gmlpossession,0)){gmlcomm_col=_inst.gmlcomm_col_h;};};};if((yyGetBool(yyfequal(_inst.gmlstate,2)))||(yyGetBool(_inst.gmlskip_half))){gmlcomm_col=0;};draw_sprite_ext(_inst,YYASSET_REF(0x0100017E), 0,yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltw)),yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlbuf)),yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmltw),16)),2),1.1,0,gmlcomm_col,1);if(yyGetBool(global.gmldebug)){{gml_Script_draw_hd_text(_inst,_other,gmltx,yyfplus(__yy_gml_errCheck(gmlty),22),yyfplus(" ",__yy_gml_errCheck(gml_Script_s_get_string_commstage(_inst,_other,_inst.gmlcomm_stage))));gml_Script_draw_hd_text(_inst,_other,gmltx,yyfplus(__yy_gml_errCheck(gmlty), 32),yyfplus(" ",__yy_gml_errCheck(gml_Script_s_get_string_commstage(_inst,_other,_inst.gmllast_stage))));};};gml_Script_draw_hd_text_ext_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),_inst.gmlcomm_txt,(-1),(-1),0,0,0,0,1);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,_inst.gmlcomm_txt);};};if((yyGetBool(!yyGetBool(global.gmlgamepad)))&&(yyGetBool(yyfnotequal(_inst.gmltap_msg,"")))&&(yyGetBool(!yyGetBool(instance_exists(YYASSET_REF(0x00000023)))))){ {gmlty=yyftime(__yy_gml_errCheck(display_get_gui_height()),0.75);var gmltw=yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,_inst.gmltap_msg)),0.5)),__yy_gml_errCheck(gmlbuf));draw_sprite_ext(_inst,YYASSET_REF(0x0100017E),0,yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltw)),yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlbuf)),yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmltw),16)),2),1.1,0,0,1);gml_Script_draw_hd_text(_inst,_other, gmltx,gmlty,_inst.gmltap_msg);};};}}function gml_GlobalScript_s_draw_scoreboard(_inst,_other){(_inst.gmls_draw_scoreboard=__yy_method(_inst,gml_Script_s_draw_scoreboard));}function gml_Script_s_draw_scoreboard(_inst,_other){{if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice)){{gml_Script_s_draw_scoreboard_qb_training(_inst,_other);return;};};if(yyGetBool(global.gmldebug_aa_hide_ui)){{return;};};draw_set_font(global.gmlfnt_small_flex);draw_set_halign(0);draw_set_valign(1);draw_set_alpha(1); draw_rectangle_colour(0,0,display_get_gui_width(),16,0,0,0,0,0);var gmltx=16;var gmlty1=8;var gmlname1=ds_map_find_value(_inst.gmlteam[__yy_gml_array_check_index(0,_inst.gmlteam)],"tla");var gmlname2=ds_map_find_value(_inst.gmlteam[__yy_gml_array_check_index(1,_inst.gmlteam)],"tla");var gmlto_len=0;var gmltx_score_end=0;if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{var gmltx2=0;gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltx2)),gmlty1,_inst.gmlteam_conf_tag[__yy_gml_array_check_index(0, _inst.gmlteam_conf_tag)],16777215,16777215,16777215,16777215,0.7);gmltx2=yyfplus(gmltx2,gml_Script_string_hd_width(_inst,_other,_inst.gmlteam_conf_tag[__yy_gml_array_check_index(0,_inst.gmlteam_conf_tag)]));var gmltxt=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gmlname1)," "),__yy_gml_errCheck(string(_inst.gmlteam_score[__yy_gml_array_check_index(0,_inst.gmlteam_score)])))," ");gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltx2)),gmlty1,gmltxt);gmltx2=yyfplus(gmltx2, gml_Script_string_hd_width(_inst,_other,gmltxt));gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltx2)),gmlty1,_inst.gmlteam_conf_tag[__yy_gml_array_check_index(1,_inst.gmlteam_conf_tag)],16777215,16777215,16777215,16777215,0.7);gmltx2=yyfplus(gmltx2,gml_Script_string_hd_width(_inst,_other,_inst.gmlteam_conf_tag[__yy_gml_array_check_index(1,_inst.gmlteam_conf_tag)]));gmlto_len=gmltx2;gmltxt=yyfplus(yyfplus(__yy_gml_errCheck(gmlname2)," "),__yy_gml_errCheck(string(_inst.gmlteam_score[__yy_gml_array_check_index(1, _inst.gmlteam_score)])));gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltx2)),gmlty1,gmltxt);gmltx_score_end=yyfplus(yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltx2)),__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,gmltxt)));};}else {{var gmltxt=gmlname1;gmltxt=yyfplus(gmltxt,yyfplus(yyfplus(" ",__yy_gml_errCheck(string(_inst.gmlteam_score[__yy_gml_array_check_index(0,_inst.gmlteam_score)])))," "));gmlto_len=gml_Script_string_hd_width(_inst, _other,gmltxt);gmltxt=yyfplus(gmltxt,yyfplus(yyfplus(__yy_gml_errCheck(gmlname2)," "),__yy_gml_errCheck(string(_inst.gmlteam_score[__yy_gml_array_check_index(1,_inst.gmlteam_score)]))));gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty1,gmltxt);};};{var __yy__v1393=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v1394 in __yy__v1393){if(!__yy__v1393.hasOwnProperty(__yy__v1394))continue;var __yy__v1395=__yy__v1393[__yy__v1394];{var gmlto_x=gmltx;var gmlto_y=yyfplus(__yy_gml_errCheck(gmlty1),6);if((yyGetBool(global.gmlexhibition))&&(yyGetBool(yyfequal(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlplayerteamindex,(-1))))){{var gmli=0;for(;yyfless(gmli,__yy__v1395.gmltimeouts);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{draw_line_width(gmlto_x,gmlto_y,yyfplus(__yy_gml_errCheck(gmlto_x),6),gmlto_y,2);gmlto_x=yyfplus(gmlto_x,8);}};gmlto_x=yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlto_len));var gmli=0;for(;yyfless(gmli,__yy__v1395.gmltimeouts_p2);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli), g_yyPrePostObject__)){{draw_line_width(gmlto_x,gmlto_y,yyfplus(__yy_gml_errCheck(gmlto_x),6),gmlto_y,2);gmlto_x=yyfplus(gmlto_x,8);}};};}else {{if(yyfequal(__yy__v1395.gmlhuman_team,1)){gmlto_x=yyfplus(gmlto_x,gmlto_len);};var gmli=0;for(;yyfless(gmli,gml_Script_s_count_timeouts(__yy__v1395,_inst));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{draw_line_width(gmlto_x,gmlto_y,yyfplus(__yy_gml_errCheck(gmlto_x),6),gmlto_y,2);gmlto_x=yyfplus(gmlto_x, 8);}};};};}}};var gmloffsetX=0;if(yyfnotequal(_inst.gmlcomm_stage,13)){{draw_set_halign(2);var gmlmidx=yyfdivide(__yy_gml_errCheck(display_get_gui_width()),2);gmltx=gmlmidx;if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{var gmlquarter_len=gml_Script_string_hd_width(_inst,_other,"1st Quart");if(yyfgreater(yyfplus(__yy_gml_errCheck(gmltx_score_end),__yy_gml_errCheck(gmlquarter_len)),gmlmidx)){{gmloffsetX=yyfminus(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(gmltx_score_end),__yy_gml_errCheck(gmlquarter_len))), __yy_gml_errCheck(gmlmidx));gmltx=yyfplus(gmltx,gmloffsetX);yyInst(_inst,_other,YYASSET_REF(0x00000019)).x=yyfplus(yyfplus(__yy_gml_errCheck(gmlmidx),50),__yy_gml_errCheck(gmloffsetX));gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("overlap! tx_score_end[",__yy_gml_errCheck(string(gmltx_score_end))),"] quarter_len["),__yy_gml_errCheck(string(gmlquarter_len))),"] midx["),__yy_gml_errCheck(string(gmlmidx))),"] tx["),__yy_gml_errCheck(string(gmltx))),"]")); };};};};var gmlqtr=yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,yyfplus("quarter_",__yy_gml_errCheck(string(_inst.gmlquarter)))))," ");if(yyGetBool(_inst.gmlcollege_overtime)){{if((yyGetBool(yyfgreaterequal(_inst.gmlquarter,5)))&&(yyGetBool(yyfgreater(_inst.gmlcollege_overtime_round,1)))){{gmlqtr=yyfplus(yyfplus(__yy_gml_errCheck(string(_inst.gmlcollege_overtime_round))," "),__yy_gml_errCheck(gmlqtr));};};};};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty1,gmlqtr);draw_set_halign(0); var gmltime=yyfplus(" ",__yy_gml_errCheck(gml_Script_s_get_string_time(_inst,_other,_inst.gmlminutes,_inst.gmlseconds)));if(yyfequal(_inst.gmlminutes,0)){{draw_set_color(65535);if(yyfless(_inst.gmlseconds,11)){draw_set_color(255);};};};if(yyGetBool(_inst.gmltimeout_called)){draw_set_color(4235519);};if(yyGetBool(_inst.gmlcollege_overtime)){{gmltime="";};};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty1,gmltime);draw_set_color(16777215);if((yyGetBool(yyfequal(_inst.gmlstate,2)))||(yyGetBool((yyGetBool(yyfequal(_inst.gmlstate_previous, 2)))&&(yyGetBool(yyfequal(_inst.gmlstate,10)))))){{draw_set_halign(2);draw_set_colour(16777215);gmltx=yyfminus(__yy_gml_errCheck(display_get_gui_width()),16);if(yyGetBool(_inst.gmlkicking)){{if(yyGetBool(gml_Script_s_aiming(_inst,_other))){{var gmlkk=gml_Script_s_get_kicker(_inst,_other);var gmltxt=yyfplus(yyfplus(__yy_gml_errCheck(string(_inst.gmlkick_dist))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_yards")));if((yyGetBool(gmlkk))&&(yyGetBool(yyInst(_inst,_other,gmlkk).gmlpmap))){ {if(yyfgreater(ds_map_find_value(yyInst(_inst,_other,gmlkk).gmlpmap,"stat_attempts"),0)){{gmltxt=yyfplus(gmltxt,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(" ",__yy_gml_errCheck(string(ds_map_find_value(yyInst(_inst,_other,gmlkk).gmlpmap,"stat_complete")))),"/"),__yy_gml_errCheck(string(ds_map_find_value(yyInst(_inst,_other,gmlkk).gmlpmap,"stat_attempts"))))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_Attempts"))));};};};};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty1,gmltxt);};}; };}else {if((yyGetBool(yyfgreater(_inst.gmldown,0)))&&(yyGetBool(yyfless(_inst.gmldown,5)))){{gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty1,gml_Script_s_get_string_downand(_inst,_other));};};};};}else {if(yyGetBool(global.gmldebug)){{draw_set_halign(2);draw_set_colour(0);gml_Script_draw_hd_text(_inst,_other,yyfminus(__yy_gml_errCheck(display_get_gui_width()),16),yyfminus(__yy_gml_errCheck(display_get_gui_height()),80),yyfplus(__yy_gml_errCheck(string(round(gml_Script_s_convert_scrimmage_to_goal_distance(_inst, _other)))),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"sla_Yards"))));draw_set_colour(16777215);};};};};};{var __yy__v1396=GetWithArray(global.gmlmaster_ball);for(var __yy__v1397 in __yy__v1396){if(!__yy__v1396.hasOwnProperty(__yy__v1397))continue;var __yy__v1398=__yy__v1396[__yy__v1397];{if((yyGetBool(!yyGetBool(instance_exists(YYASSET_REF(0x0000005A)))))&&(yyGetBool(!yyGetBool(instance_exists(YYASSET_REF(0x00000071)))))){{if((yyGetBool(__yy__v1398.gmlholder))&&(yyGetBool(yyfnotequal(yyInst(_inst, _other,__yy__v1398.gmlholder).gmlpos_name,"")))){{var gmltxt=yyInst(_inst,_other,__yy__v1398.gmlholder).gmlpos_name;var gmlsx=22;var gmlsy=yyfminus(__yy_gml_errCheck(display_get_gui_height()),10);draw_sprite(__yy__v1398,YYASSET_REF(0x0100006B),gml_Script_s_get_attitude_icon(__yy__v1398,_inst,ds_map_find_value(yyInst(_inst,_other,__yy__v1398.gmlholder).gmlpmap,"attitude")),gmlsx,gmlsy);draw_set_halign(0);draw_set_colour(0);gml_Script_draw_hd_text(__yy__v1398,_inst,yyfplus(__yy_gml_errCheck(gmlsx),12), gmlsy,gmltxt);draw_set_colour(16777215);};};};};}}};}}function gml_GlobalScript_s_draw_scrimmage(_inst,_other){(_inst.gmls_draw_scrimmage=__yy_method(_inst,gml_Script_s_draw_scrimmage));}function gml_Script_s_draw_scrimmage(_inst,_other){{if(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,true))){return;};var gmlchains=YYASSET_REF(0x01000153);draw_set_alpha(0.6);draw_line_width_colour(_inst.gmlx_scrim,131,_inst.gmlx_scrim,470,2,16711680,16711680);if(yyfgreaterequal(_inst.gmlyards,1)){draw_sprite_ext(_inst, gmlchains,1,_inst.gmlx_scrim,126,2,2,0,16777215,1);};if((yyGetBool(yyfgreater(_inst.gmlx_yards,300)))&&(yyGetBool(yyfless(_inst.gmlx_yards,2300)))){{draw_line_width_colour(_inst.gmlx_yards,131,_inst.gmlx_yards,470,2,65535,65535);draw_sprite_ext(_inst,gmlchains,0,_inst.gmlx_yards,126,2,2,0,16777215,1);};};draw_set_alpha(1);}}function gml_GlobalScript_s_draw_wind(_inst,_other){(_inst.gmls_draw_wind=__yy_method(_inst,gml_Script_s_draw_wind));}function gml_Script_s_draw_wind(_inst,_other){{if((yyGetBool(!yyGetBool(_inst.gmlkicking)))&&(yyGetBool(!yyGetBool(instance_exists(YYASSET_REF(0x0000004F)))))){ return;};if(!yyGetBool(gml_Script_s_aiming(_inst,_other))){return;};if((yyGetBool(!yyGetBool(instance_exists(YYASSET_REF(0x00000076)))))||(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000076)).gmlwind,0)))){return;};if(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,true))){return;};draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);draw_set_valign(1);var gmlgw=display_get_gui_width();var gmlc=0;var gmlposx=48;var gmlposy=40;if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldrivedir, (-1))){gmlposx=yyfminus(__yy_gml_errCheck(gmlgw),__yy_gml_errCheck(gmlposx));};if(yyGetBool(instance_exists(YYASSET_REF(0x0000004F)))){gmlposx=yyfminus(__yy_gml_errCheck(gmlgw),__yy_gml_errCheck(gmlposx));};var gmlrw=48;var gmlrx=yyfminus(__yy_gml_errCheck(gmlposx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlrw),0.5)));var gmlry=yyfminus(__yy_gml_errCheck(gmlposy),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlrw),0.5)));draw_rectangle_color(gmlrx,gmlry,yyfplus(__yy_gml_errCheck(gmlrx),__yy_gml_errCheck(gmlrw)), yyfplus(yyfplus(__yy_gml_errCheck(gmlry),__yy_gml_errCheck(gmlrw)),16),gmlc,gmlc,gmlc,gmlc,0);gmlrx=gmlposx;gmlry=gmlposy;draw_sprite_ext(_inst,YYASSET_REF(0x01000052),0,gmlrx,gmlry,1.5,1.5,yyftime(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000076)).gmlwind_dir),45),16777215,1);gml_Script_draw_hd_text(_inst,_other,gmlrx,yyfplus(__yy_gml_errCheck(gmlry),30),yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"match_Wind"))," "),__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000076)).gmlwind)))); }}function gml_GlobalScript_s_draw_kicking_power(_inst,_other){(_inst.gmls_draw_kicking_power=__yy_method(_inst,gml_Script_s_draw_kicking_power));}function gml_Script_s_draw_kicking_power(_inst,_other){{if((yyGetBool(gml_Script_s_is_kickoff(_inst,_other,false)))&&(yyGetBool(gml_Script_s_cpu_is_kicking_off(_inst,_other)))){return;};var gmlc=0;var gmlgw=display_get_gui_width();var gmlrw=256;var gmlrx=yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlgw),0.5)),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlrw), 0.5)));draw_rectangle_color(gmlrx,32,yyfplus(__yy_gml_errCheck(gmlrx),__yy_gml_errCheck(gmlrw)),64,gmlc,gmlc,gmlc,gmlc,0);var gmlkickp=clamp(yyftime(__yy_gml_errCheck(_inst.gmlkickpow),2),1,100);var gmlpow=yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlrw),2)),0.01);var gmlred_pow=yyftime(__yy_gml_errCheck(gmlpow),__yy_gml_errCheck(min(30,gmlkickp)));var gmlgrn_pow=yyftime(__yy_gml_errCheck(gmlpow),__yy_gml_errCheck(min(100,gmlkickp)));gmlc=65280;draw_rectangle_color(yyfplus(__yy_gml_errCheck(gmlrx), 2),34,yyfplus(__yy_gml_errCheck(gmlrx),__yy_gml_errCheck(gmlgrn_pow)),62,gmlc,gmlc,gmlc,gmlc,0);gmlc=255;draw_rectangle_color(yyfplus(__yy_gml_errCheck(gmlrx),2),34,yyfplus(__yy_gml_errCheck(gmlrx),__yy_gml_errCheck(gmlred_pow)),62,gmlc,gmlc,gmlc,gmlc,0);}}function gml_GlobalScript_s_draw_my_route(_inst,_other){(_inst.gmls_draw_my_route=__yy_method(_inst,gml_Script_s_draw_my_route));}function gml_Script_s_draw_my_route(_inst,_other){{draw_set_colour(0);draw_set_alpha(yyftime(__yy_gml_errCheck(_inst.gmlmy_route_alpha), 0.5));var gmllastx=_inst.gmlmy_route_startx;var gmllasty=_inst.gmlmy_route_starty;var gmlnum=path_get_number(_inst.gmlmy_route);var gmlpt=0;for(;yyfless(gmlpt,gmlnum);gmlpt=yyfplus(gmlpt,1)){{var gmlnextx=round(yyfplus(__yy_gml_errCheck(_inst.gmlmy_route_startx),__yy_gml_errCheck(path_get_point_x(_inst.gmlmy_route,gmlpt))));var gmlnexty=round(yyfplus(__yy_gml_errCheck(_inst.gmlmy_route_starty),__yy_gml_errCheck(path_get_point_y(_inst.gmlmy_route,gmlpt))));if(yyfgreater(_inst.gmlmy_route_starty,300)){gmlnexty=yyfminus(__yy_gml_errCheck(_inst.gmlmy_route_starty), __yy_gml_errCheck(path_get_point_y(_inst.gmlmy_route,gmlpt)));};draw_line_width(gmllastx,yyfplus(__yy_gml_errCheck(gmllasty),1),gmlnextx,yyfplus(__yy_gml_errCheck(gmlnexty),1),5);draw_circle(gmlnextx,yyfplus(__yy_gml_errCheck(gmlnexty),1),2.5,0);_inst.gmlmy_route_end_dir=999;var ___sw1306___=yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldrivedir;var ___swc1307___=-1;if(yyCompareVal(___sw1306___,(-1),g_GMLMathEpsilon,false)==0){___swc1307___=0;}else if(yyCompareVal(___sw1306___,1,g_GMLMathEpsilon, false)==0){___swc1307___=1;}switch(___swc1307___){case 0:{if(yyflessequal(gmlnextx,gmllastx)){_inst.gmlmy_route_end_dir=point_direction(gmllastx,gmllasty,gmlnextx,gmlnexty);};break;}case 1:{if(yyfgreaterequal(gmlnextx,gmllastx)){_inst.gmlmy_route_end_dir=point_direction(gmllastx,gmllasty,gmlnextx,gmlnexty);};break;}};gmllastx=gmlnextx;gmllasty=gmlnexty;}};if(yyGetBool(_inst.gmlte_blocking)){{draw_set_colour(0);draw_set_alpha(yyftime(__yy_gml_errCheck(_inst.gmlmy_route_alpha),0.5));draw_line_width(gmllastx, yyfminus(__yy_gml_errCheck(gmllasty),5),gmlnextx,yyfplus(__yy_gml_errCheck(gmlnexty),7),5);};}else {if(yyfequal(_inst.gmlmy_route_end_dir,999)){{draw_set_colour(0);draw_set_alpha(yyftime(__yy_gml_errCheck(_inst.gmlmy_route_alpha),0.5));draw_circle(gmllastx,yyfplus(__yy_gml_errCheck(gmllasty),1),5,0);};}else {{if(yyfgreaterequal(_inst.gmlmy_route_end_dir,270)){{gmllastx=yyfplus(gmllastx,1.5);gmllasty=yyfplus(gmllasty,1);};}else {if(yyfgreater(_inst.gmlmy_route_end_dir,90)){{gmllastx=yyfplus(gmllastx, 1.5);gmllasty=yyfplus(gmllasty,2);};};};draw_sprite_ext(_inst,YYASSET_REF(0x0100004D),0,gmllastx,yyfplus(__yy_gml_errCheck(gmllasty),1),0.75,0.75,_inst.gmlmy_route_end_dir,0,yyftime(__yy_gml_errCheck(_inst.gmlmy_route_alpha),0.5));};};};var gmlcol=global.gmlc_routes;if((yyGetBool(_inst.gmlte_blocking))||(yyGetBool(yyfequal(_inst.gmlposition,1)))){gmlcol=16777215;}else {if(yyfequal(_inst.gmlposition,2)){gmlcol=global.gmlc_routes_rb;};};if((yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode))&&(yyGetBool(_inst.gmlrewarded_route))){ gmlcol=255;};draw_set_colour(gmlcol);draw_set_alpha(_inst.gmlmy_route_alpha);gmllastx=round(_inst.gmlmy_route_startx);gmllasty=round(_inst.gmlmy_route_starty);var gmlpt=0;for(;yyfless(gmlpt,gmlnum);gmlpt=yyfplus(gmlpt,1)){{var gmlnextx=round(yyfplus(__yy_gml_errCheck(_inst.gmlmy_route_startx),__yy_gml_errCheck(path_get_point_x(_inst.gmlmy_route,gmlpt))));var gmlnexty=round(yyfplus(__yy_gml_errCheck(_inst.gmlmy_route_starty),__yy_gml_errCheck(path_get_point_y(_inst.gmlmy_route,gmlpt))));if(yyfgreater(_inst.gmlmy_route_starty, 300)){gmlnexty=yyfminus(__yy_gml_errCheck(_inst.gmlmy_route_starty),__yy_gml_errCheck(path_get_point_y(_inst.gmlmy_route,gmlpt)));};draw_line_width(gmllastx,gmllasty,gmlnextx,gmlnexty,5);draw_circle(gmlnextx,gmlnexty,2.5,0);gmllastx=gmlnextx;gmllasty=gmlnexty;}};if(yyGetBool(_inst.gmlte_blocking)){{_inst.gmlmy_route_end_dir=999;draw_set_colour(16777215);draw_set_alpha(_inst.gmlmy_route_alpha);draw_line_width(gmllastx,yyfminus(__yy_gml_errCheck(gmllasty),6),gmlnextx,yyfplus(__yy_gml_errCheck(gmlnexty), 6),5);};}else {if(yyfequal(_inst.gmlmy_route_end_dir,999)){{draw_set_colour(gmlcol);draw_set_alpha(_inst.gmlmy_route_alpha);draw_circle(gmllastx,gmllasty,5,0);};}else {{if(yyfgreaterequal(_inst.gmlmy_route_end_dir,270)){{gmllastx=yyfplus(gmllastx,1.5);gmllasty=yyfplus(gmllasty,1);};}else {if(yyfgreater(_inst.gmlmy_route_end_dir,90)){{gmllastx=yyfplus(gmllastx,1.5);gmllasty=yyfplus(gmllasty,2);};};};draw_sprite_ext(_inst,YYASSET_REF(0x0100004D),0,gmllastx,gmllasty,0.75,0.75,_inst.gmlmy_route_end_dir, gmlcol,_inst.gmlmy_route_alpha);};};};draw_set_colour(16777215);draw_set_alpha(1);}}function gml_GlobalScript_s_draw_kick_cone(_inst,_other){(_inst.gmls_draw_kick_cone=__yy_method(_inst,gml_Script_s_draw_kick_cone));}function gml_Script_s_draw_kick_cone(_inst,_other){{if(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,false))){return;};{var __yy__v1399=GetWithArray(YYASSET_REF(0x00000076));for(var __yy__v1400 in __yy__v1399){if(!__yy__v1399.hasOwnProperty(__yy__v1400))continue;var __yy__v1401=__yy__v1399[__yy__v1400]; {if(yyfequal(__yy__v1401.gmltype,2)){draw_set_color(0);}else {draw_set_color(16777215);};}}};draw_set_alpha(0.075);var gmlgl=90;if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldrivedir,1)){gmlgl=2510;};{var __yy__v1402=GetWithArray(global.gmlmaster_ball);for(var __yy__v1403 in __yy__v1402){if(!__yy__v1402.hasOwnProperty(__yy__v1403))continue;var __yy__v1404=__yy__v1402[__yy__v1403];{var ___sw1310___=__yy__v1404.gmlstate;var ___swc1311___=-1;if(yyCompareVal(___sw1310___,0,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1310___, 2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1310___,1,g_GMLMathEpsilon,false)==0){___swc1311___=0;}switch(___swc1311___){case 0:{{var __yy__v1405=GetWithArray(__yy__v1404.gmlholder);for(var __yy__v1406 in __yy__v1405){if(!__yy__v1405.hasOwnProperty(__yy__v1406))continue;var __yy__v1407=__yy__v1405[__yy__v1406];draw_triangle(gmlgl,270,gmlgl,332,__yy__v1407.x,__yy__v1407.y,false);}};break;}};}}};draw_set_color(16777215);draw_set_alpha(1);}}function gml_GlobalScript_s_check_draft_qb(_inst,_other){(_inst.gmls_check_draft_QB=__yy_method(_inst, gml_Script_s_check_draft_QB));(_inst.gmls_do_qb_draft_round=__yy_method(_inst,gml_Script_s_do_qb_draft_round));(_inst.gmls_get_weakest_player_by_position=__yy_method(_inst,gml_Script_s_get_weakest_player_by_position));(_inst.gmls_find_draft_player_by_position=__yy_method(_inst,gml_Script_s_find_draft_player_by_position));(_inst.gmls_get_player_by_position_for_qb_draft=__yy_method(_inst,gml_Script_s_get_player_by_position_for_qb_draft));(_inst.gmls_do_contract_news=__yy_method(_inst,gml_Script_s_do_contract_news)); (_inst.gmls_goto_room_contract=__yy_method(_inst,gml_Script_s_goto_room_contract));(_inst.gmlbtn_qb_mode_interested_teams=__yy_method(_inst,gml_Script_btn_qb_mode_interested_teams));}function gml_Script_s_check_draft_QB(_inst,_other){{if((yyGetBool(yyfgreater(_inst.gmlintro,0)))||(yyGetBool(yyfequal(_inst.gmlyear,1)))){{};}else {if(yyfless(ds_map_find_value(gml_Script_s_get_qb_pmap(_inst,_other),"contract"),1)){{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"news_QB_contract_expired"), gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_goto_room_contract,(-1),global.gmlc_background,1);_inst.gmlstage=1;return;};}else {if((yyGetBool(yyfequal(_inst.gmlweek,1)))&&(yyGetBool(yyfequal(_inst.gmldraft_round,1)))){{gml_Script_s_do_qb_draft_round(_inst,_other);gml_Script_s_end_draft_round(_inst,_other,false);gml_Script_s_do_qb_draft_round(_inst,_other);gml_Script_s_end_draft_round(_inst,_other,false);gml_Script_s_do_qb_draft_round(_inst,_other);gml_Script_s_end_draft_round(_inst, _other,false);return;};};};};if((yyGetBool(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlprematch_dilemma_done)))&&(yyGetBool(!yyGetBool(gml_Script_s_is_bye_week(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek))))&&(yyGetBool(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular)))&&(yyGetBool((yyGetBool(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear,1)))||(yyGetBool(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlqb_mode))))){{if(yyGetBool(gml_Script_s_do_prematch_dilemma_qb(_inst,_other))){return;};};};yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlprematch_dilemma_done=true;gml_Script_s_savegame(_inst,_other);gml_Script_s_play(_inst,_other,1);}}function gml_Script_s_do_qb_draft_round(_inst,_other){{if(yyfless(ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraftlist),50)){gml_Script_s_create_draftlist(_inst,_other);};var gmlnew_pmap=(-4);var gmlremove_pmap=(-4); var gmlmax_roster=gml_Script_s_get_roster_cap(_inst,_other);if(yyfless(ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster),gmlmax_roster)){{if(yyfless(gml_Script_s_count_players_by_position(_inst,_other,4),1)){gmlnew_pmap=gml_Script_s_find_draft_player_by_position(_inst,_other,4,0);}else {if(yyfless(gml_Script_s_count_players_by_position(_inst,_other,2),1)){gmlnew_pmap=gml_Script_s_find_draft_player_by_position(_inst,_other,2,0);}else {if(yyfless(gml_Script_s_count_players_by_position(_inst, _other,4),2)){gmlnew_pmap=gml_Script_s_find_draft_player_by_position(_inst,_other,4,7);};};};if(yyfequal(gmlnew_pmap,(-4))){{var gmlcurrent_rb=gml_Script_s_get_player_by_position_for_qb_draft(_inst,_other,2,1);if(yyGetBool(gmlcurrent_rb)){{var gmlrating=gml_Script_s_get_player_rating(_inst,_other,gmlcurrent_rb);gmlnew_pmap=gml_Script_s_find_draft_player_by_position(_inst,_other,2,yyfplus(__yy_gml_errCheck(gmlrating),1));if(yyGetBool(gmlnew_pmap)){gmlremove_pmap=gmlcurrent_rb;};};};};};if((yyGetBool(yyfequal(gmlnew_pmap, (-4))))&&(yyGetBool(yyfless(gml_Script_s_count_players_by_position(_inst,_other,4),2)))){gmlnew_pmap=gml_Script_s_find_draft_player_by_position(_inst,_other,4,5);};if((yyGetBool(yyfequal(gmlnew_pmap,(-4))))&&(yyGetBool(yyfless(gml_Script_s_count_players_by_position(_inst,_other,3),1)))){gmlnew_pmap=gml_Script_s_find_draft_player_by_position(_inst,_other,3,5);};if((yyGetBool(yyfequal(gmlnew_pmap,(-4))))&&(yyGetBool(yyfless(gml_Script_s_count_players_by_position(_inst,_other,4),2)))){gmlnew_pmap=gml_Script_s_find_draft_player_by_position(_inst, _other,4,0);};if((yyGetBool(yyfequal(gmlnew_pmap,(-4))))&&(yyGetBool(yyfless(gml_Script_s_count_players_by_position(_inst,_other,3),1)))){gmlnew_pmap=gml_Script_s_find_draft_player_by_position(_inst,_other,3,0);};if(yyfequal(gmlnew_pmap,(-4))){{var gmlweakest_p=gml_Script_s_get_weakest_player_by_position(_inst,_other,4);if(yyGetBool(gmlweakest_p)){{gmlnew_pmap=gml_Script_s_find_draft_player_by_position(_inst,_other,4,yyfplus(__yy_gml_errCheck(gml_Script_s_get_player_rating(_inst,_other,gmlweakest_p)), 1));if(yyGetBool(gmlnew_pmap)){gmlremove_pmap=gmlweakest_p;};};};};};if((yyGetBool(yyfequal(gmlnew_pmap,(-4))))&&(yyGetBool(yyfgreater(gmlmax_roster,10)))&&(yyGetBool(yyfless(gml_Script_s_count_players_by_position(_inst,_other,3),2)))){gmlnew_pmap=gml_Script_s_find_draft_player_by_position(_inst,_other,3,5);};if(yyfequal(gmlnew_pmap,(-4))){{var gmlweakest_p=gml_Script_s_get_weakest_player_by_position(_inst,_other,3);if(yyGetBool(gmlweakest_p)){{gmlnew_pmap=gml_Script_s_find_draft_player_by_position(_inst, _other,3,yyfplus(__yy_gml_errCheck(gml_Script_s_get_player_rating(_inst,_other,gmlweakest_p)),1));if(yyGetBool(gmlnew_pmap)){gmlremove_pmap=gmlweakest_p;};};};};};if(yyfequal(gmlnew_pmap,(-4))){{{var __yy__v1408=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1409 in __yy__v1408){if(!__yy__v1408.hasOwnProperty(__yy__v1409))continue;var __yy__v1410=__yy__v1408[__yy__v1409];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1410.gmldraftlist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli), g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1410.gmldraftlist,gmli);var gmlpos=ds_map_find_value(gmlpmap,"position");if(yyfless(gml_Script_s_count_players_by_position(__yy__v1410,_inst,gmlpos),1)){{gmlnew_pmap=gmlpmap;break;};};}};}}};};};if(yyfequal(gmlnew_pmap,(-4))){{{var __yy__v1411=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1412 in __yy__v1411){if(!__yy__v1411.hasOwnProperty(__yy__v1412))continue;var __yy__v1413=__yy__v1411[__yy__v1412];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1413.gmldraftlist)); (g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1413.gmldraftlist,gmli);var gmlpos=ds_map_find_value(gmlpmap,"position");var ___sw1314___=gmlpos;var ___swc1315___=-1;if(yyCompareVal(___sw1314___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1314___,7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1314___,5,g_GMLMathEpsilon,false)==0){___swc1315___=0;}switch(___swc1315___){case 0:{if(yyfless(gml_Script_s_count_players_by_position(__yy__v1413, _inst,gmlpos),2)){gmlnew_pmap=gmlpmap;};break;}default :{if(yyfless(gml_Script_s_count_players_by_position(__yy__v1413,_inst,gmlpos),1)){gmlnew_pmap=gmlpmap;};break;}};if(yyGetBool(gmlnew_pmap)){break;};}};}}};};};};}else {{var gmlplist=ds_list_create();ds_list_add(gmlplist,2);ds_list_add(gmlplist,4);ds_list_add(gmlplist,3);ds_list_add(gmlplist,5);ds_list_add(gmlplist,6);ds_list_add(gmlplist,7);ds_list_add(gmlplist,choose(8,9));ds_list_add(gmlplist,10);while(yyfgreater(ds_list_size(gmlplist),0)){{ds_list_shuffle(gmlplist); var gmlpos=ds_list_find_value(gmlplist,0);var gmlweakest_p=gml_Script_s_get_weakest_player_by_position(_inst,_other,gmlpos);if(yyGetBool(gmlweakest_p)){{gmlnew_pmap=gml_Script_s_find_draft_player_by_position(_inst,_other,gmlpos,yyfplus(__yy_gml_errCheck(gml_Script_s_get_player_rating(_inst,_other,gmlweakest_p)),1));if(yyGetBool(gmlnew_pmap)){gmlremove_pmap=gmlweakest_p;};};};ds_list_delete(gmlplist,0);if(yyGetBool(gmlnew_pmap)){break;};}};ds_list_clear(gmlplist);};};{var __yy__v1414=GetWithArray(YYASSET_REF(0x00000062)); for(var __yy__v1415 in __yy__v1414){if(!__yy__v1414.hasOwnProperty(__yy__v1415))continue;var __yy__v1416=__yy__v1414[__yy__v1415];{if(yyGetBool(gmlnew_pmap)){{ds_map_set(gmlnew_pmap,"signed_year",__yy__v1416.gmlyear);ds_map_set(gmlnew_pmap,"teamid",__yy__v1416.gmlmyteam_id);ds_map_set(gmlnew_pmap,"flash_time",g_pBuiltIn.get_current_time());ds_list_add(__yy__v1416.gmlroster,gmlnew_pmap);gml_Script_s_do_contract_news(__yy__v1416,_inst,gml_Script_s_str(__yy__v1416,_inst,"news_QB_draft_playerjoins"),gmlnew_pmap); ds_list_delete(__yy__v1416.gmldraftlist,ds_list_find_index(__yy__v1416.gmldraftlist,gmlnew_pmap));};};if(yyGetBool(gmlremove_pmap)){{gml_Script_s_do_contract_news(__yy__v1416,_inst,gml_Script_s_str(__yy__v1416,_inst,"news_QB_draft_playerleaves"),gmlremove_pmap);ds_list_delete(__yy__v1416.gmlroster,ds_list_find_index(__yy__v1416.gmlroster,gmlremove_pmap));};};}}};}}function gml_Script_s_get_weakest_player_by_position(_inst,_other,argument0){{var gmlcurrent_p1=gml_Script_s_get_player_by_position_for_qb_draft(_inst, _other,argument0,1);var gmlcurrent_p2=gml_Script_s_get_player_by_position_for_qb_draft(_inst,_other,argument0,2);var gmlcurrent_p3=gml_Script_s_get_player_by_position_for_qb_draft(_inst,_other,argument0,3);var gmlcurrent_p4=gml_Script_s_get_player_by_position_for_qb_draft(_inst,_other,argument0,4);var gmlweakest_p=gmlcurrent_p1;if((yyGetBool(gmlweakest_p))&&(yyGetBool(gmlcurrent_p2))&&(yyGetBool(yyfgreater(gml_Script_s_get_player_rating(_inst,_other,gmlweakest_p),gml_Script_s_get_player_rating(_inst, _other,gmlcurrent_p2))))){gmlweakest_p=gmlcurrent_p2;};if((yyGetBool(gmlweakest_p))&&(yyGetBool(gmlcurrent_p3))&&(yyGetBool(yyfgreater(gml_Script_s_get_player_rating(_inst,_other,gmlweakest_p),gml_Script_s_get_player_rating(_inst,_other,gmlcurrent_p3))))){gmlweakest_p=gmlcurrent_p3;};if((yyGetBool(gmlweakest_p))&&(yyGetBool(gmlcurrent_p4))&&(yyGetBool(yyfgreater(gml_Script_s_get_player_rating(_inst,_other,gmlweakest_p),gml_Script_s_get_player_rating(_inst,_other,gmlcurrent_p4))))){gmlweakest_p=gmlcurrent_p4; };return gmlweakest_p;}}function gml_Script_s_find_draft_player_by_position(_inst,_other,argument0,argument1){{{var __yy__v1417=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1418 in __yy__v1417){if(!__yy__v1417.hasOwnProperty(__yy__v1418))continue;var __yy__v1419=__yy__v1417[__yy__v1418];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1419.gmldraftlist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1419.gmldraftlist, gmli);if((yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"position"),argument0)))&&(yyGetBool(yyfgreaterequal(gml_Script_s_get_player_rating(__yy__v1419,_inst,gmlpmap),argument1)))){return gmlpmap;};}};}}};return(-4);}}function gml_Script_s_get_player_by_position_for_qb_draft(_inst,_other,argument0,argument1){{{var __yy__v1420=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1421 in __yy__v1420){if(!__yy__v1420.hasOwnProperty(__yy__v1421))continue;var __yy__v1422=__yy__v1420[__yy__v1421];{var gmlcount=0; var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1422.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1422.gmlroster,gmli);if(yyfequal(ds_map_find_value(gmlpmap,"age"),gml_Script_s_rookie_age_internal(__yy__v1422,_inst))){continue;};if((yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"age"),yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(__yy__v1422,_inst)),1))))&&(yyGetBool(yyfgreater(gml_Script_s_get_player_potential(__yy__v1422, _inst,gmlpmap),7)))&&(yyGetBool(yyfgreater(ds_map_find_value(gmlpmap,"attitude"),30)))){continue;};if(yyfequal(ds_map_find_value(gmlpmap,"position"),argument0)){{(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__);if(yyfequal(gmlcount,argument1)){return gmlpmap;};};};}};}}};return(-4);}}function gml_Script_s_do_contract_news(_inst,_other,argument0,argument1){{argument0=string_replace(argument0,"$myteam",ds_map_find_value(_inst.gmlmyteam, "name"));argument0=string_replace(argument0,"$position",gml_Script_s_get_string_position(_inst,_other,ds_map_find_value(argument1,"position")));argument0=string_replace(argument0,"$playername",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(argument1,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(argument1,"lname"))));argument0=string_replace(argument0,"$randomteamname",gml_Script_s_get_random_teamname(_inst,_other,false));argument0=string_replace(argument0,"$draftround",_inst.gmldraft_round); gml_Script_s_add_news(_inst,_other,argument0);}}function gml_Script_s_goto_room_contract(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);room_goto(YYASSET_REF(0x0300002A));}}function gml_Script_btn_qb_mode_interested_teams(_inst,_other){{room_goto(YYASSET_REF(0x03000003));}}function gml_GlobalScript_s_update_my_shadow(_inst,_other){(_inst.gmls_update_my_shadow=__yy_method(_inst,gml_Script_s_update_my_shadow));}function gml_Script_s_update_my_shadow(_inst,_other){{layer_sprite_change(_inst.gmlmy_shadow, _inst.sprite_index);layer_sprite_index(_inst.gmlmy_shadow,_inst.image_index);layer_sprite_xscale(_inst.gmlmy_shadow,_inst.image_xscale);layer_sprite_x(_inst.gmlmy_shadow,_inst.x);layer_sprite_y(_inst.gmlmy_shadow,_inst.y);}}function gml_GlobalScript_s_set_up_practice(_inst,_other){(_inst.gmls_set_up_practice=__yy_method(_inst,gml_Script_s_set_up_practice));}function gml_Script_s_set_up_practice(_inst,_other){{gml_Script_slog(_inst,_other,"s_set_up_practice");{var __yy__v1423=GetWithArray(YYASSET_REF(0x00000069)); for(var __yy__v1424 in __yy__v1423){if(!__yy__v1423.hasOwnProperty(__yy__v1424))continue;var __yy__v1425=__yy__v1423[__yy__v1424];__yy__v1425.alarm=__yy_gml_array_check(__yy__v1425.alarm,464635778);__yy__v1425.alarm[__yy_gml_array_check_index_set(0)]=0;}};{var __yy__v1426=GetWithArray(YYASSET_REF(0x00000071));for(var __yy__v1427 in __yy__v1426){if(!__yy__v1426.hasOwnProperty(__yy__v1427))continue;var __yy__v1428=__yy__v1426[__yy__v1427];instance_destroy(__yy__v1428);}};(g_yyPrePostObject__=_inst.gmlpractice_count, _inst.gmlpractice_count=(g_yyPrePostObject__ instanceof Long?_inst.gmlpractice_count.add(1):++_inst.gmlpractice_count),g_yyPrePostObject__);if(yyfequal(_inst.gmlpractice_success,(-1))){{if(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlintro,99)){{var ___sw1320___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice;var ___swc1321___=-1;if(yyCompareVal(___sw1320___,3,g_GMLMathEpsilon,false)==0){___swc1321___=0;}else if(yyCompareVal(___sw1320___,2,g_GMLMathEpsilon,false)==0){___swc1321___=1; }else if(yyCompareVal(___sw1320___,1,g_GMLMathEpsilon,false)==0){___swc1321___=2;}switch(___swc1321___){case 0:{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice=2;_inst.gmlpractice_count=1;_inst.gmlpractice_success=0;break;}case 1:{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice=1;_inst.gmlpractice_count=1;_inst.gmlpractice_success=0;break;}case 2:{room_goto(YYASSET_REF(0x0300000E));return;break;}};};};};};if((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice, 4)))&&(yyGetBool(yyfgreater(_inst.gmlpractice_count,1)))&&(yyGetBool(yyfless(_inst.gmlseconds,1)))){{gml_Script_s_end_qb_mode_practice(_inst,_other);return;};};_inst.gmlstate=2;var gmlmsg_ext="";if((yyGetBool(global.gmlbrowser))&&(yyGetBool((yyGetBool(yyfnotequal(g_pBuiltIn.get_os_type(),4)))&&(yyGetBool(yyfnotequal(g_pBuiltIn.get_os_type(),3)))))){gmlmsg_ext="Browser";}else {if(yyGetBool(global.gmlgamepad)){gmlmsg_ext="Gamepad";};};var ___sw1322___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice; var ___swc1323___=-1;if(yyCompareVal(___sw1322___,1,g_GMLMathEpsilon,false)==0){___swc1323___=0;}else if(yyCompareVal(___sw1322___,2,g_GMLMathEpsilon,false)==0){___swc1323___=1;}else if(yyCompareVal(___sw1322___,3,g_GMLMathEpsilon,false)==0){___swc1323___=2;}else if(yyCompareVal(___sw1322___,4,g_GMLMathEpsilon,false)==0){___swc1323___=3;}switch(___swc1323___){case 0:{var gmlmsg=gml_Script_s_str(_inst,_other,yyfplus("msg_Intro_Kicking",__yy_gml_errCheck(gmlmsg_ext)));if(yyfequal(_inst.gmlpractice_count, 1)){gml_Script_s_create_message(_inst,_other,"",gmlmsg,"",gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,global.gmlc_background,0.7);}else {if(yyfequal(_inst.gmlpractice_success,yyfminus(__yy_gml_errCheck(_inst.gmlpractice_count),1))){gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_Intro_SuccessKick"),"",gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,global.gmlc_background,0.7);}else {gml_Script_s_create_message(_inst, _other,"",gml_Script_s_str(_inst,_other,yyfplus("msg_Intro_KickingFail",__yy_gml_errCheck(gmlmsg_ext))),"",gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,global.gmlc_background,0.7);};};_inst.gmlscrimmage=30;if(yyfequal(_inst.gmlpractice_success,0)){_inst.gmlscrimmage=40;};_inst.gmldrivedir=(-1);if(yyfnotequal(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_drivedir"),0)){_inst.gmldrivedir=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options, "op_drivedir");};gml_Script_s_set_up_fieldgoal(_inst,_other,1);break;}case 1:{var gmlmsg=gml_Script_s_str(_inst,_other,yyfplus("msg_Intro_Running",__yy_gml_errCheck(gmlmsg_ext)));_inst.gmlscrimmage=0;_inst.gmldrivedir=(-1);if(yyfnotequal(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_drivedir"),0)){_inst.gmldrivedir=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_drivedir");};if(yyfequal(_inst.gmlpractice_count,1)){gml_Script_s_create_message(_inst, _other,"",gmlmsg,"",gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,global.gmlc_background,0.7);}else {if(yyfequal(_inst.gmlpractice_success,yyfminus(__yy_gml_errCheck(_inst.gmlpractice_count),1))){gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,yyfplus("msg_Intro_SuccessRun",__yy_gml_errCheck(gmlmsg_ext))),"",gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,global.gmlc_background,0.7);}else {if(yyfequal(_inst.gmlpractice_success, 0)){gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,yyfplus("msg_Intro_RunningFail",__yy_gml_errCheck(gmlmsg_ext))),"",gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,global.gmlc_background,0.7);}else {gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,yyfplus("msg_Intro_ScrambleFail",__yy_gml_errCheck(gmlmsg_ext))),"",gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,global.gmlc_background,0.7);};};};if(yyfgreater(_inst.gmlpractice_success, 0)){gml_Script_s_practice_running_qb(_inst,_other);}else {gml_Script_s_practice_running(_inst,_other);};break;}case 2:{if(yyfequal(_inst.gmlpractice_count,1)){{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,yyfplus("msg_Intro_Passing",__yy_gml_errCheck(gmlmsg_ext))),"",gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,global.gmlc_background,0.7);};}else {if(yyfequal(_inst.gmlpractice_success,yyfminus(__yy_gml_errCheck(_inst.gmlpractice_count),1))){gml_Script_s_create_message(_inst, _other,"",gml_Script_s_str(_inst,_other,"msg_Intro_SuccessPass"),"",gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,global.gmlc_background,0.7);}else {gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,yyfplus("msg_Intro_PassingFail",__yy_gml_errCheck(gmlmsg_ext))),"",gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,global.gmlc_background,0.7);};};_inst.gmlscrimmage=0;_inst.gmldrivedir=(-1);if(yyfnotequal(ds_map_find_value(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlmap_options,"op_drivedir"),0)){_inst.gmldrivedir=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_drivedir");};gml_Script_s_practice_passing(_inst,_other);break;}case 3:{if(yyfequal(_inst.gmlpractice_count,1)){gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_QB_Training"),"",gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,global.gmlc_background,0.7);};_inst.gmlscrimmage=0;_inst.gmldrivedir=(-1); _inst.gmlminutes=0;if(yyfequal(_inst.gmlpractice_count,1)){_inst.gmlseconds=30;};if(yyfnotequal(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_drivedir"),0)){_inst.gmldrivedir=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_drivedir");};gml_Script_s_practice_qb_mode(_inst,_other);break;}};}}function gml_GlobalScript_s_practice_passing(_inst,_other){(_inst.gmls_practice_passing=__yy_method(_inst,gml_Script_s_practice_passing));}function gml_Script_s_practice_passing(_inst, _other){{show_debug_message("s_practice_passing");_inst.gmlplaystart_time=g_pBuiltIn.get_current_time();_inst.gmlkicking=0;_inst.gmlx_scrim=yyfplus(1300,__yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(_inst.gmlscrimmage),20),__yy_gml_errCheck(_inst.gmldrivedir))));_inst.gmlx_yards=yyfplus(__yy_gml_errCheck(_inst.gmlx_scrim),__yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(_inst.gmlyards),20),__yy_gml_errCheck(_inst.gmldrivedir))));_inst.gmly_scrim=300;gml_Script_s_destroy_match_objects(_inst, _other);var gmlqb=instance_create_layer(0,0,"Players",YYASSET_REF(0x0000006C));var gmlrb=instance_create_layer(0,0,"Players",YYASSET_REF(0x0000006C));var gmlol1=instance_create_layer(0,0,"Players",YYASSET_REF(0x0000006C));var gmlol2=instance_create_layer(0,0,"Players",YYASSET_REF(0x0000006C));var gmlol3=instance_create_layer(0,0,"Players",YYASSET_REF(0x0000006C));var gmlol4=instance_create_layer(0,0,"Players",YYASSET_REF(0x0000006C));var gmlol5=instance_create_layer(0,0,"Players",YYASSET_REF(0x0000006C)); var gmlte=instance_create_layer(0,0,"Players",YYASSET_REF(0x0000006C));var gmlwr=instance_create_layer(0,0,"Players",YYASSET_REF(0x0000006C));instance_destroy(_inst,gmlrb);instance_destroy(_inst,gmlol2);instance_destroy(_inst,gmlol3);instance_destroy(_inst,gmlol4);instance_destroy(_inst,gmlol5);instance_destroy(_inst,gmlte);{var __yy__v1429=GetWithArray(YYASSET_REF(0x0000006B));for(var __yy__v1430 in __yy__v1429){if(!__yy__v1429.hasOwnProperty(__yy__v1430))continue;var __yy__v1431=__yy__v1429[__yy__v1430]; gml_Script_s_set_skills_and_skin(__yy__v1431,_inst);}};global.gmlmaster_ball=instance_create_layer(0,0,"Ball",YYASSET_REF(0x0000006F));instance_create_layer(0,0,"Ball",YYASSET_REF(0x00000070));{var __yy__v1432=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v1433 in __yy__v1432){if(!__yy__v1432.hasOwnProperty(__yy__v1433))continue;var __yy__v1434=__yy__v1432[__yy__v1433];{__yy__v1434.gmlstate=1;__yy__v1434.gmlcomm_stage=14;__yy__v1434.gmlcomm_txt="";__yy__v1434.gmlcomm_proceed=false;__yy__v1434.gmltap_msg=gml_Script_s_str(__yy__v1434, _inst,"training_Throw1");if(yyGetBool(global.gmlgamepad)){__yy__v1434.gmlcomm_proceed=true;};}}};}}function gml_GlobalScript_s_reinstate_hof_player(_inst,_other){(_inst.gmls_reinstate_hof_player=__yy_method(_inst,gml_Script_s_reinstate_hof_player));}function gml_Script_s_reinstate_hof_player(_inst,_other){{return;{var __yy__v1435=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1436 in __yy__v1435){if(!__yy__v1435.hasOwnProperty(__yy__v1436))continue;var __yy__v1437=__yy__v1435[__yy__v1436];{if(yyGetBool(__yy__v1437.gmlviewing_hof_players)){ {gml_Script_slog(__yy__v1437,_inst,"s_reinstate_hof_player");if(yyGetBool(ds_list_find_index(__yy__v1437.gmlroster,__yy__v1437.gmlplayer_profile))){{gml_Script_s_create_message(__yy__v1437,_inst,"",gml_Script_s_str(__yy__v1437,_inst,"msg_Reinstate_OnRoster"),gml_Script_s_str(__yy__v1437,_inst,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,0.7);};}else {{ds_map_set(__yy__v1437.gmlplayer_profile,"salary",gml_Script_s_get_new_salary(__yy__v1437,_inst,__yy__v1437.gmlplayer_profile)); ds_map_set(__yy__v1437.gmlplayer_profile,"contract",1);gml_Script_btn_click_Profile_Pick(__yy__v1437,_inst);};};};};}}};}}function gml_GlobalScript_s_practice_running(_inst,_other){(_inst.gmls_practice_running=__yy_method(_inst,gml_Script_s_practice_running));}function gml_Script_s_practice_running(_inst,_other){{show_debug_message("s_practice_running");_inst.gmlplaystart_time=g_pBuiltIn.get_current_time();_inst.gmlkicking=0;_inst.gmlx_scrim=yyfminus(1300,__yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(_inst.gmlscrimmage), 20),__yy_gml_errCheck(_inst.gmldrivedir))));_inst.gmlx_scrim=yyfplus(_inst.gmlx_scrim,yyftime(500,__yy_gml_errCheck(_inst.gmldrivedir)));_inst.gmlx_yards=yyfplus(__yy_gml_errCheck(_inst.gmlx_scrim),__yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(_inst.gmlyards),20),__yy_gml_errCheck(_inst.gmldrivedir))));_inst.gmly_scrim=300;gml_Script_s_destroy_match_objects(_inst,_other);var gmlqb=instance_create_layer(0,0,"Players",YYASSET_REF(0x0000006C));var gmlol1=instance_create_layer(0,0,"Players",YYASSET_REF(0x0000006C)); instance_create_layer(0,0,"Players",YYASSET_REF(0x0000006C));var gmlsx=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmlqb).x),__yy_gml_errCheck(yyftime(60,__yy_gml_errCheck(_inst.gmldrivedir))));var gmlsy=yyInst(_inst,_other,gmlqb).y;var gmld=1;for(;yyfless(gmld,4);(g_yyPrePostObject__=gmld,gmld=(g_yyPrePostObject__ instanceof Long?gmld.add(1):++gmld),g_yyPrePostObject__)){{gmlsx=yyfplus(gmlsx,yyftime(120,__yy_gml_errCheck(_inst.gmldrivedir)));gml_Script_s_create_dummy(_inst,_other,gmlsx,gmlsy,random_range(1.5, 1.5),0,40);}};gml_Script_s_create_boundary(_inst,_other,2,300,250,2000);gml_Script_s_create_boundary(_inst,_other,3,300,350,2000);global.gmlmaster_ball=instance_create_layer(0,0,"Ball",YYASSET_REF(0x0000006F));instance_create_layer(0,0,"Ball",YYASSET_REF(0x00000070));{var __yy__v1438=GetWithArray(YYASSET_REF(0x0000006B));for(var __yy__v1439 in __yy__v1438){if(!__yy__v1438.hasOwnProperty(__yy__v1439))continue;var __yy__v1440=__yy__v1438[__yy__v1439];gml_Script_s_set_skills_and_skin(__yy__v1440,_inst); }};{var __yy__v1441=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v1442 in __yy__v1441){if(!__yy__v1441.hasOwnProperty(__yy__v1442))continue;var __yy__v1443=__yy__v1441[__yy__v1442];{__yy__v1443.gmlstate=1;__yy__v1443.gmlcomm_stage=14;__yy__v1443.gmlcomm_txt="";__yy__v1443.gmlcomm_proceed=false;__yy__v1443.gmltap_msg=gml_Script_s_str(__yy__v1443,_inst,"training_Running1");if((yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),0)))||(yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),1)))){__yy__v1443.gmltap_msg=gml_Script_s_str(__yy__v1443, _inst,"training_Running1b");};if(yyGetBool(global.gmlgamepad)){__yy__v1443.gmlcomm_proceed=true;};}}};}}function gml_GlobalScript_s_practice_running_qb(_inst,_other){(_inst.gmls_practice_running_qb=__yy_method(_inst,gml_Script_s_practice_running_qb));}function gml_Script_s_practice_running_qb(_inst,_other){{show_debug_message("s_practice_running_qb");_inst.gmlplaystart_time=g_pBuiltIn.get_current_time();_inst.gmlkicking=0;_inst.gmlx_scrim=yyfminus(1300,__yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(_inst.gmlscrimmage), 20),__yy_gml_errCheck(_inst.gmldrivedir))));_inst.gmlx_scrim=yyfplus(_inst.gmlx_scrim,yyftime(600,__yy_gml_errCheck(_inst.gmldrivedir)));_inst.gmlx_yards=yyfplus(__yy_gml_errCheck(_inst.gmlx_scrim),__yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(_inst.gmlyards),20),__yy_gml_errCheck(_inst.gmldrivedir))));_inst.gmly_scrim=300;gml_Script_s_destroy_match_objects(_inst,_other);var gmlqb=instance_create_layer(0,0,"Players",YYASSET_REF(0x0000006C));var gmlrb=instance_create_layer(0,0,"Players",YYASSET_REF(0x0000006C)); var gmlol1=instance_create_layer(0,0,"Players",YYASSET_REF(0x0000006C));var gmlol2=instance_create_layer(0,0,"Players",YYASSET_REF(0x0000006C));var gmlol3=instance_create_layer(0,0,"Players",YYASSET_REF(0x0000006C));var gmlol4=instance_create_layer(0,0,"Players",YYASSET_REF(0x0000006C));var gmlol5=instance_create_layer(0,0,"Players",YYASSET_REF(0x0000006C));instance_destroy(_inst,gmlrb);instance_destroy(_inst,gmlol2);instance_destroy(_inst,gmlol3);instance_destroy(_inst,gmlol4);instance_destroy(_inst, gmlol5);{var __yy__v1444=GetWithArray(YYASSET_REF(0x0000006B));for(var __yy__v1445 in __yy__v1444){if(!__yy__v1444.hasOwnProperty(__yy__v1445))continue;var __yy__v1446=__yy__v1444[__yy__v1445];gml_Script_s_set_skills_and_skin(__yy__v1446,_inst);}};global.gmlmaster_ball=instance_create_layer(0,0,"Ball",YYASSET_REF(0x0000006F));instance_create_layer(0,0,"Ball",YYASSET_REF(0x00000070));{var __yy__v1447=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v1448 in __yy__v1447){if(!__yy__v1447.hasOwnProperty(__yy__v1448))continue; var __yy__v1449=__yy__v1447[__yy__v1448];{__yy__v1449.gmlstate=1;__yy__v1449.gmlcomm_stage=14;__yy__v1449.gmlcomm_txt="";__yy__v1449.gmlcomm_proceed=false;__yy__v1449.gmltap_msg=gml_Script_s_str(__yy__v1449,_inst,"training_Throw3");if(yyGetBool(global.gmlgamepad)){__yy__v1449.gmlcomm_proceed=true;};}}};}}function gml_GlobalScript_s_obj_controller_helpers(_inst,_other){(_inst.gmls_obj_controller_step=__yy_method(_inst,gml_Script_s_obj_controller_step));}function gml_Script_s_obj_controller_step(_inst, _other){{(g_yyPrePostObject__=global.gmlreplay_tick,global.gmlreplay_tick=(g_yyPrePostObject__ instanceof Long?global.gmlreplay_tick.add(1):++global.gmlreplay_tick),g_yyPrePostObject__);if(yyfgreater(g_pBuiltIn.get_current_time(),yyfplus(__yy_gml_errCheck(_inst.gmlfps_timer),100))){{_inst.gmlfps_timer=g_pBuiltIn.get_current_time();_inst.gmlmyfps=yyfplus(_inst.gmlmyfps,g_pBuiltIn.fps_real);_inst.gmlmyfps=round(yyfdivide(__yy_gml_errCheck(_inst.gmlmyfps),2));};};_inst.gmlcontrol_alpha=yyfminus(_inst.gmlcontrol_alpha, 0.01);if((yyGetBool(global.gmlgamepad))&&(yyGetBool(gamepad_button_check(yyInst(_inst,_other,global.gmlgp).gmlslot,global.gmlgp_select)))){_inst.gmlcontrol_alpha=5;};if(yyfequal(_inst.gmlscored_by,1)){_inst.gmlcheer_frame=yyfplus(_inst.gmlcheer_frame,0.05);}else {_inst.gmlcheer_frame=0;};var ___sw1326___=_inst.gmlstate;var ___swc1327___=-1;if(yyCompareVal(___sw1326___,1,g_GMLMathEpsilon,false)==0){___swc1327___=0;}else if(yyCompareVal(___sw1326___,2,g_GMLMathEpsilon,false)==0){___swc1327___=1;}else if(yyCompareVal(___sw1326___, 3,g_GMLMathEpsilon,false)==0){___swc1327___=2;}switch(___swc1327___){case 0:{var gmlinp=false;{var __yy__v1450=GetWithArray(global.gmlmaster_ball);for(var __yy__v1451 in __yy__v1450){if(!__yy__v1450.hasOwnProperty(__yy__v1451))continue;var __yy__v1452=__yy__v1450[__yy__v1451];if(yyGetBool(__yy__v1452.gmlvelocity)){gmlinp=true;};}};if((yyGetBool((yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other)))&&(yyGetBool(mouse_check_button_released(1)))))||(yyGetBool(keyboard_check_pressed(38)))||(yyGetBool(keyboard_check_pressed(40)))){ gmlinp=true;};if(yyGetBool(instance_exists(YYASSET_REF(0x00000020)))){gmlinp=false;}else {if((yyGetBool(global.gmlgamepad))&&(yyGetBool(gamepad_button_check_released(yyInst(_inst,_other,global.gmlgp).gmlslot,global.gmlgp_select)))){gmlinp=true;};};if((yyGetBool(gmlinp))||(yyGetBool(_inst.gmlcomm_proceed))){{gml_Script_s_clear_clock(_inst,_other);gml_Script_s_update_commentary(_inst,_other);};};gml_Script_s_update_game_clock(_inst,_other);gml_Script_s_pause_step(_inst,_other);return;break;}case 1:{ if(yyfequal(instance_number(YYASSET_REF(0x0000006F)),0)){{gml_Script_slog(_inst,_other,"obj_controller:STATE_ACTION");gml_Script_slog_roster(_inst,_other,"controller step",0);gml_Script_slog_roster(_inst,_other,"controller step",1);gml_Script_s_set_up_play(_inst,_other,false);gml_Script_s_create_head2head_message(_inst,_other);};};gml_Script_s_update_game_timer(_inst,_other);if(yyfnotequal(g_pBuiltIn.get_os_type(),21)){gml_Script_s_update_manual_gestures(_inst,_other);};if(yyGetBool(global.gmldebug)){ gml_Script_s_check_ingame_control_change(_inst,_other);};break;}case 2:{gml_Script_s_replay_controls(_inst,_other);gml_Script_s_pause_step(_inst,_other);return;break;}};{var __yy__v1453=GetWithArray(global.gmlmaster_ball);for(var __yy__v1454 in __yy__v1453){if(!__yy__v1453.hasOwnProperty(__yy__v1454))continue;var __yy__v1455=__yy__v1453[__yy__v1454];{if((yyGetBool(__yy__v1455.gmlis_dead))&&(yyGetBool(yyflessequal(_inst.alarm[__yy_gml_array_check_index(0,_inst.alarm)],0)))){{_inst.alarm=__yy_gml_array_check(_inst.alarm, 1584050178);_inst.alarm[__yy_gml_array_check_index_set(0)]=100;if((yyGetBool(yyfequal(__yy__v1455.gmlstate,6)))||(yyGetBool(yyfequal(__yy__v1455.gmlstate,4)))){_inst.alarm[__yy_gml_array_check_index_set(0)]=200;};};};}}};gml_Script_s_pause_step(_inst,_other);}}function gml_GlobalScript_s_create_dummy(_inst,_other){(_inst.gmls_create_dummy=__yy_method(_inst,gml_Script_s_create_dummy));}function gml_Script_s_create_dummy(_inst,_other,argument0,argument1,argument2,argument3,argument4){{var gmldummy=instance_create_layer(0, 0,"Players",YYASSET_REF(0x0000006E));yyInst(_inst,_other,gmldummy).x=argument0;yyInst(_inst,_other,gmldummy).y=argument1;yyInst(_inst,_other,gmldummy).gmlstart_x=argument0;yyInst(_inst,_other,gmldummy).gmlstart_y=argument1;yyInst(_inst,_other,gmldummy).gmlmove_speed=argument2;yyInst(_inst,_other,gmldummy).gmlrange_x=argument3;yyInst(_inst,_other,gmldummy).gmlrange_y=argument4;yyInst(_inst,_other,gmldummy).gmledge_pause=yyfplus(250,__yy_gml_errCheck(irandom(1250)));}}function gml_GlobalScript_s_create_boundary(_inst, _other,argument0,argument1,argument2,argument3){(_inst.gmls_create_boundary=__yy_method(_inst,gml_Script_s_create_boundary));}function gml_Script_s_create_boundary(_inst,_other,argument0,argument1,argument2,argument3){{var gmltyp=argument0;var gmlbx=argument1;var gmlby=argument2;var gmllen=argument3;var gmlb=instance_create_layer(gmlbx,gmlby,"Shadows",YYASSET_REF(0x00000075));yyInst(_inst,_other,gmlb).gmlbound_type=gmltyp;yyInst(_inst,_other,gmlb).gmlbound_len=gmllen;}}function gml_GlobalScript_debug_scripts(_inst, _other){(_inst.gmls_debug_window_size=__yy_method(_inst,gml_Script_s_debug_window_size));(_inst.gmls_is_debug_desktop=__yy_method(_inst,gml_Script_s_is_debug_desktop));(_inst.gmls_set_desktop_dev_window_size=__yy_method(_inst,gml_Script_s_set_desktop_dev_window_size));(_inst.gmls_co_debug_access=__yy_method(_inst,gml_Script_s_co_debug_access));(_inst.gmls_debug_bypass=__yy_method(_inst,gml_Script_s_debug_bypass));(_inst.gmls_debug_room_init=__yy_method(_inst,gml_Script_s_debug_room_init));(_inst.gmls_debug_init_menu=__yy_method(_inst, gml_Script_s_debug_init_menu));(_inst.gmls_give_debug_cc=__yy_method(_inst,gml_Script_s_give_debug_cc));(_inst.gmlbtn_click_debug_main=__yy_method(_inst,gml_Script_btn_click_debug_main));(_inst.gmlbtn_click_debug_team_ranking=__yy_method(_inst,gml_Script_btn_click_debug_team_ranking));(_inst.gmlbtn_click_debug_test_screen=__yy_method(_inst,gml_Script_btn_click_debug_test_screen));(_inst.gmlbtn_click_debug_review_screen=__yy_method(_inst,gml_Script_btn_click_debug_review_screen));(_inst.gmlbtn_click_debug_skip_regular_season=__yy_method(_inst, gml_Script_btn_click_debug_skip_regular_season));(_inst.gmlbtn_click_debug_skip_next_match=__yy_method(_inst,gml_Script_btn_click_debug_skip_next_match));(_inst.gmlbtn_click_debug_force_skip_result=__yy_method(_inst,gml_Script_btn_click_debug_force_skip_result));(_inst.gmls_get_forced_skip_result_readout=__yy_method(_inst,gml_Script_s_get_forced_skip_result_readout));(_inst.gmlbtn_click_debug_test_pool_creation=__yy_method(_inst,gml_Script_btn_click_debug_test_pool_creation));(_inst.gmlbtn_click_debug_team_editor_franchise_screen=__yy_method(_inst, gml_Script_btn_click_debug_team_editor_franchise_screen));(_inst.gmlbtn_click_debug_editor_screen=__yy_method(_inst,gml_Script_btn_click_debug_editor_screen));(_inst.gmlbtn_click_debug_switch_data_version=__yy_method(_inst,gml_Script_btn_click_debug_switch_data_version));(_inst.gmls_get_alternative_data_version=__yy_method(_inst,gml_Script_s_get_alternative_data_version));(_inst.gmls_debug_init_team_ranking=__yy_method(_inst,gml_Script_s_debug_init_team_ranking));(_inst.gmlbtn_dbg_list_prev_conference=__yy_method(_inst, gml_Script_btn_dbg_list_prev_conference));(_inst.gmlbtn_dbg_list_next_conference=__yy_method(_inst,gml_Script_btn_dbg_list_next_conference));(_inst.gmls_clamp_conference_id=__yy_method(_inst,gml_Script_s_clamp_conference_id));(_inst.gmls_dbg_team_ranking_draw_gui=__yy_method(_inst,gml_Script_s_dbg_team_ranking_draw_gui));(_inst.gmlbtn_click_debug_test_sim_odds=__yy_method(_inst,gml_Script_btn_click_debug_test_sim_odds));(_inst.gmls_debug_list_bracketed_fixtures=__yy_method(_inst,gml_Script_s_debug_list_bracketed_fixtures)); (_inst.gmls_debug_start_time=__yy_method(_inst,gml_Script_s_debug_start_time));(_inst.gmls_debug_show_time=__yy_method(_inst,gml_Script_s_debug_show_time));(_inst.gmls_set_exception_reporter=__yy_method(_inst,gml_Script_s_set_exception_reporter));(_inst.gmls_fake_crash=__yy_method(_inst,gml_Script_s_fake_crash));(_inst.gmls_fake_crash_safe=__yy_method(_inst,gml_Script_s_fake_crash_safe));(_inst.gmls_safe_run=__yy_method(_inst,gml_Script_s_safe_run));(_inst.gmls_safe_run_catch=__yy_method(_inst,gml_Script_s_safe_run_catch)); (_inst.gmls_safe_run_msg=__yy_method(_inst,gml_Script_s_safe_run_msg));(_inst.gmls_safe_run_crash_report=__yy_method(_inst,gml_Script_s_safe_run_crash_report));(_inst.gmls_safe_run_crash_save=__yy_method(_inst,gml_Script_s_safe_run_crash_save));}function gml_Script_s_debug_window_size(_inst,_other){{if(!yyGetBool(global.gmldebug)){return;};if((yyGetBool(keyboard_check_pressed(76)))&&(yyGetBool(yyfnotequal(g_pBuiltIn.get_current_room(),YYASSET_REF(0x03000038))))){{gml_Script_slogf(_inst,_other,"Force change resolution. Current %1p", window_get_height());if((yyGetBool(yyfequal(window_get_height(),480)))||(yyGetBool(yyfequal(window_get_height(),810)))){window_set_size(1280,720);}else {window_set_size(640,480);};gml_Script_s_create_camera(_inst,_other);gml_Script_slogf(_inst,_other,"Window: %1x%2",window_get_width(),window_get_height());gml_Script_slogf(_inst,_other,"Screen: %1x%2",display_get_width(),display_get_height());};};}}function gml_Script_s_is_debug_desktop(_inst,_other){{return(yyGetBool(yyfequal(g_pBuiltIn.get_os_type(), 1)))&&(yyGetBool(!yyGetBool(global.gmlbrowser)))&&(yyGetBool(global.gmldebug));}}function gml_Script_s_set_desktop_dev_window_size(_inst,_other){{if(yyGetBool(gml_Script_s_is_debug_desktop(_inst,_other))){{window_set_size(960,540);};}else {window_set_size(960,540);};}}function gml_Script____struct___153_s_co_debug_access_gml_GlobalScript_debug_scripts(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___153_s_co_debug_access_gml_GlobalScript_debug_scripts";}if(gml_Script____struct___153_s_co_debug_access_gml_GlobalScript_debug_scripts.prototype.__type===undefined){ gml_Script____struct___153_s_co_debug_access_gml_GlobalScript_debug_scripts.prototype.__type="gml_Script____struct___153_s_co_debug_access_gml_GlobalScript_debug_scripts";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___153_s_co_debug_access_gml_GlobalScript_debug_scripts.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext="dbg";_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.image_yscale=0.53;}}}}function gml_Script_s_co_debug_access(_inst, _other){{if((yyGetBool(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))))||(yyGetBool(!yyGetBool(global.gmldebug)))){return;};gml_Script_s_create_button(_inst,_other,384,8,__yy_gml_object_create(_inst,(_inst.gml___struct___153=__yy_method(_inst,gml_Script____struct___153_s_co_debug_access_gml_GlobalScript_debug_scripts)),kgml_Script_btn_click_debug_main));}}function gml_Script_s_debug_bypass(_inst,_other){{if((yyGetBool(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))))||(yyGetBool(!yyGetBool(global.gmldebug)))){ return;};if(yyfnotequal(global.gmldebug_force_skip_result,0)){{var gmlaw=(yyfequal(ds_map_find_value(array_get(_inst.gmlteam,0),"uid"),yyInst(_inst,_other,global.gmlg_m).gmlmyteam_id)?1:(-1));_inst.gmlteam_score=__yy_gml_array_check(_inst.gmlteam_score,4137727317);_inst.gmlteam_score[__yy_gml_array_check_index_set(0)]=yyfplus(14,__yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(gmlaw),__yy_gml_errCheck(global.gmldebug_force_skip_result)),7)));_inst.gmlteam_score[__yy_gml_array_check_index_set(1)]=yyfminus(14, __yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(gmlaw),__yy_gml_errCheck(global.gmldebug_force_skip_result)),7)));gml_Script_s_end_match(_inst,_other,global.gmldebug_force_skip_result);};};}}function gml_Script_s_debug_room_init(_inst,_other){{gml_Script_s_init_rm(_inst,_other);gml_Script_s_set_var_if_missing(_inst,_other,"init",kgml_Script_s_debug_init_menu);if(yyGetBool(_inst.gmlinit)){__yyg_call_method(_inst.gmlinit)(_inst,_other);};}}function gml_Script____struct___154_s_debug_init_menu_gml_GlobalScript_debug_scripts(_inst, _other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___154_s_debug_init_menu_gml_GlobalScript_debug_scripts";}if(gml_Script____struct___154_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype.__type===undefined){gml_Script____struct___154_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype.__type="gml_Script____struct___154_s_debug_init_menu_gml_GlobalScript_debug_scripts";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___154_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype); {var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext="";_inst.gmlimage=YYASSET_REF(0x0100008E);_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(0),$$args)];}}}}function gml_Script____struct___155_s_debug_init_menu_gml_GlobalScript_debug_scripts(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___155_s_debug_init_menu_gml_GlobalScript_debug_scripts";}if(gml_Script____struct___155_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype.__type===undefined){ gml_Script____struct___155_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype.__type="gml_Script____struct___155_s_debug_init_menu_gml_GlobalScript_debug_scripts";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___155_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext="Conferences and Teams";_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.image_xscale=6;_inst.image_yscale=0.5; }}}}function gml_Script____struct___156_s_debug_init_menu_gml_GlobalScript_debug_scripts(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___156_s_debug_init_menu_gml_GlobalScript_debug_scripts";}if(gml_Script____struct___156_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype.__type===undefined){gml_Script____struct___156_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype.__type="gml_Script____struct___156_s_debug_init_menu_gml_GlobalScript_debug_scripts"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___156_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext="Results Screen";_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.image_xscale=6;_inst.image_yscale=0.5;}}}}function gml_Script____struct___157_s_debug_init_menu_gml_GlobalScript_debug_scripts(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___157_s_debug_init_menu_gml_GlobalScript_debug_scripts"; }if(gml_Script____struct___157_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype.__type===undefined){gml_Script____struct___157_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype.__type="gml_Script____struct___157_s_debug_init_menu_gml_GlobalScript_debug_scripts";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___157_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext="Review Screen"; _inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.image_xscale=6;_inst.image_yscale=0.5;}}}}function gml_Script____struct___158_s_debug_init_menu_gml_GlobalScript_debug_scripts(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___158_s_debug_init_menu_gml_GlobalScript_debug_scripts";}if(gml_Script____struct___158_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype.__type===undefined){gml_Script____struct___158_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype.__type="gml_Script____struct___158_s_debug_init_menu_gml_GlobalScript_debug_scripts"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___158_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext="Team Editor (Franchise)";_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.image_xscale=6;_inst.image_yscale=0.5;}}}}function gml_Script____struct___159_s_debug_init_menu_gml_GlobalScript_debug_scripts(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___159_s_debug_init_menu_gml_GlobalScript_debug_scripts"; }if(gml_Script____struct___159_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype.__type===undefined){gml_Script____struct___159_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype.__type="gml_Script____struct___159_s_debug_init_menu_gml_GlobalScript_debug_scripts";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___159_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext="Team Editor (College)"; _inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.image_xscale=6;_inst.image_yscale=0.5;}}}}function gml_Script____struct___160_s_debug_init_menu_gml_GlobalScript_debug_scripts(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___160_s_debug_init_menu_gml_GlobalScript_debug_scripts";}if(gml_Script____struct___160_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype.__type===undefined){gml_Script____struct___160_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype.__type="gml_Script____struct___160_s_debug_init_menu_gml_GlobalScript_debug_scripts"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___160_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext="Test FCS pool creation";_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.image_xscale=6;_inst.image_yscale=0.5;}}}}function gml_Script____struct___161_s_debug_init_menu_gml_GlobalScript_debug_scripts(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___161_s_debug_init_menu_gml_GlobalScript_debug_scripts"; }if(gml_Script____struct___161_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype.__type===undefined){gml_Script____struct___161_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype.__type="gml_Script____struct___161_s_debug_init_menu_gml_GlobalScript_debug_scripts";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___161_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext="Test sim odds"; _inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.image_xscale=6;_inst.image_yscale=0.5;}}}}function gml_Script____struct___162_s_debug_init_menu_gml_GlobalScript_debug_scripts(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___162_s_debug_init_menu_gml_GlobalScript_debug_scripts";}if(gml_Script____struct___162_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype.__type===undefined){gml_Script____struct___162_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype.__type="gml_Script____struct___162_s_debug_init_menu_gml_GlobalScript_debug_scripts"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___162_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.image_xscale=6;_inst.image_yscale=0.5;}}}}function gml_Script____struct___163_s_debug_init_menu_gml_GlobalScript_debug_scripts(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___163_s_debug_init_menu_gml_GlobalScript_debug_scripts"; }if(gml_Script____struct___163_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype.__type===undefined){gml_Script____struct___163_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype.__type="gml_Script____struct___163_s_debug_init_menu_gml_GlobalScript_debug_scripts";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___163_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext="Skip Next match"; _inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.image_xscale=6;_inst.image_yscale=0.5;}}}}function gml_Script____struct___164_s_debug_init_menu_gml_GlobalScript_debug_scripts(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___164_s_debug_init_menu_gml_GlobalScript_debug_scripts";}if(gml_Script____struct___164_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype.__type===undefined){gml_Script____struct___164_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype.__type="gml_Script____struct___164_s_debug_init_menu_gml_GlobalScript_debug_scripts"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___164_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext="Skip Regular Season";_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.image_xscale=6;_inst.image_yscale=0.5;}}}}function gml_Script____struct___165_s_debug_init_menu_gml_GlobalScript_debug_scripts(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___165_s_debug_init_menu_gml_GlobalScript_debug_scripts"; }if(gml_Script____struct___165_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype.__type===undefined){gml_Script____struct___165_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype.__type="gml_Script____struct___165_s_debug_init_menu_gml_GlobalScript_debug_scripts";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___165_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0), $$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gml_version=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.image_xscale=6;_inst.image_yscale=0.5;}}}}function gml_Script____struct___166_s_debug_init_menu_gml_GlobalScript_debug_scripts(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___166_s_debug_init_menu_gml_GlobalScript_debug_scripts";}if(gml_Script____struct___166_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype.__type===undefined){ gml_Script____struct___166_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype.__type="gml_Script____struct___166_s_debug_init_menu_gml_GlobalScript_debug_scripts";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___166_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext="Trigger Player Awards";_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.image_xscale=6;_inst.image_yscale=0.5; }}}}function gml_Script____struct___167_s_debug_init_menu_gml_GlobalScript_debug_scripts(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___167_s_debug_init_menu_gml_GlobalScript_debug_scripts";}if(gml_Script____struct___167_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype.__type===undefined){gml_Script____struct___167_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype.__type="gml_Script____struct___167_s_debug_init_menu_gml_GlobalScript_debug_scripts"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___167_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext="Force Crash";_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.image_xscale=6;_inst.image_yscale=0.5;}}}}function gml_Script____struct___168_s_debug_init_menu_gml_GlobalScript_debug_scripts(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___168_s_debug_init_menu_gml_GlobalScript_debug_scripts"; }if(gml_Script____struct___168_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype.__type===undefined){gml_Script____struct___168_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype.__type="gml_Script____struct___168_s_debug_init_menu_gml_GlobalScript_debug_scripts";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___168_s_debug_init_menu_gml_GlobalScript_debug_scripts.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext="Rosebud";_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(0), $$args)];_inst.image_xscale=6;_inst.image_yscale=0.5;}}}}function gml_Script_s_debug_init_menu(_inst,_other){{gml_Script_s_create_button(_inst,_other,8,232,__yy_gml_object_create(_inst,(_inst.gml___struct___154=__yy_method(_inst,gml_Script____struct___154_s_debug_init_menu_gml_GlobalScript_debug_scripts)),kgml_Script_btn_click_Home),YYASSET_REF(0x00000025));var gmlr=1;gml_Script_s_create_button(_inst,_other,8,yyftime(20,__yy_gml_errCheck((g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr), g_yyPrePostObject__))),__yy_gml_object_create(_inst,(_inst.gml___struct___155=__yy_method(_inst,gml_Script____struct___155_s_debug_init_menu_gml_GlobalScript_debug_scripts)),kgml_Script_btn_click_debug_team_ranking));gml_Script_s_create_button(_inst,_other,8,yyftime(20,__yy_gml_errCheck((g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__))),__yy_gml_object_create(_inst,(_inst.gml___struct___156=__yy_method(_inst,gml_Script____struct___156_s_debug_init_menu_gml_GlobalScript_debug_scripts)), kgml_Script_btn_click_debug_test_screen));gml_Script_s_create_button(_inst,_other,8,yyftime(20,__yy_gml_errCheck((g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__))),__yy_gml_object_create(_inst,(_inst.gml___struct___157=__yy_method(_inst,gml_Script____struct___157_s_debug_init_menu_gml_GlobalScript_debug_scripts)),kgml_Script_btn_click_debug_review_screen));gml_Script_s_create_button(_inst,_other,8,yyftime(20,__yy_gml_errCheck((g_yyPrePostObject__=gmlr, gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__))),__yy_gml_object_create(_inst,(_inst.gml___struct___158=__yy_method(_inst,gml_Script____struct___158_s_debug_init_menu_gml_GlobalScript_debug_scripts)),kgml_Script_btn_click_debug_team_editor_franchise_screen));gml_Script_s_create_button(_inst,_other,8,yyftime(20,__yy_gml_errCheck((g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__))),__yy_gml_object_create(_inst, (_inst.gml___struct___159=__yy_method(_inst,gml_Script____struct___159_s_debug_init_menu_gml_GlobalScript_debug_scripts)),kgml_Script_btn_click_debug_editor_screen));gml_Script_s_create_button(_inst,_other,8,yyftime(20,__yy_gml_errCheck((g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__))),__yy_gml_object_create(_inst,(_inst.gml___struct___160=__yy_method(_inst,gml_Script____struct___160_s_debug_init_menu_gml_GlobalScript_debug_scripts)),kgml_Script_btn_click_debug_test_pool_creation)); gml_Script_s_create_button(_inst,_other,8,yyftime(20,__yy_gml_errCheck((g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__))),__yy_gml_object_create(_inst,(_inst.gml___struct___161=__yy_method(_inst,gml_Script____struct___161_s_debug_init_menu_gml_GlobalScript_debug_scripts)),kgml_Script_btn_click_debug_test_sim_odds));gmlr=1;gml_Script_s_create_button(_inst,_other,240,yyftime(20,__yy_gml_errCheck((g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr), g_yyPrePostObject__))),__yy_gml_object_create(_inst,(_inst.gml___struct___162=__yy_method(_inst,gml_Script____struct___162_s_debug_init_menu_gml_GlobalScript_debug_scripts)),gml_Script_s_get_forced_skip_result_readout(_inst,_other),kgml_Script_btn_click_debug_force_skip_result));gml_Script_s_create_button(_inst,_other,240,yyftime(20,__yy_gml_errCheck((g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__))),__yy_gml_object_create(_inst,(_inst.gml___struct___163=__yy_method(_inst, gml_Script____struct___163_s_debug_init_menu_gml_GlobalScript_debug_scripts)),kgml_Script_btn_click_debug_skip_next_match));gml_Script_s_create_button(_inst,_other,240,yyftime(20,__yy_gml_errCheck((g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__))),__yy_gml_object_create(_inst,(_inst.gml___struct___164=__yy_method(_inst,gml_Script____struct___164_s_debug_init_menu_gml_GlobalScript_debug_scripts)),kgml_Script_btn_click_debug_skip_regular_season)); (g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__);gml_Script_s_create_button(_inst,_other,240,yyftime(20,__yy_gml_errCheck((g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__))),__yy_gml_object_create(_inst,(_inst.gml___struct___165=__yy_method(_inst,gml_Script____struct___165_s_debug_init_menu_gml_GlobalScript_debug_scripts)),gml_Script_s_strfl(_inst,_other,"Switch data version (v%1)", gml_Script_s_get_alternative_data_version(_inst,_other)),kgml_Script_btn_click_debug_switch_data_version,gml_Script_s_get_alternative_data_version(_inst,_other)));gml_Script_s_create_button(_inst,_other,240,yyftime(20,__yy_gml_errCheck((g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__))),__yy_gml_object_create(_inst,(_inst.gml___struct___166=__yy_method(_inst,gml_Script____struct___166_s_debug_init_menu_gml_GlobalScript_debug_scripts)),kgml_Script_s_do_player_awards_college)); gml_Script_s_create_button(_inst,_other,240,yyftime(20,__yy_gml_errCheck((g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__))),__yy_gml_object_create(_inst,(_inst.gml___struct___167=__yy_method(_inst,gml_Script____struct___167_s_debug_init_menu_gml_GlobalScript_debug_scripts)),kgml_Script_s_fake_crash_safe));gml_Script_s_create_button(_inst,_other,240,yyftime(20,__yy_gml_errCheck((g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr), g_yyPrePostObject__))),__yy_gml_object_create(_inst,(_inst.gml___struct___168=__yy_method(_inst,gml_Script____struct___168_s_debug_init_menu_gml_GlobalScript_debug_scripts)),kgml_Script_s_give_debug_cc));}}function gml_Script_s_give_debug_cc(_inst,_other){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit,50);}}function gml_Script_btn_click_debug_main(_inst,_other){{gml_Script_s_goto_room(_inst,_other,YYASSET_REF(0x03000035)); }}function gml_Script____struct___169_btn_click_debug_team_ranking_gml_GlobalScript_debug_scripts(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___169_btn_click_debug_team_ranking_gml_GlobalScript_debug_scripts";}if(gml_Script____struct___169_btn_click_debug_team_ranking_gml_GlobalScript_debug_scripts.prototype.__type===undefined){gml_Script____struct___169_btn_click_debug_team_ranking_gml_GlobalScript_debug_scripts.prototype.__type="gml_Script____struct___169_btn_click_debug_team_ranking_gml_GlobalScript_debug_scripts"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___169_btn_click_debug_team_ranking_gml_GlobalScript_debug_scripts.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlinit=$$args[__yy_gml_array_check_index(2+(0),$$args)];}}}}function gml_Script_btn_click_debug_team_ranking(_inst,_other){{gml_Script_s_goto_room(_inst,_other,YYASSET_REF(0x03000035),__yy_gml_object_create(_inst,(_inst.gml___struct___169=__yy_method(_inst,gml_Script____struct___169_btn_click_debug_team_ranking_gml_GlobalScript_debug_scripts)), kgml_Script_s_debug_init_team_ranking));}}function gml_Script_btn_click_debug_test_screen(_inst,_other){{room_goto(YYASSET_REF(0x03000018));}}function gml_Script_btn_click_debug_review_screen(_inst,_other){{room_goto(YYASSET_REF(0x03000026));}}function gml_Script_btn_click_debug_skip_regular_season(_inst,_other){{gml_Script_slogf(_inst,_other,"Skipping to last_week_regular: %1",yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular);gml_Script_s_skip_to_week(_inst,_other,yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlfirst_week_postseason);gml_Script_s_competitions_status_update(_inst,_other);gml_Script_s_update_human_fixtures(_inst,_other);room_goto(YYASSET_REF(0x0300000E));}}function gml_Script_btn_click_debug_skip_next_match(_inst,_other){{gml_Script_slogf(_inst,_other,"Skipping to next week: %1",yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek),1));gml_Script_s_skip_to_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek), 1));gml_Script_s_competitions_status_update(_inst,_other);gml_Script_s_update_human_fixtures(_inst,_other);room_goto(YYASSET_REF(0x0300000E));}}function gml_Script_btn_click_debug_force_skip_result(_inst,_other){{(g_yyPrePostObject__=global.gmldebug_force_skip_result,global.gmldebug_force_skip_result=(g_yyPrePostObject__ instanceof Long?global.gmldebug_force_skip_result.add(1):++global.gmldebug_force_skip_result),g_yyPrePostObject__);if(yyfgreater(global.gmldebug_force_skip_result,1)){global.gmldebug_force_skip_result=(-1); };_inst.gmltext=gml_Script_s_get_forced_skip_result_readout(_inst,_other);}}function gml_Script_s_get_forced_skip_result_readout(_inst,_other){{var gmlt="Skip result: ";var ___sw1330___=global.gmldebug_force_skip_result;var ___swc1331___=-1;if(yyCompareVal(___sw1330___,(-1),g_GMLMathEpsilon,false)==0){___swc1331___=0;}else if(yyCompareVal(___sw1330___,0,g_GMLMathEpsilon,false)==0){___swc1331___=1;}else if(yyCompareVal(___sw1330___,1,g_GMLMathEpsilon,false)==0){___swc1331___=2;}switch(___swc1331___){case 0:{ return yyfplus(__yy_gml_errCheck(gmlt),"lose");}case 1:{return yyfplus(__yy_gml_errCheck(gmlt),"sim");}case 2:{return yyfplus(__yy_gml_errCheck(gmlt),"win");}};}}function gml_Script_btn_click_debug_test_pool_creation(_inst,_other){{gml_Script_slogf(_inst,_other,"Pool creation test");if(!yyGetBool(gml_Script_s_is_co_postseason(_inst,_other))){{gml_Script_slogf(_inst,_other,"Only available in postseason");return;};};var gmlconfig="tier:2; num:24; tm:best_win:119,123; tm:win:120,121,122,125,126,127,128,129,130,131; tm:excl_any:123,124,133; tm:rank_fill; rnd:1-8; rnd:9-24;"; var gmlpool=gml_Script_s_get_competition_pool(_inst,_other,gmlconfig);gml_Script_slogf(_inst,_other,"Pool size %1",array_length(gmlpool));var gmli=0;for(;yyfless(gmli,array_length(gmlpool));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gml_Script_slogf(_inst,_other,yyInst(_inst,_other,gmlpool[__yy_gml_array_check_index(gmli,gmlpool)]).gmlname);}};}}function gml_Script_btn_click_debug_team_editor_franchise_screen(_inst,_other){{gml_Script_s_goto_room(_inst, _other,YYASSET_REF(0x0300001D));}}function gml_Script_btn_click_debug_editor_screen(_inst,_other){{gml_Script_s_goto_room(_inst,_other,YYASSET_REF(0x03000037),gml_Script_s_get_editor_status(_inst,_other));}}function gml_Script_btn_click_debug_switch_data_version(_inst,_other){{gml_Script_s_reset_to_version(_inst,_other,_inst.gml_version);}}function gml_Script_s_get_alternative_data_version(_inst,_other){{return(yyfequal(yyInst(_inst,_other,global.gmlg_m).gmldata_version,1)?2:1);}}function gml_Script____struct___170_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts(_inst, _other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___170_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts";}if(gml_Script____struct___170_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts.prototype.__type===undefined){gml_Script____struct___170_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts.prototype.__type="gml_Script____struct___170_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___170_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts.prototype); {var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext="";_inst.gmlimage=YYASSET_REF(0x0100008E);_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(0),$$args)];}}}}function gml_Script____struct___171_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___171_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts";}if(gml_Script____struct___171_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts.prototype.__type===undefined){ gml_Script____struct___171_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts.prototype.__type="gml_Script____struct___171_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___171_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext="";_inst.gmlimage=YYASSET_REF(0x0100008E);_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(0), $$args)];}}}}function gml_Script____struct___172_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___172_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts";}if(gml_Script____struct___172_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts.prototype.__type===undefined){gml_Script____struct___172_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts.prototype.__type="gml_Script____struct___172_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___172_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext="";_inst.gmlimage=YYASSET_REF(0x01000091);_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(0),$$args)];}}}}function gml_Script____struct___173_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___173_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts"; }if(gml_Script____struct___173_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts.prototype.__type===undefined){gml_Script____struct___173_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts.prototype.__type="gml_Script____struct___173_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___173_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts.prototype);{var $$args=Array.prototype.slice.call(arguments); {_inst.gmlteam=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlrank_pts=$$args[__yy_gml_array_check_index(2+(1),$$args)];}}}}function gml_Script_anon_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts_7686_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts(_inst,_other,argument0,argument1){{return yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,argument1).gmlrank_pts),__yy_gml_errCheck(yyInst(_inst,_other,argument0).gmlrank_pts));}}function gml_Script_s_debug_init_team_ranking(_inst, _other){{yyInst(_inst,_other,global.gmlrm).gmlconf_index=0;yyInst(_inst,_other,global.gmlrm).gmlaction_draw_gui=kgml_Script_s_dbg_team_ranking_draw_gui;gml_Script_s_create_button(_inst,_other,8,232,__yy_gml_object_create(_inst,(_inst.gml___struct___170=__yy_method(_inst,gml_Script____struct___170_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts)),kgml_Script_btn_click_debug_main),YYASSET_REF(0x00000025));gml_Script_s_create_button(_inst,_other,404,232,__yy_gml_object_create(_inst,(_inst.gml___struct___171=__yy_method(_inst, gml_Script____struct___171_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts)),kgml_Script_btn_dbg_list_prev_conference),YYASSET_REF(0x00000025));gml_Script_s_create_button(_inst,_other,440,232,__yy_gml_object_create(_inst,(_inst.gml___struct___172=__yy_method(_inst,gml_Script____struct___172_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts)),kgml_Script_btn_dbg_list_next_conference),YYASSET_REF(0x00000025));var gmltl=__yy_gml_array_create([]);{var __yy__v1456=GetWithArray(YYASSET_REF(0x00000062)); for(var __yy__v1457 in __yy__v1456){if(!__yy__v1456.hasOwnProperty(__yy__v1457))continue;var __yy__v1458=__yy__v1456[__yy__v1457];var gmli=__yy__v1458.gmlmin_team_id;for(;yyfless(gmli,__yy__v1458.gmlmax_team_id);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{array_push(gmltl,__yy_gml_object_create(__yy__v1458,(__yy__v1458.gml___struct___173=__yy_method(__yy__v1458,gml_Script____struct___173_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts)), ds_list_find_value(__yy__v1458.gmlteamlist,gmli),real(ds_map_find_value(ds_list_find_value(__yy__v1458.gmlteamlist,gmli),"ranking_points"))));}};}};array_sort(gmltl,__yy_method(_inst,gml_Script_anon_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts_7686_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts));yyInst(_inst,_other,global.gmlrm).gmlteams=gmltl;}}function gml_Script_btn_dbg_list_prev_conference(_inst,_other){{{var __yy__v1459=GetWithArray(global.gmlrm);for(var __yy__v1460 in __yy__v1459){ if(!__yy__v1459.hasOwnProperty(__yy__v1460))continue;var __yy__v1461=__yy__v1459[__yy__v1460];__yy__v1461.gmlconf_index=gml_Script_s_clamp_conference_id(__yy__v1461,_inst,yyfminus(__yy_gml_errCheck(__yy__v1461.gmlconf_index),1));}};}}function gml_Script_btn_dbg_list_next_conference(_inst,_other){{{var __yy__v1462=GetWithArray(global.gmlrm);for(var __yy__v1463 in __yy__v1462){if(!__yy__v1462.hasOwnProperty(__yy__v1463))continue;var __yy__v1464=__yy__v1462[__yy__v1463];__yy__v1464.gmlconf_index=gml_Script_s_clamp_conference_id(__yy__v1464, _inst,yyfplus(__yy_gml_errCheck(__yy__v1464.gmlconf_index),1));}};}}function gml_Script_s_clamp_conference_id(_inst,_other,argument0){{var gmlcl=array_length(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlconferences);if(yyfgreaterequal(argument0,gmlcl)){argument0=yyfminus(argument0,gmlcl);};if(yyfless(argument0,0)){argument0=yyfplus(argument0,yyfminus(__yy_gml_errCheck(gmlcl),1));};return argument0;}}function gml_Script_s_dbg_team_ranking_draw_gui(_inst,_other){{var gmlconf=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlconferences[__yy_gml_array_check_index(yyInst(_inst, _other,global.gmlrm).gmlconf_index,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlconferences)];var gmlteams=yyInst(_inst,_other,global.gmlrm).gmlteams;draw_set_halign(0);gml_Script_draw_hd_text(_inst,_other,8,8,yyInst(_inst,_other,gmlconf).gmlname);var gmltx=8;var gmlty=24;var gmltm;var gmltb=__yy_gml_array_create([0,100,135,170,205,240,275,310,345,380]);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltb[__yy_gml_array_check_index(0,gmltb)])),gmlty,"Name"); gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltb[__yy_gml_array_check_index(1,gmltb)])),gmlty,"Div");gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltb[__yy_gml_array_check_index(2,gmltb)])),gmlty,"W");gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltb[__yy_gml_array_check_index(3,gmltb)])),gmlty,"L");gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx), __yy_gml_errCheck(gmltb[__yy_gml_array_check_index(4,gmltb)])),gmlty,"DF");gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltb[__yy_gml_array_check_index(5,gmltb)])),gmlty,"OF");gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltb[__yy_gml_array_check_index(6,gmltb)])),gmlty,"DF+");gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltb[__yy_gml_array_check_index(7,gmltb)])),gmlty, "OF+");gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltb[__yy_gml_array_check_index(8,gmltb)])),gmlty,"Rank");gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltb[__yy_gml_array_check_index(9,gmltb)])),gmlty,"Reputation");gmlty=yyfplus(gmlty,20);var gmli=0;for(;yyfless(gmli,array_length(gmlteams));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmltm=gmlteams[__yy_gml_array_check_index(gmli, gmlteams)];if(yyfequal(ds_map_find_value(yyInst(_inst,_other,gmltm).gmlteam,"conference"),yyInst(_inst,_other,gmlconf).gmluid)){{gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltb[__yy_gml_array_check_index(0,gmltb)])),gmlty,ds_map_find_value(yyInst(_inst,_other,gmltm).gmlteam,"name"));gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltb[__yy_gml_array_check_index(1,gmltb)])),gmlty,ds_map_find_value(yyInst(_inst, _other,gmltm).gmlteam,"division"));gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltb[__yy_gml_array_check_index(2,gmltb)])),gmlty,ds_map_find_value(yyInst(_inst,_other,gmltm).gmlteam,"wins"));gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltb[__yy_gml_array_check_index(3,gmltb)])),gmlty,ds_map_find_value(yyInst(_inst,_other,gmltm).gmlteam,"losses"));gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx), __yy_gml_errCheck(gmltb[__yy_gml_array_check_index(4,gmltb)])),gmlty,ds_map_find_value(yyInst(_inst,_other,gmltm).gmlteam,"defense"));gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltb[__yy_gml_array_check_index(5,gmltb)])),gmlty,ds_map_find_value(yyInst(_inst,_other,gmltm).gmlteam,"offense"));gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltb[__yy_gml_array_check_index(6,gmltb)])),gmlty,gml_Script_s_get_team_defense_with_reputation_boost(_inst, _other,yyInst(_inst,_other,gmltm).gmlteam));gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltb[__yy_gml_array_check_index(7,gmltb)])),gmlty,gml_Script_s_get_team_offense_with_reputation_boost(_inst,_other,yyInst(_inst,_other,gmltm).gmlteam));gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltb[__yy_gml_array_check_index(8,gmltb)])),gmlty,ds_map_find_value(yyInst(_inst,_other,gmltm).gmlteam,"ranking_points"));gml_Script_draw_hd_text(_inst, _other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltb[__yy_gml_array_check_index(9,gmltb)])),gmlty,ds_map_find_value(yyInst(_inst,_other,gmltm).gmlteam,"reputation"));gmlty=yyfplus(gmlty,10);};};}};}}function gml_Script_btn_click_debug_test_sim_odds(_inst,_other){{var gmltable=__yy_gml_array_create([]);__yy_gml_array_create([]);var gmlsim,gmlres;var gmlsmp=1000;var gmlas=0;for(;yyflessequal(gmlas,20);(g_yyPrePostObject__=gmlas,gmlas=(g_yyPrePostObject__ instanceof Long?gmlas.add(1):++gmlas),g_yyPrePostObject__)){ var gmlhs=0;for(;yyflessequal(gmlhs,20);(g_yyPrePostObject__=gmlhs,gmlhs=(g_yyPrePostObject__ instanceof Long?gmlhs.add(1):++gmlhs),g_yyPrePostObject__)){gmltable=__yy_gml_array_check(gmltable,237429612);gmltable[__yy_gml_array_check_index_chain(gmlas,gmltable)][__yy_gml_array_check_index_set(gmlhs)]=0}};var gmli=0;for(;yyfless(gmli,gmlsmp);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{randomise();var gmlas=0;for(;yyflessequal(gmlas,20);(g_yyPrePostObject__=gmlas, gmlas=(g_yyPrePostObject__ instanceof Long?gmlas.add(1):++gmlas),g_yyPrePostObject__)){{var gmlhs=0;for(;yyflessequal(gmlhs,20);(g_yyPrePostObject__=gmlhs,gmlhs=(g_yyPrePostObject__ instanceof Long?gmlhs.add(1):++gmlhs),g_yyPrePostObject__)){{gmlsim=gml_Script_s_co_get_sim_results(_inst,_other,undefined,undefined,false,gmlas,gmlhs);gmlres=(yyfgreater(ds_map_find_value(yyInst(_inst,_other,gmlsim).gmlscoredataAway,"points"),ds_map_find_value(yyInst(_inst,_other,gmlsim).gmlscoredataHome,"points"))?0:1); gmltable=__yy_gml_array_check(gmltable,237429612);gmltable[__yy_gml_array_check_index_chain(gmlhs,gmltable)][__yy_gml_array_check_index_set(gmlas)]=yyfplus(gmltable[__yy_gml_array_check_index_chain(gmlhs,gmltable)][__yy_gml_array_check_index_set(gmlas)],gmlres);}};}};}};var gmls="";var gmlas=0;for(;yyflessequal(gmlas,20);(g_yyPrePostObject__=gmlas,gmlas=(g_yyPrePostObject__ instanceof Long?gmlas.add(1):++gmlas),g_yyPrePostObject__)){{gmls=yyfplus(gmls,gml_Script_s_strf(_inst,_other,"%1: ",gmlas));var gmlhs=0; for(;yyflessequal(gmlhs,20);(g_yyPrePostObject__=gmlhs,gmlhs=(g_yyPrePostObject__ instanceof Long?gmlhs.add(1):++gmlhs),g_yyPrePostObject__)){{gmls=yyfplus(gmls,gml_Script_s_strf(_inst,_other,"%1 ",string_format(yyftime(yyfdivide(__yy_gml_errCheck(gmltable[__yy_gml_array_check_index(gmlhs,gmltable)][__yy_gml_array_check_index(gmlas,gmltable[~~gmlhs])]),__yy_gml_errCheck(gmlsmp)),100),2,2)));}};gmls=yyfplus(gmls,"\n");}};gml_Script_slog(_inst,_other,gmls);}}function gml_Script_s_debug_list_bracketed_fixtures(_inst, _other){{var gmlfix,gmlat,gmlas,gmlht,gmlhs;gml_Script_slogf(_inst,_other,"\nBracketed fixtures:");var gmlf=0;for(;yyfless(gmlf,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlschedule));(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf),g_yyPrePostObject__)){{gmlfix=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlschedule,gmlf);if(yyfequal(ds_map_find_value(gmlfix,"show"),"bkt")){{gmlat=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix, "away_team"));gmlas=ds_map_find_value(gmlfix,"away_score");gmlht=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"home_team"));gmlhs=ds_map_find_value(gmlfix,"home_score");gml_Script_slogf(_inst,_other,"%5 %1 %2-%3 %4",ds_map_find_value(gmlat,"tla"),gmlas,gmlhs,ds_map_find_value(gmlht,"tla"),ds_map_find_value(gmlfix,"mid"));};};}};}}function gml_Script_s_debug_start_time(_inst,_other){{yyInst(_inst,_other,global.gmlg_m).gmldebug_time=get_timer();yyInst(_inst,_other,global.gmlg_m).gmldebug_time_last=yyInst(_inst, _other,global.gmlg_m).gmldebug_time;gml_Script_slogf(_inst,_other,"*** Timer reset");}}function gml_Script_s_debug_show_time(_inst,_other,argument0){{if(yyfequal(argument0,_inst.undefined)){argument0="";};}{var gmldt=get_timer();if(yyfnotequal(argument0,"")){argument0=yyfplus(" - ",__yy_gml_errCheck(argument0));};gml_Script_slogf(_inst,_other,"*** Timer: start %1 last %2%3",yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmldt),__yy_gml_errCheck(yyInst(_inst,_other,global.gmlg_m).gmldebug_time))), 1000000),yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmldt),__yy_gml_errCheck(yyInst(_inst,_other,global.gmlg_m).gmldebug_time_last))),1000000),argument0);yyInst(_inst,_other,global.gmlg_m).gmldebug_time_last=gmldt;}}function gml_Script_s_set_exception_reporter(_inst,_other){{}}function gml_Script_s_fake_crash(_inst,_other){{var gmlxdd=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster[__yy_gml_array_check_index(0,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster)];gml_Script_slog(_inst, _other,gmlxdd);}}function gml_Script_s_fake_crash_safe(_inst,_other){{gml_Script_s_safe_run(_inst,_other,kgml_Script_s_fake_crash);}}function gml_Script_s_safe_run(_inst,_other,argument0){{try{{__yyg_call_method(argument0)(_inst,_other);}}catch(gml_exception){gml_exception=__yy__processException(gml_exception);{gml_Script_s_safe_run_catch(_inst,_other,gml_exception);}};}}function gml_Script_s_safe_run_catch(_inst,_other,argument0){{var gmlmsg=gml_Script_s_safe_run_msg(_inst,_other,argument0);show_debug_message(gmlmsg); gml_Script_s_safe_run_crash_report(_inst,_other,gmlmsg);gml_Script_s_safe_run_crash_save(_inst,_other);throw gmlmsg;}}function gml_Script_s_safe_run_msg(_inst,_other,argument0){{var gmlmsg=yyfplus(yyfplus("\n\nVersion: [",__yy_gml_errCheck(gml_Script_s_get_gm_version(_inst,_other))),"]\n");gmlmsg=yyfplus(gmlmsg,yyfplus(yyfplus("Exception Message: ",__yy_gml_errCheck(yyInst(_inst,_other,argument0).gmlmessage)),"\n"));gmlmsg=yyfplus(gmlmsg,yyfplus(yyfplus("Long Message: ",__yy_gml_errCheck(yyInst(_inst, _other,argument0).gmllongMessage)),"\n"));gmlmsg=yyfplus(gmlmsg,yyfplus(yyfplus("Script: ",__yy_gml_errCheck(yyInst(_inst,_other,argument0).gmlscript)),"\n"));var gmlstacktrace_str="";var gmli=0;for(;yyfless(gmli,array_length(yyInst(_inst,_other,argument0).gmlstacktrace));(gmli=(gmli instanceof Long?gmli.add(1):++gmli),gmli)){{gmlstacktrace_str=yyfplus(gmlstacktrace_str,yyfplus(yyfplus(" ",__yy_gml_errCheck(yyInst(_inst,_other,argument0).gmlstacktrace[__yy_gml_array_check_index(gmli,yyInst(_inst,_other, argument0).gmlstacktrace)])),"\n"));}};gmlmsg=yyfplus(gmlmsg,yyfplus("Stack Trace: \n",__yy_gml_errCheck(gmlstacktrace_str)));return gmlmsg;}}function gml_Script_s_safe_run_crash_report(_inst,_other,argument0){{try{{if(yyGetBool(file_exists("rb_crash.txt"))){file_delete("rb_crash.txt");};var gml_f=file_text_open_write("crash.txt");file_text_write_string(gml_f,argument0);file_text_close(gml_f);}}catch(gml_exception){gml_exception=__yy__processException(gml_exception);{}};}}function gml_Script_s_safe_run_crash_save(_inst, _other){{try{{var gmlsave_name=gml_Script_s_get_savename(_inst,_other);var gmlbackup_name=yyfplus("rb_crash_save_",__yy_gml_errCheck(gmlsave_name));if(yyGetBool(file_exists(gmlbackup_name))){file_delete(gmlbackup_name);};file_copy(gmlsave_name,gmlbackup_name);gml_Script_s_nx_commit(_inst,_other);}}catch(gml_exception){gml_exception=__yy__processException(gml_exception);{}};}}function gml_GlobalScript_s_sound_kick(_inst,_other){(_inst.gmls_sound_kick=__yy_method(_inst,gml_Script_s_sound_kick));}function gml_Script_s_sound_kick(_inst, _other){{if(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))){return;};if(yyGetBool(audio_is_playing(YYASSET_REF(0x02000007)))){return;};var gmlsnd=audio_play_sound(YYASSET_REF(0x02000007),1,false);audio_sound_pitch(gmlsnd,random_range(0.8,1.2));}}function gml_GlobalScript_s_sound_throw(_inst,_other){(_inst.gmls_sound_throw=__yy_method(_inst,gml_Script_s_sound_throw));}function gml_Script_s_sound_throw(_inst,_other){{if(!yyGetBool(ds_map_find_value(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))){return;};var gmlsnd=audio_play_sound(YYASSET_REF(0x0200000D),1,false);audio_sound_pitch(gmlsnd,random_range(0.8,1.2));}}function gml_GlobalScript_s_sound_post(_inst,_other){(_inst.gmls_sound_post=__yy_method(_inst,gml_Script_s_sound_post));}function gml_Script_s_sound_post(_inst,_other){{if(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))){return;};var gmlsnd=audio_play_sound(YYASSET_REF(0x0200000C), 1,false);audio_sound_pitch(gmlsnd,random_range(0.8,1.2));}}function gml_GlobalScript_s_sound_audience_dis(_inst,_other){(_inst.gmls_sound_audience_dis=__yy_method(_inst,gml_Script_s_sound_audience_dis));}function gml_Script_s_sound_audience_dis(_inst,_other){{if((yyGetBool(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))))||(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice))){return;};var gmlsnd=audio_play_sound(YYASSET_REF(0x02000001), 1,false);audio_sound_pitch(gmlsnd,random_range(0.8,1));}}function gml_GlobalScript_s_sound_audience_fg(_inst,_other){(_inst.gmls_sound_audience_fg=__yy_method(_inst,gml_Script_s_sound_audience_fg));}function gml_Script_s_sound_audience_fg(_inst,_other){{if((yyGetBool(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))))||(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice))){return;};var gmlsnd=audio_play_sound(YYASSET_REF(0x02000002), 1,false);audio_sound_pitch(gmlsnd,random_range(0.8,0.9));}}function gml_GlobalScript_s_sound_bounce(_inst,_other){(_inst.gmls_sound_bounce=__yy_method(_inst,gml_Script_s_sound_bounce));}function gml_Script_s_sound_bounce(_inst,_other){{if(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))){return;};gml_Script_slog(_inst,_other,"s_sound_bounce");var gmlsnd=audio_play_sound(YYASSET_REF(0x02000005),1,false);audio_sound_pitch(gmlsnd,random_range(0.8, 1.2));}}function gml_GlobalScript_s_sound_tackle(_inst,_other){(_inst.gmls_sound_tackle=__yy_method(_inst,gml_Script_s_sound_tackle));}function gml_Script_s_sound_tackle(_inst,_other){{if(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))){return;};if(yyfless(g_pBuiltIn.get_current_time(),yyfplus(__yy_gml_errCheck(global.gmlsnd_tackle_time),50))){return;};var gmlball=global.gmlmaster_ball;var gmlsnd=audio_play_sound(YYASSET_REF(0x0200000E),1,false); var gmldist=point_distance(_inst.x,_inst.y,yyInst(_inst,_other,gmlball).x,yyInst(_inst,_other,gmlball).y);gmldist=clamp(yyfdivide(20,__yy_gml_errCheck(gmldist)),0,2);audio_sound_pitch(gmlsnd,random_range(0.8,1.2));audio_sound_gain(gmlsnd,gmldist,0);global.gmlsnd_tackle_time=g_pBuiltIn.get_current_time();}}function gml_GlobalScript_s_sound_oof(_inst,_other){(_inst.gmls_sound_oof=__yy_method(_inst,gml_Script_s_sound_oof));}function gml_Script_s_sound_oof(_inst,_other){{if(!yyGetBool(ds_map_find_value(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))){return;};var gmlsnd;var ___sw1334___=irandom(2);var ___swc1335___=-1;if(yyCompareVal(___sw1334___,0,g_GMLMathEpsilon,false)==0){___swc1335___=0;}else if(yyCompareVal(___sw1334___,1,g_GMLMathEpsilon,false)==0){___swc1335___=1;}else if(yyCompareVal(___sw1334___,2,g_GMLMathEpsilon,false)==0){___swc1335___=2;}switch(___swc1335___){case 0:{gmlsnd=audio_play_sound(YYASSET_REF(0x02000008),1,false);break;}case 1:{gmlsnd=audio_play_sound(YYASSET_REF(0x02000009), 1,false);break;}case 2:{gmlsnd=audio_play_sound(YYASSET_REF(0x0200000B),1,false);break;}};var gmlball=global.gmlmaster_ball;var gmldist=point_distance(_inst.x,_inst.y,yyInst(_inst,_other,gmlball).x,yyInst(_inst,_other,gmlball).y);gmldist=clamp(yyfdivide(20,__yy_gml_errCheck(gmldist)),0,2);audio_sound_pitch(gmlsnd,random_range(0.8,1.2));audio_sound_gain(gmlsnd,gmldist,0);}}function gml_GlobalScript_s_sound_dive(_inst,_other){(_inst.gmls_sound_dive=__yy_method(_inst,gml_Script_s_sound_dive));}function gml_Script_s_sound_dive(_inst, _other){{if(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))){return;};var gmlball=global.gmlmaster_ball;var gmlsnd=audio_play_sound(YYASSET_REF(0x0200000D),1,false);var gmldist=point_distance(_inst.x,_inst.y,yyInst(_inst,_other,gmlball).x,yyInst(_inst,_other,gmlball).y);gmldist=clamp(yyfdivide(20,__yy_gml_errCheck(gmldist)),0,2);audio_sound_pitch(gmlsnd,1.5);audio_sound_gain(gmlsnd,gmldist,0);}}function gml_GlobalScript_s_sound_loop(_inst,_other, argument0){(_inst.gmls_sound_loop=__yy_method(_inst,gml_Script_s_sound_loop));}function gml_Script_s_sound_loop(_inst,_other,argument0){{if(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))){return;};audio_play_sound(argument0,1,true);}}function gml_GlobalScript_s_qb_run(_inst,_other){(_inst.gmls_qb_run=__yy_method(_inst,gml_Script_s_qb_run));(_inst.gmls_qb_revert_throw=__yy_method(_inst,gml_Script_s_qb_revert_throw));}function gml_Script_s_qb_run(_inst, _other,argument0){{if((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice,3)))||(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice,4)))){_inst.gmlstate=0;}else {if((yyGetBool(yyfequal(yyInst(_inst,_other,_inst.gmlholder).gmlanim,11)))||(yyGetBool(argument0))){{if(yyGetBool(global.gmlgamepad)){yyInst(_inst,_other,global.gmlgp).gmlaxisr_flick=true;};yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlplay_start=g_pBuiltIn.get_current_time();yyInst(_inst, _other,YYASSET_REF(0x00000069)).gmlrunning_play=true;_inst.gmlstate=5;_inst.gmllast_touched_by=_inst.gmlholder;_inst.gmlvelocity=0;_inst.gmlzvel=0;{var __yy__v1465=GetWithArray(_inst.gmlholder);for(var __yy__v1466 in __yy__v1465){if(!__yy__v1465.hasOwnProperty(__yy__v1466))continue;var __yy__v1467=__yy__v1465[__yy__v1466];{__yy__v1467.gmlqb_rushing=true;__yy__v1467.gmlposition=2;gml_Script_s_set_anim(__yy__v1467,_inst,2);}}};};};};}}function gml_Script_s_qb_revert_throw(_inst,_other){{{var __yy__v1468=GetWithArray(_inst.gmlholder); for(var __yy__v1469 in __yy__v1468){if(!__yy__v1468.hasOwnProperty(__yy__v1469))continue;var __yy__v1470=__yy__v1468[__yy__v1469];{if((yyGetBool(yyfequal(__yy__v1470.gmlposition,2)))&&(yyGetBool(__yy__v1470.gmlpmap))&&(yyGetBool(yyfequal(ds_map_find_value(__yy__v1470.gmlpmap,"position"),1)))){{__yy__v1470.hspeed=0;__yy__v1470.vspeed=0;__yy__v1470.gmlposition=1;gml_Script_s_set_anim(__yy__v1470,_inst,0);};}else {return;};}}};_inst.gmlstate=0;_inst.gmllast_touched_by=_inst.gmlholder;_inst.gmlvelocity=0; _inst.gmlzvel=0;}}function gml_GlobalScript_s_throw_ball(_inst,_other){(_inst.gmls_throw_ball=__yy_method(_inst,gml_Script_s_throw_ball));}function gml_Script_s_throw_ball(_inst,_other){{var gmlcont=YYASSET_REF(0x00000069);{var __yy__v1471=GetWithArray(_inst.gmlholder);for(var __yy__v1472 in __yy__v1471){if(!__yy__v1471.hasOwnProperty(__yy__v1472))continue;var __yy__v1473=__yy__v1471[__yy__v1472];{_inst.x=__yy__v1473.x;_inst.y=__yy__v1473.y;gml_Script_s_set_anim(__yy__v1473,_inst,12);if((yyGetBool(!yyGetBool(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlgamepractice)))&&(yyGetBool(yyfless(yyInst(_inst,_other,gmlcont).gmldown,5)))){{if(yyGetBool(__yy__v1473.gmlpmap)){ds_map_set(__yy__v1473.gmlpmap,"stat_attempts",yyfplus(__yy_gml_errCheck(ds_map_find_value(__yy__v1473.gmlpmap,"stat_attempts")),1));};};};}}};if(yyGetBool(yyInst(_inst,_other,gmlcont).gmlrunning_play)){{gml_Script_slog(_inst,_other,yyfplus(__yy_gml_errCheck(string(_inst.gmldirec))," RUNNING PLAY"));};}else {{gml_Script_slog(_inst,_other,yyfplus(__yy_gml_errCheck(string(_inst.gmldirec)), " PASSING PLAY"));{var __yy__v1474=GetWithArray(YYASSET_REF(0x0000006C));for(var __yy__v1475 in __yy__v1474){if(!__yy__v1474.hasOwnProperty(__yy__v1475))continue;var __yy__v1476=__yy__v1474[__yy__v1475];{if((yyGetBool(yyfequal(__yy__v1476.gmlposition,2)))&&(yyGetBool(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldifficulty,0)))){{__yy__v1476.gmlstiff_arm=clamp(yyfminus(__yy_gml_errCheck(__yy__v1476.gmlstiff_arm),1),0,1);__yy__v1476.gmljumps=clamp(yyfminus(__yy_gml_errCheck(__yy__v1476.gmljumps), 1),0,1);};};}}};};};_inst.gmlxthrow=_inst.x;_inst.gmlythrow=_inst.y;yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlplay_start=g_pBuiltIn.get_current_time();_inst.gmlstate=3;_inst.gmlholder=(-4);}}function gml_GlobalScript_s_record_frame(_inst,_other){(_inst.gmls_record_frame=__yy_method(_inst,gml_Script_s_record_frame));}function gml_Script_s_record_frame(_inst,_other){{if(yyGetBool(global.gmlbrowser)){return;};var gmlframe=__yy_gml_array_create([_inst.x,_inst.y,_inst.gmlheight,_inst.sprite_index, _inst.image_index,_inst.image_xscale,_inst.depth,_inst.gmlhidden,_inst.gmlrotation]);ds_list_add(_inst.gmlmy_replay,gmlframe);if(yyfgreater(ds_list_size(_inst.gmlmy_replay),300)){ds_list_delete(_inst.gmlmy_replay,0);};}}function gml_GlobalScript_s_replay_frame(_inst,_other){(_inst.gmls_replay_frame=__yy_method(_inst,gml_Script_s_replay_frame));}function gml_Script_s_replay_frame(_inst,_other){{if(yyGetBool(global.gmlbrowser)){return;};var gmlsz=ds_list_size(_inst.gmlmy_replay);if(yyfless(gmlsz,1)){ return;};if((yyGetBool(yyfless(global.gmlreplay_frame,0)))||(yyGetBool(yyfgreaterequal(global.gmlreplay_frame,gmlsz)))){global.gmlreplay_frame=0;};var gmlframe=ds_list_find_value(_inst.gmlmy_replay,global.gmlreplay_frame);var gmllast_frame=ds_list_find_value(_inst.gmlmy_replay,global.gmlreplay_frame);if(yyfgreater(global.gmlreplay_frame,0)){gmllast_frame=ds_list_find_value(_inst.gmlmy_replay,yyfminus(__yy_gml_errCheck(global.gmlreplay_frame),1));};_inst.x=lerp(gmllast_frame[__yy_gml_array_check_index(0, gmllast_frame)],gmlframe[__yy_gml_array_check_index(0,gmlframe)],frac(global.gmlreplay_frame));_inst.y=lerp(gmllast_frame[__yy_gml_array_check_index(1,gmllast_frame)],gmlframe[__yy_gml_array_check_index(1,gmlframe)],frac(global.gmlreplay_frame));_inst.gmlheight=lerp(gmllast_frame[__yy_gml_array_check_index(2,gmllast_frame)],gmlframe[__yy_gml_array_check_index(2,gmlframe)],frac(global.gmlreplay_frame));_inst.sprite_index=gmlframe[__yy_gml_array_check_index(3,gmlframe)];_inst.image_index=gmlframe[__yy_gml_array_check_index(4, gmlframe)];_inst.image_xscale=gmlframe[__yy_gml_array_check_index(5,gmlframe)];_inst.depth=gmlframe[__yy_gml_array_check_index(6,gmlframe)];_inst.gmlhidden=gmlframe[__yy_gml_array_check_index(7,gmlframe)];_inst.gmlrotation=gmlframe[__yy_gml_array_check_index(8,gmlframe)];gml_Script_s_update_my_shadow(_inst,_other);if(yyGetBool(_inst.gmlhidden)){layer_sprite_y(_inst.gmlmy_shadow,(-99999));};}}function gml_GlobalScript_s_start_replay(_inst,_other){(_inst.gmls_start_replay=__yy_method(_inst,gml_Script_s_start_replay)); }function gml_Script_s_start_replay(_inst,_other,argument0){{gml_Script_slog(_inst,_other,"s_start_replay");yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlstate=3;global.gmlreplay_frame=0;global.gmlreplay_end=argument0;{var __yy__v1477=GetWithArray(YYASSET_REF(0x0000007B));for(var __yy__v1478 in __yy__v1477){if(!__yy__v1477.hasOwnProperty(__yy__v1478))continue;var __yy__v1479=__yy__v1477[__yy__v1478];instance_destroy(__yy__v1479);}};{var __yy__v1480=GetWithArray(YYASSET_REF(0x0000006A));for(var __yy__v1481 in __yy__v1480){ if(!__yy__v1480.hasOwnProperty(__yy__v1481))continue;var __yy__v1482=__yy__v1480[__yy__v1481];gml_Script_s_replay_frame(__yy__v1482,_inst);}};if((yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice))||(yyGetBool(global.gmlbrowser))){{gml_Script_s_end_replay(_inst,_other);return;};};var ___sw1338___=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_replays");var ___swc1339___=-1;if(yyCompareVal(___sw1338___,0,g_GMLMathEpsilon,false)==0){___swc1339___=0; }else if(yyCompareVal(___sw1338___,1,g_GMLMathEpsilon,false)==0){___swc1339___=1;}else if(yyCompareVal(___sw1338___,2,g_GMLMathEpsilon,false)==0){___swc1339___=2;}switch(___swc1339___){case 0:{gml_Script_s_end_replay(_inst,_other);break;}case 1:{if(!yyGetBool(global.gmlreplay_do)){gml_Script_s_end_replay(_inst,_other);};break;}case 2:{break;}};}}function gml_GlobalScript_s_end_replay(_inst,_other){(_inst.gmls_end_replay=__yy_method(_inst,gml_Script_s_end_replay));}function gml_Script_s_end_replay(_inst, _other){{gml_Script_slog(_inst,_other,"s_end_replay");gml_Script_s_stop_brass_loop(_inst,_other);yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlstate=2;var ___sw1342___=global.gmlreplay_end;var ___swc1343___=-1;if(yyCompareVal(___sw1342___,0,g_GMLMathEpsilon,false)==0){___swc1343___=0;}switch(___swc1343___){case 0:{gml_Script_s_set_up_play(_inst,_other,false);gml_Script_s_create_head2head_message(_inst,_other);break;}default :{gml_Script_s_action_result(_inst,_other,global.gmlreplay_end);break;}};} }function gml_GlobalScript_s_get_qb_pmap(_inst,_other){(_inst.gmls_get_qb_pmap=__yy_method(_inst,gml_Script_s_get_qb_pmap));}function gml_Script_s_get_qb_pmap(_inst,_other){{if((yyGetBool(instance_exists(YYASSET_REF(0x00000069))))&&(yyGetBool(variable_instance_exists(100270,"team_roster")))){{var gmlthis_roster=yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_roster[__yy_gml_array_check_index(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlhuman_team,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_roster)]; var gmli=0;for(;yyfless(gmli,ds_list_size(gmlthis_roster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(gmlthis_roster,gmli);if(yyfequal(ds_map_find_value(gmlpmap,"position"),1)){{return gmlpmap;};};}};return(-4);};};{var __yy__v1483=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1484 in __yy__v1483){if(!__yy__v1483.hasOwnProperty(__yy__v1484))continue;var __yy__v1485=__yy__v1483[__yy__v1484];{var gmli=0; for(;yyfless(gmli,ds_list_size(__yy__v1485.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1485.gmlroster,gmli);if(yyfequal(ds_map_find_value(gmlpmap,"position"),1)){{return gmlpmap;};};}};}}};}}function gml_GlobalScript_s_create_message(_inst,_other){(_inst.gmls_create_message=__yy_method(_inst,gml_Script_s_create_message));(_inst.gmls_message_recenter=__yy_method(_inst,gml_Script_s_message_recenter)); (_inst.gmls_message_toggle=__yy_method(_inst,gml_Script_s_message_toggle));(_inst.gmls_create_message3=__yy_method(_inst,gml_Script_s_create_message3));(_inst.gmls_do_message=__yy_method(_inst,gml_Script_s_do_message));(_inst.gmls_msg=__yy_method(_inst,gml_Script_s_msg));(_inst.gmls_loading_button_hijack=__yy_method(_inst,gml_Script_s_loading_button_hijack));(_inst.gmls_loading_trigger=__yy_method(_inst,gml_Script_s_loading_trigger));(_inst.gmls_loading_start=__yy_method(_inst,gml_Script_s_loading_start)); (_inst.gmls_loading_callback=__yy_method(_inst,gml_Script_s_loading_callback));}function gml_Script_s_create_message(_inst,_other,argument0,argument1,argument2,argument3,argument4,argument5,argument6,argument7,argument8,argument9){{if(yyfequal(argument8,_inst.undefined)){argument8=(-4);};if(yyfequal(argument9,_inst.undefined)){argument9=3;};}{gml_Script_slog(_inst,_other,yyfplus(yyfplus("s_create_message[",__yy_gml_errCheck(argument1)),"]"));var gmlbx1=yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(display_get_gui_width()), 0.33)),45);var gmlbx2=yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(display_get_gui_width()),0.66)),45);var gmlbx3=yyfminus(__yy_gml_errCheck(display_get_gui_width()),128);var gmlbg=instance_create_layer(0,0,"PopUps",YYASSET_REF(0x0000004F));var gmltitle=instance_create_layer(yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5),0,"PopUps",YYASSET_REF(0x00000047));var gmlmsg=instance_create_layer(yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5),yyfplus((-8),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(display_get_gui_height()), 0.5))),"PopUps",YYASSET_REF(0x00000050));var gmlbtn_1=instance_create_layer(gmlbx1,224,"PopUps",YYASSET_REF(0x00000023));var gmlbtn_2=instance_create_layer(gmlbx2,224,"PopUps",YYASSET_REF(0x00000023));yyInst(_inst,_other,gmlbg).gmlinst_bg=gmlbg;yyInst(_inst,_other,gmlbg).gmlinst_title=gmltitle;yyInst(_inst,_other,gmlbg).gmlinst_msg=gmlmsg;yyInst(_inst,_other,gmlbg).gmlinst_btn_1=gmlbtn_1;yyInst(_inst,_other,gmlbg).gmlinst_btn_2=gmlbtn_2;if((yyGetBool(yyfgreater(string_length(argument2),10)))||(yyGetBool(yyfgreater(string_length(argument3), 10)))){{instance_destroy(_inst,gmlbtn_1);instance_destroy(_inst,gmlbtn_2);gmlbtn_1=instance_create_layer(gmlbx1,224,"PopUps",YYASSET_REF(0x0000002A));gmlbtn_2=instance_create_layer(gmlbx2,224,"PopUps",YYASSET_REF(0x0000002A));};};yyInst(_inst,_other,gmlbg).gmlcolour=argument6;yyInst(_inst,_other,gmlbg).gmlalpha=argument7;yyInst(_inst,_other,gmltitle).gmlty=16;yyInst(_inst,_other,gmltitle).gmlshow_stars=false;if((yyGetBool(yyfequal(argument0,gml_Script_s_str(_inst,_other,"ui_News"))))||(yyGetBool(yyfequal(argument0, gml_Script_s_str(_inst,_other,"ui_Tip"))))){yyInst(_inst,_other,gmltitle).gmlshow_stars=true;};yyInst(_inst,_other,gmltitle).gmltext=string(argument0);yyInst(_inst,_other,gmlmsg).gmltext=argument1;yyInst(_inst,_other,gmlmsg).gmlcolour=global.gmlc_background;if(yyGetBool(instance_exists(YYASSET_REF(0x00000063)))){yyInst(_inst,_other,gmlmsg).gmlmsg_width=260;};yyInst(_inst,_other,gmlbtn_1).gmltext=argument2;yyInst(_inst,_other,gmlbtn_2).gmltext=argument3;yyInst(_inst,_other,gmlbtn_1).gmlonClickAction=argument4; yyInst(_inst,_other,gmlbtn_2).gmlonClickAction=argument5;yyInst(_inst,_other,gmltitle).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other,gmlmsg).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other,gmlbtn_1).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other,gmlbtn_2).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other,gmlbtn_1).gmlgp_allowed=argument9; yyInst(_inst,_other,gmlbtn_2).gmlgp_allowed=argument9;if(yyfequal(argument0,"")){yyInst(_inst,_other,gmltitle).visible=false;};if(yyfequal(argument2,"")){{yyInst(_inst,_other,gmlbtn_1).visible=false;yyInst(_inst,_other,gmlbtn_2).x=gmlbx3;};};if(yyfequal(argument3,"")){{yyInst(_inst,_other,gmlbtn_2).visible=false;yyInst(_inst,_other,gmlbtn_1).x=gmlbx3;};};if(yyfnotequal(argument8,(-4))){{gml_Script_slog(_inst,_other,"Show profile for player");var gmlprof_1=instance_create_layer(32,180,"PopUps",YYASSET_REF(0x00000032)); yyInst(_inst,_other,gmlprof_1).gmlpmap=argument8;yyInst(_inst,_other,gmlprof_1).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);};};return gmlbg;}}function gml_Script_s_message_recenter(_inst,_other){{{var __yy__v1486=GetWithArray(_inst.gmlinst_bg);for(var __yy__v1487 in __yy__v1486){if(!__yy__v1486.hasOwnProperty(__yy__v1487))continue;var __yy__v1488=__yy__v1486[__yy__v1487];{__yy__v1488.image_xscale=1;__yy__v1488.image_yscale=1;__yy__v1488.image_xscale=yyfdivide(__yy_gml_errCheck(display_get_gui_width()), __yy_gml_errCheck(__yy__v1488.sprite_width));__yy__v1488.image_yscale=yyfdivide(__yy_gml_errCheck(display_get_gui_height()),__yy_gml_errCheck(__yy__v1488.sprite_height));}}};if(yyGetBool(variable_instance_exists(_inst.id,"title"))){{var __yy__v1489=GetWithArray(_inst.gmltitle);for(var __yy__v1490 in __yy__v1489){if(!__yy__v1489.hasOwnProperty(__yy__v1490))continue;var __yy__v1491=__yy__v1489[__yy__v1490];__yy__v1491.x=yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5);}};};{var __yy__v1492=GetWithArray(_inst.gmlinst_msg); for(var __yy__v1493 in __yy__v1492){if(!__yy__v1492.hasOwnProperty(__yy__v1493))continue;var __yy__v1494=__yy__v1492[__yy__v1493];__yy__v1494.x=yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5);}};{var __yy__v1495=GetWithArray(_inst.gmlinst_btn_1);for(var __yy__v1496 in __yy__v1495){if(!__yy__v1495.hasOwnProperty(__yy__v1496))continue;var __yy__v1497=__yy__v1495[__yy__v1496];__yy__v1497.x=yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(display_get_gui_width()),0.33)),45);}};{var __yy__v1498=GetWithArray(_inst.gmlinst_btn_2); for(var __yy__v1499 in __yy__v1498){if(!__yy__v1498.hasOwnProperty(__yy__v1499))continue;var __yy__v1500=__yy__v1498[__yy__v1499];__yy__v1500.x=yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(display_get_gui_width()),0.66)),45);}};}}function gml_Script_s_message_toggle(_inst,_other,argument0){{{var __yy__v1501=GetWithArray(_inst.gmlinst_bg);for(var __yy__v1502 in __yy__v1501){if(!__yy__v1501.hasOwnProperty(__yy__v1502))continue;var __yy__v1503=__yy__v1501[__yy__v1502];__yy__v1503.visible=argument0;}} ;{var __yy__v1504=GetWithArray(_inst.gmltitle);for(var __yy__v1505 in __yy__v1504){if(!__yy__v1504.hasOwnProperty(__yy__v1505))continue;var __yy__v1506=__yy__v1504[__yy__v1505];__yy__v1506.visible=argument0;}};{var __yy__v1507=GetWithArray(_inst.gmlinst_msg);for(var __yy__v1508 in __yy__v1507){if(!__yy__v1507.hasOwnProperty(__yy__v1508))continue;var __yy__v1509=__yy__v1507[__yy__v1508];__yy__v1509.visible=argument0;}};{var __yy__v1510=GetWithArray(_inst.gmlinst_btn_1);for(var __yy__v1511 in __yy__v1510){if(!__yy__v1510.hasOwnProperty(__yy__v1511))continue; var __yy__v1512=__yy__v1510[__yy__v1511];__yy__v1512.visible=argument0;}};{var __yy__v1513=GetWithArray(_inst.gmlinst_btn_2);for(var __yy__v1514 in __yy__v1513){if(!__yy__v1513.hasOwnProperty(__yy__v1514))continue;var __yy__v1515=__yy__v1513[__yy__v1514];__yy__v1515.visible=argument0;}};}}function gml_Script_s_create_message3(_inst,_other,argument0,argument1,argument2,argument3,argument4,argument5,argument6,argument7,argument8,argument9){{var gmlbx1=yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(display_get_gui_width()), 0.25)),45);var gmlbx2=yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5)),45);var gmlbx3=yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(display_get_gui_width()),0.75)),45);var gmlbg=instance_create_layer(0,0,"PopUps",YYASSET_REF(0x0000004F));var gmltitle=instance_create_layer(yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5),0,"PopUps",YYASSET_REF(0x00000047));var gmlmsg=instance_create_layer(yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5),yyfplus((-8), __yy_gml_errCheck(yyftime(__yy_gml_errCheck(display_get_gui_height()),0.5))),"PopUps",YYASSET_REF(0x00000050));var gmlbtn_1=instance_create_layer(gmlbx1,224,"PopUps",YYASSET_REF(0x00000023));var gmlbtn_2=instance_create_layer(gmlbx2,224,"PopUps",YYASSET_REF(0x00000023));var gmlbtn_3=instance_create_layer(gmlbx3,224,"PopUps",YYASSET_REF(0x00000023));if((yyGetBool(yyfgreater(string_length(argument2),10)))||(yyGetBool(yyfgreater(string_length(argument3),10)))||(yyGetBool(yyfgreater(string_length(argument4), 10)))){{instance_destroy(_inst,gmlbtn_1);instance_destroy(_inst,gmlbtn_2);instance_destroy(_inst,gmlbtn_3);gmlbtn_1=instance_create_layer(gmlbx1,224,"PopUps",YYASSET_REF(0x0000002A));gmlbtn_2=instance_create_layer(gmlbx2,224,"PopUps",YYASSET_REF(0x0000002A));gmlbtn_3=instance_create_layer(gmlbx3,224,"PopUps",YYASSET_REF(0x0000002A));};};yyInst(_inst,_other,gmlbg).gmlcolour=argument8;yyInst(_inst,_other,gmlbg).gmlalpha=argument9;yyInst(_inst,_other,gmltitle).gmlty=16;yyInst(_inst,_other,gmltitle).gmlshow_stars=false; if((yyGetBool(yyfequal(argument0,gml_Script_s_str(_inst,_other,"ui_News"))))||(yyGetBool(yyfequal(argument0,gml_Script_s_str(_inst,_other,"ui_Tip"))))){yyInst(_inst,_other,gmltitle).gmlshow_stars=true;};yyInst(_inst,_other,gmltitle).gmltext=string(argument0);yyInst(_inst,_other,gmlmsg).gmltext=argument1;yyInst(_inst,_other,gmlmsg).gmlcolour=global.gmlc_background;if(yyGetBool(instance_exists(YYASSET_REF(0x00000063)))){yyInst(_inst,_other,gmlmsg).gmlmsg_width=260;};yyInst(_inst,_other,gmlbtn_1).gmltext=argument2; yyInst(_inst,_other,gmlbtn_2).gmltext=argument3;yyInst(_inst,_other,gmlbtn_3).gmltext=argument4;yyInst(_inst,_other,gmlbtn_1).gmlonClickAction=argument5;yyInst(_inst,_other,gmlbtn_2).gmlonClickAction=argument6;yyInst(_inst,_other,gmlbtn_3).gmlonClickAction=argument7;yyInst(_inst,_other,gmltitle).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other,gmlmsg).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other,gmlbtn_1).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst, _other,gmlbg).depth),1);yyInst(_inst,_other,gmlbtn_2).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other,gmlbtn_3).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);if(yyfequal(argument0,"")){yyInst(_inst,_other,gmltitle).visible=false;};}}function gml_Script_s_do_message(_inst,_other,argument0){{gml_Script_s_create_message(_inst,_other,"",argument0,gml_Script_s_str(_inst,_other,"ui_Ok"),"",kgml_Script_s_msg_clear,(-1),global.gmlc_background, 1);}}function gml_Script_s_msg(_inst,_other,argument0){{gml_Script_s_do_message(_inst,_other,argument0);}}function gml_Script_s_loading_button_hijack(_inst,_other,argument0){{yyInst(_inst,_other,argument0).gml_original_action=yyInst(_inst,_other,argument0).gmlonClickAction;yyInst(_inst,_other,argument0).gmlonClickAction=kgml_Script_s_loading_trigger;}}function gml_Script_s_loading_trigger(_inst,_other){{gml_Script_s_loading_start(_inst,_other,_inst.gml_original_action);}}function gml_Script____struct___174_s_loading_start_gml_GlobalScript_s_create_message(_inst, _other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___174_s_loading_start_gml_GlobalScript_s_create_message";}if(gml_Script____struct___174_s_loading_start_gml_GlobalScript_s_create_message.prototype.__type===undefined){gml_Script____struct___174_s_loading_start_gml_GlobalScript_s_create_message.prototype.__type="gml_Script____struct___174_s_loading_start_gml_GlobalScript_s_create_message";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___174_s_loading_start_gml_GlobalScript_s_create_message.prototype); {var $$args=Array.prototype.slice.call(arguments);{_inst.gmlcallback=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlaction_step=$$args[__yy_gml_array_check_index(2+(1),$$args)];}}}}function gml_Script_s_loading_start(_inst,_other,argument0){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{__yyg_call_method(argument0)(_inst,_other);return;};};gml_Script_s_msg_clear(_inst,_other);gml_Script_s_create_message(_inst,_other,"","Loading...","","",(-1),(-1),global.gmlc_background,1);instance_create_layer(0, 0,"Instances",YYASSET_REF(0x0000001D),__yy_gml_object_create(_inst,(_inst.gml___struct___174=__yy_method(_inst,gml_Script____struct___174_s_loading_start_gml_GlobalScript_s_create_message)),argument0,kgml_Script_s_loading_callback));}}function gml_Script_s_loading_callback(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);if(yyfnotequal(_inst.gmlcallback,(-4))){__yyg_call_method(_inst.gmlcallback)(_inst,_other);};_inst.gmlcallback=(-4);instance_destroy(_inst);}}function gml_GlobalScript_s_meter_change(_inst, _other){(_inst.gmls_meter_change=__yy_method(_inst,gml_Script_s_meter_change));}function gml_Script_s_meter_change(_inst,_other,argument0,argument1,argument2,argument3){{gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus("s_meter_change: ",__yy_gml_errCheck(string(argument0)))," "),__yy_gml_errCheck(argument3)));var gmlbg=instance_create_layer(0,0,"PopUps",YYASSET_REF(0x0000004F));yyInst(_inst,_other,gmlbg).gmlcolour=global.gmlc_background;yyInst(_inst,_other,gmlbg).gmlalpha=1;yyInst(_inst,_other, gmlbg).alarm=__yy_gml_array_check(yyInst(_inst,_other,gmlbg).alarm,882480689);yyInst(_inst,_other,gmlbg).alarm[__yy_gml_array_check_index_set(0)]=100;yyInst(_inst,_other,gmlbg).gmlnew_room=argument2;var gmlobj=(-4);var ___sw1346___=argument0;var ___swc1347___=-1;if(yyCompareVal(___sw1346___,1,g_GMLMathEpsilon,false)==0){___swc1347___=0;}else if(yyCompareVal(___sw1346___,2,g_GMLMathEpsilon,false)==0){___swc1347___=1;}else if(yyCompareVal(___sw1346___,3,g_GMLMathEpsilon,false)==0){___swc1347___=2;}else if(yyCompareVal(___sw1346___, 4,g_GMLMathEpsilon,false)==0){___swc1347___=3;}else if(yyCompareVal(___sw1346___,5,g_GMLMathEpsilon,false)==0){___swc1347___=4;}else if(yyCompareVal(___sw1346___,6,g_GMLMathEpsilon,false)==0){___swc1347___=5;}else if(yyCompareVal(___sw1346___,7,g_GMLMathEpsilon,false)==0){___swc1347___=6;}else if(yyCompareVal(___sw1346___,8,g_GMLMathEpsilon,false)==0){___swc1347___=7;}else if(yyCompareVal(___sw1346___,9,g_GMLMathEpsilon,false)==0){___swc1347___=8;}else if(yyCompareVal(___sw1346___,10,g_GMLMathEpsilon, false)==0){___swc1347___=9;}switch(___swc1347___){case 0:{gmlobj=instance_create_layer(0,0,"PopUps",YYASSET_REF(0x00000037));yyInst(_inst,_other,gmlobj).gmlold_percent=argument1;break;}case 1:{gmlobj=instance_create_layer(0,0,"PopUps",YYASSET_REF(0x00000039));yyInst(_inst,_other,gmlobj).gmlold_percent=argument1;break;}case 2:{gmlobj=instance_create_layer(0,0,"PopUps",YYASSET_REF(0x00000032));yyInst(_inst,_other,gmlobj).gmlold_condition=argument1;yyInst(_inst,_other,gmlobj).gmlpmap=yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlplayer_profile;gml_Script_s_load_profile_uni(_inst,_other,gmlobj);yyInst(_inst,_other,gmlobj).gmlactive=false;break;}case 3:{gmlobj=instance_create_layer(0,0,"PopUps",YYASSET_REF(0x00000042));yyInst(_inst,_other,gmlobj).gmlold_percent=argument1;break;}case 4:{gmlobj=instance_create_layer(0,0,"PopUps",YYASSET_REF(0x00000032));yyInst(_inst,_other,gmlobj).gmlpmap=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile;gml_Script_s_load_profile_uni(_inst,_other,gmlobj); yyInst(_inst,_other,gmlobj).gmlflash_attitude=true;yyInst(_inst,_other,gmlobj).gmlactive=false;if(yyfless(argument1,ds_map_find_value(yyInst(_inst,_other,gmlobj).gmlpmap,"attitude"))){yyInst(_inst,_other,gmlobj).gmlshow_arrow=1;}else {if(yyfgreater(argument1,ds_map_find_value(yyInst(_inst,_other,gmlobj).gmlpmap,"attitude"))){yyInst(_inst,_other,gmlobj).gmlshow_arrow=(-1);};};yyInst(_inst,_other,gmlbg).alarm[__yy_gml_array_check_index_set(0)]=160;break;}case 5:{gmlobj=instance_create_layer(0,0,"PopUps", YYASSET_REF(0x0000003E));yyInst(_inst,_other,gmlobj).gmlflash_rating=true;yyInst(_inst,_other,gmlbg).alarm[__yy_gml_array_check_index_set(0)]=160;break;}case 6:{gmlobj=instance_create_layer(0,0,"PopUps",YYASSET_REF(0x00000040));yyInst(_inst,_other,gmlobj).gmlflash_rating=true;yyInst(_inst,_other,gmlbg).alarm[__yy_gml_array_check_index_set(0)]=160;break;}case 7:{gmlobj=instance_create_layer(0,0,"PopUps",YYASSET_REF(0x00000041));yyInst(_inst,_other,gmlobj).gmlflash=true;yyInst(_inst,_other,gmlbg).alarm[__yy_gml_array_check_index_set(0)]=160; break;}case 8:{gmlobj=instance_create_layer(0,0,"PopUps",YYASSET_REF(0x0000001C));yyInst(_inst,_other,gmlobj).gmlold_percent=argument1;break;}case 9:{gmlobj=instance_create_layer(0,0,"PopUps",YYASSET_REF(0x00000021));yyInst(_inst,_other,gmlobj).gmlflash=true;yyInst(_inst,_other,gmlbg).alarm[__yy_gml_array_check_index_set(0)]=160;break;}};yyInst(_inst,_other,gmlobj).x=yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(g_pBuiltIn.room_width),0.5)),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst, _other,gmlobj).sprite_width),0.5)));yyInst(_inst,_other,gmlobj).y=yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(g_pBuiltIn.room_height),0.5)),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,gmlobj).sprite_height),0.5)));yyInst(_inst,_other,gmlobj).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);if(yyfnotequal(argument3,"")){{var gmlmsg=instance_create_layer(yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5),yyftime(__yy_gml_errCheck(display_get_gui_height()), 0.35),"PopUps",YYASSET_REF(0x00000050));yyInst(_inst,_other,gmlmsg).gmltext=argument3;yyInst(_inst,_other,gmlmsg).gmlcolour=global.gmlc_background;yyInst(_inst,_other,gmlmsg).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other,gmlbg).alarm[__yy_gml_array_check_index_set(0)]=0;draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);draw_set_valign(1);var gmlh=yyfplus(12,__yy_gml_errCheck(gml_Script_string_hd_height_ext(_inst,_other,argument3,(-1),yyInst(_inst, _other,gmlmsg).gmlmsg_width)));yyInst(_inst,_other,gmlobj).y=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmlmsg).y),__yy_gml_errCheck(gmlh));var gmlbtn_1=instance_create_layer(yyfminus(__yy_gml_errCheck(display_get_gui_width()),128),224,"PopUps",YYASSET_REF(0x00000023));yyInst(_inst,_other,gmlbtn_1).gmltext=gml_Script_s_str(_inst,_other,"ui_Continue");yyInst(_inst,_other,gmlbtn_1).gmlonClickAction=kgml_Script_s_meter_change_end;yyInst(_inst,_other,gmlbtn_1).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst, _other,gmlbg).depth),1);};};}}function gml_GlobalScript_s_meter_change_end(_inst,_other){(_inst.gmls_meter_change_end=__yy_method(_inst,gml_Script_s_meter_change_end));}function gml_Script_s_meter_change_end(_inst,_other){{if(yyfgreaterequal(gml_Script_s_get_morale(_inst,_other),100)){gml_Script_s_complete_achievement(_inst,_other,"ACH_MORALE100");};{var __yy__v1516=GetWithArray(YYASSET_REF(0x0000004F));for(var __yy__v1517 in __yy__v1516){if(!__yy__v1516.hasOwnProperty(__yy__v1517))continue;var __yy__v1518=__yy__v1516[__yy__v1517]; {if(yyGetBool(__yy__v1518.gmlnew_room)){{gml_Script_slog(__yy__v1518,_inst,"s_meter_change_end 1 [new_room]");room_goto(__yy__v1518.gmlnew_room);};}else {if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstage,2)){{gml_Script_slog(__yy__v1518,_inst,"s_meter_change_end 2 [STAGE_DRAFT]");if(yyfequal(gml_Script_s_dilemma_college_check_chained(__yy__v1518,_inst),false)){{room_goto(YYASSET_REF(0x0300000E));gml_Script_s_msg_clear(__yy__v1518,_inst);};};};}else {{gml_Script_slog(__yy__v1518,_inst, "s_meter_change_end 3 [Other]");if(yyfequal(gml_Script_s_dilemma_college_check_chained(__yy__v1518,_inst),false)){{gml_Script_s_play(__yy__v1518,_inst,1);gml_Script_s_msg_clear(__yy__v1518,_inst);};};};};};}}};}}function gml_GlobalScript_s_notification(_inst,_other,argument0,argument1){(_inst.gmls_notification=__yy_method(_inst,gml_Script_s_notification));}function gml_Script_s_notification(_inst,_other,argument0,argument1){{gml_Script_slog(_inst,_other,yyfplus(">>> s_notification: ",__yy_gml_errCheck(argument0))); gml_Script_slog(_inst,_other,argument1);var gmltitle=argument0;var gmltext=argument1;if(yyfequal(window_get_cursor(),(-1))){return;};var gmlntf=instance_create_layer(0,0,"PopUps",YYASSET_REF(0x0000005A));yyInst(_inst,_other,gmlntf).depth=(-100);yyInst(_inst,_other,gmlntf).gmltitle=gmltitle;yyInst(_inst,_other,gmlntf).gmltext=gmltext;yyInst(_inst,_other,gmlntf).gmltext_col=16777215;yyInst(_inst,_other,gmlntf).gmlcolour=make_color_rgb(79,143,35);if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{yyInst(_inst, _other,gmlntf).gmlcolour=make_color_rgb(210,210,10);yyInst(_inst,_other,gmlntf).gmltext_shadow=true;};};if(yyfgreater(ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllist_notifications),0)){yyInst(_inst,_other,gmlntf).visible=false;};ds_list_add(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllist_notifications,gmlntf);gml_Script_slog(_inst,_other,yyfplus("Notification count = ",__yy_gml_errCheck(string(ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllist_notifications))))); }}function gml_GlobalScript_s_msg_clear(_inst,_other){(_inst.gmls_msg_clear=__yy_method(_inst,gml_Script_s_msg_clear));}function gml_Script_s_msg_clear(_inst,_other,argument0){{if(yyfequal(argument0,_inst.undefined)){argument0=(-4);};}{if(yyGetBool(instance_exists(YYASSET_REF(0x00000069)))){{{var __yy__v1519=GetWithArray(YYASSET_REF(0x0000004F));for(var __yy__v1520 in __yy__v1519){if(!__yy__v1519.hasOwnProperty(__yy__v1520))continue;var __yy__v1521=__yy__v1519[__yy__v1520];instance_destroy(__yy__v1521); }};{var __yy__v1522=GetWithArray(YYASSET_REF(0x00000047));for(var __yy__v1523 in __yy__v1522){if(!__yy__v1522.hasOwnProperty(__yy__v1523))continue;var __yy__v1524=__yy__v1522[__yy__v1523];if(yyfless(__yy__v1524.depth,0)){instance_destroy(__yy__v1524);};}};{var __yy__v1525=GetWithArray(YYASSET_REF(0x00000050));for(var __yy__v1526 in __yy__v1525){if(!__yy__v1525.hasOwnProperty(__yy__v1526))continue;var __yy__v1527=__yy__v1525[__yy__v1526];if(yyfless(__yy__v1527.depth,0)){instance_destroy(__yy__v1527);};}};{ var __yy__v1528=GetWithArray(YYASSET_REF(0x00000023));for(var __yy__v1529 in __yy__v1528){if(!__yy__v1528.hasOwnProperty(__yy__v1529))continue;var __yy__v1530=__yy__v1528[__yy__v1529];if(yyfless(__yy__v1530.depth,0)){instance_destroy(__yy__v1530);};}};{var __yy__v1531=GetWithArray(YYASSET_REF(0x0000002A));for(var __yy__v1532 in __yy__v1531){if(!__yy__v1531.hasOwnProperty(__yy__v1532))continue;var __yy__v1533=__yy__v1531[__yy__v1532];if(yyfless(__yy__v1533.depth,0)){instance_destroy(__yy__v1533);};}};{var __yy__v1534=GetWithArray(YYASSET_REF(0x0000005A)); for(var __yy__v1535 in __yy__v1534){if(!__yy__v1534.hasOwnProperty(__yy__v1535))continue;var __yy__v1536=__yy__v1534[__yy__v1535];if(yyfless(__yy__v1536.depth,0)){instance_destroy(__yy__v1536);};}};ds_list_clear(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllist_notifications);};}else {{{var __yy__v1537=GetWithArray((-3));for(var __yy__v1538 in __yy__v1537){if(!__yy__v1537.hasOwnProperty(__yy__v1538))continue;var __yy__v1539=__yy__v1537[__yy__v1538];if(yyflessequal(__yy__v1539.depth,0)){instance_destroy(__yy__v1539); };}};if(yyGetBool(instance_exists(YYASSET_REF(0x00000062)))){ds_list_clear(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllist_notifications);};};};}}function gml_GlobalScript_s_msg_clear_info_draft(_inst,_other){(_inst.gmls_msg_clear_info_draft=__yy_method(_inst,gml_Script_s_msg_clear_info_draft));}function gml_Script_s_msg_clear_info_draft(_inst,_other){{{var __yy__v1540=GetWithArray(YYASSET_REF(0x00000047));for(var __yy__v1541 in __yy__v1540){if(!__yy__v1540.hasOwnProperty(__yy__v1541))continue;var __yy__v1542=__yy__v1540[__yy__v1541]; if(yyfless(__yy__v1542.depth,0)){instance_destroy(__yy__v1542);};}};{var __yy__v1543=GetWithArray(YYASSET_REF(0x0000004F));for(var __yy__v1544 in __yy__v1543){if(!__yy__v1543.hasOwnProperty(__yy__v1544))continue;var __yy__v1545=__yy__v1543[__yy__v1544];instance_destroy(__yy__v1545);}};{var __yy__v1546=GetWithArray(YYASSET_REF(0x00000023));for(var __yy__v1547 in __yy__v1546){if(!__yy__v1546.hasOwnProperty(__yy__v1547))continue;var __yy__v1548=__yy__v1546[__yy__v1547];if(yyfless(__yy__v1548.depth,0)){instance_destroy(__yy__v1548); };}};{var __yy__v1549=GetWithArray(YYASSET_REF(0x00000050));for(var __yy__v1550 in __yy__v1549){if(!__yy__v1549.hasOwnProperty(__yy__v1550))continue;var __yy__v1551=__yy__v1549[__yy__v1550];if(yyfless(__yy__v1551.depth,0)){instance_destroy(__yy__v1551);};}};gml_Script_s_do_banner_draft(_inst,_other);}}function gml_GlobalScript_s_add_news(_inst,_other){(_inst.gmls_add_news=__yy_method(_inst,gml_Script_s_add_news));(_inst.gmls_add_news_if_new=__yy_method(_inst,gml_Script_s_add_news_if_new));(_inst.gmls_remove_news=__yy_method(_inst, gml_Script_s_remove_news));(_inst.gmls_add_news_dyn=__yy_method(_inst,gml_Script_s_add_news_dyn));}function gml_Script_s_add_news(_inst,_other,argument0){{if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)){gml_Script_s_add_news_dyn(_inst,_other,"web",argument0,gml_Script_s_get_qb_pmap(_inst,_other),false);}else {ds_list_add(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlnewslist,argument0);};}}function gml_Script_s_add_news_if_new(_inst,_other,argument0){{var gmli=0;for(;yyfless(gmli, ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlnewslist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmloldMsg=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlnewslist,gmli);if(yyfequal(gmloldMsg,argument0)){{gml_Script_slog(_inst,_other,yyfplus(yyfplus("skip news[",__yy_gml_errCheck(string(argument0))),"]"));return;};};}};gml_Script_s_add_news(_inst,_other,argument0);}}function gml_Script_s_remove_news(_inst, _other,argument0){{var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlnewslist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmloldMsg=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlnewslist,gmli);if(yyfequal(gmloldMsg,argument0)){{gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus("s_remove_news [",__yy_gml_errCheck(string(gmloldMsg))),"] at #"),__yy_gml_errCheck(string(gmli))), " "));ds_list_delete(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlnewslist,gmli);return;};};}};}}function gml_Script_s_add_news_dyn(_inst,_other,argument0,argument1,argument2,argument3){{if(yyfnotequal(argument2,(-4))){argument1=gml_Script_s_parse_player_message(_inst,_other,argument1,argument2);};var gmlnews=ds_map_create();ds_map_set(gmlnews,"typ",argument0);ds_map_set(gmlnews,"txt",argument1);ds_map_set(gmlnews,"pmap_teamid",(-1));ds_map_set(gmlnews,"pmap_position",(-1));ds_map_set(gmlnews,"pmap_skin", (-1));ds_map_set(gmlnews,"pmap_face_x",(-1));ds_map_set(gmlnews,"pmap_face_y",(-1));if(yyfnotequal(argument2,(-4))){{ds_map_set(gmlnews,"pmap_teamid",real(ds_map_find_value(argument2,"teamid")));ds_map_set(gmlnews,"pmap_position",real(ds_map_find_value(argument2,"position")));ds_map_set(gmlnews,"pmap_skin",real(ds_map_find_value(argument2,"skin")));ds_map_set(gmlnews,"pmap_face_x",real(ds_map_find_value(argument2,"face_x")));ds_map_set(gmlnews,"pmap_face_y",real(ds_map_find_value(argument2,"face_y"))); };};ds_list_add(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllist_news_dyn,gmlnews);gml_Script_slog(_inst,_other,yyfplus("Added dynamic news: ",__yy_gml_errCheck(argument1)));if(yyGetBool(argument3)){gml_Script_s_check_for_news(_inst,_other);};}}function gml_GlobalScript_s_check_for_news(_inst,_other){(_inst.gmls_check_for_news=__yy_method(_inst,gml_Script_s_check_for_news));(_inst.gmls_has_news=__yy_method(_inst,gml_Script_s_has_news));}function gml_Script_s_check_for_news(_inst,_other){{{var __yy__v1552=GetWithArray(YYASSET_REF(0x00000062)); for(var __yy__v1553 in __yy__v1552){if(!__yy__v1552.hasOwnProperty(__yy__v1553))continue;var __yy__v1554=__yy__v1552[__yy__v1553];{if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)){{if(yyfgreater(ds_list_size(__yy__v1554.gmllist_news_dyn),0)){{var gmlnews=ds_list_find_value(__yy__v1554.gmllist_news_dyn,0);if(yyGetBool(gmlnews)){{if(yyfequal(ds_map_find_value(gmlnews,"typ"),"msg")){gml_Script_s_create_message(__yy__v1554,_inst,gml_Script_s_str(__yy__v1554,_inst,"ui_News"),ds_map_find_value(gmlnews, "txt"),"",gml_Script_s_str(__yy__v1554,_inst,"ui_Continue"),"",kgml_Script_s_news_clear,global.gmlc_background,1);}else {gml_Script_s_create_news_dyn_message(__yy__v1554,_inst,gmlnews);};};};ds_list_delete(__yy__v1554.gmllist_news_dyn,0);return;};};};}else {{if(yyfgreater(ds_list_size(__yy__v1554.gmllist_news_dyn),0)){{var gmlnews=ds_list_find_value(__yy__v1554.gmllist_news_dyn,0);if(yyGetBool(gmlnews)){{var ___sw1350___=ds_map_find_value(gmlnews,"typ");var ___swc1351___=-1;if(yyCompareVal(___sw1350___, "msg",g_GMLMathEpsilon,false)==0){___swc1351___=0;}else if(yyCompareVal(___sw1350___,"cc",g_GMLMathEpsilon,false)==0){___swc1351___=1;}switch(___swc1351___){case 0:{gml_Script_s_create_message(__yy__v1554,_inst,gml_Script_s_str(__yy__v1554,_inst,"ui_News"),ds_map_find_value(gmlnews,"txt"),"",gml_Script_s_str(__yy__v1554,_inst,"ui_Continue"),"",kgml_Script_s_news_clear,global.gmlc_background,1);break;}case 1:{var gmlobj=instance_create_layer(0,0,"PopUps",YYASSET_REF(0x00000041));yyInst(_inst,_other,gmlobj).gmlflash=true; var gmlbg=gml_Script_s_create_message(__yy__v1554,_inst,gml_Script_s_str(__yy__v1554,_inst,"ui_News"),ds_map_find_value(gmlnews,"txt"),"",gml_Script_s_str(__yy__v1554,_inst,"ui_Continue"),"",kgml_Script_s_news_clear,global.gmlc_background,1);yyInst(_inst,_other,yyInst(_inst,_other,gmlbg).gmlinst_msg).y=yyfplus(yyInst(_inst,_other,yyInst(_inst,_other,gmlbg).gmlinst_msg).y,20);yyInst(_inst,_other,gmlobj).x=yyfminus(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(display_get_gui_width()),2)),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(yyInst(_inst, _other,gmlobj).sprite_width),2)));yyInst(_inst,_other,gmlobj).y=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst,_other,gmlbg).gmlinst_msg).y),80);break;}default :{gml_Script_s_create_news_dyn_message(__yy__v1554,_inst,gmlnews);break;}};};};ds_list_delete(__yy__v1554.gmllist_news_dyn,0);return;};};if(yyfgreater(ds_list_size(__yy__v1554.gmlnewslist),0)){{gml_Script_s_create_message(__yy__v1554,_inst,gml_Script_s_str(__yy__v1554,_inst,"ui_News"),ds_list_find_value(__yy__v1554.gmlnewslist, 0),"",gml_Script_s_str(__yy__v1554,_inst,"ui_Continue"),"",kgml_Script_s_news_clear,global.gmlc_background,1);ds_list_delete(__yy__v1554.gmlnewslist,0);return;};};};};}}};gml_Script_s_check_intro(_inst,_other);}}function gml_Script_s_has_news(_inst,_other){{return(yyGetBool(yyfgreater(ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllist_news_dyn),0)))||(yyGetBool(yyfgreater(ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlnewslist),0)));}}function gml_GlobalScript_s_news_clear(_inst, _other){(_inst.gmls_news_clear=__yy_method(_inst,gml_Script_s_news_clear));}function gml_Script_s_news_clear(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstage,1)){gml_Script_s_savegame(_inst,_other);};var gmlhas_news=gml_Script_s_has_news(_inst,_other);gml_Script_s_check_for_news(_inst,_other);if((yyGetBool(!yyGetBool(gmlhas_news)))&&(yyGetBool(global.gmlto_news_from_dilemma))){{gml_Script_slog(_inst,_other,"to_news_from_dilemma- s_news_clear: progressing to play"); gml_Script_s_play(_inst,_other,1);};};}}function gml_GlobalScript_s_do_banner_draft(_inst,_other){(_inst.gmls_do_banner_draft=__yy_method(_inst,gml_Script_s_do_banner_draft));(_inst.gmls_do_banner_season_review=__yy_method(_inst,gml_Script_s_do_banner_season_review));}function gml_Script_s_do_banner_draft(_inst,_other){{var gmlmsg=instance_create_layer(0,0,"PopUps",YYASSET_REF(0x00000071));yyInst(_inst,_other,gmlmsg).gmlflash=false;yyInst(_inst,_other,gmlmsg).gmlcol=16777215;yyInst(_inst,_other,gmlmsg).alarm=__yy_gml_array_check(yyInst(_inst, _other,gmlmsg).alarm,2633220098);yyInst(_inst,_other,gmlmsg).alarm[__yy_gml_array_check_index_set(0)]=80;var gmltxt=gml_Script_s_str(_inst,_other,"ui_DraftRound");gmltxt=string_replace(gmltxt,"$num",string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraft_round));yyInst(_inst,_other,gmlmsg).gmltext=gmltxt;yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldodraftbanner=false;}}function gml_Script_s_do_banner_season_review(_inst,_other){{var gmlmsg=instance_create_layer(0,0,"PopUps",YYASSET_REF(0x00000071)); yyInst(_inst,_other,gmlmsg).gmlflash=false;yyInst(_inst,_other,gmlmsg).gmlcol=16777215;yyInst(_inst,_other,gmlmsg).alarm=__yy_gml_array_check(yyInst(_inst,_other,gmlmsg).alarm,2633220098);yyInst(_inst,_other,gmlmsg).alarm[__yy_gml_array_check_index_set(0)]=80;var gmltxt=gml_Script_s_str(_inst,_other,"ui_SeasonReview");gmltxt=string_replace(gmltxt,"$num",string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraft_round));yyInst(_inst,_other,gmlmsg).gmltext=gmltxt;}}function gml_GlobalScript_s_do_review_message(_inst, _other){(_inst.gmls_do_review_message=__yy_method(_inst,gml_Script_s_do_review_message));}function gml_Script_s_do_review_message(_inst,_other){{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_StoreReview");gmlmsg=string_replace(gmlmsg,"$num",string(5));ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"done_review_reward",1);gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"),kgml_Script_btn_response_review_no, kgml_Script_btn_response_review_yes,global.gmlc_background,1);}}function gml_GlobalScript_btn_response_review_yes(_inst,_other){(_inst.gmlbtn_response_review_yes=__yy_method(_inst,gml_Script_btn_response_review_yes));(_inst.gmlbtn_response_review_no=__yy_method(_inst,gml_Script_btn_response_review_no));}function gml_Script_btn_response_review_yes(_inst,_other){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit,5);gml_Script_s_savegame(_inst, _other);gml_Script_s_msg_clear(_inst,_other);var ___sw1354___=g_pBuiltIn.get_os_type();var ___swc1355___=-1;if(yyCompareVal(___sw1354___,3,g_GMLMathEpsilon,false)==0){___swc1355___=0;}else if(yyCompareVal(___sw1354___,4,g_GMLMathEpsilon,false)==0){___swc1355___=1;}switch(___swc1355___){case 0:{url_open("https://apps.apple.com/app/retrobowl/id1478902583");break;}case 1:{url_open("https://play.google.com/store/apps/details?id=com.newstargames.retrobowl");break;}default :{url_open("https://www.newstargames.com"); break;}};}}function gml_Script_btn_response_review_no(_inst,_other){{gml_Script_s_save_options(_inst,_other);gml_Script_s_msg_clear(_inst,_other);}}function gml_GlobalScript_s_edit_field(_inst,_other){(_inst.gmls_edit_field=__yy_method(_inst,gml_Script_s_edit_field));}function gml_Script_s_edit_field(_inst,_other,argument0,argument1,argument2,argument3,argument4,argument5,argument6,argument7,argument8){{gml_Script_slog(_inst,_other,"s_edit_text");var gmlbg=instance_create_layer(0,0,"PopUps",YYASSET_REF(0x0000004F)); yyInst(_inst,_other,gmlbg).gmlcolour=global.gmlc_background;yyInst(_inst,_other,gmlbg).gmlalpha=1;var gmltitle=instance_create_layer(yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5),32,"PopUps",YYASSET_REF(0x00000047));yyInst(_inst,_other,gmltitle).gmlty=16;yyInst(_inst,_other,gmltitle).gmltext=gml_Script_s_str(_inst,_other,"ui_Editor");yyInst(_inst,_other,gmltitle).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);var gmltx=yyftime(__yy_gml_errCheck(display_get_gui_width()), 0.35);var gmltxt_1=instance_create_layer(yyfminus(__yy_gml_errCheck(gmltx),10),72,"PopUps",YYASSET_REF(0x0000004B));yyInst(_inst,_other,gmltxt_1).gmltext=argument0;yyInst(_inst,_other,gmltxt_1).gmlhalign=2;yyInst(_inst,_other,gmltxt_1).gmldraw_box=false;yyInst(_inst,_other,gmltxt_1).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmledit_box1=instance_create_layer(gmltx,64,"PopUps",YYASSET_REF(0x00000048));yyInst(_inst,_other,yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmledit_box1).image_xscale=10;yyInst(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmledit_box1).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmledit_box1).gmltext=argument2;var gmlvbox=instance_create_layer(64,48,"PopUps",YYASSET_REF(0x00000043));yyInst(_inst,_other,gmlvbox).image_xscale=2.22;yyInst(_inst,_other,gmlvbox).image_yscale=0.38;yyInst(_inst,_other,gmlvbox).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst, _other,gmlbg).depth),1);yyInst(_inst,_other,gmlvbox).gmltitle=gml_Script_s_str(_inst,_other,"ui_Details");if(yyfnotequal(argument1,"")){{var gmltxt_2=instance_create_layer(yyfminus(__yy_gml_errCheck(gmltx),10),104,"PopUps",YYASSET_REF(0x0000004B));yyInst(_inst,_other,gmltxt_2).gmltext=argument1;yyInst(_inst,_other,gmltxt_2).gmlhalign=2;yyInst(_inst,_other,gmltxt_2).gmldraw_box=false;yyInst(_inst,_other,gmltxt_2).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmledit_box2=instance_create_layer(gmltx,96,"PopUps",YYASSET_REF(0x00000048));yyInst(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmledit_box2).image_xscale=10;yyInst(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmledit_box2).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);yyInst(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmledit_box2).gmltext=argument3;yyInst(_inst,_other,gmlvbox).image_yscale=0.6;};};var gmlbtn_2=instance_create_layer(yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(display_get_gui_width()), 0.5)),45),224,"PopUps",YYASSET_REF(0x00000023));yyInst(_inst,_other,gmlbtn_2).gmltext=gml_Script_s_str(_inst,_other,"ui_Confirm");yyInst(_inst,_other,gmlbtn_2).gmlonClickAction=kgml_Script_s_edit_confirm_profile;yyInst(_inst,_other,gmlbtn_2).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);var gmlbtn_head=instance_create_layer(yyftime(__yy_gml_errCheck(display_get_gui_width()),0.71),70,"PopUps",YYASSET_REF(0x00000056));yyInst(_inst,_other,gmlbtn_head).gmlskin=argument4;yyInst(_inst, _other,gmlbtn_head).gmlface_set=argument8;yyInst(_inst,_other,gmlbtn_head).gmlface_x=argument5;yyInst(_inst,_other,gmlbtn_head).gmlface_y=argument6;yyInst(_inst,_other,gmlbtn_head).gmlcoach_heads=argument7;yyInst(_inst,_other,gmlbtn_head).gmlonClickAction=kgml_Script_s_goto_rm_choose_face;yyInst(_inst,_other,gmlbtn_head).depth=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlbg).depth),1);gml_Script_slog(_inst,_other,yyfplus("face_x=",__yy_gml_errCheck(string(argument5))));gml_Script_slog(_inst, _other,yyfplus("face_y=",__yy_gml_errCheck(string(argument6))));}}function gml_GlobalScript_s_edit_cancel(_inst,_other){(_inst.gmls_edit_cancel=__yy_method(_inst,gml_Script_s_edit_cancel));}function gml_Script_s_edit_cancel(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);}}function gml_GlobalScript_s_edit_confirm_profile(_inst,_other){(_inst.gmls_edit_confirm_profile=__yy_method(_inst,gml_Script_s_edit_confirm_profile));(_inst.gmls_update_boss_profile=__yy_method(_inst,gml_Script_s_update_boss_profile)); }function gml_Script_s_edit_confirm_profile(_inst,_other){{{var __yy__v1555=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1556 in __yy__v1555){if(!__yy__v1555.hasOwnProperty(__yy__v1556))continue;var __yy__v1557=__yy__v1555[__yy__v1556];{var gmltxt1=yyInst(_inst,_other,__yy__v1557.gmledit_box1).gmltext;var gmltxt2=yyInst(_inst,_other,__yy__v1557.gmledit_box2).gmltext;if(yyGetBool(__yy__v1557.gmlplayer_profile)){{if(yyfgreater(string_length(gmltxt1),0)){ds_map_set(__yy__v1557.gmlplayer_profile,"fname", gmltxt1);};if(yyfgreater(string_length(gmltxt1),0)){ds_map_set(__yy__v1557.gmlplayer_profile,"lname",gmltxt2);};gml_Script_s_msg_clear(__yy__v1557,_inst);var ___sw1358___=ds_map_find_value(__yy__v1557.gmlplayer_profile,"position");var ___swc1359___=-1;if(yyCompareVal(___sw1358___,100,g_GMLMathEpsilon,false)==0){___swc1359___=0;}else if(yyCompareVal(___sw1358___,102,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1358___,101,g_GMLMathEpsilon,false)==0){___swc1359___=1;}switch(___swc1359___){case 0:{gml_Script_s_update_boss_profile(__yy__v1557, _inst);room_goto(YYASSET_REF(0x0300002E));break;}case 1:{room_goto(YYASSET_REF(0x03000017));break;}default :{room_goto(YYASSET_REF(0x03000016));break;}};};};}}};}}function gml_Script_s_update_boss_profile(_inst,_other){{{var __yy__v1558=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1559 in __yy__v1558){if(!__yy__v1558.hasOwnProperty(__yy__v1559))continue;var __yy__v1560=__yy__v1558[__yy__v1559];{__yy__v1560.gmlfname=ds_map_find_value(__yy__v1560.gmlboss_profile,"fname");__yy__v1560.gmllname=ds_map_find_value(__yy__v1560.gmlboss_profile, "lname");}}};}}function gml_GlobalScript_s_msg_timeouts(_inst,_other){(_inst.gmls_msg_timeouts=__yy_method(_inst,gml_Script_s_msg_timeouts));}function gml_Script_s_msg_timeouts(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltimeout_message_done=true;gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_TimeOuts"),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",16777215,0.7);}}function gml_GlobalScript_s_achievements(_inst, _other,argument0){(_inst.gmls_complete_achievement=__yy_method(_inst,gml_Script_s_complete_achievement));(_inst.gmls_achievement_is_valid=__yy_method(_inst,gml_Script_s_achievement_is_valid));(_inst.gmls_exists_in_list=__yy_method(_inst,gml_Script_s_exists_in_list));(_inst.gmls_count_achievement=__yy_method(_inst,gml_Script_s_count_achievement));(_inst.gmls_get_achievement=__yy_method(_inst,gml_Script_s_get_achievement));(_inst.gmls_get_achievement_percentage=__yy_method(_inst,gml_Script_s_get_achievement_percentage)); (_inst.gmls_get_filtered_achievements=__yy_method(_inst,gml_Script_s_get_filtered_achievements));}function gml_Script_s_complete_achievement(_inst,_other,argument0){{if(yyGetBool(global.gmlexhibition)){return;};var gmlach=gml_Script_s_get_achievement(_inst,_other,argument0);if(!yyGetBool(ds_exists(gmlach,1))){return;};{var __yy__v1561=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v1562 in __yy__v1561){if(!__yy__v1561.hasOwnProperty(__yy__v1562))continue;var __yy__v1563=__yy__v1561[__yy__v1562];if((yyGetBool(yyfnotequal(__yy__v1563.gmlcomm_stage, 31)))&&(yyGetBool(gml_Script_s_simming_action(__yy__v1563,_inst)))){return;};}};if(yyfequal(gml_Script_s_achievement_is_valid(_inst,_other,gmlach),false)){{return;};};if(!yyGetBool(is_undefined(ds_map_find_value(gmlach,"achieved")))){{var gmlcount=real(ds_map_find_value(gmlach,"achieved"));if(yyfequal(gmlcount,0)){{gml_Script_s_notification(_inst,_other,yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Achievement")),"!"),ds_map_find_value(gmlach,"description"));};};ds_map_set(gmlach,"achieved", yyfplus(__yy_gml_errCheck(gmlcount),1));};};}}function gml_Script_s_achievement_is_valid(_inst,_other,argument0){{if(!yyGetBool(is_undefined(ds_map_find_value(argument0,"valid_in")))){{var gmlvalid_in=ds_map_find_value(argument0,"valid_in");if(yyfnotequal(string_length(gmlvalid_in),0)){{var gmlvalid_list=string_split(gmlvalid_in,",");if((yyGetBool(gml_Script_s_is_co_mode(_inst,_other)))&&(yyGetBool(!yyGetBool(gml_Script_s_exists_in_list(_inst,_other,gmlvalid_list,"co"))))){{return false;};};if((yyGetBool((yyGetBool(yyfequal(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlfr_mode,1)))||(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode,1)))))&&(yyGetBool(!yyGetBool(gml_Script_s_exists_in_list(_inst,_other,gmlvalid_list,"fr"))))){{return false;};};};};};};return true;}}function gml_Script_s_exists_in_list(_inst,_other,argument0,argument1){{var gmli=0;for(;yyfless(gmli,array_length_1d(argument0));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{if(yyfequal(argument1, argument0[__yy_gml_array_check_index(gmli,argument0)])){{return true;};};}};return false;}}function gml_Script_s_count_achievement(_inst,_other,argument0){{{var __yy__v1564=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1565 in __yy__v1564){if(!__yy__v1564.hasOwnProperty(__yy__v1565))continue;var __yy__v1566=__yy__v1564[__yy__v1565];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1566.gmlachievements));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ {var gmlach=ds_list_find_value(__yy__v1566.gmlachievements,gmli);if(yyfequal(ds_map_find_value(gmlach,"tag"),argument0)){return real(ds_map_find_value(gmlach,"achieved"));};}};}}};return 0;}}function gml_Script_s_get_achievement(_inst,_other,argument0){{var gmltag=argument0;{var __yy__v1567=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1568 in __yy__v1567){if(!__yy__v1567.hasOwnProperty(__yy__v1568))continue;var __yy__v1569=__yy__v1567[__yy__v1568];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1569.gmlachievements)); (g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlach=ds_list_find_value(__yy__v1569.gmlachievements,gmli);if(yyfequal(ds_map_find_value(gmlach,"tag"),gmltag)){return gmlach;};}};}}};return(-4);}}function gml_Script_s_get_achievement_percentage(_inst,_other){{{var __yy__v1570=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1571 in __yy__v1570){if(!__yy__v1570.hasOwnProperty(__yy__v1571))continue;var __yy__v1572=__yy__v1570[__yy__v1571]; {var gmlcount=0;var gmlvalid_count=0;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1572.gmlachievements));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlach=ds_list_find_value(__yy__v1572.gmlachievements,gmli);if(!yyGetBool(gml_Script_s_achievement_is_valid(__yy__v1572,_inst,gmlach))){continue;};(g_yyPrePostObject__=gmlvalid_count,gmlvalid_count=(g_yyPrePostObject__ instanceof Long?gmlvalid_count.add(1):++gmlvalid_count),g_yyPrePostObject__); if(!yyGetBool(is_undefined(ds_map_find_value(gmlach,"achieved")))){{if(yyfgreater(real(ds_map_find_value(gmlach,"achieved")),0)){(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__);};};};}};}}};if(yyfequal(gmlvalid_count,0)){return 0;};return round(yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlcount),__yy_gml_errCheck(gmlvalid_count))),100));}}function gml_Script_s_get_filtered_achievements(_inst,_other,argument0){{var gmlach_array=__yy_gml_array_create([]); var gmlach;var gmli=0;for(;yyfless(gmli,ds_list_size(argument0));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlach=ds_list_find_value(argument0,gmli);if(yyGetBool(gml_Script_s_achievement_is_valid(_inst,_other,gmlach))){array_push(gmlach_array,gmlach);};}};return gmlach_array;}}function gml_GlobalScript_s_get_record(_inst,_other,argument0){(_inst.gmls_get_record=__yy_method(_inst,gml_Script_s_get_record));}function gml_Script_s_get_record(_inst, _other,argument0){{var gmlmap_id=argument0;{var __yy__v1573=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1574 in __yy__v1573){if(!__yy__v1573.hasOwnProperty(__yy__v1574))continue;var __yy__v1575=__yy__v1573[__yy__v1574];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1575.gmlrecords));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(__yy__v1575.gmlrecords,gmli);if(yyGetBool(ds_exists(gmlmap,1))){{if((yyGetBool(ds_map_exists(gmlmap, "tag")))&&(yyGetBool(yyfequal(ds_map_find_value(gmlmap,"tag"),gmlmap_id)))){{return gmlmap;};};};};}};return(-4);}}};}}function gml_GlobalScript_s_check_record(_inst,_other){(_inst.gmls_check_record=__yy_method(_inst,gml_Script_s_check_record));}function gml_Script_s_check_record(_inst,_other,argument0,argument1,argument2,argument3,argument4){{if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice)){return;};if(yyGetBool(global.gmlexhibition)){return;};var gmlmap=gml_Script_s_get_record(_inst, _other,argument0);if((yyGetBool(ds_exists(gmlmap,1)))&&(yyGetBool(ds_map_exists(gmlmap,"stat")))&&(yyGetBool(yyfgreater(argument1,ds_map_find_value(gmlmap,"stat"))))){{if((yyGetBool(yyfgreater(ds_map_find_value(gmlmap,"stat"),0)))&&(yyGetBool(yyfequal(g_pBuiltIn.get_current_room(),YYASSET_REF(0x03000011))))&&(yyGetBool(instance_exists(YYASSET_REF(0x0000006F))))){{global.gmlreplay_do=true;gml_Script_s_notification(_inst,_other,yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_NewRecord")), "!"),gml_Script_s_str(_inst,_other,ds_map_find_value(gmlmap,"tag")));};};ds_map_set(gmlmap,"stat",argument1);if(yyfnotequal(argument2,"")){ds_map_set(gmlmap,"qbname",argument2);};if(yyfnotequal(argument3,"")){ds_map_set(gmlmap,"playername",argument3);};ds_map_set(gmlmap,"year",yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear);ds_map_set(gmlmap,"week",yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek);ds_map_set(gmlmap,"team",ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam, "tla"));if(yyfnotequal(argument4,"")){ds_map_set(gmlmap,"opponent",argument4);};};};}}function gml_GlobalScript_s_check_record_text(_inst,_other){(_inst.gmls_check_record_text=__yy_method(_inst,gml_Script_s_check_record_text));}function gml_Script_s_check_record_text(_inst,_other,argument0,argument1,argument2){{if(yyGetBool(global.gmlexhibition)){return;};var gmlmap=gml_Script_s_get_record(_inst,_other,argument0);if((yyGetBool(ds_exists(gmlmap,1)))&&(yyGetBool(ds_map_exists(gmlmap,"stat")))&&(yyGetBool(yyfgreater(argument1, ds_map_find_value(gmlmap,"stat"))))){{ds_map_set(gmlmap,"stat",argument1);ds_map_set(gmlmap,"stat_text",argument2);ds_map_set(gmlmap,"year",yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear);ds_map_set(gmlmap,"week",yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek);};};}}function gml_GlobalScript_s_sort_record_list(_inst,_other){(_inst.gmls_sort_record_list=__yy_method(_inst,gml_Script_s_sort_record_list));}function gml_Script_s_sort_record_list(_inst,_other,argument0){{gml_Script_slog(_inst, _other,"s_sort_record_list");var gmlsortedlist=ds_list_create();while(yyfgreater(ds_list_size(argument0),0)){{var gmllowest=(-4);var gmllowestorder=0;var gmli=0;for(;yyfless(gmli,ds_list_size(argument0));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(argument0,gmli);var gmlorder=0;if((yyGetBool(ds_exists(gmlpmap,1)))&&(yyGetBool(ds_map_exists(gmlpmap,"order")))){gmlorder=real(ds_map_find_value(gmlpmap,"order")); };if((yyGetBool(!yyGetBool(gmllowest)))||(yyGetBool(yyfless(gmlorder,gmllowestorder)))){{gmllowest=gmlpmap;gmllowestorder=gmlorder;};};}};ds_list_add(gmlsortedlist,gmllowest);var gmli=ds_list_find_index(argument0,gmllowest);ds_list_delete(argument0,gmli);}};ds_list_destroy(argument0);argument0=(-1);return gmlsortedlist;}}function gml_GlobalScript_s_get_player_name_for_record(_inst,_other,argument0){(_inst.gmls_get_player_name_for_record=__yy_method(_inst,gml_Script_s_get_player_name_for_record));}function gml_Script_s_get_player_name_for_record(_inst, _other,argument0){{var gmlpmap=argument0;return yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_position(_inst,_other,ds_map_find_value(gmlpmap,"position")))," "),__yy_gml_errCheck(string_copy(ds_map_find_value(gmlpmap,"fname"),1,1))),"."),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname")));}}function gml_GlobalScript_s_check_repeat_retrobowls(_inst,_other){(_inst.gmls_check_repeat_retrobowls=__yy_method(_inst,gml_Script_s_check_repeat_retrobowls));}function gml_Script_s_check_repeat_retrobowls(_inst, _other){{{var __yy__v1576=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1577 in __yy__v1576){if(!__yy__v1576.hasOwnProperty(__yy__v1577))continue;var __yy__v1578=__yy__v1576[__yy__v1577];{var gmlconseq=0;var gmlhighest_conseq=0;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1578.gmlhistory));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(__yy__v1578.gmlhistory,gmli);if((yyGetBool(gmlmap))&&(yyGetBool(ds_map_exists(gmlmap, "year")))&&(yyGetBool(ds_map_exists(gmlmap,"finish")))){{if(yyfgreater(string_count(gml_Script_s_str(__yy__v1578,_inst,"finish_SuperBowl"),ds_map_find_value(gmlmap,"finish")),0)){{(g_yyPrePostObject__=gmlconseq,gmlconseq=(g_yyPrePostObject__ instanceof Long?gmlconseq.add(1):++gmlconseq),g_yyPrePostObject__);if(yyfgreater(gmlconseq,gmlhighest_conseq)){gmlhighest_conseq=gmlconseq;};};}else {{gmlhighest_conseq=gmlconseq;gmlconseq=0;};};};};}};if(yyfgreater(gmlhighest_conseq,1)){gml_Script_s_complete_achievement(__yy__v1578, _inst,"ACH_BACKTOBACK");};if(yyfgreater(gmlhighest_conseq,2)){gml_Script_s_complete_achievement(__yy__v1578,_inst,"ACH_THREEPEAT");};}}};}}function gml_GlobalScript_s_create_player(_inst,_other){(_inst.gmls_create_player_get_RC_cost=__yy_method(_inst,gml_Script_s_create_player_get_RC_cost));(_inst.gmls_create_player=__yy_method(_inst,gml_Script_s_create_player));}function gml_Script_s_create_player_get_RC_cost(_inst,_other,argument0){{return floor(yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument0, "salary")),3)),6));}}function gml_Script_s_create_player(_inst,_other,argument0,argument1,argument2,argument3){{var gmllname=gml_Script_s_get_random_last_name(_inst,_other);while(yyGetBool(gml_Script_s_lastname_already_on_roster(_inst,_other,gmllname))){gmllname=gml_Script_s_get_random_last_name(_inst,_other)};var gmlpmap=ds_map_create();ds_map_set(gmlpmap,"randnum",irandom(999));ds_map_set(gmlpmap,"fname",gml_Script_s_get_random_first_name(_inst,_other,true));ds_map_set(gmlpmap,"lname",gmllname);ds_map_set(gmlpmap, "position",argument0);ds_map_set(gmlpmap,"hof",false);ds_map_set(gmlpmap,"kr",false);var gmlmax_age=gml_Script_s_get_max_age(_inst,_other,gmlpmap);if(yyfequal(argument1,0)){{var gmlstartAge=yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),1);if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gmlstartAge=gml_Script_s_rookie_age_internal(_inst,_other);};};ds_map_set(gmlpmap,"age",irandom_range(gmlstartAge,gmlmax_age));};}else {{ds_map_set(gmlpmap,"age",clamp(argument1,gml_Script_s_rookie_age_internal(_inst, _other),gmlmax_age));};};var gmlmax_speed=10;var gmlmax_strength=10;var gmlmax_skill=10;var gmlmax_stamina=10;var ___sw1366___=argument0;var ___swc1367___=-1;if(yyCompareVal(___sw1366___,1,g_GMLMathEpsilon,false)==0){___swc1367___=0;}else if(yyCompareVal(___sw1366___,2,g_GMLMathEpsilon,false)==0){___swc1367___=1;}else if(yyCompareVal(___sw1366___,3,g_GMLMathEpsilon,false)==0){___swc1367___=2;}else if(yyCompareVal(___sw1366___,4,g_GMLMathEpsilon,false)==0){___swc1367___=3;}else if(yyCompareVal(___sw1366___, 5,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1366___,6,g_GMLMathEpsilon,false)==0){___swc1367___=4;}else if(yyCompareVal(___sw1366___,7,g_GMLMathEpsilon,false)==0){___swc1367___=5;}else if(yyCompareVal(___sw1366___,8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1366___,9,g_GMLMathEpsilon,false)==0){___swc1367___=6;}else if(yyCompareVal(___sw1366___,10,g_GMLMathEpsilon,false)==0){___swc1367___=7;}switch(___swc1367___){case 0:{gmlmax_speed=7;gmlmax_strength=10;gmlmax_skill=10;ds_map_set(gmlpmap,"speed", irandom_range(1,gmlmax_speed));ds_map_set(gmlpmap,"strength",irandom_range(1,gmlmax_strength));ds_map_set(gmlpmap,"skill",irandom_range(2,gmlmax_skill));ds_map_set(gmlpmap,"stamina",irandom_range(1,gmlmax_stamina));break;}case 1:{gmlmax_speed=10;gmlmax_strength=9;gmlmax_skill=6;gmlmax_stamina=9;ds_map_set(gmlpmap,"speed",irandom_range(4,gmlmax_speed));ds_map_set(gmlpmap,"strength",irandom_range(2,gmlmax_strength));ds_map_set(gmlpmap,"skill",irandom_range(2,gmlmax_skill));ds_map_set(gmlpmap,"stamina", irandom_range(1,gmlmax_stamina));break;}case 2:{gmlmax_speed=7;gmlmax_strength=8;gmlmax_skill=8;gmlmax_stamina=10;ds_map_set(gmlpmap,"speed",irandom_range(4,gmlmax_speed));ds_map_set(gmlpmap,"strength",irandom_range(2,gmlmax_strength));ds_map_set(gmlpmap,"skill",irandom_range(2,gmlmax_skill));ds_map_set(gmlpmap,"stamina",irandom_range(1,gmlmax_stamina));break;}case 3:{gmlmax_speed=10;gmlmax_strength=6;gmlmax_skill=10;gmlmax_stamina=8;ds_map_set(gmlpmap,"speed",irandom_range(5,gmlmax_speed));ds_map_set(gmlpmap, "strength",irandom_range(2,gmlmax_strength));ds_map_set(gmlpmap,"skill",irandom_range(2,gmlmax_skill));ds_map_set(gmlpmap,"stamina",irandom_range(1,gmlmax_stamina));break;}case 4:{gmlmax_speed=5;gmlmax_strength=10;gmlmax_skill=10;ds_map_set(gmlpmap,"speed",irandom_range(1,gmlmax_speed));ds_map_set(gmlpmap,"strength",irandom_range(5,gmlmax_strength));ds_map_set(gmlpmap,"skill",irandom_range(4,gmlmax_skill));ds_map_set(gmlpmap,"stamina",irandom_range(1,gmlmax_stamina));break;}case 5:{gmlmax_speed=7; gmlmax_strength=8;gmlmax_skill=8;ds_map_set(gmlpmap,"speed",irandom_range(2,gmlmax_speed));ds_map_set(gmlpmap,"strength",irandom_range(2,gmlmax_strength));ds_map_set(gmlpmap,"skill",irandom_range(2,gmlmax_skill));ds_map_set(gmlpmap,"stamina",irandom_range(1,gmlmax_stamina));break;}case 6:{gmlmax_speed=9;gmlmax_strength=6;gmlmax_skill=8;ds_map_set(gmlpmap,"speed",irandom_range(4,gmlmax_speed));ds_map_set(gmlpmap,"strength",irandom_range(2,gmlmax_strength));ds_map_set(gmlpmap,"skill",irandom_range(2, gmlmax_skill));ds_map_set(gmlpmap,"stamina",irandom_range(1,gmlmax_stamina));break;}case 7:{gmlmax_speed=7;gmlmax_strength=10;gmlmax_skill=10;ds_map_set(gmlpmap,"speed",irandom_range(4,gmlmax_speed));ds_map_set(gmlpmap,"strength",irandom_range(2,gmlmax_strength));ds_map_set(gmlpmap,"skill",irandom_range(2,gmlmax_skill));ds_map_set(gmlpmap,"stamina",irandom_range(1,gmlmax_stamina));break;}};var gmldes_rating=irandom_range(argument2,argument3);for(var __yy__v1579=0,__yy__v1580=yyGetInt32(5);__yy__v1579<__yy__v1580; __yy__v1579++){{if(yyfless(gml_Script_s_get_player_rating(_inst,_other,gmlpmap),gmldes_rating)){ds_map_set(gmlpmap,"skill",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"skill")),1),1,gmlmax_skill));};if(yyfless(gml_Script_s_get_player_rating(_inst,_other,gmlpmap),gmldes_rating)){ds_map_set(gmlpmap,"strength",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"strength")),1),1,gmlmax_strength));};if(yyfless(gml_Script_s_get_player_rating(_inst,_other,gmlpmap),gmldes_rating)){ds_map_set(gmlpmap, "speed",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"speed")),1),1,gmlmax_speed));};if(yyfless(gml_Script_s_get_player_rating(_inst,_other,gmlpmap),gmldes_rating)){ds_map_set(gmlpmap,"stamina",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stamina")),1),1,gmlmax_stamina));};if(yyfgreater(gml_Script_s_get_player_rating(_inst,_other,gmlpmap),gmldes_rating)){ds_map_set(gmlpmap,"skill",clamp(yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"skill")),1),1,gmlmax_skill)); };if(yyfgreater(gml_Script_s_get_player_rating(_inst,_other,gmlpmap),gmldes_rating)){ds_map_set(gmlpmap,"strength",clamp(yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"strength")),1),1,gmlmax_strength));};if(yyfgreater(gml_Script_s_get_player_rating(_inst,_other,gmlpmap),gmldes_rating)){ds_map_set(gmlpmap,"speed",clamp(yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"speed")),1),1,gmlmax_speed));};if(yyfgreater(gml_Script_s_get_player_rating(_inst,_other,gmlpmap),gmldes_rating)){ds_map_set(gmlpmap, "stamina",clamp(yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stamina")),1),1,gmlmax_stamina));};}};var gmlcontract=irandom_range(1,3);var gmlattitude=irandom_range(1,100);if(yyfequal(ds_map_find_value(gmlpmap,"age"),gml_Script_s_rookie_age_internal(_inst,_other))){{gmlattitude=irandom_range(40,100);gmlcontract=2;};};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gmlcontract=8;};};ds_map_set(gmlpmap,"attitude",gmlattitude);ds_map_set(gmlpmap,"contract",gmlcontract);ds_map_set(gmlpmap, "salary",gml_Script_s_get_new_salary(_inst,_other,gmlpmap));ds_map_set(gmlpmap,"creditcost",0);ds_map_set(gmlpmap,"xp",0);if(yyfgreater(ds_map_find_value(gmlpmap,"age"),gml_Script_s_rookie_age_internal(_inst,_other))){ds_map_set(gmlpmap,"xp",irandom(99));};ds_map_set(gmlpmap,"xp_level",clamp(yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"age")),__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other))),1,9));ds_map_set(gmlpmap,"xp_gain",0);ds_map_set(gmlpmap,"skill_points",0);var gmlpot=yyftime(__yy_gml_errCheck(clamp(yyfminus(31, __yy_gml_errCheck(ds_map_find_value(gmlpmap,"age"))),0,10)),0.5);if((yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"age"),gml_Script_s_rookie_age_internal(_inst,_other))))&&(yyGetBool(irandom(1)))){gmlpot=6;};ds_map_set(gmlpmap,"max_skill",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"skill")),__yy_gml_errCheck(irandom(gmlpot))),1,gmlmax_skill));ds_map_set(gmlpmap,"max_speed",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"speed")),__yy_gml_errCheck(irandom(gmlpot))),1,gmlmax_speed)); ds_map_set(gmlpmap,"max_strength",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"strength")),__yy_gml_errCheck(irandom(gmlpot))),1,gmlmax_strength));ds_map_set(gmlpmap,"max_stamina",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stamina")),__yy_gml_errCheck(irandom(gmlpot))),1,gmlmax_stamina));gml_Script_s_round_player_attributes(_inst,_other,gmlpmap);ds_map_set(gmlpmap,"condition",irandom_range(40,100));if(yyfequal(ds_map_find_value(gmlpmap,"age"),gml_Script_s_rookie_age_internal(_inst, _other))){ds_map_set(gmlpmap,"condition",irandom_range(80,100));};ds_map_set(gmlpmap,"injury_week",0);ds_map_set(gmlpmap,"resting",0);ds_map_set(gmlpmap,"signed_year",0);ds_map_set(gmlpmap,"teamid",(-1));ds_map_set(gmlpmap,"outtrade_pick",0);ds_map_set(gmlpmap,"intrade_pick",0);ds_map_set(gmlpmap,"flash_time",0);ds_map_set(gmlpmap,"meetingdone",0);ds_map_set(gmlpmap,"scouted",0);ds_map_set(gmlpmap,"team_leave_reason","");ds_map_set(gmlpmap,"epilogue","");ds_map_set(gmlpmap,"drafted_pro_team",""); ds_map_set(gmlpmap,"epilogue_story","");ds_map_set(gmlpmap,"stat_attempts",0);ds_map_set(gmlpmap,"stat_complete",0);ds_map_set(gmlpmap,"stat_yards",0);ds_map_set(gmlpmap,"stat_longest",0);ds_map_set(gmlpmap,"stat_touchdowns",0);ds_map_set(gmlpmap,"stat_fumbles",0);ds_map_set(gmlpmap,"stat_int",0);ds_map_set(gmlpmap,"stat_sacks",0);ds_map_set(gmlpmap,"stat_tackles",0);ds_map_set(gmlpmap,"stat_rush_attempts",0);ds_map_set(gmlpmap,"stat_rush_yards",0);ds_map_set(gmlpmap,"stat_rush_longest",0);ds_map_set(gmlpmap, "stat_rush_touchdowns",0);ds_map_set(gmlpmap,"stat_return_yards",0);ds_map_set(gmlpmap,"stat_return_longest",0);ds_map_set(gmlpmap,"stat_return_tds",0);ds_map_set(gmlpmap,"stat_return_attempts",0);ds_map_set(gmlpmap,"season_games",0);ds_map_set(gmlpmap,"season_attempts",0);ds_map_set(gmlpmap,"season_complete",0);ds_map_set(gmlpmap,"season_yards",0);ds_map_set(gmlpmap,"season_longest",0);ds_map_set(gmlpmap,"season_touchdowns",0);ds_map_set(gmlpmap,"season_fumbles",0);ds_map_set(gmlpmap,"season_int", 0);ds_map_set(gmlpmap,"season_sacks",0);ds_map_set(gmlpmap,"season_tackles",0);ds_map_set(gmlpmap,"season_rush_attempts",0);ds_map_set(gmlpmap,"season_rush_yards",0);ds_map_set(gmlpmap,"season_rush_longest",0);ds_map_set(gmlpmap,"season_rush_touchdowns",0);ds_map_set(gmlpmap,"season_return_yards",0);ds_map_set(gmlpmap,"season_return_longest",0);ds_map_set(gmlpmap,"season_return_tds",0);ds_map_set(gmlpmap,"season_return_attempts",0);ds_map_set(gmlpmap,"career_games",0);ds_map_set(gmlpmap,"career_attempts", 0);ds_map_set(gmlpmap,"career_complete",0);ds_map_set(gmlpmap,"career_yards",0);ds_map_set(gmlpmap,"career_longest",0);ds_map_set(gmlpmap,"career_touchdowns",0);ds_map_set(gmlpmap,"career_fumbles",0);ds_map_set(gmlpmap,"career_int",0);ds_map_set(gmlpmap,"career_sacks",0);ds_map_set(gmlpmap,"career_tackles",0);ds_map_set(gmlpmap,"career_rush_attempts",0);ds_map_set(gmlpmap,"career_rush_yards",0);ds_map_set(gmlpmap,"career_rush_longest",0);ds_map_set(gmlpmap,"career_rush_touchdowns",0);ds_map_set(gmlpmap, "career_return_yards",0);ds_map_set(gmlpmap,"career_return_longest",0);ds_map_set(gmlpmap,"career_return_tds",0);ds_map_set(gmlpmap,"career_return_attempts",0);ds_map_set(gmlpmap,"walk_on",0);if(yyfequal(ds_map_find_value(gmlpmap,"position"),10)){{ds_map_set(gmlpmap,"stat_attempts_XP",0);ds_map_set(gmlpmap,"season_attempts_XP",0);ds_map_set(gmlpmap,"career_attempts_XP",0);ds_map_set(gmlpmap,"stat_complete_XP",0);ds_map_set(gmlpmap,"season_complete_XP",0);ds_map_set(gmlpmap,"career_complete_XP",0); };};ds_map_set(gmlpmap,"skin",irandom(2));ds_map_set(gmlpmap,"face_set",0);var ___sw1368___=ds_map_find_value(gmlpmap,"position");var ___swc1369___=-1;if(yyCompareVal(___sw1368___,1,g_GMLMathEpsilon,false)==0){___swc1369___=0;}else if(yyCompareVal(___sw1368___,2,g_GMLMathEpsilon,false)==0){___swc1369___=1;}else if(yyCompareVal(___sw1368___,3,g_GMLMathEpsilon,false)==0){___swc1369___=2;}else if(yyCompareVal(___sw1368___,4,g_GMLMathEpsilon,false)==0){___swc1369___=3;}else if(yyCompareVal(___sw1368___,5, g_GMLMathEpsilon,false)==0){___swc1369___=4;}else if(yyCompareVal(___sw1368___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1368___,7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1368___,8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1368___,9,g_GMLMathEpsilon,false)==0){___swc1369___=5;}else if(yyCompareVal(___sw1368___,10,g_GMLMathEpsilon,false)==0){___swc1369___=6;}switch(___swc1369___){case 0:{break;}case 1:{if(yyGetBool(irandom(4))){ds_map_set(gmlpmap,"skin",0);};break;}case 2:{if(yyGetBool(irandom(1))){ ds_map_set(gmlpmap,"skin",2);};break;}case 3:{if(yyGetBool(irandom(4))){ds_map_set(gmlpmap,"skin",0);};break;}case 4:{break;}case 5:{if(yyGetBool(irandom(4))){ds_map_set(gmlpmap,"skin",0);};break;}case 6:{if(yyGetBool(irandom(4))){ds_map_set(gmlpmap,"skin",2);};break;}};var gmlfgrid=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlface_grid_L;var ___sw1370___=ds_map_find_value(gmlpmap,"skin");var ___swc1371___=-1;if(yyCompareVal(___sw1370___,2,g_GMLMathEpsilon,false)==0){___swc1371___=0;}else if(yyCompareVal(___sw1370___, 1,g_GMLMathEpsilon,false)==0){___swc1371___=1;}else if(yyCompareVal(___sw1370___,0,g_GMLMathEpsilon,false)==0){___swc1371___=2;}switch(___swc1371___){case 0:{gmlfgrid=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlface_grid_L;break;}case 1:{gmlfgrid=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlface_grid_M;break;}case 2:{gmlfgrid=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlface_grid_D;break;}};if(yyfequal(ds_grid_get_min(gmlfgrid,0,0,ds_grid_width(gmlfgrid),ds_grid_height(gmlfgrid)),1)){{gml_Script_slog(_inst, _other,"Clearing face grid");ds_grid_clear(gmlfgrid,0);};};gml_Script_s_choose_face(_inst,_other,gmlpmap,gmlfgrid);if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{var gmlrand=random_range(0,1);gmlrand=yyftime(__yy_gml_errCheck(gmlrand),__yy_gml_errCheck(gmlrand));gmlrand=yyfminus(gmlrand,0.5);var gmlmax_grade=floor(yyfplus(86,__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlrand),10))));var gmlnerd_factor=0.02;if(yyfless(random_range(0,1),gmlnerd_factor)){{gmlmax_grade=irandom_range(92,100);};} ;if(yyfless(gmlmax_grade,83)){{gmlmax_grade=83;};};ds_map_set(gmlpmap,"max_percent_grade",gmlmax_grade);ds_map_set(gmlpmap,"percent_grade",irandom_range(61,ds_map_find_value(gmlpmap,"max_percent_grade")));ds_map_set(gmlpmap,"suspended",0);ds_map_set(gmlpmap,"rc_cost",gml_Script_s_create_player_get_RC_cost(_inst,_other,gmlpmap));ds_map_set(gmlpmap,"toxic_dilemmas",0);ds_map_set(gmlpmap,"party_dilemmas",0);ds_map_set(gmlpmap,"party_meter",0);ds_map_set(gmlpmap,"trait",gml_Script_s_get_random_trait(_inst, _other));ds_map_set(gmlpmap,"hobby",gml_Script_s_get_random_hobby(_inst,_other));ds_map_set(gmlpmap,"major",gml_Script_s_get_random_study_subject(_inst,_other,(-1)));ds_map_set(gmlpmap,"minor",gml_Script_s_get_random_study_subject(_inst,_other,ds_map_find_value(gmlpmap,"major")));ds_map_set(gmlpmap,"subject_reveal",irandom_range(0,4));ds_map_set(gmlpmap,"hometown",gml_Script_s_get_random_hometown(_inst,_other));ds_map_set(gmlpmap,"curriculum_vitae","");ds_map_set(gmlpmap,"curriculum_interest",""); gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("Created player[",__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"fname")))),"] with age:"),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"age"))))," and percent_grade:"),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"percent_grade"))))," and max_percent_grade(r:"),__yy_gml_errCheck(string(gmlrand))),"):"),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap, "max_percent_grade")))),"( GPA "),__yy_gml_errCheck(string(gml_Script_s_gpa_from_percent_grade(_inst,_other,ds_map_find_value(gmlpmap,"percent_grade"))))),") - Trait: "),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"trait")))));};};return gmlpmap;}}function gml_GlobalScript_s_sort_players(_inst,_other,argument0,argument1){(_inst.gmls_sort_players=__yy_method(_inst,gml_Script_s_sort_players));}function gml_Script_s_sort_players(_inst,_other,argument0,argument1){{if(yyfequal(argument0,(-4))){{gml_Script_slog(_inst, _other,"s_sort_players. no cur_roster");return(-4);};};var gmlplist=argument0;var gmlsortby=argument1;var gmlsortedlist=ds_list_create();gml_Script_slog(_inst,_other,yyfplus(yyfplus("s_sort_players count[",__yy_gml_errCheck(string(ds_list_size(gmlplist)))),"]"));while(yyfgreater(ds_list_size(gmlplist),0)){{var gmlbestplayer=(-4);var gmlbestrating=0;var gmli=0;for(;yyfless(gmli,ds_list_size(gmlplist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ {var gmlpmap=ds_list_find_value(gmlplist,gmli);var ___sw1374___=gmlsortby;var ___swc1375___=-1;if(yyCompareVal(___sw1374___,2,g_GMLMathEpsilon,false)==0){___swc1375___=0;}else if(yyCompareVal(___sw1374___,1,g_GMLMathEpsilon,false)==0){___swc1375___=1;}else if(yyCompareVal(___sw1374___,3,g_GMLMathEpsilon,false)==0){___swc1375___=2;}else if(yyCompareVal(___sw1374___,4,g_GMLMathEpsilon,false)==0){___swc1375___=3;}else if(yyCompareVal(___sw1374___,5,g_GMLMathEpsilon,false)==0){___swc1375___=4;}else if(yyCompareVal(___sw1374___, 6,g_GMLMathEpsilon,false)==0){___swc1375___=5;}switch(___swc1375___){case 0:{var gmlrating=gml_Script_s_get_player_rating(_inst,_other,gmlpmap);if((yyGetBool(!yyGetBool(gmlbestplayer)))||(yyGetBool(yyfgreater(gmlrating,gmlbestrating)))){{gmlbestplayer=gmlpmap;gmlbestrating=gmlrating;};}else {if(yyfequal(gmlrating,gmlbestrating)){{var gmlposition=ds_map_find_value(gmlpmap,"position");if(yyfless(gmlposition,ds_map_find_value(gmlbestplayer,"position"))){{gmlbestplayer=gmlpmap;};}else {if(yyfequal(gmlposition, ds_map_find_value(gmlbestplayer,"position"))){{var gmlpot=gml_Script_s_get_player_potential(_inst,_other,gmlpmap);var gmlpot_b=gml_Script_s_get_player_potential(_inst,_other,gmlpmap);if(yyfgreater(gmlpot,gmlpot_b)){{gmlbestplayer=gmlpmap;};};};};};};};};break;}case 1:{var gmlname=ds_map_find_value(gmlpmap,"lname");if((yyGetBool(!yyGetBool(gmlbestplayer)))||(yyGetBool(yyfless(gmlname,ds_map_find_value(gmlbestplayer,"lname"))))){{gmlbestplayer=gmlpmap;};};break;}case 2:{var gmlposition=ds_map_find_value(gmlpmap, "position");if((yyGetBool(!yyGetBool(gmlbestplayer)))||(yyGetBool(yyfless(gmlposition,ds_map_find_value(gmlbestplayer,"position"))))){{gmlbestplayer=gmlpmap;};}else {if(yyfequal(gmlposition,ds_map_find_value(gmlbestplayer,"position"))){{var gmlrating=gml_Script_s_get_player_rating(_inst,_other,gmlpmap);var gmlrating_b=gml_Script_s_get_player_rating(_inst,_other,gmlbestplayer);if(yyfgreater(gmlrating,gmlrating_b)){{gmlbestplayer=gmlpmap;};}else {if(yyfequal(gmlrating,gmlrating_b)){{if((yyGetBool(ds_map_exists(gmlpmap, "randnum")))&&(yyGetBool(ds_map_exists(gmlbestplayer,"randnum")))){{if(yyfgreater(real(ds_map_find_value(gmlpmap,"randnum")),real(ds_map_find_value(gmlbestplayer,"randnum")))){gmlbestplayer=gmlpmap;};};};};};};};};};break;}case 3:{var gmlposition=ds_map_find_value(gmlpmap,"position");if(yyGetBool(gml_Script_s_player_benched(_inst,_other,gmlpmap))){gmlposition=yyfplus(gmlposition,100);}else {if(yyfless(ds_map_find_value(gmlpmap,"condition"),0)){gmlposition=yyfplus(gmlposition,100);}else {if((yyGetBool(ds_map_exists(gmlpmap, "backup")))&&(yyGetBool(ds_map_find_value(gmlpmap,"backup")))){gmlposition=yyfplus(gmlposition,100);};};};var gmlposition_b=0;if(yyGetBool(gmlbestplayer)){{gmlposition_b=ds_map_find_value(gmlbestplayer,"position");if((yyGetBool(gml_Script_s_player_benched(_inst,_other,gmlbestplayer)))||(yyGetBool(yyfless(ds_map_find_value(gmlbestplayer,"condition"),0)))||(yyGetBool((yyGetBool(ds_map_exists(gmlbestplayer,"backup")))&&(yyGetBool(ds_map_find_value(gmlbestplayer,"backup")))))){gmlposition_b=yyfplus(gmlposition_b, 100);};};};if((yyGetBool(!yyGetBool(gmlbestplayer)))||(yyGetBool(yyfless(gmlposition,gmlposition_b)))){{gmlbestplayer=gmlpmap;};}else {if(yyfequal(gmlposition,ds_map_find_value(gmlbestplayer,"position"))){{var gmlrating=gml_Script_s_get_player_rating(_inst,_other,gmlpmap);var gmlrating_b=gml_Script_s_get_player_rating(_inst,_other,gmlbestplayer);if(yyfgreater(gmlrating,gmlrating_b)){{gmlbestplayer=gmlpmap;};}else {if(yyfequal(gmlrating,gmlrating_b)){{if((yyGetBool(ds_map_exists(gmlpmap,"randnum")))&&(yyGetBool(ds_map_exists(gmlbestplayer, "randnum")))){{if(yyfgreater(real(ds_map_find_value(gmlpmap,"randnum")),real(ds_map_find_value(gmlbestplayer,"randnum")))){gmlbestplayer=gmlpmap;};};};};};};};};};break;}case 4:{var gmlsalary=ds_map_find_value(gmlpmap,"salary");if((yyGetBool(!yyGetBool(gmlbestplayer)))||(yyGetBool(yyfgreater(gmlsalary,ds_map_find_value(gmlbestplayer,"salary"))))){{gmlbestplayer=gmlpmap;};};break;}case 5:{var gmlaward_rating=ds_map_find_value(gmlpmap,"award_rating");if((yyGetBool(!yyGetBool(gmlbestplayer)))||(yyGetBool(yyfgreater(gmlaward_rating, ds_map_find_value(gmlbestplayer,"award_rating"))))){{gmlbestplayer=gmlpmap;};};break;}};}};ds_list_add(gmlsortedlist,gmlbestplayer);var gmli=ds_list_find_index(gmlplist,gmlbestplayer);ds_list_delete(gmlplist,gmli);}};ds_list_destroy(gmlplist);gmlplist=(-4);return gmlsortedlist;}}function gml_GlobalScript_s_create_new_roster(_inst,_other){(_inst.gmls_create_new_roster=__yy_method(_inst,gml_Script_s_create_new_roster));}function gml_Script_s_create_new_roster(_inst,_other){{{var __yy__v1581=GetWithArray(YYASSET_REF(0x00000062)); for(var __yy__v1582 in __yy__v1581){if(!__yy__v1581.hasOwnProperty(__yy__v1582))continue;var __yy__v1583=__yy__v1581[__yy__v1582];{var gmli=yyfminus(__yy_gml_errCheck(ds_list_size(__yy__v1583.gmlroster)),1);for(;yyfgreaterequal(gmli,0);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.subtract(1):--gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1583.gmlroster,gmli);gml_Script_s_remove_player(__yy__v1583,_inst,gmlpmap,"newroster",gml_Script_s_pick_epilogue_story(__yy__v1583, _inst,"epi_newteam"));}};ds_list_destroy(__yy__v1583.gmlroster);__yy__v1583.gmlroster=(-1);__yy__v1583.gmlroster=ds_list_create();var gmlpmap=gml_Script_s_create_player(__yy__v1583,_inst,1,0,2,4);ds_map_set(gmlpmap,"signed_year",(-1));ds_map_set(gmlpmap,"teamid",__yy__v1583.gmlmyteam_id);if(yyfequal(__yy__v1583.gmlyear,1)){{ds_map_set(gmlpmap,"skill",8);ds_map_set(gmlpmap,"strength",3);ds_map_set(gmlpmap,"speed",1);ds_map_set(gmlpmap,"stamina",5);ds_map_set(gmlpmap,"max_skill",ds_map_find_value(gmlpmap, "skill"));ds_map_set(gmlpmap,"max_strength",ds_map_find_value(gmlpmap,"strength"));ds_map_set(gmlpmap,"max_speed",ds_map_find_value(gmlpmap,"speed"));ds_map_set(gmlpmap,"max_stamina",ds_map_find_value(gmlpmap,"stamina"));};};ds_list_add(__yy__v1583.gmlroster,gmlpmap);var gmlpmap=gml_Script_s_create_player(__yy__v1583,_inst,2,0,2,4);ds_map_set(gmlpmap,"signed_year",(-1));ds_map_set(gmlpmap,"teamid",__yy__v1583.gmlmyteam_id);ds_list_add(__yy__v1583.gmlroster,gmlpmap);var gmlpmap=gml_Script_s_create_player(__yy__v1583, _inst,4,0,2,4);ds_map_set(gmlpmap,"signed_year",(-1));ds_map_set(gmlpmap,"teamid",__yy__v1583.gmlmyteam_id);ds_list_add(__yy__v1583.gmlroster,gmlpmap);var gmlpmap=gml_Script_s_create_player(__yy__v1583,_inst,10,0,2,4);ds_map_set(gmlpmap,"signed_year",(-1));ds_map_set(gmlpmap,"teamid",__yy__v1583.gmlmyteam_id);ds_list_add(__yy__v1583.gmlroster,gmlpmap);var gmlpmap=gml_Script_s_create_player(__yy__v1583,_inst,6,0,2,4);ds_map_set(gmlpmap,"signed_year",(-1));ds_map_set(gmlpmap,"teamid",__yy__v1583.gmlmyteam_id); ds_list_add(__yy__v1583.gmlroster,gmlpmap);if(yyGetBool(gml_Script_s_is_co_mode(__yy__v1583,_inst))){{var gmli=0;for(;yyfless(gmli,3);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpos=choose(3,3,4,4,5);if(yyfgreater(gmli,0)){gmlpos=choose(6,7,9);};var gmlpmap=gml_Script_s_create_player(__yy__v1583,_inst,gmlpos,0,2,4);ds_map_set(gmlpmap,"signed_year",(-1));ds_map_set(gmlpmap,"teamid",__yy__v1583.gmlmyteam_id);ds_list_add(__yy__v1583.gmlroster, gmlpmap);}};var gmli=0;for(;yyfless(gmli,yyfminus(__yy_gml_errCheck(ds_list_size(__yy__v1583.gmlroster)),1));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1583.gmlroster,gmli);ds_map_set(gmlpmap,"season_yards",irandom_range(300,500));ds_map_set(gmlpmap,"season_touchdowns",irandom_range(5,10));ds_map_set(gmlpmap,"season_fumbles",irandom_range(2,3));ds_map_set(gmlpmap,"season_tackles",irandom_range(20, 50));ds_map_set(gmlpmap,"season_int",irandom_range(3,5));ds_map_set(gmlpmap,"season_sacks",irandom_range(5,10));ds_map_set(gmlpmap,"season_complete",irandom_range(6,9));ds_map_set(gmlpmap,"season_attempts",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"season_complete")),__yy_gml_errCheck(irandom_range(4,5))));ds_map_set(gmlpmap,"career_yards",ds_map_find_value(gmlpmap,"season_yards"));ds_map_set(gmlpmap,"career_touchdowns",ds_map_find_value(gmlpmap,"season_touchdowns"));ds_map_set(gmlpmap, "career_fumbles",ds_map_find_value(gmlpmap,"season_fumbles"));ds_map_set(gmlpmap,"career_tackles",ds_map_find_value(gmlpmap,"season_tackles"));ds_map_set(gmlpmap,"career_int",ds_map_find_value(gmlpmap,"season_int"));ds_map_set(gmlpmap,"career_sacks",ds_map_find_value(gmlpmap,"season_sacks"));ds_map_set(gmlpmap,"career_complete",ds_map_find_value(gmlpmap,"season_complete"));ds_map_set(gmlpmap,"career_attempts",ds_map_find_value(gmlpmap,"season_attempts"));}};};};if((yyGetBool(yyfequal(__yy__v1583.gmlyear, 1)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlco_mode,0)))){{var gmli=0;for(;yyfless(gmli,yyfminus(__yy_gml_errCheck(ds_list_size(__yy__v1583.gmlroster)),1));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1583.gmlroster,gmli);var gmlmax_age=gml_Script_s_get_max_age(__yy__v1583,_inst,gmlpmap);if(yyfgreater(ds_map_find_value(gmlpmap,"age"),yyfminus(__yy_gml_errCheck(gmlmax_age), 2))){ds_map_set(gmlpmap,"age",yyfminus(__yy_gml_errCheck(gmlmax_age),2));};if(yyfless(ds_map_find_value(gmlpmap,"contract"),2)){ds_map_set(gmlpmap,"contract",2);};}};};};if((yyGetBool(yyfequal(__yy__v1583.gmlyear,1)))&&(yyGetBool(gml_Script_s_is_co_mode(__yy__v1583,_inst)))){{gml_Script_s_college_balance_create_new_roster(__yy__v1583,_inst);};};}}};}}function gml_GlobalScript_s_create_new_roster_newteam(_inst,_other){(_inst.gmls_create_new_roster_newteam=__yy_method(_inst,gml_Script_s_create_new_roster_newteam)); (_inst.gmls_create_new_roster_cut_old_roster=__yy_method(_inst,gml_Script_s_create_new_roster_cut_old_roster));}function gml_Script_s_create_new_roster_newteam(_inst,_other){{{var __yy__v1584=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1585 in __yy__v1584){if(!__yy__v1584.hasOwnProperty(__yy__v1585))continue;var __yy__v1586=__yy__v1584[__yy__v1585];{__yy__v1586.gmlroster=ds_list_create();var gmlmax_offense=gml_Script_s_get_team_offense_with_reputation_boost(__yy__v1586,_inst,__yy__v1586.gmlmyteam); var gmlmax_defense=gml_Script_s_get_team_defense_with_reputation_boost(__yy__v1586,_inst,__yy__v1586.gmlmyteam);var gmlpmap=gml_Script_s_create_player(__yy__v1586,_inst,1,0,yyftime(__yy_gml_errCheck(gmlmax_offense),0.75),gmlmax_offense);ds_map_set(gmlpmap,"signed_year",(-1));ds_map_set(gmlpmap,"teamid",__yy__v1586.gmlmyteam_id);ds_list_add(__yy__v1586.gmlroster,gmlpmap);var gmlpmap=gml_Script_s_create_player(__yy__v1586,_inst,2,0,yyftime(__yy_gml_errCheck(gmlmax_offense),0.75),gmlmax_offense);ds_map_set(gmlpmap, "signed_year",(-1));ds_map_set(gmlpmap,"teamid",__yy__v1586.gmlmyteam_id);ds_list_add(__yy__v1586.gmlroster,gmlpmap);var gmlpmap=gml_Script_s_create_player(__yy__v1586,_inst,4,0,yyftime(__yy_gml_errCheck(gmlmax_offense),0.75),gmlmax_offense);ds_map_set(gmlpmap,"signed_year",(-1));ds_map_set(gmlpmap,"teamid",__yy__v1586.gmlmyteam_id);ds_list_add(__yy__v1586.gmlroster,gmlpmap);var gmlpmap=gml_Script_s_create_player(__yy__v1586,_inst,10,0,yyftime(__yy_gml_errCheck(gmlmax_defense),0.75),gmlmax_defense); ds_map_set(gmlpmap,"signed_year",(-1));ds_map_set(gmlpmap,"teamid",__yy__v1586.gmlmyteam_id);ds_list_add(__yy__v1586.gmlroster,gmlpmap);var gmli=0;for(;yyfless(gmli,4);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpos=choose(3,3,4,4,5);if(yyfgreater(gmli,0)){gmlpos=choose(6,7,9);};var gmlpmap=gml_Script_s_create_player(__yy__v1586,_inst,gmlpos,0,yyftime(__yy_gml_errCheck(gmlmax_defense),0.75),gmlmax_defense);ds_map_set(gmlpmap,"signed_year", (-1));ds_map_set(gmlpmap,"teamid",__yy__v1586.gmlmyteam_id);ds_list_add(__yy__v1586.gmlroster,gmlpmap);}};if((yyGetBool(yyfequal(gml_Script_s_is_co_mode(__yy__v1586,_inst),false)))&&(yyGetBool(yyfgreaterequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_difficulty,3)))){{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1586.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1586.gmlroster, gmli);if(!yyGetBool(irandom(10))){ds_map_set(gmlpmap,"contract",0);};}};};};if(yyGetBool(gml_Script_s_is_co_mode(__yy__v1586,_inst))){{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1586.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1586.gmlroster,gmli);gml_Script_s_college_correct_new_player(__yy__v1586,_inst,gmlpmap);}};};};}}};}}function gml_Script_s_create_new_roster_cut_old_roster(_inst, _other){{{var __yy__v1587=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1588 in __yy__v1587){if(!__yy__v1587.hasOwnProperty(__yy__v1588))continue;var __yy__v1589=__yy__v1587[__yy__v1588];{var gmli=yyfminus(__yy_gml_errCheck(ds_list_size(__yy__v1589.gmlroster)),1);for(;yyfgreaterequal(gmli,0);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.subtract(1):--gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1589.gmlroster,gmli);gml_Script_s_remove_player(__yy__v1589, _inst,gmlpmap,"newteam",gml_Script_s_pick_epilogue_story(__yy__v1589,_inst,"epi_newteam"));}};ds_list_destroy(__yy__v1589.gmlroster);__yy__v1589.gmlroster=(-1);}}};}}function gml_GlobalScript_s_lastname_already_on_roster(_inst,_other){(_inst.gmls_lastname_already_on_roster=__yy_method(_inst,gml_Script_s_lastname_already_on_roster));}function gml_Script_s_lastname_already_on_roster(_inst,_other,argument0){{var gmlr=0;for(;yyfless(gmlr,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster)); (g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster,gmlr);if(yyfequal(ds_map_find_value(gmlpmap,"lname"),argument0)){return true;};}};var gmlr=0;for(;yyfless(gmlr,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstafflist));(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlstafflist,gmlr);if(yyfequal(ds_map_find_value(gmlpmap,"lname"),argument0)){return true;};}};return false;}}function gml_GlobalScript_s_position_already_on_roster(_inst,_other,argument0){(_inst.gmls_position_already_on_roster=__yy_method(_inst,gml_Script_s_position_already_on_roster));}function gml_Script_s_position_already_on_roster(_inst,_other,argument0){{var gmlpos=argument0;var gmlr=0;for(;yyfless(gmlr,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster)); (g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster,gmlr);if(yyfequal(ds_map_find_value(gmlpmap,"position"),gmlpos)){return true;};}};return false;}}function gml_GlobalScript_s_get_required_position(_inst,_other,argument0){(_inst.gmls_get_required_position=__yy_method(_inst,gml_Script_s_get_required_position));(_inst.gmls_get_required_position_no_QB_RB=__yy_method(_inst, gml_Script_s_get_required_position_no_QB_RB));}function gml_Script_s_get_required_position(_inst,_other,argument0){{var gmlabsolute=argument0;if(yyGetBool(gmlabsolute)){{var gmli=1;for(;yyfless(gmli,11);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{if(!yyGetBool(gml_Script_s_position_already_on_roster(_inst,_other,gmli))){return;};}};};};var gmlpos=0;for(var __yy__v1590=0,__yy__v1591=yyGetInt32(9);__yy__v1590<__yy__v1591;__yy__v1590++){{gmlpos=irandom_range(1, 10);if(!yyGetBool(gml_Script_s_position_already_on_roster(_inst,_other,gmlpos))){return gmlpos;};}};return gmlpos;}}function gml_Script_s_get_required_position_no_QB_RB(_inst,_other,argument0){{var gmlabsolute=argument0;if(yyGetBool(gmlabsolute)){{var gmli=1;for(;yyfless(gmli,11);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{if(yyfequal(gmli,1)){{continue;};};if(yyfequal(gmli,2)){{continue;};};if(!yyGetBool(gml_Script_s_position_already_on_roster(_inst, _other,gmli))){return;};}};};};var gmlpos=0;for(var __yy__v1592=0,__yy__v1593=yyGetInt32(9);__yy__v1592<__yy__v1593;__yy__v1592++){{gmlpos=irandom_range(1,10);if(yyfequal(gmlpos,1)){{continue;};};if(yyfequal(gmlpos,2)){{continue;};};if(!yyGetBool(gml_Script_s_position_already_on_roster(_inst,_other,gmlpos))){return gmlpos;};}};return gmlpos;}}function gml_GlobalScript_s_get_player_rating(_inst,_other){(_inst.gmls_get_player_rating=__yy_method(_inst,gml_Script_s_get_player_rating));}function gml_Script_s_get_player_rating(_inst, _other,argument0){{var gmlmax_rating=0;var gmlrating=0;var ___sw1378___=ds_map_find_value(argument0,"position");var ___swc1379___=-1;if(yyCompareVal(___sw1378___,1,g_GMLMathEpsilon,false)==0){___swc1379___=0;}else if(yyCompareVal(___sw1378___,2,g_GMLMathEpsilon,false)==0){___swc1379___=1;}else if(yyCompareVal(___sw1378___,3,g_GMLMathEpsilon,false)==0){___swc1379___=2;}else if(yyCompareVal(___sw1378___,4,g_GMLMathEpsilon,false)==0){___swc1379___=3;}else if(yyCompareVal(___sw1378___,5,g_GMLMathEpsilon,false)==0){ ___swc1379___=4;}else if(yyCompareVal(___sw1378___,6,g_GMLMathEpsilon,false)==0){___swc1379___=5;}else if(yyCompareVal(___sw1378___,7,g_GMLMathEpsilon,false)==0){___swc1379___=6;}else if(yyCompareVal(___sw1378___,8,g_GMLMathEpsilon,false)==0){___swc1379___=7;}else if(yyCompareVal(___sw1378___,9,g_GMLMathEpsilon,false)==0){___swc1379___=8;}else if(yyCompareVal(___sw1378___,10,g_GMLMathEpsilon,false)==0){___swc1379___=9;}switch(___swc1379___){case 0:{gmlmax_rating=37;break;}case 1:{gmlmax_rating=34;break; }case 2:{gmlmax_rating=33;break;}case 3:{gmlmax_rating=34;break;}case 4:{gmlmax_rating=35;break;}case 5:{gmlmax_rating=35;break;}case 6:{gmlmax_rating=33;break;}case 7:{gmlmax_rating=33;break;}case 8:{gmlmax_rating=33;break;}case 9:{gmlmax_rating=37;break;}};var gmlstm=0;var gmlspd=0;var gmlstr=0;var gmlskl=0;if(yyGetBool(ds_map_exists(argument0,"stamina"))){gmlstm=real(ds_map_find_value(argument0,"stamina"));};if(yyGetBool(ds_map_exists(argument0,"speed"))){gmlspd=real(ds_map_find_value(argument0,"speed")); };if(yyGetBool(ds_map_exists(argument0,"strength"))){gmlstr=real(ds_map_find_value(argument0,"strength"));};if(yyGetBool(ds_map_exists(argument0,"skill"))){gmlskl=real(ds_map_find_value(argument0,"skill"));};gmlrating=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gmlstm),__yy_gml_errCheck(gmlspd)),__yy_gml_errCheck(gmlstr)),__yy_gml_errCheck(gmlskl));gmlrating=round(yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlrating),__yy_gml_errCheck(gmlmax_rating))),10));return clamp(gmlrating,1,10);}} function gml_GlobalScript_s_get_player_potential(_inst,_other,argument0){(_inst.gmls_get_player_potential=__yy_method(_inst,gml_Script_s_get_player_potential));}function gml_Script_s_get_player_potential(_inst,_other,argument0){{var gmlpmap=argument0;var gmlmax_rating=0;var gmlrating=0;var ___sw1382___=ds_map_find_value(gmlpmap,"position");var ___swc1383___=-1;if(yyCompareVal(___sw1382___,1,g_GMLMathEpsilon,false)==0){___swc1383___=0;}else if(yyCompareVal(___sw1382___,2,g_GMLMathEpsilon,false)==0){___swc1383___=1; }else if(yyCompareVal(___sw1382___,3,g_GMLMathEpsilon,false)==0){___swc1383___=2;}else if(yyCompareVal(___sw1382___,4,g_GMLMathEpsilon,false)==0){___swc1383___=3;}else if(yyCompareVal(___sw1382___,5,g_GMLMathEpsilon,false)==0){___swc1383___=4;}else if(yyCompareVal(___sw1382___,6,g_GMLMathEpsilon,false)==0){___swc1383___=5;}else if(yyCompareVal(___sw1382___,7,g_GMLMathEpsilon,false)==0){___swc1383___=6;}else if(yyCompareVal(___sw1382___,8,g_GMLMathEpsilon,false)==0){___swc1383___=7;}else if(yyCompareVal(___sw1382___, 9,g_GMLMathEpsilon,false)==0){___swc1383___=8;}else if(yyCompareVal(___sw1382___,10,g_GMLMathEpsilon,false)==0){___swc1383___=9;}switch(___swc1383___){case 0:{gmlmax_rating=37;break;}case 1:{gmlmax_rating=34;break;}case 2:{gmlmax_rating=33;break;}case 3:{gmlmax_rating=34;break;}case 4:{gmlmax_rating=35;break;}case 5:{gmlmax_rating=35;break;}case 6:{gmlmax_rating=33;break;}case 7:{gmlmax_rating=33;break;}case 8:{gmlmax_rating=33;break;}case 9:{gmlmax_rating=37;break;}};var gmlmstm=0;var gmlmspd=0;var gmlmstr=0; var gmlmskl=0;if(yyGetBool(ds_map_exists(gmlpmap,"max_stamina"))){gmlmstm=real(ds_map_find_value(gmlpmap,"max_stamina"));};if(yyGetBool(ds_map_exists(gmlpmap,"max_speed"))){gmlmspd=real(ds_map_find_value(gmlpmap,"max_speed"));};if(yyGetBool(ds_map_exists(gmlpmap,"max_strength"))){gmlmstr=real(ds_map_find_value(gmlpmap,"max_strength"));};if(yyGetBool(ds_map_exists(gmlpmap,"max_skill"))){gmlmskl=real(ds_map_find_value(gmlpmap,"max_skill"));};gmlrating=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gmlmstm), __yy_gml_errCheck(gmlmspd)),__yy_gml_errCheck(gmlmstr)),__yy_gml_errCheck(gmlmskl));return clamp(round(yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlrating),__yy_gml_errCheck(gmlmax_rating))),10)),1,10);}}function gml_GlobalScript_s_obj_player_draw_begin(_inst,_other){(_inst.gmls_obj_player_draw_begin=__yy_method(_inst,gml_Script_s_obj_player_draw_begin));}function gml_Script_s_obj_player_draw_begin(_inst,_other){{if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlstate,3)){return; };var gmlball=global.gmlmaster_ball;var ___sw1386___=yyInst(_inst,_other,gmlball).gmlstate;var ___swc1387___=-1;if(yyCompareVal(___sw1386___,0,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1386___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1386___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1386___,18,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1386___,19,g_GMLMathEpsilon,false)==0){___swc1387___=0;}switch(___swc1387___){case 0:{if(yyGetBool(path_exists(_inst.gmlmy_route))){{gml_Script_s_draw_my_route(_inst, _other);};};break;}};if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlstate,10)){return;};var gmlf=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),60))),1)),2);if(yyGetBool(_inst.gmldead)){gmlf=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),120))),1)),2);};if(yyfequal(yyInst(_inst,_other,gmlball).gmlholder,_inst.id)){{if((yyGetBool(yyfequal(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlgamepractice,2)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpractice_success,0)))){gmlf=0;};draw_sprite_ext(_inst,YYASSET_REF(0x01000050),0,_inst.x,_inst.y,2,2,0,16777215,gmlf);};}else {if((yyGetBool(yyfequal(_inst.gmlposition,2)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,0)))){{if(yyfnotequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice,2)){gmlf=1;};var gmls=yyfplus(2.5,__yy_gml_errCheck(yyftime(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()), 100))),0.5)));draw_sprite_ext(_inst,YYASSET_REF(0x01000050),0,_inst.x,_inst.y,gmls,gmls,0,global.gmlc_routes_rb,gmlf);};};};}}function gml_GlobalScript_s_college_competitions(_inst,_other){(_inst.gmls_get_competition_id_from_fix=__yy_method(_inst,gml_Script_s_get_competition_id_from_fix));(_inst.gmls_get_competition_by_conference_division=__yy_method(_inst,gml_Script_s_get_competition_by_conference_division));(_inst.gmls_get_competition=__yy_method(_inst,gml_Script_s_get_competition));(_inst.gmls_get_competitions_in_editor_group=__yy_method(_inst, gml_Script_s_get_competitions_in_editor_group));(_inst.gmls_get_last_schedule_week=__yy_method(_inst,gml_Script_s_get_last_schedule_week));(_inst.gmls_get_postseason_fixture_by_week=__yy_method(_inst,gml_Script_s_get_postseason_fixture_by_week));(_inst.gmls_get_player_schedule_fixture_by_week=__yy_method(_inst,gml_Script_s_get_player_schedule_fixture_by_week));(_inst.gmls_get_competition_win_access_list=__yy_method(_inst,gml_Script_s_get_competition_win_access_list));(_inst.gmls_schedule_generation=__yy_method(_inst, gml_Script_s_schedule_generation));(_inst.gmls_is_cyclic_competition_year=__yy_method(_inst,gml_Script_s_is_cyclic_competition_year));(_inst.gmls_schedule_add_game=__yy_method(_inst,gml_Script_s_schedule_add_game));(_inst.gmls_schedule_add_championship=__yy_method(_inst,gml_Script_s_schedule_add_championship));(_inst.gmls_get_schedule_fix_template=__yy_method(_inst,gml_Script_s_get_schedule_fix_template));(_inst.gmls_fixture_victory_screen=__yy_method(_inst,gml_Script_s_fixture_victory_screen)); (_inst.gmls_handle_fixture_notification=__yy_method(_inst,gml_Script_s_handle_fixture_notification));(_inst.gmls_fixture_notifications_roster_cv_entry=__yy_method(_inst,gml_Script_s_fixture_notifications_roster_cv_entry));(_inst.gmls_handle_fixture_history_record=__yy_method(_inst,gml_Script_s_handle_fixture_history_record));(_inst.gmls_handle_fixture_reward=__yy_method(_inst,gml_Script_s_handle_fixture_reward));(_inst.gmls_reset_competitions_and_subdivisions_pools_and_rankings=__yy_method(_inst, gml_Script_s_reset_competitions_and_subdivisions_pools_and_rankings));(_inst.gmls_competitions_status_update=__yy_method(_inst,gml_Script_s_competitions_status_update));(_inst.gmls_competitions_update_quick_standings=__yy_method(_inst,gml_Script_s_competitions_update_quick_standings));(_inst.gmls_resolve_non_champ_conferences=__yy_method(_inst,gml_Script_s_resolve_non_champ_conferences));(_inst.gmls_schedule_advance_teams=__yy_method(_inst,gml_Script_s_schedule_advance_teams));(_inst.gmls_schedule_move_better_team_to_home_slot=__yy_method(_inst, gml_Script_s_schedule_move_better_team_to_home_slot));(_inst.gmls_schedule_add_fixtag=__yy_method(_inst,gml_Script_s_schedule_add_fixtag));(_inst.gmls_get_fixtag_priority=__yy_method(_inst,gml_Script_s_get_fixtag_priority));(_inst.gmls_fixtag_sort_priority=__yy_method(_inst,gml_Script_s_fixtag_sort_priority));(_inst.gmls_competition_update_standings=__yy_method(_inst,gml_Script_s_competition_update_standings));(_inst.gmls_competition_reset_standings=__yy_method(_inst,gml_Script_s_competition_reset_standings)); (_inst.gmls_conference_update_standings=__yy_method(_inst,gml_Script_s_conference_update_standings));(_inst.gmls_subdivision_update_rankings=__yy_method(_inst,gml_Script_s_subdivision_update_rankings));(_inst.gmls_conference_reset_standings=__yy_method(_inst,gml_Script_s_conference_reset_standings));(_inst.gmls_subdivision_get_player_ranking=__yy_method(_inst,gml_Script_s_subdivision_get_player_ranking));(_inst.gmls_subdivision_get_team_ranking=__yy_method(_inst,gml_Script_s_subdivision_get_team_ranking)); (_inst.gmls_get_my_conference_current_place=__yy_method(_inst,gml_Script_s_get_my_conference_current_place));(_inst.gmls_update_human_postseason_fixtures=__yy_method(_inst,gml_Script_s_update_human_postseason_fixtures));}function gml_Script_s_get_competition_id_from_fix(_inst,_other,argument0){{var gmlconference=ds_map_find_value(argument0,"conference");var gmldivision=ds_map_find_value(argument0,"division");var gmlcomp;{var __yy__v1594=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1595 in __yy__v1594){ if(!__yy__v1594.hasOwnProperty(__yy__v1595))continue;var __yy__v1596=__yy__v1594[__yy__v1595];var gmli=0;for(;yyfless(gmli,array_length(__yy__v1596.gmlcompetitions));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlcomp=__yy__v1596.gmlcompetitions[__yy_gml_array_check_index(gmli,__yy__v1596.gmlcompetitions)];if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlcomp).gmlconference,gmlconference)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,gmlcomp).gmldivision, gmldivision)))){{return yyInst(_inst,_other,gmlcomp).gmluid;};};}};}};return(-4);}}function gml_Script_s_get_competition_by_conference_division(_inst,_other,argument0,argument1){{var gmlcomp;{var __yy__v1597=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1598 in __yy__v1597){if(!__yy__v1597.hasOwnProperty(__yy__v1598))continue;var __yy__v1599=__yy__v1597[__yy__v1598];var gmli=0;for(;yyfless(gmli,array_length(__yy__v1599.gmlcompetitions));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli), g_yyPrePostObject__)){{gmlcomp=__yy__v1599.gmlcompetitions[__yy_gml_array_check_index(gmli,__yy__v1599.gmlcompetitions)];if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlcomp).gmlconference,argument0)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,gmlcomp).gmldivision,argument1)))){{return gmlcomp;};};}};}};return(-4);}}function gml_Script_s_get_competition(_inst,_other,argument0){{var gmlcomp;{var __yy__v1600=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1601 in __yy__v1600){if(!__yy__v1600.hasOwnProperty(__yy__v1601))continue; var __yy__v1602=__yy__v1600[__yy__v1601];var gmli=0;for(;yyfless(gmli,array_length(__yy__v1602.gmlcompetitions));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlcomp=__yy__v1602.gmlcompetitions[__yy_gml_array_check_index(gmli,__yy__v1602.gmlcompetitions)];if(yyfequal(yyInst(_inst,_other,gmlcomp).gmluid,argument0)){return gmlcomp;};}};}};return(-4);}}function gml_Script_s_get_competitions_in_editor_group(_inst,_other,argument0){{var gmlcomps=__yy_gml_array_create([]); var gmlcomp;{var __yy__v1603=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1604 in __yy__v1603){if(!__yy__v1603.hasOwnProperty(__yy__v1604))continue;var __yy__v1605=__yy__v1603[__yy__v1604];var gmli=0;for(;yyfless(gmli,array_length(__yy__v1605.gmlcompetitions));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlcomp=__yy__v1605.gmlcompetitions[__yy_gml_array_check_index(gmli,__yy__v1605.gmlcompetitions)];if((yyGetBool(yyfequal(yyInst(_inst, _other,gmlcomp).gmleditor_group,argument0)))&&(yyGetBool(real(yyInst(_inst,_other,gmlcomp).gmlactive)))){array_push(gmlcomps,gmlcomp);};}};}};return gmlcomps;}}function gml_Script_s_get_last_schedule_week(_inst,_other){{var gmllast_week=0;{var __yy__v1606=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1607 in __yy__v1606){if(!__yy__v1606.hasOwnProperty(__yy__v1607))continue;var __yy__v1608=__yy__v1606[__yy__v1607];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1608.gmlschedule));(g_yyPrePostObject__=gmli, gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){gmllast_week=max(real(ds_map_find_value(ds_list_find_value(__yy__v1608.gmlschedule,gmli),"week")),gmllast_week)};}}};return gmllast_week;}}function gml_Script_s_get_postseason_fixture_by_week(_inst,_other,argument0){{{var __yy__v1609=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1610 in __yy__v1609){if(!__yy__v1609.hasOwnProperty(__yy__v1610))continue;var __yy__v1611=__yy__v1609[__yy__v1610];{var gmlfix;var gmli=0;for(; yyfless(gmli,ds_list_size(__yy__v1611.gmlschedule));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlfix=ds_list_find_value(__yy__v1611.gmlschedule,gmli);if((yyGetBool(yyfequal(ds_map_find_value(gmlfix,"week"),argument0)))&&(yyGetBool(yyfequal(ds_map_find_value(gmlfix,"show"),1)))){return gmlfix;};}};}}};return(-4);}}function gml_Script_s_get_player_schedule_fixture_by_week(_inst,_other,argument0){{{var __yy__v1612=GetWithArray(YYASSET_REF(0x00000062)); for(var __yy__v1613 in __yy__v1612){if(!__yy__v1612.hasOwnProperty(__yy__v1613))continue;var __yy__v1614=__yy__v1612[__yy__v1613];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1614.gmlschedule));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{__yy__v1614.gmlfix=ds_list_find_value(__yy__v1614.gmlschedule,gmli);if((yyGetBool(yyfequal(real(ds_map_find_value(__yy__v1614.gmlfix,"week")),argument0)))&&(yyGetBool(gml_Script_s_is_human_fix(__yy__v1614, _inst,__yy__v1614.gmlfix)))){{return __yy__v1614.gmlfix;};};}};}}};return(-4);}}function gml_Script____struct___175_s_get_competition_win_access_list_gml_GlobalScript_s_college_competitions(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___175_s_get_competition_win_access_list_gml_GlobalScript_s_college_competitions";}if(gml_Script____struct___175_s_get_competition_win_access_list_gml_GlobalScript_s_college_competitions.prototype.__type===undefined){gml_Script____struct___175_s_get_competition_win_access_list_gml_GlobalScript_s_college_competitions.prototype.__type="gml_Script____struct___175_s_get_competition_win_access_list_gml_GlobalScript_s_college_competitions"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___175_s_get_competition_win_access_list_gml_GlobalScript_s_college_competitions.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmluid=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlaccess=$$args[__yy_gml_array_check_index(2+(1),$$args)];}}}}function gml_Script_s_get_competition_win_access_list(_inst,_other){{var gmlcomp,gmlsrc;var gmllist=__yy_gml_array_create([]);{var __yy__v1615=GetWithArray(YYASSET_REF(0x00000062)); for(var __yy__v1616 in __yy__v1615){if(!__yy__v1615.hasOwnProperty(__yy__v1616))continue;var __yy__v1617=__yy__v1615[__yy__v1616];var gmli=0;for(;yyfless(gmli,array_length(__yy__v1617.gmlcompetitions));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlcomp=__yy__v1617.gmlcompetitions[__yy_gml_array_check_index(gmli,__yy__v1617.gmlcompetitions)];var gmls=0;for(;yyfless(gmls,2);(g_yyPrePostObject__=gmls,gmls=(g_yyPrePostObject__ instanceof Long?gmls.add(1):++gmls), g_yyPrePostObject__)){{gmlsrc=gml_Script_s_get_tagged_source(__yy__v1617,_inst,(yyGetBool(gmls)?yyInst(_inst,_other,gmlcomp).gmlsrc1:yyInst(_inst,_other,gmlcomp).gmlsrc2));if((yyGetBool(yyfnotequal(gmlsrc,(-4))))&&(yyGetBool(yyfequal(yyInst(_inst,_other,gmlsrc).gmltag,"tm")))&&(yyGetBool(yyfequal(yyInst(_inst,_other,gmlsrc).gmlsource,"c_win")))){{array_push(gmllist,__yy_gml_object_create(__yy__v1617,(__yy__v1617.gml___struct___175=__yy_method(__yy__v1617,gml_Script____struct___175_s_get_competition_win_access_list_gml_GlobalScript_s_college_competitions)), real(yyInst(_inst,_other,gmlsrc).gmlkey),real(yyInst(_inst,_other,gmlcomp).gmluid)));};};}};}};}};return gmllist;}}function gml_Script_s_schedule_generation(_inst,_other,argument0,argument1,argument2){{if(yyfequal(argument0,(-4))){{gml_Script_slogf(_inst,_other,"No competition to generate schedule for");return;};};if((yyGetBool(is_string(yyInst(_inst,_other,argument0).gmlcycle)))&&(yyGetBool(yyfnotequal(yyInst(_inst,_other,argument0).gmlcycle,"")))){{if(!yyGetBool(gml_Script_s_is_cyclic_competition_year(_inst, _other,yyInst(_inst,_other,argument0).gmlcycle,argument2))){{gml_Script_slogf(_inst,_other,"Competition cycle %1 not in %2",yyInst(_inst,_other,argument0).gmlcycle,argument2);return;};};};};gml_Script_slogf(_inst,_other,"Generating Schedule for %1 (%2)",yyInst(_inst,_other,argument0).gmlname,yyInst(_inst,_other,argument0).gmluid);var ___sw1390___=yyInst(_inst,_other,argument0).gmltype;var ___swc1391___=-1;if(yyCompareVal(___sw1390___,"tb",g_GMLMathEpsilon,false)==0){___swc1391___=0;}else if(yyCompareVal(___sw1390___, "ch",g_GMLMathEpsilon,false)==0){___swc1391___=1;}else if(yyCompareVal(___sw1390___,"gm",g_GMLMathEpsilon,false)==0){___swc1391___=2;}switch(___swc1391___){case 0:{gml_Script_slogf(_inst,_other,"competition schedule has already been read from file");break;}case 1:{gml_Script_slogf(_inst,_other,"adding championship %2 via scheme: %1",yyInst(_inst,_other,argument0).gmlscheme,yyInst(_inst,_other,argument0).gmlname);gml_Script_s_schedule_add_championship(_inst,_other,argument0,argument1);break;}case 2:{ gml_Script_slogf(_inst,_other,"adding single game info schedule");gml_Script_s_schedule_add_game(_inst,_other,argument0,argument1);break;}};}}function gml_Script_s_is_cyclic_competition_year(_inst,_other,argument0,argument1){{var gmlcc=string_split(argument0,",");if(yyfless(array_length(gmlcc),2)){return false;};if(yyfequal(yyfmod(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(argument1),1)),__yy_gml_errCheck(real(gmlcc[__yy_gml_array_check_index(1,gmlcc)]))),yyfminus(__yy_gml_errCheck(real(gmlcc[__yy_gml_array_check_index(0, gmlcc)])),1))){return true;};return false;}}function gml_Script_s_schedule_add_game(_inst,_other,argument0,argument1){{var gmlweek=real(yyInst(_inst,_other,argument0).gmltime);var gmlaway_id=gml_Script_s_get_team_from_tag(_inst,_other,yyInst(_inst,_other,argument0).gmlsrc1,argument1,1);var gmlhome_id=gml_Script_s_get_team_from_tag(_inst,_other,yyInst(_inst,_other,argument0).gmlsrc2,argument1,1);if((yyGetBool(yyfnotequal(gmlaway_id,(-4))))&&(yyGetBool(yyfnotequal(gmlhome_id,(-4))))){{var gmlfix=gml_Script_s_get_schedule_fix_template(_inst, _other);ds_map_set(gmlfix,"cid",yyInst(_inst,_other,argument0).gmluid);ds_map_set(gmlfix,"week",gmlweek);ds_map_set(gmlfix,"seed_time",yyInst(_inst,_other,argument0).gmlseed_time);ds_map_set(gmlfix,"cat",yyInst(_inst,_other,argument0).gmlcat);ds_map_set(gmlfix,"away_team",gmlaway_id);ds_map_set(gmlfix,"home_team",gmlhome_id);ds_map_set(gmlfix,"away_src",yyInst(_inst,_other,argument0).gmlsrc1);ds_map_set(gmlfix,"home_src",yyInst(_inst,_other,argument0).gmlsrc2);ds_map_set(gmlfix,"show",yyInst(_inst, _other,argument0).gmlshow);ds_map_set(gmlfix,"notify",yyInst(_inst,_other,argument0).gmlnotify);ds_map_set(gmlfix,"reputation",yyInst(_inst,_other,argument0).gmlreputation);ds_map_set(gmlfix,"history_rec",yyInst(_inst,_other,argument0).gmlhistory_rec);ds_map_set(gmlfix,"victory_show",yyInst(_inst,_other,argument0).gmlvictory_show);ds_map_set(gmlfix,"reward",yyInst(_inst,_other,argument0).gmlreward);ds_list_add(argument1,gmlfix);};};}}function gml_Script_s_schedule_add_championship(_inst,_other,argument0, argument1){{var gmlrd,gmlaway_id,gmlhome_id;var gmli=0;for(;yyfless(gmli,array_length(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrounds));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlrd=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrounds[__yy_gml_array_check_index(gmli,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrounds)];if(yyfequal(yyInst(_inst,_other,gmlrd).gmlscheme,yyInst(_inst,_other,argument0).gmlscheme)){{gmlaway_id=gml_Script_s_get_team_from_tag(_inst, _other,yyInst(_inst,_other,gmlrd).gmlsrc1,argument1,1);gmlhome_id=gml_Script_s_get_team_from_tag(_inst,_other,yyInst(_inst,_other,gmlrd).gmlsrc2,argument1,1);if((yyGetBool(yyfnotequal(gmlaway_id,(-4))))&&(yyGetBool(yyfnotequal(gmlhome_id,(-4))))){{var gmlfix=gml_Script_s_get_schedule_fix_template(_inst,_other);ds_map_set(gmlfix,"cid",yyInst(_inst,_other,argument0).gmluid);ds_map_set(gmlfix,"mid",yyInst(_inst,_other,gmlrd).gmlmid);ds_map_set(gmlfix,"cat",yyInst(_inst,_other,gmlrd).gmlcat);ds_map_set(gmlfix, "week",yyInst(_inst,_other,gmlrd).gmltime);ds_map_set(gmlfix,"seed_time",yyInst(_inst,_other,argument0).gmlseed_time);ds_map_set(gmlfix,"away_team",gmlaway_id);ds_map_set(gmlfix,"home_team",gmlhome_id);ds_map_set(gmlfix,"away_src",yyInst(_inst,_other,gmlrd).gmlsrc1);ds_map_set(gmlfix,"home_src",yyInst(_inst,_other,gmlrd).gmlsrc2);ds_map_set(gmlfix,"show",yyInst(_inst,_other,gmlrd).gmlshow);ds_map_set(gmlfix,"notify",yyInst(_inst,_other,gmlrd).gmlnotify);ds_map_set(gmlfix,"reputation",yyInst(_inst, _other,gmlrd).gmlreputation);ds_map_set(gmlfix,"history_rec",yyInst(_inst,_other,gmlrd).gmlhistory_rec);ds_map_set(gmlfix,"victory_show",yyInst(_inst,_other,gmlrd).gmlvictory_show);ds_map_set(gmlfix,"reward",yyInst(_inst,_other,gmlrd).gmlreward);ds_list_add(argument1,gmlfix);};};};};}};}}function gml_Script_s_get_schedule_fix_template(_inst,_other){{var gmlfix=ds_map_create();ds_map_set(gmlfix,"cid",(-1));ds_map_set(gmlfix,"mid","");ds_map_set(gmlfix,"year",1);ds_map_set(gmlfix,"week",1);ds_map_set(gmlfix, "seed_time",0);ds_map_set(gmlfix,"cat","");ds_map_set(gmlfix,"away_team",(-1));ds_map_set(gmlfix,"home_team",(-1));ds_map_set(gmlfix,"away_score",(-1));ds_map_set(gmlfix,"home_score",(-1));ds_map_set(gmlfix,"away_src","");ds_map_set(gmlfix,"home_src","");ds_map_set(gmlfix,"human_win","unplayed");ds_map_set(gmlfix,"show","std");ds_map_set(gmlfix,"notify","none");ds_map_set(gmlfix,"history_rec","none");ds_map_set(gmlfix,"victory_show","none");ds_map_set(gmlfix,"reward","none");return gmlfix;}}function gml_Script_s_fixture_victory_screen(_inst, _other,argument0,argument1){{if((yyGetBool(ds_map_exists(argument0,"victory_show")))&&(yyGetBool(yyfequal(argument1,"win")))){{return ds_map_find_value(_inst.gmlfix,"victory_show");};};return "none";}}function gml_Script_s_handle_fixture_notification(_inst,_other,argument0,argument1){{var gmlfix=argument0;gml_Script_slog_map(_inst,_other,yyfplus(yyfplus("s_handle_fixture_notification[",__yy_gml_errCheck(argument1)),"]"),gmlfix);if((yyGetBool(yyfequal(argument1,"win")))&&(yyGetBool((yyGetBool(yyfequal(ds_map_find_value(gmlfix, "notify"),"cv_w")))||(yyGetBool(yyfequal(ds_map_find_value(gmlfix,"notify"),"cv_wl")))))){{gml_Script_s_fixture_notifications_roster_cv_entry(_inst,_other,gmlfix,argument1,"cv_WinComp");return true;};};if((yyGetBool(yyfequal(argument1,"loss")))&&(yyGetBool((yyGetBool(yyfequal(ds_map_find_value(gmlfix,"notify"),"cv_l")))||(yyGetBool(yyfequal(ds_map_find_value(gmlfix,"notify"),"cv_wl")))))){{gml_Script_s_fixture_notifications_roster_cv_entry(_inst,_other,gmlfix,argument1,"cv_RunnerUpComp");};};if((yyGetBool(yyfequal(argument1, "loss")))&&(yyGetBool(yyfequal(ds_map_find_value(gmlfix,"notify"),"cv_r")))){{var gmllevel=array_get(string_split(ds_map_find_value(gmlfix,"mid"),"."),0);var gmlcv_key=yyfplus("cv_ReachedCompRound",__yy_gml_errCheck(gmllevel));gml_Script_s_fixture_notifications_roster_cv_entry(_inst,_other,gmlfix,argument1,gmlcv_key);};};return false;}}function gml_Script_s_fixture_notifications_roster_cv_entry(_inst,_other,argument0,argument1,argument2){{var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster,gmli);if(yyGetBool(gml_Script_s_college_academics_type(_inst,_other,"Military"))){{argument2=yyfplus("cvMilitary_",__yy_gml_errCheck(string_delete(argument2,1,3)));};};var gmlaward_txt=gml_Script_s_str(_inst,_other,gml_Script_s_get_random_cv_entry(_inst,_other,gmlpmap,argument2)); gmlaward_txt=gml_Script_s_parse_player_message(_inst,_other,gmlaward_txt,gmlpmap);var gmlcomp=gml_Script_s_get_competition(_inst,_other,ds_map_find_value(argument0,"cid"));gmlaward_txt=string_replace_all(gmlaward_txt,"$compname",yyInst(_inst,_other,gmlcomp).gmlname);gml_Script_s_add_cv_entry_direct(_inst,_other,gmlpmap,gmlaward_txt);}};}}function gml_Script_s_handle_fixture_history_record(_inst,_other,argument0,argument1){{var gmlfix=argument0;gml_Script_slog_map(_inst,_other,yyfplus(yyfplus("s_handle_fixture_history_record[", __yy_gml_errCheck(argument1)),"]"),gmlfix);var gmlcomp=gml_Script_s_get_competition(_inst,_other,ds_map_find_value(gmlfix,"cid"));if((yyGetBool(yyfequal(argument1,"win")))&&(yyGetBool(yyfequal(ds_map_find_value(gmlfix,"history_rec"),"h_confCh")))){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrec_conf_champ_wins=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrec_conf_champ_wins,1);gml_Script_s_update_history_won_championship(_inst,_other,ds_map_find_value(gmlfix,"cid"));};};if((yyGetBool(yyfequal(argument1, "win")))&&(yyGetBool(yyfequal(ds_map_find_value(gmlfix,"history_rec"),"h_bowl")))){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrec_bowl_wins=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrec_bowl_wins,1);};};if((yyGetBool(yyfequal(argument1,"win")))&&(yyGetBool(yyfequal(ds_map_find_value(gmlfix,"history_rec"),"h_champ")))){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrec_champ_wins=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrec_champ_wins,1);var gmlFBSrank=gml_Script_s_subdivision_get_player_ranking(_inst, _other,1);if(yyfequal(gmlFBSrank,(-1))){{gml_Script_s_complete_achievement(_inst,_other,"ACH_WIN_MINOR_SUB");};}else {{gml_Script_s_complete_achievement(_inst,_other,"ACH_WIN_MAJOR_SUB");};};};};if(yyfequal(ds_map_find_value(gmlfix,"history_rec"),"h_champ")){{gml_Script_s_update_history_subdivisional_champ_finals(_inst,_other,argument1);};};if((yyGetBool(yyfequal(argument1,"win")))&&(yyGetBool((yyGetBool(yyfequal(ds_map_find_value(gmlfix,"history_rec"),"h_bowl")))||(yyGetBool(yyfequal(ds_map_find_value(gmlfix, "history_rec"),"h_bowl_nr")))))){{gml_Script_s_update_history_won_bowl(_inst,_other,ds_map_find_value(gmlfix,"cid"));gml_Script_s_complete_achievement(_inst,_other,"ACH_WIN_ANY_BOWL");};};if((yyGetBool(yyfequal(argument1,"loss")))&&(yyGetBool(yyfequal(ds_map_find_value(gmlfix,"history_rec"),"h_round")))&&(yyGetBool(ds_map_exists(gmlfix,"mid")))){{var gmllevel=array_get(string_split(ds_map_find_value(gmlfix,"mid"),"."),0);if((yyGetBool(yyfnotequal(gmllevel,(-4))))&&(yyGetBool(yyfnotequal(gmllevel, "")))&&(yyGetBool(yyfgreater(string_length(gmllevel),0)))){{gml_Script_s_update_history_reached_playoffs_round(_inst,_other,gmllevel);};};};};}}function gml_Script_s_handle_fixture_reward(_inst,_other,argument0,argument1){{var gmlfix=argument0;if(yyfnotequal(argument1,"win")){{return;};};var gmlreward=ds_map_find_value(gmlfix,"reward");if(yyfless(string_length(gmlreward),2)){{return;};};var gmlprefix=string_copy(gmlreward,1,2);if((yyGetBool(yyfequal(gmlprefix,"rc")))||(yyGetBool(yyfequal(gmlprefix,"cc")))){ {var gmlmsg="";if(yyfequal(gmlprefix,"rc")){{gmlmsg=gml_Script_s_str(_inst,_other,"news_CompWinRC");};};if(yyfequal(gmlprefix,"cc")){{gmlmsg=gml_Script_s_str(_inst,_other,"news_CompWinCC");};};var gmlnumber=string_copy(gmlreward,3,yyfminus(__yy_gml_errCheck(string_length(gmlreward)),2));var gmlorigReward=real(gmlnumber);var gmlfinalReward=gmlorigReward;if(yyfequal(gmlprefix,"rc")){{if(yyfequal(gml_Script_can_fit_recruitment_credits(_inst,_other,gmlorigReward),false)){{var gmlrc_space=gml_Script_recruitment_credits_space(_inst, _other);gmlfinalReward=gmlrc_space;gmlmsg=gml_Script_s_str(_inst,_other,"news_CompWinRC_NoSpace");gmlmsg=string_replace(gmlmsg,"$actualNum",string(gmlfinalReward));};};};};var gmlroundLabel="";if((yyGetBool(ds_map_exists(gmlfix,"mid")))&&(yyGetBool(yyfgreater(string_length(ds_map_find_value(gmlfix,"mid")),0)))){{gml_Script_slog(_inst,_other,yyfplus("roundLabel a: ",__yy_gml_errCheck(ds_map_find_value(gmlfix,"mid"))));var gmllvl=array_get(string_split(ds_map_find_value(gmlfix,"mid"),"."),0);gml_Script_slog(_inst, _other,yyfplus("roundLabel b: ",__yy_gml_errCheck(gmllvl)));gmlroundLabel=yyfplus(" ",__yy_gml_errCheck(gml_Script_s_get_comp_level_str_plain(_inst,_other,gmllvl)));gml_Script_slog(_inst,_other,yyfplus("roundLabel c: ",__yy_gml_errCheck(gmlroundLabel)));};}else {{var gmlcomp=gml_Script_s_get_competition(_inst,_other,ds_map_find_value(gmlfix,"cid"));gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus("No MID for comp ",__yy_gml_errCheck(string(ds_map_find_value(gmlfix,"cid"))))," comp.name: "),__yy_gml_errCheck(yyInst(_inst, _other,gmlcomp).gmlname)));};};var gmlcomp=gml_Script_s_get_competition(_inst,_other,ds_map_find_value(gmlfix,"cid"));gmlmsg=string_replace(gmlmsg,"$compname",yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmlcomp).gmlname),__yy_gml_errCheck(gmlroundLabel)));gmlmsg=string_replace(gmlmsg,"$num",string(gmlorigReward));if(yyfequal(gmlprefix,"rc")){{gml_Script_s_add_news(_inst,_other,gmlmsg);gml_Script_recruitment_credits_add(_inst,_other,gmlfinalReward);};};if(yyfequal(gmlprefix,"cc")){{gml_Script_s_add_news_dyn(_inst, _other,"cc",gmlmsg,(-4),false);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit,gmlfinalReward);};};};};}}function gml_Script____struct___176_s_reset_competitions_and_subdivisions_pools_and_rankings_gml_GlobalScript_s_college_competitions(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___176_s_reset_competitions_and_subdivisions_pools_and_rankings_gml_GlobalScript_s_college_competitions";}if(gml_Script____struct___176_s_reset_competitions_and_subdivisions_pools_and_rankings_gml_GlobalScript_s_college_competitions.prototype.__type===undefined){ gml_Script____struct___176_s_reset_competitions_and_subdivisions_pools_and_rankings_gml_GlobalScript_s_college_competitions.prototype.__type="gml_Script____struct___176_s_reset_competitions_and_subdivisions_pools_and_rankings_gml_GlobalScript_s_college_competitions";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___176_s_reset_competitions_and_subdivisions_pools_and_rankings_gml_GlobalScript_s_college_competitions.prototype);{}}}function gml_Script____struct___177_s_reset_competitions_and_subdivisions_pools_and_rankings_gml_GlobalScript_s_college_competitions(_inst, _other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___177_s_reset_competitions_and_subdivisions_pools_and_rankings_gml_GlobalScript_s_college_competitions";}if(gml_Script____struct___177_s_reset_competitions_and_subdivisions_pools_and_rankings_gml_GlobalScript_s_college_competitions.prototype.__type===undefined){gml_Script____struct___177_s_reset_competitions_and_subdivisions_pools_and_rankings_gml_GlobalScript_s_college_competitions.prototype.__type="gml_Script____struct___177_s_reset_competitions_and_subdivisions_pools_and_rankings_gml_GlobalScript_s_college_competitions"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___177_s_reset_competitions_and_subdivisions_pools_and_rankings_gml_GlobalScript_s_college_competitions.prototype);{_inst.gmlrankings=__yy_gml_array_create([]);_inst.gmlrankings_week=0;_inst.gmlrankings_week_done=0;_inst.gmlprestige_pool=__yy_gml_array_create([]);}}}function gml_Script____struct___178_s_reset_competitions_and_subdivisions_pools_and_rankings_gml_GlobalScript_s_college_competitions(_inst,_other){if(_inst.__yyIsGMLObject){ _inst.__type="gml_Script____struct___178_s_reset_competitions_and_subdivisions_pools_and_rankings_gml_GlobalScript_s_college_competitions";}if(gml_Script____struct___178_s_reset_competitions_and_subdivisions_pools_and_rankings_gml_GlobalScript_s_college_competitions.prototype.__type===undefined){gml_Script____struct___178_s_reset_competitions_and_subdivisions_pools_and_rankings_gml_GlobalScript_s_college_competitions.prototype.__type="gml_Script____struct___178_s_reset_competitions_and_subdivisions_pools_and_rankings_gml_GlobalScript_s_college_competitions"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___178_s_reset_competitions_and_subdivisions_pools_and_rankings_gml_GlobalScript_s_college_competitions.prototype);{_inst.gmlrankings=__yy_gml_array_create([]);_inst.gmlrankings_week=0;_inst.gmlrankings_week_done=0;}}}function gml_Script_s_reset_competitions_and_subdivisions_pools_and_rankings(_inst,_other){{{var __yy__v1618=GetWithArray(global.gmlg_m);for(var __yy__v1619 in __yy__v1618){if(!__yy__v1618.hasOwnProperty(__yy__v1619))continue; var __yy__v1620=__yy__v1618[__yy__v1619];{__yy__v1620.gmlsubdiv_data=__yy_gml_array_create([__yy_gml_object_create(__yy__v1620,(__yy__v1620.gml___struct___176=__yy_method(__yy__v1620,gml_Script____struct___176_s_reset_competitions_and_subdivisions_pools_and_rankings_gml_GlobalScript_s_college_competitions))),__yy_gml_object_create(__yy__v1620,(__yy__v1620.gml___struct___177=__yy_method(__yy__v1620,gml_Script____struct___177_s_reset_competitions_and_subdivisions_pools_and_rankings_gml_GlobalScript_s_college_competitions))), __yy_gml_object_create(__yy__v1620,(__yy__v1620.gml___struct___178=__yy_method(__yy__v1620,gml_Script____struct___178_s_reset_competitions_and_subdivisions_pools_and_rankings_gml_GlobalScript_s_college_competitions)))]);var gmli;if(yyGetBool(variable_instance_exists(global.gmlg_m,"competitions"))){gmli=0;for(;yyfless(gmli,array_length(__yy__v1620.gmlcompetitions));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{yyInst(_inst,_other,__yy__v1620.gmlcompetitions[__yy_gml_array_check_index(gmli, __yy__v1620.gmlcompetitions)]).gmlpool=(-4);gml_Script_s_competition_reset_standings(__yy__v1620,_inst,__yy__v1620.gmlcompetitions[__yy_gml_array_check_index(gmli,__yy__v1620.gmlcompetitions)]);}};};if(yyGetBool(variable_instance_exists(global.gmlg_m,"conferences"))){gmli=0;for(;yyfless(gmli,array_length(__yy__v1620.gmlconferences));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gml_Script_s_conference_reset_standings(__yy__v1620,_inst, __yy__v1620.gmlconferences[__yy_gml_array_check_index(gmli,__yy__v1620.gmlconferences)]);}};};}}};}}function gml_Script_s_competitions_status_update(_inst,_other){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){return;};if(!yyGetBool(variable_instance_exists(YYASSET_REF(0x00000062),"competitions"))){{gml_Script_slog(_inst,_other,"*** WARNING: competitions data missing");return;};};gml_Script_s_update_week_done(_inst,_other);gml_Script_s_debug_start_time(_inst,_other);gml_Script_slogf(_inst, _other,"*** competitions status update - year %1 week %2",yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek);gml_Script_s_competitions_update_quick_standings(_inst,_other);gml_Script_s_debug_show_time(_inst,_other);gml_Script_s_subdivision_update_rankings(_inst,_other,1);gml_Script_s_subdivision_update_rankings(_inst,_other,2);gml_Script_s_debug_show_time(_inst,_other);gml_Script_s_schedule_advance_teams(_inst,_other);gml_Script_s_prestige_pool_list(_inst, _other);gml_Script_s_debug_show_time(_inst,_other);gml_Script_s_update_human_postseason_fixtures(_inst,_other);gml_Script_slog(_inst,_other,"1.s_competitions_status_update");if(yyGetBool(gml_Script_s_season_competitions_done(_inst,_other))){{gml_Script_slog(_inst,_other,"2.s_season_competitions_done");gml_Script_s_do_player_awards_college(_inst,_other);};};gml_Script_slogf(_inst,_other,"*** competitions status update complete - year %1 week %2",yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear, yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek);}}function gml_Script_s_competitions_update_quick_standings(_inst,_other){{var gmlcomp;{var __yy__v1621=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1622 in __yy__v1621){if(!__yy__v1621.hasOwnProperty(__yy__v1622))continue;var __yy__v1623=__yy__v1621[__yy__v1622];var gmli=0;for(;yyfless(gmli,array_length(__yy__v1623.gmlcompetitions));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlcomp=__yy__v1623.gmlcompetitions[__yy_gml_array_check_index(gmli, __yy__v1623.gmlcompetitions)];if((yyGetBool(yyfnotequal(yyInst(_inst,_other,gmlcomp).gmlconference,"")))&&(yyGetBool(yyfnotequal(yyInst(_inst,_other,gmlcomp).gmldivision,"")))){{gml_Script_s_competition_update_standings(__yy__v1623,_inst,yyInst(_inst,_other,gmlcomp).gmlconference,yyInst(_inst,_other,gmlcomp).gmldivision,true);};};}};}};}}function gml_Script_s_resolve_non_champ_conferences(_inst,_other){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){return false;};if(yyfequal(yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlnon_champ_conferences_resolved,true)){{return;};};if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular)){{var gmlmy_confId=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam,"conference");gml_Script_slog(_inst,_other,yyfplus(yyfplus("s_resolve_non_champ_conferences. my_confId[",__yy_gml_errCheck(string(gmlmy_confId))),"]"));var gmlconf=gml_Script_s_get_conference_data(_inst, _other,gmlmy_confId);if(yyfequal(yyInst(_inst,_other,gmlconf).gmlcompletion,"end_season")){{var gmlfinal_pos=gml_Script_s_get_my_conference_current_place(_inst,_other);gml_Script_slog(_inst,_other,yyfplus(yyfplus("s_resolve_non_champ_conferences - end_season completion. Position in rank:[",__yy_gml_errCheck(string(gmlfinal_pos))),"]"));if(yyfequal(gmlfinal_pos,0)){{gml_Script_slog(_inst,_other,"Player at the top of his champ-less division, award results");var gmlcv_key="cv_WinComp";var gmli=0;for(; yyfless(gmli,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster,gmli);if(yyGetBool(gml_Script_s_college_academics_type(_inst,_other,"Military"))){{gmlcv_key=yyfplus("cvMilitary_",__yy_gml_errCheck(string_delete(gmlcv_key,1,3)));};};var gmlaward_txt=gml_Script_s_str(_inst,_other,gml_Script_s_get_random_cv_entry(_inst, _other,gmlpmap,gmlcv_key));gmlaward_txt=gml_Script_s_parse_player_message(_inst,_other,gmlaward_txt,gmlpmap);gmlaward_txt=string_replace_all(gmlaward_txt,"$compname",yyInst(_inst,_other,gmlconf).gmlname);gml_Script_s_add_cv_entry_direct(_inst,_other,gmlpmap,gmlaward_txt);}};gml_Script_s_show_rm_winners(_inst,_other,0,(-1),"v_bronze",yyInst(_inst,_other,gmlconf).gmlname,kgml_Script_btn_click_Home,true);};};};};yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlnon_champ_conferences_resolved=true;};} ;}}function gml_Script_s_schedule_advance_teams(_inst,_other,argument0,argument1,argument2){{if(yyfequal(argument0,_inst.undefined)){argument0=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlschedule;};if(yyfequal(argument1,_inst.undefined)){argument1=1;};if(yyfequal(argument2,_inst.undefined)){argument2=4;};}{var gmlloop=argument1;for(;yyflessequal(gmlloop,argument2);(g_yyPrePostObject__=gmlloop,gmlloop=(g_yyPrePostObject__ instanceof Long?gmlloop.add(1):++gmlloop),g_yyPrePostObject__)){{gml_Script_slogf(_inst, _other,"\n*** schedule advance teams - loop %1",gmlloop);var gmlfix,gmltag,gmltid,gmlst,gmlcomp;var gmltags=__yy_gml_array_create([]);var gmli=0;for(;yyfless(gmli,ds_list_size(argument0));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlfix=ds_list_find_value(argument0,gmli);if(!yyGetBool(gml_Script_s_is_fix_filled(_inst,_other,gmlfix))){{gmlst=gml_Script_s_get_map_real(_inst,_other,gmlfix,"seed_time",(-1));if(yyfless(gmlst,0)){{gmlcomp=gml_Script_s_get_competition(_inst, _other,ds_map_find_value(gmlfix,"cid"));gmlst=(yyfequal(gmlcomp,(-4))?0:yyInst(_inst,_other,gmlcomp).gmlseed_time);};};if(yyfgreater(gmlst,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek)){{continue;};};gml_Script_slogf(_inst,_other,"match %1 week %6 not filled: %2 v %3 - source %4 v %5",ds_map_find_value(gmlfix,"cid"),ds_map_find_value(gmlfix,"away_team"),ds_map_find_value(gmlfix,"home_team"),ds_map_find_value(gmlfix,"away_src"),ds_map_find_value(gmlfix,"home_src"),ds_map_find_value(gmlfix, "week"));if(yyfequal(ds_map_find_value(gmlfix,"away_team"),(-1))){gml_Script_s_schedule_add_fixtag(_inst,_other,gmltags,gmlfix,ds_map_find_value(gmlfix,"away_src"),"away");};if(yyfequal(ds_map_find_value(gmlfix,"home_team"),(-1))){gml_Script_s_schedule_add_fixtag(_inst,_other,gmltags,gmlfix,ds_map_find_value(gmlfix,"home_src"),"home");};};};}};array_sort(gmltags,kgml_Script_s_fixtag_sort_priority);var gmli=0;for(;yyfless(gmli,array_length(gmltags));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli), g_yyPrePostObject__)){{gmltag=gmltags[__yy_gml_array_check_index(gmli,gmltags)];gmltid=gml_Script_s_get_team_from_tag(_inst,_other,ds_map_find_value(yyInst(_inst,_other,gmltag).gmlfix,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmltag).gmllabel),"_src")),undefined,gmlloop,yyInst(_inst,_other,gmltag).gmlfix);if((yyGetBool(yyfnotequal(gmltid,(-4))))&&(yyGetBool(yyfgreater(gmltid,(-1))))){{ds_map_set(yyInst(_inst,_other,gmltag).gmlfix,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmltag).gmllabel), "_team"),gmltid);gml_Script_slogf(_inst,_other,"%1 team %2 seeded for match %3 week %4 (tag %5 loop %6)",yyInst(_inst,_other,gmltag).gmllabel,gmltid,ds_map_find_value(yyInst(_inst,_other,gmltag).gmlfix,"cid"),ds_map_find_value(yyInst(_inst,_other,gmltag).gmlfix,"week"),yyInst(_inst,_other,gmltag).gmltag,gmlloop);gml_Script_s_schedule_move_better_team_to_home_slot(_inst,_other,yyInst(_inst,_other,gmltag).gmlfix);};};}};}};}}function gml_Script_s_schedule_move_better_team_to_home_slot(_inst,_other, argument0){{if(!yyGetBool(gml_Script_s_is_fix_filled(_inst,_other,argument0))){return;};if(!yyGetBool(gml_Script_s_is_fix_on_neutral_ground(_inst,_other,argument0))){return;};var gmlswap=false;var gmlat=gml_Script_s_get_map_real(_inst,_other,argument0,"away_team",(-1));var gmlht=gml_Script_s_get_map_real(_inst,_other,argument0,"home_team",(-1));var gmlas=gml_Script_s_get_subdivision(_inst,_other,gmlat);var gmlhs=gml_Script_s_get_subdivision(_inst,_other,gmlht);if((yyGetBool(yyfnotequal(gmlas,gmlhs)))&&(yyGetBool(yyfequal(gmlas, 1)))){gmlswap=true;};var gmlar=yyInst(_inst,_other,gml_Script_s_get_ranking_pos_data(_inst,_other,gmlat)).gmlpos;var gmlhr=yyInst(_inst,_other,gml_Script_s_get_ranking_pos_data(_inst,_other,gmlht)).gmlpos;if((yyGetBool(yyfequal(gmlas,gmlhs)))&&(yyGetBool(yyfless(gmlar,gmlhr)))){gmlswap=true;};if(yyGetBool(gmlswap)){{gml_Script_slogf(_inst,_other,"swapping %1 t:%2.%3 and %4 t:%5.%6",ds_map_find_value(gmlat,"name"),gmlas,gmlar,ds_map_find_value(gmlht,"name"),gmlhs,gmlhr);gml_Script_s_map_swap(_inst, _other,argument0,"home_team","away_team");gml_Script_s_map_swap(_inst,_other,argument0,"home_src","away_src");};};}}function gml_Script____struct___179_s_schedule_add_fixtag_gml_GlobalScript_s_college_competitions(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___179_s_schedule_add_fixtag_gml_GlobalScript_s_college_competitions";}if(gml_Script____struct___179_s_schedule_add_fixtag_gml_GlobalScript_s_college_competitions.prototype.__type===undefined){gml_Script____struct___179_s_schedule_add_fixtag_gml_GlobalScript_s_college_competitions.prototype.__type="gml_Script____struct___179_s_schedule_add_fixtag_gml_GlobalScript_s_college_competitions"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___179_s_schedule_add_fixtag_gml_GlobalScript_s_college_competitions.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlfix=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmltag=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmllabel=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.gmlpriority=$$args[__yy_gml_array_check_index(2+(3),$$args)];}}}}function gml_Script_s_schedule_add_fixtag(_inst, _other,argument0,argument1,argument2,argument3){{var gmlfixtag=__yy_gml_object_create(_inst,(_inst.gml___struct___179=__yy_method(_inst,gml_Script____struct___179_s_schedule_add_fixtag_gml_GlobalScript_s_college_competitions)),argument1,argument2,argument3,gml_Script_s_get_fixtag_priority(_inst,_other,argument1,argument2));array_push(argument0,gmlfixtag);}}function gml_Script_s_get_fixtag_priority(_inst,_other,argument0,argument1){{var gmltp;if(yyfnotequal(string_pos(":bowl:",argument1),0)){{gmltp=4; };}else {if(yyfnotequal(string_pos(":pbowl:",argument1),0)){{gmltp=(yyfnotequal(string_pos("-1",argument1),0)?3:2);};}else {{gmltp=1;};};};return yyfplus(__yy_gml_errCheck(real(ds_map_find_value(argument0,"cid"))),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltp),100000)));}}function gml_Script_s_fixtag_sort_priority(_inst,_other,argument0,argument1){{return yyfminus(__yy_gml_errCheck(real(yyInst(_inst,_other,argument0).gmlpriority)),__yy_gml_errCheck(real(yyInst(_inst,_other,argument1).gmlpriority))); }}function gml_Script_s_competition_update_standings(_inst,_other,argument0,argument1,argument2){{if(yyfequal(argument2,_inst.undefined)){argument2=false;};}{var gmlcomp=gml_Script_s_get_competition_by_conference_division(_inst,_other,argument0,argument1);if((yyGetBool(!yyGetBool(argument2)))&&(yyGetBool(variable_instance_exists(gmlcomp,"standings_week")))&&(yyGetBool(yyfequal(yyInst(_inst,_other,gmlcomp).gmlstandings_week,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek)))){return;};if((yyGetBool(argument2))&&(yyGetBool(variable_instance_exists(gmlcomp, "standings_week_quick")))&&(yyGetBool((yyGetBool(yyfequal(yyInst(_inst,_other,gmlcomp).gmlstandings_week_quick,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek)))||(yyGetBool(yyfgreater(yyInst(_inst,_other,gmlcomp).gmlstandings_week_quick,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular)))))){return;};gml_Script_slogf(_inst,_other,"Updating standings: %1 (%2.%3) week %4 - %5 mode",yyInst(_inst,_other,gmlcomp).gmluid,yyInst(_inst,_other,gmlcomp).gmlconference,yyInst(_inst,_other, gmlcomp).gmldivision,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,(yyGetBool(argument2)?"quick":"standard"));var gmlteams=gml_Script_s_get_team_list(_inst,_other,yyInst(_inst,_other,gmlcomp).gmlconference,yyInst(_inst,_other,gmlcomp).gmldivision);if(yyGetBool(argument2)){{yyInst(_inst,_other,gmlcomp).gmlstandings_quick=gml_Script_s_create_team_data_array(_inst,_other,gmlteams);array_sort(yyInst(_inst,_other,gmlcomp).gmlstandings_quick,kgml_Script_s_co_teams_data_sort_pct_quick);yyInst(_inst, _other,gmlcomp).gmlstandings_week_quick=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek;};}else {{yyInst(_inst,_other,gmlcomp).gmlstandings=gml_Script_s_create_team_data_array(_inst,_other,gmlteams);array_sort(yyInst(_inst,_other,gmlcomp).gmlstandings,kgml_Script_s_co_teams_data_sort_pct);yyInst(_inst,_other,gmlcomp).gmlstandings_week=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek;};};}}function gml_Script_s_competition_reset_standings(_inst,_other,argument0){{yyInst(_inst,_other,argument0).gmlstandings=__yy_gml_array_create([]); yyInst(_inst,_other,argument0).gmlstandings_week=0;yyInst(_inst,_other,argument0).gmlstandings_quick=__yy_gml_array_create([]);yyInst(_inst,_other,argument0).gmlstandings_week_quick=0;}}function gml_Script_s_conference_update_standings(_inst,_other,argument0){{if((yyGetBool(variable_instance_exists(argument0,"standings_week")))&&(yyGetBool(yyfequal(yyInst(_inst,_other,argument0).gmlstandings_week,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek)))){return;};gml_Script_slogf(_inst,_other,"conference %1 week %2", yyInst(_inst,_other,argument0).gmluid,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek);var gmlteams=gml_Script_s_get_team_list(_inst,_other,yyInst(_inst,_other,argument0).gmluid);yyInst(_inst,_other,argument0).gmlstandings=gml_Script_s_create_team_data_array(_inst,_other,gmlteams);array_sort(yyInst(_inst,_other,argument0).gmlstandings,kgml_Script_s_co_teams_data_sort_pct);yyInst(_inst,_other,argument0).gmlstandings_week=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek;}}function gml_Script_s_subdivision_update_rankings(_inst, _other,argument0,argument1,argument2){{if(yyfequal(argument1,_inst.undefined)){argument1=false;};if(yyfequal(argument2,_inst.undefined)){argument2=false;};}{{var __yy__v1624=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1625 in __yy__v1624){if(!__yy__v1624.hasOwnProperty(__yy__v1625))continue;var __yy__v1626=__yy__v1624[__yy__v1625];{if(!yyGetBool(gml_Script_s_is_co_mode(__yy__v1626,_inst))){return;};if((yyGetBool(variable_instance_exists(__yy__v1626.id,"subdiv_data")))&&(yyGetBool(yyfgreater(yyInst(_inst, _other,__yy__v1626.gmlsubdiv_data[__yy_gml_array_check_index(argument0,__yy__v1626.gmlsubdiv_data)]).gmlrankings_week,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular),__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlextra_weeks_endofseason)))))&&(yyGetBool(!yyGetBool(argument2)))){return;};if((yyGetBool(yyfequal(yyInst(_inst,_other,__yy__v1626.gmlsubdiv_data[__yy_gml_array_check_index(argument0,__yy__v1626.gmlsubdiv_data)]).gmlrankings_week, yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,__yy__v1626.gmlsubdiv_data[__yy_gml_array_check_index(argument0,__yy__v1626.gmlsubdiv_data)]).gmlrankings_week_done,gml_Script_s_is_week_done(__yy__v1626,_inst))))&&(yyGetBool(!yyGetBool(argument2)))){return;};var gml_subdiv=__yy__v1626.gmlsubdiv_data[__yy_gml_array_check_index(argument0,__yy__v1626.gmlsubdiv_data)];gml_Script_slogf(__yy__v1626,_inst,"*** Updating rankings subdivision %1 week %2 (%3) week done %4", argument0,__yy__v1626.gmlweek,(yyGetBool(argument1)?"Q":"F"),gml_Script_s_is_week_done(__yy__v1626,_inst));var gmlteams=gml_Script_s_get_team_list_by_tier(__yy__v1626,_inst,argument0);yyInst(_inst,_other,gml_subdiv).gmlrankings=gml_Script_s_create_team_data_array(__yy__v1626,_inst,gmlteams);gml_Script_slogf(__yy__v1626,_inst,"%1 teams in subdiv",array_length(gmlteams));var gmlsorting_method=kgml_Script_s_co_teams_data_sort_rank;if(yyGetBool(argument1)){{gmlsorting_method=kgml_Script_s_co_teams_data_sort_rank_quick; };}else {if(yyGetBool(gml_Script_s_is_co_actual_postseason(__yy__v1626,_inst))){{gmlsorting_method=kgml_Script_s_co_teams_data_sort_rank_season;};};};array_sort(yyInst(_inst,_other,gml_subdiv).gmlrankings,gmlsorting_method);if((yyGetBool(!yyGetBool(argument1)))||(yyGetBool((yyGetBool(yyfequal(__yy__v1626.gmlyear,1)))&&(yyGetBool(yyfequal(__yy__v1626.gmlweek,gml_Script_s_get_skip_to_week(__yy__v1626,_inst))))))){gml_Script_s_update_ranking_positions(__yy__v1626,_inst,argument0,__yy__v1626.gmlweek); };if(!yyGetBool(argument1)){{yyInst(_inst,_other,gml_subdiv).gmlrankings_week=__yy__v1626.gmlweek;yyInst(_inst,_other,gml_subdiv).gmlrankings_week_done=gml_Script_s_is_week_done(__yy__v1626,_inst);};};}}};}}function gml_Script_s_conference_reset_standings(_inst,_other,argument0){{yyInst(_inst,_other,argument0).gmlstandings=__yy_gml_array_create([]);yyInst(_inst,_other,argument0).gmlstandings_week=0;}}function gml_Script_s_subdivision_get_player_ranking(_inst,_other,argument0,argument1){{if(yyfequal(argument1, _inst.undefined)){argument1=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id;};}{return gml_Script_s_subdivision_get_team_ranking(_inst,_other,argument0,argument1);}}function gml_Script_s_subdivision_get_team_ranking(_inst,_other,argument0,argument1){{{var __yy__v1627=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1628 in __yy__v1627){if(!__yy__v1627.hasOwnProperty(__yy__v1628))continue;var __yy__v1629=__yy__v1627[__yy__v1628];{gml_Script_s_subdivision_update_rankings(__yy__v1629,_inst,argument0); {var __yy__v1630=GetWithArray(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsubdiv_data[__yy_gml_array_check_index(argument0,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsubdiv_data)]);for(var __yy__v1631 in __yy__v1630){if(!__yy__v1630.hasOwnProperty(__yy__v1631))continue;var __yy__v1632=__yy__v1630[__yy__v1631];{var gmli=0;for(;yyfless(gmli,array_length(__yy__v1632.gmlrankings));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{if(yyfequal(yyInst(_inst, _other,__yy__v1632.gmlrankings[__yy_gml_array_check_index(gmli,__yy__v1632.gmlrankings)]).gmluid,argument1)){return gmli;};}};}}};}}};return(-1);}}function gml_Script_s_get_my_conference_current_place(_inst,_other){{var gmlmy_conf=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam,"conference");var gmlmy_div=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam,"division");var gmlcomp=gml_Script_s_get_competition_by_conference_division(_inst,_other,gmlmy_conf, gmlmy_div);gml_Script_s_competition_update_standings(_inst,_other,yyInst(_inst,_other,gmlcomp).gmlconference,yyInst(_inst,_other,gmlcomp).gmldivision);if((yyGetBool(is_undefined(yyInst(_inst,_other,gmlcomp).gmlstandings)))||(yyGetBool(!yyGetBool(is_array(yyInst(_inst,_other,gmlcomp).gmlstandings))))){{return(-1);};};var gmli=0;for(;yyfless(gmli,array_length(yyInst(_inst,_other,gmlcomp).gmlstandings));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ {if(yyfequal(yyInst(_inst,_other,yyInst(_inst,_other,gmlcomp).gmlstandings[__yy_gml_array_check_index(gmli,yyInst(_inst,_other,gmlcomp).gmlstandings)]).gmluid,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id)){{return gmli;};};}};return(-1);}}function gml_Script_s_update_human_postseason_fixtures(_inst,_other){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){return;};gml_Script_slog(_inst,_other,"s_update_human_postseason_fixtures");var gmlfix,gmlhfix,gmlweek;var gmlf=0;for(;yyfless(gmlf, ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlschedule));(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf),g_yyPrePostObject__)){{gmlfix=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlschedule,gmlf);if((yyGetBool(yyfequal(ds_map_find_value(gmlfix,"away_team"),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id)))||(yyGetBool(yyfequal(ds_map_find_value(gmlfix,"home_team"),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id)))){ {gmlweek=real(ds_map_find_value(gmlfix,"week"));gmlhfix=gml_Script_s_get_human_fixture_by_week(_inst,_other,gmlweek);if(yyfequal(gmlhfix,(-4))){{gml_Script_slogf(_inst,_other,"*** human postseason match copy - week: %1 : %2 vs %3",gmlweek,ds_map_find_value(gmlfix,"away_team"),ds_map_find_value(gmlfix,"home_team"));gml_Script_s_add_to_human_fixtures(_inst,_other,gmlweek,ds_map_find_value(gmlfix,"away_team"),ds_map_find_value(gmlfix,"home_team"));};}else {{if((yyGetBool(yyfequal(ds_map_find_value(gmlhfix, "away_team"),(-1))))||(yyGetBool(yyfequal(ds_map_find_value(gmlhfix,"home_team"),(-1))))){{gml_Script_slogf(_inst,_other,"*** human postseason match update - week: %1 : %2 vs %3",gmlweek,ds_map_find_value(gmlhfix,"away_team"),ds_map_find_value(gmlhfix,"home_team"));ds_map_set(gmlhfix,"away_team",ds_map_find_value(gmlfix,"away_team"));ds_map_set(gmlhfix,"home_team",ds_map_find_value(gmlfix,"home_team"));};};};};};};}};}}function gml_GlobalScript_s_get_player_by_position(_inst,_other){(_inst.gmls_get_player_by_position=__yy_method(_inst, gml_Script_s_get_player_by_position));(_inst.gmls_get_player_by_position_from_roster=__yy_method(_inst,gml_Script_s_get_player_by_position_from_roster));(_inst.gmls_get_player_kick_returner=__yy_method(_inst,gml_Script_s_get_player_kick_returner));}function gml_Script_s_get_player_by_position(_inst,_other,argument0,argument1){{{var __yy__v1633=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1634 in __yy__v1633){if(!__yy__v1633.hasOwnProperty(__yy__v1634))continue;var __yy__v1635=__yy__v1633[__yy__v1634]; {var gmlcount=0;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1635.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1635.gmlroster,gmli);if(yyGetBool(ds_map_find_value(gmlpmap,"backup"))){continue;};if(yyfless(ds_map_find_value(gmlpmap,"condition"),0)){continue;};if(yyGetBool(gml_Script_s_player_benched(__yy__v1635,_inst,gmlpmap))){continue;};if(yyfequal(ds_map_find_value(gmlpmap,"position"), argument0)){{(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__);if(yyfequal(gmlcount,argument1)){return gmlpmap;};};};}};}}};return(-4);}}function gml_Script_s_get_player_by_position_from_roster(_inst,_other,argument0,argument1,argument2){{if(yyfequal(argument2,(-4))){{gml_Script_slog2(_inst,_other,"s_get_player_by_position. no cur_roster");return(-4);};};{var __yy__v1636=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1637 in __yy__v1636){ if(!__yy__v1636.hasOwnProperty(__yy__v1637))continue;var __yy__v1638=__yy__v1636[__yy__v1637];{var gmlcount=0;var gmli=0;for(;yyfless(gmli,ds_list_size(argument2));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(argument2,gmli);if(yyGetBool(ds_map_find_value(gmlpmap,"backup"))){continue;};if(yyfless(ds_map_find_value(gmlpmap,"condition"),0)){continue;};if(yyGetBool(gml_Script_s_player_benched(__yy__v1638,_inst, gmlpmap))){continue;};if(yyfequal(ds_map_find_value(gmlpmap,"position"),argument0)){{(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__);if(yyfequal(gmlcount,argument1)){return gmlpmap;};};};}};}}};return(-4);}}function gml_Script_s_get_player_kick_returner(_inst,_other,argument0){{if(yyfequal(argument0,(-4))){{gml_Script_slog2(_inst,_other,"s_get_player_kick_returner. no cur_roster");return(-4);};};{var __yy__v1639=GetWithArray(YYASSET_REF(0x00000062)); for(var __yy__v1640 in __yy__v1639){if(!__yy__v1639.hasOwnProperty(__yy__v1640))continue;var __yy__v1641=__yy__v1639[__yy__v1640];{var gmli=0;for(;yyfless(gmli,ds_list_size(argument0));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(argument0,gmli);if(yyfless(ds_map_find_value(gmlpmap,"condition"),0)){continue;};if(yyGetBool(gml_Script_s_player_benched(__yy__v1641,_inst,gmlpmap))){continue;};if((yyGetBool(ds_map_exists(gmlpmap, "kr")))&&(yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"kr"),1)))){return gmlpmap;};}};}}};return(-4);}}function gml_GlobalScript_s_get_player_by_lname(_inst,_other,argument0){(_inst.gmls_get_player_by_lname=__yy_method(_inst,gml_Script_s_get_player_by_lname));}function gml_Script_s_get_player_by_lname(_inst,_other,argument0){{var gmllname=argument0;{var __yy__v1642=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1643 in __yy__v1642){if(!__yy__v1642.hasOwnProperty(__yy__v1643))continue;var __yy__v1644=__yy__v1642[__yy__v1643]; {var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1644.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1644.gmlroster,gmli);if(yyfequal(ds_map_find_value(gmlpmap,"lname"),gmllname)){return gmlpmap;};}};}}};return(-4);}}function gml_GlobalScript_s_get_random_player(_inst,_other){(_inst.gmls_get_random_player=__yy_method(_inst,gml_Script_s_get_random_player));}function gml_Script_s_get_random_player(_inst, _other,argument0,argument1){{{var __yy__v1645=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1646 in __yy__v1645){if(!__yy__v1645.hasOwnProperty(__yy__v1646))continue;var __yy__v1647=__yy__v1645[__yy__v1646];{if((yyGetBool(argument0))&&(yyGetBool(yyfequal(argument1,undefined)))){return ds_list_find_value(__yy__v1647.gmlroster,irandom(yyfminus(__yy_gml_errCheck(ds_list_size(__yy__v1647.gmlroster)),1)));};ds_list_shuffle(__yy__v1647.gmlroster);var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1647.gmlroster)); (g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1647.gmlroster,gmli);if(!yyGetBool(argument0)){{if(yyfless(ds_map_find_value(gmlpmap,"condition"),0)){continue;};if((yyGetBool(ds_map_exists(gmlpmap,"backup")))&&(yyGetBool(ds_map_find_value(gmlpmap,"backup")))){continue;};if(yyGetBool(gml_Script_s_player_benched(__yy__v1647,_inst,gmlpmap))){continue;};};};if(yyfnotequal(argument1,undefined)){{if(yyfgreaterequal(ds_list_find_index(argument1, gmlpmap),0)){{continue;};};};};return gmlpmap;}};}}};return(-4);}}function gml_GlobalScript_s_get_random_player_by_position(_inst,_other){(_inst.gmls_get_random_player_by_position=__yy_method(_inst,gml_Script_s_get_random_player_by_position));(_inst.gmls_get_random_player_by_position_from_roster=__yy_method(_inst,gml_Script_s_get_random_player_by_position_from_roster));}function gml_Script_s_get_random_player_by_position(_inst,_other,argument0,argument1){{{var __yy__v1648=GetWithArray(YYASSET_REF(0x00000062)); for(var __yy__v1649 in __yy__v1648){if(!__yy__v1648.hasOwnProperty(__yy__v1649))continue;var __yy__v1650=__yy__v1648[__yy__v1649];{ds_list_shuffle(__yy__v1650.gmlroster);var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1650.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1650.gmlroster,gmli);if(!yyGetBool(argument0)){{if((yyGetBool(yyflessequal(ds_map_find_value(gmlpmap,"condition"),0)))||(yyGetBool(gml_Script_s_player_benched(__yy__v1650, _inst,gmlpmap)))){continue;};};};if(yyfequal(ds_map_find_value(gmlpmap,"position"),argument1)){return gmlpmap;};}};}}};return(-4);}}function gml_Script_s_get_random_player_by_position_from_roster(_inst,_other,argument0,argument1,argument2){{if(yyfequal(argument2,(-4))){{gml_Script_slog(_inst,_other,"s_get_random_player_by_position_from_roster. no cur_roster");return(-4);};};{var __yy__v1651=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1652 in __yy__v1651){if(!__yy__v1651.hasOwnProperty(__yy__v1652))continue; var __yy__v1653=__yy__v1651[__yy__v1652];{ds_list_shuffle(argument2);var gmli=0;for(;yyfless(gmli,ds_list_size(argument2));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(argument2,gmli);if(!yyGetBool(argument0)){{if((yyGetBool(yyflessequal(ds_map_find_value(gmlpmap,"condition"),0)))||(yyGetBool(gml_Script_s_player_benched(__yy__v1653,_inst,gmlpmap)))){continue;};};};if(yyfequal(ds_map_find_value(gmlpmap,"position"), argument1)){return gmlpmap;};}};}}};return(-4);}}function gml_GlobalScript_s_get_random_player_defensive(_inst,_other,argument0){(_inst.gmls_get_random_player_defensive=__yy_method(_inst,gml_Script_s_get_random_player_defensive));}function gml_Script_s_get_random_player_defensive(_inst,_other,argument0){{var gmlinc_injured=argument0;if(yyGetBool(gmlinc_injured)){return ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster,irandom(yyfminus(__yy_gml_errCheck(_inst.gmlsize),1)));};{var __yy__v1654=GetWithArray(YYASSET_REF(0x00000062)); for(var __yy__v1655 in __yy__v1654){if(!__yy__v1654.hasOwnProperty(__yy__v1655))continue;var __yy__v1656=__yy__v1654[__yy__v1655];{ds_list_shuffle(__yy__v1656.gmlroster);var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1656.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1656.gmlroster,gmli);if((yyGetBool(yyfgreater(ds_map_find_value(gmlpmap,"condition"),0)))&&(yyGetBool(!yyGetBool(gml_Script_s_player_benched(__yy__v1656, _inst,gmlpmap))))&&(yyGetBool(gml_Script_s_is_defensive_player(__yy__v1656,_inst,gmlpmap)))){return gmlpmap;};}};}}};return(-4);}}function gml_GlobalScript_s_get_random_player_offensive(_inst,_other,argument0){(_inst.gmls_get_random_player_offensive=__yy_method(_inst,gml_Script_s_get_random_player_offensive));}function gml_Script_s_get_random_player_offensive(_inst,_other,argument0){{var gmlinc_injured=argument0;if(yyGetBool(gmlinc_injured)){return ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster, irandom(yyfminus(__yy_gml_errCheck(_inst.gmlsize),1)));};{var __yy__v1657=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1658 in __yy__v1657){if(!__yy__v1657.hasOwnProperty(__yy__v1658))continue;var __yy__v1659=__yy__v1657[__yy__v1658];{ds_list_shuffle(__yy__v1659.gmlroster);var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1659.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1659.gmlroster, gmli);if((yyGetBool(yyfgreater(ds_map_find_value(gmlpmap,"condition"),0)))&&(yyGetBool(!yyGetBool(gml_Script_s_player_benched(__yy__v1659,_inst,gmlpmap))))&&(yyGetBool(gml_Script_s_is_offensive_player(__yy__v1659,_inst,gmlpmap)))){return gmlpmap;};}};}}};return(-4);}}function gml_GlobalScript_s_get_random_coach(_inst,_other){(_inst.gmls_get_random_coach=__yy_method(_inst,gml_Script_s_get_random_coach));}function gml_Script_s_get_random_coach(_inst,_other){{{var __yy__v1660=GetWithArray(YYASSET_REF(0x00000062)); for(var __yy__v1661 in __yy__v1660){if(!__yy__v1660.hasOwnProperty(__yy__v1661))continue;var __yy__v1662=__yy__v1660[__yy__v1661];return ds_list_find_value(__yy__v1662.gmlstafflist,irandom(yyfminus(__yy_gml_errCheck(ds_list_size(__yy__v1662.gmlstafflist)),1)));}};}}function gml_GlobalScript_btn_click_qb_items(_inst,_other){(_inst.gmlbtn_click_qb_items=__yy_method(_inst,gml_Script_btn_click_qb_items));(_inst.gmlbtn_click_qb_vehicles=__yy_method(_inst,gml_Script_btn_click_qb_vehicles));(_inst.gmlbtn_click_qb_property=__yy_method(_inst, gml_Script_btn_click_qb_property));}function gml_Script_btn_click_qb_items(_inst,_other){{{var __yy__v1663=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1664 in __yy__v1663){if(!__yy__v1663.hasOwnProperty(__yy__v1664))continue;var __yy__v1665=__yy__v1663[__yy__v1664];{__yy__v1665.gmlshopping_type=0;__yy__v1665.gmlshopping_page=1;room_goto(YYASSET_REF(0x03000029));}}};}}function gml_Script_btn_click_qb_vehicles(_inst,_other){{{var __yy__v1666=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1667 in __yy__v1666){ if(!__yy__v1666.hasOwnProperty(__yy__v1667))continue;var __yy__v1668=__yy__v1666[__yy__v1667];{__yy__v1668.gmlshopping_type=1;__yy__v1668.gmlshopping_page=1;room_goto(YYASSET_REF(0x03000029));}}};}}function gml_Script_btn_click_qb_property(_inst,_other){{{var __yy__v1669=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1670 in __yy__v1669){if(!__yy__v1669.hasOwnProperty(__yy__v1670))continue;var __yy__v1671=__yy__v1669[__yy__v1670];{__yy__v1671.gmlshopping_type=2;__yy__v1671.gmlshopping_page=1;room_goto(YYASSET_REF(0x03000029)); }}};}}function gml_GlobalScript_s_count_players_by_position(_inst,_other){(_inst.gmls_count_players_by_position=__yy_method(_inst,gml_Script_s_count_players_by_position));}function gml_Script_s_count_players_by_position(_inst,_other,argument0){{var gmlcount=0;{var __yy__v1672=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1673 in __yy__v1672){if(!__yy__v1672.hasOwnProperty(__yy__v1673))continue;var __yy__v1674=__yy__v1672[__yy__v1673];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1674.gmlroster)); (g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1674.gmlroster,gmli);if((yyGetBool(yyfequal(argument0,9)))||(yyGetBool(yyfequal(argument0,8)))){{if((yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"position"),9)))||(yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"position"),8)))){(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__);};} ;}else {if(yyfequal(ds_map_find_value(gmlpmap,"position"),argument0)){{(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__);};};};}};}}};return gmlcount;}}function gml_GlobalScript_s_count_players_onfield_by_position(_inst,_other,argument0){(_inst.gmls_count_players_onfield_by_position=__yy_method(_inst,gml_Script_s_count_players_onfield_by_position));}function gml_Script_s_count_players_onfield_by_position(_inst,_other,argument0, argument1){{var gmlpos=argument0;var gmlcount=0;if(yyfequal(argument1,(-4))){{gml_Script_slog2(_inst,_other,"s_count_players_onfield_by_position. no cur_roster");return 0;};};{var __yy__v1675=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1676 in __yy__v1675){if(!__yy__v1675.hasOwnProperty(__yy__v1676))continue;var __yy__v1677=__yy__v1675[__yy__v1676];{var gmli=0;for(;yyfless(gmli,ds_list_size(argument1));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ {var gmlpmap=ds_list_find_value(argument1,gmli);if(yyGetBool(ds_map_find_value(gmlpmap,"backup"))){continue;};if(yyfless(ds_map_find_value(gmlpmap,"condition"),0)){continue;};if(yyGetBool(gml_Script_s_player_benched(__yy__v1677,_inst,gmlpmap))){continue;};if((yyGetBool(yyfequal(gmlpos,9)))||(yyGetBool(yyfequal(gmlpos,8)))){{if((yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"position"),9)))||(yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"position"),8)))){(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount), g_yyPrePostObject__);};};}else {if(yyfequal(ds_map_find_value(gmlpmap,"position"),gmlpos)){{(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__);};};};}};}}};return gmlcount;}}function gml_GlobalScript_s_count_defenders(_inst,_other){(_inst.gmls_count_defenders=__yy_method(_inst,gml_Script_s_count_defenders));}function gml_Script_s_count_defenders(_inst,_other,argument0){{var gmlcount=0;if(yyfequal(argument0,(-4))){{gml_Script_slog(_inst, _other,"s_count_defenders. no cur_roster");return 0;};};{var __yy__v1678=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1679 in __yy__v1678){if(!__yy__v1678.hasOwnProperty(__yy__v1679))continue;var __yy__v1680=__yy__v1678[__yy__v1679];{var gmli=0;for(;yyfless(gmli,ds_list_size(argument0));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(argument0,gmli);if(yyGetBool(gml_Script_s_is_defensive_player(__yy__v1680, _inst,gmlpmap))){(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__);};}};}}};return gmlcount;}}// with (obj_text) if (string_count("@", text)) visible = false; function gml_GlobalScript_btn_click_OptionsControls(_inst,_other){(_inst.gmlbtn_click_OptionsControls=__yy_method(_inst,gml_Script_btn_click_OptionsControls));(_inst.gmlbtn_click_OptionsControls1=__yy_method(_inst,gml_Script_btn_click_OptionsControls1));(_inst.gmlbtn_click_OptionsControls2=__yy_method(_inst, gml_Script_btn_click_OptionsControls2));(_inst.gmlbtn_click_OptionsControls3=__yy_method(_inst,gml_Script_btn_click_OptionsControls3));(_inst.gmls_update_control_screen=__yy_method(_inst,gml_Script_s_update_control_screen));}function gml_Script_btn_click_OptionsControls(_inst,_other){{room_goto(YYASSET_REF(0x03000025));}}function gml_Script_btn_click_OptionsControls1(_inst,_other){{gml_Script_s_update_control_screen(_inst,_other,1);}}function gml_Script_btn_click_OptionsControls2(_inst,_other){{gml_Script_s_update_control_screen(_inst, _other,2);}}function gml_Script_btn_click_OptionsControls3(_inst,_other){{gml_Script_s_update_control_screen(_inst,_other,3);}}function gml_Script_s_update_control_screen(_inst,_other,argument0){{yyInst(_inst,_other,100648).gmlcolour=global.gmlc_background;yyInst(_inst,_other,100649).gmlcolour=global.gmlc_background;yyInst(_inst,_other,100650).gmlcolour=global.gmlc_background;{var __yy__v1681=GetWithArray(YYASSET_REF(0x0000004B));for(var __yy__v1682 in __yy__v1681){if(!__yy__v1681.hasOwnProperty(__yy__v1682))continue; var __yy__v1683=__yy__v1681[__yy__v1682];instance_destroy(__yy__v1683);}};var ___sw1394___=argument0;var ___swc1395___=-1;if(yyCompareVal(___sw1394___,1,g_GMLMathEpsilon,false)==0){___swc1395___=0;}else if(yyCompareVal(___sw1394___,2,g_GMLMathEpsilon,false)==0){___swc1395___=1;}else if(yyCompareVal(___sw1394___,3,g_GMLMathEpsilon,false)==0){___swc1395___=2;}switch(___swc1395___){case 0:{yyInst(_inst,_other,100648).gmlcolour=global.gmlc_primary;break;}case 1:{yyInst(_inst,_other,100649).gmlcolour=global.gmlc_primary; break;}case 2:{yyInst(_inst,_other,100650).gmlcolour=global.gmlc_primary;break;}};var gmlc1=array_create(9);var gmlc2=array_create(9);var gmlc3=array_create(9);var gmli=0;for(;yyfless(gmli,9);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlc1=__yy_gml_array_check(gmlc1,4099452308);gmlc1[__yy_gml_array_check_index_set(gmli)]=instance_create_layer(200,yyfplus(48,__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmli),20))),"Instances",YYASSET_REF(0x0000004B)); yyInst(_inst,_other,gmlc1[__yy_gml_array_check_index(gmli,gmlc1)]).gmldraw_box=false;yyInst(_inst,_other,gmlc1[__yy_gml_array_check_index(gmli,gmlc1)]).gmlhalign=2;gmlc2=__yy_gml_array_check(gmlc2,3749051991);gmlc2[__yy_gml_array_check_index_set(gmli)]=instance_create_layer(280,yyfplus(48,__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmli),20))),"Instances",YYASSET_REF(0x0000004B));yyInst(_inst,_other,gmlc2[__yy_gml_array_check_index(gmli,gmlc2)]).gmldraw_box=false;yyInst(_inst,_other,gmlc2[__yy_gml_array_check_index(gmli, gmlc2)]).gmlhalign=1;gmlc3=__yy_gml_array_check(gmlc3,3329150742);gmlc3[__yy_gml_array_check_index_set(gmli)]=instance_create_layer(400,yyfplus(48,__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmli),20))),"Instances",YYASSET_REF(0x0000004B));yyInst(_inst,_other,gmlc3[__yy_gml_array_check_index(gmli,gmlc3)]).gmldraw_box=false;yyInst(_inst,_other,gmlc3[__yy_gml_array_check_index(gmli,gmlc3)]).gmlhalign=1;yyInst(_inst,_other,gmlc1[__yy_gml_array_check_index(gmli,gmlc1)]).gmltext=gml_Script_s_str(_inst, _other,yyfplus(yyfplus(yyfplus(yyfplus("Map_Tab",__yy_gml_errCheck(string(argument0))),"_Line"),__yy_gml_errCheck(string(yyfplus(__yy_gml_errCheck(gmli),1)))),"_L"));yyInst(_inst,_other,gmlc2[__yy_gml_array_check_index(gmli,gmlc2)]).gmltext=gml_Script_s_str(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus("Map_Tab",__yy_gml_errCheck(string(argument0))),"_Line"),__yy_gml_errCheck(string(yyfplus(__yy_gml_errCheck(gmli),1)))),"_B1"));yyInst(_inst,_other,gmlc3[__yy_gml_array_check_index(gmli,gmlc3)]).gmltext=gml_Script_s_str(_inst, _other,yyfplus(yyfplus(yyfplus(yyfplus("Map_Tab",__yy_gml_errCheck(string(argument0))),"_Line"),__yy_gml_errCheck(string(yyfplus(__yy_gml_errCheck(gmli),1)))),"_B2"));}};{var __yy__v1684=GetWithArray(YYASSET_REF(0x0000004B));for(var __yy__v1685 in __yy__v1684){if(!__yy__v1684.hasOwnProperty(__yy__v1685))continue;var __yy__v1686=__yy__v1684[__yy__v1685];if(yyGetBool(string_count("@",__yy__v1686.gmltext))){__yy__v1686.visible=false;};}};}}function gml_GlobalScript_s_get_position_colour(_inst,_other){(_inst.gmls_get_position_colour=__yy_method(_inst, gml_Script_s_get_position_colour));}function gml_Script_s_get_position_colour(_inst,_other,argument0){{var ___sw1398___=argument0;var ___swc1399___=-1;if(yyCompareVal(___sw1398___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1398___,5,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1398___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1398___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1398___,4,g_GMLMathEpsilon,false)==0){___swc1399___=0;}else if(yyCompareVal(___sw1398___,6,g_GMLMathEpsilon, false)==0||yyCompareVal(___sw1398___,7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1398___,9,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1398___,8,g_GMLMathEpsilon,false)==0){___swc1399___=1;}else if(yyCompareVal(___sw1398___,11,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1398___,10,g_GMLMathEpsilon,false)==0){___swc1399___=2;}else if(yyCompareVal(___sw1398___,100,g_GMLMathEpsilon,false)==0){___swc1399___=3;}else if(yyCompareVal(___sw1398___,101,g_GMLMathEpsilon,false)==0){___swc1399___=4;}else if(yyCompareVal(___sw1398___, 102,g_GMLMathEpsilon,false)==0){___swc1399___=5;}switch(___swc1399___){case 0:{return global.gmlc_offense;break;}case 1:{return global.gmlc_defense;break;}case 2:{return global.gmlc_specialteams;break;}case 3:{return global.gmlc_headcoach;break;}case 4:{return global.gmlc_defense;break;}case 5:{return global.gmlc_offense;break;}};return global.gmlc_primary;}}function gml_GlobalScript_s_gui_matchline(_inst,_other){(_inst.gmls_obj_matchLine_create=__yy_method(_inst,gml_Script_s_obj_matchLine_create));(_inst.gmls_obj_matchLine_step=__yy_method(_inst, gml_Script_s_obj_matchLine_step));(_inst.gmls_obj_matchLine_global_flick=__yy_method(_inst,gml_Script_s_obj_matchLine_global_flick));(_inst.gmls_obj_matchLine_draw=__yy_method(_inst,gml_Script_s_obj_matchLine_draw));(_inst.gmls_obj_matchLine_draw_gui=__yy_method(_inst,gml_Script_s_obj_matchLine_draw_gui));}function gml_Script____struct___180_s_obj_matchLine_create_gml_GlobalScript_s_gui_matchline(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___180_s_obj_matchLine_create_gml_GlobalScript_s_gui_matchline"; }if(gml_Script____struct___180_s_obj_matchLine_create_gml_GlobalScript_s_gui_matchline.prototype.__type===undefined){gml_Script____struct___180_s_obj_matchLine_create_gml_GlobalScript_s_gui_matchline.prototype.__type="gml_Script____struct___180_s_obj_matchLine_create_gml_GlobalScript_s_gui_matchline";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___180_s_obj_matchLine_create_gml_GlobalScript_s_gui_matchline.prototype);{var $$args=Array.prototype.slice.call(arguments); {_inst.gmlnext_ps_fixture=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlschedule_fix=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlis_bowl=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.gmlcomp_str=$$args[__yy_gml_array_check_index(2+(3),$$args)];}}}}function gml_Script_s_obj_matchLine_create(_inst,_other){{_inst.gmlweek_superbowl=gml_Script_s_get_week_superbowl(_inst,_other);_inst.gmlweek_schedule_end=gml_Script_s_get_last_schedule_week(_inst,_other);_inst.gmlline_nodes=(!yyGetBool(gml_Script_s_is_co_mode(_inst, _other))?_inst.gmlweek_superbowl:_inst.gmlweek_schedule_end);_inst.gmlgap=192;gml_Script_slogf(_inst,_other,"line_nodes: %1",_inst.gmlline_nodes);_inst.gmlmax_w=yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.gmlline_nodes),__yy_gml_errCheck(_inst.gmlgap))),__yy_gml_errCheck(_inst.gmlgap));_inst.gmlweek=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek;if(yyfgreater(_inst.gmlweek,_inst.gmlmax_w)){_inst.gmlweek=_inst.gmlmax_w;};_inst.x=yyfplus(yyfminus(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(display_get_gui_width()), 2)),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.gmlweek),__yy_gml_errCheck(_inst.gmlgap)))),__yy_gml_errCheck(_inst.gmlgap));_inst.gmlms_offset=0;_inst.gmlshow_difficulty=false;_inst.gmlclicked=false;if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{_inst.gml_data=__yy_gml_array_create([]);var gmlnext_ps_fix,gmlfix;var gmli=1;for(;yyflessequal(gmli,_inst.gmlline_nodes);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlnext_ps_fix=gml_Script_s_get_postseason_fixture_by_week(_inst, _other,yyfplus(__yy_gml_errCheck(gmli),1));gmlfix=gml_Script_s_get_player_schedule_fixture_by_week(_inst,_other,gmli);var gmlfd=__yy_gml_object_create(_inst,(_inst.gml___struct___180=__yy_method(_inst,gml_Script____struct___180_s_obj_matchLine_create_gml_GlobalScript_s_gui_matchline)),gmlnext_ps_fix,gmlfix,gml_Script_s_is_co_bowl_fix(_inst,_other,gmlfix),gml_Script_s_get_fix_competition_string(_inst,_other,gmlfix));_inst.gml_data=__yy_gml_array_check(_inst.gml_data,3245872679);_inst.gml_data[__yy_gml_array_check_index_set(gmli)]=gmlfd; }};};};}}function gml_Script_s_obj_matchLine_step(_inst,_other){{if((yyGetBool(global.gmlgamepad))&&(yyGetBool(yyInst(_inst,_other,global.gmlgp).gmltriggerl))&&(yyGetBool(yyInst(_inst,_other,global.gmlgp).gmltriggerr))){{_inst.x=yyfplus(yyfminus(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(display_get_gui_width()),2)),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.gmlweek),__yy_gml_errCheck(_inst.gmlgap)))),__yy_gml_errCheck(_inst.gmlgap));_inst.gmlflick_lineX=0;_inst.gmlms_offset=0;};}else {if((yyGetBool(global.gmlgamepad))&&(yyGetBool(yyInst(_inst, _other,global.gmlgp).gmltriggerl))){_inst.gmlflick_lineX=yyfplus(_inst.gmlflick_lineX,1);}else {if((yyGetBool(global.gmlgamepad))&&(yyGetBool(yyInst(_inst,_other,global.gmlgp).gmltriggerr))){_inst.gmlflick_lineX=yyfminus(_inst.gmlflick_lineX,1);}else {_inst.gmlflick_lineX=yyftime(_inst.gmlflick_lineX,0.999);};};};if(yyGetBool(abs(_inst.gmlflick_lineX))){{_inst.x=yyfplus(_inst.x,_inst.gmlflick_lineX);};};if((yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other)))&&(yyGetBool((yyGetBool(mouse_check_button(1)))&&(yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_y(), yyfminus(__yy_gml_errCheck(_inst.y),32))))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_y(),yyfplus(__yy_gml_errCheck(_inst.y),32))))))){{if(yyfequal(_inst.gmlclicked,0)){_inst.gmlclicked=g_pBuiltIn.get_current_time();};if(yyfequal(_inst.gmlms_offset,0)){_inst.gmlms_offset=yyfminus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(g_pBuiltIn.get_mouse_x()));};_inst.x=yyfplus(__yy_gml_errCheck(_inst.gmlms_offset),__yy_gml_errCheck(g_pBuiltIn.get_mouse_x()));_inst.gmlflick_lineX=0;};}else {{if((yyGetBool(yyfequal(_inst.gmlflick_lineX, 0)))&&(yyGetBool(yyfless(g_pBuiltIn.get_current_time(),yyfplus(__yy_gml_errCheck(_inst.gmlclicked),100))))){_inst.gmlshow_difficulty=!yyGetBool(_inst.gmlshow_difficulty);};_inst.gmlclicked=0;_inst.gmlms_offset=0;};};_inst.gmlflick_lineX=yyftime(_inst.gmlflick_lineX,0.9);var gmlmidscreen=yyfdivide(__yy_gml_errCheck(display_get_gui_width()),2);_inst.x=clamp(_inst.x,yyfminus(__yy_gml_errCheck(gmlmidscreen),__yy_gml_errCheck(_inst.gmlmax_w)),gmlmidscreen);}}function gml_Script_s_obj_matchLine_global_flick(_inst, _other){{if((yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other)))&&(yyGetBool((yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_y(),yyfminus(__yy_gml_errCheck(_inst.y),32))))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_y(),yyfplus(__yy_gml_errCheck(_inst.y),32))))))){_inst.gmlflick_lineX=ds_map_find_value(g_pBuiltIn.get_event_data(),"diffX");};}}function gml_Script_s_obj_matchLine_draw(_inst,_other){{}}function gml_Script_s_obj_matchLine_draw_gui(_inst,_other){{draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1); draw_set_valign(1);draw_set_color(16777215);var gmlgw=display_get_gui_width();var gmlsx=_inst.x;var gmlsy=yyfplus(__yy_gml_errCheck(_inst.y),8);var gmlcol=global.gmlc_primary;if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)){gmlcol=global.gmlc_buttons;};draw_rectangle_color(0,yyfminus(__yy_gml_errCheck(_inst.y),36),gmlgw,yyfplus(__yy_gml_errCheck(_inst.y),36),gmlcol,gmlcol,gmlcol,gmlcol,0);var gmli=1;for(;yyflessequal(gmli,_inst.gmlline_nodes);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli), g_yyPrePostObject__)){{var gmlfixture=gml_Script_s_get_human_fixture_by_week(_inst,_other,gmli);var gmlnext_fixture=gml_Script_s_get_human_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(gmli),1));var gmlteamid_away=(-1);var gmlteamid_home=(-1);var gmlaway_score=(-1);var gmlhome_score=(-1);var gmlopponent=(-4);var gmlopp_name="";var gmlrescol=16777215;var gmlnextrescol=16777215;var gmlscoreline="";if(yyGetBool(gmlfixture)){{gmlteamid_away=ds_map_find_value(gmlfixture,"away_team");gmlteamid_home=ds_map_find_value(gmlfixture, "home_team");gmlaway_score=ds_map_find_value(gmlfixture,"away_score");gmlhome_score=ds_map_find_value(gmlfixture,"home_score");gmlopponent=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteamlist,gmlteamid_away);if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id,gmlteamid_away)){gmlopponent=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteamlist,gmlteamid_home);};if((yyGetBool(!yyGetBool(is_undefined(gmlopponent))))&&(yyGetBool(ds_exists(gmlopponent, 1)))&&(yyGetBool(!yyGetBool(is_undefined(ds_map_find_value(gmlopponent,"name")))))){{if((yyGetBool(yyfequal(gmlteamid_away,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id)))&&(yyGetBool(yyfnotequal(gmli,_inst.gmlweek_superbowl)))){gmlopp_name=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_at"))," "),__yy_gml_errCheck(string_upper(ds_map_find_value(gmlopponent,"name"))));}else {gmlopp_name=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_versus")), " "),__yy_gml_errCheck(string_upper(ds_map_find_value(gmlopponent,"name"))));};if(yyfnotequal(ds_map_find_value(gmlfixture,"human_win"),"unplayed")){{if(yyfequal(ds_map_find_value(gmlfixture,"human_win"),"win")){gmlrescol=65280;}else {if(yyfequal(ds_map_find_value(gmlfixture,"human_win"),"loss")){gmlrescol=255;}else {if(yyfequal(ds_map_find_value(gmlfixture,"human_win"),"tie")){gmlrescol=12632256;};};};};};if(yyfnotequal(ds_map_find_value(gmlfixture,"human_win"),"unplayed")){{gmlscoreline=yyfplus(yyfplus(__yy_gml_errCheck(string(gmlaway_score)), "-"),__yy_gml_errCheck(string(gmlhome_score)));if(yyfless(gmlaway_score,gmlhome_score)){gmlscoreline=yyfplus(yyfplus(__yy_gml_errCheck(string(gmlhome_score)),"-"),__yy_gml_errCheck(string(gmlaway_score)));};if(yyfequal(ds_map_find_value(gmlfixture,"human_win"),"win")){gmlscoreline=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"sla_Win"))," "),__yy_gml_errCheck(gmlscoreline));}else {if(yyfequal(ds_map_find_value(gmlfixture,"human_win"),"loss")){gmlscoreline=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst, _other,"sla_Loss"))," "),__yy_gml_errCheck(gmlscoreline));}else {if(yyfequal(ds_map_find_value(gmlfixture,"human_win"),"tie")){gmlscoreline=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"sla_Tie"))," "),__yy_gml_errCheck(gmlscoreline));};};};};};if(yyGetBool(gmlnext_fixture)){{if(yyfequal(ds_map_find_value(gmlnext_fixture,"human_win"),"win")){gmlnextrescol=65280;}else {if(yyfequal(ds_map_find_value(gmlnext_fixture,"human_win"),"loss")){gmlnextrescol=255;}else {if(yyfequal(ds_map_find_value(gmlnext_fixture, "human_win"),"tie")){gmlnextrescol=12632256;};};};};};if((yyGetBool(gml_Script_s_is_co_mode(_inst,_other)))&&(yyGetBool(yyInst(_inst,_other,_inst.gml_data[__yy_gml_array_check_index(gmli,_inst.gml_data)]).gmlnext_ps_fixture))){gmlnextrescol=12632256;};};};};}else {if((yyGetBool(gml_Script_s_is_co_mode(_inst,_other)))&&(yyGetBool(yyfgreater(gmli,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular)))){{gmlrescol=12632256;gmlfixture=yyInst(_inst,_other,_inst.gml_data[__yy_gml_array_check_index(gmli, _inst.gml_data)]).gmlschedule_fix;if((yyGetBool(gmlfixture))&&(yyGetBool(yyfequal(ds_map_find_value(gmlfixture,"show"),1)))){{gmlteamid_away=ds_map_find_value(gmlfixture,"away_team");gmlteamid_home=ds_map_find_value(gmlfixture,"home_team");gmlaway_score=ds_map_find_value(gmlfixture,"away_score");gmlhome_score=ds_map_find_value(gmlfixture,"home_score");if((yyGetBool(yyfgreater(gmlteamid_away,(-1))))&&(yyGetBool(yyfgreater(gmlteamid_home,(-1))))){{var gmlteam_away=ds_list_find_value(yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlteamlist,gmlteamid_away);var gmlteam_home=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteamlist,gmlteamid_home);gmlopp_name=yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlteam_away,"tla"))," - "),__yy_gml_errCheck(ds_map_find_value(gmlteam_home,"tla")));if(yyfgreater(gmlaway_score,(-1))){{gmlscoreline=yyfplus(yyfplus(__yy_gml_errCheck(string(gmlaway_score)),"-"),__yy_gml_errCheck(string(gmlhome_score)));};};};};};};};}else {if(yyfless(gmli, yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs)){{gmlopp_name=gml_Script_s_str(_inst,_other,"ui_ByeWeek");gmlrescol=16777215;if(yyGetBool(gmlnext_fixture)){{if(yyfequal(ds_map_find_value(gmlnext_fixture,"human_win"),"win")){gmlnextrescol=65280;}else {if(yyfequal(ds_map_find_value(gmlnext_fixture,"human_win"),"loss")){gmlnextrescol=255;}else {if(yyfequal(ds_map_find_value(gmlnext_fixture,"human_win"),"tie")){gmlnextrescol=12632256;};};};};};};}else {if(!yyGetBool(gml_Script_s_is_co_mode(_inst, _other))){{gmlrescol=12632256;gmlfixture=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,gmli);if(yyGetBool(gmlfixture)){{gmlteamid_away=ds_map_find_value(gmlfixture,"away_team");gmlteamid_home=ds_map_find_value(gmlfixture,"home_team");gmlaway_score=ds_map_find_value(gmlfixture,"away_score");gmlhome_score=ds_map_find_value(gmlfixture,"home_score");if((yyGetBool(yyfgreater(gmlteamid_away,(-1))))&&(yyGetBool(yyfgreater(gmlteamid_home,(-1))))){{var gmlteam_away=ds_list_find_value(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlteamlist,gmlteamid_away);var gmlteam_home=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteamlist,gmlteamid_home);gmlopp_name=yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlteam_away,"tla"))," - "),__yy_gml_errCheck(ds_map_find_value(gmlteam_home,"tla")));if(yyfgreater(gmlaway_score,(-1))){{gmlscoreline=yyfplus(yyfplus(__yy_gml_errCheck(string(gmlaway_score)),"-"),__yy_gml_errCheck(string(gmlhome_score)));};};};};};};};};};};};if((yyGetBool((yyGetBool(!yyGetBool(gml_Script_s_is_co_mode(_inst, _other))))&&(yyGetBool(yyfless(gmli,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular)))))||(yyGetBool((yyGetBool(gml_Script_s_is_co_mode(_inst,_other)))&&(yyGetBool(yyfless(gmli,_inst.gmlweek_schedule_end)))))){{draw_line_width_colour(gmlsx,gmlsy,yyfplus(__yy_gml_errCheck(gmlsx),__yy_gml_errCheck(_inst.gmlgap)),gmlsy,4,gmlrescol,gmlnextrescol);draw_line_width_colour(gmlsx,yyfplus(__yy_gml_errCheck(gmlsy),1),yyfplus(__yy_gml_errCheck(gmlsx),__yy_gml_errCheck(_inst.gmlgap)),yyfplus(__yy_gml_errCheck(gmlsy), 1),2,4210752,4210752);};}else {if(yyfless(gmli,_inst.gmlline_nodes)){{draw_line_width_colour(gmlsx,gmlsy,yyfplus(__yy_gml_errCheck(gmlsx),__yy_gml_errCheck(_inst.gmlgap)),gmlsy,4,12632256,12632256);draw_line_width_colour(gmlsx,yyfplus(__yy_gml_errCheck(gmlsy),1),yyfplus(__yy_gml_errCheck(gmlsx),__yy_gml_errCheck(_inst.gmlgap)),yyfplus(__yy_gml_errCheck(gmlsy),1),2,4210752,4210752);};};};var gmlwk;if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){gmlwk=gml_Script_s_get_week_name(_inst,_other,gmli); }else {gmlwk=string_upper(gml_Script_s_get_string_week(_inst,_other,gmli));};gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmlsx),1),yyfminus(__yy_gml_errCheck(_inst.y),27),gmlwk,0,0,0,0,1);gml_Script_draw_hd_text(_inst,_other,gmlsx,yyfminus(__yy_gml_errCheck(_inst.y),28),gmlwk);if((yyGetBool(gml_Script_s_is_co_mode(_inst,_other)))&&(yyGetBool(yyfnotequal(yyInst(_inst,_other,_inst.gml_data[__yy_gml_array_check_index(gmli,_inst.gml_data)]).gmlcomp_str,(-4))))){{draw_set_color(0); gml_Script_draw_hd_text(_inst,_other,yyfminus(__yy_gml_errCheck(gmlsx),1),yyfminus(__yy_gml_errCheck(_inst.y),17),yyInst(_inst,_other,_inst.gml_data[__yy_gml_array_check_index(gmli,_inst.gml_data)]).gmlcomp_str);draw_set_color(16777215);gml_Script_draw_hd_text(_inst,_other,gmlsx,yyfminus(__yy_gml_errCheck(_inst.y),18),yyInst(_inst,_other,_inst.gml_data[__yy_gml_array_check_index(gmli,_inst.gml_data)]).gmlcomp_str);};};var gmlcol=0;if((yyGetBool(gml_Script_s_is_co_mode(_inst,_other)))&&(yyGetBool(yyInst(_inst, _other,_inst.gml_data[__yy_gml_array_check_index(gmli,_inst.gml_data)]).gmlis_bowl))){{if((yyGetBool(!yyGetBool(is_undefined(gmlopponent))))&&(yyGetBool(yyfnotequal(gmlopponent,(-4))))){gmlopp_name=string_upper(ds_map_find_value(gmlopponent,"name"));};};};gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmlsx),1),yyfplus(yyfminus(__yy_gml_errCheck(_inst.y),8),1),gmlopp_name,gmlcol,gmlcol,gmlcol,gmlcol,1);gml_Script_draw_hd_text(_inst,_other,gmlsx,yyfminus(__yy_gml_errCheck(_inst.y), 8),gmlopp_name);gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmlsx),1),yyfplus(__yy_gml_errCheck(_inst.y),25),gmlscoreline,gmlcol,gmlcol,gmlcol,gmlcol,1);gml_Script_draw_hd_text(_inst,_other,gmlsx,yyfplus(__yy_gml_errCheck(_inst.y),24),gmlscoreline);draw_sprite_ext(_inst,YYASSET_REF(0x01000064),0,gmlsx,gmlsy,1,1,0,gmlrescol,1);if(yyGetBool(_inst.gmlshow_difficulty)){{if((yyGetBool(gmlfixture))&&(yyGetBool(yyfnotequal(ds_map_find_value(gmlfixture,"human_win"),"unplayed")))&&(yyGetBool(ds_map_exists(gmlfixture, "difficulty")))){{draw_set_alpha(0.75);gml_Script_draw_hd_text_transformed(_inst,_other,gmlsx,yyfplus(__yy_gml_errCheck(gmlsy),25),ds_map_find_value(gmlfixture,"difficulty"),0.5,0.5,0);draw_set_alpha(1);};};};};gmlsx=yyfplus(gmlsx,_inst.gmlgap);}};}}function gml_GlobalScript_s_increase_player_attribute(_inst,_other){(_inst.gmls_increase_player_attribute=__yy_method(_inst,gml_Script_s_increase_player_attribute));}function gml_Script_s_increase_player_attribute(_inst,_other,argument0,argument1){{if(yyGetBool(gml_Script_s_player_at_max_potential(_inst, _other,argument0))){return;};var ___sw1402___=argument1;var ___swc1403___=-1;if(yyCompareVal(___sw1402___,1,g_GMLMathEpsilon,false)==0){___swc1403___=0;}else if(yyCompareVal(___sw1402___,2,g_GMLMathEpsilon,false)==0){___swc1403___=1;}else if(yyCompareVal(___sw1402___,3,g_GMLMathEpsilon,false)==0){___swc1403___=2;}else if(yyCompareVal(___sw1402___,4,g_GMLMathEpsilon,false)==0){___swc1403___=3;}switch(___swc1403___){case 0:{if(yyfless(ds_map_find_value(argument0,"skill"),ds_map_find_value(argument0,"max_skill"))){ {ds_map_set(argument0,"skill",yyfplus(__yy_gml_errCheck(ds_map_find_value(argument0,"skill")),1));ds_map_set_post(argument0,"skill_points",yyfminus(__yy_gml_errCheck(ds_map_find_value(argument0,"skill_points")),1));};};break;}case 1:{if(yyfless(ds_map_find_value(argument0,"speed"),ds_map_find_value(argument0,"max_speed"))){{ds_map_set(argument0,"speed",yyfplus(__yy_gml_errCheck(ds_map_find_value(argument0,"speed")),1));ds_map_set_post(argument0,"skill_points",yyfminus(__yy_gml_errCheck(ds_map_find_value(argument0, "skill_points")),1));};};break;}case 2:{if(yyfless(ds_map_find_value(argument0,"strength"),ds_map_find_value(argument0,"max_strength"))){{ds_map_set(argument0,"strength",yyfplus(__yy_gml_errCheck(ds_map_find_value(argument0,"strength")),1));ds_map_set_post(argument0,"skill_points",yyfminus(__yy_gml_errCheck(ds_map_find_value(argument0,"skill_points")),1));};};break;}case 3:{if(yyfless(ds_map_find_value(argument0,"stamina"),ds_map_find_value(argument0,"max_stamina"))){{ds_map_set(argument0,"stamina", yyfplus(__yy_gml_errCheck(ds_map_find_value(argument0,"stamina")),1));ds_map_set_post(argument0,"skill_points",yyfminus(__yy_gml_errCheck(ds_map_find_value(argument0,"skill_points")),1));};};break;}};}}function gml_GlobalScript_s_player_at_max_potential(_inst,_other){(_inst.gmls_player_at_max_potential=__yy_method(_inst,gml_Script_s_player_at_max_potential));}function gml_Script_s_player_at_max_potential(_inst,_other,argument0){{gml_Script_s_round_player_attributes(_inst,_other,argument0);if(yyfless(ds_map_find_value(argument0, "skill"),ds_map_find_value(argument0,"max_skill"))){return false;};if(yyfless(ds_map_find_value(argument0,"speed"),ds_map_find_value(argument0,"max_speed"))){return false;};if(yyfless(ds_map_find_value(argument0,"strength"),ds_map_find_value(argument0,"max_strength"))){return false;};if(yyfless(ds_map_find_value(argument0,"stamina"),ds_map_find_value(argument0,"max_stamina"))){return false;};return true;}}function gml_GlobalScript_s_is_offensive_player(_inst,_other){(_inst.gmls_is_offensive_player=__yy_method(_inst, gml_Script_s_is_offensive_player));(_inst.gmls_get_training_reg=__yy_method(_inst,gml_Script_s_get_training_reg));}function gml_Script_s_is_offensive_player(_inst,_other,argument0){{var ___sw1406___=ds_map_find_value(argument0,"position");var ___swc1407___=-1;if(yyCompareVal(___sw1406___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1406___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1406___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1406___,4,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1406___, 5,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1406___,102,g_GMLMathEpsilon,false)==0){___swc1407___=0;}else if(yyCompareVal(___sw1406___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1406___,7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1406___,8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1406___,9,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1406___,10,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1406___,101,g_GMLMathEpsilon,false)==0){___swc1407___=1;}switch(___swc1407___){case 0:{return true; }case 1:{return false;}};return false;}}function gml_Script_s_get_training_reg(_inst,_other,argument0){{var gmltrainingreg=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltraining_reg_df;if(yyGetBool(gml_Script_s_is_offensive_player(_inst,_other,argument0))){gmltrainingreg=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltraining_reg_of;};return gmltrainingreg;}}function gml_GlobalScript_s_is_defensive_player(_inst,_other,argument0){(_inst.gmls_is_defensive_player=__yy_method(_inst,gml_Script_s_is_defensive_player)); }function gml_Script_s_is_defensive_player(_inst,_other,argument0){{var gmlpmap=argument0;var ___sw1410___=ds_map_find_value(gmlpmap,"position");var ___swc1411___=-1;if(yyCompareVal(___sw1410___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1410___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1410___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1410___,4,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1410___,5,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1410___,10,g_GMLMathEpsilon,false)==0){ ___swc1411___=0;}else if(yyCompareVal(___sw1410___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1410___,7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1410___,8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1410___,9,g_GMLMathEpsilon,false)==0){___swc1411___=1;}switch(___swc1411___){case 0:{return false;}case 1:{return true;}};return false;}}function gml_GlobalScript_s_get_average_yards(_inst,_other,argument0,argument1,argument2){(_inst.gmls_get_average_yards=__yy_method(_inst,gml_Script_s_get_average_yards)); }function gml_Script_s_get_average_yards(_inst,_other,argument0,argument1,argument2){{var gmlpmap=argument0;var gmltyp="stat_";var ___sw1416___=argument1;var ___swc1417___=-1;if(yyCompareVal(___sw1416___,0,g_GMLMathEpsilon,false)==0){___swc1417___=0;}else if(yyCompareVal(___sw1416___,1,g_GMLMathEpsilon,false)==0){___swc1417___=1;}else if(yyCompareVal(___sw1416___,2,g_GMLMathEpsilon,false)==0){___swc1417___=2;}switch(___swc1417___){case 0:{gmltyp="stat_";break;}case 1:{gmltyp="season_";break;}case 2:{gmltyp="career_"; break;}};if(yyGetBool(argument2)){gmltyp=yyfplus(gmltyp,"rush_");};var ___sw1418___=ds_map_find_value(gmlpmap,"position");var ___swc1419___=-1;if(yyCompareVal(___sw1418___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1418___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1418___,4,g_GMLMathEpsilon,false)==0){___swc1419___=0;}switch(___swc1419___){case 0:{if(yyGetBool(ds_map_find_value(gmlpmap,yyfplus(__yy_gml_errCheck(gmltyp),"attempts")))){return yyfdivide(__yy_gml_errCheck(round(ds_map_find_value(gmlpmap, yyfplus(__yy_gml_errCheck(gmltyp),"yards")))),__yy_gml_errCheck(ds_map_find_value(gmlpmap,yyfplus(__yy_gml_errCheck(gmltyp),"attempts"))));};break;}default :{if(yyGetBool(argument2)){{if(yyGetBool(ds_map_find_value(gmlpmap,yyfplus(__yy_gml_errCheck(gmltyp),"attempts")))){return yyfdivide(__yy_gml_errCheck(round(ds_map_find_value(gmlpmap,yyfplus(__yy_gml_errCheck(gmltyp),"yards")))),__yy_gml_errCheck(ds_map_find_value(gmlpmap,yyfplus(__yy_gml_errCheck(gmltyp),"attempts"))));};};}else {if(yyGetBool(ds_map_find_value(gmlpmap, yyfplus(__yy_gml_errCheck(gmltyp),"complete")))){return yyfdivide(__yy_gml_errCheck(round(ds_map_find_value(gmlpmap,yyfplus(__yy_gml_errCheck(gmltyp),"yards")))),__yy_gml_errCheck(ds_map_find_value(gmlpmap,yyfplus(__yy_gml_errCheck(gmltyp),"complete"))));};};break;}};return 0;}}function gml_GlobalScript_s_get_player_name(_inst,_other,argument0,argument1){(_inst.gmls_get_player_name=__yy_method(_inst,gml_Script_s_get_player_name));}function gml_Script_s_get_player_name(_inst,_other,argument0,argument1){ {var gmlpmap=argument0;var gmlshort=argument1;var ___sw1422___=gmlshort;var ___swc1423___=-1;if(yyCompareVal(___sw1422___,false,g_GMLMathEpsilon,false)==0){___swc1423___=0;}else if(yyCompareVal(___sw1422___,true,g_GMLMathEpsilon,false)==0){___swc1423___=1;}switch(___swc1423___){case 0:{return yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname")));break;}case 1:{return yyfplus(yyfplus(__yy_gml_errCheck(string_copy(ds_map_find_value(gmlpmap, "fname"),1,1)),"."),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname")));break;}};}}function gml_GlobalScript_s_get_meeting_cost_morale(_inst,_other,argument0){(_inst.gmls_get_meeting_cost_morale=__yy_method(_inst,gml_Script_s_get_meeting_cost_morale));}function gml_Script_s_get_meeting_cost_morale(_inst,_other,argument0){{var ___sw1426___=gml_Script_s_get_attitude_icon(_inst,_other,ds_map_find_value(argument0,"attitude"));var ___swc1427___=-1;if(yyCompareVal(___sw1426___,0,g_GMLMathEpsilon,false)==0){ ___swc1427___=0;}else if(yyCompareVal(___sw1426___,1,g_GMLMathEpsilon,false)==0){___swc1427___=1;}else if(yyCompareVal(___sw1426___,2,g_GMLMathEpsilon,false)==0){___swc1427___=2;}else if(yyCompareVal(___sw1426___,3,g_GMLMathEpsilon,false)==0){___swc1427___=3;}else if(yyCompareVal(___sw1426___,4,g_GMLMathEpsilon,false)==0){___swc1427___=4;}else if(yyCompareVal(___sw1426___,5,g_GMLMathEpsilon,false)==0){___swc1427___=5;}else if(yyCompareVal(___sw1426___,6,g_GMLMathEpsilon,false)==0){___swc1427___=6;}switch(___swc1427___){ case 0:{return 4;break;}case 1:{return 3;break;}case 2:{return 3;break;}case 3:{return 2;break;}case 4:{return 2;break;}case 5:{return 1;break;}case 6:{return 1;break;}};return 99;}}function gml_GlobalScript_s_get_meeting_cost_condition(_inst,_other,argument0){(_inst.gmls_get_meeting_cost_condition=__yy_method(_inst,gml_Script_s_get_meeting_cost_condition));}function gml_Script_s_get_meeting_cost_condition(_inst,_other,argument0){{var gmlcost=yyfdivide(__yy_gml_errCheck(yyfminus(100,__yy_gml_errCheck(ds_map_find_value(argument0, "condition")))),5);return clamp(round(gmlcost),1,100);}}function gml_GlobalScript_s_get_meeting_cost_levelup(_inst,_other,argument0){(_inst.gmls_get_meeting_cost_levelup=__yy_method(_inst,gml_Script_s_get_meeting_cost_levelup));}function gml_Script_s_get_meeting_cost_levelup(_inst,_other,argument0){{return round(yyftime(__yy_gml_errCheck(real(ds_map_find_value(argument0,"xp_level"))),4));}}function gml_GlobalScript_s_get_meeting_cost_delay_retirement(_inst,_other,argument0){(_inst.gmls_get_meeting_cost_delay_retirement=__yy_method(_inst, gml_Script_s_get_meeting_cost_delay_retirement));}function gml_Script_s_get_meeting_cost_delay_retirement(_inst,_other,argument0){{var gmlpmap=argument0;var gmlyears_over=yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"age")),__yy_gml_errCheck(gml_Script_s_get_max_age(_inst,_other,gmlpmap)));return yyfplus(25,__yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(gmlyears_over),__yy_gml_errCheck(gmlyears_over)),25)));}}function gml_GlobalScript_s_get_meeting_cost_extend_contract(_inst,_other,argument0){ (_inst.gmls_get_meeting_cost_extend_contract=__yy_method(_inst,gml_Script_s_get_meeting_cost_extend_contract));}function gml_Script_s_get_meeting_cost_extend_contract(_inst,_other,argument0){{var gmlpmap=argument0;if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{return gml_Script_s_get_meeting_cost_academic_coaching(_inst,_other,gmlpmap);};};var gmlcost=round(yyfplus(__yy_gml_errCheck(gml_Script_s_get_player_rating(_inst,_other,gmlpmap)),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap, "salary")),0.5))));gmlcost=yyfplus(gmlcost,yyftime(5,__yy_gml_errCheck(ds_map_find_value(gmlpmap,"contract"))));return gmlcost;}}function gml_GlobalScript_s_get_match_rating(_inst,_other){(_inst.gmls_get_match_rating=__yy_method(_inst,gml_Script_s_get_match_rating));}function gml_Script_s_get_match_rating(_inst,_other,argument0){{var gmlmrating=0;var gmlpos=ds_map_find_value(argument0,"position");var ___sw1432___=gmlpos;var ___swc1433___=-1;if(yyCompareVal(___sw1432___,1,g_GMLMathEpsilon,false)==0){___swc1433___=0; }else if(yyCompareVal(___sw1432___,5,g_GMLMathEpsilon,false)==0){___swc1433___=1;}else if(yyCompareVal(___sw1432___,4,g_GMLMathEpsilon,false)==0){___swc1433___=2;}else if(yyCompareVal(___sw1432___,3,g_GMLMathEpsilon,false)==0){___swc1433___=3;}else if(yyCompareVal(___sw1432___,2,g_GMLMathEpsilon,false)==0){___swc1433___=4;}else if(yyCompareVal(___sw1432___,10,g_GMLMathEpsilon,false)==0){___swc1433___=5;}else if(yyCompareVal(___sw1432___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1432___,7,g_GMLMathEpsilon, false)==0||yyCompareVal(___sw1432___,8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1432___,9,g_GMLMathEpsilon,false)==0){___swc1433___=6;}switch(___swc1433___){case 0:{gmlmrating=yyfplus(gmlmrating,ds_map_find_value(argument0,"stat_touchdowns"));gmlmrating=yyfplus(gmlmrating,ds_map_find_value(argument0,"stat_rush_touchdowns"));gmlmrating=yyfminus(gmlmrating,yyftime(__yy_gml_errCheck(ds_map_find_value(argument0,"stat_int")),0.5));gmlmrating=yyfminus(gmlmrating,yyftime(__yy_gml_errCheck(ds_map_find_value(argument0, "stat_sacks")),0.5));gmlmrating=yyfplus(gmlmrating,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument0,"stat_yards")),50));gmlmrating=yyfplus(gmlmrating,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument0,"stat_rush_yards")),25));gmlmrating=yyfminus(gmlmrating,ds_map_find_value(argument0,"stat_fumbles"));break;}case 1:{gmlmrating=yyfplus(gmlmrating,ds_map_find_value(argument0,"stat_tackles"));gmlmrating=yyfplus(gmlmrating,yyftime(__yy_gml_errCheck(ds_map_find_value(argument0,"stat_complete")), 0.25));gmlmrating=yyfminus(gmlmrating,ds_map_find_value(argument0,"stat_sacks"));break;}case 2:{gmlmrating=yyfplus(gmlmrating,ds_map_find_value(argument0,"stat_tackles"));gmlmrating=yyfplus(gmlmrating,ds_map_find_value(argument0,"stat_touchdowns"));gmlmrating=yyfplus(gmlmrating,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument0,"stat_yards")),20));gmlmrating=yyfminus(gmlmrating,ds_map_find_value(argument0,"stat_fumbles"));if(yyGetBool(ds_map_find_value(argument0,"stat_return_attempts"))){{gmlmrating=yyfplus(gmlmrating, yyfdivide(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument0,"stat_return_yards")),__yy_gml_errCheck(ds_map_find_value(argument0,"stat_return_attempts")))),10));gmlmrating=yyfplus(gmlmrating,ds_map_find_value(argument0,"stat_return_tds"));};};if((yyGetBool(yyfless(gmlmrating,5)))&&(yyGetBool(yyfgreater(ds_map_find_value(argument0,"stat_touchdowns"),0)))){gmlmrating=5;};break;}case 3:{gmlmrating=yyfplus(gmlmrating,yyftime(__yy_gml_errCheck(ds_map_find_value(argument0,"stat_tackles")), 2));gmlmrating=yyfplus(gmlmrating,yyftime(__yy_gml_errCheck(ds_map_find_value(argument0,"stat_touchdowns")),2));gmlmrating=yyfplus(gmlmrating,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument0,"stat_yards")),7.5));gmlmrating=yyfminus(gmlmrating,ds_map_find_value(argument0,"stat_fumbles"));if((yyGetBool(yyfless(gmlmrating,5)))&&(yyGetBool(yyfgreater(ds_map_find_value(argument0,"stat_touchdowns"),0)))){gmlmrating=5.5;};break;}case 4:{gmlmrating=yyfplus(gmlmrating,ds_map_find_value(argument0,"stat_tackles")); gmlmrating=yyfplus(gmlmrating,yyftime(__yy_gml_errCheck(ds_map_find_value(argument0,"stat_touchdowns")),3));gmlmrating=yyfplus(gmlmrating,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument0,"stat_yards")),15));gmlmrating=yyfplus(gmlmrating,yyftime(__yy_gml_errCheck(ds_map_find_value(argument0,"stat_rush_touchdowns")),2));gmlmrating=yyfplus(gmlmrating,yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument0,"stat_rush_yards")),15));gmlmrating=yyfminus(gmlmrating,ds_map_find_value(argument0,"stat_fumbles")); if(yyGetBool(ds_map_find_value(argument0,"stat_return_attempts"))){{gmlmrating=yyfplus(gmlmrating,yyfdivide(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument0,"stat_return_yards")),__yy_gml_errCheck(ds_map_find_value(argument0,"stat_return_attempts")))),10));gmlmrating=yyfplus(gmlmrating,ds_map_find_value(argument0,"stat_return_tds"));};};if((yyGetBool(yyfless(gmlmrating,5)))&&(yyGetBool(yyfgreater(ds_map_find_value(argument0,"stat_touchdowns"),0)))){gmlmrating=5;};break;} case 5:{gmlmrating=5;if(yyGetBool(ds_map_find_value(argument0,"stat_attempts"))){{gmlmrating=4;gmlmrating=yyfplus(gmlmrating,ds_map_find_value(argument0,"stat_complete"));gmlmrating=yyfminus(gmlmrating,yyfminus(__yy_gml_errCheck(ds_map_find_value(argument0,"stat_attempts")),__yy_gml_errCheck(ds_map_find_value(argument0,"stat_complete"))));if(yyfgreater(ds_map_find_value(argument0,"stat_longest"),40)){gmlmrating=yyfplus(gmlmrating,2);}else {if(yyfgreater(ds_map_find_value(argument0,"stat_longest"), 30)){gmlmrating=yyfplus(gmlmrating,1);};};};};if((yyGetBool(ds_map_exists(argument0,"stat_attempts_XP")))&&(yyGetBool(yyfgreater(ds_map_find_value(argument0,"stat_attempts_XP"),0)))){{gmlmrating=yyfplus(gmlmrating,ds_map_find_value(argument0,"stat_complete_XP"));gmlmrating=yyfminus(gmlmrating,yyfminus(__yy_gml_errCheck(ds_map_find_value(argument0,"stat_attempts_XP")),__yy_gml_errCheck(ds_map_find_value(argument0,"stat_complete_XP"))));};};break;}case 6:{gmlmrating=yyfplus(gmlmrating,yyftime(__yy_gml_errCheck(ds_map_find_value(argument0, "stat_tackles")),1.5));gmlmrating=yyfplus(gmlmrating,yyftime(__yy_gml_errCheck(ds_map_find_value(argument0,"stat_int")),2));gmlmrating=yyfplus(gmlmrating,yyftime(__yy_gml_errCheck(ds_map_find_value(argument0,"stat_sacks")),2));gmlmrating=yyfplus(gmlmrating,yyftime(__yy_gml_errCheck(ds_map_find_value(argument0,"stat_fumbles")),2));if(yyGetBool(ds_map_find_value(argument0,"stat_return_attempts"))){{gmlmrating=yyfplus(gmlmrating,yyfdivide(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(ds_map_find_value(argument0, "stat_return_yards")),__yy_gml_errCheck(ds_map_find_value(argument0,"stat_return_attempts")))),10));gmlmrating=yyfplus(gmlmrating,ds_map_find_value(argument0,"stat_return_tds"));};};break;}};if((yyGetBool(ds_map_exists(argument0,"kr")))&&(yyGetBool(ds_map_find_value(argument0,"kr")))){{if((yyGetBool(ds_map_exists(argument0,"backup")))&&(yyGetBool(ds_map_find_value(argument0,"backup")))){gmlmrating=yyfplus(gmlmrating,1);};};};var ___sw1434___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_matchlength; var ___swc1435___=-1;if(yyCompareVal(___sw1434___,(-1),g_GMLMathEpsilon,false)==0){___swc1435___=0;}else if(yyCompareVal(___sw1434___,0,g_GMLMathEpsilon,false)==0){___swc1435___=1;}else if(yyCompareVal(___sw1434___,1,g_GMLMathEpsilon,false)==0){___swc1435___=2;}switch(___swc1435___){case 0:{gmlmrating=yyftime(gmlmrating,1.33);break;}case 1:{break;}case 2:{gmlmrating=yyftime(gmlmrating,0.66);break;}};if(yyfgreaterequal(gmlmrating,10)){{if((yyGetBool(gml_Script_s_is_offensive_player(_inst,_other,argument0)))&&(yyGetBool(yyfgreater(ds_map_find_value(argument0, "stat_fumbles"),0)))){gmlmrating=9;};if(yyfequal(gmlpos,1)){{if(yyfgreater(ds_map_find_value(argument0,"stat_int"),0)){gmlmrating=9;};if(yyfgreater(ds_map_find_value(argument0,"stat_sacks"),0)){gmlmrating=9;};};}else {if(yyfequal(gmlpos,10)){{if(yyfgreater(ds_map_find_value(argument0,"stat_attempts"),ds_map_find_value(argument0,"stat_complete"))){gmlmrating=9;};};};};};};return clamp(round(gmlmrating),1,10);}}function gml_GlobalScript_s_reset_match_stats(_inst,_other){(_inst.gmls_reset_match_stats=__yy_method(_inst, gml_Script_s_reset_match_stats));}function gml_Script_s_reset_match_stats(_inst,_other,argument0){{gml_Script_slog(_inst,_other,"s_reset_match_stats");if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster,(-4))){{return;};};{var __yy__v1687=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1688 in __yy__v1687){if(!__yy__v1687.hasOwnProperty(__yy__v1688))continue;var __yy__v1689=__yy__v1687[__yy__v1688];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1689.gmlroster));(g_yyPrePostObject__=gmli, gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1689.gmlroster,gmli);ds_map_set(gmlpmap,"stat_attempts",0);ds_map_set(gmlpmap,"stat_complete",0);ds_map_set(gmlpmap,"stat_yards",0);ds_map_set(gmlpmap,"stat_longest",0);ds_map_set(gmlpmap,"stat_touchdowns",0);ds_map_set(gmlpmap,"stat_fumbles",0);ds_map_set(gmlpmap,"stat_int",0);ds_map_set(gmlpmap,"stat_sacks",0);ds_map_set(gmlpmap,"stat_tackles",0);ds_map_set(gmlpmap,"stat_rush_attempts", 0);ds_map_set(gmlpmap,"stat_rush_yards",0);ds_map_set(gmlpmap,"stat_rush_longest",0);ds_map_set(gmlpmap,"stat_rush_touchdowns",0);ds_map_set(gmlpmap,"stat_return_yards",0);ds_map_set(gmlpmap,"stat_return_tds",0);ds_map_set(gmlpmap,"stat_return_longest",0);ds_map_set(gmlpmap,"stat_return_attempts",0);if(yyfequal(ds_map_find_value(gmlpmap,"position"),10)){{ds_map_set(gmlpmap,"stat_attempts_XP",0);ds_map_set(gmlpmap,"stat_complete_XP",0);};};if(yyGetBool(argument0)){{ds_map_set(gmlpmap,"season_games", 0);ds_map_set(gmlpmap,"season_attempts",0);ds_map_set(gmlpmap,"season_complete",0);ds_map_set(gmlpmap,"season_yards",0);ds_map_set(gmlpmap,"season_longest",0);ds_map_set(gmlpmap,"season_touchdowns",0);ds_map_set(gmlpmap,"season_fumbles",0);ds_map_set(gmlpmap,"season_int",0);ds_map_set(gmlpmap,"season_sacks",0);ds_map_set(gmlpmap,"season_tackles",0);ds_map_set(gmlpmap,"season_rush_attempts",0);ds_map_set(gmlpmap,"season_rush_yards",0);ds_map_set(gmlpmap,"season_rush_longest",0);ds_map_set(gmlpmap, "season_rush_touchdowns",0);ds_map_set(gmlpmap,"season_return_yards",0);ds_map_set(gmlpmap,"season_return_tds",0);ds_map_set(gmlpmap,"season_return_longest",0);ds_map_set(gmlpmap,"season_return_attempts",0);if(yyfequal(ds_map_find_value(gmlpmap,"position"),10)){{ds_map_set(gmlpmap,"season_attempts_XP",0);ds_map_set(gmlpmap,"season_complete_XP",0);};};};};}};}}};}}function gml_GlobalScript_s_toxic_effect_on_morale(_inst,_other){(_inst.gmls_toxic_effect_on_morale=__yy_method(_inst,gml_Script_s_toxic_effect_on_morale)); }function gml_Script_s_toxic_effect_on_morale(_inst,_other){{{var __yy__v1690=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1691 in __yy__v1690){if(!__yy__v1690.hasOwnProperty(__yy__v1691))continue;var __yy__v1692=__yy__v1690[__yy__v1691];{var gmlof_coach=gml_Script_s_get_staff(__yy__v1692,_inst,102);var gmldf_coach=gml_Script_s_get_staff(__yy__v1692,_inst,101);var gmlof_negotiator=false;var gmldf_negotiator=false;if(yyfequal(ds_map_find_value(gmlof_coach,"trait"),4)){gmlof_negotiator=true;};if(yyfequal(ds_map_find_value(gmldf_coach, "trait"),4)){gmldf_negotiator=true;};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1692.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1692.gmlroster,gmli);if(yyflessequal(ds_map_find_value(gmlpmap,"attitude"),15)){{if(yyGetBool(gml_Script_s_is_offensive_player(__yy__v1692,_inst,gmlpmap))){{if(!yyGetBool(gmlof_negotiator)){{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1692.gmlroster)); (g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap2=ds_list_find_value(__yy__v1692.gmlroster,gmli);if(yyfgreater(ds_map_find_value(gmlpmap2,"attitude"),30)){ds_map_set(gmlpmap2,"attitude",yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlpmap2,"attitude")),__yy_gml_errCheck(irandom(3))));};}};};};};}else {{if(!yyGetBool(gmldf_negotiator)){{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1692.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli), g_yyPrePostObject__)){{var gmlpmap2=ds_list_find_value(__yy__v1692.gmlroster,gmli);if(yyfgreater(ds_map_find_value(gmlpmap2,"attitude"),30)){ds_map_set(gmlpmap2,"attitude",yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlpmap2,"attitude")),__yy_gml_errCheck(irandom(3))));};}};};};};};};};}};}}};}}function gml_GlobalScript_s_match_rating_effect_on_morale(_inst,_other){(_inst.gmls_match_rating_effect_on_morale=__yy_method(_inst,gml_Script_s_match_rating_effect_on_morale));}function gml_Script_s_match_rating_effect_on_morale(_inst, _other){{{var __yy__v1693=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1694 in __yy__v1693){if(!__yy__v1693.hasOwnProperty(__yy__v1694))continue;var __yy__v1695=__yy__v1693[__yy__v1694];{gml_Script_slog(__yy__v1695,_inst,"s_match_rating_effect_on_morale");var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1695.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1695.gmlroster,gmli);var gmlrat=gml_Script_s_get_match_rating(__yy__v1695, _inst,gmlpmap);if((yyGetBool(ds_map_exists(gmlpmap,"backup")))&&(yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"backup"),true)))){{ds_map_set(gmlpmap,"attitude",clamp(yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"attitude")),5),1,100));};}else {if((yyGetBool(yyfgreater(ds_map_find_value(gmlpmap,"condition"),0)))&&(yyGetBool(!yyGetBool(gml_Script_s_player_benched(__yy__v1695,_inst,gmlpmap))))){{gml_Script_slog(__yy__v1695,_inst,yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname")), " Rating = "),__yy_gml_errCheck(string(gmlrat))));gml_Script_slog(__yy__v1695,_inst,yyfplus("Attitude was = ",__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"attitude")))));var gmlamt=lerp((-5),2,yyftime(__yy_gml_errCheck(gmlrat),0.1));gml_Script_slog(__yy__v1695,_inst,yyfplus("Amt = ",__yy_gml_errCheck(string(gmlamt))));ds_map_set(gmlpmap,"attitude",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"attitude")),__yy_gml_errCheck(gmlamt)),1,100));gml_Script_slog(__yy__v1695,_inst,yyfplus("Attitude now = ", __yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"attitude")))));};};};}};}}};}}function gml_GlobalScript_s_training_regime_effect_on_morale(_inst,_other){(_inst.gmls_training_regime_effect_on_morale=__yy_method(_inst,gml_Script_s_training_regime_effect_on_morale));}function gml_Script_s_training_regime_effect_on_morale(_inst,_other){{{var __yy__v1696=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1697 in __yy__v1696){if(!__yy__v1696.hasOwnProperty(__yy__v1697))continue;var __yy__v1698=__yy__v1696[__yy__v1697]; {gml_Script_slog(__yy__v1698,_inst,"s_training_regime_effect_on_morale");var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1698.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1698.gmlroster,gmli);var gmltrainingreg=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltraining_reg_df;if(yyGetBool(gml_Script_s_is_offensive_player(__yy__v1698,_inst,gmlpmap))){gmltrainingreg=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltraining_reg_of; };if((yyGetBool(yyfgreater(ds_map_find_value(gmlpmap,"condition"),0)))&&(yyGetBool(!yyGetBool(gml_Script_s_player_benched(__yy__v1698,_inst,gmlpmap))))){{gml_Script_slog(__yy__v1698,_inst,yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname")),"Attitude was = "),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"attitude")))));var gmlamt=0;var ___sw1438___=gmltrainingreg;var ___swc1439___=-1;if(yyCompareVal(___sw1438___,1,g_GMLMathEpsilon,false)==0){___swc1439___=0;}else if(yyCompareVal(___sw1438___, 2,g_GMLMathEpsilon,false)==0){___swc1439___=1;}else if(yyCompareVal(___sw1438___,3,g_GMLMathEpsilon,false)==0){___swc1439___=2;}switch(___swc1439___){case 0:{gmlamt=irandom(2);}case 1:{break;}case 2:{gmlamt=irandom_range((-1),(-3));}};gml_Script_slog(__yy__v1698,_inst,yyfplus("Amt = ",__yy_gml_errCheck(string(gmlamt))));ds_map_set(gmlpmap,"attitude",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"attitude")),__yy_gml_errCheck(gmlamt)),1,100));gml_Script_slog(__yy__v1698,_inst,yyfplus("Attitude now = ", __yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"attitude")))));};};}};}}};}}function gml_GlobalScript_s_injury_effect_on_attitude(_inst,_other){(_inst.gmls_injury_effect_on_attitude=__yy_method(_inst,gml_Script_s_injury_effect_on_attitude));}function gml_Script_s_injury_effect_on_attitude(_inst,_other){{{var __yy__v1699=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1700 in __yy__v1699){if(!__yy__v1699.hasOwnProperty(__yy__v1700))continue;var __yy__v1701=__yy__v1699[__yy__v1700];{var gmloc=gml_Script_s_get_staff(__yy__v1701, _inst,102);var gmldc=gml_Script_s_get_staff(__yy__v1701,_inst,101);var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1701.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1701.gmlroster,gmli);if((yyGetBool(yyfequal(ds_map_find_value(gmloc,"trait"),8)))&&(yyGetBool(gml_Script_s_is_offensive_player(__yy__v1701,_inst,gmlpmap)))){continue;}else {if((yyGetBool(yyfequal(ds_map_find_value(gmldc,"trait"), 8)))&&(yyGetBool(!yyGetBool(gml_Script_s_is_offensive_player(__yy__v1701,_inst,gmlpmap))))){continue;};};if((yyGetBool(yyflessequal(ds_map_find_value(gmlpmap,"condition"),(-1))))&&(yyGetBool(yyfgreater(ds_map_find_value(gmlpmap,"attitude"),60)))){ds_map_set(gmlpmap,"attitude",clamp(yyfplus(yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"attitude")),1),__yy_gml_errCheck(irandom(5))),1,100));};}};}}};}}function gml_GlobalScript_s_rehab_effect(_inst,_other,argument0,argument1){(_inst.gmls_rehab_effect=__yy_method(_inst, gml_Script_s_rehab_effect));}function gml_Script_s_rehab_effect(_inst,_other,argument0,argument1){{var gmlamt=argument0;var gmlupdate_injuries=argument1;{var __yy__v1702=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1703 in __yy__v1702){if(!__yy__v1702.hasOwnProperty(__yy__v1703))continue;var __yy__v1704=__yy__v1702[__yy__v1703];{var gmloc=gml_Script_s_get_staff(__yy__v1704,_inst,102);var gmldc=gml_Script_s_get_staff(__yy__v1704,_inst,101);var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1704.gmlroster)); (g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1704.gmlroster,gmli);var gmlcon=ds_map_find_value(gmlpmap,"condition");if(yyfless(gmlcon,0)){{if((yyGetBool(gmlupdate_injuries))&&(yyGetBool(yyfnotequal(ds_map_find_value(gmlpmap,"injury_week"),__yy__v1704.gmlweek)))){{gmlcon=yyfplus(gmlcon,1);if(yyfequal(gmlcon,0)){{ds_map_set(gmlpmap,"injury_week",0);gmlcon=irandom_range(85,100);var gmlmsg=gml_Script_s_str(__yy__v1704, _inst,"news_PlayerRecovered");gmlmsg=gml_Script_s_parse_player_message(__yy__v1704,_inst,gmlmsg,gmlpmap);gml_Script_s_add_news(__yy__v1704,_inst,gmlmsg);};};ds_map_set(gmlpmap,"condition",round(gmlcon));};};};}else {{if(yyGetBool(gml_Script_s_player_benched(__yy__v1704,_inst,gmlpmap))){{gmlcon=yyfplus(gmlcon,yyftime(__yy_gml_errCheck(gmlamt),2));};}else {{gmlcon=yyfplus(gmlcon,gmlamt);var gmltrainingreg=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltraining_reg_df;if(yyGetBool(gml_Script_s_is_offensive_player(__yy__v1704, _inst,gmlpmap))){gmltrainingreg=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltraining_reg_of;};if(yyfgreater(gmlamt,10)){{if(yyfequal(gmltrainingreg,1)){gmlcon=yyfplus(gmlcon,10);}else {if(yyfequal(gmltrainingreg,3)){gmlcon=yyfminus(gmlcon,10);};};};};};};if((yyGetBool(yyfequal(ds_map_find_value(gmloc,"trait"),6)))&&(yyGetBool(gml_Script_s_is_offensive_player(__yy__v1704,_inst,gmlpmap)))){gmlcon=yyfplus(gmlcon,5);}else {if((yyGetBool(yyfequal(ds_map_find_value(gmldc,"trait"),6)))&&(yyGetBool(!yyGetBool(gml_Script_s_is_offensive_player(__yy__v1704, _inst,gmlpmap))))){gmlcon=yyfplus(gmlcon,5);};};ds_map_set(gmlpmap,"condition",round(clamp(gmlcon,1,100)));};};}};}}};}}function gml_GlobalScript_s_add_xp_gain_all(_inst,_other){(_inst.gmls_add_xp_gain_all=__yy_method(_inst,gml_Script_s_add_xp_gain_all));}function gml_Script_s_add_xp_gain_all(_inst,_other,argument0,argument1){{{var __yy__v1705=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1706 in __yy__v1705){if(!__yy__v1705.hasOwnProperty(__yy__v1706))continue;var __yy__v1707=__yy__v1705[__yy__v1706]; {var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1707.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1707.gmlroster,gmli);var gmlcon=ds_map_find_value(gmlpmap,"condition");if((yyGetBool(argument1))||(yyGetBool(yyfgreater(gmlcon,0)))){ds_map_set(gmlpmap,"xp_gain",round(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"xp_gain")),__yy_gml_errCheck(argument0))));};}};}}};}}function gml_GlobalScript_s_check_for_injury(_inst, _other,argument0){(_inst.gmls_check_for_injury=__yy_method(_inst,gml_Script_s_check_for_injury));}function gml_Script_s_check_for_injury(_inst,_other,argument0){{var gmlpmap=argument0;if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear,1)){return false;};if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,1)){return false;};if(yyfgreaterequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfminus(__yy_gml_errCheck(gml_Script_s_get_week_superbowl(_inst,_other)),1))){return false; };if(yyflessequal(ds_map_find_value(gmlpmap,"condition"),(-1))){return false;};if(yyfless(gml_Script_s_count_remaining_fixtures(_inst,_other),2)){return false;};var gmltrainingreg=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltraining_reg_df;if(yyGetBool(gml_Script_s_is_offensive_player(_inst,_other,gmlpmap))){gmltrainingreg=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltraining_reg_of;};if((yyGetBool(yyfequal(gmltrainingreg,1)))&&(yyGetBool(irandom(9)))){return false;};if((yyGetBool(yyfequal(gmltrainingreg, 2)))&&(yyGetBool(irandom(4)))){return false;};if(yyfgreater(yyfplus(5,__yy_gml_errCheck(irandom(gml_Script_s_max_age_qb_internal(_inst,_other)))),ds_map_find_value(gmlpmap,"age"))){return false;};var gmlsize=ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster);if(yyfless(gmlsize,2)){return false;};var gmlnum_inj=gml_Script_s_count_injuries(_inst,_other);var gmlinj_weeks=gml_Script_s_count_injuries_weeks(_inst,_other);if(yyfgreater(gmlnum_inj,2)){return false;};if(yyfless(yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlop_difficulty,3)){{if((yyGetBool(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfacility_rehab,6)))&&(yyGetBool(yyfgreater(gmlnum_inj,1)))){return false;};if((yyGetBool(yyfless(gmlsize,7)))&&(yyGetBool(yyfgreater(gmlnum_inj,1)))){return false;};};};var gmlmax_weeks=yyfminus(11,__yy_gml_errCheck(floor(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfacility_rehab),0.5))));if(yyfgreaterequal(gmlinj_weeks,gmlmax_weeks)){return false;};gmlmax_weeks=clamp(yyfminus(__yy_gml_errCheck(gmlmax_weeks), __yy_gml_errCheck(gmlinj_weeks)),1,5);var gmlinj=0;var gmlcon=ds_map_find_value(gmlpmap,"condition");var gmlfac=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfacility_rehab;var gmlchance_exh=4;var gmlchance_tir=8;var gmlchance_ok=12;if(yyflessequal(gmlcon,20)){{if(!yyGetBool(irandom(gmlchance_exh))){gmlinj=irandom_range(1,gmlmax_weeks);};};}else {if(yyflessequal(gmlcon,40)){{if(!yyGetBool(irandom(gmlchance_tir))){gmlinj=irandom_range(1,yyfminus(__yy_gml_errCheck(gmlmax_weeks),1));};};}else {if(!yyGetBool(irandom(gmlchance_ok))){ gmlinj=yyfplus(1,__yy_gml_errCheck(irandom(1)));};};};if(yyflessequal(gmlinj,0)){return false;};if(yyfgreater(ds_map_find_value(gmlpmap,"age"),29)){gmlinj=yyfplus(gmlinj,1);};gmlinj=yyfminus(gmlinj,irandom(round(yyftime(__yy_gml_errCheck(gmlfac),0.4))));gmlinj=clamp(gmlinj,1,10);if((yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"position"),1)))&&(yyGetBool(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear,3)))){gmlinj=min(gmlinj,2);};var gmlmsg=gml_Script_s_str(_inst,_other,"news_PlayerInjured"); if(yyfequal(gmlinj,1)){gmlmsg=gml_Script_s_str(_inst,_other,"news_PlayerInjured1");};gmlmsg=gml_Script_s_parse_player_message(_inst,_other,gmlmsg,gmlpmap);gmlmsg=string_replace(gmlmsg,"$num",gmlinj);gml_Script_s_add_news(_inst,_other,gmlmsg);ds_map_set(gmlpmap,"injury_week",yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek);ds_map_set(gmlpmap,"condition",__yy_gml_errCheck(-__yy_gml_errCheck(gmlinj)));return true;}}function gml_GlobalScript_s_count_injuries(_inst,_other){(_inst.gmls_count_injuries=__yy_method(_inst, gml_Script_s_count_injuries));}function gml_Script_s_count_injuries(_inst,_other){{{var __yy__v1708=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1709 in __yy__v1708){if(!__yy__v1708.hasOwnProperty(__yy__v1709))continue;var __yy__v1710=__yy__v1708[__yy__v1709];{var gmlcount=0;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1710.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1710.gmlroster, gmli);if(yyflessequal(ds_map_find_value(gmlpmap,"condition"),(-1))){(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__);};}};return gmlcount;}}};}}function gml_GlobalScript_s_count_injuries_weeks(_inst,_other){(_inst.gmls_count_injuries_weeks=__yy_method(_inst,gml_Script_s_count_injuries_weeks));}function gml_Script_s_count_injuries_weeks(_inst,_other){{{var __yy__v1711=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1712 in __yy__v1711){ if(!__yy__v1711.hasOwnProperty(__yy__v1712))continue;var __yy__v1713=__yy__v1711[__yy__v1712];{var gmlcount=0;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1713.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1713.gmlroster,gmli);if(yyflessequal(ds_map_find_value(gmlpmap,"condition"),(-1))){gmlcount=yyfplus(gmlcount,abs(ds_map_find_value(gmlpmap,"condition")));};}};return gmlcount;}}};}}function gml_GlobalScript_s_college_reputation(_inst, _other){(_inst.gmls_get_team_offense_with_reputation_boost=__yy_method(_inst,gml_Script_s_get_team_offense_with_reputation_boost));(_inst.gmls_get_team_defense_with_reputation_boost=__yy_method(_inst,gml_Script_s_get_team_defense_with_reputation_boost));(_inst.gmls_get_strength_with_reputation_boost=__yy_method(_inst,gml_Script_s_get_strength_with_reputation_boost));(_inst.gmls_get_reputation_points=__yy_method(_inst,gml_Script_s_get_reputation_points));(_inst.gmls_update_fixture_teams_reputation=__yy_method(_inst, gml_Script_s_update_fixture_teams_reputation));(_inst.gmls_has_reputation_point=__yy_method(_inst,gml_Script_s_has_reputation_point));(_inst.gmls_update_all_teams_reputation=__yy_method(_inst,gml_Script_s_update_all_teams_reputation));(_inst.gmls_update_team_reputation_flag=__yy_method(_inst,gml_Script_s_update_team_reputation_flag));(_inst.gmls_update_team_reputation=__yy_method(_inst,gml_Script_s_update_team_reputation));(_inst.gmls_get_team_reputation_data=__yy_method(_inst,gml_Script_s_get_team_reputation_data)); (_inst.gmls_set_team_reputation_data=__yy_method(_inst,gml_Script_s_set_team_reputation_data));(_inst.gmls_convert_reputation_string_to_data=__yy_method(_inst,gml_Script_s_convert_reputation_string_to_data));(_inst.gmls_convert_reputation_data_to_string=__yy_method(_inst,gml_Script_s_convert_reputation_data_to_string));(_inst.gmls_create_reputation_data=__yy_method(_inst,gml_Script_s_create_reputation_data));(_inst.gmls_update_reputation_data=__yy_method(_inst,gml_Script_s_update_reputation_data)); (_inst.gmls_is_reputation_string_updated=__yy_method(_inst,gml_Script_s_is_reputation_string_updated));(_inst.gmls_is_reputation_data_updated=__yy_method(_inst,gml_Script_s_is_reputation_data_updated));(_inst.gmls_get_reputation_string_points=__yy_method(_inst,gml_Script_s_get_reputation_string_points));(_inst.gmls_get_reputation_data_points=__yy_method(_inst,gml_Script_s_get_reputation_data_points));(_inst.gmls_reputation_data_test=__yy_method(_inst,gml_Script_s_reputation_data_test));}function gml_Script_s_get_team_offense_with_reputation_boost(_inst, _other,argument0){{return gml_Script_s_get_strength_with_reputation_boost(_inst,_other,ds_map_find_value(argument0,"offense"),argument0);}}function gml_Script_s_get_team_defense_with_reputation_boost(_inst,_other,argument0){{return gml_Script_s_get_strength_with_reputation_boost(_inst,_other,ds_map_find_value(argument0,"defense"),argument0);}}function gml_Script_s_get_strength_with_reputation_boost(_inst,_other,argument0,argument1){{if(yyfequal(ds_map_find_value(argument1,"uid"),yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlmyteam_id)){return real(argument0);};return clamp(yyfplus(__yy_gml_errCheck(real(argument0)),__yy_gml_errCheck(gml_Script_s_get_reputation_points(_inst,_other,argument1))),1,10);}}function gml_Script_s_get_reputation_points(_inst,_other,argument0){{if((yyGetBool(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))))||(yyGetBool(yyfequal(argument0,(-4))))){return 0;};return gml_Script_s_get_reputation_string_points(_inst,_other,ds_map_find_value(argument0,"reputation"));}}function gml_Script_s_update_fixture_teams_reputation(_inst, _other,argument0){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){return;};if(yyfequal(argument0,(-4))){return;};var gmlwinner_id=gml_Script_s_get_fix_winner_id(_inst,_other,argument0);if(yyfequal(gmlwinner_id,(-1))){return;};var gmlaway_team_id=real(ds_map_find_value(argument0,"away_team"));var gmlhome_team_id=real(ds_map_find_value(argument0,"home_team"));gml_Script_s_update_team_reputation_flag(_inst,_other,ds_map_find_value(argument0,"reputation"),gml_Script_s_get_team_by_id(_inst,_other, gmlaway_team_id),yyfequal(gmlaway_team_id,gmlwinner_id));gml_Script_s_update_team_reputation_flag(_inst,_other,ds_map_find_value(argument0,"reputation"),gml_Script_s_get_team_by_id(_inst,_other,gmlhome_team_id),yyfequal(gmlhome_team_id,gmlwinner_id));}}function gml_Script_s_has_reputation_point(_inst,_other,argument0){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){return false;};var gmlrep_data=gml_Script_s_convert_reputation_string_to_data(_inst,_other,ds_map_find_value(argument0,"reputation")); if(yyfequal(gmlrep_data,(-4))){return false;};return yyInst(_inst,_other,gmlrep_data).gmlhystory[__yy_gml_array_check_index(3,yyInst(_inst,_other,gmlrep_data).gmlhystory)];}}function gml_Script_s_update_all_teams_reputation(_inst,_other,argument0){{{var __yy__v1714=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1715 in __yy__v1714){if(!__yy__v1714.hasOwnProperty(__yy__v1715))continue;var __yy__v1716=__yy__v1714[__yy__v1715];var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1716.gmlteamlist));(g_yyPrePostObject__=gmli, gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){gml_Script_s_update_team_reputation(__yy__v1716,_inst,ds_list_find_value(__yy__v1716.gmlteamlist,gmli),argument0,0)};}};}}function gml_Script_s_update_team_reputation_flag(_inst,_other,argument0,argument1,argument2){{var gmlrep_code=(yyGetBool(argument2)?"w":"l");if(yyfnotequal(string_pos(gmlrep_code,argument0),0)){{gml_Script_s_update_team_reputation(_inst,_other,argument1,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlyear),1),1);};};}}function gml_Script_s_update_team_reputation(_inst,_other,argument0,argument1,argument2){{var gmlrep_data=gml_Script_s_get_team_reputation_data(_inst,_other,argument0);if(yyfequal(gmlrep_data,(-4))){{gml_Script_slogf(_inst,_other,"Invalid team %1 reputation, can't update",ds_map_find_value(argument0,"uid"));return;};};if(yyGetBool(gml_Script_s_update_reputation_data(_inst,_other,gmlrep_data,argument1,argument2))){{gml_Script_s_set_team_reputation_data(_inst, _other,argument0,gmlrep_data);gml_Script_slogf(_inst,_other,"team %1 reputation updated: %2",ds_map_find_value(argument0,"uid"),ds_map_find_value(argument0,"reputation"));return;};};gml_Script_slogf(_inst,_other,"team %1 reputation not updated: %2",ds_map_find_value(argument0,"uid"),ds_map_find_value(argument0,"reputation"));}}function gml_Script_s_get_team_reputation_data(_inst,_other,argument0){{var gmlrep_data=gml_Script_s_convert_reputation_string_to_data(_inst,_other,ds_map_find_value(argument0, "reputation"));gml_Script_slog(_inst,_other,gmlrep_data);return gmlrep_data;}}function gml_Script_s_set_team_reputation_data(_inst,_other,argument0,argument1){{var gmlrep_data_str=gml_Script_s_convert_reputation_data_to_string(_inst,_other,argument1);gml_Script_slog(_inst,_other,gmlrep_data_str);ds_map_set(argument0,"reputation",gmlrep_data_str);}}function gml_Script_s_convert_reputation_string_to_data(_inst,_other,argument0){{var gmlrep_data=gml_Script_s_create_reputation_data(_inst,_other);if((yyGetBool(is_string(argument0)))&&(yyGetBool(yyfgreater(string_length(argument0), 0)))){{var gmlrd=string_split(argument0,":");if(yyfequal(gmlrd[__yy_gml_array_check_index(0,gmlrd)],"y")){{yyInst(_inst,_other,gmlrep_data).gmlyear=real(gmlrd[__yy_gml_array_check_index(1,gmlrd)]);var gmli=0;for(;yyfless(gmli,4);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){yyInst(_inst,_other,gmlrep_data).gmlhistory=__yy_gml_array_check(yyInst(_inst,_other,gmlrep_data).gmlhistory,1229317608);yyInst(_inst,_other,gmlrep_data).gmlhistory[__yy_gml_array_check_index_set(gmli)]=bool(string_char_at(gmlrd[__yy_gml_array_check_index(2, gmlrd)],yyfplus(__yy_gml_errCheck(gmli),1)))};return gmlrep_data;};};};};return(-4);}}function gml_Script_s_convert_reputation_data_to_string(_inst,_other,argument0){{return gml_Script_s_strfl(_inst,_other,"y:%1:%2%3%4%5",yyInst(_inst,_other,argument0).gmlyear,(yyGetBool(yyInst(_inst,_other,argument0).gmlhistory[__yy_gml_array_check_index(0,yyInst(_inst,_other,argument0).gmlhistory)])?"1":"0"),(yyGetBool(yyInst(_inst,_other,argument0).gmlhistory[__yy_gml_array_check_index(1,yyInst(_inst,_other,argument0).gmlhistory)])?"1":"0"), (yyGetBool(yyInst(_inst,_other,argument0).gmlhistory[__yy_gml_array_check_index(2,yyInst(_inst,_other,argument0).gmlhistory)])?"1":"0"),(yyGetBool(yyInst(_inst,_other,argument0).gmlhistory[__yy_gml_array_check_index(3,yyInst(_inst,_other,argument0).gmlhistory)])?"1":"0"));}}function gml_Script____struct___181_s_create_reputation_data_gml_GlobalScript_s_college_reputation(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___181_s_create_reputation_data_gml_GlobalScript_s_college_reputation"; }if(gml_Script____struct___181_s_create_reputation_data_gml_GlobalScript_s_college_reputation.prototype.__type===undefined){gml_Script____struct___181_s_create_reputation_data_gml_GlobalScript_s_college_reputation.prototype.__type="gml_Script____struct___181_s_create_reputation_data_gml_GlobalScript_s_college_reputation";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___181_s_create_reputation_data_gml_GlobalScript_s_college_reputation.prototype);{var $$args=Array.prototype.slice.call(arguments); {_inst.gmlyear=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlhistory=__yy_gml_array_create([$$args[__yy_gml_array_check_index(2+(1),$$args)],$$args[__yy_gml_array_check_index(2+(2),$$args)],$$args[__yy_gml_array_check_index(2+(3),$$args)],$$args[__yy_gml_array_check_index(2+(4),$$args)]]);}}}}function gml_Script_s_create_reputation_data(_inst,_other,argument0,argument1,argument2,argument3,argument4){{if(yyfequal(argument0,_inst.undefined)){argument0=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear; };if(yyfequal(argument1,_inst.undefined)){argument1=0;};if(yyfequal(argument2,_inst.undefined)){argument2=0;};if(yyfequal(argument3,_inst.undefined)){argument3=0;};if(yyfequal(argument4,_inst.undefined)){argument4=0;};}{return __yy_gml_object_create(_inst,(_inst.gml___struct___181=__yy_method(_inst,gml_Script____struct___181_s_create_reputation_data_gml_GlobalScript_s_college_reputation)),argument0,argument1,argument2,argument3,argument4);}}function gml_Script_s_update_reputation_data(_inst,_other, argument0,argument1,argument2){{if(yyfequal(yyInst(_inst,_other,argument0).gmlyear,argument1)){return false;};yyInst(_inst,_other,argument0).gmlyear=argument1;array_delete(yyInst(_inst,_other,argument0).gmlhistory,0,1);array_push(yyInst(_inst,_other,argument0).gmlhistory,argument2);return true;}}function gml_Script_s_is_reputation_string_updated(_inst,_other,argument0){{var gml_rep_data=gml_Script_s_convert_reputation_string_to_data(_inst,_other,argument0);if(yyfnotequal(gml_rep_data,(-4))){{return yyfgreater(yyInst(_inst, _other,gml_rep_data).gmlyear,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear);};};return false;}}function gml_Script_s_is_reputation_data_updated(_inst,_other,argument0){{return yyfgreater(yyInst(_inst,_other,argument0).gmlyear,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear);}}function gml_Script_s_get_reputation_string_points(_inst,_other,argument0){{return gml_Script_s_get_reputation_data_points(_inst,_other,gml_Script_s_convert_reputation_string_to_data(_inst,_other,argument0));}}function gml_Script_s_get_reputation_data_points(_inst, _other,argument0){{if(yyfequal(argument0,(-4))){return 0;};return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,argument0).gmlhistory[__yy_gml_array_check_index(0,yyInst(_inst,_other,argument0).gmlhistory)]),__yy_gml_errCheck(yyInst(_inst,_other,argument0).gmlhistory[__yy_gml_array_check_index(1,yyInst(_inst,_other,argument0).gmlhistory)])),__yy_gml_errCheck(yyInst(_inst,_other,argument0).gmlhistory[__yy_gml_array_check_index(2,yyInst(_inst,_other,argument0).gmlhistory)])),__yy_gml_errCheck(yyInst(_inst, _other,argument0).gmlhistory[__yy_gml_array_check_index(3,yyInst(_inst,_other,argument0).gmlhistory)]));}}function gml_Script_s_reputation_data_test(_inst,_other){{var gmlrs="y:2:0110";var gmlrs2="y:4:0111";var gmlrd=gml_Script_s_create_reputation_data(_inst,_other,3,0,1,0,1);gml_Script_slogf(_inst,_other,"\n*** reputation data test");gml_Script_slogf(_inst,_other,"\nstring to data '%1'",gmlrs);gml_Script_slog(_inst,_other,gml_Script_s_convert_reputation_string_to_data(_inst,_other,gmlrs));gml_Script_slogf(_inst, _other,"\ndata to string %1",gmlrd);gml_Script_slog(_inst,_other,gml_Script_s_convert_reputation_data_to_string(_inst,_other,gmlrd));gml_Script_slogf(_inst,_other,"\nupdate data %1 to year %2 with %3",gmlrd,4,1);gml_Script_slogf(_inst,_other,"reputation data updated: %1",gml_Script_s_update_reputation_data(_inst,_other,gmlrd,4,1));gml_Script_slogf(_inst,_other,"result: %1",gmlrd);gml_Script_slogf(_inst,_other,"\nis string %1 updated: %2 (current year: %3)",gmlrs,gml_Script_s_is_reputation_string_updated(_inst, _other,gmlrs),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear);gml_Script_slogf(_inst,_other,"is string %1 updated: %2 (current year: %3)",gmlrs2,gml_Script_s_is_reputation_string_updated(_inst,_other,gmlrs2),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear);gml_Script_slogf(_inst,_other,"%1 reputation points: %2 ",gmlrs2,gml_Script_s_get_reputation_string_points(_inst,_other,gmlrs2));gml_Script_slogf(_inst,_other,"%1 reputation points: %2 ",gmlrd,gml_Script_s_get_reputation_data_points(_inst, _other,gmlrd));}}function gml_GlobalScript_s_choose_face(_inst,_other){(_inst.gmls_choose_face=__yy_method(_inst,gml_Script_s_choose_face));(_inst.gmls_face_from_set=__yy_method(_inst,gml_Script_s_face_from_set));(_inst.gmls_face_from_set_direct=__yy_method(_inst,gml_Script_s_face_from_set_direct));}function gml_Script_s_choose_face(_inst,_other,argument0,argument1){{var gmlgw=ds_grid_width(argument1);var gmlgh=ds_grid_height(argument1);var gmlsx=irandom(yyfminus(__yy_gml_errCheck(gmlgw),1));var gmlsy=irandom(yyfminus(__yy_gml_errCheck(gmlgh), 1));if(yyfequal(ds_grid_get_min(argument1,0,0,gmlgw,gmlgh),1)){{ds_grid_clear(argument1,0);{var __yy__v1717=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1718 in __yy__v1717){if(!__yy__v1717.hasOwnProperty(__yy__v1718))continue;var __yy__v1719=__yy__v1717[__yy__v1718];{if((yyGetBool(yyfequal(argument1,__yy__v1719.gmlface_grid_C)))&&(yyGetBool(yyfgreaterequal(__yy__v1719.gmlmyface_x,0)))&&(yyGetBool(yyfgreaterequal(__yy__v1719.gmlmyface_y,0)))){ds_grid_set(argument1,__yy__v1719.gmlmyface_x,__yy__v1719.gmlmyface_y, 1);};}}};};};var gmlfx=gmlsx;for(;yyfless(gmlfx,ds_grid_width(argument1));(g_yyPrePostObject__=gmlfx,gmlfx=(g_yyPrePostObject__ instanceof Long?gmlfx.add(1):++gmlfx),g_yyPrePostObject__)){{var gmlfy=gmlsy;for(;yyfless(gmlfy,ds_grid_height(argument1));(g_yyPrePostObject__=gmlfy,gmlfy=(g_yyPrePostObject__ instanceof Long?gmlfy.add(1):++gmlfy),g_yyPrePostObject__)){{if(yyfequal(ds_grid_get(argument1,gmlfx,gmlfy),0)){{ds_grid_set(argument1,gmlfx,gmlfy,1);ds_map_set(argument0,"face_x",gmlfx);ds_map_set(argument0, "face_y",gmlfy);return argument0;};};}};}};var gmlfx=0;for(;yyfless(gmlfx,gmlgw);(g_yyPrePostObject__=gmlfx,gmlfx=(g_yyPrePostObject__ instanceof Long?gmlfx.add(1):++gmlfx),g_yyPrePostObject__)){{var gmlfy=0;for(;yyfless(gmlfy,gmlgh);(g_yyPrePostObject__=gmlfy,gmlfy=(g_yyPrePostObject__ instanceof Long?gmlfy.add(1):++gmlfy),g_yyPrePostObject__)){{if(yyfequal(ds_grid_get(argument1,gmlfx,gmlfy),0)){{ds_grid_set(argument1,gmlfx,gmlfy,1);ds_map_set(argument0,"face_x",gmlfx);ds_map_set(argument0,"face_y",gmlfy); return argument0;};};}};}};gml_Script_slog(_inst,_other,yyfplus(__yy_gml_errCheck(ds_map_find_value(argument0,"lname"))," no face!"));}}function gml_Script_s_face_from_set(_inst,_other,argument0,argument1){{if(yyfequal(argument1,(-4))){{return argument0;};};if(!yyGetBool(ds_map_exists(argument1,"face_set"))){{return argument0;};};var gmlfs=ds_map_find_value(argument1,"face_set");var ___sw1444___=argument0;var ___swc1445___=-1;if(yyCompareVal(___sw1444___,YYASSET_REF(0x010000C6),g_GMLMathEpsilon,false)==0){ ___swc1445___=0;}else if(yyCompareVal(___sw1444___,YYASSET_REF(0x010000C8),g_GMLMathEpsilon,false)==0){___swc1445___=1;}else if(yyCompareVal(___sw1444___,YYASSET_REF(0x010000C9),g_GMLMathEpsilon,false)==0){___swc1445___=2;}else if(yyCompareVal(___sw1444___,YYASSET_REF(0x010000CA),g_GMLMathEpsilon,false)==0){___swc1445___=3;}else if(yyCompareVal(___sw1444___,YYASSET_REF(0x010000CB),g_GMLMathEpsilon,false)==0){___swc1445___=4;}else if(yyCompareVal(___sw1444___,YYASSET_REF(0x010000CC),g_GMLMathEpsilon,false)==0){ ___swc1445___=5;}else if(yyCompareVal(___sw1444___,YYASSET_REF(0x010000CD),g_GMLMathEpsilon,false)==0){___swc1445___=6;}else if(yyCompareVal(___sw1444___,YYASSET_REF(0x010000CE),g_GMLMathEpsilon,false)==0){___swc1445___=7;}else if(yyCompareVal(___sw1444___,YYASSET_REF(0x010000CF),g_GMLMathEpsilon,false)==0){___swc1445___=8;}else if(yyCompareVal(___sw1444___,YYASSET_REF(0x010000D0),g_GMLMathEpsilon,false)==0){___swc1445___=9;}else if(yyCompareVal(___sw1444___,YYASSET_REF(0x010000D1),g_GMLMathEpsilon,false)==0){ ___swc1445___=10;}else if(yyCompareVal(___sw1444___,YYASSET_REF(0x010000D2),g_GMLMathEpsilon,false)==0){___swc1445___=11;}switch(___swc1445___){case 0:{{return(yyfequal(gmlfs,0)?YYASSET_REF(0x010000C6):(yyfequal(gmlfs,1)?YYASSET_REF(0x01000165):YYASSET_REF(0x01000183)));};}case 1:{{return(yyfequal(gmlfs,0)?YYASSET_REF(0x010000C8):(yyfequal(gmlfs,1)?YYASSET_REF(0x01000180):YYASSET_REF(0x01000021)));};}case 2:{{return(yyfequal(gmlfs,0)?YYASSET_REF(0x010000C9):(yyfequal(gmlfs,1)?YYASSET_REF(0x01000152):YYASSET_REF(0x010000F7))); };}case 3:{{return(yyfequal(gmlfs,0)?YYASSET_REF(0x010000CA):(yyfequal(gmlfs,1)?YYASSET_REF(0x010000E4):YYASSET_REF(0x01000079)));};}case 4:{{return(yyfequal(gmlfs,0)?YYASSET_REF(0x010000CB):(yyfequal(gmlfs,1)?YYASSET_REF(0x0100013F):YYASSET_REF(0x01000110)));};}case 5:{{return(yyfequal(gmlfs,0)?YYASSET_REF(0x010000CC):(yyfequal(gmlfs,1)?YYASSET_REF(0x01000144):YYASSET_REF(0x01000151)));};}case 6:{{return(yyfequal(gmlfs,0)?YYASSET_REF(0x010000CD):(yyfequal(gmlfs,1)?YYASSET_REF(0x01000186):YYASSET_REF(0x0100001E))); };}case 7:{{return(yyfequal(gmlfs,0)?YYASSET_REF(0x010000CE):(yyfequal(gmlfs,1)?YYASSET_REF(0x01000137):YYASSET_REF(0x01000123)));};}case 8:{{return(yyfequal(gmlfs,0)?YYASSET_REF(0x010000CF):(yyfequal(gmlfs,1)?YYASSET_REF(0x01000136):YYASSET_REF(0x01000185)));};}case 9:{{return(yyfequal(gmlfs,0)?YYASSET_REF(0x010000D0):(yyfequal(gmlfs,1)?YYASSET_REF(0x010000E8):YYASSET_REF(0x0100014E)));};}case 10:{{return(yyfequal(gmlfs,0)?YYASSET_REF(0x010000D1):(yyfequal(gmlfs,1)?YYASSET_REF(0x010000F9):YYASSET_REF(0x01000114))); };}case 11:{{return(yyfequal(gmlfs,0)?YYASSET_REF(0x010000D2):(yyfequal(gmlfs,1)?YYASSET_REF(0x0100005B):YYASSET_REF(0x0100013E)));};}};return argument0;}}function gml_Script_s_face_from_set_direct(_inst,_other,argument0,argument1){{var ___sw1446___=argument0;var ___swc1447___=-1;if(yyCompareVal(___sw1446___,YYASSET_REF(0x010000C6),g_GMLMathEpsilon,false)==0){___swc1447___=0;}else if(yyCompareVal(___sw1446___,YYASSET_REF(0x010000C8),g_GMLMathEpsilon,false)==0){___swc1447___=1;}else if(yyCompareVal(___sw1446___, YYASSET_REF(0x010000C9),g_GMLMathEpsilon,false)==0){___swc1447___=2;}else if(yyCompareVal(___sw1446___,YYASSET_REF(0x010000CA),g_GMLMathEpsilon,false)==0){___swc1447___=3;}else if(yyCompareVal(___sw1446___,YYASSET_REF(0x010000CB),g_GMLMathEpsilon,false)==0){___swc1447___=4;}else if(yyCompareVal(___sw1446___,YYASSET_REF(0x010000CC),g_GMLMathEpsilon,false)==0){___swc1447___=5;}else if(yyCompareVal(___sw1446___,YYASSET_REF(0x010000CD),g_GMLMathEpsilon,false)==0){___swc1447___=6;}else if(yyCompareVal(___sw1446___, YYASSET_REF(0x010000CE),g_GMLMathEpsilon,false)==0){___swc1447___=7;}else if(yyCompareVal(___sw1446___,YYASSET_REF(0x010000CF),g_GMLMathEpsilon,false)==0){___swc1447___=8;}else if(yyCompareVal(___sw1446___,YYASSET_REF(0x010000D0),g_GMLMathEpsilon,false)==0){___swc1447___=9;}else if(yyCompareVal(___sw1446___,YYASSET_REF(0x010000D1),g_GMLMathEpsilon,false)==0){___swc1447___=10;}else if(yyCompareVal(___sw1446___,YYASSET_REF(0x010000D2),g_GMLMathEpsilon,false)==0){___swc1447___=11;}switch(___swc1447___){ case 0:{{return(yyfequal(argument1,0)?YYASSET_REF(0x010000C6):(yyfequal(argument1,1)?YYASSET_REF(0x01000165):YYASSET_REF(0x01000183)));};}case 1:{{return(yyfequal(argument1,0)?YYASSET_REF(0x010000C8):(yyfequal(argument1,1)?YYASSET_REF(0x01000180):YYASSET_REF(0x01000021)));};}case 2:{{return(yyfequal(argument1,0)?YYASSET_REF(0x010000C9):(yyfequal(argument1,1)?YYASSET_REF(0x01000152):YYASSET_REF(0x010000F7)));};}case 3:{{return(yyfequal(argument1,0)?YYASSET_REF(0x010000CA):(yyfequal(argument1,1)?YYASSET_REF(0x010000E4):YYASSET_REF(0x01000079))); };}case 4:{{return(yyfequal(argument1,0)?YYASSET_REF(0x010000CB):(yyfequal(argument1,1)?YYASSET_REF(0x0100013F):YYASSET_REF(0x01000110)));};}case 5:{{return(yyfequal(argument1,0)?YYASSET_REF(0x010000CC):(yyfequal(argument1,1)?YYASSET_REF(0x01000144):YYASSET_REF(0x01000151)));};}case 6:{{return(yyfequal(argument1,0)?YYASSET_REF(0x010000CD):(yyfequal(argument1,1)?YYASSET_REF(0x01000186):YYASSET_REF(0x0100001E)));};}case 7:{{return(yyfequal(argument1,0)?YYASSET_REF(0x010000CE):(yyfequal(argument1,1)?YYASSET_REF(0x01000137):YYASSET_REF(0x01000123))); };}case 8:{{return(yyfequal(argument1,0)?YYASSET_REF(0x010000CF):(yyfequal(argument1,1)?YYASSET_REF(0x01000136):YYASSET_REF(0x01000185)));};}case 9:{{return(yyfequal(argument1,0)?YYASSET_REF(0x010000D0):(yyfequal(argument1,1)?YYASSET_REF(0x010000E8):YYASSET_REF(0x0100014E)));};}case 10:{{return(yyfequal(argument1,0)?YYASSET_REF(0x010000D1):(yyfequal(argument1,1)?YYASSET_REF(0x010000F9):YYASSET_REF(0x01000114)));};}case 11:{{return(yyfequal(argument1,0)?YYASSET_REF(0x010000D2):(yyfequal(argument1,1)?YYASSET_REF(0x0100005B):YYASSET_REF(0x0100013E))); };}};return argument0;}}function gml_GlobalScript_s_get_max_age(_inst,_other){}function gml_GlobalScript_s_get_max_age_normal(_inst,_other,argument0){(_inst.gmls_get_max_age_normal=__yy_method(_inst,gml_Script_s_get_max_age_normal));}function gml_Script_s_get_max_age_normal(_inst,_other,argument0){{var gmlpmap=argument0;var gmlmax_age=gml_Script_s_max_age_player_internal(_inst,_other);var ___sw1450___=ds_map_find_value(gmlpmap,"position");var ___swc1451___=-1;if(yyCompareVal(___sw1450___,1,g_GMLMathEpsilon, false)==0||yyCompareVal(___sw1450___,10,g_GMLMathEpsilon,false)==0){___swc1451___=0;}else if(yyCompareVal(___sw1450___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1450___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1450___,4,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1450___,5,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1450___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1450___,7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1450___,8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1450___, 9,g_GMLMathEpsilon,false)==0){___swc1451___=1;}else if(yyCompareVal(___sw1450___,100,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1450___,101,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1450___,102,g_GMLMathEpsilon,false)==0){___swc1451___=2;}switch(___swc1451___){case 0:{gmlmax_age=gml_Script_s_max_age_qb_internal(_inst,_other);break;}case 1:{break;}case 2:{gmlmax_age=65;break;}};return gmlmax_age;}}function gml_GlobalScript_s_get_num_audibles(_inst,_other){(_inst.gmls_get_num_audibles=__yy_method(_inst, gml_Script_s_get_num_audibles));}function gml_Script_s_get_num_audibles(_inst,_other,argument0){{if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear,1)){return 0;};if(yyfgreater(ds_map_find_value(argument0,"xp_level"),10)){return 5;};if(yyfgreater(ds_map_find_value(argument0,"xp_level"),6)){return 4;};if(yyfgreater(ds_map_find_value(argument0,"xp_level"),3)){return 3;};if(yyfgreater(ds_map_find_value(argument0,"xp_level"),1)){return 2;};return 1;}}function gml_GlobalScript_s_get_morale(_inst, _other){(_inst.gmls_get_morale=__yy_method(_inst,gml_Script_s_get_morale));(_inst.gmls_get_morale_from_roster=__yy_method(_inst,gml_Script_s_get_morale_from_roster));}function gml_Script_s_get_morale(_inst,_other){{var gmlmor=0;{var __yy__v1720=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1721 in __yy__v1720){if(!__yy__v1720.hasOwnProperty(__yy__v1721))continue;var __yy__v1722=__yy__v1720[__yy__v1721];{var gmlsize=0;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1722.gmlroster));(g_yyPrePostObject__=gmli, gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1722.gmlroster,gmli);if(yyGetBool(is_undefined(ds_map_find_value(gmlpmap,"attitude")))){ds_map_set(gmlpmap,"attitude",50);};gmlmor=yyfplus(gmlmor,ds_map_find_value(gmlpmap,"attitude"));(g_yyPrePostObject__=gmlsize,gmlsize=(g_yyPrePostObject__ instanceof Long?gmlsize.add(1):++gmlsize),g_yyPrePostObject__);}};if(!yyGetBool(__yy__v1722.gmlqb_mode)){{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1722.gmlstafflist)); (g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1722.gmlstafflist,gmli);if(yyGetBool(is_undefined(ds_map_find_value(gmlpmap,"attitude")))){ds_map_set(gmlpmap,"attitude",50);};gmlmor=yyfplus(gmlmor,ds_map_find_value(gmlpmap,"attitude"));(g_yyPrePostObject__=gmlsize,gmlsize=(g_yyPrePostObject__ instanceof Long?gmlsize.add(1):++gmlsize),g_yyPrePostObject__);}};};};gmlmor=yyfdivide(gmlmor,gmlsize);gmlmor=round(yyfplus(1, __yy_gml_errCheck(gmlmor)));return clamp(gmlmor,1,100);}}};}}function gml_Script_s_get_morale_from_roster(_inst,_other,argument0){{var gmlmor=0;var gmlsize=0;var gmli=0;for(;yyfless(gmli,ds_list_size(argument0));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(argument0,gmli);if(yyGetBool(is_undefined(ds_map_find_value(gmlpmap,"attitude")))){ds_map_set(gmlpmap,"attitude",50);};gmlmor=yyfplus(gmlmor,ds_map_find_value(gmlpmap, "attitude"));(g_yyPrePostObject__=gmlsize,gmlsize=(g_yyPrePostObject__ instanceof Long?gmlsize.add(1):++gmlsize),g_yyPrePostObject__);}};{var __yy__v1723=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1724 in __yy__v1723){if(!__yy__v1723.hasOwnProperty(__yy__v1724))continue;var __yy__v1725=__yy__v1723[__yy__v1724];{if((yyGetBool(!yyGetBool(__yy__v1725.gmlqb_mode)))&&(yyGetBool(!yyGetBool(global.gmlexhibition)))){{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1725.gmlstafflist));(g_yyPrePostObject__=gmli, gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1725.gmlstafflist,gmli);if(yyGetBool(is_undefined(ds_map_find_value(gmlpmap,"attitude")))){ds_map_set(gmlpmap,"attitude",50);};gmlmor=yyfplus(gmlmor,ds_map_find_value(gmlpmap,"attitude"));(g_yyPrePostObject__=gmlsize,gmlsize=(g_yyPrePostObject__ instanceof Long?gmlsize.add(1):++gmlsize),g_yyPrePostObject__);}};};};}}};gmlmor=yyfdivide(gmlmor,gmlsize);gmlmor=round(yyfplus(1,__yy_gml_errCheck(gmlmor))); return clamp(gmlmor,1,100);}}function gml_GlobalScript_s_get_condition_squad(_inst,_other){(_inst.gmls_get_condition_squad=__yy_method(_inst,gml_Script_s_get_condition_squad));(_inst.gmls_get_condition_squad_from_roster=__yy_method(_inst,gml_Script_s_get_condition_squad_from_roster));}function gml_Script_s_get_condition_squad(_inst,_other){{var gmlcon=0;{var __yy__v1726=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1727 in __yy__v1726){if(!__yy__v1726.hasOwnProperty(__yy__v1727))continue;var __yy__v1728=__yy__v1726[__yy__v1727]; {var gmlsize=0;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1728.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1728.gmlroster,gmli);if((yyGetBool(yyfgreater(ds_map_find_value(gmlpmap,"condition"),0)))&&(yyGetBool(!yyGetBool(gml_Script_s_player_benched(__yy__v1728,_inst,gmlpmap))))){{gmlcon=yyfplus(gmlcon,ds_map_find_value(gmlpmap,"condition"));(g_yyPrePostObject__=gmlsize,gmlsize=(g_yyPrePostObject__ instanceof Long?gmlsize.add(1):++gmlsize), g_yyPrePostObject__);};};}};if(yyfgreater(gmlsize,0)){gmlcon=yyfdivide(gmlcon,gmlsize);};return round(gmlcon);}}};}}function gml_Script_s_get_condition_squad_from_roster(_inst,_other,argument0){{var gmlcon=0;var gmlsize=0;var gmli=0;for(;yyfless(gmli,ds_list_size(argument0));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(argument0,gmli);if((yyGetBool(yyfgreater(ds_map_find_value(gmlpmap,"condition"),0)))&&(yyGetBool(!yyGetBool(gml_Script_s_player_benched(_inst, _other,gmlpmap))))){{gmlcon=yyfplus(gmlcon,ds_map_find_value(gmlpmap,"condition"));(g_yyPrePostObject__=gmlsize,gmlsize=(g_yyPrePostObject__ instanceof Long?gmlsize.add(1):++gmlsize),g_yyPrePostObject__);};};}};if(yyfgreater(gmlsize,0)){gmlcon=yyfdivide(gmlcon,gmlsize);};return round(gmlcon);}}function gml_GlobalScript_s_adjust_team_morale(_inst,_other,argument0,argument1){(_inst.gmls_adjust_team_morale=__yy_method(_inst,gml_Script_s_adjust_team_morale));(_inst.gmls_adjust_team_morale_ignore_freshman=__yy_method(_inst, gml_Script_s_adjust_team_morale_ignore_freshman));}function gml_Script_s_adjust_team_morale(_inst,_other,argument0,argument1){{var gmlamt_min=argument0;var gmlamt_max=argument1;{var __yy__v1729=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1730 in __yy__v1729){if(!__yy__v1729.hasOwnProperty(__yy__v1730))continue;var __yy__v1731=__yy__v1729[__yy__v1730];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1731.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli), g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1731.gmlroster,gmli);ds_map_set(gmlpmap,"attitude",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"attitude")),__yy_gml_errCheck(irandom_range(gmlamt_min,gmlamt_max))),1,100));}};}}};}}function gml_Script_s_adjust_team_morale_ignore_freshman(_inst,_other,argument0,argument1){{var gmlamt_min=argument0;var gmlamt_max=argument1;{var __yy__v1732=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1733 in __yy__v1732){if(!__yy__v1732.hasOwnProperty(__yy__v1733))continue; var __yy__v1734=__yy__v1732[__yy__v1733];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1734.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1734.gmlroster,gmli);if(yyfequal(ds_map_find_value(gmlpmap,"age"),gml_Script_s_rookie_age_internal(__yy__v1734,_inst))){{continue;};};ds_map_set(gmlpmap,"attitude",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"attitude")),__yy_gml_errCheck(irandom_range(gmlamt_min, gmlamt_max))),1,100));}};}}};}}function gml_GlobalScript_s_set_team_morale(_inst,_other,argument0,argument1){(_inst.gmls_set_team_morale=__yy_method(_inst,gml_Script_s_set_team_morale));}function gml_Script_s_set_team_morale(_inst,_other,argument0,argument1){{var gmlamt_min=argument0;var gmlamt_max=argument1;{var __yy__v1735=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1736 in __yy__v1735){if(!__yy__v1735.hasOwnProperty(__yy__v1736))continue;var __yy__v1737=__yy__v1735[__yy__v1736];{var gmli=0;for(; yyfless(gmli,ds_list_size(__yy__v1737.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1737.gmlroster,gmli);ds_map_set(gmlpmap,"attitude",clamp(irandom_range(gmlamt_min,gmlamt_max),1,100));}};}}};}}function gml_GlobalScript_s_position_edit_name_btn(_inst,_other){(_inst.gmls_position_edit_name_btn=__yy_method(_inst,gml_Script_s_position_edit_name_btn));}function gml_Script_s_position_edit_name_btn(_inst, _other){{draw_set_font(yyInst(_inst,_other,100434).gmlfont);var gmlbx=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100434).x),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,yyInst(_inst,_other,100434).gmltext)),2)));yyInst(_inst,_other,100429).x=yyfplus(__yy_gml_errCheck(gmlbx),8);yyInst(_inst,_other,100424).x=yyfplus(__yy_gml_errCheck(gmlbx),8);yyInst(_inst,_other,100416).x=yyfplus(__yy_gml_errCheck(gmlbx),8);}}function gml_GlobalScript_s_update_rest_all_button(_inst, _other){(_inst.gmls_update_rest_all_button=__yy_method(_inst,gml_Script_s_update_rest_all_button));}function gml_Script_s_update_rest_all_button(_inst,_other){{{var __yy__v1738=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1739 in __yy__v1738){if(!__yy__v1738.hasOwnProperty(__yy__v1739))continue;var __yy__v1740=__yy__v1738[__yy__v1739];{if((yyGetBool(yyfequal(__yy__v1740.gmlstage,7)))||(yyGetBool(__yy__v1740.gmlqb_mode))){{yyInst(_inst,_other,100628).visible=false;};}else {{yyInst(_inst,_other,100628).visible=true; yyInst(_inst,_other,100628).gmltext=gml_Script_s_str(__yy__v1740,_inst,"btn_RestAll");if(yyGetBool(gml_Script_s_all_players_resting(__yy__v1740,_inst))){yyInst(_inst,_other,100628).gmltext=gml_Script_s_str(__yy__v1740,_inst,"btn_UnrestAll");};};};}}};}}function gml_GlobalScript_s_all_players_resting(_inst,_other){(_inst.gmls_all_players_resting=__yy_method(_inst,gml_Script_s_all_players_resting));}function gml_Script_s_all_players_resting(_inst,_other){{{var __yy__v1741=GetWithArray(YYASSET_REF(0x00000062)); for(var __yy__v1742 in __yy__v1741){if(!__yy__v1741.hasOwnProperty(__yy__v1742))continue;var __yy__v1743=__yy__v1741[__yy__v1742];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1743.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1743.gmlroster,gmli);if(!yyGetBool(ds_map_find_value(gmlpmap,"resting"))){{return false;};};}};}}};return true;}}function gml_GlobalScript_s_rest_all_players(_inst,_other, argument0){(_inst.gmls_rest_all_players=__yy_method(_inst,gml_Script_s_rest_all_players));}function gml_Script_s_rest_all_players(_inst,_other,argument0){{var gmlrest=argument0;var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster,gmli);var ___sw1454___=gmlrest;var ___swc1455___=-1; if(yyCompareVal(___sw1454___,true,g_GMLMathEpsilon,false)==0){___swc1455___=0;}else if(yyCompareVal(___sw1454___,false,g_GMLMathEpsilon,false)==0){___swc1455___=1;}switch(___swc1455___){case 0:{if((yyGetBool(!yyGetBool(ds_map_find_value(gmlpmap,"resting"))))&&(yyGetBool(yyfless(ds_map_find_value(gmlpmap,"condition"),40)))){ds_map_set(gmlpmap,"attitude",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"attitude")),15),1,100));};ds_map_set(gmlpmap,"resting",true);break;}case 1:{if((yyGetBool(ds_map_find_value(gmlpmap, "resting")))&&(yyGetBool(yyfless(ds_map_find_value(gmlpmap,"condition"),40)))){ds_map_set(gmlpmap,"attitude",clamp(yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"attitude")),15),1,100));};ds_map_set(gmlpmap,"resting",false);break;}};}};}}function gml_GlobalScript_s_tag_backups(_inst,_other){(_inst.gmls_tag_backups=__yy_method(_inst,gml_Script_s_tag_backups));(_inst.gmls_tag_backups_internal=__yy_method(_inst,gml_Script_s_tag_backups_internal));}function gml_Script_s_tag_backups(_inst,_other){ {gml_Script_slog(_inst,_other,"s_tag_backups");{var __yy__v1744=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1745 in __yy__v1744){if(!__yy__v1744.hasOwnProperty(__yy__v1745))continue;var __yy__v1746=__yy__v1744[__yy__v1745];{__yy__v1746.gmlroster=gml_Script_s_sort_players(__yy__v1746,_inst,__yy__v1746.gmlroster,3);gml_Script_s_tag_backups_internal(__yy__v1746,_inst,__yy__v1746.gmlroster);}}};}}function gml_Script_s_tag_backups_internal(_inst,_other,argument0){{if(yyfequal(argument0,(-4))){{gml_Script_slog(_inst, _other,"s_tag_backups_internal. no cur_roster");return;};};{var __yy__v1747=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1748 in __yy__v1747){if(!__yy__v1747.hasOwnProperty(__yy__v1748))continue;var __yy__v1749=__yy__v1747[__yy__v1748];{var gmlcount=array_create(11,0);var gmli=0;for(;yyfless(gmli,ds_list_size(argument0));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(argument0,gmli);var gmlpos=clamp(real(ds_map_find_value(gmlpmap, "position")),1,10);ds_map_set(gmlpmap,"backup",false);if(yyGetBool(gml_Script_s_player_benched(__yy__v1749,_inst,gmlpmap))){continue;};if(yyfless(ds_map_find_value(gmlpmap,"condition"),0)){continue;};gmlcount=__yy_gml_array_check(gmlcount,970830455);(g_yyPrePostObject__=gmlcount[__yy_gml_array_check_index_set(gmlpos)],gmlcount[__yy_gml_array_check_index_set(gmlpos)]=(g_yyPrePostObject__ instanceof Long?gmlcount[__yy_gml_array_check_index_set(gmlpos)].add(1):++gmlcount[__yy_gml_array_check_index_set(gmlpos)]), g_yyPrePostObject__);var gmlmaxpos=1;var ___sw1458___=gmlpos;var ___swc1459___=-1;if(yyCompareVal(___sw1458___,1,g_GMLMathEpsilon,false)==0){___swc1459___=0;}else if(yyCompareVal(___sw1458___,2,g_GMLMathEpsilon,false)==0){___swc1459___=1;}else if(yyCompareVal(___sw1458___,3,g_GMLMathEpsilon,false)==0){___swc1459___=2;}else if(yyCompareVal(___sw1458___,4,g_GMLMathEpsilon,false)==0){___swc1459___=3;}else if(yyCompareVal(___sw1458___,5,g_GMLMathEpsilon,false)==0){___swc1459___=4;}else if(yyCompareVal(___sw1458___, 6,g_GMLMathEpsilon,false)==0){___swc1459___=5;}else if(yyCompareVal(___sw1458___,7,g_GMLMathEpsilon,false)==0){___swc1459___=6;}else if(yyCompareVal(___sw1458___,9,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1458___,8,g_GMLMathEpsilon,false)==0){___swc1459___=7;}else if(yyCompareVal(___sw1458___,10,g_GMLMathEpsilon,false)==0){___swc1459___=8;}switch(___swc1459___){case 0:{gmlmaxpos=2;break;}case 1:{gmlmaxpos=2;break;}case 2:{gmlmaxpos=3;break;}case 3:{gmlmaxpos=3;break;}case 4:{gmlmaxpos=6;break;}case 5:{ gmlmaxpos=5;break;}case 6:{gmlmaxpos=4;break;}case 7:{gmlmaxpos=5;break;}case 8:{gmlmaxpos=2;break;}};if(yyfgreaterequal(gmlcount[__yy_gml_array_check_index(gmlpos,gmlcount)],gmlmaxpos)){ds_map_set(gmlpmap,"backup",true);};}};}}};}}function gml_GlobalScript_s_college_choose_team(_inst,_other){(_inst.gmls_rm_choose_team_co_init=__yy_method(_inst,gml_Script_s_rm_choose_team_co_init));(_inst.gmls_btn_minor=__yy_method(_inst,gml_Script_s_btn_minor));(_inst.gmls_btn_major=__yy_method(_inst,gml_Script_s_btn_major)); (_inst.gmls_choose_team_refresh_subdivision=__yy_method(_inst,gml_Script_s_choose_team_refresh_subdivision));(_inst.gmls_choose_team_refresh_conference=__yy_method(_inst,gml_Script_s_choose_team_refresh_conference));(_inst.gmls_choose_team_create_conference_buttons=__yy_method(_inst,gml_Script_s_choose_team_create_conference_buttons));(_inst.gmls_choose_team_btn_conference=__yy_method(_inst,gml_Script_s_choose_team_btn_conference));(_inst.gmls_choose_team_create_team_buttons=__yy_method(_inst,gml_Script_s_choose_team_create_team_buttons)); (_inst.gmls_choose_team_btn_fav_team=__yy_method(_inst,gml_Script_s_choose_team_btn_fav_team));(_inst.gmls_choose_team_btn_new_team=__yy_method(_inst,gml_Script_s_choose_team_btn_new_team));(_inst.gmls_choose_team_btn_back=__yy_method(_inst,gml_Script_s_choose_team_btn_back));(_inst.gmls_choose_team_btn_reject=__yy_method(_inst,gml_Script_s_choose_team_btn_reject));(_inst.gmls_choose_team_conference_mode=__yy_method(_inst,gml_Script_s_choose_team_conference_mode));(_inst.gmls_choose_team_subdivision_mode=__yy_method(_inst, gml_Script_s_choose_team_subdivision_mode));(_inst.gmls_refresh_main_sections_buttons=__yy_method(_inst,gml_Script_s_refresh_main_sections_buttons));}function gml_Script____struct___182_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___182_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team";}if(gml_Script____struct___182_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team.prototype.__type===undefined){ gml_Script____struct___182_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team.prototype.__type="gml_Script____struct___182_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___182_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(1), $$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(2),$$args)];}}}}function gml_Script____struct___183_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___183_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team";}if(gml_Script____struct___183_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team.prototype.__type===undefined){gml_Script____struct___183_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team.prototype.__type="gml_Script____struct___183_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___183_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(2),$$args)];}}}}function gml_Script____struct___184_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team(_inst, _other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___184_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team";}if(gml_Script____struct___184_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team.prototype.__type===undefined){gml_Script____struct___184_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team.prototype.__type="gml_Script____struct___184_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst, gml_Script____struct___184_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext="";_inst.gmlonClickAction=(-4);_inst.gmlcolour=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(1),$$args)];}}}}function gml_Script____struct___185_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___185_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team"; }if(gml_Script____struct___185_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team.prototype.__type===undefined){gml_Script____struct___185_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team.prototype.__type="gml_Script____struct___185_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___185_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team.prototype);{_inst.gmlimage=YYASSET_REF(0x0100008E); }}}function gml_Script____struct___186_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___186_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team";}if(gml_Script____struct___186_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team.prototype.__type===undefined){gml_Script____struct___186_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team.prototype.__type="gml_Script____struct___186_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___186_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(2),$$args)];}}}}function gml_Script_s_rm_choose_team_co_init(_inst,_other){{gml_Script_s_init_rm(_inst, _other);if(!yyGetBool(variable_instance_exists(_inst.id,"mode"))){{if((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear,1)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,1)))){_inst.gmlmode=1;}else {_inst.gmlmode=2;};};};_inst.gmlbtns=__yy_gml_array_create([]);_inst.gmlbtn_major=gml_Script_s_create_button(_inst,_other,135,32,__yy_gml_object_create(_inst,(_inst.gml___struct___182=__yy_method(_inst,gml_Script____struct___182_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team)), gml_Script_s_get_subdiv_name(_inst,_other,1),kgml_Script_s_btn_major,3.125));_inst.gmlbtn_minor=gml_Script_s_create_button(_inst,_other,245,32,__yy_gml_object_create(_inst,(_inst.gml___struct___183=__yy_method(_inst,gml_Script____struct___183_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team)),gml_Script_s_get_subdiv_name(_inst,_other,2),kgml_Script_s_btn_minor,3.125));_inst.gmltier=1;_inst.gmlbtn_conf=gml_Script_s_create_button(_inst,_other,190,32,__yy_gml_object_create(_inst,(_inst.gml___struct___184=__yy_method(_inst, gml_Script____struct___184_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team)),global.gmlc_primary,3.125));_inst.gmlbtn_back=gml_Script_s_create_button(_inst,_other,8,232,__yy_gml_object_create(_inst,(_inst.gml___struct___185=__yy_method(_inst,gml_Script____struct___185_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team))));var ___sw1470___=_inst.gmlmode;var ___swc1471___=-1;if(yyCompareVal(___sw1470___,1,g_GMLMathEpsilon,false)==0){___swc1471___=0;}else if(yyCompareVal(___sw1470___, 0,g_GMLMathEpsilon,false)==0){___swc1471___=1;}else if(yyCompareVal(___sw1470___,2,g_GMLMathEpsilon,false)==0){___swc1471___=2;}switch(___swc1471___){case 0:{gml_Script_s_create_title(_inst,_other,gml_Script_s_str(_inst,_other,"ui_ChooseTeam"));break;}case 1:{gml_Script_s_create_title(_inst,_other,gml_Script_s_str(_inst,_other,"ui_JobOffers"),undefined,true);break;}case 2:{gml_Script_s_create_title(_inst,_other,gml_Script_s_str(_inst,_other,"ui_JobOffers"),undefined,true);_inst.gmlbtn_reject=gml_Script_s_create_button(_inst, _other,370,232,__yy_gml_object_create(_inst,(_inst.gml___struct___186=__yy_method(_inst,gml_Script____struct___186_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team)),gml_Script_s_str(_inst,_other,"ui_RejectAll"),kgml_Script_s_choose_team_btn_reject,3.125));break;}};gml_Script_s_choose_team_subdivision_mode(_inst,_other);}}function gml_Script_s_btn_minor(_inst,_other){{yyInst(_inst,_other,global.gmlrm).gmltier=2;gml_Script_s_choose_team_refresh_subdivision(_inst,_other);}}function gml_Script_s_btn_major(_inst, _other){{yyInst(_inst,_other,global.gmlrm).gmltier=1;gml_Script_s_choose_team_refresh_subdivision(_inst,_other);}}function gml_Script_s_choose_team_refresh_subdivision(_inst,_other){{{var __yy__v1750=GetWithArray(global.gmlrm);for(var __yy__v1751 in __yy__v1750){if(!__yy__v1750.hasOwnProperty(__yy__v1751))continue;var __yy__v1752=__yy__v1750[__yy__v1751];{gml_Script_s_refresh_main_sections_buttons(__yy__v1752,_inst);gml_Script_s_destroy_dynamic_buttons(__yy__v1752,_inst,__yy__v1752.gmlbtns);__yy__v1752.gmlbtns=gml_Script_s_choose_team_create_conference_buttons(__yy__v1752, _inst,__yy__v1752.gmltier);}}};}}function gml_Script_s_choose_team_refresh_conference(_inst,_other){{{var __yy__v1753=GetWithArray(global.gmlrm);for(var __yy__v1754 in __yy__v1753){if(!__yy__v1753.hasOwnProperty(__yy__v1754))continue;var __yy__v1755=__yy__v1753[__yy__v1754];{gml_Script_s_destroy_dynamic_buttons(__yy__v1755,_inst,__yy__v1755.gmlbtns);__yy__v1755.gmlbtns=gml_Script_s_choose_team_create_team_buttons(__yy__v1755,_inst,__yy__v1755.gmlconference);}}};}}function gml_Script____struct___187_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team(_inst, _other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___187_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team";}if(gml_Script____struct___187_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team.prototype.__type===undefined){gml_Script____struct___187_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team.prototype.__type="gml_Script____struct___187_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___187_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlconference=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(3),$$args)];}}}}function gml_Script____struct___188_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team(_inst, _other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___188_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team";}if(gml_Script____struct___188_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team.prototype.__type===undefined){gml_Script____struct___188_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team.prototype.__type="gml_Script____struct___188_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___188_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlactive=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlconference=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(3),$$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(4), $$args)];}}}}function gml_Script____struct___189_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___189_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team";}if(gml_Script____struct___189_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team.prototype.__type===undefined){gml_Script____struct___189_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team.prototype.__type="gml_Script____struct___189_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___189_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlactive=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlconference=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(3),$$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(4), $$args)];}}}}function gml_Script____struct___190_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___190_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team";}if(gml_Script____struct___190_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team.prototype.__type===undefined){gml_Script____struct___190_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team.prototype.__type="gml_Script____struct___190_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___190_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlconference=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(3),$$args)];}}}}function gml_Script_s_choose_team_create_conference_buttons(_inst, _other,argument0){{var gmlcl=gml_Script_s_get_conference_list(_inst,_other,argument0);var gmlcb=__yy_gml_array_create([]);var gmlt=gml_Script_s_calc_grid_coords(_inst,_other,array_length(gmlcl));var gmlbtn,gmljo,gmlname;var gmli=0;for(;yyfless(gmli,array_length(gmlcl));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlname=gml_Script_s_fit_string(_inst,_other,yyInst(_inst,_other,gmlcl[__yy_gml_array_check_index(gmli,gmlcl)]).gmlname,yyInst(_inst, _other,gmlcl[__yy_gml_array_check_index(gmli,gmlcl)]).gmltla,96);var ___sw1472___=yyInst(_inst,_other,global.gmlrm).gmlmode;var ___swc1473___=-1;if(yyCompareVal(___sw1472___,1,g_GMLMathEpsilon,false)==0){___swc1473___=0;}else if(yyCompareVal(___sw1472___,0,g_GMLMathEpsilon,false)==0){___swc1473___=1;}else if(yyCompareVal(___sw1472___,2,g_GMLMathEpsilon,false)==0){___swc1473___=2;}else if(yyCompareVal(___sw1472___,3,g_GMLMathEpsilon,false)==0){___swc1473___=3;}switch(___swc1473___){case 0:{gmlbtn=gml_Script_s_create_button(_inst, _other,yyInst(_inst,_other,gmlt[__yy_gml_array_check_index(gmli,gmlt)]).x,yyInst(_inst,_other,gmlt[__yy_gml_array_check_index(gmli,gmlt)]).y,__yy_gml_object_create(_inst,(_inst.gml___struct___187=__yy_method(_inst,gml_Script____struct___187_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team)),gmlname,gmlcl[__yy_gml_array_check_index(gmli,gmlcl)],kgml_Script_s_choose_team_btn_conference,3.125));break;}case 1:{gmljo=gml_Script_s_count_starting_team_selectable_conference(_inst, _other,gmlcl[__yy_gml_array_check_index(gmli,gmlcl)]);gmlbtn=gml_Script_s_create_button(_inst,_other,yyInst(_inst,_other,gmlt[__yy_gml_array_check_index(gmli,gmlt)]).x,yyInst(_inst,_other,gmlt[__yy_gml_array_check_index(gmli,gmlt)]).y,__yy_gml_object_create(_inst,(_inst.gml___struct___188=__yy_method(_inst,gml_Script____struct___188_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team)),yyfplus(yyfplus(__yy_gml_errCheck(gmlname),"\n"),__yy_gml_errCheck(gml_Script_s_joboffers_string(_inst, _other,gmljo))),yyfgreater(gmljo,0),gmlcl[__yy_gml_array_check_index(gmli,gmlcl)],kgml_Script_s_choose_team_btn_conference,3.125));break;}case 2:{gmljo=gml_Script_s_count_joboffers_conference(_inst,_other,gmlcl[__yy_gml_array_check_index(gmli,gmlcl)]);gmlbtn=gml_Script_s_create_button(_inst,_other,yyInst(_inst,_other,gmlt[__yy_gml_array_check_index(gmli,gmlt)]).x,yyInst(_inst,_other,gmlt[__yy_gml_array_check_index(gmli,gmlt)]).y,__yy_gml_object_create(_inst,(_inst.gml___struct___189=__yy_method(_inst, gml_Script____struct___189_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team)),yyfplus(yyfplus(__yy_gml_errCheck(gmlname),"\n"),__yy_gml_errCheck(gml_Script_s_joboffers_string(_inst,_other,gmljo))),yyfgreater(gmljo,0),gmlcl[__yy_gml_array_check_index(gmli,gmlcl)],kgml_Script_s_choose_team_btn_conference,3.125));break;}case 3:{gmlbtn=gml_Script_s_create_button(_inst,_other,yyInst(_inst,_other,gmlt[__yy_gml_array_check_index(gmli,gmlt)]).x,yyInst(_inst,_other,gmlt[__yy_gml_array_check_index(gmli, gmlt)]).y,__yy_gml_object_create(_inst,(_inst.gml___struct___190=__yy_method(_inst,gml_Script____struct___190_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team)),gmlname,gmlcl[__yy_gml_array_check_index(gmli,gmlcl)],kgml_Script_s_btn_editor_conference,3.125));break;}};array_push(gmlcb,gmlbtn);}};return gmlcb;}}function gml_Script_s_choose_team_btn_conference(_inst,_other){{yyInst(_inst,_other,global.gmlrm).gmlconference=_inst.gmlconference;gml_Script_s_choose_team_conference_mode(_inst, _other);}}function gml_Script____struct___191_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___191_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team";}if(gml_Script____struct___191_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team.prototype.__type===undefined){gml_Script____struct___191_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team.prototype.__type="gml_Script____struct___191_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___191_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmluid=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(3),$$args)];}}}}function gml_Script____struct___192_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team(_inst, _other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___192_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team";}if(gml_Script____struct___192_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team.prototype.__type===undefined){gml_Script____struct___192_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team.prototype.__type="gml_Script____struct___192_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___192_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmluid=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(3),$$args)];_inst.gmlactive=$$args[__yy_gml_array_check_index(2+(4), $$args)];}}}}function gml_Script____struct___194_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___194_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team";}if(gml_Script____struct___194_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team.prototype.__type===undefined){gml_Script____struct___194_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team.prototype.__type="gml_Script____struct___194_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___194_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmluid=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.sprite_index=YYASSET_REF(0x01000080);_inst.gmloffense=$$args[__yy_gml_array_check_index(2+(3), $$args)];_inst.gmldefense=$$args[__yy_gml_array_check_index(2+(4),$$args)];_inst.gmlactive=$$args[__yy_gml_array_check_index(2+(5),$$args)];}}}}function gml_Script____struct___195_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___195_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team";}if(gml_Script____struct___195_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team.prototype.__type===undefined){ gml_Script____struct___195_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team.prototype.__type="gml_Script____struct___195_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___195_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmluid=$$args[__yy_gml_array_check_index(2+(1), $$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(2),$$args)];_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(3),$$args)];}}}}function gml_Script_s_choose_team_create_team_buttons(_inst,_other,argument0){{var gmltl=gml_Script_s_get_team_list(_inst,_other,yyInst(_inst,_other,argument0).gmluid);var gmltb=__yy_gml_array_create([]);var gmlt=gml_Script_s_calc_grid_coords(_inst,_other,array_length(gmltl));var gmlbtn;var gmli=0;for(;yyfless(gmli,array_length(gmltl));(g_yyPrePostObject__=gmli, gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var ___sw1474___=yyInst(_inst,_other,global.gmlrm).gmlmode;var ___swc1475___=-1;if(yyCompareVal(___sw1474___,1,g_GMLMathEpsilon,false)==0){___swc1475___=0;}else if(yyCompareVal(___sw1474___,0,g_GMLMathEpsilon,false)==0){___swc1475___=1;}else if(yyCompareVal(___sw1474___,2,g_GMLMathEpsilon,false)==0){___swc1475___=2;}else if(yyCompareVal(___sw1474___,3,g_GMLMathEpsilon,false)==0){___swc1475___=3;}switch(___swc1475___){case 0:{ gmlbtn=gml_Script_s_create_button(_inst,_other,yyInst(_inst,_other,gmlt[__yy_gml_array_check_index(gmli,gmlt)]).x,yyInst(_inst,_other,gmlt[__yy_gml_array_check_index(gmli,gmlt)]).y,__yy_gml_object_create(_inst,(_inst.gml___struct___191=__yy_method(_inst,gml_Script____struct___191_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team)),ds_map_find_value(array_get(gmltl,gmli),"name"),ds_map_find_value(array_get(gmltl,gmli),"uid"),kgml_Script_s_choose_team_btn_fav_team,3.125));break; }case 1:{{gmlbtn=gml_Script_s_create_button(_inst,_other,yyInst(_inst,_other,gmlt[__yy_gml_array_check_index(gmli,gmlt)]).x,yyInst(_inst,_other,gmlt[__yy_gml_array_check_index(gmli,gmlt)]).y,__yy_gml_object_create(_inst,(_inst.gml___struct___192=__yy_method(_inst,gml_Script____struct___192_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team)),ds_map_find_value(array_get(gmltl,gmli),"name"),ds_map_find_value(array_get(gmltl,gmli),"uid"),kgml_Script_s_choose_team_btn_fav_team,3.125, gml_Script_s_is_starting_team_selectable(_inst,_other,ds_map_find_value(array_get(gmltl,gmli),"uid"))));};break;}case 2:{gmlbtn=gml_Script_s_create_button(_inst,_other,yyInst(_inst,_other,gmlt[__yy_gml_array_check_index(gmli,gmlt)]).x,yyInst(_inst,_other,gmlt[__yy_gml_array_check_index(gmli,gmlt)]).y,__yy_gml_object_create(_inst,(_inst.gml___struct___194=__yy_method(_inst,gml_Script____struct___194_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team)),yyfplus(__yy_gml_errCheck(ds_map_find_value(array_get(gmltl, gmli),"name")),"\n "),ds_map_find_value(array_get(gmltl,gmli),"uid"),kgml_Script_s_choose_team_btn_new_team,gml_Script_s_get_team_offense_with_reputation_boost(_inst,_other,gmltl[__yy_gml_array_check_index(gmli,gmltl)]),gml_Script_s_get_team_defense_with_reputation_boost(_inst,_other,gmltl[__yy_gml_array_check_index(gmli,gmltl)]),gml_Script_s_team_interested(_inst,_other,gmltl[__yy_gml_array_check_index(gmli,gmltl)])),YYASSET_REF(0x00000036));break;}case 3:{gmlbtn=gml_Script_s_create_button(_inst, _other,yyInst(_inst,_other,gmlt[__yy_gml_array_check_index(gmli,gmlt)]).x,yyInst(_inst,_other,gmlt[__yy_gml_array_check_index(gmli,gmlt)]).y,__yy_gml_object_create(_inst,(_inst.gml___struct___195=__yy_method(_inst,gml_Script____struct___195_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team)),ds_map_find_value(array_get(gmltl,gmli),"name"),ds_map_find_value(array_get(gmltl,gmli),"uid"),kgml_Script_s_btn_editor_select_team,3.125));break;}};array_push(gmltb,gmlbtn);}};return gmltb; }}function gml_Script_s_choose_team_btn_fav_team(_inst,_other){{gml_Script_btn_click_ChooseTeam(_inst,_other);}}function gml_Script_s_choose_team_btn_new_team(_inst,_other){{gml_Script_btn_click_ChooseTeamNew(_inst,_other);}}function gml_Script_s_choose_team_btn_back(_inst,_other){{room_goto(YYASSET_REF(0x03000002));}}function gml_Script_s_choose_team_btn_reject(_inst,_other){{if(!yyGetBool(gml_Script_s_offer_data_upgrade(_inst,_other))){gml_Script_btn_click_ChooseReject_loading(_inst,_other);};}}function gml_Script_s_choose_team_conference_mode(_inst, _other){{{var __yy__v1756=GetWithArray(global.gmlrm);for(var __yy__v1757 in __yy__v1756){if(!__yy__v1756.hasOwnProperty(__yy__v1757))continue;var __yy__v1758=__yy__v1756[__yy__v1757];{yyInst(_inst,_other,__yy__v1758.gmlbtn_major).visible=false;yyInst(_inst,_other,__yy__v1758.gmlbtn_minor).visible=false;yyInst(_inst,_other,__yy__v1758.gmlbtn_conf).visible=true;yyInst(_inst,_other,__yy__v1758.gmlbtn_conf).gmltext=gml_Script_s_fit_string(__yy__v1758,_inst,yyInst(_inst,_other,__yy__v1758.gmlconference).gmlname, yyInst(_inst,_other,__yy__v1758.gmlconference).gmltla,96);yyInst(_inst,_other,__yy__v1758.gmlbtn_conf).gmlcolour=global.gmlc_primary;yyInst(_inst,_other,__yy__v1758.gmlbtn_back).gmlonClickAction=kgml_Script_s_choose_team_subdivision_mode;var ___sw1476___=__yy__v1758.gmlmode;var ___swc1477___=-1;if(yyCompareVal(___sw1476___,2,g_GMLMathEpsilon,false)==0){___swc1477___=0;}switch(___swc1477___){case 0:{yyInst(_inst,_other,__yy__v1758.gmlbtn_back).visible=true;break;}};gml_Script_s_choose_team_refresh_conference(__yy__v1758, _inst);}}};}}function gml_Script_s_choose_team_subdivision_mode(_inst,_other){{{var __yy__v1759=GetWithArray(global.gmlrm);for(var __yy__v1760 in __yy__v1759){if(!__yy__v1759.hasOwnProperty(__yy__v1760))continue;var __yy__v1761=__yy__v1759[__yy__v1760];{yyInst(_inst,_other,__yy__v1761.gmlbtn_major).visible=true;yyInst(_inst,_other,__yy__v1761.gmlbtn_minor).visible=true;yyInst(_inst,_other,__yy__v1761.gmlbtn_conf).visible=false;yyInst(_inst,_other,__yy__v1761.gmlbtn_back).gmlonClickAction=kgml_Script_s_choose_team_btn_back; var ___sw1478___=__yy__v1761.gmlmode;var ___swc1479___=-1;if(yyCompareVal(___sw1478___,2,g_GMLMathEpsilon,false)==0){___swc1479___=0;}switch(___swc1479___){case 0:{yyInst(_inst,_other,__yy__v1761.gmlbtn_back).visible=false;break;}};gml_Script_s_choose_team_refresh_subdivision(__yy__v1761,_inst);}}};}}function gml_Script_s_refresh_main_sections_buttons(_inst,_other){{{var __yy__v1762=GetWithArray(global.gmlrm);for(var __yy__v1763 in __yy__v1762){if(!__yy__v1762.hasOwnProperty(__yy__v1763))continue;var __yy__v1764=__yy__v1762[__yy__v1763]; {yyInst(_inst,_other,__yy__v1764.gmlbtn_major).gmlcolour=(yyfequal(__yy__v1764.gmltier,1)?global.gmlc_primary:global.gmlc_background);yyInst(_inst,_other,__yy__v1764.gmlbtn_minor).gmlcolour=(yyfequal(__yy__v1764.gmltier,2)?global.gmlc_primary:global.gmlc_background);if(yyGetBool(variable_instance_exists(__yy__v1764.id,"btn_bowls"))){yyInst(_inst,_other,__yy__v1764.gmlbtn_bowls).gmlcolour=(yyfequal(__yy__v1764.gmltier,3)?global.gmlc_primary:global.gmlc_background);};}}};}}function gml_GlobalScript_s_is_backup(_inst, _other){(_inst.gmls_is_backup=__yy_method(_inst,gml_Script_s_is_backup));}function gml_Script_s_is_backup(_inst,_other,argument0){{if(yyGetBool(ds_map_exists(argument0,"backup"))){{if(yyGetBool(ds_map_find_value(argument0,"backup"))){return true;};};};return false;}}function gml_GlobalScript_s_do_player_awards(_inst,_other){(_inst.gmls_do_player_awards=__yy_method(_inst,gml_Script_s_do_player_awards));(_inst.gmls_do_player_awards_college=__yy_method(_inst,gml_Script_s_do_player_awards_college));(_inst.gmls_Award_OutstandingPOTY=__yy_method(_inst, gml_Script_s_Award_OutstandingPOTY));(_inst.gmls_Award_ExtraordinaryAcademicPOTY=__yy_method(_inst,gml_Script_s_Award_ExtraordinaryAcademicPOTY));(_inst.gmls_Award_OffensivePOTY=__yy_method(_inst,gml_Script_s_Award_OffensivePOTY));(_inst.gmls_Award_DefensivePOTY=__yy_method(_inst,gml_Script_s_Award_DefensivePOTY));(_inst.gmls_Award_PositionPOTY=__yy_method(_inst,gml_Script_s_Award_PositionPOTY));(_inst.gmls_Award_AnyPositionPOTY=__yy_method(_inst,gml_Script_s_Award_AnyPositionPOTY));(_inst.gmls_Award_CommunityServicePOTY=__yy_method(_inst, gml_Script_s_Award_CommunityServicePOTY));(_inst.gmls_Award_WalkOnPOTY=__yy_method(_inst,gml_Script_s_Award_WalkOnPOTY));(_inst.gmls_Award_FreshmanPOTY=__yy_method(_inst,gml_Script_s_Award_FreshmanPOTY));(_inst.gmls_Award_AcademicPrize=__yy_method(_inst,gml_Script_s_Award_AcademicPrize));}function gml_Script_s_do_player_awards(_inst,_other){{{var __yy__v1765=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1766 in __yy__v1765){if(!__yy__v1765.hasOwnProperty(__yy__v1766))continue;var __yy__v1767=__yy__v1765[__yy__v1766]; {gml_Script_slog(__yy__v1767,_inst,"s_do_player_awards");if(yyfequal(__yy__v1767.gmlyear,1)){return;};var gmlwon_div=yyfequal(gml_Script_s_get_division_winner(__yy__v1767,_inst,__yy__v1767.gmlmyconference,__yy__v1767.gmlmydivision),__yy__v1767.gmlmyteam);var gmlmvp_rating=90;var gmlopoy_rating=90;var gmldpoy_rating=85;var gmlroty_rating=85;var gmlmin_games=12;var gmlmvp=(-4);var gmlopoy=(-4);var gmldpoy=(-4);var gmlroty=(-4);var gmldebug_msg=yyfplus(__yy_gml_errCheck(gml_Script_s_str(__yy__v1767,_inst,"msg_SeasonRatings")), "##");var gmlsz=ds_list_size(__yy__v1767.gmlroster);if(yyfless(gmlsz,1)){return;};var gmli=0;for(;yyfless(gmli,gmlsz);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1767.gmlroster,gmli);var gmlgames=ds_map_find_value(gmlpmap,"season_games");var gmlpos=ds_map_find_value(gmlpmap,"position");var gmlyards=yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"season_yards")),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap, "season_rush_yards")),1.35)));var gmlavg_yds=yyfdivide(__yy_gml_errCheck(gmlyards),__yy_gml_errCheck(gmlgames));var gmltds=ds_map_find_value(gmlpmap,"season_touchdowns");var gmlfumbles=ds_map_find_value(gmlpmap,"season_fumbles");var gmltackles=ds_map_find_value(gmlpmap,"season_tackles");var gmlints=ds_map_find_value(gmlpmap,"season_int");var gmlsacks=ds_map_find_value(gmlpmap,"season_sacks");var gmlatts=ds_map_find_value(gmlpmap,"season_attempts");var gmlcomp=ds_map_find_value(gmlpmap,"season_complete"); if((yyGetBool(ds_map_exists(gmlpmap,"season_attempts_XP")))&&(yyGetBool(ds_map_exists(gmlpmap,"season_complete_XP")))){{gmlatts=yyfplus(gmlatts,string(round(ds_map_find_value(gmlpmap,"season_attempts_XP"))));gmlcomp=yyfplus(gmlcomp,string(round(ds_map_find_value(gmlpmap,"season_complete_XP"))));};};var gmlcomp_prc=0;if(yyfgreater(gmlatts,0)){gmlcomp_prc=yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlcomp),__yy_gml_errCheck(gmlatts))),100);};var gmlrating=0;var gmlyard_target=1;var ___sw1490___=gmlpos; var ___swc1491___=-1;if(yyCompareVal(___sw1490___,1,g_GMLMathEpsilon,false)==0){___swc1491___=0;}else if(yyCompareVal(___sw1490___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1490___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1490___,4,g_GMLMathEpsilon,false)==0){___swc1491___=1;}else if(yyCompareVal(___sw1490___,5,g_GMLMathEpsilon,false)==0){___swc1491___=2;}else if(yyCompareVal(___sw1490___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1490___,7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1490___, 8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1490___,9,g_GMLMathEpsilon,false)==0){___swc1491___=3;}else if(yyCompareVal(___sw1490___,10,g_GMLMathEpsilon,false)==0){___swc1491___=4;}switch(___swc1491___){case 0:{gmlrating=clamp(yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlyards),3300)),100),1,150);gmlrating=yyfplus(gmlrating,gmltds);gmlrating=yyfminus(gmlrating,gmlints);gmlrating=yyfminus(gmlrating,yyftime(__yy_gml_errCheck(gmlsacks),0.5));gmlrating=round(gmlrating);if((yyGetBool(yyfgreater(gmlgames, gmlmin_games)))&&(yyGetBool(gmlwon_div))){{if((yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"age"),gml_Script_s_rookie_age_internal(__yy__v1767,_inst))))&&(yyGetBool(yyfgreaterequal(gmlrating,gmlroty_rating)))){{gmlroty_rating=gmlrating;gmlroty=gmlpmap;};}else {if(yyfgreaterequal(gmlrating,gmlmvp_rating)){{gmlmvp_rating=gmlrating;gmlmvp=gmlpmap;};};};};};break;}case 1:{if(yyfequal(gmlpos,2)){gmlyard_target=1750;};if(yyfequal(gmlpos,3)){gmlyard_target=1350;};if(yyfequal(gmlpos,4)){gmlyard_target=2100; };gmlrating=clamp(yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlyards),__yy_gml_errCheck(gmlyard_target))),100),1,150);gmlrating=yyfminus(gmlrating,yyftime(__yy_gml_errCheck(gmlfumbles),5));gmlrating=yyfplus(gmlrating,yyftime(__yy_gml_errCheck(gmltds),1.25));gmlrating=round(gmlrating);if((yyGetBool(yyfgreater(gmlgames,gmlmin_games)))&&(yyGetBool(gmlwon_div))){{if((yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"age"),gml_Script_s_rookie_age_internal(__yy__v1767,_inst))))&&(yyGetBool(yyfgreaterequal(gmlrating, gmlroty_rating)))){{gmlroty_rating=gmlrating;gmlroty=gmlpmap;};}else {if(yyfgreaterequal(gmlrating,gmlmvp_rating)){{gmlmvp_rating=gmlrating;gmlmvp=gmlpmap;};}else {if(yyfgreaterequal(gmlrating,gmlopoy_rating)){{gmlopoy_rating=gmlrating;gmlopoy=gmlpmap;};};};};};};break;}case 2:{gmlrating=yyftime(__yy_gml_errCheck(gmltackles),1.25);break;if((yyGetBool(yyfgreater(gmlgames,gmlmin_games)))&&(yyGetBool(gmlwon_div))){{if(yyfgreaterequal(gmlrating,gmlopoy_rating)){{gmlopoy_rating=gmlrating;gmlopoy=gmlpmap; };};};};break;}case 3:{gmlrating=yyftime(__yy_gml_errCheck(gmltackles),0.5);gmlrating=yyfplus(gmlrating,yyftime(__yy_gml_errCheck(gmlints),3));gmlrating=yyfplus(gmlrating,yyftime(__yy_gml_errCheck(gmlsacks),3));gmlrating=yyfplus(gmlrating,yyftime(__yy_gml_errCheck(gmlfumbles),3));gmlrating=round(gmlrating);if((yyGetBool(yyfgreater(gmlgames,gmlmin_games)))&&(yyGetBool(gmlwon_div))){{if(yyfgreaterequal(gmlrating,gmldpoy_rating)){{gmldpoy_rating=gmlrating;gmldpoy=gmlpmap;};};};};break;}case 4:{gmlrating=clamp(yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlyards), 4000)),100),1,100);gmlrating=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(gmlrating),__yy_gml_errCheck(gmlcomp_prc))),2);gmlrating=round(gmlrating);if((yyGetBool(yyfgreater(gmlgames,gmlmin_games)))&&(yyGetBool(gmlwon_div))){{if((yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"age"),gml_Script_s_rookie_age_internal(__yy__v1767,_inst))))&&(yyGetBool(yyfgreaterequal(gmlrating,gmlroty_rating)))){{gmlroty_rating=gmlrating;gmlroty=gmlpmap;};};};};break;}};gmldebug_msg=yyfplus(gmldebug_msg,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_position(__yy__v1767, _inst,gmlpos))," "),__yy_gml_errCheck(gml_Script_s_get_player_name(__yy__v1767,_inst,gmlpmap,true))),"... "),__yy_gml_errCheck(gml_Script_s_get_string_performance(__yy__v1767,_inst,gmlrating))),"#"));}};gmldebug_msg=string_hash_to_newline(gmldebug_msg);gml_Script_slog(__yy__v1767,_inst,gmldebug_msg);gml_Script_s_add_news(__yy__v1767,_inst,gmldebug_msg);if(yyGetBool(gmlmvp)){{if(yyGetBool(ds_map_exists(gmlmvp,"mvp"))){ds_map_set(gmlmvp,"mvp",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlmvp,"mvp")), 1));}else {ds_map_set(gmlmvp,"mvp",1);};var gmlmsg=string_replace(gml_Script_s_str(__yy__v1767,_inst,"news_mvp"),"$playername",gml_Script_s_get_player_name(__yy__v1767,_inst,gmlmvp,false));gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position_full(__yy__v1767,_inst,ds_map_find_value(gmlmvp,"position")));gml_Script_s_add_news(__yy__v1767,_inst,gmlmsg);};};if(yyGetBool(gmlopoy)){{if(yyGetBool(ds_map_exists(gmlopoy,"opoy"))){ds_map_set(gmlopoy,"opoy",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlopoy, "opoy")),1));}else {ds_map_set(gmlopoy,"opoy",1);};var gmlmsg=string_replace(gml_Script_s_str(__yy__v1767,_inst,"news_opoy"),"$playername",gml_Script_s_get_player_name(__yy__v1767,_inst,gmlopoy,false));gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position_full(__yy__v1767,_inst,ds_map_find_value(gmlopoy,"position")));gml_Script_s_add_news(__yy__v1767,_inst,gmlmsg);};};if(yyGetBool(gmldpoy)){{if(yyGetBool(ds_map_exists(gmldpoy,"dpoy"))){ds_map_set(gmldpoy,"dpoy",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmldpoy, "dpoy")),1));}else {ds_map_set(gmldpoy,"dpoy",1);};var gmlmsg=string_replace(gml_Script_s_str(__yy__v1767,_inst,"news_dpoy"),"$playername",gml_Script_s_get_player_name(__yy__v1767,_inst,gmldpoy,false));gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position_full(__yy__v1767,_inst,ds_map_find_value(gmldpoy,"position")));gml_Script_s_add_news(__yy__v1767,_inst,gmlmsg);};};if(yyGetBool(gmlroty)){{if(yyGetBool(ds_map_exists(gmlroty,"roty"))){ds_map_set(gmlroty,"roty",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlroty, "roty")),1));}else {ds_map_set(gmlroty,"roty",1);};var gmlmsg=string_replace(gml_Script_s_str(__yy__v1767,_inst,"news_roty"),"$playername",gml_Script_s_get_player_name(__yy__v1767,_inst,gmlroty,false));gmlmsg=string_replace(gmlmsg,"$position",gml_Script_s_get_string_position_full(__yy__v1767,_inst,ds_map_find_value(gmlroty,"position")));gml_Script_s_add_news(__yy__v1767,_inst,gmlmsg);};};}}};}}function gml_Script_s_do_player_awards_college(_inst,_other){{{var __yy__v1768=GetWithArray(YYASSET_REF(0x00000062)); for(var __yy__v1769 in __yy__v1768){if(!__yy__v1768.hasOwnProperty(__yy__v1769))continue;var __yy__v1770=__yy__v1768[__yy__v1769];{if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_awards_done,true)){{return;};};yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_awards_done=true;var gmlhackForceAwards=false;var gmlFBS_REQ_RANKING=15;var gmlFBC_REQ_RANKING=5;var gmlMIN_GAMES_PLAYED=12;gml_Script_slog2(__yy__v1770,_inst,"3.s_do_player_awards_college");if(yyfequal(ds_list_size(__yy__v1770.gmlroster), 0)){{gml_Script_slog(__yy__v1770,_inst,"- Bail. No players on roster");return;};};var gmlFBSrank=gml_Script_s_subdivision_get_player_ranking(__yy__v1770,_inst,1);var gmlFCSrank=gml_Script_s_subdivision_get_player_ranking(__yy__v1770,_inst,2);if(yyGetBool(gmlhackForceAwards)){{gmlFBSrank=9;};};var gmlinTopFBS=(yyGetBool(yyfnotequal(gmlFBSrank,(-1))))&&(yyGetBool(yyflessequal(gmlFBSrank,gmlFBS_REQ_RANKING)));var gmlinTopFCS=(yyGetBool(yyfnotequal(gmlFCSrank,(-1))))&&(yyGetBool(yyflessequal(gmlFCSrank, gmlFBC_REQ_RANKING)));gml_Script_slog(__yy__v1770,_inst,yyfplus(yyfplus(yyfplus(yyfplus("- Team Ranking FBS[",__yy_gml_errCheck(string(gmlFBSrank))),"] FCS["),__yy_gml_errCheck(string(gmlFCSrank))),"]"));if((yyGetBool(yyfequal(gmlinTopFBS,false)))&&(yyGetBool(yyfequal(gmlinTopFCS,false)))){{gml_Script_slog(__yy__v1770,_inst,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("- Bailing, no awards. FCSrank[",__yy_gml_errCheck(string(gmlFCSrank))),"] worse than FBC_REQ_RANKING["),__yy_gml_errCheck(string(gmlFBC_REQ_RANKING))), "] or FBSrank["),__yy_gml_errCheck(string(gmlFBSrank))),"] worse than FBS_REQ_RANKING["),__yy_gml_errCheck(string(gmlFBS_REQ_RANKING))),"]"));return;};};gml_Script_slog(__yy__v1770,_inst,"- Calculate player ratings:");var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1770.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1770.gmlroster,gmli);ds_map_set(gmlpmap,"award_rating",0);ds_map_set(gmlpmap, "award_recieved","");var gmlgames=ds_map_find_value(gmlpmap,"season_games");if((yyGetBool(yyfless(gmlgames,gmlMIN_GAMES_PLAYED)))&&(yyGetBool(yyfequal(gmlhackForceAwards,false)))){{gml_Script_slog(__yy__v1770,_inst,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("-- Player[",__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))),"]: Skipped. Only played ["),__yy_gml_errCheck(string(gmlgames))),"/"),__yy_gml_errCheck(string(gmlMIN_GAMES_PLAYED))),"]"));continue;};};var gmlpos=ds_map_find_value(gmlpmap, "position");var gmlyards=yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"season_yards")),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"season_rush_yards")),1.35)));var gmlavg_yds=yyfdivide(__yy_gml_errCheck(gmlyards),__yy_gml_errCheck(gmlgames));var gmltds=ds_map_find_value(gmlpmap,"season_touchdowns");var gmlfumbles=ds_map_find_value(gmlpmap,"season_fumbles");var gmltackles=ds_map_find_value(gmlpmap,"season_tackles");var gmlints=ds_map_find_value(gmlpmap,"season_int");var gmlsacks=ds_map_find_value(gmlpmap, "season_sacks");var gmlatts=ds_map_find_value(gmlpmap,"season_attempts");var gmlcomp=ds_map_find_value(gmlpmap,"season_complete");if((yyGetBool(ds_map_exists(gmlpmap,"season_attempts_XP")))&&(yyGetBool(ds_map_exists(gmlpmap,"season_complete_XP")))){{gmlatts=yyfplus(gmlatts,string(round(ds_map_find_value(gmlpmap,"season_attempts_XP"))));gmlcomp=yyfplus(gmlcomp,string(round(ds_map_find_value(gmlpmap,"season_complete_XP"))));};};var gmlcomp_prc=0;if(yyfgreater(gmlatts,0)){gmlcomp_prc=yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlcomp), __yy_gml_errCheck(gmlatts))),100);};var gmlrating=0;var gmlyard_target=1;var ___sw1492___=gmlpos;var ___swc1493___=-1;if(yyCompareVal(___sw1492___,1,g_GMLMathEpsilon,false)==0){___swc1493___=0;}else if(yyCompareVal(___sw1492___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1492___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1492___,4,g_GMLMathEpsilon,false)==0){___swc1493___=1;}else if(yyCompareVal(___sw1492___,5,g_GMLMathEpsilon,false)==0){___swc1493___=2;}else if(yyCompareVal(___sw1492___,6,g_GMLMathEpsilon, false)==0||yyCompareVal(___sw1492___,7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1492___,8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1492___,9,g_GMLMathEpsilon,false)==0){___swc1493___=3;}else if(yyCompareVal(___sw1492___,10,g_GMLMathEpsilon,false)==0){___swc1493___=4;}switch(___swc1493___){case 0:{gmlrating=clamp(yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlyards),3300)),100),1,150);gmlrating=yyfplus(gmlrating,gmltds);gmlrating=yyfminus(gmlrating,gmlints);gmlrating=yyfminus(gmlrating, yyftime(__yy_gml_errCheck(gmlsacks),0.5));gmlrating=round(gmlrating);break;}case 1:{if(yyfequal(gmlpos,2)){gmlyard_target=1750;};if(yyfequal(gmlpos,3)){gmlyard_target=1350;};if(yyfequal(gmlpos,4)){gmlyard_target=2100;};gmlrating=clamp(yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlyards),__yy_gml_errCheck(gmlyard_target))),100),1,150);gmlrating=yyfminus(gmlrating,yyftime(__yy_gml_errCheck(gmlfumbles),5));gmlrating=yyfplus(gmlrating,yyftime(__yy_gml_errCheck(gmltds),1.25));gmlrating=round(gmlrating); break;}case 2:{gmlrating=yyftime(__yy_gml_errCheck(gmltackles),1.25);break;}case 3:{gmlrating=yyftime(__yy_gml_errCheck(gmltackles),0.5);gmlrating=yyfplus(gmlrating,yyftime(__yy_gml_errCheck(gmlints),3));gmlrating=yyfplus(gmlrating,yyftime(__yy_gml_errCheck(gmlsacks),3));gmlrating=yyfplus(gmlrating,yyftime(__yy_gml_errCheck(gmlfumbles),3));gmlrating=round(gmlrating);break;}case 4:{gmlrating=clamp(yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlyards),4000)),100),1,100);gmlrating=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(gmlrating), __yy_gml_errCheck(gmlcomp_prc))),2);gmlrating=round(gmlrating);break;}};if(yyGetBool(gmlhackForceAwards)){{gmlrating=irandom_range(70,99);};};ds_map_set(gmlpmap,"award_rating",gmlrating);gml_Script_slog(__yy__v1770,_inst,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("-- Player[",__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))),"]: Rating["),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"award_rating")))),"] for pos "),__yy_gml_errCheck(gml_Script_s_get_string_position(__yy__v1770,_inst,ds_map_find_value(gmlpmap, "position")))));}};__yy__v1770.gmlroster=gml_Script_s_sort_players(__yy__v1770,_inst,__yy__v1770.gmlroster,6);gml_Script_slog(__yy__v1770,_inst,"- Players sorted by rating:");var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1770.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1770.gmlroster,gmli);gml_Script_slog(__yy__v1770,_inst,yyfplus(yyfplus(yyfplus(yyfplus("-- Player[",__yy_gml_errCheck(ds_map_find_value(gmlpmap, "lname"))),"] award_rating:["),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"award_rating")))),"]"));}};gml_Script_slog(__yy__v1770,_inst,"- Assign awards:");gml_Script_s_Award_OutstandingPOTY(__yy__v1770,_inst);gml_Script_s_Award_ExtraordinaryAcademicPOTY(__yy__v1770,_inst);gml_Script_s_Award_OffensivePOTY(__yy__v1770,_inst);gml_Script_s_Award_DefensivePOTY(__yy__v1770,_inst);gml_Script_s_Award_PositionPOTY(__yy__v1770,_inst,1,"cv_QuarterbackPOTY");gml_Script_s_Award_PositionPOTY(__yy__v1770, _inst,2,"cv_RunningBackPOTY");gml_Script_s_Award_PositionPOTY(__yy__v1770,_inst,3,"cv_TightEndPOTY");gml_Script_s_Award_PositionPOTY(__yy__v1770,_inst,4,"cv_WideReceiverPOTY");gml_Script_s_Award_PositionPOTY(__yy__v1770,_inst,5,"cv_OffensiveLinemanPOTY");gml_Script_s_Award_PositionPOTY(__yy__v1770,_inst,6,"cv_DefensiveLinemanPOTY");gml_Script_s_Award_AnyPositionPOTY(__yy__v1770,_inst,9,8,"cv_DefensiveBackPOTY");gml_Script_s_Award_PositionPOTY(__yy__v1770,_inst,7,"cv_LinebackerPOTY");gml_Script_s_Award_PositionPOTY(__yy__v1770, _inst,10,"cv_KickerPOTY");gml_Script_s_Award_CommunityServicePOTY(__yy__v1770,_inst);gml_Script_s_Award_WalkOnPOTY(__yy__v1770,_inst);gml_Script_s_Award_FreshmanPOTY(__yy__v1770,_inst);var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1770.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1770.gmlroster,gmli);if(yyfequal(ds_map_find_value(gmlpmap,"award_recieved"),"")){{continue;};};var gmlnewsTag=yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap, "award_recieved")),"_news");if(yyGetBool(gml_Script_s_college_academics_type(__yy__v1770,_inst,"Military"))){{gmlnewsTag=yyfplus("cvMilitary_",__yy_gml_errCheck(string_delete(gmlnewsTag,1,3)));};};gml_Script_s_add_news(__yy__v1770,_inst,gml_Script_s_parse_player_message(__yy__v1770,_inst,gml_Script_s_str(__yy__v1770,_inst,gmlnewsTag),gmlpmap));gml_Script_s_add_cv_entry_from_key(__yy__v1770,_inst,gmlpmap,ds_map_find_value(gmlpmap,"award_recieved"));}};gml_Script_s_Award_AcademicPrize(__yy__v1770, _inst);var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1770.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_map_delete(ds_list_find_value(__yy__v1770.gmlroster,gmli),"award_rating");ds_map_delete(ds_list_find_value(__yy__v1770.gmlroster,gmli),"award_recieved");}};__yy__v1770.gmlroster=gml_Script_s_sort_players(__yy__v1770,_inst,__yy__v1770.gmlroster,4);}}};}}function gml_Script_s_Award_OutstandingPOTY(_inst,_other){{var gmlAWARD_RATING=95; {var __yy__v1771=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1772 in __yy__v1771){if(!__yy__v1771.hasOwnProperty(__yy__v1772))continue;var __yy__v1773=__yy__v1771[__yy__v1772];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1773.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1773.gmlroster,gmli);if(yyfnotequal(ds_map_find_value(gmlpmap,"award_recieved"),"")){{continue;};};if(yyfless(ds_map_find_value(gmlpmap, "award_rating"),gmlAWARD_RATING)){{break;};};ds_map_set(gmlpmap,"award_recieved","cv_OutstandingPOTY");gml_Script_slog(__yy__v1773,_inst,yyfplus(yyfplus(yyfplus(yyfplus("-- Player[",__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))),"] got ["),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"award_recieved"))),"]"));return;}};}}};}}function gml_Script_s_Award_ExtraordinaryAcademicPOTY(_inst,_other){{var gmlAWARD_RATING=80;var gmlGPA_SCORE=93;{var __yy__v1774=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1775 in __yy__v1774){ if(!__yy__v1774.hasOwnProperty(__yy__v1775))continue;var __yy__v1776=__yy__v1774[__yy__v1775];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1776.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1776.gmlroster,gmli);if(yyfnotequal(ds_map_find_value(gmlpmap,"award_recieved"),"")){{continue;};};if(yyfless(ds_map_find_value(gmlpmap,"award_rating"),gmlAWARD_RATING)){{break;};};if(yyfgreaterequal(ds_map_find_value(gmlpmap, "percent_grade"),gmlGPA_SCORE)){{ds_map_set(gmlpmap,"award_recieved","cv_ExtraordinaryAcademicPOTY");gml_Script_slog(__yy__v1776,_inst,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("-- Player[",__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))),"] got ["),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"award_recieved"))),"] grade ["),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"percent_grade")))),"]"));return;};};}};}}};}}function gml_Script_s_Award_OffensivePOTY(_inst,_other){{var gmlAWARD_RATING=90; {var __yy__v1777=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1778 in __yy__v1777){if(!__yy__v1777.hasOwnProperty(__yy__v1778))continue;var __yy__v1779=__yy__v1777[__yy__v1778];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1779.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1779.gmlroster,gmli);if(yyfnotequal(ds_map_find_value(gmlpmap,"award_recieved"),"")){{continue;};};if(yyfless(ds_map_find_value(gmlpmap, "award_rating"),gmlAWARD_RATING)){{break;};};var ___sw1494___=ds_map_find_value(gmlpmap,"position");var ___swc1495___=-1;if(yyCompareVal(___sw1494___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1494___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1494___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1494___,4,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1494___,5,g_GMLMathEpsilon,false)==0){___swc1495___=0;}switch(___swc1495___){case 0:{{ds_map_set(gmlpmap,"award_recieved","cv_OffensivePOTY"); gml_Script_slog(__yy__v1779,_inst,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("-- Player[",__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))),"] got ["),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"award_recieved"))),"] pos ["),__yy_gml_errCheck(gml_Script_s_get_string_position(__yy__v1779,_inst,ds_map_find_value(gmlpmap,"position")))),"]"));return;};}};}};}}};}}function gml_Script_s_Award_DefensivePOTY(_inst,_other){{var gmlAWARD_RATING=90;{var __yy__v1780=GetWithArray(YYASSET_REF(0x00000062)); for(var __yy__v1781 in __yy__v1780){if(!__yy__v1780.hasOwnProperty(__yy__v1781))continue;var __yy__v1782=__yy__v1780[__yy__v1781];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1782.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1782.gmlroster,gmli);if(yyfnotequal(ds_map_find_value(gmlpmap,"award_recieved"),"")){{continue;};};if(yyfless(ds_map_find_value(gmlpmap,"award_rating"),gmlAWARD_RATING)){ {break;};};var ___sw1496___=ds_map_find_value(gmlpmap,"position");var ___swc1497___=-1;if(yyCompareVal(___sw1496___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1496___,7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1496___,8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1496___,9,g_GMLMathEpsilon,false)==0){___swc1497___=0;}switch(___swc1497___){case 0:{{ds_map_set(gmlpmap,"award_recieved","cv_DefensivePOTY");gml_Script_slog(__yy__v1782,_inst,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("-- Player[", __yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))),"] got ["),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"award_recieved"))),"] pos ["),__yy_gml_errCheck(gml_Script_s_get_string_position(__yy__v1782,_inst,ds_map_find_value(gmlpmap,"position")))),"]"));return;};}};}};}}};}}function gml_Script_s_Award_PositionPOTY(_inst,_other,argument0,argument1){{var gmlAWARD_RATING=85;{var __yy__v1783=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1784 in __yy__v1783){if(!__yy__v1783.hasOwnProperty(__yy__v1784))continue; var __yy__v1785=__yy__v1783[__yy__v1784];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1785.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1785.gmlroster,gmli);if(yyfnotequal(ds_map_find_value(gmlpmap,"award_recieved"),"")){{continue;};};if(yyfless(ds_map_find_value(gmlpmap,"award_rating"),gmlAWARD_RATING)){{break;};};if(yyfequal(ds_map_find_value(gmlpmap,"position"),argument0)){{ds_map_set(gmlpmap, "award_recieved",argument1);gml_Script_slog(__yy__v1785,_inst,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("-- Player[",__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))),"] got ["),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"award_recieved"))),"] pos ["),__yy_gml_errCheck(gml_Script_s_get_string_position(__yy__v1785,_inst,ds_map_find_value(gmlpmap,"position")))),"]"));return;};};}};}}};}}function gml_Script_s_Award_AnyPositionPOTY(_inst,_other,argument0,argument1,argument2){{var gmlAWARD_RATING=85; {var __yy__v1786=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1787 in __yy__v1786){if(!__yy__v1786.hasOwnProperty(__yy__v1787))continue;var __yy__v1788=__yy__v1786[__yy__v1787];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1788.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1788.gmlroster,gmli);if(yyfnotequal(ds_map_find_value(gmlpmap,"award_recieved"),"")){{continue;};};if(yyfless(ds_map_find_value(gmlpmap, "award_rating"),gmlAWARD_RATING)){{break;};};if((yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"position"),argument0)))||(yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"position"),argument1)))){{ds_map_set(gmlpmap,"award_recieved",argument2);gml_Script_slog(__yy__v1788,_inst,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("-- Player[",__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))),"] got ["),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"award_recieved"))),"] pos ["),__yy_gml_errCheck(gml_Script_s_get_string_position(__yy__v1788, _inst,ds_map_find_value(gmlpmap,"position")))),"]"));return;};};}};}}};}}function gml_Script_s_Award_CommunityServicePOTY(_inst,_other){{var gmlAWARD_RATING=80;{var __yy__v1789=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1790 in __yy__v1789){if(!__yy__v1789.hasOwnProperty(__yy__v1790))continue;var __yy__v1791=__yy__v1789[__yy__v1790];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1791.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ {var gmlpmap=ds_list_find_value(__yy__v1791.gmlroster,gmli);if(yyfnotequal(ds_map_find_value(gmlpmap,"award_recieved"),"")){{continue;};};if(yyfless(ds_map_find_value(gmlpmap,"award_rating"),gmlAWARD_RATING)){{break;};};var ___sw1498___=ds_map_find_value(gmlpmap,"hobby");var ___swc1499___=-1;if(yyCompareVal(___sw1498___,43,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1498___,60,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1498___,64,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1498___,94,g_GMLMathEpsilon, false)==0||yyCompareVal(___sw1498___,111,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1498___,112,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1498___,141,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1498___,166,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1498___,171,g_GMLMathEpsilon,false)==0){___swc1499___=0;}switch(___swc1499___){case 0:{{ds_map_set(gmlpmap,"award_recieved","cv_CommunityServicePOTY");gml_Script_slog(__yy__v1791,_inst,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("-- Player[", __yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))),"] got ["),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"award_recieved"))),"] hobby ["),__yy_gml_errCheck(gml_Script_s_get_hobby_name(__yy__v1791,_inst,gmlpmap,false))),"]"));return;};}};}};}}};}}function gml_Script_s_Award_WalkOnPOTY(_inst,_other){{var gmlAWARD_RATING=80;{var __yy__v1792=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1793 in __yy__v1792){if(!__yy__v1792.hasOwnProperty(__yy__v1793))continue;var __yy__v1794=__yy__v1792[__yy__v1793]; {var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1794.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1794.gmlroster,gmli);if(yyfnotequal(ds_map_find_value(gmlpmap,"award_recieved"),"")){{continue;};};if(yyfless(ds_map_find_value(gmlpmap,"award_rating"),gmlAWARD_RATING)){{break;};};if(yyfequal(ds_map_find_value(gmlpmap,"walk_on"),1)){{ds_map_set(gmlpmap,"award_recieved","cv_WalkOnPOTY"); gml_Script_slog(__yy__v1794,_inst,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("-- Player[",__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))),"] got ["),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"award_recieved"))),"] walk-on ["),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"walk_on")))),"]"));return;};};}};}}};}}function gml_Script_s_Award_FreshmanPOTY(_inst,_other){{var gmlAWARD_RATING=75;{var __yy__v1795=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1796 in __yy__v1795){if(!__yy__v1795.hasOwnProperty(__yy__v1796))continue; var __yy__v1797=__yy__v1795[__yy__v1796];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1797.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1797.gmlroster,gmli);if(yyfnotequal(ds_map_find_value(gmlpmap,"award_recieved"),"")){{continue;};};if(yyfless(ds_map_find_value(gmlpmap,"award_rating"),gmlAWARD_RATING)){{break;};};if(yyfequal(ds_map_find_value(gmlpmap,"age"),gml_Script_s_rookie_age_internal(__yy__v1797, _inst))){{ds_map_set(gmlpmap,"award_recieved","cv_FreshmanPOTY");gml_Script_slog(__yy__v1797,_inst,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("-- Player[",__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))),"] got ["),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"award_recieved"))),"] age ["),__yy_gml_errCheck(gml_Script_s_college_age_simple(__yy__v1797,_inst,gmlpmap))),"]"));return;};};}};}}};}}function gml_Script_s_Award_AcademicPrize(_inst,_other){{var gmlGPA_SCORE=90;{var __yy__v1798=GetWithArray(YYASSET_REF(0x00000062)); for(var __yy__v1799 in __yy__v1798){if(!__yy__v1798.hasOwnProperty(__yy__v1799))continue;var __yy__v1800=__yy__v1798[__yy__v1799];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1800.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1800.gmlroster,gmli);if(yyfgreaterequal(ds_map_find_value(gmlpmap,"percent_grade"),gmlGPA_SCORE)){{gml_Script_s_add_cv_entry_from_key(__yy__v1800,_inst,gmlpmap,"cv_AcademicPrize"); gml_Script_slog(__yy__v1800,_inst,yyfplus(yyfplus("-- Player[",__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))),"] got [cv_AcademicPrize]"));};};}};}}};}}function gml_GlobalScript_s_award_sb_rings(_inst,_other){(_inst.gmls_award_sb_rings=__yy_method(_inst,gml_Script_s_award_sb_rings));}function gml_Script_s_award_sb_rings(_inst,_other){{{var __yy__v1801=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1802 in __yy__v1801){if(!__yy__v1801.hasOwnProperty(__yy__v1802))continue;var __yy__v1803=__yy__v1801[__yy__v1802]; {var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1803.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1803.gmlroster,gmli);if(yyGetBool(ds_map_exists(gmlpmap,"rings"))){ds_map_set(gmlpmap,"rings",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"rings")),1));}else {ds_map_set(gmlpmap,"rings",1);};}};var gmloc=gml_Script_s_get_staff(__yy__v1803,_inst,102);var gmldc=gml_Script_s_get_staff(__yy__v1803, _inst,101);if(yyGetBool(gmloc)){{if(yyGetBool(ds_map_exists(gmloc,"rings"))){ds_map_set(gmloc,"rings",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmloc,"rings")),1));}else {ds_map_set(gmloc,"rings",1);};};};if(yyGetBool(gmldc)){{if(yyGetBool(ds_map_exists(gmldc,"rings"))){ds_map_set(gmldc,"rings",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmldc,"rings")),1));}else {ds_map_set(gmldc,"rings",1);};};};}}};}}function gml_GlobalScript_s_round_player_attributes(_inst,_other){(_inst.gmls_round_player_attributes=__yy_method(_inst, gml_Script_s_round_player_attributes));}function gml_Script_s_round_player_attributes(_inst,_other,argument0){{ds_map_set(argument0,"skill",round(ds_map_find_value(argument0,"skill")));ds_map_set(argument0,"speed",round(ds_map_find_value(argument0,"speed")));ds_map_set(argument0,"strength",round(ds_map_find_value(argument0,"strength")));ds_map_set(argument0,"stamina",round(ds_map_find_value(argument0,"stamina")));ds_map_set(argument0,"max_skill",round(ds_map_find_value(argument0,"max_skill")));ds_map_set(argument0, "max_speed",round(ds_map_find_value(argument0,"max_speed")));ds_map_set(argument0,"max_strength",round(ds_map_find_value(argument0,"max_strength")));ds_map_set(argument0,"max_stamina",round(ds_map_find_value(argument0,"max_stamina")));}}function gml_GlobalScript_s_get_store_player_by_position(_inst,_other,argument0,argument1){(_inst.gmls_get_store_player_by_position=__yy_method(_inst,gml_Script_s_get_store_player_by_position));}function gml_Script_s_get_store_player_by_position(_inst,_other,argument0, argument1){{var gmlpos=argument0;var gmlpage=argument1;{var __yy__v1804=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1805 in __yy__v1804){if(!__yy__v1804.hasOwnProperty(__yy__v1805))continue;var __yy__v1806=__yy__v1804[__yy__v1805];{var gmlcount=0;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1806.gmlstorelist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1806.gmlstorelist,gmli);if(yyfequal(ds_map_find_value(gmlpmap, "position"),gmlpos)){{(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__);if(yyfequal(gmlcount,gmlpage)){return gmlpmap;};};};}};}}};return(-4);}}function gml_GlobalScript_s_create_new_stafflist(_inst,_other){(_inst.gmls_create_new_stafflist=__yy_method(_inst,gml_Script_s_create_new_stafflist));}function gml_Script_s_create_new_stafflist(_inst,_other){{{var __yy__v1807=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1808 in __yy__v1807){ if(!__yy__v1807.hasOwnProperty(__yy__v1808))continue;var __yy__v1809=__yy__v1807[__yy__v1808];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1809.gmlstafflist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_map_destroy(ds_list_find_value(__yy__v1809.gmlstafflist,gmli));ds_list_set(__yy__v1809.gmlstafflist,gmli,(-1));}};ds_list_clear(__yy__v1809.gmlstafflist);ds_list_add(__yy__v1809.gmlstafflist,gml_Script_s_create_staff(__yy__v1809, _inst,101,1));ds_list_add(__yy__v1809.gmlstafflist,gml_Script_s_create_staff(__yy__v1809,_inst,102,1));}}};}}function gml_GlobalScript_s_create_staff(_inst,_other){(_inst.gmls_create_staff=__yy_method(_inst,gml_Script_s_create_staff));(_inst.gmls_create_headcoach_pmap=__yy_method(_inst,gml_Script_s_create_headcoach_pmap));}function gml_Script_s_create_staff(_inst,_other,argument0,argument1){{var gmllname=gml_Script_s_get_random_last_name(_inst,_other);while(yyGetBool(gml_Script_s_lastname_already_on_roster(_inst, _other,gmllname))){gmllname=gml_Script_s_get_random_last_name(_inst,_other)};var gmlpmap=ds_map_create();ds_map_set(gmlpmap,"randnum",irandom(999));ds_map_set(gmlpmap,"fname",gml_Script_s_get_random_first_name(_inst,_other,true));ds_map_set(gmlpmap,"lname",gmllname);ds_map_set(gmlpmap,"position",argument0);ds_map_set(gmlpmap,"age",irandom_range(35,59));ds_map_set(gmlpmap,"attitude",irandom_range(40,100));ds_map_set(gmlpmap,"rating",argument1);ds_map_set(gmlpmap,"contract",2);ds_map_set(gmlpmap,"teamid", (-1));ds_map_set(gmlpmap,"flash_time",0);ds_map_set(gmlpmap,"condition",100);ds_map_set(gmlpmap,"xp",0);ds_map_set(gmlpmap,"xp_level",argument1);ds_map_set(gmlpmap,"xp_gain",0);ds_map_set(gmlpmap,"trait",0);if((yyGetBool(yyfgreater(argument1,1)))&&(yyGetBool(irandom(1)))){ds_map_set(gmlpmap,"trait",irandom(9));};if((yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"trait"),1)))&&(yyGetBool(yyfless(ds_map_find_value(gmlpmap,"age"),55)))){ds_map_set(gmlpmap,"trait",0);};gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("Created staff member: ", __yy_gml_errCheck(ds_map_find_value(gmlpmap,"fname")))," "),__yy_gml_errCheck(gmllname))," ("),__yy_gml_errCheck(gml_Script_s_get_string_position_full(_inst,_other,argument0))),")"));ds_map_set(gmlpmap,"skin",irandom(1));if(yyGetBool(ds_map_find_value(gmlpmap,"skin"))){ds_map_set(gmlpmap,"skin",yyfplus(1,__yy_gml_errCheck(irandom(1))));};var gmlfgrid=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlface_grid_C;gmlpmap=gml_Script_s_choose_face(_inst,_other,gmlpmap,gmlfgrid);if(yyfequal(ds_map_find_value(gmlpmap, "face_x"),8)){ds_map_set(gmlpmap,"fname",gml_Script_s_get_random_first_name(_inst,_other,false));};return gmlpmap;}}function gml_Script_s_create_headcoach_pmap(_inst,_other){{var gmlpmap=ds_map_create();ds_map_set(gmlpmap,"randnum",irandom(999));ds_map_set(gmlpmap,"fname",yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfname);ds_map_set(gmlpmap,"lname",yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllname);ds_map_set(gmlpmap,"position",100);ds_map_set(gmlpmap,"age",yyfplus(35,__yy_gml_errCheck(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlyear)));ds_map_set(gmlpmap,"attitude",round(yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfans),__yy_gml_errCheck(gml_Script_s_get_morale(_inst,_other)))),2)));ds_map_set(gmlpmap,"rating",ceil(yyfdivide(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_rating),2)));ds_map_set(gmlpmap,"contract",9);ds_map_set(gmlpmap,"teamid",yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id);ds_map_set(gmlpmap, "flash_time",(-9999));ds_map_set(gmlpmap,"condition",100);ds_map_set(gmlpmap,"xp",0);ds_map_set(gmlpmap,"xp_level",yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear);ds_map_set(gmlpmap,"xp_gain",0);ds_map_set(gmlpmap,"trait",0);gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("Created staff member: ",__yy_gml_errCheck(ds_map_find_value(gmlpmap,"fname")))," "),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname")))," ("),__yy_gml_errCheck(gml_Script_s_get_string_position_full(_inst, _other,100))),")"));ds_map_set(gmlpmap,"skin",1);ds_map_set(gmlpmap,"face_x",yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyface_x);ds_map_set(gmlpmap,"face_y",yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyface_y);return gmlpmap;}}function gml_GlobalScript_s_create_hirelist(_inst,_other,argument0,argument1){(_inst.gmls_create_hirelist=__yy_method(_inst,gml_Script_s_create_hirelist));}function gml_Script_s_create_hirelist(_inst,_other,argument0,argument1){{gml_Script_slog(_inst,_other,"s_create_hirelist"); var gmlrefresh=argument0;var gmlcurrent_of=gml_Script_s_get_staff(_inst,_other,102);var gmlcurrent_df=gml_Script_s_get_staff(_inst,_other,101);var gmlof_rat=ds_map_find_value(gmlcurrent_of,"rating");var gmldf_rat=ds_map_find_value(gmlcurrent_df,"rating");if(yyGetBool(argument1)){{if(yyfless(gmlof_rat,5)){gmlof_rat=5;};if(yyfless(gmldf_rat,5)){gmldf_rat=5;};};};{var __yy__v1810=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1811 in __yy__v1810){if(!__yy__v1810.hasOwnProperty(__yy__v1811))continue;var __yy__v1812=__yy__v1810[__yy__v1811]; {if(yyGetBool(gmlrefresh)){{var gmlsize=ds_list_size(__yy__v1812.gmlhirelist);if(yyGetBool(gmlsize)){{var gmli=irandom(yyfminus(__yy_gml_errCheck(gmlsize),1));ds_map_destroy(ds_list_find_value(__yy__v1812.gmlhirelist,gmli));ds_list_set(__yy__v1812.gmlhirelist,gmli,(-1));ds_list_delete(__yy__v1812.gmlhirelist,gmli);};};};};while(yyfless(gml_Script_s_count_hires_by_position(__yy__v1812,_inst,102),4)){{ds_list_add(__yy__v1812.gmlhirelist,gml_Script_s_create_staff(__yy__v1812,_inst,102,clamp(yyfplus(__yy_gml_errCheck(gmlof_rat), __yy_gml_errCheck(irandom(6))),2,10)));}};while(yyfless(gml_Script_s_count_hires_by_position(__yy__v1812,_inst,101),4)){{ds_list_add(__yy__v1812.gmlhirelist,gml_Script_s_create_staff(__yy__v1812,_inst,101,clamp(yyfplus(__yy_gml_errCheck(gmldf_rat),__yy_gml_errCheck(irandom(6))),2,10)));}};__yy__v1812.gmlhirelist=gml_Script_s_sort_hirelist(__yy__v1812,_inst,__yy__v1812.gmlhirelist);}}};}}function gml_GlobalScript_s_sort_hirelist(_inst,_other,argument0){(_inst.gmls_sort_hirelist=__yy_method(_inst,gml_Script_s_sort_hirelist)); }function gml_Script_s_sort_hirelist(_inst,_other,argument0){{gml_Script_slog(_inst,_other,"s_sort_hirelist");var gmlplist=argument0;var gmlsortedlist=ds_list_create();while(yyfgreater(ds_list_size(gmlplist),0)){{var gmlbestplayer=(-4);var gmli=0;for(;yyfless(gmli,ds_list_size(gmlplist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(gmlplist,gmli);if(!yyGetBool(gmlbestplayer)){gmlbestplayer=gmlpmap;}else {if(yyfless(ds_map_find_value(gmlpmap, "position"),ds_map_find_value(gmlbestplayer,"position"))){gmlbestplayer=gmlpmap;}else {if(yyfequal(ds_map_find_value(gmlpmap,"position"),ds_map_find_value(gmlbestplayer,"position"))){{if(yyGetBool(ds_map_exists(gmlpmap,"rating"))){{if(yyfless(ds_map_find_value(gmlpmap,"rating"),ds_map_find_value(gmlbestplayer,"rating"))){gmlbestplayer=gmlpmap;};};}else {{if(yyfgreater(gml_Script_s_get_player_rating(_inst,_other,gmlpmap),gml_Script_s_get_player_rating(_inst,_other,gmlbestplayer))){gmlbestplayer=gmlpmap; };};};};};};};}};ds_list_add(gmlsortedlist,gmlbestplayer);var gmli=ds_list_find_index(gmlplist,gmlbestplayer);ds_list_delete(gmlplist,gmli);}};ds_list_destroy(gmlplist);gmlplist=(-1);return gmlsortedlist;}}function gml_GlobalScript_s_reset_staff_hire_list(_inst,_other){(_inst.gmls_reset_staff_hire_list=__yy_method(_inst,gml_Script_s_reset_staff_hire_list));}function gml_Script_s_reset_staff_hire_list(_inst,_other,argument0){{{var __yy__v1813=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1814 in __yy__v1813){ if(!__yy__v1813.hasOwnProperty(__yy__v1814))continue;var __yy__v1815=__yy__v1813[__yy__v1814];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1815.gmlhirelist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_map_destroy(ds_list_find_value(__yy__v1815.gmlhirelist,gmli));ds_list_set(__yy__v1815.gmlhirelist,gmli,(-1));}};ds_list_clear(__yy__v1815.gmlhirelist);gml_Script_s_create_hirelist(__yy__v1815,_inst,false,argument0);gml_Script_s_savegame(__yy__v1815, _inst);}}};}}function gml_GlobalScript_s_get_staff(_inst,_other){(_inst.gmls_get_staff=__yy_method(_inst,gml_Script_s_get_staff));}function gml_Script_s_get_staff(_inst,_other,argument0){{{var __yy__v1816=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1817 in __yy__v1816){if(!__yy__v1816.hasOwnProperty(__yy__v1817))continue;var __yy__v1818=__yy__v1816[__yy__v1817];{if(yyfequal(argument0,100)){{if(yyfnotequal(__yy__v1818.gmlboss_profile,(-4))){{ds_map_destroy(__yy__v1818.gmlboss_profile);__yy__v1818.gmlboss_profile=(-4); };};__yy__v1818.gmlboss_profile=gml_Script_s_create_headcoach_pmap(__yy__v1818,_inst);return __yy__v1818.gmlboss_profile;};}else {{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1818.gmlstafflist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1818.gmlstafflist,gmli);if(yyfequal(ds_map_find_value(gmlpmap,"position"),argument0)){return gmlpmap;};}};};};}}};return(-4);}}function gml_GlobalScript_s_is_staff(_inst, _other){(_inst.gmls_is_staff=__yy_method(_inst,gml_Script_s_is_staff));}function gml_Script_s_is_staff(_inst,_other,argument0){{if(yyfless(argument0,100)){return false;};return true;}}function gml_GlobalScript_s_get_coach_cost(_inst,_other,argument0){(_inst.gmls_get_coach_cost=__yy_method(_inst,gml_Script_s_get_coach_cost));}function gml_Script_s_get_coach_cost(_inst,_other,argument0){{var gmlpmap=argument0;var gmlval=yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"rating")),2.5);if(yyGetBool(ds_map_find_value(gmlpmap, "trait"))){gmlval=yyfplus(gmlval,5);};return round(gmlval);}}function gml_GlobalScript_s_coach_trait_experience(_inst,_other){(_inst.gmls_coach_trait_experience=__yy_method(_inst,gml_Script_s_coach_trait_experience));}function gml_Script_s_coach_trait_experience(_inst,_other,argument0){{var gmlxpmap=(-4);{var __yy__v1819=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1820 in __yy__v1819){if(!__yy__v1819.hasOwnProperty(__yy__v1820))continue;var __yy__v1821=__yy__v1819[__yy__v1820];{var gmli=0;for(;yyfless(gmli, ds_list_size(__yy__v1821.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1821.gmlroster,gmli);if(yyfequal(gml_Script_s_is_offensive_player(__yy__v1821,_inst,argument0),gml_Script_s_is_offensive_player(__yy__v1821,_inst,gmlpmap))){{if(!yyGetBool(gmlxpmap)){gmlxpmap=gmlpmap;};ds_map_set(gmlpmap,"xp",yyftime(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"xp_level")),100));ds_map_set(gmlpmap,"xp_gain", round(yyfplus(__yy_gml_errCheck(real(ds_map_find_value(gmlpmap,"xp_gain"))),10)));};};}};}}};if(yyGetBool(gmlxpmap)){{_inst.gmlplayer_profile=gmlxpmap;room_goto(YYASSET_REF(0x03000016));};}else {{room_goto(YYASSET_REF(0x03000009));};};}}function gml_GlobalScript_s_coach_trait_talentspotter(_inst,_other,argument0){(_inst.gmls_coach_trait_talentspotter=__yy_method(_inst,gml_Script_s_coach_trait_talentspotter));}function gml_Script_s_coach_trait_talentspotter(_inst,_other,argument0){{var gmlsmap=argument0; {var __yy__v1822=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1823 in __yy__v1822){if(!__yy__v1822.hasOwnProperty(__yy__v1823))continue;var __yy__v1824=__yy__v1822[__yy__v1823];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1824.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1824.gmlroster,gmli);if(yyfequal(gml_Script_s_is_offensive_player(__yy__v1824,_inst,gmlsmap),gml_Script_s_is_offensive_player(__yy__v1824, _inst,gmlpmap))){{var gmlcurrent_pot=gml_Script_s_get_player_potential(__yy__v1824,_inst,gmlpmap);gml_Script_slog(__yy__v1824,_inst,yyfplus("Player = ",__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))));gml_Script_slog(__yy__v1824,_inst,yyfplus("s_get_player_potential = ",__yy_gml_errCheck(string(gmlcurrent_pot))));if(yyfless(gmlcurrent_pot,10)){{while(yyflessequal(gml_Script_s_get_player_potential(__yy__v1824,_inst,gmlpmap),gmlcurrent_pot)){{var ___sw1502___=irandom(3);var ___swc1503___=-1;if(yyCompareVal(___sw1502___, 0,g_GMLMathEpsilon,false)==0){___swc1503___=0;}else if(yyCompareVal(___sw1502___,1,g_GMLMathEpsilon,false)==0){___swc1503___=1;}else if(yyCompareVal(___sw1502___,2,g_GMLMathEpsilon,false)==0){___swc1503___=2;}else if(yyCompareVal(___sw1502___,3,g_GMLMathEpsilon,false)==0){___swc1503___=3;}switch(___swc1503___){case 0:{ds_map_set(gmlpmap,"max_stamina",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"max_stamina")),1));break;}case 1:{ds_map_set(gmlpmap,"max_speed",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap, "max_speed")),1));break;}case 2:{ds_map_set(gmlpmap,"max_strength",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"max_strength")),1));break;}case 3:{ds_map_set(gmlpmap,"max_skill",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"max_skill")),1));break;}};if(yyfgreater(ds_map_find_value(gmlpmap,"max_stamina"),10)){ds_map_set(gmlpmap,"max_stamina",10);};if(yyfgreater(ds_map_find_value(gmlpmap,"max_speed"),10)){ds_map_set(gmlpmap,"max_speed",10);};if(yyfgreater(ds_map_find_value(gmlpmap,"max_strength"), 10)){ds_map_set(gmlpmap,"max_strength",10);};if(yyfgreater(ds_map_find_value(gmlpmap,"max_skill"),10)){ds_map_set(gmlpmap,"max_skill",10);};}};};};gml_Script_slog(__yy__v1824,_inst,yyfplus("now s_get_player_potential = ",__yy_gml_errCheck(string(gml_Script_s_get_player_potential(__yy__v1824,_inst,gmlpmap)))));};};}};}}};}}function gml_GlobalScript_s_coach_trait_motivator(_inst,_other,argument0){(_inst.gmls_coach_trait_motivator=__yy_method(_inst,gml_Script_s_coach_trait_motivator));}function gml_Script_s_coach_trait_motivator(_inst, _other,argument0){{var gmlsmap=argument0;{var __yy__v1825=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1826 in __yy__v1825){if(!__yy__v1825.hasOwnProperty(__yy__v1826))continue;var __yy__v1827=__yy__v1825[__yy__v1826];{gml_Script_s_meter_change(__yy__v1827,_inst,4,gml_Script_s_get_morale(__yy__v1827,_inst),YYASSET_REF(0x03000009),"");var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1827.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ {var gmlpmap=ds_list_find_value(__yy__v1827.gmlroster,gmli);if(yyGetBool(gmlpmap)){{if(yyfequal(gml_Script_s_is_offensive_player(__yy__v1827,_inst,gmlsmap),gml_Script_s_is_offensive_player(__yy__v1827,_inst,gmlpmap))){{ds_map_set(gmlpmap,"attitude",yyfplus(__yy_gml_errCheck(real(ds_map_find_value(gmlpmap,"attitude"))),15));if(yyfgreater(ds_map_find_value(gmlpmap,"attitude"),100)){ds_map_set(gmlpmap,"attitude",100);};};};};};}};}}};}}function gml_GlobalScript_btn_click_qb_training(_inst,_other){(_inst.gmlbtn_click_qb_training=__yy_method(_inst, gml_Script_btn_click_qb_training));(_inst.gmls_do_qb_training=__yy_method(_inst,gml_Script_s_do_qb_training));}function gml_Script_btn_click_qb_training(_inst,_other){{var gmlqb=gml_Script_s_get_qb_pmap(_inst,_other);if(yyfless(ds_map_find_value(gmlqb,"condition"),40)){gml_Script_s_do_message(_inst,_other,gml_Script_s_str(_inst,_other,"msg_TrainingEnergyTooLow"));}else {if(yyflessequal(yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlqb,"condition")),40),40)){gml_Script_s_create_message(_inst,_other, "",gml_Script_s_str(_inst,_other,"msg_TrainingEnergyConfirm"),gml_Script_s_str(_inst,_other,"ui_Yes"),gml_Script_s_str(_inst,_other,"ui_Cancel"),kgml_Script_s_do_qb_training,kgml_Script_s_msg_clear,global.gmlc_background,1);}else {gml_Script_s_do_qb_training(_inst,_other);};};}}function gml_Script_s_do_qb_training(_inst,_other){{var gmlqb=gml_Script_s_get_qb_pmap(_inst,_other);ds_map_set(gmlqb,"condition",clamp(yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlqb,"condition")),40),1,100));yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlplayer_profile=gmlqb;yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice=4;gml_Script_s_set_up_uniforms_training(_inst,_other);room_goto(YYASSET_REF(0x03000011));}}function gml_GlobalScript_btn_click_GenerateCharacter(_inst,_other){(_inst.gmlbtn_click_GenerateCharacter=__yy_method(_inst,gml_Script_btn_click_GenerateCharacter));}function gml_Script_btn_click_GenerateCharacter(_inst,_other){{gml_Script_slog(_inst,_other,"btn_click_GenerateCharacter");{var __yy__v1828=GetWithArray(YYASSET_REF(0x00000062)); for(var __yy__v1829 in __yy__v1828){if(!__yy__v1828.hasOwnProperty(__yy__v1829))continue;var __yy__v1830=__yy__v1828[__yy__v1829];{__yy__v1830.gmlmyface_x=(-1);__yy__v1830.gmlmyface_y=(-1);gml_Script_s_choose_random_face_for_me(__yy__v1830,_inst);__yy__v1830.gmlfname=gml_Script_s_get_random_first_name(__yy__v1830,_inst,true);if(yyfequal(__yy__v1830.gmlmyface_x,8)){__yy__v1830.gmlfname=gml_Script_s_get_random_first_name(__yy__v1830,_inst,false);};__yy__v1830.gmllname=gml_Script_s_get_random_last_name(__yy__v1830, _inst);__yy__v1830.gmlmyteam_id=gml_Script_s_get_random_team_id(__yy__v1830,_inst);gml_Script_slogf(__yy__v1830,_inst,"myteam_id is %1",__yy__v1830.gmlmyteam_id);__yy__v1830.gmlmyteam=ds_list_find_value(__yy__v1830.gmlteamlist,__yy__v1830.gmlmyteam_id);__yy__v1830.gmlmyconference=ds_map_find_value(__yy__v1830.gmlmyteam,"conference");__yy__v1830.gmlmydivision=ds_map_find_value(__yy__v1830.gmlmyteam,"division");gml_Script_slog(__yy__v1830,_inst,yyfplus("myteam name is ",__yy_gml_errCheck(ds_map_find_value(__yy__v1830.gmlmyteam, "name"))));if(yyGetBool(gml_Script_s_is_co_mode(__yy__v1830,_inst))){{gml_Script_s_reset_team_selections(__yy__v1830,_inst,true);gml_Script_s_refresh_strings(__yy__v1830,_inst);var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1830.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1830.gmlroster,gmli);gml_Script_s_college_correct_new_player(__yy__v1830,_inst,gmlpmap);}};};};}}};room_goto(YYASSET_REF(0x03000002)); }}function gml_GlobalScript_s_count_trait_fanfavorite(_inst,_other){(_inst.gmls_count_trait_fanfavorite=__yy_method(_inst,gml_Script_s_count_trait_fanfavorite));}function gml_Script_s_count_trait_fanfavorite(_inst,_other){{var gmlcount=0;{var __yy__v1831=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1832 in __yy__v1831){if(!__yy__v1831.hasOwnProperty(__yy__v1832))continue;var __yy__v1833=__yy__v1831[__yy__v1832];{if(!yyGetBool(__yy__v1833.gmlqb_mode)){return 0;};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1833.gmlstafflist)); (g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1833.gmlstafflist,gmli);if(yyfequal(ds_map_find_value(gmlpmap,"trait"),5)){(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__);};}};}}};return gmlcount;}}function gml_GlobalScript_s_count_trait_scout(_inst,_other){(_inst.gmls_count_trait_scout=__yy_method(_inst,gml_Script_s_count_trait_scout)); }function gml_Script_s_count_trait_scout(_inst,_other){{var gmlcount=0;{var __yy__v1834=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1835 in __yy__v1834){if(!__yy__v1834.hasOwnProperty(__yy__v1835))continue;var __yy__v1836=__yy__v1834[__yy__v1835];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1836.gmlstafflist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1836.gmlstafflist,gmli);if(yyfequal(ds_map_find_value(gmlpmap, "trait"),9)){(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__);};}};}}};return gmlcount;}}function gml_GlobalScript_s_fire_coach(_inst,_other,argument0){(_inst.gmls_fire_coach=__yy_method(_inst,gml_Script_s_fire_coach));}function gml_Script_s_fire_coach(_inst,_other,argument0){{var gmlcoach=argument0;{var __yy__v1837=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1838 in __yy__v1837){if(!__yy__v1837.hasOwnProperty(__yy__v1838))continue; var __yy__v1839=__yy__v1837[__yy__v1838];{if(yyfequal(ds_map_find_value(gmlcoach,"trait"),5)){__yy__v1839.gmlfans=clamp(yyfminus(__yy_gml_errCheck(__yy__v1839.gmlfans),10),0,100);};if(yyfequal(ds_map_find_value(gmlcoach,"trait"),7)){gml_Script_s_adjust_team_morale(__yy__v1839,_inst,(-10),0);};ds_list_delete(__yy__v1839.gmlstafflist,ds_list_find_index(__yy__v1839.gmlstafflist,gmlcoach));ds_map_destroy(gmlcoach);gmlcoach=(-1);}}};}}function gml_GlobalScript_s_check_contracts_expiring(_inst,_other){(_inst.gmls_check_contracts_expiring=__yy_method(_inst, gml_Script_s_check_contracts_expiring));}function gml_Script_s_check_contracts_expiring(_inst,_other){{{var __yy__v1840=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1841 in __yy__v1840){if(!__yy__v1840.hasOwnProperty(__yy__v1841))continue;var __yy__v1842=__yy__v1840[__yy__v1841];{var gmlpmap=gml_Script_s_get_staff(__yy__v1842,_inst,101);var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1842.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ {gmlpmap=ds_list_find_value(__yy__v1842.gmlroster,gmli);if((yyGetBool(gmlpmap))&&(yyGetBool(yyfgreaterequal(ds_map_find_value(gmlpmap,"age"),gml_Script_s_get_max_age(__yy__v1842,_inst,gmlpmap))))){{var gmlmsg=gml_Script_s_str(__yy__v1842,_inst,"news_PlayerRetiringNoTag");if((yyGetBool(ds_map_exists(gmlpmap,"hof")))&&(yyGetBool(ds_map_find_value(gmlpmap,"hof")))){gmlmsg=gml_Script_s_str(__yy__v1842,_inst,"news_PlayerRetiringTag");};gmlmsg=string_replace(gmlmsg,"$teamname",gml_Script_s_get_team_name_by_id(__yy__v1842, _inst,__yy__v1842.gmlmyteam_id));gmlmsg=gml_Script_s_parse_player_message(__yy__v1842,_inst,gmlmsg,gmlpmap);gml_Script_s_add_news(__yy__v1842,_inst,gmlmsg);};};}};gmlpmap=gml_Script_s_get_staff(__yy__v1842,_inst,102);if((yyGetBool(gmlpmap))&&(yyGetBool(yyfgreaterequal(ds_map_find_value(gmlpmap,"age"),gml_Script_s_get_max_age(__yy__v1842,_inst,gmlpmap))))){{gml_Script_s_add_news(__yy__v1842,_inst,gml_Script_s_parse_player_message(__yy__v1842,_inst,gml_Script_s_str(__yy__v1842,_inst,"msg_StaffRetiring"), gmlpmap));};}else {if((yyGetBool(gmlpmap))&&(yyGetBool(yyfless(ds_map_find_value(gmlpmap,"contract"),2)))){{gml_Script_s_add_news(__yy__v1842,_inst,gml_Script_s_parse_player_message(__yy__v1842,_inst,gml_Script_s_str(__yy__v1842,_inst,"msg_StaffExpiringTip"),gmlpmap));};};};gmlpmap=gml_Script_s_get_staff(__yy__v1842,_inst,101);if((yyGetBool(gmlpmap))&&(yyGetBool(yyfgreaterequal(ds_map_find_value(gmlpmap,"age"),gml_Script_s_get_max_age(__yy__v1842,_inst,gmlpmap))))){{gml_Script_s_add_news(__yy__v1842, _inst,gml_Script_s_parse_player_message(__yy__v1842,_inst,gml_Script_s_str(__yy__v1842,_inst,"msg_StaffRetiring"),gmlpmap));};}else {if((yyGetBool(gmlpmap))&&(yyGetBool(yyfless(ds_map_find_value(gmlpmap,"contract"),2)))){{gml_Script_s_add_news(__yy__v1842,_inst,gml_Script_s_parse_player_message(__yy__v1842,_inst,gml_Script_s_str(__yy__v1842,_inst,"msg_StaffExpiringTip"),gmlpmap));};};};}}};}}// if (key == "@" or key == "") // slog("@" + key); // return "@" + key; // if (key == "@" or key == "") return 0; // if (is_undefined(txt)) {slog("@"+key); return 0;} // if (_key == "@" or _key == "") // slog("@" + _key); // return "@" + _key; // if (key == "@" or key == "") // slog("@"+key); function gml_GlobalScript_s_str(_inst, _other){(_inst.gmls_str=__yy_method(_inst,gml_Script_s_str));(_inst.gmls_str_u=__yy_method(_inst,gml_Script_s_str_u));(_inst.gmls_str_real=__yy_method(_inst,gml_Script_s_str_real));(_inst.gmls_strf=__yy_method(_inst,gml_Script_s_strf));(_inst.gmls_strfl=__yy_method(_inst,gml_Script_s_strfl));(_inst.gmls_co_str=__yy_method(_inst,gml_Script_s_co_str));(_inst.gmls_co_str_real=__yy_method(_inst,gml_Script_s_co_str_real));}function gml_Script_s_str(_inst,_other,argument0){{return gml_Script_s_co_str(_inst, _other,argument0);if((yyGetBool(yyfequal(argument0,"@")))||(yyGetBool(yyfequal(argument0,"")))){return "";};if((yyGetBool(!yyGetBool(instance_exists(YYASSET_REF(0x00000062)))))||(yyGetBool(!yyGetBool(ds_exists(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstringmap,1))))){return "";};var gmltxt=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstringmap,argument0);if(yyGetBool(is_undefined(gmltxt))){{gml_Script_slog(_inst,_other,yyfplus("@",__yy_gml_errCheck(argument0)));return yyfplus("@", __yy_gml_errCheck(argument0));};};return string_hash_to_newline(gmltxt);}}function gml_Script_s_str_u(_inst,_other,argument0){{return string_upper(gml_Script_s_str(_inst,_other,argument0));}}function gml_Script_s_str_real(_inst,_other,argument0){{return gml_Script_s_co_str_real(_inst,_other,argument0);if((yyGetBool(yyfequal(argument0,"@")))||(yyGetBool(yyfequal(argument0,"")))){return 0;};var gmltxt=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstringmap,argument0);if(yyGetBool(is_undefined(gmltxt))){ {gml_Script_slog(_inst,_other,yyfplus("@",__yy_gml_errCheck(argument0)));return 0;};};return real(gmltxt);}}function gml_Script_s_strf(_inst,_other){{var $$args=Array.prototype.slice.call(arguments);{var gmlstr=$$args[__yy_gml_array_check_index(2+(0),$$args)];var gmli=yyfminus(__yy_gml_errCheck(($$args.length-2)),1);for(;yyfgreater(gmli,0);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.subtract(1):--gmli),g_yyPrePostObject__)){gmlstr=string_replace_all(gmlstr,yyfplus("%",__yy_gml_errCheck(string(gmli))), string($$args[__yy_gml_array_check_index(2+(gmli),$$args)]))};return string_upper(gmlstr);}}}function gml_Script_s_strfl(_inst,_other){{var $$args=Array.prototype.slice.call(arguments);{var gmlstr=$$args[__yy_gml_array_check_index(2+(0),$$args)];var gmli=yyfminus(__yy_gml_errCheck(($$args.length-2)),1);for(;yyfgreater(gmli,0);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.subtract(1):--gmli),g_yyPrePostObject__)){gmlstr=string_replace_all(gmlstr,yyfplus("%",__yy_gml_errCheck(string(gmli))), string($$args[__yy_gml_array_check_index(2+(gmli),$$args)]))};return gmlstr;}}}function gml_Script_s_co_str(_inst,_other,argument0,argument1){{if(yyfequal(argument1,_inst.undefined)){argument1="";};}{if((yyGetBool(yyfequal(argument0,"@")))||(yyGetBool(yyfequal(argument0,"")))){return "";};if((yyGetBool(!yyGetBool(instance_exists(YYASSET_REF(0x00000062)))))||(yyGetBool(!yyGetBool(is_struct(yyInst(_inst,_other,global.gmlg_m).gmllangdata))))){return "";};var gmltxt="";if(yyfnotequal(argument1,"")){gmltxt=struct_get_from_hash(yyInst(_inst, _other,global.gmlg_m).gmllangdata,variable_get_hash(yyfplus(__yy_gml_errCheck(argument0),__yy_gml_errCheck(argument1))));};if((yyGetBool(is_undefined(gmltxt)))||(yyGetBool(yyfequal(argument1,"")))){gmltxt=struct_get_from_hash(yyInst(_inst,_other,global.gmlg_m).gmllangdata,variable_get_hash(argument0));};if(yyGetBool(is_undefined(gmltxt))){{gml_Script_slog(_inst,_other,yyfplus("@",__yy_gml_errCheck(argument0)));return yyfplus("@",__yy_gml_errCheck(argument0));};};return string_hash_to_newline(gmltxt); }}function gml_Script_s_co_str_real(_inst,_other,argument0){{if((yyGetBool(yyfequal(argument0,"@")))||(yyGetBool(yyfequal(argument0,"")))){return 0;};var gmltxt=struct_get_from_hash(yyInst(_inst,_other,global.gmlg_m).gmllangdata,variable_get_hash(argument0));if(yyGetBool(is_undefined(gmltxt))){{gml_Script_slog(_inst,_other,yyfplus("@",__yy_gml_errCheck(argument0)));return 0;};};return real(gmltxt);}}function gml_GlobalScript_s_split_string(_inst,_other){(_inst.gmls_split_string=__yy_method(_inst,gml_Script_s_split_string)); }function gml_Script_s_split_string(_inst,_other,argument0){{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{return string_split(argument0," ");};};var gmlsplitBy=" ";var gmlslot=0;var gmlsplits;var gmlstr2="";gmlsplits=__yy_gml_array_check(gmlsplits,3847160664);gmlsplits[__yy_gml_array_check_index_set(gmlslot)]="";var gmli=1;for(;yyfless(gmli,yyfplus(__yy_gml_errCheck(string_length(argument0)),1));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ {var gmlcurrStr=string_copy(argument0,gmli,1);if(yyfequal(gmlcurrStr,gmlsplitBy)){{gmlsplits[__yy_gml_array_check_index_set(gmlslot)]=gmlstr2;(g_yyPrePostObject__=gmlslot,gmlslot=(g_yyPrePostObject__ instanceof Long?gmlslot.add(1):++gmlslot),g_yyPrePostObject__);gmlstr2="";};}else {{gmlstr2=yyfplus(__yy_gml_errCheck(gmlstr2),__yy_gml_errCheck(gmlcurrStr));gmlsplits[__yy_gml_array_check_index_set(gmlslot)]=gmlstr2;};};}};return gmlsplits;}}function gml_GlobalScript_s_parse_news(_inst,_other){(_inst.gmls_parse_news=__yy_method(_inst, gml_Script_s_parse_news));}function gml_Script_s_parse_news(_inst,_other,argument0,argument1,argument2,argument3,argument4){{argument0=gml_Script_s_str(_inst,_other,argument0);if(yyGetBool(argument1)){argument0=string_replace_all(argument0,"$teamname1",ds_map_find_value(argument1,"name"));};if(yyGetBool(argument2)){argument0=string_replace_all(argument0,"$teamname2",ds_map_find_value(argument2,"name"));};argument0=string_replace_all(argument0,"$score1",string(argument3));argument0=string_replace_all(argument0, "$score2",string(argument4));argument0=string_replace_all(argument0,"$yourname",yyfplus(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfname)," "),__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllname)));argument0=string_replace_all(argument0,"$yourlastname",yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllname);argument0=string_replace_all(argument0,"$yourteamname",ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam,"tla"));return string_hash_to_newline(argument0); }}function gml_GlobalScript_s_parse_intro(_inst,_other){(_inst.gmls_parse_intro=__yy_method(_inst,gml_Script_s_parse_intro));}function gml_Script_s_parse_intro(_inst,_other,argument0){{{if(yyGetBool(global.gmlgamepad)){argument0=gml_Script_s_co_str(_inst,_other,argument0,(yyfnotequal(g_pBuiltIn.get_os_type(),21)?"_gp_xb":"_gp"));}else {argument0=gml_Script_s_co_str(_inst,_other,argument0);};};{var __yy__v1843=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1844 in __yy__v1843){if(!__yy__v1843.hasOwnProperty(__yy__v1844))continue; var __yy__v1845=__yy__v1843[__yy__v1844];{var gmloc=gml_Script_s_get_staff(__yy__v1845,_inst,102);var gmldc=gml_Script_s_get_staff(__yy__v1845,_inst,101);argument0=string_replace_all(argument0,"$teamname",ds_map_find_value(__yy__v1845.gmlmyteam,"name"));argument0=string_replace_all(argument0,"$coachname_of",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmloc,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(gmloc,"lname"))));argument0=string_replace_all(argument0,"$coachname_df",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmldc, "fname"))," "),__yy_gml_errCheck(ds_map_find_value(gmldc,"lname"))));}}};return string_hash_to_newline(argument0);}}function gml_GlobalScript_s_parse_player_message(_inst,_other){(_inst.gmls_parse_player_message=__yy_method(_inst,gml_Script_s_parse_player_message));}function gml_Script_s_parse_player_message(_inst,_other,argument0,argument1){{var gmltid=ds_map_find_value(argument1,"teamid");if(yyfless(gmltid,0)){gmltid=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id;};gml_Script_slog(_inst, _other,yyfplus("Parse player. Team id = ",__yy_gml_errCheck(string(gmltid))));argument0=string_replace_all(argument0,"$teamname",gml_Script_s_get_team_name_by_id(_inst,_other,gmltid));argument0=string_replace_all(argument0,"$position",gml_Script_s_get_string_position_full(_inst,_other,ds_map_find_value(argument1,"position")));argument0=string_replace_all(argument0,"$pos",gml_Script_s_get_string_position(_inst,_other,ds_map_find_value(argument1,"position")));argument0=string_replace_all(argument0, "$playername",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(argument1,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(argument1,"lname"))));argument0=string_replace_all(argument0,"$playerlastname",ds_map_find_value(argument1,"lname"));argument0=string_replace_all(argument0,"$hirename",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(argument1,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(argument1,"lname"))));argument0=string_replace_all(argument0,"$age",ds_map_find_value(argument1, "age"));argument0=string_replace_all(argument0,"$contract",ds_map_find_value(argument1,"contract"));argument0=string_replace_all(argument0,"$salary",yyfplus(yyfplus("$",__yy_gml_errCheck(string(ds_map_find_value(argument1,"salary")))),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"sla_Million"))));argument0=string_replace_all(argument0,"$uniform",string_lower(gml_Script_s_str(_inst,_other,yyfplus("uniformviolation_",__yy_gml_errCheck(string(irandom(9)))))));if(yyfequal(ds_map_find_value(argument1, "position"),10)){argument0=string_replace_all(argument0,"$injurytype",string_lower(gml_Script_s_str(_inst,_other,yyfplus("injurytype_",__yy_gml_errCheck(string(irandom_range(6,11)))))));}else {argument0=string_replace_all(argument0,"$injurytype",string_lower(gml_Script_s_str(_inst,_other,yyfplus("injurytype_",__yy_gml_errCheck(string(irandom(11)))))));};argument0=string_replace_all(argument0,"$randomfname_female",gml_Script_s_get_random_first_name(_inst,_other,false));argument0=string_replace_all(argument0, "$randomcharity",gml_Script_s_get_random_charity(_inst,_other));argument0=string_replace_all(argument0,"$randomteamname",gml_Script_s_get_random_teamname(_inst,_other,false));var gmlsmap=gml_Script_s_get_staff(_inst,_other,101);if(yyGetBool(gml_Script_s_is_offensive_player(_inst,_other,argument1))){gmlsmap=gml_Script_s_get_staff(_inst,_other,102);};if(yyGetBool(gmlsmap)){argument0=string_replace(argument0,"$coachposition",gml_Script_s_get_string_position_full(_inst,_other,ds_map_find_value(gmlsmap, "position")));};argument0=string_replace_all(argument0,"$myteamname",gml_Script_s_get_team_name_by_id(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id));if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)){{var gmlqb_map=gml_Script_s_get_qb_pmap(_inst,_other);if(yyGetBool(gmlqb_map)){{argument0=string_replace_all(argument0,"$mylastname",ds_map_find_value(gmlqb_map,"lname"));argument0=string_replace_all(argument0,"$myname",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlqb_map, "fname"))," "),__yy_gml_errCheck(ds_map_find_value(gmlqb_map,"lname"))));};};};};var gmlhc_map=gml_Script_s_get_staff(_inst,_other,100);if(yyGetBool(gmlhc_map)){{argument0=string_replace_all(argument0,"$headcoachlastname",ds_map_find_value(gmlhc_map,"lname"));argument0=string_replace_all(argument0,"$headcoachname",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlhc_map,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(gmlhc_map,"lname"))));};};var gmlfix=gml_Script_s_get_human_fixture_next(_inst, _other);if(yyGetBool(gmlfix)){{if((yyGetBool(yyfequal(ds_map_find_value(gmlfix,"home_team"),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id)))&&(yyGetBool(yyfgreater(ds_map_find_value(gmlfix,"away_team"),(-1))))){argument0=string_replace_all(argument0,"$nextoppname",gml_Script_s_get_team_name_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team")));}else {if(yyfgreater(ds_map_find_value(gmlfix,"home_team"),(-1))){argument0=string_replace_all(argument0,"$nextoppname",gml_Script_s_get_team_name_by_id(_inst, _other,ds_map_find_value(gmlfix,"home_team")));};};};};gmlfix=gml_Script_s_get_human_fixture_previous(_inst,_other);if(yyGetBool(gmlfix)){{if((yyGetBool(yyfequal(ds_map_find_value(gmlfix,"home_team"),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id)))&&(yyGetBool(yyfgreater(ds_map_find_value(gmlfix,"away_team"),(-1))))){argument0=string_replace_all(argument0,"$lastoppname",gml_Script_s_get_team_name_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team")));}else {if(yyfgreater(ds_map_find_value(gmlfix, "home_team"),(-1))){argument0=string_replace_all(argument0,"$lastoppname",gml_Script_s_get_team_name_by_id(_inst,_other,ds_map_find_value(gmlfix,"home_team")));};};};};if((yyGetBool(gml_Script_s_is_co_mode(_inst,_other)))&&(yyGetBool(yyfequal(gml_Script_s_is_staff(_inst,_other,ds_map_find_value(argument1,"position")),false)))){{argument0=string_replace_all(argument0,"$HOBBY",gml_Script_s_get_hobby_name(_inst,_other,argument1,false));argument0=string_replace_all(argument0,"$MAJOR",gml_Script_s_get_major_name(_inst, _other,argument1,false));argument0=string_replace_all(argument0,"$MINOR",gml_Script_s_get_minor_name(_inst,_other,argument1,false));argument0=string_replace_all(argument0,"$HOMETOWN",gml_Script_s_get_hometown_name(_inst,_other,argument1));argument0=string_replace_all(argument0,"$ONLYHOMETOWN",gml_Script_s_get_only_hometown_name(_inst,_other,argument1));argument0=string_replace_all(argument0,"$ONLYSTATE",gml_Script_s_get_only_state_name(_inst,_other,argument1));argument0=string_replace_all(argument0, "$leaveyear",string(ds_map_find_value(argument1,"class_of")));if((yyGetBool(yyfnotequal(ds_map_find_value(argument1,"drafted_pro_team"),"")))&&(yyGetBool(string_pos("$draftedteamname",argument0)))){{var gmlproTeams=gml_Script_s_load_pro_teams(_inst,_other);var gmli=0;for(;yyfless(gmli,ds_list_size(gmlproTeams));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlproTeam=ds_list_find_value(gmlproTeams,gmli);if(yyfequal(ds_map_find_value(gmlproTeam, "uid"),ds_map_find_value(argument1,"drafted_pro_team"))){{argument0=string_replace_all(argument0,"$draftedteamname",ds_map_find_value(gmlproTeam,"name"));break;};};}};ds_list_destroy(gmlproTeams);};};argument0=string_replace_all(argument0,"$academicyear",gml_Script_s_college_age_simple(_inst,_other,argument1));argument0=string_replace_all(argument0,"$academicotheryear",gml_Script_s_college_age_simple_other(_inst,_other,argument1));argument0=string_replace_all(argument0,"$gpa",gml_Script_s_gpa_string(_inst, _other,argument1));argument0=string_replace_all(argument0,"$draftroundpick",string(ds_map_find_value(argument1,"draft_round_pick")));};};return string_hash_to_newline(argument0);}}function gml_GlobalScript_s_strP(_inst,_other,argument0){(_inst.gmls_strP=__yy_method(_inst,gml_Script_s_strP));}function gml_Script_s_strP(_inst,_other,argument0){{var gmlkey=argument0;var gmltxt=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstringmap,gmlkey);if(!yyGetBool(is_undefined(gmltxt))){{gmltxt=string_hash_to_newline(gmltxt); if(yyfgreater(string_count("$",gmltxt),0)){gmltxt=gml_Script_s_parse_string(_inst,_other,gmltxt);};};}else {{gmltxt="!";};};return gmltxt;}}function gml_GlobalScript_s_sim_stat_increment(_inst,_other){(_inst.gmls_sim_stat_increment=__yy_method(_inst,gml_Script_s_sim_stat_increment));(_inst.gmls_sim_stat_update=__yy_method(_inst,gml_Script_s_sim_stat_update));(_inst.gmls_sim_stat_touchdown=__yy_method(_inst,gml_Script_s_sim_stat_touchdown));(_inst.gmls_sim_stat_pass=__yy_method(_inst,gml_Script_s_sim_stat_pass)); (_inst.gmls_sim_stat_run=__yy_method(_inst,gml_Script_s_sim_stat_run));(_inst.gmls_sim_stat_fumble=__yy_method(_inst,gml_Script_s_sim_stat_fumble));(_inst.gmls_sim_stat_interception=__yy_method(_inst,gml_Script_s_sim_stat_interception));(_inst.gmls_sim_stat_sack=__yy_method(_inst,gml_Script_s_sim_stat_sack));}function gml_Script_s_sim_stat_increment(_inst,_other,argument0,argument1,argument2){{if((yyGetBool(argument0))&&(yyGetBool(!yyGetBool(gml_Script_s_player_benched(_inst,_other,argument0))))&&(yyGetBool(!yyGetBool(ds_map_find_value(argument0, "backup"))))&&(yyGetBool(yyfgreaterequal(ds_map_find_value(argument0,"condition"),0)))){ds_map_set(argument0,argument1,yyfplus(__yy_gml_errCheck(ds_map_find_value(argument0,argument1)),__yy_gml_errCheck(argument2)));};}}function gml_Script_s_sim_stat_update(_inst,_other,argument0,argument1,argument2){{if((yyGetBool(argument0))&&(yyGetBool(!yyGetBool(gml_Script_s_player_benched(_inst,_other,argument0))))&&(yyGetBool(!yyGetBool(ds_map_find_value(argument0,"backup"))))&&(yyGetBool(yyfgreaterequal(ds_map_find_value(argument0, "condition"),0)))){ds_map_set(argument0,argument1,argument2);};}}function gml_Script_s_sim_stat_touchdown(_inst,_other,argument0,argument1){{if(yyfequal(argument0,1)){gml_Script_slog(_inst,_other,yyfplus("s_sim_stat_touchdown RUN: ",__yy_gml_errCheck(string(argument1))));}else {gml_Script_slog(_inst,_other,yyfplus("s_sim_stat_touchdown PASS: ",__yy_gml_errCheck(string(argument1))));};argument1=clamp(argument1,1,100);var gmlpmap=gml_Script_s_get_random_player_by_position(_inst,_other,false,4);if(yyfequal(argument0, 1)){gmlpmap=gml_Script_s_get_random_player_by_position(_inst,_other,false,2);}else {{if(yyfless(argument1,30)){{if(!yyGetBool(irandom(3))){gmlpmap=gml_Script_s_get_random_player_by_position(_inst,_other,false,3);}else {if(!yyGetBool(random(4))){gmlpmap=gml_Script_s_get_random_player_by_position(_inst,_other,false,2);};};};};if(!yyGetBool(gmlpmap)){gmlpmap=gml_Script_s_get_random_player_by_position(_inst,_other,false,4);};};};if(yyGetBool(gmlpmap)){{if(yyfequal(argument0,1)){{ds_map_set(gmlpmap,"stat_rush_attempts", yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_rush_attempts")),__yy_gml_errCheck(irandom_range(1,2))));ds_map_set(gmlpmap,"stat_rush_touchdowns",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_rush_touchdowns")),1));ds_map_set(gmlpmap,"stat_rush_yards",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_rush_yards")),__yy_gml_errCheck(argument1)));};}else {{ds_map_set(gmlpmap,"stat_attempts",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_attempts")),__yy_gml_errCheck(irandom_range(1, 2))));ds_map_set(gmlpmap,"stat_touchdowns",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_touchdowns")),1));ds_map_set(gmlpmap,"stat_yards",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_yards")),__yy_gml_errCheck(argument1)));};};if(yyfgreater(argument1,ds_map_find_value(gmlpmap,"stat_longest"))){gml_Script_s_sim_stat_update(_inst,_other,gmlpmap,"stat_longest",argument1);};};};if(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)){{var gmlqb=gml_Script_s_get_qb_pmap(_inst, _other);if((yyGetBool(gmlqb))&&(yyGetBool(!yyGetBool(gml_Script_s_player_benched(_inst,_other,gmlqb))))&&(yyGetBool(!yyGetBool(ds_map_find_value(gmlqb,"backup"))))&&(yyGetBool(yyfgreaterequal(ds_map_find_value(gmlqb,"condition"),0)))){{ds_map_set(gmlqb,"stat_attempts",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlqb,"stat_attempts")),1));ds_map_set(gmlqb,"stat_complete",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlqb,"stat_complete")),1));ds_map_set(gmlqb,"stat_touchdowns",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlqb, "stat_touchdowns")),1));ds_map_set(gmlqb,"stat_yards",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlqb,"stat_yards")),__yy_gml_errCheck(argument1)));ds_map_set(gmlqb,"stat_attempts",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlqb,"stat_attempts")),__yy_gml_errCheck(irandom_range(1,2))));ds_map_set(gmlqb,"stat_complete",min(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlqb,"stat_complete")),__yy_gml_errCheck(irandom_range(0,2))),ds_map_find_value(gmlqb,"stat_attempts")));if(yyfgreater(argument1, ds_map_find_value(gmlqb,"stat_longest"))){gml_Script_s_sim_stat_update(_inst,_other,gmlqb,"stat_longest",argument1);};};};};};gmlpmap=gml_Script_s_get_random_player_by_position(_inst,_other,false,5);if((yyGetBool(gmlpmap))&&(yyGetBool(irandom(1)))){ds_map_set(gmlpmap,"stat_tackles",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_tackles")),1));};}}function gml_Script_s_sim_stat_pass(_inst,_other,argument0){{gml_Script_slog(_inst,_other,yyfplus("s_sim_stat_pass: ",__yy_gml_errCheck(string(argument0)))); argument0=round(yyftime(__yy_gml_errCheck(argument0),__yy_gml_errCheck(random_range(0.7,1))));var gmlpmap=gml_Script_s_get_random_player_by_position(_inst,_other,false,4);if(yyfless(argument0,35)){{var gmlte=gml_Script_s_get_random_player_by_position(_inst,_other,false,3);if((yyGetBool(gmlte))&&(yyGetBool(yyfequal(ds_map_find_value(gmlte,"stat_yards"),0)))&&(yyGetBool(!yyGetBool(irandom(3))))){gmlpmap=gmlte;}else {if(!yyGetBool(irandom(3))){gmlpmap=gml_Script_s_get_random_player_by_position(_inst,_other, false,3);}else {if(!yyGetBool(random(3))){gmlpmap=gml_Script_s_get_random_player_by_position(_inst,_other,false,2);};};};if(!yyGetBool(gmlpmap)){gmlpmap=gml_Script_s_get_random_player_by_position(_inst,_other,false,4);};};};if(yyGetBool(gmlpmap)){{var gmlrat=gml_Script_s_get_player_rating(_inst,_other,gmlpmap);if(yyfequal(ds_map_find_value(gmlpmap,"position"),4)){argument0=yyfplus(argument0,irandom(yyftime(__yy_gml_errCheck(gmlrat),2)));};argument0=clamp(argument0,1,100);ds_map_set(gmlpmap,"stat_attempts", yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_attempts")),__yy_gml_errCheck(irandom_range(1,2))));ds_map_set(gmlpmap,"stat_yards",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_yards")),__yy_gml_errCheck(argument0)));if(yyfgreater(argument0,ds_map_find_value(gmlpmap,"stat_longest"))){gml_Script_s_sim_stat_update(_inst,_other,gmlpmap,"stat_longest",argument0);};};};if(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)){{var gmlqb=gml_Script_s_get_qb_pmap(_inst, _other);if((yyGetBool(gmlqb))&&(yyGetBool(!yyGetBool(gml_Script_s_player_benched(_inst,_other,gmlqb))))&&(yyGetBool(!yyGetBool(ds_map_find_value(gmlqb,"backup"))))&&(yyGetBool(yyfgreaterequal(ds_map_find_value(gmlqb,"condition"),0)))){{argument0=clamp(argument0,1,100);ds_map_set(gmlqb,"stat_attempts",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlqb,"stat_attempts")),1));ds_map_set(gmlqb,"stat_complete",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlqb,"stat_complete")),1));ds_map_set(gmlqb,"stat_yards", yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlqb,"stat_yards")),__yy_gml_errCheck(argument0)));ds_map_set(gmlqb,"stat_attempts",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlqb,"stat_attempts")),__yy_gml_errCheck(irandom_range(1,2))));ds_map_set(gmlqb,"stat_complete",min(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlqb,"stat_complete")),__yy_gml_errCheck(irandom_range(0,2))),ds_map_find_value(gmlqb,"stat_attempts")));if(yyfgreater(argument0,ds_map_find_value(gmlqb,"stat_longest"))){gml_Script_s_sim_stat_update(_inst, _other,gmlqb,"stat_longest",argument0);};};};};};gmlpmap=gml_Script_s_get_random_player_by_position(_inst,_other,false,5);if((yyGetBool(gmlpmap))&&(yyGetBool(irandom(1)))){ds_map_set(gmlpmap,"stat_tackles",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_tackles")),1));};}}function gml_Script_s_sim_stat_run(_inst,_other,argument0){{gml_Script_slog(_inst,_other,yyfplus("s_sim_stat_run: ",__yy_gml_errCheck(string(argument0))));var gmlpmap=gml_Script_s_get_random_player_by_position(_inst,_other, false,2);if(yyGetBool(gmlpmap)){{var gmlrat=gml_Script_s_get_player_rating(_inst,_other,gmlpmap);argument0=round(yyftime(__yy_gml_errCheck(argument0),__yy_gml_errCheck(random_range(0.6,yyfplus(0.7,__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlrat),0.03)))))));argument0=clamp(argument0,1,100);ds_map_set(gmlpmap,"stat_rush_attempts",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_rush_attempts")),__yy_gml_errCheck(irandom_range(2,3))));ds_map_set(gmlpmap,"stat_rush_yards",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap, "stat_rush_yards")),__yy_gml_errCheck(argument0)));if(yyfgreater(argument0,ds_map_find_value(gmlpmap,"stat_rush_longest"))){gml_Script_s_sim_stat_update(_inst,_other,gmlpmap,"stat_rush_longest",argument0);};};};}}function gml_Script_s_sim_stat_fumble(_inst,_other){{var gmlpmap=(-4);var ___sw1506___=irandom(4);var ___swc1507___=-1;if(yyCompareVal(___sw1506___,0,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1506___,1,g_GMLMathEpsilon,false)==0){___swc1507___=0;}else if(yyCompareVal(___sw1506___,2,g_GMLMathEpsilon, false)==0){___swc1507___=1;}else if(yyCompareVal(___sw1506___,3,g_GMLMathEpsilon,false)==0){___swc1507___=2;}switch(___swc1507___){case 0:{gmlpmap=gml_Script_s_get_random_player_by_position(_inst,_other,false,4);break;}case 1:{gmlpmap=gml_Script_s_get_random_player_by_position(_inst,_other,false,2);break;}case 2:{gmlpmap=gml_Script_s_get_random_player_by_position(_inst,_other,false,3);break;}};if(yyGetBool(gmlpmap)){{if(yyfequal(ds_map_find_value(gmlpmap,"position"),2)){ds_map_set(gmlpmap,"stat_rush_attempts", yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_rush_attempts")),1));}else {ds_map_set(gmlpmap,"stat_attempts",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_attempts")),1));};ds_map_set(gmlpmap,"stat_fumbles",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"stat_fumbles")),1));};};}}function gml_Script_s_sim_stat_interception(_inst,_other){{var gmlqb=gml_Script_s_get_qb_pmap(_inst,_other);if((yyGetBool(gmlqb))&&(yyGetBool(!yyGetBool(gml_Script_s_player_benched(_inst,_other, gmlqb))))&&(yyGetBool(!yyGetBool(ds_map_find_value(gmlqb,"backup"))))&&(yyGetBool(yyfgreaterequal(ds_map_find_value(gmlqb,"condition"),0)))){{ds_map_set(gmlqb,"stat_attempts",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlqb,"stat_attempts")),1));ds_map_set(gmlqb,"stat_int",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlqb,"stat_int")),1));};};}}function gml_Script_s_sim_stat_sack(_inst,_other){{var gmlqb=gml_Script_s_get_qb_pmap(_inst,_other);if((yyGetBool(gmlqb))&&(yyGetBool(!yyGetBool(gml_Script_s_player_benched(_inst, _other,gmlqb))))&&(yyGetBool(!yyGetBool(ds_map_find_value(gmlqb,"backup"))))&&(yyGetBool(yyfgreaterequal(ds_map_find_value(gmlqb,"condition"),0)))){{ds_map_set(gmlqb,"stat_attempts",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlqb,"stat_attempts")),1));ds_map_set(gmlqb,"stat_sacks",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlqb,"stat_sacks")),1));};};}}function gml_GlobalScript_s_parse_string(_inst,_other){(_inst.gmls_parse_string=__yy_method(_inst,gml_Script_s_parse_string));}function gml_Script_s_parse_string(_inst, _other,argument0){{argument0=string_replace(argument0,"$random_argument",gml_Script_s_str(_inst,_other,yyfplus("argument_",__yy_gml_errCheck(string(irandom_range(1,14))))));argument0=string_replace(argument0,"$random_class",gml_Script_s_str(_inst,_other,yyfplus("class_",__yy_gml_errCheck(string(irandom_range(1,8))))));argument0=string_replace(argument0,"$aan_random_class",gml_Script_s_str(_inst,_other,yyfplus("aan_class_",__yy_gml_errCheck(string(irandom_range(1,8))))));argument0=string_replace(argument0, "$teamname",ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam,"name"));argument0=string_replace(argument0,"$teamdivision",yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam,"conference"))," "),__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam,"division"))));return argument0;}}function gml_GlobalScript_s_crop_text(_inst,_other,argument0,argument1){(_inst.gmls_crop_text=__yy_method(_inst, gml_Script_s_crop_text));}function gml_Script_s_crop_text(_inst,_other,argument0,argument1){{var gmltxt=argument0;var gmlmaxchars=argument1;var gmllen=string_length(gmltxt);var gmldoublenewline=string_pos("##",gmltxt);var gmlbonus="";if(yyfnotequal(gmldoublenewline,0)){{gmlbonus=string_copy(gmltxt,gmldoublenewline,gmllen);gmltxt=string_copy(gmltxt,1,gmldoublenewline);gmllen=string_length(gmltxt);};};var gmlpos=gmlmaxchars;var gmlp=0;while(yyfless(gmlp,yyfminus(__yy_gml_errCheck(gmllen),__yy_gml_errCheck(gmlmaxchars)))){ {gmlp=gmlpos;for(;yyfgreater(gmlp,yyfminus(__yy_gml_errCheck(gmlpos),10));(g_yyPrePostObject__=gmlp,gmlp=(g_yyPrePostObject__ instanceof Long?gmlp.subtract(1):--gmlp),g_yyPrePostObject__)){{var gmlfoundspace=false;if(yyfequal(string_char_at(gmltxt,gmlp)," ")){{gmlfoundspace=true;break;};};}};if(yyGetBool(gmlfoundspace)){{gmltxt=string_insert("\n",gmltxt,gmlp);};}else {{gmlp=yyfminus(__yy_gml_errCheck(gmlpos),1);gmltxt=string_insert("-",gmltxt,(g_yyPrePostObject__=gmlp,gmlp=(g_yyPrePostObject__ instanceof Long?gmlp.add(1):++gmlp), g_yyPrePostObject__));gmltxt=string_insert("\n",gmltxt,gmlp);};};gmlpos=yyfplus(__yy_gml_errCheck(gmlp),__yy_gml_errCheck(gmlmaxchars));gmllen=string_length(gmltxt);}};gmltxt=yyfplus(gmltxt,gmlbonus);return string_hash_to_newline(gmltxt);}}function gml_GlobalScript_s_get_string_ball_state(_inst,_other){(_inst.gmls_get_string_ball_state=__yy_method(_inst,gml_Script_s_get_string_ball_state));}function gml_Script_s_get_string_ball_state(_inst,_other){{{var __yy__v1846=GetWithArray(global.gmlmaster_ball); for(var __yy__v1847 in __yy__v1846){if(!__yy__v1846.hasOwnProperty(__yy__v1847))continue;var __yy__v1848=__yy__v1846[__yy__v1847];{var ___sw1510___=__yy__v1848.gmlstate;var ___swc1511___=-1;if(yyCompareVal(___sw1510___,0,g_GMLMathEpsilon,false)==0){___swc1511___=0;}else if(yyCompareVal(___sw1510___,2,g_GMLMathEpsilon,false)==0){___swc1511___=1;}else if(yyCompareVal(___sw1510___,1,g_GMLMathEpsilon,false)==0){___swc1511___=2;}else if(yyCompareVal(___sw1510___,3,g_GMLMathEpsilon,false)==0){___swc1511___=3;} else if(yyCompareVal(___sw1510___,4,g_GMLMathEpsilon,false)==0){___swc1511___=4;}else if(yyCompareVal(___sw1510___,5,g_GMLMathEpsilon,false)==0){___swc1511___=5;}else if(yyCompareVal(___sw1510___,6,g_GMLMathEpsilon,false)==0){___swc1511___=6;}else if(yyCompareVal(___sw1510___,7,g_GMLMathEpsilon,false)==0){___swc1511___=7;}else if(yyCompareVal(___sw1510___,8,g_GMLMathEpsilon,false)==0){___swc1511___=8;}else if(yyCompareVal(___sw1510___,9,g_GMLMathEpsilon,false)==0){___swc1511___=9;}else if(yyCompareVal(___sw1510___, 10,g_GMLMathEpsilon,false)==0){___swc1511___=10;}else if(yyCompareVal(___sw1510___,11,g_GMLMathEpsilon,false)==0){___swc1511___=11;}else if(yyCompareVal(___sw1510___,12,g_GMLMathEpsilon,false)==0){___swc1511___=12;}else if(yyCompareVal(___sw1510___,13,g_GMLMathEpsilon,false)==0){___swc1511___=13;}else if(yyCompareVal(___sw1510___,14,g_GMLMathEpsilon,false)==0){___swc1511___=14;}else if(yyCompareVal(___sw1510___,15,g_GMLMathEpsilon,false)==0){___swc1511___=15;}else if(yyCompareVal(___sw1510___,16,g_GMLMathEpsilon, false)==0){___swc1511___=16;}else if(yyCompareVal(___sw1510___,17,g_GMLMathEpsilon,false)==0){___swc1511___=17;}else if(yyCompareVal(___sw1510___,18,g_GMLMathEpsilon,false)==0){___swc1511___=18;}else if(yyCompareVal(___sw1510___,19,g_GMLMathEpsilon,false)==0){___swc1511___=19;}else if(yyCompareVal(___sw1510___,20,g_GMLMathEpsilon,false)==0){___swc1511___=20;}else if(yyCompareVal(___sw1510___,21,g_GMLMathEpsilon,false)==0){___swc1511___=21;}switch(___swc1511___){case 0:{return "BALL_SET";}case 1:{return "BALL_AIM"; }case 2:{return "BALL_AIM_DEADZONE";}case 3:{return "BALL_RELEASED";}case 4:{return "BALL_DOWN";}case 5:{return "BALL_RECEIVED";}case 6:{return "BALL_TOUCHDOWN";}case 7:{return "BALL_INCOMPLETE";}case 8:{return "BALL_OUTOFBOUNDS";}case 9:{return "BALL_INTERCEPTED";}case 10:{return "BALL_TURNOVER";}case 11:{return "BALL_SACKED";}case 12:{return "BALL_SAFETY";}case 13:{return "BALL_FUMBLED";}case 14:{return "BALL_FIELD_GOAL_GOOD";}case 15:{return "BALL_FIELD_GOAL_BAD";}case 16:{return "BALL_PRACTICE_SUCCESS";}case 17:{return "BALL_PRACTICE_FAIL"; }case 18:{return "BALL_RUN_QB";}case 19:{return "BALL_HANDOFF";}case 20:{return "BALL_TOUCHBACK";}case 21:{return "BALL_INTERCEPTED_TB";}};}}};return "ball.state == OTHER";}}function gml_GlobalScript_s_get_string_state(_inst,_other){(_inst.gmls_get_string_state=__yy_method(_inst,gml_Script_s_get_string_state));}function gml_Script_s_get_string_state(_inst,_other){{{var __yy__v1849=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v1850 in __yy__v1849){if(!__yy__v1849.hasOwnProperty(__yy__v1850))continue;var __yy__v1851=__yy__v1849[__yy__v1850]; {var ___sw1514___=__yy__v1851.gmlstate;var ___swc1515___=-1;if(yyCompareVal(___sw1514___,2,g_GMLMathEpsilon,false)==0){___swc1515___=0;}else if(yyCompareVal(___sw1514___,1,g_GMLMathEpsilon,false)==0){___swc1515___=1;}switch(___swc1515___){case 0:{return "ACTION";break;}case 1:{return "COMMENTARY";break;}};}}};return "state == OTHER";}}function gml_GlobalScript_s_get_string_sex(_inst,_other){(_inst.gmls_get_string_sex=__yy_method(_inst,gml_Script_s_get_string_sex));}function gml_Script_s_get_string_sex(_inst, _other){{var ___sw1518___=1;var ___swc1519___=-1;if(yyCompareVal(___sw1518___,0,g_GMLMathEpsilon,false)==0){___swc1519___=0;}else if(yyCompareVal(___sw1518___,1,g_GMLMathEpsilon,false)==0){___swc1519___=1;}switch(___swc1519___){case 0:{return gml_Script_s_str(_inst,_other,"sex_0");break;}case 1:{return gml_Script_s_str(_inst,_other,"sex_1");break;}};}}function gml_GlobalScript_s_get_string_heshe(_inst,_other,argument0){(_inst.gmls_get_string_heshe=__yy_method(_inst,gml_Script_s_get_string_heshe));}function gml_Script_s_get_string_heshe(_inst, _other,argument0){{var ___sw1522___=argument0;var ___swc1523___=-1;if(yyCompareVal(___sw1522___,0,g_GMLMathEpsilon,false)==0){___swc1523___=0;}else if(yyCompareVal(___sw1522___,1,g_GMLMathEpsilon,false)==0){___swc1523___=1;}switch(___swc1523___){case 0:{return gml_Script_s_str(_inst,_other,"person_She");break;}case 1:{return gml_Script_s_str(_inst,_other,"person_He");break;}};}}function gml_GlobalScript_s_get_string_time(_inst,_other,argument0,argument1){(_inst.gmls_get_string_time=__yy_method(_inst,gml_Script_s_get_string_time)); }function gml_Script_s_get_string_time(_inst,_other,argument0,argument1){{var gmlmins=string(argument0);var gmlsecs=string(argument1);if(yyfless(string_length(gmlsecs),2)){return yyfplus(yyfplus(__yy_gml_errCheck(gmlmins),":0"),__yy_gml_errCheck(gmlsecs));};return yyfplus(yyfplus(__yy_gml_errCheck(gmlmins),":"),__yy_gml_errCheck(gmlsecs));}}function gml_GlobalScript_s_string_rand(_inst,_other,argument0,argument1){(_inst.gmls_string_rand=__yy_method(_inst,gml_Script_s_string_rand));}function gml_Script_s_string_rand(_inst, _other,argument0,argument1){{return string(irandom_range(argument0,argument1));}}function gml_GlobalScript_s_get_string_downand(_inst,_other){(_inst.gmls_get_string_downand=__yy_method(_inst,gml_Script_s_get_string_downand));}function gml_Script_s_get_string_downand(_inst,_other){{var gmltxt="";var ___sw1526___=_inst.gmldown;var ___swc1527___=-1;if(yyCompareVal(___sw1526___,1,g_GMLMathEpsilon,false)==0){___swc1527___=0;}else if(yyCompareVal(___sw1526___,2,g_GMLMathEpsilon,false)==0){___swc1527___=1;}else if(yyCompareVal(___sw1526___, 3,g_GMLMathEpsilon,false)==0){___swc1527___=2;}else if(yyCompareVal(___sw1526___,4,g_GMLMathEpsilon,false)==0){___swc1527___=3;}switch(___swc1527___){case 0:{gmltxt=gml_Script_s_str(_inst,_other,"down_1and");break;}case 1:{gmltxt=gml_Script_s_str(_inst,_other,"down_2and");break;}case 2:{gmltxt=gml_Script_s_str(_inst,_other,"down_3and");break;}case 3:{gmltxt=gml_Script_s_str(_inst,_other,"down_4and");break;}default :{return "";}};if((yyGetBool(yyfless(_inst.gmlx_yards,300)))||(yyGetBool(yyfgreater(_inst.gmlx_yards, 2300)))){{gmltxt=yyfplus(gmltxt,yyfplus(" ",__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"Goal"))));};}else {if(yyfless(_inst.gmlyards,1)){{gmltxt=yyfplus(gmltxt,yyfplus(" ",__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"Inches"))));};}else {{gmltxt=yyfplus(gmltxt,yyfplus(" ",__yy_gml_errCheck(string(round(_inst.gmlyards)))));};};};return gmltxt;}}function gml_GlobalScript_s_get_string_float(_inst,_other,argument0,argument1){(_inst.gmls_get_string_float=__yy_method(_inst,gml_Script_s_get_string_float)); }function gml_Script_s_get_string_float(_inst,_other,argument0,argument1){{return string_replace_all(string_format(argument0,9,argument1)," ","");}}function gml_GlobalScript_s_get_string_division(_inst,_other,argument0,argument1){(_inst.gmls_get_string_division=__yy_method(_inst,gml_Script_s_get_string_division));}function gml_Script_s_get_string_division(_inst,_other,argument0,argument1){{var gml_conf=argument0;var gml_div=argument1;var ___sw1534___=gml_conf;var ___swc1535___=-1;if(yyCompareVal(___sw1534___, 0,g_GMLMathEpsilon,false)==0){___swc1535___=0;}else if(yyCompareVal(___sw1534___,1,g_GMLMathEpsilon,false)==0){___swc1535___=1;}switch(___swc1535___){case 0:{var ___sw1536___=gml_div;var ___swc1537___=-1;if(yyCompareVal(___sw1536___,0,g_GMLMathEpsilon,false)==0){___swc1537___=0;}else if(yyCompareVal(___sw1536___,1,g_GMLMathEpsilon,false)==0){___swc1537___=1;}else if(yyCompareVal(___sw1536___,2,g_GMLMathEpsilon,false)==0){___swc1537___=2;}else if(yyCompareVal(___sw1536___,3,g_GMLMathEpsilon,false)==0){___swc1537___=3; }switch(___swc1537___){case 0:{return yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_div1;break;}case 1:{return yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_div2;break;}case 2:{return yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_div3;break;}case 3:{return yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_div4;break;}};break;}case 1:{var ___sw1538___=gml_div;var ___swc1539___=-1;if(yyCompareVal(___sw1538___,0,g_GMLMathEpsilon,false)==0){___swc1539___=0;}else if(yyCompareVal(___sw1538___, 1,g_GMLMathEpsilon,false)==0){___swc1539___=1;}else if(yyCompareVal(___sw1538___,2,g_GMLMathEpsilon,false)==0){___swc1539___=2;}else if(yyCompareVal(___sw1538___,3,g_GMLMathEpsilon,false)==0){___swc1539___=3;}switch(___swc1539___){case 0:{return yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_div1b;break;}case 1:{return yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_div2b;break;}case 2:{return yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_div3b;break;}case 3:{return yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_div4b; break;}};break;}};}}function gml_GlobalScript_s_get_string_conference(_inst,_other,argument0){(_inst.gmls_get_string_conference=__yy_method(_inst,gml_Script_s_get_string_conference));}function gml_Script_s_get_string_conference(_inst,_other,argument0){{var ___sw1542___=argument0;var ___swc1543___=-1;if(yyCompareVal(___sw1542___,0,g_GMLMathEpsilon,false)==0){___swc1543___=0;}else if(yyCompareVal(___sw1542___,1,g_GMLMathEpsilon,false)==0){___swc1543___=1;}switch(___swc1543___){case 0:{return yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlname_conf1;break;}case 1:{return yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_conf2;break;}};}}function gml_GlobalScript_s_get_string_week(_inst,_other,argument0){(_inst.gmls_get_string_week=__yy_method(_inst,gml_Script_s_get_string_week));}function gml_Script_s_get_string_week(_inst,_other,argument0){{var gmlwk=argument0;if(yyfequal(gmlwk,0)){gmlwk=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek;};if(yyfless(gmlwk,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs)){ return yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Week"))," "),__yy_gml_errCheck(string(gmlwk)));};if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{if(yyGetBool(gml_Script_s_playoffs_12(_inst,_other))){{if(yyfequal(gmlwk,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs)){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,0))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_WildCard")))," 1");}else { if(yyfequal(gmlwk,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),1))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,0))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_WildCard")))," 2");}else {if(yyfequal(gmlwk,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),2))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst, _other,1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_WildCard")))," 1");}else {if(yyfequal(gmlwk,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),3))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_WildCard")))," 2");}else {if(yyfequal(gmlwk,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs), 4))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,0))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_PlayOff")))," 1");}else {if(yyfequal(gmlwk,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),5))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,0))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_PlayOff")))," 2");}else {if(yyfequal(gmlwk, yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),6))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_PlayOff")))," 1");}else {if(yyfequal(gmlwk,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),7))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,1))," "), __yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_PlayOff")))," 2");}else {if(yyfequal(gmlwk,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),8))){return yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,0))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Champion")));}else {if(yyfequal(gmlwk,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),9))){return yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst, _other,1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Champion")));}else {if(yyfequal(gmlwk,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),10))){return gml_Script_s_str(_inst,_other,"ui_SuperBowl");};};};};};};};};};};};};}else {{if(yyfequal(gmlwk,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs)){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,0))," "),__yy_gml_errCheck(gml_Script_s_str(_inst, _other,"ui_WildCard")))," 1");}else {if(yyfequal(gmlwk,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),1))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,0))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_WildCard")))," 2");}else {if(yyfequal(gmlwk,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),2))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst, _other,0))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_WildCard")))," 3");}else {if(yyfequal(gmlwk,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),3))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_WildCard")))," 1");}else {if(yyfequal(gmlwk,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs), 4))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_WildCard")))," 2");}else {if(yyfequal(gmlwk,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),5))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_WildCard")))," 3");}else {if(yyfequal(gmlwk, yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),6))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,0))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_PlayOff")))," 1");}else {if(yyfequal(gmlwk,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),7))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,0))," "), __yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_PlayOff")))," 2");}else {if(yyfequal(gmlwk,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),8))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_PlayOff")))," 1");}else {if(yyfequal(gmlwk,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),9))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst, _other,1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_PlayOff")))," 2");}else {if(yyfequal(gmlwk,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),10))){return yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,0))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Champion")));}else {if(yyfequal(gmlwk,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),11))){return yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst, _other,1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Champion")));}else {if(yyfequal(gmlwk,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),12))){return gml_Script_s_str(_inst,_other,"ui_SuperBowl");};};};};};};};};};};};};};};};};};return yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Week"))," "),__yy_gml_errCheck(string(gmlwk)));}}function gml_GlobalScript_s_get_string_week_short(_inst,_other){(_inst.gmls_get_string_week_short=__yy_method(_inst, gml_Script_s_get_string_week_short));}function gml_Script_s_get_string_week_short(_inst,_other,argument0){{if(yyfequal(argument0,0)){argument0=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek;};if(yyfless(argument0,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs)){return yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_Week"))," "),__yy_gml_errCheck(string(argument0)));};if(yyGetBool(gml_Script_s_playoffs_12(_inst,_other))){{if(yyfequal(argument0,yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs)){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,0))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_WildCard")))," 1");}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),1))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,0))," "),__yy_gml_errCheck(gml_Script_s_str(_inst, _other,"tla_WildCard")))," 2");}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),2))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_WildCard")))," 1");}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),3))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst, _other,1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_WildCard")))," 2");}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),4))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,0))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_PlayOff")))," 1");}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs), 5))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,0))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_PlayOff")))," 2");}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),6))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_PlayOff")))," 1");}else {if(yyfequal(argument0, yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),7))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_PlayOff")))," 2");}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),8))){return yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,0))," "), __yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_Champion")));}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),9))){return yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_Champion")));}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),10))){return gml_Script_s_str(_inst, _other,"tla_SuperBowl");};};};};};};};};};};};};}else {{if(yyfequal(argument0,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs)){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,0))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_WildCard")))," 1");}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),1))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst, _other,0))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_WildCard")))," 2");}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),2))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,0))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_WildCard")))," 3");}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs), 3))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_WildCard")))," 1");}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),4))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_WildCard")))," 2");}else {if(yyfequal(argument0, yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),4))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_WildCard")))," 3");}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),6))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other, 0))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_PlayOff")))," 1");}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),7))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,0))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_PlayOff")))," 2");}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs), 8))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_PlayOff")))," 1");}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),9))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_PlayOff")))," 2");}else {if(yyfequal(argument0, yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),10))){return yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,0))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_Champion")));}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),11))){return yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conference(_inst,_other,1))," "),__yy_gml_errCheck(gml_Script_s_str(_inst, _other,"tla_Champion")));}else {if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),12))){return gml_Script_s_str(_inst,_other,"tla_SuperBowl");};};};};};};};};};};};};};};};return yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_Week"))," "),__yy_gml_errCheck(string(argument0)));}}function gml_GlobalScript_s_get_string_year(_inst,_other,argument0){(_inst.gmls_get_string_year=__yy_method(_inst,gml_Script_s_get_string_year)); }function gml_Script_s_get_string_year(_inst,_other,argument0){{var gmlshort=argument0;var ___sw1546___=gmlshort;var ___swc1547___=-1;if(yyCompareVal(___sw1546___,false,g_GMLMathEpsilon,false)==0){___swc1547___=0;}else if(yyCompareVal(___sw1546___,true,g_GMLMathEpsilon,false)==0){___swc1547___=1;}switch(___swc1547___){case 0:{return yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Year"))," "),__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear)));break;}case 1:{ return yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"sla_Year")),__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear)));break;}};}}function gml_GlobalScript_s_get_string_commstage(_inst,_other){(_inst.gmls_get_string_commstage=__yy_method(_inst,gml_Script_s_get_string_commstage));}function gml_Script_s_get_string_commstage(_inst,_other,argument0){{var ___sw1550___=argument0;var ___swc1551___=-1;if(yyCompareVal(___sw1550___,0,g_GMLMathEpsilon,false)==0){___swc1551___=0; }else if(yyCompareVal(___sw1550___,1,g_GMLMathEpsilon,false)==0){___swc1551___=1;}else if(yyCompareVal(___sw1550___,2,g_GMLMathEpsilon,false)==0){___swc1551___=2;}else if(yyCompareVal(___sw1550___,3,g_GMLMathEpsilon,false)==0){___swc1551___=3;}else if(yyCompareVal(___sw1550___,4,g_GMLMathEpsilon,false)==0){___swc1551___=4;}else if(yyCompareVal(___sw1550___,5,g_GMLMathEpsilon,false)==0){___swc1551___=5;}else if(yyCompareVal(___sw1550___,6,g_GMLMathEpsilon,false)==0){___swc1551___=6;}else if(yyCompareVal(___sw1550___, 7,g_GMLMathEpsilon,false)==0){___swc1551___=7;}else if(yyCompareVal(___sw1550___,8,g_GMLMathEpsilon,false)==0){___swc1551___=8;}else if(yyCompareVal(___sw1550___,9,g_GMLMathEpsilon,false)==0){___swc1551___=9;}else if(yyCompareVal(___sw1550___,10,g_GMLMathEpsilon,false)==0){___swc1551___=10;}else if(yyCompareVal(___sw1550___,11,g_GMLMathEpsilon,false)==0){___swc1551___=11;}else if(yyCompareVal(___sw1550___,12,g_GMLMathEpsilon,false)==0){___swc1551___=12;}else if(yyCompareVal(___sw1550___,13,g_GMLMathEpsilon, false)==0){___swc1551___=13;}else if(yyCompareVal(___sw1550___,14,g_GMLMathEpsilon,false)==0){___swc1551___=14;}else if(yyCompareVal(___sw1550___,15,g_GMLMathEpsilon,false)==0){___swc1551___=15;}else if(yyCompareVal(___sw1550___,16,g_GMLMathEpsilon,false)==0){___swc1551___=16;}else if(yyCompareVal(___sw1550___,17,g_GMLMathEpsilon,false)==0){___swc1551___=17;}else if(yyCompareVal(___sw1550___,19,g_GMLMathEpsilon,false)==0){___swc1551___=18;}else if(yyCompareVal(___sw1550___,20,g_GMLMathEpsilon,false)==0){ ___swc1551___=19;}else if(yyCompareVal(___sw1550___,21,g_GMLMathEpsilon,false)==0){___swc1551___=20;}else if(yyCompareVal(___sw1550___,18,g_GMLMathEpsilon,false)==0){___swc1551___=21;}else if(yyCompareVal(___sw1550___,22,g_GMLMathEpsilon,false)==0){___swc1551___=22;}else if(yyCompareVal(___sw1550___,23,g_GMLMathEpsilon,false)==0){___swc1551___=23;}else if(yyCompareVal(___sw1550___,24,g_GMLMathEpsilon,false)==0){___swc1551___=24;}else if(yyCompareVal(___sw1550___,25,g_GMLMathEpsilon,false)==0){___swc1551___=25; }else if(yyCompareVal(___sw1550___,26,g_GMLMathEpsilon,false)==0){___swc1551___=26;}else if(yyCompareVal(___sw1550___,27,g_GMLMathEpsilon,false)==0){___swc1551___=27;}else if(yyCompareVal(___sw1550___,28,g_GMLMathEpsilon,false)==0){___swc1551___=28;}else if(yyCompareVal(___sw1550___,29,g_GMLMathEpsilon,false)==0){___swc1551___=29;}else if(yyCompareVal(___sw1550___,30,g_GMLMathEpsilon,false)==0){___swc1551___=30;}else if(yyCompareVal(___sw1550___,31,g_GMLMathEpsilon,false)==0){___swc1551___=31;}switch(___swc1551___){ case 0:{return "MATCH_START";}case 1:{return "KICKOFF";}case 2:{return "POSSESSION";}case 3:{return "ATTACK";}case 4:{return "DRIVE";}case 5:{return "PUNT";}case 6:{return "FIELDGOAL1";}case 7:{return "FIELDGOAL2";}case 8:{return "TURNOVER";}case 9:{return "TOUCHDOWN";}case 10:{return "PAT1";}case 11:{return "PAT2";}case 12:{return "QUARTER_A";}case 13:{return "QUARTER_B";}case 14:{return "TRAINING_START";}case 15:{return "TWOPOINT1";}case 16:{return "TWOPOINT2";}case 17:{return "OVERTIME_WIN";}case 18:{return "FAILED_SKILL";}case 19:{ return "FAILED_STRENGTH";}case 20:{return "FAILED_SPEED";}case 21:{return "OVERTIME_OVER";}case 22:{return "TURNOVER_HUMAN";}case 23:{return "INCOMPLETE";}case 24:{return "GOFORIT";}case 25:{return "ONSIDEKICK";}case 26:{return "ONSIDEKICK_NO";}case 27:{return "ONSIDEKICK_YES";}case 28:{return "ONSIDEKICK_SUCCESS";}case 29:{return "ONSIDEKICK_FAIL";}case 30:{return "TRAINING_END";}case 31:{return "MATCH_END";}};return yyfplus("UNKNOWN COMM_STAGE: ",__yy_gml_errCheck(string(argument0)));}}function gml_GlobalScript_s_get_string_position(_inst, _other){(_inst.gmls_get_string_position=__yy_method(_inst,gml_Script_s_get_string_position));}function gml_Script_s_get_string_position(_inst,_other,argument0){{var ___sw1554___=argument0;var ___swc1555___=-1;if(yyCompareVal(___sw1554___,1,g_GMLMathEpsilon,false)==0){___swc1555___=0;}else if(yyCompareVal(___sw1554___,5,g_GMLMathEpsilon,false)==0){___swc1555___=1;}else if(yyCompareVal(___sw1554___,3,g_GMLMathEpsilon,false)==0){___swc1555___=2;}else if(yyCompareVal(___sw1554___,2,g_GMLMathEpsilon,false)==0){ ___swc1555___=3;}else if(yyCompareVal(___sw1554___,4,g_GMLMathEpsilon,false)==0){___swc1555___=4;}else if(yyCompareVal(___sw1554___,6,g_GMLMathEpsilon,false)==0){___swc1555___=5;}else if(yyCompareVal(___sw1554___,7,g_GMLMathEpsilon,false)==0){___swc1555___=6;}else if(yyCompareVal(___sw1554___,9,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1554___,8,g_GMLMathEpsilon,false)==0){___swc1555___=7;}else if(yyCompareVal(___sw1554___,11,g_GMLMathEpsilon,false)==0){___swc1555___=8;}else if(yyCompareVal(___sw1554___, 10,g_GMLMathEpsilon,false)==0){___swc1555___=9;}else if(yyCompareVal(___sw1554___,100,g_GMLMathEpsilon,false)==0){___swc1555___=10;}else if(yyCompareVal(___sw1554___,101,g_GMLMathEpsilon,false)==0){___swc1555___=11;}else if(yyCompareVal(___sw1554___,102,g_GMLMathEpsilon,false)==0){___swc1555___=12;}switch(___swc1555___){case 0:{return gml_Script_s_str(_inst,_other,"pos_QB");break;}case 1:{return gml_Script_s_str(_inst,_other,"pos_OL");break;}case 2:{return gml_Script_s_str(_inst,_other,"pos_TE");break;}case 3:{ return gml_Script_s_str(_inst,_other,"pos_RB");break;}case 4:{return gml_Script_s_str(_inst,_other,"pos_WR");break;}case 5:{return gml_Script_s_str(_inst,_other,"pos_DL");break;}case 6:{return gml_Script_s_str(_inst,_other,"pos_LB");break;}case 7:{return gml_Script_s_str(_inst,_other,"pos_DB");break;}case 8:{return gml_Script_s_str(_inst,_other,"pos_KP");break;}case 9:{return gml_Script_s_str(_inst,_other,"pos_KK");break;}case 10:{return gml_Script_s_str(_inst,_other,"pos_STAFF_HC");break;}case 11:{return gml_Script_s_str(_inst, _other,"pos_STAFF_DF");break;}case 12:{return gml_Script_s_str(_inst,_other,"pos_STAFF_OF");break;}};return "";}}function gml_GlobalScript_s_get_string_position_full(_inst,_other){(_inst.gmls_get_string_position_full=__yy_method(_inst,gml_Script_s_get_string_position_full));}function gml_Script_s_get_string_position_full(_inst,_other,argument0){{var ___sw1558___=argument0;var ___swc1559___=-1;if(yyCompareVal(___sw1558___,1,g_GMLMathEpsilon,false)==0){___swc1559___=0;}else if(yyCompareVal(___sw1558___,5, g_GMLMathEpsilon,false)==0){___swc1559___=1;}else if(yyCompareVal(___sw1558___,3,g_GMLMathEpsilon,false)==0){___swc1559___=2;}else if(yyCompareVal(___sw1558___,2,g_GMLMathEpsilon,false)==0){___swc1559___=3;}else if(yyCompareVal(___sw1558___,4,g_GMLMathEpsilon,false)==0){___swc1559___=4;}else if(yyCompareVal(___sw1558___,6,g_GMLMathEpsilon,false)==0){___swc1559___=5;}else if(yyCompareVal(___sw1558___,7,g_GMLMathEpsilon,false)==0){___swc1559___=6;}else if(yyCompareVal(___sw1558___,9,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1558___, 8,g_GMLMathEpsilon,false)==0){___swc1559___=7;}else if(yyCompareVal(___sw1558___,11,g_GMLMathEpsilon,false)==0){___swc1559___=8;}else if(yyCompareVal(___sw1558___,10,g_GMLMathEpsilon,false)==0){___swc1559___=9;}else if(yyCompareVal(___sw1558___,100,g_GMLMathEpsilon,false)==0){___swc1559___=10;}else if(yyCompareVal(___sw1558___,101,g_GMLMathEpsilon,false)==0){___swc1559___=11;}else if(yyCompareVal(___sw1558___,102,g_GMLMathEpsilon,false)==0){___swc1559___=12;}switch(___swc1559___){case 0:{return gml_Script_s_str(_inst, _other,"position_QB");break;}case 1:{return gml_Script_s_str(_inst,_other,"position_OL");break;}case 2:{return gml_Script_s_str(_inst,_other,"position_TE");break;}case 3:{return gml_Script_s_str(_inst,_other,"position_RB");break;}case 4:{return gml_Script_s_str(_inst,_other,"position_WR");break;}case 5:{return gml_Script_s_str(_inst,_other,"position_DL");break;}case 6:{return gml_Script_s_str(_inst,_other,"position_LB");break;}case 7:{return gml_Script_s_str(_inst,_other,"position_DB");break;}case 8:{return gml_Script_s_str(_inst, _other,"position_KP");break;}case 9:{return gml_Script_s_str(_inst,_other,"position_KK");break;}case 10:{return gml_Script_s_str(_inst,_other,"position_STAFF_HC");break;}case 11:{return gml_Script_s_str(_inst,_other,"position_STAFF_DF");break;}case 12:{return gml_Script_s_str(_inst,_other,"position_STAFF_OF");break;}};}}function gml_GlobalScript_s_get_string_attitude(_inst,_other,argument0){(_inst.gmls_get_string_attitude=__yy_method(_inst,gml_Script_s_get_string_attitude));}function gml_Script_s_get_string_attitude(_inst, _other,argument0){{return gml_Script_s_str(_inst,_other,yyfplus("attitude_",__yy_gml_errCheck(string(gml_Script_s_get_attitude_icon(_inst,_other,argument0)))));}}function gml_GlobalScript_s_college_room_tools(_inst,_other){(_inst.gmls_goto_room=__yy_method(_inst,gml_Script_s_goto_room));(_inst.gmls_init_rm=__yy_method(_inst,gml_Script_s_init_rm));(_inst.gmls_destroy_rm=__yy_method(_inst,gml_Script_s_destroy_rm));(_inst.gmls_create_title=__yy_method(_inst,gml_Script_s_create_title));(_inst.gmls_create_button=__yy_method(_inst, gml_Script_s_create_button));(_inst.gmls_destroy_dynamic_buttons=__yy_method(_inst,gml_Script_s_destroy_dynamic_buttons));(_inst.gmls_calc_grid_coords=__yy_method(_inst,gml_Script_s_calc_grid_coords));(_inst.gmls_show_rm_winners=__yy_method(_inst,gml_Script_s_show_rm_winners));}function gml_Script____struct___196(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___196";}if(gml_Script____struct___196.prototype.__type===undefined){gml_Script____struct___196.prototype.__type="gml_Script____struct___196"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___196.prototype);{}}}function gml_Script_s_goto_room(_inst,_other,argument0,argument1){{if(yyfequal(argument1,_inst.undefined)){argument1=__yy_gml_object_create(_inst,(_inst.gml___struct___196=__yy_method(_inst,gml_Script____struct___196)));};}{global.gmlrm_params=argument1;room_goto(argument0);}}function gml_Script_anon_s_init_rm_gml_GlobalScript_s_college_room_tools_653_s_init_rm_gml_GlobalScript_s_college_room_tools(_inst, _other,argument0,argument1){{gml_Script_slogf(_inst,_other,"rm_params %1: %2 = %3",argument1,argument0,variable_struct_get(global.gmlrm_params,argument0));variable_instance_set(global.gmlrm,argument0,variable_struct_get(global.gmlrm_params,argument0));}}function gml_Script_s_init_rm(_inst,_other){{global.gmlrm=_inst;gml_Script_slogf(_inst,_other,"\n*** INIT ROOM %1",room_get_name(g_pBuiltIn.get_current_room()));if(yyGetBool(variable_global_exists("rm_params"))){array_foreach(variable_struct_get_names(global.gmlrm_params), __yy_method(_inst,gml_Script_anon_s_init_rm_gml_GlobalScript_s_college_room_tools_653_s_init_rm_gml_GlobalScript_s_college_room_tools));};_inst.gmlaction_destroy=kgml_Script_s_destroy_rm;}}function gml_Script____struct___197_s_destroy_rm_gml_GlobalScript_s_college_room_tools(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___197_s_destroy_rm_gml_GlobalScript_s_college_room_tools";}if(gml_Script____struct___197_s_destroy_rm_gml_GlobalScript_s_college_room_tools.prototype.__type===undefined){ gml_Script____struct___197_s_destroy_rm_gml_GlobalScript_s_college_room_tools.prototype.__type="gml_Script____struct___197_s_destroy_rm_gml_GlobalScript_s_college_room_tools";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___197_s_destroy_rm_gml_GlobalScript_s_college_room_tools.prototype);{}}}function gml_Script_s_destroy_rm(_inst,_other){{global.gmlrm_params=__yy_gml_object_create(_inst,(_inst.gml___struct___197=__yy_method(_inst,gml_Script____struct___197_s_destroy_rm_gml_GlobalScript_s_college_room_tools))); global.gmlrm=(-4);}}function gml_Script____struct___198_s_create_title_gml_GlobalScript_s_college_room_tools(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___198_s_create_title_gml_GlobalScript_s_college_room_tools";}if(gml_Script____struct___198_s_create_title_gml_GlobalScript_s_college_room_tools.prototype.__type===undefined){gml_Script____struct___198_s_create_title_gml_GlobalScript_s_college_room_tools.prototype.__type="gml_Script____struct___198_s_create_title_gml_GlobalScript_s_college_room_tools"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___198_s_create_title_gml_GlobalScript_s_college_room_tools.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlshow_stars=$$args[__yy_gml_array_check_index(2+(1),$$args)];}}}}function gml_Script_s_create_title(_inst,_other,argument0,argument1,argument2){{if(yyfequal(argument1,_inst.undefined)){argument1=16;};if(yyfequal(argument2,_inst.undefined)){ argument2=false;};}{return instance_create_layer(240,argument1,yyInst(_inst,_other,global.gmlrm).layer,YYASSET_REF(0x00000047),__yy_gml_object_create(_inst,(_inst.gml___struct___198=__yy_method(_inst,gml_Script____struct___198_s_create_title_gml_GlobalScript_s_college_room_tools)),argument0,argument2));}}function gml_Script_s_create_button(_inst,_other,argument0,argument1,argument2,argument3){{if(yyfequal(argument3,_inst.undefined)){argument3=YYASSET_REF(0x00000014);};}{return instance_create_layer(argument0, argument1,yyInst(_inst,_other,_inst.id).layer,argument3,argument2);}}function gml_Script_anon_s_destroy_dynamic_buttons_gml_GlobalScript_s_college_room_tools_1336_s_destroy_dynamic_buttons_gml_GlobalScript_s_college_room_tools(_inst,_other,argument0,argument1){{instance_destroy(_inst,argument0);}}function gml_Script_s_destroy_dynamic_buttons(_inst,_other,argument0){{array_foreach(argument0,__yy_method(_inst,gml_Script_anon_s_destroy_dynamic_buttons_gml_GlobalScript_s_college_room_tools_1336_s_destroy_dynamic_buttons_gml_GlobalScript_s_college_room_tools)); }}function gml_Script____struct___199_s_calc_grid_coords_gml_GlobalScript_s_college_room_tools(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___199_s_calc_grid_coords_gml_GlobalScript_s_college_room_tools";}if(gml_Script____struct___199_s_calc_grid_coords_gml_GlobalScript_s_college_room_tools.prototype.__type===undefined){gml_Script____struct___199_s_calc_grid_coords_gml_GlobalScript_s_college_room_tools.prototype.__type="gml_Script____struct___199_s_calc_grid_coords_gml_GlobalScript_s_college_room_tools"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___199_s_calc_grid_coords_gml_GlobalScript_s_college_room_tools.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.x=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.y=$$args[__yy_gml_array_check_index(2+(1),$$args)];}}}}function gml_Script_s_calc_grid_coords(_inst,_other,argument0,argument1,argument2,argument3,argument4,argument5,argument6,argument7){{if(yyfequal(argument1,_inst.undefined)){argument1=__yy_gml_array_create([]); };if(yyfequal(argument2,_inst.undefined)){argument2=25;};if(yyfequal(argument3,_inst.undefined)){argument3=75;};if(yyfequal(argument4,_inst.undefined)){argument4=4;};if(yyfequal(argument5,_inst.undefined)){argument5=110;};if(yyfequal(argument6,_inst.undefined)){argument6=38;};if(yyfequal(argument7,_inst.undefined)){argument7=true;};}{var gmlgrid=__yy_gml_array_create([]);var gmlgroups_num=array_length(argument1);var gmlcur_break=0;var gmlgroup_cnt;var gmlcnt;var gmloy=0;var gmlk=0;for(;yyfless(gmlk,yyfplus(__yy_gml_errCheck(gmlgroups_num), 1));(g_yyPrePostObject__=gmlk,gmlk=(g_yyPrePostObject__ instanceof Long?gmlk.add(1):++gmlk),g_yyPrePostObject__)){{if(yyfless(gmlcur_break,gmlgroups_num)){gmlgroup_cnt=argument1[__yy_gml_array_check_index(gmlcur_break,argument1)];}else {gmlgroup_cnt=argument0;};var gmli=0;for(;yyfless(gmli,gmlgroup_cnt);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{if((yyGetBool(yyfless(gmli,yyfminus(__yy_gml_errCheck(gmlgroup_cnt),__yy_gml_errCheck(yyfmod(__yy_gml_errCheck(gmlgroup_cnt), __yy_gml_errCheck(argument4)))))))||(yyGetBool(yyfequal(yyfmod(__yy_gml_errCheck(gmlgroup_cnt),__yy_gml_errCheck(argument4)),0)))||(yyGetBool(!yyGetBool(argument7)))){gmlcnt=0;}else {gmlcnt=yyfdivide(yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(argument4),__yy_gml_errCheck(yyfmod(__yy_gml_errCheck(gmlgroup_cnt),4)))),__yy_gml_errCheck(argument5)),2);};array_push(gmlgrid,__yy_gml_object_create(_inst,(_inst.gml___struct___199=__yy_method(_inst,gml_Script____struct___199_s_calc_grid_coords_gml_GlobalScript_s_college_room_tools)), yyfplus(yyfplus(__yy_gml_errCheck(argument2),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyfmod(__yy_gml_errCheck(gmli),4)),__yy_gml_errCheck(argument5)))),__yy_gml_errCheck(gmlcnt)),yyfplus(yyfplus(__yy_gml_errCheck(argument3),__yy_gml_errCheck(gmloy)),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(floor(yyfdivide(__yy_gml_errCheck(gmli),4))),__yy_gml_errCheck(argument6))))));}};(g_yyPrePostObject__=gmlcur_break,gmlcur_break=(g_yyPrePostObject__ instanceof Long?gmlcur_break.add(1):++gmlcur_break),g_yyPrePostObject__); argument0=yyfminus(argument0,gmlgroup_cnt);gmloy=yyfplus(gmloy,argument6);}};return gmlgrid;}}function gml_Script____struct___200_s_show_rm_winners_gml_GlobalScript_s_college_room_tools(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___200_s_show_rm_winners_gml_GlobalScript_s_college_room_tools";}if(gml_Script____struct___200_s_show_rm_winners_gml_GlobalScript_s_college_room_tools.prototype.__type===undefined){gml_Script____struct___200_s_show_rm_winners_gml_GlobalScript_s_college_room_tools.prototype.__type="gml_Script____struct___200_s_show_rm_winners_gml_GlobalScript_s_college_room_tools"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___200_s_show_rm_winners_gml_GlobalScript_s_college_room_tools.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlclick_continue=$$args[__yy_gml_array_check_index(2+(0),$$args)];}}}}function gml_Script_s_show_rm_winners(_inst,_other,argument0,argument1,argument2,argument3,argument4,argument5){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrm_winners_do_awards=argument0;yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrm_winners_cid=argument1; yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrm_winners_tier=argument2;yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrm_winners_custom=argument3;if(yyGetBool(argument5)){{gml_Script_s_sound_brass_loop(_inst,_other,1);};};gml_Script_s_goto_room(_inst,_other,YYASSET_REF(0x03000021),__yy_gml_object_create(_inst,(_inst.gml___struct___200=__yy_method(_inst,gml_Script____struct___200_s_show_rm_winners_gml_GlobalScript_s_college_room_tools)),argument4));}}function gml_GlobalScript_s_get_string_trade_value(_inst, _other,argument0){(_inst.gmls_get_string_trade_value=__yy_method(_inst,gml_Script_s_get_string_trade_value));}function gml_Script_s_get_string_trade_value(_inst,_other,argument0){{var gmltraderound=argument0;if(yyfgreater(gmltraderound,0)){return yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_Round"))," "),__yy_gml_errCheck(string(gmltraderound)))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Pick")));};return gml_Script_s_str(_inst,_other,"ui_None"); }}function gml_GlobalScript_s_get_string_anim(_inst,_other,argument0){(_inst.gmls_get_string_anim=__yy_method(_inst,gml_Script_s_get_string_anim));}function gml_Script_s_get_string_anim(_inst,_other,argument0){{var ___sw1562___=argument0;var ___swc1563___=-1;if(yyCompareVal(___sw1562___,0,g_GMLMathEpsilon,false)==0){___swc1563___=0;}else if(yyCompareVal(___sw1562___,1,g_GMLMathEpsilon,false)==0){___swc1563___=1;}else if(yyCompareVal(___sw1562___,2,g_GMLMathEpsilon,false)==0){___swc1563___=2;}else if(yyCompareVal(___sw1562___, 3,g_GMLMathEpsilon,false)==0){___swc1563___=3;}else if(yyCompareVal(___sw1562___,4,g_GMLMathEpsilon,false)==0){___swc1563___=4;}else if(yyCompareVal(___sw1562___,5,g_GMLMathEpsilon,false)==0){___swc1563___=5;}else if(yyCompareVal(___sw1562___,6,g_GMLMathEpsilon,false)==0){___swc1563___=6;}else if(yyCompareVal(___sw1562___,7,g_GMLMathEpsilon,false)==0){___swc1563___=7;}else if(yyCompareVal(___sw1562___,8,g_GMLMathEpsilon,false)==0){___swc1563___=8;}else if(yyCompareVal(___sw1562___,9,g_GMLMathEpsilon,false)==0){ ___swc1563___=9;}else if(yyCompareVal(___sw1562___,10,g_GMLMathEpsilon,false)==0){___swc1563___=10;}else if(yyCompareVal(___sw1562___,11,g_GMLMathEpsilon,false)==0){___swc1563___=11;}else if(yyCompareVal(___sw1562___,12,g_GMLMathEpsilon,false)==0){___swc1563___=12;}else if(yyCompareVal(___sw1562___,13,g_GMLMathEpsilon,false)==0){___swc1563___=13;}else if(yyCompareVal(___sw1562___,14,g_GMLMathEpsilon,false)==0){___swc1563___=14;}else if(yyCompareVal(___sw1562___,15,g_GMLMathEpsilon,false)==0){___swc1563___=15; }else if(yyCompareVal(___sw1562___,16,g_GMLMathEpsilon,false)==0){___swc1563___=16;}else if(yyCompareVal(___sw1562___,17,g_GMLMathEpsilon,false)==0){___swc1563___=17;}else if(yyCompareVal(___sw1562___,18,g_GMLMathEpsilon,false)==0){___swc1563___=18;}else if(yyCompareVal(___sw1562___,19,g_GMLMathEpsilon,false)==0){___swc1563___=19;}switch(___swc1563___){case 0:{return "ANIM_STAND";break;}case 1:{return "ANIM_CROUCH";break;}case 2:{return "ANIM_RUN";break;}case 3:{return "ANIM_TACKLING";break;}case 4:{return "ANIM_FALLING"; break;}case 5:{return "ANIM_DIVE";break;}case 6:{return "ANIM_GETUP";break;}case 7:{return "ANIM_JOCKEY";break;}case 8:{return "ANIM_JUMP";break;}case 9:{return "ANIM_STIFFARM";break;}case 10:{return "ANIM_JUMPCATCH";break;}case 11:{return "ANIM_AIM";break;}case 12:{return "ANIM_THROW";break;}case 13:{return "ANIM_PLACE";break;}case 14:{return "ANIM_KICK1";break;}case 15:{return "ANIM_KICK2";break;}case 16:{return "ANIM_SPIKE";break;}case 17:{return "ANIM_CELEBRATE";break;}case 18:{return "ANIM_FIRSTDOWN";break;}case 19:{return "ANIM_KNEEL"; break;}};return "";}}function gml_GlobalScript_s_get_string_condition(_inst,_other,argument0){(_inst.gmls_get_string_condition=__yy_method(_inst,gml_Script_s_get_string_condition));}function gml_Script_s_get_string_condition(_inst,_other,argument0){{var gmlcon=argument0;if(yyflessequal(gmlcon,(-1))){return yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"condition_0"))," ("),__yy_gml_errCheck(string(abs(gmlcon)))),")");}else {if(yyflessequal(gmlcon,20)){return gml_Script_s_str(_inst, _other,"condition_1");}else {if(yyflessequal(gmlcon,40)){return gml_Script_s_str(_inst,_other,"condition_2");}else {if(yyflessequal(gmlcon,60)){return gml_Script_s_str(_inst,_other,"condition_3");}else {if(yyflessequal(gmlcon,80)){return gml_Script_s_str(_inst,_other,"condition_4");}else {if(yyflessequal(gmlcon,99)){return gml_Script_s_str(_inst,_other,"condition_5");}else {return gml_Script_s_str(_inst,_other,"condition_6");};};};};};};}}function gml_GlobalScript_s_get_string_record(_inst,_other,argument0, argument1){(_inst.gmls_get_string_record=__yy_method(_inst,gml_Script_s_get_string_record));(_inst.gmls_get_string_record_co_extended=__yy_method(_inst,gml_Script_s_get_string_record_co_extended));(_inst.gmls_get_string_conf_tag=__yy_method(_inst,gml_Script_s_get_string_conf_tag));}function gml_Script_s_get_string_record(_inst,_other,argument0,argument1){{var gmltmap=argument0;var gmlalways_include_ties=argument1;var gmltxt=string(ds_map_find_value(gmltmap,"wins"));gmltxt=yyfplus(gmltxt,yyfplus("-", __yy_gml_errCheck(string(ds_map_find_value(gmltmap,"losses")))));if((yyGetBool(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))))&&(yyGetBool((yyGetBool(yyfgreater(ds_map_find_value(gmltmap,"ties"),0)))||(yyGetBool(gmlalways_include_ties))))){gmltxt=yyfplus(gmltxt,yyfplus("-",__yy_gml_errCheck(string(ds_map_find_value(gmltmap,"ties")))));};return gmltxt;}}function gml_Script_s_get_string_record_co_extended(_inst,_other,argument0){{var gmltxt="";if(yyfnotequal(ds_map_find_value(argument0,"conference"), 7)){{gmltxt=yyfplus(gmltxt,yyfplus(__yy_gml_errCheck(string_upper(gml_Script_s_str(_inst,_other,"tla_Conference")))," "));gmltxt=yyfplus(gmltxt,yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(string(ds_map_find_value(argument0,"wins_cnf"))),"-"),__yy_gml_errCheck(string(ds_map_find_value(argument0,"losses_cnf"))))," "));};};gmltxt=yyfplus(gmltxt,yyfplus(__yy_gml_errCheck(string_upper(gml_Script_s_str(_inst,_other,"tla_Overall")))," "));gmltxt=yyfplus(gmltxt,yyfplus(yyfplus(__yy_gml_errCheck(string(ds_map_find_value(argument0, "wins"))),"-"),__yy_gml_errCheck(string(ds_map_find_value(argument0,"losses")))));return gmltxt;}}function gml_Script_s_get_string_conf_tag(_inst,_other,argument0,argument1){{var gmlotherFBSrank=gml_Script_s_subdivision_get_team_ranking(_inst,_other,1,ds_map_find_value(argument1,"uid"));var gmlotherFCSrank=gml_Script_s_subdivision_get_team_ranking(_inst,_other,2,ds_map_find_value(argument1,"uid"));var gmlotherIsFBS=yyfnotequal(gmlotherFBSrank,(-1));var gmlotherIsFCS=yyfnotequal(gmlotherFCSrank,(-1));var gmlFBSrank=gml_Script_s_subdivision_get_team_ranking(_inst, _other,1,ds_map_find_value(argument0,"uid"));var gmlFCSrank=gml_Script_s_subdivision_get_team_ranking(_inst,_other,2,ds_map_find_value(argument0,"uid"));var gmlrank=(-1);var gmlbothTeamsSame=false;if(yyfnotequal(gmlFBSrank,(-1))){{gmlrank=gmlFBSrank;gmlbothTeamsSame=gmlotherIsFBS;};};if(yyfnotequal(gmlFCSrank,(-1))){{gmlrank=gmlFCSrank;gmlbothTeamsSame=gmlotherIsFCS;};};if((yyGetBool(yyfnotequal(gmlrank,(-1))))&&(yyGetBool(yyflessequal(gmlrank,24)))&&(yyGetBool(gmlbothTeamsSame))){{return yyfplus(yyfplus("#", __yy_gml_errCheck(string(yyfplus(__yy_gml_errCheck(gmlrank),1))))," ");};};return "";}}function gml_GlobalScript_s_get_string_trait(_inst,_other,argument0){(_inst.gmls_get_string_trait=__yy_method(_inst,gml_Script_s_get_string_trait));}function gml_Script_s_get_string_trait(_inst,_other,argument0){{return gml_Script_s_str(_inst,_other,yyfplus("coachtrait_",__yy_gml_errCheck(string(argument0))));}}function gml_GlobalScript_s_get_string_action_result(_inst,_other,argument0){(_inst.gmls_get_string_action_result=__yy_method(_inst, gml_Script_s_get_string_action_result));}function gml_Script_s_get_string_action_result(_inst,_other,argument0){{var ___sw1566___=argument0;var ___swc1567___=-1;if(yyCompareVal(___sw1566___,1,g_GMLMathEpsilon,false)==0){___swc1567___=0;}else if(yyCompareVal(___sw1566___,2,g_GMLMathEpsilon,false)==0){___swc1567___=1;}else if(yyCompareVal(___sw1566___,3,g_GMLMathEpsilon,false)==0){___swc1567___=2;}else if(yyCompareVal(___sw1566___,4,g_GMLMathEpsilon,false)==0){___swc1567___=3;}else if(yyCompareVal(___sw1566___, 5,g_GMLMathEpsilon,false)==0){___swc1567___=4;}else if(yyCompareVal(___sw1566___,6,g_GMLMathEpsilon,false)==0){___swc1567___=5;}else if(yyCompareVal(___sw1566___,7,g_GMLMathEpsilon,false)==0){___swc1567___=6;}else if(yyCompareVal(___sw1566___,8,g_GMLMathEpsilon,false)==0){___swc1567___=7;}else if(yyCompareVal(___sw1566___,9,g_GMLMathEpsilon,false)==0){___swc1567___=8;}else if(yyCompareVal(___sw1566___,10,g_GMLMathEpsilon,false)==0){___swc1567___=9;}else if(yyCompareVal(___sw1566___,11,g_GMLMathEpsilon, false)==0){___swc1567___=10;}switch(___swc1567___){case 0:{return "ACTION_RESULT_TOUCHDOWN";}case 1:{return "ACTION_RESULT_TOUCHDOWN_OPP";}case 2:{return "ACTION_RESULT_INTERCEPTED";}case 3:{return "ACTION_RESULT_TURNOVER";}case 4:{return "ACTION_RESULT_PUNT";}case 5:{return "ACTION_RESULT_FIELDGOAL_GOOD";}case 6:{return "ACTION_RESULT_FIELDGOAL_BAD";}case 7:{return "ACTION_RESULT_SAFETY";}case 8:{return "ACTION_RESULT_TIMEUP";}case 9:{return "ACTION_RESULT_FIELDGOAL_QB";}case 10:{return "ACTION_RESULT_PAT_QB";}};}}function gml_GlobalScript_s_can_touchback(_inst, _other){(_inst.gmls_can_touchback=__yy_method(_inst,gml_Script_s_can_touchback));}function gml_Script_s_can_touchback(_inst,_other){{{var __yy__v1852=GetWithArray(global.gmlmaster_ball);for(var __yy__v1853 in __yy__v1852){if(!__yy__v1852.hasOwnProperty(__yy__v1853))continue;var __yy__v1854=__yy__v1852[__yy__v1853];{if(!yyGetBool(__yy__v1854.gmlholder)){return false;};if((yyGetBool(yyfgreater(__yy__v1854.x,300)))&&(yyGetBool(yyfless(__yy__v1854.x,2300)))){return false;};if((yyGetBool(yyfless(__yy__v1854.y, 132)))||(yyGetBool(yyfgreater(__yy__v1854.y,468)))){return false;};if((yyGetBool(yyfgreater(yyInst(_inst,_other,__yy__v1854.gmlholder).x,300)))&&(yyGetBool(yyfless(yyInst(_inst,_other,__yy__v1854.gmlholder).x,2300)))){return false;};if((yyGetBool(yyfless(yyInst(_inst,_other,__yy__v1854.gmlholder).y,132)))||(yyGetBool(yyfgreater(yyInst(_inst,_other,__yy__v1854.gmlholder).y,468)))){return false;};if(yyfless(yyInst(_inst,_other,__yy__v1854.gmlholder).gmlgoaldist,1000)){return false;};var ___sw1570___=yyInst(_inst, _other,YYASSET_REF(0x00000069)).gmldrivedir;var ___swc1571___=-1;if(yyCompareVal(___sw1570___,(-1),g_GMLMathEpsilon,false)==0){___swc1571___=0;}else if(yyCompareVal(___sw1570___,1,g_GMLMathEpsilon,false)==0){___swc1571___=1;}switch(___swc1571___){case 0:{if((yyGetBool(yyfnotequal(yyInst(_inst,_other,__yy__v1854.gmlholder).gmlmin_x,(-1))))&&(yyGetBool(yyfless(yyInst(_inst,_other,__yy__v1854.gmlholder).gmlmin_x,2300)))){return false;};break;}case 1:{if((yyGetBool(yyfnotequal(yyInst(_inst,_other,__yy__v1854.gmlholder).gmlmax_x, (-1))))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,__yy__v1854.gmlholder).gmlmax_x,300)))){return false;};break;}};return true;}}};return false;}}function gml_GlobalScript_s_get_string_performance(_inst,_other){(_inst.gmls_get_string_performance=__yy_method(_inst,gml_Script_s_get_string_performance));}function gml_Script_s_get_string_performance(_inst,_other,argument0){{if(yyfgreater(argument0,90)){return yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"rating_Incredible")),"!");};if(yyfgreater(argument0, 75)){return gml_Script_s_str(_inst,_other,"rating_Great");};if(yyfgreater(argument0,60)){return gml_Script_s_str(_inst,_other,"rating_Good");};if(yyfgreater(argument0,45)){return gml_Script_s_str(_inst,_other,"rating_Ok");};if(yyfgreater(argument0,30)){return gml_Script_s_str(_inst,_other,"rating_Poor");};return yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"rating_Terrible")),"!");}}function gml_GlobalScript_s_get_random_teamname(_inst,_other){(_inst.gmls_get_random_teamname=__yy_method(_inst, gml_Script_s_get_random_teamname));(_inst.gmls_get_random_team_id=__yy_method(_inst,gml_Script_s_get_random_team_id));}function gml_Script_s_get_random_teamname(_inst,_other,argument0){{{var __yy__v1855=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1856 in __yy__v1855){if(!__yy__v1855.hasOwnProperty(__yy__v1856))continue;var __yy__v1857=__yy__v1855[__yy__v1856];{var gmltmap=(-4);if(yyGetBool(argument0)){gmltmap=ds_list_find_value(__yy__v1857.gmlteamlist,gml_Script_s_get_random_team_id(__yy__v1857, _inst));}else {{do {{gmltmap=ds_list_find_value(__yy__v1857.gmlteamlist,gml_Script_s_get_random_team_id(__yy__v1857,_inst));}}while(!(yyfnotequal(gmltmap,__yy__v1857.gmlmyteam)));};};return ds_map_find_value(gmltmap,"name");}}};}}function gml_Script_s_get_random_team_id(_inst,_other){{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){return irandom_range(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmin_team_id,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmax_team_id);}else {return irandom(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlmax_team_id);};}}function gml_GlobalScript_btn_click_Roster_List(_inst,_other){(_inst.gmlbtn_click_Roster_List=__yy_method(_inst,gml_Script_btn_click_Roster_List));}function gml_Script_btn_click_Roster_List(_inst,_other){{room_goto(YYASSET_REF(0x03000022));}}function gml_GlobalScript_s_get_string_picks(_inst,_other,argument0){(_inst.gmls_get_string_picks=__yy_method(_inst,gml_Script_s_get_string_picks));}function gml_Script_s_get_string_picks(_inst,_other,argument0){ {var gmlshort=argument0;var gmldraft_txt="";var gmlspacer=" - ";if(yyGetBool(gmlshort)){gmlspacer="-";};{var __yy__v1858=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1859 in __yy__v1858){if(!__yy__v1858.hasOwnProperty(__yy__v1859))continue;var __yy__v1860=__yy__v1858[__yy__v1859];{gmldraft_txt=yyfplus(gmldraft_txt,yyfplus(__yy_gml_errCheck(string(__yy__v1860.gmldraft_picks[__yy_gml_array_check_index(0,__yy__v1860.gmldraft_picks)])),__yy_gml_errCheck(gmlspacer)));gmldraft_txt=yyfplus(gmldraft_txt, yyfplus(__yy_gml_errCheck(string(__yy__v1860.gmldraft_picks[__yy_gml_array_check_index(1,__yy__v1860.gmldraft_picks)])),__yy_gml_errCheck(gmlspacer)));gmldraft_txt=yyfplus(gmldraft_txt,string(__yy__v1860.gmldraft_picks[__yy_gml_array_check_index(2,__yy__v1860.gmldraft_picks)]));}}};return gmldraft_txt;}}function gml_GlobalScript_s_get_team_by_id(_inst,_other){(_inst.gmls_get_team_by_id=__yy_method(_inst,gml_Script_s_get_team_by_id));(_inst.gmls_get_team_by_id_internal=__yy_method(_inst,gml_Script_s_get_team_by_id_internal)); }function gml_Script_s_get_team_by_id(_inst,_other,argument0){{var gmlteam;var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteamlist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlteam=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteamlist,gmli);if(yyfequal(ds_map_find_value(gmlteam,"uid"),argument0)){{return gmlteam;};};}};gmlteam=ds_map_create();ds_map_set(gmlteam,"uid", (-1));ds_map_set(gmlteam,"name","-");ds_map_set(gmlteam,"tla","-");return gmlteam;}}function gml_Script_s_get_team_by_id_internal(_inst,_other,argument0,argument1){{var gmli=0;for(;yyfless(gmli,ds_list_size(argument1));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlteam=ds_list_find_value(argument1,gmli);if(yyfequal(ds_map_find_value(gmlteam,"uid"),argument0)){return gmlteam;};}};var gmlteam=ds_map_create();ds_map_set(gmlteam,"uid",(-1)); ds_map_set(gmlteam,"name","Null Team");ds_map_set(gmlteam,"tla","-");gml_Script_slog(_inst,_other,"RETURN DUMMY TEAM!");return gmlteam;}}function gml_GlobalScript_s_get_team_name_by_id(_inst,_other,argument0){(_inst.gmls_get_team_name_by_id=__yy_method(_inst,gml_Script_s_get_team_name_by_id));}function gml_Script_s_get_team_name_by_id(_inst,_other,argument0){{var gmltmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteamlist,argument0);return ds_map_find_value(gmltmap,"name");}}function gml_GlobalScript_s_get_team_tla_by_id(_inst, _other,argument0){(_inst.gmls_get_team_tla_by_id=__yy_method(_inst,gml_Script_s_get_team_tla_by_id));}function gml_Script_s_get_team_tla_by_id(_inst,_other,argument0){{var gmltmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteamlist,argument0);return ds_map_find_value(gmltmap,"tla");}}function gml_GlobalScript_s_sort_teams(_inst,_other){(_inst.gmls_sort_teams=__yy_method(_inst,gml_Script_s_sort_teams));}function gml_Script_s_sort_teams(_inst,_other,argument0,argument1,argument2){ {var gmlsortedlist=ds_list_create();while(yyfgreater(ds_list_size(argument0),0)){{var gmlbestteam=(-4);var gmlbestpct=(-1);var gmli=0;for(;yyfless(gmli,ds_list_size(argument0));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmltmap=ds_list_find_value(argument0,gmli);ds_map_set(gmltmap,"offense",real(ds_map_find_value(gmltmap,"offense")));ds_map_set(gmltmap,"defense",real(ds_map_find_value(gmltmap,"defense")));var ___sw1574___=argument1; var ___swc1575___=-1;if(yyCompareVal(___sw1574___,0,g_GMLMathEpsilon,false)==0){___swc1575___=0;}else if(yyCompareVal(___sw1574___,1,g_GMLMathEpsilon,false)==0){___swc1575___=1;}else if(yyCompareVal(___sw1574___,2,g_GMLMathEpsilon,false)==0){___swc1575___=2;}switch(___swc1575___){case 0:{var gmlwins=real(ds_map_find_value(gmltmap,"wins"));var gmllosses=real(ds_map_find_value(gmltmap,"losses"));var gmlties=real(ds_map_find_value(gmltmap,"ties"));var gmlgames=yyfplus(yyfplus(__yy_gml_errCheck(gmlwins),__yy_gml_errCheck(gmllosses)), __yy_gml_errCheck(gmlties));var gmlwinpct=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(gmlwins),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlties),0.5)))),__yy_gml_errCheck(gmlgames));gmlwinpct=gml_Script_s_round_to_decimal(_inst,_other,gmlwinpct,3);if(!yyGetBool(argument2)){{if((yyGetBool(!yyGetBool(gmlbestteam)))||(yyGetBool(yyfgreater(gmlwins,real(ds_map_find_value(gmlbestteam,"wins")))))||(yyGetBool(yyfgreater(gmlwinpct,gmlbestpct)))){{gmlbestteam=gmltmap;gmlbestpct=gmlwinpct;};}else { if((yyGetBool(yyfequal(gmlwinpct,gmlbestpct)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,2)))){{var gmlhead2head=gml_Script_s_get_head_to_head(_inst,_other,ds_map_find_value(gmltmap,"uid"),ds_map_find_value(gmlbestteam,"uid"));if(yyfequal(gmlhead2head,(-1))){{gmlbestteam=gmltmap;gmlbestpct=gmlwinpct;};}else {if(yyfequal(gmlhead2head,0)){{var gmlconfdiv="division";if(yyfnotequal(ds_map_find_value(gmltmap,"division"),ds_map_find_value(gmlbestteam,"division"))){gmlconfdiv="conference"; };var gmldivpct1=gml_Script_s_get_win_pecentage_by_confdiv(_inst,_other,ds_map_find_value(gmltmap,"uid"),gmlconfdiv);var gmldivpct2=gml_Script_s_get_win_pecentage_by_confdiv(_inst,_other,ds_map_find_value(gmlbestteam,"uid"),gmlconfdiv);if(yyfgreater(gmldivpct1,gmldivpct2)){{gmlbestteam=gmltmap;gmlbestpct=gmlwinpct;};}else {if(yyfequal(gmldivpct1,gmldivpct2)){{var gmlpoints1=gml_Script_s_get_points_season(_inst,_other,ds_map_find_value(gmltmap,"uid"));var gmlpoints2=gml_Script_s_get_points_season(_inst, _other,ds_map_find_value(gmlbestteam,"uid"));if(yyfgreater(gmlpoints1,gmlpoints2)){{gmlbestteam=gmltmap;gmlbestpct=gmlwinpct;};}else {if(yyfequal(gmlpoints1,gmlpoints2)){{if(yyfgreater(ds_map_find_value(gmltmap,"uid"),ds_map_find_value(gmlbestteam,"uid"))){{gmlbestteam=gmltmap;gmlbestpct=gmlwinpct;};};};};};};};};};};};};};};};}else {{if((yyGetBool(!yyGetBool(gmlbestteam)))||(yyGetBool(yyfless(gmlwinpct,gmlbestpct)))||(yyGetBool((yyGetBool(yyfequal(gmlwinpct,gmlbestpct)))&&(yyGetBool(yyfless(gmlwins, ds_map_find_value(gmlbestteam,"wins"))))))){{gmlbestteam=gmltmap;gmlbestpct=gmlwinpct;};}else {if((yyGetBool(yyfequal(gmlwinpct,gmlbestpct)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,2)))){{var gmlhead2head=gml_Script_s_get_head_to_head(_inst,_other,ds_map_find_value(gmltmap,"uid"),ds_map_find_value(gmlbestteam,"uid"));if(yyfequal(gmlhead2head,1)){{gmlbestteam=gmltmap;gmlbestpct=gmlwinpct;};}else {if(yyfequal(gmlhead2head,0)){{var gmlconfdiv="division";if(yyfnotequal(ds_map_find_value(gmltmap, "division"),ds_map_find_value(gmlbestteam,"division"))){gmlconfdiv="conference";};var gmldivpct1=gml_Script_s_get_win_pecentage_by_confdiv(_inst,_other,ds_map_find_value(gmltmap,"uid"),gmlconfdiv);var gmldivpct2=gml_Script_s_get_win_pecentage_by_confdiv(_inst,_other,ds_map_find_value(gmlbestteam,"uid"),gmlconfdiv);if(yyfless(gmldivpct1,gmldivpct2)){{gmlbestteam=gmltmap;gmlbestpct=gmlwinpct;};}else {if(yyfequal(gmldivpct1,gmldivpct2)){{var gmlpoints1=gml_Script_s_get_points_season(_inst,_other,ds_map_find_value(gmltmap, "uid"));var gmlpoints2=gml_Script_s_get_points_season(_inst,_other,ds_map_find_value(gmlbestteam,"uid"));if(yyfless(gmlpoints1,gmlpoints2)){{gmlbestteam=gmltmap;gmlbestpct=gmlwinpct;};}else {if(yyfequal(gmlpoints1,gmlpoints2)){{if(yyfless(ds_map_find_value(gmltmap,"uid"),ds_map_find_value(gmlbestteam,"uid"))){{gmlbestteam=gmltmap;gmlbestpct=gmlwinpct;};};};};};};};};};};};};};};};};break;}case 1:{var gmlname=ds_map_find_value(gmltmap,"name");if(yyGetBool(argument2)){{if((yyGetBool(!yyGetBool(gmlbestteam)))||(yyGetBool(yyfless(gmlname, ds_map_find_value(gmlbestteam,"name"))))){gmlbestteam=gmltmap;};};}else {{if((yyGetBool(!yyGetBool(gmlbestteam)))||(yyGetBool(yyfgreater(gmlname,ds_map_find_value(gmlbestteam,"name"))))){gmlbestteam=gmltmap;};};};break;}case 2:{var gmlrating=yyfplus(__yy_gml_errCheck(ds_map_find_value(gmltmap,"offense")),__yy_gml_errCheck(ds_map_find_value(gmltmap,"defense")));if(yyGetBool(argument2)){{if((yyGetBool(!yyGetBool(gmlbestteam)))||(yyGetBool(yyfless(gmlrating,yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlbestteam, "offense")),__yy_gml_errCheck(ds_map_find_value(gmlbestteam,"defense"))))))){gmlbestteam=gmltmap;};};}else {{if((yyGetBool(!yyGetBool(gmlbestteam)))||(yyGetBool(yyfgreater(gmlrating,yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlbestteam,"offense")),__yy_gml_errCheck(ds_map_find_value(gmlbestteam,"defense"))))))){gmlbestteam=gmltmap;};};};break;}};}};ds_list_add(gmlsortedlist,gmlbestteam);ds_list_delete(argument0,ds_list_find_index(argument0,gmlbestteam));}};ds_list_destroy(argument0);argument0=(-1); return gmlsortedlist;}}function gml_GlobalScript_s_get_team_by_seed(_inst,_other){(_inst.gmls_get_team_by_seed=__yy_method(_inst,gml_Script_s_get_team_by_seed));(_inst.gmls_get_team_by_seed_co=__yy_method(_inst,gml_Script_s_get_team_by_seed_co));(_inst.gmls_get_team_seeding=__yy_method(_inst,gml_Script_s_get_team_seeding));}function gml_Script_s_get_team_by_seed(_inst,_other,argument0,argument1){{var gmldiv_winner;gmldiv_winner=__yy_gml_array_check(gmldiv_winner,2664416060);gmldiv_winner[__yy_gml_array_check_index_set(0)]=gml_Script_s_get_division_winner(_inst, _other,argument0,0);gmldiv_winner[__yy_gml_array_check_index_set(1)]=gml_Script_s_get_division_winner(_inst,_other,argument0,1);gmldiv_winner[__yy_gml_array_check_index_set(2)]=gml_Script_s_get_division_winner(_inst,_other,argument0,2);gmldiv_winner[__yy_gml_array_check_index_set(3)]=gml_Script_s_get_division_winner(_inst,_other,argument0,3);{var __yy__v1861=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1862 in __yy__v1861){if(!__yy__v1861.hasOwnProperty(__yy__v1862))continue;var __yy__v1863=__yy__v1861[__yy__v1862]; {var gmlteams_conf=ds_list_create();if(yyflessequal(argument1,4)){{ds_list_add(gmlteams_conf,gmldiv_winner[__yy_gml_array_check_index(0,gmldiv_winner)]);ds_list_add(gmlteams_conf,gmldiv_winner[__yy_gml_array_check_index(1,gmldiv_winner)]);ds_list_add(gmlteams_conf,gmldiv_winner[__yy_gml_array_check_index(2,gmldiv_winner)]);ds_list_add(gmlteams_conf,gmldiv_winner[__yy_gml_array_check_index(3,gmldiv_winner)]);};}else {{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1863.gmlteamlist));(g_yyPrePostObject__=gmli, gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlteam=ds_list_find_value(__yy__v1863.gmlteamlist,gmli);if(yyfequal(real(ds_map_find_value(gmlteam,"conference")),argument0)){{var gmlwinner=false;if(yyfgreater(argument1,4)){{var gmlr=0;for(;yyfless(gmlr,4);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{if(yyfequal(gmlteam,gmldiv_winner[__yy_gml_array_check_index(gmlr,gmldiv_winner)])){{gmlwinner=true; break;};};}};};};if(!yyGetBool(gmlwinner)){ds_list_add(gmlteams_conf,gmlteam);};};};}};};};gmlteams_conf=gml_Script_s_sort_teams(__yy__v1863,_inst,gmlteams_conf,0,false);if(yyfgreater(argument1,4)){argument1=yyfminus(argument1,4);};var gmlteam=ds_list_find_value(gmlteams_conf,yyfminus(__yy_gml_errCheck(argument1),1));ds_list_destroy(gmlteams_conf);gmlteams_conf=(-1);return gmlteam;}}};}}function gml_Script_s_get_team_by_seed_co(_inst,_other,argument0,argument1){{{var __yy__v1864=GetWithArray(YYASSET_REF(0x00000062)); for(var __yy__v1865 in __yy__v1864){if(!__yy__v1864.hasOwnProperty(__yy__v1865))continue;var __yy__v1866=__yy__v1864[__yy__v1865];{var gmlteams_conf=ds_list_create();var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1866.gmlteamlist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlteam=ds_list_find_value(__yy__v1866.gmlteamlist,gmli);if(yyfequal(real(ds_map_find_value(gmlteam,"conference")),argument0)){{var gmlwinner=false;if(!yyGetBool(gmlwinner)){ ds_list_add(gmlteams_conf,gmlteam);};};};}};gmlteams_conf=gml_Script_s_sort_teams(__yy__v1866,_inst,gmlteams_conf,0,false);var gmlteam=ds_list_find_value(gmlteams_conf,yyfminus(__yy_gml_errCheck(argument1),1));ds_list_destroy(gmlteams_conf);gmlteams_conf=(-1);return gmlteam;}}};}}function gml_Script_s_get_team_seeding(_inst,_other,argument0){{var gmlconf=ds_map_find_value(argument0,"conference");var gmls=1;for(;yyfless(gmls,8);(g_yyPrePostObject__=gmls,gmls=(g_yyPrePostObject__ instanceof Long?gmls.add(1):++gmls), g_yyPrePostObject__)){{var gmls_tmap=gml_Script_s_get_team_by_seed(_inst,_other,gmlconf,gmls);if((yyGetBool(gmls_tmap))&&(yyGetBool(yyfequal(ds_map_find_value(gmls_tmap,"uid"),ds_map_find_value(argument0,"uid"))))){return gmls;};}};return 8;}}function gml_GlobalScript_s_get_team_id_by_seed(_inst,_other){(_inst.gmls_get_team_id_by_seed=__yy_method(_inst,gml_Script_s_get_team_id_by_seed));}function gml_Script_s_get_team_id_by_seed(_inst,_other,argument0,argument1){{gml_Script_slog(_inst,_other,"s_get_team_id_by_seed"); var gmlteam=(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))?gml_Script_s_get_team_by_seed(_inst,_other,argument0,argument1):gml_Script_s_get_team_by_seed_co(_inst,_other,argument0,argument1));return ds_map_find_value(gmlteam,"uid");}}function gml_GlobalScript_s_get_team_name_by_seed(_inst,_other,argument0,argument1,argument2){(_inst.gmls_get_team_name_by_seed=__yy_method(_inst,gml_Script_s_get_team_name_by_seed));}function gml_Script_s_get_team_name_by_seed(_inst,_other,argument0,argument1,argument2){ {gml_Script_slog(_inst,_other,"s_get_team_name_by_seed");var gmlconf=argument0;var gmlseed=argument1;var gmltla=argument2;var gmlteam=gml_Script_s_get_team_by_seed(_inst,_other,gmlconf,gmlseed);var ___sw1578___=gmltla;var ___swc1579___=-1;if(yyCompareVal(___sw1578___,false,g_GMLMathEpsilon,false)==0){___swc1579___=0;}else if(yyCompareVal(___sw1578___,true,g_GMLMathEpsilon,false)==0){___swc1579___=1;}switch(___swc1579___){case 0:{return ds_map_find_value(gmlteam,"name");break;}case 1:{return ds_map_find_value(gmlteam, "tla");break;}};}}function gml_GlobalScript_s_get_team_offense(_inst,_other){(_inst.gmls_get_team_offense=__yy_method(_inst,gml_Script_s_get_team_offense));(_inst.gmls_get_team_offense_exh=__yy_method(_inst,gml_Script_s_get_team_offense_exh));(_inst.gmls_get_team_offense_from_roster=__yy_method(_inst,gml_Script_s_get_team_offense_from_roster));}function gml_Script_s_get_team_offense(_inst,_other,argument0,argument1){{if(yyfequal(argument1,_inst.undefined)){argument1=true;};}{{var __yy__v1867=GetWithArray(YYASSET_REF(0x00000062)); for(var __yy__v1868 in __yy__v1867){if(!__yy__v1867.hasOwnProperty(__yy__v1868))continue;var __yy__v1869=__yy__v1867[__yy__v1868];{if((yyGetBool(yyfequal(ds_map_find_value(argument0,"uid"),__yy__v1869.gmlmyteam_id)))&&(yyGetBool(!yyGetBool(global.gmlexhibition)))){{var gmlrating=gml_Script_s_get_team_offense_from_roster(__yy__v1869,_inst,__yy__v1869.gmlroster);var gmlcoordinator=gml_Script_s_get_staff(__yy__v1869,_inst,102);if(yyGetBool(gmlcoordinator)){gmlrating=yyfplus(gmlrating,ds_map_find_value(gmlcoordinator, "rating"));};gmlrating=round(yyftime(__yy_gml_errCheck(gmlrating),0.225));gmlrating=clamp(gmlrating,1,10);ds_map_set(argument0,"offense",gmlrating);return gmlrating;};}else {{if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_difficulty,4)){return 10;}else {{if(yyGetBool(argument1)){return gml_Script_s_get_team_offense_with_reputation_boost(__yy__v1869,_inst,argument0);}else {return real(ds_map_find_value(argument0,"offense"));};};};};};}}};}}function gml_Script_s_get_team_offense_exh(_inst, _other,argument0,argument1){{{var __yy__v1870=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1871 in __yy__v1870){if(!__yy__v1870.hasOwnProperty(__yy__v1871))continue;var __yy__v1872=__yy__v1870[__yy__v1871];{if(yyfequal(argument1,(-4))){{gml_Script_slog(__yy__v1872,_inst,"s_get_team_offense_exh. no cur_roster");};};if((yyGetBool(yyfnotequal(argument1,(-4))))&&(yyGetBool(ds_list_size(yyfgreater(argument1,0))))){{var gmlrating=gml_Script_s_get_team_offense_from_roster(__yy__v1872,_inst,argument1); gmlrating=round(yyftime(__yy_gml_errCheck(gmlrating),0.225));gmlrating=clamp(gmlrating,1,10);ds_map_set(argument0,"offense",gmlrating);return gmlrating;};}else {{if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_difficulty,4)){return 10;}else {return real(ds_map_find_value(argument0,"offense"));};};};}}};}}function gml_Script_s_get_team_offense_from_roster(_inst,_other,argument0){{var gmlrating=0;var gmlpcount=1;var gmli=0;for(;yyfless(gmli,ds_list_size(argument0));(g_yyPrePostObject__=gmli, gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(argument0,gmli);if((yyGetBool(ds_map_exists(gmlpmap,"backup")))&&(yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"backup"),true)))){continue;};if((yyGetBool(yyfgreater(ds_map_find_value(gmlpmap,"condition"),0)))&&(yyGetBool(!yyGetBool(gml_Script_s_player_benched(_inst,_other,gmlpmap))))){{var ___sw1582___=ds_map_find_value(gmlpmap,"position");var ___swc1583___=-1;if(yyCompareVal(___sw1582___, 1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1582___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1582___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1582___,4,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1582___,5,g_GMLMathEpsilon,false)==0){___swc1583___=0;}switch(___swc1583___){case 0:{(g_yyPrePostObject__=gmlpcount,gmlpcount=(g_yyPrePostObject__ instanceof Long?gmlpcount.add(1):++gmlpcount),g_yyPrePostObject__);gmlrating=yyfplus(gmlrating,gml_Script_s_get_player_rating(_inst,_other,gmlpmap)); break;}default :{break;}};};};}};return gmlrating;}}function gml_GlobalScript_s_get_defense_attribute(_inst,_other){(_inst.gmls_get_defense_attribute=__yy_method(_inst,gml_Script_s_get_defense_attribute));(_inst.gmls_get_attribute=__yy_method(_inst,gml_Script_s_get_attribute));(_inst.gmls_attribute_buff=__yy_method(_inst,gml_Script_s_attribute_buff));}function gml_Script_s_get_defense_attribute(_inst,_other,argument0,argument1){{if(yyfequal(argument1,(-4))){{gml_Script_slog2(_inst,_other,"s_get_defense_attribute. no cur_roster"); return 0;};};{var __yy__v1873=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1874 in __yy__v1873){if(!__yy__v1873.hasOwnProperty(__yy__v1874))continue;var __yy__v1875=__yy__v1873[__yy__v1874];{var gmlrating=0;var gmli=0;for(;yyfless(gmli,ds_list_size(argument1));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(argument1,gmli);if(!yyGetBool(ds_map_exists(gmlpmap,argument0))){continue;};if(!yyGetBool(gml_Script_s_is_defensive_player(__yy__v1875, _inst,gmlpmap))){continue;};if((yyGetBool(ds_map_exists(gmlpmap,"backup")))&&(yyGetBool(yyfequal(ds_map_find_value(gmlpmap,"backup"),true)))){continue;};if((yyGetBool(yyfgreater(ds_map_find_value(gmlpmap,"condition"),0)))&&(yyGetBool(!yyGetBool(gml_Script_s_player_benched(__yy__v1875,_inst,gmlpmap))))){gmlrating=yyfplus(gmlrating,gml_Script_s_get_attribute(__yy__v1875,_inst,gmlpmap,argument0));};}};return gmlrating;}}};}}function gml_Script_s_get_attribute(_inst,_other,argument0,argument1){{if(!yyGetBool(argument0)){ return 0;};if(!yyGetBool(ds_map_exists(argument0,argument1))){return 0;};var ___sw1588___=argument1;var ___swc1589___=-1;if(yyCompareVal(___sw1588___,"skill",g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1588___,"speed",g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1588___,"strength",g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1588___,"stamina",g_GMLMathEpsilon,false)==0){___swc1589___=0;}switch(___swc1589___){case 0:{return min(yyfplus(__yy_gml_errCheck(ds_map_find_value(argument0,argument1)),__yy_gml_errCheck(gml_Script_s_attribute_buff(_inst, _other,argument0,argument1))),10);break;}default :{return ds_map_find_value(argument0,argument1);break;}};return 0;}}function gml_Script_s_attribute_buff(_inst,_other,argument0,argument1){{if(!yyGetBool(ds_map_exists(argument0,argument1))){return 0;};if(yyfless(ds_map_find_value(argument0,"condition"),0)){return 0;};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){return 0;};var ___sw1590___=argument1;var ___swc1591___=-1;if(yyCompareVal(___sw1590___,"skill",g_GMLMathEpsilon,false)==0){___swc1591___=0; }else if(yyCompareVal(___sw1590___,"speed",g_GMLMathEpsilon,false)==0){___swc1591___=1;}else if(yyCompareVal(___sw1590___,"strength",g_GMLMathEpsilon,false)==0){___swc1591___=2;}else if(yyCompareVal(___sw1590___,"stamina",g_GMLMathEpsilon,false)==0){___swc1591___=3;}switch(___swc1591___){case 0:{if(yyfgreater(ds_map_find_value(argument0,"attitude"),90)){return 1;};break;}case 1:{if(yyfgreater(ds_map_find_value(argument0,"condition"),99)){return 1;};break;}case 2:{if(yyflessequal(ds_map_find_value(argument0, "attitude"),30)){return 1;};break;}case 3:{if(yyflessequal(ds_map_find_value(argument0,"attitude"),15)){return 1;};break;}};return 0;}}function gml_GlobalScript_s_get_team_defense(_inst,_other){(_inst.gmls_get_team_defense=__yy_method(_inst,gml_Script_s_get_team_defense));(_inst.gmls_get_team_defense_exh=__yy_method(_inst,gml_Script_s_get_team_defense_exh));(_inst.gmls_get_team_defense_from_roster=__yy_method(_inst,gml_Script_s_get_team_defense_from_roster));}function gml_Script_s_get_team_defense(_inst, _other,argument0,argument1){{if(yyfequal(argument1,_inst.undefined)){argument1=true;};}{{var __yy__v1876=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1877 in __yy__v1876){if(!__yy__v1876.hasOwnProperty(__yy__v1877))continue;var __yy__v1878=__yy__v1876[__yy__v1877];{if((yyGetBool(yyfequal(ds_map_find_value(argument0,"uid"),__yy__v1878.gmlmyteam_id)))&&(yyGetBool(!yyGetBool(global.gmlexhibition)))){{var gmlrating=gml_Script_s_get_team_defense_from_roster(__yy__v1878,_inst,__yy__v1878.gmlroster); var gmlcoordinator=gml_Script_s_get_staff(__yy__v1878,_inst,101);if(yyGetBool(gmlcoordinator)){gmlrating=yyfplus(gmlrating,ds_map_find_value(gmlcoordinator,"rating"));};gmlrating=round(yyftime(__yy_gml_errCheck(gmlrating),0.25));gmlrating=clamp(gmlrating,1,10);ds_map_set(argument0,"defense",gmlrating);return gmlrating;};}else {{if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_difficulty,4)){return 10;}else {{if(yyGetBool(argument1)){return gml_Script_s_get_team_defense_with_reputation_boost(__yy__v1878, _inst,argument0);}else {return real(ds_map_find_value(argument0,"defense"));};};};};};}}};}}function gml_Script_s_get_team_defense_exh(_inst,_other,argument0,argument1){{{var __yy__v1879=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1880 in __yy__v1879){if(!__yy__v1879.hasOwnProperty(__yy__v1880))continue;var __yy__v1881=__yy__v1879[__yy__v1880];{if(yyfequal(argument1,(-4))){{gml_Script_slog(__yy__v1881,_inst,"s_get_team_defense_exh. no cur_roster");};};if((yyGetBool(yyfnotequal(argument1,(-4))))&&(yyGetBool(ds_list_size(yyfgreater(argument1, 0))))){{var gmlrating=gml_Script_s_get_team_defense_from_roster(__yy__v1881,_inst,argument1);gmlrating=round(yyftime(__yy_gml_errCheck(gmlrating),0.25));gmlrating=clamp(gmlrating,1,10);ds_map_set(argument0,"defense",gmlrating);return gmlrating;};}else {{if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_difficulty,4)){return 10;}else {return real(ds_map_find_value(argument0,"defense"));};};};}}};}}function gml_Script_s_get_team_defense_from_roster(_inst,_other,argument0){{var gmlrating=0;var gmlpcount=1; var gmli=0;for(;yyfless(gmli,ds_list_size(argument0));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(argument0,gmli);if((yyGetBool(yyfgreater(ds_map_find_value(gmlpmap,"condition"),0)))&&(yyGetBool(!yyGetBool(gml_Script_s_player_benched(_inst,_other,gmlpmap))))){{var ___sw1594___=ds_map_find_value(gmlpmap,"position");var ___swc1595___=-1;if(yyCompareVal(___sw1594___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1594___, 7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1594___,8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1594___,9,g_GMLMathEpsilon,false)==0){___swc1595___=0;}switch(___swc1595___){case 0:{(g_yyPrePostObject__=gmlpcount,gmlpcount=(g_yyPrePostObject__ instanceof Long?gmlpcount.add(1):++gmlpcount),g_yyPrePostObject__);gmlrating=yyfplus(gmlrating,gml_Script_s_get_player_rating(_inst,_other,gmlpmap));break;}default :{break;}};};};}};return gmlrating;}}function gml_GlobalScript_s_get_salary_total(_inst,_other){ (_inst.gmls_get_salary_total=__yy_method(_inst,gml_Script_s_get_salary_total));}function gml_Script_s_get_salary_total(_inst,_other){{var gmltotal=0;var gmlr=0;for(;yyfless(gmlr,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster));(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster,gmlr);if(yyGetBool(gmlpmap)){{if(!yyGetBool(ds_map_exists(gmlpmap, "salary"))){ds_map_set(gmlpmap,"salary",0);};gmltotal=yyfplus(gmltotal,real(ds_map_find_value(gmlpmap,"salary")));};};}};return gmltotal;}}function gml_GlobalScript_s_refactor_team_strengths(_inst,_other){(_inst.gmls_refactor_team_strengths=__yy_method(_inst,gml_Script_s_refactor_team_strengths));}function gml_Script_s_refactor_team_strengths(_inst,_other){{gml_Script_slog(_inst,_other,"s_refactor_team_strengths");{var __yy__v1882=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1883 in __yy__v1882){ if(!__yy__v1882.hasOwnProperty(__yy__v1883))continue;var __yy__v1884=__yy__v1882[__yy__v1883];{var gmlsdrop=0.875;if((yyGetBool(yyfgreaterequal(__yy__v1884.gmlop_difficulty,3)))||(yyGetBool(yyfless(__yy__v1884.gmlsuppress_difficulty,0)))){gmlsdrop=0.8;};var gmlsort_teams=ds_list_create();ds_list_copy(gmlsort_teams,__yy__v1884.gmlteamlist);gmlsort_teams=gml_Script_s_sort_teams(__yy__v1884,_inst,gmlsort_teams,2,false);var gmlconf=0;for(;yyfless(gmlconf,2);(g_yyPrePostObject__=gmlconf,gmlconf=(g_yyPrePostObject__ instanceof Long?gmlconf.add(1):++gmlconf), g_yyPrePostObject__)){{var gmltop_rating=20;if(yyGetBool(irandom(2))){gmltop_rating=19;};var gmli=0;for(;yyfless(gmli,ds_list_size(gmlsort_teams));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlteam=ds_list_find_value(gmlsort_teams,gmli);if(yyfnotequal(ds_map_find_value(gmlteam,"conference"),gmlconf)){continue;};if(yyGetBool(gml_Script_s_has_reputation_point(__yy__v1884,_inst,gmlteam))){continue;};var gmlrating=yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlteam, "offense")),__yy_gml_errCheck(ds_map_find_value(gmlteam,"defense")));for(var __yy__v1885=0,__yy__v1886=yyGetInt32(10);__yy__v1885<__yy__v1886;__yy__v1885++){{if(yyfgreater(gmlrating,round(gmltop_rating))){{var ___sw1600___=irandom(1);var ___swc1601___=-1;if(yyCompareVal(___sw1600___,0,g_GMLMathEpsilon,false)==0){___swc1601___=0;}else if(yyCompareVal(___sw1600___,1,g_GMLMathEpsilon,false)==0){___swc1601___=1;}switch(___swc1601___){case 0:{ds_map_set_post(gmlteam,"offense",yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlteam, "offense")),1));break;}case 1:{ds_map_set_post(gmlteam,"defense",yyfminus(__yy_gml_errCheck(ds_map_find_value(gmlteam,"defense")),1));break;}};};}else {if(yyfless(gmlrating,round(gmltop_rating))){{var ___sw1602___=irandom(1);var ___swc1603___=-1;if(yyCompareVal(___sw1602___,0,g_GMLMathEpsilon,false)==0){___swc1603___=0;}else if(yyCompareVal(___sw1602___,1,g_GMLMathEpsilon,false)==0){___swc1603___=1;}switch(___swc1603___){case 0:{ds_map_set_post(gmlteam,"offense",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlteam, "offense")),1));break;}case 1:{ds_map_set_post(gmlteam,"defense",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlteam,"defense")),1));break;}};};};};ds_map_set(gmlteam,"offense",clamp(ds_map_find_value(gmlteam,"offense"),2,10));ds_map_set(gmlteam,"defense",clamp(ds_map_find_value(gmlteam,"defense"),2,10));gmlrating=yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlteam,"offense")),__yy_gml_errCheck(ds_map_find_value(gmlteam,"defense")));}};if(yyfequal(gmltop_rating,20)){gmltop_rating=19;}else {gmltop_rating=yyfminus(gmltop_rating, gmlsdrop);};}};}};ds_list_destroy(gmlsort_teams);gmlsort_teams=(-1);}}};}}function gml_GlobalScript_s_get_team_winpct(_inst,_other,argument0){(_inst.gmls_get_team_winpct=__yy_method(_inst,gml_Script_s_get_team_winpct));}function gml_Script_s_get_team_winpct(_inst,_other,argument0){{var gmltmap=argument0;var gmlwins=real(ds_map_find_value(gmltmap,"wins"));var gmllosses=real(ds_map_find_value(gmltmap,"losses"));var gmlties=real(ds_map_find_value(gmltmap,"ties"));var gmlgames=real(yyfplus(yyfplus(__yy_gml_errCheck(gmlwins), __yy_gml_errCheck(gmllosses)),__yy_gml_errCheck(gmlties)));if(yyfgreater(gmlgames,0)){return yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(gmlwins),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlties),0.5)))),__yy_gml_errCheck(gmlgames));};return 0;}}function gml_GlobalScript_s_get_team_net_points(_inst,_other,argument0){(_inst.gmls_get_team_net_points=__yy_method(_inst,gml_Script_s_get_team_net_points));}function gml_Script_s_get_team_net_points(_inst,_other,argument0){{var gmluid1=argument0; var gmlpoints=0;{var __yy__v1887=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1888 in __yy__v1887){if(!__yy__v1887.hasOwnProperty(__yy__v1888))continue;var __yy__v1889=__yy__v1887[__yy__v1888];{var gmlf=0;for(;yyfless(gmlf,ds_list_size(__yy__v1889.gmlschedule));(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf),g_yyPrePostObject__)){{var gmlfix=ds_list_find_value(__yy__v1889.gmlschedule,gmlf);if(!yyGetBool(ds_exists(gmlfix,1))){return 0;};if(!yyGetBool(ds_map_exists(gmlfix, "away_team"))){return 0;};if(!yyGetBool(ds_map_exists(gmlfix,"home_team"))){return 0;};var gmlteam_idAway=real(ds_map_find_value(gmlfix,"away_team"));var gmlteam_idHome=real(ds_map_find_value(gmlfix,"home_team"));if(yyfgreater(ds_map_find_value(gmlfix,"away_score"),(-1))){{if(yyfequal(gmlteam_idAway,gmluid1)){{gmlpoints=yyfplus(gmlpoints,ds_map_find_value(gmlfix,"away_score"));gmlpoints=yyfminus(gmlpoints,ds_map_find_value(gmlfix,"home_score"));};}else {if(yyfequal(gmlteam_idHome,gmluid1)){{gmlpoints=yyfplus(gmlpoints, ds_map_find_value(gmlfix,"home_score"));gmlpoints=yyfminus(gmlpoints,ds_map_find_value(gmlfix,"away_score"));};};};};};}};}}};return gmlpoints;}}function gml_GlobalScript_s_get_points_versus(_inst,_other,argument0,argument1){(_inst.gmls_get_points_versus=__yy_method(_inst,gml_Script_s_get_points_versus));}function gml_Script_s_get_points_versus(_inst,_other,argument0,argument1){{var gmluid1=argument0;var gmluid2=argument1;var gmlpoints=0;{var __yy__v1890=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1891 in __yy__v1890){ if(!__yy__v1890.hasOwnProperty(__yy__v1891))continue;var __yy__v1892=__yy__v1890[__yy__v1891];{var gmlf=0;for(;yyfless(gmlf,ds_list_size(__yy__v1892.gmlschedule));(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf),g_yyPrePostObject__)){{var gmlfix=ds_list_find_value(__yy__v1892.gmlschedule,gmlf);if(!yyGetBool(ds_exists(gmlfix,1))){return 0;};if(!yyGetBool(ds_map_exists(gmlfix,"away_team"))){return 0;};if(!yyGetBool(ds_map_exists(gmlfix,"home_team"))){return 0;};var gmlteam_idAway=real(ds_map_find_value(gmlfix, "away_team"));var gmlteam_idHome=real(ds_map_find_value(gmlfix,"home_team"));if(yyfgreater(ds_map_find_value(gmlfix,"away_score"),(-1))){{if((yyGetBool(yyfequal(gmlteam_idAway,gmluid1)))&&(yyGetBool(yyfequal(gmlteam_idHome,gmluid2)))){{gmlpoints=yyfplus(gmlpoints,ds_map_find_value(gmlfix,"away_score"));};}else {if((yyGetBool(yyfequal(gmlteam_idAway,gmluid2)))&&(yyGetBool(yyfequal(gmlteam_idHome,gmluid1)))){{gmlpoints=yyfplus(gmlpoints,ds_map_find_value(gmlfix,"home_score"));};};};};};}};}}};return gmlpoints; }}function gml_GlobalScript_s_get_wins_versus(_inst,_other,argument0,argument1){(_inst.gmls_get_wins_versus=__yy_method(_inst,gml_Script_s_get_wins_versus));}function gml_Script_s_get_wins_versus(_inst,_other,argument0,argument1){{var gmluid1=argument0;var gmluid2=argument1;var gmlpoints=0;{var __yy__v1893=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1894 in __yy__v1893){if(!__yy__v1893.hasOwnProperty(__yy__v1894))continue;var __yy__v1895=__yy__v1893[__yy__v1894];{var gmlf=0;for(;yyfless(gmlf,ds_list_size(__yy__v1895.gmlschedule)); (g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf),g_yyPrePostObject__)){{var gmlfix=ds_list_find_value(__yy__v1895.gmlschedule,gmlf);if(!yyGetBool(ds_exists(gmlfix,1))){return 0;};if(!yyGetBool(ds_map_exists(gmlfix,"away_team"))){return 0;};if(!yyGetBool(ds_map_exists(gmlfix,"home_team"))){return 0;};var gmlteam_idAway=real(ds_map_find_value(gmlfix,"away_team"));var gmlteam_idHome=real(ds_map_find_value(gmlfix,"home_team"));if(yyfgreater(ds_map_find_value(gmlfix,"away_score"), (-1))){{if((yyGetBool(yyfequal(gmlteam_idAway,gmluid1)))&&(yyGetBool(yyfequal(gmlteam_idHome,gmluid2)))){{if(yyfgreater(ds_map_find_value(gmlfix,"away_score"),ds_map_find_value(gmlfix,"home_score"))){(g_yyPrePostObject__=gmlpoints,gmlpoints=(g_yyPrePostObject__ instanceof Long?gmlpoints.add(1):++gmlpoints),g_yyPrePostObject__);};};}else {if((yyGetBool(yyfequal(gmlteam_idAway,gmluid2)))&&(yyGetBool(yyfequal(gmlteam_idHome,gmluid1)))){{if(yyfgreater(ds_map_find_value(gmlfix,"home_score"),ds_map_find_value(gmlfix, "away_score"))){(g_yyPrePostObject__=gmlpoints,gmlpoints=(g_yyPrePostObject__ instanceof Long?gmlpoints.add(1):++gmlpoints),g_yyPrePostObject__);};};};};};};}};}}};return gmlpoints;}}function gml_GlobalScript_s_get_point_swing(_inst,_other,argument0,argument1){(_inst.gmls_get_point_swing=__yy_method(_inst,gml_Script_s_get_point_swing));(_inst.gmls_get_head_to_head=__yy_method(_inst,gml_Script_s_get_head_to_head));(_inst.gmls_get_win_pecentage_by_confdiv=__yy_method(_inst,gml_Script_s_get_win_pecentage_by_confdiv)); }function gml_Script_s_get_point_swing(_inst,_other,argument0,argument1){{var gmluid1=argument0;var gmluid2=argument1;var gmlwins=array_create(2,0);var gmlpoints=array_create(2,0);{var __yy__v1896=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1897 in __yy__v1896){if(!__yy__v1896.hasOwnProperty(__yy__v1897))continue;var __yy__v1898=__yy__v1896[__yy__v1897];{var gmlf=0;for(;yyfless(gmlf,ds_list_size(__yy__v1898.gmlschedule));(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf), g_yyPrePostObject__)){{var gmlfix=ds_list_find_value(__yy__v1898.gmlschedule,gmlf);if(!yyGetBool(ds_exists(gmlfix,1))){return 0;};if(!yyGetBool(ds_map_exists(gmlfix,"away_team"))){return 0;};if(!yyGetBool(ds_map_exists(gmlfix,"home_team"))){return 0;};var gmlteam_idAway=real(ds_map_find_value(gmlfix,"away_team"));var gmlteam_idHome=real(ds_map_find_value(gmlfix,"home_team"));if(yyfgreater(ds_map_find_value(gmlfix,"away_score"),(-1))){{if((yyGetBool(yyfequal(gmlteam_idAway,gmluid1)))&&(yyGetBool(yyfequal(gmlteam_idHome, gmluid2)))){{gmlpoints=__yy_gml_array_check(gmlpoints,294728977);gmlpoints[__yy_gml_array_check_index_set(0)]=yyfplus(gmlpoints[__yy_gml_array_check_index_set(0)],ds_map_find_value(gmlfix,"away_score"));gmlpoints[__yy_gml_array_check_index_set(1)]=yyfplus(gmlpoints[__yy_gml_array_check_index_set(1)],ds_map_find_value(gmlfix,"home_score"));if(yyfgreater(ds_map_find_value(gmlfix,"away_score"),ds_map_find_value(gmlfix,"home_score"))){{gmlwins=__yy_gml_array_check(gmlwins,3975628503);(g_yyPrePostObject__=gmlwins[__yy_gml_array_check_index_set(0)], gmlwins[__yy_gml_array_check_index_set(0)]=(g_yyPrePostObject__ instanceof Long?gmlwins[__yy_gml_array_check_index_set(0)].add(1):++gmlwins[__yy_gml_array_check_index_set(0)]),g_yyPrePostObject__);};}else {if(yyfless(ds_map_find_value(gmlfix,"away_score"),ds_map_find_value(gmlfix,"home_score"))){{gmlwins=__yy_gml_array_check(gmlwins,3975628503);(g_yyPrePostObject__=gmlwins[__yy_gml_array_check_index_set(1)],gmlwins[__yy_gml_array_check_index_set(1)]=(g_yyPrePostObject__ instanceof Long?gmlwins[__yy_gml_array_check_index_set(1)].add(1):++gmlwins[__yy_gml_array_check_index_set(1)]), g_yyPrePostObject__);};};};};}else {if((yyGetBool(yyfequal(gmlteam_idAway,gmluid2)))&&(yyGetBool(yyfequal(gmlteam_idHome,gmluid1)))){{gmlpoints=__yy_gml_array_check(gmlpoints,294728977);gmlpoints[__yy_gml_array_check_index_set(0)]=yyfplus(gmlpoints[__yy_gml_array_check_index_set(0)],ds_map_find_value(gmlfix,"home_score"));gmlpoints[__yy_gml_array_check_index_set(1)]=yyfplus(gmlpoints[__yy_gml_array_check_index_set(1)],ds_map_find_value(gmlfix,"away_score"));if(yyfgreater(ds_map_find_value(gmlfix, "away_score"),ds_map_find_value(gmlfix,"home_score"))){{gmlwins=__yy_gml_array_check(gmlwins,3975628503);(g_yyPrePostObject__=gmlwins[__yy_gml_array_check_index_set(1)],gmlwins[__yy_gml_array_check_index_set(1)]=(g_yyPrePostObject__ instanceof Long?gmlwins[__yy_gml_array_check_index_set(1)].add(1):++gmlwins[__yy_gml_array_check_index_set(1)]),g_yyPrePostObject__);};}else {if(yyfless(ds_map_find_value(gmlfix,"away_score"),ds_map_find_value(gmlfix,"home_score"))){{gmlwins=__yy_gml_array_check(gmlwins, 3975628503);(g_yyPrePostObject__=gmlwins[__yy_gml_array_check_index_set(0)],gmlwins[__yy_gml_array_check_index_set(0)]=(g_yyPrePostObject__ instanceof Long?gmlwins[__yy_gml_array_check_index_set(0)].add(1):++gmlwins[__yy_gml_array_check_index_set(0)]),g_yyPrePostObject__);};};};};};};};};}};}}};if(yyfgreater(gmlwins[__yy_gml_array_check_index(0,gmlwins)],gmlwins[__yy_gml_array_check_index(1,gmlwins)])){return(-1);};if(yyfless(gmlwins[__yy_gml_array_check_index(0,gmlwins)],gmlwins[__yy_gml_array_check_index(1, gmlwins)])){return 1;};if(yyfgreater(gmlpoints[__yy_gml_array_check_index(0,gmlpoints)],gmlpoints[__yy_gml_array_check_index(1,gmlpoints)])){return(-1);};if(yyfless(gmlpoints[__yy_gml_array_check_index(0,gmlpoints)],gmlpoints[__yy_gml_array_check_index(1,gmlpoints)])){return 1;};return 0;}}function gml_Script_s_get_head_to_head(_inst,_other,argument0,argument1){{var gmlwins=array_create(2,0);var gmlpoints=array_create(2,0);{var __yy__v1899=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1900 in __yy__v1899){ if(!__yy__v1899.hasOwnProperty(__yy__v1900))continue;var __yy__v1901=__yy__v1899[__yy__v1900];{var gmlf=0;for(;yyfless(gmlf,ds_list_size(__yy__v1901.gmlschedule));(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf),g_yyPrePostObject__)){{var gmlfix=ds_list_find_value(__yy__v1901.gmlschedule,gmlf);if(!yyGetBool(ds_exists(gmlfix,1))){return 0;};if(!yyGetBool(ds_map_exists(gmlfix,"away_team"))){return 0;};if(!yyGetBool(ds_map_exists(gmlfix,"home_team"))){return 0;};var gmlteam_idAway=real(ds_map_find_value(gmlfix, "away_team"));var gmlteam_idHome=real(ds_map_find_value(gmlfix,"home_team"));if(yyfgreater(ds_map_find_value(gmlfix,"away_score"),(-1))){{if((yyGetBool(yyfequal(gmlteam_idAway,argument0)))&&(yyGetBool(yyfequal(gmlteam_idHome,argument1)))){{if(yyfgreater(ds_map_find_value(gmlfix,"away_score"),ds_map_find_value(gmlfix,"home_score"))){{gmlwins=__yy_gml_array_check(gmlwins,3975628503);(g_yyPrePostObject__=gmlwins[__yy_gml_array_check_index_set(0)],gmlwins[__yy_gml_array_check_index_set(0)]=(g_yyPrePostObject__ instanceof Long?gmlwins[__yy_gml_array_check_index_set(0)].add(1):++gmlwins[__yy_gml_array_check_index_set(0)]), g_yyPrePostObject__);};}else {if(yyfless(ds_map_find_value(gmlfix,"away_score"),ds_map_find_value(gmlfix,"home_score"))){{gmlwins=__yy_gml_array_check(gmlwins,3975628503);(g_yyPrePostObject__=gmlwins[__yy_gml_array_check_index_set(1)],gmlwins[__yy_gml_array_check_index_set(1)]=(g_yyPrePostObject__ instanceof Long?gmlwins[__yy_gml_array_check_index_set(1)].add(1):++gmlwins[__yy_gml_array_check_index_set(1)]),g_yyPrePostObject__);};};};};}else {if((yyGetBool(yyfequal(gmlteam_idAway,argument1)))&&(yyGetBool(yyfequal(gmlteam_idHome, argument0)))){{if(yyfgreater(ds_map_find_value(gmlfix,"away_score"),ds_map_find_value(gmlfix,"home_score"))){{gmlwins=__yy_gml_array_check(gmlwins,3975628503);(g_yyPrePostObject__=gmlwins[__yy_gml_array_check_index_set(1)],gmlwins[__yy_gml_array_check_index_set(1)]=(g_yyPrePostObject__ instanceof Long?gmlwins[__yy_gml_array_check_index_set(1)].add(1):++gmlwins[__yy_gml_array_check_index_set(1)]),g_yyPrePostObject__);};}else {if(yyfless(ds_map_find_value(gmlfix,"away_score"),ds_map_find_value(gmlfix, "home_score"))){{gmlwins=__yy_gml_array_check(gmlwins,3975628503);(g_yyPrePostObject__=gmlwins[__yy_gml_array_check_index_set(0)],gmlwins[__yy_gml_array_check_index_set(0)]=(g_yyPrePostObject__ instanceof Long?gmlwins[__yy_gml_array_check_index_set(0)].add(1):++gmlwins[__yy_gml_array_check_index_set(0)]),g_yyPrePostObject__);};};};};};};};};}};}}};if(yyfgreater(gmlwins[__yy_gml_array_check_index(0,gmlwins)],gmlwins[__yy_gml_array_check_index(1,gmlwins)])){return(-1);};if(yyfless(gmlwins[__yy_gml_array_check_index(0, gmlwins)],gmlwins[__yy_gml_array_check_index(1,gmlwins)])){return 1;};return 0;}}function gml_Script_s_get_win_pecentage_by_confdiv(_inst,_other,argument0,argument1){{var gmlwins=0;var gmllosses=0;var gmlties=0;{var __yy__v1902=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1903 in __yy__v1902){if(!__yy__v1902.hasOwnProperty(__yy__v1903))continue;var __yy__v1904=__yy__v1902[__yy__v1903];{var gmlf=0;for(;yyfless(gmlf,ds_list_size(__yy__v1904.gmlschedule));(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf), g_yyPrePostObject__)){{var gmlfix=ds_list_find_value(__yy__v1904.gmlschedule,gmlf);if(!yyGetBool(ds_exists(gmlfix,1))){return 0;};if(!yyGetBool(ds_map_exists(gmlfix,"away_team"))){return 0;};if(!yyGetBool(ds_map_exists(gmlfix,"home_team"))){return 0;};var gmlteam_idAway=real(ds_map_find_value(gmlfix,"away_team"));var gmlteam_idHome=real(ds_map_find_value(gmlfix,"home_team"));if((yyGetBool(yyfgreater(ds_map_find_value(gmlfix,"away_score"),(-1))))&&(yyGetBool((yyGetBool(yyfequal(gmlteam_idAway,argument0)))||(yyGetBool(yyfequal(gmlteam_idHome, argument0)))))){{var gmltmap1=gml_Script_s_get_team_by_id(__yy__v1904,_inst,gmlteam_idAway);var gmltmap2=gml_Script_s_get_team_by_id(__yy__v1904,_inst,gmlteam_idHome);if(yyfequal(ds_map_find_value(gmltmap1,argument1),ds_map_find_value(gmltmap2,argument1))){{if(yyfequal(gmlteam_idAway,argument0)){{if(yyfequal(ds_map_find_value(gmlfix,"away_score"),ds_map_find_value(gmlfix,"home_score"))){(g_yyPrePostObject__=gmlties,gmlties=(g_yyPrePostObject__ instanceof Long?gmlties.add(1):++gmlties),g_yyPrePostObject__); }else {if(yyfgreater(ds_map_find_value(gmlfix,"away_score"),ds_map_find_value(gmlfix,"home_score"))){(g_yyPrePostObject__=gmlwins,gmlwins=(g_yyPrePostObject__ instanceof Long?gmlwins.add(1):++gmlwins),g_yyPrePostObject__);}else {(g_yyPrePostObject__=gmllosses,gmllosses=(g_yyPrePostObject__ instanceof Long?gmllosses.add(1):++gmllosses),g_yyPrePostObject__);};};};}else {{if(yyfequal(ds_map_find_value(gmlfix,"away_score"),ds_map_find_value(gmlfix,"home_score"))){(g_yyPrePostObject__=gmlties,gmlties=(g_yyPrePostObject__ instanceof Long?gmlties.add(1):++gmlties), g_yyPrePostObject__);}else {if(yyfless(ds_map_find_value(gmlfix,"away_score"),ds_map_find_value(gmlfix,"home_score"))){(g_yyPrePostObject__=gmlwins,gmlwins=(g_yyPrePostObject__ instanceof Long?gmlwins.add(1):++gmlwins),g_yyPrePostObject__);}else {(g_yyPrePostObject__=gmllosses,gmllosses=(g_yyPrePostObject__ instanceof Long?gmllosses.add(1):++gmllosses),g_yyPrePostObject__);};};};};};};};};}};}}};var gmlgames=yyfplus(yyfplus(__yy_gml_errCheck(gmlwins),__yy_gml_errCheck(gmllosses)),__yy_gml_errCheck(gmlties)); var gmlwinpct=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(gmlwins),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlties),0.5)))),__yy_gml_errCheck(gmlgames));return gmlwinpct;}}function gml_GlobalScript_s_get_points_season(_inst,_other){(_inst.gmls_get_points_season=__yy_method(_inst,gml_Script_s_get_points_season));}function gml_Script_s_get_points_season(_inst,_other,argument0){{var gmlpoints=0;{var __yy__v1905=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1906 in __yy__v1905){if(!__yy__v1905.hasOwnProperty(__yy__v1906))continue; var __yy__v1907=__yy__v1905[__yy__v1906];{var gmlf=0;for(;yyfless(gmlf,ds_list_size(__yy__v1907.gmlschedule));(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf),g_yyPrePostObject__)){{var gmlfix=ds_list_find_value(__yy__v1907.gmlschedule,gmlf);if(!yyGetBool(ds_exists(gmlfix,1))){return 0;};if(!yyGetBool(ds_map_exists(gmlfix,"away_team"))){return 0;};if(!yyGetBool(ds_map_exists(gmlfix,"home_team"))){return 0;};var gmlteam_idAway=real(ds_map_find_value(gmlfix,"away_team")); var gmlteam_idHome=real(ds_map_find_value(gmlfix,"home_team"));if(yyfgreater(ds_map_find_value(gmlfix,"away_score"),(-1))){{if(yyfequal(gmlteam_idAway,argument0)){{gmlpoints=yyfplus(gmlpoints,ds_map_find_value(gmlfix,"away_score"));};}else {if(yyfequal(gmlteam_idHome,argument0)){{gmlpoints=yyfplus(gmlpoints,ds_map_find_value(gmlfix,"home_score"));};};};};};}};}}};return gmlpoints;}}function gml_GlobalScript_s_practice_qb_mode(_inst,_other){(_inst.gmls_practice_qb_mode=__yy_method(_inst,gml_Script_s_practice_qb_mode)); (_inst.gmls_end_qb_mode_practice=__yy_method(_inst,gml_Script_s_end_qb_mode_practice));(_inst.gmls_quit_qb_mode_practice=__yy_method(_inst,gml_Script_s_quit_qb_mode_practice));}function gml_Script_s_practice_qb_mode(_inst,_other){{show_debug_message("s_practice_qb_mode");_inst.gmlplaystart_time=g_pBuiltIn.get_current_time();_inst.gmlkicking=0;_inst.gmlx_scrim=yyfplus(1300,__yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(_inst.gmlscrimmage),20),__yy_gml_errCheck(_inst.gmldrivedir))));_inst.gmlx_yards=yyfplus(__yy_gml_errCheck(_inst.gmlx_scrim), __yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(_inst.gmlyards),20),__yy_gml_errCheck(_inst.gmldrivedir))));_inst.gmly_scrim=300;gml_Script_s_destroy_match_objects(_inst,_other);var gmlqb=instance_create_layer(0,0,"Players",YYASSET_REF(0x0000006C));var gmlrb=instance_create_layer(0,0,"Players",YYASSET_REF(0x0000006C));var gmlol1=instance_create_layer(0,0,"Players",YYASSET_REF(0x0000006C));instance_destroy(_inst,gmlrb);{var __yy__v1908=GetWithArray(YYASSET_REF(0x0000006B));for(var __yy__v1909 in __yy__v1908){ if(!__yy__v1908.hasOwnProperty(__yy__v1909))continue;var __yy__v1910=__yy__v1908[__yy__v1909];gml_Script_s_set_skills_and_skin(__yy__v1910,_inst);}};var gmldist=yyfplus(200,__yy_gml_errCheck(yyftime(30,__yy_gml_errCheck(_inst.gmlpractice_success))));var gmld=random_range((-30),30);var gmlsx=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmlqb).x),__yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(dcos(gmld)),__yy_gml_errCheck(gmldist)),__yy_gml_errCheck(_inst.gmldrivedir))));var gmlsy=yyfplus(__yy_gml_errCheck(yyInst(_inst, _other,gmlqb).y),__yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(dsin(gmld)),__yy_gml_errCheck(gmldist)),__yy_gml_errCheck(_inst.gmldrivedir))));if((yyGetBool(yyfless(gmlsy,132)))||(yyGetBool(yyfgreater(gmlsy,468)))){gmlsy=irandom_range(132,468);};gml_Script_s_create_dummy(_inst,_other,gmlsx,gmlsy,0,0,0);global.gmlmaster_ball=instance_create_layer(0,0,"Ball",YYASSET_REF(0x0000006F));instance_create_layer(0,0,"Ball",YYASSET_REF(0x00000070));{var __yy__v1911=GetWithArray(YYASSET_REF(0x00000069)); for(var __yy__v1912 in __yy__v1911){if(!__yy__v1911.hasOwnProperty(__yy__v1912))continue;var __yy__v1913=__yy__v1911[__yy__v1912];{__yy__v1913.gmlstate=2;__yy__v1913.gmlcomm_stage=14;__yy__v1913.gmlcomm_txt="";__yy__v1913.gmlcomm_proceed=false;__yy__v1913.gmltap_msg="";if(yyGetBool(global.gmlgamepad)){__yy__v1913.gmlcomm_proceed=true;};}}};}}function gml_Script_s_end_qb_mode_practice(_inst,_other){{gml_Script_slog(_inst,_other,"s_end_qb_mode_practice");{var __yy__v1914=GetWithArray(YYASSET_REF(0x00000069)); for(var __yy__v1915 in __yy__v1914){if(!__yy__v1914.hasOwnProperty(__yy__v1915))continue;var __yy__v1916=__yy__v1914[__yy__v1915];{__yy__v1916.gmlstate=1;__yy__v1916.gmlcomm_stage=30;__yy__v1916.gmlcomm_txt="";var gmlxp=round(yyftime(__yy_gml_errCheck(__yy__v1916.gmlpractice_score_qb_mode),0.6));var gmlmsg=gml_Script_s_str(__yy__v1916,_inst,"msg_TrainingResult");if(yyfgreater(__yy__v1916.gmlpractice_score_qb_mode,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_training_hiscore)){{yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlqb_training_hiscore=__yy__v1916.gmlpractice_score_qb_mode;gmlmsg=gml_Script_s_str(__yy__v1916,_inst,"msg_TrainingResultBest");};};gmlmsg=string_replace(gmlmsg,"$num",string(__yy__v1916.gmlpractice_score_qb_mode));gmlmsg=string_replace(gmlmsg,"$xp",string(gmlxp));gml_Script_s_create_message(__yy__v1916,_inst,"",gmlmsg,"",gml_Script_s_str(__yy__v1916,_inst,"ui_Continue"),"",kgml_Script_s_quit_qb_mode_practice,global.gmlc_background,0.7);var gmlqb=gml_Script_s_get_qb_pmap(__yy__v1916, _inst);ds_map_set(gmlqb,"xp_gain",yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlqb,"xp_gain")),__yy_gml_errCheck(gmlxp)));}}};}}function gml_Script_s_quit_qb_mode_practice(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);gml_Script_s_savegame(_inst,_other);room_goto(YYASSET_REF(0x03000016));}}function gml_GlobalScript_s_col_hex_to_r(_inst,_other,argument0){(_inst.gmls_col_hex_to_r=__yy_method(_inst,gml_Script_s_col_hex_to_r));}function gml_Script_s_col_hex_to_r(_inst,_other,argument0){{return yyfbitand(__yy_gml_errCheck(argument0), 255);}}function gml_GlobalScript_s_col_hex_to_g(_inst,_other,argument0){(_inst.gmls_col_hex_to_g=__yy_method(_inst,gml_Script_s_col_hex_to_g));}function gml_Script_s_col_hex_to_g(_inst,_other,argument0){{return yyfbitand(__yy_gml_errCheck(yyfdiv(__yy_gml_errCheck(argument0),256)),255);}}function gml_GlobalScript_s_col_hex_to_b(_inst,_other,argument0){(_inst.gmls_col_hex_to_b=__yy_method(_inst,gml_Script_s_col_hex_to_b));}function gml_Script_s_col_hex_to_b(_inst,_other,argument0){{return yyfdiv(__yy_gml_errCheck(argument0), 65536);}}function gml_GlobalScript_s_hex_string_to_col(_inst,_other,argument0){(_inst.gmls_hex_string_to_col=__yy_method(_inst,gml_Script_s_hex_string_to_col));}function gml_Script_s_hex_string_to_col(_inst,_other,argument0){{var gmlinput=string(argument0);var gmlresult=0;var gmlZERO=48;var gmlNINE=57;var gmlA=65;var gmlF=70;var gmli=1;for(;yyflessequal(gmli,string_length(gmlinput));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlc=ord(string_char_at(string_upper(gmlinput), gmli));gmlresult=yyfbitshiftleft(__yy_gml_errCheck(gmlresult),4);if((yyGetBool(yyfgreaterequal(gmlc,gmlZERO)))&&(yyGetBool(yyflessequal(gmlc,gmlNINE)))){{gmlresult=yyfplus(__yy_gml_errCheck(gmlresult),__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlc),__yy_gml_errCheck(gmlZERO))));};}else {if((yyGetBool(yyfgreaterequal(gmlc,gmlA)))&&(yyGetBool(yyflessequal(gmlc,gmlF)))){{gmlresult=yyfplus(__yy_gml_errCheck(gmlresult),__yy_gml_errCheck(yyfplus(yyfminus(__yy_gml_errCheck(gmlc),__yy_gml_errCheck(gmlA)), 10)));};};};}};return gmlresult;}}function gml_GlobalScript_s_rgb_to_bgr(_inst,_other,argument0){(_inst.gmls_rgb_to_bgr=__yy_method(_inst,gml_Script_s_rgb_to_bgr));}function gml_Script_s_rgb_to_bgr(_inst,_other,argument0){{return yyfbitor(yyfbitor(__yy_gml_errCheck(yyfbitshiftleft(__yy_gml_errCheck(yyfbitand(__yy_gml_errCheck(argument0),255)),16)),__yy_gml_errCheck(yyfbitand(__yy_gml_errCheck(argument0),65280))),__yy_gml_errCheck(yyfbitshiftright(__yy_gml_errCheck(yyfbitand(__yy_gml_errCheck(argument0), 16711680)),16)));}}// // global.url_heatley_bros = "https://www.youtube.com/@HeatleyBros/videos"; function gml_GlobalScript_s_set_up_globals(_inst,_other){(_inst.gmls_set_up_globals=__yy_method(_inst,gml_Script_s_set_up_globals));(_inst.gmls_set_up_temp_variables=__yy_method(_inst,gml_Script_s_set_up_temp_variables));}function gml_Script_s_set_up_globals(_inst,_other){{gml_Script_slog(_inst,_other,"s_set_up_globals 1");global.gmlurl_apple="https://apps.apple.com/us/app/retro-bowl/id1478902583"; global.gmlurl_google="https://play.google.com/store/apps/details?id=com.newstargames.retrobowl";global.gmlurl_twitter="https://twitter.com/retro_bowl";global.gmlurl_discord="https://t.co/39hMkwwqet";global.gmlurl_reddit="https://www.reddit.com/r/RetroBowl";global.gmlurl_record_book="https://www.reddit.com/r/RetroBowl/comments/qiinp5/retro_bowl_record_book_volume_v";global.gmlurl_leagues="https://retrobitcoach.com/?page_id=16";global.gmlurl_apple_retrogoal="https://apple.co/3CtmZdv";global.gmlurl_google_retrogoal="https://bit.ly/3Ey2KgC"; global.gmlurl_switch_us="https://bit.ly/3B1aqqb";global.gmlurl_apple_nss="https://apple.co/3pHBbMP";global.gmlurl_google_nss="https://bit.ly/3bfcQW9";global.gmlurl_apple_nsm="https://apple.co/3bgpRyI";global.gmlurl_google_nsm="https://bit.ly/3vQAAcL";global.gmlurl_apple_nsb="https://apple.co/3nyyUSs";global.gmlurl_google_nsb="https://bit.ly/3qXwsHD";global.gmlurl_apple_retrobowl="https://apps.apple.com/app/retro-bowl/id1478902583";global.gmlurl_google_retrobowl="https://play.google.com/store/apps/details?id=com.newstargames.retrobowl"; global.gmlurl_apple_gp="https://store.steampowered.com/app/2217580/New_Star_GP/";global.gmlurl_google_gp="https://store.steampowered.com/app/2217580/New_Star_GP/";global.gmlurl_merch_tshirts="https://pixelpigskin.threadless.com";global.gmlurl_heatley_bros="https://www.youtube.com/watch?v=orQOPJMy9Ww";global.gmlurl_jefe_zhai="https://www.youtube.com/playlist?list=PLvoVcbkHypzIj1_9aIh6w_B2sIPnS3t6A";global.gmlIAP_Enabled=false;global.gmlmobile_device=(yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),4)))||(yyGetBool(yyfequal(g_pBuiltIn.get_os_type(), 3)));global.gmlconsole_build=yyfequal(g_pBuiltIn.get_os_type(),21);global.gmlmaster_ball=(-4);global.gmlbrowser=true;if(yyfequal(g_pBuiltIn.get_os_browser(),(-1))){global.gmlbrowser=false;}else {global.gmlmobile_device=false;};global.gmlpoki=true;if(!yyGetBool(global.gmlbrowser)){global.gmlpoki=false;};global.gmlpoki_gameplay=false;global.gmlpoki_done_post_match_reward=false;global.gmldebug=false;if((yyGetBool(!yyGetBool(global.gmlbrowser)))&&(yyGetBool((yyGetBool(yyfequal(g_pBuiltIn.get_os_type(), 0)))||(yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),1)))))){global.gmldebug=true;};global.gmljefebuild=false;if(yyfnotequal(g_pBuiltIn.get_os_type(),3)){global.gmljefebuild=false;};if(!yyGetBool(variable_global_exists("show_title"))){{global.gmlshow_title=true;};};global.gmldebug_co_overtime=0;global.gmldebug_force_skip_result=0;global.gmlto_news_from_dilemma=false;global.gmldebug_aa_hide_ui=false;global.gmllast_opt_music_change_time=0;gml_Script_slog(_inst,_other,"s_set_up_globals 2");;;;;;;;;;; ;;;;;;;;;;;;;global.gmlg_version=43;global.gmlg_savedelay=0;global.gmlg_optionsave="optiondata.dat";global.gmlg_savename1="savedata.ini";global.gmlg_savename2="savedata2.ini";global.gmlg_savename3="savedata3.ini";global.gmlg_savename4="savedata4.ini";global.gmlg_savename5="savedata5.ini";global.gmlg_savename_exh="savedata_exh.ini";global.gmlc_background=make_color_rgb(44,104,255);global.gmlc_shadow=make_color_rgb(96,96,96);gml_Script_slog(_inst,_other,"s_set_up_globals 3");global.gmlc_primary=make_color_rgb(210, 210,10);global.gmlc_highlight=make_color_rgb(230,230,130);global.gmlc_buttons=make_color_rgb(210,210,10);global.gmlc_backfill=make_color_rgb(0,0,0);global.gmlc_routes=make_color_rgb(86,216,86);global.gmlc_routes_rb=make_color_rgb(116,164,255);global.gmlc_headcoach=make_color_rgb(57,180,74);global.gmlc_offense=make_color_rgb(92,200,255);global.gmlc_defense=make_color_rgb(255,64,64);global.gmlc_specialteams=make_color_rgb(228,92,16);global.gmlc_toxic=make_color_rgb(60,200,120);global.gmlui_skin=0; gml_Script_slog(_inst,_other,"s_set_up_globals 3.1");if(yyGetBool(global.gmlpoki)){{var ___sw1606___=gml_Script_poki_get_team(_inst,_other);var ___swc1607___=-1;if(yyCompareVal(___sw1606___,"0",g_GMLMathEpsilon,false)==0){___swc1607___=0;}else if(yyCompareVal(___sw1606___,0,g_GMLMathEpsilon,false)==0){___swc1607___=1;}else if(yyCompareVal(___sw1606___,"1",g_GMLMathEpsilon,false)==0){___swc1607___=2;}else if(yyCompareVal(___sw1606___,1,g_GMLMathEpsilon,false)==0){___swc1607___=3;}else if(yyCompareVal(___sw1606___, "2",g_GMLMathEpsilon,false)==0){___swc1607___=4;}else if(yyCompareVal(___sw1606___,2,g_GMLMathEpsilon,false)==0){___swc1607___=5;}switch(___swc1607___){case 0:{global.gmlui_skin=0;break;}case 1:{global.gmlui_skin=0;break;}case 2:{global.gmlui_skin=1;break;}case 3:{global.gmlui_skin=1;break;}case 4:{global.gmlui_skin=2;break;}case 5:{global.gmlui_skin=2;break;}};};};gml_Script_slog(_inst,_other,"s_set_up_globals 3.2");_inst.gmlname_conf1="AFC";_inst.gmlname_conf2="NFC";_inst.gmlname_div1="EAST";_inst.gmlname_div2="WEST"; _inst.gmlname_div3="NORTH";_inst.gmlname_div4="SOUTH";_inst.gmlname_div1b="EAST";_inst.gmlname_div2b="WEST";_inst.gmlname_div3b="NORTH";_inst.gmlname_div4b="SOUTH";global.gmlgamepad=false;global.gmlgp=gml_Script_s_reset_gamepad(_inst,_other,1);global.gmlgp_select=32769;global.gmlgp_back=32770;gml_Script_slog(_inst,_other,"s_set_up_globals 4");if(yyfequal(g_pBuiltIn.get_os_type(),21)){{global.gmlgp_select=32770;global.gmlgp_back=32769;};};global.gmlgp_handoff=global.gmlgp_back;global.gmlgp_timeout=32771; ;;;;;;;;;;;;;;;;;;;;;;global.gmlcolorHelmet=shader_get_uniform(YYASSET_REF(0x0A000000),"colorHelmet");global.gmlcolorLogo=shader_get_uniform(YYASSET_REF(0x0A000000),"colorLogo");global.gmlcolorShirt=shader_get_uniform(YYASSET_REF(0x0A000000),"colorShirt");global.gmlcolorSleeve=shader_get_uniform(YYASSET_REF(0x0A000000),"colorSleeve");global.gmlcolorPants=shader_get_uniform(YYASSET_REF(0x0A000000),"colorPants");global.gmlcolorPants_b=shader_get_uniform(YYASSET_REF(0x0A000000),"colorPants_b");global.gmlcolorStripe=shader_get_uniform(YYASSET_REF(0x0A000000), "colorStripe");global.gmlcolorSocks=shader_get_uniform(YYASSET_REF(0x0A000000),"colorSocks");global.gmlcolorSocks_b=shader_get_uniform(YYASSET_REF(0x0A000000),"colorSocks_b");global.gmlcolorSkin=shader_get_uniform(YYASSET_REF(0x0A000000),"colorSkin");global.gmlcolorCleats=shader_get_uniform(YYASSET_REF(0x0A000000),"colorCleats");global.gmlreplaceHelmet=shader_get_uniform(YYASSET_REF(0x0A000000),"replaceHelmet");global.gmlreplaceLogo=shader_get_uniform(YYASSET_REF(0x0A000000),"replaceLogo");global.gmlreplaceShirt=shader_get_uniform(YYASSET_REF(0x0A000000), "replaceShirt");global.gmlreplaceSleeve=shader_get_uniform(YYASSET_REF(0x0A000000),"replaceSleeve");global.gmlreplacePants=shader_get_uniform(YYASSET_REF(0x0A000000),"replacePants");global.gmlreplacePants_b=shader_get_uniform(YYASSET_REF(0x0A000000),"replacePants_b");global.gmlreplaceStripe=shader_get_uniform(YYASSET_REF(0x0A000000),"replaceStripe");global.gmlreplaceSocks=shader_get_uniform(YYASSET_REF(0x0A000000),"replaceSocks");global.gmlreplaceSocks_b=shader_get_uniform(YYASSET_REF(0x0A000000), "replaceSocks_b");global.gmlreplaceSkin=shader_get_uniform(YYASSET_REF(0x0A000000),"replaceSkin");global.gmlreplaceCleats=shader_get_uniform(YYASSET_REF(0x0A000000),"replaceCleats");gml_Script_slog(_inst,_other,"s_set_up_globals 5");random_set_seed(g_pBuiltIn.get_current_time());global.gmlexhibition=false;global.gmlexhibition_html_1save=yyfequal(global.gmlbrowser,true);global.gmlexh_fix=gml_Script_s_create_exhibition_fixture(_inst,_other,irandom(15),yyfplus(16,__yy_gml_errCheck(irandom(15))));global.gmlexh_choosing=0; global.gmldebug_track_str="";gml_Script_slog(_inst,_other,"s_set_up_globals 6");}}function gml_Script_s_set_up_temp_variables(_inst,_other){{_inst.gmlmyteam=ds_list_find_value(_inst.gmlteamlist,clamp(_inst.gmlmyteam_id,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmin_team_id,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmax_team_id));_inst.gmlmyconference=ds_map_find_value(_inst.gmlmyteam,"conference");_inst.gmlmydivision=ds_map_find_value(_inst.gmlmyteam,"division");_inst.gmllist_notifications=ds_list_create(); _inst.gmlnewteam=(-4);_inst.gmljobofferdone=false;_inst.gmlgamepractice=0;_inst.gmlplayoff_proceed=false;_inst.gmlplayerteamindex=0;_inst.gmlteam=__yy_gml_array_check(_inst.gmlteam,2482654026);_inst.gmlteam[__yy_gml_array_check_index_set(0)]=(-4);_inst.gmlteam[__yy_gml_array_check_index_set(1)]=(-4);_inst.gmltscore=__yy_gml_array_check(_inst.gmltscore,4090671517);_inst.gmltscore[__yy_gml_array_check_index_set(0)]=0;_inst.gmltscore[__yy_gml_array_check_index_set(1)]=0;_inst.gmlqtr_scores0=__yy_gml_array_check(_inst.gmlqtr_scores0, 2728284677);_inst.gmlqtr_scores0[__yy_gml_array_check_index_set(4)]=0;_inst.gmlqtr_scores1=__yy_gml_array_check(_inst.gmlqtr_scores1,3146081092);_inst.gmlqtr_scores1[__yy_gml_array_check_index_set(4)]=0;var gmli=0;for(;yyfless(gmli,4);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{_inst.gmlcol_helmet_home=__yy_gml_array_check(_inst.gmlcol_helmet_home,1564342938);_inst.gmlcol_helmet_home[__yy_gml_array_check_index_set(gmli)]=0;_inst.gmlcol_logo_home=__yy_gml_array_check(_inst.gmlcol_logo_home, 198660047);_inst.gmlcol_logo_home[__yy_gml_array_check_index_set(gmli)]=0;_inst.gmlcol_shirt_home=__yy_gml_array_check(_inst.gmlcol_shirt_home,1594035715);_inst.gmlcol_shirt_home[__yy_gml_array_check_index_set(gmli)]=0;_inst.gmlcol_sleeve_home=__yy_gml_array_check(_inst.gmlcol_sleeve_home,2318658025);_inst.gmlcol_sleeve_home[__yy_gml_array_check_index_set(gmli)]=0;_inst.gmlcol_pants_home=__yy_gml_array_check(_inst.gmlcol_pants_home,2030698856);_inst.gmlcol_pants_home[__yy_gml_array_check_index_set(gmli)]=0; _inst.gmlcol_pants_home_b=__yy_gml_array_check(_inst.gmlcol_pants_home_b,3905126936);_inst.gmlcol_pants_home_b[__yy_gml_array_check_index_set(gmli)]=0;_inst.gmlcol_stripe_home=__yy_gml_array_check(_inst.gmlcol_stripe_home,1732467324);_inst.gmlcol_stripe_home[__yy_gml_array_check_index_set(gmli)]=0;_inst.gmlcol_socks1_home=__yy_gml_array_check(_inst.gmlcol_socks1_home,2965037331);_inst.gmlcol_socks1_home[__yy_gml_array_check_index_set(gmli)]=0;_inst.gmlcol_socks2_home=__yy_gml_array_check(_inst.gmlcol_socks2_home, 3341038563);_inst.gmlcol_socks2_home[__yy_gml_array_check_index_set(gmli)]=0;_inst.gmlcol_endzone_home=__yy_gml_array_check(_inst.gmlcol_endzone_home,2427579399);_inst.gmlcol_endzone_home[__yy_gml_array_check_index_set(gmli)]=0;_inst.gmlcol_helmet_away=__yy_gml_array_check(_inst.gmlcol_helmet_away,22447010);_inst.gmlcol_helmet_away[__yy_gml_array_check_index_set(gmli)]=0;_inst.gmlcol_logo_away=__yy_gml_array_check(_inst.gmlcol_logo_away,1471952631);_inst.gmlcol_logo_away[__yy_gml_array_check_index_set(gmli)]=0; _inst.gmlcol_shirt_away=__yy_gml_array_check(_inst.gmlcol_shirt_away,57177915);_inst.gmlcol_shirt_away[__yy_gml_array_check_index_set(gmli)]=0;_inst.gmlcol_sleeve_away=__yy_gml_array_check(_inst.gmlcol_sleeve_away,3596128465);_inst.gmlcol_sleeve_away[__yy_gml_array_check_index_set(gmli)]=0;_inst.gmlcol_pants_away=__yy_gml_array_check(_inst.gmlcol_pants_away,627144784);_inst.gmlcol_pants_away[__yy_gml_array_check_index_set(gmli)]=0;_inst.gmlcol_pants_away_b=__yy_gml_array_check(_inst.gmlcol_pants_away_b, 1655221818);_inst.gmlcol_pants_away_b[__yy_gml_array_check_index_set(gmli)]=0;_inst.gmlcol_stripe_away=__yy_gml_array_check(_inst.gmlcol_stripe_away,992486212);_inst.gmlcol_stripe_away[__yy_gml_array_check_index_set(gmli)]=0;_inst.gmlcol_socks1_away=__yy_gml_array_check(_inst.gmlcol_socks1_away,3973158955);_inst.gmlcol_socks1_away[__yy_gml_array_check_index_set(gmli)]=0;_inst.gmlcol_socks2_away=__yy_gml_array_check(_inst.gmlcol_socks2_away,2605664987);_inst.gmlcol_socks2_away[__yy_gml_array_check_index_set(gmli)]=0; _inst.gmlcol_endzone_away=__yy_gml_array_check(_inst.gmlcol_endzone_away,3436877119);_inst.gmlcol_endzone_away[__yy_gml_array_check_index_set(gmli)]=0;}};_inst.gmlboss_profile=(-4);_inst.gmlplayer_profile=(-4);_inst.gmlstaff_hire=(-4);_inst.gmlstat_view=1;_inst.gmlface_page=1;_inst.gmlface_type_coach=false;_inst.gmldraft_page=1;_inst.gmlhof_page=1;_inst.gmlfa_page=1;_inst.gmldodraftbanner=false;_inst.gmlfans_done_update=false;_inst.gmlboost_morale_done=false;_inst.gmlboost_condition_done=false;_inst.gmlboost_gpa_done=false; _inst.gmlroster_from_store=false;_inst.gmlforce_uniform_sel1=0;_inst.gmlforce_uniform_sel2=0;_inst.gmledit_box1=(-4);_inst.gmledit_box2=(-4);_inst.gmlmap_dilemma=ds_map_create();_inst.gmlnews_dilemma="";_inst.gmlstore_to_dilemma=false;_inst.gmlticker_count=0;_inst.gmlstaff_reset_week=0;_inst.gmlfreeagent_reset_week=0;_inst.gmlfave_team_check=false;_inst.gmledit_team=(-4);_inst.gmledit_conf=0;_inst.gmlnag=0;_inst.gmlad_tick=0;_inst.gmlviewing_hof_players=false;_inst.gmlplayer_record_msg_done=false; _inst.gmlretrobowlwinner=0;_inst.gmlrm_winners_do_awards=0;_inst.gmlrm_winners_cid=(-1);_inst.gmlrm_winners_tier="";_inst.gmlrm_winners_custom="";_inst.gmlinterviews=10;_inst.gmldone_season_review=false;_inst.gmlprematch_team_morale_qb=0;_inst.gmlshopping_type=0;_inst.gmlshopping_page=1;_inst.gmlshopping_item=0;_inst.gmlqb_new_offer=(-1);_inst.gmlsim_action=false;_inst.gmlprofile_back_to=(-1);gml_Script_s_college_set_up_globals(_inst,_other);gml_Script_s_sound_brass_setup(_inst,_other);}}// /// @param {string} str Output string, can be formatted with %n placeholders // /// @param {...*} [parameters] Variable number of parameters to fill the %n placeholders function gml_GlobalScript_slog(_inst, _other,argument0){(_inst.gmlslog=__yy_method(_inst,gml_Script_slog));(_inst.gmlslog2=__yy_method(_inst,gml_Script_slog2));(_inst.gmlslogf=__yy_method(_inst,gml_Script_slogf));(_inst.gmlslog_map=__yy_method(_inst,gml_Script_slog_map));(_inst.gmlslog_struct=__yy_method(_inst,gml_Script_slog_struct));}function gml_Script_slog(_inst,_other,argument0){{show_debug_message(string(argument0));return argument0;}}function gml_Script_slog2(_inst,_other,argument0){{argument0=yyfplus(argument0,"\n\n ---------- Stack:"); var gmlcs=debug_get_callstack();var gmli=0;for(;yyfless(gmli,array_length_1d(gmlcs));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{argument0=yyfplus(argument0,yyfplus("\n",__yy_gml_errCheck(string(gmlcs[__yy_gml_array_check_index(gmli,gmlcs)]))));}};argument0=yyfplus(argument0,"\n---------------------");gml_Script_slog(_inst,_other,argument0);}}function gml_Script_slogf(_inst,_other,argument0){{var $$args=Array.prototype.slice.call(arguments); $$args[2]=argument0;{var gmli=yyfminus(__yy_gml_errCheck(($$args.length-2)),1);for(;yyfgreater(gmli,0);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.subtract(1):--gmli),g_yyPrePostObject__)){argument0=string_replace_all(argument0,yyfplus("%",__yy_gml_errCheck(string(gmli))),string($$args[__yy_gml_array_check_index(2+(gmli),$$args)]))};show_debug_message(argument0);}}}function gml_Script_slog_map(_inst,_other,argument0,argument1){{var gmloutput=yyfplus(__yy_gml_errCheck(argument0), "\n");if((yyGetBool(yyfnotequal(argument1,(-4))))&&(yyGetBool(ds_exists(argument1,1)))){{var gmlmap_key=ds_map_find_first(argument1);while(yyfnotequal(gmlmap_key,undefined)){{gmloutput=yyfplus(gmloutput,yyfplus(yyfplus(yyfplus(yyfplus(" [",__yy_gml_errCheck(string(gmlmap_key))),"]:["),__yy_gml_errCheck(string(ds_map_find_value(argument1,gmlmap_key)))),"]\n"));gmlmap_key=ds_map_find_next(argument1,gmlmap_key);}};show_debug_message(gmloutput);};}else {{show_debug_message("Error: input_map is not a valid ds_map."); };};}}function gml_Script_slog_struct(_inst,_other,argument0,argument1){{var gmloutput=yyfplus(__yy_gml_errCheck(argument0),"\n");if(yyfnotequal(argument1,undefined)){{var gmlstruct_keys=variable_struct_get_names(argument1);var gmli=0;for(;yyfless(gmli,array_length(gmlstruct_keys));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlkey=gmlstruct_keys[__yy_gml_array_check_index(gmli,gmlstruct_keys)];var gmlvalue=variable_struct_get(argument1, gmlkey);gmloutput=yyfplus(gmloutput,yyfplus(yyfplus(yyfplus(yyfplus(" [",__yy_gml_errCheck(string(gmlkey))),"]:["),__yy_gml_errCheck(string(gmlvalue))),"]\n"));}};show_debug_message(gmloutput);};}else {{show_debug_message("Error: input_struct is undefined or not a struct.");};};}}function gml_GlobalScript_s_sound(_inst,_other){(_inst.gmls_sound=__yy_method(_inst,gml_Script_s_sound));(_inst.gmls_sound_brass_setup=__yy_method(_inst,gml_Script_s_sound_brass_setup));(_inst.gmls_sound_brass_loop=__yy_method(_inst, gml_Script_s_sound_brass_loop));(_inst.gmls_stop_brass_loop=__yy_method(_inst,gml_Script_s_stop_brass_loop));(_inst.gmls_stop_brass_loop_finalize=__yy_method(_inst,gml_Script_s_stop_brass_loop_finalize));}function gml_Script_s_sound(_inst,_other,argument0){{if(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))){return;};audio_play_sound(argument0,1,false);}}function gml_Script_s_sound_brass_setup(_inst,_other){{if(yyGetBool(variable_global_exists("brass_sounds"))){ {global.gmlbrass_sounds=undefined;};};global.gmlbrass_sounds=__yy_gml_array_create([YYASSET_REF(0x02000013),YYASSET_REF(0x02000015),YYASSET_REF(0x02000016),YYASSET_REF(0x0200001A)]);}}function gml_Script_s_sound_brass_loop(_inst,_other,argument0){{if(yyfequal(gml_Script_s_is_co_mode(_inst,_other),false)){{return;};};if(yyfnotequal(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"),2)){{return;};};gml_Script_slog(_inst,_other,"s_sound_brass_loop");var gmlisPlayingLog=""; var gmli=0;for(;yyfless(gmli,array_length(global.gmlbrass_sounds));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlisPlayingLog=yyfplus(gmlisPlayingLog,yyfplus(yyfplus(yyfplus(yyfplus("isPlaying ",__yy_gml_errCheck(string(global.gmlbrass_sounds[__yy_gml_array_check_index(gmli,global.gmlbrass_sounds)]))),"["),__yy_gml_errCheck(string(audio_is_playing(global.gmlbrass_sounds[__yy_gml_array_check_index(gmli,global.gmlbrass_sounds)])))),"] ")); }};gml_Script_slog(_inst,_other,gmlisPlayingLog);gml_Script_s_stop_brass_loop_finalize(_inst,_other);yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm=__yy_gml_array_check(yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm,3662155414);yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm[__yy_gml_array_check_index_set(2)]=(-1);var gmlindex=irandom(yyfminus(__yy_gml_errCheck(array_length(global.gmlbrass_sounds)),1));var gmlrnd_sound=global.gmlbrass_sounds[__yy_gml_array_check_index(gmlindex,global.gmlbrass_sounds)]; audio_play_sound(gmlrnd_sound,1,true);audio_sound_gain(gmlrnd_sound,argument0,0);}}function gml_Script_s_stop_brass_loop(_inst,_other){{if(yyfequal(gml_Script_s_is_co_mode(_inst,_other),false)){{return;};};var gmlfadeout_time=0.5;var gmlisAnySoundPlaying=false;var gmli=0;for(;yyfless(gmli,array_length(global.gmlbrass_sounds));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{if(yyGetBool(audio_is_playing(global.gmlbrass_sounds[__yy_gml_array_check_index(gmli, global.gmlbrass_sounds)]))){{audio_sound_gain(global.gmlbrass_sounds[__yy_gml_array_check_index(gmli,global.gmlbrass_sounds)],0,yyftime(1000,__yy_gml_errCheck(gmlfadeout_time)));gmlisAnySoundPlaying=true;};};}};if((yyGetBool(gmlisAnySoundPlaying))&&(yyGetBool(yyflessequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm[__yy_gml_array_check_index(2,yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm)],0)))){{gml_Script_slog(_inst,_other,"s_stop_brass_loop");yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm=__yy_gml_array_check(yyInst(_inst, _other,YYASSET_REF(0x00000062)).alarm,3662155414);yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm[__yy_gml_array_check_index_set(2)]=yyftime(__yy_gml_errCheck(g_pBuiltIn.get_room_speed()),__yy_gml_errCheck(gmlfadeout_time));};};}}function gml_Script_s_stop_brass_loop_finalize(_inst,_other){{if(yyfequal(gml_Script_s_is_co_mode(_inst,_other),false)){{return;};};gml_Script_slog(_inst,_other,"s_stop_brass_loop_finalize");var gmli=0;for(;yyfless(gmli,array_length(global.gmlbrass_sounds));(g_yyPrePostObject__=gmli, gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{audio_stop_sound(global.gmlbrass_sounds[__yy_gml_array_check_index(gmli,global.gmlbrass_sounds)]);}};}}function gml_GlobalScript_s_make_random_colour(_inst,_other){(_inst.gmls_make_random_colour=__yy_method(_inst,gml_Script_s_make_random_colour));}function gml_Script_s_make_random_colour(_inst,_other){{return make_color_rgb(irandom(255),irandom(255),irandom(255));}}function gml_GlobalScript_s_lines_intersect(_inst,_other, argument0,argument1,argument2,argument3,argument4,argument5,argument6,argument7){(_inst.gmls_lines_intersect=__yy_method(_inst,gml_Script_s_lines_intersect));}function gml_Script_s_lines_intersect(_inst,_other,argument0,argument1,argument2,argument3,argument4,argument5,argument6,argument7){{var gmlAx=argument0;var gmlAy=argument1;var gmlBx=argument2;var gmlBy=argument3;var gmlCx=argument4;var gmlCy=argument5;var gmlDx=argument6;var gmlDy=argument7;var gmlipoint=instance_create_layer(0,0,"Players",YYASSET_REF(0x00000065)); var gmlRn=yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlAy),__yy_gml_errCheck(gmlCy))),__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlDx),__yy_gml_errCheck(gmlCx))))),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlAx),__yy_gml_errCheck(gmlCx))),__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlDy),__yy_gml_errCheck(gmlCy))))));var gmlRd=yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlBx),__yy_gml_errCheck(gmlAx))), __yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlDy),__yy_gml_errCheck(gmlCy))))),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlBy),__yy_gml_errCheck(gmlAy))),__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlDx),__yy_gml_errCheck(gmlCx))))));if(yyfequal(gmlRd,0)){{yyInst(_inst,_other,gmlipoint).gmlintercept=false;};}else {{yyInst(_inst,_other,gmlipoint).gmlintercept=true;var gmlSn=yyfminus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlAy),__yy_gml_errCheck(gmlCy))), __yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlBx),__yy_gml_errCheck(gmlAx))))),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlAx),__yy_gml_errCheck(gmlCx))),__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlBy),__yy_gml_errCheck(gmlAy))))));yyInst(_inst,_other,gmlipoint).gmlintercept_AB=yyfdivide(__yy_gml_errCheck(gmlRn),__yy_gml_errCheck(gmlRd));yyInst(_inst,_other,gmlipoint).gmlintercept_CD=yyfdivide(__yy_gml_errCheck(gmlSn),__yy_gml_errCheck(gmlRd));yyInst(_inst,_other, gmlipoint).gmlpx=yyfplus(__yy_gml_errCheck(gmlAx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,gmlipoint).gmlintercept_AB),__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlBx),__yy_gml_errCheck(gmlAx))))));yyInst(_inst,_other,gmlipoint).gmlpy=yyfplus(__yy_gml_errCheck(gmlAy),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,gmlipoint).gmlintercept_AB),__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlBy),__yy_gml_errCheck(gmlAy))))));if(yyfgreater(yyInst(_inst,_other, gmlipoint).gmlintercept_AB,1)){yyInst(_inst,_other,gmlipoint).gmlintercept=false;};if(yyfless(yyInst(_inst,_other,gmlipoint).gmlintercept_AB,0)){yyInst(_inst,_other,gmlipoint).gmlintercept=false;};if(yyfgreater(yyInst(_inst,_other,gmlipoint).gmlintercept_CD,1)){yyInst(_inst,_other,gmlipoint).gmlintercept=false;};if(yyfless(yyInst(_inst,_other,gmlipoint).gmlintercept_CD,0)){yyInst(_inst,_other,gmlipoint).gmlintercept=false;};};};return gmlipoint;}}function gml_GlobalScript_s_log_player(_inst,_other, argument0){(_inst.gmls_log_player=__yy_method(_inst,gml_Script_s_log_player));}function gml_Script_s_log_player(_inst,_other,argument0){{var gmlmap=argument0;var gmlk=ds_map_find_first(gmlmap);var gmlmaptext="";while(!yyGetBool(is_undefined(gmlk))){{gmlmaptext=yyfplus(gmlmaptext,yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gmlk),": "),__yy_gml_errCheck(string(ds_map_find_value(gmlmap,gmlk)))),"\n"));gmlk=ds_map_find_next(gmlmap,gmlk);}};gml_Script_slog(_inst,_other,gmlmaptext);}}function gml_GlobalScript_s_get_random_college_name(_inst, _other){(_inst.gmls_get_random_college_name=__yy_method(_inst,gml_Script_s_get_random_college_name));}function gml_Script_s_get_random_college_name(_inst,_other){{var gmlfile=file_text_open_read("Colleges.txt");var gmlnames;var gmlnum=0;while(!yyGetBool(file_text_eof(gmlfile))){{file_text_readln(gmlfile);var gmln=file_text_read_string(gmlfile);gmlnames=__yy_gml_array_check(gmlnames,2926361285);gmlnames[__yy_gml_array_check_index_set((g_yyPrePostObject__=gmlnum,gmlnum=(g_yyPrePostObject__ instanceof Long?gmlnum.add(1):++gmlnum), g_yyPrePostObject__))]=gmln;}};file_text_close(gmlfile);return gmlnames[__yy_gml_array_check_index(irandom(yyfminus(__yy_gml_errCheck(gmlnum),1)),gmlnames)];}}function gml_GlobalScript_s_get_random_charity(_inst,_other){(_inst.gmls_get_random_charity=__yy_method(_inst,gml_Script_s_get_random_charity));}function gml_Script_s_get_random_charity(_inst,_other){{var gmlfile=file_text_open_read("Charities.txt");var gmlnames;var gmlnum=0;while(!yyGetBool(file_text_eof(gmlfile))){{file_text_readln(gmlfile);var gmln=file_text_read_string(gmlfile); gmlnames=__yy_gml_array_check(gmlnames,2926361285);gmlnames[__yy_gml_array_check_index_set((g_yyPrePostObject__=gmlnum,gmlnum=(g_yyPrePostObject__ instanceof Long?gmlnum.add(1):++gmlnum),g_yyPrePostObject__))]=gmln;}};file_text_close(gmlfile);return gmlnames[__yy_gml_array_check_index(irandom(yyfminus(__yy_gml_errCheck(gmlnum),1)),gmlnames)];}}function gml_GlobalScript_s_get_aim_direction(_inst,_other,argument0,argument1,argument2,argument3){(_inst.gmls_get_aim_direction=__yy_method(_inst,gml_Script_s_get_aim_direction)); }function gml_Script_s_get_aim_direction(_inst,_other,argument0,argument1,argument2,argument3){{_inst.gmldir=arctan2(yyfminus(__yy_gml_errCheck(argument3),__yy_gml_errCheck(argument1)),yyfminus(__yy_gml_errCheck(argument2),__yy_gml_errCheck(argument0)));return _inst.gmldir;}}function gml_GlobalScript_s_get_random_first_name(_inst,_other){(_inst.gmls_get_random_first_name=__yy_method(_inst,gml_Script_s_get_random_first_name));}function gml_Script_s_get_random_first_name(_inst,_other,argument0){{var gmlf="Names_F1.txt"; if(!yyGetBool(argument0)){gmlf="Names_F0.txt";};var gmlfile=file_text_open_read(gmlf);var gmlnames;var gmlnum=0;while(!yyGetBool(file_text_eof(gmlfile))){{file_text_readln(gmlfile);var gmln=file_text_read_string(gmlfile);if(yyfless(string_length(gmln),8)){gmlnames=__yy_gml_array_check(gmlnames,2926361285);gmlnames[__yy_gml_array_check_index_set((g_yyPrePostObject__=gmlnum,gmlnum=(g_yyPrePostObject__ instanceof Long?gmlnum.add(1):++gmlnum),g_yyPrePostObject__))]=gmln;};}};file_text_close(gmlfile);return gmlnames[__yy_gml_array_check_index(irandom(yyfminus(__yy_gml_errCheck(gmlnum), 1)),gmlnames)];}}function gml_GlobalScript_s_get_random_last_name(_inst,_other){(_inst.gmls_get_random_last_name=__yy_method(_inst,gml_Script_s_get_random_last_name));}function gml_Script_s_get_random_last_name(_inst,_other){{var gmlfile=file_text_open_read("Names_L.txt");var gmlnames;var gmlnum=0;while(!yyGetBool(file_text_eof(gmlfile))){{file_text_readln(gmlfile);var gmln=file_text_read_string(gmlfile);if(yyfless(string_length(gmln),8)){gmlnames=__yy_gml_array_check(gmlnames,2926361285);gmlnames[__yy_gml_array_check_index_set((g_yyPrePostObject__=gmlnum, gmlnum=(g_yyPrePostObject__ instanceof Long?gmlnum.add(1):++gmlnum),g_yyPrePostObject__))]=gmln;};}};file_text_close(gmlfile);return gmlnames[__yy_gml_array_check_index(irandom(yyfminus(__yy_gml_errCheck(gmlnum),1)),gmlnames)];}}function gml_GlobalScript_s_format_hex_color(_inst,_other,argument0){(_inst.gmls_format_hex_color=__yy_method(_inst,gml_Script_s_format_hex_color));}function gml_Script_s_format_hex_color(_inst,_other,argument0){{gml_Script_slog(_inst,_other,"s_format_hex_color");var gmlcol=argument0; gmlcol=string_lettersdigits(gmlcol);gmlcol=string_upper(gmlcol);gmlcol=string_replace_all(gmlcol,"G","0");gmlcol=string_replace_all(gmlcol,"H","0");gmlcol=string_replace_all(gmlcol,"I","0");gmlcol=string_replace_all(gmlcol,"J","0");gmlcol=string_replace_all(gmlcol,"K","0");gmlcol=string_replace_all(gmlcol,"L","0");gmlcol=string_replace_all(gmlcol,"M","0");gmlcol=string_replace_all(gmlcol,"N","0");gmlcol=string_replace_all(gmlcol,"O","0");gmlcol=string_replace_all(gmlcol,"P","0");gmlcol=string_replace_all(gmlcol, "Q","0");gmlcol=string_replace_all(gmlcol,"R","0");gmlcol=string_replace_all(gmlcol,"S","0");gmlcol=string_replace_all(gmlcol,"T","0");gmlcol=string_replace_all(gmlcol,"U","0");gmlcol=string_replace_all(gmlcol,"V","0");gmlcol=string_replace_all(gmlcol,"W","0");gmlcol=string_replace_all(gmlcol,"X","0");gmlcol=string_replace_all(gmlcol,"Y","0");gmlcol=string_replace_all(gmlcol,"Z","0");while(yyfless(string_length(gmlcol),6)){gmlcol=yyfplus(__yy_gml_errCheck(gmlcol),"0")};if(yyfequal(gmlcol,"FF0000")){ gmlcol="FA0000";};if(yyfequal(gmlcol,"00FF00")){gmlcol="00FA00";};if(yyfequal(gmlcol,"0000FF")){gmlcol="0000FA";};if(yyfequal(gmlcol,"FF00FF")){gmlcol="FA00FA";};if(yyfequal(gmlcol,"FFFF00")){gmlcol="FAFA00";};if(yyfequal(gmlcol,"800000")){gmlcol="850000";};if(yyfequal(gmlcol,"008000")){gmlcol="008500";};if(yyfequal(gmlcol,"000080")){gmlcol="000085";};if(yyfequal(gmlcol,"8080FF")){gmlcol="8080FA";};if(yyfequal(gmlcol,"808080")){gmlcol="858080";};return yyfplus("$",__yy_gml_errCheck(gmlcol));}}function gml_GlobalScript_s_color_to_hex(_inst, _other,argument0){(_inst.gmls_color_to_hex=__yy_method(_inst,gml_Script_s_color_to_hex));}function gml_Script_s_color_to_hex(_inst,_other,argument0){{{var gmlcolor,gmldec;gmlcolor=argument0;gmldec=yyfbitor(yyfbitor(__yy_gml_errCheck(yyfbitshiftright(__yy_gml_errCheck(yyfbitand(__yy_gml_errCheck(gmlcolor),16711680)),16)),__yy_gml_errCheck(yyfbitand(__yy_gml_errCheck(gmlcolor),65280))),__yy_gml_errCheck(yyfbitshiftleft(__yy_gml_errCheck(yyfbitand(__yy_gml_errCheck(gmlcolor),255)),16)));return gml_Script_s_dec_to_hex(_inst, _other,gmldec);};}}function gml_GlobalScript_s_gui_helpers(_inst,_other){(_inst.gmls_create_label=__yy_method(_inst,gml_Script_s_create_label));(_inst.gmls_is_new_shadow=__yy_method(_inst,gml_Script_s_is_new_shadow));}function gml_Script_s_create_label(_inst,_other,argument0,argument1,argument2,argument3){{if(yyfequal(argument3,_inst.undefined)){argument3=1;};}{var gmllabel=instance_create_layer(argument0,argument1,"Instances",YYASSET_REF(0x0000004B));yyInst(_inst,_other,gmllabel).gmltext=argument2; yyInst(_inst,_other,gmllabel).gmldraw_box=false;yyInst(_inst,_other,gmllabel).gmlhalign=argument3;return gmllabel;}}function gml_Script_s_is_new_shadow(_inst,_other){{return 1;}}function gml_GlobalScript_btn_click_SeasonReviewBack(_inst,_other){(_inst.gmlbtn_click_SeasonReviewBack=__yy_method(_inst,gml_Script_btn_click_SeasonReviewBack));}function gml_Script____struct___201_btn_click_SeasonReviewBack_gml_GlobalScript_btn_click_SeasonReviewBack(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___201_btn_click_SeasonReviewBack_gml_GlobalScript_btn_click_SeasonReviewBack"; }if(gml_Script____struct___201_btn_click_SeasonReviewBack_gml_GlobalScript_btn_click_SeasonReviewBack.prototype.__type===undefined){gml_Script____struct___201_btn_click_SeasonReviewBack_gml_GlobalScript_btn_click_SeasonReviewBack.prototype.__type="gml_Script____struct___201_btn_click_SeasonReviewBack_gml_GlobalScript_btn_click_SeasonReviewBack";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___201_btn_click_SeasonReviewBack_gml_GlobalScript_btn_click_SeasonReviewBack.prototype); {var $$args=Array.prototype.slice.call(arguments);{_inst.gmlmode=$$args[__yy_gml_array_check_index(2+(0),$$args)];}}}}function gml_Script_btn_click_SeasonReviewBack(_inst,_other){{if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldone_season_review)){room_goto(YYASSET_REF(0x0300000E));}else {{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){gml_Script_s_goto_room(_inst,_other,YYASSET_REF(0x03000034),__yy_gml_object_create(_inst,(_inst.gml___struct___201=__yy_method(_inst,gml_Script____struct___201_btn_click_SeasonReviewBack_gml_GlobalScript_btn_click_SeasonReviewBack)), 2));}else {room_goto(YYASSET_REF(0x03000010));};};};}}function gml_GlobalScript_s_dec_to_hex(_inst,_other,argument0){(_inst.gmls_dec_to_hex=__yy_method(_inst,gml_Script_s_dec_to_hex));}function gml_Script_s_dec_to_hex(_inst,_other,argument0){{{var gmldec,gmlhex,gmlh,gmlbyte,gmlhi,gmllo;gmldec=argument0;if(yyGetBool(gmldec)){gmlhex="";}else {gmlhex="00";};gmlh="0123456789ABCDEF";while(yyGetBool(gmldec)){{gmlbyte=yyfbitand(__yy_gml_errCheck(gmldec),255);gmlhi=string_char_at(gmlh,yyfplus(__yy_gml_errCheck(yyfdiv(__yy_gml_errCheck(gmlbyte), 16)),1));gmllo=string_char_at(gmlh,yyfplus(__yy_gml_errCheck(yyfmod(__yy_gml_errCheck(gmlbyte),16)),1));gmlhex=yyfplus(yyfplus(__yy_gml_errCheck(gmlhi),__yy_gml_errCheck(gmllo)),__yy_gml_errCheck(gmlhex));gmldec=yyfbitshiftright(__yy_gml_errCheck(gmldec),8);}};return gmlhex;};}}function gml_GlobalScript_s_roman_numerals(_inst,_other,argument0){(_inst.gmls_roman_numerals=__yy_method(_inst,gml_Script_s_roman_numerals));}function gml_Script_s_roman_numerals(_inst,_other,argument0){{_inst.gmlvalues=__yy_gml_array_check(_inst.gmlvalues, 2525599607);_inst.gmlvalues[__yy_gml_array_check_index_set(0)]=1000;_inst.gmlvalues[__yy_gml_array_check_index_set(1)]=900;_inst.gmlvalues[__yy_gml_array_check_index_set(2)]=500;_inst.gmlvalues[__yy_gml_array_check_index_set(3)]=400;_inst.gmlvalues[__yy_gml_array_check_index_set(4)]=100;_inst.gmlvalues[__yy_gml_array_check_index_set(5)]=90;_inst.gmlvalues[__yy_gml_array_check_index_set(6)]=50;_inst.gmlvalues[__yy_gml_array_check_index_set(7)]=40;_inst.gmlvalues[__yy_gml_array_check_index_set(8)]=10; _inst.gmlvalues[__yy_gml_array_check_index_set(9)]=9;_inst.gmlvalues[__yy_gml_array_check_index_set(10)]=5;_inst.gmlvalues[__yy_gml_array_check_index_set(11)]=4;_inst.gmlvalues[__yy_gml_array_check_index_set(12)]=1;_inst.gmlnumerals=__yy_gml_array_check(_inst.gmlnumerals,3862562094);_inst.gmlnumerals[__yy_gml_array_check_index_set(0)]="M";_inst.gmlnumerals[__yy_gml_array_check_index_set(1)]="CM";_inst.gmlnumerals[__yy_gml_array_check_index_set(2)]="D";_inst.gmlnumerals[__yy_gml_array_check_index_set(3)]="CD"; _inst.gmlnumerals[__yy_gml_array_check_index_set(4)]="C";_inst.gmlnumerals[__yy_gml_array_check_index_set(5)]="XC";_inst.gmlnumerals[__yy_gml_array_check_index_set(6)]="L";_inst.gmlnumerals[__yy_gml_array_check_index_set(7)]="XL";_inst.gmlnumerals[__yy_gml_array_check_index_set(8)]="X";_inst.gmlnumerals[__yy_gml_array_check_index_set(9)]="IX";_inst.gmlnumerals[__yy_gml_array_check_index_set(10)]="V";_inst.gmlnumerals[__yy_gml_array_check_index_set(11)]="IV";_inst.gmlnumerals[__yy_gml_array_check_index_set(12)]="I"; var gmlnumber=argument0;if((yyGetBool(yyfless(gmlnumber,0)))||(yyGetBool(yyfgreater(gmlnumber,3999)))){return "";};var gmlstr="";var gmli=0;for(;yyfless(gmli,13);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{while(yyfgreaterequal(gmlnumber,_inst.gmlvalues[__yy_gml_array_check_index(gmli,_inst.gmlvalues)])){{gmlnumber=yyfminus(gmlnumber,_inst.gmlvalues[__yy_gml_array_check_index(gmli,_inst.gmlvalues)]);gmlstr=yyfplus(gmlstr,_inst.gmlnumerals[__yy_gml_array_check_index(gmli, _inst.gmlnumerals)]);}};}};return gmlstr;}}function gml_GlobalScript_s_get_watermark_color(_inst,_other){(_inst.gmls_get_watermark_color=__yy_method(_inst,gml_Script_s_get_watermark_color));}function gml_Script_s_get_watermark_color(_inst,_other){{{var __yy__v1917=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1918 in __yy__v1917){if(!__yy__v1917.hasOwnProperty(__yy__v1918))continue;var __yy__v1919=__yy__v1917[__yy__v1918];{random_set_seed(g_pBuiltIn.get_current_time());var gmlcol=make_color_rgb(random(255), random(255),random(255));var gmlcol_h=clamp(color_get_hue(gmlcol),0,255);var gmlcol_s=clamp(color_get_saturation(gmlcol),0,255);var gmlcol_v=clamp(color_get_value(gmlcol),100,220);return make_color_hsv(gmlcol_h,gmlcol_s,gmlcol_v);}}};}}function gml_GlobalScript_s_generate_uid(_inst,_other,argument0,argument1){(_inst.gmls_generate_uid=__yy_method(_inst,gml_Script_s_generate_uid));}function gml_Script_s_generate_uid(_inst,_other,argument0,argument1){{random_set_seed(argument0);var gmlnums=argument1;var gmlr=""; var gmli=0;for(;yyfless(gmli,gmlnums);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{if((yyGetBool(yyfgreater(gmli,0)))&&(yyGetBool(yyfequal(yyfmod(__yy_gml_errCheck(gmli),4),0)))){gmlr=yyfplus(gmlr,"-");};gmlr=yyfplus(gmlr,choose("0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"));}};random_set_seed(g_pBuiltIn.get_current_time());return gmlr;}}function gml_GlobalScript_gmcallback_poki_loadbar(_inst,_other,argument0,argument1, argument2,argument3,argument4,argument5,argument6){(_inst.gmlgmcallback_poki_loadbar=__yy_method(_inst,gml_Script_gmcallback_poki_loadbar));}function gml_Script_gmcallback_poki_loadbar(_inst,_other,argument0,argument1,argument2,argument3,argument4,argument5,argument6){{gml_Script_slog(_inst,_other,"gmcallback_poki_loadbar");var gmlr;var gmlpc=argument1;var gmlpt=argument2;var gmlcw=argument3;var gmlch=argument4;var gmliw=argument5;var gmlih=argument6;var ___sw1610___=argument0;var ___swc1611___=-1;if(yyCompareVal(___sw1610___, "image_rect",g_GMLMathEpsilon,false)==0){___swc1611___=0;}else if(yyCompareVal(___sw1610___,"background_color",g_GMLMathEpsilon,false)==0){___swc1611___=1;}else if(yyCompareVal(___sw1610___,"bar_background_color",g_GMLMathEpsilon,false)==0){___swc1611___=2;}else if(yyCompareVal(___sw1610___,"bar_foreground_color",g_GMLMathEpsilon,false)==0){___swc1611___=3;}else if(yyCompareVal(___sw1610___,"bar_border_color",g_GMLMathEpsilon,false)==0){___swc1611___=4;}else if(yyCompareVal(___sw1610___,"bar_width",g_GMLMathEpsilon, false)==0){___swc1611___=5;}else if(yyCompareVal(___sw1610___,"bar_height",g_GMLMathEpsilon,false)==0){___swc1611___=6;}else if(yyCompareVal(___sw1610___,"bar_border_width",g_GMLMathEpsilon,false)==0){___swc1611___=7;}else if(yyCompareVal(___sw1610___,"bar_offset",g_GMLMathEpsilon,false)==0){___swc1611___=8;}switch(___swc1611___){case 0:{gmlr=__yy_gml_array_check(gmlr,2556479103);gmlr[__yy_gml_array_check_index_set(0)]=yyftime(yyfmod(__yy_gml_errCheck(yyfdiv(__yy_gml_errCheck(g_pBuiltIn.get_current_time()), 500)),4),__yy_gml_errCheck(yyfdiv(__yy_gml_errCheck(gmliw),4)));gmlr[__yy_gml_array_check_index_set(1)]=0;gmlr[__yy_gml_array_check_index_set(2)]=0;gmlr[__yy_gml_array_check_index_set(3)]=0;return gmlr;}case 1:{return "#000000";}case 2:{return "#000000";}case 3:{return "#D2D20A";}case 4:{return "#2C68FF";}case 5:{return round(yyftime(__yy_gml_errCheck(gmlcw),0.6));}case 6:{return 20;}case 7:{return 2;}case 8:{return 0;}};return undefined;}}function gml_GlobalScript_poki_pause(_inst,_other){(_inst.gmlpoki_pause=__yy_method(_inst, gml_Script_poki_pause));}function gml_Script_poki_pause(_inst,_other){{gml_Script_slog(_inst,_other,"poki_pause");audio_master_gain(0);}}function gml_GlobalScript_s_set_up_qb_pmap(_inst,_other){(_inst.gmls_set_up_qb_pmap=__yy_method(_inst,gml_Script_s_set_up_qb_pmap));}function gml_Script_s_set_up_qb_pmap(_inst,_other){{{var __yy__v1920=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1921 in __yy__v1920){if(!__yy__v1920.hasOwnProperty(__yy__v1921))continue;var __yy__v1922=__yy__v1920[__yy__v1921];{ var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1922.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v1922.gmlroster,gmli);if(yyfequal(ds_map_find_value(gmlpmap,"position"),1)){{ds_map_set(gmlpmap,"fname",__yy__v1922.gmlfname);ds_map_set(gmlpmap,"lname",__yy__v1922.gmllname);ds_map_set(gmlpmap,"age",21);ds_map_set(gmlpmap,"skill",1);ds_map_set(gmlpmap,"speed",1);ds_map_set(gmlpmap,"strength", 1);ds_map_set(gmlpmap,"stamina",1);ds_map_set(gmlpmap,"max_skill",10);ds_map_set(gmlpmap,"max_speed",10);ds_map_set(gmlpmap,"max_strength",10);ds_map_set(gmlpmap,"max_stamina",10);ds_map_set(gmlpmap,"contract",2);ds_map_set(gmlpmap,"attitude",50);ds_map_set(gmlpmap,"salary",gml_Script_s_get_new_salary(__yy__v1922,_inst,gmlpmap));ds_map_set(gmlpmap,"xp",0);ds_map_set(gmlpmap,"xp_level",1);ds_map_set(gmlpmap,"condition",100);ds_map_set(gmlpmap,"skin",__yy__v1922.gmlmy_skin);ds_map_set(gmlpmap,"face_x", __yy__v1922.gmlmyface_x);ds_map_set(gmlpmap,"face_y",__yy__v1922.gmlmyface_y);return;};};}};}}};}}function gml_GlobalScript_poki_resume(_inst,_other){(_inst.gmlpoki_resume=__yy_method(_inst,gml_Script_poki_resume));}function gml_Script_poki_resume(_inst,_other,argument0,argument1){{audio_master_gain(1);}}// /// @function scale_canvas(base width, base height, current width, current height, center); // /// @param {int} base width The base width for the game room // /// @param {int} base height The base height for the game room // /// @param {int} current width The current width of the game canvas // /// @param {int} current height The current height of the game canvas // /// @param {bool} center Set whether to center the game window on the canvas or not function gml_GlobalScript_scale_canvas(_inst, _other){(_inst.gmlscale_canvas=__yy_method(_inst,gml_Script_scale_canvas));}function gml_Script_scale_canvas(_inst,_other,argument0,argument1,argument2,argument3,argument4){{var gml_aspect=yyfdivide(__yy_gml_errCheck(argument0),__yy_gml_errCheck(argument1));if(yyfgreater(yyfdivide(__yy_gml_errCheck(argument2),__yy_gml_errCheck(gml_aspect)),argument3)){{var gmlvh=floor(yyftime(__yy_gml_errCheck(argument3),__yy_gml_errCheck(gml_aspect)));if(yyGetBool(yyfbitand(__yy_gml_errCheck(gmlvh),1))){(g_yyPrePostObject__=gmlvh, gmlvh=(g_yyPrePostObject__ instanceof Long?gmlvh.add(1):++gmlvh),g_yyPrePostObject__);};window_set_size(gmlvh,argument3);};}else {{var gmlvw=floor(yyfdivide(__yy_gml_errCheck(argument2),__yy_gml_errCheck(gml_aspect)));if(yyGetBool(yyfbitand(__yy_gml_errCheck(gmlvw),1))){(g_yyPrePostObject__=gmlvw,gmlvw=(g_yyPrePostObject__ instanceof Long?gmlvw.add(1):++gmlvw),g_yyPrePostObject__);};window_set_size(argument2,gmlvw);};};if(yyGetBool(argument4)){window_center();};surface_resize(g_pBuiltIn.application_surface, min(window_get_width(),argument0),min(window_get_height(),argument1));}}function gml_GlobalScript_s_update_camera(_inst,_other){(_inst.gmls_update_camera=__yy_method(_inst,gml_Script_s_update_camera));}function gml_Script_s_update_camera(_inst,_other){{var gmldes_zoom=0.6;{var __yy__v1923=GetWithArray(global.gmlmaster_ball);for(var __yy__v1924 in __yy__v1923){if(!__yy__v1923.hasOwnProperty(__yy__v1924))continue;var __yy__v1925=__yy__v1923[__yy__v1924];{if((yyGetBool(__yy__v1925.gmlholder))&&(yyGetBool(gml_Script_s_aiming(__yy__v1925, _inst)))){{var gmldist=gml_Script_s_get_distance_to_furthest_teammate(__yy__v1925,_inst,__yy__v1925.gmlholder);gmldes_zoom=clamp(yyftime(__yy_gml_errCheck(gmldist),0.003),0.7,1);};};}}};var ___sw1620___=_inst.gmlstate;var ___swc1621___=-1;if(yyCompareVal(___sw1620___,1,g_GMLMathEpsilon,false)==0){___swc1621___=0;}switch(___swc1621___){case 0:{if(yyfnotequal(_inst.gmlcomm_stage,14)){{_inst.gmlbzoom=lerp(_inst.gmlbzoom,1,0.05);break;};};}default :{_inst.gmlbzoom=lerp(_inst.gmlbzoom,gmldes_zoom,0.025);if(yyGetBool(_inst.gmlkicking)){ _inst.gmlbzoom=1;};break;}};var ___sw1622___=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_zoom");var ___swc1623___=-1;if(yyCompareVal(___sw1622___,false,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1622___,"false",g_GMLMathEpsilon,false)==0){___swc1623___=0;}switch(___swc1623___){case 0:{_inst.gmlbzoom=1;break;}};camera_set_view_size(g_pBuiltIn.view_camera[__yy_gml_array_check_index(0,g_pBuiltIn.view_camera)],yyftime(960,__yy_gml_errCheck(_inst.gmlbzoom)),yyftime(540, __yy_gml_errCheck(_inst.gmlbzoom)));var gmlcam_w=camera_get_view_width(g_pBuiltIn.view_camera[__yy_gml_array_check_index(0,g_pBuiltIn.view_camera)]);var gmlcam_h=camera_get_view_height(g_pBuiltIn.view_camera[__yy_gml_array_check_index(0,g_pBuiltIn.view_camera)]);var gmlcam_trackx=yyftime(__yy_gml_errCheck(gmlcam_w),0.5);var gmlcam_tracky=yyftime(__yy_gml_errCheck(gmlcam_h),0.5);var gmlcx=1300;var gmlcy=300;var gmllrp=0.05;var gmlball=global.gmlmaster_ball;if(yyGetBool(instance_exists(gmlball))){{gmlcx=yyInst(_inst, _other,gmlball).x;gmlcy=yyfplus(300,__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlball).y),300)),0.5)));if(yyGetBool(gml_Script_s_aiming(_inst,_other))){gmlcy=300;};if(yyGetBool(instance_exists(yyInst(_inst,_other,gmlball).gmlholder))){gmlcx=yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmlholder).x;};gmlcam_trackx=yyftime(__yy_gml_errCheck(gmlcam_w),__yy_gml_errCheck(yyfminus(0.5,__yy_gml_errCheck(yyftime(0.15,__yy_gml_errCheck(_inst.gmldrivedir)))))); if(yyGetBool(_inst.gmlkicking)){gmlcam_trackx=yyftime(__yy_gml_errCheck(gmlcam_w),__yy_gml_errCheck(yyfminus(0.5,__yy_gml_errCheck(yyftime(0.25,__yy_gml_errCheck(_inst.gmldrivedir))))));};};}else {{gmlcy=0;gmllrp=0.025;var ___sw1624___=_inst.gmldrivedir;var ___swc1625___=-1;if(yyCompareVal(___sw1624___,(-1),g_GMLMathEpsilon,false)==0){___swc1625___=0;}else if(yyCompareVal(___sw1624___,1,g_GMLMathEpsilon,false)==0){___swc1625___=1;}switch(___swc1625___){case 0:{if(yyfequal(_inst.gmlpossession,_inst.gmlhuman_team)){ gmlcx=yyfminus(gmlcx,yyftime(__yy_gml_errCheck(_inst.gmlscrimmage),20));}else {gmlcx=yyfplus(gmlcx,yyftime(__yy_gml_errCheck(_inst.gmlscrimmage),20));};break;}case 1:{if(yyfequal(_inst.gmlpossession,_inst.gmlhuman_team)){gmlcx=yyfplus(gmlcx,yyftime(__yy_gml_errCheck(_inst.gmlscrimmage),20));}else {gmlcx=yyfminus(gmlcx,yyftime(__yy_gml_errCheck(_inst.gmlscrimmage),20));};break;}};var ___sw1626___=_inst.gmlcomm_stage;var ___swc1627___=-1;if(yyCompareVal(___sw1626___,12,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1626___, 13,g_GMLMathEpsilon,false)==0){___swc1627___=0;}else if(yyCompareVal(___sw1626___,0,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1626___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1626___,17,g_GMLMathEpsilon,false)==0){___swc1627___=1;}switch(___swc1627___){case 0:{if((yyGetBool(yyfnotequal(_inst.gmlquarter,3)))&&(yyGetBool(yyfnotequal(_inst.gmlquarter,5)))){break;};}case 1:{gmllrp=0.25;gmlcx=1300;break;}default :{break;}};};};gmlcy=yyfminus(gmlcy,10);var gmlnewpos_x=lerp(camera_get_view_x(g_pBuiltIn.view_camera[__yy_gml_array_check_index(0, g_pBuiltIn.view_camera)]),yyfminus(__yy_gml_errCheck(gmlcx),__yy_gml_errCheck(gmlcam_trackx)),yyftime(__yy_gml_errCheck(gmllrp),0.5));var gmlnewpos_y=lerp(camera_get_view_y(g_pBuiltIn.view_camera[__yy_gml_array_check_index(0,g_pBuiltIn.view_camera)]),yyfminus(__yy_gml_errCheck(gmlcy),__yy_gml_errCheck(gmlcam_tracky)),yyftime(__yy_gml_errCheck(gmllrp),0.5));gmlnewpos_x=clamp(gmlnewpos_x,0,yyfminus(__yy_gml_errCheck(g_pBuiltIn.room_width),__yy_gml_errCheck(gmlcam_w)));gmlnewpos_y=clamp(gmlnewpos_y, 0,yyfminus(__yy_gml_errCheck(g_pBuiltIn.room_height),__yy_gml_errCheck(gmlcam_h)));camera_set_view_pos(g_pBuiltIn.view_camera[__yy_gml_array_check_index(0,g_pBuiltIn.view_camera)],gmlnewpos_x,gmlnewpos_y);}}function gml_GlobalScript__poki_gameplay_start(_inst,_other){(_inst.gml_poki_gameplay_start=__yy_method(_inst,gml_Script__poki_gameplay_start));}function gml_Script__poki_gameplay_start(_inst,_other){{if((yyGetBool(global.gmlpoki))&&(yyGetBool(!yyGetBool(global.gmlpoki_gameplay)))){{gml_Script_slog(_inst, _other,"_poki_gameplay_start");poki_gameplay_start();global.gmlpoki_gameplay=true;};};}}function gml_GlobalScript__poki_gameplay_stop(_inst,_other){(_inst.gml_poki_gameplay_stop=__yy_method(_inst,gml_Script__poki_gameplay_stop));}function gml_Script__poki_gameplay_stop(_inst,_other){{if((yyGetBool(global.gmlpoki))&&(yyGetBool(global.gmlpoki_gameplay))){{gml_Script_slog(_inst,_other,"_poki_gameplay_stop");poki_gameplay_stop();global.gmlpoki_gameplay=false;};};}}function gml_GlobalScript_s_find_gamepad(_inst, _other){(_inst.gmls_find_gamepad=__yy_method(_inst,gml_Script_s_find_gamepad));(_inst.gmls_gamepad_is_fingerprint_sensor=__yy_method(_inst,gml_Script_s_gamepad_is_fingerprint_sensor));}function gml_Script_s_find_gamepad(_inst,_other){{if(!yyGetBool(global.gmlbrowser)){{var gmli=0;for(;yyfless(gmli,gamepad_get_device_count());(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{if(yyGetBool(gamepad_is_connected(gmli))){{if(yyGetBool(gml_Script_s_gamepad_is_fingerprint_sensor(_inst, _other,gmli))){return;};gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gamepad_get_description(gmli))," connected ("),__yy_gml_errCheck(string(gmli))),")"));global.gmlgamepad=true;yyInst(_inst,_other,global.gmlgp_1).gmlslot=gmli;{var __yy__v1926=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v1927 in __yy__v1926){if(!__yy__v1926.hasOwnProperty(__yy__v1927))continue;var __yy__v1928=__yy__v1926[__yy__v1927];__yy__v1928.gmlcontrol_alpha=5;}};gml_Script_s_update_gamepad(_inst, _other);return;};};}};};};}}function gml_Script_s_gamepad_is_fingerprint_sensor(_inst,_other,argument0){{var gmlstr=gamepad_get_description(argument0);if((yyGetBool(string_count("uinput-fpc",gmlstr)))||(yyGetBool(string_count("uinput-goodix",gmlstr)))){{gml_Script_slog(_inst,_other,"Ignoring fingerprint sensor");return true;};};return false;}}// /// @param {Struct} _gp function gml_GlobalScript_s_update_gamepad(_inst,_other){(_inst.gmls_update_gamepad=__yy_method(_inst,gml_Script_s_update_gamepad)); (_inst.gmls_gamepad_async=__yy_method(_inst,gml_Script_s_gamepad_async));(_inst.gmls_gamepad_activity=__yy_method(_inst,gml_Script_s_gamepad_activity));(_inst.gmls_clear_last_selected_history=__yy_method(_inst,gml_Script_s_clear_last_selected_history));(_inst.gmls_overwrite_last_selected=__yy_method(_inst,gml_Script_s_overwrite_last_selected));(_inst.gmls_save_last_selected=__yy_method(_inst,gml_Script_s_save_last_selected));(_inst.gmls_get_last_selected=__yy_method(_inst,gml_Script_s_get_last_selected)); (_inst.gmls_reset_gamepad=__yy_method(_inst,gml_Script_s_reset_gamepad));(_inst.gmls_update_gamepad_data=__yy_method(_inst,gml_Script_s_update_gamepad_data));(_inst.gmls_update_ui_selected=__yy_method(_inst,gml_Script_s_update_ui_selected));(_inst.gmls_multiplayer_init=__yy_method(_inst,gml_Script_s_multiplayer_init));(_inst.gmls_is_multicon_wanted=__yy_method(_inst,gml_Script_s_is_multicon_wanted));(_inst.gmls_toggle_multicon_wanted=__yy_method(_inst,gml_Script_s_toggle_multicon_wanted));(_inst.gmls_multicon_reset=__yy_method(_inst, gml_Script_s_multicon_reset));(_inst.gmls_multicon_init=__yy_method(_inst,gml_Script_s_multicon_init));(_inst.gmls_refresh_gamepads=__yy_method(_inst,gml_Script_s_refresh_gamepads));(_inst.gmls_gamepad_lv_dir=__yy_method(_inst,gml_Script_s_gamepad_lv_dir));(_inst.gmls_set_multicon_active=__yy_method(_inst,gml_Script_s_set_multicon_active));(_inst.gmls_set_multicon_turn=__yy_method(_inst,gml_Script_s_set_multicon_turn));(_inst.gmls_multicon_save_turn=__yy_method(_inst,gml_Script_s_multicon_save_turn)); (_inst.gmls_multicon_restore_turn=__yy_method(_inst,gml_Script_s_multicon_restore_turn));(_inst.gmls_is_turn=__yy_method(_inst,gml_Script_s_is_turn));(_inst.gmls_is_multicon=__yy_method(_inst,gml_Script_s_is_multicon));(_inst.gmls_get_multicon_current_pad=__yy_method(_inst,gml_Script_s_get_multicon_current_pad));(_inst.gmls_set_multicon_touch=__yy_method(_inst,gml_Script_s_set_multicon_touch));(_inst.gmls_is_touch_allowed=__yy_method(_inst,gml_Script_s_is_touch_allowed));(_inst.gmls_is_ui_selected=__yy_method(_inst, gml_Script_s_is_ui_selected));(_inst.gmls_ui_selected_color=__yy_method(_inst,gml_Script_s_ui_selected_color));}function gml_Script_s_update_gamepad(_inst,_other){{if(yyGetBool(global.gmlbrowser)){{global.gmlgamepad=false;return;};};var gmlpad=gml_Script_s_gamepad_activity(_inst,_other);if((yyGetBool(yyfgreaterequal(gmlpad,0)))&&(yyGetBool((yyGetBool(yyfnotequal(gmlpad,yyInst(_inst,_other,global.gmlgp).gmlslot)))||(yyGetBool(!yyGetBool(global.gmlgamepad)))))){{if(yyfequal(gmlpad,yyInst(_inst,_other, global.gmlgp_1).gmlslot)){global.gmlgp=global.gmlgp_1;}else {if(yyfequal(gmlpad,yyInst(_inst,_other,global.gmlgp_2).gmlslot)){global.gmlgp=global.gmlgp_2;}else {if(!yyGetBool(gml_Script_s_is_multicon(_inst,_other))){{global.gmlgp=global.gmlgp_1;yyInst(_inst,_other,global.gmlgp).gmlslot=gmlpad;};};};};global.gmlgamepad=true;gml_Script_slogf(_inst,_other,"active gp slot is %1 (1:%2 2:%3) detected: %4 turn: %5",yyInst(_inst,_other,global.gmlgp).gmlslot,yyInst(_inst,_other,global.gmlgp_1).gmlslot,yyInst(_inst, _other,global.gmlgp_2).gmlslot,gmlpad,yyInst(_inst,_other,global.gmlgp_mp).gmlturn);};};if(yyGetBool(gml_Script_s_is_multicon(_inst,_other))){{if(!yyGetBool(gml_Script_s_is_turn(_inst,_other,global.gmlgp))){var ___sw1640___=yyInst(_inst,_other,global.gmlgp_mp).gmlturn;var ___swc1641___=-1;if(yyCompareVal(___sw1640___,1,g_GMLMathEpsilon,false)==0){___swc1641___=0;}else if(yyCompareVal(___sw1640___,2,g_GMLMathEpsilon,false)==0){___swc1641___=1;}switch(___swc1641___){case 0:{global.gmlgp=global.gmlgp_1; break;}case 1:{global.gmlgp=global.gmlgp_2;break;}default :{break;}};};};};if((yyGetBool((yyGetBool(mouse_check_button(1)))||(yyGetBool(mouse_check_button(2)))))&&(yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other)))){global.gmlgamepad=false;};if(yyGetBool(global.gmlgamepad)){{gml_Script_s_update_gamepad_data(_inst,_other,global.gmlgp_1);gml_Script_s_update_gamepad_data(_inst,_other,global.gmlgp_2);gml_Script_s_update_ui_selected(_inst,_other,global.gmlgp_1);gml_Script_s_update_ui_selected(_inst, _other,global.gmlgp_2);};}else {{yyInst(_inst,_other,global.gmlgp).gmlui_selected=(-4);};};}}function gml_Script_s_gamepad_async(_inst,_other){{var ___sw1642___=ds_map_find_value(g_pBuiltIn.get_async_load(),"event_type");var ___swc1643___=-1;if(yyCompareVal(___sw1642___,"gamepad discovered",g_GMLMathEpsilon,false)==0){___swc1643___=0;}else if(yyCompareVal(___sw1642___,"gamepad lost",g_GMLMathEpsilon,false)==0){___swc1643___=1;}switch(___swc1643___){case 0:{var gmlpad=ds_map_find_value(g_pBuiltIn.get_async_load(), "pad_index");gml_Script_s_refresh_gamepads(_inst,_other);gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gamepad_get_description(gmlpad))," connected ("),__yy_gml_errCheck(string(gmlpad))),")"));gml_Script_slog(_inst,_other,gamepad_get_mapping(gmlpad));break;}case 1:{var gmlpad=ds_map_find_value(g_pBuiltIn.get_async_load(),"pad_index");var gmlslots=gml_Script_s_refresh_gamepads(_inst,_other);if((yyGetBool(gml_Script_s_is_multicon(_inst,_other)))&&(yyGetBool(yyfless(gmlslots,2)))){ {gml_Script_s_multicon_save_turn(_inst,_other);gml_Script_s_multicon_reset(_inst,_other);gml_Script_s_exhibition_lost_two_controllers(_inst,_other);};};gml_Script_slog(_inst,_other,yyfplus(yyfplus("pad ",__yy_gml_errCheck(string(gmlpad)))," disconnected"));break;}};}}function gml_Script_s_gamepad_activity(_inst,_other){{var gml_slot;var gmli=0;for(;yyfless(gmli,gamepad_get_device_count());(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{if(yyGetBool(gamepad_is_connected(gmli))){ {gml_slot=gmli;if(yyfgreater(yyfplus(__yy_gml_errCheck(gamepad_axis_value(gml_slot,32785)),__yy_gml_errCheck(gamepad_axis_value(gml_slot,32786))),0.2)){return gml_slot;}else {if(yyfgreater(yyfplus(__yy_gml_errCheck(gamepad_axis_value(gml_slot,32787)),__yy_gml_errCheck(gamepad_axis_value(gml_slot,32788))),0.2)){return gml_slot;}else {if((yyGetBool(gamepad_button_check(gml_slot,global.gmlgp_select)))||(yyGetBool(gamepad_button_check(gml_slot,global.gmlgp_back)))||(yyGetBool(gamepad_button_check(gml_slot, 32771)))||(yyGetBool(gamepad_button_check(gml_slot,32772)))){return gml_slot;}else {if((yyGetBool(gamepad_button_check(gml_slot,32783)))||(yyGetBool(gamepad_button_check(gml_slot,32784)))||(yyGetBool(gamepad_button_check(gml_slot,32781)))||(yyGetBool(gamepad_button_check(gml_slot,32782)))){return gml_slot;}else {if((yyGetBool(gamepad_button_check(gml_slot,32773)))||(yyGetBool(gamepad_button_check(gml_slot,32775)))){return gml_slot;}else {if((yyGetBool(gamepad_button_check(gml_slot,32774)))||(yyGetBool(gamepad_button_check(gml_slot, 32776)))){return gml_slot;}else {if((yyGetBool(gamepad_button_check(gml_slot,32777)))||(yyGetBool(gamepad_button_check(gml_slot,32778)))){return gml_slot;};};};};};};};};};}};return(-1);}}function gml_Script_s_clear_last_selected_history(_inst,_other){{}}function gml_Script_s_overwrite_last_selected(_inst,_other){{gml_Script_s_get_last_selected(_inst,_other,g_pBuiltIn.get_current_room());gml_Script_s_save_last_selected(_inst,_other);}}function gml_Script____struct___202_s_save_last_selected_gml_GlobalScript_s_update_gamepad(_inst, _other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___202_s_save_last_selected_gml_GlobalScript_s_update_gamepad";}if(gml_Script____struct___202_s_save_last_selected_gml_GlobalScript_s_update_gamepad.prototype.__type===undefined){gml_Script____struct___202_s_save_last_selected_gml_GlobalScript_s_update_gamepad.prototype.__type="gml_Script____struct___202_s_save_last_selected_gml_GlobalScript_s_update_gamepad";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___202_s_save_last_selected_gml_GlobalScript_s_update_gamepad.prototype); {var $$args=Array.prototype.slice.call(arguments);{_inst.gmlrm=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlls=$$args[__yy_gml_array_check_index(2+(1),$$args)];}}}}function gml_Script_s_save_last_selected(_inst,_other){{if(yyfequal(_inst.object_index,YYASSET_REF(0x0000001B))){return;};var gmlls=__yy_gml_object_create(_inst,(_inst.gml___struct___202=__yy_method(_inst,gml_Script____struct___202_s_save_last_selected_gml_GlobalScript_s_update_gamepad)),g_pBuiltIn.get_current_room(),_inst.id); ds_list_add(global.gmllsh,gmlls);}}function gml_Script_s_get_last_selected(_inst,_other,argument0){{var gmlls,gmllsid;var gmli=0;for(;yyfless(gmli,ds_list_size(global.gmllsh));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gmlls=ds_list_find_value(global.gmllsh,gmli);if(yyfequal(yyInst(_inst,_other,gmlls).gmlrm,argument0)){{gmllsid=yyInst(_inst,_other,gmlls).gmlls;ds_list_delete(global.gmllsh,gmli);return gmllsid;};};}};return(-1);}}function gml_Script____struct___203_s_reset_gamepad_gml_GlobalScript_s_update_gamepad(_inst, _other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___203_s_reset_gamepad_gml_GlobalScript_s_update_gamepad";}if(gml_Script____struct___203_s_reset_gamepad_gml_GlobalScript_s_update_gamepad.prototype.__type===undefined){gml_Script____struct___203_s_reset_gamepad_gml_GlobalScript_s_update_gamepad.prototype.__type="gml_Script____struct___203_s_reset_gamepad_gml_GlobalScript_s_update_gamepad";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___203_s_reset_gamepad_gml_GlobalScript_s_update_gamepad.prototype); {var $$args=Array.prototype.slice.call(arguments);{_inst.id=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlslot=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gmlaxisr_h=0;_inst.gmlaxisr_v=0;_inst.gmlaxisr_force=0;_inst.gmlaxisr_flick=0;_inst.gmlaxisl_h=0;_inst.gmlaxisl_v=0;_inst.gmlaxisl_force=0;_inst.gmlaxisl_flick=0;_inst.gmlaxisl_v_dir=1;_inst.gmltrigger=0;_inst.gmltriggerl=0;_inst.gmltriggerr=0;_inst.gmlgamepad_anybutton=0;_inst.gmlui_selected=(-4);}}}}function gml_Script_s_reset_gamepad(_inst, _other,argument0){{gml_Script_slogf(_inst,_other,"Resetting gamepad %1 data",argument0);return __yy_gml_object_create(_inst,(_inst.gml___struct___203=__yy_method(_inst,gml_Script____struct___203_s_reset_gamepad_gml_GlobalScript_s_update_gamepad)),argument0,(-1));}}function gml_Script_s_update_gamepad_data(_inst,_other,argument0){{{var __yy__v1929=GetWithArray(argument0);for(var __yy__v1930 in __yy__v1929){if(!__yy__v1929.hasOwnProperty(__yy__v1930))continue;var __yy__v1931=__yy__v1929[__yy__v1930];{if(yyfless(__yy__v1931.gmlslot, 0)){return;};__yy__v1931.gmlaxisr_h=gamepad_axis_value(__yy__v1931.gmlslot,32787);__yy__v1931.gmlaxisr_v=gamepad_axis_value(__yy__v1931.gmlslot,32788);__yy__v1931.gmlaxisr_force=max(abs(__yy__v1931.gmlaxisr_h),abs(__yy__v1931.gmlaxisr_v));if(yyfless(__yy__v1931.gmlaxisr_force,0.2)){__yy__v1931.gmlaxisr_flick=false;};__yy__v1931.gmlaxisl_h=gamepad_axis_value(__yy__v1931.gmlslot,32785);__yy__v1931.gmlaxisl_v=yyftime(__yy_gml_errCheck(gamepad_axis_value(__yy__v1931.gmlslot,32786)),__yy_gml_errCheck(__yy__v1931.gmlaxisl_v_dir)); if(yyGetBool(gamepad_button_check(__yy__v1931.gmlslot,32783))){__yy__v1931.gmlaxisl_h=(-1);};if(yyGetBool(gamepad_button_check(__yy__v1931.gmlslot,32784))){__yy__v1931.gmlaxisl_h=1;};if(yyGetBool(gamepad_button_check(__yy__v1931.gmlslot,32781))){__yy__v1931.gmlaxisl_v=(-1);};if(yyGetBool(gamepad_button_check(__yy__v1931.gmlslot,32782))){__yy__v1931.gmlaxisl_v=1;};__yy__v1931.gmlaxisl_force=max(abs(__yy__v1931.gmlaxisl_h),abs(__yy__v1931.gmlaxisl_v));if(yyfless(__yy__v1931.gmlaxisl_force,0.2)){__yy__v1931.gmlaxisl_flick=false; };__yy__v1931.gmltriggerl=0;__yy__v1931.gmltriggerr=0;if((yyGetBool(gamepad_button_check(__yy__v1931.gmlslot,32773)))||(yyGetBool(gamepad_button_check(__yy__v1931.gmlslot,32775)))){__yy__v1931.gmltriggerl=1;};if((yyGetBool(gamepad_button_check(__yy__v1931.gmlslot,32774)))||(yyGetBool(gamepad_button_check(__yy__v1931.gmlslot,32776)))){__yy__v1931.gmltriggerr=1;};__yy__v1931.gmltrigger=(yyGetBool(__yy__v1931.gmltriggerl))||(yyGetBool(__yy__v1931.gmltriggerr));__yy__v1931.gmlgamepad_anybutton=(yyGetBool(__yy__v1931.gmltrigger))||(yyGetBool(gamepad_button_check_released(__yy__v1931.gmlslot, global.gmlgp_select)))||(yyGetBool(gamepad_button_check_released(__yy__v1931.gmlslot,global.gmlgp_back)))||(yyGetBool(gamepad_button_check_released(__yy__v1931.gmlslot,32771)))||(yyGetBool(gamepad_button_check_released(__yy__v1931.gmlslot,32772)))||(yyGetBool(gamepad_button_check_released(__yy__v1931.gmlslot,32778)));}}};}}function gml_Script_s_update_ui_selected(_inst,_other,argument0){{{var __yy__v1932=GetWithArray(argument0);for(var __yy__v1933 in __yy__v1932){if(!__yy__v1932.hasOwnProperty(__yy__v1933))continue; var __yy__v1934=__yy__v1932[__yy__v1933];{if((yyGetBool(yyfless(__yy__v1934.gmlslot,0)))||(yyGetBool((yyGetBool(gml_Script_s_is_multicon(__yy__v1934,_inst)))&&(yyGetBool(!yyGetBool(gml_Script_s_is_turn(__yy__v1934,_inst,argument0))))))){{__yy__v1934.gmlui_selected=(-4);return;};};if(!yyGetBool(instance_exists(__yy__v1934.gmlui_selected))){__yy__v1934.gmlui_selected=(-4);};{var __yy__v1935=GetWithArray(__yy__v1934.gmlui_selected);for(var __yy__v1936 in __yy__v1935){if(!__yy__v1935.hasOwnProperty(__yy__v1936))continue; var __yy__v1937=__yy__v1935[__yy__v1936];{if(!yyGetBool(__yy__v1937.visible)){yyInst(_inst,_other,argument0).gmlui_selected=(-4);}else {if((yyGetBool(__yy__v1937.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(__yy__v1937.layer))))){yyInst(_inst,_other,argument0).gmlui_selected=(-4);}else {if((yyGetBool(variable_instance_exists(__yy__v1937.id,"active")))&&(yyGetBool(!yyGetBool(__yy__v1937.gmlactive)))){yyInst(_inst,_other,argument0).gmlui_selected=(-4);};};};}}};{var __yy__v1938=GetWithArray(__yy__v1934.gmlui_selected); for(var __yy__v1939 in __yy__v1938){if(!__yy__v1938.hasOwnProperty(__yy__v1939))continue;var __yy__v1940=__yy__v1938[__yy__v1939];{{var __yy__v1941=GetWithArray(YYASSET_REF(0x0000004F));for(var __yy__v1942 in __yy__v1941){if(!__yy__v1941.hasOwnProperty(__yy__v1942))continue;var __yy__v1943=__yy__v1941[__yy__v1942];if(yyfless(__yy__v1943.depth,__yy__v1940.depth)){yyInst(_inst,_other,argument0).gmlui_selected=(-4);};}};}}};if(yyfequal(__yy__v1934.gmlui_selected,(-4))){gml_Script_s_find_default_button(__yy__v1934, _inst,false,argument0);};if((yyGetBool(yyfequal(__yy__v1934.gmlaxisl_flick,false)))&&(yyGetBool(yyfgreater(__yy__v1934.gmlaxisl_force,0.9)))){{if((yyGetBool(!yyGetBool(gamepad_button_check(__yy__v1934.gmlslot,global.gmlgp_select))))&&(yyGetBool(!yyGetBool(gamepad_button_check(__yy__v1934.gmlslot,global.gmlgp_back))))&&(yyGetBool(!yyGetBool(gamepad_button_check(__yy__v1934.gmlslot,32771))))&&(yyGetBool(!yyGetBool(gamepad_button_check(__yy__v1934.gmlslot,32772))))){{__yy__v1934.gmlaxisl_flick=true; var gmlclosest_obj=(-4);var gmlclosest_dist=(-1);var gmlkb_alt_obj=(-4);var gmlkb_alt_dist=(-1);{var __yy__v1944=GetWithArray(__yy__v1934.gmlui_selected);for(var __yy__v1945 in __yy__v1944){if(!__yy__v1944.hasOwnProperty(__yy__v1945))continue;var __yy__v1946=__yy__v1944[__yy__v1945];{{var __yy__v1947=GetWithArray(YYASSET_REF(0x00000022));for(var __yy__v1948 in __yy__v1947){if(!__yy__v1947.hasOwnProperty(__yy__v1948))continue;var __yy__v1949=__yy__v1947[__yy__v1948];{if(!yyGetBool(__yy__v1949.visible)){continue; };if((yyGetBool(__yy__v1949.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(__yy__v1949.layer))))){continue;};if((yyGetBool(variable_instance_exists(__yy__v1949.id,"active")))&&(yyGetBool(!yyGetBool(__yy__v1949.gmlactive)))){continue;};if(yyfequal(__yy__v1949.id,yyInst(_inst,_other,argument0).gmlui_selected)){continue;};if((yyGetBool(instance_exists(YYASSET_REF(0x0000004F))))&&(yyGetBool(yyfgreater(__yy__v1949.depth,yyInst(_inst,_other,YYASSET_REF(0x0000004F)).depth)))){continue;};if((yyGetBool(variable_instance_exists(__yy__v1949.id, "gp_mapped_button")))&&(yyGetBool(yyfnotequal(__yy__v1949.gmlgp_mapped_button,(-1))))){continue;};if((yyGetBool(yyInst(_inst,_other,global.gmlcustkb).gmlactive))&&(yyGetBool(!yyGetBool(__yy__v1949.gmlgp_active_editing)))){continue;};if(yyfequal(yyfbitand(__yy_gml_errCheck(yyInst(_inst,_other,argument0).id),__yy_gml_errCheck(__yy__v1949.gmlgp_allowed)),0)){continue;};var gmlsx=0;var gmlsy=0;if(yyfless(yyInst(_inst,_other,argument0).gmlaxisl_h,(-0.5))){gmlsx=(-1);};if(yyfgreater(yyInst(_inst,_other, argument0).gmlaxisl_h,0.5)){gmlsx=1;};if(yyfless(yyInst(_inst,_other,argument0).gmlaxisl_v,(-0.5))){gmlsy=(-1);};if(yyfgreater(yyInst(_inst,_other,argument0).gmlaxisl_v,0.5)){gmlsy=1;};var gmlxdist=abs(yyfminus(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(__yy__v1949.x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy__v1949.sprite_width),0.5)))),__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(__yy__v1946.x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy__v1946.sprite_width),0.5))))));var gmlydist=abs(yyfminus(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(__yy__v1949.y), __yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy__v1949.sprite_height),0.5)))),__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(__yy__v1946.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy__v1946.sprite_height),0.5))))));if((yyGetBool((yyGetBool(yyfless(gmlsx,0)))&&(yyGetBool(yyfless(__yy__v1949.x,__yy__v1946.x)))))||(yyGetBool((yyGetBool(yyfgreater(gmlsx,0)))&&(yyGetBool(yyfgreater(__yy__v1949.x,__yy__v1946.x)))))){{if(!yyGetBool((yyGetBool(yyInst(_inst,_other,global.gmlcustkb).gmlactive))&&(yyGetBool(yyfnotequal(gmlydist, 0))))){{var gmldist=yyfplus(__yy_gml_errCheck(gmlxdist),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlydist),5)));if((yyGetBool(yyfequal(gmlclosest_dist,(-1))))||(yyGetBool(yyfless(gmldist,gmlclosest_dist)))){{gmlclosest_dist=gmldist;gmlclosest_obj=__yy__v1949.id;};};};};};}else {if((yyGetBool((yyGetBool(yyfless(gmlsy,0)))&&(yyGetBool(yyfless(__yy__v1949.y,__yy__v1946.y)))))||(yyGetBool((yyGetBool(yyfgreater(gmlsy,0)))&&(yyGetBool(yyfgreater(__yy__v1949.y,__yy__v1946.y)))))){{gmlxdist=yyfdivide(gmlxdist, yyfdivide(__yy_gml_errCheck(__yy__v1949.sprite_width),__yy_gml_errCheck(__yy__v1946.sprite_width)));var gmldist=yyfplus(__yy_gml_errCheck(gmlxdist),__yy_gml_errCheck(gmlydist));if((yyGetBool(yyfequal(gmlclosest_dist,(-1))))||(yyGetBool(yyfless(gmldist,gmlclosest_dist)))){{gmlclosest_dist=gmldist;gmlclosest_obj=__yy__v1949.id;};};};};};if(yyGetBool(yyInst(_inst,_other,global.gmlcustkb).gmlactive)){{if(yyfnotequal(gmlsx,0)){{var gmldist=yyfplus(__yy_gml_errCheck(abs(yyfminus(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(__yy__v1949.x), __yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy__v1949.sprite_width),0.5)))),__yy_gml_errCheck(yyfminus(yyfminus(yyfplus(__yy_gml_errCheck(__yy__v1946.x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy__v1946.sprite_width),0.5))),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlsx),__yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst,_other,global.gmlcustkb).gmlbase).sprite_width)))),16))))),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlydist),5)));if((yyGetBool(yyfequal(gmlkb_alt_dist,(-1))))||(yyGetBool(yyfless(gmldist, gmlkb_alt_dist)))){{gmlkb_alt_dist=gmldist;gmlkb_alt_obj=__yy__v1949.id;};};};}else {if(yyfnotequal(gmlsy,0)){{var gmldist=yyfplus(__yy_gml_errCheck(abs(yyfminus(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(__yy__v1949.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy__v1949.sprite_height),0.5)))),__yy_gml_errCheck(yyfminus(yyfminus(yyfplus(__yy_gml_errCheck(__yy__v1946.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy__v1946.sprite_height),0.5))),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlsy), __yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst,_other,global.gmlcustkb).gmlbase).sprite_height)))),16))))),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlxdist),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(__yy__v1949.sprite_width),__yy_gml_errCheck(__yy__v1946.sprite_width))))));if((yyGetBool(yyfequal(gmlkb_alt_dist,(-1))))||(yyGetBool(yyfless(gmldist,gmlkb_alt_dist)))){{gmlkb_alt_dist=gmldist;gmlkb_alt_obj=__yy__v1949.id;};};};};};};};}}};}}};if(yyGetBool(gmlclosest_obj)){yyInst(_inst,_other, argument0).gmlui_selected=gmlclosest_obj;};if((yyGetBool(yyfequal(gmlclosest_obj,(-4))))&&(yyGetBool(yyfnotequal(gmlkb_alt_obj,(-4))))){yyInst(_inst,_other,argument0).gmlui_selected=gmlkb_alt_obj;};if(yyfgreaterequal(yyInst(_inst,_other,argument0).gmlui_selected,0)){{gml_Script_slogf(__yy__v1934,_inst,"ui %4 allowed:%1 gpid:%2 : %3",yyInst(_inst,_other,yyInst(_inst,_other,argument0).gmlui_selected).gmlgp_allowed,yyInst(_inst,_other,argument0).id,yyfbitand(__yy_gml_errCheck(yyInst(_inst,_other,yyInst(_inst, _other,argument0).gmlui_selected).gmlgp_allowed),__yy_gml_errCheck(yyInst(_inst,_other,argument0).id)),__yy__v1934.id);};};};};};};}}};}}function gml_Script____struct___204_s_multiplayer_init_gml_GlobalScript_s_update_gamepad(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___204_s_multiplayer_init_gml_GlobalScript_s_update_gamepad";}if(gml_Script____struct___204_s_multiplayer_init_gml_GlobalScript_s_update_gamepad.prototype.__type===undefined){gml_Script____struct___204_s_multiplayer_init_gml_GlobalScript_s_update_gamepad.prototype.__type="gml_Script____struct___204_s_multiplayer_init_gml_GlobalScript_s_update_gamepad"; }{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___204_s_multiplayer_init_gml_GlobalScript_s_update_gamepad.prototype);{_inst.gmltry_multi=false;_inst.gmlsingle=true;_inst.gmlturn=0;_inst.gmltouch=true;}}}function gml_Script_s_multiplayer_init(_inst,_other){{global.gmlgp_1=gml_Script_s_reset_gamepad(_inst,_other,1);global.gmlgp_2=gml_Script_s_reset_gamepad(_inst,_other,2);global.gmlgp=global.gmlgp_1;global.gmlgp_mp=__yy_gml_object_create(_inst,(_inst.gml___struct___204=__yy_method(_inst, gml_Script____struct___204_s_multiplayer_init_gml_GlobalScript_s_update_gamepad)));}}function gml_Script_s_is_multicon_wanted(_inst,_other){{return yyInst(_inst,_other,global.gmlgp_mp).gmltry_multi;}}function gml_Script_s_toggle_multicon_wanted(_inst,_other){{{var __yy__v1950=GetWithArray(global.gmlgp_mp);for(var __yy__v1951 in __yy__v1950){if(!__yy__v1950.hasOwnProperty(__yy__v1951))continue;var __yy__v1952=__yy__v1950[__yy__v1951];__yy__v1952.gmltry_multi=!yyGetBool(__yy__v1952.gmltry_multi);}};}}function gml_Script_s_multicon_reset(_inst, _other){{if(!yyGetBool(gml_Script_s_is_multicon(_inst,_other))){return;};gml_Script_s_set_multicon_active(_inst,_other,false);gml_Script_s_set_multicon_turn(_inst,_other);gml_Script_s_set_multicon_touch(_inst,_other,true);var ___sw1644___=g_pBuiltIn.get_os_type();var ___swc1645___=-1;if(yyCompareVal(___sw1644___,21,g_GMLMathEpsilon,false)==0){___swc1645___=0;}switch(___swc1645___){case 0:{switch_controller_support_set_defaults();break;}default :{break;}};}}function gml_Script_s_multicon_init(_inst,_other){ {var ___sw1646___=g_pBuiltIn.get_os_type();var ___swc1647___=-1;if(yyCompareVal(___sw1646___,21,g_GMLMathEpsilon,false)==0){___swc1647___=0;}else if(yyCompareVal(___sw1646___,1,g_GMLMathEpsilon,false)==0){___swc1647___=1;}switch(___swc1647___){case 0:{switch_controller_joycon_set_holdtype(1);switch_controller_set_supported_styles(30);switch_controller_support_set_singleplayer_only(false);switch_controller_support_set_player_min(2);switch_controller_support_set_player_max(2);var gmlresult=switch_controller_support_show(); gml_Script_slogf(_inst,_other,"NX: Controller support result %1",gmlresult);var gmlplayers=switch_controller_support_get_player_count();gml_Script_slogf(_inst,_other,"NX: Player count %1",gmlplayers);if(yyfless(gmlplayers,2)){{gml_Script_s_multicon_reset(_inst,_other);};}else {{gml_Script_s_set_multicon_active(_inst,_other,true);gml_Script_s_set_multicon_turn(_inst,_other);gml_Script_s_refresh_gamepads(_inst,_other);};};break;}case 1:{if(!yyGetBool(gml_Script_s_is_debug_desktop(_inst,_other))){break; };gml_Script_s_set_multicon_active(_inst,_other,true);gml_Script_s_set_multicon_turn(_inst,_other);var gmlslots=gml_Script_s_refresh_gamepads(_inst,_other);if(yyfgreaterequal(gmlslots,2)){{gml_Script_s_set_multicon_turn(_inst,_other);};}else {{gml_Script_s_multicon_reset(_inst,_other);};};break;}default :{gml_Script_slogf(_inst,_other,"DBG: Testing multi controller support");break;}};}}function gml_Script_s_refresh_gamepads(_inst,_other){{if(yyGetBool(global.gmlbrowser)){return;};var gmlslot=0;yyInst(_inst, _other,global.gmlgp_1).gmlslot=(-1);yyInst(_inst,_other,global.gmlgp_2).gmlslot=(-1);var gmli=0;for(;yyfless(gmli,gamepad_get_device_count());(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{if(yyGetBool(gml_Script_s_gamepad_is_fingerprint_sensor(_inst,_other,gmli))){continue;};if(yyGetBool(gamepad_is_connected(gmli))){{gml_Script_slogf(_inst,_other,"gp slot %1 is %2",yyfplus(__yy_gml_errCheck(gmlslot),1),gmli);var ___sw1648___=gmlslot;var ___swc1649___=-1; if(yyCompareVal(___sw1648___,0,g_GMLMathEpsilon,false)==0){___swc1649___=0;}else if(yyCompareVal(___sw1648___,1,g_GMLMathEpsilon,false)==0){___swc1649___=1;}switch(___swc1649___){case 0:{yyInst(_inst,_other,global.gmlgp_1).gmlslot=gmli;yyInst(_inst,_other,global.gmlgp_1).gmlaxisl_v_dir=gml_Script_s_gamepad_lv_dir(_inst,_other,gmli);break;}case 1:{yyInst(_inst,_other,global.gmlgp_2).gmlslot=gmli;yyInst(_inst,_other,global.gmlgp_2).gmlaxisl_v_dir=gml_Script_s_gamepad_lv_dir(_inst,_other,gmli);break;} };(g_yyPrePostObject__=gmlslot,gmlslot=(g_yyPrePostObject__ instanceof Long?gmlslot.add(1):++gmlslot),g_yyPrePostObject__);};};}};if(yyfgreater(gmlslot,0)){{global.gmlgamepad=true;global.gmlgp=global.gmlgp_1;};};gml_Script_slogf(_inst,_other,"gp_1:%1 gp_2:%2 gp:%3",yyInst(_inst,_other,global.gmlgp_1).gmlslot,yyInst(_inst,_other,global.gmlgp_2).gmlslot,yyInst(_inst,_other,global.gmlgp).gmlslot);return gmlslot;}}function gml_Script_s_gamepad_lv_dir(_inst,_other,argument0){{if(!yyGetBool(gml_Script_s_is_debug_desktop(_inst, _other))){return 1;};if(yyfequal(gamepad_get_description(argument0),"SteelSeries Nimbus")){return(-1);};return 1;}}function gml_Script_s_set_multicon_active(_inst,_other,argument0){{yyInst(_inst,_other,global.gmlgp_mp).gmlsingle=!yyGetBool(argument0);}}function gml_Script_s_set_multicon_turn(_inst,_other,argument0){{if(!yyGetBool(gml_Script_s_is_multicon(_inst,_other))){return;};if(yyGetBool(is_undefined(argument0))){argument0=0;};yyInst(_inst,_other,global.gmlgp_mp).gmlturn=argument0;gml_Script_slogf(_inst, _other,"Setting turn: %1",argument0);}}function gml_Script_s_multicon_save_turn(_inst,_other){{yyInst(_inst,_other,global.gmlgp_mp).gmlturn_save=yyInst(_inst,_other,global.gmlgp_mp).gmlturn;}}function gml_Script_s_multicon_restore_turn(_inst,_other){{yyInst(_inst,_other,global.gmlgp_mp).gmlturn=yyInst(_inst,_other,global.gmlgp_mp).gmlturn_save;}}function gml_Script_s_is_turn(_inst,_other,argument0){{{var __yy__v1953=GetWithArray(global.gmlgp_mp);for(var __yy__v1954 in __yy__v1953){if(!__yy__v1953.hasOwnProperty(__yy__v1954))continue; var __yy__v1955=__yy__v1953[__yy__v1954];{if((yyGetBool(yyfequal(__yy__v1955.gmlturn,0)))||(yyGetBool(yyfequal(yyInst(_inst,_other,argument0).id,__yy__v1955.gmlturn)))||(yyGetBool(gml_Script_s_is_paused_or_just_unpaused(__yy__v1955,_inst)))){return true;};return false;}}};}}function gml_Script_s_is_multicon(_inst,_other){{return(yyGetBool(global.gmlgamepad))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,global.gmlgp_mp).gmlsingle)));}}function gml_Script_s_get_multicon_current_pad(_inst,_other){{var ___sw1650___=yyInst(_inst, _other,global.gmlgp_mp).gmlturn;var ___swc1651___=-1;if(yyCompareVal(___sw1650___,1,g_GMLMathEpsilon,false)==0){___swc1651___=0;}switch(___swc1651___){case 0:{return global.gmlgp_2;}default :{return global.gmlgp_1;}};}}function gml_Script_s_set_multicon_touch(_inst,_other,argument0){{{var __yy__v1956=GetWithArray(global.gmlgp_mp);for(var __yy__v1957 in __yy__v1956){if(!__yy__v1956.hasOwnProperty(__yy__v1957))continue;var __yy__v1958=__yy__v1956[__yy__v1957];{__yy__v1958.gmltouch=argument0;}}};}}function gml_Script_s_is_touch_allowed(_inst, _other){{if(!yyGetBool(global.gmlgamepad)){return true;};{var __yy__v1959=GetWithArray(global.gmlgp_mp);for(var __yy__v1960 in __yy__v1959){if(!__yy__v1959.hasOwnProperty(__yy__v1960))continue;var __yy__v1961=__yy__v1959[__yy__v1960];return(yyGetBool(__yy__v1961.gmltouch))&&(yyGetBool(__yy__v1961.gmlsingle));}};}}function gml_Script_s_is_ui_selected(_inst,_other){{if(yyGetBool(global.gmlgamepad)){{if(yyGetBool(gml_Script_s_is_multicon(_inst,_other))){{if(yyfequal(yyInst(_inst,_other,global.gmlgp_1).gmlui_selected, _inst.id)){return true;};if(yyfequal(yyInst(_inst,_other,global.gmlgp_2).gmlui_selected,_inst.id)){return true;};};}else {{if(yyfequal(yyInst(_inst,_other,global.gmlgp).gmlui_selected,_inst.id)){return true;};};};};};return false;}}function gml_Script_s_ui_selected_color(_inst,_other){{if(yyGetBool(global.gmlgamepad)){{if(yyGetBool(gml_Script_s_is_multicon(_inst,_other))){{if((yyGetBool(yyfequal(yyInst(_inst,_other,global.gmlgp_1).gmlui_selected,_inst.id)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,global.gmlgp_2).gmlui_selected, _inst.id)))){return 65535;};if(yyfequal(yyInst(_inst,_other,global.gmlgp_1).gmlui_selected,_inst.id)){return 255;};if(yyfequal(yyInst(_inst,_other,global.gmlgp_2).gmlui_selected,_inst.id)){return 65280;};};}else {{if(yyfequal(yyInst(_inst,_other,global.gmlgp).gmlui_selected,_inst.id)){return 255;};};};};};return 16777215;}}function gml_GlobalScript_s_find_default_button(_inst,_other){(_inst.gmls_find_default_button=__yy_method(_inst,gml_Script_s_find_default_button));}function gml_Script_s_find_default_button(_inst, _other,argument0,argument1){{if(yyfequal(argument1,_inst.undefined)){argument1=global.gmlgp_1;};}{if(!yyGetBool(global.gmlgamepad)){return;};if(yyGetBool(argument0)){yyInst(_inst,_other,argument1).gmlui_selected=(-4);};if((yyGetBool(yyfnotequal(g_pBuiltIn.get_current_room(),YYASSET_REF(0x03000002))))&&(yyGetBool((yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlintro))||(yyGetBool(yyfequal(g_pBuiltIn.get_current_room(),YYASSET_REF(0x03000000))))))){{{var __yy__v1962=GetWithArray(YYASSET_REF(0x00000023)); for(var __yy__v1963 in __yy__v1962){if(!__yy__v1962.hasOwnProperty(__yy__v1963))continue;var __yy__v1964=__yy__v1962[__yy__v1963];{if(!yyGetBool(__yy__v1964.visible)){continue;};if((yyGetBool(__yy__v1964.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(__yy__v1964.layer))))){continue;};if((yyGetBool(variable_instance_exists(__yy__v1964.id,"active")))&&(yyGetBool(!yyGetBool(__yy__v1964.gmlactive)))){continue;};if((yyGetBool(instance_exists(YYASSET_REF(0x0000004F))))&&(yyGetBool(yyfgreater(__yy__v1964.depth, yyInst(_inst,_other,YYASSET_REF(0x0000004F)).depth)))){continue;};if((yyGetBool(variable_instance_exists(__yy__v1964.id,"gp_mapped_button")))&&(yyGetBool(yyfnotequal(__yy__v1964.gmlgp_mapped_button,(-1))))){continue;};if(yyfequal(yyfbitand(__yy_gml_errCheck(yyInst(_inst,_other,argument1).id),__yy_gml_errCheck(__yy__v1964.gmlgp_allowed)),0)){continue;};var gmlsname=script_get_name(__yy__v1964.gmlonClickAction);if(yyGetBool(__yy__v1964.gmlflash)){{yyInst(_inst,_other,argument1).gmlui_selected=__yy__v1964.id; return;};}else {{var ___sw1656___=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"saveslot");var ___swc1657___=-1;if(yyCompareVal(___sw1656___,2,g_GMLMathEpsilon,false)==0){___swc1657___=1;}else if(yyCompareVal(___sw1656___,3,g_GMLMathEpsilon,false)==0){___swc1657___=2;}else if(yyCompareVal(___sw1656___,4,g_GMLMathEpsilon,false)==0){___swc1657___=3;}else if(yyCompareVal(___sw1656___,5,g_GMLMathEpsilon,false)==0){___swc1657___=4;}switch(___swc1657___){default :{if(yyGetBool(string_count("_LoadSlot1", gmlsname))){{yyInst(_inst,_other,argument1).gmlui_selected=__yy__v1964.id;return;};};break;}case 1:{if(yyGetBool(string_count("_LoadSlot2",gmlsname))){{yyInst(_inst,_other,argument1).gmlui_selected=__yy__v1964.id;return;};};break;}case 2:{if(yyGetBool(string_count("_LoadSlot3",gmlsname))){{yyInst(_inst,_other,argument1).gmlui_selected=__yy__v1964.id;return;};};break;}case 3:{if(yyGetBool(string_count("_LoadSlot4",gmlsname))){{yyInst(_inst,_other,argument1).gmlui_selected=__yy__v1964.id;return;};};break; }case 4:{if(yyGetBool(string_count("_LoadSlot5",gmlsname))){{yyInst(_inst,_other,argument1).gmlui_selected=__yy__v1964.id;return;};};break;}};};};}}};};};var ___sw1658___=g_pBuiltIn.get_current_room();var ___swc1659___=-1;if(yyCompareVal(___sw1658___,YYASSET_REF(0x0300000A),g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1658___,YYASSET_REF(0x0300000D),g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1658___,YYASSET_REF(0x0300000C),g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1658___,YYASSET_REF(0x0300000B), g_GMLMathEpsilon,false)==0){___swc1659___=0;}switch(___swc1659___){case 0:{{var __yy__v1965=GetWithArray(YYASSET_REF(0x00000023));for(var __yy__v1966 in __yy__v1965){if(!__yy__v1965.hasOwnProperty(__yy__v1966))continue;var __yy__v1967=__yy__v1965[__yy__v1966];{if(yyfequal(__yy__v1967.gmlcolour,global.gmlc_primary)){{yyInst(_inst,_other,argument1).gmlui_selected=__yy__v1967.id;return;};};}}};break;}};var gmllsi=gml_Script_s_get_last_selected(_inst,_other,g_pBuiltIn.get_current_room());if(yyfnotequal(gmllsi, (-1))){{gml_Script_slog(_inst,_other,yyfplus("last selected: ",__yy_gml_errCheck(string(gmllsi))));{var __yy__v1968=GetWithArray(YYASSET_REF(0x00000023));for(var __yy__v1969 in __yy__v1968){if(!__yy__v1968.hasOwnProperty(__yy__v1969))continue;var __yy__v1970=__yy__v1968[__yy__v1969];{if(!yyGetBool(__yy__v1970.visible)){continue;};if((yyGetBool(__yy__v1970.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(__yy__v1970.layer))))){continue;};if((yyGetBool(variable_instance_exists(__yy__v1970.id,"active")))&&(yyGetBool(!yyGetBool(__yy__v1970.gmlactive)))){ continue;};if((yyGetBool(instance_exists(YYASSET_REF(0x0000004F))))&&(yyGetBool(yyfgreater(__yy__v1970.depth,yyInst(_inst,_other,YYASSET_REF(0x0000004F)).depth)))){continue;};if((yyGetBool(variable_instance_exists(__yy__v1970.id,"gp_mapped_button")))&&(yyGetBool(yyfnotequal(__yy__v1970.gmlgp_mapped_button,(-1))))){continue;};if((yyGetBool(yyInst(_inst,_other,global.gmlcustkb).gmlactive))&&(yyGetBool(!yyGetBool(__yy__v1970.gmlgp_active_editing)))){continue;};if(yyfequal(yyfbitand(__yy_gml_errCheck(yyInst(_inst, _other,argument1).id),__yy_gml_errCheck(__yy__v1970.gmlgp_allowed)),0)){continue;};if(yyfequal(gmllsi,__yy__v1970.id)){{yyInst(_inst,_other,argument1).gmlui_selected=__yy__v1970.id;return;};};}}};{var __yy__v1971=GetWithArray(YYASSET_REF(0x00000048));for(var __yy__v1972 in __yy__v1971){if(!__yy__v1971.hasOwnProperty(__yy__v1972))continue;var __yy__v1973=__yy__v1971[__yy__v1972];{if(!yyGetBool(__yy__v1973.visible)){continue;};if((yyGetBool(__yy__v1973.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(__yy__v1973.layer))))){ continue;};if(yyfequal(yyfbitand(__yy_gml_errCheck(yyInst(_inst,_other,argument1).id),__yy_gml_errCheck(__yy__v1973.gmlgp_allowed)),0)){continue;};if(yyfequal(gmllsi,__yy__v1973.id)){{yyInst(_inst,_other,argument1).gmlui_selected=__yy__v1973.id;return;};};}}};{var __yy__v1974=GetWithArray(YYASSET_REF(0x00000028));for(var __yy__v1975 in __yy__v1974){if(!__yy__v1974.hasOwnProperty(__yy__v1975))continue;var __yy__v1976=__yy__v1974[__yy__v1975];{if(!yyGetBool(__yy__v1976.visible)){continue;};if((yyGetBool(__yy__v1976.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(__yy__v1976.layer))))){ continue;};if(yyfequal(yyfbitand(__yy_gml_errCheck(yyInst(_inst,_other,argument1).id),__yy_gml_errCheck(__yy__v1976.gmlgp_allowed)),0)){continue;};if(yyfequal(gmllsi,__yy__v1976.id)){{yyInst(_inst,_other,argument1).gmlui_selected=__yy__v1976.id;return;};};}}};};};{var __yy__v1977=GetWithArray(YYASSET_REF(0x00000014));for(var __yy__v1978 in __yy__v1977){if(!__yy__v1977.hasOwnProperty(__yy__v1978))continue;var __yy__v1979=__yy__v1977[__yy__v1978];{if(!yyGetBool(__yy__v1979.visible)){continue;};if((yyGetBool(__yy__v1979.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(__yy__v1979.layer))))){ continue;};if((yyGetBool(variable_instance_exists(__yy__v1979.id,"active")))&&(yyGetBool(!yyGetBool(__yy__v1979.gmlactive)))){continue;};if((yyGetBool(instance_exists(YYASSET_REF(0x0000004F))))&&(yyGetBool(yyfgreater(__yy__v1979.depth,yyInst(_inst,_other,YYASSET_REF(0x0000004F)).depth)))){continue;};if((yyGetBool(variable_instance_exists(__yy__v1979.id,"gp_mapped_button")))&&(yyGetBool(yyfnotequal(__yy__v1979.gmlgp_mapped_button,(-1))))){continue;};if((yyGetBool(yyInst(_inst,_other,global.gmlcustkb).gmlactive))&&(yyGetBool(!yyGetBool(__yy__v1979.gmlgp_active_editing)))){ continue;};if(yyfequal(yyfbitand(__yy_gml_errCheck(yyInst(_inst,_other,argument1).id),__yy_gml_errCheck(__yy__v1979.gmlgp_allowed)),0)){continue;};if(!yyGetBool(yyInst(_inst,_other,global.gmlcustkb).gmlactive)){continue;};if((yyGetBool(yyfequal(yyInst(_inst,_other,global.gmlcustkb).gmldefault_key,__yy__v1979.id)))||(yyGetBool(yyfequal(__yy__v1979.gmlimage,YYASSET_REF(0x01000091))))){{yyInst(_inst,_other,argument1).gmlui_selected=__yy__v1979.id;return;};};}}};{var __yy__v1980=GetWithArray(YYASSET_REF(0x00000023)); for(var __yy__v1981 in __yy__v1980){if(!__yy__v1980.hasOwnProperty(__yy__v1981))continue;var __yy__v1982=__yy__v1980[__yy__v1981];{if(!yyGetBool(__yy__v1982.visible)){continue;};if((yyGetBool(__yy__v1982.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(__yy__v1982.layer))))){continue;};if((yyGetBool(variable_instance_exists(__yy__v1982.id,"active")))&&(yyGetBool(!yyGetBool(__yy__v1982.gmlactive)))){continue;};if((yyGetBool(instance_exists(YYASSET_REF(0x0000004F))))&&(yyGetBool(yyfgreater(__yy__v1982.depth, yyInst(_inst,_other,YYASSET_REF(0x0000004F)).depth)))){continue;};if((yyGetBool(variable_instance_exists(__yy__v1982.id,"gp_mapped_button")))&&(yyGetBool(yyfnotequal(__yy__v1982.gmlgp_mapped_button,(-1))))){continue;};if((yyGetBool(yyInst(_inst,_other,global.gmlcustkb).gmlactive))&&(yyGetBool(!yyGetBool(__yy__v1982.gmlgp_active_editing)))){continue;};if(yyfequal(yyfbitand(__yy_gml_errCheck(yyInst(_inst,_other,argument1).id),__yy_gml_errCheck(__yy__v1982.gmlgp_allowed)),0)){continue;};var gmlsname=script_get_name(__yy__v1982.gmlonClickAction); if((yyGetBool(string_count("_Continue",gmlsname)))||(yyGetBool(string_count("_Back",gmlsname)))||(yyGetBool(string_count("s_do_postmatch_dilemma",gmlsname)))||(yyGetBool(yyfequal(__yy__v1982.gmlonClickAction,kgml_Script_btn_response_1pt)))){{yyInst(_inst,_other,argument1).gmlui_selected=__yy__v1982.id;return;};};}}};{var __yy__v1983=GetWithArray(YYASSET_REF(0x00000023));for(var __yy__v1984 in __yy__v1983){if(!__yy__v1983.hasOwnProperty(__yy__v1984))continue;var __yy__v1985=__yy__v1983[__yy__v1984];{if(!yyGetBool(__yy__v1985.visible)){ continue;};if((yyGetBool(__yy__v1985.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(__yy__v1985.layer))))){continue;};if((yyGetBool(variable_instance_exists(__yy__v1985.id,"active")))&&(yyGetBool(!yyGetBool(__yy__v1985.gmlactive)))){continue;};if((yyGetBool(instance_exists(YYASSET_REF(0x0000004F))))&&(yyGetBool(yyfgreater(__yy__v1985.depth,yyInst(_inst,_other,YYASSET_REF(0x0000004F)).depth)))){continue;};if((yyGetBool(variable_instance_exists(__yy__v1985.id,"gp_mapped_button")))&&(yyGetBool(yyfnotequal(__yy__v1985.gmlgp_mapped_button, (-1))))){continue;};if((yyGetBool(yyInst(_inst,_other,global.gmlcustkb).gmlactive))&&(yyGetBool(!yyGetBool(__yy__v1985.gmlgp_active_editing)))){continue;};if(yyfequal(yyfbitand(__yy_gml_errCheck(yyInst(_inst,_other,argument1).id),__yy_gml_errCheck(__yy__v1985.gmlgp_allowed)),0)){continue;};var gmlsname=script_get_name(__yy__v1985.gmlonClickAction);if((yyGetBool(string_count("Home",gmlsname)))||(yyGetBool(string_count("Back",gmlsname)))||(yyGetBool(string_count("Done",gmlsname)))||(yyGetBool(string_count("btn_click_HallOfFame", gmlsname)))||(yyGetBool(string_count("s_msg_clear",gmlsname)))||(yyGetBool(string_count("_no",gmlsname)))||(yyGetBool(string_count("_ChooseAFC",gmlsname)))){{yyInst(_inst,_other,argument1).gmlui_selected=__yy__v1985.id;return;};};}}};{var __yy__v1986=GetWithArray(YYASSET_REF(0x00000023));for(var __yy__v1987 in __yy__v1986){if(!__yy__v1986.hasOwnProperty(__yy__v1987))continue;var __yy__v1988=__yy__v1986[__yy__v1987];{if(!yyGetBool(__yy__v1988.visible)){continue;};if((yyGetBool(__yy__v1988.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(__yy__v1988.layer))))){ continue;};if((yyGetBool(variable_instance_exists(__yy__v1988.id,"active")))&&(yyGetBool(!yyGetBool(__yy__v1988.gmlactive)))){continue;};if((yyGetBool(instance_exists(YYASSET_REF(0x0000004F))))&&(yyGetBool(yyfgreater(__yy__v1988.depth,yyInst(_inst,_other,YYASSET_REF(0x0000004F)).depth)))){continue;};if((yyGetBool(variable_instance_exists(__yy__v1988.id,"gp_mapped_button")))&&(yyGetBool(yyfnotequal(__yy__v1988.gmlgp_mapped_button,(-1))))){continue;};if((yyGetBool(yyInst(_inst,_other,global.gmlcustkb).gmlactive))&&(yyGetBool(!yyGetBool(__yy__v1988.gmlgp_active_editing)))){ continue;};if(yyfequal(yyfbitand(__yy_gml_errCheck(yyInst(_inst,_other,argument1).id),__yy_gml_errCheck(__yy__v1988.gmlgp_allowed)),0)){continue;};yyInst(_inst,_other,argument1).gmlui_selected=__yy__v1988.id;return;}}};{var __yy__v1989=GetWithArray(YYASSET_REF(0x00000022));for(var __yy__v1990 in __yy__v1989){if(!__yy__v1989.hasOwnProperty(__yy__v1990))continue;var __yy__v1991=__yy__v1989[__yy__v1990];{if(!yyGetBool(__yy__v1991.visible)){continue;};if((yyGetBool(__yy__v1991.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(__yy__v1991.layer))))){ continue;};if((yyGetBool(variable_instance_exists(__yy__v1991.id,"active")))&&(yyGetBool(!yyGetBool(__yy__v1991.gmlactive)))){continue;};if((yyGetBool(instance_exists(YYASSET_REF(0x0000004F))))&&(yyGetBool(yyfgreater(__yy__v1991.depth,yyInst(_inst,_other,YYASSET_REF(0x0000004F)).depth)))){continue;};if((yyGetBool(variable_instance_exists(__yy__v1991.id,"gp_mapped_button")))&&(yyGetBool(yyfnotequal(__yy__v1991.gmlgp_mapped_button,(-1))))){continue;};if(!yyGetBool(variable_instance_exists(__yy__v1991.id, "onClickAction"))){continue;};if((yyGetBool(yyInst(_inst,_other,global.gmlcustkb).gmlactive))&&(yyGetBool(!yyGetBool(__yy__v1991.gmlgp_active_editing)))){continue;};if(yyfequal(yyfbitand(__yy_gml_errCheck(yyInst(_inst,_other,argument1).id),__yy_gml_errCheck(__yy__v1991.gmlgp_allowed)),0)){continue;};yyInst(_inst,_other,argument1).gmlui_selected=__yy__v1991.id;return;}}};}}function gml_GlobalScript_s_get_watermarked_stats(_inst,_other,argument0){(_inst.gmls_get_watermarked_stats=__yy_method(_inst, gml_Script_s_get_watermarked_stats));}function gml_Script_s_get_watermarked_stats(_inst,_other,argument0){{var gmlpmap=argument0;var gmlpos=ds_map_find_value(gmlpmap,"position");var gmlgms=string(ds_map_find_value(gmlpmap,"season_games"));var gmlcgms=string(ds_map_find_value(gmlpmap,"career_games"));var gmlatt=string(ds_map_find_value(gmlpmap,"season_attempts"));var gmlcmp=string(ds_map_find_value(gmlpmap,"season_complete"));var gmlyds=string(round(ds_map_find_value(gmlpmap,"season_yards")));var gmlavg=gml_Script_s_get_string_float(_inst, _other,gml_Script_s_get_average_yards(_inst,_other,gmlpmap,1,false),1);var gmllng=string(round(ds_map_find_value(gmlpmap,"season_longest")));var gmltds=string(ds_map_find_value(gmlpmap,"season_touchdowns"));var gmlfum=string(ds_map_find_value(gmlpmap,"season_fumbles"));var gmltck=string(ds_map_find_value(gmlpmap,"season_tackles"));var gmlint=string(ds_map_find_value(gmlpmap,"season_int"));var gmlsck=string(ds_map_find_value(gmlpmap,"season_sacks"));var gmlr_att=string(ds_map_find_value(gmlpmap,"season_rush_attempts")); var gmlr_yds=string(round(ds_map_find_value(gmlpmap,"season_rush_yards")));var gmlr_avg=gml_Script_s_get_string_float(_inst,_other,gml_Script_s_get_average_yards(_inst,_other,gmlpmap,1,true),1);var gmlr_lng=string(round(ds_map_find_value(gmlpmap,"season_rush_longest")));var gmlr_tds=string(ds_map_find_value(gmlpmap,"season_rush_touchdowns"));var gmlstr=yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_position(_inst,_other,ds_map_find_value(gmlpmap,"position")))," ");if(yyfequal(gmlpos,10)){gmlstr="KK "; };gmlstr=yyfplus(gmlstr,yyfplus(yyfplus(yyfplus("G",__yy_gml_errCheck(gmlgms)),"/"),__yy_gml_errCheck(gmlcgms)));var ___sw1662___=gmlpos;var ___swc1663___=-1;if(yyCompareVal(___sw1662___,1,g_GMLMathEpsilon,false)==0){___swc1663___=0;}else if(yyCompareVal(___sw1662___,2,g_GMLMathEpsilon,false)==0){___swc1663___=1;}else if(yyCompareVal(___sw1662___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1662___,4,g_GMLMathEpsilon,false)==0){___swc1663___=2;}else if(yyCompareVal(___sw1662___,10,g_GMLMathEpsilon, false)==0){___swc1663___=3;}else if(yyCompareVal(___sw1662___,5,g_GMLMathEpsilon,false)==0){___swc1663___=4;}switch(___swc1663___){case 0:{gmlstr=yyfplus(gmlstr,yyfplus(yyfplus(yyfplus(" AC:",__yy_gml_errCheck(gmlatt)),"/"),__yy_gml_errCheck(gmlcmp)));gmlstr=yyfplus(gmlstr,yyfplus(yyfplus(yyfplus(" Y:",__yy_gml_errCheck(gmlyds)),"/"),__yy_gml_errCheck(gmlr_yds)));gmlstr=yyfplus(gmlstr,yyfplus(yyfplus(yyfplus(" TD:",__yy_gml_errCheck(gmltds)),"/"),__yy_gml_errCheck(gmlr_tds)));gmlstr=yyfplus(gmlstr, yyfplus(yyfplus(yyfplus(" TO:",__yy_gml_errCheck(gmlint)),"/"),__yy_gml_errCheck(gmlfum)));gmlstr=yyfplus(gmlstr,yyfplus(" SK:",__yy_gml_errCheck(gmlsck)));break;}case 1:{gmlstr=yyfplus(gmlstr,yyfplus(yyfplus(yyfplus(" TC:",__yy_gml_errCheck(gmlatt)),"/"),__yy_gml_errCheck(gmlr_att)));gmlstr=yyfplus(gmlstr,yyfplus(yyfplus(yyfplus(" Y:",__yy_gml_errCheck(gmlyds)),"/"),__yy_gml_errCheck(gmlr_yds)));gmlstr=yyfplus(gmlstr,yyfplus(yyfplus(yyfplus(" TD:",__yy_gml_errCheck(gmltds)),"/"),__yy_gml_errCheck(gmlr_tds))); gmlstr=yyfplus(gmlstr,yyfplus(" FM:",__yy_gml_errCheck(gmlfum)));break;}case 2:{gmlstr=yyfplus(gmlstr,yyfplus(" R:",__yy_gml_errCheck(gmlatt)));gmlstr=yyfplus(gmlstr,yyfplus(" Y:",__yy_gml_errCheck(gmlyds)));gmlstr=yyfplus(gmlstr,yyfplus(" TD:",__yy_gml_errCheck(gmltds)));gmlstr=yyfplus(gmlstr,yyfplus(" AV:",__yy_gml_errCheck(gmlavg)));gmlstr=yyfplus(gmlstr,yyfplus(" FM:",__yy_gml_errCheck(gmlfum)));break;}case 3:{gmlstr=yyfplus(gmlstr,yyfplus(yyfplus(yyfplus(" AC:",__yy_gml_errCheck(gmlatt)), "/"),__yy_gml_errCheck(gmlcmp)));gmlstr=yyfplus(gmlstr,yyfplus(" YD:",__yy_gml_errCheck(gmlyds)));break;}case 4:{gmlstr=yyfplus(gmlstr,yyfplus(" BL:",__yy_gml_errCheck(gmltck)));break;}default :{gmlstr=yyfplus(gmlstr,yyfplus(" TK:",__yy_gml_errCheck(gmltck)));gmlstr=yyfplus(gmlstr,yyfplus(" SK:",__yy_gml_errCheck(gmlsck)));gmlstr=yyfplus(gmlstr,yyfplus(" IN:",__yy_gml_errCheck(gmlint)));gmlstr=yyfplus(gmlstr,yyfplus(" FF:",__yy_gml_errCheck(gmlfum)));break;}};return gmlstr;}}function gml_GlobalScript_s_get_qb_energy(_inst, _other){(_inst.gmls_get_qb_energy=__yy_method(_inst,gml_Script_s_get_qb_energy));}function gml_Script_s_get_qb_energy(_inst,_other){{if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode,0)){{return 0;};};var gmlpmap=gml_Script_s_get_qb_pmap(_inst,_other);if(yyGetBool(gmlpmap)){return real(ds_map_find_value(gmlpmap,"condition"));}else {return 0;};}}function gml_GlobalScript_btn_click_external_links(_inst,_other){(_inst.gmlbtn_click_BuyMerch=__yy_method(_inst,gml_Script_btn_click_BuyMerch)); (_inst.gmlbtn_click_MusicBy=__yy_method(_inst,gml_Script_btn_click_MusicBy));(_inst.gmlbtn_click_YouTube=__yy_method(_inst,gml_Script_btn_click_YouTube));(_inst.gmlbtn_click_RecordBook=__yy_method(_inst,gml_Script_btn_click_RecordBook));(_inst.gmlbtn_click_Leagues=__yy_method(_inst,gml_Script_btn_click_Leagues));(_inst.gmlbtn_click_ad_NSS=__yy_method(_inst,gml_Script_btn_click_ad_NSS));(_inst.gmlbtn_click_ad_NSM=__yy_method(_inst,gml_Script_btn_click_ad_NSM));(_inst.gmlbtn_click_ad_RG=__yy_method(_inst, gml_Script_btn_click_ad_RG));(_inst.gmlbtn_click_ad_NSB=__yy_method(_inst,gml_Script_btn_click_ad_NSB));(_inst.gmlbtn_click_ad_RB=__yy_method(_inst,gml_Script_btn_click_ad_RB));(_inst.gmlbtn_click_ad_GP=__yy_method(_inst,gml_Script_btn_click_ad_GP));(_inst.gmlbtn_click_NewStarGames=__yy_method(_inst,gml_Script_btn_click_NewStarGames));}function gml_Script_btn_click_BuyMerch(_inst,_other){{url_open_ext(global.gmlurl_merch_tshirts,"_blank");}}function gml_Script_btn_click_MusicBy(_inst,_other){{url_open_ext(global.gmlurl_heatley_bros, "_blank");}}function gml_Script_btn_click_YouTube(_inst,_other){{url_open_ext(global.gmlurl_jefe_zhai,"_blank");}}function gml_Script_btn_click_RecordBook(_inst,_other){{url_open_ext(global.gmlurl_record_book,"_blank");}}function gml_Script_btn_click_Leagues(_inst,_other){{url_open_ext(global.gmlurl_leagues,"_blank");}}function gml_Script_btn_click_ad_NSS(_inst,_other){{var ___sw1676___=g_pBuiltIn.get_os_type();var ___swc1677___=-1;if(yyCompareVal(___sw1676___,3,g_GMLMathEpsilon,false)==0){___swc1677___=0; }else if(yyCompareVal(___sw1676___,4,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1676___,0,g_GMLMathEpsilon,false)==0){___swc1677___=1;}switch(___swc1677___){case 0:{url_open_ext(global.gmlurl_apple_nss,"_blank");break;break;}case 1:{url_open_ext(global.gmlurl_google_nss,"_blank");break;break;}};}}function gml_Script_btn_click_ad_NSM(_inst,_other){{var ___sw1678___=g_pBuiltIn.get_os_type();var ___swc1679___=-1;if(yyCompareVal(___sw1678___,3,g_GMLMathEpsilon,false)==0){___swc1679___=0;}else if(yyCompareVal(___sw1678___, 4,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1678___,0,g_GMLMathEpsilon,false)==0){___swc1679___=1;}switch(___swc1679___){case 0:{url_open_ext(global.gmlurl_apple_nsm,"_blank");break;break;}case 1:{url_open_ext(global.gmlurl_google_nsm,"_blank");break;break;}};}}function gml_Script_btn_click_ad_RG(_inst,_other){{var ___sw1680___=g_pBuiltIn.get_os_type();var ___swc1681___=-1;if(yyCompareVal(___sw1680___,3,g_GMLMathEpsilon,false)==0){___swc1681___=0;}else if(yyCompareVal(___sw1680___,4,g_GMLMathEpsilon, false)==0||yyCompareVal(___sw1680___,0,g_GMLMathEpsilon,false)==0){___swc1681___=1;}switch(___swc1681___){case 0:{url_open_ext(global.gmlurl_apple_retrogoal,"_blank");break;break;}case 1:{url_open_ext(global.gmlurl_google_retrogoal,"_blank");break;break;}};}}function gml_Script_btn_click_ad_NSB(_inst,_other){{var ___sw1682___=g_pBuiltIn.get_os_type();var ___swc1683___=-1;if(yyCompareVal(___sw1682___,3,g_GMLMathEpsilon,false)==0){___swc1683___=0;}else if(yyCompareVal(___sw1682___,4,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1682___, 0,g_GMLMathEpsilon,false)==0){___swc1683___=1;}switch(___swc1683___){case 0:{url_open_ext(global.gmlurl_apple_nsb,"_blank");break;break;}case 1:{url_open_ext(global.gmlurl_google_nsb,"_blank");break;break;}};}}function gml_Script_btn_click_ad_RB(_inst,_other){{var ___sw1684___=g_pBuiltIn.get_os_type();var ___swc1685___=-1;if(yyCompareVal(___sw1684___,3,g_GMLMathEpsilon,false)==0){___swc1685___=0;}else if(yyCompareVal(___sw1684___,4,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1684___,0,g_GMLMathEpsilon, false)==0){___swc1685___=1;}switch(___swc1685___){case 0:{url_open_ext(global.gmlurl_apple_retrobowl,"_blank");break;break;}case 1:{url_open_ext(global.gmlurl_google_retrobowl,"_blank");break;break;}};}}function gml_Script_btn_click_ad_GP(_inst,_other){{var ___sw1686___=g_pBuiltIn.get_os_type();var ___swc1687___=-1;if(yyCompareVal(___sw1686___,3,g_GMLMathEpsilon,false)==0){___swc1687___=0;}else if(yyCompareVal(___sw1686___,4,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1686___,0,g_GMLMathEpsilon,false)==0){ ___swc1687___=1;}switch(___swc1687___){case 0:{url_open_ext(global.gmlurl_apple_gp,"_blank");break;break;}case 1:{url_open_ext(global.gmlurl_google_gp,"_blank");break;break;}};}}function gml_Script_btn_click_NewStarGames(_inst,_other){{url_open_ext("https://www.newstargames.com","_blank");}}function gml_GlobalScript_s_do_prematch_dilemma_qb(_inst,_other){(_inst.gmls_do_prematch_dilemma_qb=__yy_method(_inst,gml_Script_s_do_prematch_dilemma_qb));}function gml_Script_s_do_prematch_dilemma_qb(_inst,_other){ {{var __yy__v1992=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1993 in __yy__v1992){if(!__yy__v1992.hasOwnProperty(__yy__v1993))continue;var __yy__v1994=__yy__v1992[__yy__v1993];{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlprematch_dilemma_done=true;if(!yyGetBool(gml_Script_s_get_human_fixture_next(__yy__v1994,_inst))){return false;};if((yyGetBool(yyfequal(__yy__v1994.gmlyear,1)))&&(yyGetBool(yyfequal(__yy__v1994.gmlweek,1)))){{gml_Script_s_add_news_dyn(__yy__v1994,_inst,"web",gml_Script_s_str(__yy__v1994, _inst,"news_qb_pregame1"),gml_Script_s_get_qb_pmap(__yy__v1994,_inst),true);return true;};};var gmlmsg="";var gmlpmap=gml_Script_s_get_random_player(__yy__v1994,_inst,true);var gmlsmap=gml_Script_s_get_staff(__yy__v1994,_inst,101);var gmldilemmas=ds_list_create();if((yyGetBool(irandom(2)))&&(yyGetBool(yyfgreater(__yy__v1994.gmlyear,1)))){{ds_list_add(gmldilemmas,"dilemma_Owner");if(yyGetBool(gmlpmap)){{if(yyGetBool(gml_Script_s_is_offensive_player(__yy__v1994,_inst,gmlpmap))){gmlsmap=gml_Script_s_get_staff(__yy__v1994, _inst,102);};if((yyGetBool(!yyGetBool(gml_Script_s_player_benched(__yy__v1994,_inst,gmlpmap))))&&(yyGetBool(yyfgreater(ds_map_find_value(gmlpmap,"condition"),0)))&&(yyGetBool(yyfless(ds_map_find_value(gmlpmap,"condition"),20)))&&(yyGetBool(yyfless(__yy__v1994.gmlweek,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular)))){ds_list_add(gmldilemmas,"dilemma_RestPlayer");};if(yyflessequal(ds_map_find_value(gmlpmap,"attitude"),30)){ds_list_add(gmldilemmas,"dilemma_toxic");};if((yyGetBool(gmlsmap))&&(yyGetBool((yyGetBool(yyflessequal(ds_map_find_value(gmlpmap, "attitude"),30)))||(yyGetBool(yyflessequal(ds_map_find_value(gmlsmap,"attitude"),30)))))){ds_list_add(gmldilemmas,"dilemma_Coach_BustUp");};if(yyflessequal(ds_map_find_value(gmlpmap,"attitude"),60)){ds_list_add(gmldilemmas,"dilemma_late");};if(yyfequal(ds_map_find_value(gmlpmap,"age"),gml_Script_s_rookie_age_internal(__yy__v1994,_inst))){ds_list_add(gmldilemmas,"dilemma_rookie");};if((yyGetBool(yyfgreater(ds_map_find_value(gmlpmap,"attitude"),90)))&&(yyGetBool(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfans, 98)))){ds_list_add(gmldilemmas,"news_CharityWork");}else {ds_list_add(gmldilemmas,"dilemma_random");};};};var gmli=0;for(;yyfless(gmli,ds_list_size(gmldilemmas));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gml_Script_slog(__yy__v1994,_inst,yyfplus("List: ",__yy_gml_errCheck(ds_list_find_value(gmldilemmas,gmli))));}};ds_list_shuffle(gmldilemmas);gmlmsg=gml_Script_s_choose_dilemma(__yy__v1994,_inst,ds_list_find_value(gmldilemmas,0));gml_Script_slog(__yy__v1994, _inst,yyfplus("s_do_prematch_dilemma: ",__yy_gml_errCheck(gmlmsg)));};};if(yyGetBool(string_count("dilemma_",gmlmsg))){{ds_map_destroy(__yy__v1994.gmlmap_dilemma);__yy__v1994.gmlmap_dilemma=(-1);__yy__v1994.gmlmap_dilemma=gml_Script_s_parse_dilemma(__yy__v1994,_inst,gmlmsg,gmlpmap,"ui_Dilemma");yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile=gmlpmap;gml_Script_s_create_dilemma(__yy__v1994,_inst,__yy__v1994.gmlmap_dilemma);ds_list_destroy(gmldilemmas);gmldilemmas=(-1);return true;}; }else {if(yyGetBool(string_count("news_",gmlmsg))){{if(yyGetBool(string_count("news_CharityWork",gmlmsg))){{gmlmsg=gml_Script_s_parse_player_message(__yy__v1994,_inst,gml_Script_s_str(__yy__v1994,_inst,gmlmsg),gmlpmap);gml_Script_s_meter_change(__yy__v1994,_inst,1,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfans,g_pBuiltIn.get_current_room(),gmlmsg);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfans=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfans,2);};}else {{gmlmsg=gml_Script_s_parse_player_message(__yy__v1994, _inst,gml_Script_s_str(__yy__v1994,_inst,gmlmsg),gmlpmap);gml_Script_s_create_message(__yy__v1994,_inst,gml_Script_s_str(__yy__v1994,_inst,"ui_News"),gmlmsg,gml_Script_s_str(__yy__v1994,_inst,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};};ds_list_destroy(gmldilemmas);gmldilemmas=(-1);return true;};};};ds_list_destroy(gmldilemmas);gmldilemmas=(-1);return false;}}};}}function gml_GlobalScript_s_sound_audience_catch(_inst,_other){(_inst.gmls_sound_audience_catch=__yy_method(_inst, gml_Script_s_sound_audience_catch));}function gml_Script_s_sound_audience_catch(_inst,_other){{if((yyGetBool(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))))||(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice))){return;};var gmlsnd=audio_play_sound(YYASSET_REF(0x02000002),1,false);audio_sound_pitch(gmlsnd,random_range(0.9,1));audio_sound_gain(gmlsnd,0,2000);}}function gml_GlobalScript_s_college_overtime(_inst,_other){(_inst.gmls_college_overtime_start=__yy_method(_inst, gml_Script_s_college_overtime_start));(_inst.gmls_college_overtime_handle_play_end=__yy_method(_inst,gml_Script_s_college_overtime_handle_play_end));(_inst.gmls_college_overtime_setup_new_possesion=__yy_method(_inst,gml_Script_s_college_overtime_setup_new_possesion));(_inst.gmls_college_overtime_offer_kick=__yy_method(_inst,gml_Script_s_college_overtime_offer_kick));(_inst.gmls_college_overtime_next_round=__yy_method(_inst,gml_Script_s_college_overtime_next_round));(_inst.gmls_college_overtime_possession_count=__yy_method(_inst, gml_Script_s_college_overtime_possession_count));(_inst.gmls_college_overtime_one_team_won=__yy_method(_inst,gml_Script_s_college_overtime_one_team_won));(_inst.gmls_college_overtime_other_teams_turn=__yy_method(_inst,gml_Script_s_college_overtime_other_teams_turn));(_inst.gmls_college_overtime_trigger_point_conversion=__yy_method(_inst,gml_Script_s_college_overtime_trigger_point_conversion));(_inst.gmls_college_overtime_flip_possession=__yy_method(_inst,gml_Script_s_college_overtime_flip_possession)); (_inst.gmls_college_overtime_score_hack=__yy_method(_inst,gml_Script_s_college_overtime_score_hack));(_inst.gmls_co_poss_str=__yy_method(_inst,gml_Script_s_co_poss_str));(_inst.gmlbtn_click_toggle_college_overtime_debug=__yy_method(_inst,gml_Script_btn_click_toggle_college_overtime_debug));(_inst.gmls_refresh_btn_overtime_text=__yy_method(_inst,gml_Script_s_refresh_btn_overtime_text));}function gml_Script_s_college_overtime_start(_inst,_other){{gml_Script_slog(_inst,_other,"s_college_overtime_start"); gml_Script_slog(_inst,_other,"OT !");gml_Script_slog(_inst,_other,"OT !!!");gml_Script_slog(_inst,_other,"OT !!!!!!!!!!!!!!!!!");gml_Script_slog(_inst,_other," ");_inst.gmlcollege_overtime=true;_inst.gmlcollege_overtime_round=1;_inst.gmlpossession=irandom(1);_inst.gmlcollege_overtime_possession=_inst.gmlpossession;gml_Script_s_college_overtime_setup_new_possesion(_inst,_other);gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus("s_college_overtime_start[",__yy_gml_errCheck(string(_inst.gmlcollege_overtime_round))), "] possesion["),__yy_gml_errCheck(gml_Script_s_co_poss_str(_inst,_other,_inst.gmlpossession))),"]"));}}function gml_Script_s_college_overtime_handle_play_end(_inst,_other){{gml_Script_slog(_inst,_other," s_college_overtime_handle_play_end");gml_Script_s_college_overtime_score_hack(_inst,_other);if(yyGetBool(gml_Script_s_both_teams_had_possession(_inst,_other))){{if(yyfequal(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlpossession,_inst.gmlteam_score)],_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlpossession)?1:0, _inst.gmlteam_score)])){{gml_Script_s_college_overtime_next_round(_inst,_other);};}else {{gml_Script_s_college_overtime_one_team_won(_inst,_other);};};};}else {{gml_Script_s_college_overtime_other_teams_turn(_inst,_other);};};}}function gml_Script_s_college_overtime_setup_new_possesion(_inst,_other){{gml_Script_slog(_inst,_other," s_college_overtime_setup_new_possesion");_inst.gmlscrimmage=25;_inst.gmlyards=10;_inst.gmlcomm_stage=2;if((yyGetBool(!yyGetBool(gml_Script_s_simming_action(_inst,_other))))&&(yyGetBool(yyfequal(_inst.gmlpossession, _inst.gmlhuman_team)))){{var gmlhuman_points_behind=yyfminus(__yy_gml_errCheck(_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlhuman_team)?1:0,_inst.gmlteam_score)]),__yy_gml_errCheck(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlhuman_team,_inst.gmlteam_score)]));gml_Script_slog(_inst,_other,yyfplus(yyfplus("s_college_overtime_setup_new_possesion: human_points_behind[",__yy_gml_errCheck(string(gmlhuman_points_behind))),"]"));if((yyGetBool(yyflessequal(_inst.gmlcollege_overtime_round, 2)))&&(yyGetBool(yyflessequal(gmlhuman_points_behind,3)))){{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"matchmsg_kickorattack"),gml_Script_s_str(_inst,_other,"match_co_kick"),gml_Script_s_str(_inst,_other,"match_co_attack"),kgml_Script_btn_response_fg_yes,kgml_Script_btn_response_2pt,16777215,0.7);};};};};if(yyfgreaterequal(_inst.gmlcollege_overtime_round,3)){{_inst.gmlcomm_stage=15;};};}}function gml_Script_s_college_overtime_offer_kick(_inst,_other){{gml_Script_slog(_inst, _other,"s_college_overtime_offer_kick: ");if(yyfequal(_inst.gmlcollege_overtime,false)){{gml_Script_slog(_inst,_other,"F:0");return false;};};if(yyGetBool(gml_Script_s_simming_action(_inst,_other))){{gml_Script_slog(_inst,_other,"F:1");return false;};};if(yyfnotequal(_inst.gmlpossession,_inst.gmlhuman_team)){{gml_Script_slog(_inst,_other,"F:2");return false;};};if(yyfgreater(_inst.gmlcollege_overtime_round,2)){{gml_Script_slog(_inst,_other,"F:3");return false;};};if(yyfequal(_inst.gmldown,1)){{gml_Script_slog(_inst, _other,"F:4");return false;};};var gmlpos_count=gml_Script_s_college_overtime_possession_count(_inst,_other);gml_Script_slog(_inst,_other,yyfplus(yyfplus("s_college_overtime_offer_kick: pos_count[",__yy_gml_errCheck(string(gmlpos_count))),"]"));if(yyfequal(gmlpos_count,1)){{if(yyfequal(_inst.gmldown,4)){{gml_Script_slog(_inst,_other,"T:0");return true;};};};}else {{var gmlhuman_points_behind=yyfminus(__yy_gml_errCheck(_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlhuman_team)?1:0, _inst.gmlteam_score)]),__yy_gml_errCheck(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlhuman_team,_inst.gmlteam_score)]));gml_Script_slog(_inst,_other,yyfplus(yyfplus("s_college_overtime_offer_kick: human_points_behind[",__yy_gml_errCheck(string(gmlhuman_points_behind))),"]"));if(yyflessequal(gmlhuman_points_behind,3)){{gml_Script_slog(_inst,_other,"T:1");return true;};};};};gml_Script_slog(_inst,_other,"F:4");return false;}}function gml_Script_s_college_overtime_next_round(_inst,_other){ {gml_Script_slog(_inst,_other,"s_college_overtime_next_round");gml_Script_slog(_inst,_other,"OT !");gml_Script_slog(_inst,_other,"OT !!!");gml_Script_slog(_inst,_other,"OT !!!!!!!!!!!!!!!!!");gml_Script_slog(_inst,_other," ");_inst.gmlcollege_overtime_round=yyfplus(_inst.gmlcollege_overtime_round,1);_inst.gmlhad_ot_possession=__yy_gml_array_check(_inst.gmlhad_ot_possession,1346804767);_inst.gmlhad_ot_possession[__yy_gml_array_check_index_set(0)]=0;_inst.gmlhad_ot_possession[__yy_gml_array_check_index_set(1)]=0; gml_Script_slog(_inst,_other,yyfplus(yyfplus(" s_college_overtime_next_round college_overtime_round:[",__yy_gml_errCheck(string(_inst.gmlcollege_overtime_round))),"]"));gml_Script_s_college_overtime_setup_new_possesion(_inst,_other);}}function gml_Script_s_college_overtime_possession_count(_inst,_other){{var gmlc=0;if(yyfequal(_inst.gmlhad_ot_possession[__yy_gml_array_check_index(0,_inst.gmlhad_ot_possession)],1)){{gmlc=yyfplus(gmlc,1);};};if(yyfequal(_inst.gmlhad_ot_possession[__yy_gml_array_check_index(1, _inst.gmlhad_ot_possession)],1)){{gmlc=yyfplus(gmlc,1);};};return gmlc;}}function gml_Script_s_college_overtime_one_team_won(_inst,_other){{gml_Script_slog(_inst,_other," s_college_overtime_one_team_won");_inst.gmlcomm_stage=17;}}function gml_Script_s_college_overtime_other_teams_turn(_inst,_other){{gml_Script_slog(_inst,_other,"s_college_overtime_other_teams_turn");gml_Script_slog(_inst,_other,"OT !!!!!!!!!!!!!!!!!");gml_Script_slog(_inst,_other," ");gml_Script_s_college_overtime_flip_possession(_inst, _other,true);gml_Script_s_college_overtime_setup_new_possesion(_inst,_other);}}function gml_Script_s_college_overtime_trigger_point_conversion(_inst,_other){{gml_Script_slog(_inst,_other,yyfplus(yyfplus(" s_college_overtime_trigger_point_conversion college_overtime_round:[",__yy_gml_errCheck(string(_inst.gmlcollege_overtime_round))),"]"));_inst.gmldown=6;if(yyfequal(_inst.gmlcollege_overtime_round,1)){{gml_Script_slog(_inst,_other," s_college_overtime_trigger_point_conversion... ASK 2P or 1P");gml_Script_s_create_message(_inst, _other,"",gml_Script_s_str(_inst,_other,"matchmsg_PATor2"),gml_Script_s_str(_inst,_other,"match_1pt"),gml_Script_s_str(_inst,_other,"match_2pt"),kgml_Script_btn_response_1pt,kgml_Script_btn_response_2pt,16777215,0.7);};}else {{gml_Script_slog(_inst,_other," s_college_overtime_trigger_point_conversion... DIRECT 2P");};};}}function gml_Script_s_college_overtime_flip_possession(_inst,_other,argument0){{if(yyGetBool(argument0)){{_inst.gmlcollege_overtime_possession=!yyGetBool(_inst.gmlcollege_overtime_possession); };};gml_Script_s_force_possession(_inst,_other,_inst.gmlcollege_overtime_possession);gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus("s_college_overtime_flip_possession (cot_poss:",__yy_gml_errCheck(gml_Script_s_co_poss_str(_inst,_other,_inst.gmlcollege_overtime_possession))),") (poss:"),__yy_gml_errCheck(gml_Script_s_co_poss_str(_inst,_other,_inst.gmlpossession))),")"));}}function gml_Script_s_college_overtime_score_hack(_inst,_other){{if(yyfequal(global.gmldebug_co_overtime,0)){{return; };};if(yyfless(_inst.gmlquarter,4)){{_inst.gmlquarter=4;};};var gmlsHackTrig="N/A";var gmldoHack=false;if((yyGetBool(yyfgreaterequal(_inst.gmlquarter,4)))&&(yyGetBool(yyfless(_inst.gmlcollege_overtime_round,1)))&&(yyGetBool(yyfnotequal(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlhuman_team,_inst.gmlteam_score)],_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlhuman_team)?1:0,_inst.gmlteam_score)])))){{gmldoHack=true;gmlsHackTrig="A";};};if((yyGetBool(yyfequal(gmldoHack, false)))&&(yyGetBool(irandom(1)))){{gmldoHack=true;gmlsHackTrig="B";};};if(yyfequal(global.gmldebug_co_overtime,2)){{gmldoHack=true;gmlsHackTrig="C";};};if(yyGetBool(gmldoHack)){{gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("HACK FORCING TIE SCORES ot_count[",__yy_gml_errCheck(string(_inst.gmlcollege_overtime_round))),"] global.debug_co_overtime["),__yy_gml_errCheck(string(global.gmldebug_co_overtime))),"] sHackTrig["),__yy_gml_errCheck(gmlsHackTrig)),"]"));var gmlm=max(_inst.gmlteam_score[__yy_gml_array_check_index(_inst.gmlhuman_team, _inst.gmlteam_score)],_inst.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(_inst.gmlhuman_team)?1:0,_inst.gmlteam_score)]);_inst.gmlteam_score=__yy_gml_array_check(_inst.gmlteam_score,4137727317);_inst.gmlteam_score[__yy_gml_array_check_index_set(_inst.gmlhuman_team)]=gmlm;_inst.gmlteam_score[__yy_gml_array_check_index_set(!yyGetBool(_inst.gmlhuman_team)?1:0)]=gmlm;};}else {{gml_Script_slog(_inst,_other,"NO HACK - Scores unnafected");};};}}function gml_Script_s_co_poss_str(_inst,_other,argument0){ {if(yyfequal(argument0,_inst.gmlhuman_team)){{return "HUMAN";};};return "AI";}}function gml_Script_btn_click_toggle_college_overtime_debug(_inst,_other){{global.gmldebug_co_overtime=yyfplus(global.gmldebug_co_overtime,1);if(yyfgreater(global.gmldebug_co_overtime,2)){{global.gmldebug_co_overtime=0;};};gml_Script_s_refresh_btn_overtime_text(_inst,_other);}}function gml_Script_s_refresh_btn_overtime_text(_inst,_other){{var ___sw1690___=global.gmldebug_co_overtime;var ___swc1691___=-1;if(yyCompareVal(___sw1690___, 0,g_GMLMathEpsilon,false)==0){___swc1691___=0;}else if(yyCompareVal(___sw1690___,1,g_GMLMathEpsilon,false)==0){___swc1691___=1;}else if(yyCompareVal(___sw1690___,2,g_GMLMathEpsilon,false)==0){___swc1691___=2;}switch(___swc1691___){case 0:{{yyInst(_inst,_other,100401).gmltext="DEB. OT: N";break;};}case 1:{{yyInst(_inst,_other,100401).gmltext="DEB. OT: Y";break;};}case 2:{{yyInst(_inst,_other,100401).gmltext="DEB. OT: L";break;};}};}}function gml_GlobalScript_s_player_gpa(_inst,_other,argument0){(_inst.gmls_gpa_from_percent_grade=__yy_method(_inst, gml_Script_s_gpa_from_percent_grade));(_inst.gmls_gpa_string=__yy_method(_inst,gml_Script_s_gpa_string));(_inst.gmls_gpa_string_direct=__yy_method(_inst,gml_Script_s_gpa_string_direct));(_inst.gmls_decay_percent_grade=__yy_method(_inst,gml_Script_s_decay_percent_grade));(_inst.gmls_debug_recover_percent_grade=__yy_method(_inst,gml_Script_s_debug_recover_percent_grade));(_inst.gmls_post_match_gpa_refresh=__yy_method(_inst,gml_Script_s_post_match_gpa_refresh));(_inst.gmls_add_percent_grade=__yy_method(_inst, gml_Script_s_add_percent_grade));(_inst.gmls_get_decay=__yy_method(_inst,gml_Script_s_get_decay));(_inst.gmls_get_decay_info=__yy_method(_inst,gml_Script_s_get_decay_info));(_inst.gmls_refresh_suspended=__yy_method(_inst,gml_Script_s_refresh_suspended));(_inst.gmls_get_percent_grade_squad=__yy_method(_inst,gml_Script_s_get_percent_grade_squad));(_inst.gmlbtn_click_Boost_GPA=__yy_method(_inst,gml_Script_btn_click_Boost_GPA));(_inst.gmlbtn_response_boost_gpa=__yy_method(_inst,gml_Script_btn_response_boost_gpa)); (_inst.gmls_my_team_academics=__yy_method(_inst,gml_Script_s_my_team_academics));(_inst.gmls_player_grade_suspend=__yy_method(_inst,gml_Script_s_player_grade_suspend));(_inst.gmls_player_grade_suspend_from_age=__yy_method(_inst,gml_Script_s_player_grade_suspend_from_age));(_inst.gmls_player_grade_lift_suspension=__yy_method(_inst,gml_Script_s_player_grade_lift_suspension));(_inst.gmls_gpa_step_from_percent_grade=__yy_method(_inst,gml_Script_s_gpa_step_from_percent_grade));(_inst.gmls_percent_grade_from_gpa_step_UPPER=__yy_method(_inst, gml_Script_s_percent_grade_from_gpa_step_UPPER));(_inst.gmls_player_gpa_color=__yy_method(_inst,gml_Script_s_player_gpa_color));(_inst.gmls_player_gpa_colors_info=__yy_method(_inst,gml_Script_s_player_gpa_colors_info));}function gml_Script_s_gpa_from_percent_grade(_inst,_other,argument0){{if(yyfless(argument0,65)){{return 0;};};if(yyflessequal(argument0,66)){{return 1;};};if(yyflessequal(argument0,69)){{return 1.3;};};if(yyflessequal(argument0,72)){{return 1.7;};};if(yyflessequal(argument0,76)){{return 2; };};if(yyflessequal(argument0,79)){{return 2.3;};};if(yyflessequal(argument0,82)){{return 2.7;};};if(yyflessequal(argument0,86)){{return 3;};};if(yyflessequal(argument0,89)){{return 3.3;};};if(yyflessequal(argument0,92)){{return 3.7;};};if(yyflessequal(argument0,96)){{return 4;};};return 4;}}function gml_Script_s_gpa_string(_inst,_other,argument0){{return string_format(gml_Script_s_gpa_from_percent_grade(_inst,_other,ds_map_find_value(argument0,"percent_grade")),1,1);}}function gml_Script_s_gpa_string_direct(_inst, _other,argument0){{return string_format(gml_Script_s_gpa_from_percent_grade(_inst,_other,argument0),1,1);}}function gml_Script_s_decay_percent_grade(_inst,_other,argument0){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{return;};};gml_Script_s_add_percent_grade(_inst,_other,argument0,yyftime((-1),__yy_gml_errCheck(gml_Script_s_get_decay(_inst,_other,argument0))));}}function gml_Script_s_debug_recover_percent_grade(_inst,_other,argument0){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){ {return;};};gml_Script_s_add_percent_grade(_inst,_other,argument0,5);}}function gml_Script_s_post_match_gpa_refresh(_inst,_other){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{return;};};var gmlfinishedWeek=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek),1);if(yyfgreater(gmlfinishedWeek,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular)){{gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus("s_post_match_gpa_refresh - Skipped during playoffs w[", __yy_gml_errCheck(string(gmlfinishedWeek))),"] lwr["),__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular))),"]"));return;};};if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlbyeweek_gpaup)){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlbyeweek_gpaup=false;gml_Script_slog(_inst,_other,"s_post_match_gpa_refresh - Skipped for bye-week GPAUP dilemma");return;};};gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus("s_post_match_gpa_refresh w[", __yy_gml_errCheck(string(gmlfinishedWeek))),"] lwr["),__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular))),"]"));{var __yy__v1995=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1996 in __yy__v1995){if(!__yy__v1995.hasOwnProperty(__yy__v1996))continue;var __yy__v1997=__yy__v1995[__yy__v1996];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v1997.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ {var gmlpmap=ds_list_find_value(__yy__v1997.gmlroster,gmli);ds_map_set(gmlpmap,"saved_percent_grade",ds_map_find_value(gmlpmap,"percent_grade"));gml_Script_s_decay_percent_grade(__yy__v1997,_inst,gmlpmap);gml_Script_slog(__yy__v1997,_inst,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))," percent grade decreased from "),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"saved_percent_grade"))))," to "),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap, "percent_grade"))))," or in GPA: "),__yy_gml_errCheck(gml_Script_s_gpa_string_direct(__yy__v1997,_inst,ds_map_find_value(gmlpmap,"percent_grade")))));}};}}};}}function gml_Script_s_add_percent_grade(_inst,_other,argument0,argument1){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{return;};};var gmlminPR=60;var gmlmaxPR=ds_map_find_value(argument0,"max_percent_grade");var gmlwantedPR=yyfplus(__yy_gml_errCheck(ds_map_find_value(argument0,"percent_grade")),__yy_gml_errCheck(argument1));var gmlnewPG=clamp(gmlwantedPR, gmlminPR,gmlmaxPR);gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("s_add_percent_grade . grade boost[",__yy_gml_errCheck(string(argument1))),"] PG["),__yy_gml_errCheck(string(ds_map_find_value(argument0,"percent_grade")))),"/"),__yy_gml_errCheck(gml_Script_s_gpa_string_direct(_inst,_other,ds_map_find_value(argument0,"percent_grade")))),"]->["),__yy_gml_errCheck(string(gmlnewPG))),"/"),__yy_gml_errCheck(gml_Script_s_gpa_string_direct(_inst, _other,gmlnewPG))),"] maxPR["),__yy_gml_errCheck(string(gmlmaxPR))),"] minPR["),__yy_gml_errCheck(string(gmlminPR))),"]"));ds_map_set(argument0,"percent_grade",gmlnewPG);gml_Script_s_refresh_suspended(_inst,_other,argument0,true);}}function gml_Script_s_get_decay(_inst,_other,argument0){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{return 0;};};var gmlpmap=argument0;var gmldecay=0.8;if((yyGetBool(gml_Script_s_player_benched(_inst,_other,gmlpmap)))||(yyGetBool(yyflessequal(ds_map_find_value(gmlpmap, "condition"),(-1))))){{gmldecay=(-2);};}else {{var ___sw1700___=gml_Script_s_get_training_reg(_inst,_other,gmlpmap);var ___swc1701___=-1;if(yyCompareVal(___sw1700___,1,g_GMLMathEpsilon,false)==0){___swc1701___=0;}else if(yyCompareVal(___sw1700___,2,g_GMLMathEpsilon,false)==0){___swc1701___=1;}else if(yyCompareVal(___sw1700___,3,g_GMLMathEpsilon,false)==0){___swc1701___=2;}switch(___swc1701___){case 0:{gmldecay=yyfplus(gmldecay,(-0.5));break;}case 1:{break;}case 2:{gmldecay=yyfplus(gmldecay,1.5);break;}} ;};};return gmldecay;}}function gml_Script_s_get_decay_info(_inst,_other,argument0){{var gmlpmap=argument0;var gmldecayExt="";if((yyGetBool(gml_Script_s_player_benched(_inst,_other,gmlpmap)))||(yyGetBool(yyflessequal(ds_map_find_value(gmlpmap,"condition"),(-1))))){{gmldecayExt=yyfplus(yyfplus("Benched|Injured[",__yy_gml_errCheck(string((-2)))),"]");};}else {{gmldecayExt=yyfplus(yyfplus("Base[",__yy_gml_errCheck(string(0.8))),"] ");var ___sw1702___=gml_Script_s_get_training_reg(_inst,_other,gmlpmap);var ___swc1703___=-1; if(yyCompareVal(___sw1702___,1,g_GMLMathEpsilon,false)==0){___swc1703___=0;}else if(yyCompareVal(___sw1702___,2,g_GMLMathEpsilon,false)==0){___swc1703___=1;}else if(yyCompareVal(___sw1702___,3,g_GMLMathEpsilon,false)==0){___swc1703___=2;}switch(___swc1703___){case 0:{gmldecayExt=yyfplus(gmldecayExt,yyfplus(yyfplus(" Train(L)[",__yy_gml_errCheck(string((-0.5)))),"]"));break;}case 1:{break;}case 2:{gmldecayExt=yyfplus(gmldecayExt,yyfplus(yyfplus(" Train(H)[",__yy_gml_errCheck(string(1.5))),"]"));break; }};};};var gmlmsg=yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("Percent[",__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"percent_grade")))),"%]->GPA["),__yy_gml_errCheck(string(gml_Script_s_gpa_from_percent_grade(_inst,_other,ds_map_find_value(gmlpmap,"percent_grade"))))),"] MAX Grade["),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"max_percent_grade")))),"]");gmlmsg=yyfplus(gmlmsg,yyfplus(yyfplus(yyfplus(yyfplus(" Decay:",__yy_gml_errCheck(string(gml_Script_s_get_decay(_inst,_other, gmlpmap)))),"("),__yy_gml_errCheck(gmldecayExt)),")"));gmlmsg=yyfplus(gmlmsg,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(" Suspend (Player):",__yy_gml_errCheck(string(gml_Script_s_player_grade_suspend(_inst,_other,gmlpmap)))),"% Lift Susp:"),__yy_gml_errCheck(string(gml_Script_s_player_grade_lift_suspension(_inst,_other,gmlpmap)))),"% ")," (Academics:"),__yy_gml_errCheck(string(gml_Script_s_my_team_academics(_inst,_other)))),")"));gmlmsg=yyfplus(gmlmsg,yyfplus(" ",__yy_gml_errCheck(gml_Script_s_player_gpa_colors_info(_inst, _other,gmlpmap))));return gmlmsg;}}function gml_Script_s_refresh_suspended(_inst,_other,argument0,argument1){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{return;};};var gmlwasSus=ds_map_find_value(argument0,"suspended");if(yyflessequal(ds_map_find_value(argument0,"percent_grade"),gml_Script_s_player_grade_suspend(_inst,_other,argument0))){{gml_Script_slog(_inst,_other,"Suspended!");ds_map_set(argument0,"suspended",1);};};if(yyfgreaterequal(ds_map_find_value(argument0,"percent_grade"),gml_Script_s_player_grade_lift_suspension(_inst, _other,argument0))){{gml_Script_slog(_inst,_other,"Un-Suspended!");ds_map_set(argument0,"suspended",0);};};if(yyGetBool(argument1)){{if((yyGetBool(yyfequal(gmlwasSus,0)))&&(yyGetBool(yyfequal(ds_map_find_value(argument0,"suspended"),1)))){{gml_Script_slog(_inst,_other,"s_refresh_suspended - Adding suspension news");gml_Script_s_add_news_if_new(_inst,_other,gml_Script_s_parse_player_message(_inst,_other,gml_Script_s_str(_inst,_other,"msg_Suspended"),argument0));};};if((yyGetBool(yyfequal(gmlwasSus, 1)))&&(yyGetBool(yyfequal(ds_map_find_value(argument0,"suspended"),0)))){{gml_Script_slog(_inst,_other,"s_refresh_suspended - remove suspension news");gml_Script_s_remove_news(_inst,_other,gml_Script_s_parse_player_message(_inst,_other,gml_Script_s_str(_inst,_other,"msg_Suspended"),argument0));};};};};}}function gml_Script_s_get_percent_grade_squad(_inst,_other){{var gmlcon=0;{var __yy__v1998=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v1999 in __yy__v1998){if(!__yy__v1998.hasOwnProperty(__yy__v1999))continue; var __yy__v2000=__yy__v1998[__yy__v1999];{var gmlsize=0;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v2000.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v2000.gmlroster,gmli);if(yyfgreater(ds_map_find_value(gmlpmap,"percent_grade"),0)){{gmlcon=yyfplus(gmlcon,ds_map_find_value(gmlpmap,"percent_grade"));(g_yyPrePostObject__=gmlsize,gmlsize=(g_yyPrePostObject__ instanceof Long?gmlsize.add(1):++gmlsize), g_yyPrePostObject__);};};}};if(yyfgreater(gmlsize,0)){gmlcon=yyfdivide(gmlcon,gmlsize);};return round(gmlcon);}}};}}function gml_Script_btn_click_Boost_GPA(_inst,_other){{if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlboost_gpa_done)){{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_BoostGPAAlreadyDone"),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};}else {if(yyfgreater(25,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit)){ {var gmlmsg=gml_Script_s_str(_inst,_other,"msg_BoostGPANoCredit");gmlmsg=string_replace(gmlmsg,"$num",string(25));gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};}else {{var gmlmsg=gml_Script_s_str(_inst,_other,"msg_BoostGPA");gmlmsg=string_replace(gmlmsg,"$num",string(25));gml_Script_s_create_message(_inst,_other,"",gmlmsg,gml_Script_s_str(_inst,_other,"ui_No"),gml_Script_s_str(_inst,_other,"ui_Yes"), kgml_Script_s_msg_clear,kgml_Script_btn_response_boost_gpa,global.gmlc_background,1);};};};}}function gml_Script_btn_response_boost_gpa(_inst,_other){{gml_Script_s_msg_clear(_inst,_other);{var __yy__v2001=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v2002 in __yy__v2001){if(!__yy__v2001.hasOwnProperty(__yy__v2002))continue;var __yy__v2003=__yy__v2001[__yy__v2002];{__yy__v2003.gmlboost_gpa_done=true;__yy__v2003.gmlcoach_credit=yyfminus(__yy__v2003.gmlcoach_credit,25);if(yyfless(__yy__v2003.gmlcoach_credit, 0)){__yy__v2003.gmlcoach_credit=0;};var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v2003.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{gml_Script_s_add_percent_grade(__yy__v2003,_inst,ds_list_find_value(__yy__v2003.gmlroster,gmli),20);}};gml_Script_s_team_halve_all_party_meters(__yy__v2003,_inst);gml_Script_s_create_message(__yy__v2003,_inst,"",gml_Script_s_str(__yy__v2003,_inst,yyfplus("msg_BoostGPAEvent",__yy_gml_errCheck(string(irandom(5))))), gml_Script_s_str(__yy__v2003,_inst,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);}}};}}function gml_Script_s_my_team_academics(_inst,_other){{var gmltmap=gml_Script_s_get_team_by_id(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id);if(yyGetBool(is_undefined(gmltmap))){{return 0;};};return ds_map_find_value(gmltmap,"academics");}}function gml_Script_s_player_grade_suspend(_inst,_other,argument0){{var gmlage=ds_map_find_value(argument0,"age");return gml_Script_s_player_grade_suspend_from_age(_inst, _other,gmlage);}}function gml_Script_s_player_grade_suspend_from_age(_inst,_other,argument0){{var gmlacademics=gml_Script_s_my_team_academics(_inst,_other);var ___sw1704___=gmlacademics;var ___swc1705___=-1;if(yyCompareVal(___sw1704___,0,g_GMLMathEpsilon,false)==0){___swc1705___=0;}else if(yyCompareVal(___sw1704___,1,g_GMLMathEpsilon,false)==0){___swc1705___=1;}else if(yyCompareVal(___sw1704___,2,g_GMLMathEpsilon,false)==0){___swc1705___=2;}else if(yyCompareVal(___sw1704___,3,g_GMLMathEpsilon,false)==0){ ___swc1705___=3;}switch(___swc1705___){case 0:{{if(yyfequal(argument0,gml_Script_s_rookie_age_internal(_inst,_other))){{return 64;};};if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),1))){{return 64;};};if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),2))){{return 66;};};if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),3))){{return 66;};};};}case 1:{{if(yyfequal(argument0, gml_Script_s_rookie_age_internal(_inst,_other))){{return 64;};};if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),1))){{return 66;};};if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),2))){{return 69;};};if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),3))){{return 69;};};};}case 2:{{if(yyfequal(argument0,gml_Script_s_rookie_age_internal(_inst,_other))){{return 64; };};if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),1))){{return 69;};};if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),2))){{return 72;};};if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),3))){{return 72;};};};}case 3:{{if(yyfequal(argument0,gml_Script_s_rookie_age_internal(_inst,_other))){{return 66;};};if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst, _other)),1))){{return 72;};};if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),2))){{return 76;};};if(yyfequal(argument0,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(_inst,_other)),3))){{return 76;};};};}};gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus("ERROR! Unexpected team academics(",__yy_gml_errCheck(string(gmlacademics))),") range is 0-3 or player age("),__yy_gml_errCheck(string(argument0))),")"));return 60;}}function gml_Script_s_player_grade_lift_suspension(_inst, _other){{var gmlacademics=gml_Script_s_my_team_academics(_inst,_other);var ___sw1706___=gmlacademics;var ___swc1707___=-1;if(yyCompareVal(___sw1706___,0,g_GMLMathEpsilon,false)==0){___swc1707___=0;}else if(yyCompareVal(___sw1706___,1,g_GMLMathEpsilon,false)==0){___swc1707___=1;}else if(yyCompareVal(___sw1706___,2,g_GMLMathEpsilon,false)==0){___swc1707___=2;}else if(yyCompareVal(___sw1706___,3,g_GMLMathEpsilon,false)==0){___swc1707___=3;}switch(___swc1707___){case 0:{return 70;}case 1:{return 73;}case 2:{return 76; }case 3:{return 80;}};gml_Script_slog(_inst,_other,yyfplus(yyfplus("ERROR! Unexpected team academics(",__yy_gml_errCheck(string(gmlacademics))),") range is 0-3"));return 70;}}function gml_Script_s_gpa_step_from_percent_grade(_inst,_other,argument0){{if(yyfless(argument0,65)){{return 0;};};if(yyflessequal(argument0,66)){{return 1;};};if(yyflessequal(argument0,69)){{return 2;};};if(yyflessequal(argument0,72)){{return 3;};};if(yyflessequal(argument0,76)){{return 4;};};if(yyflessequal(argument0,79)){{return 5; };};if(yyflessequal(argument0,82)){{return 6;};};if(yyflessequal(argument0,86)){{return 7;};};if(yyflessequal(argument0,89)){{return 8;};};if(yyflessequal(argument0,92)){{return 9;};};if(yyflessequal(argument0,96)){{return 10;};};return 10;}}function gml_Script_s_percent_grade_from_gpa_step_UPPER(_inst,_other,argument0){{if(yyfequal(argument0,0)){{return 64;};};if(yyfequal(argument0,1)){{return 66;};};if(yyfequal(argument0,2)){{return 69;};};if(yyfequal(argument0,3)){{return 72;};};if(yyfequal(argument0,4)){ {return 76;};};if(yyfequal(argument0,5)){{return 79;};};if(yyfequal(argument0,6)){{return 82;};};if(yyfequal(argument0,7)){{return 86;};};if(yyfequal(argument0,8)){{return 89;};};if(yyfequal(argument0,9)){{return 92;};};if(yyfequal(argument0,10)){{return 96;};};return 10;}}function gml_Script_s_player_gpa_color(_inst,_other,argument0){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{return 16777215;};};var gmlpPG=ds_map_find_value(argument0,"percent_grade");var gmlsusPG=gml_Script_s_player_grade_suspend(_inst, _other,argument0);var gmlpSt=gml_Script_s_gpa_step_from_percent_grade(_inst,_other,gmlpPG);var gmlsusSt=gml_Script_s_gpa_step_from_percent_grade(_inst,_other,gmlsusPG);if(yyfgreaterequal(gmlpSt,6)){{return 16777215;};};if(yyflessequal(gmlpSt,gmlsusSt)){{return 255;};};if(yyflessequal(gmlpSt,yyfplus(__yy_gml_errCheck(gmlsusSt),1))){{return 4235519;};};if(yyflessequal(gmlpSt,yyfplus(__yy_gml_errCheck(gmlsusSt),3))){{return 65535;};};return 16777215;}}function gml_Script_s_player_gpa_colors_info(_inst,_other, argument0){{var gmlpPG=ds_map_find_value(argument0,"percent_grade");var gmlsusPG=gml_Script_s_player_grade_suspend(_inst,_other,argument0);var gmlpSt=gml_Script_s_gpa_step_from_percent_grade(_inst,_other,gmlpPG);var gmlsusSt=gml_Script_s_gpa_step_from_percent_grade(_inst,_other,gmlsusPG);var gmls=yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("Colors grade[",__yy_gml_errCheck(string(gmlpPG))),"|"),__yy_gml_errCheck(string(gmlpSt))),"] susGrade["),__yy_gml_errCheck(string(gmlsusPG))), "|"),__yy_gml_errCheck(string(gmlsusSt))),"] ");gmls=yyfplus(gmls,yyfplus(yyfplus("RED[",__yy_gml_errCheck(string(gml_Script_s_percent_grade_from_gpa_step_UPPER(_inst,_other,gmlsusSt)))),"] "));gmls=yyfplus(gmls,yyfplus(yyfplus("ORANGE[",__yy_gml_errCheck(string(gml_Script_s_percent_grade_from_gpa_step_UPPER(_inst,_other,yyfplus(__yy_gml_errCheck(gmlsusSt),1))))),"] "));gmls=yyfplus(gmls,yyfplus(yyfplus("YELLOW[",__yy_gml_errCheck(string(gml_Script_s_percent_grade_from_gpa_step_UPPER(_inst,_other, yyfplus(__yy_gml_errCheck(gmlsusSt),3))))),"]"));return gmls;}}// /// @function canvas_fullscreen(base) // /// @param {int} base The base value for scaling on both axis function gml_GlobalScript_s_canvas_fullscreen(_inst,_other,argument0){(_inst.gmls_canvas_fullscreen=__yy_method(_inst,gml_Script_s_canvas_fullscreen));}function gml_Script_s_canvas_fullscreen(_inst,_other){{var $$args=Array.prototype.slice.call(arguments);{var gml_base=$$args[2+0];var gml_bw=g_pBuiltIn.get_browser_width(); var gml_bh=g_pBuiltIn.get_browser_height();g_pBuiltIn.view_wport[__yy_gml_array_check_index_set(0)]=gml_bw;g_pBuiltIn.view_hport[__yy_gml_array_check_index_set(0)]=gml_bh;window_set_size(gml_bw,gml_bh);window_center();var gml_aspect=yyfdivide(__yy_gml_errCheck(gml_bw),__yy_gml_errCheck(gml_bh));if(yyfless(gml_aspect,1)){{var gml_vw=yyftime(__yy_gml_errCheck(gml_base),__yy_gml_errCheck(gml_aspect));var gml_vh=gml_base;};}else {{gml_vw=gml_base;gml_vh=yyfdivide(__yy_gml_errCheck(gml_base),__yy_gml_errCheck(gml_aspect)); };};camera_set_view_size(g_pBuiltIn.view_camera[__yy_gml_array_check_index(0,g_pBuiltIn.view_camera)],gml_vw,gml_vh);surface_resize(g_pBuiltIn.application_surface,g_pBuiltIn.view_wport[__yy_gml_array_check_index(0,g_pBuiltIn.view_wport)],g_pBuiltIn.view_hport[__yy_gml_array_check_index(0,g_pBuiltIn.view_hport)]);}}}function gml_GlobalScript_s_startup(_inst,_other){(_inst.gmls_startup=__yy_method(_inst,gml_Script_s_startup));(_inst.gmls_startup_welcome_msg=__yy_method(_inst,gml_Script_s_startup_welcome_msg)); (_inst.gmls_startup_set_master_variables=__yy_method(_inst,gml_Script_s_startup_set_master_variables));(_inst.gmls_startup_handle_saved_game=__yy_method(_inst,gml_Script_s_startup_handle_saved_game));(_inst.gmls_startup_college_mode=__yy_method(_inst,gml_Script_s_startup_college_mode));(_inst.gmls_startup_browser=__yy_method(_inst,gml_Script_s_startup_browser));}function gml_Script_s_startup(_inst,_other){{gml_Script_slog(_inst,_other,"------ S_STARTUP ------");;global.gmlg_m=_inst.id;gml_Script_slog(_inst, _other,"s_startup: s_set_up_globals");gml_Script_s_set_up_globals(_inst,_other);_inst.persistent=true;display_set_gui_size(480,270);device_mouse_dbclick_enable(false);randomise();_inst.gmlcanvaswidth=g_pBuiltIn.room_width;_inst.gmlcanvasheight=g_pBuiltIn.room_height;_inst.gmldo_welcome_msg=false;if(!yyGetBool(instance_exists(YYASSET_REF(0x0000000B)))){global.gmlnx=instance_create_layer(0,0,yyInst(_inst,_other,_inst.id).layer,YYASSET_REF(0x0000000B));};gml_Script_slog(_inst,_other,"s_startup: s_load_options"); if(yyGetBool(file_exists(global.gmlg_optionsave))){gml_Script_s_load_options(_inst,_other);}else {gml_Script_s_create_map_options(_inst,_other);};_inst.gmlfr_mode=0;_inst.gmlqb_mode=0;_inst.gmlco_mode=0;{};gml_Script_s_refresh_strings(_inst,_other);gml_Script_slog(_inst,_other,yyfplus("ui_Version_Mode: ",__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Version_Mode"))));gml_Script_slog(_inst,_other,"s_startup: s_startup_welcome_msg");gml_Script_s_startup_welcome_msg(_inst,_other);gml_Script_s_startup_set_master_variables(_inst, _other);gml_Script_s_startup_handle_saved_game(_inst,_other);gml_Script_s_set_up_temp_variables(_inst,_other);gml_Script_slog(_inst,_other,"s_startup: hello");gml_Script_slog(_inst,_other,yyfplus("obj_master: myteam_id = ",__yy_gml_errCheck(string(_inst.gmlmyteam_id))));gml_Script_slog(_inst,_other,yyfplus("obj_master: myteam.uid = ",__yy_gml_errCheck(string(ds_map_find_value(_inst.gmlmyteam,"uid")))));{gml_Script_s_update_music(_inst,_other);};gml_Script_s_fonts_init(_inst,_other);if(yyGetBool(global.gmlbrowser)){ {gml_Script_slog(_inst,_other,"s_startup: global.browser");gml_Script_s_startup_college_mode(_inst,_other);gml_Script_s_startup_browser(_inst,_other);};}else {{gml_Script_slog(_inst,_other,"s_startup: not browser");global.gmllsh=ds_list_create();gml_Script_s_keyboard_custom_init(_inst,_other);gml_Script_s_multiplayer_init(_inst,_other);gml_Script_s_startup_college_mode(_inst,_other);gml_Script_s_title_goto(_inst,_other);};};}}function gml_Script_s_startup_welcome_msg(_inst,_other){{if((yyGetBool(!yyGetBool(global.gmlbrowser)))&&(yyGetBool(yyfless(real(ds_map_find_value(_inst.gmlmap_options, "my_version")),global.gmlg_version)))){{gml_Script_slog(_inst,_other,yyfplus("Current version = ",__yy_gml_errCheck(string(global.gmlg_version))));gml_Script_slog(_inst,_other,yyfplus("My version = ",__yy_gml_errCheck(string(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"my_version")))));{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_Update"),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background, 1);};};};}}function gml_Script_s_startup_set_master_variables(_inst,_other){{_inst.gmldata_version=gml_Script_s_get_build_data_version(_inst,_other,true);_inst.gmlyear_offset=gml_Script_s_get_build_year_offset(_inst,_other,true);if(!yyGetBool(variable_instance_exists(_inst.id,"data_upgraded"))){_inst.gmldata_upgraded=false;};_inst.gmlstart_year=yyfplus(2021,__yy_gml_errCheck(_inst.gmlyear_offset));_inst.gmlyear_stagger=irandom(12);_inst.gmllast_week_regular=14;_inst.gmlfirst_week_playoffs=19;_inst.gmlfirst_week_postseason=15; _inst.gmlextra_weeks_endofseason=2;gml_Script_s_college_shorter_season(_inst,_other);gml_Script_s_set_teams_min_max_ids(_inst,_other);_inst.gmlyear=1;_inst.gmlweek=1;_inst.gmlweek_done=false;_inst.gmlstage=1;_inst.gmlintro=1;_inst.gmlstarrating=50;_inst.gmlrelationship_boss=50;_inst.gmlqb_salary=10;_inst.gmlqb_tdbonus=1;_inst.gmlqb_training_hiscore=0;_inst.gmlqb_nrg=1;_inst.gmlfname="";_inst.gmllname="";_inst.gmlmyteam_id=(-1);_inst.gmlmyface_x=(-1);_inst.gmlmyface_y=(-1);_inst.gmlmy_skin=(-1);_inst.gmlfavourite_team_id=0; _inst.gmlsuppress_difficulty=10;_inst.gmlsalary_cap=150;if(yyGetBool(global.gmlconsole_build)){_inst.gmlsalary_cap=200;};_inst.gmlboost_salary_cap=0;_inst.gmlprematch_dilemma_done=false;_inst.gmlprematch_dilemma_shown_count=0;_inst.gmlprematch_dilemma_chosen_players=ds_list_create();_inst.gmltip_count=1;_inst.gmlmatchcount=0;_inst.gmlgamestarts=0;_inst.gmltimeout_message_done=false;_inst.gmlbullet_throw_message_done=false;_inst.gmltag_hof_message_done=0;_inst.gmltag_kr_message_done=0;_inst.gmlseason_credits_purchased=0; _inst.gmlop_ball=0;_inst.gmlcoach_credit=3;if(yyGetBool(global.gmlconsole_build)){_inst.gmlcoach_credit=15;};_inst.gmlpurchased_credit=0;_inst.gmlcoach_rating=1;_inst.gmlfans=30;_inst.gmlfacility_stadium=1;_inst.gmlfacility_training=1;_inst.gmlfacility_rehab=1;_inst.gmlfacility_upgraded_stadium=0;_inst.gmlfacility_upgraded_training=0;_inst.gmlfacility_upgraded_rehab=0;_inst.gmltraining_reg_df=2;_inst.gmltraining_reg_of=2;_inst.gmlcap_breach_flag=(-2);gml_Script_slog(_inst,_other,yyfplus(yyfplus("s_cap_breach_create[", __yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcap_breach_flag))),"]"));_inst.gmlrecruitment_credits_cap=50;_inst.gmlrecruitment_credits=1;_inst.gmlrc_season_earned=1;_inst.gmlrc_lifetime_earned=1;_inst.gmlrc_season_spent=0;_inst.gmlrc_lifetime_spent=0;if(yyGetBool(global.gmlconsole_build)){_inst.gmlrecruitment_credits_cap=60;};_inst.gmlboost_recruitment_credits_cap=0;_inst.gmlcollege_draft_stage=(-1);_inst.gmlcollege_admissions_draft_round=0;_inst.gmlcollege_admissions_warn_once=1; _inst.gmlcollege_admissions_doing_player_draft_sign=false;_inst.gmlcollege_profile_page_num=1;_inst.gmlcurriculum_tags=ds_list_create();_inst.gmlplayer_cv=ds_list_create();_inst.gmlcollege_awards_done=false;_inst.gmlnon_champ_conferences_resolved=false;_inst.gmlpro_drafted_players=false;_inst.gmlrec_conf_champ_wins=0;_inst.gmlrec_bowl_wins=0;_inst.gmlrec_champ_wins=0;_inst.gmlrec_highest_rank_major=999999;_inst.gmlrec_highest_rank_minor=999999;_inst.gmlbyeweek_gpaup=false;for(var __yy__v2004=0,__yy__v2005=yyGetInt32(3); __yy__v2004<__yy__v2005;__yy__v2004++){{var ___sw1710___=irandom(3);var ___swc1711___=-1;if(yyCompareVal(___sw1710___,0,g_GMLMathEpsilon,false)==0){___swc1711___=0;}else if(yyCompareVal(___sw1710___,1,g_GMLMathEpsilon,false)==0){___swc1711___=1;}else if(yyCompareVal(___sw1710___,2,g_GMLMathEpsilon,false)==0){___swc1711___=2;}else if(yyCompareVal(___sw1710___,3,g_GMLMathEpsilon,false)==0){___swc1711___=3;}switch(___swc1711___){case 0:{(g_yyPrePostObject__=_inst.gmlfacility_stadium,_inst.gmlfacility_stadium=(g_yyPrePostObject__ instanceof Long?_inst.gmlfacility_stadium.add(1):++_inst.gmlfacility_stadium), g_yyPrePostObject__);break;}case 1:{(g_yyPrePostObject__=_inst.gmlfacility_training,_inst.gmlfacility_training=(g_yyPrePostObject__ instanceof Long?_inst.gmlfacility_training.add(1):++_inst.gmlfacility_training),g_yyPrePostObject__);break;}case 2:{(g_yyPrePostObject__=_inst.gmlfacility_rehab,_inst.gmlfacility_rehab=(g_yyPrePostObject__ instanceof Long?_inst.gmlfacility_rehab.add(1):++_inst.gmlfacility_rehab),g_yyPrePostObject__);break;}case 3:{_inst.gmlfans=yyfplus(_inst.gmlfans,10);break;}};}};_inst.gmldraft_round=1; _inst.gmldraft_picks=__yy_gml_array_check(_inst.gmldraft_picks,935272160);_inst.gmldraft_picks[__yy_gml_array_check_index_set(0)]=1;_inst.gmldraft_picks[__yy_gml_array_check_index_set(1)]=1;_inst.gmldraft_picks[__yy_gml_array_check_index_set(2)]=1;_inst.gmldraft_info_done=0;_inst.gmldraft_entered=false;_inst.gmlexpiredcontract_msg_done=false;_inst.gmloffers_done=false;_inst.gmlop_difficulty=0;_inst.gmlop_matchlength=0;_inst.gmlop_autorun=1;_inst.gmlop_autorun_p2=1;}}function gml_Script_s_startup_handle_saved_game(_inst, _other){{_inst.gmlfirst_load=false;var gmlsavename=gml_Script_s_get_savename(_inst,_other);if(yyGetBool(file_exists(gmlsavename))){{gml_Script_slog(_inst,_other,yyfplus(yyfplus("obj_master: s_loadgame(",__yy_gml_errCheck(gmlsavename)),")"));gml_Script_s_loadgame(_inst,_other,gmlsavename);_inst.gmlfirst_load=true;if((yyGetBool(1))&&(yyGetBool(yyfequal(_inst.gmlqb_mode,1)))){{file_delete(gmlsavename);gml_Script_s_create_new_save(_inst,_other);};};};}else {{gml_Script_slog(_inst,_other,"obj_master: s_create_new_save"); gml_Script_s_create_new_save(_inst,_other);};};gml_Script_slog(_inst,_other,yyfplus("obj_master: myteam_id=",__yy_gml_errCheck(string(_inst.gmlmyteam_id))));if(!yyGetBool(ds_exists(_inst.gmlteamlist,2))){{gml_Script_slog(_inst,_other,"obj_master: no teamlist!!!");gml_Script_s_create_new_save(_inst,_other);};}else {if(yyfless(ds_list_size(_inst.gmlteamlist),32)){{gml_Script_slog(_inst,_other,"obj_master: teamlist less than 32!!!");gml_Script_s_create_new_save(_inst,_other);};};};}}function gml_Script_s_startup_college_mode(_inst, _other){{gml_Script_slog(_inst,_other,yyfplus(yyfplus("INC_CO_MODE:[",__yy_gml_errCheck(string(1))),"]"));{gml_Script_s_setup_for_mode_CO(_inst,_other);if(yyGetBool(_inst.gmldata_upgraded)){{gml_Script_slogf(_inst,_other,"*** DATA UPGRADED - START NEW SEASON");_inst.gmldata_upgraded=false;gml_Script_s_start_new_season(_inst,_other,false);room_goto(YYASSET_REF(0x0300000E));};};};}}function gml_Script_s_startup_browser(_inst,_other){{gml_Script_slog(_inst,_other,">>>>");gml_Script_slog(_inst,_other, yyfplus(yyfplus(yyfplus("obj_master: This is a browser:",__yy_gml_errCheck(url_get_domain()))," do_welcome_msg: "),__yy_gml_errCheck(string(_inst.gmldo_welcome_msg))));gml_Script_slog(_inst,_other,">>>>");var gmluniform=instance_create_layer(0,0,"Instances",YYASSET_REF(0x00000085));yyInst(_inst,_other,gmluniform).visible=false;gml_Script_s_load_uniform_file2(_inst,_other,_inst.gmlmyteam_id,gmluniform,0,"");if(yyGetBool(_inst.gmldo_welcome_msg)){{gml_Script_slog(_inst,_other,"obj_master: go rm_details"); room_goto(YYASSET_REF(0x03000002));};}else {{gml_Script_slog(_inst,_other,"obj_master: go rm_home");room_goto(YYASSET_REF(0x0300000E));};};}}function gml_GlobalScript_s_player_party(_inst,_other){(_inst.gmls_update_party_meter=__yy_method(_inst,gml_Script_s_update_party_meter));(_inst.gmls_get_party_info=__yy_method(_inst,gml_Script_s_get_party_info));(_inst.gmls_add_to_party_meter=__yy_method(_inst,gml_Script_s_add_to_party_meter));(_inst.gmls_clear_party_meter=__yy_method(_inst,gml_Script_s_clear_party_meter)); (_inst.gmls_team_halve_all_party_meters=__yy_method(_inst,gml_Script_s_team_halve_all_party_meters));}function gml_Script_s_update_party_meter(_inst,_other,argument0){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{return;};};var gmlinc=5;var ___sw1716___=gml_Script_s_get_training_reg(_inst,_other,argument0);var ___swc1717___=-1;if(yyCompareVal(___sw1716___,1,g_GMLMathEpsilon,false)==0){___swc1717___=0;}else if(yyCompareVal(___sw1716___,2,g_GMLMathEpsilon,false)==0){___swc1717___=1;}else if(yyCompareVal(___sw1716___, 3,g_GMLMathEpsilon,false)==0){___swc1717___=2;}switch(___swc1717___){case 0:{break;}case 1:{break;}case 2:{gmlinc=yyfplus(gmlinc,(-3));break;}};if((yyGetBool(yyflessequal(ds_map_find_value(argument0,"attitude"),45)))||(yyGetBool(gml_Script_s_player_benched(_inst,_other,argument0)))){{gmlinc=yyfplus(gmlinc,3);};};if(yyGetBool(gml_Script_s_is_player_hobby_fraternity(_inst,_other,argument0))){{gmlinc=yyfplus(gmlinc,6);};};gml_Script_s_add_to_party_meter(_inst,_other,argument0,gmlinc);}}function gml_Script_s_get_party_info(_inst, _other,argument0){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{return;};};var gmlpartyExt=yyfplus(yyfplus(" Meter: ",__yy_gml_errCheck(string(ds_map_find_value(argument0,"party_meter"))))," Tick[");var gmlinc=5;gmlpartyExt=yyfplus(gmlpartyExt,yyfplus(yyfplus(" base(",__yy_gml_errCheck(string(5))),")"));var ___sw1718___=gml_Script_s_get_training_reg(_inst,_other,argument0);var ___swc1719___=-1;if(yyCompareVal(___sw1718___,1,g_GMLMathEpsilon,false)==0){___swc1719___=0;}else if(yyCompareVal(___sw1718___, 2,g_GMLMathEpsilon,false)==0){___swc1719___=1;}else if(yyCompareVal(___sw1718___,3,g_GMLMathEpsilon,false)==0){___swc1719___=2;}switch(___swc1719___){case 0:{break;}case 1:{break;}case 2:{gmlpartyExt=yyfplus(gmlpartyExt,yyfplus(yyfplus(" T.Hard(",__yy_gml_errCheck(string((-3)))),")"));gmlinc=yyfplus(gmlinc,(-3));break;}};if((yyGetBool(yyflessequal(ds_map_find_value(argument0,"attitude"),45)))||(yyGetBool(gml_Script_s_player_benched(_inst,_other,argument0)))){{var gmlreason="";if(yyGetBool(gml_Script_s_player_benched(_inst, _other,argument0))){{gmlreason=yyfplus(gmlreason,"|Bench");};};if(yyflessequal(ds_map_find_value(argument0,"attitude"),45)){{gmlreason=yyfplus(gmlreason,"|BadAtti");};};gmlpartyExt=yyfplus(gmlpartyExt,yyfplus(yyfplus(yyfplus(yyfplus(" ",__yy_gml_errCheck(gmlreason)),"("),__yy_gml_errCheck(string(3))),")"));gmlinc=yyfplus(gmlinc,3);};};if(yyGetBool(gml_Script_s_is_player_hobby_fraternity(_inst,_other,argument0))){{gmlpartyExt=yyfplus(gmlpartyExt,yyfplus(yyfplus(" Frat(",__yy_gml_errCheck(string(6))), ")"));gmlinc=yyfplus(gmlinc,6);};};gmlpartyExt=yyfplus(gmlpartyExt,yyfplus("]: ",__yy_gml_errCheck(string(gmlinc))));return gmlpartyExt;}}function gml_Script_s_add_to_party_meter(_inst,_other,argument0,argument1){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{return;};};var gmlnew_val=clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(argument0,"party_meter")),__yy_gml_errCheck(argument1)),0,100);ds_map_set(argument0,"party_meter",gmlnew_val);}}function gml_Script_s_clear_party_meter(_inst,_other, argument0){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{return;};};gml_Script_slog(_inst,_other,"s_clear_party_meter");ds_map_set(argument0,"party_meter",0);}}function gml_Script_s_team_halve_all_party_meters(_inst,_other){{if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{return;};};gml_Script_slog(_inst,_other,"s_team_halve_all_party_meters");var gmli=0;for(;yyfless(gmli,ds_list_size(_inst.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli), g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(_inst.gmlroster,gmli);var gmloldVal=ds_map_find_value(gmlpmap,"party_meter");ds_map_set(gmlpmap,"party_meter",int64(yyfdivide(__yy_gml_errCheck(gmloldVal),2)));gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("... PartyMeter adjust for ",__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"lname")))),":["),__yy_gml_errCheck(string(gmloldVal))),"]->["),__yy_gml_errCheck(string(ds_map_find_value(gmlpmap,"party_meter")))), "]"));}};}}function gml_GlobalScript_btn_click_LeagueMode(_inst,_other){(_inst.gmlbtn_click_LeagueMode=__yy_method(_inst,gml_Script_btn_click_LeagueMode));}function gml_Script_btn_click_LeagueMode(_inst,_other){{{var __yy__v2006=GetWithArray(YYASSET_REF(0x00000052));for(var __yy__v2007 in __yy__v2006){if(!__yy__v2006.hasOwnProperty(__yy__v2007))continue;var __yy__v2008=__yy__v2006[__yy__v2007];{(g_yyPrePostObject__=__yy__v2008.gmlmode,__yy__v2008.gmlmode=(g_yyPrePostObject__ instanceof Long?__yy__v2008.gmlmode.add(1):++__yy__v2008.gmlmode), g_yyPrePostObject__);if(yyfgreater(__yy__v2008.gmlmode,(yyGetBool(gml_Script_s_is_co_mode(__yy__v2008,_inst))?4:2))){__yy__v2008.gmlmode=0;};gml_Script_s_panel_skip_independents_cnf_view(__yy__v2008,_inst,__yy__v2008.id);}}};}}function gml_GlobalScript_pause_scripts(_inst,_other){(_inst.gmls_pause_toggle=__yy_method(_inst,gml_Script_s_pause_toggle));(_inst.gmls_pause_is_available=__yy_method(_inst,gml_Script_s_pause_is_available));(_inst.gmls_pause_step=__yy_method(_inst,gml_Script_s_pause_step)); (_inst.gmls_is_paused_or_just_unpaused=__yy_method(_inst,gml_Script_s_is_paused_or_just_unpaused));(_inst.gmls_draw_pause=__yy_method(_inst,gml_Script_s_draw_pause));(_inst.gmls_pause_btn_init=__yy_method(_inst,gml_Script_s_pause_btn_init));(_inst.gmls_pause_btn_step=__yy_method(_inst,gml_Script_s_pause_btn_step));(_inst.gmls_pause_btn_draw_gui=__yy_method(_inst,gml_Script_s_pause_btn_draw_gui));(_inst.gmls_pause_btn_recenter=__yy_method(_inst,gml_Script_s_pause_btn_recenter));(_inst.gmls_pause_options_init=__yy_method(_inst, gml_Script_s_pause_options_init));(_inst.gmls_pause_options_recenter=__yy_method(_inst,gml_Script_s_pause_options_recenter));(_inst.gmls_pause_options_dismiss=__yy_method(_inst,gml_Script_s_pause_options_dismiss));(_inst.gmls_pause_options_draw_gui=__yy_method(_inst,gml_Script_s_pause_options_draw_gui));(_inst.gmls_pause_options_layer=__yy_method(_inst,gml_Script_s_pause_options_layer));(_inst.gmls_pause_options_add_button=__yy_method(_inst,gml_Script_s_pause_options_add_button));(_inst.gmls_pause_options_add_quit=__yy_method(_inst, gml_Script_s_pause_options_add_quit));(_inst.gmls_pause_options_update_buttons=__yy_method(_inst,gml_Script_s_pause_options_update_buttons));(_inst.gmls_pause_options_button_action=__yy_method(_inst,gml_Script_s_pause_options_button_action));(_inst.gmls_pause_options_quit_game=__yy_method(_inst,gml_Script_s_pause_options_quit_game));(_inst.gmlbtn_response_quit_exhibition_cancel=__yy_method(_inst,gml_Script_btn_response_quit_exhibition_cancel));(_inst.gmlbtn_response_quit_exhibition_confirm=__yy_method(_inst, gml_Script_btn_response_quit_exhibition_confirm));}function gml_Script_s_pause_toggle(_inst,_other,argument0){{{var __yy__v2009=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v2010 in __yy__v2009){if(!__yy__v2009.hasOwnProperty(__yy__v2010))continue;var __yy__v2011=__yy__v2009[__yy__v2010];{if(!yyGetBool(gml_Script_s_pause_is_available(__yy__v2011,_inst))){return;};if(!yyGetBool(is_undefined(argument0))){__yy__v2011.gmldraw_pause_ui=argument0;};if(yyfnotequal(__yy__v2011.gmlstate,10)){{__yy__v2011.gmlstate_previous=__yy__v2011.gmlstate; if(yyfequal(__yy__v2011.gmlstate,2)){{{var __yy__v2012=GetWithArray(YYASSET_REF(0x0000006B));for(var __yy__v2013 in __yy__v2012){if(!__yy__v2012.hasOwnProperty(__yy__v2013))continue;var __yy__v2014=__yy__v2012[__yy__v2013];{__yy__v2014.gmlhspeed_previous=__yy__v2014.hspeed;__yy__v2014.gmlvspeed_previous=__yy__v2014.vspeed;__yy__v2014.gmlimage_speed_previous=__yy__v2014.image_speed;__yy__v2014.hspeed=0;__yy__v2014.vspeed=0;__yy__v2014.image_speed=0;layer_sprite_speed(__yy__v2014.gmlmy_shadow,__yy__v2014.image_speed); }}};{var __yy__v2015=GetWithArray(YYASSET_REF(0x0000006F));for(var __yy__v2016 in __yy__v2015){if(!__yy__v2015.hasOwnProperty(__yy__v2016))continue;var __yy__v2017=__yy__v2015[__yy__v2016];{__yy__v2017.gmlimage_speed_previous=__yy__v2017.image_speed;__yy__v2017.image_speed=0;}}};};};__yy__v2011.gmlstate=10;};}else {{gml_Script_s_save_options(__yy__v2011,_inst);__yy__v2011.gmlstate=__yy__v2011.gmlstate_previous;if(yyfequal(__yy__v2011.gmlstate,2)){{{var __yy__v2018=GetWithArray(YYASSET_REF(0x0000006B)); for(var __yy__v2019 in __yy__v2018){if(!__yy__v2018.hasOwnProperty(__yy__v2019))continue;var __yy__v2020=__yy__v2018[__yy__v2019];{__yy__v2020.hspeed=__yy__v2020.gmlhspeed_previous;__yy__v2020.vspeed=__yy__v2020.gmlvspeed_previous;__yy__v2020.image_speed=__yy__v2020.gmlimage_speed_previous;layer_sprite_speed(__yy__v2020.gmlmy_shadow,__yy__v2020.image_speed);}}};{var __yy__v2021=GetWithArray(YYASSET_REF(0x0000006F));for(var __yy__v2022 in __yy__v2021){if(!__yy__v2021.hasOwnProperty(__yy__v2022))continue; var __yy__v2023=__yy__v2021[__yy__v2022];{__yy__v2023.image_speed=__yy__v2023.gmlimage_speed_previous;}}};};};};};}}};}}function gml_Script_s_pause_is_available(_inst,_other){{{var __yy__v2024=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v2025 in __yy__v2024){if(!__yy__v2024.hasOwnProperty(__yy__v2025))continue;var __yy__v2026=__yy__v2024[__yy__v2025];{if(yyGetBool(global.gmlbrowser)){return false;};if(yyGetBool(global.gmldebug_aa_hide_ui)){{return false;};};if(yyfequal(__yy__v2026.gmlstate,3)){return false; };if(yyGetBool(instance_exists(YYASSET_REF(0x0000004F)))){return false;};if(yyfgreater(__yy__v2026.alarm[__yy_gml_array_check_index(0,__yy__v2026.alarm)],0)){return false;};var ___sw1742___=__yy__v2026.gmlcomm_stage;var ___swc1743___=-1;if(yyCompareVal(___sw1742___,0,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1742___,12,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1742___,13,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1742___,17,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1742___,18,g_GMLMathEpsilon, false)==0){___swc1743___=0;}switch(___swc1743___){case 0:{return false;}};if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice,0)){return false;};if((yyGetBool(yyfequal(__yy__v2026.gmlstate,2)))&&(yyGetBool(__yy__v2026.gmlkicking))&&(yyGetBool(!yyGetBool(gml_Script_s_cpu_is_kicking_off(__yy__v2026,_inst))))){return false;};return true;}}};}}function gml_Script_s_pause_step(_inst,_other){{if(yyfnotequal(_inst.gmlstate,_inst.gmlpause_state_previous)){{if(yyfequal(_inst.gmlpause_state_previous, 10)){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))){{if(yyGetBool(audio_is_paused(YYASSET_REF(0x02000014)))){audio_resume_sound(YYASSET_REF(0x02000014));};audio_resume_all();};};gml_Script_s_pause_options_dismiss(_inst,_other);_inst.gmldraw_pause_ui=true;};};if(yyfequal(_inst.gmlstate,10)){{audio_pause_all();gml_Script_s_pause_options_init(_inst,_other);};};};};_inst.gmlpause_state_previous=_inst.gmlstate;if(yyGetBool(global.gmlgamepad)){ {if((yyGetBool(gamepad_button_check_released(yyInst(_inst,_other,global.gmlgp).gmlslot,32778)))||(yyGetBool((yyGetBool(yyfequal(_inst.gmlstate,10)))&&(yyGetBool(gamepad_button_check_released(yyInst(_inst,_other,global.gmlgp).gmlslot,global.gmlgp_back)))))){gml_Script_s_pause_toggle(_inst,_other);};};};}}function gml_Script_s_is_paused_or_just_unpaused(_inst,_other){{{var __yy__v2027=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v2028 in __yy__v2027){if(!__yy__v2027.hasOwnProperty(__yy__v2028))continue; var __yy__v2029=__yy__v2027[__yy__v2028];{return(yyGetBool(yyfequal(__yy__v2029.gmlstate,10)))||(yyGetBool(yyfequal(__yy__v2029.gmlpause_state_previous,10)));}}};return false;}}function gml_Script_s_draw_pause(_inst,_other){{if(yyfnotequal(_inst.gmlstate,10)){return;};draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);draw_set_valign(1);draw_set_alpha(1);var gmlpause_text=gml_Script_s_str(_inst,_other,"ui_GamePaused");var gmltx=yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5);var gmlty=yyftime(__yy_gml_errCheck(display_get_gui_height()), 0.6);var gmltw=yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,gmlpause_text)),0.5)),8);draw_sprite_ext(_inst,YYASSET_REF(0x0100017E),0,yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltw)),yyfminus(__yy_gml_errCheck(gmlty),8),yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmltw),16)),2),1.1,0,0,1);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmlpause_text);}}function gml_Script_s_pause_btn_init(_inst,_other){{var gmlbx=yyfplus(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(display_get_gui_width()), 2)),50);var gmlby=8;_inst.gmlis_paused=false;_inst.gmlis_avalable=false;_inst.gmlcontrolled_by=0;instance_create_layer(gmlbx,gmlby,"Text",YYASSET_REF(0x00000019));}}function gml_Script_s_pause_btn_step(_inst,_other){{_inst.gmlis_available=gml_Script_s_pause_is_available(_inst,_other);if((yyGetBool(global.gmlgamepad))||(yyGetBool(!yyGetBool(_inst.gmlis_available)))||(yyGetBool(!yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other))))){return;};_inst.gmlmx=device_mouse_x_to_gui(0);_inst.gmlmy=device_mouse_y_to_gui(0); _inst.gmlhover=false;_inst.gmloffset=yyfplus(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2)),2);if(yyGetBool(point_in_rectangle(_inst.gmlmx,_inst.gmlmy,yyfminus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.gmloffset)),yyfminus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.gmloffset)),yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.gmloffset)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.gmloffset))))){_inst.gmlhover=true;};if((yyGetBool(_inst.gmlhover))&&(yyGetBool(mouse_check_button_pressed(1)))){ gml_Script_s_pause_toggle(_inst,_other);};}}function gml_Script_s_pause_btn_draw_gui(_inst,_other){{if((yyGetBool(global.gmlgamepad))||(yyGetBool(!yyGetBool(_inst.gmlis_available)))){return;};_inst.gmlis_paused=(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlstate,10)?1:0);draw_sprite_ext(_inst,_inst.sprite_index,_inst.gmlis_paused,_inst.x,_inst.y,1,1,0,16777215,1);}}function gml_Script_s_pause_btn_recenter(_inst,_other){{_inst.x=yyfplus(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(display_get_gui_width()), 2)),50);}}function gml_Script_s_pause_options_init(_inst,_other){{if((yyGetBool(variable_instance_exists(_inst.id,"draw_pause_ui")))&&(yyGetBool(!yyGetBool(_inst.gmldraw_pause_ui)))){return;};_inst.gmllayer_id=gml_Script_s_keyboard_custom_layer(_inst,_other);yyInst(_inst,_other,YYASSET_REF(0x00000019)).gmllayer_id=_inst.gmllayer_id;yyInst(_inst,_other,YYASSET_REF(0x00000019)).gmlcontrolled_by=(yyGetBool(global.gmlgamepad)?(yyGetBool(gml_Script_s_is_multicon(_inst,_other))?yyInst(_inst,_other,global.gmlgp).id:0):0); var gmlgx=yyfplus(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(display_get_gui_width()),2)),__yy_gml_errCheck((yyGetBool(gml_Script_s_is_multicon(_inst,_other))?(-37):0)));var gmltxt=instance_create_layer(gmlgx,46,yyInst(_inst,_other,YYASSET_REF(0x00000019)).gmllayer_id,YYASSET_REF(0x00000049));yyInst(_inst,_other,gmltxt).image_xscale=3;yyInst(_inst,_other,gmltxt).gmldraw_box=false;yyInst(_inst,_other,gmltxt).gmlhalign=1;yyInst(_inst,_other,gmltxt).gmltext=gml_Script_s_str(_inst,_other,"ui_GamePaused"); yyInst(_inst,_other,YYASSET_REF(0x00000019)).gmloptions_btns=__yy_gml_array_create([]);gml_Script_s_pause_options_add_button(_inst,_other,1,0,"ui_Zoom",1,gmlgx);gml_Script_s_pause_options_add_button(_inst,_other,1,1,"ui_Replays",2,gmlgx);gml_Script_s_pause_options_add_button(_inst,_other,2,2,"ui_AimingInvert",3,gmlgx);gml_Script_s_pause_options_add_button(_inst,_other,2,3,"ui_AutoRun",5,gmlgx);gml_Script_s_pause_options_add_button(_inst,_other,1,4,"ui_GamepadGuides",4,gmlgx);{};if(yyGetBool(global.gmlexhibition)){ {gml_Script_s_pause_options_add_quit(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000019)).gmlcontrolled_by);};};gml_Script_s_pause_options_update_buttons(_inst,_other);var gmlbase=instance_create_layer(yyfminus(__yy_gml_errCheck(gmlgx),90),30,_inst.gmllayer_id,YYASSET_REF(0x0000001D));yyInst(_inst,_other,gmlbase).sprite_index=YYASSET_REF(0x0100004A);yyInst(_inst,_other,gmlbase).image_xscale=yyfdivide(__yy_gml_errCheck(yyfplus(180,__yy_gml_errCheck((yyGetBool(gml_Script_s_is_multicon(_inst,_other))?74:0)))), 16);yyInst(_inst,_other,gmlbase).image_yscale=14.75;yyInst(_inst,_other,gmlbase).gmlaction_draw_gui=kgml_Script_s_pause_options_draw_gui;if(yyGetBool(global.gmlgamepad)){{var __yy__v2030=GetWithArray(yyInst(_inst,_other,YYASSET_REF(0x00000019)).gmloptions_btns[__yy_gml_array_check_index(0,yyInst(_inst,_other,YYASSET_REF(0x00000019)).gmloptions_btns)]);for(var __yy__v2031 in __yy__v2030){if(!__yy__v2030.hasOwnProperty(__yy__v2031))continue;var __yy__v2032=__yy__v2030[__yy__v2031];{gml_Script_s_save_last_selected(__yy__v2032, _inst);}}};};}}function gml_Script_s_pause_options_recenter(_inst,_other){{gml_Script_slogf(_inst,_other,"Pause options recenter");gml_Script_s_pause_options_dismiss(_inst,_other);gml_Script_s_pause_options_init(_inst,_other);}}function gml_Script_s_pause_options_dismiss(_inst,_other){{if((yyGetBool(variable_instance_exists(YYASSET_REF(0x00000019),"layer_id")))&&(yyGetBool(!yyGetBool(is_undefined(yyInst(_inst,_other,YYASSET_REF(0x00000019)).gmllayer_id))))){layer_destroy(yyInst(_inst,_other,YYASSET_REF(0x00000019)).gmllayer_id); };}}function gml_Script_s_pause_options_draw_gui(_inst,_other){{draw_sprite_ext(_inst,YYASSET_REF(0x01000181),_inst.image_index,_inst.x,_inst.y,_inst.image_xscale,_inst.image_yscale,0,global.gmlc_background,1);draw_sprite_ext(_inst,YYASSET_REF(0x01000131),_inst.image_index,_inst.x,_inst.y,_inst.image_xscale,_inst.image_yscale,0,16777215,1);}}function gml_Script_s_pause_options_layer(_inst,_other){{var gmllid=layer_get_id("PauseOptions");if(yyfless(gmllid,0)){gmllid=layer_create((-1000),"PauseOptions"); };return gmllid;}}function gml_Script_s_pause_options_add_button(_inst,_other,argument0,argument1,argument2,argument3,argument4){{var gmltx=yyfminus(__yy_gml_errCheck(argument4),2);var gmlty=yyfplus(60,__yy_gml_errCheck(yyftime(40,__yy_gml_errCheck(argument1))));var gmltxt=instance_create_layer(gmltx,yyfplus(__yy_gml_errCheck(gmlty),16),yyInst(_inst,_other,YYASSET_REF(0x00000019)).gmllayer_id,YYASSET_REF(0x00000049));yyInst(_inst,_other,gmltxt).gmldraw_box=false;yyInst(_inst,_other,gmltxt).gmlhalign=2; yyInst(_inst,_other,gmltxt).image_xscale=2;yyInst(_inst,_other,gmltxt).gmltext=gml_Script_s_str(_inst,_other,argument2);var gmlbtn1=instance_create_layer(yyfplus(__yy_gml_errCheck(gmltx),6),gmlty,yyInst(_inst,_other,YYASSET_REF(0x00000019)).gmllayer_id,YYASSET_REF(0x00000014));yyInst(_inst,_other,gmlbtn1).gmlonClickAction=kgml_Script_s_pause_options_button_action;yyInst(_inst,_other,gmlbtn1).gmltype=argument3;yyInst(_inst,_other,gmlbtn1).gmlplayer=1;yyInst(_inst,_other,gmlbtn1).image_xscale=yyfdivide(74, __yy_gml_errCheck(yyInst(_inst,_other,gmlbtn1).sprite_width));yyInst(_inst,_other,gmlbtn1).gmlgp_allowed=(yyGetBool(gml_Script_s_is_multicon(_inst,_other))?1:3);array_push(yyInst(_inst,_other,YYASSET_REF(0x00000019)).gmloptions_btns,gmlbtn1);if((yyGetBool(yyfgreater(argument0,1)))&&(yyGetBool(gml_Script_s_is_multicon(_inst,_other)))){{var gmlbtn2=instance_create_layer(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gmltx),6),74),6),gmlty,yyInst(_inst,_other,YYASSET_REF(0x00000019)).gmllayer_id,YYASSET_REF(0x00000014)); yyInst(_inst,_other,gmlbtn2).gmlonClickAction=kgml_Script_s_pause_options_button_action;yyInst(_inst,_other,gmlbtn2).gmltype=argument3;yyInst(_inst,_other,gmlbtn2).gmlplayer=2;yyInst(_inst,_other,gmlbtn2).image_xscale=yyfdivide(74,__yy_gml_errCheck(yyInst(_inst,_other,gmlbtn2).sprite_width));yyInst(_inst,_other,gmlbtn2).gmlgp_allowed=2;array_push(yyInst(_inst,_other,YYASSET_REF(0x00000019)).gmloptions_btns,gmlbtn2);};};}}function gml_Script_s_pause_options_add_quit(_inst,_other,argument0){{var gmltall=yyfless(display_get_gui_width(), 480);var gmlbw=(yyGetBool(gmltall)?45:90);var gmlmx=(yyGetBool(gmltall)?4:10);var gmltx=(yyfless(argument0,2)?gmlmx:yyfminus(yyfminus(__yy_gml_errCheck(display_get_gui_width()),__yy_gml_errCheck(gmlmx)),__yy_gml_errCheck(gmlbw)));var gmlty=30;var gmlbtn=instance_create_layer(gmltx,gmlty,yyInst(_inst,_other,YYASSET_REF(0x00000019)).gmllayer_id,YYASSET_REF(0x00000014));yyInst(_inst,_other,gmlbtn).gmlonClickAction=kgml_Script_s_pause_options_quit_game;yyInst(_inst,_other,gmlbtn).image_xscale=yyfdivide(__yy_gml_errCheck(gmlbw), __yy_gml_errCheck(yyInst(_inst,_other,gmlbtn).sprite_width));yyInst(_inst,_other,gmlbtn).gmltext=gml_Script_s_str(_inst,_other,(yyGetBool(gmltall)?"ui_Quit":"ui_QuitGame"));yyInst(_inst,_other,gmlbtn).gmlgp_allowed=(yyGetBool(gml_Script_s_is_multicon(_inst,_other))?argument0:3);}}function gml_Script_s_pause_options_update_buttons(_inst,_other){{var gmli=0;for(;yyfless(gmli,array_length(yyInst(_inst,_other,YYASSET_REF(0x00000019)).gmloptions_btns));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli), g_yyPrePostObject__)){{var gmlbtn=yyInst(_inst,_other,YYASSET_REF(0x00000019)).gmloptions_btns[__yy_gml_array_check_index(gmli,yyInst(_inst,_other,YYASSET_REF(0x00000019)).gmloptions_btns)];var ___sw1744___=yyInst(_inst,_other,gmlbtn).gmltype;var ___swc1745___=-1;if(yyCompareVal(___sw1744___,1,g_GMLMathEpsilon,false)==0){___swc1745___=0;}else if(yyCompareVal(___sw1744___,2,g_GMLMathEpsilon,false)==0){___swc1745___=1;}else if(yyCompareVal(___sw1744___,3,g_GMLMathEpsilon,false)==0){___swc1745___=2;}else if(yyCompareVal(___sw1744___, 4,g_GMLMathEpsilon,false)==0){___swc1745___=3;}else if(yyCompareVal(___sw1744___,5,g_GMLMathEpsilon,false)==0){___swc1745___=4;}else if(yyCompareVal(___sw1744___,98,g_GMLMathEpsilon,false)==0){___swc1745___=5;}else if(yyCompareVal(___sw1744___,99,g_GMLMathEpsilon,false)==0){___swc1745___=6;}else if(yyCompareVal(___sw1744___,10,g_GMLMathEpsilon,false)==0){___swc1745___=7;}switch(___swc1745___){case 0:{var ___sw1746___=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_zoom"); var ___swc1747___=-1;if(yyCompareVal(___sw1746___,true,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1746___,"true",g_GMLMathEpsilon,false)==0){___swc1747___=0;}else if(yyCompareVal(___sw1746___,false,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1746___,"false",g_GMLMathEpsilon,false)==0){___swc1747___=1;}switch(___swc1747___){case 0:{yyInst(_inst,_other,gmlbtn).gmltext=gml_Script_s_str(_inst,_other,"ui_On");break;}case 1:{yyInst(_inst,_other,gmlbtn).gmltext=gml_Script_s_str(_inst,_other,"ui_Off"); break;}};break;}case 1:{var ___sw1748___=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_replays");var ___swc1749___=-1;if(yyCompareVal(___sw1748___,0,g_GMLMathEpsilon,false)==0){___swc1749___=0;}else if(yyCompareVal(___sw1748___,1,g_GMLMathEpsilon,false)==0){___swc1749___=1;}else if(yyCompareVal(___sw1748___,2,g_GMLMathEpsilon,false)==0){___swc1749___=2;}switch(___swc1749___){case 0:{yyInst(_inst,_other,gmlbtn).gmltext=gml_Script_s_str(_inst,_other,"ui_Off");break;}case 1:{ yyInst(_inst,_other,gmlbtn).gmltext=gml_Script_s_str(_inst,_other,"ui_Dynamic");break;}case 2:{yyInst(_inst,_other,gmlbtn).gmltext=gml_Script_s_str(_inst,_other,"ui_EveryPlay");break;}};break;}case 2:{var ___sw1750___=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,(yyfequal(yyInst(_inst,_other,gmlbtn).gmlplayer,2)?"op_invert_throw_p2":"op_invert_throw"));var ___swc1751___=-1;if(yyCompareVal(___sw1750___,0,g_GMLMathEpsilon,false)==0){___swc1751___=0;}else if(yyCompareVal(___sw1750___, 1,g_GMLMathEpsilon,false)==0){___swc1751___=1;}else if(yyCompareVal(___sw1750___,2,g_GMLMathEpsilon,false)==0){___swc1751___=2;}else if(yyCompareVal(___sw1750___,3,g_GMLMathEpsilon,false)==0){___swc1751___=3;}switch(___swc1751___){case 0:{yyInst(_inst,_other,gmlbtn).gmltext=gml_Script_s_str(_inst,_other,"ui_Normal");break;}case 1:{yyInst(_inst,_other,gmlbtn).gmltext=gml_Script_s_str(_inst,_other,"ui_Inverted");break;}case 2:{yyInst(_inst,_other,gmlbtn).gmltext=gml_Script_s_str(_inst,_other,"ui_AnalogueL"); break;}case 3:{yyInst(_inst,_other,gmlbtn).gmltext=gml_Script_s_str(_inst,_other,"ui_AnalogueR");break;}};if((yyGetBool(!yyGetBool(global.gmlconsole_build)))&&(yyGetBool(!yyGetBool(global.gmlgamepad)))){yyInst(_inst,_other,gmlbtn).gmlactive=false;};break;}case 3:{var ___sw1752___=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_gamepad_guides");var ___swc1753___=-1;if(yyCompareVal(___sw1752___,true,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1752___,"true",g_GMLMathEpsilon, false)==0){___swc1753___=0;}else if(yyCompareVal(___sw1752___,false,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1752___,"false",g_GMLMathEpsilon,false)==0){___swc1753___=1;}switch(___swc1753___){case 0:{yyInst(_inst,_other,gmlbtn).gmltext=gml_Script_s_str(_inst,_other,"ui_On");break;}case 1:{yyInst(_inst,_other,gmlbtn).gmltext=gml_Script_s_str(_inst,_other,"ui_Off");break;}};if((yyGetBool(!yyGetBool(global.gmlconsole_build)))&&(yyGetBool(!yyGetBool(global.gmlgamepad)))){yyInst(_inst,_other,gmlbtn).gmlactive=false; };break;}case 4:{var ___sw1754___=(yyfequal(yyInst(_inst,_other,gmlbtn).gmlplayer,2)?yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_autorun_p2:yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_autorun);var ___swc1755___=-1;if(yyCompareVal(___sw1754___,true,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1754___,"true",g_GMLMathEpsilon,false)==0){___swc1755___=0;}else if(yyCompareVal(___sw1754___,false,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1754___,"false",g_GMLMathEpsilon,false)==0){___swc1755___=1; }switch(___swc1755___){case 0:{yyInst(_inst,_other,gmlbtn).gmltext=gml_Script_s_str(_inst,_other,"ui_On");break;}case 1:{yyInst(_inst,_other,gmlbtn).gmltext=gml_Script_s_str(_inst,_other,"ui_Off");break;}};if((yyGetBool(!yyGetBool(global.gmlconsole_build)))&&(yyGetBool(!yyGetBool(global.gmlgamepad)))){yyInst(_inst,_other,gmlbtn).gmlactive=false;};break;}case 5:{var ___sw1756___=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx");var ___swc1757___=-1;if(yyCompareVal(___sw1756___, 0,g_GMLMathEpsilon,false)==0){___swc1757___=0;}else if(yyCompareVal(___sw1756___,1,g_GMLMathEpsilon,false)==0){___swc1757___=1;}else if(yyCompareVal(___sw1756___,2,g_GMLMathEpsilon,false)==0){___swc1757___=2;}switch(___swc1757___){case 0:{yyInst(_inst,_other,gmlbtn).gmltext=gml_Script_s_str(_inst,_other,"ui_Off");break;}case 1:{yyInst(_inst,_other,gmlbtn).gmltext=gml_Script_s_str(_inst,_other,"ui_SoundFX");break;}case 2:{yyInst(_inst,_other,gmlbtn).gmltext=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst, _other,"ui_SoundFX")),"\n& "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Music")));break;}};break;}case 6:{var ___sw1758___=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_scanlines");var ___swc1759___=-1;if(yyCompareVal(___sw1758___,true,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1758___,"true",g_GMLMathEpsilon,false)==0){___swc1759___=0;}else if(yyCompareVal(___sw1758___,false,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1758___,"false",g_GMLMathEpsilon, false)==0){___swc1759___=1;}switch(___swc1759___){case 0:{yyInst(_inst,_other,gmlbtn).gmltext=gml_Script_s_str(_inst,_other,"ui_On");break;}case 1:{yyInst(_inst,_other,gmlbtn).gmltext=gml_Script_s_str(_inst,_other,"ui_Off");break;}};break;}case 7:{var ___sw1760___=global.gmldebug_aa_hide_ui;var ___swc1761___=-1;if(yyCompareVal(___sw1760___,true,g_GMLMathEpsilon,false)==0){___swc1761___=0;}else if(yyCompareVal(___sw1760___,false,g_GMLMathEpsilon,false)==0){___swc1761___=1;}switch(___swc1761___){case 0:{ {yyInst(_inst,_other,gmlbtn).gmltext=gml_Script_s_str(_inst,_other,"ui_Off");break;};}case 1:{{yyInst(_inst,_other,gmlbtn).gmltext=gml_Script_s_str(_inst,_other,"ui_On");break;};}};break;}};}};}}function gml_Script_s_pause_options_button_action(_inst,_other){{var ___sw1762___=_inst.gmltype;var ___swc1763___=-1;if(yyCompareVal(___sw1762___,1,g_GMLMathEpsilon,false)==0){___swc1763___=0;}else if(yyCompareVal(___sw1762___,2,g_GMLMathEpsilon,false)==0){___swc1763___=1;}else if(yyCompareVal(___sw1762___,3,g_GMLMathEpsilon, false)==0){___swc1763___=2;}else if(yyCompareVal(___sw1762___,4,g_GMLMathEpsilon,false)==0){___swc1763___=3;}else if(yyCompareVal(___sw1762___,5,g_GMLMathEpsilon,false)==0){___swc1763___=4;}else if(yyCompareVal(___sw1762___,98,g_GMLMathEpsilon,false)==0){___swc1763___=5;}else if(yyCompareVal(___sw1762___,99,g_GMLMathEpsilon,false)==0){___swc1763___=6;}else if(yyCompareVal(___sw1762___,10,g_GMLMathEpsilon,false)==0){___swc1763___=7;}switch(___swc1763___){case 0:{{var __yy__v2033=GetWithArray(YYASSET_REF(0x00000062)); for(var __yy__v2034 in __yy__v2033){if(!__yy__v2033.hasOwnProperty(__yy__v2034))continue;var __yy__v2035=__yy__v2033[__yy__v2034];ds_map_set(__yy__v2035.gmlmap_options,"op_zoom",!yyGetBool(ds_map_find_value(__yy__v2035.gmlmap_options,"op_zoom")));}};break;}case 1:{{var __yy__v2036=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v2037 in __yy__v2036){if(!__yy__v2036.hasOwnProperty(__yy__v2037))continue;var __yy__v2038=__yy__v2036[__yy__v2037];ds_map_set(__yy__v2038.gmlmap_options,"op_replays",yyfmod(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(ds_map_find_value(__yy__v2038.gmlmap_options, "op_replays")),1)),3));}};break;}case 2:{{var __yy__v2039=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v2040 in __yy__v2039){if(!__yy__v2039.hasOwnProperty(__yy__v2040))continue;var __yy__v2041=__yy__v2039[__yy__v2040];{var gmlopt=(yyfequal(_inst.gmlplayer,2)?"op_invert_throw_p2":"op_invert_throw");ds_map_set(__yy__v2041.gmlmap_options,gmlopt,yyfmod(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(ds_map_find_value(__yy__v2041.gmlmap_options,gmlopt)),1)),2));}}};break;}case 3:{{var __yy__v2042=GetWithArray(YYASSET_REF(0x00000062)); for(var __yy__v2043 in __yy__v2042){if(!__yy__v2042.hasOwnProperty(__yy__v2043))continue;var __yy__v2044=__yy__v2042[__yy__v2043];ds_map_set(__yy__v2044.gmlmap_options,"op_gamepad_guides",!yyGetBool(ds_map_find_value(__yy__v2044.gmlmap_options,"op_gamepad_guides")));}};break;}case 4:{{var __yy__v2045=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v2046 in __yy__v2045){if(!__yy__v2045.hasOwnProperty(__yy__v2046))continue;var __yy__v2047=__yy__v2045[__yy__v2046];{if(yyfequal(_inst.gmlplayer,2)){__yy__v2047.gmlop_autorun_p2=!yyGetBool(__yy__v2047.gmlop_autorun_p2); }else {__yy__v2047.gmlop_autorun=!yyGetBool(__yy__v2047.gmlop_autorun);};}}};break;}case 5:{{var __yy__v2048=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v2049 in __yy__v2048){if(!__yy__v2048.hasOwnProperty(__yy__v2049))continue;var __yy__v2050=__yy__v2048[__yy__v2049];ds_map_set(__yy__v2050.gmlmap_options,"op_soundfx",yyfmod(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(ds_map_find_value(__yy__v2050.gmlmap_options,"op_soundfx")),1)),3));}};break;}case 6:{{var __yy__v2051=GetWithArray(YYASSET_REF(0x00000062)); for(var __yy__v2052 in __yy__v2051){if(!__yy__v2051.hasOwnProperty(__yy__v2052))continue;var __yy__v2053=__yy__v2051[__yy__v2052];{ds_map_set(__yy__v2053.gmlmap_options,"op_scanlines",!yyGetBool(ds_map_find_value(__yy__v2053.gmlmap_options,"op_scanlines")));yyInst(_inst,_other,YYASSET_REF(0x00000064)).gmlon=ds_map_find_value(__yy__v2053.gmlmap_options,"op_scanlines");}}};break;}case 7:{{var __yy__v2054=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v2055 in __yy__v2054){if(!__yy__v2054.hasOwnProperty(__yy__v2055))continue; var __yy__v2056=__yy__v2054[__yy__v2055];{gml_Script_s_pause_toggle(__yy__v2056,_inst);global.gmldebug_aa_hide_ui=!yyGetBool(global.gmldebug_aa_hide_ui);}}};break;}};gml_Script_s_pause_options_update_buttons(_inst,_other);}}function gml_Script_s_pause_options_quit_game(_inst,_other){{var gmlgp_allow=(yyGetBool(gml_Script_s_is_multicon(_inst,_other))?yyInst(_inst,_other,YYASSET_REF(0x00000019)).gmlcontrolled_by:3);gml_Script_s_pause_options_dismiss(_inst,_other);gml_Script_s_create_message(_inst,_other, "",gml_Script_s_str(_inst,_other,"msg_QuitExhibition"),gml_Script_s_str(_inst,_other,"ui_Cancel"),gml_Script_s_str(_inst,_other,"ui_Confirm"),kgml_Script_btn_response_quit_exhibition_cancel,kgml_Script_btn_response_quit_exhibition_confirm,global.gmlc_background,1,undefined,gmlgp_allow);}}function gml_Script_btn_response_quit_exhibition_cancel(_inst,_other){{gml_Script_s_pause_options_init(_inst,_other);gml_Script_s_msg_clear(_inst,_other);}}function gml_Script_btn_response_quit_exhibition_confirm(_inst, _other){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlbtn_continue_state=0;gml_Script_s_set_multicon_turn(_inst,_other);gml_Script_exhibition_handle_exit_match(_inst,_other);room_goto(YYASSET_REF(0x0300002F));}}function gml_GlobalScript_s_draw_scoreboard_qb_training(_inst,_other){(_inst.gmls_draw_scoreboard_qb_training=__yy_method(_inst,gml_Script_s_draw_scoreboard_qb_training));}function gml_Script_s_draw_scoreboard_qb_training(_inst,_other){{if(yyfnotequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice, 4)){return;};draw_set_font(global.gmlfnt_small_flex);draw_set_halign(0);draw_set_valign(1);draw_set_alpha(1);draw_rectangle_colour(0,0,display_get_gui_width(),16,0,0,0,0,0);var gmltx=16;var gmlty1=8;var gmltxt=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Score")),": "),__yy_gml_errCheck(string(_inst.gmlpractice_score_qb_mode)));gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty1,gmltxt);gmltxt=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Best")),": "),__yy_gml_errCheck(string(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlqb_training_hiscore)));gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),90),gmlty1,gmltxt);draw_set_halign(1);gmltx=yyfdivide(__yy_gml_errCheck(display_get_gui_width()),2);var gmltime=yyfplus(" ",__yy_gml_errCheck(gml_Script_s_get_string_time(_inst,_other,_inst.gmlminutes,_inst.gmlseconds)));if(yyfequal(_inst.gmlminutes,0)){{draw_set_color(65535);if(yyfless(_inst.gmlseconds,6)){draw_set_color(255);};};};gml_Script_draw_hd_text(_inst,_other,gmltx, gmlty1,gmltime);draw_set_color(16777215);}}function gml_GlobalScript_s_update_manual_gestures(_inst,_other){(_inst.gmls_update_manual_gestures=__yy_method(_inst,gml_Script_s_update_manual_gestures));}function gml_Script_s_update_manual_gestures(_inst,_other){{global.gmlflickVelX=0;global.gmlflickVelY=0;{var __yy__v2057=GetWithArray(global.gmlmaster_ball);for(var __yy__v2058 in __yy__v2057){if(!__yy__v2057.hasOwnProperty(__yy__v2058))continue;var __yy__v2059=__yy__v2057[__yy__v2058];if(yyfequal(__yy__v2059.gmlstate, 2)){{yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlmobbrow_start_time=0;return;};};}};if(yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other))){var ___sw1766___=_inst.gmlmobbrow_start_time;var ___swc1767___=-1;if(yyCompareVal(___sw1766___,0,g_GMLMathEpsilon,false)==0){___swc1767___=0;}switch(___swc1767___){case 0:{if(yyGetBool(mouse_check_button(1))){{_inst.gmlmobbrow_start_time=g_pBuiltIn.get_current_time();_inst.gmlmobbrow_start_x=g_pBuiltIn.get_mouse_x();_inst.gmlmobbrow_start_y=g_pBuiltIn.get_mouse_y(); };};break;}default :{if(!yyGetBool(mouse_check_button(1))){{_inst.gmlmobbrow_start_time=0;if(yyfgreater(point_distance(_inst.gmlmobbrow_start_x,_inst.gmlmobbrow_start_y,g_pBuiltIn.get_mouse_x(),g_pBuiltIn.get_mouse_y()),20)){{var gmldir=point_direction(_inst.gmlmobbrow_start_x,_inst.gmlmobbrow_start_y,g_pBuiltIn.get_mouse_x(),g_pBuiltIn.get_mouse_y());global.gmlflickVelX=yyftime(__yy_gml_errCheck(dcos(gmldir)),2);global.gmlflickVelY=yyftime(__yy_gml_errCheck(dsin(gmldir)),(-2));};};};};break;}};}; }}function gml_GlobalScript_s_obj_controller_draw_begin(_inst,_other){(_inst.gmls_obj_controller_draw_begin=__yy_method(_inst,gml_Script_s_obj_controller_draw_begin));}function gml_Script_s_obj_controller_draw_begin(_inst,_other){{var gmlfieldfans=(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))?YYASSET_REF(0x01000139):YYASSET_REF(0x01000002));var gmlfield=(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))?YYASSET_REF(0x01000148):YYASSET_REF(0x01000001));var gmlsideline_crew=(yyGetBool(gml_Script_s_is_co_mode(_inst, _other))?YYASSET_REF(0x0100011A):YYASSET_REF(0x01000022));var gmlshow_band=gml_Script_s_is_co_mode(_inst,_other);var gmlshow_field_text=gml_Script_s_is_co_mode(_inst,_other);if(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice)){{draw_sprite_ext(_inst,gmlfield,_inst.gmlfield_type,0,66,2,2,0,16777215,1);shader_set(YYASSET_REF(0x0A000000));{shader_set_uniform_f(global.gmlcolorHelmet,1,0,0);shader_set_uniform_f(global.gmlcolorShirt,0.5,0.5,1);shader_set_uniform_f(global.gmlcolorPants, 1,0,1);shader_set_uniform_f(global.gmlcolorPants_b,0,0,0.5);shader_set_uniform_f(global.gmlcolorCleats,1,1,0);shader_set_uniform_f(global.gmlcolorSleeve,0.875,0.443,0.149);shader_set_uniform_f(global.gmlcolorLogo,0.5,0,0);shader_set_uniform_f(global.gmlcolorSocks,0,1,0);shader_set_uniform_f(global.gmlcolorSocks_b,0,0.5,0);};shader_set_uniform_f(global.gmlreplaceHelmet,_inst.gmlshd_helmet[__yy_gml_array_check_index(2,_inst.gmlshd_helmet)],_inst.gmlshd_helmet[__yy_gml_array_check_index(1,_inst.gmlshd_helmet)], _inst.gmlshd_helmet[__yy_gml_array_check_index(0,_inst.gmlshd_helmet)]);shader_set_uniform_f(global.gmlreplaceShirt,_inst.gmlshd_shirt[__yy_gml_array_check_index(2,_inst.gmlshd_shirt)],_inst.gmlshd_shirt[__yy_gml_array_check_index(1,_inst.gmlshd_shirt)],_inst.gmlshd_shirt[__yy_gml_array_check_index(0,_inst.gmlshd_shirt)]);shader_set_uniform_f(global.gmlreplacePants,_inst.gmlshd_pants[__yy_gml_array_check_index(2,_inst.gmlshd_pants)],_inst.gmlshd_pants[__yy_gml_array_check_index(1,_inst.gmlshd_pants)], _inst.gmlshd_pants[__yy_gml_array_check_index(0,_inst.gmlshd_pants)]);shader_set_uniform_f(global.gmlreplacePants_b,0.9,0.9,0.9);shader_set_uniform_f(global.gmlreplaceCleats,0.1,0.1,0.1);{shader_set_uniform_f(global.gmlreplaceSleeve,yyftime(__yy_gml_errCheck(_inst.gmlshd_shirt[__yy_gml_array_check_index(2,_inst.gmlshd_shirt)]),0.8),yyftime(__yy_gml_errCheck(_inst.gmlshd_shirt[__yy_gml_array_check_index(1,_inst.gmlshd_shirt)]),0.8),yyftime(__yy_gml_errCheck(_inst.gmlshd_shirt[__yy_gml_array_check_index(0, _inst.gmlshd_shirt)]),0.8));shader_set_uniform_f(global.gmlreplaceLogo,_inst.gmlshd_logo[__yy_gml_array_check_index(2,_inst.gmlshd_logo)],_inst.gmlshd_logo[__yy_gml_array_check_index(1,_inst.gmlshd_logo)],_inst.gmlshd_logo[__yy_gml_array_check_index(0,_inst.gmlshd_logo)]);shader_set_uniform_f(global.gmlreplaceSocks,_inst.gmlshd_socks1[__yy_gml_array_check_index(2,_inst.gmlshd_socks1)],_inst.gmlshd_socks1[__yy_gml_array_check_index(1,_inst.gmlshd_socks1)],_inst.gmlshd_socks1[__yy_gml_array_check_index(0, _inst.gmlshd_socks1)]);shader_set_uniform_f(global.gmlreplaceSocks_b,_inst.gmlshd_socks2[__yy_gml_array_check_index(2,_inst.gmlshd_socks2)],_inst.gmlshd_socks2[__yy_gml_array_check_index(1,_inst.gmlshd_socks2)],_inst.gmlshd_socks2[__yy_gml_array_check_index(0,_inst.gmlshd_socks2)]);};draw_sprite_ext(_inst,gmlfieldfans,0,0,0,2,2,0,16777215,1);draw_sprite_ext(_inst,gmlsideline_crew,0,998,64,2,2,0,16777215,1);{draw_sprite_ext(_inst,YYASSET_REF(0x0100012A),0,682,68,2,2,0,16777215,1);};var gmli=_inst.gmlcheer_frame; var gmlcl_adjust=30;if(yyfless(camera_get_view_x(g_pBuiltIn.view_camera[__yy_gml_array_check_index(0,g_pBuiltIn.view_camera)]),1300)){{draw_sprite_ext(_inst,_inst.gmlspr_cl1,gmli,yyfplus(250,__yy_gml_errCheck(gmlcl_adjust)),100,2,2,0,16777215,1);draw_sprite_ext(_inst,_inst.gmlspr_cl3,yyfplus(__yy_gml_errCheck(gmli),2.5),yyfplus(220,__yy_gml_errCheck(gmlcl_adjust)),110,2,2,0,16777215,1);draw_sprite_ext(_inst,_inst.gmlspr_cl5,gmli,yyfplus(190,__yy_gml_errCheck(gmlcl_adjust)),100,2,2,0,16777215,1);draw_sprite_ext(_inst, _inst.gmlspr_cl2,yyfplus(__yy_gml_errCheck(gmli),7.5),yyfplus(160,__yy_gml_errCheck(gmlcl_adjust)),110,2,2,0,16777215,1);draw_sprite_ext(_inst,_inst.gmlspr_cl4,yyfplus(__yy_gml_errCheck(gmli),5),yyfplus(130,__yy_gml_errCheck(gmlcl_adjust)),100,2,2,0,16777215,1);draw_sprite_ext(_inst,_inst.gmlspr_cl2,gmli,250,528,2,2,0,16777215,1);draw_sprite_ext(_inst,_inst.gmlspr_cl4,yyfplus(__yy_gml_errCheck(gmli),2.5),220,518,2,2,0,16777215,1);draw_sprite_ext(_inst,_inst.gmlspr_cl6,gmli,190,528,2,2,0,16777215, 1);draw_sprite_ext(_inst,_inst.gmlspr_cl1,yyfplus(__yy_gml_errCheck(gmli),7.5),160,518,2,2,0,16777215,1);draw_sprite_ext(_inst,_inst.gmlspr_cl3,yyfplus(__yy_gml_errCheck(gmli),5),130,528,2,2,0,16777215,1);};}else {{draw_sprite_ext(_inst,_inst.gmlspr_cl6,gmli,yyfminus(2350,__yy_gml_errCheck(gmlcl_adjust)),100,2,2,0,16777215,1);draw_sprite_ext(_inst,_inst.gmlspr_cl4,yyfplus(__yy_gml_errCheck(gmli),2.5),yyfminus(2380,__yy_gml_errCheck(gmlcl_adjust)),110,2,2,0,16777215,1);draw_sprite_ext(_inst,_inst.gmlspr_cl2, gmli,yyfminus(2410,__yy_gml_errCheck(gmlcl_adjust)),100,2,2,0,16777215,1);draw_sprite_ext(_inst,_inst.gmlspr_cl1,yyfplus(__yy_gml_errCheck(gmli),7.5),yyfminus(2440,__yy_gml_errCheck(gmlcl_adjust)),110,2,2,0,16777215,1);draw_sprite_ext(_inst,_inst.gmlspr_cl3,yyfplus(__yy_gml_errCheck(gmli),5),yyfminus(2470,__yy_gml_errCheck(gmlcl_adjust)),100,2,2,0,16777215,1);draw_sprite_ext(_inst,_inst.gmlspr_cl5,gmli,2350,528,2,2,0,16777215,1);draw_sprite_ext(_inst,_inst.gmlspr_cl3,yyfplus(__yy_gml_errCheck(gmli), 2.5),2380,518,2,2,0,16777215,1);draw_sprite_ext(_inst,_inst.gmlspr_cl1,gmli,2410,528,2,2,0,16777215,1);draw_sprite_ext(_inst,_inst.gmlspr_cl6,yyfplus(__yy_gml_errCheck(gmli),7.5),2440,518,2,2,0,16777215,1);draw_sprite_ext(_inst,_inst.gmlspr_cl4,yyfplus(__yy_gml_errCheck(gmli),5),2470,528,2,2,0,16777215,1);};};if(yyGetBool(gmlshow_band)){{if(yyfless(camera_get_view_x(g_pBuiltIn.view_camera[__yy_gml_array_check_index(0,g_pBuiltIn.view_camera)]),1300)){{draw_sprite_ext(_inst,YYASSET_REF(0x01000124), gmli,328,61,2,2,0,16777215,1);if(yyfequal(_inst.gmlscored_by,1)){{draw_sprite_ext(_inst,YYASSET_REF(0x01000154),gmli,364,61,2,2,0,16777215,1);};}else {{draw_sprite_ext(_inst,YYASSET_REF(0x0100017D),0,364,61,2,2,0,16777215,1);};};draw_sprite_ext(_inst,YYASSET_REF(0x010000EC),gmli,398,61,2,2,0,16777215,1);draw_sprite_ext(_inst,YYASSET_REF(0x01000178),gmli,436,61,2,2,0,16777215,1);draw_sprite_ext(_inst,YYASSET_REF(0x01000121),gmli,346,66,2,2,0,16777215,1);draw_sprite_ext(_inst,YYASSET_REF(0x010000F5), gmli,414,66,2,2,0,16777215,1);draw_sprite_ext(_inst,YYASSET_REF(0x0100015C),gmli,384,68,2,2,0,16777215,1);};};};};shader_reset();};}else {if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)){{draw_sprite_ext(_inst,YYASSET_REF(0x01000002),2,0,0,2,2,0,16777215,1);draw_sprite_ext(_inst,gmlfield,_inst.gmlfield_type,0,66,2,2,0,16777215,1);};}else {{draw_sprite_ext(_inst,gmlfieldfans,1,0,0,2,2,0,16777215,1);draw_sprite_ext(_inst,gmlfield,_inst.gmlfield_type,0,66,2,2,0,16777215,1);};};} ;if((yyGetBool(yyfnotequal(_inst.gmlfield_type,5)))&&(yyGetBool(yyfnotequal(_inst.gmlfield_type,6)))){{draw_sprite_ext(_inst,YYASSET_REF(0x01000023),_inst.gmlfield_type,100,132,2,2,0,_inst.gmlc_endzone,1);draw_sprite_ext(_inst,YYASSET_REF(0x01000023),_inst.gmlfield_type,2302,132,2,2,0,_inst.gmlc_endzone,1);if(yyGetBool(gmlshow_field_text)){{draw_sprite_ext(_inst,YYASSET_REF(0x01000190),0,100,132,2,2,0,16777215,1);draw_sprite_ext(_inst,YYASSET_REF(0x01000190),1,2302,132,2,2,0,16777215,1);};};};}; var ___sw1770___=_inst.gmlstate;var ___swc1771___=-1;if(yyCompareVal(___sw1770___,10,g_GMLMathEpsilon,false)==0){___swc1771___=0;}else if(yyCompareVal(___sw1770___,2,g_GMLMathEpsilon,false)==0){___swc1771___=1;}else if(yyCompareVal(___sw1770___,3,g_GMLMathEpsilon,false)==0){___swc1771___=2;}switch(___swc1771___){case 0:{if(yyfequal(_inst.gmlstate_previous,1)){break;};}case 1:{if(yyGetBool(_inst.gmlkicking)){gml_Script_s_draw_kick_cone(_inst,_other);}else {if(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice)){ gml_Script_s_draw_scrimmage(_inst,_other);};};break;}case 2:{if((yyGetBool(yyfnotequal(_inst.gmllast_play,1)))&&(yyGetBool(yyfnotequal(global.gmlreplay_end,6)))&&(yyGetBool(yyfnotequal(global.gmlreplay_end,7)))){gml_Script_s_draw_scrimmage(_inst,_other);};return;break;}default :{return;break;}};if(yyfnotequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice,2)){{{var __yy__v2060=GetWithArray(global.gmlmaster_ball);for(var __yy__v2061 in __yy__v2060){if(!__yy__v2060.hasOwnProperty(__yy__v2061))continue; var __yy__v2062=__yy__v2060[__yy__v2061];{if(yyfgreater(__yy__v2062.gmlxdead,0)){{var gmlcol=255;if(yyfequal(__yy__v2062.gmlstate,14)){gmlcol=65280;};draw_sprite_ext(__yy__v2062,YYASSET_REF(0x0100004E),0,__yy__v2062.gmlxdead,__yy__v2062.gmlydead,2,2,0,gmlcol,1);};};}}};};}else {if((yyGetBool(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpractice_success,0)))&&(yyGetBool(!yyGetBool(global.gmlgamepad)))){{{var __yy__v2063=GetWithArray(global.gmlmaster_ball);for(var __yy__v2064 in __yy__v2063){ if(!__yy__v2063.hasOwnProperty(__yy__v2064))continue;var __yy__v2065=__yy__v2063[__yy__v2064];{if(yyfequal(__yy__v2065.gmlstate,2)){{var gmls=yyfplus(2.5,__yy_gml_errCheck(yyftime(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),100))),0.5)));var gmlr=0;if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldrivedir,1)){gmlr=180;};draw_sprite_ext(__yy__v2065,YYASSET_REF(0x01000052),0,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,__yy__v2065.gmlholder).x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst, _other,YYASSET_REF(0x00000069)).gmldrivedir),(-100)))),yyInst(_inst,_other,__yy__v2065.gmlholder).y,gmls,gmls,gmlr,16777215,0.5);};};}}};};};};}}function gml_Object_obj_rm_qb_postmatch_Create_0(_inst,_other){_inst.gmlstage_time=g_pBuiltIn.get_current_time();_inst.gmlstage=0;_inst.gmldelay=1000;_inst.gmlpmap=gml_Script_s_get_qb_pmap(_inst,_other);var gmlrating=gml_Script_s_get_match_rating(_inst,_other,_inst.gmlpmap);_inst.gmlcoach_effect=yyfminus(__yy_gml_errCheck(gmlrating),7);_inst.gmlfan_effect=gml_Script_s_get_postmatch_fans_qb(_inst, _other);var gmlteam_effect=yyfminus(__yy_gml_errCheck(gml_Script_s_get_morale(_inst,_other)),__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlprematch_team_morale_qb));_inst.gmlbonus=yyftime(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_tdbonus),__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"stat_touchdowns")));if(yyfequal(gml_Script_s_get_human_fixture_by_week(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek),(-4))){{yyInst(_inst,_other, 100683).gmltext=gml_Script_s_str(_inst,_other,"ui_ByeWeek");yyInst(_inst,_other,100687).visible=false;{var __yy__v2066=GetWithArray(YYASSET_REF(0x00000015));for(var __yy__v2067 in __yy__v2066){if(!__yy__v2066.hasOwnProperty(__yy__v2067))continue;var __yy__v2068=__yy__v2066[__yy__v2067];__yy__v2068.y=yyfminus(__yy__v2068.y,40);}};{var __yy__v2069=GetWithArray(YYASSET_REF(0x00000043));for(var __yy__v2070 in __yy__v2069){if(!__yy__v2069.hasOwnProperty(__yy__v2070))continue;var __yy__v2071=__yy__v2069[__yy__v2070]; __yy__v2071.y=yyfminus(__yy__v2071.y,40);}};{var __yy__v2072=GetWithArray(YYASSET_REF(0x0000004B));for(var __yy__v2073 in __yy__v2072){if(!__yy__v2072.hasOwnProperty(__yy__v2073))continue;var __yy__v2074=__yy__v2072[__yy__v2073];__yy__v2074.y=yyfminus(__yy__v2074.y,40);}};gmlrating=0;_inst.gmlcoach_effect=0;_inst.gmlfan_effect=0;gmlteam_effect=0;_inst.gmlbonus=0;_inst.gmlstage=4;_inst.gmlstage_time=yyfminus(_inst.gmlstage_time,yyftime(__yy_gml_errCheck(_inst.gmlstage),__yy_gml_errCheck(_inst.gmldelay))); yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlprematch_team_morale_qb=gml_Script_s_get_morale(_inst,_other);};};yyInst(_inst,_other,100689).visible=false;yyInst(_inst,_other,100690).visible=false;yyInst(_inst,_other,100691).visible=false;yyInst(_inst,_other,100692).visible=false;yyInst(_inst,_other,100693).visible=false;yyInst(_inst,_other,100694).visible=false;yyInst(_inst,_other,100689).gmltext=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_GameRating"))," "),__yy_gml_errCheck(string(gmlrating))); yyInst(_inst,_other,100690).gmltext=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Coach")),(yyfgreater(_inst.gmlcoach_effect,0)?" +":" ")),__yy_gml_errCheck(string(_inst.gmlcoach_effect)));yyInst(_inst,_other,100691).gmltext=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Team")),(yyfgreaterequal(gmlteam_effect,0)?" +":" ")),__yy_gml_errCheck(string(gmlteam_effect)));yyInst(_inst,_other,100692).gmltext=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst, _other,"ui_Fans")),(yyfgreaterequal(_inst.gmlfan_effect,0)?" +":" ")),__yy_gml_errCheck(string(_inst.gmlfan_effect)));yyInst(_inst,_other,100693).gmltext=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Salary"))," +"),__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_salary)));yyInst(_inst,_other,100694).gmltext=yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_TouchdownBonus"))," ("),__yy_gml_errCheck(string(ds_map_find_value(_inst.gmlpmap, "stat_touchdowns")))),") +"),__yy_gml_errCheck(string(_inst.gmlbonus)));yyInst(_inst,_other,100695).visible=false;yyInst(_inst,_other,100697).gmlactive=false;yyInst(_inst,_other,100697).gmlpercent=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlprematch_team_morale_qb;yyInst(_inst,_other,100697).gmltext=yyfplus(__yy_gml_errCheck(string(round(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlprematch_team_morale_qb))),"%");}function gml_Object_obj_rm_qb_postmatch_Step_0(_inst,_other){{var __yy__v2075=GetWithArray(YYASSET_REF(0x0000004F)); for(var __yy__v2076 in __yy__v2075){if(!__yy__v2075.hasOwnProperty(__yy__v2076))continue;var __yy__v2077=__yy__v2075[__yy__v2076];{if(yyfless(__yy__v2077.depth,_inst.depth)){{__yy__v2077.gmlstage_time=g_pBuiltIn.get_current_time();return;};};}}};yyInst(_inst,_other,100685).gmltext=gml_Script_s_get_credit(_inst,_other);if((yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other)))&&(yyGetBool(mouse_check_button(1)))){_inst.gmldelay=250;};if(yyfless(g_pBuiltIn.get_current_time(),yyfplus(__yy_gml_errCheck(_inst.gmlstage_time), __yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(_inst.gmlstage),1)),__yy_gml_errCheck(_inst.gmldelay)))))){return;};(g_yyPrePostObject__=_inst.gmlstage,_inst.gmlstage=(g_yyPrePostObject__ instanceof Long?_inst.gmlstage.add(1):++_inst.gmlstage),g_yyPrePostObject__);var gmldx=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100685).x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,100685).sprite_width),0.5)));var gmldy=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100685).y), __yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,100685).sprite_height),0.5)));var ___sw1774___=_inst.gmlstage;var ___swc1775___=-1;if(yyCompareVal(___sw1774___,0,g_GMLMathEpsilon,false)==0){___swc1775___=0;}else if(yyCompareVal(___sw1774___,1,g_GMLMathEpsilon,false)==0){___swc1775___=1;}else if(yyCompareVal(___sw1774___,2,g_GMLMathEpsilon,false)==0){___swc1775___=2;}else if(yyCompareVal(___sw1774___,3,g_GMLMathEpsilon,false)==0){___swc1775___=3;}else if(yyCompareVal(___sw1774___,4,g_GMLMathEpsilon, false)==0){___swc1775___=4;}else if(yyCompareVal(___sw1774___,5,g_GMLMathEpsilon,false)==0){___swc1775___=5;}else if(yyCompareVal(___sw1774___,6,g_GMLMathEpsilon,false)==0){___swc1775___=6;}else if(yyCompareVal(___sw1774___,7,g_GMLMathEpsilon,false)==0){___swc1775___=7;}else if(yyCompareVal(___sw1774___,8,g_GMLMathEpsilon,false)==0){___swc1775___=8;}switch(___swc1775___){case 0:{break;}case 1:{yyInst(_inst,_other,100689).visible=true;break;}case 2:{yyInst(_inst,_other,100690).visible=true;yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlrelationship_boss=clamp(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrelationship_boss),__yy_gml_errCheck(_inst.gmlcoach_effect)),1,100);break;}case 3:{yyInst(_inst,_other,100691).visible=true;yyInst(_inst,_other,100697).gmlactive=true;break;}case 4:{yyInst(_inst,_other,100692).visible=true;yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfans=clamp(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfans),__yy_gml_errCheck(_inst.gmlfan_effect)), 1,100);if(yyfgreaterequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfans,100)){gml_Script_s_complete_achievement(_inst,_other,"ACH_FANS100");};break;}case 5:{yyInst(_inst,_other,100693).visible=true;var gmltob=100693;gml_Script_s_create_credit(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmltob).x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,yyInst(_inst,_other,gmltob).gmltext)),0.5))),yyInst(_inst,_other,gmltob).y,gmldx,gmldy,yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlqb_salary,1,(-4),true);break;}case 6:{yyInst(_inst,_other,100694).visible=true;var gmltob=100694;gml_Script_s_create_credit(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmltob).x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,yyInst(_inst,_other,gmltob).gmltext)),0.5))),yyInst(_inst,_other,gmltob).y,gmldx,gmldy,_inst.gmlbonus,1,(-4),true);break;}case 7:{break;}case 8:{yyInst(_inst,_other,100695).visible=true;break; }};}function gml_Object_obj_rm_qb_contract_Create_0(_inst,_other){gml_Script_s_qb_mode_set_up_contract_screen(_inst,_other);}function gml_Object_obj_facility_Draw_0(_inst,_other){}function gml_Object_obj_facility_Draw_64(_inst,_other){draw_self(_inst);draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gmltx=_inst.x;var gmlty=_inst.y;var gmlsw=yyfplus(2,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,_inst.gmltitle)),2)));var gmlsh=yyfplus(1,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_height(_inst, _other,_inst.gmltitle)),2)));gmltx=yyfplus(gmltx,yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2));draw_rectangle_color(yyfminus(yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),2),yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);gml_Script_draw_hd_text(_inst,_other, gmltx,gmlty,string_upper(_inst.gmltitle));var gmlbw=yyfminus(__yy_gml_errCheck(_inst.sprite_width),16);draw_rectangle_color(yyfplus(__yy_gml_errCheck(_inst.x),8),yyfplus(__yy_gml_errCheck(_inst.y),8),yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),8),__yy_gml_errCheck(gmlbw)),yyfplus(__yy_gml_errCheck(_inst.y),24),global.gmlc_backfill,global.gmlc_backfill,global.gmlc_backfill,global.gmlc_backfill,0);gmlbw=yyfminus(gmlbw,4);var gmlprc=clamp(yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlbw),10)), __yy_gml_errCheck(_inst.gmlpercent)),1,gmlbw);draw_rectangle_color(yyfplus(__yy_gml_errCheck(_inst.x),10),yyfplus(__yy_gml_errCheck(_inst.y),10),yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),10),__yy_gml_errCheck(gmlprc)),yyfplus(__yy_gml_errCheck(_inst.y),22),_inst.gmlcolour,_inst.gmlcolour,_inst.gmlcolour,_inst.gmlcolour,0);var gmlsw=yyfdivide(__yy_gml_errCheck(gmlbw),10);var gmli=0;for(;yyfless(gmli,9);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ {draw_line_width_color(yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),10),__yy_gml_errCheck(gmlsw)),yyfplus(__yy_gml_errCheck(_inst.y),8),yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),10),__yy_gml_errCheck(gmlsw)),yyfplus(__yy_gml_errCheck(_inst.y),24),2,global.gmlc_backfill,global.gmlc_backfill);gmlsw=yyfplus(gmlsw,yyfdivide(__yy_gml_errCheck(gmlbw),10));}};}function gml_Object_obj_facility_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltitle="Title";_inst.gmlpercent=0;_inst.gmlcolour=255; }function gml_Object_obj_rm_qb_shopping_Create_0(_inst,_other){{var __yy__v2078=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v2079 in __yy__v2078){if(!__yy__v2078.hasOwnProperty(__yy__v2079))continue;var __yy__v2080=__yy__v2078[__yy__v2079];{yyInst(_inst,_other,100707).gmlcolour=global.gmlc_background;yyInst(_inst,_other,100708).gmlcolour=global.gmlc_background;yyInst(_inst,_other,100709).gmlcolour=global.gmlc_background;var ___sw1778___=__yy__v2080.gmlshopping_type;var ___swc1779___=-1;if(yyCompareVal(___sw1778___, 0,g_GMLMathEpsilon,false)==0){___swc1779___=0;}else if(yyCompareVal(___sw1778___,1,g_GMLMathEpsilon,false)==0){___swc1779___=1;}else if(yyCompareVal(___sw1778___,2,g_GMLMathEpsilon,false)==0){___swc1779___=2;}switch(___swc1779___){case 0:{yyInst(_inst,_other,100707).gmlcolour=global.gmlc_primary;break;}case 1:{yyInst(_inst,_other,100708).gmlcolour=global.gmlc_primary;break;}case 2:{yyInst(_inst,_other,100709).gmlcolour=global.gmlc_primary;break;}};}}};gml_Script_s_update_shopping_buttons(_inst,_other); }function gml_Object_obj_rm_qb_shopping_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmllist_shop=0;}function gml_Object_obj_exhibition_postmatch_Create_0(_inst,_other){{var __yy__v2081=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v2082 in __yy__v2081){if(!__yy__v2081.hasOwnProperty(__yy__v2082))continue;var __yy__v2083=__yy__v2081[__yy__v2082];{yyInst(_inst,_other,100817).gmlteamnames=__yy_gml_array_check(yyInst(_inst,_other,100817).gmlteamnames,2836475347);yyInst(_inst,_other, 100817).gmlteamnames[__yy_gml_array_check_index_set(0)]=ds_map_find_value(__yy__v2083.gmlteam[__yy_gml_array_check_index(0,__yy__v2083.gmlteam)],"tla");yyInst(_inst,_other,100817).gmlteamnames[__yy_gml_array_check_index_set(1)]=ds_map_find_value(__yy__v2083.gmlteam[__yy_gml_array_check_index(1,__yy__v2083.gmlteam)],"tla");yyInst(_inst,_other,100817).gmlratings1=__yy_gml_array_check(yyInst(_inst,_other,100817).gmlratings1,2334993809);yyInst(_inst,_other,100817).gmlratings1[__yy_gml_array_check_index_set(0)]=gml_Script_s_get_team_offense(__yy__v2083, _inst,__yy__v2083.gmlteam[__yy_gml_array_check_index(0,__yy__v2083.gmlteam)]);yyInst(_inst,_other,100817).gmlratings1[__yy_gml_array_check_index_set(1)]=gml_Script_s_get_team_defense(__yy__v2083,_inst,__yy__v2083.gmlteam[__yy_gml_array_check_index(0,__yy__v2083.gmlteam)]);yyInst(_inst,_other,100817).gmlratings2=__yy_gml_array_check(yyInst(_inst,_other,100817).gmlratings2,2684386898);yyInst(_inst,_other,100817).gmlratings2[__yy_gml_array_check_index_set(0)]=gml_Script_s_get_team_offense(__yy__v2083, _inst,__yy__v2083.gmlteam[__yy_gml_array_check_index(1,__yy__v2083.gmlteam)]);yyInst(_inst,_other,100817).gmlratings2[__yy_gml_array_check_index_set(1)]=gml_Script_s_get_team_defense(__yy__v2083,_inst,__yy__v2083.gmlteam[__yy_gml_array_check_index(1,__yy__v2083.gmlteam)]);yyInst(_inst,_other,100817).gmlscores1=__yy_gml_array_create([__yy__v2083.gmlqtr_scores0[__yy_gml_array_check_index(0,__yy__v2083.gmlqtr_scores0)],__yy__v2083.gmlqtr_scores0[__yy_gml_array_check_index(1,__yy__v2083.gmlqtr_scores0)], __yy__v2083.gmlqtr_scores0[__yy_gml_array_check_index(2,__yy__v2083.gmlqtr_scores0)],__yy__v2083.gmlqtr_scores0[__yy_gml_array_check_index(3,__yy__v2083.gmlqtr_scores0)],__yy__v2083.gmltscore[__yy_gml_array_check_index(0,__yy__v2083.gmltscore)]]);yyInst(_inst,_other,100817).gmlscores2=__yy_gml_array_create([__yy__v2083.gmlqtr_scores1[__yy_gml_array_check_index(0,__yy__v2083.gmlqtr_scores1)],__yy__v2083.gmlqtr_scores1[__yy_gml_array_check_index(1,__yy__v2083.gmlqtr_scores1)],__yy__v2083.gmlqtr_scores1[__yy_gml_array_check_index(2, __yy__v2083.gmlqtr_scores1)],__yy__v2083.gmlqtr_scores1[__yy_gml_array_check_index(3,__yy__v2083.gmlqtr_scores1)],__yy__v2083.gmltscore[__yy_gml_array_check_index(1,__yy__v2083.gmltscore)]]);__yy__v2083.gmlbtn_continue_state=0;}}};}function gml_Object_obj_exhibition_postmatch_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlstage=0;_inst.gmlstage_time=0;}function gml_Object_obj_negotiate_num_Create_0(_inst,_other){_inst.gmlhelmet=__yy_gml_array_check(_inst.gmlhelmet,3666812894);_inst.gmlhelmet[__yy_gml_array_check_index_set(2)]=0; _inst.gmlshirt=__yy_gml_array_check(_inst.gmlshirt,1027333011);_inst.gmlshirt[__yy_gml_array_check_index_set(2)]=0;_inst.gmlpants=__yy_gml_array_check(_inst.gmlpants,3194782232);_inst.gmlpants[__yy_gml_array_check_index_set(2)]=0;_inst.gmlpants_b=__yy_gml_array_check(_inst.gmlpants_b,1445469295);_inst.gmlpants_b[__yy_gml_array_check_index_set(2)]=0;gml_Script_s_set_up_uniform_profile(_inst,_other,(-4));}function gml_Object_obj_negotiate_num_Step_0(_inst,_other){var gmldes_scl=max(0,yyfminus(2,__yy_gml_errCheck(abs(yyftime(__yy_gml_errCheck(_inst.gmlposition), 0.4)))));_inst.gmlscl=lerp(_inst.gmlscl,gmldes_scl,0.1);var gmlbuf=yyfminus(78,__yy_gml_errCheck(abs(yyftime(__yy_gml_errCheck(_inst.gmlposition),5.5))));var gmldesx=yyfplus(240,__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlbuf),__yy_gml_errCheck(_inst.gmlposition))));_inst.x=lerp(_inst.x,gmldesx,0.1);_inst.y=144;}function gml_Object_obj_negotiate_num_Draw_64(_inst,_other){shader_set(YYASSET_REF(0x0A000000));shader_set_uniform_f(global.gmlcolorHelmet,1,0,0);shader_set_uniform_f(global.gmlcolorShirt, 0,1,0);shader_set_uniform_f(global.gmlcolorPants,1,0,1);shader_set_uniform_f(global.gmlreplaceHelmet,_inst.gmlhelmet[__yy_gml_array_check_index(2,_inst.gmlhelmet)],_inst.gmlhelmet[__yy_gml_array_check_index(1,_inst.gmlhelmet)],_inst.gmlhelmet[__yy_gml_array_check_index(0,_inst.gmlhelmet)]);shader_set_uniform_f(global.gmlreplaceShirt,_inst.gmlshirt[__yy_gml_array_check_index(2,_inst.gmlshirt)],_inst.gmlshirt[__yy_gml_array_check_index(1,_inst.gmlshirt)],_inst.gmlshirt[__yy_gml_array_check_index(0, _inst.gmlshirt)]);shader_set_uniform_f(global.gmlreplacePants,_inst.gmlpants[__yy_gml_array_check_index(2,_inst.gmlpants)],_inst.gmlpants[__yy_gml_array_check_index(1,_inst.gmlpants)],_inst.gmlpants[__yy_gml_array_check_index(0,_inst.gmlpants)]);draw_sprite_ext(_inst,YYASSET_REF(0x0100012E),0,_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.gmlscl),1),yyfplus(__yy_gml_errCheck(_inst.gmlscl),1),0,16777215,1);shader_reset();draw_set_font(YYASSET_REF(0x07000001));draw_set_halign(1);draw_set_valign(1); if((yyGetBool(yyfless(_inst.gmlposition,0)))||(yyGetBool(_inst.gmlrevealed))){gml_Script_draw_hd_text_transformed(_inst,_other,_inst.x,yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(3,__yy_gml_errCheck(_inst.gmlscl)))),string(_inst.gmlnumber),_inst.gmlscl,_inst.gmlscl,0);}else {gml_Script_draw_hd_text_transformed(_inst,_other,_inst.x,yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(3,__yy_gml_errCheck(_inst.gmlscl)))),"?",_inst.gmlscl,_inst.gmlscl,0);};}function gml_Object_obj_negotiate_num_Draw_0(_inst, _other){}function gml_Object_obj_negotiate_num_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlnumber=0;_inst.gmlscl=2;_inst.gmlposition=0;_inst.gmlrevealed=false;}function gml_Object_obj_halloffame_rm_Create_0(_inst,_other){if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{yyInst(_inst,_other,100196).x=yyInst(_inst,_other,100192).x;yyInst(_inst,_other,100192).visible=false;};};}function gml_Object_obj_life_Create_0(_inst,_other){yyInst(_inst,_other,100667).gmltitle=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst, _other,"ui_Happiness"))," "),__yy_gml_errCheck(string(round(gml_Script_s_get_happiness(_inst,_other))))),"%");yyInst(_inst,_other,100682).gmltext=string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_nrg);if(yyfgreater(gml_Script_s_get_qb_energy(_inst,_other),99)){yyInst(_inst,_other,100678).gmlactive=false;};}function gml_Object_obj_news_dyn_Create_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlhelmet=__yy_gml_array_check(_inst.gmlhelmet,3666812894);_inst.gmlhelmet[__yy_gml_array_check_index_set(2)]=(-1); _inst.gmlshirt=__yy_gml_array_check(_inst.gmlshirt,1027333011);_inst.gmlshirt[__yy_gml_array_check_index_set(2)]=(-1);_inst.gmlpants=__yy_gml_array_check(_inst.gmlpants,3194782232);_inst.gmlpants[__yy_gml_array_check_index_set(2)]=(-1);_inst.gmluniform=instance_create_layer(0,0,"Instances",YYASSET_REF(0x00000085));yyInst(_inst,_other,_inst.gmluniform).visible=false;}function gml_Object_obj_news_dyn_Draw_64(_inst,_other){draw_sprite_ext(_inst,YYASSET_REF(0x010000A1),0,0,0,_inst.image_xscale,_inst.image_yscale, 0,_inst.gmlbg_colour,_inst.gmlbg_alpha);var ___sw1782___=_inst.gmlmsg_type;var ___swc1783___=-1;if(yyCompareVal(___sw1782___,"web",g_GMLMathEpsilon,false)==0){___swc1783___=0;}switch(___swc1783___){case 0:{draw_sprite(_inst,YYASSET_REF(0x01000104),0,0,0);break;}};draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);draw_set_valign(1);draw_set_color(16777215);var gmlsep=(-1);if(yyfgreater(gml_Script_string_hd_height_ext(_inst,_other,_inst.gmltext,gmlsep,_inst.gmlmsg_width),80)){gmlsep=12;};gml_Script_draw_hd_text_ext(_inst, _other,270,160,_inst.gmltext,gmlsep,_inst.gmlmsg_width);gml_Script_s_draw_player_image(_inst,_other,36,132,_inst.gmlpmap,2);}function gml_Object_obj_news_dyn_Draw_0(_inst,_other){}function gml_Object_obj_news_dyn_KeyPress_27(_inst,_other){room_goto(YYASSET_REF(0x0300000E));}function gml_Object_obj_news_dyn_CleanUp_0(_inst,_other){if(yyGetBool(ds_exists(_inst.gmlpmap,1))){{ds_map_destroy(_inst.gmlpmap);_inst.gmlpmap=(-1);};};}function gml_Object_obj_news_dyn_PreCreate_0(_inst,_other){event_inherited(_inst, _other);_inst.gmltext="0";_inst.gmlmsg_width=306;_inst.gmlmsg_type="";_inst.gmlbg_colour=global.gmlc_background;_inst.gmlbg_alpha=0.8;_inst.gmlpmap=(-1);}function gml_Object_obj_meter_happiness_Create_0(_inst,_other){_inst.gmlold_percent=gml_Script_s_get_happiness(_inst,_other);_inst.gmltitle=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Happiness"))," "),__yy_gml_errCheck(string(round(_inst.gmlold_percent)))),"%");if(yyfgreater(_inst.gmlold_percent,25)){_inst.gmlcolour=global.gmlc_primary; };}function gml_Object_obj_meter_happiness_Step_0(_inst,_other){_inst.gmlold_percent=lerp(_inst.gmlold_percent,gml_Script_s_get_happiness(_inst,_other),0.1);_inst.gmltitle=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Happiness"))," "),__yy_gml_errCheck(string(round(_inst.gmlold_percent)))),"%");if(yyfgreater(_inst.gmlold_percent,25)){_inst.gmlcolour=global.gmlc_primary;};}function gml_Object_obj_college_nfl_draft_Create_0(_inst,_other){gml_Script_s_college_draft_refresh(_inst, _other);}function gml_Object_obj_college_nfl_draft_Draw_64(_inst,_other){}function gml_Object_obj_nx_Create_0(_inst,_other){gml_Script_s_nx_init(_inst,_other);}function gml_Object_obj_btn_goforit_Create_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltxt=gml_Script_s_str(_inst,_other,"match_GoForIt");}function gml_Object_obj_btn_goforit_Step_0(_inst,_other){{var __yy__v2084=GetWithArray(YYASSET_REF(0x0000004F));for(var __yy__v2085 in __yy__v2084){if(!__yy__v2084.hasOwnProperty(__yy__v2085))continue; var __yy__v2086=__yy__v2084[__yy__v2085];return;}};_inst.gmlmx=device_mouse_x_to_gui(0);_inst.gmlmy=device_mouse_y_to_gui(0);_inst.gmlhover=false;if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlstate,10)){return;};if(yyGetBool(global.gmlgamepad)){{if((yyGetBool(gamepad_button_check_pressed(yyInst(_inst,_other,global.gmlgp).gmlslot,_inst.gmlgp_mapped_button)))||(yyGetBool(gamepad_button_check_pressed(yyInst(_inst,_other,global.gmlgp).gmlslot,_inst.gmlgp_mapped_hidden)))){gml_Script_btn_match_goforit(_inst, _other);};};}else {{if(!yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other))){return;};if(yyGetBool(point_in_rectangle(_inst.gmlmx,_inst.gmlmy,_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height))))){_inst.gmlhover=true;};if((yyGetBool(_inst.gmlhover))&&(yyGetBool(mouse_check_button_released(1)))){gml_Script_btn_match_goforit(_inst,_other);};};};}function gml_Object_obj_btn_goforit_Draw_64(_inst, _other){if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlstate,10)){return;};{var __yy__v2087=GetWithArray(YYASSET_REF(0x0000004F));for(var __yy__v2088 in __yy__v2087){if(!__yy__v2087.hasOwnProperty(__yy__v2088))continue;var __yy__v2089=__yy__v2087[__yy__v2088];return;}};draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);draw_set_valign(1);draw_sprite_ext(_inst,_inst.sprite_index,0,_inst.x,_inst.y,1,1,0,16777215,1);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(_inst.x), 48),yyfplus(__yy_gml_errCheck(_inst.y),6),_inst.gmltxt);}function gml_Object_obj_btn_goforit_Draw_0(_inst,_other){}function gml_Object_obj_btn_goforit_Draw_75(_inst,_other){if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlstate,10)){return;};event_inherited(_inst,_other);}function gml_Object_obj_btn_goforit_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlonClickAction=(-4);_inst.gmlhover=false;_inst.gmlnum_tos=0;}function gml_Object_obj_halloffame_pr_rm_Create_0(_inst,_other){ if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{yyInst(_inst,_other,100223).x=yyInst(_inst,_other,100221).x;yyInst(_inst,_other,100221).visible=false;};};}function gml_Object_obj_options_controls_Create_0(_inst,_other){gml_Script_slog(_inst,_other,"obj_options_controls.create");gml_Script_s_update_control_screen(_inst,_other,1);}function gml_Object_obj_meter_conditionQB_Create_0(_inst,_other){_inst.gmlold_percent=gml_Script_s_get_qb_energy(_inst,_other);_inst.gmltitle=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst, _other,"ui_Condition"))," "),__yy_gml_errCheck(string(round(_inst.gmlold_percent)))),"%");_inst.gmlcolour=gml_Script_s_get_condition_colour(_inst,_other,_inst.gmlold_percent,65280);}function gml_Object_obj_meter_conditionQB_Step_0(_inst,_other){_inst.gmlold_percent=lerp(_inst.gmlold_percent,gml_Script_s_get_qb_energy(_inst,_other),0.1);_inst.gmltitle=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Condition"))," "),__yy_gml_errCheck(string(round(_inst.gmlold_percent)))), "%");_inst.gmlcolour=gml_Script_s_get_condition_colour(_inst,_other,_inst.gmlold_percent,65280);}function gml_Object_obj_rm_exhibition_Create_0(_inst,_other){gml_Script_slog(_inst,_other,yyfplus("RM_EXH_CREATE A: ROSTER P0: ",__yy_gml_errCheck(gml_Script_roster_short_desc(_inst,_other,global.gmlexh_roster_p0))));gml_Script_slog(_inst,_other,yyfplus("RM_EXH_CREATE A: ROSTER P1: ",__yy_gml_errCheck(gml_Script_roster_short_desc(_inst,_other,global.gmlexh_roster_p1))));gml_Script_s_set_up_uniforms_exhibition(_inst, _other);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsim_action=false;_inst.gmlteam0=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteam[__yy_gml_array_check_index(0,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteam)];_inst.gmlteam1=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteam[__yy_gml_array_check_index(1,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteam)];_inst.gmlteam0_filename=gml_Script_get_ex_uniform_file(_inst,_other,global.gmlexh_teamset_p0);_inst.gmlteam1_filename=gml_Script_get_ex_uniform_file(_inst, _other,global.gmlexh_teamset_p1);var ___sw1792___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlforce_uniform_sel1;var ___swc1793___=-1;if(yyCompareVal(___sw1792___,0,g_GMLMathEpsilon,false)==0){___swc1793___=0;}else if(yyCompareVal(___sw1792___,1,g_GMLMathEpsilon,false)==0){___swc1793___=1;}else if(yyCompareVal(___sw1792___,2,g_GMLMathEpsilon,false)==0){___swc1793___=2;}else if(yyCompareVal(___sw1792___,3,g_GMLMathEpsilon,false)==0){___swc1793___=3;}switch(___swc1793___){case 0:{gml_Script_s_load_uniform_file2(_inst, _other,ds_map_find_value(_inst.gmlteam0,"uid"),100786,1,_inst.gmlteam0_filename,true);break;}case 1:{gml_Script_s_load_uniform_file2(_inst,_other,ds_map_find_value(_inst.gmlteam0,"uid"),100786,0,_inst.gmlteam0_filename,true);break;}case 2:{gml_Script_s_load_uniform_file2(_inst,_other,ds_map_find_value(_inst.gmlteam0,"uid"),100786,2,_inst.gmlteam0_filename,true);break;}case 3:{gml_Script_s_load_uniform_file2(_inst,_other,ds_map_find_value(_inst.gmlteam0,"uid"),100786,3,_inst.gmlteam0_filename,true); break;}};var ___sw1794___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlforce_uniform_sel2;var ___swc1795___=-1;if(yyCompareVal(___sw1794___,0,g_GMLMathEpsilon,false)==0){___swc1795___=0;}else if(yyCompareVal(___sw1794___,1,g_GMLMathEpsilon,false)==0){___swc1795___=1;}else if(yyCompareVal(___sw1794___,2,g_GMLMathEpsilon,false)==0){___swc1795___=2;}else if(yyCompareVal(___sw1794___,3,g_GMLMathEpsilon,false)==0){___swc1795___=3;}switch(___swc1795___){case 0:{gml_Script_s_load_uniform_file2(_inst,_other, ds_map_find_value(_inst.gmlteam1,"uid"),100787,0,_inst.gmlteam1_filename,true);break;}case 1:{gml_Script_s_load_uniform_file2(_inst,_other,ds_map_find_value(_inst.gmlteam1,"uid"),100787,1,_inst.gmlteam1_filename,true);break;}case 2:{gml_Script_s_load_uniform_file2(_inst,_other,ds_map_find_value(_inst.gmlteam1,"uid"),100787,2,_inst.gmlteam1_filename,true);break;}case 3:{gml_Script_s_load_uniform_file2(_inst,_other,ds_map_find_value(_inst.gmlteam1,"uid"),100787,3,_inst.gmlteam1_filename,true);break;} };var ___sw1796___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlforce_uniform_sel1;var ___swc1797___=-1;if(yyCompareVal(___sw1796___,0,g_GMLMathEpsilon,false)==0){___swc1797___=0;}else if(yyCompareVal(___sw1796___,1,g_GMLMathEpsilon,false)==0){___swc1797___=1;}else if(yyCompareVal(___sw1796___,2,g_GMLMathEpsilon,false)==0){___swc1797___=2;}else if(yyCompareVal(___sw1796___,3,g_GMLMathEpsilon,false)==0){___swc1797___=3;}switch(___swc1797___){case 0:{yyInst(_inst,_other,100791).gmltext=gml_Script_s_str(_inst, _other,"ui_Away");break;}case 1:{yyInst(_inst,_other,100791).gmltext=gml_Script_s_str(_inst,_other,"ui_Home");break;}case 2:{yyInst(_inst,_other,100791).gmltext=gml_Script_s_str(_inst,_other,"ui_Alternate");break;}case 3:{yyInst(_inst,_other,100791).gmltext=gml_Script_s_str(_inst,_other,"ui_Rush");break;}};var ___sw1798___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlforce_uniform_sel2;var ___swc1799___=-1;if(yyCompareVal(___sw1798___,0,g_GMLMathEpsilon,false)==0){___swc1799___=0;}else if(yyCompareVal(___sw1798___, 1,g_GMLMathEpsilon,false)==0){___swc1799___=1;}else if(yyCompareVal(___sw1798___,2,g_GMLMathEpsilon,false)==0){___swc1799___=2;}else if(yyCompareVal(___sw1798___,3,g_GMLMathEpsilon,false)==0){___swc1799___=3;}switch(___swc1799___){case 0:{yyInst(_inst,_other,100792).gmltext=gml_Script_s_str(_inst,_other,"ui_Home");break;}case 1:{yyInst(_inst,_other,100792).gmltext=gml_Script_s_str(_inst,_other,"ui_Away");break;}case 2:{yyInst(_inst,_other,100792).gmltext=gml_Script_s_str(_inst,_other,"ui_Alternate"); break;}case 3:{yyInst(_inst,_other,100792).gmltext=gml_Script_s_str(_inst,_other,"ui_Rush");break;}};_inst.gmldefense=__yy_gml_array_check(_inst.gmldefense,2468049442);_inst.gmldefense[__yy_gml_array_check_index_set(0)]=gml_Script_s_get_team_defense_exh(_inst,_other,_inst.gmlteam0,global.gmlexh_roster_p0);_inst.gmloffense=__yy_gml_array_check(_inst.gmloffense,2881329983);_inst.gmloffense[__yy_gml_array_check_index_set(0)]=gml_Script_s_get_team_offense_exh(_inst,_other,_inst.gmlteam0,global.gmlexh_roster_p0); _inst.gmldefense[__yy_gml_array_check_index_set(1)]=gml_Script_s_get_team_defense_exh(_inst,_other,_inst.gmlteam1,global.gmlexh_roster_p1);_inst.gmloffense[__yy_gml_array_check_index_set(1)]=gml_Script_s_get_team_offense_exh(_inst,_other,_inst.gmlteam1,global.gmlexh_roster_p1);gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus("T0 Defense/Offense [",__yy_gml_errCheck(string(_inst.gmldefense[__yy_gml_array_check_index(0,_inst.gmldefense)]))),","),__yy_gml_errCheck(string(_inst.gmloffense[__yy_gml_array_check_index(0, _inst.gmloffense)]))),"]"));gml_Script_slog(_inst,_other,yyfplus(yyfplus(yyfplus(yyfplus("T1 Defense/Offense [",__yy_gml_errCheck(string(_inst.gmldefense[__yy_gml_array_check_index(1,_inst.gmldefense)]))),","),__yy_gml_errCheck(string(_inst.gmloffense[__yy_gml_array_check_index(1,_inst.gmloffense)]))),"]"));{var __yy__v2090=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v2091 in __yy__v2090){if(!__yy__v2090.hasOwnProperty(__yy__v2091))continue;var __yy__v2092=__yy__v2090[__yy__v2091];{__yy__v2092.gmlcol_helmet_home=yyInst(_inst, _other,100787).gmlhelmet;__yy__v2092.gmlcol_logo_home=yyInst(_inst,_other,100787).gmllogo;__yy__v2092.gmlcol_shirt_home=yyInst(_inst,_other,100787).gmlshirt;__yy__v2092.gmlcol_sleeve_home=yyInst(_inst,_other,100787).gmlsleeve;__yy__v2092.gmlcol_pants_home=yyInst(_inst,_other,100787).gmlpants;__yy__v2092.gmlcol_pants_home_b=yyInst(_inst,_other,100787).gmlpants_b;__yy__v2092.gmlcol_stripe_home=yyInst(_inst,_other,100787).gmlstripe;__yy__v2092.gmlcol_socks1_home=yyInst(_inst,_other,100787).gmlsocks1; __yy__v2092.gmlcol_socks2_home=yyInst(_inst,_other,100787).gmlsocks2;__yy__v2092.gmlcol_endzone_home=yyInst(_inst,_other,100787).gmlendzone;__yy__v2092.gmlcol_helmet_away=yyInst(_inst,_other,100786).gmlhelmet;__yy__v2092.gmlcol_logo_away=yyInst(_inst,_other,100786).gmllogo;__yy__v2092.gmlcol_shirt_away=yyInst(_inst,_other,100786).gmlshirt;__yy__v2092.gmlcol_sleeve_away=yyInst(_inst,_other,100786).gmlsleeve;__yy__v2092.gmlcol_pants_away=yyInst(_inst,_other,100786).gmlpants;__yy__v2092.gmlcol_pants_away_b=yyInst(_inst, _other,100786).gmlpants_b;__yy__v2092.gmlcol_stripe_away=yyInst(_inst,_other,100786).gmlstripe;__yy__v2092.gmlcol_socks1_away=yyInst(_inst,_other,100786).gmlsocks1;__yy__v2092.gmlcol_socks2_away=yyInst(_inst,_other,100786).gmlsocks2;__yy__v2092.gmlcol_endzone_away=yyInst(_inst,_other,100786).gmlendzone;}}};yyInst(_inst,_other,100788).gmltitle=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Ball"))," "),__yy_gml_errCheck(string(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_ball), 1))));yyInst(_inst,_other,100790).gmlimage_num=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_ball;if(yyGetBool(gml_Script_s_is_multicon(_inst,_other))){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayerteamindex=(-1);yyInst(_inst,_other,100797).gmlactive=0;yyInst(_inst,_other,100798).gmlactive=0;};};gml_Script_refresh_exh_roster_buttons(_inst,_other);gml_Script_s_set_exhibition_buttons(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlbtn_continue_state);gml_Script_s_update_exhibition_controllers(_inst, _other);gml_Script_s_save_options(_inst,_other);gml_Script_slog(_inst,_other,yyfplus("RM_EXH_CREATE B: ROSTER P0: ",__yy_gml_errCheck(gml_Script_roster_short_desc(_inst,_other,global.gmlexh_roster_p0))));gml_Script_slog(_inst,_other,yyfplus("RM_EXH_CREATE B: ROSTER P1: ",__yy_gml_errCheck(gml_Script_roster_short_desc(_inst,_other,global.gmlexh_roster_p1))));}function gml_Object_obj_rm_exhibition_Draw_64(_inst,_other){draw_sprite(_inst,YYASSET_REF(0x010000B8),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlforce_uniform_sel1, yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100791).x),21),yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100791).y),40));draw_sprite(_inst,YYASSET_REF(0x010000B8),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlforce_uniform_sel2,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100792).x),21),yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100792).y),38));draw_set_font(global.gmlfnt_flex);draw_set_halign(1);draw_set_valign(1);var gmltx=yyftime(__yy_gml_errCheck(display_get_gui_width()),0.24);var gmlty=yyftime(__yy_gml_errCheck(display_get_gui_height()), 0.65);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(ds_map_find_value(_inst.gmlteam0,"name")));draw_set_font(global.gmlfnt_small_flex);gmlty=yyfplus(gmlty,2);draw_set_halign(2);gmlty=yyfplus(gmlty,14);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(gml_Script_s_str(_inst,_other,"ui_Defense")));var gmlsx=gmltx;draw_sprite_ext(_inst,YYASSET_REF(0x01000073),_inst.gmldefense[__yy_gml_array_check_index(0,_inst.gmldefense)],yyfplus(__yy_gml_errCheck(gmlsx),5),gmlty,1,1,0,global.gmlc_defense, 1);gmlty=yyfplus(gmlty,14);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(gml_Script_s_str(_inst,_other,"ui_Offense")));draw_sprite_ext(_inst,YYASSET_REF(0x01000073),_inst.gmloffense[__yy_gml_array_check_index(0,_inst.gmloffense)],yyfplus(__yy_gml_errCheck(gmlsx),5),gmlty,1,1,0,global.gmlc_offense,1);draw_set_font(global.gmlfnt_flex);draw_set_halign(1);draw_set_valign(1);var gmltx=yyftime(__yy_gml_errCheck(display_get_gui_width()),0.76);var gmlty=yyftime(__yy_gml_errCheck(display_get_gui_height()), 0.65);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(ds_map_find_value(_inst.gmlteam1,"name")));draw_set_font(global.gmlfnt_small_flex);gmlty=yyfplus(gmlty,2);draw_set_halign(0);gmlty=yyfplus(gmlty,14);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(gml_Script_s_str(_inst,_other,"ui_Offense")));var gmlsx=gmltx;draw_sprite_ext(_inst,YYASSET_REF(0x01000073),_inst.gmloffense[__yy_gml_array_check_index(1,_inst.gmloffense)],yyfminus(__yy_gml_errCheck(gmlsx),5),gmlty,(-1),1, 0,global.gmlc_offense,1);gmlty=yyfplus(gmlty,14);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(gml_Script_s_str(_inst,_other,"ui_Defense")));draw_sprite_ext(_inst,YYASSET_REF(0x01000073),_inst.gmldefense[__yy_gml_array_check_index(1,_inst.gmldefense)],yyfminus(__yy_gml_errCheck(gmlsx),5),gmlty,(-1),1,0,global.gmlc_defense,1);}function gml_Object_obj_meter_lifestyle_Create_0(_inst,_other){_inst.gmlold_percent=gml_Script_s_get_lifestyle(_inst,_other);_inst.gmltitle=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst, _other,"ui_Lifestyle"))," "),__yy_gml_errCheck(string(_inst.gmlold_percent))),"%");if(yyfgreater(_inst.gmlold_percent,25)){_inst.gmlcolour=global.gmlc_primary;};}function gml_Object_obj_meter_lifestyle_Step_0(_inst,_other){_inst.gmltitle=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Lifestyle"))," "),__yy_gml_errCheck(string(gml_Script_s_get_lifestyle(_inst,_other)))),"%");_inst.gmlold_percent=lerp(_inst.gmlold_percent,gml_Script_s_get_lifestyle(_inst,_other),0.1);if(yyfgreater(_inst.gmlold_percent, 25)){_inst.gmlcolour=global.gmlc_primary;};}function gml_Object_obj_checkbox012_Step_0(_inst,_other){if(!yyGetBool(_inst.visible)){return;};if((yyGetBool(_inst.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(_inst.layer))))){return;};if(!yyGetBool(_inst.gmlactive)){return;};{var __yy__v2093=GetWithArray(YYASSET_REF(0x0000004F));for(var __yy__v2094 in __yy__v2093){if(!__yy__v2093.hasOwnProperty(__yy__v2094))continue;var __yy__v2095=__yy__v2093[__yy__v2094];if(yyfless(__yy__v2095.depth,_inst.depth)){return; };}};_inst.gmlclicked=false;if(yyGetBool(global.gmlgamepad)){{if((yyGetBool(yyfequal(yyInst(_inst,_other,global.gmlgp).gmlui_selected,_inst.id)))&&(yyGetBool(gamepad_button_check_released(yyInst(_inst,_other,global.gmlgp).gmlslot,global.gmlgp_select)))){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))){audio_play_sound(YYASSET_REF(0x02000006),1,false);};(g_yyPrePostObject__=_inst.gmlstate,_inst.gmlstate=(g_yyPrePostObject__ instanceof Long?_inst.gmlstate.add(1):++_inst.gmlstate), g_yyPrePostObject__);if(yyfgreater(_inst.gmlstate,2)){_inst.gmlstate=0;};if(yyGetBool(_inst.gmlonClickAction)){script_execute(_inst,_other,_inst.gmlonClickAction);};if((yyGetBool(_inst.gmlstate))&&(yyGetBool(yyfnotequal(_inst.gmlclick_info,"")))){{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,_inst.gmlclick_info),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};};};};};}else {{if(!yyGetBool(gml_Script_s_is_touch_allowed(_inst, _other))){return;};if(yyGetBool(point_in_rectangle(device_mouse_x_to_gui(0),device_mouse_y_to_gui(0),_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height))))){{if(yyGetBool(mouse_check_button_released(1))){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))){audio_play_sound(YYASSET_REF(0x02000006),1,false);};(g_yyPrePostObject__=_inst.gmlstate, _inst.gmlstate=(g_yyPrePostObject__ instanceof Long?_inst.gmlstate.add(1):++_inst.gmlstate),g_yyPrePostObject__);if(yyfgreater(_inst.gmlstate,2)){_inst.gmlstate=0;};if(yyGetBool(_inst.gmlonClickAction)){script_execute(_inst,_other,_inst.gmlonClickAction);};if((yyGetBool(_inst.gmlstate))&&(yyGetBool(yyfnotequal(_inst.gmlclick_info,"")))){{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,_inst.gmlclick_info),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear, "",global.gmlc_background,1);};};};};};};};};}function gml_Object_obj_checkbox012_Draw_64(_inst,_other){var gmlf=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),60))),1)),2);var gmlcol=16777215;if(yyGetBool(gml_Script_s_is_ui_selected(_inst,_other))){gmlcol=gml_Script_s_ui_selected_color(_inst,_other);};draw_sprite_ext(_inst,_inst.sprite_index,_inst.gmlstate,_inst.x,_inst.y,1,1,0,gmlcol,1);draw_set_font(global.gmlfnt_small_flex);draw_set_valign(1); if(yyfequal(_inst.gmltxt_side,0)){{draw_set_halign(2);gml_Script_draw_hd_text(_inst,_other,yyfminus(__yy_gml_errCheck(_inst.x),8),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),0.5))),_inst.gmltext);};}else {{draw_set_halign(0);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(_inst.x),18),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),0.5))),_inst.gmltext);};};}function gml_Object_obj_checkbox012_Draw_0(_inst, _other){}function gml_Object_obj_checkbox012_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlstate=0;_inst.gmltext=gml_Script_s_str(_inst,_other,"");_inst.gmlclick_info="";_inst.gmlactive=true;_inst.gmlonClickAction=(-4);_inst.gmltxt_side=0;}function gml_Object_obj_button_9s_Create_0(_inst,_other){event_inherited(_inst,_other);if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)){_inst.gmlcolour=global.gmlc_buttons;}else {if(yyGetBool(gml_Script_s_is_co_mode(_inst, _other))){{if(yyfequal(_inst.gmlcolour,new Long(4294967295,0,false))){_inst.gmlcolour=global.gmlc_background;};};}else {_inst.gmlcolour=global.gmlc_background;};};if(yyGetBool(_inst.gmlbtn_image)){_inst.sprite_index=_inst.gmlbtn_image;};}function gml_Object_obj_button_9s_Step_0(_inst,_other){if(!yyGetBool(_inst.visible)){return;};if((yyGetBool(_inst.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(_inst.layer))))){return;};if(!yyGetBool(_inst.gmlactive)){return;};{var __yy__v2096=GetWithArray(YYASSET_REF(0x0000004F)); for(var __yy__v2097 in __yy__v2096){if(!__yy__v2096.hasOwnProperty(__yy__v2097))continue;var __yy__v2098=__yy__v2096[__yy__v2097];if(yyfless(__yy__v2098.depth,_inst.depth)){return;};}};{var __yy__v2099=GetWithArray(YYASSET_REF(0x00000048));for(var __yy__v2100 in __yy__v2099){if(!__yy__v2099.hasOwnProperty(__yy__v2100))continue;var __yy__v2101=__yy__v2099[__yy__v2100];if((yyGetBool(__yy__v2101.gmlediting))&&(yyGetBool(!yyGetBool(__yy__v2101.gmlcustom_keyboard)))){return;};}};_inst.gmlhover=false;_inst.image_index=0; if(yyGetBool(global.gmlgamepad)){{_inst.gmlclicked=false;if((yyGetBool((yyGetBool(yyfequal(yyInst(_inst,_other,global.gmlgp).gmlui_selected,_inst.id)))&&(yyGetBool(gamepad_button_check(yyInst(_inst,_other,global.gmlgp).gmlslot,global.gmlgp_select)))))||(yyGetBool(gamepad_button_check(yyInst(_inst,_other,global.gmlgp).gmlslot,_inst.gmlgp_mapped_button)))||(yyGetBool(gamepad_button_check(yyInst(_inst,_other,global.gmlgp).gmlslot,_inst.gmlgp_mapped_hidden)))){{_inst.image_index=1;_inst.gmlclicked=true; yyInst(_inst,_other,global.gmlgp).gmlui_selected=_inst.id;};};if((yyGetBool(yyfequal(yyInst(_inst,_other,global.gmlgp).gmlui_selected,_inst.id)))&&(yyGetBool((yyGetBool(gamepad_button_check_released(yyInst(_inst,_other,global.gmlgp).gmlslot,global.gmlgp_select)))||(yyGetBool(gamepad_button_check_released(yyInst(_inst,_other,global.gmlgp).gmlslot,_inst.gmlgp_mapped_button)))||(yyGetBool(gamepad_button_check_released(yyInst(_inst,_other,global.gmlgp).gmlslot,_inst.gmlgp_mapped_hidden)))))){{if(yyGetBool(ds_map_find_value(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))){audio_play_sound(YYASSET_REF(0x02000006),1,false);};gml_Script_s_save_last_selected(_inst,_other);if(yyGetBool(_inst.gmlgoto_room)){room_goto(_inst.gmlgoto_room);}else {if(yyGetBool(_inst.gmlonClickAction)){script_execute(_inst,_other,_inst.gmlonClickAction);};};};};};}else {{if(!yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other))){return;};if(yyGetBool(point_in_rectangle(device_mouse_x_to_gui(0),device_mouse_y_to_gui(0),_inst.x,_inst.y, yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height))))){{_inst.gmlhover=true;};};if((yyGetBool(mouse_check_button_pressed(1)))&&(yyGetBool(_inst.gmlhover))){{_inst.image_index=1;_inst.gmlclicked=true;};};if((yyGetBool(mouse_check_button(1)))&&(yyGetBool(_inst.gmlclicked))&&(yyGetBool(_inst.gmlhover))){{_inst.image_index=1;};}else {{_inst.image_index=0;};};if((yyGetBool(mouse_check_button_released(1)))&&(yyGetBool(_inst.gmlclicked))){ {_inst.gmlclicked=false;if(yyGetBool(_inst.gmlhover)){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))){audio_play_sound(YYASSET_REF(0x02000006),1,false);};if(yyGetBool(_inst.gmlgoto_room)){room_goto(_inst.gmlgoto_room);}else {if(yyGetBool(_inst.gmlonClickAction)){script_execute(_inst,_other,_inst.gmlonClickAction);};};};};};};};};}function gml_Object_obj_button_9s_Draw_0(_inst,_other){}function gml_Object_obj_button_9s_Draw_64(_inst,_other){ draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gmltx=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2)));var gmlty=yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_height),2)));gmltx=yyfplus(gmltx,1);gmlty=yyfminus(gmlty,1);if(!yyGetBool(_inst.gmlactive)){{draw_sprite_ext(_inst,_inst.sprite_index,1,yyfplus(__yy_gml_errCheck(_inst.x),2),yyfminus(__yy_gml_errCheck(_inst.y),2),_inst.image_xscale, _inst.image_yscale,0,4210752,1);draw_set_color(4210752);};}else {if(!yyGetBool((yyGetBool(_inst.gmlclicked))&&(yyGetBool(_inst.gmlhover)))){{var gmlf=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),60))),1)),2);{var __yy__v2102=GetWithArray(YYASSET_REF(0x0000004F));for(var __yy__v2103 in __yy__v2102){if(!__yy__v2102.hasOwnProperty(__yy__v2103))continue;var __yy__v2104=__yy__v2102[__yy__v2103];if(yyfless(__yy__v2104.depth,_inst.depth)){ gmlf=0;};}};if(yyGetBool(gml_Script_s_is_new_shadow(_inst,_other))){{draw_sprite_ext(_inst,_inst.sprite_index,1,_inst.x,_inst.y,_inst.image_xscale,_inst.image_yscale,0,global.gmlc_shadow,1);draw_sprite_ext(_inst,_inst.sprite_index,1,yyfplus(__yy_gml_errCheck(_inst.x),2),yyfminus(__yy_gml_errCheck(_inst.y),2),_inst.image_xscale,_inst.image_yscale,0,16777215,1);};}else {{draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y,_inst.image_xscale,_inst.image_yscale,0,16777215,1);}; };if(yyGetBool(gml_Script_s_is_ui_selected(_inst,_other))){draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y,_inst.image_xscale,_inst.image_yscale,0,gml_Script_s_ui_selected_color(_inst,_other),1);};draw_sprite_ext(_inst,_inst.sprite_index,2,_inst.x,_inst.y,_inst.image_xscale,_inst.image_yscale,0,_inst.gmlcolour,1);if((yyGetBool(_inst.gmlflash))&&(yyGetBool(yyfgreater(gmlf,0.5)))){draw_sprite_ext(_inst,_inst.sprite_index,2,_inst.x,_inst.y,_inst.image_xscale,_inst.image_yscale, 0,global.gmlc_primary,1);};if(yyGetBool(_inst.gmlcontinue_icon)){draw_sprite(_inst,_inst.gmlcontinue_icon,0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),8),yyfminus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),0.5))),1));};};}else {{draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y,_inst.image_xscale,_inst.image_yscale,0,16777215,1);draw_sprite_ext(_inst,_inst.sprite_index,2,yyfminus(__yy_gml_errCheck(_inst.x), 2),yyfplus(__yy_gml_errCheck(_inst.y),2),_inst.image_xscale,_inst.image_yscale,0,_inst.gmlcolour,1);if(yyGetBool(_inst.gmlcontinue_icon)){draw_sprite(_inst,_inst.gmlcontinue_icon,0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),10),yyfplus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),0.5))),1));};gmltx=yyfminus(gmltx,2);gmlty=yyfplus(gmlty,2);};};};if(yyfequal(_inst.object_index,YYASSET_REF(0x0000001B))){{ if(yyfnotequal(_inst.gmlimage,(-4))){draw_sprite(_inst,_inst.gmlimage,_inst.gmlimage_num,gmltx,gmlty);}else {gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,_inst.gmltext);};};}else {{if((yyGetBool(yyfnotequal(_inst.gmlimage,(-4))))&&(yyGetBool(yyfnotequal(_inst.gmltext,"")))){{draw_set_halign(2);draw_set_color(16777215);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(_inst.gmltext));gmltx=yyfplus(gmltx,yyfplus(2,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(sprite_get_width(_inst.gmlimage)), 2))));draw_sprite_ext(_inst,_inst.gmlimage,_inst.gmlimage_num,gmltx,gmlty,1,1,0,(yyGetBool(_inst.gmlactive)?16777215:4210752),1);};}else {if(yyfnotequal(_inst.gmlimage,(-4))){draw_sprite_ext(_inst,_inst.gmlimage,_inst.gmlimage_num,gmltx,gmlty,1,1,0,gml_Script_s_ui_selected_color(_inst,_other),1);}else {{draw_set_color(16777215);gml_Script_draw_hd_text_ext(_inst,_other,gmltx,gmlty,string_upper(_inst.gmltext),12,yyfminus(__yy_gml_errCheck(_inst.sprite_width),6));};};};};};draw_set_color(16777215);}function gml_Object_obj_button_9s_PreCreate_0(_inst, _other){event_inherited(_inst,_other);_inst.gmltext=gml_Script_s_str(_inst,_other,"");_inst.gmlonClickAction=kgml_Script_btn_click_Continue;_inst.gmlcolour=new Long(4294967295,0,false);_inst.gmlhover=false;_inst.gmlclicked=false;_inst.gmlimage=(-4);_inst.gmlimage_num=0;_inst.gmlactive=true;_inst.gmlcontinue_icon=(-4);_inst.gmlbtn_image=(-4);_inst.gmlflash=false;_inst.gmluid=0;_inst.gmlgp_selected=0;_inst.gmlgoto_room=(-1);}function gml_Object_obj_box_relationship_Create_0(_inst,_other){_inst.gmlimage=YYASSET_REF(0x0100006B); var ___sw1802___=_inst.gmlrelationship_type;var ___swc1803___=-1;if(yyCompareVal(___sw1802___,0,g_GMLMathEpsilon,false)==0){___swc1803___=0;}else if(yyCompareVal(___sw1802___,1,g_GMLMathEpsilon,false)==0){___swc1803___=1;}else if(yyCompareVal(___sw1802___,2,g_GMLMathEpsilon,false)==0){___swc1803___=2;}switch(___swc1803___){case 0:{_inst.gmltitle=gml_Script_s_str(_inst,_other,"ui_Coach");_inst.gmlpercent=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrelationship_boss;break;}case 1:{_inst.gmltitle=gml_Script_s_str(_inst, _other,"ui_Team");_inst.gmlpercent=gml_Script_s_get_morale(_inst,_other);break;}case 2:{_inst.gmltitle=gml_Script_s_str(_inst,_other,"ui_Fans");_inst.gmlpercent=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfans;break;}};_inst.gmlimage_num=gml_Script_s_get_attitude_icon(_inst,_other,_inst.gmlpercent);_inst.gmltext=yyfplus(__yy_gml_errCheck(string(round(_inst.gmlpercent))),"%");}function gml_Object_obj_box_relationship_Step_0(_inst,_other){if(!yyGetBool(_inst.gmlactive)){return;};var ___sw1806___=_inst.gmlrelationship_type; var ___swc1807___=-1;if(yyCompareVal(___sw1806___,0,g_GMLMathEpsilon,false)==0){___swc1807___=0;}else if(yyCompareVal(___sw1806___,1,g_GMLMathEpsilon,false)==0){___swc1807___=1;}else if(yyCompareVal(___sw1806___,2,g_GMLMathEpsilon,false)==0){___swc1807___=2;}switch(___swc1807___){case 0:{_inst.gmlpercent=lerp(_inst.gmlpercent,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrelationship_boss,0.1);break;}case 1:{_inst.gmlpercent=lerp(_inst.gmlpercent,gml_Script_s_get_morale(_inst,_other),0.1);break;}case 2:{ _inst.gmlpercent=lerp(_inst.gmlpercent,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfans,0.1);break;}};_inst.gmlimage_num=gml_Script_s_get_attitude_icon(_inst,_other,_inst.gmlpercent);_inst.gmltext=yyfplus(__yy_gml_errCheck(string(round(_inst.gmlpercent))),"%");}function gml_Object_obj_box_relationship_Draw_0(_inst,_other){}function gml_Object_obj_box_relationship_Draw_64(_inst,_other){draw_self(_inst);draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gmltx=_inst.x;var gmlty=_inst.y; var gmlsw=yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,_inst.gmltitle)),2);var gmlsh=yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_height(_inst,_other,_inst.gmltitle)),2);gmltx=yyfplus(gmltx,yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2));draw_rectangle_color(yyfminus(yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),1),yyfminus(yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),1),yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),yyfplus(__yy_gml_errCheck(gmlty), __yy_gml_errCheck(gmlsh)),global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),0.5),gmlty,string_upper(_inst.gmltitle));draw_set_halign(2);gmltx=yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),4),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_width),0.5)));gmlty=yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),0.5)));gml_Script_draw_hd_text(_inst, _other,gmltx,gmlty,_inst.gmltext);gmltx=yyfplus(gmltx,8);draw_sprite_ext(_inst,_inst.gmlimage,_inst.gmlimage_num,gmltx,gmlty,1,1,0,_inst.gmlimg_colour,1);}function gml_Object_obj_box_relationship_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltitle="Title";_inst.gmltext="Line 1";_inst.gmlimage=YYASSET_REF(0x01000070);_inst.gmlimage_num=0;_inst.gmlimg_colour=16777215;_inst.gmlrelationship_type=0;_inst.gmlpercent=0;_inst.gmlactive=true;}function gml_Object_obj_roomtitle_special_Step_0(_inst, _other){draw_set_font(global.gmlfnt_flex);var gmltx=yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5);var gmltw=yyftime(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,_inst.gmltext)),0.5);var gmlth=yyftime(__yy_gml_errCheck(gml_Script_string_hd_height(_inst,_other,_inst.gmltext)),0.5);if((yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other)))&&(yyGetBool(point_in_rectangle(device_mouse_x_to_gui(0),device_mouse_y_to_gui(0),yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltw)), yyfminus(__yy_gml_errCheck(_inst.gmlty),__yy_gml_errCheck(gmlth)),yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltw)),yyfplus(__yy_gml_errCheck(_inst.gmlty),__yy_gml_errCheck(gmlth)))))){{if(yyGetBool(mouse_check_button_released(1))){(g_yyPrePostObject__=_inst.gmltap_count,_inst.gmltap_count=(g_yyPrePostObject__ instanceof Long?_inst.gmltap_count.add(1):++_inst.gmltap_count),g_yyPrePostObject__);};if(yyfgreater(_inst.gmltap_count,4)){{script_execute(_inst,_other,_inst.gmlonClickAction);_inst.gmltap_count=0; };};};};if((yyGetBool(global.gmlgamepad))&&(yyGetBool(gamepad_button_check(yyInst(_inst,_other,global.gmlgp).gmlslot,32781)))&&(yyGetBool((yyGetBool(gamepad_button_check_released(yyInst(_inst,_other,global.gmlgp).gmlslot,32776)))||(yyGetBool(gamepad_button_check_released(yyInst(_inst,_other,global.gmlgp).gmlslot,32774)))))){{(g_yyPrePostObject__=_inst.gmltap_count,_inst.gmltap_count=(g_yyPrePostObject__ instanceof Long?_inst.gmltap_count.add(1):++_inst.gmltap_count),g_yyPrePostObject__);if(yyfgreater(_inst.gmltap_count, 4)){{script_execute(_inst,_other,_inst.gmlonClickAction);_inst.gmltap_count=0;};};};};}function gml_Object_obj_roomtitle_special_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltap_count=0;_inst.gmlonClickAction=0;}function gml_Object_obj_meter_Draw_64(_inst,_other){if(yyGetBool(_inst.gmldraw_box)){draw_self(_inst);};draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gmltx=_inst.x;var gmlty=_inst.y;var gmlsw=yyfplus(2,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_width(_inst, _other,_inst.gmltitle)),2)));var gmlsh=yyfplus(1,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_height(_inst,_other,_inst.gmltitle)),2)));gmltx=yyfplus(gmltx,yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2));draw_rectangle_color(yyfminus(yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),2),yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)), global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(_inst.gmltitle));var gmlbw=yyfminus(__yy_gml_errCheck(_inst.sprite_width),32);if(!yyGetBool(_inst.gmldraw_icon)){gmlbw=yyfminus(__yy_gml_errCheck(_inst.sprite_width),16);};var gmlprc=yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlbw),4)),100)),__yy_gml_errCheck(_inst.gmlold_percent));gmlprc=clamp(gmlprc,1,gmlbw); var gmlxbuf=24;if(!yyGetBool(_inst.gmldraw_icon)){gmlxbuf=8;};draw_rectangle_color(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(gmlxbuf)),yyfplus(__yy_gml_errCheck(_inst.y),8),yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(gmlxbuf)),__yy_gml_errCheck(gmlbw)),yyfplus(__yy_gml_errCheck(_inst.y),24),global.gmlc_backfill,global.gmlc_backfill,global.gmlc_backfill,global.gmlc_backfill,0);draw_rectangle_color(yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(gmlxbuf)),2), yyfplus(__yy_gml_errCheck(_inst.y),10),yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(gmlxbuf)),2),__yy_gml_errCheck(gmlprc)),yyfplus(__yy_gml_errCheck(_inst.y),22),_inst.gmlcolour,_inst.gmlcolour,_inst.gmlcolour,_inst.gmlcolour,0);if(yyGetBool(_inst.gmldraw_icon)){draw_sprite(_inst,_inst.gmldraw_icon,0,yyfplus(__yy_gml_errCheck(_inst.x),14),yyfplus(__yy_gml_errCheck(_inst.y),16));};if(yyGetBool(_inst.gmldraw_segments)){{var gmlsw=yyfdivide(__yy_gml_errCheck(gmlbw),3);draw_line_width_color(yyfplus(yyfplus(__yy_gml_errCheck(_inst.x), __yy_gml_errCheck(gmlxbuf)),__yy_gml_errCheck(gmlsw)),yyfplus(__yy_gml_errCheck(_inst.y),8),yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(gmlxbuf)),__yy_gml_errCheck(gmlsw)),yyfplus(__yy_gml_errCheck(_inst.y),24),2,global.gmlc_backfill,global.gmlc_backfill);draw_line_width_color(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(gmlxbuf)),2),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlsw),2))),yyfplus(__yy_gml_errCheck(_inst.y),8),yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(_inst.x), __yy_gml_errCheck(gmlxbuf)),2),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlsw),2))),yyfplus(__yy_gml_errCheck(_inst.y),24),2,global.gmlc_backfill,global.gmlc_backfill);};};}function gml_Object_obj_meter_Draw_0(_inst,_other){}function gml_Object_obj_meter_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltitle="Title";_inst.gmlold_percent=0;_inst.gmlpercent=0;_inst.gmlcolour=global.gmlc_primary;_inst.gmldraw_box=true;_inst.gmldraw_icon=0;_inst.gmldraw_segments=false;}function gml_Object_obj_options2_Create_0(_inst, _other){if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{yyInst(_inst,_other,100638).gmlimage=YYASSET_REF(0x010000EE);yyInst(_inst,_other,100639).gmlimage=YYASSET_REF(0x01000149);yyInst(_inst,_other,100640).gmlimage=YYASSET_REF(0x01000125);yyInst(_inst,_other,100641).gmlimage=YYASSET_REF(0x0100013A);yyInst(_inst,_other,100638).gmlonClickAction=kgml_Script_btn_click_ad_GP;yyInst(_inst,_other,100639).gmlonClickAction=kgml_Script_btn_click_ad_RB;yyInst(_inst,_other,100640).gmlonClickAction=kgml_Script_btn_click_ad_NSM; yyInst(_inst,_other,100641).gmlonClickAction=kgml_Script_btn_click_ad_RG;};};}function gml_Object_obj_btn_pause_Step_0(_inst,_other){gml_Script_s_pause_btn_step(_inst,_other);}function gml_Object_obj_btn_pause_Draw_0(_inst,_other){}function gml_Object_obj_btn_pause_Draw_64(_inst,_other){gml_Script_s_pause_btn_draw_gui(_inst,_other);}function gml_Object_obj_options_exh_Create_0(_inst,_other){gml_Script_slog(_inst,_other,"obj_options_exh.create");draw_set_font(global.gmlfnt_small_flex);gml_Script_s_update_options_exh(_inst, _other);}function gml_Object_obj_kb_key_Create_0(_inst,_other){gml_Script_s_custkb_key_init(_inst,_other);}function gml_Object_obj_kb_key_Step_0(_inst,_other){gml_Script_s_custkb_key_step(_inst,_other);}function gml_Object_obj_kb_key_Draw_64(_inst,_other){gml_Script_s_custkb_key_draw_gui(_inst,_other);}function gml_Object_obj_kb_key_Gesture_0(_inst,_other){}function gml_Object_obj_meter_coach_Create_0(_inst,_other){_inst.gmlold_percent=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrelationship_boss; _inst.gmltitle=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Coach"))," "),__yy_gml_errCheck(string(round(_inst.gmlold_percent)))),"%");if(yyfgreater(_inst.gmlold_percent,25)){_inst.gmlcolour=global.gmlc_primary;};}function gml_Object_obj_meter_coach_Step_0(_inst,_other){_inst.gmlold_percent=lerp(_inst.gmlold_percent,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrelationship_boss,0.1);_inst.gmltitle=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other, "ui_Coach"))," "),__yy_gml_errCheck(string(round(_inst.gmlold_percent)))),"%");if(yyfgreater(_inst.gmlold_percent,25)){_inst.gmlcolour=global.gmlc_primary;};}function gml_Object_obj_blank_Create_0(_inst,_other){if(yyGetBool(_inst.gmlaction_create)){__yyg_call_method(_inst.gmlaction_create)(_inst,_other);};}function gml_Object_obj_blank_Destroy_0(_inst,_other){if(yyGetBool(_inst.gmlaction_destroy)){__yyg_call_method(_inst.gmlaction_destroy)(_inst,_other);};}function gml_Object_obj_blank_Step_0(_inst, _other){if(yyGetBool(_inst.gmlaction_step)){__yyg_call_method(_inst.gmlaction_step)(_inst,_other);};}function gml_Object_obj_blank_Other_70(_inst,_other){if(yyGetBool(_inst.gmlaction_async_social)){__yyg_call_method(_inst.gmlaction_async_social)(_inst,_other);};}function gml_Object_obj_blank_Draw_0(_inst,_other){if(yyGetBool(_inst.gmlaction_draw)){__yyg_call_method(_inst.gmlaction_draw)(_inst,_other);};}function gml_Object_obj_blank_Draw_64(_inst,_other){if(yyGetBool(_inst.gmlaction_draw_gui)){__yyg_call_method(_inst.gmlaction_draw_gui)(_inst, _other);};}function gml_Object_obj_blank_Gesture_64(_inst,_other){if(yyGetBool(_inst.gmlaction_global_tap)){__yyg_call_method(_inst.gmlaction_global_tap)(_inst,_other);};}function gml_Object_obj_blank_Gesture_69(_inst,_other){if(yyGetBool(_inst.gmlaction_global_flick)){__yyg_call_method(_inst.gmlaction_global_flick)(_inst,_other);};}function gml_Object_obj_blank_Gesture_0(_inst,_other){if(yyGetBool(_inst.gmlaction_tap)){__yyg_call_method(_inst.gmlaction_tap)(_inst,_other);};}function gml_Object_obj_blank_PreCreate_0(_inst, _other){event_inherited(_inst,_other);_inst.gmlaction_create=(-4);_inst.gmlaction_destroy=(-4);_inst.gmlaction_step=(-4);_inst.gmlaction_draw=(-4);_inst.gmlaction_draw_gui=(-4);_inst.gmlaction_async_social=(-4);_inst.gmlaction_global_tap=(-4);_inst.gmlaction_global_flick=(-4);_inst.gmlaction_tap=(-4);}function gml_Object_obj_btn_skiptime_Create_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltxt=gml_Script_s_str(_inst,_other,"match_SkipTime");}function gml_Object_obj_btn_skiptime_Step_0(_inst, _other){_inst.gmlnum_auds=gml_Script_s_count_audibles(_inst,_other);{var __yy__v2105=GetWithArray(YYASSET_REF(0x0000004F));for(var __yy__v2106 in __yy__v2105){if(!__yy__v2105.hasOwnProperty(__yy__v2106))continue;var __yy__v2107=__yy__v2105[__yy__v2106];return;}};_inst.gmlmx=device_mouse_x_to_gui(0);_inst.gmlmy=device_mouse_y_to_gui(0);_inst.gmlhover=false;if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlstate,10)){return;};if(yyGetBool(global.gmlgamepad)){{if((yyGetBool(gamepad_button_check_pressed(yyInst(_inst, _other,global.gmlgp).gmlslot,_inst.gmlgp_mapped_button)))||(yyGetBool(gamepad_button_check_pressed(yyInst(_inst,_other,global.gmlgp).gmlslot,_inst.gmlgp_mapped_hidden)))){gml_Script_btn_skip_time(_inst,_other);};};}else {{if(!yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other))){return;};if(yyGetBool(point_in_rectangle(_inst.gmlmx,_inst.gmlmy,_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height))))){ _inst.gmlhover=true;};if((yyGetBool(_inst.gmlhover))&&(yyGetBool(mouse_check_button_pressed(1)))){{gml_Script_btn_skip_time(_inst,_other);};};};};}function gml_Object_obj_btn_skiptime_Draw_64(_inst,_other){if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlstate,10)){return;};{var __yy__v2108=GetWithArray(YYASSET_REF(0x0000004F));for(var __yy__v2109 in __yy__v2108){if(!__yy__v2108.hasOwnProperty(__yy__v2109))continue;var __yy__v2110=__yy__v2108[__yy__v2109];return;}};draw_set_font(global.gmlfnt_small_flex); draw_set_halign(1);draw_set_valign(1);draw_sprite_ext(_inst,_inst.sprite_index,0,_inst.x,_inst.y,1,1,0,16777215,1);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(_inst.x),48),yyfplus(__yy_gml_errCheck(_inst.y),6),_inst.gmltxt);}function gml_Object_obj_btn_skiptime_Draw_0(_inst,_other){}function gml_Object_obj_btn_skiptime_Draw_75(_inst,_other){if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlstate,10)){return;};event_inherited(_inst,_other);}function gml_Object_obj_btn_skiptime_PreCreate_0(_inst, _other){event_inherited(_inst,_other);_inst.gmlonClickAction=(-4);_inst.gmlhover=false;_inst.gmlnum_auds=0;}function gml_Object_obj_stats_player_rm_Create_0(_inst,_other){if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gml_Script_rm_stats_player_configure_college(_inst,_other);};};}function gml_Object_obj_btn_kickoff_Create_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltxt=gml_Script_s_str(_inst,_other,"match_KickOff");}function gml_Object_obj_btn_kickoff_Step_0(_inst,_other){{var __yy__v2111=GetWithArray(YYASSET_REF(0x0000004F)); for(var __yy__v2112 in __yy__v2111){if(!__yy__v2111.hasOwnProperty(__yy__v2112))continue;var __yy__v2113=__yy__v2111[__yy__v2112];return;}};_inst.gmlmx=device_mouse_x_to_gui(0);_inst.gmlmy=device_mouse_y_to_gui(0);_inst.gmlhover=false;if(yyGetBool(global.gmlgamepad)){{if(yyGetBool(gamepad_button_check_released(yyInst(_inst,_other,global.gmlgp).gmlslot,_inst.gmlgp_mapped_button))){gml_Script_btn_kick_off(_inst,_other);};};}else {{if(!yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other))){return;};if(yyGetBool(point_in_rectangle(_inst.gmlmx, _inst.gmlmy,_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height))))){_inst.gmlhover=true;};if(yyGetBool(mouse_check_button_released(1))){gml_Script_btn_kick_off(_inst,_other);};};};}function gml_Object_obj_btn_kickoff_Draw_64(_inst,_other){{var __yy__v2114=GetWithArray(YYASSET_REF(0x0000004F));for(var __yy__v2115 in __yy__v2114){if(!__yy__v2114.hasOwnProperty(__yy__v2115))continue;var __yy__v2116=__yy__v2114[__yy__v2115]; return;}};draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);draw_set_valign(1);draw_sprite_ext(_inst,_inst.sprite_index,0,_inst.x,_inst.y,1,1,0,16777215,1);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(_inst.x),48),yyfplus(__yy_gml_errCheck(_inst.y),6),_inst.gmltxt);}function gml_Object_obj_btn_kickoff_Draw_0(_inst,_other){}function gml_Object_obj_btn_kickoff_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlonClickAction=(-4);_inst.gmlhover=false;_inst.gmlnum_tos=0; }function gml_Object_obj_box_recruitmentcredit_Create_0(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_other,"ui_ScolarshipFund_Full");_inst.gmltext=yyfplus(yyfplus("$",__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrecruitment_credits))),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"sla_Thousand")));}function gml_Object_obj_box_recruitmentcredit_Step_0(_inst,_other){_inst.gmltext=yyfplus(yyfplus("$",__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrecruitment_credits))), __yy_gml_errCheck(gml_Script_s_str(_inst,_other,"sla_Thousand")));}function gml_Object_obj_box_recruitmentcredit_Draw_0(_inst,_other){}function gml_Object_obj_box_recruitmentcredit_Draw_64(_inst,_other){draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gmltx=_inst.x;var gmlty=_inst.y;var gmlsw=yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,_inst.gmltitle)),2);var gmlsh=yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_height(_inst,_other,_inst.gmltitle)),2);if(yyGetBool(_inst.gmlshow_frame)){ {draw_self(_inst);gmltx=yyfplus(gmltx,yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2));draw_rectangle_color(yyfminus(yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),1),yyfminus(yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),1),yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);gml_Script_draw_hd_text(_inst,_other, yyfplus(__yy_gml_errCheck(gmltx),0.5),gmlty,string_upper(_inst.gmltitle));};};if((yyGetBool(!yyGetBool(_inst.gmlflash)))||(yyGetBool(yyfgreater(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),200)),0.1)))){{var gmlimw=0;if(yyfnotequal(_inst.gmlimage,(-4))){gmlimw=sprite_get_width(_inst.gmlimage);};gmltx=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2)));gmlty=yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height), 0.5)));gmltx=yyfminus(gmltx,yyfdivide(__yy_gml_errCheck(gmlimw),2));gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,_inst.gmltext);if(yyfnotequal(_inst.gmlimage,(-4))){{var gmltw=yyftime(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,_inst.gmltext)),0.5);gmltw=yyfplus(gmltw,yyftime(__yy_gml_errCheck(sprite_get_width(_inst.gmlimage)),0.5));draw_sprite_ext(_inst,_inst.gmlimage,_inst.gmlimage_num,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltw)),1),gmlty,1,1,0,_inst.gmlimg_colour, 1);};};};};}function gml_Object_obj_box_recruitmentcredit_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltitle="Title";_inst.gmltext="Line 1";_inst.gmlimage=(-4);_inst.gmlimage_num=0;_inst.gmlimg_colour=16777215;_inst.gmlshow_frame=true;_inst.gmlflash=false;}function gml_Object_ui_selectable_Create_0(_inst,_other){_inst.alarm=__yy_gml_array_check(_inst.alarm,1584050178);_inst.alarm[__yy_gml_array_check_index_set(0)]=1;}function gml_Object_ui_selectable_Alarm_0(_inst,_other){if(yyfequal(_inst.gmlgp_mapped_button, 32771)){{_inst.gmlgp_mapped_hidden=32777;};};}function gml_Object_ui_selectable_Draw_75(_inst,_other){if(!yyGetBool(global.gmlgamepad)){return;};if(!yyGetBool(_inst.visible)){return;};if((yyGetBool(_inst.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(_inst.layer))))){return;};if((yyGetBool(variable_instance_exists(_inst.id,"active")))&&(yyGetBool(!yyGetBool(_inst.gmlactive)))){return;};{var __yy__v2117=GetWithArray(YYASSET_REF(0x0000004F));for(var __yy__v2118 in __yy__v2117){if(!__yy__v2117.hasOwnProperty(__yy__v2118))continue; var __yy__v2119=__yy__v2117[__yy__v2118];if(yyfless(__yy__v2119.depth,_inst.depth)){return;};}};{var __yy__v2120=GetWithArray(YYASSET_REF(0x00000048));for(var __yy__v2121 in __yy__v2120){if(!__yy__v2120.hasOwnProperty(__yy__v2121))continue;var __yy__v2122=__yy__v2120[__yy__v2121];if(yyGetBool(__yy__v2122.gmlediting)){return;};}};var gmlbx=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width));var gmlby=_inst.y;if(yyGetBool(_inst.gmlgp_flip_icons_position)){{gmlbx=yyfplus(__yy_gml_errCheck(_inst.x), 6);gmlby=yyfminus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)),6);};};if((yyGetBool(variable_instance_exists(_inst,"clicked")))&&(yyGetBool(_inst.gmlclicked))){{gmlbx=yyfminus(gmlbx,2);gmlby=yyfplus(gmlby,2);};};var gmlspr=YYASSET_REF(0x010000DD);var ___sw1812___=g_pBuiltIn.get_os_type();var ___swc1813___=-1;if(yyCompareVal(___sw1812___,15,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1812___,23,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1812___,0,g_GMLMathEpsilon,false)==0){ ___swc1813___=0;}else if(yyCompareVal(___sw1812___,21,g_GMLMathEpsilon,false)==0){___swc1813___=1;}switch(___swc1813___){case 0:{gmlspr=YYASSET_REF(0x010000DE);break;}case 1:{gmlspr=YYASSET_REF(0x01000171);break;}};var gmlmb=_inst.gmlgp_mapped_button;if((yyGetBool(yyfequal(g_pBuiltIn.get_current_room(),YYASSET_REF(0x03000000))))&&(yyGetBool(global.gmlgamepad))){{if(yyGetBool(gml_Script_s_is_ui_selected(_inst,_other))){gmlmb=global.gmlgp_select;}else {gmlmb=(-1);};};};var ___sw1814___=gmlmb;var ___swc1815___=-1; if(yyCompareVal(___sw1814___,(-1),g_GMLMathEpsilon,false)==0){___swc1815___=0;}else if(yyCompareVal(___sw1814___,global.gmlgp_select,g_GMLMathEpsilon,false)==0){___swc1815___=1;}else if(yyCompareVal(___sw1814___,global.gmlgp_back,g_GMLMathEpsilon,false)==0){___swc1815___=2;}else if(yyCompareVal(___sw1814___,32771,g_GMLMathEpsilon,false)==0){___swc1815___=3;}else if(yyCompareVal(___sw1814___,32772,g_GMLMathEpsilon,false)==0){___swc1815___=4;}switch(___swc1815___){case 0:{break;}case 1:{draw_sprite(_inst, gmlspr,0,gmlbx,gmlby);break;}case 2:{draw_sprite(_inst,gmlspr,1,gmlbx,gmlby);break;}case 3:{draw_sprite(_inst,gmlspr,2,gmlbx,gmlby);break;}case 4:{draw_sprite(_inst,gmlspr,3,gmlbx,gmlby);break;}};}function gml_Object_ui_selectable_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlgp_mapped_button=(-1);_inst.gmlgp_mapped_hidden=(-1);_inst.gmlgp_active_editing=false;_inst.gmlgp_flip_icons_position=false;_inst.gmlgp_allowed=3;}function gml_Object_obj_button_Create_0(_inst,_other){event_inherited(_inst, _other);if((yyGetBool(instance_exists(YYASSET_REF(0x00000062))))&&(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode))){_inst.gmlcolour=global.gmlc_buttons;}else {_inst.gmlcolour=global.gmlc_background;};if(yyGetBool(_inst.gmlbtn_image)){_inst.sprite_index=_inst.gmlbtn_image;};}function gml_Object_obj_button_Step_0(_inst,_other){if(!yyGetBool(_inst.visible)){return;};if((yyGetBool(_inst.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(_inst.layer))))){return;};if(!yyGetBool(_inst.gmlactive)){ return;};{var __yy__v2123=GetWithArray(YYASSET_REF(0x0000004F));for(var __yy__v2124 in __yy__v2123){if(!__yy__v2123.hasOwnProperty(__yy__v2124))continue;var __yy__v2125=__yy__v2123[__yy__v2124];if(yyfless(__yy__v2125.depth,_inst.depth)){return;};}};{var __yy__v2126=GetWithArray(YYASSET_REF(0x00000048));for(var __yy__v2127 in __yy__v2126){if(!__yy__v2126.hasOwnProperty(__yy__v2127))continue;var __yy__v2128=__yy__v2126[__yy__v2127];if(yyGetBool(__yy__v2128.gmlediting)){return;};}};_inst.gmlhover=false;_inst.image_index=0; if(yyGetBool(global.gmlgamepad)){{_inst.gmlclicked=false;if((yyGetBool((yyGetBool(yyfequal(yyInst(_inst,_other,global.gmlgp).gmlui_selected,_inst.id)))&&(yyGetBool(gamepad_button_check(yyInst(_inst,_other,global.gmlgp).gmlslot,global.gmlgp_select)))))||(yyGetBool(gamepad_button_check(yyInst(_inst,_other,global.gmlgp).gmlslot,_inst.gmlgp_mapped_button)))||(yyGetBool(gamepad_button_check(yyInst(_inst,_other,global.gmlgp).gmlslot,_inst.gmlgp_mapped_hidden)))){{_inst.image_index=1;_inst.gmlclicked=true; yyInst(_inst,_other,global.gmlgp).gmlui_selected=_inst.id;};};if((yyGetBool(yyfequal(yyInst(_inst,_other,global.gmlgp).gmlui_selected,_inst.id)))&&(yyGetBool((yyGetBool(gamepad_button_check_released(yyInst(_inst,_other,global.gmlgp).gmlslot,global.gmlgp_select)))||(yyGetBool(gamepad_button_check_released(yyInst(_inst,_other,global.gmlgp).gmlslot,_inst.gmlgp_mapped_button)))||(yyGetBool(gamepad_button_check_released(yyInst(_inst,_other,global.gmlgp).gmlslot,_inst.gmlgp_mapped_hidden)))))){{if(yyGetBool(ds_map_find_value(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))){audio_play_sound(YYASSET_REF(0x02000006),1,false);};gml_Script_s_save_last_selected(_inst,_other);if(yyGetBool(_inst.gmlgoto_room)){room_goto(_inst.gmlgoto_room);}else {script_execute(_inst,_other,_inst.gmlonClickAction);};};};};}else {{if(!yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other))){return;};if(yyGetBool(point_in_rectangle(device_mouse_x_to_gui(0),device_mouse_y_to_gui(0),_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.x), __yy_gml_errCheck(_inst.sprite_width)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height))))){{_inst.gmlhover=true;};};if(yyGetBool(_inst.gmlhover)){{if(yyGetBool(mouse_check_button(1))){{_inst.image_index=1;_inst.gmlclicked=true;};};if((yyGetBool(_inst.gmlclicked))&&(yyGetBool(mouse_check_button_released(1)))){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))){audio_play_sound(YYASSET_REF(0x02000006),1,false);};if(yyGetBool(_inst.gmlgoto_room)){ room_goto(_inst.gmlgoto_room);}else {script_execute(_inst,_other,_inst.gmlonClickAction);};_inst.gmlclicked=false;};};};}else {{_inst.gmlclicked=false;};};};};}function gml_Object_obj_button_Draw_0(_inst,_other){}function gml_Object_obj_button_Draw_64(_inst,_other){if(yyfnotequal(_inst.gmlcustom_draw_gui,(-4))){{__yyg_call_method(_inst.gmlcustom_draw_gui)(_inst,_other);return;};};draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gmltx=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_width), 2)));var gmlty=yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_height),2)));gmltx=yyfplus(gmltx,1);gmlty=yyfminus(gmlty,1);if(!yyGetBool(_inst.gmlactive)){{draw_sprite_ext(_inst,_inst.sprite_index,1,yyfplus(__yy_gml_errCheck(_inst.x),2),yyfminus(__yy_gml_errCheck(_inst.y),2),1,1,0,4210752,1);draw_set_color(4210752);if(yyGetBool(_inst.gmlimage)){draw_sprite(_inst,_inst.gmlimage,_inst.gmlimage_num,gmltx,gmlty);}else {gml_Script_draw_hd_text(_inst,_other, gmltx,gmlty,string_upper(_inst.gmltext));};draw_set_color(16777215);};}else {if(!yyGetBool(_inst.gmlclicked)){{var gmlf=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),60))),1)),2);{var __yy__v2129=GetWithArray(YYASSET_REF(0x0000004F));for(var __yy__v2130 in __yy__v2129){if(!__yy__v2129.hasOwnProperty(__yy__v2130))continue;var __yy__v2131=__yy__v2129[__yy__v2130];if(yyfless(__yy__v2131.depth,_inst.depth)){gmlf=0;};}};if(yyGetBool(gml_Script_s_is_new_shadow(_inst, _other))){{draw_sprite_ext(_inst,_inst.sprite_index,1,_inst.x,_inst.y,1,1,0,global.gmlc_shadow,1);draw_sprite(_inst,_inst.sprite_index,1,yyfplus(__yy_gml_errCheck(_inst.x),2),yyfminus(__yy_gml_errCheck(_inst.y),2));};}else {{draw_sprite(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y);};};if(yyGetBool(gml_Script_s_is_ui_selected(_inst,_other))){draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y,1,1,0,gml_Script_s_ui_selected_color(_inst,_other),1);};draw_sprite_ext(_inst, _inst.sprite_index,2,_inst.x,_inst.y,1,1,0,_inst.gmlcolour,1);if((yyGetBool(_inst.gmlflash))&&(yyGetBool(yyfgreater(gmlf,0.5)))){draw_sprite_ext(_inst,_inst.sprite_index,2,_inst.x,_inst.y,1,1,0,global.gmlc_primary,1);};if(yyGetBool(_inst.gmlcontinue_icon)){draw_sprite(_inst,_inst.gmlcontinue_icon,0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),8),yyfminus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),0.5))), 1));};draw_set_color(_inst.gmlcolour_text);if(yyGetBool(_inst.gmlimage)){draw_sprite(_inst,_inst.gmlimage,_inst.gmlimage_num,gmltx,gmlty);}else {gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(_inst.gmltext));};draw_set_color(16777215);};}else {{draw_sprite(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y);draw_sprite_ext(_inst,_inst.sprite_index,2,yyfminus(__yy_gml_errCheck(_inst.x),2),yyfplus(__yy_gml_errCheck(_inst.y),2),1,1,0,_inst.gmlcolour,1);if(yyGetBool(_inst.gmlcontinue_icon)){ draw_sprite(_inst,_inst.gmlcontinue_icon,0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),10),yyfplus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),0.5))),1));};draw_set_color(_inst.gmlcolour_text);if(yyGetBool(_inst.gmlimage)){{draw_sprite(_inst,_inst.gmlimage,_inst.gmlimage_num,yyfminus(__yy_gml_errCheck(gmltx),2),yyfplus(__yy_gml_errCheck(gmlty),2));};}else {{gml_Script_draw_hd_text(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx), 2),yyfplus(__yy_gml_errCheck(gmlty),2),string_upper(_inst.gmltext));};};draw_set_color(16777215);};};};}function gml_Object_obj_button_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltext=gml_Script_s_str(_inst,_other,"");_inst.gmlonClickAction=kgml_Script_btn_click_Continue;_inst.gmlcolour=new Long(4294967295,0,false);_inst.gmlhover=false;_inst.gmlclicked=false;_inst.gmlimage=(-4);_inst.gmlimage_num=0;_inst.gmlactive=true;_inst.gmlcontinue_icon=(-4);_inst.gmlbtn_image=(-4);_inst.gmlflash=false; _inst.gmluid=0;_inst.gmlgp_selected=0;_inst.gmlgoto_room=(-1);_inst.gmlcustom_draw_gui=(-4);_inst.gmlcolour_text=new Long(4294967295,0,false);}function gml_Object_obj_button_color_Create_0(_inst,_other){if(yyGetBool(_inst.gmlbtn_image)){_inst.sprite_index=_inst.gmlbtn_image;};}function gml_Object_obj_button_color_Step_0(_inst,_other){event_inherited(_inst,_other);return;if(!yyGetBool(_inst.visible)){return;};if((yyGetBool(_inst.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(_inst.layer))))){return; };if(!yyGetBool(_inst.gmlactive)){return;};{var __yy__v2132=GetWithArray(YYASSET_REF(0x0000004F));for(var __yy__v2133 in __yy__v2132){if(!__yy__v2132.hasOwnProperty(__yy__v2133))continue;var __yy__v2134=__yy__v2132[__yy__v2133];if(yyfless(__yy__v2134.depth,_inst.depth)){return;};}};{var __yy__v2135=GetWithArray(YYASSET_REF(0x00000048));for(var __yy__v2136 in __yy__v2135){if(!__yy__v2135.hasOwnProperty(__yy__v2136))continue;var __yy__v2137=__yy__v2135[__yy__v2136];if(yyGetBool(__yy__v2137.gmlediting)){return; };}};_inst.image_index=0;_inst.gmlhover=false;if(!yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other))){return;};if(yyGetBool(point_in_rectangle(device_mouse_x_to_gui(0),device_mouse_y_to_gui(0),_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height))))){{_inst.gmlhover=true;};};if(yyGetBool(_inst.gmlhover)){{if(yyGetBool(mouse_check_button(1))){{_inst.image_index=1;_inst.gmlclicked=true; };};if((yyGetBool(_inst.gmlclicked))&&(yyGetBool(mouse_check_button_released(1)))){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))){audio_play_sound(YYASSET_REF(0x02000006),1,false);};script_execute(_inst,_other,_inst.gmlonClickAction);_inst.gmlclicked=false;};};};}else {{_inst.gmlclicked=false;};};}function gml_Object_obj_button_color_Draw_0(_inst,_other){}function gml_Object_obj_button_color_Draw_64(_inst,_other){draw_set_font(global.gmlfnt_small_flex); draw_set_halign(1);var gmltx=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2)));var gmlty=yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_height),2)));gmltx=yyfplus(gmltx,1);gmlty=yyfminus(gmlty,1);if(!yyGetBool(_inst.gmlactive)){{draw_sprite_ext(_inst,_inst.sprite_index,1,yyfplus(__yy_gml_errCheck(_inst.x),2),yyfminus(__yy_gml_errCheck(_inst.y),2),1,1,0,4210752,1);};}else {if(!yyGetBool(_inst.gmlclicked)){ {draw_sprite_ext(_inst,_inst.sprite_index,0,_inst.x,_inst.y,1,1,0,_inst.gmlcolour,1);var gmlf=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),60))),1)),2);if(yyGetBool(gml_Script_s_is_ui_selected(_inst,_other))){{if(yyfgreater(gmlf,0.5)){draw_sprite_ext(_inst,_inst.sprite_index,1,yyfplus(__yy_gml_errCheck(_inst.x),2),yyfminus(__yy_gml_errCheck(_inst.y),2),1,1,0,gml_Script_s_ui_selected_color(_inst,_other),1);}else {draw_sprite_ext(_inst, _inst.sprite_index,1,yyfplus(__yy_gml_errCheck(_inst.x),2),yyfminus(__yy_gml_errCheck(_inst.y),2),1,1,0,16777215,1);};};};draw_sprite_ext(_inst,_inst.sprite_index,2,_inst.x,_inst.y,1,1,0,_inst.gmlcolour,1);};}else {{draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y,1,1,0,_inst.gmlcolour,1);gmltx=yyfminus(gmltx,2);gmlty=yyfplus(gmlty,2);};};};if(yyfless(color_get_value(_inst.gmlcolour),230)){{draw_set_color(0);gml_Script_draw_hd_text(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx), 1),yyfplus(__yy_gml_errCheck(gmlty),1),string_upper(_inst.gmltext));draw_set_color(16777215);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(_inst.gmltext));};}else {{draw_set_color(16777215);gml_Script_draw_hd_text(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),string_upper(_inst.gmltext));draw_set_color(0);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(_inst.gmltext));draw_set_color(16777215);};};}function gml_Object_obj_button_color_PreCreate_0(_inst, _other){event_inherited(_inst,_other);_inst.gmltext=gml_Script_s_str(_inst,_other,"");_inst.gmlonClickAction=kgml_Script_btn_click_Continue;_inst.gmlcolour=new Long(4294967295,0,false);_inst.gmlhover=false;_inst.gmlclicked=false;_inst.gmlimage=(-4);_inst.gmlactive=true;_inst.gmlcontinue_icon=(-4);_inst.gmlbtn_image=(-4);_inst.gmlflash=false;}function gml_Object_obj_button_sqr_Draw_64(_inst,_other){draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gmlf=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()), 60))),1)),2);var gmltx=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2)));var gmlty=yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_height),2)));gmltx=yyfplus(gmltx,1);gmlty=yyfminus(gmlty,1);if(!yyGetBool(_inst.gmlactive)){{if(!yyGetBool(_inst.gmlimage_only)){draw_sprite_ext(_inst,_inst.sprite_index,1,yyfplus(__yy_gml_errCheck(_inst.x),2),yyfminus(__yy_gml_errCheck(_inst.y),2),1,1,0,4210752,1);};if(yyGetBool(_inst.gmlimage)){ draw_sprite_ext(_inst,_inst.gmlimage,0,gmltx,yyfminus(__yy_gml_errCheck(gmlty),1),1,1,0,4210752,1);}else {gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(_inst.gmltext));};};}else {if(!yyGetBool(_inst.gmlclicked)){{if(!yyGetBool(_inst.gmlimage_only)){{if(yyGetBool(gml_Script_s_is_new_shadow(_inst,_other))){{draw_sprite_ext(_inst,_inst.sprite_index,1,_inst.x,_inst.y,1,1,0,global.gmlc_shadow,1);draw_sprite_ext(_inst,_inst.sprite_index,1,yyfplus(__yy_gml_errCheck(_inst.x),2),yyfminus(__yy_gml_errCheck(_inst.y), 2),1,1,0,16777215,1);};}else {{draw_sprite_ext(_inst,_inst.sprite_index,0,_inst.x,_inst.y,1,1,0,16777215,1);};};if(yyGetBool(gml_Script_s_is_ui_selected(_inst,_other))){draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y,1,1,0,gml_Script_s_ui_selected_color(_inst,_other),1);};draw_sprite_ext(_inst,_inst.sprite_index,2,_inst.x,_inst.y,1,1,0,_inst.gmlcolour,1);{var __yy__v2138=GetWithArray(YYASSET_REF(0x0000004F));for(var __yy__v2139 in __yy__v2138){if(!__yy__v2138.hasOwnProperty(__yy__v2139))continue; var __yy__v2140=__yy__v2138[__yy__v2139];if(yyfless(__yy__v2140.depth,_inst.depth)){gmlf=0;};}};if((yyGetBool(_inst.gmlflash))&&(yyGetBool(yyfgreater(gmlf,0.5)))){draw_sprite_ext(_inst,_inst.sprite_index,2,_inst.x,_inst.y,1,1,0,global.gmlc_primary,1);};};};if(yyGetBool(_inst.gmlimage)){{draw_sprite_ext(_inst,_inst.gmlimage,0,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),1,1,0,4210752,1);if(yyGetBool(gml_Script_s_is_ui_selected(_inst,_other))){draw_sprite_ext(_inst,_inst.gmlimage, 0,gmltx,gmlty,1,1,0,gml_Script_s_ui_selected_color(_inst,_other),1);}else {draw_sprite(_inst,_inst.gmlimage,0,gmltx,gmlty);};};}else {{gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(_inst.gmltext));};};};}else {{if(!yyGetBool(_inst.gmlimage_only)){{draw_sprite_ext(_inst,_inst.sprite_index,1,_inst.x,_inst.y,1,1,0,16777215,1);draw_sprite_ext(_inst,_inst.sprite_index,2,yyfminus(__yy_gml_errCheck(_inst.x),2),yyfplus(__yy_gml_errCheck(_inst.y),2),1,1,0,_inst.gmlcolour,1);};};if(yyGetBool(_inst.gmlimage)){ {if((yyGetBool(gml_Script_s_is_ui_selected(_inst,_other)))&&(yyGetBool(yyfgreater(gmlf,0.5)))&&(yyGetBool(_inst.gmlimage_only))){draw_sprite_ext(_inst,_inst.gmlimage,0,yyfminus(__yy_gml_errCheck(gmltx),2),yyfplus(__yy_gml_errCheck(gmlty),2),1,1,0,gml_Script_s_ui_selected_color(_inst,_other),1);}else {draw_sprite(_inst,_inst.gmlimage,0,yyfminus(__yy_gml_errCheck(gmltx),2),yyfplus(__yy_gml_errCheck(gmlty),2));};};}else {{gml_Script_draw_hd_text(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),2),yyfplus(__yy_gml_errCheck(gmlty), 2),string_upper(_inst.gmltext));};};};};};}function gml_Object_obj_button_sqr_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlimage_only=false;}function gml_Object_obj_button_thin_Draw_64(_inst,_other){if(yyGetBool(gml_Script_s_is_new_shadow(_inst,_other))){{draw_sprite_ext(_inst,_inst.sprite_index,1,_inst.x,_inst.y,1,1,0,global.gmlc_shadow,1);draw_sprite(_inst,_inst.sprite_index,1,yyfplus(__yy_gml_errCheck(_inst.x),2),yyfminus(__yy_gml_errCheck(_inst.y),2));};}else {{draw_sprite(_inst, _inst.sprite_index,_inst.image_index,_inst.x,_inst.y);};};draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gmltx=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2)));var gmlty=yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_height),2)));gmltx=yyfplus(gmltx,1);gmlty=yyfminus(gmlty,1);if(!yyGetBool(_inst.gmlclicked)){{var gmlf=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()), 60))),1)),2);if(yyGetBool(gml_Script_s_is_ui_selected(_inst,_other))){draw_sprite_ext(_inst,_inst.sprite_index,0,_inst.x,_inst.y,1,1,0,gml_Script_s_ui_selected_color(_inst,_other),1);};draw_sprite_ext(_inst,_inst.sprite_index,2,_inst.x,_inst.y,1,1,0,_inst.gmlcolour,1);};}else {{draw_sprite_ext(_inst,_inst.sprite_index,2,yyfminus(__yy_gml_errCheck(_inst.x),2),yyfplus(__yy_gml_errCheck(_inst.y),2),1,1,0,_inst.gmlcolour,1);gmltx=yyfminus(gmltx,2);gmlty=yyfplus(gmlty,2);};};if((yyGetBool(_inst.gmlimage))&&(yyGetBool(yyfnotequal(_inst.gmltext, "")))){{draw_set_halign(2);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,_inst.gmltext,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,1);gmltx=yyfplus(gmltx,yyfplus(2,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(sprite_get_width(_inst.gmlimage)),2))));draw_sprite_ext(_inst,_inst.gmlimage,0,gmltx,gmlty,1,1,0,16777215,1);};}else {if(yyGetBool(_inst.gmlimage)){{draw_sprite(_inst,_inst.gmlimage,0,gmltx,gmlty);};}else {{gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty, string_upper(_inst.gmltext),_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,1);};};};}function gml_Object_obj_button_thin_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltcolour=new Long(4294967295,0,false);}function gml_Object_obj_button_small_Draw_64(_inst,_other){draw_sprite(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y);if(yyGetBool(gml_Script_s_is_ui_selected(_inst,_other))){{var gmlf=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()), 60))),1)),2);draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y,1,1,0,gml_Script_s_ui_selected_color(_inst,_other),1);};};draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gmltx=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2)));var gmlty=yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_height),2)));gmltx=yyfplus(gmltx,1);gmlty=yyfminus(gmlty,1);if(!yyGetBool(_inst.gmlclicked)){ {draw_sprite_ext(_inst,_inst.sprite_index,2,_inst.x,_inst.y,1,1,0,_inst.gmlcolour,1);};}else {{draw_sprite_ext(_inst,_inst.sprite_index,2,yyfminus(__yy_gml_errCheck(_inst.x),2),yyfplus(__yy_gml_errCheck(_inst.y),2),1,1,0,_inst.gmlcolour,1);gmltx=yyfminus(gmltx,2);gmlty=yyfplus(gmlty,2);};};if((yyGetBool(_inst.gmlimage))&&(yyGetBool(yyfnotequal(_inst.gmltext,"")))){{draw_set_halign(2);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,_inst.gmltext,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour, _inst.gmltcolour,1);gmltx=yyfplus(gmltx,yyfplus(2,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(sprite_get_width(_inst.gmlimage)),2))));draw_sprite_ext(_inst,_inst.gmlimage,0,gmltx,gmlty,1,1,0,16777215,1);};}else {if(yyGetBool(_inst.gmlimage)){{draw_sprite(_inst,_inst.gmlimage,0,gmltx,gmlty);};}else {{gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,string_upper(_inst.gmltext),_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,1);};};};}function gml_Object_obj_button_small_PreCreate_0(_inst, _other){event_inherited(_inst,_other);_inst.gmltcolour=new Long(4294967295,0,false);}function gml_Object_obj_button_med_Create_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlcolour=global.gmlc_background;if(yyGetBool(_inst.gmlbtn_image)){_inst.sprite_index=_inst.gmlbtn_image;};}function gml_Object_obj_button_med_Step_0(_inst,_other){if(!yyGetBool(_inst.visible)){return;};if((yyGetBool(_inst.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(_inst.layer))))){return;};if(!yyGetBool(_inst.gmlactive)){ return;};{var __yy__v2141=GetWithArray(YYASSET_REF(0x0000004F));for(var __yy__v2142 in __yy__v2141){if(!__yy__v2141.hasOwnProperty(__yy__v2142))continue;var __yy__v2143=__yy__v2141[__yy__v2142];if(yyfless(__yy__v2143.depth,_inst.depth)){return;};}};{var __yy__v2144=GetWithArray(YYASSET_REF(0x00000048));for(var __yy__v2145 in __yy__v2144){if(!__yy__v2144.hasOwnProperty(__yy__v2145))continue;var __yy__v2146=__yy__v2144[__yy__v2145];if(yyGetBool(__yy__v2146.gmlediting)){return;};}};_inst.gmlhover=false;_inst.image_index=0; if(yyGetBool(global.gmlgamepad)){{_inst.gmlclicked=false;if((yyGetBool((yyGetBool(yyfequal(yyInst(_inst,_other,global.gmlgp).gmlui_selected,_inst.id)))&&(yyGetBool(gamepad_button_check(yyInst(_inst,_other,global.gmlgp).gmlslot,global.gmlgp_select)))))||(yyGetBool(gamepad_button_check(yyInst(_inst,_other,global.gmlgp).gmlslot,_inst.gmlgp_mapped_button)))||(yyGetBool(gamepad_button_check(yyInst(_inst,_other,global.gmlgp).gmlslot,_inst.gmlgp_mapped_hidden)))){{_inst.image_index=1;_inst.gmlclicked=true; yyInst(_inst,_other,global.gmlgp).gmlui_selected=_inst.id;};};if((yyGetBool(yyfequal(yyInst(_inst,_other,global.gmlgp).gmlui_selected,_inst.id)))&&(yyGetBool((yyGetBool(gamepad_button_check_released(yyInst(_inst,_other,global.gmlgp).gmlslot,global.gmlgp_select)))||(yyGetBool(gamepad_button_check_released(yyInst(_inst,_other,global.gmlgp).gmlslot,_inst.gmlgp_mapped_button)))||(yyGetBool(gamepad_button_check_released(yyInst(_inst,_other,global.gmlgp).gmlslot,_inst.gmlgp_mapped_hidden)))))){{if(yyGetBool(ds_map_find_value(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))){audio_play_sound(YYASSET_REF(0x02000006),1,false);};script_execute(_inst,_other,_inst.gmlonClickAction);};};};}else {{if(!yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other))){return;};if(yyGetBool(point_in_rectangle(device_mouse_x_to_gui(0),device_mouse_y_to_gui(0),_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height))))){{ _inst.gmlhover=true;};};if(yyGetBool(_inst.gmlhover)){{if(yyGetBool(mouse_check_button(1))){{_inst.image_index=1;_inst.gmlclicked=true;};};if((yyGetBool(_inst.gmlclicked))&&(yyGetBool(mouse_check_button_released(1)))){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))){audio_play_sound(YYASSET_REF(0x02000006),1,false);};script_execute(_inst,_other,_inst.gmlonClickAction);_inst.gmlclicked=false;};};};}else {{_inst.gmlclicked=false;};};};};}function gml_Object_obj_button_med_Draw_0(_inst, _other){}function gml_Object_obj_button_med_Draw_64(_inst,_other){draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gmltx=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2)));var gmlty=yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_height),2)));gmltx=yyfplus(gmltx,1);gmlty=yyfminus(gmlty,1);if(!yyGetBool(_inst.gmlactive)){{draw_sprite_ext(_inst,_inst.sprite_index,1,yyfplus(__yy_gml_errCheck(_inst.x), 2),yyfminus(__yy_gml_errCheck(_inst.y),2),1,1,0,4210752,1);draw_set_color(4210752);if((yyGetBool(_inst.gmlimage))&&(yyGetBool(yyfnotequal(_inst.gmltext,"")))){{draw_set_halign(2);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,_inst.gmltext);gmltx=yyfplus(gmltx,yyfplus(2,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(sprite_get_width(_inst.gmlimage)),2))));draw_sprite_ext(_inst,_inst.gmlimage,_inst.gmlimage_num,gmltx,gmlty,1,1,0,4210752,1);};}else {if(yyGetBool(_inst.gmlimage)){draw_sprite_ext(_inst, _inst.gmlimage,_inst.gmlimage_num,gmltx,gmlty,1,1,0,gml_Script_s_ui_selected_color(_inst,_other),1);}else {gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(_inst.gmltext));};};draw_set_color(16777215);};}else {if(!yyGetBool(_inst.gmlclicked)){{var gmlf=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),60))),1)),2);{var __yy__v2147=GetWithArray(YYASSET_REF(0x0000004F));for(var __yy__v2148 in __yy__v2147){if(!__yy__v2147.hasOwnProperty(__yy__v2148))continue; var __yy__v2149=__yy__v2147[__yy__v2148];if(yyfless(__yy__v2149.depth,_inst.depth)){gmlf=0;};}};if(yyGetBool(gml_Script_s_is_new_shadow(_inst,_other))){{draw_sprite_ext(_inst,_inst.sprite_index,1,_inst.x,_inst.y,1,1,0,global.gmlc_shadow,1);draw_sprite(_inst,_inst.sprite_index,1,yyfplus(__yy_gml_errCheck(_inst.x),2),yyfminus(__yy_gml_errCheck(_inst.y),2));};}else {{draw_sprite(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y);};};if(yyGetBool(gml_Script_s_is_ui_selected(_inst,_other))){draw_sprite_ext(_inst, _inst.sprite_index,_inst.image_index,_inst.x,_inst.y,1,1,0,gml_Script_s_ui_selected_color(_inst,_other),1);};draw_sprite_ext(_inst,_inst.sprite_index,2,_inst.x,_inst.y,1,1,0,_inst.gmlcolour,1);if((yyGetBool(_inst.gmlflash))&&(yyGetBool(yyfgreater(gmlf,0.5)))){draw_sprite_ext(_inst,_inst.sprite_index,2,_inst.x,_inst.y,1,1,0,global.gmlc_primary,1);};if(yyGetBool(_inst.gmlcontinue_icon)){draw_sprite(_inst,_inst.gmlcontinue_icon,0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)), 8),yyfminus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),0.5))),1));};if((yyGetBool(_inst.gmlimage))&&(yyGetBool(yyfnotequal(_inst.gmltext,"")))){{draw_set_halign(2);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,_inst.gmltext);gmltx=yyfplus(gmltx,yyfplus(2,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(sprite_get_width(_inst.gmlimage)),2))));draw_sprite_ext(_inst,_inst.gmlimage,_inst.gmlimage_num,gmltx,gmlty,1,1,0,16777215,1);};}else {if(yyGetBool(_inst.gmlimage)){ draw_sprite(_inst,_inst.gmlimage,_inst.gmlimage_num,gmltx,gmlty);}else {gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(_inst.gmltext));};};};}else {{draw_sprite(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y);draw_sprite_ext(_inst,_inst.sprite_index,2,yyfminus(__yy_gml_errCheck(_inst.x),2),yyfplus(__yy_gml_errCheck(_inst.y),2),1,1,0,_inst.gmlcolour,1);if(yyGetBool(_inst.gmlcontinue_icon)){draw_sprite(_inst,_inst.gmlcontinue_icon,0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x), __yy_gml_errCheck(_inst.sprite_width)),10),yyfplus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),0.5))),1));};if((yyGetBool(_inst.gmlimage))&&(yyGetBool(yyfnotequal(_inst.gmltext,"")))){{draw_set_halign(2);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,_inst.gmltext);gmltx=yyfplus(gmltx,yyfplus(2,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(sprite_get_width(_inst.gmlimage)),2))));draw_sprite_ext(_inst,_inst.gmlimage,_inst.gmlimage_num,gmltx, gmlty,1,1,0,16777215,1);};}else {if(yyGetBool(_inst.gmlimage)){{draw_sprite(_inst,_inst.gmlimage,_inst.gmlimage_num,yyfminus(__yy_gml_errCheck(gmltx),2),yyfplus(__yy_gml_errCheck(gmlty),2));};}else {{gml_Script_draw_hd_text(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),2),yyfplus(__yy_gml_errCheck(gmlty),2),string_upper(_inst.gmltext));};};};};};};}function gml_Object_obj_button_med_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlonClickAction=kgml_Script_btn_click_Continue;_inst.gmlcolour=new Long(4294967295, 0,false);_inst.gmlhover=false;_inst.gmlclicked=false;_inst.gmlimage=(-4);_inst.gmlimage_num=0;_inst.gmlactive=true;_inst.gmlcontinue_icon=(-4);_inst.gmlbtn_image=(-4);_inst.gmlflash=false;_inst.gmluid=0;_inst.gmlgp_selected=0;_inst.gmltext=gml_Script_s_str(_inst,_other,"");}function gml_Object_obj_button_med_slim_Create_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlcolour=global.gmlc_background;if(yyGetBool(_inst.gmlbtn_image)){_inst.sprite_index=_inst.gmlbtn_image;};}function gml_Object_obj_button_med_slim_Step_0(_inst, _other){if(!yyGetBool(_inst.visible)){return;};if((yyGetBool(_inst.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(_inst.layer))))){return;};if(!yyGetBool(_inst.gmlactive)){return;};{var __yy__v2150=GetWithArray(YYASSET_REF(0x0000004F));for(var __yy__v2151 in __yy__v2150){if(!__yy__v2150.hasOwnProperty(__yy__v2151))continue;var __yy__v2152=__yy__v2150[__yy__v2151];if(yyfless(__yy__v2152.depth,_inst.depth)){return;};}};{var __yy__v2153=GetWithArray(YYASSET_REF(0x00000048));for(var __yy__v2154 in __yy__v2153){ if(!__yy__v2153.hasOwnProperty(__yy__v2154))continue;var __yy__v2155=__yy__v2153[__yy__v2154];if(yyGetBool(__yy__v2155.gmlediting)){return;};}};_inst.gmlhover=false;_inst.image_index=0;if(yyGetBool(global.gmlgamepad)){{_inst.gmlclicked=false;if((yyGetBool((yyGetBool(yyfequal(yyInst(_inst,_other,global.gmlgp).gmlui_selected,_inst.id)))&&(yyGetBool(gamepad_button_check(yyInst(_inst,_other,global.gmlgp).gmlslot,global.gmlgp_select)))))||(yyGetBool(gamepad_button_check(yyInst(_inst,_other,global.gmlgp).gmlslot, _inst.gmlgp_mapped_button)))||(yyGetBool(gamepad_button_check(yyInst(_inst,_other,global.gmlgp).gmlslot,_inst.gmlgp_mapped_hidden)))){{_inst.image_index=1;_inst.gmlclicked=true;yyInst(_inst,_other,global.gmlgp).gmlui_selected=_inst.id;};};if((yyGetBool(yyfequal(yyInst(_inst,_other,global.gmlgp).gmlui_selected,_inst.id)))&&(yyGetBool((yyGetBool(gamepad_button_check_released(yyInst(_inst,_other,global.gmlgp).gmlslot,global.gmlgp_select)))||(yyGetBool(gamepad_button_check_released(yyInst(_inst,_other, global.gmlgp).gmlslot,_inst.gmlgp_mapped_button)))||(yyGetBool(gamepad_button_check_released(yyInst(_inst,_other,global.gmlgp).gmlslot,_inst.gmlgp_mapped_hidden)))))){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))){audio_play_sound(YYASSET_REF(0x02000006),1,false);};script_execute(_inst,_other,_inst.gmlonClickAction);};};};}else {{if(!yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other))){return;};if(yyGetBool(point_in_rectangle(device_mouse_x_to_gui(0), device_mouse_y_to_gui(0),_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height))))){{_inst.gmlhover=true;};};if(yyGetBool(_inst.gmlhover)){{if(yyGetBool(mouse_check_button(1))){{_inst.image_index=1;_inst.gmlclicked=true;};};if((yyGetBool(_inst.gmlclicked))&&(yyGetBool(mouse_check_button_released(1)))){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options, "op_soundfx"))){audio_play_sound(YYASSET_REF(0x02000006),1,false);};script_execute(_inst,_other,_inst.gmlonClickAction);_inst.gmlclicked=false;};};};}else {{_inst.gmlclicked=false;};};};};}function gml_Object_obj_button_med_slim_Draw_0(_inst,_other){}function gml_Object_obj_button_med_slim_Draw_64(_inst,_other){draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gmltx=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2)));var gmlty=yyfplus(__yy_gml_errCheck(_inst.y), __yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_height),2)));gmltx=yyfplus(gmltx,1);gmlty=yyfminus(gmlty,1);if(!yyGetBool(_inst.gmlactive)){{draw_sprite_ext(_inst,_inst.sprite_index,1,yyfplus(__yy_gml_errCheck(_inst.x),2),yyfminus(__yy_gml_errCheck(_inst.y),2),1,1,0,4210752,1);draw_set_color(4210752);if(yyGetBool(_inst.gmlimage)){draw_sprite(_inst,_inst.gmlimage,0,gmltx,gmlty);}else {gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(_inst.gmltext));};draw_set_color(16777215); };}else {if(!yyGetBool(_inst.gmlclicked)){{var gmlf=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),60))),1)),2);{var __yy__v2156=GetWithArray(YYASSET_REF(0x0000004F));for(var __yy__v2157 in __yy__v2156){if(!__yy__v2156.hasOwnProperty(__yy__v2157))continue;var __yy__v2158=__yy__v2156[__yy__v2157];if(yyfless(__yy__v2158.depth,_inst.depth)){gmlf=0;};}};if(yyGetBool(gml_Script_s_is_new_shadow(_inst,_other))){{draw_sprite_ext(_inst,_inst.sprite_index, 1,_inst.x,_inst.y,1,1,0,global.gmlc_shadow,1);draw_sprite(_inst,_inst.sprite_index,1,yyfplus(__yy_gml_errCheck(_inst.x),2),yyfminus(__yy_gml_errCheck(_inst.y),2));};}else {{draw_sprite(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y);};};if(yyGetBool(gml_Script_s_is_ui_selected(_inst,_other))){draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y,1,1,0,gml_Script_s_ui_selected_color(_inst,_other),1);};draw_sprite_ext(_inst,_inst.sprite_index,2,_inst.x,_inst.y,1,1,0, _inst.gmlcolour,1);if((yyGetBool(_inst.gmlflash))&&(yyGetBool(yyfgreater(gmlf,0.5)))){draw_sprite_ext(_inst,_inst.sprite_index,2,_inst.x,_inst.y,1,1,0,global.gmlc_primary,1);};if(yyGetBool(_inst.gmlcontinue_icon)){draw_sprite(_inst,_inst.gmlcontinue_icon,0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),8),yyfminus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),0.5))),1));};if(yyGetBool(_inst.gmlimage)){draw_sprite(_inst, _inst.gmlimage,0,gmltx,gmlty);}else {gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(_inst.gmltext));};};}else {{draw_sprite(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y);draw_sprite_ext(_inst,_inst.sprite_index,2,yyfminus(__yy_gml_errCheck(_inst.x),2),yyfplus(__yy_gml_errCheck(_inst.y),2),1,1,0,_inst.gmlcolour,1);if(yyGetBool(_inst.gmlcontinue_icon)){draw_sprite(_inst,_inst.gmlcontinue_icon,0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)), 10),yyfplus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),0.5))),1));};if(yyGetBool(_inst.gmlimage)){{draw_sprite(_inst,_inst.gmlimage,0,yyfminus(__yy_gml_errCheck(gmltx),2),yyfplus(__yy_gml_errCheck(gmlty),2));};}else {{gml_Script_draw_hd_text(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),2),yyfplus(__yy_gml_errCheck(gmlty),2),string_upper(_inst.gmltext));};};};};};}function gml_Object_obj_button_med_slim_PreCreate_0(_inst,_other){event_inherited(_inst, _other);_inst.gmltext=gml_Script_s_str(_inst,_other,"");_inst.gmlonClickAction=kgml_Script_btn_click_Continue;_inst.gmlcolour=new Long(4294967295,0,false);_inst.gmlhover=false;_inst.gmlclicked=false;_inst.gmlimage=(-4);_inst.gmlactive=true;_inst.gmlcontinue_icon=(-4);_inst.gmlbtn_image=(-4);_inst.gmlflash=false;_inst.gmluid=0;_inst.gmlgp_selected=0;}function gml_Object_obj_appstore_btn_Create_0(_inst,_other){if(yyGetBool(global.gmlpoki)){{instance_destroy(_inst);return;};};if(yyGetBool(global.gmlbrowser)){ {if(yyGetBool(_inst.gmlgoogle)){_inst.sprite_index=YYASSET_REF(0x010000D8);};};}else {{if(yyGetBool(_inst.gmlgoogle)){_inst.sprite_index=YYASSET_REF(0x010000DA);}else {_inst.sprite_index=YYASSET_REF(0x010000DB);};};};}function gml_Object_obj_appstore_btn_Step_0(_inst,_other){if(!yyGetBool(_inst.visible)){return;};if((yyGetBool(_inst.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(_inst.layer))))){return;};{var __yy__v2159=GetWithArray(YYASSET_REF(0x0000004F));for(var __yy__v2160 in __yy__v2159){if(!__yy__v2159.hasOwnProperty(__yy__v2160))continue; var __yy__v2161=__yy__v2159[__yy__v2160];if(yyfless(__yy__v2161.depth,_inst.depth)){return;};}};{var __yy__v2162=GetWithArray(YYASSET_REF(0x00000048));for(var __yy__v2163 in __yy__v2162){if(!__yy__v2162.hasOwnProperty(__yy__v2163))continue;var __yy__v2164=__yy__v2162[__yy__v2163];if(yyGetBool(__yy__v2164.gmlediting)){return;};}};if(!yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other))){return;};_inst.gmlhover=false;if(yyGetBool(point_in_rectangle(device_mouse_x_to_gui(0),device_mouse_y_to_gui(0),_inst.x, _inst.y,yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height))))){{_inst.gmlhover=true;};};if(yyGetBool(_inst.gmlhover)){{if(yyGetBool(mouse_check_button(1))){{_inst.gmlclicked=true;};};if((yyGetBool(_inst.gmlclicked))&&(yyGetBool(mouse_check_button_released(1)))){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))){audio_play_sound(YYASSET_REF(0x02000006), 1,false);};_inst.gmlclicked=false;if(yyGetBool(global.gmlbrowser)){{if(yyGetBool(_inst.gmlgoogle)){url_open_ext(global.gmlurl_google,"_blank");}else {url_open_ext(global.gmlurl_apple,"_blank");};};}else {{if(yyGetBool(_inst.gmlgoogle)){url_open_ext(global.gmlurl_discord,"_blank");}else {url_open_ext(global.gmlurl_twitter,"_blank");};};};};};};}else {{_inst.gmlclicked=false;};};}function gml_Object_obj_appstore_btn_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlgoogle=false;_inst.gmltwitter=false; _inst.gmldiscord=false;_inst.gmlhover=false;_inst.gmlclicked=false;}function gml_Object_obj_reddit_btn_Create_0(_inst,_other){if(yyGetBool(global.gmlpoki)){{instance_destroy(_inst);return;};};}function gml_Object_obj_reddit_btn_Step_0(_inst,_other){if(!yyGetBool(_inst.visible)){return;};if((yyGetBool(_inst.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(_inst.layer))))){return;};{var __yy__v2165=GetWithArray(YYASSET_REF(0x0000004F));for(var __yy__v2166 in __yy__v2165){if(!__yy__v2165.hasOwnProperty(__yy__v2166))continue; var __yy__v2167=__yy__v2165[__yy__v2166];if(yyfless(__yy__v2167.depth,_inst.depth)){return;};}};{var __yy__v2168=GetWithArray(YYASSET_REF(0x00000048));for(var __yy__v2169 in __yy__v2168){if(!__yy__v2168.hasOwnProperty(__yy__v2169))continue;var __yy__v2170=__yy__v2168[__yy__v2169];if(yyGetBool(__yy__v2170.gmlediting)){return;};}};_inst.gmlhover=false;if((yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other)))&&(yyGetBool(point_in_rectangle(device_mouse_x_to_gui(0),device_mouse_y_to_gui(0),_inst.x,_inst.y, yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)))))){{_inst.gmlhover=true;};};if(yyGetBool(_inst.gmlhover)){{if(yyGetBool(mouse_check_button(1))){{_inst.gmlclicked=true;};};if((yyGetBool(_inst.gmlclicked))&&(yyGetBool(mouse_check_button_released(1)))){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))){audio_play_sound(YYASSET_REF(0x02000006), 1,false);};_inst.gmlclicked=false;url_open_ext(global.gmlurl_reddit,"_blank");};};};}else {{_inst.gmlclicked=false;};};}function gml_Object_obj_reddit_btn_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlgoogle=false;_inst.gmltwitter=false;_inst.gmldiscord=false;_inst.gmlhover=false;_inst.gmlclicked=false;}function gml_Object_obj_btn_store_Create_0(_inst,_other){event_inherited(_inst,_other);if(!yyGetBool(global.gmlIAP_Enabled)){{_inst.gmlactive=false;yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm=__yy_gml_array_check(yyInst(_inst, _other,YYASSET_REF(0x00000062)).alarm,3662155414);yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm[__yy_gml_array_check_index_set(0)]=yyftime(__yy_gml_errCheck(g_pBuiltIn.get_room_speed()),10);};};if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlintro)){_inst.visible=false;};if((yyGetBool(!yyGetBool(global.gmlmobile_device)))||(yyGetBool(0))){instance_destroy(_inst);};}function gml_Object_obj_btn_store_Step_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlactive=global.gmlIAP_Enabled; if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlintro)){_inst.visible=false;};}function gml_Object_obj_btn_store_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlonClickAction=kgml_Script_s_open_store;_inst.gmlimage=YYASSET_REF(0x0100007A);}function gml_Object_obj_bossprofile_Create_0(_inst,_other){_inst.gmlpmap=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile;if(yyfequal(_inst.gmlpmap,(-4))){return;};draw_set_font(global.gmlfnt_small_flex);draw_set_halign(0); draw_set_valign(1);yyInst(_inst,_other,100771).gmlpmap=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile;yyInst(_inst,_other,100771).gmlactive=false;yyInst(_inst,_other,100767).gmltitle=gml_Script_s_get_string_position_full(_inst,_other,ds_map_find_value(_inst.gmlpmap,"position"));yyInst(_inst,_other,100768).gmltext=yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"lname")));yyInst(_inst,_other,100769).gmltext=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst, _other,"ui_Age")),": "),__yy_gml_errCheck(string(ds_map_find_value(_inst.gmlpmap,"age"))));yyInst(_inst,_other,100770).gmltext=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Attitude")),": "),__yy_gml_errCheck(gml_Script_s_get_string_attitude(_inst,_other,ds_map_find_value(_inst.gmlpmap,"attitude"))));_inst.gmlattitude_img=gml_Script_s_get_attitude_icon(_inst,_other,ds_map_find_value(_inst.gmlpmap,"attitude"));yyInst(_inst,_other,100780).visible=false;var gmlgame_count=gml_Script_s_count_games_coached(_inst, _other);var gmlsim_count=gml_Script_s_count_games_simmed(_inst,_other);var gmlsim_prc=round(yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlsim_count),__yy_gml_errCheck(gmlgame_count))),100));yyInst(_inst,_other,100781).gmltext=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_TotalGames")),": "),__yy_gml_errCheck(string(gmlgame_count)));yyInst(_inst,_other,100782).gmltext=yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_SimGames")), ": "),__yy_gml_errCheck(string(gmlsim_count)))," ("),__yy_gml_errCheck(string(gmlsim_prc))),"%)");if(yyGetBool(global.gmldebug)){yyInst(_inst,_other,100774).gmltext=yyfplus("Rating:",__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_rating)));}else {yyInst(_inst,_other,100774).visible=false;};yyInst(_inst,_other,100780).visible=true;if(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyface_x,0)){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlface_type_coach=true; room_goto(YYASSET_REF(0x03000004));return;};};gml_Script_s_load_profile_uni(_inst,_other,100771);if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{yyInst(_inst,_other,100782).visible=false;};};gml_Script_s_check_intro(_inst,_other);gml_Script_s_check_intro_rm_profile_boss(_inst,_other);}function gml_Object_obj_bossprofile_Draw_64(_inst,_other){if(yyfless(_inst.gmlattitude_img,6)){draw_sprite(_inst,YYASSET_REF(0x0100006B),_inst.gmlattitude_img,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100770).x), __yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100770).gmltext)," ")))),yyInst(_inst,_other,100770).y);};}function gml_Object_obj_bossprofile_KeyPress_90(_inst,_other){{var __yy__v2171=GetWithArray(YYASSET_REF(0x00000048));for(var __yy__v2172 in __yy__v2171){if(!__yy__v2171.hasOwnProperty(__yy__v2172))continue;var __yy__v2173=__yy__v2171[__yy__v2172];return;}};if(yyGetBool(global.gmldebug)){gml_Script_s_complete_achievement(_inst,_other,"ACH_WIN_RETROBOWL1"); };}function gml_Object_obj_link_btn_Create_0(_inst,_other){_inst.sprite_index=_inst.gmlimage;}function gml_Object_obj_link_btn_Step_0(_inst,_other){if(!yyGetBool(_inst.visible)){return;};if((yyGetBool(_inst.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(_inst.layer))))){return;};{var __yy__v2174=GetWithArray(YYASSET_REF(0x0000004F));for(var __yy__v2175 in __yy__v2174){if(!__yy__v2174.hasOwnProperty(__yy__v2175))continue;var __yy__v2176=__yy__v2174[__yy__v2175];if(yyfless(__yy__v2176.depth,_inst.depth)){ return;};}};{var __yy__v2177=GetWithArray(YYASSET_REF(0x00000048));for(var __yy__v2178 in __yy__v2177){if(!__yy__v2177.hasOwnProperty(__yy__v2178))continue;var __yy__v2179=__yy__v2177[__yy__v2178];if(yyGetBool(__yy__v2179.gmlediting)){return;};}};if(!yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other))){return;};_inst.gmlhover=false;if(yyGetBool(point_in_rectangle(device_mouse_x_to_gui(0),device_mouse_y_to_gui(0),_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)), yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height))))){{_inst.gmlhover=true;};};if(yyGetBool(_inst.gmlhover)){{if(yyGetBool(mouse_check_button(1))){{_inst.gmlclicked=true;};};if((yyGetBool(_inst.gmlclicked))&&(yyGetBool(mouse_check_button_released(1)))){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))){audio_play_sound(YYASSET_REF(0x02000006),1,false);};_inst.gmlclicked=false;var ___sw1818___=g_pBuiltIn.get_os_type(); var ___swc1819___=-1;if(yyCompareVal(___sw1818___,0,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1818___,4,g_GMLMathEpsilon,false)==0){___swc1819___=0;}else if(yyCompareVal(___sw1818___,3,g_GMLMathEpsilon,false)==0){___swc1819___=1;}switch(___swc1819___){case 0:{url_open_ext(_inst.gmlurl_android,"_blank");break;}case 1:{url_open_ext(_inst.gmlurl_ios,"_blank");break;}};};};};}else {{_inst.gmlclicked=false;};};}function gml_Object_obj_link_btn_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlhover=false; _inst.gmlclicked=false;_inst.gmlimage=0;_inst.gmlurl_android="";_inst.gmlurl_ios="";}function gml_Object_obj_btn_restore_Create_0(_inst,_other){event_inherited(_inst,_other);if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"fullversion"))){_inst.visible=false;};if(yyfequal(g_pBuiltIn.get_os_type(),4)){{_inst.visible=false;};};}function gml_Object_obj_btn_restore_Alarm_0(_inst,_other){_inst.gmlactive=true;}function gml_Object_obj_btn_restore_Step_0(_inst,_other){ event_inherited(_inst,_other);if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"fullversion"))){_inst.visible=false;};}function gml_Object_obj_btn_restore_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltext=gml_Script_s_str(_inst,_other,"btn_RestorePurchases");_inst.gmlonClickAction=kgml_Script_s_iap_restore;}function gml_Object_obj_btn_buy_Alarm_0(_inst,_other){_inst.gmlactive=true;}function gml_Object_obj_btn_buy_Step_0(_inst,_other){event_inherited(_inst, _other);if(yyGetBool(script_exists(_inst.gmlstep_check))){script_execute(_inst,_other,_inst.gmlstep_check);};}function gml_Object_obj_btn_buy_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlstep_check=(-4);_inst.gmltext=gml_Script_s_str(_inst,_other,"btn_RestorePurchases");_inst.gmlonClickAction=kgml_Script_s_iap_restore;}function gml_Object_obj_player_profile_Create_0(_inst,_other){_inst.gmlhelmet=__yy_gml_array_check(_inst.gmlhelmet,3666812894);_inst.gmlhelmet[__yy_gml_array_check_index_set(2)]=0; _inst.gmlshirt=__yy_gml_array_check(_inst.gmlshirt,1027333011);_inst.gmlshirt[__yy_gml_array_check_index_set(2)]=0;_inst.gmlpants=__yy_gml_array_check(_inst.gmlpants,3194782232);_inst.gmlpants[__yy_gml_array_check_index_set(2)]=0;_inst.gmlpants_b=__yy_gml_array_check(_inst.gmlpants_b,1445469295);_inst.gmlpants_b[__yy_gml_array_check_index_set(2)]=0;_inst.gmlshow_arrow=0;gml_Script_s_set_up_uniform_profile(_inst,_other,(-4));}function gml_Object_obj_player_profile_Step_0(_inst,_other){{var __yy__v2180=GetWithArray(YYASSET_REF(0x0000004F)); for(var __yy__v2181 in __yy__v2180){if(!__yy__v2180.hasOwnProperty(__yy__v2181))continue;var __yy__v2182=__yy__v2180[__yy__v2181];if(yyfless(__yy__v2182.depth,_inst.depth)){return;};}};if(!yyGetBool(_inst.gmlpmap)){return;};if(yyfless(_inst.gmlold_condition,0)){_inst.gmlold_condition=real(ds_map_find_value(_inst.gmlpmap,"condition"));};_inst.gmlold_condition=lerp(_inst.gmlold_condition,real(ds_map_find_value(_inst.gmlpmap,"condition")),0.05);if(!yyGetBool(_inst.gmlactive)){return;};_inst.gmlhover=false; if(yyGetBool(global.gmlgamepad)){{if((yyGetBool(yyfequal(yyInst(_inst,_other,global.gmlgp).gmlui_selected,_inst.id)))&&(yyGetBool(gamepad_button_check_released(yyInst(_inst,_other,global.gmlgp).gmlslot,global.gmlgp_select)))){{gml_Script_s_save_last_selected(_inst,_other);if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))){audio_play_sound(YYASSET_REF(0x02000006),1,false);};script_execute(_inst,_other,_inst.gmlonClickAction);};};if(yyfnotequal(g_pBuiltIn.get_os_type(), 21)){if((yyGetBool(yyfequal(yyInst(_inst,_other,global.gmlgp).gmlui_selected,_inst.id)))&&(yyGetBool(gamepad_button_check_released(yyInst(_inst,_other,global.gmlgp).gmlslot,32772)))){{if((yyGetBool(_inst.gmlonHoldAction))&&(yyGetBool(_inst.gmlpmap))){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))){audio_play_sound(YYASSET_REF(0x02000006),1,false);};yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile=_inst.gmlpmap;script_execute(_inst, _other,_inst.gmlonHoldAction);};};};};};};}else {{if((yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other)))&&(yyGetBool(point_in_rectangle(device_mouse_x_to_gui(0),device_mouse_y_to_gui(0),_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)))))){{_inst.gmlhover=true;};};if(yyGetBool(_inst.gmlhover)){{if(yyGetBool(mouse_check_button(1))){{if(!yyGetBool(_inst.gmlclicked)){_inst.gmlclicked=g_pBuiltIn.get_current_time(); }else {if((yyGetBool(_inst.gmlonHoldAction))&&(yyGetBool(_inst.gmlpmap))&&(yyGetBool(yyfgreater(yyfminus(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),__yy_gml_errCheck(_inst.gmlclicked)),3000)))&&(yyGetBool(yyfnotequal(g_pBuiltIn.get_os_type(),21)))){{_inst.gmlclicked=0;yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile=_inst.gmlpmap;script_execute(_inst,_other,_inst.gmlonHoldAction);};};};};};if((yyGetBool(_inst.gmlclicked))&&(yyGetBool(mouse_check_button_released(1)))){{if(yyGetBool(ds_map_find_value(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))){audio_play_sound(YYASSET_REF(0x02000006),1,false);};script_execute(_inst,_other,_inst.gmlonClickAction);_inst.gmlclicked=0;};};};}else {{_inst.gmlclicked=0;};};};};}function gml_Object_obj_player_profile_Draw_0(_inst,_other){}function gml_Object_obj_player_profile_Draw_64(_inst,_other){if(!yyGetBool(ds_exists(_inst.gmlpmap,1))){{return;};};if(yyfequal(_inst.gmlpmap,(-4))){{return;};};if(!yyGetBool(_inst.gmlpmap)){{if(!yyGetBool(variable_instance_exists(_inst.id, "_face_hunt_error_shown"))){gml_Script_slog(_inst,_other,"FACEHUNT: No pmap set for obj_player_profile!");};_inst.gml_face_hunt_error_shown=true;return;};};var gmlisFlashTime=false;try{{gmlisFlashTime=yyfless(g_pBuiltIn.get_current_time(),yyfplus(__yy_gml_errCheck(real(ds_map_find_value(_inst.gmlpmap,"flash_time"))),2550));}}catch(gmle){gmle=__yy__processException(gmle);{}};if((yyGetBool(_inst.gmlflash))||(yyGetBool(gmlisFlashTime))){{if(!yyGetBool(global.gmlgamepad)){{var gmlf=sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()), 120));if(yyfless(gmlf,0.1)){return;};};};};};var gmlpos=real(ds_map_find_value(_inst.gmlpmap,"position"));var gmlbx=yyfplus(__yy_gml_errCheck(_inst.x),2);var gmlby=yyfminus(__yy_gml_errCheck(_inst.y),2);if((yyGetBool(_inst.gmlclicked))||(yyGetBool(!yyGetBool(_inst.gmlactive)))){{gmlbx=_inst.x;gmlby=_inst.y;};};draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y,1,1,0,global.gmlc_shadow,1);var gmlpos_col=gml_Script_s_get_position_colour(_inst,_other,gmlpos);if((yyGetBool(ds_map_exists(_inst.gmlpmap, "resting")))&&(yyGetBool(ds_map_find_value(_inst.gmlpmap,"resting")))){gmlpos_col=8421504;}else {if((yyGetBool(ds_map_exists(_inst.gmlpmap,"condition")))&&(yyGetBool(yyfless(ds_map_find_value(_inst.gmlpmap,"condition"),0)))){gmlpos_col=8421504;}else {if(yyGetBool(gml_Script_s_is_backup(_inst,_other,_inst.gmlpmap))){gmlpos_col=8421504;}else {if((yyGetBool(gml_Script_s_is_co_mode(_inst,_other)))&&(yyGetBool(ds_map_exists(_inst.gmlpmap,"suspended")))&&(yyGetBool(ds_map_find_value(_inst.gmlpmap,"suspended")))){ gmlpos_col=8421504;};};};};if(yyfequal(g_pBuiltIn.get_current_room(),YYASSET_REF(0x0300000C))){gmlpos_col=global.gmlc_primary;};draw_rectangle_color(yyfplus(__yy_gml_errCheck(gmlbx),2),yyfplus(__yy_gml_errCheck(gmlby),2),yyfminus(yyfplus(__yy_gml_errCheck(gmlbx),__yy_gml_errCheck(_inst.sprite_width)),3),yyfplus(__yy_gml_errCheck(gmlby),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),0.5))),gmlpos_col,gmlpos_col,gmlpos_col,gmlpos_col,0);if((yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode))&&(yyGetBool(_inst.gmlpmap))&&(yyGetBool(yyfequal(ds_map_find_value(_inst.gmlpmap, "position"),1)))){draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,gmlbx,gmlby,1,1,0,65535,1);}else {draw_sprite(_inst,_inst.sprite_index,_inst.image_index,gmlbx,gmlby);};var gmlselectflash=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),60))),1)),2);if((yyGetBool(gml_Script_s_is_ui_selected(_inst,_other)))&&(yyGetBool(yyfgreater(gmlselectflash,0.5)))){draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,gmlbx,gmlby, 1,1,0,gml_Script_s_ui_selected_color(_inst,_other),1);};shader_set(YYASSET_REF(0x0A000000));shader_set_uniform_f(global.gmlcolorHelmet,1,0,0);shader_set_uniform_f(global.gmlcolorShirt,0,1,0);shader_set_uniform_f(global.gmlcolorPants,1,0,1);if((yyGetBool(gml_Script_s_is_co_mode(_inst,_other)))&&(yyGetBool(ds_map_exists(_inst.gmlpmap,"team_leave_reason")))&&(yyGetBool(yyfequal(ds_map_find_value(_inst.gmlpmap,"team_leave_reason"),"drafted")))&&(yyGetBool(ds_map_exists(_inst.gmlpmap,"uniform_record")))&&(yyGetBool(yyfnotequal(ds_map_find_value(_inst.gmlpmap, "uniform_record"),"")))){{var gmldraftUniform=gml_Script_s_uniform_cols_from_record(_inst,_other,ds_map_find_value(_inst.gmlpmap,"uniform_record"));shader_set_uniform_f(global.gmlreplaceHelmet,gmldraftUniform[__yy_gml_array_check_index(0,gmldraftUniform)],gmldraftUniform[__yy_gml_array_check_index(1,gmldraftUniform)],gmldraftUniform[__yy_gml_array_check_index(2,gmldraftUniform)]);shader_set_uniform_f(global.gmlreplaceShirt,gmldraftUniform[__yy_gml_array_check_index(3,gmldraftUniform)],gmldraftUniform[__yy_gml_array_check_index(4, gmldraftUniform)],gmldraftUniform[__yy_gml_array_check_index(5,gmldraftUniform)]);shader_set_uniform_f(global.gmlreplacePants,gmldraftUniform[__yy_gml_array_check_index(6,gmldraftUniform)],gmldraftUniform[__yy_gml_array_check_index(7,gmldraftUniform)],gmldraftUniform[__yy_gml_array_check_index(8,gmldraftUniform)]);};}else {{shader_set_uniform_f(global.gmlreplaceHelmet,_inst.gmlhelmet[__yy_gml_array_check_index(2,_inst.gmlhelmet)],_inst.gmlhelmet[__yy_gml_array_check_index(1,_inst.gmlhelmet)],_inst.gmlhelmet[__yy_gml_array_check_index(0, _inst.gmlhelmet)]);shader_set_uniform_f(global.gmlreplaceShirt,_inst.gmlshirt[__yy_gml_array_check_index(2,_inst.gmlshirt)],_inst.gmlshirt[__yy_gml_array_check_index(1,_inst.gmlshirt)],_inst.gmlshirt[__yy_gml_array_check_index(0,_inst.gmlshirt)]);shader_set_uniform_f(global.gmlreplacePants,_inst.gmlpants[__yy_gml_array_check_index(2,_inst.gmlpants)],_inst.gmlpants[__yy_gml_array_check_index(1,_inst.gmlpants)],_inst.gmlpants[__yy_gml_array_check_index(0,_inst.gmlpants)]);};};if(yyGetBool(gml_Script_s_is_staff(_inst, _other,ds_map_find_value(_inst.gmlpmap,"position")))){{var ___sw1832___=ds_map_find_value(_inst.gmlpmap,"face_y");var ___swc1833___=-1;if(yyCompareVal(___sw1832___,0,g_GMLMathEpsilon,false)==0){___swc1833___=0;}else if(yyCompareVal(___sw1832___,1,g_GMLMathEpsilon,false)==0){___swc1833___=1;}else if(yyCompareVal(___sw1832___,2,g_GMLMathEpsilon,false)==0){___swc1833___=2;}else if(yyCompareVal(___sw1832___,3,g_GMLMathEpsilon,false)==0){___swc1833___=3;}switch(___swc1833___){case 0:{draw_sprite_ext(_inst, YYASSET_REF(0x010000D3),ds_map_find_value(_inst.gmlpmap,"face_x"),yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}case 1:{draw_sprite_ext(_inst,YYASSET_REF(0x010000D4),ds_map_find_value(_inst.gmlpmap,"face_x"),yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}case 2:{draw_sprite_ext(_inst,YYASSET_REF(0x010000D5),ds_map_find_value(_inst.gmlpmap,"face_x"),yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby), 3),1,1,0,16777215,1);break;}case 3:{draw_sprite_ext(_inst,YYASSET_REF(0x010000D6),ds_map_find_value(_inst.gmlpmap,"face_x"),yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}};};}else {{var ___sw1834___=ds_map_find_value(_inst.gmlpmap,"skin");var ___swc1835___=-1;if(yyCompareVal(___sw1834___,2,g_GMLMathEpsilon,false)==0){___swc1835___=0;}else if(yyCompareVal(___sw1834___,1,g_GMLMathEpsilon,false)==0){___swc1835___=1;}else if(yyCompareVal(___sw1834___,0,g_GMLMathEpsilon, false)==0){___swc1835___=2;}switch(___swc1835___){case 0:{var ___sw1836___=ds_map_find_value(_inst.gmlpmap,"face_y");var ___swc1837___=-1;if(yyCompareVal(___sw1836___,0,g_GMLMathEpsilon,false)==0){___swc1837___=0;}else if(yyCompareVal(___sw1836___,1,g_GMLMathEpsilon,false)==0){___swc1837___=1;}else if(yyCompareVal(___sw1836___,2,g_GMLMathEpsilon,false)==0){___swc1837___=2;}switch(___swc1837___){case 0:{draw_sprite_ext(_inst,gml_Script_s_face_from_set(_inst,_other,YYASSET_REF(0x010000C6),_inst.gmlpmap), ds_map_find_value(_inst.gmlpmap,"face_x"),yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}case 1:{draw_sprite_ext(_inst,gml_Script_s_face_from_set(_inst,_other,YYASSET_REF(0x010000C8),_inst.gmlpmap),ds_map_find_value(_inst.gmlpmap,"face_x"),yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}case 2:{draw_sprite_ext(_inst,gml_Script_s_face_from_set(_inst,_other,YYASSET_REF(0x010000C9),_inst.gmlpmap),ds_map_find_value(_inst.gmlpmap, "face_x"),yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}};break;}case 1:{var ___sw1838___=ds_map_find_value(_inst.gmlpmap,"face_y");var ___swc1839___=-1;if(yyCompareVal(___sw1838___,0,g_GMLMathEpsilon,false)==0){___swc1839___=0;}switch(___swc1839___){case 0:{draw_sprite_ext(_inst,gml_Script_s_face_from_set(_inst,_other,YYASSET_REF(0x010000CA),_inst.gmlpmap),ds_map_find_value(_inst.gmlpmap,"face_x"),yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby), 3),1,1,0,16777215,1);break;}};break;}case 2:{var ___sw1840___=ds_map_find_value(_inst.gmlpmap,"face_y");var ___swc1841___=-1;if(yyCompareVal(___sw1840___,0,g_GMLMathEpsilon,false)==0){___swc1841___=0;}else if(yyCompareVal(___sw1840___,1,g_GMLMathEpsilon,false)==0){___swc1841___=1;}else if(yyCompareVal(___sw1840___,2,g_GMLMathEpsilon,false)==0){___swc1841___=2;}else if(yyCompareVal(___sw1840___,3,g_GMLMathEpsilon,false)==0){___swc1841___=3;}else if(yyCompareVal(___sw1840___,4,g_GMLMathEpsilon,false)==0){ ___swc1841___=4;}else if(yyCompareVal(___sw1840___,5,g_GMLMathEpsilon,false)==0){___swc1841___=5;}else if(yyCompareVal(___sw1840___,6,g_GMLMathEpsilon,false)==0){___swc1841___=6;}else if(yyCompareVal(___sw1840___,7,g_GMLMathEpsilon,false)==0){___swc1841___=7;}else if(yyCompareVal(___sw1840___,8,g_GMLMathEpsilon,false)==0){___swc1841___=8;}switch(___swc1841___){case 0:{draw_sprite_ext(_inst,gml_Script_s_face_from_set(_inst,_other,YYASSET_REF(0x010000CB),_inst.gmlpmap),ds_map_find_value(_inst.gmlpmap,"face_x"), yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}case 1:{draw_sprite_ext(_inst,gml_Script_s_face_from_set(_inst,_other,YYASSET_REF(0x010000CC),_inst.gmlpmap),ds_map_find_value(_inst.gmlpmap,"face_x"),yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}case 2:{draw_sprite_ext(_inst,gml_Script_s_face_from_set(_inst,_other,YYASSET_REF(0x010000CD),_inst.gmlpmap),ds_map_find_value(_inst.gmlpmap,"face_x"),yyfplus(__yy_gml_errCheck(gmlbx), 16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}case 3:{draw_sprite_ext(_inst,gml_Script_s_face_from_set(_inst,_other,YYASSET_REF(0x010000CE),_inst.gmlpmap),ds_map_find_value(_inst.gmlpmap,"face_x"),yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}case 4:{draw_sprite_ext(_inst,gml_Script_s_face_from_set(_inst,_other,YYASSET_REF(0x010000CF),_inst.gmlpmap),ds_map_find_value(_inst.gmlpmap,"face_x"),yyfplus(__yy_gml_errCheck(gmlbx),16), yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}case 5:{draw_sprite_ext(_inst,gml_Script_s_face_from_set(_inst,_other,YYASSET_REF(0x010000D0),_inst.gmlpmap),ds_map_find_value(_inst.gmlpmap,"face_x"),yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}case 6:{draw_sprite_ext(_inst,gml_Script_s_face_from_set(_inst,_other,YYASSET_REF(0x010000D0),_inst.gmlpmap),ds_map_find_value(_inst.gmlpmap,"face_x"),yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby), 3),1,1,0,16777215,1);break;}case 7:{draw_sprite_ext(_inst,gml_Script_s_face_from_set(_inst,_other,YYASSET_REF(0x010000D1),_inst.gmlpmap),ds_map_find_value(_inst.gmlpmap,"face_x"),yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}case 8:{draw_sprite_ext(_inst,gml_Script_s_face_from_set(_inst,_other,YYASSET_REF(0x010000D2),_inst.gmlpmap),ds_map_find_value(_inst.gmlpmap,"face_x"),yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1, 1,0,16777215,1);break;}};break;}};};};shader_reset();draw_set_font(global.gmlfnt_small_flex);draw_set_valign(1);draw_set_halign(0);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmlbx),6),yyfplus(__yy_gml_errCheck(gmlby),8),gml_Script_s_get_string_position(_inst,_other,gmlpos));draw_set_halign(2);var gmlatt=ds_map_find_value(_inst.gmlpmap,"attitude");var gmlcon=ds_map_find_value(_inst.gmlpmap,"condition");var gmlage=real(ds_map_find_value(_inst.gmlpmap,"age"));if(yyfnotequal(g_pBuiltIn.get_current_room(), YYASSET_REF(0x0300000C))){{if((yyGetBool(!yyGetBool(_inst.gmlflash_attitude)))||(yyGetBool(yyfgreater(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),200)),0.1)))){{draw_sprite(_inst,YYASSET_REF(0x0100006B),gml_Script_s_get_attitude_icon(_inst,_other,gmlatt),yyfminus(yyfplus(__yy_gml_errCheck(gmlbx),__yy_gml_errCheck(_inst.sprite_width)),9),yyfplus(__yy_gml_errCheck(gmlby),8));var ___sw1842___=_inst.gmlshow_arrow;var ___swc1843___=-1;if(yyCompareVal(___sw1842___,(-1),g_GMLMathEpsilon, false)==0){___swc1843___=0;}else if(yyCompareVal(___sw1842___,0,g_GMLMathEpsilon,false)==0){___swc1843___=1;}else if(yyCompareVal(___sw1842___,1,g_GMLMathEpsilon,false)==0){___swc1843___=2;}switch(___swc1843___){case 0:{draw_sprite_ext(_inst,YYASSET_REF(0x01000053),0,yyfplus(yyfplus(__yy_gml_errCheck(gmlbx),__yy_gml_errCheck(_inst.sprite_width)),9),yyfplus(__yy_gml_errCheck(gmlby),8),1,1,0,255,1);break;}case 1:{break;}case 2:{draw_sprite_ext(_inst,YYASSET_REF(0x01000053),1,yyfplus(yyfplus(__yy_gml_errCheck(gmlbx), __yy_gml_errCheck(_inst.sprite_width)),9),yyfplus(__yy_gml_errCheck(gmlby),8),1,1,0,65280,1);break;}};};};if(!yyGetBool(gml_Script_s_is_staff(_inst,_other,gmlpos))){{if((yyGetBool(ds_map_exists(_inst.gmlpmap,"kr")))&&(yyGetBool(ds_map_find_value(_inst.gmlpmap,"kr")))){draw_sprite(_inst,YYASSET_REF(0x010000BC),1,yyfminus(yyfplus(__yy_gml_errCheck(gmlbx),__yy_gml_errCheck(_inst.sprite_width)),20),yyfplus(__yy_gml_errCheck(gmlby),2));};if((yyGetBool(gml_Script_s_is_co_mode(_inst,_other)))&&(yyGetBool(ds_map_find_value(_inst.gmlpmap, "suspended")))){{draw_sprite(_inst,YYASSET_REF(0x0100006F),4,yyfminus(yyfplus(__yy_gml_errCheck(gmlbx),__yy_gml_errCheck(_inst.sprite_width)),9),yyfplus(__yy_gml_errCheck(gmlby),20));};}else {if(yyGetBool(ds_map_find_value(_inst.gmlpmap,"resting"))){draw_sprite(_inst,YYASSET_REF(0x0100006F),3,yyfminus(yyfplus(__yy_gml_errCheck(gmlbx),__yy_gml_errCheck(_inst.sprite_width)),9),yyfplus(__yy_gml_errCheck(gmlby),20));}else {if((yyGetBool(!yyGetBool(_inst.gmlflash_attitude)))&&(yyGetBool(yyfgreater(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()), 200)),0.1)))){{if(yyfgreater(ds_map_find_value(_inst.gmlpmap,"outtrade_pick"),0)){draw_sprite(_inst,YYASSET_REF(0x0100006C),0,yyfminus(yyfplus(__yy_gml_errCheck(gmlbx),__yy_gml_errCheck(_inst.sprite_width)),9),yyfplus(__yy_gml_errCheck(gmlby),20));}else {if(yyfless(gmlcon,0)){draw_sprite(_inst,YYASSET_REF(0x0100006F),0,yyfminus(yyfplus(__yy_gml_errCheck(gmlbx),__yy_gml_errCheck(_inst.sprite_width)),9),yyfplus(__yy_gml_errCheck(gmlby),20));};};};};};};};};if(yyGetBool(gml_Script_s_is_co_mode(_inst, _other))){{if(!yyGetBool(gml_Script_s_is_staff(_inst,_other,gmlpos))){{var gmltmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteamlist,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id);if((yyGetBool(!yyGetBool(is_undefined(gmltmap))))&&(yyGetBool(yyfequal(ds_map_find_value(gmltmap,"type"),"Military")))){{draw_sprite(_inst,YYASSET_REF(0x0100016A),gml_Script_s_college_age_index(_inst,_other,gmlage),yyfplus(__yy_gml_errCheck(gmlbx),10),yyfplus(__yy_gml_errCheck(gmlby), 19));};}else {{draw_sprite(_inst,YYASSET_REF(0x01000111),gml_Script_s_college_age_index(_inst,_other,gmlage),yyfplus(__yy_gml_errCheck(gmlbx),10),yyfplus(__yy_gml_errCheck(gmlby),19));};};};};};}else {{if(yyfequal(gmlage,gml_Script_s_rookie_age_internal(_inst,_other))){draw_sprite(_inst,YYASSET_REF(0x0100006E),0,yyfplus(__yy_gml_errCheck(gmlbx),10),yyfplus(__yy_gml_errCheck(gmlby),19));};};};};}else {{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{if(yyfnotequal(ds_list_find_index(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlroster,_inst.gmlpmap),(-1))){{shader_set(YYASSET_REF(0x0A000000));shader_set_uniform_f(global.gmlcolorHelmet,1,0,0);shader_set_uniform_f(global.gmlcolorShirt,0,1,0);shader_set_uniform_f(global.gmlcolorPants,1,0,1);shader_set_uniform_f(global.gmlreplaceHelmet,_inst.gmlhelmet[__yy_gml_array_check_index(2,_inst.gmlhelmet)],_inst.gmlhelmet[__yy_gml_array_check_index(1,_inst.gmlhelmet)],_inst.gmlhelmet[__yy_gml_array_check_index(0,_inst.gmlhelmet)]);shader_set_uniform_f(global.gmlreplaceShirt, _inst.gmlshirt[__yy_gml_array_check_index(2,_inst.gmlshirt)],_inst.gmlshirt[__yy_gml_array_check_index(1,_inst.gmlshirt)],_inst.gmlshirt[__yy_gml_array_check_index(0,_inst.gmlshirt)]);shader_set_uniform_f(global.gmlreplacePants,_inst.gmlpants[__yy_gml_array_check_index(2,_inst.gmlpants)],_inst.gmlpants[__yy_gml_array_check_index(1,_inst.gmlpants)],_inst.gmlpants[__yy_gml_array_check_index(0,_inst.gmlpants)]);draw_sprite_ext(_inst,YYASSET_REF(0x0100001A),0,yyfplus(__yy_gml_errCheck(gmlbx),17),yyfplus(__yy_gml_errCheck(gmlby), 14),1,1,0,16777215,1);shader_reset();};}else {if(yyfequal(ds_map_find_value(_inst.gmlpmap,"team_leave_reason"),"drafted")){{};}else {if(yyfequal(ds_map_find_value(_inst.gmlpmap,"team_leave_reason"),"graduated")){{var gmlskin=ds_map_find_value(_inst.gmlpmap,"skin");var gmlcolSkin=gml_Script_s_get_skin_colour_by_index(_inst,_other,gmlskin);var gmlcol_skin_r=yyfdivide(__yy_gml_errCheck(color_get_red(gmlcolSkin)),255);var gmlcol_skin_g=yyfdivide(__yy_gml_errCheck(color_get_green(gmlcolSkin)),255);var gmlcol_skin_b=yyfdivide(__yy_gml_errCheck(color_get_blue(gmlcolSkin)), 255);shader_set(YYASSET_REF(0x0A000000));shader_set_uniform_f(global.gmlcolorSkin,1,0,0);shader_set_uniform_f(global.gmlcolorCleats,0,0,1);shader_set_uniform_f(global.gmlreplaceSkin,gmlcol_skin_r,gmlcol_skin_g,gmlcol_skin_b);shader_set_uniform_f(global.gmlreplaceCleats,min(yyftime(__yy_gml_errCheck(gmlcol_skin_r),1.2),1),min(yyftime(__yy_gml_errCheck(gmlcol_skin_g),1.2),1),min(yyftime(__yy_gml_errCheck(gmlcol_skin_b),1.2),1));draw_sprite_ext(_inst,YYASSET_REF(0x01000177),0,yyfplus(__yy_gml_errCheck(gmlbx), 17),yyfplus(__yy_gml_errCheck(gmlby),14),1,1,0,16777215,1);shader_reset();};}else {{shader_set(YYASSET_REF(0x0A000000));shader_set_uniform_f(global.gmlcolorHelmet,1,0,0);shader_set_uniform_f(global.gmlcolorShirt,0,1,0);shader_set_uniform_f(global.gmlcolorPants,1,0,1);if((yyGetBool(ds_map_exists(_inst.gmlpmap,"uniform_record")))&&(yyGetBool(yyfnotequal(ds_map_find_value(_inst.gmlpmap,"uniform_record"),"")))){{var gmldraftUniform=gml_Script_s_uniform_cols_from_record(_inst,_other,ds_map_find_value(_inst.gmlpmap, "uniform_record"));shader_set_uniform_f(global.gmlreplaceHelmet,gmldraftUniform[__yy_gml_array_check_index(0,gmldraftUniform)],gmldraftUniform[__yy_gml_array_check_index(1,gmldraftUniform)],gmldraftUniform[__yy_gml_array_check_index(2,gmldraftUniform)]);shader_set_uniform_f(global.gmlreplaceShirt,gmldraftUniform[__yy_gml_array_check_index(3,gmldraftUniform)],gmldraftUniform[__yy_gml_array_check_index(4,gmldraftUniform)],gmldraftUniform[__yy_gml_array_check_index(5,gmldraftUniform)]);shader_set_uniform_f(global.gmlreplacePants, gmldraftUniform[__yy_gml_array_check_index(6,gmldraftUniform)],gmldraftUniform[__yy_gml_array_check_index(7,gmldraftUniform)],gmldraftUniform[__yy_gml_array_check_index(8,gmldraftUniform)]);};}else {{shader_set_uniform_f(global.gmlreplaceHelmet,_inst.gmlhelmet[__yy_gml_array_check_index(2,_inst.gmlhelmet)],_inst.gmlhelmet[__yy_gml_array_check_index(1,_inst.gmlhelmet)],_inst.gmlhelmet[__yy_gml_array_check_index(0,_inst.gmlhelmet)]);shader_set_uniform_f(global.gmlreplaceShirt,_inst.gmlshirt[__yy_gml_array_check_index(2, _inst.gmlshirt)],_inst.gmlshirt[__yy_gml_array_check_index(1,_inst.gmlshirt)],_inst.gmlshirt[__yy_gml_array_check_index(0,_inst.gmlshirt)]);shader_set_uniform_f(global.gmlreplacePants,_inst.gmlpants[__yy_gml_array_check_index(2,_inst.gmlpants)],_inst.gmlpants[__yy_gml_array_check_index(1,_inst.gmlpants)],_inst.gmlpants[__yy_gml_array_check_index(0,_inst.gmlpants)]);};};draw_sprite_ext(_inst,YYASSET_REF(0x0100001A),0,yyfplus(__yy_gml_errCheck(gmlbx),17),yyfplus(__yy_gml_errCheck(gmlby),14),1,1,0, 16777215,1);shader_reset();};};};};};}else {{draw_sprite_ext(_inst,YYASSET_REF(0x010000C3),0,yyfplus(__yy_gml_errCheck(gmlbx),17),yyfplus(__yy_gml_errCheck(gmlby),14),1,1,0,16777215,1);};};};};draw_set_halign(1);var gmltx=yyfplus(__yy_gml_errCheck(gmlbx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_width),0.5)));var gmlty=yyfplus(__yy_gml_errCheck(gmlby),48);var gmlname=string_copy(ds_map_find_value(_inst.gmlpmap,"lname"),1,7);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmlname);gmlty=yyfplus(gmlty, 12);if(yyGetBool(gml_Script_s_is_staff(_inst,_other,gmlpos))){{if((yyGetBool(yyfnotequal(gmlpos,100)))&&(yyGetBool(yyfequal(ds_list_find_index(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstafflist,_inst.gmlpmap),(-1))))){{draw_sprite_ext(_inst,YYASSET_REF(0x01000076),ds_map_find_value(_inst.gmlpmap,"rating"),gmltx,gmlty,1,1,0,65535,1);gmlty=yyfplus(gmlty,11);var gmlcost=gml_Script_s_get_coach_cost(_inst,_other,_inst.gmlpmap);var gmltw=yyftime(__yy_gml_errCheck(gml_Script_string_hd_width(_inst, _other,gmlcost)),0.5);gmltw=yyfplus(gmltw,yyftime(__yy_gml_errCheck(sprite_get_width(YYASSET_REF(0x01000069))),0.5));gmltx=yyfminus(gmltx,yyftime(__yy_gml_errCheck(sprite_get_width(YYASSET_REF(0x01000069))),0.5));gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmlcost);draw_sprite(_inst,YYASSET_REF(0x01000069),0,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltw)),gmlty);};}else {{draw_sprite_ext(_inst,YYASSET_REF(0x01000076),ds_map_find_value(_inst.gmlpmap,"rating"),gmltx,yyfplus(__yy_gml_errCheck(gmlty), 5),1,1,0,65535,1);gmlty=yyfplus(gmlty,11);};};};}else {{draw_sprite_ext(_inst,YYASSET_REF(0x01000076),gml_Script_s_get_player_rating(_inst,_other,_inst.gmlpmap),gmltx,gmlty,1,1,0,65535,1);gmlty=yyfplus(gmlty,11);var gmldrawNormalPlayer=(yyGetBool(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraft_round,3)))&&(yyGetBool(yyfequal(ds_map_find_value(_inst.gmlpmap,"teamid"),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id)))&&(yyGetBool(yyfgreaterequal(ds_list_find_index(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlroster,_inst.gmlpmap),0)));if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{if(yyGetBool(gml_Script_s_doing_college_draft(_inst,_other))){{gmldrawNormalPlayer=true;};};if((yyGetBool(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_admissions_draft_round,0)))&&(yyGetBool(yyfgreaterequal(ds_list_find_index(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster,_inst.gmlpmap),0)))){{gmldrawNormalPlayer=true;};};};};if(yyfequal(g_pBuiltIn.get_current_room(), YYASSET_REF(0x0300000C))){{gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,_inst.gmlmy_tla);};}else {if(yyGetBool(gmldrawNormalPlayer)){{var gmlcx=yyfplus(__yy_gml_errCheck(_inst.x),2);var gmlcy=yyfminus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)),13);var gmlcw=yyfminus(__yy_gml_errCheck(_inst.sprite_width),1);var gmlch=8;var gmlprc=yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlcw),4)),100)),__yy_gml_errCheck(clamp(_inst.gmlold_condition, 0,100)));if((yyGetBool(_inst.gmlclicked))||(yyGetBool(!yyGetBool(_inst.gmlactive)))){{gmlcx=yyfminus(gmlcx,2);gmlcy=yyfplus(gmlcy,2);};};draw_set_color(16777215);if((yyGetBool(gml_Script_s_is_ui_selected(_inst,_other)))&&(yyGetBool(yyfgreater(gmlselectflash,0.5)))){draw_set_color(gml_Script_s_ui_selected_color(_inst,_other));};draw_rectangle(gmlcx,gmlcy,yyfplus(__yy_gml_errCheck(gmlcx),__yy_gml_errCheck(gmlcw)),yyfplus(__yy_gml_errCheck(gmlcy),__yy_gml_errCheck(gmlch)),0);draw_set_color(8421504); draw_rectangle(yyfplus(__yy_gml_errCheck(gmlcx),2),yyfplus(__yy_gml_errCheck(gmlcy),2),yyfminus(yyfplus(__yy_gml_errCheck(gmlcx),__yy_gml_errCheck(gmlcw)),2),yyfplus(__yy_gml_errCheck(gmlcy),__yy_gml_errCheck(gmlch)),0);if(yyflessequal(gmlcon,0)){{draw_set_color(0);draw_rectangle(yyfplus(__yy_gml_errCheck(gmlcx),2),yyfplus(__yy_gml_errCheck(gmlcy),2),yyfminus(yyfplus(yyfplus(__yy_gml_errCheck(gmlcx),2),__yy_gml_errCheck(gmlcw)),4),yyfplus(__yy_gml_errCheck(gmlcy),__yy_gml_errCheck(gmlch)),0);};} else {if(yyflessequal(gmlcon,20)){{draw_set_color(255);if(yyfgreater(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),100)),0.1)){draw_rectangle(yyfplus(__yy_gml_errCheck(gmlcx),2),yyfplus(__yy_gml_errCheck(gmlcy),2),yyfplus(yyfplus(__yy_gml_errCheck(gmlcx),2),__yy_gml_errCheck(gmlprc)),yyfplus(__yy_gml_errCheck(gmlcy),__yy_gml_errCheck(gmlch)),0);};};}else {if(yyflessequal(gmlcon,40)){{draw_set_color(65535);draw_rectangle(yyfplus(__yy_gml_errCheck(gmlcx),2),yyfplus(__yy_gml_errCheck(gmlcy), 2),yyfplus(yyfplus(__yy_gml_errCheck(gmlcx),2),__yy_gml_errCheck(gmlprc)),yyfplus(__yy_gml_errCheck(gmlcy),__yy_gml_errCheck(gmlch)),0);};}else {{draw_set_color(65280);draw_rectangle(yyfplus(__yy_gml_errCheck(gmlcx),2),yyfplus(__yy_gml_errCheck(gmlcy),2),yyfplus(yyfplus(__yy_gml_errCheck(gmlcx),2),__yy_gml_errCheck(gmlprc)),yyfplus(__yy_gml_errCheck(gmlcy),__yy_gml_errCheck(gmlch)),0);};};};};draw_set_color(16777215);};}else {{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{if(yyfequal(ds_list_find_index(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlroster,_inst.gmlpmap),(-1))){{if((yyGetBool(yyfequal(ds_list_find_index(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster,_inst.gmlpmap),(-1))))&&(yyGetBool(yyfgreater(ds_map_find_value(_inst.gmlpmap,"rc_cost"),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrecruitment_credits)))){draw_set_color(255);};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,yyfplus(yyfplus("$",__yy_gml_errCheck(string(ds_map_find_value(_inst.gmlpmap,"rc_cost")))),__yy_gml_errCheck(gml_Script_s_str(_inst, _other,"sla_Thousand"))));};};};}else {{if((yyGetBool(yyfequal(ds_list_find_index(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster,_inst.gmlpmap),(-1))))&&(yyGetBool(yyfgreater(ds_map_find_value(_inst.gmlpmap,"salary"),gml_Script_s_get_salary_cap_space(_inst,_other))))){draw_set_color(255);};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,yyfplus(yyfplus("$",__yy_gml_errCheck(string(ds_map_find_value(_inst.gmlpmap,"salary")))),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"sla_Million")))); };};draw_set_color(16777215);};};};};};var gmlnum_roty=0;var gmlnum_mvp=0;var gmlnum_opoy=0;var gmlnum_dpoy=0;var gmlnum_rings=0;var gmlnum_rbmvp=0;var gmllim=5;if(yyGetBool(gml_Script_s_is_staff(_inst,_other,gmlpos))){gmllim=10;};if(yyGetBool(ds_map_exists(_inst.gmlpmap,"roty"))){gmlnum_roty=min(real(ds_map_find_value(_inst.gmlpmap,"roty")),1);};if(yyGetBool(ds_map_exists(_inst.gmlpmap,"mvp"))){gmlnum_mvp=min(real(ds_map_find_value(_inst.gmlpmap,"mvp")),gmllim);};if(yyGetBool(ds_map_exists(_inst.gmlpmap, "opoy"))){gmlnum_opoy=min(real(ds_map_find_value(_inst.gmlpmap,"opoy")),1);};if(yyGetBool(ds_map_exists(_inst.gmlpmap,"dpoy"))){gmlnum_dpoy=min(real(ds_map_find_value(_inst.gmlpmap,"dpoy")),gmllim);};if(yyGetBool(ds_map_exists(_inst.gmlpmap,"rings"))){gmlnum_rings=min(real(ds_map_find_value(_inst.gmlpmap,"rings")),gmllim);};if(yyGetBool(ds_map_exists(_inst.gmlpmap,"rbmvp"))){gmlnum_rbmvp=min(real(ds_map_find_value(_inst.gmlpmap,"rbmvp")),1);};if(yyfequal(gmlpos,100)){{gmlnum_rings=min(gml_Script_s_count_achievement(_inst, _other,"ACH_WIN_RETROBOWL1"),gmllim);};};var gmlmx=yyfplus(__yy_gml_errCheck(gmlbx),3);var gmlmy=yyfplus(__yy_gml_errCheck(gmlby),26);if(yyGetBool(gmlnum_roty)){{draw_sprite_ext(_inst,YYASSET_REF(0x010000BD),0,gmlmx,gmlmy,1,1,0,16777215,1);gmlmx=yyfplus(gmlmx,8);};};var gmli=0;for(;yyfless(gmli,gmlnum_mvp);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{draw_sprite_ext(_inst,YYASSET_REF(0x010000BD),1,gmlmx,gmlmy,1,1,0,16777215,1);gmlmx=yyfplus(gmlmx, 2);}};if(yyfgreater(gmlnum_mvp,0)){gmlmx=yyfplus(gmlmx,6);};var gmli=0;for(;yyfless(gmli,gmlnum_opoy);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{draw_sprite_ext(_inst,YYASSET_REF(0x010000BD),2,gmlmx,gmlmy,1,1,0,16777215,1);gmlmx=yyfplus(gmlmx,2);}};if(yyfgreater(gmlnum_opoy,0)){gmlmx=yyfplus(gmlmx,6);};var gmli=0;for(;yyfless(gmli,gmlnum_dpoy);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ {draw_sprite_ext(_inst,YYASSET_REF(0x010000BD),3,gmlmx,gmlmy,1,1,0,16777215,1);gmlmx=yyfplus(gmlmx,2);}};if(yyfgreater(gmlnum_dpoy,0)){gmlmx=yyfplus(gmlmx,6);};var gmli=0;for(;yyfless(gmli,gmlnum_rbmvp);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{draw_sprite_ext(_inst,YYASSET_REF(0x010000BD),4,gmlmx,gmlmy,1,1,0,16777215,1);gmlmx=yyfplus(gmlmx,2);}};gmlmy=yyfplus(gmlmy,1);gmlmx=yyfminus(yyfplus(__yy_gml_errCheck(gmlbx),50),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlnum_rings), 1)),2)));var gmli=0;for(;yyfless(gmli,gmlnum_rings);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{draw_sprite_ext(_inst,YYASSET_REF(0x010000C1),0,gmlmx,gmlmy,1,1,0,16777215,1);gmlmx=yyfplus(gmlmx,2);}};}function gml_Object_obj_player_profile_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlonClickAction=kgml_Script_btn_click_PlayerProfile;_inst.gmlhover=false;_inst.gmlclicked=false;_inst.gmlflash_time=0;_inst.gmlactive=true; _inst.gmltutorial_flash=false;_inst.gmlflash_attitude=false;_inst.gmlold_condition=(-99);_inst.gmlmy_tla="";_inst.gmlonHoldAction=(-1);}function gml_Object_obj_player_image_Create_0(_inst,_other){_inst.gmlpmap=(-4);_inst.gmlhelmet=__yy_gml_array_check(_inst.gmlhelmet,3666812894);_inst.gmlhelmet[__yy_gml_array_check_index_set(2)]=0;_inst.gmlshirt=__yy_gml_array_check(_inst.gmlshirt,1027333011);_inst.gmlshirt[__yy_gml_array_check_index_set(2)]=0;_inst.gmlpants=__yy_gml_array_check(_inst.gmlpants,3194782232); _inst.gmlpants[__yy_gml_array_check_index_set(2)]=0;_inst.gmlpants_b=__yy_gml_array_check(_inst.gmlpants_b,1445469295);_inst.gmlpants_b[__yy_gml_array_check_index_set(2)]=0;_inst.gmlshow_arrow=0;gml_Script_s_set_up_uniform_profile(_inst,_other,(-4));_inst.gmlimw=sprite_get_width(YYASSET_REF(0x010000C6));}function gml_Object_obj_player_image_Draw_0(_inst,_other){}function gml_Object_obj_player_image_Draw_64(_inst,_other){if(yyfequal(_inst.gmlpmap,(-4))){{return;};};var gmlpos=real(ds_map_find_value(_inst.gmlpmap, "position"));var gmlbx=yyfminus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(_inst.gmlimw),0.5),__yy_gml_errCheck(_inst.gmlscale))));var gmlby=_inst.y;shader_set(YYASSET_REF(0x0A000000));shader_set_uniform_f(global.gmlcolorHelmet,1,0,0);shader_set_uniform_f(global.gmlcolorShirt,0,1,0);shader_set_uniform_f(global.gmlcolorPants,1,0,1);shader_set_uniform_f(global.gmlreplaceHelmet,_inst.gmlhelmet[__yy_gml_array_check_index(2,_inst.gmlhelmet)],_inst.gmlhelmet[__yy_gml_array_check_index(1, _inst.gmlhelmet)],_inst.gmlhelmet[__yy_gml_array_check_index(0,_inst.gmlhelmet)]);shader_set_uniform_f(global.gmlreplaceShirt,_inst.gmlshirt[__yy_gml_array_check_index(2,_inst.gmlshirt)],_inst.gmlshirt[__yy_gml_array_check_index(1,_inst.gmlshirt)],_inst.gmlshirt[__yy_gml_array_check_index(0,_inst.gmlshirt)]);shader_set_uniform_f(global.gmlreplacePants,_inst.gmlpants[__yy_gml_array_check_index(2,_inst.gmlpants)],_inst.gmlpants[__yy_gml_array_check_index(1,_inst.gmlpants)],_inst.gmlpants[__yy_gml_array_check_index(0, _inst.gmlpants)]);if(yyGetBool(gml_Script_s_is_staff(_inst,_other,ds_map_find_value(_inst.gmlpmap,"position")))){{var ___sw1854___=ds_map_find_value(_inst.gmlpmap,"face_y");var ___swc1855___=-1;if(yyCompareVal(___sw1854___,0,g_GMLMathEpsilon,false)==0){___swc1855___=0;}else if(yyCompareVal(___sw1854___,1,g_GMLMathEpsilon,false)==0){___swc1855___=1;}else if(yyCompareVal(___sw1854___,2,g_GMLMathEpsilon,false)==0){___swc1855___=2;}else if(yyCompareVal(___sw1854___,3,g_GMLMathEpsilon,false)==0){___swc1855___=3; }switch(___swc1855___){case 0:{draw_sprite_ext(_inst,YYASSET_REF(0x010000D3),ds_map_find_value(_inst.gmlpmap,"face_x"),gmlbx,gmlby,_inst.gmlscale,_inst.gmlscale,0,16777215,1);break;}case 1:{draw_sprite_ext(_inst,YYASSET_REF(0x010000D4),ds_map_find_value(_inst.gmlpmap,"face_x"),gmlbx,gmlby,_inst.gmlscale,_inst.gmlscale,0,16777215,1);break;}case 2:{draw_sprite_ext(_inst,YYASSET_REF(0x010000D5),ds_map_find_value(_inst.gmlpmap,"face_x"),gmlbx,gmlby,_inst.gmlscale,_inst.gmlscale,0,16777215,1);break;}case 3:{ draw_sprite_ext(_inst,YYASSET_REF(0x010000D6),ds_map_find_value(_inst.gmlpmap,"face_x"),gmlbx,gmlby,_inst.gmlscale,_inst.gmlscale,0,16777215,1);break;}};};}else {{var ___sw1856___=ds_map_find_value(_inst.gmlpmap,"skin");var ___swc1857___=-1;if(yyCompareVal(___sw1856___,2,g_GMLMathEpsilon,false)==0){___swc1857___=0;}else if(yyCompareVal(___sw1856___,1,g_GMLMathEpsilon,false)==0){___swc1857___=1;}else if(yyCompareVal(___sw1856___,0,g_GMLMathEpsilon,false)==0){___swc1857___=2;}switch(___swc1857___){case 0:{ var ___sw1858___=ds_map_find_value(_inst.gmlpmap,"face_y");var ___swc1859___=-1;if(yyCompareVal(___sw1858___,0,g_GMLMathEpsilon,false)==0){___swc1859___=0;}else if(yyCompareVal(___sw1858___,1,g_GMLMathEpsilon,false)==0){___swc1859___=1;}else if(yyCompareVal(___sw1858___,2,g_GMLMathEpsilon,false)==0){___swc1859___=2;}switch(___swc1859___){case 0:{draw_sprite_ext(_inst,gml_Script_s_face_from_set(_inst,_other,YYASSET_REF(0x010000C6),_inst.gmlpmap),ds_map_find_value(_inst.gmlpmap,"face_x"),gmlbx,gmlby,_inst.gmlscale, _inst.gmlscale,0,16777215,1);break;}case 1:{draw_sprite_ext(_inst,gml_Script_s_face_from_set(_inst,_other,YYASSET_REF(0x010000C8),_inst.gmlpmap),ds_map_find_value(_inst.gmlpmap,"face_x"),gmlbx,gmlby,_inst.gmlscale,_inst.gmlscale,0,16777215,1);break;}case 2:{draw_sprite_ext(_inst,gml_Script_s_face_from_set(_inst,_other,YYASSET_REF(0x010000C9),_inst.gmlpmap),ds_map_find_value(_inst.gmlpmap,"face_x"),gmlbx,gmlby,_inst.gmlscale,_inst.gmlscale,0,16777215,1);break;}};break;}case 1:{var ___sw1860___=ds_map_find_value(_inst.gmlpmap, "face_y");var ___swc1861___=-1;if(yyCompareVal(___sw1860___,0,g_GMLMathEpsilon,false)==0){___swc1861___=0;}switch(___swc1861___){case 0:{draw_sprite_ext(_inst,gml_Script_s_face_from_set(_inst,_other,YYASSET_REF(0x010000CA),_inst.gmlpmap),ds_map_find_value(_inst.gmlpmap,"face_x"),gmlbx,gmlby,_inst.gmlscale,_inst.gmlscale,0,16777215,1);break;}};break;}case 2:{var ___sw1862___=ds_map_find_value(_inst.gmlpmap,"face_y");var ___swc1863___=-1;if(yyCompareVal(___sw1862___,0,g_GMLMathEpsilon,false)==0){___swc1863___=0; }else if(yyCompareVal(___sw1862___,1,g_GMLMathEpsilon,false)==0){___swc1863___=1;}else if(yyCompareVal(___sw1862___,2,g_GMLMathEpsilon,false)==0){___swc1863___=2;}else if(yyCompareVal(___sw1862___,3,g_GMLMathEpsilon,false)==0){___swc1863___=3;}else if(yyCompareVal(___sw1862___,4,g_GMLMathEpsilon,false)==0){___swc1863___=4;}else if(yyCompareVal(___sw1862___,5,g_GMLMathEpsilon,false)==0){___swc1863___=5;}else if(yyCompareVal(___sw1862___,6,g_GMLMathEpsilon,false)==0){___swc1863___=6;}else if(yyCompareVal(___sw1862___, 7,g_GMLMathEpsilon,false)==0){___swc1863___=7;}else if(yyCompareVal(___sw1862___,8,g_GMLMathEpsilon,false)==0){___swc1863___=8;}switch(___swc1863___){case 0:{draw_sprite_ext(_inst,gml_Script_s_face_from_set(_inst,_other,YYASSET_REF(0x010000CB),_inst.gmlpmap),ds_map_find_value(_inst.gmlpmap,"face_x"),gmlbx,gmlby,_inst.gmlscale,_inst.gmlscale,0,16777215,1);break;}case 1:{draw_sprite_ext(_inst,gml_Script_s_face_from_set(_inst,_other,YYASSET_REF(0x010000CC),_inst.gmlpmap),ds_map_find_value(_inst.gmlpmap, "face_x"),gmlbx,gmlby,_inst.gmlscale,_inst.gmlscale,0,16777215,1);break;}case 2:{draw_sprite_ext(_inst,gml_Script_s_face_from_set(_inst,_other,YYASSET_REF(0x010000CD),_inst.gmlpmap),ds_map_find_value(_inst.gmlpmap,"face_x"),gmlbx,gmlby,_inst.gmlscale,_inst.gmlscale,0,16777215,1);break;}case 3:{draw_sprite_ext(_inst,gml_Script_s_face_from_set(_inst,_other,YYASSET_REF(0x010000CE),_inst.gmlpmap),ds_map_find_value(_inst.gmlpmap,"face_x"),gmlbx,gmlby,_inst.gmlscale,_inst.gmlscale,0,16777215,1);break;}case 4:{ draw_sprite_ext(_inst,gml_Script_s_face_from_set(_inst,_other,YYASSET_REF(0x010000CF),_inst.gmlpmap),ds_map_find_value(_inst.gmlpmap,"face_x"),gmlbx,gmlby,_inst.gmlscale,_inst.gmlscale,0,16777215,1);break;}case 5:{draw_sprite_ext(_inst,gml_Script_s_face_from_set(_inst,_other,YYASSET_REF(0x010000D0),_inst.gmlpmap),ds_map_find_value(_inst.gmlpmap,"face_x"),gmlbx,gmlby,_inst.gmlscale,_inst.gmlscale,0,16777215,1);break;}case 6:{draw_sprite_ext(_inst,gml_Script_s_face_from_set(_inst,_other,YYASSET_REF(0x010000D0), _inst.gmlpmap),ds_map_find_value(_inst.gmlpmap,"face_x"),gmlbx,gmlby,_inst.gmlscale,_inst.gmlscale,0,16777215,1);break;}case 7:{draw_sprite_ext(_inst,gml_Script_s_face_from_set(_inst,_other,YYASSET_REF(0x010000D1),_inst.gmlpmap),ds_map_find_value(_inst.gmlpmap,"face_x"),gmlbx,gmlby,_inst.gmlscale,_inst.gmlscale,0,16777215,1);break;}case 8:{draw_sprite_ext(_inst,gml_Script_s_face_from_set(_inst,_other,YYASSET_REF(0x010000D2),_inst.gmlpmap),ds_map_find_value(_inst.gmlpmap,"face_x"),gmlbx,gmlby,_inst.gmlscale, _inst.gmlscale,0,16777215,1);break;}};break;}};};};shader_reset();draw_set_font(global.gmlfnt_small_flex);draw_set_valign(1);draw_set_halign(1);var gmltx=_inst.x;var gmlty=yyfplus(__yy_gml_errCheck(gmlby),60);var gmlname=string_copy(ds_map_find_value(_inst.gmlpmap,"lname"),1,7);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(gmlname));}function gml_Object_obj_player_image_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlscale=1.5;}// /// @description Insert description here function gml_Object_obj_hof_btn_Create_0(_inst, _other){if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{_inst.gmlbtn_image=YYASSET_REF(0x01000116);};};event_inherited(_inst,_other);}function gml_Object_obj_hof_btn_Draw_64(_inst,_other){var gmlf=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),60))),1)),2);if(yyGetBool(gml_Script_s_is_ui_selected(_inst,_other))){draw_sprite_ext(_inst,_inst.sprite_index,(yyGetBool(_inst.gmlselected)?1:0),_inst.x,_inst.y,1,1,0,gml_Script_s_ui_selected_color(_inst, _other),1);}else {draw_sprite(_inst,_inst.sprite_index,(yyGetBool(_inst.gmlselected)?1:0),_inst.x,_inst.y);};}function gml_Object_obj_hof_btn_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlselected=false;_inst.gmlonClickAction=kgml_Script_btn_click_HOF_Select;_inst.gmlbtn_image=YYASSET_REF(0x010000BB);}function gml_Object_obj_info_Step_0(_inst,_other){if(!yyGetBool(_inst.visible)){return;};if((yyGetBool(_inst.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(_inst.layer))))){return; };if(!yyGetBool(_inst.gmlactive)){return;};{var __yy__v2183=GetWithArray(YYASSET_REF(0x0000004F));for(var __yy__v2184 in __yy__v2183){if(!__yy__v2183.hasOwnProperty(__yy__v2184))continue;var __yy__v2185=__yy__v2183[__yy__v2184];if(yyfless(__yy__v2185.depth,_inst.depth)){return;};}};_inst.gmlclicked=false;if(yyGetBool(global.gmlgamepad)){{if((yyGetBool(yyfequal(yyInst(_inst,_other,global.gmlgp).gmlui_selected,_inst.id)))&&(yyGetBool(gamepad_button_check_released(yyInst(_inst,_other,global.gmlgp).gmlslot, global.gmlgp_select)))){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))){audio_play_sound(YYASSET_REF(0x02000006),1,false);};gml_Script_s_do_info(_inst,_other,_inst.gmlinfo_msg);};};};}else {{if((yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other)))&&(yyGetBool(point_in_rectangle(device_mouse_x_to_gui(0),device_mouse_y_to_gui(0),_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(__yy_gml_errCheck(_inst.y), __yy_gml_errCheck(_inst.sprite_height)))))){{if(yyGetBool(mouse_check_button_released(1))){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))){audio_play_sound(YYASSET_REF(0x02000006),1,false);};gml_Script_s_do_info(_inst,_other,_inst.gmlinfo_msg);};};};};};};}function gml_Object_obj_info_Draw_64(_inst,_other){var gmlf=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),60))),1)), 2);if(yyGetBool(gml_Script_s_is_ui_selected(_inst,_other))){{draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y,1,1,0,gml_Script_s_ui_selected_color(_inst,_other),1);};}else {{draw_sprite(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y);};};if((yyGetBool(_inst.gmlflash))&&(yyGetBool(yyfgreater(gmlf,0.5)))){draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y,1,1,0,global.gmlc_primary,1);};}// /// @description Insert description here function gml_Object_obj_info_Draw_0(_inst, _other){}function gml_Object_obj_info_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlinfo_msg="";_inst.gmlactive=true;_inst.gmlflash=false;}function gml_Object_obj_button_team_Draw_75(_inst,_other){{var __yy__v2186=GetWithArray(YYASSET_REF(0x0000004F));for(var __yy__v2187 in __yy__v2186){if(!__yy__v2186.hasOwnProperty(__yy__v2187))continue;var __yy__v2188=__yy__v2186[__yy__v2187];if(yyfless(__yy__v2188.depth,_inst.depth)){return;};}};{var __yy__v2189=GetWithArray(YYASSET_REF(0x00000048)); for(var __yy__v2190 in __yy__v2189){if(!__yy__v2189.hasOwnProperty(__yy__v2190))continue;var __yy__v2191=__yy__v2189[__yy__v2190];if(yyGetBool(__yy__v2191.gmlediting)){return;};}};var gmlsx1=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_width),0.3)));var gmlsx2=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_width),0.7)));var gmlsy=yyfplus(__yy_gml_errCheck(_inst.y),22);{if(yyfgreater(_inst.gmloffense,0)){draw_sprite_ext(_inst, YYASSET_REF(0x01000076),_inst.gmloffense,gmlsx1,gmlsy,1,1,0,global.gmlc_offense,1);};if(yyfgreater(_inst.gmldefense,0)){draw_sprite_ext(_inst,YYASSET_REF(0x01000076),_inst.gmldefense,gmlsx2,gmlsy,1,1,0,global.gmlc_defense,1);};};}function gml_Object_obj_button_team_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmloffense=0;_inst.gmldefense=0;}function gml_Object_obj_meter_fans_Create_0(_inst,_other){_inst.gmlold_percent=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfans;_inst.gmltitle=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst, _other,"ui_Fans"))," "),__yy_gml_errCheck(string(round(_inst.gmlold_percent)))),"%");if(yyfgreater(_inst.gmlold_percent,25)){_inst.gmlcolour=global.gmlc_primary;};}function gml_Object_obj_meter_fans_Step_0(_inst,_other){_inst.gmltitle=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Fans"))," "),__yy_gml_errCheck(string(round(_inst.gmlold_percent)))),"%");_inst.gmlold_percent=lerp(_inst.gmlold_percent,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfans,0.1);if(yyfgreater(_inst.gmlold_percent, 25)){_inst.gmlcolour=global.gmlc_primary;};}function gml_Object_obj_meter_fans_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmldraw_segments=true;}function gml_Object_obj_meter_team_Create_0(_inst,_other){_inst.gmlold_percent=gml_Script_s_get_morale(_inst,_other);_inst.gmltitle=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Team"))," "),__yy_gml_errCheck(string(round(_inst.gmlold_percent)))),"%");if(yyfgreater(_inst.gmlold_percent,25)){_inst.gmlcolour=global.gmlc_primary; };}function gml_Object_obj_meter_team_Step_0(_inst,_other){_inst.gmlold_percent=lerp(_inst.gmlold_percent,gml_Script_s_get_morale(_inst,_other),0.1);_inst.gmltitle=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Team"))," "),__yy_gml_errCheck(string(round(_inst.gmlold_percent)))),"%");if(yyfgreater(_inst.gmlold_percent,25)){_inst.gmlcolour=global.gmlc_primary;};}function gml_Object_obj_meter_condition_Create_0(_inst,_other){_inst.gmlold_percent=gml_Script_s_get_condition_squad(_inst, _other);_inst.gmltitle=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_TeamCondition"))," "),__yy_gml_errCheck(string(round(_inst.gmlold_percent)))),"%");if(yyfgreater(_inst.gmlold_percent,25)){_inst.gmlcolour=global.gmlc_primary;};}function gml_Object_obj_meter_condition_Step_0(_inst,_other){_inst.gmlold_percent=lerp(_inst.gmlold_percent,gml_Script_s_get_condition_squad(_inst,_other),0.1);_inst.gmltitle=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst, _other,"ui_TeamCondition"))," "),__yy_gml_errCheck(string(round(_inst.gmlold_percent)))),"%");if(yyfgreater(_inst.gmlold_percent,25)){_inst.gmlcolour=global.gmlc_primary;};}function gml_Object_obj_facility_stadium_Create_0(_inst,_other){_inst.gmlpercent=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfacility_stadium;_inst.gmlold_percent=_inst.gmlpercent;_inst.gmltitle=gml_Script_s_str(_inst,_other,"ui_Stadium");if(yyfgreater(_inst.gmlpercent,1)){_inst.gmlcolour=global.gmlc_primary;};}function gml_Object_obj_facility_training_Create_0(_inst, _other){_inst.gmlpercent=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfacility_training;_inst.gmlold_percent=_inst.gmlpercent;_inst.gmltitle=gml_Script_s_str(_inst,_other,"ui_TrainingFacilities");if(yyfgreater(_inst.gmlpercent,1)){_inst.gmlcolour=global.gmlc_primary;};}function gml_Object_obj_facility_rehab_Create_0(_inst,_other){_inst.gmlpercent=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfacility_rehab;_inst.gmlold_percent=_inst.gmlpercent;_inst.gmltitle=gml_Script_s_str(_inst,_other,"ui_RehabFacilities"); if(yyfgreater(_inst.gmlpercent,1)){_inst.gmlcolour=global.gmlc_primary;};}function gml_Object_obj_schedulebox_Create_0(_inst,_other){_inst.gmlsweek=min(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular);_inst.gmlbuf=16;gml_Script_s_populate_schedulebox(_inst,_other);}function gml_Object_obj_schedulebox_Draw_0(_inst,_other){}function gml_Object_obj_schedulebox_Draw_64(_inst,_other){draw_self(_inst);draw_set_font(global.gmlfnt_small_flex); draw_set_halign(1);var gmltitle=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Week"))," "),__yy_gml_errCheck(string(_inst.gmlsweek)));var gmltx=_inst.x;var gmlty=_inst.y;var gmlsw=yyfplus(1,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,gmltitle)),2)));var gmlsh=yyfplus(1,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_height(_inst,_other,gmltitle)),2)));gmltx=yyfplus(gmltx,yyfdivide(__yy_gml_errCheck(_inst.sprite_width), 2));draw_rectangle_color(yyfminus(yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),1),yyfminus(yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),1),yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmltitle);gmltx=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_width), 0.25)));gmlty=yyfplus(__yy_gml_errCheck(_inst.y),18);var gmlf=0;for(;yyfless(gmlf,8);(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf),g_yyPrePostObject__)){{draw_set_alpha(_inst.gmlstr_fix_alf[__yy_gml_array_check_index(gmlf,_inst.gmlstr_fix_alf)]);draw_set_colour(16777215);if(yyfequal(gmlf,_inst.gmlhighlight)){draw_set_colour(global.gmlc_primary);};draw_set_halign(1);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,_inst.gmlstr_fix_vs[__yy_gml_array_check_index(gmlf, _inst.gmlstr_fix_vs)]);draw_set_halign(2);gml_Script_draw_hd_text(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(_inst.gmlbuf)),gmlty,_inst.gmlstr_fix_a[__yy_gml_array_check_index(gmlf,_inst.gmlstr_fix_a)]);gml_Script_draw_hd_text(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),4),gmlty,_inst.gmlstr_scr_a[__yy_gml_array_check_index(gmlf,_inst.gmlstr_scr_a)]);draw_set_halign(0);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(_inst.gmlbuf)), gmlty,_inst.gmlstr_fix_h[__yy_gml_array_check_index(gmlf,_inst.gmlstr_fix_h)]);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),4),gmlty,_inst.gmlstr_scr_h[__yy_gml_array_check_index(gmlf,_inst.gmlstr_scr_h)]);gmlty=yyfplus(gmlty,16);}};gmltx=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_width),0.75)));gmlty=yyfplus(__yy_gml_errCheck(_inst.y),18);var gmlf=8;for(;yyfless(gmlf,16);(g_yyPrePostObject__=gmlf,gmlf=(g_yyPrePostObject__ instanceof Long?gmlf.add(1):++gmlf), g_yyPrePostObject__)){{draw_set_alpha(_inst.gmlstr_fix_alf[__yy_gml_array_check_index(gmlf,_inst.gmlstr_fix_alf)]);draw_set_colour(16777215);if(yyfequal(gmlf,_inst.gmlhighlight)){draw_set_colour(global.gmlc_primary);};draw_set_halign(1);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,_inst.gmlstr_fix_vs[__yy_gml_array_check_index(gmlf,_inst.gmlstr_fix_vs)]);draw_set_halign(2);gml_Script_draw_hd_text(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(_inst.gmlbuf)),gmlty,_inst.gmlstr_fix_a[__yy_gml_array_check_index(gmlf, _inst.gmlstr_fix_a)]);gml_Script_draw_hd_text(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),4),gmlty,_inst.gmlstr_scr_a[__yy_gml_array_check_index(gmlf,_inst.gmlstr_scr_a)]);draw_set_halign(0);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(_inst.gmlbuf)),gmlty,_inst.gmlstr_fix_h[__yy_gml_array_check_index(gmlf,_inst.gmlstr_fix_h)]);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),4),gmlty,_inst.gmlstr_scr_h[__yy_gml_array_check_index(gmlf, _inst.gmlstr_scr_h)]);gmlty=yyfplus(gmlty,16);}};draw_set_colour(16777215);draw_set_alpha(1);}function gml_Object_obj_schedulebox_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlstr_fix_a=__yy_gml_array_check(_inst.gmlstr_fix_a,902856654);_inst.gmlstr_fix_a[__yy_gml_array_check_index_set(16)]="0";_inst.gmlstr_fix_h=__yy_gml_array_check(_inst.gmlstr_fix_h,3826435207);_inst.gmlstr_fix_h[__yy_gml_array_check_index_set(16)]="0";_inst.gmlsrt_fix_vs=__yy_gml_array_check(_inst.gmlsrt_fix_vs, 32650191);_inst.gmlsrt_fix_vs[__yy_gml_array_check_index_set(16)]="0";_inst.gmlstr_scr_a=__yy_gml_array_check(_inst.gmlstr_scr_a,3289123532);_inst.gmlstr_scr_a[__yy_gml_array_check_index_set(16)]="0";_inst.gmlstr_scr_h=__yy_gml_array_check(_inst.gmlstr_scr_h,365867397);_inst.gmlstr_scr_h[__yy_gml_array_check_index_set(16)]="0";_inst.gmlbuf=16;_inst.gmlhighlight=0;_inst.gmlstr_fix_alf=__yy_gml_array_check(_inst.gmlstr_fix_alf,1558393854);_inst.gmlstr_fix_alf[__yy_gml_array_check_index_set(16)]=1; }function gml_Object_obj_box_offense_Create_0(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_other,"ui_Offense");_inst.gmlimage_num=gml_Script_s_get_team_offense(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam);_inst.gmlimg_colour=global.gmlc_offense;}function gml_Object_obj_box_offense_Step_0(_inst,_other){_inst.gmlimage_num=gml_Script_s_get_team_offense(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam);}function gml_Object_obj_box_offense_Draw_0(_inst, _other){}function gml_Object_obj_box_offense_Draw_64(_inst,_other){draw_self(_inst);draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gmltx=_inst.x;var gmlty=_inst.y;var gmlsw=yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,_inst.gmltitle)),2);var gmlsh=yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_height(_inst,_other,_inst.gmltitle)),2);gmltx=yyfplus(gmltx,yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2));draw_rectangle_color(yyfminus(yyfminus(__yy_gml_errCheck(gmltx), __yy_gml_errCheck(gmlsw)),1),yyfminus(yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),1),yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),0.5),gmlty,string_upper(_inst.gmltitle));if(yyGetBool(_inst.gmlimage)){{gmltx=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_width), 0.5)));gmlty=yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),0.5)));if((yyGetBool(!yyGetBool(_inst.gmlflash_rating)))||(yyGetBool(yyfgreater(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),200)),0.1)))){draw_sprite_ext(_inst,_inst.gmlimage,_inst.gmlimage_num,gmltx,gmlty,1,1,0,_inst.gmlimg_colour,1);};};}else {{draw_set_halign(0);gmltx=yyfplus(__yy_gml_errCheck(_inst.x),16);gmlty=yyfplus(__yy_gml_errCheck(_inst.y),16);gml_Script_draw_hd_text(_inst, _other,gmltx,gmlty,string_upper(_inst.gmltext));gmlty=yyfplus(gmlty,16);};};}function gml_Object_obj_box_offense_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltitle=gml_Script_s_str(_inst,_other,"");_inst.gmlimage=YYASSET_REF(0x01000076);_inst.gmlimage_num=0;_inst.gmlimg_colour=16777215;_inst.gmlflash_rating=false;}function gml_Object_obj_ad_retrogoal_Create_0(_inst,_other){var gmllay_id=layer_get_id("Background");var gmlback_id=layer_background_get_id(gmllay_id);var ___sw1866___=yyfmod(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlmap_options,"done_ad_retrogoal")),6);var ___swc1867___=-1;if(yyCompareVal(___sw1866___,0,g_GMLMathEpsilon,false)==0){___swc1867___=0;}else if(yyCompareVal(___sw1866___,1,g_GMLMathEpsilon,false)==0){___swc1867___=1;}else if(yyCompareVal(___sw1866___,2,g_GMLMathEpsilon,false)==0){___swc1867___=2;}else if(yyCompareVal(___sw1866___,3,g_GMLMathEpsilon,false)==0){___swc1867___=3;}else if(yyCompareVal(___sw1866___,4,g_GMLMathEpsilon,false)==0){___swc1867___=4;}else if(yyCompareVal(___sw1866___, 5,g_GMLMathEpsilon,false)==0){___swc1867___=5;}switch(___swc1867___){case 0:{layer_background_sprite(gmlback_id,YYASSET_REF(0x0100015D));break;}case 1:{layer_background_sprite(gmlback_id,YYASSET_REF(0x0100014F));break;}case 2:{layer_background_sprite(gmlback_id,YYASSET_REF(0x01000138));break;}case 3:{layer_background_sprite(gmlback_id,YYASSET_REF(0x01000016));break;}case 4:{layer_background_sprite(gmlback_id,YYASSET_REF(0x01000182));break;}case 5:{layer_background_sprite(gmlback_id,YYASSET_REF(0x01000135)); break;}};}function gml_Object_obj_ad_retrogoal_Step_0(_inst,_other){if(yyGetBool(mouse_check_button_released(1))){{var ___sw1874___=g_pBuiltIn.get_os_type();var ___swc1875___=-1;if(yyCompareVal(___sw1874___,3,g_GMLMathEpsilon,false)==0){___swc1875___=0;}else if(yyCompareVal(___sw1874___,4,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1874___,0,g_GMLMathEpsilon,false)==0){___swc1875___=1;}switch(___swc1875___){case 0:{var ___sw1876___=yyfmod(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options, "done_ad_retrogoal")),6);var ___swc1877___=-1;if(yyCompareVal(___sw1876___,0,g_GMLMathEpsilon,false)==0){___swc1877___=0;}else if(yyCompareVal(___sw1876___,1,g_GMLMathEpsilon,false)==0){___swc1877___=1;}else if(yyCompareVal(___sw1876___,2,g_GMLMathEpsilon,false)==0){___swc1877___=2;}else if(yyCompareVal(___sw1876___,3,g_GMLMathEpsilon,false)==0){___swc1877___=3;}else if(yyCompareVal(___sw1876___,4,g_GMLMathEpsilon,false)==0){___swc1877___=4;}else if(yyCompareVal(___sw1876___,5,g_GMLMathEpsilon,false)==0){ ___swc1877___=5;}switch(___swc1877___){case 0:{url_open_ext(global.gmlurl_switch_us,"_blank");break;}case 1:{url_open_ext(global.gmlurl_apple_gp,"_blank");break;}case 2:{url_open_ext(global.gmlurl_apple_retrogoal,"_blank");break;}case 3:{url_open_ext(global.gmlurl_apple_nss,"_blank");break;}case 4:{url_open_ext(global.gmlurl_apple_nsb,"_blank");break;}case 5:{url_open_ext(global.gmlurl_apple_nsm,"_blank");break;}};break;}case 1:{var ___sw1878___=yyfmod(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlmap_options,"done_ad_retrogoal")),6);var ___swc1879___=-1;if(yyCompareVal(___sw1878___,0,g_GMLMathEpsilon,false)==0){___swc1879___=0;}else if(yyCompareVal(___sw1878___,1,g_GMLMathEpsilon,false)==0){___swc1879___=1;}else if(yyCompareVal(___sw1878___,2,g_GMLMathEpsilon,false)==0){___swc1879___=2;}else if(yyCompareVal(___sw1878___,3,g_GMLMathEpsilon,false)==0){___swc1879___=3;}else if(yyCompareVal(___sw1878___,4,g_GMLMathEpsilon,false)==0){___swc1879___=4;}else if(yyCompareVal(___sw1878___, 5,g_GMLMathEpsilon,false)==0){___swc1879___=5;}switch(___swc1879___){case 0:{url_open_ext(global.gmlurl_switch_us,"_blank");break;}case 1:{url_open_ext(global.gmlurl_google_gp,"_blank");break;}case 2:{url_open_ext(global.gmlurl_google_retrogoal,"_blank");break;}case 3:{url_open_ext(global.gmlurl_google_nss,"_blank");break;}case 4:{url_open_ext(global.gmlurl_google_nsb,"_blank");break;}case 5:{url_open_ext(global.gmlurl_google_nsm,"_blank");break;}};break;}};room_goto(YYASSET_REF(0x0300000E));};};}function gml_Object_obj_box_defense_Create_0(_inst, _other){_inst.gmltitle=gml_Script_s_str(_inst,_other,"ui_Defense");_inst.gmlimage_num=gml_Script_s_get_team_defense(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam);_inst.gmlimg_colour=global.gmlc_defense;}function gml_Object_obj_box_defense_Draw_0(_inst,_other){_inst.gmlimage_num=gml_Script_s_get_team_defense(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam);}function gml_Object_obj_box_defense_Draw_64(_inst,_other){draw_self(_inst);draw_set_font(global.gmlfnt_small_flex); draw_set_halign(1);var gmltx=_inst.x;var gmlty=_inst.y;var gmlsw=yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,_inst.gmltitle)),2);var gmlsh=yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_height(_inst,_other,_inst.gmltitle)),2);gmltx=yyfplus(gmltx,yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2));draw_rectangle_color(yyfminus(yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),1),yyfminus(yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),1),yyfplus(__yy_gml_errCheck(gmltx), __yy_gml_errCheck(gmlsw)),yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),0.5),gmlty,string_upper(_inst.gmltitle));if(yyGetBool(_inst.gmlimage)){{gmltx=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_width),0.5)));gmlty=yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height), 0.5)));if((yyGetBool(!yyGetBool(_inst.gmlflash_rating)))||(yyGetBool(yyfgreater(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),200)),0.1)))){draw_sprite_ext(_inst,_inst.gmlimage,_inst.gmlimage_num,gmltx,gmlty,1,1,0,_inst.gmlimg_colour,1);};};}else {{draw_set_halign(0);gmltx=yyfplus(__yy_gml_errCheck(_inst.x),16);gmlty=yyfplus(__yy_gml_errCheck(_inst.y),16);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(_inst.gmltext));gmlty=yyfplus(gmlty,16);};};}function gml_Object_obj_box_defense_PreCreate_0(_inst, _other){event_inherited(_inst,_other);_inst.gmltitle=gml_Script_s_str(_inst,_other,"");_inst.gmlimage=YYASSET_REF(0x01000076);_inst.gmlimage_num=0;_inst.gmlimg_colour=16777215;_inst.gmlflash_rating=false;}function gml_Object_obj_box_coachcredit_Create_0(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_other,"ui_Credit");_inst.gmltext=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit;}function gml_Object_obj_box_coachcredit_Step_0(_inst,_other){_inst.gmltext=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit; }function gml_Object_obj_box_coachcredit_Draw_0(_inst,_other){}function gml_Object_obj_box_coachcredit_Draw_64(_inst,_other){draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gmltx=_inst.x;var gmlty=_inst.y;var gmlsw=yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,_inst.gmltitle)),2);var gmlsh=yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_height(_inst,_other,_inst.gmltitle)),2);if(yyGetBool(_inst.gmlshow_frame)){{draw_self(_inst);gmltx=yyfplus(gmltx,yyfdivide(__yy_gml_errCheck(_inst.sprite_width), 2));draw_rectangle_color(yyfminus(yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),1),yyfminus(yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),1),yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),0.5),gmlty,string_upper(_inst.gmltitle));};};if((yyGetBool(!yyGetBool(_inst.gmlflash)))||(yyGetBool(yyfgreater(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()), 200)),0.1)))){{var gmlimw=0;if(yyGetBool(_inst.gmlimage)){gmlimw=sprite_get_width(_inst.gmlimage);};gmltx=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2)));gmlty=yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),0.5)));gmltx=yyfminus(gmltx,yyfdivide(__yy_gml_errCheck(gmlimw),2));gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,_inst.gmltext);var gmltw=yyftime(__yy_gml_errCheck(gml_Script_string_hd_width(_inst, _other,_inst.gmltext)),0.5);gmltw=yyfplus(gmltw,yyftime(__yy_gml_errCheck(sprite_get_width(_inst.gmlimage)),0.5));draw_sprite_ext(_inst,_inst.gmlimage,_inst.gmlimage_num,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltw)),1),gmlty,1,1,0,_inst.gmlimg_colour,1);};};}function gml_Object_obj_box_coachcredit_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltitle="Title";_inst.gmltext="Line 1";_inst.gmlimage=YYASSET_REF(0x01000069);_inst.gmlimage_num=0;_inst.gmlimg_colour=16777215; _inst.gmlshow_frame=true;_inst.gmlflash=false;}function gml_Object_obj_box_morale_Create_0(_inst,_other){_inst.gmltitle=(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)?gml_Script_s_str(_inst,_other,"ui_Team"):gml_Script_s_str(_inst,_other,"ui_Morale"));_inst.gmlimage=YYASSET_REF(0x0100006B);_inst.gmlold_percent=gml_Script_s_get_morale(_inst,_other);_inst.gmlimage_num=gml_Script_s_get_attitude_icon(_inst,_other,_inst.gmlold_percent);_inst.gmltext=yyfplus(__yy_gml_errCheck(string(round(_inst.gmlold_percent))), "%");}function gml_Object_obj_box_morale_Step_0(_inst,_other){_inst.gmlold_percent=lerp(_inst.gmlold_percent,gml_Script_s_get_morale(_inst,_other),0.1);_inst.gmlimage_num=gml_Script_s_get_attitude_icon(_inst,_other,_inst.gmlold_percent);_inst.gmltext=yyfplus(__yy_gml_errCheck(string(round(_inst.gmlold_percent))),"%");}function gml_Object_obj_box_morale_Draw_0(_inst,_other){}function gml_Object_obj_box_morale_Draw_64(_inst,_other){draw_self(_inst);draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1); var gmltx=_inst.x;var gmlty=_inst.y;var gmlsw=yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,_inst.gmltitle)),2);var gmlsh=yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_height(_inst,_other,_inst.gmltitle)),2);gmltx=yyfplus(gmltx,yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2));draw_rectangle_color(yyfminus(yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),1),yyfminus(yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),1),yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)), yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),0.5),gmlty,string_upper(_inst.gmltitle));draw_set_halign(2);gmltx=yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),4),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_width),0.5)));gmlty=yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height), 0.5)));gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,_inst.gmltext);gmltx=yyfplus(gmltx,8);draw_sprite_ext(_inst,_inst.gmlimage,_inst.gmlimage_num,gmltx,gmlty,1,1,0,_inst.gmlimg_colour,1);}function gml_Object_obj_box_morale_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltitle="Title";_inst.gmltext="Line 1";_inst.gmlimage=YYASSET_REF(0x01000070);_inst.gmlimage_num=0;_inst.gmlimg_colour=16777215;}function gml_Object_obj_vbox_Draw_64(_inst,_other){var gmlw=_inst.sprite_width;var gmlh=_inst.sprite_height; if(yyGetBool(_inst.gmlfill_bg)){{draw_set_colour(global.gmlc_background);draw_rectangle(yyfplus(__yy_gml_errCheck(_inst.x),2),yyfplus(__yy_gml_errCheck(_inst.y),2),yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(gmlw)),2),yyfminus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(gmlh)),2),0);draw_set_colour(_inst.gmlcolour);};};var gmlcol=_inst.gmlcolour;if(yyGetBool(gml_Script_s_is_ui_selected(_inst,_other))){gmlcol=gml_Script_s_ui_selected_color(_inst,_other);};draw_sprite_ext(_inst, YYASSET_REF(0x0100009C),0,_inst.x,_inst.y,1,1,0,gmlcol,1);draw_sprite_ext(_inst,YYASSET_REF(0x0100009C),2,yyfplus(__yy_gml_errCheck(_inst.x),4),_inst.y,yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(_inst.sprite_width),8)),4),1,0,gmlcol,1);draw_sprite_ext(_inst,YYASSET_REF(0x0100009C),1,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(gmlw)),4),_inst.y,1,1,0,gmlcol,1);draw_sprite_ext(_inst,YYASSET_REF(0x0100009C),3,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(gmlw)), 2),yyfplus(__yy_gml_errCheck(_inst.y),4),1,yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(_inst.sprite_height),8)),4),0,gmlcol,1);draw_sprite_ext(_inst,YYASSET_REF(0x0100009C),0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(gmlw)),4),yyfminus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(gmlh)),4),1,1,0,gmlcol,1);draw_sprite_ext(_inst,YYASSET_REF(0x0100009C),2,yyfplus(__yy_gml_errCheck(_inst.x),4),yyfminus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(gmlh)), 2),yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(_inst.sprite_width),8)),4),1,0,gmlcol,1);draw_sprite_ext(_inst,YYASSET_REF(0x0100009C),1,_inst.x,yyfminus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(gmlh)),4),1,1,0,gmlcol,1);draw_sprite_ext(_inst,YYASSET_REF(0x0100009C),3,_inst.x,yyfplus(__yy_gml_errCheck(_inst.y),4),1,yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(_inst.sprite_height),8)),4),0,gmlcol,1);draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gml_title=string_upper(_inst.gmltitle); var gmltx=_inst.x;var gmlty=_inst.y;var gmlsw=yyfplus(2,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,gml_title)),2)));var gmlsh=yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_height(_inst,_other,gml_title)),2);gmltx=yyfplus(gmltx,yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2));if(yyfnotequal(gml_title,"")){{draw_rectangle_color(yyfminus(yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),1),yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)), yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,gml_title,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,1);};};if(yyfnotequal(_inst.gmltext,"")){{gmlty=yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlh),0.5)));gmlsw=yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_width(_inst, _other,_inst.gmltext)),2);gmlsh=yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_height(_inst,_other,_inst.gmltext)),2);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,_inst.gmltext);};};}function gml_Object_obj_vbox_Draw_0(_inst,_other){}function gml_Object_obj_vbox_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltitle=gml_Script_s_str(_inst,_other,"");_inst.gmltext="";_inst.gmlfill_bg=false;_inst.gmlactive=false;_inst.gmlcolour=16777215;_inst.gmltcolour=16777215;}function gml_Object_obj_infobox_Draw_0(_inst, _other){}function gml_Object_obj_infobox_Draw_64(_inst,_other){draw_self(_inst);draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gmltx=_inst.x;var gmlty=_inst.y;var gmlsw=yyfplus(1,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,_inst.gmltitle)),2)));var gmlsh=yyfplus(1,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_height(_inst,_other,_inst.gmltitle)),2)));gmltx=yyfplus(gmltx,yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2));draw_rectangle_color(yyfminus(yyfminus(__yy_gml_errCheck(gmltx), __yy_gml_errCheck(gmlsw)),2),yyfminus(yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),1),yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(_inst.gmltitle));draw_set_halign(0);gmltx=yyfplus(__yy_gml_errCheck(_inst.x),16);gmlty=yyfplus(__yy_gml_errCheck(_inst.y),16); gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(_inst.gmltxt_1));gmlty=yyfplus(gmlty,16);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(_inst.gmltxt_2));gmlty=yyfplus(gmlty,16);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(_inst.gmltxt_3));gmlty=yyfplus(gmlty,16);}function gml_Object_obj_infobox_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltitle="Title";_inst.gmltxt_1="Line 1";_inst.gmltxt_2="Line 2";_inst.gmltxt_3="Line 3";}function gml_Object_obj_smallbox_Draw_0(_inst, _other){}function gml_Object_obj_smallbox_Draw_64(_inst,_other){draw_self(_inst);draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);draw_set_valign(1);var gmltx=_inst.x;var gmlty=_inst.y;var gmlsw=yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,_inst.gmltitle)),2);var gmlsh=yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_height(_inst,_other,_inst.gmltitle)),2);gmltx=yyfplus(gmltx,yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2));if(yyfnotequal(_inst.gmltitle,"")){{draw_rectangle_color(yyfminus(yyfminus(__yy_gml_errCheck(gmltx), __yy_gml_errCheck(gmlsw)),1),yyfminus(yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),1),yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),0.5),gmlty,string_upper(_inst.gmltitle));};};if((yyGetBool(yyfnotequal(_inst.gmlimage,(-4))))&&(yyGetBool(yyfnotequal(_inst.gmltext, "")))){{gmltx=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_width),0.5)));gmlty=yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),0.5)));var gmltw=yyftime(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,_inst.gmltext)),0.5);gmltw=yyfplus(gmltw,yyfplus(2,__yy_gml_errCheck(yyftime(__yy_gml_errCheck(sprite_get_width(_inst.gmlimage)),0.5))));gmltw=yyftime(gmltw,0.5);gml_Script_draw_hd_text(_inst, _other,yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltw)),gmlty,_inst.gmltext);draw_sprite_ext(_inst,_inst.gmlimage,_inst.gmlimage_num,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltw)),gmlty,1,1,0,_inst.gmlimg_colour,1);};}else {if(yyfnotequal(_inst.gmlimage,(-4))){{gmltx=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_width),0.5)));gmlty=yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height), 0.5)));draw_sprite_ext(_inst,_inst.gmlimage,_inst.gmlimage_num,gmltx,gmlty,1,1,0,_inst.gmlimg_colour,1);};}else {{gmltx=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_width),0.5)));gmlty=yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),0.5)));gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(_inst.gmltext));gmlty=yyfplus(gmlty,16);};};};}function gml_Object_obj_smallbox_PreCreate_0(_inst,_other){ event_inherited(_inst,_other);_inst.gmltitle="Title";_inst.gmltext="Line 1";_inst.gmlimage=0;_inst.gmlimage_num=0;_inst.gmlimg_colour=16777215;}function gml_Object_obj_checkbox_Step_0(_inst,_other){if(!yyGetBool(_inst.visible)){return;};if((yyGetBool(_inst.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(_inst.layer))))){return;};if(!yyGetBool(_inst.gmlactive)){return;};{var __yy__v2192=GetWithArray(YYASSET_REF(0x0000004F));for(var __yy__v2193 in __yy__v2192){if(!__yy__v2192.hasOwnProperty(__yy__v2193))continue; var __yy__v2194=__yy__v2192[__yy__v2193];if(yyfless(__yy__v2194.depth,_inst.depth)){return;};}};{var __yy__v2195=GetWithArray(YYASSET_REF(0x00000048));for(var __yy__v2196 in __yy__v2195){if(!__yy__v2195.hasOwnProperty(__yy__v2196))continue;var __yy__v2197=__yy__v2195[__yy__v2196];if(yyGetBool(__yy__v2197.gmlediting)){return;};}};_inst.gmlclicked=false;if(yyGetBool(global.gmlgamepad)){{if((yyGetBool(yyfequal(yyInst(_inst,_other,global.gmlgp).gmlui_selected,_inst.id)))&&(yyGetBool(gamepad_button_check_released(yyInst(_inst, _other,global.gmlgp).gmlslot,global.gmlgp_select)))){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))){audio_play_sound(YYASSET_REF(0x02000006),1,false);};_inst.gmlstate=!yyGetBool(_inst.gmlstate);if(yyGetBool(_inst.gmlonClickAction)){script_execute(_inst,_other,_inst.gmlonClickAction);};if((yyGetBool(_inst.gmlstate))&&(yyGetBool(yyfnotequal(_inst.gmlclick_info,"")))){{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other, _inst.gmlclick_info),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};};};};};}else {{if(!yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other))){return;};if(yyGetBool(point_in_rectangle(device_mouse_x_to_gui(0),device_mouse_y_to_gui(0),_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height))))){{if(yyGetBool(mouse_check_button_released(1))){ {if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))){audio_play_sound(YYASSET_REF(0x02000006),1,false);};_inst.gmlstate=!yyGetBool(_inst.gmlstate);if(yyGetBool(_inst.gmlonClickAction)){script_execute(_inst,_other,_inst.gmlonClickAction);};if((yyGetBool(_inst.gmlstate))&&(yyGetBool(yyfnotequal(_inst.gmlclick_info,"")))){{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,_inst.gmlclick_info),gml_Script_s_str(_inst,_other, "ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};};};};};};};};}function gml_Object_obj_checkbox_Draw_64(_inst,_other){var gmlf=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),60))),1)),2);var gmlcol=16777215;if(yyGetBool(gml_Script_s_is_ui_selected(_inst,_other))){gmlcol=gml_Script_s_ui_selected_color(_inst,_other);};var ___sw1882___=_inst.gmlstate;var ___swc1883___=-1;if(yyCompareVal(___sw1882___,false,g_GMLMathEpsilon, false)==0){___swc1883___=0;}else if(yyCompareVal(___sw1882___,true,g_GMLMathEpsilon,false)==0){___swc1883___=1;}switch(___swc1883___){case 0:{draw_sprite_ext(_inst,_inst.sprite_index,0,_inst.x,_inst.y,1,1,0,gmlcol,1);break;}case 1:{draw_sprite_ext(_inst,_inst.sprite_index,1,_inst.x,_inst.y,1,1,0,gmlcol,1);break;}};draw_set_font(global.gmlfnt_small_flex);draw_set_valign(1);if(yyfequal(_inst.gmltxt_side,0)){{draw_set_halign(2);gml_Script_draw_hd_text(_inst,_other,yyfminus(__yy_gml_errCheck(_inst.x),8), yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),0.5))),_inst.gmltext);};}else {{draw_set_halign(0);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(_inst.x),18),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),0.5))),_inst.gmltext);};};}function gml_Object_obj_checkbox_Draw_0(_inst,_other){}function gml_Object_obj_checkbox_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlstate=false; _inst.gmltext=gml_Script_s_str(_inst,_other,"");_inst.gmlclick_info="";_inst.gmlactive=true;_inst.gmlonClickAction=(-4);_inst.gmltxt_side=0;}function gml_Object_obj_roomtitle_Draw_0(_inst,_other){}function gml_Object_obj_roomtitle_Draw_64(_inst,_other){var gmlframe_img=YYASSET_REF(0x0100007B);var gmldraw_for_co=false;if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gmlframe_img=YYASSET_REF(0x010000ED);gmldraw_for_co=true;};};draw_set_font(global.gmlfnt_flex);draw_set_halign(1);draw_set_valign(1); var gmltxt=string_upper(_inst.gmltext);var gmltx=yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5);var gmltw=yyfplus(yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,gmltxt)),0.5)),__yy_gml_errCheck(sprite_get_width(gmlframe_img))),16);gml_Script_draw_hd_text(_inst,_other,gmltx,_inst.gmlty,gmltxt);if((yyGetBool(_inst.gmlshow_stars))&&(yyGetBool((yyGetBool(yyfless(gml_Script_string_hd_width(_inst,_other,gmltxt),yyftime(__yy_gml_errCheck(display_get_gui_width()), 0.5))))||(yyGetBool(yyfequal(g_pBuiltIn.get_current_room(),YYASSET_REF(0x03000000))))))){{if(yyfequal(gmldraw_for_co,false)){{draw_sprite_ext(_inst,gmlframe_img,0,yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltw)),_inst.gmlty,2,2,0,16777215,1);draw_sprite_ext(_inst,gmlframe_img,0,yyfminus(yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltw)),2),_inst.gmlty,(-2),2,0,16777215,1);};}else {{var gmlscl=1;draw_sprite_ext(_inst,gmlframe_img,0,yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltw)), yyfminus(__yy_gml_errCheck(_inst.gmlty),6),gmlscl,gmlscl,0,16777215,1);draw_sprite_ext(_inst,gmlframe_img,0,yyfminus(yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltw)),2),yyfminus(__yy_gml_errCheck(_inst.gmlty),6),gmlscl,gmlscl,0,16777215,1);};};};};}function gml_Object_obj_roomtitle_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlty=16;_inst.gmltext=gml_Script_s_str(_inst,_other,"ui_Title");_inst.gmlshow_stars=true;}function gml_Object_obj_input_box_Step_0(_inst,_other){if(!yyGetBool(_inst.gmlactive)){ return;};if((yyGetBool(_inst.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(_inst.layer))))){return;};{var __yy__v2198=GetWithArray(YYASSET_REF(0x0000004F));for(var __yy__v2199 in __yy__v2198){if(!__yy__v2198.hasOwnProperty(__yy__v2199))continue;var __yy__v2200=__yy__v2198[__yy__v2199];if(yyfless(__yy__v2200.depth,_inst.depth)){return;};}};_inst.gmlhover=false;_inst.gmlcustom_keyboard=gml_Script_s_keyboard_custom_enabled(_inst,_other);if(yyGetBool(_inst.gmlediting)){{if(yyfgreater(string_length(g_pBuiltIn.keyboard_string), _inst.gmlmax_length)){g_pBuiltIn.keyboard_string=string_copy(g_pBuiltIn.keyboard_string,1,_inst.gmlmax_length);};if(!yyGetBool(_inst.gmlcustom_keyboard)){{if((yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other)))&&(yyGetBool(mouse_check_button_released(1)))){_inst.gmlediting=false;};};}else {{if((yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other)))&&(yyGetBool(mouse_check_button_released(1)))&&(yyGetBool(!yyGetBool(point_in_rectangle(device_mouse_x_to_gui(0),device_mouse_y_to_gui(0),10,120,470, 260))))){_inst.gmlediting=false;};};};var ___sw1886___=g_pBuiltIn.get_os_type();var ___swc1887___=-1;if(yyCompareVal(___sw1886___,0,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1886___,1,g_GMLMathEpsilon,false)==0){___swc1887___=0;}else if(yyCompareVal(___sw1886___,21,g_GMLMathEpsilon,false)==0){___swc1887___=1;}else if(yyCompareVal(___sw1886___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1886___,4,g_GMLMathEpsilon,false)==0){___swc1887___=2;}switch(___swc1887___){case 0:{if(yyGetBool(keyboard_check_released(13))){ {_inst.gmlediting=false;};};break;}case 1:{break;}case 2:{if((yyGetBool(yyfnotequal(g_pBuiltIn.keyboard_string,"")))||(yyGetBool(os_is_paused()))){{gml_Script_slog(_inst,_other,yyfplus("keyboard_virtual_status=",__yy_gml_errCheck(string(keyboard_virtual_status()))));gml_Script_slog(_inst,_other,yyfplus("keyboard_lastkey=",__yy_gml_errCheck(string(g_pBuiltIn.keyboard_lastkey))));gml_Script_slog(_inst,_other,yyfplus("keyboard_lastchar=",__yy_gml_errCheck(string(g_pBuiltIn.keyboard_lastchar))));if((yyGetBool(yyfequal(g_pBuiltIn.keyboard_lastchar, "\n")))||(yyGetBool(yyfequal(g_pBuiltIn.keyboard_lastchar,"\n")))||(yyGetBool(yyfequal(g_pBuiltIn.keyboard_lastchar,"\r")))||(yyGetBool(yyfequal(g_pBuiltIn.keyboard_lastkey,10)))||(yyGetBool(yyfequal(keyboard_virtual_status(),false)))){{_inst.gmlediting=false;};};};};break;}};if(!yyGetBool(_inst.gmlediting)){{keyboard_clear(13);if(yyGetBool(global.gmlmobile_device)){keyboard_virtual_hide();};if(yyGetBool(_inst.gmlcustom_keyboard)){gml_Script_s_keyboard_custom_hide(_inst,_other);};if(yyGetBool(ds_map_find_value(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))){audio_play_sound(YYASSET_REF(0x02000006),1,false);};_inst.gmltext=g_pBuiltIn.keyboard_string;_inst.gmltext=string_replace_all(_inst.gmltext," ","1X1");_inst.gmltext=string_replace_all(_inst.gmltext,".","2X2");_inst.gmltext=string_replace_all(_inst.gmltext,"'","3X3");_inst.gmltext=string_lettersdigits(_inst.gmltext);_inst.gmltext=string_replace_all(_inst.gmltext,"1X1"," ");_inst.gmltext=string_replace_all(_inst.gmltext,"2X2",".");_inst.gmltext=string_replace_all(_inst.gmltext, "3X3","'");g_pBuiltIn.keyboard_string="";g_pBuiltIn.keyboard_lastkey=(-1);if(yyGetBool(script_exists(_inst.gmlvalidate_script))){script_execute(_inst,_other,_inst.gmlvalidate_script);};};};};}else {{{var __yy__v2201=GetWithArray(YYASSET_REF(0x00000048));for(var __yy__v2202 in __yy__v2201){if(!__yy__v2201.hasOwnProperty(__yy__v2202))continue;var __yy__v2203=__yy__v2201[__yy__v2202];if(yyGetBool(__yy__v2203.gmlediting)){return;};}};if(yyGetBool(global.gmlgamepad)){{if((yyGetBool(yyfequal(yyInst(_inst,_other, global.gmlgp).gmlui_selected,_inst.id)))&&(yyGetBool(gamepad_button_check_released(yyInst(_inst,_other,global.gmlgp).gmlslot,global.gmlgp_select)))){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))){audio_play_sound(YYASSET_REF(0x02000006),1,false);};_inst.gmlediting=true;gml_Script_slog(_inst,_other,"Input box editing (Pad)");if(yyGetBool(global.gmlmobile_device)){keyboard_virtual_show(0,4,1,false);};if(yyGetBool(_inst.gmlcustom_keyboard)){ gml_Script_s_keyboard_custom_show(_inst,_other,_inst.id);};g_pBuiltIn.keyboard_string="";g_pBuiltIn.keyboard_lastkey=(-1);};};};}else {{if((yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other)))&&(yyGetBool(point_in_rectangle(device_mouse_x_to_gui(0),device_mouse_y_to_gui(0),_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)))))){{_inst.gmlhover=true;};};if(yyGetBool(_inst.gmlhover)){ {if(yyGetBool(mouse_check_button(1))){{_inst.image_index=1;_inst.gmlclicked=true;};};if((yyGetBool(_inst.gmlclicked))&&(yyGetBool(mouse_check_button_released(1)))){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))){audio_play_sound(YYASSET_REF(0x02000006),1,false);};_inst.gmlclicked=false;_inst.gmlediting=true;gml_Script_slog(_inst,_other,"Input box editing (Touch)");if(yyGetBool(global.gmlmobile_device)){{keyboard_virtual_show(0,4,1,false); };};if(yyGetBool(_inst.gmlcustom_keyboard)){gml_Script_s_keyboard_custom_show(_inst,_other,_inst.id);};g_pBuiltIn.keyboard_string="";g_pBuiltIn.keyboard_lastkey=(-1);};};};}else {{_inst.gmlclicked=false;};};};};};};}function gml_Object_obj_input_box_Draw_64(_inst,_other){var gmlf=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),60))),1)),2);if((yyGetBool(_inst.gmlediting))||(yyGetBool((yyGetBool(gml_Script_s_is_ui_selected(_inst,_other)))&&(yyGetBool(yyfgreater(gmlf, 0.5)))))){draw_rectangle_color(yyfminus(__yy_gml_errCheck(_inst.x),2),yyfminus(__yy_gml_errCheck(_inst.y),2),yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),1.5),yyfplus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)),1.5),gml_Script_s_ui_selected_color(_inst,_other),gml_Script_s_ui_selected_color(_inst,_other),gml_Script_s_ui_selected_color(_inst,_other),gml_Script_s_ui_selected_color(_inst,_other),0);};draw_sprite_ext(_inst,_inst.sprite_index, _inst.image_index,_inst.x,_inst.y,_inst.image_xscale,_inst.image_yscale,0,_inst.gmlcolour,(yyGetBool(_inst.gmlactive)?1:0.3));draw_set_alpha(1);draw_set_font(_inst.gmlfont);draw_set_halign(_inst.gmlhalign);draw_set_valign(_inst.gmlvalign);var gmltx=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_width),0.5)));var gmlty=yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.sprite_height),0.5)));if(yyGetBool(_inst.gmlediting)){ {var gmla=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),100))),1)),2);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(yyfplus(__yy_gml_errCheck(gmltx),3),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,g_pBuiltIn.keyboard_string)),0.5))),gmlty,"|",_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,gmla);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,g_pBuiltIn.keyboard_string, _inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,1);};}else {{gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,_inst.gmltext,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,(yyGetBool(_inst.gmlactive)?1:0.3));};};}function gml_Object_obj_input_box_Draw_0(_inst,_other){}function gml_Object_obj_input_box_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltext="Text";_inst.gmlhalign=1;_inst.gmlvalign=1;_inst.gmlcolour=16777215;_inst.gmltcolour=0; _inst.gmlfont=YYASSET_REF(0x07000001);_inst.gmlediting=false;_inst.gmlhover=false;_inst.gmlclicked=false;_inst.gmlnext_input=(-4);_inst.gmlactive=true;_inst.gmlmax_length=8;_inst.gmlvalidate_script=(-4);_inst.gmlcustom_keyboard=false;_inst.gmlcustom_keyboard_type=0;}function gml_Object_obj_text_exp_Draw_64(_inst,_other){if((yyGetBool(_inst.gmldraw_box))&&(yyGetBool(_inst.sprite_index))){{if(yyGetBool(_inst.gmlshadow)){draw_sprite_ext(_inst,_inst.sprite_index,0,yyfminus(__yy_gml_errCheck(_inst.x), 2),yyfplus(__yy_gml_errCheck(_inst.y),2),_inst.image_xscale,_inst.image_yscale,0,4210752,_inst.gmlalpha);};draw_sprite_ext(_inst,_inst.sprite_index,0,_inst.x,_inst.y,_inst.image_xscale,_inst.image_yscale,0,_inst.gmlcolour,_inst.gmlalpha);};};draw_set_font(_inst.gmlfont);draw_set_halign(_inst.gmlhalign);draw_set_valign(_inst.gmlvalign);_inst.gmltext=string_upper(_inst.gmltext);var gmltx=_inst.x;var gmlty=_inst.y;var gmla=_inst.gmlalpha;if(yyGetBool(_inst.gmlicon)){gmltx=yyfminus(gmltx,yyftime(__yy_gml_errCheck(sprite_get_width(_inst.gmlicon)), 0.25));};if((yyGetBool(yyfequal(gmla,1)))&&(yyGetBool(_inst.gmlflashtext))){gmla=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),160))),1)),2);};if(yyGetBool(_inst.gmlshadow)){gml_Script_draw_hd_text_ext_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),2),yyfplus(__yy_gml_errCheck(gmlty),2),_inst.gmltext,(-1),_inst.sprite_width,0,0,0,0,gmla);};var gmlmax_str_w=_inst.sprite_width;if((yyGetBool(yyfgreaterequal(gml_Script_string_hd_width(_inst, _other,_inst.gmltext),_inst.sprite_width)))&&(yyGetBool(yyfequal(string_pos(" ",_inst.gmltext),0)))){{gmlmax_str_w=1000;};};gml_Script_draw_hd_text_ext_color(_inst,_other,gmltx,gmlty,_inst.gmltext,(-1),gmlmax_str_w,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,gmla);if(yyGetBool(_inst.gmlicon)){{var gmltw=yyftime(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,_inst.gmltext)),0.5);gmltw=yyfplus(gmltw,yyftime(__yy_gml_errCheck(sprite_get_width(_inst.gmlicon)),0.5)); draw_sprite(_inst,_inst.gmlicon,0,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltw)),gmlty);};};}function gml_Object_obj_text_exp_Draw_0(_inst,_other){}function gml_Object_obj_text_exp_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlhalign=1;_inst.gmlvalign=1;_inst.gmldraw_box=true;_inst.gmlcolour=16777215;_inst.gmltcolour=16777215;_inst.gmlalpha=1;_inst.gmlflashtext=false;_inst.gmlfont=global.gmlfnt_small_flex;_inst.gmlshadow=false;_inst.gmltext=gml_Script_s_str(_inst,_other, "");_inst.gmlicon=(-4);}function gml_Object_obj_text_watermark_Mouse_4(_inst,_other){{var __yy__v2204=GetWithArray(YYASSET_REF(0x00000050));for(var __yy__v2205 in __yy__v2204){if(!__yy__v2204.hasOwnProperty(__yy__v2205))continue;var __yy__v2206=__yy__v2204[__yy__v2205];return;}};{var __yy__v2207=GetWithArray(YYASSET_REF(0x0000004F));for(var __yy__v2208 in __yy__v2207){if(!__yy__v2207.hasOwnProperty(__yy__v2208))continue;var __yy__v2209=__yy__v2207[__yy__v2208];return;}};if(yyGetBool(global.gmlconsole_build)){ return;};room_goto(YYASSET_REF(0x03000020));}function gml_Object_obj_text_watermark_Draw_64(_inst,_other){if((yyGetBool(_inst.gmldraw_box))&&(yyGetBool(_inst.sprite_index))){{if(yyGetBool(_inst.gmlshadow)){draw_sprite_ext(_inst,_inst.sprite_index,0,yyfminus(__yy_gml_errCheck(_inst.x),2),yyfplus(__yy_gml_errCheck(_inst.y),2),_inst.image_xscale,_inst.image_yscale,0,global.gmlc_shadow,_inst.gmlalpha);};draw_sprite_ext(_inst,_inst.sprite_index,0,_inst.x,_inst.y,_inst.image_xscale,_inst.image_yscale,0, _inst.gmlcolour,_inst.gmlalpha);};};draw_set_font(_inst.gmlfont);draw_set_halign(_inst.gmlhalign);draw_set_valign(_inst.gmlvalign);_inst.gmltext=string_upper(_inst.gmltext);var gmltx=_inst.x;var gmlty=_inst.y;var gmla=_inst.gmlalpha;if(yyGetBool(_inst.gmlicon)){gmltx=yyfminus(gmltx,yyftime(__yy_gml_errCheck(sprite_get_width(_inst.gmlicon)),0.25));};if((yyGetBool(yyfequal(gmla,1)))&&(yyGetBool(_inst.gmlflashtext))){gmla=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()), 160))),1)),2);};if(yyGetBool(_inst.gmlshadow)){gml_Script_draw_hd_text_ext_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),2),yyfplus(__yy_gml_errCheck(gmlty),2),_inst.gmltext,(-1),_inst.sprite_width,0,0,0,0,gmla);};gml_Script_draw_hd_text_ext_color(_inst,_other,gmltx,gmlty,_inst.gmltext,(-1),_inst.sprite_width,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,gmla);if(yyGetBool(_inst.gmlicon)){{var gmltw=yyftime(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,_inst.gmltext)), 0.5);gmltw=yyfplus(gmltw,yyftime(__yy_gml_errCheck(sprite_get_width(_inst.gmlicon)),0.5));draw_sprite(_inst,_inst.gmlicon,0,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltw)),gmlty);};};}function gml_Object_obj_text_watermark_Draw_0(_inst,_other){}function gml_Object_obj_text_watermark_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlhalign=1;_inst.gmlvalign=1;_inst.gmldraw_box=true;_inst.gmlcolour=16777215;_inst.gmltcolour=16777215;_inst.gmlalpha=1;_inst.gmlflashtext=false; _inst.gmlfont=YYASSET_REF(0x07000001);_inst.gmlshadow=false;_inst.gmltext=gml_Script_s_str(_inst,_other,"");_inst.gmlicon=(-4);}function gml_Object_obj_text_Draw_64(_inst,_other){if(yyGetBool(_inst.gmldraw_box)){{if(yyGetBool(_inst.gmlshadow)){draw_sprite_ext(_inst,_inst.sprite_index,0,yyfminus(__yy_gml_errCheck(_inst.x),2),yyfplus(__yy_gml_errCheck(_inst.y),2),_inst.image_xscale,_inst.image_yscale,0,global.gmlc_shadow,_inst.gmlalpha);};draw_sprite_ext(_inst,_inst.sprite_index,0,_inst.x,_inst.y,_inst.image_xscale, _inst.image_yscale,0,_inst.gmlcolour,_inst.gmlalpha);};};draw_set_font(_inst.gmlfont);draw_set_halign(_inst.gmlhalign);draw_set_valign(_inst.gmlvalign);_inst.gmltext=string_upper(_inst.gmltext);var gmltx=_inst.x;var gmlty=_inst.y;var gmla=_inst.gmlalpha;if(yyGetBool(_inst.gmlicon)){{if(yyGetBool(_inst.gmlicon_left)){gmltx=yyfplus(gmltx,yyftime(__yy_gml_errCheck(sprite_get_width(_inst.gmlicon)),0.3));}else {gmltx=yyfminus(gmltx,yyftime(__yy_gml_errCheck(sprite_get_width(_inst.gmlicon)),0.3));};};};if((yyGetBool(yyfequal(gmla, 1)))&&(yyGetBool(_inst.gmlflashtext))){gmla=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),160))),1)),2);};if(yyGetBool(_inst.gmlshadow)){gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),2),yyfplus(__yy_gml_errCheck(gmlty),2),_inst.gmltext,0,0,0,0,gmla);};gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,_inst.gmltext,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,gmla);if(yyGetBool(_inst.gmlicon)){ {var gmltw=yyftime(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,_inst.gmltext)),0.5);gmltw=yyfplus(gmltw,yyftime(__yy_gml_errCheck(sprite_get_width(_inst.gmlicon)),0.7));if(yyGetBool(_inst.gmlicon_left)){draw_sprite(_inst,_inst.gmlicon,_inst.gmlicon_frame,yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltw)),gmlty);}else {draw_sprite(_inst,_inst.gmlicon,_inst.gmlicon_frame,yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmltw)),gmlty);};};};}function gml_Object_obj_text_Draw_0(_inst, _other){}function gml_Object_obj_text_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltext="Text";_inst.gmlhalign=1;_inst.gmlvalign=1;_inst.gmldraw_box=true;_inst.gmlcolour=16777215;_inst.gmltcolour=16777215;_inst.gmlalpha=1;_inst.gmlflashtext=false;_inst.gmlfont=global.gmlfnt_small_flex;_inst.gmlshadow=false;_inst.gmlicon=(-4);_inst.gmlicon_left=false;_inst.gmlicon_frame=0;}function gml_Object_obj_txt_credit_Create_0(_inst,_other){_inst.gmltext=gml_Script_s_get_credit(_inst,_other); _inst.gmlicon=YYASSET_REF(0x01000069);}function gml_Object_obj_txt_credit_Step_0(_inst,_other){_inst.gmltext=gml_Script_s_get_credit(_inst,_other);}function gml_Object_obj_txt_credit_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlfont=global.gmlfnt_small_flex;}function gml_Object_obj_difficulty_watermark_Create_0(_inst,_other){var gmlfixture=gml_Script_s_get_human_fixture_by_week(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek);if((yyGetBool(gmlfixture))&&(yyGetBool(ds_map_exists(gmlfixture, "difficulty")))){{_inst.gmltext=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Difficulty")),": "),__yy_gml_errCheck(ds_map_find_value(gmlfixture,"difficulty")));};};}function gml_Object_obj_difficulty_watermark_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmldraw_box=false;_inst.gmlalpha=0.4;_inst.gmltext="";}function gml_Object_obj_picks_Create_0(_inst,_other){_inst.gmlpick1=string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraft_picks[__yy_gml_array_check_index(0, yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraft_picks)]);_inst.gmlpick2=string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraft_picks[__yy_gml_array_check_index(1,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraft_picks)]);_inst.gmlpick3=string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraft_picks[__yy_gml_array_check_index(2,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraft_picks)]);_inst.gmldraft_round=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraft_round), 1);_inst.gmlalf=__yy_gml_array_check(_inst.gmlalf,1827966746);_inst.gmlalf[__yy_gml_array_check_index_set(0)]=0.4;_inst.gmlalf[__yy_gml_array_check_index_set(1)]=0.4;_inst.gmlalf[__yy_gml_array_check_index_set(2)]=0.4;if(yyfnotequal(g_pBuiltIn.get_current_room(),YYASSET_REF(0x03000005))){{_inst.gmldraft_round=(-1);_inst.gmlalf[__yy_gml_array_check_index_set(0)]=1;_inst.gmlalf[__yy_gml_array_check_index_set(1)]=1;_inst.gmlalf[__yy_gml_array_check_index_set(2)]=1;};};}function gml_Object_obj_picks_Draw_64(_inst, _other){if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{_inst.visible=false;return;};};if(yyGetBool(_inst.gmldraw_box)){{if(yyGetBool(_inst.gmlshadow)){draw_sprite_ext(_inst,_inst.sprite_index,0,yyfminus(__yy_gml_errCheck(_inst.x),2),yyfplus(__yy_gml_errCheck(_inst.y),2),_inst.image_xscale,_inst.image_yscale,0,4210752,_inst.gmlalpha);};draw_sprite_ext(_inst,_inst.sprite_index,0,_inst.x,_inst.y,_inst.image_xscale,_inst.image_yscale,0,_inst.gmlcolour,_inst.gmlalpha);};};draw_set_font(_inst.gmlfont); draw_set_halign(_inst.gmlhalign);draw_set_valign(_inst.gmlvalign);var gmltx=yyfminus(__yy_gml_errCheck(_inst.x),16);var gmlty=_inst.y;if((yyGetBool(yyfgreaterequal(_inst.gmldraft_round,0)))&&(yyGetBool(yyflessequal(_inst.gmldraft_round,2)))){_inst.gmlalf=__yy_gml_array_check(_inst.gmlalf,1827966746);_inst.gmlalf[__yy_gml_array_check_index_set(_inst.gmldraft_round)]=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),160))),1)),2);};gml_Script_draw_hd_text_color(_inst, _other,gmltx,gmlty,_inst.gmlpick1,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,_inst.gmlalf[__yy_gml_array_check_index(0,_inst.gmlalf)]);gmltx=yyfplus(gmltx,8);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,"-",_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,1);gmltx=yyfplus(gmltx,8);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,_inst.gmlpick2,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,_inst.gmlalf[__yy_gml_array_check_index(1, _inst.gmlalf)]);gmltx=yyfplus(gmltx,8);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,"-",_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,1);gmltx=yyfplus(gmltx,8);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,_inst.gmlpick3,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,_inst.gmltcolour,_inst.gmlalf[__yy_gml_array_check_index(2,_inst.gmlalf)]);}function gml_Object_obj_msgbg_Create_0(_inst,_other){_inst.image_xscale=yyfdivide(__yy_gml_errCheck(display_get_gui_width()), __yy_gml_errCheck(_inst.sprite_width));_inst.image_yscale=yyfdivide(__yy_gml_errCheck(display_get_gui_height()),__yy_gml_errCheck(_inst.sprite_height));_inst.gmlnewroom=(-4);}function gml_Object_obj_msgbg_Alarm_0(_inst,_other){gml_Script_s_meter_change_end(_inst,_other);}function gml_Object_obj_msgbg_Draw_64(_inst,_other){draw_sprite_ext(_inst,YYASSET_REF(0x010000A1),0,0,0,_inst.image_xscale,_inst.image_yscale,0,_inst.gmlcolour,_inst.gmlalpha);}function gml_Object_obj_msgbg_Draw_0(_inst,_other){}function gml_Object_obj_msgbg_KeyPress_27(_inst, _other){room_goto(YYASSET_REF(0x0300000E));}function gml_Object_obj_msgbg_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlalpha=0.8;_inst.gmlcolour=16777215;_inst.gmldo_play=false;}function gml_Object_obj_messagebox_Draw_0(_inst,_other){}function gml_Object_obj_messagebox_Draw_64(_inst,_other){draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);draw_set_valign(1);var gmlsep=(-1);if(yyfgreater(gml_Script_string_hd_height_ext(_inst,_other,_inst.gmltext,gmlsep,_inst.gmlmsg_width), 150)){gmlsep=12;};if(yyGetBool(_inst.gmldraw_box)){{var gmlw=yyfplus(16,__yy_gml_errCheck(gml_Script_string_hd_width_ext(_inst,_other,_inst.gmltext,gmlsep,_inst.gmlmsg_width)));var gmltw=yyfplus(16,__yy_gml_errCheck(gml_Script_string_hd_width_ext(_inst,_other,_inst.gmltitle,gmlsep,_inst.gmlmsg_width)));if(yyfgreater(gmltw,gmlw)){gmlw=gmltw;};var gmlh=yyfplus(16,__yy_gml_errCheck(gml_Script_string_hd_height_ext(_inst,_other,_inst.gmltext,gmlsep,_inst.gmlmsg_width)));var gmlbx=yyfminus(__yy_gml_errCheck(_inst.x), __yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlw),0.5)));var gmlby=yyfminus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlh),0.5)));draw_rectangle_color(yyfplus(__yy_gml_errCheck(gmlbx),2),yyfplus(__yy_gml_errCheck(gmlby),2),yyfminus(yyfplus(__yy_gml_errCheck(gmlbx),__yy_gml_errCheck(gmlw)),2),yyfminus(yyfplus(__yy_gml_errCheck(gmlby),__yy_gml_errCheck(gmlh)),2),_inst.gmlcolour,_inst.gmlcolour,_inst.gmlcolour,_inst.gmlcolour,0);draw_sprite(_inst,YYASSET_REF(0x0100009C), 0,gmlbx,gmlby);draw_sprite_ext(_inst,YYASSET_REF(0x0100009C),2,yyfplus(__yy_gml_errCheck(gmlbx),4),gmlby,yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlw),8)),4),1,0,16777215,1);draw_sprite(_inst,YYASSET_REF(0x0100009C),1,yyfminus(yyfplus(__yy_gml_errCheck(gmlbx),__yy_gml_errCheck(gmlw)),4),gmlby);draw_sprite_ext(_inst,YYASSET_REF(0x0100009C),3,yyfminus(yyfplus(__yy_gml_errCheck(gmlbx),__yy_gml_errCheck(gmlw)),2),yyfplus(__yy_gml_errCheck(gmlby),4),1,yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlh), 8)),4),0,16777215,1);draw_sprite(_inst,YYASSET_REF(0x0100009C),0,yyfminus(yyfplus(__yy_gml_errCheck(gmlbx),__yy_gml_errCheck(gmlw)),4),yyfminus(yyfplus(__yy_gml_errCheck(gmlby),__yy_gml_errCheck(gmlh)),4));draw_sprite_ext(_inst,YYASSET_REF(0x0100009C),2,yyfplus(__yy_gml_errCheck(gmlbx),4),yyfminus(yyfplus(__yy_gml_errCheck(gmlby),__yy_gml_errCheck(gmlh)),2),yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlw),8)),4),1,0,16777215,1);draw_sprite(_inst,YYASSET_REF(0x0100009C),1,gmlbx,yyfminus(yyfplus(__yy_gml_errCheck(gmlby), __yy_gml_errCheck(gmlh)),4));draw_sprite_ext(_inst,YYASSET_REF(0x0100009C),3,gmlbx,yyfplus(__yy_gml_errCheck(gmlby),4),1,yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlh),8)),4),0,16777215,1);};};if(yyGetBool(_inst.gmltext_shadow)){{draw_set_color(0);gml_Script_draw_hd_text_ext(_inst,_other,yyfminus(__yy_gml_errCheck(_inst.x),1),yyfplus(__yy_gml_errCheck(_inst.y),1),_inst.gmltext,gmlsep,_inst.gmlmsg_width);};};draw_set_color(_inst.gmltext_col);gml_Script_draw_hd_text_ext(_inst,_other, _inst.x,_inst.y,_inst.gmltext,gmlsep,_inst.gmlmsg_width);draw_set_color(16777215);var gmlh=yyfplus(16,__yy_gml_errCheck(gml_Script_string_hd_height_ext(_inst,_other,_inst.gmltext,gmlsep,_inst.gmlmsg_width)));var gmlby=yyfminus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlh),0.5)));if(yyfequal(_inst.gmltitle,"")){return;};var gml_title=string_upper(_inst.gmltitle);var gmltx=_inst.x;var gmlty=gmlby;var gmlsw=yyfplus(2,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_width(_inst, _other,gml_title)),2)));var gmlsh=yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_height(_inst,_other,gml_title)),2);gmltx=yyfplus(gmltx,yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2));if(yyfnotequal(gml_title,"")){{draw_rectangle_color(yyfminus(yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),2),yyfplus(yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),1),yyfplus(yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),1),yyfminus(yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)), 6),16777215,16777215,16777215,16777215,0);draw_rectangle_color(yyfminus(yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),1),yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),yyfplus(yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),0),yyfminus(yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),6),16777215,16777215,16777215,16777215,0);draw_rectangle_color(yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),yyfplus(yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)), 2),yyfminus(yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),1),yyfminus(yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),2),_inst.gmlcolour,_inst.gmlcolour,_inst.gmlcolour,_inst.gmlcolour,0);if(yyGetBool(_inst.gmltitle_shadow)){gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gml_title,0,0,0,0,1);};gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,gml_title,16777215,16777215,16777215,16777215,1);};};}function gml_Object_obj_messagebox_PreCreate_0(_inst, _other){event_inherited(_inst,_other);_inst.gmltext="Message";_inst.gmlcolour=new Long(4294967295,0,false);_inst.gmlmsg_width=400;_inst.gmldraw_box=true;_inst.gmltext_col=new Long(4294967295,0,false);_inst.gmltext_shadow=false;_inst.gmltitle="";_inst.gmltitle_shadow=true;}function gml_Object_obj_rm_qb_negotiate_Create_0(_inst,_other){yyInst(_inst,_other,100743).visible=false;yyInst(_inst,_other,100747).visible=false;{var __yy__v2210=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v2211 in __yy__v2210){ if(!__yy__v2210.hasOwnProperty(__yy__v2211))continue;var __yy__v2212=__yy__v2210[__yy__v2211];{var gmllist_numbers=ds_list_create();var gmli=0;for(;yyfless(gmli,11);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ds_list_add(gmllist_numbers,yyfplus(__yy_gml_errCheck(gmli),1))};var gmlsz=clamp(2,7,yyfplus(yyfplus(yyfplus(1,__yy_gml_errCheck(yyInst(_inst,_other,__yy__v2212.gmlqb_new_offer).gml_salary_neg)),__yy_gml_errCheck(yyInst(_inst,_other, __yy__v2212.gmlqb_new_offer).gml_tdbonus_neg)),__yy_gml_errCheck(yyInst(_inst,_other,__yy__v2212.gmlqb_new_offer).gml_length_neg)));var gmli=(-1);for(;yyfless(gmli,yyfminus(__yy_gml_errCheck(gmlsz),1));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{ds_list_shuffle(gmllist_numbers);var gmlob=instance_create_layer(yyfplus(240,__yy_gml_errCheck(yyftime(78,__yy_gml_errCheck(gmli)))),180,"Instances",YYASSET_REF(0x00000005));yyInst(_inst,_other, gmlob).gmlnumber=ds_list_find_value(gmllist_numbers,1);yyInst(_inst,_other,gmlob).gmlposition=gmli;ds_list_delete(gmllist_numbers,1);}};}}};gml_Script_s_check_hilo_buttons(_inst,_other);}function gml_Object_obj_division_Step_0(_inst,_other){if(!yyGetBool(_inst.gmlactive)){{if((yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other)))&&(yyGetBool(point_in_rectangle(device_mouse_x_to_gui(0),device_mouse_y_to_gui(0),_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)), yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)))))){{if(yyGetBool(mouse_check_button_released(1))){gml_Script_btn_click_LeagueMode(_inst,_other);};};};};};event_inherited(_inst,_other);}function gml_Object_obj_division_Draw_0(_inst,_other){}function gml_Object_obj_division_Draw_64(_inst,_other){if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gml_Script_s_co_division_draw_gui(_inst,_other);return;};};var gmlgx=_inst.x;var gmlgy=_inst.y;if(yyGetBool(_inst.gmlactive)){draw_sprite_ext(_inst, _inst.sprite_index,_inst.image_index,yyfminus(__yy_gml_errCheck(_inst.x),2),yyfplus(__yy_gml_errCheck(_inst.y),2),1,1,0,4210752,1);};if(yyGetBool(_inst.gmlclicked)){{gmlgx=yyfminus(gmlgx,2);gmlgy=yyfplus(gmlgy,2);};};draw_set_alpha(_inst.gmlalpha);draw_rectangle_color(yyfplus(__yy_gml_errCheck(gmlgx),2),gmlgy,yyfminus(yyfplus(yyfplus(__yy_gml_errCheck(gmlgx),2),__yy_gml_errCheck(_inst.sprite_width)),4),yyfminus(yyfplus(yyfplus(__yy_gml_errCheck(gmlgy),2),__yy_gml_errCheck(_inst.sprite_height)),4), global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);draw_sprite(_inst,_inst.sprite_index,_inst.image_index,gmlgx,gmlgy);if(yyGetBool(gml_Script_s_is_ui_selected(_inst,_other))){{var gmlf=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),60))),1)),2);};};draw_set_font(global.gmlfnt_small_flex);draw_set_halign(0);var gmltx=gmlgx;var gmlty=gmlgy;var gmlsw=yyfplus(1,__yy_gml_errCheck(gml_Script_string_hd_width(_inst, _other,_inst.gmltitle)));var gmlsh=yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_height(_inst,_other,_inst.gmltitle)),2);gmltx=yyfplus(gmltx,16);draw_set_alpha(1);draw_rectangle_color(yyfminus(__yy_gml_errCheck(gmltx),2),yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);draw_set_alpha(_inst.gmlalpha); gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(_inst.gmltitle));draw_set_halign(1);gmltx=yyfminus(yyfplus(__yy_gml_errCheck(gmlgx),__yy_gml_errCheck(_inst.sprite_width)),56);var ___sw1892___=_inst.gmlmode;var ___swc1893___=-1;if(yyCompareVal(___sw1892___,0,g_GMLMathEpsilon,false)==0){___swc1893___=0;}else if(yyCompareVal(___sw1892___,1,g_GMLMathEpsilon,false)==0){___swc1893___=1;}else if(yyCompareVal(___sw1892___,2,g_GMLMathEpsilon,false)==0){___swc1893___=2;}switch(___swc1893___){case 0:{ draw_set_alpha(1);draw_rectangle_color(yyfminus(__yy_gml_errCheck(gmltx),14),yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),yyfplus(__yy_gml_errCheck(gmltx),48),yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);draw_set_alpha(_inst.gmlalpha);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(gml_Script_s_str(_inst,_other,"tla_Percentage")));gmltx=yyfplus(gmltx,35);gml_Script_draw_hd_text(_inst, _other,gmltx,gmlty,string_upper(gml_Script_s_str(_inst,_other,"tla_NetPoints")));break;}case 1:{draw_set_alpha(1);draw_rectangle_color(yyfminus(__yy_gml_errCheck(gmltx),8),yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),yyfplus(__yy_gml_errCheck(gmltx),46),yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);draw_set_alpha(_inst.gmlalpha);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty, gml_Script_s_str(_inst,_other,"sla_Wins"));gmltx=yyfplus(gmltx,20);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gml_Script_s_str(_inst,_other,"sla_Losses"));gmltx=yyfplus(gmltx,20);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gml_Script_s_str(_inst,_other,"sla_Ties"));break;}case 2:{draw_set_alpha(1);draw_rectangle_color(yyfminus(__yy_gml_errCheck(gmltx),14),yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),yyfplus(__yy_gml_errCheck(gmltx),48),yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)), global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);draw_set_alpha(_inst.gmlalpha);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(gml_Script_s_str(_inst,_other,"tla_Offense")));gmltx=yyfplus(gmltx,35);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(gml_Script_s_str(_inst,_other,"tla_Defense")));break;}};gmlty=yyfplus(__yy_gml_errCheck(gmlgy),16);var gmlt=0;for(;yyfless(gmlt,4);(g_yyPrePostObject__=gmlt,gmlt=(g_yyPrePostObject__ instanceof Long?gmlt.add(1):++gmlt), g_yyPrePostObject__)){{gmltx=yyfplus(__yy_gml_errCheck(gmlgx),16);draw_set_halign(0);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,string_upper(_inst.gmlteam_name[__yy_gml_array_check_index(gmlt,_inst.gmlteam_name)]),_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlalpha); gmltx=yyfminus(yyfplus(__yy_gml_errCheck(gmlgx),__yy_gml_errCheck(_inst.sprite_width)),56);draw_set_halign(1);var ___sw1894___=_inst.gmlmode;var ___swc1895___=-1;if(yyCompareVal(___sw1894___,0,g_GMLMathEpsilon,false)==0){___swc1895___=0;}else if(yyCompareVal(___sw1894___,1,g_GMLMathEpsilon,false)==0){___swc1895___=1;}else if(yyCompareVal(___sw1894___,2,g_GMLMathEpsilon,false)==0){___swc1895___=2;}switch(___swc1895___){case 0:{gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,_inst.gmlpct[__yy_gml_array_check_index(gmlt, _inst.gmlpct)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlalpha);gmltx=yyfplus(gmltx,35);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,_inst.gmlnet[__yy_gml_array_check_index(gmlt,_inst.gmlnet)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)], _inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlalpha);break;}case 1:{gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,_inst.gmlwins[__yy_gml_array_check_index(gmlt,_inst.gmlwins)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt, _inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlalpha);gmltx=yyfplus(gmltx,20);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,_inst.gmllosses[__yy_gml_array_check_index(gmlt,_inst.gmllosses)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt, _inst.gmlcol_txt)],_inst.gmlalpha);gmltx=yyfplus(gmltx,20);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,_inst.gmlties[__yy_gml_array_check_index(gmlt,_inst.gmlties)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlalpha);break;}case 2:{gml_Script_draw_hd_text_color(_inst, _other,gmltx,gmlty,_inst.gmloffense[__yy_gml_array_check_index(gmlt,_inst.gmloffense)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlalpha);gmltx=yyfplus(gmltx,35);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,_inst.gmldefense[__yy_gml_array_check_index(gmlt, _inst.gmldefense)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlcol_txt[__yy_gml_array_check_index(gmlt,_inst.gmlcol_txt)],_inst.gmlalpha);break;}};gmlty=yyfplus(gmlty,16);}};draw_set_alpha(1);}function gml_Object_obj_division_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltitle="Title";_inst.gmlteam_name=__yy_gml_array_check(_inst.gmlteam_name, 4207176991);_inst.gmlteam_name[__yy_gml_array_check_index_set(4)]="Team";_inst.gmlcol_txt=__yy_gml_array_check(_inst.gmlcol_txt,962292243);_inst.gmlcol_txt[__yy_gml_array_check_index_set(4)]=16777215;_inst.gmlwins=__yy_gml_array_check(_inst.gmlwins,3868566363);_inst.gmlwins[__yy_gml_array_check_index_set(4)]=0;_inst.gmllosses=__yy_gml_array_check(_inst.gmllosses,497902275);_inst.gmllosses[__yy_gml_array_check_index_set(4)]=0;_inst.gmlties=__yy_gml_array_check(_inst.gmlties,3206226873);_inst.gmlties[__yy_gml_array_check_index_set(4)]=0; _inst.gmlalpha=1;_inst.gmlmode=1;_inst.gmlpct=__yy_gml_array_check(_inst.gmlpct,2229878433);_inst.gmlpct[__yy_gml_array_check_index_set(4)]=0;_inst.gmlnet=__yy_gml_array_check(_inst.gmlnet,2556297878);_inst.gmlnet[__yy_gml_array_check_index_set(4)]=0;_inst.gmloffense=__yy_gml_array_check(_inst.gmloffense,2881329983);_inst.gmloffense[__yy_gml_array_check_index_set(4)]=0;_inst.gmldefense=__yy_gml_array_check(_inst.gmldefense,2468049442);_inst.gmldefense[__yy_gml_array_check_index_set(4)]=0;}function gml_Object_obj_scoreboard_Draw_0(_inst, _other){}function gml_Object_obj_scoreboard_Draw_64(_inst,_other){draw_self(_inst);var gmlgx=_inst.x;var gmlgy=_inst.y;draw_set_font(global.gmlfnt_flex);draw_set_halign(0);draw_set_alpha(1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmlgx),8),yyfplus(__yy_gml_errCheck(gmlgy),14),_inst.gmlteamnames[__yy_gml_array_check_index(0,_inst.gmlteamnames)],_inst.gmlcol1,_inst.gmlcol1,_inst.gmlcol1,_inst.gmlcol1,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmlgx), 8),yyfplus(__yy_gml_errCheck(gmlgy),57),_inst.gmlteamnames[__yy_gml_array_check_index(1,_inst.gmlteamnames)],_inst.gmlcol2,_inst.gmlcol2,_inst.gmlcol2,_inst.gmlcol2,1);draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gmlsx=yyfplus(__yy_gml_errCheck(gmlgx),78);var gmlsy=yyfplus(__yy_gml_errCheck(gmlgy),14);var gmlsy2=yyfplus(__yy_gml_errCheck(gmlgy),57);var gmlgap=25;gml_Script_draw_hd_text_color(_inst,_other,gmlsx,gmlsy,_inst.gmlscores1[__yy_gml_array_check_index(0,_inst.gmlscores1)],_inst.gmlcol1, _inst.gmlcol1,_inst.gmlcol1,_inst.gmlcol1,1);gml_Script_draw_hd_text_color(_inst,_other,gmlsx,gmlsy2,_inst.gmlscores2[__yy_gml_array_check_index(0,_inst.gmlscores2)],_inst.gmlcol2,_inst.gmlcol2,_inst.gmlcol2,_inst.gmlcol2,1);gmlsx=yyfplus(gmlsx,gmlgap);gml_Script_draw_hd_text_color(_inst,_other,gmlsx,gmlsy,_inst.gmlscores1[__yy_gml_array_check_index(1,_inst.gmlscores1)],_inst.gmlcol1,_inst.gmlcol1,_inst.gmlcol1,_inst.gmlcol1,1);gml_Script_draw_hd_text_color(_inst,_other,gmlsx,gmlsy2,_inst.gmlscores2[__yy_gml_array_check_index(1, _inst.gmlscores2)],_inst.gmlcol2,_inst.gmlcol2,_inst.gmlcol2,_inst.gmlcol2,1);gmlsx=yyfplus(gmlsx,gmlgap);gml_Script_draw_hd_text_color(_inst,_other,gmlsx,gmlsy,_inst.gmlscores1[__yy_gml_array_check_index(2,_inst.gmlscores1)],_inst.gmlcol1,_inst.gmlcol1,_inst.gmlcol1,_inst.gmlcol1,1);gml_Script_draw_hd_text_color(_inst,_other,gmlsx,gmlsy2,_inst.gmlscores2[__yy_gml_array_check_index(2,_inst.gmlscores2)],_inst.gmlcol2,_inst.gmlcol2,_inst.gmlcol2,_inst.gmlcol2,1);gmlsx=yyfplus(gmlsx,gmlgap);gml_Script_draw_hd_text_color(_inst, _other,gmlsx,gmlsy,_inst.gmlscores1[__yy_gml_array_check_index(3,_inst.gmlscores1)],_inst.gmlcol1,_inst.gmlcol1,_inst.gmlcol1,_inst.gmlcol1,1);gml_Script_draw_hd_text_color(_inst,_other,gmlsx,gmlsy2,_inst.gmlscores2[__yy_gml_array_check_index(3,_inst.gmlscores2)],_inst.gmlcol2,_inst.gmlcol2,_inst.gmlcol2,_inst.gmlcol2,1);gmlsx=yyfplus(gmlsx,gmlgap);draw_set_font(global.gmlfnt_flex);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmlsx),7),gmlsy,_inst.gmlscores1[__yy_gml_array_check_index(4, _inst.gmlscores1)],_inst.gmlcol1,_inst.gmlcol1,_inst.gmlcol1,_inst.gmlcol1,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmlsx),7),gmlsy2,_inst.gmlscores2[__yy_gml_array_check_index(4,_inst.gmlscores2)],_inst.gmlcol2,_inst.gmlcol2,_inst.gmlcol2,_inst.gmlcol2,1);var gmlsx1=yyfplus(__yy_gml_errCheck(gmlgx),9);var gmlsx2=yyfplus(__yy_gml_errCheck(gmlsx1),2);var ___sw1900___=_inst.gmlratings1[__yy_gml_array_check_index(0,_inst.gmlratings1)];var ___swc1901___=-1;if(yyCompareVal(___sw1900___, 1,g_GMLMathEpsilon,false)==0){___swc1901___=0;}else if(yyCompareVal(___sw1900___,2,g_GMLMathEpsilon,false)==0){___swc1901___=1;}else if(yyCompareVal(___sw1900___,3,g_GMLMathEpsilon,false)==0){___swc1901___=2;}else if(yyCompareVal(___sw1900___,4,g_GMLMathEpsilon,false)==0){___swc1901___=3;}else if(yyCompareVal(___sw1900___,5,g_GMLMathEpsilon,false)==0){___swc1901___=4;}else if(yyCompareVal(___sw1900___,6,g_GMLMathEpsilon,false)==0){___swc1901___=5;}else if(yyCompareVal(___sw1900___,7,g_GMLMathEpsilon,false)==0){ ___swc1901___=6;}else if(yyCompareVal(___sw1900___,8,g_GMLMathEpsilon,false)==0){___swc1901___=7;}else if(yyCompareVal(___sw1900___,9,g_GMLMathEpsilon,false)==0){___swc1901___=8;}else if(yyCompareVal(___sw1900___,10,g_GMLMathEpsilon,false)==0){___swc1901___=9;}switch(___swc1901___){case 0:{gmlsx2=yyfplus(gmlsx2,6);break;}case 1:{gmlsx2=yyfplus(gmlsx2,9);break;}case 2:{gmlsx2=yyfplus(gmlsx2,15);break;}case 3:{gmlsx2=yyfplus(gmlsx2,18);break;}case 4:{gmlsx2=yyfplus(gmlsx2,24);break;}case 5:{gmlsx2=yyfplus(gmlsx2, 27);break;}case 6:{gmlsx2=yyfplus(gmlsx2,30);break;}case 7:{gmlsx2=yyfplus(gmlsx2,36);break;}case 8:{gmlsx2=yyfplus(gmlsx2,39);break;}case 9:{gmlsx2=yyfplus(gmlsx2,45);break;}};draw_sprite_ext(_inst,YYASSET_REF(0x01000073),_inst.gmlratings1[__yy_gml_array_check_index(0,_inst.gmlratings1)],gmlsx1,yyfplus(__yy_gml_errCheck(gmlgy),35),1,1,0,global.gmlc_offense,1);draw_sprite_ext(_inst,YYASSET_REF(0x01000073),_inst.gmlratings1[__yy_gml_array_check_index(1,_inst.gmlratings1)],gmlsx2,yyfplus(__yy_gml_errCheck(gmlgy), 35),1,1,0,global.gmlc_defense,1);gmlsx2=yyfplus(__yy_gml_errCheck(gmlsx1),2);var ___sw1902___=_inst.gmlratings2[__yy_gml_array_check_index(0,_inst.gmlratings2)];var ___swc1903___=-1;if(yyCompareVal(___sw1902___,1,g_GMLMathEpsilon,false)==0){___swc1903___=0;}else if(yyCompareVal(___sw1902___,2,g_GMLMathEpsilon,false)==0){___swc1903___=1;}else if(yyCompareVal(___sw1902___,3,g_GMLMathEpsilon,false)==0){___swc1903___=2;}else if(yyCompareVal(___sw1902___,4,g_GMLMathEpsilon,false)==0){___swc1903___=3;}else if(yyCompareVal(___sw1902___, 5,g_GMLMathEpsilon,false)==0){___swc1903___=4;}else if(yyCompareVal(___sw1902___,6,g_GMLMathEpsilon,false)==0){___swc1903___=5;}else if(yyCompareVal(___sw1902___,7,g_GMLMathEpsilon,false)==0){___swc1903___=6;}else if(yyCompareVal(___sw1902___,8,g_GMLMathEpsilon,false)==0){___swc1903___=7;}else if(yyCompareVal(___sw1902___,9,g_GMLMathEpsilon,false)==0){___swc1903___=8;}else if(yyCompareVal(___sw1902___,10,g_GMLMathEpsilon,false)==0){___swc1903___=9;}switch(___swc1903___){case 0:{gmlsx2=yyfplus(gmlsx2,6); break;}case 1:{gmlsx2=yyfplus(gmlsx2,9);break;}case 2:{gmlsx2=yyfplus(gmlsx2,15);break;}case 3:{gmlsx2=yyfplus(gmlsx2,18);break;}case 4:{gmlsx2=yyfplus(gmlsx2,24);break;}case 5:{gmlsx2=yyfplus(gmlsx2,27);break;}case 6:{gmlsx2=yyfplus(gmlsx2,30);break;}case 7:{gmlsx2=yyfplus(gmlsx2,36);break;}case 8:{gmlsx2=yyfplus(gmlsx2,39);break;}case 9:{gmlsx2=yyfplus(gmlsx2,45);break;}};draw_sprite_ext(_inst,YYASSET_REF(0x01000073),_inst.gmlratings2[__yy_gml_array_check_index(0,_inst.gmlratings2)],gmlsx1,yyfplus(__yy_gml_errCheck(gmlgy), 78),1,1,0,global.gmlc_offense,1);draw_sprite_ext(_inst,YYASSET_REF(0x01000073),_inst.gmlratings2[__yy_gml_array_check_index(1,_inst.gmlratings2)],gmlsx2,yyfplus(__yy_gml_errCheck(gmlgy),78),1,1,0,global.gmlc_defense,1);}function gml_Object_obj_scoreboard_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlteamnames=__yy_gml_array_check(_inst.gmlteamnames,171690998);_inst.gmlteamnames[__yy_gml_array_check_index_set(2)]="";_inst.gmlscores1=__yy_gml_array_check(_inst.gmlscores1,1092762117); _inst.gmlscores1[__yy_gml_array_check_index_set(5)]="";_inst.gmlscores2=__yy_gml_array_check(_inst.gmlscores2,1779395014);_inst.gmlscores2[__yy_gml_array_check_index_set(5)]="";_inst.gmlratings1=__yy_gml_array_check(_inst.gmlratings1,1691664859);_inst.gmlratings1[__yy_gml_array_check_index_set(2)]=0;_inst.gmlratings2=__yy_gml_array_check(_inst.gmlratings2,1341755928);_inst.gmlratings2[__yy_gml_array_check_index_set(2)]=0;_inst.gmlcol1=new Long(4294967295,0,false);_inst.gmlcol2=new Long(4294967295, 0,false);}function gml_Object_obj_conference_Create_0(_inst,_other){if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){return;};if(yyfequal(_inst.gmlconference,(-1))){_inst.gmlconference=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyconference;};_inst.gmlwildcards=2;_inst.gmlplayoff12=gml_Script_s_playoffs_12(_inst,_other);if(!yyGetBool(_inst.gmlplayoff12)){_inst.gmlwildcards=3;};_inst.gmltext=gml_Script_s_get_string_conference(_inst,_other,_inst.gmlconference);_inst.gmlseedlist=ds_list_create(); _inst.gmllist_w=ds_list_create();_inst.gmllist_l=ds_list_create();_inst.gmllist_t=ds_list_create();var gmli=1;for(;yyfless(gmli,17);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlteam=gml_Script_s_get_team_by_seed(_inst,_other,_inst.gmlconference,gmli);var gmltxt=string_upper(gml_Script_s_get_team_name_by_id(_inst,_other,ds_map_find_value(gmlteam,"uid")));if(yyfequal(ds_map_find_value(gmlteam,"uid"),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id)){ gmltxt=yyfplus("yel_",__yy_gml_errCheck(gmltxt));};ds_list_add(_inst.gmlseedlist,gmltxt);ds_list_add(_inst.gmllist_w,string(ds_map_find_value(gmlteam,"wins")));ds_list_add(_inst.gmllist_l,string(ds_map_find_value(gmlteam,"losses")));ds_list_add(_inst.gmllist_t,string(ds_map_find_value(gmlteam,"ties")));}};gml_Script_slog(_inst,_other,"obj_conference.created");}function gml_Object_obj_conference_Destroy_0(_inst,_other){gml_Script_slog(_inst,_other,"obj_conference.destroy");ds_list_destroy(_inst.gmlseedlist); ds_list_destroy(_inst.gmllist_w);ds_list_destroy(_inst.gmllist_l);ds_list_destroy(_inst.gmllist_t);_inst.gmlseedlist=(-1);_inst.gmllist_w=(-1);_inst.gmllist_l=(-1);_inst.gmllist_t=(-1);}function gml_Object_obj_conference_Draw_64(_inst,_other){if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){return;};if(yyGetBool(is_undefined(_inst.gmltext))){return;};var gmlw=_inst.sprite_width;var gmlh=_inst.sprite_height;draw_sprite(_inst,YYASSET_REF(0x0100009C),0,_inst.x,_inst.y);draw_sprite_ext(_inst,YYASSET_REF(0x0100009C), 2,yyfplus(__yy_gml_errCheck(_inst.x),4),_inst.y,yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(_inst.sprite_width),8)),4),1,0,16777215,1);draw_sprite(_inst,YYASSET_REF(0x0100009C),1,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(gmlw)),4),_inst.y);draw_sprite_ext(_inst,YYASSET_REF(0x0100009C),3,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(gmlw)),2),yyfplus(__yy_gml_errCheck(_inst.y),4),1,yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(_inst.sprite_height), 8)),4),0,16777215,1);draw_sprite(_inst,YYASSET_REF(0x0100009C),0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(gmlw)),4),yyfminus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(gmlh)),4));draw_sprite_ext(_inst,YYASSET_REF(0x0100009C),2,yyfplus(__yy_gml_errCheck(_inst.x),4),yyfminus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(gmlh)),2),yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(_inst.sprite_width),8)),4),1,0,16777215,1);draw_sprite(_inst,YYASSET_REF(0x0100009C), 1,_inst.x,yyfminus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(gmlh)),4));draw_sprite_ext(_inst,YYASSET_REF(0x0100009C),3,_inst.x,yyfplus(__yy_gml_errCheck(_inst.y),4),1,yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(_inst.sprite_height),8)),4),0,16777215,1);draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gmltitle=string_upper(_inst.gmltext);var gmltx=_inst.x;var gmlty=_inst.y;var gmlsw=yyfplus(1,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_width(_inst, _other,gmltitle)),2)));var gmlsh=yyfplus(1,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_height(_inst,_other,gmltitle)),2)));gmltx=yyfplus(gmltx,yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2));if(yyfnotequal(gmltitle,"")){{draw_rectangle_color(yyfminus(yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),1),yyfminus(yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),1),yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),yyfplus(__yy_gml_errCheck(gmlty), __yy_gml_errCheck(gmlsh)),global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmltitle);};};var gmltxt=string_upper(gml_Script_s_str(_inst,_other,"ui_DivisionLeaders"));var gmlth=gml_Script_string_hd_height(_inst,_other,gmltxt);if(!yyGetBool(_inst.gmlplayoff12)){gmlth=yyfminus(gmlth,1);};gmltx=yyfplus(__yy_gml_errCheck(_inst.x),12);_inst.gmltx2=yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)), 60);gmlty=yyfplus(gmlty,gmlth);draw_set_halign(0);gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,1);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmltxt);gmlty=yyfplus(gmlty,gmlth);var gmli=0;for(;yyfless(gmli,4);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{draw_set_halign(0);gmltxt=ds_list_find_value(_inst.gmlseedlist,gmli);if(yyGetBool(string_count("yel_", gmltxt))){gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),4),gmlty,string_replace(gmltxt,"yel_",""),global.gmlc_primary,global.gmlc_primary,global.gmlc_primary,global.gmlc_primary,1);}else {gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),4),gmlty,gmltxt);};draw_set_halign(1);gmltxt=ds_list_find_value(_inst.gmllist_w,gmli);gml_Script_draw_hd_text(_inst,_other,_inst.gmltx2,gmlty,gmltxt);gmltxt=ds_list_find_value(_inst.gmllist_l,gmli);gml_Script_draw_hd_text(_inst, _other,yyfplus(__yy_gml_errCheck(_inst.gmltx2),20),gmlty,gmltxt);gmltxt=ds_list_find_value(_inst.gmllist_t,gmli);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(_inst.gmltx2),40),gmlty,gmltxt);gmlty=yyfplus(gmlty,gmlth);}};if(!yyGetBool(_inst.gmlplayoff12)){gmlty=yyfplus(gmlty,1);};draw_set_halign(0);gmltxt=string_upper(gml_Script_s_str(_inst,_other,"ui_WildCard"));gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt, 0,0,0,0,1);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmltxt);gmlty=yyfplus(gmlty,gmlth);var gmli=4;for(;yyfless(gmli,yyfplus(4,__yy_gml_errCheck(_inst.gmlwildcards)));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{draw_set_halign(0);gmltxt=ds_list_find_value(_inst.gmlseedlist,gmli);if(yyGetBool(string_count("yel_",gmltxt))){gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),4),gmlty,string_replace(gmltxt, "yel_",""),global.gmlc_primary,global.gmlc_primary,global.gmlc_primary,global.gmlc_primary,1);}else {gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),4),gmlty,gmltxt);};draw_set_halign(1);gmltxt=ds_list_find_value(_inst.gmllist_w,gmli);gml_Script_draw_hd_text(_inst,_other,_inst.gmltx2,gmlty,gmltxt);gmltxt=ds_list_find_value(_inst.gmllist_l,gmli);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(_inst.gmltx2),20),gmlty,gmltxt);gmltxt=ds_list_find_value(_inst.gmllist_t, gmli);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(_inst.gmltx2),40),gmlty,gmltxt);gmlty=yyfplus(gmlty,gmlth);}};if(!yyGetBool(_inst.gmlplayoff12)){gmlty=yyfplus(gmlty,1);};draw_set_halign(0);gmltxt=string_upper(gml_Script_s_str(_inst,_other,"ui_InTheHunt"));gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,1);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmltxt);gmlty=yyfplus(gmlty,gmlth);var gmli=yyfplus(4, __yy_gml_errCheck(_inst.gmlwildcards));for(;yyfless(gmli,ds_list_size(_inst.gmlseedlist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{draw_set_halign(0);gmltxt=ds_list_find_value(_inst.gmlseedlist,gmli);if(yyGetBool(string_count("yel_",gmltxt))){gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),4),gmlty,string_replace(gmltxt,"yel_",""),global.gmlc_primary,global.gmlc_primary,global.gmlc_primary,global.gmlc_primary, 1);}else {gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),4),gmlty,gmltxt);};draw_set_halign(1);gmltxt=ds_list_find_value(_inst.gmllist_w,gmli);gml_Script_draw_hd_text(_inst,_other,_inst.gmltx2,gmlty,gmltxt);gmltxt=ds_list_find_value(_inst.gmllist_l,gmli);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(_inst.gmltx2),20),gmlty,gmltxt);gmltxt=ds_list_find_value(_inst.gmllist_t,gmli);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(_inst.gmltx2),40), gmlty,gmltxt);gmlty=yyfplus(gmlty,gmlth);if(yyfgreater(gmlty,yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(_inst.sprite_height),8))))){break;};}};}function gml_Object_obj_conference_Draw_0(_inst,_other){}function gml_Object_obj_conference_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltext=gml_Script_s_str(_inst,_other,"");_inst.gmlconference=(-1);}function gml_Object_obj_matchline_Create_0(_inst,_other){gml_Script_s_obj_matchLine_create(_inst,_other); }function gml_Object_obj_matchline_Step_0(_inst,_other){gml_Script_s_obj_matchLine_step(_inst,_other);}function gml_Object_obj_matchline_Draw_0(_inst,_other){gml_Script_s_obj_matchLine_draw(_inst,_other);}function gml_Object_obj_matchline_Draw_64(_inst,_other){gml_Script_s_obj_matchLine_draw_gui(_inst,_other);}function gml_Object_obj_matchline_Gesture_69(_inst,_other){gml_Script_s_obj_matchLine_global_flick(_inst,_other);}function gml_Object_obj_matchline_PreCreate_0(_inst,_other){event_inherited(_inst, _other);_inst.gmlflick_lineX=0;}function gml_Object_obj_headshot_Create_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlskin=1;_inst.gmlface_set=0;_inst.gmlface_x=(-1);_inst.gmlface_y=(-1);_inst.gmlhelmet=__yy_gml_array_check(_inst.gmlhelmet,3666812894);_inst.gmlhelmet[__yy_gml_array_check_index_set(2)]=0;_inst.gmlshirt=__yy_gml_array_check(_inst.gmlshirt,1027333011);_inst.gmlshirt[__yy_gml_array_check_index_set(2)]=0;_inst.gmlpants=__yy_gml_array_check(_inst.gmlpants,3194782232);_inst.gmlpants[__yy_gml_array_check_index_set(2)]=0; _inst.gmlpants_b=__yy_gml_array_check(_inst.gmlpants_b,1445469295);_inst.gmlpants_b[__yy_gml_array_check_index_set(2)]=0;gml_Script_s_set_up_uniform_profile(_inst,_other,(-4));}function gml_Object_obj_headshot_Step_0(_inst,_other){if((yyGetBool(!yyGetBool(_inst.gmlactive)))||(yyGetBool(!yyGetBool(_inst.visible)))){return;};if((yyGetBool(_inst.layer))&&(yyGetBool(!yyGetBool(layer_get_visible(_inst.layer))))){return;};{var __yy__v2213=GetWithArray(YYASSET_REF(0x0000004F));for(var __yy__v2214 in __yy__v2213){ if(!__yy__v2213.hasOwnProperty(__yy__v2214))continue;var __yy__v2215=__yy__v2213[__yy__v2214];if(yyfless(__yy__v2215.depth,_inst.depth)){return;};}};{var __yy__v2216=GetWithArray(YYASSET_REF(0x00000048));for(var __yy__v2217 in __yy__v2216){if(!__yy__v2216.hasOwnProperty(__yy__v2217))continue;var __yy__v2218=__yy__v2216[__yy__v2217];if((yyGetBool(__yy__v2218.gmlediting))&&(yyGetBool(!yyGetBool(__yy__v2218.gmlcustom_keyboard)))){return;};}};_inst.gmlhover=false;if(yyGetBool(global.gmlgamepad)){{_inst.gmlclicked=false; if((yyGetBool((yyGetBool(yyfequal(yyInst(_inst,_other,global.gmlgp).gmlui_selected,_inst.id)))&&(yyGetBool(gamepad_button_check(yyInst(_inst,_other,global.gmlgp).gmlslot,global.gmlgp_select)))))||(yyGetBool(gamepad_button_check(yyInst(_inst,_other,global.gmlgp).gmlslot,_inst.gmlgp_mapped_button)))||(yyGetBool(gamepad_button_check(yyInst(_inst,_other,global.gmlgp).gmlslot,_inst.gmlgp_mapped_hidden)))){{_inst.gmlclicked=true;yyInst(_inst,_other,global.gmlgp).gmlui_selected=_inst.id;};};if((yyGetBool(yyfequal(yyInst(_inst, _other,global.gmlgp).gmlui_selected,_inst.id)))&&(yyGetBool((yyGetBool(gamepad_button_check_released(yyInst(_inst,_other,global.gmlgp).gmlslot,global.gmlgp_select)))||(yyGetBool(gamepad_button_check_released(yyInst(_inst,_other,global.gmlgp).gmlslot,_inst.gmlgp_mapped_button)))||(yyGetBool(gamepad_button_check_released(yyInst(_inst,_other,global.gmlgp).gmlslot,_inst.gmlgp_mapped_hidden)))))){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))){ audio_play_sound(YYASSET_REF(0x02000006),1,false);};gml_Script_s_save_last_selected(_inst,_other);script_execute(_inst,_other,_inst.gmlonClickAction);};};};}else {if(yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other))){{if(yyGetBool(point_in_rectangle(device_mouse_x_to_gui(0),device_mouse_y_to_gui(0),_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height))))){{_inst.gmlhover=true;};};if(yyGetBool(_inst.gmlhover)){ {if(yyGetBool(mouse_check_button(1))){{_inst.gmlclicked=true;};};if((yyGetBool(_inst.gmlclicked))&&(yyGetBool(mouse_check_button_released(1)))){{if(yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_soundfx"))){audio_play_sound(YYASSET_REF(0x02000006),1,false);};script_execute(_inst,_other,_inst.gmlonClickAction);_inst.gmlclicked=false;};};};}else {{_inst.gmlclicked=false;};};};};};}function gml_Object_obj_headshot_Draw_0(_inst,_other){}function gml_Object_obj_headshot_Draw_64(_inst, _other){var gmlbx=yyfplus(__yy_gml_errCheck(_inst.x),2);var gmlby=yyfminus(__yy_gml_errCheck(_inst.y),2);if((yyGetBool(_inst.gmlclicked))||(yyGetBool(!yyGetBool(_inst.gmlactive)))){{gmlbx=_inst.x;gmlby=_inst.y;};};draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y,1,1,0,global.gmlc_shadow,1);var gmlpos_col=global.gmlc_headcoach;draw_rectangle_color(yyfplus(__yy_gml_errCheck(gmlbx),2),yyfplus(__yy_gml_errCheck(gmlby),2),yyfminus(yyfplus(__yy_gml_errCheck(gmlbx),__yy_gml_errCheck(_inst.sprite_width)), 3),yyfminus(yyfplus(__yy_gml_errCheck(gmlby),__yy_gml_errCheck(_inst.sprite_height)),3),gmlpos_col,gmlpos_col,gmlpos_col,gmlpos_col,0);if(yyGetBool(gml_Script_s_is_ui_selected(_inst,_other))){draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,gmlbx,gmlby,1,1,0,gml_Script_s_ui_selected_color(_inst,_other),1);}else {draw_sprite(_inst,_inst.sprite_index,_inst.image_index,gmlbx,gmlby);};shader_set(YYASSET_REF(0x0A000000));shader_set_uniform_f(global.gmlcolorHelmet,1,0,0);shader_set_uniform_f(global.gmlcolorShirt, 0,1,0);shader_set_uniform_f(global.gmlcolorPants,1,0,1);shader_set_uniform_f(global.gmlreplaceHelmet,_inst.gmlhelmet[__yy_gml_array_check_index(0,_inst.gmlhelmet)],_inst.gmlhelmet[__yy_gml_array_check_index(1,_inst.gmlhelmet)],_inst.gmlhelmet[__yy_gml_array_check_index(2,_inst.gmlhelmet)]);shader_set_uniform_f(global.gmlreplaceShirt,_inst.gmlshirt[__yy_gml_array_check_index(0,_inst.gmlshirt)],_inst.gmlshirt[__yy_gml_array_check_index(1,_inst.gmlshirt)],_inst.gmlshirt[__yy_gml_array_check_index(2, _inst.gmlshirt)]);shader_set_uniform_f(global.gmlreplacePants,_inst.gmlpants[__yy_gml_array_check_index(0,_inst.gmlpants)],_inst.gmlpants[__yy_gml_array_check_index(1,_inst.gmlpants)],_inst.gmlpants[__yy_gml_array_check_index(2,_inst.gmlpants)]);var ___sw1916___=_inst.gmlcoach_heads;var ___swc1917___=-1;if(yyCompareVal(___sw1916___,0,g_GMLMathEpsilon,false)==0){___swc1917___=0;}else if(yyCompareVal(___sw1916___,1,g_GMLMathEpsilon,false)==0){___swc1917___=1;}switch(___swc1917___){case 0:{var ___sw1918___=_inst.gmlskin; var ___swc1919___=-1;if(yyCompareVal(___sw1918___,2,g_GMLMathEpsilon,false)==0){___swc1919___=0;}else if(yyCompareVal(___sw1918___,1,g_GMLMathEpsilon,false)==0){___swc1919___=1;}else if(yyCompareVal(___sw1918___,0,g_GMLMathEpsilon,false)==0){___swc1919___=2;}switch(___swc1919___){case 0:{var ___sw1920___=_inst.gmlface_y;var ___swc1921___=-1;if(yyCompareVal(___sw1920___,0,g_GMLMathEpsilon,false)==0){___swc1921___=0;}else if(yyCompareVal(___sw1920___,1,g_GMLMathEpsilon,false)==0){___swc1921___=1;}else if(yyCompareVal(___sw1920___, 2,g_GMLMathEpsilon,false)==0){___swc1921___=2;}switch(___swc1921___){case 0:{draw_sprite_ext(_inst,gml_Script_s_face_from_set_direct(_inst,_other,YYASSET_REF(0x010000C6),_inst.gmlface_set),_inst.gmlface_x,yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}case 1:{draw_sprite_ext(_inst,gml_Script_s_face_from_set_direct(_inst,_other,YYASSET_REF(0x010000C8),_inst.gmlface_set),_inst.gmlface_x,yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby), 3),1,1,0,16777215,1);break;}case 2:{draw_sprite_ext(_inst,gml_Script_s_face_from_set_direct(_inst,_other,YYASSET_REF(0x010000C9),_inst.gmlface_set),_inst.gmlface_x,yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}};break;}case 1:{var ___sw1922___=_inst.gmlface_y;var ___swc1923___=-1;if(yyCompareVal(___sw1922___,0,g_GMLMathEpsilon,false)==0){___swc1923___=0;}switch(___swc1923___){case 0:{draw_sprite_ext(_inst,gml_Script_s_face_from_set_direct(_inst,_other, YYASSET_REF(0x010000CA),_inst.gmlface_set),_inst.gmlface_x,yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}};break;}case 2:{var ___sw1924___=_inst.gmlface_y;var ___swc1925___=-1;if(yyCompareVal(___sw1924___,0,g_GMLMathEpsilon,false)==0){___swc1925___=0;}else if(yyCompareVal(___sw1924___,1,g_GMLMathEpsilon,false)==0){___swc1925___=1;}else if(yyCompareVal(___sw1924___,2,g_GMLMathEpsilon,false)==0){___swc1925___=2;}else if(yyCompareVal(___sw1924___,3,g_GMLMathEpsilon, false)==0){___swc1925___=3;}else if(yyCompareVal(___sw1924___,4,g_GMLMathEpsilon,false)==0){___swc1925___=4;}else if(yyCompareVal(___sw1924___,5,g_GMLMathEpsilon,false)==0){___swc1925___=5;}else if(yyCompareVal(___sw1924___,6,g_GMLMathEpsilon,false)==0){___swc1925___=6;}else if(yyCompareVal(___sw1924___,7,g_GMLMathEpsilon,false)==0){___swc1925___=7;}else if(yyCompareVal(___sw1924___,8,g_GMLMathEpsilon,false)==0){___swc1925___=8;}switch(___swc1925___){case 0:{draw_sprite_ext(_inst,gml_Script_s_face_from_set_direct(_inst, _other,YYASSET_REF(0x010000CB),_inst.gmlface_set),_inst.gmlface_x,yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}case 1:{draw_sprite_ext(_inst,gml_Script_s_face_from_set_direct(_inst,_other,YYASSET_REF(0x010000CC),_inst.gmlface_set),_inst.gmlface_x,yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}case 2:{draw_sprite_ext(_inst,gml_Script_s_face_from_set_direct(_inst,_other,YYASSET_REF(0x010000CD),_inst.gmlface_set), _inst.gmlface_x,yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}case 3:{draw_sprite_ext(_inst,gml_Script_s_face_from_set_direct(_inst,_other,YYASSET_REF(0x010000CE),_inst.gmlface_set),_inst.gmlface_x,yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}case 4:{draw_sprite_ext(_inst,gml_Script_s_face_from_set_direct(_inst,_other,YYASSET_REF(0x010000CF),_inst.gmlface_set),_inst.gmlface_x,yyfplus(__yy_gml_errCheck(gmlbx), 16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}case 5:{draw_sprite_ext(_inst,gml_Script_s_face_from_set_direct(_inst,_other,YYASSET_REF(0x010000D0),_inst.gmlface_set),_inst.gmlface_x,yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}case 6:{draw_sprite_ext(_inst,gml_Script_s_face_from_set_direct(_inst,_other,YYASSET_REF(0x010000D0),_inst.gmlface_set),_inst.gmlface_x,yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby), 3),1,1,0,16777215,1);break;}case 7:{draw_sprite_ext(_inst,gml_Script_s_face_from_set_direct(_inst,_other,YYASSET_REF(0x010000D1),_inst.gmlface_set),_inst.gmlface_x,yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}case 8:{draw_sprite_ext(_inst,gml_Script_s_face_from_set_direct(_inst,_other,YYASSET_REF(0x010000D2),_inst.gmlface_set),_inst.gmlface_x,yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}};break; }};break;}case 1:{var ___sw1926___=_inst.gmlface_y;var ___swc1927___=-1;if(yyCompareVal(___sw1926___,0,g_GMLMathEpsilon,false)==0){___swc1927___=0;}else if(yyCompareVal(___sw1926___,1,g_GMLMathEpsilon,false)==0){___swc1927___=1;}else if(yyCompareVal(___sw1926___,2,g_GMLMathEpsilon,false)==0){___swc1927___=2;}else if(yyCompareVal(___sw1926___,3,g_GMLMathEpsilon,false)==0){___swc1927___=3;}switch(___swc1927___){case 0:{draw_sprite_ext(_inst,YYASSET_REF(0x010000D3),_inst.gmlface_x,yyfplus(__yy_gml_errCheck(gmlbx), 16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}case 1:{draw_sprite_ext(_inst,YYASSET_REF(0x010000D4),_inst.gmlface_x,yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}case 2:{draw_sprite_ext(_inst,YYASSET_REF(0x010000D5),_inst.gmlface_x,yyfplus(__yy_gml_errCheck(gmlbx),16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}case 3:{draw_sprite_ext(_inst,YYASSET_REF(0x010000D6),_inst.gmlface_x,yyfplus(__yy_gml_errCheck(gmlbx), 16),yyfplus(__yy_gml_errCheck(gmlby),3),1,1,0,16777215,1);break;}};break;}};shader_reset();}function gml_Object_obj_headshot_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlonClickAction=kgml_Script_btn_click_PlayerProfile;_inst.gmlhover=false;_inst.gmlclicked=false;_inst.gmlflash_time=0;_inst.gmlactive=true;_inst.gmltutorial_flash=false;_inst.gmlflash_attitude=false;_inst.gmlold_condition=(-99);_inst.gmlcoach_heads=false;}function gml_Object_obj_attribute_Draw_0(_inst,_other){}function gml_Object_obj_attribute_Draw_64(_inst, _other){draw_set_font(global.gmlfnt_small_flex);draw_set_halign(0);var gmltx=_inst.x;var gmlty=yyfminus(__yy_gml_errCheck(_inst.y),8);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(_inst.gmltitle));var gmlbw=yyfminus(__yy_gml_errCheck(_inst.sprite_width),5);var gmlbh=yyfminus(__yy_gml_errCheck(_inst.sprite_height),3);var gmlprc=yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlbw),100)),__yy_gml_errCheck(_inst.gmlpercent));gmlprc=clamp(gmlprc,1,gmlbw);var gmlprc_buff=yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlbw), 100)),__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(_inst.gmlpercent),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.gmlbuff),10)))));gmlprc_buff=clamp(gmlprc_buff,1,gmlbw);var gmlpot=yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gmlbw),100)),__yy_gml_errCheck(_inst.gmlpotential));gmlpot=clamp(gmlpot,1,gmlbw);draw_sprite_ext(_inst,_inst.sprite_index,1,_inst.x,_inst.y,1,1,0,global.gmlc_backfill,1);var gmlcol=global.gmlc_primary;draw_rectangle_color(yyfplus(__yy_gml_errCheck(_inst.x),2),yyfplus(__yy_gml_errCheck(_inst.y), 2),yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),2),__yy_gml_errCheck(gmlpot)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(gmlbh)),gmlcol,gmlcol,gmlcol,gmlcol,0);draw_rectangle_color(yyfplus(__yy_gml_errCheck(_inst.x),3),yyfplus(__yy_gml_errCheck(_inst.y),3),yyfminus(yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),3),__yy_gml_errCheck(gmlpot)),2),yyfminus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(gmlbh)),1),global.gmlc_backfill,global.gmlc_backfill,global.gmlc_backfill,global.gmlc_backfill, 0);if(yyGetBool(_inst.gmlflash)){{var gmla=yyfplus(1,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),160))),2)));draw_set_alpha(gmla);};};if((yyGetBool(_inst.gmlbuff))&&(yyGetBool(yyfless(_inst.gmlpercent,100)))){{draw_rectangle_color(yyfplus(__yy_gml_errCheck(_inst.x),2),yyfplus(__yy_gml_errCheck(_inst.y),2),yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),2),__yy_gml_errCheck(gmlprc_buff)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(gmlbh)), _inst.gmlcol_buff,_inst.gmlcol_buff,_inst.gmlcol_buff,_inst.gmlcol_buff,0);draw_set_halign(1);draw_set_valign(1);draw_text_color(yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(gmlprc_buff)),7),yyfplus(__yy_gml_errCheck(_inst.y),9),"+1",0,0,0,0,0.4);};};draw_rectangle_color(yyfplus(__yy_gml_errCheck(_inst.x),2),yyfplus(__yy_gml_errCheck(_inst.y),2),yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),2),__yy_gml_errCheck(gmlprc)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(gmlbh)),gmlcol, gmlcol,gmlcol,gmlcol,0);draw_set_alpha(1);}function gml_Object_obj_attribute_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltitle="Title";_inst.gmlpercent=0;_inst.gmlpotential=0;_inst.gmlflash=false;_inst.gmlbuff=0;_inst.gmlcol_buff=new Long(4294967295,0,false);}function gml_Object_obj_xp_player_Draw_0(_inst,_other){}function gml_Object_obj_xp_player_Draw_64(_inst,_other){draw_self(_inst);draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gmltx=_inst.x;var gmlty=_inst.y;var gmlsw=yyfplus(2, __yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,_inst.gmltitle)),2)));var gmlsh=yyfplus(1,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_height(_inst,_other,_inst.gmltitle)),2)));gmltx=yyfplus(gmltx,yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2));draw_rectangle_color(yyfminus(yyfminus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),2),yyfminus(yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),1),yyfplus(__yy_gml_errCheck(gmltx), __yy_gml_errCheck(gmlsw)),yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(_inst.gmltitle));draw_set_halign(2);gmltx=yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),8);gmlty=yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_height),2)));var gmlbw=yyfminus(__yy_gml_errCheck(_inst.sprite_width), 16);var gmlprc=yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlbw),4)),100)),__yy_gml_errCheck(_inst.gmlpercent));gmlprc=clamp(gmlprc,1,gmlbw);draw_rectangle_color(yyfplus(__yy_gml_errCheck(_inst.x),8),yyfplus(__yy_gml_errCheck(_inst.y),8),yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),8),__yy_gml_errCheck(gmlbw)),yyfplus(__yy_gml_errCheck(_inst.y),24),global.gmlc_backfill,global.gmlc_backfill,global.gmlc_backfill,global.gmlc_backfill,0);draw_rectangle_color(yyfplus(__yy_gml_errCheck(_inst.x), 10),yyfplus(__yy_gml_errCheck(_inst.y),10),yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),10),__yy_gml_errCheck(gmlprc)),yyfplus(__yy_gml_errCheck(_inst.y),22),global.gmlc_primary,global.gmlc_primary,global.gmlc_primary,global.gmlc_primary,0);}function gml_Object_obj_xp_player_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltitle="Title";_inst.gmlpercent=0;}function gml_Object_obj_salarycap_Create_0(_inst,_other){_inst.gmlcreation_time=g_pBuiltIn.get_current_time();if(yyGetBool(gml_Script_s_is_co_mode(_inst, _other))){{_inst.gmltitle=yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_ScolarshipFund"))," "),__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrecruitment_credits))),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"sla_Thousand")))," / "),__yy_gml_errCheck(string(gml_Script_recruitment_credits_cap_total(_inst,_other)))),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"sla_Thousand")));_inst.gmlpercent=yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlrecruitment_credits),__yy_gml_errCheck(gml_Script_recruitment_credits_cap_total(_inst,_other)))),100);};}else {{_inst.gmlcurrent_salary=gml_Script_s_get_salary_total(_inst,_other);_inst.gmlmax_salary=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsalary_cap),__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlboost_salary_cap));_inst.gmlpercent=yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.gmlcurrent_salary), __yy_gml_errCheck(_inst.gmlmax_salary))),100);_inst.gmltitle=yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_SalaryCap"))," "),__yy_gml_errCheck(string(_inst.gmlcurrent_salary))),"m / "),__yy_gml_errCheck(string(_inst.gmlmax_salary))),"m");};};if(yyfgreater(_inst.gmlpercent,100)){_inst.gmlpercent=100;}else {_inst.gmlcolour=global.gmlc_primary;};}function gml_Object_obj_salarycap_Draw_0(_inst,_other){}function gml_Object_obj_salarycap_Draw_64(_inst,_other){ draw_self(_inst);draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gmltx=_inst.x;var gmlty=_inst.y;var gmlsw=yyfplus(2,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,_inst.gmltitle)),2)));var gmlsh=yyfplus(1,__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_height(_inst,_other,_inst.gmltitle)),2)));gmltx=yyfplus(gmltx,yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2));draw_rectangle_color(yyfminus(yyfminus(__yy_gml_errCheck(gmltx), __yy_gml_errCheck(gmlsw)),2),yyfminus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),yyfplus(__yy_gml_errCheck(gmltx),__yy_gml_errCheck(gmlsw)),yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(gmlsh)),global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(_inst.gmltitle));{var gmlbw=yyfminus(__yy_gml_errCheck(_inst.sprite_width),16);var gmlprc=yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlbw), 4)),100)),__yy_gml_errCheck(_inst.gmlpercent));gmlprc=clamp(gmlprc,1,gmlbw);draw_rectangle_color(yyfplus(__yy_gml_errCheck(_inst.x),8),yyfplus(__yy_gml_errCheck(_inst.y),8),yyfplus(yyfplus(__yy_gml_errCheck(_inst.x),8),__yy_gml_errCheck(gmlbw)),yyfplus(__yy_gml_errCheck(_inst.y),24),global.gmlc_backfill,global.gmlc_backfill,global.gmlc_backfill,global.gmlc_backfill,0);draw_rectangle_color(yyfplus(__yy_gml_errCheck(_inst.x),10),yyfplus(__yy_gml_errCheck(_inst.y),10),yyfplus(yyfplus(__yy_gml_errCheck(_inst.x), 10),__yy_gml_errCheck(gmlprc)),yyfplus(__yy_gml_errCheck(_inst.y),22),_inst.gmlcolour,_inst.gmlcolour,_inst.gmlcolour,_inst.gmlcolour,0);};}function gml_Object_obj_salarycap_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlcreation_time=0;_inst.gmltitle="Title";_inst.gmlcurrent_salary=0;_inst.gmlmax_salary=0;_inst.gmlpercent=0;_inst.gmlcolour=255;}function gml_Object_obj_notification_Create_0(_inst,_other){_inst.x=(-1000);_inst.y=1000;}function gml_Object_obj_notification_Alarm_0(_inst, _other){(g_yyPrePostObject__=_inst.gmlstep,_inst.gmlstep=(g_yyPrePostObject__ instanceof Long?_inst.gmlstep.add(1):++_inst.gmlstep),g_yyPrePostObject__);_inst.alarm=__yy_gml_array_check(_inst.alarm,1584050178);_inst.alarm[__yy_gml_array_check_index_set(0)]=_inst.gmldelay;}function gml_Object_obj_notification_Step_0(_inst,_other){if(!yyGetBool(_inst.visible)){return;};var ___sw1930___=_inst.gmlstep;var ___swc1931___=-1;if(yyCompareVal(___sw1930___,0,g_GMLMathEpsilon,false)==0){___swc1931___=0;}else if(yyCompareVal(___sw1930___, 1,g_GMLMathEpsilon,false)==0){___swc1931___=1;}else if(yyCompareVal(___sw1930___,2,g_GMLMathEpsilon,false)==0){___swc1931___=2;}switch(___swc1931___){case 0:{if(yyfequal(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.y)),0)){{draw_set_font(global.gmlfnt_small_flex);var gmltxtw=gml_Script_string_hd_width_ext(_inst,_other,_inst.gmltext,(-1),_inst.gmlmsg_width);var gmltitlew=gml_Script_string_hd_width_ext(_inst,_other,_inst.gmltitle,(-1),_inst.gmlmsg_width);if(yyfgreater(gmltitlew,gmltxtw)){ gmltxtw=gmltitlew;};_inst.x=yyfplus(22,__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmltxtw),0.5)));_inst.y=display_get_gui_height();};};_inst.y=yyfminus(_inst.y,2);if(yyfless(_inst.y,yyfminus(yyfminus(__yy_gml_errCheck(display_get_gui_height()),2),__yy_gml_errCheck(gml_Script_string_hd_height_ext(_inst,_other,_inst.gmltext,(-1),_inst.gmlmsg_width))))){{_inst.alarm=__yy_gml_array_check(_inst.alarm,1584050178);_inst.alarm[__yy_gml_array_check_index_set(0)]=_inst.gmldelay;(g_yyPrePostObject__=_inst.gmlstep, _inst.gmlstep=(g_yyPrePostObject__ instanceof Long?_inst.gmlstep.add(1):++_inst.gmlstep),g_yyPrePostObject__);};};break;}case 1:{break;}case 2:{_inst.y=yyfplus(_inst.y,4);if(yyfgreater(_inst.y,yyfplus(__yy_gml_errCheck(display_get_gui_height()),32))){{{var __yy__v2219=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v2220 in __yy__v2219){if(!__yy__v2219.hasOwnProperty(__yy__v2220))continue;var __yy__v2221=__yy__v2219[__yy__v2220];{ds_list_delete(__yy__v2221.gmllist_notifications,0);var gmlsz=ds_list_size(__yy__v2221.gmllist_notifications); if(yyfgreater(gmlsz,0)){{gml_Script_slog(__yy__v2221,_inst,yyfplus("Notifications remaining = ",__yy_gml_errCheck(string(gmlsz))));var gmlntf=ds_list_find_value(__yy__v2221.gmllist_notifications,0);yyInst(_inst,_other,gmlntf).visible=true;};};}}};instance_destroy(_inst);};};break;}};}function gml_Object_obj_notification_Draw_64(_inst,_other){event_inherited(_inst,_other);}function gml_Object_obj_notification_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmldelay=150;_inst.gmlstep=0; }function gml_Object_obj_hof_achievements_Create_0(_inst,_other){if(yyGetBool(_inst.gmluse_player_awards)){{_inst.gmltitle=gml_Script_s_str(_inst,_other,"ui_CurriculumVitae");_inst.gmlach_list=gml_Script_s_get_filtered_achievements(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_cv);};}else {{_inst.gmltitle=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Achievements"))," "),__yy_gml_errCheck(string(gml_Script_s_get_achievement_percentage(_inst,_other)))), "%");_inst.gmlach_list=gml_Script_s_get_filtered_achievements(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlachievements);};};_inst.gmllistsize=array_length(_inst.gmlach_list);draw_set_font(global.gmlfnt_small_flex);_inst.gmltxt_h=gml_Script_string_hd_height(_inst,_other,_inst.gmltitle);_inst.gmlclampsize=yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy_gml_errCheck(-__yy_gml_errCheck(_inst.gmllistsize))),__yy_gml_errCheck(_inst.gmltxt_h))),__yy_gml_errCheck(_inst.sprite_height)); _inst.gmlactive=true;}function gml_Object_obj_hof_achievements_Step_0(_inst,_other){if((yyGetBool(global.gmlgamepad))&&(yyGetBool(yyfequal(yyInst(_inst,_other,global.gmlgp).gmlui_selected,_inst.id)))&&(yyGetBool(_inst.gmlactive))){{if(yyGetBool(yyInst(_inst,_other,global.gmlgp).gmltriggerl)){_inst.gmlflick_lineY=yyfplus(_inst.gmlflick_lineY,0.5);}else {if(yyGetBool(yyInst(_inst,_other,global.gmlgp).gmltriggerr)){_inst.gmlflick_lineY=yyfminus(_inst.gmlflick_lineY,0.5);}else {_inst.gmlflick_lineY=yyfminus(_inst.gmlflick_lineY, yyftime(__yy_gml_errCheck(yyInst(_inst,_other,global.gmlgp).gmlaxisr_v),0.5));};};};};if(yyGetBool(abs(_inst.gmlflick_lineY))){{_inst.gmlyoffset=yyfplus(_inst.gmlyoffset,_inst.gmlflick_lineY);};};if(yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other))){{if((yyGetBool(mouse_check_button(1)))&&(yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_x(),_inst.x)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_x(),yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)))))&&(yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_y(), _inst.y)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_y(),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)))))){{if(yyfequal(_inst.gmlms_offset,0)){_inst.gmlms_offset=yyfminus(__yy_gml_errCheck(_inst.gmlyoffset),__yy_gml_errCheck(g_pBuiltIn.get_mouse_y()));};_inst.gmlyoffset=yyfplus(__yy_gml_errCheck(_inst.gmlms_offset),__yy_gml_errCheck(g_pBuiltIn.get_mouse_y()));_inst.gmlflick_lineY=0;};}else {{_inst.gmlms_offset=0;};};};};_inst.gmlflick_lineY=yyftime(_inst.gmlflick_lineY, 0.9);_inst.gmlclampsize=yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy_gml_errCheck(-__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(_inst.gmllistsize),1)))),__yy_gml_errCheck(_inst.gmltxt_h))),__yy_gml_errCheck(_inst.sprite_height));_inst.gmlyoffset=clamp(_inst.gmlyoffset,_inst.gmlclampsize,0);}function gml_Object_obj_hof_achievements_Draw_64(_inst,_other){draw_set_font(global.gmlfnt_small_flex);draw_set_halign(0);var gmltx=yyfplus(__yy_gml_errCheck(_inst.x),8);var gmlty=yyfplus(__yy_gml_errCheck(_inst.y), 12);var gmlbounds_y1=gmlty;var gmlbounds_y2=yyfminus(yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(_inst.sprite_height)),16);var gmlach;gmlty=yyfplus(gmlty,_inst.gmlyoffset);{var __yy__v2222=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v2223 in __yy__v2222){if(!__yy__v2222.hasOwnProperty(__yy__v2223))continue;var __yy__v2224=__yy__v2222[__yy__v2223];{var gmli=0;for(;yyfless(gmli,_inst.gmllistsize);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ {if((yyGetBool(yyfgreaterequal(gmlty,gmlbounds_y1)))&&(yyGetBool(yyflessequal(gmlty,gmlbounds_y2)))){{gmlach=_inst.gmlach_list[__yy_gml_array_check_index(gmli,_inst.gmlach_list)];if(yyGetBool(ds_exists(gmlach,1))){{if(yyGetBool(is_undefined(ds_map_find_value(gmlach,"achieved")))){ds_map_set(gmlach,"achieved",0);};if(yyGetBool(is_undefined(ds_map_find_value(gmlach,"description")))){ds_map_set(gmlach,"description",yyfplus("Achievement ",__yy_gml_errCheck(string(yyfplus(__yy_gml_errCheck(gmli),1))))); };var gmltxt=ds_map_find_value(gmlach,"description");var gmlcol=16777215;var gmlalf=0.35;if(yyfgreater(real(ds_map_find_value(gmlach,"achieved")),0)){gmlalf=1;};gml_Script_draw_hd_text_color(__yy__v2224,_inst,gmltx,gmlty,gmltxt,gmlcol,gmlcol,gmlcol,gmlcol,gmlalf);};}else {{continue;};};};};gmlty=yyfplus(gmlty,_inst.gmltxt_h);}};}}};draw_rectangle_color(_inst.x,yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)),yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)), yyfplus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)),2),global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);event_inherited(_inst,_other);if(yyfless(_inst.gmlyoffset,0)){draw_sprite_ext(_inst,YYASSET_REF(0x01000090),0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),10),yyfplus(__yy_gml_errCheck(_inst.y),12),0.5,0.5,(-90),16777215,1);};if(yyfgreater(_inst.gmlyoffset,yyfplus(__yy_gml_errCheck(_inst.gmlclampsize), 10))){draw_sprite_ext(_inst,YYASSET_REF(0x01000090),0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),10),yyfminus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)),12),0.5,0.5,90,16777215,1);};}function gml_Object_obj_hof_achievements_Gesture_69(_inst,_other){if(yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other))){{if((yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_y(),_inst.y)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_y(),yyfplus(__yy_gml_errCheck(_inst.y), __yy_gml_errCheck(_inst.sprite_height)))))){{if((yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_x(),_inst.x)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_x(),yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)))))){_inst.gmlflick_lineY=ds_map_find_value(g_pBuiltIn.get_event_data(),"diffY");};};};};};}function gml_Object_obj_hof_achievements_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlflick_lineY=0;_inst.gmlyoffset=0;_inst.gmlm_soffset=0;_inst.gmluse_player_awards=false; }function gml_Object_obj_hof_retrobowl_wins_Create_0(_inst,_other){(_inst.gmls_hof_retrobowl_wins_franchise_create=__yy_method(_inst,gml_Script_s_hof_retrobowl_wins_franchise_create_gml_Object_obj_hof_retrobowl_wins_Create_0));(_inst.gmls_academic_gpa_limits_create=__yy_method(_inst,gml_Script_s_academic_gpa_limits_create_gml_Object_obj_hof_retrobowl_wins_Create_0));if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gml_Script_s_academic_gpa_limits_create_gml_Object_obj_hof_retrobowl_wins_Create_0(_inst, _other);};}else {{gml_Script_s_hof_retrobowl_wins_franchise_create_gml_Object_obj_hof_retrobowl_wins_Create_0(_inst,_other);};};}function gml_Script_s_hof_retrobowl_wins_franchise_create_gml_Object_obj_hof_retrobowl_wins_Create_0(_inst,_other){{var gmlbelichick=0;{var __yy__v2225=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v2226 in __yy__v2225){if(!__yy__v2225.hasOwnProperty(__yy__v2226))continue;var __yy__v2227=__yy__v2225[__yy__v2226];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v2227.gmlrbhistorylist)); (g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(__yy__v2227.gmlrbhistorylist,gmli);if((yyGetBool(yyfequal(ds_map_find_value(gmlmap,"winner"),"New England")))&&(yyGetBool(yyflessequal(real(ds_map_find_value(gmlmap,"year")),2026)))&&(yyGetBool(yyfequal(ds_map_find_value(gmlmap,"human"),0)))){(g_yyPrePostObject__=gmlbelichick,gmlbelichick=(g_yyPrePostObject__ instanceof Long?gmlbelichick.add(1):++gmlbelichick),g_yyPrePostObject__); };}};}}};_inst.gmlretrobowlhof=gml_Script_s_load_retrobowl_hof(_inst,_other);var gmli=0;for(;yyfless(gmli,ds_list_size(_inst.gmlretrobowlhof));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(_inst.gmlretrobowlhof,gmli);if(yyfequal(ds_map_find_value(gmlmap,"name"),"B.Belichick")){ds_map_set(gmlmap,"count",yyfplus(__yy_gml_errCheck(real(ds_map_find_value(gmlmap,"count"))),__yy_gml_errCheck(gmlbelichick)));};}} ;var gmlcount=gml_Script_s_count_achievement(_inst,_other,"ACH_WIN_RETROBOWL1");gml_Script_slog(_inst,_other,yyfplus("ACH_RETROBOWL1 = ",__yy_gml_errCheck(string(gmlcount))));var gmlmap=ds_map_create();ds_map_set(gmlmap,"count",gmlcount);ds_map_set(gmlmap,"name",yyfplus(yyfplus(yyfplus("you_",__yy_gml_errCheck(string_copy(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfname,1,1))),"."),__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllname)));ds_list_add(_inst.gmlretrobowlhof,gmlmap); _inst.gmlretrobowlhof=gml_Script_s_sort_retrobowl_list(_inst,_other,_inst.gmlretrobowlhof);}}function gml_Script_s_academic_gpa_limits_create_gml_Object_obj_hof_retrobowl_wins_Create_0(_inst,_other){{_inst.gmltxt_h=gml_Script_string_hd_height(_inst,_other,"I");}}function gml_Object_obj_hof_retrobowl_wins_Destroy_0(_inst,_other){var gmli=0;for(;yyfless(gmli,ds_list_size(_inst.gmlretrobowlhof));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){ {ds_map_destroy(ds_list_find_value(_inst.gmlretrobowlhof,gmli));ds_list_set(_inst.gmlretrobowlhof,gmli,(-1));}};ds_list_destroy(_inst.gmlretrobowlhof);_inst.gmlretrobowlhof=(-1);}function gml_Object_obj_hof_retrobowl_wins_Draw_64(_inst,_other){(_inst.gmls_hof_retrobowl_wins_franchise_draw=__yy_method(_inst,gml_Script_s_hof_retrobowl_wins_franchise_draw_gml_Object_obj_hof_retrobowl_wins_Draw_64));(_inst.gmls_academic_gpa_limits_draw=__yy_method(_inst,gml_Script_s_academic_gpa_limits_draw_gml_Object_obj_hof_retrobowl_wins_Draw_64)); event_inherited(_inst,_other);if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gml_Script_s_academic_gpa_limits_draw_gml_Object_obj_hof_retrobowl_wins_Draw_64(_inst,_other);};}else {{gml_Script_s_hof_retrobowl_wins_franchise_draw_gml_Object_obj_hof_retrobowl_wins_Draw_64(_inst,_other);};};}function gml_Script_s_hof_retrobowl_wins_franchise_draw_gml_Object_obj_hof_retrobowl_wins_Draw_64(_inst,_other){{var gmltx=yyfplus(__yy_gml_errCheck(_inst.x),8);var gmlty=yyfplus(__yy_gml_errCheck(_inst.y),12); var gmlth=gml_Script_string_hd_height(_inst,_other,"I");var gmli=0;for(;yyfless(gmli,ds_list_size(_inst.gmlretrobowlhof));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(_inst.gmlretrobowlhof,gmli);var gmlcount=string(real(ds_map_find_value(gmlmap,"count")));var gmltxt=ds_map_find_value(gmlmap,"name");var gmlcol=16777215;if(yyGetBool(string_count("you_",gmltxt))){{gmltxt=string_replace(gmltxt,"you_","");gmlcol=global.gmlc_primary; };};gmltx=yyfplus(__yy_gml_errCheck(_inst.x),8);draw_set_halign(0);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,gmltxt,gmlcol,gmlcol,gmlcol,gmlcol,1);gmltx=yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),8);draw_set_halign(2);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,gmlcount,gmlcol,gmlcol,gmlcol,gmlcol,1);gmlty=yyfplus(gmlty,gmlth);}};}}function gml_Script_s_academic_gpa_limits_draw_gml_Object_obj_hof_retrobowl_wins_Draw_64(_inst,_other){ {draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gmltx=yyfplus(__yy_gml_errCheck(_inst.x),6);var gmlty=yyfplus(__yy_gml_errCheck(_inst.y),12);{var __yy__v2228=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v2229 in __yy__v2228){if(!__yy__v2228.hasOwnProperty(__yy__v2229))continue;var __yy__v2230=__yy__v2228[__yy__v2229];{var gmlxl=gmltx;var gmlxr=yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),18);var gmlgpaVal=0;var gmlteamName=gml_Script_s_get_team_name_by_id(__yy__v2230, _inst,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id);draw_set_halign(0);gml_Script_draw_hd_text_color(__yy__v2230,_inst,yyfminus(__yy_gml_errCheck(gmlxl),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmlteamName,0,0,0,0,1);gml_Script_draw_hd_text_color(__yy__v2230,_inst,gmlxl,gmlty,gmlteamName,global.gmlc_primary,global.gmlc_primary,global.gmlc_primary,global.gmlc_primary,1);gmlty=yyfplus(gmlty,_inst.gmltxt_h);gmlgpaVal=gml_Script_s_gpa_from_percent_grade(__yy__v2230,_inst,yyfplus(__yy_gml_errCheck(gml_Script_s_player_grade_suspend_from_age(__yy__v2230, _inst,gml_Script_s_rookie_age_internal(__yy__v2230,_inst))),1));draw_set_halign(0);gml_Script_draw_hd_text(__yy__v2230,_inst,gmlxl,gmlty,gml_Script_s_str(__yy__v2230,_inst,"ui_Freshman"));draw_set_halign(2);gml_Script_draw_hd_text(__yy__v2230,_inst,gmlxr,gmlty,string_format(gmlgpaVal,1,1));gmlty=yyfplus(gmlty,_inst.gmltxt_h);gmlgpaVal=gml_Script_s_gpa_from_percent_grade(__yy__v2230,_inst,yyfplus(__yy_gml_errCheck(gml_Script_s_player_grade_suspend_from_age(__yy__v2230,_inst,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(__yy__v2230, _inst)),1))),1));draw_set_halign(0);gml_Script_draw_hd_text(__yy__v2230,_inst,gmlxl,gmlty,gml_Script_s_str(__yy__v2230,_inst,"ui_Sophomore"));draw_set_halign(2);gml_Script_draw_hd_text(__yy__v2230,_inst,gmlxr,gmlty,string_format(gmlgpaVal,1,1));gmlty=yyfplus(gmlty,_inst.gmltxt_h);gmlgpaVal=gml_Script_s_gpa_from_percent_grade(__yy__v2230,_inst,yyfplus(__yy_gml_errCheck(gml_Script_s_player_grade_suspend_from_age(__yy__v2230,_inst,yyfplus(__yy_gml_errCheck(gml_Script_s_rookie_age_internal(__yy__v2230, _inst)),2))),1));draw_set_halign(0);gml_Script_draw_hd_text(__yy__v2230,_inst,gmlxl,gmlty,gml_Script_s_str(__yy__v2230,_inst,"ui_JuniorSenior"));draw_set_halign(2);gml_Script_draw_hd_text(__yy__v2230,_inst,gmlxr,gmlty,string_format(gmlgpaVal,1,1));gmlty=yyfplus(gmlty,_inst.gmltxt_h);gmlgpaVal=gml_Script_s_gpa_from_percent_grade(__yy__v2230,_inst,yyfplus(__yy_gml_errCheck(gml_Script_s_player_grade_lift_suspension(__yy__v2230,_inst)),1));draw_set_halign(0);gml_Script_draw_hd_text(__yy__v2230,_inst, gmlxl,gmlty,gml_Script_s_str(__yy__v2230,_inst,"ui_Unsuspend"));draw_set_halign(2);gml_Script_draw_hd_text(__yy__v2230,_inst,gmlxr,gmlty,string_format(gmlgpaVal,1,1));}}};}}function gml_Object_obj_hof_retrobowl_history_Create_0(_inst,_other){_inst.gmlretrobowlhistory=gml_Script_s_load_retrobowl_history(_inst,_other);{var __yy__v2231=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v2232 in __yy__v2231){if(!__yy__v2231.hasOwnProperty(__yy__v2232))continue;var __yy__v2233=__yy__v2231[__yy__v2232];{__yy__v2233.gmlrbhistorylist=gml_Script_s_sort_retrobowl_history_list(__yy__v2233, _inst,__yy__v2233.gmlrbhistorylist);var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v2233.gmlrbhistorylist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(__yy__v2233.gmlrbhistorylist,gmli);ds_list_add(_inst.gmlretrobowlhistory,gmlmap);}};}}};draw_set_font(global.gmlfnt_small_flex);_inst.gmltitle=gml_Script_s_str(_inst,_other,"ui_RetroBowlWinners");_inst.gmltxt_h=gml_Script_string_hd_height(_inst,_other,_inst.gmltitle); _inst.gmllistsize=ds_list_size(_inst.gmlretrobowlhistory);_inst.gmlclampsize=yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy_gml_errCheck(-__yy_gml_errCheck(_inst.gmllistsize))),__yy_gml_errCheck(_inst.gmltxt_h))),__yy_gml_errCheck(_inst.sprite_height));_inst.gmlactive=true;}function gml_Object_obj_hof_retrobowl_history_Destroy_0(_inst,_other){var gmli=0;for(;yyfless(gmli,ds_list_size(_inst.gmlretrobowlhof));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli), g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(_inst.gmlretrobowlhof,gmli);if(yyflessequal(ds_map_find_value(gmlmap,"year"),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstart_year)){{ds_map_destroy(gmlmap);gmlmap=(-1);};};}};ds_list_clear(_inst.gmlretrobowlhof);ds_list_destroy(_inst.gmlretrobowlhof);_inst.gmlretrobowlhof=(-1);}function gml_Object_obj_hof_retrobowl_history_Step_0(_inst,_other){if((yyGetBool(global.gmlgamepad))&&(yyGetBool(yyfequal(yyInst(_inst,_other,global.gmlgp).gmlui_selected, _inst.id)))&&(yyGetBool(_inst.gmlactive))){{if(yyGetBool(yyInst(_inst,_other,global.gmlgp).gmltriggerl)){_inst.gmlflick_lineY=yyfplus(_inst.gmlflick_lineY,0.5);}else {if(yyGetBool(yyInst(_inst,_other,global.gmlgp).gmltriggerr)){_inst.gmlflick_lineY=yyfminus(_inst.gmlflick_lineY,0.5);}else {_inst.gmlflick_lineY=yyfminus(_inst.gmlflick_lineY,yyftime(__yy_gml_errCheck(yyInst(_inst,_other,global.gmlgp).gmlaxisr_v),0.5));};};};};if(yyGetBool(abs(_inst.gmlflick_lineY))){{_inst.gmlyoffset=yyfplus(_inst.gmlyoffset, _inst.gmlflick_lineY);};};if((yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other)))&&(yyGetBool((yyGetBool(mouse_check_button(1)))&&(yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_x(),_inst.x)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_x(),yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)))))&&(yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_y(),_inst.y)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_y(),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)))))))){{ if(yyfequal(_inst.gmlms_offset,0)){_inst.gmlms_offset=yyfminus(__yy_gml_errCheck(_inst.gmlyoffset),__yy_gml_errCheck(g_pBuiltIn.get_mouse_y()));};_inst.gmlyoffset=yyfplus(__yy_gml_errCheck(_inst.gmlms_offset),__yy_gml_errCheck(g_pBuiltIn.get_mouse_y()));_inst.gmlflick_lineY=0;};}else {{_inst.gmlms_offset=0;};};_inst.gmlflick_lineY=yyftime(_inst.gmlflick_lineY,0.9);_inst.gmlclampsize=yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy_gml_errCheck(-__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(_inst.gmllistsize), 1)))),__yy_gml_errCheck(_inst.gmltxt_h))),__yy_gml_errCheck(_inst.sprite_height));_inst.gmlyoffset=clamp(_inst.gmlyoffset,_inst.gmlclampsize,0);}function gml_Object_obj_hof_retrobowl_history_Draw_64(_inst,_other){draw_set_font(global.gmlfnt_small_flex);draw_set_halign(0);var gmltx=yyfplus(__yy_gml_errCheck(_inst.x),8);var gmlty=yyfplus(__yy_gml_errCheck(_inst.y),12);var gmlbounds_y1=gmlty;var gmlbounds_y2=yyfminus(yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(_inst.sprite_height)),16);gmlty=yyfplus(gmlty, _inst.gmlyoffset);var gmli=yyfminus(__yy_gml_errCheck(ds_list_size(_inst.gmlretrobowlhistory)),1);for(;yyfgreater(gmli,(-1));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.subtract(1):--gmli),g_yyPrePostObject__)){{if((yyGetBool(yyfgreaterequal(gmlty,gmlbounds_y1)))&&(yyGetBool(yyflessequal(gmlty,gmlbounds_y2)))){{var gmlmap=ds_list_find_value(_inst.gmlretrobowlhistory,gmli);var gmlyear=real(ds_map_find_value(gmlmap,"year"));var gmlbowlnum=yyfminus(__yy_gml_errCheck(gmlyear), 1966);var gmlwinner=ds_map_find_value(gmlmap,"winner");var gmlscr=ds_map_find_value(gmlmap,"score");var gmlloser=yyfplus(yyfplus(__yy_gml_errCheck(gmlscr)," "),__yy_gml_errCheck(ds_map_find_value(gmlmap,"loser")));var gmlhuman=real(ds_map_find_value(gmlmap,"human"));var gmlcol=16777215;var ___sw1934___=gmlhuman;var ___swc1935___=-1;if(yyCompareVal(___sw1934___,1,g_GMLMathEpsilon,false)==0){___swc1935___=0;}else if(yyCompareVal(___sw1934___,(-1),g_GMLMathEpsilon,false)==0){___swc1935___=1;}switch(___swc1935___){ case 0:{gmlcol=global.gmlc_primary;break;}case 1:{gmlcol=12632256;break;}};var gmla=1;if(yyflessequal(gmlyear,2021)){gmla=0.5;};gmltx=yyfplus(__yy_gml_errCheck(_inst.x),8);draw_set_halign(0);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,gml_Script_s_roman_numerals(_inst,_other,gmlbowlnum),gmlcol,gmlcol,gmlcol,gmlcol,gmla);draw_set_halign(0);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),52),gmlty,gmlwinner,gmlcol,gmlcol,gmlcol,gmlcol,gmla);gmltx=yyfminus(yyfplus(__yy_gml_errCheck(_inst.x), __yy_gml_errCheck(_inst.sprite_width)),18);draw_set_halign(2);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,gmlloser,gmlcol,gmlcol,gmlcol,gmlcol,gmla);};};gmlty=yyfplus(gmlty,_other.gmltxt_h);}};draw_rectangle_color(_inst.x,yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)),yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)),2),global.gmlc_background,global.gmlc_background, global.gmlc_background,global.gmlc_background,0);event_inherited(_inst,_other);if(yyfless(_inst.gmlyoffset,0)){draw_sprite_ext(_inst,YYASSET_REF(0x01000090),0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),10),yyfplus(__yy_gml_errCheck(_inst.y),12),0.5,0.5,(-90),16777215,1);};if(yyfgreater(_inst.gmlyoffset,yyfplus(__yy_gml_errCheck(_inst.gmlclampsize),10))){draw_sprite_ext(_inst,YYASSET_REF(0x01000090),0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)), 10),yyfminus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)),12),0.5,0.5,90,16777215,1);};}function gml_Object_obj_hof_retrobowl_history_Gesture_69(_inst,_other){if((yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other)))&&(yyGetBool((yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_y(),_inst.y)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_y(),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)))))))){{if((yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_x(),_inst.x)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_x(), yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)))))){_inst.gmlflick_lineY=ds_map_find_value(g_pBuiltIn.get_event_data(),"diffY");};};};}function gml_Object_obj_hof_retrobowl_history_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlflick_lineY=0;_inst.gmlyoffset=0;_inst.gmlms_offset=0;}function gml_Object_obj_hof_history_Create_0(_inst,_other){draw_set_font(global.gmlfnt_small_flex);_inst.gmltxt_h=gml_Script_string_hd_height(_inst,_other,"I");_inst.gmllistsize=gml_Script_s_history_display_lines_count(_inst, _other);_inst.gmlclampsize=yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy_gml_errCheck(-__yy_gml_errCheck(_inst.gmllistsize))),__yy_gml_errCheck(_inst.gmltxt_h))),__yy_gml_errCheck(_inst.sprite_height));if((yyGetBool(global.gmlgamepad))&&(yyGetBool(yyfgreater(yyftime(__yy_gml_errCheck(_inst.gmllistsize),__yy_gml_errCheck(_inst.gmltxt_h)),yyfminus(__yy_gml_errCheck(_inst.sprite_height),16))))){_inst.gmlactive=true;};_inst.gmlactive=true;gml_Script_s_log_full_history(_inst,_other);}function gml_Object_obj_hof_history_Step_0(_inst, _other){if((yyGetBool(global.gmlgamepad))&&(yyGetBool(yyfequal(yyInst(_inst,_other,global.gmlgp).gmlui_selected,_inst.id)))&&(yyGetBool(_inst.gmlactive))){{if(yyGetBool(yyInst(_inst,_other,global.gmlgp).gmltriggerl)){_inst.gmlflick_lineY=yyfplus(_inst.gmlflick_lineY,0.5);}else {if(yyGetBool(yyInst(_inst,_other,global.gmlgp).gmltriggerr)){_inst.gmlflick_lineY=yyfminus(_inst.gmlflick_lineY,0.5);}else {_inst.gmlflick_lineY=yyfminus(_inst.gmlflick_lineY,yyftime(__yy_gml_errCheck(yyInst(_inst,_other,global.gmlgp).gmlaxisr_v), 0.5));};};};};if(yyGetBool(abs(_inst.gmlflick_lineY))){{_inst.gmlyoffset=yyfplus(_inst.gmlyoffset,_inst.gmlflick_lineY);};};if((yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other)))&&(yyGetBool((yyGetBool(mouse_check_button(1)))&&(yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_x(),_inst.x)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_x(),yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)))))&&(yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_y(),_inst.y)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_y(), yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)))))))){{if(yyfequal(_inst.gmlms_offset,0)){_inst.gmlms_offset=yyfminus(__yy_gml_errCheck(_inst.gmlyoffset),__yy_gml_errCheck(g_pBuiltIn.get_mouse_y()));};_inst.gmlyoffset=yyfplus(__yy_gml_errCheck(_inst.gmlms_offset),__yy_gml_errCheck(g_pBuiltIn.get_mouse_y()));_inst.gmlflick_lineY=0;};}else {{_inst.gmlms_offset=0;};};_inst.gmlflick_lineY=yyftime(_inst.gmlflick_lineY,0.9);_inst.gmlclampsize=yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy_gml_errCheck(-__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(_inst.gmllistsize), 1)))),__yy_gml_errCheck(_inst.gmltxt_h))),__yy_gml_errCheck(_inst.sprite_height));_inst.gmlyoffset=clamp(_inst.gmlyoffset,_inst.gmlclampsize,0);}function gml_Object_obj_hof_history_Draw_64(_inst,_other){(_inst.gmls_draw_history_line=__yy_method(_inst,gml_Script_s_draw_history_line_gml_Object_obj_hof_history_Draw_64));(_inst.gmls_draw_history_lines_college=__yy_method(_inst,gml_Script_s_draw_history_lines_college_gml_Object_obj_hof_history_Draw_64));draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1); var gmltx=yyfplus(__yy_gml_errCheck(_inst.x),6);var gmlty=yyfplus(__yy_gml_errCheck(_inst.y),12);var gmlbounds_y1=yyfminus(yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(_inst.gmltxt_h)),4);var gmlbounds_y2=yyfminus(yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(_inst.sprite_height)),16);{var __yy__v2234=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v2235 in __yy__v2234){if(!__yy__v2234.hasOwnProperty(__yy__v2235))continue;var __yy__v2236=__yy__v2234[__yy__v2235];{draw_set_halign(0);gml_Script_draw_hd_text_color(__yy__v2236, _inst,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gml_Script_s_str(__yy__v2236,_inst,"ui_Year"),0,0,0,0,1);gml_Script_draw_hd_text(__yy__v2236,_inst,gmltx,gmlty,gml_Script_s_str(__yy__v2236,_inst,"ui_Year"));gmltx=yyfplus(gmltx,72);draw_set_halign(1);gml_Script_draw_hd_text_color(__yy__v2236,_inst,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gml_Script_s_str(__yy__v2236,_inst,"ui_Record"),0,0,0,0,1);gml_Script_draw_hd_text(__yy__v2236,_inst, gmltx,gmlty,gml_Script_s_str(__yy__v2236,_inst,"ui_Record"));draw_set_halign(2);gmltx=yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),18);gml_Script_draw_hd_text_color(__yy__v2236,_inst,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gml_Script_s_str(__yy__v2236,_inst,"ui_Finished"),0,0,0,0,1);gml_Script_draw_hd_text(__yy__v2236,_inst,gmltx,gmlty,gml_Script_s_str(__yy__v2236,_inst,"ui_Finished"));gmlty=yyfplus(gmlty,_inst.gmlyoffset);gmlty=yyfplus(gmlty, _inst.gmltxt_h);var gml_size=ds_list_size(__yy__v2236.gmlhistory);var gmli=yyfminus(__yy_gml_errCheck(gml_size),1);for(;yyfgreater(gmli,(-1));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.subtract(1):--gmli),g_yyPrePostObject__)){{gmltx=yyfplus(__yy_gml_errCheck(_inst.x),10);if(yyGetBool(gml_Script_s_is_co_mode(__yy__v2236,_inst))){{gml_Script_s_draw_history_lines_college_gml_Object_obj_hof_history_Draw_64(__yy__v2236,_inst,gmli,gmltx,gmlty,_inst.gmltxt_h,gmlbounds_y1,gmlbounds_y2); };}else {{gml_Script_s_draw_history_line_gml_Object_obj_hof_history_Draw_64(__yy__v2236,_inst,gmli,gmltx,gmlty,gmlbounds_y1,gmlbounds_y2);};};gmlty=yyfplus(gmlty,yyftime(__yy_gml_errCheck(_inst.gmltxt_h),__yy_gml_errCheck(gml_Script_s_history_display_lines_count_yearindex(__yy__v2236,_inst,gmli))));}};}}};draw_rectangle_color(_inst.x,yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)),yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(yyfplus(__yy_gml_errCheck(_inst.y), __yy_gml_errCheck(_inst.sprite_height)),2),global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);event_inherited(_inst,_other);if(yyfless(_inst.gmlyoffset,0)){draw_sprite_ext(_inst,YYASSET_REF(0x01000090),0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),10),yyfplus(__yy_gml_errCheck(_inst.y),24),0.5,0.5,(-90),16777215,1);};if(yyfgreater(_inst.gmlyoffset,yyfplus(__yy_gml_errCheck(_inst.gmlclampsize),10))){draw_sprite_ext(_inst, YYASSET_REF(0x01000090),0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),10),yyfminus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)),12),0.5,0.5,90,16777215,1);};}function gml_Script_s_draw_history_line_gml_Object_obj_hof_history_Draw_64(_inst,_other,argument0,argument1,argument2,argument3,argument4){{if((yyGetBool(yyfgreaterequal(argument2,argument3)))&&(yyGetBool(yyflessequal(argument2,argument4)))){{var gmlmap=ds_list_find_value(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlhistory,argument0);draw_set_halign(1);gml_Script_draw_hd_text(_inst,_other,argument1,argument2,ds_map_find_value(gmlmap,"year"));argument1=yyfplus(argument1,24);gml_Script_draw_hd_text(_inst,_other,argument1,argument2,ds_map_find_value(gmlmap,"tla"));argument1=yyfplus(argument1,44);gml_Script_draw_hd_text(_inst,_other,argument1,argument2,yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(string(ds_map_find_value(gmlmap,"wins"))),"-"),__yy_gml_errCheck(string(ds_map_find_value(gmlmap, "losses")))),"-"),__yy_gml_errCheck(string(ds_map_find_value(gmlmap,"ties")))));argument1=yyfplus(argument1,44);draw_set_halign(2);gml_Script_draw_hd_text(_inst,_other,yyfminus(yyfplus(__yy_gml_errCheck(_other.x),__yy_gml_errCheck(_other.sprite_width)),18),argument2,ds_map_find_value(gmlmap,"finish"));};};}}function gml_Script_s_draw_history_lines_college_gml_Object_obj_hof_history_Draw_64(_inst,_other,argument0,argument1,argument2,argument3,argument4,argument5){{var gmlmap=ds_list_find_value(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlhistory,argument0);var gmlfarRightX=yyfminus(yyfplus(__yy_gml_errCheck(_other.x),__yy_gml_errCheck(_other.sprite_width)),18);var gmlyearTeam=yyfplus(yyfplus(__yy_gml_errCheck(string(ds_map_find_value(gmlmap,"year")))," "),__yy_gml_errCheck(ds_map_find_value(gmlmap,"tla")));var gmlrecYear=real(ds_map_find_value(gmlmap,"year"));if(yyfequal(gmlrecYear,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear)){{return 0;};};var gmlc1="";var gmlc2="";var gmlconfTLA="";var gmlcomp, gmlthisConf;if((yyGetBool(yyfgreaterequal(argument2,argument4)))&&(yyGetBool(yyflessequal(argument2,argument5)))){{draw_set_halign(0);gml_Script_draw_hd_text(_inst,_other,argument1,argument2,gmlyearTeam);gmlc1="";gmlc1=yyfplus(gmlc1,yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(string(ds_map_find_value(gmlmap,"wins_cnf"))),"-"),__yy_gml_errCheck(string(ds_map_find_value(gmlmap,"losses_cnf"))))," "));draw_set_halign(0);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(argument1),44),argument2, gmlc1);gmlc2="";gmlconfTLA="";gmlthisConf=gml_Script_s_get_struct_in_array_by_uid(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlconferences,ds_map_find_value(gmlmap,"conference"));if(yyfequal(gmlthisConf,(-4))){{gmlc2=yyfplus(gmlc2,"NO CONF DATA! ");};}else {{gmlconfTLA=yyInst(_inst,_other,gmlthisConf).gmltla;gmlc2=yyfplus(gmlc2,yyfplus(__yy_gml_errCheck(gmlconfTLA)," "));if(yyfgreater(yyInst(_inst,_other,gmlthisConf).gmldivisions,1)){{if(yyfequal(ds_map_find_value(gmlmap,"division"), 0)){{gmlc2=yyfplus(gmlc2,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmlthisConf).gmldiv_0_name)," "));};};if(yyfequal(ds_map_find_value(gmlmap,"division"),1)){{gmlc2=yyfplus(gmlc2,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmlthisConf).gmldiv_1_name)," "));};};};};gmlc2=yyfplus(gmlc2,gml_Script_s_str_int_to_ordinal(_inst,_other,yyfplus(__yy_gml_errCheck(gml_Script_s_get_map_real(_inst,_other,gmlmap,"conference_finish_place",(-1))),1)));};};draw_set_halign(2);gml_Script_draw_hd_text(_inst,_other, gmlfarRightX,argument2,gmlc2);};};argument2=yyfplus(argument2,argument3);var gmlsubdivName="";if(yyfnotequal(ds_map_find_value(gmlmap,"subdivision"),"")){{if(yyfequal(ds_map_find_value(gmlmap,"subdivision"),"FCS")){{gmlsubdivName="MINOR";};};if(yyfequal(ds_map_find_value(gmlmap,"subdivision"),"FBS")){{gmlsubdivName="MAJOR";};};if((yyGetBool(yyfgreaterequal(argument2,argument4)))&&(yyGetBool(yyflessequal(argument2,argument5)))){{draw_set_halign(0);gml_Script_draw_hd_text(_inst,_other,argument1,argument2, gmlyearTeam);gmlc1="";gmlc1=yyfplus(gmlc1,yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(string(ds_map_find_value(gmlmap,"wins"))),"-"),__yy_gml_errCheck(string(ds_map_find_value(gmlmap,"losses"))))," "));draw_set_halign(0);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(argument1),44),argument2,gmlc1);gmlc2="";if(yyfequal(ds_map_find_value(gmlmap,"subdivision"),"FCS")){{gmlc2=yyfplus(gmlc2,yyfplus(__yy_gml_errCheck(gmlsubdivName)," "));};};if(yyfequal(ds_map_find_value(gmlmap,"subdivision"), "FBS")){{gmlc2=yyfplus(gmlc2,yyfplus(__yy_gml_errCheck(gmlsubdivName)," "));};};gmlc2=yyfplus(gmlc2,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Ranked"))," "),__yy_gml_errCheck(gml_Script_s_str_int_to_ordinal(_inst,_other,yyfplus(__yy_gml_errCheck(gml_Script_s_get_map_real(_inst,_other,gmlmap,"subdivision_rank",(-1))),1)))));draw_set_halign(2);gml_Script_draw_hd_text(_inst,_other,gmlfarRightX,argument2,gmlc2);};};argument2=yyfplus(argument2,argument3);};};if(yyfnotequal(gml_Script_s_get_map_real(_inst, _other,gmlmap,"conf_champ_win",(-1)),(-1))){{if((yyGetBool(yyfgreaterequal(argument2,argument4)))&&(yyGetBool(yyflessequal(argument2,argument5)))){{draw_set_halign(0);gml_Script_draw_hd_text(_inst,_other,argument1,argument2,gmlyearTeam);gmlc2="";gmlc2=yyfplus(gmlc2,yyfplus(yyfplus(__yy_gml_errCheck(gmlconfTLA)," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Champions_short"))));draw_set_halign(2);gml_Script_draw_hd_text(_inst,_other,gmlfarRightX,argument2,gmlc2);};};argument2=yyfplus(argument2, argument3);};};if(yyfnotequal(gml_Script_s_get_map_real(_inst,_other,gmlmap,"conf_armynavy_win",(-1)),(-1))){{if((yyGetBool(yyfgreaterequal(argument2,argument4)))&&(yyGetBool(yyflessequal(argument2,argument5)))){{draw_set_halign(0);gml_Script_draw_hd_text(_inst,_other,argument1,argument2,gmlyearTeam);gmlc2="";gmlcomp=gml_Script_s_get_competition(_inst,_other,ds_map_find_value(gmlmap,"conf_armynavy_win"));gmlc2=yyfplus(gmlc2,yyfplus(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmlcomp).gmlname), " "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Champions_short"))));draw_set_halign(2);gml_Script_draw_hd_text(_inst,_other,gmlfarRightX,argument2,gmlc2);};};argument2=yyfplus(argument2,argument3);};};var gmlplayoff_round=gml_Script_s_get_map_real(_inst,_other,gmlmap,"playoff_round_reach",(-1));if(yyfnotequal(gmlplayoff_round,(-1))){{if((yyGetBool(yyfgreaterequal(argument2,argument4)))&&(yyGetBool(yyflessequal(argument2,argument5)))){{draw_set_halign(0);gml_Script_draw_hd_text(_inst,_other, argument1,argument2,gmlyearTeam);gmlc2=yyfplus(yyfplus(yyfplus("MINOR ",__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_PositionShort")))," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,yyfplus("ui_ReachRoundShort",__yy_gml_errCheck(string(gmlplayoff_round))))));draw_set_halign(2);gml_Script_draw_hd_text(_inst,_other,gmlfarRightX,argument2,gmlc2);};};argument2=yyfplus(argument2,argument3);};};if(yyfnotequal(gml_Script_s_get_map_real(_inst,_other,gmlmap,"won_bowl",(-1)),(-1))){{if((yyGetBool(yyfgreaterequal(argument2, argument4)))&&(yyGetBool(yyflessequal(argument2,argument5)))){{draw_set_halign(0);gml_Script_draw_hd_text(_inst,_other,argument1,argument2,gmlyearTeam);gmlc2="";gmlcomp=gml_Script_s_get_competition(_inst,_other,ds_map_find_value(gmlmap,"won_bowl"));gmlc2=yyfplus(gmlc2,yyfplus(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmlcomp).gmlname)," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Champions_short"))));draw_set_halign(2);gml_Script_draw_hd_text(_inst,_other,gmlfarRightX,argument2,gmlc2); };};argument2=yyfplus(argument2,argument3);};};if(yyfequal(ds_map_find_value(gmlmap,"subdivision_champ"),"loss")){{if((yyGetBool(yyfgreaterequal(argument2,argument4)))&&(yyGetBool(yyflessequal(argument2,argument5)))){{draw_set_halign(0);gml_Script_draw_hd_text(_inst,_other,argument1,argument2,gmlyearTeam);gmlc2="";gmlc2=yyfplus(gmlc2,yyfplus(yyfplus(__yy_gml_errCheck(gmlsubdivName)," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_ChampRunnerUp"))));draw_set_halign(2);gml_Script_draw_hd_text(_inst, _other,gmlfarRightX,argument2,gmlc2);};};argument2=yyfplus(argument2,argument3);};};if(yyfequal(ds_map_find_value(gmlmap,"subdivision_champ"),"win")){{if((yyGetBool(yyfgreaterequal(argument2,argument4)))&&(yyGetBool(yyflessequal(argument2,argument5)))){{draw_set_halign(0);gml_Script_draw_hd_text(_inst,_other,argument1,argument2,gmlyearTeam);gmlc2="";gmlc2=yyfplus(gmlc2,yyfplus(yyfplus(__yy_gml_errCheck(gmlsubdivName)," "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Champions_short"))));draw_set_halign(2); gml_Script_draw_hd_text(_inst,_other,gmlfarRightX,argument2,gmlc2);};};argument2=yyfplus(argument2,argument3);};};}}function gml_Object_obj_hof_history_Gesture_69(_inst,_other){if((yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other)))&&(yyGetBool((yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_y(),_inst.y)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_y(),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)))))))){{if((yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_x(),_inst.x)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_x(), yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)))))){_inst.gmlflick_lineY=ds_map_find_value(g_pBuiltIn.get_event_data(),"diffY");};};};}function gml_Object_obj_hof_history_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlflick_lineY=0;_inst.gmlyoffset=0;_inst.gmlmsoffset=0;}function gml_Object_obj_hof_records_coach_Create_0(_inst,_other){(_inst.gmls_records_conf_only_games=__yy_method(_inst,gml_Script_s_records_conf_only_games_gml_Object_obj_hof_records_coach_Create_0)); (_inst.gmls_records_conf_only_pct=__yy_method(_inst,gml_Script_s_records_conf_only_pct_gml_Object_obj_hof_records_coach_Create_0));draw_set_font(global.gmlfnt_small_flex);_inst.gmltxt_h=gml_Script_string_hd_height(_inst,_other,"I");_inst.gmlreclist_a=ds_list_create();_inst.gmlreclist_b=ds_list_create();ds_list_add(_inst.gmlreclist_a,gml_Script_s_str(_inst,_other,"ui_FullSeasons"));ds_list_add(_inst.gmlreclist_b,string(max(0,yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear), 2))));ds_list_add(_inst.gmlreclist_a,gml_Script_s_str(_inst,_other,"ui_RecordReg"));ds_list_add(_inst.gmlreclist_a,gml_Script_s_str(_inst,_other,"ui_WinPctReg"));var gmlwins_reg=0;var gmllosses_reg=0;var gmlties_reg=0;var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhistory));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhistory, gmli);if((yyGetBool(ds_exists(gmlmap,1)))&&(yyGetBool(ds_map_exists(gmlmap,"wins")))&&(yyGetBool(ds_map_exists(gmlmap,"losses")))&&(yyGetBool(ds_map_exists(gmlmap,"ties")))){{gmlwins_reg=yyfplus(gmlwins_reg,real(ds_map_find_value(gmlmap,"wins")));gmllosses_reg=yyfplus(gmllosses_reg,real(ds_map_find_value(gmlmap,"losses")));gmlties_reg=yyfplus(gmlties_reg,real(ds_map_find_value(gmlmap,"ties")));if((yyGetBool(ds_map_exists(gmlmap,"year")))&&(yyGetBool(yyfequal(ds_map_find_value(gmlmap,"year"),1)))&&(yyGetBool(yyfgreater(yyfplus(yyfplus(__yy_gml_errCheck(gmlwins_reg), __yy_gml_errCheck(gmllosses_reg)),__yy_gml_errCheck(gmlties_reg)),1)))){{gmlwins_reg=0;gmllosses_reg=0;gmlties_reg=0;};};};};}};var gmlstr=yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(string(gmlwins_reg)),"-"),__yy_gml_errCheck(string(gmllosses_reg))),"-"),__yy_gml_errCheck(string(gmlties_reg)));if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gmlstr=yyfplus(yyfplus(__yy_gml_errCheck(string(gmlwins_reg)),"-"),__yy_gml_errCheck(string(gmllosses_reg)));};};ds_list_add(_inst.gmlreclist_b,gmlstr); gmlstr="0%";var gmlnum_games=yyfplus(yyfplus(__yy_gml_errCheck(gmlwins_reg),__yy_gml_errCheck(gmllosses_reg)),__yy_gml_errCheck(gmlties_reg));if(yyfgreater(gmlnum_games,0)){gmlstr=string_format(yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(gmlwins_reg),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlties_reg),0.5)))),__yy_gml_errCheck(gmlnum_games)),0,3);};ds_list_add(_inst.gmlreclist_b,gmlstr);ds_list_add(_inst.gmlreclist_a,gml_Script_s_str(_inst,_other,"ui_RecordPO"));ds_list_add(_inst.gmlreclist_a, gml_Script_s_str(_inst,_other,"ui_WinPctPO"));if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{ds_list_add(_inst.gmlreclist_a,gml_Script_s_str(_inst,_other,"ui_POsReached"));};};var gmlwins_po=0;var gmllosses_po=0;var gmlpocount=0;var gmlpoatts=0;var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhistory));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlhistory,gmli);if(!yyGetBool(ds_map_exists(gmlmap,"wins_po"))){ds_map_set(gmlmap,"wins_po",0);};if(!yyGetBool(ds_map_exists(gmlmap,"losses_po"))){ds_map_set(gmlmap,"losses_po",0);};gmlwins_po=yyfplus(gmlwins_po,real(ds_map_find_value(gmlmap,"wins_po")));gmllosses_po=yyfplus(gmllosses_po,real(ds_map_find_value(gmlmap,"losses_po")));gml_Script_slog(_inst,_other,yyfplus("Year ",__yy_gml_errCheck(string(ds_map_find_value(gmlmap,"year")))));gml_Script_slog(_inst,_other,yyfplus("Wins PO ", __yy_gml_errCheck(string(ds_map_find_value(gmlmap,"wins_po")))));gml_Script_slog(_inst,_other,yyfplus("Losses PO ",__yy_gml_errCheck(string(ds_map_find_value(gmlmap,"losses_po")))));if(yyfgreater(yyfplus(__yy_gml_errCheck(real(ds_map_find_value(gmlmap,"wins_po"))),__yy_gml_errCheck(real(ds_map_find_value(gmlmap,"losses_po")))),0)){{(g_yyPrePostObject__=gmlpoatts,gmlpoatts=(g_yyPrePostObject__ instanceof Long?gmlpoatts.add(1):++gmlpoatts),g_yyPrePostObject__);gml_Script_slog(_inst,_other,yyfplus("Attempts ", __yy_gml_errCheck(string(gmlpoatts))));};};(g_yyPrePostObject__=gmlpocount,gmlpocount=(g_yyPrePostObject__ instanceof Long?gmlpocount.add(1):++gmlpocount),g_yyPrePostObject__);}};ds_list_add(_inst.gmlreclist_b,yyfplus(yyfplus(__yy_gml_errCheck(string(gmlwins_po)),"-"),__yy_gml_errCheck(string(gmllosses_po))));gmlstr="0%";gmlnum_games=yyfplus(__yy_gml_errCheck(gmlwins_po),__yy_gml_errCheck(gmllosses_po));if(yyfgreater(gmlnum_games,0)){gmlstr=string_format(yyfdivide(__yy_gml_errCheck(gmlwins_po),__yy_gml_errCheck(gmlnum_games)), 0,3);};ds_list_add(_inst.gmlreclist_b,gmlstr);if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{ds_list_add(_inst.gmlreclist_b,yyfplus(yyfplus(__yy_gml_errCheck(string(gmlpoatts)),"/"),__yy_gml_errCheck(string(max(0,yyfminus(__yy_gml_errCheck(gmlpocount),1))))));};};var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrecords));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlrecords,gmli);if((yyGetBool(ds_exists(gmlmap,1)))&&(yyGetBool(ds_map_exists(gmlmap,"tag")))){{if((yyGetBool(ds_map_exists(gmlmap,"coachstat")))&&(yyGetBool(yyfequal(real(ds_map_find_value(gmlmap,"coachstat")),1)))){{ds_list_add(_inst.gmlreclist_a,gml_Script_s_str(_inst,_other,ds_map_find_value(gmlmap,"tag")));ds_list_add(_inst.gmlreclist_b,ds_map_find_value(gmlmap,"stat_text"));};};};};}};ds_list_add(_inst.gmlreclist_a,gml_Script_s_str(_inst,_other,"ui_SeasonsNoSim")); if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{ds_list_add(_inst.gmlreclist_a,gml_Script_s_str(_inst,_other,"ui_SimRecord"));};};ds_list_add(_inst.gmlreclist_b,string(gml_Script_s_count_full_seasons(_inst,_other)));var gmlwins_sim=0;var gmllosses_sim=0;var gmlties_sim=0;var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhistory));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlhistory,gmli);if((yyGetBool(ds_exists(gmlmap,1)))&&(yyGetBool(ds_map_exists(gmlmap,"wins_sim")))&&(yyGetBool(ds_map_exists(gmlmap,"losses_sim")))&&(yyGetBool(ds_map_exists(gmlmap,"ties_sim")))){{gmlwins_sim=yyfplus(gmlwins_sim,real(ds_map_find_value(gmlmap,"wins_sim")));gmllosses_sim=yyfplus(gmllosses_sim,real(ds_map_find_value(gmlmap,"losses_sim")));gmlties_sim=yyfplus(gmlties_sim,real(ds_map_find_value(gmlmap,"ties_sim")));if((yyGetBool(ds_map_exists(gmlmap,"year")))&&(yyGetBool(yyfequal(ds_map_find_value(gmlmap, "year"),1)))&&(yyGetBool(yyfgreater(yyfplus(yyfplus(__yy_gml_errCheck(gmlwins_sim),__yy_gml_errCheck(gmllosses_sim)),__yy_gml_errCheck(gmlties_sim)),1)))){{gmlwins_sim=0;gmllosses_sim=0;gmlties_sim=0;};};};};}};var gmlstr_sim=yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(string(gmlwins_sim)),"-"),__yy_gml_errCheck(string(gmllosses_sim))),"-"),__yy_gml_errCheck(string(gmlties_sim)));if(!yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{ds_list_add(_inst.gmlreclist_b,gmlstr_sim);};};if(yyGetBool(gml_Script_s_is_co_mode(_inst, _other))){{ds_list_add(_inst.gmlreclist_a,gml_Script_s_str(_inst,_other,"ui_RecordPlayersDrafted"));ds_list_add(_inst.gmlreclist_b,string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlpro_drafted_players));ds_list_add(_inst.gmlreclist_a,gml_Script_s_str(_inst,_other,"ui_RecordConfGames"));ds_list_add(_inst.gmlreclist_b,gml_Script_s_records_conf_only_games_gml_Object_obj_hof_records_coach_Create_0(_inst,_other));ds_list_add(_inst.gmlreclist_a,gml_Script_s_str(_inst,_other,"ui_RecordConfPCT"));ds_list_add(_inst.gmlreclist_b, gml_Script_s_records_conf_only_pct_gml_Object_obj_hof_records_coach_Create_0(_inst,_other));ds_list_add(_inst.gmlreclist_a,gml_Script_s_str(_inst,_other,"ui_RecordConfChampWins"));ds_list_add(_inst.gmlreclist_b,string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrec_conf_champ_wins));ds_list_add(_inst.gmlreclist_a,gml_Script_s_str(_inst,_other,"ui_RecordBowlWins"));ds_list_add(_inst.gmlreclist_b,string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrec_bowl_wins));ds_list_add(_inst.gmlreclist_a, gml_Script_s_str(_inst,_other,"ui_RecordChampWins"));ds_list_add(_inst.gmlreclist_b,string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrec_champ_wins));ds_list_add(_inst.gmlreclist_a,string_replace_all(gml_Script_s_str(_inst,_other,"ui_RecordHighestMajor"),"$FBS","Major"));if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrec_highest_rank_major,999999)){{ds_list_add(_inst.gmlreclist_b,"N/A");};}else {{ds_list_add(_inst.gmlreclist_b,string(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlrec_highest_rank_major),1)));};};ds_list_add(_inst.gmlreclist_a,string_replace_all(gml_Script_s_str(_inst,_other,"ui_RecordHighestMinor"),"$FCS","Minor"));if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrec_highest_rank_minor,999999)){{ds_list_add(_inst.gmlreclist_b,"N/A");};}else {{ds_list_add(_inst.gmlreclist_b,string(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrec_highest_rank_minor),1)));};};ds_list_add(_inst.gmlreclist_a,gml_Script_s_str(_inst, _other,"ui_DonationsReceived"));ds_list_add(_inst.gmlreclist_b,yyfplus(yyfplus("$",__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrc_lifetime_earned))),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"sla_Thousand"))));ds_list_add(_inst.gmlreclist_a,gml_Script_s_str(_inst,_other,"ui_ScolarshipsGranted"));ds_list_add(_inst.gmlreclist_b,yyfplus(yyfplus("$",__yy_gml_errCheck(string(__yy_gml_errCheck(-__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrc_lifetime_spent))))), __yy_gml_errCheck(gml_Script_s_str(_inst,_other,"sla_Thousand"))));};};_inst.gmllistsize=ds_list_size(_inst.gmlreclist_a);_inst.gmlclampsize=yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy_gml_errCheck(-__yy_gml_errCheck(_inst.gmllistsize))),__yy_gml_errCheck(_inst.gmltxt_h))),__yy_gml_errCheck(_inst.sprite_height));if((yyGetBool(global.gmlgamepad))&&(yyGetBool(yyfgreater(yyftime(__yy_gml_errCheck(_inst.gmllistsize),__yy_gml_errCheck(_inst.gmltxt_h)),yyfminus(__yy_gml_errCheck(_inst.sprite_height), 16))))){_inst.gmlactive=true;};_inst.gmlactive=true;}function gml_Script_s_records_conf_only_games_gml_Object_obj_hof_records_coach_Create_0(_inst,_other){{var gmlw=0;var gmll=0;var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhistory));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhistory,gmli);if((yyGetBool(ds_exists(gmlmap, 1)))&&(yyGetBool(ds_map_exists(gmlmap,"wins_cnf")))&&(yyGetBool(ds_map_exists(gmlmap,"losses_cnf")))){{gmlw=yyfplus(gmlw,real(ds_map_find_value(gmlmap,"wins_cnf")));gmll=yyfplus(gmll,real(ds_map_find_value(gmlmap,"losses_cnf")));if((yyGetBool(ds_map_exists(gmlmap,"year")))&&(yyGetBool(yyfequal(ds_map_find_value(gmlmap,"year"),1)))&&(yyGetBool(yyfgreater(yyfplus(__yy_gml_errCheck(gmlw),__yy_gml_errCheck(gmll)),1)))){{gmlw=0;gmll=0;};};};};}};return yyfplus(yyfplus(__yy_gml_errCheck(string(gmlw)),"-"), __yy_gml_errCheck(string(gmll)));}}function gml_Script_s_records_conf_only_pct_gml_Object_obj_hof_records_coach_Create_0(_inst,_other){{var gmlw=0;var gmll=0;var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhistory));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlhistory,gmli);if((yyGetBool(ds_exists(gmlmap,1)))&&(yyGetBool(ds_map_exists(gmlmap, "wins_cnf")))&&(yyGetBool(ds_map_exists(gmlmap,"losses_cnf")))){{gmlw=yyfplus(gmlw,real(ds_map_find_value(gmlmap,"wins_cnf")));gmll=yyfplus(gmll,real(ds_map_find_value(gmlmap,"losses_cnf")));if((yyGetBool(ds_map_exists(gmlmap,"year")))&&(yyGetBool(yyfequal(ds_map_find_value(gmlmap,"year"),1)))&&(yyGetBool(yyfgreater(yyfplus(__yy_gml_errCheck(gmlw),__yy_gml_errCheck(gmll)),1)))){{gmlw=0;gmll=0;};};};};}};var gmlnum_games=yyfplus(__yy_gml_errCheck(gmlw),__yy_gml_errCheck(gmll));if(yyfgreater(gmlnum_games, 0)){{return string_format(yyfdivide(__yy_gml_errCheck(gmlw),__yy_gml_errCheck(gmlnum_games)),0,3);};};return "0%";}}function gml_Object_obj_hof_records_coach_Step_0(_inst,_other){if((yyGetBool(global.gmlgamepad))&&(yyGetBool(yyfequal(yyInst(_inst,_other,global.gmlgp).gmlui_selected,_inst.id)))&&(yyGetBool(_inst.gmlactive))){{if(yyGetBool(yyInst(_inst,_other,global.gmlgp).gmltriggerl)){_inst.gmlflick_lineY=yyfplus(_inst.gmlflick_lineY,0.5);}else {if(yyGetBool(yyInst(_inst,_other,global.gmlgp).gmltriggerr)){ _inst.gmlflick_lineY=yyfminus(_inst.gmlflick_lineY,0.5);}else {_inst.gmlflick_lineY=yyfminus(_inst.gmlflick_lineY,yyftime(__yy_gml_errCheck(yyInst(_inst,_other,global.gmlgp).gmlaxisr_v),0.5));};};};};if(yyGetBool(abs(_inst.gmlflick_lineY))){{_inst.gmlyoffset=yyfplus(_inst.gmlyoffset,_inst.gmlflick_lineY);};};if((yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other)))&&(yyGetBool((yyGetBool(mouse_check_button(1)))&&(yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_x(),_inst.x)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_x(), yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)))))&&(yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_y(),_inst.y)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_y(),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)))))))){{if(yyfequal(_inst.gmlms_offset,0)){_inst.gmlms_offset=yyfminus(__yy_gml_errCheck(_inst.gmlyoffset),__yy_gml_errCheck(g_pBuiltIn.get_mouse_y()));};_inst.gmlyoffset=yyfplus(__yy_gml_errCheck(_inst.gmlms_offset),__yy_gml_errCheck(g_pBuiltIn.get_mouse_y())); _inst.gmlflick_lineY=0;};}else {{_inst.gmlms_offset=0;};};_inst.gmlflick_lineY=yyftime(_inst.gmlflick_lineY,0.9);_inst.gmlclampsize=yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy_gml_errCheck(-__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(_inst.gmllistsize),1)))),__yy_gml_errCheck(_inst.gmltxt_h))),__yy_gml_errCheck(_inst.sprite_height));_inst.gmlyoffset=clamp(_inst.gmlyoffset,_inst.gmlclampsize,0);}function gml_Object_obj_hof_records_coach_Draw_64(_inst,_other){draw_set_font(global.gmlfnt_small_flex); draw_set_halign(1);var gmltx=_inst.x;var gmlty=yyfplus(__yy_gml_errCheck(_inst.y),12);var gmlbounds_y1=gmlty;var gmlbounds_y2=yyfminus(yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(_inst.sprite_height)),16);gmlty=yyfplus(gmlty,_inst.gmlyoffset);var gmli=0;for(;yyfless(gmli,ds_list_size(_inst.gmlreclist_a));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{if((yyGetBool(yyfgreaterequal(gmlty,gmlbounds_y1)))&&(yyGetBool(yyflessequal(gmlty, gmlbounds_y2)))){{gmltx=yyfplus(__yy_gml_errCheck(_inst.x),10);draw_set_halign(0);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,ds_list_find_value(_inst.gmlreclist_a,gmli));gmltx=yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),18);draw_set_halign(2);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,ds_list_find_value(_inst.gmlreclist_b,gmli));};};gmlty=yyfplus(gmlty,_inst.gmltxt_h);}};draw_rectangle_color(_inst.x,yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)), yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)),2),global.gmlc_background,global.gmlc_background,global.gmlc_background,global.gmlc_background,0);event_inherited(_inst,_other);if(yyfless(_inst.gmlyoffset,0)){draw_sprite_ext(_inst,YYASSET_REF(0x01000090),0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),10),yyfplus(__yy_gml_errCheck(_inst.y),12),0.5,0.5,(-90), 16777215,1);};if(yyfgreater(_inst.gmlyoffset,yyfplus(__yy_gml_errCheck(_inst.gmlclampsize),10))){draw_sprite_ext(_inst,YYASSET_REF(0x01000090),0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),10),yyfminus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)),12),0.5,0.5,90,16777215,1);};}function gml_Object_obj_hof_records_coach_Gesture_69(_inst,_other){if((yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other)))&&(yyGetBool((yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_y(), _inst.y)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_y(),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)))))))){{if((yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_x(),_inst.x)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_x(),yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)))))){_inst.gmlflick_lineY=ds_map_find_value(g_pBuiltIn.get_event_data(),"diffY");};};};}function gml_Object_obj_hof_records_coach_PreCreate_0(_inst,_other){event_inherited(_inst,_other); _inst.gmlflick_lineY=0;_inst.gmlyoffset=0;_inst.gmlmsoffset=0;}function gml_Object_obj_hof_records_player_Create_0(_inst,_other){draw_set_font(global.gmlfnt_small_flex);_inst.gmltxt_h=gml_Script_string_hd_height(_inst,_other,"I");yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrecords=gml_Script_s_sort_record_list(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrecords);_inst.gmlreclist_a=ds_list_create();_inst.gmlreclist_b=ds_list_create();_inst.gmlreclist_c=ds_list_create();_inst.gmlreclist_d=ds_list_create(); _inst.gmlreclist_flash=ds_list_create();var gmlsomestats=false;var gmli=0;for(;yyfless(gmli,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrecords));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrecords,gmli);if(yyGetBool(ds_exists(gmlmap,1))){{if((yyGetBool(ds_map_exists(gmlmap,"coachstat")))&&(yyGetBool(yyfequal(real(ds_map_find_value(gmlmap,"coachstat")), 1)))){continue;};if(yyGetBool(ds_map_exists(gmlmap,"tag"))){{ds_list_add(_inst.gmlreclist_a,gml_Script_s_str(_inst,_other,ds_map_find_value(gmlmap,"tag")));};};if(yyGetBool(ds_map_exists(gmlmap,"stat"))){{ds_list_add(_inst.gmlreclist_b,yyfplus(__yy_gml_errCheck(string(round(ds_map_find_value(gmlmap,"stat")))),__yy_gml_errCheck(string(ds_map_find_value(gmlmap,"stat_text")))));if(yyfgreater(real(ds_map_find_value(gmlmap,"stat")),0)){gmlsomestats=true;};};};var gmlstr="";if((yyGetBool(ds_map_exists(gmlmap, "qbname")))&&(yyGetBool(yyfnotequal(ds_map_find_value(gmlmap,"qbname"),"0")))){gmlstr=yyfplus(gmlstr,yyfplus(__yy_gml_errCheck(ds_map_find_value(gmlmap,"qbname"))," "));};if((yyGetBool(ds_map_exists(gmlmap,"playername")))&&(yyGetBool(yyfnotequal(ds_map_find_value(gmlmap,"playername"),"0")))){gmlstr=yyfplus(gmlstr,ds_map_find_value(gmlmap,"playername"));};ds_list_add(_inst.gmlreclist_c,gmlstr);gmlstr="";if((yyGetBool(ds_map_exists(gmlmap,"year")))&&(yyGetBool(yyfnotequal(string(ds_map_find_value(gmlmap, "year")),"0")))){gmlstr=yyfplus(gmlstr,yyfplus("Y",__yy_gml_errCheck(string(ds_map_find_value(gmlmap,"year")))));};ds_list_add(_inst.gmlreclist_d,gmlstr);if((yyGetBool(ds_map_exists(gmlmap,"year")))&&(yyGetBool(yyfequal(real(ds_map_find_value(gmlmap,"year")),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear)))&&(yyGetBool(ds_map_exists(gmlmap,"week")))&&(yyGetBool(yyfequal(real(ds_map_find_value(gmlmap,"week")),yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek),1))))){ ds_list_add(_inst.gmlreclist_flash,1);}else {ds_list_add(_inst.gmlreclist_flash,0);};};};}};_inst.gmllistsize=ds_list_size(_inst.gmlreclist_a);_inst.gmlclampsize=yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy_gml_errCheck(-__yy_gml_errCheck(_inst.gmllistsize))),__yy_gml_errCheck(_inst.gmltxt_h))),__yy_gml_errCheck(_inst.sprite_height));if((yyGetBool(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_record_msg_done)))&&(yyGetBool(!yyGetBool(gmlsomestats)))&&(yyGetBool(yyfgreater(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlyear,1)))){{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_PlayerRecords"),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_record_msg_done=true;};};_inst.gmlactive=true;}function gml_Object_obj_hof_records_player_Step_0(_inst,_other){if((yyGetBool(global.gmlgamepad))&&(yyGetBool(yyfequal(yyInst(_inst,_other,global.gmlgp).gmlui_selected, _inst.id)))&&(yyGetBool(_inst.gmlactive))){{if(yyGetBool(yyInst(_inst,_other,global.gmlgp).gmltriggerl)){_inst.gmlflick_lineY=yyfplus(_inst.gmlflick_lineY,0.5);}else {if(yyGetBool(yyInst(_inst,_other,global.gmlgp).gmltriggerr)){_inst.gmlflick_lineY=yyfminus(_inst.gmlflick_lineY,0.5);}else {_inst.gmlflick_lineY=yyfminus(_inst.gmlflick_lineY,yyftime(__yy_gml_errCheck(yyInst(_inst,_other,global.gmlgp).gmlaxisr_v),0.5));};};};};if(yyGetBool(abs(_inst.gmlflick_lineY))){{_inst.gmlyoffset=yyfplus(_inst.gmlyoffset, _inst.gmlflick_lineY);};};if((yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other)))&&(yyGetBool((yyGetBool(mouse_check_button(1)))&&(yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_x(),_inst.x)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_x(),yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)))))&&(yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_y(),_inst.y)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_y(),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)))))))){{ if(yyfequal(_inst.gmlms_offset,0)){_inst.gmlms_offset=yyfminus(__yy_gml_errCheck(_inst.gmlyoffset),__yy_gml_errCheck(g_pBuiltIn.get_mouse_y()));};_inst.gmlyoffset=yyfplus(__yy_gml_errCheck(_inst.gmlms_offset),__yy_gml_errCheck(g_pBuiltIn.get_mouse_y()));_inst.gmlflick_lineY=0;};}else {{_inst.gmlms_offset=0;};};_inst.gmlflick_lineY=yyftime(_inst.gmlflick_lineY,0.9);_inst.gmlclampsize=yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy_gml_errCheck(-__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(_inst.gmllistsize), 1)))),__yy_gml_errCheck(_inst.gmltxt_h))),__yy_gml_errCheck(_inst.sprite_height));_inst.gmlyoffset=clamp(_inst.gmlyoffset,_inst.gmlclampsize,0);}function gml_Object_obj_hof_records_player_Draw_64(_inst,_other){draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);var gmltx=_inst.x;var gmlty=yyfplus(__yy_gml_errCheck(_inst.y),12);var gmlbounds_y1=gmlty;var gmlbounds_y2=yyfminus(yyfplus(__yy_gml_errCheck(gmlty),__yy_gml_errCheck(_inst.sprite_height)),16);gmlty=yyfplus(gmlty,_inst.gmlyoffset);var gmli=0; for(;yyfless(gmli,ds_list_size(_inst.gmlreclist_a));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{if((yyGetBool(yyfgreaterequal(gmlty,gmlbounds_y1)))&&(yyGetBool(yyflessequal(gmlty,gmlbounds_y2)))){{var gmlc=16777215;if(yyfequal(ds_list_find_value(_inst.gmlreclist_flash,gmli),1)){gmlc=global.gmlc_primary;};gmltx=yyfplus(__yy_gml_errCheck(_inst.x),10);draw_set_halign(0);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,ds_list_find_value(_inst.gmlreclist_a, gmli),gmlc,gmlc,gmlc,gmlc,1);gmltx=yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.sprite_width),2)));draw_set_halign(2);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,ds_list_find_value(_inst.gmlreclist_b,gmli),gmlc,gmlc,gmlc,gmlc,1);gmltx=yyfplus(gmltx,10);draw_set_halign(0);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,ds_list_find_value(_inst.gmlreclist_c,gmli),gmlc,gmlc,gmlc,gmlc,1);gmltx=yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)), 18);draw_set_halign(2);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,ds_list_find_value(_inst.gmlreclist_d,gmli),gmlc,gmlc,gmlc,gmlc,1);};};gmlty=yyfplus(gmlty,_inst.gmltxt_h);}};draw_rectangle_color(_inst.x,yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)),yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)),2),global.gmlc_background,global.gmlc_background,global.gmlc_background, global.gmlc_background,0);event_inherited(_inst,_other);if(yyfless(_inst.gmlyoffset,0)){draw_sprite_ext(_inst,YYASSET_REF(0x01000090),0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),10),yyfplus(__yy_gml_errCheck(_inst.y),12),0.5,0.5,(-90),16777215,1);};if(yyfgreater(_inst.gmlyoffset,yyfplus(__yy_gml_errCheck(_inst.gmlclampsize),10))){draw_sprite_ext(_inst,YYASSET_REF(0x01000090),0,yyfminus(yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)), 10),yyfminus(yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)),12),0.5,0.5,90,16777215,1);};}function gml_Object_obj_hof_records_player_Gesture_69(_inst,_other){if((yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other)))&&(yyGetBool((yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_y(),_inst.y)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_y(),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)))))))){{if((yyGetBool(yyfgreater(g_pBuiltIn.get_mouse_x(),_inst.x)))&&(yyGetBool(yyfless(g_pBuiltIn.get_mouse_x(), yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)))))){_inst.gmlflick_lineY=ds_map_find_value(g_pBuiltIn.get_event_data(),"diffY");};};};}function gml_Object_obj_hof_records_player_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlflick_lineY=0;_inst.gmlyoffset=0;_inst.gmlmsoffset=0;}function gml_Object_obj_master_Create_0(_inst,_other){gml_Script_slog(_inst,_other,"------> Create: obj_master");gml_Script_slog(_inst,_other,g_pBuiltIn.get_os_device());gml_Script_s_set_exception_reporter(_inst, _other);gml_Script_s_safe_run(_inst,_other,kgml_Script_s_startup);}function gml_Object_obj_master_Alarm_0(_inst,_other){gml_Script_s_iap_init(_inst,_other);}function gml_Object_obj_master_Alarm_1(_inst,_other){}function gml_Object_obj_master_Alarm_2(_inst,_other){gml_Script_s_stop_brass_loop_finalize(_inst,_other);}function gml_Object_obj_master_Step_0(_inst,_other){if((yyGetBool(global.gmlbrowser))&&(yyGetBool(!yyGetBool(instance_exists(YYASSET_REF(0x00000069)))))){gml_Script_s_update_poki_scaling(_inst, _other);};gml_Script_s_update_gamepad(_inst,_other);if(yyGetBool(global.gmldebug)){gml_Script_s_debug_window_size(_inst,_other);};}function gml_Object_obj_master_Other_75(_inst,_other){if(yyGetBool(ds_exists(g_pBuiltIn.get_async_load(),1))){{gml_Script_slog(_inst,_other,yyfplus("Async_System: ",__yy_gml_errCheck(string(ds_map_find_value(g_pBuiltIn.get_async_load(),"event_type")))));var ___sw1938___=ds_map_find_value(g_pBuiltIn.get_async_load(),"event_type");var ___swc1939___=-1;if(yyCompareVal(___sw1938___, "audio_system_status",g_GMLMathEpsilon,false)==0){___swc1939___=0;}switch(___swc1939___){case 0:{if(!yyGetBool(global.gmlbrowser)){return;};gml_Script_s_update_music(_inst,_other);break;}};gml_Script_s_gamepad_async(_inst,_other);};};}// /// @description Debug RoomName function gml_Object_obj_master_Other_4(_inst,_other){gml_Script_slogf(_inst,_other,"\nROOM: %1",room_get_name(g_pBuiltIn.get_current_room()));gml_Script_slogf(_inst,_other,"gamepad: %1",global.gmlgamepad);}function gml_Object_obj_master_KeyPress_67(_inst, _other){if(!yyGetBool(global.gmldebug)){return;};{var __yy__v2237=GetWithArray(YYASSET_REF(0x00000048));for(var __yy__v2238 in __yy__v2237){if(!__yy__v2237.hasOwnProperty(__yy__v2238))continue;var __yy__v2239=__yy__v2237[__yy__v2238];return;}};{var __yy__v2240=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v2241 in __yy__v2240){if(!__yy__v2240.hasOwnProperty(__yy__v2241))continue;var __yy__v2242=__yy__v2240[__yy__v2241];return;}};if((yyGetBool(!yyGetBool(instance_exists(YYASSET_REF(0x0000004F)))))&&(yyGetBool(!yyGetBool(instance_exists(YYASSET_REF(0x00000048)))))){ {yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit,100);ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_credits_purchased",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_credits_purchased")),10));yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlseason_credits_purchased=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlseason_credits_purchased, 100);audio_play_sound(YYASSET_REF(0x02000012),1,false);gml_Script_s_meter_change(_inst,_other,8,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit,g_pBuiltIn.get_current_room(),"Coins!");};};}function gml_Object_obj_master_KeyPress_83(_inst,_other){if(!yyGetBool(global.gmldebug)){return;};{var __yy__v2243=GetWithArray(YYASSET_REF(0x00000048));for(var __yy__v2244 in __yy__v2243){if(!__yy__v2243.hasOwnProperty(__yy__v2244))continue;var __yy__v2245=__yy__v2243[__yy__v2244];return;}};if((yyGetBool(yyfequal(g_pBuiltIn.get_current_room(), YYASSET_REF(0x0300000E))))&&(yyGetBool(!yyGetBool(instance_exists(YYASSET_REF(0x0000004F)))))&&(yyGetBool(!yyGetBool(instance_exists(YYASSET_REF(0x00000048)))))){{if(yyGetBool(keyboard_check(17))){{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gml_Script_s_skip_to_week(_inst,_other,gml_Script_s_get_skip_to_week(_inst,_other));};}else {{gml_Script_s_skip_to_week(_inst,_other,18);};};gml_Script_s_competitions_status_update(_inst,_other);gml_Script_s_update_human_fixtures(_inst,_other);};}else { {if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstage=(-11);room_goto(YYASSET_REF(0x0300000E));};}else {{gml_Script_s_start_new_season(_inst,_other,false);};};};};return;};};}function gml_Object_obj_master_KeyPress_48(_inst,_other){if(!yyGetBool(global.gmldebug)){return;};{var __yy__v2246=GetWithArray(YYASSET_REF(0x00000048));for(var __yy__v2247 in __yy__v2246){if(!__yy__v2246.hasOwnProperty(__yy__v2247))continue;var __yy__v2248=__yy__v2246[__yy__v2247]; return;}};gml_Script_s_update_ui_colours(_inst,_other);room_goto(g_pBuiltIn.get_current_room());}function gml_Object_obj_master_KeyPress_66(_inst,_other){if(!yyGetBool(global.gmldebug)){return;};{var __yy__v2249=GetWithArray(YYASSET_REF(0x00000048));for(var __yy__v2250 in __yy__v2249){if(!__yy__v2249.hasOwnProperty(__yy__v2250))continue;var __yy__v2251=__yy__v2249[__yy__v2250];return;}};if((yyGetBool(yyfequal(g_pBuiltIn.get_current_room(),YYASSET_REF(0x0300000E))))&&(yyGetBool(!yyGetBool(instance_exists(YYASSET_REF(0x0000004F)))))&&(yyGetBool(!yyGetBool(instance_exists(YYASSET_REF(0x00000048)))))){ {gml_Script_s_skip_to_week(_inst,_other,gml_Script_s_get_bye_week(_inst,_other));gml_Script_s_competitions_status_update(_inst,_other);gml_Script_s_update_human_fixtures(_inst,_other);};};}function gml_Object_obj_master_KeyPress_78(_inst,_other){if(!yyGetBool(global.gmldebug)){return;};{var __yy__v2252=GetWithArray(YYASSET_REF(0x00000048));for(var __yy__v2253 in __yy__v2252){if(!__yy__v2252.hasOwnProperty(__yy__v2253))continue;var __yy__v2254=__yy__v2252[__yy__v2253];return;}};gml_Script_s_add_news(_inst, _other,"This is the news!##This is the news! This is the news! This is the news! This is the news! This is the news! This is the news! This is the news! This is the news! This is the news! This is the news! This is the news! ");gml_Script_s_check_for_news(_inst,_other);}function gml_Object_obj_master_KeyPress_68(_inst,_other){if(!yyGetBool(global.gmldebug)){return;};{var __yy__v2255=GetWithArray(YYASSET_REF(0x00000048));for(var __yy__v2256 in __yy__v2255){if(!__yy__v2255.hasOwnProperty(__yy__v2256))continue; var __yy__v2257=__yy__v2255[__yy__v2256];return;}};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){return;};if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)){{gml_Script_s_add_news_dyn(_inst,_other,"web","QB wins award!##You won the Retro Bowl MVP award!",gml_Script_s_get_qb_pmap(_inst,_other));gml_Script_s_check_for_news(_inst,_other);};};}function gml_Object_obj_master_KeyPress_82(_inst,_other){if(!yyGetBool(global.gmldebug)){return;};{var __yy__v2258=GetWithArray(YYASSET_REF(0x00000048)); for(var __yy__v2259 in __yy__v2258){if(!__yy__v2258.hasOwnProperty(__yy__v2259))continue;var __yy__v2260=__yy__v2258[__yy__v2259];return;}};gml_Script_s_show_rm_winners(_inst,_other,1,(-1),"v_gold","",kgml_Script_btn_click_Home,false);}function gml_Object_obj_camera_Create_0(_inst,_other){gml_Script_slog(_inst,_other,"obj_camera.create");gml_Script_s_create_camera(_inst,_other);}function gml_Object_obj_camera_Alarm_0(_inst,_other){window_center();{var __yy__v2261=GetWithArray(YYASSET_REF(0x00000019));for(var __yy__v2262 in __yy__v2261){ if(!__yy__v2261.hasOwnProperty(__yy__v2262))continue;var __yy__v2263=__yy__v2261[__yy__v2262];{gml_Script_s_pause_btn_recenter(__yy__v2263,_inst);if((yyGetBool(variable_instance_exists(__yy__v2263.id,"is_paused")))&&(yyGetBool(__yy__v2263.gmlis_paused))){gml_Script_s_pause_options_recenter(__yy__v2263,_inst);};}}};{var __yy__v2264=GetWithArray(YYASSET_REF(0x0000007A));for(var __yy__v2265 in __yy__v2264){if(!__yy__v2264.hasOwnProperty(__yy__v2265))continue;var __yy__v2266=__yy__v2264[__yy__v2265];gml_Script_s_btn_audible_reposition(__yy__v2266, _inst);}};{var __yy__v2267=GetWithArray(YYASSET_REF(0x0000007B));for(var __yy__v2268 in __yy__v2267){if(!__yy__v2267.hasOwnProperty(__yy__v2268))continue;var __yy__v2269=__yy__v2267[__yy__v2268];gml_Script_s_btn_audible_reposition(__yy__v2269,_inst);}};{var __yy__v2270=GetWithArray(YYASSET_REF(0x0000007C));for(var __yy__v2271 in __yy__v2270){if(!__yy__v2270.hasOwnProperty(__yy__v2271))continue;var __yy__v2272=__yy__v2270[__yy__v2271];gml_Script_s_btn_fieldgoal_reposition(__yy__v2272,_inst);}};{var __yy__v2273=GetWithArray(YYASSET_REF(0x00000020)); for(var __yy__v2274 in __yy__v2273){if(!__yy__v2273.hasOwnProperty(__yy__v2274))continue;var __yy__v2275=__yy__v2273[__yy__v2274];gml_Script_s_btn_kickoff_recenter(__yy__v2275,_inst);}};{var __yy__v2276=GetWithArray(YYASSET_REF(0x0000004F));for(var __yy__v2277 in __yy__v2276){if(!__yy__v2276.hasOwnProperty(__yy__v2277))continue;var __yy__v2278=__yy__v2276[__yy__v2277];gml_Script_s_message_recenter(__yy__v2278,_inst);}};}function gml_Object_obj_camera_Step_2(_inst,_other){if(yyGetBool(is_undefined(_inst.gmlzoom))){ {gml_Script_s_create_camera(_inst,_other);return;};};if((yyGetBool(global.gmlbrowser))||(yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),21)))){{if((yyGetBool(yyfnotequal(_inst.gmldisplay_width,display_get_width())))||(yyGetBool(yyfnotequal(_inst.gmldisplay_height,display_get_height())))){gml_Script_s_create_camera(_inst,_other);};};};var gml_cur_x=camera_get_view_x(g_pBuiltIn.view_camera[__yy_gml_array_check_index(0,g_pBuiltIn.view_camera)]);var gml_cur_y=camera_get_view_y(g_pBuiltIn.view_camera[__yy_gml_array_check_index(0, g_pBuiltIn.view_camera)]);var gml_x=gml_cur_x;var gml_y=gml_cur_y;var gmldes_zoom=1.2;var gml_spd=0.03;var gml_pan=yyftime(__yy_gml_errCheck(_inst.gmlview_width),__yy_gml_errCheck(_inst.gmlzoom));{var __yy__v2279=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v2280 in __yy__v2279){if(!__yy__v2279.hasOwnProperty(__yy__v2280))continue;var __yy__v2281=__yy__v2279[__yy__v2280];{var ___sw1948___=__yy__v2281.gmlstate;var ___swc1949___=-1;if(yyCompareVal(___sw1948___,1,g_GMLMathEpsilon,false)==0){___swc1949___=0; }switch(___swc1949___){case 0:{if(yyfnotequal(__yy__v2281.gmlcomm_stage,14)){gmldes_zoom=2;};gml_x=1300;if((yyGetBool(global.gmlexhibition))&&(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayerteamindex,(-1))))){{gml_Script_s_force_kick_direction(__yy__v2281,_inst);var ___sw1950___=__yy__v2281.gmldrivedir;var ___swc1951___=-1;if(yyCompareVal(___sw1950___,(-1),g_GMLMathEpsilon,false)==0){___swc1951___=0;}else if(yyCompareVal(___sw1950___,1,g_GMLMathEpsilon,false)==0){___swc1951___=1; }switch(___swc1951___){case 0:{gml_x=yyfminus(gml_x,yyftime(__yy_gml_errCheck(__yy__v2281.gmlscrimmage),20));break;}case 1:{gml_x=yyfplus(gml_x,yyftime(__yy_gml_errCheck(__yy__v2281.gmlscrimmage),20));break;}};};}else {{var ___sw1952___=__yy__v2281.gmldrivedir;var ___swc1953___=-1;if(yyCompareVal(___sw1952___,(-1),g_GMLMathEpsilon,false)==0){___swc1953___=0;}else if(yyCompareVal(___sw1952___,1,g_GMLMathEpsilon,false)==0){___swc1953___=1;}switch(___swc1953___){case 0:{if(yyfequal(__yy__v2281.gmlpossession, __yy__v2281.gmlhuman_team)){gml_x=yyfminus(gml_x,yyftime(__yy_gml_errCheck(__yy__v2281.gmlscrimmage),20));}else {gml_x=yyfplus(gml_x,yyftime(__yy_gml_errCheck(__yy__v2281.gmlscrimmage),20));};break;}case 1:{if(yyfequal(__yy__v2281.gmlpossession,__yy__v2281.gmlhuman_team)){gml_x=yyfplus(gml_x,yyftime(__yy_gml_errCheck(__yy__v2281.gmlscrimmage),20));}else {gml_x=yyfminus(gml_x,yyftime(__yy_gml_errCheck(__yy__v2281.gmlscrimmage),20));};break;}};};};var ___sw1954___=__yy__v2281.gmlcomm_stage;var ___swc1955___=-1; if(yyCompareVal(___sw1954___,12,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1954___,13,g_GMLMathEpsilon,false)==0){___swc1955___=0;}else if(yyCompareVal(___sw1954___,0,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1954___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1954___,17,g_GMLMathEpsilon,false)==0){___swc1955___=1;}switch(___swc1955___){case 0:{if((yyGetBool(yyfnotequal(__yy__v2281.gmlquarter,3)))&&(yyGetBool(yyfnotequal(__yy__v2281.gmlquarter,5)))){break;};}case 1:{gml_spd=0.15;gml_x=1300; break;}default :{break;}};gml_x=yyfminus(gml_x,yyftime(__yy_gml_errCheck(gml_pan),0.5));break;}default :{break;}};}}};{var __yy__v2282=GetWithArray(global.gmlmaster_ball);for(var __yy__v2283 in __yy__v2282){if(!__yy__v2282.hasOwnProperty(__yy__v2283))continue;var __yy__v2284=__yy__v2282[__yy__v2283];{var gmlby=__yy__v2284.y;if(yyGetBool(gml_Script_s_aiming(__yy__v2284,_inst))){gmlby=280;};gml_x=yyfminus(__yy_gml_errCheck(__yy__v2284.x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gml_pan),0.5)));gml_y=yyfminus(__yy_gml_errCheck(gmlby), __yy_gml_errCheck(yyftime(yyftime(__yy_gml_errCheck(_inst.gmlview_height),__yy_gml_errCheck(_inst.gmlzoom)),0.5)));if((yyGetBool(__yy__v2284.gmlholder))&&(yyGetBool(gml_Script_s_aiming(__yy__v2284,_inst)))){{var gmldist=gml_Script_s_get_distance_to_furthest_teammate(__yy__v2284,_inst,__yy__v2284.gmlholder);gmldes_zoom=lerp(yyfdivide(600,__yy_gml_errCheck(gmldist)),2,1.6);gmldes_zoom=clamp(gmldes_zoom,1.6,2);if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldrivedir,(-1))){gml_x=yyfminus(__yy_gml_errCheck(__yy__v2284.x), __yy_gml_errCheck(yyftime(__yy_gml_errCheck(gml_pan),0.6)));}else {gml_x=yyfminus(__yy_gml_errCheck(__yy__v2284.x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gml_pan),0.4)));};};};if((yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlkicking))||(yyGetBool(gml_Script_s_is_kickoff(__yy__v2284,_inst,false)))){{gml_x=yyfminus(__yy_gml_errCheck(__yy__v2284.x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gml_pan),0.5)));gmldes_zoom=1.9;};};}}};if(!yyGetBool(ds_map_find_value(yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlmap_options,"op_zoom"))){_inst.gmlzoom=2;}else {_inst.gmlzoom=lerp(_inst.gmlzoom,gmldes_zoom,0.02);};camera_set_view_size(g_pBuiltIn.view_camera[__yy_gml_array_check_index(0,g_pBuiltIn.view_camera)],yyftime(__yy_gml_errCheck(_inst.gmlview_width),__yy_gml_errCheck(_inst.gmlzoom)),yyftime(__yy_gml_errCheck(_inst.gmlview_height),__yy_gml_errCheck(_inst.gmlzoom)));var gmlcam_w=camera_get_view_width(g_pBuiltIn.view_camera[__yy_gml_array_check_index(0,g_pBuiltIn.view_camera)]); var gmlcam_h=camera_get_view_height(g_pBuiltIn.view_camera[__yy_gml_array_check_index(0,g_pBuiltIn.view_camera)]);gml_x=clamp(lerp(gml_cur_x,gml_x,gml_spd),0,yyfminus(__yy_gml_errCheck(g_pBuiltIn.room_width),__yy_gml_errCheck(gmlcam_w)));gml_y=clamp(lerp(gml_cur_y,gml_y,gml_spd),0,yyfminus(__yy_gml_errCheck(g_pBuiltIn.room_height),__yy_gml_errCheck(gmlcam_h)));camera_set_view_pos(g_pBuiltIn.view_camera[__yy_gml_array_check_index(0,g_pBuiltIn.view_camera)],gml_x,gml_y);}function gml_Object_obj_camera_Other_4(_inst, _other){g_pBuiltIn.set_view_enable(true);g_pBuiltIn.view_visible[__yy_gml_array_check_index_set(0)]=true;}function gml_Object_obj_camera_Other_5(_inst,_other){if(!yyGetBool(global.gmlbrowser)){{gml_Script_s_set_desktop_dev_window_size(_inst,_other);display_set_gui_size(480,270);surface_resize(g_pBuiltIn.application_surface,480,270);window_center();};};}function gml_Object_obj_scanlines_Create_0(_inst,_other){gml_Script_slog(_inst,_other,"------> Create: obj_scanlines");{var __yy__v2285=GetWithArray(YYASSET_REF(0x00000062)); for(var __yy__v2286 in __yy__v2285){if(!__yy__v2285.hasOwnProperty(__yy__v2286))continue;var __yy__v2287=__yy__v2285[__yy__v2286];_inst.gmlon=ds_map_find_value(__yy__v2287.gmlmap_options,"op_scanlines");}};}function gml_Object_obj_scanlines_Draw_75(_inst,_other){var gmlgw=display_get_gui_width();var gmlgh=display_get_gui_height();var gmlcol=global.gmlc_background;if(yyfequal(g_pBuiltIn.get_current_room(),YYASSET_REF(0x03000001))){gmlcol=0;};if((yyGetBool(yyfequal(g_pBuiltIn.get_current_room(),YYASSET_REF(0x03000000))))&&(yyGetBool(!yyGetBool(instance_exists(YYASSET_REF(0x0000004F)))))){ gmlcol=0;};if(yyfequal(g_pBuiltIn.get_current_room(),YYASSET_REF(0x03000011))){gmlcol=0;};draw_rectangle_color((-1080),(-1080),(-1),1080,gmlcol,gmlcol,gmlcol,gmlcol,0);draw_rectangle_color(gmlgw,(-1080),yyfplus(__yy_gml_errCheck(gmlgw),1080),1080,gmlcol,gmlcol,gmlcol,gmlcol,0);draw_rectangle_color((-1080),(-1080),yyfplus(__yy_gml_errCheck(gmlgw),1080),(-1),gmlcol,gmlcol,gmlcol,gmlcol,0);draw_rectangle_color((-1080),gmlgh,yyfplus(__yy_gml_errCheck(gmlgw),1080),yyfplus(__yy_gml_errCheck(gmlgh),1080), gmlcol,gmlcol,gmlcol,gmlcol,0);var gml_on=_inst.gmlon;var gmlalf=0.08;var gmlscl=0.5;{var __yy__v2288=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v2289 in __yy__v2288){if(!__yy__v2288.hasOwnProperty(__yy__v2289))continue;var __yy__v2290=__yy__v2288[__yy__v2289];{if(yyfequal(__yy__v2290.gmlstate,3)){gml_on=true;};}}};if(yyGetBool(gml_on)){{draw_sprite_tiled_ext(_inst,YYASSET_REF(0x010000B1),0,(-540),(-540),gmlscl,gmlscl,16777215,gmlalf);};};if((yyGetBool(instance_exists(YYASSET_REF(0x00000062))))&&(yyGetBool(yyfgreater(yyInst(_inst, _other,YYASSET_REF(0x00000062)).alarm[__yy_gml_array_check_index(1,yyInst(_inst,_other,YYASSET_REF(0x00000062)).alarm)],0)))){{draw_set_font(global.gmlfnt_small_flex);draw_set_halign(2);var gmlgx=display_get_gui_width();var gmlgy=display_get_gui_height();draw_set_color(0);draw_set_alpha(0.75);draw_rectangle(yyfminus(__yy_gml_errCheck(gmlgx),110),yyfminus(__yy_gml_errCheck(gmlgy),16),gmlgx,gmlgy,0);draw_set_color(16777215);draw_set_alpha(1);gml_Script_draw_hd_text(_inst,_other,yyfminus(__yy_gml_errCheck(gmlgx), 6),yyfminus(__yy_gml_errCheck(gmlgy),8),gml_Script_s_str(_inst,_other,"ui_Connecting"));draw_sprite_ext(_inst,YYASSET_REF(0x01000066),0,yyfminus(__yy_gml_errCheck(gmlgx),102),yyfminus(__yy_gml_errCheck(gmlgy),7),1,1,yyfmod(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),5)),360),16777215,1);};};if(yyfequal(window_get_cursor(),(-1))){{draw_set_alpha(0.1);var gmlmx=device_mouse_x_to_gui(0);var gmlmy=device_mouse_y_to_gui(0);draw_circle_color(gmlmx,gmlmy,4,16777215,16777215, 0);draw_set_alpha(1);};};if((yyGetBool(gml_Script_s_is_debug_desktop(_inst,_other)))&&(yyGetBool(!yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other))))){{draw_set_font(global.gmlfnt_small_flex);gml_Script_draw_hd_text(_inst,_other,yyfdivide(__yy_gml_errCheck(display_get_gui_width()),2),yyfminus(__yy_gml_errCheck(display_get_gui_height()),20),"NO TOUCH");};};}function gml_Object_obj_scanlines_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlon=false;}function gml_Object_obj_intercept_point_Create_0(_inst, _other){_inst.gmlpx=0;_inst.gmlpy=0;_inst.gmlintercept_AB=0;_inst.gmlintercept_CD=0;_inst.gmlintercept=false;}function gml_Object_obj_credit_Create_0(_inst,_other){_inst.gmlcreation_time=g_pBuiltIn.get_current_time();}function gml_Object_obj_credit_Destroy_0(_inst,_other){var ___sw1958___=_inst.gmltype;var ___swc1959___=-1;if(yyCompareVal(___sw1958___,1,g_GMLMathEpsilon,false)==0){___swc1959___=0;}else if(yyCompareVal(___sw1958___,2,g_GMLMathEpsilon,false)==0){___swc1959___=1;}switch(___swc1959___){case 0:{ yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit=yyfplus(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_credit,_inst.gmlvalue);break;}case 1:{if(!yyGetBool(is_undefined(_inst.gmlpmap))){ds_map_set(_inst.gmlpmap,"rating",yyfplus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"rating")),1));};break;}};}function gml_Object_obj_credit_Step_0(_inst,_other){var ___sw1962___=_inst.gmlstage;var ___swc1963___=-1;if(yyCompareVal(___sw1962___,0,g_GMLMathEpsilon,false)==0){___swc1963___=0; }else if(yyCompareVal(___sw1962___,1,g_GMLMathEpsilon,false)==0){___swc1963___=1;}else if(yyCompareVal(___sw1962___,2,g_GMLMathEpsilon,false)==0){___swc1963___=2;}switch(___swc1963___){case 0:{_inst.image_xscale=yyfplus(_inst.image_xscale,0.2);_inst.image_yscale=_inst.image_xscale;if(yyfgreaterequal(_inst.image_xscale,_inst.gmldes_scale)){(g_yyPrePostObject__=_inst.gmlstage,_inst.gmlstage=(g_yyPrePostObject__ instanceof Long?_inst.gmlstage.add(1):++_inst.gmlstage),g_yyPrePostObject__);};break;}case 1:{ move_towards_point(_inst,_inst.gmldes_x,_inst.gmldes_y,5);_inst.image_xscale=yyftime(_inst.image_xscale,0.97);_inst.image_yscale=_inst.image_xscale;if(yyfless(point_distance(_inst.x,_inst.y,_inst.gmldes_x,_inst.gmldes_y),5)){(g_yyPrePostObject__=_inst.gmlstage,_inst.gmlstage=(g_yyPrePostObject__ instanceof Long?_inst.gmlstage.add(1):++_inst.gmlstage),g_yyPrePostObject__);};break;}case 2:{instance_destroy(_inst);break;}};}function gml_Object_obj_credit_Draw_0(_inst,_other){}function gml_Object_obj_credit_Draw_75(_inst, _other){draw_self(_inst);}function gml_Object_obj_credit_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlcreation_time=0;_inst.gmlstage=0;_inst.gmldes_x=0;_inst.gmldes_y=0;_inst.gmlvalue=0;_inst.gmldes_scale=4;_inst.gmltype=1;_inst.gmlpmap=(-4);}function gml_Object_obj_kongregate_Create_0(_inst,_other){yyInst(_inst,_other,100252).gmltext=url_get_domain();}function gml_Object_obj_store_async_Create_0(_inst,_other){gml_Script_s_set_up_purchase_ids(_inst,_other);gml_Script_s_iap_init(_inst, _other);}function gml_Object_obj_store_async_Other_66(_inst,_other){var ___sw1966___=g_pBuiltIn.get_os_type();var ___swc1967___=-1;if(yyCompareVal(___sw1966___,4,g_GMLMathEpsilon,false)==0){___swc1967___=0;}else if(yyCompareVal(___sw1966___,3,g_GMLMathEpsilon,false)==0){___swc1967___=1;}switch(___swc1967___){case 0:{gml_Script_s_iap_async_android(_inst,_other);break;}case 1:{gml_Script_s_iap_async_ios(_inst,_other);break;}};}function gml_Object_obj_controller_Create_0(_inst,_other){if(yyGetBool(global.gmlmobile_device)){ os_powersave_enable(false);};gml_Script_s_sound_audience_idle(_inst,_other);gml_Script_s_qb_mode_update_resting(_inst,_other);if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)){yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlprematch_team_morale_qb=gml_Script_s_get_morale(_inst,_other);};_inst.gmlmyfps=g_pBuiltIn.fps_real;_inst.gmlfps_timer=0;global.gmlreplay_frame=0;global.gmlreplay_tick=0;global.gmlreplay_end=0;global.gmlreplay_do=false;global.gmlreplay_drag_x=0;global.gmlpoki_done_post_match_reward=false; _inst.gmldifficulty=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsuppress_difficulty;var ___sw1974___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_difficulty;var ___swc1975___=-1;if(yyCompareVal(___sw1974___,0,g_GMLMathEpsilon,false)==0){___swc1975___=0;}else if(yyCompareVal(___sw1974___,1,g_GMLMathEpsilon,false)==0){___swc1975___=1;}else if(yyCompareVal(___sw1974___,2,g_GMLMathEpsilon,false)==0){___swc1975___=2;}else if(yyCompareVal(___sw1974___,3,g_GMLMathEpsilon,false)==0){___swc1975___=3; }else if(yyCompareVal(___sw1974___,4,g_GMLMathEpsilon,false)==0){___swc1975___=4;}switch(___swc1975___){case 0:{break;}case 1:{_inst.gmldifficulty=7;break;}case 2:{_inst.gmldifficulty=2;break;}case 3:{_inst.gmldifficulty=(-5);break;}case 4:{_inst.gmldifficulty=(-5);break;}};_inst.gmlstate=1;_inst.gmlcomm_stage=0;_inst.gmlcomm_next_stage=0;_inst.gmllast_stage=0;_inst.gmltap_msg="";_inst.gmlcomm_txt=string_upper(gml_Script_s_str(_inst,_other,"match_GetReady"));_inst.gmlcomm_proceed=false;_inst.gmlcomm_defender=(-4); _inst.gmlcomm_gain=35;_inst.gmlgoforit=false;_inst.gmlhailmary=false;_inst.gmlposs_txt=1;_inst.gmllast_play=0;_inst.gmlscorer="";_inst.gmlscored_by=(-1);_inst.gmlplay_start=0;_inst.gmlhad_ot_possession=__yy_gml_array_create([]);_inst.gmlhad_ot_possession=__yy_gml_array_check(_inst.gmlhad_ot_possession,1346804767);_inst.gmlhad_ot_possession[__yy_gml_array_check_index_set(0)]=0;_inst.gmlhad_ot_possession[__yy_gml_array_check_index_set(1)]=0;_inst.gmlstate_previous=_inst.gmlstate;_inst.gmlpause_state_previous=_inst.gmlstate; _inst.gmldraw_pause_ui=true;_inst.gmlskip_half=false;_inst.gmlgametimer=0;_inst.gmlminutes=yyfplus(2,__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_matchlength));_inst.gmlseconds=0;_inst.gmltime_subtract=0;_inst.gmltd_time=0;gml_Script_s_reset_match_stats(_inst,_other,false);randomise();_inst.gmlhuman_team=max(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayerteamindex,0);gml_Script_slog(_inst,_other,yyfplus(yyfplus("human_team index:[",__yy_gml_errCheck(string(_inst.gmlhuman_team))), "]"));_inst.gmlteam=__yy_gml_array_create([]);_inst.gmlteam_name=__yy_gml_array_create([]);_inst.gmlteam_score=__yy_gml_array_create([]);_inst.gmlteam_offense=__yy_gml_array_create([]);_inst.gmlteam_defense=__yy_gml_array_create([]);_inst.gmlteam_roster=__yy_gml_array_create([]);_inst.gmlteam=__yy_gml_array_check(_inst.gmlteam,2482654026);_inst.gmlteam[__yy_gml_array_check_index_set(0)]=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteam[__yy_gml_array_check_index(0,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteam)]; _inst.gmlteam[__yy_gml_array_check_index_set(1)]=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteam[__yy_gml_array_check_index(1,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteam)];_inst.gmlteam_name=__yy_gml_array_check(_inst.gmlteam_name,4207176991);_inst.gmlteam_name[__yy_gml_array_check_index_set(0)]=ds_map_find_value(_inst.gmlteam[__yy_gml_array_check_index(0,_inst.gmlteam)],"name");_inst.gmlteam_name[__yy_gml_array_check_index_set(1)]=ds_map_find_value(_inst.gmlteam[__yy_gml_array_check_index(1, _inst.gmlteam)],"name");_inst.gmlteam_score=__yy_gml_array_check(_inst.gmlteam_score,4137727317);_inst.gmlteam_score[__yy_gml_array_check_index_set(0)]=0;_inst.gmlteam_score[__yy_gml_array_check_index_set(1)]=0;_inst.gmlteam_offense=__yy_gml_array_check(_inst.gmlteam_offense,2430042449);_inst.gmlteam_offense[__yy_gml_array_check_index_set(0)]=gml_Script_s_get_team_offense(_inst,_other,_inst.gmlteam[__yy_gml_array_check_index(0,_inst.gmlteam)]);_inst.gmlteam_offense[__yy_gml_array_check_index_set(1)]=gml_Script_s_get_team_offense(_inst, _other,_inst.gmlteam[__yy_gml_array_check_index(1,_inst.gmlteam)]);_inst.gmlteam_defense=__yy_gml_array_check(_inst.gmlteam_defense,2826004556);_inst.gmlteam_defense[__yy_gml_array_check_index_set(0)]=gml_Script_s_get_team_defense(_inst,_other,_inst.gmlteam[__yy_gml_array_check_index(0,_inst.gmlteam)]);_inst.gmlteam_defense[__yy_gml_array_check_index_set(1)]=gml_Script_s_get_team_defense(_inst,_other,_inst.gmlteam[__yy_gml_array_check_index(1,_inst.gmlteam)]);_inst.gmlteam_roster=__yy_gml_array_check(_inst.gmlteam_roster, 488269918);_inst.gmlteam_roster[__yy_gml_array_check_index_set(_inst.gmlhuman_team)]=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster;_inst.gmlteam_roster[__yy_gml_array_check_index_set(!yyGetBool(_inst.gmlhuman_team)?1:0)]=(-4);_inst.gmlteam_conf_tag=__yy_gml_array_check(_inst.gmlteam_conf_tag,753706861);_inst.gmlteam_conf_tag[__yy_gml_array_check_index_set(0)]="";_inst.gmlteam_conf_tag[__yy_gml_array_check_index_set(1)]="";if(yyGetBool(global.gmlexhibition)){{_inst.gmlteam_offense[__yy_gml_array_check_index_set(0)]=gml_Script_s_get_team_offense_exh(_inst, _other,_inst.gmlteam[__yy_gml_array_check_index(0,_inst.gmlteam)],global.gmlexh_roster_p0);_inst.gmlteam_offense[__yy_gml_array_check_index_set(1)]=gml_Script_s_get_team_offense_exh(_inst,_other,_inst.gmlteam[__yy_gml_array_check_index(1,_inst.gmlteam)],global.gmlexh_roster_p1);_inst.gmlteam_defense[__yy_gml_array_check_index_set(0)]=gml_Script_s_get_team_defense_exh(_inst,_other,_inst.gmlteam[__yy_gml_array_check_index(0,_inst.gmlteam)],global.gmlexh_roster_p0);_inst.gmlteam_defense[__yy_gml_array_check_index_set(1)]=gml_Script_s_get_team_defense_exh(_inst, _other,_inst.gmlteam[__yy_gml_array_check_index(1,_inst.gmlteam)],global.gmlexh_roster_p1);_inst.gmlteam_roster[__yy_gml_array_check_index_set(0)]=(yyGetBool(global.gmlexh_use_roster_p0)?global.gmlexh_roster_p0:(-4));_inst.gmlteam_roster[__yy_gml_array_check_index_set(1)]=(yyGetBool(global.gmlexh_use_roster_p1)?global.gmlexh_roster_p1:(-4));global.gmlexh_roster_p0=(-4);global.gmlexh_roster_p1=(-4);gml_Script_slog_roster(_inst,_other,"Ob_control.create first assign",0);gml_Script_slog_roster(_inst, _other,"Ob_control.create first assign",1);};}else {{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{_inst.gmlteam_conf_tag[__yy_gml_array_check_index_set(0)]=gml_Script_s_get_string_conf_tag(_inst,_other,_inst.gmlteam[__yy_gml_array_check_index(0,_inst.gmlteam)],_inst.gmlteam[__yy_gml_array_check_index(1,_inst.gmlteam)]);_inst.gmlteam_conf_tag[__yy_gml_array_check_index_set(1)]=gml_Script_s_get_string_conf_tag(_inst,_other,_inst.gmlteam[__yy_gml_array_check_index(1,_inst.gmlteam)],_inst.gmlteam[__yy_gml_array_check_index(0, _inst.gmlteam)]);};};};};_inst.gmlpossession=irandom(1);_inst.gmllast_h2h_possession=(-1);_inst.gmlkickoffteam=_inst.gmlpossession;_inst.gmlquarter=1;_inst.gmlbzoom=2;_inst.gmldrivedir=choose((-1),1);_inst.gmlot_count=0;if(yyGetBool(global.gmlexhibition)){{if(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayerteamindex,1)){_inst.gmldrivedir=1;}else {_inst.gmldrivedir=(-1);};};};if(yyfnotequal(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_drivedir"),0)){ _inst.gmldrivedir=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_drivedir");};_inst.gmldown=99;_inst.gmlyards=0;_inst.gmlscrimmage=0;_inst.gmldrives=0;_inst.gmlphase=0;_inst.gmlsnaps=0;_inst.gmlkicks=0;_inst.gmlkicking=0;_inst.gmlroute_alpha=2;_inst.gmlrunning_play=false;_inst.gmlaudibles=(-1);_inst.gmlaudibles_p2=(-1);_inst.gmltimeouts=clamp(yyfplus(2,__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_matchlength)),2,3);_inst.gmltimeouts_p2=clamp(yyfplus(2, __yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_matchlength)),2,3);_inst.gmltimeout_called=false;if((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear,1)))&&(yyGetBool(!yyGetBool(global.gmlexhibition)))){_inst.gmltimeouts=0;};_inst.gmldrop_happened=false;_inst.gmldist_td=0;_inst.gmlx_scrim=0;_inst.gmlx_yards=0;_inst.gmly_scrim=0;_inst.gmly_down=yyfplus(300,__yy_gml_errCheck(irandom_range((-100),100)));_inst.gmldefensive_cover=irandom(3);_inst.gmldefense_success=__yy_gml_array_create([]); _inst.gmldefense_success=__yy_gml_array_check(_inst.gmldefense_success,2468983040);_inst.gmldefense_success[__yy_gml_array_check_index_set(0)]=0;_inst.gmldefense_success[__yy_gml_array_check_index_set(1)]=0;_inst.gmldefense_success[__yy_gml_array_check_index_set(2)]=0;_inst.gmldefense_success[__yy_gml_array_check_index_set(3)]=0;_inst.gmldefense_success[__yy_gml_array_check_index_set(4)]=0;;;global.gmlflickVelX=0;global.gmlflickVelY=0;;global.gmlsnd_tackle_time=0;instance_create_layer(80,300,"Players", YYASSET_REF(0x00000073));instance_create_layer(80,276,"Players",YYASSET_REF(0x00000074));instance_create_layer(80,332,"Players",YYASSET_REF(0x00000074));instance_create_layer(2520,300,"Players",YYASSET_REF(0x00000073));instance_create_layer(2520,276,"Players",YYASSET_REF(0x00000074));instance_create_layer(2520,332,"Players",YYASSET_REF(0x00000074));_inst.gmlpractice_count=0;_inst.gmlpractice_success=0;_inst.gmlpractice_score_qb_mode=0;_inst.gmlpractice_chain_qb_mode=0;if(yyGetBool(yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlgamepractice)){gml_Script_s_set_up_practice(_inst,_other);};camera_set_view_pos(g_pBuiltIn.view_camera[__yy_gml_array_check_index(0,g_pBuiltIn.view_camera)],yyfminus(1300,__yy_gml_errCheck(yyftime(__yy_gml_errCheck(camera_get_view_width(g_pBuiltIn.view_camera[__yy_gml_array_check_index(0,g_pBuiltIn.view_camera)])),0.5))),0);_inst.gmlfield_type=0;var gmltmap=_inst.gmlteam[__yy_gml_array_check_index(1,_inst.gmlteam)];var ___sw1976___=real(ds_map_find_value(gmltmap,"roof")); var ___swc1977___=-1;if(yyCompareVal(___sw1976___,1,g_GMLMathEpsilon,false)==0){___swc1977___=0;}else if(yyCompareVal(___sw1976___,2,g_GMLMathEpsilon,false)==0){___swc1977___=1;}switch(___swc1977___){case 0:{_inst.gmlfield_type=3;gml_Script_slog(_inst,_other,"FIELD_DOME1");break;}case 1:{_inst.gmlfield_type=4;gml_Script_slog(_inst,_other,"FIELD_DOME2");break;}};instance_create_layer(0,0,"Weather",YYASSET_REF(0x00000076));if(yyGetBool(instance_exists(YYASSET_REF(0x00000076)))){{var ___sw1978___=yyInst(_inst, _other,YYASSET_REF(0x00000076)).gmltype;var ___swc1979___=-1;if(yyCompareVal(___sw1978___,2,g_GMLMathEpsilon,false)==0){___swc1979___=0;}else if(yyCompareVal(___sw1978___,1,g_GMLMathEpsilon,false)==0){___swc1979___=1;}switch(___swc1979___){case 0:{_inst.gmlfield_type=1;break;}case 1:{_inst.gmlfield_type=2;break;}};};};if((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,gml_Script_s_get_week_superbowl(_inst,_other))))||(yyGetBool(gml_Script_s_is_co_bowl_week(_inst,_other,yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlweek)))){{gml_Script_slogf(_inst,_other,"game is bowl");_inst.gmlfield_type=5;};};gml_Script_s_update_music(_inst,_other);if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice)){{_inst.gmlfield_type=6;if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)){_inst.gmlfield_type=7;};};};_inst.gmlshd_helmet=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_helmet_home;_inst.gmlshd_shirt=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_shirt_home; _inst.gmlshd_pants=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_pants_home;_inst.gmlshd_logo=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_logo_home;_inst.gmlshd_socks1=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_socks1_home;_inst.gmlshd_socks2=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_socks2_home;_inst.gmlc_endzone=make_color_rgb(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_endzone_home[__yy_gml_array_check_index(2,yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlcol_endzone_home)]),256),yyftime(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_endzone_home[__yy_gml_array_check_index(1,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_endzone_home)]),256),yyftime(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_endzone_home[__yy_gml_array_check_index(0,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_endzone_home)]),256));var gmlcol_h=clamp(color_get_hue(_inst.gmlc_endzone),0,255);var gmlcol_s=clamp(yyfminus(__yy_gml_errCheck(color_get_saturation(_inst.gmlc_endzone)), 25),0,255);var gmlcol_v=clamp(yyfplus(__yy_gml_errCheck(color_get_value(_inst.gmlc_endzone)),20),50,225);_inst.gmlc_endzone=make_color_hsv(gmlcol_h,gmlcol_s,gmlcol_v);_inst.gmlcomm_col_h=_inst.gmlc_endzone;_inst.gmlcomm_col_a=make_color_rgb(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_endzone_away[__yy_gml_array_check_index(2,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_endzone_away)]),256),yyftime(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_endzone_away[__yy_gml_array_check_index(1, yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_endzone_away)]),256),yyftime(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_endzone_away[__yy_gml_array_check_index(0,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_endzone_away)]),256));if(yyfequal(_inst.gmlcomm_col_h,16777215)){_inst.gmlcomm_col_h=make_color_rgb(175,175,175);};if(yyfequal(_inst.gmlcomm_col_a,16777215)){_inst.gmlcomm_col_a=make_color_rgb(175,175,175);};if(yyfequal(_inst.gmlcomm_col_a,_inst.gmlcomm_col_h)){ _inst.gmlcomm_col_a=8421504;};if(yyfgreater(colour_get_value(_inst.gmlcomm_col_h),200)){_inst.gmlcomm_col_h=merge_color(_inst.gmlcomm_col_h,0,0.2);};if(yyfgreater(colour_get_value(_inst.gmlcomm_col_a),200)){_inst.gmlcomm_col_a=merge_color(_inst.gmlcomm_col_a,0,0.2);};if(yyfless(colour_get_value(_inst.gmlcomm_col_h),50)){_inst.gmlcomm_col_h=merge_color(_inst.gmlcomm_col_h,16777215,0.2);};if(yyfless(colour_get_value(_inst.gmlcomm_col_a),50)){_inst.gmlcomm_col_a=merge_color(_inst.gmlcomm_col_a,16777215, 0.2);};gml_Script_slog_roster(_inst,_other,"Create obj_contr. A",0);_inst.gmlteam_roster[__yy_gml_array_check_index_set(0)]=gml_Script_s_sort_players(_inst,_other,_inst.gmlteam_roster[__yy_gml_array_check_index(0,_inst.gmlteam_roster)],3);gml_Script_s_tag_backups_internal(_inst,_other,_inst.gmlteam_roster[__yy_gml_array_check_index(0,_inst.gmlteam_roster)]);_inst.gmlteam_roster[__yy_gml_array_check_index_set(0)]=gml_Script_s_sort_players(_inst,_other,_inst.gmlteam_roster[__yy_gml_array_check_index(0, _inst.gmlteam_roster)],4);gml_Script_slog_roster(_inst,_other,"Create obj_contr. A",1);_inst.gmlteam_roster[__yy_gml_array_check_index_set(1)]=gml_Script_s_sort_players(_inst,_other,_inst.gmlteam_roster[__yy_gml_array_check_index(1,_inst.gmlteam_roster)],3);gml_Script_s_tag_backups_internal(_inst,_other,_inst.gmlteam_roster[__yy_gml_array_check_index(1,_inst.gmlteam_roster)]);_inst.gmlteam_roster[__yy_gml_array_check_index_set(1)]=gml_Script_s_sort_players(_inst,_other,_inst.gmlteam_roster[__yy_gml_array_check_index(1, _inst.gmlteam_roster)],4);gml_Script_s_tag_backups(_inst,_other);{var __yy__v2291=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v2292 in __yy__v2291){if(!__yy__v2291.hasOwnProperty(__yy__v2292))continue;var __yy__v2293=__yy__v2291[__yy__v2292];__yy__v2293.gmlroster=gml_Script_s_sort_players(__yy__v2293,_inst,__yy__v2293.gmlroster,4);}};_inst.gmltouchdowns=0;_inst.gmlstarqb=false;_inst.gmlstarplayer=false;if(yyfnotequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster,(-4))){{var gmli=0;for(; yyfless(gmli,ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster,gmli);if((yyGetBool(gmlpmap))&&(yyGetBool(!yyGetBool(gml_Script_s_player_benched(_inst,_other,gmlpmap))))&&(yyGetBool(!yyGetBool(ds_map_find_value(gmlpmap,"backup"))))&&(yyGetBool(yyfgreaterequal(ds_map_find_value(gmlpmap,"condition"), 0)))){{_inst.gmlstarplayer=true;if(yyfequal(ds_map_find_value(gmlpmap,"position"),1)){_inst.gmlstarqb=true;};};};}};};};gml_Script_slog(_inst,_other,yyfplus(yyfplus("starqb: [",__yy_gml_errCheck(string(_inst.gmlstarqb))),"]"));gml_Script_slog(_inst,_other,yyfplus(yyfplus("starplayer: [",__yy_gml_errCheck(string(_inst.gmlstarplayer))),"]"));_inst.gmlcontrol_alpha=1;var gmlcheer1=YYASSET_REF(0x0100011D);var gmlcheer2=YYASSET_REF(0x0100012B);var gmlcheer3=YYASSET_REF(0x01000031);_inst.gmlcheer_frame=0; _inst.gmlspr_cl1=choose(gmlcheer1,gmlcheer2);_inst.gmlspr_cl2=choose(gmlcheer2,gmlcheer3);_inst.gmlspr_cl3=choose(gmlcheer1,gmlcheer3);_inst.gmlspr_cl4=choose(gmlcheer1,gmlcheer2);_inst.gmlspr_cl5=choose(gmlcheer2,gmlcheer3);_inst.gmlspr_cl6=choose(gmlcheer1,gmlcheer3);_inst.gmlmobbrow_start_x=0;_inst.gmlmobbrow_start_y=0;_inst.gmlmobbrow_start_time=0;_inst.gmlcollege_overtime=false;_inst.gmlcollege_overtime_round=0;_inst.gmlcollege_overtime_possession=0;gml_Script_s_set_up_button_kickoff(_inst, _other);gml_Script_s_pause_btn_init(_inst,_other);gml_Script_s_debug_bypass(_inst,_other);}function gml_Object_obj_controller_Alarm_0(_inst,_other){gml_Script_slog(_inst,_other,yyfplus("obj_controller_Alarm0: ",__yy_gml_errCheck(gml_Script_s_get_string_ball_state(_inst,_other))));var gmlball=global.gmlmaster_ball;var ___sw1984___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice;var ___swc1985___=-1;if(yyCompareVal(___sw1984___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1984___,3,g_GMLMathEpsilon, false)==0||yyCompareVal(___sw1984___,4,g_GMLMathEpsilon,false)==0){___swc1985___=0;}switch(___swc1985___){case 0:{gml_Script_s_set_up_practice(_inst,_other);return;break;}};if(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,false))){{if(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,8)){{_inst.gmlyards=10;_inst.gmldown=1;_inst.gmlscrimmage=(-15);gml_Script_s_start_replay(_inst,_other,0);return;};}else {if(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,20)){{gml_Script_slog(_inst,_other,"KO Touchback"); _inst.gmlyards=10;_inst.gmldown=1;_inst.gmlscrimmage=(-25);gml_Script_s_start_replay(_inst,_other,0);return;};};};};};var ___sw1986___=yyInst(_inst,_other,gmlball).gmlstate;var ___swc1987___=-1;if(yyCompareVal(___sw1986___,0,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1986___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1986___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1986___,5,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1986___,6,g_GMLMathEpsilon,false)==0){___swc1987___=0;}else if(yyCompareVal(___sw1986___, 20,g_GMLMathEpsilon,false)==0){___swc1987___=1;}else if(yyCompareVal(___sw1986___,21,g_GMLMathEpsilon,false)==0){___swc1987___=2;}else if(yyCompareVal(___sw1986___,9,g_GMLMathEpsilon,false)==0){___swc1987___=3;}else if(yyCompareVal(___sw1986___,10,g_GMLMathEpsilon,false)==0){___swc1987___=4;}else if(yyCompareVal(___sw1986___,4,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1986___,8,g_GMLMathEpsilon,false)==0){___swc1987___=5;}else if(yyCompareVal(___sw1986___,7,g_GMLMathEpsilon,false)==0){___swc1987___=6; }else if(yyCompareVal(___sw1986___,11,g_GMLMathEpsilon,false)==0){___swc1987___=7;}else if(yyCompareVal(___sw1986___,12,g_GMLMathEpsilon,false)==0){___swc1987___=8;}else if(yyCompareVal(___sw1986___,13,g_GMLMathEpsilon,false)==0){___swc1987___=9;}else if(yyCompareVal(___sw1986___,14,g_GMLMathEpsilon,false)==0){___swc1987___=10;}else if(yyCompareVal(___sw1986___,15,g_GMLMathEpsilon,false)==0){___swc1987___=11;}else if(yyCompareVal(___sw1986___,16,g_GMLMathEpsilon,false)==0){___swc1987___=12;}else if(yyCompareVal(___sw1986___, 17,g_GMLMathEpsilon,false)==0){___swc1987___=13;}else if(yyCompareVal(___sw1986___,18,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw1986___,19,g_GMLMathEpsilon,false)==0){___swc1987___=14;}switch(___swc1987___){case 0:{if((yyGetBool(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldown,6)))||(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldown,99)))){global.gmlreplay_do=true;};if((yyGetBool((yyGetBool(yyInst(_inst,_other,gmlball).gmlholder))&&(yyGetBool(yyInst(_inst,_other, yyInst(_inst,_other,gmlball).gmlholder).gmloffense))))||(yyGetBool((yyGetBool(yyInst(_inst,_other,gmlball).gmllast_touched_by))&&(yyGetBool(yyInst(_inst,_other,yyInst(_inst,_other,gmlball).gmllast_touched_by).gmloffense))))){{gml_Script_s_start_replay(_inst,_other,1);};}else {{gml_Script_s_action_result(_inst,_other,2);};};break;}case 1:{_inst.gmlyards=10;_inst.gmldown=1;_inst.gmlscrimmage=(-25);gml_Script_s_start_replay(_inst,_other,0);break;}case 2:{_inst.gmlyards=10;_inst.gmldown=1;_inst.gmlscrimmage=25; }case 3:{_inst.gmldefense_success=__yy_gml_array_check(_inst.gmldefense_success,2468983040);_inst.gmldefense_success[__yy_gml_array_check_index_set(_inst.gmldefensive_cover)]=yyfplus(_inst.gmldefense_success[__yy_gml_array_check_index_set(_inst.gmldefensive_cover)],1);global.gmlreplay_do=true;gml_Script_s_start_replay(_inst,_other,3);break;}case 4:{_inst.gmldefense_success=__yy_gml_array_check(_inst.gmldefense_success,2468983040);_inst.gmldefense_success[__yy_gml_array_check_index_set(_inst.gmldefensive_cover)]=yyfplus(_inst.gmldefense_success[__yy_gml_array_check_index_set(_inst.gmldefensive_cover)], 1);gml_Script_s_start_replay(_inst,_other,4);break;}case 5:{if(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,true))){{_inst.gmlyards=10;_inst.gmldown=1;_inst.gmlscrimmage=yyftime(__yy_gml_errCheck(_inst.gmldrivedir),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlball).gmlxdead),1300)),20)));gml_Script_s_start_replay(_inst,_other,0);return;};};if((yyGetBool(yyInst(_inst,_other,gmlball).gmlholder))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,yyInst(_inst, _other,gmlball).gmlholder).gmloffense)))){{if(yyfequal(_inst.gmldrivedir,1)){_inst.gmlscrimmage=yyfplus(_inst.gmlscrimmage,yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlball).gmlxdead),__yy_gml_errCheck(_inst.gmlx_scrim))),20));}else {_inst.gmlscrimmage=yyfplus(_inst.gmlscrimmage,yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(_inst.gmlx_scrim),__yy_gml_errCheck(yyInst(_inst,_other,gmlball).gmlxdead))),20));};_inst.gmldefense_success=__yy_gml_array_check(_inst.gmldefense_success, 2468983040);_inst.gmldefense_success[__yy_gml_array_check_index_set(_inst.gmldefensive_cover)]=yyfplus(_inst.gmldefense_success[__yy_gml_array_check_index_set(_inst.gmldefensive_cover)],1);global.gmlreplay_do=true;gml_Script_s_start_replay(_inst,_other,3);return;};};if((yyGetBool(yyfequal(_inst.gmldrivedir,1)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,gmlball).gmlxdead,_inst.gmlx_yards)))){{_inst.gmlyards=10;_inst.gmldown=1;_inst.gmlscrimmage=yyfplus(_inst.gmlscrimmage,yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(yyInst(_inst, _other,gmlball).gmlxdead),__yy_gml_errCheck(_inst.gmlx_scrim))),20));};}else {if((yyGetBool(yyfequal(_inst.gmldrivedir,(-1))))&&(yyGetBool(yyfless(yyInst(_inst,_other,gmlball).gmlxdead,_inst.gmlx_yards)))){{_inst.gmlyards=10;_inst.gmldown=1;_inst.gmlscrimmage=yyfplus(_inst.gmlscrimmage,yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(_inst.gmlx_scrim),__yy_gml_errCheck(yyInst(_inst,_other,gmlball).gmlxdead))),20));};}else {if((yyGetBool(yyfequal(_inst.gmldrivedir,1)))&&(yyGetBool(yyfgreater(yyInst(_inst, _other,gmlball).gmlxdead,_inst.gmlx_scrim)))){{var gmlgain=yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlball).gmlxdead),__yy_gml_errCheck(_inst.gmlx_scrim))),20);_inst.gmlyards=yyfminus(_inst.gmlyards,gmlgain);_inst.gmldown=yyfplus(_inst.gmldown,1);_inst.gmlscrimmage=yyfplus(_inst.gmlscrimmage,gmlgain);_inst.gmldefense_success=__yy_gml_array_check(_inst.gmldefense_success,2468983040);_inst.gmldefense_success[__yy_gml_array_check_index_set(_inst.gmldefensive_cover)]=yyfplus(_inst.gmldefense_success[__yy_gml_array_check_index_set(_inst.gmldefensive_cover)], 1);};}else {if((yyGetBool(yyfequal(_inst.gmldrivedir,(-1))))&&(yyGetBool(yyfless(yyInst(_inst,_other,gmlball).gmlxdead,_inst.gmlx_scrim)))){{var gmlgain=yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(_inst.gmlx_scrim),__yy_gml_errCheck(yyInst(_inst,_other,gmlball).gmlxdead))),20);_inst.gmlyards=yyfminus(_inst.gmlyards,gmlgain);_inst.gmldown=yyfplus(_inst.gmldown,1);_inst.gmlscrimmage=yyfplus(_inst.gmlscrimmage,gmlgain);_inst.gmldefense_success=__yy_gml_array_check(_inst.gmldefense_success, 2468983040);_inst.gmldefense_success[__yy_gml_array_check_index_set(_inst.gmldefensive_cover)]=yyfplus(_inst.gmldefense_success[__yy_gml_array_check_index_set(_inst.gmldefensive_cover)],1);};}else {if(yyfequal(_inst.gmldrivedir,1)){{var gmlloss=yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(_inst.gmlx_scrim),__yy_gml_errCheck(yyInst(_inst,_other,gmlball).gmlxdead))),20);_inst.gmlyards=yyfplus(_inst.gmlyards,gmlloss);_inst.gmldown=yyfplus(_inst.gmldown,1);_inst.gmlscrimmage=yyfminus(_inst.gmlscrimmage, gmlloss);_inst.gmldefense_success=__yy_gml_array_check(_inst.gmldefense_success,2468983040);_inst.gmldefense_success[__yy_gml_array_check_index_set(_inst.gmldefensive_cover)]=yyfplus(_inst.gmldefense_success[__yy_gml_array_check_index_set(_inst.gmldefensive_cover)],1);};}else {{var gmlloss=yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,gmlball).gmlxdead),__yy_gml_errCheck(_inst.gmlx_scrim))),20);_inst.gmlyards=yyfplus(_inst.gmlyards,gmlloss);_inst.gmldown=yyfplus(_inst.gmldown, 1);_inst.gmlscrimmage=yyfminus(_inst.gmlscrimmage,gmlloss);_inst.gmldefense_success=__yy_gml_array_check(_inst.gmldefense_success,2468983040);_inst.gmldefense_success[__yy_gml_array_check_index_set(_inst.gmldefensive_cover)]=yyfplus(_inst.gmldefense_success[__yy_gml_array_check_index_set(_inst.gmldefensive_cover)],1);};};};};};};gml_Script_slog(_inst,_other,"Alarm[0]=BALL_DOWN");gml_Script_s_start_replay(_inst,_other,0);break;}case 6:{_inst.gmldown=yyfplus(_inst.gmldown,1);gml_Script_slog(_inst,_other, "Alarm[0]=BALL_INCOMPLETE");gml_Script_s_start_replay(_inst,_other,0);break;}case 7:{if(yyfequal(_inst.gmldrivedir,1)){{var gmlloss=yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(_inst.gmlx_scrim),__yy_gml_errCheck(yyInst(_inst,_other,gmlball).gmlxdead))),20);_inst.gmlyards=yyfplus(_inst.gmlyards,gmlloss);_inst.gmldown=yyfplus(_inst.gmldown,1);_inst.gmlscrimmage=yyfminus(_inst.gmlscrimmage,gmlloss);};}else {{var gmlloss=yyfdivide(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(yyInst(_inst,_other, gmlball).gmlxdead),__yy_gml_errCheck(_inst.gmlx_scrim))),20);_inst.gmlyards=yyfplus(_inst.gmlyards,gmlloss);_inst.gmldown=yyfplus(_inst.gmldown,1);_inst.gmlscrimmage=yyfminus(_inst.gmlscrimmage,gmlloss);};};gml_Script_slog(_inst,_other,"Alarm[0]=BALL_SACKED");gml_Script_s_start_replay(_inst,_other,0);break;}case 8:{gml_Script_s_start_replay(_inst,_other,8);break;}case 9:{gml_Script_s_start_replay(_inst,_other,3);break;}case 10:{gml_Script_s_start_replay(_inst,_other,6);break;}case 11:{gml_Script_s_start_replay(_inst, _other,7);break;}case 12:{gml_Script_slog(_inst,_other,"BALL_PRACTICE_SUCCESS");gml_Script_s_end_match(_inst,_other,true);break;}case 13:{break;}case 14:{break;}};}function gml_Object_obj_controller_Alarm_1(_inst,_other){_inst.gmlcomm_proceed=true;}function gml_Object_obj_controller_Step_0(_inst,_other){gml_Script_s_safe_run(_inst,_other,kgml_Script_s_obj_controller_step);}function gml_Object_obj_controller_Draw_64(_inst,_other){if(yyGetBool(global.gmldebug)){{draw_set_font(global.gmlfnt_small_flex);draw_set_valign(1); draw_set_halign(1);gml_Script_draw_hd_text(_inst,_other,yyfdivide(__yy_gml_errCheck(display_get_gui_width()),2),yyfminus(__yy_gml_errCheck(display_get_gui_height()),10),"DEBUG");gml_Script_draw_hd_text(_inst,_other,10,10,yyfplus("Exhibition = ",__yy_gml_errCheck(string(global.gmlexhibition))));gml_Script_draw_hd_text(_inst,_other,30,30,string(gml_Script_s_is_kickoff(_inst,_other,true)));};};if(yyfequal(_inst.gmlstate,3)){{var gmlgw=60;if(yyfequal(_inst.gmldrivedir,1)){gmlgw=display_get_gui_width(); };draw_set_font(global.gmlfnt_flex);draw_set_valign(0);draw_set_halign(1);if(yyfless(yyfmod(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),1000),500)){{draw_set_color(0);gml_Script_draw_hd_text_ext_transformed(_inst,_other,yyfminus(__yy_gml_errCheck(gmlgw),30),8,"R",(-1),(-1),2,2,0);draw_set_color(16777215);gml_Script_draw_hd_text_ext_transformed(_inst,_other,yyfminus(__yy_gml_errCheck(gmlgw),32),6,"R",(-1),(-1),2,2,0);};};draw_set_alpha(0.3);draw_set_halign(2);var gmlstr="";if(yyGetBool(global.gmlexhibition)){ gmlstr=gml_Script_s_str(_inst,_other,"ui_Exhibition");}else {{var ___sw1990___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_difficulty;var ___swc1991___=-1;if(yyCompareVal(___sw1990___,0,g_GMLMathEpsilon,false)==0){___swc1991___=0;}else if(yyCompareVal(___sw1990___,1,g_GMLMathEpsilon,false)==0){___swc1991___=1;}else if(yyCompareVal(___sw1990___,2,g_GMLMathEpsilon,false)==0){___swc1991___=2;}else if(yyCompareVal(___sw1990___,3,g_GMLMathEpsilon,false)==0){___swc1991___=3;}else if(yyCompareVal(___sw1990___, 4,g_GMLMathEpsilon,false)==0){___swc1991___=4;}switch(___swc1991___){case 0:{gmlstr=yyfplus("D",__yy_gml_errCheck(string(yyfminus(16,__yy_gml_errCheck(yyfplus(5,__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsuppress_difficulty)))))));break;}case 1:{gmlstr=gml_Script_s_str(_inst,_other,"ui_Easy");break;}case 2:{gmlstr=gml_Script_s_str(_inst,_other,"ui_Medium");break;}case 3:{gmlstr=gml_Script_s_str(_inst,_other,"ui_Hard");break;}case 4:{gmlstr=gml_Script_s_str(_inst,_other,"ui_Extreme"); break;}};};};{var __yy__v2294=GetWithArray(YYASSET_REF(0x00000076));for(var __yy__v2295 in __yy__v2294){if(!__yy__v2294.hasOwnProperty(__yy__v2295))continue;var __yy__v2296=__yy__v2294[__yy__v2295];if(yyfequal(__yy__v2296.gmltype,2)){draw_set_colour(16711680);};}};draw_set_font(global.gmlfnt_small_flex);gml_Script_draw_hd_text(_inst,_other,yyfminus(__yy_gml_errCheck(display_get_gui_width()),10),yyfminus(__yy_gml_errCheck(display_get_gui_height()),20),gmlstr);draw_set_alpha(1);draw_set_colour(16777215); if(yyGetBool(global.gmlgamepad)){gml_Script_s_draw_gamepad_controls(_inst,_other);};return;};};gml_Script_s_draw_scoreboard(_inst,_other);gml_Script_s_draw_commentary(_inst,_other);gml_Script_s_draw_wind(_inst,_other);if(yyGetBool(global.gmlgamepad)){gml_Script_s_draw_gamepad_controls(_inst,_other);};}function gml_Object_obj_controller_Draw_72(_inst,_other){if(!yyGetBool(global.gmlbrowser)){gml_Script_s_obj_controller_draw_begin(_inst,_other);};}function gml_Object_obj_controller_Draw_0(_inst,_other){ if(yyGetBool(global.gmlbrowser)){gml_Script_s_obj_controller_draw_begin(_inst,_other);};}function gml_Object_obj_controller_KeyPress_13(_inst,_other){if(!yyGetBool(global.gmldebug)){return;};gml_Script_s_force_quit(_inst,_other);}function gml_Object_obj_controller_KeyPress_70(_inst,_other){if(!yyGetBool(global.gmldebug)){return;};if(yyfequal(_inst.gmlstate,2)){{_inst.gmlscrimmage=40;gml_Script_s_set_up_fieldgoal(_inst,_other,1);};};}function gml_Object_obj_controller_KeyPress_80(_inst,_other){if((yyGetBool(yyfequal(g_pBuiltIn.get_os_type(), 0)))||(yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),1)))){gml_Script_s_pause_toggle(_inst,_other);};}function gml_Object_obj_controller_KeyPress_32(_inst,_other){if(!yyGetBool(global.gmldebug)){return;};if(yyfgreater(_inst.alarm[__yy_gml_array_check_index(0,_inst.alarm)],0)){_inst.alarm=__yy_gml_array_check(_inst.alarm,1584050178);_inst.alarm[__yy_gml_array_check_index_set(0)]=1;}else {gml_Script_s_set_up_play(_inst,_other,true);};}function gml_Object_obj_controller_KeyPress_84(_inst,_other){if(!yyGetBool(global.gmldebug)){ return;};_inst.gmlminutes=0;_inst.gmlseconds=0;}function gml_Object_obj_controller_KeyPress_75(_inst,_other){if(!yyGetBool(global.gmldebug)){return;};if(yyfequal(_inst.gmlstate,2)){{if(yyGetBool(keyboard_check(16))){_inst.gmlpossession=!yyGetBool(_inst.gmlpossession);};_inst.gmlscrimmage=(-15);gml_Script_s_set_up_kickoff(_inst,_other);};};}function gml_Object_obj_controller_Gesture_69(_inst,_other){if((yyGetBool(yyfequal(g_pBuiltIn.get_os_type(),21)))&&(yyGetBool(!yyGetBool(global.gmlgamepad)))){{ {var __yy__v2297=GetWithArray(global.gmlmaster_ball);for(var __yy__v2298 in __yy__v2297){if(!__yy__v2297.hasOwnProperty(__yy__v2298))continue;var __yy__v2299=__yy__v2297[__yy__v2298];if(yyfequal(__yy__v2299.gmlstate,2)){return;};}};global.gmlflickVelX=yyfplus(global.gmlflickVelX,ds_map_find_value(g_pBuiltIn.get_event_data(),"diffX"));global.gmlflickVelY=yyfplus(global.gmlflickVelY,ds_map_find_value(g_pBuiltIn.get_event_data(),"diffY"));};};}function gml_Object_obj_controller_Gesture_64(_inst,_other){if(yyfequal(_inst.gmlstate, 3)){gml_Script_s_end_replay(_inst,_other);};}function gml_Object_obj_controller_Gesture_67(_inst,_other){if(yyfequal(_inst.gmlstate,3)){{global.gmlreplay_drag_x=yyfminus(__yy_gml_errCheck(ds_map_find_value(g_pBuiltIn.get_event_data(),"guiposX")),__yy_gml_errCheck(ds_map_find_value(g_pBuiltIn.get_event_data(),"guistartposX")));};};}function gml_Object_obj_controller_Gesture_66(_inst,_other){if(yyfequal(_inst.gmlstate,3)){{global.gmlreplay_drag_x=0;};};}function gml_Object_obj_controller_Gesture_68(_inst, _other){if(yyfequal(_inst.gmlstate,3)){{global.gmlreplay_drag_x=0;};};}function gml_Object_obj_controller_Gesture_65(_inst,_other){{};}function gml_Object_obj_matchob_Create_0(_inst,_other){_inst.gmlmy_replay=ds_list_create();_inst.gmlfacing=(-1);_inst.gmlheight=0;_inst.gmlhidden=false;_inst.gmlrotation=0;}function gml_Object_obj_matchob_CleanUp_0(_inst,_other){ds_list_clear(_inst.gmlmy_replay);ds_list_destroy(_inst.gmlmy_replay);_inst.gmlmy_replay=(-1);}function gml_Object_obj_player_Create_0(_inst, _other){event_inherited(_inst,_other);_inst.gmlbody_type=(-1);_inst.gmlmy_shadow=layer_sprite_create(layer_get_id("Shadows"),_inst.x,_inst.y,YYASSET_REF(0x0100002D));layer_sprite_blend(_inst.gmlmy_shadow,0);layer_sprite_alpha(_inst.gmlmy_shadow,0.2);layer_sprite_angle(_inst.gmlmy_shadow,0);layer_sprite_xscale(_inst.gmlmy_shadow,0.9);layer_sprite_yscale(_inst.gmlmy_shadow,(-0.6));_inst.gmlcleats=__yy_gml_array_check(_inst.gmlcleats,2556554615);_inst.gmlcleats[__yy_gml_array_check_index_set(0)]=0; _inst.gmlcleats[__yy_gml_array_check_index_set(1)]=0;_inst.gmlcleats[__yy_gml_array_check_index_set(2)]=0;_inst.gmlposition=0;_inst.gmlqb_rushing=false;_inst.gmlinum=0;_inst.gmloffense=false;_inst.gmlplayer_roster=yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_roster[__yy_gml_array_check_index(0,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_roster)];_inst.gmlfacing=yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldrivedir;_inst.gmlgoalline_attack=2300;_inst.gmlgoalline_defend=300;if(yyfequal(_inst.gmlfacing, (-1))){{_inst.gmlgoalline_attack=300;_inst.gmlgoalline_defend=2300;};};_inst.gmlgoaldist=1000;_inst.gmlremaining_dist=0;_inst.gmldead=false;_inst.gmlbouncedist=0;_inst.gmlballdist=0;_inst.gmlballdir=0;_inst.gmlcollsize=20;_inst.hspeed=0;_inst.vspeed=0;_inst.gmljforce=0;_inst.gmljdir=0;_inst.gmldes_x=0;_inst.gmldes_y=0;_inst.gmlz=0;_inst.gmlzvel=0;_inst.gmlrandyards=irandom_range((-10),10);_inst.gmlrewarded_route=false;_inst.gmlmy_route_name="";_inst.gmlmy_route=(-4);_inst.gmlmy_route_point=0;_inst.gmlmy_route_startx=0; _inst.gmlmy_route_starty=0;_inst.gmlmy_route_alpha=2;_inst.gmlmy_route_end_dir=999;_inst.gmlte_blocking=false;_inst.gmlanim=0;gml_Script_s_set_anim(_inst,_other,0);_inst.gmlmy_accel=0.065;_inst.gmlmy_kick_skill=1;_inst.gmlmy_kick_power=0.065;_inst.gmlmy_throw_power=0.08;_inst.gmlmy_sidestep=2.1;_inst.gmlstrength=1;_inst.gmlskill=1;_inst.gmlstamina=1;_inst.gmltackling=(-4);_inst.gmltacklecount=0;_inst.gmlmy_tackle_limit=20;_inst.gmldone_tackle=false;_inst.gmllast_tackled=(-4);_inst.gmltackle_time=0; _inst.gmlstiff_arm=0;_inst.gmljumps=0;_inst.gmlintheclear=false;_inst.gmlmin_x=(-1);_inst.gmlmax_x=(-1);_inst.image_xscale=2;_inst.image_yscale=2;_inst.gmlpmap=(-4);_inst.gmlpos_name="";_inst.gmlpos_name2="";_inst.gmlpos_name3="";_inst.gmlstep_tick=0;_inst.gmlnearest_opp=(-4);_inst.gmlnearest_opp_dist=1000;_inst.gmlhspeed_previous=_inst.hspeed;_inst.gmlvspeed_previous=_inst.vspeed;_inst.gmlimage_speed_previous=_inst.image_speed;}function gml_Object_obj_player_Destroy_0(_inst,_other){if(yyGetBool(path_exists(_inst.gmlmy_route))){ path_delete(_inst.gmlmy_route);};}function gml_Object_obj_player_Step_0(_inst,_other){if(yyGetBool(_inst.gmldead)){return;};if(yyfnotequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlstate,2)){return;};var gmlball=global.gmlmaster_ball;_inst.gmlballdist=point_distance(_inst.x,_inst.y,yyInst(_inst,_other,gmlball).x,yyInst(_inst,_other,gmlball).y);if(yyGetBool(yyInst(_inst,_other,gmlball).gmlis_dead)){{gml_Script_s_stop_tackling(_inst,_other);return;};};_inst.gmlintheclear=gml_Script_s_is_in_the_clear(_inst, _other);_inst.gmlbouncedist=point_distance(_inst.x,_inst.y,yyInst(_inst,_other,YYASSET_REF(0x00000070)).gmlbounce_x,yyInst(_inst,_other,YYASSET_REF(0x00000070)).gmlbounce_y);_inst.gmlballdir=point_direction(_inst.x,_inst.y,yyInst(_inst,_other,gmlball).x,yyInst(_inst,_other,gmlball).y);_inst.gmlgoaldist=abs(yyfminus(__yy_gml_errCheck(_inst.gmlgoalline_attack),__yy_gml_errCheck(_inst.x)));if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldrivedir,1)){_inst.gmlremaining_dist=yyfminus(__yy_gml_errCheck(yyInst(_inst, _other,YYASSET_REF(0x00000069)).gmlx_yards),__yy_gml_errCheck(_inst.x));}else {_inst.gmlremaining_dist=yyfminus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_yards));};(g_yyPrePostObject__=_inst.gmlstep_tick,_inst.gmlstep_tick=(g_yyPrePostObject__ instanceof Long?_inst.gmlstep_tick.add(1):++_inst.gmlstep_tick),g_yyPrePostObject__);if(yyfequal(_inst.gmlstep_tick,2)){{_inst.gmlnearest_opp=gml_Script_s_get_nearest_opponent(_inst,_other,_inst.id);_inst.gmlnearest_opp_dist=1000; if(yyGetBool(_inst.gmlnearest_opp)){_inst.gmlnearest_opp_dist=point_distance(_inst.x,_inst.y,yyInst(_inst,_other,_inst.gmlnearest_opp).x,yyInst(_inst,_other,_inst.gmlnearest_opp).y);};_inst.gmlstep_tick=0;};};_inst.gmljdir=0;if(yyfequal(_inst.gmlfacing,(-1))){_inst.gmljdir=180;};if((yyGetBool(yyfnotequal(yyInst(_inst,_other,gmlball).gmlstate,0)))&&(yyGetBool(yyfnotequal(yyInst(_inst,_other,gmlball).gmlstate,1)))){_inst.gmlmy_route_alpha=0;};if(yyGetBool(_inst.gmloffense)){gml_Script_s_check_human_control(_inst, _other);};gml_Script_s_get_destination(_inst,_other);gml_Script_s_check_tackling(_inst,_other);gml_Script_s_check_dive(_inst,_other);}function gml_Object_obj_player_Step_2(_inst,_other){var gmlball=global.gmlmaster_ball;var gmlcont=YYASSET_REF(0x00000069);if(yyfnotequal(yyInst(_inst,_other,gmlcont).gmlstate,2)){return;};gml_Script_s_check_ball_collision(_inst,_other);if(yyfless(_inst.y,117)){_inst.y=117;};var gmlgl=_inst.gmlgoalline_attack;if(!yyGetBool(_inst.gmloffense)){gmlgl=_inst.gmlgoalline_defend; };if(yyfless(_inst.y,152)){{_inst.gmlmy_route_end_dir=point_direction(_inst.x,_inst.y,gmlgl,152);};};if(yyfgreater(_inst.y,448)){{_inst.gmlmy_route_end_dir=point_direction(_inst.x,_inst.y,gmlgl,448);};};if(yyfless(_inst.y,132)){{_inst.gmljdir=point_direction(_inst.x,_inst.y,_inst.x,300);};};if(yyfgreater(_inst.y,468)){{_inst.gmljdir=point_direction(_inst.x,_inst.y,_inst.x,300);};};if((yyGetBool(_inst.gmloffense))&&(yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,6)))&&(yyGetBool(yyfequal(yyInst(_inst, _other,gmlball).gmlholder,_inst.id)))){_inst.gmljdir=point_direction(_inst.x,_inst.y,(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldrivedir,1)?2510:90),_inst.y);};if((yyGetBool((yyGetBool(!yyGetBool(gml_Script_s_is_kickoff(_inst,_other,true))))||(yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,6)))))&&(yyGetBool((yyGetBool(yyfnotequal(yyInst(_inst,_other,gmlball).gmlstate,3)))||(yyGetBool(yyfgreater(_inst.gmlbouncedist,400)))))){{if((yyGetBool(yyfless(_inst.x,195)))||(yyGetBool(yyfgreater(_inst.x, 2405)))){{var gmlcelebrate=false;if((yyGetBool(yyfgreater(g_pBuiltIn.get_current_time(),yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmltd_time),750))))&&(yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlholder,_inst.id)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,6)))&&(yyGetBool(yyfnotequal(_inst.gmlanim,16)))&&(yyGetBool(yyfnotequal(_inst.gmlanim,17)))){{gmlcelebrate=true;{var __yy__v2300=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v2301 in __yy__v2300){ if(!__yy__v2300.hasOwnProperty(__yy__v2301))continue;var __yy__v2302=__yy__v2300[__yy__v2301];{if(yyfequal(__yy__v2302.gmldown,6)){{gmlcelebrate=false;if((yyGetBool(gml_Script_s_last_secs_of_half(__yy__v2302,_inst,20)))&&(yyGetBool(yyfless(__yy__v2302.gmlteam_score[__yy_gml_array_check_index(__yy__v2302.gmlhuman_team,__yy__v2302.gmlteam_score)],__yy__v2302.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(__yy__v2302.gmlhuman_team)?1:0,__yy__v2302.gmlteam_score)])))&&(yyGetBool(yyfgreaterequal(yyfplus(__yy_gml_errCheck(__yy__v2302.gmlteam_score[__yy_gml_array_check_index(__yy__v2302.gmlhuman_team, __yy__v2302.gmlteam_score)]),2),__yy__v2302.gmlteam_score[__yy_gml_array_check_index(!yyGetBool(__yy__v2302.gmlhuman_team)?1:0,__yy__v2302.gmlteam_score)])))){gmlcelebrate=true;};};};}}};};};if(yyGetBool(gmlcelebrate)){{gml_Script_s_set_anim(_inst,_other,16);_inst.gmljforce=0;};}else {if((yyGetBool(!yyGetBool(path_exists(_inst.gmlmy_route))))&&(yyGetBool(yyfnotequal(yyInst(_inst,_other,gmlball).gmlstate,5)))){{_inst.gmljforce=0.1;};};};};};if((yyGetBool(yyfless(_inst.x,142.5)))||(yyGetBool(yyfgreater(_inst.x, 2457.5)))){{if(yyfnotequal(yyInst(_inst,_other,gmlball).gmlstate,5)){_inst.gmljforce=0;};};};};};var ___sw2004___=_inst.gmlanim;var ___swc2005___=-1;if(yyCompareVal(___sw2004___,4,g_GMLMathEpsilon,false)==0){___swc2005___=0;}else if(yyCompareVal(___sw2004___,5,g_GMLMathEpsilon,false)==0){___swc2005___=1;}else if(yyCompareVal(___sw2004___,6,g_GMLMathEpsilon,false)==0){___swc2005___=2;}else if(yyCompareVal(___sw2004___,7,g_GMLMathEpsilon,false)==0){___swc2005___=3;}else if(yyCompareVal(___sw2004___,10,g_GMLMathEpsilon, false)==0){___swc2005___=4;}else if(yyCompareVal(___sw2004___,11,g_GMLMathEpsilon,false)==0){___swc2005___=5;}else if(yyCompareVal(___sw2004___,12,g_GMLMathEpsilon,false)==0){___swc2005___=6;}else if(yyCompareVal(___sw2004___,19,g_GMLMathEpsilon,false)==0){___swc2005___=7;}switch(___swc2005___){case 0:{_inst.gmljforce=0;break;}case 1:{_inst.gmljforce=0;break;}case 2:{_inst.gmljforce=0;break;}case 3:{_inst.gmljforce=0;break;}case 4:{_inst.gmljforce=0;break;}case 5:{_inst.gmljforce=0;break;}case 6:{_inst.gmljforce=0; break;}case 7:{_inst.gmljforce=0;break;}};if(yyGetBool(_inst.gmldead)){_inst.gmljforce=0;};if((yyGetBool(yyfequal(_inst.gmlposition,2)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,19)))&&(yyGetBool(yyfequal(_inst.gmljforce,1)))){_inst.gmljforce=0.5;};if(yyGetBool(yyInst(_inst,_other,gmlball).gmlis_dead)){{if(!yyGetBool((yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlholder,_inst.id)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,6))))){_inst.gmljforce=0;};};};if(yyfnotequal(_inst.gmlanim, 3)){{var gmlveffect=0.75;_inst.hspeed=yyfplus(_inst.hspeed,yyftime(yyftime(__yy_gml_errCheck(dcos(_inst.gmljdir)),__yy_gml_errCheck(_inst.gmljforce)),__yy_gml_errCheck(_inst.gmlmy_accel)));_inst.vspeed=yyfplus(_inst.vspeed,yyftime(yyftime(yyftime(__yy_gml_errCheck(dsin(__yy_gml_errCheck(-__yy_gml_errCheck(_inst.gmljdir)))),__yy_gml_errCheck(_inst.gmljforce)),__yy_gml_errCheck(_inst.gmlmy_accel)),__yy_gml_errCheck(gmlveffect)));};};if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlholder,_inst.id)))&&(yyGetBool((yyGetBool(yyfequal(yyInst(_inst, _other,gmlball).gmlstate,5)))||(yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,9)))||(yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,10)))))){{var gmlbx=yyInst(_inst,_other,gmlball).x;if(yyfequal(_inst.gmlmin_x,(-1))){_inst.gmlmin_x=gmlbx;}else {if((yyGetBool(yyfless(_inst.hspeed,0)))&&(yyGetBool(yyfless(gmlbx,_inst.gmlmin_x)))){_inst.gmlmin_x=gmlbx;};};if(yyfequal(_inst.gmlmax_x,(-1))){_inst.gmlmax_x=gmlbx;}else {if((yyGetBool(yyfgreater(_inst.hspeed,0)))&&(yyGetBool(yyfgreater(gmlbx, _inst.gmlmax_x)))){_inst.gmlmax_x=gmlbx;};};};};if(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice)){{if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlholder,_inst.id)))&&(yyGetBool(yyfequal(_inst.gmlanim,2)))&&(yyGetBool(yyfgreater(_inst.gmlmy_accel,0.060125000000000005)))){{var gmldecel=0.9999;var gmlstam=yyfminus(11,__yy_gml_errCheck(_inst.gmlstamina));gmldecel=yyfminus(gmldecel,yyftime(__yy_gml_errCheck(gmlstam),5E-05));_inst.gmlmy_accel=yyftime(_inst.gmlmy_accel, gmldecel);};};};};_inst.hspeed=yyftime(_inst.hspeed,0.94);_inst.vspeed=yyftime(_inst.vspeed,0.94);if(yyGetBool(_inst.gmldead)){{var gmlgetup=2500;if(!yyGetBool(_inst.gmloffense)){gmlgetup=yyfminus(2500,__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,gmlcont).gmlteam_defense[__yy_gml_array_check_index(!yyGetBool(yyInst(_inst,_other,gmlcont).gmlhuman_team)?1:0,yyInst(_inst,_other,gmlcont).gmlteam_defense)]),100)));}else {if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldifficulty, 5)){gmlgetup=1000;}else {if(yyGetBool(_inst.gmlpmap)){gmlgetup=yyfminus(gmlgetup,yyftime(__yy_gml_errCheck(gml_Script_s_get_attribute(_inst,_other,_inst.gmlpmap,"stamina")),100));}else {gmlgetup=yyfminus(gmlgetup,yyftime(__yy_gml_errCheck(yyInst(_inst,_other,gmlcont).gmlteam_offense[__yy_gml_array_check_index(yyInst(_inst,_other,gmlcont).gmlhuman_team,yyInst(_inst,_other,gmlcont).gmlteam_offense)]),100));};};};if(yyfgreater(g_pBuiltIn.get_current_time(),yyfplus(__yy_gml_errCheck(_inst.gmldead),__yy_gml_errCheck(gmlgetup)))){ {_inst.gmldead=0;_inst.gmltacklecount=0;var gmldoanim=true;if((yyGetBool(!yyGetBool(_inst.gmlpmap)))||(yyGetBool(yyfnotequal(yyInst(_inst,_other,gmlball).gmlholder,_inst.id)))){gmldoanim=false;};if((yyGetBool(yyfnotequal(_inst.gmlanim,5)))&&(yyGetBool(yyfnotequal(_inst.gmlanim,4)))){gmldoanim=false;};if((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldrivedir,1)))&&(yyGetBool((yyGetBool(yyfless(yyInst(_inst,_other,gmlball).gmlxdead,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_yards)))||(yyGetBool(yyfgreater(yyInst(_inst, _other,gmlball).gmlxdead,2000)))))){gmldoanim=false;};if((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldrivedir,(-1))))&&(yyGetBool((yyGetBool(yyfgreater(yyInst(_inst,_other,gmlball).gmlxdead,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlx_yards)))||(yyGetBool(yyfless(yyInst(_inst,_other,gmlball).gmlxdead,600)))))){gmldoanim=false;};if(yyfgreater(yyfdivide(__yy_gml_errCheck(abs(yyInst(_inst,_other,gmlball).gmlxdead)),20),600)){gmldoanim=false;};if(!yyGetBool(irandom(1))){ gmldoanim=false;};if(yyGetBool(gmldoanim)){gml_Script_s_set_anim(_inst,_other,18);}else {gml_Script_s_set_anim(_inst,_other,6);};};};};}else {{if(yyfgreater(_inst.hspeed,0.1)){_inst.image_xscale=2;}else {if(yyfless(_inst.hspeed,(-0.1))){_inst.image_xscale=(-2);}else {if((yyGetBool(yyfnotequal(_inst.gmlanim,5)))&&(yyGetBool(yyfnotequal(_inst.gmlanim,4)))){_inst.image_xscale=yyftime(__yy_gml_errCheck(_inst.gmlfacing),2);};};};if((yyGetBool(yyfequal(_inst.gmlposition,1)))&&(yyGetBool(path_exists(_inst.gmlmy_route)))&&(yyGetBool(yyfnotequal(yyInst(_inst, _other,gmlball).gmlstate,19)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlholder,_inst.id)))){_inst.image_xscale=yyftime(__yy_gml_errCheck(_inst.gmlfacing),2);};var ___sw2006___=_inst.gmlanim;var ___swc2007___=-1;if(yyCompareVal(___sw2006___,0,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw2006___,1,g_GMLMathEpsilon,false)==0){___swc2007___=0;}else if(yyCompareVal(___sw2006___,2,g_GMLMathEpsilon,false)==0){___swc2007___=1;}else if(yyCompareVal(___sw2006___,3,g_GMLMathEpsilon,false)==0){___swc2007___=2; }else if(yyCompareVal(___sw2006___,4,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw2006___,5,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw2006___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw2006___,7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw2006___,8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw2006___,9,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw2006___,18,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw2006___,19,g_GMLMathEpsilon,false)==0){___swc2007___=3;}else if(yyCompareVal(___sw2006___, 11,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw2006___,12,g_GMLMathEpsilon,false)==0){___swc2007___=4;}switch(___swc2007___){case 0:{if(yyfgreaterequal(_inst.speed,0.1)){gml_Script_s_set_anim(_inst,_other,2);};break;}case 1:{_inst.image_speed=min(_inst.speed,1);if(yyfless(_inst.speed,0.1)){gml_Script_s_set_anim(_inst,_other,0);};break;}case 2:{if(yyGetBool(_inst.gmltackling)){{_inst.image_xscale=2;if(yyfless(yyInst(_inst,_other,_inst.gmltackling).x,_inst.x)){_inst.image_xscale=(-2);};};};break;}case 3:{ break;}case 4:{_inst.image_xscale=2;if(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000070)).gmlbounce_x,_inst.x)){_inst.image_xscale=(-2);};break;}};};};_inst.depth=yyfplus(__yy_gml_errCheck(yyftime(__yy_gml_errCheck(__yy_gml_errCheck(-__yy_gml_errCheck(_inst.y))),10)),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.gmlrandyards),0.1)));if(yyfequal(yyInst(_inst,_other,gmlball).gmlholder,_inst.id)){{if((yyGetBool(yyfequal(_inst.gmlposition,1)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate, 2)))){{if(yyGetBool(path_exists(_inst.gmlmy_route))){{_inst.sprite_index=gml_Script_s_spr_from_bt(_inst,_other,YYASSET_REF(0x01000028),_inst.gmlbody_type);_inst.image_xscale=2;if(yyfequal(_inst.gmlfacing,(-1))){_inst.image_xscale=(-2);};};};};}else {if(yyfless(_inst.gmlballdist,10)){{var ___sw2008___=_inst.sprite_index;var ___swc2009___=-1;if(yyCompareVal(___sw2008___,YYASSET_REF(0x0100002D),g_GMLMathEpsilon,false)==0){___swc2009___=0;}else if(yyCompareVal(___sw2008___,YYASSET_REF(0x01000037),g_GMLMathEpsilon, false)==0){___swc2009___=1;}else if(yyCompareVal(___sw2008___,YYASSET_REF(0x01000042),g_GMLMathEpsilon,false)==0){___swc2009___=2;}else if(yyCompareVal(___sw2008___,YYASSET_REF(0x01000197),g_GMLMathEpsilon,false)==0){___swc2009___=3;}else if(yyCompareVal(___sw2008___,YYASSET_REF(0x01000143),g_GMLMathEpsilon,false)==0){___swc2009___=4;}else if(yyCompareVal(___sw2008___,YYASSET_REF(0x0100018E),g_GMLMathEpsilon,false)==0){___swc2009___=5;}else if(yyCompareVal(___sw2008___,YYASSET_REF(0x01000164),g_GMLMathEpsilon, false)==0){___swc2009___=6;}else if(yyCompareVal(___sw2008___,YYASSET_REF(0x010000B3),g_GMLMathEpsilon,false)==0){___swc2009___=7;}else if(yyCompareVal(___sw2008___,YYASSET_REF(0x01000189),g_GMLMathEpsilon,false)==0){___swc2009___=8;}switch(___swc2009___){case 0:{_inst.sprite_index=YYASSET_REF(0x0100002E);break;}case 1:{_inst.sprite_index=YYASSET_REF(0x01000038);break;}case 2:{_inst.sprite_index=YYASSET_REF(0x01000043);break;}case 3:{_inst.sprite_index=YYASSET_REF(0x01000173);break;}case 4:{_inst.sprite_index=YYASSET_REF(0x01000168); break;}case 5:{_inst.sprite_index=YYASSET_REF(0x0100018D);break;}case 6:{_inst.sprite_index=YYASSET_REF(0x01000187);break;}case 7:{_inst.sprite_index=YYASSET_REF(0x0100001F);break;}case 8:{_inst.sprite_index=YYASSET_REF(0x0100018D);break;}};};};};};}else {{var ___sw2010___=_inst.sprite_index;var ___swc2011___=-1;if(yyCompareVal(___sw2010___,YYASSET_REF(0x0100002E),g_GMLMathEpsilon,false)==0){___swc2011___=0;}else if(yyCompareVal(___sw2010___,YYASSET_REF(0x0100002F),g_GMLMathEpsilon,false)==0){___swc2011___=1; }else if(yyCompareVal(___sw2010___,YYASSET_REF(0x01000038),g_GMLMathEpsilon,false)==0){___swc2011___=2;}else if(yyCompareVal(___sw2010___,YYASSET_REF(0x01000039),g_GMLMathEpsilon,false)==0){___swc2011___=3;}else if(yyCompareVal(___sw2010___,YYASSET_REF(0x01000043),g_GMLMathEpsilon,false)==0){___swc2011___=4;}else if(yyCompareVal(___sw2010___,YYASSET_REF(0x01000044),g_GMLMathEpsilon,false)==0){___swc2011___=5;}else if(yyCompareVal(___sw2010___,YYASSET_REF(0x01000040),g_GMLMathEpsilon,false)==0){___swc2011___=6; }else if(yyCompareVal(___sw2010___,YYASSET_REF(0x01000041),g_GMLMathEpsilon,false)==0){___swc2011___=7;}else if(yyCompareVal(___sw2010___,YYASSET_REF(0x01000173),g_GMLMathEpsilon,false)==0){___swc2011___=8;}else if(yyCompareVal(___sw2010___,YYASSET_REF(0x01000147),g_GMLMathEpsilon,false)==0){___swc2011___=9;}else if(yyCompareVal(___sw2010___,YYASSET_REF(0x01000168),g_GMLMathEpsilon,false)==0){___swc2011___=10;}else if(yyCompareVal(___sw2010___,YYASSET_REF(0x01000162),g_GMLMathEpsilon,false)==0){___swc2011___=11; }else if(yyCompareVal(___sw2010___,YYASSET_REF(0x0100018D),g_GMLMathEpsilon,false)==0){___swc2011___=12;}else if(yyCompareVal(___sw2010___,YYASSET_REF(0x0100017B),g_GMLMathEpsilon,false)==0){___swc2011___=13;}else if(yyCompareVal(___sw2010___,YYASSET_REF(0x01000132),g_GMLMathEpsilon,false)==0){___swc2011___=14;}else if(yyCompareVal(___sw2010___,YYASSET_REF(0x010000FB),g_GMLMathEpsilon,false)==0){___swc2011___=15;}else if(yyCompareVal(___sw2010___,YYASSET_REF(0x01000187),g_GMLMathEpsilon,false)==0){___swc2011___=16; }else if(yyCompareVal(___sw2010___,YYASSET_REF(0x010000E9),g_GMLMathEpsilon,false)==0){___swc2011___=17;}else if(yyCompareVal(___sw2010___,YYASSET_REF(0x0100001F),g_GMLMathEpsilon,false)==0){___swc2011___=18;}else if(yyCompareVal(___sw2010___,YYASSET_REF(0x010000F2),g_GMLMathEpsilon,false)==0){___swc2011___=19;}else if(yyCompareVal(___sw2010___,YYASSET_REF(0x0100013D),g_GMLMathEpsilon,false)==0){___swc2011___=20;}else if(yyCompareVal(___sw2010___,YYASSET_REF(0x010000E2),g_GMLMathEpsilon,false)==0){___swc2011___=21; }else if(yyCompareVal(___sw2010___,YYASSET_REF(0x0100006D),g_GMLMathEpsilon,false)==0){___swc2011___=22;}else if(yyCompareVal(___sw2010___,YYASSET_REF(0x010000E7),g_GMLMathEpsilon,false)==0){___swc2011___=23;}switch(___swc2011___){case 0:{_inst.sprite_index=YYASSET_REF(0x0100002D);break;}case 1:{_inst.sprite_index=YYASSET_REF(0x0100002D);break;}case 2:{_inst.sprite_index=YYASSET_REF(0x01000037);break;}case 3:{_inst.sprite_index=YYASSET_REF(0x01000037);break;}case 4:{_inst.sprite_index=YYASSET_REF(0x01000042); break;}case 5:{_inst.sprite_index=YYASSET_REF(0x01000042);break;}case 6:{_inst.sprite_index=YYASSET_REF(0x0100003E);break;}case 7:{_inst.sprite_index=YYASSET_REF(0x0100003E);break;}case 8:{_inst.sprite_index=YYASSET_REF(0x01000197);break;}case 9:{_inst.sprite_index=YYASSET_REF(0x01000197);break;}case 10:{_inst.sprite_index=YYASSET_REF(0x01000143);break;}case 11:{_inst.sprite_index=YYASSET_REF(0x01000143);break;}case 12:{_inst.sprite_index=YYASSET_REF(0x0100018E);break;}case 13:{_inst.sprite_index=YYASSET_REF(0x0100018E); break;}case 14:{_inst.sprite_index=YYASSET_REF(0x010000B7);break;}case 15:{_inst.sprite_index=YYASSET_REF(0x010000B7);break;}case 16:{_inst.sprite_index=YYASSET_REF(0x01000164);break;}case 17:{_inst.sprite_index=YYASSET_REF(0x01000164);break;}case 18:{_inst.sprite_index=YYASSET_REF(0x010000B3);break;}case 19:{_inst.sprite_index=YYASSET_REF(0x010000B3);break;}case 20:{_inst.sprite_index=YYASSET_REF(0x01000189);break;}case 21:{_inst.sprite_index=YYASSET_REF(0x01000189);break;}case 22:{_inst.sprite_index=YYASSET_REF(0x010000F8); break;}case 23:{_inst.sprite_index=YYASSET_REF(0x010000F8);break;}};};};var ___sw2012___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_ball;var ___swc2013___=-1;if(yyCompareVal(___sw2012___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw2012___,5,g_GMLMathEpsilon,false)==0){___swc2013___=0;}switch(___swc2013___){case 0:{var ___sw2014___=_inst.sprite_index;var ___swc2015___=-1;if(yyCompareVal(___sw2014___,YYASSET_REF(0x01000026),g_GMLMathEpsilon,false)==0){___swc2015___=0;}else if(yyCompareVal(___sw2014___, YYASSET_REF(0x0100002E),g_GMLMathEpsilon,false)==0){___swc2015___=1;}else if(yyCompareVal(___sw2014___,YYASSET_REF(0x01000033),g_GMLMathEpsilon,false)==0){___swc2015___=2;}else if(yyCompareVal(___sw2014___,YYASSET_REF(0x0100003A),g_GMLMathEpsilon,false)==0){___swc2015___=3;}else if(yyCompareVal(___sw2014___,YYASSET_REF(0x01000038),g_GMLMathEpsilon,false)==0){___swc2015___=4;}else if(yyCompareVal(___sw2014___,YYASSET_REF(0x01000043),g_GMLMathEpsilon,false)==0){___swc2015___=5;}else if(yyCompareVal(___sw2014___, YYASSET_REF(0x01000035),g_GMLMathEpsilon,false)==0){___swc2015___=6;}else if(yyCompareVal(___sw2014___,YYASSET_REF(0x01000049),g_GMLMathEpsilon,false)==0){___swc2015___=7;}else if(yyCompareVal(___sw2014___,YYASSET_REF(0x01000040),g_GMLMathEpsilon,false)==0){___swc2015___=8;}else if(yyCompareVal(___sw2014___,YYASSET_REF(0x01000163),g_GMLMathEpsilon,false)==0){___swc2015___=9;}else if(yyCompareVal(___sw2014___,YYASSET_REF(0x01000173),g_GMLMathEpsilon,false)==0){___swc2015___=10;}else if(yyCompareVal(___sw2014___, YYASSET_REF(0x01000006),g_GMLMathEpsilon,false)==0){___swc2015___=11;}else if(yyCompareVal(___sw2014___,YYASSET_REF(0x01000142),g_GMLMathEpsilon,false)==0){___swc2015___=12;}else if(yyCompareVal(___sw2014___,YYASSET_REF(0x01000168),g_GMLMathEpsilon,false)==0){___swc2015___=13;}else if(yyCompareVal(___sw2014___,YYASSET_REF(0x0100018D),g_GMLMathEpsilon,false)==0){___swc2015___=14;}else if(yyCompareVal(___sw2014___,YYASSET_REF(0x0100016F),g_GMLMathEpsilon,false)==0){___swc2015___=15;}else if(yyCompareVal(___sw2014___, YYASSET_REF(0x01000048),g_GMLMathEpsilon,false)==0){___swc2015___=16;}else if(yyCompareVal(___sw2014___,YYASSET_REF(0x01000132),g_GMLMathEpsilon,false)==0){___swc2015___=17;}else if(yyCompareVal(___sw2014___,YYASSET_REF(0x010000F4),g_GMLMathEpsilon,false)==0){___swc2015___=18;}else if(yyCompareVal(___sw2014___,YYASSET_REF(0x01000187),g_GMLMathEpsilon,false)==0){___swc2015___=19;}else if(yyCompareVal(___sw2014___,YYASSET_REF(0x01000188),g_GMLMathEpsilon,false)==0){___swc2015___=20;}else if(yyCompareVal(___sw2014___, YYASSET_REF(0x010000E3),g_GMLMathEpsilon,false)==0){___swc2015___=21;}else if(yyCompareVal(___sw2014___,YYASSET_REF(0x0100001F),g_GMLMathEpsilon,false)==0){___swc2015___=22;}else if(yyCompareVal(___sw2014___,YYASSET_REF(0x0100013D),g_GMLMathEpsilon,false)==0){___swc2015___=23;}else if(yyCompareVal(___sw2014___,YYASSET_REF(0x0100018C),g_GMLMathEpsilon,false)==0){___swc2015___=24;}else if(yyCompareVal(___sw2014___,YYASSET_REF(0x010000B0),g_GMLMathEpsilon,false)==0){___swc2015___=25;}else if(yyCompareVal(___sw2014___, YYASSET_REF(0x0100006D),g_GMLMathEpsilon,false)==0){___swc2015___=26;}switch(___swc2015___){case 0:{_inst.sprite_index=YYASSET_REF(0x01000027);break;}case 1:{_inst.sprite_index=YYASSET_REF(0x0100002F);break;}case 2:{_inst.sprite_index=YYASSET_REF(0x01000034);break;}case 3:{_inst.sprite_index=YYASSET_REF(0x0100003B);break;}case 4:{_inst.sprite_index=YYASSET_REF(0x01000039);break;}case 5:{_inst.sprite_index=YYASSET_REF(0x01000044);break;}case 6:{_inst.sprite_index=YYASSET_REF(0x01000036);break;}case 7:{_inst.sprite_index=YYASSET_REF(0x0100004B); break;}case 8:{_inst.sprite_index=YYASSET_REF(0x01000041);break;}case 9:{_inst.sprite_index=YYASSET_REF(0x010000FF);break;}case 10:{_inst.sprite_index=YYASSET_REF(0x01000147);break;}case 11:{_inst.sprite_index=YYASSET_REF(0x010000A9);break;}case 12:{_inst.sprite_index=YYASSET_REF(0x0100014A);break;}case 13:{_inst.sprite_index=YYASSET_REF(0x01000162);break;}case 14:{_inst.sprite_index=YYASSET_REF(0x0100017B);break;}case 15:{_inst.sprite_index=YYASSET_REF(0x010000F6);break;}case 16:{_inst.sprite_index=YYASSET_REF(0x01000160); break;}case 17:{_inst.sprite_index=YYASSET_REF(0x010000FB);break;}case 18:{_inst.sprite_index=YYASSET_REF(0x0100010B);break;}case 19:{_inst.sprite_index=YYASSET_REF(0x010000E9);break;}case 20:{_inst.sprite_index=YYASSET_REF(0x010000EA);break;}case 21:{_inst.sprite_index=YYASSET_REF(0x01000112);break;}case 22:{_inst.sprite_index=YYASSET_REF(0x010000F2);break;}case 23:{_inst.sprite_index=YYASSET_REF(0x010000E2);break;}case 24:{_inst.sprite_index=YYASSET_REF(0x01000161);break;}case 25:{_inst.sprite_index=YYASSET_REF(0x0100011F); break;}case 26:{_inst.sprite_index=YYASSET_REF(0x010000E7);break;}};break;}default :{break;}};if((yyGetBool(yyfequal(_inst.sprite_index,YYASSET_REF(0x0100002A))))||(yyGetBool(yyfequal(_inst.sprite_index,YYASSET_REF(0x01000117))))||(yyGetBool(yyfequal(_inst.sprite_index,YYASSET_REF(0x0100012F))))){_inst.image_index=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_ball;};gml_Script_s_update_my_shadow(_inst,_other);if((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlstate,2)))&&(yyGetBool(yyfnotequal(yyInst(_inst, _other,global.gmlmaster_ball).gmlstate,0)))&&(yyGetBool(yyfequal(yyfmod(__yy_gml_errCheck(global.gmlreplay_tick),4),0)))){gml_Script_s_record_frame(_inst,_other);};}function gml_Object_obj_player_Other_7(_inst,_other){var ___sw2018___=_inst.gmlanim;var ___swc2019___=-1;if(yyCompareVal(___sw2018___,0,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw2018___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw2018___,2,g_GMLMathEpsilon,false)==0){___swc2019___=0;}else if(yyCompareVal(___sw2018___,3,g_GMLMathEpsilon, false)==0){___swc2019___=1;}else if(yyCompareVal(___sw2018___,4,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw2018___,5,g_GMLMathEpsilon,false)==0){___swc2019___=2;}else if(yyCompareVal(___sw2018___,6,g_GMLMathEpsilon,false)==0){___swc2019___=3;}else if(yyCompareVal(___sw2018___,7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw2018___,12,g_GMLMathEpsilon,false)==0){___swc2019___=4;}else if(yyCompareVal(___sw2018___,8,g_GMLMathEpsilon,false)==0){___swc2019___=5;}else if(yyCompareVal(___sw2018___,9,g_GMLMathEpsilon, false)==0){___swc2019___=6;}else if(yyCompareVal(___sw2018___,10,g_GMLMathEpsilon,false)==0){___swc2019___=7;}else if(yyCompareVal(___sw2018___,11,g_GMLMathEpsilon,false)==0){___swc2019___=8;}else if(yyCompareVal(___sw2018___,13,g_GMLMathEpsilon,false)==0){___swc2019___=9;}else if(yyCompareVal(___sw2018___,14,g_GMLMathEpsilon,false)==0){___swc2019___=10;}else if(yyCompareVal(___sw2018___,15,g_GMLMathEpsilon,false)==0){___swc2019___=11;}else if(yyCompareVal(___sw2018___,16,g_GMLMathEpsilon,false)==0){___swc2019___=12; }else if(yyCompareVal(___sw2018___,17,g_GMLMathEpsilon,false)==0){___swc2019___=13;}else if(yyCompareVal(___sw2018___,18,g_GMLMathEpsilon,false)==0){___swc2019___=14;}else if(yyCompareVal(___sw2018___,19,g_GMLMathEpsilon,false)==0){___swc2019___=15;}switch(___swc2019___){case 0:{break;}case 1:{if((yyGetBool(yyfequal(_inst.gmltackling,(-4))))||(yyGetBool(yyfnotequal(yyInst(_inst,_other,_inst.gmltackling).gmlanim,3)))){gml_Script_s_set_anim(_inst,_other,0);};break;}case 2:{_inst.gmldead=g_pBuiltIn.get_current_time(); _inst.image_speed=0;_inst.image_index=yyfminus(__yy_gml_errCheck(_inst.image_number),1);break;}case 3:{gml_Script_s_set_anim(_inst,_other,0);break;}case 4:{gml_Script_s_set_anim(_inst,_other,0);break;}case 5:{gml_Script_s_set_anim(_inst,_other,2);break;}case 6:{gml_Script_s_set_anim(_inst,_other,2);break;}case 7:{gml_Script_s_set_anim(_inst,_other,2);break;}case 8:{break;}case 9:{break;}case 10:{_inst.hspeed=0;_inst.image_speed=0;_inst.image_index=yyfminus(__yy_gml_errCheck(_inst.image_number),1);break; }case 11:{if(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,false))){{gml_Script_s_set_anim(_inst,_other,2);break;};};_inst.image_speed=0;_inst.image_index=yyfminus(__yy_gml_errCheck(_inst.image_number),1);break;}case 12:{gml_Script_s_spike_ball(_inst,_other);gml_Script_s_set_anim(_inst,_other,0);break;}case 13:{break;}case 14:{_inst.image_speed=0;_inst.image_index=yyfminus(__yy_gml_errCheck(_inst.image_number),1);break;}case 15:{_inst.gmldead=g_pBuiltIn.get_current_time();_inst.image_speed=0;_inst.image_index=yyfminus(__yy_gml_errCheck(_inst.image_number), 1);break;}};}function gml_Object_obj_player_Draw_0(_inst,_other){if(yyGetBool(global.gmlbrowser)){gml_Script_s_obj_player_draw_begin(_inst,_other);};var gmlball=global.gmlmaster_ball;if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlstate,3)){{gml_Script_s_shader_set_uniforms(_inst,_other);draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.x,yyfminus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.gmlz)),_inst.image_xscale,_inst.image_yscale,0,16777215,1);shader_reset(); return;};};if((yyGetBool(_inst.gmlpmap))&&(yyGetBool(yyfnotequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlstate,10)))){{var gmla=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),200))),1)),2);var gmlcol=65535;if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,0)))&&(yyGetBool((yyGetBool(yyfequal(_inst.sprite_index,YYASSET_REF(0x01000025))))||(yyGetBool(yyfequal(_inst.sprite_index,YYASSET_REF(0x01000010))))||(yyGetBool(yyfequal(_inst.sprite_index, YYASSET_REF(0x0100013B))))))){{draw_sprite_ext(_inst,gml_Script_s_spr_from_bt(_inst,_other,YYASSET_REF(0x01000024),_inst.gmlbody_type),_inst.image_index,_inst.x,yyfminus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.gmlz)),_inst.image_xscale,_inst.image_yscale,0,gmlcol,gmla);draw_sprite_ext(_inst,YYASSET_REF(0x01000055),0,_inst.x,yyfminus(yyfminus(yyfminus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.gmlz)),__yy_gml_errCheck(_inst.sprite_height)),6),_inst.image_xscale,_inst.image_yscale, 0,gmlcol,gmla);if(yyfnotequal(_inst.gmlpos_name3,"")){gml_Script_draw_hd_text_transformed_color(_inst,_other,yyfminus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(yyftime(30,__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldrivedir)))),yyfminus(__yy_gml_errCheck(_inst.y),15),_inst.gmlpos_name3,1.5,1.5,0,0,0,0,0,1);};};}else {if((yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,0)))||(yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlstate,2)))||(yyGetBool((yyGetBool(yyfequal(yyInst(_inst, _other,gmlball).gmlstate,5)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,gmlball).gmlholder,_inst.id)))))){{draw_sprite_ext(_inst,YYASSET_REF(0x01000055),0,_inst.x,yyfminus(yyfminus(yyfminus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.gmlz)),__yy_gml_errCheck(_inst.sprite_height)),6),_inst.image_xscale,_inst.image_yscale,0,gmlcol,gmla);};};};};};gml_Script_s_shader_set_uniforms(_inst,_other);draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.x,yyfminus(__yy_gml_errCheck(_inst.y), __yy_gml_errCheck(_inst.gmlz)),_inst.image_xscale,_inst.image_yscale,0,16777215,1);shader_reset();}function gml_Object_obj_player_Draw_72(_inst,_other){if(!yyGetBool(global.gmlbrowser)){gml_Script_s_obj_player_draw_begin(_inst,_other);};}function gml_Object_obj_playerOF_Create_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlinum=instance_number(YYASSET_REF(0x0000006C));_inst.image_xscale=yyftime(__yy_gml_errCheck(_inst.gmlfacing),2);_inst.gmloffense=true;_inst.gmlplayer_roster=yyInst(_inst, _other,YYASSET_REF(0x00000069)).gmlteam_roster[__yy_gml_array_check_index(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpossession,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_roster)];var gmlindex=yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpossession;if(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,0))){{gmlindex=!yyGetBool(gmlindex);_inst.gmlplayer_roster=yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_roster[__yy_gml_array_check_index(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpossession)?1:0, yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_roster)];};};var ___sw2024___=gmlindex;var ___swc2025___=-1;if(yyCompareVal(___sw2024___,0,g_GMLMathEpsilon,false)==0){___swc2025___=0;}else if(yyCompareVal(___sw2024___,1,g_GMLMathEpsilon,false)==0){___swc2025___=1;}switch(___swc2025___){case 0:{_inst.gmlhelmet=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_helmet_away;_inst.gmllogo=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_logo_away;_inst.gmlshirt=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_shirt_away; _inst.gmlsleeve=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_sleeve_away;_inst.gmlpants=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_pants_away;_inst.gmlpants_b=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_pants_away_b;_inst.gmlstripe=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_stripe_away;_inst.gmlsocks1=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_socks1_away;_inst.gmlsocks2=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_socks2_away;break;}case 1:{_inst.gmlhelmet=yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlcol_helmet_home;_inst.gmllogo=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_logo_home;_inst.gmlshirt=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_shirt_home;_inst.gmlsleeve=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_sleeve_home;_inst.gmlpants=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_pants_home;_inst.gmlpants_b=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_pants_home_b;_inst.gmlstripe=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_stripe_home; _inst.gmlsocks1=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_socks1_home;_inst.gmlsocks2=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_socks2_home;break;}};var ___sw2026___=yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlkicking;var ___swc2027___=-1;if(yyCompareVal(___sw2026___,0,g_GMLMathEpsilon,false)==0){___swc2027___=0;}else if(yyCompareVal(___sw2026___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw2026___,2,g_GMLMathEpsilon,false)==0){___swc2027___=1;}else if(yyCompareVal(___sw2026___, 3,g_GMLMathEpsilon,false)==0){___swc2027___=2;}switch(___swc2027___){case 0:{gml_Script_s_set_position_offense(_inst,_other);break;}case 1:{gml_Script_s_set_position_offense_fg(_inst,_other);break;}case 2:{gml_Script_s_set_position_return_ko(_inst,_other);break;}};}function gml_Object_obj_playerDF_Create_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlinum=instance_number(YYASSET_REF(0x0000006D));_inst.gmlfacing=__yy_gml_errCheck(-__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldrivedir)); _inst.gmlgoalline_attack=300;_inst.gmlgoalline_defend=2300;if(yyfequal(_inst.gmlfacing,(-1))){{_inst.gmlgoalline_attack=300;_inst.gmlgoalline_defend=2300;};};_inst.image_xscale=yyftime(__yy_gml_errCheck(_inst.gmlfacing),2);_inst.gmlplayer_roster=yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_roster[__yy_gml_array_check_index(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpossession)?1:0,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_roster)];var gmlindex=yyInst(_inst,_other, YYASSET_REF(0x00000069)).gmlpossession;if(yyGetBool(gml_Script_s_is_kickoff(_inst,_other,0))){{gmlindex=!yyGetBool(gmlindex);_inst.gmlplayer_roster=yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_roster[__yy_gml_array_check_index(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlpossession,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam_roster)];};};var ___sw2032___=gmlindex;var ___swc2033___=-1;if(yyCompareVal(___sw2032___,0,g_GMLMathEpsilon,false)==0){___swc2033___=0;}else if(yyCompareVal(___sw2032___, 1,g_GMLMathEpsilon,false)==0){___swc2033___=1;}switch(___swc2033___){case 0:{_inst.gmlhelmet=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_helmet_home;_inst.gmllogo=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_logo_home;_inst.gmlshirt=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_shirt_home;_inst.gmlsleeve=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_sleeve_home;_inst.gmlpants=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_pants_home;_inst.gmlpants_b=yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlcol_pants_home_b;_inst.gmlstripe=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_stripe_home;_inst.gmlsocks1=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_socks1_home;_inst.gmlsocks2=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_socks2_home;break;}case 1:{_inst.gmlhelmet=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_helmet_away;_inst.gmllogo=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_logo_away;_inst.gmlshirt=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_shirt_away; _inst.gmlsleeve=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_sleeve_away;_inst.gmlpants=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_pants_away;_inst.gmlpants_b=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_pants_away_b;_inst.gmlstripe=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_stripe_away;_inst.gmlsocks1=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_socks1_away;_inst.gmlsocks2=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcol_socks2_away;break;}};var ___sw2034___=yyInst(_inst, _other,YYASSET_REF(0x00000069)).gmlkicking;var ___swc2035___=-1;if(yyCompareVal(___sw2034___,0,g_GMLMathEpsilon,false)==0){___swc2035___=0;}else if(yyCompareVal(___sw2034___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw2034___,2,g_GMLMathEpsilon,false)==0){___swc2035___=1;}else if(yyCompareVal(___sw2034___,3,g_GMLMathEpsilon,false)==0){___swc2035___=2;}switch(___swc2035___){case 0:{gml_Script_s_set_position_defense(_inst,_other);break;}case 1:{gml_Script_s_set_position_defense_fg(_inst,_other);break; }case 2:{gml_Script_s_set_position_take_ko(_inst,_other);}};}function gml_Object_obj_dummy_Step_0(_inst,_other){if(yyfless(g_pBuiltIn.get_current_time(),_inst.gmlpause_time)){return;};if(yyGetBool(abs(_inst.gmlrange_x))){{_inst.x=yyfplus(_inst.x,_inst.gmlmove_speed);if((yyGetBool(yyfgreater(_inst.x,yyfplus(__yy_gml_errCheck(_inst.gmlstart_x),__yy_gml_errCheck(_inst.gmlrange_x)))))||(yyGetBool(yyfless(_inst.x,yyfminus(__yy_gml_errCheck(_inst.gmlstart_x),__yy_gml_errCheck(_inst.gmlrange_x)))))){{_inst.gmlmove_speed=__yy_gml_errCheck(-__yy_gml_errCheck(_inst.gmlmove_speed)); _inst.gmlpause_time=yyfplus(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),__yy_gml_errCheck(_inst.gmledge_pause));};};};};if(yyGetBool(abs(_inst.gmlrange_y))){{_inst.y=yyfplus(_inst.y,_inst.gmlmove_speed);if((yyGetBool(yyfgreater(_inst.y,yyfplus(__yy_gml_errCheck(_inst.gmlstart_y),__yy_gml_errCheck(_inst.gmlrange_y)))))||(yyGetBool(yyfless(_inst.y,yyfminus(__yy_gml_errCheck(_inst.gmlstart_y),__yy_gml_errCheck(_inst.gmlrange_y)))))){{if(yyGetBool(_inst.gmldead)){_inst.gmlmove_speed=0;};_inst.gmlmove_speed=__yy_gml_errCheck(-__yy_gml_errCheck(_inst.gmlmove_speed)); _inst.gmlpause_time=yyfplus(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),__yy_gml_errCheck(_inst.gmledge_pause));};};};};_inst.depth=yyftime(__yy_gml_errCheck(__yy_gml_errCheck(-__yy_gml_errCheck(_inst.y))),10);}function gml_Object_obj_dummy_Draw_0(_inst,_other){draw_sprite_ext(_inst,YYASSET_REF(0x01000012),1,_inst.x,_inst.y,2,2,0,16777215,1);}function gml_Object_obj_dummy_Draw_72(_inst,_other){var gmlc=(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))?make_colour_rgb(29,73,114):32768);var gmlw=5; var gmlrx=_inst.gmlrange_x;var gmlry=_inst.gmlrange_y;draw_set_alpha(0.5);if(yyGetBool(gmlrx)){draw_rectangle_colour(yyfminus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(gmlrx)),yyfminus(__yy_gml_errCheck(_inst.gmlstart_y),__yy_gml_errCheck(gmlw)),yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(gmlrx)),yyfplus(__yy_gml_errCheck(_inst.gmlstart_y),__yy_gml_errCheck(gmlw)),gmlc,gmlc,gmlc,gmlc,0);}else {if(yyGetBool(gmlry)){draw_rectangle_colour(yyfminus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(gmlw)), yyfminus(__yy_gml_errCheck(_inst.gmlstart_y),__yy_gml_errCheck(gmlry)),yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(gmlw)),yyfplus(__yy_gml_errCheck(_inst.gmlstart_y),__yy_gml_errCheck(gmlry)),gmlc,gmlc,gmlc,gmlc,0);};};draw_set_alpha(1);if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice,3)){{if(yyfgreater(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),200)),0.1)){draw_sprite_ext(_inst,YYASSET_REF(0x01000053),0,_inst.x,yyfminus(__yy_gml_errCheck(_inst.y), 32),2,2,0,65280,1);};};};}function gml_Object_obj_dummy_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlstart_x=0;_inst.gmlstart_y=0;_inst.gmlmove_speed=0;_inst.gmlrange_x=0;_inst.gmlrange_y=0;_inst.gmledge_pause=0;_inst.gmlpause_time=0;_inst.gmldead=false;}function gml_Object_obj_dummy_Collision_obj_player(_inst,_other){if(yyfless(distance_to_object(_inst,_other),10)){{_inst.gmldead=true;if(yyfnotequal(_other.gmlanim,4)){gml_Script_s_set_anim(_other,_inst,4);};;};};}function gml_Object_obj_ball_Create_0(_inst, _other){event_inherited(_inst,_other);_inst.gmlstate=0;_inst.gmlholder=gml_Script_s_get_quarterback(_inst,_other);_inst.gmllast_touched_by=(-4);_inst.x=yyInst(_inst,_other,_inst.gmlholder).x;_inst.y=yyInst(_inst,_other,_inst.gmlholder).y;_inst.gmlxtouch=0;_inst.gmlytouch=0;_inst.gmltouch_starty=250;_inst.gmldragdist=0;_inst.gmldragx=0;_inst.gmldragy=0;_inst.gmlxthrow=0;_inst.gmlythrow=0;_inst.gmlis_dead=false;_inst.gmlxdead=0;_inst.gmlydead=0;_inst.gmlheight=1;_inst.gmllastheight=_inst.gmlheight; _inst.gmllast_x=0;_inst.gmllast_y=0;_inst.gmlxreceived=0;_inst.gmlyreceived=0;_inst.gmlbullet_throw=0;_inst.gmlbullet_throw_hold=false;_inst.gmldirec=0;if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldrivedir,(-1))){_inst.gmldirec=180;};_inst.gmlvelocity=0;_inst.gmlzvel=0;_inst.gmlroll=0;_inst.gmlrotation=0;_inst.gmlbouncecount=0;_inst.gmldropped_time=0;_inst.gmlfumble_time=0;_inst.gmlgoaldirec=0;_inst.gmlkickflip=1;_inst.gmlkickpow=0;_inst.gmlkicky=yyfplus(300,__yy_gml_errCheck(irandom_range((-100), 100)));_inst.gmlkickx=2510;_inst.gmlcpu_kickpow=irandom_range(38.5,55);_inst.gmlimage_speed_previous=_inst.image_speed;if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldrivedir,(-1))){{_inst.gmlkickx=90;_inst.gmlgoaldirec=180;};};if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlkicking)){_inst.gmlkickpow=20;};if(yyGetBool(gml_Script_s_cpu_is_kicking_off(_inst,_other))){{var ___sw2040___=_inst.gmlkickx;var ___swc2041___=-1;if(yyCompareVal(___sw2040___,90,g_GMLMathEpsilon,false)==0){ ___swc2041___=0;}else if(yyCompareVal(___sw2040___,2510,g_GMLMathEpsilon,false)==0){___swc2041___=1;}switch(___swc2041___){case 0:{_inst.gmlkickx=2510;break;}case 1:{_inst.gmlkickx=90;break;}};};};_inst.gmlmy_shadow=layer_sprite_create(layer_get_id("Shadows"),_inst.x,_inst.y,YYASSET_REF(0x01000003));layer_sprite_blend(_inst.gmlmy_shadow,0);layer_sprite_alpha(_inst.gmlmy_shadow,0.2);var gmli=0;for(;yyfless(gmli,20);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli), g_yyPrePostObject__)){{_inst.gmll_blur=__yy_gml_array_check(_inst.gmll_blur,2127366110);_inst.gmll_blur[__yy_gml_array_check_index_chain(gmli,_inst.gmll_blur)][__yy_gml_array_check_index_set(0)]=0;_inst.gmll_blur[__yy_gml_array_check_index_chain(gmli,_inst.gmll_blur)][__yy_gml_array_check_index_set(1)]=0;}};var ___sw2042___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_ball;var ___swc2043___=-1;if(yyCompareVal(___sw2042___,0,g_GMLMathEpsilon,false)==0){___swc2043___=0;}else if(yyCompareVal(___sw2042___, 1,g_GMLMathEpsilon,false)==0){___swc2043___=1;}else if(yyCompareVal(___sw2042___,2,g_GMLMathEpsilon,false)==0){___swc2043___=2;}else if(yyCompareVal(___sw2042___,3,g_GMLMathEpsilon,false)==0){___swc2043___=3;}else if(yyCompareVal(___sw2042___,4,g_GMLMathEpsilon,false)==0){___swc2043___=4;}else if(yyCompareVal(___sw2042___,5,g_GMLMathEpsilon,false)==0){___swc2043___=5;}switch(___swc2043___){case 0:{_inst.sprite_index=YYASSET_REF(0x01000004);break;}case 1:{_inst.sprite_index=YYASSET_REF(0x01000005);break; }case 2:{_inst.sprite_index=YYASSET_REF(0x01000007);break;}case 3:{_inst.sprite_index=YYASSET_REF(0x01000008);break;}case 4:{_inst.sprite_index=YYASSET_REF(0x01000009);break;}case 5:{_inst.sprite_index=YYASSET_REF(0x0100000A);break;}};}function gml_Object_obj_ball_Alarm_0(_inst,_other){}function gml_Object_obj_ball_Alarm_1(_inst,_other){_inst.gmlstate=1;}function gml_Object_obj_ball_Step_0(_inst,_other){if(yyGetBool(instance_exists(YYASSET_REF(0x0000004F)))){return;};if(yyfnotequal(yyInst(_inst,_other, YYASSET_REF(0x00000069)).gmlstate,2)){return;};var gmlold_ballstate=_inst.gmlstate;var gmllastx=_inst.x;var ___sw2046___=yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlkicking;var ___swc2047___=-1;if(yyCompareVal(___sw2046___,0,g_GMLMathEpsilon,false)==0){___swc2047___=0;}switch(___swc2047___){case 0:{gml_Script_s_update_ball(_inst,_other);break;}default :{gml_Script_s_update_ball_fieldgoal(_inst,_other);break;}};_inst.depth=yyftime(__yy_gml_errCheck(__yy_gml_errCheck(-__yy_gml_errCheck(_inst.y))),10); _inst.image_speed=1;if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldrivedir,1)){_inst.image_speed=(-1);};gml_Script_s_check_ball_position(_inst,_other);if(yyfnotequal(_inst.gmlstate,gmlold_ballstate)){{gml_Script_s_create_match_message(_inst,_other,_inst.gmlstate);};};if(yyfgreater(abs(yyfminus(__yy_gml_errCheck(gmllastx),__yy_gml_errCheck(_inst.x))),1)){{var gmli=20;for(;yyfgreater(gmli,0);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.subtract(1):--gmli),g_yyPrePostObject__)){ {_inst.gmll_blur=__yy_gml_array_check(_inst.gmll_blur,2127366110);_inst.gmll_blur[__yy_gml_array_check_index_chain(gmli,_inst.gmll_blur)][__yy_gml_array_check_index_set(0)]=_inst.gmll_blur[__yy_gml_array_check_index(yyfminus(__yy_gml_errCheck(gmli),1),_inst.gmll_blur)][__yy_gml_array_check_index(0,_inst.gmll_blur[~~yyfminus(__yy_gml_errCheck(gmli),1)])];_inst.gmll_blur[__yy_gml_array_check_index_chain(gmli,_inst.gmll_blur)][__yy_gml_array_check_index_set(1)]=_inst.gmll_blur[__yy_gml_array_check_index(yyfminus(__yy_gml_errCheck(gmli), 1),_inst.gmll_blur)][__yy_gml_array_check_index(1,_inst.gmll_blur[~~yyfminus(__yy_gml_errCheck(gmli),1)])];}};_inst.gmll_blur=__yy_gml_array_check(_inst.gmll_blur,2127366110);_inst.gmll_blur[__yy_gml_array_check_index_chain(0,_inst.gmll_blur)][__yy_gml_array_check_index_set(0)]=_inst.x;_inst.gmll_blur[__yy_gml_array_check_index_chain(0,_inst.gmll_blur)][__yy_gml_array_check_index_set(1)]=yyfminus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(_inst.gmlheight),1)));};};if((yyGetBool(_inst.gmlholder))||(yyGetBool(yyfless(_inst.gmlvelocity, 1)))){_inst.image_index=0;};_inst.gmlhidden=false;{var __yy__v2303=GetWithArray(_inst.gmlholder);for(var __yy__v2304 in __yy__v2303){if(!__yy__v2303.hasOwnProperty(__yy__v2304))continue;var __yy__v2305=__yy__v2303[__yy__v2304];{if(yyGetBool(gml_Script_s_sprite_holding_ball(__yy__v2305,_inst,__yy__v2305.sprite_index))){_inst.gmlhidden=true;};}}};gml_Script_s_update_my_shadow(_inst,_other);if(yyGetBool(_inst.gmlhidden)){layer_sprite_y(_inst.gmlmy_shadow,(-99999));};}function gml_Object_obj_ball_Step_2(_inst, _other){if((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlstate,2)))&&(yyGetBool(yyfnotequal(yyInst(_inst,_other,global.gmlmaster_ball).gmlstate,0)))&&(yyGetBool(yyfequal(yyfmod(__yy_gml_errCheck(global.gmlreplay_tick),4),0)))){gml_Script_s_record_frame(_inst,_other);};}function gml_Object_obj_ball_Draw_0(_inst,_other){if(yyGetBool(_inst.gmlhidden)){return;};if((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlstate,2)))&&(yyGetBool((yyGetBool(yyfequal(_inst.gmlstate, 0)))||(yyGetBool(yyfequal(_inst.gmlstate,1)))))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlkicking)))){{var ___sw2050___=yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldrivedir;var ___swc2051___=-1;if(yyCompareVal(___sw2050___,(-1),g_GMLMathEpsilon,false)==0){___swc2051___=0;}else if(yyCompareVal(___sw2050___,1,g_GMLMathEpsilon,false)==0){___swc2051___=1;}switch(___swc2051___){case 0:{draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,yyfplus(__yy_gml_errCheck(_inst.x), 4),yyfminus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.gmlheight)),2,2,_inst.gmlrotation,16777215,1);break;}case 1:{draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,yyfminus(__yy_gml_errCheck(_inst.x),4),yyfminus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.gmlheight)),2,2,_inst.gmlrotation,16777215,1);break;}};};}else {{if((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlstate,2)))&&(yyGetBool(yyfequal(_inst.gmlstate,3)))){{var gmla=min(yyftime(__yy_gml_errCheck(_inst.gmlheight), 0.005),0.09);var gmli=0;for(;yyfless(gmli,20);(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{draw_sprite_ext(_inst,YYASSET_REF(0x0100000E),_inst.image_index,_inst.gmll_blur[__yy_gml_array_check_index(gmli,_inst.gmll_blur)][__yy_gml_array_check_index(0,_inst.gmll_blur[~~gmli])],_inst.gmll_blur[__yy_gml_array_check_index(gmli,_inst.gmll_blur)][__yy_gml_array_check_index(1,_inst.gmll_blur[~~gmli])],2,2,_inst.gmlrotation,16777215,gmla);gmla=yyftime(gmla, 0.9);}};};};draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.x,yyfminus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.gmlheight)),2,2,_inst.gmlrotation,16777215,1);};};}function gml_Object_obj_ball_Draw_64(_inst,_other){if((yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlkicking))&&(yyGetBool(gml_Script_s_aiming(_inst,_other)))){{gml_Script_s_draw_kicking_power(_inst,_other);};};return;if(yyfnotequal(global.gmlmaster_ball,_inst.id)){return;};draw_set_halign(0);gml_Script_draw_hd_text(_inst, _other,10,30,gml_Script_s_get_string_ball_state(_inst,_other));gml_Script_draw_hd_text(_inst,_other,10,40,string(round(_inst.gmlheight)));gml_Script_draw_hd_text(_inst,_other,10,50,yyfplus("Kicking = ",__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlkicking))));}// /// @description Insert description here function gml_Object_obj_ball_Collision_obj_dummy(_inst,_other){}function gml_Object_obj_metaball_Create_0(_inst,_other){event_inherited(_inst,_other);_inst.gmldraw_arc=false; _inst.gmldraw_bounce=false;_inst.gmlplot_x=array_create(50,0);_inst.gmlplot_y=array_create(50,0);_inst.gmlplot_z=array_create(50,0);_inst.gmlbounce_x=0;_inst.gmlbounce_y=0;_inst.gmljump_x=0;_inst.gmljump_y=0;_inst.gmlplot_len=10;_inst.gmlzvel_limit=0;_inst.gmlgap=2;if((yyGetBool(yyInst(_inst,_other,global.gmlmaster_ball).gmlholder))&&(yyGetBool(yyInst(_inst,_other,yyInst(_inst,_other,global.gmlmaster_ball).gmlholder).gmlpmap))){{var gmlskl=gml_Script_s_get_attribute(_inst,_other,yyInst(_inst,_other, yyInst(_inst,_other,global.gmlmaster_ball).gmlholder).gmlpmap,"skill");_inst.gmlplot_len=yyfplus(10,__yy_gml_errCheck(gmlskl));_inst.gmlzvel_limit=yyftime(__yy_gml_errCheck(__yy_gml_errCheck(-__yy_gml_errCheck(gmlskl))),0.15);};}else {if((yyGetBool(global.gmlexhibition))&&(yyGetBool(yyInst(_inst,_other,global.gmlmaster_ball).gmlholder))){{var gmlskl=yyInst(_inst,_other,yyInst(_inst,_other,global.gmlmaster_ball).gmlholder).gmlskill;_inst.gmlplot_len=yyfplus(10,__yy_gml_errCheck(gmlskl));_inst.gmlzvel_limit=yyftime(__yy_gml_errCheck(__yy_gml_errCheck(-__yy_gml_errCheck(gmlskl))), 0.15);};};};layer_sprite_destroy(_inst.gmlmy_shadow);}function gml_Object_obj_metaball_Step_0(_inst,_other){var gmlball=global.gmlmaster_ball;_inst.x=yyInst(_inst,_other,gmlball).x;_inst.y=yyInst(_inst,_other,gmlball).y;_inst.gmldraw_arc=false;_inst.gmldraw_bounce=false;_inst.gmldragdist=yyInst(_inst,_other,gmlball).gmldragdist;_inst.gmlbounce_alf=1;{var __yy__v2306=GetWithArray(gmlball);for(var __yy__v2307 in __yy__v2306){if(!__yy__v2306.hasOwnProperty(__yy__v2307))continue;var __yy__v2308=__yy__v2306[__yy__v2307]; {if((yyGetBool(instance_exists(__yy__v2308.gmlholder)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,__yy__v2308.gmlholder).gmlposition,1)))){{_inst.x=yyInst(_inst,_other,__yy__v2308.gmlholder).x;_inst.y=yyInst(_inst,_other,__yy__v2308.gmlholder).y;var gmlfadestart=1;var gmlaccuracy=0;if(yyGetBool(yyInst(_inst,_other,__yy__v2308.gmlholder).gmlpmap)){gmlaccuracy=gml_Script_s_get_attribute(__yy__v2308,_inst,yyInst(_inst,_other,__yy__v2308.gmlholder).gmlpmap,"skill");};gmlfadestart=yyfplus(gmlfadestart,yyftime(__yy_gml_errCheck(clamp(gmlaccuracy, 0,10)),0.05));if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_difficulty,1)){_inst.gmlbounce_alf=1;}else {if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_difficulty,4)){_inst.gmlbounce_alf=0;}else {{var ___sw2054___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_difficulty;var ___swc2055___=-1;if(yyCompareVal(___sw2054___,0,g_GMLMathEpsilon,false)==0){___swc2055___=0;}else if(yyCompareVal(___sw2054___,2,g_GMLMathEpsilon,false)==0){___swc2055___=1;}else if(yyCompareVal(___sw2054___, 3,g_GMLMathEpsilon,false)==0){___swc2055___=2;}switch(___swc2055___){case 0:{gmlaccuracy=yyfplus(gmlaccuracy,clamp(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsuppress_difficulty,0,10));break;}case 1:{gmlaccuracy=yyfplus(gmlaccuracy,6);break;}case 2:{break;}};_inst.gmlbounce_alf=yyfminus(__yy_gml_errCheck(gmlfadestart),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(__yy__v2308.gmldragdist),75)));};};};if(yyfequal(__yy__v2308.gmlstate,2)){{if((yyGetBool(yyfgreaterequal(__yy__v2308.gmldragdist,20)))||(yyGetBool(yyInst(_inst, _other,YYASSET_REF(0x00000069)).gmlkicking))){_inst.gmldraw_arc=true;};if((yyGetBool(global.gmlgamepad))&&(yyGetBool(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_difficulty,4)))){_inst.gmldraw_bounce=true;};};};};}else {{if((yyGetBool(yyfequal(__yy__v2308.gmlstate,3)))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlkicking)))){_inst.gmldraw_bounce=true;};};};if((yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlkicking))&&(yyGetBool((yyGetBool(yyfnotequal(yyInst(_inst, _other,YYASSET_REF(0x00000069)).gmlpossession,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlhuman_team)))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayerteamindex,(-1))))))){_inst.gmldraw_arc=false;};}}};_inst.gmlheight=yyInst(_inst,_other,gmlball).gmlheight;_inst.gmldirec=yyInst(_inst,_other,gmlball).gmldirec;_inst.gmlvelocity=yyInst(_inst,_other,gmlball).gmlvelocity;_inst.gmlzvel=yyInst(_inst, _other,gmlball).gmlzvel;var gmlbeat=0;var gmlp=0;_inst.gmlbounce_x=0;_inst.gmlbounce_y=0;_inst.gmljump_x=0;_inst.gmljump_y=0;while(yyfgreater(_inst.gmlheight,0)){{gml_Script_s_update_ball_movement(_inst,_other,true);(g_yyPrePostObject__=gmlbeat,gmlbeat=(g_yyPrePostObject__ instanceof Long?gmlbeat.add(1):++gmlbeat),g_yyPrePostObject__);if((yyGetBool(yyfgreater(gmlbeat,_inst.gmlgap)))&&(yyGetBool(yyfless(gmlp,_inst.gmlplot_len)))&&(yyGetBool(yyfgreater(_inst.gmlzvel,_inst.gmlzvel_limit)))){{gmlbeat=0; _inst.gmlplot_x=__yy_gml_array_check(_inst.gmlplot_x,3053169775);_inst.gmlplot_x[__yy_gml_array_check_index_set(gmlp)]=_inst.x;_inst.gmlplot_y=__yy_gml_array_check(_inst.gmlplot_y,2900401454);_inst.gmlplot_y[__yy_gml_array_check_index_set(gmlp)]=_inst.y;_inst.gmlplot_z=__yy_gml_array_check(_inst.gmlplot_z,2278412013);_inst.gmlplot_z[__yy_gml_array_check_index_set(gmlp)]=_inst.gmlheight;(g_yyPrePostObject__=gmlp,gmlp=(g_yyPrePostObject__ instanceof Long?gmlp.add(1):++gmlp),g_yyPrePostObject__);};}; if((yyGetBool(yyfless(_inst.gmlzvel,0)))&&(yyGetBool(yyfequal(_inst.gmljump_x,0)))&&(yyGetBool(yyfgreater(_inst.gmlheight,54)))&&(yyGetBool(yyfless(_inst.gmlheight,60)))){{_inst.gmljump_x=_inst.x;_inst.gmljump_y=_inst.y;};};if((yyGetBool(yyfless(_inst.gmlzvel,0)))&&(yyGetBool(yyfequal(_inst.gmlbounce_x,0)))&&(yyGetBool(yyfless(_inst.gmlheight,12)))){{_inst.gmlbounce_x=_inst.x;_inst.gmlbounce_y=_inst.y;};};}};_inst.gmlq=gmlp;for(;yyfless(_inst.gmlq,_inst.gmlplot_len);(g_yyPrePostObject__=_inst.gmlq, _inst.gmlq=(g_yyPrePostObject__ instanceof Long?_inst.gmlq.add(1):++_inst.gmlq),g_yyPrePostObject__)){{_inst.gmlplot_x=__yy_gml_array_check(_inst.gmlplot_x,3053169775);_inst.gmlplot_x[__yy_gml_array_check_index_set(_inst.gmlq)]=0;_inst.gmlplot_y=__yy_gml_array_check(_inst.gmlplot_y,2900401454);_inst.gmlplot_y[__yy_gml_array_check_index_set(_inst.gmlq)]=0;_inst.gmlplot_z=__yy_gml_array_check(_inst.gmlplot_z,2278412013);_inst.gmlplot_z[__yy_gml_array_check_index_set(_inst.gmlq)]=0;}};}function gml_Object_obj_metaball_Draw_0(_inst, _other){if(yyfnotequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlstate,2)){return;};if((yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlkicking))&&(yyGetBool(_inst.gmldraw_arc))&&(yyGetBool(!yyGetBool(gml_Script_s_is_kickoff(_inst,_other,0))))){{{var __yy__v2309=GetWithArray(global.gmlmaster_ball);for(var __yy__v2310 in __yy__v2309){if(!__yy__v2309.hasOwnProperty(__yy__v2310))continue;var __yy__v2311=__yy__v2309[__yy__v2310];{var gmldir=__yy__v2311.gmldirec;var gmllen=180;var gmlsx=__yy__v2311.x; var gmlsy=__yy__v2311.y;if(yyGetBool(__yy__v2311.gmlholder)){{gmllen=yyfplus(180,__yy_gml_errCheck(yyftime(5,__yy_gml_errCheck(yyInst(_inst,_other,__yy__v2311.gmlholder).gmlmy_kick_skill))));gmlsx=yyInst(_inst,_other,__yy__v2311.gmlholder).x;gmlsy=yyInst(_inst,_other,__yy__v2311.gmlholder).y;};}else {gml_Script_slog(__yy__v2311,_inst,"No holder!");};{var __yy__v2312=GetWithArray(YYASSET_REF(0x0000006C));for(var __yy__v2313 in __yy__v2312){if(!__yy__v2312.hasOwnProperty(__yy__v2313))continue;var __yy__v2314=__yy__v2312[__yy__v2313]; {if(yyfequal(__yy__v2314.gmlposition,11)){{gmlsx=__yy__v2314.x;gmlsy=__yy__v2314.y;};};}}};var gmlkx=yyfplus(__yy_gml_errCheck(gmlsx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(dcos(gmldir)),__yy_gml_errCheck(gmllen))));var gmlky=yyfplus(__yy_gml_errCheck(gmlsy),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(dsin(gmldir)),__yy_gml_errCheck(gmllen))));draw_set_colour(16777215);draw_set_alpha(0.75);draw_line_width(gmlsx,gmlsy,gmlkx,gmlky,3);if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldrivedir, 1)){draw_sprite_ext(__yy__v2311,YYASSET_REF(0x0100004D),0,gmlkx,gmlky,0.75,0.75,__yy_gml_errCheck(-__yy_gml_errCheck(gmldir)),16777215,0.75);}else {draw_sprite_ext(__yy__v2311,YYASSET_REF(0x0100004D),0,yyfplus(__yy_gml_errCheck(gmlkx),1),yyfplus(__yy_gml_errCheck(gmlky),1.5),0.75,0.75,__yy_gml_errCheck(-__yy_gml_errCheck(gmldir)),16777215,0.75);};}}};};}else {if(yyGetBool(_inst.gmldraw_arc)){{draw_set_colour(0);_inst.gmlb=0;for(;yyfless(_inst.gmlb,_inst.gmlplot_len);(g_yyPrePostObject__=_inst.gmlb, _inst.gmlb=(g_yyPrePostObject__ instanceof Long?_inst.gmlb.add(1):++_inst.gmlb),g_yyPrePostObject__)){{draw_set_alpha(0.5);draw_rectangle(_inst.gmlplot_x[__yy_gml_array_check_index(_inst.gmlb,_inst.gmlplot_x)],_inst.gmlplot_y[__yy_gml_array_check_index(_inst.gmlb,_inst.gmlplot_y)],yyfplus(__yy_gml_errCheck(_inst.gmlplot_x[__yy_gml_array_check_index(_inst.gmlb,_inst.gmlplot_x)]),2),yyfplus(__yy_gml_errCheck(_inst.gmlplot_y[__yy_gml_array_check_index(_inst.gmlb,_inst.gmlplot_y)]),2),false);}};};};}; if(yyGetBool(_inst.gmldraw_bounce)){{draw_sprite_ext(_inst,YYASSET_REF(0x0100004E),0,_inst.gmlbounce_x,_inst.gmlbounce_y,2,2,0,65535,_inst.gmlbounce_alf);};};draw_set_colour(16777215);draw_set_alpha(1);}function gml_Object_obj_metaball_Draw_73(_inst,_other){if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlkicking)){return;};draw_set_colour(16777215);if(yyGetBool(_inst.gmldraw_arc)){{_inst.gmlb=0;for(;yyfless(_inst.gmlb,_inst.gmlplot_len);(g_yyPrePostObject__=_inst.gmlb,_inst.gmlb=(g_yyPrePostObject__ instanceof Long?_inst.gmlb.add(1):++_inst.gmlb), g_yyPrePostObject__)){{draw_set_alpha(1);var gmlz=yyfminus(__yy_gml_errCheck(_inst.gmlplot_y[__yy_gml_array_check_index(_inst.gmlb,_inst.gmlplot_y)]),__yy_gml_errCheck(_inst.gmlplot_z[__yy_gml_array_check_index(_inst.gmlb,_inst.gmlplot_z)]));draw_sprite_ext(_inst,YYASSET_REF(0x01000051),0,_inst.gmlplot_x[__yy_gml_array_check_index(_inst.gmlb,_inst.gmlplot_x)],gmlz,2,2,0,16777215,1);}};};};}function gml_Object_obj_match_msg_Create_0(_inst,_other){gml_Script_slog(_inst,_other,"Create obj_match_msg"); _inst.gmlw=display_get_gui_width();_inst.gmlh=display_get_gui_height();_inst.gmltx=yyftime(__yy_gml_errCheck(_inst.gmlw),0.5);_inst.gmlty=yyftime(__yy_gml_errCheck(_inst.gmlh),0.5);{var __yy__v2315=GetWithArray(YYASSET_REF(0x00000069));for(var __yy__v2316 in __yy__v2315){if(!__yy__v2315.hasOwnProperty(__yy__v2316))continue;var __yy__v2317=__yy__v2315[__yy__v2316];if(yyfequal(__yy__v2317.gmlstate,2)){_inst.gmlty=yyftime(__yy_gml_errCheck(_inst.gmlh),0.75);};}};}function gml_Object_obj_match_msg_Alarm_0(_inst, _other){instance_destroy(_inst);}function gml_Object_obj_match_msg_Draw_64(_inst,_other){if(yyfequal(_inst.gmltext,"")){return;};var gmlbuf=20;draw_set_font(global.gmlfnt_flex);draw_set_halign(1);draw_set_valign(1);var gmlf=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()),80))),1)),2);if(!yyGetBool(_inst.gmlflash)){gmlf=1;};draw_set_alpha(_inst.gmlbg_alpha);var gmlbuf2=0;if(yyfnotequal(_inst.gmlsub_text,"")){gmlbuf2=15;};draw_rectangle_color(0, yyfminus(__yy_gml_errCheck(_inst.gmlty),__yy_gml_errCheck(gmlbuf)),_inst.gmlw,yyfplus(yyfplus(__yy_gml_errCheck(_inst.gmlty),__yy_gml_errCheck(gmlbuf)),__yy_gml_errCheck(gmlbuf2)),0,0,0,0,0);draw_set_alpha(1);var gmlscl=1;if(yyGetBool(instance_exists(YYASSET_REF(0x00000069)))){gmlscl=1.5;};gml_Script_draw_hd_text_transformed_color(_inst,_other,yyfminus(__yy_gml_errCheck(_inst.gmltx),1),yyfplus(__yy_gml_errCheck(_inst.gmlty),1),_inst.gmltext,gmlscl,gmlscl,0,0,0,0,0,yyftime(__yy_gml_errCheck(gmlf), 0.5));gml_Script_draw_hd_text_transformed_color(_inst,_other,_inst.gmltx,_inst.gmlty,_inst.gmltext,gmlscl,gmlscl,0,_inst.gmlcol,_inst.gmlcol,_inst.gmlcol,_inst.gmlcol,gmlf);if(yyfnotequal(_inst.gmlsub_text,"")){{draw_set_font(global.gmlfnt_small_flex);gml_Script_draw_hd_text_transformed_color(_inst,_other,_inst.gmltx,yyfplus(__yy_gml_errCheck(_inst.gmlty),25),_inst.gmlsub_text,1,1,0,16777215,16777215,16777215,16777215,1);};};}function gml_Object_obj_match_msg_PreCreate_0(_inst,_other){event_inherited(_inst, _other);_inst.gmltext="Message";_inst.gmlflash=false;_inst.gmlcol=0;_inst.gmlbg_alpha=0.8;_inst.gmlsub_text="";}function gml_Object_obj_fieldtxt_Step_0(_inst,_other){_inst.y=yyfminus(_inst.y,0.2);_inst.gmlalpha=yyfminus(_inst.gmlalpha,0.025);if(yyGetBool(_inst.gmlimg)){{_inst.y=yyfminus(_inst.y,0.1);_inst.gmlimgscl=yyfplus(_inst.gmlimgscl,0.01);};};if(yyflessequal(_inst.gmlalpha,0)){instance_destroy(_inst);};}function gml_Object_obj_fieldtxt_Draw_0(_inst,_other){if(yyGetBool(_inst.gmlimg)){{draw_sprite_ext(_inst, _inst.gmlimg,_inst.gmlsubimg,_inst.x,_inst.y,_inst.gmlimgscl,_inst.gmlimgscl,0,16777215,1);};}else {{draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);draw_set_valign(1);gml_Script_draw_hd_text_transformed_color(_inst,_other,yyfminus(__yy_gml_errCheck(_inst.x),1),yyfplus(__yy_gml_errCheck(_inst.y),1),_inst.gmltxt,2,2,0,16777215,16777215,16777215,16777215,yyftime(__yy_gml_errCheck(_inst.gmlalpha),0.25));gml_Script_draw_hd_text_transformed_color(_inst,_other,_inst.x,_inst.y,_inst.gmltxt,2, 2,0,_inst.gmlcolour,_inst.gmlcolour,_inst.gmlcolour,_inst.gmlcolour,_inst.gmlalpha);};};}function gml_Object_obj_fieldtxt_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltxt="Text";_inst.gmlalpha=2;_inst.gmlcolour=new Long(4278190080,0,false);_inst.gmlimg=(-4);_inst.gmlsubimg=0;_inst.gmlimgscl=1;}function gml_Object_obj_goal_stand_Create_0(_inst,_other){if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{_inst.sprite_index=YYASSET_REF(0x0100014B);};};_inst.gmlmy_shadow=layer_sprite_create(layer_get_id("Shadows"), _inst.x,_inst.y,YYASSET_REF(0x01000018));layer_sprite_blend(_inst.gmlmy_shadow,0);layer_sprite_alpha(_inst.gmlmy_shadow,0.2);layer_sprite_angle(_inst.gmlmy_shadow,0);layer_sprite_xscale(_inst.gmlmy_shadow,2);layer_sprite_yscale(_inst.gmlmy_shadow,2);_inst.image_xscale=2;_inst.image_yscale=2;if(yyfgreater(_inst.x,1300)){{_inst.image_xscale=(-2);layer_sprite_xscale(_inst.gmlmy_shadow,(-2));};};if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,gml_Script_s_get_week_superbowl(_inst,_other))){ _inst.image_index=1;};}function gml_Object_obj_goal_stand_Step_0(_inst,_other){layer_sprite_x(_inst.gmlmy_shadow,_inst.x);layer_sprite_y(_inst.gmlmy_shadow,_inst.y);_inst.depth=yyftime(__yy_gml_errCheck(__yy_gml_errCheck(-__yy_gml_errCheck(_inst.y))),10);}function gml_Object_obj_goal_post_Create_0(_inst,_other){{_inst.sprite_index=YYASSET_REF(0x01000127);};_inst.image_xscale=2;_inst.image_yscale=2;if(yyfgreater(_inst.x,1300)){{_inst.image_xscale=(-2);};};}function gml_Object_obj_goal_post_Step_0(_inst, _other){_inst.depth=yyftime(__yy_gml_errCheck(__yy_gml_errCheck(-__yy_gml_errCheck(_inst.y))),10);}function gml_Object_obj_boundary_Step_0(_inst,_other){var ___sw2058___=_inst.gmlbound_type;var ___swc2059___=-1;if(yyCompareVal(___sw2058___,0,g_GMLMathEpsilon,false)==0){___swc2059___=0;}else if(yyCompareVal(___sw2058___,1,g_GMLMathEpsilon,false)==0){___swc2059___=1;}else if(yyCompareVal(___sw2058___,2,g_GMLMathEpsilon,false)==0){___swc2059___=2;}else if(yyCompareVal(___sw2058___,3,g_GMLMathEpsilon,false)==0){ ___swc2059___=3;}switch(___swc2059___){case 0:{{var __yy__v2318=GetWithArray(YYASSET_REF(0x0000006B));for(var __yy__v2319 in __yy__v2318){if(!__yy__v2318.hasOwnProperty(__yy__v2319))continue;var __yy__v2320=__yy__v2318[__yy__v2319];if(yyfless(__yy__v2320.x,_inst.x)){{__yy__v2320.x=_inst.x;__yy__v2320.hspeed=0;};};}};break;}case 1:{{var __yy__v2321=GetWithArray(YYASSET_REF(0x0000006B));for(var __yy__v2322 in __yy__v2321){if(!__yy__v2321.hasOwnProperty(__yy__v2322))continue;var __yy__v2323=__yy__v2321[__yy__v2322]; if(yyfgreater(__yy__v2323.x,_inst.x)){{__yy__v2323.x=_inst.x;__yy__v2323.hspeed=0;};};}};break;}case 2:{{var __yy__v2324=GetWithArray(YYASSET_REF(0x0000006B));for(var __yy__v2325 in __yy__v2324){if(!__yy__v2324.hasOwnProperty(__yy__v2325))continue;var __yy__v2326=__yy__v2324[__yy__v2325];if(yyfless(__yy__v2326.y,_inst.y)){{__yy__v2326.y=_inst.y;__yy__v2326.vspeed=0;};};}};break;}case 3:{{var __yy__v2327=GetWithArray(YYASSET_REF(0x0000006B));for(var __yy__v2328 in __yy__v2327){if(!__yy__v2327.hasOwnProperty(__yy__v2328))continue; var __yy__v2329=__yy__v2327[__yy__v2328];if(yyfgreater(__yy__v2329.y,_inst.y)){{__yy__v2329.y=_inst.y;__yy__v2329.vspeed=0;};};}};break;}};}function gml_Object_obj_boundary_Draw_0(_inst,_other){var gmlbx=_inst.x;var gmlby=_inst.y;var gmlb_end=false;var ___sw2064___=_inst.gmlbound_type;var ___swc2065___=-1;if(yyCompareVal(___sw2064___,0,g_GMLMathEpsilon,false)==0){___swc2065___=0;}else if(yyCompareVal(___sw2064___,1,g_GMLMathEpsilon,false)==0){___swc2065___=1;}else if(yyCompareVal(___sw2064___,2,g_GMLMathEpsilon, false)==0){___swc2065___=2;}else if(yyCompareVal(___sw2064___,3,g_GMLMathEpsilon,false)==0){___swc2065___=3;}switch(___swc2065___){case 0:{gmlbx=yyfminus(gmlbx,2);break;}case 1:{gmlbx=yyfplus(gmlbx,2);break;}case 2:{gmlby=yyfminus(gmlby,2);break;}case 3:{gmlby=yyfplus(gmlby,2);break;}};do {{var gmlcone=YYASSET_REF(0x01000107);draw_sprite_ext(_inst,gmlcone,0,gmlbx,gmlby,2,2,0,16777215,1);var ___sw2066___=_inst.gmlbound_type;var ___swc2067___=-1;if(yyCompareVal(___sw2066___,0,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw2066___, 1,g_GMLMathEpsilon,false)==0){___swc2067___=0;}else if(yyCompareVal(___sw2066___,2,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw2066___,3,g_GMLMathEpsilon,false)==0){___swc2067___=1;}switch(___swc2067___){case 0:{gmlby=yyfplus(gmlby,_inst.gmlgap);gmlb_end=yyfgreater(gmlby,yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.gmlbound_len)));break;}case 1:{gmlbx=yyfplus(gmlbx,_inst.gmlgap);gmlb_end=yyfgreater(gmlbx,yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.gmlbound_len)));break; }};}}while(!(yyGetBool(gmlb_end)));}function gml_Object_obj_boundary_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlbound_type=0;_inst.gmlbound_len=0;_inst.gmlgap=60;}function gml_Object_obj_weather_Create_0(_inst,_other){_inst.gmlwind_force=0;_inst.gmlwind=irandom(9);_inst.gmlwind_dir=irandom(7);_inst.gmlrain_rate=1;_inst.gmlrain_speed=3;if(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmldifficulty,1)){_inst.gmlwind=clamp(irandom(15),0,9);};if(yyfgreater(yyInst(_inst,_other, YYASSET_REF(0x00000069)).gmldifficulty,5)){_inst.gmlwind=irandom(5);};var gmlhometeam=yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam[__yy_gml_array_check_index(1,yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlteam)];_inst.gmltype=0;if((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear,1)))||(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,gml_Script_s_get_week_superbowl(_inst,_other))))||(yyGetBool(gml_Script_s_is_co_bowl_week(_inst,_other,yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlweek)))){{};}else {if(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,12)){{if(yyfless(irandom(200),real(ds_map_find_value(gmlhometeam,"rainfall")))){_inst.gmltype=1;};};}else {if(yyflessequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs)){{if(yyfless(irandom(200),real(ds_map_find_value(gmlhometeam,"rainfall")))){{_inst.gmltype=1;};}else {if(yyfless(yyfplus(1,__yy_gml_errCheck(irandom(150))), real(ds_map_find_value(gmlhometeam,"snowfall")))){{_inst.gmltype=2;_inst.gmlwind=0;};};};};}else {{if(yyfless(yyfplus(1,__yy_gml_errCheck(irandom(100))),ds_map_find_value(gmlhometeam,"snowfall"))){{_inst.gmltype=2;_inst.gmlwind=0;};}else {if(yyfless(irandom(200),ds_map_find_value(gmlhometeam,"rainfall"))){{_inst.gmltype=1;};};};};};};};if(yyGetBool(global.gmlexhibition)){{var ___sw2072___=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"exh_op_weather");var ___swc2073___=-1; if(yyCompareVal(___sw2072___,0,g_GMLMathEpsilon,false)==0){___swc2073___=0;}else if(yyCompareVal(___sw2072___,1,g_GMLMathEpsilon,false)==0){___swc2073___=1;}else if(yyCompareVal(___sw2072___,2,g_GMLMathEpsilon,false)==0){___swc2073___=2;}else if(yyCompareVal(___sw2072___,3,g_GMLMathEpsilon,false)==0){___swc2073___=3;}switch(___swc2073___){case 0:{_inst.gmltype=choose(0,1,2);_inst.gmlwind=clamp(irandom_range((-4),9),0,9);break;}case 1:{_inst.gmltype=0;_inst.gmlwind=irandom(5);break;}case 2:{_inst.gmltype=1; _inst.gmlwind=irandom(9);break;}case 3:{_inst.gmltype=2;_inst.gmlwind=0;break;}};return;};};if((yyGetBool(!yyGetBool(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"op_weather"))))||(yyGetBool(yyfequal(_inst.gmltype,0)))||(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlgamepractice))){{instance_destroy(_inst);return;};};var ___sw2074___=real(ds_map_find_value(gmlhometeam,"roof"));var ___swc2075___=-1;if(yyCompareVal(___sw2074___,0,g_GMLMathEpsilon,false)==0){ ___swc2075___=0;}else if(yyCompareVal(___sw2074___,1,g_GMLMathEpsilon,false)==0){___swc2075___=1;}else if(yyCompareVal(___sw2074___,2,g_GMLMathEpsilon,false)==0){___swc2075___=2;}switch(___swc2075___){case 0:{break;}case 1:{if((yyGetBool(yyfnotequal(_inst.gmltype,0)))||(yyGetBool(yyfgreater(_inst.gmlwind,5)))){{instance_destroy(_inst);return;};};break;}case 2:{instance_destroy(_inst);return;break;}};}function gml_Object_obj_weather_Step_0(_inst,_other){var ___sw2078___=_inst.gmltype;var ___swc2079___=-1; if(yyCompareVal(___sw2078___,1,g_GMLMathEpsilon,false)==0){___swc2079___=0;}else if(yyCompareVal(___sw2078___,2,g_GMLMathEpsilon,false)==0){___swc2079___=1;}switch(___swc2079___){case 0:{for(var __yy__v2330=0,__yy__v2331=yyGetInt32(_inst.gmlrain_rate);__yy__v2330<__yy__v2331;__yy__v2330++){{instance_create_layer(irandom(g_pBuiltIn.room_width),0,"Weather",YYASSET_REF(0x00000077));}};break;}case 1:{var gmlcw=camera_get_view_width(g_pBuiltIn.view_camera[__yy_gml_array_check_index(0,g_pBuiltIn.view_camera)]); var gmlcx=camera_get_view_x(g_pBuiltIn.view_camera[__yy_gml_array_check_index(0,g_pBuiltIn.view_camera)]);var gmlsx=yyfplus(__yy_gml_errCheck(gmlcx),__yy_gml_errCheck(irandom(gmlcw)));if(!yyGetBool(irandom(2))){instance_create_layer(gmlsx,0,"Weather",YYASSET_REF(0x00000079));};break;}};}function gml_Object_obj_weather_Draw_64(_inst,_other){}function gml_Object_obj_weather_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltype=0;_inst.gmlwind_force=0;_inst.gmlwind=0;_inst.gmlwind_dir=0; _inst.gmlrain_rate=0;_inst.gmlrain_speed=0;}function gml_Object_obj_raindrop_Create_0(_inst,_other){var gmlrs=yyInst(_inst,_other,YYASSET_REF(0x00000076)).gmlrain_speed;var gmlw=yyInst(_inst,_other,YYASSET_REF(0x00000076)).gmlwind;var gmlwd=yyInst(_inst,_other,YYASSET_REF(0x00000076)).gmlwind_dir;var ___sw2082___=gmlwd;var ___swc2083___=-1;if(yyCompareVal(___sw2082___,0,g_GMLMathEpsilon,false)==0){___swc2083___=0;}else if(yyCompareVal(___sw2082___,1,g_GMLMathEpsilon,false)==0){___swc2083___=1;}else if(yyCompareVal(___sw2082___, 2,g_GMLMathEpsilon,false)==0){___swc2083___=2;}else if(yyCompareVal(___sw2082___,3,g_GMLMathEpsilon,false)==0){___swc2083___=3;}else if(yyCompareVal(___sw2082___,4,g_GMLMathEpsilon,false)==0){___swc2083___=4;}else if(yyCompareVal(___sw2082___,5,g_GMLMathEpsilon,false)==0){___swc2083___=5;}else if(yyCompareVal(___sw2082___,6,g_GMLMathEpsilon,false)==0){___swc2083___=6;}else if(yyCompareVal(___sw2082___,7,g_GMLMathEpsilon,false)==0){___swc2083___=7;}switch(___swc2083___){case 0:{_inst.hspeed=yyftime(__yy_gml_errCheck(gmlw), 0.1);break;}case 1:{_inst.hspeed=yyftime(__yy_gml_errCheck(gmlw),0.05);break;}case 2:{_inst.hspeed=0;break;}case 3:{_inst.hspeed=yyftime(__yy_gml_errCheck(gmlw),(-0.05));break;}case 4:{_inst.hspeed=yyftime(__yy_gml_errCheck(gmlw),(-0.1));break;}case 5:{_inst.hspeed=yyftime(__yy_gml_errCheck(gmlw),(-0.05));break;}case 6:{_inst.hspeed=0;break;}case 7:{_inst.hspeed=yyftime(__yy_gml_errCheck(gmlw),0.05);break;}};_inst.hspeed=0;_inst.gmlsplash=false;_inst.gmlim=1;var gmlsp=random_range(0.1,1);_inst.vspeed=yyftime(__yy_gml_errCheck(gmlrs), __yy_gml_errCheck(yyfplus(__yy_gml_errCheck(gmlsp),0.5)));_inst.gmlground=yyfplus(66,__yy_gml_errCheck(yyftime(468,__yy_gml_errCheck(gmlsp))));if(yyfgreater(_inst.gmlground,150)){_inst.gmlim=2;};_inst.gmly2=yyfminus(__yy_gml_errCheck(_inst.y),25);_inst.gmly3=yyfplus(__yy_gml_errCheck(_inst.y),50);_inst.gmlx2=yyfminus(__yy_gml_errCheck(_inst.x),250);_inst.gmlx3=yyfplus(__yy_gml_errCheck(_inst.x),250);_inst.gmlx4=yyfminus(__yy_gml_errCheck(_inst.x),500);_inst.gmlx5=yyfplus(__yy_gml_errCheck(_inst.x), 500);_inst.image_xscale=2;_inst.image_yscale=2;}function gml_Object_obj_raindrop_Step_0(_inst,_other){var ___sw2086___=_inst.gmlsplash;var ___swc2087___=-1;if(yyCompareVal(___sw2086___,false,g_GMLMathEpsilon,false)==0){___swc2087___=0;}else if(yyCompareVal(___sw2086___,true,g_GMLMathEpsilon,false)==0){___swc2087___=1;}switch(___swc2087___){case 0:{if(yyfgreater(_inst.y,_inst.gmlground)){{_inst.gmlsplash=true;_inst.vspeed=0;_inst.hspeed=0;_inst.sprite_index=YYASSET_REF(0x0100001B);_inst.image_index=0; _inst.image_speed=4;};}else {{_inst.gmly2=yyfminus(__yy_gml_errCheck(_inst.y),25);_inst.gmly3=yyfplus(__yy_gml_errCheck(_inst.y),50);_inst.gmlx2=yyfminus(__yy_gml_errCheck(_inst.x),250);_inst.gmlx3=yyfplus(__yy_gml_errCheck(_inst.x),250);_inst.gmlx4=yyfminus(__yy_gml_errCheck(_inst.x),500);_inst.gmlx5=yyfplus(__yy_gml_errCheck(_inst.x),500);};};break;}case 1:{if(yyfgreater(_inst.image_index,yyfminus(__yy_gml_errCheck(_inst.image_number),1))){instance_destroy(_inst);};break;}};}function gml_Object_obj_raindrop_Draw_0(_inst, _other){if(!yyGetBool(_inst.gmlsplash)){{draw_sprite(_inst,_inst.sprite_index,_inst.gmlim,_inst.x,_inst.y);draw_sprite(_inst,_inst.sprite_index,_inst.gmlim,_inst.gmlx2,_inst.gmly2);draw_sprite(_inst,_inst.sprite_index,_inst.gmlim,_inst.gmlx3,_inst.gmly2);draw_sprite(_inst,_inst.sprite_index,_inst.gmlim,_inst.gmlx4,_inst.gmly3);draw_sprite(_inst,_inst.sprite_index,_inst.gmlim,_inst.gmlx5,_inst.gmly3);};}else {{draw_sprite(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y);draw_sprite(_inst, _inst.sprite_index,_inst.image_index,_inst.gmlx2,_inst.gmly2);draw_sprite(_inst,_inst.sprite_index,_inst.image_index,_inst.gmlx3,_inst.gmly2);draw_sprite(_inst,_inst.sprite_index,_inst.image_index,_inst.gmlx4,_inst.gmly3);draw_sprite(_inst,_inst.sprite_index,_inst.image_index,_inst.gmlx5,_inst.gmly3);};};}function gml_Object_obj_season_tally_Create_0(_inst,_other){gml_Script_s_obj_season_tally_create(_inst,_other);}function gml_Object_obj_season_tally_Step_0(_inst,_other){gml_Script_s_obj_season_tally_step(_inst, _other);}function gml_Object_obj_season_tally_Draw_64(_inst,_other){gml_Script_s_obj_season_tally_draw_gui(_inst,_other);}function gml_Object_obj_season_tally_Draw_74(_inst,_other){gml_Script_s_obj_season_tally_draw_gui_begin(_inst,_other);}function gml_Object_obj_snowflake_Create_0(_inst,_other){_inst.speed=random_range(1,2);_inst.direction=(-90);_inst.gmldstep=0;_inst.gmlground=irandom(g_pBuiltIn.room_height);_inst.gmlscl=random_range(1,2);_inst.gmlalf=random_range(0.5,0.9);_inst.gmly2=yyfminus(__yy_gml_errCheck(_inst.y), 25);_inst.gmly3=yyfplus(__yy_gml_errCheck(_inst.y),50);_inst.gmlx2=yyfminus(__yy_gml_errCheck(_inst.x),250);_inst.gmlx3=yyfplus(__yy_gml_errCheck(_inst.x),250);_inst.gmlx4=yyfminus(__yy_gml_errCheck(_inst.x),500);_inst.gmlx5=yyfplus(__yy_gml_errCheck(_inst.x),500);}function gml_Object_obj_snowflake_Step_0(_inst,_other){if(yyfgreater(_inst.y,_inst.gmlground)){{_inst.gmlalf=yyfminus(_inst.gmlalf,0.01);_inst.speed=0;if(yyfless(_inst.gmlalf,0)){instance_destroy(_inst);};};}else {{_inst.gmldstep=yyfplus(_inst.gmldstep, 5);_inst.direction=yyfminus((-90),__yy_gml_errCheck(yyftime(10,__yy_gml_errCheck(yyfplus(0.5,__yy_gml_errCheck(dcos(_inst.gmldstep)))))));_inst.gmly2=yyfminus(__yy_gml_errCheck(_inst.y),25);_inst.gmly3=yyfplus(__yy_gml_errCheck(_inst.y),50);_inst.gmlx2=yyfminus(__yy_gml_errCheck(_inst.x),250);_inst.gmlx3=yyfplus(__yy_gml_errCheck(_inst.x),250);_inst.gmlx4=yyfminus(__yy_gml_errCheck(_inst.x),500);_inst.gmlx5=yyfplus(__yy_gml_errCheck(_inst.x),500);};};}function gml_Object_obj_snowflake_Draw_73(_inst, _other){draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.x,_inst.y,_inst.gmlscl,_inst.gmlscl,0,16777215,_inst.gmlalf);draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.gmlx2,_inst.gmly2,yyftime(__yy_gml_errCheck(_inst.gmlscl),0.5),yyftime(__yy_gml_errCheck(_inst.gmlscl),0.5),0,16777215,_inst.gmlalf);draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.gmlx3,_inst.gmly2,yyftime(__yy_gml_errCheck(_inst.gmlscl),0.75),yyftime(__yy_gml_errCheck(_inst.gmlscl), 0.75),0,16777215,_inst.gmlalf);draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.gmlx4,_inst.gmly3,yyftime(__yy_gml_errCheck(_inst.gmlscl),0.5),yyftime(__yy_gml_errCheck(_inst.gmlscl),0.5),0,16777215,_inst.gmlalf);draw_sprite_ext(_inst,_inst.sprite_index,_inst.image_index,_inst.gmlx5,_inst.gmly3,yyftime(__yy_gml_errCheck(_inst.gmlscl),0.75),yyftime(__yy_gml_errCheck(_inst.gmlscl),0.75),0,16777215,_inst.gmlalf);}function gml_Object_obj_snowflake_Draw_0(_inst,_other){}function gml_Object_obj_btn_audible_Create_0(_inst, _other){event_inherited(_inst,_other);_inst.gmltxt=gml_Script_s_str(_inst,_other,"match_ChangePlay");}function gml_Object_obj_btn_audible_Step_0(_inst,_other){{};_inst.gmlnum_auds=gml_Script_s_count_audibles(_inst,_other);{var __yy__v2332=GetWithArray(YYASSET_REF(0x0000004F));for(var __yy__v2333 in __yy__v2332){if(!__yy__v2332.hasOwnProperty(__yy__v2333))continue;var __yy__v2334=__yy__v2332[__yy__v2333];return;}};_inst.gmlmx=device_mouse_x_to_gui(0);_inst.gmlmy=device_mouse_y_to_gui(0);_inst.gmlhover=false; if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlstate,10)){return;};if(yyGetBool(global.gmlgamepad)){{if((yyGetBool(gamepad_button_check_pressed(yyInst(_inst,_other,global.gmlgp).gmlslot,_inst.gmlgp_mapped_button)))||(yyGetBool(gamepad_button_check_pressed(yyInst(_inst,_other,global.gmlgp).gmlslot,_inst.gmlgp_mapped_hidden)))){gml_Script_s_do_audible(_inst,_other);};};}else {{if(!yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other))){return;};if(yyGetBool(point_in_rectangle(_inst.gmlmx, _inst.gmlmy,_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height))))){_inst.gmlhover=true;};if((yyGetBool(_inst.gmlhover))&&(yyGetBool(mouse_check_button_pressed(1)))){{gml_Script_s_do_audible(_inst,_other);};};};};}function gml_Object_obj_btn_audible_Draw_64(_inst,_other){if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlstate,10)){return;};{};draw_set_font(global.gmlfnt_small_flex); draw_set_halign(1);draw_set_valign(1);draw_sprite_ext(_inst,_inst.sprite_index,yyfminus(__yy_gml_errCheck(_inst.gmlnum_auds),1),_inst.x,_inst.y,1,1,0,16777215,1);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(_inst.x),48),yyfplus(__yy_gml_errCheck(_inst.y),6),_inst.gmltxt);}function gml_Object_obj_btn_audible_Draw_0(_inst,_other){}function gml_Object_obj_btn_audible_Draw_75(_inst,_other){if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlstate,10)){return;};event_inherited(_inst, _other);}function gml_Object_obj_btn_audible_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlonClickAction=(-4);_inst.gmlhover=false;_inst.gmlnum_auds=0;}function gml_Object_obj_btn_timeout_Create_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltxt=gml_Script_s_str(_inst,_other,"match_StopClock");if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_matchlength,1)){_inst.sprite_index=YYASSET_REF(0x0100005F);};}function gml_Object_obj_btn_timeout_Step_0(_inst,_other){ _inst.gmlnum_tos=gml_Script_s_count_timeouts(_inst,_other);if((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlminutes,0)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlseconds,0)))){instance_destroy(_inst);};{var __yy__v2335=GetWithArray(YYASSET_REF(0x0000004F));for(var __yy__v2336 in __yy__v2335){if(!__yy__v2335.hasOwnProperty(__yy__v2336))continue;var __yy__v2337=__yy__v2335[__yy__v2336];return;}};_inst.gmlmx=device_mouse_x_to_gui(0);_inst.gmlmy=device_mouse_y_to_gui(0); _inst.gmlhover=false;if(yyGetBool(global.gmlgamepad)){{if((yyGetBool(gamepad_button_check_pressed(yyInst(_inst,_other,global.gmlgp).gmlslot,_inst.gmlgp_mapped_button)))||(yyGetBool(gamepad_button_check_pressed(yyInst(_inst,_other,global.gmlgp).gmlslot,_inst.gmlgp_mapped_hidden)))){gml_Script_s_do_timeout(_inst,_other);};};}else {{if(!yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other))){return;};if(yyGetBool(point_in_rectangle(_inst.gmlmx,_inst.gmlmy,_inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.x), __yy_gml_errCheck(_inst.sprite_width)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height))))){_inst.gmlhover=true;};if((yyGetBool(_inst.gmlhover))&&(yyGetBool(mouse_check_button_pressed(1)))){gml_Script_s_do_timeout(_inst,_other);};};};}function gml_Object_obj_btn_timeout_Draw_64(_inst,_other){draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);draw_set_valign(1);draw_sprite_ext(_inst,_inst.sprite_index,yyfminus(__yy_gml_errCheck(_inst.gmlnum_tos),1),_inst.x,_inst.y, 1,1,0,16777215,1);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(_inst.x),48),yyfplus(__yy_gml_errCheck(_inst.y),6),_inst.gmltxt);}function gml_Object_obj_btn_timeout_Draw_0(_inst,_other){}function gml_Object_obj_btn_timeout_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlonClickAction=(-4);_inst.gmlhover=false;_inst.gmlnum_tos=0;}function gml_Object_obj_btn_fieldgoal_Create_0(_inst,_other){event_inherited(_inst,_other);_inst.gmltxt=gml_Script_s_str(_inst,_other,"match_FieldGoal"); if(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlscrimmage,0)){_inst.gmltxt=gml_Script_s_str(_inst,_other,"match_Punt");};}function gml_Object_obj_btn_fieldgoal_Step_0(_inst,_other){{var __yy__v2338=GetWithArray(YYASSET_REF(0x0000004F));for(var __yy__v2339 in __yy__v2338){if(!__yy__v2338.hasOwnProperty(__yy__v2339))continue;var __yy__v2340=__yy__v2338[__yy__v2339];return;}};_inst.gmlmx=device_mouse_x_to_gui(0);_inst.gmlmy=device_mouse_y_to_gui(0);_inst.gmlhover=false;if(yyfequal(yyInst(_inst, _other,YYASSET_REF(0x00000069)).gmlstate,10)){return;};if(yyGetBool(global.gmlgamepad)){{if((yyGetBool(gamepad_button_check_pressed(yyInst(_inst,_other,global.gmlgp).gmlslot,_inst.gmlgp_mapped_button)))||(yyGetBool(gamepad_button_check_pressed(yyInst(_inst,_other,global.gmlgp).gmlslot,_inst.gmlgp_mapped_hidden)))){__yyg_call_method(_inst.gmlonClickAction)(_inst,_other);};};}else {{if(!yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other))){return;};if(yyGetBool(point_in_rectangle(_inst.gmlmx,_inst.gmlmy, _inst.x,_inst.y,yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)),yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height))))){_inst.gmlhover=true;};if((yyGetBool(_inst.gmlhover))&&(yyGetBool(mouse_check_button_released(1)))){__yyg_call_method(_inst.gmlonClickAction)(_inst,_other);};};};}function gml_Object_obj_btn_fieldgoal_Draw_64(_inst,_other){if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlstate,10)){return;};{var __yy__v2341=GetWithArray(YYASSET_REF(0x0000004F)); for(var __yy__v2342 in __yy__v2341){if(!__yy__v2341.hasOwnProperty(__yy__v2342))continue;var __yy__v2343=__yy__v2341[__yy__v2342];return;}};draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);draw_set_valign(1);draw_sprite_ext(_inst,_inst.sprite_index,0,_inst.x,_inst.y,1,1,0,16777215,1);gml_Script_draw_hd_text(_inst,_other,yyfplus(__yy_gml_errCheck(_inst.x),48),yyfplus(__yy_gml_errCheck(_inst.y),6),_inst.gmltxt);}function gml_Object_obj_btn_fieldgoal_Draw_0(_inst,_other){}function gml_Object_obj_btn_fieldgoal_Draw_75(_inst, _other){if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000069)).gmlstate,10)){return;};event_inherited(_inst,_other);}function gml_Object_obj_btn_fieldgoal_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlonClickAction=kgml_Script_btn_match_kick;_inst.gmlhover=false;_inst.gmlnum_tos=0;}function gml_Object_obj_splash_Create_0(_inst,_other){gml_Script_slog(_inst,_other,"------> Create: obj_splash");gml_Script_s_set_desktop_dev_window_size(_inst,_other);gml_Script_s_refresh_save_slots(_inst, _other);gml_Script_s_refresh_gamepads(_inst,_other);}function gml_Object_obj_splash_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlstart_time=0;}function gml_Object_obj_details_Create_0(_inst,_other){gml_Script_slog(_inst,_other,">>> obj_details");gml_Script_s_update_details_screen(_inst,_other);if((yyGetBool(global.gmlbrowser))&&(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldo_welcome_msg))){gml_Script_s_create_new_save(_inst,_other);};yyInst(_inst,_other,100034).gmltext=gml_Script_s_get_team_name_by_id(_inst, _other,ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam,"uid"));if((yyGetBool(global.gmlmobile_device))&&(yyGetBool(global.gmlbrowser))){{yyInst(_inst,_other,100025).gmlactive=false;yyInst(_inst,_other,100026).gmlactive=false;};};yyInst(_inst,_other,100025).gmltext=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfname;yyInst(_inst,_other,100026).gmltext=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllname;if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldo_welcome_msg)){ {yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldo_welcome_msg=false;{gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,"msg_Welcome_CO"),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_choose_mode_CO_loading,"",global.gmlc_background,1);};};};yyInst(_inst,_other,100037).gmlstate=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfave_team_check;yyInst(_inst,_other,100036).gmlskin=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmy_skin;yyInst(_inst,_other,100036).gmlface_x=yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlmyface_x;yyInst(_inst,_other,100036).gmlface_y=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyface_y;gml_Script_slog(_inst,_other,yyfplus("prof_head.skin = ",__yy_gml_errCheck(string(yyInst(_inst,_other,100036).gmlskin))));gml_Script_slog(_inst,_other,yyfplus("prof_head.face_x = ",__yy_gml_errCheck(string(yyInst(_inst,_other,100036).gmlface_x))));gml_Script_slog(_inst,_other,yyfplus("prof_head.face_y = ",__yy_gml_errCheck(string(yyInst(_inst,_other,100036).gmlface_y)))); gml_Script_slog(_inst,_other,yyfplus("obj_master.skin = ",__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmy_skin))));gml_Script_slog(_inst,_other,yyfplus("obj_master.face_x = ",__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyface_x))));gml_Script_slog(_inst,_other,yyfplus("obj_master.face_y = ",__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyface_y))));gml_Script_s_refresh_gamepads(_inst,_other);if(yyGetBool(gml_Script_s_is_co_mode(_inst, _other))){{gml_Script_s_college_details_init(_inst,_other);};};}function gml_Object_obj_details_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlconference=0;}function gml_Object_obj_choose_team_Create_0(_inst,_other){if(yyGetBool(global.gmlexhibition_html_1save)){{gml_Script_s_load_html_save1_exhibition(_inst,_other);};};var gmlbx=8;var gmlby=72;layer_set_visible(layer_get_id("Instances_Exhibition"),false);if(yyGetBool(global.gmlexhibition)){{var gmlb=0;for(;yyfless(gmlb,16);(g_yyPrePostObject__=gmlb, gmlb=(g_yyPrePostObject__ instanceof Long?gmlb.add(1):++gmlb),g_yyPrePostObject__)){{_inst.gmlbtn=__yy_gml_array_check(_inst.gmlbtn,3071543500);_inst.gmlbtn[__yy_gml_array_check_index_set(gmlb)]=instance_create_layer(gmlbx,gmlby,"Instances",YYASSET_REF(0x00000036));yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).gmlonClickAction=kgml_Script_btn_click_ChooseTeamExhibition;yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).sprite_index=YYASSET_REF(0x01000080); gmlbx=yyfplus(gmlbx,120);if(yyfgreater(gmlbx,368)){{gmlbx=8;gmlby=yyfplus(gmlby,40);};};}};gml_Script_s_update_team_buttons(_inst,_other);yyInst(_inst,_other,100041).gmltext=gml_Script_s_str(_inst,_other,"ui_ChooseTeam");yyInst(_inst,_other,100044).visible=false;if(!yyGetBool(global.gmlexhibition_html_1save)){{layer_set_visible(layer_get_id("Instances_Exhibition"),true);};};};}else {if((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear,1)))&&(yyGetBool(yyfequal(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlweek,1)))){{var gmlb=0;for(;yyfless(gmlb,16);(g_yyPrePostObject__=gmlb,gmlb=(g_yyPrePostObject__ instanceof Long?gmlb.add(1):++gmlb),g_yyPrePostObject__)){{_inst.gmlbtn=__yy_gml_array_check(_inst.gmlbtn,3071543500);_inst.gmlbtn[__yy_gml_array_check_index_set(gmlb)]=instance_create_layer(gmlbx,gmlby,"Instances",YYASSET_REF(0x00000023));yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).gmlonClickAction=kgml_Script_btn_click_ChooseTeam; yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).sprite_index=YYASSET_REF(0x01000080);gmlbx=yyfplus(gmlbx,120);if(yyfgreater(gmlbx,368)){{gmlbx=8;gmlby=yyfplus(gmlby,40);};};}};gml_Script_s_update_team_buttons(_inst,_other);yyInst(_inst,_other,100041).gmltext=gml_Script_s_str(_inst,_other,"ui_FavouriteTeam");yyInst(_inst,_other,100044).visible=false;};}else {{yyInst(_inst,_other,100041).gmltext=gml_Script_s_str(_inst,_other,"ui_JobOffers");var gmlb=0;for(;yyfless(gmlb, 16);(g_yyPrePostObject__=gmlb,gmlb=(g_yyPrePostObject__ instanceof Long?gmlb.add(1):++gmlb),g_yyPrePostObject__)){{_inst.gmlbtn=__yy_gml_array_check(_inst.gmlbtn,3071543500);_inst.gmlbtn[__yy_gml_array_check_index_set(gmlb)]=instance_create_layer(gmlbx,gmlby,"Instances",YYASSET_REF(0x00000036));yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).sprite_index=YYASSET_REF(0x01000080);if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)){yyInst(_inst,_other, _inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).gmlonClickAction=kgml_Script_btn_click_qb_mode_ChooseTeamNew;}else {yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).gmlonClickAction=kgml_Script_btn_click_ChooseTeamNew;};gmlbx=yyfplus(gmlbx,120);if(yyfgreater(gmlbx,368)){{gmlbx=8;gmlby=yyfplus(gmlby,40);};};}};gml_Script_s_update_job_offer_buttons(_inst,_other);var gmloffers=gml_Script_s_count_joboffers(_inst,_other);var gmlwon_rb=gml_Script_s_count_achievement(_inst, _other,"ACH_WIN_RETROBOWL1");var gmlmsg="msg_JobOffers_1";if((yyGetBool(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear,3)))||(yyGetBool(yyfgreater(gmloffers,5)))){{gmlmsg="msg_JobOffers_2";if((yyGetBool(yyfgreater(gmloffers,10)))||(yyGetBool(gmlwon_rb))){gmlmsg="msg_JobOffers_3";};if((yyGetBool(yyfgreater(gmloffers,20)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear,5)))){gmlmsg="msg_JobOffers_4";};};};if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)){ gmlmsg=string_replace(gmlmsg,"msg_JobOffers_","msg_JobOffers_QB_");};if(yyfequal(ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllist_teams_rejected),0)){gml_Script_s_create_message(_inst,_other,"",gml_Script_s_str(_inst,_other,gmlmsg),gml_Script_s_str(_inst,_other,"ui_Continue"),"",kgml_Script_s_msg_clear,"",global.gmlc_background,1);};};};};yyInst(_inst,_other,100043).gmltext=gml_Script_s_get_string_conference(_inst,_other,0);yyInst(_inst,_other,100042).gmltext=gml_Script_s_get_string_conference(_inst, _other,1);}function gml_Object_obj_choose_team_Other_4(_inst,_other){if(yyGetBool(global.gmlexhibition)){{gml_Script_s_refresh_exhibition_team_load_buttons(_inst,_other);};};}function gml_Object_obj_choose_team_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlconference=0;}function gml_Object_obj_choose_face_Create_0(_inst,_other){var gml_x=24;var gml_y=52;var gmlskn=0;var gmlfx=0;var gmlfy=0;var gmlfcount=0;var gmlbcount=0;var gmlmax_count=96;var gmlface_set=0;if(yyGetBool(yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlface_type_coach)){gmlmax_count=36;};if((yyGetBool(gml_Script_s_is_co_mode(_inst,_other)))&&(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlface_type_coach,false)))){{gmlface_set=1;gmlmax_count=192;};};_inst.gmlmax_pages=ceil(yyfdivide(__yy_gml_errCheck(gmlmax_count),24));yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlface_page=clamp(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlface_page,1,_inst.gmlmax_pages);yyInst(_inst,_other,100057).gmltext=yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst, _other,"ui_Page"))," "),__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlface_page)))," / "),__yy_gml_errCheck(string(_inst.gmlmax_pages)));var gmlpg=0;for(;yyfless(gmlpg,_inst.gmlmax_pages);(g_yyPrePostObject__=gmlpg,gmlpg=(g_yyPrePostObject__ instanceof Long?gmlpg.add(1):++gmlpg),g_yyPrePostObject__)){{var gmlr=0;for(;yyfless(gmlr,4);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{var gmli=0;for(;yyfless(gmli,6);(g_yyPrePostObject__=gmli, gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{if((yyGetBool(yyfequal(yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlface_page),1),gmlpg)))&&(yyGetBool(yyfless(gmlfcount,gmlmax_count)))){{_inst.gmlbtn=__yy_gml_array_check(_inst.gmlbtn,3071543500);_inst.gmlbtn[__yy_gml_array_check_index_set(gmlbcount)]=instance_create_layer(gml_x,gml_y,"Instances",YYASSET_REF(0x00000056));gml_x=yyfplus(gml_x,73);yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlbcount, _inst.gmlbtn)]).gmlskin=gmlskn;yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlbcount,_inst.gmlbtn)]).gmlface_x=gmlfx;yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlbcount,_inst.gmlbtn)]).gmlface_y=gmlfy;yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlbcount,_inst.gmlbtn)]).gmlonClickAction=kgml_Script_btn_click_ChooseFaceDone;yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlbcount,_inst.gmlbtn)]).gmlcoach_heads=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlface_type_coach; yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlbcount,_inst.gmlbtn)]).gmlface_set=gmlface_set;(g_yyPrePostObject__=gmlbcount,gmlbcount=(g_yyPrePostObject__ instanceof Long?gmlbcount.add(1):++gmlbcount),g_yyPrePostObject__);};};(g_yyPrePostObject__=gmlfx,gmlfx=(g_yyPrePostObject__ instanceof Long?gmlfx.add(1):++gmlfx),g_yyPrePostObject__);(g_yyPrePostObject__=gmlfcount,gmlfcount=(g_yyPrePostObject__ instanceof Long?gmlfcount.add(1):++gmlfcount),g_yyPrePostObject__);var ___sw2090___=yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlface_type_coach;var ___swc2091___=-1;if(yyCompareVal(___sw2090___,0,g_GMLMathEpsilon,false)==0){___swc2091___=0;}else if(yyCompareVal(___sw2090___,1,g_GMLMathEpsilon,false)==0){___swc2091___=1;}switch(___swc2091___){case 0:{if(yyfgreater(gmlfx,7)){{gmlfx=0;(g_yyPrePostObject__=gmlfy,gmlfy=(g_yyPrePostObject__ instanceof Long?gmlfy.add(1):++gmlfy),g_yyPrePostObject__);};};break;}case 1:{if(yyfgreater(gmlfx,8)){{gmlfx=0;(g_yyPrePostObject__=gmlfy,gmlfy=(g_yyPrePostObject__ instanceof Long?gmlfy.add(1):++gmlfy), g_yyPrePostObject__);};};break;}};if(yyfequal(gmlfcount,64)){{gmlskn=1;gmlfx=0;gmlfy=0;};};if(yyfequal(gmlfcount,72)){{gmlskn=2;gmlfx=0;gmlfy=0;};};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{if(yyfequal(gmlfcount,96)){{gmlfx=0;gmlfy=0;gmlface_set=2;gmlskn=0;};};if(yyfequal(gmlfcount,160)){{gmlskn=1;gmlfx=0;gmlfy=0;};};if(yyfequal(gmlfcount,168)){{gmlskn=2;gmlfx=0;gmlfy=0;};};};};}};if(yyfequal(yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlface_page),1),gmlpg)){ {gml_x=24;gml_y=yyfplus(gml_y,48);};};}};}};{var __yy__v2344=GetWithArray(YYASSET_REF(0x00000056));for(var __yy__v2345 in __yy__v2344){if(!__yy__v2344.hasOwnProperty(__yy__v2345))continue;var __yy__v2346=__yy__v2344[__yy__v2345];if(yyfequal(__yy__v2346.gmlface_x,(-1))){instance_destroy(__yy__v2346);};}};gml_Script_s_find_default_button(_inst,_other,true);}function gml_Object_obj_team_editor_Create_0(_inst,_other){gml_Script_slog(_inst,_other,yyfplus("obj_team_editor.create:",__yy_gml_errCheck(string(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmledit_conf))));var gmlbx=44;var gmlby=72;var gmlb=0;for(;yyfless(gmlb,16);(g_yyPrePostObject__=gmlb,gmlb=(g_yyPrePostObject__ instanceof Long?gmlb.add(1):++gmlb),g_yyPrePostObject__)){{_inst.gmlbtn=__yy_gml_array_check(_inst.gmlbtn,3071543500);_inst.gmlbtn[__yy_gml_array_check_index_set(gmlb)]=instance_create_layer(gmlbx,gmlby,"Instances",YYASSET_REF(0x00000023));yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).gmlonClickAction=kgml_Script_btn_click_EditTeam; yyInst(_inst,_other,_inst.gmlbtn[__yy_gml_array_check_index(gmlb,_inst.gmlbtn)]).sprite_index=YYASSET_REF(0x01000080);gmlbx=yyfplus(gmlbx,108);if(yyfgreater(gmlbx,378)){{gmlbx=44;gmlby=yyfplus(gmlby,38);};};}};yyInst(_inst,_other,100566).gmltext=gml_Script_s_str(_inst,_other,yyfplus("ui_SaveSlot",__yy_gml_errCheck(string(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"saveslot")))));gml_Script_s_update_team_edit_buttons(_inst,_other);if((yyGetBool(!yyGetBool(file_exists(global.gmlg_savename1))))||(yyGetBool(!yyGetBool(file_exists("uniforms_custom_1.txt"))))){ yyInst(_inst,_other,100558).gmlactive=false;};if((yyGetBool(!yyGetBool(file_exists(global.gmlg_savename2))))||(yyGetBool(!yyGetBool(file_exists("uniforms_custom_2.txt"))))){yyInst(_inst,_other,100559).gmlactive=false;};if((yyGetBool(!yyGetBool(file_exists(global.gmlg_savename3))))||(yyGetBool(!yyGetBool(file_exists("uniforms_custom_3.txt"))))){yyInst(_inst,_other,100564).gmlactive=false;};if((yyGetBool(!yyGetBool(file_exists(global.gmlg_savename4))))||(yyGetBool(!yyGetBool(file_exists("uniforms_custom_4.txt"))))){ yyInst(_inst,_other,100565).gmlactive=false;};if((yyGetBool(!yyGetBool(file_exists(global.gmlg_savename5))))||(yyGetBool(!yyGetBool(file_exists("uniforms_custom_5.txt"))))){yyInst(_inst,_other,100567).gmlactive=false;};var ___sw2094___=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmap_options,"saveslot");var ___swc2095___=-1;if(yyCompareVal(___sw2094___,1,g_GMLMathEpsilon,false)==0){___swc2095___=0;}else if(yyCompareVal(___sw2094___,2,g_GMLMathEpsilon,false)==0){___swc2095___=1; }else if(yyCompareVal(___sw2094___,3,g_GMLMathEpsilon,false)==0){___swc2095___=2;}else if(yyCompareVal(___sw2094___,4,g_GMLMathEpsilon,false)==0){___swc2095___=3;}else if(yyCompareVal(___sw2094___,5,g_GMLMathEpsilon,false)==0){___swc2095___=4;}switch(___swc2095___){case 0:{yyInst(_inst,_other,100558).gmlactive=false;yyInst(_inst,_other,100558).gmltext=gml_Script_s_str(_inst,_other,"ui_Current");break;}case 1:{yyInst(_inst,_other,100559).gmlactive=false;yyInst(_inst,_other,100559).gmltext=gml_Script_s_str(_inst, _other,"ui_Current");break;}case 2:{yyInst(_inst,_other,100564).gmlactive=false;yyInst(_inst,_other,100564).gmltext=gml_Script_s_str(_inst,_other,"ui_Current");break;}case 3:{yyInst(_inst,_other,100565).gmlactive=false;yyInst(_inst,_other,100565).gmltext=gml_Script_s_str(_inst,_other,"ui_Current");break;}case 4:{yyInst(_inst,_other,100567).gmlactive=false;yyInst(_inst,_other,100567).gmltext=gml_Script_s_str(_inst,_other,"ui_Current");break;}};}function gml_Object_obj_team_editor_PreCreate_0(_inst,_other){ event_inherited(_inst,_other);_inst.gmlconference=0;}function gml_Object_obj_edit_team_Create_0(_inst,_other){_inst.gmlkittype=0;_inst.gmluid=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmledit_team,"uid");gml_Script_s_load_uniform_file2(_inst,_other,_inst.gmluid,100115,0,"");gml_Script_s_load_uniform_file2(_inst,_other,_inst.gmluid,100116,1,"");gml_Script_s_load_uniform_file2(_inst,_other,_inst.gmluid,100118,2,"");gml_Script_s_load_uniform_file2(_inst,_other,_inst.gmluid,100119, 3,"");_inst.gmlcurrent_uni=100115;gml_Script_s_set_up_edit_screen(_inst,_other);}function gml_Object_obj_edit_team_Step_0(_inst,_other){if(yyfgreater(_inst.gmlnew_col,(-1))){{gml_Script_slog(_inst,_other,yyfplus("New colour = ",__yy_gml_errCheck(gml_Script_s_color_to_hex(_inst,_other,_inst.gmlnew_col))));var ___sw2098___=_inst.gmlnewpick;var ___swc2099___=-1;if(yyCompareVal(___sw2098___,0,g_GMLMathEpsilon,false)==0){___swc2099___=0;}else if(yyCompareVal(___sw2098___,1,g_GMLMathEpsilon,false)==0){___swc2099___=1; }else if(yyCompareVal(___sw2098___,2,g_GMLMathEpsilon,false)==0){___swc2099___=2;}else if(yyCompareVal(___sw2098___,3,g_GMLMathEpsilon,false)==0){___swc2099___=3;}else if(yyCompareVal(___sw2098___,4,g_GMLMathEpsilon,false)==0){___swc2099___=4;}else if(yyCompareVal(___sw2098___,5,g_GMLMathEpsilon,false)==0){___swc2099___=5;}else if(yyCompareVal(___sw2098___,6,g_GMLMathEpsilon,false)==0){___swc2099___=6;}else if(yyCompareVal(___sw2098___,7,g_GMLMathEpsilon,false)==0){___swc2099___=7;}else if(yyCompareVal(___sw2098___, 8,g_GMLMathEpsilon,false)==0){___swc2099___=8;}switch(___swc2099___){case 0:{yyInst(_inst,_other,_inst.gmlcurrent_uni).gmlhex_helmet=yyfplus("$",__yy_gml_errCheck(gml_Script_s_color_to_hex(_inst,_other,_inst.gmlnew_col)));break;}case 1:{yyInst(_inst,_other,_inst.gmlcurrent_uni).gmlhex_logo=yyfplus("$",__yy_gml_errCheck(gml_Script_s_color_to_hex(_inst,_other,_inst.gmlnew_col)));break;}case 2:{yyInst(_inst,_other,_inst.gmlcurrent_uni).gmlhex_shirt=yyfplus("$",__yy_gml_errCheck(gml_Script_s_color_to_hex(_inst, _other,_inst.gmlnew_col)));break;}case 3:{yyInst(_inst,_other,_inst.gmlcurrent_uni).gmlhex_sleeve=yyfplus("$",__yy_gml_errCheck(gml_Script_s_color_to_hex(_inst,_other,_inst.gmlnew_col)));break;}case 4:{yyInst(_inst,_other,_inst.gmlcurrent_uni).gmlhex_pants=yyfplus("$",__yy_gml_errCheck(gml_Script_s_color_to_hex(_inst,_other,_inst.gmlnew_col)));break;}case 5:{yyInst(_inst,_other,_inst.gmlcurrent_uni).gmlhex_stripe=yyfplus("$",__yy_gml_errCheck(gml_Script_s_color_to_hex(_inst,_other,_inst.gmlnew_col))); break;}case 6:{yyInst(_inst,_other,_inst.gmlcurrent_uni).gmlhex_socks1=yyfplus("$",__yy_gml_errCheck(gml_Script_s_color_to_hex(_inst,_other,_inst.gmlnew_col)));break;}case 7:{yyInst(_inst,_other,_inst.gmlcurrent_uni).gmlhex_socks2=yyfplus("$",__yy_gml_errCheck(gml_Script_s_color_to_hex(_inst,_other,_inst.gmlnew_col)));break;}case 8:{yyInst(_inst,_other,_inst.gmlcurrent_uni).gmlhex_endzone=yyfplus("$",__yy_gml_errCheck(gml_Script_s_color_to_hex(_inst,_other,_inst.gmlnew_col)));break;}};_inst.gmlnew_col=(-1); gml_Script_s_convert_uniform_colours_all(_inst,_other,_inst.gmlcurrent_uni);gml_Script_s_set_up_edit_screen(_inst,_other);};};}function gml_Object_obj_edit_team_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlnew_col=(-1);_inst.gmlnew_hexcol="0";_inst.gmlnewpick=0;}function gml_Object_obj_colbox_Draw_64(_inst,_other){draw_rectangle(yyfminus(__yy_gml_errCheck(_inst.x),1),yyfminus(__yy_gml_errCheck(_inst.y),1),yyfplus(__yy_gml_errCheck(_inst.x),__yy_gml_errCheck(_inst.sprite_width)), yyfplus(__yy_gml_errCheck(_inst.y),__yy_gml_errCheck(_inst.sprite_height)),0);draw_sprite_ext(_inst,_inst.sprite_index,0,_inst.x,_inst.y,_inst.image_xscale,_inst.image_yscale,0,_inst.gmlcolor,1);}function gml_Object_obj_colbox_Draw_0(_inst,_other){}function gml_Object_obj_colbox_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlcolor=new Long(4294967295,0,false);}function gml_Object_obj_colpicker_Create_0(_inst,_other){_inst.gmlsurf=surface_create(480,270);surface_set_target(_inst.gmlsurf); draw_clear_alpha(16777215,0.5);draw_sprite_ext(_inst,_inst.sprite_index,0,_inst.x,_inst.y,1,1,0,16777215,1);surface_reset_target();g_pBuiltIn.view_surface_id[__yy_gml_array_check_index_set(0)]=_inst.gmlsurf;_inst.gmlgp_x=240;_inst.gmlgp_y=135;_inst.gmlgp_mp=2;}function gml_Object_obj_colpicker_Step_0(_inst,_other){var gmlnew_pick=false;if(yyGetBool(global.gmlgamepad)){{if(yyfgreater(yyInst(_inst,_other,global.gmlgp).gmlaxisl_force,0.2)){_inst.gmlgp_mp=yyfplus(_inst.gmlgp_mp,0.12);}else {_inst.gmlgp_mp=yyfminus(_inst.gmlgp_mp, 1);};_inst.gmlgp_mp=clamp(_inst.gmlgp_mp,2,7);if(yyfgreater(abs(yyInst(_inst,_other,global.gmlgp).gmlaxisl_h),0.2)){_inst.gmlgp_x=yyfplus(_inst.gmlgp_x,yyftime(__yy_gml_errCheck(yyInst(_inst,_other,global.gmlgp).gmlaxisl_h),__yy_gml_errCheck(_inst.gmlgp_mp)));};if(yyfgreater(abs(yyInst(_inst,_other,global.gmlgp).gmlaxisl_v),0.2)){_inst.gmlgp_y=yyfplus(_inst.gmlgp_y,yyftime(__yy_gml_errCheck(yyInst(_inst,_other,global.gmlgp).gmlaxisl_v),__yy_gml_errCheck(_inst.gmlgp_mp)));};_inst.gmlgp_x=clamp(_inst.gmlgp_x, 0,480);_inst.gmlgp_y=clamp(_inst.gmlgp_y,0,270);if(yyGetBool(gamepad_button_check_released(yyInst(_inst,_other,global.gmlgp).gmlslot,global.gmlgp_select))){gmlnew_pick=true;}else {if(yyGetBool(gamepad_button_check_released(yyInst(_inst,_other,global.gmlgp).gmlslot,global.gmlgp_back))){{surface_free(_inst.gmlsurf);instance_destroy(_inst);gml_Script_s_msg_clear(_inst,_other);};};};};}else {{if(yyGetBool(gml_Script_s_is_touch_allowed(_inst,_other))){if(yyGetBool(mouse_check_button_released(1))){gmlnew_pick=true; };};};};if(yyGetBool(gmlnew_pick)){{if(yyGetBool(global.gmlgamepad)){yyInst(_inst,_other,YYASSET_REF(0x00000082)).gmlnew_col=surface_getpixel(_inst.gmlsurf,_inst.gmlgp_x,_inst.gmlgp_y);}else {yyInst(_inst,_other,YYASSET_REF(0x00000082)).gmlnew_col=surface_getpixel(_inst.gmlsurf,g_pBuiltIn.get_mouse_x(),g_pBuiltIn.get_mouse_y());};if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000082)).gmlnew_col,16738348)){yyInst(_inst,_other,YYASSET_REF(0x00000082)).gmlnew_col=(-1);};surface_free(_inst.gmlsurf); instance_destroy(_inst);gml_Script_s_msg_clear(_inst,_other);};};}function gml_Object_obj_colpicker_Draw_64(_inst,_other){if(yyGetBool(surface_exists(_inst.gmlsurf))){{draw_surface(_inst.gmlsurf,0,0);if(yyGetBool(global.gmlgamepad)){{draw_sprite(_inst,YYASSET_REF(0x01000192),0,_inst.gmlgp_x,_inst.gmlgp_y);};};};}else {{instance_destroy(_inst);gml_Script_s_msg_clear(_inst,_other);};};}function gml_Object_obj_uniform_Create_0(_inst,_other){var gmlcolSkin=gml_Script_s_get_skin_colour_by_index(_inst,_other, 1);_inst.gmlcol_skin_r=yyfdivide(__yy_gml_errCheck(color_get_red(gmlcolSkin)),255);_inst.gmlcol_skin_g=yyfdivide(__yy_gml_errCheck(color_get_green(gmlcolSkin)),255);_inst.gmlcol_skin_b=yyfdivide(__yy_gml_errCheck(color_get_blue(gmlcolSkin)),255);}function gml_Object_obj_uniform_Draw_64(_inst,_other){gml_Script_s_shader_set_uniforms(_inst,_other);var gmlbody_spr=YYASSET_REF(0x010000B9);if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gmlbody_spr=YYASSET_REF(0x01000134);if(yyfequal(_inst.gmlbody_type, 2)){{gmlbody_spr=YYASSET_REF(0x01000134);};}else {if(yyfequal(_inst.gmlbody_type,1)){{gmlbody_spr=YYASSET_REF(0x01000108);};};};};};gmlbody_spr=YYASSET_REF(0x01000134);if(yyGetBool(_inst.gmlfacing_right)){draw_sprite_ext(_inst,gmlbody_spr,_inst.gmlbackground_im,_inst.x,_inst.y,_inst.gmlscale,_inst.gmlscale,0,16777215,1);}else {draw_sprite_ext(_inst,gmlbody_spr,_inst.gmlbackground_im,_inst.x,_inst.y,__yy_gml_errCheck(-__yy_gml_errCheck(_inst.gmlscale)),_inst.gmlscale,0,16777215,1);};shader_reset(); }function gml_Object_obj_uniform_Draw_0(_inst,_other){}function gml_Object_obj_uniform_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlhex_helmet="$000000";_inst.gmlhex_logo="$000000";_inst.gmlhex_shirt="$000000";_inst.gmlhex_sleeve="$000000";_inst.gmlhex_pants="$000000";_inst.gmlhex_stripe="$000000";_inst.gmlhex_socks1="$000000";_inst.gmlhex_socks2="$000000";_inst.gmlhelmet=__yy_gml_array_check(_inst.gmlhelmet,3666812894);_inst.gmlhelmet[__yy_gml_array_check_index_set(3)]=0;_inst.gmllogo=__yy_gml_array_check(_inst.gmllogo, 2321711084);_inst.gmllogo[__yy_gml_array_check_index_set(3)]=0;_inst.gmlshirt=__yy_gml_array_check(_inst.gmlshirt,1027333011);_inst.gmlshirt[__yy_gml_array_check_index_set(3)]=0;_inst.gmlsleeve=__yy_gml_array_check(_inst.gmlsleeve,3111731137);_inst.gmlsleeve[__yy_gml_array_check_index_set(3)]=0;_inst.gmlpants=__yy_gml_array_check(_inst.gmlpants,3194782232);_inst.gmlpants[__yy_gml_array_check_index_set(3)]=0;_inst.gmlpants_b=__yy_gml_array_check(_inst.gmlpants_b,1445469295);_inst.gmlpants_b[__yy_gml_array_check_index_set(3)]=0; _inst.gmlstripe=__yy_gml_array_check(_inst.gmlstripe,2849462600);_inst.gmlstripe[__yy_gml_array_check_index_set(3)]=0;_inst.gmlsocks1=__yy_gml_array_check(_inst.gmlsocks1,1193444439);_inst.gmlsocks1[__yy_gml_array_check_index_set(3)]=0;_inst.gmlsocks2=__yy_gml_array_check(_inst.gmlsocks2,1812977556);_inst.gmlsocks2[__yy_gml_array_check_index_set(3)]=0;_inst.gmlfacing_right=true;_inst.gmlscale=2;_inst.gmlbackground_im=0;_inst.gmlname="None";_inst.gmltla="None";_inst.gmlcleats=__yy_gml_array_check(_inst.gmlcleats, 2556554615);_inst.gmlcleats[__yy_gml_array_check_index_set(3)]=0;_inst.gmlhex_endzone="$000000";_inst.gmlendzone=__yy_gml_array_check(_inst.gmlendzone,3083311111);_inst.gmlendzone[__yy_gml_array_check_index_set(3)]=0;_inst.gmlrainfall=0;_inst.gmlsnowfall=0;_inst.gmlroof=false;_inst.gmlbody_type=0;}function gml_Object_obj_frontoffice_Create_0(_inst,_other){yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfa_page=1;if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlintro)){{yyInst(_inst,_other, 100186).gmlactive=false;yyInst(_inst,_other,100183).gmlactive=false;yyInst(_inst,_other,100182).gmlactive=false;};};yyInst(_inst,_other,100164).gmltext="";yyInst(_inst,_other,100165).gmltext="";yyInst(_inst,_other,100166).gmltext="";if(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfacility_stadium,10)){yyInst(_inst,_other,100164).gmltext=string(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfacility_stadium),1));}else {yyInst(_inst,_other,100164).gmlactive=false; };if(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfacility_training,10)){yyInst(_inst,_other,100165).gmltext=string(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfacility_training),1));}else {yyInst(_inst,_other,100165).gmlactive=false;};if(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfacility_rehab,10)){yyInst(_inst,_other,100166).gmltext=string(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfacility_rehab),1));}else {yyInst(_inst, _other,100166).gmlactive=false;};var gmluniform=instance_create_layer(0,0,"Instances",YYASSET_REF(0x00000085));yyInst(_inst,_other,gmluniform).visible=false;gml_Script_s_load_uniform_file2(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id,gmluniform,0,"");gml_Script_slog(_inst,_other,"FACEHUNT: obj_front_office - Creating staff!");yyInst(_inst,_other,100187).gmlpmap=gml_Script_s_get_staff(_inst,_other,100);gml_Script_slog(_inst,_other,yyfplus(yyfplus("FACEHUNT: obj_front_office - profile_HC.pmap pos[", __yy_gml_errCheck(string(ds_map_find_value(yyInst(_inst,_other,100187).gmlpmap,"position")))),"]"));yyInst(_inst,_other,100175).gmlpmap=gml_Script_s_get_staff(_inst,_other,101);yyInst(_inst,_other,100174).gmlpmap=gml_Script_s_get_staff(_inst,_other,102);{var __yy__v2347=GetWithArray(100187);for(var __yy__v2348 in __yy__v2347){if(!__yy__v2347.hasOwnProperty(__yy__v2348))continue;var __yy__v2349=__yy__v2347[__yy__v2348];gml_Script_s_set_up_uniform_profile(__yy__v2349,_inst,gmluniform);}};{var __yy__v2350=GetWithArray(100175); for(var __yy__v2351 in __yy__v2350){if(!__yy__v2350.hasOwnProperty(__yy__v2351))continue;var __yy__v2352=__yy__v2350[__yy__v2351];gml_Script_s_set_up_uniform_profile(__yy__v2352,_inst,gmluniform);}};{var __yy__v2353=GetWithArray(100174);for(var __yy__v2354 in __yy__v2353){if(!__yy__v2353.hasOwnProperty(__yy__v2354))continue;var __yy__v2355=__yy__v2353[__yy__v2354];gml_Script_s_set_up_uniform_profile(__yy__v2355,_inst,gmluniform);}};yyInst(_inst,_other,100178).gmltext=gml_Script_s_get_string_picks(_inst,_other, false);gml_Script_s_check_intro(_inst,_other);gml_Script_s_check_intro_rm_frontoffice(_inst,_other);if((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlintro,0)))&&(yyGetBool(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyface_x,0)))){gml_Script_s_msg(_inst,_other,gml_Script_s_str(_inst,_other,"msg_NeedBossHead"));};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{yyInst(_inst,_other,100183).visible=false;yyInst(_inst,_other,100181).visible=false;yyInst(_inst,_other, 100186).visible=false;var gmlupgradeShipFund=instance_create_layer(yyInst(_inst,_other,100181).x,yyInst(_inst,_other,100181).y,"Instances",YYASSET_REF(0x00000014),__yy_gml_object_create(_inst,(_inst.gml___struct___205=__yy_method(_inst,gml_Script____struct___205_gml_Object_obj_frontoffice_Create_0)),kgml_Script_btn_click_Boost_Salary_Cap,string(100)));if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlintro,0)){{yyInst(_inst,_other,gmlupgradeShipFund).gmlactive=false;};};yyInst(_inst,_other, 100177).visible=false;yyInst(_inst,_other,100178).visible=false;yyInst(_inst,_other,100179).visible=false;yyInst(_inst,_other,100182).x=yyInst(_inst,_other,100177).x;if(yyGetBool(global.gmlmobile_device)){{yyInst(_inst,_other,100184).x=yyfminus(__yy_gml_errCheck(yyInst(_inst,_other,100182).x),40);};};};};}function gml_Script____struct___205_gml_Object_obj_frontoffice_Create_0(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___205_gml_Object_obj_frontoffice_Create_0";}if(gml_Script____struct___205_gml_Object_obj_frontoffice_Create_0.prototype.__type===undefined){ gml_Script____struct___205_gml_Object_obj_frontoffice_Create_0.prototype.__type="gml_Script____struct___205_gml_Object_obj_frontoffice_Create_0";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___205_gml_Object_obj_frontoffice_Create_0.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlimage=YYASSET_REF(0x01000069);_inst.gmltext=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.image_xscale=1.9393; }}}}function gml_Object_obj_freeagents2_Create_0(_inst,_other){draw_set_font(global.gmlfnt_small_flex);draw_set_halign(0);draw_set_valign(1);yyInst(_inst,_other,100157).visible=false;yyInst(_inst,_other,100156).visible=false;var gmlpage=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfa_page;gml_Script_s_create_storelist(_inst,_other,false);gml_Script_s_savegame(_inst,_other);var gmli=0;var ___sw2102___=gmlpage;var ___swc2103___=-1;if(yyCompareVal(___sw2102___,2,g_GMLMathEpsilon,false)==0){___swc2103___=0; }switch(___swc2103___){case 0:{yyInst(_inst,_other,100157).visible=true;gmli=10;break;}default :{yyInst(_inst,_other,100156).visible=true;break;}};{var __yy__v2356=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v2357 in __yy__v2356){if(!__yy__v2356.hasOwnProperty(__yy__v2357))continue;var __yy__v2358=__yy__v2356[__yy__v2357];{var gmlpmap=gml_Script_s_get_store_player_by_position(__yy__v2358,_inst,1,gmlpage);yyInst(_inst,_other,100140).gmlpmap=gmlpmap;if(yyGetBool(ds_map_exists(gmlpmap,"creditcost"))){ yyInst(_inst,_other,100134).gmltext=string(ds_map_find_value(gmlpmap,"creditcost"));};gmlpmap=gml_Script_s_get_store_player_by_position(__yy__v2358,_inst,2,gmlpage);yyInst(_inst,_other,100141).gmlpmap=gmlpmap;if(yyGetBool(ds_map_exists(gmlpmap,"creditcost"))){yyInst(_inst,_other,100135).gmltext=string(ds_map_find_value(gmlpmap,"creditcost"));};(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__);gmlpmap=gml_Script_s_get_store_player_by_position(__yy__v2358, _inst,3,gmlpage);yyInst(_inst,_other,100142).gmlpmap=gmlpmap;if(yyGetBool(ds_map_exists(gmlpmap,"creditcost"))){yyInst(_inst,_other,100136).gmltext=string(ds_map_find_value(gmlpmap,"creditcost"));};(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__);gmlpmap=gml_Script_s_get_store_player_by_position(__yy__v2358,_inst,4,gmlpage);yyInst(_inst,_other,100143).gmlpmap=gmlpmap;if(yyGetBool(ds_map_exists(gmlpmap,"creditcost"))){yyInst(_inst,_other,100137).gmltext=string(ds_map_find_value(gmlpmap, "creditcost"));};(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__);gmlpmap=gml_Script_s_get_store_player_by_position(__yy__v2358,_inst,5,gmlpage);yyInst(_inst,_other,100144).gmlpmap=gmlpmap;if(yyGetBool(ds_map_exists(gmlpmap,"creditcost"))){yyInst(_inst,_other,100138).gmltext=string(ds_map_find_value(gmlpmap,"creditcost"));};(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__);gmlpmap=gml_Script_s_get_store_player_by_position(__yy__v2358, _inst,6,gmlpage);yyInst(_inst,_other,100145).gmlpmap=gmlpmap;if(yyGetBool(ds_map_exists(gmlpmap,"creditcost"))){yyInst(_inst,_other,100139).gmltext=string(ds_map_find_value(gmlpmap,"creditcost"));};(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__);gmlpmap=gml_Script_s_get_store_player_by_position(__yy__v2358,_inst,7,gmlpage);yyInst(_inst,_other,100147).gmlpmap=gmlpmap;if(yyGetBool(ds_map_exists(gmlpmap,"creditcost"))){yyInst(_inst,_other,100146).gmltext=string(ds_map_find_value(gmlpmap, "creditcost"));};(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__);gmlpmap=gml_Script_s_get_store_player_by_position(__yy__v2358,_inst,8,gmlpage);yyInst(_inst,_other,100149).gmlpmap=gmlpmap;if(yyGetBool(ds_map_exists(gmlpmap,"creditcost"))){yyInst(_inst,_other,100148).gmltext=string(ds_map_find_value(gmlpmap,"creditcost"));};(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__);gmlpmap=gml_Script_s_get_store_player_by_position(__yy__v2358, _inst,10,gmlpage);yyInst(_inst,_other,100151).gmlpmap=gmlpmap;if(yyGetBool(ds_map_exists(gmlpmap,"creditcost"))){yyInst(_inst,_other,100150).gmltext=string(ds_map_find_value(gmlpmap,"creditcost"));};(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__);}}};}function gml_Object_obj_viewhires_Create_0(_inst,_other){draw_set_font(global.gmlfnt_small_flex);draw_set_halign(0);draw_set_valign(1);var gmluniform=instance_create_layer(0,0,"Instances",YYASSET_REF(0x00000085)); yyInst(_inst,_other,gmluniform).visible=false;gml_Script_s_load_uniform_file2(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id,gmluniform,0,"");yyInst(_inst,_other,100590).gmlpmap=gml_Script_s_get_staff(_inst,_other,102);{var __yy__v2359=GetWithArray(100590);for(var __yy__v2360 in __yy__v2359){if(!__yy__v2359.hasOwnProperty(__yy__v2360))continue;var __yy__v2361=__yy__v2359[__yy__v2360];gml_Script_s_set_up_uniform_profile(__yy__v2361,_inst,gmluniform);}};yyInst(_inst,_other,100591).gmlpmap=gml_Script_s_get_staff(_inst, _other,101);{var __yy__v2362=GetWithArray(100591);for(var __yy__v2363 in __yy__v2362){if(!__yy__v2362.hasOwnProperty(__yy__v2363))continue;var __yy__v2364=__yy__v2362[__yy__v2363];gml_Script_s_set_up_uniform_profile(__yy__v2364,_inst,gmluniform);}};gml_Script_s_create_hirelist(_inst,_other,false,false);{var __yy__v2365=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v2366 in __yy__v2365){if(!__yy__v2365.hasOwnProperty(__yy__v2366))continue;var __yy__v2367=__yy__v2365[__yy__v2366];{yyInst(_inst,_other, 100583).gmlpmap=ds_list_find_value(__yy__v2367.gmlhirelist,0);yyInst(_inst,_other,100584).gmlpmap=ds_list_find_value(__yy__v2367.gmlhirelist,1);yyInst(_inst,_other,100585).gmlpmap=ds_list_find_value(__yy__v2367.gmlhirelist,2);yyInst(_inst,_other,100586).gmlpmap=ds_list_find_value(__yy__v2367.gmlhirelist,3);yyInst(_inst,_other,100592).gmlpmap=ds_list_find_value(__yy__v2367.gmlhirelist,4);yyInst(_inst,_other,100593).gmlpmap=ds_list_find_value(__yy__v2367.gmlhirelist,5);yyInst(_inst,_other,100594).gmlpmap=ds_list_find_value(__yy__v2367.gmlhirelist, 6);yyInst(_inst,_other,100595).gmlpmap=ds_list_find_value(__yy__v2367.gmlhirelist,7);}}};}function gml_Object_obj_home_Create_0(_inst,_other){gml_Script_slog(_inst,_other,"------> Create: obj_home");gml_Script_s_update_game_title(_inst,_other);gml_Script_s_competitions_status_update(_inst,_other);gml_Script__poki_gameplay_start(_inst,_other);var ___sw2108___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlretrobowlwinner;var ___swc2109___=-1;if(yyCompareVal(___sw2108___,(-1),g_GMLMathEpsilon,false)==0){ ___swc2109___=0;}else if(yyCompareVal(___sw2108___,1,g_GMLMathEpsilon,false)==0){___swc2109___=1;}switch(___swc2109___){case 0:{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlretrobowlwinner=0;gml_Script_s_do_player_awards(_inst,_other);break;}case 1:{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlretrobowlwinner=0;gml_Script_s_show_rm_winners(_inst,_other,1,(-1),"","",kgml_Script_btn_click_Home,false);return;}};if(yyGetBool(gml_Script_s_resolve_non_champ_conferences(_inst,_other))){{return;};};if(!yyGetBool(instance_exists(YYASSET_REF(0x00000068)))){ {instance_create_layer(0,0,"Instances",YYASSET_REF(0x00000068));};};yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster_from_store=false;yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlviewing_hof_players=false;yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlforce_uniform_sel1=0;yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlforce_uniform_sel2=0;yyInst(_inst,_other,100244).hspeed=(-1.5);yyInst(_inst,_other,100244).gmltext=gml_Script_s_get_ticker_text(_inst,_other);gml_Script_s_update_music_safe(_inst, _other);_inst.alarm=__yy_gml_array_check(_inst.alarm,1584050178);_inst.alarm[__yy_gml_array_check_index_set(0)]=10;var gmllayer_fm=layer_get_id("Instances_FM");var gmllayer_qb=layer_get_id("Instances_QB");var ___sw2110___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode;var ___swc2111___=-1;if(yyCompareVal(___sw2110___,0,g_GMLMathEpsilon,false)==0){___swc2111___=0;}else if(yyCompareVal(___sw2110___,1,g_GMLMathEpsilon,false)==0){___swc2111___=1;}switch(___swc2111___){case 0:{layer_set_visible(gmllayer_fm, true);layer_set_visible(gmllayer_qb,false);break;}case 1:{layer_set_visible(gmllayer_fm,false);layer_set_visible(gmllayer_qb,true);break;}};yyInst(_inst,_other,100238).gmltext=gml_Script_s_str(_inst,_other,"ui_Continue");if((yyGetBool(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)))||(yyGetBool(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear,1)))){{if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{if((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek, 1)))&&(yyGetBool(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_admissions_draft_round,0)))){yyInst(_inst,_other,100238).gmltext=gml_Script_s_str(_inst,_other,"ui_Draft");};};}else {{if((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,1)))&&(yyGetBool(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraft_round,4)))&&(yyGetBool(yyfless(ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfreeagentlist),1)))){yyInst(_inst,_other,100238).gmltext=gml_Script_s_str(_inst, _other,"ui_Draft");};};};};};if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstage,(-11))){yyInst(_inst,_other,100238).gmltext=gml_Script_s_str(_inst,_other,"ui_DraftCollege");};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{yyInst(_inst,_other,100241).gmlmode=0;gml_Script_s_co_division_create(_inst,_other,100241,gml_Script_s_get_my_conference_uid(_inst,_other),gml_Script_s_get_my_division(_inst,_other));_inst.gmlb_view=gml_Script_s_create_button(_inst,_other,45,232,__yy_gml_object_create(_inst, (_inst.gml___struct___206=__yy_method(_inst,gml_Script____struct___206_gml_Object_obj_home_Create_0)),gml_Script_s_str(_inst,_other,"ui_View"),kgml_Script_s_btn_division_home_view,1.25));};}else {gml_Script_s_populate_division(_inst,_other,100241,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyconference,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmydivision);};if(yyfgreater(g_pBuiltIn.get_current_time(),yyfplus(__yy_gml_errCheck(global.gmlg_savedelay),5000))){{gml_Script_s_savegame(_inst,_other); if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,1)){gml_Script_s_save_backup(_inst,_other);};global.gmlg_savedelay=g_pBuiltIn.get_current_time();};};gml_Script_s_check_intro_rm_home(_inst,_other);gml_Script_s_check_for_news(_inst,_other);if(yyfgreaterequal(gml_Script_s_get_morale(_inst,_other),100)){gml_Script_s_complete_achievement(_inst,_other,"ACH_MORALE100");};if(yyfgreaterequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfans,100)){gml_Script_s_complete_achievement(_inst, _other,"ACH_FANS100");};if(yyfgreaterequal(gml_Script_s_get_team_defense(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam),10)){gml_Script_s_complete_achievement(_inst,_other,"ACH_DEFENSE5");};if(yyfgreaterequal(gml_Script_s_get_team_offense(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam),10)){gml_Script_s_complete_achievement(_inst,_other,"ACH_OFFENSE5");};gml_Script_s_check_repeat_retrobowls(_inst,_other);if(yyGetBool(global.gmlmobile_device)){os_powersave_enable(true); };gml_Script_s_clear_last_selected_history(_inst,_other);gml_Script_s_update_btn_bengrams(_inst,_other);gml_Script_s_refresh_gamepads(_inst,_other);if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{};};gml_Script_s_co_debug_access(_inst,_other);}function gml_Script____struct___206_gml_Object_obj_home_Create_0(_inst,_other){if(_inst.__yyIsGMLObject){_inst.__type="gml_Script____struct___206_gml_Object_obj_home_Create_0";}if(gml_Script____struct___206_gml_Object_obj_home_Create_0.prototype.__type===undefined){ gml_Script____struct___206_gml_Object_obj_home_Create_0.prototype.__type="gml_Script____struct___206_gml_Object_obj_home_Create_0";}{if(_inst.__yyIsGMLObject)Object.setPrototypeOf(_inst,gml_Script____struct___206_gml_Object_obj_home_Create_0.prototype);{var $$args=Array.prototype.slice.call(arguments);{_inst.gmltext=$$args[__yy_gml_array_check_index(2+(0),$$args)];_inst.gmlonClickAction=$$args[__yy_gml_array_check_index(2+(1),$$args)];_inst.gml_panel=100241;_inst.image_xscale=$$args[__yy_gml_array_check_index(2+(2), $$args)];}}}}// /// @description Music late refresh function gml_Object_obj_home_Alarm_0(_inst,_other){gml_Script_slog(_inst,_other,"Alarm 0 late music refresh");gml_Script_s_update_music(_inst,_other);}function gml_Object_obj_home_Step_0(_inst,_other){if(yyfless(yyInst(_inst,_other,100244).x,(-500))){{yyInst(_inst,_other,100244).x=yyfplus(__yy_gml_errCheck(display_get_gui_width()),500);yyInst(_inst,_other,100244).gmltext=gml_Script_s_get_ticker_text(_inst,_other);};};}function gml_Object_obj_home_Draw_0(_inst, _other){}function gml_Object_obj_options_Create_0(_inst,_other){gml_Script_slog(_inst,_other,"obj_options.create");yyInst(_inst,_other,100299).hspeed=(-1.5);draw_set_font(global.gmlfnt_small_flex);_inst.gmlwcred=gml_Script_string_hd_width(_inst,_other,gml_Script_s_str(_inst,_other,"ui_Credits"));if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{yyInst(_inst,_other,100299).gmlx_start=yyfplus(yyfplus(__yy_gml_errCheck(display_get_gui_width()),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.gmlwcred), 0.5))),100);yyInst(_inst,_other,100299).gmlx_wrap=__yy_gml_errCheck(-__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.gmlwcred),2)),100)));yyInst(_inst,_other,100299).x=yyInst(_inst,_other,100299).gmlx_start;yyInst(_inst,_other,100299).image_xscale=yyfplus(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(_inst.gmlwcred),48)),1);};};gml_Script_s_update_options(_inst,_other);var gmllay_id_mob=layer_get_id("Links_Mobile");var gmllay_id_brow=layer_get_id("Links_Browser");var gmllay_id_console=layer_get_id("Instances_ConsoleBuild"); var gmllay_id_box=layer_get_id("Instances_Box");var gmllay_id_exhibition=layer_get_id("Exhibition");layer_set_visible(gmllay_id_mob,false);layer_set_visible(gmllay_id_brow,false);layer_set_visible(gmllay_id_console,false);layer_set_visible(gmllay_id_box,false);layer_set_visible(gmllay_id_exhibition,false);if(yyGetBool(global.gmlbrowser)){{layer_set_visible(gmllay_id_brow,true);layer_set_visible(gmllay_id_exhibition,true);};}else {if(yyGetBool(global.gmlconsole_build)){{layer_set_visible(gmllay_id_console, true);yyInst(_inst,_other,100314).visible=false;yyInst(_inst,_other,100305).visible=false;};}else {if(yyGetBool(global.gmlmobile_device)){{layer_set_visible(gmllay_id_mob,true);layer_set_visible(gmllay_id_box,true);};};};};{};}// /// @description Delayed audio refresh function gml_Object_obj_options_Alarm_0(_inst,_other){gml_Script_slog(_inst,_other,"Options delayed s_update_music");gml_Script_s_update_music(_inst,_other);}function gml_Object_obj_options_Step_0(_inst,_other){if(yyGetBool(gml_Script_s_is_co_mode(_inst, _other))){{if(yyfless(yyInst(_inst,_other,100299).x,yyInst(_inst,_other,100299).gmlx_wrap)){yyInst(_inst,_other,100299).x=yyInst(_inst,_other,100299).gmlx_start;};};}else {{if(yyfless(yyInst(_inst,_other,100299).x,__yy_gml_errCheck(-__yy_gml_errCheck(_inst.gmlwcred)))){yyInst(_inst,_other,100299).x=yyfplus(__yy_gml_errCheck(display_get_gui_width()),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(_inst.gmlwcred),0.5)));};};};}function gml_Object_obj_hof_players_Create_0(_inst,_other){yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlviewing_hof_players=true;gml_Script_s_set_up_hof_players_screen(_inst,_other);if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{yyInst(_inst,_other,100216).x=yyInst(_inst,_other,100214).x;yyInst(_inst,_other,100214).visible=false;};};}// str += " " + s_get_human_opponent_sla_prefix("@", real(map[? "week"])) + opp_map[? "tla"]; function gml_Object_obj_watermark_Create_0(_inst,_other){_inst.gmlcol=gml_Script_s_get_watermark_color(_inst,_other);_inst.gmlsclx=1.1; _inst.gmlscly=1.1;_inst.gmlrot=random(360);_inst.gmlmsg1="";_inst.gmlmsg2="";_inst.gmlmsg3="";_inst.gmlmsg4="";_inst.gmlmsg5="";_inst.gmlmsg6="";var gmltyp="Html5";if(!yyGetBool(global.gmlbrowser)){{var ___sw2118___=g_pBuiltIn.get_os_type();var ___swc2119___=-1;if(yyCompareVal(___sw2118___,0,g_GMLMathEpsilon,false)==0){___swc2119___=0;}else if(yyCompareVal(___sw2118___,4,g_GMLMathEpsilon,false)==0){___swc2119___=1;}else if(yyCompareVal(___sw2118___,1,g_GMLMathEpsilon,false)==0){___swc2119___=2;}else if(yyCompareVal(___sw2118___, 3,g_GMLMathEpsilon,false)==0){___swc2119___=3;}switch(___swc2119___){case 0:{gmltyp="Windows";break;}case 1:{gmltyp="Android";break;}case 2:{gmltyp="MacOS";break;}case 3:{gmltyp="iOS";break;}};};};{};yyInst(_inst,_other,100603).gmltext=yyfplus(yyfplus(__yy_gml_errCheck(gmltyp)," v"),__yy_gml_errCheck(gml_Script_s_get_gm_version(_inst,_other)));if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){yyInst(_inst,_other,100603).gmltext=yyfplus(yyInst(_inst,_other,100603).gmltext," rt2023.8.2.152");};if(yyGetBool(global.gmlpoki)){ yyInst(_inst,_other,100603).gmltext=yyfplus(yyInst(_inst,_other,100603).gmltext," Poki");};yyInst(_inst,_other,100603).gmltext=yyfplus(yyInst(_inst,_other,100603).gmltext,gml_Script_s_cap_breach_str(_inst,_other));var gmltxt_hilite="";var gmltxt_restarts="";_inst.gmlpage=1;var gmlfixtures=__yy_gml_array_create([]);{var __yy__v2368=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v2369 in __yy__v2368){if(!__yy__v2368.hasOwnProperty(__yy__v2369))continue;var __yy__v2370=__yy__v2368[__yy__v2369];{var gmlcount=0; var gmlbigwin=0;var gmltotalpd=0;var gmltotal_of=0;var gmltotal_df=0;var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v2370.gmlfixturelist));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{array_push(gmlfixtures,ds_list_find_value(__yy__v2370.gmlfixturelist,gmli));}};array_sort(gmlfixtures,kgml_Script_s_maps_array_sort_week);var gmli=0;for(;yyfless(gmli,array_length(gmlfixtures));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli), g_yyPrePostObject__)){{__yy__v2370.gmlmap=gmlfixtures[__yy_gml_array_check_index(gmli,gmlfixtures)];if(yyfnotequal(ds_map_find_value(__yy__v2370.gmlmap,"human_win"),"unplayed")){{var gmlstr=(yyGetBool(gml_Script_s_is_co_mode(__yy__v2370,_inst))?gml_Script_s_get_week_name(__yy__v2370,_inst,ds_map_find_value(__yy__v2370.gmlmap,"week"),true):yyfplus("W",__yy_gml_errCheck(string(ds_map_find_value(__yy__v2370.gmlmap,"week")))));var gmlpd=0;var gmlstrengths="";var gmlopp_map=gml_Script_s_get_team_by_id(__yy__v2370, _inst,ds_map_find_value(__yy__v2370.gmlmap,"home_team"));if(yyfequal(ds_map_find_value(__yy__v2370.gmlmap,"away_team"),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id)){{gmlstr=yyfplus(gmlstr,yyfplus(yyfplus(" ",__yy_gml_errCheck(gml_Script_s_get_human_opponent_sla_prefix(__yy__v2370,_inst,"@",real(ds_map_find_value(__yy__v2370.gmlmap,"week"))))),__yy_gml_errCheck(ds_map_find_value(gmlopp_map,"tla"))));gmlpd=yyfminus(__yy_gml_errCheck(ds_map_find_value(__yy__v2370.gmlmap,"away_score")), __yy_gml_errCheck(ds_map_find_value(__yy__v2370.gmlmap,"home_score")));};}else {{gmlopp_map=gml_Script_s_get_team_by_id(__yy__v2370,_inst,ds_map_find_value(__yy__v2370.gmlmap,"away_team"));gmlstr=yyfplus(gmlstr,yyfplus(yyfplus(" ",__yy_gml_errCheck(gml_Script_s_get_human_opponent_sla_prefix(__yy__v2370,_inst,"v",real(ds_map_find_value(__yy__v2370.gmlmap,"week"))))),__yy_gml_errCheck(ds_map_find_value(gmlopp_map,"tla"))));gmlpd=yyfminus(__yy_gml_errCheck(ds_map_find_value(__yy__v2370.gmlmap,"home_score")), __yy_gml_errCheck(ds_map_find_value(__yy__v2370.gmlmap,"away_score")));};};gmlstrengths=string_hash_to_newline(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gmlstr)," "),__yy_gml_errCheck(gml_Script_s_get_string_record(__yy__v2370,_inst,gmlopp_map,true)))," O:"),__yy_gml_errCheck(string_format(yyfdivide(__yy_gml_errCheck(gml_Script_s_get_team_offense_with_reputation_boost(__yy__v2370,_inst,gmlopp_map)),2),1,1)))," D:"),__yy_gml_errCheck(string_format(yyfdivide(__yy_gml_errCheck(gml_Script_s_get_team_defense_with_reputation_boost(__yy__v2370, _inst,gmlopp_map)),2),1,1))));gmltotal_of=yyfplus(gmltotal_of,gml_Script_s_get_team_offense_with_reputation_boost(__yy__v2370,_inst,gmlopp_map));gmltotal_df=yyfplus(gmltotal_df,gml_Script_s_get_team_defense_with_reputation_boost(__yy__v2370,_inst,gmlopp_map));gmlstr=yyfplus(gmlstr,yyfplus(yyfplus(yyfplus(" ",__yy_gml_errCheck(string(ds_map_find_value(__yy__v2370.gmlmap,"away_score")))),"-"),__yy_gml_errCheck(string(ds_map_find_value(__yy__v2370.gmlmap,"home_score")))));if(yyfless(gmlpd,0)){gmlstr=yyfplus(gmlstr, yyfplus(" ",__yy_gml_errCheck(string(gmlpd))));}else {gmlstr=yyfplus(gmlstr,yyfplus(" +",__yy_gml_errCheck(string(gmlpd))));};gmltotalpd=yyfplus(gmltotalpd,gmlpd);if(yyGetBool(ds_map_exists(__yy__v2370.gmlmap,"difficulty"))){{var gmldif=ds_map_find_value(__yy__v2370.gmlmap,"difficulty");gmldif=string_replace(gmldif,gml_Script_s_str(__yy__v2370,_inst,"ui_Dynamic"),"D");gmldif=string_replace(gmldif,gml_Script_s_str(__yy__v2370,_inst,"ui_Easy"),"E");gmldif=string_replace(gmldif,gml_Script_s_str(__yy__v2370, _inst,"ui_Medium"),"M");gmldif=string_replace(gmldif,gml_Script_s_str(__yy__v2370,_inst,"ui_Hard"),"H");gmldif=string_replace(gmldif,gml_Script_s_str(__yy__v2370,_inst,"ui_Extreme"),"X");gmldif=string_replace(gmldif,gml_Script_s_str(__yy__v2370,_inst,"ui_Sim"),"S");gmldif=string_replace(gmldif," ","");gmlstr=yyfplus(gmlstr,yyfplus(" ",__yy_gml_errCheck(gmldif)));};};if(yyGetBool(ds_map_exists(__yy__v2370.gmlmap,"op_matchlength"))){{var ___sw2120___=ds_map_find_value(__yy__v2370.gmlmap,"op_matchlength"); var ___swc2121___=-1;if(yyCompareVal(___sw2120___,(-1),g_GMLMathEpsilon,false)==0){___swc2121___=0;}else if(yyCompareVal(___sw2120___,0,g_GMLMathEpsilon,false)==0){___swc2121___=1;}else if(yyCompareVal(___sw2120___,1,g_GMLMathEpsilon,false)==0){___swc2121___=2;}switch(___swc2121___){case 0:{gmlstr=yyfplus(gmlstr," 1m");break;}case 1:{gmlstr=yyfplus(gmlstr," 2m");break;}case 2:{gmlstr=yyfplus(gmlstr," 3m");break;}};};};if(yyGetBool(ds_map_exists(__yy__v2370.gmlmap,"weather"))){{var ___sw2122___=ds_map_find_value(__yy__v2370.gmlmap, "weather");var ___swc2123___=-1;if(yyCompareVal(___sw2122___,0,g_GMLMathEpsilon,false)==0){___swc2123___=0;}else if(yyCompareVal(___sw2122___,1,g_GMLMathEpsilon,false)==0){___swc2123___=1;}else if(yyCompareVal(___sw2122___,2,g_GMLMathEpsilon,false)==0){___swc2123___=2;}switch(___swc2123___){case 0:{break;}case 1:{gmlstr=yyfplus(gmlstr," R");break;}case 2:{gmlstr=yyfplus(gmlstr," S");break;}};};};(g_yyPrePostObject__=gmlcount,gmlcount=(g_yyPrePostObject__ instanceof Long?gmlcount.add(1):++gmlcount),g_yyPrePostObject__); if(yyfless(gmlcount,11)){{_inst.gmlmsg1=yyfplus(_inst.gmlmsg1,string_hash_to_newline(yyfplus(__yy_gml_errCheck(gmlstr),"#")));_inst.gmlmsg5=yyfplus(_inst.gmlmsg5,string_hash_to_newline(yyfplus(__yy_gml_errCheck(gmlstrengths),"#")));};}else {{_inst.gmlmsg2=yyfplus(_inst.gmlmsg2,string_hash_to_newline(yyfplus(__yy_gml_errCheck(gmlstr),"#")));_inst.gmlmsg6=yyfplus(_inst.gmlmsg6,string_hash_to_newline(yyfplus(__yy_gml_errCheck(gmlstrengths),"#")));};};if(yyfequal(ds_map_find_value(__yy__v2370.gmlmap, "human_win"),"win")){{var gmldiff=abs(yyfminus(__yy_gml_errCheck(ds_map_find_value(__yy__v2370.gmlmap,"away_score")),__yy_gml_errCheck(ds_map_find_value(__yy__v2370.gmlmap,"home_score"))));if(yyfgreater(gmldiff,gmlbigwin)){{gmltxt_hilite=gml_Script_s_str(__yy__v2370,_inst,"msg_WatermarkHighlight");gmltxt_hilite=string_replace(gmltxt_hilite,"$result",yyfplus(yyfplus(__yy_gml_errCheck(string(ds_map_find_value(__yy__v2370.gmlmap,"away_score"))),"-"),__yy_gml_errCheck(string(ds_map_find_value(__yy__v2370.gmlmap, "home_score")))));if(yyfequal(ds_map_find_value(__yy__v2370.gmlmap,"away_team"),__yy__v2370.gmlmyteam_id)){gmltxt_hilite=string_replace(gmltxt_hilite,"$oppname",gml_Script_s_get_team_name_by_id(__yy__v2370,_inst,ds_map_find_value(__yy__v2370.gmlmap,"home_team")));}else {gmltxt_hilite=string_replace(gmltxt_hilite,"$oppname",gml_Script_s_get_team_name_by_id(__yy__v2370,_inst,ds_map_find_value(__yy__v2370.gmlmap,"away_team")));};};};};};};};}};var gmlstrpd=string(gmltotalpd);if(yyfgreater(gmlstrpd,0)){ gmlstrpd=yyfplus("+",__yy_gml_errCheck(gmlstrpd));};_inst.gmlmsg2=yyfplus(_inst.gmlmsg2,string_hash_to_newline(yyfplus(yyfplus("Total PD: ",__yy_gml_errCheck(gmlstrpd)),"#")));_inst.gmlmsg2=yyfplus(_inst.gmlmsg2,string_hash_to_newline(yyfplus(yyfplus(yyfplus(yyfplus("Salary: ",__yy_gml_errCheck(string(gml_Script_s_get_salary_total(__yy__v2370,_inst)))),"/"),__yy_gml_errCheck(string(yyfplus(__yy_gml_errCheck(__yy__v2370.gmlsalary_cap),__yy_gml_errCheck(__yy__v2370.gmlboost_salary_cap))))),"#"))); _inst.gmlmsg2=yyfplus(_inst.gmlmsg2,string_hash_to_newline(yyfplus(yyfplus("CCs Purchased: ",__yy_gml_errCheck(string(__yy__v2370.gmlseason_credits_purchased))),"#")));__yy__v2370.gmlroster=gml_Script_s_sort_players(__yy__v2370,_inst,__yy__v2370.gmlroster,4);var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v2370.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v2370.gmlroster,gmli);var gmlstr=ds_map_find_value(gmlpmap, "lname");_inst.gmlmsg3=yyfplus(_inst.gmlmsg3,string_hash_to_newline(yyfplus(__yy_gml_errCheck(gmlstr),"#")));_inst.gmlmsg4=yyfplus(_inst.gmlmsg4,string_hash_to_newline(yyfplus(__yy_gml_errCheck(gml_Script_s_get_watermarked_stats(__yy__v2370,_inst,gmlpmap)),"#")));}};_inst.gmlmsg6=yyfplus(_inst.gmlmsg6,string_hash_to_newline(yyfplus(yyfplus("Total OF: ",__yy_gml_errCheck(gml_Script_s_get_string_float(__yy__v2370,_inst,yyfdivide(__yy_gml_errCheck(gmltotal_of),2),1))),"#")));_inst.gmlmsg6=yyfplus(_inst.gmlmsg6, string_hash_to_newline(yyfplus(yyfplus("Total DF: ",__yy_gml_errCheck(gml_Script_s_get_string_float(__yy__v2370,_inst,yyfdivide(__yy_gml_errCheck(gmltotal_df),2),1))),"#")));gml_Script_slog(__yy__v2370,_inst,yyfplus("games played=",__yy_gml_errCheck(string(gmlcount))));gml_Script_slog(__yy__v2370,_inst,yyfplus("gamestarts=",__yy_gml_errCheck(string(__yy__v2370.gmlgamestarts))));var gmlnum_restarts=yyfminus(__yy_gml_errCheck(__yy__v2370.gmlgamestarts),__yy_gml_errCheck(gmlcount));if(yyfless(gmlnum_restarts, 0)){gmlnum_restarts=0;};if(yyfgreater(gmlnum_restarts,0)){{gmltxt_restarts=gml_Script_s_str(__yy__v2370,_inst,"msg_WatermarkRestarts");gmltxt_restarts=string_replace(gmltxt_restarts,"$num",string(gmlnum_restarts));};};yyInst(_inst,_other,100600).gmltext=yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(string(gmlnum_restarts))," "),__yy_gml_errCheck(gml_Script_s_str(__yy__v2370,_inst,"ui_restarts")))," - "),__yy_gml_errCheck(gml_Script_s_generate_uid(__yy__v2370,_inst,yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(real(ds_map_find_value(__yy__v2370.gmlmyteam, "uid"))),__yy_gml_errCheck(__yy__v2370.gmlyear)),__yy_gml_errCheck(__yy__v2370.gmlweek)),__yy_gml_errCheck(gmlnum_restarts)),8)));yyInst(_inst,_other,100601).gmltext=yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(__yy__v2370.gmlmyteam,"name")),"#"),__yy_gml_errCheck(__yy__v2370.gmlfname))," "),__yy_gml_errCheck(__yy__v2370.gmllname));yyInst(_inst,_other,100601).gmltext=yyfplus(yyInst(_inst,_other,100601).gmltext,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("#",__yy_gml_errCheck(gml_Script_s_str(__yy__v2370, _inst,"ui_Year")))," "),__yy_gml_errCheck(string(__yy__v2370.gmlyear)))," "),__yy_gml_errCheck(gml_Script_s_get_string_week(__yy__v2370,_inst,__yy__v2370.gmlweek))));yyInst(_inst,_other,100601).gmltext=yyfplus(yyInst(_inst,_other,100601).gmltext,yyfplus("#",__yy_gml_errCheck(gml_Script_s_get_string_record(__yy__v2370,_inst,__yy__v2370.gmlmyteam,true))));yyInst(_inst,_other,100601).gmltext=string_hash_to_newline(yyInst(_inst,_other,100601).gmltext);if(yyGetBool(gml_Script_s_is_co_mode(__yy__v2370, _inst))){{yyInst(_inst,_other,100600).gmltext="";yyInst(_inst,_other,100601).gmltext="";_inst.gmlmsg1="";_inst.gmlmsg2=gml_Script_s_str(__yy__v2370,_inst,"msg_LeagueScreenComingSoon");_inst.gmlmsg3="";_inst.gmlmsg4="";_inst.gmlmsg5="";_inst.gmlmsg6="";};};}}};}function gml_Object_obj_watermark_Step_0(_inst,_other){yyInst(_inst,_other,100606).visible=true;yyInst(_inst,_other,100605).visible=true;var ___sw2126___=_inst.gmlpage;var ___swc2127___=-1;if(yyCompareVal(___sw2126___,1,g_GMLMathEpsilon,false)==0){ ___swc2127___=0;}else if(yyCompareVal(___sw2126___,3,g_GMLMathEpsilon,false)==0){___swc2127___=1;}switch(___swc2127___){case 0:{yyInst(_inst,_other,100606).visible=false;break;}case 1:{yyInst(_inst,_other,100605).visible=false;break;}};}function gml_Object_obj_watermark_Draw_64(_inst,_other){}function gml_Object_obj_watermark_Draw_74(_inst,_other){var gmltx=yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5);var gmlty=yyftime(__yy_gml_errCheck(display_get_gui_height()),0.5);draw_sprite_ext(_inst,YYASSET_REF(0x010000BF), 0,gmltx,gmlty,_inst.gmlsclx,_inst.gmlscly,_inst.gmlrot,_inst.gmlcol,1);draw_set_font(global.gmlfnt_restart_flex);draw_set_halign(0);draw_set_alpha(0.6);var ___sw2130___=_inst.gmlpage;var ___swc2131___=-1;if(yyCompareVal(___sw2130___,1,g_GMLMathEpsilon,false)==0){___swc2131___=0;}else if(yyCompareVal(___sw2130___,2,g_GMLMathEpsilon,false)==0){___swc2131___=1;}else if(yyCompareVal(___sw2130___,3,g_GMLMathEpsilon,false)==0){___swc2131___=2;}switch(___swc2131___){case 0:{gml_Script_draw_hd_text_ext(_inst, _other,yyftime(__yy_gml_errCheck(display_get_gui_width()),0.01),yyfplus(__yy_gml_errCheck(gmlty),8),_inst.gmlmsg1,12,389);if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gml_Script_draw_hd_text_ext(_inst,_other,yyftime(__yy_gml_errCheck(display_get_gui_width()),0.15),yyfplus(__yy_gml_errCheck(gmlty),8),_inst.gmlmsg2,12,389);};}else {{gml_Script_draw_hd_text_ext(_inst,_other,yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5),yyfplus(__yy_gml_errCheck(gmlty),8),_inst.gmlmsg2,12,389);};}; break;}case 1:{gml_Script_draw_hd_text_ext(_inst,_other,yyftime(__yy_gml_errCheck(display_get_gui_width()),0.17),yyfplus(__yy_gml_errCheck(gmlty),8),_inst.gmlmsg4,12,389);draw_set_halign(2);gml_Script_draw_hd_text_ext(_inst,_other,yyftime(__yy_gml_errCheck(display_get_gui_width()),0.16),yyfplus(__yy_gml_errCheck(gmlty),8),_inst.gmlmsg3,12,389);break;}case 2:{gml_Script_draw_hd_text_ext(_inst,_other,yyftime(__yy_gml_errCheck(display_get_gui_width()),0.01),yyfplus(__yy_gml_errCheck(gmlty),8),_inst.gmlmsg5, 12,389);gml_Script_draw_hd_text_ext(_inst,_other,yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5),yyfplus(__yy_gml_errCheck(gmlty),8),_inst.gmlmsg6,12,389);break;}};draw_set_alpha(1);}function gml_Object_obj_league_Create_0(_inst,_other){var ___sw2134___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstage;var ___swc2135___=-1;if(yyCompareVal(___sw2134___,5,g_GMLMathEpsilon,false)==0){___swc2135___=0;}switch(___swc2135___){case 0:{yyInst(_inst,_other,100258).gmlimage=YYASSET_REF(0x0100008E); gml_Script_btn_click_LeaguePanel(_inst,_other,2);break;}default :{gml_Script_btn_click_LeaguePanel(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyconference);break;}};}function gml_Object_obj_league_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlshow_afc=true;}function gml_Object_obj_playoffs_Create_0(_inst,_other){yyInst(_inst,_other,100322).gmltitle=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_conf1;yyInst(_inst,_other,100323).gmltitle=yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlname_conf2;var gmllay_id1=layer_get_id("Instances1");var gmllay_id2=layer_get_id("Instances2");layer_set_visible(gmllay_id1,false);layer_set_visible(gmllay_id2,false);yyInst(_inst,_other,100347).visible=true;yyInst(_inst,_other,100349).visible=false;yyInst(_inst,_other,100350).visible=false;if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayoff_proceed)){{yyInst(_inst,_other,100347).visible=false;yyInst(_inst,_other,100349).visible=true;yyInst(_inst,_other, 100350).visible=true;yyInst(_inst,_other,100350).gmlflash=true;};};if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular)){{layer_set_visible(gmllay_id1,true);yyInst(_inst,_other,100348).gmltext=gml_Script_s_str(_inst,_other,"ui_PlayOffs");yyInst(_inst,_other,100346).gmltext=gml_Script_s_str(_inst,_other,"ui_Super#Bowl");var gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs); if(!yyGetBool(gmlfix)){{gml_Script_slog(_inst,_other,"NO PLAY OFFS! Trying to recreate playoffs");gml_Script_s_create_playoffs(_inst,_other);gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs);};};if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"home_team"));yyInst(_inst, _other,100325).gmltext=ds_map_find_value(gmlteam_away,"tla");yyInst(_inst,_other,100324).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs)){{yyInst(_inst,_other,100325).gmlflashtext=true;yyInst(_inst,_other,100324).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs)){ {yyInst(_inst,_other,100325).gmlalpha=0.5;yyInst(_inst,_other,100324).gmlalpha=0.5;};};};};};gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),1));if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"home_team"));yyInst(_inst,_other,100326).gmltext=ds_map_find_value(gmlteam_away, "tla");yyInst(_inst,_other,100327).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),1))){{yyInst(_inst,_other,100326).gmlflashtext=true;yyInst(_inst,_other,100327).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs), 1))){{yyInst(_inst,_other,100326).gmlalpha=0.5;yyInst(_inst,_other,100327).gmlalpha=0.5;};};};};};var gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),2));if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"home_team"));yyInst(_inst,_other,100336).gmltext=ds_map_find_value(gmlteam_away, "tla");yyInst(_inst,_other,100335).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),2))){{yyInst(_inst,_other,100336).gmlflashtext=true;yyInst(_inst,_other,100335).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs), 2))){{yyInst(_inst,_other,100336).gmlalpha=0.5;yyInst(_inst,_other,100335).gmlalpha=0.5;};};};};};var gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),3));if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"home_team"));yyInst(_inst,_other,100337).gmltext=ds_map_find_value(gmlteam_away, "tla");yyInst(_inst,_other,100338).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),3))){{yyInst(_inst,_other,100337).gmlflashtext=true;yyInst(_inst,_other,100338).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs), 3))){{yyInst(_inst,_other,100337).gmlalpha=0.5;yyInst(_inst,_other,100338).gmlalpha=0.5;};};};};};var gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),4));if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"home_team"));yyInst(_inst,_other,100328).gmltext=ds_map_find_value(gmlteam_away, "tla");yyInst(_inst,_other,100329).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),4))){{yyInst(_inst,_other,100328).gmlflashtext=true;yyInst(_inst,_other,100329).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs), 4))){{yyInst(_inst,_other,100328).gmlalpha=0.5;yyInst(_inst,_other,100329).gmlalpha=0.5;};};};};};var gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),5));if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"home_team"));yyInst(_inst,_other,100331).gmltext=ds_map_find_value(gmlteam_away, "tla");yyInst(_inst,_other,100330).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),5))){{yyInst(_inst,_other,100331).gmlflashtext=true;yyInst(_inst,_other,100330).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs), 5))){{yyInst(_inst,_other,100331).gmlalpha=0.5;yyInst(_inst,_other,100330).gmlalpha=0.5;};};};};};var gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),6));if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"home_team"));yyInst(_inst,_other,100339).gmltext=ds_map_find_value(gmlteam_away, "tla");yyInst(_inst,_other,100340).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),6))){{yyInst(_inst,_other,100339).gmlflashtext=true;yyInst(_inst,_other,100340).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs), 6))){{yyInst(_inst,_other,100339).gmlalpha=0.5;yyInst(_inst,_other,100340).gmlalpha=0.5;};};};};};var gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),7));if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"home_team"));yyInst(_inst,_other,100342).gmltext=ds_map_find_value(gmlteam_away, "tla");yyInst(_inst,_other,100341).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),7))){{yyInst(_inst,_other,100342).gmlflashtext=true;yyInst(_inst,_other,100341).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs), 7))){{yyInst(_inst,_other,100342).gmlalpha=0.5;yyInst(_inst,_other,100341).gmlalpha=0.5;};};};};};var gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),8));if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"home_team"));yyInst(_inst,_other,100332).gmltext=ds_map_find_value(gmlteam_away, "tla");yyInst(_inst,_other,100333).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),8))){{yyInst(_inst,_other,100332).gmlflashtext=true;yyInst(_inst,_other,100333).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs), 8))){{yyInst(_inst,_other,100332).gmlalpha=0.5;yyInst(_inst,_other,100333).gmlalpha=0.5;};};};};};var gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),9));if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"home_team"));yyInst(_inst,_other,100343).gmltext=ds_map_find_value(gmlteam_away, "tla");yyInst(_inst,_other,100344).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),9))){{yyInst(_inst,_other,100343).gmlflashtext=true;yyInst(_inst,_other,100344).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs), 9))){{yyInst(_inst,_other,100343).gmlalpha=0.5;yyInst(_inst,_other,100344).gmlalpha=0.5;};};};};};var gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),10));if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"home_team"));yyInst(_inst,_other,100334).gmltext=ds_map_find_value(gmlteam_away, "tla");yyInst(_inst,_other,100345).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs),10))){{yyInst(_inst,_other,100334).gmlflashtext=true;yyInst(_inst,_other,100345).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfirst_week_playoffs), 10))){{yyInst(_inst,_other,100334).gmlalpha=0.5;yyInst(_inst,_other,100345).gmlalpha=0.5;};};};};};};}else {{layer_set_visible(gmllay_id2,true);yyInst(_inst,_other,100348).gmltext=gml_Script_s_str(_inst,_other,"ui_PlayOffPicture");};};{var __yy__v2371=GetWithArray(YYASSET_REF(0x0000004B));for(var __yy__v2372 in __yy__v2371){if(!__yy__v2371.hasOwnProperty(__yy__v2372))continue;var __yy__v2373=__yy__v2371[__yy__v2372];{gml_Script_slog(__yy__v2373,_inst,__yy__v2373.gmltext);if(yyfequal(__yy__v2373.gmltext, ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam,"tla"))){{__yy__v2373.gmlcolour=global.gmlc_primary;__yy__v2373.gmltcolour=global.gmlc_primary;};};}}};}function gml_Object_obj_playoffs_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlshow_afc=true;}function gml_Object_obj_playoffs2_Create_0(_inst,_other){yyInst(_inst,_other,100354).gmltitle=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_conf1;yyInst(_inst,_other,100370).gmltitle=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlname_conf2; var gmllay_id1=layer_get_id("Instances1");var gmllay_id2=layer_get_id("Instances2");layer_set_visible(gmllay_id1,false);layer_set_visible(gmllay_id2,false);yyInst(_inst,_other,100383).visible=true;yyInst(_inst,_other,100385).visible=false;yyInst(_inst,_other,100386).visible=false;if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayoff_proceed)){{yyInst(_inst,_other,100383).visible=false;yyInst(_inst,_other,100385).visible=true;yyInst(_inst,_other,100386).visible=true;if(!yyGetBool(global.gmlgamepad)){ yyInst(_inst,_other,100386).gmlflash=true;};};};if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular)){{layer_set_visible(gmllay_id1,true);yyInst(_inst,_other,100384).gmltext=gml_Script_s_str(_inst,_other,"ui_PlayOffs");yyInst(_inst,_other,100367).gmltext=gml_Script_s_str(_inst,_other,"ui_Super#Bowl");var gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular), 1));if(!yyGetBool(gmlfix)){{gml_Script_slog(_inst,_other,"NO PLAY OFFS! Trying to recreate playoffs");gml_Script_s_create_playoffs2(_inst,_other);gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular),1));};};if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix, "home_team"));yyInst(_inst,_other,100356).gmltext=ds_map_find_value(gmlteam_away,"tla");yyInst(_inst,_other,100355).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular),1))){{yyInst(_inst,_other,100356).gmlflashtext=true;yyInst(_inst,_other,100355).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmllast_week_regular),1))){{yyInst(_inst,_other,100356).gmlalpha=0.5;yyInst(_inst,_other,100355).gmlalpha=0.5;};};};};};gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular),2));if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix, "home_team"));yyInst(_inst,_other,100357).gmltext=ds_map_find_value(gmlteam_away,"tla");yyInst(_inst,_other,100358).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular),2))){{yyInst(_inst,_other,100357).gmlflashtext=true;yyInst(_inst,_other,100358).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmllast_week_regular),2))){{yyInst(_inst,_other,100357).gmlalpha=0.5;yyInst(_inst,_other,100358).gmlalpha=0.5;};};};};};gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular),3));if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix, "home_team"));yyInst(_inst,_other,100369).gmltext=ds_map_find_value(gmlteam_away,"tla");yyInst(_inst,_other,100362).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular),3))){{yyInst(_inst,_other,100369).gmlflashtext=true;yyInst(_inst,_other,100362).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmllast_week_regular),3))){{yyInst(_inst,_other,100369).gmlalpha=0.5;yyInst(_inst,_other,100362).gmlalpha=0.5;};};};};};var gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular),4));if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix, "home_team"));yyInst(_inst,_other,100372).gmltext=ds_map_find_value(gmlteam_away,"tla");yyInst(_inst,_other,100379).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular),4))){{yyInst(_inst,_other,100372).gmlflashtext=true;yyInst(_inst,_other,100379).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmllast_week_regular),4))){{yyInst(_inst,_other,100372).gmlalpha=0.5;yyInst(_inst,_other,100379).gmlalpha=0.5;};};};};};var gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular),5));if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix, "home_team"));yyInst(_inst,_other,100373).gmltext=ds_map_find_value(gmlteam_away,"tla");yyInst(_inst,_other,100374).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular),5))){{yyInst(_inst,_other,100373).gmlflashtext=true;yyInst(_inst,_other,100374).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmllast_week_regular),5))){{yyInst(_inst,_other,100373).gmlalpha=0.5;yyInst(_inst,_other,100374).gmlalpha=0.5;};};};};};gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular),6));if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix, "home_team"));yyInst(_inst,_other,100382).gmltext=ds_map_find_value(gmlteam_away,"tla");yyInst(_inst,_other,100378).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular),6))){{yyInst(_inst,_other,100382).gmlflashtext=true;yyInst(_inst,_other,100378).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmllast_week_regular),6))){{yyInst(_inst,_other,100382).gmlalpha=0.5;yyInst(_inst,_other,100378).gmlalpha=0.5;};};};};};var gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular),7));if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix, "home_team"));yyInst(_inst,_other,100360).gmltext=ds_map_find_value(gmlteam_away,"tla");yyInst(_inst,_other,100359).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular),7))){{yyInst(_inst,_other,100360).gmlflashtext=true;yyInst(_inst,_other,100359).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmllast_week_regular),7))){{yyInst(_inst,_other,100360).gmlalpha=0.5;yyInst(_inst,_other,100359).gmlalpha=0.5;};};};};};var gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular),8));if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix, "home_team"));yyInst(_inst,_other,100361).gmltext=ds_map_find_value(gmlteam_away,"tla");yyInst(_inst,_other,100368).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular),8))){{yyInst(_inst,_other,100361).gmlflashtext=true;yyInst(_inst,_other,100368).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmllast_week_regular),8))){{yyInst(_inst,_other,100361).gmlalpha=0.5;yyInst(_inst,_other,100368).gmlalpha=0.5;};};};};};var gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular),9));if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix, "home_team"));yyInst(_inst,_other,100376).gmltext=ds_map_find_value(gmlteam_away,"tla");yyInst(_inst,_other,100375).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular),9))){{yyInst(_inst,_other,100376).gmlflashtext=true;yyInst(_inst,_other,100375).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmllast_week_regular),9))){{yyInst(_inst,_other,100376).gmlalpha=0.5;yyInst(_inst,_other,100375).gmlalpha=0.5;};};};};};var gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular),10));if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix, "home_team"));yyInst(_inst,_other,100377).gmltext=ds_map_find_value(gmlteam_away,"tla");yyInst(_inst,_other,100381).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular),10))){{yyInst(_inst,_other,100377).gmlflashtext=true;yyInst(_inst,_other,100381).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmllast_week_regular),10))){{yyInst(_inst,_other,100377).gmlalpha=0.5;yyInst(_inst,_other,100381).gmlalpha=0.5;};};};};};var gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular),11));if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix, "home_team"));yyInst(_inst,_other,100363).gmltext=ds_map_find_value(gmlteam_away,"tla");yyInst(_inst,_other,100364).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular),11))){{yyInst(_inst,_other,100363).gmlflashtext=true;yyInst(_inst,_other,100364).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmllast_week_regular),11))){{yyInst(_inst,_other,100363).gmlalpha=0.5;yyInst(_inst,_other,100364).gmlalpha=0.5;};};};};};var gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular),12));if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix, "home_team"));yyInst(_inst,_other,100371).gmltext=ds_map_find_value(gmlteam_away,"tla");yyInst(_inst,_other,100380).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular),12))){{yyInst(_inst,_other,100371).gmlflashtext=true;yyInst(_inst,_other,100380).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmllast_week_regular),12))){{yyInst(_inst,_other,100371).gmlalpha=0.5;yyInst(_inst,_other,100380).gmlalpha=0.5;};};};};};var gmlfix=gml_Script_s_get_playoff_fixture_by_week(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular),13));if(yyGetBool(gmlfix)){{var gmlteam_away=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"));var gmlteam_home=gml_Script_s_get_team_by_id(_inst,_other,ds_map_find_value(gmlfix, "home_team"));yyInst(_inst,_other,100365).gmltext=ds_map_find_value(gmlteam_away,"tla");yyInst(_inst,_other,100366).gmltext=ds_map_find_value(gmlteam_home,"tla");if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular),13))){{yyInst(_inst,_other,100365).gmlflashtext=true;yyInst(_inst,_other,100366).gmlflashtext=true;};}else {if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,yyfplus(__yy_gml_errCheck(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmllast_week_regular),13))){{yyInst(_inst,_other,100365).gmlalpha=0.5;yyInst(_inst,_other,100366).gmlalpha=0.5;};};};};};};}else {{layer_set_visible(gmllay_id2,true);yyInst(_inst,_other,100384).gmltext=gml_Script_s_str(_inst,_other,"ui_PlayOffPicture");};};{var __yy__v2374=GetWithArray(YYASSET_REF(0x0000004B));for(var __yy__v2375 in __yy__v2374){if(!__yy__v2374.hasOwnProperty(__yy__v2375))continue;var __yy__v2376=__yy__v2374[__yy__v2375];{if(yyfequal(__yy__v2376.gmltext, ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam,"tla"))){{__yy__v2376.gmlcolour=global.gmlc_primary;__yy__v2376.gmltcolour=global.gmlc_primary;};};}}};}function gml_Object_obj_playoffs2_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlshow_afc=true;}function gml_Object_obj_prematch_Create_0(_inst,_other){if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlintro,0)){{gml_Script_s_check_intro(_inst,_other);return;};};if(yyGetBool(yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlqb_mode)){gml_Script_s_qb_mode_update_resting(_inst,_other);};gml_Script_s_set_up_uniforms(_inst,_other);if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){yyInst(_inst,_other,100389).gmltext=gml_Script_s_get_week_name(_inst,_other);}else {yyInst(_inst,_other,100389).gmltext=gml_Script_s_get_string_week(_inst,_other,0);};_inst.gmlteam0=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteam[__yy_gml_array_check_index(0,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteam)]; _inst.gmlteam1=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteam[__yy_gml_array_check_index(1,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlteam)];_inst.gmlstr_type=gml_Script_s_get_fix_type_string_by_values(_inst,_other,_inst.gmlteam0,_inst.gmlteam1);var ___sw2146___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlforce_uniform_sel1;var ___swc2147___=-1;if(yyCompareVal(___sw2146___,0,g_GMLMathEpsilon,false)==0){___swc2147___=0;}else if(yyCompareVal(___sw2146___,1,g_GMLMathEpsilon,false)==0){___swc2147___=1; }else if(yyCompareVal(___sw2146___,2,g_GMLMathEpsilon,false)==0){___swc2147___=2;}else if(yyCompareVal(___sw2146___,3,g_GMLMathEpsilon,false)==0){___swc2147___=3;}switch(___swc2147___){case 0:{gml_Script_s_load_uniform_file2(_inst,_other,ds_map_find_value(_inst.gmlteam0,"uid"),100393,1,"");break;}case 1:{gml_Script_s_load_uniform_file2(_inst,_other,ds_map_find_value(_inst.gmlteam0,"uid"),100393,0,"");break;}case 2:{gml_Script_s_load_uniform_file2(_inst,_other,ds_map_find_value(_inst.gmlteam0,"uid"),100393, 2,"");break;}case 3:{gml_Script_s_load_uniform_file2(_inst,_other,ds_map_find_value(_inst.gmlteam0,"uid"),100393,3,"");break;}};var ___sw2148___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlforce_uniform_sel2;var ___swc2149___=-1;if(yyCompareVal(___sw2148___,0,g_GMLMathEpsilon,false)==0){___swc2149___=0;}else if(yyCompareVal(___sw2148___,1,g_GMLMathEpsilon,false)==0){___swc2149___=1;}else if(yyCompareVal(___sw2148___,2,g_GMLMathEpsilon,false)==0){___swc2149___=2;}else if(yyCompareVal(___sw2148___,3, g_GMLMathEpsilon,false)==0){___swc2149___=3;}switch(___swc2149___){case 0:{gml_Script_s_load_uniform_file2(_inst,_other,ds_map_find_value(_inst.gmlteam1,"uid"),100394,0,"");break;}case 1:{gml_Script_s_load_uniform_file2(_inst,_other,ds_map_find_value(_inst.gmlteam1,"uid"),100394,1,"");break;}case 2:{gml_Script_s_load_uniform_file2(_inst,_other,ds_map_find_value(_inst.gmlteam1,"uid"),100394,2,"");break;}case 3:{gml_Script_s_load_uniform_file2(_inst,_other,ds_map_find_value(_inst.gmlteam1,"uid"),100394, 3,"");break;}};var ___sw2150___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlforce_uniform_sel1;var ___swc2151___=-1;if(yyCompareVal(___sw2150___,0,g_GMLMathEpsilon,false)==0){___swc2151___=0;}else if(yyCompareVal(___sw2150___,1,g_GMLMathEpsilon,false)==0){___swc2151___=1;}else if(yyCompareVal(___sw2150___,2,g_GMLMathEpsilon,false)==0){___swc2151___=2;}else if(yyCompareVal(___sw2150___,3,g_GMLMathEpsilon,false)==0){___swc2151___=3;}switch(___swc2151___){case 0:{yyInst(_inst,_other,100398).gmltext=gml_Script_s_str(_inst, _other,"ui_Away");break;}case 1:{yyInst(_inst,_other,100398).gmltext=gml_Script_s_str(_inst,_other,"ui_Home");break;}case 2:{yyInst(_inst,_other,100398).gmltext=gml_Script_s_str(_inst,_other,"ui_Alternate");break;}case 3:{yyInst(_inst,_other,100398).gmltext=gml_Script_s_str(_inst,_other,"ui_Rush");break;}};var ___sw2152___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlforce_uniform_sel2;var ___swc2153___=-1;if(yyCompareVal(___sw2152___,0,g_GMLMathEpsilon,false)==0){___swc2153___=0;}else if(yyCompareVal(___sw2152___, 1,g_GMLMathEpsilon,false)==0){___swc2153___=1;}else if(yyCompareVal(___sw2152___,2,g_GMLMathEpsilon,false)==0){___swc2153___=2;}else if(yyCompareVal(___sw2152___,3,g_GMLMathEpsilon,false)==0){___swc2153___=3;}switch(___swc2153___){case 0:{yyInst(_inst,_other,100399).gmltext=gml_Script_s_str(_inst,_other,"ui_Home");break;}case 1:{yyInst(_inst,_other,100399).gmltext=gml_Script_s_str(_inst,_other,"ui_Away");break;}case 2:{yyInst(_inst,_other,100399).gmltext=gml_Script_s_str(_inst,_other,"ui_Alternate"); break;}case 3:{yyInst(_inst,_other,100399).gmltext=gml_Script_s_str(_inst,_other,"ui_Rush");break;}};_inst.gmlrecord=__yy_gml_array_check(_inst.gmlrecord,793040019);_inst.gmlrecord[__yy_gml_array_check_index_set(0)]=gml_Script_s_get_string_record(_inst,_other,_inst.gmlteam0,false);_inst.gmldefense=__yy_gml_array_check(_inst.gmldefense,2468049442);_inst.gmldefense[__yy_gml_array_check_index_set(0)]=gml_Script_s_get_team_defense(_inst,_other,_inst.gmlteam0);_inst.gmloffense=__yy_gml_array_check(_inst.gmloffense, 2881329983);_inst.gmloffense[__yy_gml_array_check_index_set(0)]=gml_Script_s_get_team_offense(_inst,_other,_inst.gmlteam0);_inst.gmlname=__yy_gml_array_check(_inst.gmlname,1730089231);_inst.gmlname[__yy_gml_array_check_index_set(0)]=ds_map_find_value(_inst.gmlteam0,"name");_inst.gmlrecord[__yy_gml_array_check_index_set(1)]=gml_Script_s_get_string_record(_inst,_other,_inst.gmlteam1,false);_inst.gmldefense[__yy_gml_array_check_index_set(1)]=gml_Script_s_get_team_defense(_inst,_other,_inst.gmlteam1); _inst.gmloffense[__yy_gml_array_check_index_set(1)]=gml_Script_s_get_team_offense(_inst,_other,_inst.gmlteam1);_inst.gmlname[__yy_gml_array_check_index_set(1)]=ds_map_find_value(_inst.gmlteam1,"name");if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{_inst.gmlrecord[__yy_gml_array_check_index_set(0)]=gml_Script_s_get_string_record_co_extended(_inst,_other,_inst.gmlteam0);_inst.gmlrecord[__yy_gml_array_check_index_set(1)]=gml_Script_s_get_string_record_co_extended(_inst,_other,_inst.gmlteam1); _inst.gmlname[__yy_gml_array_check_index_set(0)]=yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conf_tag(_inst,_other,_inst.gmlteam0,_inst.gmlteam1)),__yy_gml_errCheck(ds_map_find_value(_inst.gmlteam0,"name")));_inst.gmlname[__yy_gml_array_check_index_set(1)]=yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_conf_tag(_inst,_other,_inst.gmlteam1,_inst.gmlteam0)),__yy_gml_errCheck(ds_map_find_value(_inst.gmlteam1,"name")));yyInst(_inst,_other,100393).gmlbody_type=gml_Script_s_get_team_body_type(_inst, _other,_inst.gmlteam0,_inst.gmldefense[__yy_gml_array_check_index(0,_inst.gmldefense)],_inst.gmloffense[__yy_gml_array_check_index(0,_inst.gmloffense)]);yyInst(_inst,_other,100394).gmlbody_type=gml_Script_s_get_team_body_type(_inst,_other,_inst.gmlteam1,_inst.gmldefense[__yy_gml_array_check_index(1,_inst.gmldefense)],_inst.gmloffense[__yy_gml_array_check_index(1,_inst.gmloffense)]);};};{var __yy__v2377=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v2378 in __yy__v2377){if(!__yy__v2377.hasOwnProperty(__yy__v2378))continue; var __yy__v2379=__yy__v2377[__yy__v2378];{__yy__v2379.gmlcol_helmet_home=yyInst(_inst,_other,100394).gmlhelmet;__yy__v2379.gmlcol_logo_home=yyInst(_inst,_other,100394).gmllogo;__yy__v2379.gmlcol_shirt_home=yyInst(_inst,_other,100394).gmlshirt;__yy__v2379.gmlcol_sleeve_home=yyInst(_inst,_other,100394).gmlsleeve;__yy__v2379.gmlcol_pants_home=yyInst(_inst,_other,100394).gmlpants;__yy__v2379.gmlcol_pants_home_b=yyInst(_inst,_other,100394).gmlpants_b;__yy__v2379.gmlcol_stripe_home=yyInst(_inst,_other, 100394).gmlstripe;__yy__v2379.gmlcol_socks1_home=yyInst(_inst,_other,100394).gmlsocks1;__yy__v2379.gmlcol_socks2_home=yyInst(_inst,_other,100394).gmlsocks2;__yy__v2379.gmlcol_endzone_home=yyInst(_inst,_other,100394).gmlendzone;__yy__v2379.gmlcol_helmet_away=yyInst(_inst,_other,100393).gmlhelmet;__yy__v2379.gmlcol_logo_away=yyInst(_inst,_other,100393).gmllogo;__yy__v2379.gmlcol_shirt_away=yyInst(_inst,_other,100393).gmlshirt;__yy__v2379.gmlcol_sleeve_away=yyInst(_inst,_other,100393).gmlsleeve;__yy__v2379.gmlcol_pants_away=yyInst(_inst, _other,100393).gmlpants;__yy__v2379.gmlcol_pants_away_b=yyInst(_inst,_other,100393).gmlpants_b;__yy__v2379.gmlcol_stripe_away=yyInst(_inst,_other,100393).gmlstripe;__yy__v2379.gmlcol_socks1_away=yyInst(_inst,_other,100393).gmlsocks1;__yy__v2379.gmlcol_socks2_away=yyInst(_inst,_other,100393).gmlsocks2;__yy__v2379.gmlcol_endzone_away=yyInst(_inst,_other,100393).gmlendzone;gml_Script_s_blackwhite_colour_hack(__yy__v2379,_inst,__yy__v2379.gmlcol_shirt_home);gml_Script_s_blackwhite_colour_hack(__yy__v2379, _inst,__yy__v2379.gmlcol_pants_home);gml_Script_s_blackwhite_colour_hack(__yy__v2379,_inst,__yy__v2379.gmlcol_stripe_home);gml_Script_s_blackwhite_colour_hack(__yy__v2379,_inst,__yy__v2379.gmlcol_shirt_away);gml_Script_s_blackwhite_colour_hack(__yy__v2379,_inst,__yy__v2379.gmlcol_pants_away);gml_Script_s_blackwhite_colour_hack(__yy__v2379,_inst,__yy__v2379.gmlcol_stripe_away);}}};yyInst(_inst,_other,100395).gmltitle=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Ball"))," "), __yy_gml_errCheck(string(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_ball),1))));yyInst(_inst,_other,100397).gmlimage_num=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlop_ball;yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlsim_action=false;yyInst(_inst,_other,100400).visible=false;if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfr_mode)){yyInst(_inst,_other,100400).visible=true;};if((yyGetBool(gml_Script_s_is_co_mode(_inst,_other)))&&(yyGetBool(0))){ yyInst(_inst,_other,100400).visible=true;};var gmlrest_text_short="";var gmlrest_text_long="";{var __yy__v2380=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v2381 in __yy__v2380){if(!__yy__v2380.hasOwnProperty(__yy__v2381))continue;var __yy__v2382=__yy__v2380[__yy__v2381];{var gmli=0;for(;yyfless(gmli,ds_list_size(__yy__v2382.gmlroster));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(__yy__v2382.gmlroster,gmli); if(yyGetBool(gml_Script_s_player_benched(__yy__v2382,_inst,gmlpmap))){{if(yyfnotequal(gmlrest_text_short,"")){gmlrest_text_short=yyfplus(gmlrest_text_short,", ");};if(yyfnotequal(gmlrest_text_long,"")){gmlrest_text_long=yyfplus(gmlrest_text_long,", ");};gmlrest_text_short=yyfplus(gmlrest_text_short,gml_Script_s_get_string_position(__yy__v2382,_inst,ds_map_find_value(gmlpmap,"position")));gmlrest_text_long=yyfplus(gmlrest_text_long,yyfplus(yyfplus(yyfplus("[",__yy_gml_errCheck(gml_Script_s_get_string_position(__yy__v2382, _inst,ds_map_find_value(gmlpmap,"position")))),"] "),__yy_gml_errCheck(ds_map_find_value(gmlpmap,"lname"))));};};}};if(yyfnotequal(gmlrest_text_long,"")){{yyInst(_inst,_other,100390).gmltitle=yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(__yy__v2382.gmlmyteam,"name"))," "),__yy_gml_errCheck(gml_Script_s_str(__yy__v2382,_inst,"ui_Benched")));if(yyfgreater(string_length(gmlrest_text_long),26)){{if(yyfgreater(string_length(gmlrest_text_short),26)){yyInst(_inst,_other,100391).gmltext=string_copy(gmlrest_text_short, 1,26);}else {yyInst(_inst,_other,100391).gmltext=gmlrest_text_short;};};}else {yyInst(_inst,_other,100391).gmltext=gmlrest_text_long;};};};}}};if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)){{yyInst(_inst,_other,100390).visible=true;yyInst(_inst,_other,100391).visible=true;var ___sw2154___=gml_Script_s_qb_mode_benched_status(_inst,_other);var ___swc2155___=-1;if(yyCompareVal(___sw2154___,1,g_GMLMathEpsilon,false)==0){___swc2155___=0;}else if(yyCompareVal(___sw2154___,2,g_GMLMathEpsilon, false)==0){___swc2155___=1;}switch(___swc2155___){case 0:{yyInst(_inst,_other,100390).gmltitle="BENCHED!";yyInst(_inst,_other,100391).gmltext=string_replace(gml_Script_s_str(_inst,_other,"msg_benched_relationship"),"$num",string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrelationship_boss));yyInst(_inst,_other,100391).gmltcolour=255;return;break;}case 1:{yyInst(_inst,_other,100390).gmlcolour=255;yyInst(_inst,_other,100390).gmlflash=true;yyInst(_inst,_other,100390).gmltitle="BENCHED!";yyInst(_inst, _other,100391).gmltext=string_replace(gml_Script_s_str(_inst,_other,"msg_benched_energy"),"$num",string(gml_Script_s_get_qb_energy(_inst,_other)));return;break;}};};};if(yyfequal(gmlrest_text_long,"")){{yyInst(_inst,_other,100390).visible=false;yyInst(_inst,_other,100391).visible=false;if(yyGetBool(global.gmlbrowser)){{instance_create_layer(56,232,"Instances",YYASSET_REF(0x0000002B));var gmlb2=instance_create_layer(184,232,"Instances",YYASSET_REF(0x0000002B));yyInst(_inst,_other,gmlb2).sprite_index=YYASSET_REF(0x010000D8); yyInst(_inst,_other,gmlb2).gmlgoogle=true;};};};};}function gml_Object_obj_prematch_Draw_64(_inst,_other){draw_sprite(_inst,YYASSET_REF(0x010000B8),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlforce_uniform_sel1,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100398).x),24),yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100398).y),36));draw_sprite(_inst,YYASSET_REF(0x010000B8),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlforce_uniform_sel2,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100399).x), 24),yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100399).y),36));draw_set_font(global.gmlfnt_flex);draw_set_halign(1);draw_set_valign(1);var gmltx=yyftime(__yy_gml_errCheck(display_get_gui_width()),0.24);var gmlty=yyftime(__yy_gml_errCheck(display_get_gui_height()),0.65);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(_inst.gmlname[__yy_gml_array_check_index(0,_inst.gmlname)]));draw_set_font(global.gmlfnt_small_flex);gmlty=yyfplus(gmlty,16);gml_Script_draw_hd_text(_inst,_other,gmltx, gmlty,_inst.gmlrecord[__yy_gml_array_check_index(0,_inst.gmlrecord)]);draw_set_halign(2);gmlty=yyfplus(gmlty,14);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(gml_Script_s_str(_inst,_other,"ui_Defense")));var gmlsx=gmltx;draw_sprite_ext(_inst,YYASSET_REF(0x01000073),_inst.gmldefense[__yy_gml_array_check_index(0,_inst.gmldefense)],yyfplus(__yy_gml_errCheck(gmlsx),5),gmlty,1,1,0,global.gmlc_defense,1);gmlty=yyfplus(gmlty,14);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(gml_Script_s_str(_inst, _other,"ui_Offense")));draw_sprite_ext(_inst,YYASSET_REF(0x01000073),_inst.gmloffense[__yy_gml_array_check_index(0,_inst.gmloffense)],yyfplus(__yy_gml_errCheck(gmlsx),5),gmlty,1,1,0,global.gmlc_offense,1);draw_set_font(global.gmlfnt_flex);draw_set_halign(1);draw_set_valign(1);var gmltx=yyftime(__yy_gml_errCheck(display_get_gui_width()),0.76);var gmlty=yyftime(__yy_gml_errCheck(display_get_gui_height()),0.65);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(_inst.gmlname[__yy_gml_array_check_index(1, _inst.gmlname)]));draw_set_font(global.gmlfnt_small_flex);gmlty=yyfplus(gmlty,16);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,_inst.gmlrecord[__yy_gml_array_check_index(1,_inst.gmlrecord)]);draw_set_halign(0);gmlty=yyfplus(gmlty,14);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(gml_Script_s_str(_inst,_other,"ui_Offense")));var gmlsx=gmltx;draw_sprite_ext(_inst,YYASSET_REF(0x01000073),_inst.gmloffense[__yy_gml_array_check_index(1,_inst.gmloffense)],yyfminus(__yy_gml_errCheck(gmlsx), 5),gmlty,(-1),1,0,global.gmlc_offense,1);gmlty=yyfplus(gmlty,14);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_upper(gml_Script_s_str(_inst,_other,"ui_Defense")));draw_sprite_ext(_inst,YYASSET_REF(0x01000073),_inst.gmldefense[__yy_gml_array_check_index(1,_inst.gmldefense)],yyfminus(__yy_gml_errCheck(gmlsx),5),gmlty,(-1),1,0,global.gmlc_defense,1);var gmltx=yyftime(__yy_gml_errCheck(display_get_gui_width()),0.5);var gmlty=yyftime(__yy_gml_errCheck(display_get_gui_height()),0.58);draw_set_halign(1); gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,_inst.gmlstr_type);}function gml_Object_obj_helmet_Create_0(_inst,_other){}function gml_Object_obj_helmet_Draw_0(_inst,_other){}function gml_Object_obj_helmet_Draw_64(_inst,_other){gml_Script_s_shader_set_uniforms(_inst,_other);draw_sprite_ext(_inst,_inst.sprite_index,_inst.gmlimage,_inst.x,_inst.y,2,2,0,16777215,1);if(yyfequal(_inst.gmlfacing,1)){draw_sprite_ext(_inst,YYASSET_REF(0x01000025),0,yyfplus(__yy_gml_errCheck(_inst.x),100),yyfminus(__yy_gml_errCheck(_inst.y), 20),2,2,0,16777215,1);}else {draw_sprite_ext(_inst,YYASSET_REF(0x01000025),0,yyfminus(__yy_gml_errCheck(_inst.x),100),yyfminus(__yy_gml_errCheck(_inst.y),20),(-2),2,0,16777215,1);};shader_reset();draw_set_font(global.gmlfnt_flex);draw_set_halign(1);draw_set_valign(1);var gmlty=yyfplus(__yy_gml_errCheck(_inst.y),72);gml_Script_draw_hd_text(_inst,_other,_inst.x,gmlty,string_upper(_inst.gmlname));draw_set_font(global.gmlfnt_small_flex);gmlty=yyfplus(gmlty,16);if(yyGetBool(_inst.gmlshow_stats)){gml_Script_draw_hd_text(_inst, _other,_inst.x,gmlty,_inst.gmlrecord);};draw_set_halign(2);if(yyfequal(_inst.gmlfacing,(-1))){draw_set_halign(0);};if(!yyGetBool(_inst.gmlshow_stats)){return;};gmlty=yyfplus(gmlty,14);gml_Script_draw_hd_text(_inst,_other,_inst.x,gmlty,string_upper(gml_Script_s_str(_inst,_other,"ui_Defense")));var gmlsx=_inst.x;if(yyfequal(_inst.gmlfacing,1)){draw_sprite_ext(_inst,YYASSET_REF(0x01000072),_inst.gmldefense,yyfplus(__yy_gml_errCheck(gmlsx),5),gmlty,1,1,0,65535,1);}else {draw_sprite_ext(_inst,YYASSET_REF(0x01000072), _inst.gmldefense,yyfminus(__yy_gml_errCheck(gmlsx),5),gmlty,(-1),1,0,65535,1);};gmlty=yyfplus(gmlty,14);gml_Script_draw_hd_text(_inst,_other,_inst.x,gmlty,string_upper(gml_Script_s_str(_inst,_other,"ui_Offense")));if(yyfequal(_inst.gmlfacing,1)){draw_sprite_ext(_inst,YYASSET_REF(0x01000072),_inst.gmloffense,yyfplus(__yy_gml_errCheck(gmlsx),5),gmlty,1,1,0,65535,1);}else {draw_sprite_ext(_inst,YYASSET_REF(0x01000072),_inst.gmloffense,yyfminus(__yy_gml_errCheck(gmlsx),5),gmlty,(-1),1,0,65535,1);};}function gml_Object_obj_helmet_PreCreate_0(_inst, _other){event_inherited(_inst,_other);_inst.gmlname="Team Name";_inst.gmlshow_stats=true;_inst.gmldefense=0;_inst.gmloffense=0;_inst.gmlfacing=1;_inst.gmlrecord="0-0-0";_inst.gmlimage=0;_inst.gmlhelmet=__yy_gml_array_check(_inst.gmlhelmet,3666812894);_inst.gmlhelmet[__yy_gml_array_check_index_set(3)]=0;_inst.gmllogo=__yy_gml_array_check(_inst.gmllogo,2321711084);_inst.gmllogo[__yy_gml_array_check_index_set(3)]=0;_inst.gmlshirt=__yy_gml_array_check(_inst.gmlshirt,1027333011);_inst.gmlshirt[__yy_gml_array_check_index_set(3)]=0; _inst.gmlsleeve=__yy_gml_array_check(_inst.gmlsleeve,3111731137);_inst.gmlsleeve[__yy_gml_array_check_index_set(3)]=0;_inst.gmlpants=__yy_gml_array_check(_inst.gmlpants,3194782232);_inst.gmlpants[__yy_gml_array_check_index_set(3)]=0;_inst.gmlpants_b=__yy_gml_array_check(_inst.gmlpants_b,1445469295);_inst.gmlpants_b[__yy_gml_array_check_index_set(3)]=0;_inst.gmlstripe=__yy_gml_array_check(_inst.gmlstripe,2849462600);_inst.gmlstripe[__yy_gml_array_check_index_set(3)]=0;_inst.gmlsocks=__yy_gml_array_check(_inst.gmlsocks, 4097146686);_inst.gmlsocks[__yy_gml_array_check_index_set(3)]=0;_inst.gmlsocks_b=__yy_gml_array_check(_inst.gmlsocks_b,2468168349);_inst.gmlsocks_b[__yy_gml_array_check_index_set(3)]=0;_inst.gmlcleats=__yy_gml_array_check(_inst.gmlcleats,2556554615);_inst.gmlcleats[__yy_gml_array_check_index_set(3)]=0;_inst.gmlcol_skin_r=0;_inst.gmlcol_skin_g=0;_inst.gmlcol_skin_b=0;}function gml_Object_obj_postmatch_Create_0(_inst,_other){if((yyGetBool(!yyGetBool(global.gmlpoki)))||(yyGetBool(global.gmlpoki_done_post_match_reward))){ layer_set_visible(layer_get_id("Poki_Layer"),false);};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gml_Script_s_co_division_create(_inst,_other,100485,gml_Script_s_get_my_conference_uid(_inst,_other),gml_Script_s_get_my_division(_inst,_other));gml_Script_s_co_subdivision_create(_inst,_other,gml_Script_s_get_object_data(_inst,_other,100484),gml_Script_s_get_my_conference_data(_inst,_other),13);yyInst(_inst,_other,100485).gmlonClickAction=kgml_Script_s_btn_division_postmatch_view;yyInst(_inst, _other,100488).gml_panel=100485;yyInst(_inst,_other,100488).gmlonClickAction=kgml_Script_s_btn_division_postmatch_view;{var __yy__v2383=GetWithArray(100479);for(var __yy__v2384 in __yy__v2383){if(!__yy__v2383.hasOwnProperty(__yy__v2384))continue;var __yy__v2385=__yy__v2383[__yy__v2384];{__yy__v2385.gmlpost_click_action=__yy__v2385.gmlonClickAction;__yy__v2385.gmlonClickAction=kgml_Script_s_btn_postmatch_co_continue;}}};{var __yy__v2386=GetWithArray(100481);for(var __yy__v2387 in __yy__v2386){if(!__yy__v2386.hasOwnProperty(__yy__v2387))continue; var __yy__v2388=__yy__v2386[__yy__v2387];{__yy__v2388.gmlpost_click_action=__yy__v2388.gmlonClickAction;__yy__v2388.gmlonClickAction=kgml_Script_s_btn_postmatch_co_league;}}};var gmlfix=gml_Script_s_get_fix_by_week_and_teams(_inst,_other,yyInst(_inst,_other,global.gmlg_m).gmlschedule,yyInst(_inst,_other,global.gmlg_m).gmlweek,gml_Script_s_get_map_real(_inst,_other,yyInst(_inst,_other,global.gmlg_m).gmlteam[__yy_gml_array_check_index(0,yyInst(_inst,_other,global.gmlg_m).gmlteam)],"uid",(-1)),gml_Script_s_get_map_real(_inst, _other,yyInst(_inst,_other,global.gmlg_m).gmlteam[__yy_gml_array_check_index(1,yyInst(_inst,_other,global.gmlg_m).gmlteam)],"uid",(-1)));if((yyGetBool(yyfnotequal(gmlfix,(-4))))&&(yyGetBool(yyfequal(gml_Script_s_get_map(_inst,_other,gmlfix,"cat","none"),"sf")))){{var gmlref=100487;yyInst(_inst,_other,gmlref).y=yyfplus(yyInst(_inst,_other,gmlref).y,8);var gmlsf_text=gml_Script_s_create_label(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,gmlref).x),8),yyfminus(__yy_gml_errCheck(yyInst(_inst, _other,gmlref).y),8),gml_Script_s_str(_inst,_other,"ui_SemiFinal"),0);};};};}else {{gml_Script_s_populate_division(_inst,_other,100485,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyconference,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmydivision);yyInst(_inst,_other,100484).gmlconference=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyconference;};};gml_Script_s_check_for_news(_inst,_other);yyInst(_inst,_other,100479).visible=false;yyInst(_inst,_other,100481).visible=false;yyInst(_inst, _other,100488).visible=false;_inst.gmlstage_time=g_pBuiltIn.get_current_time();if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)){{yyInst(_inst,_other,100485).y=136;yyInst(_inst,_other,100482).visible=false;_inst.gmlstage=2;_inst.gmlstage_time=0;};}else {{if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfans_done_update)){{_inst.gmlstage=2;_inst.gmlstage_time=0;};};if(yyfgreaterequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfans,100)){gml_Script_s_complete_achievement(_inst, _other,"ACH_FANS100");};};};_inst.gmlwon_match=false;var gmlfixture=gml_Script_s_get_human_fixture_by_week(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek);if((yyGetBool(gmlfixture))&&(yyGetBool(yyfequal(ds_map_find_value(gmlfixture,"human_win"),"win")))){_inst.gmlwon_match=true;};{var __yy__v2389=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v2390 in __yy__v2389){if(!__yy__v2389.hasOwnProperty(__yy__v2390))continue;var __yy__v2391=__yy__v2389[__yy__v2390];if((yyGetBool(!yyGetBool(is_undefined(__yy__v2391.gmlteam[__yy_gml_array_check_index(0, __yy__v2391.gmlteam)]))))&&(yyGetBool(yyfgreaterequal(__yy__v2391.gmlteam[__yy_gml_array_check_index(0,__yy__v2391.gmlteam)],0)))){{if(yyfequal(__yy__v2391.gmlteam[__yy_gml_array_check_index(0,__yy__v2391.gmlteam)],__yy__v2391.gmlmyteam)){yyInst(_inst,_other,100487).gmlcol1=global.gmlc_primary;}else {yyInst(_inst,_other,100487).gmlcol2=global.gmlc_primary;};yyInst(_inst,_other,100487).gmlteamnames=__yy_gml_array_check(yyInst(_inst,_other,100487).gmlteamnames,3602241284);yyInst(_inst,_other,100487).gmlteamnames[__yy_gml_array_check_index_set(0)]=ds_map_find_value(__yy__v2391.gmlteam[__yy_gml_array_check_index(0, __yy__v2391.gmlteam)],"tla");yyInst(_inst,_other,100487).gmlteamnames[__yy_gml_array_check_index_set(1)]=ds_map_find_value(__yy__v2391.gmlteam[__yy_gml_array_check_index(1,__yy__v2391.gmlteam)],"tla");yyInst(_inst,_other,100487).gmlratings1=__yy_gml_array_check(yyInst(_inst,_other,100487).gmlratings1,497417958);yyInst(_inst,_other,100487).gmlratings1[__yy_gml_array_check_index_set(0)]=gml_Script_s_get_team_offense(__yy__v2391,_inst,__yy__v2391.gmlteam[__yy_gml_array_check_index(0,__yy__v2391.gmlteam)]); yyInst(_inst,_other,100487).gmlratings1[__yy_gml_array_check_index_set(1)]=gml_Script_s_get_team_defense(__yy__v2391,_inst,__yy__v2391.gmlteam[__yy_gml_array_check_index(0,__yy__v2391.gmlteam)]);yyInst(_inst,_other,100487).gmlratings2=__yy_gml_array_check(yyInst(_inst,_other,100487).gmlratings2,914926885);yyInst(_inst,_other,100487).gmlratings2[__yy_gml_array_check_index_set(0)]=gml_Script_s_get_team_offense(__yy__v2391,_inst,__yy__v2391.gmlteam[__yy_gml_array_check_index(1,__yy__v2391.gmlteam)]); yyInst(_inst,_other,100487).gmlratings2[__yy_gml_array_check_index_set(1)]=gml_Script_s_get_team_defense(__yy__v2391,_inst,__yy__v2391.gmlteam[__yy_gml_array_check_index(1,__yy__v2391.gmlteam)]);yyInst(_inst,_other,100487).gmlscores1=__yy_gml_array_create([__yy__v2391.gmlqtr_scores0[__yy_gml_array_check_index(0,__yy__v2391.gmlqtr_scores0)],__yy__v2391.gmlqtr_scores0[__yy_gml_array_check_index(1,__yy__v2391.gmlqtr_scores0)],__yy__v2391.gmlqtr_scores0[__yy_gml_array_check_index(2,__yy__v2391.gmlqtr_scores0)], __yy__v2391.gmlqtr_scores0[__yy_gml_array_check_index(3,__yy__v2391.gmlqtr_scores0)],__yy__v2391.gmltscore[__yy_gml_array_check_index(0,__yy__v2391.gmltscore)]]);yyInst(_inst,_other,100487).gmlscores2=__yy_gml_array_create([__yy__v2391.gmlqtr_scores1[__yy_gml_array_check_index(0,__yy__v2391.gmlqtr_scores1)],__yy__v2391.gmlqtr_scores1[__yy_gml_array_check_index(1,__yy__v2391.gmlqtr_scores1)],__yy__v2391.gmlqtr_scores1[__yy_gml_array_check_index(2,__yy__v2391.gmlqtr_scores1)],__yy__v2391.gmlqtr_scores1[__yy_gml_array_check_index(3, __yy__v2391.gmlqtr_scores1)],__yy__v2391.gmltscore[__yy_gml_array_check_index(1,__yy__v2391.gmltscore)]]);};};}};}function gml_Object_obj_postmatch_Step_0(_inst,_other){gml_Script_s_update_music(_inst,_other);yyInst(_inst,_other,100483).gmltext=gml_Script_s_get_credit(_inst,_other);{var __yy__v2392=GetWithArray(YYASSET_REF(0x0000004F));for(var __yy__v2393 in __yy__v2392){if(!__yy__v2392.hasOwnProperty(__yy__v2393))continue;var __yy__v2394=__yy__v2392[__yy__v2393];{if(yyfless(__yy__v2394.depth,_inst.depth)){ {__yy__v2394.gmlstage_time=g_pBuiltIn.get_current_time();return;};};}}};if(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfans_done_update)){{yyInst(_inst,_other,100482).gmlold_percent=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfans;if(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)){gml_Script_s_do_postmatch_fans(_inst,_other);};};};if(yyfless(g_pBuiltIn.get_current_time(),yyfplus(__yy_gml_errCheck(_inst.gmlstage_time),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(_inst.gmlstage), 1)),500))))){return;};var ___sw2158___=_inst.gmlstage;var ___swc2159___=-1;if(yyCompareVal(___sw2158___,0,g_GMLMathEpsilon,false)==0){___swc2159___=0;}else if(yyCompareVal(___sw2158___,1,g_GMLMathEpsilon,false)==0){___swc2159___=1;}else if(yyCompareVal(___sw2158___,2,g_GMLMathEpsilon,false)==0){___swc2159___=2;}switch(___swc2159___){case 0:{(g_yyPrePostObject__=_other.gmlstage,_other.gmlstage=(g_yyPrePostObject__ instanceof Long?_other.gmlstage.add(1):++_other.gmlstage),g_yyPrePostObject__);break;}case 1:{ var gmlcx1=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100482).x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,100482).sprite_width),0.16)));var gmlcx2=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100482).x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,100482).sprite_width),0.5)));var gmlcx3=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100482).x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,100482).sprite_width),0.82)));var gmlcy=yyfplus(__yy_gml_errCheck(yyInst(_inst, _other,100482).y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,100482).sprite_height),0.5)));var gmldx=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100483).x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,100483).sprite_width),0.5)));var gmldy=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100483).y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,100483).sprite_height),0.5)));gml_Script_s_create_credit(_inst,_other,gmlcx1,gmlcy,gmldx,gmldy,1,1, (-4),true);if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfans,33)){gml_Script_s_create_credit(_inst,_other,gmlcx2,gmlcy,gmldx,gmldy,1,1,(-4),false);};if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfans,66)){gml_Script_s_create_credit(_inst,_other,gmlcx3,gmlcy,gmldx,gmldy,1,1,(-4),false);};if((yyGetBool(_inst.gmlwon_match))&&(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek,gml_Script_s_get_week_superbowl(_inst,_other))))){{gml_Script_s_create_credit(_inst, _other,yyfplus(__yy_gml_errCheck(gmlcx3),10),gmlcy,gmldx,gmldy,10,1,(-4),false);};};(g_yyPrePostObject__=_inst.gmlstage,_inst.gmlstage=(g_yyPrePostObject__ instanceof Long?_inst.gmlstage.add(1):++_inst.gmlstage),g_yyPrePostObject__);break;}case 2:{if(!yyGetBool(instance_exists(YYASSET_REF(0x00000066)))){{yyInst(_inst,_other,100479).visible=true;yyInst(_inst,_other,100481).visible=true;if(!yyGetBool(global.gmlpoki)){yyInst(_inst,_other,100488).visible=true;};};};break;}};}function gml_Object_obj_postmatch_PreCreate_0(_inst, _other){event_inherited(_inst,_other);_inst.gmlstage=0;_inst.gmlstage_time=0;}function gml_Object_obj_xp_update_Create_0(_inst,_other){_inst.gmllayer_FM=layer_get_id("Layer_FM");_inst.gmllayer_QB=layer_get_id("Layer_QB");var ___sw2162___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode;var ___swc2163___=-1;if(yyCompareVal(___sw2162___,0,g_GMLMathEpsilon,false)==0){___swc2163___=0;}else if(yyCompareVal(___sw2162___,1,g_GMLMathEpsilon,false)==0){___swc2163___=1;}switch(___swc2163___){case 0:{layer_set_visible(_inst.gmllayer_FM, true);layer_set_visible(_inst.gmllayer_QB,false);break;}case 1:{layer_set_visible(_inst.gmllayer_FM,false);layer_set_visible(_inst.gmllayer_QB,true);break;}};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{yyInst(_inst,_other,100622).gmlshow_stars=false;};};yyInst(_inst,_other,100621).visible=false;yyInst(_inst,_other,100630).visible=false;yyInst(_inst,_other,100631).visible=false;{var __yy__v2395=GetWithArray(100632);for(var __yy__v2396 in __yy__v2395){if(!__yy__v2395.hasOwnProperty(__yy__v2396))continue; var __yy__v2397=__yy__v2395[__yy__v2396];__yy__v2397.visible=false;}};gml_Script_s_update_rest_all_button(_inst,_other);yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster=gml_Script_s_sort_players(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster,4);_inst.gmll_names=ds_list_create();_inst.gmll_attitude=ds_list_create();_inst.gmll_condition=ds_list_create();_inst.gmll_resting=ds_list_create();_inst.gmll_pos=ds_list_create();_inst.gmll_yards=ds_list_create();_inst.gmll_tackles=ds_list_create(); _inst.gmll_rating=ds_list_create();_inst.gmll_tds=ds_list_create();_inst.gmll_fumbles=ds_list_create();_inst.gmll_intsacks=ds_list_create();_inst.gmll_xp=ds_list_create();_inst.gmll_levelup=ds_list_create();_inst.gmll_gpa=ds_list_create();_inst.gmll_gpa_col=ds_list_create();_inst.gmll_suspended=ds_list_create();if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstage,7)){{_inst.gmlstage_time=g_pBuiltIn.get_current_time();if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek, yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmllast_week_regular)){{yyInst(_inst,_other,100622).gmltext=gml_Script_s_str(_inst,_other,"ui_EndWeek");};}else {{yyInst(_inst,_other,100622).gmltext=gml_Script_s_str(_inst,_other,"ui_EndWeekN");yyInst(_inst,_other,100622).gmltext=string_replace(yyInst(_inst,_other,100622).gmltext,"$num",yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek);};};yyInst(_inst,_other,100624).visible=false;yyInst(_inst,_other,100624).visible=false;gml_Script_s_post_match_gpa_refresh(_inst, _other);gml_Script_s_set_up_xp_headers(_inst,_other,gml_Script_s_is_bye_week(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek),true);gml_Script_s_do_postmatch_effects(_inst,_other);};}else {{gml_Script_s_tag_backups(_inst,_other);yyInst(_inst,_other,100622).gmltext=gml_Script_s_str(_inst,_other,"ui_Roster");gml_Script_s_set_up_xp_headers(_inst,_other,true,false);if(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)){{yyInst(_inst,_other,100630).visible=true;yyInst(_inst, _other,100631).visible=true;if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{yyInst(_inst,_other,100632).visible=true;};};if(yyfless(ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster),2)){{yyInst(_inst,_other,100630).gmlactive=false;yyInst(_inst,_other,100631).gmlactive=false;if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{yyInst(_inst,_other,100632).visible=false;};};};};if(yyfgreaterequal(gml_Script_s_get_morale(_inst,_other),100)){yyInst(_inst,_other,100630).gmlactive=false; };if(yyfgreater(gml_Script_s_get_condition_squad(_inst,_other),95)){yyInst(_inst,_other,100630).gmlactive=false;};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{if(yyfgreater(gml_Script_s_get_percent_grade_squad(_inst,_other),92)){{yyInst(_inst,_other,100632).visible=false;};};};};};};};};}function gml_Object_obj_xp_update_Destroy_0(_inst,_other){ds_list_destroy(_inst.gmll_names);ds_list_destroy(_inst.gmll_attitude);ds_list_destroy(_inst.gmll_condition);ds_list_destroy(_inst.gmll_pos);ds_list_destroy(_inst.gmll_yards); ds_list_destroy(_inst.gmll_tackles);ds_list_destroy(_inst.gmll_rating);ds_list_destroy(_inst.gmll_tds);ds_list_destroy(_inst.gmll_fumbles);ds_list_destroy(_inst.gmll_intsacks);ds_list_destroy(_inst.gmll_xp);ds_list_destroy(_inst.gmll_levelup);ds_list_destroy(_inst.gmll_gpa);ds_list_destroy(_inst.gmll_gpa_col);ds_list_destroy(_inst.gmll_suspended);_inst.gmll_names=(-1);_inst.gmll_attitude=(-1);_inst.gmll_condition=(-1);_inst.gmll_pos=(-1);_inst.gmll_yards=(-1);_inst.gmll_tackles=(-1);_inst.gmll_rating=(-1); _inst.gmll_tds=(-1);_inst.gmll_fumbles=(-1);_inst.gmll_intsacks=(-1);_inst.gmll_xp=(-1);_inst.gmll_levelup=(-1);_inst.gmll_gpa=(-1);_inst.gmll_gpa_col=(-1);_inst.gmll_suspended=(-1);}function gml_Object_obj_xp_update_Step_0(_inst,_other){if(yyfnotequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstage,7)){return;};{var __yy__v2398=GetWithArray(YYASSET_REF(0x0000004F));for(var __yy__v2399 in __yy__v2398){if(!__yy__v2398.hasOwnProperty(__yy__v2399))continue;var __yy__v2400=__yy__v2398[__yy__v2399];if(yyfless(__yy__v2400.depth, _inst.depth)){__yy__v2400.gmlstage_time=g_pBuiltIn.get_current_time();};}};if(yyfless(g_pBuiltIn.get_current_time(),yyfplus(__yy_gml_errCheck(_inst.gmlstage_time),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(_inst.gmlstage),1)),1000))))){return;};var ___sw2166___=_inst.gmlstage;var ___swc2167___=-1;if(yyCompareVal(___sw2166___,0,g_GMLMathEpsilon,false)==0){___swc2167___=0;}else if(yyCompareVal(___sw2166___,1,g_GMLMathEpsilon,false)==0){___swc2167___=1;}switch(___swc2167___){ case 0:{var gmldone=true;var gmli=1;for(;yyfless(gmli,ds_list_size(_inst.gmll_condition));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster,yyfminus(__yy_gml_errCheck(gmli),1));ds_list_set(_inst.gmll_condition,gmli,clamp(yyfplus(__yy_gml_errCheck(ds_list_find_value(_inst.gmll_condition,gmli)),1),1,ds_map_find_value(gmlpmap,"condition")));if(yyfless(ds_list_find_value(_inst.gmll_condition, gmli),ds_map_find_value(gmlpmap,"condition"))){gmldone=false;};}};var gmli=1;for(;yyfless(gmli,ds_list_size(_inst.gmll_gpa));(g_yyPrePostObject__=gmli,gmli=(g_yyPrePostObject__ instanceof Long?gmli.add(1):++gmli),g_yyPrePostObject__)){{var gmlpmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster,yyfminus(__yy_gml_errCheck(gmli),1));ds_list_set(_inst.gmll_gpa,gmli,lerp(ds_list_find_value(_inst.gmll_gpa,gmli),ds_map_find_value(gmlpmap,"percent_grade"),0.1));if(yyfnotequal(ds_list_find_value(_inst.gmll_gpa, gmli),ds_map_find_value(gmlpmap,"percent_grade"))){gmldone=false;};}};if(yyGetBool(gmldone)){(g_yyPrePostObject__=_inst.gmlstage,_inst.gmlstage=(g_yyPrePostObject__ instanceof Long?_inst.gmlstage.add(1):++_inst.gmlstage),g_yyPrePostObject__);};break;}case 1:{yyInst(_inst,_other,100621).visible=true;(g_yyPrePostObject__=_inst.gmlstage,_inst.gmlstage=(g_yyPrePostObject__ instanceof Long?_inst.gmlstage.add(1):++_inst.gmlstage),g_yyPrePostObject__);break;}};}function gml_Object_obj_xp_update_Draw_0(_inst, _other){}function gml_Object_obj_xp_update_Draw_64(_inst,_other){draw_set_font(global.gmlfnt_small_flex);draw_set_halign(1);draw_set_alpha(1);var gmltx=yyfplus(__yy_gml_errCheck(_inst.x),4);var gmlty=yyfplus(__yy_gml_errCheck(_inst.y),18);var gmlline_buf=13;var gmlcol_buf=34;var gmlshowSal=true;var gmlshowCnt=true;var gmlshowAge=true;var gmlshowGpa=false;if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gmlshowSal=false;gmlshowCnt=false;gmlshowGpa=true;if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstage, 7)){{var gmlbyeWeek=gml_Script_s_is_bye_week(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlweek);if(!yyGetBool(gmlbyeWeek)){{gmlshowSal=true;gmlshowCnt=true;gmlshowGpa=true;gmlcol_buf=30;};};};};};};if(yyfgreater(ds_list_size(_inst.gmll_attitude),11)){{gmlty=yyfplus(__yy_gml_errCheck(_inst.y),14);gmlline_buf=11.5;};};var gmll=0;for(;yyfless(gmll,ds_list_size(_inst.gmll_attitude));(g_yyPrePostObject__=gmll,gmll=(g_yyPrePostObject__ instanceof Long?gmll.add(1):++gmll),g_yyPrePostObject__)){ {draw_set_color(16777215);if(yyfgreater(gmll,0)){{if((yyGetBool(gml_Script_s_is_co_mode(_inst,_other)))&&(yyGetBool(ds_list_find_value(_inst.gmll_suspended,gmll)))){draw_sprite(_inst,YYASSET_REF(0x0100006F),4,gmltx,gmlty);}else {if(yyGetBool(ds_list_find_value(_inst.gmll_resting,gmll))){draw_sprite(_inst,YYASSET_REF(0x0100006F),3,gmltx,gmlty);}else {draw_sprite(_inst,YYASSET_REF(0x0100006B),gml_Script_s_get_attitude_icon(_inst,_other,ds_list_find_value(_inst.gmll_attitude,gmll)),gmltx,gmlty);};};} ;};gmltx=yyfplus(gmltx,12);draw_set_halign(0);var gmltxt=ds_list_find_value(_inst.gmll_names,gmll);if(yyfequal(gmll,0)){gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,1);};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmltxt);draw_set_halign(1);gmltx=yyfplus(gmltx,82);draw_set_color(gml_Script_s_get_position_colour(_inst,_other,ds_list_find_value(_inst.gmll_pos,gmll)));var gmltxt=gml_Script_s_get_string_position(_inst, _other,ds_list_find_value(_inst.gmll_pos,gmll));gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,1);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmltxt);draw_set_color(16777215);gmltx=yyfplus(gmltx,gmlcol_buf);var gmlcon=ds_list_find_value(_inst.gmll_condition,gmll);if(yyfequal(gmll,0)){{gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmlcon,0,0, 0,0,1);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmlcon);};}else {{if(yyflessequal(gmlcon,40)){{var gmlstr_con=string(abs(gmlcon));if(yyflessequal(gmlcon,0)){{gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),5),yyfplus(__yy_gml_errCheck(gmlty),1),gmlstr_con,0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,yyfplus(__yy_gml_errCheck(gmltx),6),gmlty,gmlstr_con,255,255,255,255,1);draw_sprite(_inst,YYASSET_REF(0x0100006F),0,yyfminus(yyfminus(__yy_gml_errCheck(gmltx), 2),__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,gmlstr_con)),2))),gmlty);};}else {if(yyflessequal(gmlcon,20)){{gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),yyfplus(__yy_gml_errCheck(gmlstr_con),"%"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,yyfplus(__yy_gml_errCheck(gmlstr_con),"%"),4235519,4235519,4235519,4235519,1);};}else {{gml_Script_draw_hd_text_color(_inst,_other, yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),yyfplus(__yy_gml_errCheck(gmlstr_con),"%"),0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,yyfplus(__yy_gml_errCheck(gmlstr_con),"%"),65535,65535,65535,65535,1);};};};};}else {{gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,yyfplus(__yy_gml_errCheck(string(gmlcon)),"%"));};};};};if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstage,7)){{draw_set_color(16777215);gmltx=yyfplus(gmltx,gmlcol_buf); var gmltxt=ds_list_find_value(_inst.gmll_yards,gmll);if(yyfequal(gmll,0)){gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,1);};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmltxt);gmltx=yyfplus(gmltx,gmlcol_buf);var gmltxt=ds_list_find_value(_inst.gmll_tds,gmll);if(yyfequal(gmll,0)){gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0, 1);};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmltxt);gmltx=yyfplus(gmltx,gmlcol_buf);var gmltxt=ds_list_find_value(_inst.gmll_tackles,gmll);if(yyfequal(gmll,0)){gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,1);};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmltxt);gmltx=yyfplus(gmltx,gmlcol_buf);var gmltxt=ds_list_find_value(_inst.gmll_intsacks,gmll);if(yyfequal(gmll,0)){gml_Script_draw_hd_text_color(_inst, _other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,1);};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmltxt);if(yyGetBool(gmlshowSal)){{gmltx=yyfplus(gmltx,gmlcol_buf);var gmltxt=ds_list_find_value(_inst.gmll_fumbles,gmll);if(yyfequal(gmll,0)){{gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,1);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmltxt);};};gml_Script_draw_hd_text_color(_inst, _other,gmltx,gmlty,gmltxt,16777215,16777215,16777215,16777215,1);};};if(yyGetBool(gmlshowCnt)){{gmltx=yyfplus(gmltx,gmlcol_buf);var gmltxt=ds_list_find_value(_inst.gmll_rating,gmll);if(yyfequal(gmll,0)){gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,1);};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmltxt);};};if(yyGetBool(gmlshowGpa)){{gmltx=yyfplus(gmltx,gmlcol_buf);var gmltxt="";if(yyfequal(gmll,0)){{gmltxt=string(ds_list_find_value(_inst.gmll_gpa, gmll));};}else {{gmltxt=gml_Script_s_gpa_string_direct(_inst,_other,ds_list_find_value(_inst.gmll_gpa,gmll));};};if(yyfequal(gmll,0)){gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,1);};var gmlt_col=ds_list_find_value(_inst.gmll_gpa_col,gmll);if(yyfnotequal(gmlt_col,16777215)){{gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,1);};};gml_Script_draw_hd_text_color(_inst, _other,gmltx,gmlty,gmltxt,gmlt_col,gmlt_col,gmlt_col,gmlt_col,1);};};gmltx=yyfplus(gmltx,gmlcol_buf);draw_set_colour(global.gmlc_primary);var gmltxt=ds_list_find_value(_inst.gmll_xp,gmll);if(yyfequal(gmll,0)){gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,1);};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmltxt);gmltx=yyfplus(gmltx,yyfplus(__yy_gml_errCheck(gmlcol_buf),8));var gmla=yyfplus(1,__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()), 100))));draw_set_colour(16777215);var gmltxt=ds_list_find_value(_inst.gmll_levelup,gmll);if(yyfequal(gmll,0)){{gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,1);};}else {if(yyGetBool(string_count("flash_",gmltxt))){{gmltxt=string_replace(gmltxt,"flash_","");gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,yyftime(__yy_gml_errCheck(gmla), 0.7));draw_set_alpha(gmla);draw_set_colour(global.gmlc_primary);};};};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmltxt);draw_set_alpha(1);};}else {{draw_set_color(16777215);gmltx=yyfplus(gmltx,gmlcol_buf);var gmltxt=ds_list_find_value(_inst.gmll_yards,gmll);if(yyfequal(gmll,0)){gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,1);};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmltxt);gmltx=yyfplus(gmltx,gmlcol_buf); var gmltxt=ds_list_find_value(_inst.gmll_tds,gmll);if(yyfequal(gmll,0)){gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,1);};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmltxt);gmltx=yyfplus(gmltx,gmlcol_buf);var gmltxt=ds_list_find_value(_inst.gmll_tackles,gmll);if(yyfequal(gmll,0)){gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0, 0,1);};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmltxt);gmltx=yyfplus(gmltx,gmlcol_buf);var gmltxt=ds_list_find_value(_inst.gmll_intsacks,gmll);if(yyfequal(gmll,0)){gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,1);};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmltxt);if(yyGetBool(gmlshowSal)){{if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)){{gmltx=yyfplus(gmltx,yyfplus(__yy_gml_errCheck(gmlcol_buf), 1));if(yyfequal(gmll,0)){{gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gml_Script_s_str(_inst,_other,"tla_Rating"),0,0,0,0,1);gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gml_Script_s_str(_inst,_other,"tla_Rating"));};}else {draw_sprite_ext(_inst,YYASSET_REF(0x01000076),real(ds_list_find_value(_inst.gmll_fumbles,gmll)),gmltx,gmlty,1,1,0,65535,1);};gmltx=yyfplus(gmltx,1);};}else {{gmltx=yyfplus(gmltx,gmlcol_buf);var gmltxt=ds_list_find_value(_inst.gmll_fumbles, gmll);if(yyfequal(gmll,0)){gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,1);};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmltxt);};};};};if(yyGetBool(gmlshowCnt)){{gmltx=yyfplus(gmltx,gmlcol_buf);var gmltxt=ds_list_find_value(_inst.gmll_rating,gmll);if(yyfequal(gmll,0)){gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,1);};gml_Script_draw_hd_text(_inst, _other,gmltx,gmlty,gmltxt);};};if(yyGetBool(gmlshowAge)){{gmltx=yyfplus(gmltx,gmlcol_buf);var gmltxt=ds_list_find_value(_inst.gmll_xp,gmll);if(yyfequal(gmll,0)){gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,1);}else {if(yyfequal(gmltxt,gml_Script_s_rookie_age_internal(_inst,_other))){draw_set_colour(global.gmlc_primary);};};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,gmltxt);draw_set_colour(16777215);};};if(yyGetBool(gmlshowGpa)){ {gmltx=yyfplus(gmltx,gmlcol_buf);var gmltxt="";if(yyfequal(gmll,0)){{gmltxt=string(ds_list_find_value(_inst.gmll_gpa,gmll));};}else {{gmltxt=gml_Script_s_gpa_string_direct(_inst,_other,ds_list_find_value(_inst.gmll_gpa,gmll));};};if(yyfequal(gmll,0)){gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,1);};var gmlt_col=ds_list_find_value(_inst.gmll_gpa_col,gmll);if(yyfnotequal(gmlt_col,16777215)){{gml_Script_draw_hd_text_color(_inst, _other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,1);};};gml_Script_draw_hd_text_color(_inst,_other,gmltx,gmlty,gmltxt,gmlt_col,gmlt_col,gmlt_col,gmlt_col,1);};};gmltx=yyfplus(gmltx,yyfplus(__yy_gml_errCheck(gmlcol_buf),8));var gmltxt=ds_list_find_value(_inst.gmll_levelup,gmll);if(yyfequal(gmll,0)){gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),gmltxt,0,0,0,0,1);};gml_Script_draw_hd_text(_inst, _other,gmltx,gmlty,gmltxt);};};gmltx=yyfplus(__yy_gml_errCheck(_inst.x),4);gmlty=yyfplus(gmlty,gmlline_buf);}};draw_set_alpha(1);draw_set_colour(16777215);}function gml_Object_obj_xp_update_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlstat_type=0;_inst.gmlstage=0;_inst.gmlstage_time=0;}function gml_Object_obj_playerprofile_rm_Create_0(_inst,_other){_inst.gmlpmap=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile;if(yyfequal(_inst.gmlpmap,(-4))){return;};_inst.gmlis_draft_player=false; if(yyfgreaterequal(ds_list_find_index(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraftlist,_inst.gmlpmap),0)){_inst.gmlis_draft_player=true;};if(!yyGetBool(ds_map_exists(_inst.gmlpmap,"scouted"))){ds_map_set(_inst.gmlpmap,"scouted",0);};gml_Script_s_round_player_attributes(_inst,_other,_inst.gmlpmap);if((yyGetBool(!yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltag_kr_message_done)))||(yyGetBool((yyGetBool(yyfnotequal(ds_map_find_value(_inst.gmlpmap,"position"),2)))&&(yyGetBool(yyfnotequal(ds_map_find_value(_inst.gmlpmap, "position"),4)))&&(yyGetBool(yyfnotequal(ds_map_find_value(_inst.gmlpmap,"position"),8)))&&(yyGetBool(yyfnotequal(ds_map_find_value(_inst.gmlpmap,"position"),9)))))){{{var __yy__v2401=GetWithArray(YYASSET_REF(0x00000096));for(var __yy__v2402 in __yy__v2401){if(!__yy__v2401.hasOwnProperty(__yy__v2402))continue;var __yy__v2403=__yy__v2401[__yy__v2402];yyInst(_inst,_other,YYASSET_REF(0x00000096)).visible=false;}};};};gml_Script_slog(_inst,_other,yyfplus("face_x=",__yy_gml_errCheck(string(ds_map_find_value(_inst.gmlpmap, "face_x")))));gml_Script_slog(_inst,_other,yyfplus("face_y=",__yy_gml_errCheck(string(ds_map_find_value(_inst.gmlpmap,"face_y")))));draw_set_font(global.gmlfnt_small_flex);draw_set_halign(0);draw_set_valign(1);yyInst(_inst,_other,YYASSET_REF(0x00000047)).visible=false;var gmlname=yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_position(_inst,_other,ds_map_find_value(_inst.gmlpmap,"position")))," - "),__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"fname")))," "),__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap, "lname")));yyInst(_inst,_other,100434).gmltext=gmlname;var gmlage=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Age")),": "),__yy_gml_errCheck(string(ds_map_find_value(_inst.gmlpmap,"age"))));if(yyfequal(ds_map_find_value(_inst.gmlpmap,"age"),gml_Script_s_rookie_age_internal(_inst,_other))){gmlage=yyfplus(gmlage,yyfplus(yyfplus(" ",__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Rookie")))," "));}else {if(yyfgreaterequal(ds_map_find_value(_inst.gmlpmap,"age"),gml_Script_s_get_max_age(_inst, _other,_inst.gmlpmap))){gmlage=yyfplus(gmlage,yyfplus(yyfplus(" (",__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Retiring"))),")"));};};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gmlage=gml_Script_s_college_age_label(_inst,_other,ds_map_find_value(_inst.gmlpmap,"age"));};};yyInst(_inst,_other,100443).gmltext=gmlage;_inst.gmlx_rookie=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100443).x),__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,yyInst(_inst,_other,100443).gmltext))); _inst.gmly_rookie=yyInst(_inst,_other,100443).y;if((yyGetBool(yyfgreater(ds_map_find_value(_inst.gmlpmap,"age"),gml_Script_s_rookie_age_internal(_inst,_other))))||(yyGetBool(gml_Script_s_is_co_mode(_inst,_other)))){_inst.gmly_rookie=(-999);};yyInst(_inst,_other,100433).gmltitle=gml_Script_s_get_string_position_full(_inst,_other,ds_map_find_value(_inst.gmlpmap,"position"));yyInst(_inst,_other,100436).gmltext=string_upper(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Condition")),": ")); _inst.gmlx_condition=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100436).x),__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,yyInst(_inst,_other,100436).gmltext)));_inst.gmly_condition=yyInst(_inst,_other,100436).y;_inst.gmltxt_condition=string_upper(gml_Script_s_get_string_condition(_inst,_other,ds_map_find_value(_inst.gmlpmap,"condition")));_inst.gmlshow_spr_condition=true;if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)){{_inst.gmltxt_condition=yyfplus(__yy_gml_errCheck(string(ds_map_find_value(_inst.gmlpmap, "condition"))),"%");if(yyGetBool(gml_Script_s_qb_mode_benched_status(_inst,_other))){_inst.gmltxt_condition=yyfplus(_inst.gmltxt_condition,yyfplus(" ",__yy_gml_errCheck(string_upper(gml_Script_s_str(_inst,_other,"ui_Benched")))));};};};if((yyGetBool(_inst.gmlis_draft_player))&&(yyGetBool(!yyGetBool(ds_map_find_value(_inst.gmlpmap,"scouted"))))){_inst.gmltxt_condition="?";};_inst.gmlcol_condition=16777215;_inst.gmli_condition=(-1);if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)){ {_inst.gmli_condition=gml_Script_s_get_condition_icon(_inst,_other,_inst.gmlpmap);_inst.gmlcol_condition=gml_Script_s_get_condition_colour(_inst,_other,ds_map_find_value(_inst.gmlpmap,"condition"),65280);};}else {{if(yyGetBool(ds_map_find_value(_inst.gmlpmap,"resting"))){{_inst.gmlcol_condition=global.gmlc_primary;_inst.gmli_condition=3;};}else {if(yyflessequal(ds_map_find_value(_inst.gmlpmap,"condition"),0)){{_inst.gmlcol_condition=255;_inst.gmli_condition=0;};}else {if(yyflessequal(ds_map_find_value(_inst.gmlpmap, "condition"),20)){{_inst.gmlcol_condition=4235519;_inst.gmli_condition=1;};}else {if(yyflessequal(ds_map_find_value(_inst.gmlpmap,"condition"),40)){{_inst.gmlcol_condition=65535;_inst.gmli_condition=2;};};};};};};};_inst.gmlx_condition2=yyfplus(__yy_gml_errCheck(_inst.gmlx_condition),__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,yyfplus(__yy_gml_errCheck(_inst.gmltxt_condition)," "))));var gmlcontract=yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst, _other,"ui_Contract")),": $"),__yy_gml_errCheck(string(ds_map_find_value(_inst.gmlpmap,"salary")))),"m ("),__yy_gml_errCheck(string(ds_map_find_value(_inst.gmlpmap,"contract")))),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"sla_Year"))),")");if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)){gmlcontract=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Contract")),": "),__yy_gml_errCheck(string(ds_map_find_value(_inst.gmlpmap,"contract")))),__yy_gml_errCheck(gml_Script_s_str(_inst, _other,"sla_Year")));};yyInst(_inst,_other,100435).gmltext=gmlcontract;yyInst(_inst,_other,100441).gmltext=string_upper(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Attitude")),": "),__yy_gml_errCheck(gml_Script_s_get_string_attitude(_inst,_other,ds_map_find_value(_inst.gmlpmap,"attitude")))));if((yyGetBool(_inst.gmlis_draft_player))&&(yyGetBool(yyfequal(ds_map_find_value(_inst.gmlpmap,"scouted"),0)))){yyInst(_inst,_other,100441).gmltext=string_upper(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst, _other,"ui_Attitude")),": ?"));};_inst.gmlx_attitude=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100441).x),__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100441).gmltext)," "))));_inst.gmly_attitude=yyInst(_inst,_other,100441).y;_inst.gmlshow_spr_attitude=true;yyInst(_inst,_other,100442).gmltext=gml_Script_s_str(_inst,_other,"ui_Rating");var gmlsw=yyfplus(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,yyInst(_inst,_other,100442).gmltext)), 8);_inst.gmlx_star_rating=yyInst(_inst,_other,100442).x;_inst.gmly_star_rating=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100442).y),12);_inst.gmlstar_rating=0;_inst.gmlshow_spr_star_rating_cb=true;yyInst(_inst,_other,100445).gmltext=gml_Script_s_str(_inst,_other,"ui_Potential");var gmlsw=yyfplus(__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,yyInst(_inst,_other,100445).gmltext)),8);_inst.gmlx_star_potential=yyInst(_inst,_other,100445).x;_inst.gmly_star_potential=yyfplus(__yy_gml_errCheck(yyInst(_inst, _other,100445).y),12);_inst.gmlstar_potential=0;_inst.gmlshow_spr_star_rating_cbn=true;var gmltval=1;if(!yyGetBool(gml_Script_s_is_staff(_inst,_other,ds_map_find_value(_inst.gmlpmap,"position")))){{_inst.gmlstar_rating=gml_Script_s_get_player_rating(_inst,_other,_inst.gmlpmap);_inst.gmlstar_potential=gml_Script_s_get_player_potential(_inst,_other,_inst.gmlpmap);if((yyGetBool(_inst.gmlis_draft_player))&&(yyGetBool(yyfequal(ds_map_find_value(_inst.gmlpmap,"scouted"),0)))){_inst.gmlstar_potential=0; };gmltval=gml_Script_s_get_trade_value(_inst,_other,_inst.gmlpmap);};};var gmltrade_value=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Value")),": "),__yy_gml_errCheck(gml_Script_s_get_string_trade_value(_inst,_other,gmltval)));yyInst(_inst,_other,100447).gmltext=gmltrade_value;yyInst(_inst,_other,100448).gmltext="";yyInst(_inst,_other,100448).gmltcolour=global.gmlc_primary;if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)){{yyInst(_inst,_other,100447).visible=false; yyInst(_inst,_other,100448).visible=false;};};_inst.gmlx_trade=0;_inst.gmly_trade=0;yyInst(_inst,_other,100403).visible=true;yyInst(_inst,_other,100402).visible=true;if(yyfgreater(ds_list_find_index(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltradelist,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile),(-1))){{if(yyfless(ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltradelist),2)){{yyInst(_inst,_other,100403).visible=false;yyInst(_inst,_other,100402).visible=false; };};var gmlpck=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"intrade_pick");yyInst(_inst,_other,100448).gmltext=string_upper(yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Cost")),": "),__yy_gml_errCheck(gml_Script_s_get_string_trade_value(_inst,_other,gmlpck)))," ("),__yy_gml_errCheck(gml_Script_s_get_string_picks(_inst,_other,true))),")"));_inst.gmlx_trade=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100448).x),__yy_gml_errCheck(gml_Script_string_hd_width(_inst, _other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100448).gmltext)," "))));_inst.gmly_trade=yyInst(_inst,_other,100448).y;};}else {if((yyGetBool(yyfgreater(ds_list_find_index(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile),(-1))))&&(yyGetBool(yyfgreater(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"outtrade_pick"),0)))){{if(yyfless(ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster), 2)){{yyInst(_inst,_other,100403).visible=false;yyInst(_inst,_other,100402).visible=false;};};var gmlpck=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"outtrade_pick");var gmlrem_txt=yyfplus(yyfplus(" (",__yy_gml_errCheck(gml_Script_s_get_string_picks(_inst,_other,true))),")");yyInst(_inst,_other,100448).gmltext=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Offer")),": "),__yy_gml_errCheck(gml_Script_s_get_string_trade_value(_inst,_other, gmlpck))),__yy_gml_errCheck(gmlrem_txt));_inst.gmlx_trade=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100448).x),__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100448).gmltext)," "))));_inst.gmly_trade=yyInst(_inst,_other,100448).y;};}else {if(yyfgreater(ds_list_find_index(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile),(-1))){{if(yyfless(ds_list_size(yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlroster),2)){{yyInst(_inst,_other,100403).visible=false;yyInst(_inst,_other,100402).visible=false;};};};};};};if(yyGetBool(gml_Script_s_is_staff(_inst,_other,ds_map_find_value(_inst.gmlpmap,"position")))){_inst.gmlx_trade=0;};yyInst(_inst,_other,100438).gmltitle=gml_Script_s_str(_inst,_other,"attribute_Catching");yyInst(_inst,_other,100439).gmltitle=gml_Script_s_str(_inst,_other,"attribute_Speed");yyInst(_inst,_other,100440).gmltitle=gml_Script_s_str(_inst,_other,"attribute_Strength"); yyInst(_inst,_other,100444).gmltitle=gml_Script_s_str(_inst,_other,"attribute_Stamina");var ___sw2172___=ds_map_find_value(_inst.gmlpmap,"position");var ___swc2173___=-1;if(yyCompareVal(___sw2172___,1,g_GMLMathEpsilon,false)==0){___swc2173___=0;}else if(yyCompareVal(___sw2172___,10,g_GMLMathEpsilon,false)==0){___swc2173___=1;}else if(yyCompareVal(___sw2172___,5,g_GMLMathEpsilon,false)==0){___swc2173___=2;}else if(yyCompareVal(___sw2172___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw2172___,7,g_GMLMathEpsilon, false)==0||yyCompareVal(___sw2172___,8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw2172___,9,g_GMLMathEpsilon,false)==0){___swc2173___=3;}switch(___swc2173___){case 0:{yyInst(_inst,_other,100438).gmltitle=gml_Script_s_str(_inst,_other,"attribute_ThrowAccuracy");yyInst(_inst,_other,100440).gmltitle=gml_Script_s_str(_inst,_other,"attribute_ArmStrength");yyInst(_inst,_other,100405).gmltext=gml_Script_s_str(_inst,_other,"attribute_Throwing");break;}case 1:{yyInst(_inst,_other,100438).gmltitle=gml_Script_s_str(_inst, _other,"attribute_KickAccuracy");yyInst(_inst,_other,100440).gmltitle=gml_Script_s_str(_inst,_other,"attribute_KickRange");yyInst(_inst,_other,100405).gmltext=gml_Script_s_str(_inst,_other,"attribute_Accuracy");yyInst(_inst,_other,100407).gmltext=gml_Script_s_str(_inst,_other,"attribute_Range");break;}case 2:{yyInst(_inst,_other,100438).gmltitle=gml_Script_s_str(_inst,_other,"attribute_Blocking");yyInst(_inst,_other,100405).gmltext=gml_Script_s_str(_inst,_other,"attribute_Blocking");break;}case 3:{ yyInst(_inst,_other,100438).gmltitle=gml_Script_s_str(_inst,_other,"attribute_Tackling");yyInst(_inst,_other,100405).gmltext=gml_Script_s_str(_inst,_other,"attribute_Tackling");break;}default :{break;}};yyInst(_inst,_other,100438).gmlpotential=yyftime(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"max_skill")),10);yyInst(_inst,_other,100438).gmlpercent=yyftime(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"skill")),10);yyInst(_inst,_other,100439).gmlpotential=yyftime(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap, "max_speed")),10);yyInst(_inst,_other,100439).gmlpercent=yyftime(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"speed")),10);yyInst(_inst,_other,100440).gmlpotential=yyftime(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"max_strength")),10);yyInst(_inst,_other,100440).gmlpercent=yyftime(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"strength")),10);yyInst(_inst,_other,100444).gmlpotential=yyftime(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"max_stamina")),10);yyInst(_inst,_other, 100444).gmlpercent=yyftime(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"stamina")),10);yyInst(_inst,_other,100405).gmlactive=true;yyInst(_inst,_other,100406).gmlactive=true;yyInst(_inst,_other,100407).gmlactive=true;yyInst(_inst,_other,100408).gmlactive=true;yyInst(_inst,_other,100410).visible=false;if(yyfgreaterequal(ds_map_find_value(_inst.gmlpmap,"skill"),ds_map_find_value(_inst.gmlpmap,"max_skill"))){yyInst(_inst,_other,100405).gmlactive=false;};if(yyfgreaterequal(ds_map_find_value(_inst.gmlpmap, "speed"),ds_map_find_value(_inst.gmlpmap,"max_speed"))){yyInst(_inst,_other,100406).gmlactive=false;};if(yyfgreaterequal(ds_map_find_value(_inst.gmlpmap,"strength"),ds_map_find_value(_inst.gmlpmap,"max_strength"))){yyInst(_inst,_other,100407).gmlactive=false;};if(yyfgreaterequal(ds_map_find_value(_inst.gmlpmap,"stamina"),ds_map_find_value(_inst.gmlpmap,"max_stamina"))){yyInst(_inst,_other,100408).gmlactive=false;};if(yyfless(ds_list_find_index(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster, _inst.gmlpmap),0)){{ds_map_set(_inst.gmlpmap,"xp_gain",0);ds_map_set(_inst.gmlpmap,"skill_points",0);};};_inst.gmllayer_back=layer_get_id("Buttons_Back");_inst.gmllayer_nav=layer_get_id("Buttons_Navigate");_inst.gmllayer_main=layer_get_id("Buttons_Main");_inst.gmllayer_main_QB=layer_get_id("Buttons_Main_QB");_inst.gmllayer_main_teammate=layer_get_id("Buttons_Main_Teammate");_inst.gmllayer_hoftag=layer_get_id("HOF_Tag");_inst.gmllayer_pick=layer_get_id("Buttons_Pick");_inst.gmllayer_xp=layer_get_id("Buttons_XP"); _inst.gmllayer_xp_cont=layer_get_id("Buttons_XP_Continue");layer_set_visible(_inst.gmllayer_back,true);layer_set_visible(_inst.gmllayer_nav,true);layer_set_visible(_inst.gmllayer_main,false);layer_set_visible(_inst.gmllayer_main_QB,false);layer_set_visible(_inst.gmllayer_main_teammate,false);layer_set_visible(_inst.gmllayer_hoftag,false);layer_set_visible(_inst.gmllayer_pick,false);layer_set_visible(_inst.gmllayer_xp,false);layer_set_visible(_inst.gmllayer_xp_cont,false);if(yyfgreater(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlintro,0)){{layer_set_visible(_inst.gmllayer_main,true);yyInst(_inst,_other,100428).gmlactive=false;yyInst(_inst,_other,100427).gmlactive=false;yyInst(_inst,_other,100426).gmlactive=false;yyInst(_inst,_other,100425).gmlactive=false;if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gml_Script_rm_player_profile_college_create(_inst,_other);};};gml_Script_s_check_intro(_inst,_other);return;};}else {if(yyfgreater(ds_map_find_value(_inst.gmlpmap,"xp_gain"),0)){{layer_set_visible(_inst.gmllayer_back, false);layer_set_visible(_inst.gmllayer_nav,false);};}else {if(yyfgreater(ds_map_find_value(_inst.gmlpmap,"skill_points"),0)){{gml_Script_slog(_inst,_other,yyfplus("Skill points = ",__yy_gml_errCheck(string(ds_map_find_value(_inst.gmlpmap,"skill_points")))));layer_set_visible(_inst.gmllayer_back,false);layer_set_visible(_inst.gmllayer_nav,false);layer_set_visible(_inst.gmllayer_xp,true);if((yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode))&&(yyGetBool(yyfnotequal(_inst.gmlpmap,gml_Script_s_get_qb_pmap(_inst, _other))))){gml_Script_s_qb_mode_auto_xp(_inst,_other,yyInst(_inst,_other,100405).gmlactive,yyInst(_inst,_other,100406).gmlactive,yyInst(_inst,_other,100407).gmlactive,yyInst(_inst,_other,100408).gmlactive);}else {{if(yyGetBool(yyInst(_inst,_other,100405).gmlactive)){yyInst(_inst,_other,100438).gmlflash=true;};if(yyGetBool(yyInst(_inst,_other,100406).gmlactive)){yyInst(_inst,_other,100439).gmlflash=true;};if(yyGetBool(yyInst(_inst,_other,100407).gmlactive)){yyInst(_inst,_other,100440).gmlflash=true; };if(yyGetBool(yyInst(_inst,_other,100408).gmlactive)){yyInst(_inst,_other,100444).gmlflash=true;};};};if((yyGetBool(!yyGetBool(yyInst(_inst,_other,100405).gmlactive)))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,100406).gmlactive)))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,100407).gmlactive)))&&(yyGetBool(!yyGetBool(yyInst(_inst,_other,100408).gmlactive)))){{layer_set_visible(_inst.gmllayer_xp,false);layer_set_visible(_inst.gmllayer_xp_cont,true);};};};}else {if(yyfgreaterequal(ds_list_find_index(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlroster,_inst.gmlpmap),0)){{if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)){{if(yyfequal(ds_map_find_value(_inst.gmlpmap,"position"),1)){layer_set_visible(_inst.gmllayer_main_QB,true);}else {layer_set_visible(_inst.gmllayer_main_teammate,true);};};}else {{layer_set_visible(_inst.gmllayer_main,true);layer_set_visible(_inst.gmllayer_hoftag,true);yyInst(_inst,_other,100413).gmlselected=false;yyInst(_inst,_other,100414).gmlselected=false;if(yyGetBool(ds_map_exists(_inst.gmlpmap, "hof"))){yyInst(_inst,_other,100413).gmlselected=ds_map_find_value(_inst.gmlpmap,"hof");};if(yyGetBool(ds_map_exists(_inst.gmlpmap,"kr"))){yyInst(_inst,_other,100414).gmlselected=ds_map_find_value(_inst.gmlpmap,"kr");};yyInst(_inst,_other,100411).visible=false;if(yyGetBool(gml_Script_s_attribute_buff(_inst,_other,_inst.gmlpmap,"skill"))){yyInst(_inst,_other,100438).gmlbuff=1;};if(yyGetBool(gml_Script_s_attribute_buff(_inst,_other,_inst.gmlpmap,"speed"))){yyInst(_inst,_other,100439).gmlbuff=1;};if(yyGetBool(gml_Script_s_attribute_buff(_inst, _other,_inst.gmlpmap,"strength"))){yyInst(_inst,_other,100440).gmlbuff=1;};if(yyGetBool(gml_Script_s_attribute_buff(_inst,_other,_inst.gmlpmap,"stamina"))){yyInst(_inst,_other,100444).gmlbuff=1;};yyInst(_inst,_other,100438).gmlcol_buff=65535;yyInst(_inst,_other,100439).gmlcol_buff=65280;yyInst(_inst,_other,100440).gmlcol_buff=255;yyInst(_inst,_other,100444).gmlcol_buff=global.gmlc_toxic;};};};}else {{layer_set_visible(_inst.gmllayer_pick,true);if(yyfgreaterequal(ds_list_find_index(yyInst(_inst,_other, YYASSET_REF(0x00000062)).gmlfreeagentlist,_inst.gmlpmap),0)){yyInst(_inst,_other,100410).visible=true;};if(yyfgreaterequal(ds_list_find_index(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltradelist,_inst.gmlpmap),0)){yyInst(_inst,_other,100410).visible=true;};yyInst(_inst,_other,100411).visible=false;yyInst(_inst,_other,100412).visible=false;if(yyfgreater(ds_map_find_value(_inst.gmlpmap,"career_games"),0)){{layer_set_visible(_inst.gmllayer_hoftag,true);yyInst(_inst,_other,100413).gmlselected=false; yyInst(_inst,_other,100414).gmlselected=false;if(yyGetBool(ds_map_exists(_inst.gmlpmap,"hof"))){yyInst(_inst,_other,100413).gmlselected=ds_map_find_value(_inst.gmlpmap,"hof");};if(yyGetBool(ds_map_exists(_inst.gmlpmap,"kr"))){yyInst(_inst,_other,100414).gmlselected=ds_map_find_value(_inst.gmlpmap,"kr");};yyInst(_inst,_other,100412).visible=true;};}else {if(yyfgreaterequal(ds_list_find_index(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraftlist,_inst.gmlpmap),0)){{yyInst(_inst,_other,100411).visible=true; if(yyfgreater(ds_map_find_value(_inst.gmlpmap,"scouted"),0)){yyInst(_inst,_other,100411).visible=false;};if(yyGetBool(yyInst(_inst,_other,100411).visible)){{yyInst(_inst,_other,100438).gmlpotential=yyftime(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"skill")),10);yyInst(_inst,_other,100439).gmlpotential=yyftime(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"speed")),10);yyInst(_inst,_other,100440).gmlpotential=yyftime(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"strength")),10);yyInst(_inst, _other,100444).gmlpotential=yyftime(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"stamina")),10);if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlinterviews,0)){yyInst(_inst,_other,100411).gmltext=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"btn_ScoutPlayer"))," ("),__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlinterviews))),")");}else {yyInst(_inst,_other,100411).gmlactive=false;};};};if(yyGetBool(gml_Script_s_is_co_mode(_inst, _other))){{if(yyGetBool(yyInst(_inst,_other,100411).visible)){{if(yyfgreater(string(ds_map_find_value(_inst.gmlpmap,"rc_cost")),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrecruitment_credits)){{yyInst(_inst,_other,100411).visible=false;};};};};};};};};};};};};};};_inst.gmltarget=yyftime(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"xp_level")),100);_inst.gmlprc=yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"xp")),__yy_gml_errCheck(_inst.gmltarget))), 100);yyInst(_inst,_other,100446).gmltitle=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_XPLevel"))," "),__yy_gml_errCheck(string(ds_map_find_value(_inst.gmlpmap,"xp_level"))));yyInst(_inst,_other,100446).gmlpercent=_inst.gmlprc;if(yyfless(ds_map_find_value(_inst.gmlpmap,"condition"),0)){{yyInst(_inst,_other,100428).gmlactive=false;};}else {{var ___sw2174___=ds_map_find_value(_inst.gmlpmap,"resting");var ___swc2175___=-1;if(yyCompareVal(___sw2174___,0,g_GMLMathEpsilon,false)==0){ ___swc2175___=0;}else if(yyCompareVal(___sw2174___,1,g_GMLMathEpsilon,false)==0){___swc2175___=1;}switch(___swc2175___){case 0:{yyInst(_inst,_other,100428).gmltext=gml_Script_s_str(_inst,_other,"ui_Bench");yyInst(_inst,_other,100428).gmlcolour=global.gmlc_background;break;}case 1:{yyInst(_inst,_other,100428).gmltext=gml_Script_s_str(_inst,_other,"ui_Benched");yyInst(_inst,_other,100428).gmlcolour=global.gmlc_primary;break;}};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{if(yyGetBool(ds_map_find_value(_inst.gmlpmap, "suspended"))){{yyInst(_inst,_other,100428).gmltext=gml_Script_s_str(_inst,_other,"ui_Suspended");yyInst(_inst,_other,100428).gmlcolour=global.gmlc_primary;};};};};};};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{var gmlviewOnly=false;if(yyGetBool(gml_Script_s_doing_college_draft(_inst,_other))){{gmlviewOnly=true;};};if((yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlprofile_back_to,1)))||(yyGetBool(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlprofile_back_to, 2)))){{gmlviewOnly=true;};};if(yyGetBool(gmlviewOnly)){{yyInst(_inst,_other,100429).visible=false;yyInst(_inst,_other,100428).visible=false;yyInst(_inst,_other,100403).visible=false;yyInst(_inst,_other,100402).visible=false;yyInst(_inst,_other,100426).visible=false;yyInst(_inst,_other,100425).visible=false;};};if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_admissions_draft_round,0)){{if(yyfequal(ds_map_find_value(_inst.gmlpmap,"age"),gml_Script_s_rookie_age_internal(_inst, _other))){{yyInst(_inst,_other,100425).visible=false;};}else {{yyInst(_inst,_other,100425).visible=true;};};};};yyInst(_inst,_other,100425).gmlonClickAction=kgml_Script_btn_click_Profile_College_Cut;yyInst(_inst,_other,100425).gmltext=gml_Script_s_str(_inst,_other,"ui_Cut");if(yyfgreater(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcollege_admissions_draft_round,0)){{yyInst(_inst,_other,100425).gmlonClickAction=kgml_Script_btn_click_Profile_College_Cut_During_Admission_Draft;yyInst(_inst,_other, 100425).gmltext=gml_Script_s_str(_inst,_other,"ui_AdmissCutForRC");};};};};gml_Script_s_position_edit_name_btn(_inst,_other);if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gml_Script_rm_player_profile_college_create(_inst,_other);};};if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)){gml_Script_s_player_profile_qb_mode(_inst,_other);};gml_Script_s_find_default_button(_inst,_other,true);if(yyGetBool(global.gmlexhibition)){{gml_Script_rm_player_profile_exhibition_create(_inst, _other);};};}function gml_Object_obj_playerprofile_rm_Step_0(_inst,_other){yyInst(_inst,_other,100451).gmltext=gml_Script_s_get_credit(_inst,_other);if(!yyGetBool(ds_exists(_inst.gmlpmap,1))){return;};if(yyGetBool(is_undefined(ds_map_find_value(_inst.gmlpmap,"xp_gain")))){return;};draw_set_font(global.gmlfnt_small_flex);draw_set_halign(0);draw_set_valign(1);yyInst(_inst,_other,100441).gmltext=string_upper(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Attitude")),": "),__yy_gml_errCheck(gml_Script_s_get_string_attitude(_inst, _other,ds_map_find_value(_inst.gmlpmap,"attitude")))));_inst.gmlx_attitude=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100441).x),__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100441).gmltext)," "))));_inst.gmly_attitude=yyInst(_inst,_other,100441).y;if((yyGetBool(_inst.gmlis_draft_player))&&(yyGetBool(yyfequal(ds_map_find_value(_inst.gmlpmap,"scouted"),0)))){{yyInst(_inst,_other,100441).gmltext=string_upper(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst, _other,"ui_Attitude")),": ?"));_inst.gmly_attitude=(-99999);};};if(yyfgreater(real(ds_map_find_value(_inst.gmlpmap,"xp_gain")),0)){{ds_map_set(_inst.gmlpmap,"xp_gain",yyfminus(__yy_gml_errCheck(real(ds_map_find_value(_inst.gmlpmap,"xp_gain"))),1));ds_map_set(_inst.gmlpmap,"xp",yyfplus(__yy_gml_errCheck(real(ds_map_find_value(_inst.gmlpmap,"xp"))),1));if(yyfgreaterequal(ds_map_find_value(_inst.gmlpmap,"xp"),_inst.gmltarget)){{ds_map_set(_inst.gmlpmap,"xp",1);ds_map_set(_inst.gmlpmap,"xp_level",yyfplus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap, "xp_level")),1));ds_map_set(_inst.gmlpmap,"attitude",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"attitude")),10),1,100));if(yyfless(ds_map_find_value(_inst.gmlpmap,"xp_gain"),1)){ds_map_set(_inst.gmlpmap,"xp_gain",1);};if(!yyGetBool(gml_Script_s_player_at_max_potential(_inst,_other,_inst.gmlpmap))){{ds_map_set(_inst.gmlpmap,"skill_points",yyfplus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"skill_points")),1));room_goto(YYASSET_REF(0x03000016));};}else {{var gmlcx=yyfplus(__yy_gml_errCheck(yyInst(_inst, _other,100446).x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,100446).sprite_width),0.9)));var gmlcy=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100446).y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,100446).sprite_height),0.5)));gml_Script_s_create_credit(_inst,_other,gmlcx,gmlcy,yyInst(_inst,_other,100451).x,yyInst(_inst,_other,100451).y,1,1,(-4),true);gml_Script_s_find_default_button(_inst,_other,true);};};return;};};_inst.gmlprc=yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap, "xp")),__yy_gml_errCheck(_inst.gmltarget))),100);yyInst(_inst,_other,100446).gmltitle=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_XPLevel"))," "),__yy_gml_errCheck(string(ds_map_find_value(_inst.gmlpmap,"xp_level"))));yyInst(_inst,_other,100446).gmlpercent=_inst.gmlprc;if(yyfless(ds_map_find_value(_inst.gmlpmap,"xp_gain"),1)){{ds_map_set(_inst.gmlpmap,"xp_gain",0);if(yyfgreater(ds_map_find_value(_inst.gmlpmap,"skill_points"),0)){{room_goto(YYASSET_REF(0x03000016));return; };};layer_set_visible(_inst.gmllayer_back,false);layer_set_visible(_inst.gmllayer_main,false);layer_set_visible(_inst.gmllayer_pick,false);layer_set_visible(_inst.gmllayer_xp,false);layer_set_visible(_inst.gmllayer_xp_cont,true);};};};};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{gml_Script_rm_player_profile_college_step(_inst,_other);};};}function gml_Object_obj_playerprofile_rm_Draw_64(_inst,_other){if(!yyGetBool(ds_exists(_inst.gmlpmap,1))){return;};draw_set_font(global.gmlfnt_small_flex); draw_set_halign(0);draw_set_valign(1);var gmlcol=(yyfequal(global.gmlc_primary,0)?16777215:global.gmlc_primary);if(yyGetBool(_inst.gmlshow_spr_star_rating_cb)){draw_sprite_ext(_inst,YYASSET_REF(0x01000076),_inst.gmlstar_rating,_inst.gmlx_star_rating,_inst.gmly_star_rating,1,1,0,gmlcol,1);};if(yyGetBool(_inst.gmlshow_spr_star_rating_cbn)){draw_sprite_ext(_inst,YYASSET_REF(0x01000077),_inst.gmlstar_potential,_inst.gmlx_star_potential,_inst.gmly_star_potential,1,1,0,16777215,1);};if(yyGetBool(_inst.gmlshow_spr_attitude)){ draw_sprite_ext(_inst,YYASSET_REF(0x0100006B),gml_Script_s_get_attitude_icon(_inst,_other,ds_map_find_value(_inst.gmlpmap,"attitude")),_inst.gmlx_attitude,_inst.gmly_attitude,1,1,0,16777215,1);};draw_sprite(_inst,YYASSET_REF(0x0100006E),0,_inst.gmlx_rookie,_inst.gmly_rookie);if(yyfgreater(_inst.gmlx_trade,0)){draw_sprite_ext(_inst,YYASSET_REF(0x0100006C),0,_inst.gmlx_trade,_inst.gmly_trade,1,1,0,16777215,yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()), 160))),1)),2));};if(yyGetBool(_inst.gmlshow_spr_condition)){{if(yyfgreater(_inst.gmli_condition,(-1))){{gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(_inst.gmlx_condition),1),yyfplus(__yy_gml_errCheck(_inst.gmly_condition),1),_inst.gmltxt_condition,0,0,0,0,1);gml_Script_draw_hd_text_color(_inst,_other,_inst.gmlx_condition,_inst.gmly_condition,_inst.gmltxt_condition,_inst.gmlcol_condition,_inst.gmlcol_condition,_inst.gmlcol_condition,_inst.gmlcol_condition,1);draw_sprite(_inst, YYASSET_REF(0x0100006F),_inst.gmli_condition,_inst.gmlx_condition2,_inst.gmly_condition);};}else {{gml_Script_draw_hd_text_color(_inst,_other,_inst.gmlx_condition,_inst.gmly_condition,_inst.gmltxt_condition,_inst.gmlcol_condition,_inst.gmlcol_condition,_inst.gmlcol_condition,_inst.gmlcol_condition,1);};};};};}function gml_Object_obj_playerprofile_rm_KeyPress_88(_inst,_other){{var __yy__v2404=GetWithArray(YYASSET_REF(0x00000048));for(var __yy__v2405 in __yy__v2404){if(!__yy__v2404.hasOwnProperty(__yy__v2405))continue; var __yy__v2406=__yy__v2404[__yy__v2405];return;}};if(yyGetBool(global.gmldebug)){{ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"xp_gain",yyfminus(yyfminus(__yy_gml_errCheck(_inst.gmltarget),__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"xp"))),0.5));};};}function gml_Object_obj_playerprofile_rm_KeyPress_73(_inst,_other){{var __yy__v2407=GetWithArray(YYASSET_REF(0x00000048));for(var __yy__v2408 in __yy__v2407){if(!__yy__v2407.hasOwnProperty(__yy__v2408))continue; var __yy__v2409=__yy__v2407[__yy__v2408];return;}};if(yyGetBool(global.gmldebug)){{ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"condition",(-5));};};}function gml_Object_obj_playerprofile_rm_KeyPress_77(_inst,_other){{var __yy__v2410=GetWithArray(YYASSET_REF(0x00000048));for(var __yy__v2411 in __yy__v2410){if(!__yy__v2410.hasOwnProperty(__yy__v2411))continue;var __yy__v2412=__yy__v2410[__yy__v2411];return;}};if(yyGetBool(global.gmldebug)){{if(yyGetBool(ds_map_exists(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlplayer_profile,"mvp"))){ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"mvp",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"mvp")),1));}else {ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"mvp",1);};};};}function gml_Object_obj_playerprofile_rm_KeyPress_68(_inst,_other){{var __yy__v2413=GetWithArray(YYASSET_REF(0x00000048));for(var __yy__v2414 in __yy__v2413){ if(!__yy__v2413.hasOwnProperty(__yy__v2414))continue;var __yy__v2415=__yy__v2413[__yy__v2414];return;}};if(yyGetBool(global.gmldebug)){{if(yyGetBool(ds_map_exists(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"dpoy"))){ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"dpoy",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"dpoy")),1));}else {ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile, "dpoy",1);};};};}function gml_Object_obj_playerprofile_rm_KeyPress_79(_inst,_other){{var __yy__v2416=GetWithArray(YYASSET_REF(0x00000048));for(var __yy__v2417 in __yy__v2416){if(!__yy__v2416.hasOwnProperty(__yy__v2417))continue;var __yy__v2418=__yy__v2416[__yy__v2417];return;}};if(yyGetBool(global.gmldebug)){{if(yyGetBool(ds_map_exists(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"opoy"))){ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"opoy",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlplayer_profile,"opoy")),1));}else {ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"opoy",1);};};};}function gml_Object_obj_playerprofile_rm_KeyPress_82(_inst,_other){{var __yy__v2419=GetWithArray(YYASSET_REF(0x00000048));for(var __yy__v2420 in __yy__v2419){if(!__yy__v2419.hasOwnProperty(__yy__v2420))continue;var __yy__v2421=__yy__v2419[__yy__v2420];return;}};if(yyGetBool(global.gmldebug)){{if(yyGetBool(ds_map_exists(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile, "roty"))){ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"roty",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"roty")),1));}else {ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"roty",1);};};};}function gml_Object_obj_playerprofile_rm_KeyPress_90(_inst,_other){{var __yy__v2422=GetWithArray(YYASSET_REF(0x00000048));for(var __yy__v2423 in __yy__v2422){if(!__yy__v2422.hasOwnProperty(__yy__v2423))continue; var __yy__v2424=__yy__v2422[__yy__v2423];return;}};if(yyGetBool(global.gmldebug)){{if(yyGetBool(ds_map_exists(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"rings"))){ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"rings",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"rings")),1));}else {ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"rings",1);};};};}function gml_Object_obj_stats_player_Create_0(_inst, _other){_inst.gmllines=ds_list_create();_inst.gmlpmap=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile;if(yyfequal(_inst.gmlpmap,(-4))){return;};yyInst(_inst,_other,100518).visible=false;if((yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlviewing_hof_players))||(yyGetBool(yyfgreater(ds_list_find_index(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlfreeagentlist,_inst.gmlpmap),(-1))))){{yyInst(_inst,_other,100516).visible=false;yyInst(_inst,_other,100517).visible=false;yyInst(_inst, _other,100518).visible=true;yyInst(_inst,_other,100518).gmlselected=false;if(yyGetBool(ds_map_exists(_inst.gmlpmap,"hof"))){yyInst(_inst,_other,100518).gmlselected=ds_map_find_value(_inst.gmlpmap,"hof");};};};var gmlrings=0;var gmlmvp=0;var gmlopoy=0;var gmldpoy=0;var gmlroty=0;var gmlrbmvp=0;if(yyGetBool(ds_map_exists(_inst.gmlpmap,"rings"))){gmlrings=ds_map_find_value(_inst.gmlpmap,"rings");};if(yyGetBool(ds_map_exists(_inst.gmlpmap,"mvp"))){gmlmvp=ds_map_find_value(_inst.gmlpmap,"mvp");};if(yyGetBool(ds_map_exists(_inst.gmlpmap, "opoy"))){gmlopoy=ds_map_find_value(_inst.gmlpmap,"opoy");};if(yyGetBool(ds_map_exists(_inst.gmlpmap,"dpoy"))){gmldpoy=ds_map_find_value(_inst.gmlpmap,"dpoy");};if(yyGetBool(ds_map_exists(_inst.gmlpmap,"roty"))){gmlroty=ds_map_find_value(_inst.gmlpmap,"roty");};if(yyGetBool(ds_map_exists(_inst.gmlpmap,"rbmvp"))){gmlrbmvp=ds_map_find_value(_inst.gmlpmap,"rbmvp");};yyInst(_inst,_other,100528).gmltext=string(gmlrings);yyInst(_inst,_other,100519).gmltext=string(gmlmvp);yyInst(_inst,_other,100520).gmltext=string(gmlopoy); yyInst(_inst,_other,100521).gmltext=string(gmldpoy);yyInst(_inst,_other,100522).gmltext=string(gmlroty);yyInst(_inst,_other,100529).gmltext=string(gmlrbmvp);var gmlvrs="";var gmlfix=gml_Script_s_get_human_fixture_previous(_inst,_other);if(yyGetBool(gmlfix)){{if(yyfequal(ds_map_find_value(gmlfix,"away_team"),yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id)){gmlvrs=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_At"))," "),__yy_gml_errCheck(gml_Script_s_get_team_name_by_id(_inst, _other,ds_map_find_value(gmlfix,"home_team"))));}else {gmlvrs=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"tla_Versus"))," "),__yy_gml_errCheck(gml_Script_s_get_team_name_by_id(_inst,_other,ds_map_find_value(gmlfix,"away_team"))));};};};var gmlpos=ds_map_find_value(_inst.gmlpmap,"position");yyInst(_inst,_other,100513).gmltext=yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_get_string_position(_inst,_other,gmlpos))," - "),__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap, "fname")))," "),__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"lname")));var gmlgms="";var gmlatt=string(ds_map_find_value(_inst.gmlpmap,"stat_attempts"));var gmlcmp=string(ds_map_find_value(_inst.gmlpmap,"stat_complete"));var gmlyds=string(round(ds_map_find_value(_inst.gmlpmap,"stat_yards")));var gmlavg=gml_Script_s_get_string_float(_inst,_other,gml_Script_s_get_average_yards(_inst,_other,_inst.gmlpmap,0,false),1);var gmllng=string(round(ds_map_find_value(_inst.gmlpmap,"stat_longest")));var gmltds=string(ds_map_find_value(_inst.gmlpmap, "stat_touchdowns"));var gmlfum=string(ds_map_find_value(_inst.gmlpmap,"stat_fumbles"));var gmltck=string(ds_map_find_value(_inst.gmlpmap,"stat_tackles"));var gmlint=string(ds_map_find_value(_inst.gmlpmap,"stat_int"));var gmlsck=string(ds_map_find_value(_inst.gmlpmap,"stat_sacks"));if((yyGetBool(yyfequal(gmlpos,1)))&&(yyGetBool(yyfgreater(ds_map_find_value(_inst.gmlpmap,"stat_attempts"),0)))){gmlcmp=yyfplus(gmlcmp,yyfplus(yyfplus(" (",__yy_gml_errCheck(string(round(yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap, "stat_complete")),__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"stat_attempts")))),100))))),"%)"));};var gmlr_att=string(ds_map_find_value(_inst.gmlpmap,"stat_rush_attempts"));var gmlr_yds=string(round(ds_map_find_value(_inst.gmlpmap,"stat_rush_yards")));var gmlr_avg=gml_Script_s_get_string_float(_inst,_other,gml_Script_s_get_average_yards(_inst,_other,_inst.gmlpmap,0,true),1);var gmlr_lng=string(round(ds_map_find_value(_inst.gmlpmap,"stat_rush_longest")));var gmlr_tds=string(ds_map_find_value(_inst.gmlpmap, "stat_rush_touchdowns"));var gmlret_yds=0;var gmlret_tds=0;var gmlret_lng=0;var gmlret_att=0;if(yyGetBool(ds_map_exists(_inst.gmlpmap,"stat_return_attempts"))){{gmlret_yds=string(round(ds_map_find_value(_inst.gmlpmap,"stat_return_yards")));gmlret_tds=string(round(ds_map_find_value(_inst.gmlpmap,"stat_return_tds")));gmlret_lng=string(round(ds_map_find_value(_inst.gmlpmap,"stat_return_longest")));gmlret_att=ds_map_find_value(_inst.gmlpmap,"stat_return_attempts");};};var gmlatt_xp=0;var gmlcmp_xp=0;if(yyGetBool(ds_map_exists(_inst.gmlpmap, "stat_attempts_XP"))){{gmlatt_xp=string(round(ds_map_find_value(_inst.gmlpmap,"stat_attempts_XP")));gmlcmp_xp=string(round(ds_map_find_value(_inst.gmlpmap,"stat_complete_XP")));};};var ___sw2184___=_inst.gmlstat_type;var ___swc2185___=-1;if(yyCompareVal(___sw2184___,1,g_GMLMathEpsilon,false)==0){___swc2185___=0;}else if(yyCompareVal(___sw2184___,2,g_GMLMathEpsilon,false)==0){___swc2185___=1;}switch(___swc2185___){case 0:{gmlvrs="";gmlgms=string(ds_map_find_value(_inst.gmlpmap,"season_games"));gmlatt=string(ds_map_find_value(_inst.gmlpmap, "season_attempts"));gmlcmp=string(ds_map_find_value(_inst.gmlpmap,"season_complete"));gmlyds=string(round(ds_map_find_value(_inst.gmlpmap,"season_yards")));gmlavg=gml_Script_s_get_string_float(_inst,_other,gml_Script_s_get_average_yards(_inst,_other,_inst.gmlpmap,1,false),1);gmllng=string(round(ds_map_find_value(_inst.gmlpmap,"season_longest")));gmltds=string(ds_map_find_value(_inst.gmlpmap,"season_touchdowns"));gmlfum=string(ds_map_find_value(_inst.gmlpmap,"season_fumbles"));gmltck=string(ds_map_find_value(_inst.gmlpmap, "season_tackles"));gmlint=string(ds_map_find_value(_inst.gmlpmap,"season_int"));gmlsck=string(ds_map_find_value(_inst.gmlpmap,"season_sacks"));if((yyGetBool((yyGetBool(yyfequal(gmlpos,1)))||(yyGetBool(yyfequal(gmlpos,10)))))&&(yyGetBool(yyfgreater(ds_map_find_value(_inst.gmlpmap,"season_attempts"),0)))){gmlcmp=yyfplus(gmlcmp,yyfplus(yyfplus(" (",__yy_gml_errCheck(string(round(yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"season_complete")),__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap, "season_attempts")))),100))))),"%)"));};gmlr_att=string(ds_map_find_value(_inst.gmlpmap,"season_rush_attempts"));gmlr_yds=string(round(ds_map_find_value(_inst.gmlpmap,"season_rush_yards")));gmlr_avg=gml_Script_s_get_string_float(_inst,_other,gml_Script_s_get_average_yards(_inst,_other,_inst.gmlpmap,1,true),1);gmlr_lng=string(round(ds_map_find_value(_inst.gmlpmap,"season_rush_longest")));gmlr_tds=string(ds_map_find_value(_inst.gmlpmap,"season_rush_touchdowns"));if(yyGetBool(ds_map_exists(_inst.gmlpmap, "season_return_attempts"))){{gmlret_yds=string(round(ds_map_find_value(_inst.gmlpmap,"season_return_yards")));gmlret_tds=string(round(ds_map_find_value(_inst.gmlpmap,"season_return_tds")));gmlret_lng=string(round(ds_map_find_value(_inst.gmlpmap,"season_return_longest")));gmlret_att=ds_map_find_value(_inst.gmlpmap,"season_return_attempts");};};if(yyGetBool(ds_map_exists(_inst.gmlpmap,"season_attempts_XP"))){{gmlatt_xp=string(round(ds_map_find_value(_inst.gmlpmap,"season_attempts_XP")));gmlcmp_xp=string(round(ds_map_find_value(_inst.gmlpmap, "season_complete_XP")));if(yyfgreater(ds_map_find_value(_inst.gmlpmap,"season_attempts_XP"),0)){gmlcmp_xp=yyfplus(gmlcmp_xp,yyfplus(yyfplus(" (",__yy_gml_errCheck(string(round(yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"season_complete_XP")),__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"season_attempts_XP")))),100))))),"%)"));};};};break;}case 1:{gmlvrs="";gmlgms=string(ds_map_find_value(_inst.gmlpmap,"career_games"));gmlatt=string(ds_map_find_value(_inst.gmlpmap, "career_attempts"));gmlcmp=string(ds_map_find_value(_inst.gmlpmap,"career_complete"));gmlyds=string(round(ds_map_find_value(_inst.gmlpmap,"career_yards")));gmlavg=gml_Script_s_get_string_float(_inst,_other,gml_Script_s_get_average_yards(_inst,_other,_inst.gmlpmap,2,false),1);gmllng=string(round(ds_map_find_value(_inst.gmlpmap,"career_longest")));gmltds=string(ds_map_find_value(_inst.gmlpmap,"career_touchdowns"));gmlfum=string(ds_map_find_value(_inst.gmlpmap,"career_fumbles"));gmltck=string(ds_map_find_value(_inst.gmlpmap, "career_tackles"));gmlint=string(ds_map_find_value(_inst.gmlpmap,"career_int"));gmlsck=string(ds_map_find_value(_inst.gmlpmap,"career_sacks"));if((yyGetBool((yyGetBool(yyfequal(gmlpos,1)))||(yyGetBool(yyfequal(gmlpos,10)))))&&(yyGetBool(yyfgreater(ds_map_find_value(_inst.gmlpmap,"career_attempts"),0)))){gmlcmp=yyfplus(gmlcmp,yyfplus(yyfplus(" (",__yy_gml_errCheck(string(round(yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"career_complete")),__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap, "career_attempts")))),100))))),"%)"));};gmlr_att=string(ds_map_find_value(_inst.gmlpmap,"career_rush_attempts"));gmlr_yds=string(round(ds_map_find_value(_inst.gmlpmap,"career_rush_yards")));gmlr_avg=gml_Script_s_get_string_float(_inst,_other,gml_Script_s_get_average_yards(_inst,_other,_inst.gmlpmap,2,true),1);gmlr_lng=string(round(ds_map_find_value(_inst.gmlpmap,"career_rush_longest")));gmlr_tds=string(ds_map_find_value(_inst.gmlpmap,"career_rush_touchdowns"));if(yyGetBool(ds_map_exists(_inst.gmlpmap, "career_return_attempts"))){{gmlret_yds=string(round(ds_map_find_value(_inst.gmlpmap,"career_return_yards")));gmlret_tds=string(round(ds_map_find_value(_inst.gmlpmap,"career_return_tds")));gmlret_lng=string(round(ds_map_find_value(_inst.gmlpmap,"career_return_longest")));gmlret_att=ds_map_find_value(_inst.gmlpmap,"career_return_attempts");};};if(yyGetBool(ds_map_exists(_inst.gmlpmap,"career_attempts_XP"))){{gmlatt_xp=string(round(ds_map_find_value(_inst.gmlpmap,"career_attempts_XP")));gmlcmp_xp=string(round(ds_map_find_value(_inst.gmlpmap, "career_complete_XP")));if(yyfgreater(ds_map_find_value(_inst.gmlpmap,"career_attempts_XP"),0)){gmlcmp_xp=yyfplus(gmlcmp_xp,yyfplus(yyfplus(" (",__yy_gml_errCheck(string(round(yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"career_complete_XP")),__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"career_attempts_XP")))),100))))),"%)"));};};};break;}};var ___sw2186___=gmlpos;var ___swc2187___=-1;if(yyCompareVal(___sw2186___,1,g_GMLMathEpsilon,false)==0){___swc2187___=0; }else if(yyCompareVal(___sw2186___,2,g_GMLMathEpsilon,false)==0){___swc2187___=1;}else if(yyCompareVal(___sw2186___,3,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw2186___,4,g_GMLMathEpsilon,false)==0){___swc2187___=2;}else if(yyCompareVal(___sw2186___,10,g_GMLMathEpsilon,false)==0){___swc2187___=3;}else if(yyCompareVal(___sw2186___,5,g_GMLMathEpsilon,false)==0){___swc2187___=4;}else if(yyCompareVal(___sw2186___,6,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw2186___,7,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw2186___, 8,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw2186___,9,g_GMLMathEpsilon,false)==0){___swc2187___=5;}switch(___swc2187___){case 0:{var ___sw2188___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstat_view;var ___swc2189___=-1;if(yyCompareVal(___sw2188___,1,g_GMLMathEpsilon,false)==0){___swc2189___=0;}else if(yyCompareVal(___sw2188___,2,g_GMLMathEpsilon,false)==0){___swc2189___=1;}switch(___swc2189___){case 0:{ds_list_add(_inst.gmllines,yyfplus("shad_",__yy_gml_errCheck(gml_Script_s_str(_inst,_other, "ui_Passing"))));if(yyfnotequal(gmlvrs,"")){ds_list_add(_inst.gmllines,gmlvrs);};if(yyfnotequal(gmlgms,"")){ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_games")),": "),__yy_gml_errCheck(gmlgms)));};ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_attempts")),": "),__yy_gml_errCheck(gmlatt)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_complete")), ": "),__yy_gml_errCheck(gmlcmp)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_yards")),": "),__yy_gml_errCheck(gmlyds)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_average")),": "),__yy_gml_errCheck(gmlavg)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_longest")),": "),__yy_gml_errCheck(gmllng)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst, _other,"ui_stat_touchdowns")),": "),__yy_gml_errCheck(gmltds)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_fumbles")),": "),__yy_gml_errCheck(gmlfum)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_int")),": "),__yy_gml_errCheck(gmlint)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_sacks")),": "),__yy_gml_errCheck(gmlsck)));break;} case 1:{ds_list_add(_inst.gmllines,yyfplus("shad_",__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Rushing"))));if(yyfnotequal(gmlvrs,"")){ds_list_add(_inst.gmllines,gmlvrs);};if(yyfnotequal(gmlgms,"")){ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_games")),": "),__yy_gml_errCheck(gmlgms)));};ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_attempts")),": "),__yy_gml_errCheck(gmlr_att)));ds_list_add(_inst.gmllines, yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_yards")),": "),__yy_gml_errCheck(gmlr_yds)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_average")),": "),__yy_gml_errCheck(gmlr_avg)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_longest")),": "),__yy_gml_errCheck(gmlr_lng)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other, "ui_stat_touchdowns")),": "),__yy_gml_errCheck(gmlr_tds)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_fumbles")),": "),__yy_gml_errCheck(gmlfum)));break;}};break;}case 1:{var ___sw2190___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstat_view;var ___swc2191___=-1;if(yyCompareVal(___sw2190___,1,g_GMLMathEpsilon,false)==0){___swc2191___=0;}else if(yyCompareVal(___sw2190___,2,g_GMLMathEpsilon,false)==0){___swc2191___=1;}switch(___swc2191___){case 0:{ ds_list_add(_inst.gmllines,yyfplus("shad_",__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Receiving"))));if(yyfnotequal(gmlvrs,"")){ds_list_add(_inst.gmllines,gmlvrs);};if(yyfnotequal(gmlgms,"")){ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_games")),": "),__yy_gml_errCheck(gmlgms)));};ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_receive")),": "),__yy_gml_errCheck(gmlatt)));ds_list_add(_inst.gmllines, yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_yards")),": "),__yy_gml_errCheck(gmlyds)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_average")),": "),__yy_gml_errCheck(gmlavg)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_longest")),": "),__yy_gml_errCheck(gmllng)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_touchdowns")), ": "),__yy_gml_errCheck(gmltds)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_fumbles")),": "),__yy_gml_errCheck(gmlfum)));break;}case 1:{ds_list_add(_inst.gmllines,yyfplus("shad_",__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Rushing"))));if(yyfnotequal(gmlvrs,"")){ds_list_add(_inst.gmllines,gmlvrs);};if(yyfnotequal(gmlgms,"")){ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_games")), ": "),__yy_gml_errCheck(gmlgms)));};ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_attempts")),": "),__yy_gml_errCheck(gmlr_att)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_yards")),": "),__yy_gml_errCheck(gmlr_yds)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_average")),": "),__yy_gml_errCheck(gmlr_avg)));ds_list_add(_inst.gmllines, yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_longest")),": "),__yy_gml_errCheck(gmlr_lng)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_touchdowns")),": "),__yy_gml_errCheck(gmlr_tds)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_fumbles")),": "),__yy_gml_errCheck(gmlfum)));if(yyfgreater(gmlret_att,0)){{ds_list_add(_inst.gmllines,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst, _other,"ui_stat_return_yards")),": "),__yy_gml_errCheck(gmlret_yds))," ("),__yy_gml_errCheck(string(gmlret_att))),")"));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_return_tds")),": "),__yy_gml_errCheck(gmlret_tds)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_return_longest")),": "),__yy_gml_errCheck(gmlret_lng)));};};break;}};break;}case 2:{ds_list_add(_inst.gmllines,yyfplus("shad_",__yy_gml_errCheck(gml_Script_s_str(_inst, _other,"ui_Receiving"))));if(yyfnotequal(gmlvrs,"")){ds_list_add(_inst.gmllines,gmlvrs);};if(yyfnotequal(gmlgms,"")){ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_games")),": "),__yy_gml_errCheck(gmlgms)));};ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_receive")),": "),__yy_gml_errCheck(gmlatt)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_yards")), ": "),__yy_gml_errCheck(gmlyds)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_average")),": "),__yy_gml_errCheck(gmlavg)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_longest")),": "),__yy_gml_errCheck(gmllng)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_touchdowns")),": "),__yy_gml_errCheck(gmltds)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst, _other,"ui_stat_fumbles")),": "),__yy_gml_errCheck(gmlfum)));if(yyfgreater(gmlret_att,0)){{ds_list_add(_inst.gmllines,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_return_yards")),": "),__yy_gml_errCheck(gmlret_yds))," ("),__yy_gml_errCheck(string(gmlret_att))),")"));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_return_tds")),": "),__yy_gml_errCheck(gmlret_tds)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst, _other,"ui_stat_return_longest")),": "),__yy_gml_errCheck(gmlret_lng)));};};break;}case 3:{ds_list_add(_inst.gmllines,yyfplus("shad_",__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Kicking"))));if(yyfnotequal(gmlvrs,"")){ds_list_add(_inst.gmllines,gmlvrs);};if(yyfnotequal(gmlgms,"")){ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_games")),": "),__yy_gml_errCheck(gmlgms)));};ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst, _other,"ui_stat_fga")),": "),__yy_gml_errCheck(gmlatt)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_fgm")),": "),__yy_gml_errCheck(gmlcmp)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_yards")),": "),__yy_gml_errCheck(gmlyds)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_average")),": "),__yy_gml_errCheck(gmlavg)));ds_list_add(_inst.gmllines, yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_longest")),": "),__yy_gml_errCheck(gmllng)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_xpa")),": "),__yy_gml_errCheck(gmlatt_xp)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_xpm")),": "),__yy_gml_errCheck(gmlcmp_xp)));break;}case 4:{ds_list_add(_inst.gmllines,yyfplus("shad_",__yy_gml_errCheck(gml_Script_s_str(_inst, _other,"ui_Blocking"))));if(yyfnotequal(gmlvrs,"")){ds_list_add(_inst.gmllines,gmlvrs);};if(yyfnotequal(gmlgms,"")){ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_games")),": "),__yy_gml_errCheck(gmlgms)));};ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_blocks")),": "),__yy_gml_errCheck(gmltck)));break;}case 5:{ds_list_add(_inst.gmllines,yyfplus("shad_",__yy_gml_errCheck(gml_Script_s_str(_inst, _other,"ui_Defense"))));if(yyfnotequal(gmlvrs,"")){ds_list_add(_inst.gmllines,gmlvrs);};if(yyfnotequal(gmlgms,"")){ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_games")),": "),__yy_gml_errCheck(gmlgms)));};ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_tackles")),": "),__yy_gml_errCheck(gmltck)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_int")), ": "),__yy_gml_errCheck(gmlint)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_sacks")),": "),__yy_gml_errCheck(gmlsck)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_f_fumbles")),": "),__yy_gml_errCheck(gmlfum)));if(yyfgreater(gmlret_att,0)){{ds_list_add(_inst.gmllines,yyfplus(yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_return_yards")),": "), __yy_gml_errCheck(gmlret_yds))," ("),__yy_gml_errCheck(string(gmlret_att))),")"));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_return_tds")),": "),__yy_gml_errCheck(gmlret_tds)));ds_list_add(_inst.gmllines,yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_stat_return_longest")),": "),__yy_gml_errCheck(gmlret_lng)));};};break;}};}function gml_Object_obj_stats_player_Destroy_0(_inst,_other){ds_list_destroy(_inst.gmllines);_inst.gmllines=(-1); }function gml_Object_obj_stats_player_Draw_0(_inst,_other){}function gml_Object_obj_stats_player_Draw_64(_inst,_other){draw_set_font(global.gmlfnt_small_flex);draw_set_halign(0);var gmltx=yyfplus(__yy_gml_errCheck(_inst.x),16);var gmlty=yyfplus(__yy_gml_errCheck(_inst.y),16);var gmll=0;for(;yyfless(gmll,ds_list_size(_inst.gmllines));(g_yyPrePostObject__=gmll,gmll=(g_yyPrePostObject__ instanceof Long?gmll.add(1):++gmll),g_yyPrePostObject__)){{var gmltxt=ds_list_find_value(_inst.gmllines,gmll);if(yyGetBool(string_count("shad_", gmltxt))){{gml_Script_draw_hd_text_color(_inst,_other,yyfminus(__yy_gml_errCheck(gmltx),1),yyfplus(__yy_gml_errCheck(gmlty),1),string_replace(gmltxt,"shad_",""),0,0,0,0,1);};};gml_Script_draw_hd_text(_inst,_other,gmltx,gmlty,string_replace(gmltxt,"shad_",""));gmlty=yyfplus(gmlty,14);}};}function gml_Object_obj_stats_player_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlstat_type=0;}function gml_Object_obj_tag_kr_Draw_64(_inst,_other){var gmlf=yyfdivide(__yy_gml_errCheck(yyfplus(__yy_gml_errCheck(sin(yyfdivide(__yy_gml_errCheck(g_pBuiltIn.get_current_time()), 60))),1)),2);if(yyGetBool(gml_Script_s_is_ui_selected(_inst,_other))){draw_sprite_ext(_inst,_inst.sprite_index,(yyGetBool(_inst.gmlselected)?1:0),_inst.x,_inst.y,1,1,0,gml_Script_s_ui_selected_color(_inst,_other),1);}else {draw_sprite(_inst,_inst.sprite_index,(yyGetBool(_inst.gmlselected)?1:0),_inst.x,_inst.y);};}function gml_Object_obj_tag_kr_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlselected=false;_inst.gmlonClickAction=kgml_Script_btn_click_KR_Select;_inst.gmlbtn_image=YYASSET_REF(0x0100017A); }function gml_Object_obj_meeting_player_Create_0(_inst,_other){_inst.gmllines=ds_list_create();_inst.gmlpmap=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile;if(yyfequal(_inst.gmlpmap,(-4))){return;};var gmlname=yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"fname"))," "),__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"lname")));yyInst(_inst,_other,100532).gmltitle=gmlname;yyInst(_inst,_other,100539).gmltext=yyfplus(__yy_gml_errCheck(string(round(ds_map_find_value(_inst.gmlpmap, "attitude")))),"%");yyInst(_inst,_other,100538).gmltext=yyfplus(__yy_gml_errCheck(string(round(clamp(ds_map_find_value(_inst.gmlpmap,"condition"),0,100)))),"%");yyInst(_inst,_other,100540).gmltext=string(ds_map_find_value(_inst.gmlpmap,"xp_level"));var gmlcontract=yyfplus(yyfplus(yyfplus(yyfplus(yyfplus("$",__yy_gml_errCheck(string(ds_map_find_value(_inst.gmlpmap,"salary")))),"m ("),__yy_gml_errCheck(string(ds_map_find_value(_inst.gmlpmap,"contract")))),__yy_gml_errCheck(gml_Script_s_str(_inst,_other, "sla_Year"))),")");yyInst(_inst,_other,100541).gmltext=gmlcontract;yyInst(_inst,_other,100535).gmltext=gml_Script_s_str(_inst,_other,"ui_BoostMorale");yyInst(_inst,_other,100534).gmltext=gml_Script_s_str(_inst,_other,"ui_BoostCondition");yyInst(_inst,_other,100536).gmltext=gml_Script_s_str(_inst,_other,"ui_LevelUp");yyInst(_inst,_other,100537).gmltext=gml_Script_s_str(_inst,_other,"ui_ExtendContract");yyInst(_inst,_other,100543).gmltext=string(gml_Script_s_get_meeting_cost_morale(_inst,_other,_inst.gmlpmap)); yyInst(_inst,_other,100545).gmltext=string(gml_Script_s_get_meeting_cost_condition(_inst,_other,_inst.gmlpmap));yyInst(_inst,_other,100546).gmltext=gml_Script_s_get_meeting_cost_levelup(_inst,_other,_inst.gmlpmap);if(yyfgreaterequal(ds_map_find_value(_inst.gmlpmap,"attitude"),100)){yyInst(_inst,_other,100543).gmlactive=false;};if((yyGetBool(yyfless(ds_map_find_value(_inst.gmlpmap,"condition"),0)))||(yyGetBool(yyfgreaterequal(ds_map_find_value(_inst.gmlpmap,"condition"),100)))){yyInst(_inst,_other, 100545).gmlactive=false;};_inst.gmlretirement=false;var gmlm4Image=yyInst(_inst,_other,100547).gmlimage;if(yyfequal(ds_map_find_value(_inst.gmlpmap,"age"),gml_Script_s_rookie_age_internal(_inst,_other))){{yyInst(_inst,_other,100547).gmlactive=false;yyInst(_inst,_other,100547).gmltext=gml_Script_s_str(_inst,_other,"ui_Rookie");yyInst(_inst,_other,100547).gmlimage=(-1);};}else {if(yyfgreaterequal(ds_map_find_value(_inst.gmlpmap,"age"),gml_Script_s_get_max_age_normal(_inst,_other,_inst.gmlpmap))){{_inst.gmlretirement=true; yyInst(_inst,_other,100537).gmltext=gml_Script_s_str(_inst,_other,"ui_DelayRetirement");yyInst(_inst,_other,100547).gmltext=max(gml_Script_s_get_meeting_cost_extend_contract(_inst,_other,_inst.gmlpmap),gml_Script_s_get_meeting_cost_delay_retirement(_inst,_other,_inst.gmlpmap));if((yyGetBool(yyfless(ds_map_find_value(_inst.gmlpmap,"age"),gml_Script_s_get_max_age(_inst,_other,_inst.gmlpmap))))||(yyGetBool(yyfgreater(ds_map_find_value(_inst.gmlpmap,"age"),yyfplus(__yy_gml_errCheck(gml_Script_s_get_max_age_normal(_inst, _other,_inst.gmlpmap)),4))))){yyInst(_inst,_other,100547).gmlactive=false;};};}else {{yyInst(_inst,_other,100547).gmltext=gml_Script_s_get_meeting_cost_extend_contract(_inst,_other,_inst.gmlpmap);if(yyfgreater(ds_map_find_value(_inst.gmlpmap,"contract"),4)){yyInst(_inst,_other,100547).gmlactive=false;}else {if(yyfgreater(yyfplus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"age")),__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"contract"))),gml_Script_s_get_max_age(_inst,_other,_inst.gmlpmap))){ yyInst(_inst,_other,100547).gmlactive=false;};};};};};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{yyInst(_inst,_other,100547).gmltext=gml_Script_s_get_meeting_cost_extend_contract(_inst,_other,_inst.gmlpmap);yyInst(_inst,_other,100547).gmlactive=true;yyInst(_inst,_other,100547).gmlimage=gmlm4Image;yyInst(_inst,_other,100541).gmltext=gml_Script_s_gpa_string(_inst,_other,_inst.gmlpmap);yyInst(_inst,_other,100541).gmltitle=gml_Script_s_str(_inst,_other,"ui_GPA");};};yyInst(_inst,_other,100549).visible=false; if((yyGetBool(ds_map_exists(_inst.gmlpmap,"meetingdone")))&&(yyGetBool(yyfgreater(ds_map_find_value(_inst.gmlpmap,"meetingdone"),0)))){{yyInst(_inst,_other,100549).gmltext=string_replace(gml_Script_s_str(_inst,_other,"msg_MeetingDone"),"$playername",gmlname);yyInst(_inst,_other,100549).visible=true;yyInst(_inst,_other,100543).gmlactive=false;yyInst(_inst,_other,100545).gmlactive=false;yyInst(_inst,_other,100546).gmlactive=false;yyInst(_inst,_other,100547).gmlactive=false;};};}function gml_Object_obj_meeting_player_PreCreate_0(_inst, _other){event_inherited(_inst,_other);_inst.gmlstat_type=0;}function gml_Object_obj_staffprofile_Create_0(_inst,_other){_inst.gmlpmap=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile;if(yyfequal(_inst.gmlpmap,(-4))){return;};if(yyfequal(ds_map_find_value(_inst.gmlpmap,"position"),100)){{room_goto(YYASSET_REF(0x0300002E));return;};};draw_set_font(global.gmlfnt_small_flex);draw_set_halign(0);draw_set_valign(1);yyInst(_inst,_other,100471).gmlpmap=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile; yyInst(_inst,_other,100471).gmlactive=false;yyInst(_inst,_other,100467).gmltitle=gml_Script_s_get_string_position_full(_inst,_other,ds_map_find_value(_inst.gmlpmap,"position"));yyInst(_inst,_other,100468).gmltext=yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Name")),": "),__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"fname")))," "),__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"lname")));yyInst(_inst,_other,100469).gmltext=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst, _other,"ui_Age")),": "),__yy_gml_errCheck(string(ds_map_find_value(_inst.gmlpmap,"age"))));if((yyGetBool(yyfequal(!yyGetBool(ds_map_find_value(_inst.gmlpmap,"position")),100)))&&(yyGetBool(yyfgreaterequal(ds_map_find_value(_inst.gmlpmap,"age"),gml_Script_s_get_max_age(_inst,_other,_inst.gmlpmap))))){yyInst(_inst,_other,100469).gmltext=yyfplus(yyInst(_inst,_other,100469).gmltext,yyfplus(yyfplus(" (",__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Retiring"))),")"));};yyInst(_inst,_other,100470).gmltext=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst, _other,"ui_Attitude")),": "),__yy_gml_errCheck(gml_Script_s_get_string_attitude(_inst,_other,ds_map_find_value(_inst.gmlpmap,"attitude"))));_inst.gmlattitude_img=gml_Script_s_get_attitude_icon(_inst,_other,ds_map_find_value(_inst.gmlpmap,"attitude"));yyInst(_inst,_other,100478).gmltext=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Contract")),": "),__yy_gml_errCheck(string(ds_map_find_value(_inst.gmlpmap,"contract")))),__yy_gml_errCheck(gml_Script_s_str(_inst,_other, "sla_Year")));yyInst(_inst,_other,100476).gmltext=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Trait")),": "),__yy_gml_errCheck(gml_Script_s_get_string_trait(_inst,_other,ds_map_find_value(_inst.gmlpmap,"trait"))));_inst.gmllayer_nav=layer_get_id("Instances_Nav");layer_set_visible(_inst.gmllayer_nav,true);_inst.gmllayer_xp=layer_get_id("Instances_XP_Continue");layer_set_visible(_inst.gmllayer_xp,false);_inst.gmllayer_hire=layer_get_id("Instances_Hire");layer_set_visible(_inst.gmllayer_hire, true);_inst.gmllayer_training=layer_get_id("Instances_Training");layer_set_visible(_inst.gmllayer_training,true);yyInst(_inst,_other,100465).visible=false;if(yyfequal(ds_map_find_value(_inst.gmlpmap,"position"),100)){{{var __yy__v2425=GetWithArray(100472);for(var __yy__v2426 in __yy__v2425){if(!__yy__v2425.hasOwnProperty(__yy__v2426))continue;var __yy__v2427=__yy__v2425[__yy__v2426];__yy__v2427.y=yyfplus(__yy__v2427.y,32);}};{var __yy__v2428=GetWithArray(YYASSET_REF(0x0000004B));for(var __yy__v2429 in __yy__v2428){ if(!__yy__v2428.hasOwnProperty(__yy__v2429))continue;var __yy__v2430=__yy__v2428[__yy__v2429];__yy__v2430.y=yyfplus(__yy__v2430.y,32);}};{var __yy__v2431=GetWithArray(YYASSET_REF(0x00000032));for(var __yy__v2432 in __yy__v2431){if(!__yy__v2431.hasOwnProperty(__yy__v2432))continue;var __yy__v2433=__yy__v2431[__yy__v2432];__yy__v2433.y=yyfplus(__yy__v2433.y,32);}};{var __yy__v2434=GetWithArray(YYASSET_REF(0x00000043));for(var __yy__v2435 in __yy__v2434){if(!__yy__v2434.hasOwnProperty(__yy__v2435))continue;var __yy__v2436=__yy__v2434[__yy__v2435]; {__yy__v2436.y=yyfplus(__yy__v2436.y,32);__yy__v2436.image_yscale=0.78;}}};yyInst(_inst,_other,100472).gmlinfo_msg="info_HeadCoach";yyInst(_inst,_other,100475).visible=false;if(yyGetBool(global.gmldebug)){yyInst(_inst,_other,100478).gmltext=yyfplus("Rating:",__yy_gml_errCheck(string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlcoach_rating)));}else {yyInst(_inst,_other,100478).visible=false;};yyInst(_inst,_other,100476).visible=false;yyInst(_inst,_other,100477).visible=false;yyInst(_inst,_other, 100462).visible=false;yyInst(_inst,_other,100463).visible=false;yyInst(_inst,_other,100465).visible=true;layer_set_visible(_inst.gmllayer_training,false);layer_set_visible(_inst.gmllayer_hire,false);if(yyfless(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyface_x,0)){{yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlface_type_coach=true;room_goto(YYASSET_REF(0x03000004));};};};}else {if(yyfless(ds_list_find_index(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstafflist,_inst.gmlpmap),0)){{yyInst(_inst, _other,100478).gmltext="";yyInst(_inst,_other,100460).gmltext=gml_Script_s_str(_inst,_other,"ui_Hire");yyInst(_inst,_other,100466).gmltext=gml_Script_s_str(_inst,_other,"ui_AvailableStaff");yyInst(_inst,_other,100467).image_yscale=1.125;yyInst(_inst,_other,100459).visible=false;yyInst(_inst,_other,100458).visible=false;yyInst(_inst,_other,100455).visible=false;yyInst(_inst,_other,100456).visible=false;yyInst(_inst,_other,100457).visible=false;};}else {{gml_Script_s_load_profile_uni(_inst,_other,100471); yyInst(_inst,_other,100460).gmltext=gml_Script_s_str(_inst,_other,"btn_ExtendContract");yyInst(_inst,_other,100465).visible=true;yyInst(_inst,_other,100455).gmlcolour=global.gmlc_background;yyInst(_inst,_other,100456).gmlcolour=global.gmlc_background;yyInst(_inst,_other,100457).gmlcolour=global.gmlc_background;var ___sw2198___=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"position");var ___swc2199___=-1;if(yyCompareVal(___sw2198___,101,g_GMLMathEpsilon,false)==0){ ___swc2199___=0;}else if(yyCompareVal(___sw2198___,102,g_GMLMathEpsilon,false)==0){___swc2199___=1;}switch(___swc2199___){case 0:{gml_Script_slog(_inst,_other,"POS_STAFF_DF");var ___sw2200___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltraining_reg_df;var ___swc2201___=-1;if(yyCompareVal(___sw2200___,1,g_GMLMathEpsilon,false)==0){___swc2201___=0;}else if(yyCompareVal(___sw2200___,2,g_GMLMathEpsilon,false)==0){___swc2201___=1;}else if(yyCompareVal(___sw2200___,3,g_GMLMathEpsilon,false)==0){___swc2201___=2; }switch(___swc2201___){case 0:{yyInst(_inst,_other,100455).gmlcolour=global.gmlc_primary;break;}case 1:{yyInst(_inst,_other,100456).gmlcolour=global.gmlc_primary;break;}case 2:{yyInst(_inst,_other,100457).gmlcolour=global.gmlc_primary;break;}};break;}case 1:{gml_Script_slog(_inst,_other,"POS_STAFF_OF");var ___sw2202___=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmltraining_reg_of;var ___swc2203___=-1;if(yyCompareVal(___sw2202___,1,g_GMLMathEpsilon,false)==0){___swc2203___=0;}else if(yyCompareVal(___sw2202___, 2,g_GMLMathEpsilon,false)==0){___swc2203___=1;}else if(yyCompareVal(___sw2202___,3,g_GMLMathEpsilon,false)==0){___swc2203___=2;}switch(___swc2203___){case 0:{gml_Script_slog(_inst,_other,"1");yyInst(_inst,_other,100455).gmlcolour=global.gmlc_primary;break;}case 1:{gml_Script_slog(_inst,_other,"2");yyInst(_inst,_other,100456).gmlcolour=global.gmlc_primary;break;}case 2:{gml_Script_slog(_inst,_other,"3");yyInst(_inst,_other,100457).gmlcolour=global.gmlc_primary;break;}};break;}};};};};_inst.gmltarget=yyftime(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap, "xp_level")),100);_inst.gmlprc=yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"xp")),__yy_gml_errCheck(_inst.gmltarget))),100);yyInst(_inst,_other,100475).gmltitle=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_XPLevel"))," "),__yy_gml_errCheck(string(ds_map_find_value(_inst.gmlpmap,"xp_level"))));yyInst(_inst,_other,100475).gmlpercent=_inst.gmlprc;gml_Script_s_check_intro(_inst,_other);gml_Script_s_check_intro_rm_profile_staff(_inst,_other); }function gml_Object_obj_staffprofile_Step_0(_inst,_other){yyInst(_inst,_other,100474).gmltext=gml_Script_s_get_credit(_inst,_other);if(!yyGetBool(ds_exists(_inst.gmlpmap,1))){return;};if(yyGetBool(is_undefined(ds_map_find_value(_inst.gmlpmap,"xp_gain")))){return;};if(yyfgreater(real(ds_map_find_value(_inst.gmlpmap,"xp_gain")),0)){{layer_set_visible(_inst.gmllayer_nav,false);layer_set_visible(_inst.gmllayer_hire,false);layer_set_visible(_inst.gmllayer_training,false);ds_map_set(_inst.gmlpmap,"xp_gain", yyfminus(__yy_gml_errCheck(real(ds_map_find_value(_inst.gmlpmap,"xp_gain"))),1));ds_map_set(_inst.gmlpmap,"xp",yyfplus(__yy_gml_errCheck(real(ds_map_find_value(_inst.gmlpmap,"xp"))),1));if(yyfgreaterequal(ds_map_find_value(_inst.gmlpmap,"xp"),_inst.gmltarget)){{ds_map_set(_inst.gmlpmap,"xp",1);ds_map_set(_inst.gmlpmap,"xp_level",yyfplus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"xp_level")),1));ds_map_set(_inst.gmlpmap,"attitude",clamp(yyfplus(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap, "attitude")),10),1,100));if(yyfless(ds_map_find_value(_inst.gmlpmap,"xp_gain"),1)){ds_map_set(_inst.gmlpmap,"xp_gain",1);};var gmlcx=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100475).x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,100475).sprite_width),0.9)));var gmlcy=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100475).y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,100475).sprite_height),0.5)));if(yyfless(ds_map_find_value(_inst.gmlpmap,"rating"),10)){ {var gmldx=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100471).x),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,100471).sprite_width),0.5)));var gmldy=yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100471).y),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,100471).sprite_height),0.8)));gml_Script_s_create_credit(_inst,_other,gmlcx,gmlcy,gmldx,gmldy,1,2,_inst.gmlpmap,true);};}else {{gml_Script_s_create_credit(_inst,_other,gmlcx,gmlcy,yyInst(_inst,_other,100474).x,yyInst(_inst, _other,100474).y,1,1,(-4),true);};};return;};};_inst.gmlprc=yyftime(__yy_gml_errCheck(yyfdivide(__yy_gml_errCheck(ds_map_find_value(_inst.gmlpmap,"xp")),__yy_gml_errCheck(_inst.gmltarget))),100);yyInst(_inst,_other,100475).gmltitle=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_XPLevel"))," "),__yy_gml_errCheck(string(ds_map_find_value(_inst.gmlpmap,"xp_level"))));yyInst(_inst,_other,100475).gmlpercent=_inst.gmlprc;if(yyfless(ds_map_find_value(_inst.gmlpmap,"xp_gain"),1)){{ds_map_set(_inst.gmlpmap, "xp_gain",0);layer_set_visible(_inst.gmllayer_xp,true);};};};};}function gml_Object_obj_staffprofile_Draw_64(_inst,_other){draw_sprite(_inst,YYASSET_REF(0x0100006B),_inst.gmlattitude_img,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100470).x),__yy_gml_errCheck(gml_Script_string_hd_width(_inst,_other,yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,100470).gmltext)," ")))),yyInst(_inst,_other,100470).y);}function gml_Object_obj_staffprofile_KeyPress_88(_inst,_other){if((yyGetBool(!yyGetBool(global.gmlmobile_device)))&&(yyGetBool(!yyGetBool(global.gmlbrowser)))){ {ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"xp_gain",yyfminus(__yy_gml_errCheck(_inst.gmltarget),__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"xp"))));};};}function gml_Object_obj_staffprofile_KeyPress_90(_inst,_other){{var __yy__v2437=GetWithArray(YYASSET_REF(0x00000048));for(var __yy__v2438 in __yy__v2437){if(!__yy__v2437.hasOwnProperty(__yy__v2438))continue;var __yy__v2439=__yy__v2437[__yy__v2438];return;}};if(yyGetBool(global.gmldebug)){ {if(yyGetBool(ds_map_exists(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"rings"))){ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"rings",yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"rings")),1));}else {ds_map_set(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"rings",1);};};};}function gml_Object_obj_roster_Create_0(_inst,_other){gml_Script_s_tag_backups(_inst,_other);yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlroster=gml_Script_s_sort_players(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster,4);if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlqb_mode)){{yyInst(_inst,_other,100493).visible=false;gml_Script_s_qb_mode_update_resting(_inst,_other);};};var gmlgap=4;var gmlbuf=10;var gmlsize=ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster);var gmlmax_roster=gml_Script_s_get_roster_cap(_inst,_other);var gmlcards_per_row=yyfdivide(__yy_gml_errCheck(gmlmax_roster), 2);if(yyflessequal(gmlsize,10)){{gmlcards_per_row=5;gmlgap=8;gmlbuf=0;};};if(yyflessequal(gmlsize,8)){gmlcards_per_row=4;};if(yyflessequal(gmlsize,6)){gmlcards_per_row=3;};var gmlpx=round(yyftime(__yy_gml_errCheck(g_pBuiltIn.room_width),0.5));var gmlpy=round(yyftime(__yy_gml_errCheck(g_pBuiltIn.room_height),0.49));var gmlpw=yyfplus(__yy_gml_errCheck(sprite_get_width(YYASSET_REF(0x010000AC))),__yy_gml_errCheck(gmlgap));if(yyfgreater(gmlsize,gmlcards_per_row)){{gmlpy=yyfminus(gmlpy,44);gmlpx=yyfminus(gmlpx, yyftime(yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlcards_per_row),1)),__yy_gml_errCheck(gmlpw)),0.5));gmlpx=yyfplus(gmlpx,gmlbuf);};}else {{gmlpx=yyfminus(gmlpx,yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlsize),1)),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlpw),0.5))));gmlpx=yyfplus(gmlpx,gmlbuf);};};var gmluniform=instance_create_layer(0,0,"Instances",YYASSET_REF(0x00000085));yyInst(_inst,_other,gmluniform).visible=false;gml_Script_s_load_uniform_file2(_inst,_other,yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlmyteam_id,gmluniform,0,"");var gmlr=0;for(;yyfless(gmlr,gmlsize);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{_inst.gmlroster_profile=__yy_gml_array_check(_inst.gmlroster_profile,917944806);_inst.gmlroster_profile[__yy_gml_array_check_index_set(gmlr)]=instance_create_layer(0,0,"Instances",YYASSET_REF(0x00000032));yyInst(_inst,_other,_inst.gmlroster_profile[__yy_gml_array_check_index(gmlr,_inst.gmlroster_profile)]).gmlpmap=ds_list_find_value(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlroster,gmlr);yyInst(_inst,_other,_inst.gmlroster_profile[__yy_gml_array_check_index(gmlr,_inst.gmlroster_profile)]).gmlonHoldAction=kgml_Script_btn_click_Profile_Cut;if(yyGetBool(global.gmljefebuild)){yyInst(_inst,_other,_inst.gmlroster_profile[__yy_gml_array_check_index(gmlr,_inst.gmlroster_profile)]).gmlonHoldAction=kgml_Script_btn_click_Profile_JefeBoost;};{var __yy__v2440=GetWithArray(_inst.gmlroster_profile[__yy_gml_array_check_index(gmlr,_inst.gmlroster_profile)]); for(var __yy__v2441 in __yy__v2440){if(!__yy__v2440.hasOwnProperty(__yy__v2441))continue;var __yy__v2442=__yy__v2440[__yy__v2441];gml_Script_s_set_up_uniform_profile(__yy__v2442,_inst,gmluniform);}};yyInst(_inst,_other,_inst.gmlroster_profile[__yy_gml_array_check_index(gmlr,_inst.gmlroster_profile)]).x=yyfminus(__yy_gml_errCheck(gmlpx),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlpw),0.5)));yyInst(_inst,_other,_inst.gmlroster_profile[__yy_gml_array_check_index(gmlr,_inst.gmlroster_profile)]).y=yyfminus(__yy_gml_errCheck(gmlpy), __yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlroster_profile[__yy_gml_array_check_index(0,_inst.gmlroster_profile)]).sprite_height),0.5)));gmlpx=yyfplus(gmlpx,gmlpw);if(yyfequal(gmlr,yyfminus(__yy_gml_errCheck(gmlcards_per_row),1))){{var gmlsz=yyfminus(__yy_gml_errCheck(gmlsize),__yy_gml_errCheck(gmlcards_per_row));gmlpx=yyftime(__yy_gml_errCheck(g_pBuiltIn.room_width),0.5);gmlpx=yyfminus(gmlpx,yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlsz),1)),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlpw), 0.5))));gmlpx=yyfplus(gmlpx,gmlbuf);gmlpy=yyfplus(gmlpy,88);};};}};yyInst(_inst,_other,100491).gmlimage=YYASSET_REF(0x0100009F);{var __yy__v2443=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v2444 in __yy__v2443){if(!__yy__v2443.hasOwnProperty(__yy__v2444))continue;var __yy__v2445=__yy__v2443[__yy__v2444];{var gmllimit=gml_Script_s_get_roster_cap(__yy__v2445,_inst);if(yyfequal(gmllimit,12)){{yyInst(_inst,_other,100496).gmlinfo_msg="info_StarPlayers12";};};yyInst(_inst,_other,100501).gmltext=yyfplus(yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(__yy__v2445, _inst,"ui_Players"))," "),__yy_gml_errCheck(string(gmlsize)))," / "),__yy_gml_errCheck(string(gmllimit)));if(yyGetBool(__yy__v2445.gmlroster_from_store)){yyInst(_inst,_other,100491).gmlimage=YYASSET_REF(0x0100008E);}else {if(yyfgreater(ds_list_size(__yy__v2445.gmldraftlist),0)){yyInst(_inst,_other,100491).gmlimage=YYASSET_REF(0x0100008E);}else {if(yyfgreater(ds_list_size(__yy__v2445.gmlfreeagentlist),0)){yyInst(_inst,_other,100491).gmlimage=YYASSET_REF(0x0100008E);}else {if(yyfgreater(ds_list_size(__yy__v2445.gmltradelist), 0)){yyInst(_inst,_other,100491).gmlimage=YYASSET_REF(0x0100008E);};};};};}}};if(yyGetBool(global.gmlexhibition)){{gml_Script_rm_roster_exhibition_create(_inst,_other);};};gml_Script_s_check_intro_rm_roster(_inst,_other);gml_Script_s_check_intro(_inst,_other);}function gml_Object_obj_roster_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlprofile=__yy_gml_array_check(_inst.gmlprofile,4083195518);_inst.gmlprofile[__yy_gml_array_check_index_set(5)]=YYASSET_REF(0x00000032);_inst.gmlsortby=2; }function gml_Object_obj_winners_Create_0(_inst,_other){if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrm_winners_do_awards,1)){{gml_Script_s_do_player_awards(_inst,_other);};};yyInst(_inst,_other,100608).gmlonClickAction=kgml_Script_btn_click_Home;if(yyGetBool(variable_struct_exists(global.gmlrm_params,"click_continue"))){{yyInst(_inst,_other,100608).gmlonClickAction=yyInst(_inst,_other,global.gmlrm_params).gmlclick_continue;};};_inst.gmlhas_fireworks=true;_inst.gmlfirework_rate=30; _inst.alarm=__yy_gml_array_check(_inst.alarm,1584050178);_inst.alarm[__yy_gml_array_check_index_set(0)]=1;_inst.gmlc_sky=make_color_rgb(0,40,180);var gmlbowlnum=yyfminus(yyfplus(__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstart_year),__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlyear)),1966);yyInst(_inst,_other,100607).gmltext=yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_SuperBowl"))," "),__yy_gml_errCheck(gml_Script_s_roman_numerals(_inst, _other,gmlbowlnum)));yyInst(_inst,_other,100609).gmltext=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam,"name"))," are "),__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_Champions"))),"!");yyInst(_inst,_other,100612).gmltext=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam,"name");yyInst(_inst,_other,100612).visible=false;if(yyfnotequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrm_winners_cid,(-1))){ {var gmlcomp=gml_Script_s_get_competition(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrm_winners_cid);yyInst(_inst,_other,100607).gmltext=yyfplus("",__yy_gml_errCheck(yyInst(_inst,_other,gmlcomp).gmlname));};};if(yyfnotequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrm_winners_custom,"")){{yyInst(_inst,_other,100607).gmltext=yyfplus("",__yy_gml_errCheck(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrm_winners_custom));};};if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrm_winners_tier, "v_gold")){{_inst.gmlhas_fireworks=true;_inst.gmlfirework_rate=30;_inst.gmlc_sky=make_color_rgb(180,167,0);};}else {if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrm_winners_tier,"v_silver")){{_inst.gmlhas_fireworks=true;_inst.gmlfirework_rate=100;_inst.gmlc_sky=make_color_rgb(156,156,156);};}else {if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlrm_winners_tier,"v_bronze")){{_inst.gmlhas_fireworks=false;_inst.gmlfirework_rate=0;_inst.gmlc_sky=make_color_rgb(145,116,72);};} ;};};yyInst(_inst,_other,100610).gmltext=gml_Script_s_str(_inst,_other,"ui_HeadCoach");yyInst(_inst,_other,100613).gmltext=gml_Script_s_str(_inst,_other,"short_STAFF_DF");yyInst(_inst,_other,100614).gmltext=gml_Script_s_str(_inst,_other,"short_STAFF_OF");yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster=gml_Script_s_sort_players(_inst,_other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster,4);var gmlsize=ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster);var gmlpx=round(yyftime(__yy_gml_errCheck(g_pBuiltIn.room_width), 0.5));var gmlpy=138;var gmlpw=sprite_get_width(YYASSET_REF(0x010000C6));if(yyfgreater(gmlsize,5)){{gmlpy=yyfminus(gmlpy,44);gmlpx=yyfminus(gmlpx,yyftime(4,__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlpw),1))));};}else {{gmlpx=yyfminus(gmlpx,yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlsize),1)),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlpw),1))));};};var gmluniform=instance_create_layer(0,0,"Instances",YYASSET_REF(0x00000085));yyInst(_inst,_other,gmluniform).visible=false;gml_Script_s_load_uniform_file2(_inst, _other,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlmyteam_id,gmluniform,0,"");var gmldpth=10;var gmlr=0;for(;yyfless(gmlr,gmlsize);(g_yyPrePostObject__=gmlr,gmlr=(g_yyPrePostObject__ instanceof Long?gmlr.add(1):++gmlr),g_yyPrePostObject__)){{_inst.gmlroster_profile=__yy_gml_array_check(_inst.gmlroster_profile,917944806);_inst.gmlroster_profile[__yy_gml_array_check_index_set(gmlr)]=instance_create_layer(0,0,"Instances",YYASSET_REF(0x00000033));yyInst(_inst,_other,_inst.gmlroster_profile[__yy_gml_array_check_index(gmlr, _inst.gmlroster_profile)]).gmlpmap=ds_list_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlroster,gmlr);{var __yy__v2446=GetWithArray(_inst.gmlroster_profile[__yy_gml_array_check_index(gmlr,_inst.gmlroster_profile)]);for(var __yy__v2447 in __yy__v2446){if(!__yy__v2446.hasOwnProperty(__yy__v2447))continue;var __yy__v2448=__yy__v2446[__yy__v2447];gml_Script_s_set_up_uniform_profile(__yy__v2448,_inst,gmluniform);}};yyInst(_inst,_other,_inst.gmlroster_profile[__yy_gml_array_check_index(gmlr,_inst.gmlroster_profile)]).x=gmlpx; yyInst(_inst,_other,_inst.gmlroster_profile[__yy_gml_array_check_index(gmlr,_inst.gmlroster_profile)]).y=yyfminus(__yy_gml_errCheck(gmlpy),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(yyInst(_inst,_other,_inst.gmlroster_profile[__yy_gml_array_check_index(0,_inst.gmlroster_profile)]).sprite_height),0.5)));yyInst(_inst,_other,_inst.gmlroster_profile[__yy_gml_array_check_index(gmlr,_inst.gmlroster_profile)]).depth=gmldpth;gmlpx=yyfplus(gmlpx,yyftime(__yy_gml_errCheck(gmlpw),2));if(yyfequal(gmlr,4)){ {var gmlsz=yyfminus(__yy_gml_errCheck(gmlsize),5);gmlpx=yyftime(__yy_gml_errCheck(g_pBuiltIn.room_width),0.5);gmlpx=yyfminus(gmlpx,yyftime(__yy_gml_errCheck(yyfminus(__yy_gml_errCheck(gmlsz),1)),__yy_gml_errCheck(yyftime(__yy_gml_errCheck(gmlpw),1))));gmlpy=yyfplus(gmlpy,64);gmldpth=yyfminus(gmldpth,1);};};}};_inst.gmlboss=instance_create_layer(0,0,"Instances",YYASSET_REF(0x00000033));yyInst(_inst,_other,_inst.gmlboss).gmlpmap=gml_Script_s_get_staff(_inst,_other,100);{var __yy__v2449=GetWithArray(_inst.gmlboss); for(var __yy__v2450 in __yy__v2449){if(!__yy__v2449.hasOwnProperty(__yy__v2450))continue;var __yy__v2451=__yy__v2449[__yy__v2450];gml_Script_s_set_up_uniform_profile(__yy__v2451,_inst,gmluniform);}};_inst.gmlof=instance_create_layer(0,0,"Instances",YYASSET_REF(0x00000033));yyInst(_inst,_other,_inst.gmlof).gmlpmap=gml_Script_s_get_staff(_inst,_other,102);{var __yy__v2452=GetWithArray(_inst.gmlof);for(var __yy__v2453 in __yy__v2452){if(!__yy__v2452.hasOwnProperty(__yy__v2453))continue;var __yy__v2454=__yy__v2452[__yy__v2453]; gml_Script_s_set_up_uniform_profile(__yy__v2454,_inst,gmluniform);}};_inst.gmldf=instance_create_layer(0,0,"Instances",YYASSET_REF(0x00000033));yyInst(_inst,_other,_inst.gmldf).gmlpmap=gml_Script_s_get_staff(_inst,_other,101);{var __yy__v2455=GetWithArray(_inst.gmldf);for(var __yy__v2456 in __yy__v2455){if(!__yy__v2455.hasOwnProperty(__yy__v2456))continue;var __yy__v2457=__yy__v2455[__yy__v2456];gml_Script_s_set_up_uniform_profile(__yy__v2457,_inst,gmluniform);}};yyInst(_inst,_other,_inst.gmlboss).x=yyInst(_inst, _other,100610).x;yyInst(_inst,_other,_inst.gmlboss).y=202;yyInst(_inst,_other,_inst.gmlboss).depth=gmldpth;yyInst(_inst,_other,_inst.gmlof).x=yyInst(_inst,_other,100614).x;yyInst(_inst,_other,_inst.gmlof).y=202;yyInst(_inst,_other,_inst.gmlof).depth=gmldpth;yyInst(_inst,_other,_inst.gmldf).x=yyInst(_inst,_other,100613).x;yyInst(_inst,_other,_inst.gmldf).y=202;yyInst(_inst,_other,_inst.gmldf).depth=gmldpth;}function gml_Object_obj_winners_Alarm_0(_inst,_other){if(yyGetBool(_inst.gmlhas_fireworks)){ {effect_create_above(3,random(g_pBuiltIn.room_width),yyfminus(__yy_gml_errCheck(random(g_pBuiltIn.room_height)),100),choose(0,1,2),make_colour_hsv(random(255),255,255));_inst.alarm=__yy_gml_array_check(_inst.alarm,1584050178);_inst.alarm[__yy_gml_array_check_index_set(0)]=yyfplus(__yy_gml_errCheck(random(_inst.gmlfirework_rate)),1);};};}function gml_Object_obj_winners_Draw_0(_inst,_other){draw_set_color(_inst.gmlc_sky);draw_rectangle((-1),(-1),yyfplus(__yy_gml_errCheck(g_pBuiltIn.room_width),1),yyfplus(__yy_gml_errCheck(g_pBuiltIn.room_height), 1),0);draw_set_color(16777215);gpu_set_blendmode(1);draw_ellipse_colour((-400),0,yyfplus(__yy_gml_errCheck(g_pBuiltIn.room_width),400),yyfplus(__yy_gml_errCheck(g_pBuiltIn.room_height),450),global.gmlc_background,0,0);gpu_set_blendmode(0);}function gml_Object_obj_winners_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlprofile=__yy_gml_array_check(_inst.gmlprofile,4083195518);_inst.gmlprofile[__yy_gml_array_check_index_set(5)]=YYASSET_REF(0x00000032);_inst.gmlsortby=2;}function gml_Object_obj_draft_Create_0(_inst, _other){gml_Script_slog(_inst,_other,"obj_draft");var gmlpicks=0;{var __yy__v2458=GetWithArray(YYASSET_REF(0x00000062));for(var __yy__v2459 in __yy__v2458){if(!__yy__v2458.hasOwnProperty(__yy__v2459))continue;var __yy__v2460=__yy__v2458[__yy__v2459];{gmlpicks=__yy__v2460.gmldraft_picks[__yy_gml_array_check_index(yyfminus(__yy_gml_errCheck(__yy__v2460.gmldraft_round),1),__yy__v2460.gmldraft_picks)];if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlco_mode,0)){{if(yyfequal(gmlpicks,0)){{gml_Script_s_end_draft_round(__yy__v2460, _inst,false);return;};};};};__yy__v2460.gmldraftlist=gml_Script_s_sort_players(__yy__v2460,_inst,__yy__v2460.gmldraftlist,2);var ___sw2206___=__yy__v2460.gmldraft_info_done;var ___swc2207___=-1;if(yyCompareVal(___sw2206___,0,g_GMLMathEpsilon,false)==0){___swc2207___=0;}else if(yyCompareVal(___sw2206___,1,g_GMLMathEpsilon,false)==0){___swc2207___=1;}else if(yyCompareVal(___sw2206___,2,g_GMLMathEpsilon,false)==0){___swc2207___=2;}switch(___swc2207___){case 0:{gml_Script_s_do_info(__yy__v2460,_inst,"info_Draft"); __yy__v2460.gmldraft_info_done=2;break;}case 1:{gml_Script_s_do_info(__yy__v2460,_inst,"info_Draft2");__yy__v2460.gmldraft_info_done=2;break;}case 2:{break;}};}}};yyInst(_inst,_other,100059).gmltext=string_replace(gml_Script_s_str(_inst,_other,"ui_DraftRound"),"$num",string(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraft_round));yyInst(_inst,_other,100061).gmltext=gml_Script_s_str(_inst,_other,"ui_Picks");if(yyGetBool(gml_Script_s_is_co_mode(_inst,_other))){{yyInst(_inst,_other,100061).visible=false; };};_inst.gmlpage_max=ceil(yyfdivide(__yy_gml_errCheck(ds_list_size(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraftlist)),10));if(yyfless(_inst.gmlpage_max,1)){_inst.gmlpage_max=1;};yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraft_page=clamp(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldraft_page,1,_inst.gmlpage_max);gml_Script_s_update_draft_page(_inst,_other);if(yyGetBool(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmldodraftbanner)){gml_Script_s_do_banner_draft(_inst,_other);}; }function gml_Object_obj_draft_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlprofile=__yy_gml_array_check(_inst.gmlprofile,4083195518);_inst.gmlprofile[__yy_gml_array_check_index_set(5)]=YYASSET_REF(0x00000032);}function gml_Object_obj_freeagents_Create_0(_inst,_other){gml_Script_s_update_freeagents_page(_inst,_other);gml_Script_s_check_expired_contract_message(_inst,_other);}function gml_Object_obj_freeagents_PreCreate_0(_inst,_other){event_inherited(_inst,_other);_inst.gmlprofile=__yy_gml_array_check(_inst.gmlprofile, 4083195518);_inst.gmlprofile[__yy_gml_array_check_index_set(5)]=YYASSET_REF(0x00000032);_inst.gmlsortby=2;}function gml_Object_obj_meter_starrating_Create_0(_inst,_other){_inst.gmlold_percent=yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstarrating;_inst.gmltitle=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_StarRating"))," "),__yy_gml_errCheck(string(round(_inst.gmlold_percent)))),"%");_inst.gmlcolour=global.gmlc_primary;}function gml_Object_obj_meter_starrating_Step_0(_inst, _other){_inst.gmltitle=yyfplus(yyfplus(yyfplus(__yy_gml_errCheck(gml_Script_s_str(_inst,_other,"ui_StarRating"))," "),__yy_gml_errCheck(string(round(_inst.gmlold_percent)))),"%");_inst.gmlold_percent=lerp(_inst.gmlold_percent,yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstarrating,0.1);}function gml_Room_rm_master_Create(_inst,_other){}function gml_RoomCC_rm_master_2_Create(_inst,_other){{};{};}function gml_RoomCC_rm_master_2_PreCreate(_inst,_other){_inst.gmlty=16;_inst.gmltext=gml_Script_s_str(_inst, _inst,"game_Title");_inst.gmlonClickAction=kgml_Script_s_show_backups;}function gml_RoomCC_rm_master_3_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_LoadSlot1;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Load");}function gml_RoomCC_rm_master_4_PreCreate(_inst,_other){_inst.gmltitle="";_inst.gmlfill_bg=true;}function gml_RoomCC_rm_master_5_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_LoadSlot2;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Load");}function gml_RoomCC_rm_master_6_PreCreate(_inst, _other){_inst.gmlonClickAction=kgml_Script_btn_click_LoadSlot3;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Load");}function gml_RoomCC_rm_master_7_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_SaveSlot1");}function gml_RoomCC_rm_master_8_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x01000096);_inst.gmlonClickAction=kgml_Script_btn_click_DeleteSlot1;}function gml_RoomCC_rm_master_9_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x01000096);_inst.gmlonClickAction=kgml_Script_btn_click_DeleteSlot2; }function gml_RoomCC_rm_master_10_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x01000096);_inst.gmlonClickAction=kgml_Script_btn_click_DeleteSlot3;}function gml_RoomCC_rm_master_11_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_SaveSlot2");}function gml_RoomCC_rm_master_12_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_SaveSlot3");}function gml_RoomCC_rm_master_13_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x01000096);_inst.gmlonClickAction=kgml_Script_btn_click_DeleteSlot4; }function gml_RoomCC_rm_master_14_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_SaveSlot4");}function gml_RoomCC_rm_master_15_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_LoadSlot4;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Load");}function gml_RoomCC_rm_master_16_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x01000096);_inst.gmlonClickAction=kgml_Script_btn_click_DeleteSlot5;}function gml_RoomCC_rm_master_17_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst, _inst,"ui_SaveSlot5");}function gml_RoomCC_rm_master_18_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_LoadSlot5;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Load");}function gml_RoomCC_rm_master_20_Create(_inst,_other){instance_destroy(_inst);}function gml_RoomCC_rm_master_20_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_ExhibitionGame");_inst.gmlonClickAction=kgml_Script_btn_click_exhibition_start;}function gml_RoomCC_rm_master_21_Create(_inst,_other){ instance_destroy(_inst);}function gml_RoomCC_rm_master_21_PreCreate(_inst,_other){_inst.gmlfill_bg=true;}function gml_RoomCC_rm_title_0_PreCreate(_inst,_other){_inst.gmlaction_create=kgml_Script_s_title_create;}function gml_Room_rm_details_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_details_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_NewCareer");}function gml_RoomCC_rm_details_1_PreCreate(_inst, _other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_YourName");}function gml_RoomCC_rm_details_2_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Continue");_inst.gmlonClickAction=kgml_Script_btn_click_Details_Continue;}function gml_RoomCC_rm_details_3_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_FavoriteTeam");}function gml_RoomCC_rm_details_4_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Change");_inst.gmlonClickAction=kgml_Script_btn_click_Change_Favourite; }function gml_RoomCC_rm_details_5_PreCreate(_inst,_other){_inst.gmltext="";_inst.gmlnext_input=100026;}function gml_RoomCC_rm_details_6_PreCreate(_inst,_other){_inst.gmltext="";}function gml_RoomCC_rm_details_7_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_FirstName");_inst.gmlhalign=2;_inst.gmldraw_box=false;}function gml_RoomCC_rm_details_8_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_LastName");_inst.gmlhalign=2;_inst.gmldraw_box=false;}// self.title=s_str("@"); function gml_RoomCC_rm_details_9_PreCreate(_inst, _other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"@");}function gml_RoomCC_rm_details_10_PreCreate(_inst,_other){_inst.gmldraw_box=false;}function gml_RoomCC_rm_details_11_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Face");}function gml_RoomCC_rm_details_12_Create(_inst,_other){{};}function gml_RoomCC_rm_details_12_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_StartWithFave");_inst.gmlclick_info="info_StartWithFave";}function gml_RoomCC_rm_details_13_PreCreate(_inst, _other){_inst.gmldraw_box=false;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_DetailsNotFave");}function gml_RoomCC_rm_details_14_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_GenerateCharacter");_inst.gmlonClickAction=kgml_Script_btn_click_GenerateCharacter;}function gml_RoomCC_rm_details_15_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x0100008E);_inst.gmlonClickAction=kgml_Script_btn_click_Details_Back;}function gml_RoomCC_rm_details_16_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_ChooseFace; }function gml_Room_rm_choose_team_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_choose_team_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_ChooseTeam");}function gml_RoomCC_rm_choose_team_1_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_RejectAll");_inst.gmlonClickAction=kgml_Script_btn_click_ChooseReject;}function gml_RoomCC_rm_choose_team_2_PreCreate(_inst, _other){_inst.gmlonClickAction=kgml_Script_btn_click_ChooseAFC;_inst.gmltext=gml_Script_s_str(_inst,_inst,"conf_AFC");_inst.gmlbtn_image=YYASSET_REF(0x01000080);}function gml_RoomCC_rm_choose_team_3_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_ChooseNFC;_inst.gmltext=gml_Script_s_str(_inst,_inst,"conf_NFC");_inst.gmlbtn_image=YYASSET_REF(0x01000080);}function gml_RoomCC_rm_choose_team_6_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_RestoreAllTeams"); _inst.gmlonClickAction=kgml_Script_btn_click_RestoreAllTeams_ex;}function gml_RoomCC_rm_choose_team_7_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_ExhibitionLoadUniformsA;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_CopySlot1");}function gml_RoomCC_rm_choose_team_8_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_ExhibitionLoadUniformsB;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_CopySlot2");}function gml_RoomCC_rm_choose_team_9_PreCreate(_inst,_other){ _inst.gmlonClickAction=kgml_Script_btn_click_ExhibitionLoadUniformsC;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_CopySlot3");}function gml_RoomCC_rm_choose_team_10_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_ExhibitionLoadUniformsD;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_CopySlot4");}function gml_RoomCC_rm_choose_team_11_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_ExhibitionLoadUniformsE;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_CopySlot5"); }function gml_Room_rm_choose_face_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_choose_face_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_ChooseFace");}function gml_RoomCC_rm_choose_face_1_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x01000092);_inst.gmlonClickAction=kgml_Script_btn_click_ChooseFaceNext;_inst.gmlimage_only=true;_inst.gmlgp_mapped_button=32774;}function gml_RoomCC_rm_choose_face_2_PreCreate(_inst, _other){_inst.gmlimage=YYASSET_REF(0x01000090);_inst.gmlonClickAction=kgml_Script_btn_click_ChooseFacePrev;_inst.gmlimage_only=true;_inst.gmlgp_mapped_button=32773;}function gml_RoomCC_rm_choose_face_3_PreCreate(_inst,_other){_inst.gmldraw_box=false;}function gml_RoomCC_rm_choose_face_4_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_cancel_chooseface;_inst.gmlimage=YYASSET_REF(0x010000E6);_inst.gmlgp_mapped_hidden=global.gmlgp_back;}function gml_Room_rm_draft_Create(_inst,_other){ layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_draft_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Draft");}function gml_RoomCC_rm_draft_1_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_DraftDone;_inst.gmlimage=YYASSET_REF(0x01000091);}function gml_RoomCC_rm_draft_3_PreCreate(_inst,_other){_inst.gmldraw_box=false;}function gml_RoomCC_rm_draft_4_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x01000090); _inst.gmlonClickAction=kgml_Script_btn_click_DraftPrev;_inst.gmlimage_only=true;_inst.gmlgp_mapped_button=32773;}function gml_RoomCC_rm_draft_5_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x01000092);_inst.gmlonClickAction=kgml_Script_btn_click_DraftNext;_inst.gmlimage_only=true;_inst.gmlgp_mapped_button=32774;}function gml_RoomCC_rm_draft_6_PreCreate(_inst,_other){_inst.gmldraw_box=false;}function gml_RoomCC_rm_draft_8_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Roster; _inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Roster");_inst.gmlgp_mapped_button=32771;}function gml_RoomCC_rm_draft_9_PreCreate(_inst,_other){_inst.gmlinfo_msg="info_Draft";}function gml_RoomCC_rm_draft_10_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_get_credit(_inst,_inst);_inst.gmlicon=YYASSET_REF(0x01000069);}function gml_Room_rm_edit_team_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_edit_team_0_PreCreate(_inst, _other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_TeamEditor");}function gml_RoomCC_rm_edit_team_1_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Save");_inst.gmlonClickAction=kgml_Script_btn_click_TeamEditDone;}function gml_RoomCC_rm_edit_team_2_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Cancel");_inst.gmlonClickAction=kgml_Script_btn_click_TeamEditCancel;}function gml_RoomCC_rm_edit_team_3_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst, _inst,"ui_RestoreDefault");_inst.gmlonClickAction=kgml_Script_btn_click_TeamEditRestore;}function gml_RoomCC_rm_edit_team_4_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Uniforms");}function gml_RoomCC_rm_edit_team_5_PreCreate(_inst,_other){_inst.gmlmax_length=6;_inst.gmlvalidate_script=kgml_Script_btn_click_InputHelmet;_inst.gmlcustom_keyboard_type=1;}function gml_RoomCC_rm_edit_team_6_PreCreate(_inst,_other){_inst.gmlmax_length=6;_inst.gmlvalidate_script=kgml_Script_btn_click_InputShirt; _inst.gmlcustom_keyboard_type=1;}function gml_RoomCC_rm_edit_team_7_PreCreate(_inst,_other){_inst.gmlmax_length=6;_inst.gmlvalidate_script=kgml_Script_btn_click_InputSleeve;_inst.gmlcustom_keyboard_type=1;}function gml_RoomCC_rm_edit_team_8_PreCreate(_inst,_other){_inst.gmlmax_length=6;_inst.gmlvalidate_script=kgml_Script_btn_click_InputLogo;_inst.gmlcustom_keyboard_type=1;}function gml_RoomCC_rm_edit_team_9_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Colors");}function gml_RoomCC_rm_edit_team_10_PreCreate(_inst, _other){_inst.gmlmax_length=6;_inst.gmlvalidate_script=kgml_Script_btn_click_InputPants;_inst.gmlcustom_keyboard_type=1;}function gml_RoomCC_rm_edit_team_11_PreCreate(_inst,_other){_inst.gmlmax_length=6;_inst.gmlvalidate_script=kgml_Script_btn_click_InputStripe;_inst.gmlcustom_keyboard_type=1;}function gml_RoomCC_rm_edit_team_12_PreCreate(_inst,_other){_inst.gmlmax_length=6;_inst.gmlvalidate_script=kgml_Script_btn_click_InputSocks1;_inst.gmlcustom_keyboard_type=1;}function gml_RoomCC_rm_edit_team_13_PreCreate(_inst, _other){_inst.gmlmax_length=6;_inst.gmlvalidate_script=kgml_Script_btn_click_InputSocks2;_inst.gmlcustom_keyboard_type=1;}function gml_RoomCC_rm_edit_team_14_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Helmet");_inst.gmlonClickAction=kgml_Script_btn_click_EditHelmet;}function gml_RoomCC_rm_edit_team_15_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Logo");_inst.gmlonClickAction=kgml_Script_btn_click_EditLogo;}function gml_RoomCC_rm_edit_team_16_PreCreate(_inst, _other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Jersey");_inst.gmlonClickAction=kgml_Script_btn_click_EditShirt;}function gml_RoomCC_rm_edit_team_17_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Sleeve");_inst.gmlonClickAction=kgml_Script_btn_click_EditSleeve;}function gml_RoomCC_rm_edit_team_18_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Pants");_inst.gmlonClickAction=kgml_Script_btn_click_EditPants;}function gml_RoomCC_rm_edit_team_19_PreCreate(_inst, _other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Stripe");_inst.gmlonClickAction=kgml_Script_btn_click_EditStripe;}function gml_RoomCC_rm_edit_team_20_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_SocksLow");_inst.gmlonClickAction=kgml_Script_btn_click_EditSocks1;}function gml_RoomCC_rm_edit_team_21_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_SocksHigh");_inst.gmlonClickAction=kgml_Script_btn_click_EditSocks2;}function gml_RoomCC_rm_edit_team_22_PreCreate(_inst, _other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Home");_inst.gmlonClickAction=kgml_Script_btn_click_Kit1;}function gml_RoomCC_rm_edit_team_23_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Away");_inst.gmlonClickAction=kgml_Script_btn_click_Kit2;}function gml_RoomCC_rm_edit_team_24_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Alternate");_inst.gmlonClickAction=kgml_Script_btn_click_Kit3;}function gml_RoomCC_rm_edit_team_27_PreCreate(_inst,_other){ _inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Details");}function gml_RoomCC_rm_edit_team_28_PreCreate(_inst,_other){_inst.gmlhalign=2;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Name");_inst.gmldraw_box=false;}function gml_RoomCC_rm_edit_team_29_PreCreate(_inst,_other){_inst.gmlhalign=2;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_ShortName");_inst.gmldraw_box=false;}function gml_RoomCC_rm_edit_team_30_PreCreate(_inst,_other){_inst.gmlmax_length=13;_inst.gmlvalidate_script=kgml_Script_s_update_uniform_name; }function gml_RoomCC_rm_edit_team_31_PreCreate(_inst,_other){_inst.gmlmax_length=4;_inst.gmlnext_input=100085;_inst.gmlvalidate_script=kgml_Script_s_update_uniform_name;}function gml_RoomCC_rm_edit_team_32_PreCreate(_inst,_other){_inst.gmlhalign=2;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_DefaultName");_inst.gmldraw_box=false;}function gml_RoomCC_rm_edit_team_33_PreCreate(_inst,_other){_inst.gmltext="";_inst.gmldraw_box=false;}function gml_RoomCC_rm_edit_team_34_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst, _inst,"ui_More");_inst.gmlonClickAction=kgml_Script_btn_click_TeamEditMore;}function gml_RoomCC_rm_edit_team_35_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Details");}function gml_RoomCC_rm_edit_team_36_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Back");_inst.gmlonClickAction=kgml_Script_btn_click_TeamEditMoreDone;}function gml_RoomCC_rm_edit_team_37_PreCreate(_inst,_other){_inst.gmlmax_length=3;_inst.gmlnext_input=100085;_inst.gmlvalidate_script=kgml_Script_s_update_uniform_name; _inst.gmlcustom_keyboard_type=2;}function gml_RoomCC_rm_edit_team_38_PreCreate(_inst,_other){_inst.gmlhalign=2;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_RainFall");_inst.gmldraw_box=false;}function gml_RoomCC_rm_edit_team_39_PreCreate(_inst,_other){_inst.gmlhalign=2;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_SnowFall");_inst.gmldraw_box=false;}function gml_RoomCC_rm_edit_team_40_PreCreate(_inst,_other){_inst.gmlmax_length=3;_inst.gmlnext_input=100085;_inst.gmlvalidate_script=kgml_Script_s_update_uniform_name; _inst.gmlcustom_keyboard_type=2;}function gml_RoomCC_rm_edit_team_41_PreCreate(_inst,_other){_inst.gmltext=string_upper(gml_Script_s_str(_inst,_inst,"ui_Roof"));}function gml_RoomCC_rm_edit_team_42_PreCreate(_inst,_other){_inst.gmlmax_length=6;_inst.gmlvalidate_script=kgml_Script_btn_click_InputEndzone;_inst.gmlcustom_keyboard_type=1;}function gml_RoomCC_rm_edit_team_43_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_EndZone");_inst.gmlonClickAction=kgml_Script_btn_click_EditEndzone; }function gml_RoomCC_rm_edit_team_44_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Rush");_inst.gmlonClickAction=kgml_Script_btn_click_Kit4;}function gml_Room_rm_freeagents_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_freeagents_1_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x0100009F);_inst.gmlonClickAction=kgml_Script_btn_click_FreeAgentsBack;_inst.gmlgp_mapped_hidden=global.gmlgp_back; }function gml_RoomCC_rm_freeagents_2_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Roster");_inst.gmlonClickAction=kgml_Script_btn_click_Roster;_inst.gmlgp_mapped_button=32771;}function gml_RoomCC_rm_freeagents_3_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_FreeAgents");}function gml_RoomCC_rm_freeagents_5_PreCreate(_inst,_other){_inst.gmlinfo_msg="info_FreeAgents";}function gml_RoomCC_rm_freeagents_8_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst, _inst,"ui_Picks");_inst.gmldraw_box=false;}function gml_Room_rm_freeagents2_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_freeagents2_1_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x0100008E);_inst.gmlonClickAction=kgml_Script_btn_click_ViewHiresBack;_inst.gmlgp_mapped_hidden=global.gmlgp_back;}function gml_RoomCC_rm_freeagents2_2_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst, "ui_Roster");_inst.gmlonClickAction=kgml_Script_btn_click_Roster;}function gml_RoomCC_rm_freeagents2_3_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_FreeAgents");}function gml_RoomCC_rm_freeagents2_4_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_get_credit(_inst,_inst);_inst.gmlicon=YYASSET_REF(0x01000069);}function gml_RoomCC_rm_freeagents2_5_PreCreate(_inst,_other){_inst.gmlicon=YYASSET_REF(0x01000069);}function gml_RoomCC_rm_freeagents2_6_PreCreate(_inst,_other){_inst.gmlicon=YYASSET_REF(0x01000069); }function gml_RoomCC_rm_freeagents2_7_PreCreate(_inst,_other){_inst.gmlicon=YYASSET_REF(0x01000069);}function gml_RoomCC_rm_freeagents2_8_PreCreate(_inst,_other){_inst.gmlicon=YYASSET_REF(0x01000069);}function gml_RoomCC_rm_freeagents2_9_PreCreate(_inst,_other){_inst.gmlicon=YYASSET_REF(0x01000069);}function gml_RoomCC_rm_freeagents2_10_PreCreate(_inst,_other){_inst.gmlicon=YYASSET_REF(0x01000069);}function gml_RoomCC_rm_freeagents2_17_PreCreate(_inst,_other){_inst.gmlicon=YYASSET_REF(0x01000069);}function gml_RoomCC_rm_freeagents2_19_PreCreate(_inst, _other){_inst.gmlicon=YYASSET_REF(0x01000069);}function gml_RoomCC_rm_freeagents2_21_PreCreate(_inst,_other){_inst.gmlicon=YYASSET_REF(0x01000069);}function gml_RoomCC_rm_freeagents2_24_PreCreate(_inst,_other){_inst.gmlinfo_msg="info_freeagents";}function gml_RoomCC_rm_freeagents2_27_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_FreeAgentsNext;_inst.gmlimage_only=true;_inst.gmlimage=YYASSET_REF(0x01000092);_inst.gmlgp_mapped_button=32774;}function gml_RoomCC_rm_freeagents2_28_PreCreate(_inst, _other){_inst.gmlonClickAction=kgml_Script_btn_click_FreeAgentsPrev;_inst.gmlimage=YYASSET_REF(0x01000090);_inst.gmlimage_only=true;_inst.gmlgp_mapped_button=32773;}function gml_RoomCC_rm_freeagents2_29_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_FreeAgentsReset;_inst.gmlgp_mapped_button=32771;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Refresh");}function gml_Room_rm_frontoffice_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")), global.gmlc_background);}function gml_RoomCC_rm_frontoffice_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_FrontOffice");}function gml_RoomCC_rm_frontoffice_1_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Home;_inst.gmlimage=YYASSET_REF(0x0100009F);_inst.gmlgp_mapped_hidden=global.gmlgp_back;}function gml_RoomCC_rm_frontoffice_5_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_FacilityStadium;_inst.gmlimage=YYASSET_REF(0x01000069); }function gml_RoomCC_rm_frontoffice_6_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_FacilityTraining;_inst.gmlimage=YYASSET_REF(0x01000069);}function gml_RoomCC_rm_frontoffice_7_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_FacilityStaff;_inst.gmlimage=YYASSET_REF(0x01000069);}function gml_RoomCC_rm_frontoffice_8_PreCreate(_inst,_other){_inst.gmlinfo_msg="info_Facility_Stadium";}function gml_RoomCC_rm_frontoffice_9_PreCreate(_inst,_other){_inst.gmlinfo_msg="info_Facility_Training"; _inst.gmlactive=false;}function gml_RoomCC_rm_frontoffice_10_PreCreate(_inst,_other){_inst.gmlinfo_msg="info_Facility_Rehab";_inst.gmlactive=false;}function gml_RoomCC_rm_frontoffice_11_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_StaffProfile;}function gml_RoomCC_rm_frontoffice_12_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_StaffProfile;}function gml_RoomCC_rm_frontoffice_15_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Staff"); }function gml_RoomCC_rm_frontoffice_17_PreCreate(_inst,_other){_inst.gmldraw_box=false;}function gml_RoomCC_rm_frontoffice_18_PreCreate(_inst,_other){_inst.gmlinfo_msg="info_DraftPicks";}function gml_RoomCC_rm_frontoffice_19_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_DraftPicks");}function gml_RoomCC_rm_frontoffice_20_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_get_credit(_inst,_inst);_inst.gmlicon=YYASSET_REF(0x01000069);}function gml_RoomCC_rm_frontoffice_22_PreCreate(_inst, _other){_inst.gmlonClickAction=kgml_Script_btn_click_ViewHires;_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_StaffHires");}function gml_RoomCC_rm_frontoffice_23_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_FreeAgents2;_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_FreeAgents");}function gml_RoomCC_rm_frontoffice_26_Create(_inst,_other){event_inherited(_inst,_inst);}function gml_RoomCC_rm_frontoffice_26_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_BoostSalaryCap"); _inst.gmlonClickAction=kgml_Script_btn_click_Boost_Salary_Cap;_inst.gmlgp_mapped_button=32771;}function gml_RoomCC_rm_frontoffice_27_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_StaffProfile;}function gml_Room_rm_halloffame_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_halloffame_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_HallOfFame");}function gml_RoomCC_rm_halloffame_1_PreCreate(_inst, _other){_inst.gmlonClickAction=kgml_Script_btn_click_Home;_inst.gmlimage=YYASSET_REF(0x0100009F);_inst.gmlgp_mapped_hidden=global.gmlgp_back;}function gml_RoomCC_rm_halloffame_2_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Achievements");_inst.gmlactive=false;}function gml_RoomCC_rm_halloffame_3_Create(_inst,_other){if(yyGetBool(gml_Script_s_is_co_mode(_inst,_inst))){{_inst.gmlcontinue_icon=YYASSET_REF(0x01000015);};};}function gml_RoomCC_rm_halloffame_3_PreCreate(_inst,_other){ _inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_PlayerHallOfFame");_inst.gmlonClickAction=kgml_Script_btn_click_HOF_players;_inst.gmlcontinue_icon=YYASSET_REF(0x010000D9);}function gml_RoomCC_rm_halloffame_4_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_RetroBowls");_inst.gmlonClickAction=kgml_Script_btn_click_HOF_Coach;_inst.gmlcontinue_icon=YYASSET_REF(0x010000A0);}function gml_RoomCC_rm_halloffame_5_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_YourRecord"); }function gml_RoomCC_rm_halloffame_6_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_YourHistory");}function gml_RoomCC_rm_halloffame_7_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_PlayerRecords");_inst.gmlonClickAction=kgml_Script_btn_click_HOF_player_records;}function gml_RoomCC_rm_halloffame_8_Create(_inst,_other){_inst.gmlcolour=global.gmlc_primary;}function gml_RoomCC_rm_halloffame_8_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst, _inst,"btn_Achievements");_inst.gmlonClickAction=kgml_Script_btn_click_HallOfFame;}function gml_Room_rm_halloffame_retrobowls_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_halloffame_retrobowls_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_HallOfFame");}function gml_RoomCC_rm_halloffame_retrobowls_1_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Home;_inst.gmlimage=YYASSET_REF(0x0100009F); _inst.gmlgp_mapped_hidden=global.gmlgp_back;}function gml_RoomCC_rm_halloffame_retrobowls_2_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_CoachRecord");}function gml_RoomCC_rm_halloffame_retrobowls_4_Create(_inst,_other){if(yyGetBool(gml_Script_s_is_co_mode(_inst,_inst))){{_inst.gmlcontinue_icon=YYASSET_REF(0x01000015);};};}function gml_RoomCC_rm_halloffame_retrobowls_4_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_PlayerHallOfFame");_inst.gmlonClickAction=kgml_Script_btn_click_HOF_players; _inst.gmlcontinue_icon=YYASSET_REF(0x010000D9);}function gml_RoomCC_rm_halloffame_retrobowls_5_Create(_inst,_other){_inst.gmlcolour=global.gmlc_primary;}function gml_RoomCC_rm_halloffame_retrobowls_5_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_RetroBowls");_inst.gmlonClickAction=kgml_Script_btn_click_HOF_Coach;_inst.gmlcontinue_icon=YYASSET_REF(0x010000A0);}function gml_RoomCC_rm_halloffame_retrobowls_6_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_PlayerRecords"); _inst.gmlonClickAction=kgml_Script_btn_click_HOF_player_records;}function gml_RoomCC_rm_halloffame_retrobowls_7_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_Achievements");_inst.gmlonClickAction=kgml_Script_btn_click_HallOfFame;}function gml_Room_rm_halloffame_players_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_halloffame_players_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst, _inst,"ui_PlayerHallOfFame");}function gml_RoomCC_rm_halloffame_players_1_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_PlayerHallOfFameEmpty");_inst.gmldraw_box=false;}function gml_RoomCC_rm_halloffame_players_2_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x01000090);_inst.gmlonClickAction=kgml_Script_btn_click_HofPrev;_inst.gmlimage_only=true;_inst.gmlgp_mapped_button=32773;}function gml_RoomCC_rm_halloffame_players_3_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x01000092); _inst.gmlonClickAction=kgml_Script_btn_click_HofNext;_inst.gmlimage_only=true;_inst.gmlgp_mapped_button=32774;}function gml_RoomCC_rm_halloffame_players_4_PreCreate(_inst,_other){_inst.gmltext="";_inst.gmldraw_box=false;}function gml_RoomCC_rm_halloffame_players_6_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Home;_inst.gmlgp_mapped_hidden=global.gmlgp_back;_inst.gmlimage=YYASSET_REF(0x0100009F);}function gml_RoomCC_rm_halloffame_players_7_Create(_inst,_other){_inst.gmlcolour=global.gmlc_primary; if(yyGetBool(gml_Script_s_is_co_mode(_inst,_inst))){{_inst.gmlcontinue_icon=YYASSET_REF(0x01000015);};};}function gml_RoomCC_rm_halloffame_players_7_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_PlayerHallOfFame");_inst.gmlonClickAction=kgml_Script_btn_click_HOF_players;_inst.gmlcontinue_icon=YYASSET_REF(0x010000D9);}function gml_RoomCC_rm_halloffame_players_8_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_RetroBowls");_inst.gmlonClickAction=kgml_Script_btn_click_HOF_Coach; _inst.gmlcontinue_icon=YYASSET_REF(0x010000A0);}function gml_RoomCC_rm_halloffame_players_9_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_PlayerRecords");_inst.gmlonClickAction=kgml_Script_btn_click_HOF_player_records;}function gml_RoomCC_rm_halloffame_players_10_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_Achievements");_inst.gmlonClickAction=kgml_Script_btn_click_HallOfFame;}function gml_Room_rm_halloffame_player_records_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")), global.gmlc_background);}function gml_RoomCC_rm_halloffame_player_records_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_HallOfFame");}function gml_RoomCC_rm_halloffame_player_records_1_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Home;_inst.gmlgp_mapped_hidden=global.gmlgp_back;_inst.gmlimage=YYASSET_REF(0x0100009F);}function gml_RoomCC_rm_halloffame_player_records_2_PreCreate(_inst,_other){_inst.gmltitle="";}function gml_RoomCC_rm_halloffame_player_records_3_Create(_inst, _other){if(yyGetBool(gml_Script_s_is_co_mode(_inst,_inst))){{_inst.gmlcontinue_icon=YYASSET_REF(0x01000015);};};}function gml_RoomCC_rm_halloffame_player_records_3_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_PlayerHallOfFame");_inst.gmlonClickAction=kgml_Script_btn_click_HOF_players;_inst.gmlcontinue_icon=YYASSET_REF(0x010000D9);}function gml_RoomCC_rm_halloffame_player_records_4_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_RetroBowls");_inst.gmlonClickAction=kgml_Script_btn_click_HOF_Coach; _inst.gmlcontinue_icon=YYASSET_REF(0x010000A0);}function gml_RoomCC_rm_halloffame_player_records_5_Create(_inst,_other){_inst.gmlcolour=global.gmlc_primary;}function gml_RoomCC_rm_halloffame_player_records_5_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_PlayerRecords");_inst.gmlonClickAction=kgml_Script_btn_click_HOF_player_records;}function gml_RoomCC_rm_halloffame_player_records_6_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_Achievements");_inst.gmlonClickAction=kgml_Script_btn_click_HallOfFame; }function gml_RoomCC_rm_halloffame_player_records_7_PreCreate(_inst,_other){_inst.gmlgp_mapped_button=32771;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Reset");_inst.gmlonClickAction=kgml_Script_btn_click_Records_Reset;_inst.gmlgp_flip_icons_position=true;}function gml_Room_rm_home_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_home_1_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst, "ui_Continue");_inst.gmlcontinue_icon=YYASSET_REF(0x01000093);_inst.gmlgp_mapped_hidden=32778;}function gml_RoomCC_rm_home_2_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_League;_inst.gmlgp_mapped_button=32771;}function gml_RoomCC_rm_home_3_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Options;_inst.gmlimage=YYASSET_REF(0x0100009E);}function gml_RoomCC_rm_home_4_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Roster;_inst.gmltext=gml_Script_s_str(_inst, _inst,"ui_Roster");}function gml_RoomCC_rm_home_5_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_HallOfFame");_inst.gmlonClickAction=kgml_Script_btn_click_HallOfFame;}function gml_RoomCC_rm_home_6_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmlfont=global.gmlfnt_small_flex;}function gml_RoomCC_rm_home_7_PreCreate(_inst,_other){_inst.gmlfont=global.gmlfnt_small_flex;}function gml_RoomCC_rm_home_8_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_get_string_year(_inst, _inst,true);_inst.gmlfont=global.gmlfnt_small_flex;}function gml_RoomCC_rm_home_9_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x0100010C);_inst.gmlonClickAction=kgml_Script_btn_click_BengRams;}function gml_RoomCC_rm_home_10_PreCreate(_inst,_other){_inst.gmldraw_icon=YYASSET_REF(0x0100007C);}function gml_RoomCC_rm_home_16_PreCreate(_inst,_other){_inst.gmlrelationship_type=2;}function gml_RoomCC_rm_home_17_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_FrontOffice");_inst.gmlonClickAction=kgml_Script_btn_click_FrontOffice; }function gml_RoomCC_rm_home_18_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Life");_inst.gmlgoto_room=YYASSET_REF(0x03000027);}function gml_RoomCC_rm_home_20_Create(_inst,_other){{};}function gml_RoomCC_rm_home_20_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"game_Title");}function gml_RoomCC_rm_home_22_PreCreate(_inst,_other){_inst.gmldraw_box=true;}function gml_RoomCC_rm_kongregate_0_PreCreate(_inst,_other){_inst.gmlty=128;_inst.gmltext=gml_Script_s_str(_inst, _inst,"ui_VisitKong");}function gml_RoomCC_rm_kongregate_2_PreCreate(_inst,_other){_inst.gmlgoogle=true;}function gml_RoomCC_rm_kongregate_3_PreCreate(_inst,_other){_inst.gmltext="visit Kongregate.com!";_inst.gmlcolour=new Long(4281479935,0,false);}function gml_Room_rm_league_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_league_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_League"); }function gml_RoomCC_rm_league_1_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_League_Back;_inst.gmlimage=YYASSET_REF(0x0100009F);_inst.gmlgp_mapped_hidden=global.gmlgp_back;}function gml_RoomCC_rm_league_2_PreCreate(_inst,_other){_inst.gmlactive=false;}function gml_RoomCC_rm_league_3_PreCreate(_inst,_other){_inst.gmlactive=false;}function gml_RoomCC_rm_league_4_PreCreate(_inst,_other){_inst.gmlactive=false;}function gml_RoomCC_rm_league_5_PreCreate(_inst,_other){_inst.gmlactive=false; }function gml_RoomCC_rm_league_6_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_LeagueAFC;_inst.gmltext=gml_Script_s_str(_inst,_inst,"conf_AFC");}function gml_RoomCC_rm_league_7_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_LeagueNFC;_inst.gmltext=gml_Script_s_str(_inst,_inst,"conf_NFC");}function gml_RoomCC_rm_league_8_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_LeagueSchedule;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Schedule"); }function gml_RoomCC_rm_league_10_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x01000090);_inst.gmlonClickAction=kgml_Script_btn_click_SchedulePrev;_inst.gmlimage_only=true;_inst.gmlgp_mapped_button=32773;}function gml_RoomCC_rm_league_11_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x01000092);_inst.gmlonClickAction=kgml_Script_btn_click_ScheduleNext;_inst.gmlimage_only=true;_inst.gmlgp_mapped_button=32774;}function gml_RoomCC_rm_league_12_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_LeagueMode; _inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_View");}function gml_RoomCC_rm_league_14_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_PlayOffs;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_PlayOffs");}function gml_RoomCC_rm_league_15_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Review");_inst.gmlonClickAction=kgml_Script_btn_click_SeasonReview;_inst.gmlgp_mapped_button=32771;}function gml_Room_rm_options_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")), global.gmlc_background);}function gml_RoomCC_rm_options_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Options");}function gml_RoomCC_rm_options_1_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Options_Exit;_inst.gmlimage=YYASSET_REF(0x0100009F);_inst.gmlgp_mapped_hidden=global.gmlgp_back;}function gml_RoomCC_rm_options_2_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_OptionsDriveLeft;}function gml_RoomCC_rm_options_3_PreCreate(_inst, _other){_inst.gmldraw_box=false;_inst.gmlhalign=2;_inst.gmlfont=global.gmlfnt_small_flex;}function gml_RoomCC_rm_options_4_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_OptionsWeather;}function gml_RoomCC_rm_options_6_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_OptionsSoundFX;}function gml_RoomCC_rm_options_7_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_OptionsZoom;}function gml_RoomCC_rm_options_8_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst, _inst,"ui_Credits");_inst.gmldraw_box=false;}function gml_RoomCC_rm_options_9_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_OptionsMatchLength;}function gml_RoomCC_rm_options_11_PreCreate(_inst,_other){_inst.gmlgoogle=true;}function gml_RoomCC_rm_options_12_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_OptionsTeamEditor;_inst.gmlimage=YYASSET_REF(0x01000094);}function gml_RoomCC_rm_options_13_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_OptionsDifficulty; }function gml_RoomCC_rm_options_14_PreCreate(_inst,_other){_inst.gmlinfo_msg="info_Options_Difficulty";}function gml_RoomCC_rm_options_15_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_ExitGame");_inst.gmldraw_box=false;_inst.gmlhalign=2;}function gml_RoomCC_rm_options_16_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Zoom");_inst.gmldraw_box=false;_inst.gmlhalign=2;}function gml_RoomCC_rm_options_17_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst, _inst,"ui_Sound");_inst.gmldraw_box=false;_inst.gmlhalign=2;}function gml_RoomCC_rm_options_18_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_DriveDirection");_inst.gmldraw_box=false;_inst.gmlhalign=2;}function gml_RoomCC_rm_options_19_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_QtrLength");_inst.gmldraw_box=false;_inst.gmlhalign=2;}function gml_RoomCC_rm_options_20_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_TeamEditor"); _inst.gmldraw_box=false;_inst.gmlhalign=2;}function gml_RoomCC_rm_options_21_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Difficulty");_inst.gmldraw_box=false;_inst.gmlhalign=2;}function gml_RoomCC_rm_options_22_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Weather");_inst.gmldraw_box=false;_inst.gmlhalign=2;}function gml_RoomCC_rm_options_23_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_OptionsNewGame;_inst.gmlimage=YYASSET_REF(0x0100008F); }function gml_RoomCC_rm_options_25_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x01000106);_inst.gmlurl_android="https://t.co/39hMkwwqet";_inst.gmlurl_ios="https://t.co/39hMkwwqet";}function gml_RoomCC_rm_options_26_PreCreate(_inst,_other){_inst.gmlurl_android="https://www.reddit.com/r/RetroBowl";_inst.gmlurl_ios="https://www.reddit.com/r/RetroBowl";_inst.gmlimage=YYASSET_REF(0x01000126);}function gml_RoomCC_rm_options_27_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x0100010E);_inst.gmlurl_android="https://twitter.com/retro_bowl"; _inst.gmlurl_ios="https://twitter.com/retro_bowl";}function gml_RoomCC_rm_options_28_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_MoreGames");_inst.gmlgoto_room=YYASSET_REF(0x03000024);}function gml_RoomCC_rm_options_29_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_BuyMerch");_inst.gmlonClickAction=kgml_Script_btn_click_BuyMerch;}function gml_RoomCC_rm_options_30_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_OptionsSalaryCap; }function gml_RoomCC_rm_options_31_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Roster");_inst.gmldraw_box=false;_inst.gmlhalign=2;_inst.gmlfont=global.gmlfnt_small_flex;}function gml_RoomCC_rm_options_32_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_UnlimitedVersion");}function gml_RoomCC_rm_options_33_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_AimingInvert");_inst.gmldraw_box=false;_inst.gmlhalign=2;}function gml_RoomCC_rm_options_34_PreCreate(_inst, _other){_inst.gmlonClickAction=kgml_Script_btn_click_InvertedThrowing;}function gml_RoomCC_rm_options_35_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Controls");_inst.gmldraw_box=false;_inst.gmlhalign=2;}function gml_RoomCC_rm_options_36_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_OptionsControls;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_View");}function gml_RoomCC_rm_options_37_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_OptionsAutoRun; }function gml_RoomCC_rm_options_38_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_AutoRun");_inst.gmldraw_box=false;_inst.gmlhalign=2;}function gml_RoomCC_rm_options_39_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Scanlines");_inst.gmldraw_box=false;_inst.gmlhalign=2;}function gml_RoomCC_rm_options_40_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_OptionsScanlines;}function gml_RoomCC_rm_options_41_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst, _inst,"btn_KickReturns");_inst.gmldraw_box=false;_inst.gmlhalign=2;}function gml_RoomCC_rm_options_42_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_OptionsKickReturns;}function gml_RoomCC_rm_options_44_Create(_inst,_other){instance_destroy(_inst);}function gml_RoomCC_rm_options_44_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_ExhibitionGame");_inst.gmlonClickAction=kgml_Script_btn_click_exhibition_start;}function gml_RoomCC_rm_options_45_Create(_inst, _other){_inst.visible=false;}function gml_RoomCC_rm_options_45_PreCreate(_inst,_other){_inst.gmltext="Toggle Color";_inst.gmldraw_box=false;_inst.gmlhalign=2;}function gml_RoomCC_rm_options_46_Create(_inst,_other){_inst.visible=false;}function gml_RoomCC_rm_options_46_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_CollegeToggleColor;}function gml_Room_rm_playoffs_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background); }function gml_RoomCC_rm_playoffs_22_PreCreate(_inst,_other){_inst.gmldraw_box=false;}function gml_RoomCC_rm_playoffs_23_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_PlayOffs_Back;_inst.gmlimage=YYASSET_REF(0x0100008E);_inst.gmlgp_mapped_hidden=global.gmlgp_back;}function gml_RoomCC_rm_playoffs_25_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_PlayOffsPlay;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Play");}function gml_RoomCC_rm_playoffs_26_PreCreate(_inst, _other){_inst.gmlonClickAction=kgml_Script_btn_click_PlayOffsSkip;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Skip");_inst.gmlgp_mapped_button=32772;}function gml_RoomCC_rm_playoffs_27_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"conf_AFC");}function gml_RoomCC_rm_playoffs_28_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"conf_NFC");}function gml_RoomCC_rm_playoffs_29_PreCreate(_inst,_other){_inst.gmlconference=0;_inst.gmltext=gml_Script_s_str(_inst, _inst,"conf_AFC");}function gml_RoomCC_rm_playoffs_30_PreCreate(_inst,_other){_inst.gmlconference=1;_inst.gmltext=gml_Script_s_str(_inst,_inst,"conf_NFC");}function gml_Room_rm_playoffs2_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_playoffs2_12_PreCreate(_inst,_other){_inst.gmldraw_box=false;}function gml_RoomCC_rm_playoffs2_13_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_PlayOffs_Back; _inst.gmlimage=YYASSET_REF(0x0100008E);_inst.gmlgp_mapped_hidden=global.gmlgp_back;}function gml_RoomCC_rm_playoffs2_15_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_PlayOffsPlay;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Play");}function gml_RoomCC_rm_playoffs2_16_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_PlayOffsSkip;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Skip");_inst.gmlgp_mapped_button=32771;}function gml_RoomCC_rm_playoffs2_17_PreCreate(_inst, _other){_inst.gmlconference=0;_inst.gmltext=gml_Script_s_str(_inst,_inst,"conf_AFC");}function gml_RoomCC_rm_playoffs2_18_PreCreate(_inst,_other){_inst.gmlconference=1;_inst.gmltext=gml_Script_s_str(_inst,_inst,"conf_NFC");}function gml_RoomCC_rm_playoffs2_21_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"conf_AFC");}function gml_RoomCC_rm_playoffs2_22_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"conf_AFC");}function gml_Room_rm_pre_match_Create(_inst,_other){ layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_pre_match_0_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Home;_inst.gmlimage=YYASSET_REF(0x0100008E);_inst.gmlgp_mapped_hidden=global.gmlgp_back;}function gml_RoomCC_rm_pre_match_1_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Continue;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Play");_inst.gmlcontinue_icon=YYASSET_REF(0x01000093); _inst.gmlgp_mapped_hidden=32778;}function gml_RoomCC_rm_pre_match_2_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_NextGame");}function gml_RoomCC_rm_pre_match_3_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Resting");}function gml_RoomCC_rm_pre_match_4_PreCreate(_inst,_other){_inst.gmldraw_box=false;}function gml_RoomCC_rm_pre_match_5_PreCreate(_inst,_other){_inst.gmlscale=7;_inst.gmlbackground_im=1;}function gml_RoomCC_rm_pre_match_6_PreCreate(_inst, _other){_inst.gmlfacing_right=false;_inst.gmlscale=7;_inst.gmlbackground_im=1;}function gml_RoomCC_rm_pre_match_7_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Ball");}function gml_RoomCC_rm_pre_match_8_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_BallStyle;_inst.gmlimage=YYASSET_REF(0x01000003);}function gml_RoomCC_rm_pre_match_9_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Uniform_Away;}function gml_RoomCC_rm_pre_match_10_PreCreate(_inst, _other){_inst.gmlonClickAction=kgml_Script_btn_click_Uniform_Home;}function gml_RoomCC_rm_pre_match_11_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Uniforms");}function gml_RoomCC_rm_pre_match_12_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_SimGame");_inst.gmlcontinue_icon=YYASSET_REF(0x01000093);_inst.gmlonClickAction=kgml_Script_btn_click_SimGame;}function gml_RoomCC_rm_pre_match_14_Create(_inst,_other){_inst.visible=false;return;if(yyfequal(gml_Script_s_is_co_mode(_inst, _inst),false)){{_inst.visible=false;};};gml_Script_s_refresh_btn_overtime_text(_inst,_inst);}function gml_RoomCC_rm_pre_match_14_PreCreate(_inst,_other){_inst.gmltext="DEBUG OT";_inst.gmlcontinue_icon=YYASSET_REF(0x01000093);_inst.gmlonClickAction=kgml_Script_btn_click_toggle_college_overtime_debug;}function gml_Room_rm_profile_player_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_profile_player_0_PreCreate(_inst, _other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_PlayerProfile");}function gml_RoomCC_rm_profile_player_1_PreCreate(_inst,_other){_inst.gmlhalign=0;_inst.gmldraw_box=false;}function gml_RoomCC_rm_profile_player_2_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmlhalign=0;}function gml_RoomCC_rm_profile_player_3_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Details");}function gml_RoomCC_rm_profile_player_4_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst, _inst,"ui_Attributes");}function gml_RoomCC_rm_profile_player_8_PreCreate(_inst,_other){_inst.gmlhalign=0;_inst.gmldraw_box=false;}function gml_RoomCC_rm_profile_player_9_PreCreate(_inst,_other){_inst.gmldraw_box=false;}function gml_RoomCC_rm_profile_player_10_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmlhalign=0;}function gml_RoomCC_rm_profile_player_11_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmlfont=YYASSET_REF(0x07000002);_inst.gmlshadow=true;}function gml_RoomCC_rm_profile_player_13_PreCreate(_inst, _other){_inst.gmldraw_box=false;}function gml_RoomCC_rm_profile_player_15_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x01000092);_inst.gmlonClickAction=kgml_Script_btn_click_ProfileNext;_inst.gmlimage_only=true;_inst.gmlgp_mapped_button=32774;}function gml_RoomCC_rm_profile_player_16_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x01000090);_inst.gmlonClickAction=kgml_Script_btn_click_ProfilePrev;_inst.gmlimage_only=true;_inst.gmlgp_mapped_button=32773;}function gml_RoomCC_rm_profile_player_17_PreCreate(_inst, _other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Trade");_inst.gmlonClickAction=kgml_Script_btn_click_Profile_Trade;}function gml_RoomCC_rm_profile_player_18_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Meeting");_inst.gmlgoto_room=YYASSET_REF(0x0300001C);}function gml_RoomCC_rm_profile_player_19_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Sign");_inst.gmlonClickAction=kgml_Script_btn_click_Profile_Pick;}function gml_RoomCC_rm_profile_player_20_PreCreate(_inst, _other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"attribute_Catching");_inst.gmlonClickAction=kgml_Script_btn_click_AddSkill;}function gml_RoomCC_rm_profile_player_21_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"attribute_Speed");_inst.gmlonClickAction=kgml_Script_btn_click_AddSpeed;}function gml_RoomCC_rm_profile_player_22_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"attribute_Strength");_inst.gmlonClickAction=kgml_Script_btn_click_AddStrength;}function gml_RoomCC_rm_profile_player_23_PreCreate(_inst, _other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"attribute_Stamina");_inst.gmlonClickAction=kgml_Script_btn_click_AddStamina;}function gml_RoomCC_rm_profile_player_24_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Continue");_inst.gmlonClickAction=kgml_Script_btn_click_XP_Continue;}function gml_RoomCC_rm_profile_player_25_PreCreate(_inst,_other){_inst.gmlhalign=0;_inst.gmldraw_box=false;}function gml_RoomCC_rm_profile_player_26_PreCreate(_inst,_other){_inst.gmlhalign=0;_inst.gmldraw_box=false; _inst.gmlflashtext=true;}function gml_RoomCC_rm_profile_player_27_PreCreate(_inst,_other){_inst.gmlinfo_msg="info_Position";}function gml_RoomCC_rm_profile_player_28_PreCreate(_inst,_other){_inst.gmlinfo_msg="info_Skills";}function gml_RoomCC_rm_profile_player_29_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_get_credit(_inst,_inst);_inst.gmlicon=YYASSET_REF(0x01000069);}function gml_RoomCC_rm_profile_player_30_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Stats");_inst.gmlonClickAction=kgml_Script_btn_click_Profile_Stats; }function gml_RoomCC_rm_profile_player_31_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Rest");_inst.gmlonClickAction=kgml_Script_btn_click_Profile_Rest;}function gml_RoomCC_rm_profile_player_32_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_NotInterested");_inst.gmlonClickAction=kgml_Script_btn_click_Profile_Not_Interested;}function gml_RoomCC_rm_profile_player_33_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x01000094);_inst.gmlonClickAction=kgml_Script_btn_click_EditProfile; _inst.gmlimage_only=true;}function gml_RoomCC_rm_profile_player_36_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_ScoutPlayer");_inst.gmlonClickAction=kgml_Script_btn_click_Profile_ScoutPlayer;_inst.gmlgp_mapped_button=32771;}function gml_RoomCC_rm_profile_player_37_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Profile_Back;_inst.gmlimage=YYASSET_REF(0x0100008E);_inst.gmlgp_mapped_hidden=global.gmlgp_back;}function gml_RoomCC_rm_profile_player_38_PreCreate(_inst, _other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Stats");_inst.gmlonClickAction=kgml_Script_btn_click_Profile_Stats;}function gml_RoomCC_rm_profile_player_39_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Stats");_inst.gmlonClickAction=kgml_Script_btn_click_Profile_Stats;}function gml_RoomCC_rm_profile_player_40_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x01000094);_inst.gmlonClickAction=kgml_Script_btn_click_EditProfile;_inst.gmlimage_only=true;}function gml_RoomCC_rm_profile_player_41_PreCreate(_inst, _other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Meeting");_inst.gmlonClickAction=kgml_Script_btn_meet_teammate;}function gml_RoomCC_rm_profile_player_42_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Stats");_inst.gmlonClickAction=kgml_Script_btn_click_Profile_Stats;}function gml_RoomCC_rm_profile_player_43_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x01000094);_inst.gmlonClickAction=kgml_Script_btn_click_EditProfile;_inst.gmlimage_only=true;}function gml_RoomCC_rm_profile_player_44_PreCreate(_inst, _other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Training");_inst.gmlonClickAction=kgml_Script_btn_click_qb_training;}function gml_RoomCC_rm_profile_player_45_PreCreate(_inst,_other){_inst.gmlinfo_msg="info_Skill_Strength";}function gml_RoomCC_rm_profile_player_46_PreCreate(_inst,_other){_inst.gmlinfo_msg="info_Skill_Speed";}function gml_RoomCC_rm_profile_player_47_PreCreate(_inst,_other){_inst.gmlinfo_msg="info_Skill_Stamina";}function gml_RoomCC_rm_profile_player_48_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst, _inst,"ui_NRG");}function gml_RoomCC_rm_profile_player_49_PreCreate(_inst,_other){_inst.gmltext="0";_inst.gmldraw_box=false;}function gml_RoomCC_rm_profile_player_50_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Buy");_inst.gmlonClickAction=kgml_Script_btn_click_nrg_buy;}function gml_RoomCC_rm_profile_player_51_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Drink");_inst.gmlonClickAction=kgml_Script_btn_click_nrg_drink;}function gml_Room_rm_profile_staff_Create(_inst, _other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_profile_staff_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Staff");}function gml_RoomCC_rm_profile_staff_1_PreCreate(_inst,_other){_inst.gmlhalign=0;_inst.gmldraw_box=false;}function gml_RoomCC_rm_profile_staff_2_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmlhalign=0;}function gml_RoomCC_rm_profile_staff_3_PreCreate(_inst,_other){_inst.gmlhalign=0; _inst.gmldraw_box=false;}function gml_RoomCC_rm_profile_staff_4_PreCreate(_inst,_other){_inst.gmlinfo_msg="info_Staff";}function gml_RoomCC_rm_profile_staff_5_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_StaffProfile;}function gml_RoomCC_rm_profile_staff_6_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x01000090);_inst.gmlonClickAction=kgml_Script_btn_click_StaffProfilePrev;_inst.gmlimage_only=true;_inst.gmlgp_mapped_button=32773;}function gml_RoomCC_rm_profile_staff_7_PreCreate(_inst, _other){_inst.gmlimage=YYASSET_REF(0x01000092);_inst.gmlonClickAction=kgml_Script_btn_click_StaffProfileNext;_inst.gmlimage_only=true;_inst.gmlgp_mapped_button=32774;}function gml_RoomCC_rm_profile_staff_8_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_get_credit(_inst,_inst);_inst.gmlicon=YYASSET_REF(0x01000069);}function gml_RoomCC_rm_profile_staff_9_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_StaffProfileBack;_inst.gmlimage=YYASSET_REF(0x0100008E);_inst.gmlgp_mapped_hidden=global.gmlgp_back; }function gml_RoomCC_rm_profile_staff_11_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Continue");_inst.gmlonClickAction=kgml_Script_btn_click_XP_Continue;}function gml_RoomCC_rm_profile_staff_12_PreCreate(_inst,_other){_inst.gmlhalign=0;_inst.gmldraw_box=false;}function gml_RoomCC_rm_profile_staff_13_PreCreate(_inst,_other){_inst.gmlinfo_msg="info_CoachTrait";}function gml_RoomCC_rm_profile_staff_14_PreCreate(_inst,_other){_inst.gmlhalign=0;_inst.gmldraw_box=false;}function gml_RoomCC_rm_profile_staff_15_PreCreate(_inst, _other){_inst.gmlimage=YYASSET_REF(0x01000094);_inst.gmlonClickAction=kgml_Script_btn_click_EditProfile;_inst.gmlimage_only=true;}function gml_RoomCC_rm_profile_staff_16_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_CurrentHire");}function gml_RoomCC_rm_profile_staff_17_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Hire");_inst.gmlonClickAction=kgml_Script_btn_click_HireStaff;}function gml_RoomCC_rm_profile_staff_18_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst, _inst,"ui_TrainingLight");_inst.gmlonClickAction=kgml_Script_btn_click_TrainingLight;}function gml_RoomCC_rm_profile_staff_19_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_TrainingNormal");_inst.gmlonClickAction=kgml_Script_btn_click_TrainingNormal;}function gml_RoomCC_rm_profile_staff_20_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_TrainingHard");_inst.gmlonClickAction=kgml_Script_btn_click_TrainingHard;}function gml_RoomCC_rm_profile_staff_21_PreCreate(_inst, _other){_inst.gmlinfo_msg="info_TrainingRegime";}function gml_RoomCC_rm_profile_staff_22_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_TrainingRegime");}function gml_Room_rm_post_match_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_post_match_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Continue");_inst.gmlonClickAction=kgml_Script_s_do_postmatch_dilemma; }function gml_RoomCC_rm_post_match_1_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_League;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Results");}function gml_RoomCC_rm_post_match_2_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Result");}function gml_RoomCC_rm_post_match_4_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_get_credit(_inst,_inst);_inst.gmlicon=YYASSET_REF(0x01000069);}function gml_RoomCC_rm_post_match_5_PreCreate(_inst,_other){_inst.gmlactive=false; }function gml_RoomCC_rm_post_match_9_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_poki_btn_click_CoinBoost;_inst.gmlflash=true;_inst.gmlimage=YYASSET_REF(0x0100017F);}function gml_RoomCC_rm_post_match_10_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_View");_inst.gmlonClickAction=kgml_Script_btn_click_LeagueMode;}function gml_Room_rm_roster_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_roster_0_PreCreate(_inst, _other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Roster");}function gml_RoomCC_rm_roster_1_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Roster_Back;_inst.gmlimage=YYASSET_REF(0x0100008E);_inst.gmlgp_mapped_hidden=global.gmlgp_back;}function gml_RoomCC_rm_roster_5_PreCreate(_inst,_other){_inst.gmlinfo_msg="info_StarPlayers";}function gml_RoomCC_rm_roster_7_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_get_credit(_inst,_inst);_inst.gmlicon=YYASSET_REF(0x01000069);}function gml_RoomCC_rm_roster_8_PreCreate(_inst, _other){_inst.gmlimage=YYASSET_REF(0x0100008D);_inst.gmlgp_mapped_button=32771;_inst.gmlgoto_room=YYASSET_REF(0x03000022);_inst.gmlonClickAction=kgml_Script_btn_click_Roster_List;}function gml_RoomCC_rm_roster_10_PreCreate(_inst,_other){_inst.gmldraw_box=false;}function gml_Room_rm_stats_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_stats_2_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst, "ui_Stats");}function gml_RoomCC_rm_stats_3_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x0100009F);_inst.gmlonClickAction=kgml_Script_btn_click_Home;_inst.gmlgp_mapped_hidden=global.gmlgp_back;}function gml_Room_rm_stats_player_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_stats_player_0_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x0100008E);_inst.gmlonClickAction=kgml_Script_btn_click_PlayerProfile_Back; _inst.gmlgp_mapped_hidden=global.gmlgp_back;}function gml_RoomCC_rm_stats_player_1_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_StatsMatch");}function gml_RoomCC_rm_stats_player_2_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_StatsSeason");}function gml_RoomCC_rm_stats_player_3_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_StatsCareer");}function gml_RoomCC_rm_stats_player_4_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_s_reinstate_hof_player; _inst.gmlshow_stars=false;}function gml_RoomCC_rm_stats_player_5_PreCreate(_inst,_other){_inst.gmlstat_type=1;}function gml_RoomCC_rm_stats_player_6_PreCreate(_inst,_other){_inst.gmlstat_type=2;}function gml_RoomCC_rm_stats_player_7_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x01000090);_inst.gmlonClickAction=kgml_Script_btn_click_StatsPrev;_inst.gmlimage_only=true;_inst.gmlgp_mapped_button=32773;}function gml_RoomCC_rm_stats_player_8_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x01000092); _inst.gmlonClickAction=kgml_Script_btn_click_StatsNext;_inst.gmlimage_only=true;_inst.gmlgp_mapped_button=32774;}function gml_RoomCC_rm_stats_player_10_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmlicon=YYASSET_REF(0x010000BE);_inst.gmlicon_frame=1;_inst.gmlicon_left=true;}function gml_RoomCC_rm_stats_player_11_PreCreate(_inst,_other){_inst.gmlicon_left=true;_inst.gmlicon_frame=2;_inst.gmlicon=YYASSET_REF(0x010000BE);_inst.gmldraw_box=false;}function gml_RoomCC_rm_stats_player_12_PreCreate(_inst, _other){_inst.gmlicon=YYASSET_REF(0x010000BE);_inst.gmlicon_left=true;_inst.gmlicon_frame=3;_inst.gmldraw_box=false;}function gml_RoomCC_rm_stats_player_13_PreCreate(_inst,_other){_inst.gmlicon=YYASSET_REF(0x010000BE);_inst.gmlicon_left=true;_inst.gmlicon_frame=0;_inst.gmldraw_box=false;}function gml_RoomCC_rm_stats_player_14_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"tla_MVP");_inst.gmldraw_box=false;}function gml_RoomCC_rm_stats_player_15_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst, _inst,"tla_OPOY");_inst.gmldraw_box=false;}function gml_RoomCC_rm_stats_player_16_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"tla_DPOY");_inst.gmldraw_box=false;}function gml_RoomCC_rm_stats_player_17_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"tla_ROTY");_inst.gmldraw_box=false;}function gml_RoomCC_rm_stats_player_18_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"Rings");_inst.gmldraw_box=false;}function gml_RoomCC_rm_stats_player_19_PreCreate(_inst, _other){_inst.gmldraw_box=false;_inst.gmlicon=YYASSET_REF(0x010000C2);_inst.gmlicon_left=true;}function gml_RoomCC_rm_stats_player_20_PreCreate(_inst,_other){_inst.gmlicon=YYASSET_REF(0x010000BE);_inst.gmlicon_left=true;_inst.gmlicon_frame=4;_inst.gmldraw_box=false;}function gml_RoomCC_rm_stats_player_21_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"tla_RBMVP");_inst.gmldraw_box=false;}function gml_RoomCC_rm_stats_player_22_Create(_inst,_other){var ___sw2210___=ds_map_find_value(yyInst(_inst, _other,YYASSET_REF(0x00000062)).gmlplayer_profile,"position");var ___swc2211___=-1;if(yyCompareVal(___sw2210___,1,g_GMLMathEpsilon,false)==0||yyCompareVal(___sw2210___,2,g_GMLMathEpsilon,false)==0){___swc2211___=0;}switch(___swc2211___){case 0:{break;}default :{_inst.visible=false;}};if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstat_view,2)){_inst.gmlcolour=global.gmlc_primary;};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_inst))){{_inst.visible=false;};};}function gml_RoomCC_rm_stats_player_22_PreCreate(_inst, _other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Rushing");_inst.gmlonClickAction=kgml_Script_btn_click_StatsView2;}function gml_RoomCC_rm_stats_player_23_Create(_inst,_other){var ___sw2214___=ds_map_find_value(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlplayer_profile,"position");var ___swc2215___=-1;if(yyCompareVal(___sw2214___,1,g_GMLMathEpsilon,false)==0){___swc2215___=0;}else if(yyCompareVal(___sw2214___,2,g_GMLMathEpsilon,false)==0){___swc2215___=1;}switch(___swc2215___){case 0:{break; }case 1:{_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Receiving");break;}default :{_inst.visible=false;}};if(yyfequal(yyInst(_inst,_other,YYASSET_REF(0x00000062)).gmlstat_view,1)){_inst.gmlcolour=global.gmlc_primary;};if(yyGetBool(gml_Script_s_is_co_mode(_inst,_inst))){{_inst.visible=false;};};}function gml_RoomCC_rm_stats_player_23_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Passing");_inst.gmlonClickAction=kgml_Script_btn_click_StatsView1;}function gml_Room_rm_meeting_player_Create(_inst, _other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_meeting_player_0_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x0100008E);_inst.gmlgp_mapped_hidden=global.gmlgp_back;_inst.gmlgoto_room=YYASSET_REF(0x03000016);}function gml_RoomCC_rm_meeting_player_5_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Condition");}function gml_RoomCC_rm_meeting_player_6_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst, _inst,"ui_Morale");}function gml_RoomCC_rm_meeting_player_7_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_XPLevel");}function gml_RoomCC_rm_meeting_player_8_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Contract");}function gml_RoomCC_rm_meeting_player_9_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Meeting");}function gml_RoomCC_rm_meeting_player_10_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Meeting"); }function gml_RoomCC_rm_meeting_player_11_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Meeting_Morale;_inst.gmlimage=YYASSET_REF(0x01000069);}function gml_RoomCC_rm_meeting_player_12_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Meeting_Condition;_inst.gmlimage=YYASSET_REF(0x01000069);}function gml_RoomCC_rm_meeting_player_13_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Meeting_LevelUp;_inst.gmlimage=YYASSET_REF(0x01000069);}function gml_RoomCC_rm_meeting_player_14_PreCreate(_inst, _other){_inst.gmlimage=YYASSET_REF(0x01000069);_inst.gmlonClickAction=kgml_Script_btn_click_Meeting_ExtendContract;}function gml_RoomCC_rm_meeting_player_16_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"msg_MeetingDone");_inst.gmldraw_box=false;}function gml_RoomCC_rm_meeting_player_18_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x01000090);_inst.gmlonClickAction=kgml_Script_btn_click_MeetingPrev;_inst.gmlimage_only=true;_inst.gmlgp_mapped_button=32773;}function gml_RoomCC_rm_meeting_player_19_PreCreate(_inst, _other){_inst.gmlimage=YYASSET_REF(0x01000092);_inst.gmlonClickAction=kgml_Script_btn_click_MeetingNext;_inst.gmlimage_only=true;_inst.gmlgp_mapped_button=32774;}function gml_Room_rm_team_editor_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_team_editor_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_TeamEditor");}function gml_RoomCC_rm_team_editor_1_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_EditAFC; _inst.gmltext=gml_Script_s_str(_inst,_inst,"conf_AFC");}function gml_RoomCC_rm_team_editor_2_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_EditNFC;_inst.gmltext=gml_Script_s_str(_inst,_inst,"conf_NFC");}function gml_RoomCC_rm_team_editor_3_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Done");_inst.gmlonClickAction=kgml_Script_btn_click_Options;}function gml_RoomCC_rm_team_editor_4_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_RestoreAllTeams"); _inst.gmlonClickAction=kgml_Script_btn_click_RestoreAllTeams;}function gml_RoomCC_rm_team_editor_5_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_EditCopySlotA;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_CopySlot1");}function gml_RoomCC_rm_team_editor_6_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_EditCopySlotB;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_CopySlot2");}function gml_RoomCC_rm_team_editor_7_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst, _inst,"division_East");_inst.gmldraw_box=false;}function gml_RoomCC_rm_team_editor_8_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"division_North");_inst.gmldraw_box=false;}function gml_RoomCC_rm_team_editor_9_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"division_South");_inst.gmldraw_box=false;}function gml_RoomCC_rm_team_editor_10_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"division_West");_inst.gmldraw_box=false;}function gml_RoomCC_rm_team_editor_12_PreCreate(_inst, _other){_inst.gmlonClickAction=kgml_Script_btn_click_EditCopySlotC;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_CopySlot3");}function gml_RoomCC_rm_team_editor_13_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_EditCopySlotD;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_CopySlot4");}function gml_RoomCC_rm_team_editor_14_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_EditCopySlotE;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_CopySlot5");}function gml_RoomCC_rm_team_editor_16_PreCreate(_inst, _other){_inst.gmlimage=YYASSET_REF(0x01000094);_inst.gmlonClickAction=kgml_Script_btn_click_edit_div1;_inst.gmlimage_only=true;}function gml_RoomCC_rm_team_editor_17_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x01000094);_inst.gmlonClickAction=kgml_Script_btn_click_edit_div2;_inst.gmlimage_only=true;}function gml_RoomCC_rm_team_editor_18_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x01000094);_inst.gmlonClickAction=kgml_Script_btn_click_edit_div3;_inst.gmlimage_only=true;}function gml_RoomCC_rm_team_editor_19_PreCreate(_inst, _other){_inst.gmlimage=YYASSET_REF(0x01000094);_inst.gmlonClickAction=kgml_Script_btn_click_edit_div4;_inst.gmlimage_only=true;}function gml_RoomCC_rm_team_editor_20_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x01000094);_inst.gmlonClickAction=kgml_Script_btn_click_edit_conf1;_inst.gmlimage_only=true;}function gml_RoomCC_rm_team_editor_21_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x01000094);_inst.gmlonClickAction=kgml_Script_btn_click_edit_conf2;_inst.gmlimage_only=true;}function gml_Room_rm_training_Create(_inst, _other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_training_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Training");}function gml_RoomCC_rm_training_1_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_FieldGoal;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_FieldGoal");}function gml_RoomCC_rm_training_2_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Running; _inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Running");}function gml_RoomCC_rm_training_3_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Roster;_inst.gmlimage=YYASSET_REF(0x0100008E);_inst.gmlgp_mapped_hidden=global.gmlgp_back;}function gml_RoomCC_rm_training_5_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Passing;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Passing");}function gml_Room_rm_viewhires_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")), global.gmlc_background);}function gml_RoomCC_rm_viewhires_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_AvailableStaff");}function gml_RoomCC_rm_viewhires_1_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_get_credit(_inst,_inst);_inst.gmlicon=YYASSET_REF(0x01000069);}function gml_RoomCC_rm_viewhires_2_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Available");}function gml_RoomCC_rm_viewhires_3_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_ViewHiresProfile; }function gml_RoomCC_rm_viewhires_4_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_ViewHiresProfile;}function gml_RoomCC_rm_viewhires_5_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_ViewHiresProfile;}function gml_RoomCC_rm_viewhires_6_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_ViewHiresProfile;}function gml_RoomCC_rm_viewhires_7_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_ViewHiresBack;_inst.gmlimage=YYASSET_REF(0x0100008E); _inst.gmlgp_mapped_hidden=global.gmlgp_back;}function gml_RoomCC_rm_viewhires_8_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Current");}function gml_RoomCC_rm_viewhires_9_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_ViewHiresProfile;_inst.gmlactive=false;}function gml_RoomCC_rm_viewhires_10_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_ViewHiresProfile;_inst.gmlactive=false;}function gml_RoomCC_rm_viewhires_11_PreCreate(_inst, _other){_inst.gmlonClickAction=kgml_Script_btn_click_ViewHiresProfile;}function gml_RoomCC_rm_viewhires_12_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_ViewHiresProfile;}function gml_RoomCC_rm_viewhires_13_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_ViewHiresProfile;}function gml_RoomCC_rm_viewhires_14_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_ViewHiresProfile;}function gml_RoomCC_rm_viewhires_18_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst, _inst,"ui_RefreshHires");_inst.gmlonClickAction=kgml_Script_btn_click_ViewHiresReset;_inst.gmlgp_mapped_button=32771;}function gml_Room_rm_watermark_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_watermark_0_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x0100009F);_inst.gmlonClickAction=kgml_Script_btn_click_Home;_inst.gmlgp_mapped_hidden=32770;}function gml_RoomCC_rm_watermark_1_PreCreate(_inst,_other){ _inst.gmldraw_box=false;_inst.gmlalpha=0.2;_inst.gmlfont=YYASSET_REF(0x07000000);}function gml_RoomCC_rm_watermark_2_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmlalpha=0.2;_inst.gmlfont=YYASSET_REF(0x07000000);}function gml_RoomCC_rm_watermark_3_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x0100009F);_inst.gmlonClickAction=kgml_Script_btn_click_Home;_inst.gmlgp_mapped_hidden=global.gmlgp_back;}function gml_RoomCC_rm_watermark_4_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmlalpha=0.2; _inst.gmlhalign=2;}function gml_RoomCC_rm_watermark_6_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_LeagueReportNext;_inst.gmlimage_only=true;_inst.gmlimage=YYASSET_REF(0x01000092);}function gml_RoomCC_rm_watermark_7_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_LeagueReportPrev;_inst.gmlimage=YYASSET_REF(0x01000090);_inst.gmlimage_only=true;}function gml_Room_rm_winners_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")), global.gmlc_background);}function gml_RoomCC_rm_winners_0_PreCreate(_inst,_other){_inst.gmltext=0;}function gml_RoomCC_rm_winners_1_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Continue");_inst.gmlonClickAction=kgml_Script_btn_click_Home_rm_winners;}function gml_RoomCC_rm_winners_2_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmlfont=YYASSET_REF(0x07000002);_inst.gmlshadow=true;}function gml_RoomCC_rm_winners_3_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmlshadow=true; }function gml_RoomCC_rm_winners_4_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmlfont=YYASSET_REF(0x07000002);}function gml_RoomCC_rm_winners_5_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmlshadow=true;}function gml_RoomCC_rm_winners_6_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmlshadow=true;}function gml_Room_rm_xp_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_xp_0_PreCreate(_inst, _other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Continue");_inst.gmlonClickAction=kgml_Script_btn_click_XP_Continue;}function gml_RoomCC_rm_xp_1_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_EndWeek");}function gml_RoomCC_rm_xp_2_PreCreate(_inst,_other){_inst.gmltitle="";}function gml_RoomCC_rm_xp_3_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_XP_Back;_inst.gmlimage=YYASSET_REF(0x0100008E);_inst.gmlgp_mapped_hidden=global.gmlgp_back;}function gml_RoomCC_rm_xp_7_PreCreate(_inst, _other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_RestAll");_inst.gmlonClickAction=kgml_Script_btn_click_RestAll;}function gml_RoomCC_rm_xp_9_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_BoostMorale");_inst.gmlonClickAction=kgml_Script_btn_click_Boost_Morale;}function gml_RoomCC_rm_xp_10_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_BoostCondition");_inst.gmlonClickAction=kgml_Script_btn_click_Boost_Condition;}function gml_RoomCC_rm_xp_15_PreCreate(_inst, _other){_inst.gmlrelationship_type=1;}function gml_RoomCC_rm_xp_16_PreCreate(_inst,_other){_inst.gmlrelationship_type=2;}function gml_RoomCC_rm_xp_17_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_BoostGPA");_inst.gmlonClickAction=kgml_Script_btn_click_Boost_GPA;}function gml_Room_rm_ad_retrogoal_Create(_inst,_other){}function gml_RoomCC_rm_ad_retrogoal_1_PreCreate(_inst,_other){_inst.gmlgoto_room=YYASSET_REF(0x0300000E);_inst.gmlimage=YYASSET_REF(0x01000096);}function gml_Room_rm_options2_Create(_inst, _other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_options2_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_NewStarGames");}function gml_RoomCC_rm_options2_1_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x0100008E);_inst.gmlgp_mapped_hidden=global.gmlgp_back;_inst.gmlgoto_room=YYASSET_REF(0x03000012);}function gml_RoomCC_rm_options2_2_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x0100013A); _inst.gmlonClickAction=kgml_Script_btn_click_ad_RG;}function gml_RoomCC_rm_options2_3_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x01000125);_inst.gmlonClickAction=kgml_Script_btn_click_ad_NSM;}function gml_RoomCC_rm_options2_4_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x0100018A);_inst.gmlonClickAction=kgml_Script_btn_click_ad_NSB;}function gml_RoomCC_rm_options2_5_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x010000F0);_inst.gmlonClickAction=kgml_Script_btn_click_ad_NSS;}function gml_RoomCC_rm_options2_6_PreCreate(_inst, _other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_MusicBy");_inst.gmlonClickAction=kgml_Script_btn_click_MusicBy;}function gml_RoomCC_rm_options2_7_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_YouTube");_inst.gmlonClickAction=kgml_Script_btn_click_YouTube;}function gml_RoomCC_rm_options2_8_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_RecordBook");_inst.gmlonClickAction=kgml_Script_btn_click_RecordBook;}function gml_RoomCC_rm_options2_9_PreCreate(_inst, _other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_Leagues");_inst.gmlonClickAction=kgml_Script_btn_click_Leagues;}function gml_Room_rm_options_mapping_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_options_mapping_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Controls");}function gml_RoomCC_rm_options_mapping_1_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x0100008E); _inst.gmlgp_mapped_hidden=global.gmlgp_back;_inst.gmlgoto_room=YYASSET_REF(0x03000012);}function gml_RoomCC_rm_options_mapping_2_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"Map_Tab1_Name");_inst.gmlonClickAction=kgml_Script_btn_click_OptionsControls1;}function gml_RoomCC_rm_options_mapping_3_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"Map_Tab2_Name");_inst.gmlonClickAction=kgml_Script_btn_click_OptionsControls2;}function gml_RoomCC_rm_options_mapping_4_PreCreate(_inst, _other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"Map_Tab3_Name");_inst.gmlonClickAction=kgml_Script_btn_click_OptionsControls3;}function gml_Room_rm_season_tally_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_season_tally_0_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmlalpha=0.2;_inst.gmlhalign=2;}function gml_RoomCC_rm_season_tally_1_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x0100008E); _inst.gmlonClickAction=kgml_Script_btn_click_SeasonReviewBack;_inst.gmlgp_mapped_hidden=global.gmlgp_back;}function gml_RoomCC_rm_season_tally_2_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmlalpha=0.2;_inst.gmlhalign=2;}function gml_RoomCC_rm_season_tally_3_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_LeagueReportNext;_inst.gmlimage_only=true;_inst.gmlimage=YYASSET_REF(0x01000092);_inst.gmlgp_mapped_button=32774;}function gml_RoomCC_rm_season_tally_4_PreCreate(_inst, _other){_inst.gmlonClickAction=kgml_Script_btn_click_LeagueReportPrev;_inst.gmlimage=YYASSET_REF(0x01000090);_inst.gmlimage_only=true;_inst.gmlgp_mapped_button=32773;}function gml_RoomCC_rm_season_tally_5_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Record");}function gml_RoomCC_rm_season_tally_8_PreCreate(_inst,_other){_inst.gmlhalign=0;_inst.gmldraw_box=false;}function gml_Room_rm_qb_life_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")), global.gmlc_background);}function gml_RoomCC_rm_qb_life_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Life");}function gml_RoomCC_rm_qb_life_1_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Home;_inst.gmlimage=YYASSET_REF(0x0100009F);_inst.gmlgp_mapped_hidden=global.gmlgp_back;}function gml_RoomCC_rm_qb_life_4_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Relationships");}function gml_RoomCC_rm_qb_life_5_PreCreate(_inst,_other){ _inst.gmldraw_icon=YYASSET_REF(0x01000158);}function gml_RoomCC_rm_qb_life_6_PreCreate(_inst,_other){_inst.gmldraw_segments=false;_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_life_7_PreCreate(_inst,_other){_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_life_8_PreCreate(_inst,_other){_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_life_9_PreCreate(_inst,_other){_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_life_10_PreCreate(_inst,_other){_inst.gmldraw_icon=YYASSET_REF(0x01000158);_inst.gmldraw_segments=false; _inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_life_13_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_BuyNRG");_inst.gmlonClickAction=kgml_Script_btn_click_nrg_buy;}function gml_RoomCC_rm_qb_life_14_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_NRG");}function gml_RoomCC_rm_qb_life_15_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_DrinkNRG");_inst.gmlonClickAction=kgml_Script_btn_click_nrg_drink;}function gml_RoomCC_rm_qb_life_16_PreCreate(_inst, _other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Shopping");_inst.gmlgoto_room=YYASSET_REF(0x03000029);}function gml_RoomCC_rm_qb_life_17_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Contract");_inst.gmlgoto_room=YYASSET_REF(0x0300002A);}function gml_RoomCC_rm_qb_life_18_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Training");_inst.gmlonClickAction=kgml_Script_btn_click_qb_training;}function gml_RoomCC_rm_qb_life_19_PreCreate(_inst,_other){_inst.gmltext="0"; _inst.gmldraw_box=false;}function gml_Room_rm_qb_post_match_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_qb_post_match_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Performance");}function gml_RoomCC_rm_qb_post_match_3_PreCreate(_inst,_other){_inst.gmltext="Game Rating";_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_post_match_4_PreCreate(_inst,_other){_inst.gmltext="Game Rating"; _inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_post_match_5_PreCreate(_inst,_other){_inst.gmltext="Game Rating";_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_post_match_6_PreCreate(_inst,_other){_inst.gmltext="Game Rating";_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_post_match_7_PreCreate(_inst,_other){_inst.gmltext="Game Rating";_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_post_match_8_PreCreate(_inst,_other){_inst.gmltext="Game Rating";_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_post_match_10_PreCreate(_inst, _other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Finances");}function gml_RoomCC_rm_qb_post_match_11_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Continue");}function gml_RoomCC_rm_qb_post_match_13_PreCreate(_inst,_other){_inst.gmlrelationship_type=1;}function gml_RoomCC_rm_qb_post_match_14_PreCreate(_inst,_other){_inst.gmlrelationship_type=2;}function gml_Room_rm_qb_shopping_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")), global.gmlc_background);}function gml_RoomCC_rm_qb_shopping_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Shopping");}function gml_RoomCC_rm_qb_shopping_1_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x01000090);_inst.gmlonClickAction=kgml_Script_btn_click_shopping_prev;_inst.gmlimage_only=true;_inst.gmlgp_mapped_button=32773;}function gml_RoomCC_rm_qb_shopping_2_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x01000092);_inst.gmlonClickAction=kgml_Script_btn_click_shopping_next; _inst.gmlimage_only=true;_inst.gmlgp_mapped_button=32774;}function gml_RoomCC_rm_qb_shopping_3_PreCreate(_inst,_other){_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_shopping_4_PreCreate(_inst,_other){_inst.gmlinfo_msg="info_Draft";}function gml_RoomCC_rm_qb_shopping_5_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_get_credit(_inst,_inst);_inst.gmlicon=YYASSET_REF(0x01000069);}function gml_RoomCC_rm_qb_shopping_7_PreCreate(_inst,_other){_inst.gmlgoto_room=YYASSET_REF(0x03000027);_inst.gmlimage=YYASSET_REF(0x0100008E); }function gml_RoomCC_rm_qb_shopping_8_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Items");_inst.gmlonClickAction=kgml_Script_btn_click_qb_items;}function gml_RoomCC_rm_qb_shopping_9_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Vehicles");_inst.gmlonClickAction=kgml_Script_btn_click_qb_vehicles;}function gml_RoomCC_rm_qb_shopping_10_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Property");_inst.gmlonClickAction=kgml_Script_btn_click_qb_property; }function gml_Room_rm_qb_contract_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_qb_contract_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Contract");}function gml_RoomCC_rm_qb_contract_1_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x0100008E);_inst.gmlgp_mapped_hidden=global.gmlgp_back;_inst.gmlgoto_room=YYASSET_REF(0x03000027);}function gml_RoomCC_rm_qb_contract_3_PreCreate(_inst, _other){_inst.gmldraw_box=false;_inst.gmltcolour=global.gmlc_primary;}function gml_RoomCC_rm_qb_contract_4_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Team");_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_contract_5_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmltcolour=global.gmlc_primary;}function gml_RoomCC_rm_qb_contract_6_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Salary");_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_contract_7_PreCreate(_inst, _other){_inst.gmldraw_box=false;_inst.gmltcolour=global.gmlc_primary;}function gml_RoomCC_rm_qb_contract_8_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_TouchdownBonus");_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_contract_9_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmltcolour=global.gmlc_primary;}function gml_RoomCC_rm_qb_contract_10_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Expires");_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_contract_12_PreCreate(_inst, _other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_CurrentContract");}function gml_RoomCC_rm_qb_contract_13_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_None");_inst.gmltcolour=global.gmlc_primary;}function gml_RoomCC_rm_qb_contract_14_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Team");_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_contract_15_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmltext=gml_Script_s_str(_inst, _inst,"ui_None");_inst.gmltcolour=global.gmlc_primary;}function gml_RoomCC_rm_qb_contract_16_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Salary");_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_contract_17_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_None");_inst.gmltcolour=global.gmlc_primary;}function gml_RoomCC_rm_qb_contract_18_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_TouchdownBonus");_inst.gmldraw_box=false; }function gml_RoomCC_rm_qb_contract_19_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_None");_inst.gmltcolour=global.gmlc_primary;}function gml_RoomCC_rm_qb_contract_20_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Expires");_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_contract_21_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_NewContract");}function gml_RoomCC_rm_qb_contract_22_PreCreate(_inst,_other){ _inst.gmltext="-";_inst.gmlonClickAction=kgml_Script_btn_contract_salary_minus;}function gml_RoomCC_rm_qb_contract_23_PreCreate(_inst,_other){_inst.gmltext="+";_inst.gmlonClickAction=kgml_Script_btn_contract_salary_plus;}function gml_RoomCC_rm_qb_contract_24_PreCreate(_inst,_other){_inst.gmltext="+";_inst.gmlonClickAction=kgml_Script_btn_contract_tdbonus_plus;}function gml_RoomCC_rm_qb_contract_25_PreCreate(_inst,_other){_inst.gmltext="-";_inst.gmlonClickAction=kgml_Script_btn_contract_tdbonus_minus; }function gml_RoomCC_rm_qb_contract_26_PreCreate(_inst,_other){_inst.gmltext="+";_inst.gmlonClickAction=kgml_Script_btn_contract_length_plus;}function gml_RoomCC_rm_qb_contract_27_PreCreate(_inst,_other){_inst.gmltext="-";_inst.gmlonClickAction=kgml_Script_btn_contract_length_minus;}function gml_RoomCC_rm_qb_contract_28_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Negotiate");_inst.gmlonClickAction=kgml_Script_btn_contract_negotiate;}function gml_RoomCC_rm_qb_contract_30_PreCreate(_inst, _other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Reject");_inst.gmlonClickAction=kgml_Script_s_reject_contract;}function gml_Room_rm_qb_negotiate_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_qb_negotiate_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Negotiate");}function gml_RoomCC_rm_qb_negotiate_1_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x0100008E);_inst.gmlgp_mapped_hidden=global.gmlgp_back; _inst.gmlgoto_room=YYASSET_REF(0x0300002A);}function gml_RoomCC_rm_qb_negotiate_2_PreCreate(_inst,_other){_inst.gmlimage=_inst.gmlspr_arrowUs;_inst.gmlonClickAction=kgml_Script_btn_negotiate_higher;}function gml_RoomCC_rm_qb_negotiate_3_PreCreate(_inst,_other){_inst.gmlimage=_inst.gmlspr_arrowDs;_inst.gmlonClickAction=kgml_Script_btn_negotiate_lower;}function gml_RoomCC_rm_qb_negotiate_5_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmlflashtext=true;_inst.gmlfont=YYASSET_REF(0x07000003);}function gml_RoomCC_rm_qb_negotiate_6_PreCreate(_inst, _other){_inst.gmldraw_box=false;_inst.gmltext=gml_Script_s_str(_inst,_inst,"instrucs_Negotiate");}function gml_Room_rm_qb_post_training_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_qb_post_training_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Performance");}function gml_RoomCC_rm_qb_post_training_3_PreCreate(_inst,_other){_inst.gmltext="Game Rating";_inst.gmldraw_box=false; }function gml_RoomCC_rm_qb_post_training_4_PreCreate(_inst,_other){_inst.gmltext="Game Rating";_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_post_training_5_PreCreate(_inst,_other){_inst.gmltext="Game Rating";_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_post_training_6_PreCreate(_inst,_other){_inst.gmltext="Game Rating";_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_post_training_7_PreCreate(_inst,_other){_inst.gmltext="Game Rating";_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_post_training_8_PreCreate(_inst, _other){_inst.gmltext="Game Rating";_inst.gmldraw_box=false;}function gml_RoomCC_rm_qb_post_training_10_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Finances");}function gml_RoomCC_rm_qb_post_training_11_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Continue");}function gml_RoomCC_rm_qb_post_training_13_PreCreate(_inst,_other){_inst.gmlrelationship_type=1;}function gml_RoomCC_rm_qb_post_training_14_PreCreate(_inst,_other){_inst.gmlrelationship_type=2; }function gml_Room_rm_draft_college_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_Room_rm_profile_boss_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_profile_boss_0_PreCreate(_inst,_other){_inst.gmlhalign=0;_inst.gmldraw_box=false;}function gml_RoomCC_rm_profile_boss_1_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmlhalign=0; }function gml_RoomCC_rm_profile_boss_2_PreCreate(_inst,_other){_inst.gmlhalign=0;_inst.gmldraw_box=false;}function gml_RoomCC_rm_profile_boss_3_PreCreate(_inst,_other){_inst.gmlinfo_msg="info_HeadCoach";}function gml_RoomCC_rm_profile_boss_4_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_StaffProfile;}function gml_RoomCC_rm_profile_boss_5_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_get_credit(_inst,_inst);_inst.gmlicon=YYASSET_REF(0x01000069);}function gml_RoomCC_rm_profile_boss_6_PreCreate(_inst, _other){_inst.gmlhalign=2;_inst.gmldraw_box=false;}function gml_RoomCC_rm_profile_boss_7_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_CurrentHire");}function gml_RoomCC_rm_profile_boss_8_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_YourHistory");}function gml_RoomCC_rm_profile_boss_9_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_YourRecord");}function gml_RoomCC_rm_profile_boss_10_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst, _inst,"ui_RetroBowlRecord");}function gml_RoomCC_rm_profile_boss_11_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_StaffProfileBack;_inst.gmlimage=YYASSET_REF(0x0100008E);_inst.gmlgp_mapped_hidden=global.gmlgp_back;}function gml_RoomCC_rm_profile_boss_12_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x01000094);_inst.gmlonClickAction=kgml_Script_btn_click_EditProfile;_inst.gmlimage_only=true;}function gml_RoomCC_rm_profile_boss_13_PreCreate(_inst,_other){_inst.gmldraw_box=false; _inst.gmlhalign=0;}function gml_RoomCC_rm_profile_boss_14_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmlhalign=0;}function gml_RoomCC_rm_profile_boss_15_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Staff");}function gml_RoomCC_rm_profile_boss_16_PreCreate(_inst,_other){_inst.gmlinfo_msg="info_GPAExplanation";}function gml_Room_rm_exhibition_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_exhibition_0_PreCreate(_inst, _other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_ExhibitionGame");}function gml_RoomCC_rm_exhibition_1_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x01000096);_inst.gmlonClickAction=kgml_Script_btn_click_exhibition_exit;}function gml_RoomCC_rm_exhibition_2_PreCreate(_inst,_other){_inst.gmlscale=7;_inst.gmlbackground_im=1;}function gml_RoomCC_rm_exhibition_3_PreCreate(_inst,_other){_inst.gmlfacing_right=false;_inst.gmlscale=7;_inst.gmlbackground_im=1;}function gml_RoomCC_rm_exhibition_4_PreCreate(_inst, _other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Ball");}function gml_RoomCC_rm_exhibition_5_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Uniforms");}function gml_RoomCC_rm_exhibition_6_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x01000003);_inst.gmlonClickAction=kgml_Script_btn_click_BallStyle;}function gml_RoomCC_rm_exhibition_7_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Uniform_Away;}function gml_RoomCC_rm_exhibition_8_PreCreate(_inst, _other){_inst.gmlonClickAction=kgml_Script_btn_click_Uniform_Home;}function gml_RoomCC_rm_exhibition_9_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_ChangeTeam");_inst.gmlonClickAction=kgml_Script_btn_click_ChangeTeamAway;}function gml_RoomCC_rm_exhibition_10_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_ChangeTeam");_inst.gmlonClickAction=kgml_Script_btn_click_ChangeTeamHome;}function gml_RoomCC_rm_exhibition_11_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_exhibition_controller_0; }function gml_RoomCC_rm_exhibition_12_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_exhibition_controller_1;}function gml_RoomCC_rm_exhibition_13_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Exhibition_Play;_inst.gmlimage=YYASSET_REF(0x01000091);}function gml_RoomCC_rm_exhibition_14_PreCreate(_inst,_other){_inst.gmlgoto_room=YYASSET_REF(0x03000030);_inst.gmlimage=YYASSET_REF(0x0100009E);}function gml_RoomCC_rm_exhibition_15_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_Exhibition_Play; _inst.gmlimage=YYASSET_REF(0x01000091);}function gml_RoomCC_rm_exhibition_16_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Roster");_inst.gmlonClickAction=kgml_Script_btn_click_RosterTeamAway;}function gml_RoomCC_rm_exhibition_17_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Roster");_inst.gmlonClickAction=kgml_Script_btn_click_RosterTeamHome;}function gml_RoomCC_rm_exhibition_19_PreCreate(_inst,_other){_inst.gmldraw_box=false;_inst.gmltext="P2";}function gml_RoomCC_rm_exhibition_20_PreCreate(_inst, _other){_inst.gmldraw_box=false;_inst.gmltext="P1";}function gml_Room_rm_options_exh_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_options_exh_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Options");}function gml_RoomCC_rm_options_exh_1_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x0100008E);_inst.gmlgp_mapped_hidden=global.gmlgp_back;_inst.gmlgoto_room=YYASSET_REF(0x0300002F); }function gml_RoomCC_rm_options_exh_2_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_OptionsDriveLeft_Exh;}function gml_RoomCC_rm_options_exh_3_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_OptionsWeather_Exh;}function gml_RoomCC_rm_options_exh_4_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_OptionsMatchLength_Exh;}function gml_RoomCC_rm_options_exh_5_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_DriveDirection"); _inst.gmldraw_box=false;_inst.gmlhalign=2;}function gml_RoomCC_rm_options_exh_6_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_QtrLength");_inst.gmldraw_box=false;_inst.gmlhalign=2;}function gml_RoomCC_rm_options_exh_7_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Weather");_inst.gmldraw_box=false;_inst.gmlhalign=2;}function gml_RoomCC_rm_options_exh_8_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"btn_KickReturns");_inst.gmldraw_box=false; _inst.gmlhalign=2;}function gml_RoomCC_rm_options_exh_9_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_OptionsKickReturns_Exh;}function gml_Room_rm_exhibition_postmatch_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_exhibition_postmatch_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Result");}function gml_RoomCC_rm_exhibition_postmatch_2_PreCreate(_inst,_other){ _inst.gmlgoto_room=YYASSET_REF(0x0300002F);_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Continue");}function gml_Room_rm_exhibition_options_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_exhibition_options_0_PreCreate(_inst,_other){_inst.gmltext=gml_Script_s_str(_inst,_inst,"ui_Options");}function gml_RoomCC_rm_exhibition_options_1_PreCreate(_inst,_other){_inst.gmlimage=YYASSET_REF(0x0100008E);_inst.gmlonClickAction=kgml_Script_btn_click_exhibition_exit; }function gml_RoomCC_rm_exhibition_options_2_PreCreate(_inst,_other){_inst.gmltitle=gml_Script_s_str(_inst,_inst,"ui_Controllers");}function gml_RoomCC_rm_exhibition_options_3_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_exhibition_switch_start;_inst.gmlimage=YYASSET_REF(0x01000091);}function gml_RoomCC_rm_exhibition_options_4_PreCreate(_inst,_other){_inst.gmlonClickAction=kgml_Script_btn_click_exhibition_controllers;}function gml_RoomCC_rm_exhibition_options_5_PreCreate(_inst, _other){_inst.gmlaction_create=kgml_Script_rm_exhibition_options_create;}function gml_Room_rm_choose_team_college_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_choose_team_college_0_PreCreate(_inst,_other){_inst.gmlaction_create=kgml_Script_s_rm_choose_team_co_init;}function gml_Room_rm_league_college_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background); }function gml_RoomCC_rm_league_college_0_PreCreate(_inst,_other){_inst.gmlaction_create=kgml_Script_s_rm_league_co_init;}function gml_Room_rm_debug_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_debug_0_PreCreate(_inst,_other){_inst.gmlaction_create=kgml_Script_s_debug_room_init;}function gml_Room_rm_postseason_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")), global.gmlc_background);}function gml_RoomCC_rm_postseason_0_PreCreate(_inst,_other){_inst.gmlaction_create=kgml_Script_s_rm_postseason_init;}function gml_Room_rm_editor_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")),global.gmlc_background);}function gml_RoomCC_rm_editor_0_PreCreate(_inst,_other){_inst.gmlaction_create=kgml_Script_s_rm_editor_init;}function gml_Room_rm_edit_competition_Create(_inst,_other){layer_background_blend(layer_background_get_id(layer_get_id("Background")), global.gmlc_background);}function gml_RoomCC_rm_edit_competition_0_PreCreate(_inst,_other){_inst.gmlaction_create=kgml_Script_s_rm_edit_competition_init;}function gmlInitGlobal(){global.gmlg_version=0;global.gmlg_savedelay=0;global.gmlg_optionsave=0;global.gmlg_savename1=0;global.gmlg_savename2=0;global.gmlg_savename3=0;global.gmlg_savename4=0;global.gmlg_savename5=0;global.gmlg_savename_exh=0;global.gmlc_background=0;global.gmlc_shadow=0;global.gmlc_primary=0;global.gmlc_highlight=0;global.gmlc_buttons=0; global.gmlc_routes=0;global.gmlc_routes_rb=0;global.gmlc_headcoach=0;global.gmlc_offense=0;global.gmlc_defense=0;global.gmlc_specialteams=0;global.gmlc_toxic=0;global.gmlc_backfill=0;global.gmlui_skin=0;global.gmlcolorHelmet=0;global.gmlcolorLogo=0;global.gmlcolorShirt=0;global.gmlcolorSleeve=0;global.gmlcolorPants=0;global.gmlcolorPants_b=0;global.gmlcolorStripe=0;global.gmlcolorSocks=0;global.gmlcolorSocks_b=0;global.gmlcolorSkin=0;global.gmlcolorCleats=0;global.gmlreplaceHelmet=0;global.gmlreplaceLogo=0; global.gmlreplaceShirt=0;global.gmlreplaceSleeve=0;global.gmlreplacePants=0;global.gmlreplacePants_b=0;global.gmlreplaceStripe=0;global.gmlreplaceSocks=0;global.gmlreplaceSocks_b=0;global.gmlreplaceSkin=0;global.gmlreplaceCleats=0;global.gmlg_m=0;global.gmlflickVelX=0;global.gmlflickVelY=0;global.gmlsnd_tackle_time=0;gml_GlobalScript_s_update_shopping_buttons(global,global);gml_GlobalScript_s_college_sorting(global,global);gml_GlobalScript_s_college_league(global,global);gml_GlobalScript_s_college_balance(global, global);gml_GlobalScript_s_count_simmed_games(global,global);gml_GlobalScript_season_tally_scripts(global,global);gml_GlobalScript_s_choose_mode_hc(global,global);gml_GlobalScript_s_benched(global,global);gml_GlobalScript_s_cpu_is_kicking(global,global);gml_GlobalScript_s_college_edit_competition(global,global);gml_GlobalScript_nx_scripts(global,global);gml_GlobalScript_s_get_player_body_type(global,global);gml_GlobalScript_s_college_details(global,global);gml_GlobalScript_s_recruitment_credits(global, global);gml_GlobalScript_qb_contract_scripts(global,global);gml_GlobalScript_s_draw_player_image(global,global);gml_GlobalScript_s_college_gui_helpers(global,global);gml_GlobalScript_s_load_profile_uni(global,global);gml_GlobalScript_s_get_lifestyle(global,global);gml_GlobalScript_btn_meet_teammate(global,global);gml_GlobalScript_s_check_qb_mode_benched(global,global);gml_GlobalScript_s_college_ranking(global,global);gml_GlobalScript_font_scripts(global,global);gml_GlobalScript_btn_click_Details_Back(global, global);gml_GlobalScript_s_replay_controls(global,global);gml_GlobalScript_nrg(global,global);gml_GlobalScript_s_college_draft(global,global);gml_GlobalScript_s_check_ingame_control_change(global,global);gml_GlobalScript_s_remove_player(global,global);gml_GlobalScript_btn_click_BengRams(global,global);gml_GlobalScript_btn_click_OptionsAutoRun(global,global);gml_GlobalScript_title_scripts(global,global);gml_GlobalScript_s_str_helpers(global,global);gml_GlobalScript_s_college_competitions_seeding(global, global);gml_GlobalScript_s_get_achievement(global,global);gml_GlobalScript_s_count_achievement(global,global);gml_GlobalScript_s_get_achievement_percentage(global,global);gml_GlobalScript_s_complete_achievement(global,global);gml_GlobalScript_s_sort_retrobowl_list(global,global);gml_GlobalScript_s_sort_retrobowl_history_list(global,global);gml_GlobalScript_btn_click_EditAFC(global,global);gml_GlobalScript_btn_click_EditNFC(global,global);gml_GlobalScript_btn_click_EditTeam(global,global);gml_GlobalScript_s_round_to_decimal(global, global);gml_GlobalScript_btn_click_TeamEditCancel(global,global);gml_GlobalScript_btn_click_TeamEditDone(global,global);gml_GlobalScript_btn_click_TeamEditRestore(global,global);gml_GlobalScript_btn_click_InputHelmet(global,global);gml_GlobalScript_btn_click_InputLogo(global,global);gml_GlobalScript_btn_click_InputShirt(global,global);gml_GlobalScript_btn_click_InputSleeve(global,global);gml_GlobalScript_btn_click_InputPants(global,global);gml_GlobalScript_btn_click_InputStripe(global,global);gml_GlobalScript_btn_click_InputSocks1(global, global);gml_GlobalScript_btn_click_InputSocks2(global,global);gml_GlobalScript_btn_click_InputEndzone(global,global);gml_GlobalScript_btn_click_EditHelmet(global,global);gml_GlobalScript_btn_click_EditLogo(global,global);gml_GlobalScript_btn_click_EditShirt(global,global);gml_GlobalScript_btn_click_EditSleeve(global,global);gml_GlobalScript_btn_click_EditPants(global,global);gml_GlobalScript_btn_click_EditStripe(global,global);gml_GlobalScript_btn_click_EditSocks1(global,global);gml_GlobalScript_btn_click_EditSocks2(global, global);gml_GlobalScript_btn_click_EditEndzone(global,global);gml_GlobalScript_btn_click_Kit1(global,global);gml_GlobalScript_btn_click_Kit2(global,global);gml_GlobalScript_btn_click_Kit3(global,global);gml_GlobalScript_btn_click_Kit4(global,global);gml_GlobalScript_btn_click_RestoreAllTeams(global,global);gml_GlobalScript_btn_click_KR_Select(global,global);gml_GlobalScript_btn_click_EditCopySlotA(global,global);gml_GlobalScript_s_sound_audience_inc(global,global);gml_GlobalScript_btn_click_EditCopySlotB(global, global);gml_GlobalScript_btn_click_EditCopySlotC(global,global);gml_GlobalScript_btn_click_EditCopySlotD(global,global);gml_GlobalScript_btn_click_EditCopySlotE(global,global);gml_GlobalScript_btn_click_TeamEditMore(global,global);gml_GlobalScript_btn_click_TeamEditMoreDone(global,global);gml_GlobalScript_btn_click_FacilityStadium(global,global);gml_GlobalScript_btn_click_FacilityTraining(global,global);gml_GlobalScript_btn_click_FacilityStaff(global,global);gml_GlobalScript_btn_click_HOF_players(global, global);gml_GlobalScript_btn_click_HOF_player_records(global,global);gml_GlobalScript_btn_click_HOF_Select(global,global);gml_GlobalScript_btn_click_HofNext(global,global);gml_GlobalScript_btn_click_HofPrev(global,global);gml_GlobalScript_btn_click_HOF_Coach(global,global);gml_GlobalScript_btn_click_Records_Reset(global,global);gml_GlobalScript_btn_click_League_Back(global,global);gml_GlobalScript_btn_click_LeaguePanel(global,global);gml_GlobalScript_btn_click_LeagueNFC(global,global);gml_GlobalScript_btn_click_LeagueAFC(global, global);gml_GlobalScript_keyboard_scripts(global,global);gml_GlobalScript_s_college_tools(global,global);gml_GlobalScript_btn_click_LeagueSchedule(global,global);gml_GlobalScript_btn_click_SchedulePrev(global,global);gml_GlobalScript_btn_click_ScheduleNext(global,global);gml_GlobalScript_btn_click_PlayOffs(global,global);gml_GlobalScript_btn_click_PlayOffs_Back(global,global);gml_GlobalScript_btn_click_PlayOffsPlay(global,global);gml_GlobalScript_btn_click_PlayOffsSkip(global,global);gml_GlobalScript_btn_click_Change_Favourite(global, global);gml_GlobalScript_btn_click_ChooseAFC(global,global);gml_GlobalScript_btn_click_ChooseNFC(global,global);gml_GlobalScript_btn_click_ChooseTeam(global,global);gml_GlobalScript_btn_click_ChooseTeamNew(global,global);gml_GlobalScript_btn_click_ChooseReject(global,global);gml_GlobalScript_btn_click_Continue(global,global);gml_GlobalScript_btn_click_Details_Continue(global,global);gml_GlobalScript_s_uniform_helpers(global,global);gml_GlobalScript_btn_click_FrontOffice(global,global);gml_GlobalScript_btn_click_FreeAgents2(global, global);gml_GlobalScript_btn_click_HallOfFame(global,global);gml_GlobalScript_btn_click_Home(global,global);gml_GlobalScript_btn_click_League(global,global);gml_GlobalScript_btn_click_Options(global,global);gml_GlobalScript_btn_click_Profile(global,global);gml_GlobalScript_btn_click_ChooseFace(global,global);gml_GlobalScript_btn_click_ChooseFacePrev(global,global);gml_GlobalScript_btn_click_ChooseFaceNext(global,global);gml_GlobalScript_btn_click_ChooseFaceDone(global,global);gml_GlobalScript_btn_click_Uniforms(global, global);gml_GlobalScript_btn_click_Uniform_Away(global,global);gml_GlobalScript_btn_click_Uniform_Home(global,global);gml_GlobalScript__poki_rewarded_ad(global,global);gml_GlobalScript_btn_click_BallStyle(global,global);gml_GlobalScript_btn_click_LeagueReportNext(global,global);gml_GlobalScript_btn_click_LeagueReportPrev(global,global);gml_GlobalScript_btn_click_OptionsNewGame(global,global);gml_GlobalScript_btn_click_OptionsDriveLeft(global,global);gml_GlobalScript_btn_click_OptionsDriveRight(global, global);gml_GlobalScript_btn_click_OptionsDriveBoth(global,global);gml_GlobalScript_btn_click_OptionsScanlines(global,global);gml_GlobalScript_btn_click_OptionsSoundFX(global,global);gml_GlobalScript_btn_click_OptionsWeather(global,global);gml_GlobalScript_btn_click_OptionsReplays(global,global);gml_GlobalScript_btn_click_OptionsZoom(global,global);gml_GlobalScript_btn_click_InvertedThrowing(global,global);gml_GlobalScript_btn_click_OptionsMatchLength(global,global);gml_GlobalScript_btn_click_OptionsTeamEditor(global, global);gml_GlobalScript_btn_click_OptionsDifficulty(global,global);gml_GlobalScript_btn_click_OptionsSalaryCap(global,global);gml_GlobalScript_chk_click_gamepad(global,global);gml_GlobalScript_s_apple_arcade_helpers(global,global);gml_GlobalScript_btn_click_PlayerProfile(global,global);gml_GlobalScript_btn_click_PlayerProfile_Back(global,global);gml_GlobalScript_btn_click_ProfilePrev(global,global);gml_GlobalScript_btn_click_MeetingPrev(global,global);gml_GlobalScript_btn_click_ProfileNext(global, global);gml_GlobalScript_btn_click_MeetingNext(global,global);gml_GlobalScript_btn_click_Profile_Back(global,global);gml_GlobalScript_btn_click_Profile_Pick(global,global);gml_GlobalScript_btn_click_Profile_Cut(global,global);gml_GlobalScript_btn_click_Profile_Trade(global,global);gml_GlobalScript_btn_click_Profile_Stats(global,global);gml_GlobalScript_btn_click_Profile_Rest(global,global);gml_GlobalScript_btn_click_Profile_Not_Interested(global,global);gml_GlobalScript_btn_click_Profile_ScoutPlayer(global, global);gml_GlobalScript_btn_click_AddSkill(global,global);gml_GlobalScript_btn_click_AddSpeed(global,global);gml_GlobalScript_btn_click_AddStrength(global,global);gml_GlobalScript_btn_click_AddStamina(global,global);gml_GlobalScript_btn_click_StatsNext(global,global);gml_GlobalScript_btn_click_StatsPrev(global,global);gml_GlobalScript_btn_click_StatsView1(global,global);gml_GlobalScript_btn_click_StatsView2(global,global);gml_GlobalScript_btn_click_EditProfile(global,global);gml_GlobalScript_btn_click_Meeting_Morale(global, global);gml_GlobalScript_btn_click_Meeting_Condition(global,global);gml_GlobalScript_s_qb_mode_update_resting(global,global);gml_GlobalScript_btn_click_Meeting_LevelUp(global,global);gml_GlobalScript_btn_click_Meeting_ExtendContract(global,global);gml_GlobalScript_btn_click_FieldGoal(global,global);gml_GlobalScript_btn_click_Running(global,global);gml_GlobalScript_btn_click_Passing(global,global);gml_GlobalScript_s_get_happiness(global,global);gml_GlobalScript_btn_click_Training(global,global);gml_GlobalScript_btn_click_Roster(global, global);gml_GlobalScript_btn_click_Roster_Back(global,global);gml_GlobalScript_btn_click_DraftPrev(global,global);gml_GlobalScript_btn_click_DraftNext(global,global);gml_GlobalScript_btn_click_DraftDone(global,global);gml_GlobalScript_btn_click_FreeAgents(global,global);gml_GlobalScript_btn_click_FreeAgentsBack(global,global);gml_GlobalScript_btn_click_RestAll(global,global);gml_GlobalScript_btn_click_FreeAgentsNext(global,global);gml_GlobalScript_btn_click_FreeAgentsPrev(global,global);gml_GlobalScript_btn_click_FreeAgentsReset(global, global);gml_GlobalScript_btn_click_Boost_Morale(global,global);gml_GlobalScript_btn_click_Boost_Condition(global,global);gml_GlobalScript_btn_click_Boost_Salary_Cap(global,global);gml_GlobalScript_s_set_up_button_kickoff(global,global);gml_GlobalScript_s_college_editor(global,global);gml_GlobalScript_btn_click_DeleteSlot1(global,global);gml_GlobalScript_btn_click_DeleteSlot2(global,global);gml_GlobalScript_btn_click_DeleteSlot3(global,global);gml_GlobalScript_btn_click_DeleteSlot4(global,global); gml_GlobalScript_btn_click_DeleteSlot5(global,global);gml_GlobalScript_btn_click_StaffProfile(global,global);gml_GlobalScript_btn_click_StaffProfileNext(global,global);gml_GlobalScript_s_draw_gamepad_controls(global,global);gml_GlobalScript_s_team_helpers(global,global);gml_GlobalScript_btn_click_StaffProfilePrev(global,global);gml_GlobalScript_btn_click_StaffProfileBack(global,global);gml_GlobalScript_btn_click_HireStaff(global,global);gml_GlobalScript_btn_click_ViewHires(global,global);gml_GlobalScript_btn_click_ViewHiresProfile(global, global);gml_GlobalScript_btn_click_ViewHiresBack(global,global);gml_GlobalScript_btn_click_ViewHiresReset(global,global);gml_GlobalScript_btn_click_TrainingLight(global,global);gml_GlobalScript_btn_click_TrainingNormal(global,global);gml_GlobalScript_btn_click_TrainingHard(global,global);gml_GlobalScript_btn_click_XP_Continue(global,global);gml_GlobalScript_btn_click_XP_Back(global,global);gml_GlobalScript_btn_response_quit_yes(global,global);gml_GlobalScript_btn_response_newgame_commit(global,global); gml_GlobalScript_btn_response_kick_no(global,global);gml_GlobalScript_btn_response_punt_yes(global,global);gml_GlobalScript_btn_response_fg_yes(global,global);gml_GlobalScript_btn_response_1pt(global,global);gml_GlobalScript_btn_response_2pt(global,global);gml_GlobalScript_btn_response_onsidekick_no(global,global);gml_GlobalScript_btn_response_onsidekick_yes(global,global);gml_GlobalScript_btn_response_cut_player_yes(global,global);gml_GlobalScript_btn_response_skip_draft_yes(global,global);gml_GlobalScript_btn_response_pick_player_yes(global, global);gml_GlobalScript_btn_click_OptionsKickReturns(global,global);gml_GlobalScript_btn_response_in_trade_player_yes(global,global);gml_GlobalScript_btn_response_out_trade_player_yes(global,global);gml_GlobalScript_btn_response_out_trade_player_no(global,global);gml_GlobalScript_btn_response_player_meeting_morale_yes(global,global);gml_GlobalScript_btn_response_player_meeting_condition_yes(global,global);gml_GlobalScript_btn_response_player_meeting_levelup_yes(global,global);gml_GlobalScript_btn_response_player_meeting_extend_contract(global, global);gml_GlobalScript_btn_response_boost_morale(global,global);gml_GlobalScript_btn_response_boost_condition(global,global);gml_GlobalScript_btn_response_boost_salary_cap(global,global);gml_GlobalScript_s_confirm_upgrade_stadium(global,global);gml_GlobalScript_s_confirm_upgrade_training(global,global);gml_GlobalScript_s_confirm_upgrade_rehab(global,global);gml_GlobalScript_btn_response_hirestaff(global,global);gml_GlobalScript_btn_response_clearfreeagents(global,global);gml_GlobalScript_btn_response_rest_player_yes(global, global);gml_GlobalScript_btn_response_cointoss_kick(global,global);gml_GlobalScript_btn_response_cointoss_receive(global,global);gml_GlobalScript_btn_response_skip_tutorial(global,global);gml_GlobalScript_btn_response_confirm_new_team(global,global);gml_GlobalScript_s_store_cant_afford(global,global);gml_GlobalScript_s_tip_continue(global,global);gml_GlobalScript_s_qb_mode_auto_xp(global,global);gml_GlobalScript_s_confirm_staff_hire_reset(global,global);gml_GlobalScript_s_confirm_freeagent_hire_reset(global, global);gml_GlobalScript_btn_response_deletegame1(global,global);gml_GlobalScript_btn_response_deletegame2(global,global);gml_GlobalScript_btn_response_deletegame3(global,global);gml_GlobalScript_btn_response_deletegame4(global,global);gml_GlobalScript_btn_response_deletegame5(global,global);gml_GlobalScript_s_simming_action(global,global);gml_GlobalScript_btn_response_hof_select(global,global);gml_GlobalScript_btn_response_records_reset(global,global);gml_GlobalScript_btn_match_kick(global,global); gml_GlobalScript_s_do_prematch_dilemma(global,global);gml_GlobalScript_s_do_postmatch_dilemma(global,global);gml_GlobalScript_s_parse_dilemma(global,global);gml_GlobalScript_s_create_dilemma(global,global);gml_GlobalScript_s_choose_dilemma(global,global);gml_GlobalScript_s_dilemma_choice_1(global,global);gml_GlobalScript_s_dilemma_choice_2(global,global);gml_GlobalScript_s_dilemma_choice(global,global);gml_GlobalScript_s_convert_string_to_sprite(global,global);gml_GlobalScript_s_sort_list_by_column(global, global);gml_GlobalScript_s_check_draft(global,global);gml_GlobalScript_s_create_draftlist(global,global);gml_GlobalScript_s_sound_audience_tck(global,global);gml_GlobalScript_s_create_freeagentlist(global,global);gml_GlobalScript_s_create_freeagent(global,global);gml_GlobalScript_s_create_tradelist(global,global);gml_GlobalScript_s_create_storelist(global,global);gml_GlobalScript_s_create_player_storelist(global,global);gml_GlobalScript_s_count_hires_by_position(global,global);gml_GlobalScript_s_count_players_by_position_store(global, global);gml_GlobalScript_s_get_hire_shortlist(global,global);gml_GlobalScript_s_reset_draft_picks(global,global);gml_GlobalScript_poki_btn_click_CoinBoost(global,global);gml_GlobalScript_s_update_draft_page(global,global);gml_GlobalScript_s_update_freeagents_page(global,global);gml_GlobalScript_s_college_admissions_draft(global,global);gml_GlobalScript_s_remaining_picks(global,global);gml_GlobalScript_s_remaining_picks_by_round(global,global);gml_GlobalScript_s_get_trade_value(global,global);gml_GlobalScript_s_get_trade_value_by_rating(global, global);gml_GlobalScript_s_get_offer_team(global,global);gml_GlobalScript_s_clear_trade_offers(global,global);gml_GlobalScript_s_clear_freeagents(global,global);gml_GlobalScript_s_clear_storelist(global,global);gml_GlobalScript_s_end_draft_round(global,global);gml_GlobalScript_s_received_AI_kickoff(global,global);gml_GlobalScript_s_update_contracts(global,global);gml_GlobalScript_s_aim_AI_kickoff(global,global);gml_GlobalScript_btn_click_SeasonReview(global,global);gml_GlobalScript_s_get_new_salary(global, global);gml_GlobalScript_s_check_expired_contract_message(global,global);gml_GlobalScript_s_get_salary_cap_space(global,global);gml_GlobalScript_s_create_new_save(global,global);gml_GlobalScript_s_loadgame(global,global);gml_GlobalScript_s_savegame(global,global);gml_GlobalScript_s_create_map_options(global,global);gml_GlobalScript_s_count_full_seasons(global,global);gml_GlobalScript_s_load_options(global,global);gml_GlobalScript_s_save_options(global,global);gml_GlobalScript_s_save_backup(global, global);gml_GlobalScript_s_load_map_file(global,global);gml_GlobalScript_s_update_maplist_from_file(global,global);gml_GlobalScript_s_load_strings(global,global);gml_GlobalScript_s_load_teams(global,global);gml_GlobalScript_s_load_team_detail(global,global);gml_GlobalScript_s_load_retrobowl_hof(global,global);gml_GlobalScript_s_load_retrobowl_history(global,global);gml_GlobalScript_s_load_schedule(global,global);gml_GlobalScript_s_get_savename(global,global);gml_GlobalScript_s_get_string_save_details(global, global);gml_GlobalScript_s_destroy_master(global,global);gml_GlobalScript_s_save_uniform_file2(global,global);gml_GlobalScript_s_load_uniform_file2(global,global);gml_GlobalScript_s_load_teamname_from_uniform_file(global,global);gml_GlobalScript_s_load_endzone_from_uniform_file(global,global);gml_GlobalScript_s_create_my_fixture_list(global,global);gml_GlobalScript_s_create_fixdata(global,global);gml_GlobalScript_s_do_schedule(global,global);gml_GlobalScript_s_create_playoffs(global,global);gml_GlobalScript_s_create_playoffs2(global, global);gml_GlobalScript_s_playoffs_12(global,global);gml_GlobalScript_s_get_week_superbowl(global,global);gml_GlobalScript_s_do_playoff_schedule(global,global);gml_GlobalScript_s_get_random_scoredata(global,global);gml_GlobalScript_s_promote_playoff_winner(global,global);gml_GlobalScript_s_add_to_human_fixtures(global,global);gml_GlobalScript_s_update_human_playoff_fixtures(global,global);gml_GlobalScript_s_get_playoff_fixture_by_week(global,global);gml_GlobalScript_s_get_human_fixture_by_week(global, global);gml_GlobalScript_s_get_human_fixture_previous(global,global);gml_GlobalScript_exhibition_scripts(global,global);gml_GlobalScript_s_get_human_fixture_next(global,global);gml_GlobalScript_s_count_remaining_fixtures(global,global);gml_GlobalScript_s_get_division_winner(global,global);gml_GlobalScript_s_get_team_position_by_id(global,global);gml_GlobalScript_s_get_division_winner_name(global,global);gml_GlobalScript_s_get_division_winner_by_seed(global,global);gml_GlobalScript_s_get_division_winner_name_by_seed(global, global);gml_GlobalScript_s_skip_to_week(global,global);gml_GlobalScript_s_clear_playoff_fixtures(global,global);gml_GlobalScript_s_update_team_edit_buttons(global,global);gml_GlobalScript_s_set_up_edit_screen(global,global);gml_GlobalScript_s_color_picker(global,global);gml_GlobalScript_s_set_up_uniforms(global,global);gml_GlobalScript_s_set_up_uniforms_training(global,global);gml_GlobalScript_s_set_up_uniform_profile(global,global);gml_GlobalScript_s_shader_get_uniforms(global,global);gml_GlobalScript_s_shader_set_uniforms(global, global);gml_GlobalScript_s_convert_uniform_colours_all(global,global);gml_GlobalScript_s_convert_uniform_colour(global,global);gml_GlobalScript_s_restore_uniforms_all(global,global);gml_GlobalScript_s_copy_uniforms_slot_a(global,global);gml_GlobalScript_s_copy_uniforms_slot_b(global,global);gml_GlobalScript_s_copy_uniforms_slot_c(global,global);gml_GlobalScript_s_copy_uniforms_slot_d(global,global);gml_GlobalScript_s_set_up_kickoff(global,global);gml_GlobalScript_s_copy_uniforms_slot_e(global,global); gml_GlobalScript_s_update_uniform_name(global,global);gml_GlobalScript_s_copy_teamnames_from_uniform_file(global,global);gml_GlobalScript_s_edit_name(global,global);gml_GlobalScript_btn_click_edit_div1(global,global);gml_GlobalScript_btn_click_edit_div2(global,global);gml_GlobalScript_s_history(global,global);gml_GlobalScript_btn_click_edit_div3(global,global);gml_GlobalScript_btn_click_edit_div4(global,global);gml_GlobalScript_s_college_data_versioning(global,global);gml_GlobalScript_btn_click_edit_conf1(global, global);gml_GlobalScript_btn_click_edit_conf2(global,global);gml_GlobalScript_s_edit_confirm_div1(global,global);gml_GlobalScript_s_edit_confirm_div2(global,global);gml_GlobalScript_s_edit_confirm_div3(global,global);gml_GlobalScript_s_edit_confirm_div4(global,global);gml_GlobalScript_s_edit_confirm_conf1(global,global);gml_GlobalScript_s_edit_confirm_conf2(global,global);gml_GlobalScript_s_populate_division(global,global);gml_GlobalScript_s_populate_schedulebox(global,global);gml_GlobalScript_s_create_credit(global, global);gml_GlobalScript_s_set_up_xp_headers(global,global);gml_GlobalScript_s_count_hof_entries(global,global);gml_GlobalScript_s_set_up_hof_players_screen(global,global);gml_GlobalScript_s_iap_init(global,global);gml_GlobalScript_s_set_up_purchase_ids(global,global);gml_GlobalScript_s_iap_async_android(global,global);gml_GlobalScript_s_iap_async_ios(global,global);gml_GlobalScript_s_iap_purchase_FullVersion(global,global);gml_GlobalScript_s_set_position_kickoff(global,global);gml_GlobalScript_s_iap_purchase_Credits_20(global, global);gml_GlobalScript_s_iap_purchase_Credits_50(global,global);gml_GlobalScript_s_iap_purchase_Credits_100(global,global);gml_GlobalScript_s_iap_purchase_Credits_250(global,global);gml_GlobalScript_s_iap_restore(global,global);gml_GlobalScript_s_open_store(global,global);gml_GlobalScript_s_open_store_nag(global,global);gml_GlobalScript_s_do_nag_message(global,global);gml_GlobalScript_s_do_purchase_message(global,global);gml_GlobalScript_btn_step_check_fullversion(global,global);gml_GlobalScript_btn_step_check_iaps(global, global);gml_GlobalScript_s_freeze_purchase_buttons(global,global);gml_GlobalScript_s_unfreeze_purchase_buttons(global,global);gml_GlobalScript_s_do_info_position(global,global);gml_GlobalScript_s_do_info_skills(global,global);gml_GlobalScript_s_do_info_coachtrait(global,global);gml_GlobalScript_s_do_info_draftpicks(global,global);gml_GlobalScript_s_do_info(global,global);gml_GlobalScript_s_create_camera(global,global);gml_GlobalScript_s_play(global,global);gml_GlobalScript_s_update_poki_scaling(global, global);gml_GlobalScript_s_pre_match(global,global);gml_GlobalScript_s_player_profile_qb_mode(global,global);gml_GlobalScript_s_do_next_week(global,global);gml_GlobalScript_s_start_new_season(global,global);gml_GlobalScript_s_update_team_buttons(global,global);gml_GlobalScript_s_update_job_offer_buttons(global,global);gml_GlobalScript_s_update_options(global,global);gml_GlobalScript_s_get_attitude_icon(global,global);gml_GlobalScript_s_get_credit(global,global);gml_GlobalScript_s_decline_facilities(global, global);gml_GlobalScript_s_do_result_news_qb(global,global);gml_GlobalScript_s_reset_player_meetings(global,global);gml_GlobalScript_s_has_xp_gain(global,global);gml_GlobalScript_s_is_bye_week(global,global);gml_GlobalScript_s_do_bye_week(global,global);gml_GlobalScript_s_do_postmatch_effects(global,global);gml_GlobalScript_s_do_postmatch_fans(global,global);gml_GlobalScript_s_check_intro(global,global);gml_GlobalScript_s_do_result_news(global,global);gml_GlobalScript_s_count_joboffers(global,global); gml_GlobalScript_s_refresh_save_slots(global,global);gml_GlobalScript_s_show_backups(global,global);gml_GlobalScript_s_team_interested(global,global);gml_GlobalScript_s_update_history(global,global);gml_GlobalScript_s_update_history_finish(global,global);gml_GlobalScript_age_scripts(global,global);gml_GlobalScript_s_update_history_playoffs(global,global);gml_GlobalScript_s_college_custom_data(global,global);gml_GlobalScript_s_get_history_by_year(global,global);gml_GlobalScript_s_update_music(global, global);gml_GlobalScript_s_get_ticker_text(global,global);gml_GlobalScript_s_choose_random_face_for_me(global,global);gml_GlobalScript_s_get_kick_direction(global,global);gml_GlobalScript_s_aiming(global,global);gml_GlobalScript_s_update_ball(global,global);gml_GlobalScript_s_do_touchback(global,global);gml_GlobalScript_s_update_ball_fieldgoal(global,global);gml_GlobalScript_s_update_ball_movement(global,global);gml_GlobalScript_s_update_ball_offset(global,global);gml_GlobalScript_s_is_ball_dead(global, global);gml_GlobalScript_s_check_ball_position(global,global);gml_GlobalScript_s_check_ball_collision(global,global);gml_GlobalScript_s_check_tipped(global,global);gml_GlobalScript_s_drop_ball(global,global);gml_GlobalScript_s_check_dummy_collision(global,global);gml_GlobalScript_s_kick_ball(global,global);gml_GlobalScript_s_spike_ball(global,global);gml_GlobalScript_s_college_gui_panels(global,global);gml_GlobalScript_s_set_ball_down(global,global);gml_GlobalScript_s_receive_ball(global,global); gml_GlobalScript_s_opposite_aim(global,global);gml_GlobalScript_s_update_xdead(global,global);gml_GlobalScript_s_set_skills_and_skin(global,global);gml_GlobalScript_s_set_anim(global,global);gml_GlobalScript_s_set_position_offense(global,global);gml_GlobalScript_s_create_news_message(global,global);gml_GlobalScript_s_set_position_defense(global,global);gml_GlobalScript_s_college_postseason(global,global);gml_GlobalScript_s_get_nearest_opponent_by_position(global,global);gml_GlobalScript_s_set_position_defense_fg(global, global);gml_GlobalScript_s_set_position_offense_fg(global,global);gml_GlobalScript_s_get_skin_colour_by_index(global,global);gml_GlobalScript_s_point_to_path(global,global);gml_GlobalScript_s_intercept_object(global,global);gml_GlobalScript_s_cover_object(global,global);gml_GlobalScript_s_get_nearest_opponent(global,global);gml_GlobalScript_s_aim_for_nearest_opponent(global,global);gml_GlobalScript_s_get_distance_to_nearest_opponent(global,global);gml_GlobalScript_s_get_distance_to_furthest_teammate(global, global);gml_GlobalScript_s_get_destination(global,global);gml_GlobalScript_s_check_human_control(global,global);gml_GlobalScript_s_check_tackling(global,global);gml_GlobalScript_s_stop_tackling(global,global);gml_GlobalScript_s_check_dive(global,global);gml_GlobalScript_s_get_quarterback(global,global);gml_GlobalScript_s_get_kicker(global,global);gml_GlobalScript_s_can_run(global,global);gml_GlobalScript_s_is_in_the_clear(global,global);gml_GlobalScript_s_ball_holder_goalside(global,global);gml_GlobalScript_s_opponent_goalside(global, global);gml_GlobalScript_s_y_on_myside(global,global);gml_GlobalScript_s_aim_AI_offense(global,global);gml_GlobalScript_s_aim_AI_defense(global,global);gml_GlobalScript_s_received_AI_new(global,global);gml_GlobalScript_s_can_throw(global,global);gml_GlobalScript_s_sprite_holding_ball(global,global);gml_GlobalScript_s_is_falling(global,global);gml_GlobalScript_is_defensiveback(global,global);gml_GlobalScript_s_get_qb_name(global,global);gml_GlobalScript_s_get_kicker_name(global,global);gml_GlobalScript_s_get_holder_name(global, global);gml_GlobalScript_s_get_opponent_team_tla(global,global);gml_GlobalScript_s_set_up_play(global,global);gml_GlobalScript_s_update_commentary(global,global);gml_GlobalScript_s_choose_defensive_formation(global,global);gml_GlobalScript_s_set_up_fieldgoal(global,global);gml_GlobalScript_s_subtract_time(global,global);gml_GlobalScript_s_update_game_timer(global,global);gml_GlobalScript_s_update_game_clock(global,global);gml_GlobalScript_s_update_yard_gain(global,global);gml_GlobalScript_s_set_rewarded_route(global, global);gml_GlobalScript_s_switch_drivedirection(global,global);gml_GlobalScript_s_destroy_match_objects(global,global);gml_GlobalScript_s_action_result(global,global);gml_GlobalScript_s_is_quarter_over(global,global);gml_GlobalScript_s_is_on_pitch(global,global);gml_GlobalScript__poki_is_mobile(global,global);gml_GlobalScript_s_is_on_pitch_xy(global,global);gml_GlobalScript_s_end_match(global,global);gml_GlobalScript_s_update_stats(global,global);gml_GlobalScript_s_convert_scrimmage_to_goal_distance(global, global);gml_GlobalScript_s_kick_off(global,global);gml_GlobalScript_s_punt(global,global);gml_GlobalScript_s_change_possession(global,global);gml_GlobalScript_s_tackle_failure(global,global);gml_GlobalScript_s_last_secs_of_half(global,global);gml_GlobalScript_s_reset_wind(global,global);gml_GlobalScript_s_change_wind(global,global);gml_GlobalScript_s_force_quit(global,global);gml_GlobalScript_s_do_audible(global,global);gml_GlobalScript_s_do_timeout(global,global);gml_GlobalScript_s_check_win_after_turnover(global, global);gml_GlobalScript_s_clear_clock(global,global);gml_GlobalScript_s_fieldtxt(global,global);gml_GlobalScript_s_fieldtxt_yards(global,global);gml_GlobalScript_s_sound_audience_idle(global,global);gml_GlobalScript_s_create_match_message(global,global);gml_GlobalScript_s_draw_commentary(global,global);gml_GlobalScript_s_draw_scoreboard(global,global);gml_GlobalScript_s_draw_scrimmage(global,global);gml_GlobalScript_s_draw_wind(global,global);gml_GlobalScript_s_draw_kicking_power(global,global); gml_GlobalScript_s_draw_my_route(global,global);gml_GlobalScript_s_draw_kick_cone(global,global);gml_GlobalScript_s_check_draft_qb(global,global);gml_GlobalScript_s_update_my_shadow(global,global);gml_GlobalScript_s_set_up_practice(global,global);gml_GlobalScript_s_practice_passing(global,global);gml_GlobalScript_s_reinstate_hof_player(global,global);gml_GlobalScript_s_practice_running(global,global);gml_GlobalScript_s_practice_running_qb(global,global);gml_GlobalScript_s_obj_controller_helpers(global, global);gml_GlobalScript_s_create_dummy(global,global);gml_GlobalScript_s_create_boundary(global,global);gml_GlobalScript_debug_scripts(global,global);gml_GlobalScript_s_sound_kick(global,global);gml_GlobalScript_s_sound_throw(global,global);gml_GlobalScript_s_sound_post(global,global);gml_GlobalScript_s_sound_audience_dis(global,global);gml_GlobalScript_s_sound_audience_fg(global,global);gml_GlobalScript_s_sound_bounce(global,global);gml_GlobalScript_s_sound_tackle(global,global);gml_GlobalScript_s_sound_oof(global, global);gml_GlobalScript_s_sound_dive(global,global);gml_GlobalScript_s_sound_loop(global,global);gml_GlobalScript_s_qb_run(global,global);gml_GlobalScript_s_throw_ball(global,global);gml_GlobalScript_s_record_frame(global,global);gml_GlobalScript_s_replay_frame(global,global);gml_GlobalScript_s_start_replay(global,global);gml_GlobalScript_s_end_replay(global,global);gml_GlobalScript_s_get_qb_pmap(global,global);gml_GlobalScript_s_create_message(global,global);gml_GlobalScript_s_meter_change(global, global);gml_GlobalScript_s_meter_change_end(global,global);gml_GlobalScript_s_notification(global,global);gml_GlobalScript_s_msg_clear(global,global);gml_GlobalScript_s_msg_clear_info_draft(global,global);gml_GlobalScript_s_add_news(global,global);gml_GlobalScript_s_check_for_news(global,global);gml_GlobalScript_s_news_clear(global,global);gml_GlobalScript_s_do_banner_draft(global,global);gml_GlobalScript_s_do_review_message(global,global);gml_GlobalScript_btn_response_review_yes(global,global); gml_GlobalScript_s_edit_field(global,global);gml_GlobalScript_s_edit_cancel(global,global);gml_GlobalScript_s_edit_confirm_profile(global,global);gml_GlobalScript_s_msg_timeouts(global,global);gml_GlobalScript_s_achievements(global,global);gml_GlobalScript_s_get_record(global,global);gml_GlobalScript_s_check_record(global,global);gml_GlobalScript_s_check_record_text(global,global);gml_GlobalScript_s_sort_record_list(global,global);gml_GlobalScript_s_get_player_name_for_record(global,global);gml_GlobalScript_s_check_repeat_retrobowls(global, global);gml_GlobalScript_s_create_player(global,global);gml_GlobalScript_s_sort_players(global,global);gml_GlobalScript_s_create_new_roster(global,global);gml_GlobalScript_s_create_new_roster_newteam(global,global);gml_GlobalScript_s_lastname_already_on_roster(global,global);gml_GlobalScript_s_position_already_on_roster(global,global);gml_GlobalScript_s_get_required_position(global,global);gml_GlobalScript_s_get_player_rating(global,global);gml_GlobalScript_s_get_player_potential(global,global); gml_GlobalScript_s_obj_player_draw_begin(global,global);gml_GlobalScript_s_college_competitions(global,global);gml_GlobalScript_s_get_player_by_position(global,global);gml_GlobalScript_s_get_player_by_lname(global,global);gml_GlobalScript_s_get_random_player(global,global);gml_GlobalScript_s_get_random_player_by_position(global,global);gml_GlobalScript_s_get_random_player_defensive(global,global);gml_GlobalScript_s_get_random_player_offensive(global,global);gml_GlobalScript_s_get_random_coach(global, global);gml_GlobalScript_btn_click_qb_items(global,global);gml_GlobalScript_s_count_players_by_position(global,global);gml_GlobalScript_s_count_players_onfield_by_position(global,global);gml_GlobalScript_s_count_defenders(global,global);gml_GlobalScript_btn_click_OptionsControls(global,global);gml_GlobalScript_s_get_position_colour(global,global);gml_GlobalScript_s_gui_matchline(global,global);gml_GlobalScript_s_increase_player_attribute(global,global);gml_GlobalScript_s_player_at_max_potential(global, global);gml_GlobalScript_s_is_offensive_player(global,global);gml_GlobalScript_s_is_defensive_player(global,global);gml_GlobalScript_s_get_average_yards(global,global);gml_GlobalScript_s_get_player_name(global,global);gml_GlobalScript_s_get_meeting_cost_morale(global,global);gml_GlobalScript_s_get_meeting_cost_condition(global,global);gml_GlobalScript_s_get_meeting_cost_levelup(global,global);gml_GlobalScript_s_get_meeting_cost_delay_retirement(global,global);gml_GlobalScript_s_get_meeting_cost_extend_contract(global, global);gml_GlobalScript_s_get_match_rating(global,global);gml_GlobalScript_s_reset_match_stats(global,global);gml_GlobalScript_s_toxic_effect_on_morale(global,global);gml_GlobalScript_s_match_rating_effect_on_morale(global,global);gml_GlobalScript_s_training_regime_effect_on_morale(global,global);gml_GlobalScript_s_injury_effect_on_attitude(global,global);gml_GlobalScript_s_rehab_effect(global,global);gml_GlobalScript_s_add_xp_gain_all(global,global);gml_GlobalScript_s_check_for_injury(global,global); gml_GlobalScript_s_count_injuries(global,global);gml_GlobalScript_s_count_injuries_weeks(global,global);gml_GlobalScript_s_college_reputation(global,global);gml_GlobalScript_s_choose_face(global,global);gml_GlobalScript_s_get_max_age(global,global);gml_GlobalScript_s_get_max_age_normal(global,global);gml_GlobalScript_s_get_num_audibles(global,global);gml_GlobalScript_s_get_morale(global,global);gml_GlobalScript_s_get_condition_squad(global,global);gml_GlobalScript_s_adjust_team_morale(global,global); gml_GlobalScript_s_set_team_morale(global,global);gml_GlobalScript_s_position_edit_name_btn(global,global);gml_GlobalScript_s_update_rest_all_button(global,global);gml_GlobalScript_s_all_players_resting(global,global);gml_GlobalScript_s_rest_all_players(global,global);gml_GlobalScript_s_tag_backups(global,global);gml_GlobalScript_s_college_choose_team(global,global);gml_GlobalScript_s_is_backup(global,global);gml_GlobalScript_s_do_player_awards(global,global);gml_GlobalScript_s_award_sb_rings(global, global);gml_GlobalScript_s_round_player_attributes(global,global);gml_GlobalScript_s_get_store_player_by_position(global,global);gml_GlobalScript_s_create_new_stafflist(global,global);gml_GlobalScript_s_create_staff(global,global);gml_GlobalScript_s_create_hirelist(global,global);gml_GlobalScript_s_sort_hirelist(global,global);gml_GlobalScript_s_reset_staff_hire_list(global,global);gml_GlobalScript_s_get_staff(global,global);gml_GlobalScript_s_is_staff(global,global);gml_GlobalScript_s_get_coach_cost(global, global);gml_GlobalScript_s_coach_trait_experience(global,global);gml_GlobalScript_s_coach_trait_talentspotter(global,global);gml_GlobalScript_s_coach_trait_motivator(global,global);gml_GlobalScript_btn_click_qb_training(global,global);gml_GlobalScript_btn_click_GenerateCharacter(global,global);gml_GlobalScript_s_count_trait_fanfavorite(global,global);gml_GlobalScript_s_count_trait_scout(global,global);gml_GlobalScript_s_fire_coach(global,global);gml_GlobalScript_s_check_contracts_expiring(global, global);gml_GlobalScript_s_str(global,global);gml_GlobalScript_s_split_string(global,global);gml_GlobalScript_s_parse_news(global,global);gml_GlobalScript_s_parse_intro(global,global);gml_GlobalScript_s_parse_player_message(global,global);gml_GlobalScript_s_strP(global,global);gml_GlobalScript_s_sim_stat_increment(global,global);gml_GlobalScript_s_parse_string(global,global);gml_GlobalScript_s_crop_text(global,global);gml_GlobalScript_s_get_string_ball_state(global,global);gml_GlobalScript_s_get_string_state(global, global);gml_GlobalScript_s_get_string_sex(global,global);gml_GlobalScript_s_get_string_heshe(global,global);gml_GlobalScript_s_get_string_time(global,global);gml_GlobalScript_s_string_rand(global,global);gml_GlobalScript_s_get_string_downand(global,global);gml_GlobalScript_s_get_string_float(global,global);gml_GlobalScript_s_get_string_division(global,global);gml_GlobalScript_s_get_string_conference(global,global);gml_GlobalScript_s_get_string_week(global,global);gml_GlobalScript_s_get_string_week_short(global, global);gml_GlobalScript_s_get_string_year(global,global);gml_GlobalScript_s_get_string_commstage(global,global);gml_GlobalScript_s_get_string_position(global,global);gml_GlobalScript_s_get_string_position_full(global,global);gml_GlobalScript_s_get_string_attitude(global,global);gml_GlobalScript_s_college_room_tools(global,global);gml_GlobalScript_s_get_string_trade_value(global,global);gml_GlobalScript_s_get_string_anim(global,global);gml_GlobalScript_s_get_string_condition(global,global);gml_GlobalScript_s_get_string_record(global, global);gml_GlobalScript_s_get_string_trait(global,global);gml_GlobalScript_s_get_string_action_result(global,global);gml_GlobalScript_s_can_touchback(global,global);gml_GlobalScript_s_get_string_performance(global,global);gml_GlobalScript_s_get_random_teamname(global,global);gml_GlobalScript_btn_click_Roster_List(global,global);gml_GlobalScript_s_get_string_picks(global,global);gml_GlobalScript_s_get_team_by_id(global,global);gml_GlobalScript_s_get_team_name_by_id(global,global);gml_GlobalScript_s_get_team_tla_by_id(global, global);gml_GlobalScript_s_sort_teams(global,global);gml_GlobalScript_s_get_team_by_seed(global,global);gml_GlobalScript_s_get_team_id_by_seed(global,global);gml_GlobalScript_s_get_team_name_by_seed(global,global);gml_GlobalScript_s_get_team_offense(global,global);gml_GlobalScript_s_get_defense_attribute(global,global);gml_GlobalScript_s_get_team_defense(global,global);gml_GlobalScript_s_get_salary_total(global,global);gml_GlobalScript_s_refactor_team_strengths(global,global);gml_GlobalScript_s_get_team_winpct(global, global);gml_GlobalScript_s_get_team_net_points(global,global);gml_GlobalScript_s_get_points_versus(global,global);gml_GlobalScript_s_get_wins_versus(global,global);gml_GlobalScript_s_get_point_swing(global,global);gml_GlobalScript_s_get_points_season(global,global);gml_GlobalScript_s_practice_qb_mode(global,global);gml_GlobalScript_s_col_hex_to_r(global,global);gml_GlobalScript_s_col_hex_to_g(global,global);gml_GlobalScript_s_col_hex_to_b(global,global);gml_GlobalScript_s_hex_string_to_col(global, global);gml_GlobalScript_s_rgb_to_bgr(global,global);gml_GlobalScript_s_set_up_globals(global,global);gml_GlobalScript_slog(global,global);gml_GlobalScript_s_sound(global,global);gml_GlobalScript_s_make_random_colour(global,global);gml_GlobalScript_s_lines_intersect(global,global);gml_GlobalScript_s_log_player(global,global);gml_GlobalScript_s_get_random_college_name(global,global);gml_GlobalScript_s_get_random_charity(global,global);gml_GlobalScript_s_get_aim_direction(global,global);gml_GlobalScript_s_get_random_first_name(global, global);gml_GlobalScript_s_get_random_last_name(global,global);gml_GlobalScript_s_format_hex_color(global,global);gml_GlobalScript_s_color_to_hex(global,global);gml_GlobalScript_s_gui_helpers(global,global);gml_GlobalScript_btn_click_SeasonReviewBack(global,global);gml_GlobalScript_s_dec_to_hex(global,global);gml_GlobalScript_s_roman_numerals(global,global);gml_GlobalScript_s_get_watermark_color(global,global);gml_GlobalScript_s_generate_uid(global,global);gml_GlobalScript_gmcallback_poki_loadbar(global, global);gml_GlobalScript_poki_pause(global,global);gml_GlobalScript_s_set_up_qb_pmap(global,global);gml_GlobalScript_poki_resume(global,global);gml_GlobalScript_scale_canvas(global,global);gml_GlobalScript_s_update_camera(global,global);gml_GlobalScript__poki_gameplay_start(global,global);gml_GlobalScript__poki_gameplay_stop(global,global);gml_GlobalScript_s_find_gamepad(global,global);gml_GlobalScript_s_update_gamepad(global,global);gml_GlobalScript_s_find_default_button(global,global);gml_GlobalScript_s_get_watermarked_stats(global, global);gml_GlobalScript_s_get_qb_energy(global,global);gml_GlobalScript_btn_click_external_links(global,global);gml_GlobalScript_s_do_prematch_dilemma_qb(global,global);gml_GlobalScript_s_sound_audience_catch(global,global);gml_GlobalScript_s_college_overtime(global,global);gml_GlobalScript_s_player_gpa(global,global);gml_GlobalScript_s_canvas_fullscreen(global,global);gml_GlobalScript_s_startup(global,global);gml_GlobalScript_s_player_party(global,global);gml_GlobalScript_btn_click_LeagueMode(global, global);gml_GlobalScript_pause_scripts(global,global);gml_GlobalScript_s_draw_scoreboard_qb_training(global,global);gml_GlobalScript_s_update_manual_gestures(global,global);gml_GlobalScript_s_obj_controller_draw_begin(global,global);move_random.__yy_onlySelfNoOther=true;place_free.__yy_onlySelfNoOther=true;place_empty.__yy_onlySelfNoOther=true;place_meeting.__yy_onlySelfNoOther=true;place_snapped.__yy_onlySelfNoOther=true;move_snap.__yy_onlySelfNoOther=true;move_towards_point.__yy_onlySelfNoOther=true; move_contact_solid.__yy_onlySelfNoOther=true;move_contact_all.__yy_onlySelfNoOther=true;move_outside_solid.__yy_onlySelfNoOther=true;move_outside_all.__yy_onlySelfNoOther=true;move_and_collide.__yy_onlySelfNoOther=true;move_bounce_solid.__yy_onlySelfNoOther=true;move_bounce_all.__yy_onlySelfNoOther=true;move_wrap.__yy_onlySelfNoOther=true;motion_set.__yy_onlySelfNoOther=true;motion_add.__yy_onlySelfNoOther=true;distance_to_point.__yy_onlySelfNoOther=true;distance_to_object.__yy_onlySelfNoOther=true; path_start.__yy_onlySelfNoOther=true;path_end.__yy_onlySelfNoOther=true;mp_linear_step.__yy_onlySelfNoOther=true;mp_linear_path.__yy_onlySelfNoOther=true;mp_linear_step_object.__yy_onlySelfNoOther=true;mp_linear_path_object.__yy_onlySelfNoOther=true;mp_potential_settings.__yy_onlySelfNoOther=true;mp_potential_step.__yy_onlySelfNoOther=true;mp_potential_path.__yy_onlySelfNoOther=true;mp_potential_step_object.__yy_onlySelfNoOther=true;mp_potential_path_object.__yy_onlySelfNoOther=true;mp_grid_add_instances.__yy_onlySelfNoOther=true; mp_grid_path.__yy_onlySelfNoOther=true;collision_point.__yy_onlySelfNoOther=true;collision_point_list.__yy_onlySelfNoOther=true;collision_rectangle.__yy_onlySelfNoOther=true;collision_rectangle_list.__yy_onlySelfNoOther=true;collision_circle.__yy_onlySelfNoOther=true;collision_circle_list.__yy_onlySelfNoOther=true;collision_ellipse.__yy_onlySelfNoOther=true;collision_ellipse_list.__yy_onlySelfNoOther=true;collision_line.__yy_onlySelfNoOther=true;collision_line_list.__yy_onlySelfNoOther=true;instance_nearest.__yy_onlySelfNoOther=true; instance_furthest.__yy_onlySelfNoOther=true;instance_place.__yy_onlySelfNoOther=true;instance_place_list.__yy_onlySelfNoOther=true;instance_copy.__yy_onlySelfNoOther=true;instance_change.__yy_onlySelfNoOther=true;instance_destroy.__yy_onlySelfNoOther=true;position_empty.__yy_onlySelfNoOther=true;position_meeting.__yy_onlySelfNoOther=true;position_destroy.__yy_onlySelfNoOther=true;position_change.__yy_onlySelfNoOther=true;instance_id_get.__yy_onlySelfNoOther=true;instance_deactivate_all.__yy_onlySelfNoOther=true; instance_deactivate_object.__yy_onlySelfNoOther=true;instance_deactivate_region.__yy_onlySelfNoOther=true;instance_deactivate_layer.__yy_onlySelfNoOther=true;instance_activate_all.__yy_onlySelfNoOther=true;instance_activate_object.__yy_onlySelfNoOther=true;instance_activate_region.__yy_onlySelfNoOther=true;instance_activate_layer.__yy_onlySelfNoOther=true;draw_self.__yy_onlySelfNoOther=true;draw_sprite.__yy_onlySelfNoOther=true;draw_sprite_pos.__yy_onlySelfNoOther=true;draw_sprite_ext.__yy_onlySelfNoOther=true; draw_sprite_stretched.__yy_onlySelfNoOther=true;draw_sprite_stretched_ext.__yy_onlySelfNoOther=true;draw_sprite_part.__yy_onlySelfNoOther=true;draw_sprite_part_ext.__yy_onlySelfNoOther=true;draw_sprite_general.__yy_onlySelfNoOther=true;draw_sprite_tiled.__yy_onlySelfNoOther=true;draw_sprite_tiled_ext.__yy_onlySelfNoOther=true;event_inherited.__yy_bothSelfAndOther=true;event_perform.__yy_bothSelfAndOther=true;event_perform_async.__yy_bothSelfAndOther=true;event_user.__yy_bothSelfAndOther=true;event_perform_object.__yy_bothSelfAndOther=true; alarm_get.__yy_onlySelfNoOther=true;alarm_set.__yy_onlySelfNoOther=true;physics_fixture_bind.__yy_onlySelfNoOther=true;physics_fixture_bind_ext.__yy_onlySelfNoOther=true;physics_apply_force.__yy_onlySelfNoOther=true;physics_apply_impulse.__yy_onlySelfNoOther=true;physics_apply_angular_impulse.__yy_onlySelfNoOther=true;physics_apply_local_force.__yy_onlySelfNoOther=true;physics_apply_local_impulse.__yy_onlySelfNoOther=true;physics_apply_torque.__yy_onlySelfNoOther=true;physics_mass_properties.__yy_onlySelfNoOther=true; physics_draw_debug.__yy_onlySelfNoOther=true;physics_test_overlap.__yy_onlySelfNoOther=true;physics_get_friction.__yy_onlySelfNoOther=true;physics_get_density.__yy_onlySelfNoOther=true;physics_get_restitution.__yy_onlySelfNoOther=true;physics_set_friction.__yy_onlySelfNoOther=true;physics_set_density.__yy_onlySelfNoOther=true;physics_set_restitution.__yy_onlySelfNoOther=true;skeleton_animation_set.__yy_onlySelfNoOther=true;skeleton_animation_get.__yy_onlySelfNoOther=true;skeleton_animation_mix.__yy_onlySelfNoOther=true; skeleton_animation_set_ext.__yy_onlySelfNoOther=true;skeleton_animation_get_ext.__yy_onlySelfNoOther=true;skeleton_animation_get_duration.__yy_onlySelfNoOther=true;skeleton_animation_get_frames.__yy_onlySelfNoOther=true;skeleton_animation_clear.__yy_onlySelfNoOther=true;skeleton_skin_set.__yy_onlySelfNoOther=true;skeleton_skin_get.__yy_onlySelfNoOther=true;skeleton_skin_create.__yy_onlySelfNoOther=true;skeleton_attachment_set.__yy_onlySelfNoOther=true;skeleton_attachment_get.__yy_onlySelfNoOther=true; skeleton_attachment_create.__yy_onlySelfNoOther=true;skeleton_attachment_create_colour.__yy_onlySelfNoOther=true;skeleton_attachment_create_color.__yy_onlySelfNoOther=true;skeleton_attachment_replace.__yy_onlySelfNoOther=true;skeleton_attachment_replace_colour.__yy_onlySelfNoOther=true;skeleton_attachment_replace_color.__yy_onlySelfNoOther=true;skeleton_attachment_destroy.__yy_onlySelfNoOther=true;skeleton_attachment_exists.__yy_onlySelfNoOther=true;skeleton_collision_draw_set.__yy_onlySelfNoOther=true; skeleton_bone_data_get.__yy_onlySelfNoOther=true;skeleton_bone_data_set.__yy_onlySelfNoOther=true;skeleton_bone_state_get.__yy_onlySelfNoOther=true;skeleton_bone_state_set.__yy_onlySelfNoOther=true;skeleton_slot_data_instance.__yy_onlySelfNoOther=true;skeleton_slot_colour_set.__yy_onlySelfNoOther=true;skeleton_slot_color_set.__yy_onlySelfNoOther=true;skeleton_slot_colour_get.__yy_onlySelfNoOther=true;skeleton_slot_color_get.__yy_onlySelfNoOther=true;skeleton_slot_alpha_get.__yy_onlySelfNoOther=true; skeleton_animation_get_frame.__yy_onlySelfNoOther=true;skeleton_animation_set_frame.__yy_onlySelfNoOther=true;skeleton_animation_is_looping.__yy_onlySelfNoOther=true;skeleton_animation_is_finished.__yy_onlySelfNoOther=true;skeleton_animation_get_position.__yy_onlySelfNoOther=true;skeleton_animation_set_position.__yy_onlySelfNoOther=true;skeleton_animation_get_event_frames.__yy_onlySelfNoOther=true;skeleton_get_minmax.__yy_onlySelfNoOther=true;skeleton_get_num_bounds.__yy_onlySelfNoOther=true;skeleton_get_bounds.__yy_onlySelfNoOther=true; skeleton_find_slot.__yy_onlySelfNoOther=true;draw_tilemap.__yy_onlySelfNoOther=true;draw_tile.__yy_onlySelfNoOther=true;}function gmlGameEndScripts(){}Tags=[];IDToTagList=[];JSON_game.ScriptNames=["gml_Script_poki_init","gml_Script_poki_commercial_break","gml_Script_poki_rewarded_break","gml_Script_poki_script_closure","gml_Script_gmcallback_poki_closure","gml_Script_poki_get_team","gml_Script_poki_set_team","gml_GlobalScript_s_update_shopping_buttons","gml_Script_s_update_shopping_buttons","gml_Script_btn_click_shopping_next", "gml_Script_btn_click_shopping_prev","gml_Script_btn_shopping_purchase","gml_Script_s_confirm_purchase","gml_Script_s_count_shop_items_by_type","gml_Script_s_degrade_shop_items","gml_GlobalScript_s_college_sorting","gml_Script_s_co_teams_data_sort_rank","gml_Script_s_co_teams_data_sort_rank_season","gml_Script_s_co_teams_data_sort_rank_quick","gml_Script_s_co_teams_data_sort_rank_pos","gml_Script_s_co_teams_data_sort_pct","gml_Script_s_co_teams_data_sort_pct_quick","gml_Script_s_co_teams_data_sort_conf_wins_losses", "gml_Script_s_co_teams_data_sort_wins_rank","gml_Script____struct___0_s_create_team_data_array_gml_GlobalScript_s_college_sorting","gml_Script_s_create_team_data_array","gml_Script_s_update_team_data_rank_pos","gml_Script_s_team_data_array_add_formatted_data","gml_Script_s_co_teams_tiebreak","gml_Script_s_co_teams_tiebreak_record_next_best_placed_division","gml_GlobalScript_s_college_league","gml_Script____struct___1_s_rm_league_co_init_gml_GlobalScript_s_college_league","gml_Script____struct___2_s_rm_league_co_init_gml_GlobalScript_s_college_league", "gml_Script____struct___3_s_rm_league_co_init_gml_GlobalScript_s_college_league","gml_Script____struct___4_s_rm_league_co_init_gml_GlobalScript_s_college_league","gml_Script____struct___5_s_rm_league_co_init_gml_GlobalScript_s_college_league","gml_Script____struct___6_s_rm_league_co_init_gml_GlobalScript_s_college_league","gml_Script____struct___7_s_rm_league_co_init_gml_GlobalScript_s_college_league","gml_Script____struct___8_s_rm_league_co_init_gml_GlobalScript_s_college_league","gml_Script____struct___9_s_rm_league_co_init_gml_GlobalScript_s_college_league", "gml_Script____struct___10_s_rm_league_co_init_gml_GlobalScript_s_college_league","gml_Script____struct___11_s_rm_league_co_init_gml_GlobalScript_s_college_league","gml_Script____struct___12_s_rm_league_co_init_gml_GlobalScript_s_college_league","gml_Script____struct___13_s_rm_league_co_init_gml_GlobalScript_s_college_league","gml_Script____struct___14_s_rm_league_co_init_gml_GlobalScript_s_college_league","gml_Script____struct___15_s_rm_league_co_init_gml_GlobalScript_s_college_league","gml_Script____struct___16_s_rm_league_co_init_gml_GlobalScript_s_college_league", "gml_Script____struct___17_s_rm_league_co_init_gml_GlobalScript_s_college_league","gml_Script____struct___18_s_rm_league_co_init_gml_GlobalScript_s_college_league","gml_Script_s_rm_league_co_init","gml_Script_s_btn_league_view","gml_Script____struct___19_s_btn_league_mode_gml_GlobalScript_s_college_league","gml_Script_s_btn_league_mode","gml_Script____struct___20_s_btn_league_subdivision_gml_GlobalScript_s_college_league","gml_Script_s_btn_league_subdivision","gml_Script_s_btn_division_home_view", "gml_Script_s_btn_division_postmatch_view","gml_Script____struct___21_s_btn_league_next_conference_gml_GlobalScript_s_college_league","gml_Script_s_btn_league_next_conference","gml_Script_anon_s_set_league_mode_btn_colour_gml_GlobalScript_s_college_league_5863_s_set_league_mode_btn_colour_gml_GlobalScript_s_college_league","gml_Script_s_set_league_mode_btn_colour","gml_Script_anon_s_set_league_tier_btn_colour_gml_GlobalScript_s_college_league_6029_s_set_league_tier_btn_colour_gml_GlobalScript_s_college_league", "gml_Script_s_set_league_tier_btn_colour","gml_Script_s_set_var_if_missing","gml_Script_s_league_get_btn_back_image","gml_Script_s_league_refresh_subdivision","gml_Script____struct___22_s_league_create_conference_buttons_gml_GlobalScript_s_college_league","gml_Script_s_league_create_conference_buttons","gml_Script____struct___23_s_league_btn_conference_gml_GlobalScript_s_college_league","gml_Script_s_league_btn_conference","gml_Script_s_league_create_conference_panels","gml_Script____struct___24_s_league_create_conference_division_gml_GlobalScript_s_college_league", "gml_Script____struct___25_s_league_create_conference_division_gml_GlobalScript_s_college_league","gml_Script_s_league_create_conference_division","gml_Script____struct___26_s_league_create_ranking_panels_gml_GlobalScript_s_college_league","gml_Script____struct___27_s_league_create_ranking_panels_gml_GlobalScript_s_college_league","gml_Script_s_league_create_ranking_panels","gml_Script_s_is_prev_rank_visible","gml_Script____struct___28_s_league_create_schedule_panels_gml_GlobalScript_s_college_league", "gml_Script____struct___29_s_league_create_schedule_panels_gml_GlobalScript_s_college_league","gml_Script____struct___30_s_league_create_schedule_panels_gml_GlobalScript_s_college_league","gml_Script_s_league_create_schedule_panels","gml_Script_s_co_schedule_init","gml_Script_s_league_btn_week","gml_Script_s_league_btn_page","gml_Script_s_co_schedule_sort_order","gml_Script_s_league_get_own_bracket_page","gml_Script_s_co_schedule_refresh","gml_Script_s_co_schedule_step","gml_Script____struct___31_s_co_schedule_filter_format_gml_GlobalScript_s_college_league", "gml_Script_s_co_schedule_filter_format","gml_Script____struct___32_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league","gml_Script____struct___33_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league","gml_Script____struct___34_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league","gml_Script____struct___35_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league","gml_Script____struct___36_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league", "gml_Script____struct___37_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league","gml_Script____struct___38_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league","gml_Script____struct___39_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league","gml_Script____struct___40_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league","gml_Script____struct___41_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league","gml_Script____struct___42_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league", "gml_Script____struct___43_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league","gml_Script_s_set_matchlist_bracket_coords","gml_Script_s_get_bracket_map_entry","gml_Script_s_co_schedule_draw_gui","gml_Script_s_draw_bracket_name_box","gml_GlobalScript_s_college_balance","gml_Script_s_college_balance_create_new_roster","gml_GlobalScript_s_count_simmed_games","gml_Script_s_count_simmed_games","gml_GlobalScript_season_tally_scripts","gml_Script____struct___44_s_obj_season_tally_create_gml_GlobalScript_season_tally_scripts", "gml_Script____struct___45_s_obj_season_tally_create_gml_GlobalScript_season_tally_scripts","gml_Script_s_obj_season_tally_create","gml_Script_s_maps_array_sort_week","gml_Script_s_get_human_opponent_sla_prefix","gml_Script_s_obj_season_tally_step","gml_Script_s_obj_season_tally_draw_gui","gml_Script_s_obj_season_tally_draw_gui_begin","gml_Script_s_draw_season_tally_header","gml_GlobalScript_s_choose_mode_hc","gml_Script_s_choose_mode_HC","gml_Script_s_choose_mode_QB","gml_Script_s_choose_mode_CO_loading", "gml_Script_s_choose_mode_CO","gml_Script_s_setup_for_mode_CO","gml_Script_s_update_details_screen","gml_GlobalScript_s_benched","gml_Script_s_player_benched","gml_GlobalScript_s_cpu_is_kicking","gml_Script_s_cpu_is_kicking_off","gml_Script_s_is_kickoff","gml_GlobalScript_s_college_edit_competition","gml_Script____struct___46_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition","gml_Script____struct___47_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition","gml_Script____struct___48_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition", "gml_Script____struct___49_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition","gml_Script_s_rm_edit_competition_init","gml_Script_s_btn_edit_comp_confirm","gml_Script_s_btn_edit_comp_cancel","gml_Script____struct___50_s_editor_create_competition_fields_gml_GlobalScript_s_college_edit_competition","gml_Script_s_editor_create_competition_fields","gml_Script____struct___51_s_editor_create_text_field_gml_GlobalScript_s_college_edit_competition","gml_Script_s_editor_create_text_field", "gml_Script____struct___52_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition","gml_Script____struct___53_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition","gml_Script____struct___54_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition","gml_Script____struct___55_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition","gml_Script_s_editor_create_partial_text_field","gml_Script____struct___56_s_editor_create_location_field_gml_GlobalScript_s_college_edit_competition", "gml_Script____struct___57_s_editor_create_location_field_gml_GlobalScript_s_college_edit_competition","gml_Script____struct___58_s_editor_create_location_field_gml_GlobalScript_s_college_edit_competition","gml_Script_s_editor_create_location_field","gml_Script____struct___59_s_editor_create_field_label_gml_GlobalScript_s_college_edit_competition","gml_Script_s_editor_create_field_label","gml_Script_s_ui_field_label_draw_gui","gml_Script_s_editor_field_validate","gml_Script_s_editor_location_is_neutral", "gml_Script_s_editor_location_toggle_neutral_state","gml_Script____struct___60_s_get_editor_mode_data_gml_GlobalScript_s_college_edit_competition","gml_Script_s_get_editor_mode_data","gml_GlobalScript_nx_scripts","gml_Script_s_nx_init","gml_Script_s_nx_commit","gml_Script_s_nx_get_open_user","gml_GlobalScript_s_get_player_body_type","gml_Script_s_get_player_body_type","gml_Script_s_spr_from_bt","gml_Script_s_is_spr_bodytype","gml_Script_s_get_team_body_type","gml_GlobalScript_s_college_details", "gml_Script____struct___61_s_college_details_init_gml_GlobalScript_s_college_details","gml_Script____struct___62_s_college_details_init_gml_GlobalScript_s_college_details","gml_Script_s_college_details_init","gml_Script____struct___63_s_reset_team_selections_gml_GlobalScript_s_college_details","gml_Script_s_reset_team_selections","gml_Script_anon_s_college_details_hide_gml_GlobalScript_s_college_details_2339_s_college_details_hide_gml_GlobalScript_s_college_details","gml_Script_s_college_details_hide", "gml_Script_anon_s_college_details_center_gml_GlobalScript_s_college_details_2470_s_college_details_center_gml_GlobalScript_s_college_details","gml_Script_s_college_details_center","gml_Script____struct___64_s_college_details_bottom_panel_init_gml_GlobalScript_s_college_details","gml_Script____struct___65_s_college_details_bottom_panel_init_gml_GlobalScript_s_college_details","gml_Script____struct___66_s_college_details_bottom_panel_init_gml_GlobalScript_s_college_details","gml_Script_s_college_details_bottom_panel_init", "gml_Script_s_college_details_bottom_panel_draw_gui","gml_Script____struct___67_s_college_details_bottom_panel_create_buttons_gml_GlobalScript_s_college_details","gml_Script____struct___68_s_college_details_bottom_panel_create_buttons_gml_GlobalScript_s_college_details","gml_Script_s_college_details_bottom_panel_create_buttons","gml_Script_s_college_details_favorite_btn_action","gml_Script_s_college_details_starting_btn_action","gml_Script_s_college_details_difficulty_btn_action","gml_Script_s_get_college_details_favorite_label_text", "gml_Script_s_get_college_details_starting_label_text","gml_Script_s_get_college_details_difficulty_label_text","gml_Script_s_college_details_btn_draw","gml_Script_s_create_starting_teams_list","gml_Script_s_add_starting_team","gml_Script_s_is_starting_team_selectable","gml_Script_s_count_starting_team_selectable_conference","gml_Script_s_get_random_non_rival_team","gml_GlobalScript_s_recruitment_credits","gml_Script_recruitment_credits_cap_total","gml_Script_s_validate_recruitment_credits_cap", "gml_Script_can_fit_recruitment_credits","gml_Script_recruitment_credits_space","gml_Script_recruitment_credits_add","gml_Script_recruitment_credits_toggle_roster_size","gml_Script_recruitment_credits_button_click_boost","gml_Script_btn_response_boost_recruitment_credits","gml_GlobalScript_qb_contract_scripts","gml_Script_s_qb_mode_set_up_contract_screen","gml_Script____struct___69_s_qb_mode_new_contract_gml_GlobalScript_qb_contract_scripts","gml_Script_s_qb_mode_new_contract","gml_Script_btn_contract_negotiate", "gml_Script_btn_contract_salary_minus","gml_Script_btn_contract_salary_plus","gml_Script_btn_contract_tdbonus_minus","gml_Script_btn_contract_tdbonus_plus","gml_Script_btn_contract_length_minus","gml_Script_btn_contract_length_plus","gml_Script_btn_negotiate_higher","gml_Script_btn_negotiate_lower","gml_Script_s_check_negotiate","gml_Script_s_check_hilo_buttons","gml_Script_s_accept_contract","gml_Script_s_reject_contract","gml_GlobalScript_s_draw_player_image","gml_Script_s_draw_player_image","gml_GlobalScript_s_college_gui_helpers", "gml_Script_buttons_college_custom","gml_Script_draw_custom_increase_wallet","gml_Script_draw_custom_recruitment_credits_display","gml_Script_rm_player_profile_show_noncollege_elements","gml_Script_rm_player_profile_show_more","gml_Script____struct___70_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers","gml_Script____struct___71_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers","gml_Script____struct___72_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers", "gml_Script____struct___73_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers","gml_Script____struct___74_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers","gml_Script____struct___75_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers","gml_Script____struct___76_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers","gml_Script____struct___78_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers", "gml_Script____struct___79_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers","gml_Script_rm_player_profile_college_create_p1","gml_Script____struct___80_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers","gml_Script____struct___81_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers","gml_Script____struct___82_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers","gml_Script____struct___83_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers", "gml_Script____struct___84_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers","gml_Script____struct___85_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers","gml_Script____struct___86_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers","gml_Script____struct___87_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers","gml_Script____struct___88_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers", "gml_Script_rm_player_profile_college_create_p2","gml_Script_rm_player_profile_college_create","gml_Script_btn_rm_player_profile_college_showP1","gml_Script_btn_rm_player_profile_college_showP2","gml_Script_rm_player_profile_college_step","gml_Script_btn_click_Profile_College_Cut","gml_Script_btn_click_Profile_College_Cut_During_Admission_Draft","gml_Script_btn_response_cut_player_for_RC_yes","gml_Script_s_get_college_player_cut_RC","gml_Script_btn_rm_stats_player_showAwards","gml_Script_btn_rm_stats_player_showEpilogue", "gml_Script____struct___89_stats_player_button_entry_gml_GlobalScript_s_college_gui_helpers","gml_Script_stats_player_button_entry","gml_Script____struct___90_rm_stats_player_configure_college_gml_GlobalScript_s_college_gui_helpers","gml_Script____struct___91_rm_stats_player_configure_college_gml_GlobalScript_s_college_gui_helpers","gml_Script_rm_stats_player_configure_college","gml_Script_s_change_panel_division_mode","gml_Script_s_panel_skip_independents_cnf_view","gml_Script_s_panel_scroll_init", "gml_Script_s_panel_scroll_step","gml_Script_s_panel_scroll_set_height","gml_Script_s_panel_scroll_global_flick","gml_Script_s_panel_scroll_draw_gui","gml_Script_s_panel_scroll_is_inside","gml_GlobalScript_s_load_profile_uni","gml_Script_s_load_profile_uni","gml_GlobalScript_s_get_lifestyle","gml_Script_s_get_lifestyle","gml_GlobalScript_btn_meet_teammate","gml_Script_btn_meet_teammate","gml_Script_s_confirm_teammate_meeting","gml_GlobalScript_s_check_qb_mode_benched","gml_Script_s_qb_mode_benched_status", "gml_GlobalScript_s_college_ranking","gml_Script_s_co_set_starting_rank","gml_Script_s_co_set_ranking_points","gml_Script_s_co_reset_teams_rank","gml_Script_s_co_update_fix_rank","gml_Script_s_get_prestige","gml_Script_s_update_ranking_positions","gml_Script_s_get_ranking_pos_data","gml_Script_s_get_ranking_pos_data_prev","gml_Script____struct___92_s_parse_ranking_pos_gml_GlobalScript_s_college_ranking","gml_Script_s_parse_ranking_pos","gml_Script_s_encode_ranking_pos","gml_Script_s_save_ranking_pos_end_of_season", "gml_Script_s_get_ranking_pos_last_season","gml_Script_s_is_preseason_for_ranking","gml_Script_s_update_rank_after_adminssion_draft","gml_GlobalScript_font_scripts","gml_Script_s_data_path","gml_Script_s_fonts_init","gml_Script_s_erase_text_background","gml_Script_draw_hd_text","gml_Script_draw_hd_text_color","gml_Script_draw_hd_text_ext","gml_Script_draw_hd_text_ext_color","gml_Script_draw_hd_text_transformed","gml_Script_draw_hd_text_transformed_color","gml_Script_draw_hd_text_ext_transformed", "gml_Script_string_hd_width","gml_Script_string_hd_width_ext","gml_Script_string_hd_height","gml_Script_string_hd_height_ext","gml_GlobalScript_btn_click_Details_Back","gml_Script_btn_click_Details_Back","gml_GlobalScript_s_replay_controls","gml_Script_s_replay_controls","gml_GlobalScript_nrg","gml_Script_btn_click_nrg_buy","gml_Script_btn_click_nrg_drink","gml_Script_s_drink_nrg","gml_Script_s_get_condition_colour","gml_Script_s_get_condition_icon","gml_GlobalScript_s_college_draft","gml_Script_s_college_draft_ranking", "gml_Script_s_college_draft_team_ranking","gml_Script_s_college_draft_team_pick","gml_Script_s_calculate_college_draft","gml_Script_s_destroy_college_draft","gml_Script____struct___93_s_display_college_draft_debug_gml_GlobalScript_s_college_draft","gml_Script_s_display_college_draft_debug","gml_Script_s_message_college_draft_pick","gml_Script_s_college_draft_check_achievements","gml_Script_s_message_college_draft_notpick","gml_Script_s_message_college_draft_nottrydraft_y3","gml_Script_s_message_college_draft_early_y3", "gml_Script_s_message_college_draft_pick_continue","gml_Script_s_message_college_earyly_yes","gml_Script_s_message_college_earyly_no","gml_Script_s_message_college_earyly_info","gml_Script_s_college_draft_earyly_info_return","gml_Script_s_college_draft_refresh_current_attitude","gml_Script_s_doing_college_draft","gml_Script_s_check_college_draft_start","gml_Script_s_start_college_draft","gml_Script_s_draft_set_epilogue","gml_Script_s_end_college_draft","gml_Script_s_end_college_draft_late_msg_clear", "gml_Script____struct___94_s_end_college_draft_late_gml_GlobalScript_s_college_draft","gml_Script_s_end_college_draft_late","gml_Script_s_college_draft_new_season_loading","gml_Script_s_college_draft_new_season","gml_Script_btn_click_college_draft_next","gml_Script_s_college_draft_refresh","gml_Script_btn_click_college_draft_skip","gml_Script_college_draft_do_skip","gml_Script_s_college_draft_player_pick","gml_Script____struct___95_s_display_college_draft_roster_gml_GlobalScript_s_college_draft", "gml_Script____struct___96_s_display_college_draft_roster_gml_GlobalScript_s_college_draft","gml_Script____struct___97_s_display_college_draft_roster_gml_GlobalScript_s_college_draft","gml_Script____struct___98_s_display_college_draft_roster_gml_GlobalScript_s_college_draft","gml_Script____struct___99_s_display_college_draft_roster_gml_GlobalScript_s_college_draft","gml_Script_s_display_college_draft_roster","gml_Script____struct___100_s_card_layout_pos_gml_GlobalScript_s_college_draft","gml_Script_s_card_layout_pos", "gml_Script_s_load_pro_teams","gml_GlobalScript_s_check_ingame_control_change","gml_Script_s_check_ingame_control_change","gml_GlobalScript_s_remove_player","gml_Script_s_remove_player","gml_GlobalScript_btn_click_BengRams","gml_Script_btn_click_BengRams","gml_Script_s_update_btn_bengrams","gml_Script_s_set_ui_colours","gml_GlobalScript_btn_click_OptionsAutoRun","gml_Script_btn_click_OptionsAutoRun","gml_GlobalScript_title_scripts","gml_Script_s_title_goto","gml_Script_s_title_create","gml_Script_s_title_exit", "gml_Script_s_title_check_any_button","gml_Script_s_title_create_image","gml_Script_s_title_step_image","gml_Script_s_title_draw_gui_image","gml_Script_f_almost_same","gml_Script_s_title_create_video","gml_Script_s_title_async_social_video","gml_Script_s_title_do_video_end","gml_Script_s_title_step_video","gml_Script_s_title_draw_gui_video","gml_Script_s_title_create_fadeinout_splash","gml_Script_s_title_step_fadeinout_splash","gml_Script_s_title_draw_fadeinout_splash","gml_GlobalScript_s_str_helpers", "gml_Script_s_str_int_to_ordinal","gml_GlobalScript_s_college_competitions_seeding","gml_Script_s_get_team_from_tag","gml_Script_s_get_winner_by_cid","gml_Script_s_get_winner_by_mid","gml_Script_s_get_co_conference_winner","gml_Script_s_get_co_division_winner","gml_Script_s_get_co_conference_best","gml_Script_s_get_co_subdivision_best","gml_Script_s_get_co_bowl_seed","gml_Script_s_get_co_prestige_bowl_seed","gml_Script_s_create_prestige_pool","gml_Script_s_prestige_pool_sort_order_ranking","gml_Script_s_prestige_pool_list", "gml_Script____struct___101_s_prestige_pool_add_gml_GlobalScript_s_college_competitions_seeding","gml_Script_s_prestige_pool_add","gml_Script_s_get_prestige_pool","gml_Script_s_get_team_in_prestige_pool","gml_Script_s_prestige_pool_force_one_per_conf","gml_Script_s_prestige_pool_fill_per_rank","gml_Script_s_get_bowl_seed_first_loop_pool","gml_Script_s_get_bowl_seed_second_loop_pool","gml_Script_s_get_bowl_seed_third_loop_pool","gml_Script_s_get_first_team_data","gml_Script____struct___102_s_get_competition_pool_gml_GlobalScript_s_college_competitions_seeding", "gml_Script_s_get_competition_pool","gml_Script_s_competition_pool_team","gml_Script_s_get_competition_winner","gml_Script_s_competition_pool_fill_from_rankings","gml_Script_s_competition_pool_exclude_teams","gml_Script_s_competition_pool_add_team","gml_Script_s_competition_pool_rankings_exclude","gml_Script____struct___103_s_get_tagged_source_gml_GlobalScript_s_college_competitions_seeding","gml_Script_s_get_tagged_source","gml_Script_s_get_pool_position","gml_Script_s_competitions_debug_printout", "gml_GlobalScript_s_get_achievement","gml_GlobalScript_s_count_achievement","gml_GlobalScript_s_get_achievement_percentage","gml_GlobalScript_s_complete_achievement","gml_GlobalScript_s_sort_retrobowl_list","gml_Script_s_sort_retrobowl_list","gml_GlobalScript_s_sort_retrobowl_history_list","gml_Script_s_sort_retrobowl_history_list","gml_GlobalScript_btn_click_EditAFC","gml_Script_btn_click_EditAFC","gml_GlobalScript_btn_click_EditNFC","gml_Script_btn_click_EditNFC","gml_GlobalScript_btn_click_EditTeam", "gml_Script_btn_click_EditTeam","gml_GlobalScript_s_round_to_decimal","gml_Script_s_round_to_decimal","gml_GlobalScript_btn_click_TeamEditCancel","gml_Script_btn_click_TeamEditCancel","gml_GlobalScript_btn_click_TeamEditDone","gml_Script_btn_click_TeamEditDone","gml_GlobalScript_btn_click_TeamEditRestore","gml_Script_btn_click_TeamEditRestore","gml_GlobalScript_btn_click_InputHelmet","gml_Script_btn_click_InputHelmet","gml_GlobalScript_btn_click_InputLogo","gml_Script_btn_click_InputLogo","gml_GlobalScript_btn_click_InputShirt", "gml_Script_btn_click_InputShirt","gml_GlobalScript_btn_click_InputSleeve","gml_Script_btn_click_InputSleeve","gml_GlobalScript_btn_click_InputPants","gml_Script_btn_click_InputPants","gml_GlobalScript_btn_click_InputStripe","gml_Script_btn_click_InputStripe","gml_GlobalScript_btn_click_InputSocks1","gml_Script_btn_click_InputSocks1","gml_GlobalScript_btn_click_InputSocks2","gml_Script_btn_click_InputSocks2","gml_GlobalScript_btn_click_InputEndzone","gml_Script_btn_click_InputEndzone","gml_GlobalScript_btn_click_EditHelmet", "gml_Script_btn_click_EditHelmet","gml_GlobalScript_btn_click_EditLogo","gml_Script_btn_click_EditLogo","gml_GlobalScript_btn_click_EditShirt","gml_Script_btn_click_EditShirt","gml_GlobalScript_btn_click_EditSleeve","gml_Script_btn_click_EditSleeve","gml_GlobalScript_btn_click_EditPants","gml_Script_btn_click_EditPants","gml_GlobalScript_btn_click_EditStripe","gml_Script_btn_click_EditStripe","gml_GlobalScript_btn_click_EditSocks1","gml_Script_btn_click_EditSocks1","gml_GlobalScript_btn_click_EditSocks2", "gml_Script_btn_click_EditSocks2","gml_GlobalScript_btn_click_EditEndzone","gml_Script_btn_click_EditEndzone","gml_GlobalScript_btn_click_Kit1","gml_Script_btn_click_Kit1","gml_GlobalScript_btn_click_Kit2","gml_Script_btn_click_Kit2","gml_GlobalScript_btn_click_Kit3","gml_Script_btn_click_Kit3","gml_GlobalScript_btn_click_Kit4","gml_Script_btn_click_Kit4","gml_GlobalScript_btn_click_RestoreAllTeams","gml_Script_btn_click_RestoreAllTeams","gml_GlobalScript_btn_click_KR_Select","gml_Script_btn_click_KR_Select", "gml_GlobalScript_btn_click_EditCopySlotA","gml_Script_btn_click_EditCopySlotA","gml_GlobalScript_s_sound_audience_inc","gml_Script_s_sound_audience_inc","gml_GlobalScript_btn_click_EditCopySlotB","gml_Script_btn_click_EditCopySlotB","gml_GlobalScript_btn_click_EditCopySlotC","gml_Script_btn_click_EditCopySlotC","gml_GlobalScript_btn_click_EditCopySlotD","gml_Script_btn_click_EditCopySlotD","gml_GlobalScript_btn_click_EditCopySlotE","gml_Script_btn_click_EditCopySlotE","gml_GlobalScript_btn_click_TeamEditMore", "gml_Script_btn_click_TeamEditMore","gml_GlobalScript_btn_click_TeamEditMoreDone","gml_Script_btn_click_TeamEditMoreDone","gml_GlobalScript_btn_click_FacilityStadium","gml_Script_btn_click_FacilityStadium","gml_GlobalScript_btn_click_FacilityTraining","gml_Script_btn_click_FacilityTraining","gml_GlobalScript_btn_click_FacilityStaff","gml_Script_btn_click_FacilityStaff","gml_GlobalScript_btn_click_HOF_players","gml_Script_btn_click_HOF_players","gml_GlobalScript_btn_click_HOF_player_records","gml_Script_btn_click_HOF_player_records", "gml_GlobalScript_btn_click_HOF_Select","gml_Script_btn_click_HOF_Select","gml_GlobalScript_btn_click_HofNext","gml_Script_btn_click_HofNext","gml_GlobalScript_btn_click_HofPrev","gml_Script_btn_click_HofPrev","gml_GlobalScript_btn_click_HOF_Coach","gml_Script_btn_click_HOF_Coach","gml_GlobalScript_btn_click_Records_Reset","gml_Script_btn_click_Records_Reset","gml_GlobalScript_btn_click_League_Back","gml_Script_btn_click_League_Back","gml_GlobalScript_btn_click_LeaguePanel","gml_Script_btn_click_LeaguePanel", "gml_GlobalScript_btn_click_LeagueNFC","gml_Script_btn_click_LeagueNFC","gml_GlobalScript_btn_click_LeagueAFC","gml_Script_btn_click_LeagueAFC","gml_GlobalScript_keyboard_scripts","gml_Script_s_keyboard_custom_enabled","gml_Script____struct___104_s_keyboard_custom_init_gml_GlobalScript_keyboard_scripts","gml_Script_s_keyboard_custom_init","gml_Script_s_keyboard_custom_show","gml_Script_s_keyboard_custom_hide","gml_Script_s_keyboard_custom_layer","gml_Script_s_keyboard_custom_create","gml_Script_s_keyboard_custom_destroy", "gml_Script_s_keyboard_custom_create_button","gml_Script_s_custkb_base_draw_gui","gml_Script_s_custkb_base_step","gml_Script_s_custkb_confirm","gml_Script_s_custkb_delete","gml_Script_s_custkb_shift_toggle","gml_Script_s_custkb_add_text","gml_Script_s_custkb_key_init","gml_Script_s_custkb_key_draw_gui","gml_Script_s_custkb_key_step","gml_Script_s_custkb_key_tap","gml_GlobalScript_s_college_tools","gml_Script_s_college_set_up_globals","gml_Script_s_college_age_index","gml_Script_s_college_age_label", "gml_Script_s_college_age_simple","gml_Script_s_college_age_simple_other","gml_Script_s_college_age_simple_short","gml_Script_s_college_shorter_season","gml_Script_s_college_academics_type","gml_Script_s_college_correct_new_player","gml_Script_s_get_random_hobby","gml_Script_s_get_hobby_name","gml_Script_s_get_hobby_from_uid","gml_Script_s_is_player_hobby_fraternity","gml_Script_s_get_random_study_subject","gml_Script_s_get_study_subject_from_uid","gml_Script_s_get_study_subject_name_from_uid","gml_Script_s_get_minor_name", "gml_Script_s_get_major_name","gml_Script_s_get_study_info","gml_Script_s_get_random_trait","gml_Script_s_get_trait_name","gml_Script_s_get_trait_from_uid","gml_Script_s_get_random_hometown","gml_Script_s_get_hometown_name","gml_Script_s_get_only_hometown_name","gml_Script_s_get_only_state_name","gml_Script_s_get_hometown_from_uid","gml_Script_s_pick_rand_epilogue_uid","gml_Script_s_get_epilogue_name","gml_Script_s_epilogue_tests","gml_Script_s_pick_epilogue_story","gml_Script_s_epilogue_story_to_str", "gml_Script_s_add_cv_entry_from_key","gml_Script_s_add_cv_entry_direct","gml_Script_s_get_random_cv_entry","gml_Script_s_extract_cv_entry_from_pool","gml_Script_s_set_cv_list_from_player","gml_Script_s_add_cv_list_entry","gml_Script_split_into_chunks","gml_Script_btn_response_player_meeting_academic_coaching","gml_Script_s_get_meeting_cost_academic_coaching","gml_Script_s_is_co_mode","gml_Script_s_is_co_postseason","gml_Script_s_is_co_actual_postseason","gml_Script_s_get_postseason_chunk","gml_Script_s_is_earlier_than", "gml_Script_s_get_skip_to_week","gml_Script_s_is_co_team","gml_Script_s_get_conference_list","gml_Script_s_get_team_list_by_tier","gml_Script_s_get_team_list","gml_Script_s_count_joboffers_conference","gml_Script_s_co_get_year","gml_Script_s_get_my_conference_uid","gml_Script_s_get_my_conference_data","gml_Script_s_get_conference_data","gml_Script_s_get_my_division","gml_Script_s_get_subdivision","gml_Script_s_get_team_pct_cnf","gml_Script_s_is_independent_team","gml_Script_s_is_independent_conference_id", "gml_Script_s_is_independent_conference","gml_Script_s_is_co_bowl_week","gml_Script_s_is_co_bowl_fix","gml_Script_s_is_co_bowl_comp","gml_Script____struct___105_s_get_object_data_gml_GlobalScript_s_college_tools","gml_Script_s_get_object_data","gml_Script_s_get_map","gml_Script_s_get_map_real","gml_Script_s_map_swap","gml_Script_s_get_save_slot","gml_Script_s_get_week_name","gml_Script_s_get_my_conference_division_string","gml_Script_s_get_fix_competition_string","gml_Script_s_get_competition_string", "gml_Script_s_get_fix_location_string","gml_Script_s_get_my_subdivision_string","gml_Script_s_get_subdiv_name","gml_Script_s_joboffers_string","gml_Script_s_get_pct_string","gml_Script_s_get_comp_level_str","gml_Script_s_get_comp_level_str_plain","gml_Script_s_get_difficulty_str","gml_Script_s_is_ps_chunk_filled","gml_Script_s_is_week_played","gml_Script_s_is_human_in_week","gml_Script_s_is_human_fix","gml_Script_s_get_next_college_human_fixture","gml_Script_s_update_week_done","gml_Script_s_is_week_done", "gml_Script_s_is_fix_played","gml_Script_s_is_fix_filled","gml_Script_s_is_fix_on_neutral_ground","gml_Script_s_season_competitions_done","gml_Script_s_get_fix_away_team_id","gml_Script_s_get_fix_home_team_id","gml_Script_s_get_fix_by_competition_id","gml_Script_s_get_fix_by_match_id","gml_Script_s_get_fix_winner_id","gml_Script_s_get_fix_by_week_and_teams","gml_GlobalScript_btn_click_LeagueSchedule","gml_Script_btn_click_LeagueSchedule","gml_GlobalScript_btn_click_SchedulePrev","gml_Script_btn_click_SchedulePrev", "gml_GlobalScript_btn_click_ScheduleNext","gml_Script_btn_click_ScheduleNext","gml_GlobalScript_btn_click_PlayOffs","gml_Script_btn_click_PlayOffs","gml_GlobalScript_btn_click_PlayOffs_Back","gml_Script_btn_click_PlayOffs_Back","gml_GlobalScript_btn_click_PlayOffsPlay","gml_Script_btn_click_PlayOffsPlay","gml_GlobalScript_btn_click_PlayOffsSkip","gml_Script_btn_click_PlayOffsSkip","gml_GlobalScript_btn_click_Change_Favourite","gml_Script____struct___106_btn_click_Change_Favourite_gml_GlobalScript_btn_click_Change_Favourite", "gml_Script_btn_click_Change_Favourite","gml_GlobalScript_btn_click_ChooseAFC","gml_Script_btn_click_ChooseAFC","gml_GlobalScript_btn_click_ChooseNFC","gml_Script_btn_click_ChooseNFC","gml_GlobalScript_btn_click_ChooseTeam","gml_Script_btn_click_ChooseTeam","gml_Script_btn_click_ChooseTeamExhibition","gml_Script_btn_click_ChoosePlayerExhibition","gml_Script_btn_click_ChoosePlayerExhibition_confirm","gml_Script_btn_click_ChoosePlayerExhibition_cancel","gml_GlobalScript_btn_click_ChooseTeamNew","gml_Script_btn_click_ChooseTeamNew", "gml_Script_btn_click_qb_mode_ChooseTeamNew","gml_GlobalScript_btn_click_ChooseReject","gml_Script_btn_click_ChooseReject_loading","gml_Script_btn_click_ChooseReject","gml_GlobalScript_btn_click_Continue","gml_Script_btn_click_Continue","gml_Script_btn_click_SimGame","gml_GlobalScript_btn_click_Details_Continue","gml_Script_btn_click_Details_Continue","gml_GlobalScript_s_uniform_helpers","gml_Script_s_uniforms_default_file","gml_Script_s_extract_uniform_cols_to_record","gml_Script_s_uniform_cols_to_record", "gml_Script_s_uniform_cols_from_record","gml_GlobalScript_btn_click_FrontOffice","gml_Script_btn_click_FrontOffice","gml_GlobalScript_btn_click_FreeAgents2","gml_Script_btn_click_FreeAgents2","gml_GlobalScript_btn_click_HallOfFame","gml_Script_btn_click_HallOfFame","gml_GlobalScript_btn_click_Home","gml_Script_btn_click_Home","gml_Script_btn_click_Play1","gml_Script_btn_click_Options_Exit","gml_Script_btn_click_Home_rm_winners","gml_Script_s_rm_winners_notice","gml_GlobalScript_btn_click_League", "gml_Script____struct___107_btn_click_League_gml_GlobalScript_btn_click_League","gml_Script_btn_click_League","gml_GlobalScript_btn_click_Options","gml_Script_btn_click_Options","gml_GlobalScript_btn_click_Profile","gml_Script_btn_click_Profile","gml_GlobalScript_btn_click_ChooseFace","gml_Script_btn_click_ChooseFace","gml_Script_s_goto_rm_choose_face","gml_GlobalScript_btn_click_ChooseFacePrev","gml_Script_btn_click_ChooseFacePrev","gml_GlobalScript_btn_click_ChooseFaceNext","gml_Script_btn_click_ChooseFaceNext", "gml_GlobalScript_btn_click_ChooseFaceDone","gml_Script_btn_click_ChooseFaceDone","gml_Script_btn_click_cancel_chooseface","gml_GlobalScript_btn_click_Uniforms","gml_Script_btn_click_Uniforms","gml_GlobalScript_btn_click_Uniform_Away","gml_Script_btn_click_Uniform_Away","gml_GlobalScript_btn_click_Uniform_Home","gml_Script_btn_click_Uniform_Home","gml_GlobalScript__poki_rewarded_ad","gml_Script__poki_rewarded_ad","gml_GlobalScript_btn_click_BallStyle","gml_Script_btn_click_BallStyle","gml_GlobalScript_btn_click_LeagueReportNext", "gml_Script_btn_click_LeagueReportNext","gml_GlobalScript_btn_click_LeagueReportPrev","gml_Script_btn_click_LeagueReportPrev","gml_GlobalScript_btn_click_OptionsNewGame","gml_Script_btn_click_OptionsNewGame","gml_GlobalScript_btn_click_OptionsDriveLeft","gml_Script_btn_click_OptionsDriveLeft","gml_Script_btn_click_OptionsDriveLeft_Exh","gml_GlobalScript_btn_click_OptionsDriveRight","gml_Script_btn_click_OptionsDriveRight","gml_GlobalScript_btn_click_OptionsDriveBoth","gml_Script_btn_click_OptionsDriveBoth", "gml_GlobalScript_btn_click_OptionsScanlines","gml_Script_btn_click_OptionsScanlines","gml_GlobalScript_btn_click_OptionsSoundFX","gml_Script_btn_click_OptionsSoundFX","gml_GlobalScript_btn_click_OptionsWeather","gml_Script_btn_click_OptionsWeather","gml_Script_btn_click_OptionsWeather_Exh","gml_GlobalScript_btn_click_OptionsReplays","gml_Script_btn_click_OptionsReplays","gml_GlobalScript_btn_click_OptionsZoom","gml_Script_btn_click_OptionsZoom","gml_GlobalScript_btn_click_InvertedThrowing","gml_Script_btn_click_InvertedThrowing", "gml_GlobalScript_btn_click_OptionsMatchLength","gml_Script_btn_click_OptionsMatchLength","gml_Script_btn_click_OptionsMatchLength_Exh","gml_GlobalScript_btn_click_OptionsTeamEditor","gml_Script_btn_click_OptionsTeamEditor","gml_GlobalScript_btn_click_OptionsDifficulty","gml_Script_btn_click_OptionsDifficulty","gml_GlobalScript_btn_click_OptionsSalaryCap","gml_Script_btn_click_OptionsSalaryCap","gml_Script_salary_cap_toggle_roster_size","gml_Script_s_get_roster_cap","gml_GlobalScript_chk_click_gamepad", "gml_Script_chk_click_gamepad","gml_GlobalScript_s_apple_arcade_helpers","gml_Script_s_aa_debug_give_cc","gml_GlobalScript_btn_click_PlayerProfile","gml_Script_btn_click_PlayerProfile","gml_GlobalScript_btn_click_PlayerProfile_Back","gml_Script_btn_click_PlayerProfile_Back","gml_GlobalScript_btn_click_ProfilePrev","gml_Script_btn_click_ProfilePrev","gml_GlobalScript_btn_click_MeetingPrev","gml_Script_btn_click_MeetingPrev","gml_GlobalScript_btn_click_ProfileNext","gml_Script_btn_click_ProfileNext", "gml_GlobalScript_btn_click_MeetingNext","gml_Script_btn_click_MeetingNext","gml_GlobalScript_btn_click_Profile_Back","gml_Script_btn_click_Profile_Back","gml_GlobalScript_btn_click_Profile_Pick","gml_Script_btn_click_Profile_Pick","gml_GlobalScript_btn_click_Profile_Cut","gml_Script_btn_click_Profile_Cut","gml_Script_btn_click_Profile_JefeBoost","gml_Script_s_JefeBoost","gml_Script_btn_click_Profile_JefeOutOfRetirement","gml_Script_s_JefeOutOfRetirement","gml_GlobalScript_btn_click_Profile_Trade", "gml_Script_btn_click_Profile_Trade","gml_GlobalScript_btn_click_Profile_Stats","gml_Script_btn_click_Profile_Stats","gml_GlobalScript_btn_click_Profile_Rest","gml_Script_btn_click_Profile_Rest","gml_GlobalScript_btn_click_Profile_Not_Interested","gml_Script_btn_click_Profile_Not_Interested","gml_GlobalScript_btn_click_Profile_ScoutPlayer","gml_Script_btn_click_Profile_ScoutPlayer","gml_GlobalScript_btn_click_AddSkill","gml_Script_btn_click_AddSkill","gml_GlobalScript_btn_click_AddSpeed","gml_Script_btn_click_AddSpeed", "gml_GlobalScript_btn_click_AddStrength","gml_Script_btn_click_AddStrength","gml_GlobalScript_btn_click_AddStamina","gml_Script_btn_click_AddStamina","gml_GlobalScript_btn_click_StatsNext","gml_Script_btn_click_StatsNext","gml_GlobalScript_btn_click_StatsPrev","gml_Script_btn_click_StatsPrev","gml_GlobalScript_btn_click_StatsView1","gml_Script_btn_click_StatsView1","gml_GlobalScript_btn_click_StatsView2","gml_Script_btn_click_StatsView2","gml_GlobalScript_btn_click_EditProfile","gml_Script_btn_click_EditProfile", "gml_GlobalScript_btn_click_Meeting_Morale","gml_Script_btn_click_Meeting_Morale","gml_GlobalScript_btn_click_Meeting_Condition","gml_Script_btn_click_Meeting_Condition","gml_GlobalScript_s_qb_mode_update_resting","gml_Script_s_qb_mode_update_resting","gml_GlobalScript_btn_click_Meeting_LevelUp","gml_Script_btn_click_Meeting_LevelUp","gml_GlobalScript_btn_click_Meeting_ExtendContract","gml_Script_btn_click_Meeting_ExtendContract","gml_GlobalScript_btn_click_FieldGoal","gml_Script_btn_click_FieldGoal", "gml_GlobalScript_btn_click_Running","gml_Script_btn_click_Running","gml_GlobalScript_btn_click_Passing","gml_Script_btn_click_Passing","gml_GlobalScript_s_get_happiness","gml_Script_s_get_happiness","gml_GlobalScript_btn_click_Training","gml_Script_btn_click_Training","gml_GlobalScript_btn_click_Roster","gml_Script_btn_click_Roster","gml_GlobalScript_btn_click_Roster_Back","gml_Script_btn_click_Roster_Back","gml_Script_btn_click_Profile_Back_To_Draft","gml_Script_btn_click_Profile_Back_To_Draft_Continue", "gml_GlobalScript_btn_click_DraftPrev","gml_Script_btn_click_DraftPrev","gml_GlobalScript_btn_click_DraftNext","gml_Script_btn_click_DraftNext","gml_GlobalScript_btn_click_DraftDone","gml_Script_btn_click_DraftDone","gml_GlobalScript_btn_click_FreeAgents","gml_Script_btn_click_FreeAgents","gml_GlobalScript_btn_click_FreeAgentsBack","gml_Script_btn_click_FreeAgentsBack","gml_GlobalScript_btn_click_RestAll","gml_Script_btn_click_RestAll","gml_GlobalScript_btn_click_FreeAgentsNext","gml_Script_btn_click_FreeAgentsNext", "gml_GlobalScript_btn_click_FreeAgentsPrev","gml_Script_btn_click_FreeAgentsPrev","gml_GlobalScript_btn_click_FreeAgentsReset","gml_Script_btn_click_FreeAgentsReset","gml_GlobalScript_btn_click_Boost_Morale","gml_Script_btn_click_Boost_Morale","gml_GlobalScript_btn_click_Boost_Condition","gml_Script_btn_click_Boost_Condition","gml_GlobalScript_btn_click_Boost_Salary_Cap","gml_Script_btn_click_Boost_Salary_Cap","gml_GlobalScript_s_set_up_button_kickoff","gml_Script_s_set_up_button_kickoff","gml_Script_btn_kick_off", "gml_Script_s_btn_kickoff_recenter","gml_GlobalScript_s_college_editor","gml_Script____struct___108_s_rm_editor_init_gml_GlobalScript_s_college_editor","gml_Script____struct___109_s_rm_editor_init_gml_GlobalScript_s_college_editor","gml_Script____struct___110_s_rm_editor_init_gml_GlobalScript_s_college_editor","gml_Script____struct___111_s_rm_editor_init_gml_GlobalScript_s_college_editor","gml_Script____struct___112_s_rm_editor_init_gml_GlobalScript_s_college_editor","gml_Script____struct___113_s_rm_editor_init_gml_GlobalScript_s_college_editor", "gml_Script____struct___114_s_rm_editor_init_gml_GlobalScript_s_college_editor","gml_Script____struct___115_s_rm_editor_init_gml_GlobalScript_s_college_editor","gml_Script____struct___116_s_rm_editor_init_gml_GlobalScript_s_college_editor","gml_Script____struct___117_s_rm_editor_init_gml_GlobalScript_s_college_editor","gml_Script_s_rm_editor_init","gml_Script_s_goto_editor","gml_Script_s_btn_editor_done","gml_Script_s_btn_editor_major","gml_Script_s_btn_editor_minor","gml_Script_s_btn_editor_bowls", "gml_Script_s_btn_editor_back","gml_Script____struct___118_s_btn_editor_edit_subdivision_gml_GlobalScript_s_college_editor","gml_Script_s_btn_editor_edit_subdivision","gml_Script____struct___119_s_btn_editor_edit_conference_gml_GlobalScript_s_college_editor","gml_Script_s_btn_editor_edit_conference","gml_Script_s_btn_editor_conference","gml_Script_s_btn_editor_select_team","gml_Script_s_btn_editor_select_bowl_group","gml_Script____struct___120_s_btn_editor_select_bowl_competition_gml_GlobalScript_s_college_editor", "gml_Script_s_btn_editor_select_bowl_competition","gml_Script____struct___121_s_save_editor_status_gml_GlobalScript_s_college_editor","gml_Script_s_save_editor_status","gml_Script____struct___122_s_get_editor_status_gml_GlobalScript_s_college_editor","gml_Script_s_get_editor_status","gml_Script_s_reset_editor_status","gml_Script_s_editor_subdivision_mode","gml_Script_s_editor_conference_mode","gml_Script_s_editor_bowls_group_mode","gml_Script_s_editor_bowls_competition_mode","gml_Script_s_editor_set_buttons", "gml_Script_s_editor_refresh_bowls_groups","gml_Script____struct___123_s_editor_create_bowls_buttons_gml_GlobalScript_s_college_editor","gml_Script____struct___124_s_editor_create_bowls_buttons_gml_GlobalScript_s_college_editor","gml_Script_s_editor_create_bowls_buttons","gml_Script____struct___125_s_create_slot_label_gml_GlobalScript_s_college_editor","gml_Script_s_create_slot_label","gml_Script_s_ui_label_draw_gui","gml_Script_s_get_editor_bowl_group_name_by_tag","gml_Script____struct___126_s_editor_copy_buttons_gml_GlobalScript_s_college_editor", "gml_Script____struct___127_s_editor_copy_buttons_gml_GlobalScript_s_college_editor","gml_Script____struct___128_s_editor_copy_buttons_gml_GlobalScript_s_college_editor","gml_Script____struct___129_s_editor_copy_buttons_gml_GlobalScript_s_college_editor","gml_Script____struct___130_s_editor_copy_buttons_gml_GlobalScript_s_college_editor","gml_Script_s_editor_copy_buttons","gml_Script_s_init_btn_editor_copy","gml_Script_s_btn_editor_copy","gml_Script_s_btn_editor_confirm_copy","gml_Script_s_btn_editor_restore_all", "gml_Script_s_btn_editor_confirm_restore_all","gml_GlobalScript_btn_click_DeleteSlot1","gml_Script_btn_click_DeleteSlot1","gml_GlobalScript_btn_click_DeleteSlot2","gml_Script_btn_click_DeleteSlot2","gml_GlobalScript_btn_click_DeleteSlot3","gml_Script_btn_click_DeleteSlot3","gml_GlobalScript_btn_click_DeleteSlot4","gml_Script_btn_click_DeleteSlot4","gml_GlobalScript_btn_click_DeleteSlot5","gml_Script_btn_click_DeleteSlot5","gml_GlobalScript_btn_click_StaffProfile","gml_Script_btn_click_StaffProfile", "gml_GlobalScript_btn_click_StaffProfileNext","gml_Script_btn_click_StaffProfileNext","gml_GlobalScript_s_draw_gamepad_controls","gml_Script_s_draw_gamepad_controls","gml_GlobalScript_s_team_helpers","gml_Script_s_teams_file","gml_GlobalScript_btn_click_StaffProfilePrev","gml_Script_btn_click_StaffProfilePrev","gml_GlobalScript_btn_click_StaffProfileBack","gml_Script_btn_click_StaffProfileBack","gml_GlobalScript_btn_click_HireStaff","gml_Script_btn_click_HireStaff","gml_GlobalScript_btn_click_ViewHires", "gml_Script_btn_click_ViewHires","gml_GlobalScript_btn_click_ViewHiresProfile","gml_Script_btn_click_ViewHiresProfile","gml_GlobalScript_btn_click_ViewHiresBack","gml_Script_btn_click_ViewHiresBack","gml_GlobalScript_btn_click_ViewHiresReset","gml_Script_btn_click_ViewHiresReset","gml_GlobalScript_btn_click_TrainingLight","gml_Script_btn_click_TrainingLight","gml_GlobalScript_btn_click_TrainingNormal","gml_Script_btn_click_TrainingNormal","gml_GlobalScript_btn_click_TrainingHard","gml_Script_btn_click_TrainingHard", "gml_GlobalScript_btn_click_XP_Continue","gml_Script_btn_click_XP_Continue","gml_GlobalScript_btn_click_XP_Back","gml_Script_btn_click_XP_Back","gml_GlobalScript_btn_response_quit_yes","gml_Script_btn_response_quit_yes","gml_GlobalScript_btn_response_newgame_commit","gml_Script_btn_response_newgame_commit","gml_GlobalScript_btn_response_kick_no","gml_Script_btn_response_kick_no","gml_GlobalScript_btn_response_punt_yes","gml_Script_btn_response_punt_yes","gml_GlobalScript_btn_response_fg_yes","gml_Script_btn_response_fg_yes", "gml_GlobalScript_btn_response_1pt","gml_Script_btn_response_1pt","gml_GlobalScript_btn_response_2pt","gml_Script_btn_response_2pt","gml_GlobalScript_btn_response_onsidekick_no","gml_Script_btn_response_onsidekick_no","gml_GlobalScript_btn_response_onsidekick_yes","gml_Script_btn_response_onsidekick_yes","gml_GlobalScript_btn_response_cut_player_yes","gml_Script_btn_response_cut_player_yes","gml_GlobalScript_btn_response_skip_draft_yes","gml_Script_btn_response_skip_draft_yes","gml_GlobalScript_btn_response_pick_player_yes", "gml_Script_btn_response_pick_player_yes","gml_GlobalScript_btn_click_OptionsKickReturns","gml_Script_btn_click_OptionsKickReturns","gml_Script_btn_click_OptionsKickReturns_Exh","gml_GlobalScript_btn_response_in_trade_player_yes","gml_Script_btn_response_in_trade_player_yes","gml_GlobalScript_btn_response_out_trade_player_yes","gml_Script_btn_response_out_trade_player_yes","gml_GlobalScript_btn_response_out_trade_player_no","gml_Script_btn_response_out_trade_player_no","gml_GlobalScript_btn_response_player_meeting_morale_yes", "gml_Script_btn_response_player_meeting_morale_yes","gml_GlobalScript_btn_response_player_meeting_condition_yes","gml_Script_btn_response_player_meeting_condition_yes","gml_GlobalScript_btn_response_player_meeting_levelup_yes","gml_Script_btn_response_player_meeting_levelup_yes","gml_GlobalScript_btn_response_player_meeting_extend_contract","gml_Script_btn_response_player_meeting_extend_contract","gml_GlobalScript_btn_response_boost_morale","gml_Script_btn_response_boost_morale","gml_GlobalScript_btn_response_boost_condition", "gml_Script_btn_response_boost_condition","gml_GlobalScript_btn_response_boost_salary_cap","gml_Script_btn_response_boost_salary_cap","gml_GlobalScript_s_confirm_upgrade_stadium","gml_Script_s_confirm_upgrade_stadium","gml_GlobalScript_s_confirm_upgrade_training","gml_Script_s_confirm_upgrade_training","gml_GlobalScript_s_confirm_upgrade_rehab","gml_Script_s_confirm_upgrade_rehab","gml_GlobalScript_btn_response_hirestaff","gml_Script_btn_response_hirestaff","gml_GlobalScript_btn_response_clearfreeagents", "gml_Script_btn_response_clearfreeagents","gml_GlobalScript_btn_response_rest_player_yes","gml_Script_btn_response_rest_player_yes","gml_GlobalScript_btn_response_cointoss_kick","gml_Script_btn_response_cointoss_kick","gml_GlobalScript_btn_response_cointoss_receive","gml_Script_btn_response_cointoss_receive","gml_GlobalScript_btn_response_skip_tutorial","gml_Script_btn_response_skip_tutorial","gml_GlobalScript_btn_response_confirm_new_team","gml_Script_btn_response_confirm_new_team_loading","gml_Script_btn_response_confirm_new_team", "gml_GlobalScript_s_store_cant_afford","gml_Script_s_store_cant_afford","gml_GlobalScript_s_tip_continue","gml_Script_s_tip_continue","gml_GlobalScript_s_qb_mode_auto_xp","gml_Script_s_qb_mode_auto_xp","gml_GlobalScript_s_confirm_staff_hire_reset","gml_Script_s_confirm_staff_hire_reset","gml_GlobalScript_s_confirm_freeagent_hire_reset","gml_Script_s_confirm_freeagent_hire_reset","gml_GlobalScript_btn_response_deletegame1","gml_Script_btn_response_deletegame1","gml_GlobalScript_btn_response_deletegame2", "gml_Script_btn_response_deletegame2","gml_GlobalScript_btn_response_deletegame3","gml_Script_btn_response_deletegame3","gml_GlobalScript_btn_response_deletegame4","gml_Script_btn_response_deletegame4","gml_GlobalScript_btn_response_deletegame5","gml_Script_btn_response_deletegame5","gml_GlobalScript_s_simming_action","gml_Script_s_simming_action","gml_GlobalScript_btn_response_hof_select","gml_Script_btn_response_hof_select","gml_GlobalScript_btn_response_records_reset","gml_Script_btn_response_records_reset", "gml_GlobalScript_btn_match_kick","gml_Script_btn_match_kick","gml_Script_btn_match_goforit","gml_Script_btn_match_gofor1pt","gml_GlobalScript_s_do_prematch_dilemma","gml_Script_s_do_prematch_dilemma","gml_Script_s_create_dilemma_news","gml_Script_s_clear_msg_and_back","gml_Script_s_get_standard_dilemmas","gml_Script_s_dilemma_defend_player_cost","gml_Script_s_can_afford_dilemma_cc","gml_Script_s_get_college_dilemmas","gml_GlobalScript_s_do_postmatch_dilemma","gml_Script_s_do_postmatch_dilemma", "gml_GlobalScript_s_parse_dilemma","gml_Script_s_parse_dilemma","gml_GlobalScript_s_create_dilemma","gml_Script_s_create_dilemma","gml_GlobalScript_s_choose_dilemma","gml_Script_s_choose_dilemma","gml_Script_s_extract_dilemma_from_pool","gml_Script_s_add_tag_matches_to_list","gml_Script_s_reject_dilemma_not_enough_RC","gml_GlobalScript_s_dilemma_choice_1","gml_Script_s_dilemma_choice_1","gml_GlobalScript_s_dilemma_choice_2","gml_Script_s_dilemma_choice_2","gml_GlobalScript_s_dilemma_choice","gml_Script_s_dilemma_choice", "gml_Script_s_cut_player_end","gml_Script_s_cut_player_end_gpa","gml_Script_s_cut_player_end_toxic","gml_Script_s_cut_player_end_party","gml_Script_s_cut_player_end_toxic_max","gml_Script_s_cut_player_end_party_max","gml_Script_s_dilemma_morecc_store","gml_Script_s_dilemma_morecc_back","gml_Script_s_dilemma_end","gml_Script_s_dilemma_college_check_chained","gml_Script_s_dilemma_college_check_pending_news","gml_GlobalScript_s_convert_string_to_sprite","gml_Script_s_convert_string_to_sprite","gml_GlobalScript_s_sort_list_by_column", "gml_Script_s_sort_maplist_by_numeric_field","gml_GlobalScript_s_check_draft","gml_Script_s_check_draft","gml_GlobalScript_s_create_draftlist","gml_Script_s_create_draftlist","gml_GlobalScript_s_sound_audience_tck","gml_Script_s_sound_audience_tck","gml_GlobalScript_s_create_freeagentlist","gml_Script_s_create_freeagentlist","gml_GlobalScript_s_create_freeagent","gml_Script_s_create_freeagent","gml_GlobalScript_s_create_tradelist","gml_Script_s_create_tradelist","gml_GlobalScript_s_create_storelist", "gml_Script_s_create_storelist","gml_GlobalScript_s_create_player_storelist","gml_Script_s_create_player_storelist","gml_GlobalScript_s_count_hires_by_position","gml_Script_s_count_hires_by_position","gml_GlobalScript_s_count_players_by_position_store","gml_Script_s_count_players_by_position_store","gml_GlobalScript_s_get_hire_shortlist","gml_Script_s_get_hire_shortlist","gml_GlobalScript_s_reset_draft_picks","gml_Script_s_reset_draft_picks","gml_GlobalScript_poki_btn_click_CoinBoost","gml_Script_poki_btn_click_CoinBoost", "gml_Script_poki_CoinBoost_No","gml_Script_poki_CoinBoost_Yes","gml_GlobalScript_s_update_draft_page","gml_Script_s_update_draft_page","gml_GlobalScript_s_update_freeagents_page","gml_Script_s_update_freeagents_page","gml_GlobalScript_s_college_admissions_draft","gml_Script_s_check_draft_CO","gml_Script_s_college_free_agent_check","gml_Script_btn_respose_college_free_agent_yes","gml_Script_btn_respose_college_free_agent_no","gml_Script_s_college_dilemma_check","gml_Script_s_college_admissions_check_trigger", "gml_Script_s_college_admissions_pick_player","gml_Script_s_college_admissions_players_lost_per_round","gml_Script_s_college_admissions_draft_done","gml_Script_btn_response_college_admissions_draft_done_yes","gml_GlobalScript_s_remaining_picks","gml_Script_s_remaining_picks","gml_GlobalScript_s_remaining_picks_by_round","gml_Script_s_remaining_picks_by_round","gml_GlobalScript_s_get_trade_value","gml_Script_s_get_trade_value","gml_GlobalScript_s_get_trade_value_by_rating","gml_Script_s_get_trade_value_by_rating", "gml_GlobalScript_s_get_offer_team","gml_Script_s_get_offer_team","gml_GlobalScript_s_clear_trade_offers","gml_Script_s_clear_trade_offers","gml_GlobalScript_s_clear_freeagents","gml_Script_s_clear_freeagents","gml_GlobalScript_s_clear_storelist","gml_Script_s_clear_storelist","gml_GlobalScript_s_end_draft_round","gml_Script_s_end_draft_round","gml_Script_s_destroy_draftlist","gml_GlobalScript_s_received_AI_kickoff","gml_Script_s_received_AI_kickoff","gml_GlobalScript_s_update_contracts","gml_Script_s_update_contracts", "gml_Script_s_check_staff_exist","gml_GlobalScript_s_aim_AI_kickoff","gml_Script_s_aim_AI_kickoff","gml_GlobalScript_btn_click_SeasonReview","gml_Script_btn_click_SeasonReview","gml_GlobalScript_s_get_new_salary","gml_Script_s_get_new_salary","gml_GlobalScript_s_check_expired_contract_message","gml_Script_s_check_expired_contract_message","gml_GlobalScript_s_get_salary_cap_space","gml_Script_s_get_salary_cap_space","gml_GlobalScript_s_create_new_save","gml_Script_s_create_new_save","gml_Script_s_regen_clean_save_mode_dependent_data", "gml_Script_s_load_co_mode_files","gml_GlobalScript_s_loadgame","gml_Script_btn_click_LoadSlot1","gml_Script_btn_click_LoadSlot2","gml_Script_btn_click_LoadSlot3","gml_Script_btn_click_LoadSlot4","gml_Script_btn_click_LoadSlot5","gml_Script_btn_click_slot","gml_Script_s_master_load","gml_Script_s_master_load_from_backup","gml_Script_s_loadgame","gml_Script_s_cap_breach_refresh","gml_Script_s_cap_breach_str","gml_Script_s_is_player_pmap_corrupt","gml_Script_s_check_for_return_stats","gml_Script_s_check_longest_records", "gml_Script_s_fix_poki_browser_max_percent_grade","gml_Script_s_update_ui_colours","gml_Script_s_get_college_primary_col","gml_Script_s_update_game_title","gml_GlobalScript_s_savegame","gml_Script_s_savegame","gml_GlobalScript_s_create_map_options","gml_Script_s_create_map_options","gml_GlobalScript_s_count_full_seasons","gml_Script_s_count_full_seasons","gml_Script_s_count_games_coached","gml_Script_s_count_games_simmed","gml_Script_s_count_fixtures_played","gml_GlobalScript_s_load_options","gml_Script_s_load_options", "gml_GlobalScript_s_save_options","gml_Script_s_save_options","gml_GlobalScript_s_save_backup","gml_Script_s_save_backup","gml_GlobalScript_s_load_map_file","gml_Script_s_load_map_file","gml_Script_s_destroy_map_file","gml_GlobalScript_s_update_maplist_from_file","gml_Script_s_update_maplist_from_file","gml_GlobalScript_s_load_strings","gml_Script_s_refresh_strings","gml_Script_s_load_strings","gml_Script_s_select_lang","gml_Script_s_select_lang_file","gml_Script_s_select_override_lang_file","gml_Script_s_select_institution_lang_file", "gml_Script_s_add_file_to_lang_strings","gml_Script____struct___131_s_co_refresh_strings_gml_GlobalScript_s_load_strings","gml_Script_s_co_refresh_strings","gml_Script_s_co_load_strings","gml_Script_s_load_language_file","gml_GlobalScript_s_load_teams","gml_Script_s_load_teams","gml_Script_s_load_teams_data","gml_Script_s_reset_co_team_data","gml_Script_s_set_teams_min_max_ids","gml_Script_s_get_struct_in_array_by_uid","gml_Script____struct___132_load_data_to_struct_array_gml_GlobalScript_s_load_teams", "gml_Script_load_data_to_struct_array","gml_Script____struct___133_s_load_json_gml_GlobalScript_s_load_teams","gml_Script_s_load_json","gml_Script_s_save_json","gml_GlobalScript_s_load_team_detail","gml_Script_s_load_team_detail","gml_GlobalScript_s_load_retrobowl_hof","gml_Script_s_load_retrobowl_hof","gml_GlobalScript_s_load_retrobowl_history","gml_Script_s_load_retrobowl_history","gml_GlobalScript_s_load_schedule","gml_Script_s_load_schedule","gml_Script_s_load_college_schedule","gml_Script_s_get_schedule_data_years", "gml_Script_s_get_schedule_year_stagger","gml_Script_s_get_fix_type","gml_Script____struct___134_s_calc_fix_type_gml_GlobalScript_s_load_schedule","gml_Script_s_calc_fix_type","gml_Script_s_get_fix_type_string","gml_Script_s_get_fix_type_string_by_values","gml_Script_s_create_fix_type_string","gml_Script_s_list_schedule_fix_type","gml_GlobalScript_s_get_savename","gml_Script_s_get_savename","gml_GlobalScript_s_get_string_save_details","gml_Script_s_get_string_save_details","gml_GlobalScript_s_destroy_master", "gml_Script_s_destroy_master","gml_GlobalScript_s_save_uniform_file2","gml_Script_s_save_uniform_file2","gml_GlobalScript_s_load_uniform_file2","gml_Script_s_load_uniform_file2","gml_GlobalScript_s_load_teamname_from_uniform_file","gml_Script_s_load_teamname_from_uniform_file","gml_GlobalScript_s_load_endzone_from_uniform_file","gml_Script_s_load_endzone_from_uniform_file","gml_GlobalScript_s_create_my_fixture_list","gml_Script_s_create_my_fixture_list","gml_GlobalScript_s_create_fixdata","gml_Script_s_create_fixdata", "gml_GlobalScript_s_do_schedule","gml_Script_s_do_schedule","gml_Script____struct___135_s_co_get_sim_results_gml_GlobalScript_s_do_schedule","gml_Script_s_co_get_sim_results","gml_Script_s_co_conference_stats","gml_GlobalScript_s_create_playoffs","gml_Script_s_create_playoffs","gml_GlobalScript_s_create_playoffs2","gml_Script_s_create_playoffs2","gml_GlobalScript_s_playoffs_12","gml_Script_s_playoffs_12","gml_GlobalScript_s_get_week_superbowl","gml_Script_s_get_week_superbowl","gml_GlobalScript_s_do_playoff_schedule", "gml_Script_s_do_playoff_schedule","gml_Script_s_get_retrobowl_mvp_winner","gml_GlobalScript_s_get_random_scoredata","gml_Script_s_get_random_scoredata","gml_Script_s_co_get_random_scoredata","gml_GlobalScript_s_promote_playoff_winner","gml_Script_s_promote_playoff_winner","gml_Script_s_seed_divisional_round","gml_GlobalScript_s_add_to_human_fixtures","gml_Script_s_add_to_human_fixtures","gml_GlobalScript_s_update_human_playoff_fixtures","gml_Script_s_update_human_playoff_fixtures","gml_Script_s_check_rearranged_human_playoff", "gml_Script_s_update_human_fixtures","gml_Script_s_update_fixturelist_fix_extra_data","gml_GlobalScript_s_get_playoff_fixture_by_week","gml_Script_s_get_playoff_fixture_by_week","gml_GlobalScript_s_get_human_fixture_by_week","gml_Script_s_get_human_fixture_by_week","gml_GlobalScript_s_get_human_fixture_previous","gml_Script_s_get_human_fixture_previous","gml_GlobalScript_exhibition_scripts","gml_Script_btn_click_exhibition_start","gml_Script_btn_click_exhibition_exit","gml_Script_s_exhibition_exit", "gml_Script_s_exhibition_lost_two_controllers","gml_Script_s_exhibition_assign_lost_controller","gml_Script_s_exhibition_abandon","gml_Script_s_set_up_uniforms_exhibition","gml_Script_s_create_exhibition_fixture","gml_Script_btn_click_exhibition_controller_0","gml_Script_btn_click_exhibition_controller_1","gml_Script_s_update_exhibition_controllers","gml_Script_btn_click_ChangeTeamAway","gml_Script_btn_click_ChangeTeamHome","gml_Script_btn_click_Exhibition_Play","gml_Script_s_update_options_exh", "gml_Script_s_force_kick_direction","gml_Script_s_count_audibles","gml_Script_s_update_audibles","gml_Script_s_set_audibles","gml_Script_s_count_timeouts","gml_Script_s_update_timeouts","gml_Script_s_set_timeouts","gml_Script_s_set_exhibition_buttons","gml_Script_btn_click_exhibition_switch_start","gml_Script_s_exhibition_controller_check_continue","gml_Script_btn_click_exhibition_controllers","gml_Script_btn_exhibition_controllers_refresh","gml_Script_rm_exhibition_options_create","gml_Script_s_exh_teamswap_allowed", "gml_Script_get_ex_teamset_0","gml_Script_get_ex_teamset_1","gml_Script_get_ex_uniform_file","gml_Script_btn_click_ExhibitionLoadUniformsA","gml_Script_btn_click_ExhibitionLoadUniformsB","gml_Script_btn_click_ExhibitionLoadUniformsC","gml_Script_btn_click_ExhibitionLoadUniformsD","gml_Script_btn_click_ExhibitionLoadUniformsE","gml_Script_btn_click_ExhibitionLoadUniforms","gml_Script_s_get_save_from_number","gml_Script_s_load_save_team_exhibitionA","gml_Script_s_load_save_team_exhibitionB","gml_Script_s_load_save_team_exhibitionC", "gml_Script_s_load_save_team_exhibitionD","gml_Script_s_load_save_team_exhibitionE","gml_Script_s_load_save_team_exhibition","gml_Script_exh_refresh_roster_from_save","gml_Script_s_load_html_save1_exhibition","gml_Script_btn_click_RestoreAllTeams_ex","gml_Script_s_restore_uniforms_all_ex","gml_Script_s_exhibition_team_management_start","gml_Script_s_exhibition_team_management_clear","gml_Script_s_exhibition_wipe_list","gml_Script_s_refresh_exhibition_team_load_buttons","gml_Script_refresh_exh_roster_buttons", "gml_Script_btn_click_RosterTeamAway","gml_Script_btn_click_RosterTeamHome","gml_Script_btn_click_Profile_Back_To_Exhibition","gml_Script_rm_player_profile_exhibition_create","gml_Script_rm_roster_exhibition_create","gml_Script_exhibition_handle_exit_match","gml_GlobalScript_s_get_human_fixture_next","gml_Script_s_get_human_fixture_next","gml_GlobalScript_s_count_remaining_fixtures","gml_Script_s_count_remaining_fixtures","gml_GlobalScript_s_get_division_winner","gml_Script_s_get_division_winner", "gml_GlobalScript_s_get_team_position_by_id","gml_Script_s_get_team_position_by_id","gml_GlobalScript_s_get_division_winner_name","gml_Script_s_get_division_winner_name","gml_GlobalScript_s_get_division_winner_by_seed","gml_Script_s_get_division_winner_by_seed","gml_GlobalScript_s_get_division_winner_name_by_seed","gml_Script_s_get_division_winner_name_by_seed","gml_GlobalScript_s_skip_to_week","gml_Script_s_skip_to_week","gml_GlobalScript_s_clear_playoff_fixtures","gml_Script_s_clear_playoff_fixtures", "gml_GlobalScript_s_update_team_edit_buttons","gml_Script_s_update_team_edit_buttons","gml_GlobalScript_s_set_up_edit_screen","gml_Script_s_set_up_edit_screen","gml_GlobalScript_s_color_picker","gml_Script_s_color_picker","gml_GlobalScript_s_set_up_uniforms","gml_Script_s_set_up_uniforms","gml_GlobalScript_s_set_up_uniforms_training","gml_Script_s_set_up_uniforms_training","gml_GlobalScript_s_set_up_uniform_profile","gml_Script_s_set_up_uniform_profile","gml_GlobalScript_s_shader_get_uniforms","gml_Script_s_shader_get_uniforms", "gml_GlobalScript_s_shader_set_uniforms","gml_Script_s_shader_set_uniforms","gml_Script_s_blackwhite_colour_hack","gml_GlobalScript_s_convert_uniform_colours_all","gml_Script_s_convert_uniform_colours_all","gml_GlobalScript_s_convert_uniform_colour","gml_Script_s_convert_uniform_colour","gml_GlobalScript_s_restore_uniforms_all","gml_Script_s_restore_uniforms_all","gml_GlobalScript_s_copy_uniforms_slot_a","gml_Script_s_copy_uniforms_slot_a","gml_GlobalScript_s_copy_uniforms_slot_b","gml_Script_s_copy_uniforms_slot_b", "gml_GlobalScript_s_copy_uniforms_slot_c","gml_Script_s_copy_uniforms_slot_c","gml_GlobalScript_s_copy_uniforms_slot_d","gml_Script_s_copy_uniforms_slot_d","gml_GlobalScript_s_set_up_kickoff","gml_Script_s_set_up_kickoff","gml_GlobalScript_s_copy_uniforms_slot_e","gml_Script_s_copy_uniforms_slot_e","gml_GlobalScript_s_update_uniform_name","gml_Script_s_update_uniform_name","gml_GlobalScript_s_copy_teamnames_from_uniform_file","gml_Script_s_copy_teamnames_from_uniform_file","gml_GlobalScript_s_edit_name", "gml_Script_s_edit_name","gml_GlobalScript_btn_click_edit_div1","gml_Script_btn_click_edit_div1","gml_GlobalScript_btn_click_edit_div2","gml_Script_btn_click_edit_div2","gml_GlobalScript_s_history","gml_Script_s_get_history_by_year","gml_Script_s_create_history_for_current_year","gml_Script_s_log_this_year_history","gml_Script_s_log_full_history","gml_Script_s_update_history","gml_Script_s_update_history_playoffs","gml_Script_s_update_history_finish","gml_Script_s_update_history_season_end","gml_Script_s_update_history_won_championship", "gml_Script_s_update_history_reached_playoffs_round","gml_Script_s_update_history_won_bowl","gml_Script_s_update_history_subdivisional_champ_finals","gml_Script_s_history_display_lines_count","gml_Script_s_history_display_lines_count_yearindex","gml_GlobalScript_btn_click_edit_div3","gml_Script_btn_click_edit_div3","gml_GlobalScript_btn_click_edit_div4","gml_Script_btn_click_edit_div4","gml_GlobalScript_s_college_data_versioning","gml_Script_s_get_versioned_path","gml_Script_s_is_newer_data_available", "gml_Script_s_is_team_active_in_new_data","gml_Script_s_get_build_data_version","gml_Script_s_get_build_year_offset","gml_Script_s_get_data_version_string","gml_Script____struct___136_s_reset_to_version_gml_GlobalScript_s_college_data_versioning","gml_Script_s_reset_to_version","gml_Script_s_data_upgrade_teams","gml_Script_s_offer_data_upgrade","gml_Script_s_data_upgrade_offer_deny","gml_Script_s_data_upgrade_offer_accept","gml_GlobalScript_btn_click_edit_conf1","gml_Script_btn_click_edit_conf1", "gml_GlobalScript_btn_click_edit_conf2","gml_Script_btn_click_edit_conf2","gml_GlobalScript_s_edit_confirm_div1","gml_Script_s_edit_confirm_div1","gml_GlobalScript_s_edit_confirm_div2","gml_Script_s_edit_confirm_div2","gml_GlobalScript_s_edit_confirm_div3","gml_Script_s_edit_confirm_div3","gml_GlobalScript_s_edit_confirm_div4","gml_Script_s_edit_confirm_div4","gml_GlobalScript_s_edit_confirm_conf1","gml_Script_s_edit_confirm_conf1","gml_GlobalScript_s_edit_confirm_conf2","gml_Script_s_edit_confirm_conf2", "gml_GlobalScript_s_populate_division","gml_Script_s_populate_division","gml_GlobalScript_s_populate_schedulebox","gml_Script_s_populate_schedulebox","gml_GlobalScript_s_create_credit","gml_Script_s_create_credit","gml_GlobalScript_s_set_up_xp_headers","gml_Script_s_set_up_xp_headers","gml_GlobalScript_s_count_hof_entries","gml_Script_s_count_hof_entries","gml_GlobalScript_s_set_up_hof_players_screen","gml_Script_s_set_up_hof_players_screen","gml_GlobalScript_s_iap_init","gml_Script_s_iap_init", "gml_GlobalScript_s_set_up_purchase_ids","gml_Script_s_set_up_purchase_ids","gml_GlobalScript_s_iap_async_android","gml_Script_s_debug_purge_all_android_iap","gml_Script_s_iap_async_android","gml_GlobalScript_s_iap_async_ios","gml_Script_s_iap_async_ios","gml_GlobalScript_s_iap_purchase_FullVersion","gml_Script_s_iap_purchase_FullVersion","gml_GlobalScript_s_set_position_kickoff","gml_Script_s_set_position_return_ko","gml_Script_s_set_position_take_ko","gml_GlobalScript_s_iap_purchase_Credits_20", "gml_Script_s_iap_purchase_Credits_20","gml_GlobalScript_s_iap_purchase_Credits_50","gml_Script_s_iap_purchase_Credits_50","gml_GlobalScript_s_iap_purchase_Credits_100","gml_Script_s_iap_purchase_Credits_100","gml_GlobalScript_s_iap_purchase_Credits_250","gml_Script_s_iap_purchase_Credits_250","gml_GlobalScript_s_iap_restore","gml_Script_s_iap_restore","gml_GlobalScript_s_open_store","gml_Script_s_open_store","gml_Script_s_btn_store_exit","gml_GlobalScript_s_open_store_nag","gml_Script_s_open_store_nag", "gml_GlobalScript_s_do_nag_message","gml_Script_s_do_nag_message","gml_Script_s_do_ad_retrogoal","gml_GlobalScript_s_do_purchase_message","gml_Script_s_do_purchase_message","gml_GlobalScript_btn_step_check_fullversion","gml_Script_btn_step_check_fullversion","gml_GlobalScript_btn_step_check_iaps","gml_Script_btn_step_check_iaps","gml_GlobalScript_s_freeze_purchase_buttons","gml_Script_s_freeze_purchase_buttons","gml_GlobalScript_s_unfreeze_purchase_buttons","gml_Script_s_unfreeze_purchase_buttons", "gml_GlobalScript_s_do_info_position","gml_Script_s_do_info_position","gml_GlobalScript_s_do_info_skills","gml_Script_s_do_info_skills","gml_GlobalScript_s_do_info_coachtrait","gml_Script_s_do_info_coachtrait","gml_GlobalScript_s_do_info_draftpicks","gml_Script_s_do_info_draftpicks","gml_GlobalScript_s_do_info","gml_Script_s_do_info","gml_Script_s_info_draft_col1","gml_Script_s_info_draft_col2","gml_GlobalScript_s_create_camera","gml_Script_s_create_camera","gml_GlobalScript_s_play","gml_Script_s_play", "gml_Script_s_play_endweek","gml_GlobalScript_s_update_poki_scaling","gml_Script_s_update_poki_scaling","gml_GlobalScript_s_pre_match","gml_Script_s_pre_match","gml_Script_s_continue_time_for_draft_msg","gml_Script_s_co_pre_match","gml_GlobalScript_s_player_profile_qb_mode","gml_Script_s_player_profile_qb_mode","gml_GlobalScript_s_do_next_week","gml_Script_s_do_next_week","gml_GlobalScript_s_start_new_season","gml_Script_s_start_new_season","gml_Script_s_renew_contracts_qb_mode","gml_GlobalScript_s_update_team_buttons", "gml_Script_s_update_team_buttons","gml_GlobalScript_s_update_job_offer_buttons","gml_Script_s_update_job_offer_buttons","gml_GlobalScript_s_update_options","gml_Script_s_update_options","gml_Script_s_get_op_invert_throw","gml_Script_s_get_op_autorun","gml_Script_btn_click_CollegeToggleColor","gml_Script_s_get_gm_version","gml_Script_s_update_options_if_present","gml_GlobalScript_s_get_attitude_icon","gml_Script_s_get_attitude_icon","gml_Script_s_attitude_reduce_step","gml_GlobalScript_s_get_credit", "gml_Script_s_get_credit","gml_GlobalScript_s_decline_facilities","gml_Script_s_decline_facilities","gml_GlobalScript_s_do_result_news_qb","gml_Script_s_do_result_news_qb","gml_Script_s_choose_news","gml_GlobalScript_s_reset_player_meetings","gml_Script_s_reset_player_meetings","gml_GlobalScript_s_has_xp_gain","gml_Script_s_has_xp_gain","gml_GlobalScript_s_is_bye_week","gml_Script_s_is_bye_week","gml_Script_s_get_bye_week","gml_GlobalScript_s_do_bye_week","gml_Script_s_do_bye_week","gml_GlobalScript_s_do_postmatch_effects", "gml_Script_s_do_postmatch_effects","gml_GlobalScript_s_do_postmatch_fans","gml_Script_s_do_postmatch_fans","gml_Script_s_get_postmatch_fans_qb","gml_GlobalScript_s_check_intro","gml_Script_s_check_intro","gml_Script_s_check_intro_college","gml_Script_s_check_intro_rm_home","gml_Script_s_check_intro_rm_home_college","gml_Script_s_check_intro_rm_roster","gml_Script_s_check_intro_rm_roster_college","gml_Script_s_check_intro_rm_frontoffice","gml_Script_s_check_intro_rm_frontoffice_college","gml_Script_s_check_intro_rm_profile_staff", "gml_Script_s_check_intro_rm_profile_staff_college","gml_Script_s_check_intro_rm_profile_boss","gml_Script_s_check_intro_rm_profile_boss_college","gml_Script_s_check_intro_case1","gml_Script_s_check_intro_case2","gml_Script_s_check_intro_case3","gml_Script_s_check_intro_case4","gml_Script_s_check_intro_case5","gml_Script_s_check_intro_case6","gml_Script_s_check_intro_case7","gml_Script_s_check_intro_case8","gml_Script_s_check_intro_case2_b","gml_Script_s_check_intro_case2_c","gml_Script_s_check_intro_case2_d", "gml_Script_s_check_intro_case2_e","gml_Script_s_check_intro_case2_f","gml_Script_s_check_intro_case2_g","gml_Script_s_info_gpa_explanation_open","gml_Script_btn_info_gpa_explanation_intro_close","gml_Script_s_check_intro_case5_b","gml_Script_s_check_intro_case5_second_msg","gml_GlobalScript_s_do_result_news","gml_Script_s_do_result_news","gml_GlobalScript_s_count_joboffers","gml_Script_s_count_joboffers","gml_GlobalScript_s_refresh_save_slots","gml_Script_s_refresh_save_slots","gml_GlobalScript_s_show_backups", "gml_Script_s_show_backups","gml_Script_s_restore_backup1","gml_Script_s_restore_backup2","gml_Script_s_restore_backup3","gml_Script_s_restore_backup4","gml_Script_s_restore_backup5","gml_GlobalScript_s_team_interested","gml_Script_s_team_interested","gml_Script_s_qb_mode_team_interested","gml_GlobalScript_s_update_history","gml_GlobalScript_s_update_history_finish","gml_GlobalScript_age_scripts","gml_Script_s_rookie_age_internal","gml_Script_s_max_age_player_internal","gml_Script_s_max_age_qb_internal", "gml_Script_s_get_max_age","gml_GlobalScript_s_update_history_playoffs","gml_GlobalScript_s_college_custom_data","gml_Script_s_custom_data_file_exists","gml_Script_s_custom_data_load","gml_Script_s_custom_data_file_delete","gml_Script_s_custom_data_patch","gml_Script_s_custom_data_update_from_editor","gml_Script_s_custom_data_save","gml_Script_s_custom_data_delete","gml_Script_s_custom_data_reset","gml_Script____struct___137_s_custom_data_template_gml_GlobalScript_s_college_custom_data","gml_Script____struct___138_s_custom_data_template_gml_GlobalScript_s_college_custom_data", "gml_Script____struct___139_s_custom_data_template_gml_GlobalScript_s_college_custom_data","gml_Script____struct___140_s_custom_data_template_gml_GlobalScript_s_college_custom_data","gml_Script_s_custom_data_template","gml_Script_s_custom_data_restore","gml_Script_s_custom_data_copy_from","gml_Script_s_copy_uniforms_from","gml_Script_s_college_restore_all_uniforms","gml_Script_s_custom_data_exists","gml_Script_s_is_custom_data_active","gml_Script_s_set_custom_data_active","gml_Script_s_get_custom_data_subdivision", "gml_Script_s_get_custom_data_conference","gml_Script_s_get_custom_data_competition","gml_Script_s_get_custom_data_filename","gml_Script____struct___141_s_get_or_create_custom_data_conference_gml_GlobalScript_s_college_custom_data","gml_Script_s_get_or_create_custom_data_conference","gml_Script____struct___142_s_get_or_create_custom_data_competition_gml_GlobalScript_s_college_custom_data","gml_Script_s_get_or_create_custom_data_competition","gml_Script_s_get_custom_data_suffix","gml_Script_s_get_custom_data_comp_name_prefix", "gml_Script_s_get_custom_data_comp_name_suffix","gml_Script_s_get_bowl_split_name","gml_GlobalScript_s_get_history_by_year","gml_GlobalScript_s_update_music","gml_Script_s_update_music","gml_Script_s_update_music_safe","gml_GlobalScript_s_get_ticker_text","gml_Script_s_get_ticker_text","gml_GlobalScript_s_choose_random_face_for_me","gml_Script_s_choose_random_face_for_me","gml_GlobalScript_s_get_kick_direction","gml_Script_s_get_kick_direction","gml_GlobalScript_s_aiming","gml_Script_s_aiming","gml_GlobalScript_s_update_ball", "gml_Script_s_update_ball","gml_GlobalScript_s_do_touchback","gml_Script_s_do_touchback","gml_GlobalScript_s_update_ball_fieldgoal","gml_Script_s_update_ball_fieldgoal","gml_GlobalScript_s_update_ball_movement","gml_Script_s_update_ball_movement","gml_GlobalScript_s_update_ball_offset","gml_Script_s_update_ball_offset","gml_GlobalScript_s_is_ball_dead","gml_Script_s_is_ball_dead","gml_GlobalScript_s_check_ball_position","gml_Script_s_check_ball_position","gml_GlobalScript_s_check_ball_collision", "gml_Script_s_check_ball_collision","gml_GlobalScript_s_check_tipped","gml_Script_s_check_tipped","gml_GlobalScript_s_drop_ball","gml_Script_s_drop_ball","gml_GlobalScript_s_check_dummy_collision","gml_Script_s_check_dummy_collision","gml_Script_s_sound_training_success","gml_GlobalScript_s_kick_ball","gml_Script_s_kick_ball","gml_GlobalScript_s_spike_ball","gml_Script_s_spike_ball","gml_GlobalScript_s_college_gui_panels","gml_Script____struct___143_s_co_subdivision_create_gml_GlobalScript_s_college_gui_panels", "gml_Script_s_co_subdivision_create","gml_Script_s_co_subdivision_init","gml_Script_s_co_subdivision_hidden_draw_gui","gml_Script_s_co_division_create","gml_Script_s_co_division_init","gml_Script_s_co_division_step","gml_Script_s_fit_string","gml_Script_s_co_division_draw_gui","gml_GlobalScript_s_set_ball_down","gml_Script_s_set_ball_down","gml_GlobalScript_s_receive_ball","gml_Script_s_receive_ball","gml_GlobalScript_s_opposite_aim","gml_Script_s_opposite_aim","gml_GlobalScript_s_update_xdead", "gml_Script_s_update_xdead","gml_GlobalScript_s_set_skills_and_skin","gml_Script_s_set_skills_and_skin","gml_GlobalScript_s_set_anim","gml_Script_s_set_anim","gml_GlobalScript_s_set_position_offense","gml_Script_s_set_position_offense","gml_GlobalScript_s_create_news_message","gml_Script_s_create_news_dyn_message","gml_GlobalScript_s_set_position_defense","gml_Script_s_set_position_defense","gml_GlobalScript_s_college_postseason","gml_Script____struct___144_s_rm_postseason_init_gml_GlobalScript_s_college_postseason", "gml_Script____struct___145_s_rm_postseason_init_gml_GlobalScript_s_college_postseason","gml_Script____struct___146_s_rm_postseason_init_gml_GlobalScript_s_college_postseason","gml_Script____struct___147_s_rm_postseason_init_gml_GlobalScript_s_college_postseason","gml_Script____struct___148_s_rm_postseason_init_gml_GlobalScript_s_college_postseason","gml_Script____struct___149_s_rm_postseason_init_gml_GlobalScript_s_college_postseason","gml_Script____struct___150_s_rm_postseason_init_gml_GlobalScript_s_college_postseason", "gml_Script_s_rm_postseason_init","gml_Script_s_btn_postseason_skip_loading","gml_Script_s_btn_postseason_skip","gml_Script_s_btn_postseason_play","gml_Script_s_postseason_goto_home","gml_Script_s_btn_result_postseason_continue","gml_Script_s_btn_postmatch_co_continue","gml_Script_s_btn_postmatch_co_league","gml_Script_s_postseason_show_news","gml_Script_s_postseason_show_finals","gml_Script_s_postseason_show_next_result","gml_Script_s_postseason_show_finals_result","gml_Script_s_btn_postseason_news_skip", "gml_Script_s_btn_postseason_news_continue","gml_Script_s_postseason_results","gml_Script____struct___151_s_create_postseason_result_gml_GlobalScript_s_college_postseason","gml_Script____struct___152_s_create_postseason_result_gml_GlobalScript_s_college_postseason","gml_Script_s_create_postseason_result","gml_Script_s_postseason_results_data_sort","gml_Script_s_get_postseason_result_by_cid","gml_Script_s_get_competition_win_access","gml_Script_s_get_fix_access_string","gml_Script_s_get_fix_result_string", "gml_Script_s_skip_postseason_until_human_match","gml_Script_s_skip_postseason_chunk","gml_GlobalScript_s_get_nearest_opponent_by_position","gml_Script_s_get_nearest_opponent_by_position","gml_GlobalScript_s_set_position_defense_fg","gml_Script_s_set_position_defense_fg","gml_GlobalScript_s_set_position_offense_fg","gml_Script_s_set_position_offense_fg","gml_GlobalScript_s_get_skin_colour_by_index","gml_Script_s_get_skin_colour_by_index","gml_GlobalScript_s_point_to_path","gml_Script_s_point_to_path", "gml_GlobalScript_s_intercept_object","gml_Script_s_intercept_object","gml_GlobalScript_s_cover_object","gml_Script_s_cover_object","gml_GlobalScript_s_get_nearest_opponent","gml_Script_s_get_nearest_opponent","gml_GlobalScript_s_aim_for_nearest_opponent","gml_Script_s_aim_for_nearest_opponent","gml_GlobalScript_s_get_distance_to_nearest_opponent","gml_Script_s_get_distance_to_nearest_opponent","gml_GlobalScript_s_get_distance_to_furthest_teammate","gml_Script_s_get_distance_to_furthest_teammate", "gml_GlobalScript_s_get_destination","gml_Script_s_get_destination","gml_GlobalScript_s_check_human_control","gml_Script_s_check_human_control","gml_Script_s_do_dive","gml_Script_s_do_stutterstep","gml_GlobalScript_s_check_tackling","gml_Script_s_check_tackling","gml_GlobalScript_s_stop_tackling","gml_Script_s_stop_tackling","gml_GlobalScript_s_check_dive","gml_Script_s_check_dive","gml_GlobalScript_s_get_quarterback","gml_Script_s_get_quarterback","gml_GlobalScript_s_get_kicker","gml_Script_s_get_kicker", "gml_GlobalScript_s_can_run","gml_Script_s_can_run","gml_GlobalScript_s_is_in_the_clear","gml_Script_s_is_in_the_clear","gml_GlobalScript_s_ball_holder_goalside","gml_Script_s_ball_holder_goalside","gml_GlobalScript_s_opponent_goalside","gml_Script_s_opponent_goalside","gml_GlobalScript_s_y_on_myside","gml_Script_s_y_on_myside","gml_GlobalScript_s_aim_AI_offense","gml_Script_s_aim_AI_offense","gml_GlobalScript_s_aim_AI_defense","gml_Script_s_aim_AI_defense","gml_GlobalScript_s_received_AI_new","gml_Script_s_received_AI_new", "gml_GlobalScript_s_can_throw","gml_Script_s_can_throw","gml_GlobalScript_s_sprite_holding_ball","gml_Script_s_sprite_holding_ball","gml_GlobalScript_s_is_falling","gml_Script_s_is_falling","gml_GlobalScript_is_defensiveback","gml_Script_is_defensiveback","gml_GlobalScript_s_get_qb_name","gml_Script_s_get_qb_name","gml_GlobalScript_s_get_kicker_name","gml_Script_s_get_kicker_name","gml_GlobalScript_s_get_holder_name","gml_Script_s_get_holder_name","gml_GlobalScript_s_get_opponent_team_tla","gml_Script_s_get_opponent_team_tla", "gml_GlobalScript_s_set_up_play","gml_Script_s_set_up_play","gml_Script_s_btn_audible_reposition","gml_Script_s_btn_fieldgoal_reposition","gml_GlobalScript_s_update_commentary","gml_Script_s_update_commentary","gml_Script_s_go_for_it_or_not","gml_Script_s_check_skip_time_button","gml_Script_btn_skip_time","gml_Script_s_no_ties_allowed","gml_Script_roster_short_desc","gml_Script_roster_short_desc_tag","gml_Script_slog_roster","gml_Script_slog_master_roster","gml_GlobalScript_s_choose_defensive_formation", "gml_Script_s_choose_defensive_formation","gml_GlobalScript_s_set_up_fieldgoal","gml_Script_s_set_up_fieldgoal","gml_GlobalScript_s_subtract_time","gml_Script_s_subtract_time","gml_GlobalScript_s_update_game_timer","gml_Script_s_update_game_timer","gml_GlobalScript_s_update_game_clock","gml_Script_s_update_game_clock","gml_GlobalScript_s_update_yard_gain","gml_Script_s_update_yard_gain","gml_GlobalScript_s_set_rewarded_route","gml_Script_s_set_rewarded_route","gml_GlobalScript_s_switch_drivedirection", "gml_Script_s_switch_drivedirection","gml_GlobalScript_s_destroy_match_objects","gml_Script_s_destroy_match_objects","gml_GlobalScript_s_action_result","gml_Script_s_action_result","gml_GlobalScript_s_is_quarter_over","gml_Script_s_is_quarter_over","gml_GlobalScript_s_is_on_pitch","gml_Script_s_is_on_pitch","gml_GlobalScript__poki_is_mobile","gml_Script__poki_is_mobile","gml_GlobalScript_s_is_on_pitch_xy","gml_Script_s_is_on_pitch_xy","gml_GlobalScript_s_end_match","gml_Script_s_end_match","gml_GlobalScript_s_update_stats", "gml_Script_s_update_stats","gml_GlobalScript_s_convert_scrimmage_to_goal_distance","gml_Script_s_convert_scrimmage_to_goal_distance","gml_GlobalScript_s_kick_off","gml_Script_s_kick_off","gml_GlobalScript_s_punt","gml_Script_s_punt","gml_GlobalScript_s_change_possession","gml_Script_s_change_possession","gml_Script_s_force_possession","gml_GlobalScript_s_tackle_failure","gml_Script_s_tackle_failure","gml_GlobalScript_s_last_secs_of_half","gml_Script_s_last_secs_of_half","gml_Script_s_seconds_remaining", "gml_GlobalScript_s_reset_wind","gml_Script_s_reset_wind","gml_GlobalScript_s_change_wind","gml_Script_s_change_wind","gml_GlobalScript_s_force_quit","gml_Script_s_force_quit","gml_GlobalScript_s_do_audible","gml_Script_s_do_audible","gml_GlobalScript_s_do_timeout","gml_Script_s_do_timeout","gml_GlobalScript_s_check_win_after_turnover","gml_Script_s_check_win_after_turnover","gml_Script_s_both_teams_had_possession","gml_GlobalScript_s_clear_clock","gml_Script_s_clear_clock","gml_GlobalScript_s_fieldtxt", "gml_Script_s_fieldtxt","gml_Script_s_fieldtxt_yards","gml_Script_s_fieldimg","gml_GlobalScript_s_fieldtxt_yards","gml_GlobalScript_s_sound_audience_idle","gml_Script_s_sound_audience_idle","gml_GlobalScript_s_create_match_message","gml_Script_s_create_match_message","gml_Script_s_create_head2head_message","gml_GlobalScript_s_draw_commentary","gml_Script_s_draw_commentary","gml_GlobalScript_s_draw_scoreboard","gml_Script_s_draw_scoreboard","gml_GlobalScript_s_draw_scrimmage","gml_Script_s_draw_scrimmage", "gml_GlobalScript_s_draw_wind","gml_Script_s_draw_wind","gml_GlobalScript_s_draw_kicking_power","gml_Script_s_draw_kicking_power","gml_GlobalScript_s_draw_my_route","gml_Script_s_draw_my_route","gml_GlobalScript_s_draw_kick_cone","gml_Script_s_draw_kick_cone","gml_GlobalScript_s_check_draft_qb","gml_Script_s_check_draft_QB","gml_Script_s_do_qb_draft_round","gml_Script_s_get_weakest_player_by_position","gml_Script_s_find_draft_player_by_position","gml_Script_s_get_player_by_position_for_qb_draft", "gml_Script_s_do_contract_news","gml_Script_s_goto_room_contract","gml_Script_btn_qb_mode_interested_teams","gml_GlobalScript_s_update_my_shadow","gml_Script_s_update_my_shadow","gml_GlobalScript_s_set_up_practice","gml_Script_s_set_up_practice","gml_GlobalScript_s_practice_passing","gml_Script_s_practice_passing","gml_GlobalScript_s_reinstate_hof_player","gml_Script_s_reinstate_hof_player","gml_GlobalScript_s_practice_running","gml_Script_s_practice_running","gml_GlobalScript_s_practice_running_qb", "gml_Script_s_practice_running_qb","gml_GlobalScript_s_obj_controller_helpers","gml_Script_s_obj_controller_step","gml_GlobalScript_s_create_dummy","gml_Script_s_create_dummy","gml_GlobalScript_s_create_boundary","gml_Script_s_create_boundary","gml_GlobalScript_debug_scripts","gml_Script_s_debug_window_size","gml_Script_s_is_debug_desktop","gml_Script_s_set_desktop_dev_window_size","gml_Script____struct___153_s_co_debug_access_gml_GlobalScript_debug_scripts","gml_Script_s_co_debug_access","gml_Script_s_debug_bypass", "gml_Script_s_debug_room_init","gml_Script____struct___154_s_debug_init_menu_gml_GlobalScript_debug_scripts","gml_Script____struct___155_s_debug_init_menu_gml_GlobalScript_debug_scripts","gml_Script____struct___156_s_debug_init_menu_gml_GlobalScript_debug_scripts","gml_Script____struct___157_s_debug_init_menu_gml_GlobalScript_debug_scripts","gml_Script____struct___158_s_debug_init_menu_gml_GlobalScript_debug_scripts","gml_Script____struct___159_s_debug_init_menu_gml_GlobalScript_debug_scripts","gml_Script____struct___160_s_debug_init_menu_gml_GlobalScript_debug_scripts", "gml_Script____struct___161_s_debug_init_menu_gml_GlobalScript_debug_scripts","gml_Script____struct___162_s_debug_init_menu_gml_GlobalScript_debug_scripts","gml_Script____struct___163_s_debug_init_menu_gml_GlobalScript_debug_scripts","gml_Script____struct___164_s_debug_init_menu_gml_GlobalScript_debug_scripts","gml_Script____struct___165_s_debug_init_menu_gml_GlobalScript_debug_scripts","gml_Script____struct___166_s_debug_init_menu_gml_GlobalScript_debug_scripts","gml_Script____struct___167_s_debug_init_menu_gml_GlobalScript_debug_scripts", "gml_Script____struct___168_s_debug_init_menu_gml_GlobalScript_debug_scripts","gml_Script_s_debug_init_menu","gml_Script_s_give_debug_cc","gml_Script_btn_click_debug_main","gml_Script____struct___169_btn_click_debug_team_ranking_gml_GlobalScript_debug_scripts","gml_Script_btn_click_debug_team_ranking","gml_Script_btn_click_debug_test_screen","gml_Script_btn_click_debug_review_screen","gml_Script_btn_click_debug_skip_regular_season","gml_Script_btn_click_debug_skip_next_match","gml_Script_btn_click_debug_force_skip_result", "gml_Script_s_get_forced_skip_result_readout","gml_Script_btn_click_debug_test_pool_creation","gml_Script_btn_click_debug_team_editor_franchise_screen","gml_Script_btn_click_debug_editor_screen","gml_Script_btn_click_debug_switch_data_version","gml_Script_s_get_alternative_data_version","gml_Script____struct___170_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts","gml_Script____struct___171_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts","gml_Script____struct___172_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts", "gml_Script____struct___173_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts","gml_Script_anon_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts_7686_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts","gml_Script_s_debug_init_team_ranking","gml_Script_btn_dbg_list_prev_conference","gml_Script_btn_dbg_list_next_conference","gml_Script_s_clamp_conference_id","gml_Script_s_dbg_team_ranking_draw_gui","gml_Script_btn_click_debug_test_sim_odds","gml_Script_s_debug_list_bracketed_fixtures", "gml_Script_s_debug_start_time","gml_Script_s_debug_show_time","gml_Script_s_set_exception_reporter","gml_Script_s_fake_crash","gml_Script_s_fake_crash_safe","gml_Script_s_safe_run","gml_Script_s_safe_run_catch","gml_Script_s_safe_run_msg","gml_Script_s_safe_run_crash_report","gml_Script_s_safe_run_crash_save","gml_GlobalScript_s_sound_kick","gml_Script_s_sound_kick","gml_GlobalScript_s_sound_throw","gml_Script_s_sound_throw","gml_GlobalScript_s_sound_post","gml_Script_s_sound_post","gml_GlobalScript_s_sound_audience_dis", "gml_Script_s_sound_audience_dis","gml_GlobalScript_s_sound_audience_fg","gml_Script_s_sound_audience_fg","gml_GlobalScript_s_sound_bounce","gml_Script_s_sound_bounce","gml_GlobalScript_s_sound_tackle","gml_Script_s_sound_tackle","gml_GlobalScript_s_sound_oof","gml_Script_s_sound_oof","gml_GlobalScript_s_sound_dive","gml_Script_s_sound_dive","gml_GlobalScript_s_sound_loop","gml_Script_s_sound_loop","gml_GlobalScript_s_qb_run","gml_Script_s_qb_run","gml_Script_s_qb_revert_throw","gml_GlobalScript_s_throw_ball", "gml_Script_s_throw_ball","gml_GlobalScript_s_record_frame","gml_Script_s_record_frame","gml_GlobalScript_s_replay_frame","gml_Script_s_replay_frame","gml_GlobalScript_s_start_replay","gml_Script_s_start_replay","gml_GlobalScript_s_end_replay","gml_Script_s_end_replay","gml_GlobalScript_s_get_qb_pmap","gml_Script_s_get_qb_pmap","gml_GlobalScript_s_create_message","gml_Script_s_create_message","gml_Script_s_message_recenter","gml_Script_s_message_toggle","gml_Script_s_create_message3","gml_Script_s_do_message", "gml_Script_s_msg","gml_Script_s_loading_button_hijack","gml_Script_s_loading_trigger","gml_Script____struct___174_s_loading_start_gml_GlobalScript_s_create_message","gml_Script_s_loading_start","gml_Script_s_loading_callback","gml_GlobalScript_s_meter_change","gml_Script_s_meter_change","gml_GlobalScript_s_meter_change_end","gml_Script_s_meter_change_end","gml_GlobalScript_s_notification","gml_Script_s_notification","gml_GlobalScript_s_msg_clear","gml_Script_s_msg_clear","gml_GlobalScript_s_msg_clear_info_draft", "gml_Script_s_msg_clear_info_draft","gml_GlobalScript_s_add_news","gml_Script_s_add_news","gml_Script_s_add_news_if_new","gml_Script_s_remove_news","gml_Script_s_add_news_dyn","gml_GlobalScript_s_check_for_news","gml_Script_s_check_for_news","gml_Script_s_has_news","gml_GlobalScript_s_news_clear","gml_Script_s_news_clear","gml_GlobalScript_s_do_banner_draft","gml_Script_s_do_banner_draft","gml_Script_s_do_banner_season_review","gml_GlobalScript_s_do_review_message","gml_Script_s_do_review_message", "gml_GlobalScript_btn_response_review_yes","gml_Script_btn_response_review_yes","gml_Script_btn_response_review_no","gml_GlobalScript_s_edit_field","gml_Script_s_edit_field","gml_GlobalScript_s_edit_cancel","gml_Script_s_edit_cancel","gml_GlobalScript_s_edit_confirm_profile","gml_Script_s_edit_confirm_profile","gml_Script_s_update_boss_profile","gml_GlobalScript_s_msg_timeouts","gml_Script_s_msg_timeouts","gml_GlobalScript_s_achievements","gml_Script_s_complete_achievement","gml_Script_s_achievement_is_valid", "gml_Script_s_exists_in_list","gml_Script_s_count_achievement","gml_Script_s_get_achievement","gml_Script_s_get_achievement_percentage","gml_Script_s_get_filtered_achievements","gml_GlobalScript_s_get_record","gml_Script_s_get_record","gml_GlobalScript_s_check_record","gml_Script_s_check_record","gml_GlobalScript_s_check_record_text","gml_Script_s_check_record_text","gml_GlobalScript_s_sort_record_list","gml_Script_s_sort_record_list","gml_GlobalScript_s_get_player_name_for_record","gml_Script_s_get_player_name_for_record", "gml_GlobalScript_s_check_repeat_retrobowls","gml_Script_s_check_repeat_retrobowls","gml_GlobalScript_s_create_player","gml_Script_s_create_player_get_RC_cost","gml_Script_s_create_player","gml_GlobalScript_s_sort_players","gml_Script_s_sort_players","gml_GlobalScript_s_create_new_roster","gml_Script_s_create_new_roster","gml_GlobalScript_s_create_new_roster_newteam","gml_Script_s_create_new_roster_newteam","gml_Script_s_create_new_roster_cut_old_roster","gml_GlobalScript_s_lastname_already_on_roster", "gml_Script_s_lastname_already_on_roster","gml_GlobalScript_s_position_already_on_roster","gml_Script_s_position_already_on_roster","gml_GlobalScript_s_get_required_position","gml_Script_s_get_required_position","gml_Script_s_get_required_position_no_QB_RB","gml_GlobalScript_s_get_player_rating","gml_Script_s_get_player_rating","gml_GlobalScript_s_get_player_potential","gml_Script_s_get_player_potential","gml_GlobalScript_s_obj_player_draw_begin","gml_Script_s_obj_player_draw_begin","gml_GlobalScript_s_college_competitions", "gml_Script_s_get_competition_id_from_fix","gml_Script_s_get_competition_by_conference_division","gml_Script_s_get_competition","gml_Script_s_get_competitions_in_editor_group","gml_Script_s_get_last_schedule_week","gml_Script_s_get_postseason_fixture_by_week","gml_Script_s_get_player_schedule_fixture_by_week","gml_Script____struct___175_s_get_competition_win_access_list_gml_GlobalScript_s_college_competitions","gml_Script_s_get_competition_win_access_list","gml_Script_s_schedule_generation","gml_Script_s_is_cyclic_competition_year", "gml_Script_s_schedule_add_game","gml_Script_s_schedule_add_championship","gml_Script_s_get_schedule_fix_template","gml_Script_s_fixture_victory_screen","gml_Script_s_handle_fixture_notification","gml_Script_s_fixture_notifications_roster_cv_entry","gml_Script_s_handle_fixture_history_record","gml_Script_s_handle_fixture_reward","gml_Script____struct___176_s_reset_competitions_and_subdivisions_pools_and_rankings_gml_GlobalScript_s_college_competitions","gml_Script____struct___177_s_reset_competitions_and_subdivisions_pools_and_rankings_gml_GlobalScript_s_college_competitions", "gml_Script____struct___178_s_reset_competitions_and_subdivisions_pools_and_rankings_gml_GlobalScript_s_college_competitions","gml_Script_s_reset_competitions_and_subdivisions_pools_and_rankings","gml_Script_s_competitions_status_update","gml_Script_s_competitions_update_quick_standings","gml_Script_s_resolve_non_champ_conferences","gml_Script_s_schedule_advance_teams","gml_Script_s_schedule_move_better_team_to_home_slot","gml_Script____struct___179_s_schedule_add_fixtag_gml_GlobalScript_s_college_competitions", "gml_Script_s_schedule_add_fixtag","gml_Script_s_get_fixtag_priority","gml_Script_s_fixtag_sort_priority","gml_Script_s_competition_update_standings","gml_Script_s_competition_reset_standings","gml_Script_s_conference_update_standings","gml_Script_s_subdivision_update_rankings","gml_Script_s_conference_reset_standings","gml_Script_s_subdivision_get_player_ranking","gml_Script_s_subdivision_get_team_ranking","gml_Script_s_get_my_conference_current_place","gml_Script_s_update_human_postseason_fixtures", "gml_GlobalScript_s_get_player_by_position","gml_Script_s_get_player_by_position","gml_Script_s_get_player_by_position_from_roster","gml_Script_s_get_player_kick_returner","gml_GlobalScript_s_get_player_by_lname","gml_Script_s_get_player_by_lname","gml_GlobalScript_s_get_random_player","gml_Script_s_get_random_player","gml_GlobalScript_s_get_random_player_by_position","gml_Script_s_get_random_player_by_position","gml_Script_s_get_random_player_by_position_from_roster","gml_GlobalScript_s_get_random_player_defensive", "gml_Script_s_get_random_player_defensive","gml_GlobalScript_s_get_random_player_offensive","gml_Script_s_get_random_player_offensive","gml_GlobalScript_s_get_random_coach","gml_Script_s_get_random_coach","gml_GlobalScript_btn_click_qb_items","gml_Script_btn_click_qb_items","gml_Script_btn_click_qb_vehicles","gml_Script_btn_click_qb_property","gml_GlobalScript_s_count_players_by_position","gml_Script_s_count_players_by_position","gml_GlobalScript_s_count_players_onfield_by_position","gml_Script_s_count_players_onfield_by_position", "gml_GlobalScript_s_count_defenders","gml_Script_s_count_defenders","gml_GlobalScript_btn_click_OptionsControls","gml_Script_btn_click_OptionsControls","gml_Script_btn_click_OptionsControls1","gml_Script_btn_click_OptionsControls2","gml_Script_btn_click_OptionsControls3","gml_Script_s_update_control_screen","gml_GlobalScript_s_get_position_colour","gml_Script_s_get_position_colour","gml_GlobalScript_s_gui_matchline","gml_Script____struct___180_s_obj_matchLine_create_gml_GlobalScript_s_gui_matchline", "gml_Script_s_obj_matchLine_create","gml_Script_s_obj_matchLine_step","gml_Script_s_obj_matchLine_global_flick","gml_Script_s_obj_matchLine_draw","gml_Script_s_obj_matchLine_draw_gui","gml_GlobalScript_s_increase_player_attribute","gml_Script_s_increase_player_attribute","gml_GlobalScript_s_player_at_max_potential","gml_Script_s_player_at_max_potential","gml_GlobalScript_s_is_offensive_player","gml_Script_s_is_offensive_player","gml_Script_s_get_training_reg","gml_GlobalScript_s_is_defensive_player", "gml_Script_s_is_defensive_player","gml_GlobalScript_s_get_average_yards","gml_Script_s_get_average_yards","gml_GlobalScript_s_get_player_name","gml_Script_s_get_player_name","gml_GlobalScript_s_get_meeting_cost_morale","gml_Script_s_get_meeting_cost_morale","gml_GlobalScript_s_get_meeting_cost_condition","gml_Script_s_get_meeting_cost_condition","gml_GlobalScript_s_get_meeting_cost_levelup","gml_Script_s_get_meeting_cost_levelup","gml_GlobalScript_s_get_meeting_cost_delay_retirement","gml_Script_s_get_meeting_cost_delay_retirement", "gml_GlobalScript_s_get_meeting_cost_extend_contract","gml_Script_s_get_meeting_cost_extend_contract","gml_GlobalScript_s_get_match_rating","gml_Script_s_get_match_rating","gml_GlobalScript_s_reset_match_stats","gml_Script_s_reset_match_stats","gml_GlobalScript_s_toxic_effect_on_morale","gml_Script_s_toxic_effect_on_morale","gml_GlobalScript_s_match_rating_effect_on_morale","gml_Script_s_match_rating_effect_on_morale","gml_GlobalScript_s_training_regime_effect_on_morale","gml_Script_s_training_regime_effect_on_morale", "gml_GlobalScript_s_injury_effect_on_attitude","gml_Script_s_injury_effect_on_attitude","gml_GlobalScript_s_rehab_effect","gml_Script_s_rehab_effect","gml_GlobalScript_s_add_xp_gain_all","gml_Script_s_add_xp_gain_all","gml_GlobalScript_s_check_for_injury","gml_Script_s_check_for_injury","gml_GlobalScript_s_count_injuries","gml_Script_s_count_injuries","gml_GlobalScript_s_count_injuries_weeks","gml_Script_s_count_injuries_weeks","gml_GlobalScript_s_college_reputation","gml_Script_s_get_team_offense_with_reputation_boost", "gml_Script_s_get_team_defense_with_reputation_boost","gml_Script_s_get_strength_with_reputation_boost","gml_Script_s_get_reputation_points","gml_Script_s_update_fixture_teams_reputation","gml_Script_s_has_reputation_point","gml_Script_s_update_all_teams_reputation","gml_Script_s_update_team_reputation_flag","gml_Script_s_update_team_reputation","gml_Script_s_get_team_reputation_data","gml_Script_s_set_team_reputation_data","gml_Script_s_convert_reputation_string_to_data","gml_Script_s_convert_reputation_data_to_string", "gml_Script____struct___181_s_create_reputation_data_gml_GlobalScript_s_college_reputation","gml_Script_s_create_reputation_data","gml_Script_s_update_reputation_data","gml_Script_s_is_reputation_string_updated","gml_Script_s_is_reputation_data_updated","gml_Script_s_get_reputation_string_points","gml_Script_s_get_reputation_data_points","gml_Script_s_reputation_data_test","gml_GlobalScript_s_choose_face","gml_Script_s_choose_face","gml_Script_s_face_from_set","gml_Script_s_face_from_set_direct", "gml_GlobalScript_s_get_max_age","gml_GlobalScript_s_get_max_age_normal","gml_Script_s_get_max_age_normal","gml_GlobalScript_s_get_num_audibles","gml_Script_s_get_num_audibles","gml_GlobalScript_s_get_morale","gml_Script_s_get_morale","gml_Script_s_get_morale_from_roster","gml_GlobalScript_s_get_condition_squad","gml_Script_s_get_condition_squad","gml_Script_s_get_condition_squad_from_roster","gml_GlobalScript_s_adjust_team_morale","gml_Script_s_adjust_team_morale","gml_Script_s_adjust_team_morale_ignore_freshman", "gml_GlobalScript_s_set_team_morale","gml_Script_s_set_team_morale","gml_GlobalScript_s_position_edit_name_btn","gml_Script_s_position_edit_name_btn","gml_GlobalScript_s_update_rest_all_button","gml_Script_s_update_rest_all_button","gml_GlobalScript_s_all_players_resting","gml_Script_s_all_players_resting","gml_GlobalScript_s_rest_all_players","gml_Script_s_rest_all_players","gml_GlobalScript_s_tag_backups","gml_Script_s_tag_backups","gml_Script_s_tag_backups_internal","gml_GlobalScript_s_college_choose_team", "gml_Script____struct___182_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team","gml_Script____struct___183_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team","gml_Script____struct___184_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team","gml_Script____struct___185_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team","gml_Script____struct___186_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team","gml_Script_s_rm_choose_team_co_init", "gml_Script_s_btn_minor","gml_Script_s_btn_major","gml_Script_s_choose_team_refresh_subdivision","gml_Script_s_choose_team_refresh_conference","gml_Script____struct___187_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team","gml_Script____struct___188_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team","gml_Script____struct___189_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team","gml_Script____struct___190_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team", "gml_Script_s_choose_team_create_conference_buttons","gml_Script_s_choose_team_btn_conference","gml_Script____struct___191_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team","gml_Script____struct___192_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team","gml_Script____struct___194_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team","gml_Script____struct___195_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team", "gml_Script_s_choose_team_create_team_buttons","gml_Script_s_choose_team_btn_fav_team","gml_Script_s_choose_team_btn_new_team","gml_Script_s_choose_team_btn_back","gml_Script_s_choose_team_btn_reject","gml_Script_s_choose_team_conference_mode","gml_Script_s_choose_team_subdivision_mode","gml_Script_s_refresh_main_sections_buttons","gml_GlobalScript_s_is_backup","gml_Script_s_is_backup","gml_GlobalScript_s_do_player_awards","gml_Script_s_do_player_awards","gml_Script_s_do_player_awards_college","gml_Script_s_Award_OutstandingPOTY", "gml_Script_s_Award_ExtraordinaryAcademicPOTY","gml_Script_s_Award_OffensivePOTY","gml_Script_s_Award_DefensivePOTY","gml_Script_s_Award_PositionPOTY","gml_Script_s_Award_AnyPositionPOTY","gml_Script_s_Award_CommunityServicePOTY","gml_Script_s_Award_WalkOnPOTY","gml_Script_s_Award_FreshmanPOTY","gml_Script_s_Award_AcademicPrize","gml_GlobalScript_s_award_sb_rings","gml_Script_s_award_sb_rings","gml_GlobalScript_s_round_player_attributes","gml_Script_s_round_player_attributes","gml_GlobalScript_s_get_store_player_by_position", "gml_Script_s_get_store_player_by_position","gml_GlobalScript_s_create_new_stafflist","gml_Script_s_create_new_stafflist","gml_GlobalScript_s_create_staff","gml_Script_s_create_staff","gml_Script_s_create_headcoach_pmap","gml_GlobalScript_s_create_hirelist","gml_Script_s_create_hirelist","gml_GlobalScript_s_sort_hirelist","gml_Script_s_sort_hirelist","gml_GlobalScript_s_reset_staff_hire_list","gml_Script_s_reset_staff_hire_list","gml_GlobalScript_s_get_staff","gml_Script_s_get_staff","gml_GlobalScript_s_is_staff", "gml_Script_s_is_staff","gml_GlobalScript_s_get_coach_cost","gml_Script_s_get_coach_cost","gml_GlobalScript_s_coach_trait_experience","gml_Script_s_coach_trait_experience","gml_GlobalScript_s_coach_trait_talentspotter","gml_Script_s_coach_trait_talentspotter","gml_GlobalScript_s_coach_trait_motivator","gml_Script_s_coach_trait_motivator","gml_GlobalScript_btn_click_qb_training","gml_Script_btn_click_qb_training","gml_Script_s_do_qb_training","gml_GlobalScript_btn_click_GenerateCharacter","gml_Script_btn_click_GenerateCharacter", "gml_GlobalScript_s_count_trait_fanfavorite","gml_Script_s_count_trait_fanfavorite","gml_GlobalScript_s_count_trait_scout","gml_Script_s_count_trait_scout","gml_GlobalScript_s_fire_coach","gml_Script_s_fire_coach","gml_GlobalScript_s_check_contracts_expiring","gml_Script_s_check_contracts_expiring","gml_GlobalScript_s_str","gml_Script_s_str","gml_Script_s_str_u","gml_Script_s_str_real","gml_Script_s_strf","gml_Script_s_strfl","gml_Script_s_co_str","gml_Script_s_co_str_real","gml_GlobalScript_s_split_string", "gml_Script_s_split_string","gml_GlobalScript_s_parse_news","gml_Script_s_parse_news","gml_GlobalScript_s_parse_intro","gml_Script_s_parse_intro","gml_GlobalScript_s_parse_player_message","gml_Script_s_parse_player_message","gml_GlobalScript_s_strP","gml_Script_s_strP","gml_GlobalScript_s_sim_stat_increment","gml_Script_s_sim_stat_increment","gml_Script_s_sim_stat_update","gml_Script_s_sim_stat_touchdown","gml_Script_s_sim_stat_pass","gml_Script_s_sim_stat_run","gml_Script_s_sim_stat_fumble","gml_Script_s_sim_stat_interception", "gml_Script_s_sim_stat_sack","gml_GlobalScript_s_parse_string","gml_Script_s_parse_string","gml_GlobalScript_s_crop_text","gml_Script_s_crop_text","gml_GlobalScript_s_get_string_ball_state","gml_Script_s_get_string_ball_state","gml_GlobalScript_s_get_string_state","gml_Script_s_get_string_state","gml_GlobalScript_s_get_string_sex","gml_Script_s_get_string_sex","gml_GlobalScript_s_get_string_heshe","gml_Script_s_get_string_heshe","gml_GlobalScript_s_get_string_time","gml_Script_s_get_string_time", "gml_GlobalScript_s_string_rand","gml_Script_s_string_rand","gml_GlobalScript_s_get_string_downand","gml_Script_s_get_string_downand","gml_GlobalScript_s_get_string_float","gml_Script_s_get_string_float","gml_GlobalScript_s_get_string_division","gml_Script_s_get_string_division","gml_GlobalScript_s_get_string_conference","gml_Script_s_get_string_conference","gml_GlobalScript_s_get_string_week","gml_Script_s_get_string_week","gml_GlobalScript_s_get_string_week_short","gml_Script_s_get_string_week_short", "gml_GlobalScript_s_get_string_year","gml_Script_s_get_string_year","gml_GlobalScript_s_get_string_commstage","gml_Script_s_get_string_commstage","gml_GlobalScript_s_get_string_position","gml_Script_s_get_string_position","gml_GlobalScript_s_get_string_position_full","gml_Script_s_get_string_position_full","gml_GlobalScript_s_get_string_attitude","gml_Script_s_get_string_attitude","gml_GlobalScript_s_college_room_tools","gml_Script____struct___196","gml_Script_s_goto_room","gml_Script_anon_s_init_rm_gml_GlobalScript_s_college_room_tools_653_s_init_rm_gml_GlobalScript_s_college_room_tools", "gml_Script_s_init_rm","gml_Script____struct___197_s_destroy_rm_gml_GlobalScript_s_college_room_tools","gml_Script_s_destroy_rm","gml_Script____struct___198_s_create_title_gml_GlobalScript_s_college_room_tools","gml_Script_s_create_title","gml_Script_s_create_button","gml_Script_anon_s_destroy_dynamic_buttons_gml_GlobalScript_s_college_room_tools_1336_s_destroy_dynamic_buttons_gml_GlobalScript_s_college_room_tools","gml_Script_s_destroy_dynamic_buttons","gml_Script____struct___199_s_calc_grid_coords_gml_GlobalScript_s_college_room_tools", "gml_Script_s_calc_grid_coords","gml_Script____struct___200_s_show_rm_winners_gml_GlobalScript_s_college_room_tools","gml_Script_s_show_rm_winners","gml_GlobalScript_s_get_string_trade_value","gml_Script_s_get_string_trade_value","gml_GlobalScript_s_get_string_anim","gml_Script_s_get_string_anim","gml_GlobalScript_s_get_string_condition","gml_Script_s_get_string_condition","gml_GlobalScript_s_get_string_record","gml_Script_s_get_string_record","gml_Script_s_get_string_record_co_extended","gml_Script_s_get_string_conf_tag", "gml_GlobalScript_s_get_string_trait","gml_Script_s_get_string_trait","gml_GlobalScript_s_get_string_action_result","gml_Script_s_get_string_action_result","gml_GlobalScript_s_can_touchback","gml_Script_s_can_touchback","gml_GlobalScript_s_get_string_performance","gml_Script_s_get_string_performance","gml_GlobalScript_s_get_random_teamname","gml_Script_s_get_random_teamname","gml_Script_s_get_random_team_id","gml_GlobalScript_btn_click_Roster_List","gml_Script_btn_click_Roster_List","gml_GlobalScript_s_get_string_picks", "gml_Script_s_get_string_picks","gml_GlobalScript_s_get_team_by_id","gml_Script_s_get_team_by_id","gml_Script_s_get_team_by_id_internal","gml_GlobalScript_s_get_team_name_by_id","gml_Script_s_get_team_name_by_id","gml_GlobalScript_s_get_team_tla_by_id","gml_Script_s_get_team_tla_by_id","gml_GlobalScript_s_sort_teams","gml_Script_s_sort_teams","gml_GlobalScript_s_get_team_by_seed","gml_Script_s_get_team_by_seed","gml_Script_s_get_team_by_seed_co","gml_Script_s_get_team_seeding","gml_GlobalScript_s_get_team_id_by_seed", "gml_Script_s_get_team_id_by_seed","gml_GlobalScript_s_get_team_name_by_seed","gml_Script_s_get_team_name_by_seed","gml_GlobalScript_s_get_team_offense","gml_Script_s_get_team_offense","gml_Script_s_get_team_offense_exh","gml_Script_s_get_team_offense_from_roster","gml_GlobalScript_s_get_defense_attribute","gml_Script_s_get_defense_attribute","gml_Script_s_get_attribute","gml_Script_s_attribute_buff","gml_GlobalScript_s_get_team_defense","gml_Script_s_get_team_defense","gml_Script_s_get_team_defense_exh", "gml_Script_s_get_team_defense_from_roster","gml_GlobalScript_s_get_salary_total","gml_Script_s_get_salary_total","gml_GlobalScript_s_refactor_team_strengths","gml_Script_s_refactor_team_strengths","gml_GlobalScript_s_get_team_winpct","gml_Script_s_get_team_winpct","gml_GlobalScript_s_get_team_net_points","gml_Script_s_get_team_net_points","gml_GlobalScript_s_get_points_versus","gml_Script_s_get_points_versus","gml_GlobalScript_s_get_wins_versus","gml_Script_s_get_wins_versus","gml_GlobalScript_s_get_point_swing", "gml_Script_s_get_point_swing","gml_Script_s_get_head_to_head","gml_Script_s_get_win_pecentage_by_confdiv","gml_GlobalScript_s_get_points_season","gml_Script_s_get_points_season","gml_GlobalScript_s_practice_qb_mode","gml_Script_s_practice_qb_mode","gml_Script_s_end_qb_mode_practice","gml_Script_s_quit_qb_mode_practice","gml_GlobalScript_s_col_hex_to_r","gml_Script_s_col_hex_to_r","gml_GlobalScript_s_col_hex_to_g","gml_Script_s_col_hex_to_g","gml_GlobalScript_s_col_hex_to_b","gml_Script_s_col_hex_to_b", "gml_GlobalScript_s_hex_string_to_col","gml_Script_s_hex_string_to_col","gml_GlobalScript_s_rgb_to_bgr","gml_Script_s_rgb_to_bgr","gml_GlobalScript_s_set_up_globals","gml_Script_s_set_up_globals","gml_Script_s_set_up_temp_variables","gml_GlobalScript_slog","gml_Script_slog","gml_Script_slog2","gml_Script_slogf","gml_Script_slog_map","gml_Script_slog_struct","gml_GlobalScript_s_sound","gml_Script_s_sound","gml_Script_s_sound_brass_setup","gml_Script_s_sound_brass_loop","gml_Script_s_stop_brass_loop", "gml_Script_s_stop_brass_loop_finalize","gml_GlobalScript_s_make_random_colour","gml_Script_s_make_random_colour","gml_GlobalScript_s_lines_intersect","gml_Script_s_lines_intersect","gml_GlobalScript_s_log_player","gml_Script_s_log_player","gml_GlobalScript_s_get_random_college_name","gml_Script_s_get_random_college_name","gml_GlobalScript_s_get_random_charity","gml_Script_s_get_random_charity","gml_GlobalScript_s_get_aim_direction","gml_Script_s_get_aim_direction","gml_GlobalScript_s_get_random_first_name", "gml_Script_s_get_random_first_name","gml_GlobalScript_s_get_random_last_name","gml_Script_s_get_random_last_name","gml_GlobalScript_s_format_hex_color","gml_Script_s_format_hex_color","gml_GlobalScript_s_color_to_hex","gml_Script_s_color_to_hex","gml_GlobalScript_s_gui_helpers","gml_Script_s_create_label","gml_Script_s_is_new_shadow","gml_GlobalScript_btn_click_SeasonReviewBack","gml_Script____struct___201_btn_click_SeasonReviewBack_gml_GlobalScript_btn_click_SeasonReviewBack","gml_Script_btn_click_SeasonReviewBack", "gml_GlobalScript_s_dec_to_hex","gml_Script_s_dec_to_hex","gml_GlobalScript_s_roman_numerals","gml_Script_s_roman_numerals","gml_GlobalScript_s_get_watermark_color","gml_Script_s_get_watermark_color","gml_GlobalScript_s_generate_uid","gml_Script_s_generate_uid","gml_GlobalScript_gmcallback_poki_loadbar","gml_Script_gmcallback_poki_loadbar","gml_GlobalScript_poki_pause","gml_Script_poki_pause","gml_GlobalScript_s_set_up_qb_pmap","gml_Script_s_set_up_qb_pmap","gml_GlobalScript_poki_resume","gml_Script_poki_resume", "gml_GlobalScript_scale_canvas","gml_Script_scale_canvas","gml_GlobalScript_s_update_camera","gml_Script_s_update_camera","gml_GlobalScript__poki_gameplay_start","gml_Script__poki_gameplay_start","gml_GlobalScript__poki_gameplay_stop","gml_Script__poki_gameplay_stop","gml_GlobalScript_s_find_gamepad","gml_Script_s_find_gamepad","gml_Script_s_gamepad_is_fingerprint_sensor","gml_GlobalScript_s_update_gamepad","gml_Script_s_update_gamepad","gml_Script_s_gamepad_async","gml_Script_s_gamepad_activity", "gml_Script_s_clear_last_selected_history","gml_Script_s_overwrite_last_selected","gml_Script____struct___202_s_save_last_selected_gml_GlobalScript_s_update_gamepad","gml_Script_s_save_last_selected","gml_Script_s_get_last_selected","gml_Script____struct___203_s_reset_gamepad_gml_GlobalScript_s_update_gamepad","gml_Script_s_reset_gamepad","gml_Script_s_update_gamepad_data","gml_Script_s_update_ui_selected","gml_Script____struct___204_s_multiplayer_init_gml_GlobalScript_s_update_gamepad","gml_Script_s_multiplayer_init", "gml_Script_s_is_multicon_wanted","gml_Script_s_toggle_multicon_wanted","gml_Script_s_multicon_reset","gml_Script_s_multicon_init","gml_Script_s_refresh_gamepads","gml_Script_s_gamepad_lv_dir","gml_Script_s_set_multicon_active","gml_Script_s_set_multicon_turn","gml_Script_s_multicon_save_turn","gml_Script_s_multicon_restore_turn","gml_Script_s_is_turn","gml_Script_s_is_multicon","gml_Script_s_get_multicon_current_pad","gml_Script_s_set_multicon_touch","gml_Script_s_is_touch_allowed","gml_Script_s_is_ui_selected", "gml_Script_s_ui_selected_color","gml_GlobalScript_s_find_default_button","gml_Script_s_find_default_button","gml_GlobalScript_s_get_watermarked_stats","gml_Script_s_get_watermarked_stats","gml_GlobalScript_s_get_qb_energy","gml_Script_s_get_qb_energy","gml_GlobalScript_btn_click_external_links","gml_Script_btn_click_BuyMerch","gml_Script_btn_click_MusicBy","gml_Script_btn_click_YouTube","gml_Script_btn_click_RecordBook","gml_Script_btn_click_Leagues","gml_Script_btn_click_ad_NSS","gml_Script_btn_click_ad_NSM", "gml_Script_btn_click_ad_RG","gml_Script_btn_click_ad_NSB","gml_Script_btn_click_ad_RB","gml_Script_btn_click_ad_GP","gml_Script_btn_click_NewStarGames","gml_GlobalScript_s_do_prematch_dilemma_qb","gml_Script_s_do_prematch_dilemma_qb","gml_GlobalScript_s_sound_audience_catch","gml_Script_s_sound_audience_catch","gml_GlobalScript_s_college_overtime","gml_Script_s_college_overtime_start","gml_Script_s_college_overtime_handle_play_end","gml_Script_s_college_overtime_setup_new_possesion","gml_Script_s_college_overtime_offer_kick", "gml_Script_s_college_overtime_next_round","gml_Script_s_college_overtime_possession_count","gml_Script_s_college_overtime_one_team_won","gml_Script_s_college_overtime_other_teams_turn","gml_Script_s_college_overtime_trigger_point_conversion","gml_Script_s_college_overtime_flip_possession","gml_Script_s_college_overtime_score_hack","gml_Script_s_co_poss_str","gml_Script_btn_click_toggle_college_overtime_debug","gml_Script_s_refresh_btn_overtime_text","gml_GlobalScript_s_player_gpa","gml_Script_s_gpa_from_percent_grade", "gml_Script_s_gpa_string","gml_Script_s_gpa_string_direct","gml_Script_s_decay_percent_grade","gml_Script_s_debug_recover_percent_grade","gml_Script_s_post_match_gpa_refresh","gml_Script_s_add_percent_grade","gml_Script_s_get_decay","gml_Script_s_get_decay_info","gml_Script_s_refresh_suspended","gml_Script_s_get_percent_grade_squad","gml_Script_btn_click_Boost_GPA","gml_Script_btn_response_boost_gpa","gml_Script_s_my_team_academics","gml_Script_s_player_grade_suspend","gml_Script_s_player_grade_suspend_from_age", "gml_Script_s_player_grade_lift_suspension","gml_Script_s_gpa_step_from_percent_grade","gml_Script_s_percent_grade_from_gpa_step_UPPER","gml_Script_s_player_gpa_color","gml_Script_s_player_gpa_colors_info","gml_GlobalScript_s_canvas_fullscreen","gml_Script_s_canvas_fullscreen","gml_GlobalScript_s_startup","gml_Script_s_startup","gml_Script_s_startup_welcome_msg","gml_Script_s_startup_set_master_variables","gml_Script_s_startup_handle_saved_game","gml_Script_s_startup_college_mode","gml_Script_s_startup_browser", "gml_GlobalScript_s_player_party","gml_Script_s_update_party_meter","gml_Script_s_get_party_info","gml_Script_s_add_to_party_meter","gml_Script_s_clear_party_meter","gml_Script_s_team_halve_all_party_meters","gml_GlobalScript_btn_click_LeagueMode","gml_Script_btn_click_LeagueMode","gml_GlobalScript_pause_scripts","gml_Script_s_pause_toggle","gml_Script_s_pause_is_available","gml_Script_s_pause_step","gml_Script_s_is_paused_or_just_unpaused","gml_Script_s_draw_pause","gml_Script_s_pause_btn_init", "gml_Script_s_pause_btn_step","gml_Script_s_pause_btn_draw_gui","gml_Script_s_pause_btn_recenter","gml_Script_s_pause_options_init","gml_Script_s_pause_options_recenter","gml_Script_s_pause_options_dismiss","gml_Script_s_pause_options_draw_gui","gml_Script_s_pause_options_layer","gml_Script_s_pause_options_add_button","gml_Script_s_pause_options_add_quit","gml_Script_s_pause_options_update_buttons","gml_Script_s_pause_options_button_action","gml_Script_s_pause_options_quit_game","gml_Script_btn_response_quit_exhibition_cancel", "gml_Script_btn_response_quit_exhibition_confirm","gml_GlobalScript_s_draw_scoreboard_qb_training","gml_Script_s_draw_scoreboard_qb_training","gml_GlobalScript_s_update_manual_gestures","gml_Script_s_update_manual_gestures","gml_GlobalScript_s_obj_controller_draw_begin","gml_Script_s_obj_controller_draw_begin","gml_Script_s_hof_retrobowl_wins_franchise_create_gml_Object_obj_hof_retrobowl_wins_Create_0","gml_Script_s_academic_gpa_limits_create_gml_Object_obj_hof_retrobowl_wins_Create_0","gml_Script_s_hof_retrobowl_wins_franchise_draw_gml_Object_obj_hof_retrobowl_wins_Draw_64", "gml_Script_s_academic_gpa_limits_draw_gml_Object_obj_hof_retrobowl_wins_Draw_64","gml_Script_s_draw_history_line_gml_Object_obj_hof_history_Draw_64","gml_Script_s_draw_history_lines_college_gml_Object_obj_hof_history_Draw_64","gml_Script_s_records_conf_only_games_gml_Object_obj_hof_records_coach_Create_0","gml_Script_s_records_conf_only_pct_gml_Object_obj_hof_records_coach_Create_0","gml_Script____struct___205_gml_Object_obj_frontoffice_Create_0","gml_Script____struct___206_gml_Object_obj_home_Create_0"]; JSON_game.Scripts=[gml_Script_poki_init,gml_Script_poki_commercial_break,gml_Script_poki_rewarded_break,gml_Script_poki_script_closure,gml_Script_gmcallback_poki_closure,gml_Script_poki_get_team,gml_Script_poki_set_team,gml_GlobalScript_s_update_shopping_buttons,gml_Script_s_update_shopping_buttons,gml_Script_btn_click_shopping_next,gml_Script_btn_click_shopping_prev,gml_Script_btn_shopping_purchase,gml_Script_s_confirm_purchase,gml_Script_s_count_shop_items_by_type,gml_Script_s_degrade_shop_items, gml_GlobalScript_s_college_sorting,gml_Script_s_co_teams_data_sort_rank,gml_Script_s_co_teams_data_sort_rank_season,gml_Script_s_co_teams_data_sort_rank_quick,gml_Script_s_co_teams_data_sort_rank_pos,gml_Script_s_co_teams_data_sort_pct,gml_Script_s_co_teams_data_sort_pct_quick,gml_Script_s_co_teams_data_sort_conf_wins_losses,gml_Script_s_co_teams_data_sort_wins_rank,gml_Script____struct___0_s_create_team_data_array_gml_GlobalScript_s_college_sorting,gml_Script_s_create_team_data_array,gml_Script_s_update_team_data_rank_pos, gml_Script_s_team_data_array_add_formatted_data,gml_Script_s_co_teams_tiebreak,gml_Script_s_co_teams_tiebreak_record_next_best_placed_division,gml_GlobalScript_s_college_league,gml_Script____struct___1_s_rm_league_co_init_gml_GlobalScript_s_college_league,gml_Script____struct___2_s_rm_league_co_init_gml_GlobalScript_s_college_league,gml_Script____struct___3_s_rm_league_co_init_gml_GlobalScript_s_college_league,gml_Script____struct___4_s_rm_league_co_init_gml_GlobalScript_s_college_league,gml_Script____struct___5_s_rm_league_co_init_gml_GlobalScript_s_college_league, gml_Script____struct___6_s_rm_league_co_init_gml_GlobalScript_s_college_league,gml_Script____struct___7_s_rm_league_co_init_gml_GlobalScript_s_college_league,gml_Script____struct___8_s_rm_league_co_init_gml_GlobalScript_s_college_league,gml_Script____struct___9_s_rm_league_co_init_gml_GlobalScript_s_college_league,gml_Script____struct___10_s_rm_league_co_init_gml_GlobalScript_s_college_league,gml_Script____struct___11_s_rm_league_co_init_gml_GlobalScript_s_college_league,gml_Script____struct___12_s_rm_league_co_init_gml_GlobalScript_s_college_league, gml_Script____struct___13_s_rm_league_co_init_gml_GlobalScript_s_college_league,gml_Script____struct___14_s_rm_league_co_init_gml_GlobalScript_s_college_league,gml_Script____struct___15_s_rm_league_co_init_gml_GlobalScript_s_college_league,gml_Script____struct___16_s_rm_league_co_init_gml_GlobalScript_s_college_league,gml_Script____struct___17_s_rm_league_co_init_gml_GlobalScript_s_college_league,gml_Script____struct___18_s_rm_league_co_init_gml_GlobalScript_s_college_league,gml_Script_s_rm_league_co_init, gml_Script_s_btn_league_view,gml_Script____struct___19_s_btn_league_mode_gml_GlobalScript_s_college_league,gml_Script_s_btn_league_mode,gml_Script____struct___20_s_btn_league_subdivision_gml_GlobalScript_s_college_league,gml_Script_s_btn_league_subdivision,gml_Script_s_btn_division_home_view,gml_Script_s_btn_division_postmatch_view,gml_Script____struct___21_s_btn_league_next_conference_gml_GlobalScript_s_college_league,gml_Script_s_btn_league_next_conference,gml_Script_anon_s_set_league_mode_btn_colour_gml_GlobalScript_s_college_league_5863_s_set_league_mode_btn_colour_gml_GlobalScript_s_college_league, gml_Script_s_set_league_mode_btn_colour,gml_Script_anon_s_set_league_tier_btn_colour_gml_GlobalScript_s_college_league_6029_s_set_league_tier_btn_colour_gml_GlobalScript_s_college_league,gml_Script_s_set_league_tier_btn_colour,gml_Script_s_set_var_if_missing,gml_Script_s_league_get_btn_back_image,gml_Script_s_league_refresh_subdivision,gml_Script____struct___22_s_league_create_conference_buttons_gml_GlobalScript_s_college_league,gml_Script_s_league_create_conference_buttons,gml_Script____struct___23_s_league_btn_conference_gml_GlobalScript_s_college_league, gml_Script_s_league_btn_conference,gml_Script_s_league_create_conference_panels,gml_Script____struct___24_s_league_create_conference_division_gml_GlobalScript_s_college_league,gml_Script____struct___25_s_league_create_conference_division_gml_GlobalScript_s_college_league,gml_Script_s_league_create_conference_division,gml_Script____struct___26_s_league_create_ranking_panels_gml_GlobalScript_s_college_league,gml_Script____struct___27_s_league_create_ranking_panels_gml_GlobalScript_s_college_league, gml_Script_s_league_create_ranking_panels,gml_Script_s_is_prev_rank_visible,gml_Script____struct___28_s_league_create_schedule_panels_gml_GlobalScript_s_college_league,gml_Script____struct___29_s_league_create_schedule_panels_gml_GlobalScript_s_college_league,gml_Script____struct___30_s_league_create_schedule_panels_gml_GlobalScript_s_college_league,gml_Script_s_league_create_schedule_panels,gml_Script_s_co_schedule_init,gml_Script_s_league_btn_week,gml_Script_s_league_btn_page,gml_Script_s_co_schedule_sort_order, gml_Script_s_league_get_own_bracket_page,gml_Script_s_co_schedule_refresh,gml_Script_s_co_schedule_step,gml_Script____struct___31_s_co_schedule_filter_format_gml_GlobalScript_s_college_league,gml_Script_s_co_schedule_filter_format,gml_Script____struct___32_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league,gml_Script____struct___33_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league,gml_Script____struct___34_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league, gml_Script____struct___35_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league,gml_Script____struct___36_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league,gml_Script____struct___37_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league,gml_Script____struct___38_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league,gml_Script____struct___39_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league,gml_Script____struct___40_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league, gml_Script____struct___41_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league,gml_Script____struct___42_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league,gml_Script____struct___43_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league,gml_Script_s_set_matchlist_bracket_coords,gml_Script_s_get_bracket_map_entry,gml_Script_s_co_schedule_draw_gui,gml_Script_s_draw_bracket_name_box,gml_GlobalScript_s_college_balance,gml_Script_s_college_balance_create_new_roster, gml_GlobalScript_s_count_simmed_games,gml_Script_s_count_simmed_games,gml_GlobalScript_season_tally_scripts,gml_Script____struct___44_s_obj_season_tally_create_gml_GlobalScript_season_tally_scripts,gml_Script____struct___45_s_obj_season_tally_create_gml_GlobalScript_season_tally_scripts,gml_Script_s_obj_season_tally_create,gml_Script_s_maps_array_sort_week,gml_Script_s_get_human_opponent_sla_prefix,gml_Script_s_obj_season_tally_step,gml_Script_s_obj_season_tally_draw_gui,gml_Script_s_obj_season_tally_draw_gui_begin, gml_Script_s_draw_season_tally_header,gml_GlobalScript_s_choose_mode_hc,gml_Script_s_choose_mode_HC,gml_Script_s_choose_mode_QB,gml_Script_s_choose_mode_CO_loading,gml_Script_s_choose_mode_CO,gml_Script_s_setup_for_mode_CO,gml_Script_s_update_details_screen,gml_GlobalScript_s_benched,gml_Script_s_player_benched,gml_GlobalScript_s_cpu_is_kicking,gml_Script_s_cpu_is_kicking_off,gml_Script_s_is_kickoff,gml_GlobalScript_s_college_edit_competition,gml_Script____struct___46_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition, gml_Script____struct___47_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition,gml_Script____struct___48_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition,gml_Script____struct___49_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition,gml_Script_s_rm_edit_competition_init,gml_Script_s_btn_edit_comp_confirm,gml_Script_s_btn_edit_comp_cancel,gml_Script____struct___50_s_editor_create_competition_fields_gml_GlobalScript_s_college_edit_competition, gml_Script_s_editor_create_competition_fields,gml_Script____struct___51_s_editor_create_text_field_gml_GlobalScript_s_college_edit_competition,gml_Script_s_editor_create_text_field,gml_Script____struct___52_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition,gml_Script____struct___53_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition,gml_Script____struct___54_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition,gml_Script____struct___55_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition, gml_Script_s_editor_create_partial_text_field,gml_Script____struct___56_s_editor_create_location_field_gml_GlobalScript_s_college_edit_competition,gml_Script____struct___57_s_editor_create_location_field_gml_GlobalScript_s_college_edit_competition,gml_Script____struct___58_s_editor_create_location_field_gml_GlobalScript_s_college_edit_competition,gml_Script_s_editor_create_location_field,gml_Script____struct___59_s_editor_create_field_label_gml_GlobalScript_s_college_edit_competition,gml_Script_s_editor_create_field_label, gml_Script_s_ui_field_label_draw_gui,gml_Script_s_editor_field_validate,gml_Script_s_editor_location_is_neutral,gml_Script_s_editor_location_toggle_neutral_state,gml_Script____struct___60_s_get_editor_mode_data_gml_GlobalScript_s_college_edit_competition,gml_Script_s_get_editor_mode_data,gml_GlobalScript_nx_scripts,gml_Script_s_nx_init,gml_Script_s_nx_commit,gml_Script_s_nx_get_open_user,gml_GlobalScript_s_get_player_body_type,gml_Script_s_get_player_body_type,gml_Script_s_spr_from_bt,gml_Script_s_is_spr_bodytype, gml_Script_s_get_team_body_type,gml_GlobalScript_s_college_details,gml_Script____struct___61_s_college_details_init_gml_GlobalScript_s_college_details,gml_Script____struct___62_s_college_details_init_gml_GlobalScript_s_college_details,gml_Script_s_college_details_init,gml_Script____struct___63_s_reset_team_selections_gml_GlobalScript_s_college_details,gml_Script_s_reset_team_selections,gml_Script_anon_s_college_details_hide_gml_GlobalScript_s_college_details_2339_s_college_details_hide_gml_GlobalScript_s_college_details, gml_Script_s_college_details_hide,gml_Script_anon_s_college_details_center_gml_GlobalScript_s_college_details_2470_s_college_details_center_gml_GlobalScript_s_college_details,gml_Script_s_college_details_center,gml_Script____struct___64_s_college_details_bottom_panel_init_gml_GlobalScript_s_college_details,gml_Script____struct___65_s_college_details_bottom_panel_init_gml_GlobalScript_s_college_details,gml_Script____struct___66_s_college_details_bottom_panel_init_gml_GlobalScript_s_college_details, gml_Script_s_college_details_bottom_panel_init,gml_Script_s_college_details_bottom_panel_draw_gui,gml_Script____struct___67_s_college_details_bottom_panel_create_buttons_gml_GlobalScript_s_college_details,gml_Script____struct___68_s_college_details_bottom_panel_create_buttons_gml_GlobalScript_s_college_details,gml_Script_s_college_details_bottom_panel_create_buttons,gml_Script_s_college_details_favorite_btn_action,gml_Script_s_college_details_starting_btn_action,gml_Script_s_college_details_difficulty_btn_action, gml_Script_s_get_college_details_favorite_label_text,gml_Script_s_get_college_details_starting_label_text,gml_Script_s_get_college_details_difficulty_label_text,gml_Script_s_college_details_btn_draw,gml_Script_s_create_starting_teams_list,gml_Script_s_add_starting_team,gml_Script_s_is_starting_team_selectable,gml_Script_s_count_starting_team_selectable_conference,gml_Script_s_get_random_non_rival_team,gml_GlobalScript_s_recruitment_credits,gml_Script_recruitment_credits_cap_total,gml_Script_s_validate_recruitment_credits_cap, gml_Script_can_fit_recruitment_credits,gml_Script_recruitment_credits_space,gml_Script_recruitment_credits_add,gml_Script_recruitment_credits_toggle_roster_size,gml_Script_recruitment_credits_button_click_boost,gml_Script_btn_response_boost_recruitment_credits,gml_GlobalScript_qb_contract_scripts,gml_Script_s_qb_mode_set_up_contract_screen,gml_Script____struct___69_s_qb_mode_new_contract_gml_GlobalScript_qb_contract_scripts,gml_Script_s_qb_mode_new_contract,gml_Script_btn_contract_negotiate,gml_Script_btn_contract_salary_minus, gml_Script_btn_contract_salary_plus,gml_Script_btn_contract_tdbonus_minus,gml_Script_btn_contract_tdbonus_plus,gml_Script_btn_contract_length_minus,gml_Script_btn_contract_length_plus,gml_Script_btn_negotiate_higher,gml_Script_btn_negotiate_lower,gml_Script_s_check_negotiate,gml_Script_s_check_hilo_buttons,gml_Script_s_accept_contract,gml_Script_s_reject_contract,gml_GlobalScript_s_draw_player_image,gml_Script_s_draw_player_image,gml_GlobalScript_s_college_gui_helpers,gml_Script_buttons_college_custom, gml_Script_draw_custom_increase_wallet,gml_Script_draw_custom_recruitment_credits_display,gml_Script_rm_player_profile_show_noncollege_elements,gml_Script_rm_player_profile_show_more,gml_Script____struct___70_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers,gml_Script____struct___71_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers,gml_Script____struct___72_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers,gml_Script____struct___73_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers, gml_Script____struct___74_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers,gml_Script____struct___75_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers,gml_Script____struct___76_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers,gml_Script____struct___78_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers,gml_Script____struct___79_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers, gml_Script_rm_player_profile_college_create_p1,gml_Script____struct___80_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers,gml_Script____struct___81_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers,gml_Script____struct___82_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers,gml_Script____struct___83_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers,gml_Script____struct___84_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers, gml_Script____struct___85_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers,gml_Script____struct___86_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers,gml_Script____struct___87_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers,gml_Script____struct___88_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers,gml_Script_rm_player_profile_college_create_p2,gml_Script_rm_player_profile_college_create,gml_Script_btn_rm_player_profile_college_showP1, gml_Script_btn_rm_player_profile_college_showP2,gml_Script_rm_player_profile_college_step,gml_Script_btn_click_Profile_College_Cut,gml_Script_btn_click_Profile_College_Cut_During_Admission_Draft,gml_Script_btn_response_cut_player_for_RC_yes,gml_Script_s_get_college_player_cut_RC,gml_Script_btn_rm_stats_player_showAwards,gml_Script_btn_rm_stats_player_showEpilogue,gml_Script____struct___89_stats_player_button_entry_gml_GlobalScript_s_college_gui_helpers,gml_Script_stats_player_button_entry,gml_Script____struct___90_rm_stats_player_configure_college_gml_GlobalScript_s_college_gui_helpers, gml_Script____struct___91_rm_stats_player_configure_college_gml_GlobalScript_s_college_gui_helpers,gml_Script_rm_stats_player_configure_college,gml_Script_s_change_panel_division_mode,gml_Script_s_panel_skip_independents_cnf_view,gml_Script_s_panel_scroll_init,gml_Script_s_panel_scroll_step,gml_Script_s_panel_scroll_set_height,gml_Script_s_panel_scroll_global_flick,gml_Script_s_panel_scroll_draw_gui,gml_Script_s_panel_scroll_is_inside,gml_GlobalScript_s_load_profile_uni,gml_Script_s_load_profile_uni, gml_GlobalScript_s_get_lifestyle,gml_Script_s_get_lifestyle,gml_GlobalScript_btn_meet_teammate,gml_Script_btn_meet_teammate,gml_Script_s_confirm_teammate_meeting,gml_GlobalScript_s_check_qb_mode_benched,gml_Script_s_qb_mode_benched_status,gml_GlobalScript_s_college_ranking,gml_Script_s_co_set_starting_rank,gml_Script_s_co_set_ranking_points,gml_Script_s_co_reset_teams_rank,gml_Script_s_co_update_fix_rank,gml_Script_s_get_prestige,gml_Script_s_update_ranking_positions,gml_Script_s_get_ranking_pos_data, gml_Script_s_get_ranking_pos_data_prev,gml_Script____struct___92_s_parse_ranking_pos_gml_GlobalScript_s_college_ranking,gml_Script_s_parse_ranking_pos,gml_Script_s_encode_ranking_pos,gml_Script_s_save_ranking_pos_end_of_season,gml_Script_s_get_ranking_pos_last_season,gml_Script_s_is_preseason_for_ranking,gml_Script_s_update_rank_after_adminssion_draft,gml_GlobalScript_font_scripts,gml_Script_s_data_path,gml_Script_s_fonts_init,gml_Script_s_erase_text_background,gml_Script_draw_hd_text,gml_Script_draw_hd_text_color, gml_Script_draw_hd_text_ext,gml_Script_draw_hd_text_ext_color,gml_Script_draw_hd_text_transformed,gml_Script_draw_hd_text_transformed_color,gml_Script_draw_hd_text_ext_transformed,gml_Script_string_hd_width,gml_Script_string_hd_width_ext,gml_Script_string_hd_height,gml_Script_string_hd_height_ext,gml_GlobalScript_btn_click_Details_Back,gml_Script_btn_click_Details_Back,gml_GlobalScript_s_replay_controls,gml_Script_s_replay_controls,gml_GlobalScript_nrg,gml_Script_btn_click_nrg_buy,gml_Script_btn_click_nrg_drink, gml_Script_s_drink_nrg,gml_Script_s_get_condition_colour,gml_Script_s_get_condition_icon,gml_GlobalScript_s_college_draft,gml_Script_s_college_draft_ranking,gml_Script_s_college_draft_team_ranking,gml_Script_s_college_draft_team_pick,gml_Script_s_calculate_college_draft,gml_Script_s_destroy_college_draft,gml_Script____struct___93_s_display_college_draft_debug_gml_GlobalScript_s_college_draft,gml_Script_s_display_college_draft_debug,gml_Script_s_message_college_draft_pick,gml_Script_s_college_draft_check_achievements, gml_Script_s_message_college_draft_notpick,gml_Script_s_message_college_draft_nottrydraft_y3,gml_Script_s_message_college_draft_early_y3,gml_Script_s_message_college_draft_pick_continue,gml_Script_s_message_college_earyly_yes,gml_Script_s_message_college_earyly_no,gml_Script_s_message_college_earyly_info,gml_Script_s_college_draft_earyly_info_return,gml_Script_s_college_draft_refresh_current_attitude,gml_Script_s_doing_college_draft,gml_Script_s_check_college_draft_start,gml_Script_s_start_college_draft, gml_Script_s_draft_set_epilogue,gml_Script_s_end_college_draft,gml_Script_s_end_college_draft_late_msg_clear,gml_Script____struct___94_s_end_college_draft_late_gml_GlobalScript_s_college_draft,gml_Script_s_end_college_draft_late,gml_Script_s_college_draft_new_season_loading,gml_Script_s_college_draft_new_season,gml_Script_btn_click_college_draft_next,gml_Script_s_college_draft_refresh,gml_Script_btn_click_college_draft_skip,gml_Script_college_draft_do_skip,gml_Script_s_college_draft_player_pick, gml_Script____struct___95_s_display_college_draft_roster_gml_GlobalScript_s_college_draft,gml_Script____struct___96_s_display_college_draft_roster_gml_GlobalScript_s_college_draft,gml_Script____struct___97_s_display_college_draft_roster_gml_GlobalScript_s_college_draft,gml_Script____struct___98_s_display_college_draft_roster_gml_GlobalScript_s_college_draft,gml_Script____struct___99_s_display_college_draft_roster_gml_GlobalScript_s_college_draft,gml_Script_s_display_college_draft_roster,gml_Script____struct___100_s_card_layout_pos_gml_GlobalScript_s_college_draft, gml_Script_s_card_layout_pos,gml_Script_s_load_pro_teams,gml_GlobalScript_s_check_ingame_control_change,gml_Script_s_check_ingame_control_change,gml_GlobalScript_s_remove_player,gml_Script_s_remove_player,gml_GlobalScript_btn_click_BengRams,gml_Script_btn_click_BengRams,gml_Script_s_update_btn_bengrams,gml_Script_s_set_ui_colours,gml_GlobalScript_btn_click_OptionsAutoRun,gml_Script_btn_click_OptionsAutoRun,gml_GlobalScript_title_scripts,gml_Script_s_title_goto,gml_Script_s_title_create,gml_Script_s_title_exit, gml_Script_s_title_check_any_button,gml_Script_s_title_create_image,gml_Script_s_title_step_image,gml_Script_s_title_draw_gui_image,gml_Script_f_almost_same,gml_Script_s_title_create_video,gml_Script_s_title_async_social_video,gml_Script_s_title_do_video_end,gml_Script_s_title_step_video,gml_Script_s_title_draw_gui_video,gml_Script_s_title_create_fadeinout_splash,gml_Script_s_title_step_fadeinout_splash,gml_Script_s_title_draw_fadeinout_splash,gml_GlobalScript_s_str_helpers,gml_Script_s_str_int_to_ordinal, gml_GlobalScript_s_college_competitions_seeding,gml_Script_s_get_team_from_tag,gml_Script_s_get_winner_by_cid,gml_Script_s_get_winner_by_mid,gml_Script_s_get_co_conference_winner,gml_Script_s_get_co_division_winner,gml_Script_s_get_co_conference_best,gml_Script_s_get_co_subdivision_best,gml_Script_s_get_co_bowl_seed,gml_Script_s_get_co_prestige_bowl_seed,gml_Script_s_create_prestige_pool,gml_Script_s_prestige_pool_sort_order_ranking,gml_Script_s_prestige_pool_list,gml_Script____struct___101_s_prestige_pool_add_gml_GlobalScript_s_college_competitions_seeding, gml_Script_s_prestige_pool_add,gml_Script_s_get_prestige_pool,gml_Script_s_get_team_in_prestige_pool,gml_Script_s_prestige_pool_force_one_per_conf,gml_Script_s_prestige_pool_fill_per_rank,gml_Script_s_get_bowl_seed_first_loop_pool,gml_Script_s_get_bowl_seed_second_loop_pool,gml_Script_s_get_bowl_seed_third_loop_pool,gml_Script_s_get_first_team_data,gml_Script____struct___102_s_get_competition_pool_gml_GlobalScript_s_college_competitions_seeding,gml_Script_s_get_competition_pool,gml_Script_s_competition_pool_team, gml_Script_s_get_competition_winner,gml_Script_s_competition_pool_fill_from_rankings,gml_Script_s_competition_pool_exclude_teams,gml_Script_s_competition_pool_add_team,gml_Script_s_competition_pool_rankings_exclude,gml_Script____struct___103_s_get_tagged_source_gml_GlobalScript_s_college_competitions_seeding,gml_Script_s_get_tagged_source,gml_Script_s_get_pool_position,gml_Script_s_competitions_debug_printout,gml_GlobalScript_s_get_achievement,gml_GlobalScript_s_count_achievement,gml_GlobalScript_s_get_achievement_percentage, gml_GlobalScript_s_complete_achievement,gml_GlobalScript_s_sort_retrobowl_list,gml_Script_s_sort_retrobowl_list,gml_GlobalScript_s_sort_retrobowl_history_list,gml_Script_s_sort_retrobowl_history_list,gml_GlobalScript_btn_click_EditAFC,gml_Script_btn_click_EditAFC,gml_GlobalScript_btn_click_EditNFC,gml_Script_btn_click_EditNFC,gml_GlobalScript_btn_click_EditTeam,gml_Script_btn_click_EditTeam,gml_GlobalScript_s_round_to_decimal,gml_Script_s_round_to_decimal,gml_GlobalScript_btn_click_TeamEditCancel, gml_Script_btn_click_TeamEditCancel,gml_GlobalScript_btn_click_TeamEditDone,gml_Script_btn_click_TeamEditDone,gml_GlobalScript_btn_click_TeamEditRestore,gml_Script_btn_click_TeamEditRestore,gml_GlobalScript_btn_click_InputHelmet,gml_Script_btn_click_InputHelmet,gml_GlobalScript_btn_click_InputLogo,gml_Script_btn_click_InputLogo,gml_GlobalScript_btn_click_InputShirt,gml_Script_btn_click_InputShirt,gml_GlobalScript_btn_click_InputSleeve,gml_Script_btn_click_InputSleeve,gml_GlobalScript_btn_click_InputPants, gml_Script_btn_click_InputPants,gml_GlobalScript_btn_click_InputStripe,gml_Script_btn_click_InputStripe,gml_GlobalScript_btn_click_InputSocks1,gml_Script_btn_click_InputSocks1,gml_GlobalScript_btn_click_InputSocks2,gml_Script_btn_click_InputSocks2,gml_GlobalScript_btn_click_InputEndzone,gml_Script_btn_click_InputEndzone,gml_GlobalScript_btn_click_EditHelmet,gml_Script_btn_click_EditHelmet,gml_GlobalScript_btn_click_EditLogo,gml_Script_btn_click_EditLogo,gml_GlobalScript_btn_click_EditShirt,gml_Script_btn_click_EditShirt, gml_GlobalScript_btn_click_EditSleeve,gml_Script_btn_click_EditSleeve,gml_GlobalScript_btn_click_EditPants,gml_Script_btn_click_EditPants,gml_GlobalScript_btn_click_EditStripe,gml_Script_btn_click_EditStripe,gml_GlobalScript_btn_click_EditSocks1,gml_Script_btn_click_EditSocks1,gml_GlobalScript_btn_click_EditSocks2,gml_Script_btn_click_EditSocks2,gml_GlobalScript_btn_click_EditEndzone,gml_Script_btn_click_EditEndzone,gml_GlobalScript_btn_click_Kit1,gml_Script_btn_click_Kit1,gml_GlobalScript_btn_click_Kit2, gml_Script_btn_click_Kit2,gml_GlobalScript_btn_click_Kit3,gml_Script_btn_click_Kit3,gml_GlobalScript_btn_click_Kit4,gml_Script_btn_click_Kit4,gml_GlobalScript_btn_click_RestoreAllTeams,gml_Script_btn_click_RestoreAllTeams,gml_GlobalScript_btn_click_KR_Select,gml_Script_btn_click_KR_Select,gml_GlobalScript_btn_click_EditCopySlotA,gml_Script_btn_click_EditCopySlotA,gml_GlobalScript_s_sound_audience_inc,gml_Script_s_sound_audience_inc,gml_GlobalScript_btn_click_EditCopySlotB,gml_Script_btn_click_EditCopySlotB, gml_GlobalScript_btn_click_EditCopySlotC,gml_Script_btn_click_EditCopySlotC,gml_GlobalScript_btn_click_EditCopySlotD,gml_Script_btn_click_EditCopySlotD,gml_GlobalScript_btn_click_EditCopySlotE,gml_Script_btn_click_EditCopySlotE,gml_GlobalScript_btn_click_TeamEditMore,gml_Script_btn_click_TeamEditMore,gml_GlobalScript_btn_click_TeamEditMoreDone,gml_Script_btn_click_TeamEditMoreDone,gml_GlobalScript_btn_click_FacilityStadium,gml_Script_btn_click_FacilityStadium,gml_GlobalScript_btn_click_FacilityTraining, gml_Script_btn_click_FacilityTraining,gml_GlobalScript_btn_click_FacilityStaff,gml_Script_btn_click_FacilityStaff,gml_GlobalScript_btn_click_HOF_players,gml_Script_btn_click_HOF_players,gml_GlobalScript_btn_click_HOF_player_records,gml_Script_btn_click_HOF_player_records,gml_GlobalScript_btn_click_HOF_Select,gml_Script_btn_click_HOF_Select,gml_GlobalScript_btn_click_HofNext,gml_Script_btn_click_HofNext,gml_GlobalScript_btn_click_HofPrev,gml_Script_btn_click_HofPrev,gml_GlobalScript_btn_click_HOF_Coach, gml_Script_btn_click_HOF_Coach,gml_GlobalScript_btn_click_Records_Reset,gml_Script_btn_click_Records_Reset,gml_GlobalScript_btn_click_League_Back,gml_Script_btn_click_League_Back,gml_GlobalScript_btn_click_LeaguePanel,gml_Script_btn_click_LeaguePanel,gml_GlobalScript_btn_click_LeagueNFC,gml_Script_btn_click_LeagueNFC,gml_GlobalScript_btn_click_LeagueAFC,gml_Script_btn_click_LeagueAFC,gml_GlobalScript_keyboard_scripts,gml_Script_s_keyboard_custom_enabled,gml_Script____struct___104_s_keyboard_custom_init_gml_GlobalScript_keyboard_scripts, gml_Script_s_keyboard_custom_init,gml_Script_s_keyboard_custom_show,gml_Script_s_keyboard_custom_hide,gml_Script_s_keyboard_custom_layer,gml_Script_s_keyboard_custom_create,gml_Script_s_keyboard_custom_destroy,gml_Script_s_keyboard_custom_create_button,gml_Script_s_custkb_base_draw_gui,gml_Script_s_custkb_base_step,gml_Script_s_custkb_confirm,gml_Script_s_custkb_delete,gml_Script_s_custkb_shift_toggle,gml_Script_s_custkb_add_text,gml_Script_s_custkb_key_init,gml_Script_s_custkb_key_draw_gui,gml_Script_s_custkb_key_step, gml_Script_s_custkb_key_tap,gml_GlobalScript_s_college_tools,gml_Script_s_college_set_up_globals,gml_Script_s_college_age_index,gml_Script_s_college_age_label,gml_Script_s_college_age_simple,gml_Script_s_college_age_simple_other,gml_Script_s_college_age_simple_short,gml_Script_s_college_shorter_season,gml_Script_s_college_academics_type,gml_Script_s_college_correct_new_player,gml_Script_s_get_random_hobby,gml_Script_s_get_hobby_name,gml_Script_s_get_hobby_from_uid,gml_Script_s_is_player_hobby_fraternity, gml_Script_s_get_random_study_subject,gml_Script_s_get_study_subject_from_uid,gml_Script_s_get_study_subject_name_from_uid,gml_Script_s_get_minor_name,gml_Script_s_get_major_name,gml_Script_s_get_study_info,gml_Script_s_get_random_trait,gml_Script_s_get_trait_name,gml_Script_s_get_trait_from_uid,gml_Script_s_get_random_hometown,gml_Script_s_get_hometown_name,gml_Script_s_get_only_hometown_name,gml_Script_s_get_only_state_name,gml_Script_s_get_hometown_from_uid,gml_Script_s_pick_rand_epilogue_uid, gml_Script_s_get_epilogue_name,gml_Script_s_epilogue_tests,gml_Script_s_pick_epilogue_story,gml_Script_s_epilogue_story_to_str,gml_Script_s_add_cv_entry_from_key,gml_Script_s_add_cv_entry_direct,gml_Script_s_get_random_cv_entry,gml_Script_s_extract_cv_entry_from_pool,gml_Script_s_set_cv_list_from_player,gml_Script_s_add_cv_list_entry,gml_Script_split_into_chunks,gml_Script_btn_response_player_meeting_academic_coaching,gml_Script_s_get_meeting_cost_academic_coaching,gml_Script_s_is_co_mode,gml_Script_s_is_co_postseason, gml_Script_s_is_co_actual_postseason,gml_Script_s_get_postseason_chunk,gml_Script_s_is_earlier_than,gml_Script_s_get_skip_to_week,gml_Script_s_is_co_team,gml_Script_s_get_conference_list,gml_Script_s_get_team_list_by_tier,gml_Script_s_get_team_list,gml_Script_s_count_joboffers_conference,gml_Script_s_co_get_year,gml_Script_s_get_my_conference_uid,gml_Script_s_get_my_conference_data,gml_Script_s_get_conference_data,gml_Script_s_get_my_division,gml_Script_s_get_subdivision,gml_Script_s_get_team_pct_cnf, gml_Script_s_is_independent_team,gml_Script_s_is_independent_conference_id,gml_Script_s_is_independent_conference,gml_Script_s_is_co_bowl_week,gml_Script_s_is_co_bowl_fix,gml_Script_s_is_co_bowl_comp,gml_Script____struct___105_s_get_object_data_gml_GlobalScript_s_college_tools,gml_Script_s_get_object_data,gml_Script_s_get_map,gml_Script_s_get_map_real,gml_Script_s_map_swap,gml_Script_s_get_save_slot,gml_Script_s_get_week_name,gml_Script_s_get_my_conference_division_string,gml_Script_s_get_fix_competition_string, gml_Script_s_get_competition_string,gml_Script_s_get_fix_location_string,gml_Script_s_get_my_subdivision_string,gml_Script_s_get_subdiv_name,gml_Script_s_joboffers_string,gml_Script_s_get_pct_string,gml_Script_s_get_comp_level_str,gml_Script_s_get_comp_level_str_plain,gml_Script_s_get_difficulty_str,gml_Script_s_is_ps_chunk_filled,gml_Script_s_is_week_played,gml_Script_s_is_human_in_week,gml_Script_s_is_human_fix,gml_Script_s_get_next_college_human_fixture,gml_Script_s_update_week_done,gml_Script_s_is_week_done, gml_Script_s_is_fix_played,gml_Script_s_is_fix_filled,gml_Script_s_is_fix_on_neutral_ground,gml_Script_s_season_competitions_done,gml_Script_s_get_fix_away_team_id,gml_Script_s_get_fix_home_team_id,gml_Script_s_get_fix_by_competition_id,gml_Script_s_get_fix_by_match_id,gml_Script_s_get_fix_winner_id,gml_Script_s_get_fix_by_week_and_teams,gml_GlobalScript_btn_click_LeagueSchedule,gml_Script_btn_click_LeagueSchedule,gml_GlobalScript_btn_click_SchedulePrev,gml_Script_btn_click_SchedulePrev,gml_GlobalScript_btn_click_ScheduleNext, gml_Script_btn_click_ScheduleNext,gml_GlobalScript_btn_click_PlayOffs,gml_Script_btn_click_PlayOffs,gml_GlobalScript_btn_click_PlayOffs_Back,gml_Script_btn_click_PlayOffs_Back,gml_GlobalScript_btn_click_PlayOffsPlay,gml_Script_btn_click_PlayOffsPlay,gml_GlobalScript_btn_click_PlayOffsSkip,gml_Script_btn_click_PlayOffsSkip,gml_GlobalScript_btn_click_Change_Favourite,gml_Script____struct___106_btn_click_Change_Favourite_gml_GlobalScript_btn_click_Change_Favourite,gml_Script_btn_click_Change_Favourite, gml_GlobalScript_btn_click_ChooseAFC,gml_Script_btn_click_ChooseAFC,gml_GlobalScript_btn_click_ChooseNFC,gml_Script_btn_click_ChooseNFC,gml_GlobalScript_btn_click_ChooseTeam,gml_Script_btn_click_ChooseTeam,gml_Script_btn_click_ChooseTeamExhibition,gml_Script_btn_click_ChoosePlayerExhibition,gml_Script_btn_click_ChoosePlayerExhibition_confirm,gml_Script_btn_click_ChoosePlayerExhibition_cancel,gml_GlobalScript_btn_click_ChooseTeamNew,gml_Script_btn_click_ChooseTeamNew,gml_Script_btn_click_qb_mode_ChooseTeamNew, gml_GlobalScript_btn_click_ChooseReject,gml_Script_btn_click_ChooseReject_loading,gml_Script_btn_click_ChooseReject,gml_GlobalScript_btn_click_Continue,gml_Script_btn_click_Continue,gml_Script_btn_click_SimGame,gml_GlobalScript_btn_click_Details_Continue,gml_Script_btn_click_Details_Continue,gml_GlobalScript_s_uniform_helpers,gml_Script_s_uniforms_default_file,gml_Script_s_extract_uniform_cols_to_record,gml_Script_s_uniform_cols_to_record,gml_Script_s_uniform_cols_from_record,gml_GlobalScript_btn_click_FrontOffice, gml_Script_btn_click_FrontOffice,gml_GlobalScript_btn_click_FreeAgents2,gml_Script_btn_click_FreeAgents2,gml_GlobalScript_btn_click_HallOfFame,gml_Script_btn_click_HallOfFame,gml_GlobalScript_btn_click_Home,gml_Script_btn_click_Home,gml_Script_btn_click_Play1,gml_Script_btn_click_Options_Exit,gml_Script_btn_click_Home_rm_winners,gml_Script_s_rm_winners_notice,gml_GlobalScript_btn_click_League,gml_Script____struct___107_btn_click_League_gml_GlobalScript_btn_click_League,gml_Script_btn_click_League, gml_GlobalScript_btn_click_Options,gml_Script_btn_click_Options,gml_GlobalScript_btn_click_Profile,gml_Script_btn_click_Profile,gml_GlobalScript_btn_click_ChooseFace,gml_Script_btn_click_ChooseFace,gml_Script_s_goto_rm_choose_face,gml_GlobalScript_btn_click_ChooseFacePrev,gml_Script_btn_click_ChooseFacePrev,gml_GlobalScript_btn_click_ChooseFaceNext,gml_Script_btn_click_ChooseFaceNext,gml_GlobalScript_btn_click_ChooseFaceDone,gml_Script_btn_click_ChooseFaceDone,gml_Script_btn_click_cancel_chooseface, gml_GlobalScript_btn_click_Uniforms,gml_Script_btn_click_Uniforms,gml_GlobalScript_btn_click_Uniform_Away,gml_Script_btn_click_Uniform_Away,gml_GlobalScript_btn_click_Uniform_Home,gml_Script_btn_click_Uniform_Home,gml_GlobalScript__poki_rewarded_ad,gml_Script__poki_rewarded_ad,gml_GlobalScript_btn_click_BallStyle,gml_Script_btn_click_BallStyle,gml_GlobalScript_btn_click_LeagueReportNext,gml_Script_btn_click_LeagueReportNext,gml_GlobalScript_btn_click_LeagueReportPrev,gml_Script_btn_click_LeagueReportPrev, gml_GlobalScript_btn_click_OptionsNewGame,gml_Script_btn_click_OptionsNewGame,gml_GlobalScript_btn_click_OptionsDriveLeft,gml_Script_btn_click_OptionsDriveLeft,gml_Script_btn_click_OptionsDriveLeft_Exh,gml_GlobalScript_btn_click_OptionsDriveRight,gml_Script_btn_click_OptionsDriveRight,gml_GlobalScript_btn_click_OptionsDriveBoth,gml_Script_btn_click_OptionsDriveBoth,gml_GlobalScript_btn_click_OptionsScanlines,gml_Script_btn_click_OptionsScanlines,gml_GlobalScript_btn_click_OptionsSoundFX,gml_Script_btn_click_OptionsSoundFX, gml_GlobalScript_btn_click_OptionsWeather,gml_Script_btn_click_OptionsWeather,gml_Script_btn_click_OptionsWeather_Exh,gml_GlobalScript_btn_click_OptionsReplays,gml_Script_btn_click_OptionsReplays,gml_GlobalScript_btn_click_OptionsZoom,gml_Script_btn_click_OptionsZoom,gml_GlobalScript_btn_click_InvertedThrowing,gml_Script_btn_click_InvertedThrowing,gml_GlobalScript_btn_click_OptionsMatchLength,gml_Script_btn_click_OptionsMatchLength,gml_Script_btn_click_OptionsMatchLength_Exh,gml_GlobalScript_btn_click_OptionsTeamEditor, gml_Script_btn_click_OptionsTeamEditor,gml_GlobalScript_btn_click_OptionsDifficulty,gml_Script_btn_click_OptionsDifficulty,gml_GlobalScript_btn_click_OptionsSalaryCap,gml_Script_btn_click_OptionsSalaryCap,gml_Script_salary_cap_toggle_roster_size,gml_Script_s_get_roster_cap,gml_GlobalScript_chk_click_gamepad,gml_Script_chk_click_gamepad,gml_GlobalScript_s_apple_arcade_helpers,gml_Script_s_aa_debug_give_cc,gml_GlobalScript_btn_click_PlayerProfile,gml_Script_btn_click_PlayerProfile,gml_GlobalScript_btn_click_PlayerProfile_Back, gml_Script_btn_click_PlayerProfile_Back,gml_GlobalScript_btn_click_ProfilePrev,gml_Script_btn_click_ProfilePrev,gml_GlobalScript_btn_click_MeetingPrev,gml_Script_btn_click_MeetingPrev,gml_GlobalScript_btn_click_ProfileNext,gml_Script_btn_click_ProfileNext,gml_GlobalScript_btn_click_MeetingNext,gml_Script_btn_click_MeetingNext,gml_GlobalScript_btn_click_Profile_Back,gml_Script_btn_click_Profile_Back,gml_GlobalScript_btn_click_Profile_Pick,gml_Script_btn_click_Profile_Pick,gml_GlobalScript_btn_click_Profile_Cut, gml_Script_btn_click_Profile_Cut,gml_Script_btn_click_Profile_JefeBoost,gml_Script_s_JefeBoost,gml_Script_btn_click_Profile_JefeOutOfRetirement,gml_Script_s_JefeOutOfRetirement,gml_GlobalScript_btn_click_Profile_Trade,gml_Script_btn_click_Profile_Trade,gml_GlobalScript_btn_click_Profile_Stats,gml_Script_btn_click_Profile_Stats,gml_GlobalScript_btn_click_Profile_Rest,gml_Script_btn_click_Profile_Rest,gml_GlobalScript_btn_click_Profile_Not_Interested,gml_Script_btn_click_Profile_Not_Interested,gml_GlobalScript_btn_click_Profile_ScoutPlayer, gml_Script_btn_click_Profile_ScoutPlayer,gml_GlobalScript_btn_click_AddSkill,gml_Script_btn_click_AddSkill,gml_GlobalScript_btn_click_AddSpeed,gml_Script_btn_click_AddSpeed,gml_GlobalScript_btn_click_AddStrength,gml_Script_btn_click_AddStrength,gml_GlobalScript_btn_click_AddStamina,gml_Script_btn_click_AddStamina,gml_GlobalScript_btn_click_StatsNext,gml_Script_btn_click_StatsNext,gml_GlobalScript_btn_click_StatsPrev,gml_Script_btn_click_StatsPrev,gml_GlobalScript_btn_click_StatsView1,gml_Script_btn_click_StatsView1, gml_GlobalScript_btn_click_StatsView2,gml_Script_btn_click_StatsView2,gml_GlobalScript_btn_click_EditProfile,gml_Script_btn_click_EditProfile,gml_GlobalScript_btn_click_Meeting_Morale,gml_Script_btn_click_Meeting_Morale,gml_GlobalScript_btn_click_Meeting_Condition,gml_Script_btn_click_Meeting_Condition,gml_GlobalScript_s_qb_mode_update_resting,gml_Script_s_qb_mode_update_resting,gml_GlobalScript_btn_click_Meeting_LevelUp,gml_Script_btn_click_Meeting_LevelUp,gml_GlobalScript_btn_click_Meeting_ExtendContract, gml_Script_btn_click_Meeting_ExtendContract,gml_GlobalScript_btn_click_FieldGoal,gml_Script_btn_click_FieldGoal,gml_GlobalScript_btn_click_Running,gml_Script_btn_click_Running,gml_GlobalScript_btn_click_Passing,gml_Script_btn_click_Passing,gml_GlobalScript_s_get_happiness,gml_Script_s_get_happiness,gml_GlobalScript_btn_click_Training,gml_Script_btn_click_Training,gml_GlobalScript_btn_click_Roster,gml_Script_btn_click_Roster,gml_GlobalScript_btn_click_Roster_Back,gml_Script_btn_click_Roster_Back, gml_Script_btn_click_Profile_Back_To_Draft,gml_Script_btn_click_Profile_Back_To_Draft_Continue,gml_GlobalScript_btn_click_DraftPrev,gml_Script_btn_click_DraftPrev,gml_GlobalScript_btn_click_DraftNext,gml_Script_btn_click_DraftNext,gml_GlobalScript_btn_click_DraftDone,gml_Script_btn_click_DraftDone,gml_GlobalScript_btn_click_FreeAgents,gml_Script_btn_click_FreeAgents,gml_GlobalScript_btn_click_FreeAgentsBack,gml_Script_btn_click_FreeAgentsBack,gml_GlobalScript_btn_click_RestAll,gml_Script_btn_click_RestAll, gml_GlobalScript_btn_click_FreeAgentsNext,gml_Script_btn_click_FreeAgentsNext,gml_GlobalScript_btn_click_FreeAgentsPrev,gml_Script_btn_click_FreeAgentsPrev,gml_GlobalScript_btn_click_FreeAgentsReset,gml_Script_btn_click_FreeAgentsReset,gml_GlobalScript_btn_click_Boost_Morale,gml_Script_btn_click_Boost_Morale,gml_GlobalScript_btn_click_Boost_Condition,gml_Script_btn_click_Boost_Condition,gml_GlobalScript_btn_click_Boost_Salary_Cap,gml_Script_btn_click_Boost_Salary_Cap,gml_GlobalScript_s_set_up_button_kickoff, gml_Script_s_set_up_button_kickoff,gml_Script_btn_kick_off,gml_Script_s_btn_kickoff_recenter,gml_GlobalScript_s_college_editor,gml_Script____struct___108_s_rm_editor_init_gml_GlobalScript_s_college_editor,gml_Script____struct___109_s_rm_editor_init_gml_GlobalScript_s_college_editor,gml_Script____struct___110_s_rm_editor_init_gml_GlobalScript_s_college_editor,gml_Script____struct___111_s_rm_editor_init_gml_GlobalScript_s_college_editor,gml_Script____struct___112_s_rm_editor_init_gml_GlobalScript_s_college_editor, gml_Script____struct___113_s_rm_editor_init_gml_GlobalScript_s_college_editor,gml_Script____struct___114_s_rm_editor_init_gml_GlobalScript_s_college_editor,gml_Script____struct___115_s_rm_editor_init_gml_GlobalScript_s_college_editor,gml_Script____struct___116_s_rm_editor_init_gml_GlobalScript_s_college_editor,gml_Script____struct___117_s_rm_editor_init_gml_GlobalScript_s_college_editor,gml_Script_s_rm_editor_init,gml_Script_s_goto_editor,gml_Script_s_btn_editor_done,gml_Script_s_btn_editor_major, gml_Script_s_btn_editor_minor,gml_Script_s_btn_editor_bowls,gml_Script_s_btn_editor_back,gml_Script____struct___118_s_btn_editor_edit_subdivision_gml_GlobalScript_s_college_editor,gml_Script_s_btn_editor_edit_subdivision,gml_Script____struct___119_s_btn_editor_edit_conference_gml_GlobalScript_s_college_editor,gml_Script_s_btn_editor_edit_conference,gml_Script_s_btn_editor_conference,gml_Script_s_btn_editor_select_team,gml_Script_s_btn_editor_select_bowl_group,gml_Script____struct___120_s_btn_editor_select_bowl_competition_gml_GlobalScript_s_college_editor, gml_Script_s_btn_editor_select_bowl_competition,gml_Script____struct___121_s_save_editor_status_gml_GlobalScript_s_college_editor,gml_Script_s_save_editor_status,gml_Script____struct___122_s_get_editor_status_gml_GlobalScript_s_college_editor,gml_Script_s_get_editor_status,gml_Script_s_reset_editor_status,gml_Script_s_editor_subdivision_mode,gml_Script_s_editor_conference_mode,gml_Script_s_editor_bowls_group_mode,gml_Script_s_editor_bowls_competition_mode,gml_Script_s_editor_set_buttons,gml_Script_s_editor_refresh_bowls_groups, gml_Script____struct___123_s_editor_create_bowls_buttons_gml_GlobalScript_s_college_editor,gml_Script____struct___124_s_editor_create_bowls_buttons_gml_GlobalScript_s_college_editor,gml_Script_s_editor_create_bowls_buttons,gml_Script____struct___125_s_create_slot_label_gml_GlobalScript_s_college_editor,gml_Script_s_create_slot_label,gml_Script_s_ui_label_draw_gui,gml_Script_s_get_editor_bowl_group_name_by_tag,gml_Script____struct___126_s_editor_copy_buttons_gml_GlobalScript_s_college_editor,gml_Script____struct___127_s_editor_copy_buttons_gml_GlobalScript_s_college_editor, gml_Script____struct___128_s_editor_copy_buttons_gml_GlobalScript_s_college_editor,gml_Script____struct___129_s_editor_copy_buttons_gml_GlobalScript_s_college_editor,gml_Script____struct___130_s_editor_copy_buttons_gml_GlobalScript_s_college_editor,gml_Script_s_editor_copy_buttons,gml_Script_s_init_btn_editor_copy,gml_Script_s_btn_editor_copy,gml_Script_s_btn_editor_confirm_copy,gml_Script_s_btn_editor_restore_all,gml_Script_s_btn_editor_confirm_restore_all,gml_GlobalScript_btn_click_DeleteSlot1, gml_Script_btn_click_DeleteSlot1,gml_GlobalScript_btn_click_DeleteSlot2,gml_Script_btn_click_DeleteSlot2,gml_GlobalScript_btn_click_DeleteSlot3,gml_Script_btn_click_DeleteSlot3,gml_GlobalScript_btn_click_DeleteSlot4,gml_Script_btn_click_DeleteSlot4,gml_GlobalScript_btn_click_DeleteSlot5,gml_Script_btn_click_DeleteSlot5,gml_GlobalScript_btn_click_StaffProfile,gml_Script_btn_click_StaffProfile,gml_GlobalScript_btn_click_StaffProfileNext,gml_Script_btn_click_StaffProfileNext,gml_GlobalScript_s_draw_gamepad_controls, gml_Script_s_draw_gamepad_controls,gml_GlobalScript_s_team_helpers,gml_Script_s_teams_file,gml_GlobalScript_btn_click_StaffProfilePrev,gml_Script_btn_click_StaffProfilePrev,gml_GlobalScript_btn_click_StaffProfileBack,gml_Script_btn_click_StaffProfileBack,gml_GlobalScript_btn_click_HireStaff,gml_Script_btn_click_HireStaff,gml_GlobalScript_btn_click_ViewHires,gml_Script_btn_click_ViewHires,gml_GlobalScript_btn_click_ViewHiresProfile,gml_Script_btn_click_ViewHiresProfile,gml_GlobalScript_btn_click_ViewHiresBack, gml_Script_btn_click_ViewHiresBack,gml_GlobalScript_btn_click_ViewHiresReset,gml_Script_btn_click_ViewHiresReset,gml_GlobalScript_btn_click_TrainingLight,gml_Script_btn_click_TrainingLight,gml_GlobalScript_btn_click_TrainingNormal,gml_Script_btn_click_TrainingNormal,gml_GlobalScript_btn_click_TrainingHard,gml_Script_btn_click_TrainingHard,gml_GlobalScript_btn_click_XP_Continue,gml_Script_btn_click_XP_Continue,gml_GlobalScript_btn_click_XP_Back,gml_Script_btn_click_XP_Back,gml_GlobalScript_btn_response_quit_yes, gml_Script_btn_response_quit_yes,gml_GlobalScript_btn_response_newgame_commit,gml_Script_btn_response_newgame_commit,gml_GlobalScript_btn_response_kick_no,gml_Script_btn_response_kick_no,gml_GlobalScript_btn_response_punt_yes,gml_Script_btn_response_punt_yes,gml_GlobalScript_btn_response_fg_yes,gml_Script_btn_response_fg_yes,gml_GlobalScript_btn_response_1pt,gml_Script_btn_response_1pt,gml_GlobalScript_btn_response_2pt,gml_Script_btn_response_2pt,gml_GlobalScript_btn_response_onsidekick_no,gml_Script_btn_response_onsidekick_no, gml_GlobalScript_btn_response_onsidekick_yes,gml_Script_btn_response_onsidekick_yes,gml_GlobalScript_btn_response_cut_player_yes,gml_Script_btn_response_cut_player_yes,gml_GlobalScript_btn_response_skip_draft_yes,gml_Script_btn_response_skip_draft_yes,gml_GlobalScript_btn_response_pick_player_yes,gml_Script_btn_response_pick_player_yes,gml_GlobalScript_btn_click_OptionsKickReturns,gml_Script_btn_click_OptionsKickReturns,gml_Script_btn_click_OptionsKickReturns_Exh,gml_GlobalScript_btn_response_in_trade_player_yes, gml_Script_btn_response_in_trade_player_yes,gml_GlobalScript_btn_response_out_trade_player_yes,gml_Script_btn_response_out_trade_player_yes,gml_GlobalScript_btn_response_out_trade_player_no,gml_Script_btn_response_out_trade_player_no,gml_GlobalScript_btn_response_player_meeting_morale_yes,gml_Script_btn_response_player_meeting_morale_yes,gml_GlobalScript_btn_response_player_meeting_condition_yes,gml_Script_btn_response_player_meeting_condition_yes,gml_GlobalScript_btn_response_player_meeting_levelup_yes, gml_Script_btn_response_player_meeting_levelup_yes,gml_GlobalScript_btn_response_player_meeting_extend_contract,gml_Script_btn_response_player_meeting_extend_contract,gml_GlobalScript_btn_response_boost_morale,gml_Script_btn_response_boost_morale,gml_GlobalScript_btn_response_boost_condition,gml_Script_btn_response_boost_condition,gml_GlobalScript_btn_response_boost_salary_cap,gml_Script_btn_response_boost_salary_cap,gml_GlobalScript_s_confirm_upgrade_stadium,gml_Script_s_confirm_upgrade_stadium, gml_GlobalScript_s_confirm_upgrade_training,gml_Script_s_confirm_upgrade_training,gml_GlobalScript_s_confirm_upgrade_rehab,gml_Script_s_confirm_upgrade_rehab,gml_GlobalScript_btn_response_hirestaff,gml_Script_btn_response_hirestaff,gml_GlobalScript_btn_response_clearfreeagents,gml_Script_btn_response_clearfreeagents,gml_GlobalScript_btn_response_rest_player_yes,gml_Script_btn_response_rest_player_yes,gml_GlobalScript_btn_response_cointoss_kick,gml_Script_btn_response_cointoss_kick,gml_GlobalScript_btn_response_cointoss_receive, gml_Script_btn_response_cointoss_receive,gml_GlobalScript_btn_response_skip_tutorial,gml_Script_btn_response_skip_tutorial,gml_GlobalScript_btn_response_confirm_new_team,gml_Script_btn_response_confirm_new_team_loading,gml_Script_btn_response_confirm_new_team,gml_GlobalScript_s_store_cant_afford,gml_Script_s_store_cant_afford,gml_GlobalScript_s_tip_continue,gml_Script_s_tip_continue,gml_GlobalScript_s_qb_mode_auto_xp,gml_Script_s_qb_mode_auto_xp,gml_GlobalScript_s_confirm_staff_hire_reset,gml_Script_s_confirm_staff_hire_reset, gml_GlobalScript_s_confirm_freeagent_hire_reset,gml_Script_s_confirm_freeagent_hire_reset,gml_GlobalScript_btn_response_deletegame1,gml_Script_btn_response_deletegame1,gml_GlobalScript_btn_response_deletegame2,gml_Script_btn_response_deletegame2,gml_GlobalScript_btn_response_deletegame3,gml_Script_btn_response_deletegame3,gml_GlobalScript_btn_response_deletegame4,gml_Script_btn_response_deletegame4,gml_GlobalScript_btn_response_deletegame5,gml_Script_btn_response_deletegame5,gml_GlobalScript_s_simming_action, gml_Script_s_simming_action,gml_GlobalScript_btn_response_hof_select,gml_Script_btn_response_hof_select,gml_GlobalScript_btn_response_records_reset,gml_Script_btn_response_records_reset,gml_GlobalScript_btn_match_kick,gml_Script_btn_match_kick,gml_Script_btn_match_goforit,gml_Script_btn_match_gofor1pt,gml_GlobalScript_s_do_prematch_dilemma,gml_Script_s_do_prematch_dilemma,gml_Script_s_create_dilemma_news,gml_Script_s_clear_msg_and_back,gml_Script_s_get_standard_dilemmas,gml_Script_s_dilemma_defend_player_cost, gml_Script_s_can_afford_dilemma_cc,gml_Script_s_get_college_dilemmas,gml_GlobalScript_s_do_postmatch_dilemma,gml_Script_s_do_postmatch_dilemma,gml_GlobalScript_s_parse_dilemma,gml_Script_s_parse_dilemma,gml_GlobalScript_s_create_dilemma,gml_Script_s_create_dilemma,gml_GlobalScript_s_choose_dilemma,gml_Script_s_choose_dilemma,gml_Script_s_extract_dilemma_from_pool,gml_Script_s_add_tag_matches_to_list,gml_Script_s_reject_dilemma_not_enough_RC,gml_GlobalScript_s_dilemma_choice_1,gml_Script_s_dilemma_choice_1, gml_GlobalScript_s_dilemma_choice_2,gml_Script_s_dilemma_choice_2,gml_GlobalScript_s_dilemma_choice,gml_Script_s_dilemma_choice,gml_Script_s_cut_player_end,gml_Script_s_cut_player_end_gpa,gml_Script_s_cut_player_end_toxic,gml_Script_s_cut_player_end_party,gml_Script_s_cut_player_end_toxic_max,gml_Script_s_cut_player_end_party_max,gml_Script_s_dilemma_morecc_store,gml_Script_s_dilemma_morecc_back,gml_Script_s_dilemma_end,gml_Script_s_dilemma_college_check_chained,gml_Script_s_dilemma_college_check_pending_news, gml_GlobalScript_s_convert_string_to_sprite,gml_Script_s_convert_string_to_sprite,gml_GlobalScript_s_sort_list_by_column,gml_Script_s_sort_maplist_by_numeric_field,gml_GlobalScript_s_check_draft,gml_Script_s_check_draft,gml_GlobalScript_s_create_draftlist,gml_Script_s_create_draftlist,gml_GlobalScript_s_sound_audience_tck,gml_Script_s_sound_audience_tck,gml_GlobalScript_s_create_freeagentlist,gml_Script_s_create_freeagentlist,gml_GlobalScript_s_create_freeagent,gml_Script_s_create_freeagent,gml_GlobalScript_s_create_tradelist, gml_Script_s_create_tradelist,gml_GlobalScript_s_create_storelist,gml_Script_s_create_storelist,gml_GlobalScript_s_create_player_storelist,gml_Script_s_create_player_storelist,gml_GlobalScript_s_count_hires_by_position,gml_Script_s_count_hires_by_position,gml_GlobalScript_s_count_players_by_position_store,gml_Script_s_count_players_by_position_store,gml_GlobalScript_s_get_hire_shortlist,gml_Script_s_get_hire_shortlist,gml_GlobalScript_s_reset_draft_picks,gml_Script_s_reset_draft_picks,gml_GlobalScript_poki_btn_click_CoinBoost, gml_Script_poki_btn_click_CoinBoost,gml_Script_poki_CoinBoost_No,gml_Script_poki_CoinBoost_Yes,gml_GlobalScript_s_update_draft_page,gml_Script_s_update_draft_page,gml_GlobalScript_s_update_freeagents_page,gml_Script_s_update_freeagents_page,gml_GlobalScript_s_college_admissions_draft,gml_Script_s_check_draft_CO,gml_Script_s_college_free_agent_check,gml_Script_btn_respose_college_free_agent_yes,gml_Script_btn_respose_college_free_agent_no,gml_Script_s_college_dilemma_check,gml_Script_s_college_admissions_check_trigger, gml_Script_s_college_admissions_pick_player,gml_Script_s_college_admissions_players_lost_per_round,gml_Script_s_college_admissions_draft_done,gml_Script_btn_response_college_admissions_draft_done_yes,gml_GlobalScript_s_remaining_picks,gml_Script_s_remaining_picks,gml_GlobalScript_s_remaining_picks_by_round,gml_Script_s_remaining_picks_by_round,gml_GlobalScript_s_get_trade_value,gml_Script_s_get_trade_value,gml_GlobalScript_s_get_trade_value_by_rating,gml_Script_s_get_trade_value_by_rating,gml_GlobalScript_s_get_offer_team, gml_Script_s_get_offer_team,gml_GlobalScript_s_clear_trade_offers,gml_Script_s_clear_trade_offers,gml_GlobalScript_s_clear_freeagents,gml_Script_s_clear_freeagents,gml_GlobalScript_s_clear_storelist,gml_Script_s_clear_storelist,gml_GlobalScript_s_end_draft_round,gml_Script_s_end_draft_round,gml_Script_s_destroy_draftlist,gml_GlobalScript_s_received_AI_kickoff,gml_Script_s_received_AI_kickoff,gml_GlobalScript_s_update_contracts,gml_Script_s_update_contracts,gml_Script_s_check_staff_exist,gml_GlobalScript_s_aim_AI_kickoff, gml_Script_s_aim_AI_kickoff,gml_GlobalScript_btn_click_SeasonReview,gml_Script_btn_click_SeasonReview,gml_GlobalScript_s_get_new_salary,gml_Script_s_get_new_salary,gml_GlobalScript_s_check_expired_contract_message,gml_Script_s_check_expired_contract_message,gml_GlobalScript_s_get_salary_cap_space,gml_Script_s_get_salary_cap_space,gml_GlobalScript_s_create_new_save,gml_Script_s_create_new_save,gml_Script_s_regen_clean_save_mode_dependent_data,gml_Script_s_load_co_mode_files,gml_GlobalScript_s_loadgame, gml_Script_btn_click_LoadSlot1,gml_Script_btn_click_LoadSlot2,gml_Script_btn_click_LoadSlot3,gml_Script_btn_click_LoadSlot4,gml_Script_btn_click_LoadSlot5,gml_Script_btn_click_slot,gml_Script_s_master_load,gml_Script_s_master_load_from_backup,gml_Script_s_loadgame,gml_Script_s_cap_breach_refresh,gml_Script_s_cap_breach_str,gml_Script_s_is_player_pmap_corrupt,gml_Script_s_check_for_return_stats,gml_Script_s_check_longest_records,gml_Script_s_fix_poki_browser_max_percent_grade,gml_Script_s_update_ui_colours, gml_Script_s_get_college_primary_col,gml_Script_s_update_game_title,gml_GlobalScript_s_savegame,gml_Script_s_savegame,gml_GlobalScript_s_create_map_options,gml_Script_s_create_map_options,gml_GlobalScript_s_count_full_seasons,gml_Script_s_count_full_seasons,gml_Script_s_count_games_coached,gml_Script_s_count_games_simmed,gml_Script_s_count_fixtures_played,gml_GlobalScript_s_load_options,gml_Script_s_load_options,gml_GlobalScript_s_save_options,gml_Script_s_save_options,gml_GlobalScript_s_save_backup, gml_Script_s_save_backup,gml_GlobalScript_s_load_map_file,gml_Script_s_load_map_file,gml_Script_s_destroy_map_file,gml_GlobalScript_s_update_maplist_from_file,gml_Script_s_update_maplist_from_file,gml_GlobalScript_s_load_strings,gml_Script_s_refresh_strings,gml_Script_s_load_strings,gml_Script_s_select_lang,gml_Script_s_select_lang_file,gml_Script_s_select_override_lang_file,gml_Script_s_select_institution_lang_file,gml_Script_s_add_file_to_lang_strings,gml_Script____struct___131_s_co_refresh_strings_gml_GlobalScript_s_load_strings, gml_Script_s_co_refresh_strings,gml_Script_s_co_load_strings,gml_Script_s_load_language_file,gml_GlobalScript_s_load_teams,gml_Script_s_load_teams,gml_Script_s_load_teams_data,gml_Script_s_reset_co_team_data,gml_Script_s_set_teams_min_max_ids,gml_Script_s_get_struct_in_array_by_uid,gml_Script____struct___132_load_data_to_struct_array_gml_GlobalScript_s_load_teams,gml_Script_load_data_to_struct_array,gml_Script____struct___133_s_load_json_gml_GlobalScript_s_load_teams,gml_Script_s_load_json,gml_Script_s_save_json, gml_GlobalScript_s_load_team_detail,gml_Script_s_load_team_detail,gml_GlobalScript_s_load_retrobowl_hof,gml_Script_s_load_retrobowl_hof,gml_GlobalScript_s_load_retrobowl_history,gml_Script_s_load_retrobowl_history,gml_GlobalScript_s_load_schedule,gml_Script_s_load_schedule,gml_Script_s_load_college_schedule,gml_Script_s_get_schedule_data_years,gml_Script_s_get_schedule_year_stagger,gml_Script_s_get_fix_type,gml_Script____struct___134_s_calc_fix_type_gml_GlobalScript_s_load_schedule,gml_Script_s_calc_fix_type, gml_Script_s_get_fix_type_string,gml_Script_s_get_fix_type_string_by_values,gml_Script_s_create_fix_type_string,gml_Script_s_list_schedule_fix_type,gml_GlobalScript_s_get_savename,gml_Script_s_get_savename,gml_GlobalScript_s_get_string_save_details,gml_Script_s_get_string_save_details,gml_GlobalScript_s_destroy_master,gml_Script_s_destroy_master,gml_GlobalScript_s_save_uniform_file2,gml_Script_s_save_uniform_file2,gml_GlobalScript_s_load_uniform_file2,gml_Script_s_load_uniform_file2,gml_GlobalScript_s_load_teamname_from_uniform_file, gml_Script_s_load_teamname_from_uniform_file,gml_GlobalScript_s_load_endzone_from_uniform_file,gml_Script_s_load_endzone_from_uniform_file,gml_GlobalScript_s_create_my_fixture_list,gml_Script_s_create_my_fixture_list,gml_GlobalScript_s_create_fixdata,gml_Script_s_create_fixdata,gml_GlobalScript_s_do_schedule,gml_Script_s_do_schedule,gml_Script____struct___135_s_co_get_sim_results_gml_GlobalScript_s_do_schedule,gml_Script_s_co_get_sim_results,gml_Script_s_co_conference_stats,gml_GlobalScript_s_create_playoffs, gml_Script_s_create_playoffs,gml_GlobalScript_s_create_playoffs2,gml_Script_s_create_playoffs2,gml_GlobalScript_s_playoffs_12,gml_Script_s_playoffs_12,gml_GlobalScript_s_get_week_superbowl,gml_Script_s_get_week_superbowl,gml_GlobalScript_s_do_playoff_schedule,gml_Script_s_do_playoff_schedule,gml_Script_s_get_retrobowl_mvp_winner,gml_GlobalScript_s_get_random_scoredata,gml_Script_s_get_random_scoredata,gml_Script_s_co_get_random_scoredata,gml_GlobalScript_s_promote_playoff_winner,gml_Script_s_promote_playoff_winner, gml_Script_s_seed_divisional_round,gml_GlobalScript_s_add_to_human_fixtures,gml_Script_s_add_to_human_fixtures,gml_GlobalScript_s_update_human_playoff_fixtures,gml_Script_s_update_human_playoff_fixtures,gml_Script_s_check_rearranged_human_playoff,gml_Script_s_update_human_fixtures,gml_Script_s_update_fixturelist_fix_extra_data,gml_GlobalScript_s_get_playoff_fixture_by_week,gml_Script_s_get_playoff_fixture_by_week,gml_GlobalScript_s_get_human_fixture_by_week,gml_Script_s_get_human_fixture_by_week, gml_GlobalScript_s_get_human_fixture_previous,gml_Script_s_get_human_fixture_previous,gml_GlobalScript_exhibition_scripts,gml_Script_btn_click_exhibition_start,gml_Script_btn_click_exhibition_exit,gml_Script_s_exhibition_exit,gml_Script_s_exhibition_lost_two_controllers,gml_Script_s_exhibition_assign_lost_controller,gml_Script_s_exhibition_abandon,gml_Script_s_set_up_uniforms_exhibition,gml_Script_s_create_exhibition_fixture,gml_Script_btn_click_exhibition_controller_0,gml_Script_btn_click_exhibition_controller_1, gml_Script_s_update_exhibition_controllers,gml_Script_btn_click_ChangeTeamAway,gml_Script_btn_click_ChangeTeamHome,gml_Script_btn_click_Exhibition_Play,gml_Script_s_update_options_exh,gml_Script_s_force_kick_direction,gml_Script_s_count_audibles,gml_Script_s_update_audibles,gml_Script_s_set_audibles,gml_Script_s_count_timeouts,gml_Script_s_update_timeouts,gml_Script_s_set_timeouts,gml_Script_s_set_exhibition_buttons,gml_Script_btn_click_exhibition_switch_start,gml_Script_s_exhibition_controller_check_continue, gml_Script_btn_click_exhibition_controllers,gml_Script_btn_exhibition_controllers_refresh,gml_Script_rm_exhibition_options_create,gml_Script_s_exh_teamswap_allowed,gml_Script_get_ex_teamset_0,gml_Script_get_ex_teamset_1,gml_Script_get_ex_uniform_file,gml_Script_btn_click_ExhibitionLoadUniformsA,gml_Script_btn_click_ExhibitionLoadUniformsB,gml_Script_btn_click_ExhibitionLoadUniformsC,gml_Script_btn_click_ExhibitionLoadUniformsD,gml_Script_btn_click_ExhibitionLoadUniformsE,gml_Script_btn_click_ExhibitionLoadUniforms, gml_Script_s_get_save_from_number,gml_Script_s_load_save_team_exhibitionA,gml_Script_s_load_save_team_exhibitionB,gml_Script_s_load_save_team_exhibitionC,gml_Script_s_load_save_team_exhibitionD,gml_Script_s_load_save_team_exhibitionE,gml_Script_s_load_save_team_exhibition,gml_Script_exh_refresh_roster_from_save,gml_Script_s_load_html_save1_exhibition,gml_Script_btn_click_RestoreAllTeams_ex,gml_Script_s_restore_uniforms_all_ex,gml_Script_s_exhibition_team_management_start,gml_Script_s_exhibition_team_management_clear, gml_Script_s_exhibition_wipe_list,gml_Script_s_refresh_exhibition_team_load_buttons,gml_Script_refresh_exh_roster_buttons,gml_Script_btn_click_RosterTeamAway,gml_Script_btn_click_RosterTeamHome,gml_Script_btn_click_Profile_Back_To_Exhibition,gml_Script_rm_player_profile_exhibition_create,gml_Script_rm_roster_exhibition_create,gml_Script_exhibition_handle_exit_match,gml_GlobalScript_s_get_human_fixture_next,gml_Script_s_get_human_fixture_next,gml_GlobalScript_s_count_remaining_fixtures,gml_Script_s_count_remaining_fixtures, gml_GlobalScript_s_get_division_winner,gml_Script_s_get_division_winner,gml_GlobalScript_s_get_team_position_by_id,gml_Script_s_get_team_position_by_id,gml_GlobalScript_s_get_division_winner_name,gml_Script_s_get_division_winner_name,gml_GlobalScript_s_get_division_winner_by_seed,gml_Script_s_get_division_winner_by_seed,gml_GlobalScript_s_get_division_winner_name_by_seed,gml_Script_s_get_division_winner_name_by_seed,gml_GlobalScript_s_skip_to_week,gml_Script_s_skip_to_week,gml_GlobalScript_s_clear_playoff_fixtures, gml_Script_s_clear_playoff_fixtures,gml_GlobalScript_s_update_team_edit_buttons,gml_Script_s_update_team_edit_buttons,gml_GlobalScript_s_set_up_edit_screen,gml_Script_s_set_up_edit_screen,gml_GlobalScript_s_color_picker,gml_Script_s_color_picker,gml_GlobalScript_s_set_up_uniforms,gml_Script_s_set_up_uniforms,gml_GlobalScript_s_set_up_uniforms_training,gml_Script_s_set_up_uniforms_training,gml_GlobalScript_s_set_up_uniform_profile,gml_Script_s_set_up_uniform_profile,gml_GlobalScript_s_shader_get_uniforms, gml_Script_s_shader_get_uniforms,gml_GlobalScript_s_shader_set_uniforms,gml_Script_s_shader_set_uniforms,gml_Script_s_blackwhite_colour_hack,gml_GlobalScript_s_convert_uniform_colours_all,gml_Script_s_convert_uniform_colours_all,gml_GlobalScript_s_convert_uniform_colour,gml_Script_s_convert_uniform_colour,gml_GlobalScript_s_restore_uniforms_all,gml_Script_s_restore_uniforms_all,gml_GlobalScript_s_copy_uniforms_slot_a,gml_Script_s_copy_uniforms_slot_a,gml_GlobalScript_s_copy_uniforms_slot_b,gml_Script_s_copy_uniforms_slot_b, gml_GlobalScript_s_copy_uniforms_slot_c,gml_Script_s_copy_uniforms_slot_c,gml_GlobalScript_s_copy_uniforms_slot_d,gml_Script_s_copy_uniforms_slot_d,gml_GlobalScript_s_set_up_kickoff,gml_Script_s_set_up_kickoff,gml_GlobalScript_s_copy_uniforms_slot_e,gml_Script_s_copy_uniforms_slot_e,gml_GlobalScript_s_update_uniform_name,gml_Script_s_update_uniform_name,gml_GlobalScript_s_copy_teamnames_from_uniform_file,gml_Script_s_copy_teamnames_from_uniform_file,gml_GlobalScript_s_edit_name,gml_Script_s_edit_name, gml_GlobalScript_btn_click_edit_div1,gml_Script_btn_click_edit_div1,gml_GlobalScript_btn_click_edit_div2,gml_Script_btn_click_edit_div2,gml_GlobalScript_s_history,gml_Script_s_get_history_by_year,gml_Script_s_create_history_for_current_year,gml_Script_s_log_this_year_history,gml_Script_s_log_full_history,gml_Script_s_update_history,gml_Script_s_update_history_playoffs,gml_Script_s_update_history_finish,gml_Script_s_update_history_season_end,gml_Script_s_update_history_won_championship,gml_Script_s_update_history_reached_playoffs_round, gml_Script_s_update_history_won_bowl,gml_Script_s_update_history_subdivisional_champ_finals,gml_Script_s_history_display_lines_count,gml_Script_s_history_display_lines_count_yearindex,gml_GlobalScript_btn_click_edit_div3,gml_Script_btn_click_edit_div3,gml_GlobalScript_btn_click_edit_div4,gml_Script_btn_click_edit_div4,gml_GlobalScript_s_college_data_versioning,gml_Script_s_get_versioned_path,gml_Script_s_is_newer_data_available,gml_Script_s_is_team_active_in_new_data,gml_Script_s_get_build_data_version, gml_Script_s_get_build_year_offset,gml_Script_s_get_data_version_string,gml_Script____struct___136_s_reset_to_version_gml_GlobalScript_s_college_data_versioning,gml_Script_s_reset_to_version,gml_Script_s_data_upgrade_teams,gml_Script_s_offer_data_upgrade,gml_Script_s_data_upgrade_offer_deny,gml_Script_s_data_upgrade_offer_accept,gml_GlobalScript_btn_click_edit_conf1,gml_Script_btn_click_edit_conf1,gml_GlobalScript_btn_click_edit_conf2,gml_Script_btn_click_edit_conf2,gml_GlobalScript_s_edit_confirm_div1, gml_Script_s_edit_confirm_div1,gml_GlobalScript_s_edit_confirm_div2,gml_Script_s_edit_confirm_div2,gml_GlobalScript_s_edit_confirm_div3,gml_Script_s_edit_confirm_div3,gml_GlobalScript_s_edit_confirm_div4,gml_Script_s_edit_confirm_div4,gml_GlobalScript_s_edit_confirm_conf1,gml_Script_s_edit_confirm_conf1,gml_GlobalScript_s_edit_confirm_conf2,gml_Script_s_edit_confirm_conf2,gml_GlobalScript_s_populate_division,gml_Script_s_populate_division,gml_GlobalScript_s_populate_schedulebox,gml_Script_s_populate_schedulebox, gml_GlobalScript_s_create_credit,gml_Script_s_create_credit,gml_GlobalScript_s_set_up_xp_headers,gml_Script_s_set_up_xp_headers,gml_GlobalScript_s_count_hof_entries,gml_Script_s_count_hof_entries,gml_GlobalScript_s_set_up_hof_players_screen,gml_Script_s_set_up_hof_players_screen,gml_GlobalScript_s_iap_init,gml_Script_s_iap_init,gml_GlobalScript_s_set_up_purchase_ids,gml_Script_s_set_up_purchase_ids,gml_GlobalScript_s_iap_async_android,gml_Script_s_debug_purge_all_android_iap,gml_Script_s_iap_async_android, gml_GlobalScript_s_iap_async_ios,gml_Script_s_iap_async_ios,gml_GlobalScript_s_iap_purchase_FullVersion,gml_Script_s_iap_purchase_FullVersion,gml_GlobalScript_s_set_position_kickoff,gml_Script_s_set_position_return_ko,gml_Script_s_set_position_take_ko,gml_GlobalScript_s_iap_purchase_Credits_20,gml_Script_s_iap_purchase_Credits_20,gml_GlobalScript_s_iap_purchase_Credits_50,gml_Script_s_iap_purchase_Credits_50,gml_GlobalScript_s_iap_purchase_Credits_100,gml_Script_s_iap_purchase_Credits_100,gml_GlobalScript_s_iap_purchase_Credits_250, gml_Script_s_iap_purchase_Credits_250,gml_GlobalScript_s_iap_restore,gml_Script_s_iap_restore,gml_GlobalScript_s_open_store,gml_Script_s_open_store,gml_Script_s_btn_store_exit,gml_GlobalScript_s_open_store_nag,gml_Script_s_open_store_nag,gml_GlobalScript_s_do_nag_message,gml_Script_s_do_nag_message,gml_Script_s_do_ad_retrogoal,gml_GlobalScript_s_do_purchase_message,gml_Script_s_do_purchase_message,gml_GlobalScript_btn_step_check_fullversion,gml_Script_btn_step_check_fullversion,gml_GlobalScript_btn_step_check_iaps, gml_Script_btn_step_check_iaps,gml_GlobalScript_s_freeze_purchase_buttons,gml_Script_s_freeze_purchase_buttons,gml_GlobalScript_s_unfreeze_purchase_buttons,gml_Script_s_unfreeze_purchase_buttons,gml_GlobalScript_s_do_info_position,gml_Script_s_do_info_position,gml_GlobalScript_s_do_info_skills,gml_Script_s_do_info_skills,gml_GlobalScript_s_do_info_coachtrait,gml_Script_s_do_info_coachtrait,gml_GlobalScript_s_do_info_draftpicks,gml_Script_s_do_info_draftpicks,gml_GlobalScript_s_do_info,gml_Script_s_do_info, gml_Script_s_info_draft_col1,gml_Script_s_info_draft_col2,gml_GlobalScript_s_create_camera,gml_Script_s_create_camera,gml_GlobalScript_s_play,gml_Script_s_play,gml_Script_s_play_endweek,gml_GlobalScript_s_update_poki_scaling,gml_Script_s_update_poki_scaling,gml_GlobalScript_s_pre_match,gml_Script_s_pre_match,gml_Script_s_continue_time_for_draft_msg,gml_Script_s_co_pre_match,gml_GlobalScript_s_player_profile_qb_mode,gml_Script_s_player_profile_qb_mode,gml_GlobalScript_s_do_next_week,gml_Script_s_do_next_week, gml_GlobalScript_s_start_new_season,gml_Script_s_start_new_season,gml_Script_s_renew_contracts_qb_mode,gml_GlobalScript_s_update_team_buttons,gml_Script_s_update_team_buttons,gml_GlobalScript_s_update_job_offer_buttons,gml_Script_s_update_job_offer_buttons,gml_GlobalScript_s_update_options,gml_Script_s_update_options,gml_Script_s_get_op_invert_throw,gml_Script_s_get_op_autorun,gml_Script_btn_click_CollegeToggleColor,gml_Script_s_get_gm_version,gml_Script_s_update_options_if_present,gml_GlobalScript_s_get_attitude_icon, gml_Script_s_get_attitude_icon,gml_Script_s_attitude_reduce_step,gml_GlobalScript_s_get_credit,gml_Script_s_get_credit,gml_GlobalScript_s_decline_facilities,gml_Script_s_decline_facilities,gml_GlobalScript_s_do_result_news_qb,gml_Script_s_do_result_news_qb,gml_Script_s_choose_news,gml_GlobalScript_s_reset_player_meetings,gml_Script_s_reset_player_meetings,gml_GlobalScript_s_has_xp_gain,gml_Script_s_has_xp_gain,gml_GlobalScript_s_is_bye_week,gml_Script_s_is_bye_week,gml_Script_s_get_bye_week,gml_GlobalScript_s_do_bye_week, gml_Script_s_do_bye_week,gml_GlobalScript_s_do_postmatch_effects,gml_Script_s_do_postmatch_effects,gml_GlobalScript_s_do_postmatch_fans,gml_Script_s_do_postmatch_fans,gml_Script_s_get_postmatch_fans_qb,gml_GlobalScript_s_check_intro,gml_Script_s_check_intro,gml_Script_s_check_intro_college,gml_Script_s_check_intro_rm_home,gml_Script_s_check_intro_rm_home_college,gml_Script_s_check_intro_rm_roster,gml_Script_s_check_intro_rm_roster_college,gml_Script_s_check_intro_rm_frontoffice,gml_Script_s_check_intro_rm_frontoffice_college, gml_Script_s_check_intro_rm_profile_staff,gml_Script_s_check_intro_rm_profile_staff_college,gml_Script_s_check_intro_rm_profile_boss,gml_Script_s_check_intro_rm_profile_boss_college,gml_Script_s_check_intro_case1,gml_Script_s_check_intro_case2,gml_Script_s_check_intro_case3,gml_Script_s_check_intro_case4,gml_Script_s_check_intro_case5,gml_Script_s_check_intro_case6,gml_Script_s_check_intro_case7,gml_Script_s_check_intro_case8,gml_Script_s_check_intro_case2_b,gml_Script_s_check_intro_case2_c,gml_Script_s_check_intro_case2_d, gml_Script_s_check_intro_case2_e,gml_Script_s_check_intro_case2_f,gml_Script_s_check_intro_case2_g,gml_Script_s_info_gpa_explanation_open,gml_Script_btn_info_gpa_explanation_intro_close,gml_Script_s_check_intro_case5_b,gml_Script_s_check_intro_case5_second_msg,gml_GlobalScript_s_do_result_news,gml_Script_s_do_result_news,gml_GlobalScript_s_count_joboffers,gml_Script_s_count_joboffers,gml_GlobalScript_s_refresh_save_slots,gml_Script_s_refresh_save_slots,gml_GlobalScript_s_show_backups,gml_Script_s_show_backups, gml_Script_s_restore_backup1,gml_Script_s_restore_backup2,gml_Script_s_restore_backup3,gml_Script_s_restore_backup4,gml_Script_s_restore_backup5,gml_GlobalScript_s_team_interested,gml_Script_s_team_interested,gml_Script_s_qb_mode_team_interested,gml_GlobalScript_s_update_history,gml_GlobalScript_s_update_history_finish,gml_GlobalScript_age_scripts,gml_Script_s_rookie_age_internal,gml_Script_s_max_age_player_internal,gml_Script_s_max_age_qb_internal,gml_Script_s_get_max_age,gml_GlobalScript_s_update_history_playoffs, gml_GlobalScript_s_college_custom_data,gml_Script_s_custom_data_file_exists,gml_Script_s_custom_data_load,gml_Script_s_custom_data_file_delete,gml_Script_s_custom_data_patch,gml_Script_s_custom_data_update_from_editor,gml_Script_s_custom_data_save,gml_Script_s_custom_data_delete,gml_Script_s_custom_data_reset,gml_Script____struct___137_s_custom_data_template_gml_GlobalScript_s_college_custom_data,gml_Script____struct___138_s_custom_data_template_gml_GlobalScript_s_college_custom_data,gml_Script____struct___139_s_custom_data_template_gml_GlobalScript_s_college_custom_data, gml_Script____struct___140_s_custom_data_template_gml_GlobalScript_s_college_custom_data,gml_Script_s_custom_data_template,gml_Script_s_custom_data_restore,gml_Script_s_custom_data_copy_from,gml_Script_s_copy_uniforms_from,gml_Script_s_college_restore_all_uniforms,gml_Script_s_custom_data_exists,gml_Script_s_is_custom_data_active,gml_Script_s_set_custom_data_active,gml_Script_s_get_custom_data_subdivision,gml_Script_s_get_custom_data_conference,gml_Script_s_get_custom_data_competition,gml_Script_s_get_custom_data_filename, gml_Script____struct___141_s_get_or_create_custom_data_conference_gml_GlobalScript_s_college_custom_data,gml_Script_s_get_or_create_custom_data_conference,gml_Script____struct___142_s_get_or_create_custom_data_competition_gml_GlobalScript_s_college_custom_data,gml_Script_s_get_or_create_custom_data_competition,gml_Script_s_get_custom_data_suffix,gml_Script_s_get_custom_data_comp_name_prefix,gml_Script_s_get_custom_data_comp_name_suffix,gml_Script_s_get_bowl_split_name,gml_GlobalScript_s_get_history_by_year, gml_GlobalScript_s_update_music,gml_Script_s_update_music,gml_Script_s_update_music_safe,gml_GlobalScript_s_get_ticker_text,gml_Script_s_get_ticker_text,gml_GlobalScript_s_choose_random_face_for_me,gml_Script_s_choose_random_face_for_me,gml_GlobalScript_s_get_kick_direction,gml_Script_s_get_kick_direction,gml_GlobalScript_s_aiming,gml_Script_s_aiming,gml_GlobalScript_s_update_ball,gml_Script_s_update_ball,gml_GlobalScript_s_do_touchback,gml_Script_s_do_touchback,gml_GlobalScript_s_update_ball_fieldgoal, gml_Script_s_update_ball_fieldgoal,gml_GlobalScript_s_update_ball_movement,gml_Script_s_update_ball_movement,gml_GlobalScript_s_update_ball_offset,gml_Script_s_update_ball_offset,gml_GlobalScript_s_is_ball_dead,gml_Script_s_is_ball_dead,gml_GlobalScript_s_check_ball_position,gml_Script_s_check_ball_position,gml_GlobalScript_s_check_ball_collision,gml_Script_s_check_ball_collision,gml_GlobalScript_s_check_tipped,gml_Script_s_check_tipped,gml_GlobalScript_s_drop_ball,gml_Script_s_drop_ball,gml_GlobalScript_s_check_dummy_collision, gml_Script_s_check_dummy_collision,gml_Script_s_sound_training_success,gml_GlobalScript_s_kick_ball,gml_Script_s_kick_ball,gml_GlobalScript_s_spike_ball,gml_Script_s_spike_ball,gml_GlobalScript_s_college_gui_panels,gml_Script____struct___143_s_co_subdivision_create_gml_GlobalScript_s_college_gui_panels,gml_Script_s_co_subdivision_create,gml_Script_s_co_subdivision_init,gml_Script_s_co_subdivision_hidden_draw_gui,gml_Script_s_co_division_create,gml_Script_s_co_division_init,gml_Script_s_co_division_step, gml_Script_s_fit_string,gml_Script_s_co_division_draw_gui,gml_GlobalScript_s_set_ball_down,gml_Script_s_set_ball_down,gml_GlobalScript_s_receive_ball,gml_Script_s_receive_ball,gml_GlobalScript_s_opposite_aim,gml_Script_s_opposite_aim,gml_GlobalScript_s_update_xdead,gml_Script_s_update_xdead,gml_GlobalScript_s_set_skills_and_skin,gml_Script_s_set_skills_and_skin,gml_GlobalScript_s_set_anim,gml_Script_s_set_anim,gml_GlobalScript_s_set_position_offense,gml_Script_s_set_position_offense,gml_GlobalScript_s_create_news_message, gml_Script_s_create_news_dyn_message,gml_GlobalScript_s_set_position_defense,gml_Script_s_set_position_defense,gml_GlobalScript_s_college_postseason,gml_Script____struct___144_s_rm_postseason_init_gml_GlobalScript_s_college_postseason,gml_Script____struct___145_s_rm_postseason_init_gml_GlobalScript_s_college_postseason,gml_Script____struct___146_s_rm_postseason_init_gml_GlobalScript_s_college_postseason,gml_Script____struct___147_s_rm_postseason_init_gml_GlobalScript_s_college_postseason,gml_Script____struct___148_s_rm_postseason_init_gml_GlobalScript_s_college_postseason, gml_Script____struct___149_s_rm_postseason_init_gml_GlobalScript_s_college_postseason,gml_Script____struct___150_s_rm_postseason_init_gml_GlobalScript_s_college_postseason,gml_Script_s_rm_postseason_init,gml_Script_s_btn_postseason_skip_loading,gml_Script_s_btn_postseason_skip,gml_Script_s_btn_postseason_play,gml_Script_s_postseason_goto_home,gml_Script_s_btn_result_postseason_continue,gml_Script_s_btn_postmatch_co_continue,gml_Script_s_btn_postmatch_co_league,gml_Script_s_postseason_show_news,gml_Script_s_postseason_show_finals, gml_Script_s_postseason_show_next_result,gml_Script_s_postseason_show_finals_result,gml_Script_s_btn_postseason_news_skip,gml_Script_s_btn_postseason_news_continue,gml_Script_s_postseason_results,gml_Script____struct___151_s_create_postseason_result_gml_GlobalScript_s_college_postseason,gml_Script____struct___152_s_create_postseason_result_gml_GlobalScript_s_college_postseason,gml_Script_s_create_postseason_result,gml_Script_s_postseason_results_data_sort,gml_Script_s_get_postseason_result_by_cid, gml_Script_s_get_competition_win_access,gml_Script_s_get_fix_access_string,gml_Script_s_get_fix_result_string,gml_Script_s_skip_postseason_until_human_match,gml_Script_s_skip_postseason_chunk,gml_GlobalScript_s_get_nearest_opponent_by_position,gml_Script_s_get_nearest_opponent_by_position,gml_GlobalScript_s_set_position_defense_fg,gml_Script_s_set_position_defense_fg,gml_GlobalScript_s_set_position_offense_fg,gml_Script_s_set_position_offense_fg,gml_GlobalScript_s_get_skin_colour_by_index,gml_Script_s_get_skin_colour_by_index, gml_GlobalScript_s_point_to_path,gml_Script_s_point_to_path,gml_GlobalScript_s_intercept_object,gml_Script_s_intercept_object,gml_GlobalScript_s_cover_object,gml_Script_s_cover_object,gml_GlobalScript_s_get_nearest_opponent,gml_Script_s_get_nearest_opponent,gml_GlobalScript_s_aim_for_nearest_opponent,gml_Script_s_aim_for_nearest_opponent,gml_GlobalScript_s_get_distance_to_nearest_opponent,gml_Script_s_get_distance_to_nearest_opponent,gml_GlobalScript_s_get_distance_to_furthest_teammate,gml_Script_s_get_distance_to_furthest_teammate, gml_GlobalScript_s_get_destination,gml_Script_s_get_destination,gml_GlobalScript_s_check_human_control,gml_Script_s_check_human_control,gml_Script_s_do_dive,gml_Script_s_do_stutterstep,gml_GlobalScript_s_check_tackling,gml_Script_s_check_tackling,gml_GlobalScript_s_stop_tackling,gml_Script_s_stop_tackling,gml_GlobalScript_s_check_dive,gml_Script_s_check_dive,gml_GlobalScript_s_get_quarterback,gml_Script_s_get_quarterback,gml_GlobalScript_s_get_kicker,gml_Script_s_get_kicker,gml_GlobalScript_s_can_run, gml_Script_s_can_run,gml_GlobalScript_s_is_in_the_clear,gml_Script_s_is_in_the_clear,gml_GlobalScript_s_ball_holder_goalside,gml_Script_s_ball_holder_goalside,gml_GlobalScript_s_opponent_goalside,gml_Script_s_opponent_goalside,gml_GlobalScript_s_y_on_myside,gml_Script_s_y_on_myside,gml_GlobalScript_s_aim_AI_offense,gml_Script_s_aim_AI_offense,gml_GlobalScript_s_aim_AI_defense,gml_Script_s_aim_AI_defense,gml_GlobalScript_s_received_AI_new,gml_Script_s_received_AI_new,gml_GlobalScript_s_can_throw, gml_Script_s_can_throw,gml_GlobalScript_s_sprite_holding_ball,gml_Script_s_sprite_holding_ball,gml_GlobalScript_s_is_falling,gml_Script_s_is_falling,gml_GlobalScript_is_defensiveback,gml_Script_is_defensiveback,gml_GlobalScript_s_get_qb_name,gml_Script_s_get_qb_name,gml_GlobalScript_s_get_kicker_name,gml_Script_s_get_kicker_name,gml_GlobalScript_s_get_holder_name,gml_Script_s_get_holder_name,gml_GlobalScript_s_get_opponent_team_tla,gml_Script_s_get_opponent_team_tla,gml_GlobalScript_s_set_up_play, gml_Script_s_set_up_play,gml_Script_s_btn_audible_reposition,gml_Script_s_btn_fieldgoal_reposition,gml_GlobalScript_s_update_commentary,gml_Script_s_update_commentary,gml_Script_s_go_for_it_or_not,gml_Script_s_check_skip_time_button,gml_Script_btn_skip_time,gml_Script_s_no_ties_allowed,gml_Script_roster_short_desc,gml_Script_roster_short_desc_tag,gml_Script_slog_roster,gml_Script_slog_master_roster,gml_GlobalScript_s_choose_defensive_formation,gml_Script_s_choose_defensive_formation,gml_GlobalScript_s_set_up_fieldgoal, gml_Script_s_set_up_fieldgoal,gml_GlobalScript_s_subtract_time,gml_Script_s_subtract_time,gml_GlobalScript_s_update_game_timer,gml_Script_s_update_game_timer,gml_GlobalScript_s_update_game_clock,gml_Script_s_update_game_clock,gml_GlobalScript_s_update_yard_gain,gml_Script_s_update_yard_gain,gml_GlobalScript_s_set_rewarded_route,gml_Script_s_set_rewarded_route,gml_GlobalScript_s_switch_drivedirection,gml_Script_s_switch_drivedirection,gml_GlobalScript_s_destroy_match_objects,gml_Script_s_destroy_match_objects, gml_GlobalScript_s_action_result,gml_Script_s_action_result,gml_GlobalScript_s_is_quarter_over,gml_Script_s_is_quarter_over,gml_GlobalScript_s_is_on_pitch,gml_Script_s_is_on_pitch,gml_GlobalScript__poki_is_mobile,gml_Script__poki_is_mobile,gml_GlobalScript_s_is_on_pitch_xy,gml_Script_s_is_on_pitch_xy,gml_GlobalScript_s_end_match,gml_Script_s_end_match,gml_GlobalScript_s_update_stats,gml_Script_s_update_stats,gml_GlobalScript_s_convert_scrimmage_to_goal_distance,gml_Script_s_convert_scrimmage_to_goal_distance, gml_GlobalScript_s_kick_off,gml_Script_s_kick_off,gml_GlobalScript_s_punt,gml_Script_s_punt,gml_GlobalScript_s_change_possession,gml_Script_s_change_possession,gml_Script_s_force_possession,gml_GlobalScript_s_tackle_failure,gml_Script_s_tackle_failure,gml_GlobalScript_s_last_secs_of_half,gml_Script_s_last_secs_of_half,gml_Script_s_seconds_remaining,gml_GlobalScript_s_reset_wind,gml_Script_s_reset_wind,gml_GlobalScript_s_change_wind,gml_Script_s_change_wind,gml_GlobalScript_s_force_quit,gml_Script_s_force_quit, gml_GlobalScript_s_do_audible,gml_Script_s_do_audible,gml_GlobalScript_s_do_timeout,gml_Script_s_do_timeout,gml_GlobalScript_s_check_win_after_turnover,gml_Script_s_check_win_after_turnover,gml_Script_s_both_teams_had_possession,gml_GlobalScript_s_clear_clock,gml_Script_s_clear_clock,gml_GlobalScript_s_fieldtxt,gml_Script_s_fieldtxt,gml_Script_s_fieldtxt_yards,gml_Script_s_fieldimg,gml_GlobalScript_s_fieldtxt_yards,gml_GlobalScript_s_sound_audience_idle,gml_Script_s_sound_audience_idle,gml_GlobalScript_s_create_match_message, gml_Script_s_create_match_message,gml_Script_s_create_head2head_message,gml_GlobalScript_s_draw_commentary,gml_Script_s_draw_commentary,gml_GlobalScript_s_draw_scoreboard,gml_Script_s_draw_scoreboard,gml_GlobalScript_s_draw_scrimmage,gml_Script_s_draw_scrimmage,gml_GlobalScript_s_draw_wind,gml_Script_s_draw_wind,gml_GlobalScript_s_draw_kicking_power,gml_Script_s_draw_kicking_power,gml_GlobalScript_s_draw_my_route,gml_Script_s_draw_my_route,gml_GlobalScript_s_draw_kick_cone,gml_Script_s_draw_kick_cone, gml_GlobalScript_s_check_draft_qb,gml_Script_s_check_draft_QB,gml_Script_s_do_qb_draft_round,gml_Script_s_get_weakest_player_by_position,gml_Script_s_find_draft_player_by_position,gml_Script_s_get_player_by_position_for_qb_draft,gml_Script_s_do_contract_news,gml_Script_s_goto_room_contract,gml_Script_btn_qb_mode_interested_teams,gml_GlobalScript_s_update_my_shadow,gml_Script_s_update_my_shadow,gml_GlobalScript_s_set_up_practice,gml_Script_s_set_up_practice,gml_GlobalScript_s_practice_passing,gml_Script_s_practice_passing, gml_GlobalScript_s_reinstate_hof_player,gml_Script_s_reinstate_hof_player,gml_GlobalScript_s_practice_running,gml_Script_s_practice_running,gml_GlobalScript_s_practice_running_qb,gml_Script_s_practice_running_qb,gml_GlobalScript_s_obj_controller_helpers,gml_Script_s_obj_controller_step,gml_GlobalScript_s_create_dummy,gml_Script_s_create_dummy,gml_GlobalScript_s_create_boundary,gml_Script_s_create_boundary,gml_GlobalScript_debug_scripts,gml_Script_s_debug_window_size,gml_Script_s_is_debug_desktop, gml_Script_s_set_desktop_dev_window_size,gml_Script____struct___153_s_co_debug_access_gml_GlobalScript_debug_scripts,gml_Script_s_co_debug_access,gml_Script_s_debug_bypass,gml_Script_s_debug_room_init,gml_Script____struct___154_s_debug_init_menu_gml_GlobalScript_debug_scripts,gml_Script____struct___155_s_debug_init_menu_gml_GlobalScript_debug_scripts,gml_Script____struct___156_s_debug_init_menu_gml_GlobalScript_debug_scripts,gml_Script____struct___157_s_debug_init_menu_gml_GlobalScript_debug_scripts, gml_Script____struct___158_s_debug_init_menu_gml_GlobalScript_debug_scripts,gml_Script____struct___159_s_debug_init_menu_gml_GlobalScript_debug_scripts,gml_Script____struct___160_s_debug_init_menu_gml_GlobalScript_debug_scripts,gml_Script____struct___161_s_debug_init_menu_gml_GlobalScript_debug_scripts,gml_Script____struct___162_s_debug_init_menu_gml_GlobalScript_debug_scripts,gml_Script____struct___163_s_debug_init_menu_gml_GlobalScript_debug_scripts,gml_Script____struct___164_s_debug_init_menu_gml_GlobalScript_debug_scripts, gml_Script____struct___165_s_debug_init_menu_gml_GlobalScript_debug_scripts,gml_Script____struct___166_s_debug_init_menu_gml_GlobalScript_debug_scripts,gml_Script____struct___167_s_debug_init_menu_gml_GlobalScript_debug_scripts,gml_Script____struct___168_s_debug_init_menu_gml_GlobalScript_debug_scripts,gml_Script_s_debug_init_menu,gml_Script_s_give_debug_cc,gml_Script_btn_click_debug_main,gml_Script____struct___169_btn_click_debug_team_ranking_gml_GlobalScript_debug_scripts,gml_Script_btn_click_debug_team_ranking, gml_Script_btn_click_debug_test_screen,gml_Script_btn_click_debug_review_screen,gml_Script_btn_click_debug_skip_regular_season,gml_Script_btn_click_debug_skip_next_match,gml_Script_btn_click_debug_force_skip_result,gml_Script_s_get_forced_skip_result_readout,gml_Script_btn_click_debug_test_pool_creation,gml_Script_btn_click_debug_team_editor_franchise_screen,gml_Script_btn_click_debug_editor_screen,gml_Script_btn_click_debug_switch_data_version,gml_Script_s_get_alternative_data_version,gml_Script____struct___170_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts, gml_Script____struct___171_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts,gml_Script____struct___172_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts,gml_Script____struct___173_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts,gml_Script_anon_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts_7686_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts,gml_Script_s_debug_init_team_ranking,gml_Script_btn_dbg_list_prev_conference,gml_Script_btn_dbg_list_next_conference, gml_Script_s_clamp_conference_id,gml_Script_s_dbg_team_ranking_draw_gui,gml_Script_btn_click_debug_test_sim_odds,gml_Script_s_debug_list_bracketed_fixtures,gml_Script_s_debug_start_time,gml_Script_s_debug_show_time,gml_Script_s_set_exception_reporter,gml_Script_s_fake_crash,gml_Script_s_fake_crash_safe,gml_Script_s_safe_run,gml_Script_s_safe_run_catch,gml_Script_s_safe_run_msg,gml_Script_s_safe_run_crash_report,gml_Script_s_safe_run_crash_save,gml_GlobalScript_s_sound_kick,gml_Script_s_sound_kick, gml_GlobalScript_s_sound_throw,gml_Script_s_sound_throw,gml_GlobalScript_s_sound_post,gml_Script_s_sound_post,gml_GlobalScript_s_sound_audience_dis,gml_Script_s_sound_audience_dis,gml_GlobalScript_s_sound_audience_fg,gml_Script_s_sound_audience_fg,gml_GlobalScript_s_sound_bounce,gml_Script_s_sound_bounce,gml_GlobalScript_s_sound_tackle,gml_Script_s_sound_tackle,gml_GlobalScript_s_sound_oof,gml_Script_s_sound_oof,gml_GlobalScript_s_sound_dive,gml_Script_s_sound_dive,gml_GlobalScript_s_sound_loop, gml_Script_s_sound_loop,gml_GlobalScript_s_qb_run,gml_Script_s_qb_run,gml_Script_s_qb_revert_throw,gml_GlobalScript_s_throw_ball,gml_Script_s_throw_ball,gml_GlobalScript_s_record_frame,gml_Script_s_record_frame,gml_GlobalScript_s_replay_frame,gml_Script_s_replay_frame,gml_GlobalScript_s_start_replay,gml_Script_s_start_replay,gml_GlobalScript_s_end_replay,gml_Script_s_end_replay,gml_GlobalScript_s_get_qb_pmap,gml_Script_s_get_qb_pmap,gml_GlobalScript_s_create_message,gml_Script_s_create_message,gml_Script_s_message_recenter, gml_Script_s_message_toggle,gml_Script_s_create_message3,gml_Script_s_do_message,gml_Script_s_msg,gml_Script_s_loading_button_hijack,gml_Script_s_loading_trigger,gml_Script____struct___174_s_loading_start_gml_GlobalScript_s_create_message,gml_Script_s_loading_start,gml_Script_s_loading_callback,gml_GlobalScript_s_meter_change,gml_Script_s_meter_change,gml_GlobalScript_s_meter_change_end,gml_Script_s_meter_change_end,gml_GlobalScript_s_notification,gml_Script_s_notification,gml_GlobalScript_s_msg_clear, gml_Script_s_msg_clear,gml_GlobalScript_s_msg_clear_info_draft,gml_Script_s_msg_clear_info_draft,gml_GlobalScript_s_add_news,gml_Script_s_add_news,gml_Script_s_add_news_if_new,gml_Script_s_remove_news,gml_Script_s_add_news_dyn,gml_GlobalScript_s_check_for_news,gml_Script_s_check_for_news,gml_Script_s_has_news,gml_GlobalScript_s_news_clear,gml_Script_s_news_clear,gml_GlobalScript_s_do_banner_draft,gml_Script_s_do_banner_draft,gml_Script_s_do_banner_season_review,gml_GlobalScript_s_do_review_message, gml_Script_s_do_review_message,gml_GlobalScript_btn_response_review_yes,gml_Script_btn_response_review_yes,gml_Script_btn_response_review_no,gml_GlobalScript_s_edit_field,gml_Script_s_edit_field,gml_GlobalScript_s_edit_cancel,gml_Script_s_edit_cancel,gml_GlobalScript_s_edit_confirm_profile,gml_Script_s_edit_confirm_profile,gml_Script_s_update_boss_profile,gml_GlobalScript_s_msg_timeouts,gml_Script_s_msg_timeouts,gml_GlobalScript_s_achievements,gml_Script_s_complete_achievement,gml_Script_s_achievement_is_valid, gml_Script_s_exists_in_list,gml_Script_s_count_achievement,gml_Script_s_get_achievement,gml_Script_s_get_achievement_percentage,gml_Script_s_get_filtered_achievements,gml_GlobalScript_s_get_record,gml_Script_s_get_record,gml_GlobalScript_s_check_record,gml_Script_s_check_record,gml_GlobalScript_s_check_record_text,gml_Script_s_check_record_text,gml_GlobalScript_s_sort_record_list,gml_Script_s_sort_record_list,gml_GlobalScript_s_get_player_name_for_record,gml_Script_s_get_player_name_for_record,gml_GlobalScript_s_check_repeat_retrobowls, gml_Script_s_check_repeat_retrobowls,gml_GlobalScript_s_create_player,gml_Script_s_create_player_get_RC_cost,gml_Script_s_create_player,gml_GlobalScript_s_sort_players,gml_Script_s_sort_players,gml_GlobalScript_s_create_new_roster,gml_Script_s_create_new_roster,gml_GlobalScript_s_create_new_roster_newteam,gml_Script_s_create_new_roster_newteam,gml_Script_s_create_new_roster_cut_old_roster,gml_GlobalScript_s_lastname_already_on_roster,gml_Script_s_lastname_already_on_roster,gml_GlobalScript_s_position_already_on_roster, gml_Script_s_position_already_on_roster,gml_GlobalScript_s_get_required_position,gml_Script_s_get_required_position,gml_Script_s_get_required_position_no_QB_RB,gml_GlobalScript_s_get_player_rating,gml_Script_s_get_player_rating,gml_GlobalScript_s_get_player_potential,gml_Script_s_get_player_potential,gml_GlobalScript_s_obj_player_draw_begin,gml_Script_s_obj_player_draw_begin,gml_GlobalScript_s_college_competitions,gml_Script_s_get_competition_id_from_fix,gml_Script_s_get_competition_by_conference_division, gml_Script_s_get_competition,gml_Script_s_get_competitions_in_editor_group,gml_Script_s_get_last_schedule_week,gml_Script_s_get_postseason_fixture_by_week,gml_Script_s_get_player_schedule_fixture_by_week,gml_Script____struct___175_s_get_competition_win_access_list_gml_GlobalScript_s_college_competitions,gml_Script_s_get_competition_win_access_list,gml_Script_s_schedule_generation,gml_Script_s_is_cyclic_competition_year,gml_Script_s_schedule_add_game,gml_Script_s_schedule_add_championship,gml_Script_s_get_schedule_fix_template, gml_Script_s_fixture_victory_screen,gml_Script_s_handle_fixture_notification,gml_Script_s_fixture_notifications_roster_cv_entry,gml_Script_s_handle_fixture_history_record,gml_Script_s_handle_fixture_reward,gml_Script____struct___176_s_reset_competitions_and_subdivisions_pools_and_rankings_gml_GlobalScript_s_college_competitions,gml_Script____struct___177_s_reset_competitions_and_subdivisions_pools_and_rankings_gml_GlobalScript_s_college_competitions,gml_Script____struct___178_s_reset_competitions_and_subdivisions_pools_and_rankings_gml_GlobalScript_s_college_competitions, gml_Script_s_reset_competitions_and_subdivisions_pools_and_rankings,gml_Script_s_competitions_status_update,gml_Script_s_competitions_update_quick_standings,gml_Script_s_resolve_non_champ_conferences,gml_Script_s_schedule_advance_teams,gml_Script_s_schedule_move_better_team_to_home_slot,gml_Script____struct___179_s_schedule_add_fixtag_gml_GlobalScript_s_college_competitions,gml_Script_s_schedule_add_fixtag,gml_Script_s_get_fixtag_priority,gml_Script_s_fixtag_sort_priority,gml_Script_s_competition_update_standings, gml_Script_s_competition_reset_standings,gml_Script_s_conference_update_standings,gml_Script_s_subdivision_update_rankings,gml_Script_s_conference_reset_standings,gml_Script_s_subdivision_get_player_ranking,gml_Script_s_subdivision_get_team_ranking,gml_Script_s_get_my_conference_current_place,gml_Script_s_update_human_postseason_fixtures,gml_GlobalScript_s_get_player_by_position,gml_Script_s_get_player_by_position,gml_Script_s_get_player_by_position_from_roster,gml_Script_s_get_player_kick_returner, gml_GlobalScript_s_get_player_by_lname,gml_Script_s_get_player_by_lname,gml_GlobalScript_s_get_random_player,gml_Script_s_get_random_player,gml_GlobalScript_s_get_random_player_by_position,gml_Script_s_get_random_player_by_position,gml_Script_s_get_random_player_by_position_from_roster,gml_GlobalScript_s_get_random_player_defensive,gml_Script_s_get_random_player_defensive,gml_GlobalScript_s_get_random_player_offensive,gml_Script_s_get_random_player_offensive,gml_GlobalScript_s_get_random_coach,gml_Script_s_get_random_coach, gml_GlobalScript_btn_click_qb_items,gml_Script_btn_click_qb_items,gml_Script_btn_click_qb_vehicles,gml_Script_btn_click_qb_property,gml_GlobalScript_s_count_players_by_position,gml_Script_s_count_players_by_position,gml_GlobalScript_s_count_players_onfield_by_position,gml_Script_s_count_players_onfield_by_position,gml_GlobalScript_s_count_defenders,gml_Script_s_count_defenders,gml_GlobalScript_btn_click_OptionsControls,gml_Script_btn_click_OptionsControls,gml_Script_btn_click_OptionsControls1,gml_Script_btn_click_OptionsControls2, gml_Script_btn_click_OptionsControls3,gml_Script_s_update_control_screen,gml_GlobalScript_s_get_position_colour,gml_Script_s_get_position_colour,gml_GlobalScript_s_gui_matchline,gml_Script____struct___180_s_obj_matchLine_create_gml_GlobalScript_s_gui_matchline,gml_Script_s_obj_matchLine_create,gml_Script_s_obj_matchLine_step,gml_Script_s_obj_matchLine_global_flick,gml_Script_s_obj_matchLine_draw,gml_Script_s_obj_matchLine_draw_gui,gml_GlobalScript_s_increase_player_attribute,gml_Script_s_increase_player_attribute, gml_GlobalScript_s_player_at_max_potential,gml_Script_s_player_at_max_potential,gml_GlobalScript_s_is_offensive_player,gml_Script_s_is_offensive_player,gml_Script_s_get_training_reg,gml_GlobalScript_s_is_defensive_player,gml_Script_s_is_defensive_player,gml_GlobalScript_s_get_average_yards,gml_Script_s_get_average_yards,gml_GlobalScript_s_get_player_name,gml_Script_s_get_player_name,gml_GlobalScript_s_get_meeting_cost_morale,gml_Script_s_get_meeting_cost_morale,gml_GlobalScript_s_get_meeting_cost_condition, gml_Script_s_get_meeting_cost_condition,gml_GlobalScript_s_get_meeting_cost_levelup,gml_Script_s_get_meeting_cost_levelup,gml_GlobalScript_s_get_meeting_cost_delay_retirement,gml_Script_s_get_meeting_cost_delay_retirement,gml_GlobalScript_s_get_meeting_cost_extend_contract,gml_Script_s_get_meeting_cost_extend_contract,gml_GlobalScript_s_get_match_rating,gml_Script_s_get_match_rating,gml_GlobalScript_s_reset_match_stats,gml_Script_s_reset_match_stats,gml_GlobalScript_s_toxic_effect_on_morale,gml_Script_s_toxic_effect_on_morale, gml_GlobalScript_s_match_rating_effect_on_morale,gml_Script_s_match_rating_effect_on_morale,gml_GlobalScript_s_training_regime_effect_on_morale,gml_Script_s_training_regime_effect_on_morale,gml_GlobalScript_s_injury_effect_on_attitude,gml_Script_s_injury_effect_on_attitude,gml_GlobalScript_s_rehab_effect,gml_Script_s_rehab_effect,gml_GlobalScript_s_add_xp_gain_all,gml_Script_s_add_xp_gain_all,gml_GlobalScript_s_check_for_injury,gml_Script_s_check_for_injury,gml_GlobalScript_s_count_injuries,gml_Script_s_count_injuries, gml_GlobalScript_s_count_injuries_weeks,gml_Script_s_count_injuries_weeks,gml_GlobalScript_s_college_reputation,gml_Script_s_get_team_offense_with_reputation_boost,gml_Script_s_get_team_defense_with_reputation_boost,gml_Script_s_get_strength_with_reputation_boost,gml_Script_s_get_reputation_points,gml_Script_s_update_fixture_teams_reputation,gml_Script_s_has_reputation_point,gml_Script_s_update_all_teams_reputation,gml_Script_s_update_team_reputation_flag,gml_Script_s_update_team_reputation,gml_Script_s_get_team_reputation_data, gml_Script_s_set_team_reputation_data,gml_Script_s_convert_reputation_string_to_data,gml_Script_s_convert_reputation_data_to_string,gml_Script____struct___181_s_create_reputation_data_gml_GlobalScript_s_college_reputation,gml_Script_s_create_reputation_data,gml_Script_s_update_reputation_data,gml_Script_s_is_reputation_string_updated,gml_Script_s_is_reputation_data_updated,gml_Script_s_get_reputation_string_points,gml_Script_s_get_reputation_data_points,gml_Script_s_reputation_data_test,gml_GlobalScript_s_choose_face, gml_Script_s_choose_face,gml_Script_s_face_from_set,gml_Script_s_face_from_set_direct,gml_GlobalScript_s_get_max_age,gml_GlobalScript_s_get_max_age_normal,gml_Script_s_get_max_age_normal,gml_GlobalScript_s_get_num_audibles,gml_Script_s_get_num_audibles,gml_GlobalScript_s_get_morale,gml_Script_s_get_morale,gml_Script_s_get_morale_from_roster,gml_GlobalScript_s_get_condition_squad,gml_Script_s_get_condition_squad,gml_Script_s_get_condition_squad_from_roster,gml_GlobalScript_s_adjust_team_morale,gml_Script_s_adjust_team_morale, gml_Script_s_adjust_team_morale_ignore_freshman,gml_GlobalScript_s_set_team_morale,gml_Script_s_set_team_morale,gml_GlobalScript_s_position_edit_name_btn,gml_Script_s_position_edit_name_btn,gml_GlobalScript_s_update_rest_all_button,gml_Script_s_update_rest_all_button,gml_GlobalScript_s_all_players_resting,gml_Script_s_all_players_resting,gml_GlobalScript_s_rest_all_players,gml_Script_s_rest_all_players,gml_GlobalScript_s_tag_backups,gml_Script_s_tag_backups,gml_Script_s_tag_backups_internal,gml_GlobalScript_s_college_choose_team, gml_Script____struct___182_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team,gml_Script____struct___183_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team,gml_Script____struct___184_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team,gml_Script____struct___185_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team,gml_Script____struct___186_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team,gml_Script_s_rm_choose_team_co_init,gml_Script_s_btn_minor, gml_Script_s_btn_major,gml_Script_s_choose_team_refresh_subdivision,gml_Script_s_choose_team_refresh_conference,gml_Script____struct___187_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team,gml_Script____struct___188_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team,gml_Script____struct___189_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team,gml_Script____struct___190_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team, gml_Script_s_choose_team_create_conference_buttons,gml_Script_s_choose_team_btn_conference,gml_Script____struct___191_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team,gml_Script____struct___192_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team,gml_Script____struct___194_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team,gml_Script____struct___195_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team,gml_Script_s_choose_team_create_team_buttons, gml_Script_s_choose_team_btn_fav_team,gml_Script_s_choose_team_btn_new_team,gml_Script_s_choose_team_btn_back,gml_Script_s_choose_team_btn_reject,gml_Script_s_choose_team_conference_mode,gml_Script_s_choose_team_subdivision_mode,gml_Script_s_refresh_main_sections_buttons,gml_GlobalScript_s_is_backup,gml_Script_s_is_backup,gml_GlobalScript_s_do_player_awards,gml_Script_s_do_player_awards,gml_Script_s_do_player_awards_college,gml_Script_s_Award_OutstandingPOTY,gml_Script_s_Award_ExtraordinaryAcademicPOTY, gml_Script_s_Award_OffensivePOTY,gml_Script_s_Award_DefensivePOTY,gml_Script_s_Award_PositionPOTY,gml_Script_s_Award_AnyPositionPOTY,gml_Script_s_Award_CommunityServicePOTY,gml_Script_s_Award_WalkOnPOTY,gml_Script_s_Award_FreshmanPOTY,gml_Script_s_Award_AcademicPrize,gml_GlobalScript_s_award_sb_rings,gml_Script_s_award_sb_rings,gml_GlobalScript_s_round_player_attributes,gml_Script_s_round_player_attributes,gml_GlobalScript_s_get_store_player_by_position,gml_Script_s_get_store_player_by_position, gml_GlobalScript_s_create_new_stafflist,gml_Script_s_create_new_stafflist,gml_GlobalScript_s_create_staff,gml_Script_s_create_staff,gml_Script_s_create_headcoach_pmap,gml_GlobalScript_s_create_hirelist,gml_Script_s_create_hirelist,gml_GlobalScript_s_sort_hirelist,gml_Script_s_sort_hirelist,gml_GlobalScript_s_reset_staff_hire_list,gml_Script_s_reset_staff_hire_list,gml_GlobalScript_s_get_staff,gml_Script_s_get_staff,gml_GlobalScript_s_is_staff,gml_Script_s_is_staff,gml_GlobalScript_s_get_coach_cost, gml_Script_s_get_coach_cost,gml_GlobalScript_s_coach_trait_experience,gml_Script_s_coach_trait_experience,gml_GlobalScript_s_coach_trait_talentspotter,gml_Script_s_coach_trait_talentspotter,gml_GlobalScript_s_coach_trait_motivator,gml_Script_s_coach_trait_motivator,gml_GlobalScript_btn_click_qb_training,gml_Script_btn_click_qb_training,gml_Script_s_do_qb_training,gml_GlobalScript_btn_click_GenerateCharacter,gml_Script_btn_click_GenerateCharacter,gml_GlobalScript_s_count_trait_fanfavorite,gml_Script_s_count_trait_fanfavorite, gml_GlobalScript_s_count_trait_scout,gml_Script_s_count_trait_scout,gml_GlobalScript_s_fire_coach,gml_Script_s_fire_coach,gml_GlobalScript_s_check_contracts_expiring,gml_Script_s_check_contracts_expiring,gml_GlobalScript_s_str,gml_Script_s_str,gml_Script_s_str_u,gml_Script_s_str_real,gml_Script_s_strf,gml_Script_s_strfl,gml_Script_s_co_str,gml_Script_s_co_str_real,gml_GlobalScript_s_split_string,gml_Script_s_split_string,gml_GlobalScript_s_parse_news,gml_Script_s_parse_news,gml_GlobalScript_s_parse_intro, gml_Script_s_parse_intro,gml_GlobalScript_s_parse_player_message,gml_Script_s_parse_player_message,gml_GlobalScript_s_strP,gml_Script_s_strP,gml_GlobalScript_s_sim_stat_increment,gml_Script_s_sim_stat_increment,gml_Script_s_sim_stat_update,gml_Script_s_sim_stat_touchdown,gml_Script_s_sim_stat_pass,gml_Script_s_sim_stat_run,gml_Script_s_sim_stat_fumble,gml_Script_s_sim_stat_interception,gml_Script_s_sim_stat_sack,gml_GlobalScript_s_parse_string,gml_Script_s_parse_string,gml_GlobalScript_s_crop_text, gml_Script_s_crop_text,gml_GlobalScript_s_get_string_ball_state,gml_Script_s_get_string_ball_state,gml_GlobalScript_s_get_string_state,gml_Script_s_get_string_state,gml_GlobalScript_s_get_string_sex,gml_Script_s_get_string_sex,gml_GlobalScript_s_get_string_heshe,gml_Script_s_get_string_heshe,gml_GlobalScript_s_get_string_time,gml_Script_s_get_string_time,gml_GlobalScript_s_string_rand,gml_Script_s_string_rand,gml_GlobalScript_s_get_string_downand,gml_Script_s_get_string_downand,gml_GlobalScript_s_get_string_float, gml_Script_s_get_string_float,gml_GlobalScript_s_get_string_division,gml_Script_s_get_string_division,gml_GlobalScript_s_get_string_conference,gml_Script_s_get_string_conference,gml_GlobalScript_s_get_string_week,gml_Script_s_get_string_week,gml_GlobalScript_s_get_string_week_short,gml_Script_s_get_string_week_short,gml_GlobalScript_s_get_string_year,gml_Script_s_get_string_year,gml_GlobalScript_s_get_string_commstage,gml_Script_s_get_string_commstage,gml_GlobalScript_s_get_string_position,gml_Script_s_get_string_position, gml_GlobalScript_s_get_string_position_full,gml_Script_s_get_string_position_full,gml_GlobalScript_s_get_string_attitude,gml_Script_s_get_string_attitude,gml_GlobalScript_s_college_room_tools,gml_Script____struct___196,gml_Script_s_goto_room,gml_Script_anon_s_init_rm_gml_GlobalScript_s_college_room_tools_653_s_init_rm_gml_GlobalScript_s_college_room_tools,gml_Script_s_init_rm,gml_Script____struct___197_s_destroy_rm_gml_GlobalScript_s_college_room_tools,gml_Script_s_destroy_rm,gml_Script____struct___198_s_create_title_gml_GlobalScript_s_college_room_tools, gml_Script_s_create_title,gml_Script_s_create_button,gml_Script_anon_s_destroy_dynamic_buttons_gml_GlobalScript_s_college_room_tools_1336_s_destroy_dynamic_buttons_gml_GlobalScript_s_college_room_tools,gml_Script_s_destroy_dynamic_buttons,gml_Script____struct___199_s_calc_grid_coords_gml_GlobalScript_s_college_room_tools,gml_Script_s_calc_grid_coords,gml_Script____struct___200_s_show_rm_winners_gml_GlobalScript_s_college_room_tools,gml_Script_s_show_rm_winners,gml_GlobalScript_s_get_string_trade_value, gml_Script_s_get_string_trade_value,gml_GlobalScript_s_get_string_anim,gml_Script_s_get_string_anim,gml_GlobalScript_s_get_string_condition,gml_Script_s_get_string_condition,gml_GlobalScript_s_get_string_record,gml_Script_s_get_string_record,gml_Script_s_get_string_record_co_extended,gml_Script_s_get_string_conf_tag,gml_GlobalScript_s_get_string_trait,gml_Script_s_get_string_trait,gml_GlobalScript_s_get_string_action_result,gml_Script_s_get_string_action_result,gml_GlobalScript_s_can_touchback,gml_Script_s_can_touchback, gml_GlobalScript_s_get_string_performance,gml_Script_s_get_string_performance,gml_GlobalScript_s_get_random_teamname,gml_Script_s_get_random_teamname,gml_Script_s_get_random_team_id,gml_GlobalScript_btn_click_Roster_List,gml_Script_btn_click_Roster_List,gml_GlobalScript_s_get_string_picks,gml_Script_s_get_string_picks,gml_GlobalScript_s_get_team_by_id,gml_Script_s_get_team_by_id,gml_Script_s_get_team_by_id_internal,gml_GlobalScript_s_get_team_name_by_id,gml_Script_s_get_team_name_by_id,gml_GlobalScript_s_get_team_tla_by_id, gml_Script_s_get_team_tla_by_id,gml_GlobalScript_s_sort_teams,gml_Script_s_sort_teams,gml_GlobalScript_s_get_team_by_seed,gml_Script_s_get_team_by_seed,gml_Script_s_get_team_by_seed_co,gml_Script_s_get_team_seeding,gml_GlobalScript_s_get_team_id_by_seed,gml_Script_s_get_team_id_by_seed,gml_GlobalScript_s_get_team_name_by_seed,gml_Script_s_get_team_name_by_seed,gml_GlobalScript_s_get_team_offense,gml_Script_s_get_team_offense,gml_Script_s_get_team_offense_exh,gml_Script_s_get_team_offense_from_roster, gml_GlobalScript_s_get_defense_attribute,gml_Script_s_get_defense_attribute,gml_Script_s_get_attribute,gml_Script_s_attribute_buff,gml_GlobalScript_s_get_team_defense,gml_Script_s_get_team_defense,gml_Script_s_get_team_defense_exh,gml_Script_s_get_team_defense_from_roster,gml_GlobalScript_s_get_salary_total,gml_Script_s_get_salary_total,gml_GlobalScript_s_refactor_team_strengths,gml_Script_s_refactor_team_strengths,gml_GlobalScript_s_get_team_winpct,gml_Script_s_get_team_winpct,gml_GlobalScript_s_get_team_net_points, gml_Script_s_get_team_net_points,gml_GlobalScript_s_get_points_versus,gml_Script_s_get_points_versus,gml_GlobalScript_s_get_wins_versus,gml_Script_s_get_wins_versus,gml_GlobalScript_s_get_point_swing,gml_Script_s_get_point_swing,gml_Script_s_get_head_to_head,gml_Script_s_get_win_pecentage_by_confdiv,gml_GlobalScript_s_get_points_season,gml_Script_s_get_points_season,gml_GlobalScript_s_practice_qb_mode,gml_Script_s_practice_qb_mode,gml_Script_s_end_qb_mode_practice,gml_Script_s_quit_qb_mode_practice, gml_GlobalScript_s_col_hex_to_r,gml_Script_s_col_hex_to_r,gml_GlobalScript_s_col_hex_to_g,gml_Script_s_col_hex_to_g,gml_GlobalScript_s_col_hex_to_b,gml_Script_s_col_hex_to_b,gml_GlobalScript_s_hex_string_to_col,gml_Script_s_hex_string_to_col,gml_GlobalScript_s_rgb_to_bgr,gml_Script_s_rgb_to_bgr,gml_GlobalScript_s_set_up_globals,gml_Script_s_set_up_globals,gml_Script_s_set_up_temp_variables,gml_GlobalScript_slog,gml_Script_slog,gml_Script_slog2,gml_Script_slogf,gml_Script_slog_map,gml_Script_slog_struct, gml_GlobalScript_s_sound,gml_Script_s_sound,gml_Script_s_sound_brass_setup,gml_Script_s_sound_brass_loop,gml_Script_s_stop_brass_loop,gml_Script_s_stop_brass_loop_finalize,gml_GlobalScript_s_make_random_colour,gml_Script_s_make_random_colour,gml_GlobalScript_s_lines_intersect,gml_Script_s_lines_intersect,gml_GlobalScript_s_log_player,gml_Script_s_log_player,gml_GlobalScript_s_get_random_college_name,gml_Script_s_get_random_college_name,gml_GlobalScript_s_get_random_charity,gml_Script_s_get_random_charity, gml_GlobalScript_s_get_aim_direction,gml_Script_s_get_aim_direction,gml_GlobalScript_s_get_random_first_name,gml_Script_s_get_random_first_name,gml_GlobalScript_s_get_random_last_name,gml_Script_s_get_random_last_name,gml_GlobalScript_s_format_hex_color,gml_Script_s_format_hex_color,gml_GlobalScript_s_color_to_hex,gml_Script_s_color_to_hex,gml_GlobalScript_s_gui_helpers,gml_Script_s_create_label,gml_Script_s_is_new_shadow,gml_GlobalScript_btn_click_SeasonReviewBack,gml_Script____struct___201_btn_click_SeasonReviewBack_gml_GlobalScript_btn_click_SeasonReviewBack, gml_Script_btn_click_SeasonReviewBack,gml_GlobalScript_s_dec_to_hex,gml_Script_s_dec_to_hex,gml_GlobalScript_s_roman_numerals,gml_Script_s_roman_numerals,gml_GlobalScript_s_get_watermark_color,gml_Script_s_get_watermark_color,gml_GlobalScript_s_generate_uid,gml_Script_s_generate_uid,gml_GlobalScript_gmcallback_poki_loadbar,gml_Script_gmcallback_poki_loadbar,gml_GlobalScript_poki_pause,gml_Script_poki_pause,gml_GlobalScript_s_set_up_qb_pmap,gml_Script_s_set_up_qb_pmap,gml_GlobalScript_poki_resume, gml_Script_poki_resume,gml_GlobalScript_scale_canvas,gml_Script_scale_canvas,gml_GlobalScript_s_update_camera,gml_Script_s_update_camera,gml_GlobalScript__poki_gameplay_start,gml_Script__poki_gameplay_start,gml_GlobalScript__poki_gameplay_stop,gml_Script__poki_gameplay_stop,gml_GlobalScript_s_find_gamepad,gml_Script_s_find_gamepad,gml_Script_s_gamepad_is_fingerprint_sensor,gml_GlobalScript_s_update_gamepad,gml_Script_s_update_gamepad,gml_Script_s_gamepad_async,gml_Script_s_gamepad_activity,gml_Script_s_clear_last_selected_history, gml_Script_s_overwrite_last_selected,gml_Script____struct___202_s_save_last_selected_gml_GlobalScript_s_update_gamepad,gml_Script_s_save_last_selected,gml_Script_s_get_last_selected,gml_Script____struct___203_s_reset_gamepad_gml_GlobalScript_s_update_gamepad,gml_Script_s_reset_gamepad,gml_Script_s_update_gamepad_data,gml_Script_s_update_ui_selected,gml_Script____struct___204_s_multiplayer_init_gml_GlobalScript_s_update_gamepad,gml_Script_s_multiplayer_init,gml_Script_s_is_multicon_wanted,gml_Script_s_toggle_multicon_wanted, gml_Script_s_multicon_reset,gml_Script_s_multicon_init,gml_Script_s_refresh_gamepads,gml_Script_s_gamepad_lv_dir,gml_Script_s_set_multicon_active,gml_Script_s_set_multicon_turn,gml_Script_s_multicon_save_turn,gml_Script_s_multicon_restore_turn,gml_Script_s_is_turn,gml_Script_s_is_multicon,gml_Script_s_get_multicon_current_pad,gml_Script_s_set_multicon_touch,gml_Script_s_is_touch_allowed,gml_Script_s_is_ui_selected,gml_Script_s_ui_selected_color,gml_GlobalScript_s_find_default_button,gml_Script_s_find_default_button, gml_GlobalScript_s_get_watermarked_stats,gml_Script_s_get_watermarked_stats,gml_GlobalScript_s_get_qb_energy,gml_Script_s_get_qb_energy,gml_GlobalScript_btn_click_external_links,gml_Script_btn_click_BuyMerch,gml_Script_btn_click_MusicBy,gml_Script_btn_click_YouTube,gml_Script_btn_click_RecordBook,gml_Script_btn_click_Leagues,gml_Script_btn_click_ad_NSS,gml_Script_btn_click_ad_NSM,gml_Script_btn_click_ad_RG,gml_Script_btn_click_ad_NSB,gml_Script_btn_click_ad_RB,gml_Script_btn_click_ad_GP,gml_Script_btn_click_NewStarGames, gml_GlobalScript_s_do_prematch_dilemma_qb,gml_Script_s_do_prematch_dilemma_qb,gml_GlobalScript_s_sound_audience_catch,gml_Script_s_sound_audience_catch,gml_GlobalScript_s_college_overtime,gml_Script_s_college_overtime_start,gml_Script_s_college_overtime_handle_play_end,gml_Script_s_college_overtime_setup_new_possesion,gml_Script_s_college_overtime_offer_kick,gml_Script_s_college_overtime_next_round,gml_Script_s_college_overtime_possession_count,gml_Script_s_college_overtime_one_team_won,gml_Script_s_college_overtime_other_teams_turn, gml_Script_s_college_overtime_trigger_point_conversion,gml_Script_s_college_overtime_flip_possession,gml_Script_s_college_overtime_score_hack,gml_Script_s_co_poss_str,gml_Script_btn_click_toggle_college_overtime_debug,gml_Script_s_refresh_btn_overtime_text,gml_GlobalScript_s_player_gpa,gml_Script_s_gpa_from_percent_grade,gml_Script_s_gpa_string,gml_Script_s_gpa_string_direct,gml_Script_s_decay_percent_grade,gml_Script_s_debug_recover_percent_grade,gml_Script_s_post_match_gpa_refresh,gml_Script_s_add_percent_grade, gml_Script_s_get_decay,gml_Script_s_get_decay_info,gml_Script_s_refresh_suspended,gml_Script_s_get_percent_grade_squad,gml_Script_btn_click_Boost_GPA,gml_Script_btn_response_boost_gpa,gml_Script_s_my_team_academics,gml_Script_s_player_grade_suspend,gml_Script_s_player_grade_suspend_from_age,gml_Script_s_player_grade_lift_suspension,gml_Script_s_gpa_step_from_percent_grade,gml_Script_s_percent_grade_from_gpa_step_UPPER,gml_Script_s_player_gpa_color,gml_Script_s_player_gpa_colors_info,gml_GlobalScript_s_canvas_fullscreen, gml_Script_s_canvas_fullscreen,gml_GlobalScript_s_startup,gml_Script_s_startup,gml_Script_s_startup_welcome_msg,gml_Script_s_startup_set_master_variables,gml_Script_s_startup_handle_saved_game,gml_Script_s_startup_college_mode,gml_Script_s_startup_browser,gml_GlobalScript_s_player_party,gml_Script_s_update_party_meter,gml_Script_s_get_party_info,gml_Script_s_add_to_party_meter,gml_Script_s_clear_party_meter,gml_Script_s_team_halve_all_party_meters,gml_GlobalScript_btn_click_LeagueMode,gml_Script_btn_click_LeagueMode, gml_GlobalScript_pause_scripts,gml_Script_s_pause_toggle,gml_Script_s_pause_is_available,gml_Script_s_pause_step,gml_Script_s_is_paused_or_just_unpaused,gml_Script_s_draw_pause,gml_Script_s_pause_btn_init,gml_Script_s_pause_btn_step,gml_Script_s_pause_btn_draw_gui,gml_Script_s_pause_btn_recenter,gml_Script_s_pause_options_init,gml_Script_s_pause_options_recenter,gml_Script_s_pause_options_dismiss,gml_Script_s_pause_options_draw_gui,gml_Script_s_pause_options_layer,gml_Script_s_pause_options_add_button, gml_Script_s_pause_options_add_quit,gml_Script_s_pause_options_update_buttons,gml_Script_s_pause_options_button_action,gml_Script_s_pause_options_quit_game,gml_Script_btn_response_quit_exhibition_cancel,gml_Script_btn_response_quit_exhibition_confirm,gml_GlobalScript_s_draw_scoreboard_qb_training,gml_Script_s_draw_scoreboard_qb_training,gml_GlobalScript_s_update_manual_gestures,gml_Script_s_update_manual_gestures,gml_GlobalScript_s_obj_controller_draw_begin,gml_Script_s_obj_controller_draw_begin, gml_Script_s_hof_retrobowl_wins_franchise_create_gml_Object_obj_hof_retrobowl_wins_Create_0,gml_Script_s_academic_gpa_limits_create_gml_Object_obj_hof_retrobowl_wins_Create_0,gml_Script_s_hof_retrobowl_wins_franchise_draw_gml_Object_obj_hof_retrobowl_wins_Draw_64,gml_Script_s_academic_gpa_limits_draw_gml_Object_obj_hof_retrobowl_wins_Draw_64,gml_Script_s_draw_history_line_gml_Object_obj_hof_history_Draw_64,gml_Script_s_draw_history_lines_college_gml_Object_obj_hof_history_Draw_64,gml_Script_s_records_conf_only_games_gml_Object_obj_hof_records_coach_Create_0, gml_Script_s_records_conf_only_pct_gml_Object_obj_hof_records_coach_Create_0,gml_Script____struct___205_gml_Object_obj_frontoffice_Create_0,gml_Script____struct___206_gml_Object_obj_home_Create_0];const kgml_Script_poki_init=100000;const kgml_Script_poki_commercial_break=100001;const kgml_Script_poki_rewarded_break=100002;const kgml_Script_poki_script_closure=100003;const kgml_Script_gmcallback_poki_closure=100004;const kgml_Script_poki_get_team=100005;const kgml_Script_poki_set_team=100006;const kgml_GlobalScript_s_update_shopping_buttons=100007; const kgml_Script_s_update_shopping_buttons=100008;const kgml_Script_btn_click_shopping_next=100009;const kgml_Script_btn_click_shopping_prev=100010;const kgml_Script_btn_shopping_purchase=100011;const kgml_Script_s_confirm_purchase=100012;const kgml_Script_s_count_shop_items_by_type=100013;const kgml_Script_s_degrade_shop_items=100014;const kgml_GlobalScript_s_college_sorting=100015;const kgml_Script_s_co_teams_data_sort_rank=100016;const kgml_Script_s_co_teams_data_sort_rank_season=100017;const kgml_Script_s_co_teams_data_sort_rank_quick=100018; const kgml_Script_s_co_teams_data_sort_rank_pos=100019;const kgml_Script_s_co_teams_data_sort_pct=100020;const kgml_Script_s_co_teams_data_sort_pct_quick=100021;const kgml_Script_s_co_teams_data_sort_conf_wins_losses=100022;const kgml_Script_s_co_teams_data_sort_wins_rank=100023;const kgml_Script____struct___0_s_create_team_data_array_gml_GlobalScript_s_college_sorting=100024;const kgml_Script_s_create_team_data_array=100025;const kgml_Script_s_update_team_data_rank_pos=100026;const kgml_Script_s_team_data_array_add_formatted_data=100027; const kgml_Script_s_co_teams_tiebreak=100028;const kgml_Script_s_co_teams_tiebreak_record_next_best_placed_division=100029;const kgml_GlobalScript_s_college_league=100030;const kgml_Script____struct___1_s_rm_league_co_init_gml_GlobalScript_s_college_league=100031;const kgml_Script____struct___2_s_rm_league_co_init_gml_GlobalScript_s_college_league=100032;const kgml_Script____struct___3_s_rm_league_co_init_gml_GlobalScript_s_college_league=100033;const kgml_Script____struct___4_s_rm_league_co_init_gml_GlobalScript_s_college_league=100034; const kgml_Script____struct___5_s_rm_league_co_init_gml_GlobalScript_s_college_league=100035;const kgml_Script____struct___6_s_rm_league_co_init_gml_GlobalScript_s_college_league=100036;const kgml_Script____struct___7_s_rm_league_co_init_gml_GlobalScript_s_college_league=100037;const kgml_Script____struct___8_s_rm_league_co_init_gml_GlobalScript_s_college_league=100038;const kgml_Script____struct___9_s_rm_league_co_init_gml_GlobalScript_s_college_league=100039;const kgml_Script____struct___10_s_rm_league_co_init_gml_GlobalScript_s_college_league=100040; const kgml_Script____struct___11_s_rm_league_co_init_gml_GlobalScript_s_college_league=100041;const kgml_Script____struct___12_s_rm_league_co_init_gml_GlobalScript_s_college_league=100042;const kgml_Script____struct___13_s_rm_league_co_init_gml_GlobalScript_s_college_league=100043;const kgml_Script____struct___14_s_rm_league_co_init_gml_GlobalScript_s_college_league=100044;const kgml_Script____struct___15_s_rm_league_co_init_gml_GlobalScript_s_college_league=100045;const kgml_Script____struct___16_s_rm_league_co_init_gml_GlobalScript_s_college_league=100046; const kgml_Script____struct___17_s_rm_league_co_init_gml_GlobalScript_s_college_league=100047;const kgml_Script____struct___18_s_rm_league_co_init_gml_GlobalScript_s_college_league=100048;const kgml_Script_s_rm_league_co_init=100049;const kgml_Script_s_btn_league_view=100050;const kgml_Script____struct___19_s_btn_league_mode_gml_GlobalScript_s_college_league=100051;const kgml_Script_s_btn_league_mode=100052;const kgml_Script____struct___20_s_btn_league_subdivision_gml_GlobalScript_s_college_league=100053; const kgml_Script_s_btn_league_subdivision=100054;const kgml_Script_s_btn_division_home_view=100055;const kgml_Script_s_btn_division_postmatch_view=100056;const kgml_Script____struct___21_s_btn_league_next_conference_gml_GlobalScript_s_college_league=100057;const kgml_Script_s_btn_league_next_conference=100058;const kgml_Script_anon_s_set_league_mode_btn_colour_gml_GlobalScript_s_college_league_5863_s_set_league_mode_btn_colour_gml_GlobalScript_s_college_league=100059;const kgml_Script_s_set_league_mode_btn_colour=100060; const kgml_Script_anon_s_set_league_tier_btn_colour_gml_GlobalScript_s_college_league_6029_s_set_league_tier_btn_colour_gml_GlobalScript_s_college_league=100061;const kgml_Script_s_set_league_tier_btn_colour=100062;const kgml_Script_s_set_var_if_missing=100063;const kgml_Script_s_league_get_btn_back_image=100064;const kgml_Script_s_league_refresh_subdivision=100065;const kgml_Script____struct___22_s_league_create_conference_buttons_gml_GlobalScript_s_college_league=100066;const kgml_Script_s_league_create_conference_buttons=100067; const kgml_Script____struct___23_s_league_btn_conference_gml_GlobalScript_s_college_league=100068;const kgml_Script_s_league_btn_conference=100069;const kgml_Script_s_league_create_conference_panels=100070;const kgml_Script____struct___24_s_league_create_conference_division_gml_GlobalScript_s_college_league=100071;const kgml_Script____struct___25_s_league_create_conference_division_gml_GlobalScript_s_college_league=100072;const kgml_Script_s_league_create_conference_division=100073;const kgml_Script____struct___26_s_league_create_ranking_panels_gml_GlobalScript_s_college_league=100074; const kgml_Script____struct___27_s_league_create_ranking_panels_gml_GlobalScript_s_college_league=100075;const kgml_Script_s_league_create_ranking_panels=100076;const kgml_Script_s_is_prev_rank_visible=100077;const kgml_Script____struct___28_s_league_create_schedule_panels_gml_GlobalScript_s_college_league=100078;const kgml_Script____struct___29_s_league_create_schedule_panels_gml_GlobalScript_s_college_league=100079;const kgml_Script____struct___30_s_league_create_schedule_panels_gml_GlobalScript_s_college_league=100080; const kgml_Script_s_league_create_schedule_panels=100081;const kgml_Script_s_co_schedule_init=100082;const kgml_Script_s_league_btn_week=100083;const kgml_Script_s_league_btn_page=100084;const kgml_Script_s_co_schedule_sort_order=100085;const kgml_Script_s_league_get_own_bracket_page=100086;const kgml_Script_s_co_schedule_refresh=100087;const kgml_Script_s_co_schedule_step=100088;const kgml_Script____struct___31_s_co_schedule_filter_format_gml_GlobalScript_s_college_league=100089;const kgml_Script_s_co_schedule_filter_format=100090; const kgml_Script____struct___32_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league=100091;const kgml_Script____struct___33_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league=100092;const kgml_Script____struct___34_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league=100093;const kgml_Script____struct___35_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league=100094;const kgml_Script____struct___36_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league=100095; const kgml_Script____struct___37_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league=100096;const kgml_Script____struct___38_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league=100097;const kgml_Script____struct___39_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league=100098;const kgml_Script____struct___40_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league=100099;const kgml_Script____struct___41_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league=100100; const kgml_Script____struct___42_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league=100101;const kgml_Script____struct___43_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league=100102;const kgml_Script_s_set_matchlist_bracket_coords=100103;const kgml_Script_s_get_bracket_map_entry=100104;const kgml_Script_s_co_schedule_draw_gui=100105;const kgml_Script_s_draw_bracket_name_box=100106;const kgml_GlobalScript_s_college_balance=100107;const kgml_Script_s_college_balance_create_new_roster=100108; const kgml_GlobalScript_s_count_simmed_games=100109;const kgml_Script_s_count_simmed_games=100110;const kgml_GlobalScript_season_tally_scripts=100111;const kgml_Script____struct___44_s_obj_season_tally_create_gml_GlobalScript_season_tally_scripts=100112;const kgml_Script____struct___45_s_obj_season_tally_create_gml_GlobalScript_season_tally_scripts=100113;const kgml_Script_s_obj_season_tally_create=100114;const kgml_Script_s_maps_array_sort_week=100115;const kgml_Script_s_get_human_opponent_sla_prefix=100116; const kgml_Script_s_obj_season_tally_step=100117;const kgml_Script_s_obj_season_tally_draw_gui=100118;const kgml_Script_s_obj_season_tally_draw_gui_begin=100119;const kgml_Script_s_draw_season_tally_header=100120;const kgml_GlobalScript_s_choose_mode_hc=100121;const kgml_Script_s_choose_mode_HC=100122;const kgml_Script_s_choose_mode_QB=100123;const kgml_Script_s_choose_mode_CO_loading=100124;const kgml_Script_s_choose_mode_CO=100125;const kgml_Script_s_setup_for_mode_CO=100126;const kgml_Script_s_update_details_screen=100127; const kgml_GlobalScript_s_benched=100128;const kgml_Script_s_player_benched=100129;const kgml_GlobalScript_s_cpu_is_kicking=100130;const kgml_Script_s_cpu_is_kicking_off=100131;const kgml_Script_s_is_kickoff=100132;const kgml_GlobalScript_s_college_edit_competition=100133;const kgml_Script____struct___46_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition=100134;const kgml_Script____struct___47_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition=100135;const kgml_Script____struct___48_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition=100136; const kgml_Script____struct___49_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition=100137;const kgml_Script_s_rm_edit_competition_init=100138;const kgml_Script_s_btn_edit_comp_confirm=100139;const kgml_Script_s_btn_edit_comp_cancel=100140;const kgml_Script____struct___50_s_editor_create_competition_fields_gml_GlobalScript_s_college_edit_competition=100141;const kgml_Script_s_editor_create_competition_fields=100142;const kgml_Script____struct___51_s_editor_create_text_field_gml_GlobalScript_s_college_edit_competition=100143; const kgml_Script_s_editor_create_text_field=100144;const kgml_Script____struct___52_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition=100145;const kgml_Script____struct___53_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition=100146;const kgml_Script____struct___54_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition=100147;const kgml_Script____struct___55_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition=100148; const kgml_Script_s_editor_create_partial_text_field=100149;const kgml_Script____struct___56_s_editor_create_location_field_gml_GlobalScript_s_college_edit_competition=100150;const kgml_Script____struct___57_s_editor_create_location_field_gml_GlobalScript_s_college_edit_competition=100151;const kgml_Script____struct___58_s_editor_create_location_field_gml_GlobalScript_s_college_edit_competition=100152;const kgml_Script_s_editor_create_location_field=100153;const kgml_Script____struct___59_s_editor_create_field_label_gml_GlobalScript_s_college_edit_competition=100154; const kgml_Script_s_editor_create_field_label=100155;const kgml_Script_s_ui_field_label_draw_gui=100156;const kgml_Script_s_editor_field_validate=100157;const kgml_Script_s_editor_location_is_neutral=100158;const kgml_Script_s_editor_location_toggle_neutral_state=100159;const kgml_Script____struct___60_s_get_editor_mode_data_gml_GlobalScript_s_college_edit_competition=100160;const kgml_Script_s_get_editor_mode_data=100161;const kgml_GlobalScript_nx_scripts=100162;const kgml_Script_s_nx_init=100163;const kgml_Script_s_nx_commit=100164; const kgml_Script_s_nx_get_open_user=100165;const kgml_GlobalScript_s_get_player_body_type=100166;const kgml_Script_s_get_player_body_type=100167;const kgml_Script_s_spr_from_bt=100168;const kgml_Script_s_is_spr_bodytype=100169;const kgml_Script_s_get_team_body_type=100170;const kgml_GlobalScript_s_college_details=100171;const kgml_Script____struct___61_s_college_details_init_gml_GlobalScript_s_college_details=100172;const kgml_Script____struct___62_s_college_details_init_gml_GlobalScript_s_college_details=100173; const kgml_Script_s_college_details_init=100174;const kgml_Script____struct___63_s_reset_team_selections_gml_GlobalScript_s_college_details=100175;const kgml_Script_s_reset_team_selections=100176;const kgml_Script_anon_s_college_details_hide_gml_GlobalScript_s_college_details_2339_s_college_details_hide_gml_GlobalScript_s_college_details=100177;const kgml_Script_s_college_details_hide=100178;const kgml_Script_anon_s_college_details_center_gml_GlobalScript_s_college_details_2470_s_college_details_center_gml_GlobalScript_s_college_details=100179; const kgml_Script_s_college_details_center=100180;const kgml_Script____struct___64_s_college_details_bottom_panel_init_gml_GlobalScript_s_college_details=100181;const kgml_Script____struct___65_s_college_details_bottom_panel_init_gml_GlobalScript_s_college_details=100182;const kgml_Script____struct___66_s_college_details_bottom_panel_init_gml_GlobalScript_s_college_details=100183;const kgml_Script_s_college_details_bottom_panel_init=100184;const kgml_Script_s_college_details_bottom_panel_draw_gui=100185; const kgml_Script____struct___67_s_college_details_bottom_panel_create_buttons_gml_GlobalScript_s_college_details=100186;const kgml_Script____struct___68_s_college_details_bottom_panel_create_buttons_gml_GlobalScript_s_college_details=100187;const kgml_Script_s_college_details_bottom_panel_create_buttons=100188;const kgml_Script_s_college_details_favorite_btn_action=100189;const kgml_Script_s_college_details_starting_btn_action=100190;const kgml_Script_s_college_details_difficulty_btn_action=100191;const kgml_Script_s_get_college_details_favorite_label_text=100192; const kgml_Script_s_get_college_details_starting_label_text=100193;const kgml_Script_s_get_college_details_difficulty_label_text=100194;const kgml_Script_s_college_details_btn_draw=100195;const kgml_Script_s_create_starting_teams_list=100196;const kgml_Script_s_add_starting_team=100197;const kgml_Script_s_is_starting_team_selectable=100198;const kgml_Script_s_count_starting_team_selectable_conference=100199;const kgml_Script_s_get_random_non_rival_team=100200;const kgml_GlobalScript_s_recruitment_credits=100201; const kgml_Script_recruitment_credits_cap_total=100202;const kgml_Script_s_validate_recruitment_credits_cap=100203;const kgml_Script_can_fit_recruitment_credits=100204;const kgml_Script_recruitment_credits_space=100205;const kgml_Script_recruitment_credits_add=100206;const kgml_Script_recruitment_credits_toggle_roster_size=100207;const kgml_Script_recruitment_credits_button_click_boost=100208;const kgml_Script_btn_response_boost_recruitment_credits=100209;const kgml_GlobalScript_qb_contract_scripts=100210; const kgml_Script_s_qb_mode_set_up_contract_screen=100211;const kgml_Script____struct___69_s_qb_mode_new_contract_gml_GlobalScript_qb_contract_scripts=100212;const kgml_Script_s_qb_mode_new_contract=100213;const kgml_Script_btn_contract_negotiate=100214;const kgml_Script_btn_contract_salary_minus=100215;const kgml_Script_btn_contract_salary_plus=100216;const kgml_Script_btn_contract_tdbonus_minus=100217;const kgml_Script_btn_contract_tdbonus_plus=100218;const kgml_Script_btn_contract_length_minus=100219; const kgml_Script_btn_contract_length_plus=100220;const kgml_Script_btn_negotiate_higher=100221;const kgml_Script_btn_negotiate_lower=100222;const kgml_Script_s_check_negotiate=100223;const kgml_Script_s_check_hilo_buttons=100224;const kgml_Script_s_accept_contract=100225;const kgml_Script_s_reject_contract=100226;const kgml_GlobalScript_s_draw_player_image=100227;const kgml_Script_s_draw_player_image=100228;const kgml_GlobalScript_s_college_gui_helpers=100229;const kgml_Script_buttons_college_custom=100230; const kgml_Script_draw_custom_increase_wallet=100231;const kgml_Script_draw_custom_recruitment_credits_display=100232;const kgml_Script_rm_player_profile_show_noncollege_elements=100233;const kgml_Script_rm_player_profile_show_more=100234;const kgml_Script____struct___70_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers=100235;const kgml_Script____struct___71_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers=100236;const kgml_Script____struct___72_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers=100237; const kgml_Script____struct___73_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers=100238;const kgml_Script____struct___74_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers=100239;const kgml_Script____struct___75_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers=100240;const kgml_Script____struct___76_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers=100241;const kgml_Script____struct___78_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers=100242; const kgml_Script____struct___79_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers=100243;const kgml_Script_rm_player_profile_college_create_p1=100244;const kgml_Script____struct___80_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers=100245;const kgml_Script____struct___81_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers=100246;const kgml_Script____struct___82_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers=100247; const kgml_Script____struct___83_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers=100248;const kgml_Script____struct___84_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers=100249;const kgml_Script____struct___85_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers=100250;const kgml_Script____struct___86_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers=100251;const kgml_Script____struct___87_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers=100252; const kgml_Script____struct___88_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers=100253;const kgml_Script_rm_player_profile_college_create_p2=100254;const kgml_Script_rm_player_profile_college_create=100255;const kgml_Script_btn_rm_player_profile_college_showP1=100256;const kgml_Script_btn_rm_player_profile_college_showP2=100257;const kgml_Script_rm_player_profile_college_step=100258;const kgml_Script_btn_click_Profile_College_Cut=100259;const kgml_Script_btn_click_Profile_College_Cut_During_Admission_Draft=100260; const kgml_Script_btn_response_cut_player_for_RC_yes=100261;const kgml_Script_s_get_college_player_cut_RC=100262;const kgml_Script_btn_rm_stats_player_showAwards=100263;const kgml_Script_btn_rm_stats_player_showEpilogue=100264;const kgml_Script____struct___89_stats_player_button_entry_gml_GlobalScript_s_college_gui_helpers=100265;const kgml_Script_stats_player_button_entry=100266;const kgml_Script____struct___90_rm_stats_player_configure_college_gml_GlobalScript_s_college_gui_helpers=100267;const kgml_Script____struct___91_rm_stats_player_configure_college_gml_GlobalScript_s_college_gui_helpers=100268; const kgml_Script_rm_stats_player_configure_college=100269;const kgml_Script_s_change_panel_division_mode=100270;const kgml_Script_s_panel_skip_independents_cnf_view=100271;const kgml_Script_s_panel_scroll_init=100272;const kgml_Script_s_panel_scroll_step=100273;const kgml_Script_s_panel_scroll_set_height=100274;const kgml_Script_s_panel_scroll_global_flick=100275;const kgml_Script_s_panel_scroll_draw_gui=100276;const kgml_Script_s_panel_scroll_is_inside=100277;const kgml_GlobalScript_s_load_profile_uni=100278; const kgml_Script_s_load_profile_uni=100279;const kgml_GlobalScript_s_get_lifestyle=100280;const kgml_Script_s_get_lifestyle=100281;const kgml_GlobalScript_btn_meet_teammate=100282;const kgml_Script_btn_meet_teammate=100283;const kgml_Script_s_confirm_teammate_meeting=100284;const kgml_GlobalScript_s_check_qb_mode_benched=100285;const kgml_Script_s_qb_mode_benched_status=100286;const kgml_GlobalScript_s_college_ranking=100287;const kgml_Script_s_co_set_starting_rank=100288;const kgml_Script_s_co_set_ranking_points=100289; const kgml_Script_s_co_reset_teams_rank=100290;const kgml_Script_s_co_update_fix_rank=100291;const kgml_Script_s_get_prestige=100292;const kgml_Script_s_update_ranking_positions=100293;const kgml_Script_s_get_ranking_pos_data=100294;const kgml_Script_s_get_ranking_pos_data_prev=100295;const kgml_Script____struct___92_s_parse_ranking_pos_gml_GlobalScript_s_college_ranking=100296;const kgml_Script_s_parse_ranking_pos=100297;const kgml_Script_s_encode_ranking_pos=100298;const kgml_Script_s_save_ranking_pos_end_of_season=100299; const kgml_Script_s_get_ranking_pos_last_season=100300;const kgml_Script_s_is_preseason_for_ranking=100301;const kgml_Script_s_update_rank_after_adminssion_draft=100302;const kgml_GlobalScript_font_scripts=100303;const kgml_Script_s_data_path=100304;const kgml_Script_s_fonts_init=100305;const kgml_Script_s_erase_text_background=100306;const kgml_Script_draw_hd_text=100307;const kgml_Script_draw_hd_text_color=100308;const kgml_Script_draw_hd_text_ext=100309;const kgml_Script_draw_hd_text_ext_color=100310;const kgml_Script_draw_hd_text_transformed=100311; const kgml_Script_draw_hd_text_transformed_color=100312;const kgml_Script_draw_hd_text_ext_transformed=100313;const kgml_Script_string_hd_width=100314;const kgml_Script_string_hd_width_ext=100315;const kgml_Script_string_hd_height=100316;const kgml_Script_string_hd_height_ext=100317;const kgml_GlobalScript_btn_click_Details_Back=100318;const kgml_Script_btn_click_Details_Back=100319;const kgml_GlobalScript_s_replay_controls=100320;const kgml_Script_s_replay_controls=100321;const kgml_GlobalScript_nrg=100322; const kgml_Script_btn_click_nrg_buy=100323;const kgml_Script_btn_click_nrg_drink=100324;const kgml_Script_s_drink_nrg=100325;const kgml_Script_s_get_condition_colour=100326;const kgml_Script_s_get_condition_icon=100327;const kgml_GlobalScript_s_college_draft=100328;const kgml_Script_s_college_draft_ranking=100329;const kgml_Script_s_college_draft_team_ranking=100330;const kgml_Script_s_college_draft_team_pick=100331;const kgml_Script_s_calculate_college_draft=100332;const kgml_Script_s_destroy_college_draft=100333; const kgml_Script____struct___93_s_display_college_draft_debug_gml_GlobalScript_s_college_draft=100334;const kgml_Script_s_display_college_draft_debug=100335;const kgml_Script_s_message_college_draft_pick=100336;const kgml_Script_s_college_draft_check_achievements=100337;const kgml_Script_s_message_college_draft_notpick=100338;const kgml_Script_s_message_college_draft_nottrydraft_y3=100339;const kgml_Script_s_message_college_draft_early_y3=100340;const kgml_Script_s_message_college_draft_pick_continue=100341; const kgml_Script_s_message_college_earyly_yes=100342;const kgml_Script_s_message_college_earyly_no=100343;const kgml_Script_s_message_college_earyly_info=100344;const kgml_Script_s_college_draft_earyly_info_return=100345;const kgml_Script_s_college_draft_refresh_current_attitude=100346;const kgml_Script_s_doing_college_draft=100347;const kgml_Script_s_check_college_draft_start=100348;const kgml_Script_s_start_college_draft=100349;const kgml_Script_s_draft_set_epilogue=100350;const kgml_Script_s_end_college_draft=100351; const kgml_Script_s_end_college_draft_late_msg_clear=100352;const kgml_Script____struct___94_s_end_college_draft_late_gml_GlobalScript_s_college_draft=100353;const kgml_Script_s_end_college_draft_late=100354;const kgml_Script_s_college_draft_new_season_loading=100355;const kgml_Script_s_college_draft_new_season=100356;const kgml_Script_btn_click_college_draft_next=100357;const kgml_Script_s_college_draft_refresh=100358;const kgml_Script_btn_click_college_draft_skip=100359;const kgml_Script_college_draft_do_skip=100360; const kgml_Script_s_college_draft_player_pick=100361;const kgml_Script____struct___95_s_display_college_draft_roster_gml_GlobalScript_s_college_draft=100362;const kgml_Script____struct___96_s_display_college_draft_roster_gml_GlobalScript_s_college_draft=100363;const kgml_Script____struct___97_s_display_college_draft_roster_gml_GlobalScript_s_college_draft=100364;const kgml_Script____struct___98_s_display_college_draft_roster_gml_GlobalScript_s_college_draft=100365;const kgml_Script____struct___99_s_display_college_draft_roster_gml_GlobalScript_s_college_draft=100366; const kgml_Script_s_display_college_draft_roster=100367;const kgml_Script____struct___100_s_card_layout_pos_gml_GlobalScript_s_college_draft=100368;const kgml_Script_s_card_layout_pos=100369;const kgml_Script_s_load_pro_teams=100370;const kgml_GlobalScript_s_check_ingame_control_change=100371;const kgml_Script_s_check_ingame_control_change=100372;const kgml_GlobalScript_s_remove_player=100373;const kgml_Script_s_remove_player=100374;const kgml_GlobalScript_btn_click_BengRams=100375;const kgml_Script_btn_click_BengRams=100376; const kgml_Script_s_update_btn_bengrams=100377;const kgml_Script_s_set_ui_colours=100378;const kgml_GlobalScript_btn_click_OptionsAutoRun=100379;const kgml_Script_btn_click_OptionsAutoRun=100380;const kgml_GlobalScript_title_scripts=100381;const kgml_Script_s_title_goto=100382;const kgml_Script_s_title_create=100383;const kgml_Script_s_title_exit=100384;const kgml_Script_s_title_check_any_button=100385;const kgml_Script_s_title_create_image=100386;const kgml_Script_s_title_step_image=100387;const kgml_Script_s_title_draw_gui_image=100388; const kgml_Script_f_almost_same=100389;const kgml_Script_s_title_create_video=100390;const kgml_Script_s_title_async_social_video=100391;const kgml_Script_s_title_do_video_end=100392;const kgml_Script_s_title_step_video=100393;const kgml_Script_s_title_draw_gui_video=100394;const kgml_Script_s_title_create_fadeinout_splash=100395;const kgml_Script_s_title_step_fadeinout_splash=100396;const kgml_Script_s_title_draw_fadeinout_splash=100397;const kgml_GlobalScript_s_str_helpers=100398;const kgml_Script_s_str_int_to_ordinal=100399; const kgml_GlobalScript_s_college_competitions_seeding=100400;const kgml_Script_s_get_team_from_tag=100401;const kgml_Script_s_get_winner_by_cid=100402;const kgml_Script_s_get_winner_by_mid=100403;const kgml_Script_s_get_co_conference_winner=100404;const kgml_Script_s_get_co_division_winner=100405;const kgml_Script_s_get_co_conference_best=100406;const kgml_Script_s_get_co_subdivision_best=100407;const kgml_Script_s_get_co_bowl_seed=100408;const kgml_Script_s_get_co_prestige_bowl_seed=100409;const kgml_Script_s_create_prestige_pool=100410; const kgml_Script_s_prestige_pool_sort_order_ranking=100411;const kgml_Script_s_prestige_pool_list=100412;const kgml_Script____struct___101_s_prestige_pool_add_gml_GlobalScript_s_college_competitions_seeding=100413;const kgml_Script_s_prestige_pool_add=100414;const kgml_Script_s_get_prestige_pool=100415;const kgml_Script_s_get_team_in_prestige_pool=100416;const kgml_Script_s_prestige_pool_force_one_per_conf=100417;const kgml_Script_s_prestige_pool_fill_per_rank=100418;const kgml_Script_s_get_bowl_seed_first_loop_pool=100419; const kgml_Script_s_get_bowl_seed_second_loop_pool=100420;const kgml_Script_s_get_bowl_seed_third_loop_pool=100421;const kgml_Script_s_get_first_team_data=100422;const kgml_Script____struct___102_s_get_competition_pool_gml_GlobalScript_s_college_competitions_seeding=100423;const kgml_Script_s_get_competition_pool=100424;const kgml_Script_s_competition_pool_team=100425;const kgml_Script_s_get_competition_winner=100426;const kgml_Script_s_competition_pool_fill_from_rankings=100427;const kgml_Script_s_competition_pool_exclude_teams=100428; const kgml_Script_s_competition_pool_add_team=100429;const kgml_Script_s_competition_pool_rankings_exclude=100430;const kgml_Script____struct___103_s_get_tagged_source_gml_GlobalScript_s_college_competitions_seeding=100431;const kgml_Script_s_get_tagged_source=100432;const kgml_Script_s_get_pool_position=100433;const kgml_Script_s_competitions_debug_printout=100434;const kgml_GlobalScript_s_get_achievement=100435;const kgml_GlobalScript_s_count_achievement=100436;const kgml_GlobalScript_s_get_achievement_percentage=100437; const kgml_GlobalScript_s_complete_achievement=100438;const kgml_GlobalScript_s_sort_retrobowl_list=100439;const kgml_Script_s_sort_retrobowl_list=100440;const kgml_GlobalScript_s_sort_retrobowl_history_list=100441;const kgml_Script_s_sort_retrobowl_history_list=100442;const kgml_GlobalScript_btn_click_EditAFC=100443;const kgml_Script_btn_click_EditAFC=100444;const kgml_GlobalScript_btn_click_EditNFC=100445;const kgml_Script_btn_click_EditNFC=100446;const kgml_GlobalScript_btn_click_EditTeam=100447;const kgml_Script_btn_click_EditTeam=100448; const kgml_GlobalScript_s_round_to_decimal=100449;const kgml_Script_s_round_to_decimal=100450;const kgml_GlobalScript_btn_click_TeamEditCancel=100451;const kgml_Script_btn_click_TeamEditCancel=100452;const kgml_GlobalScript_btn_click_TeamEditDone=100453;const kgml_Script_btn_click_TeamEditDone=100454;const kgml_GlobalScript_btn_click_TeamEditRestore=100455;const kgml_Script_btn_click_TeamEditRestore=100456;const kgml_GlobalScript_btn_click_InputHelmet=100457;const kgml_Script_btn_click_InputHelmet=100458; const kgml_GlobalScript_btn_click_InputLogo=100459;const kgml_Script_btn_click_InputLogo=100460;const kgml_GlobalScript_btn_click_InputShirt=100461;const kgml_Script_btn_click_InputShirt=100462;const kgml_GlobalScript_btn_click_InputSleeve=100463;const kgml_Script_btn_click_InputSleeve=100464;const kgml_GlobalScript_btn_click_InputPants=100465;const kgml_Script_btn_click_InputPants=100466;const kgml_GlobalScript_btn_click_InputStripe=100467;const kgml_Script_btn_click_InputStripe=100468;const kgml_GlobalScript_btn_click_InputSocks1=100469; const kgml_Script_btn_click_InputSocks1=100470;const kgml_GlobalScript_btn_click_InputSocks2=100471;const kgml_Script_btn_click_InputSocks2=100472;const kgml_GlobalScript_btn_click_InputEndzone=100473;const kgml_Script_btn_click_InputEndzone=100474;const kgml_GlobalScript_btn_click_EditHelmet=100475;const kgml_Script_btn_click_EditHelmet=100476;const kgml_GlobalScript_btn_click_EditLogo=100477;const kgml_Script_btn_click_EditLogo=100478;const kgml_GlobalScript_btn_click_EditShirt=100479;const kgml_Script_btn_click_EditShirt=100480; const kgml_GlobalScript_btn_click_EditSleeve=100481;const kgml_Script_btn_click_EditSleeve=100482;const kgml_GlobalScript_btn_click_EditPants=100483;const kgml_Script_btn_click_EditPants=100484;const kgml_GlobalScript_btn_click_EditStripe=100485;const kgml_Script_btn_click_EditStripe=100486;const kgml_GlobalScript_btn_click_EditSocks1=100487;const kgml_Script_btn_click_EditSocks1=100488;const kgml_GlobalScript_btn_click_EditSocks2=100489;const kgml_Script_btn_click_EditSocks2=100490;const kgml_GlobalScript_btn_click_EditEndzone=100491; const kgml_Script_btn_click_EditEndzone=100492;const kgml_GlobalScript_btn_click_Kit1=100493;const kgml_Script_btn_click_Kit1=100494;const kgml_GlobalScript_btn_click_Kit2=100495;const kgml_Script_btn_click_Kit2=100496;const kgml_GlobalScript_btn_click_Kit3=100497;const kgml_Script_btn_click_Kit3=100498;const kgml_GlobalScript_btn_click_Kit4=100499;const kgml_Script_btn_click_Kit4=100500;const kgml_GlobalScript_btn_click_RestoreAllTeams=100501;const kgml_Script_btn_click_RestoreAllTeams=100502;const kgml_GlobalScript_btn_click_KR_Select=100503; const kgml_Script_btn_click_KR_Select=100504;const kgml_GlobalScript_btn_click_EditCopySlotA=100505;const kgml_Script_btn_click_EditCopySlotA=100506;const kgml_GlobalScript_s_sound_audience_inc=100507;const kgml_Script_s_sound_audience_inc=100508;const kgml_GlobalScript_btn_click_EditCopySlotB=100509;const kgml_Script_btn_click_EditCopySlotB=100510;const kgml_GlobalScript_btn_click_EditCopySlotC=100511;const kgml_Script_btn_click_EditCopySlotC=100512;const kgml_GlobalScript_btn_click_EditCopySlotD=100513; const kgml_Script_btn_click_EditCopySlotD=100514;const kgml_GlobalScript_btn_click_EditCopySlotE=100515;const kgml_Script_btn_click_EditCopySlotE=100516;const kgml_GlobalScript_btn_click_TeamEditMore=100517;const kgml_Script_btn_click_TeamEditMore=100518;const kgml_GlobalScript_btn_click_TeamEditMoreDone=100519;const kgml_Script_btn_click_TeamEditMoreDone=100520;const kgml_GlobalScript_btn_click_FacilityStadium=100521;const kgml_Script_btn_click_FacilityStadium=100522;const kgml_GlobalScript_btn_click_FacilityTraining=100523; const kgml_Script_btn_click_FacilityTraining=100524;const kgml_GlobalScript_btn_click_FacilityStaff=100525;const kgml_Script_btn_click_FacilityStaff=100526;const kgml_GlobalScript_btn_click_HOF_players=100527;const kgml_Script_btn_click_HOF_players=100528;const kgml_GlobalScript_btn_click_HOF_player_records=100529;const kgml_Script_btn_click_HOF_player_records=100530;const kgml_GlobalScript_btn_click_HOF_Select=100531;const kgml_Script_btn_click_HOF_Select=100532;const kgml_GlobalScript_btn_click_HofNext=100533; const kgml_Script_btn_click_HofNext=100534;const kgml_GlobalScript_btn_click_HofPrev=100535;const kgml_Script_btn_click_HofPrev=100536;const kgml_GlobalScript_btn_click_HOF_Coach=100537;const kgml_Script_btn_click_HOF_Coach=100538;const kgml_GlobalScript_btn_click_Records_Reset=100539;const kgml_Script_btn_click_Records_Reset=100540;const kgml_GlobalScript_btn_click_League_Back=100541;const kgml_Script_btn_click_League_Back=100542;const kgml_GlobalScript_btn_click_LeaguePanel=100543;const kgml_Script_btn_click_LeaguePanel=100544; const kgml_GlobalScript_btn_click_LeagueNFC=100545;const kgml_Script_btn_click_LeagueNFC=100546;const kgml_GlobalScript_btn_click_LeagueAFC=100547;const kgml_Script_btn_click_LeagueAFC=100548;const kgml_GlobalScript_keyboard_scripts=100549;const kgml_Script_s_keyboard_custom_enabled=100550;const kgml_Script____struct___104_s_keyboard_custom_init_gml_GlobalScript_keyboard_scripts=100551;const kgml_Script_s_keyboard_custom_init=100552;const kgml_Script_s_keyboard_custom_show=100553;const kgml_Script_s_keyboard_custom_hide=100554; const kgml_Script_s_keyboard_custom_layer=100555;const kgml_Script_s_keyboard_custom_create=100556;const kgml_Script_s_keyboard_custom_destroy=100557;const kgml_Script_s_keyboard_custom_create_button=100558;const kgml_Script_s_custkb_base_draw_gui=100559;const kgml_Script_s_custkb_base_step=100560;const kgml_Script_s_custkb_confirm=100561;const kgml_Script_s_custkb_delete=100562;const kgml_Script_s_custkb_shift_toggle=100563;const kgml_Script_s_custkb_add_text=100564;const kgml_Script_s_custkb_key_init=100565; const kgml_Script_s_custkb_key_draw_gui=100566;const kgml_Script_s_custkb_key_step=100567;const kgml_Script_s_custkb_key_tap=100568;const kgml_GlobalScript_s_college_tools=100569;const kgml_Script_s_college_set_up_globals=100570;const kgml_Script_s_college_age_index=100571;const kgml_Script_s_college_age_label=100572;const kgml_Script_s_college_age_simple=100573;const kgml_Script_s_college_age_simple_other=100574;const kgml_Script_s_college_age_simple_short=100575;const kgml_Script_s_college_shorter_season=100576; const kgml_Script_s_college_academics_type=100577;const kgml_Script_s_college_correct_new_player=100578;const kgml_Script_s_get_random_hobby=100579;const kgml_Script_s_get_hobby_name=100580;const kgml_Script_s_get_hobby_from_uid=100581;const kgml_Script_s_is_player_hobby_fraternity=100582;const kgml_Script_s_get_random_study_subject=100583;const kgml_Script_s_get_study_subject_from_uid=100584;const kgml_Script_s_get_study_subject_name_from_uid=100585;const kgml_Script_s_get_minor_name=100586;const kgml_Script_s_get_major_name=100587; const kgml_Script_s_get_study_info=100588;const kgml_Script_s_get_random_trait=100589;const kgml_Script_s_get_trait_name=100590;const kgml_Script_s_get_trait_from_uid=100591;const kgml_Script_s_get_random_hometown=100592;const kgml_Script_s_get_hometown_name=100593;const kgml_Script_s_get_only_hometown_name=100594;const kgml_Script_s_get_only_state_name=100595;const kgml_Script_s_get_hometown_from_uid=100596;const kgml_Script_s_pick_rand_epilogue_uid=100597;const kgml_Script_s_get_epilogue_name=100598;const kgml_Script_s_epilogue_tests=100599; const kgml_Script_s_pick_epilogue_story=100600;const kgml_Script_s_epilogue_story_to_str=100601;const kgml_Script_s_add_cv_entry_from_key=100602;const kgml_Script_s_add_cv_entry_direct=100603;const kgml_Script_s_get_random_cv_entry=100604;const kgml_Script_s_extract_cv_entry_from_pool=100605;const kgml_Script_s_set_cv_list_from_player=100606;const kgml_Script_s_add_cv_list_entry=100607;const kgml_Script_split_into_chunks=100608;const kgml_Script_btn_response_player_meeting_academic_coaching=100609;const kgml_Script_s_get_meeting_cost_academic_coaching=100610; const kgml_Script_s_is_co_mode=100611;const kgml_Script_s_is_co_postseason=100612;const kgml_Script_s_is_co_actual_postseason=100613;const kgml_Script_s_get_postseason_chunk=100614;const kgml_Script_s_is_earlier_than=100615;const kgml_Script_s_get_skip_to_week=100616;const kgml_Script_s_is_co_team=100617;const kgml_Script_s_get_conference_list=100618;const kgml_Script_s_get_team_list_by_tier=100619;const kgml_Script_s_get_team_list=100620;const kgml_Script_s_count_joboffers_conference=100621;const kgml_Script_s_co_get_year=100622; const kgml_Script_s_get_my_conference_uid=100623;const kgml_Script_s_get_my_conference_data=100624;const kgml_Script_s_get_conference_data=100625;const kgml_Script_s_get_my_division=100626;const kgml_Script_s_get_subdivision=100627;const kgml_Script_s_get_team_pct_cnf=100628;const kgml_Script_s_is_independent_team=100629;const kgml_Script_s_is_independent_conference_id=100630;const kgml_Script_s_is_independent_conference=100631;const kgml_Script_s_is_co_bowl_week=100632;const kgml_Script_s_is_co_bowl_fix=100633; const kgml_Script_s_is_co_bowl_comp=100634;const kgml_Script____struct___105_s_get_object_data_gml_GlobalScript_s_college_tools=100635;const kgml_Script_s_get_object_data=100636;const kgml_Script_s_get_map=100637;const kgml_Script_s_get_map_real=100638;const kgml_Script_s_map_swap=100639;const kgml_Script_s_get_save_slot=100640;const kgml_Script_s_get_week_name=100641;const kgml_Script_s_get_my_conference_division_string=100642;const kgml_Script_s_get_fix_competition_string=100643;const kgml_Script_s_get_competition_string=100644; const kgml_Script_s_get_fix_location_string=100645;const kgml_Script_s_get_my_subdivision_string=100646;const kgml_Script_s_get_subdiv_name=100647;const kgml_Script_s_joboffers_string=100648;const kgml_Script_s_get_pct_string=100649;const kgml_Script_s_get_comp_level_str=100650;const kgml_Script_s_get_comp_level_str_plain=100651;const kgml_Script_s_get_difficulty_str=100652;const kgml_Script_s_is_ps_chunk_filled=100653;const kgml_Script_s_is_week_played=100654;const kgml_Script_s_is_human_in_week=100655;const kgml_Script_s_is_human_fix=100656; const kgml_Script_s_get_next_college_human_fixture=100657;const kgml_Script_s_update_week_done=100658;const kgml_Script_s_is_week_done=100659;const kgml_Script_s_is_fix_played=100660;const kgml_Script_s_is_fix_filled=100661;const kgml_Script_s_is_fix_on_neutral_ground=100662;const kgml_Script_s_season_competitions_done=100663;const kgml_Script_s_get_fix_away_team_id=100664;const kgml_Script_s_get_fix_home_team_id=100665;const kgml_Script_s_get_fix_by_competition_id=100666;const kgml_Script_s_get_fix_by_match_id=100667; const kgml_Script_s_get_fix_winner_id=100668;const kgml_Script_s_get_fix_by_week_and_teams=100669;const kgml_GlobalScript_btn_click_LeagueSchedule=100670;const kgml_Script_btn_click_LeagueSchedule=100671;const kgml_GlobalScript_btn_click_SchedulePrev=100672;const kgml_Script_btn_click_SchedulePrev=100673;const kgml_GlobalScript_btn_click_ScheduleNext=100674;const kgml_Script_btn_click_ScheduleNext=100675;const kgml_GlobalScript_btn_click_PlayOffs=100676;const kgml_Script_btn_click_PlayOffs=100677;const kgml_GlobalScript_btn_click_PlayOffs_Back=100678; const kgml_Script_btn_click_PlayOffs_Back=100679;const kgml_GlobalScript_btn_click_PlayOffsPlay=100680;const kgml_Script_btn_click_PlayOffsPlay=100681;const kgml_GlobalScript_btn_click_PlayOffsSkip=100682;const kgml_Script_btn_click_PlayOffsSkip=100683;const kgml_GlobalScript_btn_click_Change_Favourite=100684;const kgml_Script____struct___106_btn_click_Change_Favourite_gml_GlobalScript_btn_click_Change_Favourite=100685;const kgml_Script_btn_click_Change_Favourite=100686;const kgml_GlobalScript_btn_click_ChooseAFC=100687; const kgml_Script_btn_click_ChooseAFC=100688;const kgml_GlobalScript_btn_click_ChooseNFC=100689;const kgml_Script_btn_click_ChooseNFC=100690;const kgml_GlobalScript_btn_click_ChooseTeam=100691;const kgml_Script_btn_click_ChooseTeam=100692;const kgml_Script_btn_click_ChooseTeamExhibition=100693;const kgml_Script_btn_click_ChoosePlayerExhibition=100694;const kgml_Script_btn_click_ChoosePlayerExhibition_confirm=100695;const kgml_Script_btn_click_ChoosePlayerExhibition_cancel=100696;const kgml_GlobalScript_btn_click_ChooseTeamNew=100697; const kgml_Script_btn_click_ChooseTeamNew=100698;const kgml_Script_btn_click_qb_mode_ChooseTeamNew=100699;const kgml_GlobalScript_btn_click_ChooseReject=100700;const kgml_Script_btn_click_ChooseReject_loading=100701;const kgml_Script_btn_click_ChooseReject=100702;const kgml_GlobalScript_btn_click_Continue=100703;const kgml_Script_btn_click_Continue=100704;const kgml_Script_btn_click_SimGame=100705;const kgml_GlobalScript_btn_click_Details_Continue=100706;const kgml_Script_btn_click_Details_Continue=100707; const kgml_GlobalScript_s_uniform_helpers=100708;const kgml_Script_s_uniforms_default_file=100709;const kgml_Script_s_extract_uniform_cols_to_record=100710;const kgml_Script_s_uniform_cols_to_record=100711;const kgml_Script_s_uniform_cols_from_record=100712;const kgml_GlobalScript_btn_click_FrontOffice=100713;const kgml_Script_btn_click_FrontOffice=100714;const kgml_GlobalScript_btn_click_FreeAgents2=100715;const kgml_Script_btn_click_FreeAgents2=100716;const kgml_GlobalScript_btn_click_HallOfFame=100717; const kgml_Script_btn_click_HallOfFame=100718;const kgml_GlobalScript_btn_click_Home=100719;const kgml_Script_btn_click_Home=100720;const kgml_Script_btn_click_Play1=100721;const kgml_Script_btn_click_Options_Exit=100722;const kgml_Script_btn_click_Home_rm_winners=100723;const kgml_Script_s_rm_winners_notice=100724;const kgml_GlobalScript_btn_click_League=100725;const kgml_Script____struct___107_btn_click_League_gml_GlobalScript_btn_click_League=100726;const kgml_Script_btn_click_League=100727;const kgml_GlobalScript_btn_click_Options=100728; const kgml_Script_btn_click_Options=100729;const kgml_GlobalScript_btn_click_Profile=100730;const kgml_Script_btn_click_Profile=100731;const kgml_GlobalScript_btn_click_ChooseFace=100732;const kgml_Script_btn_click_ChooseFace=100733;const kgml_Script_s_goto_rm_choose_face=100734;const kgml_GlobalScript_btn_click_ChooseFacePrev=100735;const kgml_Script_btn_click_ChooseFacePrev=100736;const kgml_GlobalScript_btn_click_ChooseFaceNext=100737;const kgml_Script_btn_click_ChooseFaceNext=100738;const kgml_GlobalScript_btn_click_ChooseFaceDone=100739; const kgml_Script_btn_click_ChooseFaceDone=100740;const kgml_Script_btn_click_cancel_chooseface=100741;const kgml_GlobalScript_btn_click_Uniforms=100742;const kgml_Script_btn_click_Uniforms=100743;const kgml_GlobalScript_btn_click_Uniform_Away=100744;const kgml_Script_btn_click_Uniform_Away=100745;const kgml_GlobalScript_btn_click_Uniform_Home=100746;const kgml_Script_btn_click_Uniform_Home=100747;const kgml_GlobalScript__poki_rewarded_ad=100748;const kgml_Script__poki_rewarded_ad=100749;const kgml_GlobalScript_btn_click_BallStyle=100750; const kgml_Script_btn_click_BallStyle=100751;const kgml_GlobalScript_btn_click_LeagueReportNext=100752;const kgml_Script_btn_click_LeagueReportNext=100753;const kgml_GlobalScript_btn_click_LeagueReportPrev=100754;const kgml_Script_btn_click_LeagueReportPrev=100755;const kgml_GlobalScript_btn_click_OptionsNewGame=100756;const kgml_Script_btn_click_OptionsNewGame=100757;const kgml_GlobalScript_btn_click_OptionsDriveLeft=100758;const kgml_Script_btn_click_OptionsDriveLeft=100759;const kgml_Script_btn_click_OptionsDriveLeft_Exh=100760; const kgml_GlobalScript_btn_click_OptionsDriveRight=100761;const kgml_Script_btn_click_OptionsDriveRight=100762;const kgml_GlobalScript_btn_click_OptionsDriveBoth=100763;const kgml_Script_btn_click_OptionsDriveBoth=100764;const kgml_GlobalScript_btn_click_OptionsScanlines=100765;const kgml_Script_btn_click_OptionsScanlines=100766;const kgml_GlobalScript_btn_click_OptionsSoundFX=100767;const kgml_Script_btn_click_OptionsSoundFX=100768;const kgml_GlobalScript_btn_click_OptionsWeather=100769;const kgml_Script_btn_click_OptionsWeather=100770; const kgml_Script_btn_click_OptionsWeather_Exh=100771;const kgml_GlobalScript_btn_click_OptionsReplays=100772;const kgml_Script_btn_click_OptionsReplays=100773;const kgml_GlobalScript_btn_click_OptionsZoom=100774;const kgml_Script_btn_click_OptionsZoom=100775;const kgml_GlobalScript_btn_click_InvertedThrowing=100776;const kgml_Script_btn_click_InvertedThrowing=100777;const kgml_GlobalScript_btn_click_OptionsMatchLength=100778;const kgml_Script_btn_click_OptionsMatchLength=100779;const kgml_Script_btn_click_OptionsMatchLength_Exh=100780; const kgml_GlobalScript_btn_click_OptionsTeamEditor=100781;const kgml_Script_btn_click_OptionsTeamEditor=100782;const kgml_GlobalScript_btn_click_OptionsDifficulty=100783;const kgml_Script_btn_click_OptionsDifficulty=100784;const kgml_GlobalScript_btn_click_OptionsSalaryCap=100785;const kgml_Script_btn_click_OptionsSalaryCap=100786;const kgml_Script_salary_cap_toggle_roster_size=100787;const kgml_Script_s_get_roster_cap=100788;const kgml_GlobalScript_chk_click_gamepad=100789;const kgml_Script_chk_click_gamepad=100790; const kgml_GlobalScript_s_apple_arcade_helpers=100791;const kgml_Script_s_aa_debug_give_cc=100792;const kgml_GlobalScript_btn_click_PlayerProfile=100793;const kgml_Script_btn_click_PlayerProfile=100794;const kgml_GlobalScript_btn_click_PlayerProfile_Back=100795;const kgml_Script_btn_click_PlayerProfile_Back=100796;const kgml_GlobalScript_btn_click_ProfilePrev=100797;const kgml_Script_btn_click_ProfilePrev=100798;const kgml_GlobalScript_btn_click_MeetingPrev=100799;const kgml_Script_btn_click_MeetingPrev=100800; const kgml_GlobalScript_btn_click_ProfileNext=100801;const kgml_Script_btn_click_ProfileNext=100802;const kgml_GlobalScript_btn_click_MeetingNext=100803;const kgml_Script_btn_click_MeetingNext=100804;const kgml_GlobalScript_btn_click_Profile_Back=100805;const kgml_Script_btn_click_Profile_Back=100806;const kgml_GlobalScript_btn_click_Profile_Pick=100807;const kgml_Script_btn_click_Profile_Pick=100808;const kgml_GlobalScript_btn_click_Profile_Cut=100809;const kgml_Script_btn_click_Profile_Cut=100810;const kgml_Script_btn_click_Profile_JefeBoost=100811; const kgml_Script_s_JefeBoost=100812;const kgml_Script_btn_click_Profile_JefeOutOfRetirement=100813;const kgml_Script_s_JefeOutOfRetirement=100814;const kgml_GlobalScript_btn_click_Profile_Trade=100815;const kgml_Script_btn_click_Profile_Trade=100816;const kgml_GlobalScript_btn_click_Profile_Stats=100817;const kgml_Script_btn_click_Profile_Stats=100818;const kgml_GlobalScript_btn_click_Profile_Rest=100819;const kgml_Script_btn_click_Profile_Rest=100820;const kgml_GlobalScript_btn_click_Profile_Not_Interested=100821; const kgml_Script_btn_click_Profile_Not_Interested=100822;const kgml_GlobalScript_btn_click_Profile_ScoutPlayer=100823;const kgml_Script_btn_click_Profile_ScoutPlayer=100824;const kgml_GlobalScript_btn_click_AddSkill=100825;const kgml_Script_btn_click_AddSkill=100826;const kgml_GlobalScript_btn_click_AddSpeed=100827;const kgml_Script_btn_click_AddSpeed=100828;const kgml_GlobalScript_btn_click_AddStrength=100829;const kgml_Script_btn_click_AddStrength=100830;const kgml_GlobalScript_btn_click_AddStamina=100831; const kgml_Script_btn_click_AddStamina=100832;const kgml_GlobalScript_btn_click_StatsNext=100833;const kgml_Script_btn_click_StatsNext=100834;const kgml_GlobalScript_btn_click_StatsPrev=100835;const kgml_Script_btn_click_StatsPrev=100836;const kgml_GlobalScript_btn_click_StatsView1=100837;const kgml_Script_btn_click_StatsView1=100838;const kgml_GlobalScript_btn_click_StatsView2=100839;const kgml_Script_btn_click_StatsView2=100840;const kgml_GlobalScript_btn_click_EditProfile=100841;const kgml_Script_btn_click_EditProfile=100842; const kgml_GlobalScript_btn_click_Meeting_Morale=100843;const kgml_Script_btn_click_Meeting_Morale=100844;const kgml_GlobalScript_btn_click_Meeting_Condition=100845;const kgml_Script_btn_click_Meeting_Condition=100846;const kgml_GlobalScript_s_qb_mode_update_resting=100847;const kgml_Script_s_qb_mode_update_resting=100848;const kgml_GlobalScript_btn_click_Meeting_LevelUp=100849;const kgml_Script_btn_click_Meeting_LevelUp=100850;const kgml_GlobalScript_btn_click_Meeting_ExtendContract=100851;const kgml_Script_btn_click_Meeting_ExtendContract=100852; const kgml_GlobalScript_btn_click_FieldGoal=100853;const kgml_Script_btn_click_FieldGoal=100854;const kgml_GlobalScript_btn_click_Running=100855;const kgml_Script_btn_click_Running=100856;const kgml_GlobalScript_btn_click_Passing=100857;const kgml_Script_btn_click_Passing=100858;const kgml_GlobalScript_s_get_happiness=100859;const kgml_Script_s_get_happiness=100860;const kgml_GlobalScript_btn_click_Training=100861;const kgml_Script_btn_click_Training=100862;const kgml_GlobalScript_btn_click_Roster=100863;const kgml_Script_btn_click_Roster=100864; const kgml_GlobalScript_btn_click_Roster_Back=100865;const kgml_Script_btn_click_Roster_Back=100866;const kgml_Script_btn_click_Profile_Back_To_Draft=100867;const kgml_Script_btn_click_Profile_Back_To_Draft_Continue=100868;const kgml_GlobalScript_btn_click_DraftPrev=100869;const kgml_Script_btn_click_DraftPrev=100870;const kgml_GlobalScript_btn_click_DraftNext=100871;const kgml_Script_btn_click_DraftNext=100872;const kgml_GlobalScript_btn_click_DraftDone=100873;const kgml_Script_btn_click_DraftDone=100874; const kgml_GlobalScript_btn_click_FreeAgents=100875;const kgml_Script_btn_click_FreeAgents=100876;const kgml_GlobalScript_btn_click_FreeAgentsBack=100877;const kgml_Script_btn_click_FreeAgentsBack=100878;const kgml_GlobalScript_btn_click_RestAll=100879;const kgml_Script_btn_click_RestAll=100880;const kgml_GlobalScript_btn_click_FreeAgentsNext=100881;const kgml_Script_btn_click_FreeAgentsNext=100882;const kgml_GlobalScript_btn_click_FreeAgentsPrev=100883;const kgml_Script_btn_click_FreeAgentsPrev=100884;const kgml_GlobalScript_btn_click_FreeAgentsReset=100885; const kgml_Script_btn_click_FreeAgentsReset=100886;const kgml_GlobalScript_btn_click_Boost_Morale=100887;const kgml_Script_btn_click_Boost_Morale=100888;const kgml_GlobalScript_btn_click_Boost_Condition=100889;const kgml_Script_btn_click_Boost_Condition=100890;const kgml_GlobalScript_btn_click_Boost_Salary_Cap=100891;const kgml_Script_btn_click_Boost_Salary_Cap=100892;const kgml_GlobalScript_s_set_up_button_kickoff=100893;const kgml_Script_s_set_up_button_kickoff=100894;const kgml_Script_btn_kick_off=100895; const kgml_Script_s_btn_kickoff_recenter=100896;const kgml_GlobalScript_s_college_editor=100897;const kgml_Script____struct___108_s_rm_editor_init_gml_GlobalScript_s_college_editor=100898;const kgml_Script____struct___109_s_rm_editor_init_gml_GlobalScript_s_college_editor=100899;const kgml_Script____struct___110_s_rm_editor_init_gml_GlobalScript_s_college_editor=100900;const kgml_Script____struct___111_s_rm_editor_init_gml_GlobalScript_s_college_editor=100901;const kgml_Script____struct___112_s_rm_editor_init_gml_GlobalScript_s_college_editor=100902; const kgml_Script____struct___113_s_rm_editor_init_gml_GlobalScript_s_college_editor=100903;const kgml_Script____struct___114_s_rm_editor_init_gml_GlobalScript_s_college_editor=100904;const kgml_Script____struct___115_s_rm_editor_init_gml_GlobalScript_s_college_editor=100905;const kgml_Script____struct___116_s_rm_editor_init_gml_GlobalScript_s_college_editor=100906;const kgml_Script____struct___117_s_rm_editor_init_gml_GlobalScript_s_college_editor=100907;const kgml_Script_s_rm_editor_init=100908;const kgml_Script_s_goto_editor=100909; const kgml_Script_s_btn_editor_done=100910;const kgml_Script_s_btn_editor_major=100911;const kgml_Script_s_btn_editor_minor=100912;const kgml_Script_s_btn_editor_bowls=100913;const kgml_Script_s_btn_editor_back=100914;const kgml_Script____struct___118_s_btn_editor_edit_subdivision_gml_GlobalScript_s_college_editor=100915;const kgml_Script_s_btn_editor_edit_subdivision=100916;const kgml_Script____struct___119_s_btn_editor_edit_conference_gml_GlobalScript_s_college_editor=100917;const kgml_Script_s_btn_editor_edit_conference=100918; const kgml_Script_s_btn_editor_conference=100919;const kgml_Script_s_btn_editor_select_team=100920;const kgml_Script_s_btn_editor_select_bowl_group=100921;const kgml_Script____struct___120_s_btn_editor_select_bowl_competition_gml_GlobalScript_s_college_editor=100922;const kgml_Script_s_btn_editor_select_bowl_competition=100923;const kgml_Script____struct___121_s_save_editor_status_gml_GlobalScript_s_college_editor=100924;const kgml_Script_s_save_editor_status=100925;const kgml_Script____struct___122_s_get_editor_status_gml_GlobalScript_s_college_editor=100926; const kgml_Script_s_get_editor_status=100927;const kgml_Script_s_reset_editor_status=100928;const kgml_Script_s_editor_subdivision_mode=100929;const kgml_Script_s_editor_conference_mode=100930;const kgml_Script_s_editor_bowls_group_mode=100931;const kgml_Script_s_editor_bowls_competition_mode=100932;const kgml_Script_s_editor_set_buttons=100933;const kgml_Script_s_editor_refresh_bowls_groups=100934;const kgml_Script____struct___123_s_editor_create_bowls_buttons_gml_GlobalScript_s_college_editor=100935;const kgml_Script____struct___124_s_editor_create_bowls_buttons_gml_GlobalScript_s_college_editor=100936; const kgml_Script_s_editor_create_bowls_buttons=100937;const kgml_Script____struct___125_s_create_slot_label_gml_GlobalScript_s_college_editor=100938;const kgml_Script_s_create_slot_label=100939;const kgml_Script_s_ui_label_draw_gui=100940;const kgml_Script_s_get_editor_bowl_group_name_by_tag=100941;const kgml_Script____struct___126_s_editor_copy_buttons_gml_GlobalScript_s_college_editor=100942;const kgml_Script____struct___127_s_editor_copy_buttons_gml_GlobalScript_s_college_editor=100943;const kgml_Script____struct___128_s_editor_copy_buttons_gml_GlobalScript_s_college_editor=100944; const kgml_Script____struct___129_s_editor_copy_buttons_gml_GlobalScript_s_college_editor=100945;const kgml_Script____struct___130_s_editor_copy_buttons_gml_GlobalScript_s_college_editor=100946;const kgml_Script_s_editor_copy_buttons=100947;const kgml_Script_s_init_btn_editor_copy=100948;const kgml_Script_s_btn_editor_copy=100949;const kgml_Script_s_btn_editor_confirm_copy=100950;const kgml_Script_s_btn_editor_restore_all=100951;const kgml_Script_s_btn_editor_confirm_restore_all=100952;const kgml_GlobalScript_btn_click_DeleteSlot1=100953; const kgml_Script_btn_click_DeleteSlot1=100954;const kgml_GlobalScript_btn_click_DeleteSlot2=100955;const kgml_Script_btn_click_DeleteSlot2=100956;const kgml_GlobalScript_btn_click_DeleteSlot3=100957;const kgml_Script_btn_click_DeleteSlot3=100958;const kgml_GlobalScript_btn_click_DeleteSlot4=100959;const kgml_Script_btn_click_DeleteSlot4=100960;const kgml_GlobalScript_btn_click_DeleteSlot5=100961;const kgml_Script_btn_click_DeleteSlot5=100962;const kgml_GlobalScript_btn_click_StaffProfile=100963;const kgml_Script_btn_click_StaffProfile=100964; const kgml_GlobalScript_btn_click_StaffProfileNext=100965;const kgml_Script_btn_click_StaffProfileNext=100966;const kgml_GlobalScript_s_draw_gamepad_controls=100967;const kgml_Script_s_draw_gamepad_controls=100968;const kgml_GlobalScript_s_team_helpers=100969;const kgml_Script_s_teams_file=100970;const kgml_GlobalScript_btn_click_StaffProfilePrev=100971;const kgml_Script_btn_click_StaffProfilePrev=100972;const kgml_GlobalScript_btn_click_StaffProfileBack=100973;const kgml_Script_btn_click_StaffProfileBack=100974; const kgml_GlobalScript_btn_click_HireStaff=100975;const kgml_Script_btn_click_HireStaff=100976;const kgml_GlobalScript_btn_click_ViewHires=100977;const kgml_Script_btn_click_ViewHires=100978;const kgml_GlobalScript_btn_click_ViewHiresProfile=100979;const kgml_Script_btn_click_ViewHiresProfile=100980;const kgml_GlobalScript_btn_click_ViewHiresBack=100981;const kgml_Script_btn_click_ViewHiresBack=100982;const kgml_GlobalScript_btn_click_ViewHiresReset=100983;const kgml_Script_btn_click_ViewHiresReset=100984; const kgml_GlobalScript_btn_click_TrainingLight=100985;const kgml_Script_btn_click_TrainingLight=100986;const kgml_GlobalScript_btn_click_TrainingNormal=100987;const kgml_Script_btn_click_TrainingNormal=100988;const kgml_GlobalScript_btn_click_TrainingHard=100989;const kgml_Script_btn_click_TrainingHard=100990;const kgml_GlobalScript_btn_click_XP_Continue=100991;const kgml_Script_btn_click_XP_Continue=100992;const kgml_GlobalScript_btn_click_XP_Back=100993;const kgml_Script_btn_click_XP_Back=100994;const kgml_GlobalScript_btn_response_quit_yes=100995; const kgml_Script_btn_response_quit_yes=100996;const kgml_GlobalScript_btn_response_newgame_commit=100997;const kgml_Script_btn_response_newgame_commit=100998;const kgml_GlobalScript_btn_response_kick_no=100999;const kgml_Script_btn_response_kick_no=101000;const kgml_GlobalScript_btn_response_punt_yes=101001;const kgml_Script_btn_response_punt_yes=101002;const kgml_GlobalScript_btn_response_fg_yes=101003;const kgml_Script_btn_response_fg_yes=101004;const kgml_GlobalScript_btn_response_1pt=101005;const kgml_Script_btn_response_1pt=101006; const kgml_GlobalScript_btn_response_2pt=101007;const kgml_Script_btn_response_2pt=101008;const kgml_GlobalScript_btn_response_onsidekick_no=101009;const kgml_Script_btn_response_onsidekick_no=101010;const kgml_GlobalScript_btn_response_onsidekick_yes=101011;const kgml_Script_btn_response_onsidekick_yes=101012;const kgml_GlobalScript_btn_response_cut_player_yes=101013;const kgml_Script_btn_response_cut_player_yes=101014;const kgml_GlobalScript_btn_response_skip_draft_yes=101015;const kgml_Script_btn_response_skip_draft_yes=101016; const kgml_GlobalScript_btn_response_pick_player_yes=101017;const kgml_Script_btn_response_pick_player_yes=101018;const kgml_GlobalScript_btn_click_OptionsKickReturns=101019;const kgml_Script_btn_click_OptionsKickReturns=101020;const kgml_Script_btn_click_OptionsKickReturns_Exh=101021;const kgml_GlobalScript_btn_response_in_trade_player_yes=101022;const kgml_Script_btn_response_in_trade_player_yes=101023;const kgml_GlobalScript_btn_response_out_trade_player_yes=101024;const kgml_Script_btn_response_out_trade_player_yes=101025; const kgml_GlobalScript_btn_response_out_trade_player_no=101026;const kgml_Script_btn_response_out_trade_player_no=101027;const kgml_GlobalScript_btn_response_player_meeting_morale_yes=101028;const kgml_Script_btn_response_player_meeting_morale_yes=101029;const kgml_GlobalScript_btn_response_player_meeting_condition_yes=101030;const kgml_Script_btn_response_player_meeting_condition_yes=101031;const kgml_GlobalScript_btn_response_player_meeting_levelup_yes=101032;const kgml_Script_btn_response_player_meeting_levelup_yes=101033; const kgml_GlobalScript_btn_response_player_meeting_extend_contract=101034;const kgml_Script_btn_response_player_meeting_extend_contract=101035;const kgml_GlobalScript_btn_response_boost_morale=101036;const kgml_Script_btn_response_boost_morale=101037;const kgml_GlobalScript_btn_response_boost_condition=101038;const kgml_Script_btn_response_boost_condition=101039;const kgml_GlobalScript_btn_response_boost_salary_cap=101040;const kgml_Script_btn_response_boost_salary_cap=101041;const kgml_GlobalScript_s_confirm_upgrade_stadium=101042; const kgml_Script_s_confirm_upgrade_stadium=101043;const kgml_GlobalScript_s_confirm_upgrade_training=101044;const kgml_Script_s_confirm_upgrade_training=101045;const kgml_GlobalScript_s_confirm_upgrade_rehab=101046;const kgml_Script_s_confirm_upgrade_rehab=101047;const kgml_GlobalScript_btn_response_hirestaff=101048;const kgml_Script_btn_response_hirestaff=101049;const kgml_GlobalScript_btn_response_clearfreeagents=101050;const kgml_Script_btn_response_clearfreeagents=101051;const kgml_GlobalScript_btn_response_rest_player_yes=101052; const kgml_Script_btn_response_rest_player_yes=101053;const kgml_GlobalScript_btn_response_cointoss_kick=101054;const kgml_Script_btn_response_cointoss_kick=101055;const kgml_GlobalScript_btn_response_cointoss_receive=101056;const kgml_Script_btn_response_cointoss_receive=101057;const kgml_GlobalScript_btn_response_skip_tutorial=101058;const kgml_Script_btn_response_skip_tutorial=101059;const kgml_GlobalScript_btn_response_confirm_new_team=101060;const kgml_Script_btn_response_confirm_new_team_loading=101061; const kgml_Script_btn_response_confirm_new_team=101062;const kgml_GlobalScript_s_store_cant_afford=101063;const kgml_Script_s_store_cant_afford=101064;const kgml_GlobalScript_s_tip_continue=101065;const kgml_Script_s_tip_continue=101066;const kgml_GlobalScript_s_qb_mode_auto_xp=101067;const kgml_Script_s_qb_mode_auto_xp=101068;const kgml_GlobalScript_s_confirm_staff_hire_reset=101069;const kgml_Script_s_confirm_staff_hire_reset=101070;const kgml_GlobalScript_s_confirm_freeagent_hire_reset=101071;const kgml_Script_s_confirm_freeagent_hire_reset=101072; const kgml_GlobalScript_btn_response_deletegame1=101073;const kgml_Script_btn_response_deletegame1=101074;const kgml_GlobalScript_btn_response_deletegame2=101075;const kgml_Script_btn_response_deletegame2=101076;const kgml_GlobalScript_btn_response_deletegame3=101077;const kgml_Script_btn_response_deletegame3=101078;const kgml_GlobalScript_btn_response_deletegame4=101079;const kgml_Script_btn_response_deletegame4=101080;const kgml_GlobalScript_btn_response_deletegame5=101081;const kgml_Script_btn_response_deletegame5=101082; const kgml_GlobalScript_s_simming_action=101083;const kgml_Script_s_simming_action=101084;const kgml_GlobalScript_btn_response_hof_select=101085;const kgml_Script_btn_response_hof_select=101086;const kgml_GlobalScript_btn_response_records_reset=101087;const kgml_Script_btn_response_records_reset=101088;const kgml_GlobalScript_btn_match_kick=101089;const kgml_Script_btn_match_kick=101090;const kgml_Script_btn_match_goforit=101091;const kgml_Script_btn_match_gofor1pt=101092;const kgml_GlobalScript_s_do_prematch_dilemma=101093; const kgml_Script_s_do_prematch_dilemma=101094;const kgml_Script_s_create_dilemma_news=101095;const kgml_Script_s_clear_msg_and_back=101096;const kgml_Script_s_get_standard_dilemmas=101097;const kgml_Script_s_dilemma_defend_player_cost=101098;const kgml_Script_s_can_afford_dilemma_cc=101099;const kgml_Script_s_get_college_dilemmas=101100;const kgml_GlobalScript_s_do_postmatch_dilemma=101101;const kgml_Script_s_do_postmatch_dilemma=101102;const kgml_GlobalScript_s_parse_dilemma=101103;const kgml_Script_s_parse_dilemma=101104; const kgml_GlobalScript_s_create_dilemma=101105;const kgml_Script_s_create_dilemma=101106;const kgml_GlobalScript_s_choose_dilemma=101107;const kgml_Script_s_choose_dilemma=101108;const kgml_Script_s_extract_dilemma_from_pool=101109;const kgml_Script_s_add_tag_matches_to_list=101110;const kgml_Script_s_reject_dilemma_not_enough_RC=101111;const kgml_GlobalScript_s_dilemma_choice_1=101112;const kgml_Script_s_dilemma_choice_1=101113;const kgml_GlobalScript_s_dilemma_choice_2=101114;const kgml_Script_s_dilemma_choice_2=101115; const kgml_GlobalScript_s_dilemma_choice=101116;const kgml_Script_s_dilemma_choice=101117;const kgml_Script_s_cut_player_end=101118;const kgml_Script_s_cut_player_end_gpa=101119;const kgml_Script_s_cut_player_end_toxic=101120;const kgml_Script_s_cut_player_end_party=101121;const kgml_Script_s_cut_player_end_toxic_max=101122;const kgml_Script_s_cut_player_end_party_max=101123;const kgml_Script_s_dilemma_morecc_store=101124;const kgml_Script_s_dilemma_morecc_back=101125;const kgml_Script_s_dilemma_end=101126; const kgml_Script_s_dilemma_college_check_chained=101127;const kgml_Script_s_dilemma_college_check_pending_news=101128;const kgml_GlobalScript_s_convert_string_to_sprite=101129;const kgml_Script_s_convert_string_to_sprite=101130;const kgml_GlobalScript_s_sort_list_by_column=101131;const kgml_Script_s_sort_maplist_by_numeric_field=101132;const kgml_GlobalScript_s_check_draft=101133;const kgml_Script_s_check_draft=101134;const kgml_GlobalScript_s_create_draftlist=101135;const kgml_Script_s_create_draftlist=101136; const kgml_GlobalScript_s_sound_audience_tck=101137;const kgml_Script_s_sound_audience_tck=101138;const kgml_GlobalScript_s_create_freeagentlist=101139;const kgml_Script_s_create_freeagentlist=101140;const kgml_GlobalScript_s_create_freeagent=101141;const kgml_Script_s_create_freeagent=101142;const kgml_GlobalScript_s_create_tradelist=101143;const kgml_Script_s_create_tradelist=101144;const kgml_GlobalScript_s_create_storelist=101145;const kgml_Script_s_create_storelist=101146;const kgml_GlobalScript_s_create_player_storelist=101147; const kgml_Script_s_create_player_storelist=101148;const kgml_GlobalScript_s_count_hires_by_position=101149;const kgml_Script_s_count_hires_by_position=101150;const kgml_GlobalScript_s_count_players_by_position_store=101151;const kgml_Script_s_count_players_by_position_store=101152;const kgml_GlobalScript_s_get_hire_shortlist=101153;const kgml_Script_s_get_hire_shortlist=101154;const kgml_GlobalScript_s_reset_draft_picks=101155;const kgml_Script_s_reset_draft_picks=101156;const kgml_GlobalScript_poki_btn_click_CoinBoost=101157; const kgml_Script_poki_btn_click_CoinBoost=101158;const kgml_Script_poki_CoinBoost_No=101159;const kgml_Script_poki_CoinBoost_Yes=101160;const kgml_GlobalScript_s_update_draft_page=101161;const kgml_Script_s_update_draft_page=101162;const kgml_GlobalScript_s_update_freeagents_page=101163;const kgml_Script_s_update_freeagents_page=101164;const kgml_GlobalScript_s_college_admissions_draft=101165;const kgml_Script_s_check_draft_CO=101166;const kgml_Script_s_college_free_agent_check=101167;const kgml_Script_btn_respose_college_free_agent_yes=101168; const kgml_Script_btn_respose_college_free_agent_no=101169;const kgml_Script_s_college_dilemma_check=101170;const kgml_Script_s_college_admissions_check_trigger=101171;const kgml_Script_s_college_admissions_pick_player=101172;const kgml_Script_s_college_admissions_players_lost_per_round=101173;const kgml_Script_s_college_admissions_draft_done=101174;const kgml_Script_btn_response_college_admissions_draft_done_yes=101175;const kgml_GlobalScript_s_remaining_picks=101176;const kgml_Script_s_remaining_picks=101177; const kgml_GlobalScript_s_remaining_picks_by_round=101178;const kgml_Script_s_remaining_picks_by_round=101179;const kgml_GlobalScript_s_get_trade_value=101180;const kgml_Script_s_get_trade_value=101181;const kgml_GlobalScript_s_get_trade_value_by_rating=101182;const kgml_Script_s_get_trade_value_by_rating=101183;const kgml_GlobalScript_s_get_offer_team=101184;const kgml_Script_s_get_offer_team=101185;const kgml_GlobalScript_s_clear_trade_offers=101186;const kgml_Script_s_clear_trade_offers=101187;const kgml_GlobalScript_s_clear_freeagents=101188; const kgml_Script_s_clear_freeagents=101189;const kgml_GlobalScript_s_clear_storelist=101190;const kgml_Script_s_clear_storelist=101191;const kgml_GlobalScript_s_end_draft_round=101192;const kgml_Script_s_end_draft_round=101193;const kgml_Script_s_destroy_draftlist=101194;const kgml_GlobalScript_s_received_AI_kickoff=101195;const kgml_Script_s_received_AI_kickoff=101196;const kgml_GlobalScript_s_update_contracts=101197;const kgml_Script_s_update_contracts=101198;const kgml_Script_s_check_staff_exist=101199; const kgml_GlobalScript_s_aim_AI_kickoff=101200;const kgml_Script_s_aim_AI_kickoff=101201;const kgml_GlobalScript_btn_click_SeasonReview=101202;const kgml_Script_btn_click_SeasonReview=101203;const kgml_GlobalScript_s_get_new_salary=101204;const kgml_Script_s_get_new_salary=101205;const kgml_GlobalScript_s_check_expired_contract_message=101206;const kgml_Script_s_check_expired_contract_message=101207;const kgml_GlobalScript_s_get_salary_cap_space=101208;const kgml_Script_s_get_salary_cap_space=101209;const kgml_GlobalScript_s_create_new_save=101210; const kgml_Script_s_create_new_save=101211;const kgml_Script_s_regen_clean_save_mode_dependent_data=101212;const kgml_Script_s_load_co_mode_files=101213;const kgml_GlobalScript_s_loadgame=101214;const kgml_Script_btn_click_LoadSlot1=101215;const kgml_Script_btn_click_LoadSlot2=101216;const kgml_Script_btn_click_LoadSlot3=101217;const kgml_Script_btn_click_LoadSlot4=101218;const kgml_Script_btn_click_LoadSlot5=101219;const kgml_Script_btn_click_slot=101220;const kgml_Script_s_master_load=101221;const kgml_Script_s_master_load_from_backup=101222; const kgml_Script_s_loadgame=101223;const kgml_Script_s_cap_breach_refresh=101224;const kgml_Script_s_cap_breach_str=101225;const kgml_Script_s_is_player_pmap_corrupt=101226;const kgml_Script_s_check_for_return_stats=101227;const kgml_Script_s_check_longest_records=101228;const kgml_Script_s_fix_poki_browser_max_percent_grade=101229;const kgml_Script_s_update_ui_colours=101230;const kgml_Script_s_get_college_primary_col=101231;const kgml_Script_s_update_game_title=101232;const kgml_GlobalScript_s_savegame=101233; const kgml_Script_s_savegame=101234;const kgml_GlobalScript_s_create_map_options=101235;const kgml_Script_s_create_map_options=101236;const kgml_GlobalScript_s_count_full_seasons=101237;const kgml_Script_s_count_full_seasons=101238;const kgml_Script_s_count_games_coached=101239;const kgml_Script_s_count_games_simmed=101240;const kgml_Script_s_count_fixtures_played=101241;const kgml_GlobalScript_s_load_options=101242;const kgml_Script_s_load_options=101243;const kgml_GlobalScript_s_save_options=101244;const kgml_Script_s_save_options=101245; const kgml_GlobalScript_s_save_backup=101246;const kgml_Script_s_save_backup=101247;const kgml_GlobalScript_s_load_map_file=101248;const kgml_Script_s_load_map_file=101249;const kgml_Script_s_destroy_map_file=101250;const kgml_GlobalScript_s_update_maplist_from_file=101251;const kgml_Script_s_update_maplist_from_file=101252;const kgml_GlobalScript_s_load_strings=101253;const kgml_Script_s_refresh_strings=101254;const kgml_Script_s_load_strings=101255;const kgml_Script_s_select_lang=101256;const kgml_Script_s_select_lang_file=101257; const kgml_Script_s_select_override_lang_file=101258;const kgml_Script_s_select_institution_lang_file=101259;const kgml_Script_s_add_file_to_lang_strings=101260;const kgml_Script____struct___131_s_co_refresh_strings_gml_GlobalScript_s_load_strings=101261;const kgml_Script_s_co_refresh_strings=101262;const kgml_Script_s_co_load_strings=101263;const kgml_Script_s_load_language_file=101264;const kgml_GlobalScript_s_load_teams=101265;const kgml_Script_s_load_teams=101266;const kgml_Script_s_load_teams_data=101267; const kgml_Script_s_reset_co_team_data=101268;const kgml_Script_s_set_teams_min_max_ids=101269;const kgml_Script_s_get_struct_in_array_by_uid=101270;const kgml_Script____struct___132_load_data_to_struct_array_gml_GlobalScript_s_load_teams=101271;const kgml_Script_load_data_to_struct_array=101272;const kgml_Script____struct___133_s_load_json_gml_GlobalScript_s_load_teams=101273;const kgml_Script_s_load_json=101274;const kgml_Script_s_save_json=101275;const kgml_GlobalScript_s_load_team_detail=101276;const kgml_Script_s_load_team_detail=101277; const kgml_GlobalScript_s_load_retrobowl_hof=101278;const kgml_Script_s_load_retrobowl_hof=101279;const kgml_GlobalScript_s_load_retrobowl_history=101280;const kgml_Script_s_load_retrobowl_history=101281;const kgml_GlobalScript_s_load_schedule=101282;const kgml_Script_s_load_schedule=101283;const kgml_Script_s_load_college_schedule=101284;const kgml_Script_s_get_schedule_data_years=101285;const kgml_Script_s_get_schedule_year_stagger=101286;const kgml_Script_s_get_fix_type=101287;const kgml_Script____struct___134_s_calc_fix_type_gml_GlobalScript_s_load_schedule=101288; const kgml_Script_s_calc_fix_type=101289;const kgml_Script_s_get_fix_type_string=101290;const kgml_Script_s_get_fix_type_string_by_values=101291;const kgml_Script_s_create_fix_type_string=101292;const kgml_Script_s_list_schedule_fix_type=101293;const kgml_GlobalScript_s_get_savename=101294;const kgml_Script_s_get_savename=101295;const kgml_GlobalScript_s_get_string_save_details=101296;const kgml_Script_s_get_string_save_details=101297;const kgml_GlobalScript_s_destroy_master=101298;const kgml_Script_s_destroy_master=101299; const kgml_GlobalScript_s_save_uniform_file2=101300;const kgml_Script_s_save_uniform_file2=101301;const kgml_GlobalScript_s_load_uniform_file2=101302;const kgml_Script_s_load_uniform_file2=101303;const kgml_GlobalScript_s_load_teamname_from_uniform_file=101304;const kgml_Script_s_load_teamname_from_uniform_file=101305;const kgml_GlobalScript_s_load_endzone_from_uniform_file=101306;const kgml_Script_s_load_endzone_from_uniform_file=101307;const kgml_GlobalScript_s_create_my_fixture_list=101308;const kgml_Script_s_create_my_fixture_list=101309; const kgml_GlobalScript_s_create_fixdata=101310;const kgml_Script_s_create_fixdata=101311;const kgml_GlobalScript_s_do_schedule=101312;const kgml_Script_s_do_schedule=101313;const kgml_Script____struct___135_s_co_get_sim_results_gml_GlobalScript_s_do_schedule=101314;const kgml_Script_s_co_get_sim_results=101315;const kgml_Script_s_co_conference_stats=101316;const kgml_GlobalScript_s_create_playoffs=101317;const kgml_Script_s_create_playoffs=101318;const kgml_GlobalScript_s_create_playoffs2=101319;const kgml_Script_s_create_playoffs2=101320; const kgml_GlobalScript_s_playoffs_12=101321;const kgml_Script_s_playoffs_12=101322;const kgml_GlobalScript_s_get_week_superbowl=101323;const kgml_Script_s_get_week_superbowl=101324;const kgml_GlobalScript_s_do_playoff_schedule=101325;const kgml_Script_s_do_playoff_schedule=101326;const kgml_Script_s_get_retrobowl_mvp_winner=101327;const kgml_GlobalScript_s_get_random_scoredata=101328;const kgml_Script_s_get_random_scoredata=101329;const kgml_Script_s_co_get_random_scoredata=101330;const kgml_GlobalScript_s_promote_playoff_winner=101331; const kgml_Script_s_promote_playoff_winner=101332;const kgml_Script_s_seed_divisional_round=101333;const kgml_GlobalScript_s_add_to_human_fixtures=101334;const kgml_Script_s_add_to_human_fixtures=101335;const kgml_GlobalScript_s_update_human_playoff_fixtures=101336;const kgml_Script_s_update_human_playoff_fixtures=101337;const kgml_Script_s_check_rearranged_human_playoff=101338;const kgml_Script_s_update_human_fixtures=101339;const kgml_Script_s_update_fixturelist_fix_extra_data=101340;const kgml_GlobalScript_s_get_playoff_fixture_by_week=101341; const kgml_Script_s_get_playoff_fixture_by_week=101342;const kgml_GlobalScript_s_get_human_fixture_by_week=101343;const kgml_Script_s_get_human_fixture_by_week=101344;const kgml_GlobalScript_s_get_human_fixture_previous=101345;const kgml_Script_s_get_human_fixture_previous=101346;const kgml_GlobalScript_exhibition_scripts=101347;const kgml_Script_btn_click_exhibition_start=101348;const kgml_Script_btn_click_exhibition_exit=101349;const kgml_Script_s_exhibition_exit=101350;const kgml_Script_s_exhibition_lost_two_controllers=101351; const kgml_Script_s_exhibition_assign_lost_controller=101352;const kgml_Script_s_exhibition_abandon=101353;const kgml_Script_s_set_up_uniforms_exhibition=101354;const kgml_Script_s_create_exhibition_fixture=101355;const kgml_Script_btn_click_exhibition_controller_0=101356;const kgml_Script_btn_click_exhibition_controller_1=101357;const kgml_Script_s_update_exhibition_controllers=101358;const kgml_Script_btn_click_ChangeTeamAway=101359;const kgml_Script_btn_click_ChangeTeamHome=101360;const kgml_Script_btn_click_Exhibition_Play=101361; const kgml_Script_s_update_options_exh=101362;const kgml_Script_s_force_kick_direction=101363;const kgml_Script_s_count_audibles=101364;const kgml_Script_s_update_audibles=101365;const kgml_Script_s_set_audibles=101366;const kgml_Script_s_count_timeouts=101367;const kgml_Script_s_update_timeouts=101368;const kgml_Script_s_set_timeouts=101369;const kgml_Script_s_set_exhibition_buttons=101370;const kgml_Script_btn_click_exhibition_switch_start=101371;const kgml_Script_s_exhibition_controller_check_continue=101372; const kgml_Script_btn_click_exhibition_controllers=101373;const kgml_Script_btn_exhibition_controllers_refresh=101374;const kgml_Script_rm_exhibition_options_create=101375;const kgml_Script_s_exh_teamswap_allowed=101376;const kgml_Script_get_ex_teamset_0=101377;const kgml_Script_get_ex_teamset_1=101378;const kgml_Script_get_ex_uniform_file=101379;const kgml_Script_btn_click_ExhibitionLoadUniformsA=101380;const kgml_Script_btn_click_ExhibitionLoadUniformsB=101381;const kgml_Script_btn_click_ExhibitionLoadUniformsC=101382; const kgml_Script_btn_click_ExhibitionLoadUniformsD=101383;const kgml_Script_btn_click_ExhibitionLoadUniformsE=101384;const kgml_Script_btn_click_ExhibitionLoadUniforms=101385;const kgml_Script_s_get_save_from_number=101386;const kgml_Script_s_load_save_team_exhibitionA=101387;const kgml_Script_s_load_save_team_exhibitionB=101388;const kgml_Script_s_load_save_team_exhibitionC=101389;const kgml_Script_s_load_save_team_exhibitionD=101390;const kgml_Script_s_load_save_team_exhibitionE=101391;const kgml_Script_s_load_save_team_exhibition=101392; const kgml_Script_exh_refresh_roster_from_save=101393;const kgml_Script_s_load_html_save1_exhibition=101394;const kgml_Script_btn_click_RestoreAllTeams_ex=101395;const kgml_Script_s_restore_uniforms_all_ex=101396;const kgml_Script_s_exhibition_team_management_start=101397;const kgml_Script_s_exhibition_team_management_clear=101398;const kgml_Script_s_exhibition_wipe_list=101399;const kgml_Script_s_refresh_exhibition_team_load_buttons=101400;const kgml_Script_refresh_exh_roster_buttons=101401;const kgml_Script_btn_click_RosterTeamAway=101402; const kgml_Script_btn_click_RosterTeamHome=101403;const kgml_Script_btn_click_Profile_Back_To_Exhibition=101404;const kgml_Script_rm_player_profile_exhibition_create=101405;const kgml_Script_rm_roster_exhibition_create=101406;const kgml_Script_exhibition_handle_exit_match=101407;const kgml_GlobalScript_s_get_human_fixture_next=101408;const kgml_Script_s_get_human_fixture_next=101409;const kgml_GlobalScript_s_count_remaining_fixtures=101410;const kgml_Script_s_count_remaining_fixtures=101411;const kgml_GlobalScript_s_get_division_winner=101412; const kgml_Script_s_get_division_winner=101413;const kgml_GlobalScript_s_get_team_position_by_id=101414;const kgml_Script_s_get_team_position_by_id=101415;const kgml_GlobalScript_s_get_division_winner_name=101416;const kgml_Script_s_get_division_winner_name=101417;const kgml_GlobalScript_s_get_division_winner_by_seed=101418;const kgml_Script_s_get_division_winner_by_seed=101419;const kgml_GlobalScript_s_get_division_winner_name_by_seed=101420;const kgml_Script_s_get_division_winner_name_by_seed=101421;const kgml_GlobalScript_s_skip_to_week=101422; const kgml_Script_s_skip_to_week=101423;const kgml_GlobalScript_s_clear_playoff_fixtures=101424;const kgml_Script_s_clear_playoff_fixtures=101425;const kgml_GlobalScript_s_update_team_edit_buttons=101426;const kgml_Script_s_update_team_edit_buttons=101427;const kgml_GlobalScript_s_set_up_edit_screen=101428;const kgml_Script_s_set_up_edit_screen=101429;const kgml_GlobalScript_s_color_picker=101430;const kgml_Script_s_color_picker=101431;const kgml_GlobalScript_s_set_up_uniforms=101432;const kgml_Script_s_set_up_uniforms=101433; const kgml_GlobalScript_s_set_up_uniforms_training=101434;const kgml_Script_s_set_up_uniforms_training=101435;const kgml_GlobalScript_s_set_up_uniform_profile=101436;const kgml_Script_s_set_up_uniform_profile=101437;const kgml_GlobalScript_s_shader_get_uniforms=101438;const kgml_Script_s_shader_get_uniforms=101439;const kgml_GlobalScript_s_shader_set_uniforms=101440;const kgml_Script_s_shader_set_uniforms=101441;const kgml_Script_s_blackwhite_colour_hack=101442;const kgml_GlobalScript_s_convert_uniform_colours_all=101443; const kgml_Script_s_convert_uniform_colours_all=101444;const kgml_GlobalScript_s_convert_uniform_colour=101445;const kgml_Script_s_convert_uniform_colour=101446;const kgml_GlobalScript_s_restore_uniforms_all=101447;const kgml_Script_s_restore_uniforms_all=101448;const kgml_GlobalScript_s_copy_uniforms_slot_a=101449;const kgml_Script_s_copy_uniforms_slot_a=101450;const kgml_GlobalScript_s_copy_uniforms_slot_b=101451;const kgml_Script_s_copy_uniforms_slot_b=101452;const kgml_GlobalScript_s_copy_uniforms_slot_c=101453; const kgml_Script_s_copy_uniforms_slot_c=101454;const kgml_GlobalScript_s_copy_uniforms_slot_d=101455;const kgml_Script_s_copy_uniforms_slot_d=101456;const kgml_GlobalScript_s_set_up_kickoff=101457;const kgml_Script_s_set_up_kickoff=101458;const kgml_GlobalScript_s_copy_uniforms_slot_e=101459;const kgml_Script_s_copy_uniforms_slot_e=101460;const kgml_GlobalScript_s_update_uniform_name=101461;const kgml_Script_s_update_uniform_name=101462;const kgml_GlobalScript_s_copy_teamnames_from_uniform_file=101463;const kgml_Script_s_copy_teamnames_from_uniform_file=101464; const kgml_GlobalScript_s_edit_name=101465;const kgml_Script_s_edit_name=101466;const kgml_GlobalScript_btn_click_edit_div1=101467;const kgml_Script_btn_click_edit_div1=101468;const kgml_GlobalScript_btn_click_edit_div2=101469;const kgml_Script_btn_click_edit_div2=101470;const kgml_GlobalScript_s_history=101471;const kgml_Script_s_get_history_by_year=101472;const kgml_Script_s_create_history_for_current_year=101473;const kgml_Script_s_log_this_year_history=101474;const kgml_Script_s_log_full_history=101475; const kgml_Script_s_update_history=101476;const kgml_Script_s_update_history_playoffs=101477;const kgml_Script_s_update_history_finish=101478;const kgml_Script_s_update_history_season_end=101479;const kgml_Script_s_update_history_won_championship=101480;const kgml_Script_s_update_history_reached_playoffs_round=101481;const kgml_Script_s_update_history_won_bowl=101482;const kgml_Script_s_update_history_subdivisional_champ_finals=101483;const kgml_Script_s_history_display_lines_count=101484;const kgml_Script_s_history_display_lines_count_yearindex=101485; const kgml_GlobalScript_btn_click_edit_div3=101486;const kgml_Script_btn_click_edit_div3=101487;const kgml_GlobalScript_btn_click_edit_div4=101488;const kgml_Script_btn_click_edit_div4=101489;const kgml_GlobalScript_s_college_data_versioning=101490;const kgml_Script_s_get_versioned_path=101491;const kgml_Script_s_is_newer_data_available=101492;const kgml_Script_s_is_team_active_in_new_data=101493;const kgml_Script_s_get_build_data_version=101494;const kgml_Script_s_get_build_year_offset=101495;const kgml_Script_s_get_data_version_string=101496; const kgml_Script____struct___136_s_reset_to_version_gml_GlobalScript_s_college_data_versioning=101497;const kgml_Script_s_reset_to_version=101498;const kgml_Script_s_data_upgrade_teams=101499;const kgml_Script_s_offer_data_upgrade=101500;const kgml_Script_s_data_upgrade_offer_deny=101501;const kgml_Script_s_data_upgrade_offer_accept=101502;const kgml_GlobalScript_btn_click_edit_conf1=101503;const kgml_Script_btn_click_edit_conf1=101504;const kgml_GlobalScript_btn_click_edit_conf2=101505;const kgml_Script_btn_click_edit_conf2=101506; const kgml_GlobalScript_s_edit_confirm_div1=101507;const kgml_Script_s_edit_confirm_div1=101508;const kgml_GlobalScript_s_edit_confirm_div2=101509;const kgml_Script_s_edit_confirm_div2=101510;const kgml_GlobalScript_s_edit_confirm_div3=101511;const kgml_Script_s_edit_confirm_div3=101512;const kgml_GlobalScript_s_edit_confirm_div4=101513;const kgml_Script_s_edit_confirm_div4=101514;const kgml_GlobalScript_s_edit_confirm_conf1=101515;const kgml_Script_s_edit_confirm_conf1=101516;const kgml_GlobalScript_s_edit_confirm_conf2=101517; const kgml_Script_s_edit_confirm_conf2=101518;const kgml_GlobalScript_s_populate_division=101519;const kgml_Script_s_populate_division=101520;const kgml_GlobalScript_s_populate_schedulebox=101521;const kgml_Script_s_populate_schedulebox=101522;const kgml_GlobalScript_s_create_credit=101523;const kgml_Script_s_create_credit=101524;const kgml_GlobalScript_s_set_up_xp_headers=101525;const kgml_Script_s_set_up_xp_headers=101526;const kgml_GlobalScript_s_count_hof_entries=101527;const kgml_Script_s_count_hof_entries=101528; const kgml_GlobalScript_s_set_up_hof_players_screen=101529;const kgml_Script_s_set_up_hof_players_screen=101530;const kgml_GlobalScript_s_iap_init=101531;const kgml_Script_s_iap_init=101532;const kgml_GlobalScript_s_set_up_purchase_ids=101533;const kgml_Script_s_set_up_purchase_ids=101534;const kgml_GlobalScript_s_iap_async_android=101535;const kgml_Script_s_debug_purge_all_android_iap=101536;const kgml_Script_s_iap_async_android=101537;const kgml_GlobalScript_s_iap_async_ios=101538;const kgml_Script_s_iap_async_ios=101539; const kgml_GlobalScript_s_iap_purchase_FullVersion=101540;const kgml_Script_s_iap_purchase_FullVersion=101541;const kgml_GlobalScript_s_set_position_kickoff=101542;const kgml_Script_s_set_position_return_ko=101543;const kgml_Script_s_set_position_take_ko=101544;const kgml_GlobalScript_s_iap_purchase_Credits_20=101545;const kgml_Script_s_iap_purchase_Credits_20=101546;const kgml_GlobalScript_s_iap_purchase_Credits_50=101547;const kgml_Script_s_iap_purchase_Credits_50=101548;const kgml_GlobalScript_s_iap_purchase_Credits_100=101549; const kgml_Script_s_iap_purchase_Credits_100=101550;const kgml_GlobalScript_s_iap_purchase_Credits_250=101551;const kgml_Script_s_iap_purchase_Credits_250=101552;const kgml_GlobalScript_s_iap_restore=101553;const kgml_Script_s_iap_restore=101554;const kgml_GlobalScript_s_open_store=101555;const kgml_Script_s_open_store=101556;const kgml_Script_s_btn_store_exit=101557;const kgml_GlobalScript_s_open_store_nag=101558;const kgml_Script_s_open_store_nag=101559;const kgml_GlobalScript_s_do_nag_message=101560;const kgml_Script_s_do_nag_message=101561; const kgml_Script_s_do_ad_retrogoal=101562;const kgml_GlobalScript_s_do_purchase_message=101563;const kgml_Script_s_do_purchase_message=101564;const kgml_GlobalScript_btn_step_check_fullversion=101565;const kgml_Script_btn_step_check_fullversion=101566;const kgml_GlobalScript_btn_step_check_iaps=101567;const kgml_Script_btn_step_check_iaps=101568;const kgml_GlobalScript_s_freeze_purchase_buttons=101569;const kgml_Script_s_freeze_purchase_buttons=101570;const kgml_GlobalScript_s_unfreeze_purchase_buttons=101571; const kgml_Script_s_unfreeze_purchase_buttons=101572;const kgml_GlobalScript_s_do_info_position=101573;const kgml_Script_s_do_info_position=101574;const kgml_GlobalScript_s_do_info_skills=101575;const kgml_Script_s_do_info_skills=101576;const kgml_GlobalScript_s_do_info_coachtrait=101577;const kgml_Script_s_do_info_coachtrait=101578;const kgml_GlobalScript_s_do_info_draftpicks=101579;const kgml_Script_s_do_info_draftpicks=101580;const kgml_GlobalScript_s_do_info=101581;const kgml_Script_s_do_info=101582;const kgml_Script_s_info_draft_col1=101583; const kgml_Script_s_info_draft_col2=101584;const kgml_GlobalScript_s_create_camera=101585;const kgml_Script_s_create_camera=101586;const kgml_GlobalScript_s_play=101587;const kgml_Script_s_play=101588;const kgml_Script_s_play_endweek=101589;const kgml_GlobalScript_s_update_poki_scaling=101590;const kgml_Script_s_update_poki_scaling=101591;const kgml_GlobalScript_s_pre_match=101592;const kgml_Script_s_pre_match=101593;const kgml_Script_s_continue_time_for_draft_msg=101594;const kgml_Script_s_co_pre_match=101595; const kgml_GlobalScript_s_player_profile_qb_mode=101596;const kgml_Script_s_player_profile_qb_mode=101597;const kgml_GlobalScript_s_do_next_week=101598;const kgml_Script_s_do_next_week=101599;const kgml_GlobalScript_s_start_new_season=101600;const kgml_Script_s_start_new_season=101601;const kgml_Script_s_renew_contracts_qb_mode=101602;const kgml_GlobalScript_s_update_team_buttons=101603;const kgml_Script_s_update_team_buttons=101604;const kgml_GlobalScript_s_update_job_offer_buttons=101605;const kgml_Script_s_update_job_offer_buttons=101606; const kgml_GlobalScript_s_update_options=101607;const kgml_Script_s_update_options=101608;const kgml_Script_s_get_op_invert_throw=101609;const kgml_Script_s_get_op_autorun=101610;const kgml_Script_btn_click_CollegeToggleColor=101611;const kgml_Script_s_get_gm_version=101612;const kgml_Script_s_update_options_if_present=101613;const kgml_GlobalScript_s_get_attitude_icon=101614;const kgml_Script_s_get_attitude_icon=101615;const kgml_Script_s_attitude_reduce_step=101616;const kgml_GlobalScript_s_get_credit=101617; const kgml_Script_s_get_credit=101618;const kgml_GlobalScript_s_decline_facilities=101619;const kgml_Script_s_decline_facilities=101620;const kgml_GlobalScript_s_do_result_news_qb=101621;const kgml_Script_s_do_result_news_qb=101622;const kgml_Script_s_choose_news=101623;const kgml_GlobalScript_s_reset_player_meetings=101624;const kgml_Script_s_reset_player_meetings=101625;const kgml_GlobalScript_s_has_xp_gain=101626;const kgml_Script_s_has_xp_gain=101627;const kgml_GlobalScript_s_is_bye_week=101628;const kgml_Script_s_is_bye_week=101629; const kgml_Script_s_get_bye_week=101630;const kgml_GlobalScript_s_do_bye_week=101631;const kgml_Script_s_do_bye_week=101632;const kgml_GlobalScript_s_do_postmatch_effects=101633;const kgml_Script_s_do_postmatch_effects=101634;const kgml_GlobalScript_s_do_postmatch_fans=101635;const kgml_Script_s_do_postmatch_fans=101636;const kgml_Script_s_get_postmatch_fans_qb=101637;const kgml_GlobalScript_s_check_intro=101638;const kgml_Script_s_check_intro=101639;const kgml_Script_s_check_intro_college=101640;const kgml_Script_s_check_intro_rm_home=101641; const kgml_Script_s_check_intro_rm_home_college=101642;const kgml_Script_s_check_intro_rm_roster=101643;const kgml_Script_s_check_intro_rm_roster_college=101644;const kgml_Script_s_check_intro_rm_frontoffice=101645;const kgml_Script_s_check_intro_rm_frontoffice_college=101646;const kgml_Script_s_check_intro_rm_profile_staff=101647;const kgml_Script_s_check_intro_rm_profile_staff_college=101648;const kgml_Script_s_check_intro_rm_profile_boss=101649;const kgml_Script_s_check_intro_rm_profile_boss_college=101650; const kgml_Script_s_check_intro_case1=101651;const kgml_Script_s_check_intro_case2=101652;const kgml_Script_s_check_intro_case3=101653;const kgml_Script_s_check_intro_case4=101654;const kgml_Script_s_check_intro_case5=101655;const kgml_Script_s_check_intro_case6=101656;const kgml_Script_s_check_intro_case7=101657;const kgml_Script_s_check_intro_case8=101658;const kgml_Script_s_check_intro_case2_b=101659;const kgml_Script_s_check_intro_case2_c=101660;const kgml_Script_s_check_intro_case2_d=101661;const kgml_Script_s_check_intro_case2_e=101662; const kgml_Script_s_check_intro_case2_f=101663;const kgml_Script_s_check_intro_case2_g=101664;const kgml_Script_s_info_gpa_explanation_open=101665;const kgml_Script_btn_info_gpa_explanation_intro_close=101666;const kgml_Script_s_check_intro_case5_b=101667;const kgml_Script_s_check_intro_case5_second_msg=101668;const kgml_GlobalScript_s_do_result_news=101669;const kgml_Script_s_do_result_news=101670;const kgml_GlobalScript_s_count_joboffers=101671;const kgml_Script_s_count_joboffers=101672;const kgml_GlobalScript_s_refresh_save_slots=101673; const kgml_Script_s_refresh_save_slots=101674;const kgml_GlobalScript_s_show_backups=101675;const kgml_Script_s_show_backups=101676;const kgml_Script_s_restore_backup1=101677;const kgml_Script_s_restore_backup2=101678;const kgml_Script_s_restore_backup3=101679;const kgml_Script_s_restore_backup4=101680;const kgml_Script_s_restore_backup5=101681;const kgml_GlobalScript_s_team_interested=101682;const kgml_Script_s_team_interested=101683;const kgml_Script_s_qb_mode_team_interested=101684;const kgml_GlobalScript_s_update_history=101685; const kgml_GlobalScript_s_update_history_finish=101686;const kgml_GlobalScript_age_scripts=101687;const kgml_Script_s_rookie_age_internal=101688;const kgml_Script_s_max_age_player_internal=101689;const kgml_Script_s_max_age_qb_internal=101690;const kgml_Script_s_get_max_age=101691;const kgml_GlobalScript_s_update_history_playoffs=101692;const kgml_GlobalScript_s_college_custom_data=101693;const kgml_Script_s_custom_data_file_exists=101694;const kgml_Script_s_custom_data_load=101695;const kgml_Script_s_custom_data_file_delete=101696; const kgml_Script_s_custom_data_patch=101697;const kgml_Script_s_custom_data_update_from_editor=101698;const kgml_Script_s_custom_data_save=101699;const kgml_Script_s_custom_data_delete=101700;const kgml_Script_s_custom_data_reset=101701;const kgml_Script____struct___137_s_custom_data_template_gml_GlobalScript_s_college_custom_data=101702;const kgml_Script____struct___138_s_custom_data_template_gml_GlobalScript_s_college_custom_data=101703;const kgml_Script____struct___139_s_custom_data_template_gml_GlobalScript_s_college_custom_data=101704; const kgml_Script____struct___140_s_custom_data_template_gml_GlobalScript_s_college_custom_data=101705;const kgml_Script_s_custom_data_template=101706;const kgml_Script_s_custom_data_restore=101707;const kgml_Script_s_custom_data_copy_from=101708;const kgml_Script_s_copy_uniforms_from=101709;const kgml_Script_s_college_restore_all_uniforms=101710;const kgml_Script_s_custom_data_exists=101711;const kgml_Script_s_is_custom_data_active=101712;const kgml_Script_s_set_custom_data_active=101713;const kgml_Script_s_get_custom_data_subdivision=101714; const kgml_Script_s_get_custom_data_conference=101715;const kgml_Script_s_get_custom_data_competition=101716;const kgml_Script_s_get_custom_data_filename=101717;const kgml_Script____struct___141_s_get_or_create_custom_data_conference_gml_GlobalScript_s_college_custom_data=101718;const kgml_Script_s_get_or_create_custom_data_conference=101719;const kgml_Script____struct___142_s_get_or_create_custom_data_competition_gml_GlobalScript_s_college_custom_data=101720;const kgml_Script_s_get_or_create_custom_data_competition=101721; const kgml_Script_s_get_custom_data_suffix=101722;const kgml_Script_s_get_custom_data_comp_name_prefix=101723;const kgml_Script_s_get_custom_data_comp_name_suffix=101724;const kgml_Script_s_get_bowl_split_name=101725;const kgml_GlobalScript_s_get_history_by_year=101726;const kgml_GlobalScript_s_update_music=101727;const kgml_Script_s_update_music=101728;const kgml_Script_s_update_music_safe=101729;const kgml_GlobalScript_s_get_ticker_text=101730;const kgml_Script_s_get_ticker_text=101731;const kgml_GlobalScript_s_choose_random_face_for_me=101732; const kgml_Script_s_choose_random_face_for_me=101733;const kgml_GlobalScript_s_get_kick_direction=101734;const kgml_Script_s_get_kick_direction=101735;const kgml_GlobalScript_s_aiming=101736;const kgml_Script_s_aiming=101737;const kgml_GlobalScript_s_update_ball=101738;const kgml_Script_s_update_ball=101739;const kgml_GlobalScript_s_do_touchback=101740;const kgml_Script_s_do_touchback=101741;const kgml_GlobalScript_s_update_ball_fieldgoal=101742;const kgml_Script_s_update_ball_fieldgoal=101743;const kgml_GlobalScript_s_update_ball_movement=101744; const kgml_Script_s_update_ball_movement=101745;const kgml_GlobalScript_s_update_ball_offset=101746;const kgml_Script_s_update_ball_offset=101747;const kgml_GlobalScript_s_is_ball_dead=101748;const kgml_Script_s_is_ball_dead=101749;const kgml_GlobalScript_s_check_ball_position=101750;const kgml_Script_s_check_ball_position=101751;const kgml_GlobalScript_s_check_ball_collision=101752;const kgml_Script_s_check_ball_collision=101753;const kgml_GlobalScript_s_check_tipped=101754;const kgml_Script_s_check_tipped=101755; const kgml_GlobalScript_s_drop_ball=101756;const kgml_Script_s_drop_ball=101757;const kgml_GlobalScript_s_check_dummy_collision=101758;const kgml_Script_s_check_dummy_collision=101759;const kgml_Script_s_sound_training_success=101760;const kgml_GlobalScript_s_kick_ball=101761;const kgml_Script_s_kick_ball=101762;const kgml_GlobalScript_s_spike_ball=101763;const kgml_Script_s_spike_ball=101764;const kgml_GlobalScript_s_college_gui_panels=101765;const kgml_Script____struct___143_s_co_subdivision_create_gml_GlobalScript_s_college_gui_panels=101766; const kgml_Script_s_co_subdivision_create=101767;const kgml_Script_s_co_subdivision_init=101768;const kgml_Script_s_co_subdivision_hidden_draw_gui=101769;const kgml_Script_s_co_division_create=101770;const kgml_Script_s_co_division_init=101771;const kgml_Script_s_co_division_step=101772;const kgml_Script_s_fit_string=101773;const kgml_Script_s_co_division_draw_gui=101774;const kgml_GlobalScript_s_set_ball_down=101775;const kgml_Script_s_set_ball_down=101776;const kgml_GlobalScript_s_receive_ball=101777;const kgml_Script_s_receive_ball=101778; const kgml_GlobalScript_s_opposite_aim=101779;const kgml_Script_s_opposite_aim=101780;const kgml_GlobalScript_s_update_xdead=101781;const kgml_Script_s_update_xdead=101782;const kgml_GlobalScript_s_set_skills_and_skin=101783;const kgml_Script_s_set_skills_and_skin=101784;const kgml_GlobalScript_s_set_anim=101785;const kgml_Script_s_set_anim=101786;const kgml_GlobalScript_s_set_position_offense=101787;const kgml_Script_s_set_position_offense=101788;const kgml_GlobalScript_s_create_news_message=101789;const kgml_Script_s_create_news_dyn_message=101790; const kgml_GlobalScript_s_set_position_defense=101791;const kgml_Script_s_set_position_defense=101792;const kgml_GlobalScript_s_college_postseason=101793;const kgml_Script____struct___144_s_rm_postseason_init_gml_GlobalScript_s_college_postseason=101794;const kgml_Script____struct___145_s_rm_postseason_init_gml_GlobalScript_s_college_postseason=101795;const kgml_Script____struct___146_s_rm_postseason_init_gml_GlobalScript_s_college_postseason=101796;const kgml_Script____struct___147_s_rm_postseason_init_gml_GlobalScript_s_college_postseason=101797; const kgml_Script____struct___148_s_rm_postseason_init_gml_GlobalScript_s_college_postseason=101798;const kgml_Script____struct___149_s_rm_postseason_init_gml_GlobalScript_s_college_postseason=101799;const kgml_Script____struct___150_s_rm_postseason_init_gml_GlobalScript_s_college_postseason=101800;const kgml_Script_s_rm_postseason_init=101801;const kgml_Script_s_btn_postseason_skip_loading=101802;const kgml_Script_s_btn_postseason_skip=101803;const kgml_Script_s_btn_postseason_play=101804;const kgml_Script_s_postseason_goto_home=101805; const kgml_Script_s_btn_result_postseason_continue=101806;const kgml_Script_s_btn_postmatch_co_continue=101807;const kgml_Script_s_btn_postmatch_co_league=101808;const kgml_Script_s_postseason_show_news=101809;const kgml_Script_s_postseason_show_finals=101810;const kgml_Script_s_postseason_show_next_result=101811;const kgml_Script_s_postseason_show_finals_result=101812;const kgml_Script_s_btn_postseason_news_skip=101813;const kgml_Script_s_btn_postseason_news_continue=101814;const kgml_Script_s_postseason_results=101815; const kgml_Script____struct___151_s_create_postseason_result_gml_GlobalScript_s_college_postseason=101816;const kgml_Script____struct___152_s_create_postseason_result_gml_GlobalScript_s_college_postseason=101817;const kgml_Script_s_create_postseason_result=101818;const kgml_Script_s_postseason_results_data_sort=101819;const kgml_Script_s_get_postseason_result_by_cid=101820;const kgml_Script_s_get_competition_win_access=101821;const kgml_Script_s_get_fix_access_string=101822;const kgml_Script_s_get_fix_result_string=101823; const kgml_Script_s_skip_postseason_until_human_match=101824;const kgml_Script_s_skip_postseason_chunk=101825;const kgml_GlobalScript_s_get_nearest_opponent_by_position=101826;const kgml_Script_s_get_nearest_opponent_by_position=101827;const kgml_GlobalScript_s_set_position_defense_fg=101828;const kgml_Script_s_set_position_defense_fg=101829;const kgml_GlobalScript_s_set_position_offense_fg=101830;const kgml_Script_s_set_position_offense_fg=101831;const kgml_GlobalScript_s_get_skin_colour_by_index=101832; const kgml_Script_s_get_skin_colour_by_index=101833;const kgml_GlobalScript_s_point_to_path=101834;const kgml_Script_s_point_to_path=101835;const kgml_GlobalScript_s_intercept_object=101836;const kgml_Script_s_intercept_object=101837;const kgml_GlobalScript_s_cover_object=101838;const kgml_Script_s_cover_object=101839;const kgml_GlobalScript_s_get_nearest_opponent=101840;const kgml_Script_s_get_nearest_opponent=101841;const kgml_GlobalScript_s_aim_for_nearest_opponent=101842;const kgml_Script_s_aim_for_nearest_opponent=101843; const kgml_GlobalScript_s_get_distance_to_nearest_opponent=101844;const kgml_Script_s_get_distance_to_nearest_opponent=101845;const kgml_GlobalScript_s_get_distance_to_furthest_teammate=101846;const kgml_Script_s_get_distance_to_furthest_teammate=101847;const kgml_GlobalScript_s_get_destination=101848;const kgml_Script_s_get_destination=101849;const kgml_GlobalScript_s_check_human_control=101850;const kgml_Script_s_check_human_control=101851;const kgml_Script_s_do_dive=101852;const kgml_Script_s_do_stutterstep=101853; const kgml_GlobalScript_s_check_tackling=101854;const kgml_Script_s_check_tackling=101855;const kgml_GlobalScript_s_stop_tackling=101856;const kgml_Script_s_stop_tackling=101857;const kgml_GlobalScript_s_check_dive=101858;const kgml_Script_s_check_dive=101859;const kgml_GlobalScript_s_get_quarterback=101860;const kgml_Script_s_get_quarterback=101861;const kgml_GlobalScript_s_get_kicker=101862;const kgml_Script_s_get_kicker=101863;const kgml_GlobalScript_s_can_run=101864;const kgml_Script_s_can_run=101865;const kgml_GlobalScript_s_is_in_the_clear=101866; const kgml_Script_s_is_in_the_clear=101867;const kgml_GlobalScript_s_ball_holder_goalside=101868;const kgml_Script_s_ball_holder_goalside=101869;const kgml_GlobalScript_s_opponent_goalside=101870;const kgml_Script_s_opponent_goalside=101871;const kgml_GlobalScript_s_y_on_myside=101872;const kgml_Script_s_y_on_myside=101873;const kgml_GlobalScript_s_aim_AI_offense=101874;const kgml_Script_s_aim_AI_offense=101875;const kgml_GlobalScript_s_aim_AI_defense=101876;const kgml_Script_s_aim_AI_defense=101877;const kgml_GlobalScript_s_received_AI_new=101878; const kgml_Script_s_received_AI_new=101879;const kgml_GlobalScript_s_can_throw=101880;const kgml_Script_s_can_throw=101881;const kgml_GlobalScript_s_sprite_holding_ball=101882;const kgml_Script_s_sprite_holding_ball=101883;const kgml_GlobalScript_s_is_falling=101884;const kgml_Script_s_is_falling=101885;const kgml_GlobalScript_is_defensiveback=101886;const kgml_Script_is_defensiveback=101887;const kgml_GlobalScript_s_get_qb_name=101888;const kgml_Script_s_get_qb_name=101889;const kgml_GlobalScript_s_get_kicker_name=101890; const kgml_Script_s_get_kicker_name=101891;const kgml_GlobalScript_s_get_holder_name=101892;const kgml_Script_s_get_holder_name=101893;const kgml_GlobalScript_s_get_opponent_team_tla=101894;const kgml_Script_s_get_opponent_team_tla=101895;const kgml_GlobalScript_s_set_up_play=101896;const kgml_Script_s_set_up_play=101897;const kgml_Script_s_btn_audible_reposition=101898;const kgml_Script_s_btn_fieldgoal_reposition=101899;const kgml_GlobalScript_s_update_commentary=101900;const kgml_Script_s_update_commentary=101901; const kgml_Script_s_go_for_it_or_not=101902;const kgml_Script_s_check_skip_time_button=101903;const kgml_Script_btn_skip_time=101904;const kgml_Script_s_no_ties_allowed=101905;const kgml_Script_roster_short_desc=101906;const kgml_Script_roster_short_desc_tag=101907;const kgml_Script_slog_roster=101908;const kgml_Script_slog_master_roster=101909;const kgml_GlobalScript_s_choose_defensive_formation=101910;const kgml_Script_s_choose_defensive_formation=101911;const kgml_GlobalScript_s_set_up_fieldgoal=101912; const kgml_Script_s_set_up_fieldgoal=101913;const kgml_GlobalScript_s_subtract_time=101914;const kgml_Script_s_subtract_time=101915;const kgml_GlobalScript_s_update_game_timer=101916;const kgml_Script_s_update_game_timer=101917;const kgml_GlobalScript_s_update_game_clock=101918;const kgml_Script_s_update_game_clock=101919;const kgml_GlobalScript_s_update_yard_gain=101920;const kgml_Script_s_update_yard_gain=101921;const kgml_GlobalScript_s_set_rewarded_route=101922;const kgml_Script_s_set_rewarded_route=101923; const kgml_GlobalScript_s_switch_drivedirection=101924;const kgml_Script_s_switch_drivedirection=101925;const kgml_GlobalScript_s_destroy_match_objects=101926;const kgml_Script_s_destroy_match_objects=101927;const kgml_GlobalScript_s_action_result=101928;const kgml_Script_s_action_result=101929;const kgml_GlobalScript_s_is_quarter_over=101930;const kgml_Script_s_is_quarter_over=101931;const kgml_GlobalScript_s_is_on_pitch=101932;const kgml_Script_s_is_on_pitch=101933;const kgml_GlobalScript__poki_is_mobile=101934; const kgml_Script__poki_is_mobile=101935;const kgml_GlobalScript_s_is_on_pitch_xy=101936;const kgml_Script_s_is_on_pitch_xy=101937;const kgml_GlobalScript_s_end_match=101938;const kgml_Script_s_end_match=101939;const kgml_GlobalScript_s_update_stats=101940;const kgml_Script_s_update_stats=101941;const kgml_GlobalScript_s_convert_scrimmage_to_goal_distance=101942;const kgml_Script_s_convert_scrimmage_to_goal_distance=101943;const kgml_GlobalScript_s_kick_off=101944;const kgml_Script_s_kick_off=101945;const kgml_GlobalScript_s_punt=101946; const kgml_Script_s_punt=101947;const kgml_GlobalScript_s_change_possession=101948;const kgml_Script_s_change_possession=101949;const kgml_Script_s_force_possession=101950;const kgml_GlobalScript_s_tackle_failure=101951;const kgml_Script_s_tackle_failure=101952;const kgml_GlobalScript_s_last_secs_of_half=101953;const kgml_Script_s_last_secs_of_half=101954;const kgml_Script_s_seconds_remaining=101955;const kgml_GlobalScript_s_reset_wind=101956;const kgml_Script_s_reset_wind=101957;const kgml_GlobalScript_s_change_wind=101958; const kgml_Script_s_change_wind=101959;const kgml_GlobalScript_s_force_quit=101960;const kgml_Script_s_force_quit=101961;const kgml_GlobalScript_s_do_audible=101962;const kgml_Script_s_do_audible=101963;const kgml_GlobalScript_s_do_timeout=101964;const kgml_Script_s_do_timeout=101965;const kgml_GlobalScript_s_check_win_after_turnover=101966;const kgml_Script_s_check_win_after_turnover=101967;const kgml_Script_s_both_teams_had_possession=101968;const kgml_GlobalScript_s_clear_clock=101969;const kgml_Script_s_clear_clock=101970; const kgml_GlobalScript_s_fieldtxt=101971;const kgml_Script_s_fieldtxt=101972;const kgml_Script_s_fieldtxt_yards=101973;const kgml_Script_s_fieldimg=101974;const kgml_GlobalScript_s_fieldtxt_yards=101975;const kgml_GlobalScript_s_sound_audience_idle=101976;const kgml_Script_s_sound_audience_idle=101977;const kgml_GlobalScript_s_create_match_message=101978;const kgml_Script_s_create_match_message=101979;const kgml_Script_s_create_head2head_message=101980;const kgml_GlobalScript_s_draw_commentary=101981;const kgml_Script_s_draw_commentary=101982; const kgml_GlobalScript_s_draw_scoreboard=101983;const kgml_Script_s_draw_scoreboard=101984;const kgml_GlobalScript_s_draw_scrimmage=101985;const kgml_Script_s_draw_scrimmage=101986;const kgml_GlobalScript_s_draw_wind=101987;const kgml_Script_s_draw_wind=101988;const kgml_GlobalScript_s_draw_kicking_power=101989;const kgml_Script_s_draw_kicking_power=101990;const kgml_GlobalScript_s_draw_my_route=101991;const kgml_Script_s_draw_my_route=101992;const kgml_GlobalScript_s_draw_kick_cone=101993;const kgml_Script_s_draw_kick_cone=101994; const kgml_GlobalScript_s_check_draft_qb=101995;const kgml_Script_s_check_draft_QB=101996;const kgml_Script_s_do_qb_draft_round=101997;const kgml_Script_s_get_weakest_player_by_position=101998;const kgml_Script_s_find_draft_player_by_position=101999;const kgml_Script_s_get_player_by_position_for_qb_draft=102000;const kgml_Script_s_do_contract_news=102001;const kgml_Script_s_goto_room_contract=102002;const kgml_Script_btn_qb_mode_interested_teams=102003;const kgml_GlobalScript_s_update_my_shadow=102004;const kgml_Script_s_update_my_shadow=102005; const kgml_GlobalScript_s_set_up_practice=102006;const kgml_Script_s_set_up_practice=102007;const kgml_GlobalScript_s_practice_passing=102008;const kgml_Script_s_practice_passing=102009;const kgml_GlobalScript_s_reinstate_hof_player=102010;const kgml_Script_s_reinstate_hof_player=102011;const kgml_GlobalScript_s_practice_running=102012;const kgml_Script_s_practice_running=102013;const kgml_GlobalScript_s_practice_running_qb=102014;const kgml_Script_s_practice_running_qb=102015;const kgml_GlobalScript_s_obj_controller_helpers=102016; const kgml_Script_s_obj_controller_step=102017;const kgml_GlobalScript_s_create_dummy=102018;const kgml_Script_s_create_dummy=102019;const kgml_GlobalScript_s_create_boundary=102020;const kgml_Script_s_create_boundary=102021;const kgml_GlobalScript_debug_scripts=102022;const kgml_Script_s_debug_window_size=102023;const kgml_Script_s_is_debug_desktop=102024;const kgml_Script_s_set_desktop_dev_window_size=102025;const kgml_Script____struct___153_s_co_debug_access_gml_GlobalScript_debug_scripts=102026;const kgml_Script_s_co_debug_access=102027; const kgml_Script_s_debug_bypass=102028;const kgml_Script_s_debug_room_init=102029;const kgml_Script____struct___154_s_debug_init_menu_gml_GlobalScript_debug_scripts=102030;const kgml_Script____struct___155_s_debug_init_menu_gml_GlobalScript_debug_scripts=102031;const kgml_Script____struct___156_s_debug_init_menu_gml_GlobalScript_debug_scripts=102032;const kgml_Script____struct___157_s_debug_init_menu_gml_GlobalScript_debug_scripts=102033;const kgml_Script____struct___158_s_debug_init_menu_gml_GlobalScript_debug_scripts=102034; const kgml_Script____struct___159_s_debug_init_menu_gml_GlobalScript_debug_scripts=102035;const kgml_Script____struct___160_s_debug_init_menu_gml_GlobalScript_debug_scripts=102036;const kgml_Script____struct___161_s_debug_init_menu_gml_GlobalScript_debug_scripts=102037;const kgml_Script____struct___162_s_debug_init_menu_gml_GlobalScript_debug_scripts=102038;const kgml_Script____struct___163_s_debug_init_menu_gml_GlobalScript_debug_scripts=102039;const kgml_Script____struct___164_s_debug_init_menu_gml_GlobalScript_debug_scripts=102040; const kgml_Script____struct___165_s_debug_init_menu_gml_GlobalScript_debug_scripts=102041;const kgml_Script____struct___166_s_debug_init_menu_gml_GlobalScript_debug_scripts=102042;const kgml_Script____struct___167_s_debug_init_menu_gml_GlobalScript_debug_scripts=102043;const kgml_Script____struct___168_s_debug_init_menu_gml_GlobalScript_debug_scripts=102044;const kgml_Script_s_debug_init_menu=102045;const kgml_Script_s_give_debug_cc=102046;const kgml_Script_btn_click_debug_main=102047;const kgml_Script____struct___169_btn_click_debug_team_ranking_gml_GlobalScript_debug_scripts=102048; const kgml_Script_btn_click_debug_team_ranking=102049;const kgml_Script_btn_click_debug_test_screen=102050;const kgml_Script_btn_click_debug_review_screen=102051;const kgml_Script_btn_click_debug_skip_regular_season=102052;const kgml_Script_btn_click_debug_skip_next_match=102053;const kgml_Script_btn_click_debug_force_skip_result=102054;const kgml_Script_s_get_forced_skip_result_readout=102055;const kgml_Script_btn_click_debug_test_pool_creation=102056;const kgml_Script_btn_click_debug_team_editor_franchise_screen=102057; const kgml_Script_btn_click_debug_editor_screen=102058;const kgml_Script_btn_click_debug_switch_data_version=102059;const kgml_Script_s_get_alternative_data_version=102060;const kgml_Script____struct___170_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts=102061;const kgml_Script____struct___171_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts=102062;const kgml_Script____struct___172_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts=102063;const kgml_Script____struct___173_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts=102064; const kgml_Script_anon_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts_7686_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts=102065;const kgml_Script_s_debug_init_team_ranking=102066;const kgml_Script_btn_dbg_list_prev_conference=102067;const kgml_Script_btn_dbg_list_next_conference=102068;const kgml_Script_s_clamp_conference_id=102069;const kgml_Script_s_dbg_team_ranking_draw_gui=102070;const kgml_Script_btn_click_debug_test_sim_odds=102071;const kgml_Script_s_debug_list_bracketed_fixtures=102072; const kgml_Script_s_debug_start_time=102073;const kgml_Script_s_debug_show_time=102074;const kgml_Script_s_set_exception_reporter=102075;const kgml_Script_s_fake_crash=102076;const kgml_Script_s_fake_crash_safe=102077;const kgml_Script_s_safe_run=102078;const kgml_Script_s_safe_run_catch=102079;const kgml_Script_s_safe_run_msg=102080;const kgml_Script_s_safe_run_crash_report=102081;const kgml_Script_s_safe_run_crash_save=102082;const kgml_GlobalScript_s_sound_kick=102083;const kgml_Script_s_sound_kick=102084; const kgml_GlobalScript_s_sound_throw=102085;const kgml_Script_s_sound_throw=102086;const kgml_GlobalScript_s_sound_post=102087;const kgml_Script_s_sound_post=102088;const kgml_GlobalScript_s_sound_audience_dis=102089;const kgml_Script_s_sound_audience_dis=102090;const kgml_GlobalScript_s_sound_audience_fg=102091;const kgml_Script_s_sound_audience_fg=102092;const kgml_GlobalScript_s_sound_bounce=102093;const kgml_Script_s_sound_bounce=102094;const kgml_GlobalScript_s_sound_tackle=102095;const kgml_Script_s_sound_tackle=102096; const kgml_GlobalScript_s_sound_oof=102097;const kgml_Script_s_sound_oof=102098;const kgml_GlobalScript_s_sound_dive=102099;const kgml_Script_s_sound_dive=102100;const kgml_GlobalScript_s_sound_loop=102101;const kgml_Script_s_sound_loop=102102;const kgml_GlobalScript_s_qb_run=102103;const kgml_Script_s_qb_run=102104;const kgml_Script_s_qb_revert_throw=102105;const kgml_GlobalScript_s_throw_ball=102106;const kgml_Script_s_throw_ball=102107;const kgml_GlobalScript_s_record_frame=102108;const kgml_Script_s_record_frame=102109; const kgml_GlobalScript_s_replay_frame=102110;const kgml_Script_s_replay_frame=102111;const kgml_GlobalScript_s_start_replay=102112;const kgml_Script_s_start_replay=102113;const kgml_GlobalScript_s_end_replay=102114;const kgml_Script_s_end_replay=102115;const kgml_GlobalScript_s_get_qb_pmap=102116;const kgml_Script_s_get_qb_pmap=102117;const kgml_GlobalScript_s_create_message=102118;const kgml_Script_s_create_message=102119;const kgml_Script_s_message_recenter=102120;const kgml_Script_s_message_toggle=102121; const kgml_Script_s_create_message3=102122;const kgml_Script_s_do_message=102123;const kgml_Script_s_msg=102124;const kgml_Script_s_loading_button_hijack=102125;const kgml_Script_s_loading_trigger=102126;const kgml_Script____struct___174_s_loading_start_gml_GlobalScript_s_create_message=102127;const kgml_Script_s_loading_start=102128;const kgml_Script_s_loading_callback=102129;const kgml_GlobalScript_s_meter_change=102130;const kgml_Script_s_meter_change=102131;const kgml_GlobalScript_s_meter_change_end=102132; const kgml_Script_s_meter_change_end=102133;const kgml_GlobalScript_s_notification=102134;const kgml_Script_s_notification=102135;const kgml_GlobalScript_s_msg_clear=102136;const kgml_Script_s_msg_clear=102137;const kgml_GlobalScript_s_msg_clear_info_draft=102138;const kgml_Script_s_msg_clear_info_draft=102139;const kgml_GlobalScript_s_add_news=102140;const kgml_Script_s_add_news=102141;const kgml_Script_s_add_news_if_new=102142;const kgml_Script_s_remove_news=102143;const kgml_Script_s_add_news_dyn=102144; const kgml_GlobalScript_s_check_for_news=102145;const kgml_Script_s_check_for_news=102146;const kgml_Script_s_has_news=102147;const kgml_GlobalScript_s_news_clear=102148;const kgml_Script_s_news_clear=102149;const kgml_GlobalScript_s_do_banner_draft=102150;const kgml_Script_s_do_banner_draft=102151;const kgml_Script_s_do_banner_season_review=102152;const kgml_GlobalScript_s_do_review_message=102153;const kgml_Script_s_do_review_message=102154;const kgml_GlobalScript_btn_response_review_yes=102155;const kgml_Script_btn_response_review_yes=102156; const kgml_Script_btn_response_review_no=102157;const kgml_GlobalScript_s_edit_field=102158;const kgml_Script_s_edit_field=102159;const kgml_GlobalScript_s_edit_cancel=102160;const kgml_Script_s_edit_cancel=102161;const kgml_GlobalScript_s_edit_confirm_profile=102162;const kgml_Script_s_edit_confirm_profile=102163;const kgml_Script_s_update_boss_profile=102164;const kgml_GlobalScript_s_msg_timeouts=102165;const kgml_Script_s_msg_timeouts=102166;const kgml_GlobalScript_s_achievements=102167;const kgml_Script_s_complete_achievement=102168; const kgml_Script_s_achievement_is_valid=102169;const kgml_Script_s_exists_in_list=102170;const kgml_Script_s_count_achievement=102171;const kgml_Script_s_get_achievement=102172;const kgml_Script_s_get_achievement_percentage=102173;const kgml_Script_s_get_filtered_achievements=102174;const kgml_GlobalScript_s_get_record=102175;const kgml_Script_s_get_record=102176;const kgml_GlobalScript_s_check_record=102177;const kgml_Script_s_check_record=102178;const kgml_GlobalScript_s_check_record_text=102179;const kgml_Script_s_check_record_text=102180; const kgml_GlobalScript_s_sort_record_list=102181;const kgml_Script_s_sort_record_list=102182;const kgml_GlobalScript_s_get_player_name_for_record=102183;const kgml_Script_s_get_player_name_for_record=102184;const kgml_GlobalScript_s_check_repeat_retrobowls=102185;const kgml_Script_s_check_repeat_retrobowls=102186;const kgml_GlobalScript_s_create_player=102187;const kgml_Script_s_create_player_get_RC_cost=102188;const kgml_Script_s_create_player=102189;const kgml_GlobalScript_s_sort_players=102190;const kgml_Script_s_sort_players=102191; const kgml_GlobalScript_s_create_new_roster=102192;const kgml_Script_s_create_new_roster=102193;const kgml_GlobalScript_s_create_new_roster_newteam=102194;const kgml_Script_s_create_new_roster_newteam=102195;const kgml_Script_s_create_new_roster_cut_old_roster=102196;const kgml_GlobalScript_s_lastname_already_on_roster=102197;const kgml_Script_s_lastname_already_on_roster=102198;const kgml_GlobalScript_s_position_already_on_roster=102199;const kgml_Script_s_position_already_on_roster=102200;const kgml_GlobalScript_s_get_required_position=102201; const kgml_Script_s_get_required_position=102202;const kgml_Script_s_get_required_position_no_QB_RB=102203;const kgml_GlobalScript_s_get_player_rating=102204;const kgml_Script_s_get_player_rating=102205;const kgml_GlobalScript_s_get_player_potential=102206;const kgml_Script_s_get_player_potential=102207;const kgml_GlobalScript_s_obj_player_draw_begin=102208;const kgml_Script_s_obj_player_draw_begin=102209;const kgml_GlobalScript_s_college_competitions=102210;const kgml_Script_s_get_competition_id_from_fix=102211; const kgml_Script_s_get_competition_by_conference_division=102212;const kgml_Script_s_get_competition=102213;const kgml_Script_s_get_competitions_in_editor_group=102214;const kgml_Script_s_get_last_schedule_week=102215;const kgml_Script_s_get_postseason_fixture_by_week=102216;const kgml_Script_s_get_player_schedule_fixture_by_week=102217;const kgml_Script____struct___175_s_get_competition_win_access_list_gml_GlobalScript_s_college_competitions=102218;const kgml_Script_s_get_competition_win_access_list=102219; const kgml_Script_s_schedule_generation=102220;const kgml_Script_s_is_cyclic_competition_year=102221;const kgml_Script_s_schedule_add_game=102222;const kgml_Script_s_schedule_add_championship=102223;const kgml_Script_s_get_schedule_fix_template=102224;const kgml_Script_s_fixture_victory_screen=102225;const kgml_Script_s_handle_fixture_notification=102226;const kgml_Script_s_fixture_notifications_roster_cv_entry=102227;const kgml_Script_s_handle_fixture_history_record=102228;const kgml_Script_s_handle_fixture_reward=102229; const kgml_Script____struct___176_s_reset_competitions_and_subdivisions_pools_and_rankings_gml_GlobalScript_s_college_competitions=102230;const kgml_Script____struct___177_s_reset_competitions_and_subdivisions_pools_and_rankings_gml_GlobalScript_s_college_competitions=102231;const kgml_Script____struct___178_s_reset_competitions_and_subdivisions_pools_and_rankings_gml_GlobalScript_s_college_competitions=102232;const kgml_Script_s_reset_competitions_and_subdivisions_pools_and_rankings=102233;const kgml_Script_s_competitions_status_update=102234; const kgml_Script_s_competitions_update_quick_standings=102235;const kgml_Script_s_resolve_non_champ_conferences=102236;const kgml_Script_s_schedule_advance_teams=102237;const kgml_Script_s_schedule_move_better_team_to_home_slot=102238;const kgml_Script____struct___179_s_schedule_add_fixtag_gml_GlobalScript_s_college_competitions=102239;const kgml_Script_s_schedule_add_fixtag=102240;const kgml_Script_s_get_fixtag_priority=102241;const kgml_Script_s_fixtag_sort_priority=102242;const kgml_Script_s_competition_update_standings=102243; const kgml_Script_s_competition_reset_standings=102244;const kgml_Script_s_conference_update_standings=102245;const kgml_Script_s_subdivision_update_rankings=102246;const kgml_Script_s_conference_reset_standings=102247;const kgml_Script_s_subdivision_get_player_ranking=102248;const kgml_Script_s_subdivision_get_team_ranking=102249;const kgml_Script_s_get_my_conference_current_place=102250;const kgml_Script_s_update_human_postseason_fixtures=102251;const kgml_GlobalScript_s_get_player_by_position=102252;const kgml_Script_s_get_player_by_position=102253; const kgml_Script_s_get_player_by_position_from_roster=102254;const kgml_Script_s_get_player_kick_returner=102255;const kgml_GlobalScript_s_get_player_by_lname=102256;const kgml_Script_s_get_player_by_lname=102257;const kgml_GlobalScript_s_get_random_player=102258;const kgml_Script_s_get_random_player=102259;const kgml_GlobalScript_s_get_random_player_by_position=102260;const kgml_Script_s_get_random_player_by_position=102261;const kgml_Script_s_get_random_player_by_position_from_roster=102262;const kgml_GlobalScript_s_get_random_player_defensive=102263; const kgml_Script_s_get_random_player_defensive=102264;const kgml_GlobalScript_s_get_random_player_offensive=102265;const kgml_Script_s_get_random_player_offensive=102266;const kgml_GlobalScript_s_get_random_coach=102267;const kgml_Script_s_get_random_coach=102268;const kgml_GlobalScript_btn_click_qb_items=102269;const kgml_Script_btn_click_qb_items=102270;const kgml_Script_btn_click_qb_vehicles=102271;const kgml_Script_btn_click_qb_property=102272;const kgml_GlobalScript_s_count_players_by_position=102273; const kgml_Script_s_count_players_by_position=102274;const kgml_GlobalScript_s_count_players_onfield_by_position=102275;const kgml_Script_s_count_players_onfield_by_position=102276;const kgml_GlobalScript_s_count_defenders=102277;const kgml_Script_s_count_defenders=102278;const kgml_GlobalScript_btn_click_OptionsControls=102279;const kgml_Script_btn_click_OptionsControls=102280;const kgml_Script_btn_click_OptionsControls1=102281;const kgml_Script_btn_click_OptionsControls2=102282;const kgml_Script_btn_click_OptionsControls3=102283; const kgml_Script_s_update_control_screen=102284;const kgml_GlobalScript_s_get_position_colour=102285;const kgml_Script_s_get_position_colour=102286;const kgml_GlobalScript_s_gui_matchline=102287;const kgml_Script____struct___180_s_obj_matchLine_create_gml_GlobalScript_s_gui_matchline=102288;const kgml_Script_s_obj_matchLine_create=102289;const kgml_Script_s_obj_matchLine_step=102290;const kgml_Script_s_obj_matchLine_global_flick=102291;const kgml_Script_s_obj_matchLine_draw=102292;const kgml_Script_s_obj_matchLine_draw_gui=102293; const kgml_GlobalScript_s_increase_player_attribute=102294;const kgml_Script_s_increase_player_attribute=102295;const kgml_GlobalScript_s_player_at_max_potential=102296;const kgml_Script_s_player_at_max_potential=102297;const kgml_GlobalScript_s_is_offensive_player=102298;const kgml_Script_s_is_offensive_player=102299;const kgml_Script_s_get_training_reg=102300;const kgml_GlobalScript_s_is_defensive_player=102301;const kgml_Script_s_is_defensive_player=102302;const kgml_GlobalScript_s_get_average_yards=102303; const kgml_Script_s_get_average_yards=102304;const kgml_GlobalScript_s_get_player_name=102305;const kgml_Script_s_get_player_name=102306;const kgml_GlobalScript_s_get_meeting_cost_morale=102307;const kgml_Script_s_get_meeting_cost_morale=102308;const kgml_GlobalScript_s_get_meeting_cost_condition=102309;const kgml_Script_s_get_meeting_cost_condition=102310;const kgml_GlobalScript_s_get_meeting_cost_levelup=102311;const kgml_Script_s_get_meeting_cost_levelup=102312;const kgml_GlobalScript_s_get_meeting_cost_delay_retirement=102313; const kgml_Script_s_get_meeting_cost_delay_retirement=102314;const kgml_GlobalScript_s_get_meeting_cost_extend_contract=102315;const kgml_Script_s_get_meeting_cost_extend_contract=102316;const kgml_GlobalScript_s_get_match_rating=102317;const kgml_Script_s_get_match_rating=102318;const kgml_GlobalScript_s_reset_match_stats=102319;const kgml_Script_s_reset_match_stats=102320;const kgml_GlobalScript_s_toxic_effect_on_morale=102321;const kgml_Script_s_toxic_effect_on_morale=102322;const kgml_GlobalScript_s_match_rating_effect_on_morale=102323; const kgml_Script_s_match_rating_effect_on_morale=102324;const kgml_GlobalScript_s_training_regime_effect_on_morale=102325;const kgml_Script_s_training_regime_effect_on_morale=102326;const kgml_GlobalScript_s_injury_effect_on_attitude=102327;const kgml_Script_s_injury_effect_on_attitude=102328;const kgml_GlobalScript_s_rehab_effect=102329;const kgml_Script_s_rehab_effect=102330;const kgml_GlobalScript_s_add_xp_gain_all=102331;const kgml_Script_s_add_xp_gain_all=102332;const kgml_GlobalScript_s_check_for_injury=102333; const kgml_Script_s_check_for_injury=102334;const kgml_GlobalScript_s_count_injuries=102335;const kgml_Script_s_count_injuries=102336;const kgml_GlobalScript_s_count_injuries_weeks=102337;const kgml_Script_s_count_injuries_weeks=102338;const kgml_GlobalScript_s_college_reputation=102339;const kgml_Script_s_get_team_offense_with_reputation_boost=102340;const kgml_Script_s_get_team_defense_with_reputation_boost=102341;const kgml_Script_s_get_strength_with_reputation_boost=102342;const kgml_Script_s_get_reputation_points=102343; const kgml_Script_s_update_fixture_teams_reputation=102344;const kgml_Script_s_has_reputation_point=102345;const kgml_Script_s_update_all_teams_reputation=102346;const kgml_Script_s_update_team_reputation_flag=102347;const kgml_Script_s_update_team_reputation=102348;const kgml_Script_s_get_team_reputation_data=102349;const kgml_Script_s_set_team_reputation_data=102350;const kgml_Script_s_convert_reputation_string_to_data=102351;const kgml_Script_s_convert_reputation_data_to_string=102352;const kgml_Script____struct___181_s_create_reputation_data_gml_GlobalScript_s_college_reputation=102353; const kgml_Script_s_create_reputation_data=102354;const kgml_Script_s_update_reputation_data=102355;const kgml_Script_s_is_reputation_string_updated=102356;const kgml_Script_s_is_reputation_data_updated=102357;const kgml_Script_s_get_reputation_string_points=102358;const kgml_Script_s_get_reputation_data_points=102359;const kgml_Script_s_reputation_data_test=102360;const kgml_GlobalScript_s_choose_face=102361;const kgml_Script_s_choose_face=102362;const kgml_Script_s_face_from_set=102363;const kgml_Script_s_face_from_set_direct=102364; const kgml_GlobalScript_s_get_max_age=102365;const kgml_GlobalScript_s_get_max_age_normal=102366;const kgml_Script_s_get_max_age_normal=102367;const kgml_GlobalScript_s_get_num_audibles=102368;const kgml_Script_s_get_num_audibles=102369;const kgml_GlobalScript_s_get_morale=102370;const kgml_Script_s_get_morale=102371;const kgml_Script_s_get_morale_from_roster=102372;const kgml_GlobalScript_s_get_condition_squad=102373;const kgml_Script_s_get_condition_squad=102374;const kgml_Script_s_get_condition_squad_from_roster=102375; const kgml_GlobalScript_s_adjust_team_morale=102376;const kgml_Script_s_adjust_team_morale=102377;const kgml_Script_s_adjust_team_morale_ignore_freshman=102378;const kgml_GlobalScript_s_set_team_morale=102379;const kgml_Script_s_set_team_morale=102380;const kgml_GlobalScript_s_position_edit_name_btn=102381;const kgml_Script_s_position_edit_name_btn=102382;const kgml_GlobalScript_s_update_rest_all_button=102383;const kgml_Script_s_update_rest_all_button=102384;const kgml_GlobalScript_s_all_players_resting=102385; const kgml_Script_s_all_players_resting=102386;const kgml_GlobalScript_s_rest_all_players=102387;const kgml_Script_s_rest_all_players=102388;const kgml_GlobalScript_s_tag_backups=102389;const kgml_Script_s_tag_backups=102390;const kgml_Script_s_tag_backups_internal=102391;const kgml_GlobalScript_s_college_choose_team=102392;const kgml_Script____struct___182_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team=102393;const kgml_Script____struct___183_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team=102394; const kgml_Script____struct___184_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team=102395;const kgml_Script____struct___185_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team=102396;const kgml_Script____struct___186_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team=102397;const kgml_Script_s_rm_choose_team_co_init=102398;const kgml_Script_s_btn_minor=102399;const kgml_Script_s_btn_major=102400;const kgml_Script_s_choose_team_refresh_subdivision=102401;const kgml_Script_s_choose_team_refresh_conference=102402; const kgml_Script____struct___187_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team=102403;const kgml_Script____struct___188_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team=102404;const kgml_Script____struct___189_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team=102405;const kgml_Script____struct___190_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team=102406;const kgml_Script_s_choose_team_create_conference_buttons=102407; const kgml_Script_s_choose_team_btn_conference=102408;const kgml_Script____struct___191_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team=102409;const kgml_Script____struct___192_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team=102410;const kgml_Script____struct___194_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team=102411;const kgml_Script____struct___195_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team=102412; const kgml_Script_s_choose_team_create_team_buttons=102413;const kgml_Script_s_choose_team_btn_fav_team=102414;const kgml_Script_s_choose_team_btn_new_team=102415;const kgml_Script_s_choose_team_btn_back=102416;const kgml_Script_s_choose_team_btn_reject=102417;const kgml_Script_s_choose_team_conference_mode=102418;const kgml_Script_s_choose_team_subdivision_mode=102419;const kgml_Script_s_refresh_main_sections_buttons=102420;const kgml_GlobalScript_s_is_backup=102421;const kgml_Script_s_is_backup=102422;const kgml_GlobalScript_s_do_player_awards=102423; const kgml_Script_s_do_player_awards=102424;const kgml_Script_s_do_player_awards_college=102425;const kgml_Script_s_Award_OutstandingPOTY=102426;const kgml_Script_s_Award_ExtraordinaryAcademicPOTY=102427;const kgml_Script_s_Award_OffensivePOTY=102428;const kgml_Script_s_Award_DefensivePOTY=102429;const kgml_Script_s_Award_PositionPOTY=102430;const kgml_Script_s_Award_AnyPositionPOTY=102431;const kgml_Script_s_Award_CommunityServicePOTY=102432;const kgml_Script_s_Award_WalkOnPOTY=102433;const kgml_Script_s_Award_FreshmanPOTY=102434; const kgml_Script_s_Award_AcademicPrize=102435;const kgml_GlobalScript_s_award_sb_rings=102436;const kgml_Script_s_award_sb_rings=102437;const kgml_GlobalScript_s_round_player_attributes=102438;const kgml_Script_s_round_player_attributes=102439;const kgml_GlobalScript_s_get_store_player_by_position=102440;const kgml_Script_s_get_store_player_by_position=102441;const kgml_GlobalScript_s_create_new_stafflist=102442;const kgml_Script_s_create_new_stafflist=102443;const kgml_GlobalScript_s_create_staff=102444; const kgml_Script_s_create_staff=102445;const kgml_Script_s_create_headcoach_pmap=102446;const kgml_GlobalScript_s_create_hirelist=102447;const kgml_Script_s_create_hirelist=102448;const kgml_GlobalScript_s_sort_hirelist=102449;const kgml_Script_s_sort_hirelist=102450;const kgml_GlobalScript_s_reset_staff_hire_list=102451;const kgml_Script_s_reset_staff_hire_list=102452;const kgml_GlobalScript_s_get_staff=102453;const kgml_Script_s_get_staff=102454;const kgml_GlobalScript_s_is_staff=102455;const kgml_Script_s_is_staff=102456; const kgml_GlobalScript_s_get_coach_cost=102457;const kgml_Script_s_get_coach_cost=102458;const kgml_GlobalScript_s_coach_trait_experience=102459;const kgml_Script_s_coach_trait_experience=102460;const kgml_GlobalScript_s_coach_trait_talentspotter=102461;const kgml_Script_s_coach_trait_talentspotter=102462;const kgml_GlobalScript_s_coach_trait_motivator=102463;const kgml_Script_s_coach_trait_motivator=102464;const kgml_GlobalScript_btn_click_qb_training=102465;const kgml_Script_btn_click_qb_training=102466; const kgml_Script_s_do_qb_training=102467;const kgml_GlobalScript_btn_click_GenerateCharacter=102468;const kgml_Script_btn_click_GenerateCharacter=102469;const kgml_GlobalScript_s_count_trait_fanfavorite=102470;const kgml_Script_s_count_trait_fanfavorite=102471;const kgml_GlobalScript_s_count_trait_scout=102472;const kgml_Script_s_count_trait_scout=102473;const kgml_GlobalScript_s_fire_coach=102474;const kgml_Script_s_fire_coach=102475;const kgml_GlobalScript_s_check_contracts_expiring=102476;const kgml_Script_s_check_contracts_expiring=102477; const kgml_GlobalScript_s_str=102478;const kgml_Script_s_str=102479;const kgml_Script_s_str_u=102480;const kgml_Script_s_str_real=102481;const kgml_Script_s_strf=102482;const kgml_Script_s_strfl=102483;const kgml_Script_s_co_str=102484;const kgml_Script_s_co_str_real=102485;const kgml_GlobalScript_s_split_string=102486;const kgml_Script_s_split_string=102487;const kgml_GlobalScript_s_parse_news=102488;const kgml_Script_s_parse_news=102489;const kgml_GlobalScript_s_parse_intro=102490;const kgml_Script_s_parse_intro=102491; const kgml_GlobalScript_s_parse_player_message=102492;const kgml_Script_s_parse_player_message=102493;const kgml_GlobalScript_s_strP=102494;const kgml_Script_s_strP=102495;const kgml_GlobalScript_s_sim_stat_increment=102496;const kgml_Script_s_sim_stat_increment=102497;const kgml_Script_s_sim_stat_update=102498;const kgml_Script_s_sim_stat_touchdown=102499;const kgml_Script_s_sim_stat_pass=102500;const kgml_Script_s_sim_stat_run=102501;const kgml_Script_s_sim_stat_fumble=102502;const kgml_Script_s_sim_stat_interception=102503; const kgml_Script_s_sim_stat_sack=102504;const kgml_GlobalScript_s_parse_string=102505;const kgml_Script_s_parse_string=102506;const kgml_GlobalScript_s_crop_text=102507;const kgml_Script_s_crop_text=102508;const kgml_GlobalScript_s_get_string_ball_state=102509;const kgml_Script_s_get_string_ball_state=102510;const kgml_GlobalScript_s_get_string_state=102511;const kgml_Script_s_get_string_state=102512;const kgml_GlobalScript_s_get_string_sex=102513;const kgml_Script_s_get_string_sex=102514;const kgml_GlobalScript_s_get_string_heshe=102515; const kgml_Script_s_get_string_heshe=102516;const kgml_GlobalScript_s_get_string_time=102517;const kgml_Script_s_get_string_time=102518;const kgml_GlobalScript_s_string_rand=102519;const kgml_Script_s_string_rand=102520;const kgml_GlobalScript_s_get_string_downand=102521;const kgml_Script_s_get_string_downand=102522;const kgml_GlobalScript_s_get_string_float=102523;const kgml_Script_s_get_string_float=102524;const kgml_GlobalScript_s_get_string_division=102525;const kgml_Script_s_get_string_division=102526; const kgml_GlobalScript_s_get_string_conference=102527;const kgml_Script_s_get_string_conference=102528;const kgml_GlobalScript_s_get_string_week=102529;const kgml_Script_s_get_string_week=102530;const kgml_GlobalScript_s_get_string_week_short=102531;const kgml_Script_s_get_string_week_short=102532;const kgml_GlobalScript_s_get_string_year=102533;const kgml_Script_s_get_string_year=102534;const kgml_GlobalScript_s_get_string_commstage=102535;const kgml_Script_s_get_string_commstage=102536;const kgml_GlobalScript_s_get_string_position=102537; const kgml_Script_s_get_string_position=102538;const kgml_GlobalScript_s_get_string_position_full=102539;const kgml_Script_s_get_string_position_full=102540;const kgml_GlobalScript_s_get_string_attitude=102541;const kgml_Script_s_get_string_attitude=102542;const kgml_GlobalScript_s_college_room_tools=102543;const kgml_Script____struct___196=102544;const kgml_Script_s_goto_room=102545;const kgml_Script_anon_s_init_rm_gml_GlobalScript_s_college_room_tools_653_s_init_rm_gml_GlobalScript_s_college_room_tools=102546; const kgml_Script_s_init_rm=102547;const kgml_Script____struct___197_s_destroy_rm_gml_GlobalScript_s_college_room_tools=102548;const kgml_Script_s_destroy_rm=102549;const kgml_Script____struct___198_s_create_title_gml_GlobalScript_s_college_room_tools=102550;const kgml_Script_s_create_title=102551;const kgml_Script_s_create_button=102552;const kgml_Script_anon_s_destroy_dynamic_buttons_gml_GlobalScript_s_college_room_tools_1336_s_destroy_dynamic_buttons_gml_GlobalScript_s_college_room_tools=102553;const kgml_Script_s_destroy_dynamic_buttons=102554; const kgml_Script____struct___199_s_calc_grid_coords_gml_GlobalScript_s_college_room_tools=102555;const kgml_Script_s_calc_grid_coords=102556;const kgml_Script____struct___200_s_show_rm_winners_gml_GlobalScript_s_college_room_tools=102557;const kgml_Script_s_show_rm_winners=102558;const kgml_GlobalScript_s_get_string_trade_value=102559;const kgml_Script_s_get_string_trade_value=102560;const kgml_GlobalScript_s_get_string_anim=102561;const kgml_Script_s_get_string_anim=102562;const kgml_GlobalScript_s_get_string_condition=102563; const kgml_Script_s_get_string_condition=102564;const kgml_GlobalScript_s_get_string_record=102565;const kgml_Script_s_get_string_record=102566;const kgml_Script_s_get_string_record_co_extended=102567;const kgml_Script_s_get_string_conf_tag=102568;const kgml_GlobalScript_s_get_string_trait=102569;const kgml_Script_s_get_string_trait=102570;const kgml_GlobalScript_s_get_string_action_result=102571;const kgml_Script_s_get_string_action_result=102572;const kgml_GlobalScript_s_can_touchback=102573;const kgml_Script_s_can_touchback=102574; const kgml_GlobalScript_s_get_string_performance=102575;const kgml_Script_s_get_string_performance=102576;const kgml_GlobalScript_s_get_random_teamname=102577;const kgml_Script_s_get_random_teamname=102578;const kgml_Script_s_get_random_team_id=102579;const kgml_GlobalScript_btn_click_Roster_List=102580;const kgml_Script_btn_click_Roster_List=102581;const kgml_GlobalScript_s_get_string_picks=102582;const kgml_Script_s_get_string_picks=102583;const kgml_GlobalScript_s_get_team_by_id=102584;const kgml_Script_s_get_team_by_id=102585; const kgml_Script_s_get_team_by_id_internal=102586;const kgml_GlobalScript_s_get_team_name_by_id=102587;const kgml_Script_s_get_team_name_by_id=102588;const kgml_GlobalScript_s_get_team_tla_by_id=102589;const kgml_Script_s_get_team_tla_by_id=102590;const kgml_GlobalScript_s_sort_teams=102591;const kgml_Script_s_sort_teams=102592;const kgml_GlobalScript_s_get_team_by_seed=102593;const kgml_Script_s_get_team_by_seed=102594;const kgml_Script_s_get_team_by_seed_co=102595;const kgml_Script_s_get_team_seeding=102596; const kgml_GlobalScript_s_get_team_id_by_seed=102597;const kgml_Script_s_get_team_id_by_seed=102598;const kgml_GlobalScript_s_get_team_name_by_seed=102599;const kgml_Script_s_get_team_name_by_seed=102600;const kgml_GlobalScript_s_get_team_offense=102601;const kgml_Script_s_get_team_offense=102602;const kgml_Script_s_get_team_offense_exh=102603;const kgml_Script_s_get_team_offense_from_roster=102604;const kgml_GlobalScript_s_get_defense_attribute=102605;const kgml_Script_s_get_defense_attribute=102606;const kgml_Script_s_get_attribute=102607; const kgml_Script_s_attribute_buff=102608;const kgml_GlobalScript_s_get_team_defense=102609;const kgml_Script_s_get_team_defense=102610;const kgml_Script_s_get_team_defense_exh=102611;const kgml_Script_s_get_team_defense_from_roster=102612;const kgml_GlobalScript_s_get_salary_total=102613;const kgml_Script_s_get_salary_total=102614;const kgml_GlobalScript_s_refactor_team_strengths=102615;const kgml_Script_s_refactor_team_strengths=102616;const kgml_GlobalScript_s_get_team_winpct=102617;const kgml_Script_s_get_team_winpct=102618; const kgml_GlobalScript_s_get_team_net_points=102619;const kgml_Script_s_get_team_net_points=102620;const kgml_GlobalScript_s_get_points_versus=102621;const kgml_Script_s_get_points_versus=102622;const kgml_GlobalScript_s_get_wins_versus=102623;const kgml_Script_s_get_wins_versus=102624;const kgml_GlobalScript_s_get_point_swing=102625;const kgml_Script_s_get_point_swing=102626;const kgml_Script_s_get_head_to_head=102627;const kgml_Script_s_get_win_pecentage_by_confdiv=102628;const kgml_GlobalScript_s_get_points_season=102629; const kgml_Script_s_get_points_season=102630;const kgml_GlobalScript_s_practice_qb_mode=102631;const kgml_Script_s_practice_qb_mode=102632;const kgml_Script_s_end_qb_mode_practice=102633;const kgml_Script_s_quit_qb_mode_practice=102634;const kgml_GlobalScript_s_col_hex_to_r=102635;const kgml_Script_s_col_hex_to_r=102636;const kgml_GlobalScript_s_col_hex_to_g=102637;const kgml_Script_s_col_hex_to_g=102638;const kgml_GlobalScript_s_col_hex_to_b=102639;const kgml_Script_s_col_hex_to_b=102640;const kgml_GlobalScript_s_hex_string_to_col=102641; const kgml_Script_s_hex_string_to_col=102642;const kgml_GlobalScript_s_rgb_to_bgr=102643;const kgml_Script_s_rgb_to_bgr=102644;const kgml_GlobalScript_s_set_up_globals=102645;const kgml_Script_s_set_up_globals=102646;const kgml_Script_s_set_up_temp_variables=102647;const kgml_GlobalScript_slog=102648;const kgml_Script_slog=102649;const kgml_Script_slog2=102650;const kgml_Script_slogf=102651;const kgml_Script_slog_map=102652;const kgml_Script_slog_struct=102653;const kgml_GlobalScript_s_sound=102654;const kgml_Script_s_sound=102655; const kgml_Script_s_sound_brass_setup=102656;const kgml_Script_s_sound_brass_loop=102657;const kgml_Script_s_stop_brass_loop=102658;const kgml_Script_s_stop_brass_loop_finalize=102659;const kgml_GlobalScript_s_make_random_colour=102660;const kgml_Script_s_make_random_colour=102661;const kgml_GlobalScript_s_lines_intersect=102662;const kgml_Script_s_lines_intersect=102663;const kgml_GlobalScript_s_log_player=102664;const kgml_Script_s_log_player=102665;const kgml_GlobalScript_s_get_random_college_name=102666; const kgml_Script_s_get_random_college_name=102667;const kgml_GlobalScript_s_get_random_charity=102668;const kgml_Script_s_get_random_charity=102669;const kgml_GlobalScript_s_get_aim_direction=102670;const kgml_Script_s_get_aim_direction=102671;const kgml_GlobalScript_s_get_random_first_name=102672;const kgml_Script_s_get_random_first_name=102673;const kgml_GlobalScript_s_get_random_last_name=102674;const kgml_Script_s_get_random_last_name=102675;const kgml_GlobalScript_s_format_hex_color=102676;const kgml_Script_s_format_hex_color=102677; const kgml_GlobalScript_s_color_to_hex=102678;const kgml_Script_s_color_to_hex=102679;const kgml_GlobalScript_s_gui_helpers=102680;const kgml_Script_s_create_label=102681;const kgml_Script_s_is_new_shadow=102682;const kgml_GlobalScript_btn_click_SeasonReviewBack=102683;const kgml_Script____struct___201_btn_click_SeasonReviewBack_gml_GlobalScript_btn_click_SeasonReviewBack=102684;const kgml_Script_btn_click_SeasonReviewBack=102685;const kgml_GlobalScript_s_dec_to_hex=102686;const kgml_Script_s_dec_to_hex=102687; const kgml_GlobalScript_s_roman_numerals=102688;const kgml_Script_s_roman_numerals=102689;const kgml_GlobalScript_s_get_watermark_color=102690;const kgml_Script_s_get_watermark_color=102691;const kgml_GlobalScript_s_generate_uid=102692;const kgml_Script_s_generate_uid=102693;const kgml_GlobalScript_gmcallback_poki_loadbar=102694;const kgml_Script_gmcallback_poki_loadbar=102695;const kgml_GlobalScript_poki_pause=102696;const kgml_Script_poki_pause=102697;const kgml_GlobalScript_s_set_up_qb_pmap=102698;const kgml_Script_s_set_up_qb_pmap=102699; const kgml_GlobalScript_poki_resume=102700;const kgml_Script_poki_resume=102701;const kgml_GlobalScript_scale_canvas=102702;const kgml_Script_scale_canvas=102703;const kgml_GlobalScript_s_update_camera=102704;const kgml_Script_s_update_camera=102705;const kgml_GlobalScript__poki_gameplay_start=102706;const kgml_Script__poki_gameplay_start=102707;const kgml_GlobalScript__poki_gameplay_stop=102708;const kgml_Script__poki_gameplay_stop=102709;const kgml_GlobalScript_s_find_gamepad=102710;const kgml_Script_s_find_gamepad=102711; const kgml_Script_s_gamepad_is_fingerprint_sensor=102712;const kgml_GlobalScript_s_update_gamepad=102713;const kgml_Script_s_update_gamepad=102714;const kgml_Script_s_gamepad_async=102715;const kgml_Script_s_gamepad_activity=102716;const kgml_Script_s_clear_last_selected_history=102717;const kgml_Script_s_overwrite_last_selected=102718;const kgml_Script____struct___202_s_save_last_selected_gml_GlobalScript_s_update_gamepad=102719;const kgml_Script_s_save_last_selected=102720;const kgml_Script_s_get_last_selected=102721; const kgml_Script____struct___203_s_reset_gamepad_gml_GlobalScript_s_update_gamepad=102722;const kgml_Script_s_reset_gamepad=102723;const kgml_Script_s_update_gamepad_data=102724;const kgml_Script_s_update_ui_selected=102725;const kgml_Script____struct___204_s_multiplayer_init_gml_GlobalScript_s_update_gamepad=102726;const kgml_Script_s_multiplayer_init=102727;const kgml_Script_s_is_multicon_wanted=102728;const kgml_Script_s_toggle_multicon_wanted=102729;const kgml_Script_s_multicon_reset=102730;const kgml_Script_s_multicon_init=102731; const kgml_Script_s_refresh_gamepads=102732;const kgml_Script_s_gamepad_lv_dir=102733;const kgml_Script_s_set_multicon_active=102734;const kgml_Script_s_set_multicon_turn=102735;const kgml_Script_s_multicon_save_turn=102736;const kgml_Script_s_multicon_restore_turn=102737;const kgml_Script_s_is_turn=102738;const kgml_Script_s_is_multicon=102739;const kgml_Script_s_get_multicon_current_pad=102740;const kgml_Script_s_set_multicon_touch=102741;const kgml_Script_s_is_touch_allowed=102742;const kgml_Script_s_is_ui_selected=102743; const kgml_Script_s_ui_selected_color=102744;const kgml_GlobalScript_s_find_default_button=102745;const kgml_Script_s_find_default_button=102746;const kgml_GlobalScript_s_get_watermarked_stats=102747;const kgml_Script_s_get_watermarked_stats=102748;const kgml_GlobalScript_s_get_qb_energy=102749;const kgml_Script_s_get_qb_energy=102750;const kgml_GlobalScript_btn_click_external_links=102751;const kgml_Script_btn_click_BuyMerch=102752;const kgml_Script_btn_click_MusicBy=102753;const kgml_Script_btn_click_YouTube=102754; const kgml_Script_btn_click_RecordBook=102755;const kgml_Script_btn_click_Leagues=102756;const kgml_Script_btn_click_ad_NSS=102757;const kgml_Script_btn_click_ad_NSM=102758;const kgml_Script_btn_click_ad_RG=102759;const kgml_Script_btn_click_ad_NSB=102760;const kgml_Script_btn_click_ad_RB=102761;const kgml_Script_btn_click_ad_GP=102762;const kgml_Script_btn_click_NewStarGames=102763;const kgml_GlobalScript_s_do_prematch_dilemma_qb=102764;const kgml_Script_s_do_prematch_dilemma_qb=102765;const kgml_GlobalScript_s_sound_audience_catch=102766; const kgml_Script_s_sound_audience_catch=102767;const kgml_GlobalScript_s_college_overtime=102768;const kgml_Script_s_college_overtime_start=102769;const kgml_Script_s_college_overtime_handle_play_end=102770;const kgml_Script_s_college_overtime_setup_new_possesion=102771;const kgml_Script_s_college_overtime_offer_kick=102772;const kgml_Script_s_college_overtime_next_round=102773;const kgml_Script_s_college_overtime_possession_count=102774;const kgml_Script_s_college_overtime_one_team_won=102775;const kgml_Script_s_college_overtime_other_teams_turn=102776; const kgml_Script_s_college_overtime_trigger_point_conversion=102777;const kgml_Script_s_college_overtime_flip_possession=102778;const kgml_Script_s_college_overtime_score_hack=102779;const kgml_Script_s_co_poss_str=102780;const kgml_Script_btn_click_toggle_college_overtime_debug=102781;const kgml_Script_s_refresh_btn_overtime_text=102782;const kgml_GlobalScript_s_player_gpa=102783;const kgml_Script_s_gpa_from_percent_grade=102784;const kgml_Script_s_gpa_string=102785;const kgml_Script_s_gpa_string_direct=102786; const kgml_Script_s_decay_percent_grade=102787;const kgml_Script_s_debug_recover_percent_grade=102788;const kgml_Script_s_post_match_gpa_refresh=102789;const kgml_Script_s_add_percent_grade=102790;const kgml_Script_s_get_decay=102791;const kgml_Script_s_get_decay_info=102792;const kgml_Script_s_refresh_suspended=102793;const kgml_Script_s_get_percent_grade_squad=102794;const kgml_Script_btn_click_Boost_GPA=102795;const kgml_Script_btn_response_boost_gpa=102796;const kgml_Script_s_my_team_academics=102797;const kgml_Script_s_player_grade_suspend=102798; const kgml_Script_s_player_grade_suspend_from_age=102799;const kgml_Script_s_player_grade_lift_suspension=102800;const kgml_Script_s_gpa_step_from_percent_grade=102801;const kgml_Script_s_percent_grade_from_gpa_step_UPPER=102802;const kgml_Script_s_player_gpa_color=102803;const kgml_Script_s_player_gpa_colors_info=102804;const kgml_GlobalScript_s_canvas_fullscreen=102805;const kgml_Script_s_canvas_fullscreen=102806;const kgml_GlobalScript_s_startup=102807;const kgml_Script_s_startup=102808;const kgml_Script_s_startup_welcome_msg=102809; const kgml_Script_s_startup_set_master_variables=102810;const kgml_Script_s_startup_handle_saved_game=102811;const kgml_Script_s_startup_college_mode=102812;const kgml_Script_s_startup_browser=102813;const kgml_GlobalScript_s_player_party=102814;const kgml_Script_s_update_party_meter=102815;const kgml_Script_s_get_party_info=102816;const kgml_Script_s_add_to_party_meter=102817;const kgml_Script_s_clear_party_meter=102818;const kgml_Script_s_team_halve_all_party_meters=102819;const kgml_GlobalScript_btn_click_LeagueMode=102820; const kgml_Script_btn_click_LeagueMode=102821;const kgml_GlobalScript_pause_scripts=102822;const kgml_Script_s_pause_toggle=102823;const kgml_Script_s_pause_is_available=102824;const kgml_Script_s_pause_step=102825;const kgml_Script_s_is_paused_or_just_unpaused=102826;const kgml_Script_s_draw_pause=102827;const kgml_Script_s_pause_btn_init=102828;const kgml_Script_s_pause_btn_step=102829;const kgml_Script_s_pause_btn_draw_gui=102830;const kgml_Script_s_pause_btn_recenter=102831;const kgml_Script_s_pause_options_init=102832; const kgml_Script_s_pause_options_recenter=102833;const kgml_Script_s_pause_options_dismiss=102834;const kgml_Script_s_pause_options_draw_gui=102835;const kgml_Script_s_pause_options_layer=102836;const kgml_Script_s_pause_options_add_button=102837;const kgml_Script_s_pause_options_add_quit=102838;const kgml_Script_s_pause_options_update_buttons=102839;const kgml_Script_s_pause_options_button_action=102840;const kgml_Script_s_pause_options_quit_game=102841;const kgml_Script_btn_response_quit_exhibition_cancel=102842; const kgml_Script_btn_response_quit_exhibition_confirm=102843;const kgml_GlobalScript_s_draw_scoreboard_qb_training=102844;const kgml_Script_s_draw_scoreboard_qb_training=102845;const kgml_GlobalScript_s_update_manual_gestures=102846;const kgml_Script_s_update_manual_gestures=102847;const kgml_GlobalScript_s_obj_controller_draw_begin=102848;const kgml_Script_s_obj_controller_draw_begin=102849;const kgml_Script_s_hof_retrobowl_wins_franchise_create_gml_Object_obj_hof_retrobowl_wins_Create_0=102850;const kgml_Script_s_academic_gpa_limits_create_gml_Object_obj_hof_retrobowl_wins_Create_0=102851; const kgml_Script_s_hof_retrobowl_wins_franchise_draw_gml_Object_obj_hof_retrobowl_wins_Draw_64=102852;const kgml_Script_s_academic_gpa_limits_draw_gml_Object_obj_hof_retrobowl_wins_Draw_64=102853;const kgml_Script_s_draw_history_line_gml_Object_obj_hof_history_Draw_64=102854;const kgml_Script_s_draw_history_lines_college_gml_Object_obj_hof_history_Draw_64=102855;const kgml_Script_s_records_conf_only_games_gml_Object_obj_hof_records_coach_Create_0=102856;const kgml_Script_s_records_conf_only_pct_gml_Object_obj_hof_records_coach_Create_0=102857; const kgml_Script____struct___205_gml_Object_obj_frontoffice_Create_0=102858;const kgml_Script____struct___206_gml_Object_obj_home_Create_0=102859;gml_Script____struct___0_s_create_team_data_array_gml_GlobalScript_s_college_sorting.__yyg__is_constructor=true;gml_Script____struct___1_s_rm_league_co_init_gml_GlobalScript_s_college_league.__yyg__is_constructor=true;gml_Script____struct___2_s_rm_league_co_init_gml_GlobalScript_s_college_league.__yyg__is_constructor=true;gml_Script____struct___3_s_rm_league_co_init_gml_GlobalScript_s_college_league.__yyg__is_constructor=true; gml_Script____struct___4_s_rm_league_co_init_gml_GlobalScript_s_college_league.__yyg__is_constructor=true;gml_Script____struct___5_s_rm_league_co_init_gml_GlobalScript_s_college_league.__yyg__is_constructor=true;gml_Script____struct___6_s_rm_league_co_init_gml_GlobalScript_s_college_league.__yyg__is_constructor=true;gml_Script____struct___7_s_rm_league_co_init_gml_GlobalScript_s_college_league.__yyg__is_constructor=true;gml_Script____struct___8_s_rm_league_co_init_gml_GlobalScript_s_college_league.__yyg__is_constructor=true; gml_Script____struct___9_s_rm_league_co_init_gml_GlobalScript_s_college_league.__yyg__is_constructor=true;gml_Script____struct___10_s_rm_league_co_init_gml_GlobalScript_s_college_league.__yyg__is_constructor=true;gml_Script____struct___11_s_rm_league_co_init_gml_GlobalScript_s_college_league.__yyg__is_constructor=true;gml_Script____struct___12_s_rm_league_co_init_gml_GlobalScript_s_college_league.__yyg__is_constructor=true;gml_Script____struct___13_s_rm_league_co_init_gml_GlobalScript_s_college_league.__yyg__is_constructor=true; gml_Script____struct___14_s_rm_league_co_init_gml_GlobalScript_s_college_league.__yyg__is_constructor=true;gml_Script____struct___15_s_rm_league_co_init_gml_GlobalScript_s_college_league.__yyg__is_constructor=true;gml_Script____struct___16_s_rm_league_co_init_gml_GlobalScript_s_college_league.__yyg__is_constructor=true;gml_Script____struct___17_s_rm_league_co_init_gml_GlobalScript_s_college_league.__yyg__is_constructor=true;gml_Script____struct___18_s_rm_league_co_init_gml_GlobalScript_s_college_league.__yyg__is_constructor=true; gml_Script____struct___19_s_btn_league_mode_gml_GlobalScript_s_college_league.__yyg__is_constructor=true;gml_Script____struct___20_s_btn_league_subdivision_gml_GlobalScript_s_college_league.__yyg__is_constructor=true;gml_Script____struct___21_s_btn_league_next_conference_gml_GlobalScript_s_college_league.__yyg__is_constructor=true;gml_Script____struct___22_s_league_create_conference_buttons_gml_GlobalScript_s_college_league.__yyg__is_constructor=true;gml_Script____struct___23_s_league_btn_conference_gml_GlobalScript_s_college_league.__yyg__is_constructor=true; gml_Script____struct___24_s_league_create_conference_division_gml_GlobalScript_s_college_league.__yyg__is_constructor=true;gml_Script____struct___25_s_league_create_conference_division_gml_GlobalScript_s_college_league.__yyg__is_constructor=true;gml_Script____struct___26_s_league_create_ranking_panels_gml_GlobalScript_s_college_league.__yyg__is_constructor=true;gml_Script____struct___27_s_league_create_ranking_panels_gml_GlobalScript_s_college_league.__yyg__is_constructor=true;gml_Script____struct___28_s_league_create_schedule_panels_gml_GlobalScript_s_college_league.__yyg__is_constructor=true; gml_Script____struct___29_s_league_create_schedule_panels_gml_GlobalScript_s_college_league.__yyg__is_constructor=true;gml_Script____struct___30_s_league_create_schedule_panels_gml_GlobalScript_s_college_league.__yyg__is_constructor=true;gml_Script____struct___31_s_co_schedule_filter_format_gml_GlobalScript_s_college_league.__yyg__is_constructor=true;gml_Script____struct___32_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.__yyg__is_constructor=true;gml_Script____struct___33_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.__yyg__is_constructor=true; gml_Script____struct___34_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.__yyg__is_constructor=true;gml_Script____struct___35_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.__yyg__is_constructor=true;gml_Script____struct___36_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.__yyg__is_constructor=true;gml_Script____struct___37_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.__yyg__is_constructor=true;gml_Script____struct___38_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.__yyg__is_constructor=true; gml_Script____struct___39_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.__yyg__is_constructor=true;gml_Script____struct___40_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.__yyg__is_constructor=true;gml_Script____struct___41_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.__yyg__is_constructor=true;gml_Script____struct___42_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.__yyg__is_constructor=true;gml_Script____struct___43_s_set_matchlist_bracket_coords_gml_GlobalScript_s_college_league.__yyg__is_constructor=true; gml_Script____struct___44_s_obj_season_tally_create_gml_GlobalScript_season_tally_scripts.__yyg__is_constructor=true;gml_Script____struct___45_s_obj_season_tally_create_gml_GlobalScript_season_tally_scripts.__yyg__is_constructor=true;gml_Script____struct___46_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition.__yyg__is_constructor=true;gml_Script____struct___47_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition.__yyg__is_constructor=true;gml_Script____struct___48_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition.__yyg__is_constructor=true; gml_Script____struct___49_s_rm_edit_competition_init_gml_GlobalScript_s_college_edit_competition.__yyg__is_constructor=true;gml_Script____struct___50_s_editor_create_competition_fields_gml_GlobalScript_s_college_edit_competition.__yyg__is_constructor=true;gml_Script____struct___51_s_editor_create_text_field_gml_GlobalScript_s_college_edit_competition.__yyg__is_constructor=true;gml_Script____struct___52_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition.__yyg__is_constructor=true; gml_Script____struct___53_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition.__yyg__is_constructor=true;gml_Script____struct___54_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition.__yyg__is_constructor=true;gml_Script____struct___55_s_editor_create_partial_text_field_gml_GlobalScript_s_college_edit_competition.__yyg__is_constructor=true;gml_Script____struct___56_s_editor_create_location_field_gml_GlobalScript_s_college_edit_competition.__yyg__is_constructor=true; gml_Script____struct___57_s_editor_create_location_field_gml_GlobalScript_s_college_edit_competition.__yyg__is_constructor=true;gml_Script____struct___58_s_editor_create_location_field_gml_GlobalScript_s_college_edit_competition.__yyg__is_constructor=true;gml_Script____struct___59_s_editor_create_field_label_gml_GlobalScript_s_college_edit_competition.__yyg__is_constructor=true;gml_Script____struct___60_s_get_editor_mode_data_gml_GlobalScript_s_college_edit_competition.__yyg__is_constructor=true; gml_Script____struct___61_s_college_details_init_gml_GlobalScript_s_college_details.__yyg__is_constructor=true;gml_Script____struct___62_s_college_details_init_gml_GlobalScript_s_college_details.__yyg__is_constructor=true;gml_Script____struct___63_s_reset_team_selections_gml_GlobalScript_s_college_details.__yyg__is_constructor=true;gml_Script____struct___64_s_college_details_bottom_panel_init_gml_GlobalScript_s_college_details.__yyg__is_constructor=true;gml_Script____struct___65_s_college_details_bottom_panel_init_gml_GlobalScript_s_college_details.__yyg__is_constructor=true; gml_Script____struct___66_s_college_details_bottom_panel_init_gml_GlobalScript_s_college_details.__yyg__is_constructor=true;gml_Script____struct___67_s_college_details_bottom_panel_create_buttons_gml_GlobalScript_s_college_details.__yyg__is_constructor=true;gml_Script____struct___68_s_college_details_bottom_panel_create_buttons_gml_GlobalScript_s_college_details.__yyg__is_constructor=true;gml_Script____struct___69_s_qb_mode_new_contract_gml_GlobalScript_qb_contract_scripts.__yyg__is_constructor=true; gml_Script____struct___70_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.__yyg__is_constructor=true;gml_Script____struct___71_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.__yyg__is_constructor=true;gml_Script____struct___72_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.__yyg__is_constructor=true;gml_Script____struct___73_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.__yyg__is_constructor=true; gml_Script____struct___74_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.__yyg__is_constructor=true;gml_Script____struct___75_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.__yyg__is_constructor=true;gml_Script____struct___76_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.__yyg__is_constructor=true;gml_Script____struct___78_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.__yyg__is_constructor=true; gml_Script____struct___79_rm_player_profile_college_create_p1_gml_GlobalScript_s_college_gui_helpers.__yyg__is_constructor=true;gml_Script____struct___80_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.__yyg__is_constructor=true;gml_Script____struct___81_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.__yyg__is_constructor=true;gml_Script____struct___82_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.__yyg__is_constructor=true; gml_Script____struct___83_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.__yyg__is_constructor=true;gml_Script____struct___84_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.__yyg__is_constructor=true;gml_Script____struct___85_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.__yyg__is_constructor=true;gml_Script____struct___86_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.__yyg__is_constructor=true; gml_Script____struct___87_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.__yyg__is_constructor=true;gml_Script____struct___88_rm_player_profile_college_create_p2_gml_GlobalScript_s_college_gui_helpers.__yyg__is_constructor=true;gml_Script____struct___89_stats_player_button_entry_gml_GlobalScript_s_college_gui_helpers.__yyg__is_constructor=true;gml_Script____struct___90_rm_stats_player_configure_college_gml_GlobalScript_s_college_gui_helpers.__yyg__is_constructor=true; gml_Script____struct___91_rm_stats_player_configure_college_gml_GlobalScript_s_college_gui_helpers.__yyg__is_constructor=true;gml_Script____struct___92_s_parse_ranking_pos_gml_GlobalScript_s_college_ranking.__yyg__is_constructor=true;gml_Script____struct___93_s_display_college_draft_debug_gml_GlobalScript_s_college_draft.__yyg__is_constructor=true;gml_Script____struct___94_s_end_college_draft_late_gml_GlobalScript_s_college_draft.__yyg__is_constructor=true;gml_Script____struct___95_s_display_college_draft_roster_gml_GlobalScript_s_college_draft.__yyg__is_constructor=true; gml_Script____struct___96_s_display_college_draft_roster_gml_GlobalScript_s_college_draft.__yyg__is_constructor=true;gml_Script____struct___97_s_display_college_draft_roster_gml_GlobalScript_s_college_draft.__yyg__is_constructor=true;gml_Script____struct___98_s_display_college_draft_roster_gml_GlobalScript_s_college_draft.__yyg__is_constructor=true;gml_Script____struct___99_s_display_college_draft_roster_gml_GlobalScript_s_college_draft.__yyg__is_constructor=true;gml_Script____struct___100_s_card_layout_pos_gml_GlobalScript_s_college_draft.__yyg__is_constructor=true; gml_Script____struct___101_s_prestige_pool_add_gml_GlobalScript_s_college_competitions_seeding.__yyg__is_constructor=true;gml_Script____struct___102_s_get_competition_pool_gml_GlobalScript_s_college_competitions_seeding.__yyg__is_constructor=true;gml_Script____struct___103_s_get_tagged_source_gml_GlobalScript_s_college_competitions_seeding.__yyg__is_constructor=true;gml_Script____struct___104_s_keyboard_custom_init_gml_GlobalScript_keyboard_scripts.__yyg__is_constructor=true;gml_Script____struct___105_s_get_object_data_gml_GlobalScript_s_college_tools.__yyg__is_constructor=true; gml_Script____struct___106_btn_click_Change_Favourite_gml_GlobalScript_btn_click_Change_Favourite.__yyg__is_constructor=true;gml_Script____struct___107_btn_click_League_gml_GlobalScript_btn_click_League.__yyg__is_constructor=true;gml_Script____struct___108_s_rm_editor_init_gml_GlobalScript_s_college_editor.__yyg__is_constructor=true;gml_Script____struct___109_s_rm_editor_init_gml_GlobalScript_s_college_editor.__yyg__is_constructor=true;gml_Script____struct___110_s_rm_editor_init_gml_GlobalScript_s_college_editor.__yyg__is_constructor=true; gml_Script____struct___111_s_rm_editor_init_gml_GlobalScript_s_college_editor.__yyg__is_constructor=true;gml_Script____struct___112_s_rm_editor_init_gml_GlobalScript_s_college_editor.__yyg__is_constructor=true;gml_Script____struct___113_s_rm_editor_init_gml_GlobalScript_s_college_editor.__yyg__is_constructor=true;gml_Script____struct___114_s_rm_editor_init_gml_GlobalScript_s_college_editor.__yyg__is_constructor=true;gml_Script____struct___115_s_rm_editor_init_gml_GlobalScript_s_college_editor.__yyg__is_constructor=true; gml_Script____struct___116_s_rm_editor_init_gml_GlobalScript_s_college_editor.__yyg__is_constructor=true;gml_Script____struct___117_s_rm_editor_init_gml_GlobalScript_s_college_editor.__yyg__is_constructor=true;gml_Script____struct___118_s_btn_editor_edit_subdivision_gml_GlobalScript_s_college_editor.__yyg__is_constructor=true;gml_Script____struct___119_s_btn_editor_edit_conference_gml_GlobalScript_s_college_editor.__yyg__is_constructor=true;gml_Script____struct___120_s_btn_editor_select_bowl_competition_gml_GlobalScript_s_college_editor.__yyg__is_constructor=true; gml_Script____struct___121_s_save_editor_status_gml_GlobalScript_s_college_editor.__yyg__is_constructor=true;gml_Script____struct___122_s_get_editor_status_gml_GlobalScript_s_college_editor.__yyg__is_constructor=true;gml_Script____struct___123_s_editor_create_bowls_buttons_gml_GlobalScript_s_college_editor.__yyg__is_constructor=true;gml_Script____struct___124_s_editor_create_bowls_buttons_gml_GlobalScript_s_college_editor.__yyg__is_constructor=true;gml_Script____struct___125_s_create_slot_label_gml_GlobalScript_s_college_editor.__yyg__is_constructor=true; gml_Script____struct___126_s_editor_copy_buttons_gml_GlobalScript_s_college_editor.__yyg__is_constructor=true;gml_Script____struct___127_s_editor_copy_buttons_gml_GlobalScript_s_college_editor.__yyg__is_constructor=true;gml_Script____struct___128_s_editor_copy_buttons_gml_GlobalScript_s_college_editor.__yyg__is_constructor=true;gml_Script____struct___129_s_editor_copy_buttons_gml_GlobalScript_s_college_editor.__yyg__is_constructor=true;gml_Script____struct___130_s_editor_copy_buttons_gml_GlobalScript_s_college_editor.__yyg__is_constructor=true; gml_Script____struct___131_s_co_refresh_strings_gml_GlobalScript_s_load_strings.__yyg__is_constructor=true;gml_Script____struct___132_load_data_to_struct_array_gml_GlobalScript_s_load_teams.__yyg__is_constructor=true;gml_Script____struct___133_s_load_json_gml_GlobalScript_s_load_teams.__yyg__is_constructor=true;gml_Script____struct___134_s_calc_fix_type_gml_GlobalScript_s_load_schedule.__yyg__is_constructor=true;gml_Script____struct___135_s_co_get_sim_results_gml_GlobalScript_s_do_schedule.__yyg__is_constructor=true; gml_Script____struct___136_s_reset_to_version_gml_GlobalScript_s_college_data_versioning.__yyg__is_constructor=true;gml_Script____struct___137_s_custom_data_template_gml_GlobalScript_s_college_custom_data.__yyg__is_constructor=true;gml_Script____struct___138_s_custom_data_template_gml_GlobalScript_s_college_custom_data.__yyg__is_constructor=true;gml_Script____struct___139_s_custom_data_template_gml_GlobalScript_s_college_custom_data.__yyg__is_constructor=true;gml_Script____struct___140_s_custom_data_template_gml_GlobalScript_s_college_custom_data.__yyg__is_constructor=true; gml_Script____struct___141_s_get_or_create_custom_data_conference_gml_GlobalScript_s_college_custom_data.__yyg__is_constructor=true;gml_Script____struct___142_s_get_or_create_custom_data_competition_gml_GlobalScript_s_college_custom_data.__yyg__is_constructor=true;gml_Script____struct___143_s_co_subdivision_create_gml_GlobalScript_s_college_gui_panels.__yyg__is_constructor=true;gml_Script____struct___144_s_rm_postseason_init_gml_GlobalScript_s_college_postseason.__yyg__is_constructor=true;gml_Script____struct___145_s_rm_postseason_init_gml_GlobalScript_s_college_postseason.__yyg__is_constructor=true; gml_Script____struct___146_s_rm_postseason_init_gml_GlobalScript_s_college_postseason.__yyg__is_constructor=true;gml_Script____struct___147_s_rm_postseason_init_gml_GlobalScript_s_college_postseason.__yyg__is_constructor=true;gml_Script____struct___148_s_rm_postseason_init_gml_GlobalScript_s_college_postseason.__yyg__is_constructor=true;gml_Script____struct___149_s_rm_postseason_init_gml_GlobalScript_s_college_postseason.__yyg__is_constructor=true;gml_Script____struct___150_s_rm_postseason_init_gml_GlobalScript_s_college_postseason.__yyg__is_constructor=true; gml_Script____struct___151_s_create_postseason_result_gml_GlobalScript_s_college_postseason.__yyg__is_constructor=true;gml_Script____struct___152_s_create_postseason_result_gml_GlobalScript_s_college_postseason.__yyg__is_constructor=true;gml_Script____struct___153_s_co_debug_access_gml_GlobalScript_debug_scripts.__yyg__is_constructor=true;gml_Script____struct___154_s_debug_init_menu_gml_GlobalScript_debug_scripts.__yyg__is_constructor=true;gml_Script____struct___155_s_debug_init_menu_gml_GlobalScript_debug_scripts.__yyg__is_constructor=true; gml_Script____struct___156_s_debug_init_menu_gml_GlobalScript_debug_scripts.__yyg__is_constructor=true;gml_Script____struct___157_s_debug_init_menu_gml_GlobalScript_debug_scripts.__yyg__is_constructor=true;gml_Script____struct___158_s_debug_init_menu_gml_GlobalScript_debug_scripts.__yyg__is_constructor=true;gml_Script____struct___159_s_debug_init_menu_gml_GlobalScript_debug_scripts.__yyg__is_constructor=true;gml_Script____struct___160_s_debug_init_menu_gml_GlobalScript_debug_scripts.__yyg__is_constructor=true; gml_Script____struct___161_s_debug_init_menu_gml_GlobalScript_debug_scripts.__yyg__is_constructor=true;gml_Script____struct___162_s_debug_init_menu_gml_GlobalScript_debug_scripts.__yyg__is_constructor=true;gml_Script____struct___163_s_debug_init_menu_gml_GlobalScript_debug_scripts.__yyg__is_constructor=true;gml_Script____struct___164_s_debug_init_menu_gml_GlobalScript_debug_scripts.__yyg__is_constructor=true;gml_Script____struct___165_s_debug_init_menu_gml_GlobalScript_debug_scripts.__yyg__is_constructor=true; gml_Script____struct___166_s_debug_init_menu_gml_GlobalScript_debug_scripts.__yyg__is_constructor=true;gml_Script____struct___167_s_debug_init_menu_gml_GlobalScript_debug_scripts.__yyg__is_constructor=true;gml_Script____struct___168_s_debug_init_menu_gml_GlobalScript_debug_scripts.__yyg__is_constructor=true;gml_Script____struct___169_btn_click_debug_team_ranking_gml_GlobalScript_debug_scripts.__yyg__is_constructor=true;gml_Script____struct___170_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts.__yyg__is_constructor=true; gml_Script____struct___171_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts.__yyg__is_constructor=true;gml_Script____struct___172_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts.__yyg__is_constructor=true;gml_Script____struct___173_s_debug_init_team_ranking_gml_GlobalScript_debug_scripts.__yyg__is_constructor=true;gml_Script____struct___174_s_loading_start_gml_GlobalScript_s_create_message.__yyg__is_constructor=true;gml_Script____struct___175_s_get_competition_win_access_list_gml_GlobalScript_s_college_competitions.__yyg__is_constructor=true; gml_Script____struct___176_s_reset_competitions_and_subdivisions_pools_and_rankings_gml_GlobalScript_s_college_competitions.__yyg__is_constructor=true;gml_Script____struct___177_s_reset_competitions_and_subdivisions_pools_and_rankings_gml_GlobalScript_s_college_competitions.__yyg__is_constructor=true;gml_Script____struct___178_s_reset_competitions_and_subdivisions_pools_and_rankings_gml_GlobalScript_s_college_competitions.__yyg__is_constructor=true;gml_Script____struct___179_s_schedule_add_fixtag_gml_GlobalScript_s_college_competitions.__yyg__is_constructor=true; gml_Script____struct___180_s_obj_matchLine_create_gml_GlobalScript_s_gui_matchline.__yyg__is_constructor=true;gml_Script____struct___181_s_create_reputation_data_gml_GlobalScript_s_college_reputation.__yyg__is_constructor=true;gml_Script____struct___182_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team.__yyg__is_constructor=true;gml_Script____struct___183_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team.__yyg__is_constructor=true;gml_Script____struct___184_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team.__yyg__is_constructor=true; gml_Script____struct___185_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team.__yyg__is_constructor=true;gml_Script____struct___186_s_rm_choose_team_co_init_gml_GlobalScript_s_college_choose_team.__yyg__is_constructor=true;gml_Script____struct___187_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team.__yyg__is_constructor=true;gml_Script____struct___188_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team.__yyg__is_constructor=true; gml_Script____struct___189_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team.__yyg__is_constructor=true;gml_Script____struct___190_s_choose_team_create_conference_buttons_gml_GlobalScript_s_college_choose_team.__yyg__is_constructor=true;gml_Script____struct___191_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team.__yyg__is_constructor=true;gml_Script____struct___192_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team.__yyg__is_constructor=true; gml_Script____struct___194_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team.__yyg__is_constructor=true;gml_Script____struct___195_s_choose_team_create_team_buttons_gml_GlobalScript_s_college_choose_team.__yyg__is_constructor=true;gml_Script____struct___196.__yyg__is_constructor=true;gml_Script____struct___197_s_destroy_rm_gml_GlobalScript_s_college_room_tools.__yyg__is_constructor=true;gml_Script____struct___198_s_create_title_gml_GlobalScript_s_college_room_tools.__yyg__is_constructor=true; gml_Script____struct___199_s_calc_grid_coords_gml_GlobalScript_s_college_room_tools.__yyg__is_constructor=true;gml_Script____struct___200_s_show_rm_winners_gml_GlobalScript_s_college_room_tools.__yyg__is_constructor=true;gml_Script____struct___201_btn_click_SeasonReviewBack_gml_GlobalScript_btn_click_SeasonReviewBack.__yyg__is_constructor=true;gml_Script____struct___202_s_save_last_selected_gml_GlobalScript_s_update_gamepad.__yyg__is_constructor=true;gml_Script____struct___203_s_reset_gamepad_gml_GlobalScript_s_update_gamepad.__yyg__is_constructor=true; gml_Script____struct___204_s_multiplayer_init_gml_GlobalScript_s_update_gamepad.__yyg__is_constructor=true;gml_Script____struct___205_gml_Object_obj_frontoffice_Create_0.__yyg__is_constructor=true;gml_Script____struct___206_gml_Object_obj_home_Create_0.__yyg__is_constructor=true;var g_instance_names={"x":[true,true,true,null,null],"y":[true,true,true,null,null],"xprevious":[true,true,true,null,null],"yprevious":[true,true,true,null,null],"xstart":[true,true,true,null,null],"ystart":[true,true,true, null,null],"hspeed":[true,true,true,null,null],"vspeed":[true,true,true,null,null],"direction":[true,true,true,null,null],"speed":[true,true,true,null,null],"friction":[true,true,true,null,null],"gravity":[true,true,true,null,null],"gravity_direction":[true,true,true,null,null],"in_collision_tree":[true,false,true,null,null],"object_index":[true,false,false,null,null],"id":[true,false,false,null,null],"alarm":[true,true,true,null,null],"solid":[true,true,true,null,null],"visible":[true,true,true, null,null],"persistent":[true,true,true,null,null],"managed":[true,false,true,null,null],"depth":[true,true,true,null,null],"bbox_left":[true,false,false,null,null],"bbox_right":[true,false,false,null,null],"bbox_top":[true,false,false,null,null],"bbox_bottom":[true,false,false,null,null],"sprite_index":[true,true,true,null,null],"image_index":[true,true,true,null,null],"image_single":[true,true,true,null,null],"image_number":[true,false,false,null,null],"sprite_width":[true,false,false,null,null], "sprite_height":[true,false,false,null,null],"sprite_xoffset":[true,false,false,null,null],"sprite_yoffset":[true,false,false,null,null],"image_xscale":[true,true,true,null,null],"image_yscale":[true,true,true,null,null],"image_angle":[true,true,true,null,null],"image_alpha":[true,true,true,null,null],"image_blend":[true,true,true,null,null],"image_speed":[true,true,true,null,null],"mask_index":[true,true,true,null,null],"path_index":[true,false,false,null,null],"path_position":[true,true,true,null, null],"path_positionprevious":[true,true,true,null,null],"path_speed":[true,true,true,null,null],"path_scale":[true,true,true,null,null],"path_orientation":[true,true,true,null,null],"path_endaction":[true,true,true,null,null],"timeline_index":[true,true,true,null,null],"timeline_position":[true,true,true,null,null],"timeline_speed":[true,true,true,null,null],"timeline_running":[true,true,true,null,null],"timeline_loop":[true,true,true,null,null],"phy_rotation":[true,true,true,null,null],"phy_position_x":[true, true,true,null,null],"phy_position_y":[true,true,true,null,null],"phy_angular_velocity":[true,true,true,null,null],"phy_linear_velocity_x":[true,true,true,null,null],"phy_linear_velocity_y":[true,true,true,null,null],"phy_speed_x":[true,true,true,null,null],"phy_speed_y":[true,true,true,null,null],"phy_speed":[true,false,true,null,null],"phy_angular_damping":[true,true,true,null,null],"phy_linear_damping":[true,true,true,null,null],"phy_bullet":[true,true,true,null,null],"phy_fixed_rotation":[true, true,true,null,null],"phy_active":[true,true,true,null,null],"phy_mass":[true,false,true,null,null],"phy_inertia":[true,false,true,null,null],"phy_com_x":[true,false,true,null,null],"phy_com_y":[true,false,true,null,null],"phy_dynamic":[true,false,true,null,null],"phy_kinematic":[true,false,true,null,null],"phy_sleeping":[true,false,true,null,null],"phy_position_xprevious":[true,true,true,null,null],"phy_position_yprevious":[true,true,true,null,null],"phy_collision_points":[true,false,true,null, null],"layer":[true,true,true,null,null],"in_sequence":[true,false,true,null,null],"sequence_instance":[true,false,true,null,null],"drawn_by_sequence":[true,false,true,null,null],"phy_collision_x":[true,false,true,null,null],"phy_collision_y":[true,false,true,null,null],"phy_col_normal_x":[true,false,true,null,null],"phy_col_normal_y":[true,false,true,null,null]};var g_global_names={"argument_relative":[true,false,false,"get_argument_relative",null],"argument_count":[true,false,false,null,null],"argument":[true, true,true,null,null],"argument0":[true,true,true,null,null],"argument1":[true,true,true,null,null],"argument2":[true,true,true,null,null],"argument3":[true,true,true,null,null],"argument4":[true,true,true,null,null],"argument5":[true,true,true,null,null],"argument6":[true,true,true,null,null],"argument7":[true,true,true,null,null],"argument8":[true,true,true,null,null],"argument9":[true,true,true,null,null],"argument10":[true,true,true,null,null],"argument11":[true,true,true,null,null],"argument12":[true, true,true,null,null],"argument13":[true,true,true,null,null],"argument14":[true,true,true,null,null],"argument15":[true,true,true,null,null],"debug_mode":[true,false,true,null,null],"pointer_invalid":[true,false,false,null,null],"pointer_null":[true,false,false,null,null],"undefined":[true,false,false,null,null],"NaN":[true,false,false,null,null],"infinity":[true,false,false,null,null],"room":[true,true,true,"get_current_room","set_current_room"],"room_first":[true,false,false,null,null],"room_last":[true, false,false,null,null],"transition_kind":[true,true,true,null,null],"transition_steps":[true,true,true,null,null],"score":[true,true,true,null,null],"lives":[true,true,true,null,"set_lives_function"],"health":[true,true,true,null,"set_health_function"],"game_id":[true,false,false,null,null],"game_display_name":[true,false,true,null,null],"game_project_name":[true,false,true,null,null],"game_save_id":[true,false,true,null,null],"working_directory":[true,false,false,null,null],"temp_directory":[true, false,false,null,null],"program_directory":[true,false,false,null,null],"instance_count":[true,false,false,"get_instance_count",null],"instance_id":[true,false,false,null,null],"room_width":[true,true,false,null,"set_room_width"],"room_height":[true,true,false,null,"set_room_height"],"room_caption":[true,true,true,null,"set_room_caption"],"room_speed":[true,true,true,"get_room_speed","set_room_speed"],"room_persistent":[true,true,true,null,"set_room_persistent"],"background_color":[true,true,true, "getbackground_color","setbackground_color"],"background_showcolor":[true,true,true,"getbackground_showcolor","setbackground_showcolor"],"background_colour":[true,true,true,"getbackground_color","setbackground_color"],"background_showcolour":[true,true,true,"getbackground_showcolor","setbackground_showcolor"],"view_enabled":[true,true,true,"get_view_enable","set_view_enable"],"view_current":[true,false,false,null,null],"view_visible":[true,true,true,null,null],"mouse_x":[true,false,false,"get_mouse_x", null],"mouse_y":[true,false,false,"get_mouse_y",null],"mouse_button":[true,true,true,null,null],"mouse_lastbutton":[true,true,true,null,null],"keyboard_key":[true,true,true,null,null],"keyboard_lastkey":[true,true,true,null,null],"keyboard_lastchar":[true,true,true,null,null],"keyboard_string":[true,true,true,null,null],"show_score":[true,true,true,null,null],"show_lives":[true,true,true,null,null],"show_health":[true,true,true,null,null],"caption_score":[true,true,true,null,null],"caption_lives":[true, true,true,null,null],"caption_health":[true,true,true,null,null],"fps":[true,false,false,null,null],"fps_real":[true,false,false,null,null],"current_time":[true,false,false,"get_current_time",null],"current_year":[true,false,false,"get_current_year",null],"current_month":[true,false,false,"get_current_month",null],"current_day":[true,false,false,"get_current_day",null],"current_weekday":[true,false,false,"get_current_weekday",null],"current_hour":[true,false,false,"get_current_hour",null],"current_minute":[true, false,false,"get_current_minute",null],"current_second":[true,false,false,"get_current_second",null],"event_type":[true,false,false,"get_current_event_type",null],"event_number":[true,false,false,"get_current_event_number",null],"event_object":[true,false,false,"get_current_event_object",null],"event_action":[true,false,false,null,null],"error_occurred":[true,true,true,null,null],"error_last":[true,true,true,null,null],"gamemaker_registered":[true,false,false,null,null],"gamemaker_pro":[true,false, false,null,null],"application_surface":[true,false,false,null,null],"font_texture_page_size":[true,true,false,null,null],"os_type":[true,false,false,"get_os_type",null],"os_device":[true,false,false,"get_os_device",null],"os_browser":[true,false,false,"get_os_browser",null],"os_version":[true,false,false,"get_os_version",null],"browser_width":[true,false,false,"get_browser_width",null],"browser_height":[true,false,false,"get_browser_height",null],"async_load":[true,false,false,"get_async_load",null], "event_data":[true,false,false,"get_event_data",null],"display_aa":[true,false,false,"get_display_aa",null],"iap_data":[true,false,false,"get_iap_data",null],"cursor_sprite":[true,true,false,"get_cursor_sprite","set_cursor_sprite"],"delta_time":[true,true,false,"get_delta_time",null],"webgl_enabled":[true,false,false,null,null],"audio_bus_main":[true,true,true,null,null],"rollback_current_frame":[true,false,false,null,null],"rollback_confirmed_frame":[true,false,false,null,null],"rollback_event_id":[true, false,false,null,null],"rollback_event_param":[true,false,false,null,null],"rollback_game_running":[true,false,false,null,null],"rollback_api_server":[true,false,false,null,null],"wallpaper_config":[true,false,false,null,null],"view_xview":[true,true,true,null,null],"view_yview":[true,true,true,null,null],"view_wview":[true,true,true,null,null],"view_hview":[true,true,true,null,null],"view_angle":[true,true,true,null,null],"view_hborder":[true,true,true,null,null],"view_vborder":[true,true,true, null,null],"view_hspeed":[true,true,true,null,null],"view_vspeed":[true,true,true,null,null],"view_object":[true,true,true,null,null],"view_xport":[true,true,true,null,null],"view_yport":[true,true,true,null,null],"view_wport":[true,true,true,null,null],"view_hport":[true,true,true,null,null],"view_surface_id":[true,true,true,null,null],"view_camera":[true,true,true,null,null],"marked":[false,false,false,null,null],"active":[false,false,false,null,null]};/*@constructor */function _P2(_Q2){this._R2=false; this._S2=0;this._T2=0;this._U2=false;this._V2=0;this._W2=new _X2(0);this._Y2=new _X2(0);this._Z2=null;this.__2=null;this._03=null;this._13=null;this._23=null;this._33=null;this._43=[];this._53(_Q2._33);};_P2.prototype._63=function(){var _73=new _P2({_33:this._33});return _73;};_P2.prototype._53=function(_83){this._33=_83;this._Z2=new spine._93(_83);this._23=new spine._a3(this._Z2.data);this._13=new spine._b3(this._23);var listener=new Object();listener.start=function(_c3){};listener.end=function(_c3){};listener.complete=function(_c3, _d3){};listener.event=function(_c3,_e3){var map=ds_map_create();g_pBuiltIn.event_data=map;ds_map_add(map,"name",_e3.data.name);ds_map_add(map,"track",_c3);ds_map_add(map,"integer",_e3._f3);ds_map_add(map,"float",_e3._g3);var _h3=_e3._h3?_e3._h3:_e3.data._h3;ds_map_add(map,"string",_h3);_i3._j3(_k3,0);ds_map_destroy(map);g_pBuiltIn.event_data=-1;};this._13._l3(listener);if(_83.animations.length>0){this._m3(null);}this._n3(null);this.__2=new spine._o3();};_P2.prototype._p3=function(_q3,_r3){if(_r3==undefined)_r3=0; if(_r3<0)return 0;if(_r3>=this._13.tracks.length)return 0;var _s3=_t3?_t3._u3():30;if(_v3){if((_q3!=undefined)&&(_q3!=null)){if(_q3.playbackspeedtype==_w3){_s3=_x3._y3();}else {_s3=_q3.playbackspeed;}}else {_s3=_x3._y3();}}if(this._13.tracks[_r3]==null){return ~~((_s3*this._03.duration)+0.5);}return ~~((_s3*this._13.tracks[_r3]._z3.duration)+0.5);};function _A3(_B3,_C3){if(_C3<0.0)return _B3;var _D3=_B3/_C3;var frac=_D3-Math.floor(_D3);var _E3=frac*_C3;return _E3;}_P2.prototype._F3=function(_r3){if(_r3<0)return 0; if(_r3>=this._13.tracks.length)return 0;if(this._13.tracks[_r3]===null)return 0;var _s3=_t3?_t3._u3():30;if(_v3){_s3=_x3._y3();}if(_s3<=0)return 0;var _G3=this._13.tracks[_r3]._H3*_s3;_G3=_A3(_G3,_s3*this._13.tracks[_r3]._z3.duration);return ~~(_G3+0.5);};_P2.prototype._I3=function(_r3,_J3){if(_r3<0)return;if(_r3>=this._13.tracks.length)return;if(this._13.tracks[_r3]===null)return;var _s3=_t3?_t3._u3():30;if(_v3){_s3=_x3._y3();}if(_s3<=0)return 0;var _G3=_A3(_J3,_s3*this._13.tracks[_r3]._z3.duration);var time=(_G3/_s3); this._13.tracks[_r3]._H3=time;this._R2=true;};_P2.prototype._K3=function(_r3){if(_r3<0)return false;if(_r3>=this._13.tracks.length)return false;if(this._13.tracks[_r3]===null)return false;return this._13.tracks[_r3].loop;};_P2.prototype._L3=function(_r3){if(_r3<0)return false;if(_r3>=this._13.tracks.length)return false;if(this._13.tracks[_r3]===null)return false;var _M3=this._13.tracks[_r3];return !_M3.loop&&_M3._H3>=_M3._z3.duration;};_P2.prototype._m3=function(_N3,_O3=true){this._P3(_N3,0,_O3);};_P2.prototype._P3=function(_N3, _r3,_O3=true){var _z3=null;if(((_N3===null)||(_N3===undefined))&&(_r3===0)){if(this._33.animations.length>0){_z3=this._33._Q3(this._33.animations[0].name);}}else {_z3=this._33._Q3(_N3);}if(_z3!==null&&_z3!==undefined){if(_r3===0){this._S2=0;this._T2=0;this._03=_z3;}this._13._R3(_r3,_z3.name,_O3);}};_P2.prototype._n3=function(_S3){var _T3=_S3;if(_S3===null||_S3===undefined){if(this._33._U3){_T3=this._33._U3.name;}}if(_T3!=null){if(_T3.__type=="[SkeletonSkin]"){if(this._Z2._V3===_T3._V3){return;}this._Z2._W3(_T3._V3); this._Z2._X3();}else {if((this._Z2.skin!=null)&&(this._Z2.skin.name!=null)){if(_T3==this._Z2.skin.name){return;}}this._Z2._Y3(_T3);this._Z2._X3();}}};_P2.prototype._Z3=function(__3,_04,_14){this._23._24(__3,_04,_14);};_P2.prototype._34=function(_44,_54){var slot=this._Z2._64(_44);if((slot!==null)&&(slot!==undefined)){if(typeof(_54)==='number'){slot._74(null);}else {var _84=-1;if((slot.data!==null)&&(slot.data!==undefined)){_84=slot.data.index;}for(var _94=0;_94>8)/255.0;_g4=((_d4&0xff0000)>>16)/255.0;if(slot.color!=undefined){_h4=slot.color._h4;}else {_h4=1.0;}slot.color=new spine._i4(_e4, _f4,_g4,_h4);}};_P2.prototype._j4=function(_44,_k4){var slot=this._Z2._64(_44);if((slot!==null)&&(slot!==undefined)){var _e4,_f4,_g4,_h4;_h4=_k4;if(slot.color!=undefined){_e4=slot.color._e4;_f4=slot.color._f4;_g4=slot.color._g4;}else {_e4=1.0;_f4=1.0;_g4=1.0;}slot.color=new spine._i4(_e4,_f4,_g4,_h4);}};_P2.prototype._l4=function(_44,_d4){var slot=this._Z2._64(_44);if((slot!==null)&&(slot!==undefined)){var _m4;if(slot.color!=undefined){_m4=slot.color._e4*255.0;_m4|=(slot.color._f4*255.0)<<8;_m4|=(slot.color._g4*255.0)<<16; _m4|=0xff000000;}else {_m4=0xffffffff;}return _m4;}return 0xffffffff;};_P2.prototype._n4=function(_44,_d4){var slot=this._Z2._64(_44);if((slot!==null)&&(slot!==undefined)){if(slot.color!=undefined){return slot.color._h4;}else {return 1.0;}}return 1.0;};_P2.prototype._o4=function(_44,_54,_p4=false){var _q4=undefined;if(!_p4){var _84=-1;var slot=this._Z2._64(_44);if((slot!==null)&&(slot!==undefined)&&(slot.data!==null)&&(slot.data!==undefined)){_84=slot.data.index;}for(var _94=0;_94>8)/255.0,_h5=((_d4&0xff0000)>>16)/255.0;_d5.color=new spine._i4(_f5,_g5,_h5,_k4);}else if(_z4!=undefined){_d5.color=new spine._i4();_d5.color._i5(_z4);}_d5._j5(_d5);if(_G40){var _G5=_t4%_F5,_H5=this._S2%_F5,duration=this._03.duration, _I5=this._03._J5.length;var _K5=0;if(Math.abs(_G5-_H5)<(_F5/2)){if(_G5>_H5)_K5=1;else if(_G5<_H5)_K5=-1;else _K5=0;}if((this._T2>0)&&(_G5<_H5)){_G5+=_F5;}if(_H5-_G5>=_F5-1){_G5+=_F5;}this._T2=_K5;var _L5=(_G5-_H5)/_F5;this._13._M5(_L5*duration);}this._13.apply(this._Z2);this._S2=_t4;skeleton.x=_q5;skeleton.y=_r5;skeleton.scaleX=_s5;skeleton.scaleY=_t5;this._V2=_u5;this._W2=new _X2(-_u5);this._Y2=new _X2(_u5);_B5=true;_A5=true;this._R2=false;}if(_B5){if(_v5){_v5._N5(_O5,0,_v5,null);}this._P5();}return _A5; };_P2.prototype._P5=function(){var skeleton=this._Z2;skeleton._B5();this.__2._M5(this._Z2,1);var _Q5=this._R5();_S5(this.__2,this._W2,_Q5[0],_Q5[1]);};function _S5(_T5,_U5,_V5,_W5){var _X5=true;for(var i=0;i<_T5._Y5.length;++i){var _Z5=_T5._Y5[i];for(var __5=0;__5<_Z5.length;){var _06=_16([_Z5[__5],_Z5[__5+1]],[_V5,_W5],_U5);var _26=_Z5[__5++]=_06[0];var _36=_Z5[__5++]=_06[1];if(_X5){_T5._46=_T5._56=_26;_T5._66=_T5._76=_36;_X5=false;}else {_T5._46=Math.min(_T5._46,_26);_T5._56=Math.max(_T5._56,_26);_T5._66=Math.min(_T5._66, _36);_T5._76=Math.max(_T5._76,_36);}}}}_P2.prototype._86=function(_96,_q5,_r5,_s5,_t5,_u5){var _F5=this._p3(undefined,0);var frame=~~(_F5*(_96/this._03.duration)+0.5);this._p5(frame,_q5,_r5,_s5,_t5,_u5);};_P2.prototype._a6=function(_b6,_t4,_q5,_r5,_s5,_t5,_u5){if(this.__2!=null){var _c6=this.__2;this._p5(_t4,_q5,_r5,_s5,_t5,_u5,_d6);if(_c6._e6.length>0){_b6.left=~~(_c6._46+0.5);_b6.right=~~(_c6._56+0.5);_b6.top=~~(_c6._66+0.5);_b6.bottom=~~(_c6._76+0.5);return true;}}return false;};_P2.prototype._f6=function(_b6){ if(this.__2!=null){this._P5();if(this.__2._e6.length>0){_b6.left=this.__2._46;_b6.right=this.__2._56;_b6.top=this.__2._66;_b6.bottom=this.__2._76;return true;}}return false;};_P2.prototype._g6=function(){if(this.__2==null)return 0;this._P5();return this.__2._e6.length;};_P2.prototype._h6=function(_J3){if(this.__2!=null){if(_J3>=0){this._P5();if(_J30){_n6=_n6%_C5._F6.length;}if(_n6<0){_n6=_n6+_C5._F6.length;}_q6=1.0/_q6;_r6=1.0/_r6;var _c6=this.__2;var _G6=_H6(_c6._46,_D6.left);var _e4=_I6(_c6._56,_D6.right);var _J6=_H6(_c6._66,_D6.top); var _g4=_I6(_c6._76,_D6.bottom);var _K6=Math.sin(-_s6*(_L6/180.0));var _M6=Math.cos(-_s6*(_L6/180.0));for(var i=_G6;i<=_e4;i++){for(var __5=_J6;__5<=_g4;__5++){var _N6=((_M6*(i-_o6)+_K6*(__5-_p6))*_q6+_C5._O6);var _P6=((_M6*(__5-_p6)-_K6*(i-_o6))*_r6+_C5._Q6);if((_N6<0)||(_N6>=_C5._R6)){continue;}if((_P6<0)||(_P6>=_C5._S6)){continue;}if(_C5._T6){if(!_C5._F6._k6[_n6]._k6[_N6+(_P6*_C5._R6)]){continue;}}var _A6=_c6._U6(i,__5);if(_A6!==null){return true;}}}return false;};_P2.prototype._V6=function(_t4,_q5,_r5, _s5,_t5,_u5,_W6,_X6){this._p5(_t4,_q5,_r5,_s5,_t5,_u5);var _A6=this.__2._U6(_W6,_X6);if(_A6!==null){return true;}return false;};_P2.prototype._Y6=function(_t4,_q5,_r5,_s5,_t5,_u5,_W6,_X6,_o6,_p6){this._p5(_t4,_q5,_r5,_s5,_t5,_u5);var _A6=this.__2._B6(_W6,_X6,_o6,_p6);if(_A6!==null){return true;}return false;};_P2.prototype._Z6=function(_t4,_q5,_r5,_s5,_t5,_u5,_W6,_X6,_o6,_p6){this._p5(_t4,_q5,_r5,_s5,_t5,_u5);var _c6=this.__2;var _A6=_c6._B6(_W6,_X6,_o6,_p6);if(_A6!==null){return true;}_A6=_c6._B6(_W6,_X6, _o6,_X6);if(_A6!==null){return true;}_A6=_c6._B6(_o6,_X6,_o6,_p6);if(_A6!==null){return true;}_A6=_c6._B6(_o6,_p6,_W6,_p6);if(_A6!==null){return true;}_A6=_c6._B6(_W6,_p6,_W6,_X6);if(_A6!==null){return true;}return false;};_P2.prototype.__6=function(_t4,_q5,_r5,_s5,_t5,_u5,_07){this._p5(_t4,_q5,_r5,_s5,_t5,_u5);var _c6=this.__2;var skeleton=this._Z2;var _G6=_H6(_c6._46,_07.left);var _e4=_I6(_c6._56,_07.right);var _J6=_H6(_c6._66,_07.top);var _g4=_I6(_c6._76,_07.bottom);var _17=((_07.right+_07.left)/2);var _27=((_07.bottom+_07.top)/2); var _37=((_07.right-_07.left)/2);var _47=((_07.bottom-_07.top)/2);var _R6=(_c6._56-_c6._46);var _S6=(_c6._76-_c6._66);var _O6=skeleton.x-_c6._46;var _Q6=skeleton.y-_c6._66;if((_s5==1)&&(_t5==1)&&(Math.abs(_u5)<0.0001)){for(var i=_G6;i<=_e4;i++){for(var __5=_J6;__5<=_g4;__5++){if(sqr((i-_17)/_37)+sqr((__5-_27)/_47)>1)continue;var _N6=i-_q5+_O6;var _P6=__5-_r5+_Q6;if((_N6<0)||(_N6>=_R6))continue;if((_P6<0)||(_P6>=_S6))continue;var _A6=_c6._U6(i,__5);if(_A6!==null){return true;}}}}else {var _57=Math.sin(-_u5*_L6/180.0); var _67=Math.cos(-_u5*_L6/180.0);for(var i=_G6;i<=_e4;i++){for(var __5=_J6;__5<=_g4;__5++){if(sqr((i-_17)/_37)+sqr((__5-_27)/_47)>1)continue;var _N6=Math.floor((_67*(i-_q5)+_57*(__5-_r5))/_s5+_O6);var _P6=Math.floor((_67*(__5-_r5)-_57*(i-_q5))/_t5+_Q6);if((_N6<0)||(_N6>=_R6))continue;if((_P6<0)||(_P6>=_S6))continue;var _A6=_c6._U6(i,__5);if(_A6!==null){return true;}}}}return false;};_P2.prototype._77=function(_87,_97){var bone=this._Z2._a7(_87);if(bone){var _b7=_c7._E5(_97);if(_b7){_b7.set("length",bone.data.length); _b7.set("x",bone.data.x);_b7.set("y",bone.data.y);_b7.set("angle",bone.data.rotation);_b7.set("xscale",bone.data.scaleX);_b7.set("yscale",bone.data.scaleY);if((bone.data.parent!==undefined)&&(bone.data.parent!==null)){_b7.set("parent",bone.data.parent.name);}else {_b7.set("parent","");}return true;}}return false;};_P2.prototype._d7=function(_87,_97){var bone=this._Z2._a7(_87);if(bone){var _b7=_c7._E5(_97);if(_b7){bone.data.length=(_b7.get("length")!==undefined)?_b7.get("length"):bone.data.length;bone.data.x=(_b7.get("x")!==undefined)?_b7.get("x"):bone.data.x; bone.data.y=(_b7.get("y")!==undefined)?_b7.get("y"):bone.data.y;bone.data.rotation=(_b7.get("angle")!==undefined)?_b7.get("angle"):bone.data.rotation;bone.data.scaleX=(_b7.get("xscale")!==undefined)?_b7.get("xscale"):bone.data.scaleX;bone.data.scaleY=(_b7.get("yscale")!==undefined)?_b7.get("yscale"):bone.data.scaleY;return true;}}return false;};_P2.prototype._e7=function(_f7,_87,_97){var bone=this._Z2._a7(_87);if(bone){var _b7=_c7._E5(_97);if(_b7){var angle=_f7.image_angle;var _Q5=this._R5();var _g7=[bone._h7, bone._i7];_g7=_16(_g7,_Q5,this._W2);_b7.set("x",bone.x);_b7.set("y",bone.y);_b7.set("angle",bone.rotation);_b7.set("xscale",bone.scaleX);_b7.set("yscale",bone.scaleY);_b7.set("worldX",_g7[0]);_b7.set("worldY",_g7[1]);_b7.set("worldAngleX",bone._j7()-angle);_b7.set("worldAngleY",bone._k7()-angle);_b7.set("worldScaleX",bone._l7());_b7.set("worldScaleY",bone._m7());_b7.set("appliedAngle",bone._n7);if(bone.parent!=null)if(bone.parent.data!=null)_b7.set("parent",bone.parent.data.name);return true;}}return false; };_P2.prototype._o7=function(_f7,_87,_97){var bone=this._Z2._a7(_87);if(bone){var _b7=_c7._E5(_97);if(_b7){if(_b7.get("angle")!==undefined)bone.rotation=_b7.get("angle");if(_b7.get("xscale")!==undefined)bone.scaleX=_b7.get("xscale");if(_b7.get("yscale")!==undefined)bone.scaleY=_b7.get("yscale");var _Q5=this._R5();var _g7=[bone._h7,bone._i7];_g7=_16(_g7,_Q5,this._W2);if(_b7.get("worldX")!==undefined)_g7[0]=_b7.get("worldX");if(_b7.get("worldY")!==undefined)_g7[1]=_b7.get("worldY");_g7=_16(_g7,_Q5,this._Y2); if(!(Math.abs(_g7[0]-bone._h7)<0.01)||!(Math.abs(_g7[1]-bone._i7)<0.01)){var _p7;if((bone.parent!==undefined)&&(bone.parent!==null)){_p7=bone.parent._q7({x:_g7[0],y:_g7[1]});}else {_p7=bone._q7({x:_g7[0],y:_g7[1]});}bone.x=_p7.x;bone.y=_p7.y;}else {if(_b7.get("x")!==undefined)bone.x=_b7.get("x");if(_b7.get("y")!==undefined)bone.y=_b7.get("y");}return true;}}return false;};_P2.prototype._r7=function(){if(this._Z2.skin){return this._Z2.skin.name;}return "";};_P2.prototype._s7=function(_N3,_t7){var _u7=new spine._v7(_N3); for(var i=0;i<_t7.length;++i){var _w7=this._33._x7(_t7[i]);if(_w7===null){debug("Skin "+_t7[i]+" not found in skeleton");}else {_u7._y7(_w7);}}return new _z7(_u7);};_P2.prototype._A7=function(_r3){if((_r3>=0)&&(_r3=0)&&(_r3_J3){if(this._b8._95[_J3].texture){if(this._b8._95[_J3].texture._K4){return this._b8._95[_J3].texture._K4;}}}}}return -1;};_88.prototype._V8=function(_W8,_S3,frame,x,y,_X8,_Y8,angle,_m4,alpha){if(this._33===null||this._33===undefined)return;var _Z8=new _P2(this);_Z8._m3(_W8);_Z8._n3(_S3);_Z8._p5(frame,x,y,_X8,_Y8,angle);var _Q5=_Z8._R5();this.__8(_Z8._Z2,_m4,alpha,_Z8._W2,_Q5[0],_Q5[1]);};_88.prototype._09=function(_W8, _S3,_96,x,y,_X8,_Y8,angle,_m4,alpha){if(this._33===null||this._33===undefined)return;var _Z8=new _P2(this);_Z8._m3(_W8);_Z8._n3(_S3);_Z8._86(_96,x,y,_X8,_Y8,angle);var _Q5=_Z8._R5();this.__8(_Z8._Z2,_m4,alpha,_Z8._W2,_Q5[0],_Q5[1]);};_88.prototype._19=function(frame,x,y,_X8,_Y8,angle,_m4,alpha){if(!_d6||!_d6._29()){this._V8(null,null,frame,x,y,_X8,_Y8,angle,_m4,alpha);}else {var _39=_d6._29();_39._p5(frame,x,y,_X8,_Y8,angle,_d6);var _Q5=_39._R5();this.__8(_39._Z2,_m4,alpha,_39._W2,_Q5[0],_Q5[1]);if(_39._U2){ this._49(_39.__2);}}};_88.prototype._59=function(_69,_W8,_S3,frame,x,y,_X8,_Y8,angle,_79,_89,_Q7){ds_list_clear(_Q7);var _99=false;var _39=null;if((_69===undefined)||(_69===null)||(_69._29()===null)){_39=new _P2(this);_99=true;_39._m3(_W8);_39._n3(_S3);}else {_39=_69._29();if((_W8!==undefined)&&(_W8!==null)){_39._m3(_W8);}if((_S3!==undefined)&&(_S3!==null)){_39._n3(_S3);}}_39._p5(frame,x,y,_X8,_Y8,angle,_69);var _a9=[];var _b9=0;for(var i=0,_t6=_39._Z2.slots.length;i<_t6;i++){var slot=_39._Z2.drawOrder[i]; if(!slot.attachment)continue;var _c9=false;if(slot.attachment instanceof spine._d9){_c9=this._e9(slot,_79,_89);}else if(slot.attachment instanceof spine._f9){_c9=this._g9(slot,_79,_89);}else if(slot.attachment instanceof spine._h9){_c9=this._i9(slot,_79,_89);}if(_c9){_a9[_b9]=slot;_b9++;}}if(_b9>0){for(var i=(_b9-1);i>=0;i--){ds_list_add(_Q7,_a9[i].data.name);}}};_88.prototype._j9=function(_W8,_k9,x,y,_X8,_Y8,angle,color,_s4){var _Z8=new _P2(this);_Z8._m3(_W8);_Z8._p5(_k9,x,y,_X8,_Y8,angle,null,_s4);this._49(_Z8.__2); };_88.prototype.__8=function(_l9,color,alpha,_m9,_n9,_o9){var _f5=(color&0xff)/255.0,_g5=((color&0xff00)>>8)/255.0,_h5=((color&0xff0000)>>16)/255.0;if(_e8){this._p9(_l9,_f5,_g5,_h5,alpha,_m9,_n9,_o9);}else {this._q9(_l9,_h5,_g5,_f5,alpha,_m9,_n9,_o9);}};_88.prototype._q9=function(_l9,_r9,_s9,_t9,_u9,_v9,_w9,_x9){var _y9=[0,1,2,2,3,0];var vertices=[];var _z9=new spine._i4(1.0,1.0,1.0,1.0);var _A9=false;for(var i=0,_t6=_l9.slots.length;i<_t6;i++){var slot=_l9.drawOrder[i];if(!slot.attachment)continue;var _e4=(_r9*255); var _f4=(_s9*255);var _g4=(_t9*255);var _h4=(_u9*255);if((slot.skeleton!=undefined)&&(slot.skeleton._e4!=undefined)){_e4*=slot.skeleton._e4;_f4*=slot.skeleton._f4;_g4*=slot.skeleton._g4;_h4*=slot.skeleton._h4;}if(slot.color!=undefined){_e4*=slot.color._e4;_f4*=slot.color._f4;_g4*=slot.color._g4;_h4*=slot.color._h4;}if(slot.attachment.color!=undefined){_e4*=slot.attachment.color._e4;_f4*=slot.attachment.color._f4;_g4*=slot.attachment.color._g4;_h4*=slot.attachment.color._h4;}var _m4;_m4=(_h4<<24)|(_e4<<16)|(_f4<<8)|(_g4<<0); var _B9=null;var uvs=null;var _C9=null;var _D9=2;var _E9=0;var _F9=0;var _G9=0;var _H9=null;var _G8=null;if(slot.attachment instanceof spine._d9){var _V4=slot.attachment;if((this._c8!=null)&&(this._c8._I9())){_V4._J9(slot.bone,vertices,0,2);_B9=vertices;uvs=_V4.uvs;_C9=_y9;_F9=4;_G9=6;_G8=_F4[_V4._V4._K9._I4.texture._K4];if(!_G8.complete)continue;if(_m4!=_L9){if(!this._98[_V4._V4._K9._I4.name]){var _I4=_V4._V4._K9._I4;this._l8(_I4.name,_I4.width,_I4.height,_I4._K4);}_G8=_M9(this._98[_V4._V4._K9._I4.name],_m4); }var _N9=_V4._V4._K9._I4;_H9=this._98[_N9.name];}else {this._j8(slot,_m4,_h4/255.0,_v9,_w9,_x9);}}else if(slot.attachment instanceof spine._f9){var _O9=slot.attachment;_O9._J9(slot,0,_O9._P9,vertices,0,2);_B9=vertices;uvs=_O9.uvs;_C9=_O9.triangles;_F9=_O9._P9;_G9=_O9.triangles.length;_G8=_F4[_O9._V4._K9._I4.texture._K4];if(!_G8.complete)continue;if(_m4!=_L9){if(!this._98[_O9._V4._K9._I4.name]){var _I4=_O9._V4._K9._I4;this._l8(_I4.name,_I4.width,_I4.height,_O9._V4._K9._I4._K4);}_G8=_M9(this._98[_O9._V4._K9._I4.name], _m4);}_H9=this._98[_O9._V4._K9._I4.name];}else if(slot.attachment instanceof spine._Q9){if(this._c8==null){this._c8=new spine._R9();}this._c8._S9(slot,slot.attachment);continue;}if((_F9>0)&&(_G8!=null)){if((this._c8!=null)&&(this._c8._I9())){this._c8._T9(vertices,_F9*2,_C9,_G9,uvs,_z9,_z9,_A9);_B9=this._c8._U9;uvs=this._c8._U9;_C9=this._c8._V9;_D9=8;_E9=6;_F9=_B9.length/_D9;_G9=_C9.length;}for(var _Y4=0;_Y4<_G9/3;_Y4++){var _W9=_Y4*3;var _X9=_C9[_W9++]*_D9,_Y9=_C9[_W9++]*_D9,_Z9=_C9[_W9++]*_D9;var __9=[]; __9[0]={};__9[0].x=_B9[_X9];__9[0]._X4=uvs[_E9+_X9];_X9++;__9[0].y=_B9[_X9];__9[0]._Y4=uvs[_E9+_X9];__9[1]={};__9[1].x=_B9[_Y9];__9[1]._X4=uvs[_E9+_Y9];_Y9++;__9[1].y=_B9[_Y9];__9[1]._Y4=uvs[_E9+_Y9];__9[2]={};__9[2].x=_B9[_Z9];__9[2]._X4=uvs[_E9+_Z9];_Z9++;__9[2].y=_B9[_Z9];__9[2]._Y4=uvs[_E9+_Z9];for(var pi=0;pi<3;++pi){var _06=_16([__9[pi].x,__9[pi].y],[_w9,_x9],_v9);__9[pi].x=_06[0];__9[pi].y=_06[1];}this._0a(_1a,_G8,__9[0].x,__9[0].y,__9[1].x,__9[1].y,__9[2].x,__9[2].y,__9[0]._X4*_H9.w,__9[0]._Y4*_H9.h, __9[1]._X4*_H9.w,__9[1]._Y4*_H9.h,__9[2]._X4*_H9.w,__9[2]._Y4*_H9.h);}}if(this._c8!=null){this._c8._2a(slot);}}if(this._c8!=null){this._c8._3a();}};function _4a(_5a,_6a,_7a){if(_6a==false){switch(_5a){case spine._8a.Normal:_7a.src=_9a._aa;_7a._ba=_9a._ca;break;case spine._8a.Additive:_7a.src=_9a._aa;_7a._ba=_9a._da;break;case spine._8a.Multiply:_7a.src=_9a._ea;_7a._ba=_9a._ca;break;case spine._8a.Screen:_7a.src=_9a._da;_7a._ba=_9a._fa;break;default :_7a.src=_9a._aa;_7a._ba=_9a._ca;break;}}else {switch(_5a){ case spine._8a.Normal:_7a.src=_9a._da;_7a._ba=_9a._ca;break;case spine._8a.Additive:_7a.src=_9a._da;_7a._ba=_9a._da;break;case spine._8a.Multiply:_7a.src=_9a._ea;_7a._ba=_9a._ca;break;case spine._8a.Screen:_7a.src=_9a._da;_7a._ba=_9a._fa;break;default :_7a.src=_9a._aa;_7a._ba=_9a._ca;break;}}}_88.prototype._p9=function(_l9,_r9,_s9,_t9,_u9,_v9,_w9,_x9){var _y9=[0,1,2,2,3,0];var vertices=[];var _z9=new spine._i4(1.0,1.0,1.0,1.0);var _A9=false;var _ga,_ha,_ia,_ja;var _ka;if(_T7==true){_ga=_e8._la._ma(_9a._na); _ha=_e8._la._ma(_9a._oa);_ia=_e8._la._ma(_9a._pa);_ja=_e8._la._ma(_9a._qa);_ka=_e8._la._ma(_9a._ra);}var _sa=new spine._i4(0.0,0.0,0.0,0.0);var _ta=false;if(_ua!=_U7){_U7=_ua;_ta=true;if(_U7!=-1){_V7=shader_get_uniform(_U7,"gm_SpineTintBlackColour");}}for(var i=0,_t6=_l9.slots.length;i<_t6;i++){var slot=_l9.drawOrder[i];if(!slot.attachment)continue;var _e4=(_r9*255);var _f4=(_s9*255);var _g4=(_t9*255);var _h4=(_u9*255);if((slot.skeleton!=undefined)&&(slot.skeleton._e4!=undefined)){_e4*=slot.skeleton._e4; _f4*=slot.skeleton._f4;_g4*=slot.skeleton._g4;_h4*=slot.skeleton._h4;}if(slot.color!=undefined){_e4*=slot.color._e4;_f4*=slot.color._f4;_g4*=slot.color._g4;_h4*=slot.color._h4;}if(slot.attachment.color!=undefined){_e4*=slot.attachment.color._e4;_f4*=slot.attachment.color._f4;_g4*=slot.attachment.color._g4;_h4*=slot.attachment.color._h4;}var _m4;_m4=(_h4<<24)|(_e4<<0)|(_f4<<8)|(_g4<<16);if(_U7!=-1){if((_V7!=undefined)&&(_V7!=-1)){var _va;if((slot._wa!=undefined)&&(slot._wa!=null)){_va=slot._wa;}else { _va=_sa;}var _xa=[_va._e4*_r9,_va._f4*_s9,_va._g4*_t9,_u9];if((_ta)||((_W7[0]!=_xa[0])||(_W7[1]!=_xa[1])||(_W7[2]!=_xa[2])||(_W7[3]!=_xa[3]))){_W7=_xa;shader_set_uniform_f_array(_V7,_W7);_ta=false;}}}var _B9=null;var uvs=null;var _C9=null;var _D9=2;var _E9=0;var _F9=0;var _G9=0;var _G8=null;if(slot.attachment instanceof spine._d9){var _V4=slot.attachment;_V4._J9(slot.bone,vertices,0,2);_B9=vertices;uvs=_V4.uvs;_C9=_y9;_F9=4;_G9=6;_G8=_F4[_V4._V4._K9._I4.texture._K4];}else if(slot.attachment instanceof spine._f9){ var _O9=slot.attachment;_O9._J9(slot,0,_O9._P9,vertices,0,2);_B9=vertices;uvs=_O9.uvs;_C9=_O9.triangles;_F9=_O9._P9;_G9=_O9.triangles.length;_G8=_F4[_O9._V4._K9._I4.texture._K4];}else if(slot.attachment instanceof spine._Q9){if(this._c8==null){this._c8=new spine._R9();}this._c8._S9(slot,slot.attachment);continue;}if((_F9>0)&&(_G8!=null)){if(!_G8.complete)continue;if(!_G8._N8)_M8({texture:_G8});if((this._c8!=null)&&(this._c8._I9())){this._c8._T9(vertices,_F9*2,_C9,_G9,uvs,_z9,_z9,_A9);_B9=this._c8._U9; uvs=this._c8._U9;_C9=this._c8._V9;_D9=8;_E9=6;_F9=_B9.length/_D9;_G9=_C9.length;}if(_T7==true){var _ya=slot.data._za;var _Aa=new Object();_4a(_ya,this._d8,_Aa);_e8._la._Ba(_9a._na,_Aa.src);_e8._la._Ba(_9a._oa,_Aa._ba);_e8._la._Ba(_9a._pa,_Aa.src);_e8._la._Ba(_9a._qa,_Aa._ba);}var _Ca=_e8._Da(_9a._Ea,_G8._N8,_e8._Fa,_G9);var _Ga=_Ca._Ha()>>2;var index=_Ga*_Ca._Ia;_Ca._Ia+=_G9;var _Ja=_Ca._Ka;var _La=_Ca._Ma;var _Na=_Ca._Oa;var _Pa=index;for(var _Y4=0;_Y4<_G9;_Y4++,_Pa+=_Ga){var index=_C9[_Y4];var _Qa=_B9[(index*_D9)+0]; var _Ra=_B9[(index*_D9)+1];var _Sa=_16([_Qa,_Ra],[_w9,_x9],_v9);_Ja[_Pa+0]=_Sa[0];_Ja[_Pa+1]=_Sa[1];_Ja[_Pa+2]=_Ta;_La[_Pa+0]=_m4;_Na[_Pa+0]=uvs[(index*_D9)+_E9+0];_Na[_Pa+1]=uvs[(index*_D9)+_E9+1];}}if(this._c8!=null){this._c8._2a(slot);}}if(this._c8!=null){this._c8._3a();}if(_T7==true){_e8._la._Ba(_9a._na,_ga);_e8._la._Ba(_9a._oa,_ha);_e8._la._Ba(_9a._pa,_ia);_e8._la._Ba(_9a._qa,_ja);_e8._la._Ba(_9a._ra,_ka);}};_88.prototype._49=function(_Ua){draw_line(_Ua._46,_Ua._66,_Ua._46,_Ua._76);draw_line(_Ua._46, _Ua._76,_Ua._56,_Ua._76);draw_line(_Ua._56,_Ua._76,_Ua._56,_Ua._66);draw_line(_Ua._56,_Ua._66,_Ua._46,_Ua._66);for(var _t6=0;_t6<_Ua._Y5.length;_t6++){var _u6=_Ua._Y5[_t6];var size=_u6.length/2;for(var _v6=0;_v6>2;var index=_Ga*_Ca._Ia;_Ca._Ia+=_F9;var _Ja=_Ca._Ka;var _La=_Ca._Ma;var _Na=_Ca._Oa;var _Pa=index;var _hb=_Pa+_Ga;var __4=_hb+_Ga;var _ib=__4+_Ga;var _jb=_ib+_Ga;var _kb=_jb+_Ga;_Ja[_Pa+0]=_Ja[_kb+0]=vertices[_Z7];_Ja[_Pa+1]=_Ja[_kb+1]=vertices[__7];_Ja[_hb+0]=vertices[_08];_Ja[_hb+1]=vertices[_18];_Ja[__4+0]=_Ja[_ib+0]=vertices[_28]; _Ja[__4+1]=_Ja[_ib+1]=vertices[_38];_Ja[_jb+0]=vertices[_X7];_Ja[_jb+1]=vertices[_Y7];_Ja[_Pa+2]=_Ja[_hb+2]=_Ja[__4+2]=_Ja[_ib+2]=_Ja[_jb+2]=_Ja[_kb+2]=_Ta;_La[_Pa]=_La[_hb]=_La[__4]=_La[_ib]=_La[_jb]=_La[_kb]=_m4;_Na[_Pa+0]=_Na[_kb+0]=uvs[_Z7];_Na[_Pa+1]=_Na[_kb+1]=uvs[__7];_Na[_hb+0]=uvs[_08];_Na[_hb+1]=uvs[_18];_Na[__4+0]=_Na[_ib+0]=uvs[_28];_Na[__4+1]=_Na[_ib+1]=uvs[_38];_Na[_jb+0]=uvs[_X7];_Na[_jb+1]=uvs[_Y7];};_88.prototype._i8=function(slot,_m4,alpha){var _O9=slot.attachment,vertices=[],uvs; var _Va=0;var _Wa=0;if(slot.skeleton){_Va=slot.skeleton.x;_Wa=slot.skeleton.y;}else if(slot.bone.skeleton){_Va=slot.bone.skeleton.x;_Wa=slot.bone.skeleton.y;}_O9._J9(slot,0,_O9._P9,vertices,0,2);uvs=_O9.uvs;var _G8=_F4[_O9._V4._K9.texture._K4];if(!_G8.complete)return;if(!_G8._N8)_M8({texture:_G8});var _F9=_O9.triangles.length;var _Ca=_e8._Da(_9a._Ea,_G8._N8,_e8._Fa,_F9);var _Ga=_Ca._Ha()>>2;var index=_Ga*_Ca._Ia;_Ca._Ia+=_F9;var _Ja=_Ca._Ka;var _La=_Ca._Ma;var _Na=_Ca._Oa;var _Pa=index;for(var _t6=0;_t6<_F9; _t6++,_Pa+=_Ga){var _X9=_O9.triangles[_t6];_Ja[_Pa+0]=vertices[(_X9*2)+0];_Ja[_Pa+1]=vertices[(_X9*2)+1];_Ja[_Pa+2]=_Ta;_La[_Pa+0]=_La[_Pa+1]=_m4;_Na[_Pa+0]=uvs[(_X9*2)+0];_Na[_Pa+1]=uvs[(_X9*2)+1];}};_88.prototype._e9=function(slot,_q5,_r5){var _V4=slot.attachment,vertices=[];_V4._J9(slot.bone,vertices,0,2);var _lb,_mb,_nb,_ob;var _pb;_lb=_q5-vertices[_X7];_mb=_r5-vertices[_Y7];_nb=vertices[_Z7]-vertices[_X7];_ob=vertices[__7]-vertices[_Y7];_pb=(_lb*_ob)-(_mb*_nb);if(_pb>=0)return false;_lb=_q5-vertices[_08]; _mb=_r5-vertices[_18];_nb=vertices[_28]-vertices[_08];_ob=vertices[_38]-vertices[_18];_pb=(_lb*_ob)-(_mb*_nb);if(_pb>=0)return false;_lb=_q5-vertices[_Z7];_mb=_r5-vertices[__7];_nb=vertices[_08]-vertices[_Z7];_ob=vertices[_18]-vertices[__7];_pb=(_lb*_ob)-(_mb*_nb);if(_pb>=0)return false;_lb=_q5-vertices[_28];_mb=_r5-vertices[_38];_nb=vertices[_X7]-vertices[_28];_ob=vertices[_Y7]-vertices[_38];_pb=(_lb*_ob)-(_mb*_nb);if(_pb>=0)return false;return true;};_88.prototype._g9=function(slot,_q5,_r5){var _O9=slot.attachment, vertices=[];_O9._J9(slot,0,_O9._P9,vertices,0,2);var _lb,_mb,_nb,_ob;var _pb;var _G9=_O9.triangles.length;for(var _t6=0;_t6<_G9;_t6+=3){var _X9=_O9.triangles[_t6+0];var _Y9=_O9.triangles[_t6+1];var _Z9=_O9.triangles[_t6+2];var _qb=vertices[(_X9*2)+0];var _rb=vertices[(_X9*2)+1];var _sb=vertices[(_Y9*2)+0];var _tb=vertices[(_Y9*2)+1];var _ub=vertices[(_Z9*2)+0];var _vb=vertices[(_Z9*2)+1];_lb=_q5-_qb;_mb=_r5-_rb;_nb=_sb-_qb;_ob=_tb-_rb;_pb=(_lb*_ob)-(_mb*_nb);if(_pb>=0)continue;_lb=_q5-_sb;_mb=_r5-_tb;_nb=_ub-_sb; _ob=_vb-_tb;_pb=(_lb*_ob)-(_mb*_nb);if(_pb>=0)continue;_lb=_q5-_ub;_mb=_r5-_vb;_nb=_qb-_ub;_ob=_rb-_vb;_pb=(_lb*_ob)-(_mb*_nb);if(_pb>=0)continue;return true;}return false;};_88.prototype._i9=function(slot,_q5,_r5){var _wb=slot.attachment,vertices=[];_wb._J9(slot,0,_wb._P9,vertices,0,2);var _lb,_mb,_nb,_ob;var _pb;var _xb=0;for(var _t6=0;_t6<((_wb._P9)/2)-1;_t6++){var _qb=vertices[_xb+0];var _rb=vertices[_xb+1];_xb+=2;var _sb=vertices[_xb+0];var _tb=vertices[_xb+1];_lb=_q5-_qb;_mb=_r5-_rb;_nb=_sb-_qb;_ob=_tb-_rb; _pb=(_lb*_ob)-(_mb*_nb);if(_pb<=0){return false;}}var _qb=vertices[_xb+0];var _rb=vertices[_xb+1];var _sb=vertices[0];var _tb=vertices[1];_lb=_q5-_qb;_mb=_r5-_rb;_nb=_sb-_qb;_ob=_tb-_rb;_pb=(_lb*_ob)-(_mb*_nb);if(_pb<=0){return false;}return true;};_88.prototype._yb=function(_Q7){for(var _t6=0;_t6>2;var index=_7c._Ia*_Ga;_7c._Mc(1);_7c._Ka[index+0]=yyGetReal(_q5);_7c._Ka[index+1]=yyGetReal(_r5);_7c._Ka[index+2]=_Ta;_7c._Oa[index+0]=0;_7c._Oa[index+1]=0;_7c._Ma[index]=((_Nc*255.0)<<24)|(_Oc&0x00ffffff);}function _jc(_q5,_r5,_Pc,_u9){var _Ga=_7c._Ha()>>2;var index=_7c._Ia*_Ga;_7c._Mc(1);_7c._Ka[index+0]=yyGetReal(_q5);_7c._Ka[index+1]=yyGetReal(_r5);_7c._Ka[index+2]=_Ta;_7c._Oa[index+0]=0;_7c._Oa[index+1]=0; _7c._Ma[index]=((yyGetReal(_u9)*255.0)<<24)|_Qc(yyGetInt32(_Pc));}function _kc(_q5,_r5,_Rc,_Sc){var _Ga=_7c._Ha()>>2;var index=_7c._Ia*_Ga;_7c._Mc(1);_7c._Ka[index+0]=yyGetReal(_q5);_7c._Ka[index+1]=yyGetReal(_r5);_7c._Ka[index+2]=_Ta;var _Tc=_Uc(yyGetReal(_Rc),yyGetReal(_Sc));_7c._Oa[index+0]=_Tc._X4;_7c._Oa[index+1]=_Tc._Y4;_7c._Ma[index]=((_Nc*255.0)<<24)|(_Oc&0x00ffffff);}function _lc(_q5,_r5,_Rc,_Sc,_Pc,_u9){var _Ga=_7c._Ha()>>2;var index=_7c._Ia*_Ga;_7c._Mc(1);_7c._Ka[index+0]=yyGetReal(_q5);_7c._Ka[index+1]=yyGetReal(_r5); _7c._Ka[index+2]=_Ta;var _Tc=_Uc(yyGetReal(_Rc),yyGetReal(_Sc));_7c._Oa[index+0]=_Tc._X4;_7c._Oa[index+1]=_Tc._Y4;_7c._Ma[index]=((yyGetReal(_u9)*255.0)<<24)|_Qc(yyGetInt32(_Pc));}function _mc(){var _Vc=_yc(_4c);if(_Vc==-1){return;}var _Wc=_7c._Xc.subarray(0,_7c._Ia*_7c._Ha());var _Yc=_5c?_5c._N8:null;var _Ca=_e8._Da(_Vc,_Yc,_e8._Fa,_7c._Ia);_Ca._Xc.set(_Wc,_Ca._Ia*_Ca._Ha());_Ca._Ia+=_7c._Ia;}function _nc(kind){_Nb(kind,-1);}function _oc(_Gc,_o8){_4c=_Gc;_5c=null;_6c=null;if(typeof(_o8)=="object"){_5c=_o8._Hc; _6c=_o8._Ic;}else if((_o8!=-1)&&_F4[_o8]){_5c=_F4[_o8];}if(_5c&&!_5c._N8){_M8({texture:_5c});}_7c=new _Jc(_Kc,_e8._Lc(_e8._Zc),false);}function _Uc(_Rc,_Sc){if(_6c&&_5c){return({_X4:(_6c.x+(_Rc*_6c.CropWidth))/_5c.__c,_Y4:(_6c.y+(_Sc*_6c.CropHeight))/_5c._0d});}else {return({_X4:_Rc,_Y4:_Sc});}};function _pc(_q5,_r5,_1d){var _Ga=_7c._Ha()>>2;var index=_7c._Ia*_Ga;_7c._Mc(1);_7c._Ka[index+0]=_q5;_7c._Ka[index+1]=_r5;_7c._Ka[index+2]=_1d;_7c._2d[index+0]=0;_7c._2d[index+1]=0;_7c._2d[index+2]=0;_7c._Oa[index+0]=0; _7c._Oa[index+1]=0;_7c._Ma[index]=((_Nc*255.0)<<24)|(_Oc&0x00ffffff);}function _qc(_q5,_r5,_1d,_3d,_u9){var _Ga=_7c._Ha()>>2;var index=_7c._Ia*_Ga;_7c._Mc(1);_7c._Ka[index+0]=_q5;_7c._Ka[index+1]=_r5;_7c._Ka[index+2]=_1d;_7c._2d[index+0]=0;_7c._2d[index+1]=0;_7c._2d[index+2]=0;_7c._Oa[index+0]=0;_7c._Oa[index+1]=0;_7c._Ma[index]=((_u9*255.0)<<24)|_Qc(_3d);}function _rc(_q5,_r5,_1d,_4d,_5d){var _Ga=_7c._Ha()>>2;var index=_7c._Ia*_Ga;_7c._Mc(1);_7c._Ka[index+0]=_q5;_7c._Ka[index+1]=_r5;_7c._Ka[index+2]=_1d; _7c._2d[index+0]=0;_7c._2d[index+1]=0;_7c._2d[index+2]=0;var _Tc=_Uc(_4d,_5d);_7c._Oa[index+0]=_Tc._X4;_7c._Oa[index+1]=_Tc._Y4;_7c._Ma[index]=((_Nc*255.0)<<24)|(_Oc&0x00ffffff);}function _sc(_q5,_r5,_1d,_4d,_5d,_3d,_u9){var _Ga=_7c._Ha()>>2;var index=_7c._Ia*_Ga;_7c._Mc(1);_7c._Ka[index+0]=_q5;_7c._Ka[index+1]=_r5;_7c._Ka[index+2]=_1d;_7c._2d[index+0]=0;_7c._2d[index+1]=0;_7c._2d[index+2]=0;var _Tc=_Uc(_4d,_5d);_7c._Oa[index+0]=_Tc._X4;_7c._Oa[index+1]=_Tc._Y4;_7c._Ma[index]=((_u9*255.0)<<24)|_Qc(_3d); }function _tc(_q5,_r5,_1d,_6d,_7d,_8d){var _Ga=_7c._Ha()>>2;var index=_7c._Ia*_Ga;_7c._Mc(1);_7c._Ka[index+0]=_q5;_7c._Ka[index+1]=_r5;_7c._Ka[index+2]=_1d;_7c._2d[index+0]=_6d;_7c._2d[index+1]=_7d;_7c._2d[index+2]=_8d;_7c._Oa[index+0]=0;_7c._Oa[index+1]=0;_7c._Ma[index]=((_Nc*255.0)<<24)|(_Oc&0x00ffffff);}function _uc(_q5,_r5,_1d,_6d,_7d,_8d,_3d,_u9){var _Ga=_7c._Ha()>>2;var index=_7c._Ia*_Ga;_7c._Mc(1);_7c._Ka[index+0]=_q5;_7c._Ka[index+1]=_r5;_7c._Ka[index+2]=_1d;_7c._2d[index+0]=_6d;_7c._2d[index+1]=_7d; _7c._2d[index+2]=_8d;_7c._Oa[index+0]=0;_7c._Oa[index+1]=0;_7c._Ma[index]=((_u9*255.0)<<24)|_Qc(_3d);}function _vc(_q5,_r5,_1d,_6d,_7d,_8d,_4d,_5d){var _Ga=_7c._Ha()>>2;var index=_7c._Ia*_Ga;_7c._Mc(1);_7c._Ka[index+0]=_q5;_7c._Ka[index+1]=_r5;_7c._Ka[index+2]=_1d;_7c._2d[index+0]=_6d;_7c._2d[index+1]=_7d;_7c._2d[index+2]=_8d;var _Tc=_Uc(_4d,_5d);_7c._Oa[index+0]=_Tc._X4;_7c._Oa[index+1]=_Tc._Y4;_7c._Ma[index]=((_Nc*255.0)<<24)|(_Oc&0x00ffffff);}function _wc(_q5,_r5,_1d,_6d,_7d,_8d,_4d,_5d,_3d,_u9){var _Ga=_7c._Ha()>>2; var index=_7c._Ia*_Ga;_7c._Mc(1);_7c._Ka[index+0]=_q5;_7c._Ka[index+1]=_r5;_7c._Ka[index+2]=_1d;_7c._2d[index+0]=_6d;_7c._2d[index+1]=_7d;_7c._2d[index+2]=_8d;var _Tc=_Uc(_4d,_5d);_7c._Oa[index+0]=_Tc._X4;_7c._Oa[index+1]=_Tc._Y4;_7c._Ma[index]=((_u9*255.0)<<24)|_Qc(_3d);}function _xc(){var _Vc=_yc(_4c);if(_Vc==-1){return;}var _Wc=_7c._Xc.subarray(0,_7c._Ia*_7c._Ha());var _Yc=_5c?_5c._N8:null;var _Ca=_e8._Da(_Vc,_Yc,_e8._Zc,_7c._Ia);_Ca._Xc.set(_Wc,_Ca._Ia*_Ca._Ha());_Ca._Ia+=_7c._Ia;}/*@constructor */function _9d(_ad){ var _bd=null,_cd=null,_dd=null,_ed=false,_fd=null,_gd;var _hd=0,_id=0,_jd=0,_kd=0;var _ld=this;(function(){_bd=new ArrayBuffer(_ad);_cd=new DataView(_bd);})();function _md(_nd,_od){var _pd=false;var _qd=_fd._rd;for(var i=0;i<_qd.length;i++){var _sd=_qd[i];if(((_nd==-1)||(_sd._td==_nd))&&(_sd.type==_od)){_pd=true;if((_sd._ud&_hd)===0){var _vd=(_kd+_sd.offset);_hd|=_sd._ud;if(_fd._wd===_hd){_hd=0;_id++;_kd+=_fd._xd;if((_kd+_fd._xd)>=_bd.byteLength){_ld._yd(_bd.byteLength*2);}}return _vd;}}}if(_pd){debug("VERTEX BUILDER: element already written, must write the whole vertex first\n\n", true);return -1;}debug("VERTEX BUILDER: Vertex format does not contain selected type.\n\n",true);return -1;};/*@this {yyVBufferBuilder} */this._yd=function(_ad){var _zd=new ArrayBuffer(_ad);var _Ad=new Int8Array(_bd);var _Bd=new Int8Array(_zd);_Bd.set(_Ad);_bd=_zd;_cd=new DataView(_bd);};/*@this {yyVBufferBuilder} */this._Cd=function(_Dd){_hd=0;_id=0;_jd=0;_kd=0;_gd=_Dd;_fd=_e8._Lc(_Dd);if(_fd._xd>_bd.byteLength){this._yd(_fd._xd*36);}};/*@this {yyVBufferBuilder} */this._Ed=function(){};this._Fd=function(){ return _gd;};this._Gd=function(){return _e8._Lc(_gd);};/*@this {yyVBufferBuilder} */this._Hd=function(x,y){var _vd=_md(_9a._Id,_9a._Jd);if(_vd>=0){_cd.setFloat32(_vd,x,true);_cd.setFloat32(_vd+4,y,true);}};/*@this {yyVBufferBuilder} */this._Kd=function(x,y,z){var _vd=_md(_9a._Id,_9a._Ld);if(_vd>=0){_cd.setFloat32(_vd,x,true);_cd.setFloat32(_vd+4,y,true);_cd.setFloat32(_vd+8,z,true);}};/*@this {yyVBufferBuilder} */this._Md=function(_3d,_u9){var _vd=_md(_9a._Nd,_9a._Od);if(_vd>=0){var _Pd=((_u9*255.0)<<24)|_Qc(_3d); _cd.setUint32(_vd,_Pd,true);}};/*@this {yyVBufferBuilder} */this._Qd=function(_Rd){var _vd=_md(_9a._Nd,_9a._Od);if(_vd>=0){var _m4=((_Rd&0xff)<<24)|((_Rd&0xff00)<<8)|((_Rd&0xff0000)>>8)|((_Rd&0xff000000)>>24);_cd.setUint32(_vd,_m4,true);}};/*@this {yyVBufferBuilder} */this._Sd=function(_Td){var _vd=_md(_9a._Nd,_9a._Od);if(_vd>=0){var _m4=(_Td&0xff000000)|((_Td&0xff)<<16)|(_Td&0xff00)|((_Td&0xff0000)>>16);_cd.setUint32(_vd,_m4,true);}};/*@this {yyVBufferBuilder} */this._Ud=function(_X4,_Y4){var _vd=_md(_9a._Vd, _9a._Jd);if(_vd>=0){_cd.setFloat32(_vd,_X4,true);_cd.setFloat32(_vd+4,_Y4,true);}};/*@this {yyVBufferBuilder} */this._Wd=function(x,y,z){var _vd=_md(_9a._Xd,_9a._Ld);if(_vd>=0){_cd.setFloat32(_vd,x,true);_cd.setFloat32(_vd+4,y,true);_cd.setFloat32(_vd+8,z,true);}};/*@this {yyVBufferBuilder} */this._Yd=function(x){var _vd=_md(-1,_9a._Zd);if(_vd>=0){_cd.setFloat32(_vd,x,true);}};/*@this {yyVBufferBuilder} */this.__d=function(x,y){var _vd=_md(-1,_9a._Jd);if(_vd>=0){_cd.setFloat32(_vd,x,true);_cd.setFloat32(_vd+4, y,true);}};/*@this {yyVBufferBuilder} */this._0e=function(x,y,z){var _vd=_md(-1,_9a._Ld);if(_vd>=0){_cd.setFloat32(_vd,x,true);_cd.setFloat32(_vd+4,y,true);_cd.setFloat32(_vd+8,z,true);}};/*@this {yyVBufferBuilder} */this._1e=function(x,y,z,w){var _vd=_md(-1,_9a._2e);if(_vd>=0){_cd.setFloat32(_vd,x,true);_cd.setFloat32(_vd+4,y,true);_cd.setFloat32(_vd+8,z,true);_cd.setFloat32(_vd+12,w,true);}};/*@this {yyVBufferBuilder} */this._3e=function(x,y,z,w){var _vd=_md(-1,_9a._4e);if(_vd>=0){_cd.setUint8(_vd, x,true);_cd.setUint8(_vd+1,y,true);_cd.setUint8(_vd+2,z,true);_cd.setUint8(_vd+3,w,true);}};/*@this {yyVBufferBuilder} */this._5e=function(){var _6e=new _Jc(_id,_fd,false);var _7e=_id*_fd._xd;var _8e=new Int8Array(_bd,0,_7e);_6e._Xc.set(_8e);_6e._Ia+=_id;_6e._5e();_dd=_6e;_ed=true;_bd=null;_cd=null;};/*@this {yyVBufferBuilder} */this._9e=function(_ae,_be){if(_ed){if(_be==-1){_e8._ce(_ae,null,_dd,0);}else {if(_be&&!_be._Hc._N8){_M8(_be._Ic);}_e8._ce(_ae,_be._Hc._N8,_dd,0);}}else {var _Ca;if(_be==-1){_Ca=_e8._Da(_ae, null,_gd,_id);}else {if(_be&&!_be._Hc._N8){_M8(_be._Ic);}_Ca=_e8._Da(_ae,_be._Hc._N8,_gd,_id);}var _de=_Ca._Ia*_fd._xd;var _8e=new Int8Array(_bd,0,_id*_fd._xd);_Ca._Xc.set(_8e,_de);_Ca._Ia+=_id;}};this._ee=function(_fe){_id=_fe;_jd=0;_kd=_fe*_fd._xd;};this._ge=function(){return _id;};this._he=function(){return _bd;};}var _ie=null;var _je=[];/*@constructor */function _ke(){var _le=0,_me=0.5;var _ne;var _oe=[];var _pe=[];var _qe=[];var _re=_le;var _se=_me;Object.defineProperties(this,{_te:{get :function(){return _re; },set :function(_ue){_re=_ue;}},_ve:{get :function(){return _se;},set :function(_ue){_se=_ue;}}});/*@this {yyGamePad} */this._we=function(_xe){_ne=_xe.id;_pe=_oe.slice();_qe=_xe.axes.slice();var _ye=_xe.buttons;if(_ye){for(var _g4 in _ye){if(!_ye.hasOwnProperty(_g4))continue;if(typeof(_ye[_g4])==="object"){_oe[_g4]=_ye[_g4].value;}else {_oe[_g4]=_ye[_g4];}}}};/*@this {yyGamePad} */this._ze=function(){return _ne||"";};/*@this {yyGamePad} */this._Ae=function(){if(_oe){return _oe.length;}return 0;};/*@this {yyGamePad} */this._Be=function(_Ce){ var _De=_oe[_Ce];var _Ee=_pe[_Ce];if((_De!==undefined)&&(_Ee!==undefined)){return((_De>=_se)&&(_Ee<_se));}return false;};/*@this {yyGamePad} */this._Fe=function(_Ce){var _De=_oe[_Ce];var _Ee=_pe[_Ce];if((_De!==undefined)&&(_Ee!==undefined)){return((_De<_se)&&(_Ee>=_se));}return false;};/*@this {yyGamePad} */this._Ge=function(_Ce){var _De;if(typeof(_oe[_Ce])==="object"){_De=_oe[_Ce].value;}else {_De=_oe[_Ce];}if(_De!==undefined){return(_De>=_se);}return false;};/*@this {yyGamePad} */this._He=function(_Ce){ var _De;if(typeof(_oe[_Ce])==="object"){_De=_oe[_Ce].value;}else {_De=_oe[_Ce];}return _De||0.0;};/*@this {yyGamePad} */this._Ie=function(){if(_qe){return _qe.length;}return 0;};/*@this {yyGamePad} */this._Je=function(_Ke,_Le){var _Me=_qe[_Ke]||0;if(_re>0.0){var _Ne=Math.abs(_Me);if(_Ne<_re){_Me=0.0;}else {var sign=(_Me>=0)?1.0:-1.0;_Me=((_Ne-_re)/(_Le-_re))*sign;}}return _Me;};}/*@constructor */function _Oe(){var _Pe=1.0,_Qe=1.0;var _Re=0,_Se=1;var _Te=0x8000,_Ue=0x8001,_Ve=0x8002,_We=0x8003,_Xe=0x8004,_Ye=0x8005, _Ze=0x8006,__e=0x8007,_0f=0x8008,_1f=0x8009,_2f=0x800A,_3f=0x800B,_4f=0x800C,_5f=0x800D,_6f=0x800E,_7f=0x800F,_8f=0x8010,_9f=0x8011,_af=0x8012,_bf=0x8013,_cf=0x8014;var _df=0,_ef=1,_ff=2,_gf=3,_hf=4,_if=5,_jf=6,_kf=7,_lf=8,_mf=9,_nf=10,_of=11,_pf=12,_qf=13,_rf=14,_sf=15;var _tf=0,_uf=1,_vf=2,_wf=3;function _xf(){var api=null;try{api=_yf();}catch(err){console.log("Failed to initialize the Gamepad API: "+err);}return(api!==null);}function _yf(){if(navigator["getGamepads"]){return navigator["getGamepads"](); }if(navigator["webkitGetGamepads"]){return navigator["webkitGetGamepads"]();}if(navigator["webkitGamepads"]){return navigator["webkitGamepads"]();}return null;}var _zf=_xf()?_Se:_Re;var _Af=[];function _Bf(){var gamepads=_yf();if(gamepads!==null){var _Cf=0;for(_Cf=0;_Cf=0.0)&&(_Tf<=_Pe)){_Qf._ve=_Tf;}}};/*@this {yyGamepadManager} */this._te=function(_Pf){var _Qf=_Af[_Pf];if(_Qf){return _Qf._te;}else if(_je[_Pf]!==undefined){return _je[_Pf];}return 0.0;};/*@this {yyGamepadManager} */this._Uf=function(_Pf,_Vf){_je[_Pf]=_Vf;var _Qf=_Af[_Pf];if(_Qf){if((_Vf>=0.0)&&(_Vf<=_Qe)){_Qf._te=_Vf;}}};/*@this {yyGamepadManager} */this._Wf=function(){_Af=[];}; /*@this {yyGamepadManager} */this._Xf=function(){switch(_zf){case _Se:_Bf();break;case _Re:default :return;}};/*@this {yyGamepadManager} */this._Yf=function(_Pf){if(_Af[_Pf]!==null&&_Af[_Pf]!==undefined){return true;}return false;};/*@this {yyGamepadManager} */this._Ae=function(_Pf){var _Qf=_Af[_Pf];if(_Qf){return _Qf._Ae();}return 0;};/*@this {yyGamepadManager} */this._Ie=function(_Pf){var _Qf=_Af[_Pf];if(_Qf){return _Qf._Ie();}return 0;};/*@this {yyGamepadManager} */this._Ge=function(_Pf,_Ce){var _Qf=_Af[_Pf]; if(_Qf){return _Qf._Ge(_Lf(_Ce),_Qf._ve);}return false;};/*@this {yyGamepadManager} */this._Be=function(_Pf,_Ce){var _Qf=_Af[_Pf];if(_Qf){return _Qf._Be(_Lf(_Ce),_Qf._ve);}return false;};/*@this {yyGamepadManager} */this._Fe=function(_Pf,_Ce){var _Qf=_Af[_Pf];if(_Qf){return _Qf._Fe(_Lf(_Ce),_Qf._ve);}return false;};/*@this {yyGamepadManager} */this._He=function(_Pf,_Ce){var _Qf=_Af[_Pf];if(_Qf){return _Qf._He(_Lf(_Ce));}return 0;};/*@this {yyGamepadManager} */this._Je=function(_Pf,_Ke){var _Qf=_Af[_Pf];if(_Qf){ return _Qf._Je(_Mf(_Ke),_Qe);}return 0;};};var _Zf=[];var __f="None";var _0g=0;var _1g=0;/*@constructor */function _2g(){this.x=0;this.y=0;this._Ge=0;this._Be=0;this._Fe=0;this._3g=0;};_2g.prototype._Wf=function(){this._Ge=0;this._Be=0;this._Fe=0;this._3g=0;};_2g.prototype._4g=function(_q5,_r5){if(_t3){var _5g;if(!_t3._6g){_5g=_7g;}else {_5g=_t3._8g;}for(var _Y4=0;_Y4<_5g.length;_Y4++){var _9g=_5g[_Y4];if(_9g.visible){_ag(canvas,_bg);if(((_q5-_bg.left)>=_9g._cg)&&((_q5-_bg.left)<_9g._dg)&&((_r5-_bg.top)>=_9g._eg)&&((_r5-_bg.top)<_9g._fg)){ this.x=_9g._gg(_q5,_r5);this.y=_9g._hg(_q5,_r5);return;}}}}this.x=_q5;this.y=_r5;};/*@constructor */function _ig(_jg,_q5,_r5){this.id=_jg;this.x=_q5;this.y=_r5;}function _kg(_lg){for(var i=0;i<_Zf.length;i++){if(_Zf[i]===_lg){return i;}}return -1;}function _mg(_lg){var _ng=-1;for(var i=0;i<_Zf.length;i++){if((_Zf[i]===_lg)||(_Zf[i]===-1)){_ng=i;break;}}if(_ng==-1){_ng=_Zf.length;}_Zf[_ng]=_lg;_og[_ng]=new _2g();return _ng;}function _pg(event){for(var _qg=0;_qg=0){var _sg=e.clientX;var _tg=e.clientY;if(_ng==0){if(_ug!=null){_vg=_sg;_wg=_tg;}switch(type){case "start":case "move":{_Fg=0;if(e.pointerType=="mouse"){_Fg=button;}if(button!=-1){if(_Fg==2)_Fg=1;else if(_Fg==1)_Fg=2;_Gg=_Fg;_Hg=_Fg;_xg=buttons; }}break;case "end":_xg=0;break;}}_og[_ng]._4g(_sg,_tg);_yg[_ng].x=_sg;_yg[_ng].y=_tg;switch(type){case "start":_og[_ng]._Ge=1;_yg[_ng]._zg=_Ag|_Bg|_Cg;break;case "end":_og[_ng]._Ge=0;_yg[_ng]._zg=0;break;case "move":default :break;}}e.preventDefault();}function _Ig(){if((window.PointerEvent)||(window.navigator.pointerEnabled)||(window.navigator.msPointerEnabled)){canvas.addEventListener("pointerdown",_Dg,false);canvas.addEventListener("pointermove",_Dg,false);canvas.addEventListener("pointerup",_Dg,false); canvas.addEventListener("pointercancel",_Dg,false);canvas.addEventListener("pointerover",_Dg,false);canvas.addEventListener("pointerout",_Dg,false);canvas.addEventListener("MSPointerDown",_Dg,false);canvas.addEventListener("MSPointerMove",_Dg,false);canvas.addEventListener("MSPointerUp",_Dg,false);canvas.addEventListener("MSPointerCancel",_Dg,false);canvas.addEventListener("MSPointerOver",_Dg,false);canvas.addEventListener("MSPointerOut",_Dg,false);}else {canvas.ontouchstart=_pg;canvas.ontouchmove=_pg; canvas.ontouchend=_pg;canvas.ontouchcancel=_pg;}canvas.style.touchAction="none";}/** fingerprintJS 0.5.4 - Fast browser fingerprint library * https://github.com/Valve/fingerprintjs * Copyright (c) 2013 Valentin Vasilyev (valentin.vasilyev@outlook.com) * Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */; (function(name,context,_Jg){if(typeof module!=='undefined'&&module._Kg){module._Kg=_Jg();}else if(typeof define==='function'&&define._Lg){define(_Jg);}else {context[name]=_Jg();}})('Fingerprint',this,function(){'use strict';var Fingerprint=function(options){var _Mg,_Ng;_Mg=Array.prototype.forEach;_Ng=Array.prototype.map;this._Og=function(_Pg,_Qg,context){if(_Pg===null){return;}if(_Mg&&_Pg.forEach===_Mg){_Pg.forEach(_Qg,context);}else if(_Pg.length===+_Pg.length){for(var i=0,_G6=_Pg.length;i<_G6;i++){if(_Qg.call(context, _Pg[i],i,_Pg)==={})return;}}else {for(var key in _Pg){if(_Pg.hasOwnProperty(key)){if(_Qg.call(context,_Pg[key],key,_Pg)==={})return;}}}};this.map=function(_Pg,_Qg,context){var _Rg=[];if(_Pg==null)return _Rg;if(_Ng&&_Pg.map===_Ng)return _Pg.map(_Qg,context);this._Og(_Pg,function(value,index,_Sg){_Rg[_Rg.length]=_Qg.call(context,value,index,_Sg);});return _Rg;};if(typeof options=='object'){this._Tg=options._Tg;this._Ug=options._Ug;this._Vg=options._Vg;this.canvas=options.canvas;this._Wg=options._Wg;}else if(typeof options=='function'){ this._Tg=options;}};Fingerprint.prototype={get :function(){var keys=[];keys.push(navigator.userAgent);keys.push(navigator.language);keys.push(screen.colorDepth);if(this._Ug){var resolution=this._Xg();if(typeof resolution!=='undefined'){keys.push(resolution.join('x'));}}keys.push(new Date().getTimezoneOffset());keys.push(this.hasSessionStorage());keys.push(this.hasLocalStorage());keys.push(!!window.indexedDB);if(document.body){keys.push(typeof(document.body.addBehavior));}else {keys.push(typeof undefined); }keys.push(typeof(window.openDatabase));keys.push(navigator.cpuClass);keys.push(navigator.platform);keys.push(navigator.doNotTrack);keys.push(this._Yg());if(this.canvas&&this._Zg()){keys.push(this.__g());}if(this._Tg){return this._Tg(keys.join('###'),31);}else {return this._0h(keys.join('###'),31);}},/* * JS Implementation of MurmurHash3 (r136) (as of May 20, 2011) * * @author Gary Court * @see http://github.com/garycourt/murmurhash-js * @author Austin Appleby * @see http://sites.google.com/site/murmurhash/ * * @param {string} key ASCII only * @param {number} seed Positive integer only * @return {number} 32-bit positive integer hash */_0h:function(key, _1h){var _2h,_3h,_4h,_5h,_6h,_7h,_8h,i;_2h=key.length&3;_3h=key.length-_2h;_4h=_1h;_6h=0xcc9e2d51;_7h=0x1b873593;i=0;while(i<_3h){_8h=((key.charCodeAt(i)&0xff))|((key.charCodeAt(++i)&0xff)<<8)|((key.charCodeAt(++i)&0xff)<<16)|((key.charCodeAt(++i)&0xff)<<24);++i;_8h=((((_8h&0xffff)*_6h)+((((_8h>>>16)*_6h)&0xffff)<<16)))&0xffffffff;_8h=(_8h<<15)|(_8h>>>17);_8h=((((_8h&0xffff)*_7h)+((((_8h>>>16)*_7h)&0xffff)<<16)))&0xffffffff;_4h^=_8h;_4h=(_4h<<13)|(_4h>>>19);_5h=((((_4h&0xffff)*5)+((((_4h>>>16)*5)&0xffff)<<16)))&0xffffffff; _4h=(((_5h&0xffff)+0x6b64)+((((_5h>>>16)+0xe654)&0xffff)<<16));}_8h=0;switch(_2h){case 3:_8h^=(key.charCodeAt(i+2)&0xff)<<16;case 2:_8h^=(key.charCodeAt(i+1)&0xff)<<8;case 1:_8h^=(key.charCodeAt(i)&0xff);_8h=(((_8h&0xffff)*_6h)+((((_8h>>>16)*_6h)&0xffff)<<16))&0xffffffff;_8h=(_8h<<15)|(_8h>>>17);_8h=(((_8h&0xffff)*_7h)+((((_8h>>>16)*_7h)&0xffff)<<16))&0xffffffff;_4h^=_8h;}_4h^=key.length;_4h^=_4h>>>16;_4h=(((_4h&0xffff)*0x85ebca6b)+((((_4h>>>16)*0x85ebca6b)&0xffff)<<16))&0xffffffff;_4h^=_4h>>>13;_4h=((((_4h&0xffff)*0xc2b2ae35)+((((_4h>>>16)*0xc2b2ae35)&0xffff)<<16)))&0xffffffff; _4h^=_4h>>>16;return _4h>>>0;},hasLocalStorage:function(){try{return !!window.localStorage;}catch(e){return true;}},hasSessionStorage:function(){try{return !!window._9h;}catch(e){return true;}},_Zg:function(){var _ah=document.createElement('canvas');return !!(_ah.getContext&&_ah.getContext('2d'));},_bh:function(){if(navigator._ch==='Microsoft Internet Explorer'){return true;}else if(navigator._ch==='Netscape'&&new RegExp('Trident').test(navigator.userAgent)){return true;}return false;},_Yg:function(){if(this._bh()&&this._Wg){ return this._dh();}else {return this._eh();}},_eh:function(){return this.map(navigator._fh,function(_gh){var _hh=this.map(_gh,function(_ih){return [_ih.type,_ih._jh].join('~');}).join(',');return [_gh.name,_gh.description,_hh].join('::');},this).join(';');},_dh:function(){if(window.ActiveXObject){var _kh=['ShockwaveFlash.ShockwaveFlash','AcroPDF.PDF','PDF.PdfCtrl','QuickTime.QuickTime','rmocx.RealPlayer G2 Control','rmocx.RealPlayer G2 Control.1','RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)','RealVideo.RealVideo(tm) ActiveX Control (32-bit)', 'RealPlayer','SWCtl.SWCtl','WMPlayer.OCX','AgControl.AgControl','Skype.Detection'];return this.map(_kh,function(name){try{new ActiveXObject(name);return name;}catch(e){return null;}}).join(';');}else {return "";}},_Xg:function(){var resolution;if(this._Vg){resolution=(screen.height>screen.width)?[screen.height,screen.width]:[screen.width,screen.height];}else {resolution=[screen.height,screen.width];}return resolution;},__g:function(){var canvas=document.createElement('canvas');var _Za=canvas.getContext('2d'); var _lh='http://valve.github.io';_Za.textBaseline="top";_Za.font="14px 'Arial'";_Za.textBaseline="alphabetic";_Za.fillStyle="#f60";_Za.fillRect(125,1,62,20);_Za.fillStyle="#069";_Za.fillText(_lh,2,15);_Za.fillStyle="rgba(102, 204, 0, 0.7)";_Za.fillText(_lh,4,17);return canvas.toDataURL();}};return Fingerprint;});_mh:(function(window){if(!Object.defineProperty){throw("Font.js requires Object.defineProperty, which this browser does not support.");}if(!document.createElement("canvas").getContext){throw("Font.js requires and the Canvas2D API, which this browser does not support."); }(function(window){try{var _h4=new Uint8Array(1);return;}catch(e){}function subarray(start,end){return this.slice(start,end);}function _nh(_Hb,offset){var i,_t6=_Hb.length;if(arguments.length<2){offset=0;}for(i=0;i<_t6;++i,++offset){this[offset]=_Hb[i]&0xFF;}}function _oh(_ph){var result,i;if(typeof _ph==="number"){result=new Array(_ph);for(i=0;i<_ph;++i){result[i]=0;}}else {result=_ph.slice(0);}result.subarray=subarray;result.buffer=result;result.byteLength=result.length;result.set =_nh;if(typeof _ph==="object"&&_ph.buffer){ result.buffer=_ph.buffer;}return result;}window.Uint8Array=_oh;window.Uint32Array=_oh;window.Int32Array=_oh;}(window));(function(window){if(window.opera)return;if("response" in XMLHttpRequest.prototype||"mozResponseArrayBuffer" in XMLHttpRequest.prototype||"mozResponse" in XMLHttpRequest.prototype||"responseArrayBuffer" in XMLHttpRequest.prototype){return;}var getter;if(window.VBArray){getter=function(){return new Uint8Array(new window.VBArray(this.responseBody)._qh());};}else {getter=function(){return this.responseBody; };}Object.defineProperty(XMLHttpRequest.prototype,"response",{get:getter});}(window));if(!window.btoa){window.btoa=function(data){var _rh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var _sh,_th,_uh,_4h,_vh,_wh,_xh,_yh,i=0,_zh=0,_Ah="",_Bh=[];if(!data){return data;}do {_sh=data.charCodeAt(i++);_th=data.charCodeAt(i++);_uh=data.charCodeAt(i++);_yh=_sh<<16|_th<<8|_uh;_4h=_yh>>18&0x3f;_vh=_yh>>12&0x3f;_wh=_yh>>6&0x3f;_xh=_yh&0x3f;_Bh[_zh++]=_rh.charAt(_4h)+_rh.charAt(_vh)+_rh.charAt(_wh)+_rh.charAt(_xh); }while(i0){document.head.removeChild(_Oh);document.body.removeChild(target);this._Nh=true;this.onload();}else {setTimeout(function(){font.validate(target,_Oh,_Ph,font,_Qh===false?false:_Qh-50);},50);}};Font.prototype._Sh=function(){var instance=this;var chr=function(_ue){return String.fromCharCode(_ue);};var _Th=function(_ue){if(_ue<256){return chr(0)+chr(_ue);}var _Uh=_ue>>8;var _Vh=_ue&0xFF;return chr(_Uh)+chr(_Vh);};var _Wh=function(_ue){if(_ue<0){_ue=0xFFFFFFFF+_ue+1;}return parseInt(_ue,10).toString(16); };var _Xh=function(_Uh,_Vh){return 256*_Uh+_Vh;};var _Yh=function(_Uh,_Vh){var _Zh=_Uh>>7===1,_ue;_Uh=_Uh&0x7F;_ue=256*_Uh+_Vh;if(!_Zh){return _ue;}return _ue-0x8000;};var __h=function(_Uh,_Vh,_0i,_1i){return 16777216*_Uh+65536*_Vh+256*_0i+_1i;};var error=function(_2i){instance.onerror(_2i);};var _3i=chr(0)+chr(1)+chr(0)+chr(0);var _4i="OTTO";var data=this.data;var version=chr(data[0])+chr(data[1])+chr(data[2])+chr(data[3]);var _5i=(version===_3i);var _6i=(_5i?false:version===_4i);if(_5i){this._Eh="truetype";} else if(_6i){this._Eh="opentype";}else {error("Error: file at "+this._Dh+" cannot be interpreted as OpenType font.");return;}var _7i=_Xh(data[4],data[5]),_8i=12,ptr,end=_8i+16*_7i,tags={},_9i;for(ptr=_8i;ptr"+_Ui;}document.body.appendChild(__i);_Gh._Ih=1.2*_Ki;var _1j=_Vi(__i,"height");_1j=_1j.replace("px","");if(_1j>=_Ki*_0j){_Gh._Ih=(_1j/_0j)|0;}document.body.removeChild(__i);if(new RegExp('^\s*$').test(_Ui)){return _Gh;}var canvas=this.canvas,_Za=this.context,_zi=this._Mh?1000:this._Gh._Hh,w=_zi,h=_zi, _2j=_zi/2,padding=50,_3j=(_zi-_Gh.width)/2;if(_3j!==(_3j|0)){_3j=_3j|0;}_Za.fillStyle="white";_Za.fillRect(-padding,-padding,w+2*padding,h+2*padding);_Za.fillStyle="black";_Za.fillText(_Ui,_3j,_2j);var _4j=(_Gh.width+padding)|0,_5j=4*_Ki,_6j=_3j-padding/2,_7j=_2j-_5j/2,_8j=_Za.getImageData(_6j,_7j,_4j,_5j).data;i=0;__5=0;_Xi=_4j*4;_Yi=_8j.length;_Zi=_5j/2;while(++i<_Yi&&_8j[i]===255){}var _Jh=(i/_Xi)|0;i=_Yi-1;while(--i>0&&_8j[i]===255){}var _Kh=(i/_Xi)|0;for(i=0,__5=0;__5<_4j&&_8j[i]===255;){i+=_Xi; if(i>=_Yi){__5++;i=(i-_Yi)+4;}}var _Mi=__5;var step=1;for(i=_Yi-3,__5=0;__5<_4j&&_8j[i]===255;){i-=_Xi;if(i<0){__5++;i=(_Yi-3)-(step++)*4;}}var _Ni=_4j-__5;_Gh._Jh=(_Zi-_Jh);_Gh._Kh=(_Kh-_Zi);_Gh._Li={_Mi:_Mi-(padding/2),_Ni:_Ni-(padding/2),_Oi:-_Gh._Kh,_Pi:_Gh._Jh};_Gh.height=1+(_Kh-_Jh);return _Gh;};Object.defineProperty(Font.prototype,"src",{set:function(_Dh){this._Dh=_Dh;this._Di();}});window.Font=Font;}(window));_mh:var _9j,_aj,_bj,_cj,_dj,_ej,_fj;function ds_set_precision(_gj){_hj=yyGetReal(_gj); }/*@constructor */function _ij(){this.width=0;this.height=0;this.body=[];}/*@constructor */function _jj(_kj,_lj){this._mj=[];this.__c=_kj;this._0d=_lj;var _J6=_kj*_lj;for(var i=0;i<_J6;i++){this._mj[i]=0;}}_jj.prototype._nj=function(_oj){this.__c=_oj.__c;this._0d=_oj._0d;this._mj=_oj._mj.slice();};function ds_grid_create(_kj,_lj){_kj=yyGetInt32(_kj);_lj=yyGetInt32(_lj);if(_kj<0||_lj<0){_H4("Error: Invalid ds_grid size: ("+_kj+","+_lj+")");}var _pj=new _jj(_kj,_lj);var id=_qj._Gf(_pj);return id;}function ds_grid_destroy(_jg){ _qj._rj(yyGetInt32(_jg));}function ds_grid_copy(_jg,_sj){var _tj=_qj._E5(yyGetInt32(_jg));if(!_tj){_H4("Error: invalid dest ds_grid(copy)");return;}var _uj=_qj._E5(yyGetInt32(_sj));if(!_uj){_H4("Error: invalid source ds_grid(copy)");return;}_tj._nj(_uj);}function ds_grid_resize(_jg,_kj,_lj){_kj=yyGetInt32(_kj);_lj=yyGetInt32(_lj);_jg=yyGetInt32(_jg);if(_kj<0||_lj<0){_H4("Error: Can't resize grid to ("+string(_kj)+","+string(_lj)+")");return;}var _pj=_qj._E5(_jg);if(!_pj){_H4("Error: invalid dest ds_grid(copy)"); return;}var _vj=new _jj(_kj,_lj);var i=_qj._Gf(_vj);ds_grid_set_grid_region(i,_jg,0,0,_pj.__c-1,_pj._0d-1,0,0);_qj._rj(i);_qj.Set(_jg,_vj);}function ds_grid_width(_jg){var _pj=_qj._E5(yyGetInt32(_jg));if(!_pj){_H4("Error: invalid ds_grid ID (ds_grid_width)");return;}return _pj.__c;}function ds_grid_height(_jg){var _pj=_qj._E5(yyGetInt32(_jg));if(!_pj){_H4("Error: invalid ds_grid ID (ds_grid_height)");return;}return _pj._0d;}function ds_grid_clear(_jg,_B3){var _pj=_qj._E5(yyGetInt32(_jg));if(!_pj){_H4("Error: invalid ds_grid ID (ds_grid_height)"); return;}for(var i=0;i<_pj._mj.length;i++){_pj._mj[i]=_B3;}}var ds_grid_set=_wj;function _wj(_jg,_q5,_r5,_B3){_jg=yyGetInt32(_jg);_q5=yyGetInt32(_q5);_r5=yyGetInt32(_r5);var _pj=_qj._E5(_jg);if(!_pj){_H4("Error: invalid ds_grid ID (ds_grid_set)");return;}if(_q5<0||_q5>=_pj.__c||_r5<0||_r5>=_pj._0d){_H4("Error: grid out of bounds(set) - GridID: "+_jg+" size["+_pj.__c+","+_pj._0d+"] at ("+_q5+","+_r5+")");return;}_pj._mj[_q5+(_r5*_pj.__c)]=_B3;}function _xj(_jg,_q5,_r5,_B3){_q5=yyGetInt32(_q5);_r5=yyGetInt32(_r5); var _pj=_qj._E5(yyGetInt32(_jg));if((_q5<0)||(_q5>=_pj.__c)||(_r5<0)||(_r5>=_pj._0d)){return;}_pj._mj[_q5+(_r5*_pj.__c)]=_B3;}var ds_grid_set_pre=_yj;function _yj(_jg,_q5,_r5,_B3){_jg=yyGetInt32(_jg);_q5=yyGetInt32(_q5);_r5=yyGetInt32(_r5);var _pj=_qj._E5(_jg);if(!_pj){_H4("Error: invalid ds_grid ID (ds_grid_set)");return _B3;}if(_q5<0||_q5>=_pj.__c||_r5<0||_r5>=_pj._0d){_H4("Error: grid out of bounds(set) - GridID: "+_jg+" size["+_pj.__c+","+_pj._0d+"] at ("+_q5+","+_r5+")");return _B3;}_pj._mj[_q5+(_r5*_pj.__c)]=_B3; return _B3;}function _zj(_jg,_q5,_r5,_B3){_q5=yyGetInt32(_q5);_r5=yyGetInt32(_r5);var _pj=_qj._E5(yyGetInt32(_jg));if((_q5<0)||(_q5>=_pj.__c)||(_r5<0)||(_r5>=_pj._0d)){return _B3;}_pj._mj[_q5+(_r5*_pj.__c)]=_B3;return _B3;}var ds_grid_set_post=_Aj;function _Aj(_jg,_q5,_r5,_B3){_jg=yyGetInt32(_jg);_q5=yyGetInt32(_q5);_r5=yyGetInt32(_r5);var _pj=_qj._E5(_jg);if(!_pj){_H4("Error: invalid ds_grid ID (ds_grid_set)");return _B3;}if(_q5<0||_q5>=_pj.__c||_r5<0||_r5>=_pj._0d){_H4("Error: grid out of bounds(set) - GridID: "+_jg+" size["+_pj.__c+","+_pj._0d+"] at ("+_q5+","+_r5+")"); return _B3;}var _q4=_pj._mj[_q5+(_r5*_pj.__c)];_pj._mj[_q5+(_r5*_pj.__c)]=_B3;return _q4;}function _Bj(_jg,_q5,_r5,_B3){_q5=yyGetInt32(_q5);_r5=yyGetInt32(_r5);var _pj=_qj._E5(yyGetInt32(_jg));if((_q5<0)||(_q5>=_pj.__c)||(_r5<0)||(_r5>=_pj._0d)){return _B3;}var _q4=_pj._mj[_q5+(_r5*_pj.__c)];_pj._mj[_q5+(_r5*_pj.__c)]=_B3;return _q4;}function ds_grid_add(_jg,_q5,_r5,_B3){_jg=yyGetInt32(_jg);_q5=yyGetInt32(_q5);_r5=yyGetInt32(_r5);var _pj=_qj._E5(_jg);if(!_pj){_H4("Error: invalid ds_grid ID (ds_grid_add)"); return;}if(_q5<0||_q5>=_pj.__c||_r5<0||_r5>=_pj._0d){_H4("Error: grid out of bounds(ds_grid_add): "+_jg+" ("+_q5+","+_r5+")");return;}var index=_q5+(_r5*_pj.__c);var _Cj=_pj._mj[index];var _Dj=typeof(_Cj);var _Ej=typeof(_B3);if(_Dj==_Ej&&(_Dj=="number"||_Dj=="string")){_pj._mj[index]+=_B3;}else if(_Dj!="object"||_Ej!="object"){_pj._mj[index]=_B3;}else if(_Dj!="string"&&_Ej!="string"){_pj._mj[index]=yyGetReal(_Cj)+yyGetReal(_B3);}else _pj._mj[index]=_B3;}function ds_grid_multiply(_jg,_q5,_r5,_B3){_jg=yyGetInt32(_jg); _q5=yyGetInt32(_q5);_r5=yyGetInt32(_r5);var _pj=_qj._E5(_jg);if(!_pj){_H4("Error: invalid ds_grid ID (ds_grid_multiply)");return;}if(_q5<0||_q5>=_pj.__c||_r5<0||_r5>=_pj._0d){_H4("Error: grid out of bounds(ds_grid_multiply): "+_jg+" ("+_q5+","+_r5+")");return;}var index=_q5+(_r5*_pj.__c);var _Cj=_pj._mj[index];var _Dj=typeof(_Cj);if(typeof(_B3)=="string"||_Dj=="string")return;_pj._mj[index]=yyGetReal(_Cj)*yyGetReal(_B3);}function ds_grid_set_region(_jg,_W6,_X6,_o6,_p6,_B3){_jg=yyGetInt32(_jg);_W6=yyGetInt32(_W6); _X6=yyGetInt32(_X6);_o6=yyGetInt32(_o6);_p6=yyGetInt32(_p6);if(_W6>_o6){var _J6=_W6;_W6=_o6;_o6=_J6;}if(_X6>_p6){var _J6=_X6;_X6=_p6;_p6=_J6;}var _pj=_qj._E5(_jg);if(!_pj){_H4("Error: invalid ds_grid ID (ds_grid_set_region)");return;}var _Fj=_H6(0,_I6(_X6,_p6));var _Gj=_I6(_pj._0d-1,_H6(_X6,_p6));var _Hj=_H6(0,_I6(_W6,_o6));var _Ij=_I6(_pj.__c-1,_H6(_W6,_o6));for(var y=_Fj;y<=_Gj;y++){for(var x=_Hj;x<=_Ij;x++){var index=(y*_pj.__c)+x;_pj._mj[index]=_B3;}}}function ds_grid_add_region(_jg,_W6,_X6,_o6,_p6,_B3){ _jg=yyGetInt32(_jg);_W6=yyGetInt32(_W6);_X6=yyGetInt32(_X6);_o6=yyGetInt32(_o6);_p6=yyGetInt32(_p6);if(_W6>_o6){var _J6=_W6;_W6=_o6;_o6=_J6;}if(_X6>_p6){var _J6=_X6;_X6=_p6;_p6=_J6;}var _pj=_qj._E5(_jg);if(!_pj){_H4("Error: invalid ds_grid ID (ds_grid_add_region)");return;}if((_W6<0||_W6>=_pj.__c||_X6<0||_X6>=_pj._0d)||(_o6<0||_o6>=_pj.__c||_p6<0||_p6>=_pj._0d)){_H4("Error: region out of bounds(ds_grid_add_region): "+_jg);}for(var y=_X6;y<=_p6;y++){var index=(y*_pj.__c)+_W6;for(var x=_W6;x<=_o6;x++){var _Cj=_pj._mj[index]; var _Dj=typeof(_Cj);var _Ej=typeof(_B3);if(_Dj==_Ej&&(_Dj=="number"||_Dj=="string")){_pj._mj[index]+=_B3;}else if(_Dj!="object"||_Ej!="object"){_pj._mj[index]=_B3;}else if(_Dj!="string"&&_Ej!="string"){_pj._mj[index]=yyGetReal(_Cj)+yyGetReal(_B3);}else _pj._mj[index]=_B3;index++;}}}function ds_grid_multiply_region(_jg,_W6,_X6,_o6,_p6,_B3){_jg=yyGetInt32(_jg);_W6=yyGetInt32(_W6);_X6=yyGetInt32(_X6);_o6=yyGetInt32(_o6);_p6=yyGetInt32(_p6);if(_W6>_o6){var _J6=_W6;_W6=_o6;_o6=_J6;}if(_X6>_p6){var _J6=_X6;_X6=_p6; _p6=_J6;}var _pj=_qj._E5(_jg);if(_pj==null||_pj==undefined){_H4("Error: invalid ds_grid ID (ds_grid_multiply_region)");return;}if((_W6<0||_W6>=_pj.__c||_X6<0||_X6>=_pj._0d)||(_o6<0||_o6>=_pj.__c||_p6<0||_p6>=_pj._0d)){_H4("Error: region out of bounds(ds_grid_multiply_region): "+_jg);}for(var y=_X6;y<=_p6;y++){var index=(y*_pj.__c)+_W6;for(var x=_W6;x<=_o6;x++){var _Cj=_pj._mj[index];var _Dj=typeof(_Cj);if(typeof(_B3)=="string"||_Dj=="string")continue;_pj._mj[index]=yyGetReal(_Cj)*yyGetReal(_B3);index++; }}}function ds_grid_set_disk(_jg,_q5,_r5,_Jj,_B3){_jg=yyGetInt32(_jg);_q5=yyGetReal(_q5);_r5=yyGetReal(_r5);_Jj=yyGetReal(_Jj);var _pj=_qj._E5(_jg);if(!_pj){_H4("Error: invalid ds_grid ID (ds_grid_set_disk)");return;}var _w6=0;var _x6=0;var _y6=0;var _z6=0;var i=0;var __5=0;_w6=~~(_H6(0.0,Math.floor(_q5-_Jj)));_y6=~~(_I6(_pj.__c-1,Math.ceil(_q5+_Jj)));_x6=~~(_H6(0,Math.floor(_r5-_Jj)));_z6=~~(_I6(_pj._0d-1,Math.ceil(_r5+_Jj)));_Jj=_Jj*_Jj;var w=_pj.__c;for(i=_w6;i<=_y6;i++){var _Kj=(i-_q5)*(i-_q5);for(__5=_x6; __5<=_z6;__5++){var _Lj=__5-_r5;if(_Kj+(_Lj*_Lj)<=_Jj){if(i>=0&&i<_pj.__c&&__5>=0&&__5<_pj._0d){_pj._mj[i+(__5*w)]=_B3;}}}}}function ds_grid_add_disk(_jg,_q5,_r5,_Jj,_B3){_jg=yyGetInt32(_jg);_q5=yyGetReal(_q5);_r5=yyGetReal(_r5);_Jj=yyGetReal(_Jj);var _pj=_qj._E5(_jg);if(!_pj){_H4("Error: invalid ds_grid ID (ds_grid_set_disk)");return;}var _w6=0;var _x6=0;var _y6=0;var _z6=0;var i=0;var __5=0;_w6=~~(_H6(0.0,Math.floor(_q5-_Jj)));_y6=~~(_I6(_pj.__c-1,Math.ceil(_q5+_Jj)));_x6=~~(_H6(0,Math.floor(_r5-_Jj))); _z6=~~(_I6(_pj._0d-1,Math.ceil(_r5+_Jj)));_Jj=_Jj*_Jj;var w=_pj.__c;for(i=_w6;i<=_y6;i++){var _Kj=(i-_q5)*(i-_q5);for(__5=_x6;__5<=_z6;__5++){var _Lj=__5-_r5;if(_Kj+(_Lj*_Lj)<=_Jj){if(i>=0&&i<_pj.__c&&__5>=0&&__5<_pj._0d){var index=i+(__5*w);var _Cj=_pj._mj[index];var _Dj=typeof(_Cj);var _Ej=typeof(_B3);if(_Dj==_Ej&&(_Dj=="number"||_Dj=="string")){_pj._mj[index]+=_B3;}else if(_Dj!="object"||_Ej!="object"){_pj._mj[index]=_B3;}else if(_Dj!="string"&&_Ej!="string"){_pj._mj[index]=yyGetReal(_Cj)+yyGetReal(_B3); }else _pj._mj[index]=_B3;}}}}}function ds_grid_multiply_disk(_jg,_q5,_r5,_Jj,_B3){_jg=yyGetInt32(_jg);_q5=yyGetReal(_q5);_r5=yyGetReal(_r5);_Jj=yyGetReal(_Jj);var _pj=_qj._E5(_jg);if(!_pj){_H4("Error: invalid ds_grid ID (ds_grid_set_disk)");return;}var _w6=0;var _x6=0;var _y6=0;var _z6=0;var i=0;var __5=0;_w6=~~(_H6(0.0,Math.floor(_q5-_Jj)));_y6=~~(_I6(_pj.__c-1,Math.ceil(_q5+_Jj)));_x6=~~(_H6(0,Math.floor(_r5-_Jj)));_z6=~~(_I6(_pj._0d-1,Math.ceil(_r5+_Jj)));_Jj=_Jj*_Jj;var w=_pj.__c;for(i=_w6;i<=_y6;i++){ var _Kj=(i-_q5)*(i-_q5);for(__5=_x6;__5<=_z6;__5++){var _Lj=__5-_r5;if(_Kj+(_Lj*_Lj)<=_Jj){if(i>=0&&i<_pj.__c&&__5>=0&&__5<_pj._0d){var index=i+(__5*w);var _Cj=_pj._mj[index];var _Dj=typeof(_Cj);if(typeof(_B3)=="string"||_Dj=="string")continue;_pj._mj[index]=yyGetReal(_Cj)*yyGetReal(_B3);}}}}}function _Mj(_jg,_sj,_W6,_X6,_o6,_p6,_Nj,_Oj,_Pj){_jg=yyGetInt32(_jg);_W6=yyGetInt32(_W6);_X6=yyGetInt32(_X6);_o6=yyGetInt32(_o6);_p6=yyGetInt32(_p6);_Nj=yyGetInt32(_Nj);_Oj=yyGetInt32(_Oj);if(_W6>_o6){var _J6=_W6; _W6=_o6;_o6=_J6;}if(_X6>_p6){var _J6=_X6;_X6=_p6;_p6=_J6;}var _uj=_qj._E5(_sj);if(!_uj){_H4("Error: invalid ds_grid ID (ds_grid_set_grid_region)");return;}var _tj=_qj._E5(_jg);if(!_tj){_H4("Error: invalid ds_grid ID (ds_grid_set_grid_region)");return;}var _Qj=_W6+(_uj.__c*_X6);var _Rj=_Nj+(_tj.__c*_Oj);if(_Qj>=_Rj){for(var y=_X6;y<=_p6;y++){var _Sj=_Nj;var index=(y*_uj.__c)+_W6;for(var x=_W6;x<=_o6;x++){if((x>=0&&x<_uj.__c&&y>=0&&y<_uj._0d)&&(_Sj>=0&&_Sj<_tj.__c&&_Oj>=0&&_Oj<_tj._0d)){_Pj(_tj,(_Sj+(_Oj*_tj.__c)), _uj,index);}index++;_Sj++;}_Oj++;}}else {_Oj+=_p6-_X6;_Nj+=_o6-_W6;for(var y=_p6;y>=_X6;y--){var _Sj=_Nj;var index=(y*_uj.__c)+_o6;for(var x=_o6;x>=_W6;x--){if((x>=0&&x<_uj.__c&&y>=0&&y<_uj._0d)&&(_Sj>=0&&_Sj<_tj.__c&&_Oj>=0&&_Oj<_tj._0d)){_Pj(_tj,(_Sj+(_Oj*_tj.__c)),_uj,index);}index--;_Sj--;}_Oj--;}}}function ds_grid_set_grid_region(_jg,_sj,_W6,_X6,_o6,_p6,_Nj,_Oj){_Mj(_jg,_sj,_W6,_X6,_o6,_p6,_Nj,_Oj,function _Tj(_Uj,_Vj,_Wj,_J3){_Uj._mj[_Vj]=_Wj._mj[_J3];});}function ds_grid_add_grid_region(_jg,_sj,_W6, _X6,_o6,_p6,_Nj,_Oj){_Mj(_jg,_sj,_W6,_X6,_o6,_p6,_Nj,_Oj,function _Tj(_Uj,_Vj,_Wj,_J3){var _Cj=_Uj._mj[_Vj];var _Dj=typeof(_Cj);var _Xj=_Wj._mj[_J3];var _Ej=typeof(_Xj);if(_Dj==_Ej&&(_Dj=="number"||_Dj=="string")){_Uj._mj[_Vj]+=_Xj;}else if(_Dj!="object"||_Ej!="object"){_Uj._mj[_Vj]=_Xj;}else if(_Dj!="string"&&_Ej!="string"){_Uj._mj[_Vj]=yyGetReal(_Cj)+yyGetReal(_Xj);}else _Uj._mj[_Vj]=_Xj;});}function ds_grid_multiply_grid_region(_jg,_sj,_W6,_X6,_o6,_p6,_Nj,_Oj,_B3){_Mj(_jg,_sj,_W6,_X6,_o6,_p6,_Nj,_Oj,function _Tj(_Uj, _Vj,_Wj,_J3){var _Cj=_Uj._mj[_Vj];var _Xj=_Wj._mj[_J3];if(typeof(_Cj)=="string"||typeof(_Xj)=="string")return;_Uj._mj[_Vj]=yyGetReal(_Cj)*yyGetReal(_Xj);});}var ds_grid_get=_Yj;function _Yj(_jg,_q5,_r5){_jg=yyGetInt32(_jg);var _pj=_qj._E5(_jg),x=yyGetInt32(_q5),y=yyGetInt32(_r5);if(!_pj){_H4("Error: invalid ds_grid ID (ds_grid_get)");return undefined;}if(x<0||x>=_pj.__c||y<0||y>=_pj._0d){_H4("Error: grid out of bounds(get) - GridID: "+_jg+" size["+_pj.__c+","+_pj._0d+"] at ("+x+","+y+")");return undefined; }return _pj._mj[x+(y*_pj.__c)];}function _Zj(_jg,_q5,_r5){var _pj=_qj._E5(_jg);return _pj._mj[~~_q5+(~~_r5*_pj.__c)];}function __j(_jg,_W6,_X6,_o6,_p6){_jg=yyGetInt32(_jg);_W6=yyGetInt32(_W6);_X6=yyGetInt32(_X6);_o6=yyGetInt32(_o6);_p6=yyGetInt32(_p6);var _pj=_qj._E5(_jg);if(!_pj){_H4("Error: invalid ds_grid ID (ds_grid_get_sum)");return 0;}if(_W6>_o6){var _J6=_W6;_W6=_o6;_o6=_J6;}if(_W6<0)_W6=0;if(_W6>=_pj.__c)_W6=_pj.__c-1;if(_o6<0)_o6=0;if(_o6>=_pj.__c)_o6=_pj.__c-1;if(_X6>_p6){var _J6=_X6;_X6=_p6;_p6=_J6; }if(_X6<0)_X6=0;if(_X6>=_pj._0d)_X6=_pj._0d-1;if(_p6<0)_p6=0;if(_p6>=_pj._0d)_p6=_pj._0d-1;_aj=_9j=_bj=_cj=0;var first=true;var _q8=0;for(var y=_X6;y<=_p6;y++){var index=(y*_pj.__c)+_W6;for(var x=_W6;x<=_o6;x++){var _Y4=_pj._mj[index];if(first){_9j=_aj=_Y4;first=false;}else {if(_9j>_Y4)_9j=_Y4;if(_aj<_Y4)_aj=_Y4;}if(typeof _Y4!=="string"){_bj+=_Y4;}_q8++;index++;}}_cj=_bj/_q8;}function ds_grid_get_sum(_jg,_W6,_X6,_o6,_p6){__j(_jg,_W6,_X6,_o6,_p6);return _bj;}function ds_grid_get_max(_jg,_W6,_X6,_o6,_p6){__j(_jg, _W6,_X6,_o6,_p6);return _aj;}function ds_grid_get_min(_jg,_W6,_X6,_o6,_p6){__j(_jg,_W6,_X6,_o6,_p6);return _9j;}function ds_grid_get_mean(_jg,_W6,_X6,_o6,_p6){__j(_jg,_W6,_X6,_o6,_p6);return _cj;}function _0k(_jg,_q5,_r5,_Jj){var _pj=_qj._E5(yyGetInt32(_jg));if(!_pj){_H4("Error: invalid ds_grid ID (ds_grid_set_disk)");return;}_q5=yyGetReal(_q5);_r5=yyGetReal(_r5);_Jj=yyGetReal(_Jj);var _w6=0;var _x6=0;var _y6=0;var _z6=0;var i=0;var __5=0;_w6=~~(_H6(0.0,Math.floor(_q5-_Jj)));_y6=~~(_I6(_pj.__c-1,Math.ceil(_q5+_Jj))); _x6=~~(_H6(0,Math.floor(_r5-_Jj)));_z6=~~(_I6(_pj._0d-1,Math.ceil(_r5+_Jj)));var first=true;var _q8=0;_aj=_9j=_bj=0;_Jj=_Jj*_Jj;var w=_pj.__c;for(i=_w6;i<=_y6;i++){var _Kj=(i-_q5)*(i-_q5);for(__5=_x6;__5<=_z6;__5++){var _Lj=__5-_r5;if(_Kj+(_Lj*_Lj)<=_Jj){if(i>=0&&i<_pj.__c&&__5>=0&&__5<_pj._0d){var _Y4=_pj._mj[i+(__5*w)];if(first){_9j=_aj=_Y4;first=false;}else {if(_9j>_Y4)_9j=_Y4;if(_aj<_Y4)_aj=_Y4;}if(typeof _Y4!=="string"){_bj+=_Y4;}_q8++;}}}}_cj=_bj/_q8;}function ds_grid_get_disk_sum(_jg,_q5,_r5,_Jj){ _0k(_jg,_q5,_r5,_Jj);return _bj;}function ds_grid_get_disk_max(_jg,_q5,_r5,_Jj){_0k(_jg,_q5,_r5,_Jj);return _aj;}function ds_grid_get_disk_min(_jg,_q5,_r5,_Jj){_0k(_jg,_q5,_r5,_Jj);return _9j;}function ds_grid_get_disk_mean(_jg,_q5,_r5,_Jj){_0k(_jg,_q5,_r5,_Jj);return _cj;}function _1k(_jg,_W6,_X6,_o6,_p6,_B3){var _pj=_qj._E5(yyGetInt32(_jg));if(!_pj){_H4("Error: invalid ds_grid ID (ds_grid_get_sum)");return 0;}_W6=yyGetInt32(_W6);_X6=yyGetInt32(_X6);_o6=yyGetInt32(_o6);_p6=yyGetInt32(_p6);if(_W6>_o6){var _J6=_W6; _W6=_o6;_o6=_J6;}if(_W6<0)_W6=0;if(_W6>=_pj.__c)_W6=_pj.__c-1;if(_o6<0)_o6=0;if(_o6>=_pj.__c)_o6=_pj.__c-1;if(_X6>_p6){var _J6=_X6;_X6=_p6;_p6=_J6;}if(_X6<0)_X6=0;if(_X6>=_pj._0d)_X6=_pj._0d-1;if(_p6<0)_p6=0;if(_p6>=_pj._0d)_p6=_pj._0d-1;_dj=false;_ej=-1;_fj=-1;for(var y=_X6;y<=_p6;y++){var index=(y*_pj.__c)+_W6;for(var x=_W6;x<=_o6;x++){var _Y4=_pj._mj[index];if((typeof(_B3)=="number"&&typeof(_Y4)=="number")){if(_hj>abs(_B3-_Y4)){_dj=true;_ej=x;_fj=y;return true;}}else {if(_B3==_Y4){_dj=true;_ej=x;_fj=y; return true;}}index++;}}return false;}function ds_grid_value_exists(_jg,_W6,_X6,_o6,_p6,_B3){_1k(_jg,_W6,_X6,_o6,_p6,_B3);return _dj;}function ds_grid_value_x(_jg,_W6,_X6,_o6,_p6,_B3){_1k(_jg,_W6,_X6,_o6,_p6,_B3);return _ej;}function ds_grid_value_y(_jg,_W6,_X6,_o6,_p6,_B3){_1k(_jg,_W6,_X6,_o6,_p6,_B3);return _fj;}function _2k(_jg,_q5,_r5,_Jj,_B3){var _pj=_qj._E5(yyGetInt32(_jg));if(!_pj){_H4("Error: invalid ds_grid ID (ds_grid_set_disk)");return;}_q5=yyGetReal(_q5);_r5=yyGetReal(_r5);_Jj=yyGetReal(_Jj);var _w6=0; var _x6=0;var _y6=0;var _z6=0;var i=0;var __5=0;_w6=~~(_H6(0.0,Math.floor(_q5-_Jj)));_y6=~~(_I6(_pj.__c-1,Math.ceil(_q5+_Jj)));_x6=~~(_H6(0,Math.floor(_r5-_Jj)));_z6=~~(_I6(_pj._0d-1,Math.ceil(_r5+_Jj)));_ej=_fj=-1;_dj=false;_Jj=_Jj*_Jj;var w=_pj.__c;for(i=_w6;i<=_y6;i++){var _Kj=(i-_q5)*(i-_q5);for(__5=_x6;__5<=_z6;__5++){var _Lj=__5-_r5;if(_Kj+(_Lj*_Lj)<=_Jj){if(i>=0&&i<_pj.__c&&__5>=0&&__5<_pj._0d){var _Y4=_pj._mj[i+(__5*w)];if((typeof(_B3)=="number"&&typeof(_Y4)=="number")){if(_hj>abs(_B3-_Y4)){_ej=i; _fj=__5;_dj=true;return;}}else {if(_Y4==_B3){_ej=i;_fj=__5;_dj=true;return;}}}}}}}function ds_grid_value_disk_exists(_jg,_q5,_r5,_Jj,_B3){_2k(_jg,_q5,_r5,_Jj,_B3);return _dj;}function ds_grid_value_disk_x(_jg,_q5,_r5,_Jj,_B3){_2k(_jg,_q5,_r5,_Jj,_B3);return _ej;}function ds_grid_value_disk_y(_jg,_q5,_r5,_Jj,_B3){_2k(_jg,_q5,_r5,_Jj,_B3);return _fj;}function ds_grid_shuffle(_jg){var _pj=_qj._E5(yyGetInt32(_jg));if(_pj==null||_pj==undefined){_H4("Error: invalid ds_grid ID (ds_grid_shuffle)");return;}_pj._mj.sort(function(){ return 0.5-Math.random();});}function ds_grid_write(_jg){var _pj=_qj._E5(yyGetInt32(_jg));if(!_pj){_H4("Error: invalid ds_grid ID (ds_grid_write)");return;}var width=_pj.__c;var height=_pj._0d;var _3k=buffer_create(16384,_4k,1);buffer_write(_3k,_5k,603);buffer_write(_3k,_5k,width);buffer_write(_3k,_5k,height);for(var x=0;x<=width-1;x++){for(y=0;y<=height-1;y++){var _ue=_pj._mj[x+(y*width)];_6k(_3k,_ue);}}var _7k=_8k(_3k);buffer_delete(_3k);return _7k;}function ds_grid_read(_jg,_9k){if(!_9k){_H4("Error: no string provided (ds_grid_read)"); return false;}var _pj=_qj._E5(yyGetInt32(_jg));if(!_pj){_H4("Error: invalid ds_grid ID (ds_grid_read)");return false;}if(_9k[0]=="{"){try{var _ak=JSON.parse(_9k);if((_ak!=null)&&(_ak!=undefined)&&(typeof(_ak.body)=="object")&&(typeof(_ak.width)=="number")&&(typeof(_ak.height)=="number")){_pj.__c=_ak.width;_pj._0d=_ak.height;_pj._mj=_ak.body;}}catch(_bk){_H4("Error: reading ds_grid JSON");return false;}return true;}else {var _3k=_ck(_9k);if(_3k<0)return false;buffer_seek(_3k,_dk,0);var id=buffer_read(_3k,_ek); var version;if(id==602){version=3;}else if(id==603){version=0;}else {_H4("Error: unrecognised format - resave the grid to update/fix issues. (ds_grid_read)");return false;}var w=buffer_read(_3k,_ek);var h=buffer_read(_3k,_ek);_pj.__c=w;_pj._0d=h;_pj._mj=[];var _J6=w*h;for(var i=0;i<_J6;i++){_pj._mj[i]=0;}for(i=0;i<=w-1;i++){for(__5=0;__5<=h-1;__5++){var _ue=_fk(_3k,version);_pj._mj[i+(__5*w)]=_ue;}}buffer_delete(_3k);return true;}}function ds_grid_sort(_jg,_gk,_hk){_jg=yyGetInt32(_jg);_gk=yyGetInt32(_gk);_hk=yyGetBool(_hk); var _pj=_qj._E5(_jg);if(!_pj){_H4("Error: invalid ds_grid ID (ds_grid_read)");return;}var _ik=[];for(var y=0;y<_pj._0d;y++){_ik[y]=ds_grid_get(_jg,_gk,y);}var _jk=_hk?1:-1;_ik.sort(function(_h4,_g4){return yyCompareVal(_h4,_g4,g_GMLMathEpsilon)*_jk;});var _kk=[];var _lk=[];for(var y=0;y<_ik.length;y++){_lk[y]=false;}for(var y=0;y<_ik.length;y++){var _mk=_ik[y];for(var __5=0;__5<_ik.length;__5++){var _nk=_hk?__5:(_ik.length-1-__5);if(_lk[_nk]){continue;}var _ok=ds_grid_get(_jg,_gk,_nk);if(_ok==_mk){for(var x=0; x<_pj.__c;x++){_kk[x+(_pj.__c*y)]=ds_grid_get(_jg,x,_nk);}_lk[_nk]=true;break;}}}_pj._mj=_kk;}function ds_grid_to_mp_grid(_oj,_pk,_qk){var _pj=_qj._E5(yyGetInt32(_oj));var _rk=_sk._E5(yyGetInt32(_pk));if(_rk==null||_pj==null){_H4("ds_grid_to_mp_grid :: Invalid source or destination grid");return;}var w=_rk._tk;var h=_rk._uk;var _vk=_pj.__c;var _wk=_pj._0d;if(w!=_vk||h!=_wk){_H4("ds_grid_to_mp_grid :: Grid sizes do not match");return;}if(_qk==undefined){for(var y=0;y{let hash=0;string=string.toString();for(let i=0;i{if(typeof _Pg.getTime=='function'){return _Pg.getTime();}let _4l=[];for(let _Wi in _Pg){if(hasOwnProperty.call(_Pg,_Wi)){_4l.push(_Wi);}}_4l.sort();let result=0;for(let _Wi in _4l){result+=_2l(_Wi+_5l(_Pg[_Wi]));}return result;};const _5l=(value)=>{const type=value==undefined?undefined:typeof value;return _6l[type]?_6l[type](value)+_2l(type):0; };const _6l={string:_2l,_7l:_2l,_8l:_2l,_9l:_3l};function _al(_Sc){var _q4=_Sc;switch(typeof(_Sc)){case "object":if(_Sc.id!==undefined){_q4=_Sc.id;}else {_q4=_5l(_Sc);}break;default :break;}return _q4;}function ds_map_create(){var _b7=new Map();var id=_c7._Gf(_b7);return id;}function ds_map_destroy(_jg){_jg=yyGetInt32(_jg);var _b7=_c7._E5(_jg);if(_b7){_bl(_b7);_c7._rj(_jg);}}function ds_map_clear(_jg){_jg=yyGetInt32(_jg);var _b7=_c7._E5(_jg);if(_b7){_bl(_b7);}}function _bl(_cl){_cl.forEach(function(_Y4,key,_cl){ if(_Y4!=null&&_Y4.Object!==undefined)switch(_Y4._Yk){case _Mk:ds_map_destroy(_Y4.Object);break;case _Ok:ds_list_destroy(_Y4.Object);break;}});_cl.clear();if(_cl._dl)_cl._dl.clear();}function ds_map_copy(_pk,_sj){_pk=yyGetInt32(_pk);var _Gk=_c7._E5(_pk);var _Hk=_c7._E5(yyGetInt32(_sj));if(_Gk&&_Hk){_Gk=new Map();_Hk.forEach(function(_Y4,key,_Hk){_Gk.set(key,_Y4);});_c7.Set(_pk,_Gk);}}function ds_map_size(_jg){var _b7=_c7._E5(yyGetInt32(_jg));if(_b7){return _b7.size;}return 0;}function ds_map_empty(_jg){var _b7=_c7._E5(yyGetInt32(_jg)); if(_b7){return _b7.size==0;}return false;}function ds_map_replace(_jg,_el,_B3){_el=_al(_el);var _b7=_c7._E5(yyGetInt32(_jg));if(_b7)_b7.set(_el,_B3);}function ds_map_replace_map(_jg,_el,_B3){ds_map_replace(_jg,_el,new _Lk(_Mk,_B3));}function ds_map_replace_list(_jg,_el,_B3){ds_map_replace(_jg,_el,new _Lk(_Ok,_B3));}function ds_map_delete(_jg,_el){var _b7=_c7._E5(yyGetInt32(_jg));if(_b7){_el=_al(_el);_b7.delete(_el);if(_b7._dl&&_b7._dl.has(_el))_b7._dl.delete(_el);}}function ds_map_exists(_jg,_el){var _b7=_c7._E5(yyGetInt32(_jg)); if(_b7){_el=_al(_el);return _b7.has(_el);}return false;}function ds_map_add(_jg,_el,_B3){var _b7=_c7._E5(yyGetInt32(_jg));if(_b7){var _fl=_el;_el=_al(_el);if(_el!==_fl){if(_b7._dl==undefined){_b7._dl=new Map();}_b7._dl.set(_el,_fl);}_b7.set(_el,_B3)}}function ds_map_add_map(_jg,_el,_B3){ds_map_add(yyGetInt32(_jg),_el,new _Lk(_Mk,_B3));}function ds_map_add_list(_jg,_el,_B3){ds_map_add(yyGetInt32(_jg),_el,new _Lk(_Ok,_B3));}function ds_map_set(_jg,_el,_B3){var _b7=_c7._E5(yyGetInt32(_jg));if(_b7){var _fl=_el;_el=_al(_el); if(_el!==_fl){if(_b7._dl==undefined){_b7._dl=new Map();}_b7._dl.set(_el,_fl);}_b7.set(_el,_B3);}}function ds_map_set_pre(_jg,_el,_B3){var _b7=_c7._E5(yyGetInt32(_jg));if(_b7){var _fl=_el;_el=_al(_el);if(_el!==_fl){if(_b7._dl==undefined){_b7._dl=new Map();}_b7._dl.set(_el,_fl);}_b7.set(_el,_B3);;}return _B3;}function ds_map_set_post(_jg,_el,_B3){var _q4=_B3;var _b7=_c7._E5(yyGetInt32(_jg));if(_b7){var _fl=_el;_el=_al(_el);if(_el!==_fl){if(_b7._dl==undefined){_b7._dl=new Map();}_b7._dl.set(_el,_fl);}_q4=_b7.get(_el); _b7.set(_el,_B3);}return _q4;}function ds_map_find_value(_jg,_el){if(Number.isNaN(_el))return undefined;if((_jg==undefined)||Number.isNaN(_jg)){_H4("Error: "+_jg+" is not a valid map reference");return undefined;}var _b7=_c7._E5(yyGetInt32(_jg));if(_b7){_el=_al(_el);var _gl=_b7.get(_el);if(typeof(_gl)==="object"&&(_gl!=null)&&_gl.Object!==undefined){return _gl.Object;}else return _gl;}return undefined;}function ds_map_values_to_array(_jg,_hl){if((_jg==undefined)||Number.isNaN(_jg)){_H4("Error: "+_jg+" is not a valid map reference"); return undefined;}var _q4;if(arguments.length>=2){_q4=_hl;}else {_q4=[];}var _b7=_c7._E5(yyGetInt32(_jg));if(_b7){for(const [_h4,_gl] of _b7){if(typeof(_gl)==="object"&&(_gl!=null)&&_gl.Object!==undefined){_q4.push(_gl.Object);}else _q4.push(_gl);}}return _q4;}function ds_map_keys_to_array(_jg,_hl){if((_jg==undefined)||Number.isNaN(_jg)){_H4("Error: "+_jg+" is not a valid map reference");return undefined;}var _q4;if(arguments.length>=2){_q4=_hl;}else {_q4=[];}var _b7=_c7._E5(yyGetInt32(_jg));if(_b7){for(const [key, _h4] of _b7){var _Y4=key;if(_b7._dl&&_b7._dl.has(key))_Y4=_b7._dl.get(key);_q4.push(_Y4);}}return _q4;}function ds_map_is_map(_jg,_el){if(Number.isNaN(_el))return undefined;if((_jg==undefined)||Number.isNaN(_jg)){_H4("Error: "+_jg+" is not a valid map reference");return undefined;}var _b7=_c7._E5(yyGetInt32(_jg));if(_b7){_el=_al(_el);var _gl=_b7.get(_el);if(typeof(_gl)==="object"&&(_gl!=null)&&_gl.Object!==undefined){return _gl._Yk===_Mk;}else return false;}return undefined;}function ds_map_is_list(_jg,_el){if(Number.isNaN(_el))return undefined; if((_jg==undefined)||Number.isNaN(_jg)){_H4("Error: "+_jg+" is not a valid map reference");return undefined;}var _b7=_c7._E5(yyGetInt32(_jg));if(_b7){_el=_al(_el);var _gl=_b7.get(_el);if(typeof(_gl)==="object"&&(_gl!=null)&&_gl.Object!==undefined){return _gl._Yk===_Ok;}else return false;}return undefined;}function ds_map_find_previous(_jg,_el){_el=_al(_el);var _il=undefined;var _b7=_c7._E5(yyGetInt32(_jg));for(const [key,_jl] of _b7){if(key==_el){return _il;}_il=key;}return undefined;}function ds_map_find_next(_jg, _el){_el=_al(_el);var _kl=false;var _b7=_c7._E5(yyGetInt32(_jg));for(const [key,_jl] of _b7){if(_kl){return key;}if(key==_el){_kl=true;}}return undefined;}function ds_map_find_first(_jg){var _b7=_c7._E5(yyGetInt32(_jg));for(const [key,_jl] of _b7){return key;}return undefined;}function ds_map_find_last(_jg){var _il=undefined;var _b7=_c7._E5(yyGetInt32(_jg));for(const [key,_jl] of _b7){_il=key;}return _il;}function ds_map_write(_jg){var _b7=_c7._E5(yyGetInt32(_jg));if(_b7==null){_H4("Error: invalid ds_map ID (ds_map_write)"); return "";}var _3k=buffer_create(16384,_4k,1);buffer_write(_3k,_5k,403);var _ll=_b7.size;buffer_write(_3k,_5k,_ll);for(const [key,_ue] of _b7){var _ml=key;if(_b7._dl&&_b7._dl.has(key))_ml=_b7._dl.get(key);_6k(_3k,_ml);var _Y4=_ue;if(typeof(_ue)==="object"&&(_ue!=null)&&_ue.Object!==undefined)_Y4=_ue.Object;_6k(_3k,_Y4);}var _7k=_8k(_3k);buffer_delete(_3k);return _7k;}function ds_map_read(_jg,_9k){_jg=yyGetInt32(_jg);var _b7=_c7._E5(_jg);if(_b7==null){_H4("Error: invalid ds_map ID (ds_map_read)");return false; }if(_9k[0]=="{"){try{if(null!=_9k){_b7=JSON.parse(_9k);_c7.Set(_jg,_b7);}else {_c7.Set(_jg,'');}}catch(_bk){_H4("Error: reading ds_map JSON.");return false;}}else {ds_map_clear(_jg);var _3k=_ck(_9k);if(_3k<0)return false;buffer_seek(_3k,_dk,0);var id=buffer_read(_3k,_ek);var version;if(id==402){version=3;}else if(id==403){version=0;}else {_H4("Error: unrecognised format - resave the map to update/fix issues. (ds_map_read)");return false;}var _q8=buffer_read(_3k,_ek);while(_q8>0){var key=_fk(_3k,version);var value=_fk(_3k, version);ds_map_add(_jg,key,value);_q8--;}buffer_delete(_3k);}return true;}function ds_map_secure_save(_jg,_nl){if(_nl!=null){var _ol=_pl();var json=json_encode(yyGetInt32(_jg));var _ql=base64_encode(json);_rl(yyGetString(_nl),_ol+_ql);}}function ds_map_secure_load_buffer(_sl){return -1;}function ds_map_secure_save_buffer(_97,_sl){return -1;}function ds_map_secure_load(_nl){var _tl=-1;try{var _ul=_pl();var data=_vl(yyGetString(_nl),true);var _wl=data.substring(0,_ul.length);var _ql=data.substring(_ul.length,data.length); if(_wl==_ul){var json=base64_decode(_ql);return json_decode(json);}}catch(e){debug(e.message);}return -1;}function _xl(){var id=0xF35065da3bb79cac7;return id.toString();}function _pl(){var _ol=_xl();var _yl=sha1_string_utf8(_ol.split("").reverse().join(""));return sha1_string_utf8(_yl);}/*@constructor */function _zl(_Al,_Ak){this.sub=_Al;this.data=_Ak;}/*@constructor */function _Bl(_Al,_Ak){this.depth=_Al;this._Cl=_Ak;}function ds_priority_create(){var _Sg=new _Dl();return _El._Gf(_Sg);}function ds_priority_destroy(_jg){ _El._rj(yyGetInt32(_jg));}function ds_priority_clear(_jg){var _Fl=_El._E5(yyGetInt32(_jg));if(_Fl==null||_Fl==undefined){_H4("Error: invalid dest priority queue ds_priority_clear()");return;}_Fl._Wf();}function ds_priority_copy(_jg,_sj){_jg=yyGetInt32(_jg);var _Gl=_El._E5(_jg);if(_Gl==null||_Gl==undefined){_H4("Error: invalid dest priority queue ds_priority_copy()");return;}var _Hl=_El._E5(yyGetInt32(_sj));if(_Hl==null||_Hl==undefined){_H4("Error: invalid source priority queue ds_priority_copy()");return; }_Gl._nj(_Hl);_El.Set(_jg,_Gl);}function ds_priority_size(_jg){var _Fl=_El._E5(yyGetInt32(_jg));if(_Fl==null||_Fl==undefined){_H4("Error: invalid priority queue ds_priority_size()");return 0;}return _Fl.length;}function ds_priority_empty(_jg){if(ds_priority_size(yyGetInt32(_jg))==0)return true;else return false;}function ds_priority_add(_jg,_B3,_Il){var _Fl=_El._E5(yyGetInt32(_jg));if(_Fl==null||_Fl==undefined){_H4("Error: invalid priority queue ds_priority_add()");return;}var _Jl=new _Bl(_Il,_B3);_Fl._Gf(_Jl); }function ds_priority_change_priority(_jg,_B3,_Il){var _Fl=_El._E5(yyGetInt32(_jg));if(_Fl==null||_Fl==undefined){_H4("Error: invalid priority queue ds_priority_change_priority()");return;}var i=0;while(i<_Fl.length){var _Kl=_Fl._E5(i);if(_Kl!=null){var _Y4=_Kl._Cl;if(typeof(_B3)=="number"&&typeof(_Y4)=="number"){if(_hj>abs(_Y4-_B3)){_Fl._Ll(_Kl);_Kl.depth=_Il;_Fl._Gf(_Kl);return;}}else {if(_Y4==_B3){_Fl._Ll(_Kl);_Kl.depth=_Il;_Fl._Gf(_Kl);return;}}}i++;}}function ds_priority_find_priority(_jg,_B3){var _Fl=_El._E5(yyGetInt32(_jg)); if(_Fl==null||_Fl==undefined){_H4("Error: invalid priority queue ds_priority_find_priority()");return undefined;}var i=0;while(i<_Fl.length){var _Kl=_Fl._E5(i);if(_Kl!=null){var _Y4=_Kl._Cl;if(((typeof(_B3)=="number")||(_B3 instanceof Long))&&((typeof(_Y4)=="number")||(_Y4 instanceof Long))){var _Ml=yyGetReal(_B3);var _Nl=yyGetReal(_Y4);if(_hj>abs(_Nl-_Ml))return _Kl.depth;}else {if(_Y4==_B3)return _Kl.depth;}}i++;}return undefined;}function ds_priority_delete_value(_jg,_B3){var _Fl=_El._E5(yyGetInt32(_jg));if(_Fl==null||_Fl==undefined){ _H4("Error: invalid priority queue ds_priority_delete_value()");return;}var i=0;while(i<_Fl.length){var _Kl=_Fl._E5(i);if(_Kl!=null){var _Y4=_Kl._Cl;if(typeof(_B3)=="number"&&typeof(_Y4)=="number"){if(_hj>abs(_Y4-_B3)){_Fl._Ll(_Kl);return;}}else {if(_Y4==_B3){_Fl._Ll(_Kl);}}}i++;}return;}function ds_priority_delete_min(_jg){var _Fl=_El._E5(yyGetInt32(_jg));if(_Fl==null||_Fl==undefined){_H4("Error: invalid priority queue ds_priority_delete_min()");return;}if(_Fl.length<=0)return 0;var _Kl=_Fl._E5(0);_Fl._Ll(_Kl); return _Kl._Cl;}function ds_priority_find_min(_jg){var _Fl=_El._E5(yyGetInt32(_jg));if(_Fl==null||_Fl==undefined){_H4("Error: invalid priority queue ds_priority_find_min()");return undefined;}if(_Fl.length<=0)return undefined;var _Kl=_Fl._E5(0);return _Kl._Cl;}function ds_priority_delete_max(_jg){var _Fl=_El._E5(yyGetInt32(_jg));if(_Fl==null||_Fl==undefined){_H4("Error: invalid priority queue ds_priority_delete_max()");return;}if(_Fl.length<=0)return 0;var _Kl=_Fl._E5(_Fl.length-1);_Fl._Ll(_Kl);return _Kl._Cl; }function ds_priority_find_max(_jg){var _Fl=_El._E5(yyGetInt32(_jg));if(_Fl==null||_Fl==undefined){_H4("Error: invalid priority queue ds_priority_find_max()");return undefined;}if(_Fl.length<=0)return undefined;var _Kl=_Fl._E5(_Fl.length-1);return _Kl._Cl;}function ds_priority_write(_jg){var _Sg=_El._E5(yyGetInt32(_jg));if(_Sg==null){_H4("Error: invalid ds_priority ID (ds_priority_write)");return "";}var _Ol=[];var _ue=[];for(var index=0;index<_Sg._Vk.length;index++){var _Pl=_Sg._Vk[index];if(_Pl){_Ol.push(_Pl.depth); _ue.push(_Pl._Cl);}}var _Yi=_Sg._Vk.length;var _3k=buffer_create(16384,_4k,1);buffer_write(_3k,_5k,503);buffer_write(_3k,_5k,_Yi);for(var i=0;i<_Yi;i++){_6k(_3k,_Ol[i]);}for(var i=0;i<_Yi;i++){_6k(_3k,_ue[i]);}var _7k=_8k(_3k);buffer_delete(_3k);return _7k;}function ds_priority_read(_jg,_9k){_jg=yyGetInt32(_jg);var _Ql=_El._E5(_jg);if(_Ql==null){_H4("Error: invalid ds_priority ID (ds_priority_read)");return false;}if(_9k[0]=="{"){try{var _Sg=JSON.parse(_9k);_Ql._Wf();for(var index=0;index<_Sg.length;index++){ var _Fk=_Sg[index];ds_priority_add(_jg,_Fk.data,_Fk.sub);}}catch(_bk){_H4("Error: reading ds_priority JSON");return false;}}else {var _3k=_ck(_9k);if(_3k<0)return false;buffer_seek(_3k,_dk,0);var id=buffer_read(_3k,_ek);var version;if(id==502){version=3;}else if(id==503){version=0;}else {_H4("Error: unrecognised format - resave the priority list to update/fix issues. (ds_priority_read)");return false;}var _Yi=buffer_read(_3k,_ek);ds_priority_clear(_jg);var _Ol=[];var _ue=[];for(var i=0;i<_Yi;i++){_Ol[i]=_fk(_3k, version);}for(var i=0;i<_Yi;i++){_ue[i]=_fk(_3k,version);}for(var i=0;i<_Yi;i++){ds_priority_add(_jg,_ue[i],_Ol[i]);}buffer_delete(_3k);}return true;}function ds_queue_create(){var _7k=[];return _Rl._Gf(_7k);}function ds_queue_destroy(_jg){_Rl._rj(yyGetInt32(_jg));}function ds_queue_clear(_jg){_jg=yyGetInt32(_jg);var _7k=_Rl._E5(_jg);if(!_7k){_H4("Error: invalid ds_queue ID (ds_queue_clear)");return;}_7k=[];_Rl.Set(_jg,_7k);}function ds_queue_copy(_pk,_sj){_pk=yyGetInt32(_pk);var _Gk=_Rl._E5(_pk);if(_Gk==null){ _H4("Error: invalid DEST ds_queue ID (ds_queue_copy)");return;}var _Hk=_Rl._E5(yyGetInt32(_sj));if(_Hk==null){_H4("Error: invalid SOURCE ds_queue ID (ds_queue_copy)");return;}_Gk=_Hk.slice();_Rl.Set(_pk,_Gk);}function ds_queue_size(_jg){var _7k=_Rl._E5(yyGetInt32(_jg));if(_7k==null){_H4("Error: invalid ds_queue ID (ds_queue_size)");return 0;}return _7k.length;}function ds_queue_empty(_jg){return(ds_queue_size(yyGetInt32(_jg))==0);}function ds_queue_enqueue(){var _Ik=arguments;var _Jk=arguments.length;var _Ql=_Rl._E5(_Ik[0]); if(!_Ql){_H4("Error: invalid ds_queue ID (ds_queue_enqueue)");return;}for(var i=1;i<_Jk;i++){_Ql.push(_Ik[i]);}return;}function ds_queue_dequeue(_jg){var _7k=_Rl._E5(yyGetInt32(_jg));if(_7k==null){_H4("Error: invalid ds_queue ID (ds_queue_dequeue)");return 0;}return _7k.shift();}function ds_queue_head(_jg){var _7k=_Rl._E5(yyGetInt32(_jg));if(_7k==null){_H4("Error: invalid ds_queue ID (ds_queue_head)");return 0;}return _7k[0];}function ds_queue_tail(_jg){var _7k=_Rl._E5(yyGetInt32(_jg));if(_7k==null){_H4("Error: invalid ds_queue ID (ds_queue_tail)"); return 0;}return _7k[_7k.length-1];}function ds_queue_write(_jg){var _Ql=_Rl._E5(yyGetInt32(_jg));if(_Ql==null){_H4("Error: invalid ds_queue ID (ds_queue_write)");return "";}var _Yi=_Ql.length;var _3k=buffer_create(16384,_4k,1);buffer_write(_3k,_5k,203);buffer_write(_3k,_5k,_Yi);buffer_write(_3k,_5k,0);buffer_write(_3k,_5k,_Yi);for(var i=0;i<_Yi;i++){var _ue=_Ql[i];_6k(_3k,_ue);}var _7k=_8k(_3k);buffer_delete(_3k);return _7k;}function ds_queue_read(_jg,_9k){_jg=yyGetInt32(_jg);var _Ql=_Rl._E5(_jg);if(_Ql==null){ _H4("Error: invalid ds_queue ID (ds_queue_read)");return false;}if(_9k=="{"){try{_Ql=JSON.parse(_9k);_Rl.Set(_jg,_Ql);}catch(_bk){_H4("Error: reading ds_queue JSON.");return false;}}else {var _3k=_ck(_9k);if(_3k<0)return false;buffer_seek(_3k,_dk,0);var id=buffer_read(_3k,_ek);var version;if(id==202){version=3;}else if(id==203){version=0;}else {_H4("Error: unrecognised format - resave the queue to update/fix issues. (ds_queue_read)");return false;}var last=buffer_read(_3k,_ek);var first=buffer_read(_3k,_ek); var _Yi=buffer_read(_3k,_ek);_Ql=[];_Rl.Set(_jg,_Ql);for(var i=0;i0){_f7.image_xscale=_nm;_f7.image_yscale=_nm;}}function _pm(_f7,_qm,_B3){if(true==_Ul){_f7._rm(_qm,_B3);} else {_f7.direction=_qm;_f7.speed=_B3;}}function _sm(_f7,_tm){if(_Ul){_f7.hspeed=_f7.hspeed+_tm;}else {_f7.hspeed=_tm;}}function _um(_f7,_tm){if(_Ul){_f7.vspeed=_f7.vspeed+_tm;}else {_f7.vspeed=_tm;}}function _vm(_f7,_wm,_xm){if(true==_Ul){_f7.gravity_direction+=_wm;_f7.gravity+=_xm;}else {_f7.gravity_direction=_wm;_f7.gravity=_xm;}}function _ym(_f7,_zm){if(true==_Ul){_f7.friction+=_zm;}else {_f7.friction=_zm;}}function _Am(_f7,direction,size){var _g4=false;var _Bm=0;if(direction.length!=9){debug("Incorrect argument for action_move()"); return;}for(_Bm=0;_Bm<9;_Bm++){_g4=((true==_g4)||(direction[_Bm]=='1'))?true:false;}if(true!=_g4){return;}if(true==_Ul){_f7.speed=_f7.speed+size;}else {_f7.speed=size;}do {_Bm=floor(_Cm(9));}while(!(direction[_Bm]=='1'));switch(_Bm){case 0:_f7.direction=225;break;case 1:_f7.direction=270;break;case 2:_f7.direction=315;break;case 3:_f7.direction=180;break;case 4:{_f7.direction=0;_f7.speed=0;break;}case 5:_f7.direction=0;break;case 6:_f7.direction=135;break;case 7:_f7.direction=90;break;case 8:_f7.direction=45; break;}}function _Dm(_f7,_q5,_r5,_tm){if(true==_Ul){move_towards_point(_f7,_q5+_f7.x,_r5+_f7.y,_tm);}else {move_towards_point(_f7,_q5,_r5,_tm);}}function _Em(_f7,_q5,_r5){if(true==_Ul){_f7._Hd(_q5+_f7.x,_r5+_f7.y);}else {_f7._Hd(_q5,_r5);}}function _Fm(_f7){_f7._Hd(_f7.xstart,_f7.ystart);}function _Gm(_f7,_Hm,_Im){move_random(_f7,_Hm,_Im);}function _Jm(_f7,_Km,_Lm){move_snap(_f7,_Km,_Lm);}function _Mm(_f7,_Nm){var wrap=_Xk(_Nm);_f7.wrap((wrap==0)||(wrap==2)?true:false,(wrap==1)||(wrap==2)?true:false);}function _Om(_f7){ _f7.hspeed=-_f7.hspeed;}function _Pm(_f7){_f7.vspeed=-_f7.vspeed;}function _Qm(_f7,_qm,_Rm,_Sm){_Tm(_f7,_qm,_Rm,_Sm);}function _Um(_f7,_Vm,_Sm){_Wm(_f7,(_Vm>=0.5)?true:false,(_Sm==1)?true:false);}function _Xm(_f7){instance_destroy(_f7);}function _Ym(_f7,_Zm,_q5,_r5){var __m=_Xk(_Zm);if(true!=object_exists(__m)){debug("Creating existence for non-existent object: "+__m.toString());return;}var _0n=null;if(true==_Ul){_0n=_t3._1n(_q5+_f7.x,_r5+_f7.y,__m);}else {_0n=_t3._1n(_q5,_r5,__m);}_0n._N5(_2n,0,_0n,_0n); _0n._N5(_3n,0,_0n,_0n);_0n._4n=true;}function _5n(_f7,_Zm,_q5,_r5,_tm,_qm){var __m=_Xk(_Zm);if(true!=object_exists(__m)){debug("Creating instance for non-existent object: "+__m);return;}var _0n=null;if(true==_Ul){_0n=_t3._1n(_q5+_f7.x,_r5+_f7.y,__m);}else {_0n=_t3._1n(_q5,_r5,__m);}_0n.speed=_tm;_0n.direction=_qm;_0n._N5(_2n,0,_0n,_0n);_0n._N5(_3n,0,_0n,_0n);_0n._4n=true;}function _6n(_f7,_7n,_8n,_9n,_an,_q5,_r5){if(!object_exists(_7n|0)&&!object_exists(_8n|0)&&!object_exists(_9n|0)&&!object_exists(_an|0)){ return;}while(true){var _t6=~~_Cm(4);var id=arguments[_t6+1]|0;if(!object_exists(id)){continue;}var _0n;if(true==_Ul){_0n=_t3._1n(_q5+_f7.x,_r5+_f7.y,id);}else {_0n=_t3._1n(_q5,_r5,id);}_0n._N5(_2n,0,_0n,_0n);_0n._N5(_3n,0,_0n,_0n);_0n._4n=true;return;}}function _bn(_f7,_C5,_cn,_dn){var _om=_Xk(_C5);if(sprite_exists(_om)){_f7.sprite_index=_om;}if(_cn>=0){_f7.image_index=_cn;}_f7.image_speed=_dn;}function _en(_f7,_3d,_u9){_f7.image_blend=_Xk(_3d);_f7.image_alpha=_u9;}var _fn=_en;function _gn(_hn,_O3){if(_in==_jn){ var _kn=_Xk(_hn);audio_play_sound(_kn,1,_O3>=0.5?true:false);}else {var _kn=_Xk(_hn);if(_O3>=0.5){_ln._mn(_kn);}_ln._nn(_kn);}}function _on(_f7,_96,_pn){var alarm=_Xk(_pn);var time=_Xk(_96);if(!_Ul||(_f7.get_timer(alarm)<0)){_f7._qn(alarm,time);}else {_f7._qn(alarm,_f7.get_timer(alarm)+time);}}function _rn(){game_end();}function _sn(){game_restart();}function _tn(_fm){var _un;if(_fm<=1){_un=1;}else {_un=(_Cm(_Xk(1000*_fm))<=1000)?1:0;}return _un;}function _vn(){var _e4=0;if(typeof(arguments[0])!=typeof(arguments[1])){ if((typeof(arguments[0]=="boolean")&&(typeof(arguments[1])=="number"))){_e4=(arguments[0]==true)?(1-arguments[1]):(0-arguments[1]);}else if((typeof(arguments[1]=="boolean")&&(typeof(arguments[0])=="number"))){_e4=(arguments[1]==true)?(arguments[0]-1):(arguments[0]-0);}else {debug(_Yl);return;}}else {if(typeof(arguments[0])=="string"){_e4=(arguments[0]==arguments[1])?0:1;}else {_e4=arguments[0]-arguments[1];}}var result;if(_Xk(arguments[2])==1){result=(_e4<0)?1:0;}else if(_Xk(arguments[2])==2){result=(_e4>0)?1:0; }else if(_Xk(arguments[2])==3){result=(_e4<=0)?1:0;}else if(_Xk(arguments[2])==4){result=(_e4>=0)?1:0;}else {result=(_e4==0)?1:0;}return result;}function _wn(_f7,_xn,_q5,_r5){var _Tl="";if(typeof(arguments[0])=="number"){if(_xn==_Xk(_xn)){_Tl=(_Xk(_xn)|0).toString();}else {_Tl=_xn.toFixed(2).toString();}}else {_Tl=_xn.toString();}if(_Ul){draw_text(_q5+_f7.x,_r5+_f7.y,_Tl);}else {draw_text(_q5,_r5,_Tl);}}function _yn(_zn){if(_Ul){g_pBuiltIn.score+=_Xk(_zn);}else {g_pBuiltIn.score=_Xk(_zn);}}function _An(){var result; if(_Xk(arguments[1])==1){result=(g_pBuiltIn.scorearguments[0])?1:0;}else {result=(g_pBuiltIn.score==arguments[0])?1:0;}return result;}function _Bn(_f7,_q5,_r5,_Cn){var _Dn="";if(_Cn){_Dn=_Cn;}var score=_Dn+g_pBuiltIn.score.toString();if(_Ul){draw_text(_q5+_f7.x,_r5+_f7.y,score);}else {draw_text(_q5,_r5,score);}}function _En(_Fn){var _Gn=g_pBuiltIn.lives;if(true==_Ul){g_pBuiltIn.lives+=_Xk(_Fn);}else {g_pBuiltIn.lives=_Xk(_Fn);}if((_Gn>0)&&(g_pBuiltIn.lives<=0)){ _Hn._N5(_In,0);}}function _Jn(){var result;if(_Xk(arguments[1])==1){result=(g_pBuiltIn.livesarguments[0])?1:0;}else {result=(g_pBuiltIn.lives==arguments[0])?1:0;}return result;}function _Kn(_f7,_q5,_r5,_Ln){var _Mn=_Ln;if(!_Mn){_Mn="";}var lives=_Mn+g_pBuiltIn.lives.toString();if(_Ul){draw_text(_q5+_f7.x,_r5+_f7.y,lives);}else {draw_text(_q5,_r5,lives);}}function _Nn(_f7,_q5,_r5,_C5){if(sprite_exists(_Xk(_C5))){var _On=_D5._E5(_Xk(_C5)); var w=_On.width;for(var i=0;i0)&&(g_pBuiltIn.health<=0)){_Hn._N5(_Tn,0);}}function _Un(_f7,_Vn,_Wn){var result;_Wn=~~_Wn;if(_Wn==1){result=(g_pBuiltIn.health<_Vn)?1:0;}else if(_Wn==2){result=(g_pBuiltIn.health>_Vn)?1:0;}else {result=(g_pBuiltIn.health==_Vn)?1:0; }return result;}function _Xn(_Yn,_Zn,__n,_0o,_1o,_2o){g_pBuiltIn.show_score=_Xk(_Yn)==1?true:false;g_pBuiltIn.caption_score=_Zn;g_pBuiltIn.show_lives=_Xk(__n)==1?true:false;g_pBuiltIn.caption_lives=_0o;g_pBuiltIn.show_health=_Xk(_1o)==1?true:false;g_pBuiltIn.caption_health=_2o;}function _3o(_f7,_C5,_q5,_r5,_cn){if(!sprite_exists(_Xk(_C5))){debug(_Wl);return;}var _4o;if(_cn<0){_4o=_f7.image_index;}else {_4o=Math.floor(_cn);}var _On=_D5._E5(_Xk(_C5));if(_Ul){_On._19(_4o,_q5+_f7.x,_r5+_f7.y,1,1,0,_Pn,1); }else {_On._19(_4o,_q5,_r5,1,1,0,_Pn,1);}}function _5o(_f7,_6o,_q5,_r5,_7o){_Ib("action_draw_background()");}function _8o(_f7,_9o,_q5,_r5){if(_Ul){draw_text(_q5+_f7.x,_r5+_f7.y,_9o);}else {draw_text(_q5,_r5,_9o);}}function _ao(_f7,_bo,_q5,_r5,_co,_do,_y4){if(_Ul){draw_text_transformed(_q5+_f7.x,_r5+_f7.y,_bo,_co,_do,_y4);}else {draw_text_transformed(_q5,_r5,_bo,_co,_do,_y4);}}function _eo(_f7,_q5,_r5,_o6,_p6,_fo){if(_Ul){draw_rectangle(_q5+_f7.x,_r5+_f7.y,_o6+_f7.x,_p6+_f7.y,(_fo>=0.5)?true:false);}else { draw_rectangle(_q5,_r5,_o6,_p6,(_fo>=0.5)?true:false);}}function _go(_f7,_q5,_r5,_o6,_p6){if(_Ul){draw_line(_q5+_f7.x,_r5+_f7.y,_o6+_f7.x,_p6+_f7.y);}else {draw_line(_q5,_r5,_o6,_p6);}}function _ho(_3d){draw_set_color(_3d);}var _io=_ho;function _jo(_ko,_lo){draw_set_font(_ko);draw_set_halign(_lo);}function _mo(_f7,_q5,_r5,_o6,_p6,_3d,_no){var _oo=0;var _po=0;var _qo=0;var _ro=0;switch(_Xk(_3d)){case 0:_oo=_so;break;case 1:_oo=_so;break;case 2:_oo=_to;break;case 3:_oo=_uo;break;case 4:_oo=_Pn;break;case 5:_oo=_vo; break;case 6:_oo=_wo;break;case 7:_oo=_xo;break;case 8:_oo=_yo;break;case 9:_oo=_zo;break;case 10:_oo=_Ao;break;case 11:_oo=_Bo;break;case 12:_oo=_Co;break;case 13:_oo=_Do;break;case 14:_oo=_Eo;break;case 15:_oo=_Fo;break;case 16:_oo=_Go;break;}switch(_Xk(_no)){case 0:{_po=_Bo;_qo=_Do;_ro=_Co;}break;case 1:{_po=_so;_qo=_to;_ro=_Pn;}break;case 2:_po=_so;break;case 3:_po=_to;break;case 4:_po=_uo;break;case 5:_po=_Pn;break;case 6:_po=_vo;break;case 7:_po=_wo;break;case 8:_po=_xo;break;case 9:_po=_yo;break;case 10:_po=_zo; break;case 11:_po=_Ao;break;case 12:_po=_Bo;break;case 13:_po=_Co;break;case 14:_po=_Do;break;case 15:_po=_Eo;break;case 16:_po=_Fo;break;case 17:_po=_Go;break;}if(_Xk(_no)>1){_qo=_po;_ro=_po;}if(_Ul){_Ho(_q5+_f7.x,_r5+_f7.y,_o6+_f7.x,_p6+_f7.y,g_pBuiltIn.health,_oo,_po,_qo,_ro,0,(_3d>=0.5)?true:false,true);}else {_Ho(_q5,_r5,_o6,_p6,g_pBuiltIn.health,_oo,_po,_qo,_ro,0,(_3d>=0.5)?true:false,true);}}function _Io(_Jo,_Ko){room_goto(_Xk(_Jo));}function _Lo(){room_restart();}function _Mo(){room_goto_previous(); }function _No(){room_goto_next();}function _Oo(){return((g_pBuiltIn.get_current_room()!=g_pBuiltIn.room_first)?1:0);}function _Po(){return((g_pBuiltIn.get_current_room()!=g_pBuiltIn.room_last)?1:0);}function _Qo(_Al){if(_1m<0){_1m=_Ro();}_So(_1m);_To(_1m,_Xk(_Al));_2m=new Array(16);_3m=new Array(16);for(var i=0;i<16;i++){_2m[i]=-1;_3m[i]=-1;}}function _Uo(){if(_1m>=0){_Vo(_1m);}_1m=-1;}function _Wo(){if(_1m>=0){_Xo(_1m);}}function _Yo(_od,_Zo,__o,_0p,_1p,_2p){var type=_Xk(_od);var shape=_Xk(_Zo);var _3p=_Xk(_1p); var _4p=_Xk(_2p);if(_1m<0){_1m=_Ro();}if(_2m[type]<0){_2m[type]=_5p();}var _6p=_2m[type];_7p(_6p,shape);_8p(_6p,__o,_0p,0,0);_9p(_6p,_3p,_4p);}function _ap(_od,_Zo,_C5,__o,_0p,_bp){var type=_Xk(_od);var shape=_Xk(_Zo);var _On=_Xk(_C5);if(_1m<0){_1m=_Ro();}if(_2m[type]<0){_2m[type]=_5p();}var _6p=_2m[type];_7p(_6p,shape);_cp(_6p,_On,true,false,false);_8p(_6p,__o,_0p,_bp,0);}function _dp(_od,_ep,_1p,_2p,_fp,_gp){var type=_Xk(_od);var _hp=_Xk(_ep);var _3p=_Xk(_1p);var _4p=_Xk(_2p);if(_1m<0){_1m=_Ro();}if(_2m[type]<0){ _2m[type]=_5p();}var _6p=_2m[type];if(_hp==0){_ip(_6p,_3p,_4p);}else {_9p(_6p,_3p,_4p);}_jp(_6p,_fp,_gp);}var _kp=_dp;function _lp(_od,_mp,_np){var type=_Xk(_od);var _op=_Xk(_mp);var _pp=_Xk(_np);if(_1m<0){_1m=_Ro();}if(_2m[type]<0){_2m[type]=_5p();}var _6p=_2m[type];_qp(_6p,_op,_pp);}function _rp(_od,_sp,_tp,_up,_vp,_wp){var type=_Xk(_od);if(_1m<0){_1m=_Ro();}if(_2m[type]<0){_2m[type]=_5p();}var _6p=_2m[type];_xp(_6p,_sp,_tp,-_wp,0);_yp(_6p,_up,_vp,0,0);}function _zp(_od,_Ap,_Bp){var type=_Xk(_od);if(_1m<0){ _1m=_Ro();}if(_2m[type]<0){_2m[type]=_5p();}var _6p=_2m[type];_Cp(_6p,_Ap,_Bp);}function _Dp(_od,_Ep,_Fp,_Gp,_Hp){var type=_Xk(_od);var _Ip=_Xk(_Fp);var _Jp=_Xk(_Ep);var _Kp=_Xk(_Hp);var _Lp=_Xk(_Gp);if(_1m<0){_1m=_Ro();}if(_2m[type]<0){_2m[type]=_5p();}var _6p=_2m[type];_Mp(_6p,_Ip,_2m[_Jp]);_Np(_6p,_Kp,_2m[_Lp]);}function _Op(_Pp,_Zo,_Qp,_Rp,_Sp,_Tp){var _Up=_Xk(_Pp);var shape=_Xk(_Zo);if(_1m<0){_1m=_Ro();}if(_3m[_Up]<0){_3m[_Up]=_Vp(_1m);}var _Wp=_3m[_Up];_Xp(_1m,_Wp,_Qp,_Rp,_Sp,_Tp,shape,_Yp);}function _Zp(_Pp){ var _Up=_Xk(_Pp);if(_1m<0){_1m=_Ro();}if(_3m[_Up]<0){return;}var _Wp=_3m[_Up];__p(_1m,_Wp);}function _0q(_Pp,_od,_1q){var _Up=_Xk(_Pp);var type=_Xk(_od);var _7l=_Xk(_1q);if(_1m<0){_1m=_Ro();}if(_3m[_Up]<0){debug(_0m);return;}var _Wp=_3m[_Up];_2q(_1m,_Wp,_2m[type],_7l);}function _3q(_Pp,_od,_1q){var _Up=_Xk(_Pp);var type=_Xk(_od);var _7l=_Xk(_1q);if(_1m<0){_1m=_Ro();}if(_3m[_Up]<0){debug(_0m);return;}var _Wp=_3m[_Up];_4q(_1m,_Wp,_2m[type],_7l);}function _5q(_f7,_q5,_r5,_o6,_p6,_6q,_no){if(_Ul){_7q(_q5+_f7.x,_r5+_f7.y, _o6+_f7.x,_p6+_f7.y,_6q,_no,false,false);}else {_7q(_q5,_r5,_o6,_p6,_6q,_no,false,false);}}function _8q(_f7,_q5,_r5,_o6,_p6,_6q,_no){if(_Ul){_7q(_q5+_f7.x,_r5+_f7.y,_o6+_f7.x,_p6+_f7.y,_6q,_no,true,false);}else {_7q(_q5,_r5,_o6,_p6,_6q,_no,true,false);}}function _9q(_f7,_q5,_r5,_o6,_p6,_ad){if(_Ul){draw_arrow(_q5+_f7.x,_r5+_f7.y,_o6+_f7.x,_p6+_f7.y,_ad);}else {draw_arrow(_q5,_r5,_o6,_p6,_ad);}}function _aq(_f7,_bq,_cq,_dq){var _eq=_bq;var _fq=_cq;if(_Ul){_eq+=_f7.x;_fq+=_f7.y;}if(_Xk(_dq)==0){return place_free(_f7, _eq,_fq)?1:0;}return place_empty(_f7,_eq,_fq)?1:0;}function _gq(_f7,_bq,_cq,_dq){var _eq=_bq;var _fq=_cq;if(_Ul){_eq+=_f7.x;_fq+=_f7.y;}if(_Xk(_dq)==0){return !place_free(_f7,_eq,_fq)?1:0;}return !place_empty(_f7,_eq,_fq)?1:0;}function _hq(_bq){return _bq;}function _iq(_bq,_cq,_dq){var _t6=instance_number(_Xk(_bq));var result;if(_Xk(_dq)==1){result=(_t6<_cq)?1:0;}else if(_Xk(_dq)==2){result=(_t6>_cq)?1:0;}else {result=(_t6==_cq)?1:0;}return result;}function _jq(_f7,_Ak,_q5,_r5){if(_Ul){return place_meeting(_f7, _q5+_f7.x,_r5+_f7.y,_Xk(_Ak))?1:0;}return place_meeting(_f7,_q5,_r5,_Xk(_Ak))?1:0;}function _kq(_bq){var result;switch(_Xk(_bq)){case 1:result=(_ug._lq(1)||_ug._mq(1))?1:0;break;case 2:result=(_ug._lq(2)||_ug._mq(2))?1:0;break;case 3:result=(_ug._lq(3)||_ug._mq(3))?1:0;break;default :result=(_ug._nq()==0)?1:0;}return result;}function _oq(_f7,_q5,_r5){if(_q5>0){if(Math.abs(_f7.x-_q5*_Xk(_f7.x/_q5))>=0.001){return 0;}}if(_r5>0){if(Math.abs(_f7.y-_r5*_Xk(_f7.y/_r5))>=0.001){return 0;}}return 1;}function _pq(_f7, _qq,_tm,_rq,_sq){_f7._tq(_Xk(_qq),_tm,1,0,(_sq>=0.5)?true:false,_Xk(_rq));}function _uq(_f7){_f7._tq(-1,0,1,0,false,0);}function _vq(_f7,_Qk){if(_Ul){_f7.path_position+=_Qk;}else {_f7.path_position=_Qk;}}function _wq(_f7,_tm){if(_Ul){_f7.path_speed=_f7.path_speed+_tm;}else {_f7.path_speed=_tm;}}function _xq(_f7,_q5,_r5,_yq,_zq){if(_Ul){mp_linear_step(_f7,_q5+_f7.x,_r5+_f7.y,_yq,(_zq>=0.5)?true:false);}else {mp_linear_step(_f7,_q5,_r5,_yq,(_zq>=0.5)?true:false);}}function _Aq(_f7,_q5,_r5,_yq,_zq){if(_Ul){ mp_potential_step(_f7,_q5+_f7.x,_r5+_f7.y,_yq,(_zq>=0.5)?true:false);}else {mp_potential_step(_f7,_q5,_r5,_yq,(_zq>=0.5)?true:false);}}function _Bq(_f7,_Cq){if(!_f7)return;event_inherited(_f7,_Cq);}function _Dq(_f7,_Eq,_Fq){instance_change(_f7,_Eq|0,(_Fq>=0.5)?true:false);}function _Gq(_f7,_q5,_r5){if(_Ul){position_destroy(_f7,_q5+_f7.x,_r5+_f7.y);}else {position_destroy(_f7,_q5,_r5);}}function _Hq(_hn){if(_in==_jn){var _kn=_Xk(_hn);audio_stop_sound(_kn);}else {var _kn=_ln._E5(_Xk(_hn));if((_kn!=null)&&(_kn!=undefined)){ _ln._Iq(_hn);}else {debug(_Vl);}}}function _Jq(_hn){if(_in==_jn){var _kn=_Xk(_hn);return audio_is_playing(_kn);}else {var _kn=_ln._E5(_Xk(_hn));if((_kn!=null)&&(_kn!=undefined)){return(_ln._Kq(_hn)?1:0);}return 0;}}function _Lq(_f7,_Gc,_q5,_r5,_ad,_3d,_Mq){var _Nq=(_Mq<0.5)?_Oq:_Pq;if(_Ul){_Qq(_Nq,_Xk(_Gc),_q5+_f7.x,_r5+_f7.y,_Xk(_ad),_Xk(_3d));}else {_Qq(_Nq,_Xk(_Gc),_q5,_r5,_Xk(_ad),_Xk(_3d));}}function _Rq(_Sq){alert(_Sq);}function _Tq(_f7,_Hm,_Im,_u5,_qm){_f7.image_xscale=_Hm;_f7.image_yscale=_Im;_f7.image_angle=_u5; if((_qm==1)||(_qm==3)){_f7.image_xscale=-_f7.image_xscale;}if((_qm==2)||(_qm==3)){_f7.image_yscale=-_f7.image_yscale;}}function _Uq(_Vq,_Wq){if(_Wq>=0.5){_t3._19();}_Xq(_Vq);}function _Yq(_Zq){surface_save(0,_Zq);}function __q(_C5,_Zq,_0r){if(!sprite_exists(_Xk(_C5))){debug(_Zl);return;}if(!file_exists(_Zq)){debug(__l);return;}var _On=_D5._E5(_Xk(_C5));sprite_replace(_Xk(_C5),_Zq,_Xk(_0r),_On._1r,_On.transparent,_On.smooth,_On.preload,_On.xOrigin,_On.yOrigin);}function _2r(_hn,_Zq){if(!_3r(_Xk(_hn))){ debug(_Zl);return;}if(true!=file_exists(_Zq)){debug(__l);return;}var _kn=_ln._E5(_Xk(_hn));_4r(_Xk(_hn),_Zq,_kn.kind,_kn.preload);}function _5r(_6o,_Zq){if(!_6r(_Xk(_6o))){debug(_Zl);return;}if(!file_exists(_Zq)){debug(__l);return;}var _7r=_8r._E5(_Xk(_6o));_9r(_Xk(_6o),_Zq,_7r.transparent,_7r.smooth,_7r.preload);}function _ar(_f7,_J3,_Qk){_br(_f7,_J3,_Qk,0,0);}function _br(_f7,_J3,_Qk,_cr,_O3){_f7.timeline_index=_J3;_f7.timeline_position=_Qk;_f7._dr=_cr;_f7._er=_O3;}function _fr(_f7,_Qk){if(_Ul){_f7.timeline_position+=_Qk; }else {_f7.timeline_position=_Qk;}}function _gr(_f7,_tm){if(_Ul){_f7.timeline_speed+=_tm;}else {_f7.timeline_speed=_tm;}}function _hr(_f7){_f7._dr=false;}function _ir(_f7){_f7._dr=true;_f7.timeline_position=0;}function _jr(_f7){_f7._dr=true;}function _kr(_f7,_q5,_r5,_o6,_p6,_fo){if(_Ul){draw_ellipse(_q5+_f7.x,_r5+_f7.y,_o6+_f7.x,_p6+_f7.y,(_fo>=0.5)?true:false);}else {draw_ellipse(_q5,_r5,_o6,_p6,(_fo>=0.5)?true:false);}}function _lr(_f7,_q5,_r5,_o6,_p6,_6q,_no){if(_Ul){_mr(_q5+_f7.x,_r5+_f7.y,_o6+_f7.x, _p6+_f7.y,_6q,_no,false);}else {_mr(_q5,_r5,_o6,_p6,_6q,_no,false);}}function _nr(_or){_pr(_or);}function _qr(_or){_pr(_or);}function _rr(_sr,_tr,_6q,_no,_ur,_vr,_wr){var x,y;x=(g_pBuiltIn.room_width/2)-100;y=(g_pBuiltIn.room_height/2)-100;draw_highscore(x,y,x+200,y+200);}function _xr(){highscore_clear();_yr();}function _zr(_Ar){}function _Br(_B3){var _Cr=null;if(typeof(_B3)=="object"){_Cr=_B3;}else {var _Dr=yyGetInt32(_B3);_Cr=_Er._Fr(_Dr);}return _Cr;}function animcurve_get(_Gr){if(arguments.length!=1){_H4("animcurve_get() - wrong number of arguments"); return;}var _Cr=_Br(_Gr);if(_Cr==null){_H4("animcurve_get() - specified curve not valid");}else {return _Cr;}return -1;}function animcurve_get_channel_index(_Hr,_Ir){var result=-1;if(arguments.length!=2){_H4("animcurve_get_channel_index() - wrong number of arguments");return result;}var _Cr=_Br(_Hr);if(_Cr==null){_H4("animcurve_get_channel_index() - specified curve not valid");return result;}var name=yyGetString(_Ir);for(var i=0;i<_Cr._Jr;i++){var _Kr=_Cr._Lr[i];if((_Kr!=null)&&(_Kr._Mr!=null)&&_Kr._Mr==name){ result=i;break;}}return result;}function animcurve_get_channel(_Hr,_Nr){var result=-1;if(arguments.length!=2){_H4("animcurve_get_channel() - wrong number of arguments");return;}if(typeof(_Hr)!="number"&&typeof(_Hr)!="object"){_H4("animcurve_get_channel() - first parameter must be either curve ID or curve object");return;}if(typeof(_Nr)!="number"&&typeof(_Nr)!="string"){_H4("animcurve_get_channel() - second parameter must be either channel index or channel name");return;}var _Cr=_Br(_Hr);if(_Cr!=null){ if(typeof(_Nr)=="number"){var _Or=yyGetInt32(_Nr);if((_Or<0)||(_Or>=_Cr._Jr)){_H4("animcurve_get_channel() - specified channel index out of range");return;}if(_Cr._Lr[_Or]==null){_H4("animcurve_get_channel() - specified channel is invalid");return;}result=_Cr._Lr[_Or];}else {var name=yyGetString(_Nr);for(var i=0;i<_Cr._Jr;i++){var _Kr=_Cr._Lr[i];if((_Kr!=null)&&(_Kr._Mr!=null)&&_Kr._Mr==name){result=_Kr;break;}}}}return result;}function animcurve_channel_evaluate(_Pr,_Vn){if(arguments.length!=2){_H4("animcurve_channel_evaluate() - wrong number of arguments"); return;}if(_Pr==null||!(_Pr instanceof _Qr)){_H4("animcurve_channel_evaluate() - first parameter is not valid animation curve channel");return;}return _Pr._Rr(yyGetReal(_Vn));}function animcurve_create(){var _Cr=_Er._Sr();if(_Cr==null){_H4("animcurve_create() - could not create new curve");}return _Cr;}function animcurve_destroy(_Hr){if(arguments.length!=1){_H4("animcurve_destroy() - requires a curve ID or object");}var _Cr=_Br(_Hr);if(_Cr==null){_H4("animcurve_destroy() - specified curve not valid");}else if(_Cr._Tr==true){ _H4("animcurve_destroy() - can't delete a curve created in the IDE");}else {_Er._Ur(_Cr);}}function animcurve_exists(_Hr){if(arguments.length!=1){_H4("animcurve_exists() - requires a curve ID or struct");}var _Vr=false;if(typeof(_Hr)=="object"){if(_Hr instanceof _Wr){if(_Er._Xr(_Hr)){_Vr=true;}}}else {var _Dr=yyGetInt32(_Hr);if(_Er._Fr(_Dr)!=null){_Vr=true;}}return _Vr?1.0:0.0;}function animcurve_channel_new(){return new _Qr();}function animcurve_point_new(){return new _Yr();}function _6r(_Zr){var __r=_8r._0s(_Zr); if((__r===null)||(__r===undefined)){return false;}return true;}function _1s(_Zr){var _2s=_8r._0s(_Zr);if(!_2s)return "";return _2s.pName;}function _3s(_Zr){return _1s(_Zr);}function _4s(_Zr){var _2s=_8r._0s(_Zr);if(!_2s)return 0;if(_2s._5s===undefined)return 0;return _2s._5s.ow;}function _6s(_Zr){var _2s=_8r._0s(_Zr);if(!_2s)return 0;if(_2s._5s===undefined)return 0;return _2s._5s.oh;}function _7s(_q5,_r5,_kj,_lj,_8s,_9s){var _as=surface_create(_kj,_lj,_bs);var _Gk=_cs._E5(_as);var _ds=_Gk.getContext('2d');_ds.drawImage(canvas, -_q5,-_r5);if(_8s){_es(_ds,_kj,_lj);}var _fs=new _gs();var _B4=new _hs();_fs._5s=_B4;_B4.x=0;_B4.y=0;_B4.w=_kj;_B4.h=_lj;_B4.XOffset=0;_B4.YOffset=0;_B4.CropWidth=_B4.w;_B4.CropHeight=_B4.h;_B4.ow=_B4.w;_B4.oh=_B4.h;_B4.tp=_as;_B4.texture=_Gk;return _8r._is(_fs);}function _js(_jg,_q5,_r5,_kj,_lj,_8s,_9s){var _Hk=_cs._E5(_jg);var _as=surface_create(_kj,_lj,_bs);var _Gk=_cs._E5(_as);var _ds=_Gk.getContext('2d');_ds.drawImage(_Hk,-_q5,-_r5);if(_8s){_es(_ds,_kj,_lj);}var _fs=new _gs();var _B4=new _hs();_fs._5s=_B4; _B4.x=0;_B4.y=0;_B4.w=_kj;_B4.h=_lj;_B4.XOffset=0;_B4.YOffset=0;_B4.CropWidth=_B4.w;_B4.CropHeight=_B4.h;_B4.ow=_B4.w;_B4.oh=_B4.h;_B4.tp=_as;_B4.texture=_Gk;return _8r._is(_fs);}function _ks(_kj,_lj,_Pc){var _ls=surface_create(_kj,_lj,_bs);var _ms=_cs._E5(_ls);var _ds=_ms.getContext('2d');_ds.globalAlpha=1.0;_ds.fillStyle=_ns(_Qc(_Pc),1);_ds.fillRect(0,0,_kj,_lj);var _fs=new _gs();var _B4=new _hs();_fs._5s=_B4;_B4.x=0;_B4.y=0;_B4.w=_kj;_B4.h=_lj;_B4.XOffset=0;_B4.YOffset=0;_B4.CropWidth=_B4.w;_B4.CropHeight=_B4.h; _B4.ow=_B4.w;_B4.oh=_B4.h;_B4.tp=_ls;_B4.texture=_ms;return _8r._is(_fs);}var _os=_ks;function _ps(_kj,_lj,_6q,_no,_Gc){var _ls=surface_create(_kj,_lj,_bs);var _ms=_cs._E5(_ls);var _ds=_ms.getContext('2d');_ds.globalAlpha=1.0;var _qs;if(_Gc==0){_qs=_ds.createLinearGradient(0,0,_kj,0);}else {_qs=_ds.createLinearGradient(0,0,0,_lj);}_qs.addColorStop("0",_ns(_Qc(_6q),1));_qs.addColorStop("1.0",_ns(_Qc(_no),1));_ds.fillStyle=_qs;_ds.fillRect(0,0,_kj,_lj);var _fs=new _gs();var _B4=new _hs();_fs._5s=_B4;_B4.x=0;_B4.y=0; _B4.w=_kj;_B4.h=_lj;_B4.XOffset=0;_B4.YOffset=0;_B4.CropWidth=_B4.w;_B4.CropHeight=_B4.h;_B4.ow=_B4.w;_B4.oh=_B4.h;_B4.tp=_ls;_B4.texture=_ms;return _8r._is(_fs);}function _rs(_t4){return _8r._ss(_t4);}function _ts(_us){var _2s=_8r._0s(_us);if(_2s!=null&&_2s!=undefined){var _vs=_ws(_2s._5s);var _fs=new _gs();_fs.pName=_2s.pName;_fs.transparent=_2s.transparent;_fs.smooth=_2s.smooth;_fs.preload=_2s.preload;_fs._xs=true;var _B4=_fs._5s=new _hs();_B4._xs(_2s._5s);_B4.tp=_ys(_vs);_B4.texture=_F4[_B4.tp];_B4.texture.complete=true; _B4.x=0;_B4.y=0;return _8r._is(_fs);}return -1;}function _zs(_pk,_oj){var _Gk=_8r._0s(_pk);var _Hk=_8r._0s(_oj);if(_Gk!=null&&_Gk!=undefined&&_Hk!=null&&_Hk!=undefined){var _vs=_ws(_Hk._5s);var _fs=new _gs();_fs.pName=_Hk.pName;_fs.transparent=_Hk.transparent;_fs.smooth=_Hk.smooth;_fs.preload=_Hk.preload;_fs._5s=new _hs();_fs._5s._xs(_Hk._5s);_fs._5s.tp=_ys(_vs);_fs._5s.texture=_F4[_fs._5s.tp];_fs._5s.texture.complete=true;_fs._5s.x=0;_fs._5s.y=0;return _8r._As(_pk,_fs);}}function _Bs(_us,_q5,_r5){var _vs=_8r._0s(_us); if(!_vs)return;_Cs(_vs._5s,_q5,_r5,_Nc);}function _Ds(_us,_q5,_r5,_kj,_lj){var _vs=_8r._0s(_us);if(!_vs)return;_Es(_vs._5s,_q5,_r5,_kj,_lj,0xffffff,_Nc);}function _Fs(_us,_q5,_r5){var _vs=_8r._0s(_us);if(!_vs)return;_Gs(_vs._5s,_q5,_r5,1,1,true,true,0xffffff,_Nc);}function _Hs(_us,_Is,_Js,_m8,_n8,_q5,_r5){var _vs=_8r._0s(_us);if(!_vs)return;_Ks(_vs._5s,_Is,_Js,_m8,_n8,_q5,_r5,1,1,_Pn,_Nc);}function _Ls(_us,_q5,_r5,_co,_do,_y4,_Ms,_u9){var _vs=_8r._0s(_us);if(!_vs)return;var c=_Qc(_Ms);_Ns(_vs._5s,0,0,_q5, _r5,_co,_do,_y4*Math.PI/180.0,c,c,c,c,_u9);}function _Os(_us,_q5,_r5,_kj,_lj,_Ms,_u9){var _vs=_8r._0s(_us);if(!_vs)return;_Ms=_Qc(_Ms);_Es(_vs._5s,_q5,_r5,_kj,_lj,_Ms,_u9);}function _Ps(_us,_q5,_r5,_co,_do,_Ms,_u9){var _vs=_8r._0s(_us);if(!_vs)return;_Ms=_Qc(_Ms);_Gs(_vs._5s,_q5,_r5,_co,_do,true,true,_Ms,_u9);}function _Qs(_us,_Is,_Js,_m8,_n8,_q5,_r5,_co,_do,_Ms,_u9){var _vs=_8r._0s(_us);if(!_vs)return;_Ms=_Qc(_Ms);_Ks(_vs._5s,_Is,_Js,_m8,_n8,_q5,_r5,_co,_do,_Ms,_u9);}function _Rs(_us,_Is,_Js,_m8,_n8,_q5, _r5,_co,_do,_y4,_Ss,_Ts,_Us,_Vs,_u9){var _2s=_8r._0s(_us);if(!_2s)return;_Ss=_Qc(_Ss);_Ts=_Qc(_Ts);_Us=_Qc(_Us);_Vs=_Qc(_Vs);_Ws(_2s._5s,_Is,_Js,_m8,_n8,_q5,_r5,_co,_do,_y4*Math.PI/180.0,_Ss,_Ts,_Us,_Vs,_u9);}function _Xs(_t4,_us){var _Gk=_8r._0s(_t4);var _Hk=_8r._0s(_us);if(!_Gk||!_Hk)return;if(!_Gk._xs){var _vs=_ws(_Gk._5s);var _fs=new _gs();_Gk._5s.tp=_ys(_vs);_Gk._5s.texture=_F4[_Hk._5s.tp];_Gk._5s.texture.complete=true;_Gk._5s.x=0;_Gk._5s.y=0;_Gk._xs=true;}_Ys(_Gk._5s,_Hk._5s);}function _Zs(_nl,_8s, _9s){var _fs=new _gs();_fs.pName="";_fs.transparent=_8s;_fs.smooth=_9s;_fs.preload=true;var __s=_8r._is(_fs);if(_nl.substring(0,5)=="file:")return -1;var _0t=_nl;var _S4=_H8(_0t);_F4[_S4].onload=_1t;_F4[_S4].onerror=_2t;_Ff._Gf(__s,_nl,_3t,_F4[_S4]);var _B4=new _hs();_fs._5s=_B4;_B4.x=0;_B4.y=0;_B4.w=0;_B4.h=0;_B4.XOffset=0;_B4.YOffset=0;_B4.CropWidth=_B4.w;_B4.CropHeight=_B4.h;_B4.ow=_B4.w;_B4.oh=_B4.h;_B4.tp=_S4;_B4.texture=_F4[_B4.tp];return __s;}function _9r(_t4,_nl,_8s,_9s){var _fs=_8r._0s(_t4);_fs.transparent=_8s; _fs.smooth=_9s;if(_nl.substring(0,5)=="file:")return -1;var _0t=_nl;var _4t=_fs._5s.texture._N8;var _S4=_H8(_0t);_F4[_S4]._N8=_4t;_F4[_S4].onload=_1t;_F4[_S4].onerror=_2t;_Ff._Gf(_t4,_nl,_3t,_F4[_S4]);var _B4=_fs._5s;_B4.x=0;_B4.y=0;_B4.w=0;_B4.h=0;_B4.XOffset=0;_B4.YOffset=0;_B4.CropWidth=_B4.w;_B4.CropHeight=_B4.h;_B4.ow=_B4.w;_B4.oh=_B4.h;_B4._5t=null;_B4._6t=0;_B4.tp=_S4;_B4.texture=_F4[_B4.tp];return _t4;}function _7t(_t4){var _Gk=_8r._0s(_t4);if(_Gk){return({_Hc:_Gk._5s.texture,_Ic:_Gk._5s});}return null; }function _8t(_t4){var _Gk=_8r._0s(_t4);if(_Gk){var _B4=_Gk._5s;var texture=_B4.texture;var _9t=1.0/texture.__c;var _at=1.0/texture._0d;var _bt=[];_bt.push(_B4.x*_9t,_B4.y*_at,(_B4.x+_B4.CropWidth)*_9t,(_B4.y+_B4.CropHeight)*_at);return _bt;}return null;}function _ct(_dt){var _2s=_8r._E5(_dt);if(_2s===null){return -1;}var _B4=_2s._5s;if(_B4.texture){if(_B4.texture._N8){_O8(_B4.texture._N8);return 0;}}return -1;}function _et(_ft){if(Array.isArray(_ft)){for(var __5=0;__5<_ft.length;__5++){var _2s=_8r._E5(_ft[__5]); if(_2s===null){return -1;}var _B4=_2s._5s;if(_B4.texture){if(_B4.texture._N8){_O8(_B4.texture._N8);return 0;}}}return 0;}else {return -1;}}function _gt(_dt){var _2s=_8r._E5(_dt);if(_2s===null){return -1;}var _B4=_2s._5s;if(_B4.texture){if(_B4.texture._N8){_ht(_B4.texture._N8);return 0;}}return -1;}function _it(_ft){if(Array.isArray(_ft)){for(var __5=0;__5<_ft.length;__5++){var _2s=_8r._E5(_ft[__5]);if(_2s===null){return -1;}var _B4=_2s._5s;if(_B4.texture){if(_B4.texture._N8){_ht(_B4.texture._N8);return 0;}}}return 0; }else {return -1;}}var _jt=[];var _kt=0;function _lt(target){if(typeof target.onselectstart!="undefined"){target.onselectstart=function(){return false;};}else if(typeof target.style.MozUserSelect!="undefined"){target.style.MozUserSelect="none";}else {target.onmousedown=function(){return false;};}target.style.cursor="default";}function _mt(_q5,_r5,_nt,_ot,_pt,_qt){var _Pg=document.getElementById("canvas").parentNode;var _rt=document.getElementById("canvas");var _st=document.createElement("div");_st.style.cssText="-moz-user-select: -moz-none;-khtml-user-select: none;-webkit-user-select: none;-ms-user-select: none;user-select: none;"; _st._tt=false;_st.setAttribute("id","gamemaker_image");_st.style.position="absolute";_st._H9=_nt;var left=_q5+_nt.tpe_XOffset;var top=_r5+_nt.tpe_YOffset;_st.style.left=left+"px";_st.style.top=top+"px";_st.style.width=_nt.tpe_CropWidth+"px";_st.style.height=_nt.tpe_CropHeight+"px";_st.style.padding="0px";_st.style.margin="0px";_st.style.border="0px";_lt(_st);_st.angle=0;_st.x=_q5;_st.y=_r5;var _ut=document.createElement('button');_ut.onmousemove=_vt;_ut.type="button";_ut.style.cursor=_st.style.cursor=_rt.style.cursor; _ut.style.width=_nt.tpe_CropWidth+"px";_ut.style.height=_nt.tpe_CropHeight+"px";_ut.style.opacity="1.0";_ut.style.backgroundColor="rgba(0, 0, 0, 0.0)";_ut.style.border="0px";_ut.style.backgroundImage="url("+_nt.tpe_texture.src+")";_ut.style.backgroundPosition=(-_nt.tpe_x)+"px "+(-_nt.tpe_y)+"px";_ut.onclick=function(){if((_ot.substring(0,6)=="http:/")||(_ot.substring(0,6)=="https:")){var _wt=window.open(_ot,_pt,_qt);return false;}else {var pFunc=eval("gml_Script_"+_ot);if(pFunc)pFunc(null,null,_pt,_qt); return false;}};_st.insertBefore(_ut,null);_Pg.insertBefore(_st,null);return _st;}function clickable_add(_q5,_r5,_nt,_ot,_pt,_qt){_jt[_kt]=_mt(yyGetReal(_q5),yyGetReal(_r5),_nt,yyGetString(_ot),yyGetString(_pt),yyGetString(_qt));return _kt++;}function clickable_add_ext(_q5,_r5,_nt,_ot,_pt,_qt,_nm,_u9){_q5=yyGetReal(_q5);_r5=yyGetReal(_r5);_ot=yyGetString(_ot);_pt=yyGetString(_pt);_qt=yyGetString(_qt);_jt[_kt]=_mt(_q5,_r5,_nt,_ot,_pt,_qt);clickable_change_ext(_kt,_nt,_q5,_r5,yyGetReal(_u9),yyGetReal(_nm)); return _kt++;}function clickable_exists(_jg){var _xt=_jt[yyGetInt32(_jg)];if(_xt){return true;}else {return false;}}function clickable_delete(_jg){_jg=yyGetInt32(_jg);var _xt=_jt[_jg];if(_xt){_xt.parentNode.removeChild(_xt);_jt[_jg]=undefined;}}function clickable_change(_jg,_nt,_q5,_r5){var _xt=_jt[yyGetInt32(_jg)];if(_xt){if(_xt.firstChild){var _yt=_xt.firstChild;var left=yyGetReal(_q5)+_nt.tpe_XOffset;var top=yyGetReal(_r5)+_nt.tpe_YOffset;_xt.style.left=left+"px";_xt.style.top=top+"px";_xt.style.width=(_nt.tpe_CropWidth)+"px"; _xt.style.height=(_nt.tpe_CropHeight)+"px";_yt.style.left=_xt.style.left;_yt.style.right=_xt.style.top;_yt.style.width=_xt.style.width;_yt.style.height=_xt.style.height;_yt.style.backgroundPosition=(-_nt.tpe_x)+"px "+(-_nt.tpe_y)+"px";var _zt=true;var _At="url("+_nt.tpe_texture.src+")";if(typeof(_yt.style.backgroundImage)!=undefined){if(_yt.style.backgroundImage==_At){_zt=false;}}if(_zt==true){_yt.style.backgroundImage=_At;}}}}function clickable_change_ext(_jg,_nt,_q5,_r5,_nm,_u9){_jg=yyGetInt32(_jg); _q5=yyGetReal(_q5);_r5=yyGetReal(_r5);_nm=yyGetReal(_nm);_u9=yyGetReal(_u9);clickable_change(_jg,_nt,_q5,_r5);var _xt=_jt[_jg];if(_xt){var _yt=_xt.firstChild;if(_xt.x!=_q5){_xt.style.left=_q5+"px";_xt.x=_q5;}if(_xt.y!=_r5){_xt.style.top=_r5+"px";_xt.y=_r5;}if(_yt){_yt.style.width=_xt.style.width=(_nt.tpe_CropWidth*_nm)+"px";_yt.style.height=_xt.style.height=(_nt.tpe_CropHeight*_nm)+"px";var _Bt=(_nm*_nt.tpe_texture.width*100)/(_nt.tpe_CropWidth);_yt.style.backgroundSize=(_nm*_nt.tpe_texture.width)+"px "+(_nm*_nt.tpe_texture.height)+"px"; var _Ct=(-_nt.tpe_x*_nm);var _Dt=(-_nt.tpe_y*_nm);_yt.style.backgroundPosition=_Ct+"px "+_Dt+"px";if(_yt.style.opacity!=_u9)_yt.style.opacity=_u9;}}}function clickable_set_style(_Et,_Ft){var _xt=_jt[yyGetInt32(_Et)];var _b7=_c7._E5(yyGetInt32(_Ft));if(_xt&&_b7){var _yt=_xt.firstChild;if(_yt){for(const [key,_ue] of _b7){_yt.style[key]=_ue;}}}}function _Gt(_Ht,_q5,_r5,_Ak,_gj,_It){return _Jt(_Ht,yyGetInt32(_Ak),yyGetBool(_It),_Kt,_q5,_r5,_gj,function(_Lt){var _Mt=_Lt._Nt(_q5,_r5,_gj);if(!_Mt){return _Kt;}return _Ot(_Pt, _Lt.id);});};function _Qt(_Ht,_q5,_r5,_Ak,_gj,_It,_Q7){_Jt(_Ht,yyGetInt32(_Ak),yyGetBool(_It),_Kt,_q5,_r5,_gj,function(_Lt){if(_Lt._Nt(_q5,_r5,_gj)){_Q7.push(_Ot(_Pt,_Lt.id));}return _Kt;});};function collision_point(_Ht,_q5,_r5,_Ak,_gj,_It){_q5=yyGetReal(_q5);_r5=yyGetReal(_r5);_gj=yyGetBool(_gj);if(_Ak instanceof _Rt){var _St=_Ak.type;if(_St==_Tt){if(_Ut(_q5,_r5,_Ak,null,_gj)){return _Ak;}return -1;}else {var id=_Gt(_Ht,_q5,_r5,_Ak,_gj,_It);return id;}}else if(_Ak instanceof Array){for(var i=0;i<_Ak.length;i++){ var _Vt=_Ak[i];if((_Vt instanceof _Rt)&&(_Vt.type==_Tt)){if(_Ut(_q5,_r5,_Vt,null,_gj)){return _Vt;}}else {var id=_Gt(_Ht,_q5,_r5,_Vt,_gj,_It);if(id!=_Kt)return id;}}return -1;}else {var id=_Gt(_Ht,_q5,_r5,_Ak,_gj,_It);return id;}};function _Wt(_Xt,_Yt,_Zt,__t){var _0u=[];for(var i=0;i<_Xt.length;++i){var _1u=_Xt[i];if(_1u instanceof _Rt){var _St=_1u.type;if(_St==_Tt){var _2u=_3u._4u();var _5u=_3u._6u(_2u,_1u.value);var _db=_5u.x-_Zt;var _eb=_5u.y-__t;var _7u=(_db*_db)+(_eb*_eb);var _Pg={_8u:_1u,_9u:_7u};_0u.push(_Pg);_1u=null; }else _1u=yyInst(null,null,yyGetInt32(_1u));}if(_1u){var _db=_1u.x-_Zt;var _eb=_1u.y-__t;var _7u=(_db*_db)+(_eb*_eb);var _Pg={_8u:_Ot(_Pt,_1u.id),_9u:_7u};_0u.push(_Pg);}}_0u.sort(function(_h4,_g4){return _h4._9u-_g4._9u;});for(var i=0;i<_0u.length;++i){_Yt._Gf(_0u[i]._8u);}};function collision_point_list(_Ht,_q5,_r5,_Ak,_gj,_It,_Q7,_au){_q5=yyGetReal(_q5);_r5=yyGetReal(_r5);_gj=yyGetBool(_gj);var _Sg=_Ek._E5(yyGetInt32(_Q7));if(!_Sg){_H4("Error: invalid ds_list ID (instance_position_list)");return 0;}var _bu=false; var _cu=[];if(_Ak instanceof _Rt){var _St=_Ak.type;if(_St==_Tt){_Ut(_q5,_r5,_Ak,_cu,_gj);_bu=true;}}else if(_Ak instanceof Array){for(var i=0;i<_Ak.length;i++){var _Vt=_Ak[i];if((_Vt instanceof _Rt)&&(_Vt.type==_Tt)){_Ut(_q5,_r5,_Vt,_cu,_gj);}else {_Qt(_Ht,_q5,_r5,_Vt,_gj,_It,_cu);}}_bu=true;}if(!_bu)_Qt(_Ht,_q5,_r5,_Ak,_gj,_It,_cu);var _q8=_cu.length;_Wt(_cu,_Sg,_q5,_r5,_au);return _q8;};function _du(_Ht,_W6,_X6,_o6,_p6,_Ak,_gj,_It){return _Jt(_Ht,yyGetInt32(_Ak),yyGetBool(_It),_Kt,_W6,_X6,_o6,_p6,_gj,function(_Lt){ var _Mt=_Lt._eu(_W6,_X6,_o6,_p6,_gj);if(!_Mt){return _Kt;}return _Ot(_Pt,_Lt.id);});};function collision_rectangle(_Ht,_W6,_X6,_o6,_p6,_Ak,_gj,_It){_W6=yyGetReal(_W6);_X6=yyGetReal(_X6);_o6=yyGetReal(_o6);_p6=yyGetReal(_p6);_gj=yyGetBool(_gj);if(_Ak instanceof _Rt){var _St=_Ak.type;if(_St==_Tt){if(_fu(_W6,_X6,_o6,_p6,_Ak,null,_gj)){return _Ak;}return -1;}else {var id=_du(_Ht,_W6,_X6,_o6,_p6,_Ak,_gj,_It);return id;}}else if(_Ak instanceof Array){for(var i=0;i<_Ak.length;i++){var _Vt=_Ak[i];if((_Vt instanceof _Rt)&&(_Vt.type==_Tt)){ if(_fu(_W6,_X6,_o6,_p6,_Vt,null,_gj)){return _Vt;}}else {var id=_du(_Ht,_W6,_X6,_o6,_p6,_Vt,_gj,_It);if(id!=_Kt)return id;}}return -1;}else {var id=_du(_Ht,_W6,_X6,_o6,_p6,_Ak,_gj,_It);return id;}};function _gu(_Ht,_W6,_X6,_o6,_p6,_Ak,_gj,_It,_Q7){_W6=yyGetReal(_W6);_X6=yyGetReal(_X6);_o6=yyGetReal(_o6);_p6=yyGetReal(_p6);_gj=yyGetBool(_gj);return _Jt(_Ht,yyGetInt32(_Ak),yyGetBool(_It),_Kt,_W6,_X6,_o6,_p6,_gj,function(_Lt){if(_Lt._eu(_W6,_X6,_o6,_p6,_gj)){_Q7.push(_Ot(_Pt,_Lt.id));}return _Kt;});};function collision_rectangle_list(_Ht, _W6,_X6,_o6,_p6,_Ak,_gj,_It,_Q7,_au){_W6=yyGetReal(_W6);_X6=yyGetReal(_X6);_o6=yyGetReal(_o6);_p6=yyGetReal(_p6);_gj=yyGetBool(_gj);var _Sg=_Ek._E5(yyGetInt32(_Q7));if(!_Sg){_H4("Error: invalid ds_list ID (instance_position_list)");return 0;}var _bu=false;var _cu=[];if(_Ak instanceof _Rt){var _St=_Ak.type;if(_St==_Tt){_fu(_W6,_X6,_o6,_p6,_Ak,_cu,_gj);_bu=true;}}else if(_Ak instanceof Array){for(var i=0;i<_Ak.length;i++){var _Vt=_Ak[i];if((_Vt instanceof _Rt)&&(_Vt.type==_Tt)){_fu(_W6,_X6,_o6,_p6,_Vt,_cu,_gj); }else {_gu(_Ht,_W6,_X6,_o6,_p6,_Vt,_gj,_It,_cu);}}_bu=true;}if(!_bu)_gu(_Ht,_W6,_X6,_o6,_p6,_Ak,_gj,_It,_cu);var _q8=_cu.length;var _hu=(_W6+_o6)*0.5;var _iu=(_X6+_p6)*0.5;_Wt(_cu,_Sg,_hu,_iu,_au);return _q8;};function collision_circle(_Ht,_ju,_ku,_lu,_Ak,_gj,_It){return collision_ellipse(_Ht,_ju-_lu,_ku-_lu,_ju+_lu,_ku+_lu,_Ak,_gj,_It);};function collision_circle_list(_Ht,_ju,_ku,_lu,_Ak,_gj,_It,_Q7,_au){var _Sg=_Ek._E5(yyGetInt32(_Q7));if(!_Sg){_H4("Error: invalid ds_list ID (collision_circle_list)");return 0; }return collision_ellipse_list(_Ht,_ju-_lu,_ku-_lu,_ju+_lu,_ku+_lu,_Ak,_gj,_It,_Q7,_au);};function _mu(_Ht,_W6,_X6,_o6,_p6,_Ak,_gj,_It){_W6=yyGetReal(_W6);_X6=yyGetReal(_X6);_o6=yyGetReal(_o6);_p6=yyGetReal(_p6);_gj=yyGetBool(_gj);return _Jt(_Ht,yyGetInt32(_Ak),yyGetBool(_It),_Kt,_W6,_X6,_o6,_p6,_gj,function(_Lt){var _Mt=_Lt._nu(_W6,_X6,_o6,_p6,_gj);if(!_Mt){return _Kt;}return _Ot(_Pt,_Lt.id);});};function _ou(_Ht,_W6,_X6,_o6,_p6,_Ak,_gj,_It,_Q7){_W6=yyGetReal(_W6);_X6=yyGetReal(_X6);_o6=yyGetReal(_o6); _p6=yyGetReal(_p6);_gj=yyGetBool(_gj);return _Jt(_Ht,yyGetInt32(_Ak),yyGetBool(_It),_Kt,_W6,_X6,_o6,_p6,_gj,function(_Lt){if(_Lt._nu(_W6,_X6,_o6,_p6,_gj)){_Q7.push(_Ot(_Pt,_Lt.id));}return _Kt;});};function collision_ellipse(_Ht,_W6,_X6,_o6,_p6,_Ak,_gj,_It){_W6=yyGetReal(_W6);_X6=yyGetReal(_X6);_o6=yyGetReal(_o6);_p6=yyGetReal(_p6);_gj=yyGetBool(_gj);if(_Ak instanceof _Rt){var _St=_Ak.type;if(_St==_Tt){if(_pu(_W6,_X6,_o6,_p6,_Ak,null,_gj)){return _Ak;}return -1;}else {var id=_mu(_Ht,_W6,_X6,_o6,_p6,_Ak,_gj, _It);return id;}}else if(_Ak instanceof Array){for(var i=0;i<_Ak.length;i++){var _Vt=_Ak[i];if((_Vt instanceof _Rt)&&(_Vt.type==_Tt)){if(_pu(_W6,_X6,_o6,_p6,_Vt,null,_gj)){return _Vt;}}else {var id=_mu(_Ht,_W6,_X6,_o6,_p6,_Vt,_gj,_It);if(id!=_Kt)return id;}}return -1;}else {var id=_mu(_Ht,_W6,_X6,_o6,_p6,_Ak,_gj,_It);return id;}};function collision_ellipse_list(_Ht,_W6,_X6,_o6,_p6,_Ak,_gj,_It,_Q7,_au){_W6=yyGetReal(_W6);_X6=yyGetReal(_X6);_o6=yyGetReal(_o6);_p6=yyGetReal(_p6);_gj=yyGetBool(_gj);var _Sg=_Ek._E5(yyGetInt32(_Q7)); if(!_Sg){_H4("Error: invalid ds_list ID (instance_position_list)");return 0;}var _bu=false;var _cu=[];if(_Ak instanceof _Rt){var _St=_Ak.type;if(_St==_Tt){_pu(_W6,_X6,_o6,_p6,_Ak,_cu,_gj);_bu=true;}}else if(_Ak instanceof Array){for(var i=0;i<_Ak.length;i++){var _Vt=_Ak[i];if((_Vt instanceof _Rt)&&(_Vt.type==_Tt)){_pu(_W6,_X6,_o6,_p6,_Vt,_cu,_gj);}else {_ou(_Ht,_W6,_X6,_o6,_p6,_Vt,_gj,_It,_cu);}}_bu=true;}if(!_bu)_ou(_Ht,_W6,_X6,_o6,_p6,_Ak,_gj,_It,_cu);var _q8=_cu.length;var _hu=(_W6+_o6)*0.5;var _iu=(_X6+_p6)*0.5; _Wt(_cu,_Sg,_hu,_iu,_au);return _q8;};function _qu(_Ht,_W6,_X6,_o6,_p6,_Ak,_gj,_It){return _Jt(_Ht,yyGetInt32(_Ak),yyGetBool(_It),_Kt,_W6,_X6,_o6,_p6,_gj,function(_Lt){var _Mt=_Lt._ru(_W6,_X6,_o6,_p6,_gj);if(!_Mt){return _Kt;}return _Ot(_Pt,_Lt.id);});};function _su(_Ht,_W6,_X6,_o6,_p6,_Ak,_gj,_It,_Q7){_Jt(_Ht,yyGetInt32(_Ak),yyGetBool(_It),_Kt,_W6,_X6,_o6,_p6,_gj,function(_Lt){if(_Lt._ru(_W6,_X6,_o6,_p6,_gj)){_Q7.push(_Ot(_Pt,_Lt.id));}return _Kt;});};function collision_line(_Ht,_W6,_X6,_o6,_p6,_Ak,_gj, _It){_W6=yyGetReal(_W6);_X6=yyGetReal(_X6);_o6=yyGetReal(_o6);_p6=yyGetReal(_p6);_gj=yyGetBool(_gj);if(_Ak instanceof _Rt){var _St=_Ak.type;if(_St==_Tt){if(_tu(_W6,_X6,_o6,_p6,_Ak,null,_gj)){return _Ak;}return -1;}else {var id=_qu(_Ht,_W6,_X6,_o6,_p6,_Ak,_gj,_It);return id;}}else if(_Ak instanceof Array){for(var i=0;i<_Ak.length;i++){var _Vt=_Ak[i];if((_Vt instanceof _Rt)&&(_Vt.type==_Tt)){if(_tu(_W6,_X6,_o6,_p6,_Vt,null,_gj)){return _Vt;}}else {var id=_qu(_Ht,_W6,_X6,_o6,_p6,_Vt,_gj,_It);if(id!=_Kt)return id;}}return -1; }else {var id=_qu(_Ht,_W6,_X6,_o6,_p6,_Ak,_gj,_It);return id;}};function collision_line_list(_Ht,_W6,_X6,_o6,_p6,_Ak,_gj,_It,_Q7,_au){_W6=yyGetReal(_W6);_X6=yyGetReal(_X6);_o6=yyGetReal(_o6);_p6=yyGetReal(_p6);_gj=yyGetBool(_gj);var _Sg=_Ek._E5(yyGetInt32(_Q7));if(!_Sg){_H4("Error: invalid ds_list ID (collision_line_list)");return 0;}var _bu=false;var _cu=[];if(_Ak instanceof _Rt){var _St=_Ak.type;if(_St==_Tt){_tu(_W6,_X6,_o6,_p6,_Ak,_cu,_gj);_bu=true;}}else if(_Ak instanceof Array){for(var i=0;i<_Ak.length;i++){ var _Vt=_Ak[i];if((_Vt instanceof _Rt)&&(_Vt.type==_Tt)){_tu(_W6,_X6,_o6,_p6,_Vt,_cu,_gj);}else {_su(_Ht,_W6,_X6,_o6,_p6,_Vt,_gj,_It,_cu);}}_bu=true;}if(!_bu)_su(_Ht,_W6,_X6,_o6,_p6,_Ak,_gj,_It,_cu);var _q8=_cu.length;_Wt(_cu,_Sg,_W6,_X6,_au);return _q8;};function point_in_rectangle(_Zt,__t,_W6,_X6,_o6,_p6){_Zt=yyGetReal(_Zt);__t=yyGetReal(__t);if((_Zt>=yyGetReal(_W6)&&_Zt<=yyGetReal(_o6))&&(__t>=yyGetReal(_X6)&&__t<=yyGetReal(_p6))){return true;}return false;};function rectangle_in_rectangle(_uu,_vu,_wu, _xu,_W6,_X6,_o6,_p6){_uu=yyGetReal(_uu);_vu=yyGetReal(_vu);_wu=yyGetReal(_wu);_xu=yyGetReal(_xu);_W6=yyGetReal(_W6);_X6=yyGetReal(_X6);_o6=yyGetReal(_o6);_p6=yyGetReal(_p6);var _yu=0;var _zu=0;if(_uu>_wu){_zu=_uu;_uu=_wu;_wu=_zu;}if(_vu>_xu){_zu=_vu;_vu=_xu;_xu=_zu;}if(_W6>_o6){_zu=_W6;_W6=_o6;_o6=_zu;}if(_X6>_p6){_zu=_X6;_X6=_p6;_p6=_zu;}if((_uu>=_W6&&_uu<=_o6)&&(_vu>=_X6&&_vu<=_p6))_yu|=1;if((_wu>=_W6&&_wu<=_o6)&&(_vu>=_X6&&_vu<=_p6))_yu|=2;if((_wu>=_W6&&_wu<=_o6)&&(_xu>=_X6&&_xu<=_p6))_yu|=4;if((_uu>=_W6&&_uu<=_o6)&&(_xu>=_X6&&_xu<=_p6))_yu|=8; var result=0;if(_yu==15){result=1.0;}else if(_yu==0){result=0.0;_yu=0;if((_W6>=_uu&&_W6<=_wu)&&(_X6>=_vu&&_X6<=_xu))_yu|=1;if((_o6>=_uu&&_o6<=_wu)&&(_X6>=_vu&&_X6<=_xu))_yu|=2;if((_o6>=_uu&&_o6<=_wu)&&(_p6>=_vu&&_p6<=_xu))_yu|=4;if((_W6>=_uu&&_W6<=_wu)&&(_p6>=_vu&&_p6<=_xu))_yu|=8;if(0!=_yu)result=2.0;else {_yu=0;if((_W6>=_uu&&_W6<=_wu)&&(_vu>=_X6&&_vu<=_p6))_yu|=1;if((_o6>=_uu&&_o6<=_wu)&&(_vu>=_X6&&_vu<=_p6))_yu|=2;if((_o6>=_uu&&_o6<=_wu)&&(_xu>=_X6&&_xu<=_p6))_yu|=4;if((_W6>=_uu&&_W6<=_wu)&&(_xu>=_X6&&_xu<=_p6))_yu|=8; if(0!=_yu)result=2.0;else {_yu=0;if((_uu>=_W6&&_uu<=_o6)&&(_X6>=_vu&&_X6<=_xu))_yu|=1;if((_wu>=_W6&&_wu<=_o6)&&(_X6>=_vu&&_X6<=_xu))_yu|=2;if((_wu>=_W6&&_wu<=_o6)&&(_p6>=_vu&&_p6<=_xu))_yu|=4;if((_uu>=_W6&&_uu<=_o6)&&(_p6>=_vu&&_p6<=_xu))_yu|=8;if(0!=_yu)result=2.0;}}}else {result=2.0;}return result;};function _Au(_Bu,_Cu,_w6,_x6,_y6,_z6,_fb,_gb){var _qb=_fb-_w6;var _sb=_y6-_w6;var _ub=_Bu-_w6;var _rb=_gb-_x6;var _tb=_z6-_x6;var _vb=_Cu-_x6;var _Du=(_qb*_qb)+(_rb*_rb);var _Eu=(_qb*_sb)+(_rb*_tb);var _Fu=(_qb*_ub)+(_rb*_vb); var _Gu=(_sb*_sb)+(_tb*_tb);var _Hu=(_sb*_ub)+(_tb*_vb);var _Iu=1.0/(_Du*_Gu-_Eu*_Eu);var _X4=(_Gu*_Fu-_Eu*_Hu)*_Iu;var _Y4=(_Du*_Hu-_Eu*_Fu)*_Iu;return((_X4>=0.0)&&(_Y4>=0.0)&&(_X4+_Y4<1.0));};function point_in_triangle(_Zt,__t,_W6,_X6,_o6,_p6,_Ju,_Ku){return _Au(yyGetReal(_Zt),yyGetReal(__t),yyGetReal(_W6),yyGetReal(_X6),yyGetReal(_o6),yyGetReal(_p6),yyGetReal(_Ju),yyGetReal(_Ku));};function _Lu(_Zt,__t,_Mu,_Nu,_Ou){var _Bm=(((_Zt-_Mu)*(_Zt-_Mu))+((__t-_Nu)*(__t-_Nu)));if(_Bm<=_Ou)return true;return false; };function point_in_circle(_Zt,__t,_Mu,_Nu,_Pu){return _Lu(yyGetReal(_Zt),yyGetReal(__t),yyGetReal(_Mu),yyGetReal(_Nu),yyGetReal(_Pu)*yyGetReal(_Pu));};function rectangle_in_circle(_Qu,_Ru,_Su,_Tu,_Mu,_Nu,_Pu){var _w6,_x6,_y6,_z6,_hu,_iu,_Uu,_Vu,_Wu;_w6=yyGetReal(_Qu);_x6=yyGetReal(_Ru);_y6=yyGetReal(_Su);_z6=yyGetReal(_Tu);_hu=yyGetReal(_Mu);_iu=yyGetReal(_Nu);_Uu=yyGetReal(_Pu);var _Xu=_Uu*_Uu;_Vu=_hu;_Wu=_iu;if(_Vu<_w6)_Vu=_w6;if(_Vu>_y6)_Vu=_y6;if(_Wu<_x6)_Wu=_x6;if(_Wu>_z6)_Wu=_z6;var _9u=(_Vu-_hu)*(_Vu-_hu)+(_Wu-_iu)*(_Wu-_iu); var _un=0.0;if(_9u<=_Xu){_un=2.0;if((_Lu(_w6,_x6,_hu,_iu,_Xu))&&(_Lu(_y6,_x6,_hu,_iu,_Xu))&&(_Lu(_y6,_z6,_hu,_iu,_Xu))&&(_Lu(_w6,_z6,_hu,_iu,_Xu))){_un=1.0;}}return _un;};function _Yu(_Qu,_Ru,_Su,_Tu,_Mu,_Nu,_Pu){var _w6,_x6,_y6,_z6,_hu,_iu,_Uu,_Vu,_Wu;_w6=yyGetReal(_Qu);_x6=yyGetReal(_Ru);_y6=yyGetReal(_Su);_z6=yyGetReal(_Tu);_hu=yyGetReal(_Mu);_iu=yyGetReal(_Nu);_Uu=yyGetReal(_Pu);var _Xu=_Uu*_Uu;_Vu=_hu;_Wu=_iu;if(_Vu<_w6)_Vu=_w6;if(_Vu>_y6)_Vu=_y6;if(_Wu<_x6)_Wu=_x6;if(_Wu>_z6)_Wu=_z6;var _9u=(_Vu-_hu)*(_Vu-_hu)+(_Wu-_iu)*(_Wu-_iu); var _un=0.0;if(_9u<=_Xu){_un=2.0;if((Math.abs(_hu-_w6)>_Uu)&&(Math.abs(_hu-_y6)>_Uu)&&(Math.abs(_iu-_x6)>_Uu)&&(Math.abs(_iu-_z6)>_Uu)){_un=1.0;}}return _un;};function _Zu(__u,_0v){var _db=_0v.x-__u.x;var _eb=_0v.y-__u.y;var _1v={"x":-_eb,"y":_db};return _1v;};function _2v(__9,_3v,_1v){var min,max;var _Bm=__9[0].x*_1v.x+__9[0].y*_1v.y;min=max=_Bm;for(var i=1;i<_3v;++i){_Bm=__9[i].x*_1v.x+__9[i].y*_1v.y;if(_Bmmax)max=_Bm;}var _4v={"min":min,"max":max};return _4v;};function rectangle_in_triangle(_Qu, _Ru,_Su,_Tu,_W6,_X6,_o6,_p6,_Ju,_Ku){_Qu=yyGetReal(_Qu);_Ru=yyGetReal(_Ru);_Su=yyGetReal(_Su);_Tu=yyGetReal(_Tu);_W6=yyGetReal(_W6);_X6=yyGetReal(_X6);_o6=yyGetReal(_o6);_p6=yyGetReal(_p6);_Ju=yyGetReal(_Ju);_Ku=yyGetReal(_Ku);var _yu=0;if(_Au(_Qu,_Ru,_W6,_X6,_o6,_p6,_Ju,_Ku))_yu|=1;if(_Au(_Su,_Ru,_W6,_X6,_o6,_p6,_Ju,_Ku))_yu|=2;if(_Au(_Su,_Tu,_W6,_X6,_o6,_p6,_Ju,_Ku))_yu|=4;if(_Au(_Qu,_Tu,_W6,_X6,_o6,_p6,_Ju,_Ku))_yu|=8;if(_yu==15){return 1.0;}else if(_yu!=0){return 2.0;}var _6p=[];_6p[0]={"x":_W6,"y":_X6} ;_6p[1]={"x":_o6,"y":_p6};_6p[2]={"x":_Ju,"y":_Ku};var axes=[];axes[0]={"x":0,"y":1};axes[1]={"x":1,"y":0};axes[2]=_Zu(_6p[0],_6p[1]);axes[3]=_Zu(_6p[1],_6p[2]);axes[4]=_Zu(_6p[2],_6p[0]);var _5v=[];_5v[0]={"x":_Qu,"y":_Ru};_5v[1]={"x":_Su,"y":_Ru};_5v[2]={"x":_Qu,"y":_Tu};_5v[3]={"x":_Su,"y":_Tu};for(var i=0;i<5;++i){var _1v=axes[i];var _6v=_2v(_6p,3,_1v);var _7v=_2v(_5v,4,_1v);if(_7v.max<=_6v.min||_6v.max<=_7v.min){return 0.0;}}return 2.0;};function _8v(){_Ib("d3d_start()");}function _9v(){_Ib("d3d_end()"); }function _av(enable){_Ib("d3d_set_hidden()");}function _bv(_cv){_Ib("d3d_set_culling()");}function _dv(smooth){_Ib("d3d_set_shading()");}function _ev(_fv){_Ib("d3d_set_zwriteenable()");}function _gv(depth){_Ib("d3d_set_depth()");}function _hv(_iv,_jv,_kv,alpha){_Ib("draw_set_color_write_enable()");}var _lv=_hv;function _mv(enable){_Ib("d3d_set_shading()");}function _nv(_k9,_db,_eb,_ov,_m4){_Ib("d3d_light_define_direction()");}function _pv(_k9,x,y,z,_qv,_m4){_Ib("d3d_light_define_point()");}function _rv(_k9, enable){_Ib("d3d_light_enable()");}function _sv(colour){_Ib("d3d_light_define_ambient()");}function _tv(enable,color,start,end){_Ib("d3d_set_fog()");}function _uv(index){_Ib("d3d_light_get()");}function _vv(index){_Ib("d3d_light_get_ambient()");}function _wv(){_Ib("d3d_get_lighting()");}function _xv(_w6,_x6,_yv,_y6,_z6,_zv,_Jb,_Av,_Bv){_Ib("d3d_draw_floor()");}function _Cv(_w6,_x6,_yv,_y6,_z6,_zv,_Jb,_Av,_Bv,_Dv){_Ib("d3d_draw_ellipsoid()");}function _Ev(_w6,_x6,_yv,_y6,_z6,_zv,_Jb,_Av,_Bv){_Ib("d3d_draw_block()"); }function _Fv(_w6,_x6,_yv,_y6,_z6,_zv,_Jb,_Av,_Bv,closed,_Dv){_Ib("d3d_draw_cylinder()");}function _Gv(_w6,_x6,_yv,_y6,_z6,_zv,_Jb,_Av,_Bv,closed,_Dv){_Ib("d3d_draw_cone()");}function _Hv(_w6,_x6,_yv,_y6,_z6,_zv,_Jb,_Av,_Bv){_Ib("d3d_draw_wall()");}function _Iv(){_Ib("d3d_model_create()");}function _Jv(_k9){_Ib("d3d_model_destroy()");}function _Kv(_k9){_Ib("d3d_model_clear()");}function _Lv(_k9,_Mv){_Ib("d3d_model_save()");}function _Nv(_k9,_Mv){_Ib("d3d_model_load()");}function _Ov(_k9,_Mv){_Ib("d3d_model_save_buffer()"); }function _Pv(_k9,_Mv){_Ib("d3d_model_load_buffer()");}function _Qv(_k9,x,y,z,_Jb){_Ib("d3d_model_draw()");}function _Rv(_k9,kind){_Ib("d3d_model_primitive_begin()");}function _Sv(_k9,x,y,z){_Ib("d3d_model_vertex()");}function _Tv(_k9,x,y,z,_m4,alpha){_Ib("d3d_model_vertex_colour()");}function _Uv(_k9,x,y,z,_m4,alpha){_Ib("d3d_model_vertex_color()");}function _Vv(_k9,x,y,z,_Kb,_Lb){_Ib("d3d_model_vertex_texture()");}function _Wv(_k9,x,y,z,_Kb,_Lb,_m4,alpha){_Ib("d3d_model_vertex_texture_colour()");}function _Xv(_k9, x,y,z,_Kb,_Lb,_m4,alpha){_Ib("d3d_model_vertex_texture_color()");}function _Yv(_k9,x,y,z,_Vb,_Wb,_Xb){_Ib("d3d_model_vertex_normal()");}function _Zv(_k9,x,y,z,_Vb,_Wb,_Xb,_m4,alpha){_Ib("d3d_model_vertex_normal_color()");}function __v(_k9,x,y,z,_Vb,_Wb,_Xb,_Kb,_Lb){_Ib("d3d_model_vertex_normal_texture()");}function _0w(_k9,x,y,z,_Vb,_Wb,_Xb,_Kb,_Lb,_m4,alpha){_Ib("d3d_model_vertex_normal_texture_color()");}function _1w(_k9,x,y,z,_Vb,_Wb,_Xb,_Kb,_Lb,_m4,alpha){_Ib("d3d_model_vertex_normal_texture_colour()"); }function _2w(_k9){_Ib("d3d_model_primitive_end()");}function _3w(_k9,_w6,_x6,_yv,_y6,_z6,_zv,_Av,_Bv){_Ib("d3d_model_block()");}function _4w(_k9,_w6,_x6,_yv,_y6,_z6,_zv,_Av,_Bv,closed,_Dv){_Ib("d3d_model_cylinder()");}function _5w(_k9,_w6,_x6,_yv,_y6,_z6,_zv,_Av,_Bv,closed,_Dv){_Ib("d3d_model_cone()");}function _6w(_k9,_w6,_x6,_yv,_y6,_z6,_zv,_Av,_Bv,_Dv){_Ib("d3d_model_ellipsoid()");}function _7w(_k9,_w6,_x6,_yv,_y6,_z6,_zv,_Av,_Bv){_Ib("d3d_model_wall()");}function _8w(_k9,_w6,_x6,_yv,_y6,_z6,_zv,_Av, _Bv){_Ib("d3d_model_floor()");}function _9w(enable){_Ib("d3d_set_perspective()");}function _aw(_bw,_cw,_dw,_ew,_fw,_gw,_hw,_iw,_jw){_Ib("d3d_set_projection()");}function _kw(_bw,_cw,_dw,_ew,_fw,_gw,_hw,_iw,_jw,angle,_lw,_mw,_nw){_Ib("d3d_set_projection_ext()");}function _ow(x,y,w,h,angle){_Ib("d3d_set_projection_ortho()");}function _pw(x,y,w,h,angle){_Ib("d3d_set_projection_perspective()");}function _qw(){_Ib("d3d_transform_set_identity()");}function _rw(_sw,_tw,_uw){_Ib("d3d_transform_set_translation()"); }function _vw(_X8,_Y8,_ww){_Ib("d3d_transform_set_scaling()");}function _xw(angle){_Ib("d3d_transform_set_rotation_x()");}function _yw(angle){_Ib("d3d_transform_set_rotation_y()");}function _zw(angle){_Ib("d3d_transform_set_rotation_z()");}function _Aw(_Bw,_Cw,_Dw,angle){_Ib("d3d_transform_set_rotation_axis()");}function _Ew(_sw,_tw,_uw){_Ib("d3d_transform_add_translation()");}function _Fw(_X8,_Y8,_ww){_Ib("d3d_transform_add_scaling()");}function _Gw(angle){_Ib("d3d_transform_add_rotation_x()");}function _Hw(angle){ _Ib("d3d_transform_add_rotation_y()");}function _Iw(angle){_Ib("d3d_transform_add_rotation_axis()");}function _Jw(_Bw,_Cw,_Dw,angle){_Ib("d3d_transform_add_rotation_z()");}function _Kw(_q5,_r5,_1d){_Ib("d3d_transform_vertex()");}function matrix_get(_od){_Ib("matrix_get()");}function matrix_set(_od,_Lw){_Ib("matrix_set()");}var matrix_build=_Mw;var matrix_multiply=_Nw;var matrix_transform_vertex=_Ow;var matrix_stack_push=_Pw;var matrix_stack_pop=_Qw;var matrix_stack_set=_Rw;var matrix_stack_clear=_Sw;var matrix_stack_top=_Tw; var matrix_stack_is_empty=_Uw;var matrix_build_identity=_Vw;var matrix_build_lookat=_Ww;var matrix_build_projection_ortho=_Xw;var matrix_build_projection_perspective=_Yw;var matrix_build_projection_perspective_fov=_Zw;function __w(){_Ib("d3d_transform_stack_clear()");}function _0x(){_Ib("d3d_transform_stack_empty()");}function _1x(){_Ib("d3d_transform_stack_push()");}function _2x(){_Ib("d3d_transform_stack_pop()");}function _3x(){_Ib("d3d_transform_stack_top()");}function _4x(){_Ib("d3d_transform_stack_discard()"); }function gpu_set_blendenable(enable){_Ib("gpu_set_blendenable()");}function gpu_set_ztestenable(enable){_Ib("gpu_set_ztestenable()");}function gpu_set_zfunc(_5x){_Ib("gpu_set_zfunc()");}function gpu_set_zwriteenable(enable){_Ib("gpu_set_zwriteenable()");}function gpu_set_fog(enable,_m4,start,end){_Ib("gpu_set_fog()");}function gpu_set_cullmode(_6x){_Ib("gpu_set_cullmode()");}function gpu_set_blendmode(mode){_Ib("gpu_set_blendmode()");}function gpu_set_blendmode_ext(src,_ba){_Ib("gpu_set_blendmode_ext()"); }function gpu_set_blendmode_ext_sepalpha(src,_ba,_7x,_8x){_Ib("gpu_set_blendmode_ext_sepalpha()");}function gpu_set_colorwriteenable(_iv,_jv,_kv,alpha){_Ib("gpu_set_colorwriteenable()");}function gpu_set_colourwriteenable(_iv,_jv,_kv,alpha){_Ib("gpu_set_colourwriteenable()");}function gpu_set_alphatestenable(enable){_Ib("gpu_set_alphatestenable()");}function gpu_set_alphatestref(value){_Ib("gpu_set_alphatestref()");}function gpu_set_texfilter(_9x){_Ib("gpu_set_texfilter()");}function gpu_set_texfilter_ext(_ax, _9x){_Ib("gpu_set_texfilter_ext()");}function gpu_set_texrepeat(repeat){_Ib("gpu_set_texrepeat()");}function gpu_set_texrepeat_ext(_ax,repeat){_Ib("gpu_set_texrepeat_ext()");}function gpu_set_tex_filter(_9x){_Ib("gpu_set_tex_filter()");}function gpu_set_tex_filter_ext(_ax,_9x){_Ib("gpu_set_tex_filter_ext()");}function gpu_set_tex_repeat(repeat){_Ib("gpu_set_tex_repeat()");}function gpu_set_tex_repeat_ext(_ax,repeat){_Ib("gpu_set_tex_repeat_ext()");}function gpu_set_tex_mip_filter(filter){_Ib("gpu_set_tex_mip_filter(filter)"); }function gpu_set_tex_mip_filter_ext(_ax,filter){_Ib("gpu_set_tex_mip_filter_ext(sampler_id, filter)");}function gpu_set_tex_mip_bias(_bx){_Ib("gpu_set_tex_mip_bias(bias)");}function gpu_set_tex_mip_bias_ext(_ax,_bx){_Ib("gpu_set_tex_mip_bias_ext(sampler_id, bias)");}function gpu_set_tex_min_mip(_cx){_Ib("gpu_set_tex_min_mip(minmip)");}function gpu_set_tex_min_mip_ext(_ax,_cx){_Ib("gpu_set_tex_min_mip_ext(sampler_id, minmip)");}function gpu_set_tex_max_mip(_dx){_Ib("gpu_set_tex_max_mip(maxmip)");}function gpu_set_tex_max_mip_ext(_ax, _dx){_Ib("gpu_set_tex_max_mip_ext(sampler_id, maxmip)");}function gpu_set_tex_max_aniso(_ex){_Ib("gpu_set_tex_max_aniso(maxaniso)");}function gpu_set_tex_max_aniso_ext(_ax,_ex){_Ib("gpu_set_tex_max_aniso_ext(sampler_id, maxaniso)");}function gpu_set_tex_mip_enable(_fx){_Ib("gpu_set_tex_mip_enable(setting)");}function gpu_set_tex_mip_enable_ext(_ax,_fx){_Ib("gpu_set_tex_mip_enable_ext(sampler_id, setting)");}function gpu_get_blendenable(){_Ib("gpu_get_blendenable()");}function gpu_get_ztestenable(){_Ib("gpu_get_ztestenable()"); }function gpu_get_zfunc(){_Ib("gpu_get_zfunc()");}function gpu_get_zwriteenable(){_Ib("gpu_get_zwriteenable()");}function gpu_get_fog(){_Ib("gpu_get_fog()");}function gpu_get_cullmode(){_Ib("gpu_get_cullmode()");}function gpu_get_blendmode(){_Ib("gpu_get_blendmode()");}function gpu_get_blendmode_ext(){_Ib("gpu_get_blendmode_ext()");}function gpu_get_blendmode_ext_sepalpha(){_Ib("gpu_get_blendmode_ext_sepalpha()");}function gpu_get_blendmode_src(){_Ib("gpu_get_blendmode_src()");}function gpu_get_blendmode_dest(){ _Ib("gpu_get_blendmode_dest()");}function gpu_get_blendmode_srcalpha(){_Ib("gpu_get_blendmode_srcalpha()");}function gpu_get_blendmode_destalpha(){_Ib("gpu_get_blendmode_destalpha()");}function gpu_get_colorwriteenable(){_Ib("gpu_get_colorwriteenable()");}function gpu_get_colourwriteenable(){_Ib("gpu_get_colourwriteenable()");}function gpu_get_alphatestenable(){_Ib("gpu_get_alphatestenable()");}function gpu_get_alphatestref(){_Ib("gpu_get_alphatestref()");}function gpu_get_texfilter(){_Ib("gpu_get_texfilter()"); }function gpu_get_texfilter_ext(_ax){_Ib("gpu_get_texfilter_ext()");}function gpu_get_texrepeat(){_Ib("gpu_get_texrepeat()");}function gpu_get_texrepeat_ext(_ax){_Ib("gpu_get_texrepeat_ext()");}function gpu_get_tex_filter(){_Ib("gpu_get_tex_filter()");}function gpu_get_tex_filter_ext(_ax){_Ib("gpu_get_tex_filter_ext()");}function gpu_get_tex_repeat(){_Ib("gpu_get_tex_repeat()");}function gpu_get_tex_repeat_ext(_ax){_Ib("gpu_get_tex_repeat_ext()");}function gpu_get_tex_mip_filter(){_Ib("gpu_get_tex_mip_filter()"); }function gpu_get_tex_mip_filter_ext(_ax){_Ib("gpu_get_tex_mip_filter_ext(sampler_id)");}function gpu_get_tex_mip_bias(){_Ib("gpu_get_tex_mip_bias()");}function gpu_get_tex_mip_bias_ext(_ax){_Ib("gpu_get_tex_mip_bias_ext(sampler_id)");}function gpu_get_tex_min_mip(){_Ib("gpu_get_tex_min_mip()");}function gpu_get_tex_min_mip_ext(_ax){_Ib("gpu_get_tex_min_mip_ext(sampler_id)");}function gpu_get_tex_max_mip(){_Ib("gpu_get_tex_max_mip()");}function gpu_get_tex_max_mip_ext(_ax){_Ib("gpu_get_tex_max_mip_ext(sampler_id)"); }function gpu_get_tex_max_aniso(){_Ib("gpu_get_tex_max_aniso()");}function gpu_get_tex_max_aniso_ext(_ax){_Ib("gpu_get_tex_max_aniso_ext(sampler_id)");}function gpu_get_tex_mip_enable(){_Ib("gpu_get_tex_mip_enable()");}function gpu_get_tex_mip_enable_ext(_ax){_Ib("gpu_get_tex_mip_enable_ext(sampler_id)");}function gpu_push_state(){_Ib("gpu_push_state()");}function gpu_pop_state(){_Ib("gpu_pop_state()");}function gpu_get_state(){_Ib("gpu_get_state()");}function gpu_set_state(map){_Ib("gpu_set_state()");} var _gx=[];var _hx=50;var _ix=0;var _jx=new Array(_hx+1);function _kx(){if(!_e8){return;}_8v=_lx;_9v=_mx;_bv=_nx;_dv=_ox;_ev=_px;_gv=_qx;_av=_rx;_hv=_sx;_lv=_sx;_9w=_tx;_aw=_ux;_kw=_vx;_ow=_wx;_pw=_xx;_qw=_yx;_rw=_zx;_vw=_Ax;_xw=_Bx;_yw=_Cx;_zw=_Dx;_Aw=_Ex;_Ew=_Fx;_Fw=_Gx;_Gw=_Hx;_Hw=_Ix;_Iw=_Jx;_Jw=_Kx;_Kw=_Lx;__w=_Mx;_0x=_Nx;_1x=_Ox;_2x=_Px;_3x=_Qx;_4x=_Rx;_xv=_Sx;_Cv=_Tx;_Ev=_Ux;_Fv=_Vx;_Gv=_Wx;_Hv=_Xx;_mv=_Yx;_nv=_Zx;_pv=__x;_rv=_0y;_sv=_1y;_tv=_2y;_uv=_3y;_vv=_4y;_wv=_5y;_Iv=_6y;_Jv=_7y;_Kv=_8y;_Lv=_9y; _Nv=_ay;_Ov=_by;_Pv=_cy;_Qv=_dy;_Rv=_ey;_Sv=_fy;_Uv=_gy;_Tv=_gy;_Vv=_hy;_Xv=_iy;_Wv=_iy;_Yv=_jy;_Zv=_ky;__v=_ly;_0w=_my;_2w=_ny;_3w=_oy;_4w=_py;_5w=_qy;_6w=_ry;_7w=_sy;_8w=_ty;matrix_get=_uy;matrix_set=_vy;matrix_build=_Mw;matrix_multiply=_Nw;matrix_transform_vertex=_Ow;matrix_stack_push=_Pw;matrix_stack_pop=_Qw;matrix_stack_set=_Rw;matrix_stack_clear=_Sw;matrix_stack_top=_Tw;matrix_stack_is_empty=_Uw;gpu_set_blendmode=_wy;gpu_set_blendenable=_xy;gpu_set_ztestenable=_yy;gpu_set_zfunc=_zy;gpu_set_zwriteenable=_Ay; gpu_set_fog=_By;gpu_set_cullmode=_Cy;gpu_set_blendmode=_wy;gpu_set_blendmode_ext=_Dy;gpu_set_blendmode_ext_sepalpha=_Ey;gpu_set_colorwriteenable=_Fy;gpu_set_colourwriteenable=_Gy;gpu_set_alphatestenable=_Hy;gpu_set_alphatestref=_Iy;gpu_set_texfilter=_Jy;gpu_set_texfilter_ext=_Ky;gpu_set_texrepeat=_Ly;gpu_set_texrepeat_ext=_My;gpu_set_tex_filter=_Jy;gpu_set_tex_filter_ext=_Ky;gpu_set_tex_repeat=_Ly;gpu_set_tex_repeat_ext=_My;gpu_set_tex_mip_filter=_Ny;gpu_set_tex_mip_filter_ext=_Oy;gpu_set_tex_mip_bias=_Py; gpu_set_tex_mip_bias_ext=_Qy;gpu_set_tex_min_mip=_Ry;gpu_set_tex_min_mip_ext=_Sy;gpu_set_tex_max_mip=_Ty;gpu_set_tex_max_mip_ext=_Uy;gpu_set_tex_max_aniso=_Vy;gpu_set_tex_max_aniso_ext=_Wy;gpu_set_tex_mip_enable=_Xy;gpu_set_tex_mip_enable_ext=_Yy;gpu_get_blendenable=_Zy;gpu_get_ztestenable=__y;gpu_get_zfunc=_0z;gpu_get_zwriteenable=_1z;gpu_get_fog=_2z;gpu_get_cullmode=_3z;gpu_get_blendmode=_4z;gpu_get_blendmode_ext=_5z;gpu_get_blendmode_ext_sepalpha=_6z;gpu_get_blendmode_src=_7z;gpu_get_blendmode_dest=_8z; gpu_get_blendmode_srcalpha=_9z;gpu_get_blendmode_destalpha=_az;gpu_get_colorwriteenable=_bz;gpu_get_colourwriteenable=_cz;gpu_get_alphatestenable=_dz;gpu_get_alphatestref=_ez;gpu_get_texfilter=_fz;gpu_get_texfilter_ext=_gz;gpu_get_texrepeat=_hz;gpu_get_texrepeat_ext=_iz;gpu_get_tex_filter=_fz;gpu_get_tex_filter_ext=_gz;gpu_get_tex_repeat=_hz;gpu_get_tex_repeat_ext=_iz;gpu_get_tex_mip_filter=_jz;gpu_get_tex_mip_filter_ext=_kz;gpu_get_tex_mip_bias=_lz;gpu_get_tex_mip_bias_ext=_mz;gpu_get_tex_min_mip=_nz; gpu_get_tex_min_mip_ext=_oz;gpu_get_tex_max_mip=_pz;gpu_get_tex_max_mip_ext=_qz;gpu_get_tex_max_aniso=_rz;gpu_get_tex_max_aniso_ext=_sz;gpu_get_tex_mip_enable=_tz;gpu_get_tex_mip_enable_ext=_uz;gpu_push_state=_vz;gpu_pop_state=_wz;gpu_get_state=_xz;gpu_set_state=_yz;_jx[0]=new _zz();}function _lx(){_Az=true;_e8._Bz(_Cz);_e8._Dz(_Ez);_e8._Fz(_Gz);}function _mx(){_Az=false;_e8._Bz(false);_e8._Dz(false);_e8._Fz(false);}function _nx(_Hz){_Gz=_Hz>0.5;_e8._Fz(_Gz);}function _ox(_9s){}function _px(_Iz){_Ez=(_Iz>0.5); _e8._Dz(_Ez);}function _qx(_Jz){if(_Az||_v3){_Ta=Math.min(16000.0,Math.max(-16000.0,_Jz));}else {_Ta=0.0;}}function _rx(_Kz){_Cz=(_Kz>0.5);_e8._Bz(_Cz);}function _sx(_iv,_jv,_kv,alpha){_Lz._iv=(_iv>=0.5);_Lz._jv=(_jv>=0.5);_Lz._kv=(_kv>=0.5);_Lz.alpha=(alpha>=0.5);_e8._Mz(_Lz._iv,_Lz._jv,_Lz._kv,_Lz.alpha);}function _tx(_Nz){_Oz=_Nz;}function _Yx(_Nz){if(_Pz!=_Nz){_Pz=_Nz;_e8._Qz(_Rz());}}function _5y(){return _Pz;}function _ux(_bw,_cw,_dw,_ew,_fw,_gw,_hw,_iw,_jw){var _Sz=new _zz();var _Wk=new _Tz(_bw,_cw,_dw); var _Uz=new _Tz(_ew,_fw,_gw);var _Vz=new _Tz(_hw,_iw,_jw);_Sz._Wz(_Wk,_Uz,_Vz);_e8._Xz(_Sz);}function _vx(_bw,_cw,_dw,_ew,_fw,_gw,_hw,_iw,_jw,angle,_lw,_Yz,_Zz){var _Sz=new _zz();var _Wk=new _Tz(_bw,_cw,_dw);var _Uz=new _Tz(_ew,_fw,_gw);var _Vz=new _Tz(_hw,_iw,_jw);_Sz._Wz(_Wk,_Uz,_Vz);var _4v=new _zz();_4v.__z(angle,_lw,_Yz,_Zz);_4v._v6[_0A]*=_1A;_e8._Xz(_Sz);_e8._2A(_4v);}function _wx(x,y,w,h,angle){var _Sz=new _zz();var _hb=new _Tz(x+(w/2.0),y+(h/2.0),-w);var __4=new _Tz(x+(w/2.0),y+(h/2.0),0.0);var _ib=new _Tz(Math.sin(-angle*(Math.PI/180.0)), Math.cos(-angle*(Math.PI/180.0)),0.0);_Sz._Wz(_hb,__4,_ib);var _3A=new _zz();_3A._4A(w,-h*_1A,1.0,32000.0);_e8._Xz(_Sz);_e8._2A(_3A);}function _xx(x,y,w,h,angle){var _Sz=new _zz();var _hb=new _Tz(x+(w/2.0),y+(h/2.0),-w);var __4=new _Tz(x+(w/2.0),y+(h/2.0),0.0);var _ib=new _Tz(Math.sin(-angle*(Math.PI/180.0)),Math.cos(-angle*(Math.PI/180.0)),0.0);_Sz._Wz(_hb,__4,_ib);var _4v=new _zz();_4v._5A(1.0,(h/w),1.0,32000.0);_4v._v6[_0A]*=_1A;_e8._Xz(_Sz);_e8._2A(_4v);}function _Sx(_w6,_x6,_yv,_y6,_z6,_zv,_Jb,_Av,_Bv){var _6A=_7A(); _8A(true);_Nb(_dc,_Jb);{__b(_w6,_x6,_yv,0,0,1,0,0);__b(_w6,_z6,_yv,0,0,1,0,_Bv);__b(_y6,_z6,_zv,0,0,1,_Av,_Bv);__b(_y6,_x6,_zv,0,0,1,_Av,0);}_2c();_8A(_6A);}function _Tx(_w6,_x6,_yv,_y6,_z6,_zv,_Jb,_9A,_aA,_Dv){var _6A=_7A();_8A(true);if(_Dv<3){_Dv=3;}if(_Dv>128){_Dv=128;}var _67=[];var _57=[];for(var i=0;i<=_Dv;i++){_67[i]=Math.cos(i*2.0*Math.PI/_Dv);_57[i]=Math.sin(i*2.0*Math.PI/_Dv);}var _17=(_y6+_w6)/2,_27=(_z6+_x6)/2,_bA=(_zv+_yv)/2,_cA=(_y6-_w6)/2,_dA=(_z6-_x6)/2,_eA=(_zv-_yv)/2;var _fA=(_Dv+1)/2; for(var __5=0;__5<_fA;__5++){var _gA=Math.cos(__5*Math.PI/_fA),_hA=Math.sin(__5*Math.PI/_fA),_iA=Math.cos((__5+1)*Math.PI/_fA),_jA=Math.sin((__5+1)*Math.PI/_fA);_Nb(_cc,_Jb);for(var i=0;i<=_Dv;i++){__b(_17+_cA*_hA*_67[i],_27+_dA*_hA*_57[i],_bA+_eA*_gA,_hA*_67[i],_hA*_57[i],_gA,_9A*i/_Dv,__5*_aA/_fA);__b(_17+_cA*_jA*_67[i],_27+_dA*_jA*_57[i],_bA+_eA*_iA,_jA*_67[i],_jA*_57[i],_iA,_9A*i/_Dv,(__5+1)*_aA/_fA);}_2c();}_8A(_6A);}function _Ux(_w6,_x6,_yv,_y6,_z6,_zv,_Jb,_9A,_aA){var _6A=_7A();_8A(true);_Nb(_bc, _Jb);{__b(_w6,_x6,_yv,0,0,-1,0,0);__b(_w6,_z6,_yv,0,0,-1,0,_aA);__b(_y6,_z6,_yv,0,0,-1,_9A,_aA);__b(_y6,_z6,_yv,0,0,-1,_9A,_aA);__b(_y6,_x6,_yv,0,0,-1,_9A,0);__b(_w6,_x6,_yv,0,0,-1,0,0);}{__b(_w6,_x6,_zv,0,0,1,0,0);__b(_y6,_x6,_zv,0,0,1,_9A,0);__b(_y6,_z6,_zv,0,0,1,_9A,_aA);__b(_y6,_z6,_zv,0,0,1,_9A,_aA);__b(_w6,_z6,_zv,0,0,1,0,_aA);__b(_w6,_x6,_zv,0,0,1,0,0);}{__b(_w6,_z6,_yv,0,1,0,0,0);__b(_w6,_z6,_zv,0,1,0,0,_aA);__b(_y6,_z6,_zv,0,1,0,_9A,_aA);__b(_y6,_z6,_zv,0,1,0,_9A,_aA);__b(_y6,_z6,_yv,0, 1,0,_9A,0);__b(_w6,_z6,_yv,0,1,0,0,0);}{__b(_y6,_z6,_yv,1,0,0,0,0);__b(_y6,_z6,_zv,1,0,0,0,_aA);__b(_y6,_x6,_zv,1,0,0,_9A,_aA);__b(_y6,_x6,_zv,1,0,0,_9A,_aA);__b(_y6,_x6,_yv,1,0,0,_9A,0);__b(_y6,_z6,_yv,1,0,0,0,0);}{__b(_y6,_x6,_yv,0,-1,0,0,0);__b(_y6,_x6,_zv,0,-1,0,0,_aA);__b(_w6,_x6,_zv,0,-1,0,_9A,_aA);__b(_w6,_x6,_zv,0,-1,0,_9A,_aA);__b(_w6,_x6,_yv,0,-1,0,_9A,0);__b(_y6,_x6,_yv,0,-1,0,0,0);}{__b(_w6,_x6,_yv,-1,0,0,0,0);__b(_w6,_x6,_zv,-1,0,0,0,_aA);__b(_w6,_z6,_zv,-1,0,0,_9A,_aA);__b(_w6,_z6, _zv,-1,0,0,_9A,_aA);__b(_w6,_z6,_yv,-1,0,0,_9A,0);__b(_w6,_x6,_yv,-1,0,0,0,0);}_2c();_8A(_6A);}function _Vx(_w6,_x6,_yv,_y6,_z6,_zv,_Jb,_9A,_aA,closed,_Dv){var _67=[];var _57=[];var _6A=_7A();_8A(true);if(_Dv<3){_Dv=3;}if(_Dv>128){_Dv=128;}for(var i=0;i<=_Dv;i++){_67[i]=Math.cos(i*2.0*Math.PI/_Dv);_57[i]=Math.sin(i*2.0*Math.PI/_Dv);}var _17=(_y6+_w6)/2.0;var _27=(_z6+_x6)/2.0;var _cA=(_y6-_w6)/2.0;var _dA=(_z6-_x6)/2.0;if(true==closed){_Nb(_dc,_Jb);__b(_17,_27,_zv,0,0,1,0,_aA);for(var i=0;i<=_Dv;i++){__b(_17+_67[i]*_cA, _27+_57[i]*_dA,_zv,0,0,1,0,_aA);}_2c();}_Nb(_cc,_Jb);for(var i=0;i<=_Dv;i++){__b(_17+_67[i]*_cA,_27+_57[i]*_dA,_zv,_67[i],_57[i],0,_9A*i/_Dv,_aA);__b(_17+_67[i]*_cA,_27+_57[i]*_dA,_yv,_67[i],_57[i],0,_9A*i/_Dv,0);}_2c();if(true==closed){_Nb(_dc,_Jb);__b(_17,_27,_yv,0,0,-1,0,0);for(var i=_Dv;i>=0;i--){__b(_17+_67[i]*_cA,_27+_57[i]*_dA,_yv,0,0,-1,0,0);}_2c();}_8A(_6A);}function _Wx(_w6,_x6,_yv,_y6,_z6,_zv,_Jb,_9A,_aA,closed,_Dv){var _67=[];var _57=[];var _6A=_7A();_8A(true);if(_Dv<3){_Dv=3;}if(_Dv>128){ _Dv=128;}for(var i=0;i<=_Dv;i++){_67[i]=Math.cos(i*2.0*Math.PI/_Dv);_57[i]=Math.sin(i*2.0*Math.PI/_Dv);}var _17=(_y6+_w6)/2.0;var _27=(_z6+_x6)/2.0;var _cA=(_y6-_w6)/2.0;var _dA=(_z6-_x6)/2.0;_Nb(_cc,_Jb);for(var i=0;i<=_Dv;i++){__b(_17,_27,_zv,0,0,1,_9A*i/_Dv,_aA);__b(_17+_67[i]*_cA,_27+_57[i]*_dA,_yv,_67[i],_57[i],0,_9A*i/_Dv,0);}_2c();if(true==closed){_Nb(_dc,_Jb);__b(_17,_27,_yv,0,0,-1,0,0);for(var i=_Dv;i>=0;i--){__b(_17+_67[i]*_cA,_27+_57[i]*_dA,_yv,0,0,-1,0,0);}_2c();}_8A(_6A);}function _Xx(_w6,_x6, _yv,_y6,_z6,_zv,_Jb,_9A,_aA){var _6A=_7A();_8A(true);var _G6=Math.sqrt(_kA(_y6-_w6)+_kA(_z6-_x6));if(_G6==0.0){return;}var _Vb=(_z6-_x6)/_G6;var _Wb=-(_y6-_w6)/_G6;_Nb(_dc,_Jb);{__b(_w6,_x6,_yv,_Vb,_Wb,0,0,0);__b(_y6,_z6,_yv,_Vb,_Wb,0,_9A,0);__b(_y6,_z6,_zv,_Vb,_Wb,0,_9A,_aA);__b(_w6,_x6,_zv,_Vb,_Wb,0,0,_aA);}_2c();_8A(_6A);}function _Zx(_k9,_db,_eb,_ov,_m4){var _lA=new _Tz(_db,_eb,_ov);_lA._mA();var _nA=_k9*4;_oA[_nA+0]=_lA._pA;_oA[_nA+1]=_lA._qA;_oA[_nA+2]=_lA._rA;_oA[_nA+3]=0.0;_sA[_nA+0]=(_m4&0xff)/255.0; _sA[_nA+1]=((_m4>>8)&0xff)/255.0;_sA[_nA+2]=((_m4>>16)&0xff)/255.0;_sA[_nA+3]=1.0;_tA[_k9]=_uA;_vA[_nA+0]=0;_vA[_nA+1]=0;_vA[_nA+2]=0;_vA[_nA+3]=0;_e8._wA(_k9,_vA.subarray(_k9*4,(_k9+1)*4),_oA.subarray(_k9*4,(_k9+1)*4),_sA.subarray(_k9*4,(_k9+1)*4));}function _4y(){var _m4=(((_xA[0]*255.0))&0xff)|(((_xA[1]*255.0)<<8)&0xff00)|(((_xA[2]*255.0)<<16)&0xff0000)|(((_xA[3]*255.0)<<24)&0xff000000);return _m4;}function _3y(index){var _q4=[];if(index<0||index>7){console.log("draw_light_get() - light index out of range"); return;}var _nA=index*4;_q4[0]=_yA[index];_q4[1]=_tA[index];if(_tA[index]==_uA){_q4[2]=_oA[_nA+0];_q4[3]=_oA[_nA+1];_q4[4]=_oA[_nA+2];_q4[5]=_oA[_nA+3];}else {_q4[2]=_vA[_nA+0];_q4[3]=_vA[_nA+1];_q4[4]=_vA[_nA+2];_q4[5]=_vA[_nA+3];}var _e4=(((_sA[_nA+0]*255.0))&0xff);var _f4=(((_sA[_nA+1]*255.0)<<8)&0xff00);var _g4=(((_sA[_nA+2]*255.0)<<16)&0xff0000);var _h4=(((_sA[_nA+3]*255.0)<<24)&0xff000000);var _m4=_e4|_f4|_g4|_h4;_q4[6]=_m4;return _q4;}function __x(_k9,x,y,z,_qv,_m4){var _nA=_k9*4;_vA[_nA+0]=x;_vA[_nA+1]=y; _vA[_nA+2]=z;_vA[_nA+3]=_qv;_sA[_nA+0]=(_m4&0xff)/255.0;_sA[_nA+1]=((_m4>>8)&0xff)/255.0;_sA[_nA+2]=((_m4>>16)&0xff)/255.0;_sA[_nA+3]=1.0;_tA[_k9]=_zA;_oA[_nA+0]=0;_oA[_nA+1]=0;_oA[_nA+2]=0;_oA[_nA+3]=0;_e8._wA(_k9,_vA.subarray(_k9*4,(_k9+1)*4),_oA.subarray(_k9*4,(_k9+1)*4),_sA.subarray(_k9*4,(_k9+1)*4));}function _0y(_k9,enable){_yA[_k9]=enable;_e8._AA(_k9,enable,_sA.subarray(_k9*4,(_k9+1)*4));}function _1y(colour){_xA[0]=(colour&0xff)/255.0;_xA[1]=((colour>>8)&0xff)/255.0;_xA[2]=((colour>>16)&0xff)/255.0; _xA[3]=((colour>>24)&0xff)/255.0;_e8._BA(_xA);}function _2y(enable,colour,start,end){if(_CA==null){_CA=new Float32Array(8);}_CA[0]=enable;var _qv=end-start;_CA[1]=(_qv==0.0)?0.0:(1.0/_qv);_CA[2]=end;_CA[3]=0.0;_CA[4]=(colour&0xff)/255.0;_CA[5]=((colour>>8)&0xff)/255.0;_CA[6]=((colour>>16)&0xff)/255.0;_CA[7]=((colour>>24)&0xff)/255.0;_e8._DA(_CA);}function _6y(){return(_gx.push(new _EA())-1);}function _7y(_k9){if(_gx[_k9]){_gx[_k9]._Wf();_gx[_k9]=null;}}function _8y(_k9){if(_gx[_k9]){_gx[_k9]._Wf();}}function _9y(_k9, _Mv){if(_gx[_k9]){_gx[_k9]._FA(_Mv);}}function _by(_k9,_GA){}function _ay(_k9,_Mv){if(_gx[_k9]){_gx[_k9]._s8(_Mv);}}function _cy(_k9,_GA){}function _dy(_k9,x,y,z,_Jb){if(_gx[_k9]){_gx[_k9]._19(x,y,z,_Jb);}}function _ey(_k9,kind){if(_gx[_k9]){_gx[_k9]._Cd(kind);}}function _fy(_k9,x,y,z){if(_gx[_k9]){_gx[_k9].Vertex(x,y,z);}}function _gy(_k9,x,y,z,_m4,alpha){if(_gx[_k9]){_gx[_k9]._HA(x,y,z,_m4,alpha);}}function _hy(_k9,x,y,z,_Kb,_Lb){if(_gx[_k9]){_gx[_k9]._IA(x,y,z,_Kb,_Lb);}}function _iy(_k9,x,y,z,_Kb,_Lb, _m4,alpha){if(_gx[_k9]){_gx[_k9]._JA(x,y,z,_Kb,_Lb,_m4,alpha);}}function _jy(_k9,x,y,z,_Vb,_Wb,_Xb){if(_gx[_k9]){_gx[_k9]._KA(x,y,z,_Vb,_Wb,_Xb);}}function _ky(_k9,x,y,z,_Vb,_Wb,_Xb,_m4,alpha){if(_gx[_k9]){_gx[_k9]._LA(x,y,z,_Vb,_Wb,_Xb,_m4,alpha);}}function _ly(_k9,x,y,z,_Vb,_Wb,_Xb,_Kb,_Lb){if(_gx[_k9]){_gx[_k9]._MA(x,y,z,_Vb,_Wb,_Xb,_Kb,_Lb);}}function _my(_k9,x,y,z,_Vb,_Wb,_Xb,_Kb,_Lb,_m4,alpha){if(_gx[_k9]){_gx[_k9]._NA(x,y,z,_Vb,_Wb,_Xb,_Kb,_Lb,_m4,alpha);}}function _ny(_k9){if(_gx[_k9]){_gx[_k9]._Ed(); }}function _oy(_k9,_w6,_x6,_yv,_y6,_z6,_zv,_Av,_Bv){if(_gx[_k9]){_gx[_k9]._OA(_w6,_x6,_yv,_y6,_z6,_zv,_Av,_Bv);}}function _py(_k9,_w6,_x6,_yv,_y6,_z6,_zv,_Av,_Bv,closed,_Dv){if(_gx[_k9]){_gx[_k9]._PA(_w6,_x6,_yv,_y6,_z6,_zv,_Av,_Bv,closed,_Dv);}}function _qy(_k9,_w6,_x6,_yv,_y6,_z6,_zv,_Av,_Bv,closed,_Dv){if(_gx[_k9]){_gx[_k9]._QA(_w6,_x6,_yv,_y6,_z6,_zv,_Av,_Bv,closed,_Dv);}}function _ry(_k9,_w6,_x6,_yv,_y6,_z6,_zv,_Av,_Bv,_Dv){if(_gx[_k9]){_gx[_k9]._RA(_w6,_x6,_yv,_y6,_z6,_zv,_Av,_Bv,_Dv);}}function _sy(_k9, _w6,_x6,_yv,_y6,_z6,_zv,_Av,_Bv){if(_gx[_k9]){_gx[_k9]._SA(_w6,_x6,_yv,_y6,_z6,_zv,_Av,_Bv);}}function _ty(_k9,_w6,_x6,_yv,_y6,_z6,_zv,_Av,_Bv){if(_gx[_k9]){_gx[_k9]._TA(_w6,_x6,_yv,_y6,_z6,_zv,_Av,_Bv);}}function _yx(){_UA(_VA,new _zz());}function _zx(_sw,_tw,_uw){var _v6=new _zz();_v6._WA(_sw,_tw,_uw);_UA(_VA,_v6);}function _Ax(_X8,_Y8,_ww){var _v6=new _zz();_v6._XA(_X8,_Y8,_ww);_UA(_VA,_v6);}function _Bx(angle){var _v6=new _zz();_v6._YA(angle);_UA(_VA,_v6);}function _Cx(angle){var _v6=new _zz();_v6._ZA(angle); _UA(_VA,_v6);}function _Dx(angle){var _v6=new _zz();_v6.__A(angle);_UA(_VA,_v6);}function _Ex(_Bw,_Cw,_Dw,angle){var _v6=new _zz();_v6._0B(new _Tz(_Bw,_Cw,_Dw),-angle);_UA(_VA,_v6);}function _Fx(_sw,_tw,_uw){var _ih=new _zz();_ih._WA(_sw,_tw,_uw);var _1B=_2B(_VA);var _v6=new _zz();_v6.Multiply(_1B,_ih);_UA(_VA,_v6);}function _Gx(_X8,_Y8,_ww){var _3B=new _zz();_3B._XA(_X8,_Y8,_ww);var _1B=_2B(_VA);var _v6=new _zz();_v6.Multiply(_1B,_3B);_UA(_VA,_v6);}function _Hx(angle){var _4B=new _zz();_4B._YA(angle);var _1B=_2B(_VA); var _v6=new _zz();_v6.Multiply(_1B,_4B);_UA(_VA,_v6);}function _Ix(angle){var _4B=new _zz();_4B._ZA(angle);var _1B=_2B(_VA);var _v6=new _zz();_v6.Multiply(_1B,_4B);_UA(_VA,_v6);}function _Jx(angle){var _4B=new _zz();_4B.__A(angle);var _1B=_2B(_VA);var _v6=new _zz();_v6.Multiply(_1B,_4B);_UA(_VA,_v6);}function _Kx(_Bw,_Cw,_Dw,angle){var _4B=new _zz();_4B._0B(new _Tz(_Bw,_Cw,_Dw),-angle);var _1B=_2B(_VA);var _v6=new _zz();_v6.Multiply(_1B,_4B);_UA(_VA,_v6);}function _Lx(_q5,_r5,_1d){var _1B=_2B(_VA);var _N6=(_1B._v6[_5B]*_q5)+(_1B._v6[_6B]*_r5)+(_1B._v6[_7B]*_1d)+_1B._v6[_8B]; var _P6=(_1B._v6[_9B]*_q5)+(_1B._v6[_0A]*_r5)+(_1B._v6[_aB]*_1d)+_1B._v6[_bB];var _cB=(_1B._v6[_dB]*_q5)+(_1B._v6[_eB]*_r5)+(_1B._v6[_fB]*_1d)+_1B._v6[_gB];var _e4=[];_e4[0]=_N6;_e4[1]=_P6;_e4[2]=_cB;return _e4;}function _Mx(){_hB();}function _Nx(){return _iB();}function _Ox(){var _1B=_2B(_VA);return _jB(_1B);}function _Px(){return _kB();}function _Qx(){return _lB();}function _Rx(){return _mB();}function _uy(_od){_od=yyGetInt32(_od);var _v6=[];if(_od<0||_od>2){_H4('ERROR: Invalid matrix type (matrix_get)');for(var i=0; i<16;i++){_v6[i]=0;}return _v6;}var _nB=_oB[_od];for(var i=0;i<16;i++){_v6[i]=_nB._v6[i];}return _v6;}function _vy(_od,_Lw){_od=yyGetInt32(_od);if(_od<0||_od>2){_H4('ERROR: Invalid matrix type (matrix_get)');return;}_UA(_od,_Lw);if(_od==_pB){var _qB=new _zz();var _rB=_2B(_sB);if(_1A==-1){_qB=_rB;}else {var _tB=new _zz();_tB._uB();_tB._v6[_0A]=-1;_qB.Multiply(_rB,_tB);}_vB(new _zz(_Lw),_qB);}else if(_od==_sB){_vB(_2B(_pB),new _zz(_Lw));}}function _Vw(){return [1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1,];}function _Ww(_bw,_cw, _dw,_ew,_fw,_gw,_hw,_iw,_jw){var _v6=new _zz();var _wB=new _Tz(yyGetReal(_bw),yyGetReal(_cw),yyGetReal(_dw));var _xB=new _Tz(yyGetReal(_ew),yyGetReal(_fw),yyGetReal(_gw));var _yB=new _Tz(yyGetReal(_hw),yyGetReal(_iw),yyGetReal(_jw));_v6._Wz(_wB,_xB,_yB);var _nB=[];for(var i=0;i<16;i++){_nB[i]=_v6._v6[i];}return _nB;}function _Xw(width,height,_Yz,_Zz){var _v6=new _zz();_v6._4A(yyGetReal(width),yyGetReal(height),yyGetReal(_Yz),yyGetReal(_Zz));var _nB=[];for(var i=0;i<16;i++){_nB[i]=_v6._v6[i];}return _nB;}function _Yw(width, height,_Yz,_Zz){var _v6=new _zz();_v6._5A(yyGetReal(width),yyGetReal(height),yyGetReal(_Yz),yyGetReal(_Zz));var _nB=[];for(var i=0;i<16;i++){_nB[i]=_v6._v6[i];}return _nB;}function _Zw(_zB,_lw,_Yz,_Zz){var _v6=new _zz();_v6.__z(yyGetReal(_zB),yyGetReal(_lw),yyGetReal(_Yz),yyGetReal(_Zz));var _nB=[];for(var i=0;i<16;i++){_nB[i]=_v6._v6[i];}return _nB;}function _Mw(_q5,_r5,_1d,_AB,_BB,_CB,_co,_do,_DB){var _v6=new _zz();var _EB=(Math.PI/180.0);_AB=(_EB*-yyGetReal(_AB));_BB=(_EB*-yyGetReal(_BB));_CB=(_EB*-yyGetReal(_CB)); _v6._FB(yyGetReal(_q5),yyGetReal(_r5),yyGetReal(_1d),_AB,_BB,_CB,yyGetReal(_co),yyGetReal(_do),yyGetReal(_DB));var _nB=[];for(var i=0;i<16;i++){_nB[i]=_v6._v6[i];}return _nB;}function _Nw(_GB,_HB){var _IB=new _zz();var _JB=new _zz();var _KB=new _zz();for(var i=0;i<16;i++){_IB._v6[i]=yyGetReal(_GB[i]);_JB._v6[i]=yyGetReal(_HB[i]);}_KB.Multiply(_IB,_JB);var _nB=[];for(var i=0;i<16;i++){_nB[i]=_KB._v6[i];}return _nB;}function _Ow(_LB,_q5,_r5,_1d){_q5=yyGetReal(_q5);_r5=yyGetReal(_r5);_1d=yyGetReal(_1d);var _pb;if(arguments.length==4){ var _N6=(_LB[_5B]*_q5)+(_LB[_6B]*_r5)+(_LB[_7B]*_1d)+_LB[_8B];var _P6=(_LB[_9B]*_q5)+(_LB[_0A]*_r5)+(_LB[_aB]*_1d)+_LB[_bB];var _cB=(_LB[_dB]*_q5)+(_LB[_eB]*_r5)+(_LB[_fB]*_1d)+_LB[_gB];_pb=[_N6,_P6,_cB];}else {var _kj=yyGetReal(arguments[4]);var _N6=(_LB[_5B]*_q5)+(_LB[_6B]*_r5)+(_LB[_7B]*_1d)+(_LB[_8B]*_kj);var _P6=(_LB[_9B]*_q5)+(_LB[_0A]*_r5)+(_LB[_aB]*_1d)+(_LB[_bB]*_kj);var _cB=(_LB[_dB]*_q5)+(_LB[_eB]*_r5)+(_LB[_fB]*_1d)+(_LB[_gB]*_kj);var _37=(_LB[_MB]*_q5)+(_LB[_NB]*_r5)+(_LB[_OB]*_1d)+(_LB[_PB]*_kj); _pb=[_N6,_P6,_cB,_37];}return _pb;}function _Pw(_Lw){if(_ix>=_hx){return;}_ix++;if(arguments.length==0){_jx[_ix]=new _zz(_jx[_ix-1]);}else {var _nB=new _zz();var i;for(i=0;i<16;i++){_nB._v6[i]=_Lw[i];}_jx[_ix]=new _zz();_jx[_ix].Multiply(_nB,_jx[_ix-1]);}}function _Qw(){_ix--;if(_ix<0){_Sw();}}function _Sw(){_ix=0;_jx[0]=new _zz();}function _Rw(_Lw){_jx[_ix]=new _zz(_Lw);}function _Tw(){var elements=new Array(16);var i;for(i=0;i<16;i++){elements[i]=_jx[_ix]._v6[i];}return elements;}function _Uw(){if(_ix==0)return true; else return false;}function _xy(_Nz){_e8._la._Ba(_9a._QB,yyGetInt32(_Nz)>=0.5);}function _yy(_Nz){_e8._la._Ba(_9a._RB,yyGetInt32(_Nz)>=0.5);}function _zy(_SB){_e8._la._Ba(_9a._TB,yyGetInt32(_SB));}function _Ay(_Nz){_e8._la._Ba(_9a._UB,yyGetInt32(_Nz)>=0.5);}function _By(_Nz,_3d,_VB,_WB){if(Array.isArray(_Nz)){var _XB=_Nz;_Nz=_XB[0];_3d=_XB[1];_VB=_XB[2];_WB=_XB[3];}_Nz=yyGetBool(_Nz);_3d=yyGetInt32(_3d)|0xff000000;_VB=yyGetReal(_VB);_WB=yyGetReal(_WB);_e8._la._Ba(_9a._YB,_Nz);_e8._la._Ba(_9a._ZB,_3d);_e8._la._Ba(_9a.__B, _VB);_e8._la._Ba(_9a._0C,_WB);_CA[0]=_Nz;var _qv=_WB-_VB;_CA[1]=(_qv==0.0)?0.0:(1.0/_qv);_CA[2]=_WB;_CA[3]=0.0;_CA[4]=(_3d&0xff)/255.0;_CA[5]=((_3d>>8)&0xff)/255.0;_CA[6]=((_3d>>16)&0xff)/255.0;_CA[7]=1.0;_e8._DA(_CA);}function _Cy(_1C){_e8._la._Ba(_9a._2C,yyGetInt32(_1C));}function _wy(_Ar){switch(yyGetInt32(_Ar)){case 1:_e8._la._Ba(_9a._na,_9a._aa);_e8._la._Ba(_9a._oa,_9a._da);_e8._la._Ba(_9a._pa,_9a._aa);_e8._la._Ba(_9a._qa,_9a._da);_e8._la._Ba(_9a._ra,false);break;case 2:_e8._la._Ba(_9a._na,_9a._aa); _e8._la._Ba(_9a._oa,_9a._fa);_e8._la._Ba(_9a._pa,_9a._aa);_e8._la._Ba(_9a._qa,_9a._fa);_e8._la._Ba(_9a._ra,false);break;case 3:_e8._la._Ba(_9a._na,_9a._3C);_e8._la._Ba(_9a._oa,_9a._fa);_e8._la._Ba(_9a._pa,_9a._3C);_e8._la._Ba(_9a._qa,_9a._fa);_e8._la._Ba(_9a._ra,false);break;default :_e8._la._Ba(_9a._na,_9a._aa);_e8._la._Ba(_9a._oa,_9a._ca);_e8._la._Ba(_9a._pa,_9a._aa);_e8._la._Ba(_9a._qa,_9a._ca);_e8._la._Ba(_9a._ra,false);break;}}function _Dy(_oj,_pk){var _4C,_5C;if(Array.isArray(_oj)){_4C=yyGetInt32(_oj[0]); _5C=yyGetInt32(_oj[1]);}else {_4C=yyGetInt32(_oj);_5C=yyGetInt32(_pk);}_e8._la._Ba(_9a._na,_4C);_e8._la._Ba(_9a._oa,_5C);_e8._la._Ba(_9a._pa,_4C);_e8._la._Ba(_9a._qa,_5C);_e8._la._Ba(_9a._ra,false);}function _Ey(_oj,_pk,_6C,_7C){var _4C,_5C,_8C,_9C;if(Array.isArray(_oj)){_4C=yyGetInt32(_oj[0]);_5C=yyGetInt32(_oj[1]);_8C=yyGetInt32(_oj[2]);_9C=yyGetInt32(_oj[3]);}else {_4C=yyGetInt32(_oj);_5C=yyGetInt32(_pk);_8C=yyGetInt32(_6C);_9C=yyGetInt32(_7C);}_e8._la._Ba(_9a._na,_4C);_e8._la._Ba(_9a._oa,_5C);_e8._la._Ba(_9a._pa, _8C);_e8._la._Ba(_9a._qa,_9C);_e8._la._Ba(_9a._ra,true);}function _Fy(_aC,_bC,_cC,_u9){var _dC;var _eC;var _fC;var _gC;if(Array.isArray(_aC)){var _XB=_aC;_dC=(yyGetInt32(_XB[0])>=0.5);_eC=(yyGetInt32(_XB[1])>=0.5);_fC=(yyGetInt32(_XB[2])>=0.5);_gC=(yyGetInt32(_XB[3])>=0.5);}else {_dC=(yyGetInt32(_aC)>=0.5);_eC=(yyGetInt32(_bC)>=0.5);_fC=(yyGetInt32(_cC)>=0.5);_gC=(yyGetInt32(_u9)>=0.5);}var _hC={_iv:_dC,_jv:_eC,_kv:_fC,alpha:_gC};_e8._la._Ba(_9a._iC,_hC);}function _Gy(_aC,_bC,_cC,_u9){_Fy(_aC,_bC,_cC,_u9); }function _Hy(_Nz){_jC=(yyGetInt32(_Nz)>=0.5)?true:false;_e8._la._Ba(_9a._kC,yyGetInt32(_Nz)>=0.5);}function _Iy(_Vn){_lC=yyGetInt32(_Vn)/255.0;_e8._la._Ba(_9a._mC,yyGetInt32(_Vn));}function _Jy(_nC){var _oC=_e8._pC;var i;if(yyGetBool(_nC)){for(i=0;i<_oC;i++){_e8._la._qC(i,_9a._rC,_9a._sC);_e8._la._qC(i,_9a._tC,_9a._sC);}}else {for(i=0;i<_oC;i++){_e8._la._qC(i,_9a._rC,_9a._uC);_e8._la._qC(i,_9a._tC,_9a._uC);}}}function _Ky(_vC,_nC){var _ax,_9x;if(Array.isArray(_vC)){var _XB=_vC;_ax=yyGetInt32(_XB[0]);_9x=yyGetBool(_XB[1]); }else {_ax=yyGetInt32(_vC);_9x=yyGetBool(_nC);}if(_9x){_e8._la._qC(_ax,_9a._rC,_9a._sC);_e8._la._qC(_ax,_9a._tC,_9a._sC);}else {_e8._la._qC(_ax,_9a._rC,_9a._uC);_e8._la._qC(_ax,_9a._tC,_9a._uC);}}function _Ly(_wC){var _oC=_e8._pC;var i;if(yyGetBool(_wC)){for(i=0;i<_oC;i++){_e8._la._qC(i,_9a._xC,_9a._yC);_e8._la._qC(i,_9a._zC,_9a._yC);}}else {for(i=0;i<_oC;i++){_e8._la._qC(i,_9a._xC,_9a._AC);_e8._la._qC(i,_9a._zC,_9a._AC);}}}function _My(_vC,_wC){var _ax,repeat;if(Array.isArray(_vC)){var _XB=_vC;_ax=yyGetInt32(_XB[0]); repeat=yyGetBool(_XB[1]);}else {_ax=yyGetInt32(_vC);repeat=yyGetBool(_wC);}if(repeat){_e8._la._qC(_ax,_9a._xC,_9a._yC);_e8._la._qC(_ax,_9a._zC,_9a._yC);}else {_e8._la._qC(_ax,_9a._xC,_9a._AC);_e8._la._qC(_ax,_9a._zC,_9a._AC);}}function _Ny(_BC){var filter=_BC;for(var i=0;i<_e8._pC;i++){_e8._la._qC(i,_9a._CC,filter);}}function _Oy(_DC,_BC){var _EC=_DC;var filter=_BC;if((_EC<0)||(_EC>=_e8._pC)){return;}_e8._la._qC(_EC,_9a._CC,filter);}function _Py(_FC){var _bx=_FC;for(var i=0;i<_e8._pC;i++){_e8._la._qC(i,_9a._GC, _bx);}}function _Qy(_DC,_FC){var _EC=_DC;var _bx=_FC;if((_EC<0)||(_EC>=_e8._pC)){return;}_e8._la._qC(_EC,_9a._GC,_bx);}function _Ry(_HC){var _cx=_HC;for(var i=0;i<_e8._pC;i++){_e8._la._qC(i,_9a._IC,_cx);}}function _Sy(_DC,_HC){var _EC=_DC;var _cx=_HC;if((_EC<0)||(_EC>=_e8._pC)){return;}_e8._la._qC(_EC,_9a._IC,_cx);}function _Ty(_JC){var _dx=_JC;for(var i=0;i<_e8._pC;i++){_e8._la._qC(i,_9a._KC,_dx);}}function _Uy(_DC,_JC){var _EC=_DC;var _dx=_JC;if((_EC<0)||(_EC>=_e8._pC)){return;}_e8._la._qC(_EC,_9a._KC,_dx);} function _Vy(_LC){var _ex=_LC;for(var i=0;i<_e8._pC;i++){_e8._la._qC(i,_9a._MC,_ex);}}function _Wy(_DC,_LC){var _EC=_DC;var _ex=_LC;if((_EC<0)||(_EC>=_e8._pC)){return;}_e8._la._qC(_EC,_9a._MC,_ex);}function _Xy(_Nz){var enable=_Nz;for(var i=0;i<_e8._pC;i++){_e8._la._qC(i,_9a._NC,enable);}}function _Yy(_DC,_Nz){var _EC=_DC;var enable=_Nz;if((_EC<0)||(_EC>=_e8._pC)){return;}_e8._la._qC(_EC,_9a._NC,enable);}function _Zy(){return _e8._la._ma(_9a._QB)?1.0:0.0;}function __y(){return _e8._la._ma(_9a._RB)?1.0:0.0;}function _0z(){ return _e8._la._ma(_9a._TB);}function _1z(){return _e8._la._ma(_9a._UB)?1.0:0.0;}function _2z(){var _XB=new Array();_XB.push(_e8._la._ma(_9a._YB)?1.0:0.0);_XB.push(_e8._la._ma(_9a._ZB));_XB.push(_e8._la._ma(_9a.__B));_XB.push(_e8._la._ma(_9a._0C));return _XB;}function _3z(){return _e8._la._ma(_9a._2C);}function _4z(){var _4C=_e8._la._ma(_9a._na);var _5C=_e8._la._ma(_9a._oa);var _8C=_e8._la._ma(_9a._pa);var _9C=_e8._la._ma(_9a._qa);if((_4C!=_8C)||(_5C!=_9C)){return -1;}else {switch(_4C){case _OC:{switch(_5C){case _PC:return 0; case _QC:return 1;case _RC:return 2;default :return -1;}}case _SC:{if(_5C==_RC){return 3;}else {return -1;}}default :return -1;}}}function _5z(){var _XB=new Array();_XB[0]=_e8._la._ma(_9a._na);_XB[1]=_e8._la._ma(_9a._oa);return _XB;}function _6z(){var _XB=new Array();_XB[0]=_e8._la._ma(_9a._na);_XB[1]=_e8._la._ma(_9a._oa);_XB[2]=_e8._la._ma(_9a._pa);_XB[3]=_e8._la._ma(_9a._qa);return _XB;}function _7z(){return _e8._la._ma(_9a._na);}function _8z(){return _e8._la._ma(_9a._oa);}function _9z(){return _e8._la._ma(_9a._pa);}function _az(){ return _e8._la._ma(_9a._qa);}function _bz(){var _ue=_e8._la._ma(_9a._iC);var _q4=new Array();_q4.push(_ue._iv?1.0:0.0);_q4.push(_ue._jv?1.0:0.0);_q4.push(_ue._kv?1.0:0.0);_q4.push(_ue.alpha?1.0:0.0);return _q4;}function _cz(){return _bz();}function _dz(){return _e8._la._ma(_9a._kC)?1.0:0.0;}function _ez(){return _e8._la._ma(_9a._mC);}function _fz(){return _e8._la._TC(0,_9a._rC)==_9a._sC?1.0:0.0;}function _gz(_vC){return _e8._la._TC(yyGetInt32(_vC),_9a._rC)==_9a._sC?1.0:0.0;}function _hz(){return _e8._la._TC(0,_9a._xC)==_9a._yC?1.0:0.0; }function _iz(_vC){return _e8._la._TC(yyGetInt32(_vC),_9a._xC)==_9a._yC?1.0:0.0;}function _jz(){return _e8._la._TC(0,_9a._CC);}function _kz(_DC){var _EC=_DC;if((_EC<0)||(_EC>=_e8._pC)){return;}return _e8._la._TC(_EC,_9a._CC);}function _lz(){return _e8._la._TC(0,_9a._GC);}function _mz(_DC){var _EC=_DC;if((_EC<0)||(_EC>=_e8._pC)){return;}return _e8._la._TC(_EC,_9a._GC);}function _nz(){return _e8._la._TC(0,_9a._IC);}function _oz(_DC){var _EC=_DC;if((_EC<0)||(_EC>=_e8._pC)){return;}return _e8._la._TC(_EC,_9a._IC);}function _pz(){ return _e8._la._TC(0,_9a._KC);}function _qz(_DC){var _EC=_DC;if((_EC<0)||(_EC>=_e8._pC)){return;}return _e8._la._TC(_EC,_9a._KC);}function _rz(){return _e8._la._TC(0,_9a._MC);}function _sz(_DC){var _EC=_DC;if((_EC<0)||(_EC>=_e8._pC)){return;}return _e8._la._TC(_EC,_9a._MC);}function _tz(){return _e8._la._TC(0,_9a._NC);}function _uz(_DC){var _EC=_DC;if((_EC<0)||(_EC>=_e8._pC)){return;}return _e8._la._TC(_EC,_9a._NC);}function _vz(){_e8._la._UC();}function _wz(){_e8._la._VC();}var _WC=undefined;var _XC=undefined;function _YC(){ if(_WC==undefined){_WC=["blendenable",_9a._QB,"ztestenable",_9a._RB,"zfunc",_9a._TB,"zwriteenable",_9a._UB,"fogenable",_9a._YB,"fogcolor",_9a._ZB,"fogstart",_9a.__B,"fogend",_9a._0C,"cullmode",_9a._2C,"srcblend",_9a._na,"destblend",_9a._oa,"srcblendalpha",_9a._pa,"destblendalpha",_9a._qa,"sepalphaenable",_9a._ra,"colorwriteenable",_9a._iC,"alphatestenable",_9a._kC,"alphatestref",_9a._mC,"alphatestfunc",_9a._ZC];}}function __C(){if(_XC==undefined){_XC=["magfilter",_9a._rC,"minfilter",_9a._tC,"mipfilter", _9a._0D,"addressu",_9a._xC,"addressv",_9a._zC,"minmip",_9a._IC,"maxmip",_9a._KC,"mipbias",_9a._GC,"maxaniso",_9a._MC,"mipenable",_9a._NC];}}function _xz(){_YC();__C();var map=ds_map_create();var _1D=_WC.length/2;var _2D=_XC.length/2;var i;for(i=0;i<_1D;i++){var _ue=_e8._la._ma(_WC[i*2+1]);ds_map_add(map,_WC[i*2],_ue);}var _oC=_e8._pC;for(i=0;i<_2D;i++){var __5;for(__5=0;__5<_oC;__5++){var name=_XC[i*2].slice(0)+__5;var _ue=_e8._la._TC(__5,_XC[i*2+1]);ds_map_add(map,name,_ue);}}return map;}function _yz(_97){ _97=yyGetInt32(_97);_YC();__C();var i;var _1D=_WC.length/2;var _2D=_XC.length/2;var _3D=ds_map_find_first(_97);while(_3D!=undefined){var key=_3D;var value=ds_map_find_value(_97,key);var _4D=false;for(i=0;i<_1D;i++){if(key==_WC[i*2]){_e8._la._Ba(_WC[i*2+1],value);_4D=true;break;}}if(!_4D){for(i=0;i<_2D;i++){var _5D=_XC[i*2].length;var _6D=key.substr(0,_5D);if(_6D==_XC[i*2]){var _7D=key.substr(_5D-1,key.length-_5D);var _3v=parseInt(_7D,10);_e8._la._qC(_3v,_XC[i*2+1],value);break;}}}_3D=ds_map_find_next(_97,_3D); }}function _8D(){}var _9D=1970;var _aD=0;var _bD=1;var _cD=365.25;var _dD=30.4375;var _eD=[31,28,31,30,31,30,31,31,30,31,30,31];var _fD=[];var _gD=(86400.0);var _hD=(_gD*30);var _iD=true;var _jD=0;var _kD=1;function _lD(_mD){if(_mD<_nD){return _mD*_oD;}else {return(_mD-_nD)*_oD;}}function _pD(_qD){return _qD%400==0||(_qD%100!=0&&_qD%4==0);}function _rD(_qD){var _sD=_eD.slice();;if(_pD(_qD)){_sD[1]=29;}return _sD;}function _tD(_qD,_uD,_vD,_wD,_xD,_yD,_zD){_qD=yyGetInt32(_qD);_uD=yyGetInt32(_uD);_vD=yyGetInt32(_vD);_wD=yyGetInt32(_wD); _xD=yyGetInt32(_xD);_yD=yyGetInt32(_yD);_zD=yyGetInt32(_zD);if((_qD>=1970)&&(_uD>=1)&&(_uD<=12)&&(_vD>=1)&&(_vD<=31)&&(_wD>=0)&&(_wD<=23)&&(_xD>=0)&&(_xD<=59)&&(_yD>=0)&&(_yD<=59)&&(_zD>=0)&&(_zD<=999)){if(_vD>28){switch(_uD){case 2:if(!_pD(_qD)||(_vD>29)){return 0;}break;case 4:case 6:case 9:case 11:if(_vD>30){return 0;}break;}}}else {return 0;}return 1;}var _oD=86400000.0;var _nD=25569;function date_current_datetime(){var _AD=new Date();var _BD=_AD.getMilliseconds();var _J6=_AD.getTime()-_BD;return(_J6/_oD)+_nD; }function _CD(){var _Bm=new Date();return(~~(_Bm.getTime()/_oD))+_nD;}function _DD(){var _Bm=new Date();_Bm.setFullYear(_9D,_aD,_bD);var _ED=(_Bm.getTime()/_oD)+_nD;return(_ED-(~~_ED));}function date_create_datetime(_FD,_GD,_HD,_ID,_JD,_KD){_FD=yyGetInt32(_FD);_GD=yyGetInt32(_GD);_HD=yyGetInt32(_HD);_ID=yyGetInt32(_ID);_JD=yyGetInt32(_JD);_KD=yyGetInt32(_KD);var _Bm=new Date();if(_iD){_Bm.setFullYear(_FD,_GD-1,_HD);_Bm.setHours(_ID,_JD,_KD,10);}else {_Bm.setUTCFullYear(_FD,_GD-1,_HD);_Bm.setUTCHours(_ID,_JD, _KD,10);}return(_Bm.getTime()/_oD)+_nD;}function date_get_year(_96){var _Bm=new Date();_Bm.setTime(_lD(yyGetReal(_96)));return(_iD)?_Bm.getFullYear():_Bm.getUTCFullYear();}function date_get_month(_96){var _Bm=new Date();_Bm.setTime(_lD(yyGetReal(_96)));return(_iD)?(_Bm.getMonth())+1:(_Bm.getUTCMonth())+1;}function date_get_day(_96){var _Bm=new Date();_Bm.setTime(_lD(yyGetReal(_96)));return(_iD)?_Bm.getDate():_Bm.getUTCDate();}function date_get_weekday(_96){var _Bm=new Date();_Bm.setTime(_lD(yyGetReal(_96))); return(_iD)?_Bm.getDay():_Bm.getUTCDay();}function date_get_week(_96){var _Bm=new Date();_Bm.setTime(_lD(yyGetReal(_96)));var w=_LD(_Bm);return floor(w/7);}function date_get_hour(_96){var _Bm=new Date();_Bm.setTime(_lD(yyGetReal(_96)));return(_iD)?_Bm.getHours():_Bm.getUTCHours();}function date_get_minute(_96){var _Bm=new Date();_Bm.setTime(_lD(yyGetReal(_96)));return(_iD)?_Bm.getMinutes():_Bm.getUTCMinutes();}function date_get_second(_96){var _Bm=new Date();_Bm.setTime(_lD(yyGetReal(_96)));return(_iD)?_Bm.getSeconds():_Bm.getUTCSeconds(); }function _LD(_MD){var _vD=0;if(_iD){var _ND=_rD(_MD.getFullYear());for(var i=0;i<_MD.getMonth();i++){_vD+=_ND[i];}_vD+=_MD.getDate();}else {var _ND=_rD(_MD.getUTCFullYear());for(var i=0;i<_MD.getUTCMonth();i++){_vD+=_ND[i];}_vD+=_MD.getUTCDate();}return _vD;}function date_valid_datetime(_FD,_GD,_HD,_ID,_JD,_KD){return _tD(yyGetInt32(_FD),yyGetInt32(_GD),yyGetInt32(_HD),yyGetInt32(_ID),yyGetInt32(_JD),yyGetInt32(_KD),0);}function date_inc_year(_OD,_PD){var _Bm=new Date();_Bm.setTime(_lD(yyGetReal(_OD)));_Bm.setUTCFullYear(_Bm.getUTCFullYear()+yyGetInt32(_PD), _Bm.getUTCMonth(),_Bm.getUTCDate());return(_Bm.getTime()/_oD)+_nD;}function date_inc_month(_OD,_PD){var _Bm=new Date();_Bm.setTime(_lD(yyGetReal(_OD)));_Bm.setUTCFullYear(_Bm.getUTCFullYear(),_Bm.getUTCMonth()+yyGetInt32(_PD),_Bm.getUTCDate());return(_Bm.getTime()/_oD)+_nD;}function date_inc_week(_OD,_PD){var _Bm=new Date();_Bm.setTime(_lD(yyGetReal(_OD)));_Bm.setUTCFullYear(_Bm.getUTCFullYear(),_Bm.getUTCMonth(),_Bm.getUTCDate()+(yyGetInt32(_PD)*7));return(_Bm.getTime()/_oD)+_nD;}function date_inc_day(_OD, _PD){var _Bm=new Date();_Bm.setTime(_lD(yyGetReal(_OD)));_Bm.setUTCFullYear(_Bm.getUTCFullYear(),_Bm.getUTCMonth(),_Bm.getUTCDate()+yyGetInt32(_PD));return(_Bm.getTime()/_oD)+_nD;}function date_inc_hour(_OD,_PD){var _Bm=new Date();_Bm.setTime(_lD(yyGetReal(_OD)));_Bm.setUTCHours(_Bm.getUTCHours()+yyGetInt32(_PD),_Bm.getUTCMinutes(),_Bm.getUTCSeconds(),_Bm.getUTCMilliseconds());return(_Bm.getTime()/_oD)+_nD;}function date_inc_minute(_OD,_PD){var _Bm=new Date();_Bm.setTime(_lD(yyGetReal(_OD)));_Bm.setUTCHours(_Bm.getUTCHours(), _Bm.getUTCMinutes()+yyGetInt32(_PD),_Bm.getUTCSeconds(),_Bm.getUTCMilliseconds());return(_Bm.getTime()/_oD)+_nD;}function date_inc_second(_OD,_PD){var _Bm=new Date();_Bm.setTime(_lD(yyGetReal(_OD)));_Bm.setUTCHours(_Bm.getUTCHours(),_Bm.getUTCMinutes(),_Bm.getUTCSeconds()+yyGetInt32(_PD),_Bm.getUTCMilliseconds());return(_Bm.getTime()/_oD)+_nD;}function date_get_day_of_year(_96){var _Bm=new Date();_Bm.setTime(_lD(yyGetReal(_96)));var _QD=_LD(_Bm);return _QD;}function date_get_hour_of_year(_96){var _Bm=new Date(); _Bm.setTime(_lD(yyGetReal(_96)));var _QD=_LD(_Bm);var _RD=(_QD-1)*24;if(_iD)_RD+=_Bm.getHours();else _RD+=_Bm.getUTCHours();return _RD;}function date_get_minute_of_year(_96){var _Bm=new Date();_Bm.setTime(_lD(yyGetReal(_96)));var _QD=_LD(_Bm);var _SD=(_QD-1)*24*60;if(_iD){_SD+=_Bm.getHours()*60;_SD+=_Bm.getMinutes();}else {_SD+=_Bm.getUTCHours()*60;_SD+=_Bm.getUTCMinutes();}return _SD;}function date_get_second_of_year(_96){var _Bm=new Date();_Bm.setTime(_lD(yyGetReal(_96)));var _QD=_LD(_Bm);var _TD=(_QD-1)*24*60*60; if(_iD){_TD+=_Bm.getHours()*60*60;_TD+=_Bm.getMinutes()*60;_TD+=_Bm.getSeconds();}else {_TD+=_Bm.getUTCHours()*60*60;_TD+=_Bm.getUTCMinutes()*60;_TD+=_Bm.getUTCSeconds();}return _TD;}function date_year_span(_UD,_VD){var _Bm=new Date();var _WD=_Bm.setTime(_lD(yyGetReal(_UD)));var _XD=_Bm.setTime(_lD(yyGetReal(_VD)));var _YD=(_XD-_WD);return Math.abs(Math.floor(_YD/1000)/60/60/24/_cD);}function date_month_span(_UD,_VD){var _Bm=new Date();var _WD=_Bm.setTime(_lD(yyGetReal(_UD)));var _XD=_Bm.setTime(_lD(yyGetReal(_VD))); var _YD=(_XD-_WD);return Math.abs(Math.floor(_YD/1000)/60/60/24/_dD);}function date_week_span(_UD,_VD){var _Bm=new Date();var _WD=_Bm.setTime(_lD(yyGetReal(_UD)));var _XD=_Bm.setTime(_lD(yyGetReal(_VD)));var _YD=(_XD-_WD);return Math.abs(Math.floor(_YD/1000)/60/60/24/7);}function date_day_span(_UD,_VD){var _Bm=new Date();var _WD=_Bm.setTime(_lD(yyGetReal(_UD)));var _XD=_Bm.setTime(_lD(yyGetReal(_VD)));var _YD=(_XD-_WD);return Math.abs(Math.floor(_YD/1000)/60/60/24);}function date_hour_span(_UD,_VD){var _Bm=new Date(); var _WD=_Bm.setTime(_lD(yyGetReal(_UD)));var _XD=_Bm.setTime(_lD(yyGetReal(_VD)));var _YD=(_XD-_WD);return Math.abs(Math.floor(_YD/1000)/60/60);}function date_minute_span(_UD,_VD){var _Bm=new Date();var _WD=_Bm.setTime(_lD(yyGetReal(_UD)));var _XD=_Bm.setTime(_lD(yyGetReal(_VD)));var _YD=(_XD-_WD);return Math.abs(Math.floor(_YD/1000)/60);}function date_second_span(_UD,_VD){var _Bm=new Date();var _WD=_Bm.setTime(_lD(yyGetReal(_UD)));var _XD=_Bm.setTime(_lD(yyGetReal(_VD)));var _YD=(_XD-_WD);return ~~Math.abs(Math.floor(_YD/1000)); }function _ZD(_OD){var _Bm=new Date();_Bm.setTime(_lD(_OD));return(_Bm.getHours()-_Bm.getUTCHours())*60*60*1000;}function date_compare_datetime(_UD,_VD){_UD=yyGetReal(_UD);_VD=yyGetReal(_VD);if(_UD<_VD){return -1;}else if(_UD>_VD){return 1;}return 0;}function date_compare_date(_UD,_VD){var __D=new Date();__D.setTime(_lD(yyGetReal(_UD)));var _0E=new Date();_0E.setTime(_lD(yyGetReal(_VD)));var _WD=(__D.getFullYear()*366)+(__D.getMonth()*31)+__D.getDate();var _XD=(_0E.getFullYear()*366)+(_0E.getMonth()*31)+_0E.getDate(); return(_WD==_XD)?0.0:((_WD>_XD)?1.0:-1.0);}function date_compare_time(_UD,_VD){var __D=new Date();__D.setTime(_lD(yyGetReal(_UD)));var _0E=new Date();_0E.setTime(_lD(yyGetReal(_VD)));var _1E=(__D.getHours()*3600)+(__D.getMinutes()*60)+__D.getSeconds();var _2E=(_0E.getHours()*3600)+(_0E.getMinutes()*60)+_0E.getSeconds();return(_1E==_2E)?0.0:((_1E>_2E)?1.0:-1.0);}function _3E(_4E){return(_4E-_nD)*_gD;}function _5E(_4E){return((_4E+0.5)/_gD)+_nD;}function _6E(_J6){let _7E=new Date(_J6._qD+1900,_J6._uD,_J6._vD, _J6._wD,_J6._xD,_J6._yD);if(_iD)return _7E.getTime()/1000;return _7E.getTime()/1000-_7E.getTimezoneOffset()*60;}function _8E(time){let _7E=new Date(time*1000);let tm={_qD:_7E.getUTCFullYear()-1900,_uD:_7E.getUTCMonth(),_vD:_7E.getUTCDate(),_wD:_7E.getUTCHours(),_xD:_7E.getUTCMinutes(),_yD:_7E.getUTCSeconds()};if(_iD){tm._qD=_7E.getFullYear()-1900;tm._uD=_7E.getMonth();tm._vD=_7E.getDate();tm._wD=_7E.getHours();tm._xD=_7E.getMinutes();tm._yD=_7E.getSeconds();}return tm;}function date_date_of(_OD){let result=-1; let _9E=_3E(_OD);let _aE=_8E(_9E);if(_aE){_aE._wD=0;_aE._xD=0;_aE._yD=0;result=_5E(_6E(_aE));}return result;}function date_time_of(_OD){return frac(yyGetReal(_OD));}function _bE(_1q){return((_1q<10)?"0":"")+_1q.toString();}function date_datetime_string(_OD){var _Bm=new Date();_Bm.setTime(_lD(yyGetReal(_OD)));var _Tl;if(_iD){_Tl=_bE(_Bm.getDate())+"/"+_bE(_Bm.getMonth()+1)+"/"+_Bm.getFullYear()+" "+_bE(_Bm.getHours())+":"+_bE(_Bm.getMinutes())+":"+_bE(_Bm.getSeconds());}else {_Tl=_bE(_Bm.getUTCDate())+"/"+_bE(_Bm.getUTCMonth()+1)+"/"+_Bm.getUTCFullYear()+" "+_bE(_Bm.getUTCHours())+":"+_bE(_Bm.getUTCMinutes())+":"+_bE(_Bm.getUTCSeconds()); }return _Tl;}function date_date_string(_OD){var _Bm=new Date();_Bm.setTime(_lD(yyGetReal(_OD)));var _Tl;if(_iD){_Tl=_bE(_Bm.getDate())+"/"+_bE(_Bm.getMonth()+1)+"/"+_Bm.getFullYear();}else {_Tl=_bE(_Bm.getUTCDate())+"/"+_bE(_Bm.getUTCMonth()+1)+"/"+_Bm.getUTCFullYear();}return _Tl;}function date_time_string(_OD){var _Bm=new Date();_Bm.setTime(_lD(yyGetReal(_OD)));if(_Bm.toString()=="Invalid Date"){return "invalid time";}var _Tl;if(_iD){_Tl=_bE(_Bm.getHours())+":"+_bE(_Bm.getMinutes())+":"+_bE(_Bm.getSeconds()); }else {_Tl=_bE(_Bm.getUTCHours())+":"+_bE(_Bm.getUTCMinutes())+":"+_bE(_Bm.getUTCSeconds());}return _Tl;}function date_days_in_month(_OD){var _Bm=new Date();_Bm.setTime(_lD(yyGetReal(_OD)));if(_iD){var _ND=_rD(_Bm.getFullYear());return _ND[_Bm.getMonth()];}var _ND=_rD(_Bm.getUTCFullYear());return _ND[_Bm.getUTCMonth()];}function date_days_in_year(_OD){var _Bm=new Date();_Bm.setTime(_lD(yyGetReal(_OD)));var _QD=0;var _ND;if(_iD)_ND=_rD(_Bm.getFullYear());else _ND=_rD(_Bm.getUTCFullYear());for(var i=0;i<_ND.length; i++){_QD+=_ND[i];}return _QD;}function date_leap_year(_OD){var _Bm=new Date();_Bm.setTime(_lD(yyGetReal(_OD)));if(_iD)return _pD(_Bm.getFullYear());return _pD(_Bm.getUTCFullYear());}function date_is_today(_OD){var _Bm=new Date();_Bm.setTime(_lD(yyGetReal(_OD)));var _cE=new Date();if(_iD){if((_Bm.getFullYear()==_cE.getFullYear())&&(_Bm.getMonth()==_cE.getMonth())&&(_Bm.getDate()==_cE.getDate())){return true;}}else {if((_Bm.getUTCFullYear()==_cE.getUTCFullYear())&&(_Bm.getUTCMonth()==_cE.getUTCMonth())&&(_Bm.getUTCDate()==_cE.getUTCDate())){ return true;}}return false;}function date_set_timezone(_dE){_iD=(yyGetInt32(_dE)==_jD);}function date_get_timezone(){if(_iD)return _jD;return _kD;}var _eE=[];var _fE=[];var _gE=[];var _hE=Date.now();var _iE=0;var _jE=1;var _kE=2;var _lE=3;var _mE=function(text){if(!text)return;if(_nE){if(_oE){var _sd=_oE.document.getElementById('debug_console');if(_sd){var _pE=String.fromCharCode(0x0a);text=text.replace('','').replace('','');var _qE=Date.now()-_hE;if(!_sd){alert(text);}else {_sd.value+=text+_pE;var _Yi=_sd.textLength; }_hE=Date.now();}}}if(_rE!=undefined){if(_rE.Options.outputDebugToConsole)console.log(text);if(_rE.Options.outputDebugToDiv){var _sE=document.getElementById("yyDebugDiv");var _tE=document.createElement('P');_tE.textContent+=text;_sE.appendChild(_tE);}}};function debug(text){var index;for(index=0;index=__E)break;caller=caller.caller;if(_0F.indexOf(caller)>=0)break;}var _1F=[];for(var i=0;i<_0F.length;i++){_1F[i]=_0F[i].name; }_1F.push(0);return _1F;}function show_message_async(_OE){_2F(_3F,_lE,[yyGetString(_OE)]);return _3F++;}function show_message(_OE){var _2i=yyGetString(_OE);if(!_2i)return;alert(_NE(_2i));}function show_error(_9o,_4F){_9o=yyGetString(_9o);if(!_9o)return;alert(_9o);}function show_question_async(_9o){_2F(_3F,_kE,[yyGetString(_9o)]);return _3F++;}function show_question(_9o){_9o=yyGetString(_9o);if(!_9o){_9o="";}if(window.confirm){return confirm(_NE(_9o))?1.0:0.0;}_Ib("show_question()");return 0;}function get_integer_async(_9o, _5F){_2F(_3F,_jE,[yyGetString(_9o),yyGetString(_5F)]);return _3F++;}function get_integer(_9o,_5F){return parseFloat(prompt(yyGetString(_9o),yyGetString(_5F)));}function _6F(_7F){var _w5=document.getElementById(_8F);var _9F=_w5.parentNode;var _aF=document.createElement("div");_bF="gm4html5_login_ID";_aF.setAttribute("class","gm4html5_login");_aF.setAttribute("id",_bF);_9F.insertBefore(_aF,_w5.nextSibling);_aF.innerHTML=""+""+""+""+""+""+""+""+""+""+"
"+""+"
"; _cF();_dF=true;var login=document.getElementById("gm4html5_login_button_id");var _eF=document.getElementById("gm4html5_login_username_id");var _fF=document.getElementById("gm4html5_login_password_id");_eF.value=_7F._gF[0];_fF.value=_7F._gF[1];login.onmouseup=function(){var _hF=_eF.value;var _iF=_fF.value;var _jF=_kF(_bF);if(!_jF)return;_jF._hF=_hF;_jF._iF=_iF;_jF.value=0;_jF.result="";_jF._Kf=true;_jF._Jf=_lF;_9F.removeChild(_aF);_dF=false;_mF();_nF(_7F.id);};var _oF=document.getElementById("gm4html5_cancel_button_id"); _oF.onmouseup=function(){_9F.removeChild(_aF);_dF=false;var _jF=_kF(_bF);if(!_jF)return;_jF._hF="";_jF._iF="";_jF.value=0;_jF.result="";_jF._Kf=true;_jF._Jf=_pF;_mF();_nF(_7F.id);};_qF();_Ff._Gf(_7F.id,null,_rF,_bF);}function _sF(_7F){var _w5=document.getElementById(_8F);var _9F=_w5.parentNode;var _aF=document.createElement("div");_bF="gm4html5_input_ID";_aF.setAttribute("class","gm4html5_login");_aF.setAttribute("id",_bF);_9F.insertBefore(_aF,_w5.nextSibling);_aF.innerHTML=""+""+""+""+""+""+""+"
"+""+"
"; _cF();_dF=true;var _tF=document.getElementById("gm4html5_input_message_id");var _uF=document.getElementById("gm4html5_input_text_id");_tF.innerHTML=_7F._gF[0];_uF.value=_7F._gF[1];var _vF=document.getElementById("gm4html5_input_ok_button_id");_vF.onmouseup=function(){var text=_uF.value;var _jF=_kF(_bF);if(!_jF)return;_jF._hF="";_jF._iF="";_jF.value=parseFloat(text);_jF.result=text;_jF._Kf=true;_jF._Jf=_lF;_9F.removeChild(_aF);_dF=false;_mF();_nF(_7F.id);};var _oF=document.getElementById("gm4html5_input_cancel_button_id"); _oF.onmouseup=function(){_9F.removeChild(_aF);_dF=false;var _jF=_kF(_bF);if(!_jF)return;_jF._hF="";_jF._iF="";_jF.value=0;_jF.result="";_jF._Kf=true;_jF._Jf=_pF;_mF();_nF(_7F.id);};_qF();_Ff._Gf(_7F.id,null,_rF,_bF);}function _wF(_7F){var _w5=document.getElementById(_8F);var _9F=_w5.parentNode;var _aF=document.createElement("div");_bF="gm4html5_question_ID";_aF.setAttribute("class","gm4html5_login");_aF.setAttribute("id",_bF);_9F.insertBefore(_aF,_w5.nextSibling);_aF.innerHTML=""+""+""+""+"
"+""+"
"; _cF();_dF=true;var _xF=document.getElementById("gm4html5_question_message_id");_xF.innerHTML=_7F._gF[0];var _vF=document.getElementById("gm4html5_question_yes_button_id");_vF.onmouseup=function(){var _jF=_kF(_bF);if(!_jF)return;_jF._hF="";_jF._iF="";_jF.value=1;_jF.result="1";_jF._Kf=true;_jF._Jf=_lF;_9F.removeChild(_aF);_dF=false;_mF();_nF(_7F.id);};var _oF=document.getElementById("gm4html5_question_no_button_id");_oF.onmouseup=function(){_9F.removeChild(_aF);_dF=false;var _jF=_kF(_bF);if(!_jF)return; _jF._hF="";_jF._iF="";_jF.value=0;_jF.result="0";_jF._Kf=true;_jF._Jf=_pF;_mF();_nF(_7F.id);};_qF();_Ff._Gf(_7F.id,null,_rF,_bF);}function _yF(_7F){var _w5=document.getElementById(_8F);var _9F=_w5.parentNode;var _aF=document.createElement("div");_bF="gm4html5_message_ID";_aF.setAttribute("class","gm4html5_login");_aF.setAttribute("id",_bF);_9F.insertBefore(_aF,_w5.nextSibling);_aF.innerHTML=""+""+""+""+"
"+""; _cF();_dF=true;var _xF=document.getElementById("gm4html5_message_message_id");_xF.innerHTML=_7F._gF[0];var _vF=document.getElementById("gm4html5_message_ok_button_id");_vF.onmouseup=function(){var _jF=_kF(_bF);if(!_jF)return;_jF._hF="";_jF._iF="";_jF.value=1;_jF.result="1";_jF._Kf=true;_jF._Jf=1;_9F.removeChild(_aF);_dF=false;_mF();_nF(_7F.id);};_qF();_Ff._Gf(_7F.id,null,_rF,_bF);}/*@constructor */function _zF(_jg,_od,_AF){this.id=_jg;this.type=_od;this._gF=_AF;}function _BF(){if(_CF.length>0){switch(_CF[0].type){ case _iE:_6F(_CF[0]);break;case _jE:_sF(_CF[0]);break;case _kE:_wF(_CF[0]);break;case _lE:_yF(_CF[0]);break;}}}function _DF(_AF){for(var i=0;i<_AF.length;++i){var _Tl=_AF[i];if(typeof(_Tl)=='string'){var _EF="";for(var _t6=0;_t6<_Tl.length;_t6++){var chr=_Tl[_t6];switch(chr){case '&':_EF=_EF+'&';break;case '<':_EF=_EF+'<';break;case '>':_EF=_EF+'>';break;default :_EF=_EF+chr;break;}}_Tl=_EF;var _FF=String.fromCharCode(13)+String.fromCharCode(10);_Tl=_Tl.split('#').join('
');_Tl=_Tl.split(_FF).join('
'); _AF[i]=_Tl;}}}function _2F(_jg,_od,_AF){_DF(_AF);var _Bm=new _zF(_jg,_od,_AF);_CF.push(_Bm);if(_CF.length==1){_BF();}}function _nF(_jg){var index=-1;for(var i=0;i<_CF.length;++i){if(_CF[i].id==_jg){index=i;break;}}if(index>=0){_CF.splice(index,1);}_BF();}function get_login_async(_GF,_HF){_2F(_3F,_iE,[_GF,_HF]);return _3F++;}function get_string_async(_9o,_5F){_2F(_3F,_jE,[yyGetString(_9o),yyGetString(_5F)]);return _3F++;}function get_string(_9o,_5F){return prompt(yyGetString(_9o),yyGetString(_5F));}function _qF(){ if(_dF){var login=document.getElementById(_bF);var w=login.offsetWidth;var h=login.offsetHeight;var _N6=(canvas.width-w)/2;var _P6=(canvas.height-h)/2;_bg=new _IF();_ag(canvas,_bg);login.style.left=~~(_N6+_bg.left)+"px";login.style.top=~~(_P6+_bg.top)+"px";}}function _JE(_yk){return _yk.substr(0,_yk.indexOf("("));}function _DE(_JF){var _ED=arguments.callee.caller;var _Tl="Error: "+_JF+"\n"+"--------------------------------------------------------------------\n";while(_ED){var name="\t"+_JE(_ED.toString());_Tl+=name+'('; for(var i=0;i<_ED.arguments.length;i++){if(i!=0){_Tl+=', ';}if(typeof _ED.arguments[i]=="string"){_Tl+='"'+_ED.arguments[i].toString()+'"';}else if((typeof _ED.arguments[i]=="number")||(_ED.arguments[i] instanceof Long)){_Tl+=_ED.arguments[i].toString();}else {if(_ED.arguments[i]==undefined){_Tl+="[undefined]";}else if(_ED.arguments[i]==null){_Tl+="[null]";}else if(_ED.arguments[i].__type){_Tl+=_ED.arguments[i].__type;}else {_Tl+="[unknown]";}}}_Tl+=")\n";_ED=_ED.caller;}debug(_Tl);}function _HE(_JF){var _ED=arguments.callee.caller; var _q4=[];while(_ED&&(_q4.length<100)){var name=_JE(_ED.toString());_Tl=name+'(';for(var i=0;i<_ED.arguments.length;i++){if(i!=0){_Tl+=', ';}if(typeof _ED.arguments[i]=="string"){_Tl+='"'+_ED.arguments[i].toString()+'"';}else if((typeof _ED.arguments[i]=="number")||(_ED.arguments[i] instanceof Long)){_Tl+=_ED.arguments[i].toString();}else {if(_ED.arguments[i]==undefined){_Tl+="[undefined]";}else if(_ED.arguments[i]==null){_Tl+="[null]";}else if(_ED.arguments[i].__type){_Tl+=_ED.arguments[i].__type;}else {_Tl+="[unknown]"; }}}_Tl+=")\n";_q4.push(_Tl);_ED=_ED.caller;}return _q4;}function _KF(){if(!_oE)return;var _LF=_oE.document.getElementById('debug_instances');if(!_LF)return;var _MF=[];var options=_LF.options;for(var index in options){if(!options.hasOwnProperty(index))continue;if(index!="selectedIndex"&&index!="length"){var _NF=options[index];if(_NF&&_NF.text){_MF[_MF.length]=_NF.text;}}}var _OF=[];for(var index in _Hn._PF){if(!_Hn._PF.hasOwnProperty(index))continue;var _0n=_Hn._PF[index];if(_0n!==undefined&&_0n!==null){var _ni=_0n.id.toString(); var i;for(i=0;i<_MF.length;i++){if(_MF[i]==_ni)break;}if(i>=_MF.length){_OF[_OF.length]=_ni;}else {_MF.splice(i,1);}}}for(var index in _MF){if(!_MF.hasOwnProperty(index))continue;for(var _NF in options){if(!options.hasOwnProperty(_NF))continue;if(options[_NF].text=index){_LF.removeChild(options[_NF]);break;}}}for(var index=0;index<_OF.length;index++){var _0n=_OF[index];var option=_oE.document.createElement("option");option.text=""+_0n;_LF.add(option,null);}}var _QF=3;var _RF=-1;function _SF(){if(!_oE)return;var _LF=_oE.document.getElementById('debug_instances'); var _TF=_oE.document.getElementById('debug_Instance_Data');if(!_LF||!_TF)return;var _UF=_LF.selectedIndex;if(_UF<0){return;}if(_UF==undefined)return;_UF=parseInt(_LF.options[_UF].text);var _1u=_Hn._PF[_UF];if(!_1u)return;var _ni=[];_ni[_ni.length]='';_ni[_ni.length]=''; _ni[_ni.length]='';_ni[_ni.length]='';_ni[_ni.length]='';_ni[_ni.length]='';_ni[_ni.length]='';_ni[_ni.length]='';_ni[_ni.length]=''; _ni[_ni.length]='';_ni[_ni.length]='';_ni[_ni.length]='';_ni[_ni.length]='';var _XF=_D5._E5(_1u.sprite_index);if(!_XF){_ni[_ni.length]='';}else {var _YF=_1u.image_index;if(_YF<0||_YF>_XF._C4.length)_YF=0; var _B4=_XF._C4[~~_YF];_ni[_ni.length]='';}_ni[_ni.length]='';_ni[_ni.length]=''; _ni[_ni.length]='';_ni[_ni.length]='';_ni[_ni.length]='';_ni[_ni.length]='';_ni[_ni.length]='';_ni[_ni.length]=''; _ni[_ni.length]='';_ni[_ni.length]='';_ni[_ni.length]='';_ni[_ni.length]='';_ni[_ni.length]='';_ni[_ni.length]=''; _ni[_ni.length]='';for(var _0G=0;_0G<12;_0G++){_ni[_ni.length]='';}_ni[_ni.length]='
Object'+_1u._VF._WF+'
x'+_1u.x.toFixed(_QF)+'
y'+_1u.y.toFixed(_QF)+'
depth'+_1u.depth.toFixed(_QF)+'
visible'+_1u.visible+'
persistent'+_1u.persistent+'
vspeed'+_1u.vspeed.toFixed(_QF)+'
direction'+_1u.direction.toFixed(_QF)+'
speed'+_1u.speed.toFixed(_QF)+'
friction'+_1u.friction.toFixed(_QF)+'
gravity'+_1u.gravity.toFixed(_QF)+'
gravity_direction'+_1u.gravity_direction.toFixed(_QF)+'
sprite_index
sprite_index'+_XF.pName+'
'+'
'+'
image_index'+_1u.image_index.toFixed(_QF)+'
image_speed '+_1u.image_speed.toFixed(_QF)+'
image_blend'+~~_1u.image_blend+'
image_alpha'+_1u.image_alpha.toFixed(_QF)+'
image_xscale'+_1u.image_xscale.toFixed(_QF)+'
image_yscale'+_1u.image_yscale.toFixed(_QF)+'
mask_index'+_1u.mask_index.toFixed(_QF)+'
path_index'+_1u.path_index.toFixed(_QF)+'
path_position'+_1u.path_position.toFixed(_QF)+'
path_speed'+_1u.path_speed.toFixed(_QF)+'
path_scale'+_1u.path_scale.toFixed(_QF)+'
path_orientation'+_1u.path_orientation.toFixed(_QF)+'
path_endaction'+_1u.path_endaction.toFixed(_QF)+'
path_xstart'+_1u._ZF.toFixed(_QF)+'
path_ystart'+_1u.__F.toFixed(_QF)+'
alarm['+_0G+']'+~~_1u.alarm[_0G]+'
';_TF.innerHTML=_ni.join("");}function UpdateDebugWindow(){_KF();_SF();}/*@constructor */function _1G(){this._2G="";this._3G=0;this._4G=false;this._5G=false;this._6G="";}_1G.prototype._7G=function(){var _Tl;var i=this._3G;var _ni=this._2G;while(i<_ni.length){var c=_ni.charCodeAt(i);if(c==0x0d||c==0x0a){ i++;}else {break;}}this._3G=i;};_1G.prototype._8G=function(){var _Tl;var i=this._3G;var _ni=this._2G;while(i<_ni.length){var c=_ni.charCodeAt(i);if(c==0x0d||c==0x0a){i++;c=_ni.charCodeAt(i);if(c==0x0d||c==0x0a){i++;}break;}else {i++;}}this._3G=i;};_1G.prototype._9G=function(){var _Tl;var i=this._3G;var _ni=this._2G;while(i<_ni.length){var c=_ni.charCodeAt(i);if(c==0x0d||c==0x0a||c==0x09||c==0x20){i++;}else {break;}}this._3G=i;};function file_text_open_from_string(_aG){var _Ef=new _1G();_Ef._2G=yyGetString(_aG); _Ef._3G=0;_Ef._6G=null;return _bG._Gf(_Ef);}function file_text_open_read(_Zq){_Zq=yyGetString(_Zq);var _cG=_vl(_Zq,true);if(_cG==null)_cG=_vl(_Zq,false);if(_cG==null)return -1;var _Ef=new _1G();_Ef._2G=_cG;_Ef._3G=0;_Ef._6G=_Zq;return _bG._Gf(_Ef);}function file_text_close(_dG){_dG=yyGetInt32(_dG);var _Ef=_bG._E5(_dG);if(!_Ef){_H4("Error: Illegal file handle");return;}if(_Ef._6G!=null){if(_Ef._5G){_rl(_Ef._6G,_Ef._2G);}}_bG._rj(_dG);}function file_text_open_write(_Zq){var _Ef=new _1G();_Ef._6G=yyGetString(_Zq); _Ef._2G="";_Ef._3G=0;_Ef._eG=true;_Ef._5G=true;return _bG._Gf(_Ef);}function file_text_open_append(_Zq){_Zq=yyGetString(_Zq);var _ED=file_text_open_read(_Zq);if(_ED<0){return file_text_open_write(_Zq);}var _Ef=_bG._E5(_ED);_Ef._eG=true;_Ef._3G=_Ef._2G.length;_Ef._5G=false;return _ED;}function file_text_write_string(_dG,_9o){var _Ef=_bG._E5(yyGetInt32(_dG));if(!_Ef){_H4("Error: Illegal file handle");return;}if(!_Ef._eG){_H4("Error: File "+_Ef._6G+" has not been opened with WRITE permisions");return;}_Ef._2G+=yyGetString(_9o); _Ef._5G=true;_Ef._3G=_Ef._2G.length;}function file_text_write_real(_dG,_q5){var _Ef=_bG._E5(yyGetInt32(_dG));if(!_Ef){_H4("Error: Illegal file handle");return;}if(!_Ef._eG){_H4("Error: File "+_Ef._6G+" has not been opened with WRITE permisions");return;}_Ef._2G+=yyGetReal(_q5);_Ef._5G=true;_Ef._3G=_Ef._2G.length;}function file_text_writeln(_dG){var _Ef=_bG._E5(yyGetInt32(_dG));if(!_Ef){_H4("Error: Illegal file handle");return;}if(!_Ef._eG){_H4("Error: File "+_Ef._6G+" has not been opened with WRITE permisions"); return;}_Ef._2G+=String.fromCharCode(0x0d);_Ef._2G+=String.fromCharCode(0x0a);_Ef._3G=_Ef._2G.length;}function file_text_read_string(_dG){var _Ef=_bG._E5(yyGetInt32(_dG));if(!_Ef){_H4("Error: Illegal file handle");return;}var _Tl="";var i=_Ef._3G;var _ni=_Ef._2G;while(i<_ni.length){var c=_ni.charCodeAt(i);if(c==0x0d||c==0x0a){break;}else {_Tl+=_ni[i++];}}_Ef._3G=i;return _Tl;}function file_text_read_real(_dG){var _Ef=_bG._E5(yyGetInt32(_dG));if(!_Ef){_H4("Error: Illegal file handle");return;}_Ef._9G();var _Tl=""; var i=_Ef._3G;var _ni=_Ef._2G;while(i<_ni.length){var c=_ni[i];if((c=='-')&&(_Tl=="")){_Tl+=_ni[i++];}else if((c>='0'&&c<='9')||(c=='.')){_Tl+=_ni[i++];}else {break;}}_Ef._3G=i;return parseFloat(_Tl);}function file_text_readln(_dG){var _Ef=_bG._E5(yyGetInt32(_dG));if(!_Ef){_H4("Error: Illegal file handle");return;}var _Tl="";var i=_Ef._3G;var _ni=_Ef._2G;while(i<_ni.length){var c=_ni.charCodeAt(i);if(c==0x0d||c==0x0a){_Tl+=_ni[i++];if(i<_ni.length){c=_ni.charCodeAt(i);if(c==0x0d||c==0x0a){_Tl+=_ni[i++];}}break; }else {_Tl+=_ni[i++];}}_Ef._3G=i;return _Tl;}function file_text_eof(_dG){var _Ef=_bG._E5(yyGetInt32(_dG));if(!_Ef){_H4("Error: Illegal file handle");return;}if(_Ef._3G>=_Ef._2G.length)return true;return false;}function file_text_eoln(_dG){var _Ef=_bG._E5(yyGetInt32(_dG));if(!_Ef){_H4("Error: Illegal file handle");return;}if(_Ef._3G>=_Ef._2G.length)return true;var c=_Ef._2G.charCodeAt(_Ef._3G);if(c==0x0a||c==0x0d)return true;return false;}function file_exists(_Zq){_Zq=yyGetString(_Zq);var _Vr=_fG(_Zq,true);if(_Vr==true)return true; return _fG(_Zq,false);}function file_delete(_Zq){if(_gG){try{window.localStorage['removeItem'](_hG(yyGetString(_Zq)));return true;}catch(_bk){return false;}}return false;}function file_rename(_iG,_jG){_iG=yyGetString(_iG);file_copy(_iG,yyGetString(_jG));file_delete(_iG);}function file_copy(_Zq,_jG){_Zq=yyGetString(_Zq);_jG=yyGetString(_jG);if(true===file_exists(_jG))file_delete(_jG);if(false===file_exists(_Zq))return false;var _kG=file_text_open_read(_Zq);var _lG=file_text_open_write(_jG);while(false===file_text_eof(_kG)){ var _CE=file_text_readln(_kG);file_text_write_string(_lG,_CE);}file_text_close(_kG);file_text_close(_lG);}function directory_exists(_mG){_Ib("directory_exists()");return true;}function directory_create(_mG){_Ib("directory_create()");return true;}function directory_destroy(_mG){_Ib("directory_destroy()");return true;}function file_find_first(_nG,_oG){_Ib("file_find_first()");return "";}function file_find_next(){_Ib("file_find_next()");return "";}function file_find_close(){_Ib("file_find_close()");}function file_attributes(_Zq, _oG){_Ib("file_attributes()");return true;}function filename_name(_Zq){_Zq=yyGetString(_Zq);var _h4=_Zq.lastIndexOf('\\');var _g4=_Zq.lastIndexOf('/');var last=(_h4>_g4)?_h4:_g4;var _q4=_Zq;if(last>0){_q4=_Zq.substr(last+1);}return _q4;}function filename_path(_Zq){_Zq=yyGetString(_Zq);var _h4=_Zq.lastIndexOf('\\');var _g4=_Zq.lastIndexOf('/');var last=(_h4>_g4)?_h4:_g4;var _q4=_Zq;if(last>0){_q4=_Zq.substr(0,last+1);}return _q4;}function filename_dir(_Zq){_Zq=yyGetString(_Zq);var _h4=_Zq.lastIndexOf('\\');var _g4=_Zq.lastIndexOf('/'); var last=(_h4>_g4)?_h4:_g4;var _q4=_Zq;if(last>0){_q4=_Zq.substr(0,last);}return _q4;}function filename_drive(_Zq){_LE("filename_drive()");}function filename_change_ext(_Zq,_pG){_Zq=yyGetString(_Zq);var last=_Zq.lastIndexOf('.');var _q4=_Zq;if(last>0){_q4=_Zq.substr(0,last);_q4=_q4+yyGetString(_pG);}return _q4;}function file_bin_open(_Zq,_qG){_Ib("file_bin_open()");}function file_bin_rewrite(_dG){_Ib("file_bin_rewrite()");}function file_bin_close(_dG){_Ib("file_bin_close()");}function file_bin_size(_dG){_Ib("file_bin_size()"); }function file_bin_position(_dG){_Ib("file_bin_position()");}function file_bin_seek(_dG,_Qk){_Ib("file_bin_seek()");}function file_bin_write_byte(_dG,_rG){_Ib("file_bin_write_byte()");}function file_bin_read_byte(_dG){_Ib("file_bin_read_byte()");}function environment_get_variable(_N3){return "";}function filename_ext(_nl){_nl=yyGetString(_nl);var _sG=_nl.lastIndexOf(".");var _tG=_nl.lastIndexOf("\\");if(_tG>_sG)return "";return _nl.substr(_sG,_nl.length);}const _uG=new RegExp("@i64@([0-9a-f]+?)\\$i64\\$","i"); function _vG(value){switch(typeof(value)){case "object":if(value==null)return g_pBuiltIn.pointer_null;if(value instanceof Array)return new _Lk(_Ok,_wG(value));return new _Lk(_Mk,_xG(value));case "boolean":return value?1:0;case "number":return value;case "string":if(value=="@@infinity$$")return Infinity;if(value=="@@-infinity$$")return -Infinity;if(value=="@@nan$$")return NaN;var match=value.match(_uG);if(match){return parseInt(match[1],16);}return value;default :return value.toString();}}function _wG(_Ak){var _q4=ds_list_create(); for(var i=0;i<_Ak.length;++i){var _Y4=_vG(_Ak[i]);ds_list_add(_q4,_Y4);}return _q4;}function _xG(_Ak){var _q4=ds_map_create();for(var _NF in _Ak){var _h4=_Ak[_NF];var _Y4=_vG(_h4);ds_map_add(_q4,_NF,_Y4);}return _q4;}function json_decode(_yG){var _Tl=yyGetString(_yG);var _zG=false;try{for(var _AG=0;_AG<_Tl.length;_AG++){if(_Tl.charAt(_AG)=="\""){if(!_zG){_zG=true;}else if(_AG==0||_Tl.charAt(_AG-1)!="\\"){_zG=false;}}if(!_zG&&_Tl.charAt(_AG)=="#"){_Tl=_Tl.substring(0,_AG)+_Tl.substring(_AG+1,_Tl.length);_AG--;}} }catch(Error){}var _BG={};try{_BG=JSON.parse(_Tl);if(_BG instanceof Array){_Tl="{ \"default\" : "+_Tl+"}";_BG=JSON.parse(_Tl);}}catch(err){_Tl="{ \"default\" : \""+_Tl.toString()+"\"}";try{_BG=JSON.parse(_Tl);}catch(err){}}return _xG(_BG);}var _CG=new Map();function _DG(value){if(value==undefined)return null;switch(typeof(value)){case "object":if(value===null)return null;if(value instanceof Long){return "@i64@"+value.toString(16)+"$i64$";}if(value==g_pBuiltIn.pointer_null)return null;if(value instanceof Array){ return _EG(value);}switch(value._Yk){case _Ok:return _FG(value.Object);case _Mk:return _GG(value.Object);default :return value.toString();}case "number":if(isNaN(value))return "@@nan$$";if(!isFinite(value))return value>0?"@@infinity$$":"@@-infinity$$";return value;case "string":case "boolean":return value;default :return value.toString();}}function _FG(_Q7){var _q4=[];var _Fk=_Ek._E5(_Q7);let _q8=_CG.get(_Fk)|0;if(_q8>1)return null;_CG.set(_Fk,_q8+1);if(_Fk){for(var i=0;i<_Fk._Vk.length;++i){if(_Fk._Vk[i]!=undefined)_q4.push(_DG(_Fk._Vk[i])); }}return _q4;}function _GG(_97){var _q4={};var _b7=_c7._E5(_97);let _q8=_CG.get(_b7)|0;if(_q8>1)return null;_CG.set(_b7,_q8+1);if(_b7){for(const [key,_ue] of _b7){var _Y4=key;if(_b7._dl&&_b7._dl.has(key))_Y4=_b7._dl.get(key);_q4[_Y4.toString()]=_DG(_ue);}}return _q4;}function _EG(_hl){let _q8=_CG.get(_hl)|0;if(_q8>1)return null;_CG.set(_hl,_q8+1);var _q4="[";for(var i=0;i<_hl.length;++i){if(i>0)_q4+=", ";_q4+=_DG(_hl[i]);}_q4+="]";return _q4;}function json_encode(_97,_HG){_HG=_HG==undefined?false:yyGetReal(_HG);_CG=new Map(); var _Pg=_GG(yyGetInt32(_97));return JSON.stringify(_Pg,null,_HG?2:0);}function _IG(value){if(value==undefined)return null;switch(typeof value){case "string":return value;case "number":if(isNaN(value))return "@@nan$$";if(!isFinite(value))return value>0?"@@infinity$$":"@@-infinity$$";return value;case "boolean":return value;case "object":if(value==null)return null;if(value instanceof Long){return "@i64@"+value.toString(16)+"$i64$";}if(value==g_pBuiltIn.pointer_null)return null;if(value instanceof Array){if(_CG.has(value))return null; _CG.set(value,1);var _q4=[];value.forEach(_jl=>{_q4.push(_IG(_jl));});_CG.delete(value);return _q4;}if(value.__yyIsGMLObject){if(_CG.has(value))return null;_CG.set(value,1);var _q4={};for(var _JG in value){if(!value.hasOwnProperty(_JG))continue;var nName=_JG;if(typeof _KG!="undefined"&&_KG.hasOwnProperty(_JG)){nName="gml"+_KG[_JG];}if(nName.startsWith("gml")||g_instance_names[nName]!=undefined){var name=nName.startsWith("gml")?nName.substring(3):nName;var _gl=g_instance_names[nName];if((_gl==undefined)||(_gl[0]|_gl[1])){ Object.defineProperty(_q4,name,{value:_IG(value[_JG]),_LG:true,_MG:true,enumerable:true});}}}_CG.delete(value);return _q4;}default :return undefined;}}function json_stringify(_Sc,_HG){try{_HG=_HG==undefined?false:yyGetReal(_HG);var _NG=_IG(_Sc);return JSON.stringify(_NG,null,_HG?2:0);}catch(e){console.log(e);_H4("JSON stringify error");}}function _OG(_PG,value){switch(typeof value){case "string":if(value=="@@nan$$")return NaN;if(value=="@@infinity$$")return Infinity;if(value=="@@-infinity$$")return -Infinity; var match=value.match(_uG);if(match){return parseInt(match[1],16);}return value;case "number":return value;case "boolean":return value;case "object":if(value==null)return g_pBuiltIn.pointer_null;if(value instanceof Array){return value;}var _Pg={};_Pg.__type="Object";_Pg.__yyIsGMLObject=true;for(var _JG in value){if(!value.hasOwnProperty(_JG))continue;var nName;if(g_instance_names[_JG]!=undefined){nName=_JG;}else if(typeof g_var2obf!=="undefined"&&g_var2obf[_JG]!=undefined){nName=g_var2obf[_JG];}else {nName="gml"+_JG; }Object.defineProperty(_Pg,nName,{value:value[_JG],configurable:true,writable:true,enumerable:true});}return _Pg;default :return value;}}function json_parse(_Sc){var _q4=undefined;try{return JSON.parse(_Sc,_OG);}catch(e){_H4("JSON parse error");}return _q4;}function _QG(_RG){var _t6=_RG.length,i=0;var _fA=[];var _SG=[];var start=0;var _jl="";var _TG=0;while(i<_t6){var _gh=i;var c=_RG.charCodeAt(i++);switch(c){case 13:case 10:if(c==13&&_RG.charCodeAt(i)==10)i+=1;if(_gh>_TG){if(_gh>start)_jl+=_RG.substring(start,_gh); _SG.push(_jl);_jl="";}_fA.push(_SG);_SG=[];_TG=i;start=i;break;case 44:if(_gh>start)_jl+=_RG.substring(start,_gh);_SG.push(_jl);_jl="";if(_RG.charCodeAt(i)==34){i+=1;start=i;while(i<_t6){c=_RG.charCodeAt(i++);if(c!=34)continue;switch(_RG.charCodeAt(i)){case 34:if(i>start)_jl+=_RG.substring(start,i);i+=1;start=i;continue;case 13:case 10:case 44:break;default :continue;}break;}}else start=i;break;}}if(i>_TG){if(i>start)_jl+=_RG.substring(start,i);_SG.push(_jl);_fA.push(_SG);}return _fA;}function load_csv(_Zq){ _Zq=yyGetString(_Zq);var _cG=_vl(_Zq,true);if(_cG==null)_cG=_vl(_Zq,false);if(_cG==null)return -1;var _UG=_QG(_cG);var height=_UG.length;if(height==0)return -1;var width=_UG[0].length;if(width==0)return -1;var _jg=ds_grid_create(width,height);var _pj=_qj._E5(_jg)._mj;for(var y=0;y1.0)_u9=1.0;else if(_u9<0)_u9=0.0; var _h4=((yyGetReal(_u9)*255)<<24)&0xff000000;_Ss=_Qc(yyGetInt32(_Ss)&0xffffff)|_h4;_Ts=_Qc(yyGetInt32(_Ts)&0xffffff)|_h4;_Us=_Qc(yyGetInt32(_Us)&0xffffff)|_h4;_Vs=_Qc(yyGetInt32(_Vs)&0xffffff)|_h4;_QE.__G(yyGetString(_bo),yyGetReal(_q5),yyGetReal(_r5),-1,-1,0,1,1,_Ss,_Ts,_Us,_Vs);_Nc=_0H;draw_set_color(_1H);}var draw_text_ext_colour=draw_text_ext_color;function draw_text_ext_color(_q5,_r5,_bo,_3H,_kj,_Ss,_Ts,_Us,_Vs,_u9){if(!_e8)_ME("draw_text_ext_color() only uses the 1st colour");var _0H=_Nc;var _1H=_2H; if(_u9>1.0)_u9=1.0;else if(_u9<0)_u9=0.0;var _h4=(yyGetReal(_u9)*255)<<24;_Ss=_Qc(yyGetInt32(_Ss)&0xffffff)|_h4;_Ts=_Qc(yyGetInt32(_Ts)&0xffffff)|_h4;_Us=_Qc(yyGetInt32(_Us)&0xffffff)|_h4;_Vs=_Qc(yyGetInt32(_Vs)&0xffffff)|_h4;_QE.__G(yyGetString(_bo),yyGetReal(_q5),yyGetReal(_r5),yyGetInt32(_3H),yyGetInt32(_kj),0,1,1,_Ss,_Ts,_Us,_Vs);_Nc=_0H;draw_set_color(_1H);}function draw_text_ext(_q5,_r5,_bo,_3H,_kj){var c=(_Oc&0xffffff)|(((_Nc*255.0)<<24)&0xff000000);_QE.__G(yyGetString(_bo),yyGetReal(_q5),yyGetReal(_r5), yyGetInt32(_3H),yyGetInt32(_kj),0,1,1,c,c,c,c);}function draw_text_transformed(_q5,_r5,_bo,_co,_do,_u5){var c=(_Oc&0xffffff)|(((_Nc*255.0)<<24)&0xff000000);_QE.__G(yyGetString(_bo),yyGetReal(_q5),yyGetReal(_r5),-1,-1,yyGetReal(_u5),yyGetReal(_co),yyGetReal(_do),c,c,c,c);}function draw_text_ext_transformed(_q5,_r5,_bo,_3H,_kj,_co,_do,_u5){var c=(_Oc&0xffffff)|(((_Nc*255.0)<<24)&0xff000000);_QE.__G(yyGetString(_bo),yyGetReal(_q5),yyGetReal(_r5),yyGetInt32(_3H),yyGetInt32(_kj),yyGetReal(_u5),yyGetReal(_co), yyGetReal(_do),c,c,c,c);}var draw_text_ext_transformed_colour=draw_text_ext_transformed_color;function draw_text_ext_transformed_color(_q5,_r5,_bo,_3H,_kj,_co,_do,_u5,_Ss,_Ts,_Us,_Vs,_u9){if(!_e8)_ME("draw_text_ext_transformed_color() only uses the 1st colour");var _0H=_Nc;var _1H=_2H;var _h4=((yyGetReal(_u9)*255)<<24)&0xff000000;_Ss=_Qc(yyGetInt32(_Ss))|_h4;_Ts=_Qc(yyGetInt32(_Ts))|_h4;_Us=_Qc(yyGetInt32(_Us))|_h4;_Vs=_Qc(yyGetInt32(_Vs))|_h4;_QE.__G(yyGetString(_bo),yyGetReal(_q5),yyGetReal(_r5),yyGetInt32(_3H), yyGetInt32(_kj),yyGetReal(_u5),yyGetReal(_co),yyGetReal(_do),_Ss,_Ts,_Us,_Vs);_Nc=_0H;draw_set_color(_1H);}var draw_text_transformed_colour=draw_text_transformed_color;function draw_text_transformed_color(_q5,_r5,_bo,_co,_do,_u5,_Ss,_Ts,_Us,_Vs,_u9){if(!_e8)_ME("draw_text_transformed_color() only uses the 1st colour");var _0H=_Nc;var _1H=_2H;var _h4=((yyGetReal(_u9)*255)<<24)&0xff000000;_Ss=_Qc(yyGetInt32(_Ss))|_h4;_Ts=_Qc(yyGetInt32(_Ts))|_h4;_Us=_Qc(yyGetInt32(_Us))|_h4;_Vs=_Qc(yyGetInt32(_Vs))|_h4; _QE.__G(yyGetString(_bo),yyGetReal(_q5),yyGetReal(_r5),-1,-1,yyGetReal(_u5),yyGetReal(_co),yyGetReal(_do),_Ss,_Ts,_Us,_Vs);_Nc=_0H;draw_set_color(_1H);}function string_height(_bo){_bo=yyGetString(_bo);_QE._4H();if(!_QE._5H)return 1;var _6H=_QE._RE(_bo,-1,_QE._5H);if(_6H==null)return _QE._5H._7H(_bo);return _QE._5H._7H(_bo)*_6H.length;}function string_width(_bo){_QE._4H();return _QE._5H?_QE._5H._8H(yyGetString(_bo)):1;}function string_width_ext(_yG,_3H,_kj){_QE._4H();if(!_QE._5H)return 1;_QE._9H(yyGetString(_yG), 0,0,yyGetInt32(_3H),yyGetInt32(_kj),0);return _aH;}function string_height_ext(_yG,_3H,_kj){_QE._4H();if(!_QE._5H)return 1;_QE._9H(yyGetString(_yG),0,0,yyGetInt32(_3H),yyGetInt32(_kj),0);return _bH;}function font_exists(_jg){if(_QE._E5(yyGetInt32(_jg)))return true;else return false;}function font_get_bold(_jg){var _cH=_QE._E5(yyGetInt32(_jg));if(!_cH)return false;return _cH.bold;}function font_get_fontname(_jg){var _cH=_QE._E5(yyGetInt32(_jg));if(!_cH)return "";return _cH._dH;}function font_get_name(_jg){var _cH=_QE._E5(yyGetInt32(_jg)); if(!_cH)return "";return _cH.pName;}var _eH=font_get_name;function font_get_italic(_jg){var _cH=_QE._E5(yyGetInt32(_jg));if(!_cH)return false;return _cH.italic;}function font_get_first(_jg){var _cH=_QE._E5(yyGetInt32(_jg));if(!_cH)return 0;return _cH.first;}function font_get_last(_jg){var _cH=_QE._E5(yyGetInt32(_jg));if(!_cH)return 255;return _cH.last;}function font_get_size(_jg){var _cH=_QE._E5(yyGetInt32(_jg));if(!_cH)return 0;return _cH.size;}function _fH(_N3,_ad,_gH,_hH,_iH,_jH,_kH){var _cH=new _lH();_cH._mH=0.5; _cH._nH=true;_cH.pName="fnt_"+_N3;_cH._dH=_N3;_cH.size=_ad;_cH.bold=_gH;_cH.italic=_hH;_cH.first=_iH;_cH.last=_jH;_cH._Nh=false;if(_N3.toLowerCase().lastIndexOf(".ttf")!=-1){_cH._oH=new Font();_cH._oH.onload=function(){_cH._Nh=true;};_cH._oH.onerror=function(err){alert(err);};_cH._oH.src=_pH(null,null,_I8+_N3);_cH._qH=_ad+"px "+_cH._oH._Ch+" ";}else {_cH._qH=_ad+"px "+_N3+" ";_cH._Nh=true;}if(_gH)_cH._qH=_cH._qH+"bold ";if(_hH)_cH._qH=_cH._qH+"Italic ";if(_kH){return _QE._rH(_cH);}else {return _cH;}} function font_delete(id){id=yyGetInt32(id);if(_QE.Fonts[id]!=undefined){_QE.Fonts[id]._oH=undefined;_QE.Fonts[id]=undefined;}}function font_enable_sdf(id,enable){console.log("font_enable_sdf() - SDF font rendering can't be dynamically toggled for fonts on HTML5");}function font_get_sdf_enabled(id){if(_e8){id=yyGetInt32(id);if(_QE.Fonts[id]!=undefined){var font=_QE.Fonts[id];return font._sH;}}return false;}function font_sdf_spread(id,enable){console.log("font_enable_sdf() - SDF spread value is fixed for fonts on HTML5"); }function font_get_sdf_spread(id){if(_e8){id=yyGetInt32(id);if(_QE.Fonts[id]!=undefined){var font=_QE.Fonts[id];if(font._sH){return font.sdfSpread;}}}return 0;}function font_enable_effects(id,enable,_XB){if(_e8){id=yyGetInt32(id);if(_QE.Fonts[id]!=undefined){var font=_QE.Fonts[id];font._tH.enabled=yyGetBool(enable);font._uH(_XB);}}}function font_add(_N3,_ad,_gH,_hH,_iH,_jH){return _fH(yyGetString(_N3),yyGetInt32(_ad),yyGetBool(_gH),yyGetBool(_hH),yyGetInt32(_iH),yyGetInt32(_jH),true);}function font_add_sprite(_C5, _iH,_vH,_3H){var _cH=new _lH();_cH._wH(yyGetInt32(_C5),yyGetInt32(_iH),yyGetBool(_vH),yyGetInt32(_3H),null);return _QE._rH(_cH);}function font_add_sprite_ext(_C5,_xH,_vH,_3H){_xH=yyGetString(_xH);var _cH=new _lH();_cH._wH(yyGetInt32(_C5),_xH.charCodeAt(0),yyGetBool(_vH),yyGetInt32(_3H),_xH);return _QE._rH(_cH);}function font_replace_sprite(_jg,_C5,_iH,_vH,_3H){_jg=yyGetInt32(_jg);var _cH=_QE._E5(_jg);_cH._wH(yyGetInt32(_C5),yyGetInt32(_iH),yyGetBool(_vH),yyGetInt32(_3H),null);return _jg;};function font_replace_sprite_ext(_jg, _C5,_xH,_vH,_3H){_jg=yyGetInt32(_jg);_xH=yyGetString(_xH);var _cH=_QE._E5(_jg);_cH._wH(yyGetInt32(_C5),_xH.charCodeAt(0),yyGetBool(_vH),yyGetInt32(_3H),_xH);return _jg;};function font_set_cache_size(_t4,_yH){_t4=yyGetInt32(_t4);_yH=yyGetInt32(_yH);var _cH=_QE._E5(_t4);if(!_cH){_H4("Trying to adjust the cache on a non-existant font ("+string(_t4)+")");return false;}if(_cH._zH){_H4("Trying to adjust the cache on a SPRITE font ("+string(_t4)+")");return false;}var _C4=_cH._5s;if(_C4._r8>_yH){_C4._p8=[];_C4._q8=0; }_C4._r8=_yH;}function font_get_texture(_t4){_t4=yyGetInt32(_t4);var _cH=_QE._E5(_t4);if(!_cH){_H4("Trying to adjust the cache on a non-existant font ("+string(_t4)+")");return false;}if(_cH._zH){_H4("Trying to adjust the cache on a SPRITE font ("+string(_t4)+")");return false;}var _B4=_cH._5s;if(_B4){return({_Hc:_B4.texture,_Ic:_B4,toString:()=>{return "Texture:"+_B4.texture.URL;}});}return null;}function font_get_uvs(_t4){_t4=yyGetInt32(_t4);var _cH=_QE._E5(_t4);if(!_cH){_H4("Trying to adjust the uvs on a non-existent font ("+string(_t4)+")"); return null;}var _B4=_cH._5s;var texture=_B4.texture;var _9t=1.0/texture.width;var _at=1.0/texture.height;var _bt=[];_bt.push(_B4.x*_9t,_B4.y*_at,(_B4.x+_B4.CropWidth)*_9t,(_B4.y+_B4.CropHeight)*_at);return _bt;}function font_get_info(_t4){_t4=yyGetInt32(_t4);var _cH=_QE._E5(_t4);if(!_cH){return undefined;}var _B4=_cH._5s;var _3j=_B4!=null?_B4.x:0;var _AH=_B4!=null?_B4.y:0;_q4=new _BH();variable_struct_set(_q4,"ascenderOffset",_cH.ascenderOffset);variable_struct_set(_q4,"ascender",_cH.ascender);variable_struct_set(_q4, "sdfSpread",_cH.sdfSpread);variable_struct_set(_q4,"sdfEnabled",_cH._sH);variable_struct_set(_q4,"freetype",false);variable_struct_set(_q4,"size",_cH.size);variable_struct_set(_q4,"spriteIndex",_cH.spriteIndex);variable_struct_set(_q4,"texture",_B4!=null?_B4.tp:-1);variable_struct_set(_q4,"name",_cH.pName);variable_struct_set(_q4,"bold",_cH.bold);variable_struct_set(_q4,"italic",_cH.italic);variable_struct_set(_q4,"effectsEnabled",_cH._tH.enabled);variable_struct_set(_q4,"effectParams",_cH._CH()); variable_struct_set(_q4,"glyphs",new _BH());var glyphs=variable_struct_get(_q4,"glyphs");if(_cH.spriteIndex!=-1){for(var _f4 in _cH._DH){if(_cH._DH.hasOwnProperty(_f4)){var _EH=new _BH();var _FH=_cH._DH[_f4];var _GH=parseInt(_f4);var char=String.fromCharCode(_GH);variable_struct_set(_EH,"char",_FH);variable_struct_set(glyphs,char,_EH);}}}else {for(var _f4 in _cH.glyphs){if(_cH.glyphs.hasOwnProperty(_f4)){var _EH=new _BH();var _FH=_cH.glyphs[_f4];var _GH=parseInt(_f4);var char=String.fromCharCode(_GH);variable_struct_set(_EH, "char",_GH);variable_struct_set(_EH,"x",_FH.x);variable_struct_set(_EH,"y",_FH.y);variable_struct_set(_EH,"w",_FH.w);variable_struct_set(_EH,"h",_FH.h);variable_struct_set(_EH,"shift",_FH.shift);variable_struct_set(_EH,"offset",_FH.offset);if(_FH._HH!=undefined){var _HH=[];for(var _ml=0;_ml<_FH._HH.length;++_ml){_HH.push(_FH._HH[_ml]);}variable_struct_set(_EH,"kerning",_HH);}variable_struct_set(glyphs,char,_EH);}}}return _q4;}function font_add_enable_aa(){}function font_add_get_enable_aa(){return false; }var _IH=1;function _JH(_96){_Xq(_96*1000);}function scheduler_resolution_set(_B3){}function scheduler_resolution_get(){return -1;}function display_set_timing_method(_KH){_IH=yyGetInt32(_KH);}function display_get_timing_method(){return _IH;}/*@constructor */function _LH(_Vn,_N3){this.name=_N3;this.value=_Vn;}function _MH(){var _NH=_vl("hiscores_data_",true);if(_NH!=null){try{var _OH=JSON.parse(_NH);var i;for(i=0;i<_PH;i++){_QH[i]=_OH[i].name;_RH[i]=_OH[i].value;}}catch(_bk){_H4("Error: reading hiscore JSON"); }}}function _yr(){var _OH={};var i;for(i=0;i<_PH;i++){_OH[i]=new _LH(_RH[i],_QH[i]);}var _NH=JSON.stringify(_OH);_rl("hiscores_data_",_NH);}function draw_highscore(_W6,_X6,_o6,_p6){_W6=yyGetInt32(_W6);_X6=yyGetInt32(_X6);_o6=yyGetInt32(_o6);_p6=yyGetInt32(_p6);var _XG=_QE._XG;var _eb=(_p6-_X6)/_PH;for(var i=0;i<_PH;i++){_QE._XG=0;draw_text(_W6,_X6,_QH[i]);_QE._XG=2;draw_text(_o6,_X6,_RH[i].toString());_X6+=_eb;}_QE._XG=_XG;}function highscore_clear(){_RH[0]=_RH[1]=_RH[2]=_RH[3]=_RH[4]=_RH[5]=_RH[6]=_RH[7]=_RH[8]=_RH[9]=0; _QH[0]=_QH[1]=_QH[2]=_QH[3]=_QH[4]=_QH[5]=_QH[6]=_QH[7]=_QH[8]=_QH[9]=_SH;}function highscore_add(_9o,_TH){_TH=yyGetInt32(_TH);var _UH=yyGetString(_9o);if(!_UH){_UH="";}for(var i=0;i<_PH;i++){if(_TH>_RH[i]){_RH.splice(i,0,_TH);_QH.splice(i,0,_UH);_RH.splice(10,1);_QH.splice(10,1);_yr();return;}}}function highscore_value(_VH){_VH=yyGetInt32(_VH);if(_VH<1||_VH>_PH)return -1;return _RH[_VH-1];}function highscore_name(_VH){_VH=yyGetInt32(_VH);if(_VH<1||_VH>_PH)return "";return _QH[_VH-1];}function _WH(_6q,_no, _Vn){var _XH,_YH,_ZH,__H,_Uh,_Vh;_XH=(_6q>>16)&0xff;_ZH=(_6q>>8)&0xff;_Uh=(_6q&0xff);_YH=(_no>>16)&0xff;__H=(_no>>8)&0xff;_Vh=(_no&0xff);var _fq=1.0-_Vn;var _e4=_Xk(_XH*_fq+_YH*_Vn);var _f4=_Xk(_ZH*_fq+__H*_Vn);var _g4=_Xk(_Uh*_fq+_Vh*_Vn);var _m4=((_e4&0xff)<<16)|((_f4&0xff)<<8)|(_g4&0xff);return _m4;}function _0I(_6q,_no,_Vn){return _WH(_6q,_no,_Vn);}function _1I(_6q,_no){return make_color_rgb((color_get_red(_6q)*color_get_red(_no))/255,(color_get_green(_6q)*color_get_green(_no))/255,(color_get_blue(_6q)*color_get_blue(_no))/255); }function event_perform(_Ht,_2I,_e3,_3I){_e3=yyGetInt32(_e3);_3I=yyGetInt32(_3I);if(YYInstanceof(_Ht)!="instance"){_H4("Attempt to dispatch event on non-instance object");}var _4I=_5I;_5I=true;var event=_6I(_e3,_3I);var index=_7I(_e3,_3I);_Ht._N5(event,index,_Ht,_2I);_5I=_4I;}function event_perform_async(_Ht,_2I,_e3,_8I){var _9I=g_pBuiltIn.async_load_e3=yyGetInt32(_e3);_8I=yyGetInt32(_8I);g_pBuiltIn.async_load=_8I;_i3._j3(_aI,_e3);ds_map_destroy(_8I);g_pBuiltIn.async_load=_9I;}function _bI(_Ht,_Cq,_cI, _dI){var _eI=_fI._E5(_cI);if((_eI!=null)&&(_eI!=undefined)){var _gI=_eI.Events[_dI];if((_gI!=null)&&(_gI!=undefined)){_gI.Event(_Ht,_Ht);}}}function event_perform_object(_Ht,_2I,_Ak,_e3,_3I){_Ak=yyGetInt32(_Ak);_e3=yyGetInt32(_e3);_3I=yyGetInt32(_3I);var event=_6I(_e3,_3I);var index=_7I(_e3,_3I);var _VF=_i3._E5(_Ak);if(!_VF){_H4("Error: undefined object id passed to event_perform_object: "+_Ak);}else {var _hI=_iI;var _jI=_kI;var _lI=_mI;_iI=_VF;_kI=event;_mI=index;var _nI=_VF;while(_nI!=null){if(_nI._N5(event, index,_Ht,_2I)){break;}_nI=_nI._9F;}_iI=_hI;_kI=_jI;_mI=_lI;}}var _oI=true;function event_user(_Ht,_2I,_3I){_3I=yyGetInt32(_3I);if(_3I<0||_3I>15){_H4("Error: illegal user event ID: "+_3I);}_3I+=_pI;event_perform(_Ht,_2I,_qI,_3I);}function event_inherited(_Ht,_2I){_Ht._rI(_sI,_tI,_2I);}function parameter_count(){return _uI;}function parameter_string(_J3){_J3=yyGetInt32(_J3);if(_J3<0||_J3>_uI)return "";var _ni=_vI[_J3];if(_wI[_J3]!=null)_ni=_ni+"="+_wI[_J3];return _ni;}function _xI(){var _yI="en";if(navigator["language"]){ _yI=navigator["language"];}else if(navigator["userLanguage"]){_yI=navigator["userLanguage"];}return _yI;}function os_get_language(){var _yI=_xI();var _zI=_yI.indexOf("-");if(_zI>=0){_yI=_yI.substring(0,_zI);}return _yI;}function os_get_region(){var _V4="";var _yI=_xI();var _zI=_yI.indexOf("-");if(_zI>=0){_V4=_yI.substring(_zI+1,_yI.length);}return _V4;}function os_check_permission(){}function os_request_permission(){}function device_mouse_dbclick_enable(_Nz){}function base64_encode(data){var _rh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; var _sh,_th,_uh,_4h,_vh,_wh,_xh,_yh;var i=0;var _zh=0;var _Ah="";var _Bh=[];if(!data){return data;}data=yyGetString(data);if(typeof data!=="string")return undefined;data=_AI(data);do {_sh=data.charCodeAt(i++);_th=data.charCodeAt(i++);_uh=data.charCodeAt(i++);_yh=_sh<<16|_th<<8|_uh;_4h=_yh>>18&0x3f;_vh=_yh>>12&0x3f;_wh=_yh>>6&0x3f;_xh=_yh&0x3f;_Bh[_zh++]=_rh.charAt(_4h)+_rh.charAt(_vh)+_rh.charAt(_wh)+_rh.charAt(_xh);}while(i>16&0xff; _th=_yh>>8&0xff;_uh=_yh&0xff;if(_wh==64){_Bh[_zh++]=String.fromCharCode(_sh);}else if(_xh==64){_Bh[_zh++]=String.fromCharCode(_sh,_th);}else {_Bh[_zh++]=String.fromCharCode(_sh,_th,_uh);}}while(i>16&0xff;_th=_yh>>8&0xff;_uh=_yh&0xff;if(_wh==64){_Bh[_zh++]=String.fromCharCode(_sh);}else if(_xh==64){_Bh[_zh++]=String.fromCharCode(_sh,_th);}else {_Bh[_zh++]=String.fromCharCode(_sh,_th,_uh);}}while(i=3){_gaq.push(['_trackEvent','GMEvent',_e3,arguments[1],arguments[2]]);}else {_gaq.push(['_trackEvent','GMEvent',_e3]);}}else if(_rE.Options.FlurryId){if((arguments.length>=3)&&(arguments.length&1)==1){var _XB={};var _HI=arguments.length-1;if(_HI>10){_HI=10;}for(var i=0;i<_HI;i+=2){_XB[arguments[i+1]]=arguments[i+2].toString();}FlurryAgent.logEvent(_e3,_XB);}else {FlurryAgent.logEvent(_e3);}}}catch(_zE){show_debug_message("caught unhandled exception "+_zE.message); }}function sha1_string_unicode(_yG){return _II(_GI(yyGetString(_yG)));}function sha1_string_utf8(_yG){return _II(yyGetString(_yG));}function sha1_file(_Zq){return "unsupported";}var _JI=0;var _KI="";function _FI(_ni){return _LI(_MI(_NI(_ni)));}function _OI(_ni){return _PI(_MI(_NI(_ni)));}function _QI(_ni,e){return _RI(_MI(_NI(_ni)),e);}function _SI(_ml,_Bm){return _LI(_TI(_NI(_ml),_NI(_Bm)));}function _UI(_ml,_Bm){return _PI(_TI(_NI(_ml),_NI(_Bm)));}function _VI(_ml,_Bm,e){return _RI(_TI(_NI(_ml),_NI(_Bm)),e);}function _WI(){ return _FI("abc").toLowerCase()=="900150983cd24fb0d6963f7d28e17f72";}function _MI(_ni){return _XI(_YI(_ZI(_ni),_ni.length*8));}function _TI(key,data){var __I=_ZI(key);if(__I.length>16)__I=_YI(__I,key.length*8);var _0J=Array(16),_1J=Array(16);for(var i=0;i<16;i++){_0J[i]=__I[i]^0x36363636;_1J[i]=__I[i]^0x5C5C5C5C;}var hash=_YI(_0J.concat(_ZI(data)),512+data.length*8);return _XI(_YI(_1J.concat(hash),512+128));}function _LI(input){var _2J=_JI?"0123456789ABCDEF":"0123456789abcdef";var output="";var x;for(var i=0; i>>4)&0x0F)+_2J.charAt(x&0x0F);}return output;}function _PI(input){var _3J="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var output="";var _Yi=input.length;for(var i=0;i<_Yi;i+=3){var _4J=(input.charCodeAt(i)<<16)|(i+1<_Yi?input.charCodeAt(i+1)<<8:0)|(i+2<_Yi?input.charCodeAt(i+2):0);for(var __5=0;__5<4;__5++){if(i*8+__5*6>input.length*8)output+=_KI;else output+=_3J.charAt((_4J>>>6*(3-__5))&0x3F);}}return output;}function _RI(input, _5J){var _6J=_5J.length;var i,__5,q,x,_7J;var _8J=Array(Math.ceil(input.length/2));for(i=0;i<_8J.length;i++){_8J[i]=(input.charCodeAt(i*2)<<8)|input.charCodeAt(i*2+1);}var _9J=Math.ceil(input.length*8/(Math.log(_5J.length)/Math.log(2)));var _aJ=Array(_9J);for(__5=0;__5<_9J;__5++){_7J=Array();x=0;for(i=0;i<_8J.length;i++){x=(x<<16)+_8J[i];q=Math.floor(x/_6J);x-=q*_6J;if(_7J.length>0||q>0)_7J[_7J.length]=q;}_aJ[__5]=x;_8J=_7J;}var output="";for(i=_aJ.length-1;i>=0;i--)output+=_5J.charAt(_aJ[i]);return output; }function _NI(input){var output="";var i=-1;var x,y;while(++i>>6)&0x1F),0x80|(x&0x3F));else if(x<=0xFFFF)output+=String.fromCharCode(0xE0|((x>>>12)&0x0F),0x80|((x>>>6)&0x3F),0x80|(x&0x3F));else if(x<=0x1FFFFF)output+=String.fromCharCode(0xF0|((x>>>18)&0x07), 0x80|((x>>>12)&0x3F),0x80|((x>>>6)&0x3F),0x80|(x&0x3F));}return output;}function _GI(input){var output="";for(var i=0;i>>8)&0xFF);return output;}function _bJ(input){var output="";for(var i=0;i>>8)&0xFF,input.charCodeAt(i)&0xFF);return output;}function _ZI(input){var output=Array(input.length>>2);for(var i=0;i>5]|=(input.charCodeAt(i/8)&0xFF)<<(i%32);return output;}function _XI(input){var output="";for(var i=0;i>5]>>>(i%32))&0xFF);return output;}function _YI(x,_Yi){x[_Yi>>5]|=0x80<<((_Yi)%32);x[(((_Yi+64)>>>9)<<4)+14]=_Yi;var _h4=1732584193;var _g4=-271733879;var c=-1732584194;var _Bm=271733878;for(var i=0;i>16)+(y>>16)+(_nJ>>16);return(_oJ<<16)|(_nJ&0xFFFF);}function _mJ(_3v,_pJ){return(_3v<<_pJ)|(_3v>>>(32-_pJ));}function _II(_ni){return _LI(_qJ(_NI(_ni)));}function _rJ(_ni){return _PI(_qJ(_NI(_ni)));}function _sJ(_ni,e){return _RI(_qJ(_NI(_ni)),e);}function _tJ(_ml,_Bm){return _LI(_uJ(_NI(_ml), _NI(_Bm)));}function _vJ(_ml,_Bm){return _PI(_uJ(_NI(_ml),_NI(_Bm)));}function _wJ(_ml,_Bm,e){return _RI(_uJ(_NI(_ml),_NI(_Bm)),e);}function _xJ(){return _II("abc").toLowerCase()=="a9993e364706816aba3e25717850c26c9cd0d89d";}function _qJ(_ni){return _yJ(_zJ(_AJ(_ni),_ni.length*8));}function _uJ(key,data){var __I=_AJ(key);if(__I.length>16)__I=_zJ(__I,key.length*8);var _0J=Array(16),_1J=Array(16);for(var i=0;i<16;i++){_0J[i]=__I[i]^0x36363636;_1J[i]=__I[i]^0x5C5C5C5C;}var hash=_zJ(_0J.concat(_AJ(data)),512+data.length*8); return _yJ(_zJ(_1J.concat(hash),512+160));}function _AJ(input){var output=Array(input.length>>2);for(var i=0;i>5]|=(input.charCodeAt(i/8)&0xFF)<<(24-i%32);return output;}function _yJ(input){var output="";for(var i=0;i>5]>>>(24-i%32))&0xFF);return output;}function _zJ(x,_Yi){x[_Yi>>5]|=0x80<<(24-_Yi%32);x[((_Yi+64>>9)<<4)+15]=_Yi;var w=Array(80);var _h4=1732584193;var _g4=-271733879; var c=-1732584194;var _Bm=271733878;var e=-1009589776;for(var i=0;i=0){_NJ.type=_OJ;_NJ.id=_q4;return _NJ;}if((_q4=_EJ(_N3,_rE.Sprites))>=0){_NJ.type=_PJ;_NJ.id=_q4;return _NJ;}if((_q4=_EJ(_N3, _rE.GMRooms))>=0){_NJ.type=_QJ;_NJ.id=_q4;return _NJ;}if((_q4=_EJ(_N3,_rE.Sounds))>=0){_NJ.type=_RJ;_NJ.id=_q4;return _NJ;}if((_q4=_EJ(_N3,_rE.Backgrounds))>=0){_NJ.type=_v3?_SJ:_TJ,_NJ.id=_q4;return _NJ;}if((_q4=_EJ(_N3,_rE.Paths))>=0){_NJ.type=_UJ;_NJ.id=_q4;return _NJ;}if((_q4=_EJ(_N3,_rE.Fonts))>=0){_NJ.type=_VJ;_NJ.id=_q4;return _NJ;}if((_q4=_EJ(_N3,_rE.Timelines))>=0){_NJ.type=_WJ;_NJ.id=_q4;return _NJ;}if((_q4=_HJ(_N3,_rE.ScriptNames))>=0){_NJ.type=_XJ;_NJ.id=_q4;return _NJ;}if((_q4=_GJ(_N3,_rE.Shaders))>=0){ _NJ.type=_YJ;_NJ.id=_q4;return _NJ;}if((_q4=_EJ(_N3,_rE.Sequences))>=0){_NJ.type=_ZJ;_NJ.id=_q4;return _NJ;}if((_q4=_EJ(_N3,_rE.AnimCurves))>=0){_NJ.type=__J;_NJ.id=_q4;return _NJ;}if((_q4=_0K._1K(_N3))>=0){_NJ.type=_2K;_NJ.id=_q4;return _NJ;}return _NJ;}function _3K(_J3,_4K){switch(_4K){case _OJ:return(object_exists(_J3))?object_get_name(_J3):"";case _PJ:return(sprite_exists(_J3))?sprite_get_name(_J3):"";case _RJ:return(_3r(_J3))?_5K(_J3):"";case _QJ:return(room_exists(_J3))?room_get_name(_J3):"";case _SJ:case _TJ:return(_6r(_J3))?_1s(_J3):""; case _UJ:return(path_exists(_J3))?path_get_name(_J3):"";case _XJ:return(script_exists(_J3))?script_get_name(_J3):"";case _VJ:return(font_exists(_J3))?font_get_name(_J3):"";case _WJ:return(timeline_exists(_J3))?timeline_get_name(_J3):"";case _YJ:return(_6K(_J3))?shader_get_name(_J3):"";case _ZJ:return(_7K(_J3))?_8K(_J3):"";case __J:return(_9K(_J3))?_aK(_J3):"";}return "";}function asset_get_index(_N3){_N3=yyGetString(_N3);var _NJ=_MJ(_N3);if(_NJ.id>=0)return _NJ.id;var _4l=Object.getOwnPropertyNames(g_pBuiltIn); for(var i=0;i>_4l;i++){if(_4l[i]==_N3){return i;}}return -1;}function asset_get_type(_N3){_N3=yyGetString(_N3);var _NJ=_MJ(_N3);return _NJ.type;}function alarm_get(_0n,index){return _0n.alarm[yyGetInt32(index)];}function alarm_set(_0n,index,_q8){_0n.alarm[yyGetInt32(index)]=yyGetInt32(_q8);}function game_set_speed(_bK,_ph){_bK=yyGetReal(_bK);if(_bK<0)return;if(_bK==0)_x3._cK(_bK);if(yyGetInt32(_ph)==0)_x3._cK(_bK);else _x3._cK(1000000.0/_bK);};function game_get_speed(_bK){if(!_x3._dK())return 0;if(yyGetInt32(_bK)==0)return _x3._y3(); else return 1000000.0/_x3._y3();}/*@constructor */function _eK(){this._fK=0;this._gK=0;this._hK=false;this._iK=0;this._jK=0;};_eK.prototype._cK=function(_bK){this._iK=_bK;this._kK();};_eK.prototype._lK=function(_bK){this._hK=_bK;};_eK.prototype._mK=function(){return this._fK;};_eK.prototype._nK=function(){return this._fK*0.000001;};_eK.prototype._oK=function(_bK){return this._fK/_bK;};_eK.prototype._dK=function(){if(this._iK>0.0)return true;return true;};_eK.prototype._kK=function(){this._fK=0;if(this._iK>0.0){ this._gK=_pK();}else {this._gK=0;}this._jK=0;this._hK=false;};_eK.prototype._Xf=function(){var current;if(this._iK>0.0){current=this._gK+1000000.0/this._iK;}else current=_pK();this._jK=current-this._gK;if(!this._hK)this._fK+=this._jK;this._gK=current;};_eK.prototype._y3=function(){if(this._iK>0)return this._iK;if(this._jK>0){return 1000000.0/this._jK;}return 30.0;};var _x3=new _eK();function gamepad_is_supported(){return _ie._Rf();}function gamepad_get_device_count(){return _ie._Nf();}function gamepad_is_connected(_Pf){ return _ie._Yf(yyGetInt32(_Pf));}function gamepad_get_button_threshold(_Pf){return _ie._ve(yyGetInt32(_Pf));}function gamepad_set_button_threshold(_Pf,_Tf){_ie._Sf(yyGetInt32(_Pf),yyGetReal(_Tf));}function gamepad_get_axis_deadzone(_Pf){return _ie._te(yyGetInt32(_Pf));}function gamepad_set_axis_deadzone(_Pf,_Vf){_ie._Uf(yyGetInt32(_Pf),yyGetReal(_Vf));}function gamepad_get_description(_Pf){return _ie._Of(yyGetInt32(_Pf));}function gamepad_button_count(_Pf){return _ie._Ae(yyGetInt32(_Pf));}function gamepad_button_check(_Pf, _Ce){return _ie._Ge(yyGetInt32(_Pf),yyGetInt32(_Ce));}function gamepad_button_check_pressed(_Pf,_Ce){return _ie._Be(yyGetInt32(_Pf),yyGetInt32(_Ce));}function gamepad_button_check_released(_Pf,_Ce){return _ie._Fe(yyGetInt32(_Pf),yyGetInt32(_Ce));}function gamepad_button_value(_Pf,_Ce){return _ie._He(yyGetInt32(_Pf),yyGetInt32(_Ce));}function gamepad_axis_count(_Pf){return _ie._Ie(yyGetInt32(_Pf));}function gamepad_axis_value(_Pf,_Ke){return _ie._Je(yyGetInt32(_Pf),yyGetInt32(_Ke));}function gamepad_set_vibration(_Pf, _qK,_rK){}function gamepad_set_color(_Pf,_Ms){}function gamepad_set_colour(_Pf,_Pc){}function gamepad_hat_count(_Pf){return 0;}function gamepad_hat_value(_Pf,_J3){return 0;}function gamepad_remove_mapping(_Pf){}function gamepad_test_mapping(_Pf,_sK){}function gamepad_get_mapping(_Pf){_Pf=yyGetInt32(_Pf);if((_Pf<0)||(_Pf>=_ie._Nf())){return "device index out of range";}return "no mapping";}function gamepad_get_guid(_Pf){_Pf=yyGetInt32(_Pf);if((_Pf<0)||(_Pf>=_ie._Nf())){return "device index out of range";}return "none"; }function gamepad_set_option(){}function gamepad_get_option(){return 0;}var _SC=1,_QC=2,_tK=3,_RC=4,_OC=5,_PC=6,_uK=7,_vK=8,_wK=9,_xK=10,_yK=11;var _zK=0.0;function display_get_gui_height(){var _AK=_BK;var scale=_CK;if(_AK<0)_AK=window_get_height();if(scale==0.0)scale=1.0;return _AK/scale;}function display_get_gui_width(){var _DK=_EK;var scale=_FK;if(_DK<0)_DK=window_get_width();if(scale==0.0)scale=1.0;return _DK/scale;}function display_set_gui_size(_m8,_n8){_EK=yyGetInt32(_m8);_BK=yyGetInt32(_n8);_GK=false;_HK=0; _IK=0;_FK=1;_CK=1;if(_JK){_KK();}}function display_set_gui_maximise(_co,_do,_LK,_MK){_GK=true;_HK=0;_IK=0;_FK=1;_CK=1;_EK=-1;_BK=-1;if(_co==-1&&_do==-1&&_LK==undefined&&_MK==undefined){if(_JK){_KK();}return;}if(_co!=undefined)_FK=yyGetReal(_co);if(_do!=undefined)_CK=yyGetReal(_do);if(_LK!=undefined)_HK=yyGetReal(_LK);if(_MK!=undefined)_IK=yyGetReal(_MK);if(_JK){_KK();}}var display_set_gui_maximize=display_set_gui_maximise;var _NK=96;function display_get_dpi_x(){return _NK*window.devicePixelRatio;}var _OK=96; function display_get_dpi_y(){return _OK;}function display_get_width(){return _PK();}function display_get_height(){return _QK();}function display_get_orientation(){return 0;}function draw_clear(_3d){_RK(_Qc(yyGetInt32(_3d)));}var draw_clear_alpha=_SK;function _SK(_3d,_u9){_3d=yyGetInt32(_3d);_u9=yyGetReal(_u9);_TK();var _UK=[];_UK[0]=1;_UK[1]=0;_UK[2]=0;_UK[3]=1;_UK[4]=0;_UK[5]=0;_1a._VK(_UK[0],_UK[1],_UK[2],_UK[3],_UK[4],_UK[5]);if(!_1a.clearRect||_3d!=0||_u9!=0){_1a.globalAlpha=_u9;_1a.fillStyle=_ns(_Qc(_3d), _u9);_1a.globalCompositeOperation='copy';_1a.fillRect(_WK,_XK,_YK,_ZK);}else {_1a.clearRect(_WK,_XK,_YK,_ZK);}__K();}function make_color_rgb(_aC,_bC,_cC){return(yyGetInt32(_aC))|(yyGetInt32(_bC)<<8)|(yyGetInt32(_cC)<<16);}function _0L(_Jj,_1L,_2L){return make_color_rgb(_Jj,_1L,_2L);}var make_colour_rgb=make_color_rgb;var _3L=_0L;function color_get_blue(_3d){return(yyGetInt32(_3d)>>16)&0xff;}var colour_get_blue=color_get_blue;function color_get_green(_3d){return(yyGetInt32(_3d)>>8)&0xff;}var colour_get_green=color_get_green; function color_get_red(_3d){return(yyGetInt32(_3d)&0xff);}var colour_get_red=color_get_red;function _4L(_3d){_3d=yyGetInt32(_3d);var _5L=0.0;var _6L=0.0;var _7L=0.0;var _47=0.0;var _57=0.0;var _8L=0.0;var _Bm=0.0;var _v6=0.0;_5L=(_3d&0xff)/255.0;_6L=((_3d>>8)&0xff)/255.0;_7L=((_3d>>16)&0xff)/255.0;_v6=_I6(_I6(_5L,_6L),_7L);_8L=_H6(_H6(_5L,_6L),_7L);_Bm=_8L-_v6;if(_8L==0)_57=0.0;else _57=1.0*_Bm/_8L;if(_57==0)_47=0.0;else if(_5L==_8L)_47=60.0*(_6L-_7L)/_Bm;else if(_6L==_8L)_47=120.0+60.0*(_7L-_5L)/_Bm;else _47=240.0+60.0*(_5L-_6L)/_Bm; if(_47<0)_47=_47+360.0;var _Y4=Math.min(255,Math.max(0,_8L*255.0));var _ni=Math.min(255,Math.max(0,_57*255.0));var h=Math.min(255,Math.max(0,(_47*255.0)/360.0));var _un={h:h,_ni:_ni,_Y4:_Y4};return _un;}function color_get_hue(_3d){var _9L=_4L(_3d);return _9L.h;}var colour_get_hue=color_get_hue;function color_get_saturation(_3d){var _9L=_4L(_3d);return _9L._ni;}var colour_get_saturation=color_get_saturation;function color_get_value(_3d){var _9L=_4L(_3d);return _9L._Y4;}var colour_get_value=color_get_value;function merge_color(_6q, _no,_PD){_6q=yyGetInt32(_6q);_no=yyGetInt32(_no);_PD=yyGetReal(_PD);var _XH=(_6q>>16)&0xff;var _ZH=(_6q>>8)&0xff;var _Uh=_6q&0xff;var _YH=(_no>>16)&0xff;var __H=(_no>>8)&0xff;var _Vh=_no&0xff;var _aL=1.0-_PD;var _e4=~~(_XH*_aL+_YH*_PD);var _f4=~~(_ZH*_aL+__H*_PD);var _g4=~~(_Uh*_aL+_Vh*_PD);return((_e4<<16)&0xff0000)|((_f4<<8)&0xff00)|(_g4&0xff);}var merge_colour=merge_color;function make_color_hsv(_bL,_cL,_Vn){var _5L=0.0;var _6L=0.0;var _7L=0.0;var _47=0.0;var _57=0.0;var _8L=0.0;var _ED=0.0;var _gh=0.0;var q=0.0; var _J6=0.0;var i=0;var _un;_47=yyGetReal(_bL)*360.0/255.0;if(_47==360.0)_47=0.0;_57=yyGetReal(_cL)/255.0;_8L=yyGetReal(_Vn)/255.0;if(_57==0){_5L=_8L;_6L=_8L;_7L=_8L;}else {_47=_47/60.0;i=Math.floor(_47);_ED=_47-i;_gh=_8L*(1.0-_57);q=_8L*(1.0-(_57*_ED));_J6=_8L*(1.0-(_57*(1.0-_ED)));switch(i){case 0:{_5L=_8L;_6L=_J6;_7L=_gh;}break;case 1:{_5L=q;_6L=_8L;_7L=_gh;}break;case 2:{_5L=_gh;_6L=_8L;_7L=_J6;}break;case 3:{_5L=_gh;_6L=q;_7L=_8L;}break;case 4:{_5L=_J6;_6L=_gh;_7L=_8L;}break;default :{_5L=_8L;_6L=_gh; _7L=q;}}}_5L=Math.max(0,Math.min(255,Math.floor((_5L*255.0)+0.5)));_6L=Math.max(0,Math.min(255,Math.floor((_6L*255.0)+0.5)));_7L=Math.max(0,Math.min(255,Math.floor((_7L*255.0)+0.5)));_un=_5L|(_6L<<8)|(_7L<<16);return _un;}var make_colour_hsv=make_color_hsv;function draw_set_alpha(_u9){_u9=yyGetReal(_u9);if(_u9<0){_u9=0;}if(_u9>1){_u9=1;}_Nc=_u9;_dL=_ns(_Oc,_Nc);}function draw_get_alpha(){return _Nc;}function draw_get_color(){return _2H;}var draw_get_colour=draw_get_color;function draw_set_color(_Pc){_Pc=yyGetInt32(_Pc); _2H=_Pc;_Oc=_Qc(_Pc);_eL=_fL(_Oc);_dL=_ns(_Oc,_Nc);}var draw_set_colour=draw_set_color;function draw_set_lighting(_Nz){_mv(_Nz);};function draw_light_enable(_k9,_Nz){_rv(_k9,_Nz);};function draw_light_define_direction(_k9,_db,_eb,_ov,_m4){_nv(_k9,_db,_eb,_ov,_m4);};function draw_light_define_ambient(colour){_sv(colour);};function draw_light_define_point(_k9,x,y,z,_e4,_m4){_pv(_k9,x,y,z,_e4,_m4);};function draw_light_get_ambient(){return _vv();}function draw_light_get(_k9){return _uv(yyGetInt32(_k9));};function draw_get_lighting(){ return _wv();}function draw_roundrect(_W6,_X6,_o6,_p6,_fo){draw_roundrect_color_ext(_W6,_X6,_o6,_p6,10,10,_2H,_2H,_fo);}function draw_roundrect_ext(_W6,_X6,_o6,_p6,_gL,_hL,_fo){draw_roundrect_color_ext(_W6,_X6,_o6,_p6,_gL,_hL,_2H,_2H,_fo);}function draw_roundrect_color(_W6,_X6,_o6,_p6,_6q,_no,_fo){draw_roundrect_color_ext(_W6,_X6,_o6,_p6,10,10,_6q,_no,_fo);}var draw_roundrect_colour=draw_roundrect_color;var draw_roundrect_color_ext=_iL;var draw_roundrect_colour_ext=_iL;function _iL(_W6,_X6,_o6,_p6,_gL,_hL, _6q,_no,_fo){_W6=yyGetReal(_W6);_X6=yyGetReal(_X6);_o6=yyGetReal(_o6);_p6=yyGetReal(_p6);_gL=yyGetReal(_gL);_hL=yyGetReal(_hL);_6q=yyGetReal(_6q);_no=yyGetReal(_no);_fo=yyGetBool(_fo);if(_zK!=0.0){_W6+=_zK;_X6+=_zK;_o6+=_zK;_p6+=_zK;}if(_p6<_X6){var _jL=_X6;_X6=_p6;_p6=_jL;}if(_o6<_W6){var _jL=_W6;_W6=_o6;_o6=_jL;}var width=_o6-_W6;var height=_p6-_X6;var _kL=_gL;var _lL=_hL;var _m4=_1a.globalAlpha=_Nc;_1a.beginPath();_1a.moveTo(_W6+_kL,_X6);_1a.lineTo(_W6+width-_kL,_X6);_1a.quadraticCurveTo(_W6+width,_X6, _W6+width,_X6+_lL);_1a.lineTo(_W6+width,_X6+height-_lL);_1a.quadraticCurveTo(_W6+width,_X6+height,_W6+width-_kL,_X6+height);_1a.lineTo(_W6+_kL,_X6+height);_1a.quadraticCurveTo(_W6,_X6+height,_W6,_X6+height-_lL);_1a.lineTo(_W6,_X6+_lL);_1a.quadraticCurveTo(_W6,_X6,_W6+_kL,_X6);_1a.closePath();if(_fo){_1a.strokeStyle=_ns(_Qc(_6q),1.0);_1a.stroke();}else {_1a.fillStyle=_ns(_Qc(_6q),1.0);_1a.fill();}}var draw_rectangle=_mL;function _mL(_W6,_X6,_o6,_p6,_fo){_W6=yyGetReal(_W6);_X6=yyGetReal(_X6);_o6=yyGetReal(_o6); _p6=yyGetReal(_p6);_fo=yyGetBool(_fo);_1a.globalAlpha=_Nc;if(_fo){if(_zK!=0.0){_W6+=_zK;_X6+=_zK;_o6+=_zK;_p6+=_zK;}_1a.lineWidth=1;_1a.strokeStyle=_dL;_1a._nL(_W6+0.5,_X6+0.5,(_o6-_W6),(_p6-_X6));}else {if(_zK!=0.0){_o6+=_zK;_p6+=_zK;}_1a.fillStyle=_dL;_1a._oL(_W6,_X6,_o6-_W6+1,_p6-_X6+1);}}var draw_rectangle_color=_pL;var draw_rectangle_colour=_pL;function _pL(_W6,_X6,_o6,_p6,_6q,_no,_qL,_rL,_fo){_W6=yyGetReal(_W6);_X6=yyGetReal(_X6);_o6=yyGetReal(_o6);_p6=yyGetReal(_p6);_6q=yyGetInt32(_6q);_no=yyGetInt32(_no); _qL=yyGetInt32(_qL);_rL=yyGetInt32(_rL);_fo=yyGetBool(_fo);var _m4=_ns(_Qc(_6q),1.0);_1a.globalAlpha=_Nc;if(_fo){if(_zK!=0.0){_W6+=_zK;_X6+=_zK;_o6+=_zK;_p6+=_zK;}_1a.lineWidth=1;_1a.strokeStyle=_m4;_1a._nL(_W6+0.5,_X6+0.5,(_o6-_W6),(_p6-_X6));}else {if(_zK!=0.0){_o6+=_zK;_p6+=_zK;}_1a.fillStyle=_m4;_1a._oL(_W6+0.5,_X6+0.5,(_o6-_W6),(_p6-_X6));}}var _7q=_sL;function _sL(_W6,_X6,_o6,_p6,_6q,_no,_tL,_fo){_W6=yyGetReal(_W6);_X6=yyGetReal(_X6);_o6=yyGetReal(_o6);_p6=yyGetReal(_p6);_6q=yyGetInt32(_6q);_no=yyGetInt32(_no); _tL=yyGetBool(_tL);_fo=yyGetBool(_fo);_1a.globalAlpha=_Nc;_1a.lineWidth=1;var _oo=_ns(_Qc(_6q),1.0);var _po=_ns(_Qc(_no),1.0);var _uL;if(_tL){_uL=_1a.createLinearGradient(_W6,_X6,_W6,_p6);}else {_uL=_1a.createLinearGradient(_W6,_X6,_o6,_X6);}_uL.addColorStop(0,_oo);_uL.addColorStop(1,_po);if(_fo){if(_zK!=0.0){_W6+=_zK;_X6+=_zK;_o6+=_zK;_p6+=_zK;}_1a.strokeStyle=_uL;_1a._nL(_W6+0.5,_X6+0.5,_o6-_W6,_p6-_X6);}else {if(_zK!=0.0){_o6+=_zK;_p6+=_zK;}_1a.fillStyle=_uL;_1a._oL(_W6+0.5,_X6+0.5,_o6-_W6,_p6-_X6); }}var draw_point=_vL;function _vL(_q5,_r5){_q5=yyGetReal(_q5);_r5=yyGetReal(_r5);if(_zK!=0.0){_q5+=_zK;_r5+=_zK;}_1a.globalAlpha=_Nc;_1a.fillStyle=_dL;_1a._oL(_q5,_r5,1,1);}function draw_line_width(_W6,_X6,_o6,_p6,_kj){_W6=yyGetReal(_W6);_X6=yyGetReal(_X6);_o6=yyGetReal(_o6);_p6=yyGetReal(_p6);if(_zK!=0.0){_W6+=_zK;_X6+=_zK;_o6+=_zK;_p6+=_zK;}_1a.globalAlpha=_Nc;_1a.strokeStyle=_eL;_1a.lineWidth=yyGetReal(_kj);_1a._wL();_1a._xL(_W6+0.5,_X6+0.5);_1a._yL(_o6+0.5,_p6+0.5);_1a._zL();_1a._AL();_1a._oL(_o6, _p6,1,1);}function draw_line(_W6,_X6,_o6,_p6){draw_line_width(_W6,_X6,_o6,_p6,1);}var draw_getpixel=_BL;var draw_getpixel_ext=_CL;function _BL(_q5,_r5){return _CL(yyGetReal(_q5),yyGetReal(_r5))&0x00ffffff;}function _CL(_q5,_r5){var _DL=canvas.width/_EL;var _FL=canvas.height/_GL;var _m4=_HL(canvas,yyGetReal(_q5)*_DL,yyGetReal(_r5)*_FL);return _m4;}var draw_triangle=_IL;function _IL(_W6,_X6,_o6,_p6,_Ju,_Ku,_fo){_W6=yyGetReal(_W6);_X6=yyGetReal(_X6);_o6=yyGetReal(_o6);_p6=yyGetReal(_p6);_Ju=yyGetReal(_Ju);_Ku=yyGetReal(_Ku); if(_zK!=0.0){_W6+=_zK;_X6+=_zK;_o6+=_zK;_p6+=_zK;_Ju+=_zK;_Ku+=_zK;}_1a.globalAlpha=_Nc;_1a.lineWidth=1;if(yyGetBool(_fo)){_1a.strokeStyle=_dL;_1a._wL();_1a._xL(_W6,_X6);_1a._yL(_o6,_p6);_1a._yL(_Ju,_Ku);_1a._yL(_W6,_X6);_1a._AL();_1a._zL();}else {_1a.strokeStyle=_dL;_1a.lineJoin="bevel";_1a.fillStyle=_dL;_1a._wL();_1a._xL(_W6,_X6);_1a._yL(_o6,_p6);_1a._yL(_Ju,_Ku);_1a._yL(_W6,_X6);_1a._JL();_1a._AL();_1a._zL();_1a.lineJoin="miter";}}var draw_triangle_color=_KL;var draw_triangle_colour=_KL;function _KL(_W6, _X6,_o6,_p6,_Ju,_Ku,_6q,_no,_qL,_fo){var _oo=_fL(_Qc(_6q)|0xff000000);_W6=yyGetReal(_W6);_X6=yyGetReal(_X6);_o6=yyGetReal(_o6);_p6=yyGetReal(_p6);_6q=yyGetInt32(_6q);_no=yyGetInt32(_no);_qL=yyGetInt32(_qL);_rL=yyGetInt32(_rL);_fo=yyGetBool(_fo);if(_zK!=0.0){_W6+=_zK;_X6+=_zK;_o6+=_zK;_p6+=_zK;_Ju+=_zK;_Ku+=_zK;}_1a.globalAlpha=_Nc;_1a.lineWidth=1;if(_fo){_1a.strokeStyle=_oo;_1a._wL();_1a._xL(_W6,_X6);_1a._yL(_o6,_p6);_1a._yL(_Ju,_Ku);_1a._yL(_W6,_X6);_1a._AL();_1a._zL();}else {_1a.strokeStyle=_oo; _1a.lineJoin="bevel";_1a.fillStyle=_oo;_1a._wL();_1a._xL(_W6,_X6);_1a._yL(_o6,_p6);_1a._yL(_Ju,_Ku);_1a._yL(_W6,_X6);_1a._JL();_1a._AL();_1a._zL();_1a.lineJoin="miter";}}var _Ho=_LL;function _LL(_W6,_X6,_o6,_p6,_PD,_ML,_NL,_OL,_PL,_QL,_RL,_SL){_W6=yyGetReal(_W6);_X6=yyGetReal(_X6);_o6=yyGetReal(_o6);_p6=yyGetReal(_p6);_PD=yyGetReal(_PD);_ML=yyGetInt32(_ML);_NL=yyGetInt32(_NL);_OL=yyGetInt32(_OL);_PL=yyGetInt32(_PL);_QL=yyGetInt32(_QL);_RL=yyGetBool(_RL);_SL=yyGetBool(_SL);var _TL;var _UL;var _VL;var _WL; var _m4;if(_RL){draw_rectangle_color(_W6,_X6,_o6,_p6,_ML,_ML,_ML,_ML,false);if(_SL){draw_rectangle_color(_W6,_X6,_o6,_p6,_so,_so,_so,_so,true);}}if(_PD<0){_PD=0;}if(_PD>100){_PD=100;}var _XL=_PD/100;switch(_QL){case 0:_TL=_W6;_VL=_X6;_UL=_W6+_XL*(_o6-_W6);_WL=_p6;break;case 1:_TL=_o6-_XL*(_o6-_W6);_VL=_X6;_UL=_o6;_WL=_p6;break;case 2:_TL=_W6;_VL=_X6;_UL=_o6;_WL=_X6+_XL*(_p6-_X6);break;case 3:_TL=_W6;_VL=_p6-_XL*(_p6-_X6);_UL=_o6;_WL=_p6;break;default :_TL=_W6;_VL=_X6;_UL=_W6+_XL*(_o6-_W6);_WL=_p6;break; }if(_PD>50){_m4=_WH(_OL,_PL,(_PD-50.0)/50.0);}else {_m4=_WH(_NL,_OL,_PD/50.0);}draw_rectangle_color(_TL,_VL,_UL,_WL,_m4,_m4,_m4,_m4,false);if(_SL){draw_rectangle_color(_TL,_VL,_UL,_WL,_so,_so,_so,_so,true);}}function draw_healthbar(_W6,_X6,_o6,_p6,_PD,_ML,_NL,_PL,_QL,_RL,_SL){var _m4=merge_color(_NL,_PL,0.5);_Ho(_W6,_X6,_o6,_p6,_PD,_ML,_NL,_m4,_PL,_QL,_RL,_SL);}function draw_set_circle_precision(_YL){_ZL(yyGetInt32(_YL));}function __L(){return _0M();}var draw_arrow=_1M;function _1M(_w6,_x6,_y6,_z6,size){ _w6=yyGetReal(_w6);_x6=yyGetReal(_x6);_y6=yyGetReal(_y6);_z6=yyGetReal(_z6);size=yyGetReal(size);var _2M=Math.sqrt(((_y6-_w6)*(_y6-_w6))+((_z6-_x6)*(_z6-_x6)));if(_2M!=0){if(size>_2M){size=_2M;}var _N6=size*(_y6-_w6)/_2M;var _P6=size*(_z6-_x6)/_2M;draw_line(_w6,_x6,_y6,_z6);draw_triangle(_y6-_N6-_P6/3.0,_z6-_P6+_N6/3.0,_y6,_z6,_y6-_N6+_P6/3.0,_z6-_P6-_N6/3.0,false);}}function draw_ellipse(_W6,_X6,_o6,_p6,_fo){draw_ellipse_color(_W6,_X6,_o6,_p6,_2H,_2H,_fo);}var draw_ellipse_color=_3M;var draw_ellipse_colour=_3M; function _3M(x,y,_w6,_x6,_6q,_no,_4M){x=yyGetReal(x);y=yyGetReal(y);_w6=yyGetReal(_w6);_x6=yyGetReal(_x6);_6q=yyGetInt32(_6q);_no=yyGetInt32(_no);_4M=yyGetBool(_4M);if(_zK!=0.0){x+=_zK;y+=_zK;_w6+=_zK;_x6+=_zK;}var w=_w6-x;var h=_x6-y;var _5M=0.5522848;var _6M=(w/2)*_5M;var _7M=(h/2)*_5M;var _8M=x+w;var _9M=y+h;var _aM=x+w/2;var _bM=y+h/2;_1a.beginPath();_1a.moveTo(x,_bM);_1a.bezierCurveTo(x,_bM-_7M,_aM-_6M,y,_aM,y);_1a.bezierCurveTo(_aM+_6M,y,_8M,_bM-_7M,_8M,_bM);_1a.bezierCurveTo(_8M,_bM+_7M,_aM+_6M,_9M, _aM,_9M);_1a.bezierCurveTo(_aM-_6M,_9M,x,_bM+_7M,x,_bM);_1a.closePath();var _oo=_ns(_Qc(_6q),1.0);var _po=_ns(_Qc(_no),1.0);if(w<=0)w*=-1;if(h<=0)h*=-1;var _uL=_1a.createRadialGradient(_aM,_bM,0,_aM,_bM,min(w/2,h/2));_uL.addColorStop(0,_oo);_uL.addColorStop(1,_po);_1a.globalAlpha=_Nc;if(_4M){_1a.lineWidth=1;_1a.strokeStyle=_uL;_1a.stroke();}else {_1a.fillStyle=_uL;_1a.fill();}}var draw_circle_color=_cM;var draw_circle_colour=_cM;function _cM(_q5,_r5,_Jj,_6q,_no,_fo){_q5=yyGetReal(_q5);_r5=yyGetReal(_r5); _Jj=yyGetReal(_Jj);_6q=yyGetInt32(_6q);_no=yyGetInt32(_no);_fo=yyGetBool(_fo);if(_zK!=0.0){_q5+=_zK;_r5+=_zK;}_1a.globalAlpha=_Nc;var _oo=_ns(_Qc(_6q),1.0);var _po=_ns(_Qc(_no),1.0);var _uL=_1a.createRadialGradient(_q5,_r5,0,_q5,_r5,_Jj);_uL.addColorStop(0,_oo);_uL.addColorStop(1,_po);_1a._wL();if(_fo){_1a.lineWidth=1;_1a.strokeStyle=_uL;_1a._dM(_q5,_r5,_Jj,0,Math.PI*2,true);_1a._AL();}else {_1a.fillStyle=_uL;_1a._dM(_q5,_r5,_Jj,0,Math.PI*2,false);_1a._JL();}_1a._zL();}function draw_circle(_q5,_r5,_Jj, _fo){draw_circle_color(_q5,_r5,_Jj,_2H,_2H,_fo);}var draw_point_color=_eM;var draw_point_colour=_eM;function _eM(_q5,_r5,_3d){_q5=yyGetReal(_q5);_r5=yyGetReal(_r5);if(_zK!=0.0){_q5+=_zK;_r5+=_zK;}var _oo=_ns(_Qc(yyGetInt32(_3d)),1.0);_1a.globalAlpha=_Nc;_1a.fillStyle=_oo;_1a._oL(_q5,_r5,1,1);}var draw_line_width_color=_fM;var draw_line_width_colour=_fM;function _fM(_W6,_X6,_o6,_p6,_kj,_6q,_no){_W6=yyGetReal(_W6);_X6=yyGetReal(_X6);_o6=yyGetReal(_o6);_p6=yyGetReal(_p6);_kj=yyGetReal(_kj);_6q=yyGetInt32(_6q); _no=yyGetInt32(_no);if(_zK!=0.0){_W6+=_zK;_X6+=_zK;_o6+=_zK;_p6+=_zK;}_1a.globalAlpha=_Nc;var _oo=_ns(_Qc(_6q),1.0);var _po=_ns(_Qc(_no),1.0);var _uL=_1a.createLinearGradient(_W6,_X6,_o6,_p6);_uL.addColorStop(0,_oo);_uL.addColorStop(1,_po);_1a.strokeStyle=_uL;_1a._wL();_1a._xL(_W6+0.5,_X6+0.5);_1a._yL(_o6+0.5,_p6+0.5);_1a.lineWidth=_kj;_1a._AL();_1a._zL();}function draw_line_color(_W6,_X6,_o6,_p6,_6q,_no){draw_line_width_color(_W6,_X6,_o6,_p6,1,_6q,_no);}var draw_line_colour=draw_line_color;function draw_button(_W6, _X6,_o6,_p6,_gM){if(_zK!=0.0){_W6+=_zK;_X6+=_zK;_o6+=_zK;_p6+=_zK;}if(_gM){draw_line_width_color(_W6,_X6,_o6,_X6,2,0xffffff,0xffffff);draw_line_width_color(_W6,_X6,_W6,_p6,2,0xffffff,0xffffff);draw_line_width_color(_o6,_X6,_o6,_p6,2,0x404040,0x404040);draw_line_width_color(_o6,_p6,_W6,_p6,2,0x404040,0x404040);}else {draw_line_width_color(_W6,_X6,_o6,_X6,2,0x404040,0x404040);draw_line_width_color(_W6,_X6,_W6,_p6,2,0x404040,0x404040);draw_line_width_color(_o6,_X6,_o6,_p6,2,0xffffff,0xffffff);draw_line_width_color(_o6, _p6,_W6,_p6,2,0xffffff,0xffffff);}draw_rectangle_color(_W6,_X6,_o6,_p6,_2H,_2H,_2H,_2H,false);}function _mr(x,y,_w6,_x6,_oo,_po,_4M){draw_ellipse_color(x,y,_w6,_x6,_oo,_po,_4M);}function _hM(_iM){switch(_iM){case 1:_jM(_OC,_QC);break;case 2:_jM(_OC,_RC);break;case 3:_jM(_SC,_RC);break;default :_jM(_OC,_PC);break;}}var _jM=_kM;function _kM(src,_ba){_Ib("Blend modes only available in WebGL mode.");}function draw_texture_flush(){if(_e8==null)return;_lM();}function draw_enable_drawevent(_Iz){_mM=yyGetBool(_Iz); }function skeleton_animation_set(_f7,_N3,_O3=true){var _nM=_f7._29();if(_nM){_nM._m3(yyGetString(_N3),_O3);_f7.image_index=0;_nM._I3(0,0);}}function skeleton_animation_mix(_f7,_oM,_pM,_14){var _nM=_f7._29();if(_nM){_nM._Z3(yyGetString(_oM),yyGetString(_pM),yyGetReal(_14));}}function skeleton_animation_set_ext(_f7,_E7,_r3,_O3=true){var _nM=_f7._29();if(_nM){_r3=yyGetInt32(_r3);_nM._P3(yyGetString(_E7),_r3,_O3);if(_r3==0){_f7.image_index=0;_nM._I3(0,0);}}}function skeleton_animation_get_ext(_f7,_r3){var _nM=_f7._29(); if(_nM){return _nM._A7(yyGetInt32(_r3));}return "";}function skeleton_attachment_set(_f7,_qM,_rM){_qM=yyGetString(_qM);var _nM=_f7._29();if(_nM){if(typeof(_rM)=="string"){_nM._34(_qM,_rM);}else {_rM=yyGetInt32(_rM);if(sprite_exists(_rM)){var _XF=_D5._E5(_rM);if(_nM._o4(_qM,_XF.pName)===undefined){_nM._r4(_XF.pName,_XF,0,_XF.xOrigin,_XF.yOrigin,1,1,0,undefined,0xffffffff,1.0,false);}_nM._34(_qM,_XF.pName);}else {_nM._34(_qM,-1);}}}}function skeleton_attachment_get(_f7,_qM){var _nM=_f7._29();if(_nM){return _nM._O7(yyGetString(_qM)); }return "";}function skeleton_attachment_create(_f7,_N3,_q3,_t4,_u4,_v4,_w4,_x4,_y4){var _nM=_f7._29();if(_nM){_t4=yyGetInt32(_t4);if(sprite_exists(_q3)&&(_t4>=0)){var _XF=_D5._E5(_q3);if((_XF._sM!=undefined)||(_XF._tM!=undefined)){console.log("ERROR: Sprite '"+_XF.pName+"' is not valid for use as an attachment (must be a bitmap)\n");return -1.0;}_nM._r4(yyGetString(_N3),_XF,_t4,yyGetReal(_u4),yyGetReal(_v4),yyGetReal(_w4),yyGetReal(_x4),yyGetReal(_y4),undefined,undefined,undefined,false);return 1.0;} }return -1.0;}function skeleton_attachment_create_colour(_f7,_N3,_q3,_t4,_u4,_v4,_w4,_x4,_y4,_3d,_u9){var _nM=_f7._29();if(_nM){_t4=yyGetInt32(_t4);if(sprite_exists(_q3)&&(_t4>=0)){var _XF=_D5._E5(_q3);if((_XF._sM!=undefined)||(_XF._tM!=undefined)){console.log("ERROR: Sprite '"+_XF.pName+"' is not valid for use as an attachment (must be a bitmap)\n");return -1.0;}_nM._r4(yyGetString(_N3),_XF,_t4,yyGetReal(_u4),yyGetReal(_v4),yyGetReal(_w4),yyGetReal(_x4),yyGetReal(_y4),undefined,yyGetInt32(_3d),yyGetReal(_u9), false);return 1.0;}}return -1.0;}function skeleton_attachment_create_color(_f7,_N3,_q3,_t4,_u4,_v4,_w4,_x4,_y4,_3d,_u9){skeleton_attachment_create_colour(_f7,_N3,_q3,_t4,_u4,_v4,_w4,_x4,_y4,_3d,_u9);}function skeleton_attachment_replace(_f7,_N3,_q3,_t4,_u4,_v4,_w4,_x4,_y4){var _nM=_f7._29();if(_nM){_t4=yyGetInt32(_t4);if(sprite_exists(_q3)&&(_t4>=0)){var _XF=_D5._E5(_q3);if((_XF._sM!=undefined)||(_XF._tM!=undefined)){console.log("ERROR: Sprite '"+_XF.pName+"' is not valid for use as an attachment (must be a bitmap)\n"); return -1.0;}_nM._r4(yyGetString(_N3),_XF,_t4,yyGetReal(_u4),yyGetReal(_v4),yyGetReal(_w4),yyGetReal(_x4),yyGetReal(_y4),undefined,undefined,undefined,true);return 1.0;}}return -1.0;}function skeleton_attachment_replace_colour(_f7,_N3,_q3,_t4,_u4,_v4,_w4,_x4,_y4,_3d,_u9){var _nM=_f7._29();if(_nM){_t4=yyGetInt32(_t4);if(sprite_exists(_q3)&&(_t4>=0)){var _XF=_D5._E5(_q3);if((_XF._sM!=undefined)||(_XF._tM!=undefined)){console.log("ERROR: Sprite '"+_XF.pName+"' is not valid for use as an attachment (must be a bitmap)\n"); return -1.0;}_nM._r4(yyGetString(_N3),_XF,_t4,yyGetReal(_u4),yyGetReal(_v4),yyGetReal(_w4),yyGetReal(_x4),yyGetReal(_y4),undefined,yyGetInt32(_3d),yyGetReal(_u9),true);return 1.0;}}return -1.0;}function skeleton_attachment_destroy(_f7,_N3){var name=yyGetString(_N3);var _nM=_f7._29();if(_nM){var _uM=_nM._l5(name);if(!_uM){console.log("skeleton_attachment_destroy: Attempted to destroy non-existant attachment '"+name+"'");}}}function skeleton_attachment_exists(_f7,_N3){var name=yyGetString(_N3);var _nM=_f7._29(); if(_nM){var _uM=(_nM._o4(null,name,true)!==undefined);return _uM;}}function skeleton_attachment_replace_color(_f7,_N3,_q3,_t4,_u4,_v4,_w4,_x4,_y4,_3d,_u9){skeleton_attachment_replace_colour(_f7,_N3,_q3,_t4,_u4,_v4,_w4,_x4,_y4,_3d,_u9);}function skeleton_slot_colour_set(_f7,_qM,_3d,_u9){var _nM=_f7._29();if(_nM){_qM=yyGetString(_qM);_nM._c4(_qM,yyGetInt32(_3d));_nM._j4(_qM,yyGetReal(_u9));}}function skeleton_slot_color_set(_f7,_qM,_3d,_u9){skeleton_slot_colour_set(_f7,_qM,_3d,_u9);}function skeleton_slot_colour_get(_f7, _qM){var _nM=_f7._29();if(_nM){return _nM._l4(yyGetString(_qM));}return 0xffffffff;}function skeleton_slot_color_get(_f7,_qM){return skeleton_slot_colour_get(_f7,_qM);}function skeleton_slot_alpha_get(_f7,_qM){var _nM=_f7._29();if(_nM){return _nM._n4(yyGetString(_qM));}return 1.0;}function skeleton_skin_set(_f7,_N3){var _nM=_f7._29();if(_nM){if(_N3.__type=="[SkeletonSkin]"){_nM._n3(_N3);}else {_nM._n3(yyGetString(_N3));}}}function skeleton_skin_get(_f7){var _nM=_f7._29();if(_nM){return _nM._r7();}return "";}function skeleton_skin_create(_f7, _N3,_vM){var name=yyGetString(_N3);if(!Array.isArray(_vM)){_H4("skeleton_skin_create argument 2 incorrect type (expecting an Array)");}var _wM=[];for(var i=0;i<_vM.length;++i){_wM.push(yyGetString(_vM[i]));}var _nM=_f7._29();if(_nM){var _u7=_nM._s7(name,_wM);return _u7;}}function skeleton_animation_get(_f7){return skeleton_animation_get_ext(_f7,0);}function skeleton_animation_get_duration(_f7,_W8){var _nM=_f7._29();if(_nM){return _nM._D7(yyGetString(_W8));}return 0.0;}function skeleton_animation_get_frames(_f7, _W8){var _nM=_f7._29();if(_nM){return _nM._F7(yyGetString(_W8));}return 0.0;}function skeleton_animation_get_frame(_f7,_r3){var _nM=_f7._29();if(_nM){return _nM._F3(yyGetInt32(_r3));}return 0;}function skeleton_animation_set_frame(_f7,_r3,_J3){var _nM=_f7._29();if(_nM){_nM._I3(yyGetInt32(_r3),yyGetInt32(_J3));}}function skeleton_animation_get_position(_f7,_r3){var _M3=yyGetInt32(_r3);var _nM=_f7._29();if(_nM){var _xM=_nM._p3(undefined,_M3);var _yM=_nM._F3(_M3);if(_xM!=0){var _zM=_yM/_xM;if(_zM<0.0)_zM=0.0;if(_zM>1.0)_zM=1.0; return _zM;}}return -1;}function skeleton_animation_set_position(_f7,_r3,_AM){var _M3=yyGetInt32(_r3);var _zM=yyGetReal(_AM);if(_zM>=1.0||_zM<=1.0){_zM-=Math.floor(_zM/1.0);}if(_zM<0.0){_zM=1.0+_zM;}var _nM=_f7._29();if(_nM){var _xM=_nM._p3(undefined,_M3);if(_xM!=0){var _BM=Math.floor(_zM*_xM);if(_BM<0)_BM=0;if(_BM>=_xM)_BM=_xM-1;_nM._I3(_M3,_BM);}}}function skeleton_animation_get_event_frames(_f7,_E7,_e3){var frames=[];var _nM=_f7._29();if(_nM){var _CM=_nM._G7(_E7,_e3);if(_CM==null){frames.push(-1);}else {frames=_CM; }}else {frames.push(-1);}return frames;}function skeleton_animation_clear(_f7,_r3){var _nM=_f7._29();if(_nM){_nM._B7(yyGetInt32(_r3));}}function skeleton_animation_is_looping(_f7,_r3){var _nM=_f7._29();if(_nM){return _nM._K3(yyGetInt32(_r3));}return false;}function skeleton_animation_is_finished(_f7,_r3){var _nM=_f7._29();if(_nM){return _nM._L3(yyGetInt32(_r3));}return false;}function skeleton_collision_draw_set(_f7,_B3){var _nM=_f7._29();if(_nM){_nM._o5(yyGetReal(_B3)>0.5?true:false);}}function skeleton_bone_data_get(_f7, _87,_97){var _nM=_f7._29();if(_nM){_nM._77(yyGetString(_87),yyGetInt32(_97));}}function skeleton_bone_data_set(_f7,_87,_97){var _nM=_f7._29();if(_nM){_nM._d7(yyGetString(_87),yyGetInt32(_97));}}function skeleton_bone_state_get(_f7,_87,_97){var _nM=_f7._29();if(_nM){_nM._e7(_f7,yyGetString(_87),yyGetInt32(_97));}}function skeleton_bone_state_set(_f7,_87,_97){var _nM=_f7._29();if(_nM){_nM._o7(_f7,yyGetString(_87),yyGetInt32(_97));}}function draw_skeleton(_q3,_DM,_EM,_FM,_q5,_r5,_co,_do,_y4,_Pc,_u9){var _XF=_D5._E5(yyGetInt32(_q3)); if(_XF!=null&&_XF!=undefined){if(_XF._tM){_XF._tM._V8(yyGetString(_DM),yyGetString(_EM),yyGetInt32(_FM),yyGetReal(_q5),yyGetReal(_r5),yyGetReal(_co),yyGetReal(_do),yyGetReal(_y4),yyGetInt32(_Pc),yyGetReal(_u9));}}}function draw_skeleton_time(_q3,_DM,_EM,_96,_q5,_r5,_co,_do,_y4,_Pc,_u9){var _XF=_D5._E5(yyGetInt32(_q3));if(_XF!=null&&_XF!=undefined){if(_XF._tM){_XF._tM._09(yyGetString(_DM),yyGetString(_EM),yyGetReal(_96),yyGetReal(_q5),yyGetReal(_r5),yyGetReal(_co),yyGetReal(_do),yyGetReal(_y4),yyGetInt32(_Pc), yyGetReal(_u9));}}}function draw_skeleton_instance(){_Ib("draw_skeleton_instance()");};function draw_skeleton_collision(_q3,_DM,_FM,_q5,_r5,_co,_do,_y4,_Pc){var _XF=_D5._E5(yyGetInt32(_q3));if(_XF!=null&&_XF!=undefined){if(_XF._tM){_XF._tM._j9(yyGetString(_DM),yyGetInt32(_FM),yyGetReal(_q5),yyGetReal(_r5),yyGetReal(_co),yyGetReal(_do),yyGetReal(_y4),yyGetInt32(_Pc),_XF);}}}function draw_enable_skeleton_blendmodes(_Nz){_T7=yyGetBool(_Nz);}function draw_get_enable_skeleton_blendmodes(){return _T7;}function skeleton_animation_list(_q3, _Q7){var _XF=_D5._E5(yyGetInt32(_q3));if(_XF!=null&&_XF!=undefined){if(_XF._tM){_XF._tM._yb(yyGetInt32(_Q7));}}};function skeleton_skin_list(_q3,_Q7){var _XF=_D5._E5(yyGetInt32(_q3));if(_XF!=null&&_XF!=undefined){if(_XF._tM){_XF._tM._zb(yyGetInt32(_Q7));}}};function skeleton_bone_list(_q3,_Q7){var _XF=_D5._E5(yyGetInt32(_q3));if(_XF!=null&&_XF!=undefined){if(_XF._tM){_XF._tM._Ab(yyGetInt32(_Q7));}}};function skeleton_slot_list(_q3,_Q7){var _XF=_D5._E5(yyGetInt32(_q3));if(_XF!=null&&_XF!=undefined){if(_XF._tM){ _XF._tM._Bb(yyGetInt32(_Q7));}}};function skeleton_slot_data(_q3,_Q7){var _XF=_D5._E5(yyGetInt32(_q3));if(_XF!=null&&_XF!=undefined){if(_XF._tM){_XF._tM._P7(yyGetInt32(_Q7));return 1;}}return -1;};function skeleton_slot_data_instance(_f7,_Q7){var _nM=_f7._29();if(_nM){_nM._P7(yyGetInt32(_Q7));return 1;}return -1;};function _GM(_f7,_r3){var _nM=_f7._29();if(_nM){return _nM._F3(_r3);}return 0.0;};function skeleton_get_minmax(_f7){var _nM=_f7._29();if(_nM){var rect=new _IF(0,0,0,0);if(_nM._f6(rect)){var _k6=[];_k6.push(rect.left, rect.top,rect.right,rect.bottom);return _k6;}}var _k6=[];_k6.push(0.0,0.0,0.0,0.0);return _k6;};function skeleton_get_num_bounds(_f7){var _nM=_f7._29();if(_nM){return _nM._g6();}return 0.0;};function skeleton_get_bounds(_f7,_J3){var _nM=_f7._29();if(_nM){return _nM._h6(yyGetInt32(_J3));}var _k6=[];_k6.push(0,"");return _k6;};function skeleton_find_slot(_f7,_q5,_r5,_Q7){var _nM=_f7._29();if(_nM){var _XF=_D5._E5(_f7.sprite_index);if(_XF!=null&&_XF!=undefined){if(_XF._tM){_XF._HM(_f7,yyGetReal(_q5),yyGetReal(_r5), yyGetInt32(_Q7));}}}}function draw_enable_swf_aa(_IM){_JM=yyGetBool(_IM);};function draw_set_swf_aa_level(_KM){_LM=yyGetReal(_KM);};function draw_get_swf_aa_level(){return _LM;};function _MM(xview,yview,wview,hview,angle){if(Math.abs(angle)<0.001){_NM.left=xview;_NM.top=yview;_NM.right=xview+wview;_NM.bottom=yview+hview;}else {var _Uu=angle*(Math.PI/180.0);var _ni=Math.abs(sin(_Uu));var c=Math.abs(cos(_Uu));var _bk=(c*wview)+(_ni*hview);var _OM=(_ni*wview)+(c*hview);_NM.left=(xview+(wview-_bk)/2);_NM.right=(xview+(wview+_bk)/2); _NM.top=(yview+(hview-_OM)/2);_NM.bottom=(yview+(hview+_OM)/2);}};function _vB(_PM,_QM,_RM,_SM){var _TM=(_QM._v6[11]==0);if(_TM){if(_RM===undefined){_RM=new _zz();_RM._UM(_PM);}if(_SM===undefined){var _VM=new _zz();_VM.Multiply(_PM,_QM);_SM=new _zz();_SM._UM(_VM);}var _WM=new _Tz();_WM._pA=_RM._v6[_8B];_WM._qA=_RM._v6[_bB];_WM._rA=_RM._v6[_gB];var _XM,_YM,_ZM,__M;_XM=_SM._0N(new _Tz(-1.0,0.0,0.0));_YM=_SM._0N(new _Tz(1.0,0.0,0.0));_ZM=_SM._0N(new _Tz(0.0,1.0,0.0));__M=_SM._0N(new _Tz(0.0,-1.0,0.0));var _1N=_YM._2N(_XM); var _3N=_ZM._2N(__M);_4N=_1N.Length();_5N=_3N.Length();_6N=_WM._pA-(_4N*0.5);_7N=_WM._qA-(_5N*0.5);var _8N=_3N;_8N._mA();var angle=Math.acos(_8N._qA);if(_8N._pA<0.0){angle=(2.0*Math.PI)-angle;}var _9N=(angle/(2.0*Math.PI))*360.0;_MM(_6N,_7N,_4N,_5N,_9N);}else {_6N=0;_7N=0;_4N=_t3!=null?_t3._aN():1;_5N=_t3!=null?_t3._bN():1;_MM(_6N,_7N,_4N,_5N,0);}}function _cN(){if(_dN){var _eN=new _zz();_eN.Multiply(_oB[_pB],_oB[_sB]);_fN._gN(_eN);_dN=false;}return _fN;}function _hN(){_iN=true;};function _jN(){if(_iN){var _kN=new _zz(); _kN._UM(_oB[_VA]);var _Va=[];var _Wa=[];_Va[0]=_NM.left;_Va[1]=_NM.right;_Va[2]=_NM.right;_Va[3]=_NM.left;_Wa[0]=_NM.top;_Wa[1]=_NM.top;_Wa[2]=_NM.bottom;_Wa[3]=_NM.bottom;_lN.left=Number.MAX_SAFE_INTEGER;_lN.top=Number.MAX_SAFE_INTEGER;_lN.right=Number.MIN_SAFE_INTEGER;_lN.bottom=Number.MIN_SAFE_INTEGER;for(var i=0;i<4;i++){var _mN=((_Va[i]*_kN._v6[0])+(_Wa[i]*_kN._v6[4])+_kN._v6[12]);var _nN=((_Va[i]*_kN._v6[1])+(_Wa[i]*_kN._v6[5])+_kN._v6[13]);_lN.left=_I6(_lN.left,_mN);_lN.top=_I6(_lN.top,_nN);_lN.right=_H6(_lN.right, _mN);_lN.bottom=_H6(_lN.bottom,_nN);}_iN=false;}};function view_get_camera(_Sz){return g_pBuiltIn.view_camera[yyGetInt32(_Sz)];};function view_get_visible(_Sz){return g_pBuiltIn.view_visible[yyGetInt32(_Sz)];};function view_get_xport(_Sz){return g_pBuiltIn.view_xport[yyGetInt32(_Sz)];};function view_get_yport(_Sz){return g_pBuiltIn.view_yport[yyGetInt32(_Sz)];};function view_get_wport(_Sz){return g_pBuiltIn.view_wport[yyGetInt32(_Sz)];};function view_get_hport(_Sz){return g_pBuiltIn.view_hport[yyGetInt32(_Sz)]; };function view_get_surface_id(_Sz){return g_pBuiltIn.view_surface_id[yyGetInt32(_Sz)];};function view_set_camera(_Sz,_oN){g_pBuiltIn.view_camera[yyGetInt32(_Sz)]=yyGetInt32(_oN);};function view_set_visible(_Sz,visible){g_pBuiltIn.view_visible[yyGetInt32(_Sz)]=yyGetInt32(visible);};function view_set_xport(_Sz,xport){g_pBuiltIn.view_xport[yyGetInt32(_Sz)]=yyGetInt32(xport);};function view_set_yport(_Sz,yport){g_pBuiltIn.view_yport[yyGetInt32(_Sz)]=yyGetInt32(yport);};function view_set_wport(_Sz,wport){g_pBuiltIn.view_wport[yyGetInt32(_Sz)]=yyGetInt32(wport); };function view_set_hport(_Sz,hport){g_pBuiltIn.view_hport[yyGetInt32(_Sz)]=yyGetInt32(hport);};function view_set_surface_id(_Sz,_pN){g_pBuiltIn.view_surface_id[yyGetInt32(_Sz)]=yyGetInt32(_pN);};function _qN(){return 0;};function _rN(){return 0;};function _sN(){};function display_set_windows_alternate_sync(){};function display_set_ui_visibility(){};function display_set_sleep_margin(){}function display_get_sleep_margin(){return 0;}function _tN(_uN,_vN){if((_uN.status<200)||(_uN.status>=300)){_vN._Jf=_wN;_vN._xN=""; }else {_vN._Jf=_yN;try{_vN._xN=_uN.responseText;}catch(e){_vN._xN="";}}}function _zN(_uN,_AN){if(_uN.readyState!=4)return;var _Ef=_kF(_uN);if(_Ef){_Ef._BN=_uN.status;_Ef._Kf=true;_Ef._CN=ds_map_create();var _DN=_uN.getAllResponseHeaders().split("\r\n");for(var _t6 in _DN){if(!_DN.hasOwnProperty(_t6))continue;var _EN=_DN[_t6].split(": ");if(_EN.length==2){ds_map_add(_Ef._CN,_EN[0],_EN[1]);}}if(_AN){_AN(_uN,_Ef);}}}function _FN(_or){var _GN={};_Ff._Gf(_HN,_or,_IN,_GN);setTimeout(function(){var _Ef=_kF(_GN);if(_Ef){ _Ef._BN=404;_Ef._Kf=true;_Ef._Jf=_wN;_Ef._xN="";}},500);return _HN++;}function _JN(_od,_or,_KN,_qt,_AN,_LN){try{var _MN=_NN(_or,_KN);_Ff._Gf(_HN,_or,_IN,_MN._ON);if(_LN!==undefined){_MN._ON.responseType=_LN;}if(_MN._PN){_QN(_od,_or,_KN,_qt,_MN._ON,_MN._RN,_AN);}else {_SN(_od,_or,_KN,_qt,_MN._ON,_AN);}}catch(e){return _FN(_or);}return _HN++;}function _NN(_or,_KN){var _MN={_ON:null,_RN:true,_PN:false};if((_or.substring(0,7)!="http://")&&(_or.substring(0,8)!="https://")){_MN._RN=false;}else {var _TN="";if(_or.substring(0, 7)=="http://"){_TN=_or.substring(7);}if(_or.substring(0,8)=="https://"){_TN=_or.substring(8);}if(_TN.substring(0,document.domain.length)==document.domain){_MN._RN=false;}}if((_MN._RN)&&(window.XDomainRequest)){_MN._ON=new XDomainRequest();_MN._RN=true;_MN._PN=true;}else {if(window.XMLHttpRequest){_MN._ON=new XMLHttpRequest();_MN._RN=false;_MN._PN=(_UN==_VN)&&(_WN._XN<=9.0);}else if(window.ActiveXObject){if(new ActiveXObject("Microsoft.XMLHTTP")){_MN._ON=new ActiveXObject("Microsoft.XMLHTTP");}else {_MN._ON=new ActiveXObject("Msxml2.XMLHTTP"); }}if(_YN==="use-credentials"){_MN._ON._ZN=true;}}return _MN;}function _SN(_od,_or,_KN,_qt,_uN,_AN){try{_uN.open(_od,_or,true);if(_KN!==null){for(var _EN in _KN){if(!_KN.hasOwnProperty(_EN))continue;try{_uN.setRequestHeader(_KN[_EN].key,_KN[_EN].value);}catch(e){debug("Unable to set request header "+_KN[_EN].key+":"+_KN[_EN].value+" "+e.message);}}}else if(_od=="POST"){_uN.setRequestHeader("Content-Type","application/x-www-form-urlencoded");}_uN.onreadystatechange=function(){_zN(_uN,_AN);};_uN.send(_qt); }catch(e){debug(e.message);}}function _QN(_od,_or,_KN,_qt,_uN,__N,_AN){_uN.open(_od,_or);_uN.ontimeout=function(_e3){_0O(_e3,_uN);};_uN.onerror=function(_e3){_0O(_e3,_uN);};if(__N){_uN.onload=function(_e3){_1O(_e3,_uN,200);};}else {_uN.onload=function(_e3){};_uN.onreadystatechange=function(){if(_uN.readyState==4){_1O(null,_uN,_uN.status);}};}if(_KN!==null){for(var _EN in _KN){if(!_KN.hasOwnProperty(_EN))continue;try{_uN.setRequestHeader(_KN[_EN].key,_KN[_EN].value);}catch(e){debug("Unable to set request header "+_KN[_EN].key+":"+_KN[_EN].value+" "+e.message); }}}_uN._2O=function(){};_uN.send(_qt);}function _1O(_e3,_uN,_3O){var _Ef=_kF(_uN);if(_Ef){_Ef._Kf=true;if((_3O>=200)&&(_3O<300)){_Ef._Jf=_yN;_Ef._BN=_3O;}else {_Ef._Jf=_wN;_Ef._BN=404;}_Ef._xN=_uN.responseText;_Ef._CN=-1;}}function _0O(_e3,_uN){var _Ef=_kF(_uN);if(_Ef){_Ef._Kf=true;_Ef._Jf=_wN;_Ef._xN="";_Ef._BN=404;_Ef._CN=-1;}}function http_get(_or){return _JN("GET",yyGetString(_or),null,"",_tN);}function http_get_file(_or,_4O){_4O=yyGetString(_4O);var _5O=function(_uN,_vN){if(_uN.response){try{var _6O=String.fromCharCode.apply(null, new Uint8Array(_uN.response));_rl(_4O,_6O);_vN._Jf=_yN;_vN._xN=_4O;}catch(e){debug(e.message);_vN._Jf=_wN;}}else {_vN._Jf=_wN;}};return _JN("GET",yyGetString(_or),null,"",_5O,'arraybuffer');}function http_post_string(_or,_yG){if(!_yG){_yG="";}else {_yG=yyGetString(_yG);}return _JN('POST',yyGetString(_or),null,_yG,_tN);}function http_request(_or,_KH,_7O,_8O){_or=yyGetString(_or);_KH=yyGetString(_KH);_7O=yyGetInt32(_7O);var _9O=[];var _b7=_c7._E5(_7O);if(_b7!==null){for(const [key,_jl] of _b7){var _Y4=key;if(_b7._dl&&_b7._dl.has(key))_Y4=_b7._dl.get(key); _9O.push({key:_Y4,value:_jl});}}if(typeof(_8O)==='number'){return _aO(_or,_KH,_9O,_8O);}else {if(!_8O){_8O="";}return _JN(_KH,_or,_9O,_8O,_tN);}}function _aO(_or,_KH,_KN,_8O){var _Ca=_bO._E5(_8O);if(!_Ca){return _FN(_or);}else if(_Ca._cO!=0){var _dO=new Uint8Array(_Ca._eO,0,_Ca._cO);return _JN(_KH,_or,_KN,_dO,_tN);}else {var _fO=function(_uN,_vN){_vN._xN=_Ca._cO;if(_uN.response){_vN._Jf=_yN;var _bt=new Uint8Array(_uN.response);for(var i=0,_Yi=_bt.length;i<_Yi;++i){_Ca._gO(_hO,_bt[i]);}_vN._xN=_bt.length;}else { _vN._Jf=_wN;}};return _JN(_KH,_or,_KN,_8O,_fO,'arraybuffer');}};function http_set_request_crossorigin(_iO){_YN=yyGetString(_iO);}function http_get_request_crossorigin(){return _YN;}function _jO(){return iap_status();}function _kO(){_Ib("iap_event_queue()");}function _lO(){_Ib("iap_product_status()");}function _mO(){_Ib("iap_is_downloaded()");}function _nO(){_Ib("iap_product_files()");}function _oO(){_Ib("iap_files_purchased()");}function iap_activate(_B3){}function iap_status(){return -1;}function iap_acquire(_pO, _qO){return -1;}function iap_consume(_pO){}function iap_restore_all(){}function iap_enumerate_products(_Q7){}function iap_product_details(_pO,_97){return 0;}function iap_purchase_details(_rO,_97){return 0;}var _sO=null;function ini_open_from_string(_tO){if(_sO){ini_close();}_sO=_uO(yyGetString(_tO));}function ini_open(_vO){_vO=yyGetString(_vO);if(_sO){ini_close();}var _wO=null;if(_gG){_wO=_xO(_vO,true);}if(_wO==null){_wO=_xO(_vO,false);}if(_wO==null){_wO=new _yO(_vO);}_sO=_wO;}function ini_close(){if(!_sO)return; var _NH=_sO._zO();_sO=null;return _NH;}function ini_read_string(_AO,_el,_BO){if(!_sO)_H4("ini_read_string : Trying to read from undefined INI file");return _sO._CO(yyGetString(_AO),yyGetString(_el),yyGetString(_BO));}function ini_read_real(_AO,_el,_BO){if(!_sO)_H4("ini_read_real : Trying to read from undefined INI file");return _sO._DO(yyGetString(_AO),yyGetString(_el),yyGetString(_BO));}function ini_write_string(_AO,_el,_Vn){if(!_sO)_H4("ini_write_string : Trying to write to undefined INI file");_sO._EO(yyGetString(_AO), yyGetString(_el),yyGetString(_Vn));return true;}function ini_write_real(_AO,_el,_Vn){if(!_sO)_H4("ini_write_real : Trying to write to undefined INI file");_sO._EO(yyGetString(_AO),yyGetString(_el),""+yyGetReal(_Vn));return true;}function ini_key_exists(_AO,_el){if(!_sO)_H4("ini_key_exists : Trying to read from undefined INI file");var _FO=_sO._GO(yyGetString(_AO),yyGetString(_el));if(_FO!=null&&_FO!=undefined)return true;return false;}function ini_section_exists(_AO){if(!_sO)_H4("ini_section_exists : Trying to read from undefined INI file"); var _HO=_sO._IO[yyGetString(_AO)];if(_HO!=null&&_HO!=undefined)return true;return false;}function ini_key_delete(_AO,_el){if(!_sO)_H4("ini_key_delete : Trying to write to undefined INI file");return _sO._JO(yyGetString(_AO),yyGetString(_el));}function ini_section_delete(_AO){if(!_sO)_H4("ini_section_delete : Trying to write to undefined INI file");return _sO._KO(yyGetString(_AO));}function instance_find(_Ak,_LO){_LO=yyGetInt32(_LO);var _MO=GetWithArray(yyGetInt32(_Ak));if(_MO==null)return _Kt;if(_LO>=_MO.length)return _Kt; var _0n=_MO[_LO];if((_0n.active)&&(!_0n.marked))return _Ot(_Pt,_0n.id);return _Kt;}function instance_id_get(_f7,_J3){return _t3._NO._E5(yyGetInt32(_J3)).id;}function instance_exists(_Ak){var _BG=GetWithArray(yyGetInt32(_Ak));if(_BG!=null&&_BG.length>0){for(var _0n=0;_0n<_BG.length;_0n++){var _1u=_BG[_0n];if(!_1u.marked&&_1u.active)return true;}}return false;}function instance_number(_Ak){var _MO=GetWithArray(yyGetInt32(_Ak));if(_MO==null)return 0;var _q8=0;for(var i=0;i<_MO.length;i++){if((_MO[i].active)&&(!_MO[i].marked))_q8++; }return _q8;}function instance_position(_q5,_r5,_Ak){_q5=yyGetReal(_q5);_r5=yyGetReal(_r5);if(_Ak instanceof _Rt){var _St=_Ak.type;if(_St==_Tt){if(_Ut(_q5,_r5,_Ak,null,true)){return true;}}else {var id=_OO(_q5,_r5,_Ak,null);if(id!=_Kt)return true;}}else if(_Ak instanceof Array){for(var i=0;i<_Ak.length;i++){var _Vt=_Ak[i];if((_Vt instanceof _Rt)&&(_Vt.type==_Tt)){if(_Ut(_q5,_r5,_Vt,null,true)){return true;}}else {var id=_OO(_q5,_r5,_Vt,null);if(id!=_Kt)return true;}}return false;}else {var id=_OO(_q5,_r5,_Ak,null);if(id!=_Kt)return true; }return false;}function instance_position_list(_q5,_r5,_Ak,_Q7,_au){_q5=yyGetReal(_q5);_r5=yyGetReal(_r5);var _Sg=_Ek._E5(yyGetInt32(_Q7));if(!_Sg){_H4("Error: invalid ds_list ID (instance_position_list)");return 0;}var _bu=false;var _cu=[];if(_Ak instanceof _Rt){var _St=_Ak.type;if(_St==_Tt){_Ut(_q5,_r5,_Ak,_cu,true);_bu=true;}}else if(_Ak instanceof Array){for(var i=0;i<_Ak.length;i++){var _Vt=_Ak[i];if((_Vt instanceof _Rt)&&(_Vt.type==_Tt)){_Ut(_q5,_r5,_Vt,_cu,true);}else {_OO(_q5,_r5,_Vt,_cu);}}_bu=true;}if(!_bu)_OO(_q5, _r5,_Ak,_cu);var _q8=_cu.length;_Wt(_cu,_Sg,_q5,_r5,_au);return _q8;}function instance_nearest(_f7,_q5,_r5,_Ak){_q5=yyGetReal(_q5);_r5=yyGetReal(_r5);var _9u=10000000000;var i=_Kt;var _PO=_QO(null,yyGetInt32(_Ak),false,_Kt,_q5,_r5,function(_Lt){var _N6=_q5-_Lt.x;var _P6=_r5-_Lt.y;var _Bm=Math.sqrt(_N6*_N6+_P6*_P6);if(_Bm<_9u){i=_Ot(_Pt,_Lt.id);_9u=_Bm;}});return i;}function instance_furthest(_f7,_q5,_r5,_Ak){_q5=yyGetReal(_q5);_r5=yyGetReal(_r5);var _9u=-10000000000;var i=_Kt;var _PO=_QO(null,yyGetInt32(_Ak), false,_Kt,_q5,_r5,function(_Lt){var _N6=_q5-_Lt.x;var _P6=_r5-_Lt.y;var _Bm=Math.sqrt(_N6*_N6+_P6*_P6);if(_Bm>_9u){i=_Ot(_Pt,_Lt.id);_9u=_Bm;}});return i;}function _RO(_SO,_TO,_UO,tilewidth,tileheight,_VO){_SO[3]._X4=_SO[0]._X4=_UO*tilewidth;_SO[1]._X4=_SO[2]._X4=_SO[0]._X4+tilewidth;_SO[0]._Y4=_SO[1]._Y4=_TO*tileheight;_SO[2]._Y4=_SO[3]._Y4=_SO[0]._Y4+tileheight;if(_VO&_WO){if(_VO&_XO){var _jL=new _YO();_jL=_SO[1];_SO[1]=_SO[0];_SO[0]=_jL;_jL=_SO[2];_SO[2]=_SO[3];_SO[3]=_jL;}if(_VO&_ZO){var _jL=new _YO(); _jL=_SO[3];_SO[3]=_SO[0];_SO[0]=_jL;_jL=_SO[2];_SO[2]=_SO[1];_SO[1]=_jL;}var __O=(3<<_0P);var _1P=(_VO&__O)>>_0P;if(_1P==1){var _jL=new _YO();_jL=_SO[3];_SO[3]=_SO[2];_SO[2]=_SO[1];_SO[1]=_SO[0];_SO[0]=_jL;}else if(_1P==2){var _jL=new _YO();var _2P=new _YO();_jL=_SO[3];_2P=_SO[0];_SO[3]=_SO[1];_SO[0]=_SO[2];_SO[2]=_2P;_SO[1]=_jL;}else if(_1P==3){var _jL=new _YO();var _2P=new _YO();_jL=_SO[3];_2P=_SO[0];_SO[1]=_SO[2];_SO[0]=_SO[1];_SO[3]=_2P;_SO[2]=_jL;}}}function _fu(_q5,_r5,_o6,_p6,_3P,_4P,_5P){var _2u=_3u._4u(); var _6P=null;var _7P=null;var _5u=_3u._6u(_2u,_3P.value);if(_5u!=null){_6P=_5u._8P;_7P=_5u;}if((_7P!=null)&&(_7P._9P===_aP)&&(_7P._bP!=null)&&(_6P!=null)){var _2s=_8r._0s(_7P._cP);if(_2s==null){_H4("Tilemap_CollisionLine() - could not find tileset for this map",false);return false;}var _On=_D5._E5(_2s._dP);if((_On==null)||(_On._q8==0)){return false;}var _eP=_On._aN()/_2s.tilewidth;var _fP=_On._aN();var tilewidth,tileheight;var _gP=_On._F6[0];tilewidth=_2s.tilewidth;tileheight=_2s.tileheight;var _hP=1.0/tilewidth; var _iP=1.0/tileheight;var _jP=new _IF();_jP.left=_7P._kP+_6P._lP;_jP.top=_7P._mP+_6P._nP;_jP.right=_jP.left+(_7P._oP*tilewidth);_jP.bottom=_jP.top+(_7P._pP*tileheight);var _G6=_q5;var _J6=_r5;var _e4=_o6;var _g4=_p6;var _qP=_7P._kP+_6P._lP;var _rP=_7P._mP+_6P._nP;_G6-=_qP;_G6*=_hP;_e4-=_qP;_e4*=_hP;_J6-=_rP;_J6*=_iP;_g4-=_rP;_g4*=_iP;if(_e4<_G6){var _jL=_G6;_G6=_e4;_e4=_jL;}if(_J6>_g4){var _jL=_J6;_J6=_g4;_g4=_jL;}_e4=~~_I6(_e4,_7P._oP-1);_g4=~~_I6(_g4,_7P._pP-1);var _sP=_3u._tP();_sP&=_7P._uP;_G6=~~_H6(_G6, 0);_J6=~~_H6(_J6,0);for(var x=_G6;x<=_e4;x++){for(var y=_J6;y<=_g4;y++){var index=(y*_7P._oP)+x;index=~~index;var _VO=_7P._bP[index];_VO&=_sP;var _vP=(_VO>>_wP)&_xP;if(_vP==0)continue;_vP=_2s._yP(_vP,_7P._zP);if(_vP>0){var _AP=[new _BP(),new _BP(),new _BP(),new _BP()];_AP[3].x=_AP[0].x=_jP.left+tilewidth*x;_AP[1].x=_AP[2].x=_AP[0].x+tilewidth;_AP[0].y=_AP[1].y=_jP.top+tileheight*y;_AP[2].y=_AP[3].y=_AP[1].y+tileheight;var _w6=_q5;var _y6=_o6;var _x6=_r5;var _z6=_p6;if(_On._CP()&&_5P){var _SO=[new _YO(),new _YO(), new _YO(),new _YO()];var _TO=~~(_vP/_eP);var _UO=~~(_vP%_eP);_RO(_SO,_TO,_UO,tilewidth,tileheight,_VO);if(_On._DP(_gP,_AP,_SO,_w6,_x6,_y6,_z6,_On._aN())){if(_4P!=null)_4P.push(_3P);return true;}}else {if(_4P!=null)_4P.push(_3P);return true;}}}}}return false;}function _tu(_q5,_r5,_o6,_p6,_3P,_4P,_5P){var _2u=_3u._4u();var _6P=null;var _7P=null;var _5u=_3u._6u(_2u,_3P.value);if(_5u!=null){_6P=_5u._8P;_7P=_5u;}if((_7P!=null)&&(_7P._9P===_aP)&&(_7P._bP!=null)&&(_6P!=null)){var _2s=_8r._0s(_7P._cP);if(_2s==null){_H4("Tilemap_CollisionLine() - could not find tileset for this map", false);return false;}var _On=_D5._E5(_2s._dP);if((_On==null)||(_On._q8==0)){return false;}var _eP=_On._aN()/_2s.tilewidth;var _fP=_On._aN();var tilewidth,tileheight;var _gP=_On._F6[0];tilewidth=_2s.tilewidth;tileheight=_2s.tileheight;var _hP=1.0/tilewidth;var _iP=1.0/tileheight;var _jP=new _IF();_jP.left=_7P._kP+_6P._lP;_jP.top=_7P._mP+_6P._nP;_jP.right=_jP.left+(_7P._oP*tilewidth);_jP.bottom=_jP.top+(_7P._pP*tileheight);if(_o6<_q5){var _ue=_o6;_o6=_q5;_q5=_ue;_ue=_p6;_p6=_r5;_r5=_ue;}var _G6=_q5;var _J6=_r5; var _e4=_o6;var _g4=_p6;var _qP=_7P._kP+_6P._lP;var _rP=_7P._mP+_6P._nP;_G6-=_qP;_G6*=_hP;_e4-=_qP;_e4*=_hP;_J6-=_rP;_J6*=_iP;_g4-=_rP;_g4*=_iP;if(_e4<_G6){var _jL=_G6;_G6=_e4;_e4=_jL;}if(_J6>_g4){var _jL=_J6;_J6=_g4;_g4=_jL;}_e4=~~_I6(_e4,_7P._oP-1);_g4=~~_I6(_g4,_7P._pP-1);var _sP=_3u._tP();_sP&=_7P._uP;_G6=~~_H6(_G6,0);_J6=~~_H6(_J6,0);for(var x=_G6;x<=_e4;x++){for(var y=_J6;y<=_g4;y++){var index=(y*_7P._oP)+x;index=~~index;var _VO=_7P._bP[index];_VO&=_sP;var _vP=(_VO>>_wP)&_xP;if(_vP==0)continue;_vP=_2s._yP(_vP, _7P._zP);if(_vP>0){var _AP=[new _BP(),new _BP(),new _BP(),new _BP()];_AP[3].x=_AP[0].x=_jP.left+tilewidth*x;_AP[1].x=_AP[2].x=_AP[0].x+tilewidth;_AP[0].y=_AP[1].y=_jP.top+tileheight*y;_AP[2].y=_AP[3].y=_AP[1].y+tileheight;var _w6=_q5;var _y6=_o6;var _x6=_r5;var _z6=_p6;if(_On._CP()&&_5P){var _SO=[new _YO(),new _YO(),new _YO(),new _YO()];var _TO=~~(_vP/_eP);var _UO=~~(_vP%_eP);_RO(_SO,_TO,_UO,tilewidth,tileheight,_VO);if(_On._EP(_gP,_AP,_SO,_w6,_x6,_y6,_z6,_On._aN())){if(_4P!=null)_4P.push(_3P);return true;}}else { if(_On._FP(_AP,_w6,_x6,_y6,_z6)){if(_4P!=null)_4P.push(_3P);return true;}}}}}}return false;}function _pu(_q5,_r5,_o6,_p6,_3P,_4P,_5P){var _2u=_3u._4u();var _6P=null;var _7P=null;var _5u=_3u._6u(_2u,_3P.value);if(_5u!=null){_6P=_5u._8P;_7P=_5u;}if((_7P!=null)&&(_7P._9P===_aP)&&(_7P._bP!=null)&&(_6P!=null)){var _2s=_8r._0s(_7P._cP);if(_2s==null){_H4("Tilemap_CollisionEllipse() - could not find tileset for this map",false);return false;}var _On=_D5._E5(_2s._dP);if((_On==null)||(_On._q8==0)){return false;}var _eP=_On._aN()/_2s.tilewidth; var _fP=_On._aN();var tilewidth,tileheight;var _gP=_On._F6[0];tilewidth=_2s.tilewidth;tileheight=_2s.tileheight;var _hP=1.0/tilewidth;var _iP=1.0/tileheight;var _jP=new _IF();_jP.left=_7P._kP+_6P._lP;_jP.top=_7P._mP+_6P._nP;_jP.right=_jP.left+(_7P._oP*tilewidth);_jP.bottom=_jP.top+(_7P._pP*tileheight);var _G6=_q5;var _J6=_r5;var _e4=_o6;var _g4=_p6;var _qP=_7P._kP+_6P._lP;var _rP=_7P._mP+_6P._nP;_G6-=_qP;_G6*=_hP;_e4-=_qP;_e4*=_hP;_J6-=_rP;_J6*=_iP;_g4-=_rP;_g4*=_iP;if(_e4<_G6){var _jL=_G6;_G6=_e4;_e4=_jL;}if(_J6>_g4){ var _jL=_J6;_J6=_g4;_g4=_jL;}_e4=~~_I6(_e4,_7P._oP-1);_g4=~~_I6(_g4,_7P._pP-1);var _sP=_3u._tP();_sP&=_7P._uP;_G6=~~_H6(_G6,0);_J6=~~_H6(_J6,0);for(var x=_G6;x<=_e4;x++){for(var y=_J6;y<=_g4;y++){var index=(y*_7P._oP)+x;index=~~index;var _VO=_7P._bP[index];_VO&=_sP;var _vP=(_VO>>_wP)&_xP;if(_vP==0)continue;_vP=_2s._yP(_vP,_7P._zP);if(_vP>0){var _AP=[new _BP(),new _BP(),new _BP(),new _BP()];_AP[3].x=_AP[0].x=_jP.left+tilewidth*x;_AP[1].x=_AP[2].x=_AP[0].x+tilewidth;_AP[0].y=_AP[1].y=_jP.top+tileheight*y;_AP[2].y=_AP[3].y=_AP[1].y+tileheight; var _w6=_q5;var _y6=_o6;var _x6=_r5;var _z6=_p6;if(_On._CP()&&_5P){var _SO=[new _YO(),new _YO(),new _YO(),new _YO()];var _TO=~~(_vP/_eP);var _UO=~~(_vP%_eP);_RO(_SO,_TO,_UO,tilewidth,tileheight,_VO);if(_On._GP(_gP,_AP,_SO,_w6,_x6,_y6,_z6,_On._aN())){if(_4P!=null)_4P.push(_3P);return true;}}else {if(_On._HP(_AP,_w6,_x6,_y6,_z6)){if(_4P!=null)_4P.push(_3P);return true;}}}}}}return false;}function _Ut(_q5,_r5,_3P,_4P,_5P){var _2u=_3u._4u();var _6P=null;var _7P=null;var _5u=_3u._6u(_2u,_3P.value);if(_5u!=null){_6P=_5u._8P; _7P=_5u;}if((_7P!=null)&&(_7P._9P===_aP)&&(_7P._bP!=null)&&(_6P!=null)){var _2s=_8r._0s(_7P._cP);if(_2s==null){_0n._Hd(_N6,_P6);_0n._IP=_JP;_H4("Tilemap_InstancePlace() - could not find tileset for this map",false);return false;}var _On=_D5._E5(_2s._dP);if((_On==null)||(_On._q8==0)){return false;}var _eP=_On._aN()/_2s.tilewidth;var _fP=_On._aN();var tilewidth,tileheight;var _gP=_On._F6[0];tilewidth=_2s.tilewidth;tileheight=_2s.tileheight;var _hP=1.0/tilewidth;var _iP=1.0/tileheight;var _jP=new _IF();_jP.left=_7P._kP+_6P._lP; _jP.top=_7P._mP+_6P._nP;_jP.right=_jP.left+(_7P._oP*tilewidth);_jP.bottom=_jP.top+(_7P._pP*tileheight);var _G6=_q5;var _J6=_r5;var _qP=_7P._kP+_6P._lP;var _rP=_7P._mP+_6P._nP;_G6-=_qP;_G6*=_hP;_J6-=_rP;_J6*=_iP;var _sP=_3u._tP();_sP&=_7P._uP;_G6=~~_H6(_G6,0);_J6=~~_H6(_J6,0);_G6=~~_I6(_G6,_7P._oP-1);_J6=~~_I6(_J6,_7P._pP-1);var index=(_J6*_7P._oP)+_G6;index=~~index;var _VO=_7P._bP[index];_VO&=_sP;var _vP=(_VO>>_wP)&_xP;if(_vP==0)return false;_vP=_2s._yP(_vP,_7P._zP);if(_vP>0){if(_On._CP()&&_5P){var _AP=[new _BP(), new _BP(),new _BP(),new _BP()];var _SO=[new _YO(),new _YO(),new _YO(),new _YO()];_AP[3].x=_AP[0].x=_jP.left+tilewidth*_G6;_AP[1].x=_AP[2].x=_AP[0].x+tilewidth;_AP[0].y=_AP[1].y=_jP.top+tileheight*_J6;_AP[2].y=_AP[3].y=_AP[1].y+tileheight;var _TO=~~(_vP/_eP);var _UO=~~(_vP%_eP);_RO(_SO,_TO,_UO,tilewidth,tileheight,_VO);var _KP=((_q5+0.5)-_AP[0].x)/tilewidth;var _LP=((_r5+0.5)-_AP[0].y)/tileheight;var _MP=_SO[0]._X4+_KP*(_SO[1]._X4-_SO[0]._X4)+_LP*(_SO[3]._X4-_SO[0]._X4);var _NP=_SO[0]._Y4+_KP*(_SO[1]._Y4-_SO[0]._Y4)+_LP*(_SO[3]._Y4-_SO[0]._Y4); var ui=~~_MP;var _OP=~~_NP;if((ui<0)||(ui>=_On._aN()))return false;if((_OP<0)||(_OP>=_On._bN()))return false;if(_PP(ui,_OP,_gP,_On._aN())){if(_4P!=null){_4P.push(_3P);}return true;}}else {if(_4P!=null){_4P.push(_3P);}return true;}}}return false;}function _QP(_RP,_Jj,_SP,_2L,_TP,_UP,_VP,_WP){var _G6=(_H6(_RP,_TP));var _J6=(_H6(_SP,_VP));var _e4=(_I6(_Jj,_UP));var _g4=(_I6(_2L,_WP));if(Math.floor(_G6+0.49999)==Math.floor(_e4+0.5))return false;if(Math.floor(_J6+0.49999)==Math.floor(_g4+0.5))return false;return true; }function _XP(_0n,_q5,_r5,_3P,_4P,_5P){var _N6,_P6;var _JP=new _IF();_JP=_0n._IP;_N6=_0n.x;_P6=_0n.y;_0n._Hd(_q5,_r5);if(_0n._YP)_0n._ZP(false);var __P=null;if(_0n.mask_index<0){__P=_D5._E5(_0n.sprite_index);}else {__P=_D5._E5(_0n.mask_index);}if((__P==null)||(__P._q8==0)){return false;}var _2u=_3u._4u();var _6P=null;var _7P=null;var _5u=_3u._6u(_2u,_3P.value);if(_5u!=null){_6P=_5u._8P;_7P=_5u;}if((_7P!=null)&&(_7P._9P===_aP)&&(_7P._bP!=null)&&(_6P!=null)){var _2s=_8r._0s(_7P._cP);if(_2s==null){_0n._Hd(_N6, _P6);_0n._IP=_JP;_H4("Tilemap_InstancePlace() - could not find tileset for this map",false);return false;}var _On=_D5._E5(_2s._dP);if((_On==null)||(_On._q8==0)){return false;}var _eP=_On._aN()/_2s.tilewidth;var _fP=_On._aN();var tilewidth,tileheight;var _gP=_On._F6[0];tilewidth=_2s.tilewidth;tileheight=_2s.tileheight;var _hP=1.0/tilewidth;var _iP=1.0/tileheight;var _jP=new _IF();_jP.left=_7P._kP+_6P._lP;_jP.top=_7P._mP+_6P._nP;_jP.right=_jP.left+(_7P._oP*tilewidth);_jP.bottom=_jP.top+(_7P._pP*tileheight);var _0Q=(_0n._IP); var _G6=(_H6(_0Q.left,_jP.left));var _J6=(_H6(_0Q.top,_jP.top));var _e4=(_I6(_0Q.right,_jP.right));var _g4=(_I6(_0Q.bottom,_jP.bottom));var _qP=_7P._kP+_6P._lP;var _rP=_7P._mP+_6P._nP;_G6-=_qP;_e4-=_qP;_G6*=_hP;_e4*=_hP;_J6-=_rP;_g4-=_rP;_J6*=_iP;_g4*=_iP;var _sP=_3u._tP();_sP&=_7P._uP;_e4=~~_I6(_e4,_7P._oP-1);_g4=~~_I6(_g4,_7P._pP-1);_G6=~~_H6(_G6,0);_J6=~~_H6(_J6,0);for(var x=_G6;x<=_e4;x++){for(var y=_J6;y<=_g4;y++){var index=(y*_7P._oP)+x;index=~~index;var _VO=_7P._bP[index];_VO&=_sP;var _vP=(_VO>>_wP)&_xP; if(_vP==0)continue;_vP=_2s._yP(_vP,_7P._zP);if(_vP>0){if(_On._CP()||__P._CP()&&_5P){var _AP=[new _BP(),new _BP(),new _BP(),new _BP()];var _SO=[new _YO(),new _YO(),new _YO(),new _YO()];_AP[3].x=_AP[0].x=_jP.left+tilewidth*x;_AP[1].x=_AP[2].x=_AP[0].x+tilewidth;_AP[0].y=_AP[1].y=_jP.top+tileheight*y;_AP[2].y=_AP[3].y=_AP[1].y+tileheight;var _TO=~~(_vP/_eP);var _UO=~~(_vP%_eP);_RO(_SO,_TO,_UO,tilewidth,tileheight,_VO);if(__P._1Q(_0n.image_index,_0Q,_0n.x,_0n.y,_0n.image_xscale,_0n.image_yscale,_0n.image_angle, _AP,_SO,_gP,_fP)){_0n._Hd(_N6,_P6);_0n._IP=_JP;if(_4P!=null){_4P.push(_3P);}return true;}}else {var _2Q=_jP.left+tilewidth*x;var _3Q=_2Q+tilewidth;var _4Q=_jP.top+tileheight*y;var _5Q=_4Q+tileheight;if(_QP(_0Q.left,_0Q.right,_0Q.top,_0Q.bottom,_2Q,_3Q,_4Q,_5Q)){_0n._Hd(_N6,_P6);_0n._IP=_JP;if(_4P!=null){_4P.push(_3P);}return true;}}}}}}_0n._Hd(_N6,_P6);_0n._IP=_JP;return false;}function _6Q(_69,_q5,_r5,_Ak){if(_Ak instanceof _Rt){var _St=_Ak.type;if(_St==_Tt){if(_XP(_69,_q5,_r5,_Ak,null,true)){return _Ak;}return -1; }else {var id=_7Q(_69,_q5,_r5,_Ak,null);return id;}}else if(_Ak instanceof Array){for(var i=0;i<_Ak.length;i++){var _Vt=_Ak[i];if((_Vt instanceof _Rt)&&(_Vt.type==_Tt)){if(_XP(_69,_q5,_r5,_Vt,null,true)){return _Vt;}}else {var id=_7Q(_69,_q5,_r5,_Vt,null);if(id!=_Kt)return id;}}return -1;}else {var id=_7Q(_69,_q5,_r5,_Ak,null);return id;}}function instance_place(_Ht,_q5,_r5,_Ak){var id=_6Q(_Ht,_q5,_r5,_Ak,null);return id;}function instance_place_list(_Ht,_q5,_r5,_Ak,_Q7,_au){_q5=yyGetReal(_q5);_r5=yyGetReal(_r5);var _Sg=_Ek._E5(yyGetInt32(_Q7)); if(!_Sg){_H4("Error: invalid ds_list ID (instance_place_list)");return 0;}var _cu=[];var _bu=false;if(_Ak instanceof _Rt){var _St=_Ak.type;if(_St==_Tt){_XP(_Ht,_q5,_r5,_Ak,_cu,true);_bu=true;}}else if(_Ak instanceof Array){for(var i=0;i<_Ak.length;i++){var _Vt=_Ak[i];if((_Vt instanceof _Rt)&&(_Vt.type==_Tt)){_XP(_Ht,_q5,_r5,_Vt,_cu,true);}else {_7Q(_Ht,_q5,_r5,_Vt,_cu);}}_bu=true;}if(!_bu)_7Q(_Ht,_q5,_r5,_Ak,_cu);var _q8=_cu.length;_Wt(_cu,_Sg,_q5,_r5,_au);return _q8;}function _8Q(_Ht,_9Q){if(!_Ht.marked&&_Ht.active){ if((_9Q===undefined)||(_9Q)){_aQ(_Ht);}else {_Ht._N5(_bQ,0,_Ht,_Ht);_Ht.marked=true;}}}function instance_destroy(_Ht,_jg,_9Q){_9Q=_9Q!==undefined?yyGetBool(_9Q):true;if(_jg===undefined){_8Q(_Ht,_9Q);}else {var _BG=GetWithArray(yyGetInt32(_jg));if(_BG!=null&&_BG.length>0){for(var _0n=0;_0n<_BG.length;_0n++){var _1u=_BG[_0n];_8Q(_1u,_9Q);}}}}function position_destroy(_f7,_q5,_r5){var _Vk=_t3._NO._Vk;var _4D=[];for(var i=0;i<_Vk.length;i++){var _1u=_Vk[i];if(_1u._Nt(yyGetReal(_q5),yyGetReal(_r5),true)){_4D.push(_1u); }}for(var i=0;i<_4D.length;i++){instance_destroy(_4D[i]);}}function position_change(_f7,_q5,_r5,_cQ,_dQ){_q5=yyGetReal(_q5);_r5=yyGetReal(_r5);var bottom,top;var _eQ=[];var _fQ=_t3._NO;for(var i=0;i<_fQ._Vk.length;i++){var _1u=_fQ._Vk[i];if(_1u._YP)_1u._ZP();var _IP=_1u._IP;if(!((_q5>_IP.right)||(_q5<_IP.left)||(_r5>_IP.bottom)||(_r5<_IP.top))){_eQ[_eQ.length]=_1u;}}var _fQ=_t3._NO;for(var i=0;i<_eQ.length;i++){instance_change(_eQ[i],yyGetInt32(_cQ),_dQ);}}function motion_set(_f7,_qm,_tm){_f7.direction=yyGetReal(_qm); _f7.speed=yyGetReal(_tm);}function motion_add(_f7,_qm,_tm){_f7._rm(yyGetReal(_qm),yyGetReal(_tm));}function instance_copy(_f7,_gQ){var _hQ=new _iQ(0,0,_jQ++,_f7.object_index,true);var _kQ=_hQ.id;_hQ._lQ(_f7,true);_hQ.id=_kQ;_hQ._mQ=false;var _1u=_t3._nQ(_hQ);if(yyGetBool(_gQ)){_hQ._N5(_2n,0,_hQ,_hQ);_hQ._N5(_3n,0,_hQ,_hQ);}return _Ot(_Pt,_hQ.id);}function _oQ(_f7,_cQ,_dQ){_dQ=yyGetBool(_dQ);if(_dQ){_f7._N5(_pQ,0,_f7,_f7);_f7._N5(_bQ,0,_f7,_f7);}_f7._qQ(yyGetInt32(_cQ),true,false);_f7._rQ(_f7._VF._sQ);_f7._tQ(_t3); if(_dQ){_f7._N5(_2n,0,_f7,_f7);_f7._N5(_3n,0,_f7,_f7);}}function _uQ(_f7,_cQ,_dQ){_cQ=yyGetInt32(_cQ);if(!_i3._vQ(_cQ)){debug("Error: Trying to change an instance to an nonexistent object type.");return;}_oQ(_f7,_cQ,yyGetBool(_dQ));}var instance_change=_uQ;function instance_deactivate_all(_f7,_It){var _Sg=[];_Sg=_t3._NO._Vk;_t3._NO._Wf();var _wQ=_t3._xQ;for(var i=0;i<_Sg.length;i++){if(_Sg[i]==_f7){if(yyGetBool(_It)==false){_t3._yQ(_Sg[i]);}else {_t3._NO._Gf(_Sg[i]);}}else {_t3._yQ(_Sg[i]);}}}function instance_activate_all(_f7){ var _Sg=[];_Sg=_t3._xQ._Vk;_t3._xQ._Wf();var _fQ=_t3._NO;for(var i=0;i<_Sg.length;i++){_t3._zQ(_Sg[i]);}}function _AQ(_Ak,_BQ){if(_Ak._CQ>=0){_BQ=yyGetInt32(_BQ);var _DQ=_i3._E5(_Ak._CQ);if(_DQ){if(_DQ._EQ==_BQ){return true;}else {return _AQ(_DQ,_BQ);}}}return false;};function instance_activate_object(_f7,_cQ){_cQ=yyGetInt32(_cQ);var i;var _eQ=[];var _wQ=_t3._xQ;if(_cQ==_FQ){for(var i=0;i<_wQ._Vk;i++){var _1u=_wQ._Vk[i];_eQ[_eQ.length]=_1u;}}else {for(var i=0;i<_wQ._Vk.length;i++){var _1u=_wQ._Vk[i];if(_1u.object_index==_cQ||_1u.id==_cQ){ _eQ[_eQ.length]=_1u;}else if(_AQ(_i3._E5(_1u.object_index),_cQ)){_eQ[_eQ.length]=_1u;}}}var _fQ=_t3._NO;for(i=0;i<_eQ.length;i++){_t3._zQ(_eQ[i]);}}function instance_deactivate_object(_f7,_cQ){_cQ=yyGetInt32(_cQ);var i;var _eQ=[];var _fQ=_t3._NO;if(_cQ==_FQ){for(var i=0;i<_fQ._Vk.length;i++){var _1u=_fQ._Vk[i];_eQ[_eQ.length]=_1u;}}else {for(var i=0;i<_fQ._Vk.length;i++){var _1u=_fQ._Vk[i];if(_1u.object_index==_cQ||_1u.id==_cQ){_eQ[_eQ.length]=_1u;}else if(_AQ(_i3._E5(_1u.object_index),_cQ)){_eQ[_eQ.length]=_1u; }}}var _wQ=_t3._xQ;for(i=0;i<_eQ.length;i++){_t3._yQ(_eQ[i]);}}function instance_deactivate_region(_f7,_Is,_Js,_m8,_n8,_GQ,_It){_Is=yyGetReal(_Is);_Js=yyGetReal(_Js);_m8=yyGetReal(_m8);_n8=yyGetReal(_n8);var bottom,top,right;var _eQ=[];var _fQ=_t3._NO;right=_Is+_m8-1;bottom=_Js+_n8-1;for(var i=0;i<_fQ._Vk.length;i++){var _HQ=false;var _1u=_fQ._Vk[i];if(_1u._YP)_1u._ZP();var _IP=_1u._IP;if((_IP)&&((_1u.sprite_index>=0)||(_1u.mask_index>=0))){if((_Is>_IP.right)||(right<_IP.left)||(_Js>_IP.bottom)||(bottom<_IP.top)){ _HQ=true;}}else {if((_1u.x>right)||(_1u.x<_Is)||(_1u.y>bottom)||(_1u.y<_Js)){_HQ=true;}}if(_HQ!=yyGetBool(_GQ))_eQ[_eQ.length]=_1u;}var _wQ=_t3._xQ;for(i=0;i<_eQ.length;i++){if(_f7==_eQ[i]){if(!yyGetBool(_It)){_t3._yQ(_eQ[i]);}}else {_t3._yQ(_eQ[i]);}}}function _IQ(_f7,_q5,_r5,_m8,_n8,_It,_JQ,_KQ){_H4("not implemented yet!");}function instance_deactivate_layer(_f7,_ph){var room=_t3;if(room==null){return -1;}var _6P=null;if((typeof(_ph)==="string"))_6P=_3u._LQ(room,yyGetString(_ph).toLowerCase());else _6P=_3u._MQ(room, yyGetInt32(_ph));if(_6P===null)return;for(var __5=0;__5<_6P._NQ.length;__5++){var _7P=_6P._NQ._E5(__5);if(_7P==null)continue;if(_7P._9P==_OQ){room._yQ(_7P._PQ);}}}function instance_activate_layer(_0n,_ph){var room=_t3;if(room==null){return -1;}var _6P=null;if((typeof(_ph)==="string"))_6P=_3u._LQ(room,yyGetString(_ph).toLowerCase());else _6P=_3u._MQ(room,yyGetInt32(_ph));if(_6P===null)return;for(var __5=0;__5<_6P._NQ.length;__5++){var _7P=_6P._NQ._E5(__5);if(_7P==null)continue;if(_7P._9P==_OQ){room._zQ(_7P._PQ); }}}function instance_activate_region(_f7,_Is,_Js,_m8,_n8,_GQ){_Is=yyGetReal(_Is);_Js=yyGetReal(_Js);_m8=yyGetReal(_m8);_n8=yyGetReal(_n8);var i;var bottom,top,right;var _eQ=[];var _wQ=_t3._xQ;right=_Is+_m8-1;bottom=_Js+_n8-1;for(var i=0;i<_wQ._Vk.length;i++){var _HQ=false;var _1u=_wQ._Vk[i];if(_1u._YP)_1u._ZP();var _IP=_1u._IP;if((_1u.sprite_index>=0)||(_1u.mask_index>=0)){if(_IP.right<_Is||_IP.left>right||_IP.bottom<_Js||_IP.top>bottom){_HQ=true;}}else {if((_1u.x>right)||(_1u.x<_Is)||(_1u.y>bottom)||(_1u.y<_Js)){ _HQ=true;}}if(_HQ!=yyGetBool(_GQ))_eQ[_eQ.length]=_1u;}var _fQ=_t3._NO;for(i=0;i<_eQ.length;i++){_t3._zQ(_eQ[i]);}}function keyboard_key_press(_el){_el=yyGetInt32(_el);if(_QQ[_el]){return;}_QQ[_el]=1;_RQ[_el]=1;_SQ=_el;}function keyboard_key_release(_el){_el=yyGetInt32(_el);_TQ[_el]=1;_QQ[_el]=0;}function _UQ(_VQ){{switch(yyGetInt32(_VQ)){case 0:if(_ug._WQ==0)return 0;else return 1;case 1:if((_ug._WQ&1)==0)return 0;else return 1;case 2:if((_ug._WQ&2)==0)return 0;else return 1;case 3:if((_ug._WQ&4)==0)return 0;else return 1; case -1:if(_ug._WQ==0)return 1;else return 0;}}return 0;}function mouse_check_button(_VQ){{switch(yyGetInt32(_VQ)){case 0:if(_ug._Ge[0]||_ug._Ge[1]||_ug._Ge[2]||_ug._Ge[3]||_ug._Ge[4])return 0;else return 1;case 1:if(_ug._Ge[0])return 1;else return 0;case 2:if(_ug._Ge[1])return 1;else return 0;case 3:if(_ug._Ge[2])return 1;else return 0;case 4:if(_ug._Ge[3])return 1;else return 0;case 5:if(_ug._Ge[4])return 1;else return 0;case -1:if(_ug._Ge[0]||_ug._Ge[1]||_ug._Ge[2]||_ug._Ge[3]||_ug._Ge[4])return 1;else return 0;}}return 0;}function mouse_check_button_pressed(_VQ){ {switch(yyGetInt32(_VQ)){case 0:if(_ug._Be[0]||_ug._Be[1]||_ug._Be[2]||_ug._Be[3]||_ug._Be[4])return 0;else return 1;case 1:if(_ug._Be[0])return 1;else return 0;case 2:if(_ug._Be[1])return 1;else return 0;case 3:if(_ug._Be[2])return 1;else return 0;case 4:if(_ug._Be[3])return 1;else return 0;case 5:if(_ug._Be[4])return 1;else return 0;case -1:if(_ug._Be[0]||_ug._Be[1]||_ug._Be[2]||_ug._Be[3]||_ug._Be[4])return 1;else return 0;}}return 0;}function mouse_check_button_released(_VQ){{switch(yyGetInt32(_VQ)){case 0:if(_ug._Fe[0]||_ug._Fe[1]||_ug._Fe[2]||_ug._Fe[3]||_ug._Fe[4])return 0; else return 1;case 1:if(_ug._Fe[0])return 1;else return 0;case 2:if(_ug._Fe[1])return 1;else return 0;case 3:if(_ug._Fe[2])return 1;else return 0;case 4:if(_ug._Fe[3])return 1;else return 0;case 5:if(_ug._Fe[4])return 1;else return 0;case -1:if(_ug._Fe[0]||_ug._Fe[1]||_ug._Fe[2]||_ug._Fe[3]||_ug._Fe[4])return 1;else return 0;}return 0;}}function mouse_wheel_up(){return _XQ;}function mouse_wheel_down(){return _YQ;}function mouse_clear(_Et){_Et=yyGetInt32(_Et);if(_Et==-1){mouse_clear(1);mouse_clear(2);mouse_clear(3);}else if(_Et>=1&&_Et<=3){ var i=_Et-1;_ug._Ge[i]=0;_ug._Be[i]=0;_ug._Fe[i]=0;_xg&=~(1<_3R))return 0;if((_04<0)||(_04>_3R))return 0;_ug._4R[__3]=_04;}function keyboard_get_map(_el){_el=yyGetInt32(_el);if((_el<0)||(_el>_3R))return 0;return _ug._4R[_el];}function keyboard_unset_map(){for(var _G6=0;_G6<_3R;_G6++){_ug._4R[_G6]=_G6;}}function keyboard_virtual_show(){_Ib("keyboard_virtual_show()");}function keyboard_virtual_hide(){_Ib("keyboard_virtual_hide()"); }function keyboard_virtual_status(){_Ib("keyboard_virtual_status()");}function keyboard_virtual_height(){_Ib("keyboard_virtual_height()");}function gesture_drag_time(_B3){}function gesture_drag_distance(_B3){}function gesture_flick_speed(_B3){}function gesture_double_tap_time(_B3){}function gesture_double_tap_distance(_B3){}function gesture_pinch_distance(_B3){}function gesture_pinch_angle_towards(_B3){}function gesture_pinch_angle_away(_B3){}function gesture_rotate_time(_B3){}function gesture_rotate_angle(_B3){ }function gesture_tap_count(_B3){}function gesture_get_drag_time(){}function gesture_get_drag_distance(){}function gesture_get_flick_speed(){}function gesture_get_double_tap_time(){}function gesture_get_double_tap_distance(){}function gesture_get_pinch_distance(){}function gesture_get_pinch_angle_towards(){}function gesture_get_pinch_angle_away(){}function gesture_get_rotate_time(){}function gesture_get_rotate_angle(){}function gesture_get_tap_count(){}var _5R=0,_6R=1,_7R=2,_8R=3,_9R=4,_aR=5,_bR=6;var _cR=0,_dR=1, _OQ=2,_eR=3,_fR=4,_aP=5,_gR=6,_hR=7,_iR=8,_jR=9;var _kR=31;var _lR=29;var _mR=28;var _0P=30;var _nR=(1<<_kR);var _ZO=(1<<_lR);var _XO=(1<<_mR);var _oR=(1<<_0P);var _pR=_mR;var _WO=(0x7<<_pR);var _qR=0x7;var _wP=0;var _rR=(0x7ffff<<_wP);var _xP=(0x7ffff);/*@constructor */function _sR(){this.visible=true;this.foreground=false;this.index=0;this.htiled=false;this.vtiled=false;this._tR=1.0;this._uR=1.0;this.stretch=false;this._vR=0;this.alpha=1.0;this.playbackspeedtype=_wR;this.playbackspeed=0;this.image_speed=0;this.image_index=0; };/*@constructor */function _xR(){this._ne=0;this.depth=0;this._lP=0;this._nP=0;this._yR=0;this._zR=0;this._AR=true;this._BR=0;this._CR="";this._DR=null;this._ER=null;this._FR=-1;this._GR=null;this._NQ=new _Ck();this._HR=true;this._IR=true;this._JR=null;this._KR=null;this._LR=-1;};_xR.prototype._MR=function(_NR){this._JR=_NR;};_xR.prototype._OR=function(){this._JR=null;};_xR.prototype._PR=function(){return this._JR;};_xR.prototype._QR=function(){return this._JR!=null;};_xR.prototype._RR=function(){return this._KR; };/*@constructor */function _SR(){this.pName="";this.id=0;this.type=0;this.depth=0;this.x=0;this.y=0;this.hspeed=0;this.vspeed=0;this.visible=0;};/*@constructor */function _TR(){this.x=0;this.y=0;this.index=0;this.xo=0;this.yo=0;this.w=0;this.h=0;this.depth=0;this.id=0;this.scaleX=0;this.scaleY=0;this.colour=0;};/*@constructor */function _UR(){this._VR=-1;this._PQ=null;this._9P=_OQ;this._WR=false;this._Mr="";};/*@constructor */function _XR(){this._YR=null;this._9P=_dR;this._WR=false;this._Mr="";this._ne=0; };/*@constructor */function _ZR(){this._9P=_aP;this._cP=-1;this._kP=0;this._mP=0;this._oP=0;this._pP=0;this._zP=0;this._bP=[];this._WR=false;this._Mr="";this._ne=0;this._uP=~_nR;};/*@constructor */function __R(){this._9P=_eR;this._0S=[];this._1S=[];this._Mr="";this._ne=0;this._WR=false;};/*@constructor */function _2S(){this._3S=-1;this._4S=1;this._5S=_wR;this._6S=0;this._7S=1;this._8S=0;this._9S=1;this._aS=1;this._bS=0;this._cS=0xffffffff;this._dS=1;this._kP=0;this._mP=0;this._9P=_fR;this._Mr="";this._ne=0; this._WR=false;};/*@constructor */function _eS(){this._fS=-1;this._gS=-1;this._4S=1;this._hS=0;this._cS=0xffffffff;this._dS=1;this._iS=1;this._jS=1;this._kP=0;this._mP=0;this._V2=0;this._9P=_iR;this._Mr="";this._ne=0;this._WR=false;this._8P=null;this._kS=0;};/*@constructor */function _lS(){this._9P=_gR;this._mS=-1;this._Mr="";this._ne=0;this._WR=false;this._nS=-1;this._9S=1.0;this._aS=1.0;this._bS=0.0;this._cS=0xffffffff;this._dS=1.0;this._kP=0;this._mP=0;};/*@constructor */function _oS(){this._AR=true; this._3G=-1;this._kP=0;this._mP=0;this._pS=0;this._qS=0;this._9S=1.0;this._aS=1.0;this._bS=0.0;this._cS=0xffffffff;this._dS=1.0;this._rS=0;this._sS=0;this._9P=_hR;this._Mr="";this._ne=0;this._WR=false;};/*@constructor */function _tS(){this.pName=null;this.type=0;this.elements=0;this._uS=null;};/*@constructor */function _vS(){this._9P=_jR;this.pName="";this._HI=0;this._wS=[];this._xS=false;};var _yS=0;var _zS=1;var _AS=2;var _BS=3;var _CS=32;/*@constructor */function _DS(){this._ES=0;this._FS=0;this._GS=0; this._HS=false;this._IS=0xffffffff;this._JS=-1;this._KS=false;this._LS=0;this._MS=null;};_DS.prototype._NS=function(){return this._ES;};_DS.prototype._OS=function(_jg){this._PS=_jg;};_DS.prototype._QS=function(_RS){this._KS=_RS;};_DS.prototype._SS=function(_Al){this._LS=_Al;};_DS.prototype._TS=function(){return this._KS;};_DS.prototype._US=function(){return this._LS;};_DS.prototype._tP=function(){return this._IS;};_DS.prototype._VS=function(_ph){this._IS=_ph;};_DS.prototype._WS=function(){if(!this._HS){ this._HS=true;}};_DS.prototype._XS=function(_YS,_ZS){if(_ZS._YR!=null){delete(_ZS._YR);_ZS._YR=null;}_YS._NQ.__S(_ZS);};_DS.prototype._0T=function(_YS,_ZS,_1T){if(_ZS._PQ){_ZS._PQ._2T(false);}if(_1T){if(_ZS._VR>=0){var _0n=_Hn._E5(_ZS._VR);if(_0n!=null){instance_destroy(_0n);}}}_YS._NQ.__S(_ZS);};_DS.prototype._3T=function(_YS,_ZS){_YS._NQ.__S(_ZS);};_DS.prototype._4T=function(_YS,_ZS){_YS._NQ.__S(_ZS);};_DS.prototype._5T=function(_YS,_ZS){_YS._NQ.__S(_ZS);};_DS.prototype._6T=function(_YS,_ZS){_YS._NQ.__S(_ZS); };_DS.prototype._7T=function(_YS,_ZS){_YS._NQ.__S(_ZS);};_DS.prototype._8T=function(_YS,_ZS){_YS._NQ.__S(_ZS);};_DS.prototype._9T=function(_Jo,_aT,_YS,_bT,_cT){if(_Jo==null)return;var _sd=_aT;var layer=_YS;if(_sd===null)return;this._dT(_sd);switch(_sd._9P){case _dR:this._XS(layer,_sd);break;case _OQ:this._0T(layer,_sd,_cT);break;case _eR:this._3T(layer,_sd);break;case _fR:this._4T(layer,_sd);break;case _aP:this._5T(layer,_sd);break;case _gR:this._6T(layer,_sd);break;case _hR:this._7T(layer,_sd);break;case _iR:this._8T(layer, _sd);break;};return;};_DS.prototype._eT=function(_Jo,_fT,_bT,_cT){if(_Jo==null)return;var _sd=null;var layer=null;for(var i=0;i<_Jo._gT.length;i++){layer=_Jo._gT._E5(i);_sd=this._hT(layer,_fT);if(_sd!=null)break;}if(_sd===null)return;this._dT(_sd);switch(_sd._9P){case _dR:this._XS(layer,_sd);break;case _OQ:this._0T(layer,_sd,_cT);break;case _eR:this._3T(layer,_sd);break;case _fR:this._4T(layer,_sd);break;case _aP:this._5T(layer,_sd);break;case _gR:this._6T(layer,_sd);break;case _hR:this._7T(layer,_sd);break; case _iR:this._8T(layer,_sd);break;};return;};_DS.prototype._iT=function(_Jo,_ZS,_jT){if(_Jo==null)return;if(_ZS==null)return;if(_jT==null)return;var _kT=_3u._lT(_Jo,_ZS._ne);if(_kT!=null){_kT.layer._NQ.__S(_ZS);}if(_ZS._9P==_OQ){if(_ZS._PQ!=null){_ZS._PQ.layer=_jT._ne;_ZS._PQ._2T(true);}}_jT._NQ._Gf(_ZS);};_DS.prototype._4u=function(){if(this._JS==-1)return _t3;var room=_mT._E5(this._JS);if(room==null)return _t3;return room;};_DS.prototype._nT=function(){};_DS.prototype._oT=function(_Jo,_YS,_ZS){_ZS._WR=true; };_DS.prototype._pT=function(_Jo,_YS,_ZS){var _0n=_Hn._E5(_ZS._VR);if(_0n===null)return;_ZS._PQ=_0n;_0n._qT=_YS._ne;_0n._mQ=true;_0n.depth=_YS.depth;_ZS._WR=true;};_DS.prototype._rT=function(_Jo,_YS,_ZS){_ZS._WR=true;};_DS.prototype._sT=function(_Jo,_YS,_ZS){_ZS._WR=true;};_DS.prototype._tT=function(_Jo,_YS,_ZS){_ZS._WR=true;};_DS.prototype._uT=function(_Jo,_YS,_ZS){if(_ZS._nS!=-1&&_ZS._mS==-1){_0K._E5(_ZS._nS)._vT(_YS._ne,false,_ZS);}_ZS._WR=true;};_DS.prototype._wT=function(_Jo,_YS,_ZS){_ZS._WR=true; };_DS.prototype._xT=function(_Jo,_YS,_ZS){var _yT=_zT._AT();_yT._fS=_ZS._fS;_yT._hS=_ZS._hS;_yT._BT=_ZS._4S;_Jo._CT(_ZS._ne);_ZS._gS=_yT.id;_zT._DT(_yT,_3n);_ZS._WR=true;};_DS.prototype._ET=function(_Jo,_YS,_ZS){if(_Jo===null)return;if(_YS===null)return;if(_ZS===null)return;if(_ZS._WR)return;switch(_ZS._9P){case _dR:this._oT(_Jo,_YS,_ZS);break;case _OQ:this._pT(_Jo,_YS,_ZS);break;case _eR:this._rT(_Jo,_YS,_ZS);break;case _fR:this._sT(_Jo,_YS,_ZS);break;case _aP:this._tT(_Jo,_YS,_ZS);break;case _gR:this._uT(_Jo, _YS,_ZS);break;case _hR:this._wT(_Jo,_YS,_ZS);break;case _iR:this._xT(_Jo,_YS,_ZS);break;}};_DS.prototype._OS=function(_jg){this._ES=_jg;};_DS.prototype._FT=function(_Jo){if((_Jo._gT===null)||(_Jo._gT.length===0))return;for(var i=0;i<_Jo._gT.length;i++){var _GT=_Jo._gT._E5(i);_GT._GR=_pK();for(var __5=0;__5<_GT._NQ.length;__5++){var _7P=_GT._NQ._E5(__5);if(_7P==null)continue;this._ET(_Jo,_GT,_7P);}}};_DS.prototype._HT=function(_Jo,_YS,_ZS,_IT){if(_Jo==null||_YS==null||_ZS===null)return -1;_ZS._ne=this._JT(); _ZS._8P=_YS;var _KT=0;if(_ZS._9P!=_OQ){for(var _LT=0;_LT<_YS._NQ._Vk.length;_LT++){var _MT=_YS._NQ._Vk[_LT];if(_MT==null||_MT._9P!=_OQ){break;}else {if(_MT._PQ!==null&&_MT._PQ.active){_KT=_LT+1;}else {break;}}}}_YS._NQ._Rk(_KT,_ZS);if(_IT){this._ET(_Jo,_YS,_ZS);}return _ZS._ne;};_DS.prototype._NT=function(_Jo,_Al,_ZS,_IT,_OT){if(_Jo==null||_ZS===null)return -1;var layer=this._PT(_Jo,_Al,_OT);if((layer==null)&&(_OT)){layer=this._QT(_Jo,_Al);}if(layer==null){return -1;}return this._HT(_Jo,layer,_ZS,_IT);};_DS.prototype._LQ=function(_Jo, _N3){if(!_N3)return null;_N3=_N3.toLowerCase();for(var i=0;i<_Jo._gT.length;i++){var layer=_Jo._gT._E5(i);if(layer===undefined||layer===null)continue;if(!layer._CR)continue;if(layer._CR.toLowerCase()===_N3){return layer;}}return null;};_DS.prototype._RT=function(_Jo,_ST){if(_Jo==null)return -1;for(var i=0;i<_Jo._gT.length;i++){var layer=_Jo._gT._E5(i);if(layer!=null){for(var __5=0;i=0){var _xU=_Jo._gT._E5(_wU);if((_xU==null)||(_xU.depth==_YS.depth)){if(_xU!=null){if(_xU._BR){_sU[_tU++]=_xU;}}_wU--;}else {break;}};_wU=_uU+1;while(_wU<_Jo._gT.length){var _xU=_Jo._gT._E5(_wU);if((_xU==null)||(_xU.depth==_YS.depth)){if(_xU!=null){if(_xU._BR){_sU[_tU++]=_xU; }}_wU++;}else {break;}};for(var i=0;i<_tU;i++){var _yU=_sU[i];for(var __5=0;__5<_yU._NQ.length;__5++){var _7P=_yU._NQ._E5(__5);if(_7P==null)continue;if(_7P._9P==_OQ){if(_7P._PQ!=null){_7P._PQ._qT=_YS._ne;}}_YS._NQ._Gf(_7P);}_yU._NQ._Wf();_3u._mU(_Jo,_yU._ne,false);}}}};_DS.prototype._PT=function(_Jo,_Al,_zU){if(_Jo==null)return null;for(var i=0;i<_Jo._gT.length;i++){var layer=_Jo._gT._E5(i);if((layer.depth===_Al)&&(!_zU||(layer._BR)))return layer;}return null;};_DS.prototype._MQ=function(_Jo,_jg){for(var i=0; i<_Jo._gT.length;i++){var layer=_Jo._gT._E5(i);if(layer._ne===_jg)return layer;}return null;};_DS.prototype._bU=function(){if(this._FS=0;i--){var _7P=_YS._NQ._E5(i);if(_7P==null||_7P===undefined)continue;if(_7P._9P==_EU)return _7P; }return null;};_DS.prototype._FU=function(_YS,_GU){if(_YS==null||_GU==null)return null;_GU=_GU.toLowerCase();for(var i=0;i<_YS._NQ.length;i++){var _7P=_YS._NQ._E5(i);if(_7P==null||_7P===undefined)continue;if(!_7P._Mr)continue;if(_7P._Mr.toLowerCase()===_GU){return _7P;}}return null;};_DS.prototype._HU=function(_Jo,_ST){if(_Jo==null)return null;for(var i=0;i<_Jo._gT.length;i++){var layer=_Jo._gT._E5(i);if(layer!=null){for(var __5=0;__52000000)_LU=0;layer._lP+=layer._yR;layer._nP+=layer._zR;for(var __5=0;__50)_7P._zP=Math.floor((time/_7r.framelength)%_7r.frames);else _7P._zP=(_7P._zP+1)%_7r.frames;}}}layer._GR=_pK();}};_DS.prototype._YU=function(_Jo){if(_Jo==null)return;if(_Jo._gT==null)return;var _6P,_Vk;_Vk=_Jo._gT._Vk;while(_Vk.length>0){_6P=_Vk[0];if(_6P==null){continue;}this._mU(_Jo,_6P._ne,false);}};_DS.prototype._ZU=function(_Jo){if(_Jo==null)return; if(_Jo._gT==null)return;for(var _G6=0;_G6<_Jo._gT._Vk.length;++_G6){var _YS=_Jo._gT._Vk[_G6];for(var e=0;e<_YS._NQ._Vk.length;++e){var _ZS=_YS._NQ._Vk[e];this._dT(_ZS);}}};_DS.prototype.__U=function(_Jo,_0V){if(_Jo===null)return;if(_0V===null)return;if(!this._HS)this._WS();var _1V=_Jo._2V;var _3V=_Jo._4V;var _KU=_0V.length;{var _6P;for(var __5=_KU-1;__5>=0;__5--){_6P=_0V[__5];var _aU=new _xR();if(_6P.pName!=undefined)_aU._CR=_6P.pName;if(_6P.id!=undefined)_aU._ne=_6P.id;if(_6P.depth!=undefined)_aU.depth=_6P.depth; if(_6P.x!=undefined)_aU._lP=_6P.x;if(_6P.y!=undefined)_aU._nP=_6P.y;if(_6P.hspeed!=undefined)_aU._yR=_6P.hspeed;if(_6P.vspeed!=undefined)_aU._zR=_6P.vspeed;if(_6P.visible!=undefined)_aU._AR=_6P.visible;if(_6P.effectEnabled!=undefined)_aU._HR=_aU._IR=_6P.effectEnabled;if((_6P.effectType!=undefined)&&(_6P.effectType!="")){var _5V=new _vS();_5V.pName=_6P.effectType;_5V._HI=0;for(var _t6=0;_t6<_6P.effectProperties.length;_t6++){var _6V=_6P.effectProperties[_t6].value;if((_6V=="")||_6V.includes(".png")||_6V.includes(".jpg"))continue; var _v6;for(_v6=0;_v6<_t6;_v6++){if(_6P.effectProperties[_t6].name==_6P.effectProperties[_v6].name)break;}if(_t6==_v6){_5V._HI++;}}var _7V=[];var _8V=null;var _9V=-1;var _aV="";var _bV=1;for(var _t6=0;_t6<_6P.effectProperties.length;_t6++){var _6V=_6P.effectProperties[_t6].value;if((_6V=="")||_6V.includes(".png")||_6V.includes(".jpg"))continue;var _cV=_6P.effectProperties[_t6];if(_aV!=_cV.name){_9V++;_aV=_cV.name;_8V=new _tS();_7V[_9V]=_8V;var _dV=_cV.name;_8V.pName=_dV;var _eV=_fV(_cV.type);_bV=_eV.elements; _8V.type=_eV.type;_8V._uS=[];}var _gV=_8V.elements;_8V.elements+=_bV;var _hV=_cV.value;var _iV=_hV;switch(_cV.type){case _yS:_8V._uS[_gV]=parseFloat(_iV);break;case _zS:{if(_hV.length>0){if(_hV[0]=='#'){_iV="0x"+_hV.substring(1);_iV=parseInt(_iV);var _m4=_iV;var _e4,_f4,_g4,_h4;_e4=(_m4&0xff)/255.0;_f4=((_m4>>8)&0xff)/255.0;_g4=((_m4>>16)&0xff)/255.0;_h4=((_m4>>24)&0xff)/255.0;_8V._uS[_gV]=_e4;_8V._uS[_gV+1]=_f4;_8V._uS[_gV+2]=_g4;_8V._uS[_gV+3]=_h4;}}}break;case _AS:_8V._uS[_gV]=_iV;break;}}_5V._wS=_7V; _5V._xS=true;_aU._KR=_5V;}if(_6P.type===_6R){var _jV=new _XR();_jV._YR=new _sR();var _kV;_jV._YR.image_speed=1.0;if(_6P.bvisible!=undefined)_jV._YR.visible=_6P.bvisible;if(_6P.bforeground!=undefined)_jV._YR.foreground=_6P.bforeground;if(_6P.bindex!=undefined)_jV._YR.index=_6P.bindex;if(_6P.bhtiled!=undefined)_jV._YR.htiled=_6P.bhtiled;if(_6P.bvtiled!=undefined)_jV._YR.vtiled=_6P.bvtiled;if(_6P.bblend!=undefined){_jV._YR._vR=_Qc(_6P.bblend);_jV._YR.alpha=((_6P.bblend>>24)&0xff)/255.0;}if(_6P.playbackspeedtype!=undefined)_jV._YR.playbackspeedtype=_6P.playbackspeedtype; if(_6P.bimage_speed!=undefined)_jV._YR.playbackspeed=_6P.bimage_speed;if(_6P.pName!=undefined)_jV._Mr=_6P.pName;if((_6P.bstretch!=undefined)){_jV._YR.stretch=_6P.bstretch;}if((_6P.bstretch!=undefined)&&(_6P.bstretch==true)&&(sprite_exists(_jV._YR.index))){var value=sprite_get_width(_jV._YR.index);if(value>0)_jV._YR._tR=_1V/value;value=sprite_get_height(_jV._YR.index);if(value>0)_jV._YR._uR=_3V/value;}this._HT(_Jo,_aU,_jV);}else if(_6P.type===_7R){var _lV=0;if(_6P.icount!=undefined)_lV=_6P.icount;for(var i=_lV-1; i>=0;i--){var _fU=new _UR();_fU._VR=_6P.iinstIDs[i];this._HT(_Jo,_aU,_fU,false);}}else if(_6P.type===_8R){var _mV=0;if(_6P.acount!=undefined)_mV=_6P.acount;if(_mV>0){var i;for(i=_mV-1;i>=0;i--){var _nV=new _oS();if(_6P.assets[i].ax!=undefined)_nV._kP=_6P.assets[i].ax;if(_6P.assets[i].ay!=undefined)_nV._mP=_6P.assets[i].ay;if(_6P.assets[i].aindex!=undefined)_nV._3G=_6P.assets[i].aindex;if(_6P.assets[i].aXO!=undefined)_nV._rS=_6P.assets[i].aXO;if(_6P.assets[i].aYO!=undefined)_nV._sS=_6P.assets[i].aYO;if(_6P.assets[i].aW!=undefined)_nV._pS=_6P.assets[i].aW; if(_6P.assets[i].aH!=undefined)_nV._qS=_6P.assets[i].aH;if(_6P.assets[i].aXScale!=undefined)_nV._oV=_6P.assets[i].aXScale;if(_6P.assets[i].aYScale!=undefined)_nV._pV=_6P.assets[i].aYScale;if(_6P.assets[i].aBlend!=undefined){_nV._qV=_6P.assets[i].aBlend&0xffffff;_nV._rV=((_6P.assets[i].aBlend>>24)&0xff)/255.0;}this._HT(_Jo,_aU,_nV,false);}}var _sV=0;if(_6P.scount!=undefined)_sV=_6P.scount;if(_sV>0){for(var i=_sV-1;i>=0;i--){var _tV=new _2S();_tV._5S=_wR;_tV._3S=_6P.sprites[i].sIndex;_tV._6S=_6P.sprites[i].sImageIndex; _tV._7S=1.0;if(_6P.sprites[i].sPlaybackSpeedType!=undefined)_tV._5S=_6P.sprites[i].sPlaybackSpeedType;_tV._4S=_6P.sprites[i].sImageSpeed;_tV._8S=_6P.sprites[i].sImageIndex;_tV._9S=_6P.sprites[i].sXScale;_tV._aS=_6P.sprites[i].sYScale;_tV._bS=_6P.sprites[i].sRotation;_tV._cS=_Qc(_6P.sprites[i].sBlend&0xffffff);_tV._dS=((_6P.sprites[i].sBlend>>24)&0xff)/255.0;_tV._kP=_6P.sprites[i].sX;_tV._mP=_6P.sprites[i].sY;_tV._Mr=_6P.sprites[i].sName;this._HT(_Jo,_aU,_tV,false);}}var _uV=0;if(_6P.ecount!=undefined)_uV=_6P.ecount; if(_uV>0){for(var i=_uV-1;i>=0;i--){var _vV=new _eS();_vV._fS=_6P.sequences[i].sIndex;_vV._hS=_6P.sequences[i].sHeadPosition;_vV._cS=_Qc(_6P.sequences[i].sBlend&0xffffff);_vV._dS=((_6P.sequences[i].sBlend>>24)&0xff)/255.0;_vV._iS=_6P.sequences[i].sXScale;_vV._jS=_6P.sequences[i].sYScale;_vV._kP=_6P.sequences[i].sX;_vV._mP=_6P.sequences[i].sY;_vV._V2=_6P.sequences[i].sRotation;_vV._Mr=_6P.sequences[i].sName;_vV._8P=_aU;_vV._4S=_6P.sequences[i].sImageSpeed;this._HT(_Jo,_aU,_vV,false);}}var _wV=0;if(_6P.pcount!=undefined)_wV=_6P.pcount; if(_wV>0){for(var i=_wV-1;i>=0;--i){var _xV=_6P.particles[i];var _yV=new _lS();_yV._mS=-1;_yV._nS=_xV.sIndex;_yV._9S=_xV.sXScale;_yV._aS=_xV.sYScale;_yV._bS=_xV.sRotation;_yV._cS=_Qc(_xV.sBlend&0xffffff);_yV._dS=((_xV.sBlend>>24)&0xff)/255.0;_yV._kP=_xV.sX;_yV._mP=_xV.sY;_yV._CR=_xV.sName;this._HT(_Jo,_aU,_yV,false);}}}else if(_6P.type===_9R){if(_6P.tIndex>=0){var _zV=new _ZR();_zV._cP=_6P.tIndex;_zV._oP=_6P.tMapWidth;_zV._pP=_6P.tMapHeight;_zV._bP=[];var _mV=0;if(_6P.tcount!=undefined)_mV=_6P.tcount;for(var i=0; i<_mV;i++){_zV._bP[i]=_6P.ttiles[i];}if(_6P.pName!=undefined)_zV._Mr=_6P.pName;this._HT(_Jo,_aU,_zV,false);}}else if(_6P.type===_bR){if(_aU._KR!=null){_aU._KR._xS=false;}}_Jo._gT._Gf(_aU);this._OS(_H6(this._NS(),_aU._ne));}}};function _fV(_AV){var type=_BV;if((_AV>=0)||(_AV<_BS)){var _CV=[_BV,_BV,_DV,];type=_CV[_AV];}var _eV={};var elements=1;switch(_AV){case _yS:break;case _zS:elements=4;break;case _AS:break;default :break;}_eV.type=type;_eV.elements=elements;return _eV;}_DS.prototype._EV=function(_f7){this._MS=_f7; };_DS.prototype._FV=function(){return this._MS;};function _GV(room,_HV){if(typeof(_HV)==="string")return _3u._LQ(room,yyGetString(_HV));return _3u._MQ(room,yyGetInt32(_HV));};function _IV(_JV){var room=_3u._4u();if(room==null)return null;return _GV(room,_JV);};function layer_get_id(_N3){var room=_3u._4u();if(room==null)return -1;var _6P=_3u._LQ(room,yyGetString(_N3));if(_6P!=null){return _6P._ne;}return -1;};function layer_get_id_at_depth(_Al){var room=_3u._4u();if(room==null){var _k6=[];_k6[0]=-1;return _k6;}var _pb=[]; var _KU=0;var i;for(i=0;i=100000)_k9-=100000;layer._DR=_rE.Scripts[yyGetInt32(_k9)];}else {layer._DR=_KV;}if(_3u._FV()===null){var _QV=new _iQ(0,0,0,0,false,true);_3u._EV(_QV);}};function layer_script_end(_ph,_KV){var layer=_IV(_ph);if(layer===null)return;if(typeof(_KV)==="number"){var _k9=yyGetInt32(_KV);if(_k9>=100000)_k9-=100000; layer._ER=_rE.Scripts[yyGetInt32(_k9)];}else {layer._ER=_KV;}if(_3u._FV()===null){var _QV=new _iQ(0,0,0,0,false,true);_3u._EV(_QV);}};function layer_shader(_ph,_KV){var layer=_IV(_ph);if(layer===null)return;layer._FR=yyGetInt32(_KV);};function _RV(_wE){var _q4=_wE;var _Yi=_rE.Scripts.length;for(var _t6=0;_t6<_Yi;++_t6){if(_wE==_rE.Scripts[_t6]){_q4=_t6+100000;break;}}return _q4;};function layer_get_script_begin(_ph){var layer=_IV(_ph);if(layer===null)return -1;_SV=_RV(layer._DR);return _SV===null?-1:_SV;};function layer_get_script_end(_ph){ var layer=_IV(_ph);if(layer===null)return -1;_SV=_RV(layer._ER);return _SV===null?-1:_SV;};function layer_get_shader(_ph){var layer=_IV(_ph);if(layer===null)return -1;return layer._FR;};function layer_set_target_room(_ph){_3u._JS=yyGetInt32(_ph);};function layer_get_target_room(){return _3u._JS;}function layer_reset_target_room(){_3u._JS=-1;}function _TV(_UV){var room=_3u._4u();var _7P=_3u._6u(room,_UV);if((_7P!=null)&&(_7P._9P===_dR)&&(_7P._YR!=null))return _7P;return null;};function layer_background_get_id(_ph){ var layer=_IV(_ph);if(layer===null)return -1;var _7P=_3u._FU(layer,layer._CR);if(_7P!=null){return _7P._ne;}};function layer_background_exists(_ph,_KV){var layer=_IV(_ph);if(layer===null)return false;var _7P=_3u._hT(layer,yyGetInt32(_KV));if((_7P!=null)&&(_7P._9P===_dR)&&(_7P._YR!=null)){return true;}return false;};function layer_background_create(_ph,_KV){var room=_3u._4u();if(room===null)return -1;var layer=_GV(room,_ph);if(layer!=null){var _jV=new _XR();_jV._YR=new _sR();var _kV;_jV._YR.visible=true;_jV._YR.foreground=false; _jV._YR.index=yyGetInt32(_KV);_jV._YR.htiled=false;_jV._YR.vtiled=false;_jV._YR._vR=0xffffffff;_jV._YR.alpha=1;_jV._YR.image_index=0;_jV._YR.image_speed=1;_3u._HT(room,layer,_jV);return _jV._ne;}return -1;};function layer_background_destroy(_ph){var room=_3u._4u();if(room===null)return;_3u._eT(room,yyGetInt32(_ph));};function layer_background_visible(_ph,_KV){var _7P=_TV(yyGetInt32(_ph));if(_7P!=null){_7P._YR.visible=yyGetBool(_KV);}};function layer_background_change(_ph,_KV){var _7P=_TV(yyGetInt32(_ph)); if(_7P!=null){_7P._YR.index=yyGetInt32(_KV);}};function layer_background_htiled(_ph,_KV){var _7P=_TV(yyGetInt32(_ph));if(_7P!=null){_7P._YR.htiled=yyGetBool(_KV);}};function layer_background_vtiled(_ph,_KV){var _7P=_TV(yyGetInt32(_ph));if(_7P!=null){_7P._YR.vtiled=yyGetBool(_KV);}};function layer_background_xscale(_ph,_KV){var _7P=_TV(yyGetInt32(_ph));if(_7P!=null){_7P._YR._tR=yyGetReal(_KV);}};function layer_background_yscale(_ph,_KV){var _7P=_TV(yyGetInt32(_ph));if(_7P!=null){_7P._YR._uR=yyGetReal(_KV); }};function layer_background_stretch(_ph,_KV){var _7P=_TV(yyGetInt32(_ph));if(_7P!=null){_7P._YR.stretch=yyGetBool(_KV);}};function layer_background_blend(_ph,_KV){var _7P=_TV(yyGetInt32(_ph));if(_7P!=null){_7P._YR._vR=_Qc(yyGetInt32(_KV));}};function layer_background_alpha(_ph,_KV){var _7P=_TV(yyGetInt32(_ph));if(_7P!=null){_7P._YR.alpha=yyGetReal(_KV);}};function layer_background_index(_ph,_KV){var _7P=_TV(yyGetInt32(_ph));if(_7P!=null){var image_index=yyGetInt32(_KV);var _VV=sprite_get_number(_7P._YR.image_index); _7P._YR.image_index=_A3(image_index,_VV);}};function layer_background_sprite(_ph,_KV){var _7P=_TV(yyGetInt32(_ph));if(_7P!=null){_7P._YR.index=yyGetReal(_KV);}};function layer_background_speed(_ph,_KV){var _7P=_TV(yyGetInt32(_ph));if(_7P!=null){_7P._YR.image_speed=yyGetReal(_KV);}};function layer_background_get_visible(_ph){var _7P=_TV(yyGetInt32(_ph));if(_7P!=null){return _7P._YR.visible;}return true;};function layer_background_get_sprite(_ph){var _7P=_TV(yyGetInt32(_ph));if(_7P!=null){return _7P._YR.index; }return -1;};function layer_background_get_htiled(_ph){var _7P=_TV(yyGetInt32(_ph));if(_7P!=null){return _7P._YR.htiled;}return false;};function layer_background_get_vtiled(_ph){var _7P=_TV(yyGetInt32(_ph));if(_7P!=null){return _7P._YR.vtiled;}return false;};function layer_background_get_stretch(_ph){var _7P=_TV(yyGetInt32(_ph));if(_7P!=null){return _7P._YR.stretch;}return false;};function layer_background_get_xscale(_ph){var _7P=_TV(yyGetInt32(_ph));if(_7P!=null){return _7P._YR._tR;}return 1;};function layer_background_get_yscale(_ph){ var _7P=_TV(yyGetInt32(_ph));if(_7P!=null){return _7P._YR._uR;}return 1;};function layer_background_get_blend(_ph){var _7P=_TV(yyGetInt32(_ph));if(_7P!=null){return _Qc(_7P._YR._vR);}return 0;};function layer_background_get_alpha(_ph){var _7P=_TV(yyGetInt32(_ph));if(_7P!=null){return _7P._YR.alpha;}return 0;};function layer_background_get_index(_ph){var _7P=_TV(yyGetInt32(_ph));if(_7P!=null){return _7P._YR.image_index;}return -1;};function layer_background_get_speed(_ph){var _7P=_TV(yyGetInt32(_ph));if(_7P!=null){ return _7P._YR.image_speed;}return 0;};function _WV(_XV){var room=_3u._4u();var _7P=_3u._6u(room,_XV);if((_7P!=null)&&(_7P._9P===_fR))return _7P;return null;};function layer_sprite_get_id(_YV,_ZV){var room=_3u._4u();if(room===null)return -1;var layer=_GV(room,_YV);if(layer!=null){var _sd=_3u._FU(layer,yyGetString(_ZV));if(_sd!=null&&_sd._9P==_fR){return _sd._ne;}}return -1;};function layer_sprite_exists(_ph,_KV){var room=_3u._4u();if(room===null)return false;var layer=_GV(room,_ph);if(layer===null)return false;var _7P=_3u._hT(layer, yyGetInt32(_KV));if((_7P!=null)&&(_7P._9P===_fR)){return true;}return false;};function layer_sprite_create(_ph,_KV,__V,_0W){var room=_3u._4u();if(room===null)return -1;var layer=_GV(room,_ph);if(layer!=null){var _1W=new _2S();_1W._3S=yyGetInt32(_0W);_1W._kP=yyGetReal(_KV);_1W._mP=yyGetReal(__V);_3u._HT(room,layer,_1W);return _1W._ne;}return -1;};function layer_sprite_destroy(_ph){var room=_3u._4u();if(room===null)return;_3u._eT(room,yyGetInt32(_ph));};function layer_sprite_change(_ph,_KV){var _7P=_WV(_ph);if(_7P!=null){ _7P._3S=yyGetInt32(_KV);}};function layer_sprite_index(_ph,_KV){var room=_3u._4u();if(room===null)return;var _7P=_3u._6u(room,yyGetInt32(_ph));if((_7P!=null)&&(_7P._9P===_fR)){_7P._8S=yyGetInt32(_KV);var frame=yyGetInt32(_KV);var _MU=_D5._E5(_7P._3S);if(_MU!=null){if(_MU.sequence!=null&&_MU.sequence._RU!=null&&_MU.sequence._RU[0]._9P==_SU){var _2W=_MU.sequence._RU[0];var keyframeStore=_2W._UU;var _3W=keyframeStore._4W;if(_3W>0){var _5W=_A3(frame,_3W);var _6W=_5W;var _7W=_5W-_6W;_7P._6S=(keyframeStore._8W[Math.floor(_6W)]._9W+(_7W*_3W)); _7P._8S=_5W;}else {_7P._8S=frame;}}else {_7P._8S=frame;}}else {_7P._8S=frame;}}};function layer_sprite_speed(_ph,_KV){var _7P=_WV(_ph);if(_7P!=null){_7P._4S=yyGetReal(_KV);}};function layer_sprite_xscale(_ph,_KV){var _7P=_WV(_ph);if(_7P!=null){_7P._9S=yyGetReal(_KV);}};function layer_sprite_yscale(_ph,_KV){var _7P=_WV(_ph);if(_7P!=null){_7P._aS=yyGetReal(_KV);}};function layer_sprite_angle(_ph,_KV){var _7P=_WV(_ph);if(_7P!=null){_7P._bS=yyGetReal(_KV);}};function layer_sprite_blend(_ph,_KV){var _7P=_WV(_ph); if(_7P!=null){_7P._cS=_Qc(yyGetInt32(_KV));}};function layer_sprite_alpha(_ph,_KV){var _7P=_WV(_ph);if(_7P!=null){_7P._dS=yyGetReal(_KV);}};function layer_sprite_x(_ph,_KV){var _7P=_WV(_ph);if(_7P!=null){_7P._kP=yyGetReal(_KV);}};function layer_sprite_y(_ph,_KV){var _7P=_WV(_ph);if(_7P!=null){_7P._mP=yyGetReal(_KV);}};function layer_sprite_get_sprite(_ph){var _7P=_WV(_ph);if(_7P!=null){return _7P._3S;}return -1;};function layer_sprite_get_index(_ph){var _7P=_WV(_ph);if(_7P!=null){return _7P._8S;}return -1;};function layer_sprite_get_speed(_ph){ var _7P=_WV(_ph);if(_7P!=null){return _7P._4S;}return 0;};function layer_sprite_get_xscale(_ph){var _7P=_WV(_ph);if(_7P!=null){return _7P._9S;}return 1;};function layer_sprite_get_yscale(_ph){var _7P=_WV(_ph);if(_7P!=null){return _7P._aS;}return 1;};function layer_sprite_get_angle(_ph){var _7P=_WV(_ph);if(_7P!=null){return _7P._bS;}return 0;};function layer_sprite_get_blend(_ph){var _7P=_WV(_ph);if(_7P!=null){return _Qc(_7P._cS);}return 0;};function layer_sprite_get_alpha(_ph){var _7P=_WV(_ph);if(_7P!=null){return _7P._dS; }return 0;};function layer_sprite_get_x(_ph){var _7P=_WV(_ph);if(_7P!=null){return _7P._kP;}return 0;};function layer_sprite_get_y(_ph){var _7P=_WV(_ph);if(_7P!=null){return _7P._mP;}return 0;};function _aW(_bW){var room=_3u._4u();var _7P=_3u._6u(room,_bW);if((_7P!=null)&&(_7P._9P===_aP))return _7P;return null;}function layer_tilemap_get_id(_ph){var room=_3u._4u();if(room===null)_Ot(_Tt,-1);var layer=_GV(room,_ph);if(layer!=null){var _sd=_3u._DU(layer,_aP);if(_sd!=null&&_sd._9P==_aP){return _Ot(_Tt,_sd._ne);}}return _Ot(_Tt, -1);};function layer_tilemap_exists(_ph,_KV){var room=_3u._4u();if(room===null)return false;var layer=_GV(room,_ph);if(layer!=null){var _sd=_3u._hT(layer,yyGetInt32(_KV));if(_sd!=null&&_sd._9P==_aP){return true;}}return false;};function layer_tilemap_create(_ph,_KV,__V,_0W,_cW,_dW){var room=_3u._4u();if(room===null)return _Ot(_Tt,-1);;var layer=_GV(room,_ph);if(layer!=null){var _zV=new _ZR();_zV._cP=yyGetInt32(_0W);_zV._oP=yyGetInt32(_cW);_zV._pP=yyGetInt32(_dW);_zV._kP=yyGetReal(_KV);_zV._mP=yyGetReal(__V); _zV._bP=[];var _mV=0;_mV=_cW*_dW;for(var i=0;i<_mV;i++){_zV._bP[i]=0;}_3u._HT(room,layer,_zV,true);return _Ot(_Tt,_zV._ne);}return _Ot(_Tt,-1);};function layer_tilemap_destroy(_ph){var room=_3u._4u();if(room===null)return;_3u._eT(room,yyGetInt32(_ph));};function layer_x(_ph,_KV){var layer=_IV(_ph);if(layer!=null){layer._lP=yyGetReal(_KV);}};function layer_y(_ph,_KV){var layer=_IV(_ph);if(layer!=null){layer._nP=yyGetReal(_KV);}};function layer_get_x(_ph){var layer=_IV(_ph);if(layer!=null){return layer._lP;}return 0; };function layer_get_y(_ph){var layer=_IV(_ph);if(layer!=null){return layer._nP;}return 0;};function layer_hspeed(_eW,speed){var layer=_IV(_eW);if(layer!=null){layer._yR=yyGetReal(speed);}return 0;};function layer_vspeed(_eW,speed){var layer=_IV(_eW);if(layer!=null){layer._zR=yyGetReal(speed);}return 0;};function layer_get_hspeed(_eW){var layer=_IV(_eW);if(layer!=null){return layer._yR;}return 0;};function layer_get_vspeed(_eW){var layer=_IV(_eW);if(layer!=null){return layer._zR;}return 0;};function tilemap_tileset(_ph, _KV){var _7P=_aW(yyGetInt32(_ph));if(_7P!=null){_7P._cP=yyGetInt32(_KV);}};function tilemap_x(_ph,_KV){var _7P=_aW(yyGetInt32(_ph));if(_7P!=null){_7P._kP=yyGetReal(_KV);}};function tilemap_y(_ph,_KV){var _7P=_aW(yyGetInt32(_ph));if(_7P!=null){_7P._mP=yyGetReal(_KV);}};function tilemap_set(_ph,_KV,__V,_0W){__V=yyGetInt32(__V);_0W=yyGetInt32(_0W);var _7P=_aW(yyGetInt32(_ph));if(_7P!=null){if(__V<0){debug("tilemap_set_tile called with negative x coord, fails");return;}if(_0W<0){debug("tilemap_set_tile called with negative y coord, fails"); return;}if(__V>=_7P._oP){debug("tilemap_set_tile called with x coord greater than map width, fails");return;}if(_0W>=_7P._pP){debug("tilemap_set_tile called with y coord greater than map height, fails");return;}var x=__V;var y=_0W;var _7r=_8r._0s(_7P._cP);var _fW=yyGetInt32(_KV);var _vP=((_fW>>_wP)&_xP);if(_7r!=null&&_vP>=_7r.tilecount){debug("layer_tilemap_set_tile() - tile index outside tile set count");return;}var index=(y*_7P._oP)+x;_7P._bP[index]=_fW;}};/*@constructor */function _BU(){this._sd=-1; this.layer=-1;};function tilemap_set_at_pixel(_ph,_KV,__V,_0W){var room=_3u._4u();var _q4=_3u._lT(room,yyGetInt32(_ph));if(_q4==null)return -1;var _7P=_q4._sd;var _YS=_q4.layer;if((_7P!=null)&&(_7P._9P===_aP)){var _7r=_8r._0s(_7P._cP);var _gW=_7r.tilewidth;var _hW=_7r.tileheight;var _iW=1/_gW;var _jW=1/_hW;var _kW=_7P._kP+_YS._lP;var _lW=_7P._mP+_YS._nP;var _mW=_7P._oP*_gW;var _nW=_7P._pP*_hW;var x=yyGetReal(__V);var y=yyGetReal(_0W);x-=_kW;y-=_lW;if(x<0)return -1;if(y<0)return -1;if(x>=_mW)return -1;if(y>_nW)return -1; var _oW=Math.floor(x*_iW);var _pW=Math.floor(y*_jW);_oW=_H6(0,_I6(_oW,_7P._oP));_pW=_H6(0,_I6(_pW,_7P._pP));var index=_pW*_7P._oP+_oW;var _fW=yyGetInt32(_KV);var _vP=((_fW>>_wP)&_xP);if(_7r!=null&&_vP>=_7r.tilecount){debug("tilemap_set_tile_at_pixel() - tile index outside tile set count");return;}_7P._bP[index]=_fW;}};function tileset_get_texture(_t4){var _Gk=_8r._0s(yyGetInt32(_t4));if(_Gk){return({_Hc:_Gk._5s.texture,_Ic:_Gk._5s});}return null;}function tileset_get_name(_t4){var _Gk=_8r._0s(yyGetInt32(_t4)); if(!_Gk)return "";return _Gk.pName;}function tileset_get_uvs(_t4){var _Gk=_8r._0s(yyGetInt32(_t4));if(_Gk){var _B4=_Gk._5s;var texture=_B4.texture;var _9t=1.0/texture.__c;var _at=1.0/texture._0d;var _bt=[];_bt.push(_B4.x*_9t,_B4.y*_at,(_B4.x+_B4.CropWidth)*_9t,(_B4.y+_B4.CropHeight)*_at);return _bt;}return null;}function tileset_get_info(_t4){var _Gk=_8r._0s(yyGetInt32(_t4));var _q4=undefined;if(_Gk){_q4=new _BH();var _B4=_Gk._5s;var texture=_B4.texture;variable_struct_set(_q4,"width",texture.width);variable_struct_set(_q4, "height",texture.height);variable_struct_set(_q4,"texture",_B4.tp);variable_struct_set(_q4,"tile_width",_Gk.tilewidth);variable_struct_set(_q4,"tile_height",_Gk.tileheight);variable_struct_set(_q4,"tile_horizontal_separator",_Gk.tilehsep);variable_struct_set(_q4,"tile_vertical_separator",_Gk.tilevsep);variable_struct_set(_q4,"tile_columns",_Gk.tilecolumns);variable_struct_set(_q4,"tile_count",_Gk.tilecount);variable_struct_set(_q4,"sprite_index",_Gk._dP);variable_struct_set(_q4,"frame_count",_Gk.frames); variable_struct_set(_q4,"frame_length_ms",_Gk.framelength);var frames=new _BH();for(var _J6=0;_J6<_Gk.tilecount;++_J6){var _qW=true;for(var _ED=0;_qW&&_ED<_Gk.frames;++_ED){var _4Q=_Gk.framedata[(_J6*_Gk.frames)+_ED];if(_4Q==0)break;_qW=(_4Q==_J6);}if(_qW)continue;var _XL=[];for(var _ED=0;_ED<_Gk.frames;++_ED){var _4Q=_Gk.framedata[(_J6*_Gk.frames)+_ED];if(_4Q==0)break;_XL[_ED]=_4Q;}variable_struct_set(frames,_J6.toString(),_XL);}variable_struct_set(_q4,"frames",frames);}return _q4;}function tilemap_get_tileset(_ph){ var _7P=_aW(yyGetInt32(_ph));if(_7P!=null){return _7P._cP;}return -1;};function tilemap_get_tile_width(_ph){var _7P=_aW(yyGetInt32(_ph));if(_7P!=null){var _7r=_8r._0s(_7P._cP);if(_7r!=null){return _7r.tilewidth;}}return -1;};function tilemap_get_tile_height(_ph){var _7P=_aW(yyGetInt32(_ph));if(_7P!=null){var _7r=_8r._0s(_7P._cP);if(_7r!=null){return _7r.tileheight;}}return -1;};function tilemap_get_width(_ph){var _7P=_aW(yyGetInt32(_ph));if(_7P!=null){return _7P._oP;}return -1;};function tilemap_get_height(_ph){var _7P=_aW(yyGetInt32(_ph)); if(_7P!=null){return _7P._pP;}return -1;};function _rW(_sW,_tW,_uW){if(_tW<1)_tW=1;if(_uW<1)_uW=1;var tiles=[];var _mV=_tW*_uW;for(var i=0;i<_mV;++i){tiles[i]=0;}var src=0;var _ba=0;for(var y=0;y=_7P._oP){debug("tilemap_get_tile called with x coord greater than map width, fails");return;}if(__V>=_7P._pP){debug("tilemap_get_tile called with y coord greater than map height, fails");return;}var index=(__V*_7P._oP)+_KV;return _7P._bP[index];}return -1;};function tilemap_get_at_pixel(_ph,_KV,__V){var room=_3u._4u();var _q4=_3u._lT(room,yyGetInt32(_ph));if(_q4==null){return -1;}var _7P=_q4._sd;var _YS=_q4.layer; if((_7P!=null)&&(_7P._9P===_aP)){var _7r=_8r._0s(_7P._cP);var _gW=_7r.tilewidth;var _hW=_7r.tileheight;var _iW=1/_gW;var _jW=1/_hW;var _kW=_7P._kP+_YS._lP;var _lW=_7P._mP+_YS._nP;var _mW=_7P._oP*_gW;var _nW=_7P._pP*_hW;var x=yyGetReal(_KV);var y=yyGetReal(__V);x-=_kW;y-=_lW;if(x<0)return -1;if(y<0)return -1;if(x>=_mW)return -1;if(y>_nW)return -1;var _oW=Math.floor(x*_iW);var _pW=Math.floor(y*_jW);_oW=_H6(0,_I6(_oW,_7P._oP));_pW=_H6(0,_I6(_pW,_7P._pP));var index=_pW*_7P._oP+_oW;return _7P._bP[index];}return -1;};function tilemap_get_cell_x_at_pixel(_ph, _KV,__V){var room=_3u._4u();var _q4=_3u._lT(room,yyGetInt32(_ph));if(_q4==null){return -1;}var _7P=_q4._sd;var _YS=_q4.layer;if((_7P!=null)&&(_7P._9P===_aP)){var _7r=_8r._0s(_7P._cP);var _gW=_7r.tilewidth;var _hW=_7r.tileheight;var _iW=1/_gW;var _jW=1/_hW;var _kW=_7P._kP+_YS._lP;var _lW=_7P._mP+_YS._nP;var _mW=_7P._oP*_gW;var _nW=_7P._pP*_hW;var x=yyGetReal(_KV);var y=yyGetReal(__V);x-=_kW;y-=_lW;if(x<0)return -1;if(y<0)return -1;if(x>=_mW)return -1;if(y>_nW)return -1;return(Math.floor(x*_iW));}return -1;};function tilemap_get_cell_y_at_pixel(_ph, _KV,__V){var room=_3u._4u();var _q4=_3u._lT(room,yyGetInt32(_ph));if(_q4==null){return -1;}var _7P=_q4._sd;var _YS=_q4.layer;if((_7P!=null)&&(_7P._9P===_aP)){var _7r=_8r._0s(_7P._cP);var _gW=_7r.tilewidth;var _hW=_7r.tileheight;var _iW=1/_gW;var _jW=1/_hW;var _kW=_7P._kP+_YS._lP;var _lW=_7P._mP+_YS._nP;var _mW=_7P._oP*_gW;var _nW=_7P._pP*_hW;var x=yyGetReal(_KV);var y=yyGetReal(__V);x-=_kW;y-=_lW;if(x<0)return -1;if(y<0)return -1;if(x>=_mW)return -1;if(y>_nW)return -1;return(Math.floor(y*_jW));}return -1;};function tilemap_clear(_ph, _KV){var room=_3u._4u();var _q4=_3u._lT(room,yyGetInt32(_ph));if(_q4==null){return;}var _7P=_q4._sd;var _YS=_q4.layer;if((_7P!=null)&&(_7P._9P===_aP)&&(_YS!=null)){var _VO=yyGetInt32(_KV);var index=0;for(var i=0;i<_7P._oP;i++){for(var __5=0;__5<_7P._pP;__5++,index++){_7P._bP[index]=_VO;}}}};function tilemap_set_global_mask(_ph){_3u._VS(yyGetInt32(_ph));};function tilemap_get_global_mask(){return _3u._tP();};function tilemap_get_mask(_ph){var _7P=_aW(yyGetInt32(_ph));if(_7P!=null){return _7P._uP;}return -1;};function tilemap_get_frame(_ph){ var _7P=_aW(yyGetInt32(_ph));if(_7P!=null){return _7P._zP;}return -1;};function tilemap_set_mask(_ph,_KV){var _7P=_aW(yyGetInt32(_ph));if(_7P!=null){_7P._uP=yyGetInt32(_KV);}};function draw_tilemap(_0n,_ph,_KV,__V){var _7P=_aW(yyGetInt32(_ph));if(_7P!=null){var room=_3u._4u();var x=yyGetReal(_KV);var y=yyGetReal(__V);var depth=_vW(_0n);room._wW(_NM,null,_7P,x,y,depth);}};function tile_set_empty(_ph){var _fW=yyGetInt32(_ph);_fW&=(~_rR);return _fW;};function tile_set_index(_ph,_KV){var _fW=yyGetInt32(_ph);var _xW=yyGetInt32(_KV); _fW&=(~_rR);_fW|=_xW<<_wP;return _fW;};function tile_set_flip(_ph,_KV){var _yW=yyGetBool(_KV);var _fW=yyGetInt32(_ph);if(_yW)_fW|=_ZO;else _fW&=(~_ZO);return _fW;};function tile_set_mirror(_ph,_KV){var _yW=yyGetBool(_KV);var _fW=yyGetInt32(_ph);if(_yW)_fW|=_XO;else _fW&=(~_XO);return _fW;};function tile_set_rotate(_ph,_KV){var _yW=yyGetBool(_KV);var _fW=yyGetInt32(_ph);if(_yW)_fW|=_oR;else _fW&=(~_oR);return _fW;};function tile_get_empty(_ph){return(yyGetInt32(_ph)&_rR)?0.0:1.0;};function tile_get_index(_ph){var _fW=yyGetInt32(_ph); var index=(_fW&_rR)>>_wP;return index;};function tile_get_flip(_ph){var _fW=yyGetInt32(_ph);return((_fW&_ZO)?true:false);};function tile_get_mirror(_ph){var _fW=yyGetInt32(_ph);return((_fW&_XO)?true:false);};function tile_get_rotate(_ph){var _fW=yyGetInt32(_ph);return((_fW&_oR)?true:false);};function _zW(_pk,_Cq){if(_Cq!=undefined){var _4l=Object.getOwnPropertyNames(_Cq);_4l=_4l.filter(_ue=>!_ue.startsWith("__"));for(var i=0;i<_4l.length;i++){var prop=_4l[i];_AW=g_instance_names[prop];var _Y4=_Cq[prop];if((typeof _Y4=='function')&&_Y4._BW&&_Y4._Bk&&(_Y4._Bk==_Cq)){ _Y4=method(_pk,_Y4);}if(_AW==undefined){_pk[prop]=_Y4;}else if(_AW[1]){if(_AW[3]!=null){var _ED=undefined;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_AW[3]]!=undefined)){_ED=_pk[g_var2obf[_AW[3]]];}else {_ED=_pk[_AW[3]];}if(typeof _ED=='function'){_ED.call(_pk,_Y4);}}else {_pk[prop]=_Y4;}}}}}function instance_create_depth(_q5,_r5,_Al,_CW,_DW){if(_3u._4u()!=_t3)return -1;if(_Al==undefined)_Al=0;_CW=yyGetInt32(_CW);var _NF=_i3._E5(_CW);if(!_NF){_H4("Error: Trying to create an instance using non-existent object type ("+_CW+")"); return _Kt;}var _0n=_t3._EW(yyGetReal(_q5),yyGetReal(_r5),yyGetInt32(_Al),_CW);if(_0n!=null){_0n._N5(_2n,0,_0n,_0n);_zW(_0n,_DW);_0n._N5(_3n,0,_0n,_0n);return _Ot(_Pt,_0n.id);}return _Kt;};function instance_create_layer(_q5,_r5,_YV,_Ak,_DW){if(_3u._4u()!=_t3)return -1;_Ak=yyGetInt32(_Ak);var _NF=_i3._E5(_Ak);if(!_NF){_H4("Error: Trying to create an instance using non-existent object type ("+_Ak+")");return _Kt;}var layer=-1;if(typeof(_YV)=="string")layer=_3u._LQ(_t3,yyGetString(_YV));else layer=_3u._MQ(_t3, yyGetInt32(_YV));if(layer!=null&&layer!=-1){var _1u=_t3._FW(yyGetReal(_q5),yyGetReal(_r5),layer,_Ak);_1u._N5(_2n,0,_1u,_1u);_zW(_1u,_DW);_1u._N5(_3n,0,_1u,_1u);return _Ot(_Pt,_1u.id);}else {_H4("Error: Trying to create an instance on a non-existant layer");}return _Kt;};function layer_get_all(){var room=_3u._4u();var _k6=[];if(room==null){return _k6;}var _KU=0;for(var i=0;i=-0.5){return i;}else {return i-1;}}}else {var _ED=_BX-i;if((i&1)==1){if(_ED>=0.5){return i+1;}else {return i;}}else {if(_ED<=0.5){return i;}else {return i+1;}}}}function _CX(_BX){return ~~_BX;}var round=_AX;var _Xk=_AX;function abs(_BX){return Math.abs(yyGetReal(_BX));}function cos(_BX){return Math.cos(yyGetReal(_BX));}function dcos(_BX){return cos(yyGetReal(_BX)*0.0174532925); }function sin(_BX){return Math.sin(yyGetReal(_BX));}function dsin(_BX){return sin(yyGetReal(_BX)*0.0174532925);}function tan(_BX){return Math.tan(yyGetReal(_BX));}function dtan(_BX){return tan(yyGetReal(_BX)*0.0174532925);}function lengthdir_x(_DX,_qm){var _Y4=(yyGetReal(_DX)*Math.cos(yyGetReal(_qm)*_L6/180.0));var _EX=Math.round(_Y4);var frac=_Y4-_EX;if(Math.abs(frac)<0.0001)return _EX;return _Y4;}function lengthdir_y(_DX,_qm){var _Y4=-(yyGetReal(_DX)*Math.sin(yyGetReal(_qm)*_L6/180.0));var _EX=Math.round(_Y4); var frac=_Y4-_EX;if(Math.abs(frac)<0.0001)return _EX;return _Y4;}function point_direction(_W6,_X6,_o6,_p6){_W6=yyGetReal(_W6);_X6=yyGetReal(_X6);_o6=yyGetReal(_o6);_p6=yyGetReal(_p6);var x=_o6-_W6;var y=_p6-_X6;if(x===0){if(y>0)return 270.0;else if(y<0)return 90.0;else return 0.0;}else {var _2M=180.0*Math.atan2(y,x)/_L6;_2M=(~~round(_2M*1000000))/1000000.0;if(_2M<=0.0){return -_2M;}else {return(360.0-_2M);}}}function _FX(_W6,_X6,_o6,_p6){return point_direction(_W6,_X6,_o6,_p6);}function point_distance(_W6,_X6,_o6, _p6){var _db=yyGetReal(_o6)-yyGetReal(_W6);var _eb=yyGetReal(_p6)-yyGetReal(_X6);return Math.sqrt(_db*_db+_eb*_eb);}function point_distance_3d(_W6,_X6,_GX,_o6,_p6,_HX){return Math.sqrt(_kA(yyGetReal(_o6)-yyGetReal(_W6))+_kA(yyGetReal(_p6)-yyGetReal(_X6))+_kA(yyGetReal(_HX)-yyGetReal(_GX)));}function _I6(_BX,_2L){if(_BX<_2L)return _BX;else return _2L;}function _H6(_BX,_2L){if(_BX>_2L)return _BX;else return _2L;}function max(){var _Ik=arguments;var _Jk=arguments.length;if(_Jk==0)return 0;var _v6=yyGetReal(_Ik[0]);for(var i=1; i<_Jk;i++){var _IX=yyGetReal(_Ik[i]);if(_v6<_IX)_v6=_IX;}return _v6;}function _JX(_BX,_2L,_KX){return max(_BX,_2L,_KX);}function min(){var _Ik=arguments;var _Jk=arguments.length;if(_Jk==0)return 0;var _v6=yyGetReal(_Ik[0]);for(var i=1;i<_Jk;i++){var _IX=yyGetReal(_Ik[i]);if(_v6>_IX)_v6=_IX;}return _v6;}function _LX(_BX,_2L,_KX){return min(_BX,_2L,_KX);}var state=[];var _MX=0;var _NX=_OX(0);var _PX=0xDA442D24;function _OX(_QX){var _ni=_QX;for(var i=0;i<16;i++){_ni=(((_ni*214013+2531011)>>16)&0x7fffffff)|0;state[i]=~~_ni; }_MX=0;_NX=_QX;return _NX;}function _RX(_SX){if(_SX)_PX=0xDA442D20;else _PX=0xDA442D24;}function _TX(){var _h4,_g4,c,_Bm;_h4=state[_MX];c=state[(_MX+13)&15];_g4=_h4^c^(_h4<<16)^(c<<15);c=state[(_MX+9)&15];c^=(c>>11);_h4=state[_MX]=_g4^c;_Bm=_h4^((_h4<<5)&_PX);_MX=(_MX+15)&15;_h4=state[_MX];state[_MX]=_h4^_g4^_Bm^(_h4<<2)^(_g4<<18)^(c<<28);return((state[_MX]&0x7fffffff)/2147483647.0);}function random(_Sc){var _e4=_TX();return _e4*yyGetReal(_Sc);}function irandom(_Sc){_Sc=yyGetInt32(_Sc);var sign=_Sc<0?-1:1; var _e4=_TX()*(_Sc+sign);_TX();return ~~_e4;}function random_range(_UX,_eq){_UX=yyGetReal(_UX);_eq=yyGetReal(_eq);if(_UX==_eq){return _UX;}var _VX,_WX;if(_UX>_eq){_VX=_eq;_WX=_UX;}else {_VX=_UX;_WX=_eq;}var _XX=_TX();var result=_VX+(_XX*(_WX-_VX));_TX();return result;}function random_set_seed(_B3){_OX(yyGetInt32(_B3));}function randomize(){var _Bm=new Date();var _J6=_Bm.getMilliseconds();_J6=(_J6&0xffffffff)^((_J6>>16)&0xffff)^((_J6<<16)&0xffff0000);return _OX(_J6);}var randomise=randomize;function irandom_range(_UX, _eq){_UX=yyGetInt32(_UX);_eq=yyGetInt32(_eq);var _VX,_WX;if(_UX>_eq){_VX=_eq;_WX=_UX;}else {_VX=_UX;_WX=_eq;}var _w6=_VX|0;var _y6=_WX|0;var result=_w6+~~random(_y6-_w6+1);return result;}function random_get_seed(){return _NX;}function choose(){var _Ik=arguments;var _Jk=arguments.length;if(_Jk==0)return 0;var index=Math.floor(random(_Jk));return _Ik[index];}function sign(_q5){_q5=yyGetReal(_q5);if(_q5==0)return 0;if(_q5<0)return -1;return 1;}function ceil(_q5){return Math.ceil(yyGetReal(_q5));}function frac(_q5){_q5=yyGetReal(_q5); return _q5-~~_q5;}function sqrt(_q5){_q5=yyGetReal(_q5);if(_q5>=0)return Math.sqrt(_q5);else _H4("Cannot apply sqrt to negative number.");}function sqr(_q5){_q5=yyGetReal(_q5);return _q5*_q5;}function power(_q5,_LO){return Math.pow(yyGetReal(_q5),yyGetReal(_LO));}function exp(_q5){return Math.exp(yyGetReal(_q5));}function ln(_q5){return Math.log(yyGetReal(_q5));}function log2(_q5){return Math.log(yyGetReal(_q5))/Math.LN2;}function log10(_q5){return Math.log(yyGetReal(_q5))/Math.LN10;}function logn(_LO,_q5){return Math.log(yyGetReal(_q5))/Math.log(yyGetReal(_LO)); }function arcsin(_B3){var _ue=yyGetReal(_B3);if(_YX(_ue,-1.0)){_ue=-1.0;}else if(_YX(_ue,1.0)){_ue=1.0;}if(_ue<-1.0||_ue>1.0){_H4("Value "+_ue+" is not within valid range [-1.0, 1.0]: arcsin()");}return Math.asin(_ue);}function darcsin(_q5){return arcsin(_q5)*57.2957795;}function arccos(_B3){var _ue=yyGetReal(_B3);if(_YX(_ue,-1.0)){_ue=-1.0;}else if(_YX(_ue,1.0)){_ue=1.0;}if(_ue<-1.0||_ue>1.0){_H4("Value "+_ue+" is not within valid range [-1.0, 1.0]: arccos()");}return Math.acos(_ue);}function darccos(_q5){ return arccos(_q5)*57.2957795;}function arctan(_B3){return Math.atan(yyGetReal(_B3));}function darctan(_q5){return Math.atan(yyGetReal(_q5))*57.2957795;}function arctan2(_r5,_q5){return Math.atan2(yyGetReal(_r5),yyGetReal(_q5));}function darctan2(_r5,_q5){return arctan2(_r5,_q5)*57.2957795;}function degtorad(_q5){return yyGetReal(_q5)*0.0174532925;}function radtodeg(_q5){return yyGetReal(_q5)*57.2957795;}function mean(){var _Ik=mean.arguments;var _Jk=mean.arguments.length;if(_Jk==0)return 0;var _v6=yyGetReal(_Ik[0]); for(var i=1;i<_Jk;i++){_v6+=yyGetReal(_Ik[i]);}return(_v6/_Jk);}function median(){var _Ik=median.arguments;var _Jk=median.arguments.length;if(_Jk==0)return 0;var _k6=[];for(var i=0;i<_Jk;i++){_k6[i]=yyGetReal(_Ik[i]);}_k6.sort(function(_h4,_g4){return _h4-_g4;});return _k6[~~(_Jk/2)];}function dot_product(_W6,_X6,_o6,_p6){return(yyGetReal(_W6)*yyGetReal(_o6)+yyGetReal(_X6)*yyGetReal(_p6));}function dot_product_3d(_W6,_X6,_GX,_o6,_p6,_HX){return(yyGetReal(_W6)*yyGetReal(_o6)+yyGetReal(_X6)*yyGetReal(_p6)+yyGetReal(_GX)*yyGetReal(_HX)); }function math_set_epsilon(_ZX){var _Y4=yyGetReal(_ZX);if((_Y4>=0)&&(_Y4<1)){if(_Y4==0)_Y4=0.00000000001;g_GMLMathEpsilon=_Y4;}}function math_get_epsilon(){return g_GMLMathEpsilon;}function dot_product_normalised(_W6,_X6,_o6,_p6){_W6=yyGetReal(_W6);_X6=yyGetReal(_X6);_o6=yyGetReal(_o6);_p6=yyGetReal(_p6);var __X=Math.sqrt(_W6*_W6+_X6*_X6);var _0Y=Math.sqrt(_o6*_o6+_p6*_p6);return(_W6*_o6+_X6*_p6)/(__X*_0Y);}var dot_product_normalized=dot_product_normalised;function dot_product_3d_normalised(_W6,_X6,_GX,_o6, _p6,_HX){_W6=yyGetReal(_W6);_X6=yyGetReal(_X6);_GX=yyGetReal(_GX);_o6=yyGetReal(_o6);_p6=yyGetReal(_p6);_HX=yyGetReal(_HX);var __X=Math.sqrt(_W6*_W6+_X6*_X6+_GX*_GX);var _0Y=Math.sqrt(_o6*_o6+_p6*_p6+_HX*_HX);return(_W6*_o6+_X6*_p6+_GX*_HX)/(__X*_0Y);}var dot_product_3d_normalized=dot_product_3d_normalised;function is_real(_q5){if(typeof(_q5)=="number")return true;else return false;}function is_numeric(_q5){var _q4=false;switch(typeof(_q5)){case "number":case "boolean":_q4=true;break;case "object":if(_q5 instanceof Long){ _q4=true;}break;}return _q4;}function is_bool(_q5){if(typeof(_q5)=="boolean")return true;else return false;}function is_undefined(_q5){if(typeof(_q5)=="undefined")return true;else return false;}function is_int32(_q5){if((typeof(_q5)==="number")&&(~~_q5===_q5))return true;else return false;}function is_int64(_q5){if(_q5 instanceof Long)return true;else return false;}function is_ptr(_q5){return(typeof(_q5)=="object"&&(_q5 instanceof ArrayBuffer))?true:false;}function is_struct(_q5){return((typeof _q5==="object")&&(_q5.__yyIsGMLObject))?true:false; }function is_nan(_q5){try{if(is_ptr(_q5))return false;if(is_struct(_q5))return true;if(is_method(_q5))return true;value=yyGetReal(_q5);return Number.isNaN(value);}catch{return true;}}function is_infinity(_q5){try{_q5=yyGetReal(_q5);return !Number.isFinite(_q5)&&!Number.isNaN(_q5);}catch{return false;}}function static_get(_ni){var _q4=undefined;switch(typeof(_ni)){case "number":var _1Y=yyGetInt32(_ni);if(_1Y>=100000){_2Y=JSON_game.Scripts[_1Y-100000];_q4=_2Y.prototype;_q4.__yyIsGMLObject=true;}break;case "function":_q4=_ni.prototype; _q4.__yyIsGMLObject=true;break;case "object":_q4=Object.getPrototypeOf(_ni);if(_ni.__yyIsGMLObject)_q4.__yyIsGMLObject=true;break;}return _q4;}function static_set(_Bm,_ni){if((typeof(_ni)=="object")&&(typeof(_Bm)=="object")){Object.setPrototypeOf(_Bm,_ni);}}function YYIsInstanceof(_q5,_Sc){var _q4=false;if((typeof(_q5)=="object")&&(_q5.__yyIsGMLObject===true)){var _2Y=undefined;var _1Y=yyGetInt32(_Sc);if(_1Y>=100000)_2Y=JSON_game.Scripts[_1Y-100000];if(_2Y){var c=Object.getPrototypeOf(_q5);var _3Y=_2Y.prototype; while(c&&!_q4){if(c===_3Y){_q4=true;break;}c=Object.getPrototypeOf(c);}}}return _q4;}function YYInstanceof(_q5){var type=typeof(_q5);var _q4=undefined;switch(type){case "function":_q4="function";break;case "object":if(_q5 instanceof Function)_q4="function";else if(_q5.__type==="[instance]"){_q4="instance";}else if(_q5.__type==="[weakref]"){_q4="weakref";}else if(_q5.__type!==undefined){_q4=_q5.__type;if(_q4.startsWith("gml_Script_")){_q4=_q4.substring(11);}if(_q4.startsWith("___struct___")){_q4="struct";}} break;default :break;}return _q4;}function YYTypeof(_q5){var _q4=typeof(_q5);switch(_q4){case "boolean":return "bool";case "function":return "method";case "object":return(_q5 instanceof Array)?"array":(_q5 instanceof ArrayBuffer)?"ptr":(_q5 instanceof Long)?"int64":"struct";default :return _q4;}}function int64(_q5){if(_q5==undefined){_H4("int64() argument is undefined");}else if(_q5==null){_H4("int64() argument is unset");}else if(_q5 instanceof Array){_H4("int64() argument is array");}if((_q5) instanceof Long){return _q5; }switch(typeof(_q5)){case "boolean":return Long._4Y(_q5?1:0,false);break;default :return Long._4Y(_q5,false);break;}}function ptr(_q5){if(_q5 instanceof ArrayBuffer)return _q5;if(_q5 instanceof Array)_H4("ptr argument is an array");if(_q5===undefined)_H4("ptr argument is undefined");var _q4=new ArrayBuffer(8);var _Sz=new DataView(_q4);if(typeof _q5!=="string"){_Sz.setFloat64(0,yyGetReal(_q5));}return _q4;}function is_string(_q5){if(typeof(_q5)=="string")return 1;else return 0;}function is_array(_q5){if(_q5 instanceof Array)return 1; else return 0;}function array_length_1d(_q5){var _q4=undefined;if(_q5 instanceof Array){_q4=_q5.length;}return _q4;}var array_length=array_length_1d;function array_length_2d(_q5,_ZX){_ZX=yyGetInt32(_ZX);var _q4=0;if((_q5 instanceof Array)&&(_ZX>=0)&&(_ZX<_q5.length)){var _yD=_q5[_ZX];if(_yD instanceof Array){_q4=_yD.length;}}return _q4;}function array_height_2d(_q5){var _q4=0;if((_q5 instanceof Array)){_q4=_q5.length;}return _q4;}function clamp(_Vn,_5Y,_yH){_Vn=yyGetReal(_Vn);_5Y=yyGetReal(_5Y);_yH=yyGetReal(_yH);if(_Vn<_5Y)_Vn=_5Y; if(_Vn>_yH)_Vn=_yH;return _Vn;}function lerp(_6Y,_7Y,_PD){_6Y=yyGetReal(_6Y);_7Y=yyGetReal(_7Y);return _6Y+((_7Y-_6Y)*_PD);}function angle_difference(_oj,_pk){_oj=yyGetReal(_oj);_pk=yyGetReal(_pk);return((((_oj-_pk)%360.0)+540.0)%360.0)-180.0;}function _YX(_6Y,_7Y){var _ED=_6Y-_7Y;return abs(_ED)<=g_GMLMathEpsilon;}var _8Y=new RegExp('^'+'[-+]?'+'(?:[0-9]{0,30}\\.)?'+'[0-9]{1,30}'+'(?:[Ee][-+]?[1-2]?[0-9])?');function yyCompareVal(_6Y,_7Y,_gj,_9Y){var _q4=undefined;_9Y=(_9Y==undefined)?true:_9Y;if((typeof _6Y=="number")&&(typeof _7Y=="number")){ var _ED=_6Y-_7Y;if(Number.isNaN(_ED)){_ED=(_6Y==_7Y)?0:_ED;}_q4=abs(_ED)<=_gj?0:(_ED<0.0)?-1:1;}else if(typeof _6Y=="string"&&typeof _7Y=="string"){_q4=(_6Y===_7Y)?0:((_6Y>_7Y)?1:-1);}else if(_6Y===undefined&&_7Y===undefined){_q4=0;}else if(_6Y instanceof ArrayBuffer&&_7Y instanceof ArrayBuffer){_q4=_6Y==_7Y?0:1;}else if(_6Y instanceof Array&&_7Y instanceof Array){_q4=_6Y.length-_7Y.length;if(_q4==0){_q4=_6Y===_7Y?0:1;}}else if(_6Y instanceof Long&&_7Y instanceof Long){_q4=(_6Y.sub(_7Y))._aY();}else if((_6Y===undefined&&_7Y instanceof Array)||(_7Y===undefined&&_6Y instanceof Array)){ _q4=1;}else if(typeof _6Y=="object"&&typeof _7Y=="object"&&_6Y.__yyIsGMLObject&&_7Y.__yyIsGMLObject){_q4=_6Y==_7Y?0:1;}else if(typeof _6Y=="object"&&typeof _7Y=="object"){_q4=_6Y==_7Y?0:1;}else if(typeof _6Y=="function"&&typeof _7Y=="function"){_q4=_6Y==_7Y?0:1;}if(_q4===undefined){if(typeof _6Y=="boolean"){_6Y=_6Y?1:0;}else if(typeof _6Y=="string"){_6Y=_6Y.trim();var match=_6Y.match(_8Y);if(match!=null){_6Y=Number(match);if(Number.isNaN(_6Y))_q4=1;}else _q4=Number.NaN;}else if(_6Y instanceof Long){_6Y=_6Y._aY(); }else if(_6Y instanceof Array){_q4=1;if(_9Y)_H4("illegal array use")}else if(_6Y===undefined){_q4=-2;}if(typeof _7Y=="boolean"){_7Y=_7Y?1:0;}else if(typeof _7Y=="string"){_7Y=_7Y.trim();var match=_7Y.match(_8Y);if(match!=null){_7Y=Number(match);if(Number.isNaN(_7Y))_q4=1;}else _q4=Number.NaN;}else if(_7Y instanceof Long){_7Y=_7Y._aY();}else if(_7Y instanceof Array){if(_9Y)_H4("illegal array use")}else if(_7Y===undefined){_q4=-2;}if(_q4===undefined){if((typeof _6Y=="number")&&(typeof _7Y=="number")){var _ED=_6Y-_7Y; if(Number.isNaN(_ED)){_ED=(_6Y==_7Y)?0:_ED;}_q4=abs(_ED)<=_gj?0:(_ED<0.0)?-1:1;}else {_q4=1;if(typeof _6Y=="number"){_q4=-1;}}}}return _q4;}function yyfplus(_6Y,_7Y){if(_6Y instanceof Long&&_7Y instanceof Long){return _6Y.add(_7Y);}else if(_6Y instanceof Long){_6Y=_6Y._aY();}else if(_7Y instanceof Long){_7Y=_7Y._aY();}if((typeof _6Y==="string")&&(typeof _7Y==="string"))return _6Y+_7Y;if((typeof _6Y==="string")&&(typeof _7Y!=="string"))_H4("unable to add string to "+typeof _7Y);return yyGetReal(_6Y)+yyGetReal(_7Y);}function yyfminus(_6Y, _7Y){if(_6Y instanceof Long&&_7Y instanceof Long){return _6Y.sub(_7Y);}else if(_6Y instanceof Long){_6Y=_6Y._aY();}else if(_7Y instanceof Long){_7Y=_7Y._aY();}return yyGetReal(_6Y)-yyGetReal(_7Y);}function yyftime(_6Y,_7Y){if(_6Y instanceof Long&&_7Y instanceof Long){return _6Y._bY(_7Y);}else if(_6Y instanceof Long){_6Y=_6Y._aY();}else if(_7Y instanceof Long){_7Y=_7Y._aY();}if((typeof _6Y==="number")&&(typeof _7Y==="string")){var _q4="";for(var _t6=yyGetReal(_6Y)-1;_t6>=0;--_t6){_q4+=_7Y;}return _q4;}else return yyGetReal(_6Y)*yyGetReal(_7Y); }function yyfdivide(_6Y,_7Y){if((typeof _6Y==="number")&&(typeof _7Y==="number")){return _6Y/_7Y;}else if(_6Y instanceof Long&&_7Y instanceof Long){return _6Y._aF(_7Y);}if(_6Y instanceof Long){_6Y=_6Y._aY();}if(_7Y instanceof Long){_7Y=_7Y._aY();}var _hb=yyGetReal(_6Y);var __4=yyGetReal(_7Y);var _q4=_hb/__4;return _q4;}function yyfmod(_6Y,_7Y){if((_6Y instanceof Long)&&(_7Y instanceof Long)){return _6Y._cY(_7Y);}if(_7Y instanceof Long){_7Y=_7Y._aY();}if(_6Y instanceof Long){_6Y=_6Y._aY();}var __4=yyGetReal(_7Y);if(__4==0){_H4("unable to mod with zero"); }return yyGetReal(_6Y)%__4;}function yyfdiv(_6Y,_7Y){if(_6Y instanceof Long){return _6Y._aF(_7Y);}else if(_7Y instanceof Long){_7Y=_7Y._aY();}if(_7Y==0)_H4("divide by zero");var _hb=yyGetReal(_6Y);var __4=yyGetReal(_7Y);var _dY=Number.isNaN(_hb);var _eY=Number.isNaN(__4);if(_dY||_eY){if(_dY&&_eY)return 1;if(_dY){if(Number.isFinite(__4))return _hb;else return 1;}if(_eY){if(Number.isFinite(_hb))return __4;else return 1;}}if(_hb===__4)return 1;return ~~(~~_hb/~~__4);}function yyfnotequal(_6Y,_7Y){var _q4=yyCompareVal(_6Y, _7Y,g_GMLMathEpsilon,false);return _q4!=0;}function yyfequal(_6Y,_7Y){var _q4=yyCompareVal(_6Y,_7Y,g_GMLMathEpsilon,false);return _q4==0;}function yyfless(_6Y,_7Y){var _q4=yyCompareVal(_6Y,_7Y,g_GMLMathEpsilon);if(Number.isNaN(_q4)){_H4("unable to compare "+string(_6Y)+" to "+string(_7Y));}return _q4==-2?false:_q4<0;}function yyflessequal(_6Y,_7Y){var _q4=yyCompareVal(_6Y,_7Y,g_GMLMathEpsilon);if(Number.isNaN(_q4)){_H4("unable to compare "+string(_6Y)+" to "+string(_7Y));}return _q4==-2?false:_q4<=0;}function yyfgreater(_6Y, _7Y){var _q4=yyCompareVal(_6Y,_7Y,g_GMLMathEpsilon);if(Number.isNaN(_q4)){_H4("unable to compare "+string(_6Y)+" to "+string(_7Y));}return _q4==-2?false:_q4>0;}function yyfgreaterequal(_6Y,_7Y){var _q4=yyCompareVal(_6Y,_7Y,g_GMLMathEpsilon);if(Number.isNaN(_q4)){_H4("unable to compare "+string(_6Y)+" to "+string(_7Y));}return _q4==-2?false:_q4>=0;}function yyfand(_6Y,_7Y){return yyGetBool(_6Y)&&yyGetBool(_7Y);}function yyfor(_6Y,_7Y){return yyGetBool(_6Y)||yyGetBool(_7Y);}function yyfxor(_6Y,_7Y){_7Y=yyGetBool(_7Y); return yyGetBool(_6Y)?!_7Y:_7Y;}function yyfbitand(_6Y,_7Y){if((typeof _6Y==="number")&&(typeof _7Y==="number"))return _6Y&_7Y;else if((_6Y instanceof Long)&&(_7Y instanceof Long)){return _6Y._fY(_7Y);}else if(_6Y instanceof Long){return _6Y._fY(yyGetInt64(_7Y));}else if(_7Y instanceof Long){return _7Y._fY(yyGetInt64(_6Y));}else if(typeof _6Y=="number")return _6Y&yyGetInt32(_7Y);else if(typeof _7Y=="number")return yyGetInt32(_6Y)&_7Y;return yyGetInt32(_6Y)&yyGetInt32(_7Y);}function yyfbitor(_6Y,_7Y){if((typeof _6Y=="number")&&(typeof _7Y=="number"))return _6Y|_7Y; else if((_6Y instanceof Long)&&(_7Y instanceof Long)){return _6Y._gY(_7Y);}else if(_6Y instanceof Long){return _6Y._gY(yyGetInt64(_7Y));}else if(_7Y instanceof Long){return _7Y._gY(yyGetInt64(_6Y));}else if(typeof _6Y=="number")return _6Y|yyGetInt32(_7Y);else if(typeof _7Y=="number")return yyGetInt32(_6Y)|_7Y;return yyGetInt32(_6Y)|yyGetInt32(_7Y);}function yyfbitxor(_6Y,_7Y){if((typeof _6Y=="number")&&(typeof _7Y=="number"))return _6Y^_7Y;else if((_6Y instanceof Long)&&(_7Y instanceof Long)){return _6Y._hY(_7Y);}else if(_6Y instanceof Long){ return _6Y._hY(yyGetInt64(_7Y));}else if(_7Y instanceof Long){return _7Y._hY(yyGetInt64(_6Y));}else if(typeof _6Y=="number")return _6Y^yyGetInt32(_7Y);else if(typeof _7Y=="number")return yyGetInt32(_6Y)^_7Y;return yyGetInt32(_6Y)^yyGetInt32(_7Y);}function yyfbitshiftleft(_6Y,_VQ){var shift=yyGetInt32(_VQ);var _iY=(_6Y<0);if(_iY)_6Y=-_6Y;if(typeof _6Y=="number"){_6Y=new Long(_6Y);}else if(_6Y instanceof Long){}else {_6Y=yyGetInt64(_6Y);}var _q4=0;if(shift>=64)_q4=0;else _q4=_6Y._jY(shift);if(_iY)_q4=-_q4;return _q4;}function yyfbitshiftright(_6Y, _VQ){var shift=yyGetInt32(_VQ);var _iY=(_6Y<0);if(_iY)_6Y=-_6Y;if(typeof _6Y=="number"){_6Y=new Long(_6Y);}else if(_6Y instanceof Long){}else {_6Y=yyGetInt64(_6Y);}var _q4=0;if(shift>=64)_q4=0;else _q4=_6Y._kY(shift);if(_iY)_q4=-_q4;return _q4;}function extension_exists(_lY){_lY=yyGetString(_lY);const extension=_rE.Extensions.find(_gl=>_gl["name"]==_lY);return extension!==undefined;}function extension_get_version(_lY){_lY=yyGetString(_lY);try{const extension=_rE.Extensions.find(_gl=>_gl["name"]==_lY);if(extension===undefined)return undefined; return extension.version;}catch(_zE){show_debug_message("extension_get_version :: caught unhandled exception "+_zE.message);}return undefined;}function extension_get_option_value(_lY,_mY){_lY=yyGetString(_lY);_mY=yyGetString(_mY);try{if(_rE.ExtensionOptions!==undefined){if(_rE.ExtensionOptions[_lY]!==undefined){return _rE.ExtensionOptions[_lY][_mY];}}}catch(_zE){show_debug_message("extension_get_option_value :: caught unhandled exception "+_zE.message);}return undefined;}function extension_get_option_count(_lY){ _lY=yyGetString(_lY);try{if(_rE.ExtensionOptions!==undefined){if(_rE.ExtensionOptions[_lY]!==undefined){return Object.keys(_rE.ExtensionOptions[_lY]).length;}}}catch(_zE){show_debug_message("extension_get_option_count :: caught unhandled exception "+_zE.message);}return 0;}function extension_get_option_names(_lY){_lY=yyGetString(_lY);try{if(_rE.ExtensionOptions!==undefined){if(_rE.ExtensionOptions[_lY]!==undefined){return Object.keys(_rE.ExtensionOptions[_lY]);}}}catch(_zE){show_debug_message("extension_get_option_names :: caught unhandled exception "+_zE.message); }return [];}function extension_get_options(_lY){_lY=yyGetString(_lY);try{if(_rE.ExtensionOptions!==undefined){if(_rE.ExtensionOptions[_lY]!==undefined){var data=_rE.ExtensionOptions[_lY];var _nY=new _BH();Object.keys(data).forEach(_sd=>{variable_struct_set(_nY,_sd,data[_sd])});return _nY;}}}catch(_zE){show_debug_message("extension_get_options :: caught unhandled exception "+_zE.message);}return {};}function gc_collect(){}function gc_enable(_Nz){}function gc_is_enabled(){return true;}function gc_get_stats(){ var _oY=new Object();_oY.__yyIsGMLObject=true;Object.defineProperties(_oY,{gmlobjects_touched:{enumerable:true,get :function(){return 0;}},gmlobjects_collected:{enumerable:true,get :function(){return 0;}},gmltraversal_time:{enumerable:true,get :function(){return 0;}},gmlcollection_time:{enumerable:true,get :function(){return 0;}},gmlgeneration_collected:{enumerable:true,get :function(){return 0;}},gmlgc_frame:{enumerable:true,get :function(){return 0;}},gmlnum_generations:{enumerable:true,get :function(){return 0; }},gmlnum_objects_in_generation:{enumerable:true,get :function(){var _jL=[];return _jL;}},});return _oY;}var _pY=30,_qY=10,_rY=3,_sY=true;function _tY(_uY,_vY){var _un=0.0;while(_uY<=0.0){_uY=_uY+360;}while(_uY>=360.0){_uY=_uY-360;}while(_vY<0.0){_vY=_vY+360;}while(_vY>=360.){_vY=_vY-360;}_un=_vY-_uY;if(_un<0){_un=-_un;}if(_un>180){_un=360-_un;}return _un;}function _wY(_Ht,_q5,_r5,_CW,_zq){if(_CW==_FQ){if(_zq){return place_empty(_Ht,_q5,_r5);}else {return place_free(_Ht,_q5,_r5);}}else {return(instance_place(_Ht, _q5,_r5,_CW)==_Kt);}}function _xY(_Ht,_q5,_r5,_yq,_CW,_zq){_q5=yyGetReal(_q5);_r5=yyGetReal(_r5);_yq=yyGetReal(_yq);_zq=yyGetBool(_zq);var _un=false;var _9u=0.0;var _yY=0.0;var _zY=0.0;if((_Ht.x==_q5)&&(_Ht.y==_r5))return true;_9u=sqrt(_kA(_Ht.x-_q5)+_kA(_Ht.y-_r5));if(_9u<=_yq){_yY=_q5;_zY=_r5;_un=true;}else {_yY=_Ht.x+_yq*(_q5-_Ht.x)/_9u;_zY=_Ht.y+_yq*(_r5-_Ht.y)/_9u;_un=false;}if(!_wY(_Ht,_yY,_zY,_CW,_zq)){return _un;}_Ht.direction=point_direction(_Ht.x,_Ht.y,_yY,_zY);_Ht._Hd(_yY,_zY);return _un;}function mp_linear_step(_Ht, _q5,_r5,_yq,_zq){return _xY(_Ht,_q5,_r5,_yq,_FQ,_zq);}function mp_linear_step_object(_Ht,_q5,_r5,_yq,_Ak){return _xY(_Ht,_q5,_r5,_yq,_Ak,true);}function _AY(_qm,_Ht,_tm,_CW,_zq){var _un=false;var _BY=0.0;var _CY=0.0;if(_tY(_qm,_Ht.direction)>_pY){return _un;}_BY=_Ht.x+_tm*_rY*cos(_L6*_qm/180);_CY=_Ht.y-_tm*_rY*sin(_L6*_qm/180);if(true!=_wY(_Ht,_BY,_CY,_CW,_zq)){return _un;}_BY=_Ht.x+_tm*cos(_L6*_qm/180);_CY=_Ht.y-_tm*sin(_L6*_qm/180);if(true!=_wY(_Ht,_BY,_CY,_CW,_zq)){return _un;}_Ht.direction=_qm;_Ht._Hd(_BY, _CY);_un=true;return _un;}function _DY(_Ht,_q5,_r5,_yq,_cQ,_zq){_q5=yyGetReal(_q5);_r5=yyGetReal(_r5);_yq=yyGetReal(_yq);_cQ=yyGetInt32(_cQ);_zq=yyGetBool(_zq);var _un=false;var _9u=0.0;var _EY=0.0;var _FY=0.0;if((_Ht.x==_q5)&&(_Ht.y==_r5)){_un=true;return _un;}_9u=sqrt(_kA(_Ht.x-_q5)+_kA(_Ht.y-_r5));if(_9u<=_yq){if(_wY(_Ht,_q5,_r5,_cQ,_zq)){_Ht.direction=_FX(_Ht.x,_Ht.y,_q5,_r5);_Ht._Hd(_q5,_r5);}_un=true;return _un;}_EY=_FX(_Ht.x,_Ht.y,_q5,_r5);_FY=0;_un=false;while(_FY<180){if(_AY(_EY-_FY,_Ht,_yq,_cQ, _zq)){return _un;}if(_AY(_EY+_FY,_Ht,_yq,_cQ,_zq)){return _un;}_FY=_FY+_qY;}if(_sY){_Ht.direction=_Ht.direction+_pY;}return _un;}function mp_potential_step(_Ht,_q5,_r5,_yq,_zq){return _DY(_Ht,_q5,_r5,_yq,_FQ,_zq);}function mp_potential_step_object(_Ht,_q5,_r5,_yq,_Ak){return _DY(_Ht,_q5,_r5,_yq,_Ak,true);}function mp_potential_settings(_Ht,_GY,_HY,_IY,_JY){_pY=_H6(1,yyGetReal(_GY));_qY=_H6(1,yyGetReal(_HY));_rY=_H6(1,yyGetReal(_IY));_sY=yyGetBool(_JY);}function _KY(_f7,_q5,_r5,_tm,_CW,_zq){var _un=false;var _9u=0.0; var _yY=0.0;var _zY=0.0;if((_f7.x==_q5)&&(_f7.y==_r5)){return true;}_9u=Math.sqrt(_kA(_f7.x-_q5)+_kA(_f7.y-_r5));if(_9u<=_tm){_yY=_q5;_zY=_r5;_un=true;}else {_yY=_f7.x+_tm*(_q5-_f7.x)/_9u;_zY=_f7.y+_tm*(_r5-_f7.y)/_9u;_un=false;}if(!_wY(_f7,_yY,_zY,_CW,_zq)){return _un;}_f7.direction=_FX(_f7.x,_f7.y,_yY,_zY);_f7._Hd(_yY,_zY);return _un;}function _LY(_Ht,_qq,_MY,_NY,_yq,_CW,_zq){var _N6=0.0;var _P6=0.0;var _2M=0.0;var _OY=0.0;var _PY=0.0;var _un=false;var _QY=_RY.Paths[yyGetInt32(_qq)];if(!_QY)return _un;if(_yq<=0.0)return _un; _N6=_Ht.x;_P6=_Ht.y;_2M=_Ht.direction;_QY._Wf();_QY._SY(_TY);_QY._UY(false);_QY._VY(_N6,_P6,100);_un=true;while(1){_OY=_Ht.x;_PY=_Ht.y;if(true==_KY(_Ht,_MY,_NY,_yq,_CW,_zq)){break;}if((_Ht.x==_OY)&&(_Ht.y==_PY)){_un=false;break;}_QY._VY(_Ht.x,_Ht.y,100);}if(true==_un){_QY._VY(_MY,_NY,100);}_Ht._Hd(_N6,_P6);_Ht.direction=_2M;return _un;}function mp_linear_path(_Ht,_qq,_MY,_NY,_yq,_zq){return _LY(_Ht,yyGetInt32(_qq),yyGetReal(_MY),yyGetReal(_NY),yyGetReal(_yq),_FQ,yyGetBool(_zq));}function mp_linear_path_object(_Ht, _qq,_MY,_NY,_yq,_Ak){return _LY(_Ht,yyGetInt32(_qq),yyGetReal(_MY),yyGetReal(_NY),yyGetReal(_yq),yyGetInt32(_Ak),true);}function _tY(_uY,_vY){var _un=0.0;while(_uY<=0.0){_uY=_uY+360.0;}while(_uY>=360.0){_uY=_uY-360.0;}while(_vY<0.0){_vY=_vY+360.0;}while(_vY>=360.0){_vY=_vY-360.0;}_un=_vY-_uY;if(_un<0.0){_un=-_un;}if(_un>180.0){_un=360.0-_un;}return _un;}function _AY(_qm,_f7,_tm,_CW,_zq){var _BY=0.0;var _CY=0.0;if(_tY(_qm,_f7.direction)>_pY){return false;}_BY=_f7.x+_tm*_rY*Math.cos(Math.PI*_qm/180.0);_CY=_f7.y-_tm*_rY*Math.sin(Math.PI*_qm/180.0); if(!_wY(_f7,_BY,_CY,_CW,_zq)){return false;}_BY=_f7.x+_tm*Math.cos(Math.PI*_qm/180.0);_CY=_f7.y-_tm*Math.sin(Math.PI*_qm/180.0);if(!_wY(_f7,_BY,_CY,_CW,_zq)){return false;}_f7.direction=_qm;_f7._Hd(_BY,_CY);return true;}function _WY(_f7,_q5,_r5,_tm,_CW,_zq){var _un=false;var _9u=0.0;var _EY=0.0;var _FY=0.0;if((_f7.x==_q5)&&(_f7.y==_r5)){return true;}_9u=Math.sqrt(_kA(_f7.x-_q5)+_kA(_f7.y-_r5));if(_9u<=_tm){if(true==_wY(_f7,_q5,_r5,_CW,_zq)){_f7.direction=_FX(_f7.x,_f7.y,_q5,_r5);_f7._Hd(_q5,_r5);}return true; }_EY=_FX(_f7.x,_f7.y,_q5,_r5);_FY=0;_un=false;while(_FY<180){if(_AY(_EY-_FY,_f7,_tm,_CW,_zq)){return _un;}if(_AY(_EY+_FY,_f7,_tm,_CW,_zq)){return _un;}_FY=_FY+_qY;}if(_sY){_f7.direction=_f7.direction+_pY;}return _un;}function _XY(_f7,_qq,_MY,_NY,_yq,_YY,_CW,_zq){var _un=false;var _ZY=0.0;var _N6=0.0;var _P6=0.0;var _2M=0.0;var _QY=_RY.Paths[_qq];if(!_QY)return _un;if(_YY<1){return _un;}if(_yq<=0){return _un;}_ZY=Math.sqrt(_kA(_MY-_f7.x)+_kA(_NY-_f7.y))*_YY;_N6=_f7.x;_P6=_f7.y;_2M=_f7.direction;_QY._Wf();_QY._SY(_TY); _QY._UY(false);_QY._VY(_N6,_P6,100);_un=true;var __Y=0;var _0Z=0;var _1Z=0;while(1){if(true==_WY(_f7,_MY,_NY,_yq,_CW,_zq))break;_QY._VY(_f7.x,_f7.y,100);__Y=_0Z;_0Z=_QY.length;if(_0Z>_ZY){_un=false;break;}if(_0Z==__Y){++_1Z;if(_1Z>100){_un=false;break;}}else {_1Z=0;}}if(_un){_QY._VY(_MY,_NY,100);}_f7._Hd(_N6,_P6);_f7.direction=_2M;return _un;}function mp_potential_path(_Ht,_qq,_MY,_NY,_yq,_2Z,_zq){return _XY(_Ht,yyGetInt32(_qq),yyGetReal(_MY),yyGetReal(_NY),yyGetReal(_yq),yyGetReal(_2Z),_FQ,yyGetBool(_zq)); }function mp_potential_path_object(_Ht,_qq,_MY,_NY,_yq,_2Z,_Ak){return _XY(_Ht,yyGetInt32(_qq),yyGetReal(_MY),yyGetReal(_NY),yyGetReal(_yq),yyGetReal(_2Z),yyGetInt32(_Ak),true);}/*@constructor */function _3Z(_Is,_Js,_4Z,_5Z,_6Z,_7Z){this._8Z=_Is;this._9Z=_Js;this._tk=~~_4Z;this._uk=~~_5Z;this._aZ=_6Z;this._bZ=_7Z;this._xk=[];this._Wf();};_3Z.prototype._Wf=function(){var _cZ=this._tk*this._uk;for(var i=0;i<_cZ;i++){this._xk[i]=0;}};_3Z.prototype._dZ=function(_q5,_r5,_B3){if(_q5<0||_q5>=this._tk)return; if(_r5<0||_r5>=this._uk)return;this._xk[(_q5*this._uk)+_r5]=_B3;};_3Z.prototype._eZ=function(_q5,_r5){if(_q5<0||_q5>=this._tk)return -1;if(_r5<0||_r5>=this._uk)return -1;return this._xk[(_q5*this._uk)+_r5];};_3Z.prototype._fZ=function(_W6,_X6,_o6,_p6,_B3){var _TL=~~((_I6(_W6,_o6)-this._8Z)/this._aZ);if(_TL<0)_TL=0;var _UL=~~((_H6(_W6,_o6)-this._8Z)/this._aZ);if(_UL>=this._tk)_UL=this._tk-1;var _VL=~~((_I6(_X6,_p6)-this._9Z)/this._bZ);if(_VL<0)_VL=0;var _WL=~~((_H6(_X6,_p6)-this._9Z)/this._bZ);if(_WL>=this._uk)_WL=this._uk-1; for(var i=_TL;i<=_UL;i++){var index=i*this._uk;for(var __5=_VL;__5<=_WL;__5++){this._xk[index+__5]=_B3;}}};function mp_grid_create(_Is,_Js,_gZ,_hZ,_6Z,_7Z){var _G6=new _3Z(yyGetInt32(_Is),yyGetInt32(_Js),yyGetInt32(_gZ),yyGetInt32(_hZ),yyGetInt32(_6Z),yyGetInt32(_7Z));return _sk._Gf(_G6);}function mp_grid_destroy(_jg){_sk._rj(yyGetInt32(_jg));}function mp_grid_clear_all(_jg){var _iZ=_sk._E5(yyGetInt32(_jg));if(_iZ){_iZ._Wf();return;}_H4("Error: invalid mp_grid ID (mp_grid_clear_all)");}function mp_grid_clear_cell(_jg, _lj,_Sc){var _iZ=_sk._E5(yyGetInt32(_jg));if(_iZ){_iZ._dZ(yyGetInt32(_lj),yyGetInt32(_Sc),0);return;}_H4("Error: invalid mp_grid ID (mp_grid_clear_cell)");}function mp_grid_clear_rectangle(_jg,_W6,_X6,_o6,_p6){var _iZ=_sk._E5(yyGetInt32(_jg));if(_iZ){_iZ._fZ(yyGetInt32(_W6),yyGetInt32(_X6),yyGetInt32(_o6),yyGetInt32(_p6),0);return;}_H4("Error: invalid mp_grid ID (mp_grid_clear_rectangle)");}function mp_grid_add_cell(_jg,_q5,_r5){var _iZ=_sk._E5(yyGetInt32(_jg));if(_iZ){_iZ._dZ(yyGetInt32(_q5),yyGetInt32(_r5), -1);return;}_H4("Error: invalid mp_grid ID (mp_grid_add_cell)");}function mp_grid_get_cell(_jg,_q5,_r5){var _iZ=_sk._E5(yyGetInt32(_jg));if(_iZ){return _iZ._eZ(yyGetInt32(_q5),yyGetInt32(_r5));}return -1;}function mp_grid_add_rectangle(_jg,_W6,_X6,_o6,_p6){var _iZ=_sk._E5(yyGetInt32(_jg));if(_iZ){_iZ._fZ(yyGetInt32(_W6),yyGetInt32(_X6),yyGetInt32(_o6),yyGetInt32(_p6),-1);return;}_H4("Error: invalid mp_grid ID (mp_grid_add_rectangle)");}function mp_grid_add_instances(_f7,_jg,_Ak,_gj){var _iZ=_sk._E5(yyGetInt32(_jg)); if(_iZ){var _jZ=0.0001;if(_kZ){_jZ=0.0;}var _lZ=GetWithArray(yyGetInt32(_Ak));for(var _mZ=0;_mZ<_lZ.length;_mZ++){var _1u=_lZ[_mZ];if(_1u.marked||!_1u.active)continue;if(_1u._YP)_1u._ZP();var _TL=~~((_1u._IP.left+_jZ-_iZ._8Z)/_iZ._aZ);if(_TL<0)_TL=0;var _UL=~~((_1u._IP.right-_jZ-_iZ._8Z)/_iZ._aZ);if(_UL>=_iZ._tk)_UL=_iZ._tk-1;var _VL=~~((_1u._IP.top+_jZ-_iZ._9Z)/_iZ._bZ);if(_VL<0)_VL=0;var _WL=~~((_1u._IP.bottom-_jZ-_iZ._9Z)/_iZ._bZ);if(_WL>=_iZ._uk)_WL=_iZ._uk-1;for(var i=_TL;i<=_UL;i++){for(var __5=_VL; __5<=_WL;__5++){if(!yyGetBool(_gj)){_iZ._xk[i*_iZ._uk+__5]=-1;continue;}if(_iZ._xk[i*_iZ._uk+__5]<0)continue;if(_1u._eu(_iZ._8Z+i*_iZ._aZ,_iZ._9Z+__5*_iZ._bZ,_iZ._8Z+(i+1)*_iZ._aZ-1,_iZ._9Z+(__5+1)*_iZ._bZ-1,true)){_iZ._xk[i*_iZ._uk+__5]=-1;}}}}return;}_H4("Error: invalid mp_grid ID (mp_grid_add_instances)");}var mp_grid_draw=_nZ;function _nZ(_jg){var _iZ=_sk._E5(yyGetInt32(_jg));if(_iZ){_1a.globalAlpha=_Nc;var _iv=_ns(0xff0000,1.0);var _jv=_ns(0x00ff00,1.0);for(var x=0;x<_iZ._tk;x++){for(var y=0;y<_iZ._uk; y++){var _m4=_jv;if(_iZ._xk[x*_iZ._uk+y]<0){_m4=_iv;}_1a.fillStyle=_m4;_1a._oL((_iZ._8Z+x*_iZ._aZ),(_iZ._9Z+y*_iZ._bZ),_iZ._aZ,_iZ._bZ);}}return;}_H4("Error: invalid mp_grid ID (mp_grid_draw)");}function mp_grid_path(_Ht,_jg,_qq,_oZ,_pZ,_qZ,_rZ,_sZ){_oZ=yyGetInt32(_oZ);_pZ=yyGetInt32(_pZ);_qZ=yyGetInt32(_qZ);_rZ=yyGetInt32(_rZ);_sZ=yyGetBool(_sZ);var _tZ,_uZ,_vZ,_wZ,i,__5,_ue,_Bm,_N6,_P6,_xZ,_yZ,_zZ,_AZ,_BZ,_CZ,_DZ,_EZ,_FZ;var _un=false;var _iZ=_sk._E5(yyGetInt32(_jg));var _QY=_RY.Paths[yyGetInt32(_qq)]; if(!_QY||!_iZ){return _un;}if((_oZ<_iZ._8Z)||(_oZ>=(_iZ._8Z+_iZ._tk*_iZ._aZ))){return _un;}if((_pZ<_iZ._9Z)||(_pZ>=_iZ._9Z+_iZ._uk*_iZ._bZ)){return _un;}_tZ=~~((_oZ-_iZ._8Z)/_iZ._aZ);_uZ=~~((_pZ-_iZ._9Z)/_iZ._bZ);if(_iZ._xk[_tZ*_iZ._uk+_uZ]<0){return _un;}if((_qZ<_iZ._8Z)||(_qZ>=_iZ._8Z+_iZ._tk*_iZ._aZ)){return _un;}if((_rZ<_iZ._9Z)||(_rZ>=_iZ._9Z+_iZ._uk*_iZ._bZ)){return _un;}_vZ=~~((_qZ-_iZ._8Z)/_iZ._aZ);_wZ=~~((_rZ-_iZ._9Z)/_iZ._bZ);if(_iZ._xk[_vZ*_iZ._uk+_wZ]<0){return _un;}_iZ._xk[_tZ*_iZ._uk+_uZ]=1; _FZ=new _GZ();_FZ._HZ((_tZ*_iZ._uk+_uZ));while(_FZ._IZ(1)){_ue=_FZ._JZ();_N6=~~(_ue/_iZ._uk);_P6=~~(_ue%_iZ._uk);if((_N6==_vZ)&&(_P6==_wZ)){_un=true;break;}_Bm=_iZ._xk[_ue]+1;_xZ=(_N6>0)&&(_P6<_iZ._uk-1)&&(_iZ._xk[(_N6-1)*_iZ._uk+(_P6+1)]==0);_yZ=(_P6<_iZ._uk-1)&&(_iZ._xk[(_N6)*_iZ._uk+(_P6+1)]==0);_zZ=(_N6<_iZ._tk-1)&&(_P6<_iZ._uk-1)&&(_iZ._xk[(_N6+1)*_iZ._uk+(_P6+1)]==0);_AZ=(_N6>0)&&(_iZ._xk[(_N6-1)*_iZ._uk+(_P6)]==0);_BZ=(_N6<_iZ._tk-1)&&(_iZ._xk[(_N6+1)*_iZ._uk+(_P6)]==0);_CZ=(_N6>0)&&(_P6>0)&&(_iZ._xk[(_N6-1)*_iZ._uk+(_P6-1)]==0); _DZ=(_P6>0)&&(_iZ._xk[(_N6)*_iZ._uk+(_P6-1)]==0);_EZ=(_N6<_iZ._tk-1)&&(_P6>0)&&(_iZ._xk[(_N6+1)*_iZ._uk+(_P6-1)]==0);if(_AZ){_iZ._xk[(_N6-1)*_iZ._uk+_P6]=_Bm;_FZ._HZ(~~((_N6-1)*_iZ._uk+_P6));}if(_BZ){_iZ._xk[(_N6+1)*_iZ._uk+_P6]=_Bm;_FZ._HZ(~~((_N6+1)*_iZ._uk+_P6));}if(_DZ){_iZ._xk[_N6*_iZ._uk+_P6-1]=_Bm;_FZ._HZ(~~(_N6*_iZ._uk+_P6-1));}if(_yZ){_iZ._xk[_N6*_iZ._uk+_P6+1]=_Bm;_FZ._HZ(~~(_N6*_iZ._uk+_P6+1));}if(_sZ&&_xZ&&_yZ&&_AZ){_iZ._xk[(_N6-1)*_iZ._uk+_P6+1]=_Bm;_FZ._HZ(~~((_N6-1)*_iZ._uk+_P6+1)); }if(_sZ&&_CZ&&_DZ&&_AZ){_iZ._xk[(_N6-1)*_iZ._uk+_P6-1]=_Bm;_FZ._HZ(~~((_N6-1)*_iZ._uk+_P6-1));}if(_sZ&&_zZ&&_yZ&&_BZ){_iZ._xk[(_N6+1)*_iZ._uk+_P6+1]=_Bm;_FZ._HZ(~~((_N6+1)*_iZ._uk+_P6+1));}if(_sZ&&_EZ&&_DZ&&_BZ){_iZ._xk[(_N6+1)*_iZ._uk+_P6-1]=_Bm;_FZ._HZ(~~((_N6+1)*_iZ._uk+_P6-1));}}_FZ=undefined;if(_un){_QY._Wf();_QY._KZ=_TY;_QY.closed=false;_QY._VY(_qZ,_rZ,100);_N6=_vZ;_P6=_wZ;while((_N6!=_tZ)||(_P6!=_uZ)){_ue=_iZ._xk[_N6*_iZ._uk+_P6];_xZ=(_N6>0)&&(_P6<_iZ._uk-1)&&(_iZ._xk[(_N6-1)*_iZ._uk+(_P6+1)]==_ue-1); _yZ=(_P6<_iZ._uk-1)&&(_iZ._xk[(_N6)*_iZ._uk+(_P6+1)]==_ue-1);_zZ=(_N6<_iZ._tk-1)&&(_P6<_iZ._uk-1)&&(_iZ._xk[(_N6+1)*_iZ._uk+(_P6+1)]==_ue-1);_AZ=(_N6>0)&&(_iZ._xk[(_N6-1)*_iZ._uk+(_P6)]==_ue-1);_BZ=(_N6<_iZ._tk-1)&&(_iZ._xk[(_N6+1)*_iZ._uk+(_P6)]==_ue-1);_CZ=(_N6>0)&&(_P6>0)&&(_iZ._xk[(_N6-1)*_iZ._uk+(_P6-1)]==_ue-1);_DZ=(_P6>0)&&(_iZ._xk[(_N6)*_iZ._uk+(_P6-1)]==_ue-1);_EZ=(_N6<_iZ._tk-1)&&(_P6>0)&&(_iZ._xk[(_N6+1)*_iZ._uk+(_P6-1)]==_ue-1);if(_AZ)_N6=_N6-1;else if(_BZ)_N6=_N6+1;else if(_DZ)_P6=_P6-1; else if(_yZ)_P6=_P6+1;else if(_sZ&&_xZ){_N6=_N6-1;_P6=_P6+1;}else if(_sZ&&_zZ){_N6=_N6+1;_P6=_P6+1;}else if(_sZ&&_CZ){_N6=_N6-1;_P6=_P6-1;}else if(_sZ&&_EZ){_N6=_N6+1;_P6=_P6-1;};if((_N6!=_tZ)||(_P6!=_uZ)){_QY._VY(~~(_iZ._8Z+_N6*_iZ._aZ+_iZ._aZ/2),~~(_iZ._9Z+_P6*_iZ._bZ+_iZ._bZ/2),100);}};_QY._VY(_oZ,_pZ,100);_QY._LZ();};for(i=0;i<_iZ._tk;i++){for(__5=0;__5<_iZ._uk;__5++){if(_iZ._xk[i*_iZ._uk+__5]>0)_iZ._xk[i*_iZ._uk+__5]=0;}}return _un;}function mp_grid_to_ds_grid(_oj,_pk){_oj=yyGetInt32(_oj);_pk=yyGetInt32(_pk); var _MZ=_qj._q8;var _NZ=_sk._q8;if((_oj<0)||(_oj>=_NZ)||(_pk<0)||(_pk>=_MZ)){_H4("Error: Invalid source or destination grid");return;}var _pj=_qj._E5(_pk);var _rk=_sk._E5(_oj);if(_rk==null||_pj==null){_H4("Error: Invalid source or destination grid");return;}var w=_rk._tk;var h=_rk._uk;var _vk=_pj.__c;var _wk=_pj._0d;if(w!=_vk||h!=_wk){_H4("Error: Grid sizes do not match (mp_grid_to_ds_grid) ");return;}for(var y=0;y0){if(Math.abs(_f7.x-_Km*_Xk(_f7.x/_Km))>=0.001){return false;}}if(_Lm>0){if(Math.abs(_f7.y-_Lm*_Xk(_f7.y/_Lm))>=0.001){return false;}}return true;}function move_random(_f7,_Km,_Lm){var i=0;var x=0.0;var y=0.0;var _RZ;var _SZ;var _TZ;var _UZ;var _VZ=0;var _WZ=0;_RZ=0;_SZ=_t3._aN();_TZ=0;_UZ=_t3._bN();if(true==sprite_exists(_f7.sprite_index)||true==sprite_exists(_f7.mask_index)){var _3Q=_f7._XZ();_RZ=_Xk(_f7.x-_3Q.left);_SZ=_Xk(_SZ+_f7.x-_3Q.right);_TZ=_Xk(_f7.y-_3Q.top); _UZ=_Xk(_UZ+_f7.y-_3Q.bottom);}_VZ=_Xk(yyGetReal(_Km));_WZ=_Xk(yyGetReal(_Lm));for(i=1;i<100;i++){x=_RZ+_Cm(_SZ-_RZ);if(_VZ>0){x=_VZ*floor(x/_VZ);}y=_TZ+_Cm(_UZ-_TZ);if(_WZ>0){y=_WZ*floor(y/_WZ);}if(true==place_free(_f7,x,y)){_f7._Hd(x,y);return;}}}function move_snap(_Ht,_Km,_Lm){_Km=yyGetReal(_Km);_Lm=yyGetReal(_Lm);_Ht.x=_Xk(_Ht.x/_Km)*_Km;_Ht.y=_Xk(_Ht.y/_Lm)*_Lm;_Ht._YP=true;}function move_wrap(_f7,_YZ,_tL,_ZZ){_ZZ=yyGetReal(_ZZ);if(yyGetBool(_YZ)){if(_f7.x<-_ZZ){_f7._Hd(_f7.x+_t3._aN()+2*_ZZ, _f7.y);}if(_f7.x>_t3._aN()+_ZZ){_f7._Hd(_f7.x-_t3._aN()-2*_ZZ,_f7.y);}}if(yyGetBool(_tL)){if(_f7.y<-_ZZ){_f7._Hd(_f7.x,_f7.y+_t3._bN()+2*_ZZ);}if(_f7.y>_t3._bN()+_ZZ){_f7._Hd(_f7.x,_f7.y-_t3._bN()-2*_ZZ);}}}function move_towards_point(_Ht,_q5,_r5,_tm){_Ht.hspeed=yyGetReal(_q5)-_Ht.x;_Ht.vspeed=yyGetReal(_r5)-_Ht.y;_Ht.speed=yyGetReal(_tm);}function __Z(_Ht,_q5,_r5,_Sm){if(_Sm){return place_empty(_Ht,_q5,_r5);}else {return place_free(_Ht,_q5,_r5);}}function _Wm(_Ht,_0_,_Sm){var i,_t6;var _N6,_P6,_1_,_2_, _3_,_4_,_5_;var _6_,_7_,_8_,_9_;_9_=false;if(__Z(_Ht,_Ht.x,_Ht.y,_Sm)==false){_Ht._Hd(_Ht.xprevious,_Ht.yprevious);_9_=true;}_N6=_Ht.x;_P6=_Ht.y;if(_0_){_t6=18;_5_=10.0*Math.round(_Ht.direction/10.0);_3_=_5_;_4_=_5_;for(i=1;i<2*_t6;i++){_3_=_3_-180/_t6;_1_=_N6+_Ht.speed*Math.cos(_3_*_L6/180);_2_=_P6-_Ht.speed*Math.sin(_3_*_L6/180);if(__Z(_Ht,_1_,_2_,_Sm)){break;}else {_9_=true;}}for(i=1;i<2*_t6;i++){_4_=_4_+180/_t6;_1_=_N6+_Ht.speed*Math.cos(_4_*_L6/180);_2_=_P6-_Ht.speed*Math.sin(_4_*_L6/180);if(__Z(_Ht, _1_,_2_,_Sm)){break;}else {_9_=true;}}if(_9_==true){_Ht.direction=180+(_3_+_4_)-_5_;}}else {_6_=__Z(_Ht,_Ht.x+_Ht.hspeed,_Ht.y,_Sm);_7_=__Z(_Ht,_Ht.x,_Ht.y+_Ht.vspeed,_Sm);_8_=__Z(_Ht,_Ht.x+_Ht.hspeed,_Ht.y+_Ht.vspeed,_Sm);if((_6_==false)&&(_7_==false)){_Ht.hspeed=-_Ht.hspeed;_Ht.vspeed=-_Ht.vspeed;}else if((_6_==true)&&(_7_==true)&&(_8_==false)){_Ht.hspeed=-_Ht.hspeed;_Ht.vspeed=-_Ht.vspeed;}else if(_6_==false)_Ht.hspeed=-_Ht.hspeed;else if(_7_==false)_Ht.vspeed=-_Ht.vspeed;}}function move_bounce_solid(_Ht, _Vm){_Wm(_Ht,yyGetBool(_Vm),false);}function move_bounce_all(_Ht,_Vm){_Wm(_Ht,yyGetBool(_Vm),true);}var _a_=move_bounce_solid;function _b_(_f7,_q5,_r5,_Sm){if(yyGetBool(_Sm))return place_empty(_f7,_q5,_r5);else return place_free(_f7,_q5,_r5);}function _Tm(_f7,_qm,_Rm,_Sm){var _Dv;if(_Rm<=0)_Dv=1000;else _Dv=_Xk(_Rm);var _db=Math.cos(_qm*Math.PI/180);var _eb=-Math.sin(_qm*Math.PI/180);if(_b_(_f7,_f7.x,_f7.y,_Sm)==false)return;for(var i=1;i<=_Dv;i++){if(_b_(_f7,_f7.x+_db,_f7.y+_eb,_Sm))_f7._Hd(_f7.x+_db,_f7.y+_eb); else return;}}function _7Q(_Ht,_q5,_r5,_Ak,_Q7){var _N6=_Ht.x;var _P6=_Ht.y;_Ht._Hd(_q5,_r5);var _OZ=_Jt(_Ht,yyGetInt32(_Ak),false,_Kt,function(_Lt){if(_Lt._QZ(_Ht,true)){if(_Q7){_Q7.push(_Ot(_Pt,_Lt.id));return _Kt;}return _Ot(_Pt,_Lt.id);}return _Kt;});_Ht._Hd(_N6,_P6);return _OZ;};function _OO(_q5,_r5,_Ak,_Q7){var _OZ=_Jt(null,yyGetInt32(_Ak),false,_Kt,function(_Lt){if(_Lt._Nt(_q5,_r5,true)){if(_Q7){_Q7.push(_Ot(_Pt,_Lt.id));return _Kt;}return _Ot(_Pt,_Lt.id);}return _Kt;});return _OZ;};function move_and_collide(_c_, _db,_eb,_k9,_d_,_e_,_f_,_g_,_h_){var _q4=[];if(typeof _k9==="number"){if((_k9==_i_)&&(_c_!=_j_))_k9=_c_.id;if(_k9==_Kt){return _q4;}}var _pb=_6Q(_c_,_c_.x,_c_.y,_k9);if(_pb>=0)return _q4;if((_db==0)&&(_eb==0)){return _q4;}var _k_=false;var _l_=false;var _m_=-1.0;var _n_=-1.0;if(_g_!==undefined){_m_=_g_;if(_m_>=0)_k_=true;}if(_h_!==undefined){_n_=_h_;if(_n_>=0)_l_=true;}var _o_=_c_.x;var _p_=_c_.y;var _q_=_o_+_m_;var _r_=_p_+_n_;_o_-=_m_;_p_-=_n_;var _s_=4;if(_d_!==undefined)_s_=_d_;var _t_=false;var _u_=0;var _v_=0; var _w_=0;if(_e_===undefined||_f_===undefined||(_e_===0&&_f_===0)){_t_=true;}else {_u_=Math.sqrt(_e_*_e_+_f_*_f_);_v_=_e_/_u_;_w_=_f_/_u_;}var _Dv=Math.sqrt(_db*_db+_eb*_eb);var _x_=_db/_Dv;var _y_=_eb/_Dv;var _z_=0.70710678118654;var _A_=_Dv/_s_;var _B_=_Dv;for(var i=0;i<_s_;i++){var _C_=_A_;if(_B_<_C_){_C_=_B_;if(_C_<=0)break;}var _D_=_c_.x+_x_*_C_;var _E_=_c_.y+_y_*_C_;if(_k_){_D_=clamp(_D_,_o_,_q_);}if(_l_){_E_=clamp(_E_,_p_,_r_);}_pb=_6Q(_c_,_D_,_E_,_k9);if(_pb<0){_c_.x=_D_;_c_.y=_E_;_B_-=_C_;}else {if(!_q4.includes(_pb))_q4[_q4.length]=_pb; var _F_=false;if(_t_){for(var __5=1;__5<_s_-i+1;__5++){_D_=_c_.x+_z_*(_x_+__5*_y_)*_C_;_E_=_c_.y+_z_*(_y_-__5*_x_)*_C_;if(_k_){_D_=clamp(_D_,_o_,_q_);}if(_l_){_E_=clamp(_E_,_p_,_r_);}_pb=_6Q(_c_,_D_,_E_,_k9);if(_pb<0){_B_-=_C_*__5;_F_=true;_c_.x=_D_;_c_.y=_E_;break;}else {if(!_q4.includes(_pb))_q4[_q4.length]=_pb;}_D_=_c_.x+_z_*(_x_-__5*_y_)*_C_;_E_=_c_.y+_z_*(_y_+__5*_x_)*_C_;if(_k_){_D_=clamp(_D_,_o_,_q_);}if(_l_){_E_=clamp(_E_,_p_,_r_);}_pb=_6Q(_c_,_D_,_E_,_k9);if(_pb<0){_B_-=_C_*__5;_F_=true;_c_.x=_D_; _c_.y=_E_;break;}else {if(!_q4.includes(_pb))_q4[_q4.length]=_pb;}}}else {for(var __5=1;__5<_s_-i+1;__5++){_D_=_c_.x+_z_*(_x_+__5*_v_)*_C_;_E_=_c_.y+_z_*(_y_+__5*_w_)*_C_;if(_k_){_D_=clamp(_D_,_o_,_q_);}if(_l_){_E_=clamp(_E_,_p_,_r_);}_pb=_6Q(_c_,_D_,_E_,_k9);if(_pb<0){_B_-=_C_*__5;_F_=true;_c_.x=_D_;_c_.y=_E_;break;}else {if(!_q4.includes(_pb))_q4[_q4.length]=_pb;}}}if(!_F_)return _q4;}}return _q4;}function move_contact_solid(_Ht,_qm,_Rm){_Tm(_Ht,yyGetReal(_qm),yyGetReal(_Rm),false);}function move_contact_all(_f7, _qm,_Rm){_Tm(_f7,yyGetReal(_qm),yyGetReal(_Rm),true);}function _G_(_f7,_qm,_Rm,_Sm){var _Dv;if(_Rm<=0)_Dv=1000;else _Dv=_Xk(_Rm);var _db=Math.cos(_qm*Math.PI/180);var _eb=-sin(_qm*Math.PI/180);if(_b_(_f7,_f7.x,_f7.y,_Sm))return;for(var i=1;i<=_Dv;i++){_f7._Hd(_f7.x+_db,_f7.y+_eb);if(_b_(_f7,_f7.x,_f7.y,_Sm))return;}}function move_outside_solid(_f7,_qm,_Rm){_G_(_f7,yyGetReal(_qm),yyGetReal(_Rm),false);}function move_outside_all(_f7,_qm,_Rm){_G_(_f7,yyGetReal(_qm),yyGetReal(_Rm),true);}function distance_to_point(_f7, _q5,_r5){_q5=yyGetReal(_q5);_r5=yyGetReal(_r5);if(_f7._YP)_f7._ZP();var _e4=_f7._IP;var _H_=0.0;var _I_=0.0;if(_q5>_e4.right){_H_=_q5-_e4.right;}if(_q5<_e4.left){_H_=_q5-_e4.left;}if(_r5>_e4.bottom){_I_=_r5-_e4.bottom;}if(_r5<_e4.top){_I_=_r5-_e4.top;}return Math.sqrt((_H_*_H_)+(_I_*_I_));}function distance_to_object(_f7,_Ak){var _9u=10000000000;var i=0;var _9u=_QO(_f7,yyGetInt32(_Ak),false,_9u,function(_Lt){if(_f7._YP)_f7._ZP();if(_Lt._YP)_Lt._ZP();var _e4=_Lt._IP;var _ni=_f7._IP;var _H_=0,_I_=0;if(_e4.left>_ni.right)_H_=_e4.left-_ni.right; if(_e4.right<_ni.left)_H_=_e4.right-_ni.left;if(_e4.top>_ni.bottom)_I_=_e4.top-_ni.bottom;if(_e4.bottom<_ni.top)_I_=_e4.bottom-_ni.top;return Math.sqrt(_H_*_H_+_I_*_I_);});return _9u;}function position_empty(_f7,_q5,_r5){var _9u=10000000000;var i=0;var _4D=_Jt(_f7,_FQ,false,false,function(_Lt){return _Lt._Nt(yyGetReal(_q5),yyGetReal(_r5),true);});return !_4D;}function position_meeting(_Ht,_q5,_r5,_Ak){if(_Ak instanceof _Rt){var _St=_Ak.type;if(_St==_Tt){if(_Ut(_q5,_r5,_Ak,null,true)){return true;}return false; }else {var id=_Gt(_Ht,_q5,_r5,_Ak,true,false);return id;}}else if(_Ak instanceof Array){for(var i=0;i<_Ak.length;i++){var _Vt=_Ak[i];if((_Vt instanceof _Rt)&&(_Vt.type==_Tt)){if(_Ut(_q5,_r5,_Vt,null,true)){return true;}}else {var id=_Gt(_Ht,_q5,_r5,_Vt,true,false);if(id==true)return true;}}return false;}else {var id=_Gt(_Ht,_q5,_r5,_Ak,true,false);return id;}}var _J_=6;var _K_=7;var _L_=1;var _M_=2;var _N_=3;var _O_=4;var _P_=1;var _Q_=2;var _R_=window.WebSocket;var _S_=null;try{_S_=require("ws").Server;}catch(_PG){}function _T_(_U_, type,_V_){this.socket=_U_;this.type=type;this._V_=_V_;}_T_.prototype={socket:null,_V_:false,_W_:false,index:-1};var _X_="GM:Studio-Connect";var _Y_=0xCAFEBABE;var _Z_=0xDEADB00B;var ___=0xDEAFBEAD;var _001=0xF00DBEEB;var _101=0xDEADC0DE;var _201=[];var _301=[];function _401(wrap){var i=_301.shift();if(i==null)i=_201.length;_201[i]=wrap;wrap.index=i;return i;}function _501(wrap){var i=_201.indexOf(wrap);if(i>=0){_201[i]=null;_301.push(i);}}function _601(e){var _NH=_Ff._Gf(e.id,null,_701,e);_NH._Kf=true;}function _801(_Sz, offset,length){var _901=new Uint8Array(_Sz.buffer);var _a01=_Sz.byteOffset+offset;var index=buffer_create(length,_b01,1);var buffer=_bO._E5(index);for(var i=0;i=16&&_C01.getUint32(0, true)==_Y_&&_C01.getUint32(4,true)==_Z_&&_C01.getUint32(8,true)==16){_t01=_401(_s01);_x01=true;_y01();var _D01=new ArrayBuffer(12);var _E01=new DataView(_D01);_E01.setInt32(0,___,true);_E01.setInt32(4,_001,true);_E01.setInt32(8,12,true);_q01.send(_D01);}else {console.log("Invalid handshake response from client.");_q01.terminate();}}};_q01.onerror=function(e){console.log(e);_601({"type":_M_,"id":wrap.index,"socket":_t01,"ip":_u01,"port":_v01,"other_port":_w01});_501(_s01);};if(_x01){_t01=_401(_s01);_y01(); }else {var _F01=new ArrayBuffer(_X_.length+1);var _G01=new DataView(_F01);for(var i=0;i<_X_.length;i++){_G01.setUint8(i,_X_.charCodeAt(i));}_G01.setUint8(i,0);_q01.send(_F01);}});_n01.on("error",function(e){console.log("Server error: ",e);});return _401(wrap);}catch(e){debug("Error creating server: "+e);return -1;}}function _H01(index,_Dh,port,_e01){if(_R_==null){debug("No WebSocket client implementation is available.");return -1;}var wrap=_201[index];if(wrap==null||wrap.socket!=null)return -1;try{var _I01=_Dh; var _J01=(wrap.type==_K_);if(_Dh.substring(0,5)=="ws://"){if(_J01){console.log("Socket type is network_socket_wss, but URL ("+_Dh+") is insecure - upgrading to wss://");}_Dh=_Dh.substring(5);}else if(_Dh.substring(0,6)=="wss://"){_J01=true;_Dh=_Dh.substring(6);}var _K01=_Dh.indexOf("/");var path="/";if(_K01!=-1){path=_Dh.substring(_K01);_Dh=_Dh.substring(0,_K01);}var _L01=_Dh.indexOf(":");if(_L01!=-1){if(port==0){port=_Dh.substring(_L01+1);}_Dh=_Dh.substring(0,_L01);}_Dh=(_J01?"wss://":"ws://")+_Dh+(port!=0?":"+port:"")+path; var _n01=new _R_(_Dh);var _M01=_e01?-1:1;function _y01(_N01){_601({"type":_O_,"id":wrap.index,"succeeded":_N01?1:0,"ip":_I01,"port":port});if(_N01)wrap._W_=true;}function _O01(_P01,_h01){switch(_M01){case -1:{var i=_P01.byteLength;if(i>_X_.length){i=_X_.length;if(_P01.getUint8(i)==0)while(--i>=0){if(_P01.getUint8(i)!=_X_.charCodeAt(i))break;}}if(i<0){_M01=0;var _Q01=new ArrayBuffer(16);var _R01=new DataView(_Q01);_R01.setUint32(0,_Y_,true);_R01.setUint32(4,_Z_,true);_R01.setUint32(8,16,true);_n01.send(_Q01); }else {console.log("Invalid first response from server");_y01(false);_n01.close();wrap.socket=null;}};break;case 0:{if(_P01.byteLength>=12&&_P01.getUint32(0,true)==___&&_P01.getUint32(4,true)==_001&&_P01.getUint32(8,true)==12){_M01=1;_y01(true);if(_P01.byteLength>12){_O01(new DataView(_P01.buffer,_P01.byteOffset+12,_P01.byteLength-12));}}else {console.log("Invalid second response from server");_y01(false);}};break;default :{_d01(_P01,_e01,index,_I01,port,port,_h01);};}}_n01.onopen=function(e){if(_M01>0)_y01(true); };_n01.onmessage=function(e){if(e.data instanceof Blob){var _S01=new FileReader();_S01.onload=function(){_O01(new DataView(_S01.result),_P_);};_S01.onerror=function(e){console.log("Failed to read message:",e);};_S01.readAsArrayBuffer(e.data);}else if(typeof e.data=="string"){var _T01=new TextEncoder();var _U01=_T01.encode(e.data);_O01(new DataView(_U01.buffer),_Q_);}else {console.log("Failed to process message:",e);}};_n01.onerror=function(e){console.log(e);if(!wrap._W_)_y01(false);};wrap.socket=_n01;return wrap.index; }catch(e){debug("Connection error: "+e);return -1;}}function network_create_server(_od,_V01,_l01){return _k01(_od,_V01,_l01,true);}function network_create_server_raw(_od,_V01,_l01){return _k01(_od,_V01,_l01,false);}function network_set_timeout(){_Ib("network_set_timeout()")}function network_create_socket_ext(_od,_V01){if(_od!=_J_&&_od!=_K_){console.log("network_create_socket_ext() - Only network_socket_ws and network_socket_wss are supported on HTML5.");return -1;}return _401(new _T_(null,_od,false));}function network_create_socket(_od, _V01,_l01){if(_od!=_J_&&_od!=_K_){console.log("network_create_socket_ext() - Only network_socket_ws and network_socket_wss are supported on HTML5.");return -1;}return _401(new _T_(null,_od,false));}function network_connect(_W01,_or,_V01){_Ib("network_connect()");return -1;}function network_connect_raw(_W01,_or,_V01){_Ib("network_connect_raw()");return -1;}function network_connect_async(_W01,_or,_V01){return _H01(_W01,_or,_V01,true);}function network_connect_raw_async(_W01,_or,_V01){return _H01(_W01,_or,_V01, false);}function network_resolve(_or){return "127.0.0.1";}function network_send_broadcast(_W01,_V01,_sl,_ad){return -1;}function network_send_packet(_W01,_sl,_ad){var wrap=_201[_W01];if(wrap==null)return -1;var _n01=wrap.socket;if(_n01==null||!wrap._W_)return -1;var _X01=_bO._E5(_sl);if(_X01==null)return -1;var _P01=_X01._Y01;var _Z01=new ArrayBuffer(_ad+12);var __01=new DataView(_Z01);__01.setUint32(0,_101,true);__01.setUint32(4,12,true);__01.setUint32(8,_ad,true);for(var i=0;i<_ad;i+=1){__01.setUint8(i+12,_P01.getUint8(i)); }_n01.send(_Z01);return _ad;}function network_send_raw(_W01,_sl,_ad,_011){var wrap=_201[_W01];if(wrap==null)return -1;var _n01=wrap.socket;if(_n01==null||!wrap._W_)return -1;var _g4=buffer_get_address(_sl);if(_ad<_g4.byteLength)_g4=new DataView(_g4,0,_ad);if(_011!==undefined&&(_011&_Q_)!=0){var _111=new TextDecoder();_g4=_111.decode(_g4);}_n01.send(_g4);return _ad;}function network_set_config(_211,_ue){}function network_send_udp(_W01,_or,_V01,_sl,_ad){return -1;}function network_send_udp_raw(_W01,_or,_V01,_sl, _ad){return -1;}function network_destroy(_W01){var wrap=_201[_W01];if(wrap==null)return;var _n01=wrap.socket;if(_n01==null)return;if(wrap._V_){_n01.close();}else if(_n01.terminate){_n01.terminate();}else if(_n01.close)_n01.close();_501(wrap);return 0;}function object_exists(_t4){if(!_i3._E5(yyGetInt32(_t4)))return false;return true;}function object_get_name(_t4){var _BG=_i3._E5(yyGetInt32(_t4));if(!_BG)return "";return _BG._WF;}var _311=object_get_name;function object_get_sprite(_t4){var _BG=_i3._E5(yyGetInt32(_t4)); if(!_BG)return -1;return _BG._sQ;}function object_get_solid(_t4){var _BG=_i3._E5(yyGetInt32(_t4));if(!_BG)return false;return _BG._411;}function object_get_visible(_t4){var _BG=_i3._E5(yyGetInt32(_t4));if(!_BG)return false;return _BG._511;}function _611(_t4){var _BG=_i3._E5(yyGetInt32(_t4));if(!_BG)return 0;return _BG._711;}function object_get_persistent(_t4){var _BG=_i3._E5(yyGetInt32(_t4));if(!_BG)return false;return _BG._811;}function object_get_mask(_t4){var _BG=_i3._E5(yyGetInt32(_t4));if(!_BG)return -1;return _BG._911; }function object_get_parent(_t4){var _BG=_i3._E5(yyGetInt32(_t4));if(!_BG)return -1;return _BG._CQ;}function object_get_physics(_t4){var _BG=_i3._E5(yyGetInt32(_t4));if(!_BG)return -1;return(_BG._a11.physicsObject?1.0:0.0);}function object_set_sprite(_t4,_C5){var _BG=_i3._E5(yyGetInt32(_t4));if(!_BG)return;_BG._sQ=yyGetInt32(_C5);}function object_set_solid(_t4,_b11){var _BG=_i3._E5(yyGetInt32(_t4));if(!_BG)return;_BG._411=yyGetBool(_b11);}function object_set_visible(_t4,_c11){var _BG=_i3._E5(yyGetInt32(_t4)); if(!_BG)return;_BG._511=yyGetBool(_c11);}function object_set_persistent(_t4,_d11){var _BG=_i3._E5(yyGetInt32(_t4));if(!_BG)return;_BG._811=yyGetBool(_d11);}function object_set_mask(_t4,_C5){var _BG=_i3._E5(yyGetInt32(_t4));if(!_BG)return;_BG._911=yyGetInt32(_C5);}function _e11(_t4,_f11){var _BG=_i3._E5(yyGetInt32(_t4));if(!_BG)return;_f11=yyGetInt32(_f11);_BG._CQ=_f11;_BG._9F=_i3._E5(_f11);}function object_is_ancestor(_g11,_n6){var _BG=_i3._E5(yyGetInt32(_g11));if(!_BG)return 0;_BG=_BG._9F;while(_BG!==null&&_BG!==undefined){ if(_BG._EQ===yyGetInt32(_n6))return 1;_BG=_BG._9F;}return 0;}function _h11(_fm){return _i11(_fm,_j11,_0K._k11.length,_0K._k11);}function _l11(_fm,_m11){return _i11(_fm,_n11,_o11.length,_o11,_m11);}function _p11(_q11,_fm,_m11){var _q8=0;var _k6=null;if(!_m11){_k6=_o11[_q11].emitters;_q8=_k6.length;}return _i11(_fm,_r11,_q8,_k6,_m11);}function _s11(_fm,_m11){return _i11(_fm,_t11,_u11.length,_u11,_m11);}function _v11(_fm){var index=yyGetInt32(_fm);if(_D5._E5(index)==null)_H4("invalid reference to sprite");return index; }function _w11(_x11){var _uB=yyGetInt32(_x11);if(_uB<0||_uB>1)_H4("invalid argument, expecting a time source unit");return _uB;}function _y11(_nU){var _z11=(typeof _nU=="string");var room=_3u._4u();var layer=_z11?_3u._LQ(room,yyGetString(_nU)):_3u._MQ(room,yyGetInt32(_nU));if(!layer){if(_z11)_H4("invalid argument, layer name ("+_nU+") does not exist");else _H4("invalid argument, layer ID ("+_nU+") does not exist");}return layer;}function particle_get_info(_t4){var _A11=undefined;var emitters=[];if(_t4 instanceof _Rt&&_t4.type==_n11){ _t4=_l11(_t4);var _B11=_o11[_t4];if(_B11!=null){_A11=new _BH();var resource=_0K._E5(_B11._C11);variable_struct_set(_A11,"name",resource?resource.name:"");variable_struct_set(_A11,"xorigin",_B11._D11);variable_struct_set(_A11,"yorigin",_B11._E11);variable_struct_set(_A11,"oldtonew",_B11._F11?true:false);variable_struct_set(_A11,"global_space",_B11.globalSpaceParticles);for(var i=0;i<_B11.emitters.length;++i){var emitter=_B11.emitters[i];if(emitter){emitters.push(emitter);}}}}else {_t4=_h11(_t4);var _B11=_0K._E5(_t4); if(_B11!=null){_A11=new _BH();variable_struct_set(_A11,"name",_B11.name);variable_struct_set(_A11,"xorigin",_B11.originX);variable_struct_set(_A11,"yorigin",_B11.originY);variable_struct_set(_A11,"oldtonew",(_B11.drawOrder==0));variable_struct_set(_A11,"global_space",_B11.globalSpaceParticles);for(var i=0;i<_B11.emitters.length;++i){var emitter=_G11[_B11.emitters[i]];if(emitter){emitters.push(emitter);}}}}if(!_A11){return _A11;}var _H11=[];for(var i=0;i=_LO)return 0;return _QY.points[_LO].x;}function path_get_point_y(_t4,_LO){ _LO=yyGetInt32(_LO);if(_LO<0)return 0;var _QY=_RY.Paths[yyGetInt32(_t4)];if(!_QY)return 0;if(!_QY.points)return 0;if(_QY.points._X31>=_LO)return 0;return _QY.points[_LO].y;}function path_get_point_speed(_t4,_LO){_LO=yyGetInt32(_LO);if(_LO<0)return 0;var _QY=_RY.Paths[yyGetInt32(_t4)];if(!_QY)return 0;if(!_QY.points)return 0;if(_QY.points._X31>=_LO)return 0;return _QY.points[_LO].speed;}function path_get_x(_t4,_Qk){var _QY=_RY.Paths[yyGetInt32(_t4)];if(!_QY)return -1;return _QY._Y31(yyGetReal(_Qk));}function path_get_y(_t4, _Qk){var _QY=_RY.Paths[yyGetInt32(_t4)];if(!_QY)return -1;return _QY._Z31(yyGetReal(_Qk));}function path_get_speed(_t4,_Qk){var _QY=_RY.Paths[yyGetInt32(_t4)];if(!_QY)return -1;return _QY.__31(yyGetReal(_Qk));}function path_set_kind(_t4,_Gc){var _QY=_RY.Paths[yyGetInt32(_t4)];if(!_QY)return -1;_QY._SY(yyGetInt32(_Gc));}function path_set_closed(_t4,_041){var _QY=_RY.Paths[yyGetInt32(_t4)];if(!_QY)return -1;_QY._UY(yyGetBool(_041));}function path_set_precision(_t4,_gj){var _QY=_RY.Paths[yyGetInt32(_t4)];if(!_QY)return -1; _QY._141(yyGetInt32(_gj));}function path_add(){var _QY=new _241();_RY._Gf(_QY);return _QY.id;}function path_duplicate(_t4){var _QY=_RY.Paths[yyGetInt32(_t4)];if(!_QY)return -1;var _341=new _241();_RY._Gf(_341);_341._lQ(_QY);return _341.id;}function path_assign(_t4,_qq){var _441=_RY.Paths[yyGetInt32(_t4)];if(!_441)return;var _541=_RY.Paths[yyGetInt32(_qq)];if(!_541)return;_441._lQ(_541);}function path_start(_f7,_qq,_tm,_641,_741){_f7._tq(yyGetInt32(_qq),yyGetReal(_tm),1,0,yyGetBool(_741),yyGetInt32(_641));}function path_end(_f7){ _f7._tq(-1,0,1,0,false,0);}var draw_path=_841;function _841(_jg,_941,_a41,_741){_941=yyGetReal(_941);_a41=yyGetReal(_a41);var _QY=_RY.Paths[yyGetInt32(_jg)];if(!_QY)return;_1a.globalAlpha=_Nc;_1a.strokeStyle=_dL;var _N6,_P6,_b41;var _c41=0;var _d41=_QY._e41(0);if(!yyGetBool(_741)){_941=_941-_d41.x;_a41=_a41-_d41.y;}else {_941=0;_a41=0;}_c41=_Xk(_QY.length/4.0);if(_c41==0)return;var first=true;_1a._wL();for(var i=0;i<=_c41;i++){_d41=_QY._e41(i/_c41);if(first){_1a._xL(_941+_d41.x,_a41+_d41.y);first=false;} else {_1a._yL(_941+_d41.x,_a41+_d41.y);}}_1a._AL();_1a._zL();}function path_shift(_jg,_941,_a41){var _QY=_RY.Paths[yyGetInt32(_jg)];if(!_QY)return;_QY._f41(yyGetReal(_941),yyGetReal(_a41));}function path_rescale(_jg,_co,_do){var _QY=_RY.Paths[yyGetInt32(_jg)];if(!_QY)return;_QY._g41(yyGetReal(_co),yyGetReal(_do));}function path_rotate(_jg,_u5){var _QY=_RY.Paths[yyGetInt32(_jg)];if(!_QY)return;_QY._h41(yyGetReal(_u5));}function path_reverse(_jg){var _QY=_RY.Paths[yyGetInt32(_jg)];if(!_QY)return;_QY._LZ(); }function path_flip(_jg){var _QY=_RY.Paths[yyGetInt32(_jg)];if(!_QY)return;_QY._i41();}function path_mirror(_jg){var _QY=_RY.Paths[yyGetInt32(_jg)];if(!_QY)return;_QY._j41();}function path_change_point(_jg,_t4,_k41,_l41,_tm){var _QY=_RY.Paths[yyGetInt32(_jg)];if(!_QY)return;_QY._m41(_t4,yyGetReal(_k41),yyGetReal(_l41),yyGetReal(_tm));}function path_delete(_t4){var _QY=_RY.Paths[yyGetInt32(_t4)];if(!_QY)return;_RY._Ll(_QY);}function path_append(_t4,_qq){var _Gk=_RY.Paths[yyGetInt32(_t4)];if(!_Gk)return;var _Hk=_RY.Paths[yyGetInt32(_qq)]; if(!_Hk)return;_Gk._n41(_Hk);}function path_add_point(_t4,_q5,_r5,_tm){var _QY=_RY.Paths[yyGetInt32(_t4)];if(!_QY)return 0;_QY._VY(yyGetReal(_q5),yyGetReal(_r5),yyGetReal(_tm));}function path_insert_point(_t4,_LO,_q5,_r5,_tm){var _QY=_RY.Paths[yyGetInt32(_t4)];if(!_QY)return 0;_QY._o41(yyGetInt32(_LO),yyGetReal(_q5),yyGetReal(_r5),yyGetReal(_tm));}function path_delete_point(_t4,_LO){var _QY=_RY.Paths[yyGetInt32(_t4)];if(!_QY)return 0;_QY._p41(yyGetInt32(_LO));}function path_clear_points(_t4){var _QY=_RY.Paths[yyGetInt32(_t4)]; if(!_QY)return 0;_QY._Wf();}var _q41=new _r41();var _s41=new _r41();var _t41=new _r41();function physics_world_create(_u41){_u41=yyGetReal(_u41);if(_t3._v41){_t3._v41._w41(_u41);if(_v3){_t3._v41._x41(_x3._y3());}else {_t3._v41._x41(_t3._u3());}}else {if(_v3){var physicsWorld=new _y41(_u41,_x3._y3());_t3._v41=physicsWorld;}else {var physicsWorld=new _y41(_u41,_t3._u3());_t3._v41=physicsWorld;}}}function physics_world_draw_debug(_z41){_t3._v41._A41(yyGetInt32(_z41));}function physics_world_gravity(_B41,_C41){_t3._v41._D41(yyGetReal(_B41), yyGetReal(_C41));}function physics_world_update_speed(_tm){_t3._v41._x41(yyGetInt32(_tm));}function physics_world_update_iterations(_d_){_t3._v41._E41(yyGetInt32(_d_));}function physics_pause_enable(_F41){if(yyGetBool(_F41)){_t3._v41._lK();}else {_t3._v41._G41();}}function physics_fixture_create(){var _H41=_q41._Gf(new _I41());return _H41;}function physics_fixture_set_kinematic(_J41){var _K41=_q41._E5(yyGetInt32(_J41));_K41._L41();}function physics_fixture_set_density(_J41,_M41){var _K41=_q41._E5(yyGetInt32(_J41)); _K41._N41(yyGetReal(_M41));}function physics_fixture_set_restitution(_J41,_O41){var _K41=_q41._E5(yyGetInt32(_J41));_K41._P41(yyGetReal(_O41));}function physics_fixture_set_friction(_J41,_zm){var _K41=_q41._E5(yyGetInt32(_J41));_K41._Q41(yyGetReal(_zm));}function physics_fixture_set_collision_group(_J41,_R41){var _K41=_q41._E5(yyGetInt32(_J41));_K41._S41(yyGetInt32(_R41));}function physics_fixture_set_sensor(_J41,_T41){var _K41=_q41._E5(yyGetInt32(_J41));_K41._U41(yyGetBool(_T41));}function physics_fixture_set_linear_damping(_J41, _V41){var _K41=_q41._E5(yyGetInt32(_J41));_K41._W41(yyGetReal(_V41));}function physics_fixture_set_angular_damping(_J41,_V41){var _K41=_q41._E5(yyGetInt32(_J41));_K41._X41(yyGetReal(_V41));}function physics_fixture_set_awake(_J41,_Y41){var _K41=_q41._E5(yyGetInt32(_J41));_K41._Z41(yyGetInt32(_Y41));}function physics_fixture_set_circle_shape(_J41,__41){var _K41=_q41._E5(yyGetInt32(_J41));_K41._051(yyGetReal(__41)*_t3._v41._151);}function physics_fixture_set_box_shape(_J41,_251,_351){var _K41=_q41._E5(yyGetInt32(_J41)); var scale=_t3._v41._151;_K41._451(yyGetReal(_251)*scale,yyGetReal(_351)*scale);}function physics_fixture_set_edge_shape(_J41,_sb,_tb,_ub,_vb){var _K41=_q41._E5(yyGetInt32(_J41));var scale=_t3._v41._151;_K41._551(yyGetReal(_sb)*scale,yyGetReal(_tb)*scale,yyGetReal(_ub)*scale,yyGetReal(_vb)*scale);}function physics_fixture_set_polygon_shape(_J41){var _K41=_q41._E5(yyGetInt32(_J41));_K41._651();}function physics_fixture_set_chain_shape(_J41,_O3){var _K41=_q41._E5(yyGetInt32(_J41));_K41._751(yyGetBool(_O3)); }function physics_fixture_add_point(_J41,_851,_951){var _K41=_q41._E5(yyGetInt32(_J41));var scale=_t3._v41._151;_K41._a51(yyGetReal(_851)*scale,yyGetReal(_951)*scale);}function physics_fixture_bind_ext(_f7,_J41,_jg,_u4,_v4){_u4=yyGetReal(_u4);_v4=yyGetReal(_v4);var _b51=-1;var _c51=-1;var _K41=_q41._E5(yyGetInt32(_J41));var _Ak=yyGetInt32(_jg);if(_Ak==_i_){_Ak=_f7.id;}if(_Ak==_FQ){var _Vk=_Hn._PZ();for(var _0n=0;_0n<_Vk.length;_0n++){var _1u=_Vk[_0n];if(_1u.marked)continue;_b51=_t3._v41._d51(_K41,_1u,_u4,_v4, false);}}else if(_Ak<100000){var _BG=_i3._E5(_Ak);if(_BG===null){return _c51;}var _Vk=_BG._e51();for(var _0n=0;_0n<_Vk.length;_0n++){var _1u=_Vk[_0n];if(_1u.marked)continue;_b51=_t3._v41._d51(_K41,_1u,_u4,_v4,false);}}else {var _1u=_Hn._E5(_Ak);_b51=_t3._v41._d51(_K41,_1u,_u4,_v4,false);}return _b51;}function physics_fixture_bind(_f7,_J41,_jg,_f51,_g51){_J41=yyGetInt32(_J41);_jg=yyGetInt32(_jg);if(_f51!==undefined&&_g51!==undefined){return physics_fixture_bind_ext(_f7,_J41,_jg,yyGetReal(_f51),yyGetReal(_g51)); }else {return physics_fixture_bind_ext(_f7,_J41,_jg,0.0,0.0);}}function physics_fixture_delete(_J41){_q41._rj(yyGetInt32(_J41));}function physics_joint_distance_create(_h51,_i51,_j51,_k51,_l51,_m51,_n51){var _o51=_Hn._E5(yyGetInt32(_h51));var _p51=_Hn._E5(yyGetInt32(_i51));var _q51=_t3._v41._r51(_o51._s51,_p51._s51,yyGetReal(_j51),yyGetReal(_k51),yyGetReal(_l51),yyGetReal(_m51),yyGetBool(_n51));if(_q51!=-1){return _t41._Gf(_q51);}return -1;}function physics_joint_rope_create(_h51,_i51,_j51,_k51,_l51,_m51, _t51,_n51){var _o51=_Hn._E5(yyGetInt32(_h51));var _p51=_Hn._E5(yyGetInt32(_i51));var _q51=_t3._v41._u51(_o51._s51,_p51._s51,yyGetReal(_j51),yyGetReal(_k51),yyGetReal(_l51),yyGetReal(_m51),yyGetReal(_t51),yyGetBool(_n51));if(_q51!=-1){return _t41._Gf(_q51);}return -1;}function physics_joint_revolute_create(_h51,_i51,_v51,_w51,_x51,_y51,_z51,_A51,_B51,_C51,_n51){var _o51=_Hn._E5(yyGetInt32(_h51));var _p51=_Hn._E5(yyGetInt32(_i51));var _q51=_t3._v41._D51(_o51._s51,_p51._s51,yyGetReal(_v51),yyGetReal(_w51),(yyGetReal(_x51)*Math.PI)/180.0, (yyGetReal(_y51)*Math.PI)/180.0,yyGetBool(_z51),yyGetReal(_A51),yyGetReal(_B51),yyGetBool(_C51),yyGetBool(_n51));if(_q51!=-1){return _t41._Gf(_q51);}return -1;}function physics_joint_prismatic_create(_h51,_i51,_v51,_w51,_E51,_F51,_G51,_H51,_z51,_I51,_B51,_C51,_n51){var _o51=_Hn._E5(yyGetInt32(_h51));var _p51=_Hn._E5(yyGetInt32(_i51));var _q51=_t3._v41._J51(_o51._s51,_p51._s51,yyGetReal(_v51),yyGetReal(_w51),yyGetReal(_E51),yyGetReal(_F51),yyGetReal(_G51),yyGetReal(_H51),yyGetBool(_z51),yyGetReal(_I51), yyGetReal(_B51),yyGetBool(_C51),yyGetBool(_n51));if(_q51!=-1){return _t41._Gf(_q51);}return -1;}function physics_joint_pulley_create(_h51,_i51,_j51,_k51,_l51,_m51,_K51,_L51,_M51,_N51,_O51,_n51){var _o51=_Hn._E5(yyGetInt32(_h51));var _p51=_Hn._E5(yyGetInt32(_i51));var _q51=_t3._v41._P51(_o51._s51,_p51._s51,yyGetReal(_j51),yyGetReal(_k51),yyGetReal(_l51),yyGetReal(_m51),yyGetReal(_K51),yyGetReal(_L51),yyGetReal(_M51),yyGetReal(_N51),yyGetReal(_O51),yyGetBool(_n51));if(_q51!=-1){return _t41._Gf(_q51);}return -1; }function physics_joint_wheel_create(_h51,_i51,_Q51,_R51,_S51,_T51,_U51,_A51,_B51,_V51,_W51,_n51){var _o51=_Hn._E5(yyGetInt32(_h51));var _p51=_Hn._E5(yyGetInt32(_i51));var _q51=_t3._v41._X51(_o51._s51,_p51._s51,yyGetReal(_Q51),yyGetReal(_R51),yyGetReal(_S51),yyGetReal(_T51),yyGetBool(_U51),yyGetReal(_A51),yyGetReal(_B51),yyGetReal(_V51),yyGetReal(_W51),yyGetBool(_n51));if(_q51!=-1){return _t41._Gf(_q51);}return -1;}function physics_joint_weld_create(_h51,_i51,_Q51,_R51,_Y51,_V51,_W51,_n51){var _o51=_Hn._E5(yyGetInt32(_h51)); var _p51=_Hn._E5(yyGetInt32(_i51));var _q51=_t3._v41._Z51(_o51._s51,_p51._s51,yyGetReal(_Q51),yyGetReal(_R51),yyGetReal(_Y51),yyGetReal(_V51),yyGetReal(_W51),yyGetBool(_n51));if(_q51!=-1){return _t41._Gf(_q51);}return -1;}function physics_joint_friction_create(_h51,_i51,_Q51,_R51,__51,_061,_n51){var _o51=_Hn._E5(yyGetInt32(_h51));var _p51=_Hn._E5(yyGetInt32(_i51));var _q51=_t3._v41._161(_o51._s51,_p51._s51,yyGetReal(_Q51),yyGetReal(_R51),yyGetReal(__51),yyGetReal(_061),yyGetBool(_n51));if(_q51!=-1){return _t41._Gf(_q51); }return -1;}function physics_joint_gear_create(_h51,_i51,_261,_361,_O51){var _o51=_Hn._E5(yyGetInt32(_h51));var _p51=_Hn._E5(yyGetInt32(_i51));var _461=_t41._E5(yyGetInt32(_261));var _561=_t41._E5(yyGetInt32(_361));if(_461==null||_561==null){_H4("A joint does not exist");return;}var _q51=_t3._v41._661(_o51._s51,_p51._s51,_461,_561,yyGetReal(_O51));if(_q51!=-1){return _t41._Gf(_q51);}return -1;}function physics_joint_enable_motor(_761,_861){var _961=_t41._E5(yyGetInt32(_761));if(_961==null){_H4("A joint does not exist"); return;}_961._a61(yyGetBool(_861));}function physics_joint_get_value(_761,_b61){var _961=_t41._E5(yyGetInt32(_761));if(_961==null){_H4("A joint does not exist");return;}return _961._c61(yyGetInt32(_b61));}function physics_joint_set_value(_761,_b61,_Vn){var _961=_t41._E5(yyGetInt32(_761));if(_961==null){_H4("A joint does not exist");return;}return _961._d61(yyGetInt32(_b61),yyGetReal(_Vn));}function physics_joint_delete(_e61){_e61=yyGetInt32(_e61);var _961=_t41._E5(_e61);if(_961!=null){_t3._v41._f61(_961); }_t41._rj(_e61);}function physics_apply_force(_Ht,_Nj,_Oj,_g61,_h61){var scale=_t3._v41._151;var _i61=yyGetReal(_Nj)*scale;var _j61=yyGetReal(_Oj)*scale;_Ht._s51._k61(_i61,_j61,yyGetReal(_g61),yyGetReal(_h61));}function physics_apply_impulse(_Ht,_Nj,_Oj,_l61,_m61){var scale=_t3._v41._151;var _i61=yyGetReal(_Nj)*scale;var _j61=yyGetReal(_Oj)*scale;_Ht._s51._n61(_i61,_j61,yyGetReal(_l61),yyGetReal(_m61));}function physics_apply_local_force(_Ht,_o61,_p61,_q61,_r61){var scale=_t3._v41._151;var _s61=yyGetReal(_o61)*scale; var _t61=yyGetReal(_p61)*scale;_Ht._s51._u61(_s61,_t61,yyGetReal(_q61),yyGetReal(_r61));}function physics_apply_local_impulse(_Ht,_o61,_p61,_v61,_w61){var scale=_t3._v41._151;var _s61=yyGetReal(_o61)*scale;var _t61=yyGetReal(_p61)*scale;_Ht._s51._x61(_s61,_t61,yyGetReal(_v61),yyGetReal(_w61));}function physics_apply_angular_impulse(_Ht,_y61){_Ht._s51._z61(yyGetReal(_y61));}function physics_apply_torque(_Ht,_A61){_Ht._s51._B61(yyGetReal(_A61));}function physics_mass_properties(_Ht,_C61,_D61,_E61,_F61){var scale=_t3._v41._151; _Ht._s51._G61(yyGetReal(_C61),yyGetReal(_D61)*scale,yyGetReal(_E61)*scale,yyGetReal(_F61));}function physics_draw_debug(_Ht){if((_Ht._s51!=null)&&(_Ht._s51!=undefined)){_Ht._s51._A41(1.0/_t3._v41._151);}}function physics_test_overlap(_f7,_q5,_r5,_u5,_Ak){_Ak=yyGetInt32(_Ak);var _Ht=_f7;if(_Ak==_i_){_Ak=_Ht.id;}var x=yyGetReal(_q5)*_t3._v41._151;var y=yyGetReal(_r5)*_t3._v41._151;var angle=(yyGetReal(_u5)*Math.PI)/180.0;if(_Ak==_FQ){var _Vk=_Hn._PZ();for(var _0n=0;_0n<_Vk.length;_0n++){var _1u=_Vk[_0n];if(_1u.marked)continue; if(_t3._v41._H61(_f7,_1u,x,y,angle)){return true;}}}else if(_Ak<100000){var _BG=_i3._E5(_Ak);if(_BG===null){return false;}var _Vk=_BG._e51();for(var _0n=0;_0n<_Vk.length;_0n++){var _1u=_Vk[_0n];if(_1u.marked)continue;if(_t3._v41._H61(_f7,_1u,x,y,angle)){return true;}}}else {var _1u=_Hn._E5(_Ak);return _t3._v41._H61(_f7,_1u,x,y,angle);}}function physics_remove_fixture(_f7,_I61){_I61=yyGetInt32(_I61);var _c51=-1;var _Ak=yyGetInt32(_f7);if(_Ak==_i_){_Ak=_f7.id;}if(_Ak==_FQ){var _Vk=_Hn._PZ();for(var _0n=0;_0n<_Vk.length; _0n++){var _1u=_Vk[_0n];if(_1u.marked)continue;if(_1u._s51){_1u._s51._J61(_I61);}}}else if(_Ak<100000){var _BG=_i3._E5(_Ak);if(_BG===null){return _c51;}var _Vk=_BG._e51();for(var _0n=0;_0n<_Vk.length;_0n++){var _1u=_Vk[_0n];if(_1u.marked)continue;if(_1u._s51){_1u._s51._J61(_I61);}}}else {var _1u=_Hn._E5(_Ak);if(_1u._s51){_1u._s51._J61(_I61);}}}function physics_get_friction(_f7,_I61){if(_f7._s51){return _f7._s51._K61(yyGetInt32(_I61));}return 0.0;}function physics_get_density(_f7,_I61){if(_f7._s51){return _f7._s51._L61(yyGetInt32(_I61)); }return 0.0;}function physics_get_restitution(_f7,_I61){if(_f7._s51){return _f7._s51._M61(yyGetInt32(_I61));}return 0.0;}function physics_set_friction(_f7,_I61,_B3){if(_f7._s51){_f7._s51._Q41(yyGetInt32(_I61),yyGetReal(_B3));}}function physics_set_density(_f7,_I61,_B3){if(_f7._s51){_f7._s51._N41(yyGetInt32(_I61),yyGetReal(_B3));}}function physics_set_restitution(_f7,_I61,_B3){if(_f7._s51){_f7._s51._P41(yyGetInt32(_I61),yyGetReal(_B3));}}function physics_particle_create(_N61,x,y,_O61,_P61,_m4,alpha,_Q61){ return _t3._v41._R61(yyGetInt32(_N61),yyGetReal(x),yyGetReal(y),yyGetReal(_O61),yyGetReal(_P61),yyGetInt32(_m4),yyGetReal(alpha),yyGetInt32(_Q61));}function physics_particle_delete(_k9){_t3._v41._S61(yyGetInt32(_k9));}function physics_particle_delete_region_circle(x,y,_T61){_t3._v41._U61(yyGetReal(x),yyGetReal(y),yyGetReal(_T61));}function physics_particle_delete_region_box(x,y,_V61,_W61){_t3._v41._X61(yyGetReal(x),yyGetReal(y),yyGetReal(_V61),yyGetReal(_W61));}function physics_particle_delete_region_poly(_Y61){ _Y61=yyGetInt32(_Y61);var points=[];for(var _t6=0;_t6>1);}function physics_particle_group_begin(_N61,__61,x,y,_071,_O61,_P61,_171,_m4,alpha,_271,_Q61){_t3._v41._371(yyGetInt32(_N61),yyGetInt32(__61),yyGetReal(x),yyGetReal(y),yyGetReal(_071),yyGetReal(_O61),yyGetReal(_P61),yyGetReal(_171),yyGetInt32(_m4),yyGetReal(alpha),yyGetReal(_271),yyGetInt32(_Q61));}function physics_particle_group_circle(_T61){ _t3._v41._471(yyGetReal(_T61));}function physics_particle_group_box(_V61,_W61){_t3._v41._571(yyGetReal(_V61),yyGetReal(_W61));}function physics_particle_group_polygon(){_t3._v41._671();}function physics_particle_group_add_point(x,y){_t3._v41._771(yyGetReal(x),yyGetReal(y));}function physics_particle_group_end(){return _t3._v41._871();}function physics_particle_group_join(_971,from){_t3._v41._a71(yyGetInt32(_971),yyGetInt32(from));}function physics_particle_group_delete(_k9){_t3._v41._b71(yyGetInt32(_k9)); }function physics_particle_draw(_c71,_Q61,_MU,_4o){var _XF=_D5._E5(yyGetInt32(_MU));if(_XF!==null){_t3._v41._d71(yyGetInt32(_c71),yyGetInt32(_Q61),_XF,yyGetInt32(_4o));}}function physics_particle_draw_ext(_c71,_Q61,_MU,_4o,_tR,_uR,angle,_m4,alpha){var _XF=_D5._E5(yyGetInt32(_MU));if(_XF!==null){_t3._v41._e71(yyGetInt32(_c71),yyGetInt32(_Q61),_XF,yyGetInt32(_4o),yyGetReal(_tR),yyGetReal(_uR),yyGetReal(angle),yyGetInt32(_m4),yyGetReal(alpha));}}function physics_particle_count(){return _t3._v41._f71();}function physics_particle_get_data(buffer, _g71){var _Ca=_bO._E5(yyGetInt32(buffer));if(_Ca){_t3._v41._h71(_Ca,yyGetInt32(_g71));}}function physics_particle_get_max_count(){return _t3._v41._i71();}function physics_particle_get_radius(){return _t3._v41._j71();}function physics_particle_get_density(){return _t3._v41._k71();}function physics_particle_get_damping(){return _t3._v41._l71();}function physics_particle_get_gravity_scale(){return _t3._v41._m71();}function physics_particle_set_max_count(_q8){_t3._v41._n71(yyGetInt32(_q8));}function physics_particle_set_radius(_T61){ _t3._v41._o71(yyGetReal(_T61));}function physics_particle_set_density(_p71){_t3._v41._q71(yyGetReal(_p71));}function physics_particle_set_damping(_r71){_t3._v41._s71(yyGetReal(_r71));}function physics_particle_set_gravity_scale(scale){_t3._v41._t71(yyGetReal(scale));}function physics_particle_set_flags(_t4,_u71){_t3._v41._v71(yyGetInt32(_t4),yyGetInt32(_u71));}function physics_particle_set_category_flags(_w71,_u71){_t3._v41._x71(yyGetInt32(_w71),yyGetInt32(_u71));}function physics_particle_set_group_flags(_R41, _z41){_t3._v41._y71(yyGetInt32(_R41),yyGetInt32(_z41));}function physics_particle_get_group_flags(_R41){return _t3._v41._z71(yyGetInt32(_R41));}function physics_particle_get_data_particle(_k9,buffer,_g71){var _Ca=_bO._E5(yyGetInt32(buffer));if(_Ca){_t3._v41._A71(yyGetInt32(_k9),_Ca,yyGetInt32(_g71));}}function physics_particle_group_count(_B71){return _t3._v41._C71(yyGetInt32(_B71));}function physics_particle_group_get_data(_B71,buffer,_g71){var _Ca=_bO._E5(yyGetInt32(buffer));if(_Ca){_t3._v41._D71(yyGetInt32(_B71), _Ca,yyGetInt32(_g71));}}function physics_particle_group_get_mass(_B71){return _t3._v41._E71(yyGetInt32(_B71));}function physics_particle_group_get_inertia(_B71){return _t3._v41._F71(yyGetInt32(_B71));}function physics_particle_group_get_centre_x(_B71){return _t3._v41._G71(yyGetInt32(_B71));}function physics_particle_group_get_centre_y(_B71){return _t3._v41._H71(yyGetInt32(_B71));}function physics_particle_group_get_vel_x(_B71){return _t3._v41._I71(yyGetInt32(_B71));}function physics_particle_group_get_vel_y(_B71){ return _t3._v41._J71(yyGetInt32(_B71));}function physics_particle_group_get_ang_vel(_B71){return _t3._v41._K71(yyGetInt32(_B71));}function physics_particle_group_get_x(_B71){return _t3._v41._L71(yyGetInt32(_B71));}function physics_particle_group_get_y(_B71){return _t3._v41._M71(yyGetInt32(_B71));}function physics_particle_group_get_angle(_B71){return _t3._v41._N71(yyGetInt32(_B71));}var _O71=false;var _P71=false;function room_exists(_t4){var room=_mT._E5(yyGetInt32(_t4));if((room===null)||(room==undefined)){ return false;}return true;}function room_get_name(_t4){var _2u=_mT._E5(yyGetInt32(_t4));if(_2u===null)return "";if((_2u._Q71===undefined)||(_2u._Q71===null))return "";return _2u._Q71.pName;}function _R71(_t4){return room_get_name(_t4);}function room_set_width(_t4,_kj){var _2u=_mT._E5(yyGetInt32(_t4));if(_2u===null)return;_2u._Q71.width=yyGetInt32(_kj);}function room_set_height(_t4,_lj){var _2u=_mT._E5(yyGetInt32(_t4));if(_2u===null)return;_2u._Q71.height=yyGetInt32(_lj);}function room_set_persistent(_t4,_B3){ var _2u=_mT._E5(yyGetInt32(_t4));if(_2u===null)return;var persistent=yyGetBool(_B3);_2u._Q71.persistent=persistent;}function room_set_background_color(_t4,_Pc,_jm){var _2u=_mT._E5(yyGetInt32(_t4));if(_2u===null)return;_2u._Q71.colour=yyGetInt32(_Pc);_2u._Q71.showColour=yyGetBool(_jm);}var room_set_background_colour=room_set_background_color;function room_get_camera(_S71,_T71){var _2u=_mT._E5(yyGetInt32(_S71));if(_2u){var _U71=_2u._Q71.views;if(!_U71)return -1;var _Sz=_U71[yyGetInt32(_T71)];if(_Sz){if(_Sz._V71!==undefined){ return _Sz._V71;}}}return -1;}function room_set_camera(_S71,_T71,_W71){_T71=yyGetInt32(_T71);var _2u=_mT._E5(yyGetInt32(_S71));if(_2u){var _U71=_2u._Q71.views;if(!_U71){_2u._Q71.views=[];_U71=_2u._Q71.views;for(var i=0;i<8;i++){_U71[i]={};}}var _Sz=_U71[_T71];if(!_Sz){_U71[_T71]={};_Sz=_U71[_T71];}_Sz._V71=yyGetInt32(_W71);}}function room_get_viewport(_S71,_T71){var _q4=[];_q4[0]=0;_q4[1]=0;_q4[2]=0;_q4[3]=640;_q4[4]=480;var _2u=_mT._E5(yyGetInt32(_S71));if(_2u){var _U71=_2u._Q71.views;if(_U71){var _Sz=_U71[yyGetInt32(_T71)]; if(_Sz){if(_Sz.visible!==undefined)_q4[0]=_Sz.visible;if(_Sz.xport!==undefined)_q4[1]=_Sz.xport;if(_Sz.yport!==undefined)_q4[2]=_Sz.yport;if(_Sz.wport!==undefined)_q4[3]=_Sz.wport;if(_Sz.hport!==undefined)_q4[4]=_Sz.hport;return _q4;}}}_q4[0]=0;_q4[1]=0;_q4[2]=0;_q4[3]=0;_q4[4]=0;return _q4;}function room_set_viewport(_S71,_T71,_X71,_Y71,_Z71,__71,_081){_T71=yyGetInt32(_T71);var _2u=_mT._E5(yyGetInt32(_S71));if(_2u){if(_2u._Q71){var _Sz=_2u._Q71.views;if(!_Sz){_2u._Q71.views=[];for(var i=0;i<8;i++){_2u._Q71.views[i]={ };}}_Sz=_Sz[_T71];if(_Sz===undefined){_Sz[_T71]={};_Sz=_Sz[_T71];}_Sz.visible=yyGetBool(_X71);_Sz.xport=yyGetInt32(_Y71);_Sz.yport=yyGetInt32(_Z71);_Sz.wport=yyGetInt32(__71);_Sz.hport=yyGetInt32(_081);}}}function room_set_view_enabled(_t4,_B3){var _2u=_mT._E5(yyGetInt32(_t4));if(_2u){_2u._Q71.enableViews=yyGetBool(_B3);}}function room_add(){var _2u=new _181();_2u._281();_mT._Gf(_2u);return _2u.id;}function room_duplicate(_t4){_t4=yyGetInt32(_t4);var _2u=_mT._E5(_t4);if(!_2u){debug("Trying to duplicate non-existent room."); return 0;}return _mT._381(_t4);}function room_assign(_t4,_Jo){_t4=yyGetInt32(_t4);_Jo=yyGetInt32(_Jo);if(_mT._E5(_t4)&&_mT._E5(_Jo)){_mT._481(_t4,_Jo);return true;}return false;}function room_instance_add(_t4,_q5,_r5,_Ak){var _2u=_mT._E5(yyGetInt32(_t4));if(_2u){var instance_id=_jQ++;var _9X=_2u._Q71.pInstances.length;_2u._Q71.pInstances[_9X]={x:yyGetReal(_q5),y:yyGetReal(_r5),index:yyGetInt32(_Ak),id:instance_id};return _Ot(_Pt,instance_id);}return 0;}function room_instance_clear(_t4){var _2u=_mT._E5(yyGetInt32(_t4)); if(_2u){_2u._581();}}function room_goto_next(){if((_t3._681+1)>=_mT._781.length)return;_881=_mT._981(_t3._681+1).id;}function room_restart(){_881=_t3.id;};function room_goto(_Jo){_Jo=yyGetInt32(_Jo);var _a81=_mT._E5(_Jo);if((_a81==null)||(_a81==undefined)){_yi("Error: Room "+_Jo+" is not a valid room index");}else {_881=_Jo;}};function room_goto_previous(){if((_t3._681-1)<0)return;_881=_mT._981(_t3._681-1).id;};function room_previous(_TH){var _il=-1;for(var i=0;i<_mT._b81.length;i++){if(_mT._b81[i]==yyGetInt32(_TH))return _il; _il=_mT._b81[i];}return -1;};function room_next(_TH){for(var i=0;i<(_mT._b81.length-1);i++){if(_mT._b81[i]==yyGetInt32(_TH)){return _mT._b81[i+1];}}return -1;};function game_end(){_881=_c81;if(_O71==false){_O71=true;if(typeof(gmlGameEndScripts)=="function"){gmlGameEndScripts();}}if(!_P71){if(arguments.length>0)show_debug_message("###game_end###"+arguments[0]);else show_debug_message("###game_end###0");_P71=true;}}function game_restart(){g_pBuiltIn.score=0;g_pBuiltIn.lives=0;g_pBuiltIn.health=100;_881=_d81; }function _e81(_B3){var _f81=null;if(typeof(_B3)=="object"){return _B3;}else {var _g81=yyGetInt32(_B3);_f81=_zT._SW(_g81);}return _f81;}function sequence_create(){var _f81=_zT._h81();if(_f81==null){_H4("sequence_create() - could not create new sequence");}else {return _f81;}return -1;}function sequence_destroy(_i81){if(arguments.length!=1){_H4("sequence_destroy() - requires a sequence ID or object");}var _f81=_e81(_i81);if(_f81==null){_H4("sequence_destroy() - specified sequence not valid");}else if(_f81._Tr==true){ _H4("sequence_destroy() - can't delete a sequence created in the IDE");}else {_zT._j81(_f81);}}function sequence_get(_k81){if(arguments.length!=1){_H4("sequence_get() - requires a sequence ID");}var _f81=_e81(_k81);if(_f81==null){_H4("sequence_get() - specified sequence not valid");}else {return _f81;}}function sequence_exists(_l81){if(arguments.length!=1){_H4("sequence_exists() - requires a sequence ID or struct");}var _Vr=false;if(typeof(_l81)=="object"){if(_l81 instanceof _m81){if(_zT._n81(_l81)){_Vr=true; }}}else {var _g81=yyGetInt32(_l81);if(_zT._SW(_g81)!=null){_Vr=true;}}return _Vr?1.0:0.0;}function _o81(_od){if(arguments.length!=1){_H4("sequencekeyframestore_new() - requires a type parameter");}_od=yyGetInt32(_od);var _p81=null;switch(_od){case _q81:case _r81:case _s81:case _t81:case _SU:case _u81:case _v81:case _w81:case _x81:case _y81:case _z81:_p81=new _A81(_od);break;default :_H4("Unsupported keyframe store type");break;}if(_p81==null){return -1;}else {return _p81;}}function sequence_keyframe_new(_od){if(arguments.length!=1){ _H4("sequencekeyframe_new() - requires a type parameter");}_od=yyGetInt32(_od);var _B81=null;switch(_od){case _q81:case _r81:case _s81:case _t81:case _C81:case _SU:case _u81:case _v81:case _w81:case _x81:case _y81:case _z81:_B81=new _D81(_od);break;default :_H4("Unsupported keyframe type");break;}if(_B81==null){return -1;}else {return _B81;}}function sequence_keyframedata_new(_od){if(arguments.length!=1){_H4("sequencekeyframedata_new() - requires a type parameter");}_od=yyGetInt32(_od);var _FO=null;switch(_od){case _q81:_FO=new _E81(); break;case _r81:_FO=new _F81();break;case _s81:_FO=new _G81();break;case _t81:_FO=new _H81();break;case _C81:_FO=new _I81();break;case _SU:_FO=new _J81();break;case _u81:_FO=new _K81();break;case _v81:_FO=new _L81();break;case _w81:_FO=new _M81();break;case _x81:_FO=new _N81();break;case _y81:_FO=new _O81();break;case _z81:_FO=new _P81();break;default :_H4("Unsupported keyframe type");break;}if(_FO==null){return -1;}else {return _FO;}}function sequence_track_new(_od){if(arguments.length!=1){_H4("sequencetrack_new() - requires a type parameter"); }_od=yyGetInt32(_od);var _2W=null;switch(_od){case _q81:_2W=new _Q81();break;case _r81:_2W=new _R81();break;case _t81:_2W=new _S81();break;case _C81:_2W=new _T81();break;case _w81:_2W=new _U81();break;case _x81:_2W=new _V81();break;case _u81:_2W=new _W81();break;case _v81:_2W=new _X81();break;case _s81:_2W=new _Y81();break;case _Z81:_2W=new __81();break;case _091:_2W=new _191();break;case _291:_2W=new _391();break;case _491:_2W=new _591();break;case _691:_2W=new _791();break;case _SU:_2W=new _891();break;default :_H4("Unsupported track type"); break;}if(_2W==null){return -1;}else {return _2W;}}function sequence_get_objects(_i81){if(arguments.length!=1){_H4("sequence_get_objects() - wrong number of arguments");return;}var _f81=null;_f81=_e81(_i81);if(_f81!=null){return _f81._991().map((id)=>_Ot(_a91,id));}return -1;}function sequence_instance_override_object(_f7,_8X,_ST){if(arguments.length!=3){_H4("sequence_instance_override_object() - wrong number of arguments");return;}if((typeof(_f7)!=="object")||(_f7==null)||!(_f7 instanceof _b91)){_H4("sequence_instance_override_object() - specified sequence instance is not valid"); return;}var _c91=_f7;var _f81=_zT._SW(_c91._fS);if(_f81!=null){_8X=yyGetInt32(_8X);_ST=yyGetInt32(_ST);_d91.push(_f81);_c91._e91(_f81._RU,_8X,_ST,-1);_d91.pop();}}var _f91=function(){_Ib("yy_texture_get_texel_width()");};var _g91=function(){_Ib("yy_texture_get_texel_height()");};var _h91=function(){_Ib("texture_set_stage()");};var _i91=function(){_Ib("shader_is_compiled()");};var _j91=function(){_Ib("shader_set()");};var _k91=function(){_Ib("shader_get_uniform()");};var _l91=function(){_Ib("shader_set_uniform_i()"); };var _m91=function(){_Ib("shader_set_uniform_f()");};var _n91=function(){_Ib("shader_set_uniform_matrix()");};var _o91=function(){_Ib("shader_set_uniform_matrix()");};var _p91=function(){_Ib("shader_enable_corner_id()");};var _q91=function(){_Ib("shader_set_uniform_array_i()");};var _r91=function(){_Ib("shader_set_uniform_array_f()");};var _s91=function(){_Ib("shader_set_uniform_buffer_f()");};var _t91=function(){_Ib("shader_set_uniform_matrix_array()");};var _u91=function(index){_Ib("shader_get_name()"); };var _ua=-1;function _v91(name){for(var i=0;i<_rE.Shaders.length;i++){if(_rE.Shaders[i].name===name){return i;}}}function texture_get_texel_width(_o8){return _f91(_o8);}function texture_get_texel_height(_o8){return _g91(_o8);}function texture_set_stage(_w91,_be){_h91(yyGetInt32(_w91),_be);}function shaders_are_supported(){return 0;}function shader_is_compiled(_x91){return _i91(yyGetInt32(_x91));}function shader_set(_x91){_x91=yyGetInt32(_x91);_ua=_x91;_j91(_x91);}function shader_reset(){_ua=-1;_j91(-1);}function shader_current(){ return _ua;}function shader_get_uniform(_x91,_y91){return _k91(yyGetInt32(_x91),yyGetString(_y91));}function shader_set_uniform_i(){var _z91=arguments[0];var _A91=[].splice.call(arguments,1,arguments.length);_l91(_z91,_A91);}function shader_set_uniform_f(){var _z91=arguments[0];var _A91=[].splice.call(arguments,1,arguments.length);_m91(_z91,_A91);}function _B91(){var _z91=arguments[0];var _A91=[];_A91[0]=arguments[1];_l91(_z91,_A91);}function shader_set_uniform_matrix(){var _z91=arguments[0];_n91(_z91);}function shader_get_sampler_index(_x91, _be){return _o91(yyGetInt32(_x91),yyGetString(_be));}function shader_enable_corner_id(_C91){_p91(yyGetBool(_C91));}function shader_set_uniform_i_array(_D91,_hl){_q91(yyGetInt32(_D91),_hl);}function shader_set_uniform_f_array(_D91,_hl){_r91(yyGetInt32(_D91),_hl);}function shader_set_uniform_f_buffer(_D91,_sl,_E91,_fe){_s91(yyGetInt32(_D91),yyGetInt32(_sl),yyGetInt32(_E91),yyGetInt32(_fe));}function shader_set_uniform_matrix_array(_D91,_hl){_t91(yyGetInt32(_D91),_hl);}function shader_get_name(_J3){return _u91(_J3); }var _F91=[];var _G91=300000;var _H91=_G91;var _I91=[];var audio_sampledata=[];var _J91=false;var _K91=128;var _L91=100000;var _M91=[];var _N91=[];var _O91=0;var _P91=200000;var _Q91=[];var _R91=[];var _S91=0;var _T91=1024;var _U91=0;var _V91=[];var _W91=[];var _X91={_ue:false,_Y91:undefined};var _Z91={__91:0,_0a1:1,_1a1:2,_2a1:3,_3a1:4,_4a1:5,_5a1:6};var _6a1={_7a1:0,_8a1:1,_9a1:2};const _aa1={_ba1:0,_ca1:1};var _da1={_ea1:'init',_fa1:'loading',_ga1:'loaded',_ha1:'decoding',_ia1:'ready'};const _ja1={_ka1:'suspended',_la1:'running', _ma1:'closed'};const _na1={_fa1:"Loading",_ka1:"Suspended",_la1:"Running",_ma1:"Closed",_oa1:"Unknown"};_na1._pa1=_na1._oa1;var _qa1={_ra1:"Audio_Play"};var _sa1=0;var _ta1=1.0;var _ua1=0;function _va1(){if(_in!=_jn)return;_wa1.forEach(_R41=>_R41.gain._M5());audio_sampledata.forEach(_xa1=>_xa1.gain._M5());_F91.forEach(_ya1=>_ya1._za1());}var _Aa1;function _Ba1(){if(_in!==_jn)return;_Ca1.disconnect();_Ca1=_Da1(g_WebAudioContext);_Ca1.connect(g_WebAudioContext.destination);g_WebAudioContext.listener._Wk=new _Tz(0, 0,0);g_WebAudioContext.listener._Ea1=new _Tz(0,0,0);g_WebAudioContext.listener._Fa1=new Array(0,0,0,0,0,0);}function _Ga1(){if(_in!==_jn)return;const AudioContext=window.AudioContext||window.webkitAudioContext;g_WebAudioContext=new AudioContext();g_WebAudioContext.addEventListener("statechange",_Ha1);_Ia1=(_Ja1==_Ka1);_X91=_La1();_Ca1=_Da1(g_WebAudioContext);_Ca1.connect(g_WebAudioContext.destination);if(_X91._ue===true){_Ma1();}else {g_WebAudioContext.audioWorklet.addModule(_I8+"sound/worklets/audio-worklet.js").catch((_Na1)=>{ _X91._ue=true;_X91._Y91=_Na1;}).finally(()=>{_Ma1();});}audio_falloff_set_model(_Z91.__91);var _Oa1;if(typeof document.hidden!=="undefined"){_Aa1="hidden";_Oa1="visibilitychange";}else if(typeof document.mozHidden!=="undefined"){_Aa1="mozHidden";_Oa1="mozvisibilitychange";}else if(typeof document.msHidden!=="undefined"){_Aa1="msHidden";_Oa1="msvisibilitychange";}else if(typeof document.webkitHidden!=="undefined"){_Aa1="webkitHidden";_Oa1="webkitvisibilitychange";}document.addEventListener(_Oa1,_Pa1,false); g_WebAudioContext.listener._Wk=new _Tz(0,0,0);g_WebAudioContext.listener._Ea1=new _Tz(0,0,0);g_WebAudioContext.listener._Fa1=new Array(0,0,0,0,0,0);audio_listener_position(0,0,0);audio_listener_orientation(0,0,1.0,0,1.0,0.0);_Qa1();_Ra1();_Sa1();}function _Ta1(){if(g_WebAudioContext==null)return;if(g_WebAudioContext._Ua1==true)return;g_WebAudioContext._Ua1=true;g_WebAudioContext.removeEventListener("statechange",_Ha1);g_WebAudioContext.close().then(()=>{g_WebAudioContext=null;});}function _Da1(_Va1){ if(window.AudioContext!==undefined&&_Va1 instanceof window.AudioContext){return new GainNode(_Va1);}else if(window.webkitAudioContext!==undefined&&_Va1 instanceof window.webkitAudioContext){return _Va1.createGain();}return undefined;}function _La1(){const _q4={_ue:false,_Y91:undefined};if(_UN===_Wa1){_q4._ue=true;_q4._Y91="Using Safari on iOS.";return _q4;}if(g_WebAudioContext.audioWorklet===undefined){_q4._ue=true;_q4._Y91="Audio worklets are not supported on this browser.";return _q4;}if(isSecureContext===false){ _q4._ue=true;_q4._Y91="Audio worklets require a secure context.";return _q4;}return _q4;}function _Xa1(){return(_X91._ue===true)?_Ya1:_Za1;}function __a1(){try{return new(_Xa1())();}catch(_0b1){console.error("Cannot create audio buses until audio engine is running - check audio_system_is_initialised()");console.log("Note: exception thrown => "+_0b1);return null;}}function _Ma1(){if(_X91._ue===true){console.warn("Audio Engine: Using audio worklet fallback.\nReason => "+_X91._Y91);}_1b1=__a1();_1b1._2b1(_Ca1); g_pBuiltIn.audio_bus_main=_1b1;_Ha1();}function _3b1(){return _1b1 instanceof _Za1||_1b1 instanceof _Ya1;}/*@constructor */function _4b1(){this.buffer=null;this.gain=new _5b1(1);this._6b1=1.0;this.pitch=1.0;this.duration=0.0;this._7b1=0.0;this.loopStart=0.0;this.loopEnd=0.0;this.groupId=0;this.kind=_aa1._ba1;this.state=_da1._ea1;this._8b1=[];}_4b1.prototype._9b1=function(){for(var i=0;i=0){this._rb1=_wb1(this._pb1);this._sb1=_xb1(this._pb1);this._tb1=_yb1(this._pb1);if(this._tb1===false){ if(this._z91>=_G91){_V91[this._z91-_G91]=null;}this._z91=_H91;_V91[_H91-_G91]=this;++_H91;}}};_fb1.prototype.start=function(_sl){const _zb1=_ub1._Ab1(this);const _Bb1=(this.loopEnd>0.0)?this.loopEnd:_sl.duration;const _Cb1=(this.loop===true)&&(_zb1<_Bb1);this._nb1=new AudioBufferSourceNode(g_WebAudioContext,{buffer:_sl,loop:_Cb1,loopStart:this.loopStart,loopEnd:this.loopEnd,playbackRate:_ub1._Db1(this)});this._nb1.onended=(_e3)=>{this._jb1=false;this._nb1=null;if(this._hb1!==null)this._hb1.disconnect(); this._ib1=null;this._Eb1(false);};this._nb1.connect(this._hb1);this._kb1={_lb1:g_WebAudioContext.currentTime,_mb1:_zb1};this._nb1.start(0,_zb1);if(this.paused===true)this.pause();};_fb1.prototype.play=function(){if(g_WebAudioContext===null)return;const _Fb1=_Gb1(this._pb1);if(_Fb1.state!==_da1._ia1){const _Hb1=_ln._E5(this._pb1);if(_Fb1.state==_da1._ga1&&!this._rb1&&_Hb1){const _Ib1=_Jb1[_Hb1.pName];if(_Ib1)_Fb1._bb1(_Ib1,true);}_Fb1._8b1.push([_qa1._ra1,this]);return;}if(this._rb1){this._ob1=_ub1._Ab1(this); const _Kb1=_Lb1(this._pb1);const _Mb1=new XMLHttpRequest();_Mb1.open("GET",_Kb1,true);_Mb1.responseType="arraybuffer";_Mb1.onload=()=>{const _Nb1=_Mb1.response;g_WebAudioContext.decodeAudioData(_Nb1).then((_sl)=>{this.start(_sl);});};_Mb1.send();}else {if(this._tb1){const _Ob1=this._pb1-_P91;const _Pb1=_Q91[_Ob1];_Pb1.gainnode=this._hb1;_Pb1._Qb1.connect(this._hb1);_Pb1._Qb1.onended=(_e3)=>{this._jb1=false;};this._kb1._lb1=g_WebAudioContext.currentTime;}else {this.start(_Fb1.buffer);}}this._jb1=true;};_fb1.prototype.stop=function(){ if(this._jb1===false)return;if(this._pb1>=_P91&&this._pb1<(_P91+_S91)){var _Rb1=this._pb1-_P91;_Q91[_Rb1]._Qb1.onended=null;_Q91[_Rb1]._Qb1.disconnect();}else if(this._nb1!==null){this._nb1.onended=null;this._nb1.loop=false;this._nb1.stop(0);this._nb1.disconnect();}if(this._hb1!==null)this._hb1.disconnect();this._ib1=null;this._jb1=false;this._Eb1(true);};_fb1.prototype.pause=function(){if(this._jb1===false)return;if(this._tb1){const _Rb1=this._pb1-_P91;_Q91[_Rb1]._Qb1.onended=null;_Q91[_Rb1]._Qb1.disconnect(0); }else if(this._nb1!==null){this._nb1.onended=null;this._nb1.stop(0);this._nb1.disconnect();this._Sb1();}this.paused=true;};_fb1.prototype.resume=function(){if(this._jb1===false||this.paused===false)return;this.paused=false;if(this._pb1>=_P91&&this._pb1<(_P91+_S91)){const _Rb1=this._pb1-_P91;_Q91[_Rb1]._Qb1.connect(this._hb1);_Q91[_Rb1]._Qb1.onended=(_e3)=>{this._jb1=false;};}else {this._ob1=this._kb1._mb1;this.start(this._nb1.buffer);}};_fb1.prototype._Tb1=function(){if(this._jb1===false)return false; if(this._tb1){var _Ub1=_Q91[this._pb1-_P91];if(!_Ub1||!_Ub1._Qb1||!_Ub1._Qb1.onended)return false;return true;}else {if(this._nb1===null)return false;if(this._nb1.playbackState==undefined||this._nb1.playbackState!=this._nb1.FINISHED_STATE||this.paused){return true;}}return false;};_fb1.prototype._Vb1=function(){if(this._jb1===false)return false;return(this.paused===true);};_fb1.prototype._Wb1=function(_Xb1){if(this._jb1===false)return;this._Sb1();this.loop=_Xb1;if(this._nb1===null)return;const _Yb1=this._kb1._mb1; this._nb1.loop=(this.loop===true)&&(_Yb10.0)?_1c1:duration;this._nb1.loop=(this.loop===true)&&(_Yb1<_Bb1);this._nb1.loopEnd=_1c1;};_fb1.prototype._6c1=function(){if(this._jb1===false)return 0.0;return this.loopStart;};_fb1.prototype._7c1=function(){ if(this._jb1===false)return 0.0;return this.loopEnd;};_fb1.prototype._Zb1=function(){if(this._jb1===false)return 0.0;if(this.loopEnd<=0.0)return audio_sound_length(this._pb1);return this.loopEnd;};_fb1.prototype._8c1=function(){if(this._jb1===false)return 0.0;const loopStart=this.loopStart;const _Bb1=this._Zb1();return(_Bb1-loopStart);};_fb1.prototype._Sb1=function(){if(g_WebAudioContext===null)return;const _lb1=g_WebAudioContext.currentTime;this._kb1={_lb1:_lb1,_mb1:this._9c1(_lb1)};};_fb1.prototype._9c1=function(_ac1){ if(this._jb1===false||g_WebAudioContext===null)return 0.0;if(this._nb1===null)return _ub1._Ab1(this);const _bc1=this._kb1;if(this.paused===true)return _bc1._mb1;const pitch=this._nb1.playbackRate.value;if(_ac1===undefined)_ac1=g_WebAudioContext.currentTime;const _cc1=(_ac1-_bc1._lb1)*pitch;const _Bb1=this._Zb1();const _dc1=(_bc1._mb1>_Bb1);const _ec1=this._nb1.loop;let _Yb1=_bc1._mb1;if(_ec1===false||_dc1===true){_Yb1+=_cc1;}else {const loopStart=this._6c1();const _fc1=loopStart-_bc1._mb1;if(_cc1<_fc1){_Yb1+=_cc1; }else {const _gc1=this._8c1();_Yb1=loopStart+(_cc1-_fc1)%_gc1;}}return _Yb1;};_fb1.prototype._hc1=function(_E91){if(this._jb1===false)return;const duration=audio_sound_length(this._pb1);_E91=Math.max(0.0,_E91);_E91=Math.min(_E91,duration);if(this.paused===true){this._kb1._mb1=_E91;}else {this._ob1=_E91;if(this._nb1===null)return;this._nb1.onended=null;this._nb1.stop();this._nb1.disconnect();this.start(this._nb1.buffer);}};_fb1.prototype._ic1=function(_jc1,_kc1=0){if(this._jb1===false||this._hb1===null)return; this.gain.set(_jc1,_kc1);if(_kc1===0)this._za1();};_fb1.prototype._za1=function(){if(this._jb1===false||this._hb1===null)return;this.gain._M5();this._hb1.gain.value=_ub1._vb1(this);};_fb1.prototype._lc1=function(_mc1){if(this._jb1===false)return;this._Sb1();this.pitch=_mc1;this._nc1();};_fb1.prototype._nc1=function(){if(this._jb1===false||this._nb1===null)return;this._Sb1();this._nb1.playbackRate.value=_ub1._Db1(this);};_fb1.prototype._oc1=function(){if(this._jb1===false)return null;return _Gb1(this._pb1); };_fb1.prototype._pc1=function(){if(this._jb1===false)return -1;return this._pb1;};_fb1.prototype._Eb1=function(_qc1){const _rc1=_Ff._Gf(undefined,undefined,_sc1,undefined);_rc1._tc1=this._z91;_rc1._uc1=this._pb1;_rc1._vc1=_qc1;_rc1._Kf=true;};function _wc1(_B3,_xc1,_yc1,_zc1,_fm){let _Ac1=_B3;if(isNaN(_Ac1)===true)_Ac1=0.0;if(isNaN(_xc1)===false)_Ac1=Math.max(_xc1,_Ac1);if(isNaN(_yc1)===false)_Ac1=Math.min(_Ac1,_yc1);if(_Ac1!==_B3)console.warn(_zc1+": argument '"+_fm+"' was clamped ("+_B3+" => "+_Ac1+")."); return _Ac1;}function _Bc1(_D91){if(_D91<_G91||_D91>=_H91){debug("Error: invalid sound handle "+_D91);return null;}var sound=_V91[_D91-_G91];if(sound==undefined){return null;}return sound;}function _wb1(_pb1){if(_Ia1)return false;if(_pb1>=0&&_pb1=_L91&&_pb1<_P91){return true;}return false;}function _yb1(_pb1){ if(_pb1>=_P91&&_pb1<_G91){return true;}return false;}function _Lb1(_Cc1){var sound=_rE.Sounds[_Cc1];if(sound==null){_Dh="";sound=audio_sampledata[_Cc1];if(sound!=null&&sound._Dc1!==undefined){_Dh=_Ec1(sound._Dc1);}return _Dh;}var _Dh=_I8+sound.origName;var _Fc1=sound.extension;_Dh=_Ec1(_Dh);var index=_Dh.indexOf(_Fc1);if(index>0){_Dh=_Dh.substr(0,index);}if(_Gc1){_Fc1="ogg";}else if(_Hc1){_Fc1="mp3";}else {_Fc1="ogg";}_Dh=_Dh+"."+_Fc1;return _Dh;}var _Ic1=false;var _Ia1=false;function _Jc1(){return g_WebAudioContext!=null; }function _Kc1(){_Lc1=_Mc1();return _Nc1(_Lc1)===true;}function _Nc1(_Oc1){return _Oc1===_na1._la1;}function _Mc1(){if(_3b1()===false)return _na1._fa1;if(_Jc1()===false||g_WebAudioContext.state===_ja1._ma1)return _na1._ma1;if(g_WebAudioContext.state===_ja1._ka1)return _na1._ka1;if(g_WebAudioContext.state===_ja1._la1)return _na1._la1;return _na1._oa1;}function _Sa1(){if(_Ic1)return;_Ic1=true;var _Pc1="mousedown";var _Qc1="mouseup";if("ontouchstart" in window){_Pc1="touchstart";_Qc1="touchend";}if((window.PointerEvent)||(window.navigator.pointerEnabled)||(window.navigator.msPointerEnabled)){ _Pc1="pointerdown";_Qc1="pointerup";}var _Rc1=function(){g_WebAudioContext.resume().then(function(){document.body.removeEventListener(_Pc1,_Rc1);document.body.removeEventListener(_Qc1,_Rc1);_Ic1=false;},function(_Y91){debug("ERROR: Failed to unlock WebAudio Context. Reason: "+_Y91);});};document.body.addEventListener(_Pc1,_Rc1,false);document.body.addEventListener(_Qc1,_Rc1,false);}function _Ha1(){const _Lc1=_Mc1();if(_Lc1!==_na1._pa1){debug("Audio Engine => "+_Lc1);_na1._pa1=_Lc1;}const _Sc1=_Nc1(_Lc1); const map=ds_map_create();g_pBuiltIn.async_load=map;ds_map_add(map,"event_type","audio_system_status");ds_map_add(map,"status",_Sc1?"available":"unavailable");_i3._j3(_Tc1,0);ds_map_destroy(map);g_pBuiltIn.async_load=-1;}function audio_system_is_available(){return _Kc1()===true;}function audio_system_is_initialised(){return _3b1()===true;}function audio_sound_is_playable(_Uc1){_Uc1=yyGetInt32(_Uc1);var _eb1=_Gb1(_Uc1);if(_eb1==null)return false;if(!audio_system_is_available())return false;var _Hb1=_ln._E5(_Uc1); if(_eb1.state==_da1._ga1&&_Hb1){var _Ib1=_Jb1[_Hb1.pName];if(_Ib1)_eb1._bb1(_Ib1,true);}return(_eb1.state==_da1._ia1);}function _Vc1(_gb1){if(_in!=_jn)return null;var i;var sound;for(i=0;i<_U91;++i){sound=_F91[i];if(!sound._jb1){sound._WS(_gb1);return sound;}else {if(sound._tb1&&sound._pb1==_gb1.asset_index)return null;const _Wc1=((sound._nb1!=null&&sound._nb1.playbackState!=undefined&&sound._nb1.playbackState==sound._nb1.FINISHED_STATE)&&!sound.paused);if(_Wc1===true){sound._WS(_gb1);return sound;}}}if(_U91<_K91){ var _Xc1=new _fb1(_gb1);_F91[_U91]=_Xc1;++_U91;return _Xc1;}var _Yc1=_gb1.priority;var _Zc1=-1;for(i=0;i<_U91;++i){sound=_F91[i];if(sound.priority<_Yc1){_Zc1=i;_Yc1=sound.priority;}}if(_Zc1>=0){debug("killing sound on channel "+_Zc1);var __c1=_F91[_Zc1];__c1.stop();__c1._WS(_gb1);return __c1;}debug("reached max sounds and no lower priority");return null;}function _Gb1(_pb1){var _0d1=null;if(_pb1>=0&&_pb1<=audio_sampledata.length){_0d1=audio_sampledata[_pb1];}else {var _1d1=_pb1-_L91;if(_1d1>=0&&_1d1<_O91){_0d1=_N91[_1d1]; }else {var _Rb1=_pb1-_P91;if(_Rb1>=0&&_Rb1<_S91){_0d1=_R91[_Rb1];}}}return _0d1;}function _2d1(_3d1){const _4d1=audio_emitter_exists(_3d1);if(_4d1===false){_H4("Emitter with index "+_3d1+" does not exist!");return undefined;}return _I91[_3d1];}function _5d1(_gb1){if(_gb1._6d1())return -1;const _7d1=_Vc1(_gb1);if(_7d1===null)return -1;switch(_gb1.type){case _8d1._9d1:_1b1._ad1(_7d1._hb1);break;case _8d1._bd1:const _Wk=_gb1.position;_gb1.emitter=new _cd1();_gb1.emitter.setPosition(_Wk.x,_Wk.y,_Wk.z);_gb1.emitter._dd1(_Wk.falloff_ref, _Wk.falloff_max,_Wk.falloff_factor);case _8d1._ed1:_7d1._ib1=_gb1.emitter;_7d1._hb1.connect(_7d1._ib1._fd1());break;default :debug("Warning: Unknown audio playback type => "+_gb1.type);return -1;}_7d1.play();return _7d1._z91;}function audio_play_sound(_gd1,_hd1,_O3,_jc1,_E91,_mc1){const _4l=new _id1({sound:_gd1,priority:_hd1,loop:_O3,gain:_jc1,offset:_E91,pitch:_mc1});return _5d1(_4l);}function audio_play_sound_on(_jd1,_gd1,_O3,_hd1,_jc1,_E91,_mc1){const _4l=new _id1({emitter:_jd1,sound:_gd1,loop:_O3,priority:_hd1, gain:_jc1,offset:_E91,pitch:_mc1});return _5d1(_4l);}function audio_play_sound_at(_gd1,_q5,_r5,_1d,_kd1,_ld1,_md1,_O3,_hd1,_jc1,_E91,_mc1){const _4l=new _id1({sound:_gd1,position:{x:_q5,y:_r5,z:_1d,falloff_ref:_kd1,falloff_max:_ld1,falloff_factor:_md1},loop:_O3,priority:_hd1,gain:_jc1,offset:_E91,pitch:_mc1});return _5d1(_4l);}function audio_play_sound_ext(_qt){if(typeof _qt!=="object")_H4("Error: audio_play_sound_ext => argument must be a struct");const _4l=new _id1(_qt);return _5d1(_4l);}function audio_stop_sound(_Cc1){ if(_in!==_jn)return;_Cc1=yyGetInt32(_Cc1);if(_Cc1>=_G91){const _7d1=_Bc1(_Cc1);if(_7d1===null)return;if(_7d1._tb1){_V91[_7d1._z91-_G91]=undefined;}_7d1.stop();}else {_F91.filter(_ya1=>_ya1._pb1===_Cc1).forEach(_ya1=>_ya1.stop());}}function audio_pause_sound(_Cc1){if(_in!==_jn)return;_Cc1=yyGetInt32(_Cc1);if(_Cc1>=_G91){const _7d1=_Bc1(_Cc1);if(_7d1===null)return;_7d1.pause();}else {_F91.filter(_ya1=>_ya1._pb1===_Cc1).forEach(_ya1=>_ya1.pause());}}function audio_resume_sound(_Cc1){if(_in!==_jn)return;_Cc1=yyGetInt32(_Cc1); if(_Cc1>=_G91){const _7d1=_Bc1(_Cc1);if(_7d1===null)return;_7d1.resume();}else {_F91.filter(_ya1=>_ya1._pb1===_Cc1).forEach(_ya1=>_ya1.resume());}}function audio_play_music(_Cc1,_nd1){debug("audio_play_music :: deprecated function\n");}function audio_stop_music(){debug("audio_stop_music :: deprecated function");}function audio_pause_music(){debug("audio_pause_music :: deprecated function");}function audio_resume_music(){debug("audio_resume_music :: deprecated function");}function audio_music_is_playing(){ debug("audio_music_is_playing :: deprecated function");return 0;}function audio_exists(_jg){_jg=yyGetInt32(_jg);var _0d1=_Gb1(_jg);if(_0d1!=null)return true;var sound=_V91[_jg-_G91];if(sound&&sound._jb1)return true;return false;}function audio_sound_get_pitch(_Cc1){if(_in==_jn){_Cc1=yyGetInt32(_Cc1);if(_Cc1>=_G91){const _7d1=_Bc1(_Cc1);if(_7d1!=null&&_7d1._jb1){return _7d1.pitch;}}else {const _od1=_Gb1(_Cc1);if(_od1!=null&&_yb1(_Cc1)==false){return _od1.pitch;}}}return 1.0;}function audio_sound_pitch(_Cc1,_mc1){ _Cc1=yyGetInt32(_Cc1);_mc1=yyGetReal(_mc1);if(_Cc1<0)return;if(_in!=_jn)return;if(_Cc1>=_G91){const _7d1=_Bc1(_Cc1);if(_7d1===null)return;_7d1._lc1(_mc1);}else {const _od1=_Gb1(_Cc1);if(_od1==null||_yb1(_Cc1))return;_od1.pitch=_mc1;_F91.filter(_ya1=>_ya1._pb1===_Cc1).forEach(_ya1=>_ya1._nc1());}}function audio_sound_get_gain(_J3){if(_in!=_jn)return;_J3=yyGetInt32(_J3);if(_J3>=_G91){const _7d1=_Bc1(_J3);if(_7d1!=null&&_7d1._jb1)return _7d1.gain.get();}else {const _Fb1=_Gb1(_J3);if(_Fb1!==undefined)return _Fb1.gain.get(); }return 0;}function audio_sound_gain(_J3,_jc1,_pd1){_J3=yyGetInt32(_J3);_jc1=yyGetReal(_jc1);_jc1=_wc1(_jc1,0.0,undefined,"audio_sound_gain","gain");_pd1=yyGetInt32(_pd1);_pd1=_wc1(_pd1,0,undefined,"audio_sound_gain","timeMs");if(_J3>=_G91){const _7d1=_Bc1(_J3);if(_7d1===null)return;_7d1._ic1(_jc1,_pd1);}else {const _Fb1=_Gb1(_J3);if(_Fb1===null)return;_Fb1.gain.set(_jc1,_pd1);if(_pd1>0.0)return;_F91.filter(_ya1=>_ya1._pb1===_J3).forEach(_ya1=>_ya1._za1());}}function audio_music_gain(_qd1,time){debug("audio_music_gain :: deprecated function\n"); }function _Pa1(){if(g_WebAudioContext){(document.visibilityState==='visible')?g_WebAudioContext.resume():g_WebAudioContext.suspend();}if(_in==_jn){if(document[_Aa1]==true){if(!_J91){_J91=true;_rd1(true);}}else if(document[_Aa1]==false){if(_J91){_sd1(true);_J91=false;}}}}function audio_sound_length(_Cc1){if(_in!==_jn)return -1.0;_Cc1=yyGetInt32(_Cc1);let _uc1=-1;if(_Cc1<_G91){if(_Gb1(_Cc1)!==null)_uc1=_Cc1;}else {const _7d1=_Bc1(_Cc1);if(_7d1!==null)_uc1=_7d1._pb1;}if(_uc1!==-1){if(_wb1(_uc1))return audio_sampledata[_uc1].duration; else if(_xb1(_uc1))return _N91[_uc1-_L91].buffer.duration;else if(_yb1(_uc1))return 0.0;else return audio_sampledata[_uc1].buffer.duration;}return -1.0;}function audio_sound_get_track_position(_Cc1){if(_in!=_jn)return 0;_Cc1=yyGetInt32(_Cc1);if(_Cc1>=_G91){const _7d1=_Bc1(_Cc1);if(_7d1!=null){return _7d1._9c1();}}else if(_Cc1>=0){const _od1=_Gb1(_Cc1);if(_od1!=undefined){return _od1._7b1;}}return 0.0;}function audio_sound_set_track_position(_Cc1,_96){if(_in!=_jn)return;_Cc1=yyGetInt32(_Cc1);_96=yyGetReal(_96);if(_Cc1>=_G91){ const _7d1=_Bc1(_Cc1);if(_7d1===null)return;_7d1._hc1(_96);}else if(_Cc1>=0){_96=_H6(_96,0);const duration=audio_sound_length(_Cc1);if(_96=_G91){const _7d1=_Bc1(_J3);if(_7d1!==null)_7d1._0c1(_1c1);}else {const _Fb1=_Gb1(_J3);if(_Fb1===null){debug("audio_sound_loop_start() - no asset found with index "+_J3);return;}_Fb1.loopStart=_1c1;_F91.filter(_ya1=>_ya1._pb1===_J3).forEach(_ya1=>_ya1._0c1(_1c1));}}function audio_sound_get_loop_start(_J3){ _J3=yyGetInt32(_J3);if(_J3>=_G91){const _7d1=_Bc1(_J3);if(_7d1===null)return 0.0;return _7d1._6c1();}else {const _Fb1=_Gb1(_J3);if(_Fb1===null){debug("audio_sound_get_loop_start() - no asset found with index "+_J3);return 0.0;}return _Fb1.loopStart;}}function audio_sound_loop_end(_J3,_1c1){_J3=yyGetInt32(_J3);_1c1=yyGetReal(_1c1);const _ud1=audio_sound_length(_J3);if(_ud1===-1){debug("audio_sound_loop_end() - could not determine length of asset");return;}_1c1=clamp(_1c1,0,_ud1);if(_J3>=_G91){const _7d1=_Bc1(_J3); if(_7d1!==null)_7d1._4c1(_1c1);}else {const _Fb1=_Gb1(_J3);if(_Fb1===null){debug("audio_sound_loop_end() - no asset found with index "+_J3);return;}_Fb1.loopEnd=_1c1;_F91.filter(_ya1=>_ya1._pb1===_J3).forEach(_ya1=>_ya1._4c1(_1c1));}}function audio_sound_get_loop_end(_J3){_J3=yyGetInt32(_J3);if(_J3>=_G91){const _7d1=_Bc1(_J3);if(_7d1===null)return 0.0;return _7d1._7c1();}else {const _Fb1=_Gb1(_J3);if(_Fb1===null){debug("audio_sound_get_loop_end() - no asset found with index "+_J3);return 0.0;}return _Fb1.loopEnd; }}function audio_system(){if(_in==_jn)return 1;else return 0;}function audio_emitter_exists(_3d1){if(_3d1===undefined)return false;_3d1=yyGetInt32(_3d1);const emitter=_I91[_3d1];return emitter instanceof _cd1&&emitter._vd1()===true;}function audio_get_type(_Cc1){if(_in!=_jn)return -1;if(_wb1(yyGetInt32(_Cc1))){return 1;}return 0;}function audio_get_name(_J3){if(_in==_jn){_J3=yyGetInt32(_J3);var _wd1=-1;if(_J3>=_G91){var sound=_Bc1(_J3);if(sound!=null){_wd1=sound._pb1;}}else {_wd1=_J3;}if(_wd1>=0&&_wd1<_rE.Sounds.length){ var name=_rE.Sounds[_wd1].pName;return name;}}return "";}var _xd1;var _yd1;function audio_falloff_set_model(_zd1){if(_in!=_jn){return;}_zd1=yyGetInt32(_zd1);if(_zd1==_yd1)return;var _Ad1=g_WebAudioContext.createPanner();_yd1=_zd1;switch(_zd1){case _Z91.__91:_xd1=_Ad1.INVERSE_DISTANCE;if(_xd1==undefined)_xd1="inverse";break;case _Z91._0a1:_xd1=_Ad1.INVERSE_DISTANCE;if(_xd1==undefined)_xd1="inverse";break;case _Z91._1a1:debug("Audio_falloff_inverse_distance_clamped not supported in html5\n");break; case _Z91._2a1:_xd1=_Ad1.LINEAR_DISTANCE;if(_xd1==undefined)_xd1="linear";break;case _Z91._3a1:debug("Audio_falloff_linear_distance_clamped not supported in html5\n");break;case _Z91._4a1:_xd1=_Ad1.EXPONENTIAL_DISTANCE;if(_xd1==undefined)_xd1="exponential";break;case _Z91._5a1:debug("Audio_falloff_exponent_distance_clamped not supported in html5\n");break;default :debug("Attempting to set audio falloff to unknown model\n");break;}_I91.filter(_Bd1=>_Bd1._vd1()===true).forEach(_Bd1=>{_Bd1._Cd1.distanceModel=_xd1; if(_yd1==_Z91.__91){_Bd1._Dd1=_Bd1._Cd1.rolloffFactor;_Bd1._Cd1.rolloffFactor=0;}else if(_Bd1._Dd1!==undefined){_Bd1._Cd1.rolloffFactor=_Bd1._Dd1;_Bd1._Dd1=undefined;}});}function _rd1(_Ed1){for(var i=0;i<_U91;++i){var sound=_F91[i];if(sound._jb1){if(!sound.paused){sound.pause();if(_Ed1)sound._qb1=true;}}}}function audio_stop_all(){_F91.forEach(_ya1=>_ya1.stop());}function _Fd1(_Gd1){_F91.filter(_ya1=>audio_sampledata[_ya1._pb1].groupId===_Gd1).forEach(_ya1=>_7d1.stop());}function audio_pause_all(){_rd1(false); }function audio_resume_all(){_sd1(false);}function _sd1(_Ed1){for(var i=0;i<_U91;++i){var sound=_F91[i];if(sound._jb1){if(sound.paused){if(_Ed1){if(sound._qb1){sound.resume();sound._qb1=false;}}else {sound.resume();}}}}}function audio_is_paused(_Cc1){if(_in!==_jn)return false;_Cc1=yyGetInt32(_Cc1);if(_Cc1>=_G91){const _7d1=_Bc1(_Cc1);if(_7d1===null)return false;return _7d1._Vb1();}return _F91.filter(_ya1=>_ya1._pb1===_Cc1).some(_ya1=>_ya1._Vb1());}function audio_is_playing(_Cc1){if(_in!==_jn)return false;_Cc1=yyGetInt32(_Cc1); if(_Cc1>=_G91){const _7d1=_Bc1(_Cc1);if(_7d1===null)return false;return _7d1._Tb1();}return _F91.filter(_ya1=>_ya1._pb1===_Cc1).some(_ya1=>_ya1._Tb1());}function audio_listener_position(_Hd1,_Id1,_Jd1){if(_in==_jn){_Hd1=yyGetReal(_Hd1);_Id1=yyGetReal(_Id1);_Jd1=yyGetReal(_Jd1);var _Kd1=g_WebAudioContext.listener;_Kd1.setPosition(_Hd1,_Id1,_Jd1);if(_Kd1._Wk){_Kd1._Wk._pA=_Hd1;_Kd1._Wk._qA=_Id1;_Kd1._Wk._rA=_Jd1;}else {_Kd1._Wk=new _Tz(_Hd1,_Id1,_Jd1);}}}function audio_listener_velocity(_Hd1,_Id1,_Jd1){if(_in==_jn){ _Hd1=yyGetReal(_Hd1);_Id1=yyGetReal(_Id1);_Jd1=yyGetReal(_Jd1);var _Kd1=g_WebAudioContext.listener;_Kd1.setVelocity(_Hd1,_Id1,_Jd1);if(_Kd1._Ea1){_Kd1._Ea1._pA=_Hd1;_Kd1._Ea1._qA=_Id1;_Kd1._Ea1._rA=_Jd1;}else {_Kd1._Ea1=new _Tz(_Hd1,_Id1,_Jd1);}}}function audio_listener_orientation(_Hd1,_Id1,_Jd1,_Ld1,_Md1,_Nd1){if(_in==_jn){_Hd1=yyGetReal(_Hd1);_Id1=yyGetReal(_Id1);_Jd1=yyGetReal(_Jd1);_Ld1=yyGetReal(_Ld1);_Md1=yyGetReal(_Md1);_Nd1=yyGetReal(_Nd1);var _Kd1=g_WebAudioContext.listener;_Kd1.setOrientation(_Hd1, _Id1,_Jd1,_Ld1,_Md1,_Nd1);if(_Kd1._Fa1){_Kd1._Fa1[0]=_Hd1;_Kd1._Fa1[1]=_Id1;_Kd1._Fa1[2]=_Jd1;_Kd1._Fa1[3]=_Ld1;_Kd1._Fa1[4]=_Md1;_Kd1._Fa1[5]=_Nd1;}else {_Kd1._Fa1=new Array(_Hd1,_Id1,_Jd1,_Ld1,_Md1,_Nd1);}}}function audio_listener_set_position(_Od1,_q5,_r5,_1d){if(yyGetInt32(_Od1)==0){audio_listener_position(yyGetReal(_q5),yyGetReal(_r5),yyGetReal(_1d));}}function audio_listener_set_velocity(_Od1,_Pd1,_Qd1,_Rd1){if(yyGetInt32(_Od1)==0){audio_listener_velocity(yyGetReal(_Pd1),yyGetReal(_Qd1),yyGetReal(_Rd1)); }}function audio_listener_set_orientation(_Od1,_Sd1,_Td1,_Ud1,_Vd1,_Wd1,_Xd1){if(yyGetInt32(_Od1)==0){audio_listener_orientation(yyGetReal(_Sd1),yyGetReal(_Td1),yyGetReal(_Ud1),yyGetReal(_Vd1),yyGetReal(_Wd1),yyGetReal(_Xd1));}}function audio_listener_get_data(_Od1){if(yyGetInt32(_Od1)==0){var _Kd1=g_WebAudioContext.listener;var map=ds_map_create();ds_map_add(map,"x",_Kd1._Wk._pA);ds_map_add(map,"y",_Kd1._Wk._qA);ds_map_add(map,"z",_Kd1._Wk._rA);ds_map_add(map,"vx",_Kd1._Ea1._pA);ds_map_add(map,"vy", _Kd1._Ea1._qA);ds_map_add(map,"vz",_Kd1._Ea1._rA);ds_map_add(map,"lookat_x",_Kd1._Fa1[0]);ds_map_add(map,"lookat_y",_Kd1._Fa1[1]);ds_map_add(map,"lookat_z",_Kd1._Fa1[2]);ds_map_add(map,"up_x",_Kd1._Fa1[3]);ds_map_add(map,"up_y",_Kd1._Fa1[4]);ds_map_add(map,"up_z",_Kd1._Fa1[5]);return map;}return -1;}function audio_emitter_position(_3d1,_q5,_r5,_1d){const emitter=_2d1(_3d1);if(emitter===undefined)return;_q5=yyGetReal(_q5);_r5=yyGetReal(_r5);_1d=yyGetReal(_1d);emitter.setPosition(_q5,_r5,_1d);}function audio_emitter_get_x(_3d1){ const emitter=_2d1(_3d1);if(emitter===undefined)return 0.0;return emitter._Yd1();}function audio_emitter_get_y(_3d1){const emitter=_2d1(_3d1);if(emitter===undefined)return 0.0;return emitter._Zd1();}function audio_emitter_get_z(_3d1){const emitter=_2d1(_3d1);if(emitter===undefined)return 0.0;return emitter.__d1();}function audio_emitter_create(){const _0e1=_I91.findIndex(_Bd1=>_Bd1.active===false);if(_0e1!==-1){_I91[_0e1]._1e1();return _0e1;}const emitter=new _cd1();if(emitter===null)return undefined;return _I91.push(emitter)-1; }function audio_emitter_free(_3d1){const emitter=_2d1(_3d1);if(emitter===undefined)return;_F91.filter(_ya1=>_ya1._ib1===emitter).forEach(_ya1=>_ya1.stop());emitter.gainnode.disconnect();emitter.active=false;}function audio_master_gain(_Hd1){if(_in!=_jn)return;_Ca1.gain.value=yyGetReal(_Hd1);}function audio_set_master_gain(_Od1,_jc1){if(yyGetInt32(_Od1)==0){audio_master_gain(yyGetReal(_jc1));}}function audio_get_master_gain(_Od1){if(yyGetInt32(_Od1)==0){return _Ca1.gain.value;}return 0;}function audio_emitter_gain(_3d1, _jc1){const emitter=_2d1(_3d1);if(emitter===undefined)return;_jc1=yyGetReal(_jc1);_jc1=Math.max(0.0,_jc1);emitter.gainnode.gain.value=_jc1;}function audio_emitter_get_gain(_3d1){const emitter=_2d1(_3d1);if(emitter===undefined)return 0.0;return emitter.gainnode.gain.value;}function audio_emitter_pitch(_3d1,_mc1){const emitter=_2d1(_3d1);if(emitter===undefined)return;_mc1=yyGetReal(_mc1);_mc1=Math.max(0.0,_mc1);emitter.pitch=_mc1;_F91.filter(_ya1=>_ya1._ib1===emitter).forEach(_ya1=>_ya1._nc1());}function audio_emitter_get_pitch(_3d1){ const emitter=_2d1(_3d1);if(emitter===undefined)return 1.0;return emitter.pitch;}function audio_emitter_falloff(_3d1,_2e1,_3e1,_4e1){const emitter=_2d1(_3d1);if(emitter===undefined)return;_2e1=yyGetReal(_2e1);_3e1=yyGetReal(_3e1);_4e1=yyGetReal(_4e1);emitter._dd1(_2e1,_3e1,_4e1);}function audio_channel_num(_5e1){_5e1=yyGetInt32(_5e1);if(_5e1<_K91){for(var i=_5e1;i<_U91;++i){var sound=_F91[i];if(sound._jb1){sound.stop();}}if(_U91>_5e1)_U91=_5e1;}_K91=_5e1;}function audio_sound_get_listener_mask(_td1){return 1; }function audio_emitter_get_listener_mask(_3d1){return 1;}function audio_get_listener_mask(){return 1;}function audio_get_listener_count(){return 1;}function audio_get_listener_info(index){if(_in==_jn){index=yyGetInt32(index);if(index==0){var map=ds_map_create();ds_map_add(map,"name","default");ds_map_add(map,"mask",1);ds_map_add(map,"index",index);return map;}}return -1;}function audio_debug(_6e1){}/*@this {XMLHttpRequest} */function _7e1(e){if(_in!=_jn)return;var targetid=e.target.targetid;debug("error loading sound"+targetid); if(targetid!=undefined){debug("AudioError: "+this.URL);this.completed=false;_8e1++;ClearEventListeners(this);}}/*@this {XMLHttpRequest} */function _9e1(e){if(_in!=_jn)return;var targetid=e.target.targetid;if(_ae1)debug("sound loaded: "+targetid);if(targetid!=undefined){this.completed=true;ClearEventListeners(this);try{var _eb1=audio_sampledata[targetid];_eb1.state=_da1._ha1;g_WebAudioContext.decodeAudioData(e.target.response,function(buffer){_eb1.buffer=buffer;_eb1.state=_da1._ia1;_8e1++;},function(err){ _eb1.state=_da1._ga1;_8e1++;debug("error decoding audio data:"+err);});}catch(_bk){debug("error decoding audio data: "+_bk.message);_8e1++;}}}function _be1(_e3){if(_in!=_jn)return;this.completed=true;ClearEventListeners(this);var targetid=_e3.target.targetid;if(_ae1)debug("streamed sound pre-loaded: "+targetid);var _eb1=audio_sampledata[targetid];if(_eb1){_eb1.state=_da1._ga1;}else {debug("ERROR: No sample data sound for sound ID "+targetid+" in Audio_StreamedSoundPreloaded");}}function _ce1(_or,_jg, _N3,_de1){var _eb1=audio_sampledata[_jg];_eb1.buffer=null;if(_Ia1){_ee1(_or,_jg,_N3,_de1);}else {_eb1.state=_da1._ia1;}}function _fe1(e){var targetid=e.target.targetid;debug("Audio_SoundReadyStateChange:targetid/readyState/status:"+targetid+'/'+e.target.readyState+'/'+e.target.status);}function _ge1(e){var targetid=e.target.targetid;debug("Audio_SoundProgress:targetid/loaded/total:"+targetid+'/'+e._Nh+'/'+e._he1);}function _ie1(_or,_de1){_or=_Ec1(_or);var index;index=_or.indexOf(_de1);if(index>0){_or=_or.substr(0, index);}if(_Gc1){_de1="ogg";}else if(_Hc1){_de1="mp3";}else {_de1="ogg";}_or=_or+"."+_de1;var _Mb1=new XMLHttpRequest();_Mb1.open('GET',_or,true);_Mb1.responseType='arraybuffer';_Mb1.URL=_or;_Mb1.completed=false;return _Mb1;}function _je1(_or,_jg,_N3,_de1,_ke1){if((_in!=_jn)||(_le1==false)){return undefined;}var _Mb1=_ie1(_or,_de1);if(_ke1!=undefined){_Mb1.targetid={_B71:_ke1,_wd1:_jg};_Mb1.onload=_me1;_Mb1.onerror=_ne1;}else {_Mb1.targetid=_jg;_Mb1.onload=_9e1;_Mb1.onerror=_7e1;_Mb1.ontimeout=_7e1;_Mb1._2O=_ge1; _Mb1.onreadystatechange=_fe1;}_Mb1.send();_Jb1[_N3]=_Mb1;return _jg;}function _ee1(_or,_jg,_N3,_de1){if((_in!=_jn)||(_le1==false)){return undefined;}var _Mb1=_ie1(_or,_de1);_Mb1.targetid=_jg;_Mb1.onload=_be1;_Mb1.onerror=_7e1;_Mb1.send();_Jb1[_N3]=_Mb1;return _jg;}var _oe1="Unloaded";var _pe1="Loading";var _qe1="Loaded";var _re1="Unloading";var _se1=0;var _wa1=[];/*@constructor */function _te1(_Gd1){this.groupId=_Gd1;this._ue1=_oe1;this._ve1=0;this._we1=0;this._xe1=[];this.gain=new _5b1(1);}_te1.prototype._ye1=function(_ze1){ this._xe1.push(_ze1);};_te1.prototype._Ae1=function(_Be1){if(this._ue1!=_Be1){this._ue1=_Be1;debug("Audio Group "+this.groupId+"-> "+this._ue1);if(_Be1==_qe1){var map=ds_map_create();g_pBuiltIn.async_load=map;ds_map_add(map,"type","audiogroup_load");ds_map_add(map,"group_id",this.groupId);_i3._j3(_Ce1,0);}}};_te1.prototype._De1=function(){return this.gain.get();};_te1.prototype._ic1=function(_jc1,_pd1){_jc1=Math.max(0,_jc1);_pd1=Math.max(0,_pd1);this.gain.set(_jc1,_pd1);if(_pd1==0){_F91.forEach(_ya1=>{ const _uc1=this._xe1.find(_Ee1=>_Ee1==_ya1._pb1);if(_uc1!==undefined)_ya1._hb1.gain.value=_ub1._vb1(_ya1);});}};/*@this {XMLHttpRequest} */function _me1(e){var targetid=this.targetid._wd1;var _Fe1=this.targetid._B71;if(_ae1)debug("sound loaded "+targetid);if(targetid!=undefined){e.target.completed=true;ClearEventListeners(this);try{var _eb1=audio_sampledata[targetid];_eb1.state=_da1._ha1;g_WebAudioContext.decodeAudioData(e.target.response,function(buffer){_eb1.buffer=buffer;_eb1.state=_da1._ia1;_Fe1._Ge1(); },function(err){_eb1.state=_da1._ga1;_Fe1._Ge1();debug("error decoding audio data:"+err);});}catch(_bk){debug("error decoding audio data: "+_bk.message);_Fe1._Ge1();}}}/*@this {XMLHttpRequest} */function _ne1(e){var targetid=this.targetid._wd1;var _Fe1=this.targetid._B71;debug("error loading sound"+targetid);if(targetid!=undefined){debug("AudioError: "+this.URL);this.completed=false;ClearEventListeners(this);_Fe1._Ge1();}}_te1.prototype._Ge1=function(){this._ve1--;if(this._xe1.length>0){this._we1=((this._xe1.length-this._ve1)*100)/(this._xe1.length); }if(this._ve1<=0){this._Ae1(_qe1);}};_te1.prototype._s8=function(){if(this._ue1!=_oe1){return 0;}if(this._xe1.length==0){return 0;}this._Ae1(_pe1);this._ve1=this._xe1.length;this._we1=0;var i;for(i=0;i0&&_Gd1<_se1){var _Fe1=_wa1[_Gd1];var result=_Fe1._s8();return result;}return 0;}function audio_group_unload(_Gd1){_Gd1=yyGetInt32(_Gd1);if(_Gd1>0&&_Gd1<_se1){var _Fe1=_wa1[_Gd1];var result=_Fe1._He1();return result;}return 0;}function audio_group_is_loaded(_Gd1){_Gd1=yyGetInt32(_Gd1);if(_Gd1==0){return 1;}if(_Gd1>0&&_Gd1<_se1){var _Fe1=_wa1[_Gd1]; var result=_Fe1._Ie1();return result;}return 0;}function audio_group_load_progress(_Gd1){_Gd1=yyGetInt32(_Gd1);if(_Gd1==0){return 100;}if(_Gd1>0&&_Gd1<_se1){var _Fe1=_wa1[_Gd1];var result=_Fe1._Je1();return result;}return 0;}function audio_group_name(_Gd1){_Gd1=yyGetInt32(_Gd1);if(_Gd1>=0&&_Gd1<_se1){var name=_rE.AudioGroups[_Gd1].name;return name;}return "";}function audio_group_stop_all(_Gd1){_Fd1(yyGetInt32(_Gd1));}function audio_group_set_gain(_Gd1,_jc1,_pd1){_Gd1=yyGetInt32(_Gd1);_jc1=yyGetReal(_jc1); _pd1=yyGetInt32(_pd1);const _B71=_wa1[_Gd1];if(_B71!==undefined)_B71._ic1(_jc1,_pd1);}function audio_group_get_gain(_Gd1){_Gd1=yyGetInt32(_Gd1);const _B71=_wa1[_Gd1];if(_B71!==undefined)return _B71._De1();return 1;}function audio_group_get_assets(_Le1){_Le1=yyGetInt32(_Le1);const _B71=_wa1[_Le1];if(_B71===undefined)return [];return _B71._xe1;}function audio_sound_get_audio_group(_Me1){_Me1=yyGetInt32(_Me1);if(_Me1>=_G91){const _7d1=_Bc1(_Me1);if(_7d1===null)return -1;_Me1=_7d1._pc1();}const _Fb1=_Gb1(_Me1);if(_Fb1===null)return -1; return _Fb1.groupId;}function audio_create_stream(_nl){var _eb1=new _4b1();_eb1.buffer=null;_eb1.gain=new _5b1(1);_eb1._6b1=1;_eb1.pitch=1;_eb1.kind=_aa1._ca1;_eb1.duration=-1;_eb1.groupId=0;_eb1._Dc1=yyGetString(_nl);var index=audio_sampledata.length;for(var i=_rE.Sounds.length;i_6a1._9a1){debug("audio_create_buffer_sound - unhandled _channels setting : "+_Ve1);return -1;}let _Xe1=8;if(_Se1==_Ye1)_Xe1=16;else if(_Se1!=_hO){debug("audio_create_buffer_sound - unhandled _bufferFormat setting : "+_Se1);return -1;}_Te1=Math.min(Math.max(_Te1,8000),48000); buffer_seek(_Re1,_dk,0);var _Ze1=_Ue1;const __e1=g_WebAudioContext.sampleRate/_Te1;const _0f1=1.0/__e1;const _6J=Math.pow(2,_Xe1-1);const _1f1={length:_Ue1/(_We1*_Xe1/8)*__e1,numberOfChannels:_We1,sampleRate:g_WebAudioContext.sampleRate};const _2f1=new AudioBuffer(_1f1);let _3f1=0.0;for(let _ED=0;_ED<_2f1.length;++_ED){for(let _4f1=0;_4f1<_2f1.numberOfChannels;++_4f1){const _5f1=_2f1.getChannelData(_4f1);if(_3f1-1.0>=0.0){_5f1[_ED]=(buffer_read(_Re1,_Se1)/_6J)-1.0;_3f1-=1.0;}else {_5f1[_ED]=_5f1[_ED-1];}_3f1+=_0f1; }}var _eb1=new _4b1();_eb1.gain=new _5b1(1);_eb1._6b1=1.0;_eb1.pitch=1.0;_eb1.kind=_aa1._ba1;_eb1.duration=_Ze1/(_Te1*_We1*_Xe1/8);_eb1.groupId=0;_eb1._8b1=[];_eb1.state=_da1._ia1;_eb1.buffer=_2f1;_N91[_Xc1._z91-_L91]=_eb1;return _Xc1._z91;}function audio_free_buffer_sound(_Uc1){_Uc1=yyGetInt32(_Uc1);var _1d1=_Uc1-_L91;if(_1d1<0||_1d1>=_O91){debug("sound "+_Uc1+" does not appear to be a buffer sound, not freeing");return -1;}_M91[_1d1]._sb1=false;_N91[_1d1]=null;return 0;}function _6f1(){if(_in!=_jn)return null; for(let i=0;i<_S91;i++){const sound=_Q91[i];if(sound&&!sound._tb1){const _4l=new _id1({sound:_P91+i,priority:10});sound._WS(_4l);return sound;}}if(_S91<_K91){var _4D=_S91;for(let i=0;i<_S91;i++){const sound=_Q91[i];if(!sound){_4D=i;break;}}const _4l=new _id1({sound:_P91+_4D,priority:10});var _Xc1=new _fb1(_4l);_Q91[_4D]=_Xc1;_Xc1._z91=_P91+_4D;if(_4D==_S91)++_S91;return _Xc1;}return null;}function audio_create_play_queue(_7f1,_Te1,_Ve1){_7f1=yyGetInt32(_7f1);_Te1=yyGetInt32(_Te1);_Ve1=yyGetInt32(_Ve1);if(_Ve1!=_6a1._7a1&&_Ve1!=_6a1._8a1&&_Ve1!=_6a1._9a1){ debug("audio_create_play_queue: channels should be audio_mono, audio_stereo or audio_3d");return -1;}var _8f1=1;if(_Ve1==_6a1._8a1)_8f1=2;if(_Te1<1000)_Te1=1000;if(_Te1>48000)_Te1=48000;if(_7f1!=_hO&&_7f1!=_Ye1){debug("audio_create_play_queue: unsupported format (use buffer_u8,buffer_s16)");return -1;}var _Xc1=_6f1();if(_Xc1==null){debug("Failed to create play queue.");return -1;}_Xc1._9f1=_7f1;_Xc1._af1=_Te1;_Xc1._bf1=_Ve1;_Xc1._Qb1=g_WebAudioContext.createScriptProcessor(_T91,0,_8f1);_Xc1._Qb1.sourceBuffers=[]; _Xc1._Qb1._cf1=0;_Xc1._Qb1._df1=0;_Xc1._Qb1.onaudioprocess=function(_ef1){var outputBuffer=_ef1.outputBuffer;var _Qb1=_Xc1._Qb1;var _ff1=outputBuffer.numberOfChannels;for(var _gf1=0;_gf1<_T91;_gf1++){if(_Qb1.sourceBuffers.length>0){for(let _hf1=0;_hf1<_ff1;_hf1++){const _if1=outputBuffer.getChannelData(_hf1);_if1[_gf1]=_Qb1.sourceBuffers[0].getChannelData(_hf1)[_Qb1._df1];}_Qb1._df1++;if(_Qb1._df1>=_Qb1.sourceBuffers[0].length){var _jf1=_Qb1.sourceBuffers.shift();var _Ef=_Ff._Gf(_Xc1._z91,undefined,_kf1, undefined);_Ef._Ob1=_Xc1._z91;_Ef._lf1=_jf1._mf1;_Ef._nf1=0;_Ef._Jf=0;_Ef._Kf=true;_Qb1._df1=0;}}else {for(let _hf1=0;_hf1<_ff1;_hf1++){const _if1=outputBuffer.getChannelData(_hf1);_if1[_gf1]=0;}}}};var _eb1=new _4b1();_eb1.gain=new _5b1(1);_eb1._6b1=1.0;_eb1.pitch=1.0;_eb1.kind=_aa1._ba1;_eb1.duration=0.0;_eb1.groupId=0;_eb1._8b1=[];_eb1.state=_da1._ia1;_R91[_Xc1._z91-_P91]=_eb1;return _Xc1._z91;}function audio_queue_sound(_of1,_Re1,_E91,_DX){_of1=yyGetInt32(_of1);_Re1=yyGetInt32(_Re1);_E91=yyGetInt32(_E91); _DX=yyGetInt32(_DX);var _Rb1=_of1-_P91;if(_Rb1<0&&_Rb1>=_S91){debug("sound "+_of1+" does not appear to be a queue sound, can't queue a sound behind it.");return -1;}var _Pb1=_Q91[_Rb1];if(!_Pb1||_Q91[_Rb1]._tb1==false){debug("looks like queue sound "+_of1+" has been freed already, not queueing behind it.");return -1;}{var _We1=1;if(_Pb1._bf1==_6a1._8a1)_We1=2;else if(_Pb1._bf1>_6a1._9a1){debug("audio_create_buffer_sound - unhandled queueSound.queueChannels setting : "+_Pb1._bf1);return -1;}var _Xe1=8;if(_Pb1._9f1==_Ye1)_Xe1=16; else if(_Pb1._9f1!=_hO){debug("audio_create_buffer_sound - unhandled queueSound.queueFormat setting : "+_Pb1._9f1);return -1;}buffer_seek(_Re1,_pf1,0);var _Ze1=_DX;var wavBuffer=buffer_create(44+_Ze1,_qf1,1);buffer_write(wavBuffer,_5k,_Oe1(0x46464952));buffer_write(wavBuffer,_5k,_Oe1(36+_Ze1));buffer_write(wavBuffer,_5k,_Oe1(0x45564157));buffer_write(wavBuffer,_5k,_Oe1(0x20746d66));buffer_write(wavBuffer,_5k,_Oe1(16));buffer_write(wavBuffer,_rf1,_Qe1(1));buffer_write(wavBuffer,_rf1,_Qe1(_We1));buffer_write(wavBuffer, _5k,_Oe1(_Pb1._af1));buffer_write(wavBuffer,_5k,_Oe1(_Pb1._af1*_We1*_Xe1/8));buffer_write(wavBuffer,_rf1,_Qe1(_We1*_Xe1/8));buffer_write(wavBuffer,_rf1,_Qe1(_Xe1));buffer_write(wavBuffer,_5k,_Oe1(0x61746164));buffer_write(wavBuffer,_5k,_Oe1(_Ze1));buffer_copy(_Re1,_E91,_Ze1,wavBuffer,44);var _Ca=buffer_get_address(wavBuffer);_Pb1._Qb1._cf1++;try{g_WebAudioContext.decodeAudioData(_Ca,function(buffer){buffer_delete(wavBuffer);buffer._mf1=_Re1;_Pb1._Qb1.sourceBuffers.push(buffer);_Pb1._Qb1._cf1--;}, function(err){debug("error decoding audio data:"+err);buffer_delete(wavBuffer);});}catch(_bk){debug("audio_create_buffer_sound - error decoding audio data: "+_bk+" -- "+_bk.message);}}return -1;}function audio_free_play_queue(_of1){_of1=yyGetInt32(_of1);var _Rb1=_of1-_P91;if(_Rb1<0||_Rb1>=_S91){debug("sound "+_of1+" does not appear to be a queue sound, not freeing");return -1;}audio_stop_sound(_of1);_Q91[_Rb1]._tb1=false;_Q91[_Rb1]=undefined;delete _Q91[_Rb1];return 0;}navigator.getUserMedia=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia; function audio_get_recorder_count(){if(navigator.getUserMedia){return 1;}return 0;}function audio_get_recorder_info(_J3){_J3=yyGetInt32(_J3);if(_J3<0||_J3>audio_get_recorder_count()){debug("audio_get_recorder_info - device "+_J3+" is not available");return -1;}var map=ds_map_create();ds_map_add(map,"name","User provided audio input");ds_map_add(map,"index",0);ds_map_add(map,"data_format",_Ye1);ds_map_add(map,"sample_rate",16000);ds_map_add(map,"channels",0);return map;}var _sf1=false;var _tf1=undefined;function audio_start_recording(_uf1){ var _q8=audio_get_recorder_count();if(_q8<=0){debug("audio_start_recording - not available in this browser.");return -1;}_uf1=yyGetInt32(_uf1);if(_uf1>=_q8){debug("audio_start_recording - device "+_uf1+" is not available.");return -1;}var _vf1=4096;if(_tf1===undefined){_tf1=g_WebAudioContext.createScriptProcessor(_vf1,1,1);_tf1.wavBuffer=buffer_create(_vf1*2,_qf1,1);_tf1.onaudioprocess=function(_ef1){var inputBuffer=_ef1.inputBuffer;buffer_seek(_tf1.wavBuffer,_dk,0);var _wf1=g_WebAudioContext.sampleRate/16000; for(var _hf1=0;_hf1{if(_Bd1._Df1===_Hf1&&_Bd1._vd1()===true)_Kf1.push(_J3);});return _Kf1;}function audio_bus_clear_emitters(_Hf1){if(_3b1()===false||_Hf1 instanceof _Xa1()===false||_Hf1===_1b1)return;_I91.filter(_Bd1=>_Bd1._Df1===_Hf1).filter(_Bd1=>_Bd1._vd1()===true).forEach(_Bd1=>{_Bd1.gainnode.disconnect();_1b1._ad1(_Bd1.gainnode);_Bd1._Df1=_1b1;});}function lin_to_db(_q5){_q5=yyGetReal(_q5);return 20*Math.log10(_q5);}function db_to_lin(_q5){_q5=yyGetReal(_q5);return Math.pow(10, _q5/20);}function _Lf1(_J3){if(_in!=_Mf1)return;_ln._nn(_J3);}function _Nf1(_J3){if(_in!=_Mf1)return;_ln._mn(_J3);}function _Of1(_J3){if(_in!=_Mf1)return;_ln._Iq(_J3);}function _Pf1(){if(_in!=_Mf1)return;_ln._Qf1();}function _Rf1(_J3){if(_in!=_Mf1)return false;return _ln._Kq(_J3);}function _Sf1(_J3,_Vn){if(_in!=_Mf1)return;_ln._Tf1(_J3,_Vn);}function _Uf1(_Vn){if(_in!=_Mf1)return;_ln._Vf1(_Vn);}function _Wf1(_J3,_Vn,_96){if(_in!=_Mf1)return;_ln._Xf1(_Xk(_J3),_Vn,_Xk(_96));}function _3r(_jg){if(_in!=_Mf1)return false; if(_ln._E5(_jg)===null)return false;return true;}function _Yf1(_Zf1){if(_in!=_Mf1)return -1;var _0d1=_ln._E5(_Zf1);if(_0d1===null)return -1;return _0d1.kind;}function _5K(_jg){if(_in!=_Mf1)return "";var _0d1=_ln._E5(_jg);if(_0d1===null)return "";return _0d1.pName;}function __f1(_jg){if(_in!=_Mf1)return "";return _5K(_jg);}function _0g1(_Zq,_Gc,_1g1){_Zq=_Ec1(_Zq);if(_in!=_Mf1)return;var _Fc1=filename_ext(_Zq);if(_Zq.substring(0,5)=="file:")return -1;var _0t=_Fc1;_2g1(_0t,_Zq,_Fc1,_1t,_2t);var _xW=_ln._Gf1();var _3g1=_ln._E5(_xW); _3g1.pName=_Zq;_3g1.extension=_Fc1;_3g1.origName=_Zq;_Ff._Gf(_xW,_Zq,_4g1,_Jb1[_Zq]);return _xW;}function _4r(_J3,_Zq,_Gc,_1g1){if(_in!=_Mf1)return;_Of1(_J3);var _Fc1=filename_ext(_Zq);if(_Zq.substring(0,5)=="file:")return -1;var _0t=_Fc1;_2g1(_0t,_Zq,_Fc1,_1t,_2t);var _3g1=_ln._E5(_J3);_Jb1[_3g1.pName]=undefined;_3g1._5g1=[];_3g1.pName=_Zq;_3g1.extension=_Fc1;_3g1.origName=_Zq;_Ff._Gf(_J3,_Zq,_4g1,_Jb1[_3g1.pName]);return _J3;}function _6g1(_J3){if(_in!=_Mf1)return;_ln._Ll(_J3);}var _7g1=0,_8g1=1,_9g1=2, _ag1=3;function sprite_exists(_J3){if(_D5._E5(yyGetInt32(_J3))==null)return false;return true;}function sprite_get_width(_J3){var _XF=_D5._E5(yyGetInt32(_J3));if(_XF==null)return 0;return _XF.width;}function sprite_get_height(_J3){var _XF=_D5._E5(yyGetInt32(_J3));if(_XF==null)return 0;return _XF.height;}function sprite_get_name(_J3){var _XF=_D5._E5(yyGetInt32(_J3));if(_XF==null)return "";return _XF.pName;}function _bg1(_J3){return sprite_get_name(_J3);}function sprite_get_number(_J3){var _XF=_D5._E5(yyGetInt32(_J3)); if(_XF==null)return 0;return _XF._E6;}function _cg1(_J3){var _XF=_D5._E5(yyGetInt32(_J3));if(_XF==null)return 0;return _XF.transparent;}function sprite_get_xoffset(_J3){var _XF=_D5._E5(yyGetInt32(_J3));if(_XF==null)return 0;return _XF.xOrigin;}function sprite_get_yoffset(_J3){var _XF=_D5._E5(yyGetInt32(_J3));if(_XF==null)return 0;return _XF.yOrigin;}function sprite_get_bbox_left(_J3){var _XF=_D5._E5(yyGetInt32(_J3));if(_XF==null)return 0;return _XF._IP.left;}function sprite_get_bbox_right(_J3){var _XF=_D5._E5(yyGetInt32(_J3)); if(_XF==null)return 0;return _XF._IP.right;}function sprite_get_bbox_top(_J3){var _XF=_D5._E5(yyGetInt32(_J3));if(_XF==null)return 0;return _XF._IP.top;}function sprite_get_bbox_bottom(_J3){var _XF=_D5._E5(yyGetInt32(_J3));if(_XF==null)return 0;return _XF._IP.bottom;}function sprite_get_bbox_mode(_J3){var _XF=_D5._E5(yyGetInt32(_J3));if(_XF==null)return -1;return _XF._dg1;}function sprite_set_offset(_J3,_LK,_MK){var _XF=_D5._E5(yyGetInt32(_J3));if(_XF==null)return;_XF.xOrigin=yyGetReal(_LK);_XF.yOrigin=yyGetReal(_MK); _XF._eg1();}function sprite_set_bbox(_J3,_Is,_Js,_fg1,_gg1){var _XF=_D5._E5(yyGetInt32(_J3));if(_XF===null)return;_XF._IP.left=yyGetInt32(_Is);_XF._IP.top=yyGetInt32(_Js);_XF._IP.right=yyGetInt32(_fg1);_XF._IP.bottom=yyGetInt32(_gg1);}function sprite_set_bbox_mode(_J3,_Ar){var _XF=_D5._E5(yyGetInt32(_J3));if(_XF==null)return;_Ar=yyGetInt32(_Ar);if((_Ar<0)||(_Ar>2))return;if(_Ar==_XF._dg1)return;_XF._dg1=_Ar;}function sprite_set_alpha_from_sprite(_pk,_oj){var _Gk=_D5._E5(yyGetInt32(_pk));if(_Gk===null)return false; if(!_Gk._xs){_H4("Error: Can't set the alpha channel of normal sprite. It must 'duplicated' first");return false;}var _Hk=_D5._E5(yyGetInt32(_oj));if(_Hk===null)return false;var _q8=_Hk._E6;if(_q8>_Gk._E6){_q8=_Gk._E6;}for(var i=0;i<_q8;i++){var _hg1=_Gk._C4[i];var _ig1=_Hk._C4[i];_Ys(_hg1,_ig1);}return true;}var _jg1=_kg1;function _kg1(_t4,_q5,_r5,_kj,_lj,_8s,_9s){_t4=yyGetInt32(_t4);_q5=yyGetInt32(_q5);_r5=yyGetInt32(_r5);_kj=yyGetInt32(_kj);_lj=yyGetInt32(_lj);_8s=yyGetBool(_8s);var _lg1=document.createElement(_8F); var _mg1=_lg1.getContext('2d');_ng1(_mg1);var _og1=_D5._E5(_t4);_og1._E6++;_lg1.width=_og1.width;_lg1.height=_og1.height;_mg1._pg1(canvas,_q5,_r5,_kj,_lj,0,0,_lg1.width,_lg1.height);if(_8s){_lg1.complete=_es(_mg1,_kj,_lj);}else {_lg1.complete=true;}_og1._E6++;var _B4=new _hs();_og1._C4[_og1._C4.length]=_B4;_B4.x=0;_B4.y=0;_B4.w=_og1.width;_B4.h=_og1.height;_B4.XOffset=0;_B4.YOffset=0;_B4.CropWidth=_B4.w;_B4.CropHeight=_B4.h;_B4.ow=_B4.w;_B4.oh=_B4.h;_B4.tp=_ys(_lg1);_B4.texture=_F4[_B4.tp];_B4.texture.complete=true; return _t4;}var sprite_create_from_surface=_qg1;function _qg1(_jg,_q5,_r5,_kj,_lj,_8s,_9s,_rg1,_sg1){_jg=yyGetInt32(_jg);_q5=yyGetInt32(_q5);_r5=yyGetInt32(_r5);_kj=yyGetInt32(_kj);_lj=yyGetInt32(_lj);_8s=yyGetBool(_8s);_rg1=yyGetInt32(_rg1);_sg1=yyGetInt32(_sg1);var _lg1=document.createElement(_8F);var _mg1=_lg1.getContext('2d');_ng1(_mg1);_lg1.width=_cs._E5(_jg).width;_lg1.height=_cs._E5(_jg).height;_mg1._pg1(_cs._E5(_jg),0,0);if(_8s){_lg1.complete=_es(_mg1,_kj,_lj);}else {_lg1.complete=true;}var _og1=new _tg1(); var _xW=_D5._ug1(_og1);_og1.pName="surface.copy";_og1.width=_kj;_og1.height=_lj;_og1._IP=new _IF();_og1._IP.right=_og1.width;_og1._IP.bottom=_og1.height;_og1.transparent=true;_og1.smooth=true;_og1.preload=true;_og1._dg1=0;_og1._1r=_vg1._wg1;_og1.xOrigin=_rg1;_og1.yOrigin=_sg1;_og1._xs=true;_og1._E6=1;_og1._xg1=false;_og1._yg1=false;_og1._F6=[];_og1._C4=[];_og1.Masks=[];_og1._eg1();var _B4=new _hs();_og1._C4[0]=_B4;_B4.x=0;_B4.y=0;_B4.w=_og1.width;_B4.h=_og1.height;_B4.XOffset=0;_B4.YOffset=0;_B4.CropWidth=_B4.w; _B4.CropHeight=_B4.h;_B4.ow=_B4.w;_B4.oh=_B4.h;_B4.tp=_ys(_lg1);_B4.texture=_F4[_B4.tp];_B4.texture.complete=true;_zg1(_B4);return _xW;}var sprite_add_from_surface=_Ag1;function _Ag1(_t4,_jg,_q5,_r5,_kj,_lj,_8s,_9s){_t4=yyGetInt32(_t4);_jg=yyGetInt32(_jg);_q5=yyGetInt32(_q5);_r5=yyGetInt32(_r5);_kj=yyGetInt32(_kj);_lj=yyGetInt32(_lj);_8s=yyGetBool(_8s);var _lg1=document.createElement(_8F);var _mg1=_lg1.getContext('2d');_ng1(_mg1);var _og1=_D5._E5(_t4);_og1._E6++;_lg1.width=_og1.width;_lg1.height=_og1.height; _mg1._pg1(_cs._E5(_jg),0,0,_kj,_lj,0,0,_lg1.width,_lg1.height);if(_8s){_lg1.complete=_es(_mg1,_kj,_lj);}else {_lg1.complete=true;}var _B4=new _hs();_og1._C4[_og1._C4.length]=_B4;_B4.x=0;_B4.y=0;_B4.w=_og1.width;_B4.h=_og1.height;_B4.XOffset=0;_B4.YOffset=0;_B4.CropWidth=_B4.w;_B4.CropHeight=_B4.h;_B4.ow=_B4.w;_B4.oh=_B4.h;_B4.tp=_ys(_lg1);_B4.texture=_F4[_B4.tp];_B4.texture.complete=true;return _t4;}function sprite_delete(_t4){_D5._Ll(yyGetInt32(_t4));}function sprite_save(_t4,_cn,_Zq){_Ib("sprite_save()"); }var sprite_duplicate=_Bg1;function _Bg1(_t4){var _XF=_D5._E5(yyGetInt32(_t4));if(_XF==null)return 0;var _og1=new _tg1();var _xW=_D5._ug1(_og1);_og1.pName=_XF.pName+".copy";_og1.width=_XF.width;_og1.height=_XF.height;_og1._IP._nj(_XF._IP);_og1.transparent=_XF.transparent;_og1.smooth=_XF.smooth;_og1.preload=_XF.preload;_og1._dg1=_XF._dg1;_og1._1r=_XF._1r;_og1.xOrigin=_XF.xOrigin;_og1.yOrigin=_XF.yOrigin;_og1._xs=true;_og1._E6=_XF._E6;_og1._Cg1=_XF._Cg1;_og1._xg1=_XF._xg1;_og1.playbackspeedtype=_XF.playbackspeedtype; _og1.playbackspeed=_XF.playbackspeed;_og1._yg1=_XF._yg1;_og1._F6=[];_og1._C4=[];_og1.Masks=[];for(var i=0;i<_XF._E6;i++){var _B4=new _hs();_og1._C4[i]=_B4;_B4._xs(_XF._C4[i]);var _vs=_ws(_XF._C4[i]);_B4.tp=_ys(_vs);_B4.x=0;_B4.y=0;_B4.texture=_F4[_B4.tp];_B4.texture.complete=true;}return _xW;}function sprite_add(_nl,_Dg1,_8s,_9s,_rg1,_sg1,_Eg1){_nl=yyGetString(_nl);_Dg1=yyGetInt32(_Dg1);if(_Dg1<0)return -1;if(_Dg1==0)_Dg1=1;var _og1=new _tg1();_og1._Fg1=true;if(_nl.substring(0,5)=="file:")return -1;_og1.pName=_nl; if(_Eg1!=undefined){if(_Eg1){_og1._K8=true;}}var _xW=_D5._ug1(_og1);if(_nl.endsWith('.json')){_og1._Gg1(_nl,function(err){var _Jl=_Ff._Gf(_xW,_nl,_Hg1,{});_Jl._Kf=true;_Jl._Jf=err?_pF:_lF;});return _xW;}var _0t=_nl;var _S4=_H8(_0t);_F4[_S4].onload=_1t;_F4[_S4].onerror=_2t;_Ff._Gf(_xW,_nl,_Hg1,_F4[_S4]);_og1.width=-1;_og1.height=-1;_og1._IP=new _IF();_og1._IP.right=0;_og1._IP.bottom=0;_og1.transparent=_8s;_og1.smooth=yyGetBool(_9s);_og1.preload=true;_og1._dg1=0;_og1._1r=_vg1._wg1;_og1.xOrigin=yyGetInt32(_rg1); _og1.yOrigin=yyGetInt32(_sg1);_og1._xs=false;_og1._E6=_Dg1;_og1._Cg1=0;_og1._xg1=false;_og1._yg1=false;_og1._F6=[];_og1._C4=[];_og1.Masks=[];for(var i=0;i<_Dg1;i++){var _B4=new _hs();_og1._C4[i]=_B4;_B4.x=0;_B4.y=0;_B4.w=0;_B4.h=0;_B4.XOffset=0;_B4.YOffset=0;_B4.CropWidth=0;_B4.CropHeight=0;_B4.ow=_B4.w;_B4.oh=_B4.h;_B4.tp=_S4;_B4.texture=_F4[_B4.tp];}return _xW;}function sprite_add_ext(_nl,_Dg1,_rg1,_sg1,_Eg1){return sprite_add(_nl,_Dg1,false,false,_rg1,_sg1,_Eg1);}function sprite_replace(_t4,_nl,_Dg1, _8s,_9s,_rg1,_sg1){_t4=yyGetInt32(_t4);_nl=yyGetString(_nl);_Dg1=yyGetInt32(_Dg1);if(_Dg1<0)return -1;if(_Dg1==0)_Dg1=1;var _og1=_D5._E5(_t4);_og1._Fg1=true;if(_nl.substring(0,5)=="file:")return -1;var _0t=_nl;if(_nl.endsWith('.json')){_og1._Gg1(_nl,function(err){var _Jl=_Ff._Gf(_t4,_nl,_Hg1,{});_Jl._Kf=true;_Jl._Jf=err?_pF:_lF;});return _t4;}var _S4=_H8(_0t);_F4[_S4].onload=_1t;_F4[_S4].onerror=_2t;_Ff._Gf(_t4,_nl,_Hg1,_F4[_S4]);_og1.width=0;_og1.height=0;_og1._IP=new _IF();_og1._IP.right=0;_og1._IP.bottom=0; _og1.transparent=yyGetBool(_8s);_og1.smooth=yyGetBool(_9s);_og1.preload=true;_og1._dg1=0;_og1._1r=_vg1._wg1;_og1.xOrigin=yyGetInt32(_rg1);_og1.yOrigin=yyGetInt32(_sg1);_og1._xs=false;_og1._E6=_Dg1;_og1._Cg1=0;_og1._xg1=false;_og1._yg1=false;_og1._F6=[];_og1._C4=[];_og1.Masks=[];for(var i=0;i<_Dg1;i++){var _B4=new _hs();_og1._C4[i]=_B4;_B4.x=0;_B4.y=0;_B4.w=0;_B4.h=0;_B4.XOffset=0;_B4.YOffset=0;_B4.CropWidth=0;_B4.CropHeight=0;_B4.ow=_B4.w;_B4.oh=_B4.h;_B4.tp=_S4;_B4.texture=_F4[_B4.tp];}return _t4;} function sprite_merge(_pk,_oj){_pk=yyGetInt32(_pk);var _Gk=_D5._E5(_pk);var _Hk=_D5._E5(yyGetInt32(_oj));var w=_Gk.width;var h=_Gk.height;var _Ig1=_1a;for(var i=0;i<_Hk._E6;i++){var _lg1=document.createElement(_8F);var _mg1=_lg1.getContext('2d');_ng1(_mg1);_lg1.width=w;_lg1.height=h;_1a=_mg1;_mg1._pg1(_Hk._C4[i].texture,0,0,w,h,0,0,_lg1.width,_lg1.height);_lg1.complete=true;var _B4=new _hs();_Gk._C4[_Gk._C4.length]=_B4;_B4.x=0;_B4.y=0;_B4.w=w;_B4.h=h;_B4.XOffset=0;_B4.YOffset=0;_B4.CropWidth=w;_B4.CropHeight=h; _B4.ow=_B4.w;_B4.oh=_B4.h;_B4.tp=_ys(_lg1);_B4.texture=_F4[_B4.tp];_B4.texture.complete=true;_Gk._E6++;}_1a=_Ig1;return _pk;}function sprite_assign(_g11,_n6){_g11=yyGetInt32(_g11);var _Gk=_D5._E5(_g11);var _Hk=_D5._E5(yyGetInt32(_n6));_Gk.width=_Hk.width;_Gk.height=_Hk.height;_Gk._IP=new _IF();_Gk._IP._nj(_Hk);_Gk.transparent=_Hk.transparent;_Gk.smooth=_Hk.smooth;_Gk.preload=_Hk.preload;_Gk._dg1=_Hk._dg1;_Gk._1r=_Hk._1r;_Gk.xOrigin=_Hk.xOrigin;_Gk.yOrigin=_Hk.yOrigin;_Gk._xs=true;_Gk._E6=_Hk._E6;_Gk._Cg1=_Hk._Cg1; _Gk._xg1=_Hk._xg1;_Gk.playbackspeedtype=_Hk.playbackspeedtype;_Gk.playbackspeed=_Hk.playbackspeed;_Gk._yg1=_Hk._yg1;_Gk._F6=_Hk._F6.slice(0);_Gk._C4=[];if(_Hk.Masks){_Gk.Masks=_Hk.Masks.slice();}var w=_Gk.width;var h=_Gk.height;var _Ig1=_1a;for(var i=0;i<_Hk._E6;i++){var _ig1=_Hk._C4[i];var _B4=new _hs();_Gk._C4[i]=_B4;_B4.x=_ig1.x;_B4.y=_ig1.y;_B4.w=_ig1.w;_B4.h=_ig1.h;_B4.XOffset=_ig1.XOffset;_B4.YOffset=_ig1.YOffset;_B4.CropWidth=_ig1.CropWidth;_B4.CropHeight=_ig1.CropHeight;_B4.ow=_ig1.ow;_B4.oh=_ig1.oh; _B4.tp=_ig1.tp;_B4.texture=_ig1.texture;}_1a=_Ig1;return _g11;}function sprite_collision_mask(_t4,_Jg1,_Kg1,_Lg1,_Mg1,_Ng1,_Og1,_Gc,_Pg1){var _XF=_D5._E5(yyGetInt32(_t4));if(_XF===null){return false;}_XF._1r=_vg1._Qg1;_XF._F6=[];_XF._yg1=yyGetInt32(_Jg1);_XF._IP=new _IF();if(_XF._E6==0){return;}_Kg1=yyGetInt32(_Kg1);_Gc=yyGetInt32(_Gc);_Pg1=yyGetInt32(_Pg1);_XF._dg1=_Kg1;if(_Kg1==0){var _Rg1=100000;var _Sg1=-100000;var _Tg1=100000;var _Ug1=-100000;for(var i=0;i<_XF._E6;i++){var _Vg1=_XF._C4[i];var _Wg1=_Xg1(_Vg1); var index=0;for(var _ml=0;_ml<_Vg1.oh;_ml++){for(var __5=0;__5<_Vg1.ow;__5++){var index=((_ml*_Vg1.ow+__5)*4)+3;if(index<_Wg1.length){if(_Wg1[index]>_Pg1){if(__5<_Rg1)_Rg1=__5;if(__5>_Sg1)_Sg1=__5;if(_ml<_Tg1)_Tg1=_ml;if(_ml>_Ug1)_Ug1=_ml;}}}}}if(_Rg1==0x7FFFFFFF){_XF._IP.left=0;_XF._IP.right=0;_XF._IP.top=0;_XF._IP.bottom=0;}else {_XF._IP.left=_Rg1;_XF._IP.right=_Sg1;_XF._IP.top=_Tg1;_XF._IP.bottom=_Ug1;}}else if(_Kg1==1){_XF._IP.left=0;_XF._IP.right=_XF.width;_XF._IP.top=0;_XF._IP.bottom=_XF.height; }else {_XF._IP.left=yyGetInt32(_Lg1);_XF._IP.right=yyGetInt32(_Ng1);_XF._IP.top=yyGetInt32(_Mg1);_XF._IP.bottom=yyGetInt32(_Og1);}var _C4=_XF._C4;_XF._F6=[];if(_XF._yg1){for(var i=0;i<_XF._E6;i++){_XF._F6[i]=_Yg1(null,_XF._C4[i],_Kg1,_XF._IP,_Gc,_Pg1);}}else {_XF._F6[0]=_Yg1(_XF._F6[0],_XF._C4[0],_Kg1,_XF._IP,_Gc,_Pg1);for(var i=1;i<_XF._E6;i++){_XF._F6[0]=_Yg1(_XF._F6[0],_XF._C4[i],_Kg1,_XF._IP,_Gc,_Pg1);}}_XF._xg1=true;}function _Yg1(_Zg1,_Vg1,_Kg1,__g1,_Gc,_Pg1){var w=_Vg1.ow;var h=_Vg1.oh;var _0h1=h*w; var _UG=new Uint8Array(_0h1);for(var __5=0;__5<_0h1;__5++)_UG[__5]=false;if(_Gc==_7g1){var _Wg1=_Xg1(_Vg1);var index=0;for(var i=0;i<_Wg1.length;i+=4){if(_Wg1[i+3]>_Pg1){_UG[index]=true;}else {_UG[index]=false;}index++;}}else {switch(_Gc){case _8g1:{for(var y=__g1.top;y<=__g1.bottom;y++){for(var x=__g1.left;x<=__g1.right;x++){_UG[x+(y*w)]=true;}}break;}case _9g1:{var _17=(__g1.left+__g1.right)/2;var _db=_17-__g1.left+0.5;var _27=(__g1.top+__g1.bottom)/2;var _eb=_27-__g1.top+0.5;for(var y=__g1.top;y<=__g1.bottom; y++){for(var x=__g1.left;x<=__g1.right;x++){if((_db>0)&&(_eb>0)){_UG[x+(y*w)]=sqr((x-_17)/_db)+sqr((y-_27)/_eb)<1;}}}break;}case _ag1:{var _17=(__g1.left+__g1.right)/2;var _db=_17-__g1.left+0.5;var _27=(__g1.top+__g1.bottom)/2;var _eb=_27-__g1.top+0.5;for(var y=__g1.top;y<=__g1.bottom;y++){for(var x=__g1.left;x<=__g1.right;x++){if((_db>0)&&(_eb>0)){_UG[x+(y*w)]=Math.abs((x-_17)/_db)+Math.abs((y-_27)/_eb)<1;}}}break;}}}if(_Zg1!=null){for(var i=0;i<_UG.length;i++){if(_Zg1[i])_UG[i]=true;}}return _UG;}function sprite_set_cache_size(_t4, _yH){_t4=yyGetInt32(_t4);var _XF=_D5._E5(_t4);if(!_XF){_H4("Trying to adjust the cache on a non-existant sprite ("+string(_t4)+")");return false;}_yH=yyGetInt32(_yH);var _C4=_XF._C4;for(var i=0;i<_XF._E6;i++){if(_C4[i]._r8>_yH){_C4[i]._p8=[];_C4[i]._q8=0;}_C4[i]._r8=_yH;}}function sprite_set_cache_size_ext(_t4,_J3,_yH){_t4=yyGetInt32(_t4);var _XF=_D5._E5(_t4);if(!_XF){_H4("Trying to adjust the cache on a non-existant sprite ("+string(_t4)+")");return false;}_J3=yyGetInt32(_J3);if(_J3<0||_J3>_XF._E6){_H4("Trying to adjust the cache on a non-existant sprite sub image ("+string(_t4)+", "+string(_J3)+")"); return;}_yH=yyGetInt32(_yH);var _B4=_XF._C4[_J3];if(_B4._r8>_yH){_B4._p8=[];_B4._q8=0;}_B4._r8=_yH;}function sprite_get_tpe(_J3,_1h1){_J3=yyGetInt32(_J3);_1h1=yyGetInt32(_1h1);var _XF=_D5._E5(_J3);if(!_XF){_H4("Trying to adjust the cache on a non-existant sprite ("+string(_J3)+")");return false;}if(_1h1<0||_1h1>_XF._E6){_H4("Trying to adjust the cache (tpe) on a non-existant sprite sub image ("+string(_J3)+", "+string(_1h1)+")");return;}var _C4=_XF._C4;if(_C4[_1h1]){var _B4=_C4[_1h1];var _2h1=new _3h1(); _2h1.tpe_x=_B4.x;_2h1.tpe_y=_B4.y;_2h1.tpe_w=_B4.w;_2h1.tpe_h=_B4.h;_2h1.tpe_XOffset=_B4.XOffset;_2h1.tpe_YOffset=_B4.YOffset;_2h1.tpe_CropWidth=_B4.CropWidth;_2h1.tpe_CropHeight=_B4.CropHeight;_2h1.tpe_ow=_B4.ow;_2h1.tpe_oh=_B4.oh;_2h1.tpe_tp=_B4.x;_2h1._4h1=_B4._xs;_2h1.tpe_texture=_B4.texture;return _2h1;}return null;}function sprite_get_texture(_5h1,_6h1){_5h1=yyGetInt32(_5h1);if(sprite_exists(_5h1)){var _On=_D5._E5(_5h1);var _B4=_On._7h1(yyGetInt32(_6h1));if(_B4){return({_Hc:_B4.texture,_Ic:_B4, toString:()=>{return "Texture:"+_B4.texture.URL;}});}}return null;}function sprite_get_uvs(_5h1,_6h1){_5h1=yyGetInt32(_5h1);if(sprite_exists(_5h1)){var _On=_D5._E5(_5h1);var _B4=_On._7h1(yyGetInt32(_6h1));var texture=_B4.texture;var _9t=1.0/texture.width;var _at=1.0/texture.height;var _bt=[];_bt.push(_B4.x*_9t,_B4.y*_at,(_B4.x+_B4.CropWidth)*_9t,(_B4.y+_B4.CropHeight)*_at);_bt.push(_B4.XOffset,_B4.YOffset,_B4.CropWidth/_B4.ow,_B4.CropHeight/_B4.ow);return _bt;}return null;}function sprite_prefetch(_5h1){var _XF=_D5._E5(yyGetInt32(_5h1)); if(_XF===null){return -1;}for(var i=0;i<_XF._E6;i++){var _C4=_XF._C4;if(_C4[i]){var _B4=_C4[i];if(_B4.texture){if(_B4.texture._N8){_O8(_B4.texture._N8);return 0;}}}}return -1;}function sprite_prefetch_multi(_8h1){if(Array.isArray(_8h1)){for(var __5=0;__5<_8h1.length;__5++){var _XF=_D5._E5(_8h1[__5]);if(_XF===null)continue;for(var i=0;i<_XF._E6;i++){var _C4=_XF._C4;if(_C4[i]){var _B4=_C4[i];if(_B4.texture){if(_B4.texture._N8){_O8(_B4.texture._N8);}}}}}return 0;}else {return -1;}}function sprite_flush(_5h1){var _XF=_D5._E5(yyGetInt32(_5h1)); if(_XF===null){return -1;}for(var i=0;i<_XF._E6;i++){var _C4=_XF._C4;if(_C4[i]){var _B4=_C4[i];if(_B4.texture){if(_B4.texture._N8){_ht(_B4.texture._N8);return 0;}}}}return -1;}function sprite_flush_multi(_8h1){if(Array.isArray(_8h1)){for(var __5=0;__5<_8h1.length;__5++){var _XF=_D5._E5(_8h1[__5]);if(_XF===null)continue;for(var i=0;i<_XF._E6;i++){var _C4=_XF._C4;if(_C4[i]){var _B4=_C4[i];if(_B4.texture){if(_B4.texture._N8){_ht(_B4.texture._N8);}}}}}return 0;}else {return -1;}}function sprite_set_speed(_5h1,_tm,_od){ var _XF=_D5._E5(yyGetInt32(_5h1));if(_XF!=null){_XF.playbackspeed=yyGetReal(_tm);_XF.playbackspeedtype=yyGetInt32(_od);if(_XF.sequence!=null){_XF.sequence._9h1=_XF.playbackspeed;_XF.sequence._ah1=_XF.playbackspeedtype;}}}function sprite_get_speed_type(_5h1){var _XF=_D5._E5(yyGetInt32(_5h1));if(_XF!=null){if(_XF.sequence!=null){return _XF.sequence._ah1;}else {return _XF.playbackspeedtype;}}else return -1;}function sprite_get_speed(_5h1){var _XF=_D5._E5(yyGetInt32(_5h1));if(_XF!=null){if(_XF.sequence!=null){ return _XF.sequence._9h1;}else {return _XF.playbackspeed;}}else return -1;}function sprite_get_nineslice(_5h1){var _XF=_D5._E5(yyGetInt32(_5h1));if(_XF!=null){if(_XF._bh1!=null){return _XF._bh1;}else {_XF._bh1=new _ch1(null);return _XF._bh1;}}else return null;}function sprite_set_nineslice(_5h1,_dh1){if((typeof(_dh1)!=="object")||(_dh1==null)||!(_dh1 instanceof _ch1)){_H4("sprite_set_nineslice() - specified nineslice is not valid");return;}var _XF=_D5._E5(yyGetInt32(_5h1));if(_XF!=null){_XF._bh1=_dh1;_XF._bh1._p8._eh1=true; }else return null;}function sprite_nineslice_create(){return new _ch1(null);}function sprite_get_info(_5h1){var _q4=undefined;var _XF=_D5._E5(yyGetInt32(_5h1));if(_XF!=null){var type=(_XF._sM!=undefined)?1:(_XF._tM!=undefined)?2:0;_q4=new _BH();variable_struct_set(_q4,"width",_XF.width);variable_struct_set(_q4,"height",_XF.height);variable_struct_set(_q4,"xoffset",_XF.xOrigin);variable_struct_set(_q4,"yoffset",_XF.yOrigin);variable_struct_set(_q4,"transparent",_XF.transparent);variable_struct_set(_q4,"smooth", _XF.smooth);variable_struct_set(_q4,"preload",_XF.preload);variable_struct_set(_q4,"type",type);variable_struct_set(_q4,"bbox_left",_XF._IP.left);variable_struct_set(_q4,"bbox_right",_XF._IP.right);variable_struct_set(_q4,"bbox_top",_XF._IP.top);variable_struct_set(_q4,"bbox_bottom",_XF._IP.bottom);variable_struct_set(_q4,"name",_XF.pName);variable_struct_set(_q4,"num_subimages",_XF._E6);variable_struct_set(_q4,"frame_speed",(_XF.playbackspeed!=undefined)?_XF.playbackspeed:-1);variable_struct_set(_q4, "frame_type",(_XF.playbackspeedtype!=undefined)?_XF.playbackspeedtype:-1);variable_struct_set(_q4,"use_mask",_XF._1r===_vg1._Qg1);variable_struct_set(_q4,"num_masks",_XF._F6.length);switch(type){case 0:{var _fh1=[];for(var _t6=0;_t6<_XF._C4.length;++_t6){var _B4=_XF._C4[_t6];var _H9=new _BH();variable_struct_set(_H9,"x",_B4.x);variable_struct_set(_H9,"y",_B4.y);variable_struct_set(_H9,"w",_B4.w);variable_struct_set(_H9,"h",_B4.h);variable_struct_set(_H9,"x_offset",_B4.XOffset);variable_struct_set(_H9, "y_offset",_B4.YOffset);variable_struct_set(_H9,"crop_width",_B4.CropWidth);variable_struct_set(_H9,"crop_height",_B4.CropHeight);variable_struct_set(_H9,"original_width",_B4.ow);variable_struct_set(_H9,"original_height",_B4.oh);variable_struct_set(_H9,"texture",_B4.tp);_fh1.push(_H9);}variable_struct_set(_q4,"frames",_fh1);}break;case 1:break;case 2:if(_XF._tM!=undefined){var _gh1=_XF._tM;variable_struct_set(_q4,"num_atlas",_gh1._b8._95.length);var _hh1=[];for(var _t6=0;_t6<_q4.gmlnum_atlas;++_t6){_hh1.push(_gh1._b8._95[_t6].texture._K4); }variable_struct_set(_q4,"atlas_textures",_hh1);variable_struct_set(_q4,"premultiplied",_gh1._d8);var _ih1=_gh1._33;var _jh1=[];for(var _t6=0;_t6<_ih1.animations.length;++_t6){_jh1.push(_ih1.animations[_t6].name);}variable_struct_set(_q4,"animation_names",_jh1);var _kh1=[];for(var _t6=0;_t6<_ih1.skins.length;++_t6){_kh1.push(_ih1.skins[_t6].name);}variable_struct_set(_q4,"skin_names",_kh1);var _lh1=[];for(var _t6=0;_t6<_ih1.bones.length;++_t6){var bone=_ih1.bones[_t6];var _mh1=new _BH();variable_struct_set(_mh1, "parent",(bone.parent!=undefined)?bone.parent.name:undefined);variable_struct_set(_mh1,"name",bone.name);variable_struct_set(_mh1,"index",bone.index);variable_struct_set(_mh1,"length",bone.length);variable_struct_set(_mh1,"x",bone.x);variable_struct_set(_mh1,"y",bone.y);variable_struct_set(_mh1,"rotation",bone.rotation);variable_struct_set(_mh1,"scale_x",bone.scaleX);variable_struct_set(_mh1,"scale_y",bone.scaleY);variable_struct_set(_mh1,"shear_x",bone.shearX);variable_struct_set(_mh1,"shear_y", bone.shearY);variable_struct_set(_mh1,"transform_mode",bone._nh1);_lh1.push(_mh1);}variable_struct_set(_q4,"bones",_lh1);var _oh1=[];for(var _t6=0;_t6<_ih1.slots.length;++_t6){var slot=_ih1.slots[_t6];var _ph1=new _BH();variable_struct_set(_ph1,"name",slot.name);variable_struct_set(_ph1,"index",slot.index);variable_struct_set(_ph1,"bone",(slot._S7!=undefined)?slot._S7.name:"(none)");variable_struct_set(_ph1,"attachment",slot._Cb);variable_struct_set(_ph1,"red",slot.color._e4);variable_struct_set(_ph1, "green",slot.color._f4);variable_struct_set(_ph1,"blue",slot.color._g4);variable_struct_set(_ph1,"alpha",slot.color._h4);variable_struct_set(_ph1,"blend_mode",slot._za);if(_ph1._wa!=undefined){variable_struct_set(_ph1,"dark_red",slot._wa._e4);variable_struct_set(_ph1,"dark_green",slot._wa._f4);variable_struct_set(_ph1,"dark_blue",slot._wa._g4);variable_struct_set(_ph1,"dark_alpha",slot._wa._h4);}var _qh1=_XF._tM._Db(slot.name);variable_struct_set(_ph1,"attachments",_qh1);_oh1.push(_ph1);}variable_struct_set(_q4, "slots",_oh1);}break;}variable_struct_set(_q4,"nineslice",(_XF._bh1!=undefined)?_XF._bh1:undefined);if(_XF.sequence!=undefined){var _rh1=[];var _sh1=_XF.sequence._th1;if(_sh1!=undefined){for(var _t6=0;_t6<_sh1._4W;++_t6){var _FO=_sh1._8W[_t6];var time=_FO._9W;for(var _ml in _FO._Lr){var _uh1=_FO._Lr[_ml];if(_uh1._vh1!=undefined){for(var e=0;e<_uh1._vh1.length;++e){var _gl=new _BH();variable_struct_set(_gl,"frame",time);variable_struct_set(_gl,"message",_uh1._vh1[e]);_rh1.push(_gl);}}}}}variable_struct_set(_q4, "messages",_rh1);var _wh1=[];var _2W=_XF.sequence._RU[0];if(_2W!=undefined){var _sh1=_2W._UU;for(var _t6=0;_t6<_sh1._4W;++_t6){var _FO=_sh1._8W[_t6];var time=_FO._9W;var _gl=new _BH();variable_struct_set(_gl,"frame",time);variable_struct_set(_gl,"duration",_FO._WU);for(var _ml in _FO._Lr){var _uh1=_FO._Lr[_ml];variable_struct_set(_gl,"image_index",_uh1._8S);break;}_wh1.push(_gl);}}variable_struct_set(_q4,"frame_info",_wh1);}}return _q4;}function ansi_char(_B3){return String.fromCharCode(yyGetInt32(_B3)&0xff);} function chr(_B3){_B3=yyGetInt32(_B3);if(_B3>=0x10000){var _xh1=_B3;_xh1-=0x10000;var _yh1=(((_xh1>>10)&0x3FF)+0xD800);var _zh1=(_xh1&0x3FF)+0xDC00;var result=String.fromCharCode(_yh1,_zh1);return result;}else {return String.fromCharCode(_B3);}return 0;}function ord(_9o){if(!_9o||_9o=="")return 0;_9o=yyGetString(_9o);var _xh1=_9o.charCodeAt(0);var _Ah1,_Bh1;if(0xD800<=_xh1&&_xh1<=0xDBFF){_Ah1=_xh1;_Bh1=_9o.charCodeAt(1);return((_Ah1-0xD800)*0x400)+(_Bh1-0xDC00)+0x10000;}return _xh1;}function real(_Sc){if(_Sc==undefined){ _H4("real() argument is undefined");}else if(_Sc==null){_H4("real() argument is unset");}else if(typeof(_Sc)=="boolean"){if(_Sc)return 1;else return 0;}else if(typeof(_Sc)=="number"){return _Sc;}else if(typeof(_Sc)=="string"){var _Ch1=parseFloat(_Sc);if(isNaN(_Ch1)){_H4("unable to convert string "+_Sc+" to real");}else {return _Ch1;}}else if(_Sc instanceof Long){return _Sc._aY();}else if(_Sc instanceof Array){_H4("real() argument is array");}else if(_Sc instanceof ArrayBuffer){_H4("real() argument is ptr")}return parseFloat(_Sc); }function bool(_Sc){if(_Sc==undefined){return false;}else if(_Sc==null){_H4("bool() argument is unset");}else if(typeof(_Sc)=="boolean"){return _Sc;}else if(typeof(_Sc)=="number"){return _Sc>0.5;}else if(typeof(_Sc)=="string"){if(_Sc==="true"){return true;}else if(_Sc==="false"){return false;}var _Ch1=parseFloat(_Sc);if(isNaN(_Ch1)){_H4("unable to convert string "+_Sc+" to bool");}else {return _Ch1>0.5;}}else if(_Sc instanceof Long){return _Sc._aY()>0.5;}else if(_Sc instanceof Array){_H4("bool() argument is array"); }else {return _Sc!=g_pBuiltIn.pointer_null;}}var _Dh1=new RegExp('{([0-9]+)}','g');function _YE(_9o,_XE){return _9o.replaceAll(_Dh1,function(match,_B71){var _J3=parseInt(_B71);if(_J3<0||_J3>=_XE.length)return match;return yyGetString(_XE[_J3]);})}function string(_Ak){if(arguments.length==1){return yyGetString(_Ak);}if(typeof(_Ak)!="string"){_H4("string() trying to use string template but argument0 is not a string");}var _XE=[];for(var _t6=1;_t6=0xD800&&c<=0xD8FF){i+=1;out+=4;}else if(c<=0x7F){out+=1;}else if(c<=0x7FF){out+=2;}else if(c<=0xFFFF){out+=3;} else out+=4;}return out;}function _Jh1(_Tl,_Kh1){var _Lh1=0;var _AG=_Kh1-1;while(_AG>0){var _Mh1=_Tl.charCodeAt(_AG);if(0xDC00<=_Mh1&&_Mh1<=0xDFFF){--_Lh1;--_AG;}--_AG;}return _Kh1+_Lh1+1;}function _Nh1(_9o,_Oh1){_Oh1--;var _Ph1=_Oh1;var _Qh1=0;while(_Qh1<_Oh1){var _Rh1=_9o.charCodeAt(_Qh1);if(0xD800<=_Rh1&&_Rh1<=0xDFFF){_Ph1++;}_Qh1++;}return _Ph1;}function string_pos(_Sh1,_9o){var _Th1=yyGetString(_Sh1);var _Uh1=yyGetString(_9o);var _Vh1=_Uh1.indexOf(_Th1);return _Jh1(_Uh1,_Vh1);}function string_pos_ext(_Sh1,_9o, _Wh1){var _Th1=yyGetString(_Sh1);var _Uh1=yyGetString(_9o);var _Xh1=_Nh1(_Uh1,yyGetInt32(_Wh1));var _Vh1=_Uh1.indexOf(_Th1,_Xh1);return _Jh1(_Uh1,_Vh1);}function string_last_pos(_Sh1,_9o){var _Th1=yyGetString(_Sh1);var _Uh1=yyGetString(_9o);var _Vh1=_Uh1.lastIndexOf(_Th1);return _Jh1(_Uh1,_Vh1);}function string_last_pos_ext(_Sh1,_9o,_Wh1){if(_Wh1<=0){return 0;}var _Th1=yyGetString(_Sh1);var _Uh1=yyGetString(_9o);var _Xh1=_Nh1(_Uh1,yyGetInt32(_Wh1));var _Vh1=_Uh1.lastIndexOf(_Th1,_Xh1);return _Jh1(_Uh1,_Vh1);}function string_copy(_9o, _J3,_fe){_9o=yyGetString(_9o);_J3=yyGetInt32(_J3);_fe=yyGetInt32(_fe);if(_J3<1){_J3=1;}_J3--;var _Ph1=_J3;var _Qh1=0;while(_Qh1<_J3){var _Rh1=_9o.charCodeAt(_Qh1);if(0xD800<=_Rh1&&_Rh1<=0xDFFF){_Ph1++;}_Qh1++;}var _Yh1=_fe;_Qh1=0;while(_Qh1<_fe){var _Rh1=_9o.charCodeAt(_Ph1+_Qh1);if(0xD800<=_Rh1&&_Rh1<=0xDFFF){_Yh1++;}_Qh1++;}return _9o.substring(_Ph1,_Ph1+_Yh1);}function string_char_at(_9o,_J3){var _Uh1=yyGetString(_9o);var _Zh1=yyGetInt32(_J3);--_Zh1;if((_Uh1.length==0)||(string_length(_Uh1)<=_Zh1)){return ""; }var _Dv=0;var __h1=_Zh1;if(__h1<0){__h1=0;}var _Yi=_Uh1.length;while((__h1>0)&&(_Dv<_Yi)){var _xh1=_Uh1.charCodeAt(_Dv);if(0xD800<=_xh1&&_xh1<=0xDFFF){++_Dv;}++_Dv;--__h1;}__h1=_Dv;var _0i1=_Uh1.charCodeAt(__h1);if(0xD800<=_0i1&&_0i1<=0xDFFF){var _Bh1=_Uh1.charCodeAt(__h1+1);return String.fromCharCode(_0i1,_Bh1);}return String.fromCharCode(_0i1);}function string_ord_at(_9o,_J3){var _Uh1=yyGetString(_9o);var _Zh1=yyGetInt32(_J3);--_Zh1;if((_Uh1.length==0)||(string_length(_Uh1)<=_Zh1)){return -1;}var _Dv=0;var __h1=_Zh1; if(__h1<0){__h1=0;}var _Yi=_Uh1.length;while((__h1>0)&&(_Dv<_Yi)){var _xh1=_Uh1.charCodeAt(_Dv);if(0xD800<=_xh1&&_xh1<=0xDFFF){++_Dv;}++_Dv;--__h1;}__h1=_Dv;var _0i1=_Uh1.charCodeAt(__h1);if(0xD800<=_0i1&&_0i1<=0xDFFF){var _Bh1=_Uh1.charCodeAt(__h1+1);return((_0i1-0xD800)*0x400)+(_Bh1-0xDC00)+0x10000;}return _0i1;}function _1i1(_9o){var _2i1=[];for(var i=0;i<_9o.length;i++){var _3i1=_9o.charCodeAt(i);if(_3i1<0x80){_2i1.push(_3i1);}else if(_3i1<0x800){_2i1.push(0xc0|(_3i1>>6),0x80|(_3i1&0x3f));}else if(_3i1<0xd800||_3i1>=0xe000){ _2i1.push(0xe0|(_3i1>>12),0x80|((_3i1>>6)&0x3f),0x80|(_3i1&0x3f));}else {i++;_3i1=((_3i1&0x3ff)<<10)|(_9o.charCodeAt(i)&0x3ff);_2i1.push(0xf0|(_3i1>>18),0x80|((_3i1>>12)&0x3f),0x80|((_3i1>>6)&0x3f),0x80|(_3i1&0x3f));}}return _2i1;}function _4i1(data){var _Tl='';var i=0;for(i=0;i0xBF&&value<0xE0){_Tl+=String.fromCharCode((value&0x1F)<<6|data[i+1]&0x3F);i+=1;}else if(value>0xDF&&value<0xF0){_Tl+=String.fromCharCode((value&0x0F)<<12|(data[i+1]&0x3F)<<6|data[i+2]&0x3F); i+=2;}else {var _3i1=((value&0x07)<<18|(data[i+1]&0x3F)<<12|(data[i+2]&0x3F)<<6|data[i+3]&0x3F)-0x010000;_Tl+=String.fromCharCode(_3i1>>10|0xD800,_3i1&0x03FF|0xDC00);i+=3;}}return _Tl;}function string_byte_at(_9o,_J3){var _Uh1=yyGetString(_9o);var _Zh1=yyGetInt32(_J3);var _OE=_1i1(_Uh1);var index=_Zh1-1;if(index<0){index=0;}if(index>=_OE.length){index=_OE.length-1;}return _OE[index];}function string_set_byte_at(_9o,_J3,_rG){var _Uh1=yyGetString(_9o);var _5i1=yyGetInt32(_rG);var _lh=_1i1(_Uh1);var index=yyGetInt32(_J3)-1; if((index>=0)&&(index<_lh.length)){_lh[index]=_5i1&0xff;return _4i1(_lh);}else {_H4("string_set_byte_at : Index beyond end of string.");}return _Uh1;}function string_delete(_9o,_J3,_fe){var _Uh1=yyGetString(_9o);var _Zh1=yyGetInt32(_J3);var _6i1=yyGetInt32(_fe);if(_6i1<=0||_Zh1<=0)return _Uh1;var _Dv=0;var __h1=_Zh1-1;var _Yi=_Uh1.length;while((__h1>0)&&(_Dv<_Yi)){var _xh1=_Uh1.charCodeAt(_Dv);if(0xD800<=_xh1&&_xh1<=0xDFFF){++_Dv;}++_Dv;--__h1;}__h1=_Dv;_Dv=_6i1;_7i1=__h1;while(_Dv>0){var _xh1=_Uh1.charCodeAt(__h1); if(0xD800<=_xh1&&_xh1<=0xDFFF){++_7i1;}++_7i1;--_Dv;}return(_Uh1.substring(0,__h1)+_Uh1.substring(_7i1,_Uh1.length));}function string_insert(_Sh1,_9o,_J3){var _Th1=yyGetString(_Sh1);var _Uh1=yyGetString(_9o);var _Zh1=yyGetInt32(_J3);var _Dv=0;var __h1=_Zh1-1;var _Yi=_Uh1.length;while((__h1>0)&&(_Dv<_Yi)){var _xh1=_Uh1.charCodeAt(_Dv);if(0xD800<=_xh1&&_xh1<=0xDFFF){++_Dv;}++_Dv;--__h1;}__h1=_Dv;return(_Uh1.substring(0,__h1)+_Th1+_Uh1.substring(__h1,_9o.length));}function string_replace(_9o,_Sh1,_8i1){var _Uh1=yyGetString(_9o); var _Th1=yyGetString(_Sh1);var _9i1=yyGetString(_8i1);var index=_Uh1.indexOf(_Th1);if(index===-1||_Th1.length===0){return _Uh1;}return _Uh1.replace(_Th1,_9i1);}function string_replace_all(_9o,_Sh1,_8i1){var _Uh1=yyGetString(_9o);if(_Uh1.length===0)return "";var _Th1=yyGetString(_Sh1);if(_Th1.length===0)return _Uh1;var _9i1=yyGetString(_8i1);var _ai1=_Th1.length;var _bi1="";var i=_Uh1.indexOf(_Th1);var _ml=0;while(i>=0){_bi1+=_Uh1.substring(_ml,i)+_9i1;_ml=i+_ai1;i=_Uh1.indexOf(_Th1,_ml);}return _ml>0?_bi1+_Uh1.substring(_ml):_Uh1; }function string_count(_Sh1,_9o){_Sh1=yyGetString(_Sh1);_9o=yyGetString(_9o);var _q8=0;if(_Sh1.length>0){var index=0;while(index!=-1){index=_9o.indexOf(_Sh1,index);if(index>-1){_q8+=1;index++;}}}return _q8;}function string_hash_to_newline(_9o){return _ci1(yyGetString(_9o),_QE._di1(_QE._ZG),true);}function string_lower(_9o){return yyGetString(_9o).toLowerCase();}function string_upper(_9o){return yyGetString(_9o).toUpperCase();}function string_repeat(_9o,_fe){var _Uh1=yyGetString(_9o);_fe=yyGetInt32(_fe);var _ni=""; for(var i=0;i<_fe;i++){_ni=_ni+_Uh1;}return _ni;}function string_letters(_9o){var _ni="";var _Uh1=yyGetString(_9o);for(var i=0;i<_Uh1.length;i++){var c=_Uh1[i];if((c>='A'&&c<='Z')||(c>='a'&&c<='z')){_ni=_ni+c;}}return _ni;}function string_digits(_9o){var _Uh1=yyGetString(_9o);var _ni="";for(var i=0;i<_Uh1.length;i++){var c=_Uh1[i];if(c>='0'&&c<='9'){_ni=_ni+c;}}return _ni;}function string_lettersdigits(_9o){var _Uh1=yyGetString(_9o);var _ni="";for(var i=0;i<_Uh1.length;i++){var c=_Uh1[i];if((c>='A'&&c<='Z')||(c>='a'&&c<='z')||(c>='0'&&c<='9')){ _ni=_ni+c;}}return _ni;}const _ei1=new RegExp("[/-\\\\^$*+?.()|[\\]{}]","g");function _fi1(string){return string.replace(_ei1,'\\$&');}function string_trim_start(_9o,_gi1){_9o=yyGetString(_9o);if(arguments.length==1)return _9o.trimStart();if(!(_gi1 instanceof Array)){_H4("string_trim_start() argument1 is not an array");}_gi1=_gi1.map((_ue)=>{if(typeof(_ue)!="string"){_H4("string_trim_start() argument1 should be an array of string");}return _fi1(yyGetString(_ue));}).filter(_hi1=>_hi1).join("|");let _ii1=new RegExp("^(?:"+_gi1+")*"); return _9o.replace(_ii1,"");}function string_trim_end(_9o,_gi1){_9o=yyGetString(_9o);if(arguments.length==1)return _9o.trimEnd();if(!(_gi1 instanceof Array)){_H4("string_trim_end() argument1 is not an array");}_gi1=_gi1.map((_ue)=>{if(typeof(_ue)!="string"){_H4("string_trim_end() argument1 should be an array of string");}return _fi1(yyGetString(_ue));}).filter(_hi1=>_hi1).join("|");let _ii1=new RegExp("(?:"+_gi1+")*$");return _9o.replace(_ii1,"");}function string_trim(_9o,_gi1){_9o=yyGetString(_9o);if(arguments.length==1)return _9o.trim(); if(!(_gi1 instanceof Array)){_H4("string_trim() argument1 is not an array");}_gi1=_gi1.map((_ue)=>{if(typeof(_ue)!="string"){_H4("string_trim() argument1 should be an array of string");}return _fi1(yyGetString(_ue));}).filter(_hi1=>_hi1).join("|");let _ji1=new RegExp("^(?:"+_gi1+")*");let _ki1=new RegExp("(?:"+_gi1+")*$");return _9o.replace(_ji1,"").replace(_ki1,"");}function string_starts_with(_9o,_B3){_9o=yyGetString(_9o);_B3=yyGetString(_B3);return _9o.startsWith(_B3);}function string_ends_with(_9o,_B3){ _9o=yyGetString(_9o);_B3=yyGetString(_B3);return _9o.endsWith(_B3);}function _li1(input,_mi1,_ni1){const output=[];let _oi1=0;while(_ni1--){const lastIndex=_mi1.lastIndex;const search=_mi1.exec(input);if(search===null){break;}_oi1=_mi1.lastIndex;output.push(input.slice(lastIndex,search.index));}output.push(input.slice(_oi1));return output;}function string_split(_9o,_pi1,_qi1,_ri1){_9o=yyGetString(_9o);_pi1=yyGetString(_pi1);if(_pi1==""){return [_si1];}_qi1=arguments.length>2?yyGetReal(_qi1):false;_ri1=arguments.length>3?yyGetReal(_ri1):_9o.length; _pi1=_fi1(_pi1);var _ii1=new RegExp(_pi1,"g");var _si1=_li1(_9o,_ii1,_ri1);if(_qi1){_si1=_si1.filter(_hi1=>_hi1);}return _si1;}function string_split_ext(_9o,_ti1,_qi1,_ri1){_9o=yyGetString(_9o);if(!(_ti1 instanceof Array)){_H4("string_split_ext() argument1 is not an array");}_qi1=arguments.length>2?yyGetReal(_qi1):false;_ri1=arguments.length>3?yyGetReal(_ri1):_9o.length;_ti1=_ti1.map((_ue)=>_fi1(yyGetString(_ue))).filter(_hi1=>_hi1).join("|");var _ii1=new RegExp(_ti1,"g");var _si1=_li1(_9o,_ii1,_ri1);if(_qi1){ _si1=_si1.filter(_hi1=>_hi1);}return _si1.map((_ue)=>_ue.replaceAll("\\|","|"));}function _ui1(_pi1,_XE){return _XE.join(_pi1);}function string_join(_pi1){_pi1=yyGetString(_pi1);var _XE=[];for(var _t6=1;_t62?yyGetReal(_E91):0;_Ue1=arguments.length>3?yyGetReal(_Ue1):_XE.length; var _vi1=_wi1(_XE.length,_E91,_Ue1);_E91=_vi1[0];var _xi1=_vi1[1];var _yi1=_vi1[2];var _zi1=[];while(_xi1>0){_zi1.push(yyGetString(_XE[_E91]));_E91+=_yi1;_xi1--;}return _ui1(_pi1,_zi1);}function string_concat(){var _XE=[];for(var _t6=0;_t61?yyGetReal(_E91):0;_Ue1=arguments.length>2?yyGetReal(_Ue1):_XE.length; var _vi1=_wi1(_XE.length,_E91,_Ue1);_E91=_vi1[0];var _xi1=_vi1[1];var _yi1=_vi1[2];var _zi1=[];while(_xi1>0){_zi1.push(yyGetString(_XE[_E91]));_E91+=_yi1;_xi1--;}return _ui1("",_zi1);}function _Ai1(_Bi1){return(_Bi1>=0xD800&&_Bi1<=0xD8FF)?2:1;}function string_foreach(_9o,_yk,_Qk,_Ue1){_9o=yyGetString(_9o);_yk=_zk(_yk,1);_Ak="boundObject" in _yk?_yk._Bk:{};_Qk=arguments.length>3?yyGetReal(_Qk):1;_Ue1=arguments.length>3?yyGetReal(_Ue1):_9o.length;var _E91=(_Qk<0?_Qk:(_Qk>0?_Qk-1:0));var _vi1=_wi1(string_length(_9o), _E91,_Ue1);_E91=_vi1[0];var _xi1=_vi1[1];var _yi1=_vi1[2];_Qk=_E91+1;var _Ci1=0;if(_yi1>0){for(var i=0;i<_E91;i++){var _Di1=_9o.charCodeAt(_Ci1);_Ci1+=_Ai1(_Di1);}for(var i=0;i<_xi1;i++){var _Di1=_9o.charCodeAt(_Ci1);var _ad=_Ai1(_Di1);var _Ei1=_ad==1?_9o[_Ci1]:String.fromCharCode(_Di1,_9o.charCodeAt(_Ci1+1));_yk(_Ak,_Ak,_Ei1,_Qk);_Qk++;_Ci1+=_ad;}}else {var _Fi1=[];var _Gi1=0;for(var i=0;i<_E91;i++){var _Di1=_9o.charCodeAt(_Ci1);var _ad=_Ai1(_Di1);_Ci1+=_ad;_Fi1[(_Gi1++%_xi1)]=_ad;}for(var i=0;i<_xi1;i++){var _Di1=_9o.charCodeAt(_Ci1); var _ad=_Ai1(_Di1);var _Ei1=_ad==1?_9o[_Ci1]:String.fromCharCode(_Di1,_9o.charCodeAt(_Ci1+1));_yk(_Ak,_Ak,_Ei1,_Qk);_Qk--;_Ci1-=_Fi1[(--_Gi1%_xi1)];}}}var _Hi1=[];var _Ii1=true;var surface_resize=_Ji1;function _Ji1(_jg,_kj,_lj){_jg=yyGetInt32(_jg);_kj=yyGetInt32(_kj);_lj=yyGetInt32(_lj);if(_jg==_Ki1){_Li1=true;_Mi1=_kj;_Ni1=_lj;return 1;}if(!surface_exists(_jg)){_H4("Surface does not exist");return 0;}if(_Oi1(_jg)){_yi("Error: Surface in use via surface_set_target(). It can not be resized until it has been removed from the surface stack."); return;}var _ms=_cs._E5(_jg);var _Eh=_bs;if(_e8){_Eh=_ms.texture._N8._Eh;}surface_create(_kj,_lj,_Eh,_jg);return 0;}function surface_depth_disable(_Pi1){if(yyGetBool(_Pi1)){_Ii1=false;}else {_Ii1=true;}}function surface_get_depth_disable(){return _Ii1?false:true;}var surface_create=_Qi1;function _Qi1(_kj,_lj,_7f1,_Ri1){_kj=yyGetInt32(_kj);_lj=yyGetInt32(_lj);if(_kj<=0||_lj<=0){_H4("create_surface : Trying to create a surface with size equal to or less than zero.");}var _ms=document.createElement(_8F);_ms.__c=_ms.width=_kj; _ms._0d=_ms.height=_lj;_ms.complete=true;_ms._Si1=false;_ms.name="";_ms._1a=_ms.getContext('2d');_ng1(_ms._1a);var _B4=new _hs();_ms._Ti1=_B4;_B4.x=0;_B4.y=0;_B4.w=_kj;_B4.h=_lj;_B4.XOffset=0;_B4.YOffset=0;_B4.CropWidth=_B4.w;_B4.CropHeight=_B4.h;_B4.ow=_B4.w;_B4.oh=_B4.h;if(_Ri1!=undefined){_cs.Set(_Ri1,_ms);_B4.tp=_Ri1;}else {_B4.tp=_cs._Gf(_ms);}_B4.texture=_ms;_B4._p8=[];_B4._q8=0;_B4._r8=4;_B4._Ui1=0;_B4._5t=null;_B4._lg1=_ms;return _B4.tp;}function surface_create_ext(_N3,_kj,_lj,_7f1){_N3=yyGetString(_N3); _kj=yyGetInt32(_kj);_lj=yyGetInt32(_lj);var _ms=document.getElementById(_N3);if(!_ms){_ME("Can not find pre-created canvas element: "+_N3);return surface_create(_kj,_lj,_7f1);}_ms.name=_N3;_ms.__c=_ms.width=_kj;_ms._0d=_ms.height=_lj;_ms.complete=true;_ms._Si1=true;_ms._1a=_ms.getContext('2d');_ng1(_ms._1a);_ms.onmousemove=_vt;_ms.onmousedown=_Vi1;_ms.onmouseup=_Wi1;var _B4=new _hs();_ms._Ti1=_B4;_B4.x=0;_B4.y=0;_B4.w=_kj;_B4.h=_lj;_B4.XOffset=0;_B4.YOffset=0;_B4.CropWidth=_B4.w;_B4.CropHeight=_B4.h; _B4.ow=_B4.w;_B4.oh=_B4.h;_B4.tp=_cs._Gf(_ms);_B4.texture=_ms;_B4._p8=[];_B4._q8=0;_B4._r8=4;_B4._Ui1=0;_B4._5t=null;_B4._lg1=_ms;return _B4.tp;}var surface_free=_Xi1;function _Xi1(_jg){_jg=yyGetInt32(_jg);if(_jg<0){return;}if(!surface_exists(_jg)){return 0;}if(_Oi1(_jg)){_yi("Error: Surface in use via surface_set_target(). It can not be freed until it has been removed from the surface stack.");return;}_cs._rj(_jg);}function surface_exists(_jg){if(_cs._E5(yyGetInt32(_jg))!=null)return 1;else return 0;}function surface_get_width(_jg){ if(_jg==_Ki1){return _Yi1;}var _ms=_cs._E5(yyGetInt32(_jg));if(_ms!=null){return _ms.__c;}return 0;}function surface_get_height(_jg){if(_jg==_Ki1){return _Zi1;}var _ms=_cs._E5(yyGetInt32(_jg));if(_ms!=null){return _ms._0d;}return 0;}function surface_get_texture(_jg){var _ms=_cs._E5(yyGetInt32(_jg));if(_ms!=null){return({_Hc:_ms.texture,_Ic:_ms._Ti1});}return -1;}function _Oi1(_jg){_jg=yyGetInt32(_jg);if(__i1==_jg)return true;var _Yi=_0j1.length;for(var i=0;i<_Yi;i++){if(_0j1[i]==_jg)return true;}return false;}var _1j1=_2j1; function _2j1(_jg){_jg=yyGetInt32(_jg);var _ms=_cs._E5(_jg);if(_ms!=null){if(!_e8)_TK();_Hi1.push({_3j1:_4j1,_5j1:_1A,_6j1:_1a,_7j1:_6N,_8j1:_7N,_9j1:_4N,_aj1:_5N,_bj1:_WK,_cj1:_XK,_dj1:_YK,_ej1:_ZK,});_0j1.push(__i1);__i1=_jg;if(_e8){_4j1=_ms._3j1;_e8._fj1(_ms._3j1);_1A=-1;}else {g_CurrentGraphics=_ms._1a;_1a=_ms._1a;_gj1(_1a);}}}var surface_set_target=_hj1;function _hj1(_jg){_jg=yyGetInt32(_jg);var _ms=_cs._E5(_jg);if(_ms==null){return false;}if(!_e8)_TK();var _ij1=_jj1._kj1();if(_ij1!=null){_Hi1.push({ _3j1:_4j1,_5j1:_1A,_bj1:_WK,_cj1:_XK,_dj1:_YK,_ej1:_ZK,_7j1:_6N,_8j1:_7N,_9j1:_4N,_aj1:_5N,_6j1:_1a,_lj1:true,_mj1:_ij1._nj1,_oj1:_ij1._pj1,_qj1:_ij1._rj1,_sj1:_ij1._tj1,_uj1:_ij1._vj1,_wj1:new _zz(_ij1._xj1),_yj1:new _zz(_ij1._zj1),});}else {_Hi1.push({_3j1:_4j1,_5j1:_1A,_bj1:_WK,_cj1:_XK,_dj1:_YK,_ej1:_ZK,_7j1:_6N,_8j1:_7N,_9j1:_4N,_aj1:_5N,_6j1:_1a,_lj1:false,});}_0j1.push(__i1);__i1=_jg;if(_e8){_4j1=_ms._3j1;_e8._fj1(_ms._3j1);_1A=-1;}else {g_CurrentGraphics=_ms._1a;_1a=_ms._1a;_gj1(_1a);}_Aj1(0, 0,_ms.__c,_ms._0d);if(_v3){_Bj1(0,0,_ms.__c,_ms._0d,0);}else {_Cj1(0,0,_ms.__c,_ms._0d,0);}if(_e8)_e8._Dj1();_hN();if(!_e8){_gj1(_1a);}return true;}function surface_get_target(){return __i1;}var surface_reset_target=_Ej1;function _Ej1(){var _Fj1=_Hi1.pop();if(_Fj1){_WK=_Fj1._bj1;_XK=_Fj1._cj1;_YK=_Fj1._dj1;_ZK=_Fj1._ej1;_6N=_Fj1._7j1;_7N=_Fj1._8j1;_4N=_Fj1._9j1;_5N=_Fj1._aj1;var _Gj1=_Fj1._lj1;var _mj1,_oj1,_qj1,_sj1,_uj1,_wj1,_yj1;if(_Gj1==true){_mj1=_Fj1._mj1;_oj1=_Fj1._oj1;_qj1=_Fj1._qj1;_sj1=_Fj1._sj1; _uj1=_Fj1._uj1;_wj1=_Fj1._wj1;_yj1=_Fj1._yj1;}if(!_e8){_1a=_Fj1._6j1;__K();}else {_1A=_Fj1._5j1;_4j1=_Fj1._3j1;}if(_JK&&_Hi1.length==0){_Aj1(0,0,_Hj1,_Ij1);_Jj1._4A(_Hj1,-_Ij1*_1A,1.0,32000.0);_KK();}else {_Aj1(_WK,_XK,_YK,_ZK);if(_v3){var _ij1=_jj1._kj1();if((_Gj1==true)&&(_ij1!=null)){_Kj1(_mj1,_oj1,_qj1,_sj1,_uj1,_ij1);_ij1._Lj1(new _zz(_wj1));_ij1._Mj1(new _zz(_yj1));_ij1._Nj1();}else {_Bj1(_6N,_7N,_4N,_5N,0);}}else {_Cj1(_6N,_7N,_4N,_5N,0);}}}else {_H4("surface_reset_target : Surface stacking error detected"); }if(_e8)_e8._fj1(_4j1);__i1=_0j1.pop();if(__i1==null)__i1=-1;if(!_e8)_gj1(_1a);_hN();}function _HL(_sl,_q5,_r5){var data=null;var _ds=_sl.getContext('2d');try{data=_ds._Oj1(_q5,_r5,1,1);}catch(_bk){return 0xff000000;}var _Pj1=data.data;var index=0;var _Qj1=_Pj1[index]&0xff;var _Rj1=_Pj1[index+1]&0xff;var _Sj1=_Pj1[index+2]&0xff;var _Tj1=_Pj1[index+3]&0xff;return(_Qj1|(_Rj1<<8)|(_Sj1<<16)|(_Tj1<<24));}var surface_getpixel=_Uj1;var surface_getpixel_ext=_Vj1;function _Uj1(_jg,_q5,_r5){return _Vj1(_jg,_q5,_r5)&0xffffff; }function _Vj1(_jg,_q5,_r5){var _ms=_cs._E5(yyGetInt32(_jg));if(_ms!=null){return _HL(_ms,yyGetInt32(_q5),yyGetInt32(_r5));}return 0x00000000;}function _Wj1(_sl,_Zq){var img=canvas.toDataURL();}function surface_save(_jg,_Zq){_LE("surface_save()");}function surface_save_part(_jg,_Zq,_q5,_r5,_kj,_lj){_LE("surface_save_part()");}var draw_surface=_Xj1;function _Xj1(_jg,_q5,_r5){var _ms=_cs._E5(yyGetInt32(_jg));if(!_ms)return;_q5=yyGetReal(_q5);_r5=yyGetReal(_r5);var alpha=_1a.globalAlpha;{_1a.globalAlpha=_Nc;_1a._pg1(_ms, _q5,_r5);}_1a.globalAlpha=alpha;}function draw_surface_stretched(_jg,_q5,_r5,_kj,_lj){var _ms=_cs._E5(yyGetInt32(_jg));if(!_ms)return;_Es(_ms._Ti1,yyGetReal(_q5),yyGetReal(_r5),yyGetReal(_kj),yyGetReal(_lj),0xffffff,1.0);}function draw_surface_tiled(_jg,_q5,_r5){var _ms=_cs._E5(yyGetInt32(_jg));if(_ms!=null){_Gs(_ms._Ti1,yyGetReal(_q5),yyGetReal(_r5),1,1,true,true,0xffffff,1);}}function draw_surface_part(_jg,_Is,_Js,_m8,_n8,_q5,_r5){var _ms=_cs._E5(yyGetInt32(_jg));if(!_ms)return;_Ks(_ms._Ti1,yyGetReal(_Is), yyGetReal(_Js),yyGetReal(_m8),yyGetReal(_n8),yyGetReal(_q5),yyGetReal(_r5),1,1,0xffffff,1.0);}function draw_surface_ext(_jg,_q5,_r5,_co,_do,_y4,_Ms,_u9){var _ms=_cs._E5(yyGetInt32(_jg));if(!_ms)return;var c=_Qc(yyGetInt32(_Ms));_Ns(_ms._Ti1,0,0,yyGetReal(_q5),yyGetReal(_r5),yyGetReal(_co),yyGetReal(_do),(yyGetReal(_y4)*0.0174532925),c,c,c,c,yyGetReal(_u9));}function draw_surface_stretched_ext(_jg,_q5,_r5,_kj,_lj,_Ms,_u9){var _ms=_cs._E5(yyGetInt32(_jg));if(!_ms)return;var c=_Qc(yyGetInt32(_Ms));_Es(_ms._Ti1, yyGetReal(_q5),yyGetReal(_r5),yyGetReal(_kj),yyGetReal(_lj),c,yyGetReal(_u9));}var draw_surface_tiled_ext=_Yj1;function _Yj1(_jg,_q5,_r5,_co,_do,_Ms,_u9){_Ib("draw_surface_tiled_ext()");}function draw_surface_part_ext(_jg,_Is,_Js,_m8,_n8,_q5,_r5,_co,_do,_Ms,_u9){_jg=yyGetInt32(_jg);var _ms=_cs._E5(_jg);if(_ms!=null){var _B4=new _hs();_B4.x=0;_B4.y=0;_B4.w=_ms.width;_B4.h=_ms.height;_B4.XOffset=0;_B4.YOffset=0;_B4.CropWidth=_B4.w;_B4.CropHeight=_B4.h;_B4.ow=_B4.w;_B4.oh=_B4.h;_B4.tp=_jg;_B4._p8=[];_B4._q8=0; _B4._r8=4;_B4._Ui1=0;_B4._5t=null;if(!_e8){_B4._lg1=_ms;_B4.texture=_ms;}else {_B4._lg1=_ms.texture;_B4.texture=_ms.texture;}var c=_Qc(yyGetInt32(_Ms));_Ks(_B4,yyGetReal(_Is),yyGetReal(_Js),yyGetReal(_m8),yyGetReal(_n8),yyGetReal(_q5),yyGetReal(_r5),yyGetReal(_co),yyGetReal(_do),c,yyGetReal(_u9));}}function draw_surface_general(_jg,_Is,_Js,_m8,_n8,_q5,_r5,_co,_do,_y4,_Ss,_Ts,_Us,_Vs,_u9){_jg=yyGetInt32(_jg);var _ms=_cs._E5(_jg);if(_ms!=null){var _B4=new _hs();_B4.x=yyGetReal(_Is);_B4.y=yyGetReal(_Js); _B4.w=yyGetReal(_m8);_B4.h=yyGetReal(_n8);_B4.XOffset=0;_B4.YOffset=0;_B4.CropWidth=_B4.w;_B4.CropHeight=_B4.h;_B4.ow=_B4.w;_B4.oh=_B4.h;_B4.tp=_jg;_B4._p8=[];_B4._q8=0;_B4._r8=4;_B4._Ui1=0;_B4._5t=null;_q5=yyGetReal(_q5);_r5=yyGetReal(_r5);_co=yyGetReal(_co);_do=yyGetReal(_do);_y4=yyGetReal(_y4);_u9=yyGetReal(_u9);_Ss=_Qc(yyGetInt32(_Ss));_Ts=_Qc(yyGetInt32(_Ts));_Us=_Qc(yyGetInt32(_Us));_Vs=_Qc(yyGetInt32(_Vs));if(!_e8){_B4._lg1=_ms;_B4.texture=_ms;_Ns(_B4,0,0,_q5,_r5,_co,_do,(_y4*0.0174532925), _Ss,_Ts,_Us,_Vs,_u9);}else {_B4._lg1=_ms.texture;_B4.texture=_ms.texture;_Ns(_B4,0,0,_q5,_r5,_co,_do,(_y4*0.0174532925),_Ss,_Ts,_Us,_Vs,_u9);}}}function surface_copy(_Zj1,_q5,_r5,_sj){var _Gk=_cs._E5(yyGetInt32(_Zj1));var _Hk=_cs._E5(yyGetInt32(_sj));if(_Gk!=null&&_Hk!=null){var _ds=_Gk.getContext('2d');_ds.save();_ds.globalCompositeOperation='copy';_ds.drawImage(_Hk,yyGetInt32(_q5),yyGetInt32(_r5));_ds.restore();}}function surface_copy_part(_Zj1,_q5,_r5,_sj,_w4,_x4,__j1,_0k1){var _Gk=_cs._E5(yyGetInt32(_Zj1)); var _Hk=_cs._E5(yyGetInt32(_sj));if(_Gk!=null&&_Hk!=null){_q5=yyGetReal(_q5);_r5=yyGetReal(_r5);_w4=yyGetReal(_w4);_x4=yyGetReal(_x4);__j1=yyGetReal(__j1);_0k1=yyGetReal(_0k1);var _UK=[];var _ds=_Gk.getContext('2d');_ds.save();_UK[0]=1;_UK[1]=0;_UK[2]=0;_UK[3]=1;_UK[4]=0;_UK[5]=0;_ds.setTransform(_UK[0],_UK[1],_UK[2],_UK[3],_UK[4],_UK[5]);_ds.beginPath();_ds.rect(_q5,_r5,__j1,_0k1);_ds.clip();_ds.globalCompositeOperation='copy';_ds.drawImage(_Hk,_w4,_x4,__j1,_0k1,_q5,_r5,__j1,_0k1);_ds.restore();}} function _1k1(_7f1){switch(_7f1){case _bs:return true;case _2k1:return true;case _3k1:return true;case _4k1:return true;case _5k1:return true;case _6k1:return true;case _7k1:return true;case _8k1:return true;default :return false;}}function _9k1(_7f1){if(_e8){return _e8._ak1(_7f1);}else {if(_7f1==_bs){return true;}else {return false;}}}function surface_format_is_supported(_7f1){if(_1k1(_7f1)&&_9k1(_7f1)){return true;}return false;}function surface_get_format(_jg){var _ms=_cs._E5(_jg);if(_ms!=null){if(_e8){if(_ms._bk1._ck1){return _ms._bk1._ck1._rd; }}else {return _bs;}}return _dk1;}/*@constructor */function _ek1(){this._fk1=[];this._gk1={};this._hk1={};};function _ik1(_4K,_jk1){var _NJ=(((_4K&0xff)<<24)|(_jk1&0xffffff));return _NJ;};_ek1.prototype._kk1=function(_lk1,_mk1){this._fk1=_lk1.slice();for(var i=0;i<_lk1.length;++i)this._gk1[_lk1[i]]=i;for(var i=0;i<_mk1.length;++i){var _gl=_mk1[i];this._hk1[_gl.key]=_gl.ids.slice();}};_ek1.prototype._nk1=function(_jk1,_4K){var _NJ=_ik1(_4K,_jk1);var _ok1=this._hk1[_NJ];if(_ok1==undefined)return null;return _ok1; };_ek1.prototype._pk1=function(_jk1,_4K){var _qk1=this._nk1(_jk1,_4K);var tags=[];if(_qk1!=null){for(var i=0;i<_qk1.length;++i){var _9i=this._fk1[_qk1[i]];if(_9i!==undefined)tags.push(_9i);}}return tags;};_ek1.prototype._rk1=function(_sk1,_tk1){var _qk1=[];var _uk1=Array.isArray(_sk1)?_sk1:[_sk1];for(var i=0;i<_uk1.length;++i){var _vk1=_uk1[i];var _wk1=this._gk1[_vk1];if(_wk1===undefined&&_tk1){_wk1=this._fk1.length;this._gk1[_vk1]=_wk1;this._fk1.push(_vk1);}if(_wk1!==undefined)_qk1.push(_wk1);}return _qk1; };_ek1.prototype._xk1=function(_jk1,_4K,_yk1,_zk1){var _Ak1=this._nk1(_jk1,_4K);if(_Ak1==null)return false;var _Bk1=this._rk1(_yk1,false);var result=(_zk1)?true:false;for(var _J6=0;_J6<_Bk1.length;++_J6){var _Ck1=false;var _9i=_Bk1[_J6];for(var i=0;i<_Ak1.length;++i){if(_Ak1[i]===_9i)_Ck1=true;}if(!_zk1&&_Ck1)return true;if(_zk1&&!_Ck1)return false;}return result;};_ek1.prototype._Dk1=function(_jk1,_4K,_yk1){var _Ek1=false;var _NJ=_ik1(_4K,_jk1);var _ok1=this._hk1[_NJ];if(_ok1==undefined){_ok1=[];this._hk1[_NJ]=_ok1; }var _Fk1=this._rk1(_yk1,true);for(var i=0;i<_Fk1.length;++i){var _Gk1=_Fk1[i];var index=_ok1.indexOf(_Gk1);if(index==-1){_ok1.push(_Gk1);_Ek1=true;}}return _Ek1;};_ek1.prototype._Hk1=function(_jk1,_4K,_yk1){var _Ik1=false;var _qk1=this._nk1(_jk1,_4K);if(_qk1!=null){var _Jk1=this._rk1(_yk1,false);for(var i=0;i<_Jk1.length;++i){var _Kk1=_Jk1[i];var index=_qk1.indexOf(_Kk1);if(index!=-1){_qk1[index]=_qk1[_qk1.length-1];_qk1.length-=1;_Ik1=true;}}}return _Ik1;};_ek1.prototype._Lk1=function(_jk1,_4K){var _NJ=_ik1(_4K, _jk1);var _ok1=this._hk1[_NJ];if(_ok1!=null){_ok1.length=0;return true;}return false;};_ek1.prototype._Mk1=function(_yk1){var _kh=[];var _Fk1=this._rk1(_yk1,false);if(_Fk1.length==0)return _kh;for(var key in this._hk1){if(!this._hk1.hasOwnProperty(key))continue;var _Nk1=this._hk1[key];for(var _J6=0;_J6<_Fk1.length;++_J6){var index=_Nk1.indexOf(_Fk1[_J6]);if(index!=-1){var _Ok1=key&0xffffff;var _Pk1=(key>>24)&0xff;var _Qk1=_3K(_Ok1,_Pk1);if(_Qk1.length>0){_kh.push(_Qk1);break;}}}}return _kh;};_ek1.prototype._Rk1=function(_yk1, _4K){var _Sk1=[];var _Fk1=this._rk1(_yk1,false);if(_Fk1.length==0)return _Sk1;for(var key in this._hk1){if(_4K>=0){var type=(key>>24)&0xff;if(type!==_4K)continue;}var _Nk1=this._hk1[key];for(var _J6=0;_J6<_Fk1.length;++_J6){var index=_Nk1.indexOf(_Fk1[_J6]);if(index!=-1){var _Ok1=key&0xffffff;_Sk1.push(_Ok1);break;}}}return _Sk1;};function _Tk1(_Uk1,_4K,_Vk1){var _NJ={type:-1,id:-1};if(typeof _Uk1==="string"){_NJ=_MJ(_Uk1);}else {if(_4K===undefined)_H4(_Vk1+"() - asset type argument is required");else _NJ={type:_4K, id:_Uk1};}return _NJ;}function tag_get_asset_ids(_sk1,_4K){var _Sk1=_Wk1._Rk1(_sk1,_4K);return _Sk1;}function tag_get_assets(_sk1){var _kh=_Wk1._Mk1(_sk1);return _kh;}function asset_get_tags(_Uk1,_4K){var result=[];var _NJ=_Tk1(_Uk1,_4K,"asset_get_tags");if(_NJ.id<0)return result;result=_Wk1._pk1(_NJ.id,_NJ.type);return result;}function asset_add_tags(_Uk1,_sk1,_4K){var _NJ=_Tk1(_Uk1,_4K,"asset_add_tags");if(_NJ.id<0)return 0;var result=_Wk1._Dk1(_NJ.id,_NJ.type,_sk1);return(result)?1:0;}function asset_remove_tags(_Uk1, _sk1,_4K){var _NJ=_Tk1(_Uk1,_4K,"asset_remove_tags");if(_NJ.id<0)return 0;var result=_Wk1._Hk1(_NJ.id,_NJ.type,_sk1);return(result)?1:0;}function asset_has_tags(_Uk1,_sk1,_4K){var _NJ=_Tk1(_Uk1,_4K,"asset_has_tags");if(_NJ.id<0)return 0;var result=_Wk1._xk1(_NJ.id,_NJ.type,_sk1,true);return(result)?1:0;}function asset_has_any_tag(_Uk1,_sk1,_4K){var _NJ=_Tk1(_Uk1,_4K,"asset_has_any_tag");if(_NJ.id<0)return 0;var result=_Wk1._xk1(_NJ.id,_NJ.type,_sk1,false);return(result)?1:0;}function asset_clear_tags(_Uk1,_4K){ var _NJ=_Tk1(_Uk1,_4K,"asset_clear_tags");if(_NJ.id<0)return 0;var result=_Wk1._Lk1(_NJ.id,_NJ.type);return(result)?1:0;}function draw_self(_f7){var index;index=_f7.sprite_index;_d6=_f7;{var _On=_D5._E5(index);if(_On!=null){_On._19(_f7.image_index,_f7.x,_f7.y,_f7.image_xscale,_f7.image_yscale,_f7.image_angle,_f7.image_blend,_f7.image_alpha);}}_d6=null;}function draw_sprite_ext(_Ht,_q3,_Xk1,_q5,_r5,_co,_do,_y4,_3d,_u9){_Xk1=yyGetInt32(_Xk1);_u9=yyGetReal(_u9);if(_Xk1<0)_Xk1=~~_Ht.image_index;var _XF=_D5._E5(_q3); if(_XF!=null){_u9=min(1.0,_u9);_XF._19(_Xk1,yyGetReal(_q5),yyGetReal(_r5),yyGetReal(_co),yyGetReal(_do),yyGetReal(_y4),_Qc(yyGetInt32(_3d)),_u9);}}function draw_sprite(_Ht,_q3,_Xk1,_q5,_r5){_Xk1=yyGetInt32(_Xk1);if(_Xk1<0)_Xk1=~~_Ht.image_index;var _XF=_D5._E5(_q3);if(_XF!=null){_XF._Yk1(_Xk1,yyGetReal(_q5),yyGetReal(_r5),_Nc);}}function draw_sprite_pos(_Ht,_q3,_Xk1,_W6,_X6,_o6,_p6,_Ju,_Ku,_Zk1,__k1,_u9){_Xk1=yyGetInt32(_Xk1);_u9=yyGetReal(_u9);if(_Xk1<0)_Xk1=~~_Ht.image_index;var _XF=_D5._E5(_q3);if(_XF!=null){ _u9=min(1.0,_u9);_XF._0l1(_Xk1,yyGetReal(_W6),yyGetReal(_X6),yyGetReal(_o6),yyGetReal(_p6),yyGetReal(_Ju),yyGetReal(_Ku),yyGetReal(_Zk1),yyGetReal(__k1),_u9);}}function draw_sprite_stretched(_Ht,_q3,_Xk1,_q5,_r5,_kj,_lj){_Xk1=yyGetInt32(_Xk1);if(_Xk1<0)_Xk1=~~_Ht.image_index;var _XF=_D5._E5(_q3);if(_XF!=null){if(_XF._E6<=0)return;_Xk1=(~~_Xk1)%_XF._E6;if(_Xk1<0)_Xk1=_Xk1+_XF._E6;if((_XF._bh1!=null)&&(_XF._bh1.enabled==true)){_XF._bh1._19(yyGetReal(_q5),yyGetReal(_r5),yyGetReal(_kj),yyGetReal(_lj), 0,0xffffff,_Nc,_Xk1,_XF,true);}else {_Es(_XF._C4[_Xk1],yyGetReal(_q5),yyGetReal(_r5),yyGetReal(_kj),yyGetReal(_lj),0xffffff,_Nc);}}}function draw_sprite_stretched_ext(_Ht,_q3,_Xk1,_q5,_r5,_kj,_lj,_Pc,_u9){_Xk1=yyGetInt32(_Xk1);if(_Xk1<0)_Xk1=~~_Ht.image_index;var _XF=_D5._E5(_q3);if(_XF!=null){if(_XF._E6<=0)return;_Xk1=(~~_Xk1)%_XF._E6;if(_Xk1<0)_Xk1=_Xk1+_XF._E6;if((_XF._bh1!=null)&&(_XF._bh1.enabled==true)){_XF._bh1._19(yyGetReal(_q5),yyGetReal(_r5),yyGetReal(_kj),yyGetReal(_lj),0,_Qc(yyGetInt32(_Pc)), yyGetReal(_u9),_Xk1,_XF,true);}else {_Es(_XF._C4[_Xk1],yyGetReal(_q5),yyGetReal(_r5),yyGetReal(_kj),yyGetReal(_lj),_Qc(yyGetInt32(_Pc)),yyGetReal(_u9));}}}function draw_sprite_part(_Ht,_q3,_Xk1,_Is,_Js,_m8,_n8,_q5,_r5){_Xk1=yyGetInt32(_Xk1);if(_Xk1<0)_Xk1=~~_Ht.image_index;var _XF=_D5._E5(_q3);if(_XF!=null){if(_XF._E6<=0)return;_Xk1=(~~_Xk1)%_XF._E6;if(_Xk1<0)_Xk1=_Xk1+_XF._E6;_Ks(_XF._C4[_Xk1],yyGetReal(_Is),yyGetReal(_Js),yyGetReal(_m8),yyGetReal(_n8),yyGetReal(_q5),yyGetReal(_r5),1,1,0xffffff,_Nc); }}function draw_sprite_part_ext(_Ht,_q3,_Xk1,_Is,_Js,_m8,_n8,_q5,_r5,_co,_do,_Ms,_u9){_Xk1=yyGetInt32(_Xk1);if(_Xk1<0)_Xk1=~~_Ht.image_index;var _XF=_D5._E5(_q3);if(_XF!=null){if(_XF._E6<=0)return;_Xk1=(~~_Xk1)%_XF._E6;if(_Xk1<0)_Xk1=_Xk1+_XF._E6;_Ms=_Qc(yyGetInt32(_Ms));_Ks(_XF._C4[_Xk1],yyGetReal(_Is),yyGetReal(_Js),yyGetReal(_m8),yyGetReal(_n8),yyGetReal(_q5),yyGetReal(_r5),yyGetReal(_co),yyGetReal(_do),_Ms,yyGetReal(_u9));}}function draw_sprite_tiled(_Ht,_q3,_Xk1,_q5,_r5){_Xk1=yyGetInt32(_Xk1); if(_Xk1<0)_Xk1=~~_Ht.image_index;var _XF=_D5._E5(_q3);if(_XF!=null){if(_XF._E6<=0)return;_Xk1=(~~_Xk1)%_XF._E6;if(_Xk1<0)_Xk1=_Xk1+_XF._E6;_Gs(_XF._C4[_Xk1],yyGetReal(_q5),yyGetReal(_r5),1,1,true,true,0xffffff,_Nc);}}function draw_sprite_tiled_ext(_Ht,_q3,_Xk1,_q5,_r5,_co,_do,_Ms,_u9){_Xk1=yyGetInt32(_Xk1);if(_Xk1<0)_Xk1=~~_Ht.image_index;var _XF=_D5._E5(_q3);if(_XF!=null){if(_XF._E6<=0)return;_Xk1=(~~_Xk1)%_XF._E6;if(_Xk1<0)_Xk1=_Xk1+_XF._E6;_Ms=_Qc(yyGetInt32(_Ms));_Gs(_XF._C4[_Xk1],yyGetReal(_q5), yyGetReal(_r5),yyGetReal(_co),yyGetReal(_do),true,true,_Ms,_u9);}}function draw_sprite_general(_Ht,_q3,_Xk1,_Is,_Js,_m8,_n8,_q5,_r5,_co,_do,_y4,_Ss,_Ts,_Us,_Vs,_u9){_Xk1=yyGetInt32(_Xk1);if(_Xk1<0)_Xk1=~~_Ht.image_index;var _XF=_D5._E5(_q3);if(_XF!=null){if(_iN){_jN();}if(_XF._E6<=0)return;_Xk1=(~~_Xk1)%_XF._E6;if(_Xk1<0)_Xk1=_Xk1+_XF._E6;_Ss=_Qc(yyGetInt32(_Ss));_Ts=_Qc(yyGetInt32(_Ts));_Us=_Qc(yyGetInt32(_Us));_Vs=_Qc(yyGetInt32(_Vs));_Ws(_XF._C4[_Xk1],yyGetReal(_Is),yyGetReal(_Js),yyGetReal(_m8), yyGetReal(_n8),yyGetReal(_q5),yyGetReal(_r5),yyGetReal(_co),yyGetReal(_do),yyGetReal(_y4)*Math.PI/180.0,_Ss,_Ts,_Us,_Vs,yyGetReal(_u9));}}function _1l1(_sr,_Is,_Js,_m8,_n8,_q5,_r5,_Al){var _2l1=new _3l1();_2l1.x=_q5;_2l1.y=_r5;_2l1.depth=_Al;_2l1.xo=_Is;_2l1.yo=_Js;_2l1.w=_m8;_2l1.h=_n8;_2l1.index=_sr;_2l1._4l1();_t3._5l1(_2l1);return _2l1.id;}function _6l1(_jg){_t3._7l1(_jg);}function _8l1(_jg){if(_t3._9l1[_jg]==null)return false;return true;}function _al1(_jg){var _2l1=_t3._9l1[_jg];if(!_2l1)return 0;return _2l1.x; }function _bl1(_jg){var _2l1=_t3._9l1[_jg];if(!_2l1)return 0;return _2l1.y;}function _cl1(_jg){var _2l1=_t3._9l1[_jg];if(!_2l1)return 0;return _2l1.xo;}function _dl1(_jg){var _2l1=_t3._9l1[_jg];if(!_2l1)return 0;return _2l1.yo;}function _el1(_jg){var _2l1=_t3._9l1[_jg];if(!_2l1)return 0;return _2l1.w;}function _fl1(_jg){var _2l1=_t3._9l1[_jg];if(!_2l1)return 0;return _2l1.h;}function _gl1(_jg){var _2l1=_t3._9l1[_jg];if(!_2l1)return 0;return _2l1.depth;}function _hl1(_jg){var _2l1=_t3._9l1[_jg];if(!_2l1)return 0;return _2l1.visible; }function _il1(_jg){var _2l1=_t3._9l1[_jg];if(!_2l1)return 0;return _2l1._tR;}function _jl1(_jg){var _2l1=_t3._9l1[_jg];if(!_2l1)return 0;return _2l1._uR;}function _kl1(_jg){var _2l1=_t3._9l1[_jg];if(!_2l1)return 0;return _2l1.index;}function _ll1(_jg){var _2l1=_t3._9l1[_jg];if(!_2l1)return 0;return _2l1._vR;}function _ml1(_jg){var _2l1=_t3._9l1[_jg];if(!_2l1)return 0;return _2l1.alpha;}function _nl1(_jg,_q5,_r5){var _2l1=_t3._9l1[_jg];if(_2l1){_2l1.x=_q5;_2l1.y=_r5;}}function _ol1(_jg,_Is,_Js,_m8,_n8){var _2l1=_t3._9l1[_jg]; if(_2l1){_2l1.xo=_Is;_2l1.yo=_Js;_2l1.w=_m8;_2l1.h=_n8;_2l1._4l1();}}function _pl1(_jg,_sr){var _2l1=_t3._9l1[_jg];if(_2l1){_2l1.index=_sr;_2l1._4l1();}}function _ql1(_jg,_X71){var _2l1=_t3._9l1[_jg];if(_2l1){_2l1.visible=_X71;}}function _rl1(_jg,_Al){var _2l1=_t3._9l1[_jg];if(_2l1){_t3._sl1._7l1(_2l1);_2l1.depth=_Al;_t3._sl1._Gf(_2l1);}}function _tl1(_jg,_co,_do){var _2l1=_t3._9l1[_jg];if(!_2l1)return;_2l1._tR=_co;_2l1._uR=_do;}function _ul1(_jg,_Pc){var _2l1=_t3._9l1[_jg];if(!_2l1)return;_2l1._vR=_Qc(_Pc); }function _vl1(_jg,_u9){var _2l1=_t3._9l1[_jg];if(!_2l1)return 0;_2l1.alpha=_u9;}function _wl1(_Al){_t3._sl1._xl1(_Al,false);}function _yl1(_Al){_t3._sl1._xl1(_Al,true);}function _zl1(_Al){_t3._Al1(_Al);}function _Bl1(_Al,_q5,_r5){var _Cl1=_t3._sl1._E5(_Al);if(!_Cl1)return;var _Vk=_Cl1._PZ();for(var _Dl1=0;_Dl1<_Vk.length;_Dl1++){var _2l1=_Vk[_Dl1];if(_2l1){_2l1.x+=_q5;_2l1.y+=_r5;}}}function _El1(_Al,_q5,_r5){for(var index in _t3._9l1){if(!_t3._9l1.hasOwnProperty(index))continue;var _2l1=_t3._9l1[index];if(_2l1!=null){ if((_Al==_2l1.depth)&&(_q5>=_2l1.x)&&(_q5<(_2l1.x+(_2l1.w*_2l1._tR)))&&(_r5>=_2l1.y)&&(_r5<(_2l1.y+(_2l1.h*_2l1._uR)))){return _2l1.id;}}}return -1;}function _Fl1(_Al,_q5,_r5){var tiles=[];for(var index in _t3._9l1){if(!_t3._9l1.hasOwnProperty(index))continue;var _2l1=_t3._9l1[index];if(_2l1){if((_Al==_2l1.depth)&&(_q5>=_2l1.x)&&(_q5<(_2l1.x+(_2l1.w*_2l1._tR)))&&(_r5>=_2l1.y)&&(_r5<(_2l1.y+(_2l1.h*_2l1._uR)))){tiles[tiles.length]=index;}}}for(var i=0;i=_t3._Jl1)return -1;for(var index in _t3._9l1){if(!_t3._9l1.hasOwnProperty(index))continue; var _2l1=_t3._9l1[index];if(_2l1){if(_J3==0)return _2l1.id;_J3--;}}return -1;}function _Kl1(){var tiles=[];var index=0;for(var _Dl1 in _t3._9l1){if(!_t3._9l1.hasOwnProperty(_Dl1))continue;var _2l1=_t3._9l1[_Dl1];if(_2l1){tiles[index]=_2l1.id;index++;}}return tiles;}function _Ll1(_Al){var tiles=[];var index=0;for(var _Dl1 in _t3._9l1){if(!_t3._9l1.hasOwnProperty(_Dl1))continue;var _2l1=_t3._9l1[_Dl1];if(_2l1&&_2l1.depth==_Al){tiles[index]=_2l1.id;index++;}}return tiles;}function _Ml1(_jg){console.error("Error: Index %d does not correspond to an existing time source\n", _jg);}function _Nl1(){console.error("Error: Cannot reset a built-in time source\n");}function _Ol1(){console.error("Error: Cannot change the state of a stateless built-in time source\n");}function _Pl1(){console.error("Error: Failed to create the time source\n");}function _Ql1(_jg){console.error("Error: Cannot destroy the time source (index %d) until its children have been destroyed\n",_jg);}function _Rl1(){console.error("Error: Cannot destroy a built-in time source\n");}function _Sl1(){console.error("Error: Cannot stop a built-in time source\n"); }function _Tl1(_Ul1){const type=_Ul1._Vl1();return(type==_Wl1||type==_Xl1);}function _Yl1(_Ul1){return(_Ul1._Vl1()==_Wl1);}function _Zl1(_Ul1){const type=_Ul1._Vl1();return(type==__l1||type==_Wl1);}function _0m1(_jg){const _1m1=[_2m1,_3m1];for(const source of _1m1){const _4m1=source._5m1(_jg);if(_4m1!=null){if(_Tl1(_4m1)){if(_4m1._6m1()){return null;}}return _4m1;}}return null;}function time_source_create(_7m1,_8m1,_9m1,_am1,_bm1=[],_cm1=1,_dm1=_em1){const parent=yyGetInt32(_7m1);const _fm1=yyGetReal(_8m1);const _gm1=yyGetInt32(_9m1); const _hm1=_am1;const _Ik=_bm1;const _im1=yyGetInt64(_cm1);const _jm1=yyGetInt32(_dm1);return _km1(parent,_fm1,_gm1,_hm1,_Ik,_im1,_jm1);}function _km1(_7m1,_8m1,_9m1,_am1,_bm1,_cm1,_dm1){const parent=_0m1(_7m1);if(parent!=null){const _4m1=parent._lm1(_8m1,_9m1,_am1,_bm1,_cm1,_dm1);if(_4m1!=null){return _4m1._mm1();}_Pl1();}else {_Ml1(_7m1);}return -1;}function time_source_destroy(_jg,_nm1=false){const id=yyGetInt32(_jg);const _om1=yyGetBool(_nm1);if(_om1){_pm1(id);}else {_qm1(id);}}function _qm1(_jg){const _4m1=_0m1(_jg); if(_4m1!=null){if(_Tl1(_4m1)){if(_4m1._rm1()==0){if(_4m1._sm1()){return _4m1._tm1(false);}return _4m1._um1()._vm1(_4m1);}return _Ql1(_jg);}return _Rl1();}_Ml1(_jg);}function _pm1(_jg){const _4m1=_0m1(_jg);if(_4m1!=null){if(_4m1._wm1()){return _4m1._tm1(true);}else {return _4m1._um1()._vm1(_4m1);}}_Ml1(_jg);}function time_source_start(_jg){const id=yyGetInt32(_jg);_xm1(id);}function _xm1(_jg){const _4m1=_0m1(_jg);if(_4m1!=null){if(_Zl1(_4m1)){return _4m1._ym1();}return _Ol1();}_Ml1(_jg);}function time_source_stop(_jg){ const id=yyGetInt32(_jg);_zm1(id);}function _zm1(_jg){const _4m1=_0m1(_jg);if(_4m1!=null){if(_Tl1(_4m1)){return _4m1._Iq();}return _Sl1();}_Ml1(_jg);}function time_source_pause(_jg){const id=yyGetInt32(_jg);_Am1(id);}function _Am1(_jg){const _4m1=_0m1(_jg);if(_4m1!=null){if(_Zl1(_4m1)){return _4m1._lK();}return _Ol1();}_Ml1(_jg);}function time_source_resume(_jg){const id=yyGetInt32(_jg);_Bm1(id);}function _Bm1(_jg){const _4m1=_0m1(_jg);if(_4m1!=null){if(_Zl1(_4m1)){return _4m1._G41();}return _Ol1();}_Ml1(_jg);}function time_source_reset(_jg){ const id=yyGetInt32(_jg);_Cm1(id);}function _Cm1(_jg){const _4m1=_0m1(_jg);if(_4m1!=null){if(_Tl1(_4m1)){return _4m1._kK();}return _Nl1();}_Ml1(_jg);}function time_source_reconfigure(_jg,_8m1,_9m1,_am1,_bm1=[],_cm1=1,_dm1=_em1){const id=yyGetInt32(_jg);const _fm1=yyGetReal(_8m1);const _gm1=yyGetInt32(_9m1);const _hm1=_am1;const _Ik=_bm1;const _im1=yyGetInt64(_cm1);const _jm1=yyGetInt32(_dm1);return _Dm1(id,_fm1,_gm1,_hm1,_Ik,_im1,_jm1);}function _Dm1(_jg,_8m1,_9m1,_am1,_bm1,_cm1,_dm1){const _4m1=_0m1(_jg);if(_4m1!=null){ if(_Tl1(_4m1)){return _4m1._Em1(_8m1,_9m1,_am1,_bm1,_cm1,_dm1);}return _Nl1();}_Ml1(_jg);}function time_source_get_period(_jg){const id=yyGetInt32(_jg);return _Fm1(id);}function _Fm1(_jg){const _4m1=_0m1(_jg);if(_4m1!=null){if(_Tl1(_4m1)){return _4m1._Gm1();}}else {_Ml1(_jg);}return undefined;}function time_source_get_reps_completed(_jg){const id=yyGetInt32(_jg);return _Hm1(id);}function _Hm1(_jg){const _4m1=_0m1(_jg);if(_4m1!=null){if(_Tl1(_4m1)){return _4m1._Im1();}}else {_Ml1(_jg);}return undefined;}function time_source_get_reps_remaining(_jg){ const id=yyGetInt32(_jg);return _Jm1(id);}function _Jm1(_jg){const _4m1=_0m1(_jg);if(_4m1!=null){if(_Tl1(_4m1)){return _4m1._Km1();}}else {_Ml1(_jg);}return undefined;}function time_source_get_units(_jg){const id=yyGetInt32(_jg);return _Lm1(id);}function _Lm1(_jg){const _4m1=_0m1(_jg);if(_4m1!=null){if(_Tl1(_4m1)){return _4m1._Mm1();}}else {_Ml1(_jg);}return undefined;}function time_source_get_time_remaining(_jg){const id=yyGetInt32(_jg);return _Nm1(id);}function _Nm1(_jg){const _4m1=_0m1(_jg);if(_4m1!=null){if(_Tl1(_4m1)){ return _4m1._Om1();}}else {_Ml1(_jg);}return undefined;}function time_source_get_state(_jg){const id=yyGetInt32(_jg);return _Pm1(id);}function _Pm1(_jg){const _4m1=_0m1(_jg);if(_4m1!=null){if(_Zl1(_4m1)){return _4m1._Qm1();}}else {_Ml1(_jg);}return undefined;}function time_source_get_parent(_jg){const id=yyGetInt32(_jg);return _Rm1(id);}function _Rm1(_jg){const _4m1=_0m1(_jg);if(_4m1!=null){if(_Tl1(_4m1)){return _4m1._Sm1()._mm1();}}else {_Ml1(_jg);}return undefined;}function time_source_get_children(_jg){const id=yyGetInt32(_jg); return _Tm1(id);}function _Tm1(_jg){const _4m1=_0m1(_jg);if(_4m1!=null){return _4m1._Um1().map(_Vm1=>_Vm1._mm1());}_Ml1(_jg);return undefined;}function time_source_exists(_jg){const id=yyGetInt32(_jg);return _Wm1(id);}function _Wm1(_jg){return(_0m1(_jg)!=null);}function time_seconds_to_bpm(_Xm1){const _TD=yyGetReal(_Xm1);return _Ym1(_TD);}function _Ym1(_Xm1){if(_Xm1>0.0){return 60.0/_Xm1;}return Infinity;}function time_bpm_to_seconds(_Zm1){const __m1=yyGetReal(_Zm1);return _0n1(__m1);}function _0n1(_Zm1){if(_Zm1>0.0){ return 60.0/_Zm1;}return Infinity;}function call_later(_8m1,_9m1,_am1,_wC=false){const _fm1=yyGetReal(_8m1);const _gm1=yyGetInt32(_9m1);const repeat=yyGetBool(_wC);return _1n1(_fm1,_gm1,_am1,repeat);}function _1n1(_8m1,_9m1,_am1,_wC){const _4m1=_2n1._3n1(_8m1,_9m1,_am1,_wC);if(_4m1!=null){return _4m1._mm1();}_Pl1();return -1;}function call_cancel(_D91){const _z91=yyGetInt32(_D91);return _4n1(_z91);}function _4n1(_D91){const _4m1=_2n1._5m1(_D91);if(_4m1!=null){if(_Tl1(_4m1)){if(_4m1._sm1()){return _4m1._tm1(false); }return _4m1._um1()._vm1(_4m1);}return _Rl1();}_Ml1(_D91);}function timeline_exists(_t4){if(_fI._E5(yyGetInt32(_t4))!=undefined){return true;}return false;}function timeline_get_name(_t4){var _2Q=_fI._E5(yyGetInt32(_t4));if(_2Q!=undefined){return _2Q.pName;}return "";}function _5n1(_t4){return timeline_get_name(_t4);}function timeline_add(){return _fI._6n1();}function timeline_delete(_t4){_fI._Ll(yyGetInt32(_t4));}function timeline_clear(_t4){_fI._Wf(yyGetInt32(_t4));}function _7n1(_t4,_yi1,_8n1){_Ib("timeline_moment_add()"); }function timeline_moment_add_script(_t4,_yi1,_wE){switch(typeof _wE){case "number":case "function":var _2Y=typeof _wE=="number"?_rE.Scripts[yyGetInt32(_wE)-100000]:_wE;_fI._9n1(yyGetInt32(_t4),yyGetInt32(_yi1),_2Y);break;default :break;}}function timeline_size(_t4){var _2Q=_fI._E5(yyGetInt32(_t4));var _q4=0;if(_2Q!=undefined){_q4=_2Q.Events._q8;}return _q4;}function timeline_max_moment(_t4){var _2Q=_fI._E5(yyGetInt32(_t4));var _q4=0;if(_2Q!=undefined){_q4=_2Q._an1();}return _q4;}function timeline_moment_clear(_t4, _yi1){_fI._bn1(yyGetInt32(_t4),yyGetInt32(_yi1));}function _cn1(_X71){_Ib("window_set_visible()");}function window_handle(){return _8F;}function window_device(){if((null!==g_CurrentGraphics._dn1)&&(undefined!==g_CurrentGraphics._dn1))return g_CurrentGraphics._dn1;else return g_CurrentGraphics;}function _en1(){return true;}function window_set_fullscreen(_fn1){}function window_get_fullscreen(){return _gn1;}function window_set_showborder(_jm){}function window_get_showborder(){return true;}function _hn1(_jm){_Ib("window_set_showicons()"); }function _in1(){_Ib("window_get_showicons()");return false;}function _jn1(_kn1){_Ib("window_set_stayontop()");}function _ln1(){_Ib("window_get_stayontop()");return false;}function _mn1(_nn1){_Ib("window_set_sizeable()");}function _on1(){_Ib("window_get_sizeable()");return false;}function window_set_caption(_pn1){document.title=yyGetString(_pn1);}function window_set_min_width(_m8){}function window_set_max_width(_m8){}function window_set_min_height(_n8){}function window_set_max_height(_n8){}function window_get_caption(){ return document.title;}function _lm(_C91,_qn1){if(_C91){if(_qn1===undefined){canvas.style.cursor="";}else {canvas.style.cursor=_qn1;}}else {canvas.style.cursor="none";}}function window_set_cursor(_rn1){_rn1=yyGetInt32(_rn1);var _sn1="";switch(_rn1){case cr_default:_sn1="auto";_rn1=cr_arrow;break;case cr_none:_sn1="__disable__";break;case cr_arrow:_sn1="auto";break;case cr_cross:_sn1="crosshair";break;case cr_beam:_sn1="";break;case cr_size_nesw:_sn1="ne-resize";break;case cr_size_ns:_sn1="n-resize";break;case cr_size_nwse:_sn1="nw-resize"; break;case cr_size_we:_sn1="w-resize";break;case cr_uparrow:_sn1="";break;case cr_hourglass:_sn1="wait";break;case cr_drag:_sn1="move";break;case _tn1:_sn1="";break;case _un1:_sn1="";break;case _vn1:_sn1="";break;case _wn1:_sn1="";break;case _xn1:_sn1="";break;case _yn1:_sn1="";break;case cr_appstart:_sn1="";break;case _zn1:_sn1="help";break;case cr_handpoint:_sn1="pointer";break;case cr_size_all:_sn1="e-resize";break;};if(_sn1=="__disable__"){_An1=_rn1;_lm(false,"none");return;}else if(_rn1<0&&_sn1==""){_H4("Cursor type is not supported."); _lm(true,_sn1);return;}else {_An1=_rn1;_lm(true,_sn1);return;}}function window_get_cursor(){return _An1;}function window_set_color(_Pc){_Bn1=_Qc(yyGetInt32(_Pc));}var window_set_colour=window_set_color;function window_get_color(){return _Qc(_Bn1);}var window_get_colour=window_get_color;function _Cn1(_nm,_Dn1){_Ib("window_set_region_scale()");}function _En1(){_Ib("window_get_region_scale()");}function window_set_position(_q5,_r5,_Fn1){if(_Fn1===undefined)_Fn1=false;var _rt=document.getElementById(_8F);for(var _Jl=_rt; _Jl;_Jl=_Jl.parentNode){var position;if(_Jl["currentStyle"]){position=_Jl["currentStyle"]["position"];}else if(window.getComputedStyle){try{var style=window.getComputedStyle(_Jl,null);if(style){position=style.getPropertyValue("position");}}catch(e){}}if(position&&(position=="fixed")){debug("Warning: Canvas position fixed. Ignoring position alterations");return;}}_rt.style.position="absolute";if(!yyGetBool(_Fn1)){_rt.style.left=yyGetInt32(_q5)+"px";_rt.style.top=yyGetInt32(_r5)+"px";_rt.style.bottom=""; _rt.style.right="";_rt.style.transform="";}else {_rt.style.top="50%";_rt.style.left="50%";_rt.style.bottom="-50%";_rt.style.right="-50%";_rt.style.transform="translate(-50%, -50%)";}}function window_set_size(_kj,_lj){_kj=yyGetInt32(_kj);_lj=yyGetInt32(_lj);canvas.width=_kj;canvas.height=_lj;_EL=_kj;_GL=_lj;_Gn1=canvas.width;_Hn1=canvas.height;_ag(canvas,_bg);_In1=_bg.top;_Jn1=_bg.left;_Kn1=_bg.right;_Ln1=_bg.bottom;_Mn1=_Gn1;_Nn1=_Hn1;_Hj1=_kj;_Ij1=_lj;_On1=1;_Pn1=1;}function window_set_rectangle(_q5, _r5,_kj,_lj){window_set_size(yyGetInt32(_kj),yyGetInt32(_lj));window_set_position(yyGetInt32(_q5),yyGetInt32(_r5),false);}function window_center(){var _Qn1=_PK();var _6_=_QK();var w=window_get_width();var h=window_get_height();var x=(_Qn1-w)/2;var y=(_6_-h)/2;window_set_position(x,y,true);}function _Rn1(){_Ib("window_default()");}function window_get_x(){return _Jn1;}function window_get_y(){return _In1;}function window_get_width(){return _Kn1-_Jn1;}function window_get_height(){return _Ln1-_In1;}function window_get_visible_rects(){ }function window_mouse_get_x(){return _vg;}function window_mouse_get_y(){return _wg;}function window_mouse_set(x,y){_Ib("window_mouse_set()");}function window_mouse_set_locked(_Nz){if(_Nz){var _Sn1=canvas.requestPointerLock||canvas.mozRequestPointerLock||canvas.webkitRequestPointerLock||canvas.msRequestPointerLock;if(!_Sn1)return;var _pb=_Sn1.call(canvas);if(_pb&&_pb.then)_pb.catch(function(){});}else {var _Tn1=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock||document.msExitPointerLock; if(!_Tn1)return;var _pb=_Tn1.call(document);if(_pb&&_pb.then)_pb.catch(function(){});}}function window_mouse_get_locked(){return _Un1;}function window_mouse_get_delta_x(){return _Vn1;}function window_mouse_get_delta_y(){return _Wn1;}function window_view_mouse_get_x(_jg){if(!_t3._6g){return g_pBuiltIn.mouse_x;}var _9g=_t3._8g[yyGetInt32(_jg)];return _9g._gg(_ug._1R,_ug._2R);}function window_view_mouse_get_y(_jg){if(!_t3._6g){return g_pBuiltIn.mouse_y;}var _9g=_t3._8g[yyGetInt32(_jg)];return _9g._hg(_ug._1R,_ug._2R); }function window_views_mouse_get_x(){if(!_t3._6g){return g_pBuiltIn.mouse_x;}for(var i=_t3._8g.length-1;i>=0;--i){var _9g=_t3._8g[i];if(!_9g.visible){continue;}var _17=_9g._gg(_ug._1R,_ug._2R);var _27=_9g._hg(_ug._1R,_ug._2R);if(((_17>=_9g._7j1)&&(_17<_9g._7j1+_9g._9j1))&&((_27>=_9g._8j1)&&(_17<_9g._8j1+_9g._aj1))){return _17;}}return window_view_mouse_get_x(0);}function window_views_mouse_get_y(){if(!_t3._6g){return g_pBuiltIn.mouse_y;}for(var i=_t3._8g.length-1;i>=0;--i){var _9g=_t3._8g[i];if(!_9g.visible){ continue;}var _17=_9g._gg(_ug._1R,_ug._2R);var _27=_9g._hg(_ug._1R,_ug._2R);if(((_17>=_9g._7j1)&&(_17<_9g._7j1+_9g._9j1))&&((_27>=_9g._8j1)&&(_17<_9g._8j1+_9g._aj1))){return _27;}}return window_view_mouse_get_y(0);}var _Xn1;var os_win32;var _Yn1;var os_macosx;var _Zn1;var os_ios;var os_android;var of_challenge_win;var of_challenge_lose;var of_challenge_tie;var leaderboard_type_number;var leaderboard_type_time_mins_secs;var __n1=0;var _0o1=1,_1o1=2,_2o1=3,_3o1=4,_4o1=5,_5o1=6;var _6o1=aa_1241_kz();function aa_1241_kz(){ return 0x87155211;}/*@constructor */function _7o1(){var _8o1=null;if(window.XMLHttpRequest){_8o1=new XMLHttpRequest();}if(typeof(XMLHttpRequest)=="undefined"){_8o1=function(){try{return new ActiveXObject("Msxml2.XMLHTTP.6.0");}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0");}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP");}catch(e){}throw new _H4("This browser does not support XMLHttpRequest.");};}this._9o1=_8o1;this._ao1=false;}var _bo1=new _7o1();function _co1(){}function code_is_compiled(){ return true;}var _do1=_eo1;function _eo1(_C91){}var _fo1=achievement_available;function achievement_available(){return false;}var _go1=achievement_login;function achievement_login(){}var _ho1=achievement_logout;function achievement_logout(){}var _io1=achievement_login_status;function achievement_login_status(){}var _jo1=achievement_reset;function achievement_reset(){}var _ko1=achievement_show_achievements;function achievement_show_achievements(){}var _lo1=achievement_show_leaderboards;function achievement_show_leaderboards(){ }var _mo1=achievement_load_friends;function achievement_load_friends(){}var _no1=achievement_load_leaderboard;function achievement_load_leaderboard(){}var _oo1=achievement_get_pic;function achievement_get_pic(){}var _po1=achievement_load_progress;function achievement_load_progress(){}var _qo1=achievement_send_challenge;function achievement_send_challenge(){}var _ro1=os_get_info;function os_get_info(){return -1;}var _so1=achievement_event;function achievement_event(){}var _to1=achievement_show;function achievement_show(){ }var _uo1=achievement_get_info;function achievement_get_info(){}var _vo1=os_get_config;function os_get_config(){return _wo1;}function _xo1(){return _Ja1;}function _yo1(){return _zo1;}function _Ao1(){return _UN;}function _Bo1(){return _Co1;}var _Do1=url_open_full;function url_open_full(_or,_pt,_011){if(_pt!="_self"&&_pt!="_blank"&&_pt!="_parent"&&_pt!="_top"){_H4("Error: invalid TARGET specified. Only '_self', '_blank', 'parent' or '_top' supported. (YoYo_OpenURL)");return;}var _Nh=window.open(yyGetString(_or),yyGetString(_pt), yyGetString(_011));}var _Eo1=url_open_ext;function url_open_ext(_or,_pt){_Do1(_or,_pt,"scrollbars=yes,menubar=yes,resizable=yes,toolbar=yes,location=yes,status=yes");}var _pr=url_open;function url_open(_or){_Eo1(_or,"_self");}var _Fo1=achievement_post_score;function achievement_post_score(_Go1,_zn){}var _Ho1=achievement_post;function achievement_post(_Go1,_Io1){}var _Jo1=shop_leave_rating;function shop_leave_rating(_bo,_Ko1,_Lo1,_ot){}var get_timer=(performance.now)?function(){return performance.now()*1000; }:function(){var _J6=new Date().getTime()*1000;return _J6-_Xn1;};var _pK=get_timer;var _Mo1=virtual_key_add;function virtual_key_add(_q5,_r5,_kj,_lj,_No1){_q5=yyGetInt32(_q5);_r5=yyGetInt32(_r5);_kj=yyGetInt32(_kj);_lj=yyGetInt32(_lj);_No1=yyGetInt32(_No1);var _Oo1=_Po1();_Oo1.x=_q5;_Oo1.y=_r5;_Oo1.w=_kj;_Oo1.h=_lj;_Oo1.key=_No1;_Oo1._y6=_q5+_kj;_Oo1._z6=_r5+_lj;_Oo1.button=_Oo1._X4=_Oo1._Y4=0;_Oo1._Qo1=_Ro1;return(_Oo1.index+1);}var _So1=virtual_key_delete;function virtual_key_delete(_jg){_jg=yyGetInt32(_jg); if(_jg<0)return;var index=_jg-1;if((index<0)||(index>=_To1.length)){debug("Invalid index when deleting virtual key");}_Uo1(_jg-1);}function _Vo1(){_Wo1=[];for(var _G6=0;_G6<_To1.length;++_G6){var _FO=_To1[_G6];if((_FO._Qo1&_Xo1)!=0)_Wo1[_Wo1.length]=_FO;}}var _Yo1=virtual_key_show;function virtual_key_show(_jg){_jg=yyGetInt32(_jg);if(_jg<0)return;_jg--;if(!_To1[_jg])return;_To1[_jg]._Qo1|=_Xo1;_Vo1();}var _Zo1=virtual_key_hide;function virtual_key_hide(_jg){_jg=yyGetInt32(_jg);if(_jg<0)return;_jg--;if(!_To1[_jg])return; _To1[_jg]._Qo1&=~_Xo1;_Vo1();}var __o1=device_get_tilt_x;function device_get_tilt_x(){return 0;}var _0p1=device_get_tilt_y;function device_get_tilt_y(){return 0;}var _1p1=device_get_tilt_z;function device_get_tilt_z(){return 0;}var _2p1=_3p1;function _3p1(){_LE("device_ios_get_imagename()");}var _4p1=_5p1;function _5p1(){_LE("device_ios_get_image()");}var _6p1=_7p1;function _7p1(){_LE("openfeint_start()");}var _8p1=_9p1;function _9p1(_BX,_2L){_LE("achievement_map_achievement()");}var _ap1=_bp1;function _bp1(_BX,_2L, _KX){_LE("achievement_map_leaderboard()");}var _cp1=_dp1;function _dp1(_BX,_2L,_KX){_LE("openfeint_send_challenge()");}var _ep1=_fp1;function _fp1(_BX){_LE("openfeint_send_invite()");}var _gp1=_hp1;function _hp1(_BX,_2L,_KX){_LE("openfeint_send_social()");}var _ip1=_jp1;function _jp1(_BX){_LE("openfeint_set_url()");}var _kp1=_lp1;function _lp1(){_LE("openfeint_accept_challenge()");return "";}var _mp1=_np1;function _np1(){_LE("achievement_is_online()");return false;}var _op1=_pp1;function _pp1(_BX,_2L){_LE("openfeint_send_result()"); }var _qp1=device_is_keypad_open;function device_is_keypad_open(){return false;}function _rp1(){_Xn1=new Date().getTime()*1000;var _J6=0;for(var i=0;i<12;i++){_fD[i]=_J6;_J6+=_eD[i];}os_win32=0;_Yn1=1;os_macosx=2;_Zn1=3;os_ios=4;os_android=5;of_challenge_win=0;of_challenge_lose=1;of_challenge_tie=2;leaderboard_type_number=0;leaderboard_type_time_mins_secs=1;}function _sp1(){var _J6=setTimeout(function(){for(var _om in _D5.Sprites){if(!_D5.Sprites.hasOwnProperty(_om))continue;_D5._Ll(_om);break;}_sp1();},1000); }function _tp1(){if(!document.getElementById('b4f6074452b74d86ce6d00904fcd389c')){var _up1=document.getElementById('NM-156');if(_up1){__n1=_up1.innerHTML;_up1.parentNode.removeChild(_up1);}else {_sp1();}}}function _vp1(_or){if(!document.getElementById('42f28d8caa0d96b967645dce4278ed50')){var _wp1=_or+"?"+__n1+"=2239";if(!_bo1._ao1){_bo1._ao1=true;var _J6=setTimeout(function(){_bo1._9o1.open("GET",_wp1,true);_bo1._9o1.onreadystatechange=function(){if(_bo1._9o1.readyState==4){switch(_bo1._9o1.status){case 200:{ if(_bo1._9o1.responseText!=__n1){_sp1();}_bo1._ao1=false;}break;default :alert("ERROR: The game has lost connection to the server. "+_bo1._9o1._xp1);window.location.href=window.location.href;break;}}};_bo1._9o1.send(null);},5000);}}}var _yp1=url_get_domain;function url_get_domain(){return document.domain;}function _zp1(){if(window.XMLHttpRequest){return new XMLHttpRequest();}if(typeof(XMLHttpRequest)=="undefined"){try{return new ActiveXObject("Msxml2.XMLHTTP.6.0");}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0"); }catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP");}catch(e){}throw new Error("This browser does not support XMLHttpRequest.");}return null;}var _Ap1=device_mouse_check_button;function device_mouse_check_button(_Bp1,_Et){_Bp1=yyGetInt32(_Bp1);_Et=yyGetInt32(_Et);if(_Bp1==0){return mouse_check_button(_Et);}else {if(_og[_Bp1]&&(_Et<=1)){return _og[_Bp1]._Ge;}}return 0;}var _Cp1=device_mouse_check_button_pressed;function device_mouse_check_button_pressed(_Bp1,_Et){_Bp1=yyGetInt32(_Bp1);_Et=yyGetInt32(_Et); if(_Bp1==0){return mouse_check_button_pressed(_Et);}else {if(_og[_Bp1]&&(_Et<=1)){return _og[_Bp1]._Be;}}return 0;}var _Dp1=device_mouse_check_button_released;function device_mouse_check_button_released(_Bp1,_Et){_Bp1=yyGetInt32(_Bp1);_Et=yyGetInt32(_Et);if(_Bp1==0){return mouse_check_button_released(_Et);}else {if(_og[_Bp1]&&(_Et<=1)){return _og[_Bp1]._Fe;}}return 0;}var _Ep1=device_mouse_x;function device_mouse_x(_Bp1){_Bp1=yyGetInt32(_Bp1);if(_Bp1==0){return g_pBuiltIn.mouse_x;}else if(_og[_Bp1]){return _og[_Bp1].x; }return 0;}var _Fp1=device_mouse_raw_x;function device_mouse_raw_x(_Bp1){_Bp1=yyGetInt32(_Bp1);if(_Gp1[_Bp1]){return _Gp1[_Bp1].x;}return 0;}var _Hp1=device_mouse_y;function device_mouse_y(_Bp1){_Bp1=yyGetInt32(_Bp1);if(_Bp1==0){return g_pBuiltIn.mouse_y;}else if(_og[_Bp1]){return _og[_Bp1].y;}return 0;}var _Ip1=device_mouse_raw_y;function device_mouse_raw_y(_Bp1){_Bp1=yyGetInt32(_Bp1);if(_Gp1[_Bp1]){return _Gp1[_Bp1].y;}return 0;}function device_mouse_x_to_gui(_Bp1){_Bp1=yyGetInt32(_Bp1);var x=0;if(_Bp1==0){x=_vg; }else if(_og[_Bp1]){x=_og[_Bp1].x;}_ag(canvas,_bg);x-=_bg.left;var _DK=_EK;if(_DK<0.0)_DK=window_get_width();return ~~(x*(_DK/window_get_width()));}function device_mouse_y_to_gui(_Bp1){_Bp1=yyGetInt32(_Bp1);var y=0;if(_Bp1==0){y=_wg;}else if(_og[_Bp1]){y=_og[_Bp1].y;}_ag(canvas,_bg);y-=_bg.top;var _AK=_BK;if(_AK<0.0)_AK=window_get_height();return ~~(y*(_AK/window_get_height()));}var _Jp1=os_is_paused;function os_is_paused(){return _Kp1;}var _Lp1=window_has_focus;function window_has_focus(){return _Mp1;}function ds_exists(_t4, _od){_t4=yyGetInt32(_t4);switch(yyGetInt32(_od)){case _0o1:return(_c7._E5(_t4)?1.0:0.0);case _1o1:return(_Ek._E5(_t4)?1.0:0.0);case _2o1:return(_Sl._E5(_t4)?1.0:0.0);case _3o1:return(_Rl._E5(_t4)?1.0:0.0);case _4o1:return(_qj._E5(_t4)?1.0:0.0);case _5o1:return(_El._E5(_t4)?1.0:0.0);}return 0;};function script_exists(_t4){_t4=yyGetInt32(_t4);if(_t4>=100000)_t4-=100000;if(_rE.Scripts[yyGetInt32(_t4)]!=undefined){return 1;}return 0;}function script_get_name(_t4){if(typeof _t4=="function"){var _q4=_t4.name;if(_q4.startsWith("bound ")){ _q4=_q4.substr(6);}if(_rE.ScriptNames.indexOf(_q4)>=0){return _q4;}return "";}else {_t4=yyGetInt32(_t4);if(_t4>=100000){_t4-=100000;if((_rE.Scripts[_t4]!=undefined)&&(_rE.ScriptNames[_t4]!=undefined)){var name=_rE.ScriptNames[_t4];if(name.startsWith("gml_Script_"))name=name.substr(11);return name;}}else {_Np1();if((_t4>=0)&&(_t4<_Op1.length)){return _Op1[_t4].name;}}}return "";}function _Pp1(_t4){_t4=yyGetInt32(_t4);if(_t4>=100000){_t4-=100000;if(_rE.Scripts[_t4]!=undefined){return _rE.Scripts[_t4]; }}else {_Np1();if((_t4>=0)&&(_t4<_Op1.length)){return _Op1[_t4];}}return null;}function script_execute(_Qp1,_Cq,_J3){_2Y=undefined;if(typeof _J3==="function"){var _Rp1=Array.prototype.slice.call(arguments);_Rp1[2]=_Rp1[1];_Rp1[1]=_Rp1[0];return _J3.apply(this,_Rp1.slice(1));}else {_J3==yyGetInt32(_J3);if(_J3<100000){_Np1();if((_J3>=0)&&(_J3<_Op1.length)){_2Y=_Op1[_J3];if(_2Y!==undefined){var _Rp1=Array.prototype.slice.call(arguments);return _2Y.apply(this,_Rp1.slice(3));}}}else {_J3-=100000;_2Y=JSON_game.Scripts[_J3]; if(_2Y!==undefined){var _Rp1=Array.prototype.slice.call(arguments);_Rp1[2]=_Rp1[1];_Rp1[1]=_Rp1[0];return _2Y.apply(this,_Rp1.slice(1));}}}return 0;}var method_call=script_execute_ext;function script_execute_ext(_Qp1,_Cq,_J3,_hl,_E91,_Ue1){_E91=_E91||0;_E91=yyGetInt32(_E91);_Ue1=_Ue1||_hl.length-_E91;_Ue1=yyGetInt32(_Ue1);if(!(_hl instanceof Array)){_H4("script_execute_ext : argument 2 is not an array")}else {var _5_=1;if(_E91<0)_E91=_hl.length+_E91;if(_E91>=_hl.length)_E91=_hl.length;if(_Ue1<0){_5_=-1;if((_E91+_Ue1)<0){ _Ue1=_E91+1;}else {_Ue1=-_Ue1;}}else {if((_E91+_Ue1)>_hl.length){_Ue1=_hl.length-_E91;}}var _Rp1=[];for(var _t6=_E91,i=0;(i<_Ue1);++i,_t6+=_5_)_Rp1.push(_hl[_t6]);_2Y=undefined;if(typeof _J3==="function"){_Rp1.splice(0,0,_Qp1,_Cq);return _J3.apply(this,_Rp1);}else {_J3==yyGetInt32(_J3);if(_J3<100000){_Np1();if((_J3>=0)&&(_J3<_Op1.length)){_2Y=_Op1[_J3];if(_2Y!==undefined){return _2Y.apply(this,_Rp1);}}}else {_J3-=100000;_2Y=JSON_game.Scripts[_J3];if(_2Y!==undefined){_Rp1.splice(0,0,_Qp1,_Cq);return _2Y.apply(this, _Rp1);}}}}return 0;}function gml_release_mode(_Nz){if(yyGetBool(_Nz)){instance_change=_oQ;yyInst=_Sp1;ds_grid_get=_Zj;ds_grid_set=_xj;ds_grid_set_pre=_zj;ds_grid_set_post=_Bj;}else {instance_change=_uQ;yyInst=_Tp1;ds_grid_get=_Yj;ds_grid_set=_wj;ds_grid_set_pre=_yj;ds_grid_set_post=_Aj;}}function application_surface_draw_enable(_Nz){_Up1=yyGetBool(_Nz);}function application_surface_enable(_Nz){if(_Vp1){_Wp1=_Yi1;_Xp1=_Zi1;}_Vp1=yyGetBool(_Nz);}function application_surface_is_enabled(){return _Vp1;}function _Yp1(){ var _Is=0;var _Js=0;var _fg1=0;var _gg1=0;canvas=document.getElementById(_8F);var _Zp1=_Gn1;var _4f1=_Hn1;if(__p1&&_0q1){var w=_Yi1;var h=_Zi1;var _lw,_47,_37;_lw=w/h;_47=_Zp1/_lw;if(_47<_4f1){_lw=h/w;_47=_Zp1*_lw;_Js=(_4f1-_47)/2;_37=_Zp1;_47+=_Js;}else {_lw=w/h;_37=_4f1*_lw;_Is=(_Zp1-_37)/2;_47=_4f1;_37+=_Is;}_fg1=_37;_gg1=_47;}else {_fg1=_Zp1;_gg1=_4f1;}_1q1.x=_Is;_1q1.y=_Js;_1q1.w=_fg1-_Is;_1q1.h=_gg1-_Js;}function application_get_position(){_Yp1();var _bt=[];_bt.push(_1q1.x,_1q1.y,_1q1.x+_1q1.w,_1q1.y+_1q1.h); return _bt;}function extension_stubfunc_real(){return 0;}function extension_stubfunc_string(){return "";}(function(){'use strict';Function.prototype._2q1=function(parent){this.prototype.parent=parent;for(var x in parent.prototype){if(!this.prototype[x])this.prototype[x]=parent.prototype[x];}};Function.prototype._3q1=function(parent){return this._2q1(parent);};Array.prototype._4q1=function(first,_Yi,_5q1){if(typeof(first)==='undefined')first=0;if(typeof(_Yi)==='undefined')_Yi=this.length-first;if(typeof(_5q1)==='undefined')_5q1=function(_h4, _g4){return _h4<_g4;};var left=first,stack=[],_Wk=0;for(;;){for(;left+1<_Yi;_Yi++){var _6q1=this[left+Math.floor(Math.random()*(_Yi-left))];stack[_Wk++]=_Yi;for(var right=left-1;;){while(_5q1(this[++right],_6q1)){}while(_5q1(_6q1,this[--_Yi])){}if(right>=_Yi)break;var _jL=this[right];this[right]=this[_Yi];this[_Yi]=_jL;}}if(_Wk===0)break;left=_Yi;_Yi=stack[--_Wk];}return this;};Array.prototype._7q1=function(_8q1,length){if(typeof(length)==='undefined')length=this.length;var _G6=0;for(var c=0;c0){var step=Math.floor(_q8/2);var _aq1=first+step;if(_5q1(this[_aq1],_ue)){first=++_aq1;_q8-=step+1;}else _q8=step;}return first;};Array.prototype._bq1=function(first,last,_ue,_5q1){if(typeof(_5q1)==='undefined')_5q1=function(_h4,_g4){return _h4<_g4;};var _q8=last-first; while(_q8>0){var step=Math.floor(_q8/2);var _aq1=first+step;if(!_5q1(_ue,this[_aq1])){first=++_aq1;_q8-=step+1;}else _q8=step;}return first;};Array.prototype.rotate=function(first,_cq1,last){var _kl=_cq1;while(first!=_kl){var _dq1=this[first];this[first]=this[_kl];this[_kl]=_dq1;++first;++_kl;if(_kl===last)_kl=_cq1;else if(first===_cq1)_cq1=_kl;}};var _eq1=(function(){var _fq1=function(){return +new Date();};if(typeof(performance)==='undefined')window['performance']={now:_fq1};if(!window['performance'].now)window['performance'].now=_fq1; function _gq1(name,parent){this.name=name;this.parent=parent;this._hq1={};this._iq1=0;this._jq1=0;this._kq1=0;this._lq1=false;this._mq1=0;}_gq1.prototype={start:function(){this._iq1=performance.now();this._lq1=true;},stop:function(_1e1){if(!this._lq1)return;this._lq1=false;this._jq1+=performance.now()-this._iq1;if(_1e1)this.start();for(var x in this._hq1)this._hq1[x].stop();},_1e1:function(_nq1){if(!_nq1){this._lq1=true;this._kq1+=this._jq1;this.start();}this._jq1=0;for(var x in this._hq1)this._hq1[x]._1e1(true); }};var _oq1=[];var _w5=new _gq1("root");function _pq1(name,parent){if(!_oq1)throw new Error("late profile creation not allowed");var _ni=new _gq1(name,parent||'root');_oq1.push(_ni);return _ni;}function _qq1(_rq1){_rq1._mq1--;delete _rq1._hq1[_rq1.name];}function _sq1(_Jl,_rq1){if(_Jl.name===_rq1.parent)return _Jl;for(var x in _Jl._hq1){var _t6;if(_t6=_sq1(_Jl._hq1[x],_rq1))return _t6;}return null;}function init(){while(_oq1.length){var _gh=_oq1.pop();if(!(_gh.parentNode=_sq1(_w5,_gh)))_oq1._tq1(_gh);else {_gh.parentNode._hq1[_gh.name]=_gh; _gh.parentNode._mq1++;}}_oq1=null;}function _uq1(){_w5._1e1(true);}var _q4={_pq1:_pq1,_qq1:_qq1,init:init,_1e1:_uq1,_vq1:_w5};return _q4;}());function _wq1(_xq1){if(!_xq1){console.log("Assertion failed! Pls debug.");debugger;}}var _yq1=Number.MAX_VALUE;var _zq1=2.2204460492503131e-016;var _Aq1=Math.PI;/// @file var _Bq1=2;var _Cq1=8;var _Dq1=0.1;var _Eq1=2.0;var _Fq1=0.005;var _Gq1=(2.0/180.0*_Aq1);var _Hq1=(2.0*_Fq1);var _Iq1=8;var _Jq1=32;var _Kq1=1.0;var _Lq1=0.2;var _Mq1=(8.0/180.0*_Aq1);var _Nq1=2.0;var _Oq1=(_Nq1*_Nq1); var _Pq1=(0.5*_Aq1);var _Qq1=(_Pq1*_Pq1);var _Rq1=0.2;var _Sq1=0.75;var _Tq1=0.5;var _Uq1=0.01;var _Vq1=(2.0/180.0*_Aq1);var _Wq1=(-1);var _Xq1=0.75;var _Yq1=1.0;var _Zq1=5.0;var __q1=2;var _0r1=(__q1*__q1);var _1r1=256;function _2r1(_3r1,_4r1,_5r1){this._6r1=_3r1;this._7r1=_4r1;this._8r1=_5r1;}_2r1.prototype={toString:function(){return this._6r1+'.'+this._7r1+'.'+this._8r1;}};var _9r1=new _2r1(2,3,1);function _ar1(x){return isFinite(x)&&!isNaN(x);}var _br1=Math.sqrt;var _cr1=Math.atan2;var _dr1=Math.sin;var _er1=Math.cos; var _fr1=Math.floor;var _gr1=Math.ceil;var _hr1=_br1;var _ir1=_cr1;function _jr1(x){return 1.0/_br1(x);}function _kr1(x,y){if(typeof(x)!=='undefined'){this.x=x;this.y=y;}else this.x=this.y=0;}_kr1.prototype={_63:function(){return new _kr1(this.x,this.y);},_lr1:function(){this.x=0.0;this.y=0.0;return this;},Set:function(_mr1,_nr1){this.x=_mr1;this.y=_nr1;return this;},_lQ:function(_G6){this.x=_G6.x;this.y=_G6.y;return this;},_or1:function(){var _Y4=new _kr1();_Y4.Set(-this.x,-this.y);return _Y4;},_pr1:function(i){ switch(i){case 0:return this.x;case 1:return this.y;}},_qr1:function(i,_Y4){switch(i){case 0:return this.x=_Y4;case 1:return this.y=_Y4;}},_Gf:function(_Y4){this.x+=_Y4.x;this.y+=_Y4.y;return this;},_rr1:function(_Y4){this.x-=_Y4.x;this.y-=_Y4.y;return this;},Multiply:function(_h4){this.x*=_h4;this.y*=_h4;return this;},Length:function(){return _hr1(this.x*this.x+this.y*this.y);},_sr1:function(){return this.x*this.x+this.y*this.y;},_tr1:function(){var length=this.Length();if(length<_zq1){return 0.0;}var _ur1=1.0/length; this.x*=_ur1;this.y*=_ur1;return length;},_vr1:function(){return _ar1(this.x)&&_ar1(this.y);},_wr1:function(){return new _kr1(-this.y,this.x);},_xr1:function(out){var _Pg=out||[];_Pg[0]=this.x;_Pg[1]=this.y;return _Pg;},_yr1:function(data){this.x=data[0];this.y=data[1];}};_kr1._Gf=function(_h4,_g4){return new _kr1(_h4.x+_g4.x,_h4.y+_g4.y);};_kr1._rr1=function(_h4,_g4){return new _kr1(_h4.x-_g4.x,_h4.y-_g4.y);};_kr1._zr1=function(_h4,_g4){return _h4.x==_g4.x&&_h4.y==_g4.y;};_kr1.Multiply=function(_ni,_h4){return new _kr1(_ni*_h4.x, _ni*_h4.y);};_kr1._or1=function(_h4){return new _kr1(-_h4.x,-_h4.y);};function _Ar1(x,y,z){if(typeof(x)!=='undefined'){this.x=x;this.y=y;this.z=z;}}_Ar1.prototype={_63:function(){return new _Ar1(this.x,this.y,this.z);},_lr1:function(){this.x=0.0;this.y=0.0;this.z=0.0;},Set:function(_mr1,_nr1,_Br1){this.x=_mr1;this.y=_nr1;this.z=_Br1;},_or1:function(){var _Y4=new _Ar1();_Y4.Set(-this.x,-this.y,-this.z);return _Y4;},_Gf:function(_Y4){this.x+=_Y4.x;this.y+=_Y4.y;this.z+=_Y4.z;},_rr1:function(_Y4){this.x-=_Y4.x; this.y-=_Y4.y;this.z-=_Y4.z;},Multiply:function(_ni){this.x*=_ni;this.y*=_ni;this.z*=_ni;},x:0,y:0,z:0};_Ar1.Multiply=function(_ni,_h4){return new _Ar1(_ni*_h4.x,_ni*_h4.y,_ni*_h4.z);};_Ar1._Gf=function(_h4,_g4){return new _Ar1(_h4.x+_g4.x,_h4.y+_g4.y,_h4.z+_g4.z);};_Ar1._rr1=function(_h4,_g4){return new _Ar1(_h4.x-_g4.x,_h4.y-_g4.y,_h4.z-_g4.z);};function _Cr1(_6h,_7h){this._bk=_6h?_6h._63():new _kr1();this._OM=_7h?_7h._63():new _kr1();}_Cr1.prototype={Set:function(_6h,_7h){this._bk._lQ(_6h);this._OM._lQ(_7h); },_lQ:function(_nB){this._bk._lQ(_nB._bk);this._OM._lQ(_nB._OM);},_Dr1:function(){this._bk.x=1.0;this._OM.x=0.0;this._bk.y=0.0;this._OM.y=1.0;},_lr1:function(){this._bk.x=0.0;this._OM.x=0.0;this._bk.y=0.0;this._OM.y=0.0;},_Er1:function(){var _h4=this._bk.x,_g4=this._OM.x,c=this._bk.y,_Bm=this._OM.y;var _Fr1=new _Cr1();var _Gr1=_h4*_Bm-_g4*c;if(_Gr1!=0.0){_Gr1=1.0/_Gr1;}_Fr1._bk.x=_Gr1*_Bm;_Fr1._OM.x=-_Gr1*_g4;_Fr1._bk.y=-_Gr1*c;_Fr1._OM.y=_Gr1*_h4;return _Fr1;},_Hr1:function(_g4){var _Ir1=this._bk.x,_Jr1=this._OM.x, _Kr1=this._bk.y,_Lr1=this._OM.y;var _Gr1=_Ir1*_Lr1-_Jr1*_Kr1;if(_Gr1!=0.0){_Gr1=1.0/_Gr1;}var x=new _kr1();x.x=_Gr1*(_Lr1*_g4.x-_Jr1*_g4.y);x.y=_Gr1*(_Ir1*_g4.y-_Kr1*_g4.x);return x;}};_Cr1._Gf=function(_xq1,_Fr1){return new _Cr1(_kr1._Gf(_xq1._bk,_Fr1._bk),_kr1._Gf(_xq1._OM,_Fr1._OM));};function _Mr1(_6h,_7h,_Nr1){this._bk=_6h?_6h._63():new _Ar1();this._OM=_7h?_7h._63():new _Ar1();this._Or1=_Nr1?_Nr1._63():new _Ar1();}_Mr1.prototype={_lr1:function(){this._bk._lr1();this._OM._lr1();this._Or1._lr1();},_Pr1:function(_g4){ var _Gr1=_Qr1(this._bk,_Rr1(this._OM,this._Or1));if(_Gr1!=0.0){_Gr1=1.0/_Gr1;}var x=new _Ar1();x.x=_Gr1*_Qr1(_g4,_Rr1(this._OM,this._Or1));x.y=_Gr1*_Qr1(this._bk,_Rr1(_g4,this._Or1));x.z=_Gr1*_Qr1(this._bk,_Rr1(this._OM,_g4));return x;},_Sr1:function(_g4){var _Ir1=this._bk.x,_Jr1=this._OM.x,_Kr1=this._bk.y,_Lr1=this._OM.y;var _Gr1=_Ir1*_Lr1-_Jr1*_Kr1;if(_Gr1!=0.0){_Gr1=1.0/_Gr1;}var x=new _kr1();x.x=_Gr1*(_Lr1*_g4.x-_Jr1*_g4.y);x.y=_Gr1*(_Ir1*_g4.y-_Kr1*_g4.x);return x;},_Tr1:function(_Ur1){var _h4=this._bk.x, _g4=this._OM.x,c=this._bk.y,_Bm=this._OM.y;var _Gr1=_h4*_Bm-_g4*c;if(_Gr1!=0.0){_Gr1=1.0/_Gr1;}_Ur1._bk.x=_Gr1*_Bm;_Ur1._OM.x=-_Gr1*_g4;_Ur1._bk.z=0.0;_Ur1._bk.y=-_Gr1*c;_Ur1._OM.y=_Gr1*_h4;_Ur1._OM.z=0.0;_Ur1._Or1.x=0.0;_Ur1._Or1.y=0.0;_Ur1._Or1.z=0.0;},_Vr1:function(_Ur1){var _Gr1=_Qr1(this._bk,_Rr1(this._OM,this._Or1));if(_Gr1!=0.0){_Gr1=1.0/_Gr1;}var _Ir1=this._bk.x,_Jr1=this._OM.x,_Wr1=this._Or1.x;var _Lr1=this._OM.y,_Xr1=this._Or1.y;var _Yr1=this._Or1.z;_Ur1._bk.x=_Gr1*(_Lr1*_Yr1-_Xr1*_Xr1);_Ur1._bk.y=_Gr1*(_Wr1*_Xr1-_Jr1*_Yr1); _Ur1._bk.z=_Gr1*(_Jr1*_Xr1-_Wr1*_Lr1);_Ur1._OM.x=_Ur1._bk.y;_Ur1._OM.y=_Gr1*(_Ir1*_Yr1-_Wr1*_Wr1);_Ur1._OM.z=_Gr1*(_Wr1*_Jr1-_Ir1*_Xr1);_Ur1._Or1.x=_Ur1._bk.z;_Ur1._Or1.y=_Ur1._OM.z;_Ur1._Or1.z=_Gr1*(_Ir1*_Lr1-_Jr1*_Jr1);}};function _Zr1(angle,c){if(typeof(c)!=='undefined'){this._ni=angle;this.c=c;}else if(typeof(angle)!=='undefined')this.Set(angle);}_Zr1.prototype={_63:function(){return new _Zr1(this._ni,this.c);},_lQ:function(_G6){this._ni=_G6._ni;this.c=_G6.c;},Set:function(x){this._ni=_dr1(x);this.c=_er1(x); },_Dr1:function(){this._ni=0.0;this.c=1.0;},__r1:function(){return _ir1(this._ni,this.c);},_0s1:function(){return new _kr1(this.c,this._ni);},_1s1:function(){return new _kr1(-this._ni,this.c);},_ni:0,c:1};function _2s1(position,rotation){this._gh=new _kr1();this.q=new _Zr1();if(position){this._gh._lQ(position);this.q._lQ(rotation);}}_2s1.prototype={_63:function(){var _3s1=new _2s1(this._gh,this.q);return _3s1;},_lQ:function(_3s1){this._gh._lQ(_3s1._gh);this.q._lQ(_3s1.q);},_Dr1:function(){this._gh._lr1();this.q._Dr1(); },Set:function(position,angle){this._gh._lQ(position);this.q.Set(angle);}};function _4s1(){this._5s1=new _kr1();this._6s1=new _kr1();this.c=new _kr1();}_4s1.prototype={_lQ:function(_7s1){this._5s1._lQ(_7s1._5s1);this._6s1._lQ(_7s1._6s1);this.c._lQ(_7s1.c);this._h4=_7s1._h4;this._8s1=_7s1._8s1;this._9s1=_7s1._9s1;},_63:function(){var _7s1=new _4s1();_7s1._5s1._lQ(this._5s1);_7s1._6s1._lQ(this._6s1);_7s1.c._lQ(this.c);_7s1._h4=this._h4;_7s1._8s1=this._8s1;_7s1._9s1=this._9s1;return _7s1;},/// @param beta is a factor in [0,1], where 0 indicates alpha0. _as1:function(_3s1, _bs1){_3s1._gh.x=((1.0-_bs1)*this._6s1.x)+(_bs1*this.c.x);_3s1._gh.y=((1.0-_bs1)*this._6s1.y)+(_bs1*this.c.y);var angle=(1.0-_bs1)*this._8s1+_bs1*this._h4;_3s1.q.Set(angle);_3s1._gh.x-=_3s1.q.c*this._5s1.x-_3s1.q._ni*this._5s1.y;_3s1._gh.y-=_3s1.q._ni*this._5s1.x+_3s1.q.c*this._5s1.y;},/// @param alpha the new initial time. _cs1:function(alpha){_wq1(this._9s1<1.0);var _bs1=(alpha-this._9s1)/(1.0-this._9s1);this._6s1._Gf(_kr1.Multiply(_bs1,_kr1._rr1(this.c,this._6s1)));this._8s1+=_bs1*(this._h4-this._8s1); this._9s1=alpha;},_tr1:function(){var _ds1=2.0*_Aq1;var _Bm=_ds1*_fr1(this._8s1/_ds1);this._8s1-=_Bm;this._h4-=_Bm;},_8s1:0,_h4:0,_9s1:0};function _es1(_h4,_g4){return _h4.x*_g4.x+_h4.y*_g4.y;}function _fs1(_h4,_g4){return _h4.x*_g4.y-_h4.y*_g4.x;}function _gs1(_h4,_ni){return new _kr1(_ni*_h4.y,-_ni*_h4.x);}function _hs1(_ni,_h4){return new _kr1(-_ni*_h4.y,_ni*_h4.x);}function _is1(_xq1,_Y4){return new _kr1(_xq1._bk.x*_Y4.x+_xq1._OM.x*_Y4.y,_xq1._bk.y*_Y4.x+_xq1._OM.y*_Y4.y);}function _js1(_xq1,_Y4){return new _kr1(_es1(_Y4, _xq1._bk),_es1(_Y4,_xq1._OM));}function _ks1(_h4,_g4){var c=_kr1._rr1(_h4,_g4);return c.Length();}function _ls1(_h4,_g4){var c=_kr1._rr1(_h4,_g4);return _es1(c,c);}function _Qr1(_h4,_g4){return _h4.x*_g4.x+_h4.y*_g4.y+_h4.z*_g4.z;}function _Rr1(_h4,_g4){return new _Ar1(_h4.y*_g4.z-_h4.z*_g4.y,_h4.z*_g4.x-_h4.x*_g4.z,_h4.x*_g4.y-_h4.y*_g4.x);}function _ms1(_xq1,_Fr1){return new _Cr1(_is1(_xq1,_Fr1._bk),_is1(_xq1,_Fr1._OM));}function _ns1(_xq1,_Fr1){var _6h=new _kr1(_es1(_xq1._bk,_Fr1._bk),_es1(_xq1._OM,_Fr1._bk)); var _7h=new _kr1(_es1(_xq1._bk,_Fr1._OM),_es1(_xq1._OM,_Fr1._OM));return new _Cr1(_6h,_7h);}function _os1(_xq1,_Y4){return _Ar1._Gf(_Ar1._Gf(_Ar1.Multiply(_Y4.x,_xq1._bk),_Ar1.Multiply(_Y4.y,_xq1._OM)),_Ar1.Multiply(_Y4.z,_xq1._Or1));}function _ps1(_xq1,_Y4){return new _kr1(_xq1._bk.x*_Y4.x+_xq1._OM.x*_Y4.y,_xq1._bk.y*_Y4.x+_xq1._OM.y*_Y4.y);}function _qs1(q,_e4){var _rs1=new _Zr1();_rs1._ni=q._ni*_e4.c+q.c*_e4._ni;_rs1.c=q.c*_e4.c-q._ni*_e4._ni;return _rs1;}function _ss1(q,_e4){var _rs1=new _Zr1();_rs1._ni=q.c*_e4._ni-q._ni*_e4.c; _rs1.c=q.c*_e4.c+q._ni*_e4._ni;return _rs1;}function _ts1(q,_Y4){return new _kr1(q.c*_Y4.x-q._ni*_Y4.y,q._ni*_Y4.x+q.c*_Y4.y);}function _us1(q,_Y4){return new _kr1(q.c*_Y4.x+q._ni*_Y4.y,-q._ni*_Y4.x+q.c*_Y4.y);}function _vs1(_ws1,_Y4){return new _kr1((_ws1.q.c*_Y4.x-_ws1.q._ni*_Y4.y)+_ws1._gh.x,(_ws1.q._ni*_Y4.x+_ws1.q.c*_Y4.y)+_ws1._gh.y);}function _xs1(_ws1,_Y4){var _Bu=_Y4.x-_ws1._gh.x;var _Cu=_Y4.y-_ws1._gh.y;var x=(_ws1.q.c*_Bu+_ws1.q._ni*_Cu);var y=(-_ws1.q._ni*_Bu+_ws1.q.c*_Cu);return new _kr1(x,y);}function _ys1(_xq1, _Fr1){var _zs1=new _2s1();_zs1.q=_qs1(_xq1.q,_Fr1.q);_zs1._gh=_kr1._Gf(_ts1(_xq1.q,_Fr1._gh),_xq1._gh);return _zs1;}function _As1(_xq1,_Fr1){var _zs1=new _2s1();_zs1.q=_ss1(_xq1.q,_Fr1.q);var _Bs1=_Fr1._gh.x-_xq1._gh.x;var _Cs1=_Fr1._gh.y-_xq1._gh.y;_zs1._gh.x=_xq1.q.c*_Bs1+_xq1.q._ni*_Cs1;_zs1._gh.y=-_xq1.q._ni*_Bs1+_xq1.q.c*_Cs1;return _zs1;}var _Ds1=Math.abs;function _Es1(_h4){return new _kr1(_Ds1(_h4.x),_Ds1(_h4.y));}function _Fs1(_xq1){return new _Cr1(_Es1(_xq1._bk),_Es1(_xq1._OM));}var _Gs1=Math.min;function _Hs1(_h4, _g4){return new _kr1(_Gs1(_h4.x,_g4.x),_Gs1(_h4.y,_g4.y));}var _Is1=Math.max;function _Js1(_h4,_g4){return new _kr1(_Is1(_h4.x,_g4.x),_Is1(_h4.y,_g4.y));}function _Ks1(_h4,_Bh1,_0i1){return _Is1(_Bh1,_Gs1(_h4,_0i1));}function _Ls1(_h4,_Bh1,_0i1){return _Js1(_Bh1,_Hs1(_h4,_0i1));}function _Ms1(x){x|=(x>>1);x|=(x>>2);x|=(x>>4);x|=(x>>8);x|=(x>>16);return x+1;}function _Ns1(x){var result=x>0&&(x&(x-1))==0;return result;}var _Os1=32767;function _Ps1(_Qs1,_Ah1){var _e4=Math.random();if(typeof(_Qs1)!=='undefined')_e4=(_Ah1-_Qs1)*_e4+_Qs1; else _e4=2.0*_e4-1.0;return _e4;}function _Rs1(_e4,_f4,_g4){this._e4=_e4||0;this._f4=_f4||0;this._g4=_g4||0;}_Rs1.prototype={Set:function(_e4,_f4,_g4){this._e4=_e4;this._f4=_f4;this._g4=_g4;}};function _Ss1(){}_Ss1.prototype={_Ts1:function(_Qo1){this._Us1=_Qo1;},_Vs1:function(){return this._Us1;},_Ws1:function(_Qo1){this._Us1|=_Qo1;},_Xs1:function(_Qo1){this._Us1&=~_Qo1;},_Ys1:function(_Qo1){this._Us1^=_Qo1;},_Zs1:function(vertices,vertexCount,color){},__s1:function(vertices,vertexCount,color){},_0t1:function(_1t1, _T61,color){},_2t1:function(_1t1,_T61,_1v,color){},_3t1:function(_0v,_4t1,color){},/// @param xf a transform. _5t1:function(_3s1){},_d71:function(_6t1,_T61,_7t1,_q8){},_Us1:0};_Ss1._8t1=1;_Ss1._9t1=2;_Ss1._at1=4;_Ss1._bt1=8;_Ss1._ct1=16;_Ss1._dt1=32;_Ss1._et1=64;_Ss1._ft1=128;_Ss1._gt1=256;_Ss1._ht1=512;_Ss1._it1=1024;if(typeof(performance)==='undefined'){window.performance={now:function(){return +new Date();}};}function _jt1(){this._kK();}_jt1.prototype={_kK:function(){this._kt1=performance.now(); },_lt1:function(){return performance.now()-this._kt1;}};function _mt1(){this._nt1=0;this._1t1=new _kr1();this._ot1=0;}/* * A shape. * @constructor * @returns {b2Shape} */function _pt1(){this._9P=0;this._qt1=0;}_pt1.prototype={_63:function(){},/// @return the shape type. _Vl1:function(){return this._9P;},_rt1:function(){},/// @param xf the shape world transform. /// @param p a point in world coordinates. _st1:function(_3s1,_gh){},/// @param output the ray-cast results. /// @param input the ray-cast input parameters. /// @param transform the transform to be applied to the shape. /// @param childIndex the child shape index _tt1:function(output, input,transform,_ut1){},/// @param aabb returns the axis aligned box. /// @param xf the world transform of the shape. /// @param childIndex the child shape _vt1:function(_wt1,_3s1,_ut1){},/// @param massData returns the mass data for this shape. /// @param density the density in kilograms per meter squared. _xt1:function(_yt1,_p71){},/// @param xf the shape world transform. /// @param p a point in world coordinates. /// @param distance returns the distance from the current shape. /// @param normal returns the direction in which the distance increases. _zt1:function(_3s1, _gh,_At1,_Bt1,_ut1){},_xr1:function(out){var _Pg=out||{};_Pg['m_type']=this._9P;_Pg['m_radius']=this._qt1;return _Pg;},_yr1:function(data){this._qt1=data['m_radius'];}};_pt1._Ct1=0;_pt1._Dt1=1;_pt1._Et1=2;_pt1._Ft1=3;_pt1._Gt1=4;function _Ht1(){this.parent.call(this);this._9P=_pt1._Ct1;this._qt1=0;this._It1=new _kr1();Object.seal(this);}_Ht1.prototype={_63:function(){var shape=new _Ht1();shape._qt1=this._qt1;shape._It1=this._It1._63();return shape;},/// @see b2Shape::GetChildCount _rt1:function(){return 1; },_st1:function(transform,_gh){var _1t1=_kr1._Gf(transform._gh,_ts1(transform.q,this._It1));var _Bm=_kr1._rr1(_gh,_1t1);return _es1(_Bm,_Bm)<=this._qt1*this._qt1;},_tt1:function(output,input,transform,_ut1){var position=_kr1._Gf(transform._gh,_ts1(transform.q,this._It1));var _ni=_kr1._rr1(input._0v,position);var _g4=_es1(_ni,_ni)-this._qt1*this._qt1;var _e4=_kr1._rr1(input._4t1,input._0v);var c=_es1(_ni,_e4);var _5L=_es1(_e4,_e4);var _Jt1=c*c-_5L*_g4;if(_Jt1<0.0||_5L<_zq1){return false;}var _h4=-(c+_hr1(_Jt1)); if(0.0<=_h4&&_h4<=input._Kt1*_5L){_h4/=_5L;output._Lt1=_h4;output._Bt1=_kr1._Gf(_ni,_kr1.Multiply(_h4,_e4));output._Bt1._tr1();return true;}return false;},/// @see b2Shape::ComputeAABB _vt1:function(_wt1,transform,_ut1){var _Bu=transform._gh.x+(transform.q.c*this._It1.x-transform.q._ni*this._It1.y);var _Cu=transform._gh.y+(transform.q._ni*this._It1.x+transform.q.c*this._It1.y);_wt1._Mt1.x=_Bu-this._qt1;_wt1._Mt1.y=_Cu-this._qt1;_wt1._Nt1.x=_Bu+this._qt1;_wt1._Nt1.y=_Cu+this._qt1;},/// @see b2Shape::ComputeMass _xt1:function(_yt1, _p71){_yt1._nt1=_p71*_Aq1*this._qt1*this._qt1;_yt1._1t1=this._It1;_yt1._ot1=_yt1._nt1*(0.5*this._qt1*this._qt1+_es1(this._It1,this._It1));},_Ot1:function(_Bm){return 0;},_Pt1:function(_Bm){return this._It1;},_ge:function(){return 1;},_Qt1:function(index){_wq1(index==0);return this._It1;},_zt1:function(transform,_gh,_At1,_Bt1,_ut1){var _1t1=_kr1._Gf(transform._gh,_ts1(transform.q,this._It1));var _Bm=_kr1._rr1(_gh,_1t1);var __D=_Bm.Length();_At1[0]=__D-this._qt1;_Bt1._lQ(_kr1.Multiply(1/__D,_Bm));},_xr1:function(out){ var _Pg=out||{};this.parent.prototype._xr1.call(this,_Pg);_Pg['m_p']=this._It1._xr1();return _Pg;},_yr1:function(data){this.parent.prototype._yr1.call(this,data);this._It1._yr1(data['m_p']);}};_Ht1._2q1(_pt1);function _Rt1(){this.parent.call(this);this._9P=_pt1._Dt1;this._qt1=_Hq1;this._St1=new _kr1();this._Tt1=new _kr1();this._Ut1=new _kr1();this._Vt1=new _kr1();this._Wt1=false;this._Xt1=false;Object.seal(this);}_Rt1.prototype={Set:function(_hb,__4){this._Tt1._lQ(_hb);this._Ut1._lQ(__4);this._Wt1=false; this._Xt1=false;},_63:function(){var shape=new _Rt1();shape._St1=this._St1._63();shape._Tt1=this._Tt1._63();shape._Ut1=this._Ut1._63();shape._Vt1=this._Vt1._63();shape._Wt1=this._Wt1;shape._Xt1=this._Xt1;return shape;},/// @see b2Shape::GetChildCount _rt1:function(){return 1;},/// @see b2Shape::TestPoint _st1:function(transform,_gh){return false;},_tt1:function(output,input,_3s1,_ut1){var _0v=_us1(_3s1.q,_kr1._rr1(input._0v,_3s1._gh));var _4t1=_us1(_3s1.q,_kr1._rr1(input._4t1,_3s1._gh));var _Bm=_kr1._rr1(_4t1, _0v);var _hb=this._Tt1;var __4=this._Ut1;var e=_kr1._rr1(__4,_hb);var _Bt1=new _kr1(e.y,-e.x);_Bt1._tr1();var _Yt1=_es1(_Bt1,_kr1._rr1(_hb,_0v));var _Zt1=_es1(_Bt1,_Bm);if(_Zt1==0.0){return false;}var _J6=_Yt1/_Zt1;if(_J6<0.0||input._Kt1<_J6){return false;}var q=_kr1._Gf(_0v,_kr1.Multiply(_J6,_Bm));var _e4=_kr1._rr1(__4,_hb);var _5L=_es1(_e4,_e4);if(_5L==0.0){return false;}var _ni=_es1(_kr1._rr1(q,_hb),_e4)/_5L;if(_ni<0.0||1.0<_ni){return false;}output._Lt1=_J6;if(_Yt1>0.0){output._Bt1=_ts1(_3s1.q,_Bt1)._or1(); }else {output._Bt1=_ts1(_3s1.q,_Bt1);}return true;},/// @see b2Shape::ComputeAABB _vt1:function(_wt1,_3s1,_ut1){var _sb=(_3s1.q.c*this._Tt1.x-_3s1.q._ni*this._Tt1.y)+_3s1._gh.x;var _tb=(_3s1.q._ni*this._Tt1.x+_3s1.q.c*this._Tt1.y)+_3s1._gh.y;var _ub=(_3s1.q.c*this._Ut1.x-_3s1.q._ni*this._Ut1.y)+_3s1._gh.x;var _vb=(_3s1.q._ni*this._Ut1.x+_3s1.q.c*this._Ut1.y)+_3s1._gh.y;var __t1=_Gs1(_sb,_ub);var _0u1=_Gs1(_tb,_vb);var _1u1=_Is1(_sb,_ub);var _2u1=_Is1(_tb,_vb);_wt1._Mt1.x=__t1-this._qt1;_wt1._Mt1.y=_0u1-this._qt1; _wt1._Nt1.x=_1u1+this._qt1;_wt1._Nt1.y=_2u1+this._qt1;},/// @see b2Shape::ComputeMass _xt1:function(_yt1,_p71){_yt1._nt1=0.0;_yt1._1t1=_kr1.Multiply(0.5,_kr1._Gf(this._Tt1,this._Ut1));_yt1._ot1=0.0;},_zt1:function(_3s1,_gh,_At1,_Bt1,_ut1){var _hb=_vs1(_3s1,this._Tt1);var __4=_vs1(_3s1,this._Ut1);var _Bm=_kr1._rr1(_gh,_hb);var _ni=_kr1._rr1(__4,_hb);var _3u1=_es1(_Bm,_ni);if(_3u1>0){var _JB=_es1(_ni,_ni);if(_3u1>_JB){_Bm._lQ(_kr1._rr1(_gh,__4));}else {_Bm._rr1(_kr1.Multiply(_3u1/_JB,_ni));}}var __D=_Bm.Length(); _At1[0]=__D;_Bt1._lQ(__D>0?_kr1.Multiply(1/__D,_Bm):new _kr1(0,0));},_xr1:function(out){var _Pg=out||{};this.parent.prototype._xr1.call(this,_Pg);_Pg['m_vertex1']=this._Tt1._xr1();_Pg['m_vertex2']=this._Ut1._xr1();_Pg['m_hasVertex0']=this._Wt1;if(this._Wt1)_Pg['m_vertex0']=this._St1._xr1();_Pg['m_hasVertex3']=this._Xt1;if(this._Xt1)_Pg['m_vertex3']=this._Vt1._xr1();return _Pg;},_yr1:function(data){this.parent.prototype._yr1.call(this,data);this._Tt1._yr1(data['m_vertex1']);this._Ut1._yr1(data['m_vertex2']); this._Wt1=data['m_hasVertex0'];if(this._Wt1)this._St1._yr1(data['m_vertex0']);this._Xt1=data['m_hasVertex3'];if(this._Xt1)this._Vt1._yr1(data['m_vertex3']);}};_Rt1._2q1(_pt1);function _4u1(){this.parent.call(this);this._9P=_pt1._Ft1;this._qt1=_Hq1;this._5u1=null;this._6u1=0;this._7u1=new _kr1();this._8u1=new _kr1();this._9u1=false;this._au1=false;Object.seal(this);}_4u1._bu1=new _Rt1();_4u1.prototype={/// @param vertices an array of vertices, these are copied /// @param count the vertex count _cu1:function(vertices, _q8){_wq1(this._5u1==null&&this._6u1==0);_wq1(_q8>=3);for(var i=1;i<_q8;++i){var _hb=vertices[i-1];var __4=vertices[i];_wq1(_ls1(_hb,__4)>_Fq1*_Fq1);}this._6u1=_q8+1;this._5u1=new Array(this._6u1);for(var i=0;i<_q8;++i)this._5u1[i]=vertices[i]._63();this._5u1[_q8]=this._5u1[0]._63();this._7u1._lQ(this._5u1[this._6u1-2]);this._8u1._lQ(this._5u1[1]);this._9u1=true;this._au1=true;},/// @param vertices an array of vertices, these are copied /// @param count the vertex count _du1:function(vertices,_q8){ _wq1(this._5u1==null&&this._6u1==0);_wq1(_q8>=2);for(var i=1;i<_q8;++i){var _hb=vertices[i-1];var __4=vertices[i];_wq1(_ls1(_hb,__4)>_Fq1*_Fq1);}this._6u1=_q8;this._5u1=new Array(_q8);for(var i=0;i<_q8;++i)this._5u1[i]=vertices[i]._63();this._9u1=false;this._au1=false;this._7u1._lr1();this._8u1._lr1();},_eu1:function(_fu1){this._7u1._lQ(_fu1);this._9u1=true;},_gu1:function(_hu1){this._8u1._lQ(_hu1);this._au1=true;},_63:function(){var shape=new _4u1();shape._6u1=this._6u1;shape._5u1=new Array(this._6u1); for(var i=0;i0){_ju1._St1=this._5u1[index-1];_ju1._Wt1=true;}else {_ju1._St1=this._7u1;_ju1._Wt1=this._9u1;}if(index_0b||(x==_0b&&_Nq[i].y<_Nq[_su1].y)){_su1=i;_0b=x;}}var hull=new Array(_Cq1);var _v6=0;var _tu1=_su1;for(;;){hull[_v6]=_tu1; var _uu1=0;for(__5=1;__5<_t6;++__5){if(_uu1==_tu1){_uu1=__5;continue;}var _e4=_kr1._rr1(_Nq[_uu1],_Nq[hull[_v6]]);var _Y4=_kr1._rr1(_Nq[__5],_Nq[hull[_v6]]);var c=_fs1(_e4,_Y4);if(c<0.0){_uu1=__5;}if(c==0.0&&_Y4._sr1()>_e4._sr1()){_uu1=__5;}}++_v6;_tu1=_uu1;if(_uu1==_su1){break;}}this._6u1=_v6;for(i=0;i<_v6;++i){this._5u1[i]=_Nq[hull[i]]._63();}for(i=0;i<_v6;++i){var _ku1=i;var _lu1=i+1<_v6?i+1:0;var _ju1=_kr1._rr1(this._5u1[_lu1],this._5u1[_ku1]);_wq1(_ju1._sr1()>_zq1*_zq1);this._ou1[i]=_gs1(_ju1,1.0)._63(); this._ou1[i]._tr1();}this._nu1=_mu1._vu1(this._5u1,_v6);},/// @param hx the half-width. /// @param hy the half-height. _pu1:function(_wu1,_xu1,_1t1,angle){this._6u1=4;this._5u1[0]=new _kr1(-_wu1,-_xu1);this._5u1[1]=new _kr1(_wu1,-_xu1);this._5u1[2]=new _kr1(_wu1,_xu1);this._5u1[3]=new _kr1(-_wu1,_xu1);this._ou1[0]=new _kr1(0.0,-1.0);this._ou1[1]=new _kr1(1.0,0.0);this._ou1[2]=new _kr1(0.0,1.0);this._ou1[3]=new _kr1(-1.0,0.0);if(!_1t1)return;this._nu1._lQ(_1t1);var _3s1=new _2s1();_3s1._gh=_1t1;_3s1.q.Set(angle); for(var i=0;i0.0){return false;}}return true;},_tt1:function(output,input,_3s1,_ut1){var _0v=_us1(_3s1.q,_kr1._rr1(input._0v,_3s1._gh));var _4t1=_us1(_3s1.q,_kr1._rr1(input._4t1,_3s1._gh));var _Bm=_kr1._rr1(_4t1,_0v); var _VX=0.0,_zu1=input._Kt1;var index=-1;for(var i=0;i0.0&&_Yt1<_zu1*_Zt1){_zu1=_Yt1/_Zt1;}}if(_zu1<_VX){return false;}}_wq1(0.0<=_VX&&_VX<=input._Kt1);if(index>=0){output._Lt1=_VX;output._Bt1=_ts1(_3s1.q,this._ou1[index]);return true;}return false;},/// @see b2Shape::ComputeAABB _vt1:function(_wt1, _3s1,_ut1){var __t1=(_3s1.q.c*this._5u1[0].x-_3s1.q._ni*this._5u1[0].y)+_3s1._gh.x;var _0u1=(_3s1.q._ni*this._5u1[0].x+_3s1.q.c*this._5u1[0].y)+_3s1._gh.y;var _1u1=__t1;var _2u1=_0u1;for(var i=1;i=3);var _1t1=new _kr1(0.0,0.0);var _Au1=0.0;var _ot1=0.0;var _ni=new _kr1(0.0,0.0);for(var i=0;i_zq1);_1t1.Multiply(1.0/_Au1);_yt1._1t1=_kr1._Gf(_1t1,_ni);_yt1._ot1=_p71*_ot1;_yt1._ot1+=_yt1._nt1*(_es1(_yt1._1t1,_yt1._1t1)-_es1(_1t1,_1t1));},_ge:function(){return this._6u1;},_Qt1:function(index){_wq1(0<=index&&indexmaxDistance){maxDistance=_sG;_Ou1=this._ou1[i];}}if(maxDistance>0){var _Pu1=_Ou1;var _Qu1=maxDistance*maxDistance;for(var i=0;i_Ru1){_Pu1=_At1;_Qu1=_Ru1;}}_Nu1[0]=_hr1(_Qu1);_Bt1._lQ(_ts1(_3s1.q,_Pu1));_Bt1._tr1();}else {_Nu1[0]=maxDistance;_Bt1._lQ(_ts1(_3s1.q,_Ou1));}},_xr1:function(out){var _Pg=out||{};this.parent.prototype._xr1.call(this,_Pg);_Pg['m_count']=this._6u1;_Pg['m_centroid']=this._nu1._xr1();_Pg['m_vertices']=[]; _Pg['m_normals']=[];for(var i=0;i=3);var c=new _kr1(); var _Au1=0.0;var _Tu1=new _kr1(0.0,0.0);var _Uu1=1.0/3.0;for(var i=0;i<_q8;++i){var _0v=_Tu1;var _4t1=_Su1[i];var _Vu1=i+1<_q8?_Su1[i+1]:_Su1[0];var _Cu1=_kr1._rr1(_4t1,_0v);var _Du1=_kr1._rr1(_Vu1,_0v);var _Eu1=_fs1(_Cu1,_Du1);var _Fu1=0.5*_Eu1;_Au1+=_Fu1;c._Gf(_kr1.Multiply(_Fu1,_kr1.Multiply(_Uu1,_kr1._Gf(_kr1._Gf(_0v,_4t1),_Vu1))));}_wq1(_Au1>_zq1);c.Multiply(1.0/_Au1);return c;};_mu1._2q1(_pt1);function _Wu1(){this._Xu1=0;this._Yu1=0;}function _Zu1(__u1,_0v1){if(__u1._Xu1==_0v1._Xu1){return __u1._Yu1-_0v1._Yu1; }return __u1._Xu1-_0v1._Xu1;}function _1v1(){this._2v1=new _3v1();this._4v1=0;this._5v1=0;this._6v1=0;this._7v1=[];this._8v1=0;this._9v1=[];}_1v1.prototype={_av1:function(_wt1,_bv1){var _cv1=this._2v1._av1(_wt1,_bv1);++this._5v1;this._dv1(_cv1);return _cv1;},_ev1:function(_cv1){this._fv1(_cv1);--this._5v1;this._2v1._ev1(_cv1);},_gv1:function(_cv1,_wt1,_hv1){var buffer=this._2v1._gv1(_cv1,_wt1,_hv1);if(buffer){this._dv1(_cv1);}},_iv1:function(_cv1){this._dv1(_cv1);},_jv1:function(_cv1){return this._2v1._jv1(_cv1); },_kv1:function(_cv1){return this._2v1._kv1(_cv1);},_H61:function(_Xu1,_Yu1){var _lv1=this._2v1._jv1(_Xu1);var _mv1=this._2v1._jv1(_Yu1);return _nv1(_lv1,_mv1);},_ov1:function(){return this._5v1;},_pv1:function(_hm1){this._6v1=0;this._7v1.length=0;for(var i=0;i_Kv1){_Jv1=i;_Kv1=value;}}return _Jv1;},_Pt1:function(_db,_eb){return this._5u1[this._Ot1(_db, _eb)];},_ge:function(){return this._6u1;},_Qt1:function(index){_wq1(0<=index&&index1){var _5w1=_p8._Mv1;var _6w1=this._7w1();if(_6w1<0.5*_5w1||2.0*_5w1<_6w1||_6w1<_zq1){this._6u1=0;}}if(this._6u1==0){var _Y4=vertices[0];_Y4._Nv1=0;_Y4._Ov1=0; var _3w1=_Qv1._Qt1(0);var _4w1=_Rv1._Qt1(0);_Y4._Zv1.x=(_Sv1.q.c*_3w1.x-_Sv1.q._ni*_3w1.y)+_Sv1._gh.x;_Y4._Zv1.y=(_Sv1.q._ni*_3w1.x+_Sv1.q.c*_3w1.y)+_Sv1._gh.y;_Y4.__v1.x=(_Tv1.q.c*_4w1.x-_Tv1.q._ni*_4w1.y)+_Tv1._gh.x;_Y4.__v1.y=(_Tv1.q._ni*_4w1.x+_Tv1.q.c*_4w1.y)+_Tv1._gh.y;_Y4.w.x=_Y4.__v1.x-_Y4._Zv1.x;_Y4.w.y=_Y4.__v1.y-_Y4._Zv1.y;_Y4._h4=1.0;this._6u1=1;}},_8w1:function(_p8){_p8._Mv1=this._7w1();_p8._q8=this._6u1;var vertices=this._1w1;for(var i=0;i0.0){_gh.x=-1.0*_bw1;_gh.y=1.0*_aw1;}else {_gh.x=1.0*_bw1;_gh.y=-1.0*_aw1;}}break;default :_wq1(false);_gh.x=_gh.y=0;break;}},_dw1:function(_gh){switch(this._6u1){case 1:_gh.x=this._1w1[0].w.x;_gh.y=this._1w1[0].w.y;break;case 2:_gh.x=(this._1w1[0]._h4*this._1w1[0].w.x)+(this._1w1[1]._h4*this._1w1[1].w.x); _gh.y=(this._1w1[0]._h4*this._1w1[0].w.y)+(this._1w1[1]._h4*this._1w1[1].w.y);break;case 3:_gh.x=_gh.y=0;break;default :_wq1(false);_gh.x=_gh.y=0;break;}},_ew1:function(_fw1,_gw1){switch(this._6u1){case 1:_fw1.x=this._1w1[0]._Zv1.x;_fw1.y=this._1w1[0]._Zv1.y;_gw1.x=this._1w1[0].__v1.x;_gw1.y=this._1w1[0].__v1.y;break;case 2:_fw1.x=(this._1w1[0]._h4*this._1w1[0]._Zv1.x)+(this._1w1[1]._h4*this._1w1[1]._Zv1.x);_fw1.y=(this._1w1[0]._h4*this._1w1[0]._Zv1.y)+(this._1w1[1]._h4*this._1w1[1]._Zv1.y);_gw1.x=(this._1w1[0]._h4*this._1w1[0].__v1.x)+(this._1w1[1]._h4*this._1w1[1].__v1.x); _gw1.y=(this._1w1[0]._h4*this._1w1[0].__v1.y)+(this._1w1[1]._h4*this._1w1[1].__v1.y);break;case 3:_fw1.x=(this._1w1[0]._h4*this._1w1[0]._Zv1.x)+(this._1w1[1]._h4*this._1w1[1]._Zv1.x)+(this._1w1[2]._h4*this._1w1[2]._Zv1.x);_fw1.y=(this._1w1[0]._h4*this._1w1[0]._Zv1.y)+(this._1w1[1]._h4*this._1w1[1]._Zv1.y)+(this._1w1[2]._h4*this._1w1[2]._Zv1.y);_gw1.x=_fw1.x;_gw1.y=_fw1.y;break;default :_wq1(false);break;}},_7w1:function(){switch(this._6u1){case 1:return 0.0;case 2:return _ks1(this._1w1[0].w,this._1w1[1].w); case 3:return(this._1w1[1].w.x-this._1w1[0].w.x)*(this._1w1[2].w.y-this._1w1[0].w.y)-(this._1w1[1].w.y-this._1w1[0].w.y)*(this._1w1[2].w.x-this._1w1[0].w.x);default :_wq1(false);return 0.0;}},_hw1:function(){var _iw1=this._1w1[0].w;var _jw1=this._1w1[1].w;var _aw1=_jw1.x-_iw1.x;var _bw1=_jw1.y-_iw1.y;var _kw1=-(_iw1.x*_aw1+_iw1.y*_bw1);if(_kw1<=0.0){this._1w1[0]._h4=1.0;this._6u1=1;return;}var _lw1=_jw1.x*_aw1+_jw1.y*_bw1;if(_lw1<=0.0){this._1w1[1]._h4=1.0;this._6u1=1;this._1w1[0]._lQ(this._1w1[1]);return; }var _mw1=1.0/(_lw1+_kw1);this._1w1[0]._h4=_lw1*_mw1;this._1w1[1]._h4=_kw1*_mw1;this._6u1=2;},_nw1:function(){var _iw1=this._1w1[0].w;var _jw1=this._1w1[1].w;var _ow1=this._1w1[2].w;var _aw1=_jw1.x-_iw1.x;var _bw1=_jw1.y-_iw1.y;var _pw1=_iw1.x*_aw1+_iw1.y*_bw1;var _qw1=_jw1.x*_aw1+_jw1.y*_bw1;var _lw1=_qw1;var _kw1=-_pw1;var _rw1=_ow1.x-_iw1.x;var _sw1=_ow1.y-_iw1.y;var _tw1=_iw1.x*_rw1+_iw1.y*_sw1;var _uw1=_ow1.x*_rw1+_ow1.y*_sw1;var _vw1=_uw1;var _ww1=-_tw1;var _xw1=_ow1.x-_jw1.x;var _yw1=_ow1.y-_jw1.y;var _zw1=_jw1.x*_xw1+_jw1.y*_yw1; var _Aw1=_ow1.x*_xw1+_ow1.y*_yw1;var _Bw1=_Aw1;var _Cw1=-_zw1;var _Dw1=_aw1*_sw1-_bw1*_rw1;var _Ew1=_Dw1*(_jw1.x*_ow1.y-_jw1.y*_ow1.x);var _Fw1=_Dw1*(_ow1.x*_iw1.y-_ow1.y*_iw1.x);var _Gw1=_Dw1*(_iw1.x*_jw1.y-_iw1.y*_jw1.x);if(_kw1<=0.0&&_ww1<=0.0){this._1w1[0]._h4=1.0;this._6u1=1;return;}if(_lw1>0.0&&_kw1>0.0&&_Gw1<=0.0){var _mw1=1.0/(_lw1+_kw1);this._1w1[0]._h4=_lw1*_mw1;this._1w1[1]._h4=_kw1*_mw1;this._6u1=2;return;}if(_vw1>0.0&&_ww1>0.0&&_Fw1<=0.0){var _Hw1=1.0/(_vw1+_ww1);this._1w1[0]._h4=_vw1*_Hw1;this._1w1[2]._h4=_ww1*_Hw1; this._6u1=2;this._1w1[1]._lQ(this._1w1[2]);return;}if(_lw1<=0.0&&_Cw1<=0.0){this._1w1[1]._h4=1.0;this._6u1=1;this._1w1[0]._lQ(this._1w1[1]);return;}if(_vw1<=0.0&&_Bw1<=0.0){this._1w1[2]._h4=1.0;this._6u1=1;this._1w1[0]._lQ(this._1w1[2]);return;}if(_Bw1>0.0&&_Cw1>0.0&&_Ew1<=0.0){var _Iw1=1.0/(_Bw1+_Cw1);this._1w1[1]._h4=_Bw1*_Iw1;this._1w1[2]._h4=_Cw1*_Iw1;this._6u1=2;this._1w1[0]._lQ(this._1w1[2]);return;}var _Jw1=1.0/(_Ew1+_Fw1+_Gw1);this._1w1[0]._h4=_Ew1*_Jw1;this._1w1[1]._h4=_Fw1*_Jw1;this._1w1[2]._h4=_Gw1*_Jw1; this._6u1=3;}};var _Kw1=new _0w1();var _Lw1=new _kr1();var _Mw1=new _kr1();function _Nw1(output,_p8,input){++_Nw1._Ow1;var _Qv1=input._Qv1;var _Rv1=input._Rv1;var _Sv1=input._Sv1;var _Tv1=input._Tv1;_Kw1._2w1(_p8,_Qv1,_Sv1,_Rv1,_Tv1);var vertices=_Kw1._1w1;var _Pw1=20;var _Qw1=[0,0,0],_Rw1=[0,0,0];var _Sw1=0;var _Tw1=_yq1;var _Uw1=_Tw1;var _Qh1=0;while(_Qh1<_Pw1){_Sw1=_Kw1._6u1;for(var i=0;i<_Sw1;++i){_Qw1[i]=vertices[i]._Nv1;_Rw1[i]=vertices[i]._Ov1;}switch(_Kw1._6u1){case 1:break;case 2:_Kw1._hw1();break;case 3:_Kw1._nw1(); break;default :_wq1(false);}if(_Kw1._6u1==3){break;}_Kw1._dw1(_Mw1);_Uw1=_Mw1._sr1();_Tw1=_Uw1;_Kw1._9w1(_Mw1);if(_Mw1._sr1()<_zq1*_zq1){break;}var _Vw1=vertices[_Kw1._6u1];_Vw1._Nv1=_Qv1._Ot1(_Sv1.q.c*-_Mw1.x+_Sv1.q._ni*-_Mw1.y,-_Sv1.q._ni*-_Mw1.x+_Sv1.q.c*-_Mw1.y);var _Ww1=_Qv1._Qt1(_Vw1._Nv1);_Vw1._Zv1.x=(_Sv1.q.c*_Ww1.x-_Sv1.q._ni*_Ww1.y)+_Sv1._gh.x;_Vw1._Zv1.y=(_Sv1.q._ni*_Ww1.x+_Sv1.q.c*_Ww1.y)+_Sv1._gh.y;_Vw1._Ov1=_Rv1._Ot1(_Tv1.q.c*_Mw1.x+_Tv1.q._ni*_Mw1.y,-_Tv1.q._ni*_Mw1.x+_Tv1.q.c*_Mw1.y); var _Xw1=_Rv1._Qt1(_Vw1._Ov1);_Vw1.__v1.x=(_Tv1.q.c*_Xw1.x-_Tv1.q._ni*_Xw1.y)+_Tv1._gh.x;_Vw1.__v1.y=(_Tv1.q._ni*_Xw1.x+_Tv1.q.c*_Xw1.y)+_Tv1._gh.y;_Vw1.w.x=_Vw1.__v1.x-_Vw1._Zv1.x;_Vw1.w.y=_Vw1.__v1.y-_Vw1._Zv1.y;++_Qh1;++_Nw1._Yw1;var _Zw1=false;for(var i=0;i<_Sw1;++i){if(_Vw1._Nv1==_Qw1[i]&&_Vw1._Ov1==_Rw1[i]){_Zw1=true;break;}}if(_Zw1){break;}++_Kw1._6u1;}_Nw1.__w1=_Is1(_Nw1.__w1,_Qh1);_Kw1._ew1(output._Wv1,output._Xv1);output._At1=_ks1(output._Wv1,output._Xv1);output.iterations=_Qh1;_Kw1._8w1(_p8); if(input._Uv1){var _0x1=_Qv1._qt1;var _1x1=_Rv1._qt1;if(output._At1>_0x1+_1x1&&output._At1>_zq1){output._At1-=_0x1+_1x1;_Lw1.x=output._Xv1.x-output._Wv1.x;_Lw1.y=output._Xv1.y-output._Wv1.y;_Lw1._tr1();output._Wv1.x+=(_0x1*_Lw1.x);output._Wv1.y+=(_0x1*_Lw1.y);output._Xv1.x-=(_1x1*_Lw1.x);output._Xv1.y-=(_1x1*_Lw1.y);}else {var _Bu=(0.5*(output._Wv1.x+output._Xv1.x));var _Cu=(0.5*(output._Wv1.y+output._Xv1.y));output._Wv1.x=_Bu;output._Wv1.y=_Cu;output._Xv1.x=_Bu;output._Xv1.y=_Cu;output._At1=0.0;}}}_Nw1._Ow1=0; _Nw1._Yw1=0;_Nw1.__w1=0;var _2x1=255;function _3x1(){}_3x1.prototype={_Nv1:0,_Ov1:0,_4x1:0,_5x1:0,_kK:function(){this._Nv1=this._Ov1=this._4x1=this._5x1=0;},_E5:function(){return this._Nv1|(this._Ov1<<8)|(this._4x1<<16)|(this._5x1<<24);},_lQ:function(_ml){this._Nv1=_ml._Nv1;this._Ov1=_ml._Ov1;this._4x1=_ml._4x1;this._5x1=_ml._5x1;}};_3x1._6x1=0;_3x1._7x1=1;function _8x1(){this._9x1=new _kr1();this._ax1=0;this._bx1=0;this.id=new _3x1();};_8x1.prototype={_63:function(){var _cx1=new _8x1();_cx1._9x1.x=this._9x1.x; _cx1._9x1.y=this._9x1.y;_cx1._ax1=this._ax1;_cx1._bx1=this._bx1;_cx1.id._lQ(this.id);return _cx1;}};function _dx1(){this.points=new Array(_Bq1);this._ex1=new _kr1();this._9x1=new _kr1();this.type=0;this._fx1=0;};_dx1.prototype={_63:function(){var _gx1=new _dx1();_gx1._fx1=this._fx1;_gx1.type=this.type;_gx1._9x1.x=this._9x1.x;_gx1._9x1.y=this._9x1.y;_gx1._ex1.x=this._ex1.x;_gx1._ex1.y=this._ex1.y;for(var i=0;i_zq1*_zq1){this._Bt1.x=_xx1-_vx1;this._Bt1.y=_yx1-_wx1;this._Bt1._tr1();}var _zx1=_vx1+(_sx1*this._Bt1.x);var _Ax1=_wx1+(_sx1*this._Bt1.y);var _Bx1=_xx1-(_ux1*this._Bt1.x);var _Cx1=_yx1-(_ux1*this._Bt1.y);this.points[0]=new _kr1(0.5*(_zx1+_Bx1), 0.5*(_Ax1+_Cx1));this._px1[0]=(_Bx1-_zx1)*this._Bt1.x+(_Cx1-_Ax1)*this._Bt1.y;}break;case _dx1._ix1:{this._Bt1.x=_rx1.q.c*_gx1._ex1.x-_rx1.q._ni*_gx1._ex1.y;this._Bt1.y=_rx1.q._ni*_gx1._ex1.x+_rx1.q.c*_gx1._ex1.y;var _Dx1=(_rx1.q.c*_gx1._9x1.x-_rx1.q._ni*_gx1._9x1.y)+_rx1._gh.x;var _Ex1=(_rx1.q._ni*_gx1._9x1.x+_rx1.q.c*_gx1._9x1.y)+_rx1._gh.y;for(var i=0;i<_gx1._fx1;++i){var _Fx1=(_tx1.q.c*_gx1.points[i]._9x1.x-_tx1.q._ni*_gx1.points[i]._9x1.y)+_tx1._gh.x;var _Gx1=(_tx1.q._ni*_gx1.points[i]._9x1.x+_tx1.q.c*_gx1.points[i]._9x1.y)+_tx1._gh.y; var _Bm=(_Fx1-_Dx1)*this._Bt1.x+(_Gx1-_Ex1)*this._Bt1.y;var _zx1=_Fx1+((_sx1-_Bm)*this._Bt1.x);var _Ax1=_Gx1+((_sx1-_Bm)*this._Bt1.y);var _Bx1=(_Fx1-(_ux1*this._Bt1.x));var _Cx1=(_Gx1-(_ux1*this._Bt1.y));this.points[i]=new _kr1(0.5*(_zx1+_Bx1),0.5*(_Ax1+_Cx1));this._px1[i]=(_Bx1-_zx1)*this._Bt1.x+(_Cx1-_Ax1)*this._Bt1.y;}}break;case _dx1._jx1:{this._Bt1.x=_tx1.q.c*_gx1._ex1.x-_tx1.q._ni*_gx1._ex1.y;this._Bt1.y=_tx1.q._ni*_gx1._ex1.x+_tx1.q.c*_gx1._ex1.y;var _Dx1=(_tx1.q.c*_gx1._9x1.x-_tx1.q._ni*_gx1._9x1.y)+_tx1._gh.x; var _Ex1=(_tx1.q._ni*_gx1._9x1.x+_tx1.q.c*_gx1._9x1.y)+_tx1._gh.y;for(var i=0;i<_gx1._fx1;++i){var _Fx1=(_rx1.q.c*_gx1.points[i]._9x1.x-_rx1.q._ni*_gx1.points[i]._9x1.y)+_rx1._gh.x;var _Gx1=(_rx1.q._ni*_gx1.points[i]._9x1.x+_rx1.q.c*_gx1.points[i]._9x1.y)+_rx1._gh.y;var _Bm=(_Fx1-_Dx1)*this._Bt1.x+(_Gx1-_Ex1)*this._Bt1.y;var _Bx1=_Fx1+((_ux1-_Bm)*this._Bt1.x);var _Cx1=_Gx1+((_ux1-_Bm)*this._Bt1.y);var _zx1=(_Fx1-(_sx1*this._Bt1.x));var _Ax1=(_Gx1-(_sx1*this._Bt1.y));this.points[i]=new _kr1(0.5*(_zx1+_Bx1), 0.5*(_Ax1+_Cx1));this._px1[i]=(_zx1-_Bx1)*this._Bt1.x+(_Ax1-_Cx1)*this._Bt1.y;}this._Bt1.x=-this._Bt1.x;this._Bt1.y=-this._Bt1.y;}break;}}};function _Hx1(_Ix1,_Jx1,_Kx1,_Lx1){for(var i=0;i<_Bq1;++i){_Ix1[i]=_dx1._kx1;_Jx1[i]=_dx1._kx1;}for(var i=0;i<_Kx1._fx1;++i){var id=_Kx1.points[i].id;_Ix1[i]=_dx1._nx1;for(var __5=0;__5<_Lx1._fx1;++__5){if(_Lx1.points[__5].id._E5()==id._E5()){_Ix1[i]=_dx1._mx1;break;}}}for(var i=0;i<_Lx1._fx1;++i){var id=_Lx1.points[i].id;_Jx1[i]=_dx1._lx1;for(var __5=0;__5<_Kx1._fx1; ++__5){if(_Kx1.points[__5].id._E5()==id._E5()){_Jx1[i]=_dx1._mx1;break;}}}}function _Mx1(){this._Y4=new _kr1();this.id=new _3x1();};function _Nx1(){this._0v=new _kr1(),this._4t1=new _kr1();this._Kt1=0;};function _Ox1(){this._Bt1=new _kr1();this._Lt1=0;};function _Px1(){this._Mt1=new _kr1();this._Nt1=new _kr1();}_Px1.prototype={_lQ:function(other){this._Mt1.x=other._Mt1.x;this._Mt1.y=other._Mt1.y;this._Nt1.x=other._Nt1.x;this._Nt1.y=other._Nt1.y;},_63:function(){var _Qx1=new _Px1();_Qx1._Mt1.x=this._Mt1.x;_Qx1._Mt1.y=this._Mt1.y; _Qx1._Nt1.x=this._Nt1.x;_Qx1._Nt1.y=this._Nt1.y;return _Qx1;},_vr1:function(){return(this._Nt1.x-this._Mt1.x)>=0.0&&(this._Nt1.y-this._Mt1.y)>=0.0&&this._Mt1._vr1()&&this._Nt1._vr1();},_Rx1:function(){return new _kr1(0.5*(this._Mt1.x+this._Nt1.x),0.5*(this._Mt1.y+this._Nt1.y));},_Sx1:function(){return new _kr1(0.5*(this._Nt1.x-this._Mt1.x),0.5*(this._Nt1.y-this._Mt1.y));},_Tx1:function(){return 2.0*((this._Nt1.x-this._Mt1.x)+(this._Nt1.y-this._Mt1.y));},_Ux1:function(_Vx1,_Wx1){if(_Wx1){this._Mt1.x=_Gs1(_Vx1._Mt1.x, _Wx1._Mt1.x);this._Mt1.y=_Gs1(_Vx1._Mt1.y,_Wx1._Mt1.y);this._Nt1.x=_Is1(_Vx1._Nt1.x,_Wx1._Nt1.x);this._Nt1.y=_Is1(_Vx1._Nt1.y,_Wx1._Nt1.y);}else {this._Mt1.x=_Gs1(this._Mt1.x,_Vx1._Mt1.x);this._Mt1.y=_Gs1(this._Mt1.y,_Vx1._Mt1.y);this._Nt1.x=_Is1(this._Nt1.x,_Vx1._Nt1.x);this._Nt1.y=_Is1(this._Nt1.y,_Vx1._Nt1.y);}},_Xx1:function(_wt1){return this._Mt1.x<=_wt1._Mt1.x&&this._Mt1.y<=_wt1._Mt1.y&&_wt1._Nt1.x<=this._Nt1.x&&_wt1._Nt1.y<=this._Nt1.y;},_tt1:function(output,input){var _Yx1=-_yq1;var _Zx1=_yq1; var _gh=input._0v;var _Bm=_kr1._rr1(input._4t1,input._0v);var __x1=_Es1(_Bm);var _Bt1=new _kr1();for(var i=0;i<2;++i){if(__x1._pr1(i)<_zq1){if(_gh._pr1(i)_2y1){var _jL=_2y1;_2y1=_1y1;_1y1=_jL;_ni=1.0;}if(_1y1>_Yx1){_Bt1.x=_Bt1.y=0;_Bt1._qr1(i,_ni);_Yx1=_1y1;}_Zx1=_Gs1(_Zx1,_2y1);if(_Yx1>_Zx1){return false; }}}if(_Yx1<0.0||input._Kt1<_Yx1){return false;}output._Lt1=_Yx1;output._Bt1.x=_Bt1.x;output._Bt1.y=_Bt1.y;return true;}};function _3y1(_gx1,_4y1,_rx1,_5y1,_tx1){_gx1._fx1=0;var _fw1=_vs1(_rx1,_4y1._It1);var _gw1=_vs1(_tx1,_5y1._It1);var _db=_gw1.x-_fw1.x;var _eb=_gw1.y-_fw1.y;var _6y1=_db*_db+_eb*_eb;var _0x1=_4y1._qt1,_1x1=_5y1._qt1;var _T61=_0x1+_1x1;if(_6y1>_T61*_T61){return;}_gx1.type=_dx1._hx1;_gx1._9x1.x=_4y1._It1.x;_gx1._9x1.y=_4y1._It1.y;_gx1._ex1.x=_gx1._ex1.y=0;_gx1._fx1=1;_gx1.points[0]=new _8x1(); _gx1.points[0]._9x1.x=_5y1._It1.x;_gx1.points[0]._9x1.y=_5y1._It1.y;_gx1.points[0].id._kK();}function _7y1(_gx1,_8y1,_rx1,_5y1,_tx1){_gx1._fx1=0;var c=_vs1(_tx1,_5y1._It1);var _9y1=_xs1(_rx1,c);var _ay1=0;var _by1=-_yq1;var _T61=_8y1._qt1+_5y1._qt1;var vertexCount=_8y1._6u1;var vertices=_8y1._5u1;var _cy1=_8y1._ou1;for(var i=0;i_T61){return;}if(_ni>_by1){_by1=_ni;_ay1=i;}}var _dy1=_ay1;var _ey1=_dy1+1_T61*_T61){return; }_gx1._fx1=1;_gx1.type=_dx1._ix1;_gx1._ex1.x=_9y1.x-_hb.x;_gx1._ex1.y=_9y1.y-_hb.y;_gx1._ex1._tr1();_gx1._9x1.x=_hb.x;_gx1._9x1.y=_hb.y;_gx1.points[0]=new _8x1();_gx1.points[0]._9x1.x=_5y1._It1.x;_gx1.points[0]._9x1.y=_5y1._It1.y;_gx1.points[0].id._kK();}else if(_Z4<=0.0){if(_ls1(_9y1,__4)>_T61*_T61){return;}_gx1._fx1=1;_gx1.type=_dx1._ix1;_gx1._ex1.x=_9y1.x-__4.x;_gx1._ex1.y=_9y1.y-__4.y;_gx1._ex1._tr1();_gx1._9x1.x=__4.x;_gx1._9x1.y=__4.y;_gx1.points[0]=new _8x1();_gx1.points[0]._9x1.x=_5y1._It1.x; _gx1.points[0]._9x1.y=_5y1._It1.y;_gx1.points[0].id._kK();}else {var _gy1=0.5*(_hb.x+__4.x);var _hy1=0.5*(_hb.y+__4.y);var _iy1=(_9y1.x-_gy1)*_cy1[_dy1].x+(_9y1.y-_hy1)*_cy1[_dy1].y;if(_iy1>_T61){return;}_gx1._fx1=1;_gx1.type=_dx1._ix1;_gx1._ex1.x=_cy1[_dy1].x;_gx1._ex1.y=_cy1[_dy1].y;_gx1._9x1.x=_gy1;_gx1._9x1.y=_hy1;_gx1.points[0]=new _8x1();_gx1.points[0]._9x1.x=_5y1._It1.x;_gx1.points[0]._9x1.y=_5y1._It1.y;_gx1.points[0].id._kK();}}function _jy1(_ky1,_ly1,_my1,_ny1,_oy1){var _py1=_ly1._6u1;var _qy1=_ny1._6u1; var _ry1=_ly1._ou1;var _sy1=_ly1._5u1;var _ty1=_ny1._5u1;var _3s1=_As1(_oy1,_my1);var _Jv1=0;var _uy1=-_yq1;for(var i=0;i<_py1;++i){var _Vb=_3s1.q.c*_ry1[i].x-_3s1.q._ni*_ry1[i].y;var _Wb=_3s1.q._ni*_ry1[i].x+_3s1.q.c*_ry1[i].y;var _sb=(_3s1.q.c*_sy1[i].x-_3s1.q._ni*_sy1[i].y)+_3s1._gh.x;var _tb=(_3s1.q._ni*_sy1[i].x+_3s1.q.c*_sy1[i].y)+_3s1._gh.y;var _Qj=_yq1;for(var __5=0;__5<_qy1;++__5){var _vy1=_Vb*(_ty1[__5].x-_sb)+_Wb*(_ty1[__5].y-_tb);if(_vy1<_Qj){_Qj=_vy1;}}if(_Qj>_uy1){_uy1=_Qj;_Jv1=i;}}_ky1[0]=_Jv1; return _uy1;}function _wy1(c,_ly1,_my1,_xy1,_ny1,_oy1){var _yy1=_ly1._ou1;var _qy1=_ny1._6u1;var _zy1=_ny1._5u1;var _Ay1=_ny1._ou1;_wq1(0<=_xy1&&_xy1<_ly1._6u1);var _By1=_my1.q.c*_yy1[_xy1].x-_my1.q._ni*_yy1[_xy1].y;var _Cy1=_my1.q._ni*_yy1[_xy1].x+_my1.q.c*_yy1[_xy1].y;var _Dy1=_oy1.q.c*_By1+_oy1.q._ni*_Cy1;var _Ey1=-_oy1.q._ni*_By1+_oy1.q.c*_Cy1;var index=0;var _Fy1=_yq1;for(var i=0;i<_qy1;++i){var _sG=_Dy1*_Ay1[i].x+_Ey1*_Ay1[i].y;if(_sG<_Fy1){_Fy1=_sG;index=i;}}var _ku1=index;var _lu1=_ku1+1<_qy1?_ku1+1:0;c[0]._Y4.x=(_oy1.q.c*_zy1[_ku1].x-_oy1.q._ni*_zy1[_ku1].y)+_oy1._gh.x; c[0]._Y4.y=(_oy1.q._ni*_zy1[_ku1].x+_oy1.q.c*_zy1[_ku1].y)+_oy1._gh.y;c[0].id._Nv1=_xy1;c[0].id._Ov1=_ku1;c[0].id._4x1=_3x1._7x1;c[0].id._5x1=_3x1._6x1;c[1]._Y4.x=(_oy1.q.c*_zy1[_lu1].x-_oy1.q._ni*_zy1[_lu1].y)+_oy1._gh.x;c[1]._Y4.y=(_oy1.q._ni*_zy1[_lu1].x+_oy1.q.c*_zy1[_lu1].y)+_oy1._gh.y;c[1].id._Nv1=_xy1;c[1].id._Ov1=_lu1;c[1].id._4x1=_3x1._7x1;c[1].id._5x1=_3x1._6x1;}function _Gy1(_gx1,_Hy1,_rx1,_Iy1,_tx1){_gx1._fx1=0;var _Jy1=_Hy1._qt1+_Iy1._qt1;var _Ky1=[0];var _Ly1=_jy1(_Ky1,_Hy1,_rx1,_Iy1,_tx1); if(_Ly1>_Jy1)return;var _My1=[0];var _Ny1=_jy1(_My1,_Iy1,_tx1,_Hy1,_rx1);if(_Ny1>_Jy1)return;var _ly1;var _ny1;var _my1,_oy1;var _xy1=0;var _yW=0;var _Oy1=0.1*_Fq1;if(_Ny1>_Ly1+_Oy1){_ly1=_Iy1;_ny1=_Hy1;_my1=_tx1;_oy1=_rx1;_xy1=_My1[0];_gx1.type=_dx1._jx1;_yW=1;}else {_ly1=_Hy1;_ny1=_Iy1;_my1=_rx1;_oy1=_tx1;_xy1=_Ky1[0];_gx1.type=_dx1._ix1;_yW=0;}_wy1(_Gy1._Py1,_ly1,_my1,_xy1,_ny1,_oy1);var _py1=_ly1._6u1;var _Qy1=_ly1._5u1;var _Ry1=_xy1;var _Sy1=_xy1+1<_py1?_xy1+1:0;var _Ty1=_Qy1[_Ry1];var _Uy1=_Qy1[_Sy1];_Gy1._Vy1.x=_Uy1.x-_Ty1.x; _Gy1._Vy1.y=_Uy1.y-_Ty1.y;_Gy1._Vy1._tr1();var _Wy1=1.0*_Gy1._Vy1.y;var _Xy1=-1.0*_Gy1._Vy1.x;var _Dx1=0.5*(_Ty1.x+_Uy1.x);var _Ex1=0.5*(_Ty1.y+_Uy1.y);var _Yy1=_my1.q.c*_Gy1._Vy1.x-_my1.q._ni*_Gy1._Vy1.y;var _Zy1=_my1.q._ni*_Gy1._Vy1.x+_my1.q.c*_Gy1._Vy1.y;var __y1=1.0*_Zy1;var _0z1=-1.0*_Yy1;_Ty1=_vs1(_my1,_Ty1);_Uy1=_vs1(_my1,_Uy1);var _1z1=__y1*_Ty1.x+_0z1*_Ty1.y;var _2z1=-(_Yy1*_Ty1.x+_Zy1*_Ty1.y)+_Jy1;var _3z1=(_Yy1*_Uy1.x+_Zy1*_Uy1.y)+_Jy1;var _4z1=new Array(2);var _5z1=new Array(2);var _6z1;_6z1=_7z1(_4z1, _Gy1._Py1,-_Yy1,-_Zy1,_2z1,_Ry1);if(_6z1<2)return;_6z1=_7z1(_5z1,_4z1,_Yy1,_Zy1,_3z1,_Sy1);if(_6z1<2){return;}_gx1._ex1.x=_Wy1;_gx1._ex1.y=_Xy1;_gx1._9x1.x=_Dx1;_gx1._9x1.y=_Ex1;var _fx1=0;for(var i=0;i<_Bq1;++i){var _by1=(__y1*_5z1[i]._Y4.x+_0z1*_5z1[i]._Y4.y)-_1z1;if(_by1<=_Jy1){var _8z1=_gx1.points[_fx1]=new _8x1();_8z1._9x1._lQ(_xs1(_oy1,_5z1[i]._Y4));_8z1.id._lQ(_5z1[i].id);if(_yW){var _9z1=new _3x1();_9z1._lQ(_8z1.id);_8z1.id._Nv1=_9z1._Ov1;_8z1.id._Ov1=_9z1._Nv1;_8z1.id._4x1=_9z1._5x1;_8z1.id._5x1=_9z1._4x1; }++_fx1;}}_gx1._fx1=_fx1;}_Gy1._Vy1=new _kr1();_Gy1._Py1=[new _Mx1(),new _Mx1()];function _az1(_gx1,_Ky1,_rx1,_5y1,_tx1){_gx1._fx1=0;var _bz1=_xs1(_rx1,_vs1(_tx1,_5y1._It1));var _xq1=_Ky1._Tt1,_Fr1=_Ky1._Ut1;var _bk=_Fr1.x-_xq1.x;var _OM=_Fr1.y-_xq1.y;var _X4=_bk*(_Fr1.x-_bz1.x)+_OM*(_Fr1.y-_bz1.y);var _Y4=_bk*(_bz1.x-_xq1.x)+_OM*(_bz1.y-_xq1.y);var _T61=_Ky1._qt1+_5y1._qt1;var _9z1=new _3x1();_9z1._Ov1=0;_9z1._5x1=_3x1._6x1;if(_Y4<=0.0){var _cz1=_xq1;var _db=_bz1.x-_cz1.x;var _eb=_bz1.y-_cz1.y;var _2M=_db*_db+_eb*_eb; if(_2M>_T61*_T61){return;}if(_Ky1._Wt1){var _dz1=_Ky1._St1;var _ez1=_xq1;var _fz1=_ez1.x-_dz1.x;var _gz1=_ez1.y-_dz1.y;var _fy1=_fz1*(_ez1.x-_bz1.x)+_gz1*(_ez1.y-_bz1.y);if(_fy1>0.0){return;}}_9z1._Nv1=0;_9z1._4x1=_3x1._6x1;_gx1._fx1=1;_gx1.type=_dx1._hx1;_gx1._ex1.x=_gx1._ex1.y=0;_gx1._9x1.x=_cz1.x;_gx1._9x1.y=_cz1.y;_gx1.points[0]=new _8x1();_gx1.points[0].id._lQ(_9z1);_gx1.points[0]._9x1.x=_5y1._It1.x;_gx1.points[0]._9x1.y=_5y1._It1.y;return;}if(_X4<=0.0){var _cz1=_Fr1;var _db=_bz1.x-_cz1.x;var _eb=_bz1.y-_cz1.y; var _2M=_db*_db+_eb*_eb;if(_2M>_T61*_T61){return;}if(_Ky1._Xt1){var _hz1=_Ky1._Vt1;var _iz1=_Fr1;var _jz1=_hz1.x-_iz1.x;var _kz1=_hz1.y-_iz1.y;var __4=_jz1*(_bz1.x-_iz1.x)+_kz1*(_bz1.y-_iz1.y);if(__4>0.0){return;}}_9z1._Nv1=1;_9z1._4x1=_3x1._6x1;_gx1._fx1=1;_gx1.type=_dx1._hx1;_gx1._ex1.x=_gx1._ex1.y=0;_gx1._9x1.x=_cz1.x;_gx1._9x1.y=_cz1.y;_gx1.points[0]=new _8x1();_gx1.points[0].id._lQ(_9z1);_gx1.points[0]._9x1.x=_5y1._It1.x;_gx1.points[0]._9x1.y=_5y1._It1.y;return;}var _lz1=_bk*_bk+_OM*_OM;_wq1(_lz1>0.0); var _mz1=(1.0/_lz1)*((_X4*_xq1.x)+(_Y4*_Fr1.x));var _nz1=(1.0/_lz1)*((_X4*_xq1.y)+(_Y4*_Fr1.y));var _db=_bz1.x-_mz1;var _eb=_bz1.y-_nz1;var _2M=_db*_db+_eb*_eb;if(_2M>_T61*_T61){return;}var _Vb=-_OM;var _Wb=_bk;if(_Vb*(_bz1.x-_xq1.x)+_Wb*(_bz1.y-_xq1.y)<0.0){_Vb=-_Vb;_Wb=-_Wb;}_9z1._Nv1=0;_9z1._4x1=_3x1._7x1;_gx1._fx1=1;_gx1.type=_dx1._ix1;_gx1._ex1.x=_Vb;_gx1._ex1.y=_Wb;_gx1._ex1._tr1();_gx1._9x1.x=_xq1.x;_gx1._9x1.y=_xq1.y;_gx1.points[0]=new _8x1();_gx1.points[0].id._lQ(_9z1);_gx1.points[0]._9x1.x=_5y1._It1.x; _gx1.points[0]._9x1.y=_5y1._It1.y;}function _oz1(){this.type=0;this.index=0;this._by1=0;}_oz1._pz1=0;_oz1._qz1=1;_oz1._rz1=2;function _sz1(){this.vertices=new Array(_Cq1);this._cy1=new Array(_Cq1);this._q8=0;};function _tz1(){this._ku1=0,this._lu1=0;this._hb=new _kr1(),this.__4=new _kr1();this._Bt1=new _kr1();this._uz1=new _kr1();this._2z1=0;this._vz1=new _kr1();this._3z1=0;};function _wz1(){this._xz1=new _sz1();this._yz1=new _2s1();this._zz1=new _kr1();this._Az1=new _kr1(),this._Bz1=new _kr1(),this._Cz1=new _kr1(), this._Dz1=new _kr1();this._Ez1=new _kr1(),this._Fz1=new _kr1(),this._Gz1=new _kr1();this._Hz1=new _kr1();this._Iz1=0,this._Jz1=0;this._Kz1=new _kr1(),this._Lz1=new _kr1();this._qt1=0;this._Mz1=false;}_wz1._Nz1=new _kr1();_wz1._Oz1=new _kr1();_wz1._Pz1=new _kr1();_wz1.prototype={_Qz1:function(_gx1,_Ky1,_rx1,_Rz1,_tx1){this._yz1._lQ(_As1(_rx1,_tx1));this._zz1.x=(this._yz1.q.c*_Rz1._nu1.x-this._yz1.q._ni*_Rz1._nu1.y)+this._yz1._gh.x;this._zz1.y=(this._yz1.q._ni*_Rz1._nu1.x+this._yz1.q.c*_Rz1._nu1.y)+this._yz1._gh.y; this._Az1.x=_Ky1._St1.x;this._Az1.y=_Ky1._St1.y;this._Bz1.x=_Ky1._Tt1.x;this._Bz1.y=_Ky1._Tt1.y;this._Cz1.x=_Ky1._Ut1.x;this._Cz1.y=_Ky1._Ut1.y;this._Dz1.x=_Ky1._Vt1.x;this._Dz1.y=_Ky1._Vt1.y;var _Sz1=_Ky1._Wt1;var _Tz1=_Ky1._Xt1;_wz1._Nz1.x=this._Cz1.x-this._Bz1.x;_wz1._Nz1.y=this._Cz1.y-this._Bz1.y;_wz1._Nz1._tr1();this._Fz1.x=_wz1._Nz1.y;this._Fz1.y=-_wz1._Nz1.x;var _Uz1=this._Fz1.x*(this._zz1.x-this._Bz1.x)+this._Fz1.y*(this._zz1.y-this._Bz1.y);var _Vz1=0.0,_Wz1=0.0;var _Xz1=false,_Yz1=false;if(_Sz1){ _wz1._Oz1.x=this._Bz1.x-this._Az1.x;_wz1._Oz1.y=this._Bz1.y-this._Az1.y;_wz1._Oz1._tr1();this._Ez1.x=_wz1._Oz1.y;this._Ez1.y=-_wz1._Oz1.x;_Xz1=(_wz1._Oz1.x*_wz1._Nz1.y-_wz1._Oz1.y*_wz1._Nz1.x)>=0;_Vz1=this._Ez1.x*(this._zz1.x-this._Az1.x)+this._Ez1.y*(this._zz1.y-this._Az1.y);}if(_Tz1){_wz1._Pz1.x=this._Dz1.x-this._Cz1.x;_wz1._Pz1.y=this._Dz1.y-this._Cz1.y;_wz1._Pz1._tr1();this._Gz1.x=_wz1._Pz1.y;this._Gz1.y=-_wz1._Pz1.x;_Yz1=(_wz1._Nz1.x*_wz1._Pz1.y-_wz1._Nz1.y*_wz1._Pz1.x)>0.0;_Wz1=this._Gz1.x*(this._zz1.x-this._Cz1.x)+this._Gz1.y*(this._zz1.y-this._Cz1.y); }if(_Sz1&&_Tz1){if(_Xz1&&_Yz1){this._Mz1=_Vz1>=0.0||_Uz1>=0.0||_Wz1>=0.0;if(this._Mz1){this._Hz1.x=this._Fz1.x;this._Hz1.y=this._Fz1.y;this._Kz1.x=this._Ez1.x;this._Kz1.y=this._Ez1.y;this._Lz1.x=this._Gz1.x;this._Lz1.y=this._Gz1.y;}else {this._Hz1.x=-this._Fz1.x;this._Hz1.y=-this._Fz1.y;this._Kz1.x=-this._Fz1.x;this._Kz1.y=-this._Fz1.y;this._Lz1.x=-this._Fz1.x;this._Lz1.y=-this._Fz1.y;}}else if(_Xz1){this._Mz1=_Vz1>=0.0||(_Uz1>=0.0&&_Wz1>=0.0);if(this._Mz1){this._Hz1.x=this._Fz1.x;this._Hz1.y=this._Fz1.y; this._Kz1.x=this._Ez1.x;this._Kz1.y=this._Ez1.y;this._Lz1.x=this._Fz1.x;this._Lz1.y=this._Fz1.y;}else {this._Hz1.x=-this._Fz1.x;this._Hz1.y=-this._Fz1.y;this._Kz1.x=-this._Gz1.x;this._Kz1.y=-this._Gz1.y;this._Lz1.x=-this._Fz1.x;this._Lz1.y=-this._Fz1.y;}}else if(_Yz1){this._Mz1=_Wz1>=0.0||(_Vz1>=0.0&&_Uz1>=0.0);if(this._Mz1){this._Hz1.x=this._Fz1.x;this._Hz1.y=this._Fz1.y;this._Kz1.x=this._Fz1.x;this._Kz1.y=this._Fz1.y;this._Lz1.x=this._Gz1.x;this._Lz1.y=this._Gz1.y;}else {this._Hz1.x=-this._Fz1.x; this._Hz1.y=-this._Fz1.y;this._Kz1.x=-this._Fz1.x;this._Kz1.y=-this._Fz1.y;this._Lz1.x=-this._Ez1.x;this._Lz1.y=-this._Ez1.y;}}else {this._Mz1=_Vz1>=0.0&&_Uz1>=0.0&&_Wz1>=0.0;if(this._Mz1){this._Hz1.x=this._Fz1.x;this._Hz1.y=this._Fz1.y;this._Kz1.x=this._Fz1.x;this._Kz1.y=this._Fz1.y;this._Lz1.x=this._Fz1.x;this._Lz1.y=this._Fz1.y;}else {this._Hz1.x=-this._Fz1.x;this._Hz1.y=-this._Fz1.y;this._Kz1.x=-this._Gz1.x;this._Kz1.y=-this._Gz1.y;this._Lz1.x=-this._Ez1.x;this._Lz1.y=-this._Ez1.y;}}}else if(_Sz1){ if(_Xz1){this._Mz1=_Vz1>=0.0||_Uz1>=0.0;if(this._Mz1){this._Hz1.x=this._Fz1.x;this._Hz1.y=this._Fz1.y;this._Kz1.x=this._Ez1.x;this._Kz1.y=this._Ez1.y;this._Lz1.x=-this._Fz1.x;this._Lz1.y=-this._Fz1.y;}else {this._Hz1.x=-this._Fz1.x;this._Hz1.y=-this._Fz1.y;this._Kz1.x=this._Fz1.x;this._Kz1.y=this._Fz1.y;this._Lz1.x=-this._Fz1.x;this._Lz1.y=-this._Fz1.y;}}else {this._Mz1=_Vz1>=0.0&&_Uz1>=0.0;if(this._Mz1){this._Hz1.x=this._Fz1.x;this._Hz1.y=this._Fz1.y;this._Kz1.x=this._Fz1.x;this._Kz1.y=this._Fz1.y; this._Lz1.x=-this._Fz1.x;this._Lz1.y=-this._Fz1.y;}else {this._Hz1.x=-this._Fz1.x;this._Hz1.y=-this._Fz1.y;this._Kz1.x=this._Fz1.x;this._Kz1.y=this._Fz1.y;this._Lz1.x=-this._Ez1.x;this._Lz1.y=-this._Ez1.y;}}}else if(_Tz1){if(_Yz1){this._Mz1=_Uz1>=0.0||_Wz1>=0.0;if(this._Mz1){this._Hz1.x=this._Fz1.x;this._Hz1.y=this._Fz1.y;this._Kz1.x=-this._Fz1.x;this._Kz1.y=-this._Fz1.y;this._Lz1.x=this._Gz1.x;this._Lz1.y=this._Gz1.y;}else {this._Hz1.x=-this._Fz1.x;this._Hz1.y=-this._Fz1.y;this._Kz1.x=-this._Fz1.x; this._Kz1.y=-this._Fz1.y;this._Lz1.x=this._Fz1.x;this._Lz1.y=this._Fz1.y;}}else {this._Mz1=_Uz1>=0.0&&_Wz1>=0.0;if(this._Mz1){this._Hz1.x=this._Fz1.x;this._Hz1.y=this._Fz1.y;this._Kz1.x=-this._Fz1.x;this._Kz1.y=-this._Fz1.y;this._Lz1.x=this._Fz1.x;this._Lz1.y=this._Fz1.y;}else {this._Hz1.x=-this._Fz1.x;this._Hz1.y=-this._Fz1.y;this._Kz1.x=-this._Gz1.x;this._Kz1.y=-this._Gz1.y;this._Lz1.x=this._Fz1.x;this._Lz1.y=this._Fz1.y;}}}else {this._Mz1=_Uz1>=0.0;if(this._Mz1){this._Hz1.x=this._Fz1.x;this._Hz1.y=this._Fz1.y; this._Kz1.x=-this._Fz1.x;this._Kz1.y=-this._Fz1.y;this._Lz1.x=-this._Fz1.x;this._Lz1.y=-this._Fz1.y;}else {this._Hz1.x=-this._Fz1.x;this._Hz1.y=-this._Fz1.y;this._Kz1.x=this._Fz1.x;this._Kz1.y=this._Fz1.y;this._Lz1.x=this._Fz1.x;this._Lz1.y=this._Fz1.y;}}this._xz1._q8=_Rz1._6u1;for(var i=0;i<_Rz1._6u1;++i){this._xz1.vertices[i]=_vs1(this._yz1,_Rz1._5u1[i]);this._xz1._cy1[i]=_ts1(this._yz1.q,_Rz1._ou1[i]);}this._qt1=2.0*_Hq1;_gx1._fx1=0;var _Zz1=this.__z1();if(_Zz1.type==_oz1._pz1){return;}if(_Zz1._by1>this._qt1){ return;}var _0A1=this._1A1();if(_0A1.type!=_oz1._pz1&&_0A1._by1>this._qt1){return;}var _2A1=0.98;var _3A1=0.001;var _4A1=new _oz1();if(_0A1.type==_oz1._pz1){_4A1=_Zz1;}else if(_0A1._by1>_2A1*_Zz1._by1+_3A1){_4A1=_0A1;}else {_4A1=_Zz1;}var _uu1=new Array(2);var _5A1=new _tz1();if(_4A1.type==_oz1._qz1){_gx1.type=_dx1._ix1;var _Jv1=0;var _Kv1=this._Hz1.x*this._xz1._cy1[0].x+this._Hz1.y*this._xz1._cy1[0].y;for(var i=1;ithis._qt1){_1v.type=_oz1._rz1;_1v.index=i;_1v._by1=_ni;return _1v;}if(_Vb*_6A1+_Wb*_7A1>=0.0){if((_Vb-this._Lz1.x)*this._Hz1.x+(_Wb-this._Lz1.y)*this._Hz1.y<-_Gq1){continue;}}else {if((_Vb-this._Kz1.x)*this._Hz1.x+(_Wb-this._Kz1.y)*this._Hz1.y<-_Gq1){continue;}}if(_ni>_1v._by1){ _1v.type=_oz1._rz1;_1v.index=i;_1v._by1=_ni;}}return _1v;}};_wz1._8A1=0;_wz1._9A1=1;_wz1._aA1=2;function _bA1(_gx1,_Ky1,_rx1,_Rz1,_tx1){_bA1._cA1._Qz1(_gx1,_Ky1,_rx1,_Rz1,_tx1);}_bA1._cA1=new _wz1();function _7z1(_dA1,_eA1,__y1,_0z1,offset,_fA1){var _gA1=0;var _hA1=(__y1*_eA1[0]._Y4.x+_0z1*_eA1[0]._Y4.y)-offset;var _iA1=(__y1*_eA1[1]._Y4.x+_0z1*_eA1[1]._Y4.y)-offset;if(_hA1<=0.0)_dA1[_gA1++]=_eA1[0];if(_iA1<=0.0)_dA1[_gA1++]=_eA1[1];if(_hA1*_iA1<0.0){var _jA1=_hA1/(_hA1-_iA1);_dA1[_gA1]=new _Mx1();_dA1[_gA1]._Y4.x=_eA1[0]._Y4.x+(_jA1*(_eA1[1]._Y4.x-_eA1[0]._Y4.x)); _dA1[_gA1]._Y4.y=_eA1[0]._Y4.y+(_jA1*(_eA1[1]._Y4.y-_eA1[0]._Y4.y));_dA1[_gA1].id._Nv1=_fA1;_dA1[_gA1].id._Ov1=_eA1[0].id._Ov1;_dA1[_gA1].id._4x1=_3x1._6x1;_dA1[_gA1].id._5x1=_3x1._7x1;++_gA1;}return _gA1;}function _kA1(_lA1,_Nv1,_mA1,_Ov1,_rx1,_tx1){_kA1.input._Qv1.Set(_lA1,_Nv1);_kA1.input._Rv1.Set(_mA1,_Ov1);_kA1.input._Sv1=_rx1;_kA1.input._Tv1=_tx1;_kA1.input._Uv1=true;_kA1._p8._q8=0;_Nw1(_kA1.output,_kA1._p8,_kA1.input);return _kA1.output._At1<10.0*_zq1;}_kA1.input=new _Pv1();_kA1._p8=new _Lv1(); _kA1.output=new _Vv1();function _nv1(_h4,_g4){return !((_g4._Mt1.x-_h4._Nt1.x)>0.0||(_g4._Mt1.y-_h4._Nt1.y)>0.0||(_h4._Mt1.x-_g4._Nt1.x)>0.0||(_h4._Mt1.y-_g4._Nt1.y)>0.0);}var _nA1=-1;function _oA1(){this._wt1=new _Px1();this._bv1=null;this.parent=0;this._pA1=this._qA1=this.height=0;}_oA1.prototype={_rA1:function(){return this._pA1==_nA1;}};function _3v1(){this._sA1=_nA1;this._tA1=16;this._uA1=0;this._vA1=new Array(this._tA1);for(var i=0;i0){var _EA1=stack.pop();if(_EA1==_nA1){continue;}var _Jl=this._vA1[_EA1];if(_nv1(_Jl._wt1,_wt1)){if(_Jl._rA1()){var _FA1=_hm1._Fv1(_EA1); if(_FA1==false){return;}}else {stack.push(_Jl._pA1);stack.push(_Jl._qA1);}}}},/// @param input the ray-cast input data. The ray extends from p1 to p1 + maxFraction * (p2 - p1). /// @param callback a callback class that is called for each proxy that is hit by the ray. _tt1:function(_hm1,input){var _0v=input._0v;var _4t1=input._4t1;var _e4=_kr1._rr1(_4t1,_0v);_wq1(_e4._sr1()>0.0);_e4._tr1();var _Y4=_hs1(1.0,_e4);var _GA1=_Es1(_Y4);var _Kt1=input._Kt1;var _HA1=new _Px1();{var _J6=_kr1._Gf(_0v,_kr1.Multiply(_Kt1, _kr1._rr1(_4t1,_0v)));_HA1._Mt1._lQ(_Hs1(_0v,_J6));_HA1._Nt1._lQ(_Js1(_0v,_J6));}var stack=[];stack.push(this._sA1);while(stack.length>0){var _EA1=stack.pop();if(_EA1==_nA1){continue;}var _Jl=this._vA1[_EA1];if(_nv1(_Jl._wt1,_HA1)==false){continue;}var c=_Jl._wt1._Rx1();var h=_Jl._wt1._Sx1();var _by1=_Ds1(_es1(_Y4,_kr1._rr1(_0v,c)))-_es1(_GA1,h);if(_by1>0.0){continue;}if(_Jl._rA1()){var _IA1=new _Nx1();_IA1._0v._lQ(input._0v);_IA1._4t1._lQ(input._4t1);_IA1._Kt1=_Kt1;var value=_hm1._JA1(_IA1,_EA1);if(value==0.0){ return;}if(value>0.0){_Kt1=value;var _2y1=_kr1._Gf(_0v,_kr1.Multiply(_Kt1,_kr1._rr1(_4t1,_0v)));_HA1._Mt1._lQ(_Hs1(_0v,_2y1));_HA1._Nt1._lQ(_Js1(_0v,_2y1));}}else {stack.push(_Jl._pA1);stack.push(_Jl._qA1);}}},_Mu1:function(){this._KA1(this._sA1);this._LA1(this._sA1);var _MA1=0;var _NA1=this._wA1;while(_NA1!=_nA1){_wq1(0<=_NA1&&_NA11){var _VA1=_yq1;var _WA1=-1,_XA1=-1;for(i=0;i<_q8;++i){var _YA1=this._vA1[_UA1[i]]._wt1;for(var __5=i+1;__5<_q8;++__5){var _ZA1=this._vA1[_UA1[__5]]._wt1;var _g4=new _Px1();_g4._Ux1(_YA1,_ZA1);var __A1=_g4._Tx1();if(__A1<_VA1){_WA1=i;_XA1=__5;_VA1=__A1;}}}var _0B1=_UA1[_WA1];var _1B1=_UA1[_XA1];var _pA1=this._vA1[_0B1]; var _qA1=this._vA1[_1B1];var _2B1=this._AA1();var parent=this._vA1[_2B1];parent._pA1=_0B1;parent._qA1=_1B1;parent.height=1+_Is1(_pA1.height,_qA1.height);parent._wt1._Ux1(_pA1._wt1,_qA1._wt1);parent.parent=_nA1;_pA1.parent=_2B1;_qA1.parent=_2B1;_UA1[_XA1]=_UA1[_q8-1];_UA1[_WA1]=_2B1;--_q8;}this._sA1=_UA1[0];this._Mu1();},/// @param newOrigin the new origin with respect to the old origin _Dv1:function(_Ev1){for(var i=0;i1){var _lB1=_zs1._pA1;var _mB1=_zs1._qA1;var _nB1=this._vA1[_lB1];var _oB1=this._vA1[_mB1];_wq1(0<=_lB1&&_lB1_oB1.height){_zs1._qA1=_lB1; _xq1._qA1=_mB1;_oB1.parent=_iB1;_xq1._wt1._Ux1(_Fr1._wt1,_oB1._wt1);_zs1._wt1._Ux1(_xq1._wt1,_nB1._wt1);_xq1.height=1+_Is1(_Fr1.height,_oB1.height);_zs1.height=1+_Is1(_xq1.height,_nB1.height);}else {_zs1._qA1=_mB1;_xq1._qA1=_lB1;_nB1.parent=_iB1;_xq1._wt1._Ux1(_Fr1._wt1,_nB1._wt1);_zs1._wt1._Ux1(_xq1._wt1,_oB1._wt1);_xq1.height=1+_Is1(_Fr1.height,_nB1.height);_zs1.height=1+_Is1(_xq1.height,_oB1.height);}return _kB1;}if(_QA1<-1){var _pB1=_Fr1._pA1;var _qB1=_Fr1._qA1;var _Eu1=this._vA1[_pB1];var _rB1=this._vA1[_qB1]; _wq1(0<=_pB1&&_pB1_rB1.height){_Fr1._qA1=_pB1;_xq1._pA1=_qB1;_rB1.parent=_iB1;_xq1._wt1._Ux1(_zs1._wt1,_rB1._wt1);_Fr1._wt1._Ux1(_xq1._wt1,_Eu1._wt1);_xq1.height=1+_Is1(_zs1.height,_rB1.height); _Fr1.height=1+_Is1(_xq1.height,_Eu1.height);}else {_Fr1._qA1=_qB1;_xq1._pA1=_pB1;_Eu1.parent=_iB1;_xq1._wt1._Ux1(_zs1._wt1,_Eu1._wt1);_Fr1._wt1._Ux1(_xq1._wt1,_rB1._wt1);_xq1.height=1+_Is1(_zs1.height,_Eu1.height);_Fr1.height=1+_Is1(_xq1.height,_rB1.height);}return _jB1;}return _iB1;},_OA1:function(_EA1){if(typeof(_EA1)==='undefined')_EA1=this._sA1;_wq1(0<=_EA1&&_EA1_2C1);var _1y1=0.0;var _3C1=20;var _Qh1=0;var _p8=new _Lv1();_p8._q8=0;var _4C1=new _Pv1();_4C1._Qv1._lQ(input._Qv1);_4C1._Rv1._lQ(input._Rv1); _4C1._Uv1=false;for(;;){_ZB1._0C1._as1(_4C1._Sv1,_1y1);_ZB1._1C1._as1(_4C1._Tv1,_1y1);var _5C1=new _Vv1();_Nw1(_5C1,_p8,_4C1);if(_5C1._At1<=0.0){output.state=_yB1._AB1;output._J6=0.0;break;}if(_5C1._At1target+_2C1){output.state=_yB1._CB1;output._J6=_xB1;_7C1=true;break;}if(_JB>target-_2C1){ _1y1=_2y1;break;}var _IB=_6C1._Rr(_C9[0],_C9[1],_1y1);if(_IBtarget){_Qj1=_J6;_IB=_ni;}else {_Rj1=_J6;_JB=_ni;}if(_9C1==50){ break;}}_ZB1._bC1=_Is1(_ZB1._bC1,_9C1);++_8C1;if(_8C1==_Cq1){break;}}++_Qh1;++_ZB1._cC1;if(_7C1){break;}if(_Qh1==_3C1){output.state=_yB1._zB1;output._J6=_1y1;break;}}_ZB1._dC1=_Is1(_ZB1._dC1,_Qh1);_YB1.stop();_ZB1._eC1=_Is1(_ZB1._eC1,_YB1._jq1);_ZB1._fC1+=_YB1._jq1;}_ZB1._0C1=new _4s1();_ZB1._1C1=new _4s1();_ZB1._fC1=0;_ZB1._eC1=0;_ZB1.__B1=0;_ZB1._cC1=0;_ZB1._dC1=0;_ZB1._aC1=0;_ZB1._bC1=0;function _gC1(){this.type=_hC1._iC1;this.position=new _kr1(0.0,0.0);this.angle=0.0;this._jC1=new _kr1(0.0,0.0);this._kC1=0.0; this._lC1=0.0;this._mC1=0.0;this._nC1=true;this._oC1=true;this._pC1=false;/// @warning You should use this flag sparingly since it increases processing time. this._qC1=false;this.active=true;this._bv1=null;this._rC1=1.0;Object.seal(this);}_gC1.prototype={_yr1:function(data){this.type=data['type'];this.position._yr1(data['position']);this.angle=data['angle'];this._jC1._yr1(data['linearVelocity']);this._kC1=data['angularVelocity'];this._lC1=data['linearDamping'];this._mC1=data['angularDamping'];this._nC1=data['allowSleep']; this._oC1=data['awake'];this._pC1=data['fixedRotation'];this._qC1=data['bullet'];this.active=data['active'];this._rC1=data['gravityScale'];}};function _hC1(_sC1,_tC1){_wq1(_sC1.position._vr1());_wq1(_sC1._jC1._vr1());_wq1(_ar1(_sC1.angle));_wq1(_ar1(_sC1._kC1));_wq1(_ar1(_sC1._mC1)&&_sC1._mC1>=0.0);_wq1(_ar1(_sC1._lC1)&&_sC1._lC1>=0.0);this._uC1=0;this._vC1=0;if(_sC1._qC1){this._vC1|=_hC1._wC1;}if(_sC1._pC1){this._vC1|=_hC1._xC1;}if(_sC1._nC1){this._vC1|=_hC1._yC1;}if(_sC1._oC1){this._vC1|=_hC1._zC1; }if(_sC1.active){this._vC1|=_hC1._AC1;}this._BC1=_tC1;this._yz1=new _2s1();this._yz1._gh._lQ(_sC1.position);this._yz1.q.Set(_sC1.angle);this._CC1=new _2s1();this._CC1._lQ(this._yz1);this._DC1=new _4s1();this._DC1._5s1._lr1();this._DC1._6s1._lQ(this._yz1._gh);this._DC1.c._lQ(this._yz1._gh);this._DC1._8s1=_sC1.angle;this._DC1._h4=_sC1.angle;this._DC1._9s1=0.0;this._EC1=null;this._FC1=null;this._GC1=null;this._HC1=null;this._IC1=_sC1._jC1._63();this._JC1=_sC1._kC1;this._KC1=_sC1._lC1;this._LC1=_sC1._mC1; this._MC1=_sC1._rC1;this._NC1=new _kr1();this._OC1=0.0;this._PC1=0.0;this._9P=_sC1.type;if(this._9P==_hC1._QC1){this._RC1=1.0;this._SC1=1.0;}else {this._RC1=0.0;this._SC1=0.0;}this._TC1=0.0;this._UC1=0.0;this._VC1=_sC1._bv1;this._WC1=null;this._XC1=0;}_hC1._iC1=0;_hC1._YC1=1;_hC1._QC1=2;_hC1._ZC1=0x0001;_hC1._zC1=0x0002;_hC1._yC1=0x0004;_hC1._wC1=0x0008;_hC1._xC1=0x0010;_hC1._AC1=0x0020;_hC1.__C1=0x0040;_hC1._0D1=new _kr1();_hC1._1D1=new _2s1();_hC1.prototype={/// @param def the fixture definition. /// @warning This function is locked during callbacks. _2D1:function(_3D1, _p71){if(typeof(_p71)!=='undefined'){var _4D1=new _5D1();_4D1.shape=_3D1;_4D1._p71=_p71;return this._2D1(_4D1);}_wq1(this._BC1._sm1()==false);if(this._BC1._sm1()==true){return null;}var _K41=new _6D1();_K41._Gf1(this,_3D1);if(this._vC1&_hC1._AC1){var _7D1=this._BC1._8D1._9D1;_K41._aD1(_7D1,this._yz1);}_K41._HC1=this._WC1;this._WC1=_K41;++this._XC1;_K41._bD1=this;if(_K41._cD1>0.0){this._dD1();}this._BC1._vC1|=_eD1._fD1;return _K41;},/// @param fixture the fixture to be removed. /// @warning This function is locked during callbacks. _gD1:function(_K41){ _wq1(this._BC1._sm1()==false);if(this._BC1._sm1()==true){return;}_wq1(_K41._bD1==this);_wq1(this._XC1>0);var _Jl=this._WC1;var _4D=false;while(_Jl!=null){if(_Jl==_K41){this._WC1=_Jl=_K41._HC1;_4D=true;break;}_Jl=_Jl._HC1;}_wq1(_4D);var _ju1=this._FC1;while(_ju1){var c=_ju1._hD1;_ju1=_ju1._kl;var _iD1=c._jD1();var _kD1=c._lD1();if(_K41==_iD1||_K41==_kD1){this._BC1._8D1._vm1(c);}}if(this._vC1&_hC1._AC1){var _7D1=this._BC1._8D1._9D1;_K41._mD1(_7D1);}_K41._vm1();_K41._bD1=null;_K41._HC1=null;--this._XC1;this._dD1(); },/// @param position the world position of the body's local origin. /// @param angle the world rotation in radians. _nD1:function(position,angle){_wq1(this._BC1._sm1()==false);if(this._BC1._sm1()==true){return;}this._yz1.q.Set(angle);this._yz1._gh._lQ(position);this._CC1._lQ(this._yz1);this._DC1.c._lQ(_vs1(this._yz1,this._DC1._5s1));this._DC1._h4=angle;this._DC1._6s1._lQ(this._DC1.c);this._DC1._8s1=angle;var _7D1=this._BC1._8D1._9D1;for(var _ED=this._WC1;_ED;_ED=_ED._HC1){_ED._oD1(_7D1,this._yz1, this._yz1);}},/// @return the world transform of the body's origin. _as1:function(){return this._yz1;},/// @return the world position of the body's origin. _e41:function(){return this._yz1._gh;},/// @return the current world rotation angle in radians. __r1:function(){return this._DC1._h4;},_pD1:function(){return this._DC1.c;},_qD1:function(){return this._DC1._5s1;},/// @param v the new linear velocity of the center of mass. _rD1:function(_Y4){if(this._9P==_hC1._iC1){return;}if(_es1(_Y4,_Y4)>0.0){ this._Z41(true);}this._IC1=_Y4;},/// @return the linear velocity of the center of mass. _sD1:function(){return this._IC1;},/// @param omega the new angular velocity in radians/second. _tD1:function(w){if(this._9P==_hC1._iC1){return;}if(w*w>0.0){this._Z41(true);}this._JC1=w;},/// @return the angular velocity in radians/second. _uD1:function(){return this._JC1;},/// @param force the world force vector, usually in Newtons (N). /// @param point the world position of the point of application. /// @param wake also wake up the body _k61:function(_vD1, _cx1,_wD1){if(this._9P!=_hC1._QC1){return;}if(_wD1&&(this._vC1&_hC1._zC1)==0){this._Z41(true);}if(this._vC1&_hC1._zC1){this._NC1._Gf(_vD1);this._OC1+=_fs1(_kr1._rr1(_cx1,this._DC1.c),_vD1);}},/// @param force the world force vector, usually in Newtons (N). /// @param wake also wake up the body _xD1:function(_vD1,_wD1){if(this._9P!=_hC1._QC1){return;}if(_wD1&&(this._vC1&_hC1._zC1)==0){this._Z41(true);}if(this._vC1&_hC1._zC1){this._NC1._Gf(_vD1);}},/// @param torque about the z-axis (out of the screen), usually in N-m. /// @param wake also wake up the body _B61:function(_yD1, _wD1){if(this._9P!=_hC1._QC1){return;}if(_wD1&&(this._vC1&_hC1._zC1)==0){this._Z41(true);}if(this._vC1&_hC1._zC1){this._OC1+=_yD1;}},/// @param impulse the world impulse vector, usually in N-seconds or kg-m/s. /// @param point the world position of the point of application. /// @param wake also wake up the body _zD1:function(_AD1,_cx1,_wD1){if(this._9P!=_hC1._QC1){return;}if(_wD1&&(this._vC1&_hC1._zC1)==0){this._Z41(true);}if(this._vC1&_hC1._zC1){this._IC1._Gf(_kr1.Multiply(this._SC1,_AD1));this._JC1+=this._UC1*_fs1(_kr1._rr1(_cx1, this._DC1.c),_AD1);}},/// @param impulse the angular impulse in units of kg*m*m/s /// @param wake also wake up the body _z61:function(_AD1,_wD1){if(this._9P!=_hC1._QC1){return;}if(_wD1&&(this._vC1&_hC1._zC1)==0){this._Z41(true);}if(this._vC1&_hC1._zC1){this._JC1+=this._UC1*_AD1;}},/// @return the mass, usually in kilograms (kg). _BD1:function(){return this._RC1;},/// @return the rotational inertia, usually in kg-m^2. _CD1:function(){return this._TC1+this._RC1*_es1(this._DC1._5s1,this._DC1._5s1); },/// @return a struct containing the mass, inertia and center of the body. _DD1:function(data){data._nt1=this._RC1;data._ot1=this._TC1+this._RC1*_es1(this._DC1._5s1,this._DC1._5s1);data._1t1=this._DC1._5s1;},/// @param massData the mass properties. _ED1:function(_yt1){_wq1(this._BC1._sm1()==false);if(this._BC1._sm1()==true){return;}if(this._9P!=_hC1._QC1){return;}this._SC1=0.0;this._TC1=0.0;this._UC1=0.0;this._RC1=_yt1._nt1;if(this._RC1<=0.0){this._RC1=1.0;}this._SC1=1.0/this._RC1;if(_yt1._ot1>0.0&&(this._vC1&_hC1._xC1)==0){ this._TC1=_yt1._ot1-this._RC1*_es1(_yt1._1t1,_yt1._1t1);_wq1(this._TC1>0.0);this._UC1=1.0/this._TC1;}_hC1._0D1._lQ(this._DC1.c);this._DC1._5s1._lQ(_yt1._1t1);this._DC1._6s1._lQ(_vs1(this._yz1,this._DC1._5s1));this._DC1.c._lQ(this._DC1._6s1);this._IC1._Gf(_hs1(this._JC1,_kr1._rr1(this._DC1.c,_hC1._0D1)));},_dD1:function(){this._RC1=0.0;this._SC1=0.0;this._TC1=0.0;this._UC1=0.0;this._DC1._5s1._lr1();if(this._9P==_hC1._iC1||this._9P==_hC1._YC1){this._DC1._6s1._lQ(this._yz1._gh);this._DC1.c._lQ(this._yz1._gh); this._DC1._8s1=this._DC1._h4;return;}_wq1(this._9P==_hC1._QC1);var _5s1=new _kr1(0,0);for(var _ED=this._WC1;_ED;_ED=_ED._HC1){if(_ED._cD1==0.0){continue;}var _yt1=new _mt1();_ED._DD1(_yt1);this._RC1+=_yt1._nt1;_5s1._Gf(_kr1.Multiply(_yt1._nt1,_yt1._1t1));this._TC1+=_yt1._ot1;}if(this._RC1>0.0){this._SC1=1.0/this._RC1;_5s1.Multiply(this._SC1);}else {this._RC1=1.0;this._SC1=1.0;}if(this._TC1>0.0&&(this._vC1&_hC1._xC1)==0){this._TC1-=this._RC1*_es1(_5s1,_5s1);_wq1(this._TC1>0.0);this._UC1=1.0/this._TC1;} else {this._TC1=0.0;this._UC1=0.0;}_hC1._0D1._lQ(this._DC1.c);this._DC1._5s1._lQ(_5s1);this._DC1._6s1._lQ(_vs1(this._yz1,this._DC1._5s1));this._DC1.c._lQ(this._DC1._6s1);this._IC1._Gf(_hs1(this._JC1,_kr1._rr1(this._DC1.c,_hC1._0D1)));},/// @param localPoint a point on the body measured relative the the body's origin. /// @return the same point expressed in world coordinates. _FD1:function(_9x1){return _vs1(this._yz1,_9x1);},/// @param localVector a vector fixed in the body. /// @return the same vector expressed in world coordinates. _GD1:function(_HD1){ return _ts1(this._yz1.q,_HD1);},/// @param a point in world coordinates. /// @return the corresponding local point relative to the body's origin. _ID1:function(_JD1){return _xs1(this._yz1,_JD1);},/// @param a vector in world coordinates. /// @return the corresponding local vector. _KD1:function(_LD1){return _us1(this._yz1.q,_LD1);},/// @param a point in world coordinates. /// @return the world velocity of a point. _MD1:function(_JD1){return _kr1._Gf(this._IC1,_hs1(this._JC1,_kr1._rr1(_JD1,this._DC1.c))); },/// @param a point in local coordinates. /// @return the world velocity of a point. _ND1:function(_9x1){return this._MD1(this._FD1(_9x1));},_OD1:function(){return this._KC1;},_W41:function(_lC1){this._KC1=_lC1;},_PD1:function(){return this._LC1;},_X41:function(_mC1){this._LC1=_mC1;},_QD1:function(){return this._MC1;},_RD1:function(scale){this._MC1=scale;},_SD1:function(type){_wq1(this._BC1._sm1()==false);if(this._BC1._sm1()==true){return;}if(this._9P==type){return;}this._9P=type;this._dD1();if(this._9P==_hC1._iC1){ this._IC1._lr1();this._JC1=0.0;this._DC1._8s1=this._DC1._h4;this._DC1._6s1._lQ(this._DC1.c);this._TD1();}this._Z41(true);this._NC1._lr1();this._OC1=0.0;var _UD1=this._FC1;while(_UD1){var _VD1=_UD1;_UD1=_UD1._kl;this._BC1._8D1._vm1(_VD1._hD1);}this._FC1=null;var _7D1=this._BC1._8D1._9D1;for(var _ED=this._WC1;_ED;_ED=_ED._HC1){var _WD1=_ED._5v1;for(var i=0;i<_WD1;++i){_7D1._iv1(_ED._XD1[i]._cv1);}}},_Vl1:function(){return this._9P;},_YD1:function(_ZD1){if(_ZD1){this._vC1|=_hC1._wC1;}else {this._vC1&=~_hC1._wC1; }},__D1:function(){return(this._vC1&_hC1._wC1)==_hC1._wC1;},_0E1:function(_ZD1){if(_ZD1){this._vC1|=_hC1._yC1;}else {this._vC1&=~_hC1._yC1;this._Z41(true);}},_1E1:function(){return(this._vC1&_hC1._yC1)==_hC1._yC1;},/// @param flag set to true to wake the body, false to put it to sleep. _Z41:function(_ZD1){if(_ZD1){if((this._vC1&_hC1._zC1)==0){this._vC1|=_hC1._zC1;this._PC1=0.0;}}else {this._vC1&=~_hC1._zC1;this._PC1=0.0;this._IC1._lr1();this._JC1=0.0;this._NC1._lr1();this._OC1=0.0;}},/// @return true if the body is awake. _2E1:function(){ return(this._vC1&_hC1._zC1)==_hC1._zC1;},_3E1:function(_ZD1){_wq1(this._BC1._sm1()==false);if(_ZD1==this._4E1()){return;}if(_ZD1){this._vC1|=_hC1._AC1;var _7D1=this._BC1._8D1._9D1;for(var _ED=this._WC1;_ED;_ED=_ED._HC1){_ED._aD1(_7D1,this._yz1);}}else {this._vC1&=~_hC1._AC1;var _7D1=this._BC1._8D1._9D1;for(var _ED=this._WC1;_ED;_ED=_ED._HC1){_ED._mD1(_7D1);}var _UD1=this._FC1;while(_UD1){var _VD1=_UD1;_UD1=_UD1._kl;this._BC1._8D1._vm1(_VD1._hD1);}this._FC1=null;}},_4E1:function(){return(this._vC1&_hC1._AC1)==_hC1._AC1; },_5E1:function(_ZD1){var status=(this._vC1&_hC1._xC1)==_hC1._xC1;if(status==_ZD1){return;}if(_ZD1){this._vC1|=_hC1._xC1;}else {this._vC1&=~_hC1._xC1;}this._JC1=0.0;this._dD1();},_6E1:function(){return(this._vC1&_hC1._xC1)==_hC1._xC1;},_7E1:function(){return this._WC1;},_8E1:function(){return this._EC1;},/// @warning this list changes during the time step and you may _9E1:function(){return this._FC1;},_aE1:function(){return this._HC1;},_kv1:function(){return this._VC1;},_bE1:function(data){this._VC1=data; },_cE1:function(){return this._BC1;},_TD1:function(){_hC1._1D1.q.Set(this._DC1._8s1);_hC1._1D1._gh._lQ(_kr1._rr1(this._DC1._6s1,_ts1(_hC1._1D1.q,this._DC1._5s1)));var _7D1=this._BC1._8D1._9D1;for(var _ED=this._WC1;_ED;_ED=_ED._HC1){_ED._oD1(_7D1,_hC1._1D1,this._yz1);}},_dE1:function(){this._yz1.q.Set(this._DC1._h4);this._yz1._gh._lQ(_kr1._rr1(this._DC1.c,_ts1(this._yz1.q,this._DC1._5s1)));},_eE1:function(other){if(this._9P!=_hC1._QC1&&other._9P!=_hC1._QC1){return false;}for(var _fE1=this._EC1;_fE1;_fE1=_fE1._kl){ if(_fE1.other==other){if(_fE1._q51._gE1==false){return false;}}}return true;},_cs1:function(alpha){this._DC1._cs1(alpha);this._DC1.c._lQ(this._DC1._6s1);this._DC1._h4=this._DC1._8s1;this._yz1.q.Set(this._DC1._h4);this._yz1._gh._lQ(_kr1._rr1(this._DC1.c,_ts1(this._yz1.q,this._DC1._5s1)));},_xr1:function(out){var _Pg=out||{};_Pg['fixtures']=null;_Pg['type']=this._9P;_Pg['position']=this._e41()._xr1();_Pg['angle']=this.__r1();_Pg['linearVelocity']=this._sD1()._xr1();_Pg['angularVelocity']=this._uD1(); _Pg['linearDamping']=this._OD1();_Pg['angularDamping']=this._PD1();_Pg['allowSleep']=this._1E1();_Pg['awake']=this._2E1();_Pg['fixedRotation']=this._6E1();_Pg['bullet']=this.__D1();_Pg['active']=this._4E1();_Pg['gravityScale']=this._QD1();return _Pg;}};function _hE1(){this._iE1=0x0001;this._jE1=0xFFFF;this._kE1=0;}_hE1.prototype={_63:function(){var filter=new _hE1();filter._iE1=this._iE1;filter._jE1=this._jE1;filter._kE1=this._kE1;return filter;},_lQ:function(filter){this._iE1=filter._iE1;this._jE1=filter._jE1; this._kE1=filter._kE1;},_xr1:function(out){var _Pg=out||{};_Pg['categoryBits']=this._iE1;_Pg['maskBits']=this._jE1;_Pg['groupIndex']=this._kE1;return _Pg;},_yr1:function(data){this._iE1=data['categoryBits'];this._jE1=data['maskBits'];this._kE1=data['groupIndex'];}};function _5D1(){this.shape=null;this._bv1=null;this.friction=0.2;this._lE1=0.0;this._p71=0.0;this._mE1=false;this.filter=new _hE1();Object.seal(this);}_5D1.prototype={_yr1:function(data){this.friction=data['friction'];this._lE1=data['restitution']; this._p71=data['density'];this._mE1=data['isSensor'];this.filter._yr1(data['filter']);}};function _nE1(){this._wt1=new _Px1();this._K41=null;this._ut1=0;this._cv1=0;};/// @warning you cannot reuse fixtures. function _6D1(){this._VC1=null;this._bD1=null;this._HC1=null;this._XD1=null;this._5v1=0;this._oE1=null;this._cD1=0.0;this._pE1=new _hE1();this._qE1=false;this._rE1=0;this._sE1=0;}_6D1.prototype={/// @return the shape type. _Vl1:function(){return this._oE1._Vl1();},_tE1:function(){return this._oE1; },_U41:function(_uE1){if(_uE1!=this._qE1){this._bD1._Z41(true);this._qE1=_uE1;}},/// @return the true if the shape is a sensor. _vE1:function(){return this._qE1;},_wE1:function(filter){this._pE1=filter;this._xE1();},_yE1:function(){return this._pE1;},_xE1:function(){if(this._bD1==null){return;}var _ju1=this._bD1._9E1();while(_ju1){var _hD1=_ju1._hD1;var _iD1=_hD1._jD1();var _kD1=_hD1._lD1();if(_iD1==this||_kD1==this){_hD1._zE1();}_ju1=_ju1._kl;}var _tC1=this._bD1._cE1();if(_tC1==null){return;}var _7D1=_tC1._8D1._9D1; for(var i=0;i=0.0);this._cD1=_p71;},_L61:function(){return this._cD1;},_K61:function(){return this._rE1;},_Q41:function(friction){this._rE1=friction;},_M61:function(){return this._sE1;},_P41:function(_lE1){this._sE1=_lE1;},_BE1:function(_ut1){_wq1(0<=_ut1&&_ut10;}var _OE1=(_ME1._jE1&_NE1._iE1)!=0&&(_ME1._iE1&_NE1._jE1)!=0;return _OE1;}};function _PE1(){this._QE1=new Array(_Bq1);this._RE1=new Array(_Bq1);this._q8=0;}/// @warning You cannot create/destroy Box2D entities inside these callbacks. function _SE1(){}_SE1.prototype={_TE1:function(_hD1){},_UE1:function(_hD1){},_VE1:function(_hD1,_WE1){},_XE1:function(_hD1,_AD1){}};function _YE1(){}_YE1.prototype={/// @return false to terminate the query. _ZE1:function(_K41){ return false;},/// @return false to terminate the query. __E1:function(index){return false;}};function _0F1(){}_0F1.prototype={/// @param fixture the fixture hit by the ray /// @param point the point of initial intersection /// @param normal the normal vector at the point of intersection /// @return -1 to filter, 0 to terminate, fraction to clip the ray for _ZE1:function(_K41,_cx1,_Bt1,_Lt1){},__E1:function(index,_cx1,_Bt1,_Lt1){return 0;}};function _1F1(){this._AD=0;this._2F1=0;this._3F1=0;this._4F1=0; this._5F1=0;this._6F1=false;}function _7F1(){this.c=new _kr1();this._h4=0;}function _8F1(){this._Y4=new _kr1();this.w=0;}function _9F1(){this.step=new _1F1();this._aF1=null;this._bF1=null;}var _cF1=_eq1._pq1("step");var _dF1=_eq1._pq1("collide","step");var _eF1=_eq1._pq1("solve","step");var _fF1=_eq1._pq1("solveTOI","step");var _gF1=_eq1._pq1("broadphase","step");function _eD1(gravity){this._8D1=new _hF1();this._iF1=null;this._jF1=null;this._kF1=null;this._EC1=null;this._lF1=0;this._mF1=0;this._nF1=true;this._oF1=true; this._pF1=false;this._qF1=true;this._rF1=true;this._sF1=gravity;this._vC1=_eD1._tF1;this._uF1=0.0;this._vF1=new _1F1();this._wF1=new _xF1();this._yF1=new _zF1();this._yF1._BC1=this;}function _AF1(){this._7D1=null;this._hm1=null;}_AF1.prototype={_Fv1:function(_cv1){var _DE1=this._7D1._kv1(_cv1);return this._hm1._ZE1(_DE1._K41);}};function _BF1(){this._7D1=null;this._hm1=null;}_BF1.prototype={_JA1:function(input,_cv1){var _bv1=this._7D1._kv1(_cv1);var _DE1=_bv1;var _K41=_DE1._K41;var index=_DE1._ut1;var output=new _Ox1(); var _A6=_K41._tt1(output,input,index);if(_A6){var _Lt1=output._Lt1;var _cx1=_kr1._Gf(_kr1.Multiply((1.0-_Lt1),input._0v),_kr1.Multiply(_Lt1,input._4t1));return this._hm1._ZE1(_K41,_cx1,output._Bt1,_Lt1);}return input._Kt1;}};_eD1._CF1=new _4s1();_eD1._DF1=new _4s1();_eD1._EF1=new _4s1();_eD1.prototype={_vm1:function(){var _g4=this._kF1;while(_g4){var _FF1=_g4._HC1;var _ED=_g4._WC1;while(_ED){var _GF1=_ED._HC1;_ED._5v1=0;_ED._vm1();_ED=_GF1;}_g4=_FF1;}},_HF1:function(listener){this._iF1=listener;},_IF1:function(filter){ this._8D1._JF1=filter;},_KF1:function(listener){this._8D1._LF1=listener;},_MF1:function(_NF1){this._jF1=_NF1;},/// @warning This function is locked during callbacks. _d51:function(_3D1){_wq1(this._sm1()==false);if(this._sm1()){return null;}var _g4=new _hC1(_3D1,this);_g4._GC1=null;_g4._HC1=this._kF1;if(this._kF1){this._kF1._GC1=_g4;}this._kF1=_g4;++this._lF1;return _g4;},/// @warning This automatically deletes all associated shapes and joints. /// @warning This function is locked during callbacks. _OF1:function(_g4){ _wq1(this._lF1>0);_wq1(this._sm1()==false);if(this._sm1()){return;}var _PF1=_g4._EC1;while(_PF1){var _QF1=_PF1;_PF1=_PF1._kl;if(this._iF1){this._iF1._HE1(_QF1._q51);}this._f61(_QF1._q51);_g4._EC1=_PF1;}_g4._EC1=null;var _UD1=_g4._FC1;while(_UD1){var _VD1=_UD1;_UD1=_UD1._kl;this._8D1._vm1(_VD1._hD1);}_g4._FC1=null;var _ED=_g4._WC1;while(_ED){var _RF1=_ED;_ED=_ED._HC1;if(this._iF1){this._iF1._IE1(_RF1);}_RF1._mD1(this._8D1._9D1);_RF1._vm1();_g4._WC1=_ED;_g4._XC1-=1;}_g4._WC1=null;_g4._XC1=0;if(_g4._GC1){ _g4._GC1._HC1=_g4._HC1;}if(_g4._HC1){_g4._HC1._GC1=_g4._GC1;}if(_g4==this._kF1){this._kF1=_g4._HC1;}_g4._SF1=true;--this._lF1;},/// @warning This function is locked during callbacks. _TF1:function(_3D1){_wq1(this._sm1()==false);if(this._sm1()){return null;}var __5=_UF1._Gf1(_3D1);__5._GC1=null;__5._HC1=this._EC1;if(this._EC1){this._EC1._GC1=__5;}this._EC1=__5;++this._mF1;__5._VF1._q51=__5;__5._VF1.other=__5._WF1;__5._VF1._il=null;__5._VF1._kl=__5._XF1._EC1;if(__5._XF1._EC1)__5._XF1._EC1._il=__5._VF1; __5._XF1._EC1=__5._VF1;__5._YF1._q51=__5;__5._YF1.other=__5._XF1;__5._YF1._il=null;__5._YF1._kl=__5._WF1._EC1;if(__5._WF1._EC1)__5._WF1._EC1._il=__5._YF1;__5._WF1._EC1=__5._YF1;var _ZF1=_3D1._ZF1;var __F1=_3D1.__F1;if(_3D1._0G1==false){var _ju1=__F1._9E1();while(_ju1){if(_ju1.other==_ZF1){_ju1._hD1._zE1();}_ju1=_ju1._kl;}}return __5;},/// @warning This function is locked during callbacks. _f61:function(__5){_wq1(this._sm1()==false);if(this._sm1()){return;}var _0G1=__5._gE1;if(__5._GC1){__5._GC1._HC1=__5._HC1; }if(__5._HC1){__5._HC1._GC1=__5._GC1;}if(__5==this._EC1){this._EC1=__5._HC1;}var _ZF1=__5._XF1;var __F1=__5._WF1;_ZF1._Z41(true);__F1._Z41(true);if(__5._VF1._il){__5._VF1._il._kl=__5._VF1._kl;}if(__5._VF1._kl){__5._VF1._kl._il=__5._VF1._il;}if(__5._VF1==_ZF1._EC1){_ZF1._EC1=__5._VF1._kl;}__5._VF1._il=null;__5._VF1._kl=null;if(__5._YF1._il){__5._YF1._il._kl=__5._YF1._kl;}if(__5._YF1._kl){__5._YF1._kl._il=__5._YF1._il;}if(__5._YF1==__F1._EC1){__F1._EC1=__5._YF1._kl;}__5._YF1._il=null;__5._YF1._kl=null; _UF1._vm1(__5);_wq1(this._mF1>0);--this._mF1;if(_0G1==false){var _ju1=__F1._9E1();while(_ju1){if(_ju1.other==_ZF1){_ju1._hD1._zE1();}_ju1=_ju1._kl;}}},/// @param timeStep the amount of time to simulate, this should not vary. /// @param velocityIterations for the velocity constraint solver. /// @param positionIterations for the position constraint solver. _1G1:function(_AD,_4F1,_5F1){_cF1.start();if(this._vC1&_eD1._fD1){this._8D1._2G1();this._vC1&=~_eD1._fD1;}this._vC1|=_eD1._3G1;this._vF1._AD=_AD; this._vF1._4F1=_4F1;this._vF1._5F1=_5F1;if(_AD>0.0){this._vF1._2F1=1.0/_AD;}else {this._vF1._2F1=0.0;}this._vF1._3F1=this._uF1*_AD;this._vF1._6F1=this._nF1;{_dF1.start();this._8D1._Qz1();_dF1.stop();}if(this._qF1&&this._vF1._AD>0.0){_eF1.start();this._yF1._Hr1(this._vF1);this._Hr1(this._vF1);_eF1.stop();}if(this._oF1&&this._vF1._AD>0.0){_fF1.start();this._4G1(this._vF1);_fF1.stop();}if(this._vF1._AD>0.0){this._uF1=this._vF1._2F1;}if(this._vC1&_eD1._tF1){this._5G1();}this._vC1&=~_eD1._3G1;_cF1.stop(); },/// @see SetAutoClearForces _5G1:function(){for(var body=this._kF1;body;body=body._aE1()){body._NC1.x=body._NC1.y=0;body._OC1=0.0;}},_6G1:function(){if(this._jF1==null){return;}var _Qo1=this._jF1._Vs1();if(_Qo1&_Ss1._8t1){for(var _g4=this._kF1;_g4;_g4=_g4._aE1()){var _3s1=_g4._as1();for(var _ED=_g4._7E1();_ED;_ED=_ED._aE1()){if(_g4._4E1()==false){this._7G1(_ED,_3s1,new _Rs1(0.5,0.5,0.3));}else if(_g4._Vl1()==_hC1._iC1){this._7G1(_ED,_3s1,new _Rs1(0.5,0.9,0.5));}else if(_g4._Vl1()==_hC1._YC1){this._7G1(_ED, _3s1,new _Rs1(0.5,0.5,0.9));}else if(_g4._2E1()==false){this._7G1(_ED,_3s1,new _Rs1(0.6,0.6,0.6));}else {this._7G1(_ED,_3s1,new _Rs1(0.9,0.7,0.7));}}}this._8G1(this._yF1);}if(_Qo1&_Ss1._9t1){for(var __5=this._EC1;__5;__5=__5._aE1()){this._9G1(__5);}}if(_Qo1&_Ss1._it1){var color=new _Rs1(0.3,0.9,0.9);for(var c=this._8D1._FC1;c;c=c._aE1()){var _iD1=c._jD1();var _kD1=c._lD1();var _aG1=_iD1._BE1(c._bG1())._Rx1();var _cG1=_kD1._BE1(c._dG1())._Rx1();this._jF1._3t1(_aG1,_cG1,color);}}if(_Qo1&_Ss1._at1){var color=new _Rs1(0.9, 0.3,0.9);var _eG1=new _Rs1(0.3,0.3,0.9);var _fG1=this._8D1._9D1;for(var _g4=this._kF1;_g4;_g4=_g4._aE1()){if(_g4._4E1()==false){continue;}for(var _ED=_g4._7E1();_ED;_ED=_ED._aE1()){for(var i=0;i<_ED._5v1;++i){var _DE1=_ED._XD1[i];var _wt1=_fG1._jv1(_DE1._cv1);var _Su1=[];_Su1[0]=new _kr1(_wt1._Mt1.x,_wt1._Mt1.y);_Su1[1]=new _kr1(_wt1._Nt1.x,_wt1._Mt1.y);_Su1[2]=new _kr1(_wt1._Nt1.x,_wt1._Nt1.y);_Su1[3]=new _kr1(_wt1._Mt1.x,_wt1._Nt1.y);this._jF1._Zs1(_Su1,4,color);var _gG1=new _Px1();_ED._tE1()._vt1(_gG1,_g4._as1(), 0);_Su1[0]=new _kr1(_gG1._Mt1.x,_gG1._Mt1.y);_Su1[1]=new _kr1(_gG1._Nt1.x,_gG1._Mt1.y);_Su1[2]=new _kr1(_gG1._Nt1.x,_gG1._Nt1.y);_Su1[3]=new _kr1(_gG1._Mt1.x,_gG1._Nt1.y);this._jF1._Zs1(_Su1,4,_eG1);}}}}if(_Qo1&_Ss1._bt1){for(var _g4=this._kF1;_g4;_g4=_g4._aE1()){var _3s1=_g4._as1()._63();_3s1._gh=_g4._pD1();this._jF1._5t1(_3s1);}}},/// @param callback a user implemented callback class. /// @param aabb the query box. _hG1:function(_hm1,_wt1){var _iG1=new _AF1();_iG1._7D1=this._8D1._9D1;_iG1._hm1=_hm1; this._8D1._9D1._sv1(_iG1,_wt1);this._yF1._hG1(_hm1,_wt1);},/// @param callback a user implemented callback class. /// @param point1 the ray starting point /// @param point2 the ray ending point _tt1:function(_hm1,_jG1,_kG1){var _iG1=new _BF1();_iG1._7D1=this._8D1._9D1;_iG1._hm1=_hm1;var input=new _Nx1();input._Kt1=1.0;input._0v=_jG1;input._4t1=_kG1;this._8D1._9D1._tt1(_iG1,input);this._yF1._tt1(_hm1,_jG1,_kG1);},/*@returns {b2Body} the head of the world body list. */_lG1:function(){return this._kF1; },/// @return the head of the world joint list. _8E1:function(){return this._EC1;},/// @return the head of the world contact list. /// @warning contacts are created and destroyed in the middle of a time step. _9E1:function(){return this._8D1._FC1;},_mG1:function(_ZD1){if(_ZD1==this._rF1){return;}this._rF1=_ZD1;if(this._rF1==false){for(var _g4=this._kF1;_g4;_g4=_g4._HC1){_g4._Z41(true);}}},_nG1:function(){return this._rF1;},_oG1:function(_ZD1){this._nF1=_ZD1;},_pG1:function(){return this._nF1;},_qG1:function(_ZD1){ this._oF1=_ZD1;},_rG1:function(){return this._oF1;},_sG1:function(_ZD1){this._pF1=_ZD1;},_tG1:function(){return this._pF1;},_ov1:function(){return this._8D1._9D1._ov1();},_uG1:function(){return this._lF1;},_vG1:function(){return this._mF1;},_wG1:function(){return this._8D1._xG1;},_yv1:function(){return this._8D1._9D1._yv1();},_zv1:function(){return this._8D1._9D1._zv1();},_Bv1:function(){return this._8D1._9D1._Bv1();},_D41:function(gravity){this._sF1=gravity;},_yG1:function(){return this._sF1;},_sm1:function(){ return(this._vC1&_eD1._3G1)==_eD1._3G1;},_zG1:function(_ZD1){if(_ZD1){this._vC1|=_eD1._tF1;}else {this._vC1&=~_eD1._tF1;}},_AG1:function(){return(this._vC1&_eD1._tF1)==_eD1._tF1;},/// @param newOrigin the new origin with respect to the old origin _Dv1:function(_Ev1){_wq1((this._vC1&_eD1._3G1)==0);if((this._vC1&_eD1._3G1)==_eD1._3G1){return;}for(var _g4=this._kF1;_g4;_g4=_g4._HC1){_g4._yz1._gh._rr1(_Ev1);_g4._DC1._6s1._rr1(_Ev1);_g4._DC1.c._rr1(_Ev1);}for(var __5=this._EC1;__5;__5=__5._HC1){__5._Dv1(_Ev1); }this._8D1._9D1._Dv1(_Ev1);},_BG1:function(){return this._8D1;},_Hr1:function(step){for(var _g4=this._kF1;_g4;_g4=_g4._HC1){_g4._CC1._lQ(_g4._yz1);}this._wF1._qx1(this._lF1,this._8D1._xG1,this._mF1,this._8D1._LF1);for(var _g4=this._kF1;_g4;_g4=_g4._HC1){_g4._vC1&=~_hC1._ZC1;}for(var c=this._8D1._FC1;c;c=c._HC1){c._vC1&=~_CG1._ZC1;}for(var __5=this._EC1;__5;__5=__5._HC1){__5._DG1=false;}var _EG1=this._lF1;var stack=new Array(_EG1);for(var _1h=this._kF1;_1h;_1h=_1h._HC1){if(_1h._vC1&_hC1._ZC1){continue;}if(_1h._2E1()==false||_1h._4E1()==false){ continue;}if(_1h._Vl1()==_hC1._iC1){continue;}this._wF1._Wf();var _FG1=0;stack[_FG1++]=_1h;_1h._vC1|=_hC1._ZC1;while(_FG1>0){var _g4=stack[--_FG1];_wq1(_g4._4E1()==true);this._wF1._GG1(_g4);_g4._Z41(true);if(_g4._Vl1()==_hC1._iC1){continue;}for(var _UD1=_g4._FC1;_UD1;_UD1=_UD1._kl){var _hD1=_UD1._hD1;if(_hD1._vC1&_CG1._ZC1){continue;}if(_hD1._HG1()==false||_hD1._IG1()==false){continue;}var _JG1=_hD1._KG1._qE1;var _LG1=_hD1._MG1._qE1;if(_JG1||_LG1){continue;}this._wF1._NG1(_hD1);_hD1._vC1|=_CG1._ZC1;var other=_UD1.other; if(other._vC1&_hC1._ZC1){continue;}_wq1(_FG1<_EG1);stack[_FG1++]=other;other._vC1|=_hC1._ZC1;}for(var _PF1=_g4._EC1;_PF1;_PF1=_PF1._kl){if(_PF1._q51._DG1==true){continue;}var other=_PF1.other;if(other._4E1()==false){continue;}this._wF1._OG1(_PF1._q51);_PF1._q51._DG1=true;if(other._vC1&_hC1._ZC1){continue;}_wq1(_FG1<_EG1);stack[_FG1++]=other;other._vC1|=_hC1._ZC1;}}this._wF1._Hr1(step,this._sF1,this._rF1);for(var i=0;i_Iq1){continue;}var alpha=1.0;if(c._vC1&_CG1.__C1){alpha=c._RG1;}else {var _UG1=c._jD1();var _VG1=c._lD1();if(_UG1._vE1()||_VG1._vE1()){continue;}var _WG1=_UG1._AE1();var _XG1=_VG1._AE1();var _4x1=_WG1._9P;var _5x1=_XG1._9P;_wq1(_4x1==_hC1._QC1||_5x1==_hC1._QC1);var _YG1=_WG1._2E1()&&_4x1!=_hC1._iC1;var _ZG1=_XG1._2E1()&&_5x1!=_hC1._iC1;if(_YG1==false&&_ZG1==false){continue;}var __G1=_WG1.__D1()||_4x1!=_hC1._QC1;var _0H1=_XG1.__D1()||_5x1!=_hC1._QC1;if(__G1==false&&_0H1==false){continue; }var _9s1=_WG1._DC1._9s1;if(_WG1._DC1._9s1<_XG1._DC1._9s1){_9s1=_XG1._DC1._9s1;_WG1._DC1._cs1(_9s1);}else if(_XG1._DC1._9s1<_WG1._DC1._9s1){_9s1=_WG1._DC1._9s1;_XG1._DC1._cs1(_9s1);}_wq1(_9s1<1.0);var _Nv1=c._bG1();var _Ov1=c._dG1();var input=new _uB1();input._Qv1.Set(_UG1._tE1(),_Nv1);input._Rv1.Set(_VG1._tE1(),_Ov1);input._vB1._lQ(_WG1._DC1);input._wB1._lQ(_XG1._DC1);input._xB1=1.0;var output=new _yB1();_ZB1(output,input);var _bs1=output._J6;if(output.state==_yB1._BB1){alpha=_Gs1(_9s1+(1.0-_9s1)*_bs1,1.0); }else {alpha=1.0;}c._RG1=alpha;c._vC1|=_CG1.__C1;}if(alpha<_TG1){_SG1=c;_TG1=alpha;}}if(_SG1==null||1.0-10.0*_zq1<_TG1){this._qF1=true;break;}var _UG1=_SG1._jD1();var _VG1=_SG1._lD1();var _WG1=_UG1._AE1();var _XG1=_VG1._AE1();_eD1._CF1._lQ(_WG1._DC1);_eD1._DF1._lQ(_XG1._DC1);_WG1._cs1(_TG1);_XG1._cs1(_TG1);_SG1._Xf(this._8D1._LF1);_SG1._vC1&=~_CG1.__C1;++_SG1._QG1;if(_SG1._HG1()==false||_SG1._IG1()==false){_SG1._1H1(false);_WG1._DC1._lQ(_eD1._CF1);_XG1._DC1._lQ(_eD1._DF1);_WG1._dE1();_XG1._dE1();continue; }_WG1._Z41(true);_XG1._Z41(true);this._wF1._Wf();this._wF1._GG1(_WG1);this._wF1._GG1(_XG1);this._wF1._NG1(_SG1);_WG1._vC1|=_hC1._ZC1;_XG1._vC1|=_hC1._ZC1;_SG1._vC1|=_CG1._ZC1;var _2H1=[_WG1,_XG1];for(var i=0;i<2;++i){var body=_2H1[i];if(body._9P==_hC1._QC1){for(var _UD1=body._FC1;_UD1;_UD1=_UD1._kl){if(this._wF1._lF1==this._wF1._3H1){break;}if(this._wF1._xG1==this._wF1._4H1){break;}var _hD1=_UD1._hD1;if(_hD1._vC1&_CG1._ZC1){continue;}var other=_UD1.other;if(other._9P==_hC1._QC1&&body.__D1()==false&&other.__D1()==false){ continue;}var _JG1=_hD1._KG1._qE1;var _LG1=_hD1._MG1._qE1;if(_JG1||_LG1){continue;}_eD1._EF1._lQ(other._DC1);if((other._vC1&_hC1._ZC1)==0){other._cs1(_TG1);}_hD1._Xf(this._8D1._LF1);if(_hD1._HG1()==false){other._DC1._lQ(_eD1._EF1);other._dE1();continue;}if(_hD1._IG1()==false){other._DC1._lQ(_eD1._EF1);other._dE1();continue;}_hD1._vC1|=_CG1._ZC1;this._wF1._NG1(_hD1);if(other._vC1&_hC1._ZC1){continue;}other._vC1|=_hC1._ZC1;if(other._9P!=_hC1._iC1){other._Z41(true);}this._wF1._GG1(other);}}}var _5H1=new _1F1(); _5H1._AD=(1.0-_TG1)*step._AD;_5H1._2F1=1.0/_5H1._AD;_5H1._3F1=1.0;_5H1._5F1=20;_5H1._4F1=step._4F1;_5H1._6F1=false;this._wF1._4G1(_5H1,_WG1._uC1,_XG1._uC1);for(var i=0;i=this._VH1)return; this._TH1[this._UH1++]=_jl;},_JZ:function(){_wq1(this._Mz1=this._UH1;},_XH1:function(){return this._TH1[this._Mz1];}};function _YH1(_ZH1){this.__H1=new Array(_ZH1);this._0I1=0;this._1I1=0;this._2I1=0;this._3I1=null;}_YH1._4I1=function(){this._1t1=new _kr1();this._9i=0;};_YH1._5I1=function(x,y,i,_f4){this._kP=x;this._mP=y;this._6I1=i;this._7I1=_f4;};_YH1.prototype={_8I1:function(_1t1,_9i){var _f4=(this.__H1[this._0I1++]=new _YH1._4I1());_f4._1t1._lQ(_1t1); _f4._9i=_9i;},_9I1:function(_T61){_wq1(this._3I1==null);var _aI1=1/_T61;var _VX=new _kr1(+_yq1,+_yq1);var _zu1=new _kr1(-_yq1,-_yq1);for(var _ml=0;_ml>>0);this._2I1=1+((_aI1*(_zu1.y-_VX.y))>>>0);this._3I1=new Array(this._1I1*this._2I1);for(var i=0;i0){_Ql._HZ(new _YH1._5I1(x-1,y,i-1,_f4));}if(y>0){_Ql._HZ(new _YH1._5I1(x,y-1,i-this._1I1,_f4));}if(x_Vh){this._3I1[i]=_g4;if(x>0){_Ql._HZ(new _YH1._5I1(x-1,y,i-1,_g4));}if(y>0){_Ql._HZ(new _YH1._5I1(x,y-1,i-this._1I1,_g4));}if(x0){this._LI1.Multiply(1/this._RC1);this._IC1.Multiply(1/this._RC1);}this._KI1=0;this._JC1=0;for(var i=this._FI1; i0){this._JC1*=1/this._KI1;}this._JI1=this._EI1._JI1;}}};_DI1._VI1=1<<0;_DI1._WI1=1<<1;function _XI1(){this._Nv1=this._Ov1=0;this._Qo1=0;this._YI1=0.0;this._Bt1=new _kr1();};function _ZI1(){this.index=0;this.body=null;this._YI1=0.0;this._Bt1=new _kr1();this._nt1=0.0;};function _zF1(){this._JI1=0;this.__I1=0;this._0J1=0; this._cD1=1;this._1J1=1;this._MC1=1;this._2J1=1;this._3J1=1;this._4J1=1;this._6u1=0;this._5J1=0;this._6J1=0;this._7J1=new _zF1._8J1();this._TI1=new _zF1._8J1();this._UI1=new _zF1._8J1();this._9J1=null;this._aJ1=null;this._bJ1=null;this._QH1=new _zF1._8J1();this._cJ1=null;this._dJ1=new _zF1._8J1();this._5v1=0;this._eJ1=0;this._fJ1=null;this._xG1=0;this._4H1=0;this._EH1=null;this._JH1=0;this._gJ1=0;this._HH1=null;this._6v1=0;this._hJ1=0;this._7v1=null;this._iJ1=0;this._jJ1=0;this._kJ1=null;this._lJ1=0; this._mJ1=null;this._nJ1=0.05;this._oJ1=1.0;this._pJ1=0.25;this._qJ1=0.25;this._rJ1=0.25;this._sJ1=0.1;this._tJ1=0.2;this._uJ1=0.5;this._vJ1=0.5;this._wJ1=0.5;this._BC1=null;}_zF1._8J1=function(){this.data=null;this._xJ1=0;};_zF1.Proxy=function(){this.index=0;this._9i=0;};_zF1.Proxy._yJ1=function(_h4,_g4){return _h4._9i<_g4._9i;};_zF1.Proxy._zJ1=function(_h4,_g4){return _h4<_g4._9i;};_zF1.Proxy._AJ1=function(_h4,_g4){return _h4._9i<_g4;};_zF1._BJ1=function(){this._Nv1=this._Ov1=0;this._Qo1=0;this._271=0.0; this._At1=0.0;};_zF1._CJ1=function(){this._Nv1=this._Ov1=this._DJ1=0;this._Qo1=0;this._271=0.0;this._EJ1=new _kr1(),this._FJ1=new _kr1(),this._oI1=new _kr1();this._GJ1=0.0,this._HJ1=0.0,this._IJ1=0.0,this._ni=0.0;};_zF1._JJ1=_pI1._tI1;_zF1._KJ1=_pI1._uI1;_zF1._LJ1=_pI1._wI1;_zF1._MJ1=12;_zF1._NJ1=12;_zF1._OJ1=8*4;_zF1._PJ1=1<<(_zF1._NJ1-1);_zF1._QJ1=_zF1._OJ1-_zF1._NJ1;_zF1._RJ1=_zF1._OJ1-_zF1._NJ1-_zF1._MJ1;_zF1._SJ1=1<<_zF1._RJ1;_zF1._TJ1=_zF1._SJ1*(1<<(_zF1._MJ1-1));_zF1._UJ1=(1<<_zF1._MJ1)-1;_zF1._VJ1=(1<<_zF1._NJ1)-1; function _WJ1(x,y){return((y+_zF1._PJ1)<<_zF1._QJ1)+(_zF1._SJ1*x+_zF1._TJ1)>>>0;}function _XJ1(_9i,x,y){return _9i+(y<<_zF1._QJ1)+(x<<_zF1._RJ1);}function _YJ1(_yH1,_ZJ1){return _ZJ1&&_yH1>_ZJ1?_ZJ1:_yH1;}function __J1(_hD1){return(_hD1._Qo1&_pI1._rI1)==_pI1._rI1;}_zF1.prototype={_0K1:function(_1K1,_2K1,_3K1){_wq1(_3K1>_2K1);var _4K1=(_1K1)?_1K1.slice():[];_4K1.length=_3K1;return _4K1;},_5K1:function(buffer,_xJ1,_2K1,_3K1,_6K1){_wq1(_3K1>_2K1);_wq1(!_xJ1||_3K1<=_xJ1);if((!_6K1||buffer)&&!_xJ1){buffer=this._0K1(buffer, _2K1,_3K1);}return buffer;},_7K1:function(buffer,_2K1,_3K1,_6K1){_wq1(_3K1>_2K1);return this._5K1(buffer.data,buffer._xJ1,_2K1,_3K1,_6K1);},_8K1:function(buffer){if(!buffer){buffer=new Array(this._5J1);for(var i=0;i=this._5J1){var _yH1=this._6u1?2*this._6u1:_1r1;_yH1=_YJ1(_yH1,this._6J1);_yH1=_YJ1(_yH1,this._7J1._xJ1);_yH1=_YJ1(_yH1,this._TI1._xJ1);_yH1=_YJ1(_yH1,this._UI1._xJ1);_yH1=_YJ1(_yH1,this._QH1._xJ1);_yH1=_YJ1(_yH1, this._dJ1._xJ1);if(this._5J1<_yH1){this._7J1.data=this._7K1(this._7J1,this._5J1,_yH1,false);this._TI1.data=this._7K1(this._TI1,this._5J1,_yH1,false);this._UI1.data=this._7K1(this._UI1,this._5J1,_yH1,false);this._9J1=this._5K1(this._9J1,0,this._5J1,_yH1,false);this._aJ1=this._5K1(this._aJ1,0,this._5J1,_yH1,true);this._bJ1=this._5K1(this._bJ1,0,this._5J1,_yH1,true);this._QH1.data=this._7K1(this._QH1,this._5J1,_yH1,true);this._cJ1=this._5K1(this._cJ1,0,this._5J1,_yH1,false);this._dJ1.data=this._7K1(this._dJ1, this._5J1,_yH1,true);this._5J1=_yH1;}}if(this._6u1>=this._5J1){return _Wq1;}var index=this._6u1++;this._7J1.data[index]=_3D1._Qo1;this._TI1.data[index]=_3D1.position._63();this._UI1.data[index]=_3D1._Ea1._63();this._cJ1[index]=null;if(this._bJ1){this._bJ1[index]=0;}if(this._QH1.data||!_3D1.color._iI1()){this._QH1.data=this._8K1(this._QH1.data);this._QH1.data[index]=_3D1.color._63();}if(this._dJ1.data||_3D1._bv1){this._dJ1.data=this._8K1(this._dJ1.data);this._dJ1.data[index]=_3D1._bv1;}if(this._5v1>=this._eJ1){ var _2K1=this._eJ1;var _3K1=this._5v1?2*this._5v1:_1r1;this._fJ1=this._0K1(this._fJ1,_2K1,_3K1);this._eJ1=_3K1;}this._fJ1[this._5v1]=new _zF1.Proxy();this._fJ1[this._5v1++].index=index;return index;},_jH1:function(index,_kH1){var _Qo1=_pI1._rI1;if(_kH1){_Qo1|=_pI1._zI1;}this._7J1.data[index]|=_Qo1;},_lH1:function(shape,_3s1,_kH1){function _9K1(_MH1,shape,_3s1,_kH1){this._EI1=_MH1;this._oE1=shape;this._yz1=_3s1;this._aK1=_kH1;this._SF1=0;}_9K1.prototype={_ZE1:function(_K41){return false;},__E1:function(index){ _wq1(index>=0&&index_g4){var _iK1=_h4;_h4=_g4;_g4=_iK1;}if(_eK1<=_h4&&_g4=this._hJ1){var _2K1=this._hJ1;var _3K1=this._6v1?2*this._6v1:_1r1;this._7v1=this._0K1(this._7v1,_2K1,_3K1);this._hJ1=_3K1;}var _xv1=this._7v1[this._6v1]=new _zF1._BJ1();_xv1._Nv1=_h4;_xv1._Ov1=_g4;_xv1._Qo1=_hD1._Qo1;_xv1._271=_cK1._271;_xv1._At1=_ks1(this._TI1.data[_h4],this._TI1.data[_g4]); this._6v1++;}}}if(_cK1._Qo1&_zF1._KJ1){var _jK1=new _YH1(lastIndex-_eK1);for(var i=_eK1;i=this._jJ1){var _2K1=this._jJ1;var _3K1=this._iJ1?2*this._iJ1:_1r1; this._kJ1=this._0K1(this._kJ1,_2K1,_3K1);this._jJ1=_3K1;}var _pK1=this._kJ1[this._iJ1];_pK1._Nv1=_h4;_pK1._Ov1=_g4;_pK1._DJ1=c;_pK1._Qo1=this._7J1.data[_h4]|this._7J1.data[_g4]|this._7J1.data[c];_pK1._271=_cK1._271;var _qK1=_kr1.Multiply(1.0/3.0,_kr1._Gf(_EJ1,_kr1._Gf(_FJ1,_oI1)));_pK1._EJ1=_kr1._rr1(_EJ1,_qK1);_pK1._FJ1=_kr1._rr1(_FJ1,_qK1);_pK1._oI1=_kr1._rr1(_oI1,_qK1);_pK1._GJ1=-_es1(_nK1,_lK1);_pK1._HJ1=-_es1(_lK1,_mK1);_pK1._IJ1=-_es1(_mK1,_nK1);_pK1._ni=_fs1(_EJ1,_FJ1)+_fs1(_FJ1,_oI1)+_fs1(_oI1, _EJ1);this._iJ1++;}};_jK1._gI1(_hm1);}if(_cK1._BI1&_pI1._VI1){this._rK1(_B71);}return _B71;},_nH1:function(_oH1,_pH1){_wq1(_oH1!=_pH1);this._sK1(_pH1._FI1,_pH1._GI1,this._6u1);_wq1(_pH1._GI1==this._6u1);this._sK1(_oH1._FI1,_oH1._GI1,_pH1._FI1);this._wq1(_oH1._GI1==_pH1._FI1);var _tK1=0;for(var i=_oH1._FI1;i<_pH1._GI1;i++){_tK1|=this._7J1.data[i];}this._hK1(true);if(_tK1&_zF1._JJ1){for(var _ml=0;_ml_g4){var _iK1=_h4;_h4=_g4; _g4=_iK1;}if(_oH1._FI1<=_h4&&_h4<_oH1._GI1&&_pH1._FI1<=_g4&&_g4<_pH1._GI1){if(this._6v1>=this._hJ1){var _2K1=this._hJ1;var _3K1=this._6v1?2*this._6v1:_1r1;this._7v1=this._0K1(this._7v1,_2K1,_3K1);this._hJ1=_3K1;}var _xv1=this._7v1[this._6v1]=new _zF1._BJ1();_xv1._Nv1=_h4;_xv1._Ov1=_g4;_xv1._Qo1=_hD1._Qo1;_xv1._271=_Gs1(_oH1._II1,_pH1._II1);_xv1._At1=_ks1(this._TI1.data[_h4],this._TI1.data[_g4]);this._6v1++;}}}if(_tK1&_zF1._KJ1){}for(var i=_pH1._FI1;i<_pH1._GI1;i++){this._cJ1[i]=_oH1;}var _BI1=_oH1._HI1|_pH1._HI1; _oH1._HI1=_BI1;_oH1._GI1=_pH1._GI1;_pH1._FI1=_pH1._GI1;this._uK1(_pH1);if(_BI1&_pI1._VI1){this._rK1(_oH1);}},_uK1:function(_B71){_wq1(this._lJ1>0);_wq1(_B71);if(this._BC1._iF1){this._BC1._iF1._vK1(_B71);}for(var i=_B71._FI1;i<_B71._GI1;i++){this._cJ1[i]=null;}if(_B71._GC1){_B71._GC1._HC1=_B71._HC1;}if(_B71._HC1){_B71._HC1._GC1=_B71._GC1;}if(_B71==this._mJ1){this._mJ1=_B71._HC1;}--this._lJ1;},_rK1:function(_B71){for(var i=_B71._FI1;i<_B71._GI1;i++){this._9J1[i]=0;}for(var _ml=0;_ml=_B71._FI1&&_h4<_B71._GI1&&_g4>=_B71._FI1&&_g4<_B71._GI1){var w=_hD1._YI1;this._9J1[_h4]+=w;this._9J1[_g4]+=w;}}this._bJ1=this._8K1(this._bJ1);for(var i=_B71._FI1;i<_B71._GI1;i++){var w=this._9J1[i];this._bJ1[i]=w<0.8?0:_yq1;}var _wK1=_B71._f71();for(var _J6=0;_J6<_wK1;_J6++){var _dI1=false;for(var _ml=0;_ml=_B71._FI1&&_h4<_B71._GI1&&_g4>=_B71._FI1&&_g4<_B71._GI1){ var _e4=1-_hD1._YI1;var _xK1=this._bJ1[_h4];var _yK1=this._bJ1[_g4];var _zK1=_yK1+_e4;var _AK1=_xK1+_e4;if(_xK1>_zK1){_xK1=_zK1;_dI1=true;}if(_yK1>_AK1){_yK1=_AK1;_dI1=true;}this._bJ1[_h4]=_xK1;this._bJ1[_g4]=_yK1;}}if(!_dI1){break;}}for(var i=_B71._FI1;i<_B71._GI1;i++){var _gh=this._bJ1[i];if(_gh<_yq1){_gh*=this._2J1;}else {_gh=0;}this._bJ1[i]=_gh;}},_NG1:function(_h4,_g4){var _Bm=_kr1._rr1(this._TI1.data[_g4],this._TI1.data[_h4]);var _0E=_es1(_Bm,_Bm);if(_0E=this._4H1){var _2K1=this._4H1; var _3K1=this._xG1?2*this._xG1:_1r1;this._EH1=this._0K1(this._EH1,_2K1,_3K1);this._4H1=_3K1;}var _BK1=_jr1(_0E);var _hD1=this._EH1[this._xG1]=new _XI1();_hD1._Nv1=_h4;_hD1._Ov1=_g4;_hD1._Qo1=this._7J1.data[_h4]|this._7J1.data[_g4];_hD1._YI1=1-_0E*_BK1*this._3J1;_hD1._Bt1._lQ(_kr1.Multiply(_BK1,_Bm));this._xG1++;}},_hK1:function(_CK1){var _DK1=0;var _EK1=this._5v1;for(var _FK1=_DK1;_FK1<_EK1;++_FK1){var _DE1=this._fJ1[_FK1];var i=_DE1.index;var _gh=this._TI1.data[i];_DE1._9i=_WJ1(this._3J1*_gh.x,this._3J1*_gh.y); }this._fJ1._4q1(_DK1,_EK1,function(_h4,_g4){return _zF1.Proxy._yJ1(_h4,_g4);});this._xG1=0;for(var _h4=_DK1,c=_DK1;_h4<_EK1;_h4++){var _GK1=_XJ1(this._fJ1[_h4]._9i,1,0);for(var _g4=_h4+1;_g4<_EK1;_g4++){if(_GK10?1/_LK1:0;var _OK1=_MK1>0?1/_MK1:0;var _CE1=shape._rt1();for(var _ut1=0;_ut1<_CE1;_ut1++){var _wt1=_K41._BE1(_ut1)._63();_wt1._Mt1.x-=this._EI1._2J1;_wt1._Mt1.y-=this._EI1._2J1;_wt1._Nt1.x+=this._EI1._2J1;_wt1._Nt1.y+=this._EI1._2J1;var _DK1=0;var _EK1=this._EI1._5v1;var _PK1=this._EI1._fJ1._9q1(_DK1,_EK1,_WJ1(this._EI1._3J1*_wt1._Mt1.x,this._EI1._3J1*_wt1._Mt1.y),function(_h4, _g4){return _zF1.Proxy._AJ1(_h4,_g4);});var _QK1=this._EI1._fJ1._bq1(_PK1,_EK1,_WJ1(this._EI1._3J1*_wt1._Nt1.x,this._EI1._3J1*_wt1._Nt1.y),function(_h4,_g4){return _zF1.Proxy._zJ1(_h4,_g4);});for(var _DE1=_PK1;_DE1!=_QK1;++_DE1){var _RK1=this._EI1._fJ1[_DE1];var _h4=_RK1.index;var _SK1=this._EI1._TI1.data[_h4];if(_wt1._Mt1.x<=_SK1.x&&_SK1.x<=_wt1._Nt1.x&&_wt1._Mt1.y<=_SK1.y&&_SK1.y<=_wt1._Nt1.y){var _Bm=[0];var _t6=new _kr1();_K41._zt1(_SK1,_Bm,_t6,_ut1);if(_Bm[0]=this._EI1._gJ1){var _2K1=this._EI1._gJ1;var _3K1=this._EI1._JH1?2*this._EI1._JH1:_1r1;this._EI1._HH1=this._EI1._0K1(this._EI1._HH1,_2K1,_3K1);this._EI1._gJ1=_3K1;}var _hD1=this._EI1._HH1[this._EI1._JH1]=new _ZI1();_hD1.index=_h4;_hD1.body=_g4;_hD1._YI1=1-_Bm[0]*this._EI1._3J1;_hD1._Bt1._lQ(_t6._or1());_hD1._nt1=1/(_TK1+_NK1+_OK1*_WK1*_WK1);this._EI1._JH1++;}}}}return true;},__E1:function(i){return false;}};var _hm1=new _KK1(this);this._BC1._hG1(_hm1, _wt1);},_Hr1:function(step){++this._JI1;if(this._6u1==0){return;}this.__I1=0;for(var i=0;i_YK1){_Y4.Multiply(_hr1(_YK1/__4));}}this.__K1(step);if(this._0J1&_DI1._WI1){ this._0L1(step);}if(this.__I1&_pI1._sI1){this._1L1(step);}for(var i=0;i_vL1){var _g4=_hD1.body;var _v6=_hD1._nt1;var _gh=this._TI1.data[_h4];var _t6=_hD1._Bt1;var _ED=_kr1.Multiply(_uL1*_v6*(w-_vL1),_t6);this._UI1.data[_h4]._rr1(_kr1.Multiply(this._UK1(), _ED));_g4._zD1(_ED,_gh,true);}}}for(var _ml=0;_ml_vL1){var _h4=_hD1._Nv1;var _g4=_hD1._Ov1;var _t6=_hD1._Bt1;var _ED=_kr1.Multiply(_uL1*(w-_vL1),_t6);this._UI1.data[_h4]._rr1(_ED);this._UI1.data[_g4]._Gf(_ED);}}}},_7L1:function(step){this._bJ1=this._8K1(this._bJ1);var _wL1=step._2F1*this._vJ1;for(var _ml=0;_ml>8;var _BL1=(_xL1*(_zL1._f4-_yL1._f4))>>8; var _CL1=(_xL1*(_zL1._g4-_yL1._g4))>>8;var _DL1=(_xL1*(_zL1._h4-_yL1._h4))>>8;_yL1._e4+=_AL1;_yL1._f4+=_BL1;_yL1._g4+=_CL1;_yL1._h4+=_DL1;_zL1._e4-=_AL1;_zL1._f4-=_BL1;_zL1._g4-=_CL1;_zL1._h4-=_DL1;}}},_XK1:function(){var _Yh1=0;var _EL1=new Array(this._6u1);for(var i=0;i=0){_eK1=_Gs1(_eK1,__5); lastIndex=_Is1(lastIndex,__5+1);}else {_ML1=true;}}if(_eK1=0){var _RL1=_hr1(_QL1);var _J6=(-_PL1-_RL1)/__4;if(_J6>_Lt1){continue;}if(_J6<0){_J6=(-_PL1+_RL1)/__4;if(_J6<0||_J6>_Lt1){continue;}}var _t6=_kr1._Gf(_gh,_kr1._rr1(_J6,_Y4));_t6._tr1();var _ED=_hm1.__E1(i,_kr1._Gf(_jG1,_kr1.Multiply(_J6,_Y4)),_t6,_J6);_Lt1=_Gs1(_Lt1,_ED);if(_Lt1<=0){break;}}}},_KH1:function(){var _SL1=0;for(var _ml=0;_ml_YL1?_XL1:_YL1;}function _ZL1(){this._6C1=null;this.__L1=false;};function _0M1(){this.other=null;this._hD1=null;this._il=null;this._kl=null;};function _CG1(){this._1M1=new _0M1(); this._2M1=new _0M1();this._3M1=new _dx1();}_CG1._4M1=new _dx1();_CG1.prototype={_Gf1:function(_UG1,_Nv1,_VG1,_Ov1){this._RG1=0;this._vC1=_CG1._5M1;this._KG1=_UG1||null;this._MG1=_VG1||null;this._6M1=_Nv1||0;this._7M1=_Ov1||0;this._3M1._fx1=0;this._GC1=null;this._HC1=null;this._1M1._hD1=null;this._1M1._il=null;this._1M1._kl=null;this._1M1.other=null;this._2M1._hD1=null;this._2M1._il=null;this._2M1._kl=null;this._2M1.other=null;this._QG1=0;if(_UG1){this._rE1=_TL1(this._KG1._rE1,this._MG1._rE1);this._sE1=_WL1(this._KG1._sE1, this._MG1._sE1);}else {this._rE1=0;this._sE1=0;}this._8M1=0.0;},_9M1:function(){return this._3M1;},_aM1:function(_bM1){var _ZF1=this._KG1._AE1();var __F1=this._MG1._AE1();var _lA1=this._KG1._tE1();var _mA1=this._MG1._tE1();_bM1._qx1(this._3M1,_ZF1._as1(),_lA1._qt1,__F1._as1(),_mA1._qt1);},_IG1:function(){return(this._vC1&_CG1._cM1)==_CG1._cM1;},_1H1:function(_ZD1){if(_ZD1){this._vC1|=_CG1._5M1;}else {this._vC1&=~_CG1._5M1;}},_HG1:function(){return(this._vC1&_CG1._5M1)==_CG1._5M1;},_aE1:function(){return this._HC1; },_jD1:function(){return this._KG1;},_bG1:function(){return this._6M1;},_lD1:function(){return this._MG1;},_dG1:function(){return this._7M1;},_Q41:function(friction){this._rE1=friction;},_K61:function(){return this._rE1;},_dM1:function(){this._rE1=_TL1(this._KG1._rE1,this._MG1._rE1);},_P41:function(_lE1){this._sE1=_lE1;},_M61:function(){return this._sE1;},_eM1:function(){this._sE1=_WL1(this._KG1._sE1,this._MG1._sE1);},_fM1:function(speed){this._8M1=speed;},_gM1:function(){return this._8M1;},_Rr:function(_gx1, _rx1,_tx1){},_zE1:function(){this._vC1|=_CG1._hM1;},_iM1:null,_Xf:function(listener){_CG1._4M1._lQ(this._3M1);this._vC1|=_CG1._5M1;var _jM1=false;var _kM1=(this._vC1&_CG1._cM1)==_CG1._cM1;var _JG1=this._KG1._vE1();var _LG1=this._MG1._vE1();var _uE1=_JG1||_LG1;var _ZF1=this._KG1._AE1();var __F1=this._MG1._AE1();var _rx1=_ZF1._as1();var _tx1=__F1._as1();if(_uE1){var _lA1=this._KG1._tE1();var _mA1=this._MG1._tE1();_jM1=_kA1(_lA1,this._6M1,_mA1,this._7M1,_rx1,_tx1);this._3M1._fx1=0;}else {this._Rr(this._3M1,_rx1, _tx1);_jM1=this._3M1._fx1>0;for(var i=0;i0&&_iD1._vE1()==false&&_kD1._vE1()==false){_iD1._AE1()._Z41(true);_kD1._AE1()._Z41(true);}var _4x1=_iD1._Vl1();var _5x1=_kD1._Vl1();_wq1(0<=_4x1&&_5x1<_pt1._Gt1);_wq1(0<=_4x1&&_5x1<_pt1._Gt1);_CG1._CM1[_4x1][_5x1]._6C1._DM1.push(_hD1);};_CG1._CM1=[];_CG1._HM1=false;var _IM1=new _LE1();var _JM1=new _SE1();function _hF1(){this._9D1=new _1v1();this._FC1=null;this._xG1=0; this._JF1=_IM1;this._LF1=_JM1;}_hF1.prototype={_wv1:function(_KM1,_LM1){var _Qv1=_KM1;var _Rv1=_LM1;var _iD1=_Qv1._K41;var _kD1=_Rv1._K41;var _Nv1=_Qv1._ut1;var _Ov1=_Rv1._ut1;var _ZF1=_iD1._AE1();var __F1=_kD1._AE1();if(_ZF1==__F1){return;}var _ju1=__F1._9E1();while(_ju1){if(_ju1.other==_ZF1){var _UG1=_ju1._hD1._jD1();var _VG1=_ju1._hD1._lD1();var _iB1=_ju1._hD1._bG1();var _jB1=_ju1._hD1._dG1();if(_UG1==_iD1&&_VG1==_kD1&&_iB1==_Nv1&&_jB1==_Ov1){return;}if(_UG1==_kD1&&_VG1==_iD1&&_iB1==_Ov1&&_jB1==_Nv1){return; }}_ju1=_ju1._kl;}if(__F1._eE1(_ZF1)==false){return;}if(this._JF1&&this._JF1._eE1(_iD1,_kD1)==false){return;}var c=_CG1._Gf1(_iD1,_Nv1,_kD1,_Ov1);if(c==null){return;}_iD1=c._jD1();_kD1=c._lD1();_Nv1=c._bG1();_Ov1=c._dG1();_ZF1=_iD1._AE1();__F1=_kD1._AE1();c._GC1=null;c._HC1=this._FC1;if(this._FC1!=null){this._FC1._GC1=c;}this._FC1=c;c._1M1._hD1=c;c._1M1.other=__F1;c._1M1._il=null;c._1M1._kl=_ZF1._FC1;if(_ZF1._FC1!=null){_ZF1._FC1._il=c._1M1;}_ZF1._FC1=c._1M1;c._2M1._hD1=c;c._2M1.other=_ZF1;c._2M1._il=null; c._2M1._kl=__F1._FC1;if(__F1._FC1!=null){__F1._FC1._il=c._2M1;}__F1._FC1=c._2M1;if(_iD1._vE1()==false&&_kD1._vE1()==false){_ZF1._Z41(true);__F1._Z41(true);}++this._xG1;},_2G1:function(){this._9D1._pv1(this);},_vm1:function(c){var _iD1=c._jD1();var _kD1=c._lD1();var _ZF1=_iD1._AE1();var __F1=_kD1._AE1();if(this._LF1&&c._IG1()){this._LF1._UE1(c);}if(c._GC1){c._GC1._HC1=c._HC1;}if(c._HC1){c._HC1._GC1=c._GC1;}if(c==this._FC1){this._FC1=c._HC1;}if(c._1M1._il){c._1M1._il._kl=c._1M1._kl;}if(c._1M1._kl){c._1M1._kl._il=c._1M1._il; }if(c._1M1==_ZF1._FC1){_ZF1._FC1=c._1M1._kl;}if(c._2M1._il){c._2M1._il._kl=c._2M1._kl;}if(c._2M1._kl){c._2M1._kl._il=c._2M1._il;}if(c._2M1==__F1._FC1){__F1._FC1=c._2M1._kl;}_CG1._vm1(c);--this._xG1;},_Qz1:function(){var c=this._FC1;while(c){var _iD1=c._jD1();var _kD1=c._lD1();var _Nv1=c._bG1();var _Ov1=c._dG1();var _ZF1=_iD1._AE1();var __F1=_kD1._AE1();if(c._vC1&_CG1._hM1){if(__F1._eE1(_ZF1)==false){var _MM1=c;c=_MM1._aE1();this._vm1(_MM1);continue;}if(this._JF1&&this._JF1._eE1(_iD1,_kD1)==false){var _MM1=c; c=_MM1._aE1();this._vm1(_MM1);continue;}c._vC1&=~_CG1._hM1;}var _YG1=_ZF1._2E1()&&_ZF1._9P!=_hC1._iC1;var _ZG1=__F1._2E1()&&__F1._9P!=_hC1._iC1;if(_YG1==false&&_ZG1==false){c=c._aE1();continue;}var _Xu1=_iD1._XD1[_Nv1]._cv1;var _Yu1=_kD1._XD1[_Ov1]._cv1;var _NM1=this._9D1._H61(_Xu1,_Yu1);if(_NM1==false){var _MM1=c;c=_MM1._aE1();this._vm1(_MM1);continue;}c._Xf(this._LF1);c=c._aE1();}}};function _OM1(){this._0x1=new _kr1();this._1x1=new _kr1();this._ax1=0;this._bx1=0;this._PM1=0;this._QM1=0;this._RM1=0;}function _SM1(){ this._TM1=new Array(_Bq1);this._ex1=new _kr1();this._9x1=new _kr1();this._Nv1=0;this._Ov1=0;this._UM1=0,this._VM1=0;this._WM1=new _kr1(),this._XM1=new _kr1();this._YM1=0,this._ZM1=0;this.type=0;this._sx1=0,this._ux1=0;this._fx1=0;};function __M1(){this.points=new Array(_Bq1);for(var i=0;i0);switch(_oI1.type){case _dx1._hx1:{var _vx1=(_rx1.q.c*_oI1._9x1.x-_rx1.q._ni*_oI1._9x1.y)+_rx1._gh.x;var _wx1=(_rx1.q._ni*_oI1._9x1.x+_rx1.q.c*_oI1._9x1.y)+_rx1._gh.y;var _xx1=(_tx1.q.c*_oI1._TM1[0].x-_tx1.q._ni*_oI1._TM1[0].y)+_tx1._gh.x;var _yx1=(_tx1.q._ni*_oI1._TM1[0].x+_tx1.q.c*_oI1._TM1[0].y)+_tx1._gh.y;this._cx1.x=0.5*(_vx1+_xx1);this._cx1.y=0.5*(_wx1+_yx1); this._Bt1.x=_xx1-_vx1;this._Bt1.y=_yx1-_wx1;var _4N1=this._Bt1.x;var _5N1=this._Bt1.y;this._Bt1._tr1();this._by1=(_4N1*this._Bt1.x+_5N1*this._Bt1.y)-_oI1._sx1-_oI1._ux1;}break;case _dx1._ix1:{this._Bt1.x=_rx1.q.c*_oI1._ex1.x-_rx1.q._ni*_oI1._ex1.y;this._Bt1.y=_rx1.q._ni*_oI1._ex1.x+_rx1.q.c*_oI1._ex1.y;var _Dx1=(_rx1.q.c*_oI1._9x1.x-_rx1.q._ni*_oI1._9x1.y)+_rx1._gh.x;var _Ex1=(_rx1.q._ni*_oI1._9x1.x+_rx1.q.c*_oI1._9x1.y)+_rx1._gh.y;var _Fx1=(_tx1.q.c*_oI1._TM1[index].x-_tx1.q._ni*_oI1._TM1[index].y)+_tx1._gh.x; var _Gx1=(_tx1.q._ni*_oI1._TM1[index].x+_tx1.q.c*_oI1._TM1[index].y)+_tx1._gh.y;this._by1=((_Fx1-_Dx1)*this._Bt1.x+(_Gx1-_Ex1)*this._Bt1.y)-_oI1._sx1-_oI1._ux1;this._cx1.x=_Fx1;this._cx1.y=_Gx1;}break;case _dx1._jx1:{this._Bt1.x=_tx1.q.c*_oI1._ex1.x-_tx1.q._ni*_oI1._ex1.y;this._Bt1.y=_tx1.q._ni*_oI1._ex1.x+_tx1.q.c*_oI1._ex1.y;var _Dx1=(_tx1.q.c*_oI1._9x1.x-_tx1.q._ni*_oI1._9x1.y)+_tx1._gh.x;var _Ex1=(_tx1.q._ni*_oI1._9x1.x+_tx1.q.c*_oI1._9x1.y)+_tx1._gh.y;var _Fx1=(_rx1.q.c*_oI1._TM1[index].x-_rx1.q._ni*_oI1._TM1[index].y)+_rx1._gh.x; var _Gx1=(_rx1.q._ni*_oI1._TM1[index].x+_rx1.q.c*_oI1._TM1[index].y)+_rx1._gh.y;this._by1=((_Fx1-_Dx1)*this._Bt1.x+(_Gx1-_Ex1)*this._Bt1.y)-_oI1._sx1-_oI1._ux1;this._cx1.x=_Fx1;this._cx1.y=_Gx1;this._Bt1.x=-this._Bt1.x;this._Bt1.y=-this._Bt1.y;}break;}}};function _6N1(){this.step=new _1F1();this._7N1=null;this._q8=0;this._aF1=null;this._bF1=null;}function _8N1(){this._9N1=[];this._aN1=[];}_8N1._bN1=new _2s1();_8N1._cN1=new _2s1();_8N1._dN1=new _3N1();_8N1.prototype={_WS:function(_3D1){this._cL1=_3D1.step; this._6u1=_3D1._q8;this._9N1.length=this._6u1;this._aN1.length=this._6u1;this._eN1=_3D1._aF1;this._fN1=_3D1._bF1;this._gN1=_3D1._7N1;for(var i=0;i0);var _hN1=this._aN1[i]||new __M1();_hN1.friction=_hD1._rE1;_hN1._lE1=_hD1._sE1;_hN1._1N1=_hD1._8M1;_hN1._Nv1=_ZF1._uC1; _hN1._Ov1=__F1._uC1;_hN1._UM1=_ZF1._SC1;_hN1._VM1=__F1._SC1;_hN1._YM1=_ZF1._UC1;_hN1._ZM1=__F1._UC1;_hN1._2N1=i;_hN1._fx1=_fx1;_hN1._0N1._lr1();_hN1._PM1._lr1();this._aN1[i]=_hN1;var _oI1=this._9N1[i]||new _SM1();_oI1._Nv1=_ZF1._uC1;_oI1._Ov1=__F1._uC1;_oI1._UM1=_ZF1._SC1;_oI1._VM1=__F1._SC1;_oI1._WM1.x=_ZF1._DC1._5s1.x;_oI1._WM1.y=_ZF1._DC1._5s1.y;_oI1._XM1.x=__F1._DC1._5s1.x;_oI1._XM1.y=__F1._DC1._5s1.y;_oI1._YM1=_ZF1._UC1;_oI1._ZM1=__F1._UC1;_oI1._ex1.x=_gx1._ex1.x;_oI1._ex1.y=_gx1._ex1.y;_oI1._9x1.x=_gx1._9x1.x; _oI1._9x1.y=_gx1._9x1.y;_oI1._fx1=_fx1;_oI1._sx1=_sx1;_oI1._ux1=_ux1;_oI1.type=_gx1.type;this._9N1[i]=_oI1;for(var __5=0;__5<_fx1;++__5){var _8z1=_gx1.points[__5];var _iN1=_hN1.points[__5];if(this._cL1._6F1){_iN1._ax1=this._cL1._3F1*_8z1._ax1;_iN1._bx1=this._cL1._3F1*_8z1._bx1;}else {_iN1._ax1=0.0;_iN1._bx1=0.0;}_iN1._0x1._lr1();_iN1._1x1._lr1();_iN1._PM1=0.0;_iN1._QM1=0.0;_iN1._RM1=0.0;_oI1._TM1[__5]=_8z1._9x1;}}},_jN1:function(){for(var i=0;i0);_8N1._bN1.q.Set(_mN1);_8N1._cN1.q.Set(_oN1);_8N1._bN1._gh.x=_aG1.x-(_8N1._bN1.q.c*_WM1.x-_8N1._bN1.q._ni*_WM1.y); _8N1._bN1._gh.y=_aG1.y-(_8N1._bN1.q._ni*_WM1.x+_8N1._bN1.q.c*_WM1.y);_8N1._cN1._gh.x=_cG1.x-(_8N1._cN1.q.c*_XM1.x-_8N1._cN1.q._ni*_XM1.y);_8N1._cN1._gh.y=_cG1.y-(_8N1._cN1.q._ni*_XM1.x+_8N1._cN1.q.c*_XM1.y);var _bM1=new _ox1();_bM1._qx1(_gx1,_8N1._bN1,_sx1,_8N1._cN1,_ux1);_hN1._Bt1.x=_bM1._Bt1.x;_hN1._Bt1.y=_bM1._Bt1.y;var _fx1=_hN1._fx1;for(var __5=0;__5<_fx1;++__5){var _iN1=_hN1.points[__5];_iN1._0x1.x=_bM1.points[__5].x-_aG1.x;_iN1._0x1.y=_bM1.points[__5].y-_aG1.y;_iN1._1x1.x=_bM1.points[__5].x-_cG1.x; _iN1._1x1.y=_bM1.points[__5].y-_cG1.y;var _qN1=_iN1._0x1.x*_hN1._Bt1.y-_iN1._0x1.y*_hN1._Bt1.x;var _rN1=_iN1._1x1.x*_hN1._Bt1.y-_iN1._1x1.y*_hN1._Bt1.x;var _sN1=_kN1+_lN1+_iB1*_qN1*_qN1+_jB1*_rN1*_rN1;_iN1._PM1=_sN1>0.0?1.0/_sN1:0.0;var _Yy1=1.0*_hN1._Bt1.y;var _Zy1=-1.0*_hN1._Bt1.x;var _tN1=_iN1._0x1.x*_Zy1-_iN1._0x1.y*_Yy1;var _uN1=_iN1._1x1.x*_Zy1-_iN1._1x1.y*_Yy1;var _vN1=_kN1+_lN1+_iB1*_tN1*_tN1+_jB1*_uN1*_uN1;_iN1._QM1=_vN1>0.0?1.0/_vN1:0.0;_iN1._RM1=0.0;var _wN1=_hN1._Bt1.x*(((_pN1.x+(-__v1*_iN1._1x1.y))-_nN1.x)-(-_Zv1*_iN1._0x1.y))+_hN1._Bt1.y*(((_pN1.y+(__v1*_iN1._1x1.x))-_nN1.y)-(_Zv1*_iN1._0x1.x)); if(_wN1<-_Kq1){_iN1._RM1=-_hN1._lE1*_wN1;}}if(_hN1._fx1==2){var _xN1=_hN1.points[0];var _yN1=_hN1.points[1];var _zN1=_xN1._0x1.x*_hN1._Bt1.y-_xN1._0x1.y*_hN1._Bt1.x;var _AN1=_xN1._1x1.x*_hN1._Bt1.y-_xN1._1x1.y*_hN1._Bt1.x;var _BN1=_yN1._0x1.x*_hN1._Bt1.y-_yN1._0x1.y*_hN1._Bt1.x;var _CN1=_yN1._1x1.x*_hN1._Bt1.y-_yN1._1x1.y*_hN1._Bt1.x;var _DN1=_kN1+_lN1+_iB1*_zN1*_zN1+_jB1*_AN1*_AN1;var _EN1=_kN1+_lN1+_iB1*_BN1*_BN1+_jB1*_CN1*_CN1;var _FN1=_kN1+_lN1+_iB1*_zN1*_BN1+_jB1*_AN1*_CN1;var _GN1=1000.0;if(_DN1*_DN1<_GN1*(_DN1*_EN1-_FN1*_FN1)){ _hN1._0N1._bk.x=_DN1;_hN1._0N1._bk.y=_FN1;_hN1._0N1._OM.x=_FN1;_hN1._0N1._OM.y=_EN1;_hN1._PM1._lQ(_hN1._0N1._Er1());}else {_hN1._fx1=1;}}}},_HN1:function(){for(var i=0;i=0.0&&ay>=0.0);var _RN1=_pN1.x+(-__v1*_PN1._1x1.y)-_nN1.x-(-_Zv1*_PN1._0x1.y);var _SN1=_pN1.y+(__v1*_PN1._1x1.x)-_nN1.y-(_Zv1*_PN1._0x1.x);var _TN1=_pN1.x+(-__v1*_QN1._1x1.y)-_nN1.x-(-_Zv1*_QN1._0x1.y); var _UN1=_pN1.y+(__v1*_QN1._1x1.x)-_nN1.y-(_Zv1*_QN1._0x1.x);var _VN1=_RN1*_Bt1.x+_SN1*_Bt1.y;var _WN1=_TN1*_Bt1.x+_UN1*_Bt1.y;var _eI1=_VN1-_PN1._RM1;var _fI1=_WN1-_QN1._RM1;_eI1-=_hN1._0N1._bk.x*ax+_hN1._0N1._OM.x*ay;_fI1-=_hN1._0N1._bk.y*ax+_hN1._0N1._OM.y*ay;for(;;){var _N6=-(_hN1._PM1._bk.x*_eI1+_hN1._PM1._OM.x*_fI1);var _XN1=-(_hN1._PM1._bk.y*_eI1+_hN1._PM1._OM.y*_fI1);if(_N6>=0.0&&_XN1>=0.0){var _db=_N6-ax;var _eb=_XN1-ay;var _YN1=_db*_Bt1.x;var _ZN1=_db*_Bt1.y;var __N1=_eb*_Bt1.x;var _0O1=_eb*_Bt1.y; _nN1.x-=_kN1*(_YN1+__N1);_nN1.y-=_kN1*(_ZN1+_0O1);_Zv1-=_iB1*((_PN1._0x1.x*_ZN1-_PN1._0x1.y*_YN1)+(_QN1._0x1.x*_0O1-_QN1._0x1.y*__N1));_pN1.x+=_lN1*(_YN1+__N1);_pN1.y+=_lN1*(_ZN1+_0O1);__v1+=_jB1*((_PN1._1x1.x*_ZN1-_PN1._1x1.y*_YN1)+(_QN1._1x1.x*_0O1-_QN1._1x1.y*__N1));_PN1._ax1=_N6;_QN1._ax1=_XN1;break;}_N6=-_PN1._PM1*_eI1;_XN1=0.0;_VN1=0.0;_WN1=_hN1._0N1._bk.y*_N6+_fI1;if(_N6>=0.0&&_WN1>=0.0){_db=_N6-ax;_eb=_XN1-ay;_YN1=_db*_Bt1.x;_ZN1=_db*_Bt1.y;__N1=_eb*_Bt1.x;_0O1=_eb*_Bt1.y;_nN1.x-=_kN1*(_YN1+__N1); _nN1.y-=_kN1*(_ZN1+_0O1);_Zv1-=_iB1*((_PN1._0x1.x*_ZN1-_PN1._0x1.y*_YN1)+(_QN1._0x1.x*_0O1-_QN1._0x1.y*__N1));_pN1.x+=_lN1*(_YN1+__N1);_pN1.y+=_lN1*(_ZN1+_0O1);__v1+=_jB1*((_PN1._1x1.x*_ZN1-_PN1._1x1.y*_YN1)+(_QN1._1x1.x*_0O1-_QN1._1x1.y*__N1));_PN1._ax1=_N6;_QN1._ax1=_XN1;break;}_N6=0.0;_XN1=-_QN1._PM1*_fI1;_VN1=_hN1._0N1._OM.x*_XN1+_eI1;_WN1=0.0;if(_XN1>=0.0&&_VN1>=0.0){_db=_N6-ax;_eb=_XN1-ay;_YN1=_db*_Bt1.x;_ZN1=_db*_Bt1.y;__N1=_eb*_Bt1.x;_0O1=_eb*_Bt1.y;_nN1.x-=_kN1*(_YN1+__N1);_nN1.y-=_kN1*(_ZN1+_0O1); _Zv1-=_iB1*((_PN1._0x1.x*_ZN1-_PN1._0x1.y*_YN1)+(_QN1._0x1.x*_0O1-_QN1._0x1.y*__N1));_pN1.x+=_lN1*(_YN1+__N1);_pN1.y+=_lN1*(_ZN1+_0O1);__v1+=_jB1*((_PN1._1x1.x*_ZN1-_PN1._1x1.y*_YN1)+(_QN1._1x1.x*_0O1-_QN1._1x1.y*__N1));_PN1._ax1=_N6;_QN1._ax1=_XN1;break;}_N6=0.0;_XN1=0.0;_VN1=_eI1;_WN1=_fI1;if(_VN1>=0.0&&_WN1>=0.0){_db=_N6-ax;_eb=_XN1-ay;_YN1=_db*_Bt1.x;_ZN1=_db*_Bt1.y;__N1=_eb*_Bt1.x;_0O1=_eb*_Bt1.y;_nN1.x-=_kN1*(_YN1+__N1);_nN1.y-=_kN1*(_ZN1+_0O1);_Zv1-=_iB1*((_PN1._0x1.x*_ZN1-_PN1._0x1.y*_YN1)+(_QN1._0x1.x*_0O1-_QN1._0x1.y*__N1)); _pN1.x+=_lN1*(_YN1+__N1);_pN1.y+=_lN1*(_ZN1+_0O1);__v1+=_jB1*((_PN1._1x1.x*_ZN1-_PN1._1x1.y*_YN1)+(_QN1._1x1.x*_0O1-_QN1._1x1.y*__N1));_PN1._ax1=_N6;_QN1._ax1=_XN1;break;}break;}}this._fN1[_Nv1].w=_Zv1;this._fN1[_Ov1].w=__v1;}},_1O1:function(){for(var i=0;i0.0?-_zs1/_0N1:0.0;var _mz1=_AD1*_Bt1.x;var _nz1=_AD1*_Bt1.y;_aG1.x-=_kN1*_mz1;_aG1.y-=_kN1*_nz1;_mN1-=_iB1*(_4O1*_nz1-_5O1*_mz1);_cG1.x+=_lN1*_mz1;_cG1.y+=_lN1*_nz1;_oN1+=_jB1*(_6O1*_nz1-_7O1*_mz1);}this._eN1[_Nv1]._h4=_mN1;this._eN1[_Ov1]._h4=_oN1;}return _3O1>=-3.0*_Fq1;},_8O1:function(_9O1,_aO1){var _3O1=0.0;for(var i=0;i0.0?-_zs1/_0N1:0.0;var _cz1=_kr1.Multiply(_AD1,_Bt1);_aG1._rr1(_kr1.Multiply(_kN1,_cz1));_mN1-=_iB1*_fs1(_0x1,_cz1);_cG1._Gf(_kr1.Multiply(_lN1,_cz1));_oN1+=_jB1*_fs1(_1x1,_cz1);}this._eN1[_Nv1]._h4=_mN1;this._eN1[_Ov1]._h4=_oN1;}return _3O1>=-1.5*_Fq1; }};function _xF1(){this._PG1=[];this._gN1=[];this._bO1=[];this._fN1=[];this._eN1=[];}var _cO1=_eq1._pq1("solve initialization","solve");var _dO1=_eq1._pq1("warm starting","solve initialization");var _eO1=_eq1._pq1("solve velocities","solve");var _fO1=_eq1._pq1("solve positions","solve");_xF1._gO1=new _9F1();_xF1._hO1=new _6N1();_xF1._iO1=new _8N1();_xF1.prototype={_Wf:function(){this._lF1=0;this._xG1=0;this._mF1=0;},_qx1:function(_jO1,_kO1,_lO1,listener){this._mO1=listener;this._3H1=_jO1;this._4H1=_kO1; this._nO1=_lO1;this._lF1=0;this._xG1=0;this._mF1=0;this._PG1.length=_jO1;this._gN1.length=_kO1;this._bO1.length=_lO1;this._fN1.length=_jO1;this._eN1.length=_jO1;},_Hr1:function(step,gravity,_nC1){_cO1.start();var h=step._AD;for(var i=0;i_Oq1){var ratio=_Nq1/_hr1(_tO1);_Y4.x*=ratio; _Y4.y*=ratio;}var rotation=h*w;if(rotation*rotation>_Qq1){var ratio=_Pq1/_Ds1(rotation);w*=ratio;}c.x+=h*_Y4.x;c.y+=h*_Y4.y;_h4+=h*w;this._eN1[i]._h4=_h4;this._fN1[i].w=w;}var _uO1=false;for(var i=0;i_BO1||_es1(_g4._IC1,_g4._IC1)>_AO1){_g4._PC1=0.0;_zO1=0.0;}else {_g4._PC1+=h;_zO1=_Gs1(_zO1,_g4._PC1);}}if(_zO1>=_Tq1&&_uO1){for(var i=0;i_Oq1){var ratio=_Nq1/_CO1.Length();_Y4.Multiply(ratio);}var rotation=h*w;if(rotation*rotation>_Qq1){var ratio=_Pq1/_Ds1(rotation);w*=ratio;}c._Gf(_kr1.Multiply(h,_Y4)); _h4+=h*w;this._eN1[i]._h4=_h4;this._fN1[i].w=w;var body=this._PG1[i];body._DC1.c._lQ(c);body._DC1._h4=_h4;body._IC1._lQ(_Y4);body._JC1=w;body._dE1();}this._yO1(_xF1._iO1._aN1);},_GG1:function(body){_wq1(this._lF10.0){this._CP1=1.0/this._CP1;}if(this._sP1==false||_pC1){this._mP1=0.0;}if(this._rP1&&_pC1==false){var _VP1=_oN1-_mN1-this._kP1;if(_Ds1(this._oP1-this._nP1)<2.0*_Gq1){this._tP1=_UF1._QO1;}else if(_VP1<=this._nP1){if(this._tP1!=_UF1._OO1){this._lP1.z=0.0;}this._tP1=_UF1._OO1;}else if(_VP1>=this._oP1){if(this._tP1!=_UF1._PO1){this._lP1.z=0.0;}this._tP1=_UF1._PO1;}else {this._tP1=_UF1._NO1;this._lP1.z=0.0;}}else {this._tP1=_UF1._NO1;}if(data.step._6F1){ this._lP1.Multiply(data.step._3F1);this._mP1*=data.step._3F1;var _cz1=new _kr1(this._lP1.x,this._lP1.y);_nN1._rr1(_kr1.Multiply(_kN1,_cz1));_Zv1-=_iB1*(_fs1(this._uP1,_cz1)+this._mP1+this._lP1.z);_pN1._Gf(_kr1.Multiply(_lN1,_cz1));__v1+=_jB1*(_fs1(this._vP1,_cz1)+this._mP1+this._lP1.z);}else {this._lP1._lr1();this._mP1=0.0;}data._bF1[this._6M1]._Y4._lQ(_nN1);data._bF1[this._6M1].w=_Zv1;data._bF1[this._7M1]._Y4._lQ(_pN1);data._bF1[this._7M1].w=__v1;},_IN1:function(data){var _nN1=data._bF1[this._6M1]._Y4._63(); var _Zv1=data._bF1[this._6M1].w;var _pN1=data._bF1[this._7M1]._Y4._63();var __v1=data._bF1[this._7M1].w;var _kN1=this._yP1,_lN1=this._zP1;var _iB1=this._AP1,_jB1=this._BP1;var _pC1=(_iB1+_jB1==0.0);if(this._sP1&&this._tP1!=_UF1._QO1&&_pC1==false){var _WP1=__v1-_Zv1-this._qP1;var _AD1=-this._CP1*_WP1;var _XP1=this._mP1;var _YP1=data.step._AD*this._pP1;this._mP1=_Ks1(this._mP1+_AD1,-_YP1,_YP1);_AD1=this._mP1-_XP1;_Zv1-=_iB1*_AD1;__v1+=_jB1*_AD1;}if(this._rP1&&this._tP1!=_UF1._NO1&&_pC1==false){var _ZP1=_kr1._rr1(_kr1._rr1(_kr1._Gf(_pN1, _hs1(__v1,this._vP1)),_nN1),_hs1(_Zv1,this._uP1));var __P1=__v1-_Zv1;var _WP1=new _Ar1(_ZP1.x,_ZP1.y,__P1);var _AD1=this._RC1._Pr1(_WP1)._or1();if(this._tP1==_UF1._QO1){this._lP1._Gf(_AD1);}else if(this._tP1==_UF1._OO1){var _ON1=this._lP1.z+_AD1.z;if(_ON1<0.0){var _0Q1=_kr1._Gf(_ZP1._or1(),_kr1.Multiply(this._lP1.z,new _kr1(this._RC1._Or1.x,this._RC1._Or1.y)));var _1Q1=this._RC1._Sr1(_0Q1);_AD1.x=_1Q1.x;_AD1.y=_1Q1.y;_AD1.z=-this._lP1.z;this._lP1.x+=_1Q1.x;this._lP1.y+=_1Q1.y;this._lP1.z=0.0;}else {this._lP1._Gf(_AD1); }}else if(this._tP1==_UF1._PO1){var _ON1=this._lP1.z+_AD1.z;if(_ON1>0.0){var _0Q1=_kr1._Gf(_ZP1._or1(),_kr1.Multiply(this._lP1.z,new _kr1(this._RC1._Or1.x,this._RC1._Or1.y)));var _1Q1=this._RC1._Sr1(_0Q1);_AD1.x=_1Q1.x;_AD1.y=_1Q1.y;_AD1.z=-this._lP1.z;this._lP1.x+=_1Q1.x;this._lP1.y+=_1Q1.y;this._lP1.z=0.0;}else {this._lP1._Gf(_AD1);}}var _cz1=new _kr1(_AD1.x,_AD1.y);_nN1._rr1(_kr1.Multiply(_kN1,_cz1));_Zv1-=_iB1*(_fs1(this._uP1,_cz1)+_AD1.z);_pN1._Gf(_kr1.Multiply(_lN1,_cz1));__v1+=_jB1*(_fs1(this._vP1, _cz1)+_AD1.z);}else {var _WP1=_kr1._rr1(_kr1._rr1(_kr1._Gf(_pN1,_hs1(__v1,this._vP1)),_nN1),_hs1(_Zv1,this._uP1));var _AD1=this._RC1._Sr1(_WP1._or1());this._lP1.x+=_AD1.x;this._lP1.y+=_AD1.y;_nN1._rr1(_kr1.Multiply(_kN1,_AD1));_Zv1-=_iB1*_fs1(this._uP1,_AD1);_pN1._Gf(_kr1.Multiply(_lN1,_AD1));__v1+=_jB1*_fs1(this._vP1,_AD1);}data._bF1[this._6M1]._Y4._lQ(_nN1);data._bF1[this._6M1].w=_Zv1;data._bF1[this._7M1]._Y4._lQ(_pN1);data._bF1[this._7M1].w=__v1;},_2O1:function(data){var _aG1=data._aF1[this._6M1].c._63(); var _mN1=data._aF1[this._6M1]._h4;var _cG1=data._aF1[this._7M1].c._63();var _oN1=data._aF1[this._7M1]._h4;var _TP1=new _Zr1(_mN1),_UP1=new _Zr1(_oN1);var _2Q1=0.0;var _3Q1=0.0;var _pC1=(this._AP1+this._BP1==0.0);if(this._rP1&&this._tP1!=_UF1._NO1&&_pC1==false){var angle=_oN1-_mN1-this._kP1;var _4Q1=0.0;if(this._tP1==_UF1._QO1){var _zs1=_Ks1(angle-this._nP1,-_Mq1,_Mq1);_4Q1=-this._CP1*_zs1;_2Q1=_Ds1(_zs1);}else if(this._tP1==_UF1._OO1){var _zs1=angle-this._nP1;_2Q1=-_zs1;_zs1=_Ks1(_zs1+_Gq1,-_Mq1,0.0);_4Q1=-this._CP1*_zs1; }else if(this._tP1==_UF1._PO1){var _zs1=angle-this._oP1;_2Q1=_zs1;_zs1=_Ks1(_zs1-_Gq1,0.0,_Mq1);_4Q1=-this._CP1*_zs1;}_mN1-=this._AP1*_4Q1;_oN1+=this._BP1*_4Q1;}{_TP1.Set(_mN1);_UP1.Set(_oN1);var _0x1=_ts1(_TP1,_kr1._rr1(this._iP1,this._wP1));var _1x1=_ts1(_UP1,_kr1._rr1(this._jP1,this._xP1));var _zs1=_kr1._rr1(_kr1._rr1(_kr1._Gf(_cG1,_1x1),_aG1),_0x1);_3Q1=_zs1.Length();var _kN1=this._yP1,_lN1=this._zP1;var _iB1=this._AP1,_jB1=this._BP1;var _0N1=new _Cr1();_0N1._bk.x=_kN1+_lN1+_iB1*_0x1.y*_0x1.y+_jB1*_1x1.y*_1x1.y; _0N1._bk.y=-_iB1*_0x1.x*_0x1.y-_jB1*_1x1.x*_1x1.y;_0N1._OM.x=_0N1._bk.y;_0N1._OM.y=_kN1+_lN1+_iB1*_0x1.x*_0x1.x+_jB1*_1x1.x*_1x1.x;var _AD1=_0N1._Hr1(_zs1)._or1();_aG1._rr1(_kr1.Multiply(_kN1,_AD1));_mN1-=_iB1*_fs1(_0x1,_AD1);_cG1._Gf(_kr1.Multiply(_lN1,_AD1));_oN1+=_jB1*_fs1(_1x1,_AD1);}data._aF1[this._6M1].c._lQ(_aG1);data._aF1[this._6M1]._h4=_mN1;data._aF1[this._7M1].c._lQ(_cG1);data._aF1[this._7M1]._h4=_oN1;return _3Q1<=_Fq1&&_2Q1<=_Gq1;},_xr1:function(out){var _Pg=out||{};this.parent.prototype._xr1.call(this, _Pg);_Pg['localAnchorA']=this._iP1._xr1();_Pg['localAnchorB']=this._jP1._xr1();_Pg['referenceAngle']=this._kP1;_Pg['lowerAngle']=this._nP1;_Pg['upperAngle']=this._oP1;_Pg['maxMotorTorque']=this._pP1;_Pg['motorSpeed']=this._qP1;_Pg['enableLimit']=this._rP1;_Pg['enableMotor']=this._sP1;return _Pg;}};_0P1._2q1(_UF1);function _5Q1(){this.parent.call(this);this.type=_UF1._fH1;this.target=new _kr1(0.0,0.0);this._6Q1=0.0;this._7Q1=5.0;this._8Q1=0.7;Object.seal(this);}_5Q1._2q1(_HO1);function _ZO1(_3D1){this.parent.call(this, _3D1);_wq1(_3D1.target._vr1());_wq1(_ar1(_3D1._6Q1)&&_3D1._6Q1>=0.0);_wq1(_ar1(_3D1._7Q1)&&_3D1._7Q1>=0.0);_wq1(_ar1(_3D1._8Q1)&&_3D1._8Q1>=0.0);this._9Q1=_3D1.target._63();this._jP1=_xs1(this._WF1._as1(),this._9Q1);this._aQ1=_3D1._6Q1;this._lP1=new _kr1();this._bQ1=_3D1._7Q1;this._cQ1=_3D1._8Q1;this._dQ1=0.0;this._eQ1=0.0;this._6M1=0;this._7M1=0;this._vP1=new _kr1();this._xP1=new _kr1();this._zP1=0;this._BP1=0;this._RC1=new _Cr1();this._fQ1=new _kr1();}_ZO1.prototype={_8H1:function(){return this._9Q1; },_9H1:function(){return this._WF1._FD1(this._jP1);},_KO1:function(_2F1){return _kr1.Multiply(_2F1,this._lP1);},_LO1:function(_2F1){return _2F1*0.0;},_gQ1:function(target){if(this._WF1._2E1()==false){this._WF1._Z41(true);}this._9Q1._lQ(target);},_hQ1:function(){return this._9Q1;},_iQ1:function(_vD1){this._aQ1=_vD1;},_jQ1:function(){return this._aQ1;},_kQ1:function(_lQ1){this._bQ1=_lQ1;},_mQ1:function(){return this._bQ1;},_nQ1:function(ratio){this._cQ1=ratio;},_oQ1:function(){return this._cQ1;},_Dv1:function(_Ev1){ this._9Q1._rr1(_Ev1);},_qO1:function(data){this._7M1=this._WF1._uC1;this._xP1._lQ(this._WF1._DC1._5s1);this._zP1=this._WF1._SC1;this._BP1=this._WF1._UC1;var _cG1=data._aF1[this._7M1].c._63();var _oN1=data._aF1[this._7M1]._h4;var _pN1=data._bF1[this._7M1]._Y4._63();var __v1=data._bF1[this._7M1].w;var _UP1=new _Zr1(_oN1);var _nt1=this._WF1._BD1();var _171=2.0*_Aq1*this._bQ1;var _Bm=2.0*_nt1*this._cQ1*_171;var _ml=_nt1*(_171*_171);var h=data.step._AD;_wq1(_Bm+h*_ml>_zq1);this._eQ1=h*(_Bm+h*_ml);if(this._eQ1!=0.0){ this._eQ1=1.0/this._eQ1;}this._dQ1=h*_ml*this._eQ1;this._vP1._lQ(_ts1(_UP1,_kr1._rr1(this._jP1,this._xP1)));var _0N1=new _Cr1();_0N1._bk.x=this._zP1+this._BP1*this._vP1.y*this._vP1.y+this._eQ1;_0N1._bk.y=-this._BP1*this._vP1.x*this._vP1.y;_0N1._OM.x=_0N1._bk.y;_0N1._OM.y=this._zP1+this._BP1*this._vP1.x*this._vP1.x+this._eQ1;this._RC1._lQ(_0N1._Er1());this._fQ1._lQ(_kr1._rr1(_kr1._Gf(_cG1,this._vP1),this._9Q1));this._fQ1.Multiply(this._dQ1);__v1*=0.98;if(data.step._6F1){this._lP1.Multiply(data.step._3F1); _pN1._Gf(_kr1.Multiply(this._zP1,this._lP1));__v1+=this._BP1*_fs1(this._vP1,this._lP1);}else {this._lP1._lr1();}data._bF1[this._7M1]._Y4._lQ(_pN1);data._bF1[this._7M1].w=__v1;},_IN1:function(data){var _pN1=data._bF1[this._7M1]._Y4._63();var __v1=data._bF1[this._7M1].w;var _WP1=_kr1._Gf(_pN1,_hs1(__v1,this._vP1));var _AD1=_is1(this._RC1,(_kr1._Gf(_kr1._Gf(_WP1,this._fQ1),_kr1.Multiply(this._eQ1,this._lP1)))._or1());var _XP1=this._lP1._63();this._lP1._Gf(_AD1);var _YP1=data.step._AD*this._aQ1;if(this._lP1._sr1()>_YP1*_YP1){ this._lP1.Multiply(_YP1/this._lP1.Length());}_AD1._lQ(_kr1._rr1(this._lP1,_XP1));_pN1._Gf(_kr1.Multiply(this._zP1,_AD1));__v1+=this._BP1*_fs1(this._vP1,_AD1);data._bF1[this._7M1]._Y4._lQ(_pN1);data._bF1[this._7M1].w=__v1;},_2O1:function(data){return true;}};_ZO1._2q1(_UF1);/// @warning Do not use a zero or short length. function _pQ1(){this.parent.call(this);this.type=_UF1._aH1;this._9P1=new _kr1(0.0,0.0);this._aP1=new _kr1(0.0,0.0);this.length=1.0;this._7Q1=0.0;this._8Q1=0.0;Object.seal(this);}_pQ1.prototype={ _qx1:function(_Uh,_Vh,_qQ1,_rQ1){this._ZF1=_Uh;this.__F1=_Vh;this._9P1=this._ZF1._ID1(_qQ1);this._aP1=this.__F1._ID1(_rQ1);var _Bm=_kr1._rr1(_rQ1,_qQ1);this.length=_Bm.Length();},_yr1:function(data,_2H1,_JO1){this.parent.prototype._yr1.call(this,data,_2H1,_JO1);this._9P1._yr1(data['localAnchorA']);this._aP1._yr1(data['localAnchorB']);this.length=data['length'];this._7Q1=data['frequencyHz'];this._8Q1=data['dampingRatio'];}};_pQ1._2q1(_HO1);function _YO1(_3D1){this.parent.call(this,_3D1);this._iP1=_3D1._9P1._63(); this._jP1=_3D1._aP1._63();this._WU=_3D1.length;this._bQ1=_3D1._7Q1;this._cQ1=_3D1._8Q1;this._lP1=0.0;this._eQ1=0.0;this._sQ1=0.0;this._6M1=0;this._7M1=0;this._tQ1=new _kr1();this._uP1=new _kr1();this._vP1=new _kr1();this._wP1=new _kr1();this._xP1=new _kr1();this._yP1=0;this._zP1=0;this._AP1=0;this._BP1=0;this._RC1=0;}_YO1.prototype={_8H1:function(){return this._XF1._FD1(this._iP1);},_9H1:function(){return this._WF1._FD1(this._jP1);},_KO1:function(_2F1){var _nB1=_kr1.Multiply((_2F1*this._lP1),this._tQ1); return _nB1;},_LO1:function(_2F1){return 0.0;},_DP1:function(){return this._iP1;},_EP1:function(){return this._jP1;},_uQ1:function(length){this._WU=length;},_vQ1:function(){return this._WU;},_kQ1:function(_lQ1){this._bQ1=_lQ1;},_mQ1:function(){return this._bQ1;},_nQ1:function(ratio){this._cQ1=ratio;},_oQ1:function(){return this._cQ1;},_qO1:function(data){this._6M1=this._XF1._uC1;this._7M1=this._WF1._uC1;this._wP1._lQ(this._XF1._DC1._5s1);this._xP1._lQ(this._WF1._DC1._5s1);this._yP1=this._XF1._SC1;this._zP1=this._WF1._SC1; this._AP1=this._XF1._UC1;this._BP1=this._WF1._UC1;var _aG1=data._aF1[this._6M1].c._63();var _mN1=data._aF1[this._6M1]._h4;var _nN1=data._bF1[this._6M1]._Y4._63();var _Zv1=data._bF1[this._6M1].w;var _cG1=data._aF1[this._7M1].c._63();var _oN1=data._aF1[this._7M1]._h4;var _pN1=data._bF1[this._7M1]._Y4._63();var __v1=data._bF1[this._7M1].w;var _TP1=new _Zr1(_mN1),_UP1=new _Zr1(_oN1);this._uP1=_ts1(_TP1,_kr1._rr1(this._iP1,this._wP1));this._vP1=_ts1(_UP1,_kr1._rr1(this._jP1,this._xP1));this._tQ1=_kr1._rr1(_kr1._rr1(_kr1._Gf(_cG1, this._vP1),_aG1),this._uP1);var length=this._tQ1.Length();if(length>_Fq1){this._tQ1.Multiply(1.0/length);}else {this._tQ1.Set(0.0,0.0);}var _wQ1=_fs1(this._uP1,this._tQ1);var _xQ1=_fs1(this._vP1,this._tQ1);var _yQ1=this._yP1+this._AP1*_wQ1*_wQ1+this._zP1+this._BP1*_xQ1*_xQ1;this._RC1=_yQ1!=0.0?1.0/_yQ1:0.0;if(this._bQ1>0.0){var _zs1=length-this._WU;var _171=2.0*_Aq1*this._bQ1;var _Bm=2.0*this._RC1*this._cQ1*_171;var _ml=this._RC1*_171*_171;var h=data.step._AD;this._eQ1=h*(_Bm+h*_ml);this._eQ1=this._eQ1!=0.0?1.0/this._eQ1:0.0; this._sQ1=_zs1*h*_ml*this._eQ1;_yQ1+=this._eQ1;this._RC1=_yQ1!=0.0?1.0/_yQ1:0.0;}else {this._eQ1=0.0;this._sQ1=0.0;}if(data.step._6F1){this._lP1*=data.step._3F1;var _cz1=_kr1.Multiply(this._lP1,this._tQ1);_nN1._rr1(_kr1.Multiply(this._yP1,_cz1));_Zv1-=this._AP1*_fs1(this._uP1,_cz1);_pN1._Gf(_kr1.Multiply(this._zP1,_cz1));__v1+=this._BP1*_fs1(this._vP1,_cz1);}else {this._lP1=0.0;}data._bF1[this._6M1]._Y4._lQ(_nN1);data._bF1[this._6M1].w=_Zv1;data._bF1[this._7M1]._Y4._lQ(_pN1);data._bF1[this._7M1].w=__v1; },_IN1:function(data){var _nN1=data._bF1[this._6M1]._Y4._63();var _Zv1=data._bF1[this._6M1].w;var _pN1=data._bF1[this._7M1]._Y4._63();var __v1=data._bF1[this._7M1].w;var _zQ1=_kr1._Gf(_nN1,_hs1(_Zv1,this._uP1));var _AQ1=_kr1._Gf(_pN1,_hs1(__v1,this._vP1));var _WP1=_es1(this._tQ1,_kr1._rr1(_AQ1,_zQ1));var _AD1=-this._RC1*(_WP1+this._sQ1+this._eQ1*this._lP1);this._lP1+=_AD1;var _cz1=_kr1.Multiply(_AD1,this._tQ1);_nN1._rr1(_kr1.Multiply(this._yP1,_cz1));_Zv1-=this._AP1*_fs1(this._uP1,_cz1);_pN1._Gf(_kr1.Multiply(this._zP1, _cz1));__v1+=this._BP1*_fs1(this._vP1,_cz1);data._bF1[this._6M1]._Y4._lQ(_nN1);data._bF1[this._6M1].w=_Zv1;data._bF1[this._7M1]._Y4._lQ(_pN1);data._bF1[this._7M1].w=__v1;},_2O1:function(data){if(this._bQ1>0.0){return true;}var _aG1=data._aF1[this._6M1].c._63();var _mN1=data._aF1[this._6M1]._h4;var _cG1=data._aF1[this._7M1].c._63();var _oN1=data._aF1[this._7M1]._h4;var _TP1=new _Zr1(_mN1),_UP1=new _Zr1(_oN1);var _0x1=_ts1(_TP1,_kr1._rr1(this._iP1,this._wP1));var _1x1=_ts1(_UP1,_kr1._rr1(this._jP1,this._xP1)); var _X4=_kr1._rr1(_kr1._rr1(_kr1._Gf(_cG1,_1x1),_aG1),_0x1);var length=_X4._tr1();var _zs1=length-this._WU;_zs1=_Ks1(_zs1,-_Lq1,_Lq1);var _AD1=-this._RC1*_zs1;var _cz1=_kr1.Multiply(_AD1,_X4);_aG1._rr1(_kr1.Multiply(this._yP1,_cz1));_mN1-=this._AP1*_fs1(_0x1,_cz1);_cG1._Gf(_kr1.Multiply(this._zP1,_cz1));_oN1+=this._BP1*_fs1(_1x1,_cz1);data._aF1[this._6M1].c._lQ(_aG1);data._aF1[this._6M1]._h4=_mN1;data._aF1[this._7M1].c._lQ(_cG1);data._aF1[this._7M1]._h4=_oN1;return _Ds1(_zs1)<_Fq1;},_xr1:function(out){ var _Pg=out||{};this.parent.prototype._xr1.call(this,_Pg);_Pg['localAnchorA']=this._iP1._xr1();_Pg['localAnchorB']=this._jP1._xr1();_Pg['length']=this._WU;_Pg['frequencyHz']=this._bQ1;_Pg['dampingRatio']=this._cQ1;return _Pg;}};_YO1._2q1(_UF1);function _BQ1(){this.parent.call(this);this.type=_UF1._SO1;this._9P1=new _kr1();this._aP1=new _kr1();this._CQ1=new _kr1(1.0,0.0);this._bP1=0.0;this._gP1=false;this._DQ1=0.0;this._EQ1=0.0;this._hP1=false;this._FQ1=0.0;this._fP1=0.0;Object.seal(this);}_BQ1.prototype={ _qx1:function(_WG1,_XG1,anchor,_1v){this._ZF1=_WG1;this.__F1=_XG1;this._9P1=this._ZF1._ID1(anchor);this._aP1=this.__F1._ID1(anchor);this._CQ1=this._ZF1._KD1(_1v);this._bP1=this.__F1.__r1()-this._ZF1.__r1();},_yr1:function(data,_2H1,_JO1){this.parent.prototype._yr1.call(this,data,_2H1,_JO1);this._9P1._yr1(data['localAnchorA']);this._aP1._yr1(data['localAnchorB']);this._CQ1._yr1(data['localAxisA']);this._bP1=data['referenceAngle'];this._gP1=data['enableLimit'];this._DQ1=data['lowerTranslation'];this._EQ1=data['upperTranslation']; this._hP1=data['enableMotor'];this._FQ1=data['maxMotorForce'];this._fP1=data['motorSpeed'];}};_BQ1._2q1(_HO1);function __O1(_3D1){this.parent.call(this,_3D1);this._iP1=_3D1._9P1._63();this._jP1=_3D1._aP1._63();this._GQ1=_3D1._CQ1._63();this._GQ1._tr1();this._HQ1=_hs1(1.0,this._GQ1);this._kP1=_3D1._bP1;this._lP1=new _Ar1();this._CP1=0.0;this._mP1=0.0;this._IQ1=_3D1._DQ1;this._JQ1=_3D1._EQ1;this._KQ1=_3D1._FQ1;this._qP1=_3D1._fP1;this._rP1=_3D1._gP1;this._sP1=_3D1._hP1;this._tP1=_UF1._NO1;this._JB1=new _kr1(); this._LQ1=new _kr1();this._6M1=0;this._7M1=0;this._wP1=new _kr1();this._xP1=new _kr1();this._yP1=0;this._zP1=0;this._AP1=0;this._BP1=0;this._MQ1=0,this._NQ1=0;this._OQ1=0,this._PQ1=0;this._QQ1=new _Mr1();this._CP1=0;}__O1.prototype={_8H1:function(){return this._XF1._FD1(this._iP1);},_9H1:function(){return this._WF1._FD1(this._jP1);},_KO1:function(_2F1){return _kr1.Multiply(_2F1,_kr1._Gf(_kr1.Multiply(this._lP1.x,this._LQ1),_kr1.Multiply((this._mP1+this._lP1.z),this._JB1)));},_LO1:function(_2F1){return _2F1*this._lP1.y; },_DP1:function(){return this._iP1;},_EP1:function(){return this._jP1;},_RQ1:function(){return this._GQ1;},_FP1:function(){return this._kP1;},_SQ1:function(){var _fw1=this._XF1._FD1(this._iP1);var _gw1=this._WF1._FD1(this._jP1);var _Bm=_kr1._rr1(_gw1,_fw1);var _1v=this._XF1._GD1(this._GQ1);var _CO1=_es1(_Bm,_1v);return _CO1;},_HP1:function(){var _WG1=this._XF1;var _XG1=this._WF1;var _0x1=_ts1(_WG1._yz1.q,_kr1._rr1(this._iP1,_WG1._DC1._5s1));var _1x1=_ts1(_XG1._yz1.q,_kr1._rr1(this._jP1,_XG1._DC1._5s1));var _0v=_kr1._Gf(_WG1._DC1.c, _0x1);var _4t1=_kr1._Gf(_XG1._DC1.c,_1x1);var _Bm=_kr1._rr1(_4t1,_0v);var _1v=_ts1(_WG1._yz1.q,this._GQ1);var _nN1=_WG1._IC1;var _pN1=_XG1._IC1;var _Zv1=_WG1._JC1;var __v1=_XG1._JC1;var speed=_es1(_Bm,_hs1(_Zv1,_1v))+_es1(_1v,_kr1._rr1(_kr1._rr1(_kr1._Gf(_pN1,_hs1(__v1,_1x1)),_nN1),_hs1(_Zv1,_0x1)));return speed;},_IP1:function(){return this._rP1;},_JP1:function(_ZD1){if(_ZD1!=this._rP1){this._XF1._Z41(true);this._WF1._Z41(true);this._rP1=_ZD1;this._lP1.z=0.0;}},_KP1:function(){return this._IQ1;},_LP1:function(){ return this._JQ1;},_MP1:function(_VX,_zu1){_wq1(_VX<=_zu1);if(_VX!=this._IQ1||_zu1!=this._JQ1){this._XF1._Z41(true);this._WF1._Z41(true);this._IQ1=_VX;this._JQ1=_zu1;this._lP1.z=0.0;}},_NP1:function(){return this._sP1;},_a61:function(_ZD1){this._XF1._Z41(true);this._WF1._Z41(true);this._sP1=_ZD1;},_OP1:function(speed){this._XF1._Z41(true);this._WF1._Z41(true);this._qP1=speed;},_PP1:function(){return this._qP1;},_TQ1:function(_vD1){this._XF1._Z41(true);this._WF1._Z41(true);this._KQ1=_vD1;},_UQ1:function(){ return this._KQ1;},_VQ1:function(_2F1){return _2F1*this._mP1;},_qO1:function(data){this._6M1=this._XF1._uC1;this._7M1=this._WF1._uC1;this._wP1=this._XF1._DC1._5s1;this._xP1=this._WF1._DC1._5s1;this._yP1=this._XF1._SC1;this._zP1=this._WF1._SC1;this._AP1=this._XF1._UC1;this._BP1=this._WF1._UC1;var _aG1=data._aF1[this._6M1].c._63();var _mN1=data._aF1[this._6M1]._h4;var _nN1=data._bF1[this._6M1]._Y4._63();var _Zv1=data._bF1[this._6M1].w;var _cG1=data._aF1[this._7M1].c._63();var _oN1=data._aF1[this._7M1]._h4; var _pN1=data._bF1[this._7M1]._Y4._63();var __v1=data._bF1[this._7M1].w;var _TP1=new _Zr1(_mN1),_UP1=new _Zr1(_oN1);var _0x1=_ts1(_TP1,_kr1._rr1(this._iP1,this._wP1));var _1x1=_ts1(_UP1,_kr1._rr1(this._jP1,this._xP1));var _Bm=_kr1._Gf(_kr1._rr1(_cG1,_aG1),_kr1._rr1(_1x1,_0x1));var _kN1=this._yP1,_lN1=this._zP1;var _iB1=this._AP1,_jB1=this._BP1;{this._JB1=_ts1(_TP1,this._GQ1);this._OQ1=_fs1(_kr1._Gf(_Bm,_0x1),this._JB1);this._PQ1=_fs1(_1x1,this._JB1);this._CP1=_kN1+_lN1+_iB1*this._OQ1*this._OQ1+_jB1*this._PQ1*this._PQ1; if(this._CP1>0.0){this._CP1=1.0/this._CP1;}}{this._LQ1=_ts1(_TP1,this._HQ1);this._MQ1=_fs1(_kr1._Gf(_Bm,_0x1),this._LQ1);this._NQ1=_fs1(_1x1,this._LQ1);var _DN1=_kN1+_lN1+_iB1*this._MQ1*this._MQ1+_jB1*this._NQ1*this._NQ1;var _FN1=_iB1*this._MQ1+_jB1*this._NQ1;var _WQ1=_iB1*this._MQ1*this._OQ1+_jB1*this._NQ1*this._PQ1;var _EN1=_iB1+_jB1;if(_EN1==0.0){_EN1=1.0;}var _XQ1=_iB1*this._OQ1+_jB1*this._PQ1;var _YQ1=_kN1+_lN1+_iB1*this._OQ1*this._OQ1+_jB1*this._PQ1*this._PQ1;this._QQ1._bk.Set(_DN1,_FN1,_WQ1);this._QQ1._OM.Set(_FN1, _EN1,_XQ1);this._QQ1._Or1.Set(_WQ1,_XQ1,_YQ1);}if(this._rP1){var _ZQ1=_es1(this._JB1,_Bm);if(_Ds1(this._JQ1-this._IQ1)<2.0*_Fq1){this._tP1=_UF1._QO1;}else if(_ZQ1<=this._IQ1){if(this._tP1!=_UF1._OO1){this._tP1=_UF1._OO1;this._lP1.z=0.0;}}else if(_ZQ1>=this._JQ1){if(this._tP1!=_UF1._PO1){this._tP1=_UF1._PO1;this._lP1.z=0.0;}}else {this._tP1=_UF1._NO1;this._lP1.z=0.0;}}else {this._tP1=_UF1._NO1;this._lP1.z=0.0;}if(this._sP1==false){this._mP1=0.0;}if(data.step._6F1){this._lP1.Multiply(data.step._3F1);this._mP1*=data.step._3F1; var _cz1=_kr1._Gf(_kr1.Multiply(this._lP1.x,this._LQ1),_kr1.Multiply((this._mP1+this._lP1.z),this._JB1));var __Q1=this._lP1.x*this._MQ1+this._lP1.y+(this._mP1+this._lP1.z)*this._OQ1;var _0R1=this._lP1.x*this._NQ1+this._lP1.y+(this._mP1+this._lP1.z)*this._PQ1;_nN1._rr1(_kr1.Multiply(_kN1,_cz1));_Zv1-=_iB1*__Q1;_pN1._Gf(_kr1.Multiply(_lN1,_cz1));__v1+=_jB1*_0R1;}else {this._lP1._lr1();this._mP1=0.0;}data._bF1[this._6M1]._Y4._lQ(_nN1);data._bF1[this._6M1].w=_Zv1;data._bF1[this._7M1]._Y4._lQ(_pN1);data._bF1[this._7M1].w=__v1; },_IN1:function(data){var _nN1=data._bF1[this._6M1]._Y4._63();var _Zv1=data._bF1[this._6M1].w;var _pN1=data._bF1[this._7M1]._Y4._63();var __v1=data._bF1[this._7M1].w;var _kN1=this._yP1,_lN1=this._zP1;var _iB1=this._AP1,_jB1=this._BP1;if(this._sP1&&this._tP1!=_UF1._QO1){var _WP1=_es1(this._JB1,_kr1._rr1(_pN1,_nN1))+this._PQ1*__v1-this._OQ1*_Zv1;var _AD1=this._CP1*(this._qP1-_WP1);var _XP1=this._mP1;var _YP1=data.step._AD*this._KQ1;this._mP1=_Ks1(this._mP1+_AD1,-_YP1,_YP1);_AD1=this._mP1-_XP1;var _cz1=_kr1.Multiply(_AD1, this._JB1);var __Q1=_AD1*this._OQ1;var _0R1=_AD1*this._PQ1;_nN1._rr1(_kr1.Multiply(_kN1,_cz1));_Zv1-=_iB1*__Q1;_pN1._Gf(_kr1.Multiply(_lN1,_cz1));__v1+=_jB1*_0R1;}var _ZP1=new _kr1();_ZP1.x=_es1(this._LQ1,_kr1._rr1(_pN1,_nN1))+this._NQ1*__v1-this._MQ1*_Zv1;_ZP1.y=__v1-_Zv1;if(this._rP1&&this._tP1!=_UF1._NO1){var __P1;__P1=_es1(this._JB1,_kr1._rr1(_pN1,_nN1))+this._PQ1*__v1-this._OQ1*_Zv1;var _WP1=new _Ar1(_ZP1.x,_ZP1.y,__P1);var _xZ=this._lP1._63();var _1R1=this._QQ1._Pr1(_WP1._or1());this._lP1._Gf(_1R1); if(this._tP1==_UF1._OO1){this._lP1.z=_Is1(this._lP1.z,0.0);}else if(this._tP1==_UF1._PO1){this._lP1.z=_Gs1(this._lP1.z,0.0);}var _g4=_kr1._rr1(_ZP1._or1(),_kr1.Multiply((this._lP1.z-_xZ.z),new _kr1(this._QQ1._Or1.x,this._QQ1._Or1.y)));var _2R1=_kr1._Gf(this._QQ1._Sr1(_g4),new _kr1(_xZ.x,_xZ.y));this._lP1.x=_2R1.x;this._lP1.y=_2R1.y;_1R1=_Ar1._rr1(this._lP1,_xZ);var _cz1=_kr1._Gf(_kr1.Multiply(_1R1.x,this._LQ1),_kr1.Multiply(_1R1.z,this._JB1));var __Q1=_1R1.x*this._MQ1+_1R1.y+_1R1.z*this._OQ1;var _0R1=_1R1.x*this._NQ1+_1R1.y+_1R1.z*this._PQ1; _nN1._rr1(_kr1.Multiply(_kN1,_cz1));_Zv1-=_iB1*__Q1;_pN1._Gf(_kr1.Multiply(_lN1,_cz1));__v1+=_jB1*_0R1;}else {var _1R1=this._QQ1._Sr1(_ZP1._or1());this._lP1.x+=_1R1.x;this._lP1.y+=_1R1.y;var _cz1=_kr1.Multiply(_1R1.x,this._LQ1);var __Q1=_1R1.x*this._MQ1+_1R1.y;var _0R1=_1R1.x*this._NQ1+_1R1.y;_nN1._rr1(_kr1.Multiply(_kN1,_cz1));_Zv1-=_iB1*__Q1;_pN1._Gf(_kr1.Multiply(_lN1,_cz1));__v1+=_jB1*_0R1;}data._bF1[this._6M1]._Y4._lQ(_nN1);data._bF1[this._6M1].w=_Zv1;data._bF1[this._7M1]._Y4._lQ(_pN1);data._bF1[this._7M1].w=__v1; },_2O1:function(data){var _aG1=data._aF1[this._6M1].c._63();var _mN1=data._aF1[this._6M1]._h4;var _cG1=data._aF1[this._7M1].c._63();var _oN1=data._aF1[this._7M1]._h4;var _TP1=new _Zr1(_mN1),_UP1=new _Zr1(_oN1);var _kN1=this._yP1,_lN1=this._zP1;var _iB1=this._AP1,_jB1=this._BP1;var _0x1=_ts1(_TP1,_kr1._rr1(this._iP1,this._wP1));var _1x1=_ts1(_UP1,_kr1._rr1(this._jP1,this._xP1));var _Bm=_kr1._rr1(_kr1._rr1(_kr1._Gf(_cG1,_1x1),_aG1),_0x1);var _1v=_ts1(_TP1,this._GQ1);var _Qj1=_fs1(_kr1._Gf(_Bm,_0x1),_1v);var _Rj1=_fs1(_1x1, _1v);var _3R1=_ts1(_TP1,this._HQ1);var _IB=_fs1(_kr1._Gf(_Bm,_0x1),_3R1);var _JB=_fs1(_1x1,_3R1);var _AD1=new _Ar1();var _4R1=new _kr1();_4R1.x=_es1(_3R1,_Bm);_4R1.y=_oN1-_mN1-this._kP1;var _5R1=_Ds1(_4R1.x);var _2Q1=_Ds1(_4R1.y);var active=false;var _6R1=0.0;if(this._rP1){var _CO1=_es1(_1v,_Bm);if(_Ds1(this._JQ1-this._IQ1)<2.0*_Fq1){_6R1=_Ks1(_CO1,-_Lq1,_Lq1);_5R1=_Is1(_5R1,_Ds1(_CO1));active=true;}else if(_CO1<=this._IQ1){_6R1=_Ks1(_CO1-this._IQ1+_Fq1,-_Lq1,0.0);_5R1=_Is1(_5R1,this._IQ1-_CO1);active=true;} else if(_CO1>=this._JQ1){_6R1=_Ks1(_CO1-this._JQ1-_Fq1,0.0,_Lq1);_5R1=_Is1(_5R1,_CO1-this._JQ1);active=true;}}if(active){var _DN1=_kN1+_lN1+_iB1*_IB*_IB+_jB1*_JB*_JB;var _FN1=_iB1*_IB+_jB1*_JB;var _WQ1=_iB1*_IB*_Qj1+_jB1*_JB*_Rj1;var _EN1=_iB1+_jB1;if(_EN1==0.0){_EN1=1.0;}var _XQ1=_iB1*_Qj1+_jB1*_Rj1;var _YQ1=_kN1+_lN1+_iB1*_Qj1*_Qj1+_jB1*_Rj1*_Rj1;var _0N1=new _Mr1();_0N1._bk.Set(_DN1,_FN1,_WQ1);_0N1._OM.Set(_FN1,_EN1,_XQ1);_0N1._Or1.Set(_WQ1,_XQ1,_YQ1);var _zs1=new _Ar1();_zs1.x=_4R1.x;_zs1.y=_4R1.y;_zs1.z=_6R1; _AD1=_0N1._Pr1(_zs1._or1());}else {var _DN1=_kN1+_lN1+_iB1*_IB*_IB+_jB1*_JB*_JB;var _FN1=_iB1*_IB+_jB1*_JB;var _EN1=_iB1+_jB1;if(_EN1==0.0){_EN1=1.0;}var _0N1=new _Cr1();_0N1._bk.Set(_DN1,_FN1);_0N1._OM.Set(_FN1,_EN1);var _7R1=_0N1._Hr1(_4R1._or1());_AD1.x=_7R1.x;_AD1.y=_7R1.y;_AD1.z=0.0;}var _cz1=_kr1._Gf(_kr1.Multiply(_AD1.x,_3R1),_kr1.Multiply(_AD1.z,_1v));var __Q1=_AD1.x*_IB+_AD1.y+_AD1.z*_Qj1;var _0R1=_AD1.x*_JB+_AD1.y+_AD1.z*_Rj1;_aG1._rr1(_kr1.Multiply(_kN1,_cz1));_mN1-=_iB1*__Q1;_cG1._Gf(_kr1.Multiply(_lN1, _cz1));_oN1+=_jB1*_0R1;data._aF1[this._6M1].c._lQ(_aG1);data._aF1[this._6M1]._h4=_mN1;data._aF1[this._7M1].c._lQ(_cG1);data._aF1[this._7M1]._h4=_oN1;return _5R1<=_Fq1&&_2Q1<=_Gq1;},_xr1:function(out){var _Pg=out||{};this.parent.prototype._xr1.call(this,_Pg);_Pg['localAnchorA']=this._iP1._xr1();_Pg['localAnchorB']=this._jP1._xr1();_Pg['localAxisA']=this._GQ1._xr1();_Pg['referenceAngle']=this._kP1;_Pg['enableLimit']=this._rP1;_Pg['lowerTranslation']=this._IQ1;_Pg['upperTranslation']=this._JQ1;_Pg['enableMotor']=this._sP1; _Pg['maxMotorForce']=this._KQ1;_Pg['motorSpeed']=this._qP1;return _Pg;}};__O1._2q1(_UF1);function _8R1(){this.parent.call(this);this.type=_UF1._WO1;this._9P1=new _kr1();this._aP1=new _kr1();this._6Q1=0.0;this._9R1=0.0;Object.seal(this);}_8R1.prototype={_qx1:function(_WG1,_XG1,anchor){this._ZF1=_WG1;this.__F1=_XG1;this._9P1._lQ(this._ZF1._ID1(anchor));this._aP1._lQ(this.__F1._ID1(anchor));},_yr1:function(data,_2H1,_JO1){this.parent.prototype._yr1.call(this,data,_2H1,_JO1);this._9P1._yr1(data['localAnchorA']); this._aP1._yr1(data['localAnchorB']);this._6Q1=data['maxForce'];this._9R1=data['maxTorque'];}};_8R1._2q1(_HO1);function _5P1(_3D1){this.parent.call(this,_3D1);this._iP1=_3D1._9P1._63();this._jP1=_3D1._aP1._63();this._aR1=new _kr1();this._bR1=0.0;this._aQ1=_3D1._6Q1;this._cR1=_3D1._9R1;this._6M1=0;this._7M1=0;this._uP1=new _kr1();this._vP1=new _kr1();this._wP1=new _kr1();this._xP1=new _kr1();this._yP1=0;this._zP1=0;this._AP1=0;this._BP1=0;this._dR1=new _Cr1();this._eR1=0;}_5P1.prototype={_8H1:function(){ return this._XF1._FD1(this._iP1);},_9H1:function(){return this._WF1._FD1(this._jP1);},_KO1:function(_2F1){return _kr1.Multiply(_2F1,this._aR1);},_LO1:function(_2F1){return _2F1*this._bR1;},_DP1:function(){return this._iP1;},_EP1:function(){return this._jP1;},_iQ1:function(_vD1){_wq1(_ar1(_vD1)&&_vD1>=0.0);this._aQ1=_vD1;},_jQ1:function(){return this._aQ1;},_fR1:function(_yD1){_wq1(_ar1(_yD1)&&_yD1>=0.0);this._cR1=_yD1;},_gR1:function(){return this._cR1;},_qO1:function(data){this._6M1=this._XF1._uC1;this._7M1=this._WF1._uC1; this._wP1._lQ(this._XF1._DC1._5s1);this._xP1._lQ(this._WF1._DC1._5s1);this._yP1=this._XF1._SC1;this._zP1=this._WF1._SC1;this._AP1=this._XF1._UC1;this._BP1=this._WF1._UC1;var _mN1=data._aF1[this._6M1]._h4;var _nN1=data._bF1[this._6M1]._Y4._63();var _Zv1=data._bF1[this._6M1].w;var _oN1=data._aF1[this._7M1]._h4;var _pN1=data._bF1[this._7M1]._Y4._63();var __v1=data._bF1[this._7M1].w;var _TP1=new _Zr1(_mN1),_UP1=new _Zr1(_oN1);this._uP1=_ts1(_TP1,_kr1._rr1(this._iP1,this._wP1));this._vP1=_ts1(_UP1,_kr1._rr1(this._jP1, this._xP1));var _kN1=this._yP1,_lN1=this._zP1;var _iB1=this._AP1,_jB1=this._BP1;var _0N1=new _Cr1();_0N1._bk.x=_kN1+_lN1+_iB1*this._uP1.y*this._uP1.y+_jB1*this._vP1.y*this._vP1.y;_0N1._bk.y=-_iB1*this._uP1.x*this._uP1.y-_jB1*this._vP1.x*this._vP1.y;_0N1._OM.x=_0N1._bk.y;_0N1._OM.y=_kN1+_lN1+_iB1*this._uP1.x*this._uP1.x+_jB1*this._vP1.x*this._vP1.x;this._dR1=_0N1._Er1();this._eR1=_iB1+_jB1;if(this._eR1>0.0){this._eR1=1.0/this._eR1;}if(data.step._6F1){this._aR1.Multiply(data.step._3F1);this._bR1*=data.step._3F1; var _cz1=new _kr1(this._aR1.x,this._aR1.y);_nN1._rr1(_kr1.Multiply(_kN1,_cz1));_Zv1-=_iB1*(_fs1(this._uP1,_cz1)+this._bR1);_pN1._Gf(_kr1.Multiply(_lN1,_cz1));__v1+=_jB1*(_fs1(this._vP1,_cz1)+this._bR1);}else {this._aR1._lr1();this._bR1=0.0;}data._bF1[this._6M1]._Y4._lQ(_nN1);data._bF1[this._6M1].w=_Zv1;data._bF1[this._7M1]._Y4._lQ(_pN1);data._bF1[this._7M1].w=__v1;},_IN1:function(data){var _nN1=data._bF1[this._6M1]._Y4._63();var _Zv1=data._bF1[this._6M1].w;var _pN1=data._bF1[this._7M1]._Y4._63();var __v1=data._bF1[this._7M1].w; var _kN1=this._yP1,_lN1=this._zP1;var _iB1=this._AP1,_jB1=this._BP1;var h=data.step._AD;{var _WP1=__v1-_Zv1;var _AD1=-this._eR1*_WP1;var _XP1=this._bR1;var _YP1=h*this._cR1;this._bR1=_Ks1(this._bR1+_AD1,-_YP1,_YP1);_AD1=this._bR1-_XP1;_Zv1-=_iB1*_AD1;__v1+=_jB1*_AD1;}{var __P1=_kr1._Gf(_pN1,_kr1._rr1(_hs1(__v1,this._vP1),_kr1._rr1(_nN1,_hs1(_Zv1,this._uP1))));var _hR1=_is1(this._dR1,__P1)._or1();var _iR1=this._aR1._63();this._aR1._Gf(_hR1);var _jR1=h*this._aQ1;if(this._aR1._sr1()>_jR1*_jR1){this._aR1._tr1(); this._aR1.Multiply(_jR1);}_hR1=_kr1._rr1(this._aR1,_iR1);_nN1._rr1(_kr1.Multiply(_kN1,_hR1));_Zv1-=_iB1*_fs1(this._uP1,_hR1);_pN1._Gf(_kr1.Multiply(_lN1,_hR1));__v1+=_jB1*_fs1(this._vP1,_hR1);}data._bF1[this._6M1]._Y4._lQ(_nN1);data._bF1[this._6M1].w=_Zv1;data._bF1[this._7M1]._Y4._lQ(_pN1);data._bF1[this._7M1].w=__v1;},_2O1:function(data){return true;},_xr1:function(out){var _Pg=out||{};this.parent.prototype._xr1.call(this,_Pg);_Pg['localAnchorA']=this._iP1._xr1();_Pg['localAnchorB']=this._jP1._xr1(); _Pg['maxForce']=this._aQ1;_Pg['maxTorque']=this._cR1;return _Pg;}};_5P1._2q1(_UF1);function _kR1(){this.parent.call(this);this.type=_UF1._VO1;this._9P1=new _kr1(0.0,0.0);this._aP1=new _kr1(0.0,0.0);this._bP1=0.0;this._7Q1=0.0;this._8Q1=0.0;Object.seal(this);}_kR1.prototype={_qx1:function(_WG1,_XG1,anchor){this._ZF1=_WG1;this.__F1=_XG1;this._9P1._lQ(this._ZF1._ID1(anchor));this._aP1._lQ(this.__F1._ID1(anchor));this._bP1=this.__F1.__r1()-this._ZF1.__r1();},_yr1:function(data,_2H1,_JO1){this.parent.prototype._yr1.call(this, data,_2H1,_JO1);this._9P1._yr1(data['localAnchorA']);this._aP1._yr1(data['localAnchorB']);this._bP1=data['referenceAngle'];this._7Q1=data['frequencyHz'];this._8Q1=data['dampingRatio'];}};_kR1._2q1(_HO1);function _4P1(_3D1){this.parent.call(this,_3D1);this._sQ1=0;this._eQ1=0;this._6M1=0;this._7M1=0;this._uP1=new _kr1();this._vP1=new _kr1();this._wP1=new _kr1();this._xP1=new _kr1();this._yP1=0;this._zP1=0;this._AP1=0;this._BP1=0;this._RC1=new _Mr1();this._iP1=_3D1._9P1._63();this._jP1=_3D1._aP1._63();this._kP1=_3D1._bP1; this._bQ1=_3D1._7Q1;this._cQ1=_3D1._8Q1;this._lP1=new _Ar1();}_4P1.prototype={_8H1:function(){return this._XF1._FD1(this._iP1);},_9H1:function(){return this._WF1._FD1(this._jP1);},_KO1:function(_2F1){var _cz1=new _kr1(this._lP1.x,this._lP1.y);return _kr1.Multiply(_2F1,_cz1);},_LO1:function(_2F1){return _2F1*this._lP1.z;},_DP1:function(){return this._iP1;},_EP1:function(){return this._jP1;},_FP1:function(){return this._kP1;},_kQ1:function(_lQ1){this._bQ1=_lQ1;},_mQ1:function(){return this._bQ1;},_nQ1:function(ratio){ this._cQ1=ratio;},_oQ1:function(){return this._cQ1;},_qO1:function(data){this._6M1=this._XF1._uC1;this._7M1=this._WF1._uC1;this._wP1._lQ(this._XF1._DC1._5s1);this._xP1._lQ(this._WF1._DC1._5s1);this._yP1=this._XF1._SC1;this._zP1=this._WF1._SC1;this._AP1=this._XF1._UC1;this._BP1=this._WF1._UC1;var _mN1=data._aF1[this._6M1]._h4;var _nN1=data._bF1[this._6M1]._Y4._63();var _Zv1=data._bF1[this._6M1].w;var _oN1=data._aF1[this._7M1]._h4;var _pN1=data._bF1[this._7M1]._Y4._63();var __v1=data._bF1[this._7M1].w;var _TP1=new _Zr1(_mN1), _UP1=new _Zr1(_oN1);this._uP1._lQ(_ts1(_TP1,_kr1._rr1(this._iP1,this._wP1)));this._vP1._lQ(_ts1(_UP1,_kr1._rr1(this._jP1,this._xP1)));var _kN1=this._yP1,_lN1=this._zP1;var _iB1=this._AP1,_jB1=this._BP1;var _0N1=new _Mr1();_0N1._bk.x=_kN1+_lN1+this._uP1.y*this._uP1.y*_iB1+this._vP1.y*this._vP1.y*_jB1;_0N1._OM.x=-this._uP1.y*this._uP1.x*_iB1-this._vP1.y*this._vP1.x*_jB1;_0N1._Or1.x=-this._uP1.y*_iB1-this._vP1.y*_jB1;_0N1._bk.y=_0N1._OM.x;_0N1._OM.y=_kN1+_lN1+this._uP1.x*this._uP1.x*_iB1+this._vP1.x*this._vP1.x*_jB1; _0N1._Or1.y=this._uP1.x*_iB1+this._vP1.x*_jB1;_0N1._bk.z=_0N1._Or1.x;_0N1._OM.z=_0N1._Or1.y;_0N1._Or1.z=_iB1+_jB1;if(this._bQ1>0.0){_0N1._Tr1(this._RC1);var _lR1=_iB1+_jB1;var _v6=_lR1>0.0?1.0/_lR1:0.0;var _zs1=_oN1-_mN1-this._kP1;var _171=2.0*_Aq1*this._bQ1;var _Bm=2.0*_v6*this._cQ1*_171;var _ml=_v6*_171*_171;var h=data.step._AD;this._eQ1=h*(_Bm+h*_ml);this._eQ1=this._eQ1!=0.0?1.0/this._eQ1:0.0;this._sQ1=_zs1*h*_ml*this._eQ1;_lR1+=this._eQ1;this._RC1._Or1.z=_lR1!=0.0?1.0/_lR1:0.0;}else {_0N1._Vr1(this._RC1); this._eQ1=0.0;this._sQ1=0.0;}if(data.step._6F1){this._lP1.Multiply(data.step._3F1);var _cz1=new _kr1(this._lP1.x,this._lP1.y);_nN1._rr1(_kr1.Multiply(_kN1,_cz1));_Zv1-=_iB1*(_fs1(this._uP1,_cz1)+this._lP1.z);_pN1._Gf(_kr1.Multiply(_lN1,_cz1));__v1+=_jB1*(_fs1(this._vP1,_cz1)+this._lP1.z);}else {this._lP1._lr1();}data._bF1[this._6M1]._Y4._lQ(_nN1);data._bF1[this._6M1].w=_Zv1;data._bF1[this._7M1]._Y4._lQ(_pN1);data._bF1[this._7M1].w=__v1;},_IN1:function(data){var _nN1=data._bF1[this._6M1]._Y4._63();var _Zv1=data._bF1[this._6M1].w; var _pN1=data._bF1[this._7M1]._Y4._63();var __v1=data._bF1[this._7M1].w;var _kN1=this._yP1,_lN1=this._zP1;var _iB1=this._AP1,_jB1=this._BP1;if(this._bQ1>0.0){var __P1=__v1-_Zv1;var _hR1=-this._RC1._Or1.z*(__P1+this._sQ1+this._eQ1*this._lP1.z);this._lP1.z+=_hR1;_Zv1-=_iB1*_hR1;__v1+=_jB1*_hR1;var _ZP1=_kr1._rr1(_kr1._rr1(_kr1._Gf(_pN1,_hs1(__v1,this._vP1)),_nN1),_hs1(_Zv1,this._uP1));var _7R1=_ps1(this._RC1,_ZP1)._or1();this._lP1.x+=_7R1.x;this._lP1.y+=_7R1.y;var _cz1=_7R1._63();_nN1._rr1(_kr1.Multiply(_kN1, _cz1));_Zv1-=_iB1*_fs1(this._uP1,_cz1);_pN1._Gf(_kr1.Multiply(_lN1,_cz1));__v1+=_jB1*_fs1(this._vP1,_cz1);}else {var _ZP1=_kr1._rr1(_kr1._rr1(_kr1._Gf(_pN1,_hs1(__v1,this._vP1)),_nN1),_hs1(_Zv1,this._uP1));var __P1=__v1-_Zv1;var _WP1=new _Ar1(_ZP1.x,_ZP1.y,__P1);var _AD1=_os1(this._RC1,_WP1)._or1();this._lP1._Gf(_AD1);var _cz1=new _kr1(_AD1.x,_AD1.y);_nN1._rr1(_kr1.Multiply(_kN1,_cz1));_Zv1-=_iB1*(_fs1(this._uP1,_cz1)+_AD1.z);_pN1._Gf(_kr1.Multiply(_lN1,_cz1));__v1+=_jB1*(_fs1(this._vP1,_cz1)+_AD1.z);}data._bF1[this._6M1]._Y4._lQ(_nN1); data._bF1[this._6M1].w=_Zv1;data._bF1[this._7M1]._Y4._lQ(_pN1);data._bF1[this._7M1].w=__v1;},_2O1:function(data){var _aG1=data._aF1[this._6M1].c._63();var _mN1=data._aF1[this._6M1]._h4;var _cG1=data._aF1[this._7M1].c._63();var _oN1=data._aF1[this._7M1]._h4;var _TP1=new _Zr1(_mN1),_UP1=new _Zr1(_oN1);var _kN1=this._yP1,_lN1=this._zP1;var _iB1=this._AP1,_jB1=this._BP1;var _0x1=_ts1(_TP1,_kr1._rr1(this._iP1,this._wP1));var _1x1=_ts1(_UP1,_kr1._rr1(this._jP1,this._xP1));var _3Q1,_2Q1;var _0N1=new _Mr1();_0N1._bk.x=_kN1+_lN1+_0x1.y*_0x1.y*_iB1+_1x1.y*_1x1.y*_jB1; _0N1._OM.x=-_0x1.y*_0x1.x*_iB1-_1x1.y*_1x1.x*_jB1;_0N1._Or1.x=-_0x1.y*_iB1-_1x1.y*_jB1;_0N1._bk.y=_0N1._OM.x;_0N1._OM.y=_kN1+_lN1+_0x1.x*_0x1.x*_iB1+_1x1.x*_1x1.x*_jB1;_0N1._Or1.y=_0x1.x*_iB1+_1x1.x*_jB1;_0N1._bk.z=_0N1._Or1.x;_0N1._OM.z=_0N1._Or1.y;_0N1._Or1.z=_iB1+_jB1;if(this._bQ1>0.0){var _4R1=_kr1._rr1(_kr1._rr1(_kr1._Gf(_cG1,_1x1),_aG1),_0x1);_3Q1=_4R1.Length();_2Q1=0.0;var _cz1=_0N1._Sr1(_4R1)._or1();_aG1._rr1(_kr1.Multiply(_kN1,_cz1));_mN1-=_iB1*_fs1(_0x1,_cz1);_cG1._Gf(_kr1.Multiply(_lN1, _cz1));_oN1+=_jB1*_fs1(_1x1,_cz1);}else {var _4R1=_kr1._rr1(_kr1._rr1(_kr1._Gf(_cG1,_1x1),_aG1),_0x1);var _6R1=_oN1-_mN1-this._kP1;_3Q1=_4R1.Length();_2Q1=_Ds1(_6R1);var _zs1=new _Ar1(_4R1.x,_4R1.y,_6R1);var _AD1=_0N1._Pr1(_zs1)._or1();var _cz1=new _kr1(_AD1.x,_AD1.y);_aG1._rr1(_kr1.Multiply(_kN1,_cz1));_mN1-=_iB1*(_fs1(_0x1,_cz1)+_AD1.z);_cG1._Gf(_kr1.Multiply(_lN1,_cz1));_oN1+=_jB1*(_fs1(_1x1,_cz1)+_AD1.z);}data._aF1[this._6M1].c._lQ(_aG1);data._aF1[this._6M1]._h4=_mN1;data._aF1[this._7M1].c._lQ(_cG1); data._aF1[this._7M1]._h4=_oN1;return _3Q1<=_Fq1&&_2Q1<=_Gq1;},_xr1:function(out){var _Pg=out||{};this.parent.prototype._xr1.call(this,_Pg);_Pg['localAnchorA']=this._iP1._xr1();_Pg['localAnchorB']=this._jP1._xr1();_Pg['referenceAngle']=this._kP1;_Pg['frequencyHz']=this._bQ1;_Pg['dampingRatio']=this._cQ1;return _Pg;}};_4P1._2q1(_UF1);function _mR1(){this.parent.call(this);this.type=_UF1._UO1;this._9P1=new _kr1();this._aP1=new _kr1();this._CQ1=new _kr1(1.0,0.0);this._hP1=false;this._eP1=0.0;this._fP1=0.0; this._7Q1=2.0;this._8Q1=0.7;Object.seal(this);}_mR1.prototype={_qx1:function(_WG1,_XG1,anchor,_1v){this._ZF1=_WG1;this.__F1=_XG1;this._9P1._lQ(this._ZF1._ID1(anchor));this._aP1._lQ(this.__F1._ID1(anchor));this._CQ1._lQ(this._ZF1._KD1(_1v));},_yr1:function(data,_2H1,_JO1){this.parent.prototype._yr1.call(this,data,_2H1,_JO1);this._9P1._yr1(data['localAnchorA']);this._aP1._yr1(data['localAnchorB']);this._CQ1._yr1(data['localAxisA']);this._hP1=data['enableMotor'];this._eP1=data['maxMotorTorque'];this._fP1=data['motorSpeed']; this._7Q1=data['frequencyHz'];this._8Q1=data['dampingRatio'];}};_mR1._2q1(_HO1);function _3P1(_3D1){this.parent.call(this,_3D1);this._6M1=0;this._7M1=0;this._wP1=new _kr1();this._xP1=new _kr1();this._yP1=0;this._zP1=0;this._AP1=0;this._BP1=0;this._iP1=_3D1._9P1._63();this._jP1=_3D1._aP1._63();this._GQ1=_3D1._CQ1._63();this._HQ1=_hs1(1.0,this._GQ1);this._RC1=0.0;this._lP1=0.0;this._CP1=0.0;this._mP1=0.0;this._nR1=0.0;this._oR1=0.0;this._pP1=_3D1._eP1;this._qP1=_3D1._fP1;this._sP1=_3D1._hP1;this._bQ1=_3D1._7Q1; this._cQ1=_3D1._8Q1;this._sQ1=0.0;this._eQ1=0.0;this._pR1=new _kr1();this._qR1=new _kr1();this._rR1=this._sR1=0;this._tR1=this._uR1=0;}_3P1.prototype={_8H1:function(){return this._XF1._FD1(this._iP1);},_9H1:function(){return this._WF1._FD1(this._jP1);},_KO1:function(_2F1){return _kr1.Multiply(_2F1,_kr1._Gf(_kr1.Multiply(this._lP1,this._qR1),_kr1.Multiply(this._oR1,this._pR1)));},_LO1:function(_2F1){return _2F1*this._mP1;},_DP1:function(){return this._iP1;},_EP1:function(){return this._jP1;},_RQ1:function(){ return this._GQ1;},_SQ1:function(){var _WG1=this._XF1;var _XG1=this._WF1;var _fw1=_WG1._FD1(this._iP1);var _gw1=_XG1._FD1(this._jP1);var _Bm=_kr1._rr1(_gw1,_fw1);var _1v=_WG1._GD1(this._GQ1);var _CO1=_es1(_Bm,_1v);return _CO1;},_HP1:function(){var _Zv1=this._XF1._JC1;var __v1=this._WF1._JC1;return __v1-_Zv1;},_NP1:function(){return this._sP1;},_a61:function(_ZD1){this._XF1._Z41(true);this._WF1._Z41(true);this._sP1=_ZD1;},_OP1:function(speed){this._XF1._Z41(true);this._WF1._Z41(true);this._qP1=speed;},_PP1:function(){ return this._qP1;},_QP1:function(_yD1){this._XF1._Z41(true);this._WF1._Z41(true);this._pP1=_yD1;},_RP1:function(){return this._pP1;},_SP1:function(_2F1){return _2F1*this._mP1;},_vR1:function(_lQ1){this._bQ1=_lQ1;},_wR1:function(){return this._bQ1;},_xR1:function(ratio){this._cQ1=ratio;},_yR1:function(){return this._cQ1;},_qO1:function(data){this._6M1=this._XF1._uC1;this._7M1=this._WF1._uC1;this._wP1._lQ(this._XF1._DC1._5s1);this._xP1._lQ(this._WF1._DC1._5s1);this._yP1=this._XF1._SC1;this._zP1=this._WF1._SC1; this._AP1=this._XF1._UC1;this._BP1=this._WF1._UC1;var _kN1=this._yP1,_lN1=this._zP1;var _iB1=this._AP1,_jB1=this._BP1;var _aG1=data._aF1[this._6M1].c._63();var _mN1=data._aF1[this._6M1]._h4;var _nN1=data._bF1[this._6M1]._Y4._63();var _Zv1=data._bF1[this._6M1].w;var _cG1=data._aF1[this._7M1].c._63();var _oN1=data._aF1[this._7M1]._h4;var _pN1=data._bF1[this._7M1]._Y4._63();var __v1=data._bF1[this._7M1].w;var _TP1=new _Zr1(_mN1),_UP1=new _Zr1(_oN1);var _0x1=_ts1(_TP1,_kr1._rr1(this._iP1,this._wP1));var _1x1=_ts1(_UP1, _kr1._rr1(this._jP1,this._xP1));var _Bm=_kr1._rr1(_kr1._rr1(_kr1._Gf(_cG1,_1x1),_aG1),_0x1);{this._qR1._lQ(_ts1(_TP1,this._HQ1));this._tR1=_fs1(_kr1._Gf(_Bm,_0x1),this._qR1);this._uR1=_fs1(_1x1,this._qR1);this._RC1=_kN1+_lN1+_iB1*this._tR1*this._tR1+_jB1*this._uR1*this._uR1;if(this._RC1>0.0){this._RC1=1.0/this._RC1;}}this._nR1=0.0;this._sQ1=0.0;this._eQ1=0.0;if(this._bQ1>0.0){this._pR1._lQ(_ts1(_TP1,this._GQ1));this._rR1=_fs1(_kr1._Gf(_Bm,_0x1),this._pR1);this._sR1=_fs1(_1x1,this._pR1);var _yQ1=_kN1+_lN1+_iB1*this._rR1*this._rR1+_jB1*this._sR1*this._sR1; if(_yQ1>0.0){this._nR1=1.0/_yQ1;var _zs1=_es1(_Bm,this._pR1);var _171=2.0*_Aq1*this._bQ1;var _0E=2.0*this._nR1*this._cQ1*_171;var _ml=this._nR1*_171*_171;var h=data.step._AD;this._eQ1=h*(_0E+h*_ml);if(this._eQ1>0.0){this._eQ1=1.0/this._eQ1;}this._sQ1=_zs1*h*_ml*this._eQ1;this._nR1=_yQ1+this._eQ1;if(this._nR1>0.0){this._nR1=1.0/this._nR1;}}}else {this._oR1=0.0;}if(this._sP1){this._CP1=_iB1+_jB1;if(this._CP1>0.0){this._CP1=1.0/this._CP1;}}else {this._CP1=0.0;this._mP1=0.0;}if(data.step._6F1){this._lP1*=data.step._3F1; this._oR1*=data.step._3F1;this._mP1*=data.step._3F1;var _cz1=_kr1._Gf(_kr1.Multiply(this._lP1,this._qR1),_kr1.Multiply(this._oR1,this._pR1));var __Q1=this._lP1*this._tR1+this._oR1*this._rR1+this._mP1;var _0R1=this._lP1*this._uR1+this._oR1*this._sR1+this._mP1;_nN1._rr1(_kr1.Multiply(this._yP1,_cz1));_Zv1-=this._AP1*__Q1;_pN1._Gf(_kr1.Multiply(this._zP1,_cz1));__v1+=this._BP1*_0R1;}else {this._lP1=0.0;this._oR1=0.0;this._mP1=0.0;}data._bF1[this._6M1]._Y4._lQ(_nN1);data._bF1[this._6M1].w=_Zv1;data._bF1[this._7M1]._Y4._lQ(_pN1); data._bF1[this._7M1].w=__v1;},_IN1:function(data){var _kN1=this._yP1,_lN1=this._zP1;var _iB1=this._AP1,_jB1=this._BP1;var _nN1=data._bF1[this._6M1]._Y4._63();var _Zv1=data._bF1[this._6M1].w;var _pN1=data._bF1[this._7M1]._Y4._63();var __v1=data._bF1[this._7M1].w;{var _WP1=_es1(this._pR1,_kr1._rr1(_pN1,_nN1))+this._sR1*__v1-this._rR1*_Zv1;var _AD1=-this._nR1*(_WP1+this._sQ1+this._eQ1*this._oR1);this._oR1+=_AD1;var _cz1=_kr1.Multiply(_AD1,this._pR1);var __Q1=_AD1*this._rR1;var _0R1=_AD1*this._sR1;_nN1._rr1(_kr1.Multiply(_kN1, _cz1));_Zv1-=_iB1*__Q1;_pN1._Gf(_kr1.Multiply(_lN1,_cz1));__v1+=_jB1*_0R1;}{var _WP1=__v1-_Zv1-this._qP1;var _AD1=-this._CP1*_WP1;var _XP1=this._mP1;var _YP1=data.step._AD*this._pP1;this._mP1=_Ks1(this._mP1+_AD1,-_YP1,_YP1);_AD1=this._mP1-_XP1;_Zv1-=_iB1*_AD1;__v1+=_jB1*_AD1;}{var _WP1=_es1(this._qR1,_kr1._rr1(_pN1,_nN1))+this._uR1*__v1-this._tR1*_Zv1;var _AD1=-this._RC1*_WP1;this._lP1+=_AD1;var _cz1=_kr1.Multiply(_AD1,this._qR1);var __Q1=_AD1*this._tR1;var _0R1=_AD1*this._uR1;_nN1._rr1(_kr1.Multiply(_kN1, _cz1));_Zv1-=_iB1*__Q1;_pN1._Gf(_kr1.Multiply(_lN1,_cz1));__v1+=_jB1*_0R1;}data._bF1[this._6M1]._Y4._lQ(_nN1);data._bF1[this._6M1].w=_Zv1;data._bF1[this._7M1]._Y4._lQ(_pN1);data._bF1[this._7M1].w=__v1;},_2O1:function(data){var _aG1=data._aF1[this._6M1].c._63();var _mN1=data._aF1[this._6M1]._h4;var _cG1=data._aF1[this._7M1].c._63();var _oN1=data._aF1[this._7M1]._h4;var _TP1=new _Zr1(_mN1),_UP1=new _Zr1(_oN1);var _0x1=_ts1(_TP1,_kr1._rr1(this._iP1,this._wP1));var _1x1=_ts1(_UP1,_kr1._rr1(this._jP1,this._xP1)); var _Bm=_kr1._Gf(_kr1._rr1(_cG1,_aG1),_kr1._rr1(_1x1,_0x1));var ay=_ts1(_TP1,this._HQ1);var _zR1=_fs1(_kr1._Gf(_Bm,_0x1),ay);var _AR1=_fs1(_1x1,ay);var _zs1=_es1(_Bm,ay);var _ml=this._yP1+this._zP1+this._AP1*this._tR1*this._tR1+this._BP1*this._uR1*this._uR1;var _AD1;if(_ml!=0.0){_AD1=-_zs1/_ml;}else {_AD1=0.0;}var _cz1=_kr1.Multiply(_AD1,ay);var __Q1=_AD1*_zR1;var _0R1=_AD1*_AR1;_aG1._rr1(_kr1.Multiply(this._yP1,_cz1));_mN1-=this._AP1*__Q1;_cG1._Gf(_kr1.Multiply(this._zP1,_cz1));_oN1+=this._BP1*_0R1;data._aF1[this._6M1].c._lQ(_aG1); data._aF1[this._6M1]._h4=_mN1;data._aF1[this._7M1].c._lQ(_cG1);data._aF1[this._7M1]._h4=_oN1;return _Ds1(_zs1)<=_Fq1;},_xr1:function(out){var _Pg=out||{};this.parent.prototype._xr1.call(this,_Pg);_Pg['localAnchorA']=this._iP1._xr1();_Pg['localAnchorB']=this._jP1._xr1();_Pg['localAxisA']=this._BR1._xr1();_Pg['enableMotor']=this._sP1;_Pg['maxMotorTorque']=this._pP1;_Pg['motorSpeed']=this._qP1;_Pg['frequencyHz']=this._bQ1;_Pg['dampingRatio']=this._cQ1;return _Pg;}};_3P1._2q1(_UF1);function _CR1(){this.parent.call(this); this.type=_UF1._TO1;this._DR1=null;this._ER1=null;this.ratio=1.0;Object.seal(this);}_CR1.prototype={_yr1:function(data,_2H1,_JO1){this.parent.prototype._yr1.call(this,data,_2H1,_JO1);this._DR1=data['joint1'];this._ER1=data['joint2'];this.ratio=data['ratio'];}};_CR1._2q1(_HO1);/// @warning You have to manually destroy the gear joint if joint1 or joint2 function _2P1(_3D1){this.parent.call(this,_3D1);this._FR1=_3D1._DR1;this._GR1=_3D1._ER1;this._HR1=this._FR1._Vl1();this._IR1=this._GR1._Vl1();_wq1(this._HR1==_UF1._RO1||this._HR1==_UF1._SO1); _wq1(this._IR1==_UF1._RO1||this._IR1==_UF1._SO1);var _JR1,_KR1;this._LR1=this._FR1._6H1();this._XF1=this._FR1._7H1();var _rx1=this._XF1._yz1;var _mN1=this._XF1._DC1._h4;var _MR1=this._LR1._yz1;var _NR1=this._LR1._DC1._h4;this._iP1=new _kr1();this._jP1=new _kr1();this._OR1=new _kr1();this._PR1=new _kr1();this._QR1=new _kr1();this._RR1=new _kr1();if(this._HR1==_UF1._RO1){var _SR1=_3D1._DR1;this._OR1._lQ(_SR1._iP1);this._iP1._lQ(_SR1._jP1);this._TR1=_SR1._kP1;this._QR1._lr1();_JR1=_mN1-_NR1-this._TR1;}else {var _UR1=_3D1._DR1; this._OR1._lQ(_UR1._iP1);this._iP1._lQ(_UR1._jP1);this._TR1=_UR1._kP1;this._QR1._lQ(_UR1._GQ1);var _VR1=this._OR1;var _fw1=_us1(_MR1.q,_kr1._Gf(_ts1(_rx1.q,this._iP1),_kr1._rr1(_rx1._gh,_MR1._gh)));_JR1=_es1(_kr1._rr1(_fw1,_VR1),this._QR1);}this._WR1=this._GR1._6H1();this._WF1=this._GR1._7H1();var _tx1=this._WF1._yz1;var _oN1=this._WF1._DC1._h4;var _XR1=this._WR1._yz1;var _YR1=this._WR1._DC1._h4;if(this._IR1==_UF1._RO1){var _SR1=_3D1._ER1;this._PR1._lQ(_SR1._iP1);this._jP1._lQ(_SR1._jP1);this._ZR1=_SR1._kP1; this._RR1._lr1();_KR1=_oN1-_YR1-this._ZR1;}else {var _UR1=_3D1._ER1;this._PR1._lQ(_UR1._iP1);this._jP1._lQ(_UR1._jP1);this._ZR1=_UR1._kP1;this._RR1._lQ(_UR1._GQ1);var __R1=this._PR1;var _gw1=_us1(_XR1.q,_kr1._Gf(_ts1(_tx1.q,this._jP1),_kr1._rr1(_tx1._gh,_XR1._gh)));_KR1=_es1(_kr1._rr1(_gw1,__R1),this._RR1);}this._0S1=_3D1.ratio;this._1S1=_JR1+this._0S1*_KR1;this._lP1=0.0;this._6M1=this._7M1=this._2S1=this._3S1=0;this._4S1=new _kr1();this._5S1=new _kr1();this._6S1=new _kr1();this._7S1=new _kr1();this._8S1=this._9S1=this._aS1=this._bS1=0; this._cS1=this._dS1=this._eS1=this._fS1=0;this._gS1=new _kr1(),this._hS1=new _kr1();this._iS1=this._jS1=this._kS1=this._lS1=0;this._RC1=0;}_2P1.prototype={_8H1:function(){return this._XF1._FD1(this._iP1);},_9H1:function(){return this._WF1._FD1(this._jP1);},_KO1:function(_2F1){var _cz1=_kr1.Multiply(this._lP1,this._gS1);return _kr1.Multiply(_2F1,_cz1);},_LO1:function(_2F1){var _mS1=this._lP1*this._iS1;return _2F1*_mS1;},_nS1:function(){return this._FR1;},_oS1:function(){return this._GR1;},_pS1:function(ratio){ _wq1(_ar1(ratio));this._0S1=ratio;},_qS1:function(){return this._0S1;},_qO1:function(data){this._6M1=this._XF1._uC1;this._7M1=this._WF1._uC1;this._2S1=this._LR1._uC1;this._3S1=this._WR1._uC1;this._4S1._lQ(this._XF1._DC1._5s1);this._5S1._lQ(this._WF1._DC1._5s1);this._6S1._lQ(this._LR1._DC1._5s1);this._7S1._lQ(this._WR1._DC1._5s1);this._8S1=this._XF1._SC1;this._9S1=this._WF1._SC1;this._aS1=this._LR1._SC1;this._bS1=this._WR1._SC1;this._cS1=this._XF1._UC1;this._dS1=this._WF1._UC1;this._eS1=this._LR1._UC1; this._fS1=this._WR1._UC1;var _mN1=data._aF1[this._6M1]._h4;var _nN1=data._bF1[this._6M1]._Y4._63();var _Zv1=data._bF1[this._6M1].w;var _oN1=data._aF1[this._7M1]._h4;var _pN1=data._bF1[this._7M1]._Y4._63();var __v1=data._bF1[this._7M1].w;var _NR1=data._aF1[this._2S1]._h4;var _rS1=data._bF1[this._2S1]._Y4._63();var _sS1=data._bF1[this._2S1].w;var _YR1=data._aF1[this._3S1]._h4;var _tS1=data._bF1[this._3S1]._Y4._63();var _uS1=data._bF1[this._3S1].w;var _TP1=new _Zr1(_mN1),_UP1=new _Zr1(_oN1),_vS1=new _Zr1(_NR1),_wS1=new _Zr1(_YR1); this._RC1=0.0;if(this._HR1==_UF1._RO1){this._gS1._lr1();this._iS1=1.0;this._kS1=1.0;this._RC1+=this._cS1+this._eS1;}else {var _X4=_ts1(_vS1,this._QR1);var _xS1=_ts1(_vS1,_kr1._rr1(this._OR1,this._6S1));var _0x1=_ts1(_TP1,_kr1._rr1(this._iP1,this._4S1));this._gS1._lQ(_X4);this._kS1=_fs1(_xS1,_X4);this._iS1=_fs1(_0x1,_X4);this._RC1+=this._aS1+this._8S1+this._eS1*this._kS1*this._kS1+this._cS1*this._iS1*this._iS1;}if(this._IR1==_UF1._RO1){this._hS1._lr1();this._jS1=this._0S1;this._lS1=this._0S1;this._RC1+=this._0S1*this._0S1*(this._dS1+this._fS1); }else {var _X4=_ts1(_wS1,this._RR1);var _yS1=_ts1(_wS1,_kr1._rr1(this._PR1,this._7S1));var _1x1=_ts1(_UP1,_kr1._rr1(this._jP1,this._5S1));this._hS1._lQ(_kr1.Multiply(this._0S1,_X4));this._lS1=this._0S1*_fs1(_yS1,_X4);this._jS1=this._0S1*_fs1(_1x1,_X4);this._RC1+=this._0S1*this._0S1*(this._bS1+this._9S1)+this._fS1*this._lS1*this._lS1+this._dS1*this._jS1*this._jS1;}this._RC1=this._RC1>0.0?1.0/this._RC1:0.0;if(data.step._6F1){_nN1._Gf(_kr1.Multiply((this._8S1*this._lP1),this._gS1));_Zv1+=this._cS1*this._lP1*this._iS1; _pN1._Gf(_kr1.Multiply((this._9S1*this._lP1),this._hS1));__v1+=this._dS1*this._lP1*this._jS1;_rS1._rr1(_kr1.Multiply((this._aS1*this._lP1),this._gS1));_sS1-=this._eS1*this._lP1*this._kS1;_tS1._rr1(_kr1.Multiply((this._bS1*this._lP1),this._hS1));_uS1-=this._fS1*this._lP1*this._lS1;}else {this._lP1=0.0;}data._bF1[this._6M1]._Y4._lQ(_nN1);data._bF1[this._6M1].w=_Zv1;data._bF1[this._7M1]._Y4._lQ(_pN1);data._bF1[this._7M1].w=__v1;data._bF1[this._2S1]._Y4._lQ(_rS1);data._bF1[this._2S1].w=_sS1;data._bF1[this._3S1]._Y4._lQ(_tS1); data._bF1[this._3S1].w=_uS1;},_IN1:function(data){var _nN1=data._bF1[this._6M1]._Y4._63();var _Zv1=data._bF1[this._6M1].w;var _pN1=data._bF1[this._7M1]._Y4._63();var __v1=data._bF1[this._7M1].w;var _rS1=data._bF1[this._2S1]._Y4._63();var _sS1=data._bF1[this._2S1].w;var _tS1=data._bF1[this._3S1]._Y4._63();var _uS1=data._bF1[this._3S1].w;var _WP1=_es1(this._gS1,_kr1._rr1(_nN1,_rS1))+_es1(this._hS1,_kr1._rr1(_pN1,_tS1));_WP1+=(this._iS1*_Zv1-this._kS1*_sS1)+(this._jS1*__v1-this._lS1*_uS1);var _AD1=-this._RC1*_WP1; this._lP1+=_AD1;_nN1._Gf(_kr1.Multiply((this._8S1*_AD1),this._gS1));_Zv1+=this._cS1*_AD1*this._iS1;_pN1._Gf(_kr1.Multiply((this._9S1*_AD1),this._hS1));__v1+=this._dS1*_AD1*this._jS1;_rS1._rr1(_kr1.Multiply((this._aS1*_AD1),this._gS1));_sS1-=this._eS1*_AD1*this._kS1;_tS1._rr1(_kr1.Multiply((this._bS1*_AD1),this._hS1));_uS1-=this._fS1*_AD1*this._lS1;data._bF1[this._6M1]._Y4._lQ(_nN1);data._bF1[this._6M1].w=_Zv1;data._bF1[this._7M1]._Y4._lQ(_pN1);data._bF1[this._7M1].w=__v1;data._bF1[this._2S1]._Y4._lQ(_rS1); data._bF1[this._2S1].w=_sS1;data._bF1[this._3S1]._Y4._lQ(_tS1);data._bF1[this._3S1].w=_uS1;},_2O1:function(data){var _aG1=data._aF1[this._6M1].c._63();var _mN1=data._aF1[this._6M1]._h4;var _cG1=data._aF1[this._7M1].c._63();var _oN1=data._aF1[this._7M1]._h4;var _zS1=data._aF1[this._2S1].c._63();var _NR1=data._aF1[this._2S1]._h4;var _AS1=data._aF1[this._3S1].c._63();var _YR1=data._aF1[this._3S1]._h4;var _TP1=new _Zr1(_mN1),_UP1=new _Zr1(_oN1),_vS1=new _Zr1(_NR1),_wS1=new _Zr1(_YR1);var _5R1=0.0;var _JR1,_KR1;var _BS1=new _kr1(), _CS1=new _kr1();var _DS1,_ES1,_FS1,_GS1;var _nt1=0.0;if(this._HR1==_UF1._RO1){_BS1._lr1();_DS1=1.0;_FS1=1.0;_nt1+=this._cS1+this._eS1;_JR1=_mN1-_NR1-this._TR1;}else {var _X4=_ts1(_vS1,this._QR1);var _xS1=_ts1(_vS1,_kr1._rr1(this._OR1,this._6S1));var _0x1=_ts1(_TP1,_kr1._rr1(this._iP1,this._4S1));_BS1._lQ(_X4);_FS1=_fs1(_xS1,_X4);_DS1=_fs1(_0x1,_X4);_nt1+=this._aS1+this._8S1+this._eS1*_FS1*_FS1+this._cS1*_DS1*_DS1;var _VR1=_kr1._rr1(this._OR1,this._6S1);var _fw1=_us1(_vS1,_kr1._Gf(_0x1,_kr1._rr1(_aG1,_zS1))); _JR1=_es1(_kr1._rr1(_fw1,_VR1),this._QR1);}if(this._IR1==_UF1._RO1){_CS1._lr1();_ES1=this._0S1;_GS1=this._0S1;_nt1+=this._0S1*this._0S1*(this._dS1+this._fS1);_KR1=_oN1-_YR1-this._ZR1;}else {var _X4=_ts1(_wS1,this._RR1);var _yS1=_ts1(_wS1,_kr1._rr1(this._PR1,this._7S1));var _1x1=_ts1(_UP1,_kr1._rr1(this._jP1,this._5S1));_CS1._lQ(_kr1.Multiply(this._0S1,_X4));_GS1=this._0S1*_fs1(_yS1,_X4);_ES1=this._0S1*_fs1(_1x1,_X4);_nt1+=this._0S1*this._0S1*(this._bS1+this._9S1)+this._fS1*_GS1*_GS1+this._dS1*_ES1*_ES1; var __R1=_kr1._rr1(this._PR1,this._7S1);var _gw1=_us1(_wS1,_kr1._Gf(_1x1,_kr1._rr1(_cG1,_AS1)));_KR1=_es1(_kr1._rr1(_gw1,__R1),this._RR1);}var _zs1=(_JR1+this._0S1*_KR1)-this._1S1;var _AD1=0.0;if(_nt1>0.0){_AD1=-_zs1/_nt1;}_aG1._Gf(_kr1.Multiply(this._8S1,_kr1.Multiply(_AD1,_BS1)));_mN1+=this._cS1*_AD1*_DS1;_cG1._Gf(_kr1.Multiply(this._9S1,_kr1.Multiply(_AD1,_CS1)));_oN1+=this._dS1*_AD1*_ES1;_zS1._rr1(_kr1.Multiply(this._aS1,_kr1.Multiply(_AD1,_BS1)));_NR1-=this._eS1*_AD1*_FS1;_AS1._rr1(_kr1.Multiply(this._bS1, _kr1.Multiply(_AD1,_CS1)));_YR1-=this._fS1*_AD1*_GS1;data._aF1[this._6M1].c._lQ(_aG1);data._aF1[this._6M1]._h4=_mN1;data._aF1[this._7M1].c._lQ(_cG1);data._aF1[this._7M1]._h4=_oN1;data._aF1[this._2S1].c._lQ(_zS1);data._aF1[this._2S1]._h4=_NR1;data._aF1[this._3S1].c._lQ(_AS1);data._aF1[this._3S1]._h4=_YR1;return _5R1<_Fq1;},_xr1:function(out){var _Pg=out||{};this.parent.prototype._xr1.call(this,_Pg);_Pg['joint1']=this._FR1._HS1;_Pg['joint2']=this._GR1._HS1;_Pg['ratio']=this._0S1;return _Pg;}};_2P1._2q1(_UF1); function _IS1(){this.parent.call(this);this.type=_UF1._gH1;this._JS1=new _kr1();this._KS1=0.0;this._6Q1=1.0;this._9R1=1.0;this._LS1=0.3;Object.seal(this);}_IS1.prototype={_qx1:function(_WG1,_XG1){this._ZF1=_WG1;this.__F1=_XG1;var _MS1=this.__F1._e41();this._JS1._lQ(this._ZF1._ID1(_MS1));var _NS1=this._ZF1.__r1();var _OS1=this.__F1.__r1();this._KS1=_OS1-_NS1;},_yr1:function(data,_2H1,_JO1){this.parent.prototype._yr1.call(this,data,_2H1,_JO1);this._JS1._yr1(data['linearOffset']);this._KS1=data['angularOffset']; this._6Q1=data['maxForce'];this._9R1=data['maxTorque'];this._LS1=data['correctionFactor'];}};_IS1._2q1(_HO1);function _7P1(_3D1){this.parent.call(this,_3D1);this._PS1=_3D1._JS1._63();this._QS1=_3D1._KS1;this._aR1=new _kr1();this._bR1=0.0;this._aQ1=_3D1._6Q1;this._cR1=_3D1._9R1;this._RS1=_3D1._LS1;this._6M1=0;this._7M1=0;this._uP1=new _kr1();this._vP1=new _kr1();this._wP1=new _kr1();this._xP1=new _kr1();this._SS1=new _kr1();this._TS1=0;this._yP1=0;this._zP1=0;this._AP1=0;this._BP1=0;this._dR1=new _Cr1(); this._eR1=0;}_7P1.prototype={_8H1:function(){return this._XF1._e41();},_9H1:function(){return this._WF1._e41();},_KO1:function(_2F1){return _kr1.Multiply(_2F1,this._aR1);},_LO1:function(_2F1){return _2F1*this._bR1;},_US1:function(_JS1){if(_JS1.x!=this._PS1.x||_JS1.y!=this._PS1.y){this._XF1._Z41(true);this._WF1._Z41(true);this._PS1._lQ(_JS1);}},_iH1:function(){return this._PS1;},_VS1:function(_KS1){if(_KS1!=this._QS1){this._XF1._Z41(true);this._WF1._Z41(true);this._QS1=_KS1;}},_WS1:function(){return this._QS1; },_iQ1:function(_vD1){_wq1(_ar1(_vD1)&&_vD1>=0.0);this._aQ1=_vD1;},_jQ1:function(){return this._aQ1;},_fR1:function(_yD1){_wq1(_ar1(_yD1)&&_yD1>=0.0);this._cR1=_yD1;},_gR1:function(){return this._cR1;},_XS1:function(factor){_wq1(_ar1(factor)&&0.0<=factor&&factor<=1.0);this._RS1=factor;},_YS1:function(){return this._RS1;},_qO1:function(data){this._6M1=this._XF1._uC1;this._7M1=this._WF1._uC1;this._wP1._lQ(this._XF1._DC1._5s1);this._xP1._lQ(this._WF1._DC1._5s1);this._yP1=this._XF1._SC1;this._zP1=this._WF1._SC1; this._AP1=this._XF1._UC1;this._BP1=this._WF1._UC1;var _aG1=data._aF1[this._6M1].c._63();var _mN1=data._aF1[this._6M1]._h4;var _nN1=data._bF1[this._6M1]._Y4._63();var _Zv1=data._bF1[this._6M1].w;var _cG1=data._aF1[this._7M1].c._63();var _oN1=data._aF1[this._7M1]._h4;var _pN1=data._bF1[this._7M1]._Y4._63();var __v1=data._bF1[this._7M1].w;var _TP1=new _Zr1(_mN1),_UP1=new _Zr1(_oN1);this._uP1._lQ(_ts1(_TP1,this._wP1._or1()));this._vP1._lQ(_ts1(_UP1,this._xP1._or1()));var _kN1=this._yP1,_lN1=this._zP1;var _iB1=this._AP1, _jB1=this._BP1;var _0N1=new _Cr1();_0N1._bk.x=_kN1+_lN1+_iB1*this._uP1.y*this._uP1.y+_jB1*this._vP1.y*this._vP1.y;_0N1._bk.y=-_iB1*this._uP1.x*this._uP1.y-_jB1*this._vP1.x*this._vP1.y;_0N1._OM.x=_0N1._bk.y;_0N1._OM.y=_kN1+_lN1+_iB1*this._uP1.x*this._uP1.x+_jB1*this._vP1.x*this._vP1.x;this._dR1._lQ(_0N1._Er1());this._eR1=_iB1+_jB1;if(this._eR1>0.0){this._eR1=1.0/this._eR1;}this._SS1.x=_cG1.x+this._vP1.x-_aG1.x-this._uP1.x-(_TP1.c*this._PS1.x-_TP1._ni*this._PS1.y);this._SS1.y=_cG1.y+this._vP1.y-_aG1.y-this._uP1.y-(_TP1._ni*this._PS1.x+_TP1.c*this._PS1.y); this._TS1=_oN1-_mN1-this._QS1;if(data.step._6F1){this._aR1.Multiply(data.step._3F1);this._bR1*=data.step._3F1;var _cz1=new _kr1(this._aR1.x,this._aR1.y);_nN1._rr1(_kr1.Multiply(_kN1,_cz1));_Zv1-=_iB1*(_fs1(this._uP1,_cz1)+this._bR1);_pN1._Gf(_kr1.Multiply(_lN1,_cz1));__v1+=_jB1*(_fs1(this._vP1,_cz1)+this._bR1);}else {this._aR1._lr1();this._bR1=0.0;}data._bF1[this._6M1]._Y4._lQ(_nN1);data._bF1[this._6M1].w=_Zv1;data._bF1[this._7M1]._Y4._lQ(_pN1);data._bF1[this._7M1].w=__v1;},_IN1:function(data){var _nN1=data._bF1[this._6M1]._Y4._63(); var _Zv1=data._bF1[this._6M1].w;var _pN1=data._bF1[this._7M1]._Y4._63();var __v1=data._bF1[this._7M1].w;var _kN1=this._yP1,_lN1=this._zP1;var _iB1=this._AP1,_jB1=this._BP1;var h=data.step._AD;var _ZS1=data.step._2F1;{var _WP1=__v1-_Zv1+_ZS1*this._RS1*this._TS1;var _AD1=-this._eR1*_WP1;var _XP1=this._bR1;var _YP1=h*this._cR1;this._bR1=_Ks1(this._bR1+_AD1,-_YP1,_YP1);_AD1=this._bR1-_XP1;_Zv1-=_iB1*_AD1;__v1+=_jB1*_AD1;}{var _WP1=new _kr1(_pN1.x+(-__v1*this._vP1.x)-_nN1.x-(-_Zv1*this._uP1.x)+_ZS1*this._RS1*this._SS1.x, _pN1.y+(__v1*this._vP1.y)-_nN1.y-(_Zv1*this._uP1.y)+_ZS1*this._RS1*this._SS1.y);var _AD1=_is1(this._dR1,_WP1)._or1();var _XP1=this._aR1._63();this._aR1._Gf(_AD1);var _YP1=h*this._aQ1;if(this._aR1._sr1()>_YP1*_YP1){this._aR1._tr1();this._aR1.Multiply(_YP1);}_AD1._lQ(_kr1._rr1(this._aR1,_XP1));_nN1._rr1(_kr1.Multiply(_kN1,_AD1));_Zv1-=_iB1*_fs1(this._uP1,_AD1);_pN1._Gf(_kr1.Multiply(_lN1,_AD1));__v1+=_jB1*_fs1(this._vP1,_AD1);}data._bF1[this._6M1]._Y4._lQ(_nN1);data._bF1[this._6M1].w=_Zv1;data._bF1[this._7M1]._Y4._lQ(_pN1); data._bF1[this._7M1].w=__v1;},_2O1:function(data){return true;},_xr1:function(out){var _Pg=out||{};this.parent.prototype._xr1.call(this,_Pg);_Pg['linearOffset']=this._PS1._xr1();_Pg['angularOffset']=this._QS1;_Pg['maxForce']=this._aQ1;_Pg['maxTorque']=this._cR1;_Pg['correctionFactor']=this._RS1;return _Pg;}};_7P1._2q1(_UF1);var __S1=2.0;function _0T1(){this.parent.call(this);this.type=_UF1._bH1;this._1T1=new _kr1(-1.0,1.0);this._2T1=new _kr1(1.0,1.0);this._9P1=new _kr1(-1.0,0.0);this._aP1=new _kr1(1.0,0.0); this._3T1=0.0;this._4T1=0.0;this.ratio=1.0;this._0G1=true;Object.seal(this);}_0T1.prototype={_qx1:function(_WG1,_XG1,_5T1,_6T1,_7T1,_8T1,_e4){this._ZF1=_WG1;this.__F1=_XG1;this._1T1._lQ(_5T1);this._2T1._lQ(_6T1);this._9P1._lQ(this._ZF1._ID1(_7T1));this._aP1._lQ(this.__F1._ID1(_8T1));var _9T1=_kr1._rr1(_7T1,_5T1);this._3T1=_9T1.Length();var _aT1=_kr1._rr1(_8T1,_6T1);this._4T1=_aT1.Length();this.ratio=_e4;_wq1(this.ratio>_zq1);},_yr1:function(data,_2H1,_JO1){this.parent.prototype._yr1.call(this,data, _2H1,_JO1);this._1T1._yr1(data['groundAnchorA']);this._2T1._yr1(data['groundAnchorB']);this._9P1._yr1(data['localAnchorA']);this._aP1._yr1(data['localAnchorB']);this._3T1=data['lengthA'];this._4T1=data['lengthB'];this.ratio=data['ratio'];}};_0T1._2q1(_HO1);function _1P1(_3D1){this.parent.call(this,_3D1);this._6M1=0;this._7M1=0;this._bT1=new _kr1();this._cT1=new _kr1();this._uP1=new _kr1();this._vP1=new _kr1();this._wP1=new _kr1();this._xP1=new _kr1();this._yP1=0;this._zP1=0;this._AP1=0;this._BP1=0;this._RC1=0; this._dT1=_3D1._1T1._63();this._eT1=_3D1._2T1._63();this._iP1=_3D1._9P1._63();this._jP1=_3D1._aP1._63();this._fT1=_3D1._3T1;this._gT1=_3D1._4T1;_wq1(_3D1.ratio!=0.0);this._0S1=_3D1.ratio;this._1S1=_3D1._3T1+this._0S1*_3D1._4T1;this._lP1=0.0;}_1P1.prototype={_8H1:function(){return this._XF1._FD1(this._iP1);},_9H1:function(){return this._WF1._FD1(this._jP1);},_KO1:function(_2F1){var _cz1=_kr1.Multiply(this._lP1,this._cT1);return _kr1.Multiply(_2F1,_cz1);},_LO1:function(_2F1){return 0.0;},_dH1:function(){ return this._dT1;},_eH1:function(){return this._eT1;},_hT1:function(){return this._fT1;},_iT1:function(){return this._gT1;},_qS1:function(){return this._0S1;},_jT1:function(){var _gh=this._XF1._FD1(this._iP1);var _ni=this._dT1;var _Bm=_kr1._rr1(_gh,_ni);return _Bm.Length();},_kT1:function(){var _gh=this._WF1._FD1(this._jP1);var _ni=this._eT1;var _Bm=_kr1._rr1(_gh,_ni);return _Bm.Length();},_Dv1:function(_Ev1){this._dT1._rr1(_Ev1);this._eT1._rr1(_Ev1);},_qO1:function(data){this._6M1=this._XF1._uC1;this._7M1=this._WF1._uC1; this._wP1._lQ(this._XF1._DC1._5s1);this._xP1._lQ(this._WF1._DC1._5s1);this._yP1=this._XF1._SC1;this._zP1=this._WF1._SC1;this._AP1=this._XF1._UC1;this._BP1=this._WF1._UC1;var _aG1=data._aF1[this._6M1].c._63();var _mN1=data._aF1[this._6M1]._h4;var _nN1=data._bF1[this._6M1]._Y4._63();var _Zv1=data._bF1[this._6M1].w;var _cG1=data._aF1[this._7M1].c._63();var _oN1=data._aF1[this._7M1]._h4;var _pN1=data._bF1[this._7M1]._Y4._63();var __v1=data._bF1[this._7M1].w;var _TP1=new _Zr1(_mN1),_UP1=new _Zr1(_oN1);this._uP1._lQ(_ts1(_TP1, _kr1._rr1(this._iP1,this._wP1)));this._vP1._lQ(_ts1(_UP1,_kr1._rr1(this._jP1,this._xP1)));this._bT1._lQ(_kr1._Gf(_aG1,_kr1._rr1(this._uP1,this._dT1)));this._cT1._lQ(_kr1._Gf(_cG1,_kr1._rr1(this._vP1,this._eT1)));var _3T1=this._bT1.Length();var _4T1=this._cT1.Length();if(_3T1>10.0*_Fq1){this._bT1.Multiply(1.0/_3T1);}else {this._bT1._lr1();}if(_4T1>10.0*_Fq1){this._cT1.Multiply(1.0/_4T1);}else {this._cT1._lr1();}var _lT1=_fs1(this._uP1,this._bT1);var _mT1=_fs1(this._vP1,this._cT1);var _kN1=this._yP1+this._AP1*_lT1*_lT1; var _lN1=this._zP1+this._BP1*_mT1*_mT1;this._RC1=_kN1+this._0S1*this._0S1*_lN1;if(this._RC1>0.0){this._RC1=1.0/this._RC1;}if(data.step._6F1){this._lP1*=data.step._3F1;var _nT1=_kr1.Multiply(-(this._lP1),this._bT1);var _oT1=_kr1.Multiply((-this._0S1*this._lP1),this._cT1);_nN1._Gf(_kr1.Multiply(this._yP1,_nT1));_Zv1+=this._AP1*_fs1(this._uP1,_nT1);_pN1._Gf(_kr1.Multiply(this._zP1,_oT1));__v1+=this._BP1*_fs1(this._vP1,_oT1);}else {this._lP1=0.0;}data._bF1[this._6M1]._Y4._lQ(_nN1);data._bF1[this._6M1].w=_Zv1; data._bF1[this._7M1]._Y4._lQ(_pN1);data._bF1[this._7M1].w=__v1;},_IN1:function(data){var _nN1=data._bF1[this._6M1]._Y4._63();var _Zv1=data._bF1[this._6M1].w;var _pN1=data._bF1[this._7M1]._Y4._63();var __v1=data._bF1[this._7M1].w;var _zQ1=_kr1._Gf(_nN1,_hs1(_Zv1,this._uP1));var _AQ1=_kr1._Gf(_pN1,_hs1(__v1,this._vP1));var _WP1=-_es1(this._bT1,_zQ1)-this._0S1*_es1(this._cT1,_AQ1);var _AD1=-this._RC1*_WP1;this._lP1+=_AD1;var _nT1=_kr1.Multiply(-_AD1,this._bT1);var _oT1=_kr1.Multiply(-this._0S1,_kr1.Multiply(_AD1, this._cT1));_nN1._Gf(_kr1.Multiply(this._yP1,_nT1));_Zv1+=this._AP1*_fs1(this._uP1,_nT1);_pN1._Gf(_kr1.Multiply(this._zP1,_oT1));__v1+=this._BP1*_fs1(this._vP1,_oT1);data._bF1[this._6M1]._Y4._lQ(_nN1);data._bF1[this._6M1].w=_Zv1;data._bF1[this._7M1]._Y4._lQ(_pN1);data._bF1[this._7M1].w=__v1;},_2O1:function(data){var _aG1=data._aF1[this._6M1].c._63();var _mN1=data._aF1[this._6M1]._h4;var _cG1=data._aF1[this._7M1].c._63();var _oN1=data._aF1[this._7M1]._h4;var _TP1=new _Zr1(_mN1),_UP1=new _Zr1(_oN1);var _0x1=_ts1(_TP1, _kr1._rr1(this._iP1,this._wP1));var _1x1=_ts1(_UP1,_kr1._rr1(this._jP1,this._xP1));var _pT1=_kr1._Gf(_aG1,_kr1._rr1(_0x1,this._dT1));var _qT1=_kr1._Gf(_cG1,_kr1._rr1(_1x1,this._eT1));var _3T1=_pT1.Length();var _4T1=_qT1.Length();if(_3T1>10.0*_Fq1){_pT1.Multiply(1.0/_3T1);}else {_pT1._lr1();}if(_4T1>10.0*_Fq1){_qT1.Multiply(1.0/_4T1);}else {_qT1._lr1();}var _lT1=_fs1(_0x1,_pT1);var _mT1=_fs1(_1x1,_qT1);var _kN1=this._yP1+this._AP1*_lT1*_lT1;var _lN1=this._zP1+this._BP1*_mT1*_mT1;var _nt1=_kN1+this._0S1*this._0S1*_lN1; if(_nt1>0.0){_nt1=1.0/_nt1;}var _zs1=this._1S1-_3T1-this._0S1*_4T1;var _5R1=_Ds1(_zs1);var _AD1=-_nt1*_zs1;var _nT1=_kr1.Multiply(-_AD1,_pT1);var _oT1=_kr1.Multiply(-this._0S1,_kr1.Multiply(_AD1,_qT1));_aG1._Gf(_kr1.Multiply(this._yP1,_nT1));_mN1+=this._AP1*_fs1(_0x1,_nT1);_cG1._Gf(_kr1.Multiply(this._zP1,_oT1));_oN1+=this._BP1*_fs1(_1x1,_oT1);data._aF1[this._6M1].c._lQ(_aG1);data._aF1[this._6M1]._h4=_mN1;data._aF1[this._7M1].c._lQ(_cG1);data._aF1[this._7M1]._h4=_oN1;return _5R1<_Fq1;},_xr1:function(out){ var _Pg=out||{};this.parent.prototype._xr1.call(this,_Pg);_Pg['groundAnchorA']=this._dT1._xr1();_Pg['groundAnchorB']=this._eT1._xr1();_Pg['localAnchorA']=this._iP1._xr1();_Pg['localAnchorB']=this._jP1._xr1();_Pg['lengthA']=this._fT1;_Pg['lengthB']=this._gT1;_Pg['ratio']=this._0S1;return _Pg;}};_1P1._2q1(_UF1);function _rT1(){this.parent.call(this);this.type=_UF1._XO1;this._9P1=new _kr1(-1.0,0.0);this._aP1=new _kr1(1.0,0.0);this._sT1=0.0;Object.seal(this);}_rT1.prototype={_yr1:function(data,_2H1,_JO1){ this.parent.prototype._yr1.call(this,data,_2H1,_JO1);this._9P1._yr1(data['localAnchorA']);this._aP1._yr1(data['localAnchorB']);this._sT1=data['maxLength'];}};_rT1._2q1(_HO1);function _6P1(_3D1){this.parent.call(this,_3D1);this._iP1=_3D1._9P1._63();this._jP1=_3D1._aP1._63();this._tT1=_3D1._sT1;this._RC1=0.0;this._lP1=0.0;this._uT1=_UF1._NO1;this._WU=0.0;this._6M1=0;this._7M1=0;this._tQ1=new _kr1();this._uP1=new _kr1();this._vP1=new _kr1();this._wP1=new _kr1();this._xP1=new _kr1();this._yP1=0;this._zP1=0; this._AP1=0;this._BP1=0;}_6P1.prototype={_8H1:function(){return this._XF1._FD1(this._iP1);},_9H1:function(){return this._WF1._FD1(this._jP1);},_KO1:function(_2F1){var _nB1=_kr1.Multiply((_2F1*this._lP1),this._tQ1);return _nB1;},_LO1:function(_2F1){return 0.0;},_DP1:function(){return this._iP1;},_EP1:function(){return this._jP1;},_vT1:function(length){this._tT1=length;},_wT1:function(){return this._tT1;},_xT1:function(){return this._uT1;},_qO1:function(data){this._6M1=this._XF1._uC1;this._7M1=this._WF1._uC1; this._wP1._lQ(this._XF1._DC1._5s1);this._xP1._lQ(this._WF1._DC1._5s1);this._yP1=this._XF1._SC1;this._zP1=this._WF1._SC1;this._AP1=this._XF1._UC1;this._BP1=this._WF1._UC1;var _aG1=data._aF1[this._6M1].c._63();var _mN1=data._aF1[this._6M1]._h4;var _nN1=data._bF1[this._6M1]._Y4._63();var _Zv1=data._bF1[this._6M1].w;var _cG1=data._aF1[this._7M1].c._63();var _oN1=data._aF1[this._7M1]._h4;var _pN1=data._bF1[this._7M1]._Y4._63();var __v1=data._bF1[this._7M1].w;var _TP1=new _Zr1(_mN1),_UP1=new _Zr1(_oN1);this._uP1._lQ(_ts1(_TP1, _kr1._rr1(this._iP1,this._wP1)));this._vP1._lQ(_ts1(_UP1,_kr1._rr1(this._jP1,this._xP1)));this._tQ1._lQ(_kr1._rr1(_kr1._rr1(_kr1._Gf(_cG1,this._vP1),_aG1),this._uP1));this._WU=this._tQ1.Length();var _zs1=this._WU-this._tT1;if(_zs1>0.0){this._uT1=_UF1._PO1;}else {this._uT1=_UF1._NO1;}if(this._WU>_Fq1){this._tQ1.Multiply(1.0/this._WU);}else {this._tQ1._lr1();this._RC1=0.0;this._lP1=0.0;return;}var _yT1=_fs1(this._uP1,this._tQ1);var _zT1=_fs1(this._vP1,this._tQ1);var _yQ1=this._yP1+this._AP1*_yT1*_yT1+this._zP1+this._BP1*_zT1*_zT1; this._RC1=_yQ1!=0.0?1.0/_yQ1:0.0;if(data.step._6F1){this._lP1*=data.step._3F1;var _cz1=_kr1.Multiply(this._lP1,this._tQ1);_nN1._rr1(_kr1.Multiply(this._yP1,_cz1));_Zv1-=this._AP1*_fs1(this._uP1,_cz1);_pN1._Gf(_kr1.Multiply(this._zP1,_cz1));__v1+=this._BP1*_fs1(this._vP1,_cz1);}else {this._lP1=0.0;}data._bF1[this._6M1]._Y4._lQ(_nN1);data._bF1[this._6M1].w=_Zv1;data._bF1[this._7M1]._Y4._lQ(_pN1);data._bF1[this._7M1].w=__v1;},_IN1:function(data){var _nN1=data._bF1[this._6M1]._Y4._63();var _Zv1=data._bF1[this._6M1].w; var _pN1=data._bF1[this._7M1]._Y4._63();var __v1=data._bF1[this._7M1].w;var _zQ1=_kr1._Gf(_nN1,_hs1(_Zv1,this._uP1));var _AQ1=_kr1._Gf(_pN1,_hs1(__v1,this._vP1));var _zs1=this._WU-this._tT1;var _WP1=_es1(this._tQ1,_kr1._rr1(_AQ1,_zQ1));if(_zs1<0.0){_WP1+=data.step._2F1*_zs1;}var _AD1=-this._RC1*_WP1;var _XP1=this._lP1;this._lP1=_Gs1(0.0,this._lP1+_AD1);_AD1=this._lP1-_XP1;var _cz1=_kr1.Multiply(_AD1,this._tQ1);_nN1._rr1(_kr1.Multiply(this._yP1,_cz1));_Zv1-=this._AP1*_fs1(this._uP1,_cz1);_pN1._Gf(_kr1.Multiply(this._zP1, _cz1));__v1+=this._BP1*_fs1(this._vP1,_cz1);data._bF1[this._6M1]._Y4._lQ(_nN1);data._bF1[this._6M1].w=_Zv1;data._bF1[this._7M1]._Y4._lQ(_pN1);data._bF1[this._7M1].w=__v1;},_2O1:function(data){var _aG1=data._aF1[this._6M1].c._63();var _mN1=data._aF1[this._6M1]._h4;var _cG1=data._aF1[this._7M1].c._63();var _oN1=data._aF1[this._7M1]._h4;var _TP1=new _Zr1(_mN1),_UP1=new _Zr1(_oN1);var _0x1=_ts1(_TP1,_kr1._rr1(this._iP1,this._wP1));var _1x1=_ts1(_UP1,_kr1._rr1(this._jP1,this._xP1));var _X4=_kr1._rr1(_kr1._rr1(_kr1._Gf(_cG1, _1x1),_aG1),_0x1);var length=_X4._tr1();var _zs1=length-this._tT1;_zs1=_Ks1(_zs1,0.0,_Lq1);var _AD1=-this._RC1*_zs1;var _cz1=_kr1.Multiply(_AD1,_X4);_aG1._rr1(_kr1.Multiply(this._yP1,_cz1));_mN1-=this._AP1*_fs1(_0x1,_cz1);_cG1._Gf(_kr1.Multiply(this._zP1,_cz1));_oN1+=this._BP1*_fs1(_1x1,_cz1);data._aF1[this._6M1].c._lQ(_aG1);data._aF1[this._6M1]._h4=_mN1;data._aF1[this._7M1].c._lQ(_cG1);data._aF1[this._7M1]._h4=_oN1;return length-this._tT1<_Fq1;},_xr1:function(out){var _Pg=out||{};this.parent.prototype._xr1.call(this, _Pg);_Pg['localAnchorA']=this._iP1._xr1();_Pg['localAnchorB']=this._jP1._xr1();_Pg['maxLength']=this._tT1;return _Pg;}};_6P1._2q1(_UF1);var _AT1=Math.exp;function _BT1(){this.vertices=null;this._q8=0;this._CT1=null;this.gravity=new _kr1();this._r71=0.1;this._DT1=0.9;this._ET1=0.1;}function _FT1(){this._6u1=0;this._nS=null;this._GT1=null;this._HT1=null;this._IT1=null;this._JT1=null;this._KT1=null;this._LT1=0;this._sF1=new _kr1();this._MT1=1.0;this._NT1=0.1;}_FT1.prototype={_qx1:function(_3D1){_wq1(_3D1._q8>=3); this._6u1=_3D1._q8;this._nS=new Array(this._6u1);this._GT1=new Array(this._6u1);this._HT1=new Array(this._6u1);this._IT1=new Array(this._6u1);for(var i=0;i0.0){this._IT1[i]=1.0/_v6;}else {this._IT1[i]=0.0;}}var _qy1=this._6u1-1;var _OT1=this._6u1-2;this._JT1=new Array(_qy1);this._KT1=new Array(_OT1);for(var i=0;i<_qy1;++i){var _0v=this._nS[i];var _4t1=this._nS[i+1];this._JT1[i]=_ks1(_0v, _4t1);}for(var i=0;i<_OT1;++i){var _0v=this._nS[i];var _4t1=this._nS[i+1];var _Vu1=this._nS[i+2];var __D=_kr1._rr1(_4t1,_0v);var _0E=_kr1._rr1(_Vu1,_4t1);var _h4=_fs1(__D,_0E);var _g4=_es1(__D,_0E);this._KT1[i]=_ir1(_h4,_g4);}this._sF1=_3D1.gravity._63();this._LT1=_3D1._r71;this._MT1=_3D1._DT1;this._NT1=_3D1._ET1;},_1G1:function(h,iterations){if(h==0.0){return;}var _Bm=_AT1(-h*this._LT1);for(var i=0;i0.0){this._HT1[i]._Gf(_kr1.Multiply(h,this._sF1)); }this._HT1[i].Multiply(_Bm);this._nS[i]._Gf(_kr1.Multiply(h,this._HT1[i]));}for(var i=0;i_Aq1){angle-=2*_Aq1;_zs1=angle-this._KT1[i];}while(_zs1<-_Aq1){angle+=2.0*_Aq1;_zs1=angle-this._KT1[i];}var _AD1=-this._NT1*_nt1*_zs1;_0v._Gf(_kr1.Multiply((_WT1*_AD1),_2U1));_4t1._Gf(_kr1.Multiply((_XT1*_AD1),_3U1));_Vu1._Gf(_kr1.Multiply((_YT1*_AD1),_4U1));}}};var _5U1={/*@param {b2World} world */_6U1:function(_tC1){var _7U1=[];/*@type Number */var i;/*@type String */var _8U1;/*@type b2Body */var _g4;/*@type b2Fixture */var _ED; /*@type b2Shape */var shape;for(_g4=_tC1._lG1();_g4;_g4=_g4._aE1()){for(_ED=_g4._7E1();_ED;_ED=_ED._aE1()){shape=_ED._tE1();_ED._9U1=_7U1.length;_7U1.push(shape._xr1());}}var _aU1=[];for(_g4=_tC1._lG1();_g4;_g4=_g4._aE1()){_g4._bU1=[];for(_ED=_g4._7E1();_ED;_ED=_ED._aE1()){_8U1=_ED._xr1();_8U1['shape']=_ED._9U1;delete _ED._9U1;_g4._bU1.push(_aU1.length);_aU1.push(_8U1);}}var _2H1=[];for(_g4=_tC1._lG1();_g4;_g4=_g4._aE1()){_8U1=_g4._xr1();_8U1._aU1=[];for(i=0;i<_g4._bU1.length;++i)_8U1._aU1.push(_g4._bU1[i]); delete _g4._bU1;_g4._cU1=_2H1.length;_2H1.push(_8U1);};var _JO1=[];/*@type b2Joint */var __5;for(__5=_tC1._8E1(),i=0;__5;__5=__5._aE1(),++i)__5._HS1=i;for(__5=_tC1._8E1();__5;__5=__5._aE1()){if(__5._Vl1()===_UF1._fH1)continue;_8U1=__5._xr1();_8U1['bodyA']=__5._6H1()._cU1;_8U1['bodyB']=__5._7H1()._cU1;_JO1.push(_8U1);}for(__5=_tC1._8E1();__5;__5=__5._aE1())delete __5._HS1;for(_g4=_tC1._lG1();_g4;_g4=_g4._aE1())delete _g4._cU1;var _q4={_7U1:_7U1,_aU1:_aU1,_2H1:_2H1,_JO1:_JO1};return _q4;},/*@param {b2World} world */_dU1:function(_8U1, _tC1,clear){var _eU1=JSON.parse(_8U1);if(clear){for(var _g4=_tC1._lG1();_g4;){var _kl=_g4._aE1();_tC1._OF1(_g4);_g4=_kl;}for(var __5=_tC1._8E1();__5;){var _kl=__5._aE1();_tC1._f61(__5);__5=_kl;}}var _7U1=[];for(var i=0;i<_eU1._7U1.length;++i){var _fU1=_eU1._7U1[i];var shape;switch(_fU1._9P){case _pt1._Ct1:shape=new _Ht1();break;case _pt1._Dt1:shape=new _Rt1();break;case _pt1._Ft1:shape=new _4u1();break;case _pt1._Et1:shape=new _mu1();break;}shape._yr1(_fU1);_7U1.push(shape);}var _aU1=[];for(i=0;i<_eU1._aU1.length; ++i){var _gU1=_eU1._aU1[i];var _K41=new _5D1();_K41._yr1(_gU1);_K41.shape=_7U1[_gU1['shape']];_aU1.push(_K41);}var _2H1=[];for(i=0;i<_eU1._2H1.length;++i){var _hU1=_eU1._2H1[i];var _3D1=new _gC1();_3D1._yr1(_hU1);var body=_tC1._d51(_3D1);for(var x=0;x<_hU1._aU1.length;++x)body._2D1(_aU1[_hU1._aU1[x]]);_2H1.push(body);}var _JO1=[];var _iU1=[];for(i=0;i<_eU1._JO1.length;++i){var _jU1=_eU1._JO1[i];var _kU1;switch(_jU1.type){case _UF1._RO1:_kU1=new _8P1();break;case _UF1._SO1:_kU1=new _BQ1();break;case _UF1._aH1:_kU1=new _pQ1(); break;case _UF1._bH1:_kU1=new _0T1();break;case _UF1._TO1:_kU1=new _CR1();break;case _UF1._UO1:_kU1=new _mR1();break;case _UF1._VO1:_kU1=new _kR1();break;case _UF1._WO1:_kU1=new _8R1();break;case _UF1._XO1:_kU1=new _rT1();break;case _UF1._gH1:_kU1=new _IS1();break;default :throw new Error('unknown joint');}_kU1._yr1(_jU1,_2H1);if(_jU1.type===_UF1._TO1){_iU1.push([_kU1,_JO1.length]);_JO1.push(null);}else {var _q51=_tC1._TF1(_kU1);_JO1.push(_q51);}}for(i=0;i<_iU1.length;++i){_iU1[i][0]._DR1=_JO1[_iU1[i][0]._DR1];_iU1[i][0]._ER1=_JO1[_iU1[i][0]._ER1]; _q51=_tC1._TF1(_iU1[i][0]);_JO1[_iU1[i][1]]=_q51;}}};var _lU1=(function(){function _mU1(_Pg){return new _kr1(_Pg?(_Pg.x||0):0,_Pg?(_Pg.y||0):0);}function _nU1(_Pg){var _oU1=new Array(_Pg.x.length);for(var i=0;i<_oU1.length;++i)_oU1[i]=new _kr1(_Pg.x[i],_Pg.y[i]);return _oU1;}function _pU1(_Pg,instance){var name=_Pg.name;var _ue;if(typeof(_Pg['int'])!=='undefined')_ue=_Pg['int'];else if(typeof(_Pg['float'])!=='undefined')_ue=_Pg['float'];else if(typeof(_Pg['string'])!=='undefined')_ue=_Pg['string'];else if(typeof(_Pg['bool'])!=='undefined')_ue=_Pg['bool']; else if(typeof(_Pg._qU1)!=='undefined')_ue=_mU1(_Pg._qU1);else throw new Error("unknown property type");if(instance.hasOwnProperty(name))throw new Error("custom property possibly overwriting an existing one");instance[name]=_ue;}function _rU1(_Pg,body){var _3D1=new _5D1();_3D1._p71=_Pg._p71||0;_3D1.filter._iE1=typeof(_Pg['filter-categoryBits'])==='undefined'?1:_Pg['filter-categoryBits'];_3D1.filter._jE1=typeof(_Pg['filter-maskBits'])==='undefined'?65535:_Pg['filter-maskBits'];_3D1.filter._kE1=typeof(_Pg['filter-groupIndex'])==='undefined'?0:_Pg['filter-groupIndex']; _3D1.friction=_Pg.friction||0;_3D1._lE1=_Pg._lE1||0;_3D1._mE1=_Pg._uE1||0;var shape;if(typeof(_Pg._Hv1)!=='undefined'){shape=new _Ht1();shape._It1=_mU1(_Pg._Hv1._1t1);shape._qt1=_Pg._Hv1._T61||0;}else if(typeof(_Pg._i6)!=='undefined'){var vertices=_nU1(_Pg._i6.vertices);shape=new _mu1();shape.Set(vertices,vertices.length);}else if(typeof(_Pg._Iv1)!=='undefined'){var vertices=_nU1(_Pg._Iv1.vertices);shape=new _4u1();shape._6u1=vertices.length;shape._5u1=vertices;if(shape._au1=_Pg._Iv1._sU1)shape._8u1=_mU1(_Pg._Iv1._hu1); if(shape._9u1=_Pg._Iv1._tU1)shape._7u1=_mU1(_Pg._Iv1._fu1);}else throw new Error("unknown shape type");_3D1.shape=shape;var _K41=body._2D1(_3D1);_K41.name=_Pg.name;if(_Pg._uU1)for(var i=0;i<_Pg._uU1.length;++i)_pU1(_Pg,_K41);}function _vU1(_Pg,_tC1){var _3D1=new _gC1();_3D1.type=_Pg.type||_hC1._iC1;_3D1.angle=_Pg.angle||0;_3D1._mC1=_Pg._mC1||0;_3D1._kC1=_Pg._kC1||0;_3D1._oC1=_Pg._oC1||false;_3D1._qC1=_Pg._qC1||false;_3D1._pC1=_Pg._pC1||false;_3D1._lC1=_Pg._lC1||false;_3D1._jC1=_mU1(_Pg._jC1);_3D1._rC1=typeof(_Pg._rC1)!=='undefined'?_Pg._rC1:1; var _wU1=new _mt1();_wU1._nt1=_Pg['massData-mass']||0;_wU1._1t1=_mU1(_Pg['massData-center']);_wU1._ot1=_Pg['massData-I']||0;_3D1.position=_mU1(_Pg.position);var body=_tC1._d51(_3D1);body.name=_Pg.name;body._ED1(_wU1);if(_Pg._K41)for(var i=0;i<_Pg._K41.length;++i)_rU1(_Pg._K41[i],body);if(_Pg._uU1)for(i=0;i<_Pg._uU1.length;++i)_pU1(_Pg,body);return body;}var _xU1={'revolute':_8P1,'distance':_pQ1,'prismatic':_BQ1,'wheel':_mR1,'rope':_rT1,'motor':_IS1,'weld':_kR1,'friction':_8R1};function _yU1(_Pg,_tC1,_2H1){ if(!_xU1[_Pg.type])throw new Error("unknown joint type");var _zU1=new _xU1[_Pg.type]();switch(_zU1.type){case _UF1._RO1:_zU1._9P1=_mU1(_Pg._7T1);_zU1._aP1=_mU1(_Pg._8T1);_zU1._gP1=_Pg._gP1||false;_zU1._hP1=_Pg._hP1||false;_zU1._cP1=_Pg._AU1||0;_zU1._eP1=_Pg._eP1||0;_zU1._fP1=_Pg._fP1||0;_zU1._bP1=_Pg._BU1||0;_zU1._dP1=_Pg._CU1||0;break;case _UF1._aH1:_zU1._9P1=_mU1(_Pg._7T1);_zU1._aP1=_mU1(_Pg._8T1);_zU1._8Q1=_Pg._8Q1||0;_zU1._7Q1=_Pg._DU1||0;_zU1.length=_Pg.length||0;break;case _UF1._SO1:_zU1._9P1=_mU1(_Pg._7T1); _zU1._aP1=_mU1(_Pg._8T1);_zU1._gP1=_Pg._gP1||false;_zU1._hP1=_Pg._hP1||false;_zU1._CQ1=_mU1(_Pg._CQ1);_zU1._DQ1=_Pg._AU1||0;_zU1._FQ1=_Pg._FQ1||0;_zU1._fP1=_Pg._fP1||0;_zU1._bP1=_Pg._BU1||0;_zU1._EQ1=_Pg._CU1||0;break;case _UF1._UO1:_zU1._9P1=_mU1(_Pg._7T1);_zU1._aP1=_mU1(_Pg._8T1);_zU1._hP1=_Pg._hP1||false;_zU1._CQ1=_mU1(_Pg._CQ1);_zU1._eP1=_Pg._eP1||0;_zU1._fP1=_Pg._fP1||0;_zU1._8Q1=_Pg._EU1||0;_zU1._7Q1=_Pg._FU1||0;break;case _UF1._XO1:_zU1._9P1=_mU1(_Pg._7T1);_zU1._aP1=_mU1(_Pg._8T1);_zU1._sT1=_Pg._sT1||0; break;case _UF1._gH1:_zU1._JS1=_mU1(_Pg._7T1);_zU1._KS1=_Pg._BU1||0;_zU1._6Q1=_Pg._6Q1||0;_zU1._9R1=_Pg._9R1||0;_zU1._LS1=_Pg._LS1||0;break;case _UF1._VO1:_zU1._9P1=_mU1(_Pg._7T1);_zU1._aP1=_mU1(_Pg._8T1);_zU1._bP1=_Pg._BU1||0;_zU1._8Q1=_Pg._8Q1||0;_zU1._7Q1=_Pg._7Q1||0;break;case _UF1._WO1:_zU1._9P1=_mU1(_Pg._7T1);_zU1._aP1=_mU1(_Pg._8T1);_zU1._6Q1=_Pg._6Q1||0;_zU1._9R1=_Pg._9R1||0;break;default :throw new Error("wat?");}_zU1._ZF1=_2H1[_Pg._ZF1||0];_zU1.__F1=_2H1[_Pg.__F1||0];_zU1._0G1=_Pg._0G1||false; var _q51=_tC1._TF1(_zU1);_q51.name=_Pg.name;if(_Pg._uU1)for(var i=0;i<_Pg._uU1.length;++i)_pU1(_Pg,_q51);return _q51;}function _GU1(){this._tC1=null;this._5F1=0;this._4F1=0;this._HU1=0;this._aU1={};this._2H1={};this._JO1={};Object.seal(this);}function _IU1(_Pg,_tC1){var _XB=new _GU1();_XB._tC1=_tC1=_tC1||new _eD1(new _kr1(0,0));_XB._5F1=_Pg._5F1||0;_XB._4F1=_Pg._4F1||0;_XB._HU1=_Pg._HU1||0;if(_Pg.gravity)_tC1._D41(_mU1(_Pg.gravity));_tC1._mG1(_Pg._nC1||false);_tC1._zG1(_Pg._JU1||false);_tC1._oG1(_Pg._6F1||false); _tC1._qG1(_Pg._KU1||false);_tC1._sG1(_Pg._LU1||false);var _2H1=[];var _MU1=_Pg.body;if(_MU1){for(var i=0;i<_MU1.length;++i){var body=_vU1(_MU1[i],_tC1);_2H1.push(body);for(var _ED=body._7E1();_ED;_ED=_ED._aE1()){if(!_XB._aU1[_ED.name])_XB._aU1[_ED.name]=[];_XB._aU1[_ED.name].push(_ED);}if(!_XB._2H1[body.name])_XB._2H1[body.name]=[];_XB._2H1[body.name].push(body);}}var _JO1=[];var _NU1=_Pg._q51;if(_NU1){for(i=0;i<_NU1.length;++i){var _q51=_yU1(_NU1[i],_tC1,_2H1);_JO1.push(_q51);if(!_XB._JO1[_q51.name])_XB._JO1[_q51.name]=[]; _XB._JO1[_q51.name].push(_q51);}}return _XB;}var _q4={_IU1:_IU1};return _q4;})();var _OU1=[{"trimmed":"version","name":"b2_version","def":_9r1},{"trimmed":"Vec2","name":"b2Vec2","def":_kr1},{"trimmed":"Vec3","name":"b2Vec3","def":_Ar1},{"trimmed":"Mat22","name":"b2Mat22","def":_Cr1},{"trimmed":"Mat33","name":"b2Mat33","def":_Mr1},{"trimmed":"Rot","name":"b2Rot","def":_Zr1},{"trimmed":"Transform","name":"b2Transform","def":_2s1},{"trimmed":"Sweep","name":"b2Sweep","def":_4s1},{"trimmed":"Dot_v2_v2","name":"b2Dot_v2_v2", "def":_es1},{"trimmed":"Cross_v2_v2","name":"b2Cross_v2_v2","def":_fs1},{"trimmed":"Cross_v2_f","name":"b2Cross_v2_f","def":_gs1},{"trimmed":"Cross_f_v2","name":"b2Cross_f_v2","def":_hs1},{"trimmed":"Mul_m22_v2","name":"b2Mul_m22_v2","def":_is1},{"trimmed":"MulT_m22_v2","name":"b2MulT_m22_v2","def":_js1},{"trimmed":"Distance","name":"b2Distance","def":_ks1},{"trimmed":"DistanceSquared","name":"b2DistanceSquared","def":_ls1},{"trimmed":"Dot_v3_v3","name":"b2Dot_v3_v3","def":_Qr1},{"trimmed":"Cross_v3_v3", "name":"b2Cross_v3_v3","def":_Rr1},{"trimmed":"Mul_m22_m22","name":"b2Mul_m22_m22","def":_ms1},{"trimmed":"MulT_m22_m22","name":"b2MulT_m22_m22","def":_ns1},{"trimmed":"Mul_m33_v3","name":"b2Mul_m33_v3","def":_os1},{"trimmed":"Mul22_m33_v2","name":"b2Mul22_m33_v2","def":_ps1},{"trimmed":"Mul_r_r","name":"b2Mul_r_r","def":_qs1},{"trimmed":"MulT_r_r","name":"b2MulT_r_r","def":_ss1},{"trimmed":"Mul_r_v2","name":"b2Mul_r_v2","def":_ts1},{"trimmed":"MulT_r_v2","name":"b2MulT_r_v2","def":_us1},{"trimmed":"Mul_t_v2", "name":"b2Mul_t_v2","def":_vs1},{"trimmed":"Min_v2","name":"b2Min_v2","def":_Hs1},{"trimmed":"Max_v2","name":"b2Max_v2","def":_Js1},{"trimmed":"Clamp","name":"b2Clamp","def":_Ks1},{"trimmed":"MulT_t_v2","name":"b2MulT_t_v2","def":_xs1},{"trimmed":"Mul_t_t","name":"b2Mul_t_t","def":_ys1},{"trimmed":"MulT_t_t","name":"b2MulT_t_t","def":_As1},{"trimmed":"Clamp_v2","name":"b2Clamp_v2","def":_Ls1},{"trimmed":"NextPowerOfTwo","name":"b2NextPowerOfTwo","def":_Ms1},{"trimmed":"Abs_v2","name":"b2Abs_v2", "def":_Es1},{"trimmed":"Abs_m22","name":"b2Abs_m22","def":_Fs1},{"trimmed":"IsPowerOfTwo","name":"b2IsPowerOfTwo","def":_Ns1},{"trimmed":"RandomFloat","name":"b2RandomFloat","def":_Ps1},{"trimmed":"Timer","name":"b2Timer","def":_jt1},{"trimmed":"Color","name":"b2Color","def":_Rs1},{"trimmed":"Draw","name":"b2Draw","def":_Ss1},{"trimmed":"ContactID","name":"b2ContactID","def":_3x1},{"trimmed":"ManifoldPoint","name":"b2ManifoldPoint","def":_8x1},{"trimmed":"Manifold","name":"b2Manifold","def":_dx1} ,{"trimmed":"WorldManifold","name":"b2WorldManifold","def":_ox1},{"trimmed":"GetPointStates","name":"b2GetPointStates","def":_Hx1},{"trimmed":"ClipVertex","name":"b2ClipVertex","def":_Mx1},{"trimmed":"RayCastInput","name":"b2RayCastInput","def":_Nx1},{"trimmed":"RayCastOutput","name":"b2RayCastOutput","def":_Ox1},{"trimmed":"AABB","name":"b2AABB","def":_Px1},{"trimmed":"CollideCircles","name":"b2CollideCircles","def":_3y1},{"trimmed":"CollidePolygonAndCircle","name":"b2CollidePolygonAndCircle","def":_7y1} ,{"trimmed":"FindMaxSeparation","name":"b2FindMaxSeparation","def":_jy1},{"trimmed":"FindIncidentEdge","name":"b2FindIncidentEdge","def":_wy1},{"trimmed":"CollidePolygons","name":"b2CollidePolygons","def":_Gy1},{"trimmed":"CollideEdgeAndCircle","name":"b2CollideEdgeAndCircle","def":_az1},{"trimmed":"EPAxis","name":"b2EPAxis","def":_oz1},{"trimmed":"TempPolygon","name":"b2TempPolygon","def":_sz1},{"trimmed":"ReferenceFace","name":"b2ReferenceFace","def":_tz1},{"trimmed":"EPCollider","name":"b2EPCollider", "def":_wz1},{"trimmed":"CollideEdgeAndPolygon","name":"b2CollideEdgeAndPolygon","def":_bA1},{"trimmed":"ClipSegmentToLine","name":"b2ClipSegmentToLine","def":_7z1},{"trimmed":"TestShapeOverlap","name":"b2TestShapeOverlap","def":_kA1},{"trimmed":"TestOverlap","name":"b2TestOverlap","def":_nv1},{"trimmed":"Shape","name":"b2Shape","def":_pt1},{"trimmed":"MassData","name":"b2MassData","def":_mt1},{"trimmed":"CircleShape","name":"b2CircleShape","def":_Ht1},{"trimmed":"EdgeShape","name":"b2EdgeShape", "def":_Rt1},{"trimmed":"ChainShape","name":"b2ChainShape","def":_4u1},{"trimmed":"PolygonShape","name":"b2PolygonShape","def":_mu1},{"trimmed":"Pair","name":"b2Pair","def":_Wu1},{"trimmed":"PairLessThan","name":"b2PairLessThan","def":_Zu1},{"trimmed":"BroadPhase","name":"b2BroadPhase","def":_1v1},{"trimmed":"DistanceProxy","name":"b2DistanceProxy","def":_Gv1},{"trimmed":"SimplexCache","name":"b2SimplexCache","def":_Lv1},{"trimmed":"DistanceInput","name":"b2DistanceInput","def":_Pv1},{"trimmed":"DistanceOutput", "name":"b2DistanceOutput","def":_Vv1},{"trimmed":"SimplexVertex","name":"b2SimplexVertex","def":_Yv1},{"trimmed":"Simplex","name":"b2Simplex","def":_0w1},{"trimmed":"DistanceFunc","name":"b2DistanceFunc","def":_Nw1},{"trimmed":"TreeNode","name":"b2TreeNode","def":_oA1},{"trimmed":"DynamicTree","name":"b2DynamicTree","def":_3v1},{"trimmed":"TOIInput","name":"b2TOIInput","def":_uB1},{"trimmed":"TOIOutput","name":"b2TOIOutput","def":_yB1},{"trimmed":"SeparationFunction","name":"b2SeparationFunction", "def":_DB1},{"trimmed":"TimeOfImpact","name":"b2TimeOfImpact","def":_ZB1},{"trimmed":"BodyDef","name":"b2BodyDef","def":_gC1},{"trimmed":"Body","name":"b2Body","def":_hC1},{"trimmed":"Filter","name":"b2Filter","def":_hE1},{"trimmed":"FixtureDef","name":"b2FixtureDef","def":_5D1},{"trimmed":"Fixture","name":"b2Fixture","def":_6D1},{"trimmed":"DestructionListener","name":"b2DestructionListener","def":_GE1},{"trimmed":"ContactFilter","name":"b2ContactFilter","def":_LE1},{"trimmed":"ContactImpulse", "name":"b2ContactImpulse","def":_PE1},{"trimmed":"ContactListener","name":"b2ContactListener","def":_SE1},{"trimmed":"QueryCallback","name":"b2QueryCallback","def":_YE1},{"trimmed":"RayCastCallback","name":"b2RayCastCallback","def":_0F1},{"trimmed":"TimeStep","name":"b2TimeStep","def":_1F1},{"trimmed":"Position","name":"b2Position","def":_7F1},{"trimmed":"Velocity","name":"b2Velocity","def":_8F1},{"trimmed":"SolverData","name":"b2SolverData","def":_9F1},{"trimmed":"World","name":"b2World","def":_eD1} ,{"trimmed":"MixFriction","name":"b2MixFriction","def":_TL1},{"trimmed":"MixRestitution","name":"b2MixRestitution","def":_WL1},{"trimmed":"ContactRegister","name":"b2ContactRegister","def":_ZL1},{"trimmed":"ContactEdge","name":"b2ContactEdge","def":_0M1},{"trimmed":"Contact","name":"b2Contact","def":_CG1},{"trimmed":"CircleContact","name":"b2CircleContact","def":_pM1},{"trimmed":"PolygonContact","name":"b2PolygonContact","def":_yM1},{"trimmed":"ChainAndCircleContact","name":"b2ChainAndCircleContact", "def":_tM1},{"trimmed":"ChainAndPolygonContact","name":"b2ChainAndPolygonContact","def":_uM1},{"trimmed":"EdgeAndCircleContact","name":"b2EdgeAndCircleContact","def":_vM1},{"trimmed":"EdgeAndPolygonContact","name":"b2EdgeAndPolygonContact","def":_wM1},{"trimmed":"PolygonAndCircleContact","name":"b2PolygonAndCircleContact","def":_xM1},{"trimmed":"defaultFilter","name":"b2_defaultFilter","def":_IM1},{"trimmed":"defaultListener","name":"b2_defaultListener","def":_JM1},{"trimmed":"ContactManager","name":"b2ContactManager", "def":_hF1},{"trimmed":"VelocityConstraintPoint","name":"b2VelocityConstraintPoint","def":_OM1},{"trimmed":"ContactPositionConstraint","name":"b2ContactPositionConstraint","def":_SM1},{"trimmed":"ContactVelocityConstraint","name":"b2ContactVelocityConstraint","def":__M1},{"trimmed":"PositionSolverManifold","name":"b2PositionSolverManifold","def":_3N1},{"trimmed":"ContactSolverDef","name":"b2ContactSolverDef","def":_6N1},{"trimmed":"ContactSolver","name":"b2ContactSolver","def":_8N1},{"trimmed":"Island", "name":"b2Island","def":_xF1},{"trimmed":"Jacobian","name":"b2Jacobian","def":_DO1},{"trimmed":"JointEdge","name":"b2JointEdge","def":_GO1},{"trimmed":"JointDef","name":"b2JointDef","def":_HO1},{"trimmed":"Joint","name":"b2Joint","def":_UF1},{"trimmed":"RevoluteJointDef","name":"b2RevoluteJointDef","def":_8P1},{"trimmed":"RevoluteJoint","name":"b2RevoluteJoint","def":_0P1},{"trimmed":"MouseJointDef","name":"b2MouseJointDef","def":_5Q1},{"trimmed":"MouseJoint","name":"b2MouseJoint","def":_ZO1},{"trimmed":"DistanceJointDef", "name":"b2DistanceJointDef","def":_pQ1},{"trimmed":"DistanceJoint","name":"b2DistanceJoint","def":_YO1},{"trimmed":"PrismaticJointDef","name":"b2PrismaticJointDef","def":_BQ1},{"trimmed":"PrismaticJoint","name":"b2PrismaticJoint","def":__O1},{"trimmed":"FrictionJointDef","name":"b2FrictionJointDef","def":_8R1},{"trimmed":"FrictionJoint","name":"b2FrictionJoint","def":_5P1},{"trimmed":"WeldJointDef","name":"b2WeldJointDef","def":_kR1},{"trimmed":"WeldJoint","name":"b2WeldJoint","def":_4P1},{"trimmed":"WheelJointDef", "name":"b2WheelJointDef","def":_mR1},{"trimmed":"WheelJoint","name":"b2WheelJoint","def":_3P1},{"trimmed":"GearJointDef","name":"b2GearJointDef","def":_CR1},{"trimmed":"GearJoint","name":"b2GearJoint","def":_2P1},{"trimmed":"MotorJointDef","name":"b2MotorJointDef","def":_IS1},{"trimmed":"MotorJoint","name":"b2MotorJoint","def":_7P1},{"trimmed":"PulleyJointDef","name":"b2PulleyJointDef","def":_0T1},{"trimmed":"PulleyJoint","name":"b2PulleyJoint","def":_1P1},{"trimmed":"RopeJointDef","name":"b2RopeJointDef", "def":_rT1},{"trimmed":"RopeJoint","name":"b2RopeJoint","def":_6P1},{"trimmed":"RopeDef","name":"b2RopeDef","def":_BT1},{"trimmed":"Rope","name":"b2Rope","def":_FT1},{"trimmed":"maxManifoldPoints","name":"b2_maxManifoldPoints","def":_Bq1},{"trimmed":"maxPolygonVertices","name":"b2_maxPolygonVertices","def":_Cq1},{"trimmed":"aabbExtension","name":"b2_aabbExtension","def":_Dq1},{"trimmed":"aabbMultiplier","name":"b2_aabbMultiplier","def":_Eq1},{"trimmed":"linearSlop","name":"b2_linearSlop","def":_Fq1} ,{"trimmed":"angularSlop","name":"b2_angularSlop","def":_Gq1},{"trimmed":"polygonRadius","name":"b2_polygonRadius","def":_Hq1},{"trimmed":"maxSubSteps","name":"b2_maxSubSteps","def":_Iq1},{"trimmed":"maxTOIContacts","name":"b2_maxTOIContacts","def":_Jq1},{"trimmed":"velocityThreshold","name":"b2_velocityThreshold","def":_Kq1},{"trimmed":"maxLinearCorrection","name":"b2_maxLinearCorrection","def":_Lq1},{"trimmed":"maxAngularCorrection","name":"b2_maxAngularCorrection","def":_Mq1},{"trimmed":"maxTranslation", "name":"b2_maxTranslation","def":_Nq1},{"trimmed":"maxTranslationSquared","name":"b2_maxTranslationSquared","def":_Oq1},{"trimmed":"maxRotation","name":"b2_maxRotation","def":_Pq1},{"trimmed":"maxRotationSquared","name":"b2_maxRotationSquared","def":_Qq1},{"trimmed":"baumgarte","name":"b2_baumgarte","def":_Rq1},{"trimmed":"toiBaugarte","name":"b2_toiBaugarte","def":_Sq1},{"trimmed":"timeToSleep","name":"b2_timeToSleep","def":_Tq1},{"trimmed":"linearSleepTolerance","name":"b2_linearSleepTolerance", "def":_Uq1},{"trimmed":"angularSleepTolerance","name":"b2_angularSleepTolerance","def":_Vq1},{"trimmed":"epsilon","name":"b2_epsilon","def":_zq1},{"trimmed":"JsonSerializer","name":"b2JsonSerializer","def":_5U1},{"trimmed":"RUBELoader","name":"b2RUBELoader","def":_lU1},{"trimmed":"Profiler","name":"b2Profiler","def":_eq1},{"trimmed":"ParticleDef","name":"b2ParticleDef","def":_pI1},{"trimmed":"ParticleColor","name":"b2ParticleColor","def":_hI1},{"trimmed":"ParticleGroupDef","name":"b2ParticleGroupDef", "def":_AI1},{"trimmed":"ParticleGroup","name":"b2ParticleGroup","def":_DI1},{"trimmed":"ParticleSystem","name":"b2ParticleSystem","def":_zF1}];if(typeof(b2_compatibility)!=="undefined"&&typeof(window)!=="undefined"){for(var i=0;i<_OU1.length;++i)window[_OU1[i]["name"]]=_OU1[i]["def"];}else {var _Vh={};for(var i=0;i<_OU1.length;++i)_Vh[_OU1[i]["trimmed"]]=_OU1[i]["def"];if(typeof(module)!=="undefined")module._Kg=_Vh;else window["b2"]=_Vh;}})();_mh:/* * This class lets you encode animated GIF files * Base class : http://www.java2s.com/Code/Java/2D-Graphics-GUI/AnimatedGifEncoder.htm * @author Kevin Weiner (original Java version - kweiner@fmsware.com) * @author Thibault Imbert (AS3 version - bytearray.org) * @author Kevin Kwok (JavaScript version - https://github.com/antimatter15/jsgif) * @version 0.1 AS3 implementation */_PU1=function(){ for(var i=0,chr={};i<256;i++)chr[i]=String.fromCharCode(i);function _QU1(){this._RU1=[];};_QU1.prototype._SU1=function(){for(var _Y4='',_G6=this._RU1.length,i=0;i<_G6;i++)_Y4+=chr[this._RU1[i]];return _Y4;};_QU1.prototype._TU1=function(_ue){this._RU1.push(_ue);};_QU1.prototype._UU1=function(string){for(var _G6=string.length,i=0;i<_G6;i++)this._TU1(string.charCodeAt(i));};_QU1.prototype._VU1=function(_Hb,offset,length){for(var _G6=length||_Hb.length,i=offset||0;i<_G6;i++)this._TU1(_Hb[i]);};var _Kg={};var width; var height;var transparent=null;var _WU1;var repeat=-1;var _XU1=0;var _YU1=false;var out;var _S4;var _ZU1;var __U1;var colorDepth;var _0V1;var _1V1=[];var _2V1=7;var dispose=-1;var _3V1=false;var _4V1=true;var _5V1=false;var _gf1=10;var _6V1="Generated by jsgif (https://github.com/antimatter15/jsgif/)";/* * Sets the delay time between each frame, or changes it for subsequent frames * (applies to last frame added) * int delay time in milliseconds * @param ms */var _7V1=_Kg._7V1=function _7V1(_3B){_XU1=Math.round(_3B/10); };/* * Sets the GIF frame disposal code for the last added frame and any * * subsequent frames. Default is 0 if no transparent color has been set, * otherwise 2. * @param code * int disposal code. */var _8V1=_Kg._8V1=function _8V1(_xh1){if(_xh1>=0)dispose=_xh1;};/* * Sets the number of times the set of GIF frames should be played. Default is * 1; 0 means play indefinitely. Must be invoked before the first image is * added. * * @param iter * int number of iterations. * @return */var _9V1=_Kg._9V1=function _9V1(_Qh1){ if(_Qh1>=0)repeat=_Qh1;};/* * Sets the transparent color for the last added frame and any subsequent * frames. Since all colors are subject to modification in the quantization * process, the color in the final palette for each frame closest to the given * color becomes the transparent color for that frame. May be set to null to * indicate no transparent color. * @param * Color to be treated as transparent on display. */var _aV1=_Kg._aV1=function _aV1(c){transparent=c;};/* * Sets the comment for the block comment * @param * string to be insterted as comment */var _bV1=_Kg._bV1=function _bV1(c){ _6V1=c;};/* * The addFrame method takes an incoming BitmapData object to create each frames * @param * BitmapData object to be treated as a GIF's frame */var _cV1=_Kg._cV1=function _cV1(__a,_dV1){if((__a===null)||!_YU1||out===null){throw new Error("Please call start method before calling addFrame");}var _vF=true;try{if(!_dV1){_S4=__a.getImageData(0,0,__a.canvas.width,__a.canvas.height).data;if(!_5V1)_eV1(__a.canvas.width,__a.canvas.height);}else {if(__a instanceof ImageData){_S4=__a.data;if(!_fV1||width!=__a.width||height!=__a.height){ _eV1(__a.width,__a.height);}else {}}else if(__a instanceof Uint8ClampedArray){if(__a.length==(width*height*4)){_S4=__a;}else {console.log("Please set the correct size: ImageData length mismatch");_vF=false;}}else {console.log("Please provide correct input");_vF=false;}}_gV1();if(_gf1==0)_hV1();else _iV1();if(_4V1){_jV1();_kV1();if(repeat>=0){_lV1();}}_mV1();if(_6V1!==''){_nV1();}_oV1();if(!_4V1)_kV1();_pV1();_4V1=false;}catch(e){_vF=false;}return _vF;};/* * @description: Downloads the encoded gif with the given name * No need of any conversion from the stream data (out) to base64 * Solves the issue of large file sizes when there are more frames * and does not involve in creation of any temporary data in the process * so no wastage of memory, and speeds up the process of downloading * to just calling this function. * @parameter {String} filename filename used for downloading the gif */var download=_Kg.download=function download(filename){ if(out===null||_3V1==false){console.log("Please call start method and add frames and call finish method before calling download");}else {filename=filename!==undefined?(filename.endsWith(".gif")?filename:filename+".gif"):"download.gif";var _qV1=document.createElement("a");_qV1.download=filename;_qV1.href=URL.createObjectURL(new Blob([new Uint8Array(out._RU1)],{type:"image/gif"}));_qV1.click();}};var _rV1=_Kg._rV1=function _rV1(){if(!_YU1)return false;var _vF=true;_YU1=false;try{out._TU1(0x3b);_3V1=true;} catch(e){_vF=false;}return _vF;};var _1e1=function _1e1(){_WU1=0;_S4=null;_ZU1=null;__U1=null;_0V1=null;_3V1=false;_4V1=true;};/* * * Sets frame rate in frames per second. Equivalent to * setDelay(1000/fps). * @param fps * float frame rate (frames per second) */var _sV1=_Kg._sV1=function _sV1(fps){if(fps!=0xf)_XU1=Math.round(100/fps);};/* * Sets quality of color quantization (conversion of images to the maximum 256 * colors allowed by the GIF specification). Lower values (minimum = 1) * produce better colors, but slow processing significantly. 10 is the * default, and produces good color mapping at reasonable speeds. Values * greater than 20 do not yield significant improvements in speed. * @param quality * int greater than 0. * @return */var _tV1=_Kg._tV1=function _tV1(_uV1){ _gf1=_uV1;};/* * Sets the GIF frame size. The default size is the size of the first frame * added if this method is not invoked. * @param w * int frame width. * @param h * int frame width. */var _eV1=_Kg._eV1=function _eV1(w,h){if(_YU1&&!_4V1)return;width=w;height=h;if(width<1)width=320;if(height<1)height=240;_5V1=true;};/* * Initiates GIF file creation on the given stream. * @param os * OutputStream on which GIF images are written. * @return false if initial write failed. */var start=_Kg.start=function start(){ _1e1();var _vF=true;_3V1=false;out=new _QU1();try{out._UU1("GIF89a");}catch(e){_vF=false;}return _YU1=_vF;};var _vV1=_Kg._vV1=function _vV1(){_1e1();var _vF=true;_3V1=false;out=new _QU1();return _YU1=_vF;};var _iV1=function _iV1(){var _Yi=_ZU1.length;var _wV1=_Yi/3;__U1=[];var _xV1=new _yV1(_ZU1,_Yi,_gf1);_0V1=_xV1.process();var _ml=0;for(var __5=0;__5<_wV1;__5++){var index=_xV1.map(_ZU1[_ml++]&0xff,_ZU1[_ml++]&0xff,_ZU1[_ml++]&0xff);_1V1[index]=true;__U1[__5]=index;}_ZU1=null;colorDepth=8;_2V1=7;if(transparent!==null){ _WU1=_zV1(transparent);}};var _hV1=function _hV1(){var _Yi=_ZU1.length;var _wV1=_Yi/3;__U1=[];_0V1=[];for(var _e4=0;_e4<8;_e4++){for(var _f4=0;_f4<8;_f4++){for(var _g4=0;_g4<4;_g4++){var index=32*_e4+4*_f4+_g4;_0V1[index*3+0]=floor((_g4+0.5)*255/4);_0V1[index*3+2]=floor((_e4+0.5)*255/8);_0V1[index*3+1]=floor((_f4+0.5)*255/8);}}}var _ml=0;for(var __5=0;__5<_wV1;__5++){var _g4=floor((4*(_ZU1[_ml++]&0xff)/256));var _f4=floor((8*(_ZU1[_ml++]&0xff)/256));var _e4=floor((8*(_ZU1[_ml++]&0xff)/256));var index=_e4*32+_f4*4+_g4; _1V1[index]=true;__U1[__5]=index;}_ZU1=null;colorDepth=8;_2V1=7;if(transparent!==null){_WU1=0;}};var _zV1=function _zV1(c){if(_0V1===null)return -1;var _e4=(c&0xFF0000)>>16;var _f4=(c&0x00FF00)>>8;var _g4=(c&0x0000FF);var _AV1=0;var _BV1=256*256*256;var _Yi=_0V1.length;for(var i=0;i<_Yi;){var _AL1=_e4-(_0V1[i++]&0xff);var _BL1=_f4-(_0V1[i++]&0xff);var _CL1=_g4-(_0V1[i]&0xff);var _Bm=_AL1*_AL1+_BL1*_BL1+_CL1*_CL1;var index=i/3;if(_1V1[index]&&(_Bm<_BV1)){_BV1=_Bm;_AV1=index;}i++;}return _AV1;};var _CV1=_Kg._CV1=function _CV1(){ return width;};var _DV1=_Kg._DV1=function _DV1(){return height;};var _gV1=function _gV1(){var w=width;var h=height;_ZU1=[];var data=_S4;var _q8=0;for(var i=0;i=0){_FV1=dispose&7;}_FV1<<=2;out._TU1(0|_FV1|0|_EV1);_GV1(_XU1);out._TU1(_WU1); out._TU1(0);};var _nV1=function _nV1(){out._TU1(0x21);out._TU1(0xfe);out._TU1(_6V1.length);out._UU1(_6V1);out._TU1(0);};var _oV1=function _oV1(){out._TU1(0x2c);_GV1(0);_GV1(0);_GV1(width);_GV1(height);if(_4V1){out._TU1(0);}else {out._TU1(0x80|0|0|0|_2V1);}};var _jV1=function _jV1(){_GV1(width);_GV1(height);out._TU1((0x80|0x70|0x00|_2V1));out._TU1(0);out._TU1(0);};var _lV1=function _lV1(){out._TU1(0x21);out._TU1(0xff);out._TU1(11);out._UU1("NETSCAPE"+"2.0");out._TU1(3);out._TU1(1);_GV1(repeat);out._TU1(0); };var _kV1=function _kV1(){out._VU1(_0V1);var _t6=(3*256)-_0V1.length;for(var i=0;i<_t6;i++)out._TU1(0);};var _GV1=function _GV1(_HV1){out._TU1(_HV1&0xFF);out._TU1((_HV1>>8)&0xFF);};var _pV1=function _pV1(){var _IV1=new _JV1(width,height,__U1,colorDepth);_IV1.encode(out);};var _Bf1=_Kg._Bf1=function _Bf1(){return out;};var _KV1=_Kg._KV1=function _KV1(_LV1,_MV1){_YU1=_LV1;_4V1=_MV1;};return _Kg;};/* * This class handles LZW encoding * Adapted from Jef Poskanzer's Java port by way of J. M. G. Elliott. * @author Kevin Weiner (original Java version - kweiner@fmsware.com) * @author Thibault Imbert (AS3 version - bytearray.org) * @author Kevin Kwok (JavaScript version - https://github.com/antimatter15/jsgif) * @version 0.1 AS3 implementation */_JV1=function(){ var _Kg={};var _NV1=-1;var _OV1;var _PV1;var _QV1;var _RV1;var _SV1;var _TV1;// David Rowley (mgardi@watdcsu.waterloo.edu) var _UV1=12;var _VV1=5003;var _WV1;var _XV1=_UV1;var _YV1;var _ZV1=1<<_UV1;var __V1=[];var _0W1=[];var _1W1=_VV1;var _2W1=0;var _3W1=false;var _4W1;var _5W1;var _6W1;var _7W1=0;var _8W1=0;var _9W1=[0x0000,0x0001,0x0003,0x0007,0x000F,0x001F,0x003F,0x007F,0x00FF,0x01FF,0x03FF,0x07FF,0x0FFF,0x1FFF,0x3FFF,0x7FFF,0xFFFF];var _aW1;var _bW1=[];var _JV1=_Kg._JV1=function _JV1(width,height,_ZU1,_cW1){_OV1=width; _PV1=height;_QV1=_ZU1;_RV1=Math.max(2,_cW1);};var _dW1=function _dW1(c,_eW1){_bW1[_aW1++]=c;if(_aW1>=254)_fW1(_eW1);};var _gW1=function _gW1(_eW1){_hW1(_1W1);_2W1=_5W1+2;_3W1=true;output(_5W1,_eW1);};var _hW1=function _hW1(_1W1){for(var i=0;i<_1W1;++i)__V1[i]=-1;};var compress=_Kg.compress=function compress(_iW1,_eW1){var _jW1;var i;var c;var _kW1;var _FV1;var _lW1;var _mW1;_4W1=_iW1;_3W1=false;_WV1=_4W1;_YV1=_nW1(_WV1);_5W1=1<<(_iW1-1);_6W1=_5W1+1;_2W1=_5W1+2;_aW1=0;_kW1=_oW1();_mW1=0;for(_jW1=_1W1;_jW1<65536; _jW1*=2)++_mW1;_mW1=8-_mW1;_lW1=_1W1;_hW1(_lW1);output(_5W1,_eW1);_pW1:while((c=_oW1())!=_NV1){_jW1=(c<<_XV1)+_kW1;i=(c<<_mW1)^_kW1;if(__V1[i]==_jW1){_kW1=_0W1[i];continue;}else if(__V1[i]>=0){_FV1=_lW1-i;if(i===0)_FV1=1;do {if((i-=_FV1)<0)i+=_lW1;if(__V1[i]==_jW1){_kW1=_0W1[i];continue _pW1;}}while(__V1[i]>=0);}output(_kW1,_eW1);_kW1=c;if(_2W1<_ZV1){_0W1[i]=_2W1++;__V1[i]=_jW1;}else _gW1(_eW1);}output(_kW1,_eW1);output(_6W1,_eW1);};var encode=_Kg.encode=function encode(_qW1){_qW1._TU1(_RV1);_SV1=_OV1*_PV1; _TV1=0;compress(_RV1+1,_qW1);_qW1._TU1(0);};var _fW1=function _fW1(_eW1){if(_aW1>0){_eW1._TU1(_aW1);_eW1._VU1(_bW1,0,_aW1);_aW1=0;}};var _nW1=function _nW1(_WV1){return(1<<_WV1)-1;};var _oW1=function _oW1(){if(_SV1===0)return _NV1;--_SV1;var _rW1=_QV1[_TV1++];return _rW1&0xff;};var output=function output(_xh1,_eW1){_7W1&=_9W1[_8W1];if(_8W1>0)_7W1|=(_xh1<<_8W1);else _7W1=_xh1;_8W1+=_WV1;while(_8W1>=8){_dW1((_7W1&0xff),_eW1);_7W1>>=8;_8W1-=8;}if(_2W1>_YV1||_3W1){if(_3W1){_YV1=_nW1(_WV1=_4W1);_3W1=false;}else { ++_WV1;if(_WV1==_XV1)_YV1=_ZV1;else _YV1=_nW1(_WV1);}}if(_xh1==_6W1){while(_8W1>0){_dW1((_7W1&0xff),_eW1);_7W1>>=8;_8W1-=8;}_fW1(_eW1);}};_JV1.apply(this,arguments);return _Kg;};/* * This class handles Neural-Net quantization algorithm * @author Kevin Weiner (original Java version - kweiner@fmsware.com) * @author Thibault Imbert (AS3 version - bytearray.org) * @author Kevin Kwok (JavaScript version - https://github.com/antimatter15/jsgif) * @version 0.1 AS3 implementation */_yV1=function(){ var _Kg={};var _sW1=256;var _tW1=499;var _uW1=491;var _vW1=487;var _wW1=503;var _xW1=(3*_wW1);var _yW1=(_sW1-1);var _zW1=4;var _AW1=100;var _BW1=16;var _CW1=(1<<_BW1);var _DW1=10;var _EW1=(1<<_DW1);var _FW1=10;var _bs1=(_CW1>>_FW1);var _GW1=(_CW1<<(_DW1-_FW1));var _HW1=(_sW1>>3);var _IW1=6;var _JW1=(1<<_IW1);var _KW1=(_HW1*_JW1);var _LW1=30;var _MW1=10;var _NW1=(1<<_MW1);var _OW1;var _PW1=8;var _QW1=(1<<_PW1);var _RW1=(_MW1+_PW1);var _SW1=(1<<_RW1);var _TW1;var _UW1;var _VW1;var _WW1;var _XW1=[];var _bx=[];var freq=[];var _YW1=[];var _yV1=_Kg._yV1=function _yV1(_ZW1, _Yi,_gf1){var i;var _gh;_TW1=_ZW1;_UW1=_Yi;_VW1=_gf1;_WW1=new Array(_sW1);for(i=0;i<_sW1;i++){_WW1[i]=new Array(4);_gh=_WW1[i];_gh[0]=_gh[1]=_gh[2]=(i<<(_zW1+8))/_sW1;freq[i]=_CW1/_sW1;_bx[i]=0;}};var __W1=function __W1(){var map=[];var index=new Array(_sW1);for(var i=0;i<_sW1;i++)index[_WW1[i][3]]=i;var _ml=0;for(var _G6=0;_G6<_sW1;_G6++){var __5=index[_G6];map[_ml++]=(_WW1[__5][0]);map[_ml++]=(_WW1[__5][1]);map[_ml++]=(_WW1[__5][2]);}return map;};var _0X1=function _0X1(){var i;var __5;var _1X1;var _2X1;var _gh;var q; var _3X1;var _4X1;_3X1=0;_4X1=0;for(i=0;i<_sW1;i++){_gh=_WW1[i];_1X1=i;_2X1=_gh[1];for(__5=i+1;__5<_sW1;__5++){q=_WW1[__5];if(q[1]<_2X1){_1X1=__5;_2X1=q[1];}}q=_WW1[_1X1];if(i!=_1X1){__5=q[0];q[0]=_gh[0];_gh[0]=__5;__5=q[1];q[1]=_gh[1];_gh[1]=__5;__5=q[2];q[2]=_gh[2];_gh[2]=__5;__5=q[3];q[3]=_gh[3];_gh[3]=__5;}if(_2X1!=_3X1){_XW1[_3X1]=(_4X1+i)>>1;for(__5=_3X1+1;__5<_2X1;__5++)_XW1[__5]=i;_3X1=_2X1;_4X1=i;}}_XW1[_3X1]=(_4X1+_yW1)>>1;for(__5=_3X1+1;__5<256;__5++)_XW1[__5]=_yW1;};var _5X1=function _5X1(){ var i;var __5;var _g4;var _f4;var _e4;var _T61;var _Uu;var alpha;var step;var _qi;var _6X1;var _gh;var _rW1;var _7X1;if(_UW1<_xW1)_VW1=1;_OW1=30+((_VW1-1)/3);_gh=_TW1;_rW1=0;_7X1=_UW1;_6X1=_UW1/(3*_VW1);_qi=(_6X1/_AW1)|0;alpha=_NW1;_T61=_KW1;_Uu=_T61>>_IW1;if(_Uu<=1)_Uu=0;for(i=0;i<_Uu;i++)_YW1[i]=alpha*(((_Uu*_Uu-i*i)*_QW1)/(_Uu*_Uu));if(_UW1<_xW1)step=3;else if((_UW1%_tW1)!==0)step=3*_tW1;else {if((_UW1%_uW1)!==0)step=3*_uW1;else {if((_UW1%_vW1)!==0)step=3*_vW1;else step=3*_wW1;}}i=0;while(i<_6X1){_g4=(_gh[_rW1+0]&0xff)<<_zW1; _f4=(_gh[_rW1+1]&0xff)<<_zW1;_e4=(_gh[_rW1+2]&0xff)<<_zW1;__5=_8X1(_g4,_f4,_e4);_9X1(alpha,__5,_g4,_f4,_e4);if(_Uu!==0)_aX1(_Uu,__5,_g4,_f4,_e4);_rW1+=step;if(_rW1>=_7X1)_rW1-=_UW1;i++;if(_qi===0)_qi=1;if(i%_qi===0){alpha-=alpha/_OW1;_T61-=_T61/_LW1;_Uu=_T61>>_IW1;if(_Uu<=1)_Uu=0;for(__5=0;__5<_Uu;__5++)_YW1[__5]=alpha*(((_Uu*_Uu-__5*__5)*_QW1)/(_Uu*_Uu));}}};var map=_Kg.map=function map(_g4,_f4,_e4){var i;var __5;var _9u;var _h4;var _bX1;var _gh;var _cX1;_bX1=1000;_cX1=-1;i=_XW1[_f4];__5=i-1;while((i<_sW1)||(__5>=0)){ if(i<_sW1){_gh=_WW1[i];_9u=_gh[1]-_f4;if(_9u>=_bX1)i=_sW1;else {i++;if(_9u<0)_9u=-_9u;_h4=_gh[0]-_g4;if(_h4<0)_h4=-_h4;_9u+=_h4;if(_9u<_bX1){_h4=_gh[2]-_e4;if(_h4<0)_h4=-_h4;_9u+=_h4;if(_9u<_bX1){_bX1=_9u;_cX1=_gh[3];}}}}if(__5>=0){_gh=_WW1[__5];_9u=_f4-_gh[1];if(_9u>=_bX1)__5=-1;else {__5--;if(_9u<0)_9u=-_9u;_h4=_gh[0]-_g4;if(_h4<0)_h4=-_h4;_9u+=_h4;if(_9u<_bX1){_h4=_gh[2]-_e4;if(_h4<0)_h4=-_h4;_9u+=_h4;if(_9u<_bX1){_bX1=_9u;_cX1=_gh[3];}}}}}return(_cX1);};var process=_Kg.process=function process(){ _5X1();_dX1();_0X1();return __W1();};var _dX1=function _dX1(){var i;var __5;for(i=0;i<_sW1;i++){_WW1[i][0]>>=_zW1;_WW1[i][1]>>=_zW1;_WW1[i][2]>>=_zW1;_WW1[i][3]=i;}};var _aX1=function _aX1(_Uu,i,_g4,_f4,_e4){var __5;var _ml;var _Qs1;var _Ah1;var _h4;var _v6;var _gh;_Qs1=i-_Uu;if(_Qs1<-1)_Qs1=-1;_Ah1=i+_Uu;if(_Ah1>_sW1)_Ah1=_sW1;__5=i+1;_ml=i-1;_v6=1;while((__5<_Ah1)||(_ml>_Qs1)){_h4=_YW1[_v6++];if(__5<_Ah1){_gh=_WW1[__5++];try{_gh[0]-=(_h4*(_gh[0]-_g4))/_SW1;_gh[1]-=(_h4*(_gh[1]-_f4))/_SW1;_gh[2]-=(_h4*(_gh[2]-_e4))/_SW1; }catch(e){}}if(_ml>_Qs1){_gh=_WW1[_ml--];try{_gh[0]-=(_h4*(_gh[0]-_g4))/_SW1;_gh[1]-=(_h4*(_gh[1]-_f4))/_SW1;_gh[2]-=(_h4*(_gh[2]-_e4))/_SW1;}catch(e){}}}};var _9X1=function _9X1(alpha,i,_g4,_f4,_e4){var _t6=_WW1[i];_t6[0]-=(alpha*(_t6[0]-_g4))/_NW1;_t6[1]-=(alpha*(_t6[1]-_f4))/_NW1;_t6[2]-=(alpha*(_t6[2]-_e4))/_NW1;};var _8X1=function _8X1(_g4,_f4,_e4){var i;var _9u;var _h4;var _eX1;var _fX1;var _gX1;var _hX1;var _bX1;var _iX1;var _t6;_bX1=~(1<<31);_iX1=_bX1;_gX1=-1;_hX1=_gX1;for(i=0;i<_sW1;i++){_t6=_WW1[i];_9u=_t6[0]-_g4; if(_9u<0)_9u=-_9u;_h4=_t6[1]-_f4;if(_h4<0)_h4=-_h4;_9u+=_h4;_h4=_t6[2]-_e4;if(_h4<0)_h4=-_h4;_9u+=_h4;if(_9u<_bX1){_bX1=_9u;_gX1=i;}_eX1=_9u-((_bx[i])>>(_BW1-_zW1));if(_eX1<_iX1){_iX1=_eX1;_hX1=i;}_fX1=(freq[i]>>_FW1);freq[i]-=_fX1;_bx[i]+=(_fX1<<_DW1);}freq[_gX1]+=_bs1;_bx[_gX1]-=_GW1;return(_hX1);};_yV1.apply(this,arguments);return _Kg;};_mh:function _jX1(){var _kX1="#define MATRIX_VIEW 0\n"+"#define MATRIX_PROJECTION 1\n"+"#define MATRIX_WORLD 2\n"+"#define MATRIX_WORLD_VIEW 3\n"+"#define MATRIX_WORLD_VIEW_PROJECTION 4\n"+"#define MATRICES_MAX 5\n"+"#define FOG_SETTINGS 0\n"+"#define FOG_COLOUR 1\n"+"\n"+"uniform mat4 matrices[MATRICES_MAX];\n"+"uniform vec4 fogParameters[2];\n"+"\n"+"attribute vec3 vertex;\n"+"attribute vec4 color;\n"+"attribute vec2 UV;\n"+"\n"+"varying vec4 fcolor;\n"+"varying vec2 texc;\n"+"varying vec4 fogColor;\n"+"varying float fogFactor;\n"+"\n"+"float CalcFogFactor(vec4 pos)\n"+"{\n"+" vec4 viewpos = matrices[MATRIX_WORLD_VIEW] * pos;\n"+" vec4 fogParams = fogParameters[FOG_SETTINGS];\n"+" return (1.0 - ((fogParams.z - viewpos.z) * fogParams.y)) * fogParams.x;\n"+"}\n"+"\n"+"void main(void)\n"+"{\n"+" fcolor = color;\n"+" texc = UV;\n"+" vec4 pos = vec4(vertex.xyz, 1);\n"+" fogFactor = CalcFogFactor(pos);\n"+" fogColor = vec4(fogParameters[FOG_COLOUR].xyz, 1);\n"+" gl_Position = matrices[MATRIX_WORLD_VIEW_PROJECTION] * pos;\n"+" gl_PointSize = 1.0;\n"+"}"; return _kX1;}function _lX1(){var _mX1="precision highp float;\n"+"uniform sampler2D pTexure;\n"+"uniform bool alphaTestEnabled;\n"+"uniform float alphaRefValue;"+"\n"+"varying vec4 fcolor;\n"+"varying vec2 texc;\n"+"varying vec4 fogColor;\n"+"varying float fogFactor;\n"+"\n"+"void DoAlphaTest(vec4 SrcColour)\n"+"{\n"+" if (alphaTestEnabled)\n"+" {\n"+" if (SrcColour.a <= alphaRefValue)\n"+" {\n"+" discard;\n"+" }\n"+" }\n"+"}\n"+"\n"+"void main(void)\n"+"{\n"+" vec4 color = texture2D(pTexure, texc).rgba * fcolor.rgba;\n"+" DoAlphaTest(color);\n"+" gl_FragColor = vec4(mix(color.rgb, fogColor.rgb, fogFactor), color.a);\n"+"}\n"; return _mX1;}function _nX1(){var _oX1="#define LIGHTS_MAX 8\n"+"#define MATRIX_VIEW 0\n"+"#define MATRIX_PROJECTION 1\n"+"#define MATRIX_WORLD 2\n"+"#define MATRIX_WORLD_VIEW 3\n"+"#define MATRIX_WORLD_VIEW_PROJECTION 4\n"+"#define MATRICES_MAX 5\n"+"#define FOG_SETTINGS 0\n"+"#define FOG_COLOUR 1\n"+"\n"+"uniform mat4 matrices[MATRICES_MAX];\n"+"uniform vec4 fogParameters[2];\n"+"\n"+"uniform vec4 dirlightdir[LIGHTS_MAX];\n"+"uniform vec4 pointlightpos[LIGHTS_MAX];\n"+"uniform vec4 lightcol[LIGHTS_MAX];\n"+"uniform vec4 ambientcol;\n"+"\n"+"attribute vec3 vertex;\n"+"attribute vec3 normal;\n"+"attribute vec4 color;\n"+"attribute vec2 UV;\n"+"\n"+"varying vec4 fcolor;\n"+"varying vec2 texc;\n"+"varying vec4 fogColor;\n"+"varying float fogFactor;\n"+"\n"+"float CalcFogFactor(vec4 pos)\n"+"{\n"+" vec4 viewpos = matrices[MATRIX_WORLD_VIEW] * pos;\n"+" vec4 fogParams = fogParameters[FOG_SETTINGS];\n"+" return (1.0 - ((fogParams.z - viewpos.z) * fogParams.y)) * fogParams.x;\n"+"}\n"+"\n"+"vec4 DoDirLight(vec3 ws_normal, vec4 dir, vec4 diffusecol)\n"+"{\n"+" float dotresult = dot(ws_normal, dir.xyz);\n"+" dotresult = max(0.0, dotresult);\n"+" return dotresult * diffusecol;\n"+"}\n"+"\n"+"vec4 DoPointLight(vec3 ws_pos, vec3 ws_normal, vec4 posrange, vec4 diffusecol)\n"+"{\n"+" float atten = 0.0;\n"+"\n"+" vec3 diffvec = ws_pos - posrange.xyz;\n"+" float veclen = length(diffvec);\n"+" if (veclen <= posrange.w)\n"+" {\n"+" atten = 1.0 / (1.0 + (veclen / posrange.w));\n"+" }\n"+"\n"+" diffvec /= veclen;\n"+" float dotresult = dot(ws_normal, diffvec);\n"+" dotresult = max(0.0, dotresult);\n"+"\n"+" return (diffusecol * dotresult * atten);\n"+"}\n"+"\n"+"vec4 DoLighting(vec4 vertexcolour, vec4 objectspacepos, vec3 objectspacenormal)\n"+"{\n"+" vec3 ws_normal;\n"+" vec3 ws_pos;\n"+" vec4 objectspacenormal4 = vec4(objectspacenormal, 0.0);\n"+"\n"+" ws_normal = (matrices[MATRIX_WORLD] * objectspacenormal4).xyz;\n"+" ws_normal = -normalize(ws_normal);\n"+" ws_pos = (matrices[MATRIX_WORLD] * objectspacepos).xyz;\n"+"\n"+" vec4 accumcol = vec4(0.0, 0.0, 0.0, 0.0);\n"+" for(int i = 0; i < LIGHTS_MAX; i++)\n"+" {\n"+" accumcol += DoDirLight(ws_normal, dirlightdir[i], lightcol[i]);\n"+" }\n"+" for(int i = 0; i < LIGHTS_MAX; i++)\n"+" {\n"+" accumcol += DoPointLight(ws_pos, ws_normal, pointlightpos[i], lightcol[i]);\n"+" }\n"+" accumcol *= vertexcolour;\n"+" accumcol += ambientcol;\n"+" return min(vec4(1.0, 1.0, 1.0, 1.0), accumcol);\n"+"}\n"+"\n"+"void main(void)\n"+"{\n"+" vec4 pos = vec4(vertex.xyz, 1);\n"+" vec4 lcolor = DoLighting(color, pos, normal);\n"+" fcolor = vec4(lcolor.xyz, 1);\n"+" fogFactor = CalcFogFactor(pos);\n"+" fogColor = vec4(fogParameters[FOG_COLOUR].xyz, 1);\n"+" texc = UV;\n"+" gl_Position = matrices[MATRIX_WORLD_VIEW_PROJECTION] * pos;\n"+" gl_PointSize = 1.0;\n"+"}"; return _oX1;}function _pX1(){var _mX1="precision highp float;\n"+"uniform sampler2D pTexure;\n"+"uniform bool alphaTestEnabled;\n"+"uniform float alphaRefValue;"+"\n"+"varying vec4 fcolor;\n"+"varying vec2 texc;\n"+"varying vec4 fogColor;\n"+"varying float fogFactor;\n"+"\n"+"void DoAlphaTest(vec4 SrcColour)\n"+"{\n"+" if (alphaTestEnabled)\n"+" {\n"+" if (SrcColour.a <= alphaRefValue)\n"+" {\n"+" discard;\n"+" }\n"+" }\n"+"}\n"+"\n"+"\n"+"void main(void)\n"+"{\n"+" vec4 color = texture2D( pTexure, texc ).rgba * fcolor.rgba;\n"+" DoAlphaTest(color);\n"+" gl_FragColor = vec4(mix(color.rgb, fogColor.rgb, fogFactor), color.a);\n"+"}\n"; return _mX1;}/*@constructor */function _qX1(_rX1,_011){var _FH=null;var _sX1=null,_tX1=null,_uX1=null;var _vX1=0;var _wX1,_xX1,_yX1;var _zX1,_AX1,_BX1=[];var _CX1,_DX1,_EX1,_FX1;var _GX1,_HX1;var _IX1=0;Object.defineProperties(this,{_dn1:{get :function(){return _FH;}},_JX1:{get :function(){return(_FH!==null&&_FH!==undefined);}},_la:{get :function(){return _uX1;}},_Fa:{get :function(){return _zX1;}},_Zc:{get :function(){return _AX1;}},_KX1:{get :function(){return _wX1;}},_LX1:{get :function(){return _xX1;}},_MX1:{get :function(){ return _CX1;}},_NX1:{get :function(){return _DX1;}},_OX1:{get :function(){return _EX1;},set :function(_ue){_EX1=_ue;}},_PX1:{get :function(){return _FX1;},set :function(_ue){_FX1=_ue;}},_pC:{get :function(){return _GX1;}}});(function(){_FH=_QX1(_rX1,_011);if(_FH){_RX1(_FH);var _SX1=_FH.getParameter(_FH.MAX_TEXTURE_IMAGE_UNITS);_GX1=(_SX1<_9a._TX1)?_SX1:_9a._TX1;_HX1=_FH.getParameter(_FH.MAX_TEXTURE_SIZE);_tX1=new _UX1(_011._VX1);_uX1=new _WX1(_GX1,32,_tX1,_011._VX1);_sX1=new _XX1(_tX1,_uX1);_YX1();_ZX1();__X1(); _tX1._Qz(_wX1);_0Y1();}})();function _0Y1(){_1Y1=(_FH.getExtension('EXT_texture_filter_anisotropic')||_FH.getExtension('MOZ_EXT_texture_filter_anisotropic')||_FH.getExtension('WEBKIT_EXT_texture_filter_anisotropic'));_2Y1=_FH.getExtension('OES_texture_half_float');_3Y1=_FH.getExtension('OES_texture_half_float_linear');_4Y1=_FH.getExtension('EXT_color_buffer_half_float');_5Y1=_FH.getExtension('OES_texture_float');_6Y1=_FH.getExtension('OES_texture_float_linear');_7Y1=_FH.getExtension('EXT_color_buffer_float'); if(!(typeof WebGL2RenderingContext===typeof undefined)&&(_FH instanceof WebGL2RenderingContext)){_8Y1=true;}if(_8Y1){_9Y1=true;_aY1=true;_bY1=true;_cY1=true;}else {_9Y1=false;_aY1=false;_bY1=false;_cY1=false;}if(_4Y1||_7Y1){if(_8Y1){_dY1=true;_eY1=true;}else {if((_2Y1&&_3Y1)||(_5Y1&&_6Y1)){_dY1=true;_eY1=false;}}}if(_7Y1){if(_8Y1){if(_6Y1){_fY1=true;_gY1=true;}}else {if(_5Y1&&_6Y1){_fY1=true;_gY1=true;}}}_hY1=_FH.getExtension('OES_standard_derivatives');if(_8Y1||_hY1){_iY1=true;if(_hY1){_jY1=true;}}}function _RX1(_kY1){ _UX1.prototype._kY1=_kY1;_XX1.prototype._kY1=_kY1;_Jc.prototype._kY1=_kY1;_lY1.prototype._kY1=_kY1;_mY1.prototype._kY1=_kY1;_nY1.prototype._kY1=_kY1;};function _oY1(){var userAgent=navigator.userAgent.toString().toLowerCase();var _pY1=userAgent.indexOf("trident/");if(_pY1>=0){var version=parseFloat(userAgent.slice(_pY1+"trident/".length));if(version==7){return true;}}return false;};function _QX1(_rX1,_011){var _qY1=null;var _rY1=["webgl","experimental-webgl","moz-webgl","webkit-3d"];{for(var i=0;i<_rY1.length; i++){try{var _sY1={alpha:true,stencil:_011._tY1,antialias:false,premultipliedAlpha:false,preserveDrawingBuffer:_011._uY1};_qY1=_rX1.getContext(_rY1[i],_sY1);if(_qY1){break;}}catch(_bk){return null;}}}if(_qY1){_CX1=_rX1.width;_DX1=_rX1.height;_EX1=_CX1;_FX1=_DX1;}return _qY1;};function _YX1(){var _vY1=new _mY1(),_wY1=new _mY1();_vY1._xY1();_vY1._yY1();_vY1._zY1();_wY1._xY1();_wY1._yY1();_wY1._zY1();_wY1._AY1();_zX1=_BX1.push(_vY1)-1;_AX1=_BX1.push(_wY1)-1;_sX1._BY1(_zX1);_sX1._BY1(_AX1);_vY1._CY1=_wY1._CY1=true; };/*@this {yyWebGL} */this._DY1=function(_7f1){for(var i in _BX1){if(!_BX1.hasOwnProperty(i))continue;if(_BX1[i]._zr1(_7f1)){return i;}}var _EY1=_BX1.push(_7f1)-1;_sX1._BY1(_EY1);return _EY1;};/*@this {yyWebGL} */this._Lc=function(_Dd){return _BX1[_Dd];};function _FY1(_LO){while(((_LO&0x1)==0)&&(_LO>1)){_LO>>=1;}return(_LO==1);};/*@this {yyWebGL} */this._GY1=function(){return _HX1;};/*@this {yyWebGL} */this._HY1=function(_IY1,_JY1,_KY1,_LY1){_sX1._Dj1();_tX1._HY1(_IY1,_JY1,_KY1,_LY1);};function _MY1(_NY1, type,source){var _OY1=(type=='vertex')?_FH.VERTEX_SHADER:_FH.FRAGMENT_SHADER;var _ni=_FH.createShader(_OY1);var _PY1=source;if((_OY1==_FH.FRAGMENT_SHADER)&&_jY1){_PY1="#extension GL_OES_standard_derivatives : enable\n"+source;}_FH.shaderSource(_ni,_PY1);_FH.compileShader(_ni);if(!_FH.getShaderParameter(_ni,_FH.COMPILE_STATUS)){console.log("Could not compile "+type+" shader:\n\n"+_FH.getShaderInfoLog(_ni));console.log("----------------Shader Begin----------------");console.log(_PY1);console.log("-----------------Shader END----------------"); return;}_FH.attachShader(_NY1,_ni);};function _ZX1(){var _oX1=_jX1();var _mX1=_lX1();var _QY1=_FH.createProgram();var error=_FH.getError();_MY1(_QY1,"vertex",_oX1);_MY1(_QY1,"fragment",_mX1);_FH.linkProgram(_QY1);error=_FH.getError();if(!_FH.getProgramParameter(_QY1,_FH.LINK_STATUS)){alert("Could not initialise shaders\n\n");return false;}_FH.useProgram(_QY1);_wX1=_QY1;_QY1._RY1=_FH.getAttribLocation(_QY1,"vertex");_QY1._SY1=_FH.getAttribLocation(_QY1,"normal");_QY1._TY1=_FH.getAttribLocation(_QY1,"color"); _QY1._UY1=_FH.getAttribLocation(_QY1,"UV");_QY1._VY1=_FH.getUniformLocation(_QY1,"pTexure");_QY1._WY1=_FH.getUniformLocation(_QY1,"matrices");_QY1._XY1=_FH.getUniformLocation(_QY1,"fogParameters");_QY1._YY1=_FH.getUniformLocation(_QY1,"alphaTestEnabled");_QY1._ZY1=_FH.getUniformLocation(_QY1,"alphaRefValue");_QY1.__Y1=[];_QY1.__Y1.push(_FH.getAttribLocation(_QY1,"vertex"));_QY1.__Y1.push(_FH.getAttribLocation(_QY1,"color"));_QY1.__Y1.push(_FH.getAttribLocation(_QY1,"UV"));_QY1.__Y1=[];_QY1._0Z1=[]; _QY1._1Z1=[];if(_QY1._RY1!=-1){_QY1.__Y1.push(_QY1._RY1);_QY1._0Z1.push("vertex");_QY1._1Z1.push(_9a._Id);}if(_QY1._SY1!=-1){_QY1.__Y1.push(_QY1._SY1);_QY1._0Z1.push("normal");_QY1._1Z1.push(_9a._Xd);}if(_QY1._TY1!=-1){_QY1.__Y1.push(_QY1._TY1);_QY1._0Z1.push("color");_QY1._1Z1.push(_9a._Nd);}if(_QY1._UY1!=-1){_QY1.__Y1.push(_QY1._UY1);_QY1._0Z1.push("UV");_QY1._1Z1.push(_9a._Vd);}_QY1._2Z1=_IX1++;return true;};function __X1(){var _kX1=_nX1();var _mX1=_pX1();var _QY1=_FH.createProgram();var error=_FH.getError(); _MY1(_QY1,"vertex",_kX1);_MY1(_QY1,"fragment",_mX1);_FH.linkProgram(_QY1);error=_FH.getError();if(!_FH.getProgramParameter(_QY1,_FH.LINK_STATUS)){alert("Could not initialise 3D shader\n\n");return false;}_FH.useProgram(_QY1);_QY1._3Z1=_FH.getUniformLocation(_QY1,"ViewMatrix");_xX1=_QY1;_QY1._RY1=_FH.getAttribLocation(_QY1,"vertex");_QY1._SY1=_FH.getAttribLocation(_QY1,"normal");_QY1._TY1=_FH.getAttribLocation(_QY1,"color");_QY1._UY1=_FH.getAttribLocation(_QY1,"UV");_QY1._VY1=_FH.getUniformLocation(_QY1, "pTexure");_QY1._WY1=_FH.getUniformLocation(_QY1,"matrices");_QY1._4Z1=_FH.getUniformLocation(_QY1,"dirlightdir");_QY1._5Z1=_FH.getUniformLocation(_QY1,"pointlightpos");_QY1._6Z1=_FH.getUniformLocation(_QY1,"lightcol");_QY1._7Z1=_FH.getUniformLocation(_QY1,"ambientcol");_QY1._XY1=_FH.getUniformLocation(_QY1,"fogParameters");_QY1._YY1=_FH.getUniformLocation(_QY1,"alphaTestEnabled");_QY1._ZY1=_FH.getUniformLocation(_QY1,"alphaRefValue");_QY1.__Y1=[];_QY1._0Z1=[];_QY1._1Z1=[];if(_QY1._RY1!=-1){_QY1.__Y1.push(_QY1._RY1); _QY1._0Z1.push("vertex");_QY1._1Z1.push(_9a._Id);}if(_QY1._SY1!=-1){_QY1.__Y1.push(_QY1._SY1);_QY1._0Z1.push("normal");_QY1._1Z1.push(_9a._Xd);}if(_QY1._TY1!=-1){_QY1.__Y1.push(_QY1._TY1);_QY1._0Z1.push("color");_QY1._1Z1.push(_9a._Nd);}if(_QY1._UY1!=-1){_QY1.__Y1.push(_QY1._UY1);_QY1._0Z1.push("UV");_QY1._1Z1.push(_9a._Vd);}_QY1._2Z1=_IX1++;return true;};/*@this {yyWebGL} */this._8Z1=function(_9Z1,_aZ1,_bZ1){if(_9Z1=="None"||_aZ1=="None"){var _cZ1={_dZ1:null,_eZ1:null};return _cZ1;}var _QY1=_FH.createProgram(); var error=_FH.getError();_MY1(_QY1,"vertex",_9Z1);_MY1(_QY1,"fragment",_aZ1);_FH.linkProgram(_QY1);error=_FH.getError();if(!_FH.getProgramParameter(_QY1,_FH.LINK_STATUS)){var _cZ1={_dZ1:null,_eZ1:null};return _cZ1;}_FH.useProgram(_QY1);_QY1._WY1=_FH.getUniformLocation(_QY1,"gm_Matrices");_QY1._4Z1=_FH.getUniformLocation(_QY1,"gm_Lights_Direction");_QY1._5Z1=_FH.getUniformLocation(_QY1,"gm_Lights_PosRange");_QY1._6Z1=_FH.getUniformLocation(_QY1,"gm_Lights_Colour");_QY1._7Z1=_FH.getUniformLocation(_QY1, "gm_AmbientColour");_QY1._RY1=_FH.getAttribLocation(_QY1,"in_Position");_QY1._SY1=_FH.getAttribLocation(_QY1,"in_Normal");_QY1._TY1=_FH.getAttribLocation(_QY1,"in_Colour");_QY1._UY1=_FH.getAttribLocation(_QY1,"in_TextureCoord");_QY1.__Y1=[];_QY1._1Z1=[];for(var _fZ1=0;_fZ1<_bZ1.length;_fZ1++){_QY1.__Y1.push(_FH.getAttribLocation(_QY1,_bZ1[_fZ1]));switch(_bZ1[_fZ1]){case "in_Position":_QY1._1Z1.push(_9a._Id);break;case "in_Normal":_QY1._1Z1.push(_9a._Xd);break;case "in_Colour":_QY1._1Z1.push(_9a._Nd); break;case "in_TextureCoord":_QY1._1Z1.push(_9a._Vd);break;default :_QY1._1Z1.push(_9a._Vd);break;}}_QY1._0Z1=_bZ1;var _gZ1="gm_BaseTexture";var _oC=[_gZ1];var _EC=0;var _A91=[];var _hZ1=_FH.getUniformLocation(_QY1,_gZ1);_FH.uniform1iv(_hZ1,[_EC++]);_QY1._VY1=_hZ1;_QY1._iZ1={_kh:[]};for(var _X4=0,_jZ1=_FH.getProgramParameter(_QY1,_FH.ACTIVE_UNIFORMS);_X4<_jZ1;_X4++){var _kZ1=1;var _lZ1=_FH.getActiveUniform(_QY1,_X4),_mZ1=_lZ1["name"];if(_lZ1["size"]>1){var _k9=_mZ1.indexOf('[');if(_k9>0){_mZ1=_mZ1.substring(0, _k9);}}if((_lZ1["type"]==_FH.SAMPLER_2D)||(_lZ1["type"]==_FH.SAMPLER_CUBE)){if(_mZ1!=_gZ1){_oC[_EC]=_mZ1;var _fZ1=_FH.getUniformLocation(_QY1,_mZ1);_FH.uniform1iv(_fZ1,[_EC++]);}}else {switch(_lZ1["type"]){case _FH.FLOAT:_kZ1=1;break;case _FH.BOOL:_kZ1=1;break;case _FH.INT:_kZ1=1;break;case _FH._nZ1:_kZ1=1;break;case _FH.FLOAT_VEC2:_kZ1=2;break;case _FH.FLOAT_VEC3:_kZ1=3;break;case _FH.FLOAT_VEC4:_kZ1=4;break;case _FH.INT_VEC2:_kZ1=2;break;case _FH.INT_VEC3:_kZ1=3;break;case _FH.INT_VEC4:_kZ1=4;break;case _FH.BOOL_VEC2:_kZ1=2; break;case _FH.BOOL_VEC3:_kZ1=3;break;case _FH.BOOL_VEC4:_kZ1=4;break;case _FH.FLOAT_MAT2:_kZ1=4;break;case _FH.FLOAT_MAT3:_kZ1=9;break;case _FH.FLOAT_MAT4:_kZ1=16;break;default :_kZ1=1;}}_QY1._iZ1._kh[_X4]=_mZ1;_QY1._iZ1[_mZ1]={index:_X4,location:_FH.getUniformLocation(_QY1,_mZ1),_oZ1:_lZ1,width:_kZ1,size:_lZ1.size};_QY1._iZ1[_X4]=_QY1._iZ1[_mZ1];_QY1._Vw1=_9Z1;_QY1._pZ1=_aZ1;}_QY1._2Z1=_IX1++;_cZ1={_dZ1:_QY1,_eZ1:_oC};return _cZ1;};/*@this {yyWebGL} */this._qZ1=function(){_vX1++;};/*@this {yyWebGL} */this._rZ1=function(){ _sX1._Dj1();_tX1._p3=_vX1;_tX1._sZ1();_tX1._kK();_FH.clearColor(1,1,1,1);_FH.colorMask(false,false,false,true);_FH.clear(_FH.COLOR_BUFFER_BIT);_FH.colorMask(true,true,true,true);};/*@this {yyWebGL} */this._tZ1=function(){_sX1._Dj1();_tX1._sZ1();};/*@this {yyWebGL} */this._uZ1=function(_oj,_pk){_uX1._Ba(_9a._na,_oj);_uX1._Ba(_9a._oa,_pk);_uX1._Ba(_9a._pa,_oj);_uX1._Ba(_9a._qa,_pk);};this._vZ1=function(_Nz){_uX1._Ba(_9a._QB,_Nz);};/*@this {yyWebGL} */this._Bz=function(_IM){_uX1._Ba(_9a._RB,_IM);}; /*@this {yyWebGL} */this._Fz=function(_IM){_uX1._Ba(_9a._2C,_IM?_9a._wZ1:_9a._xZ1);};/*@this {yyWebGL} */this._yZ1=function(_zZ1){};/*@this {yyWebGL} */this._Dz=function(_IM){_uX1._Ba(_9a._UB,_IM);};/*@this {yyWebGL} *//*@this {yyWebGL} */this._Mz=function(_AZ1,_BZ1,_CZ1,_DZ1){var _hC={_iv:_AZ1,_jv:_BZ1,_kv:_CZ1,alpha:_DZ1};_uX1._Ba(_9a._iC,_hC);};/*@this {yyWebGL} */this._wA=function(_t4,_EZ1,_FZ1,_GZ1){_sX1._Dj1();_tX1._wA(_t4,_EZ1,_FZ1,_GZ1);};/*@this {yyWebGL} */this._AA=function(_t4,_IM,_HZ1){ _sX1._Dj1();_tX1._AA(_t4,_IM,_HZ1);};/*@this {yyWebGL} */this._BA=function(_HZ1){_sX1._Dj1();_tX1._IZ1(_HZ1);};/*@this {yyWebGL} */this._DA=function(_JZ1){var _KZ1=_JZ1[0];var end=_JZ1[2];var start=end;if(_JZ1[1]!=0.0)start=end-(1.0/_JZ1[1]);var colour=(_JZ1[4]*255)|((_JZ1[5]*255)<<8)|((_JZ1[6]*255)<<16)|((_JZ1[7]*255)<<24);_uX1._Ba(_9a._YB,_KZ1);_uX1._Ba(_9a.__B,start);_uX1._Ba(_9a._0C,end);_uX1._Ba(_9a._ZB,colour);};/*@this {yyWebGL} */this._LZ1=function(_Nz,_MZ1){_uX1._Ba(_9a._kC,_Nz);_uX1._Ba(_9a._mC, (_MZ1*255)|0);};/*@this {yyWebGL} */this._NZ1=function(_w91,_Nm){if(_Nm){_uX1._qC(_w91,_9a._xC,_9a._yC);_uX1._qC(_w91,_9a._zC,_9a._yC);}else {_uX1._qC(_w91,_9a._xC,_9a._AC);_uX1._qC(_w91,_9a._zC,_9a._AC);}};/*@this {yyWebGL} */this._OZ1=function(_w91,_BC){_uX1._qC(_w91,_9a._rC,_BC);_uX1._qC(_w91,_9a._tC,_BC);};/*@this {yyWebGL} */this._PZ1=function(){return _GX1;};/*@this {yyWebGL} */this._QZ1=function(_Nz){_uX1._Ba(_9a._RZ1,_Nz);};/*@this {yyWebGL} */this._SZ1=function(_yk){_uX1._Ba(_9a._TZ1,_yk); };/*@this {yyWebGL} */this._UZ1=function(_VZ1){_uX1._Ba(_9a._WZ1,_VZ1);};/*@this {yyWebGL} */this._XZ1=function(_YZ1){_uX1._Ba(_9a._ZZ1,_YZ1);};/*@this {yyWebGL} */this._Qz=function(__Z1){_sX1._Dj1();_tX1._Qz(__Z1);_yX1=__Z1;};/*@this {yyWebGL} */this._0_1=function(__Z1,_1_1){var _2_1=__Z1._iZ1[_1_1];if(_2_1){return _2_1.index;}return -1;};/*@this {yyWebGL} */this._3_1=function(_D91,_4_1){if(_D91!=-1){_sX1._Dj1();_tX1._3_1(_D91,_4_1);}};/*@this {yyWebGL} */this._5_1=function(_D91,_4_1){if(_D91!=-1){ _sX1._Dj1();_tX1._5_1(_D91,_4_1);}};/*@this {yyWebGL} */this._6_1=function(_D91,_4_1){if(_D91!=-1){_sX1._Dj1();_tX1._6_1(_D91,_4_1);}};/*@this {yyWebGL} */this._7_1=function(_D91,_4_1){var width=_yX1._iZ1[_D91].width;var size=_yX1._iZ1[_D91].size;var _A91;var _G6=_4_1.length;var _8_1=(_G6+width)-((_G6+width)%width);if(_8_1>(width*size))_8_1=width*size;if(_G6==_8_1){_A91=new Float32Array(_4_1);}else {_A91=new Float32Array(_8_1);if(_8_1<_G6)_G6=_8_1;for(var i=0;i<_G6;i++){_A91[i]=_4_1[i];}}return _A91;};/*@this {yyWebGL} */this._9_1=function(_D91, _4_1){if(_D91!=-1){_sX1._Dj1();_4_1=this._7_1(_D91,_4_1);_tX1._9_1(_D91,_4_1);}};/*@this {yyWebGL} */this._a_1=function(_D91,_4_1){if(_D91!=-1){_sX1._Dj1();_4_1=this._7_1(_D91,_4_1);_tX1._a_1(_D91,_4_1);}};/*@this {yyWebGL} */this._b_1=function(_9o){_sX1._Dj1();_tX1._b_1(_9o);};this._Dj1=function(){_sX1._Dj1();};/*@this {yyWebGL} */this._c_1=function(_be,_q5,_r5,_kj,_lj,_rX1,_7f1){_tX1._c_1(_be,_q5,_r5,_kj,_lj,_rX1,_7f1);};/*@this {yyWebGL} */this._d_1=function(_w91,_be){if(_be!=null){_9a._e_1(_be instanceof _lY1, "Texture is not a yyGLTexture",_9a._f_1);}_sX1._Dj1();_tX1._d_1(_w91,_be);};/*@this {yyWebGL} */this._Xz=function(_Lw){_sX1._Dj1();_tX1._g_1(_Lw);};/*@this {yyWebGL} */this._2A=function(_Lw){_sX1._Dj1();_tX1._h_1(_Lw);};/*@this {yyWebGL} */this._i_1=function(_Lw){_sX1._Dj1();_tX1._j_1(_Lw);};/*@this {yyWebGL} */this._k_1=function(_l_1){var _q4=new _lY1(undefined,_l_1.width,_l_1.height,_FY1(_l_1.width)&&_FY1(_l_1.height),_l_1,_l_1._m_1,0,_bs);return _q4;};this._n_1=function(_7f1){switch(_7f1){case _dk1:return "surface_unknown"; case _bs:return "surface_rgba8unorm";case _2k1:return "surface_r16float";case _3k1:return "surface_r32float";case _4k1:return "surface_rgba4unorm";case _5k1:return "surface_r8unorm";case _6k1:return "surface_rg8unorm";case _7k1:return "surface_rgba16float";case _8k1:return "surface_rgba32float";default :return "surface_unknown";}};this._o_1=function(_7f1){var _p_1={_q_1:_FH.RGBA,_Eh:_FH.RGBA,type:_FH.UNSIGNED_BYTE};switch(_7f1){case _dk1:return _p_1;case _bs:_p_1._q_1=_FH.RGBA;_p_1._Eh=_FH.RGBA;_p_1.type=_FH.UNSIGNED_BYTE; return _p_1;case _4k1:_p_1._q_1=_FH.RGBA;_p_1._Eh=_FH.RGBA;_p_1.type=_FH.UNSIGNED_SHORT_4_4_4_4;return _p_1;case _r_1:return _p_1;case _s_1:return _p_1;case _t_1:return _p_1;case _u_1:return _p_1;case _v_1:return _p_1;case _w_1:return _p_1;case _x_1:return _p_1;case _2k1:if(!_dY1||!_eY1)return _p_1;_p_1._q_1=_9Y1?_FH.R16F:_FH.RED;_p_1._Eh=_FH.RED;_p_1.type=_9Y1?_FH.HALF_FLOAT:_FH.HALF_FLOAT_OES;return _p_1;case _3k1:if(!_fY1||!_gY1)return _p_1;_p_1._q_1=_aY1?_FH.R32F:_FH.RED;_p_1._Eh=_FH.RED;_p_1.type=_FH.FLOAT;return _p_1; case _5k1:if(!_bY1)return _p_1;_p_1._q_1=_cY1?_FH.R8:_FH.RED;_p_1._Eh=_FH.RED;_p_1.type=_FH.UNSIGNED_BYTE;return _p_1;case _6k1:if(!_bY1)return _p_1;_p_1._q_1=_cY1?_FH.RG8:_FH.RG;_p_1._Eh=_FH.RG;_p_1.type=_FH.UNSIGNED_BYTE;return _p_1;case _7k1:if(!_dY1)return _p_1;_p_1._q_1=_8Y1?_FH.RGBA16F:_FH.RGBA;_p_1._Eh=_FH.RGBA;_p_1.type=_8Y1?_FH.HALF_FLOAT:_2Y1.HALF_FLOAT_OES;return _p_1;case _8k1:if(!_fY1)return _p_1;_p_1._q_1=_aY1?_FH.RGBA32F:_FH.RGBA;_p_1._Eh=_FH.RGBA;_p_1.type=_FH.FLOAT;return _p_1;default :_p_1._q_1=_FH.RGBA; _p_1._Eh=_FH.RGBA;_p_1.type=_FH.UNSIGNED_BYTE;return true;}return _p_1;};this._y_1=function(_z_1,_A_1){var _B_1=_FH.getParameter(_FH.TEXTURE_BINDING_2D);var _p_1=this._o_1(_z_1._rd);var _Yc=_FH.createTexture();_FH.bindTexture(_FH.TEXTURE_2D,_Yc);if(_z_1.Image==null){_FH.texImage2D(_FH.TEXTURE_2D,0,_p_1._q_1,_z_1._C_1,_z_1._D_1,0,_p_1._Eh,_p_1.type,null);}else if(_z_1.Image instanceof Uint8Array){_FH.texImage2D(_FH.TEXTURE_2D,0,_FH.RGBA,_z_1._C_1,_z_1._D_1,0,_FH.RGBA,_FH.UNSIGNED_BYTE,_z_1.Image);}else {_FH.texImage2D(_FH.TEXTURE_2D, 0,_FH.RGBA,_FH.RGBA,_FH.UNSIGNED_BYTE,_z_1.Image);}if(_A_1!==undefined&&(_A_1==_9a._E_1)||(_A_1==_9a._F_1)&&((_z_1._zg!==undefined&&(_z_1._zg&_G_1._H_1)!==0))){_FH.generateMipmap(_FH.TEXTURE_2D);var _I_1=_z_1._zg;_I_1|=_G_1._J_1;_z_1._zg=_I_1;}_z_1._ck1=_Yc;_z_1._K_1._L_1(_FH.TEXTURE_2D);_FH.bindTexture(_FH.TEXTURE_2D,_B_1);_z_1._M_1=true;};this._ak1=function(_7f1){switch(_7f1){case _bs:return true;case _2k1:if(_dY1&&_eY1)return true;else return false;case _3k1:if(_fY1&&_gY1)return true;else return false;case _4k1:return true; case _5k1:if(_bY1)return true;else return false;case _6k1:if(_bY1)return true;else return false;case _7k1:if(_dY1)return true;else return false;case _8k1:if(_fY1)return true;else return false;default :return false;}};/*@this {yyWebGL} */this._N_1=function(_Pc,_Al,_O_1,_3d){var _yh=0;if(_Pc){_yh|=_FH.COLOR_BUFFER_BIT;}if(_Al){_yh|=_FH.DEPTH_BUFFER_BIT;}if(_O_1){_yh|=_FH.STENCIL_BUFFER_BIT;}_tX1._N_1(_yh,_3d);};/*@this {yyWebGL} */this._fj1=function(_pt){_sX1._Dj1();_tX1._fj1(_pt);};function _P_1(_Q_1,_kj,_lj){if((_kj==0)||(_lj==0)){ return;}var _R_1=_Q_1[(_lj-1)*_kj]&0xffffff;for(var i=0;i<(_kj*_lj);i++){if((_Q_1[i]&0xffffff)==_R_1){_Q_1[i]=_Q_1[i]&0xffffff;}}};function _S_1(_ad){var max=_HX1;var size=1;while(size<=max){if(_ad<=size)return size;size=size<<1;}return max;};/*@this {yyWebGL} */this._T_1=function(_l_1,_q5,_r5,_kj,_lj,_8s,_9s,_U_1){this._Dj1();var _V_1=new Uint8Array(_kj*_lj*4);_FH.readPixels(_q5,_FX1-(_r5+_lj),_kj,_lj,_FH.RGBA,_FH.UNSIGNED_BYTE,_V_1);var _W_1;if(_U_1){var _8j=new ArrayBuffer(_kj*_lj*4);_W_1=new Uint8Array(_8j); for(var _Y4=0;_Y4<_lj;_Y4++){var _X_1=_V_1.subarray(_Y4*_kj*4,(_Y4+1)*_kj*4);var _Y_1=_W_1.subarray((_lj-1-_Y4)*_kj*4,(_lj-_Y4)*_kj*4);_Y_1.set(_X_1);}if(_8s){_P_1(new Int32Array(_8j),_kj,_lj);}}else {_W_1=_V_1;}var w=_S_1(_kj);var h=_S_1(_lj);var _B_1=_FH.getParameter(_FH.TEXTURE_BINDING_2D);var _q4=new _lY1(undefined,w,h,(w==_kj)&&(h==_lj),_W_1);_l_1.width=w;_l_1.height=h;_FH.bindTexture(_FH.TEXTURE_2D,_B_1);_tX1._kK();return _q4;};/*@this {yyWebGL} */this._Z_1=function(_l_1,___1,_q5,_r5,_kj,_lj,_8s,_9s){ this._tZ1();var _002=_FH.getParameter(_FH.FRAMEBUFFER_BINDING);var _8j=new ArrayBuffer(_kj*_lj*4);var _W_1=new Uint8Array(_8j);_FH.bindFramebuffer(_FH.FRAMEBUFFER,___1);_FH.readPixels(_q5,_r5,_kj,_lj,_FH.RGBA,_FH.UNSIGNED_BYTE,_W_1);_FH.bindFramebuffer(_FH.FRAMEBUFFER,_002);if(_8s){_P_1(new Int32Array(_8j),_kj,_lj);}var w=_S_1(_kj);var h=_S_1(_lj);var _B_1=_FH.getParameter(_FH.TEXTURE_BINDING_2D);var _102=new ArrayBuffer(w*h*4);var _202=new Uint8Array(_102);var y;var _Wk=0;var _302=0;for(y=0;y<_lj;y++){var x;for(x=0; x<_kj;x++){_202[_Wk++]=_W_1[_302++];_202[_Wk++]=_W_1[_302++];_202[_Wk++]=_W_1[_302++];_202[_Wk++]=_W_1[_302++];}for(;x>10;var _Lt1=_e02&0x03FF;var sign=1.0;if((_e02>>15)!=0){sign=-1.0;}if(_f02!=0){if(_f02===0x1f){if(_Lt1!=0)_q4=NaN;else _q4=Infinity;}else {_q4=sign*(Math.pow(2,_f02-15)*(1+(_Lt1/0x400))); }}else {_q4=sign*(0.00006103515625*(_Lt1/0x400));}return _q4;}/*@this {yyWebGL} */this._g02=function(_h02,_7f1){var _q4=0;if(_h02==null)return 0;switch(_7f1){case _bs:{_q4=(_h02[0])|(_h02[1]<<8)|(_h02[2]<<16)|(_h02[3]<<24);}break;case _4k1:{var _e4,_f4,_g4,_h4;var _i02=_h02[0];_e4=(((_i02&0xf000)>>12)/15.0)*255.0;_f4=(((_i02&0xf00)>>8)/15.0)*255.0;_g4=(((_i02&0xf0)>>4)/15.0)*255.0;_h4=((_i02&0xf)/15.0)*255.0;_e4=_I6(_e4,255);_f4=_I6(_f4,255);_g4=_I6(_g4,255);_h4=_I6(_h4,255);_q4=_e4|(_f4<<8)|(_g4<<16)|(_h4<<24); }break;case _2k1:{var _e4=_d02(_h02[0]);_q4=new Array(_e4,0.0,0.0,0.0);}break;case _3k1:{var _e4=_h02[0];_q4=new Array(_e4,0.0,0.0,0.0);}break;case _5k1:{_q4=_h02[0];}break;case _6k1:{_q4=(_h02[0])|(_h02[1]<<8);}break;case _7k1:{var _e4,_f4,_g4,_h4;_e4=_d02(_h02[0]);_f4=_d02(_h02[1]);_g4=_d02(_h02[2]);_h4=_d02(_h02[3]);_q4=new Array(_e4,_f4,_g4,_h4);}break;case _8k1:{var _e4,_f4,_g4,_h4;_e4=_h02[0];_f4=_h02[1];_g4=_h02[2];_h4=_h02[3];_q4=new Array(_e4,_f4,_g4,_h4);}break;}return _q4;};/*@this {yyWebGL} */this._j02=function(_q5, _r5,_7f1){this._tZ1();var _W_1=this._c02(_q5,_FX1-_r5,1,1,_7f1);var _m4=this._g02(_W_1,_7f1);_tX1._kK();return _m4;};/*@this {yyWebGL} */this._k02=function(___1,_q5,_r5,_7f1){this._tZ1();var _002=_FH.getParameter(_FH.FRAMEBUFFER_BINDING);var _W_1=new Uint8Array(16);_FH.bindFramebuffer(_FH.FRAMEBUFFER,___1);var _W_1=this._c02(_q5,_r5,1,1,_7f1);var _m4=this._g02(_W_1,_7f1);_FH.bindFramebuffer(_FH.FRAMEBUFFER,_002);_tX1._kK();return new Long(_m4);};/*@this {yyWebGL} */this._l02=function(___1,_q5,_r5,_kj,_lj, _7f1){this._tZ1();var _002=_FH.getParameter(_FH.FRAMEBUFFER_BINDING);_FH.bindFramebuffer(_FH.FRAMEBUFFER,___1);var _W_1=this._c02(_q5,_r5,_kj,_lj,_7f1);if(!(_W_1 instanceof Uint8Array)){var _m02=new Uint8Array(_W_1.buffer);_W_1=_m02;}_FH.bindFramebuffer(_FH.FRAMEBUFFER,_002);_tX1._kK();return _W_1;};/*@this {yyWebGL} */this._n02=function(_kj,_lj,_7f1){var _B_1=_FH.getParameter(_FH.TEXTURE_BINDING_2D);var _002=_FH.getParameter(_FH.FRAMEBUFFER_BINDING);var _o02=_FH.getParameter(_FH.RENDERBUFFER_BINDING);{var _p02=_FH.createFramebuffer(); _p02.width=_kj;_p02.height=_lj;_FH.bindFramebuffer(_FH.FRAMEBUFFER,_p02);var _q02=new _lY1(undefined,_kj,_lj,_FY1(_kj)&&_FY1(_lj),null,0,0,_7f1);this._y_1(_q02);var _r02=_FH.createRenderbuffer();_FH.bindRenderbuffer(_FH.RENDERBUFFER,_r02);_FH.framebufferTexture2D(_FH.FRAMEBUFFER,_FH.COLOR_ATTACHMENT0,_FH.TEXTURE_2D,_q02._ck1,0);if(_Ii1){_FH.renderbufferStorage(_FH.RENDERBUFFER,_FH.DEPTH_STENCIL,_p02.width,_p02.height);_FH.framebufferRenderbuffer(_FH.FRAMEBUFFER,_FH.DEPTH_STENCIL_ATTACHMENT,_FH.RENDERBUFFER, _r02);}}_FH.bindTexture(_FH.TEXTURE_2D,_B_1);_FH.bindFramebuffer(_FH.FRAMEBUFFER,_002);_FH.bindRenderbuffer(_FH.RENDERBUFFER,_o02);var _s02={_3j1:_p02,_t02:_r02,_ck1:_q02};return _s02;};/*@this {yyWebGL} */this._u02=function(___1){_e8._la._v02(___1._ck1);_FH.deleteFramebuffer(___1._3j1);_FH.deleteRenderbuffer(___1._t02);_FH.deleteTexture(___1._ck1._ck1);___1._ck1=null;};/*@this {yyWebGL} */this._w02=function(_x02){_FH.deleteTexture(_x02);};/*@this {yyWebGL} */this._y02=function(_be){_9a._e_1(_be instanceof _lY1, "NULL texture is not a yyGLTexture",_9a._f_1);_tX1._z02=_be;};/*@this {yyWebGL} */this._Da=function(_zc,_be,_Dd,_A02){_9a._e_1((_be==null)||(_be instanceof _lY1),"Texture is not a yyGLTexture",_9a._f_1);return _sX1._Da(_zc,_be,_Dd,_A02,_BX1[_Dd],_vX1);};/*@this {yyWebGL} */this._ce=function(_zc,_be,_B02,_C02){_9a._e_1((_be==null)||(_be instanceof _lY1),"Texture is not a yyGLTexture",_9a._f_1);_sX1._D02(_zc,_be,_B02,_C02);};/*@this {yyWebGL} */this._E02=function(_Vg1){var texture=_Vg1.texture._N8;if(!_902(texture, _9a._a02)){_ht(texture);_O8(texture);}var _Yc=texture._ck1;var w=texture._C_1;var h=texture._D_1;var _002=_FH.getParameter(_FH.FRAMEBUFFER_BINDING);var _b02=_FH.createFramebuffer();_FH.bindFramebuffer(_FH.FRAMEBUFFER,_b02);_FH.framebufferTexture2D(_FH.FRAMEBUFFER,_FH.COLOR_ATTACHMENT0,_FH.TEXTURE_2D,_Yc,0);var data=new Uint8Array(w*h*4);_FH.readPixels(0,0,w,h,_FH.RGBA,_FH.UNSIGNED_BYTE,data);_FH.bindFramebuffer(_FH.FRAMEBUFFER,_002);_FH.deleteFramebuffer(_b02);return data;};}var _9a={_F02:8,_TX1:8,_G02:-1, _Ea:0,_Ec:1,_Dc:2,_Bc:3,_Cc:4,_Ac:5,_Id:1,_Nd:2,_Xd:3,_Vd:4,_H02:5,_I02:6,_J02:7,_K02:8,_L02:9,_M02:10,_N02:11,_O02:12,_P02:13,_Q02:14,_R02:14,_Zd:1,_Jd:2,_Ld:3,_2e:4,_Od:5,_4e:6,_S02:6,_3C:1,_da:2,_T02:3,_fa:4,_aa:5,_ca:6,_U02:7,_V02:8,_ea:9,_W02:10,_X02:11,_Y02:12,_Z02:13,__02:14,_012:15,_112:16,_212:16,_312:0,_RB:1,_412:2,_512:3,_UB:4,_kC:5,_na:6,_oa:7,_2C:8,_TB:9,_mC:10,_ZC:11,_QB:12,_YB:13,_612:14,_ZB:15,_712:16,__B:17,_0C:18,_812:19,_912:20,_a12:21,_b12:22,_c12:23,_iC:24,_RZ1:25,_d12:26,_e12:27, _WZ1:28,_TZ1:29,_ZZ1:30,_f12:31,_g12:32,_ra:33,_pa:34,_qa:35,_h12:36,_i12:37,_j12:1,_k12:2,_l12:3,_m12:4,_n12:5,_o12:6,_p12:7,_q12:8,_r12:1,_s12:2,_t12:3,_u12:4,_v12:5,_w12:6,_x12:7,_y12:8,_yC:0,_AC:1,_rC:0,_tC:1,_xC:2,_zC:3,_CC:4,_IC:5,_KC:6,_GC:7,_MC:8,_NC:9,_z12:10,_uC:0,_sC:1,_A12:2,_B12:3,_xZ1:0,_C12:1,_wZ1:2,_D12:0,_E12:1,_F12:2,_G12:0,_H12:1,_I12:0,_J12:1,_K12:0,_L12:1,_M12:2,_N12:3,_O12:0,_P12:1,_Q12:2,_R12:4,_S12:8,_a02:-1,_T12:0,_E_1:1,_F_1:2,_U12:0,_V12:1,_f_1:2,_W12:1,_e_1:function(_X12, _Y12,_Z12){if(!_X12){throw new Error(_Y12);}}};Object.freeze(_9a);/*@constructor */function _UX1(__12){var _FH=this._kY1;var _022=0,_122=1,_222=2,_322=3,_422=4,_522=5,_622=6,_722=7,_822=8,_922=9,_a22=10,_b22=11,_c22=12,_d22=13,_e22=14,_f22=15,_g22=16,_h22=17,_i22=18,_j22=19,_k22=20,_l22=21,_m22=22,_n22=23,_o22=24,_p22=25,_q22=26,_r22=27;var _s22=0,_t22=1,_u22=2,_v22=3,_w22=4,_x22=5;var _y22=1,_z22=2,_A22=4,_B22=8;var _C22=[];var _D22=[],_E22,_F22;var _G22,_H22=[],_I22=[],_J22=[],_K22=new Float32Array(_9a._F02*4), _L22=new Float32Array(_9a._F02*4),_M22=new Float32Array(_9a._F02*4),_N22=new Float32Array(4),_O22=new Float32Array(8),_P22=0.0,_Q22=0.0,_R22=false,_S22=0.0,_T22,_U22=_FH.SRC_ALPHA,_V22=_FH.ONE_MINUS_SRC_ALPHA,_W22=_FH.SRC_ALPHA,_X22=_FH.ONE_MINUS_SRC_ALPHA;var _vX1=0,_Y22;Object.defineProperties(this,{_p3:{get :function(){return _vX1;},set :function(_ue){_vX1=_ue;}},_z02:{get :function(){return _Y22;},set :function(_ue){_Y22=_ue;}}});(function(){_Z22();var _SX1=_FH.getParameter(_FH.MAX_TEXTURE_IMAGE_UNITS); if(_SX1>_9a._TX1){_SX1=_9a._TX1;}for(var _EC=0;_EC<_SX1;_EC++){_J22[_EC]=new _nY1(__12);}var __22=_032(_9a._j12);_T22={_8u:0,_132:0xffffffff,_232:0xffffffff,_2Y:_332(_9a._y12),_432:__22,_532:__22,_632:__22};for(var i=0;i<_x22;i++){_I22[i]=new _zz();}})();function _Z22(){_D22=[];_F22=undefined;_E22=undefined;_D22[0]=1;_D22[1]=1;};/*@this {yyCommandBuilder} */this._kK=function(){_Z22();};/*@this {yyCommandBuilder} */this._Qz=function(_732){if(_732!=_E22){_F22=null;_C22.push(_h22);_C22.push(_732);_E22=_732; }};/*@this {yyCommandBuilder} */this._d_1=function(_w91,_be){_e8._la._d_1(_w91,_be);if(_D22[_w91]==_be){return;}_D22[_w91]=_be;_C22.push(_122);_C22.push(_be);_C22.push(_w91);};/*@this {yyCommandBuilder} */this._b_1=function(_bo){_C22.push(_bo);};this._c_1=function(_be,_q5,_r5,_kj,_lj,_832,_7f1){_C22.push(_r22);_C22.push(_be);_C22.push(_q5);_C22.push(_r5);_C22.push(_kj);_C22.push(_lj);_C22.push(_832);_C22.push(_7f1);};/*@this {yyCommandBuilder} */this._932=function(_a32){if(_F22==_a32)return;_F22=_a32; _C22.push(_c22);_C22.push(_a32);};/*@this {yyCommandBuilder} */this._b32=function(_VB,_c32){_C22.push(_222);_C22.push(_VB);_C22.push(_c32);};/*@this {yyCommandBuilder} */this._d32=function(_VB,_c32){_C22.push(_322);_C22.push(_VB);_C22.push(_c32);};/*@this {yyCommandBuilder} */this._e32=function(_VB,_c32){_C22.push(_422);_C22.push(_VB);_C22.push(_c32);};/*@this {yyCommandBuilder} */this._f32=function(_VB,_c32){_C22.push(_522);_C22.push(_VB);_C22.push(_c32);};/*@this {yyCommandBuilder} */this._g32=function(_VB, _c32){_C22.push(_622);_C22.push(_VB);_C22.push(_c32);};/*@this {yyCommandBuilder} */this._hH1=function(_VB,_c32){_C22.push(_722);_C22.push(_VB);_C22.push(_c32);};/*@this {yyCommandBuilder} */this._h_1=function(_Lw){_C22.push(_922);_C22.push(new _zz(_Lw));};/*@this {yyCommandBuilder} */this._g_1=function(_Lw){_C22.push(_a22);_C22.push(new _zz(_Lw));};/*@this {yyCommandBuilder} */this._j_1=function(_Lw){_C22.push(_822);_C22.push(new _zz(_Lw));};/*@this {yyCommandBuilder} */this._HY1=function(_q5,_r5, _kj,_lj){_C22.push(_b22);_C22.push(_q5);_C22.push(_r5);_C22.push(_kj);_C22.push(_lj);};/*@this {yyCommandBuilder} */this._N_1=function(_nG,_3d){_C22.push(_d22);_C22.push(_nG);_C22.push(Math.floor(_3d));};/*@this {yyCommandBuilder} */this._fj1=function(_h32){_C22.push(_e22);_C22.push(_h32);};/*@this {yyCommandBuilder} */this._i32=function(_u9,_aC,_bC,_cC){_C22.push(_f22);_C22.push(_u9);_C22.push(_aC);_C22.push(_bC);_C22.push(_cC);};/*@this {yyCommandBuilder} */this._uZ1=function(_oj,_pk){_C22.push(_g22); _C22.push(_oj);_C22.push(_pk);};/*@this {yyCommandBuilder} */this._3_1=function(_j32,_4_1){_C22.push(_i22);_C22.push(_j32);_C22.push(_4_1);};/*@this {yyCommandBuilder} */this._5_1=function(_j32,_4_1){_C22.push(_j22);_C22.push(_j32);_C22.push(_4_1);};/*@this {yyCommandBuilder} */this._9_1=function(_j32,_4_1){_C22.push(_i22);_C22.push(_j32);_C22.push(_4_1);};/*@this {yyCommandBuilder} */this._a_1=function(_j32,_4_1){_C22.push(_j22);_C22.push(_j32);_C22.push(_4_1);};/*@this {yyCommandBuilder} */this._6_1=function(_j32, _4_1){_C22.push(_j22);_C22.push(_j32);_C22.push(_4_1);};/*@this {yyCommandBuilder} */this._Ba=function(_k32,_l32){_C22.push(_k22);_C22.push(_k32);_C22.push(_l32);};/*@this {yyCommandBuilder} */this._qC=function(_w91,_Xb1,_m32){_C22.push(_l22);_C22.push(_w91);_C22.push(_Xb1);_C22.push(_m32);};/*@this {yyCommandBuilder} */this._wA=function(_k9,_n32,_o32,_p32){_C22.push(_m22);_C22.push(_k9);_C22.push(new Float32Array(_n32));_C22.push(new Float32Array(_o32));_C22.push(new Float32Array(_p32));};/*@this {yyCommandBuilder} */this._IZ1=function(colour){ _C22.push(_n22);_C22.push(new Float32Array(colour));};/*@this {yyCommandBuilder} */this._q32=function(_r32){_C22.push(_o22);_C22.push(new Float32Array(_r32));};/*@this {yyCommandBuilder} */this._AA=function(_k9,enable,colour){_C22.push(_p22);_C22.push(_k9);_C22.push(enable);_C22.push(colour);};/*@this {yyCommandBuilder} */this._LZ1=function(_Nz,_s32){_C22.push(_q22);_C22.push(_Nz);_C22.push(_s32);};function _t32(_Vn){switch(_Vn){case _9a._3C:return _FH.ZERO;case _9a._da:return _FH.ONE;case _9a._T02:return _FH.SRC_COLOR; case _9a._fa:return _FH.ONE_MINUS_SRC_COLOR;case _9a._aa:return _FH.SRC_ALPHA;case _9a._ca:return _FH.ONE_MINUS_SRC_ALPHA;case _9a._U02:return _FH.DST_ALPHA;case _9a._V02:return _FH.ONE_MINUS_DST_ALPHA;case _9a._ea:return _FH.DST_COLOR;case _9a._W02:return _FH.ONE_MINUS_DST_COLOR;case _9a._X02:return _FH.SRC_ALPHA_SATURATE;case _9a._Y02:return 0;case _9a._Z02:return 0;case _9a.__02:return 0;case _9a._012:return 0;case _9a._112:return 0;case _9a._212:return 0;}return 0;}function _032(_Vn){switch(_Vn){case _9a._j12:return _FH.KEEP; case _9a._k12:return _FH.ZERO;case _9a._l12:return _FH.REPLACE;case _9a._m12:return _FH.INCR;case _9a._n12:return _FH.DECR;case _9a._o12:return _FH.INVERT;case _9a._p12:return _FH.INCR;case _9a._q12:return _FH.DECR;default :return _FH.KEEP;}}function _332(_Vn){switch(_Vn){case _9a._r12:return _FH.NEVER;case _9a._s12:return _FH.LESS;case _9a._t12:return _FH.EQUAL;case _9a._u12:return _FH.LEQUAL;case _9a._v12:return _FH.GREATER;case _9a._w12:return _FH.NOTEQUAL;case _9a._x12:return _FH.GEQUAL;case _9a._y12:default :return _FH.ALWAYS; }}function _u32(_k32,_l32){switch(_k32){case _9a._RB:if(_l32){_FH.enable(_FH.DEPTH_TEST);}else {_FH.disable(_FH.DEPTH_TEST);}break;case _9a._UB:_FH.depthMask(_l32);break;case _9a._kC:_R22=_l32;_v32(_B22);break;case _9a._na:_U22=_t32(_l32);_FH.blendFuncSeparate(_U22,_V22,_W22,_X22);break;case _9a._oa:_V22=_t32(_l32);_FH.blendFuncSeparate(_U22,_V22,_W22,_X22);break;case _9a._2C:if(_l32!=_9a._xZ1){_FH.enable(_FH.CULL_FACE);_FH.frontFace((_l32===_9a._C12)?_FH.CW:_FH.CCW);}else {_FH.disable(_FH.CULL_FACE);}break; case _9a._TB:_FH.depthFunc(_332(_l32));break;case _9a._mC:_S22=_l32/255.0;_v32(_B22);break;case _9a._ZC:break;case _9a._QB:if(_l32){_FH.enable(_FH.BLEND);}else {_FH.disable(_FH.BLEND);}break;case _9a._YB:_O22[0]=_l32;_v32(_y22);break;case _9a._612:break;case _9a._ZB:_O22[4]=(_l32&0xff)/255.0;_O22[5]=((_l32>>8)&0xff)/255.0;_O22[6]=((_l32>>16)&0xff)/255.0;_O22[7]=((_l32>>24)&0xff)/255.0;_v32(_y22);break;case _9a._712:break;case _9a.__B:_P22=_l32;var _qv=_Q22-_P22;_O22[1]=(_qv==0.0)?0.0:(1.0/_qv);_v32(_y22);break; case _9a._0C:_Q22=_l32;_O22[2]=_l32;var _qv=_Q22-_P22;_O22[1]=(_qv==0.0)?0.0:(1.0/_qv);_v32(_y22);break;case _9a._812:break;case _9a._912:break;case _9a._a12:break;case _9a._b12:break;case _9a._c12:break;case _9a._iC:_FH.colorMask(_l32._iv,_l32._jv,_l32._kv,_l32.alpha);break;case _9a._RZ1:if(_l32){_FH.enable(_FH.STENCIL_TEST);}else {_FH.disable(_FH.STENCIL_TEST);}break;case _9a._d12:_T22._432=_032(_l32);_FH.stencilOp(_T22._432,_T22._532,_T22._632);break;case _9a._e12:_T22._532=_032(_l32);_FH.stencilOp(_T22._432, _T22._532,_T22._632);break;case _9a._WZ1:_T22._632=_032(_l32);_FH.stencilOp(_T22._432,_T22._532,_T22._632);break;case _9a._TZ1:_T22._2Y=_332(_l32);_FH.stencilFunc(_T22._2Y,_T22._8u,_T22._132);break;case _9a._ZZ1:_T22._8u=_l32;_FH.stencilFunc(_T22._2Y,_T22._8u,_T22._132);break;case _9a._f12:_T22._132=_l32;_FH.stencilFunc(_T22._2Y,_T22._8u,_T22._132);break;case _9a._g12:_FH.stencilMask(_l32);break;case _9a._ra:break;case _9a._pa:_W22=_t32(_l32);_FH.blendFuncSeparate(_U22,_V22,_W22,_X22);break;case _9a._qa:_X22=_t32(_l32); _FH.blendFuncSeparate(_U22,_V22,_W22,_X22);break;case _9a._h12:if(_l32!=_9a._xZ1){_FH.enable(_FH.CULL_FACE);_FH.frontFace((_l32===_9a._C12)?_FH.CW:_FH.CCW);}else {_FH.disable(_FH.CULL_FACE);}break;}}function _w32(){if(_G22&&_G22._WY1){_I22[_v22].Multiply(_I22[_u22],_I22[_s22]);_I22[_w22].Multiply(_I22[_v22],_I22[_t22]);var _x32=new Float32Array(16*_x22);for(var i=0;i<_x22;i++){_x32.set(_I22[i]._v6,i*16);}_FH.uniformMatrix4fv(_G22._WY1,_FH._y32,_x32);}}function _v32(_z32){if(_z32&_B22){if(_G22._YY1!==undefined){ _FH.uniform1i(_G22._YY1,_R22);}if(_G22._ZY1!==undefined){_FH.uniform1f(_G22._ZY1,_S22);}}if((_z32&_y22)&&(_G22._XY1!==undefined)){_FH.uniform4fv(_G22._XY1,_O22);}if(_z32&_z22){if(_G22._5Z1!==undefined){_FH.uniform4fv(_G22._5Z1,_K22);}if(_G22._4Z1!==undefined){_FH.uniform4fv(_G22._4Z1,_L22);}if(_G22._6Z1!==undefined){_FH.uniform4fv(_G22._6Z1,_M22);}}if((_z32&_A22)&&(_G22._7Z1!==undefined)){_FH.uniform4fv(_G22._7Z1,_N22);}}var _A32=[_FH.NEAREST_MIPMAP_NEAREST,_FH.LINEAR_MIPMAP_NEAREST,_FH.LINEAR_MIPMAP_NEAREST, _FH.NEAREST_MIPMAP_LINEAR,_FH.LINEAR_MIPMAP_LINEAR,_FH.LINEAR_MIPMAP_LINEAR,_FH.NEAREST_MIPMAP_LINEAR,_FH.LINEAR_MIPMAP_LINEAR,_FH.LINEAR_MIPMAP_LINEAR,];function _B32(_5Y,_C32){return _A32[(_C32*_9a._B12)+_5Y];}function _D32(_be,_w91){if(_be===null||_be===undefined){return;}var _E32=false;if(_be._zg!==undefined){_E32=(_be._zg&_G_1._J_1)!==0;}var _F32=_J22[_w91];if(_F32===null||_F32===undefined){return;}var _G32=_F32._H32;var _I32=_be._K_1._H32;if(_be._M_1===true||_G32[_9a._rC]!=_I32[_9a._rC]){_FH.texParameteri(_FH.TEXTURE_2D, _FH.TEXTURE_MAG_FILTER,(_G32[_9a._rC]==_9a._sC)?_FH.LINEAR:_FH.NEAREST);_I32[_9a._rC]=_G32[_9a._rC];}if(!_E32){if(_be._M_1===true||_G32[_9a._tC]!=_I32[_9a._tC]){_FH.texParameteri(_FH.TEXTURE_2D,_FH.TEXTURE_MIN_FILTER,(_G32[_9a._tC]==_9a._sC)?_FH.LINEAR:_FH.NEAREST);_I32[_9a._tC]=_G32[_9a._tC];}}else {if(_be._M_1===true||_G32[_9a._CC]!=_I32[_9a._CC]||_G32[_9a._tC]!=_I32[_9a._tC]){var _J32=_B32(_G32[_9a._tC],_G32[_9a._CC]);_FH.texParameteri(_FH.TEXTURE_2D,_FH.TEXTURE_MIN_FILTER,_J32);_I32[_9a._CC]=_G32[_9a._CC]; _I32[_9a._tC]=_G32[_9a._tC];}if(_1Y1){if(_G32[_9a._CC]==_9a._A12){if(_I32[_9a._MC]!=_G32[_9a._MC]){_I32[_9a._MC]=_G32[_9a._MC];var _K32=_FH.getParameter(_1Y1.MAX_TEXTURE_MAX_ANISOTROPY_EXT);var _L32=_I32[_9a._MC];_L32=Math.min(_L32,_K32);_FH.texParameterf(_FH.TEXTURE_2D,_1Y1.TEXTURE_MAX_ANISOTROPY_EXT,_L32);}}else {if(_I32[_9a._MC]!=1.0){_I32[_9a._MC]=1.0;_FH.texParameterf(_FH.TEXTURE_2D,_1Y1.TEXTURE_MAX_ANISOTROPY_EXT,1.0);}}}}if(_G32[_9a._xC]!=_I32[_9a._xC]){if(_be._M32){var _N32=(_G32[_9a._xC]==_9a._AC)?_FH.CLAMP_TO_EDGE:_FH.REPEAT; _FH.texParameteri(_FH.TEXTURE_2D,_FH.TEXTURE_WRAP_S,_N32);}_I32[_9a._xC]=_G32[_9a._xC];}if(_G32[_9a._zC]!=_I32[_9a._zC]){if(_be._M32){var _N32=(_G32[_9a._zC]==_9a._AC)?_FH.CLAMP_TO_EDGE:_FH.REPEAT;_FH.texParameteri(_FH.TEXTURE_2D,_FH.TEXTURE_WRAP_T,_N32);}_I32[_9a._zC]=_G32[_9a._zC];}_be._M_1=false;}var _O32=null;function _932(_P32){_FH.bindBuffer(_FH.ARRAY_BUFFER,_P32._Q32);if(_O32!=null){if(_O32._CY1===true){var _R32,_S32,_T32=_O32._rd.length;;for(_R32=0;_R32<_T32;++_R32){switch(_R32){case 0:_S32=_G22._RY1; break;case 1:_S32=_G22._TY1;break;case 2:_S32=_G22._UY1;break;case 3:_S32=_G22._SY1;break;default :_S32=-1;break;}if(_S32>=0){_FH.disableVertexAttribArray(_S32);}}}else {var _R32,_S32,_T32=_O32._rd.length;;for(_R32=0;_R32<_T32;++_R32){_S32=_G22.__Y1[_R32];if(_S32>=0){_FH.disableVertexAttribArray(_S32);}}}}var _U32=_P32._V32;_O32=_U32;if(_U32._CY1===true){var _R32,_S32,_W32,_T32=_U32._rd.length;for(_R32=0;_R32<_T32;++_R32){_W32=_U32._rd[_R32];switch(_R32){case 0:_S32=_G22._RY1;break;case 1:_S32=_G22._TY1;break; case 2:_S32=_G22._UY1;break;case 3:_S32=_G22._SY1;break;default :_S32=-1;break;}if(_S32>=0){_FH.enableVertexAttribArray(_S32);_FH.vertexAttribPointer(_S32,_W32._X32,_W32._Y32,_W32._Z32,_U32._xd,_W32.offset);}}}else {{var _R32,_S32,_W32,_T32=_U32._rd.length;var __32=_G22.__Y1.length;var _042=_U32._042[_G22._2Z1];if(_042===undefined){_042=[];var _142=[];for(_R32=0;_R32<_T32;++_R32){_W32=_U32._rd[_R32];var _td=_W32._td;_S32=-1;for(var _242=0;_242<__32;_242++){if(_142[_242]===undefined){var _342=_G22.__Y1[_242]; if(_G22._1Z1[_242]==_td){_S32=_342;_142[_242]=1;break;}else if(_G22._1Z1[_242]==4&&_td==2){_G22._1Z1[_242]=_FH.UNSIGNED_BYTE;_S32=_342;_142[_242]=1;break;}}}_042.push(_S32);}_U32._042[_G22._2Z1]=_042;}for(_R32=0;_R32<_T32;++_R32){_W32=_U32._rd[_R32];_S32=_042[_R32];if(_S32>=0){_FH.enableVertexAttribArray(_S32);_FH.vertexAttribPointer(_S32,_W32._X32,_W32._Y32,_W32._Z32,_U32._xd,_W32.offset);}}}}}/*@this {yyCommandBuilder} */this._sZ1=function(){var i,error,_z91,_A91,_442,_EC,texture,_Ca,_k9,_m4,enable, _542,_2_1;i=0;while(i<_C22.length){switch(_C22[i]){case _h22:{_G22=_C22[i+1];_542=_G22._iZ1;i+=2;_FH.useProgram(_G22);_w32();_v32(0xff);break;}case _b22:{_FH.viewport(_C22[i+1],_C22[i+2],_C22[i+3],_C22[i+4]);_FH.scissor(_C22[i+1],_C22[i+2],_C22[i+3],_C22[i+4]);i+=5;break;}case _d22:{var depthMask=_FH.getParameter(_FH.DEPTH_WRITEMASK);var colorMask=_FH.getParameter(_FH.COLOR_WRITEMASK);_FH.depthMask(true);_FH.colorMask(true,true,true,true);_m4=_C22[i+2];_FH.clearColor((_m4&0xff)/255.0,((_m4>>8)&0xff)/255.0, ((_m4>>16)&0xff)/255.0,((_m4>>24)&0xff)/255.0);_FH.clear(_C22[i+1]);_FH.depthMask(depthMask);_FH.colorMask(colorMask[0],colorMask[1],colorMask[2],colorMask[3]);i+=3;break;}case _922:{_I22[_t22]=_C22[i+1];_w32();i+=2;break;}case _a22:{_I22[_s22]=_C22[i+1];_w32();i+=2;break;}case _822:{_I22[_u22]=_C22[i+1];_w32();i+=2;break;}case _122:{texture=_C22[i+1];_EC=_C22[i+2];i+=3;if(texture===null){texture=_Y22;_FH.activeTexture(_FH.TEXTURE0+_EC);if(!_902(texture,_tz())){_ht(texture,_tz());_O8(texture,_tz()); }_FH.bindTexture(_FH.TEXTURE_2D,texture._ck1);_FH.uniform1i(_G22._VY1,0);_H22[_EC]=null;}else {_FH.activeTexture(_FH.TEXTURE0+_EC);if(!_902(texture,_tz())){_ht(texture,_tz());_O8(texture,_tz());}_FH.bindTexture(_FH.TEXTURE_2D,texture._ck1);_FH.uniform1i(_G22._VY1,0);_D32(texture,_EC);_H22[_EC]=texture;}break;}case _c22:{_Ca=_C22[i+1];i+=2;if(_Ca._642){_Ca._742();}_Ca._842=this._p3;_932(_Ca);}break;case _222:{_FH.drawArrays(_FH.TRIANGLES,_C22[i+1],_C22[i+2]);i+=3;break;}case _322:{_FH.drawArrays(_FH.TRIANGLE_FAN, _C22[i+1],_C22[i+2]);i+=3;break;}case _422:{_FH.drawArrays(_FH.TRIANGLE_STRIP,_C22[i+1],_C22[i+2]);i+=3;break;}case _522:{_FH.drawArrays(_FH.LINES,_C22[i+1],_C22[i+2]);i+=3;break;}case _622:{_FH.drawArrays(_FH.LINE_STRIP,_C22[i+1],_C22[i+2]);i+=3;break;}case _722:{_FH.drawArrays(_FH.POINTS,_C22[i+1],_C22[i+2]);i+=3;break;}case _e22:{_FH.bindFramebuffer(_FH.FRAMEBUFFER,_C22[i+1]);i+=2;break;}case _f22:{_FH.colorMask(_C22[i+2],_C22[i+3],_C22[i+4],_C22[i+1]);i+=5;break;}case _g22:{_FH.blendFunc(_t32(_C22[i+1]), _t32(_C22[i+2]));i+=3;break;}case _k22:{_u32(_C22[i+1],_C22[i+2]);i+=3;break;}case _i22:{_z91=_C22[i+1];_A91=_C22[i+2];i+=3;_2_1=_542[_542._kh[_z91]];switch(_2_1._oZ1["type"]){case _FH.INT:_FH.uniform1iv(_2_1.location,_A91);break;case _FH.INT_VEC2:_FH.uniform2iv(_2_1.location,_A91);break;case _FH.INT_VEC3:_FH.uniform3iv(_2_1.location,_A91);break;case _FH.INT_VEC4:_FH.uniform4iv(_2_1.location,_A91);break;case _FH.BOOL:_FH.uniform1iv(_2_1.location,_A91);break;case _FH.BOOL_VEC2:_FH.uniform2iv(_2_1.location, _A91);break;case _FH.BOOL_VEC3:_FH.uniform3iv(_2_1.location,_A91);break;case _FH.BOOL_VEC4:_FH.uniform4iv(_2_1.location,_A91);break;}break;}case _j22:{_z91=_C22[i+1];_A91=_C22[i+2];i+=3;_2_1=_542[_542._kh[_z91]];switch(_2_1._oZ1["type"]){case _FH.FLOAT:_FH.uniform1fv(_2_1.location,_A91);break;case _FH.FLOAT_VEC2:_FH.uniform2fv(_2_1.location,_A91);break;case _FH.FLOAT_VEC3:_FH.uniform3fv(_2_1.location,_A91);break;case _FH.FLOAT_VEC4:_FH.uniform4fv(_2_1.location,_A91);break;case _FH.FLOAT_MAT2:_FH.uniformMatrix2fv(_2_1.location, false,_A91);break;case _FH.FLOAT_MAT3:_FH.uniformMatrix3fv(_2_1.location,false,_A91);break;case _FH.FLOAT_MAT4:_FH.uniformMatrix4fv(_2_1.location,false,_A91);break;}break;}case _l22:{_EC=_C22[i+1];var state=_C22[i+2];var _fx=_C22[i+3];i+=4;var _F32=_J22[_EC];_F32._H32[state]=_fx;if(_H22[_EC]!=null){_FH.activeTexture(_FH.TEXTURE0+_EC);if(!_902(_H22[_EC],_tz())){_ht(_H22[_EC],_tz());_O8(_H22[_EC],_tz());}_FH.bindTexture(_FH.TEXTURE_2D,_H22[_EC]._ck1);}_D32(_H22[_EC],_EC);break;}case _m22:{_k9=_C22[i+1];_K22.set(_C22[i+2], _k9*4);_L22.set(_C22[i+3],_k9*4);_M22.set(_C22[i+4],_k9*4);i+=5;_v32(_z22);break;}case _n22:{_N22.set(_C22[i+1]);i+=2;_v32(_A22);break;}case _o22:{_O22.set(_C22[i+1]);i+=2;_v32(_y22);break;}case _p22:{_k9=_C22[i+1];enable=_C22[i+2];_m4=_C22[i+3];i+=4;if(enable){_M22.set(_m4,_k9*4);}else {var _nA=_k9*4;_M22[_nA+0]=0;_M22[_nA+1]=0;_M22[_nA+2]=0;_M22[_nA+3]=0;}_v32(_z22);break;}case _q22:{_R22=_C22[i+1];_S22=_C22[i+2];i+=3;_v32(_B22);break;}case _r22:{texture=_C22[i+1];var _N6=_C22[i+2];var _P6=_C22[i+3];var _37=_C22[i+4]; var _47=_C22[i+5];var canvas=_C22[i+6];var _Eh=_C22[i+7];i+=8;var _p_1=_e8._o_1(_Eh);switch(_Eh){case _bs:break;case _4k1:{var _m02=new Uint16Array(canvas.buffer);canvas=_m02;}break;case _2k1:{var _m02=new Uint16Array(canvas.buffer);canvas=_m02;}break;case _3k1:{var _m02=new Float32Array(canvas.buffer);canvas=_m02;}break;case _5k1:break;case _6k1:break;case _7k1:{var _m02=new Uint16Array(canvas.buffer);canvas=_m02;}break;case _8k1:{var _m02=new Float32Array(canvas.buffer);canvas=_m02;}break;}if(!_902(texture,_tz())){ _ht(texture,_tz());_O8(texture,_tz());}_FH.activeTexture(_FH.TEXTURE0);_FH.bindTexture(_FH.TEXTURE_2D,texture._ck1);_FH.texSubImage2D(_FH.TEXTURE_2D,0,_N6,_P6,_37,_47,_p_1._Eh,_p_1.type,canvas);if(_H22.length>0){if(_H22[0]!=null){_FH.bindTexture(_FH.TEXTURE_2D,_H22[0]._ck1);}}break;}}}_C22.length=0;};}/*@constructor */function _lY1(_942,_m8,_n8,_a42,_l_1,_b42,_z41,_7f1){var _FH=this._kY1;var _c42,_d42,_2V,_4V,_e42,_f42,_g42,_vC1,_h42;var _i42;Object.defineProperties(this,{_K_1:{get :function(){return _c42; }},_ck1:{get :function(){return _d42;},set :function(_B3){_d42=_B3;}},_C_1:{get :function(){return _2V;}},_D_1:{get :function(){return _4V;}},_M32:{get :function(){return _e42;}},Image:{get :function(){return _f42;}},_j42:{get :function(){return _g42;}},_zg:{get :function(){return _vC1;},set :function(_B3){_vC1=_B3;}},_M_1:{get :function(){return _i42;},set :function(_B3){_i42=_B3;}},_rd:{get :function(){return _h42;}},});(function(){_d42=_942;_2V=_m8;_4V=_n8;_e42=_a42;_f42=_l_1;_g42=_b42;_vC1=_z41;_h42=_7f1;_i42=false; if(_h42==undefined)_h42=_bs;_c42=new _nY1();if(_d42){_c42._L_1(_FH.TEXTURE_2D);}_vC1=_G_1._k42;if(_g42!==undefined&&_g42!==0){_vC1|=(_G_1._H_1|_G_1._l42);}})();}var _m42={_k42:0,_642:1,_n42:2,_o42:4,_p42:8,_q42:16,_H_1:32,_r42:64};Object.freeze(_m42);var _s42={_642:0,_t42:1,_u42:2,_n42:3,_H_1:4,_J_1:5,_l42:6,_v42:7,_r42:8,_o42:9,_w42:16,};Object.freeze(_s42);var _G_1={_k42:0,_642:(1<<_s42._642),_t42:(1<<_s42._t42),_u42:(1<<_s42._u42),_n42:(1<<_s42._n42),_H_1:(1<<_s42._H_1),_J_1:(1<<_s42._J_1),_l42:(1<<_s42._l42), _v42:(1<<_s42._v42),_r42:(1<<_s42._r42)};Object.freeze(_G_1);function _x42(_y42){var _z42=[];var _A42;(function(){if(_y42==undefined)_y42=32;_A42=~~(_y42/32);if(_A42==0)_A42=1;_z42=new Array(_A42);for(var i=0;i<_A42;i++){_z42[i]=0x0;}})();this._B42=function(){return _y42;};this._C42=function(_D42){if(_D42>=_y42)return;var _gl=~~(_D42/32);var _E42=_D42-(_gl*32);_z42[_gl]|=1<<_E42;};this._F42=function(_D42){if(_D42>=_y42)return;var _gl=~~(_D42/32);var _E42=_D42-(_gl*32);_z42[_gl]&=~(1<<_E42);};this._G42=function(_D42){ if(_D42>=_y42)return 0;var _gl=~~(_D42/32);var _H42=_D42-(_gl*32);var _ue=(_z42[_gl]>>_H42)&0x1;return _ue;};this._I42=function(){var i;for(i=0;i<(_A42-1);i++){_z42[i]=0xffffffff;}var _J42=_y42-(i*32);var __5;var _ud=1;for(__5=0;__5<_J42;__5++){_z42[i]|=_ud;_ud<<=1;}};this._K42=function(){for(var i=0;i<_A42;i++){_z42[i]=0x0;}};this._L42=function(){var i;for(i=0;i<_A42;i++){if(_z42[i]!=0)return 1;}return 0;};this._M42=function(_Cq){var _N42=_Cq._B42()>this._B42()?_Cq._B42():this._B42();var _O42=new _x42(_N42);for(var i=0; i<_N42;i++){var _P42=this._G42(i)|_Cq._G42(i);if(_P42==1){_O42._C42(i);}}return _O42;};this._Q42=function(_Cq){var _N42=_Cq._B42()>this._B42()?_Cq._B42():this._B42();var _O42=new _x42(_N42);for(var i=0;i<_N42;i++){var _P42=this._G42(i)&_Cq._G42(i);if(_P42==1){_O42._C42(i);}}return _O42;};}function _R42(_S42,_T42,_U42){var _V42=[];var _W42=[];var _X42=[];(function(){_V42=new Array(_S42);_W42=new Array(_T42*_U42);_X42=new Array(_T42);})();Object.defineProperties(this,{_Y42:{get :function(){return _V42;},set :function(_ue){ _V42=_ue;}},_Z42:{get :function(){return _W42;},set :function(_ue){_W42=_ue;}},__42:{get :function(){return _X42;},set :function(_ue){_X42=_ue;}},});}/*@constructor */function _WX1(_052,_152,_252,__12){var _FH=this._kY1;var _352=null;var _HC1=null;var _452=[];var _552;var _652=null;var _752=null;var _852=false;var _952=_252;(function(){_652=new _x42(64);_752=new _x42(64);_352=new _R42(_9a._i12,_052,_9a._z12);_HC1=new _R42(_9a._i12,_052,_9a._z12);_452=new Array(_152);for(var i=0;i<_152;i++){_452[i]=new _R42(_9a._i12,_052, _9a._z12);}_Z22();})();function _Z22(){_652._I42();_752._I42();_852=true;_552=0;_352._Y42[_9a._RB]=false;_352._Y42[_9a._412]=_9a._F12;_352._Y42[_9a._512]=_9a._H12;_352._Y42[_9a._UB]=true;_352._Y42[_9a._kC]=false;_352._Y42[_9a._na]=_9a._aa;_352._Y42[_9a._oa]=_9a._ca;_352._Y42[_9a._2C]=_9a._xZ1;_352._Y42[_9a._TB]=_9a._u12;_352._Y42[_9a._mC]=0;_352._Y42[_9a._ZC]=_9a._v12;_352._Y42[_9a._QB]=true;_352._Y42[_9a._YB]=false;_352._Y42[_9a._612]=false;_352._Y42[_9a._ZB]=0x00000000;_352._Y42[_9a._712]=_9a._N12; _352._Y42[_9a.__B]=0.0;_352._Y42[_9a._0C]=1.0;_352._Y42[_9a._812]=0;_352._Y42[_9a._912]=false;_352._Y42[_9a._a12]=false;_352._Y42[_9a._b12]=0x00000000;_352._Y42[_9a._c12]=_9a._N12;_352._Y42[_9a._iC]=_9a._P12|_9a._R12|_9a._Q12|_9a._S12;_352._Y42[_9a._RZ1]=false;_352._Y42[_9a._d12]=_9a._j12;_352._Y42[_9a._e12]=_9a._j12;_352._Y42[_9a._WZ1]=_9a._j12;_352._Y42[_9a._TZ1]=_9a._y12;_352._Y42[_9a._ZZ1]=0;_352._Y42[_9a._f12]=0xffffffff;_352._Y42[_9a._g12]=0xffffffff;_352._Y42[_9a._ra]=false;_352._Y42[_9a._pa]=_9a._aa; _352._Y42[_9a._qa]=_9a._ca;_352._Y42[_9a._h12]=0;var i;for(i=0;i<_9a._i12;i++){_HC1._Y42[i]=_352._Y42[i];}var index=0;for(i=0;i<_052;i++){_352._Z42[index+_9a._rC]=__12==true?_9a._sC:_9a._uC;_352._Z42[index+_9a._tC]=__12==true?_9a._sC:_9a._uC;_352._Z42[index+_9a._CC]=__12==true?_9a._sC:_9a._uC;_352._Z42[index+_9a._xC]=_9a._AC;_352._Z42[index+_9a._zC]=_9a._AC;_352._Z42[index+_9a._IC]=0;_352._Z42[index+_9a._KC]=0;_352._Z42[index+_9a._GC]=0;_352._Z42[index+_9a._MC]=0;_352._Z42[index+_9a._NC]=_9a._F_1; index+=_9a._z12;}for(i=0;i<(_9a._z12*_052);i++){_HC1._Z42[i]=_352._Z42[i];}for(i=0;i<_052;i++){_352.__42[i]=null;}_552=0;};this._kK=function(){_Z22();};this._a52=function(){return _652;};this._b52=function(){return _752;};this._c52=function(){return _852;};this._Ba=function(_Xb1,_Vn){if(_HC1._Y42[_Xb1]==_Vn)return;if(_352._Y42[_Xb1]!=_Vn){_652._C42(_Xb1);}else {_652._F42(_Xb1);}_HC1._Y42[_Xb1]=_Vn;_852=_652._L42()||_752._L42();};this._d52=function(_Xb1){if(_552<=0)return 0;if((_Xb1<0)||(_Xb1>=_9a._i12))return 0; return _452[_552-1]._Y42[_Xb1];};this._qC=function(_w91,_Xb1,_Vn){var index=(_w91*_9a._z12)+_Xb1;if(_HC1._Z42[index]==_Vn)return;if(_352._Z42[index]!=_Vn){_752._C42(index);}else {_752._F42(index);}_HC1._Z42[index]=_Vn;_852=_652._L42()||_752._L42();};this._d_1=function(_w91,_be){if((_w91<0)||(_w91>=_052))return;_352.__42[_w91]=_be;};this._v02=function(_be){if(_be!=null){for(var i=0;i<_052;i++){if(_352.__42[i]==_be){_352.__42[i]=null;}for(var __5=0;__5<_552;__5++){if(_452[__5].__42[i]==_be){_452[__5].__42[i]=null; }}}}};this._ma=function(_Xb1){return _HC1._Y42[_Xb1];};this._TC=function(_w91,_Xb1){return _HC1._Z42[(_w91*_9a._z12)+_Xb1];};this._e52=function(_w91){if((_w91<0)||(_w91>=_052))return null;return _352._X42[_w91];};this._UC=function(){_452[_552]._Y42=_HC1._Y42.slice();_452[_552]._Z42=_HC1._Z42.slice();_452[_552].__42=_352.__42.slice();if(_552<_152){_552++;}else {debug("GPU state stack has run out of space");}};this._VC=function(_f52){if(_552>0){_552--;}else {debug("Attempting to drop below bottom of GPU state stack"); }var i;for(i=0;i<_9a._i12;i++){this._Ba(i,_452[_552]._Y42[i]);}for(i=0;i<_052;i++){var __5;for(__5=0;__5<_9a._z12;__5++){this._qC(i,__5,_452[_552]._Z42[(i*_052)+__5]);}}if((_f52!=undefined)&&(_f52==true)){if(_e8){for(i=0;i<_052;i++){_e8._d_1(i,_452[_552].__42[i]);}}}};this._Dj1=function(){var i;if(_652._L42()){for(i=0;i<_9a._i12;i++){if(_652._G42(i)!=0){_952._Ba(i,_HC1._Y42[i]);_352._Y42[i]=_HC1._Y42[i];}}_652._K42();}if(_752._L42()){for(i=0;i<(_052*_9a._z12);i++){if(_752._G42(i)!=0){var _EC=~~(i/_9a._z12); var state=i-(_EC*_9a._z12);_952._qC(_EC,state,_HC1._Z42[i]);_352._Z42[i]=_HC1._Z42[i];}}_752._K42();}_852=false;};}/*@constructor */function _nY1(__12){var _FH=this._kY1;var _g52=[];Object.defineProperties(this,{_H32:{get :function(){return _g52;}}});(function(){if(__12){_g52[_9a._rC]=_9a._sC;_g52[_9a._tC]=_9a._sC;_g52[_9a._CC]=_9a._sC;}else {_g52[_9a._rC]=_9a._uC;_g52[_9a._tC]=_9a._uC;_g52[_9a._CC]=_9a._uC;}_g52[_9a._xC]=_9a._AC;_g52[_9a._zC]=_9a._AC;})();/*@this {yyTextureSamplerState} */this._L_1=function(_pt){ var _h52=_g52;_FH.texParameteri(_pt,_FH.TEXTURE_MAG_FILTER,(_h52[_9a._rC]==_9a._sC)?_FH.LINEAR:_FH.NEAREST);_FH.texParameteri(_pt,_FH.TEXTURE_MIN_FILTER,(_h52[_9a._tC]==_9a._sC)?_FH.LINEAR:_FH.NEAREST);_FH.texParameteri(_pt,_FH.TEXTURE_WRAP_S,(_h52[_9a._xC]==_9a._AC)?_FH.CLAMP_TO_EDGE:_FH.REPEAT);_FH.texParameteri(_pt,_FH.TEXTURE_WRAP_T,(_h52[_9a._zC]==_9a._AC)?_FH.CLAMP_TO_EDGE:_FH.REPEAT);};}/*@constructor */function _Jc(_ad,_i52,_j52){var _FH=this._kY1;this._k52=null;this._Xc=null;this._Q32=null; this._Ka=null;this._Ma=null;this._2d=null;this._Oa=null;this._V32=_i52;this._842=-1;this._Ia=0;this._l52=_ad;this._642=false;_m52(this);function _m52(_sl){_n52(_sl);_o52(_sl);if(_j52){_p52(_sl);}}function _n52(_sl){var _q52=_sl._V32._xd;_sl._k52=new ArrayBuffer(_ad*_q52);_sl._Xc=new Int8Array(_sl._k52);}function _p52(_sl){_sl._Q32=_FH.createBuffer();_FH.bindBuffer(_FH.ARRAY_BUFFER,_sl._Q32);_FH.bufferData(_FH.ARRAY_BUFFER,_sl._Xc,_FH.DYNAMIC_DRAW);}function _o52(_sl){var _r52=_sl._V32._rd;for(var _t6=0;_t6<_r52.length; _t6++){var _W32=_r52[_t6];switch(_W32._td){case _9a._Id:_sl._Ka=_s52(_W32._Y32,_sl._k52,_W32.offset);break;case _9a._Nd:_sl._Ma=_s52(_W32._Y32,_sl._k52,_W32.offset);break;case _9a._Xd:_sl._2d=_s52(_W32._Y32,_sl._k52,_W32.offset);break;case _9a._Vd:_sl._Oa=_s52(_W32._Y32,_sl._k52,_W32.offset);break;}}}function _s52(_t52,_u52,_v52){switch(_t52){case _FH.UNSIGNED_BYTE:return(new Int32Array(_u52,_v52));break;case _FH.FLOAT:return(new Float32Array(_u52,_v52));break;}return false;}/*@this {yyVBuffer} */this._w52=function(_B02){ if(_B02._Ha()===this._Ha()){var _7e=_B02._Ia*_B02._Ha();var offset=this._Ia*this._Ha();if((offset+_7e)>this._Xc.length){var _x52=new ArrayBuffer(this._Xc.length*2);var _Wc=new Int8Array(_x52);_Wc.set(this._Xc);this._Xc=_Wc;this._k52=_x52;_o52(this);}this._Xc.set(_B02._Xc.subarray(0,_7e),offset);this._Ia+=_B02._Ia;}};/*@this {yyVBuffer} */this._5e=function(){if(this._Iathis.max){var _B52=this.max*2;this.max=_B52;var _zd=new ArrayBuffer(_B52);var _Bd=new Int8Array(_zd);_Bd.set(this._Xc);this._k52=_zd;_o52(this);}this._Ia+=_A52;};/*@this {yyVBuffer} */this._Ha=function(){return this._V32._xd;};/*@this {yyVBuffer} */this._742=function(){ _FH.bindBuffer(_FH.ARRAY_BUFFER,this._Q32);var _C52=new Int8Array(this._k52,0,this._Ia*this._V32._xd);_FH.bufferSubData(_FH.ARRAY_BUFFER,0,_C52);this._Ia=0;this._642=false;};}/*@constructor */function _XX1(_252,_D52){var _FH=this._kY1;var _E52=[];var _F52=0,_D22=null,_G52=null,_H52=_9a._G02,_E22=null;var _952=_252;var _I52=_D52;/*@this {yyVBufferManager} */this._BY1=function(_Dd){if(_E52[_Dd]){debug("WARNING: Vertex format has already been registered\n");}else {_E52[_Dd]=new _Ck();}};/*@this {yyVBufferManager} */this._D02=function(_zc, _be,_B02,_C02){var size=_B02._Ia-_C02;switch(_zc){case _9a._Ea:_952._d_1(0,_be);_952._932(_B02);_952._b32(_C02,size);break;case _9a._Ec:_952._d_1(0,_be);_952._932(_B02);_952._d32(_C02,size);break;case _9a._Dc:_952._d_1(0,_be);_952._932(_B02);_952._e32(_C02,size);break;case _9a._Bc:_952._d_1(0,null);_952._932(_B02);_952._f32(_C02,size);break;case _9a._Cc:_952._d_1(0,null);_952._932(_B02);_952._g32(_C02,size);break;case _9a._Ac:_952._d_1(0,null);_952._932(_B02);_952._hH1(_C02,size);break;}};/*@this {yyVBufferManager} */this._Dj1=function(){ if(_G52==null){_I52._Dj1();return;}this._D02(_H52,_D22,_G52,_F52);_G52=_D22=null;_H52=_9a._G02;_I52._Dj1();};/*@this {yyVBufferManager} */this._Da=function(_zc,_J52,_Dd,_K52,_i52,_L52){var i,_M52,_Ca,_E4;_E4=_J52;if(_G52!=null){if((_G52._EY1==_Dd)&&((_G52._Ia+_K52)<=_G52._l52)&&(_D22==_E4)&&(_H52==_zc)&&((_zc!=_9a._Cc)&&(_zc!=_9a._Dc)&&(_zc!=_9a._Ec))&&(_I52._c52()==false)){return _G52;}else {var _N52=_G52;_e8._Dj1();if((_N52._EY1==_Dd)&&((_N52._Ia+_K52)<=_N52._l52)){_G52=_N52;_F52=_N52._Ia;_H52=_zc; _D22=_E4;return _G52;}}}else this._Dj1();_H52=_zc;_D22=_E4;_M52=_E52[_Dd]._Vk;for(i=_M52.length-1;i>=0;i--){_Ca=_M52[i];if(((_Ca._842+1)<_L52)&&(_Ca._Ia+_K52)<=_Ca._l52){_Ca._642=true;_F52=_Ca._Ia;_G52=_Ca;return _Ca;}}if(_K52<_Kc){_K52=_Kc;}_Ca=new _Jc(_K52,_i52,true);_Ca._EY1=_Dd;_Ca._642=true;_F52=_Ca._Ia;_G52=_Ca;_E52[_Dd]._Gf(_Ca);return _Ca;};}/*@constructor */function _mY1(){var _FH=this._kY1;var _O52=1,_P52=false,_h42=[],_Q52=0,_R52=0;this._042=[];Object.defineProperties(this,{_rd:{get :function(){ return _h42;},set :function(_ue){_h42=_ue;}},_wd:{get :function(){return _R52;},set :function(_ue){_R52=_ue;}},_xd:{get :function(){return _Q52;},set :function(_ue){_Q52=_ue;}},_CY1:{get :function(){return _P52;},set :function(_ue){_P52=_ue;}}});function _S52(_od,_nd,_T52){var _sd={offset:_Q52,type:_od,_td:_nd,_ud:_T52,_Y32:0,_X32:0,_Z32:false};return _sd;}function _Gf(_od,_nd,_T52){_R52|=_T52;var _W32=_S52(_od,_nd,_T52);switch(_od){case _9a._Od:case _9a._4e:_Q52+=4;_W32._Y32=_FH.UNSIGNED_BYTE;_W32._X32=4;_W32._Z32=true; break;case _9a._Zd:_Q52+=4;_W32._Y32=_FH.FLOAT;_W32._X32=1;_W32._Z32=false;break;case _9a._Jd:_Q52+=8;_W32._Y32=_FH.FLOAT;_W32._X32=2;_W32._Z32=false;break;case _9a._Ld:_Q52+=12;_W32._Y32=_FH.FLOAT;_W32._X32=3;_W32._Z32=false;break;case _9a._2e:_Q52+=16;_W32._Y32=_FH.FLOAT;_W32._X32=4;_W32._Z32=false;break;}_h42.push(_W32);}/*@this {yyVertexFormat} */this._U52=function(){_Gf(_9a._Jd,_9a._Id,_O52);_O52=_O52<<1;};/*@this {yyVertexFormat} */this._xY1=function(){_Gf(_9a._Ld,_9a._Id,_O52);_O52=_O52<<1;}; /*@this {yyVertexFormat} */this._yY1=function(){_Gf(_9a._Od,_9a._Nd,_O52);_O52=_O52<<1;};/*@this {yyVertexFormat} */this._AY1=function(){_Gf(_9a._Ld,_9a._Xd,_O52);_O52=_O52<<1;};/*@this {yyVertexFormat} */this._zY1=function(){_Gf(_9a._Jd,_9a._Vd,_O52);_O52=_O52<<1;};/*@this {yyVertexFormat} */this._V52=function(_od,_nd){if((_od<_9a._Zd)||(_od>_9a._S02)){debug("ERROR vertex_format_add_custom: illegal types");return;}if((_nd<_9a._Id)||(_nd>_9a._R02)){debug("ERROR vertex_format_add_custom: illegal usage"); return;}_Gf(_od,_nd,_O52);_O52=_O52<<1;};/*@this {yyVertexFormat} */this._zr1=function(_7f1){if(_h42.length!==_7f1._rd.length){return false;}for(var i=0;i<_h42.length;i++){var _W52=_h42[i];var _X52=_7f1._rd[i];if((_W52.offset!==_X52.offset)||(_W52.type!==_X52.type)||(_W52._td!==_X52._td)||(_W52._ud!==_X52._ud)||(_W52._Y32!==_X52._Y32)||(_W52._X32!==_X52._X32)){return false;}}return true;};}var _Y52=null;try{_Y52=new _Z52.__52(new _Z52._062(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127, 127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32, 134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{})._Kg;}catch(e){}/* * Constructs a 64 bit two's-complement integer, given its low and high 32 bit values as *signed* integers. * See the from* functions below for more convenient ways of constructing Longs. * @exports Long * @class A Long class for representing a 64 bit two's-complement integer value. * @param {number} low The low (signed) 32 bits of the long * @param {number} high The high (signed) 32 bits of the long * @param {boolean=} unsigned Whether unsigned or not, defaults to signed * @constructor */function Long(_Bh1, _0i1,_162){/* * The low 32 bits as a signed value. * @type {number} */this._Bh1=_Bh1|0;/* * The high 32 bits as a signed value. * @type {number} */this._0i1=_0i1|0;/* * Whether unsigned or not. * @type {boolean} */this._162=!!_162;}/* * An indicator used to reliably determine if an object is a Long or not. * @type {boolean} * @const * @private */Long.prototype.__isLong__;Object.defineProperty(Long.prototype,"__isLong__",{value:true});/* * @function * @param {*} obj Object * @returns {boolean} * @inner */function _262(_Pg){ return(_Pg&&_Pg["__isLong__"])===true;}/* * Tests if the specified object is a Long. * @function * @param {*} obj Object * @returns {boolean} */Long._262=_262;/* * A cache of the Long representations of small integer values. * @type {!Object} * @inner */var _362={};/* * A cache of the Long representations of small unsigned integer values. * @type {!Object} * @inner */var _462={};/* * @param {number} value * @param {boolean=} unsigned * @returns {!Long} * @inner */function _562(value, _162){var _Pg,_662,_p8;if(_162){value>>>=0;if(_p8=(0<=value&&value<256)){_662=_462[value];if(_662)return _662;}_Pg=_762(value,(value|0)<0?-1:0,true);if(_p8)_462[value]=_Pg;return _Pg;}else {value|=0;if(_p8=(-128<=value&&value<128)){_662=_362[value];if(_662)return _662;}_Pg=_762(value,value<0?-1:0,false);if(_p8)_362[value]=_Pg;return _Pg;}}/* * Returns a Long representing the given 32 bit integer value. * @function * @param {number} value The 32 bit integer in question * @param {boolean=} unsigned Whether unsigned or not, defaults to signed * @returns {!Long} The corresponding Long value */Long._562=_562; /* * @param {number} value * @param {boolean=} unsigned * @returns {!Long} * @inner */function _862(value,_162){if(isNaN(value))return _162?_962:ZERO;if(_162){if(value<0)return _962;if(value>=_a62)return _b62;}else {if(value<=-_c62)return MIN_VALUE;if(value+1>=_c62)return MAX_VALUE;}if(value<0)return _862(-value,_162)._d62();return _762((value%_e62)|0,(value/_e62)|0,_162);}/* * Returns a Long representing the given value, provided that it is a finite number. Otherwise, zero is returned. * @function * @param {number} value The number in question * @param {boolean=} unsigned Whether unsigned or not, defaults to signed * @returns {!Long} The corresponding Long value */Long._862=_862; /* * @param {number} lowBits * @param {number} highBits * @param {boolean=} unsigned * @returns {!Long} * @inner */function _762(_zh1,_yh1,_162){return new Long(_zh1,_yh1,_162);}/* * Returns a Long representing the 64 bit integer that comes by concatenating the given low and high bits. Each is * assumed to use 32 bits. * @function * @param {number} lowBits The low 32 bits * @param {number} highBits The high 32 bits * @param {boolean=} unsigned Whether unsigned or not, defaults to signed * @returns {!Long} The corresponding Long value */Long._762=_762; /* * @function * @param {number} base * @param {number} exponent * @returns {number} * @inner */var _f62=Math.pow;/* * @param {string} str * @param {(boolean|number)=} unsigned * @param {number=} radix * @returns {!Long} * @inner */function _g62(_Tl,_162,_h62){if(_Tl.includes('.')){_Tl=_Tl.split('.')[0];}if(_Tl.length===0)throw Error('empty string');if(_Tl==="NaN"||_Tl==="Infinity"||_Tl==="+Infinity"||_Tl==="-Infinity")return ZERO;if(!_8Y.test(_Tl))_H4("int64 : unable to convert string \""+_Tl+"\" to int64"); if(typeof _162==='number'){_h62=_162,_162=false;}else {_162=!!_162;}_h62=_h62||10;if(_h62<2||36<_h62)throw _WE('radix');var _gh;if((_gh=_Tl.indexOf('-'))>0)throw Error('interior hyphen');else if(_gh===0){return _g62(_Tl.substring(1),_162,_h62)._d62();}var _i62=_862(_f62(_h62,8));var result=ZERO;for(var i=0;i<_Tl.length;i+=8){var size=Math.min(8,_Tl.length-i),value=parseInt(_Tl.substring(i,i+size),_h62);if(size<8){var power=_862(_f62(_h62,size));result=result._bY(power).add(_862(value));}else {result=result._bY(_i62); result=result.add(_862(value));}}result._162=_162;return result;}/* * Returns a Long representation of the given string, written using the specified radix. * @function * @param {string} str The textual representation of the Long * @param {(boolean|number)=} unsigned Whether unsigned or not, defaults to signed * @param {number=} radix The radix in which the text is written (2-36), defaults to 10 * @returns {!Long} The corresponding Long value */Long._g62=_g62;/* * @function * @param {!Long|number|string|!{low: number, high: number, unsigned: boolean}} val * @param {boolean=} unsigned * @returns {!Long} * @inner */function _4Y(_ue, _162){if(typeof _ue==='number')return _862(_ue,_162);if(typeof _ue==='string')return _g62(_ue,_162);return _762(_ue._Bh1,_ue._0i1,typeof _162==='boolean'?_162:_ue._162);}/* * Converts the specified value to a Long using the appropriate from* function for its type. * @function * @param {!Long|number|string|!{low: number, high: number, unsigned: boolean}} val Value * @param {boolean=} unsigned Whether unsigned or not, defaults to signed * @returns {!Long} */Long._4Y=_4Y;/* * @type {number} * @const * @inner */var _j62=1<<16; /* * @type {number} * @const * @inner */var _k62=1<<24;/* * @type {number} * @const * @inner */var _e62=_j62*_j62;/* * @type {number} * @const * @inner */var _a62=_e62*_e62;/* * @type {number} * @const * @inner */var _c62=_a62/2;/* * @type {!Long} * @const * @inner */var _l62=_562(_k62);/* * @type {!Long} * @inner */var ZERO=_562(0);/* * Signed zero. * @type {!Long} */Long.ZERO=ZERO;/* * @type {!Long} * @inner */var _962=_562(0,true);/* * Unsigned zero. * @type {!Long} */Long._962=_962; /* * @type {!Long} * @inner */var ONE=_562(1);/* * Signed one. * @type {!Long} */Long.ONE=ONE;/* * @type {!Long} * @inner */var _m62=_562(1,true);/* * Unsigned one. * @type {!Long} */Long._m62=_m62;/* * @type {!Long} * @inner */var _n62=_562(-1);/* * Signed negative one. * @type {!Long} */Long._n62=_n62;/* * @type {!Long} * @inner */var MAX_VALUE=_762(0xFFFFFFFF|0,0x7FFFFFFF|0,false);/* * Maximum signed value. * @type {!Long} */Long.MAX_VALUE=MAX_VALUE;/* * @type {!Long} * @inner */var _b62=_762(0xFFFFFFFF|0, 0xFFFFFFFF|0,true);/* * Maximum unsigned value. * @type {!Long} */Long._b62=_b62;/* * @type {!Long} * @inner */var MIN_VALUE=_762(0,0x80000000|0,false);/* * Minimum signed value. * @type {!Long} */Long.MIN_VALUE=MIN_VALUE;/* * @alias Long.prototype * @inner */var _o62=Long.prototype;/* * Converts the Long to a 32 bit integer, assuming it is a 32 bit integer. * @returns {number} */_o62._p62=function _p62(){return this._162?this._Bh1>>>0:this._Bh1;};/* * Converts the Long to a the nearest floating-point representation of this value (double, 53 bit mantissa). * @returns {number} */_o62._aY=function _aY(){ if(this._162)return((this._0i1>>>0)*_e62)+(this._Bh1>>>0);return this._0i1*_e62+(this._Bh1>>>0);};/* * Converts the Long to a string written in the specified radix. * @param {number=} radix Radix (2-36), defaults to 10 * @returns {string} * @override * @throws {RangeError} If `radix` is out of range */_o62.toString=function toString(_h62){_h62=_h62||10;if(_h62<2||36<_h62)throw _WE('radix');if(this._q62())return '0';if(this._r62()){if(this._s62(MIN_VALUE)){var _t62=_862(_h62),_aF=this._aF(_t62), _u62=_aF._bY(_t62).sub(this);return _aF.toString(_h62)+_u62._p62().toString(_h62);}else return '-'+this._d62().toString(_h62);}var _i62=_862(_f62(_h62,6),this._162),_v62=this;var result='';while(true){var _w62=_v62._aF(_i62),_x62=_v62.sub(_w62._bY(_i62))._p62()>>>0,_y62=_x62.toString(_h62);_v62=_w62;if(_v62._q62())return _y62+result;else {while(_y62.length<6)_y62='0'+_y62;result=''+_y62+result;}}};/* * Gets the high 32 bits as a signed integer. * @returns {number} Signed high bits */_o62._z62=function _z62(){ return this._0i1;};/* * Gets the high 32 bits as an unsigned integer. * @returns {number} Unsigned high bits */_o62._A62=function _A62(){return this._0i1>>>0;};/* * Gets the low 32 bits as a signed integer. * @returns {number} Signed low bits */_o62._B62=function _B62(){return this._Bh1;};/* * Gets the low 32 bits as an unsigned integer. * @returns {number} Unsigned low bits */_o62._C62=function _C62(){return this._Bh1>>>0;};/* * Gets the number of bits needed to represent the absolute value of this Long. * @returns {number} */_o62._D62=function _D62(){ if(this._r62())return this._s62(MIN_VALUE)?64:this._d62()._D62();var _ue=this._0i1!=0?this._0i1:this._Bh1;for(var _ud=31;_ud>0;_ud--)if((_ue&(1<<_ud))!=0)break;return this._0i1!=0?_ud+33:_ud+1;};/* * Tests if this Long's value equals zero. * @returns {boolean} */_o62._q62=function _q62(){return this._0i1===0&&this._Bh1===0;};/* * Tests if this Long's value equals zero. This is an alias of {@link Long#isZero}. * @returns {boolean} */_o62._E62=_o62._q62;/* * Tests if this Long's value is negative. * @returns {boolean} */_o62._r62=function _r62(){ return !this._162&&this._0i1<0;};/* * Tests if this Long's value is positive. * @returns {boolean} */_o62._F62=function _F62(){return this._162||this._0i1>=0;};/* * Tests if this Long's value is odd. * @returns {boolean} */_o62._G62=function _G62(){return(this._Bh1&1)===1;};/* * Tests if this Long's value is even. * @returns {boolean} */_o62._H62=function _H62(){return(this._Bh1&1)===0;};/* * Tests if this Long's value equals the specified's. * @param {!Long|number|string} other Other value * @returns {boolean} */_o62._I62=function _I62(other){ if(!_262(other))other=_4Y(other);if(this._162!==other._162&&(this._0i1>>>31)===1&&(other._0i1>>>31)===1)return false;return this._0i1===other._0i1&&this._Bh1===other._Bh1;};/* * Tests if this Long's value equals the specified's. This is an alias of {@link Long#equals}. * @function * @param {!Long|number|string} other Other value * @returns {boolean} */_o62._s62=_o62._I62;/* * Tests if this Long's value differs from the specified's. * @param {!Long|number|string} other Other value * @returns {boolean} */_o62._J62=function _J62(other){ return !this._s62(other);};/* * Tests if this Long's value differs from the specified's. This is an alias of {@link Long#notEquals}. * @function * @param {!Long|number|string} other Other value * @returns {boolean} */_o62._K62=_o62._J62;/* * Tests if this Long's value differs from the specified's. This is an alias of {@link Long#notEquals}. * @function * @param {!Long|number|string} other Other value * @returns {boolean} */_o62._L62=_o62._J62;/* * Tests if this Long's value is less than the specified's. * @param {!Long|number|string} other Other value * @returns {boolean} */_o62._M62=function _M62(other){ return this._N62(other)<0;};/* * Tests if this Long's value is less than the specified's. This is an alias of {@link Long#lessThan}. * @function * @param {!Long|number|string} other Other value * @returns {boolean} */_o62._O62=_o62._M62;/* * Tests if this Long's value is less than or equal the specified's. * @param {!Long|number|string} other Other value * @returns {boolean} */_o62._P62=function _P62(other){return this._N62(other)<=0;};/* * Tests if this Long's value is less than or equal the specified's. This is an alias of {@link Long#lessThanOrEqual}. * @function * @param {!Long|number|string} other Other value * @returns {boolean} */_o62._Q62=_o62._P62; /* * Tests if this Long's value is less than or equal the specified's. This is an alias of {@link Long#lessThanOrEqual}. * @function * @param {!Long|number|string} other Other value * @returns {boolean} */_o62._R62=_o62._P62;/* * Tests if this Long's value is greater than the specified's. * @param {!Long|number|string} other Other value * @returns {boolean} */_o62._S62=function _S62(other){return this._N62(other)>0;};/* * Tests if this Long's value is greater than the specified's. This is an alias of {@link Long#greaterThan}. * @function * @param {!Long|number|string} other Other value * @returns {boolean} */_o62._T62=_o62._S62; /* * Tests if this Long's value is greater than or equal the specified's. * @param {!Long|number|string} other Other value * @returns {boolean} */_o62._U62=function _U62(other){return this._N62(other)>=0;};/* * Tests if this Long's value is greater than or equal the specified's. This is an alias of {@link Long#greaterThanOrEqual}. * @function * @param {!Long|number|string} other Other value * @returns {boolean} */_o62._V62=_o62._U62;/* * Tests if this Long's value is greater than or equal the specified's. This is an alias of {@link Long#greaterThanOrEqual}. * @function * @param {!Long|number|string} other Other value * @returns {boolean} */_o62._EH=_o62._U62; /* * Compares this Long's value with the specified's. * @param {!Long|number|string} other Other value * @returns {number} 0 if they are the same, 1 if the this is greater and -1 * if the given one is greater */_o62._W62=function _W62(other){if(!_262(other))other=_4Y(other);if(this._s62(other))return 0;var _X62=this._r62(),_Y62=other._r62();if(_X62&&!_Y62)return -1;if(!_X62&&_Y62)return 1;if(!this._162)return this.sub(other)._r62()?-1:1;return(other._0i1>>>0)>(this._0i1>>>0)||(other._0i1===this._0i1&&(other._Bh1>>>0)>(this._Bh1>>>0))?-1:1; };/* * Compares this Long's value with the specified's. This is an alias of {@link Long#compare}. * @function * @param {!Long|number|string} other Other value * @returns {number} 0 if they are the same, 1 if the this is greater and -1 * if the given one is greater */_o62._N62=_o62._W62;/* * Negates this Long's value. * @returns {!Long} Negated Long */_o62._Z62=function _Z62(){if(!this._162&&this._s62(MIN_VALUE))return MIN_VALUE;return this.not().add(ONE);};/* * Negates this Long's value. This is an alias of {@link Long#negate}. * @function * @returns {!Long} Negated Long */_o62._d62=_o62._Z62; /* * Returns the sum of this and the specified Long. * @param {!Long|number|string} addend Addend * @returns {!Long} Sum */_o62.add=function add(__62){if(!_262(__62))__62=_4Y(__62);var _072=this._0i1>>>16;var _172=this._0i1&0xFFFF;var _272=this._Bh1>>>16;var _372=this._Bh1&0xFFFF;var _472=__62._0i1>>>16;var _572=__62._0i1&0xFFFF;var _672=__62._Bh1>>>16;var _772=__62._Bh1&0xFFFF;var _872=0,_972=0,_a72=0,_b72=0;_b72+=_372+_772;_a72+=_b72>>>16;_b72&=0xFFFF;_a72+=_272+_672;_972+=_a72>>>16;_a72&=0xFFFF; _972+=_172+_572;_872+=_972>>>16;_972&=0xFFFF;_872+=_072+_472;_872&=0xFFFF;return _762((_a72<<16)|_b72,(_872<<16)|_972,this._162);};/* * Returns the difference of this and the specified Long. * @param {!Long|number|string} subtrahend Subtrahend * @returns {!Long} Difference */_o62.subtract=function subtract(_c72){if(!_262(_c72))_c72=_4Y(_c72);return this.add(_c72._d62());};/* * Returns the difference of this and the specified Long. This is an alias of {@link Long#subtract}. * @function * @param {!Long|number|string} subtrahend Subtrahend * @returns {!Long} Difference */_o62.sub=_o62.subtract; /* * Returns the product of this and the specified Long. * @param {!Long|number|string} multiplier Multiplier * @returns {!Long} Product */_o62._d72=function _d72(_e72){if(this._q62())return ZERO;if(!_262(_e72))_e72=_4Y(_e72);if(_Y52){var _Bh1=_Y52._bY(this._Bh1,this._0i1,_e72._Bh1,_e72._0i1);return _762(_Bh1,_Y52._f72(),this._162);}if(_e72._q62())return ZERO;if(this._s62(MIN_VALUE))return _e72._G62()?MIN_VALUE:ZERO;if(_e72._s62(MIN_VALUE))return this._G62()?MIN_VALUE:ZERO;if(this._r62()){if(_e72._r62())return this._d62()._bY(_e72._d62()); else return this._d62()._bY(_e72)._d62();}else if(_e72._r62())return this._bY(_e72._d62())._d62();if(this._O62(_l62)&&_e72._O62(_l62))return _862(this._aY()*_e72._aY(),this._162);var _072=this._0i1>>>16;var _172=this._0i1&0xFFFF;var _272=this._Bh1>>>16;var _372=this._Bh1&0xFFFF;var _472=_e72._0i1>>>16;var _572=_e72._0i1&0xFFFF;var _672=_e72._Bh1>>>16;var _772=_e72._Bh1&0xFFFF;var _872=0,_972=0,_a72=0,_b72=0;_b72+=_372*_772;_a72+=_b72>>>16;_b72&=0xFFFF;_a72+=_272*_772;_972+=_a72>>>16;_a72&=0xFFFF;_a72+=_372*_672; _972+=_a72>>>16;_a72&=0xFFFF;_972+=_172*_772;_872+=_972>>>16;_972&=0xFFFF;_972+=_272*_672;_872+=_972>>>16;_972&=0xFFFF;_972+=_372*_572;_872+=_972>>>16;_972&=0xFFFF;_872+=_072*_772+_172*_672+_272*_572+_372*_472;_872&=0xFFFF;return _762((_a72<<16)|_b72,(_872<<16)|_972,this._162);};/* * Returns the product of this and the specified Long. This is an alias of {@link Long#multiply}. * @function * @param {!Long|number|string} multiplier Multiplier * @returns {!Long} Product */_o62._bY=_o62._d72; /* * Returns this Long divided by the specified. The result is signed if this Long is signed or * unsigned if this Long is unsigned. * @param {!Long|number|string} divisor Divisor * @returns {!Long} Quotient */_o62._g72=function _g72(_6J){if(!_262(_6J))_6J=_4Y(_6J);if(_6J._q62())throw Error('division by zero');if(_Y52){if(!this._162&&this._0i1===-0x80000000&&_6J._Bh1===-1&&_6J._0i1===-1){return this;}var _Bh1=(this._162?_Y52._h72:_Y52._i72)(this._Bh1,this._0i1,_6J._Bh1,_6J._0i1);return _762(_Bh1, _Y52._f72(),this._162);}if(this._q62())return this._162?_962:ZERO;var _j72,_v62,_pb;if(!this._162){if(this._s62(MIN_VALUE)){if(_6J._s62(ONE)||_6J._s62(_n62))return MIN_VALUE;else if(_6J._s62(MIN_VALUE))return ONE;else {var _k72=this._l72(1);_j72=_k72._aF(_6J)._m72(1);if(_j72._s62(ZERO)){return _6J._r62()?ONE:_n62;}else {_v62=this.sub(_6J._bY(_j72));_pb=_j72.add(_v62._aF(_6J));return _pb;}}}else if(_6J._s62(MIN_VALUE))return this._162?_962:ZERO;if(this._r62()){if(_6J._r62())return this._d62()._aF(_6J._d62()); return this._d62()._aF(_6J)._d62();}else if(_6J._r62())return this._aF(_6J._d62())._d62();_pb=ZERO;}else {if(!_6J._162)_6J=_6J._n72();if(_6J._T62(this))return _962;if(_6J._T62(this._o72(1)))return _m62;_pb=_962;}_v62=this;while(_v62._V62(_6J)){_j72=Math.max(1,Math.floor(_v62._aY()/_6J._aY()));var log2=Math.ceil(Math.log(_j72)/Math.LN2),_qi=(log2<=48)?1:_f62(2,log2-48),_p72=_862(_j72),_q72=_p72._bY(_6J);while(_q72._r62()||_q72._T62(_v62)){_j72-=_qi;_p72=_862(_j72,this._162);_q72=_p72._bY(_6J);}if(_p72._q62())_p72=ONE; _pb=_pb.add(_p72);_v62=_v62.sub(_q72);}return _pb;};/* * Returns this Long divided by the specified. This is an alias of {@link Long#divide}. * @function * @param {!Long|number|string} divisor Divisor * @returns {!Long} Quotient */_o62._aF=_o62._g72;/* * Returns this Long modulo the specified. * @param {!Long|number|string} divisor Divisor * @returns {!Long} Remainder */_o62._r72=function _r72(_6J){if(!_262(_6J))_6J=_4Y(_6J);if(_Y52){var _Bh1=(this._162?_Y52._s72:_Y52._t72)(this._Bh1, this._0i1,_6J._Bh1,_6J._0i1);return _762(_Bh1,_Y52._f72(),this._162);}return this.sub(this._aF(_6J)._bY(_6J));};/* * Returns this Long modulo the specified. This is an alias of {@link Long#modulo}. * @function * @param {!Long|number|string} divisor Divisor * @returns {!Long} Remainder */_o62._cY=_o62._r72;/* * Returns this Long modulo the specified. This is an alias of {@link Long#modulo}. * @function * @param {!Long|number|string} divisor Divisor * @returns {!Long} Remainder */_o62._v62=_o62._r72; /* * Returns the bitwise NOT of this Long. * @returns {!Long} */_o62.not=function not(){return _762(~this._Bh1,~this._0i1,this._162);};/* * Returns the bitwise AND of this Long and the specified. * @param {!Long|number|string} other Other Long * @returns {!Long} */_o62._fY=function _fY(other){if(!_262(other))other=_4Y(other);return _762(this._Bh1&other._Bh1,this._0i1&other._0i1,this._162);};/* * Returns the bitwise OR of this Long and the specified. * @param {!Long|number|string} other Other Long * @returns {!Long} */_o62._gY=function _gY(other){ if(!_262(other))other=_4Y(other);return _762(this._Bh1|other._Bh1,this._0i1|other._0i1,this._162);};/* * Returns the bitwise XOR of this Long and the given one. * @param {!Long|number|string} other Other Long * @returns {!Long} */_o62._hY=function _hY(other){if(!_262(other))other=_4Y(other);return _762(this._Bh1^other._Bh1,this._0i1^other._0i1,this._162);};/* * Returns this Long with bits shifted to the left by the given amount. * @param {number|!Long} numBits Number of bits * @returns {!Long} Shifted Long */_o62._jY=function _jY(_N42){ if(_262(_N42))_N42=_N42._p62();if((_N42&=63)===0)return this;else if(_N42<32)return _762(this._Bh1<<_N42,(this._0i1<<_N42)|(this._Bh1>>>(32-_N42)),this._162);else return _762(0,this._Bh1<<(_N42-32),this._162);};/* * Returns this Long with bits shifted to the left by the given amount. This is an alias of {@link Long#shiftLeft}. * @function * @param {number|!Long} numBits Number of bits * @returns {!Long} Shifted Long */_o62._m72=_o62._jY;/* * Returns this Long with bits arithmetically shifted to the right by the given amount. * @param {number|!Long} numBits Number of bits * @returns {!Long} Shifted Long */_o62._kY=function _kY(_N42){ if(_262(_N42))_N42=_N42._p62();if((_N42&=63)===0)return this;else if(_N42<32)return _762((this._Bh1>>>_N42)|(this._0i1<<(32-_N42)),this._0i1>>_N42,this._162);else return _762(this._0i1>>(_N42-32),this._0i1>=0?0:-1,this._162);};/* * Returns this Long with bits arithmetically shifted to the right by the given amount. This is an alias of {@link Long#shiftRight}. * @function * @param {number|!Long} numBits Number of bits * @returns {!Long} Shifted Long */_o62._l72=_o62._kY;/* * Returns this Long with bits logically shifted to the right by the given amount. * @param {number|!Long} numBits Number of bits * @returns {!Long} Shifted Long */_o62._u72=function _u72(_N42){ if(_262(_N42))_N42=_N42._p62();_N42&=63;if(_N42===0)return this;else {var _0i1=this._0i1;if(_N42<32){var _Bh1=this._Bh1;return _762((_Bh1>>>_N42)|(_0i1<<(32-_N42)),_0i1>>>_N42,this._162);}else if(_N42===32)return _762(_0i1,0,this._162);else return _762(_0i1>>>(_N42-32),0,this._162);}};/* * Returns this Long with bits logically shifted to the right by the given amount. This is an alias of {@link Long#shiftRightUnsigned}. * @function * @param {number|!Long} numBits Number of bits * @returns {!Long} Shifted Long */_o62._o72=_o62._u72; /* * Returns this Long with bits logically shifted to the right by the given amount. This is an alias of {@link Long#shiftRightUnsigned}. * @function * @param {number|!Long} numBits Number of bits * @returns {!Long} Shifted Long */_o62._v72=_o62._u72;/* * Converts this Long to signed. * @returns {!Long} Signed long */_o62._w72=function _w72(){if(!this._162)return this;return _762(this._Bh1,this._0i1,false);};/* * Converts this Long to unsigned. * @returns {!Long} Unsigned long */_o62._n72=function _n72(){ if(this._162)return this;return _762(this._Bh1,this._0i1,true);};/* * Converts this Long to its byte representation. * @param {boolean=} le Whether little or big endian, defaults to big endian * @returns {!Array.} Byte representation */_o62._x72=function _x72(_R62){return _R62?this._y72():this._z72();};/* * Converts this Long to its little endian byte representation. * @returns {!Array.} Little endian byte representation */_o62._y72=function _y72(){var _Ah1=this._0i1,_Qs1=this._Bh1; return [_Qs1&0xff,_Qs1>>>8&0xff,_Qs1>>>16&0xff,_Qs1>>>24,_Ah1&0xff,_Ah1>>>8&0xff,_Ah1>>>16&0xff,_Ah1>>>24];};/* * Converts this Long to its big endian byte representation. * @returns {!Array.} Big endian byte representation */_o62._z72=function _z72(){var _Ah1=this._0i1,_Qs1=this._Bh1;return [_Ah1>>>24,_Ah1>>>16&0xff,_Ah1>>>8&0xff,_Ah1&0xff,_Qs1>>>24,_Qs1>>>16&0xff,_Qs1>>>8&0xff,_Qs1&0xff];};/* * Creates a Long from its byte representation. * @param {!Array.} bytes Byte representation * @param {boolean=} unsigned Whether unsigned or not, defaults to signed * @param {boolean=} le Whether little or big endian, defaults to big endian * @returns {Long} The corresponding Long value */Long._A72=function _A72(_3h, _162,_R62){return _R62?Long._B72(_3h,_162):Long._C72(_3h,_162);};/* * Creates a Long from its little endian byte representation. * @param {!Array.} bytes Little endian byte representation * @param {boolean=} unsigned Whether unsigned or not, defaults to signed * @returns {Long} The corresponding Long value */Long._B72=function _B72(_3h,_162){return new Long(_3h[0]|_3h[1]<<8|_3h[2]<<16|_3h[3]<<24,_3h[4]|_3h[5]<<8|_3h[6]<<16|_3h[7]<<24,_162);};/* * Creates a Long from its big endian byte representation. * @param {!Array.} bytes Big endian byte representation * @param {boolean=} unsigned Whether unsigned or not, defaults to signed * @returns {Long} The corresponding Long value */Long._C72=function _C72(_3h, _162){return new Long(_3h[4]<<24|_3h[5]<<16|_3h[6]<<8|_3h[7],_3h[0]<<24|_3h[1]<<16|_3h[2]<<8|_3h[3],_162);};_mh:function _D72(color){return(((color._e4*255)&0xff)<<0)|(((color._f4*255)&0xff)<<8)|(((color._g4*255)&0xff)<<16);}/*@this {yyPhysicsDebugDraw} */function _E72(vertices,vertexCount,color){draw_set_color(_D72(color));var scale=1.0/this._F72._151;for(var _t6=0;_t62){this._V72.shape.Set(this._5u1,this._5u1.length);return true;}}else if(this._V72.shape._9P===_P72._182._Ft1){if(this._U72){if(this._5u1.length>=3){this._V72.shape._cu1(this._5u1,this._5u1.length);return true;}}else {if(this._5u1.length>=2){this._V72.shape._du1(this._5u1,this._5u1.length);return true;}}}return false;};_I41.prototype._S41=function(_R41){this._V72.filter._kE1=_R41;};_I41.prototype._Q41=function(_zm){this._V72.friction=_zm; };_I41.prototype._P41=function(_O41){this._V72._lE1=_O41;};_I41.prototype._N41=function(_M41){this._V72._p71=_M41;};_I41.prototype._U41=function(_282){this._V72._mE1=_282;};_I41.prototype._W41=function(_V41){this._KC1=_V41;};_I41.prototype._X41=function(_V41){this._LC1=_V41;};_I41.prototype._X41=function(_V41){this._LC1=_V41;};_I41.prototype._Z41=function(_Y41){this._T72=_Y41;};_I41.prototype._L41=function(){this._S72=true;};var _382=0,_482=1,_582=2,_682=3,_782=4,_882=5,_982=6,_a82=7,_b82=8,_c82=9, _d82=10,_e82=11,_f82=12,_g82=13,_h82=14,_i82=15,_j82=16,_k82=17,_l82=18,_m82=19,_n82=20,_o82=21,_p82=22,_q82=23,_r82=24;/*@constructor */function _s82(_t82){this._u82=_t82;};_s82.prototype._a61=function(_861){if((this._u82 instanceof _P72._v82)||(this._u82 instanceof _P72._w82)||(this._u82 instanceof _P72._x82)){this._u82._6H1()._Z41(true);this._u82._7H1()._Z41(true);this._u82._a61(_861);}};_s82.prototype._c61=function(_b61){switch(_b61){case _382:return this._u82._8H1().x;case _482:return this._u82._8H1().y; case _582:return this._u82._9H1().x;case _682:return this._u82._9H1().y;case _782:return this._u82._KO1(1.0/_t3._v41._y82).x;case _882:return this._u82._KO1(1.0/_t3._v41._y82).y;case _982:return this._u82._LO1(1.0/_t3._v41._y82);case _a82:{if((this._u82 instanceof _P72._v82)||(this._u82 instanceof _P72._w82)||(this._u82 instanceof _P72._x82)){return this._u82._PP1();}}break;case _b82:{if(this._u82 instanceof _P72._v82){return this._u82._GP1();}else if(this._u82 instanceof _P72._z82){return this._u82._FP1();}}break;case _c82:{ if((this._u82 instanceof _P72._v82)||(this._u82 instanceof _P72._x82)){return this._u82._SP1(1.0/_t3._v41._y82);}}break;case _d82:{if((this._u82 instanceof _P72._v82)||(this._u82 instanceof _P72._x82)){return this._u82._RP1();}}break;case _e82:{if((this._u82 instanceof _P72._w82)||(this._u82 instanceof _P72._x82)){return this._u82._SQ1();}}break;case _f82:{if((this._u82 instanceof _P72._w82)||(this._u82 instanceof _P72._x82)){return this._u82._HP1();}}break;case _g82:{if(this._u82 instanceof _P72._w82){return this._u82._VQ1(1.0/_t3._v41._y82); }}break;case _h82:{if(this._u82 instanceof _P72._w82){return this._u82._UQ1();}}break;case _i82:{if(this._u82 instanceof _P72._A82){return this._u82._hT1();}if(this._u82 instanceof _P72._B82){return this._u82._vQ1();}}break;case _j82:{if(this._u82 instanceof _P72._A82){return this._u82._iT1();}}break;case _k82:{if((this._u82 instanceof _P72._B82)||(this._u82 instanceof _P72._z82)){this._u82._oQ1();}else if(this._u82 instanceof _P72._x82){return this._u82._yR1();}}break;case _l82:{if((this._u82 instanceof _P72._B82)||(this._u82 instanceof _P72._z82)){ return this._u82._mQ1();}else if(this._u82 instanceof _P72._x82){return this._u82._wR1();}}break;case _m82:{if(this._u82 instanceof _P72._v82){return((this._u82._KP1()*180.0)/Math.PI);}}break;case _n82:{if(this._u82 instanceof _P72._v82){return((this._u82._LP1()*180.0)/Math.PI);}}break;case _o82:{if(this._u82 instanceof _P72._v82){return this._u82._IP1();}}break;case _p82:{if(this._u82 instanceof _P72._C82){return this._u82._wT1();}}break;case _q82:{if(this._u82 instanceof _P72._D82){return this._u82._gR1();}}break;case _r82:{ if(this._u82 instanceof _P72._D82){return this._u82._jQ1();}}}return 0;};_s82.prototype._d61=function(_b61,_Vn){switch(_b61){case _a82:{if((this._u82 instanceof _P72._v82)||(this._u82 instanceof _P72._w82)||(this._u82 instanceof _P72._x82)){this._u82._6H1()._Z41(true);this._u82._7H1()._Z41(true);this._u82._OP1(_Vn);}}break;case _d82:{if((this._u82 instanceof _P72._v82)||(this._u82 instanceof _P72._x82)){this._u82._6H1()._Z41(true);this._u82._7H1()._Z41(true);this._u82._QP1(_Vn);}}break;case _h82:{if(this._u82 instanceof _P72._w82){ this._u82._TQ1(_Vn);}}break;case _i82:{if(this._u82 instanceof _P72._B82){this._u82._uQ1(_Vn);}}break;case _k82:{if((this._u82 instanceof _P72._B82)||(this._u82 instanceof _P72._z82)){this._u82._nQ1(_Vn);}else if(this._u82 instanceof _P72._x82){this._u82._xR1(_Vn);}}break;case _l82:{if((this._u82 instanceof _P72._B82)||(this._u82 instanceof _P72._z82)){this._u82._kQ1(_Vn);}else if(this._u82 instanceof _P72._x82){this._u82._vR1(_Vn);}}break;case _m82:{if(this._u82 instanceof _P72._v82){var angle=(_Vn*Math.PI)/180.0;this._u82._MP1(angle, this._u82._LP1());}}break;case _n82:{if(this._u82 instanceof _P72._v82){var angle=(_Vn*Math.PI)/180.0;this._u82._MP1(this._u82._KP1(),angle);}}break;case _o82:{if(this._u82 instanceof _P72._v82){this._u82._JP1((_Vn>0.5)?true:false);}}break;case _p82:{if(this._u82 instanceof _P72._C82){this._u82._vT1(_Vn);}}break;case _q82:{if(this._u82 instanceof _P72._D82){this._u82._fR1(_Vn);}}break;case _r82:{if(this._u82 instanceof _P72._D82){this._u82._iQ1(_Vn);}}break;}};/*@constructor */function _E82(_F82,_G82,_u4,_v4){this._H82=_F82; this._I82=_G82;this._J82=new _P72._Q72(_u4,_v4);this._K82=[];};_E82.prototype._n61=function(_L82,_M82,_N82,_O82){this._H82._zD1(new _P72._Q72(_N82,_O82),new _P72._Q72(_L82,_M82),true);};_E82.prototype._k61=function(_L82,_M82,_N82,_O82){this._H82._k61(new _P72._Q72(_N82,_O82),new _P72._Q72(_L82,_M82),true);};_E82.prototype._u61=function(_P82,_Q82,_R82,_S82){var _T82=this._H82._GD1(new _P72._Q72(_R82,_S82));var _U82=this._H82._FD1(new _P72._Q72(_P82,_Q82));this._H82._k61(_T82,_U82,true);};_E82.prototype._x61=function(_P82, _Q82,_R82,_S82){var _T82=this._H82._GD1(new _P72._Q72(_R82,_S82));var _U82=this._H82._FD1(new _P72._Q72(_P82,_Q82));this._H82._zD1(_T82,_U82,true);};_E82.prototype._z61=function(_y61){this._H82._z61(_y61,true);};_E82.prototype._B61=function(_A61){this._H82._B61(_A61,true);};_E82.prototype._G61=function(_C61,_V82,_W82,_F61){var _yt1=new _P72._X82();_yt1._nt1=_C61;_yt1._ot1=_F61;_yt1._1t1=new _P72._Q72(_V82,_W82);this._H82._ED1(_yt1);};_E82.prototype._Y82=function(_Z82){var position=this._H82._e41();this._H82._nD1(position, (_Z82*Math.PI)/180.0);this._H82._Z41(true);};_E82.prototype.__82=function(_Qk){var angle=this._H82.__r1();var _Wa=this._H82._e41().y;this._H82._nD1(new _P72._Q72(_Qk,_Wa),angle);this._H82._Z41(true);};_E82.prototype._092=function(_Qk){var angle=this._H82.__r1();var _Va=this._H82._e41().x;this._H82._nD1(new _P72._Q72(_Va,_Qk),angle);this._H82._Z41(true);};_E82.prototype._tD1=function(_192){this._H82._tD1((_192*Math.PI)/180.0);this._H82._Z41(true);};_E82.prototype._292=function(_392){var _492=this._H82._sD1(); this._H82._rD1(new _P72._Q72(_392,_492.y));this._H82._Z41(true);};_E82.prototype._592=function(_392){var _492=this._H82._sD1();this._H82._rD1(new _P72._Q72(_492.x,_392));this._H82._Z41(true);};_E82.prototype._YD1=function(_692){this._H82._YD1(_692);};_E82.prototype._5E1=function(_792){this._H82._5E1(_792);};_E82.prototype._3E1=function(_892){this._H82._3E1(_892);};_E82.prototype._A41=function(_992){if(this._H82){this._a92(_992);this._b92(_992);}};_E82.prototype._a92=function(_nm){var _K41=this._H82._7E1(); while((_K41!=null)&&(_K41!=undefined)){var shape=_K41._tE1();var transform=this._H82._as1();if(shape instanceof _P72._X72){var _1t1=_P72._c92(transform,shape._It1);draw_ellipse((_1t1.x-shape._qt1)*_nm,(_1t1.y-shape._qt1)*_nm,(_1t1.x+shape._qt1)*_nm,(_1t1.y+shape._qt1)*_nm,true);}else if(shape instanceof _P72._Y72){var _d92=Math.sin(this._H82.__r1());var _e92=Math.cos(this._H82.__r1());for(var _t6=0;_t6=0){var physicsObject=_1u._s51;if(physicsObject!==null&&physicsObject!==undefined){var _Bc2=physicsObject._H82;if(_Bc2._Vl1()!==_P72._Qa2._QC1){if(_1u._Dc2()){_1u._N5(_Ec2,0,_1u,_1u);}_Bc2._nD1(new _P72._Q72(_1u.x*this._151,_1u.y*this._151),_Bc2.__r1());}}else {if(_1u._Dc2()){_1u._N5(_Ec2,0,_1u,_1u);}}}}};_y41.prototype._Fc2=function(){var _Gc2=1.0/this._151;var _Bc2=this._BC1._lG1();while((_Bc2!=null)&&(_Bc2!=undefined)){var _1u=_Bc2._kv1(); if((_1u!=null)&&(_1u!=undefined)){_1u._Hc2(_Bc2);var _Wk=_Bc2._e41();_1u.phy_position_xprevious=_Wk.x*_Gc2;_1u.phy_position_yprevious=_Wk.y*_Gc2;}_Bc2=_Bc2._aE1();}};_y41.prototype._Xf=function(_Ic2){if(_Ic2<=0){return;}this._Cc2();if(this._hK==true){return;}this._Fc2();var _Jc2=1.0/this._lc2;var _Kc2=this._lc2/_Ic2;var _Lc2=_Kc2;while(_Lc2>0.0){var _Mc2=(_Lc2>1.0)?_Jc2:(_Jc2*_Lc2);this._BC1._1G1(_Mc2,this._mc2,this._mc2);_Lc2-=1.0;}this._BC1._5G1();this._Nc2();this._Oc2();};_y41.prototype._Nc2=function(){ var _Gc2=1.0/this._151;var _Bc2=this._BC1._lG1();while((_Bc2!=null)&&(_Bc2!=undefined)){var _1u=_Bc2._kv1();if((_1u!=null)&&(_1u!=undefined)){if(_1u.marked&&_1u._s51){this._OF1(_1u._s51);_1u._s51=null;}else {_1u._Hc2(_Bc2);}}_Bc2=_Bc2._aE1();}};_y41.prototype._Oc2=function(){var _Gc2=1.0/this._151;for(var i=0;i0)?_P72._Qa2._QC1:(_Xc2._S72?_P72._Qa2._YC1:_P72._Qa2._iC1);if(_Ht._s51!=null){var _4d2=_Ht._s51._H82;if(_4d2._7E1()==null){_4d2._SD1(_3d2);}var _Wc2=_Ht._5d2(-_Ht.image_angle*_L6/180.0,{x:_f51*this._151,y:_g51*this._151});_Uc2(_Vc2,_Wc2);var _6d2=_4d2._2D1(_Vc2);_Zc2=_Ht._s51._s92(_6d2);_Wc2.x=-_Wc2.x; _Wc2.y=-_Wc2.y;_Uc2(_Vc2,_Wc2);}else {var _7d2=new _P72._Pa2();_7d2.type=_3d2;_7d2.angle=-_Ht.image_angle*_L6/180.0;_7d2._lC1=_Xc2._KC1;_7d2._mC1=_Xc2._LC1;_7d2._oC1=_Xc2._T72;var _8d2;if(_Yc2)_8d2=_Ht._5d2(_7d2.angle,{x:_f51,y:_g51});else _8d2=_Ht._5d2(_7d2.angle,{x:0,y:0});_7d2.position.x=(_Ht.x-_8d2.x)*this._151;_7d2.position.y=(_Ht.y-_8d2.y)*this._151;_7d2._bv1=_Ht;var _4d2=this._BC1._d51(_7d2);if(!_Yc2){_8d2=_Ht._5d2(_7d2.angle,{x:_f51*this._151,y:_g51*this._151});_Uc2(_Vc2,_8d2);_f51=0;_g51=0;}var _6d2=_4d2._2D1(_Vc2); var physicsObject=new _E82(_4d2,_1d2,_f51,_g51);_Ht._s51=physicsObject;_Ht._Hc2(_4d2);_Zc2=physicsObject._s92(_6d2);if(!_Yc2){_8d2.x=-_8d2.x;_8d2.y=-_8d2.y;_Uc2(_Vc2,_8d2);}this._9d2();}}return _Zc2;};_y41.prototype._OF1=function(_ad2){this._BC1._OF1(_ad2._H82);};_y41.prototype._f61=function(_bd2){this._BC1._f61(_bd2._u82);};_y41.prototype._A41=function(_z41){if(this._NF1==null){return;}var _cd2=0;if(_z41&_w92){_cd2=_cd2|_P72._19._8t1;}if(_z41&_x92){_cd2=_cd2|_P72._19._9t1;}if(_z41&_y92){_cd2=_cd2|_P72._19._bt1; }if(_z41&_z92){_cd2=_cd2|_P72._19._at1;}if(_z41&_C92){_cd2=_cd2|_P72._19._it1;}this._NF1._Ts1(_cd2);this._BC1._6G1();};_y41.prototype._r51=function(_dd2,_ed2,_fd2,_gd2,_hd2,_id2,_jd2){_dd2._H82._Z41(true);_ed2._H82._Z41(true);var scale=this._151;var _kd2=new _P72._Q72(_fd2*scale,_gd2*scale);var _ld2=new _P72._Q72(_hd2*scale,_id2*scale);var _kU1=new _P72._ub2();_kU1._qx1(_dd2._H82,_ed2._H82,_kd2,_ld2);_kU1._0G1=_jd2;var _md2=this._BC1._TF1(_kU1);var _nd2=new _s82(_md2);return _nd2;};_y41.prototype._u51=function(_dd2, _ed2,_fd2,_gd2,_hd2,_id2,_t51,_jd2){var _ZF1=_dd2._H82;var __F1=_ed2._H82;_ZF1._Z41(true);__F1._Z41(true);var scale=this._151;var _9P1=_ZF1._ID1(new _P72._Q72(_fd2*scale,_gd2*scale));var _aP1=__F1._ID1(new _P72._Q72(_hd2*scale,_id2*scale));var _kU1=new _P72._Db2();_kU1._ZF1=_ZF1;_kU1.__F1=__F1;_kU1._9P1=_9P1;_kU1._aP1=_aP1;_kU1._sT1=_t51*scale;_kU1._0G1=_jd2;var _od2=this._BC1._TF1(_kU1);var _nd2=new _s82(_od2);return _nd2;};_y41.prototype._D51=function(_dd2,_ed2,_pd2,_qd2,_rd2,_sd2,_td2,_ud2,_vd2,_wd2,_jd2){ _dd2._H82._Z41(true);_ed2._H82._Z41(true);var scale=this._151;var anchor=new _P72._Q72(_pd2*scale,_qd2*scale);var _kU1=new _P72._rb2();_kU1._qx1(_dd2._H82,_ed2._H82,anchor);_kU1._cP1=_rd2;_kU1._dP1=_sd2;_kU1._gP1=_td2;_kU1._eP1=_ud2;_kU1._fP1=_vd2;_kU1._hP1=_wd2;_kU1._0G1=_jd2;var _xd2=this._BC1._TF1(_kU1);var _nd2=new _s82(_xd2);return _nd2;};_y41.prototype._J51=function(_dd2,_ed2,_pd2,_qd2,_yd2,_zd2,_Ad2,_Bd2,_td2,_Cd2,_vd2,_wd2,_jd2){_dd2._H82._Z41(true);_ed2._H82._Z41(true);var scale=this._151;var anchor=new _P72._Q72(_pd2*scale, _qd2*scale);var _1v=new _P72._Q72(_yd2,_zd2);_1v._tr1();var _kU1=new _P72._vb2();_kU1._qx1(_dd2._H82,_ed2._H82,anchor,_1v);_kU1._DQ1=_Ad2*scale;_kU1._EQ1=_Bd2*scale;_kU1._gP1=_td2;_kU1._FQ1=_Cd2;_kU1._fP1=_vd2;_kU1._hP1=_wd2;_kU1._0G1=_jd2;var _Dd2=this._BC1._TF1(_kU1);var _nd2=new _s82(_Dd2);return _nd2;};_y41.prototype._P51=function(_dd2,_ed2,_Ed2,_Fd2,_Gd2,_Hd2,_Id2,_Jd2,_Kd2,_Ld2,_O51,_jd2){_dd2._H82._Z41(true);_ed2._H82._Z41(true);var scale=this._151;var _kU1=new _P72._Cb2();_kU1._qx1(_dd2._H82,_ed2._H82, new _P72._Q72(_Ed2*scale,_Fd2*scale),new _P72._Q72(_Gd2*scale,_Hd2*scale),_dd2._H82._FD1(new _P72._Q72(_Id2*scale,_Jd2*scale)),_ed2._H82._FD1(new _P72._Q72(_Kd2*scale,_Ld2*scale)),_O51);_kU1._0G1=_jd2;var _Md2=this._BC1._TF1(_kU1);var _nd2=new _s82(_Md2);return _nd2;};_y41.prototype._X51=function(_dd2,_ed2,_Q51,_R51,_S51,_T51,_U51,_ud2,_Nd2,_Od2,_Pd2,_jd2){_dd2._H82._Z41(true);_ed2._H82._Z41(true);var scale=this._151;var _kU1=new _P72._yb2();_kU1._qx1(_dd2._H82,_ed2._H82,new _P72._Q72(_Q51*scale,_R51*scale), new _P72._Q72(_S51,_T51));_kU1._hP1=_U51;_kU1._eP1=_ud2;_kU1._fP1=_Nd2;_kU1._7Q1=_Od2;_kU1._8Q1=_Pd2;_kU1._0G1=_jd2;var _Qd2=this._BC1._TF1(_kU1);var _nd2=new _s82(_Qd2);return _nd2;};_y41.prototype._Z51=function(_dd2,_ed2,_Q51,_R51,_Rd2,_Od2,_Pd2,_jd2){_dd2._H82._Z41(true);_ed2._H82._Z41(true);var scale=this._151;var _kU1=new _P72._xb2();_kU1._qx1(_dd2._H82,_ed2._H82,new _P72._Q72(_Q51*scale,_R51*scale));_kU1._bP1=(-_Rd2*180.0)/Math.PI;_kU1._7Q1=_Od2;_kU1._8Q1=_Pd2;_kU1._0G1=_jd2;var _Sd2=this._BC1._TF1(_kU1); var _nd2=new _s82(_Sd2);return _nd2;};_y41.prototype._161=function(_dd2,_ed2,_Q51,_R51,_Td2,_Ud2,_jd2){_dd2._H82._Z41(true);_ed2._H82._Z41(true);var scale=this._151;var _kU1=new _P72._wb2();_kU1._qx1(_dd2._H82,_ed2._H82,new _P72._Q72(_Q51*scale,_R51*scale));_kU1._6Q1=_Td2;_kU1._9R1=_Ud2;_kU1._0G1=_jd2;var _Vd2=this._BC1._TF1(_kU1);var _nd2=new _s82(_Vd2);return _nd2;};_y41.prototype._661=function(_dd2,_ed2,_Wd2,_Xd2,_O51){if((_Wd2._u82._9P!==_P72._qb2._RO1)&&(_Wd2._u82._9P!==_P72._qb2._SO1)&&(_Xd2._u82._9P!==_P72._qb2._RO1)&&(_Xd2._u82._9P!==_P72._qb2._SO1)){ return -1;}_dd2._H82._Z41(true);_ed2._H82._Z41(true);var _kU1=new _P72._zb2();_kU1._ZF1=_dd2._H82;_kU1.__F1=_ed2._H82;_kU1._DR1=_Wd2._u82;_kU1._ER1=_Xd2._u82;_kU1.ratio=_O51;var _Md2=this._BC1._TF1(_kU1);var _nd2=new _s82(_Md2);return _nd2;};_y41.prototype._Yd2=function(_gc2){for(var _t6=0;_t6<_v92;_t6++){if(this._pc2[_t6]._jc2==_gc2){return _t6;}}return -1;};_y41.prototype._Zd2=function(_gc2){var __d2=this._Yd2(_gc2);if(__d2!=-1){return __d2;}for(var _t6=0;_t6<_v92;_t6++){if(this._pc2[_t6]._jc2==-1){this._pc2[_t6]._jc2=_gc2; this._pc2[_t6]._iE1=(1<<_t6);this._pc2[_t6]._jE1=0;return _t6;}}return -1;};_y41.prototype._0e2=function(_gc2,_1e2){var _2e2=_gc2;var _3e2=_i3._E5(_gc2);while((_3e2._CQ>=0)&&_i3._E5(_3e2._CQ)){_3e2=_i3._E5(_3e2._CQ);var _4e2=_3e2._EQ;var _5e2=0;for(var _6e2 in _7e2){if(!_7e2.hasOwnProperty(_6e2))continue;for(var _mM1 in _7e2[_6e2]){if(!_7e2[_6e2].hasOwnProperty(_mM1))continue;var _8e2=-1;if(_6e2==_gc2){_8e2=_mM1;}else if(_mM1==_gc2){_8e2=_6e2;}if(_8e2!=-1){_5e2++;}}}if(_5e2!==_1e2.length){break;}_2e2=_4e2;}return _2e2; };_y41.prototype._9e2=function(_gc2){var _ae2=[];for(var _6e2 in _7e2){if(!_7e2.hasOwnProperty(_6e2))continue;for(var _mM1 in _7e2[_6e2]){if(!_7e2[_6e2].hasOwnProperty(_mM1))continue;var _8e2=-1;if(_6e2==_gc2){_8e2=_mM1;}else if(_mM1==_gc2){_8e2=_6e2;}if(_8e2!==-1){_ae2[_ae2.length]=_8e2;}}}return _ae2;};_y41.prototype._be2=function(_Ak,_1e2){for(var _NF in _i3._ce2){if(!_i3._ce2.hasOwnProperty(_NF))continue;var _de2=_i3._ce2[_NF];if(_de2._CQ===_Ak._EQ){if(this._9e2(_de2._EQ).length!==0){_1e2[_1e2.length]=_de2._EQ; }this._be2(_de2,_1e2);}}};_y41.prototype._ee2=function(_gc2){var _ae2=this._9e2(_gc2);var _2e2=_gc2;var _3e2=_i3._E5(_gc2);while((_3e2._CQ>=0)&&_i3._E5(_3e2._CQ)){_3e2=_i3._E5(_3e2._CQ);_ae2=_ae2.concat(this._9e2(_3e2._EQ));}for(var _t6=0;_t6<_ae2.length;_t6++){var _fe2=_ae2[_t6];var _NF=_i3._E5(_fe2);this._be2(_NF,_ae2);}return _ae2;};_y41.prototype._ge2=function(_gc2,_G82){var _ae2=this._ee2(_gc2);for(var _he2=0;_he2<_ae2.length;++_he2){for(var _ie2=0;_ie2<_v92;++_ie2){if(this._pc2[_ie2]._jc2==_ae2[_he2]){ this._pc2[_G82]._jE1|=this._pc2[_ie2]._iE1;this._pc2[_ie2]._jE1|=this._pc2[_G82]._iE1;}}}};_y41.prototype._2d2=function(_gc2){var _1d2=this._Yd2(_gc2);if(_1d2!==-1){return _1d2;}var _ae2=this._9e2(_gc2);var _jc2=_gc2;if(_ae2.length===0){var _2e2=_gc2;var _3e2=_i3._E5(_gc2);while((_3e2._CQ>=0)&&_i3._E5(_3e2._CQ)){_3e2=_i3._E5(_3e2._CQ);_jc2=_3e2._EQ;_ae2=this._9e2(_jc2);if(_ae2.length!==0){_1d2=this._Yd2(_jc2);break;}}if(_ae2.length===0){return -1;}}if(_1d2===-1){_1d2=this._Zd2(_jc2);if(_1d2===-1){return -1; }}this._ge2(_gc2,_1d2);return _1d2;};_y41.prototype._9d2=function(){var _Bc2=this._BC1._lG1();while((_Bc2!=null)&&(_Bc2!=undefined)){var _1u=_Bc2._kv1();if((_1u!=null)&&(_1u!=undefined)){var _Q61=_1u._s51._I82;if(_Q61!=-1){var _je2=new _P72._Ra2();_je2._iE1=this._pc2[_Q61]._iE1;_je2._jE1=this._pc2[_Q61]._jE1;var _K41=_Bc2._7E1();while((_K41!=null)&&(_K41!=undefined)){_je2._kE1=_K41._yE1()._kE1;_K41._wE1(_je2);_K41=_K41._HC1;}}}_Bc2=_Bc2._aE1();}};_y41.prototype._H61=function(_f7,_Cq,_q5,_r5,_u5){var _ke2=new _P72._I92(); _ke2.Set(new _P72._Q72(_q5,_r5),_u5);if((_f7._s51===null)||(_f7._s51===undefined)||(_Cq._s51===null)||(_Cq._s51===undefined)){return;}var _le2=_f7._s51._H82;var _me2=_Cq._s51._H82;var _ne2;for(_ne2=_le2._7E1();_ne2;_ne2=_ne2._aE1()){var _oe2;for(_oe2=_me2._7E1();_oe2;_oe2=_ne2._aE1()){if(_P72._za2(_ne2._tE1(),0,_oe2._tE1(),0,_ke2,_me2._as1())){return true;}}}return false;};_y41.prototype._R61=function(_z41,_q5,_r5,_pe2,_qe2,_3d,_u9,_w71){var _3D1=new _P72._4c2();_3D1._Qo1=_z41;_3D1.position.Set(_q5*this._151, _r5*this._151);_3D1._Ea1.Set(_pe2*this._151,_qe2*this._151);_3D1.color.Set((_3d&0xff),(_3d&0xff00)>>8,(_3d&0xff0000)>>16,(_u9*255.0));_3D1._bv1=_w71;return this._BC1._R61(_3D1);};_y41.prototype._S61=function(_re2){this._BC1._jH1(_re2);};_y41.prototype._371=function(_u71,_se2,_q5,_r5,_te2,_pe2,_qe2,_ue2,_3d,_u9,_ve2,_w71){this._oc2._Qo1=_u71;this._oc2._BI1=_se2;this._oc2.angle=(-_te2*_L6)/180.0;this._oc2._kC1=(_ue2*_L6)/180.0;this._oc2.position.Set(_q5*this._151,_r5*this._151);this._oc2._jC1.Set(_pe2*this._151, _qe2*this._151);this._oc2.color.Set((_3d&0xff),(_3d&0xff00)>>8,(_3d&0xff0000)>>16,(_u9*255.0));this._oc2._271=_ve2;this._oc2._CI1=true;this._oc2._bv1=_w71;};_y41.prototype._471=function(_lu){var shape=new _P72._X72();shape._qt1=Math.abs(_lu*this._151);this._oc2.shape=shape;};_y41.prototype._571=function(_251,_351){if(_251==0.0){_251=1.0;}if(_351==0.0){_351=1.0;}var shape=new _P72._Y72();shape._pu1(_251*this._151,_351*this._151);this._oc2.shape=shape;};_y41.prototype._671=function(){var shape=new _P72._Y72(); this._oc2.shape=shape;};_y41.prototype._771=function(_q5,_r5){if((this._oc2.shape!==null)&&(this._oc2.shape._9P===_P72._182._Et1)){var shape=this._oc2.shape;if(shape._6u1<_P72._Hb2){shape._5u1[shape._6u1++]=new _P72._Q72(_q5*this._151,_r5*this._151);}}};_y41.prototype._we2=function(){for(var _t6=0;_t6=0&&_Le1_P72._Hb2){_fe=_P72._Hb2;}var points=[];for(var _t6=0;_t6<_fe;_t6++){points[_t6]=new _P72._Q72(_De2[(_t6*2)+0]*this._151,_De2[(_t6*2)+1]*this._151);}var _Ee2=new _P72._Y72();_Ee2.Set(points,_fe);var _Ce2=new _P72._I92();_Ce2._Dr1();this._BC1._lH1(_Ee2,_Ce2);};_y41.prototype._Fe2=function(_sl,_Ge2,_He2,_Ie2){var _q8=this._BC1._f71();if(_He2<0||_He2>=_q8)return;if(_Ie2<_He2)return; if(_Ie2>_q8)return;var _Qo1=this._BC1._rH1();var _aF1=this._BC1._sH1();var _bF1=this._BC1._tH1();var _Je2=this._BC1._uH1();var _bv1=this._BC1._vH1();var _zb1=_sl._cO;var _Ke2=1.0/this._151;for(var _t6=_He2;_t6<_Ie2;_t6++){if(_Ge2&(1<<0)){_sl._gO(_5k,_Qo1[_t6]);}if(_Ge2&(1<<1)){_sl._gO(_Le2,_aF1[_t6].x*_Ke2);_sl._gO(_Le2,_aF1[_t6].y*_Ke2);}if(_Ge2&(1<<2)){_sl._gO(_Le2,_bF1[_t6].x*_Ke2);_sl._gO(_Le2,_bF1[_t6].y*_Ke2);}if(_Ge2&(1<<3)){_sl._gO(_5k,(_Je2[_t6]._h4<<24)|(_Je2[_t6]._e4<<16)|(_Je2[_t6]._f4<<8)|_Je2[_t6]._g4); }if(_Ge2&(1<<4)){_sl._gO(_ek,_bv1[_t6]);}}_sl._c01(_dk,_zb1);};_y41.prototype._h71=function(_sl,_Ge2){this._Fe2(_sl,_Ge2,0,this._BC1._f71());};_y41.prototype._A71=function(_t4,_P32,_Ge2){this._Fe2(_P32,_Ge2,_t4,_t4+1);};_y41.prototype._v71=function(_t4,_u71){if(_t4>=0&&_t4>2;var index=_Ga*_Ca._Ia;_Ca._Ia+=_Ne2*6;var _Ja=_Ca._Ka;var _La=_Ca._Ma;var _Na=_Ca._Oa;var _Pa=index;var _hb=_Pa+_Ga;var __4=_hb+_Ga;var _ib=__4+_Ga;var _jb=_ib+_Ga;var _kb=_jb+_Ga;var _w6=-(_C5.xOrigin-_B4.XOffset);var _x6=-(_C5.yOrigin-_B4.YOffset);var _y6=_w6+_B4.CropWidth;var _z6=_x6+_B4.CropHeight;var _Oe2=0;for(var _t6=0;_t6<_q8;_t6++){if(((_Qo1[_t6]===0)||((_Qo1[_t6]&_Me2)!==0))&&((_w71===0)||(_w71===_bv1[_t6]))){ var x=_aF1[_t6].x*_Ke2;var y=_aF1[_t6].y*_Ke2;_Ja[_Pa+0]=_Ja[_jb+0]=_Ja[_kb+0]=x+_w6;_Ja[_Pa+1]=_Ja[_hb+1]=_Ja[_kb+1]=y+_x6;_Ja[_hb+0]=_Ja[__4+0]=_Ja[_ib+0]=x+_y6;_Ja[__4+1]=_Ja[_ib+1]=_Ja[_jb+1]=y+_z6;_Ja[_Pa+2]=_Ja[_hb+2]=_Ja[__4+2]=_Ja[_ib+2]=_Ja[_jb+2]=_Ja[_kb+2]=_Ta;var _m4=(_Je2[_t6]._g4&0xff)|((_Je2[_t6]._f4<<8)&0xff00)|((_Je2[_t6]._e4<<16)&0xff0000)|((_Je2[_t6]._h4<<24)&0xff000000);_La[_Pa]=_La[_hb]=_La[__4]=_La[_ib]=_La[_jb]=_La[_kb]=_m4;_Na[_Pa+0]=_Na[_jb+0]=_Na[_kb+0]=_B4.x/_B4.texture.width; _Na[_Pa+1]=_Na[_hb+1]=_Na[_kb+1]=_B4.y/_B4.texture.height;_Na[_hb+0]=_Na[__4+0]=_Na[_ib+0]=(_B4.x+_B4.w)/_B4.texture.width;_Na[__4+1]=_Na[_ib+1]=_Na[_jb+1]=(_B4.y+_B4.h)/_B4.texture.height;var _Pe2=_Ga*6;_Pa+=_Pe2;_hb+=_Pe2;__4+=_Pe2;_ib+=_Pe2;_jb+=_Pe2;_kb+=_Pe2;}}};_y41.prototype._uc2=function(_Me2,_w71,_C5,_cn,_co,_do,_u5,_3d,_u9){_u5=(_u5*Math.PI)/180.0;var _B4=_C5._C4[_cn%_C5._D4()];if(!_B4){return;}if(!_B4.texture.complete){return;}if(!_B4.texture._N8){_M8(_B4);}var _q8=this._BC1._f71();var _Qo1=this._BC1._rH1(); var _aF1=this._BC1._sH1();var _bv1=this._BC1._vH1();var _Ke2=1.0/this._151;var _Ne2=0;for(var _t6=0;_t6<_q8;_t6++){if(((_Qo1[_t6]===0)||((_Qo1[_t6]&_Me2)!==0))&&((_w71===0)||(_w71===_bv1[_t6]))){_Ne2++;}}if(_Ne2===0){return;}var _Ca=_e8._Da(_9a._Ea,_B4.texture._N8,_e8._Fa,_Ne2*6);var _Ga=_Ca._Ha()>>2;var index=_Ga*_Ca._Ia;_Ca._Ia+=_Ne2*6;var _Ja=_Ca._Ka;var _La=_Ca._Ma;var _Na=_Ca._Oa;var _Pa=index;var _hb=_Pa+_Ga;var __4=_hb+_Ga;var _ib=__4+_Ga;var _jb=_ib+_Ga;var _kb=_jb+_Ga;var _m4=_3d|(((_u9*255)&0xff)<<24);var _w6=-_co*(_C5.xOrigin-_B4.XOffset); var _x6=-_do*(_C5.yOrigin-_B4.YOffset);var _y6=_w6+(_co*_B4.CropWidth);var _z6=_x6+(_do*_B4.CropHeight);var _Oe2=0;if(Math.abs(_u5)<0.0001){for(var _t6=0;_t6<_q8;_t6++){if(((_Qo1[_t6]===0)||((_Qo1[_t6]&_Me2)!==0))&&((_w71===0)||(_w71===_bv1[_t6]))){var x=_aF1[_t6].x*_Ke2;var y=_aF1[_t6].y*_Ke2;_Ja[_Pa+0]=_Ja[_jb+0]=_Ja[_kb+0]=x+_w6;_Ja[_Pa+1]=_Ja[_hb+1]=_Ja[_kb+1]=y+_x6;_Ja[_hb+0]=_Ja[__4+0]=_Ja[_ib+0]=x+_y6;_Ja[__4+1]=_Ja[_ib+1]=_Ja[_jb+1]=y+_z6;_Ja[_Pa+2]=_Ja[_hb+2]=_Ja[__4+2]=_Ja[_ib+2]=_Ja[_jb+2]=_Ja[_kb+2]=_Ta; _La[_Pa]=_La[_hb]=_La[__4]=_La[_ib]=_La[_jb]=_La[_kb]=_m4;_Na[_Pa+0]=_Na[_jb+0]=_Na[_kb+0]=_B4.x/_B4.texture.width;_Na[_Pa+1]=_Na[_hb+1]=_Na[_kb+1]=_B4.y/_B4.texture.height;_Na[_hb+0]=_Na[__4+0]=_Na[_ib+0]=(_B4.x+_B4.w)/_B4.texture.width;_Na[__4+1]=_Na[_ib+1]=_Na[_jb+1]=(_B4.y+_B4.h)/_B4.texture.height;var _Pe2=_Ga*6;_Pa+=_Pe2;_hb+=_Pe2;__4+=_Pe2;_ib+=_Pe2;_jb+=_Pe2;_kb+=_Pe2;}}}else {var _57=Math.sin(_u5);var _67=Math.cos(_u5);var _Qe2=_w6*_67;var _Re2=_y6*_67;var _Se2=_x6*_67;var _Te2=_z6*_67;var _Ue2=_w6*_57; var _Ve2=_y6*_57;var _We2=_x6*_57;var _Xe2=_z6*_57;for(var _t6=0;_t6<_q8;_t6++){if(((_Qo1[_t6]===0)||((_Qo1[_t6]&_Me2)!==0))&&((_w71===0)||(_w71===_bv1[_t6]))){var x=_aF1[_t6].x*_Ke2;var y=_aF1[_t6].y*_Ke2;_Ja[_Pa+0]=_Ja[_kb+0]=x+_Qe2+_We2;_Ja[_Pa+1]=_Ja[_kb+1]=y-_Ue2+_Se2;_Ja[__4+0]=_Ja[_ib+0]=x+_Re2+_Xe2;_Ja[__4+1]=_Ja[_ib+1]=y-_Ve2+_Te2;_Ja[_hb+1]=y-_Ve2+_Se2;_Ja[_hb+0]=x+_Re2+_We2;_Ja[_jb+0]=x+_Qe2+_Xe2;_Ja[_jb+1]=y-_Ue2+_Te2;_La[_Pa]=_La[_hb]=_La[__4]=_La[_ib]=_La[_jb]=_La[_kb]=_m4;_Na[_Pa+0]=_Na[_jb+0]=_Na[_kb+0]=_B4.x/_B4.texture.width; _Na[_Pa+1]=_Na[_hb+1]=_Na[_kb+1]=_B4.y/_B4.texture.height;_Na[_hb+0]=_Na[__4+0]=_Na[_ib+0]=(_B4.x+_B4.w)/_B4.texture.width;_Na[__4+1]=_Na[_ib+1]=_Na[_jb+1]=(_B4.y+_B4.h)/_B4.texture.height;var _Pe2=_Ga*6;_Pa+=_Pe2;_hb+=_Pe2;__4+=_Pe2;_ib+=_Pe2;_jb+=_Pe2;_kb+=_Pe2;}}}};_y41.prototype._f71=function(){return this._BC1._f71();};_y41.prototype._i71=function(){return this._BC1._i71();};_y41.prototype._j71=function(){return this._BC1._j71()*(1.0/this._151);};_y41.prototype._k71=function(){return this._BC1._k71(); };_y41.prototype._l71=function(){return this._BC1._l71();};_y41.prototype._m71=function(){return this._BC1._m71();};_y41.prototype._n71=function(_fe){this._BC1._n71(_fe);};_y41.prototype._o71=function(_lu){this._BC1._o71(_lu*this._151);};_y41.prototype._q71=function(_M41){this._BC1._q71(_M41);};_y41.prototype._s71=function(_V41){this._BC1._s71(_V41);};_y41.prototype._t71=function(_nm){this._BC1._t71(_nm);};function _Ye2(_qt){_Ff1.call(this,_Ze2.__e2._0f2);Object.setPrototypeOf(this,_Ff1.prototype); this._1f2(_qt,_Ye2._2f2());Object.defineProperties(this,{gmlgain:{enumerable:true,get :()=>{return this._XB.gain;},set :(_jc1)=>{this._3f2(_Ye2._2f2().gain,_jc1);this._UA1.forEach((_4f2)=>{const gain=_4f2.parameters.get("gain");gain.setTargetAtTime(this._XB.gain,0,_Ze2._5f2);});}},gmlfactor:{enumerable:true,get :()=>{return this._XB.factor;},set :(_2Z)=>{this._3f2(_Ye2._2f2().factor,_2Z);this._UA1.forEach((_4f2)=>{const factor=_4f2.parameters.get("factor");factor.value=this._XB.factor;});}},gmlresolution:{ enumerable:true,get :()=>{return this._XB.resolution;},set :(_6f2)=>{this._3f2(_Ye2._2f2().resolution,_6f2);this._UA1.forEach((_4f2)=>{const resolution=_4f2.parameters.get("resolution");resolution.value=this._XB.resolution;});}},gmlmix:{enumerable:true,get :()=>{return this._XB.mix;},set :(_7f2)=>{this._3f2(_Ye2._2f2().mix,_7f2);this._UA1.forEach((_4f2)=>{const mix=_4f2.parameters.get("mix");mix.setTargetAtTime(this._XB.mix,0,_Ze2._5f2);});}}});}_Ye2._2f2=()=>({bypass:_Ff1._2f2().bypass,gain:{name:"gain", _8f2:false,defaultValue:1.0,minValue:0.0,maxValue:Number.MAX_VALUE},factor:{name:"factor",_8f2:true,defaultValue:20,minValue:1,maxValue:100},resolution:{name:"resolution",_8f2:true,defaultValue:8,minValue:2,maxValue:16},mix:{name:"mix",_8f2:false,defaultValue:0.8,minValue:0.0,maxValue:1.0}});function _9f2(_qt){_Ff1.call(this,_Ze2.__e2._af2);Object.setPrototypeOf(this,_Ff1.prototype);this._1f2(_qt,_9f2._2f2());Object.defineProperties(this,{gmlingain:{enumerable:true,get :()=>{return this._XB.ingain; },set :(_bf2)=>{this._3f2(_9f2._2f2().ingain,_bf2);this._UA1.forEach((_4f2)=>{const ingain=_4f2.parameters.get("ingain");ingain.value=this._XB.ingain;});}},gmlthreshold:{enumerable:true,get :()=>{return this._XB.threshold;},set :(_Tf)=>{this._3f2(_9f2._2f2().threshold,_Tf);this._UA1.forEach((_4f2)=>{const threshold=_4f2.parameters.get("threshold");threshold.value=this._XB.threshold;});}},gmlratio:{enumerable:true,get :()=>{return this._XB.ratio;},set :(_O51)=>{this._3f2(_9f2._2f2().ratio,_O51);this._UA1.forEach((_4f2)=>{ const ratio=_4f2.parameters.get("ratio");ratio.value=this._XB.ratio;});}},gmlattack:{enumerable:true,get :()=>{return this._XB.attack;},set :(_cf2)=>{this._3f2(_9f2._2f2().attack,_cf2);this._UA1.forEach((_4f2)=>{const attack=_4f2.parameters.get("attack");attack.value=this._XB.attack;});}},gmlrelease:{enumerable:true,get :()=>{return this._XB.release;},set :(_df2)=>{this._3f2(_9f2._2f2().release,_df2);this._UA1.forEach((_4f2)=>{const release=_4f2.parameters.get("release");release.value=this._XB.release;}); }},gmloutgain:{enumerable:true,get :()=>{return this._XB.outgain;},set :(_ef2)=>{this._3f2(_9f2._2f2().outgain,_ef2);this._UA1.forEach((_4f2)=>{const outgain=_4f2.parameters.get("outgain");outgain.value=this._XB.outgain;});}}});}_9f2._2f2=()=>({bypass:_Ff1._2f2().bypass,ingain:{name:"ingain",_8f2:false,defaultValue:1,minValue:1e-6,maxValue:Number.MAX_VALUE},threshold:{name:"threshold",_8f2:false,defaultValue:0.125,minValue:1e-3,maxValue:1},ratio:{name:"ratio",_8f2:false,defaultValue:4,minValue:1,maxValue:Number.MAX_VALUE} ,attack:{name:"attack",_8f2:false,defaultValue:0.05,minValue:1e-3,maxValue:1e-1},release:{name:"release",_8f2:false,defaultValue:0.25,minValue:1e-2,maxValue:1},outgain:{name:"outgain",_8f2:false,defaultValue:1,minValue:1e-6,maxValue:Number.MAX_VALUE}});function _ff2(_qt){_Ff1.call(this,_Ze2.__e2._gf2);Object.setPrototypeOf(this,_Ff1.prototype);this._1f2(_qt,_ff2._2f2());Object.defineProperties(this,{gmltime:{enumerable:true,get :()=>{return this._XB.time;},set :(_96)=>{this._3f2(_ff2._2f2().time,_96); this._UA1.forEach((_4f2)=>{const time=_4f2.parameters.get("time");time.setTargetAtTime(this._XB.time,0,_Ze2._5f2);});}},gmlfeedback:{enumerable:true,get :()=>{return this._XB.feedback;},set :(_hf2)=>{this._3f2(_ff2._2f2().feedback,_hf2);this._UA1.forEach((_4f2)=>{const feedback=_4f2.parameters.get("feedback");feedback.setTargetAtTime(this._XB.feedback,0,_Ze2._5f2);});}},gmlmix:{enumerable:true,get :()=>{return this._XB.mix;},set :(_7f2)=>{this._3f2(_ff2._2f2().mix,_7f2);this._UA1.forEach((_4f2)=>{const mix=_4f2.parameters.get("mix"); mix.setTargetAtTime(this._XB.mix,0,_Ze2._5f2);});}}});}_ff2._2f2=()=>({bypass:_Ff1._2f2().bypass,time:{name:"time",_8f2:false,defaultValue:0.2,minValue:0.0,maxValue:5.0},feedback:{name:"feedback",_8f2:false,defaultValue:0.5,minValue:0.0,maxValue:1.0},mix:{name:"mix",_8f2:false,defaultValue:0.35,minValue:0.0,maxValue:1.0}});function _if2(_qt){_Ff1.call(this,_Ze2.__e2._jf2);Object.setPrototypeOf(this,_Ff1.prototype);this._1f2(_qt,_kf2._2f2());const _lf2=(_qt!==undefined);if(_lf2===false){_qt={};}this.locut=new _mf2(_qt.gmllocut); this.loshelf=new _nf2(_qt.gmlloshelf);this.eq1=new _kf2(_qt.gmleq1);this.eq2=new _kf2(_qt.gmleq2);this.eq3=new _kf2(_qt.gmleq3);this.eq4=new _kf2(_qt.gmleq4);this.hishelf=new _of2(_qt.gmlhishelf);this.hicut=new _pf2(_qt.gmlhicut);if(_qt.gmllocut===undefined){this.locut.gmlcutoff=10;this.locut.gmlq=1;}if(_qt.gmlloshelf===undefined){this.loshelf.gmlfreq=200;this.loshelf.gmlgain=(_lf2===true)?db_to_lin(0):db_to_lin(12)}if(_qt.gmleq1===undefined){this.eq1.gmlfreq=500;this.eq1.gmlgain=(_lf2===true)?db_to_lin(0):db_to_lin(-24); }if(_qt.gmleq2===undefined){this.eq2.gmlfreq=1000;this.eq2.gmlgain=db_to_lin(0);}if(_qt.gmleq3===undefined){this.eq3.gmlfreq=2000;this.eq3.gmlgain=db_to_lin(0);}if(_qt.gmleq4===undefined){this.eq4.gmlfreq=3000;this.eq4.gmlgain=db_to_lin(0);}if(_qt.gmlhishelf===undefined){this.hishelf.gmlfreq=5000;this.hishelf.gmlgain=(_lf2===true)?db_to_lin(0):db_to_lin(18);}if(_qt.gmlhicut===undefined){this.hicut.gmlcutoff=_pf2._2f2().cutoff.maxValue;this.hicut.gmlq=1;}Object.defineProperties(this,{gmllocut:{enumerable:true, get :()=>{return this.locut;},set :(_qf2)=>{}},gmlloshelf:{enumerable:true,get :()=>{return this.loshelf;},set :(_qf2)=>{}},gmleq1:{enumerable:true,get :()=>{return this.eq1;},set :(_qf2)=>{}},gmleq2:{enumerable:true,get :()=>{return this.eq2;},set :(_qf2)=>{}},gmleq3:{enumerable:true,get :()=>{return this.eq3;},set :(_qf2)=>{}},gmleq4:{enumerable:true,get :()=>{return this.eq4;},set :(_qf2)=>{}},gmlhishelf:{enumerable:true,get :()=>{return this.hishelf;},set :(_qf2)=>{}},gmlhicut:{enumerable:true,get :()=>{return this.hicut; },set :(_qf2)=>{}}});this._rf2=function(){const _sf2=g_WebAudioContext.destination.channelCount;const _tf2=new AudioWorkletNode(g_WebAudioContext,"eq-input",{numberOfInputs:1,numberOfOutputs:2,outputChannelCount:[_sf2,_sf2],channelCount:_sf2,channelCountMode:"explicit"});const _uf2=this.locut._rf2();const _vf2=this.loshelf._rf2();const _wf2=this.eq1._rf2();const _xf2=this.eq2._rf2();const _yf2=this.eq3._rf2();const _zf2=this.eq4._rf2();const _Af2=this.hishelf._rf2();const _Bf2=this.hicut._rf2();const _Ef1=new AudioWorkletNode(g_WebAudioContext, "eq-output",{numberOfInputs:2,numberOfOutputs:1,outputChannelCount:[_sf2],parameterData:this._XB,channelCount:_sf2,channelCountMode:"explicit"});this._UA1.push(_Ef1);_tf2.connect(_Ef1,1,1);_tf2.connect(_uf2.input,0,0);_uf2.output.connect(_vf2.input,0,0);_vf2.output.connect(_wf2.input,0,0);_wf2.output.connect(_xf2.input,0,0);_xf2.output.connect(_yf2.input,0,0);_yf2.output.connect(_zf2.input,0,0);_zf2.output.connect(_Af2.input,0,0);_Af2.output.connect(_Bf2.input,0,0);_Bf2.output.connect(_Ef1,0,0); _Cf2._UA1.push({_Df2:new WeakRef(this),_Jl:_tf2});_Cf2._UA1.push({_Df2:new WeakRef(this),_Jl:_Ef1});const _q4={input:_tf2,output:_Ef1};return _q4;};}_if2._2f2=()=>({bypass:_Ff1._2f2().bypass});function _Ef2(_qt){_Ff1.call(this,_Ze2.__e2._Ff2);Object.setPrototypeOf(this,_Ff1.prototype);this._1f2(_qt,_Ef2._2f2());Object.defineProperties(this,{gmlgain:{enumerable:true,get :()=>{return this._XB.gain;},set :(_jc1)=>{this._3f2(_Ef2._2f2().gain,_jc1);this._UA1.forEach((_4f2)=>{const gain=_4f2.parameters.get("gain"); gain.value=this._XB.gain;});}}});}_Ef2._2f2=()=>({bypass:_Ff1._2f2().bypass,gain:{name:"gain",_8f2:false,defaultValue:0.5,minValue:0.0,maxValue:Number.MAX_VALUE}});function _of2(_qt){_Ff1.call(this,_Ze2.__e2._Gf2);Object.setPrototypeOf(this,_Ff1.prototype);this._1f2(_qt,_of2._2f2());Object.defineProperties(this,{gmlfreq:{enumerable:true,get :()=>{return this._XB.freq;},set :(_Hf2)=>{this._3f2(_of2._2f2().freq,_Hf2);this._UA1.forEach((_4f2)=>{const freq=_4f2.parameters.get("freq");freq.value=this._XB.freq; });}},gmlq:{enumerable:true,get :()=>{return this._XB.q;},set :(_If2)=>{this._3f2(_of2._2f2().q,_If2);this._UA1.forEach((_4f2)=>{const q=_4f2.parameters.get("q");q.value=this._XB.q;});}},gmlgain:{enumerable:true,get :()=>{return this._XB.gain;},set :(_jc1)=>{this._3f2(_of2._2f2().gain,_jc1);this._UA1.forEach((_4f2)=>{const gain=_4f2.parameters.get("gain");gain.value=this._XB.gain;});}}});}_of2._2f2=()=>({bypass:_Ff1._2f2().bypass,_Jf2:{name:"freq",_8f2:false,defaultValue:5000.0,minValue:10.0,maxValue:20000.0} ,q:{name:"q",_8f2:false,defaultValue:1.0,minValue:1.0,maxValue:100.0},gain:{name:"gain",_8f2:false,defaultValue:1e-2,minValue:1e-6,maxValue:Number.MAX_VALUE},get freq(){this._Jf2.maxValue=g_WebAudioContext?Math.min(g_WebAudioContext.sampleRate/2.0,this._Jf2.maxValue):this._Jf2.maxValue;this._Jf2.defaultValue=Math.min(this._Jf2.defaultValue,this._Jf2.maxValue);return this._Jf2;}});function _mf2(_qt){_Ff1.call(this,_Ze2.__e2._Kf2);Object.setPrototypeOf(this,_Ff1.prototype);this._1f2(_qt,_mf2._2f2()); Object.defineProperties(this,{gmlcutoff:{enumerable:true,get :()=>{return this._XB.cutoff;},set :(_Lf2)=>{this._3f2(_mf2._2f2().cutoff,_Lf2);this._UA1.forEach((_4f2)=>{const cutoff=_4f2.parameters.get("cutoff");cutoff.value=this._XB.cutoff;});}},gmlq:{enumerable:true,get :()=>{return this._XB.q;},set :(_If2)=>{this._3f2(_mf2._2f2().q,_If2);this._UA1.forEach((_4f2)=>{const q=_4f2.parameters.get("q");q.value=this._XB.q;});}}});}_mf2._2f2=()=>({bypass:_Ff1._2f2().bypass,freq:{name:"cutoff",_8f2:false,defaultValue:1500.0, minValue:10.0,maxValue:20000.0},q:{name:"q",_8f2:false,defaultValue:1.5,minValue:1.0,maxValue:100.0},get cutoff(){this.freq.maxValue=g_WebAudioContext?Math.min(g_WebAudioContext.sampleRate/2.0,this.freq.maxValue):this.freq.maxValue;this.freq.defaultValue=Math.min(this.freq.defaultValue,this.freq.maxValue);return this.freq;}});function _nf2(_qt){_Ff1.call(this,_Ze2.__e2._Mf2);Object.setPrototypeOf(this,_Ff1.prototype);this._1f2(_qt,_nf2._2f2());Object.defineProperties(this,{gmlfreq:{enumerable:true, get :()=>{return this._XB.freq;},set :(_Hf2)=>{this._3f2(_nf2._2f2().freq,_Hf2);this._UA1.forEach((_4f2)=>{const freq=_4f2.parameters.get("freq");freq.value=this._XB.freq;});}},gmlq:{enumerable:true,get :()=>{return this._XB.q;},set :(_If2)=>{this._3f2(_nf2._2f2().q,_If2);this._UA1.forEach((_4f2)=>{const q=_4f2.parameters.get("q");q.value=this._XB.q;});}},gmlgain:{enumerable:true,get :()=>{return this._XB.gain;},set :(_jc1)=>{this._3f2(_nf2._2f2().gain,_jc1);this._UA1.forEach((_4f2)=>{const gain=_4f2.parameters.get("gain"); gain.value=this._XB.gain;});}}});}_nf2._2f2=()=>({bypass:_Ff1._2f2().bypass,_Jf2:{name:"freq",_8f2:false,defaultValue:500.0,minValue:10.0,maxValue:20000.0},q:{name:"q",_8f2:false,defaultValue:1.0,minValue:1.0,maxValue:100.0},gain:{name:"gain",_8f2:false,defaultValue:1e-2,minValue:1e-6,maxValue:Number.MAX_VALUE},get freq(){this._Jf2.maxValue=g_WebAudioContext?Math.min(g_WebAudioContext.sampleRate/2.0,this._Jf2.maxValue):this._Jf2.maxValue;this._Jf2.defaultValue=Math.min(this._Jf2.defaultValue,this._Jf2.maxValue); return this._Jf2;}});function _pf2(_qt){_Ff1.call(this,_Ze2.__e2._Nf2);Object.setPrototypeOf(this,_Ff1.prototype);this._1f2(_qt,_pf2._2f2());Object.defineProperties(this,{gmlcutoff:{enumerable:true,get :()=>{return this._XB.cutoff;},set :(_Lf2)=>{this._3f2(_pf2._2f2().cutoff,_Lf2);this._UA1.forEach((_4f2)=>{const cutoff=_4f2.parameters.get("cutoff");cutoff.value=this._XB.cutoff;});}},gmlq:{enumerable:true,get :()=>{return this._XB.q;},set :(_If2)=>{this._3f2(_pf2._2f2().q,_If2);this._UA1.forEach((_4f2)=>{ const q=_4f2.parameters.get("q");q.value=this._XB.q;});}}});}_pf2._2f2=()=>({bypass:_Ff1._2f2().bypass,freq:{name:"cutoff",_8f2:false,defaultValue:500.0,minValue:10.0,maxValue:20000.0},q:{name:"q",_8f2:false,defaultValue:1.5,minValue:1.0,maxValue:100.0},get cutoff(){this.freq.maxValue=g_WebAudioContext?Math.min(g_WebAudioContext.sampleRate/2.0,this.freq.maxValue):this.freq.maxValue;this.freq.defaultValue=Math.min(this.freq.defaultValue,this.freq.maxValue);return this.freq;}});function _kf2(_qt){_Ff1.call(this, _Ze2.__e2._Of2);Object.setPrototypeOf(this,_Ff1.prototype);this._1f2(_qt,_kf2._2f2());Object.defineProperties(this,{gmlfreq:{enumerable:true,get :()=>{return this._XB.freq;},set :(_Hf2)=>{this._3f2(_kf2._2f2().freq,_Hf2);this._UA1.forEach((_4f2)=>{const freq=_4f2.parameters.get("freq");freq.value=this._XB.freq;});}},gmlq:{enumerable:true,get :()=>{return this._XB.q;},set :(_If2)=>{this._3f2(_kf2._2f2().q,_If2);this._UA1.forEach((_4f2)=>{const q=_4f2.parameters.get("q");q.value=this._XB.q;});}},gmlgain:{ enumerable:true,get :()=>{return this._XB.gain;},set :(_jc1)=>{this._3f2(_kf2._2f2().gain,_jc1);this._UA1.forEach((_4f2)=>{const gain=_4f2.parameters.get("gain");gain.value=this._XB.gain;});}}});}_kf2._2f2=()=>({bypass:_Ff1._2f2().bypass,_Jf2:{name:"freq",_8f2:false,defaultValue:1500.0,minValue:10.0,maxValue:20000.0},q:{name:"q",_8f2:false,defaultValue:1.0,minValue:1.0,maxValue:100.0},gain:{name:"gain",_8f2:false,defaultValue:1e-2,minValue:1e-6,maxValue:Number.MAX_VALUE},get freq(){this._Jf2.maxValue=g_WebAudioContext?Math.min(g_WebAudioContext.sampleRate/2.0, this._Jf2.maxValue):this._Jf2.maxValue;this._Jf2.defaultValue=Math.min(this._Jf2.defaultValue,this._Jf2.maxValue);return this._Jf2;}});function _Pf2(_qt){_Ff1.call(this,_Ze2.__e2._Qf2);Object.setPrototypeOf(this,_Ff1.prototype);this._1f2(_qt,_Pf2._2f2());Object.defineProperties(this,{gmlsize:{enumerable:true,get :()=>{return this._XB.size;},set :(_ad)=>{this._3f2(_Pf2._2f2().size,_ad);this._UA1.forEach((_4f2)=>{const size=_4f2.parameters.get("size");size.value=this._XB.size;});}},gmldamp:{enumerable:true, get :()=>{return this._XB.damp;},set :(_Rf2)=>{this._3f2(_Pf2._2f2().damp,_Rf2);this._UA1.forEach((_4f2)=>{const damp=_4f2.parameters.get("damp");damp.value=this._XB.damp;});}},gmlmix:{enumerable:true,get :()=>{return this._XB.mix;},set :(_7f2)=>{this._3f2(_Pf2._2f2().mix,_7f2);this._UA1.forEach((_4f2)=>{const mix=_4f2.parameters.get("mix");mix.setTargetAtTime(this._XB.mix,0,_Ze2._5f2);});}}});}_Pf2._2f2=()=>({bypass:_Ff1._2f2().bypass,size:{name:"size",_8f2:false,defaultValue:0.7,minValue:0.0,maxValue:1.0} ,damp:{name:"damp",_8f2:false,defaultValue:0.1,minValue:0.0,maxValue:1.0},mix:{name:"mix",_8f2:false,defaultValue:0.35,minValue:0.0,maxValue:1.0}});function _Sf2(_qt){_Ff1.call(this,_Ze2.__e2._Tf2);Object.setPrototypeOf(this,_Ff1.prototype);this._1f2(_qt,_Sf2._2f2());Object.defineProperties(this,{gmlrate:{enumerable:true,get :()=>{return this._XB.rate;},set :(_Uf2)=>{this._3f2(_Sf2._2f2().rate,_Uf2);this._UA1.forEach((_4f2)=>{const rate=_4f2.parameters.get("rate");rate.value=this._XB.rate;});}},gmlintensity:{ enumerable:true,get :()=>{return this._XB.intensity;},set :(_Vf2)=>{this._3f2(_Sf2._2f2().intensity,_Vf2);this._UA1.forEach((_4f2)=>{const intensity=_4f2.parameters.get("intensity");intensity.setTargetAtTime(this._XB.intensity,0,_Ze2._5f2);});}},gmloffset:{enumerable:true,get :()=>{return this._XB.offset;},set :(_E91)=>{this._3f2(_Sf2._2f2().offset,_E91);this._UA1.forEach((_4f2)=>{const offset=_4f2.parameters.get("offset");offset.value=this._XB.offset;});}},gmlshape:{enumerable:true,get :()=>{return this._XB.shape; },set :(_Zo)=>{this._3f2(_Sf2._2f2().shape,_Zo);this._UA1.forEach((_4f2)=>{const shape=_4f2.parameters.get("shape");shape.value=this._XB.shape;});}}});}_Sf2._2f2=()=>({bypass:_Ff1._2f2().bypass,rate:{name:"rate",_8f2:false,defaultValue:5.0,minValue:0.0,maxValue:20.0},intensity:{name:"intensity",_8f2:false,defaultValue:1.0,minValue:0.0,maxValue:1.0},offset:{name:"offset",_8f2:false,defaultValue:0.0,minValue:0.0,maxValue:1.0},shape:{name:"shape",_8f2:true,defaultValue:0,minValue:0,maxValue:4}});function _Za1(){ this.__type="[AudioBus]";this.__yyIsGMLObject=true;this._tf2=_Cf2._Wf2(this);this._Ef1=_Cf2._Xf2(this);this._tf2.connect(this._Ef1,0,0);this._tf2.connect(this._Ef1,1,1);this.bypass=false;this.gain=1.0;this.effects=Array(_Za1._Yf2).fill(undefined);this._UA1=Array(_Za1._Yf2).fill(undefined);this._DE1=new Proxy(this.effects,{set :(_pt,_Zf2,_Vn,__f2)=>{const _0g2=parseInt(_Zf2);if(_Za1._1g2(_0g2))this._2g2(_0g2,this._3g2(_Vn));_pt[_Zf2]=_Vn;}});Object.defineProperties(this,{gmlbypass:{enumerable:true,get :()=>{ return this.bypass;},set :(_Xb1)=>{this.bypass=yyGetBool(_Xb1);const bypass=this._tf2.parameters.get("bypass");bypass.value=this.bypass;}},gmlgain:{enumerable:true,get :()=>{return this.gain;},set :(_jc1)=>{this.gain=max(0.0,_jc1);const gain=this._Ef1.parameters.get("gain");gain.value=this.gain;}},gmleffects:{enumerable:true,get :()=>{return this._DE1;},set :(_4g2)=>{}}});}_Za1._Yf2=8;_Za1.prototype._ad1=function(_sj,_5g2,_6g2){_sj.connect(this._tf2,_5g2,_6g2);};_Za1.prototype._2b1=function(_Zj1,_5g2,_6g2){ this._Ef1.connect(_Zj1,_5g2,_6g2);};_Za1.prototype._7g2=function(_8g2){const _UA1=this._UA1.slice(_8g2+1,_Za1._Yf2);const _9g2=_UA1.find((_4f2)=>_4f2!==undefined);return(_9g2!==undefined)?_9g2.input:this._Ef1;};_Za1.prototype._ag2=function(_8g2){const _UA1=this._UA1.slice(0,_8g2);const _bg2=_UA1.findLast((_4f2)=>_4f2!==undefined);return(_bg2!==undefined)?_bg2.output:this._tf2;};_Za1.prototype._2g2=function(_8g2,_cg2){const _dg2=this._UA1[_8g2];if(_dg2===undefined&&_cg2===undefined)return;const _bg2=this._ag2(_8g2); const _9g2=this._7g2(_8g2);if(_dg2!==undefined){_bg2.disconnect(_dg2);_dg2.disconnect();this.effects[_8g2]._eg2(_dg2);}else {_bg2.disconnect(_9g2,0,0);}if(_cg2===undefined){_bg2.connect(_9g2,0,0);}else {_bg2.connect(_cg2.input,0,0);_cg2.output.connect(_9g2,0,0);}this._UA1[_8g2]=_cg2;};_Za1.prototype._3g2=function(_Vn){if(_Vn instanceof _Ff1){return _Vn._rf2();}if(_Vn===undefined){return _Vn;}throw new Error("Value must be Struct.AudioEffect or undefined");};_Za1._1g2=function(_vH){if(_vH>=0&&_vH<_Za1._Yf2)return true; return false;};function _Ya1(){this._Ef1=_Da1(g_WebAudioContext);this.bypass=false;this.gain=1.0;this.effects=Array(_Za1._Yf2).fill(undefined);this._DE1=new Proxy(this.effects,{set :(_pt,_Zf2,_Vn,__f2)=>{const _0g2=parseInt(_Zf2);if(_Za1._1g2(_0g2))_Vn=this._3g2(_Vn);_pt[_Zf2]=_Vn;}});Object.defineProperties(this,{gmlbypass:{enumerable:true,get :()=>{return this.bypass;},set :(_Xb1)=>{this.bypass=yyGetBool(_Xb1);}},gmlgain:{enumerable:true,get :()=>{return this.gain;},set :(_jc1)=>{this.gain=max(0.0,_jc1); const gain=this._Ef1.gain;gain.setTargetAtTime(this.gain,0,_Ze2._5f2);}},gmleffects:{enumerable:true,get :()=>{return this._DE1;},set :(_4g2)=>{}}});}_Ya1.prototype._ad1=function(_sj,_5g2,_6g2){_sj.connect(this._Ef1);};_Ya1.prototype._2b1=function(_Zj1,_5g2,_6g2){this._Ef1.connect(_Zj1,_5g2,_6g2);};_Ya1.prototype._3g2=function(_Vn){if(_Vn instanceof _Ff1)return _Vn;if(_Vn===undefined)return _Vn;throw new Error("Value must be Struct.AudioEffect or undefined");};function _Ze2(){}_Ze2._5f2=0.005;_Ze2.__e2={_0f2:0, _gf2:1,_Ff2:2,_Kf2:3,_Nf2:4,_Qf2:5,_Tf2:6,_Of2:7,_Gf2:8,_Mf2:9,_jf2:10,_af2:11};_Ze2._fg2=function(_od){switch(_od){case _Ze2.__e2._0f2:return "bitcrusher-processor";case _Ze2.__e2._gf2:return "delay-processor";case _Ze2.__e2._Ff2:return "gain-processor";case _Ze2.__e2._Kf2:return "hpf2-processor";case _Ze2.__e2._Nf2:return "lpf2-processor";case _Ze2.__e2._Qf2:return "reverb1-processor";case _Ze2.__e2._Tf2:return "tremolo-processor";case _Ze2.__e2._Of2:return "peak-eq-processor";case _Ze2.__e2._Gf2:return "hi-shelf-processor"; case _Ze2.__e2._Mf2:return "lo-shelf-processor";case _Ze2.__e2._jf2:return null;case _Ze2.__e2._af2:return "compressor-processor";default :return null;}};function _Ff1(_od){this.__type="[AudioEffect]";this.__yyIsGMLObject=true;this._UA1=[];this.type=_od;this._XB={};Object.defineProperties(this,{gmltype:{enumerable:true,get :()=>{return this.type;},set :(_od)=>{throw new Error("Unable to set AudioEffect.type - property is read-only");}},gmlbypass:{enumerable:true,get :()=>{return this._XB.bypass;},set :(_Xb1)=>{this._3f2(_Ff1._2f2().bypass, _Xb1);this._UA1.forEach((_4f2)=>{const bypass=_4f2.parameters.get("bypass");bypass.value=this._XB.bypass;});}}});}_Ff1._Gf1=function(_od,_qt){switch(_od){case _Ze2.__e2._0f2:return new _Ye2(_qt);case _Ze2.__e2._gf2:return new _ff2(_qt);case _Ze2.__e2._Ff2:return new _Ef2(_qt);case _Ze2.__e2._Kf2:return new _mf2(_qt);case _Ze2.__e2._Nf2:return new _pf2(_qt);case _Ze2.__e2._Qf2:return new _Pf2(_qt);case _Ze2.__e2._Tf2:return new _Sf2(_qt);case _Ze2.__e2._Of2:return new _kf2(_qt);case _Ze2.__e2._Gf2:return new _of2(_qt);case _Ze2.__e2._Mf2:return new _nf2(_qt); case _Ze2.__e2._jf2:return new _if2(_qt);case _Ze2.__e2._af2:return new _9f2(_qt);default :return null;}};_Ff1._2f2=()=>({bypass:{name:"bypass",_8f2:true,defaultValue:0,minValue:0,maxValue:1}});_Ff1.prototype._rf2=function(){const _Jl=_Cf2._gg2(this);this._UA1.push(_Jl);const _q4={input:_Jl,output:_Jl};return _q4;};_Ff1.prototype._1f2=function(_qt,_hg2){Object.values(_hg2).forEach(_ig2=>{const _ue=(()=>{if(_qt===undefined||_qt["gml"+_ig2.name]===undefined){return _ig2.defaultValue;}return _qt["gml"+_ig2.name]; })();this._3f2(_ig2,_ue);});};_Ff1.prototype._3f2=function(_ig2,_B3){_B3=clamp(_B3,_ig2.minValue,_ig2.maxValue);if(_ig2._8f2===true)_B3=~~_B3;this._XB[_ig2.name]=_B3;};_Ff1.prototype._eg2=function(_4f2){const _xb=this._UA1.findIndex(_ah=>_ah===_4f2);if(_xb!==-1){_Cf2._jg2(this._UA1[_xb]);this._UA1.splice(_xb,1);}};class _cd1{constructor(){if(_3b1()===false){console.error("Cannot create audio emitters until audio engine is running - check audio_system_is_initialised()");return null;}this.gainnode=_Da1(g_WebAudioContext); this._Cd1=_cd1._kg2();this._Cd1.connect(this.gainnode);this._1e1();}}_cd1._kg2=function(){if(PannerNode===undefined){return g_WebAudioContext.createPanner();}return new PannerNode(g_WebAudioContext);};_cd1.prototype._1e1=function(){this.setPosition(0.0,0.0,0.01);this._Cd1.refDistance=100.0;this._Cd1.maxDistance=100000.0;this._Cd1.rolloffFactor=1.0;this._Cd1._lg2=360.0;this._Cd1._mg2=0.0;this._Cd1._ng2=0.0;this._Cd1.distanceModel=_xd1;this._Cd1.panningModel="equalpower";this.gainnode.gain.value=1.0; _1b1._ad1(this.gainnode);this._Df1=_1b1;this.pitch=1.0;if(_yd1===_Z91.__91){this._Cd1.rolloffFactor=0.0;this._Dd1=1.0;}this.active=true;};_cd1.prototype._fd1=function(){return this._Cd1;};_cd1.prototype._vd1=function(){return this.active===true;};_cd1.prototype._Jf1=function(){return this._Df1;};_cd1.prototype._If1=function(_Hf1){this.gainnode.disconnect();_Hf1._ad1(this.gainnode);this._Df1=_Hf1;};_cd1.prototype._dd1=function(_2e1,_3e1,_4e1){this._Cd1.refDistance=_2e1;this._Cd1.maxDistance=_3e1;this._Cd1.rolloffFactor=_4e1; this._Cd1.distanceModel=_xd1;if(_yd1===_Z91.__91){this._Dd1=this._Cd1.rolloffFactor;this._Cd1.rolloffFactor=0.0;}};_cd1.prototype._Yd1=function(){return this._Cd1.positionX.value;};_cd1.prototype._Zd1=function(){return this._Cd1.positionY.value;};_cd1.prototype.__d1=function(){return this._Cd1.positionZ.value;};_cd1.prototype.setPosition=function(_q5,_r5,_1d){this._Cd1.positionX.value=_q5;this._Cd1.positionY.value=_r5;this._Cd1.positionZ.value=_1d;};var _8d1={_9d1:0,_bd1:1,_ed1:2};function _id1(_gb1){ if(this._og2(_gb1,"sound",this,"asset_index",true,yyGetInt32,_ub1._pg2)){this._Fb1=_Gb1(this.asset_index);if(this._Fb1!==null){this.loopStart=this._Fb1.loopStart;this.loopEnd=this._Fb1.loopEnd;}}if(this._og2(_gb1,"emitter",this,"emitter_index",true,yyGetInt32,_ub1._pg2)){this.type=_8d1._ed1;this.emitter=_I91[this.emitter_index];}this._og2(_gb1,"priority",this,"priority",true,yyGetReal,_ub1._qg2);this._og2(_gb1,"loop",this,"loop",true,yyGetBool,_ub1._rg2);this._og2(_gb1,"gain",this,"gain",true,yyGetReal, _ub1._sg2);this.gain=Math.max(0.0,this.gain);this._og2(_gb1,"offset",this,"offset",true,yyGetReal,_ub1._tg2);if(this.offset!==_ub1._tg2)this.offset=Math.max(0.0,this.offset);this._og2(_gb1,"pitch",this,"pitch",true,yyGetReal,_ub1._ug2);this.pitch=Math.max(0.0,this.pitch);if(typeof _gb1.gmlposition==="object"&&this.type===undefined){this.type=_8d1._bd1;const position=(_gb1.position!==undefined)?_gb1.position:_gb1.gmlposition;this.position={};this._og2(position,"x",this.position,"x",false,yyGetReal, 0);this._og2(position,"y",this.position,"y",false,yyGetReal,0);this._og2(position,"z",this.position,"z",false,yyGetReal,0);this._og2(position,"falloff_ref",this.position,"falloff_ref",true,yyGetReal,0);this._og2(position,"falloff_max",this.position,"falloff_max",true,yyGetReal,1);this._og2(position,"falloff_factor",this.position,"falloff_factor",true,yyGetReal,1);}if(this.type===undefined){this.type=_8d1._9d1;}}_id1.prototype._og2=function(_vg2,_wg2,_xg2,_yg2,_zg2,_Ag2,_BO){if(_vg2[_wg2]!==undefined){ _xg2[_yg2]=_Ag2(_vg2[_wg2]);return true;}if(_zg2&&_vg2["gml"+_wg2]!==undefined){_xg2[_yg2]=_Ag2(_vg2["gml"+_wg2]);return true;}_xg2[_yg2]=_BO;return false;};_id1.prototype._6d1=function(){if(this._Fb1==null){debug("Audio playback failed - invalid asset index: "+this.asset_index);return true;}if(!audio_group_is_loaded(this._Fb1.groupId)){debug(audio_get_name(this.asset_index)+": Audio Group "+this._Fb1.groupId+" is not loaded");return true;}if(_Kc1()===false){debug("Audio playback failed. WebAudio Context suspended (user must interact with the page before audio can be played)."); return true;}if(this.type===_8d1._ed1&&this.emitter===undefined){debug("Attempting to play sound on inactive emitter: "+this.emitter_index);return true;}return false;};function _ub1(){}_ub1._pg2=-1;_ub1._tg2=-1;_ub1._qg2=0;_ub1._rg2=false;_ub1._sg2=1;_ub1._Bg2=0;_ub1._ug2=1;_ub1._vb1=function(_ya1){const _Fb1=_ub1._Cg2(_ya1._pb1);const _B71=_ub1._Dg2(_ya1._pb1);return _ya1.gain.get()*_Fb1.gain.get()*_B71.gain.get();};_ub1._Ab1=function(_ya1){if(_ya1._ob1==_ub1._tg2){const _Fb1=_ub1._Cg2(_ya1._pb1);return _Fb1.offset; }return _ya1._ob1;};_ub1._Db1=function(_ya1){const _Fb1=_ub1._Cg2(_ya1._pb1);const emitter=_ub1._Eg2(_ya1._ib1);return _ya1.pitch*_Fb1.pitch*emitter.pitch;};_ub1._Cg2=function(_gd1){const _Fb1=_Gb1(_gd1);if(_Fb1!=null){return(()=>({gain:_Fb1.gain,offset:_Fb1._7b1,pitch:_Fb1.pitch}))();}return(()=>({gain:new _5b1(_ub1._sg2),offset:_ub1._Bg2,pitch:_ub1._ug2}))();};_ub1._Eg2=function(_Bd1){if(_Bd1!=null){return(()=>({gain:_Bd1.gainnode.gain.value,pitch:_Bd1.pitch}))();}return(()=>({gain:_ub1._sg2,pitch:_ub1._ug2} ))();};_ub1._Dg2=function(_Ee1){const _Fb1=_Gb1(_Ee1);if(_Fb1!=null){const _B71=_wa1[_Fb1.groupId];if(_B71!==undefined){return(()=>({gain:_B71.gain,}))();}}return(()=>({gain:new _5b1(_ub1._sg2),}))();};function _Fg2(){this._UA1=[];this._z91=setInterval(()=>this.cleanup(),5000);}_Fg2.prototype._Wf2=function(_NG){const _sf2=g_WebAudioContext.destination.channelCount;const _Jl=new AudioWorkletNode(g_WebAudioContext,"audio-bus-input",{numberOfInputs:1,numberOfOutputs:2,outputChannelCount:[_sf2,_sf2],channelCount:_sf2, channelCountMode:"explicit"});this._UA1.push({_Df2:new WeakRef(_NG),_Jl:_Jl});return _Jl;};_Fg2.prototype._Xf2=function(_NG){const _sf2=g_WebAudioContext.destination.channelCount;const _Jl=new AudioWorkletNode(g_WebAudioContext,"audio-bus-output",{numberOfInputs:2,numberOfOutputs:1,outputChannelCount:[_sf2],channelCount:_sf2,channelCountMode:"explicit"});this._UA1.push({_Df2:new WeakRef(_NG),_Jl:_Jl});return _Jl;};_Fg2.prototype._gg2=function(_NG){const _Gg2=_Ze2._fg2(_NG.type);const _sf2=g_WebAudioContext.destination.channelCount; const _Jl=new AudioWorkletNode(g_WebAudioContext,_Gg2,{numberOfInputs:1,numberOfOutputs:1,outputChannelCount:[_sf2],parameterData:_NG._XB,channelCount:_sf2,channelCountMode:"explicit"});this._UA1.push({_Df2:new WeakRef(_NG),_Jl:_Jl});return _Jl;};_Fg2.prototype.cleanup=function(){this._UA1=this._UA1.filter((_Hg2)=>{const _Df2=_Hg2._Df2.deref();if(_Df2===undefined){_Hg2._Jl.port.postMessage("kill");return false;}return true;});};_Fg2.prototype._jg2=function(_4f2){const _xb=this._UA1.findIndex(_Hg2=>_Hg2._Jl===_4f2); if(_xb!==-1){this._UA1[_xb]._Jl.port.postMessage("kill");this._UA1.splice(_xb,1);}};var _Cf2=new _Fg2();_mh:var spine=(()=>{var _Ig2=Object.defineProperty;var _Jg2=(target)=>_Ig2(target,"__esModule",{value:true});var _Kg2=(target,all)=>{_Jg2(target);for(var name in all)_Ig2(target,name,{get :all[name],enumerable:true});};var _Lg2={};_Kg2(_Lg2,{_Mg2:()=>_Mg2,_Ng2:()=>_Ng2,_b3:()=>_b3,_Og2:()=>_Og2,_a3:()=>_a3,_Pg2:()=>_Pg2,_c5:()=>_c5,_Qg2:()=>_Qg2,_Rg2:()=>_Rg2,_Sg2:()=>_Sg2,_8a:()=>_8a,_Tg2:()=>_Tg2,_Ug2:()=>_Ug2, _h9:()=>_h9,_Vg2:()=>_Vg2,_Q9:()=>_Q9,_i4:()=>_i4,_Wg2:()=>_Wg2,_Xg2:()=>_Xg2,_Yg2:()=>_Yg2,_Zg2:()=>_Zg2,__g2:()=>__g2,_0h2:()=>_0h2,_1h2:()=>_1h2,_2h2:()=>_2h2,Event:()=>Event,_3h2:()=>_3h2,_4h2:()=>_4h2,_K7:()=>_K7,_5h2:()=>_5h2,_6h2:()=>_6h2,_7h2:()=>_7h2,_8h2:()=>_8h2,_9h2:()=>_9h2,_ah2:()=>_ah2,_bh2:()=>_bh2,_ch2:()=>_ch2,_dh2:()=>_dh2,_eh2:()=>_eh2,_fh2:()=>_fh2,_gh2:()=>_gh2,_hh2:()=>_hh2,_f9:()=>_f9,_ih2:()=>_ih2,_jh2:()=>_jh2,_kh2:()=>_kh2,_lh2:()=>_lh2,_mh2:()=>_mh2,_nh2:()=>_nh2,_oh2:()=>_oh2, _ph2:()=>_ph2,_qh2:()=>_qh2,_rh2:()=>_rh2,_sh2:()=>_sh2,_th2:()=>_th2,_uh2:()=>_uh2,_vh2:()=>_vh2,_wh2:()=>_wh2,_xh2:()=>_xh2,_yh2:()=>_yh2,_d9:()=>_d9,_zh2:()=>_zh2,_Ah2:()=>_Ah2,_Bh2:()=>_Bh2,_Ch2:()=>_Ch2,_Dh2:()=>_Dh2,_Eh2:()=>_Eh2,_Fh2:()=>_Fh2,_Gh2:()=>_Gh2,_Hh2:()=>_Hh2,_Ih2:()=>_Ih2,_93:()=>_93,_Jh2:()=>_Jh2,_o3:()=>_o3,_R9:()=>_R9,_Kh2:()=>_Kh2,_R8:()=>_R8,_v7:()=>_v7,_Lh2:()=>_Lh2,_Mh2:()=>_Mh2,_Nh2:()=>_Nh2,_Oh2:()=>_Oh2,_Ph2:()=>_Ph2,_Qh2:()=>_Qh2,_ck1:()=>_ck1,_85:()=>_85,_J4:()=>_J4, _W4:()=>_W4,_M4:()=>_M4,_Rh2:()=>_Rh2,_P4:()=>_P4,_Sh2:()=>_Sh2,_Th2:()=>_Th2,_Uh2:()=>_Uh2,_Vh2:()=>_Vh2,_Wh2:()=>_Wh2,_Xh2:()=>_Xh2,_Yh2:()=>_Yh2,_Zh2:()=>_Zh2,__h2:()=>__h2,_0i2:()=>_0i2,_1i2:()=>_1i2,_2i2:()=>_2i2,_3i2:()=>_3i2,_4i2:()=>_4i2,_5i2:()=>_5i2});var _eh2=class {constructor(){this._Hb=new Array();}add(value){let _6i2=this._6i2(value);this._Hb[value|0]=value|0;return !_6i2;}_6i2(value){return this._Hb[value|0]!=void 0;}remove(value){this._Hb[value|0]=void 0;}clear(){this._Hb.length=0;}};var _Ph2=class { constructor(){this._7i2={};this.size=0;}add(value){let _6i2=this._7i2[value];this._7i2[value]=true;if(!_6i2){this.size++;return true;}return false;}_8i2(values){let _9i2=this.size;for(var i=0,_t6=values.length;i<_t6;i++)this.add(values[i]);return _9i2!=this.size;}_6i2(value){return this._7i2[value];}clear(){this._7i2={};this.size=0;}};var _ai2=class {constructor(_e4=0,_f4=0,_g4=0,_h4=0){this._e4=_e4;this._f4=_f4;this._g4=_g4;this._h4=_h4;}set(_e4,_f4,_g4,_h4){this._e4=_e4;this._f4=_f4;this._g4=_g4;this._h4=_h4; return this.clamp();}_i5(c){this._e4=c._e4;this._f4=c._f4;this._g4=c._g4;this._h4=c._h4;return this;}_bi2(_ci2){_ci2=_ci2.charAt(0)=="#"?_ci2.substr(1):_ci2;this._e4=parseInt(_ci2.substr(0,2),16)/255;this._f4=parseInt(_ci2.substr(2,2),16)/255;this._g4=parseInt(_ci2.substr(4,2),16)/255;this._h4=_ci2.length!=8?1:parseInt(_ci2.substr(6,2),16)/255;return this;}add(_e4,_f4,_g4,_h4){this._e4+=_e4;this._f4+=_f4;this._g4+=_g4;this._h4+=_h4;return this.clamp();}clamp(){if(this._e4<0)this._e4=0;else if(this._e4>1)this._e4=1; if(this._f4<0)this._f4=0;else if(this._f4>1)this._f4=1;if(this._g4<0)this._g4=0;else if(this._g4>1)this._g4=1;if(this._h4<0)this._h4=0;else if(this._h4>1)this._h4=1;return this;}static _di2(color,value){color._e4=((value&4278190080)>>>24)/255;color._f4=((value&16711680)>>>16)/255;color._g4=((value&65280)>>>8)/255;color._h4=(value&255)/255;}static _ei2(color,value){color._e4=((value&16711680)>>>16)/255;color._f4=((value&65280)>>>8)/255;color._g4=(value&255)/255;}static _g62(_ci2){return new _ai2()._bi2(_ci2); }};var _i4=_ai2;_i4._fi2=new _ai2(1,1,1,1);_i4.RED=new _ai2(1,0,0,1);_i4._gi2=new _ai2(0,1,0,1);_i4._hi2=new _ai2(0,0,1,1);_i4._ii2=new _ai2(1,0,1,1);var _ji2=class {static clamp(value,min,max){if(valuemax)return max;return value;}static _ki2(_45){return Math.cos(_45*_ji2._li2);}static _mi2(_45){return Math.sin(_45*_ji2._li2);}static _ni2(value){return value>0?1:value<0?-1:0;}static _p62(x){return x>0?Math.floor(x):Math.ceil(x);}static _oi2(x){let y=Math.pow(Math.abs(x),1/3);return x<0?-y:y;}static _pi2(min, max){return _ji2._qi2(min,max,(min+max)*0.5);}static _qi2(min,max,mode){let _X4=Math.random();let _Bm=max-min;if(_X4<=(mode-min)/_Bm)return min+Math.sqrt(_X4*_Bm*(mode-min));return max-Math.sqrt((1-_X4)*_Bm*(max-mode));}static _FY1(value){return value&&(value&value-1)===0;}};var _hh2=_ji2;_hh2.PI=3.1415927;_hh2._ri2=_ji2.PI*2;_hh2._si2=180/_ji2.PI;_hh2._ti2=_ji2._si2;_hh2._ui2=_ji2.PI/180;_hh2._li2=_ji2._ui2;var _fh2=class {apply(start,end,_h4){return start+(end-start)*this._vi2(_h4);}};var _th2=class extends _fh2{ constructor(power){super();this.power=2;this.power=power;}_vi2(_h4){if(_h4<=0.5)return Math.pow(_h4*2,this.power)/2;return Math.pow((_h4-1)*2,this.power)/(this.power%2==0?-2:2)+1;}};var _uh2=class extends _th2{constructor(power){super(power);}_vi2(_h4){return Math.pow(_h4-1,this.power)*(this.power%2==0?-1:1)+1;}};var _wi2=class {static _xi2(source,_yi2,_ba,_zi2,_Ai2){for(let i=_yi2,__5=_zi2;i<_yi2+_Ai2;i++,__5++){_ba[__5]=source[i];}}static _Bi2(_Hb,_Ci2,_Di2,value){for(let i=_Ci2;i<_Di2;i++)_Hb[i]=value;}static _Ei2(_Hb, size,value=0){let _9i2=_Hb.length;if(_9i2==size)return _Hb;_Hb.length=size;if(_9i2=size)return _Hb;return _wi2._Ei2(_Hb,size,value);}static _Gi2(size,defaultValue){let _Hb=new Array(size);for(let i=0;i0?this._Ri2.pop():this._Qi2();}_Ti2(_jl){if(_jl._1e1)_jl._1e1();this._Ri2.push(_jl);}_Ui2(_Ri2){for(let i=0;i<_Ri2.length;i++)this._Ti2(_Ri2[i]);}clear(){this._Ri2.length=0;}};var _3i2=class {constructor(x=0,y=0){this.x=x;this.y=y;}set(x,y){this.x=x;this.y=y; return this;}length(){let x=this.x;let y=this.y;return Math.sqrt(x*x+y*y);}_Vi2(){let _Yi=this.length();if(_Yi!=0){this.x/=_Yi;this.y/=_Yi;}return this;}};var _Sh2=class {constructor(){this._Wi2=0.064;this._Xi2=0;this._qi=0;this._kq1=0;this._Yi2=Date.now()/1e3;this._F5=0;this._Zi2=0;}_M5(){let now=Date.now()/1e3;this._qi=now-this._Yi2;this._Zi2+=this._qi;this._kq1+=this._qi;if(this._qi>this._Wi2)this._qi=this._Wi2;this._Yi2=now;this._F5++;if(this._Zi2>1){this._Xi2=this._F5/this._Zi2;this._Zi2=0;this._F5=0; }}};var _5i2=class {constructor(__i2=32){this._0j2=0;this._Ee=0;this.mean=0;this._eh1=true;this.values=new Array(__i2);}_1j2(){return this._0j2>=this.values.length;}_2j2(value){if(this._0j2this.values.length-1)this._Ee=0;this._eh1=true;}_3j2(){if(this._1j2()){if(this._eh1){let mean=0;for(let i=0;i>1)*_Ga;let skeleton=slot.bone.skeleton;let _8j2=slot.deform;let vertices=this.vertices;let bones=this.bones;if(!bones){if(_8j2.length>0)vertices=_8j2;let bone=slot.bone;let x=bone._h7;let y=bone._i7;let _h4=bone._h4,_g4=bone._g4,c=bone.c,_Bm=bone._Bm;for(let __4=start,w=offset; w<_q8;__4+=2,w+=_Ga){let _Qa=vertices[__4],_Ra=vertices[__4+1];_7j2[w]=_Qa*_h4+_Ra*_g4+x;_7j2[w+1]=_Qa*c+_Ra*_Bm+y;}return;}let _Y4=0,_9j2=0;for(let i=0;i0)_Yi2%=this.duration;}let _J5=this._J5;for(let i=0,_t6=_J5.length;i<_t6;i++)_J5[i].apply(skeleton,_Yi2,time,events,alpha,_vR,direction);}};var _ih2;(function(_ij2){ _ij2[_ij2["setup"]=0]="setup";_ij2[_ij2["first"]=1]="first";_ij2[_ij2["replace"]=2]="replace";_ij2[_ij2["add"]=3]="add";})(_ih2||(_ih2={}));var _jh2;(function(_jj2){_jj2[_jj2["mixIn"]=0]="mixIn";_jj2[_jj2["mixOut"]=1]="mixOut";})(_jh2||(_jh2={}));var _kj2={rotate:0,x:1,y:2,scaleX:3,scaleY:4,shearX:5,shearY:6,rgb:7,alpha:8,rgb2:9,attachment:10,deform:11,event:12,drawOrder:13,ikConstraint:14,transformConstraint:15,pathConstraintPosition:16,pathConstraintSpacing:17,pathConstraintMix:18};var _Th2=class { constructor(_F5,_lj2){this._lj2=_lj2;this.frames=_2i2._Hi2(_F5*this._mj2());}_gj2(){return this._lj2;}_mj2(){return 1;}_nj2(){return this.frames.length/this._mj2();}_oj2(){return this.frames[this.frames.length-this._mj2()];}static _pj2(frames,time){let _t6=frames.length;for(let i=1;i<_t6;i++)if(frames[i]>time)return i-1;return _t6-1;}static search(frames,time,step){let _t6=frames.length;for(let i=step;i<_t6;i+=step)if(frames[i]>time)return i-step;return _t6-step;}};var _Xg2=class extends _Th2{constructor(_F5,_qj2, _lj2){super(_F5,_lj2);this._rj2=_2i2._Hi2(_F5+_qj2*18);this._rj2[_F5-1]=1;}_sj2(frame){this._rj2[frame]=0;}_tj2(frame){this._rj2[frame]=1;}_uj2(_qj2){let size=this._nj2()+_qj2*18;if(this._rj2.length>size){let _vj2=_2i2._Hi2(size);_2i2._xi2(this._rj2,0,_vj2,0,size);this._rj2=_vj2;}}_wj2(_xj2,frame,value,_1E,_yj2,_zj2,_Aj2,_Bj2,_Cj2,_2E,_Dj2){let _rj2=this._rj2;let i=this._nj2()+_xj2*18;if(value==0)_rj2[frame]=2+i;let _Ej2=(_1E-_zj2*2+_Bj2)*0.03,_Fj2=(_yj2-_Aj2*2+_Cj2)*0.03;let _Gj2=((_zj2-_Bj2)*3-_1E+_2E)*6e-3, _Hj2=((_Aj2-_Cj2)*3-_yj2+_Dj2)*6e-3;let _Ij2=_Ej2*2+_Gj2,_Jj2=_Fj2*2+_Hj2;let _db=(_zj2-_1E)*0.3+_Ej2+_Gj2*0.16666667,_eb=(_Aj2-_yj2)*0.3+_Fj2+_Hj2*0.16666667;let x=_1E+_db,y=_yj2+_eb;for(let _t6=i+18;i<_t6;i+=2){_rj2[i]=x;_rj2[i+1]=y;_db+=_Ij2;_eb+=_Jj2;_Ij2+=_Gj2;_Jj2+=_Hj2;x+=_db;y+=_eb;}}_Kj2(time,_G3,_Lj2,i){let _rj2=this._rj2;if(_rj2[i]>time){let _y6=this.frames[_G3],_z6=this.frames[_G3+_Lj2];return _z6+(time-_y6)/(_rj2[i]-_y6)*(_rj2[i+1]-_z6);}let _t6=i+18;for(i+=2;i<_t6;i+=2){if(_rj2[i]>=time){let _y6=_rj2[i-2], _z6=_rj2[i-1];return _z6+(time-_y6)/(_rj2[i]-_y6)*(_rj2[i+1]-_z6);}}_G3+=this._mj2();let x=_rj2[_t6-2],y=_rj2[_t6-1];return y+(time-x)/(this.frames[_G3]-x)*(this.frames[_G3+_Lj2]-y);}};var _Yg2=class extends _Xg2{constructor(_F5,_qj2,_Mj2){super(_F5,_qj2,[_Mj2]);}_mj2(){return 2;}_Nj2(frame,time,value){frame<<=1;this.frames[frame]=time;this.frames[frame+1]=value;}_Oj2(time){let frames=this.frames;let i=frames.length-2;for(let _0G=2;_0G<=i;_0G+=2){if(frames[_0G]>time){i=_0G-2;break;}}let _Pj2=this._rj2[i>>1]; switch(_Pj2){case 0:let _Qj2=frames[i],value=frames[i+1];return value+(time-_Qj2)/(frames[i+2]-_Qj2)*(frames[i+2+1]-value);case 1:return frames[i+1];}return this._Kj2(time,i,1,_Pj2-2);}};var _Zg2=class extends _Xg2{constructor(_F5,_qj2,_Rj2,_Sj2){super(_F5,_qj2,[_Rj2,_Sj2]);}_mj2(){return 3;}_Nj2(frame,time,_yj2,_Dj2){frame*=3;this.frames[frame]=time;this.frames[frame+1]=_yj2;this.frames[frame+2]=_Dj2;}};var _Ah2=class extends _Yg2{constructor(_F5,_qj2,_Tj2){super(_F5,_qj2,_kj2.rotate+"|"+_Tj2);this._Tj2=0;this._Tj2=_Tj2; }apply(skeleton,_Yi2,time,events,alpha,_vR,direction){let bone=skeleton.bones[this._Tj2];if(!bone.active)return;let frames=this.frames;if(time>2];switch(_Pj2){case 0:let _Qj2=frames[i];_e4=frames[i+1];_f4=frames[i+2];_g4=frames[i+3];let _J6=(time-_Qj2)/(frames[i+4]-_Qj2);_e4+=(frames[i+4+1]-_e4)*_J6;_f4+=(frames[i+4+2]-_f4)*_J6;_g4+=(frames[i+4+3]-_g4)*_J6;break;case 1:_e4=frames[i+1];_f4=frames[i+2];_g4=frames[i+3];break;default :_e4=this._Kj2(time,i,1,_Pj2-2);_f4=this._Kj2(time,i,2,_Pj2+18-2);_g4=this._Kj2(time,i,3,_Pj2+18*2-2);}if(alpha==1){color._e4=_e4;color._f4=_f4; color._g4=_g4;}else {if(_vR==0){let setup=slot.data.color;color._e4=setup._e4;color._f4=setup._f4;color._g4=setup._g4;}color._e4+=(_e4-color._e4)*alpha;color._f4+=(_f4-color._f4)*alpha;color._g4+=(_g4-color._g4)*alpha;}}};var _Mg2=class extends _Yg2{constructor(_F5,_qj2,_84){super(_F5,_qj2,_kj2.alpha+"|"+_84);this._84=0;this._84=_84;}apply(skeleton,_Yi2,time,events,alpha,_vR,direction){let slot=skeleton.slots[this._84];if(!slot.bone.active)return;let color=slot.color;if(time>3];switch(_Pj2){case 0:let _Qj2=frames[i];_e4=frames[i+1];_f4=frames[i+2];_g4=frames[i+3];_h4=frames[i+4];_YH=frames[i+5];__H=frames[i+6];_Vh=frames[i+7];let _J6=(time-_Qj2)/(frames[i+8]-_Qj2);_e4+=(frames[i+8+1]-_e4)*_J6;_f4+=(frames[i+8+2]-_f4)*_J6; _g4+=(frames[i+8+3]-_g4)*_J6;_h4+=(frames[i+8+4]-_h4)*_J6;_YH+=(frames[i+8+5]-_YH)*_J6;__H+=(frames[i+8+6]-__H)*_J6;_Vh+=(frames[i+8+7]-_Vh)*_J6;break;case 1:_e4=frames[i+1];_f4=frames[i+2];_g4=frames[i+3];_h4=frames[i+4];_YH=frames[i+5];__H=frames[i+6];_Vh=frames[i+7];break;default :_e4=this._Kj2(time,i,1,_Pj2-2);_f4=this._Kj2(time,i,2,_Pj2+18-2);_g4=this._Kj2(time,i,3,_Pj2+18*2-2);_h4=this._Kj2(time,i,4,_Pj2+18*3-2);_YH=this._Kj2(time,i,5,_Pj2+18*4-2);__H=this._Kj2(time,i,6,_Pj2+18*5-2);_Vh=this._Kj2(time, i,7,_Pj2+18*6-2);}if(alpha==1){light.set(_e4,_f4,_g4,_h4);dark._e4=_YH;dark._f4=__H;dark._g4=_Vh;}else {if(_vR==0){light._i5(slot.data.color);let _Vj2=slot.data._wa;dark._e4=_Vj2._e4;dark._f4=_Vj2._f4;dark._g4=_Vj2._g4;}light.add((_e4-light._e4)*alpha,(_f4-light._f4)*alpha,(_g4-light._g4)*alpha,(_h4-light._h4)*alpha);dark._e4+=(_YH-dark._e4)*alpha;dark._f4+=(__H-dark._f4)*alpha;dark._g4+=(_Vh-dark._g4)*alpha;}}};var _vh2=class extends _Xg2{constructor(_F5,_qj2,_84){super(_F5,_qj2,[_kj2.rgb+"|"+_84,_kj2.rgb2+"|"+_84]); this._84=0;this._84=_84;}_mj2(){return 7;}_Nj2(frame,time,_e4,_f4,_g4,_YH,__H,_Vh){frame*=7;this.frames[frame]=time;this.frames[frame+1]=_e4;this.frames[frame+2]=_f4;this.frames[frame+3]=_g4;this.frames[frame+4]=_YH;this.frames[frame+5]=__H;this.frames[frame+6]=_Vh;}apply(skeleton,_Yi2,time,events,alpha,_vR,direction){let slot=skeleton.slots[this._84];if(!slot.bone.active)return;let frames=this.frames;let light=slot.color,dark=slot._wa;if(timetime){let _y6=this.frames[frame];return _rj2[i+1]*(time-_y6)/(_rj2[i]-_y6);}let _t6=i+18;for(i+=2;i<_t6;i+=2){if(_rj2[i]>=time){let _y6=_rj2[i-2],_z6=_rj2[i-1];return _z6+(time-_y6)/(_rj2[i]-_y6)*(_rj2[i+1]-_z6);}}let x=_rj2[_t6-2],y=_rj2[_t6-1];return y+(1-y)*(time-x)/(this.frames[frame+this._mj2()]-x);}apply(skeleton,_Yi2,time, _Xj2,alpha,_vR,direction){let slot=skeleton.slots[this._84];if(!slot.bone.active)return;let _Yj2=slot._a4();if(!(_Yj2 instanceof _4i2)||_Yj2._6j2!=this.attachment)return;let deform=slot.deform;if(deform.length==0)_vR=0;let vertices=this.vertices;let vertexCount=vertices[0].length;let frames=this.frames;if(time=frames[frames.length-1]){let _0k2=vertices[frames.length-1];if(alpha==1){if(_vR==3){let _Zj2=_Yj2;if(!_Zj2.bones){let __j2=_Zj2.vertices;for(let _lu1=0;_lu1time){this.apply(skeleton,_Yi2,Number.MAX_VALUE,_Xj2,alpha,_vR,direction);_Yi2=-1;}else if(_Yi2>=frames[_F5-1])return;if(time0){if(frames[i-1]!=_Zi2)break;i--;}}for(;i<_F5&&time>=frames[i];i++)_Xj2.push(this.events[i]);}};var _K7=_5k2;_K7._lj2=[""+_kj2.event];var _6k2=class extends _Th2{constructor(_F5){ super(_F5,_6k2._lj2);this._7k2=new Array(_F5);}_nj2(){return this.frames.length;}_Nj2(frame,time,drawOrder){this.frames[frame]=time;this._7k2[frame]=drawOrder;}apply(skeleton,_Yi2,time,_Xj2,alpha,_vR,direction){if(direction==1){if(_vR==0)_2i2._xi2(skeleton.slots,0,skeleton.drawOrder,0,skeleton.slots.length);return;}if(time>2];switch(_Pj2){case 0:let _Qj2=frames[i];rotate=frames[i+1];x=frames[i+2];y=frames[i+3];let _J6=(time-_Qj2)/(frames[i+4]-_Qj2);rotate+=(frames[i+4+1]-rotate)*_J6;x+=(frames[i+4+2]-x)*_J6;y+=(frames[i+4+3]-y)*_J6; break;case 1:rotate=frames[i+1];x=frames[i+2];y=frames[i+3];break;default :rotate=this._Kj2(time,i,1,_Pj2-2);x=this._Kj2(time,i,2,_Pj2+18-2);y=this._Kj2(time,i,3,_Pj2+18*2-2);}if(_vR==0){let data=_ck2.data;_ck2._fk2=data._fk2+(rotate-data._fk2)*alpha;_ck2._gk2=data._gk2+(x-data._gk2)*alpha;_ck2._hk2=data._hk2+(y-data._hk2)*alpha;}else {_ck2._fk2+=(rotate-_ck2._fk2)*alpha;_ck2._gk2+=(x-_ck2._gk2)*alpha;_ck2._hk2+=(y-_ck2._hk2)*alpha;}}};var _b3=class {constructor(data){this.tracks=new Array();this._ok2=1; this._pk2=0;this.events=new Array();this._qk2=new Array();this._Ql=new _4h2(this);this._rk2=new _Ph2();this._sk2=false;this._tk2=new _rh2(()=>new _Uh2());this.data=data;}static _uk2(){if(!_vk2)_vk2=new _Ng2("",[],0);return _vk2;}_M5(_qi){_qi*=this._ok2;let tracks=this.tracks;for(let i=0,_t6=tracks.length;i<_t6;i++){let current=tracks[i];if(!current)continue;current._wk2=current._xk2;current._yk2=current._zk2;let _Ak2=_qi*current._ok2;if(current._XU1>0){current._XU1-=_Ak2;if(current._XU1>0)continue;_Ak2=-current._XU1; current._XU1=0;}let _kl=current._kl;if(_kl){let _Bk2=current._yk2-_kl._XU1;if(_Bk2>=0){_kl._XU1=0;_kl._H3+=current._ok2==0?0:(_Bk2/current._ok2+_qi)*_kl._ok2;current._H3+=_Ak2;this._Ck2(i,_kl,true);while(_kl._Dk2){_kl._Ek2+=_qi;_kl=_kl._Dk2;}continue;}}else if(current._yk2>=current._Fk2&&!current._Dk2){tracks[i]=null;this._Ql.end(current);this._Gk2(current);continue;}if(current._Dk2&&this._Hk2(current,_qi)){let from=current._Dk2;current._Dk2=null;if(from)from._Ik2=null;while(from){this._Ql.end(from); from=from._Dk2;}}current._H3+=_Ak2;}this._Ql._Jk2();}_Hk2(_971,_qi){let from=_971._Dk2;if(!from)return true;let _PU=this._Hk2(from,_qi);from._wk2=from._xk2;from._yk2=from._zk2;if(_971._Ek2>0&&_971._Ek2>=_971._Kk2){if(from._Lk2==0||_971._Kk2==0){_971._Dk2=from._Dk2;if(from._Dk2)from._Dk2._Ik2=_971;_971._Mk2=from._Mk2;this._Ql.end(from);}return _PU;}from._H3+=_qi*from._ok2;_971._Ek2+=_qi;return false;}apply(skeleton){if(!skeleton)throw new Error("skeleton cannot be null.");if(this._sk2)this._Nk2();let events=this.events; let tracks=this.tracks;let _Ok2=false;for(let _lu1=0,_Pk2=tracks.length;_lu1<_Pk2;_lu1++){let current=tracks[_lu1];if(!current||current._XU1>0)continue;_Ok2=true;let _vR=_lu1==0?_ih2.first:current._Qk2;let mix=current.alpha;if(current._Dk2)mix*=this._Rk2(current,skeleton,_vR);else if(current._H3>=current._Fk2&&!current._kl)mix=0;let _wk2=current._wk2,_Sk2=current._Tk2(),_Uk2=_Sk2;let _Vk2=events;if(current.reverse){_Uk2=current._z3.duration-_Uk2;_Vk2=null;}let _J5=current._z3._J5;let _I5=_J5.length;if(_lu1==0&&mix==1||_vR==_ih2.add){ for(let _0G=0;_0G<_I5;_0G++){_2i2._Ni2(mix,_vR);var _eI=_J5[_0G];if(_eI instanceof _Rg2)this._Wk2(_eI,skeleton,_Uk2,_vR,true);else _eI.apply(skeleton,_wk2,_Uk2,_Vk2,mix,_vR,_jh2.mixIn);}}else {let _Xk2=current._Xk2;let _4V1=current._Yk2.length!=_I5<<1;if(_4V1)current._Yk2.length=_I5<<1;for(let _0G=0;_0G<_I5;_0G++){let _Zk2=_J5[_0G];let __k2=_Xk2[_0G]==_Ch2?_vR:_ih2.setup;if(_Zk2 instanceof _Ah2){this._0l2(_Zk2,skeleton,_Uk2,mix,__k2,current._Yk2,_0G<<1,_4V1);}else if(_Zk2 instanceof _Rg2){this._Wk2(_Zk2,skeleton, _Uk2,_vR,true);}else {_2i2._Ni2(mix,_vR);_Zk2.apply(skeleton,_wk2,_Uk2,_Vk2,mix,__k2,_jh2.mixIn);}}}this._1l2(current,_Sk2);events.length=0;current._xk2=_Sk2;current._zk2=current._H3;}var _2l2=this._pk2+_Bh2;var slots=skeleton.slots;for(var i=0,_t6=skeleton.slots.length;i<_t6;i++){var slot=slots[i];if(slot._3l2==_2l2){var _Cb=slot.data._Cb;slot._74(!_Cb?null:skeleton._a4(slot.data.index,_Cb));}}this._pk2+=2;this._Ql._Jk2();return _Ok2;}_Rk2(_971,skeleton,_vR){let from=_971._Dk2;if(from._Dk2)this._Rk2(from, skeleton,_vR);let mix=0;if(_971._Kk2==0){mix=1;if(_vR==_ih2.first)_vR=_ih2.setup;}else {mix=_971._Ek2/_971._Kk2;if(mix>1)mix=1;if(_vR!=_ih2.first)_vR=from._Qk2;}let attachments=mix0)this._1l2(from,_Sk2);this.events.length=0;from._xk2=_Sk2;from._zk2=from._H3;return mix;}_Wk2(_eI,skeleton,time,_vR,attachments){var slot=skeleton.slots[_eI._84]; if(!slot.bone.active)return;if(time<_eI.frames[0]){if(_vR==_ih2.setup||_vR==_ih2.first)this._74(skeleton,slot,slot.data._Cb,attachments);}else this._74(skeleton,slot,_eI._Eb[_Th2._pj2(_eI.frames,time)],attachments);if(slot._3l2<=this._pk2)slot._3l2=this._pk2+_Bh2;}_74(skeleton,slot,_Cb,attachments){slot._74(!_Cb?null:skeleton._a4(slot.data.index,_Cb));if(attachments)slot._3l2=this._pk2+_Vg2;}_0l2(_eI,skeleton,time,alpha,_vR,_Yk2,i,_4V1){if(_4V1)_Yk2[i]=0;if(alpha==1){_eI.apply(skeleton,0,time,null, 1,_vR,_jh2.mixIn);return;}let bone=skeleton.bones[_eI._Tj2];if(!bone.active)return;let frames=_eI.frames;let _XH=0,_YH=0;if(time0,_5_=_bl2>=0;if(_hh2._ni2(_cl2)!=_hh2._ni2(_qE)&&Math.abs(_cl2)<=90){if(Math.abs(_bl2)>180)_bl2+=360*_hh2._ni2(_bl2);_5_=current;}_he1=_qE+_bl2-_bl2%360;if(_5_!=current)_he1+=360*_hh2._ni2(_bl2);_Yk2[i]=_he1;}_Yk2[i+1]=_qE;bone.rotation=_XH+_he1*alpha;}_1l2(_gl,_Sk2){let _dl2=_gl._dl2,_el2=_gl._el2;let duration=_el2-_dl2;let _fl2=_gl._yk2%duration;let events=this.events;let i=0,_t6=events.length;for(;i<_t6;i++){let event=events[i];if(event.time<_fl2)break; if(event.time>_el2)continue;this._Ql.event(_gl,event);}let complete=false;if(_gl.loop)complete=duration==0||_fl2>_gl._H3%duration;else complete=_Sk2>=_el2&&_gl._wk2<_el2;if(complete)this._Ql.complete(_gl);for(;i<_t6;i++){let event=events[i];if(event.time<_dl2)continue;this._Ql.event(_gl,event);}}_gl2(){let _hl2=this._Ql._il2;this._Ql._il2=true;for(let i=0,_t6=this.tracks.length;i<_t6;i++)this._C7(i);this.tracks.length=0;this._Ql._il2=_hl2;this._Ql._Jk2();}_C7(_jl2){if(_jl2>=this.tracks.length)return; let current=this.tracks[_jl2];if(!current)return;this._Ql.end(current);this._Gk2(current);let _gl=current;while(true){let from=_gl._Dk2;if(!from)break;this._Ql.end(from);_gl._Dk2=null;_gl._Ik2=null;_gl=from;}this.tracks[current._jl2]=null;this._Ql._Jk2();}_Ck2(index,current,interrupt){let from=this._kl2(index);this.tracks[index]=current;current._ll2=null;if(from){if(interrupt)this._Ql.interrupt(from);current._Dk2=from;from._Ik2=current;current._Ek2=0;if(from._Dk2&&from._Kk2>0)current._Mk2*=Math.min(1, from._Ek2/from._Kk2);from._Yk2.length=0;}this._Ql.start(current);}_R3(_jl2,_ml2,loop=false){let _z3=this.data._nl2._Q3(_ml2);if(!_z3)throw new Error("Animation not found: "+_ml2);return this._ol2(_jl2,_z3,loop);}_ol2(_jl2,_z3,loop=false){if(!_z3)throw new Error("animation cannot be null.");let interrupt=true;let current=this._kl2(_jl2);if(current){if(current._zk2==-1){this.tracks[_jl2]=current._Dk2;this._Ql.interrupt(current);this._Ql.end(current);this._Gk2(current);current=current._Dk2;interrupt=false; }else this._Gk2(current);}let _gl=this._pl2(_jl2,_z3,loop,current);this._Ck2(_jl2,_gl,interrupt);this._Ql._Jk2();return _gl;}_ql2(_jl2,_ml2,loop=false,_XU1=0){let _z3=this.data._nl2._Q3(_ml2);if(!_z3)throw new Error("Animation not found: "+_ml2);return this._rl2(_jl2,_z3,loop,_XU1);}_rl2(_jl2,_z3,loop=false,_XU1=0){if(!_z3)throw new Error("animation cannot be null.");let last=this._kl2(_jl2);if(last){while(last._kl)last=last._kl;}let _gl=this._pl2(_jl2,_z3,loop,last);if(!last){this._Ck2(_jl2,_gl,true);this._Ql._Jk2(); }else {last._kl=_gl;_gl._ll2=last;if(_XU1<=0)_XU1+=last._sl2()-_gl._Kk2;}_gl._XU1=_XU1;return _gl;}_tl2(_jl2,_Kk2=0){let _gl=this._ol2(_jl2,_b3._uk2(),false);_gl._Kk2=_Kk2;_gl._Fk2=_Kk2;return _gl;}_ul2(_jl2,_Kk2=0,_XU1=0){let _gl=this._rl2(_jl2,_b3._uk2(),false,_XU1);if(_XU1<=0)_gl._XU1+=_gl._Kk2-_Kk2;_gl._Kk2=_Kk2;_gl._Fk2=_Kk2;return _gl;}_vl2(_Kk2=0){let _hl2=this._Ql._il2;this._Ql._il2=true;for(let i=0,_t6=this.tracks.length;i<_t6;i++){let current=this.tracks[i];if(current)this._tl2(current._jl2,_Kk2); }this._Ql._il2=_hl2;this._Ql._Jk2();}_kl2(index){if(index0){_Xk2[i]=_9h2;_9l2[i]=_kl;continue _Al2;}break;}_Xk2[i]=_8h2;}}}_Bl2(_jl2){if(_jl2>=this.tracks.length)return null; return this.tracks[_jl2];}_l3(listener){if(!listener)throw new Error("listener cannot be null.");this._qk2.push(listener);}_Cl2(listener){let index=this._qk2.indexOf(listener);if(index>=0)this._qk2.splice(index,1);}_Dl2(){this._qk2.length=0;}_El2(){this._Ql.clear();}};var _Uh2=class {constructor(){this._Qk2=_ih2.replace;this._Xk2=new Array();this._9l2=new Array();this._Yk2=new Array();}_1e1(){this._kl=null;this._ll2=null;this._Dk2=null;this._Ik2=null;this._z3=null;this.listener=null;this._Xk2.length=0;this._9l2.length=0; this._Yk2.length=0;}_Tk2(){if(this.loop){let duration=this._el2-this._dl2;if(duration==0)return this._dl2;return this._H3%duration+this._dl2;}return Math.min(this._H3+this._dl2,this._el2);}_Fl2(_wk2){this._wk2=_wk2;this._xk2=_wk2;}_Gl2(){return this._H3>=this._el2-this._dl2;}_Hl2(){this._Yk2.length=0;}_sl2(){let duration=this._el2-this._dl2;if(duration!=0){if(this.loop)return duration*(1+(this._H3/duration|0));if(this._H3{_I4.width=parseInt(_gl[1]);_I4.height=parseInt(_gl[2]);};_Vl2["format"]=()=>{};_Vl2["filter"]=()=>{_I4._L4=_2i2._Oi2(_M4,_gl[1]);_I4._N4=_2i2._Oi2(_M4,_gl[2]);};_Vl2["repeat"]=()=>{if(_gl[1].indexOf("x")!=-1)_I4._O4=_P4.Repeat;if(_gl[1].indexOf("y")!=-1)_I4._Q4=_P4.Repeat;};_Vl2["pma"]=()=>{_I4._Wl2=_gl[1]=="true";};var _Xl2={};_Xl2["xy"]=()=>{_V4.x=parseInt(_gl[1]);_V4.y=parseInt(_gl[2]);};_Xl2["size"]=()=>{_V4.width=parseInt(_gl[1]);_V4.height=parseInt(_gl[2]);};_Xl2["bounds"]=()=>{ _V4.x=parseInt(_gl[1]);_V4.y=parseInt(_gl[2]);_V4.width=parseInt(_gl[3]);_V4.height=parseInt(_gl[4]);};_Xl2["offset"]=()=>{_V4._05=parseInt(_gl[1]);_V4._15=parseInt(_gl[2]);};_Xl2["orig"]=()=>{_V4._25=parseInt(_gl[1]);_V4._35=parseInt(_gl[2]);};_Xl2["offsets"]=()=>{_V4._05=parseInt(_gl[1]);_V4._15=parseInt(_gl[2]);_V4._25=parseInt(_gl[3]);_V4._35=parseInt(_gl[4]);};_Xl2["rotate"]=()=>{let value=_gl[1];if(value=="true")_V4._45=90;else if(value!="false")_V4._45=parseInt(value);};_Xl2["index"]=()=>{_V4.index=parseInt(_gl[1]); };let _CE=_S01._Yl2();while(_CE&&_CE.trim().length==0)_CE=_S01._Yl2();while(true){if(!_CE||_CE.trim().length==0)break;if(_S01._Zl2(_gl,_CE)==0)break;_CE=_S01._Yl2();}let _kh=null;let values=null;while(true){if(_CE===null)break;if(_CE.trim().length==0){_I4=null;_CE=_S01._Yl2();}else if(!_I4){_I4=new _J4();_I4.name=_CE.trim();while(true){if(_S01._Zl2(_gl,_CE=_S01._Yl2())==0)break;let __l2=_Vl2[_gl[0]];if(__l2)__l2();}this._95.push(_I4);}else {_V4=new _W4();_V4._I4=_I4;_V4.name=_CE;while(true){let _q8=_S01._Zl2(_gl, _CE=_S01._Yl2());if(_q8==0)break;let __l2=_Xl2[_gl[0]];if(__l2)__l2();else {if(!_kh){_kh=[];values=[];}_kh.push(_gl[0]);let _0m2=[];for(let i=0;i<_q8;i++)_0m2.push(parseInt(_gl[i+1]));values.push(_0m2);}}if(_V4._25==0&&_V4._35==0){_V4._25=_V4.width;_V4._35=_V4.height;}if(_kh&&_kh.length>0){_V4._kh=_kh;_V4.values=values;_kh=null;values=null;}_V4._X4=_V4.x/_I4.width;_V4._Y4=_V4.y/_I4.height;if(_V4._45==90){_V4._Z4=(_V4.x+_V4.height)/_I4.width;_V4.__4=(_V4.y+_V4.width)/_I4.height;}else {_V4._Z4=(_V4.x+_V4.width)/_I4.width; _V4.__4=(_V4.y+_V4.height)/_I4.height;}this._a5.push(_V4);}}}_1m2(name){for(let i=0;i=this._6H.length)return null;return this._6H[this.index++]; }_Zl2(_gl,_CE){if(!_CE)return 0;_CE=_CE.trim();if(_CE.length==0)return 0;let _5m2=_CE.indexOf(":");if(_5m2==-1)return 0;_gl[0]=_CE.substr(0,_5m2).trim();for(let i=1,_6m2=_5m2+1;;i++){let _7m2=_CE.indexOf(",",_6m2);if(_7m2==-1){_gl[i]=_CE.substr(_6m2).trim();return i;}_gl[i]=_CE.substr(_6m2,_7m2-_6m2).trim();_6m2=_7m2+1;if(i==4)return 4;}}};var _J4=class {constructor(){this._L4=_M4.Nearest;this._N4=_M4.Nearest;this._O4=_P4.ClampToEdge;this._Q4=_P4.ClampToEdge;}_Q8(texture){this.texture=texture;texture._T4(this._L4, this._N4);texture._U4(this._O4,this._Q4);}};var _W4=class extends _Rh2{};var _f9=class extends _4i2{constructor(name){super(name);this.color=new _i4(1,1,1,1);this._8m2=new _i4(0,0,0,0);}_9m2(){let _am2=this._am2;if(!this.uvs||this.uvs.length!=_am2.length)this.uvs=_2i2._Hi2(_am2.length);let uvs=this.uvs;let _t6=this.uvs.length;let _X4=this._V4._X4,_Y4=this._V4._Y4,width=0,height=0;if(this._V4 instanceof _W4){let _V4=this._V4,_S4=_V4._I4.texture._78();let _bm2=_S4.width,_cm2=_S4.height;switch(_V4._45){case 90:_X4-=(_V4._35-_V4._15-_V4.height)/_bm2; _Y4-=(_V4._25-_V4._05-_V4.width)/_cm2;width=_V4._35/_bm2;height=_V4._25/_cm2;for(let i=0;i<_t6;i+=2){uvs[i]=_X4+_am2[i+1]*width;uvs[i+1]=_Y4+(1-_am2[i])*height;}return;case 180:_X4-=(_V4._25-_V4._05-_V4.width)/_bm2;_Y4-=_V4._15/_cm2;width=_V4._25/_bm2;height=_V4._35/_cm2;for(let i=0;i<_t6;i+=2){uvs[i]=_X4+(1-_am2[i])*width;uvs[i+1]=_Y4+(1-_am2[i+1])*height;}return;case 270:_X4-=_V4._15/_bm2;_Y4-=_V4._05/_cm2;width=_V4._35/_bm2;height=_V4._25/_cm2;for(let i=0;i<_t6;i+=2){uvs[i]=_X4+(1-_am2[i+1])*width; uvs[i+1]=_Y4+_am2[i]*height;}return;}_X4-=_V4._05/_bm2;_Y4-=(_V4._35-_V4._15-_V4.height)/_cm2;width=_V4._25/_bm2;height=_V4._35/_cm2;}else if(!this._V4){_X4=_Y4=0;width=height=1;}else {width=this._V4._Z4-_X4;height=this._V4.__4-_Y4;}for(let i=0;i<_t6;i+=2){uvs[i]=_X4+_am2[i]*width;uvs[i+1]=_Y4+_am2[i+1]*height;}}_dm2(){return this._em2;}_fm2(_em2){this._em2=_em2;if(_em2){this.bones=_em2.bones;this.vertices=_em2.vertices;this._P9=_em2._P9;this._am2=_em2._am2;this.triangles=_em2.triangles;this._gm2=_em2._gm2; this._P9=_em2._P9;}}_xs(){if(this._em2)return this._hm2();let _xs=new _f9(this.name);_xs._V4=this._V4;_xs.path=this.path;_xs.color._i5(this.color);this._dj2(_xs);_xs._am2=new Array(this._am2.length);_2i2._xi2(this._am2,0,_xs._am2,0,this._am2.length);_xs.uvs=new Array(this.uvs.length);_2i2._xi2(this.uvs,0,_xs.uvs,0,this.uvs.length);_xs.triangles=new Array(this.triangles.length);_2i2._xi2(this.triangles,0,_xs.triangles,0,this.triangles.length);_xs._gm2=this._gm2;if(this.edges){_xs.edges=new Array(this.edges.length); _2i2._xi2(this.edges,0,_xs.edges,0,this.edges.length);}_xs.width=this.width;_xs.height=this.height;return _xs;}_hm2(){let _xs=new _f9(this.name);_xs._V4=this._V4;_xs.path=this.path;_xs.color._i5(this.color);_xs._6j2=this._6j2;_xs._fm2(this._em2?this._em2:this);_xs._9m2();return _xs;}};var _kh2=class extends _4i2{constructor(name){super(name);this.closed=false;this._im2=false;this.color=new _i4(1,1,1,1);}_xs(){let _xs=new _kh2(this.name);this._dj2(_xs);_xs.lengths=new Array(this.lengths.length);_2i2._xi2(this.lengths, 0,_xs.lengths,0,this.lengths.length);_xs.closed=closed;_xs._im2=this._im2;_xs.color._i5(this.color);return _xs;}};var _qh2=class extends _4i2{constructor(name){super(name);this.color=new _i4(0.38,0.94,0,1);}_jm2(bone,_cx1){_cx1.x=this.x*bone._h4+this.y*bone._g4+bone._h7;_cx1.y=this.x*bone.c+this.y*bone._Bm+bone._i7;return _cx1;}_km2(bone){let cos=_hh2._ki2(this.rotation),sin=_hh2._mi2(this.rotation);let x=cos*bone._h4+sin*bone._g4;let y=cos*bone.c+sin*bone._Bm;return Math.atan2(y,x)*_hh2._ti2;}_xs(){let _xs=new _qh2(this.name); _xs.x=this.x;_xs.y=this.y;_xs.rotation=this.rotation;_xs.color._i5(this.color);return _xs;}};var _lm2=class extends _Qg2{constructor(name){super(name);this.x=0;this.y=0;this.scaleX=1;this.scaleY=1;this.rotation=0;this.width=0;this.height=0;this.color=new _i4(1,1,1,1);this.offset=_2i2._Hi2(8);this.uvs=_2i2._Hi2(8);this._8m2=new _i4(1,1,1,1);}_j5(){let _V4=this._V4;let _mm2=this.width/this._V4._25*this.scaleX;let _nm2=this.height/this._V4._35*this.scaleY;let _om2=-this.width/2*this.scaleX+this._V4._05*_mm2; let _pm2=-this.height/2*this.scaleY+this._V4._15*_nm2;let _qm2=_om2+this._V4.width*_mm2;let _rm2=_pm2+this._V4.height*_nm2;let _sm2=this.rotation*Math.PI/180;let cos=Math.cos(_sm2);let sin=Math.sin(_sm2);let x=this.x,y=this.y;let _tm2=_om2*cos+x;let _um2=_om2*sin;let _vm2=_pm2*cos+y;let _wm2=_pm2*sin;let _xm2=_qm2*cos+x;let _ym2=_qm2*sin;let _zm2=_rm2*cos+y;let _Am2=_rm2*sin;let offset=this.offset;offset[0]=_tm2-_wm2;offset[1]=_vm2+_um2;offset[2]=_tm2-_Am2;offset[3]=_zm2+_um2;offset[4]=_xm2-_Am2;offset[5]=_zm2+_ym2; offset[6]=_xm2-_wm2;offset[7]=_vm2+_ym2;}_Bm2(_V4){this._V4=_V4;let uvs=this.uvs;if(_V4._45==90){uvs[2]=_V4._X4;uvs[3]=_V4.__4;uvs[4]=_V4._X4;uvs[5]=_V4._Y4;uvs[6]=_V4._Z4;uvs[7]=_V4._Y4;uvs[0]=_V4._Z4;uvs[1]=_V4.__4;}else {uvs[0]=_V4._X4;uvs[1]=_V4.__4;uvs[2]=_V4._X4;uvs[3]=_V4._Y4;uvs[4]=_V4._Z4;uvs[5]=_V4._Y4;uvs[6]=_V4._Z4;uvs[7]=_V4.__4;}}_J9(bone,_7j2,offset,_Ga){let _Cm2=this.offset;let x=bone._h7,y=bone._i7;let _h4=bone._h4,_g4=bone._g4,c=bone.c,_Bm=bone._Bm;let _05=0,_15=0;_05=_Cm2[0];_15=_Cm2[1]; _7j2[offset]=_05*_h4+_15*_g4+x;_7j2[offset+1]=_05*c+_15*_Bm+y;offset+=_Ga;_05=_Cm2[2];_15=_Cm2[3];_7j2[offset]=_05*_h4+_15*_g4+x;_7j2[offset+1]=_05*c+_15*_Bm+y;offset+=_Ga;_05=_Cm2[4];_15=_Cm2[5];_7j2[offset]=_05*_h4+_15*_g4+x;_7j2[offset+1]=_05*c+_15*_Bm+y;offset+=_Ga;_05=_Cm2[6];_15=_Cm2[7];_7j2[offset]=_05*_h4+_15*_g4+x;_7j2[offset+1]=_05*c+_15*_Bm+y;}_xs(){let _xs=new _lm2(this.name);_xs._V4=this._V4;_xs._K4=this._K4;_xs.path=this.path;_xs.x=this.x;_xs.y=this.y;_xs.scaleX=this.scaleX;_xs.scaleY=this.scaleY; _xs.rotation=this.rotation;_xs.width=this.width;_xs.height=this.height;_2i2._xi2(this.uvs,0,_xs.uvs,0,8);_2i2._xi2(this.offset,0,_xs.offset,0,8);_xs.color._i5(this.color);return _xs;}};var _d9=_lm2;_d9._Dm2=0;_d9._Em2=1;_d9._Fm2=2;_d9._Gm2=3;_d9._Hm2=4;_d9._Im2=5;_d9._Jm2=6;_d9._Km2=7;_d9._Lm2=8;_d9._Mm2=9;_d9._Nm2=10;_d9._Om2=11;_d9._Pm2=12;_d9._Qm2=13;_d9._Rm2=14;_d9._Sm2=15;_d9._Tm2=16;_d9._Um2=17;_d9._Vm2=18;_d9._Wm2=19;_d9._Xm2=20;_d9._Ym2=21;_d9._Zm2=22;_d9.__m2=23;_d9._0n2=24;_d9._1n2=25;_d9._2n2=26; _d9._3n2=27;_d9._4n2=28;_d9._5n2=29;_d9._6n2=30;_d9._7n2=31;var _c5=class {constructor(_75){this._75=_75;}_e5(skin,name,path){let _V4=this._75._1m2(path);if(!_V4)throw new Error("Region not found in atlas: "+path+" (region attachment: "+name+")");_V4._K9=_V4;let attachment=new _d9(name);attachment._Bm2(_V4);return attachment;}_8n2(skin,name,path){let _V4=this._75._1m2(path);if(!_V4)throw new Error("Region not found in atlas: "+path+" (mesh attachment: "+name+")");_V4._K9=_V4;let attachment=new _f9(name);attachment._V4=_V4; return attachment;}_9n2(skin,name){return new _h9(name);}_an2(skin,name){return new _kh2(name);}_bn2(skin,name){return new _qh2(name);}_cn2(skin,name){return new _Q9(name);}};var _Ug2=class {constructor(index,name,parent){this.x=0;this.y=0;this.rotation=0;this.scaleX=1;this.scaleY=1;this.shearX=0;this.shearY=0;this._nh1=_Yh2.Normal;this._dn2=false;this.color=new _i4();if(index<0)throw new Error("index must be >= 0.");if(!name)throw new Error("name cannot be null.");this.index=index;this.name=name;this.parent=parent; }};var _Yh2;(function(_en2){_en2[_en2["Normal"]=0]="Normal";_en2[_en2["OnlyTranslation"]=1]="OnlyTranslation";_en2[_en2["NoRotationOrReflection"]=2]="NoRotationOrReflection";_en2[_en2["NoScale"]=3]="NoScale";_en2[_en2["NoScaleOrReflection"]=4]="NoScaleOrReflection";})(_Yh2||(_Yh2={}));var _Tg2=class {constructor(data,skeleton,parent){this._hq1=new Array();this.x=0;this.y=0;this.rotation=0;this.scaleX=0;this.scaleY=0;this.shearX=0;this.shearY=0;this.ax=0;this.ay=0;this._n7=0;this._fn2=0;this._gn2=0;this._hn2=0; this._in2=0;this._h4=0;this._g4=0;this.c=0;this._Bm=0;this._i7=0;this._h7=0;this._jn2=false;this.active=false;if(!data)throw new Error("data cannot be null.");if(!skeleton)throw new Error("skeleton cannot be null.");this.data=data;this.skeleton=skeleton;this.parent=parent;this._kn2();}_vd1(){return this.active;}_M5(){this._ln2(this.ax,this.ay,this._n7,this._fn2,this._gn2,this._hn2,this._in2);}_B5(){this._ln2(this.x,this.y,this.rotation,this.scaleX,this.scaleY,this.shearX,this.shearY);}_ln2(x,y,rotation, scaleX,scaleY,shearX,shearY){this.ax=x;this.ay=y;this._n7=rotation;this._fn2=scaleX;this._gn2=scaleY;this._hn2=shearX;this._in2=shearY;let parent=this.parent;if(!parent){let skeleton=this.skeleton;let _mn2=rotation+90+shearY;let _VZ=skeleton.scaleX;let _WZ=skeleton.scaleY;this._h4=_hh2._ki2(rotation+shearX)*scaleX*_VZ;this._g4=_hh2._ki2(_mn2)*scaleY*_VZ;this.c=_hh2._mi2(rotation+shearX)*scaleX*_WZ;this._Bm=_hh2._mi2(_mn2)*scaleY*_WZ;this._h7=x*_VZ+skeleton.x;this._i7=y*_WZ+skeleton.y;return;}let _EJ1=parent._h4, _FJ1=parent._g4,_oI1=parent.c,_nn2=parent._Bm;this._h7=_EJ1*x+_FJ1*y+parent._h7;this._i7=_oI1*x+_nn2*y+parent._i7;switch(this.data._nh1){case _Yh2.Normal:{let _mn2=rotation+90+shearY;let _on2=_hh2._ki2(rotation+shearX)*scaleX;let _pn2=_hh2._ki2(_mn2)*scaleY;let _qn2=_hh2._mi2(rotation+shearX)*scaleX;let _rn2=_hh2._mi2(_mn2)*scaleY;this._h4=_EJ1*_on2+_FJ1*_qn2;this._g4=_EJ1*_pn2+_FJ1*_rn2;this.c=_oI1*_on2+_nn2*_qn2;this._Bm=_oI1*_pn2+_nn2*_rn2;return;}case _Yh2.OnlyTranslation:{let _mn2=rotation+90+shearY; this._h4=_hh2._ki2(rotation+shearX)*scaleX;this._g4=_hh2._ki2(_mn2)*scaleY;this.c=_hh2._mi2(rotation+shearX)*scaleX;this._Bm=_hh2._mi2(_mn2)*scaleY;break;}case _Yh2.NoRotationOrReflection:{let _ni=_EJ1*_EJ1+_oI1*_oI1;let _sn2=0;if(_ni>1e-4){_ni=Math.abs(_EJ1*_nn2-_FJ1*_oI1)/_ni;_EJ1/=this.skeleton.scaleX;_oI1/=this.skeleton.scaleY;_FJ1=_oI1*_ni;_nn2=_EJ1*_ni;_sn2=Math.atan2(_oI1,_EJ1)*_hh2._ti2;}else {_EJ1=0;_oI1=0;_sn2=90-Math.atan2(_nn2,_FJ1)*_hh2._ti2;}let _cA=rotation+shearX-_sn2;let _dA=rotation+shearY-_sn2+90; let _on2=_hh2._ki2(_cA)*scaleX;let _pn2=_hh2._ki2(_dA)*scaleY;let _qn2=_hh2._mi2(_cA)*scaleX;let _rn2=_hh2._mi2(_dA)*scaleY;this._h4=_EJ1*_on2-_FJ1*_qn2;this._g4=_EJ1*_pn2-_FJ1*_rn2;this.c=_oI1*_on2+_nn2*_qn2;this._Bm=_oI1*_pn2+_nn2*_rn2;break;}case _Yh2.NoScale:case _Yh2.NoScaleOrReflection:{let cos=_hh2._ki2(rotation);let sin=_hh2._mi2(rotation);let _Dw=(_EJ1*cos+_FJ1*sin)/this.skeleton.scaleX;let _tn2=(_oI1*cos+_nn2*sin)/this.skeleton.scaleY;let _ni=Math.sqrt(_Dw*_Dw+_tn2*_tn2);if(_ni>1e-5)_ni=1/_ni;_Dw*=_ni; _tn2*=_ni;_ni=Math.sqrt(_Dw*_Dw+_tn2*_tn2);if(this.data._nh1==_Yh2.NoScale&&_EJ1*_nn2-_FJ1*_oI1<0!=(this.skeleton.scaleX<0!=this.skeleton.scaleY<0))_ni=-_ni;let _e4=Math.PI/2+Math.atan2(_tn2,_Dw);let _un2=Math.cos(_e4)*_ni;let _vn2=Math.sin(_e4)*_ni;let _on2=_hh2._ki2(shearX)*scaleX;let _pn2=_hh2._ki2(90+shearY)*scaleY;let _qn2=_hh2._mi2(shearX)*scaleX;let _rn2=_hh2._mi2(90+shearY)*scaleY;this._h4=_Dw*_on2+_un2*_qn2;this._g4=_Dw*_pn2+_un2*_rn2;this.c=_tn2*_on2+_vn2*_qn2;this._Bm=_tn2*_pn2+_vn2*_rn2;break; }}this._h4*=this.skeleton.scaleX;this._g4*=this.skeleton.scaleX;this.c*=this.skeleton.scaleY;this._Bm*=this.skeleton.scaleY;}_kn2(){let data=this.data;this.x=data.x;this.y=data.y;this.rotation=data.rotation;this.scaleX=data.scaleX;this.scaleY=data.scaleY;this.shearX=data.shearX;this.shearY=data.shearY;}_j7(){return Math.atan2(this.c,this._h4)*_hh2._ti2;}_k7(){return Math.atan2(this._Bm,this._g4)*_hh2._ti2;}_l7(){return Math.sqrt(this._h4*this._h4+this.c*this.c);}_m7(){return Math.sqrt(this._g4*this._g4+this._Bm*this._Bm); }_wn2(){let parent=this.parent;if(!parent){this.ax=this._h7-this.skeleton.x;this.ay=this._i7-this.skeleton.y;this._n7=Math.atan2(this.c,this._h4)*_hh2._ti2;this._fn2=Math.sqrt(this._h4*this._h4+this.c*this.c);this._gn2=Math.sqrt(this._g4*this._g4+this._Bm*this._Bm);this._hn2=0;this._in2=Math.atan2(this._h4*this._g4+this.c*this._Bm,this._h4*this._Bm-this._g4*this.c)*_hh2._ti2;return;}let _EJ1=parent._h4,_FJ1=parent._g4,_oI1=parent.c,_nn2=parent._Bm;let _xn2=1/(_EJ1*_nn2-_FJ1*_oI1);let _db=this._h7-parent._h7, _eb=this._i7-parent._i7;this.ax=_db*_nn2*_xn2-_eb*_FJ1*_xn2;this.ay=_eb*_EJ1*_xn2-_db*_oI1*_xn2;let _yn2=_xn2*_nn2;let id=_xn2*_EJ1;let _zn2=_xn2*_FJ1;let _An2=_xn2*_oI1;let _Bn2=_yn2*this._h4-_zn2*this.c;let _Cn2=_yn2*this._g4-_zn2*this._Bm;let _Dn2=id*this.c-_An2*this._h4;let _En2=id*this._Bm-_An2*this._g4;this._hn2=0;this._fn2=Math.sqrt(_Bn2*_Bn2+_Dn2*_Dn2);if(this._fn2>1e-4){let _Gr1=_Bn2*_En2-_Cn2*_Dn2;this._gn2=_Gr1/this._fn2;this._in2=Math.atan2(_Bn2*_Cn2+_Dn2*_En2,_Gr1)*_hh2._ti2;this._n7=Math.atan2(_Dn2, _Bn2)*_hh2._ti2;}else {this._fn2=0;this._gn2=Math.sqrt(_Cn2*_Cn2+_En2*_En2);this._in2=0;this._n7=90-Math.atan2(_En2,_Cn2)*_hh2._ti2;}}_q7(_tC1){let _Fn2=1/(this._h4*this._Bm-this._g4*this.c);let x=_tC1.x-this._h7,y=_tC1.y-this._i7;_tC1.x=x*this._Bm*_Fn2-y*this._g4*_Fn2;_tC1.y=y*this._h4*_Fn2-x*this.c*_Fn2;return _tC1;}_Gn2(_Ai){let x=_Ai.x,y=_Ai.y;_Ai.x=x*this._h4+y*this._g4+this._h7;_Ai.y=x*this.c+y*this._Bm+this._i7;return _Ai;}_Hn2(_In2){let sin=_hh2._mi2(_In2),cos=_hh2._ki2(_In2);return Math.atan2(this._h4*sin-this.c*cos, this._Bm*cos-this._g4*sin)*_hh2._ti2+this.rotation-this.shearX;}_Jn2(_Kn2){_Kn2-=this.rotation-this.shearX;let sin=_hh2._mi2(_Kn2),cos=_hh2._ki2(_Kn2);return Math.atan2(cos*this.c+sin*this._Bm,cos*this._h4+sin*this._g4)*_hh2._ti2;}_Ln2(_45){let _h4=this._h4,_g4=this._g4,c=this.c,_Bm=this._Bm;let cos=_hh2._ki2(_45),sin=_hh2._mi2(_45);this._h4=cos*_h4-sin*c;this._g4=cos*_g4-sin*_Bm;this.c=sin*_h4+cos*c;this._Bm=sin*_g4+cos*_Bm;}};var _Wg2=class {constructor(name,_Mn2,_dn2){this.name=name;this._Mn2=_Mn2; this._dn2=_dn2;}};var _Pg2=class {constructor(_Nn2,_4m2="",_On2=null){this.assets={};this._Pn2={};this._Qn2=0;this._Nh=0;this._Nn2=_Nn2;this._4m2=_4m2;this._On2=_On2||new _1h2();}start(path){this._Qn2++;return this._4m2+path;}_N01(_hm1,path,_Fb1){this._Qn2--;this._Nh++;this.assets[path]=_Fb1;if(_hm1)_hm1(path,_Fb1);}error(_hm1,path,message){this._Qn2--;this._Nh++;this._Pn2[path]=message;if(_hm1)_hm1(path,message);}_Rn2(path,data){this._On2._Sn2[this._4m2+path]=data;}_Tn2(path,_N01=null,error=null){path=this.start(path); this._On2._Un2(path,(data)=>{this._N01(_N01,path,data);},(status,responseText)=>{this.error(error,path,"Couldn't load binary "+path+": status "+status+", "+responseText);});}_Vn2(path,_N01=null,error=null){path=this.start(path);this._On2._Wn2(path,(data)=>{this._N01(_N01,path,data);},(status,responseText)=>{this.error(error,path,"Couldn't load text "+path+": status "+status+", "+responseText);});}_Xn2(path,_N01=null,error=null){path=this.start(path);this._On2._Yn2(path,(data)=>{this._N01(_N01,path, data);},(status,responseText)=>{this.error(error,path,"Couldn't load JSON "+path+": status "+status+", "+responseText);});}_C8(path,_N01=null,error=null){path=this.start(path);let _Zn2=!!(typeof window!=="undefined"&&typeof navigator!=="undefined"&&window.document);let __n2=!_Zn2;if(__n2){_0o2(path,{mode:"cors"}).then((response)=>{if(response._vF)return response._1o2();this.error(error,path,"Couldn't load image: "+path);return null;}).then((_1o2)=>{return _1o2?_2o2(_1o2,{_3o2:"none",_4o2:"none"}):null; }).then((_5o2)=>{if(_5o2)this._N01(_N01,path,this._Nn2(_5o2));});}else {let _S4=new Image();_S4.crossOrigin=_YN;_S4.onload=()=>{this._N01(_N01,path,this._Nn2(_S4));};_S4.onerror=()=>{this.error(error,path,"Couldn't load image: "+path);};if(this._On2._Sn2[path])path=this._On2._Sn2[path];_S4.src=_pH(null,null,path);}}_6o2(path,_N01=null,error=null){let index=path.lastIndexOf("/");let parent=index>=0?path.substring(0,index+1):"";path=this.start(path);this._On2._Wn2(path,(_Tl2)=>{try{let _75=new _85(_Tl2); let _Qn2=_75._95.length,_7o2=false;for(let _I4 of _75._95){this._C8(parent+_I4.name,(_8o2,texture)=>{if(!_7o2){_I4._Q8(texture);if(--_Qn2==0)this._N01(_N01,path,_75);}},(_8o2,message)=>{if(!_7o2)this.error(error,path,"Couldn't load texture atlas "+path+" page image: "+_8o2);_7o2=true;});}}catch(e){this.error(error,path,"Couldn't parse texture atlas "+path+": "+e.message);}},(status,responseText)=>{this.error(error,path,"Couldn't load texture atlas "+path+": status "+status+", "+responseText);});}get(path){ return this.assets[this._4m2+path];}require(path){path=this._4m2+path;let _Fb1=this.assets[path];if(_Fb1)return _Fb1;let error=this._Pn2[path];throw Error("Asset not found: "+path+(error?"\n"+error:""));}remove(path){path=this._4m2+path;let _Fb1=this.assets[path];if(_Fb1.dispose)_Fb1.dispose();delete this.assets[path];return _Fb1;}_9o2(){for(let key in this.assets){let _Fb1=this.assets[key];if(_Fb1.dispose)_Fb1.dispose();}this.assets={};}_ao2(){return this._Qn2==0;}_bo2(){return this._Qn2;}_co2(){return this._Nh; }dispose(){this._9o2();}_do2(){return Object.keys(this._Pn2).length>0;}_eo2(){return this._Pn2;}};var _1h2=class {constructor(){this._fo2={};this._Sn2={};}_go2(_ho2){if(!_ho2.startsWith("data:")){throw new Error("Not a data URI.");}let _io2=_ho2.indexOf("base64,");if(_io2!=-1){_io2+="base64,".length;return _jo2(_ho2.substr(_io2));}else {return _ho2.substr(_ho2.indexOf(",")+1);}}_ko2(_Fh){var _lo2=window._jo2(_Fh);var _Yi=_lo2.length;var _3h=new Uint8Array(_Yi);for(var i=0;i<_Yi;i++){_3h[i]=_lo2.charCodeAt(i);} return _3h;}_mo2(_ho2){if(!_ho2.startsWith("data:")){throw new Error("Not a data URI.");}let _io2=_ho2.indexOf("base64,");if(_io2==-1)throw new Error("Not a binary data URI.");_io2+="base64,".length;return this._ko2(_ho2.substr(_io2));}_Wn2(_Dh,_N01,error){if(this.start(_Dh,_N01,error))return;if(this._Sn2[_Dh]){try{let _ho2=this._Sn2[_Dh];this._rV1(_Dh,200,this._go2(_ho2));}catch(e){this._rV1(_Dh,400,JSON.stringify(e));}return;}let _Mb1=new XMLHttpRequest();_Mb1.overrideMimeType("text/html");_Mb1.open("GET", _Dh,true);let _7C1=()=>{this._rV1(_Dh,_Mb1.status,_Mb1.responseText);};_Mb1.onload=_7C1;_Mb1.onerror=_7C1;_Mb1.send();}_Yn2(_Dh,_N01,error){this._Wn2(_Dh,(data)=>{_N01(JSON.parse(data));},error);}_Un2(_Dh,_N01,error){if(this.start(_Dh,_N01,error))return;if(this._Sn2[_Dh]){try{let _ho2=this._Sn2[_Dh];this._rV1(_Dh,200,this._mo2(_ho2));}catch(e){this._rV1(_Dh,400,JSON.stringify(e));}return;}let _Mb1=new XMLHttpRequest();_Mb1.open("GET",_Dh,true);_Mb1.responseType="arraybuffer";let onerror=()=>{this._rV1(_Dh, _Mb1.status,_Mb1.response);};_Mb1.onload=()=>{if(_Mb1.status==200)this._rV1(_Dh,200,new Uint8Array(_Mb1.response));else onerror();};_Mb1.onerror=onerror;_Mb1.send();}start(_Dh,_N01,error){let _fo2=this._fo2[_Dh];try{if(_fo2)return true;this._fo2[_Dh]=_fo2=[];}finally{_fo2.push(_N01,error);}}_rV1(_Dh,status,data){let _fo2=this._fo2[_Dh];delete this._fo2[_Dh];let _Ik=status==200?[data]:[status,data];for(let i=_Ik.length-1,_t6=_fo2.length;i<_t6;i+=2)_fo2[i].apply(null,_Ik);}};var Event=class {constructor(time, data){if(!data)throw new Error("data cannot be null.");this.time=time;this.data=data;}};var _3h2=class {constructor(name){this.name=name;}};var _bh2=class {constructor(data,skeleton){this._bk2=0;this.compress=false;this.stretch=false;this.mix=1;this._ak2=0;this.active=false;if(!data)throw new Error("data cannot be null.");if(!skeleton)throw new Error("skeleton cannot be null.");this.data=data;this.mix=data.mix;this._ak2=data._ak2;this._bk2=data._bk2;this.compress=data.compress;this.stretch=data.stretch;this.bones=new Array(); for(let i=0;i180)_so2-=360;else if(_so2<-180)_so2+=360;let _VZ=bone._fn2,_WZ=bone._gn2;if(compress||stretch){switch(bone.data._nh1){case _Yh2.NoScale:case _Yh2.NoScaleOrReflection:_D_=_qo2-bone._h7;_E_=_ro2-bone._i7;}let _g4=bone.data.length*_VZ,_2M=Math.sqrt(_D_*_D_+_E_*_E_);if(compress&&_2M<_g4||stretch&&_2M>_g4&&_g4>1e-4){let _ni=(_2M/_g4-1)*alpha+1; _VZ*=_ni;if(_oo2)_WZ*=_ni;}}bone._ln2(bone.ax,bone.ay,bone._n7+_so2*alpha,_VZ,_WZ,bone._hn2,bone._in2);}_po2(parent,_vo2,_qo2,_ro2,_wo2,stretch,_oo2,_ak2,alpha){let _Bu=parent.ax,_Cu=parent.ay,_xo2=parent._fn2,_yo2=parent._gn2,_VZ=_xo2,_WZ=_yo2,_zo2=_vo2._fn2;let _Ao2=0,_Bo2=0,_JB=0;if(_xo2<0){_xo2=-_xo2;_Ao2=180;_JB=-1;}else {_Ao2=0;_JB=1;}if(_yo2<0){_yo2=-_yo2;_JB=-_JB;}if(_zo2<0){_zo2=-_zo2;_Bo2=180;}else _Bo2=0;let _hu=_vo2.ax,_iu=0,_Co2=0,_Do2=0,_h4=parent._h4,_g4=parent._g4,c=parent.c,_Bm=parent._Bm; let _X4=Math.abs(_xo2-_yo2)<=1e-4;if(!_X4||stretch){_iu=0;_Co2=_h4*_hu+parent._h7;_Do2=c*_hu+parent._i7;}else {_iu=_vo2.ay;_Co2=_h4*_hu+_g4*_iu+parent._h7;_Do2=c*_hu+_Bm*_iu+parent._i7;}let _Eo2=parent.parent;_h4=_Eo2._h4;_g4=_Eo2._g4;c=_Eo2.c;_Bm=_Eo2._Bm;let id=1/(_h4*_Bm-_g4*c),x=_Co2-_Eo2._h7,y=_Do2-_Eo2._i7;let _db=(x*_Bm-y*_g4)*id-_Bu,_eb=(y*_h4-x*c)*id-_Cu;let _Fo2=Math.sqrt(_db*_db+_eb*_eb),_8_1=_vo2.data.length*_zo2,_Qj1,_Rj1;if(_Fo2<1e-4){this._no2(parent,_qo2,_ro2,false,stretch,false,alpha); _vo2._ln2(_hu,_iu,0,_vo2._fn2,_vo2._gn2,_vo2._hn2,_vo2._in2);return;}x=_qo2-_Eo2._h7;y=_ro2-_Eo2._i7;let _D_=(x*_Bm-y*_g4)*id-_Bu,_E_=(y*_h4-x*c)*id-_Cu;let _2M=_D_*_D_+_E_*_E_;if(_ak2!=0){_ak2*=_xo2*(_zo2+1)*0.5;let _Go2=Math.sqrt(_2M),_Ho2=_Go2-_Fo2-_8_1*_xo2+_ak2;if(_Ho2>0){let _gh=Math.min(1,_Ho2/(_ak2*2))-1;_gh=(_Ho2-_ak2*(1-_gh*_gh))/_Go2;_D_-=_gh*_D_;_E_-=_gh*_E_;_2M=_D_*_D_+_E_*_E_;}}_Al2:if(_X4){_8_1*=_xo2;let cos=(_2M-_Fo2*_Fo2-_8_1*_8_1)/(2*_Fo2*_8_1);if(cos<-1){cos=-1;_Rj1=Math.PI*_wo2;}else if(cos>1){ cos=1;_Rj1=0;if(stretch){_h4=(Math.sqrt(_2M)/(_Fo2+_8_1)-1)*alpha+1;_VZ*=_h4;if(_oo2)_WZ*=_h4;}}else _Rj1=Math.acos(cos)*_wo2;_h4=_Fo2+_8_1*cos;_g4=_8_1*Math.sin(_Rj1);_Qj1=Math.atan2(_E_*_h4-_D_*_g4,_D_*_h4+_E_*_g4);}else {_h4=_xo2*_8_1;_g4=_yo2*_8_1;let _Io2=_h4*_h4,_7L=_g4*_g4,_Jo2=Math.atan2(_E_,_D_);c=_7L*_Fo2*_Fo2+_Io2*_2M-_Io2*_7L;let _6h=-2*_7L*_Fo2,_7h=_7L-_Io2;_Bm=_6h*_6h-4*_7h*c;if(_Bm>=0){let q=Math.sqrt(_Bm);if(_6h<0)q=-q;q=-(_6h+q)*0.5;let _oL1=q/_7h,_XH=c/q;let _e4=Math.abs(_oL1)=-1&&c<=1){c=Math.acos(c);x=_h4*Math.cos(c)+_Fo2;y=_g4*Math.sin(c);_Bm=x*x+y*y;if(_Bm<_Lo2){_Ko2=c;_Lo2=_Bm;_46=x;_66=y;}if(_Bm>_No2){_Mo2=c;_No2=_Bm;_56=x;_76=y;}}if(_2M<=(_Lo2+_No2)*0.5){_Qj1=_Jo2-Math.atan2(_66*_wo2,_46);_Rj1=_Ko2*_wo2;}else {_Qj1=_Jo2-Math.atan2(_76*_wo2, _56);_Rj1=_Mo2*_wo2;}}let _qW1=Math.atan2(_iu,_hu)*_JB;let rotation=parent._n7;_Qj1=(_Qj1-_qW1)*_hh2._ti2+_Ao2-rotation;if(_Qj1>180)_Qj1-=360;else if(_Qj1<-180)_Qj1+=360;parent._ln2(_Bu,_Cu,rotation+_Qj1*alpha,_VZ,_WZ,0,0);rotation=_vo2._n7;_Rj1=((_Rj1+_qW1)*_hh2._ti2-_vo2._hn2)*_JB+_Bo2-rotation;if(_Rj1>180)_Rj1-=360;else if(_Rj1<-180)_Rj1+=360;_vo2._ln2(_hu,_iu,rotation+_Rj1*alpha,_vo2._fn2,_vo2._gn2,_vo2._hn2,_vo2._in2);}};var _ch2=class extends _Wg2{constructor(name){super(name,0,false);this.bones=new Array(); this._bk2=1;this.compress=false;this.stretch=false;this._oo2=false;this.mix=1;this._ak2=0;}};var _mh2=class extends _Wg2{constructor(name){super(name,0,false);this.bones=new Array();this._fk2=0;this._gk2=0;this._hk2=0;}};var _sh2;(function(_Oo2){_Oo2[_Oo2["Fixed"]=0]="Fixed";_Oo2[_Oo2["Percent"]=1]="Percent";})(_sh2||(_sh2={}));var _Oh2;(function(_Po2){_Po2[_Po2["Length"]=0]="Length";_Po2[_Po2["Fixed"]=1]="Fixed";_Po2[_Po2["Percent"]=2]="Percent";_Po2[_Po2["Proportional"]=3]="Proportional";})(_Oh2||(_Oh2={ }));var _zh2;(function(_Qo2){_Qo2[_Qo2["Tangent"]=0]="Tangent";_Qo2[_Qo2["Chain"]=1]="Chain";_Qo2[_Qo2["ChainScale"]=2]="ChainScale";})(_zh2||(_zh2={}));var _Ro2=class {constructor(data,skeleton){this.position=0;this.spacing=0;this._fk2=0;this._gk2=0;this._hk2=0;this._So2=new Array();this._aF1=new Array();this._tC1=new Array();this._rj2=new Array();this.lengths=new Array();this._Qi=new Array();this.active=false;if(!data)throw new Error("data cannot be null.");if(!skeleton)throw new Error("skeleton cannot be null."); this.data=data;this.bones=new Array();for(let i=0,_t6=data.bones.length;i<_t6;i++)this.bones.push(skeleton._a7(data.bones[i].name));this.target=skeleton._64(data.target.name);this.position=data.position;this.spacing=data.spacing;this._fk2=data._fk2;this._gk2=data._gk2;this._hk2=data._hk2;}_vd1(){return this.active;}_M5(){let attachment=this.target._a4();if(!(attachment instanceof _kh2))return;let _fk2=this._fk2,_gk2=this._gk2,_hk2=this._hk2;if(_fk2==0&&_gk2==0&&_hk2==0)return;let data=this.data;let _To2=data.rotateMode==_zh2.Tangent, scale=data.rotateMode==_zh2.ChainScale;let bones=this.bones;let _Uo2=bones.length,_Vo2=_To2?_Uo2:_Uo2+1;let _So2=_2i2._Ei2(this._So2,_Vo2),lengths=scale?this.lengths=_2i2._Ei2(this.lengths,_Uo2):null;let spacing=this.spacing;switch(data.spacingMode){case _Oh2.Percent:if(scale){for(let i=0,_t6=_Vo2-1;i<_t6;i++){let bone=bones[i];let _Wo2=bone.data.length;if(_Wo2<_Ro2._0c2)lengths[i]=0;else {let x=_Wo2*bone._h4,y=_Wo2*bone.c;lengths[i]=Math.sqrt(x*x+y*y);}}}_2i2._Bi2(_So2,1,_Vo2,spacing);break;case _Oh2._Xo2:let _Yo2=0; for(let i=0,_t6=_Vo2-1;i<_t6;){let bone=bones[i];let _Wo2=bone.data.length;if(_Wo2<_Ro2._0c2){if(scale)lengths[i]=0;_So2[++i]=spacing;}else {let x=_Wo2*bone._h4,y=_Wo2*bone.c;let length=Math.sqrt(x*x+y*y);if(scale)lengths[i]=length;_So2[++i]=length;_Yo2+=length;}}if(_Yo2>0){_Yo2=_Vo2/_Yo2*spacing;for(let i=1;i<_Vo2;i++)_So2[i]*=_Yo2;}break;default :let _Zo2=data.spacingMode==_Oh2.Length;for(let i=0,_t6=_Vo2-1;i<_t6;){let bone=bones[i];let _Wo2=bone.data.length;if(_Wo2<_Ro2._0c2){if(scale)lengths[i]=0;_So2[++i]=spacing; }else {let x=_Wo2*bone._h4,y=_Wo2*bone.c;let length=Math.sqrt(x*x+y*y);if(scale)lengths[i]=length;_So2[++i]=(_Zo2?_Wo2+spacing:spacing)*length/_Wo2;}}}let _aF1=this.__o2(attachment,_Vo2,_To2);let _0p2=_aF1[0],_1p2=_aF1[1],_2p2=data._2p2;let _3p2=false;if(_2p2==0)_3p2=data.rotateMode==_zh2.Chain;else {_3p2=false;let _gh=this.target.bone;_2p2*=_gh._h4*_gh._Bm-_gh._g4*_gh.c>0?_hh2._li2:-_hh2._li2;}for(let i=0,_gh=3;i<_Uo2;i++,_gh+=3){let bone=bones[i];bone._h7+=(_0p2-bone._h7)*_gk2;bone._i7+=(_1p2-bone._i7)*_hk2; let x=_aF1[_gh],y=_aF1[_gh+1],_db=x-_0p2,_eb=y-_1p2;if(scale){let length=lengths[i];if(length!=0){let _ni=(Math.sqrt(_db*_db+_eb*_eb)/length-1)*_fk2+1;bone._h4*=_ni;bone.c*=_ni;}}_0p2=x;_1p2=y;if(_fk2>0){let _h4=bone._h4,_g4=bone._g4,c=bone.c,_Bm=bone._Bm,_e4=0,cos=0,sin=0;if(_To2)_e4=_aF1[_gh-1];else if(_So2[i+1]==0)_e4=_aF1[_gh+2];else _e4=Math.atan2(_eb,_db);_e4-=Math.atan2(c,_h4);if(_3p2){cos=Math.cos(_e4);sin=Math.sin(_e4);let length=bone.data.length;_0p2+=(length*(cos*_h4-sin*c)-_db)*_fk2;_1p2+=(length*(sin*_h4+cos*c)-_eb)*_fk2; }else {_e4+=_2p2;}if(_e4>_hh2.PI)_e4-=_hh2._ri2;else if(_e4<-_hh2.PI)_e4+=_hh2._ri2;_e4*=_fk2;cos=Math.cos(_e4);sin=Math.sin(_e4);bone._h4=cos*_h4-sin*c;bone._g4=cos*_g4-sin*_Bm;bone.c=sin*_h4+cos*c;bone._Bm=sin*_g4+cos*_Bm;}bone._wn2();}}__o2(path,_Vo2,_To2){let target=this.target;let position=this.position;let _So2=this._So2,out=_2i2._Ei2(this._aF1,_Vo2*3+2),_tC1=null;let _4p2=path.closed;let _5p2=path._P9,_6p2=_5p2/6,_7p2=_Ro2._8p2;if(!path._im2){let lengths=path.lengths;_6p2-=_4p2?1:2;let _9p2=lengths[_6p2]; if(this.data._ap2==_sh2.Percent)position*=_9p2;let _bp2;switch(this.data.spacingMode){case _Oh2.Percent:_bp2=_9p2;break;case _Oh2._Xo2:_bp2=_9p2/_Vo2;break;default :_bp2=1;}_tC1=_2i2._Ei2(this._tC1,8);for(let i=0,_NF=0,curve=0;i<_Vo2;i++,_NF+=3){let _cp2=_So2[i]*_bp2;position+=_cp2;let _gh=position;if(_4p2){_gh%=_9p2;if(_gh<0)_gh+=_9p2;curve=0;}else if(_gh<0){if(_7p2!=_Ro2._dp2){_7p2=_Ro2._dp2;path._J9(target,2,4,_tC1,0,2);}this._ep2(_gh,_tC1,0,out,_NF);continue;}else if(_gh>_9p2){if(_7p2!=_Ro2._fp2){_7p2=_Ro2._fp2; path._J9(target,_5p2-6,4,_tC1,0,2);}this._gp2(_gh-_9p2,_tC1,0,out,_NF);continue;}for(;;curve++){let length=lengths[curve];if(_gh>length)continue;if(curve==0)_gh/=length;else {let _il=lengths[curve-1];_gh=(_gh-_il)/(length-_il);}break;}if(curve!=_7p2){_7p2=curve;if(_4p2&&curve==_6p2){path._J9(target,_5p2-4,4,_tC1,0,2);path._J9(target,0,4,_tC1,4,2);}else path._J9(target,curve*6+2,8,_tC1,0,2);}this._hp2(_gh,_tC1[0],_tC1[1],_tC1[2],_tC1[3],_tC1[4],_tC1[5],_tC1[6],_tC1[7],out,_NF,_To2||i>0&&_cp2==0);}return out; }if(_4p2){_5p2+=2;_tC1=_2i2._Ei2(this._tC1,_5p2);path._J9(target,2,_5p2-4,_tC1,0,2);path._J9(target,0,2,_tC1,_5p2-4,2);_tC1[_5p2-2]=_tC1[0];_tC1[_5p2-1]=_tC1[1];}else {_6p2--;_5p2-=4;_tC1=_2i2._Ei2(this._tC1,_5p2);path._J9(target,2,_5p2,_tC1,0,2);}let _rj2=_2i2._Ei2(this._rj2,_6p2);let _ip2=0;let _w6=_tC1[0],_x6=_tC1[1],_zj2=0,_Aj2=0,_Bj2=0,_Cj2=0,_y6=0,_z6=0;let _Ej2=0,_Fj2=0,_jp2=0,_kp2=0,_lp2=0,_mp2=0,_np2=0,_op2=0;for(let i=0,w=2;i<_6p2;i++,w+=6){_zj2=_tC1[w];_Aj2=_tC1[w+1];_Bj2=_tC1[w+2];_Cj2=_tC1[w+3]; _y6=_tC1[w+4];_z6=_tC1[w+5];_Ej2=(_w6-_zj2*2+_Bj2)*0.1875;_Fj2=(_x6-_Aj2*2+_Cj2)*0.1875;_jp2=((_zj2-_Bj2)*3-_w6+_y6)*0.09375;_kp2=((_Aj2-_Cj2)*3-_x6+_z6)*0.09375;_lp2=_Ej2*2+_jp2;_mp2=_Fj2*2+_kp2;_np2=(_zj2-_w6)*0.75+_Ej2+_jp2*0.16666667;_op2=(_Aj2-_x6)*0.75+_Fj2+_kp2*0.16666667;_ip2+=Math.sqrt(_np2*_np2+_op2*_op2);_np2+=_lp2;_op2+=_mp2;_lp2+=_jp2;_mp2+=_kp2;_ip2+=Math.sqrt(_np2*_np2+_op2*_op2);_np2+=_lp2;_op2+=_mp2;_ip2+=Math.sqrt(_np2*_np2+_op2*_op2);_np2+=_lp2+_jp2;_op2+=_mp2+_kp2;_ip2+=Math.sqrt(_np2*_np2+_op2*_op2); _rj2[i]=_ip2;_w6=_y6;_x6=_z6;}if(this.data._ap2==_sh2.Percent)position*=_ip2;let _e72;switch(this.data.spacingMode){case _Oh2.Percent:_e72=_ip2;break;case _Oh2._Xo2:_e72=_ip2/_Vo2;break;default :_e72=1;}let _Qi=this._Qi;let _pp2=0;for(let i=0,_NF=0,curve=0,_qp2=0;i<_Vo2;i++,_NF+=3){let _cp2=_So2[i]*_e72;position+=_cp2;let _gh=position;if(_4p2){_gh%=_ip2;if(_gh<0)_gh+=_ip2;curve=0;}else if(_gh<0){this._ep2(_gh,_tC1,0,out,_NF);continue;}else if(_gh>_ip2){this._gp2(_gh-_ip2,_tC1,_5p2-4,out,_NF);continue;}for(; ;curve++){let length=_rj2[curve];if(_gh>length)continue;if(curve==0)_gh/=length;else {let _il=_rj2[curve-1];_gh=(_gh-_il)/(length-_il);}break;}if(curve!=_7p2){_7p2=curve;let _0G=curve*6;_w6=_tC1[_0G];_x6=_tC1[_0G+1];_zj2=_tC1[_0G+2];_Aj2=_tC1[_0G+3];_Bj2=_tC1[_0G+4];_Cj2=_tC1[_0G+5];_y6=_tC1[_0G+6];_z6=_tC1[_0G+7];_Ej2=(_w6-_zj2*2+_Bj2)*0.03;_Fj2=(_x6-_Aj2*2+_Cj2)*0.03;_jp2=((_zj2-_Bj2)*3-_w6+_y6)*6e-3;_kp2=((_Aj2-_Cj2)*3-_x6+_z6)*6e-3;_lp2=_Ej2*2+_jp2;_mp2=_Fj2*2+_kp2;_np2=(_zj2-_w6)*0.3+_Ej2+_jp2*0.16666667; _op2=(_Aj2-_x6)*0.3+_Fj2+_kp2*0.16666667;_pp2=Math.sqrt(_np2*_np2+_op2*_op2);_Qi[0]=_pp2;for(_0G=1;_0G<8;_0G++){_np2+=_lp2;_op2+=_mp2;_lp2+=_jp2;_mp2+=_kp2;_pp2+=Math.sqrt(_np2*_np2+_op2*_op2);_Qi[_0G]=_pp2;}_np2+=_lp2;_op2+=_mp2;_pp2+=Math.sqrt(_np2*_np2+_op2*_op2);_Qi[8]=_pp2;_np2+=_lp2+_jp2;_op2+=_mp2+_kp2;_pp2+=Math.sqrt(_np2*_np2+_op2*_op2);_Qi[9]=_pp2;_qp2=0;}_gh*=_pp2;for(;;_qp2++){let length=_Qi[_qp2];if(_gh>length)continue;if(_qp2==0)_gh/=length;else {let _il=_Qi[_qp2-1];_gh=_qp2+(_gh-_il)/(length-_il); }break;}this._hp2(_gh*0.1,_w6,_x6,_zj2,_Aj2,_Bj2,_Cj2,_y6,_z6,out,_NF,_To2||i>0&&_cp2==0);}return out;}_ep2(_gh,_jL,i,out,_NF){let _w6=_jL[i],_x6=_jL[i+1],_db=_jL[i+2]-_w6,_eb=_jL[i+3]-_x6,_e4=Math.atan2(_eb,_db);out[_NF]=_w6+_gh*Math.cos(_e4);out[_NF+1]=_x6+_gh*Math.sin(_e4);out[_NF+2]=_e4;}_gp2(_gh,_jL,i,out,_NF){let _w6=_jL[i+2],_x6=_jL[i+3],_db=_w6-_jL[i],_eb=_x6-_jL[i+1],_e4=Math.atan2(_eb,_db);out[_NF]=_w6+_gh*Math.cos(_e4);out[_NF+1]=_x6+_gh*Math.sin(_e4);out[_NF+2]=_e4;}_hp2(_gh,_w6,_x6,_zj2, _Aj2,_Bj2,_Cj2,_y6,_z6,out,_NF,_To2){if(_gh==0||isNaN(_gh)){out[_NF]=_w6;out[_NF+1]=_x6;out[_NF+2]=Math.atan2(_Aj2-_x6,_zj2-_w6);return;}let _4Q=_gh*_gh,_rp2=_4Q*_gh,_X4=1-_gh,_sp2=_X4*_X4,_tp2=_sp2*_X4;let _up2=_X4*_gh,_vp2=_up2*3,_wp2=_X4*_vp2,_xp2=_vp2*_gh;let x=_w6*_tp2+_zj2*_wp2+_Bj2*_xp2+_y6*_rp2,y=_x6*_tp2+_Aj2*_wp2+_Cj2*_xp2+_z6*_rp2;out[_NF]=x;out[_NF+1]=y;if(_To2){if(_gh<1e-3)out[_NF+2]=Math.atan2(_Aj2-_x6,_zj2-_w6);else out[_NF+2]=Math.atan2(y-(_x6*_sp2+_Aj2*_up2*2+_Cj2*_4Q),x-(_w6*_sp2+_zj2*_up2*2+_Bj2*_4Q)); }}};var _lh2=_Ro2;_lh2._8p2=-1;_lh2._dp2=-2;_lh2._fp2=-3;_lh2._0c2=1e-5;var _Mh2=class {constructor(data,bone){this.deform=new Array();if(!data)throw new Error("data cannot be null.");if(!bone)throw new Error("bone cannot be null.");this.data=data;this.bone=bone;this.color=new _i4();this._wa=!data._wa?null:new _i4();this._kn2();}_yp2(){return this.bone.skeleton;}_a4(){return this.attachment;}_74(attachment){if(this.attachment==attachment)return;if(!(attachment instanceof _4i2)||!(this.attachment instanceof _4i2)||attachment._6j2!=this.attachment._6j2){ this.deform.length=0;}this.attachment=attachment;this._zp2=this.bone.skeleton.time;}_Ap2(time){this._zp2=this.bone.skeleton.time-time;}_Bp2(){return this.bone.skeleton.time-this._zp2;}_kn2(){this.color._i5(this.data.color);if(this._wa)this._wa._i5(this.data._wa);if(!this.data._Cb)this.attachment=null;else {this.attachment=null;this._74(this.bone.skeleton._a4(this.data.index,this.data._Cb));}}};var _Vh2=class {constructor(data,skeleton){this._fk2=0;this._gk2=0;this._hk2=0;this._ik2=0;this._jk2=0;this._kk2=0; this._jL=new _3i2();this.active=false;if(!data)throw new Error("data cannot be null.");if(!skeleton)throw new Error("skeleton cannot be null.");this.data=data;this._fk2=data._fk2;this._gk2=data._gk2;this._hk2=data._hk2;this._ik2=data._ik2;this._jk2=data._jk2;this._kk2=data._kk2;this.bones=new Array();for(let i=0;i0?_hh2._li2:-_hh2._li2;let _2p2=this.data._2p2*_Hp2;let _Ip2=this.data._Ip2*_Hp2;let bones=this.bones;for(let i=0,_t6=bones.length;i<_t6;i++){let bone=bones[i]; if(_fk2!=0){let _h4=bone._h4,_g4=bone._g4,c=bone.c,_Bm=bone._Bm;let _e4=Math.atan2(_Gp2,_Jo2)-Math.atan2(c,_h4)+_2p2;if(_e4>_hh2.PI)_e4-=_hh2._ri2;else if(_e4<-_hh2.PI)_e4+=_hh2._ri2;_e4*=_fk2;let cos=Math.cos(_e4),sin=Math.sin(_e4);bone._h4=cos*_h4-sin*c;bone._g4=cos*_g4-sin*_Bm;bone.c=sin*_h4+cos*c;bone._Bm=sin*_g4+cos*_Bm;}if(translate){let _jL=this._jL;target._Gn2(_jL.set(this.data._05,this.data._15));bone._h7+=(_jL.x-bone._h7)*_gk2;bone._i7+=(_jL.y-bone._i7)*_hk2;}if(_ik2!=0){let _ni=Math.sqrt(bone._h4*bone._h4+bone.c*bone.c); if(_ni!=0)_ni=(_ni+(Math.sqrt(_Jo2*_Jo2+_Gp2*_Gp2)-_ni+this.data._Jp2)*_ik2)/_ni;bone._h4*=_ni;bone.c*=_ni;}if(_jk2!=0){let _ni=Math.sqrt(bone._g4*bone._g4+bone._Bm*bone._Bm);if(_ni!=0)_ni=(_ni+(Math.sqrt(_5Q*_5Q+_Go2*_Go2)-_ni+this.data._Kp2)*_jk2)/_ni;bone._g4*=_ni;bone._Bm*=_ni;}if(_kk2>0){let _g4=bone._g4,_Bm=bone._Bm;let _fI1=Math.atan2(_Bm,_g4);let _e4=Math.atan2(_Go2,_5Q)-Math.atan2(_Gp2,_Jo2)-(_fI1-Math.atan2(bone.c,bone._h4));if(_e4>_hh2.PI)_e4-=_hh2._ri2;else if(_e4<-_hh2.PI)_e4+=_hh2._ri2; _e4=_fI1+(_e4+_Ip2)*_kk2;let _ni=Math.sqrt(_g4*_g4+_Bm*_Bm);bone._g4=Math.cos(_e4)*_ni;bone._Bm=Math.sin(_e4)*_ni;}bone._wn2();}}_Ep2(){let _fk2=this._fk2,_gk2=this._gk2,_hk2=this._hk2,_ik2=this._ik2,_jk2=this._jk2,_kk2=this._kk2;let translate=_gk2!=0||_hk2!=0;let target=this.target;let _Jo2=target._h4,_5Q=target._g4,_Gp2=target.c,_Go2=target._Bm;let _Hp2=_Jo2*_Go2-_5Q*_Gp2>0?_hh2._li2:-_hh2._li2;let _2p2=this.data._2p2*_Hp2,_Ip2=this.data._Ip2*_Hp2;let bones=this.bones;for(let i=0,_t6=bones.length;i<_t6; i++){let bone=bones[i];if(_fk2!=0){let _h4=bone._h4,_g4=bone._g4,c=bone.c,_Bm=bone._Bm;let _e4=Math.atan2(_Gp2,_Jo2)+_2p2;if(_e4>_hh2.PI)_e4-=_hh2._ri2;else if(_e4<-_hh2.PI)_e4+=_hh2._ri2;_e4*=_fk2;let cos=Math.cos(_e4),sin=Math.sin(_e4);bone._h4=cos*_h4-sin*c;bone._g4=cos*_g4-sin*_Bm;bone.c=sin*_h4+cos*c;bone._Bm=sin*_g4+cos*_Bm;}if(translate){let _jL=this._jL;target._Gn2(_jL.set(this.data._05,this.data._15));bone._h7+=_jL.x*_gk2;bone._i7+=_jL.y*_hk2;}if(_ik2!=0){let _ni=(Math.sqrt(_Jo2*_Jo2+_Gp2*_Gp2)-1+this.data._Jp2)*_ik2+1; bone._h4*=_ni;bone.c*=_ni;}if(_jk2!=0){let _ni=(Math.sqrt(_5Q*_5Q+_Go2*_Go2)-1+this.data._Kp2)*_jk2+1;bone._g4*=_ni;bone._Bm*=_ni;}if(_kk2>0){let _e4=Math.atan2(_Go2,_5Q)-Math.atan2(_Gp2,_Jo2);if(_e4>_hh2.PI)_e4-=_hh2._ri2;else if(_e4<-_hh2.PI)_e4+=_hh2._ri2;let _g4=bone._g4,_Bm=bone._Bm;_e4=Math.atan2(_Bm,_g4)+(_e4-_hh2.PI/2+_Ip2)*_kk2;let _ni=Math.sqrt(_g4*_g4+_Bm*_Bm);bone._g4=Math.cos(_e4)*_ni;bone._Bm=Math.sin(_e4)*_ni;}bone._wn2();}}_Dp2(){let _fk2=this._fk2,_gk2=this._gk2,_hk2=this._hk2,_ik2=this._ik2, _jk2=this._jk2,_kk2=this._kk2;let target=this.target;let bones=this.bones;for(let i=0,_t6=bones.length;i<_t6;i++){let bone=bones[i];let rotation=bone._n7;if(_fk2!=0){let _e4=target._n7-rotation+this.data._2p2;_e4-=(16384-(16384.499999999996-_e4/360|0))*360;rotation+=_e4*_fk2;}let x=bone.ax,y=bone.ay;x+=(target.ax-x+this.data._05)*_gk2;y+=(target.ay-y+this.data._15)*_hk2;let scaleX=bone._fn2,scaleY=bone._gn2;if(_ik2!=0&&scaleX!=0)scaleX=(scaleX+(target._fn2-scaleX+this.data._Jp2)*_ik2)/scaleX;if(_jk2!=0&&scaleY!=0)scaleY=(scaleY+(target._gn2-scaleY+this.data._Kp2)*_jk2)/scaleY; let shearY=bone._in2;if(_kk2!=0){let _e4=target._in2-shearY+this.data._Ip2;_e4-=(16384-(16384.499999999996-_e4/360|0))*360;shearY+=_e4*_kk2;}bone._ln2(x,y,rotation,scaleX,scaleY,bone._hn2,shearY);}}_Cp2(){let _fk2=this._fk2,_gk2=this._gk2,_hk2=this._hk2,_ik2=this._ik2,_jk2=this._jk2,_kk2=this._kk2;let target=this.target;let bones=this.bones;for(let i=0,_t6=bones.length;i<_t6;i++){let bone=bones[i];let rotation=bone._n7+(target._n7+this.data._2p2)*_fk2;let x=bone.ax+(target.ax+this.data._05)*_gk2;let y=bone.ay+(target.ay+this.data._15)*_hk2; let scaleX=bone._fn2*((target._fn2-1+this.data._Jp2)*_ik2+1);let scaleY=bone._gn2*((target._gn2-1+this.data._Kp2)*_jk2+1);let shearY=bone._in2+(target._in2+this.data._Ip2)*_kk2;bone._ln2(x,y,rotation,scaleX,scaleY,bone._hn2,shearY);}}};var _93=class {constructor(data){this._Lp2=new Array();this.time=0;this.scaleX=1;this.scaleY=1;this.x=0;this.y=0;if(!data)throw new Error("data cannot be null.");this.data=data;this.bones=new Array();for(let i=0;i=attachments.length)attachments.length=_84+1;if(!attachments[_84])attachments[_84]={};attachments[_84][name]=attachment;}_kq2(skin){for(let i=0; i= 0.");if(!name)throw new Error("name cannot be null.");if(!_S7)throw new Error("boneData cannot be null.");this.index=index;this.name=name;this._S7=_S7;}};var _8a;(function(_sq2){_sq2[_sq2["Normal"]=0]="Normal";_sq2[_sq2["Additive"]=1]="Additive"; _sq2[_sq2["Multiply"]=2]="Multiply";_sq2[_sq2["Screen"]=3]="Screen";})(_8a||(_8a={}));var _Wh2=class extends _Wg2{constructor(name){super(name,0,false);this.bones=new Array();this._fk2=0;this._gk2=0;this._hk2=0;this._ik2=0;this._jk2=0;this._kk2=0;this._2p2=0;this._05=0;this._15=0;this._Jp2=0;this._Kp2=0;this._Ip2=0;this._J11=false;this._Ai=false;}};var _Jh2=class {constructor(_b5){this.scale=1;this._tq2=new Array();this._b5=_b5;}_S8(_uq2){let scale=this.scale;let _nl2=new _Kh2();_nl2.name="";let input=new _Sg2(_uq2); let _vq2=input._wq2();let _xq2=input._wq2();_nl2.hash=_xq2==0&&_vq2==0?null:_xq2.toString(16)+_vq2.toString(16);_nl2.version=input._yq2();_nl2.x=input._zq2();_nl2.y=input._zq2();_nl2.width=input._zq2();_nl2.height=input._zq2();let _Aq2=input._Bq2();if(_Aq2){_nl2.fps=input._zq2();_nl2._Cq2=input._yq2();_nl2._Dq2=input._yq2();}let _t6=0;_t6=input._Eq2(true);for(let i=0;i<_t6;i++)input._gF.push(input._yq2());_t6=input._Eq2(true);for(let i=0;i<_t6;i++){let name=input._yq2();let parent=i==0?null:_nl2.bones[input._Eq2(true)]; let data=new _Ug2(i,name,parent);data.rotation=input._zq2();data.x=input._zq2()*scale;data.y=input._zq2()*scale;data.scaleX=input._zq2();data.scaleY=input._zq2();data.shearX=input._zq2();data.shearY=input._zq2();data.length=input._zq2()*scale;data._nh1=input._Eq2(true);data._dn2=input._Bq2();if(_Aq2)_i4._di2(data.color,input._wq2());_nl2.bones.push(data);}_t6=input._Eq2(true);for(let i=0;i<_t6;i++){let _aq2=input._yq2();let _S7=_nl2.bones[input._Eq2(true)];let data=new _Nh2(i,_aq2,_S7);_i4._di2(data.color, input._wq2());let _wa=input._wq2();if(_wa!=-1)_i4._ei2(data._wa=new _i4(),_wa);data._Cb=input._Fq2();data._za=input._Eq2(true);_nl2.slots.push(data);}_t6=input._Eq2(true);for(let i=0,_5q2;i<_t6;i++){let data=new _ch2(input._yq2());data._Mn2=input._Eq2(true);data._dn2=input._Bq2();_5q2=input._Eq2(true);for(let _0G=0;_0G<_5q2;_0G++)data.bones.push(_nl2.bones[input._Eq2(true)]);data.target=_nl2.bones[input._Eq2(true)];data.mix=input._zq2();data._ak2=input._zq2()*scale;data._bk2=input._Gq2();data.compress=input._Bq2(); data.stretch=input._Bq2();data._oo2=input._Bq2();_nl2._dk2.push(data);}_t6=input._Eq2(true);for(let i=0,_5q2;i<_t6;i++){let data=new _Wh2(input._yq2());data._Mn2=input._Eq2(true);data._dn2=input._Bq2();_5q2=input._Eq2(true);for(let _0G=0;_0G<_5q2;_0G++)data.bones.push(_nl2.bones[input._Eq2(true)]);data.target=_nl2.bones[input._Eq2(true)];data._Ai=input._Bq2();data._J11=input._Bq2();data._2p2=input._zq2();data._05=input._zq2()*scale;data._15=input._zq2()*scale;data._Jp2=input._zq2();data._Kp2=input._zq2(); data._Ip2=input._zq2();data._fk2=input._zq2();data._gk2=input._zq2();data._hk2=input._zq2();data._ik2=input._zq2();data._jk2=input._zq2();data._kk2=input._zq2();_nl2._lk2.push(data);}_t6=input._Eq2(true);for(let i=0,_5q2;i<_t6;i++){let data=new _mh2(input._yq2());data._Mn2=input._Eq2(true);data._dn2=input._Bq2();_5q2=input._Eq2(true);for(let _0G=0;_0G<_5q2;_0G++)data.bones.push(_nl2.bones[input._Eq2(true)]);data.target=_nl2.slots[input._Eq2(true)];data._ap2=input._Eq2(true);data.spacingMode=input._Eq2(true); data.rotateMode=input._Eq2(true);data._2p2=input._zq2();data.position=input._zq2();if(data._ap2==_sh2.Fixed)data.position*=scale;data.spacing=input._zq2();if(data.spacingMode==_Oh2.Length||data.spacingMode==_Oh2.Fixed)data.spacing*=scale;data._fk2=input._zq2();data._gk2=input._zq2();data._hk2=input._zq2();_nl2._nk2.push(data);}let _U3=this._Hq2(input,_nl2,true,_Aq2);if(_U3){_nl2._U3=_U3;_nl2.skins.push(_U3);}{let i=_nl2.skins.length;_2i2._Ei2(_nl2.skins,_t6=i+input._Eq2(true));for(;i<_t6;i++)_nl2.skins[i]=this._Hq2(input, _nl2,false,_Aq2);}_t6=this._tq2.length;for(let i=0;i<_t6;i++){let _Iq2=this._tq2[i];let skin=!_Iq2.skin?_nl2._U3:_nl2._x7(_Iq2.skin);let parent=skin._a4(_Iq2._84,_Iq2.parent);_Iq2._O9._6j2=_Iq2._Jq2?parent:_Iq2._O9;_Iq2._O9._fm2(parent);_Iq2._O9._9m2();}this._tq2.length=0;_t6=input._Eq2(true);for(let i=0;i<_t6;i++){let data=new _3h2(input._Fq2());data._f3=input._Eq2(false);data._g3=input._zq2();data._h3=input._yq2();data._Dq2=input._yq2();if(data._Dq2){data.volume=input._zq2();data._QA1=input._zq2();}_nl2.events.push(data); }_t6=input._Eq2(true);for(let i=0;i<_t6;i++)_nl2.animations.push(this._Kq2(input,input._yq2(),_nl2));return _nl2;}_Hq2(input,_nl2,_U3,_Aq2){let skin=null;let _Lq2=0;if(_U3){_Lq2=input._Eq2(true);if(_Lq2==0)return null;skin=new _v7("default");}else {skin=new _v7(input._Fq2());skin.bones.length=input._Eq2(true);for(let i=0,_t6=skin.bones.length;i<_t6;i++)skin.bones[i]=_nl2.bones[input._Eq2(true)];for(let i=0,_t6=input._Eq2(true);i<_t6;i++)skin._Af1.push(_nl2._dk2[input._Eq2(true)]);for(let i=0,_t6=input._Eq2(true); i<_t6;i++)skin._Af1.push(_nl2._lk2[input._Eq2(true)]);for(let i=0,_t6=input._Eq2(true);i<_t6;i++)skin._Af1.push(_nl2._nk2[input._Eq2(true)]);_Lq2=input._Eq2(true);}for(let i=0;i<_Lq2;i++){let _84=input._Eq2(true);for(let _0G=0,_5q2=input._Eq2(true);_0G<_5q2;_0G++){let name=input._Fq2();let attachment=this._Mq2(input,_nl2,skin,_84,name,_Aq2);if(attachment)skin._74(_84,name,attachment);}}return skin;}_Mq2(input,_nl2,skin,_84,_Cb,_Aq2){let scale=this.scale;let name=input._Fq2();if(!name)name=_Cb;switch(input._Gq2()){ case _Nq2.Region:{let path=input._Fq2();let rotation=input._zq2();let x=input._zq2();let y=input._zq2();let scaleX=input._zq2();let scaleY=input._zq2();let width=input._zq2();let height=input._zq2();let color=input._wq2();if(!path)path=name;let _V4=this._b5._e5(skin,name,path);if(!_V4)return null;_V4.path=path;_V4.x=x*scale;_V4.y=y*scale;_V4.scaleX=scaleX;_V4.scaleY=scaleY;_V4.rotation=rotation;_V4.width=width*scale;_V4.height=height*scale;_i4._di2(_V4.color,color);_V4._j5();return _V4;}case _Nq2.BoundingBox:{ let vertexCount=input._Eq2(true);let vertices=this._Oq2(input,vertexCount);let color=_Aq2?input._wq2():0;let _Pq2=this._b5._9n2(skin,name);if(!_Pq2)return null;_Pq2._P9=vertexCount<<1;_Pq2.vertices=vertices.vertices;_Pq2.bones=vertices.bones;if(_Aq2)_i4._di2(_Pq2.color,color);return _Pq2;}case _Nq2.Mesh:{let path=input._Fq2();let color=input._wq2();let vertexCount=input._Eq2(true);let uvs=this._Qq2(input,vertexCount<<1,1);let triangles=this._Rq2(input);let vertices=this._Oq2(input,vertexCount);let _gm2=input._Eq2(true); let edges=null;let width=0,height=0;if(_Aq2){edges=this._Rq2(input);width=input._zq2();height=input._zq2();}if(!path)path=name;let _O9=this._b5._8n2(skin,name,path);if(!_O9)return null;_O9.path=path;_i4._di2(_O9.color,color);_O9.bones=vertices.bones;_O9.vertices=vertices.vertices;_O9._P9=vertexCount<<1;_O9.triangles=triangles;_O9._am2=uvs;_O9._9m2();_O9._gm2=_gm2<<1;if(_Aq2){_O9.edges=edges;_O9.width=width*scale;_O9.height=height*scale;}return _O9;}case _Nq2.LinkedMesh:{let path=input._Fq2();let color=input._wq2(); let _bq2=input._Fq2();let parent=input._Fq2();let _Jq2=input._Bq2();let width=0,height=0;if(_Aq2){width=input._zq2();height=input._zq2();}if(!path)path=name;let _O9=this._b5._8n2(skin,name,path);if(!_O9)return null;_O9.path=path;_i4._di2(_O9.color,color);if(_Aq2){_O9.width=width*scale;_O9.height=height*scale;}this._tq2.push(new LinkedMesh(_O9,_bq2,_84,parent,_Jq2));return _O9;}case _Nq2.Path:{let _4p2=input._Bq2();let _im2=input._Bq2();let vertexCount=input._Eq2(true);let vertices=this._Oq2(input,vertexCount); let lengths=_2i2._Gi2(vertexCount/3,0);for(let i=0,_t6=lengths.length;i<_t6;i++)lengths[i]=input._zq2()*scale;let color=_Aq2?input._wq2():0;let path=this._b5._an2(skin,name);if(!path)return null;path.closed=_4p2;path._im2=_im2;path._P9=vertexCount<<1;path.vertices=vertices.vertices;path.bones=vertices.bones;path.lengths=lengths;if(_Aq2)_i4._di2(path.color,color);return path;}case _Nq2.Point:{let rotation=input._zq2();let x=input._zq2();let y=input._zq2();let color=_Aq2?input._wq2():0;let _cx1=this._b5._bn2(skin, name);if(!_cx1)return null;_cx1.x=x*scale;_cx1.y=y*scale;_cx1.rotation=rotation;if(_Aq2)_i4._di2(_cx1.color,color);return _cx1;}case _Nq2._Sq2:{let _Tq2=input._Eq2(true);let vertexCount=input._Eq2(true);let vertices=this._Oq2(input,vertexCount);let color=_Aq2?input._wq2():0;let clip=this._b5._cn2(skin,name);if(!clip)return null;clip._Ql2=_nl2.slots[_Tq2];clip._P9=vertexCount<<1;clip.vertices=vertices.vertices;clip.bones=vertices.bones;if(_Aq2)_i4._di2(clip.color,color);return clip;}}return null;}_Oq2(input, vertexCount){let scale=this.scale;let _5p2=vertexCount<<1;let vertices=new _Uq2();if(!input._Bq2()){vertices.vertices=this._Qq2(input,_5p2,scale);return vertices;}let _Vq2=new Array();let _lh1=new Array();for(let i=0;i0){let _eI=new _2h2(_Gr2);let _Lq2=_nl2.slots.length;for(let i=0;i<_Gr2;i++){let time=input._zq2();let _Hr2=input._Eq2(true);let drawOrder=_2i2._Gi2(_Lq2,0);for(let _0G=_Lq2-1;_0G>=0;_0G--)drawOrder[_0G]=-1;let _Ir2=_2i2._Gi2(_Lq2-_Hr2,0);let _Jr2=0,_Kr2=0;for(let _0G=0;_0G<_Hr2; _0G++){let _84=input._Eq2(true);while(_Jr2!=_84)_Ir2[_Kr2++]=_Jr2++;drawOrder[_Jr2+input._Eq2(true)]=_Jr2++;}while(_Jr2<_Lq2)_Ir2[_Kr2++]=_Jr2++;for(let _0G=_Lq2-1;_0G>=0;_0G--)if(drawOrder[_0G]==-1)drawOrder[_0G]=_Ir2[--_Kr2];_eI._Nj2(i,time,drawOrder);}_J5.push(_eI);}let _Lr2=input._Eq2(true);if(_Lr2>0){let _eI=new _K7(_Lr2);for(let i=0;i<_Lr2;i++){let time=input._zq2();let _gI=_nl2.events[input._Eq2(true)];let event=new Event(time,_gI);event._f3=input._Eq2(false);event._g3=input._zq2();event._h3=input._Bq2()?input._yq2():_gI._h3; if(event.data._Dq2){event.volume=input._zq2();event._QA1=input._zq2();}_eI._Nj2(i,event);}_J5.push(_eI);}let duration=0;for(let i=0,_t6=_J5.length;i<_t6;i++)duration=Math.max(duration,_J5[i]._oj2());return new _Ng2(name,_J5,duration);}};var _Sg2=class {constructor(data,_gF=new Array(),index=0,buffer=new DataView(data.buffer)){this._gF=_gF;this.index=index;this.buffer=buffer;}_Gq2(){return this.buffer.getInt8(this.index++);}_1r2(){return this.buffer.getUint8(this.index++);}_Wq2(){let value=this.buffer.getInt16(this.index); this.index+=2;return value;}_wq2(){let value=this.buffer.getInt32(this.index);this.index+=4;return value;}_Eq2(_Mr2){let _g4=this._Gq2();let result=_g4&127;if((_g4&128)!=0){_g4=this._Gq2();result|=(_g4&127)<<7;if((_g4&128)!=0){_g4=this._Gq2();result|=(_g4&127)<<14;if((_g4&128)!=0){_g4=this._Gq2();result|=(_g4&127)<<21;if((_g4&128)!=0){_g4=this._Gq2();result|=(_g4&127)<<28;}}}}return _Mr2?result:result>>>1^-(result&1);}_Fq2(){let index=this._Eq2(true);return index==0?null:this._gF[index-1];}_yq2(){let _Nr2=this._Eq2(true); switch(_Nr2){case 0:return null;case 1:return "";}_Nr2--;let _Or2="";let _Pr2=0;for(let i=0;i<_Nr2;){let _g4=this._Gq2();switch(_g4>>4){case 12:case 13:_Or2+=String.fromCharCode((_g4&31)<<6|this._Gq2()&63);i+=2;break;case 14:_Or2+=String.fromCharCode((_g4&15)<<12|(this._Gq2()&63)<<6|this._Gq2()&63);i+=3;break;default :_Or2+=String.fromCharCode(_g4);i++;}}return _Or2;}_zq2(){let value=this.buffer.getFloat32(this.index);this.index+=4;return value;}_Bq2(){return this._Gq2()!=0;}};var LinkedMesh=class {constructor(_O9, skin,_84,parent,_Jq2){this._O9=_O9;this.skin=skin;this._84=_84;this.parent=parent;this._Jq2=_Jq2;}};var _Uq2=class {constructor(bones=null,vertices=null){this.bones=bones;this.vertices=vertices;}};var _Nq2;(function(_Qr2){_Qr2[_Qr2["Region"]=0]="Region";_Qr2[_Qr2["BoundingBox"]=1]="BoundingBox";_Qr2[_Qr2["Mesh"]=2]="Mesh";_Qr2[_Qr2["LinkedMesh"]=3]="LinkedMesh";_Qr2[_Qr2["Path"]=4]="Path";_Qr2[_Qr2["Point"]=5]="Point";_Qr2[_Qr2["Clipping"]=6]="Clipping";})(_Nq2||(_Nq2={}));function _gr2(input,_eI,scale){ let time=input._zq2(),value=input._zq2()*scale;for(let frame=0,_xj2=0,_H5=_eI._nj2()-1;;frame++){_eI._Nj2(frame,time,value);if(frame==_H5)break;let _2E=input._zq2(),_Dj2=input._zq2()*scale;switch(input._Gq2()){case _2r2:_eI._tj2(frame);break;case _3r2:_wj2(input,_eI,_xj2++,frame,0,time,_2E,value,_Dj2,scale);}time=_2E;value=_Dj2;}return _eI;}function _ir2(input,_eI,scale){let time=input._zq2(),_yj2=input._zq2()*scale,_Dj2=input._zq2()*scale;for(let frame=0,_xj2=0,_H5=_eI._nj2()-1;;frame++){_eI._Nj2(frame, time,_yj2,_Dj2);if(frame==_H5)break;let _2E=input._zq2(),_Rr2=input._zq2()*scale,_Sr2=input._zq2()*scale;switch(input._Gq2()){case _2r2:_eI._tj2(frame);break;case _3r2:_wj2(input,_eI,_xj2++,frame,0,time,_2E,_yj2,_Rr2,scale);_wj2(input,_eI,_xj2++,frame,1,time,_2E,_Dj2,_Sr2,scale);}time=_2E;_yj2=_Rr2;_Dj2=_Sr2;}return _eI;}function _wj2(input,_eI,_xj2,frame,value,_1E,_2E,_yj2,_Dj2,scale){_eI._wj2(_xj2,frame,value,_1E,_yj2,input._zq2(),input._zq2()*scale,input._zq2(),input._zq2()*scale,_2E,_Dj2);}var _fr2=0; var _hr2=1;var _jr2=2;var _kr2=3;var _lr2=4;var _mr2=5;var _nr2=6;var _or2=7;var _pr2=8;var _qr2=9;var __q2=0;var _0r2=1;var _4r2=2;var _5r2=3;var _dr2=4;var _er2=5;var _zr2=0;var _Ar2=1;var _Br2=2;var _2r2=1;var _3r2=2;var _o3=class {constructor(){this._46=0;this._66=0;this._56=0;this._76=0;this._e6=new Array();this._Y5=new Array();this._Tr2=new _rh2(()=>{return _2i2._Hi2(16);});}_M5(skeleton,_Ur2){if(!skeleton)throw new Error("skeleton cannot be null.");let _e6=this._e6;let _Y5=this._Y5;let _Tr2=this._Tr2;let slots=skeleton.slots; let _Lq2=slots.length;_e6.length=0;_Tr2._Ui2(_Y5);_Y5.length=0;for(let i=0;i<_Lq2;i++){let slot=slots[i];if(!slot.bone.active)continue;let attachment=slot._a4();if(attachment instanceof _h9){let _wb=attachment;_e6.push(_wb);let _i6=_Tr2._Si2();if(_i6.length!=_wb._P9){_i6=_2i2._Hi2(_wb._P9);}_Y5.push(_i6);_wb._J9(slot,0,_wb._P9,_i6,0,2);}}if(_Ur2){this._Vr2();}else {this._46=Number.POSITIVE_INFINITY;this._66=Number.POSITIVE_INFINITY;this._56=Number.NEGATIVE_INFINITY;this._76=Number.NEGATIVE_INFINITY;}}_Vr2(){ let _46=Number.POSITIVE_INFINITY,_66=Number.POSITIVE_INFINITY,_56=Number.NEGATIVE_INFINITY,_76=Number.NEGATIVE_INFINITY;let _Y5=this._Y5;for(let i=0,_t6=_Y5.length;i<_t6;i++){let _i6=_Y5[i];let vertices=_i6;for(let _0G=0,_5q2=_i6.length;_0G<_5q2;_0G+=2){let x=vertices[_0G];let y=vertices[_0G+1];_46=Math.min(_46,x);_66=Math.min(_66,y);_56=Math.max(_56,x);_76=Math.max(_76,y);}}this._46=_46;this._66=_66;this._56=_56;this._76=_76;}_Wr2(x,y){return x>=this._46&&x<=this._56&&y>=this._66&&y<=this._76;}_Xr2(_w6, _x6,_y6,_z6){let _46=this._46;let _66=this._66;let _56=this._56;let _76=this._76;if(_w6<=_46&&_y6<=_46||_x6<=_66&&_z6<=_66||_w6>=_56&&_y6>=_56||_x6>=_76&&_z6>=_76)return false;let _v6=(_z6-_x6)/(_y6-_w6);let y=_v6*(_46-_w6)+_x6;if(y>_66&&y<_76)return true;y=_v6*(_56-_w6)+_x6;if(y>_66&&y<_76)return true;let x=(_66-_x6)/_v6+_w6;if(x>_46&&x<_56)return true;x=(_76-_x6)/_v6+_w6;if(x>_46&&x<_56)return true;return false;}_Yr2(_Li){return this._46<_Li._56&&this._56>_Li._46&&this._66<_Li._76&&this._76>_Li._66;}_U6(x,y){ let _Y5=this._Y5;for(let i=0,_t6=_Y5.length;i<_t6;i++)if(this._Zr2(_Y5[i],x,y))return this._e6[i];return null;}_Zr2(_i6,x,y){let vertices=_i6;let _5q2=_i6.length;let __r2=_5q2-2;let _0s2=false;for(let _0G=0;_0G<_5q2;_0G+=2){let _1s2=vertices[_0G+1];let _2s2=vertices[__r2+1];if(_1s2=y||_2s2=y){let _3s2=vertices[_0G];if(_3s2+(y-_1s2)/(_2s2-_1s2)*(vertices[__r2]-_3s2)=_fb&&x<=_8s2||x>=_8s2&&x<=_fb)&&(x>=_w6&&x<=_y6||x>=_y6&&x<=_w6)){let y=(_7s2*_cs2-_6s2*_as2)/_ds2; if((y>=_gb&&y<=_9s2||y>=_9s2&&y<=_gb)&&(y>=_x6&&y<=_z6||y>=_z6&&y<=_x6))return true;}_fb=_8s2;_gb=_9s2;}return false;}_es2(_wb){if(!_wb)throw new Error("boundingBox cannot be null.");let index=this._e6.indexOf(_wb);return index==-1?null:this._Y5[index];}_CV1(){return this._56-this._46;}_DV1(){return this._76-this._66;}};var _1i2=class {constructor(){this._fs2=new Array();this._gs2=new Array();this._hs2=new Array();this._is2=new Array();this.triangles=new Array();this._Tr2=new _rh2(()=>{return new Array();});this._js2=new _rh2(()=>{ return new Array();});}_ks2(_ls2){let vertices=_ls2;let vertexCount=_ls2.length>>1;let _C9=this._hs2;_C9.length=0;for(let i=0;i3){let _ll2=vertexCount-1,i=0,_kl=1;while(true){_Al2:if(!_ms2[i]){let _0v=_C9[_ll2]<<1,_4t1=_C9[i]<<1,_Vu1=_C9[_kl]<<1;let _ns2=vertices[_0v],_os2=vertices[_0v+1];let _ps2=vertices[_4t1], _qs2=vertices[_4t1+1];let _rs2=vertices[_Vu1],_ss2=vertices[_Vu1+1];for(let _0G=(_kl+1)%vertexCount;_0G!=_ll2;_0G=(_0G+1)%vertexCount){if(!_ms2[_0G])continue;let _Y4=_C9[_0G]<<1;let _Qa=vertices[_Y4],_Ra=vertices[_Y4+1];if(_1i2._ts2(_rs2,_ss2,_ns2,_os2,_Qa,_Ra)){if(_1i2._ts2(_ns2,_os2,_ps2,_qs2,_Qa,_Ra)){if(_1i2._ts2(_ps2,_qs2,_rs2,_ss2,_Qa,_Ra))break _Al2;}}}break;}if(_kl==0){do {if(!_ms2[i])break;i--;}while(i>0);break;}_ll2=i;i=_kl;_kl=(_kl+1)%vertexCount;}triangles.push(_C9[(vertexCount+i-1)%vertexCount]); triangles.push(_C9[i]);triangles.push(_C9[(i+1)%vertexCount]);_C9.splice(i,1);_ms2.splice(i,1);vertexCount--;let _us2=(vertexCount+i-1)%vertexCount;let _vs2=i==vertexCount?0:i;_ms2[_us2]=_1i2._ms2(_us2,vertexCount,vertices,_C9);_ms2[_vs2]=_1i2._ms2(_vs2,vertexCount,vertices,_C9);}if(vertexCount==3){triangles.push(_C9[2]);triangles.push(_C9[0]);triangles.push(_C9[1]);}return triangles;}_ws2(_ls2,triangles){let vertices=_ls2;let _fs2=this._fs2;this._Tr2._Ui2(_fs2);_fs2.length=0;let _gs2=this._gs2;this._js2._Ui2(_gs2); _gs2.length=0;let _xs2=this._js2._Si2();_xs2.length=0;let _i6=this._Tr2._Si2();_i6.length=0;let _ys2=-1,_zs2=0;for(let i=0,_t6=triangles.length;i<_t6;i+=3){let _1y1=triangles[i]<<1,_2y1=triangles[i+1]<<1,_As2=triangles[i+2]<<1;let _w6=vertices[_1y1],_x6=vertices[_1y1+1];let _y6=vertices[_2y1],_z6=vertices[_2y1+1];let _fb=vertices[_As2],_gb=vertices[_As2+1];let _Bs2=false;if(_ys2==_1y1){let _NF=_i6.length-4;let _Cs2=_1i2._Ds2(_i6[_NF],_i6[_NF+1],_i6[_NF+2],_i6[_NF+3],_fb,_gb);let _Es2=_1i2._Ds2(_fb,_gb,_i6[0], _i6[1],_i6[2],_i6[3]);if(_Cs2==_zs2&&_Es2==_zs2){_i6.push(_fb);_i6.push(_gb);_xs2.push(_As2);_Bs2=true;}}if(!_Bs2){if(_i6.length>0){_fs2.push(_i6);_gs2.push(_xs2);}else {this._Tr2._Ti2(_i6);this._js2._Ti2(_xs2);}_i6=this._Tr2._Si2();_i6.length=0;_i6.push(_w6);_i6.push(_x6);_i6.push(_y6);_i6.push(_z6);_i6.push(_fb);_i6.push(_gb);_xs2=this._js2._Si2();_xs2.length=0;_xs2.push(_1y1);_xs2.push(_2y1);_xs2.push(_As2);_zs2=_1i2._Ds2(_w6,_x6,_y6,_z6,_fb,_gb);_ys2=_1y1;}}if(_i6.length>0){_fs2.push(_i6);_gs2.push(_xs2); }for(let i=0,_t6=_fs2.length;i<_t6;i++){_xs2=_gs2[i];if(_xs2.length==0)continue;let _eK1=_xs2[0];let lastIndex=_xs2[_xs2.length-1];_i6=_fs2[i];let _NF=_i6.length-4;let _Fs2=_i6[_NF],_Gs2=_i6[_NF+1];let _Hs2=_i6[_NF+2],_2s2=_i6[_NF+3];let _Is2=_i6[0],_Js2=_i6[1];let _Ks2=_i6[2],_Ls2=_i6[3];let _Ds2=_1i2._Ds2(_Fs2,_Gs2,_Hs2,_2s2,_Is2,_Js2);for(let _0G=0;_0G<_t6;_0G++){if(_0G==i)continue;let _Ms2=_gs2[_0G];if(_Ms2.length!=3)continue;let _Ns2=_Ms2[0];let _Os2=_Ms2[1];let _Ps2=_Ms2[2];let _Qs2=_fs2[_0G];let _fb=_Qs2[_Qs2.length-2], _gb=_Qs2[_Qs2.length-1];if(_Ns2!=_eK1||_Os2!=lastIndex)continue;let _Cs2=_1i2._Ds2(_Fs2,_Gs2,_Hs2,_2s2,_fb,_gb);let _Es2=_1i2._Ds2(_fb,_gb,_Is2,_Js2,_Ks2,_Ls2);if(_Cs2==_Ds2&&_Es2==_Ds2){_Qs2.length=0;_Ms2.length=0;_i6.push(_fb);_i6.push(_gb);_xs2.push(_Ps2);_Fs2=_Hs2;_Gs2=_2s2;_Hs2=_fb;_2s2=_gb;_0G=0;}}}for(let i=_fs2.length-1;i>=0;i--){_i6=_fs2[i];if(_i6.length==0){_fs2.splice(i,1);this._Tr2._Ti2(_i6);_xs2=_gs2[i];_gs2.splice(i,1);this._js2._Ti2(_xs2);}}return _fs2;}static _ms2(index,vertexCount,vertices, _C9){let _ll2=_C9[(vertexCount+index-1)%vertexCount]<<1;let current=_C9[index]<<1;let _kl=_C9[(index+1)%vertexCount]<<1;return !this._ts2(vertices[_ll2],vertices[_ll2+1],vertices[current],vertices[current+1],vertices[_kl],vertices[_kl+1]);}static _ts2(_ns2,_os2,_ps2,_qs2,_rs2,_ss2){return _ns2*(_ss2-_qs2)+_ps2*(_os2-_ss2)+_rs2*(_qs2-_os2)>=0;}static _Ds2(_ns2,_os2,_ps2,_qs2,_rs2,_ss2){let _Bu=_ps2-_ns2,_Cu=_qs2-_os2;return _rs2*_Cu-_ss2*_Bu+_Bu*_os2-_ns2*_Cu>=0?1:-1;}};var _R9=class {constructor(){this._Rs2=new _1i2(); this._Ss2=new Array();this._Ts2=new Array();this._U9=new Array();this._V9=new Array();this._Us2=new Array();}_S9(slot,clip){if(this._Vs2)return 0;this._Vs2=clip;let _t6=clip._P9;let vertices=_2i2._Ei2(this._Ss2,_t6);clip._J9(slot,0,_t6,vertices,0,2);let _Ss2=this._Ss2;_R9._Ws2(_Ss2);let _Xs2=this._Xs2=this._Rs2._ws2(_Ss2,this._Rs2._ks2(_Ss2));for(let i=0,_Pk2=_Xs2.length;i<_Pk2;i++){let _i6=_Xs2[i];_R9._Ws2(_i6);_i6.push(_i6[0]);_i6.push(_i6[1]);}return _Xs2.length;}_2a(slot){if(this._Vs2&&this._Vs2._Ql2==slot.data)this._3a(); }_3a(){if(!this._Vs2)return;this._Vs2=null;this._Xs2=null;this._U9.length=0;this._V9.length=0;this._Ss2.length=0;}_I9(){return this._Vs2!=null;}_T9(vertices,_5p2,triangles,_Ys2,uvs,light,dark,twoColor){let _Ts2=this._Ts2,_U9=this._U9;let _V9=this._V9;let _Y5=this._Xs2;let _Zs2=this._Xs2.length;let _q52=twoColor?12:8;let index=0;_U9.length=0;_V9.length=0;_Al2:for(let i=0;i<_Ys2;i+=3){let _Cm2=triangles[i]<<1;let _w6=vertices[_Cm2],_x6=vertices[_Cm2+1];let _fy1=uvs[_Cm2],_hb=uvs[_Cm2+1];_Cm2=triangles[i+1]<<1; let _y6=vertices[_Cm2],_z6=vertices[_Cm2+1];let _Z4=uvs[_Cm2],__4=uvs[_Cm2+1];_Cm2=triangles[i+2]<<1;let _fb=vertices[_Cm2],_gb=vertices[_Cm2+1];let __s2=uvs[_Cm2],_ib=uvs[_Cm2+1];for(let _gh=0;_gh<_Zs2;_gh++){let _ni=_U9.length;if(this.clip(_w6,_x6,_y6,_z6,_fb,_gb,_Y5[_gh],_Ts2)){let _0t2=_Ts2.length;if(_0t2==0)continue;let _1t2=_z6-_gb,__D=_fb-_y6,_0E=_w6-_fb,_2t2=_gb-_x6;let _Bm=1/(_1t2*_0E+__D*(_x6-_gb));let _3t2=_0t2>>1;let _4t2=this._Ts2;let _5t2=_2i2._Ei2(_U9,_ni+_3t2*_q52);for(let _0G=0;_0G<_0t2;_0G+=2){ let x=_4t2[_0G],y=_4t2[_0G+1];_5t2[_ni]=x;_5t2[_ni+1]=y;_5t2[_ni+2]=light._e4;_5t2[_ni+3]=light._f4;_5t2[_ni+4]=light._g4;_5t2[_ni+5]=light._h4;let _6s1=x-_fb,_6h=y-_gb;let _h4=(_1t2*_6s1+__D*_6h)*_Bm;let _g4=(_2t2*_6s1+_0E*_6h)*_Bm;let c=1-_h4-_g4;_5t2[_ni+6]=_fy1*_h4+_Z4*_g4+__s2*c;_5t2[_ni+7]=_hb*_h4+__4*_g4+_ib*c;if(twoColor){_5t2[_ni+8]=dark._e4;_5t2[_ni+9]=dark._f4;_5t2[_ni+10]=dark._g4;_5t2[_ni+11]=dark._h4;}_ni+=_q52;}_ni=_V9.length;let _6t2=_2i2._Ei2(_V9,_ni+3*(_3t2-2));_3t2--;for(let _0G=1;_0G<_3t2; _0G++){_6t2[_ni]=index;_6t2[_ni+1]=index+_0G;_6t2[_ni+2]=index+_0G+1;_ni+=3;}index+=_3t2+1;}else {let _5t2=_2i2._Ei2(_U9,_ni+3*_q52);_5t2[_ni]=_w6;_5t2[_ni+1]=_x6;_5t2[_ni+2]=light._e4;_5t2[_ni+3]=light._f4;_5t2[_ni+4]=light._g4;_5t2[_ni+5]=light._h4;if(!twoColor){_5t2[_ni+6]=_fy1;_5t2[_ni+7]=_hb;_5t2[_ni+8]=_y6;_5t2[_ni+9]=_z6;_5t2[_ni+10]=light._e4;_5t2[_ni+11]=light._f4;_5t2[_ni+12]=light._g4;_5t2[_ni+13]=light._h4;_5t2[_ni+14]=_Z4;_5t2[_ni+15]=__4;_5t2[_ni+16]=_fb;_5t2[_ni+17]=_gb;_5t2[_ni+18]=light._e4; _5t2[_ni+19]=light._f4;_5t2[_ni+20]=light._g4;_5t2[_ni+21]=light._h4;_5t2[_ni+22]=__s2;_5t2[_ni+23]=_ib;}else {_5t2[_ni+6]=_fy1;_5t2[_ni+7]=_hb;_5t2[_ni+8]=dark._e4;_5t2[_ni+9]=dark._f4;_5t2[_ni+10]=dark._g4;_5t2[_ni+11]=dark._h4;_5t2[_ni+12]=_y6;_5t2[_ni+13]=_z6;_5t2[_ni+14]=light._e4;_5t2[_ni+15]=light._f4;_5t2[_ni+16]=light._g4;_5t2[_ni+17]=light._h4;_5t2[_ni+18]=_Z4;_5t2[_ni+19]=__4;_5t2[_ni+20]=dark._e4;_5t2[_ni+21]=dark._f4;_5t2[_ni+22]=dark._g4;_5t2[_ni+23]=dark._h4;_5t2[_ni+24]=_fb;_5t2[_ni+25]=_gb; _5t2[_ni+26]=light._e4;_5t2[_ni+27]=light._f4;_5t2[_ni+28]=light._g4;_5t2[_ni+29]=light._h4;_5t2[_ni+30]=__s2;_5t2[_ni+31]=_ib;_5t2[_ni+32]=dark._e4;_5t2[_ni+33]=dark._f4;_5t2[_ni+34]=dark._g4;_5t2[_ni+35]=dark._h4;}_ni=_V9.length;let _6t2=_2i2._Ei2(_V9,_ni+3);_6t2[_ni]=index;_6t2[_ni+1]=index+1;_6t2[_ni+2]=index+2;index+=3;continue _Al2;}}}}clip(_w6,_x6,_y6,_z6,_fb,_gb,_7t2,output){let _8t2=output;let _9t2=false;let input=null;if(_7t2.length%4>=2){input=output;output=this._Us2;}else input=this._Us2;input.length=0; input.push(_w6);input.push(_x6);input.push(_y6);input.push(_z6);input.push(_fb);input.push(_gb);input.push(_w6);input.push(_x6);output.length=0;let _at2=_7t2;let _bt2=_7t2.length-4;for(let i=0;;i+=2){let _ct2=_at2[i],_dt2=_at2[i+1];let _et2=_at2[i+2],_ft2=_at2[i+3];let _gt2=_ct2-_et2,_ht2=_dt2-_ft2;let _it2=input;let _jt2=input.length-2,_kt2=output.length;for(let _0G=0;_0G<_jt2;_0G+=2){let _lt2=_it2[_0G],_mt2=_it2[_0G+1];let _nt2=_it2[_0G+2],_ot2=_it2[_0G+3];let _pt2=_gt2*(_ot2-_ft2)-_ht2*(_nt2-_et2)>0;if(_gt2*(_mt2-_ft2)-_ht2*(_lt2-_et2)>0){ if(_pt2){output.push(_nt2);output.push(_ot2);continue;}let _6s1=_ot2-_mt2,_7h=_nt2-_lt2;let _ni=_6s1*(_et2-_ct2)-_7h*(_ft2-_dt2);if(Math.abs(_ni)>1e-6){let _qt2=(_7h*(_dt2-_mt2)-_6s1*(_ct2-_lt2))/_ni;output.push(_ct2+(_et2-_ct2)*_qt2);output.push(_dt2+(_ft2-_dt2)*_qt2);}else {output.push(_ct2);output.push(_dt2);}}else if(_pt2){let _6s1=_ot2-_mt2,_7h=_nt2-_lt2;let _ni=_6s1*(_et2-_ct2)-_7h*(_ft2-_dt2);if(Math.abs(_ni)>1e-6){let _qt2=(_7h*(_dt2-_mt2)-_6s1*(_ct2-_lt2))/_ni;output.push(_ct2+(_et2-_ct2)*_qt2); output.push(_dt2+(_ft2-_dt2)*_qt2);}else {output.push(_ct2);output.push(_dt2);}output.push(_nt2);output.push(_ot2);}_9t2=true;}if(_kt2==output.length){_8t2.length=0;return true;}output.push(output[0]);output.push(output[1]);if(i==_bt2)break;let _jL=output;output=input;output.length=0;input=_jL;}if(_8t2!=output){_8t2.length=0;for(let i=0,_t6=output.length-2;i<_t6;i++)_8t2[i]=output[i];}else _8t2.length=_8t2.length-2;return _9t2;}static _Ws2(_i6){let vertices=_i6;let _rt2=_i6.length;let _Au1=vertices[_rt2-2]*vertices[1]-vertices[0]*vertices[_rt2-1], _ns2=0,_os2=0,_ps2=0,_qs2=0;for(let i=0,_t6=_rt2-3;i<_t6;i+=2){_ns2=vertices[i];_os2=vertices[i+1];_ps2=vertices[i+2];_qs2=vertices[i+3];_Au1+=_ns2*_qs2-_ps2*_os2;}if(_Au1<0)return;for(let i=0,_st2=_rt2-2,_t6=_rt2>>1;i<_t6;i+=2){let x=vertices[i],y=vertices[i+1];let other=_st2-i;vertices[i]=vertices[other];vertices[i+1]=vertices[other+1];vertices[other]=x;vertices[other+1]=y;}}};var _R8=class {constructor(_b5){this.scale=1;this._tq2=new Array();this._b5=_b5;}_S8(json){let scale=this.scale;let _nl2=new _Kh2(); let _w5=typeof json==="string"?JSON.parse(json):json;let _tt2=_w5.skeleton;if(_tt2){_nl2.hash=_tt2.hash;_nl2.version=_tt2.spine;_nl2.x=_tt2.x;_nl2.y=_tt2.y;_nl2.width=_tt2.width;_nl2.height=_tt2.height;_nl2.fps=_tt2.fps;_nl2._Cq2=_tt2.images;}if(_w5.bones){for(let i=0;i<_w5.bones.length;i++){let _ut2=_w5.bones[i];let parent=null;let _vt2=_wt2(_ut2,"parent",null);if(_vt2)parent=_nl2._a7(_vt2);let data=new _Ug2(_nl2.bones.length,_ut2.name,parent);data.length=_wt2(_ut2,"length",0)*scale;data.x=_wt2(_ut2,"x", 0)*scale;data.y=_wt2(_ut2,"y",0)*scale;data.rotation=_wt2(_ut2,"rotation",0);data.scaleX=_wt2(_ut2,"scaleX",1);data.scaleY=_wt2(_ut2,"scaleY",1);data.shearX=_wt2(_ut2,"shearX",0);data.shearY=_wt2(_ut2,"shearY",0);data._nh1=_2i2._Oi2(_Yh2,_wt2(_ut2,"transform","Normal"));data._dn2=_wt2(_ut2,"skin",false);let color=_wt2(_ut2,"color",null);if(color)data.color._bi2(color);_nl2.bones.push(data);}}if(_w5.slots){for(let i=0;i<_w5.slots.length;i++){let _xt2=_w5.slots[i];let _S7=_nl2._a7(_xt2.bone);let data=new _Nh2(_nl2.slots.length, _xt2.name,_S7);let color=_wt2(_xt2,"color",null);if(color)data.color._bi2(color);let dark=_wt2(_xt2,"dark",null);if(dark)data._wa=_i4._g62(dark);data._Cb=_wt2(_xt2,"attachment",null);data._za=_2i2._Oi2(_8a,_wt2(_xt2,"blend","normal"));_nl2.slots.push(data);}}if(_w5.ik){for(let i=0;i<_w5.ik.length;i++){let _yt2=_w5.ik[i];let data=new _ch2(_yt2.name);data._Mn2=_wt2(_yt2,"order",0);data._dn2=_wt2(_yt2,"skin",false);for(let _0G=0;_0G<_yt2.bones.length;_0G++)data.bones.push(_nl2._a7(_yt2.bones[_0G]));data.target=_nl2._a7(_yt2.target); data.mix=_wt2(_yt2,"mix",1);data._ak2=_wt2(_yt2,"softness",0)*scale;data._bk2=_wt2(_yt2,"bendPositive",true)?1:-1;data.compress=_wt2(_yt2,"compress",false);data.stretch=_wt2(_yt2,"stretch",false);data._oo2=_wt2(_yt2,"uniform",false);_nl2._dk2.push(data);}}if(_w5.transform){for(let i=0;i<_w5.transform.length;i++){let _yt2=_w5.transform[i];let data=new _Wh2(_yt2.name);data._Mn2=_wt2(_yt2,"order",0);data._dn2=_wt2(_yt2,"skin",false);for(let _0G=0;_0G<_yt2.bones.length;_0G++)data.bones.push(_nl2._a7(_yt2.bones[_0G])); let _zt2=_yt2.target;data.target=_nl2._a7(_zt2);data._Ai=_wt2(_yt2,"local",false);data._J11=_wt2(_yt2,"relative",false);data._2p2=_wt2(_yt2,"rotation",0);data._05=_wt2(_yt2,"x",0)*scale;data._15=_wt2(_yt2,"y",0)*scale;data._Jp2=_wt2(_yt2,"scaleX",0);data._Kp2=_wt2(_yt2,"scaleY",0);data._Ip2=_wt2(_yt2,"shearY",0);data._fk2=_wt2(_yt2,"mixRotate",1);data._gk2=_wt2(_yt2,"mixX",1);data._hk2=_wt2(_yt2,"mixY",data._gk2);data._ik2=_wt2(_yt2,"mixScaleX",1);data._jk2=_wt2(_yt2,"mixScaleY",data._ik2);data._kk2=_wt2(_yt2, "mixShearY",1);_nl2._lk2.push(data);}}if(_w5.path){for(let i=0;i<_w5.path.length;i++){let _yt2=_w5.path[i];let data=new _mh2(_yt2.name);data._Mn2=_wt2(_yt2,"order",0);data._dn2=_wt2(_yt2,"skin",false);for(let _0G=0;_0G<_yt2.bones.length;_0G++)data.bones.push(_nl2._a7(_yt2.bones[_0G]));let _zt2=_yt2.target;data.target=_nl2._64(_zt2);data._ap2=_2i2._Oi2(_sh2,_wt2(_yt2,"positionMode","Percent"));data.spacingMode=_2i2._Oi2(_Oh2,_wt2(_yt2,"spacingMode","Length"));data.rotateMode=_2i2._Oi2(_zh2,_wt2(_yt2,"rotateMode", "Tangent"));data._2p2=_wt2(_yt2,"rotation",0);data.position=_wt2(_yt2,"position",0);if(data._ap2==_sh2.Fixed)data.position*=scale;data.spacing=_wt2(_yt2,"spacing",0);if(data.spacingMode==_Oh2.Length||data.spacingMode==_Oh2.Fixed)data.spacing*=scale;data._fk2=_wt2(_yt2,"mixRotate",1);data._gk2=_wt2(_yt2,"mixX",1);data._hk2=_wt2(_yt2,"mixY",data._gk2);_nl2._nk2.push(data);}}if(_w5.skins){for(let i=0;i<_w5.skins.length;i++){let _At2=_w5.skins[i];let skin=new _v7(_At2.name);if(_At2.bones){for(let _0G=0;_0G<_At2.bones.length; _0G++)skin.bones.push(_nl2._a7(_At2.bones[_0G]));}if(_At2.ik){for(let _0G=0;_0G<_At2.ik.length;_0G++)skin._Af1.push(_nl2._eq2(_At2.ik[_0G]));}if(_At2.transform){for(let _0G=0;_0G<_At2.transform.length;_0G++)skin._Af1.push(_nl2._gq2(_At2.transform[_0G]));}if(_At2.path){for(let _0G=0;_0G<_At2.path.length;_0G++)skin._Af1.push(_nl2._hq2(_At2.path[_0G]));}for(let _aq2 in _At2.attachments){let slot=_nl2._64(_aq2);let _xt2=_At2.attachments[_aq2];for(let _Bt2 in _xt2){let attachment=this._Mq2(_xt2[_Bt2],skin,slot.index, _Bt2,_nl2);if(attachment)skin._74(slot.index,_Bt2,attachment);}}_nl2.skins.push(skin);if(skin.name=="default")_nl2._U3=skin;}}for(let i=0,_t6=this._tq2.length;i<_t6;i++){let _Iq2=this._tq2[i];let skin=!_Iq2.skin?_nl2._U3:_nl2._x7(_Iq2.skin);let parent=skin._a4(_Iq2._84,_Iq2.parent);_Iq2._O9._6j2=_Iq2._Jq2?parent:_Iq2._O9;_Iq2._O9._fm2(parent);_Iq2._O9._9m2();}this._tq2.length=0;if(_w5.events){for(let _Ct2 in _w5.events){let _Dt2=_w5.events[_Ct2];let data=new _3h2(_Ct2);data._f3=_wt2(_Dt2,"int",0);data._g3=_wt2(_Dt2, "float",0);data._h3=_wt2(_Dt2,"string","");data._Dq2=_wt2(_Dt2,"audio",null);if(data._Dq2){data.volume=_wt2(_Dt2,"volume",1);data._QA1=_wt2(_Dt2,"balance",0);}_nl2.events.push(data);}}if(_w5.animations){for(let _ml2 in _w5.animations){let _Et2=_w5.animations[_ml2];this._Kq2(_Et2,_ml2,_nl2);}}return _nl2;}_Mq2(map,skin,_84,name,_nl2){let scale=this.scale;name=_wt2(map,"name",name);switch(_wt2(map,"type","region")){case "region":{let path=_wt2(map,"path",name);let _V4=this._b5._e5(skin,name,path);if(!_V4)return null; _V4.path=path;_V4.x=_wt2(map,"x",0)*scale;_V4.y=_wt2(map,"y",0)*scale;_V4.scaleX=_wt2(map,"scaleX",1);_V4.scaleY=_wt2(map,"scaleY",1);_V4.rotation=_wt2(map,"rotation",0);_V4.width=map.width*scale;_V4.height=map.height*scale;let color=_wt2(map,"color",null);if(color)_V4.color._bi2(color);_V4._j5();return _V4;}case "boundingbox":{let _Pq2=this._b5._9n2(skin,name);if(!_Pq2)return null;this._Oq2(map,_Pq2,map.vertexCount<<1);let color=_wt2(map,"color",null);if(color)_Pq2.color._bi2(color);return _Pq2;}case "mesh":case "linkedmesh":{ let path=_wt2(map,"path",name);let _O9=this._b5._8n2(skin,name,path);if(!_O9)return null;_O9.path=path;let color=_wt2(map,"color",null);if(color)_O9.color._bi2(color);_O9.width=_wt2(map,"width",0)*scale;_O9.height=_wt2(map,"height",0)*scale;let parent=_wt2(map,"parent",null);if(parent){this._tq2.push(new _Ft2(_O9,_wt2(map,"skin",null),_84,parent,_wt2(map,"deform",true)));return _O9;}let uvs=map.uvs;this._Oq2(map,_O9,uvs.length);_O9.triangles=map.triangles;_O9._am2=uvs;_O9._9m2();_O9.edges=_wt2(map,"edges", null);_O9._gm2=_wt2(map,"hull",0)*2;return _O9;}case "path":{let path=this._b5._an2(skin,name);if(!path)return null;path.closed=_wt2(map,"closed",false);path._im2=_wt2(map,"constantSpeed",true);let vertexCount=map.vertexCount;this._Oq2(map,path,vertexCount<<1);let lengths=_2i2._Gi2(vertexCount/3,0);for(let i=0;i=0;_0G--)if(drawOrder[_0G]==-1)drawOrder[_0G]=_Ir2[--_Kr2];}_eI._Nj2(frame,_wt2(_Ut2,"time",0),drawOrder);}_J5.push(_eI);}if(map.events){let _eI=new _K7(map.events.length);let frame=0; for(let i=0;i{if(typeof Math._Mi2==="undefined"){Math._Mi2=function(_Hb){return function(x){return _Hb[0]=x,_Hb[0];};}(new Float32Array(1));}})();var _gh2=class {constructor(_Zt2,__t2){this._Zt2=0;this.__t2=0;this._Zt2=_Zt2;this.__t2=__t2;}_0u2(skeleton){}transform(position,_Tc,light,dark){position.x+=_hh2._pi2(-this._Zt2,this.__t2);position.y+=_hh2._pi2(-this._Zt2,this.__t2);}end(){}};var _1u2=class {constructor(_T61){this._2u2=0;this._3u2=0;this._T61=0;this.angle=0;this._h7=0;this._i7=0;this._T61=_T61;}_0u2(skeleton){ this._h7=skeleton.x+this._2u2;this._i7=skeleton.y+this._3u2;}transform(position,_Tc,light,dark){let _4u2=this.angle*_hh2._ui2;let x=position.x-this._h7;let y=position.y-this._i7;let _9u=Math.sqrt(x*x+y*y);if(_9u=0)&&(_uu2[0]==0xff));}catch(e){debug(e.message);}var _vu2={width:w,height:h,body:_uu2};return _vu2;};_ku2.prototype._wu2=function(_od,_m8,_n8,_uu2,_xu2,_yu2,_zu2){switch(_od){case _au2:{this._E4=this._Au2(_m8,_n8,_uu2,"gif");}break;case _9u2:{this._E4=this._Au2(_m8,_n8,_uu2,"png");}break;case _7u2:case _6u2:{this._E4=this._Au2(_m8,_n8,_uu2,"jpeg");}break;case _8u2:{var _vu2=this._tu2(_uu2);this._E4=this._Au2(_vu2.width,_vu2.height,_vu2.body,"jpeg",function(_Vg1){var _Bu2=String.fromCharCode.apply(null, new Uint16Array(_xu2));var _Bu2=_Bu2.split('').map(function(e){return e.charCodeAt(0);});var Zlib=window["Zlib"];var _Cu2=new Zlib["Inflate"](_Bu2);var _Du2=_Cu2["decompress"]();this._E4=_802(_Vg1,_Du2);});}break;case _bu2:case _eu2:{this._E4=null;}break;case _cu2:case _du2:case _fu2:{var _E4=new Image();var _Yc=_e8._402(_E4,_uu2,_m8,_n8);_E4._N8=_Yc;_E4.__c=_m8;_E4._0d=_n8;this._E4=_E4;}break;default :break;}};_ku2.prototype._Au2=function(_m8,_n8,_uu2,_Eu2,_AN,_Fu2){var _Or2=new Uint16Array(_uu2);var _6O="";for(var i=0, _G6=_Or2.length;i<_G6;i++){_6O+=String.fromCharCode(_Or2[i]);}var _Gu2=window.btoa(_6O);var _Hu2="data:image/"+_Eu2+";base64,"+_Gu2;var img=new Image();img.onload=function(){var _B4={texture:img};_M8(_B4);if(_AN){_AN(_B4);}};img.onerror=function(e){debug(e);if(_Fu2){_Fu2(e);}};img.src=_pH(null,null,_Hu2);return img;};function _802(_Vg1,_u9){var _Yc=_e8._802(_Vg1.texture._N8,_u9);_Vg1.texture._N8=_Yc;_Vg1.texture.__c=_Yc._C_1;_Vg1.texture._0d=_Yc._D_1;return _Vg1.texture;}var _Iu2=0,_Ju2=1,_Ku2=2;var _Lu2=0, _Mu2=1,_Nu2=2,_Ou2=3;var _Pu2=0,_Qu2=1;var _Ru2={_6r1:0,_7r1:0,version:1};/*@constructor */function _Su2(_od,_jg){this.type=_od;this.id=_jg;};_Su2.prototype._Tu2=function(_nu2,_ou2,_pu2,_Uu2){this._46=_nu2.getFloat32(_ou2,_pu2);_ou2+=4;this._56=_nu2.getFloat32(_ou2,_pu2);_ou2+=4;this._66=_nu2.getFloat32(_ou2,_pu2);_ou2+=4;this._76=_nu2.getFloat32(_ou2,_pu2);_ou2+=4;var _Vu2=_nu2.getInt32(_ou2,_pu2);_ou2+=4;this._Wu2=[];for(var i=0;i<_Vu2;i++){var _Xu2=_nu2.getInt32(_ou2,_pu2);_ou2+=4;var _Yu2=_nu2.getInt32(_ou2, _pu2);_ou2+=4;var _Zu2=_nu2.getInt32(_ou2,_pu2);_ou2+=4;var __u2={_Xu2:_Xu2,_Yu2:_Yu2,_Zu2:_Zu2};__u2._0v2=(_Xu2>0)?[]:null;__u2._1v2=(_Yu2>0)?[]:null;__u2._2v2=(_Zu2>0)?[]:null;_ou2=this._3v2(__u2,_nu2,_ou2,_pu2,_Uu2);_ou2=this._4v2(__u2,_nu2,_ou2,_pu2);_ou2=this._5v2(__u2,_nu2,_ou2,_pu2);this._Wu2.push(__u2);}return _ou2;};_Su2.prototype._3v2=function(_6v2,_nu2,_ou2,_pu2,_Uu2){_6v2._0v2=[];for(var i=0;i<_6v2._Xu2;i++){var _7v2=_nu2.getInt32(_ou2,_pu2);_ou2+=4;var _8v2=null;switch(_7v2){case _Mu2:{_8v2={ type:_Mu2};var _iv=_nu2.getUint8(_ou2,_pu2);_ou2++;var _jv=_nu2.getUint8(_ou2,_pu2);_ou2++;var _kv=_nu2.getUint8(_ou2,_pu2);_ou2++;var alpha=_nu2.getUint8(_ou2,_pu2);_ou2++;_8v2._m4=(_iv|(_jv<<8)|(_kv<<16)|(alpha<<24));}break;case _Nu2:{_8v2={type:_Nu2};_8v2._9v2=_nu2.getInt32(_ou2,_pu2);_ou2+=4;_8v2._lu2=_nu2.getInt32(_ou2,_pu2);_ou2+=4;var _av2=[];for(var _v6=0;_v6<9;_v6++){_av2[_v6]=_nu2.getFloat32(_ou2,_pu2);_ou2+=4;}_8v2._av2=new _zz();_8v2._av2._v6[_5B]=_av2[0];_8v2._av2._v6[_6B]=_av2[1];_8v2._av2._v6[_8B]=_av2[2]; _8v2._av2._v6[_9B]=_av2[3];_8v2._av2._v6[_0A]=_av2[4];_8v2._av2._v6[_bB]=_av2[5];_8v2._bv2=_nu2.getInt32(_ou2,_pu2);_ou2+=4;_8v2._cv2=[];for(var _v6=0;_v6<_8v2._bv2;_v6++){var ratio=_nu2.getInt32(_ou2,_pu2);_ou2+=4;var _iv=_nu2.getUint8(_ou2,_pu2);_ou2++;var _jv=_nu2.getUint8(_ou2,_pu2);_ou2++;var _kv=_nu2.getUint8(_ou2,_pu2);_ou2++;var alpha=_nu2.getUint8(_ou2,_pu2);_ou2++;_8v2._cv2.push({ratio:ratio,_m4:(_iv|(_jv<<8)|(_kv<<16)|(alpha<<24))});}_8v2._Ic=null;}break;case _Ou2:{_8v2={type:_Ou2};_8v2._dv2=_nu2.getInt32(_ou2, _pu2);_ou2+=4;_8v2._ev2=_nu2.getInt32(_ou2,_pu2);_ou2+=4;_8v2._fv2=-1;for(var index=0;index<_Uu2.length;index++){if(_Uu2[index].id===_8v2._ev2){_8v2._fv2=index;break;}}var _av2=[];for(var _v6=0;_v6<9;_v6++){_av2[_v6]=_nu2.getFloat32(_ou2,_pu2);_ou2+=4;}_8v2._av2=new _zz();_8v2._av2._v6[_5B]=_av2[0];_8v2._av2._v6[_6B]=_av2[1];_8v2._av2._v6[_8B]=_av2[2];_8v2._av2._v6[_9B]=_av2[3];_8v2._av2._v6[_0A]=_av2[4];_8v2._av2._v6[_bB]=_av2[5];}break;}_6v2._0v2.push(_8v2);}return _ou2;};_Su2.prototype._gv2=function(_hv2){ if((_hv2===null)||(_hv2===undefined)){return;}var _iv2=256,_jv2=1,_kv2=64,_lv2=64;var _mv2=[];var width,height;switch(_hv2._9v2){default :return;case _Pu2:{width=_iv2;height=_jv2;for(var i=0;i<_iv2;i++){_mv2[i]=this._nv2(_hv2,i);}}break;case _Qu2:{width=_kv2;height=_lv2;var _ov2=(_kv2-1)/2;var _pv2=(_lv2-1)/2;var _T61=_I6(_ov2,_pv2);for(var __5=0;__5<_lv2;__5++){for(var i=0;i<_kv2;i++){var _Va=i-_ov2;var _Wa=__5-_pv2;var _9u=Math.sqrt(_Va*_Va+_Wa*_Wa);_9u/=_T61;var ratio=255*_9u;_mv2[(__5*_kv2)+i]=this._nv2(_hv2, ratio);}}}break;}_hv2._Ic=_qv2(width,height,_mv2);};function _qv2(_kj,_lj,_502){var _lg1=document.createElement(_8F);var _mg1=_lg1.getContext('2d');_ng1(_mg1);var _Yc=_e8._602(_lg1,_502,_kj,_lj);var _B4=new _hs();_B4.x=0;_B4.y=0;_B4.w=_Yc._C_1;_B4.h=_Yc._D_1;_B4.XOffset=0;_B4.YOffset=0;_B4.CropWidth=_B4.w;_B4.CropHeight=_B4.h;_B4.ow=_kj;_B4.oh=_lj;_B4.tp=_ys(_lg1);_B4.texture=_F4[_B4.tp];_B4.texture._N8=_Yc;_B4.texture.__c=_lg1.width;_B4.texture._0d=_lg1.height;_B4.texture.complete=true;return _B4;}_Su2.prototype._nv2=function(_hv2, _O51){if(_hv2._bv2<=0){return 0;}_O51=(_O51<0)?0:(_O51>255)?255:_O51;if(_O51<_hv2._cv2[0].ratio){return _hv2._cv2[0]._m4;}for(var i=1;i<_hv2._bv2;i++){var _rv2=_hv2._cv2[i];if(_rv2.ratio>=_O51){var _sv2=_hv2._cv2[i-1];var _tv2=0;if(_rv2.ratio!=_sv2.ratio){_tv2=((_O51-_sv2.ratio)<<8)/(_rv2.ratio-_sv2.ratio);}var _uv2=256-_tv2;var _m4=_rv2._m4;var _vv2=_sv2._m4;var _wv2=[];_wv2[0]=((_m4&0xff)*_tv2)>>8;_wv2[1]=(((_m4>>8)&0xff)*_tv2)>>8;_wv2[2]=(((_m4>>16)&0xff)*_tv2)>>8;_wv2[3]=(((_m4>>24)&0xff)*_tv2)>>8;_wv2[0]+=((_vv2&0xff)*_uv2)>>8; _wv2[1]+=(((_vv2>>8)&0xff)*_uv2)>>8;_wv2[2]+=(((_vv2>>16)&0xff)*_uv2)>>8;_wv2[3]+=(((_vv2>>24)&0xff)*_uv2)>>8;var _xv2=_wv2[0]|(_wv2[1]<<8)|(_wv2[2]<<16)|(_wv2[3]<<24);return _xv2;}}return _hv2._cv2[_hv2._bv2-1]._m4;};_Su2.prototype._4v2=function(_6v2,_nu2,_ou2,_pu2){_6v2._1v2=[];for(var i=0;i<_6v2._Yu2;i++){var _iv=_nu2.getUint8(_ou2,_pu2);_ou2++;var _jv=_nu2.getUint8(_ou2,_pu2);_ou2++;var _kv=_nu2.getUint8(_ou2,_pu2);_ou2++;var alpha=_nu2.getUint8(_ou2,_pu2);_ou2++;_6v2._1v2.push({_m4:(_iv|(_jv<<8)|(_kv<<16)|(alpha<<24))} );}return _ou2;};_Su2.prototype._5v2=function(_6v2,_nu2,_ou2,_pu2){var i,_v6;_6v2._2v2=[];for(i=0;i<_6v2._Zu2;i++){var _yv2={};_6v2._2v2.push(_yv2);_yv2._zv2=_nu2.getInt32(_ou2,_pu2);_ou2+=4;_yv2._Av2=_nu2.getInt32(_ou2,_pu2);_ou2+=4;_yv2._Bv2=_nu2.getInt32(_ou2,_pu2);_ou2+=4;_yv2._Cv2=_nu2.getInt32(_ou2,_pu2);_ou2+=4;_yv2._0j=_nu2.getInt32(_ou2,_pu2);_ou2+=4;_yv2._Dv2=_nu2.getInt32(_ou2,_pu2);_ou2+=4;_yv2._Ev2=_nu2.getInt32(_ou2,_pu2);_ou2+=4;_yv2._Fv2=_nu2.getInt32(_ou2,_pu2);_ou2+=4;if(_Ru2.version>=2){ _yv2._Gv2=_nu2.getInt32(_ou2,_pu2);_ou2+=4;_yv2._Hv2=_nu2.getInt32(_ou2,_pu2);_ou2+=4;}if(_Ru2.version>=3){_yv2._Iv2=_nu2.getInt32(_ou2,_pu2);_ou2+=4;_yv2._Jv2=_nu2.getInt32(_ou2,_pu2);_ou2+=4;}_yv2._Kv2=(_yv2._Cv2>0)?[]:null;_yv2._Lv2=(_yv2._0j>0)?[]:null;_yv2._Mv2=(_yv2._Dv2>0)?[]:null;_yv2._Nv2=(_yv2._Ev2>0)?[]:null;_yv2._Ov2=(_yv2._Fv2>0)?[]:null;_yv2._Pv2=(_yv2._Gv2)?[]:null;_yv2._Qv2=(_yv2._Hv2)?[]:null;_yv2._Rv2=(_yv2._Iv2)?[]:null;_yv2._Sv2=(_yv2._Jv2)?[]:null;for(_v6=0;_v6<_yv2._Cv2*2;_v6++){ _yv2._Kv2[_v6]=_nu2.getFloat32(_ou2,_pu2);_ou2+=4;}for(_v6=0;_v6<_yv2._0j*2;_v6++){_yv2._Tv2[_v6]=_nu2.getInt32(_ou2,_pu2);_ou2+=4;}for(_v6=0;_v6<_yv2._Dv2*3;_v6++){_yv2._Mv2[_v6]=_nu2.getUint32(_ou2,_pu2);_ou2+=4;}for(_v6=0;_v6<_yv2._Ev2*2;_v6++){_yv2._Nv2[_v6]=_nu2.getFloat32(_ou2,_pu2);_ou2+=4;}for(_v6=0;_v6<_yv2._Fv2*3;_v6++){_yv2._Ov2[_v6]=_nu2.getUint32(_ou2,_pu2);_ou2+=4;}if(_Ru2.version>=2){for(_v6=0;_v6<_yv2._Gv2*2;_v6++){_yv2._Pv2[_v6]=_nu2.getInt32(_ou2,_pu2);_ou2+=4;}for(_v6=0;_v6<_yv2._Hv2*2; _v6++){_yv2._Qv2[_v6]=_nu2.getFloat32(_ou2,_pu2);_ou2+=4;}}if(_Ru2.version>=3){for(_v6=0;_v6<_yv2._Iv2*2;_v6++){_yv2._Rv2[_v6]=_nu2.getInt32(_ou2,_pu2);_ou2+=4;}for(_v6=0;_v6<_yv2._Jv2*2;_v6++){_yv2._Sv2[_v6]=_nu2.getFloat32(_ou2,_pu2);_ou2+=4;}}}return _ou2;};var _Uv2=1.0/20.0;/*@constructor */function _Vv2(){this._Wv2=0;this._Xv2=0;this._46=0;this._56=0;this._66=0;this._76=0;this._Yv2=null;};_Vv2.prototype._Zv2=function(_nu2,_ou2,_pu2){this._Wv2=_nu2.getInt32(_ou2,_pu2);_ou2+=4;this._Xv2=_nu2.getInt32(_ou2, _pu2);_ou2+=4;this._46=_nu2.getFloat32(_ou2,_pu2)*_Uv2;_ou2+=4;this._56=_nu2.getFloat32(_ou2,_pu2)*_Uv2;_ou2+=4;this._66=_nu2.getFloat32(_ou2,_pu2)*_Uv2;_ou2+=4;this._76=_nu2.getFloat32(_ou2,_pu2)*_Uv2;_ou2+=4;var __v2,_0w2,_1w2;__v2=_nu2.getInt32(_ou2,_pu2);_ou2+=4;_0w2=_nu2.getInt32(_ou2,_pu2);_ou2+=4;_1w2=_nu2.getInt32(_ou2,_pu2);_ou2+=4;this._Yv2={__v2:__v2,_0w2:_0w2,_1w2:_1w2};this._2w2=[];for(var i=0;i=this._iw2){this._dw2=this._fw2;}else {let frac=(currentTime-this._hw2)*this._jw2;frac=Math.max(0,Math.min(frac,1));this._dw2=this._ew2+(this._gw2*frac);}return this._dw2; };/*@license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */(function(){'use strict';var _t6=void 0,w=!0,_Io2=this;function _8_(_ED,_Bm){var c=_ED.split("."),e=_Io2;!(c[0] in e)&&e._kw2&&e._kw2("var "+c[0]);for(var _g4;c.length&&(_g4=c.shift());)!c.length&&_Bm!==_t6?e[_g4]=_Bm:e=e[_g4]?e[_g4]:e[_g4]={}};var _zs1="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Uint32Array&&"undefined"!==typeof DataView;function _0N1(_ED,_Bm){this.index="number"===typeof _Bm?_Bm:0; this.e=0;this.buffer=_ED instanceof(_zs1?Uint8Array:Array)?_ED:new(_zs1?Uint8Array:Array)(32768);if(2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&_lw2(this)}function _lw2(_ED){var _Bm=_ED.buffer,c,e=_Bm.length,_g4=new(_zs1?Uint8Array:Array)(e<<1);if(_zs1)_g4.set(_Bm);else for(c=0;c>>8&255]<<16|_mS1[_ED>>>16&255]<<8|_mS1[_ED>>>24&255])>>32-_Bm:_mS1[_ED]>>8-_Bm); if(8>_Bm+_h4)_f4=_f4<<_Bm|_ED,_h4+=_Bm;else for(_v6=0;_v6<_Bm;++_v6)_f4=_f4<<1|_ED>>_Bm-_v6-1&1,8===++_h4&&(_h4=0,e[_g4++]=_mS1[_f4],_f4=0,_g4===e.length&&(e=_lw2(this)));e[_g4]=_f4;this.buffer=e;this.e=_h4;this.index=_g4};_0N1.prototype._rV1=function(){var _ED=this.buffer,_Bm=this.index,c;0_Ur1;++_Ur1){for(var _mw2=_Ur1, _nw2=_mw2,_ow2=7,_mw2=_mw2>>>1;_mw2;_mw2>>>=1)_nw2<<=1,_nw2|=_mw2&1,--_ow2;_DL1[_Ur1]=(_nw2<<_ow2&255)>>>0}var _mS1=_DL1;function _yn2(_ED){this.buffer=new(_zs1?Uint16Array:Array)(2*_ED);this.length=0}_yn2.prototype._pw2=function(_ED){return 2*((_ED-2)/4|0)};_yn2.prototype.push=function(_ED,_Bm){var c,e,_g4=this.buffer,_h4;c=this.length;_g4[this.length++]=_Bm;for(_g4[this.length++]=_ED;0_g4[e])_h4=_g4[c],_g4[c]=_g4[e],_g4[e]=_h4,_h4=_g4[c+1],_g4[c+1]=_g4[e+1],_g4[e+1]=_h4, c=e;else break;return this.length};_yn2.prototype.pop=function(){var _ED,_Bm,c=this.buffer,e,_g4,_h4;_Bm=c[0];_ED=c[1];this.length-=2;c[0]=c[this.length];c[1]=c[this.length+1];for(_h4=0;;){_g4=2*_h4+2;if(_g4>=this.length)break;_g4+2c[_g4]&&(_g4+=2);if(c[_g4]>c[_h4])e=c[_h4],c[_h4]=c[_g4],c[_g4]=e,e=c[_h4+1],c[_h4+1]=c[_g4+1],c[_g4+1]=e;else break;_h4=_g4}return({index:_ED,value:_Bm,length:this.length})};function _GJ1(_ED,_Bm){this._Bm=_on2;this.i=0;this.input=_zs1&&_ED instanceof Array?new Uint8Array(_ED):_ED; this.c=0;_Bm&&(_Bm._qw2&&(this.i=_Bm._qw2),"number"===typeof _Bm._rw2&&(this._Bm=_Bm._rw2),_Bm.outputBuffer&&(this._h4=_zs1&&_Bm.outputBuffer instanceof Array?new Uint8Array(_Bm.outputBuffer):_Bm.outputBuffer),"number"===typeof _Bm._sw2&&(this.c=_Bm._sw2));this._h4||(this._h4=new(_zs1?Uint8Array:Array)(32768))}var _on2=2,_9r2={_8p2:0,h:1,_f4:_on2,_t6:3},_ws1=[],_tw2;for(_tw2=0;288>_tw2;_tw2++)switch(w){case 143>=_tw2:_ws1.push([_tw2+48,8]);break;case 255>=_tw2:_ws1.push([_tw2-144+400,9]);break;case 279>=_tw2:_ws1.push([_tw2-256+0, 7]);break;case 287>=_tw2:_ws1.push([_tw2-280+192,8]);break;default :throw "invalid literal: "+_tw2;}_GJ1.prototype._ED=function(){var _ED,_Bm,c,e,_g4=this.input;switch(this._Bm){case 0:c=0;for(e=_g4.length;c>>8&255;_G6[h++]=_gh&255;_G6[h++]=_gh>>>8&255;if(_zs1)_G6.set(_h4,h),h+=_h4.length,_G6=_G6.subarray(0,h);else {_J6=0;for(_X4=_h4.length;_J6<_X4;++_J6)_G6[h++]=_h4[_J6];_G6.length=h}this.c=h;this._h4=_G6}break;case 1:var q=new _0N1(_zs1?new Uint8Array(this._h4.buffer):this._h4,this.c);q._g4(1,1,w);q._g4(1,2,w);var _ni=_iK1(this,_g4),x,_uw2,z;x=0;for(_uw2=_ni.length;x<_uw2;x++)if(z=_ni[x],_0N1.prototype._g4.apply(q,_ws1[z]),256_Y4)for(; 0<_Y4--;)_rB1[_Eu1++]=0,_Fw2[0]++;else for(;0<_Y4;)_xq1=138>_Y4?_Y4:138,_xq1>_Y4-3&&_xq1<_Y4&&(_xq1=_Y4-3),10>=_xq1?(_rB1[_Eu1++]=17,_rB1[_Eu1++]=_xq1-3,_Fw2[17]++):(_rB1[_Eu1++]=18,_rB1[_Eu1++]=_xq1-11,_Fw2[18]++),_Y4-=_xq1;else if(_rB1[_Eu1++]=_nB1[_e4],_Fw2[_nB1[_e4]]++,_Y4--,3>_Y4)for(;0<_Y4--;)_rB1[_Eu1++]=_nB1[_e4],_Fw2[_nB1[_e4]]++;else for(;0<_Y4;)_xq1=6>_Y4?_Y4:6,_xq1>_Y4-3&&_xq1<_Y4&&(_xq1=_Y4-3),_rB1[_Eu1++]=16,_rB1[_Eu1++]=_xq1-3,_Fw2[16]++,_Y4-=_xq1}_ED=_zs1?_rB1.subarray(0,_Eu1):_rB1.slice(0, _Eu1);_zw2=_EJ1(_Fw2,7);for(y=0;19>y;y++)_Aw2[y]=_zw2[_xw2[y]];for(_bz1=19;4<_bz1&&0===_Aw2[_bz1-1];_bz1--);_Bw2=_Ew2(_zw2);_Fr1._g4(_ww2-257,5,w);_Fr1._g4(_cz1-1,5,w);_Fr1._g4(_bz1-4,4,w);for(y=0;y<_bz1;y++)_Fr1._g4(_Aw2[y],3,w);y=0;for(_Bw=_ED.length;y<_Bw;y++)if(_Cw2=_ED[y],_Fr1._g4(_Bw2[_Cw2],_zw2[_Cw2],w),16<=_Cw2){y++;switch(_Cw2){case 16:_Dw2=2;break;case 17:_Dw2=3;break;case 18:_Dw2=7;break;default :throw "invalid code: "+_Cw2;}_Fr1._g4(_ED[y],_Dw2,w)}var _Gw2=[_qt2,_pA],_Hw2=[_yw2,_qA],_ot1,_Iw2, $,_3r1,_Jw2,_Kw2,_Lw2,_Mw2;_Jw2=_Gw2[0];_Kw2=_Gw2[1];_Lw2=_Hw2[0];_Mw2=_Hw2[1];_ot1=0;for(_Iw2=_vw2.length;_ot1<_Iw2;++_ot1)if($=_vw2[_ot1],_Fr1._g4(_Jw2[$],_Kw2[$],w),256<$)_Fr1._g4(_vw2[++_ot1],_vw2[++_ot1],w),_3r1=_vw2[++_ot1],_Fr1._g4(_Lw2[_3r1],_Mw2[_3r1],w),_Fr1._g4(_vw2[++_ot1],_vw2[++_ot1],w);else if(256===$)break;this._h4=_Fr1._rV1();this.c=this._h4.length;break;default :throw "invalid compression type";}return this._h4};function _Bn2(_ED,_Bm){this.length=_ED;this._ml=_Bm}var _to2=function(){ function _ED(_g4){switch(w){case 3===_g4:return [257,_g4-3,0];case 4===_g4:return [258,_g4-4,0];case 5===_g4:return [259,_g4-5,0];case 6===_g4:return [260,_g4-6,0];case 7===_g4:return [261,_g4-7,0];case 8===_g4:return [262,_g4-8,0];case 9===_g4:return [263,_g4-9,0];case 10===_g4:return [264,_g4-10,0];case 12>=_g4:return [265,_g4-11,1];case 14>=_g4:return [266,_g4-13,1];case 16>=_g4:return [267,_g4-15,1];case 18>=_g4:return [268,_g4-17,1];case 22>=_g4:return [269,_g4-19,2];case 26>=_g4:return [270,_g4-23,2];case 30>=_g4:return [271, _g4-27,2];case 34>=_g4:return [272,_g4-31,2];case 42>=_g4:return [273,_g4-35,3];case 50>=_g4:return [274,_g4-43,3];case 58>=_g4:return [275,_g4-51,3];case 66>=_g4:return [276,_g4-59,3];case 82>=_g4:return [277,_g4-67,4];case 98>=_g4:return [278,_g4-83,4];case 114>=_g4:return [279,_g4-99,4];case 130>=_g4:return [280,_g4-115,4];case 162>=_g4:return [281,_g4-131,5];case 194>=_g4:return [282,_g4-163,5];case 226>=_g4:return [283,_g4-195,5];case 257>=_g4:return [284,_g4-227,5];case 258===_g4:return [285,_g4-258,0];default :throw "invalid length: "+_g4; }}var _Bm=[],c,e;for(c=3;258>=c;c++)e=_ED(c),_Bm[c]=e[2]<<24|e[1]<<16|e[0];return _Bm}(),_Nw2=_zs1?new Uint32Array(_to2):_to2;function _iK1(_ED,_Bm){function c(_g4,c){var _h4=_g4._ml,_Bm=[],e=0,_ED;_ED=_Nw2[_g4.length];_Bm[e++]=_ED&65535;_Bm[e++]=_ED>>16&255;_Bm[e++]=_ED>>24;var _f4;switch(w){case 1===_h4:_f4=[0,_h4-1,0];break;case 2===_h4:_f4=[1,_h4-2,0];break;case 3===_h4:_f4=[2,_h4-3,0];break;case 4===_h4:_f4=[3,_h4-4,0];break;case 6>=_h4:_f4=[4,_h4-5,1];break;case 8>=_h4:_f4=[5,_h4-7,1];break;case 12>=_h4:_f4=[6, _h4-9,2];break;case 16>=_h4:_f4=[7,_h4-13,2];break;case 24>=_h4:_f4=[8,_h4-17,3];break;case 32>=_h4:_f4=[9,_h4-25,3];break;case 48>=_h4:_f4=[10,_h4-33,4];break;case 64>=_h4:_f4=[11,_h4-49,4];break;case 96>=_h4:_f4=[12,_h4-65,5];break;case 128>=_h4:_f4=[13,_h4-97,5];break;case 192>=_h4:_f4=[14,_h4-129,6];break;case 256>=_h4:_f4=[15,_h4-193,6];break;case 384>=_h4:_f4=[16,_h4-257,7];break;case 512>=_h4:_f4=[17,_h4-385,7];break;case 768>=_h4:_f4=[18,_h4-513,8];break;case 1024>=_h4:_f4=[19,_h4-769,8];break;case 1536>=_h4:_f4=[20, _h4-1025,9];break;case 2048>=_h4:_f4=[21,_h4-1537,9];break;case 3072>=_h4:_f4=[22,_h4-2049,10];break;case 4096>=_h4:_f4=[23,_h4-3073,10];break;case 6144>=_h4:_f4=[24,_h4-4097,11];break;case 8192>=_h4:_f4=[25,_h4-6145,11];break;case 12288>=_h4:_f4=[26,_h4-8193,12];break;case 16384>=_h4:_f4=[27,_h4-12289,12];break;case 24576>=_h4:_f4=[28,_h4-16385,13];break;case 32768>=_h4:_f4=[29,_h4-24577,13];break;default :throw "invalid distance";}_ED=_f4;_Bm[e++]=_ED[0];_Bm[e++]=_ED[1];_Bm[e++]=_ED[2];var _ml,_v6;_ml=0;for(_v6=_Bm.length; _ml<_v6;++_ml)_G6[h++]=_Bm[_ml];_ni[_Bm[0]]++;x[_Bm[3]]++;q=_g4.length+c-1;_X4=null}var e,_g4,_h4,_f4,_v6,_ml={},_gh,_J6,_X4,_G6=_zs1?new Uint16Array(2*_Bm.length):[],h=0,q=0,_ni=new(_zs1?Uint32Array:Array)(286),x=new(_zs1?Uint32Array:Array)(30),_uw2=_ED.i,z;if(!_zs1){for(_h4=0;285>=_h4;)_ni[_h4++]=0;for(_h4=0;29>=_h4;)x[_h4++]=0}_ni[256]=1;e=0;for(_g4=_Bm.length;e<_g4;++e){_h4=_v6=0;for(_f4=3;_h4<_f4&&e+_h4!==_g4;++_h4)_v6=_v6<<8|_Bm[e+_h4];_ml[_v6]===_t6&&(_ml[_v6]=[]);_gh=_ml[_v6];if(!(0=_g4){_X4&&c(_X4,-1);_h4=0;for(_f4=_g4-e;_h4<_f4;++_h4)z=_Bm[e+_h4],_G6[h++]=z,++_ni[z];break }0<_gh.length?(_J6=_Ow2(_Bm,e,_gh),_X4?_X4.length<_J6.length?(z=_Bm[e-1],_G6[h++]=z,++_ni[z],c(_J6,0)):c(_X4,-1):_J6.length<_uw2?_X4=_J6:c(_J6,0)):_X4?c(_X4,-1):(z=_Bm[e],_G6[h++]=z,++_ni[z])}_gh.push(e)}_G6[h++]=256;_ni[256]++;_ED._v6=_ni;_ED._G6=x;return _zs1?_G6.subarray(0,h):_G6}function _Ow2(_ED,_Bm,c){var e,_g4,_h4=0,_f4,_v6,_ml,_gh,_J6=_ED.length; _v6=0;_gh=c.length;_h4:for(;_v6<_gh;_v6++){e=c[_gh-_v6-1];_f4=3;if(3<_h4){for(_ml=_h4;3<_ml;_ml--)if(_ED[e+_ml-1]!==_ED[_Bm+_ml-1])continue _h4;_f4=_h4}for(;258>_f4&&_Bm+_f4<_J6&&_ED[e+_f4]===_ED[_Bm+_f4];)++_f4;_f4>_h4&&(_g4=e,_h4=_f4);if(258===_f4)break }return new _Bn2(_h4,_Bm-_g4)}function _EJ1(_ED,_Bm){var c=_ED.length,e=new _yn2(572),_g4=new(_zs1?Uint8Array:Array)(c),_h4,_f4,_v6,_ml,_gh;if(!_zs1)for(_ml=0;_ml2*_g4[h-1]+_h4[h]&&(_g4[h]=2*_g4[h-1]+_h4[h]),_v6[h]=Array(_g4[h]),_ml[h]=Array(_g4[h]);for(_G6=0;_G6<_Bm;++_G6)_f4[_G6]=c;for(q=0;q<_g4[c-1];++q)_v6[c-1][q]=_ED[q],_ml[c-1][q]=q;for(_G6=0;_G6_ED[_G6]?(_v6[h][q]=_ni,_ml[h][q]=_Bm,x+=2):(_v6[h][q]=_ED[_G6],_ml[h][q]=_G6,++_G6);_gh[h]=0;1===_h4[h]&&e(h)}return _f4}function _Ew2(_ED){var _Bm=new(_zs1?Uint16Array:Array)(_ED.length),c=[],e=[],_g4=0,_h4,_f4,_v6,_ml;_h4=0;for(_f4=_ED.length;_h4<_f4;_h4++)c[_ED[_h4]]=(c[_ED[_h4]]|0)+1;_h4=1;for(_f4=16;_h4<=_f4;_h4++)e[_h4]=_g4,_g4+=c[_h4]|0,_g4<<=1;_h4=0;for(_f4=_ED.length;_h4<_f4;_h4++){ _g4=e[_ED[_h4]];e[_ED[_h4]]+=1;_v6=_Bm[_h4]=0;for(_ml=_ED[_h4];_v6<_ml;_v6++)_Bm[_h4]=_Bm[_h4]<<1|_g4&1,_g4>>>=1}return _Bm};function _Qw2(_ED,_Bm){this.input=_ED;this._h4=new(_zs1?Uint8Array:Array)(32768);this._Bm=_Rw2._f4;var c={},e;if((_Bm||!(_Bm={}))&&"number"===typeof _Bm._rw2)this._Bm=_Bm._rw2;for(e in _Bm)c[e]=_Bm[e];c.outputBuffer=this._h4;this.__5=new _GJ1(this.input,c)}var _Rw2=_9r2;_Qw2.prototype._ED=function(){var _ED,_Bm,c,e,_g4,_h4,_f4=0;_h4=this._h4;switch(8){case 8:_ED=Math.LOG2E*Math.log(32768)-8; break;default :throw Error("invalid compression method");}_Bm=_ED<<4|8;_h4[_f4++]=_Bm;switch(8){case 8:switch(this._Bm){case _Rw2._8p2:e=0;break;case _Rw2.h:e=1;break;case _Rw2._f4:e=2;break;default :throw Error("unsupported compression type");}break;default :throw Error("invalid compression method");}c=e<<6|0;_h4[_f4++]=c|31-(256*_Bm+c)%31;var _v6=this.input;if("string"===typeof _v6){var _ml=_v6.split(""),_gh,_J6;_gh=0;for(_J6=_ml.length;_gh<_J6;_gh++)_ml[_gh]=(_ml[_gh].charCodeAt(0)&255)>>>0;_v6=_ml}for(var _X4=1, _G6=0,h=_v6.length,q,_ni=0;0>>0;this.__5.c=_f4;_h4=this.__5._ED();_f4=_h4.length;_zs1&&(_h4=new Uint8Array(_h4.buffer),_h4.length<=_f4+4&&(this._h4=new Uint8Array(_h4.length+4),this._h4.set(_h4),_h4=this._h4),_h4=_h4.subarray(0,_f4+4));_h4[_f4++]=_g4>>24&255;_h4[_f4++]=_g4>>16&255;_h4[_f4++]=_g4>>8&255;_h4[_f4++]=_g4&255;return _h4};_8_("Zlib.Deflate",_Qw2);_8_("Zlib.Deflate.compress",function(_ED, _Bm){return(new _Qw2(_ED,_Bm))._ED()});_8_("Zlib.Deflate.prototype.compress",_Qw2.prototype._ED);var _Sw2={_8p2:_Rw2._8p2,FIXED:_Rw2.h,_Tw2:_Rw2._f4},_Uw2,_Vw2,_Ww2,_Xw2;if(Object.keys)_Uw2=Object.keys(_Sw2);else for(_Vw2 in _Uw2=[],_Ww2=0,_Sw2)_Uw2[_Ww2++]=_Vw2;_Ww2=0;for(_Xw2=_Uw2.length;_Ww2<_Xw2;++_Ww2)_Vw2=_Uw2[_Ww2],_8_("Zlib.Deflate.CompressionType."+_Vw2,_Sw2[_Vw2]);}).call(this);//@ sourceMappingURL=deflate.min.js.map ;/*@license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */(function(){ 'use strict';function _v6(_g4){throw _g4;}var _t6=void 0,_e4=this;function _ni(_g4,_Bm){var _h4=_g4.split("."),c=_e4;!(_h4[0] in c)&&c._kw2&&c._kw2("var "+_h4[0]);for(var _ED;_h4.length&&(_ED=_h4.shift());)!_h4.length&&_Bm!==_t6?c[_ED]=_Bm:c=c[_ED]?c[_ED]:c[_ED]={}};var _X4="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Uint32Array;function _Y4(_g4){var _Bm=_g4.length,_h4=0,c=Number.POSITIVE_INFINITY,_ED,e,_f4,h,_ml,_G6,q,_gh,_J6;for(_gh=0;_gh<_Bm;++_gh)_g4[_gh]>_h4&&(_h4=_g4[_gh]), _g4[_gh]>=1;for(_J6=_G6;_J6<_ED;_J6+=_ml)e[_J6]=_f4<<16|_gh;++h}++_f4;h<<=1;_ml<<=1}return [e,_h4,c]};function w(_g4,_Bm){this._f4=[];this.h=32768;this._Bm=this._ED=this._h4=this._G6=0;this.input=_X4?new Uint8Array(_g4):_g4;this._v6=!1;this.i=x;this._e4=!1;if(_Bm||!(_Bm={}))_Bm.index&&(this._h4=_Bm.index),_Bm._Ze1&&(this.h=_Bm._Ze1), _Bm._Yw2&&(this.i=_Bm._Yw2),_Bm._Zw2&&(this._e4=_Bm._Zw2);switch(this.i){case y:this._g4=32768;this.c=new(_X4?Uint8Array:Array)(32768+this.h+258);break;case x:this._g4=0;this.c=new(_X4?Uint8Array:Array)(this.h);this.e=this.z;this._t6=this._Y4;this.__5=this.w;break;default :_v6(Error("invalid inflate mode"))}}var y=0,x=1,z={_J6:y,_ni:x};w.prototype._ml=function(){for(;!this._v6;){var _g4=_xq1(this,3);_g4&1&&(this._v6=!0);_g4>>>=1;switch(_g4){case 0:var _Bm=this.input,_h4=this._h4,c=this.c,_ED=this._g4,e=_t6, _f4=_t6,h=_t6,_ml=c.length,_G6=_t6;this._Bm=this._ED=0;e=_Bm[_h4++];e===_t6&&_v6(Error("invalid uncompressed block header: LEN (first byte)"));_f4=e;e=_Bm[_h4++];e===_t6&&_v6(Error("invalid uncompressed block header: LEN (second byte)"));_f4|=e<<8;e=_Bm[_h4++];e===_t6&&_v6(Error("invalid uncompressed block header: NLEN (first byte)"));h=e;e=_Bm[_h4++];e===_t6&&_v6(Error("invalid uncompressed block header: NLEN (second byte)"));h|=e<<8;_f4===~h&&_v6(Error("invalid uncompressed block header: length verify")); _h4+_f4>_Bm.length&&_v6(Error("input buffer is broken"));switch(this.i){case y:for(;_ED+_f4>c.length;){_G6=_ml-_ED;_f4-=_G6;if(_X4)c.set(_Bm.subarray(_h4,_h4+_G6),_ED),_ED+=_G6,_h4+=_G6;else for(;_G6--;)c[_ED++]=_Bm[_h4++];this._g4=_ED;c=this.e();_ED=this._g4}break;case x:for(;_ED+_f4>c.length;)c=this.e({_gh:2});break;default :_v6(Error("invalid inflate mode"))}if(_X4)c.set(_Bm.subarray(_h4,_h4+_f4),_ED),_ED+=_f4,_h4+=_f4;else for(;_f4--;)c[_ED++]=_Bm[_h4++];this._h4=_h4;this._g4=_ED;this.c=c;break;case 1:this.__5(_Fr1, _zs1);break;case 2:_Io2(this);break;default :_v6(Error("unknown BTYPE: "+_g4))}}return this._t6()};var _Eu1=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],_rB1=_X4?new Uint16Array(_Eu1):_Eu1,_nB1=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,258,258],_oB1=_X4?new Uint16Array(_nB1):_nB1,_Fw2=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0],_ot1=_X4?new Uint8Array(_Fw2):_Fw2,_vw2=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537, 2049,3073,4097,6145,8193,12289,16385,24577],_0N1=_X4?new Uint16Array(_vw2):_vw2,_mS1=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],_Ur1=_X4?new Uint8Array(_mS1):_mS1,_mw2=new(_X4?Uint8Array:Array)(288),_ww2,_cz1;_ww2=0;for(_cz1=_mw2.length;_ww2<_cz1;++_ww2)_mw2[_ww2]=143>=_ww2?8:255>=_ww2?9:279>=_ww2?7:8;var _Fr1=_Y4(_mw2),_bz1=new(_X4?Uint8Array:Array)(30),_Cw2,_nw2;_Cw2=0;for(_nw2=_bz1.length;_Cw2<_nw2;++_Cw2)_bz1[_Cw2]=5;var _zs1=_Y4(_bz1);function _xq1(_g4,_Bm){for(var _h4=_g4._ED, c=_g4._Bm,_ED=_g4.input,e=_g4._h4,_f4;c<_Bm;)_f4=_ED[e++],_f4===_t6&&_v6(Error("input buffer is broken")),_h4|=_f4<>>_Bm;_g4._Bm=c-_Bm;_g4._h4=e;return _f4}function _ws1(_g4,_Bm){for(var _h4=_g4._ED,c=_g4._Bm,_ED=_g4.input,e=_g4._h4,_f4=_Bm[0],h=_Bm[1],_ml,_G6,q;c>>16;_g4._ED=_h4>>q;_g4._Bm=c-q;_g4._h4=e;return _G6&65535}function _Io2(_g4){function _Bm(_h4,_g4,c){var _Bm,e,_ED,_f4;for(_f4=0; _f4<_h4;)switch(_Bm=_ws1(this,_g4),_Bm){case 16:for(_ED=3+_xq1(this,2);_ED--;)c[_f4++]=e;break;case 17:for(_ED=3+_xq1(this,3);_ED--;)c[_f4++]=0;e=0;break;case 18:for(_ED=11+_xq1(this,7);_ED--;)c[_f4++]=0;e=0;break;default :e=c[_f4++]=_Bm}return c}var _h4=_xq1(_g4,5)+257,c=_xq1(_g4,5)+1,_ED=_xq1(_g4,4)+4,e=new(_X4?Uint8Array:Array)(_rB1.length),_f4,h,_ml,_G6;for(_G6=0;_G6<_ED;++_G6)e[_rB1[_G6]]=_xq1(_g4,3);_f4=_Y4(e);h=new(_X4?Uint8Array:Array)(_h4);_ml=new(_X4?Uint8Array:Array)(c);_g4.__5(_Y4(_Bm.call(_g4, _h4,_f4,h)),_Y4(_Bm.call(_g4,c,_f4,_ml)))}w.prototype.__5=function(_g4,_Bm){var _h4=this.c,c=this._g4;this._NF=_g4;for(var _ED=_h4.length-258,e,_f4,h,_ml;256!==(e=_ws1(this,_g4));)if(256>e)c>=_ED&&(this._g4=c,_h4=this.e(),c=this._g4),_h4[c++]=e;else {_f4=e-257;_ml=_oB1[_f4];0<_ot1[_f4]&&(_ml+=_xq1(this,_ot1[_f4]));e=_ws1(this,_Bm);h=_0N1[e];0<_Ur1[e]&&(h+=_xq1(this,_Ur1[e]));c>=_ED&&(this._g4=c,_h4=this.e(),c=this._g4);for(;_ml--;)_h4[c]=_h4[c++-h]}for(;8<=this._Bm;)this._Bm-=8,this._h4--;this._g4=c} ;w.prototype.w=function(_g4,_Bm){var _h4=this.c,c=this._g4;this._NF=_g4;for(var _ED=_h4.length,e,_f4,h,_ml;256!==(e=_ws1(this,_g4));)if(256>e)c>=_ED&&(_h4=this.e(),_ED=_h4.length),_h4[c++]=e;else {_f4=e-257;_ml=_oB1[_f4];0<_ot1[_f4]&&(_ml+=_xq1(this,_ot1[_f4]));e=_ws1(this,_Bm);h=_0N1[e];0<_Ur1[e]&&(h+=_xq1(this,_Ur1[e]));c+_ml>_ED&&(_h4=this.e(),_ED=_h4.length);for(;_ml--;)_h4[c]=_h4[c++-h]}for(;8<=this._Bm;)this._Bm-=8,this._h4--;this._g4=c};w.prototype.e=function(){var _g4=new(_X4?Uint8Array:Array)(this._g4-32768), _Bm=this._g4-32768,_h4,c,_ED=this.c;if(_X4)_g4.set(_ED.subarray(32768,_g4.length));else {_h4=0;for(c=_g4.length;_h4_h4;++_h4)_ED[_h4]=_ED[_Bm+_h4];this._g4=32768;return _ED};w.prototype.z=function(_g4){var _Bm,_h4=this.input.length/this._h4+1|0,c,_ED,e,_f4=this.input,h=this.c;_g4&&("number"===typeof _g4._gh&&(_h4=_g4._gh),"number"===typeof _g4._X4&&(_h4+=_g4._X4));2>_h4?(c=(_f4.length-this._h4)/this._NF[2], e=258*(c/2)|0,_ED=e_Bm&&(this.c.length=_Bm),_g4=this.c);return this.buffer=_g4};function _tw2(_g4,_Bm){var _h4,c;this.input=_g4;this._h4=0;if(_Bm||!(_Bm={}))_Bm.index&&(this._h4=_Bm.index),_Bm.__w2&&(this._xq1=_Bm.__w2);_h4=_g4[this._h4++];c=_g4[this._h4++];switch(_h4&15){case _Rw2:this.method=_Rw2;break;default :_v6(Error("unsupported compression method"))} 0!==((_h4<<8)+c)%31&&_v6(Error("invalid fcheck flag:"+((_h4<<8)+c)%31));c&32&&_v6(Error("fdict flag is not supported"));this.q=new w(_g4,{index:this._h4,_Ze1:_Bm._Ze1,_Yw2:_Bm._Yw2,_Zw2:_Bm._Zw2})}_tw2.prototype._ml=function(){var _g4=this.input,_Bm,_h4;_Bm=this.q._ml();this._h4=this.q._h4;if(this._xq1){_h4=(_g4[this._h4++]<<24|_g4[this._h4++]<<16|_g4[this._h4++]<<8|_g4[this._h4++])>>>0;var c=_Bm;if("string"===typeof c){var _ED=c.split(""),e,_f4;e=0;for(_f4=_ED.length;e<_f4;e++)_ED[e]=(_ED[e].charCodeAt(0)&255)>>>0; c=_ED}for(var h=1,_ml=0,_G6=c.length,q,_gh=0;0<_G6;){q=1024<_G6?1024:_G6;_G6-=q;do h+=c[_gh++],_ml+=h;while(--q);h%=65521;_ml%=65521}_h4!==(_ml<<16|h)>>>0&&_v6(Error("invalid adler-32 checksum"))}return _Bm};var _Rw2=8;_ni("Zlib.Inflate",_tw2);_ni("Zlib.Inflate.prototype.decompress",_tw2.prototype._ml);var _Ww2={_0x2:z._ni,_1x2:z._J6},_pA,_qA,_rA,$;if(Object.keys)_pA=Object.keys(_Ww2);else for(_qA in _pA=[],_rA=0,_Ww2)_pA[_rA++]=_qA;_rA=0;for($=_pA.length;_rA<$;++_rA)_qA=_pA[_rA],_ni("Zlib.Inflate.BufferType."+_qA, _Ww2[_qA]);}).call(this);//@ sourceMappingURL=inflate.min.js.map _mh:/*@constructor */function _2x2(){this._3x2=0;this._4x2=null;this._5x2=0;this._6x2=null;this._7x2=new _Ck();this._8x2=null;};/*@constructor */function _9x2(){this._ne=0;this._zj1=new _zz();this._xj1=new _zz();this._ax2=new _zz();this._bx2=new _zz();this._cx2=new _zz();this._dx2=new _zz();this._nj1=0;this._pj1=0;this._rj1=0;this._tj1=0;this._ex2=0;this._fx2=0;this._gx2=0;this._hx2=0;this._vj1=0;this._ix2=-1;this._DR=null;this._ER=null;this._jx2=null; this._kx2=true;this._lx2=false;this._mx2=false;};_9x2.prototype._nx2=function(_ox2){this._lx2=_ox2;};_9x2.prototype._px2=function(){return this._lx2;};_9x2.prototype._qx2=function(_T31){this._mx2=_T31;};_9x2.prototype._rx2=function(){return this._mx2;};_2x2.prototype._sx2=function(_jg){var _tx2=this._ux2(_jg);if(!_tx2)return -1;var _vx2=this._wx2();var _xx2=this._ux2(_vx2);_xx2._nj1=_tx2._nj1;_xx2._pj1=_tx2._pj1;_xx2._rj1=_tx2._rj1;_xx2._tj1=_tx2._tj1;_xx2._ex2=_tx2._ex2;_xx2._fx2=_tx2._fx2;_xx2._gx2=_tx2._gx2; _xx2._hx2=_tx2._hx2;_xx2._vj1=_tx2._vj1;_xx2._ix2=_tx2._ix2;_xx2._DR=_tx2._DR;_xx2._ER=_tx2._ER;_xx2._jx2=_tx2._jx2;var _yx2=new _zz(_tx2._xj1);var _zx2=new _zz(_tx2._zj1);var _eN=new _zz(_tx2._ax2);var _Ax2=new _zz(_tx2._bx2);var _Bx2=new _zz(_tx2._cx2);var _Cx2=new _zz(_tx2._dx2);_xx2._zj1=_zx2;_xx2._xj1=_yx2;_xx2._ax2=_eN;_xx2._bx2=_Ax2;_xx2._cx2=_Bx2;_xx2._dx2=_Cx2;_xx2._mx2=_tx2._mx2;_xx2._nx2(true);return _vx2;};_9x2.prototype._Dx2=function(){if(this._zj1._v6[11]==0)return true;return false;};_9x2.prototype._Ex2=function(){ if(this._Dx2()){if((this._zj1._v6[4]==0.0)&&(this._zj1._v6[8]==0.0)&&(this._zj1._v6[1]==0.0)&&(this._zj1._v6[9]==0.0)&&(this._zj1._v6[2]==0.0)&&(this._zj1._v6[6]==0.0)){if((this._xj1._v6[2]==0.0)&&(this._xj1._v6[6]==0.0)){this._kx2=true;return;}}}this._kx2=false;};_9x2.prototype._Lj1=function(_Fx2){this._xj1=_Fx2;this._cx2._UM(_Fx2);this._ax2.Multiply(this._xj1,this._zj1);this._dx2._UM(this._ax2);this._Ex2();};_9x2.prototype._Mj1=function(_Fx2){this._zj1=_Fx2;this._bx2._UM(_Fx2);this._ax2.Multiply(this._xj1, this._zj1);this._dx2._UM(this._ax2);this._Ex2();};_2x2.prototype._Gx2=function(){this._3x2=this._7x2.length;};_2x2.prototype._wx2=function(){var _Hx2=new _9x2();_Hx2._ne=this._5x2;this._5x2++;this._7x2._Gf(_Hx2);return _Hx2._ne;};_2x2.prototype._ux2=function(_Ix2){for(var i=0;i=0)&&(this._kx2)){var _0n=null;if(this._ix2<10000){var _BG=_i3._E5(this._ix2);var _Vk=_BG._e51();for(var _0G=0;_0G<_Vk.length;_0G++){var _1u=_Vk[_0G];if(_1u.marked)continue;if(!_1u.active)continue;_0n=_1u;break;}}else {_0n=_Hn._E5(this._ix2);if(_0n!=null){ if(_0n.marked||(!_0n.active))_0n=null;}}if(_0n!=null){var _Gy2=this._rj1*0.5;var _Hy2=this._tj1*0.5;var _G6,_J6;var _Kj,_Iy2;_G6=this._nj1;_J6=this._pj1;if(_0n._YP)_0n._ZP();_Kj=Math.floor(_0n.x);_Iy2=Math.floor(_0n.y);if(2*this._gx2>=this._rj1){_G6=_Kj-_Gy2;}else if(_Kj-this._gx2(this._nj1+this._rj1)){_G6=_Kj+this._gx2-this._rj1;}if(2*this._hx2>=this._tj1){_J6=_Iy2-_Hy2;}else if(_Iy2-this._hx2(this._pj1+this._tj1)){ _J6=_Iy2+this._hx2-this._tj1;}if(_G6<0)_G6=0;if(_G6+this._rj1>_t3._aN())_G6=_t3._aN()-this._rj1;if(_J6<0)_J6=0;if(_J6+this._tj1>_t3._bN())_J6=_t3._bN()-this._tj1;if(this._ex2>=0){if((_G6this._ex2))_G6=this._nj1-this._ex2;if((_G6>this._nj1)&&(_G6-this._nj1>this._ex2))_G6=this._nj1+this._ex2;}if(this._fx2>=0){if((_J6this._fx2))_J6=this._pj1-this._fx2;if((_J6>this._pj1)&&(_J6-this._pj1>this._fx2))_J6=this._pj1+this._fx2;}this._nj1=_G6;this._pj1=_J6; this._Zx2(_G6+_Gy2,_J6+_Hy2);}}}};_9x2.prototype._Zx2=function(_bK,_ph){var _Km2=new _Tz();var _Sm2=new _Tz();var __m2=new _Tz();_Km2._pA=_bK;_Km2._qA=_ph;_Km2._rA=-16000.0;_Sm2._pA=_bK;_Sm2._qA=_ph;_Sm2._rA=0.0;__m2._pA=Math.sin(-this._vj1*(Math.PI/180.0));__m2._qA=Math.cos(-this._vj1*(Math.PI/180.0));__m2._rA=0.0;var _Jy2=new _zz();_Jy2._Wz(_Km2,_Sm2,__m2);var _Ky2=new _zz();_Ky2._4A(this._rj1,this._tj1,1,32000.0);this._Lj1(_Jy2);this._Mj1(_Ky2);};_9x2.prototype._Ly2=function(_bK,_ph){var _Km2=new _Tz();var _Sm2=new _Tz(); var __m2=new _Tz();_Km2._pA=_bK;_Km2._qA=_ph;_Km2._rA=-(this._rj1);_Sm2._pA=_bK;_Sm2._qA=_ph;_Sm2._rA=0.0;__m2._pA=Math.sin(-this._vj1*(Math.PI/180.0));__m2._qA=Math.cos(-this._vj1*(Math.PI/180.0));__m2._rA=0.0;var _Jy2=new _zz();_Jy2._Wz(_Km2,_Sm2,__m2);var _Ky2=new _zz();_Ky2._5A(1.0,-(this._tj1)/(this._rj1),1,32000.0);this._Lj1(_Jy2);this._Mj1(_Ky2);};function camera_create(){return _jj1._wx2();};function camera_create_view(_My2,_Ny2,_m8,_n8,_u5,_pt,_Oy2,_Py2,_Qy2,_Ry2){var _Sy2=_jj1._wx2();var _Ty2=_jj1._ux2(_Sy2); if(_Ty2!=null){_Ty2._Px2(yyGetReal(_My2));_Ty2._Qx2(yyGetReal(_Ny2));_Ty2._Rx2(yyGetReal(_m8));_Ty2._Sx2(yyGetReal(_n8));var angle=0;var target=-1;var _Uy2=-1;var _Vy2=-1;var _Wy2=0;var _Xy2=0;var _Yy2=arguments.length;if(_Yy2>4)angle=yyGetReal(_u5);if(_Yy2>5)target=yyGetInt32(_pt);if(_Yy2>6)_Uy2=yyGetReal(_Oy2);if(_Yy2>7)_Vy2=yyGetReal(_Py2);if(_Yy2>8)_Wy2=yyGetReal(_Qy2);if(_Yy2>9)_Xy2=yyGetReal(_Ry2);_Ty2._Xx2(angle);_Ty2._Yx2(target);_Ty2._Tx2(_Uy2);_Ty2._Ux2(_Vy2);_Ty2._Vx2(_Wy2);_Ty2._Wx2(_Xy2);if(_Ty2._Dx2()){ _Ty2._Zx2(_Ty2.__x2()+(_Ty2._0y2()*0.5),_Ty2._1y2()+(_Ty2._2y2()*0.5));}else {_Ty2._Ly2(_Ty2.__x2()+(_Ty2._0y2()*0.5),_Ty2._1y2()+(_Ty2._2y2()*0.5));}}return _Ty2._ne;}function camera_destroy(_bK){var _Kx2=_jj1._ux2(yyGetInt32(_bK));if(_Kx2!=null){if(_jj1._kj1()===_Kx2){_jj1._by2(null);}_jj1._Jx2(_Kx2._ne);}};function camera_apply(_bK){var _Ty2=_jj1._ux2(yyGetInt32(_bK));if(_Ty2!=null){_Ty2._Nj1();}}function camera_copy_transforms(_bK,_ph){var _ba=_jj1._ux2(yyGetInt32(_bK));var src=_jj1._ux2(yyGetInt32(_ph)); if(_ba==null){_Zy2.__y2("camera_copy_settings() - camera to copy to doesn't exist\n");return;}if(src==null){_Zy2.__y2("camera_copy_settings() - camera to copy from doesn't exist\n");return;}if(src==_ba){_Zy2.__y2("camera_copy_settings() - source and destination cameras are the same\n");return;}_ba._nj1=src._nj1;_ba._pj1=src._pj1;_ba._rj1=src._rj1;_ba._tj1=src._tj1;_ba._ex2=src._ex2;_ba._fx2=src._fx2;_ba._gx2=src._gx2;_ba._hx2=src._hx2;_ba._vj1=src._vj1;var _yx2=new _zz(src._xj1);var _zx2=new _zz(src._zj1); var _eN=new _zz(src._ax2);var _Ax2=new _zz(src._bx2);var _Bx2=new _zz(src._cx2);var _Cx2=new _zz(src._dx2);_ba._zj1=_zx2;_ba._xj1=_yx2;_ba._ax2=_eN;_ba._bx2=_Ax2;_ba._cx2=_Bx2;_ba._dx2=_Cx2;}function camera_get_active(){var _Ty2=_jj1._kj1();if(_Ty2!=null)return _Ty2._ne;else return -1;}function camera_get_default(){var _Ty2=_jj1._ux2(_0z2);if(_Ty2!=null){return _Ty2._ne;}else return -1;}function camera_set_default(_bK){var _Ty2=_jj1._ux2(yyGetInt32(_bK));if(_Ty2!=null){_0z2=_Ty2._ne;}}function camera_set_view_mat(_bK, _ph){var _Kx2=_jj1._ux2(yyGetInt32(_bK));if(_Kx2!=null){var _1z2=new _zz();for(var i=0;i<16;i++)_1z2._v6[i]=_ph[i];_Kx2._Lj1(_1z2);}};function camera_set_proj_mat(_bK,_ph){var _Kx2=_jj1._ux2(yyGetInt32(_bK));if(_Kx2!=null){var _1z2=new _zz();for(var i=0;i<16;i++)_1z2._v6[i]=_ph[i];_Kx2._Mj1(_1z2);}};function camera_set_view_target(_bK,_ph){var _Kx2=_jj1._ux2(yyGetInt32(_bK));if(_Kx2!=null){_Kx2._Yx2(yyGetInt32(_ph));}};function camera_set_update_script(_bK,_ph){var _Kx2=_jj1._ux2(yyGetInt32(_bK));if(_Kx2!=null){ switch(typeof _ph){case "number":var _k9=yyGetInt32(_ph);if(_k9>=100000)_k9-=100000;_Kx2._dy2(_rE.Scripts[_k9]);break;case "function":_Kx2._dy2(_ph);break;default :_H4("camera_set_end_script : argument0 is not a function or a script");}}};function camera_set_begin_script(_bK,_ph){var _Kx2=_jj1._ux2(yyGetInt32(_bK));if(_Kx2!=null){switch(typeof _ph){case "number":var _k9=yyGetInt32(_ph);if(_k9>=100000)_k9-=100000;_Kx2._ey2(_rE.Scripts[_k9]);break;case "function":_Kx2._ey2(_ph);break;default :_H4("camera_set_begin_script : argument0 is not a function or a script"); }}};function camera_set_end_script(_bK,_ph){var _Kx2=_jj1._ux2(yyGetInt32(_bK));if(_Kx2!=null){switch(typeof _ph){case "number":var _k9=yyGetInt32(_ph);if(_k9>=100000)_k9-=100000;_Kx2._fy2(_rE.Scripts[_k9]);break;case "function":_Kx2._fy2(_ph);break;default :_H4("camera_set_end_script : argument0 is not a function or a script");}}};function _2z2(_bK,_ph,_KV,__V,_0W,_cW,_dW,_3z2,_4z2,_5z2,_6z2){var _Kx2=_jj1._ux2(_bK);if(_Kx2!=null){_Kx2._Px2(_ph);_Kx2._Qx2(_KV);_Kx2._Rx2(__V);_Kx2._Sx2(_0W);_Kx2._Tx2(_cW); _Kx2._Ux2(_dW);_Kx2._Vx2(_3z2);_Kx2._Wx2(_4z2);_Kx2._Xx2(_5z2);_Kx2._Yx2(_6z2);_Kx2._Zx2(_Kx2.__x2()+_Kx2._0y2()*0.5,_Kx2._1y2()+_Kx2._2y2()*0.5);}};function camera_set_view_pos(_bK,_ph,_KV){var _Kx2=_jj1._ux2(yyGetInt32(_bK));if(_Kx2!=null){_Kx2._Px2(yyGetReal(_ph));_Kx2._Qx2(yyGetReal(_KV));_Kx2._Zx2(_Kx2.__x2()+_Kx2._0y2()*0.5,_Kx2._1y2()+_Kx2._2y2()*0.5);}};function camera_set_view_size(_bK,_ph,_KV){var _Kx2=_jj1._ux2(yyGetInt32(_bK));if(_Kx2!=null){_Kx2._Rx2(yyGetReal(_ph));_Kx2._Sx2(yyGetReal(_KV)); _Kx2._Zx2(_Kx2.__x2()+_Kx2._0y2()*0.5,_Kx2._1y2()+_Kx2._2y2()*0.5);}};function camera_set_view_speed(_bK,_ph,_KV){var _Kx2=_jj1._ux2(yyGetInt32(_bK));if(_Kx2!=null){_Kx2._Tx2(yyGetReal(_ph));_Kx2._Ux2(yyGetReal(_KV));}};function camera_set_view_border(_bK,_ph,_KV){var _Kx2=_jj1._ux2(yyGetInt32(_bK));if(_Kx2!=null){_Kx2._Vx2(yyGetReal(_ph));_Kx2._Wx2(yyGetReal(_KV));}};function camera_set_view_angle(_bK,_ph){var _Kx2=_jj1._ux2(yyGetInt32(_bK));if(_Kx2!=null){_Kx2._Xx2(yyGetReal(_ph));_Kx2._Zx2(_Kx2.__x2()+_Kx2._0y2()*0.5, _Kx2._1y2()+_Kx2._2y2()*0.5);}};function camera_get_view_mat(_bK){var _Kx2=_jj1._ux2(yyGetInt32(_bK));if(_Kx2!=null){return _Kx2._jy2()._v6;}return -1;};function camera_get_proj_mat(_bK){var _Kx2=_jj1._ux2(yyGetInt32(_bK));if(_Kx2!=null){return _Kx2._ky2()._v6;}return -1;};function camera_get_view_target(_bK){var _Kx2=_jj1._ux2(yyGetInt32(_bK));if(_Kx2!=null){var _LV=_Kx2._cy2();return(_LV<0)?_LV:_Ot(_Pt,_LV);}return -1;};function camera_get_update_script(_bK){var _Kx2=_jj1._ux2(yyGetInt32(_bK));if(_Kx2!=null){ var _BE=_Kx2._gy2();if(typeof _BE==="number"){return method_get_index(_BE);}else if(typeof _BE=="function"){return _BE;}}return -1;};function camera_get_begin_script(_bK){var _Kx2=_jj1._ux2(yyGetInt32(_bK));if(_Kx2!=null){var _BE=_Kx2._hy2();if(typeof _BE==="number"){return method_get_index(_BE);}else if(typeof _BE=="function"){return _BE;}}return -1;};function camera_get_end_script(_bK){var _Kx2=_jj1._ux2(yyGetInt32(_bK));if(_Kx2!=null){var _BE=_Kx2._iy2();if(typeof _BE==="number"){return method_get_index(_BE);}else if(typeof _BE=="function"){ return _BE;}}return -1;};function camera_get_view_x(_bK){var _Kx2=_jj1._ux2(yyGetInt32(_bK));if(_Kx2!=null){return _Kx2.__x2();}return -1;};function camera_get_view_y(_bK){var _Kx2=_jj1._ux2(yyGetInt32(_bK));if(_Kx2!=null){return _Kx2._1y2();}return -1;};function camera_get_view_width(_bK){var _Kx2=_jj1._ux2(yyGetInt32(_bK));if(_Kx2!=null){return _Kx2._0y2();}return -1;};function camera_get_view_height(_bK){var _Kx2=_jj1._ux2(yyGetInt32(_bK));if(_Kx2!=null){return _Kx2._2y2();}return -1;};function camera_get_view_speed_x(_bK){ var _Kx2=_jj1._ux2(yyGetInt32(_bK));if(_Kx2!=null){return _Kx2._ry2();}return -1;};function camera_get_view_speed_y(_bK){var _Kx2=_jj1._ux2(yyGetInt32(_bK));if(_Kx2!=null){return _Kx2._sy2();}return -1;};function camera_get_view_border_x(_bK){var _Kx2=_jj1._ux2(yyGetInt32(_bK));if(_Kx2!=null){return _Kx2._ty2();}return -1;};function camera_get_view_border_y(_bK){var _Kx2=_jj1._ux2(yyGetInt32(_bK));if(_Kx2!=null){return _Kx2._uy2();}return -1;};function camera_get_view_angle(_bK){var _Kx2=_jj1._ux2(yyGetInt32(_bK)); if(_Kx2!=null){return _Kx2._vy2();}return -1;};var _7z2=false,_S31=-1,_Oq=-1,_8z2=0,_9z2=1,_az2=2,_bz2=3,_cz2=4,_dz2=5,_ez2=6,_fz2=7,_gz2=8,_hz2=9,_iz2=10,_jz2=11,_kz2=[0,0,0],_lz2=[0,0,0],_mz2=[0,0,0,0,0,0],_nz2=[0,0,0],_oz2=[0,0,0],_pz2=[0,0,0],_qz2=[0,0,0],_rz2=[0,0,0],_sz2=[0,0,0],_tz2=[0,0,0],_uz2=0,_vz2=0;function _wz2(){if(_v3){if((_x3._y3()<=30)||(_xz2<=30)){return 1.0;}if((_x3._y3()/_xz2)<1.2){return 30.0/_x3._y3();}else {return 30.0/_xz2;}}else {if((_t3._u3()<=30)||(_xz2<=30)){return 1.0;}if((_t3._u3()/_xz2)<1.2){ return 30.0/_t3._u3();}else {return 30.0/_xz2;}}}function _yz2(){if(!_n21(_S31)){_S31=_Ro();if(_v3){_To(_S31,50);}else {_To(_S31,100000);}}if(!_n21(_Oq)){_Oq=_Ro();if(_v3){_To(_Oq,-15000);}else {_To(_Oq,-100000);}}if(!_7z2){_zz2();}}function _zz2(){var i;_7z2=true;for(i=0;i<=5;i++){_mz2[i]=_5p();}for(i=0;i<=2;i++){_nz2[i]=_5p();_kz2[i]=_5p();_oz2[i]=_5p();_lz2[i]=_5p();_pz2[i]=_5p();_qz2[i]=_5p();_rz2[i]=_5p();_sz2[i]=_5p();_tz2[i]=_5p();}_uz2=_5p();_vz2=_5p();}function _Az2(_q11,_q5,_r5,_ad,_3d){var _ED=_wz2(); if(_ad===0){_7p(_mz2[0],_Bz2);_8p(_mz2[0],0.1,0.1,0.05*_ED,0);_t31(_mz2[0],0,360,0,0,false);_yp(_mz2[0],0,360,0,0);_xp(_mz2[0],2*_ED,2*_ED,-0.1*_ED,0);_jp(_mz2[0],0.6,0);_qp(_mz2[0],_Xk(10.0/_ED),_Xk(15.0/_ED));_A21(_q11,_q5,_r5,_mz2[0],_3d,20);_7p(_mz2[1],_Bz2);_8p(_mz2[1],0.1,0.1,0.1*_ED,0);_t31(_mz2[1],0,360,0,0,false);_jp(_mz2[1],0.8,0);_qp(_mz2[1],_Xk(15/_ED),_Xk(15/_ED));_A21(_q11,_q5,_r5,_mz2[1],0x000000,1);}else if(_ad==2){_7p(_mz2[4],_Bz2);_8p(_mz2[4],0.4,0.4,0.2*_ED,0);_t31(_mz2[4],0,360, 0,0,false);_yp(_mz2[4],0,360,0,0);_xp(_mz2[4],7*_ED,7*_ED,-0.2*_ED,0);_jp(_mz2[4],0.6,0);_qp(_mz2[4],_Xk(15/_ED),_Xk(20/_ED));_A21(_q11,_q5,_r5,_mz2[4],_3d,20);_7p(_mz2[5],_Bz2);_8p(_mz2[5],0.4,0.4,0.4*_ED,0);_t31(_mz2[5],0,360,0,0,false);_jp(_mz2[5],0.8,0);_qp(_mz2[5],_Xk(20/_ED),_Xk(20/_ED));_A21(_q11,_q5,_r5,_mz2[5],0x000000,1);}else {_7p(_mz2[2],_Bz2);_8p(_mz2[2],0.3,0.3,0.1*_ED,0);_t31(_mz2[2],0,360,0,0,false);_yp(_mz2[2],0,360,0,0);_xp(_mz2[2],4*_ED,4*_ED,-0.18*_ED,0);_jp(_mz2[2],0.6,0);_qp(_mz2[2], _Xk(12/_ED),_Xk(17/_ED));_A21(_q11,_q5,_r5,_mz2[2],_3d,20);_7p(_mz2[3],_Bz2);_8p(_mz2[3],0.3,0.3,0.2*_ED,0);_t31(_mz2[3],0,360,0,0,false);_jp(_mz2[3],0.8,0);_qp(_mz2[3],_Xk(17/_ED),_Xk(17/_ED));_A21(_q11,_q5,_r5,_mz2[3],0x000000,1);}}function _Cz2(_q11,_q5,_r5,_ad,_3d){var _ED=_wz2();if(_ad===0){_7p(_nz2[0],_Dz2);_jp(_nz2[0],1,0);_8p(_nz2[0],0.0,0.0,0.15*_ED,0.0);_qp(_nz2[0],_Xk(10.0/_ED),_Xk(12.0/_ED));_A21(_q11,_q5,_r5,_nz2[0],_3d,1);}else if(_ad==2){_7p(_nz2[2],_Dz2);_jp(_nz2[2],1,0);_8p(_nz2[2], 0,0,0.4*_ED,0);_qp(_nz2[2],_Xk(18.0/_ED),_Xk(20.0/_ED));_A21(_q11,_q5,_r5,_nz2[2],_3d,1);}else {_7p(_nz2[1],_Dz2);_jp(_nz2[1],1,0);_8p(_nz2[1],0,0,0.25*_ED,0);_qp(_nz2[1],_Xk(13.0/_ED),_Xk(15.0/_ED));_A21(_q11,_q5,_r5,_nz2[1],_3d,1);}}function _Ez2(_q11,_q5,_r5,_ad,_3d){var _ED=_wz2();if(_ad===0){_7p(_kz2[0],_Dz2);_jp(_kz2[0],1,0);_8p(_kz2[0],0,0,0.2*_ED,0);_Q21(_kz2[0],1,0.5);_qp(_kz2[0],_Xk(10.0/_ED),_Xk(12.0/_ED));_A21(_q11,_q5,_r5,_kz2[0],_3d,1);}else if(_ad==2){_7p(_kz2[2],_Dz2);_jp(_kz2[2],1,0); _8p(_kz2[2],0,0,0.6*_ED,0);_Q21(_kz2[2],1,0.5);_qp(_kz2[2],_Xk(18.0/_ED),_Xk(20.0/_ED));_A21(_q11,_q5,_r5,_kz2[2],_3d,1);}else {_7p(_kz2[1],_Dz2);_jp(_kz2[1],1,0);_8p(_kz2[1],0,0,0.35*_ED,0);_Q21(_kz2[1],1,0.5);_qp(_kz2[1],_Xk(13.0/_ED),_Xk(15.0/_ED));_A21(_q11,_q5,_r5,_kz2[1],_3d,1);}}function _Fz2(_q11,_q5,_r5,_ad,_3d){var _ED=_wz2();if(_ad===0){_7p(_oz2[1],_Gz2);_8p(_oz2[1],0.1,0.2,0,0);_xp(_oz2[1],0.5*_ED,3.0*_ED,0.0,0.0);_yp(_oz2[1],0,360,0,0);_jp(_oz2[1],1,0.4);_qp(_oz2[1],_Xk(15.0/_ED),_Xk(25.0/_ED)); _Cp(_oz2[1],0.10*_ED,270);_A21(_q11,_q5,_r5,_oz2[1],_3d,75);}else if(_ad==2){_7p(_oz2[1],_Gz2);_8p(_oz2[1],0.1,0.2,0,0);_xp(_oz2[1],0.5*_ED,8.0*_ED,0.0,0.0);_yp(_oz2[1],0,360,0,0);_jp(_oz2[1],1,0.4);_qp(_oz2[1],_Xk(30.0/_ED),_Xk(40.0/_ED));_Cp(_oz2[1],0.17*_ED,270);_A21(_q11,_q5,_r5,_oz2[1],_3d,250);}else {_7p(_oz2[1],_Gz2);_8p(_oz2[1],0.1,0.2,0,0);_xp(_oz2[1],0.5*_ED,6.0*_ED,0.0,0.0);_yp(_oz2[1],0,360,0,0);_jp(_oz2[1],1,0.4);_qp(_oz2[1],_Xk(20.0/_ED),_Xk(30.0/_ED));_Cp(_oz2[1],0.15*_ED,270);_A21(_q11, _q5,_r5,_oz2[1],_3d,150);}}function _Hz2(_q11,_q5,_r5,_ad,_3d){var i;var _ED=_wz2();if(_ad===0){_7p(_lz2[0],_Bz2);_8p(_lz2[0],0.2,0.4,-0.01*_ED,0);_jp(_lz2[0],0.4,0);_qp(_lz2[0],_Xk(25.0/_ED),_Xk(25.0/_ED));for(i=0;i<=5;i++){_A21(_q11,_q5-5+_Cm(10),_r5-5+_Cm(10),_lz2[0],_3d,1);}}else if(_ad===2){_7p(_lz2[2],_Bz2);_8p(_lz2[2],0.4,1,-0.01*_ED,0);_jp(_lz2[2],0.4,0);_qp(_lz2[2],_Xk(50.0/_ED),_Xk(50.0/_ED));for(i=0;i<=15;i++){_A21(_q11,_q5-30+_Cm(60),_r5-30+_Cm(60),_lz2[2],_3d,1);}}else {_7p(_lz2[1],_Bz2); _8p(_lz2[1],0.4,0.7,-0.01*_ED,0);_jp(_lz2[1],0.4,0);_qp(_lz2[1],_Xk(30.0/_ED),_Xk(30.0/_ED));for(i=0;i<=10;i++){_A21(_q11,_q5-15+_Cm(30),_r5-15+_Cm(30),_lz2[1],_3d,1);}}}function _Iz2(_q11,_q5,_r5,_ad,_3d){var i;var _ED=_wz2();if(_ad===0){_7p(_pz2[0],_Bz2);_8p(_pz2[0],0.2,0.4,-0.01*_ED,0);_jp(_pz2[0],0.4,0);_xp(_pz2[0],3.0*_ED,4.0*_ED,0,0);_yp(_pz2[0],90,90,0,0);_qp(_pz2[0],_Xk(25.0/_ED),_Xk(25.0/_ED));for(i=0;i<=5;i++){_A21(_q11,_q5-5+_Cm(10),_r5-5+_Cm(10),_pz2[0],_3d,1);}}else if(_ad===2){_7p(_pz2[2], _Bz2);_8p(_pz2[2],0.4,1,-0.01*_ED,0);_jp(_pz2[2],0.4,0);_xp(_pz2[2],6.0*_ED,7.0*_ED,0,0);_yp(_pz2[2],90,90,0,0);_qp(_pz2[2],_Xk(50.0/_ED),_Xk(50.0/_ED));for(i=0;i<=15;i++){_A21(_q11,_q5-30+_Cm(60),_r5-30+_Cm(60),_pz2[2],_3d,1);}}else {_7p(_pz2[1],_Bz2);_8p(_pz2[1],0.4,0.7,-0.01*_ED,0);_jp(_pz2[1],0.4,0);_xp(_pz2[1],5.0*_ED,6.0*_ED,0,0);_yp(_pz2[1],90,90,0,0);_qp(_pz2[1],_Xk(30.0/_ED),_Xk(30.0/_ED));for(i=0;i<=10;i++){_A21(_q11,_q5-15+_Cm(30),_r5-15+_Cm(30),_pz2[1],_3d,1);}}}function _Jz2(_q11,_q5, _r5,_ad,_3d){var _ED=_wz2();if(_ad===0){_7p(_qz2[0],_Kz2);_8p(_qz2[0],0.4,0.3,-0.02*_ED,0);_t31(_qz2[0],0,360,0,0,false);_qp(_qz2[0],_Xk(20/_ED),_Xk(20/_ED));_A21(_q11,_q5,_r5,_qz2[0],_3d,1);}else if(_ad===2){_7p(_qz2[2],_Kz2);_8p(_qz2[2],1.2,1.2,-0.04*_ED,0);_t31(_qz2[2],0,360,0,0,false);_qp(_qz2[2],_Xk(30/_ED),_Xk(30/_ED));_A21(_q11,_q5,_r5,_qz2[2],_3d,1);}else {_7p(_qz2[1],_Kz2);_8p(_qz2[1],0.75,0.75,-0.03*_ED,0);_t31(_qz2[1],0,360,0,0,false);_qp(_qz2[1],_Xk(25/_ED),_Xk(25/_ED));_A21(_q11,_q5,_r5, _qz2[1],_3d,1);}}function _Lz2(_q11,_q5,_r5,_ad,_3d){var _ED=_wz2();if(_ad===0){_7p(_rz2[0],_Mz2);_8p(_rz2[0],0.4,0.4,-0.02*_ED,0);_t31(_rz2[0],0,360,0,0,false);_qp(_rz2[0],_Xk(20/_ED),_Xk(20/_ED));_A21(_q11,_q5,_r5,_rz2[0],_3d,1);}else if(_ad===2){_7p(_rz2[2],_Mz2);_8p(_rz2[2],1.2,1.2,-0.04*_ED,0);_t31(_rz2[2],0,360,0,0,false);_qp(_rz2[2],_Xk(30/_ED),_Xk(30/_ED));_A21(_q11,_q5,_r5,_rz2[2],_3d,1);}else {_7p(_rz2[1],_Mz2);_8p(_rz2[1],0.75,0.75,-0.03*_ED,0);_t31(_rz2[1],0,360,0,0,false);_qp(_rz2[1],_Xk(25/_ED), _Xk(25/_ED));_A21(_q11,_q5,_r5,_rz2[1],_3d,1);}}function _Nz2(_q11,_q5,_r5,_ad,_3d){var _ED=_wz2();if(_ad===0){_7p(_sz2[0],_Gz2);_8p(_sz2[0],0.4,0.4,-0.02*_ED,0);_t31(_sz2[0],0,360,0,0,false);_qp(_sz2[0],_Xk(20/_ED),_Xk(20/_ED));_A21(_q11,_q5,_r5,_sz2[0],_3d,1);}else if(_ad===2){_7p(_sz2[2],_Gz2);_8p(_sz2[2],1.2,1.2,-0.04*_ED,0);_t31(_sz2[2],0,360,0,0,false);_qp(_sz2[2],_Xk(30/_ED),_Xk(30/_ED));_A21(_q11,_q5,_r5,_sz2[2],_3d,1);}else {_7p(_sz2[1],_Gz2);_8p(_sz2[1],0.75,0.75,-0.03*_ED,0);_t31(_sz2[1], 0,360,0,0,false);_qp(_sz2[1],_Xk(25/_ED),_Xk(25/_ED));_A21(_q11,_q5,_r5,_sz2[1],_3d,1);}}function _Oz2(_q11,_q5,_r5,_ad,_3d){var _ED=_wz2();if(_ad===0){_7p(_tz2[0],_Bz2);_8p(_tz2[0],2,2,0,0);_Q21(_tz2[0],1,0.5);_h31(_tz2[0],0,0.3,0);_qp(_tz2[0],_Xk(100.0/_ED),_Xk(100.0/_ED));_A21(_q11,_q5,_r5,_tz2[0],_3d,1);}else if(_ad===2){_7p(_tz2[2],_Bz2);_8p(_tz2[2],8,8,0,0);_Q21(_tz2[2],1,0.5);_h31(_tz2[2],0,0.3,0);_qp(_tz2[2],_Xk(100.0/_ED),_Xk(100.0/_ED));_A21(_q11,_q5,_r5,_tz2[2],_3d,1);}else {_7p(_tz2[1],_Bz2); _8p(_tz2[1],4,4,0,0);_Q21(_tz2[1],1,0.5);_h31(_tz2[1],0,0.3,0);_qp(_tz2[1],_Xk(100.0/_ED),_Xk(100.0/_ED));_A21(_q11,_q5,_r5,_tz2[1],_3d,1);}}function _Pz2(_q11,_q5,_r5,_ad,_3d){var i;var _ED=_wz2();_7p(_uz2,_Qz2);_8p(_uz2,0.2,0.3,0.0,0.0);_t31(_uz2,0,0,0,0,true);_xp(_uz2,7*_ED,7*_ED,0,0);_yp(_uz2,260,260,0,0);_e31(_uz2,0.4);_qp(_uz2,_Xk(0.2*_t3._bN()/_ED),_Xk(0.2*_t3._bN()/_ED));if(_ad===0){for(i=0;i<=1;i++){_A21(_q11,_Cm(1)*1.2*_t3._aN(),-30.0+_Cm(20),_uz2,_3d,1);}}else if(_ad==2){for(i=0;i<=8;i++){ _A21(_q11,_Cm(1)*1.2*_t3._aN(),-30.0+_Cm(20),_uz2,_3d,1);}}else {for(i=0;i<=4;i++){_A21(_q11,_Cm(1)*1.2*_t3._aN(),-30.0+_Cm(20),_uz2,_3d,1);}}}function _Rz2(_q11,_q5,_r5,_ad,_3d){var i;var _ED=_wz2();_7p(_vz2,_Sz2);_8p(_vz2,0.1,0.25,0.0,0.0);_e31(_vz2,0.6);_t31(_vz2,0,360,0,0,false);_xp(_vz2,2.5*_ED,3.0*_ED,0.0,0.0);_yp(_vz2,240,300,0,20);_qp(_vz2,_Xk(0.5*_t3._bN()/_ED),_Xk(0.5*_t3._bN()/_ED));if(_ad===0){for(i=0;i<=0;i++){_A21(_q11,_Cm(1)*1.2*_t3._aN()-60,-30.0+_Cm(20),_vz2,_3d,1);}}else if(_ad===2){ for(i=0;i<=6;i++){_A21(_q11,_Cm(1)*1.2*_t3._aN()-60,-30.0+_Cm(20),_vz2,_3d,1);}}else {for(i=0;i<=2;i++){_A21(_q11,_Cm(1)*1.2*_t3._aN()-60,-30.0+_Cm(20),_vz2,_3d,1);}}}function _Qq(_q11,_Gc,_q5,_r5,_ad,_3d){_yz2();switch(_Gc){case _8z2:_Az2(_q11,_q5,_r5,_ad,_3d);break;case _9z2:_Cz2(_q11,_q5,_r5,_ad,_3d);break;case _az2:_Ez2(_q11,_q5,_r5,_ad,_3d);break;case _bz2:_Fz2(_q11,_q5,_r5,_ad,_3d);break;case _cz2:_Hz2(_q11,_q5,_r5,_ad,_3d);break;case _dz2:_Iz2(_q11,_q5,_r5,_ad,_3d);break;case _ez2:_Jz2(_q11,_q5,_r5, _ad,_3d);break;case _fz2:_Lz2(_q11,_q5,_r5,_ad,_3d);break;case _gz2:_Nz2(_q11,_q5,_r5,_ad,_3d);break;case _hz2:_Oz2(_q11,_q5,_r5,_ad,_3d);break;case _iz2:_Pz2(_q11,_q5,_r5,_ad,_3d);break;case _jz2:_Rz2(_q11,_q5,_r5,_ad,_3d);break;}}var _Tz2=false,_Kp1=false,_Uz2=true;function _Vz2(_F41){if(_F41){_Tz2=true;}else {_Kp1=false;_Tz2=false;if(_Uz2){_Wz2=false;}}}function _Xz2(){if(window["page"]===undefined){_Uz2=false;window.addEventListener("focus",function(){_Vz2(false);});window.addEventListener("blur",function(){ _Vz2(true);});window.addEventListener("click",function(){_Vz2(false);});}}function _Yz2(){if(_Tz2){_Kp1=true;_Tz2=false;}else if(_Kp1){_Kp1=false;if(_Uz2){_Wz2=true;}}}function _Zz2(){var _IP,i,__z2;var _5g=null;if(_t3._6g){_5g=_t3._8g;}var _Vk=_t3._NO._Vk;var _q8=_0A2++;for(var _1A2=0;_1A2<_Vk.length;_1A2++){var _0n=_Vk[_1A2];var _VF=_0n._VF;if(!_0n.marked&&(_0n._2A2<=_q8)){if(_VF._3A2[_4A2]){var _HQ=false;if(sprite_exists(_0n.sprite_index)||sprite_exists(_0n.mask_index)){_IP=_0n._XZ();_HQ=((_IP.right<0)||(_IP.left>_t3._aN())||(_IP.bottom<0)||(_IP.top>_t3._bN())); }else {_HQ=((_0n.x<0)||(_0n.x>_t3._aN())||(_0n.y<0)||(_0n.y>_t3._bN()));}if(_HQ){if(!_0n._5A2){_0n._N5(_4A2,_aI,_0n,_0n);}}_0n._5A2=_HQ;}if(_VF._3A2[_6A2]){if(sprite_exists(_0n.sprite_index)||sprite_exists(_0n.mask_index)){_IP=_0n._XZ();if((_IP.left<0)||(_IP.right>_t3._aN())||(_IP.top<0)||(_IP.bottom>_t3._bN())){_0n._N5(_6A2,_aI,_0n,_0n);}}else {if((_0n.x<0)||(_0n.x>_t3._aN())||(_0n.y<0)||(_0n.y>_t3._bN())){_0n._N5(_6A2,_aI,_0n,_0n);}}}if(_5g){for(__z2=0;__z2<_5g.length;__z2++){var _7A2=_5g[__z2];if(_7A2.visible){ var _8A2=_7A2._7j1;var _9A2=_7A2._8j1;var _aA2=_7A2._7j1+_7A2._9j1;var _bA2=_7A2._8j1+_7A2._aj1;var _Kx2=_jj1._ux2(_7A2._V71);if(_Kx2!=null){_8A2=_Kx2.__x2();_9A2=_Kx2._1y2();_aA2=_Kx2.__x2()+_Kx2._0y2();_bA2=_Kx2._1y2()+_Kx2._2y2();}if(_VF._3A2[_cA2+__z2]){if(sprite_exists(_0n.sprite_index)||sprite_exists(_0n.mask_index)){_IP=_0n._XZ();if((_IP.right<_8A2)||(_IP.left>_aA2)||(_IP.bottom<_9A2)||(_IP.top>_bA2)){_0n._N5(_cA2+__z2,_aI,_0n,_0n);}}else {if((_0n.x<_8A2)||(_0n.x>_aA2)||(_0n.y<_9A2)||(_0n.y>_bA2)){ _0n._N5(_cA2+__z2,_aI,_0n,_0n);}}}if(_VF._3A2[_dA2+__z2]){if(sprite_exists(_0n.sprite_index)||sprite_exists(_0n.mask_index)){var _eA2=true;_IP=_0n._XZ();if((_IP.right<_8A2)||(_IP.left>_aA2)||(_IP.bottom<_9A2)||(_IP.top>_bA2)){_eA2=false;}if((_IP.right<_aA2)&&(_IP.left>_8A2)&&(_IP.bottom<_bA2)&&(_IP.top>_9A2)){_eA2=false;}if(_eA2){_0n._N5(_dA2+__z2,_aI,_0n,_0n);}}else {}}}}}}}}function _fA2(){for(var _6e2 in _7e2){if(!_7e2.hasOwnProperty(_6e2))continue;var _gA2=_i3._E5(_6e2);var _hA2=_gA2._e51();var _q8=_0A2++; for(var _Pc2=0;_Pc2<_hA2.length;_Pc2++){var _iA2=_hA2[_Pc2];if(!_iA2.marked&&_iA2.active&&(_iA2._2A2<=_q8)){var _jA2=_7e2[_6e2];for(var _kA2 in _jA2){if(!_jA2.hasOwnProperty(_kA2))continue;var _mM1=_jA2[_kA2];var _lA2=_i3._E5(_mM1);var _mA2=_lA2._e51();for(var _Qc2=0;_Qc2<_mA2.length;_Qc2++){var _nA2=_mA2[_Qc2];if(!_nA2.marked&&_nA2.active&&(_nA2._2A2<=_q8)){if((_iA2._VF==_nA2._VF)&&(_Qc2<_Pc2))continue;if(_iA2._QZ(_nA2,true)){if((_iA2.solid)||(_nA2.solid)){_iA2.x=_iA2.xprevious;_iA2.y=_iA2.yprevious;_iA2._YP=true; _iA2.path_position=_iA2.path_positionprevious;_nA2.x=_nA2.xprevious;_nA2.y=_nA2.yprevious;_nA2._YP=true;_nA2.path_position=_nA2.path_positionprevious;}_iA2._N5(_Tc2,_nA2._VF._EQ,_iA2,_nA2);_nA2._N5(_Tc2,_iA2._VF._EQ,_nA2,_iA2);if((_iA2.solid)||(_nA2.solid)){_iA2._Dc2();_nA2._Dc2();_iA2._Hd(_iA2.x+_iA2.hspeed,_iA2.y+_iA2.vspeed);_nA2._Hd(_nA2.x+_nA2.hspeed,_nA2.y+_nA2.vspeed);if(_iA2._QZ(_nA2,true)){_iA2.x=_iA2.xprevious;_iA2.y=_iA2.yprevious;_iA2._YP=true;_iA2.path_position=_iA2.path_positionprevious; _nA2.x=_nA2.xprevious;_nA2.y=_nA2.yprevious;_nA2._YP=true;_nA2.path_position=_nA2.path_positionprevious;}}}}}}}}}}function _oA2(_e3,_pA2,_q5,_r5){for(var i=_t3._NO.length-1;i>=0;i--){var _1u=_t3._NO._E5(i);{if(_1u._YP)_1u._ZP();if(!_1u.marked&&_1u._VF._3A2[_e3|_pA2]){var _qA2=_D5._E5(_1u.sprite_index);var _6M=_qA2.xOrigin;var _7M=_qA2.yOrigin;if((_q5>=_1u._IP.left)&&(_q5<_1u._IP.right)&&(_r5>=_1u._IP.top)&&(_r5<_1u._IP.bottom)){_1u._N5(_e3,_pA2,_1u,_1u);}}}}}function _rA2(){if(_t3){var _k9;var _q8=_0A2;var _sA2=window_views_mouse_get_x(); var _tA2=window_views_mouse_get_y();var _uA2=_i3._PZ();for(var _NF=0;_NF<_uA2.length;_NF++){var _BG=_uA2[_NF];var _vA2=_BG._3A2;if(_vA2[_wA2]||_vA2[_xA2]||_vA2[_yA2]||_vA2[_zA2]||_vA2[_AA2]||_vA2[_BA2]||_vA2[_CA2]||_vA2[_DA2]||_vA2[_EA2]||_vA2[_FA2]||_vA2[_GA2]||_vA2[_HA2]||_vA2[_IA2]||_vA2[_JA2]){if(_BG._KA2.length>0){var _LA2=_BG._KA2._Vk.slice(0);for(var i=_LA2.length-1;i>=0;i--){var _1u=_LA2[i];if(!_1u.marked&&(_1u._2A2<=_q8)){if(_1u._YP)_1u._ZP();if(_1u._Nt(_sA2,_tA2,true)){var _MA2=true;for(_k9=0;_k9<3; _k9++){if(_ug._Ge[_k9]){if(_vA2[_wA2+_k9]){_1u._N5(_wA2+_k9,0,_1u,_1u);}_MA2=false;}}for(_k9=0;_k9<3;_k9++){if(_ug._Be[_k9]===1){if(_vA2[_zA2+_k9]){_1u._N5(_zA2+_k9,0,_1u,_1u);}_MA2=false;}}for(_k9=0;_k9<3;_k9++){if(_ug._Fe[_k9]===1){if(_vA2[_CA2+_k9]){_1u._N5(_CA2+_k9,0,_1u,_1u);}}}if(_MA2){_1u._N5(_FA2,0,_1u,_1u);}if(!_1u._NA2){_1u._N5(_GA2,0,_1u,_1u);_1u._NA2=true;}}else {if(_1u._NA2){_1u._N5(_HA2,0,_1u,_1u);_1u._NA2=false;}}}}}}}for(_k9=0;_k9<3;_k9++){if(_ug._Ge[_k9]){_Hn._N5(_OA2+_k9,0);}}for(_k9=0; _k9<3;_k9++){if(_ug._Be[_k9]===1){_Hn._N5(_PA2+_k9,0);}}for(_k9=0;_k9<3;_k9++){if(_ug._Fe[_k9]===1){_Hn._N5(_QA2+_k9,0);}}if(_XQ){_Hn._N5(_IA2,0);}if(_YQ){_Hn._N5(_JA2,0);}}}function _RA2(){var _Y9,_Z9,__5;var _Vk=_t3._NO._Vk;var _q8=_0A2++;for(var _0n=0;_0n<_Vk.length;_0n++){var _1u=_Vk[_0n];if(!_1u.marked&&(_1u.timeline_index>=0)&&(_1u._2A2<=_q8)){if(!_1u._dr){var _eI=_fI._E5(_1u.timeline_index);if((_eI!==null)&&(_eI!==undefined)){if(_1u.timeline_speed>0){_Y9=_eI._SA2(_1u.timeline_position);_1u.timeline_position+=_1u.timeline_speed; _Z9=_eI._SA2(_1u.timeline_position);for(__5=_Y9;__5<_Z9;__5++){_bI(_1u,_1u,_1u.timeline_index,__5);}if(_1u._er&&(_1u.timeline_position>_eI._an1())){_1u.timeline_position=0;}}else {_Y9=_eI._TA2(_1u.timeline_position);_1u.timeline_position+=_1u.timeline_speed;_Z9=_eI._TA2(_1u.timeline_position);for(__5=_Y9;__5>_Z9;__5--){_bI(_1u,_1u,_1u.timeline_index,__5);}if(_1u._er&&(_1u.timeline_position<0)){_1u.timeline_position=_eI._an1();}}}}}}}function _UA2(){_2m1._VA2();_2n1._VA2();_3m1._WA2(g_pBuiltIn.delta_time); _3m1._VA2();_2m1._XA2();_2n1._XA2();_3m1._XA2();}function _YA2(){var _Vk=_t3._NO._Vk;var _q8=_0A2++;for(var _0n=0;_0n<_Vk.length;_0n++){var _1u=_Vk[_0n];if(!_1u.marked&&(_1u._2A2<=_q8)){for(var _h4=0;_h4<_ZA2;_h4++){var event=__A2|(_h4+1);var _BG=_1u._VF;if(_BG._3A2[event]){var _0B2;_0B2=~~(_1u.alarm[_h4]);if(_0B2>=0){_0B2--;_1u.alarm[_h4]=_0B2;}if(_0B2===0){_1u._N5(__A2|(_h4+1),0,_1u,_1u);}}}}}}function _6I(_e3,_3I){switch(_e3){case _1B2:return _3n;case _2B2:return _pQ;case _3B2:return _bQ;case _4B2:switch(_3I){ case 0:return _5B2;case 1:return _6B2;case 2:return _7B2;case 3:return _8B2;case 4:return _9B2;case 5:return _aB2;case 6:return _bB2;case 7:return _cB2;case 8:return _dB2;case 9:return _eB2;case 10:return _fB2;case 11:return _gB2;default :return _5B2;}break;case _hB2:switch(_3I){case _iB2:return _jB2;case _kB2:return _lB2;case _mB2:return _nB2;default :return _lB2;}break;case _oB2:return _Tc2;case _pB2:switch(_3I){case _qB2:return _wA2;case _rB2:return _yA2;case _sB2:return _xA2;case _tB2:return _FA2;case _uB2:return _zA2;case _vB2:return _BA2; case _wB2:return _AA2;case _xB2:return _CA2;case _yB2:return _EA2;case _zB2:return _DA2;case _AB2:return _GA2;case _BB2:return _HA2;case _CB2:return 0;case _DB2:return 0;case _EB2:return 0;case _FB2:return 0;case _GB2:return 0;case _HB2:return 0;case _IB2:return 0;case _JB2:return 0;case _KB2:return 0;case _LB2:return 0;case _MB2:return 0;case _NB2:return 0;case _OB2:return 0;case _PB2:return 0;case _QB2:return 0;case _RB2:return 0;case _SB2:return 0;case _TB2:return 0;case _UB2:return 0;case _VB2:return 0;case _WB2:return 0;case _XB2:return 0;case _YB2:return 0; case _ZB2:return 0;case __B2:return _OA2;case _0C2:return _1C2;case _2C2:return _3C2;case _4C2:return _PA2;case _5C2:return _6C2;case _7C2:return _8C2;case _9C2:return _QA2;case _aC2:return _bC2;case _cC2:return _dC2;case _eC2:return _IA2;case _fC2:return _JA2;default :return 0;}break;case _qI:{switch(_3I){case _gC2:return _4A2;case _hC2:return _6A2;case _iC2:return _jC2;case _kC2:return _lC2;case _mC2:return _nC2;case _oC2:return _pC2;case _qC2:return _In;case _rC2:return _sC2;case _tC2:return _Ec2;case _uC2:return _Tn;case _vC2:return _wC2;case _xC2:return _cA2; case _yC2:return _zC2;case _AC2:return _BC2;case _CC2:return _DC2;case _EC2:return _FC2;case _GC2:return _HC2;case _IC2:return _JC2;case _KC2:return _LC2;case _MC2:return _dA2;case _NC2:return _OC2;case _PC2:return _QC2;case _RC2:return _SC2;case _TC2:return _UC2;case _VC2:return _WC2;case _XC2:return _YC2;case _ZC2:return __C2;case _pI:return _0D2;case _1D2:return _2D2;case _3D2:return _4D2;case _5D2:return _6D2;case _7D2:return _8D2;case _9D2:return _aD2;case _bD2:return _cD2;case _dD2:return _eD2;case _fD2:return _gD2;case _hD2:return _iD2;case _jD2:return _kD2; case _lD2:return _mD2;case _nD2:return _oD2;case _pD2:return _qD2;case _rD2:return _sD2;case _tD2:return _uD2;case _vD2:return _O5;case _wD2:return _k3;case _xD2:return _yD2;case _zD2:return _AD2;case _BD2:return _CD2;case _DD2:return _ED2;case _FD2:return _GD2;case _HD2:return _ID2;case _JD2:return _KD2;case _LD2:return _MD2;case _ND2:return _Ce1;case _OD2:return _PD2;case _QD2:return _RD2;case _SD2:return _Tc1;case _TD2:return _UD2;default :return 0;}}case _VD2:return _WD2|_3I;case _XD2:return _YD2;case _ZD2:return __D2;case _0E2:return _1E2; case _2E2:return _3E2;case _4E2:switch(_3I){case _5E2:return _6E2;case _7E2:return _8E2;case _9E2:return _aE2;case _bE2:return _cE2;case _dE2:return _eE2;case _fE2:return _gE2;case _hE2:return _iE2;case _jE2:return _kE2;case _lE2:return _mE2;case _nE2:return _oE2;case _pE2:return _qE2;case _rE2:return _sE2;case _tE2:return _uE2;case _vE2:return _wE2;case _xE2:return _yE2;case _zE2:return _AE2;case _BE2:return _CE2;case _DE2:return _EE2;case _FE2:return _GE2;case _HE2:return _IE2;case _JE2:return _KE2;case _LE2:return _ME2;case _NE2:return _OE2; case _PE2:return _QE2;case _RE2:return _SE2;case _TE2:return _UE2;default :return 0;}break;case _VE2:return _2n;default :return 0;}}function _7I(_e3,_3I){switch(_e3){case _oB2:case _2E2:case _XD2:case _ZD2:case _0E2:{return _3I;}}return 0;}var _WE2=0;var _XE2=1;var _YE2=2;var _ZE2=3;var __E2=4;var _0F2=5;function _1F2(){this._2F2=[new _3F2(),new _3F2(),new _3F2(),new _3F2(),new _3F2(),new _3F2(),];}/* * Initializes frustum planes from a view-projection matrix. * * @param {Matrix} vp The view-projection matrix. */_1F2.prototype._gN=function(_4F2){ var _oo=new _Tz(_4F2._v6[0],_4F2._v6[4],_4F2._v6[8]);var _po=new _Tz(_4F2._v6[1],_4F2._v6[5],_4F2._v6[9]);var _qo=new _Tz(_4F2._v6[2],_4F2._v6[6],_4F2._v6[10]);var _ro=new _Tz(_4F2._v6[3],_4F2._v6[7],_4F2._v6[11]);this._2F2[_WE2].Normal=_ro._Gf(_oo);this._2F2[_XE2].Normal=_ro._2N(_oo);this._2F2[_ZE2].Normal=_ro._Gf(_po);this._2F2[_YE2].Normal=_ro._2N(_po);this._2F2[__E2].Normal=_qo;this._2F2[_0F2].Normal=_ro._2N(_qo);var _5F2=_4F2._v6[12];var _6F2=_4F2._v6[13];var _7F2=_4F2._v6[14];var _8F2=_4F2._v6[15];this._2F2[_WE2]._Q92=_8F2+_5F2; this._2F2[_XE2]._Q92=_8F2-_5F2;this._2F2[_ZE2]._Q92=_8F2+_6F2;this._2F2[_YE2]._Q92=_8F2-_6F2;this._2F2[__E2]._Q92=_7F2;this._2F2[_0F2]._Q92=_8F2-_7F2;for(var i=0;i<6;++i){this._2F2[i]._mA();}};/* * Tests whether a sphere intersects with the frustum. * @param {Vector3} position The origin of the sphere. * @param {Number} radius The sphere's radius. * @returns True if the sphere intersects with the frustum. */_1F2.prototype._9F2=function(position,_T61){for(var i=0;i<6;++i){var _aF2=this._2F2[i]; var _9u=(position._bF2(_aF2.Normal))+_aF2._Q92;if(_9u<-_T61){return false;}}return true;};function _cF2(){this.__type="global";}var _L6=3.14159265,_dF2=true,_eF2=false,_le1=true,_zo1=0,_fF2=-1,_gF2=0,_hF2=1,_iF2=2,_UN=0,_jF2=-1,_kF2=0,_VN=1,_lF2=2,_mF2=3,_nF2=4,_Wa1=5,_oF2=6,_pF2=7,_qF2=8,_rF2=9,_sF2=10,_tF2=11,_Ja1=0,_uF2=-1,_vF2=0,_wF2=0,_xF2=1,_yF2=2,_Ka1=3,_zF2=4,_AF2=5,_BF2=6,_CF2=7,_DF2=8,_EF2=9,_Co1=0,_FF2=-1,_c81=-100,_d81=-200,_GF2=-300,_HF2=-400,_i_=-1,_IF2=-2,_FQ=-3,_Kt=-4,_JF2=-5,_KF2=-7, _LF2=-6,_3n=0x000,_pQ=0x100,__A2=0x200,_MF2=0x300,_Tc2=0x400,_YD2=0x500,_NF2=0x600,_aI=0x700,_WD2=0x800,__D2=0x900,_1E2=0xA00,_3E2=0xB00,_bQ=0xC00,_OF2=0xD00,_2n=0xE00,_lB2=_MF2|1,_jB2=_MF2|2,_nB2=_MF2|3,_4A2=_aI|1,_6A2=_aI|2,_jC2=_aI|3,_lC2=_aI|4,_nC2=_aI|5,_pC2=_aI|6,_In=_aI|7,_sC2=_aI|8,_Ec2=_aI|9,_Tn=_aI|10,_wC2=_aI|11,_0D2=_aI|14,_2D2=_aI|15,_4D2=_aI|16,_6D2=_aI|17,_8D2=_aI|18,_aD2=_aI|19,_cD2=_aI|20,_eD2=_aI|21,_gD2=_aI|22,_iD2=_aI|23,_kD2=_aI|24,_mD2=_aI|25,_oD2=_aI|26,_qD2=_aI|27,_sD2=_aI|28, _uD2=_aI|29,_cA2=_aI|30,_zC2=_aI|31,_BC2=_aI|32,_DC2=_aI|33,_FC2=_aI|34,_HC2=_aI|35,_JC2=_aI|36,_LC2=_aI|37,_dA2=_aI|40,_OC2=_aI|41,_QC2=_aI|42,_SC2=_aI|43,_UC2=_aI|44,_WC2=_aI|45,_YC2=_aI|46,__C2=_aI|47,_O5=_aI|58,_k3=_aI|59,_yD2=_aI|60,_AD2=_aI|61,_CD2=_aI|62,_ED2=_aI|63,_ID2=_aI|68,_PF2=_WD2|64,_QF2=_WD2|65,_RF2=_WD2|72,_SF2=_WD2|73,_TF2=_WD2|74,_UF2=_WD2|75,_VF2=_WD2|76,_WF2=_WD2|77,_GD2=_aI|66,_KD2=_aI|70,_MD2=_aI|71,_Ce1=_aI|72,_zf1=_aI|73,_PD2=_aI|74,_RD2=_aI|80,_Tc1=_aI|75,_UD2=_aI|76,_wA2=_NF2|1, _yA2=_NF2|2,_xA2=_NF2|3,_zA2=_NF2|4,_BA2=_NF2|5,_AA2=_NF2|6,_CA2=_NF2|7,_EA2=_NF2|8,_DA2=_NF2|9,_OA2=_NF2|10,_1C2=_NF2|11,_3C2=_NF2|12,_PA2=_NF2|13,_6C2=_NF2|14,_8C2=_NF2|15,_QA2=_NF2|16,_bC2=_NF2|17,_dC2=_NF2|18,_FA2=_NF2|19,_GA2=_NF2|20,_HA2=_NF2|21,_IA2=_NF2|22,_JA2=_NF2|23,_5B2=__A2|1,_6B2=__A2|2,_7B2=__A2|3,_8B2=__A2|4,_9B2=__A2|5,_aB2=__A2|6,_bB2=__A2|7,_cB2=__A2|8,_dB2=__A2|9,_eB2=__A2|10,_fB2=__A2|11,_gB2=__A2|12,_6E2=_OF2|1,_8E2=_OF2|2,_aE2=_OF2|3,_cE2=_OF2|4,_eE2=_OF2|5,_gE2=_OF2|6,_iE2=_OF2|7, _kE2=_OF2|8,_mE2=_OF2|9,_oE2=_OF2|10,_qE2=_OF2|11,_sE2=_OF2|12,_uE2=_OF2|13,_wE2=_OF2|65,_yE2=_OF2|66,_AE2=_OF2|67,_CE2=_OF2|68,_EE2=_OF2|69,_GE2=_OF2|70,_IE2=_OF2|71,_KE2=_OF2|72,_ME2=_OF2|73,_OE2=_OF2|74,_QE2=_OF2|75,_SE2=_OF2|76,_UE2=_OF2|77,_1B2=0,_2B2=1,_4B2=2,_hB2=3,_oB2=4,_XD2=5,_pB2=6,_qI=7,_VD2=8,_ZD2=9,_0E2=10,_2E2=11,_3B2=12,_4E2=13,_VE2=14,_XF2=10,_YF2=11,_ZF2=12,__F2=13,_0G2=14,_1G2=15,_2G2=16,_3G2=17,_4G2=18,_5G2=19,_6G2=20,_7G2=21,_8G2=22,_9G2=23,_aG2=24,_bG2=25,_qB2=0,_rB2=1,_sB2=2, _tB2=3,_uB2=4,_vB2=5,_wB2=6,_xB2=7,_yB2=8,_zB2=9,_AB2=10,_BB2=11,_CB2=16,_DB2=17,_EB2=18,_FB2=19,_GB2=21,_HB2=22,_IB2=23,_JB2=24,_KB2=25,_LB2=26,_MB2=27,_NB2=28,_OB2=31,_PB2=32,_QB2=33,_RB2=34,_SB2=36,_TB2=37,_UB2=38,_VB2=39,_WB2=40,_XB2=41,_YB2=42,_ZB2=43,__B2=50,_0C2=51,_2C2=52,_4C2=53,_5C2=54,_7C2=55,_9C2=56,_aC2=57,_cC2=58,_eC2=60,_fC2=61,_5E2=0,_7E2=1,_9E2=2,_bE2=3,_dE2=4,_fE2=5,_hE2=6,_jE2=7,_lE2=8,_nE2=9,_pE2=10,_rE2=11,_tE2=12,_vE2=64,_xE2=65,_zE2=66,_BE2=67,_DE2=68,_FE2=69,_HE2=70,_JE2=71, _LE2=72,_NE2=73,_PE2=74,_RE2=75,_TE2=76,_kB2=0,_iB2=1,_mB2=2,_gC2=0,_hC2=1,_iC2=2,_kC2=3,_mC2=4,_oC2=5,_qC2=6,_rC2=7,_tC2=8,_uC2=9,_vC2=30,_xC2=40,_yC2=41,_AC2=42,_CC2=43,_EC2=44,_GC2=45,_IC2=46,_KC2=47,_MC2=50,_NC2=51,_PC2=52,_RC2=53,_TC2=54,_VC2=55,_XC2=56,_ZC2=57,_vD2=58,_wD2=59,_pI=10,_1D2=11,_3D2=12,_5D2=13,_7D2=14,_9D2=15,_bD2=16,_dD2=17,_fD2=18,_hD2=19,_jD2=20,_lD2=21,_nD2=22,_pD2=23,_rD2=24,_tD2=25,_xD2=60,_zD2=61,_BD2=62,_DD2=63,_cG2=64,_dG2=65,_FD2=66,_HD2=68,_JD2=70,_LD2=71,_ND2=72,_OD2=74, _QD2=80,_SD2=75,_TD2=76,_eG2=__D2|0,_fG2=__D2|1,_gG2=__D2|1,_hG2=__D2|8,_iG2=__D2|9,_jG2=__D2|13,_kG2=__D2|16,_lG2=__D2|17,_mG2=__D2|18,_nG2=__D2|19,_oG2=__D2|27,_pG2=__D2|32,_qG2=__D2|33,_rG2=__D2|34,_sG2=__D2|35,_tG2=__D2|36,_uG2=__D2|37,_vG2=__D2|38,_wG2=__D2|39,_xG2=__D2|40,_yG2=__D2|45,_zG2=__D2|46,_AG2=__D2|48,_BG2=__D2|49,_CG2=__D2|50,_DG2=__D2|51,_EG2=__D2|52,_FG2=__D2|53,_GG2=__D2|54,_HG2=__D2|55,_IG2=__D2|56,_JG2=__D2|57,_KG2=__D2|65,_LG2=__D2|66,_MG2=__D2|67,_NG2=__D2|68,_OG2=__D2|69, _PG2=__D2|70,_QG2=__D2|71,_RG2=__D2|72,_SG2=__D2|73,_TG2=__D2|74,_UG2=__D2|75,_VG2=__D2|76,_WG2=__D2|77,_XG2=__D2|78,_YG2=__D2|79,_ZG2=__D2|80,__G2=__D2|81,_0H2=__D2|82,_1H2=__D2|83,_2H2=__D2|84,_3H2=__D2|85,_4H2=__D2|86,_5H2=__D2|87,_6H2=__D2|88,_7H2=__D2|89,_8H2=__D2|90,_9H2=__D2|112,_aH2=__D2|113,_bH2=__D2|114,_cH2=__D2|115,_dH2=__D2|116,_eH2=__D2|117,_fH2=__D2|118,_gH2=__D2|119,_hH2=__D2|120,_iH2=__D2|121,_jH2=__D2|122,_kH2=__D2|123,_lH2=__D2|145,_mH2=__D2|186,_nH2=__D2|187,_oH2=__D2|188,_pH2=__D2|189, _qH2=__D2|190,_rH2=__D2|191,_sH2=__D2|192,_tH2=__D2|219,_uH2=__D2|220,_vH2=__D2|221,_wH2=__D2|222,_xH2=__D2|223,_yH2=__D2|144,_zH2=__D2|96,_AH2=__D2|97,_BH2=__D2|98,_CH2=__D2|99,_DH2=__D2|100,_EH2=__D2|101,_FH2=__D2|102,_GH2=__D2|103,_HH2=__D2|104,_IH2=__D2|105,_JH2=__D2|106,_KH2=__D2|107,_LH2=__D2|109,_MH2=__D2|110,_NH2=__D2|111,_OH2=_YD2|0,_PH2=_YD2|1,_QH2=_YD2|1,_RH2=_YD2|8,_SH2=_YD2|9,_TH2=_YD2|13,_UH2=_YD2|16,_VH2=_YD2|17,_WH2=_YD2|18,_XH2=_YD2|19,_YH2=_YD2|27,_ZH2=_YD2|32,__H2=_YD2|33,_0I2=_YD2|34, _1I2=_YD2|35,_2I2=_YD2|36,_3I2=_YD2|37,_4I2=_YD2|38,_5I2=_YD2|39,_6I2=_YD2|40,_7I2=_YD2|45,_8I2=_YD2|46,_9I2=_YD2|48,_aI2=_YD2|49,_bI2=_YD2|50,_cI2=_YD2|51,_dI2=_YD2|52,_eI2=_YD2|53,_fI2=_YD2|54,_gI2=_YD2|55,_hI2=_YD2|56,_iI2=_YD2|57,_jI2=_YD2|65,_kI2=_YD2|66,_lI2=_YD2|67,_mI2=_YD2|68,_nI2=_YD2|69,_oI2=_YD2|70,_pI2=_YD2|71,_qI2=_YD2|72,_rI2=_YD2|73,_sI2=_YD2|74,_tI2=_YD2|75,_uI2=_YD2|76,_vI2=_YD2|77,_wI2=_YD2|78,_xI2=_YD2|79,_yI2=_YD2|80,_zI2=_YD2|81,_AI2=_YD2|82,_BI2=_YD2|83,_CI2=_YD2|84,_DI2=_YD2|85, _EI2=_YD2|86,_FI2=_YD2|87,_GI2=_YD2|88,_HI2=_YD2|89,_II2=_YD2|90,_JI2=_YD2|112,_KI2=_YD2|113,_LI2=_YD2|114,_MI2=_YD2|115,_NI2=_YD2|116,_OI2=_YD2|117,_PI2=_YD2|118,_QI2=_YD2|119,_RI2=_YD2|120,_SI2=_YD2|121,_TI2=_YD2|122,_UI2=_YD2|123,_VI2=_YD2|145,_WI2=_YD2|186,_XI2=_YD2|187,_YI2=_YD2|188,_ZI2=_YD2|189,__I2=_YD2|190,_0J2=_YD2|191,_1J2=_YD2|192,_2J2=_YD2|219,_3J2=_YD2|220,_4J2=_YD2|221,_5J2=_YD2|222,_6J2=_YD2|223,_7J2=_YD2|144,_8J2=_YD2|96,_9J2=_YD2|97,_aJ2=_YD2|98,_bJ2=_YD2|99,_cJ2=_YD2|100,_dJ2=_YD2|101, _eJ2=_YD2|102,_fJ2=_YD2|103,_gJ2=_YD2|104,_hJ2=_YD2|105,_iJ2=_YD2|106,_jJ2=_YD2|107,_kJ2=_YD2|109,_lJ2=_YD2|110,_mJ2=_YD2|111,_nJ2=_1E2|0,_oJ2=_1E2|1,_pJ2=_1E2|1,_qJ2=_1E2|8,_rJ2=_1E2|9,_sJ2=_1E2|13,_tJ2=_1E2|16,_uJ2=_1E2|17,_vJ2=_1E2|18,_wJ2=_1E2|19,_xJ2=_1E2|27,_yJ2=_1E2|32,_zJ2=_1E2|33,_AJ2=_1E2|34,_BJ2=_1E2|35,_CJ2=_1E2|36,_DJ2=_1E2|37,_EJ2=_1E2|38,_FJ2=_1E2|39,_GJ2=_1E2|40,_HJ2=_1E2|45,_IJ2=_1E2|46,_JJ2=_1E2|48,_KJ2=_1E2|49,_LJ2=_1E2|50,_MJ2=_1E2|51,_NJ2=_1E2|52,_OJ2=_1E2|53,_PJ2=_1E2|54,_QJ2=_1E2|55, _RJ2=_1E2|56,_SJ2=_1E2|57,_TJ2=_1E2|65,_UJ2=_1E2|66,_VJ2=_1E2|67,_WJ2=_1E2|68,_XJ2=_1E2|69,_YJ2=_1E2|70,_ZJ2=_1E2|71,__J2=_1E2|72,_0K2=_1E2|73,_1K2=_1E2|74,_2K2=_1E2|75,_3K2=_1E2|76,_4K2=_1E2|77,_5K2=_1E2|78,_6K2=_1E2|79,_7K2=_1E2|80,_8K2=_1E2|81,_9K2=_1E2|82,_aK2=_1E2|83,_bK2=_1E2|84,_cK2=_1E2|85,_dK2=_1E2|86,_eK2=_1E2|87,_fK2=_1E2|88,_gK2=_1E2|89,_hK2=_1E2|90,_iK2=_1E2|112,_jK2=_1E2|113,_kK2=_1E2|114,_lK2=_1E2|115,_mK2=_1E2|116,_nK2=_1E2|117,_oK2=_1E2|118,_pK2=_1E2|119,_qK2=_1E2|120,_rK2=_1E2|121, _sK2=_1E2|122,_tK2=_1E2|123,_uK2=_1E2|145,_vK2=_1E2|186,_wK2=_1E2|187,_xK2=_1E2|188,_yK2=_1E2|189,_zK2=_1E2|190,_AK2=_1E2|191,_BK2=_1E2|192,_CK2=_1E2|219,_DK2=_1E2|220,_EK2=_1E2|221,_FK2=_1E2|222,_GK2=_1E2|223,_HK2=_1E2|144,_IK2=_1E2|96,_JK2=_1E2|97,_KK2=_1E2|98,_LK2=_1E2|99,_MK2=_1E2|100,_NK2=_1E2|101,_OK2=_1E2|102,_PK2=_1E2|103,_QK2=_1E2|104,_RK2=_1E2|105,_SK2=_1E2|106,_TK2=_1E2|107,_UK2=_1E2|109,_VK2=_1E2|110,_WK2=_1E2|111,_XK2=0,_YK2=1,_ZK2=2,__K2=[],_ZA2=12,_0L2=8,_1L2=8,_2L2=8,_PH=10,_so=0x000000, _vo=0x000080,_wo=0x008000,_xo=0x008080,_yo=0x800000,_zo=0x800080,_Ao=0x808000,_to=0x808080,_uo=0xC0C0C0,_Bo=0x0000FF,_Co=0x00FF00,_Do=0x00FFFF,_Eo=0xFF0000,_Fo=0xFF00FF,_Go=0xFFFF00,_3L2=0xC0C0C0,_4L2=0x808080,_Pn=0xFFFFFF,_5L2=0xC0DCC0,_6L2=0xF0CAA6,_7L2=0xF0FBFF,_8L2=0xA4A0A0,_9L2=-1,_Mf1=0,_jn=1,_dk1=0,_r_1=1,_s_1=2,_t_1=3,_u_1=4,_v_1=5,_bs=6,_w_1=7,_x_1=8,_2k1=9,_3k1=10,_4k1=11,_5k1=12,_6k1=13,_7k1=14,_8k1=15,global=null,_i3=null,_Hn=null,_ug=null,_mT=null,g_pBuiltIn=null,_rE=null,_aL2=null, _ln=null,_QE=null,_8r=null,_D5=null,_bL2=null,_3u=null,_fX=null,_jj1=null,_7e2=null,_RY=null,_fI=null,_Er=null,_zT=null,_Wk1=null,_Ff=null,_cL2=null,_t3=null,_dL2=null,_7g=null,_eL2=null,_fL2=null,_u11=null,_o11=null,_qj=null,_El=null,_bO=null,_Ek=null,_Sl=null,_sk=null,_c7=null,_Rl=null,_cs=null,_gL2=null,_Wo1=null,_RH=null,_QH=null,_hL2=null,_SH=null,_iL2=null,_jL2=null,_kL2=null,_lL2=null,_vI=null,_wI=null,_I8=null,_bG=null,_bg=null,_NM=null,_lN=null,_mL2=null,_nL2=null,_oL2=null,_pL2=null,_qL2=null, _Fy2=null,_Jj1=null,_rL2=null,_4j1=null,__i1=-1,_0j1=[],g_gmlConst=null,_1b1=null;_Ca1=null,g_WebAudioContext=null,_CF=null,_bF=null,_sL2=null,_wo1=null,_tL2=null,g_GameMakerHTML5Dir=undefined,_uL2=undefined,_vL2=undefined,gml_Script_gmcallback_html5_set_load_location=undefined,_wL2="",g_yyPrePostObject__=undefined,_in=_Mf1,_xL2=true,_mM=true,_gG=false,_Wz2=false,_gn1=false,_Hc1=false,_Gc1=false,_ae1=false,_nE=false,_yL2=false,_zL2=false,_AL2=false,_BL2=false,_5I=false,_CL2=false,_dF=false,_DL2=false, _EL2=false,_FL2=false,_GL2=0,_881=0,_HL2=0,_IL2=0,_JL2=0,_KL2=0,_Gn1=0,_Hn1=0,_Jn1=0,_Kn1=0,_In1=0,_Ln1=0,_hj=0,_jQ=0,_LL2=0,_Nc=0,_Oc=0,_2H=0,_eL=0,_dL=0,_EL=0,_GL=0,_Mn1=0,_Nn1=0,_ML2=0,_NL2=0,_OL2=0,_PL2=0,_QL2=0,_RL2=0,_SL2=0,_TL2=0,_3F=0,_UL2=0,_sI=0,_tI=0,_uI=0,_aH=0,_bH=0,_HN=0,_VL2=0,_WL2=0,_XL2=0,_YL2=0,_Bn1=0,_ZL2=0,_1A=0,_kZ=false,_An1=0,_km=0,__L2=0,_EK=0,_BK=0,_GK=false,_HK=-1,_IK=-1,_FK=1,_CK=1,_iN=true,_dN=true,_fN=new _1F2(),cr_default=0,cr_none=0,cr_arrow=0,cr_cross=0,cr_beam=0,cr_size_nesw=0, cr_size_ns=0,cr_size_nwse=0,cr_size_we=0,cr_uparrow=0,cr_hourglass=0,cr_drag=0,_tn1=0,_un1=0,_vn1=0,_wn1=0,_xn1=0,_yn1=0,cr_appstart=0,_zn1=0,cr_handpoint=0,cr_size_all=0,c_black=0,c_white=0,c_red=0,c_green=0,c_blue=0,_0M2=0,_1M2=0,_2M2=0,_3M2=0,_4M2=0,_v3=0,_5M2=[],_8F='canvas',_6M2='0123456789ABCDEF';function _7M2(){var debug=false;if((_rE.Options)&&(_rE.Options.debugMode)&&(_rE.Options.debugMode===true)){debug=true;}}function _8M2(){_5M2=[];var _9M2=0xEDB88320;for(var i=0;i<256;++i){var _aM2=~~i;for(var __5=8; __5>0;--__5){if((_aM2&1)!==0){_aM2=((_aM2>>1)&0x7fffffff)^_9M2;}else {_aM2>>=1;_aM2&=0x7fffffff;}}_5M2[i]=_aM2;}}function _bM2(_h02){var _cM2=0xffffffff;for(var i=0;i<_h02.length;i++){_cM2=((_cM2>>8)&0x00ffffff)^_5M2[(_cM2^_h02[i])&0xff];}return _cM2;}function _dM2(){_8M2();_eM2();if(_in!=_9L2){try{var _fM2=new Audio();_fM2.controls=false;_Hc1=!!_fM2.canPlayType&&_fM2.canPlayType('audio/mpeg')!=="";_Gc1=!!_fM2.canPlayType&&_fM2.canPlayType('audio/ogg; codecs="vorbis"')!=="";_fM2=null;}catch(e){_Hc1=false; _Gc1=false;}}if(_Hc1)debug("Browser CAN play MP3");if(_Gc1)debug("Browser CAN play OGG");_7M2();_sL2=_GL2=0;_t3=null;_Wz2=false;_881=-1;_nL2=new _gM2();_oL2=new _gM2();_dL2=new _gM2();_tL2=new _gM2();_pL2=new _gM2();_lN=new _IF();_NM=new _IF();_mL2=new _IF();_dL2.visible=true;_tL2.visible=true;_7g=[];_7g[0]=_dL2;_hM2=[];_fL2=[];_u11=[];_o11=[];_qj=new _r41(5);_El=new _r41(5);_bO=new _r41(5);_Ek=new _r41(5);_Sl=new _r41(5);_sk=new _r41(5);_c7=new _r41(5);_cs=new _r41(5);_Rl=new _r41(5);_gL2=new _hs();_bG=new _r41(5); _bg=new _IF();_Fy2=new _iQ(0,0,0,0,false,true);_Fy2._iM2="DUMMY INSTANCE";__K2[0]=-1;__K2[1]=0;__K2[2]=0x00000000;__K2[3]=1;__K2[4]=0;__K2[5]=0x00000000;__K2[6]=0;__K2[7]=-1;__K2[8]=0x00000000;__K2[9]=0;__K2[10]=1;__K2[11]=0x00000000;__K2[12]=0;__K2[13]=0;__K2[14]=0xffffffff;_8F="canvas";_I8="html5game/";if(typeof(g_GameMakerHTML5Dir)!="undefined"){_I8=g_GameMakerHTML5Dir;}else {if(_rE.Options&&_rE.Options.GameDir){_I8=_rE.Options.GameDir+'/';}}_Wo1=[];_RH=[];_QH=[];_hL2="Hiscore Table";_SH=""; _iL2="Press to Continue";_PL2=0x000000;_TL2=-1;_QL2=0xffff00;_RL2=0xffffff;_jL2="verdana";_SL2=16;_kL2="";_xL2=true;highscore_clear();_EK=-1;_BK=-1;_cs._jM2();_hj=0.0000001;_YL2=512;_CF=[];_zL2=_EL2=false;_mM=true;_dF=false;_4j1=_UL2=null;_sI=_tI=-1;_HN=0;_LL2=1.0;_HL2=0;_IL2=-1;_JL2=0;_3F=0;_KL2=0;_OL2=10000000;_jQ=100000;_Nc=1.0;if(_v3){draw_set_colour(_rE.Options.DrawColour);}else {_2H=0x00000000;_Oc=0x000000;_eL=_fL(_Oc);_dL=_ns(_Oc,_Nc);}c_black=_fL(0x000000);c_white=_fL(0xffffff);c_red=_fL(0x0000ff); c_green=_fL(0x00ff00);c_blue=_fL(0xff0000);_0M2=_fL(0xff000000);_1M2=_fL(0xffffffff);_2M2=_fL(0xff0000ff);_3M2=_fL(0xff00ff00);_4M2=_fL(0xffff0000);cr_default=0;cr_none=-1;cr_arrow=-2;cr_cross=-3;cr_beam=-4;cr_size_nesw=-6;cr_size_ns=-7;cr_size_nwse=-8;cr_size_we=-9;cr_uparrow=-10;cr_hourglass=-11;cr_drag=-12;_tn1=-13;_un1=-14;_vn1=-15;_wn1=-16;_xn1=-17;_yn1=-18;cr_appstart=-19;_zn1=-20;cr_handpoint=-21;cr_size_all=-22;_km=-1;_An1=_rE.Options.showCursor?cr_default:cr_none;__L2=0;_kM2();if(_rE.Options&&_rE.Options.showCursor===false){ canvas.style.cursor="none";}_BL2=false;if(_rE.Options&&_rE.Options.CreateEventOrder===true){_BL2=true;}if(typeof gmlGlobalInit=='function'){gmlGlobalInit();}}function _lM2(_mM2){return((_mM2*Math.PI)/180.0);}function _nM2(_q5,_r5){if(_q5===0)return 0;var _J6=((_q5*0x1000000)%(_r5*0x1000000));_J6=_J6/0x1000000;return _J6;}function _kA(_q5){return _q5*_q5;}function _fL(_3d){var _m4="rgb("+((_3d>>16)&0xff).toString()+","+((_3d>>8)&0xff).toString()+","+(_3d&0xff).toString()+")";return _m4;}function _ns(_3d,_u9){ var _m4="rgba("+((_3d>>16)&0xff).toString()+","+((_3d>>8)&0xff).toString()+","+(_3d&0xff).toString()+","+((_u9*255.0)&0xff).toString()+")";return _m4;}function _oM2(_mM2){return _L6*_mM2/180.0;}function _Qc(_3d){return(((_3d&0xff)<<16)|(_3d&0xff00)|((_3d&0xff0000)>>16));}function _Xq(_pM2){var _qM2=_pK();while(_pM2>0){var _rM2=_pK();_pM2-=(_rM2-_qM2);_qM2=_rM2;}}function _Jt(_Ht,_Ak,_It,_c51){var _Vk,_1u,_0n,_e4;var _h4=arguments;var _Jk=arguments.length;var _sM2=_h4[_Jk-1];_Ak=~~_Ak;if(_Ak==_Kt)return _c51;if(_Ak==_FQ){ _Vk=_Hn._PZ();for(_0n=0;_0n<_Vk.length;_0n++){_1u=_Vk[_0n];if((_It)&&(_1u==_Ht))continue;if(_1u.marked)continue;if(!_1u.active)continue;_e4=_sM2(_1u);if(_e4 instanceof _Rt)_e4=yyGetInt32(_e4);if(_e4>0)return _e4;}}else if(_Ak<100000){var _BG=_i3._E5(_Ak);if(_BG===null){return _c51;}_Vk=_BG._e51();for(_0n=0;_0n<_Vk.length;_0n++){_1u=_Vk[_0n];if((_It)&&(_Ht==_1u))continue;if(_1u.marked)continue;if(!_1u.active)continue;_e4=_sM2(_1u);if(_e4 instanceof _Rt)_e4=yyGetInt32(_e4);if(_e4>0)return _e4;}}else {_1u=_Hn._tM2(_Ak); if((_It)&&(_Ht==_1u)){return _c51;}if(_1u.marked){return _c51;}if(!_1u.active){return _c51;}_e4=_sM2(_1u);if(_e4 instanceof _Rt)_e4=yyGetInt32(_e4);return _e4;}return _c51;}function _QO(_Ht,_Ak,_It,_c51){var _Vk,_1u,_0n,_Bm;var _h4=arguments;var _Jk=arguments.length;var _sM2=_h4[_Jk-1];var _9u=10000000000;var id=-1;_Ak=~~_Ak;if(_Ak==_Kt)return _c51;if(_Ak==_FQ){_Vk=_Hn._PZ();for(_0n=0;_0n<_Vk.length;_0n++){_1u=_Vk[_0n];if((_It)&&(_1u==_Ht))continue;if(_1u.marked)continue;if(!_1u.active)continue;_Bm=_sM2(_1u);if(_Bm<_9u){ _9u=_Bm;}}if(_9u!=10000000000)return _9u;}else if(_Ak<100000){var _BG=_i3._E5(_Ak);if(_BG===null){return _c51;}_Vk=_BG._e51();for(_0n=0;_0n<_Vk.length;_0n++){_1u=_Vk[_0n];if((_It)&&(_Ht==_1u))continue;if(_1u.marked)continue;if(!_1u.active)continue;_Bm=_sM2(_1u);if(_Bm<_9u){_9u=_Bm;}}if(_9u!=10000000000)return _9u;}else {_1u=_Hn._tM2(_Ak);if((_It)&&(_Ht==_1u)){return _c51;}if(_1u.marked){return _c51;}if(!_1u.active)return _c51;return _sM2(_1u);}return _c51;}/*@constructor */function _uM2(){/*@this {BrowserDetect} */this.init=function(){ this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this._XN=this._vM2();this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this._wM2=this._xM2(this.browser);this.os_version=this._yM2();},/*@this {BrowserDetect} */this._vM2=function(){var _zM2=navigator.userAgent.toString().toLowerCase();if(_zM2.indexOf("trident/5")>-1){return 9.0;}else if(_zM2.indexOf("trident/6")>-1){return 10.0;}else if(_zM2.indexOf("trident/7")>-1){ return 11.0;}return -1;},this._xM2=function(_AM2){const _qW1=this.searchString(this.dataOS)||"an unknown OS";if(_AM2==="Safari"&&_qW1==="Mac"&&navigator["maxTouchPoints"]&&navigator["maxTouchPoints"]>1)return "iPad";return _qW1;},/*@this {BrowserDetect} */this._yM2=function(){if(navigator.appVersion.indexOf("CPU OS 5_")!=-1){return 5.0;}else if(navigator.appVersion.indexOf("CPU OS 4_")!=-1){return 4.0;}else if(navigator.appVersion.indexOf("CPU OS 3_")!=-1){return 3.0;}else if(navigator.appVersion.indexOf("Android 4")!=-1){ return 4.0;}else if(navigator.appVersion.indexOf("Android 3")!=-1){return 3.0;}else if(navigator.appVersion.indexOf("Android 2")!=-1){return 2.0;}else {return _FF2;}},/*@this {BrowserDetect} */this.searchString=function(data){for(var i=0;i0){_3u.__U(_2u,_YN2.layers);}}_2u._Q71=_YN2;_mT._Gf(_2u);}else {_GL2++;_mT._Gf(null);}}_WL2=_mN2.Options.crc;_mT._ZN2(_mN2.RoomOrder);for(i=0;i<_mN2.RoomOrder.length; i++){_2u=_mT._981(i);_2u._681=i;}g_pBuiltIn.room_first=_mT._981(0).id;g_pBuiltIn.room_last=_mT._981(_mT._b81.length-1).id;_jj1._Gx2();for(index=0;index<_mN2.Paths.length;index++){var _QY=__N2(_mN2.Paths[index]);_RY._Gf(_QY);}for(index=0;index<_mN2.Sounds.length;index++){_ln._Gf(_mN2.Sounds[index]);}if(_mN2.Timelines!==undefined){for(index=0;index<_mN2.Timelines.length;index++){_fI._Gf(_mN2.Timelines[index]);}}if(_mN2.AnimCurves!==undefined){for(index=0;index<_mN2.AnimCurves.length;index++){_Er._Gf(_mN2.AnimCurves[index]); }}if(_mN2.Sequences!==undefined){for(index=0;index<_mN2.Sequences.length;index++){_zT._Gf(_mN2.Sequences[index]);}}if(_mN2.PSEmitters!==undefined){_0O2(_mN2);}if(_mN2.ParticleSystems!==undefined){for(index=0;index<_mN2.ParticleSystems.length;index++){_0K._1O2(_mN2.ParticleSystems[index]);}}if(_mN2.FiltersAndEffectDefs!==undefined){for(index=0;index<_mN2.FiltersAndEffectDefs.length;index++){var _3D1=_mN2.FiltersAndEffectDefs[index];_fX._2O2(_3D1.name,_3D1.json);}}if(Tags!==undefined&&IDToTagList!==undefined){ _Wk1._kk1(Tags,IDToTagList);}if(_mN2.TextureGroupInfo!==undefined){for(index=0;index<_mN2.TextureGroupInfo.length;index++){var _sh1=_mN2.TextureGroupInfo[index];var _3O2=new _4O2();if(_sh1.pName!==undefined)_3O2.pName=_sh1.pName;if(_sh1.TextureIDs!==undefined){for(var i=0;i<_sh1.TextureIDs.length;i++){_3O2._X42[i]=_xN2[_sh1.TextureIDs[i]];}}if(_sh1.SpriteIDs!==undefined){for(var i=0;i<_sh1.SpriteIDs.length;i++){_3O2.sprites[i]=_sh1.SpriteIDs[i];}}if(_sh1.SpineSpriteIDs!==undefined){for(var i=0;i<_sh1.SpineSpriteIDs.length; i++){_3O2._5O2[i]=_sh1.SpineSpriteIDs[i];}}if(_sh1.FontIDs!==undefined){for(var i=0;i<_sh1.FontIDs.length;i++){_3O2._6O2[i]=_sh1.FontIDs[i];}}if(_sh1.TilesetIDs!==undefined){for(var i=0;i<_sh1.TilesetIDs.length;i++){_3O2._7O2[i]=_sh1.TilesetIDs[i];}}_bL2._8O2(_3O2);}}highscore_clear();_MH();if(typeof gmlConst=='function'){g_gmlConst=new gmlConst();}if(typeof gmlInitGlobal=='function'){gmlInitGlobal();}if(_mN2.Extensions!==undefined){for(i=0;i<_mN2.Extensions.length;i++){var _nN2=_mN2.Extensions[i];if(_nN2.init!=undefined){ try{var pFunc=eval(_nN2.init);if(pFunc)pFunc();}catch(_bk){_H4("Error calling extension initialisation function: "+_nN2.init+" exception: "+_bk.toString());}}else if(_nN2.initfuncs!=undefined){for(var __5=0;__5<_nN2.initfuncs.length;__5++){try{var pFunc=eval(_nN2.initfuncs[__5]);if(pFunc)pFunc();}catch(_bk){_H4("Error calling extension initialisation function: "+_nN2.initfuncs[__5]+" exceptio: "+_bk.toString());}}}}}}function _kM2(){try{if(('localStorage' in window)&&(window['localStorage']!==null)){_gG=true; }}catch(e){_gG=false;}return _gG;}function _ON2(){var _9O2="";if(_rE.Options.DisplayName!==null&&_rE.Options.DisplayName!==undefined){for(var i=0;i<_rE.Options.DisplayName.length;i++){var chr=_rE.Options.DisplayName[i];if((chr>='a'&&chr<='z')||(chr>='A'&&chr<='Z')||(chr>='0'&&chr<='9')||(chr==='_')){_9O2=_9O2+_rE.Options.DisplayName[i];}}}if(_9O2.length===0){_9O2="GameMaker";}return _9O2+"."+g_pBuiltIn.game_id+".";}function _hG(_Zq){return(g_pBuiltIn._PN2+_Zq);}var _5B=0;var _9B=1;var _dB=2;var _MB=3;var _6B=4; var _0A=5;var _eB=6;var _NB=7;var _7B=8;var _aB=9;var _fB=10;var _OB=11;var _8B=12;var _bB=13;var _gB=14;var _PB=15;var _aO2=0;var _bO2=1;var _cO2=2;var _dO2=3;var _eO2=4;var _fO2=5;var _gO2=6;var _hO2=7;var _iO2=8;var _jO2=9;var _kO2=10;var _lO2=11;var _mO2=12;var _nO2=13;var _oO2=14;var _pO2=15;/*@constructor * @param {Object=} _matrix Some value (optional). */function _zz(_Lw){this._v6=new Float32Array(16);if(arguments.length>0){var _qO2=_Lw._v6||_Lw;for(var i=0;i<16;i++){this._v6[i]=_qO2[i];}}else {this._uB();}}_zz.prototype.identity=function(__4){ this._v6[1]=this._v6[2]=this._v6[3]=this._v6[4]=this._v6[6]=this._v6[7]=this._v6[8]=this._v6[9]=this._v6[11]=this._v6[12]=this._v6[13]=this._v6[14]=0.0;this._v6[0]=this._v6[5]=this._v6[10]=this._v6[15]=1.0;};_zz.prototype._uB=function(__4){this._v6[1]=this._v6[2]=this._v6[3]=this._v6[4]=this._v6[6]=this._v6[7]=this._v6[8]=this._v6[9]=this._v6[11]=this._v6[12]=this._v6[13]=this._v6[14]=0.0;this._v6[0]=this._v6[5]=this._v6[10]=this._v6[15]=1.0;};_zz.prototype._nj=function(_rO2){for(var i=0;i<16;i++){ this._v6[i]=_rO2._v6[i];}};_zz.prototype._Wz=function(_sO2,_tO2,_uO2){var _vO2=new _Tz(_uO2);var _wO2=new _Tz();var _xO2=_tO2._2N(_sO2);_xO2._mA();_vO2._mA();_wO2._yO2(_vO2,_xO2);_wO2._mA();_vO2._yO2(_xO2,_wO2);_vO2._mA();var _pA=_sO2._zO2(_wO2);var _qA=_sO2._zO2(_vO2);var _rA=_sO2._zO2(_xO2);this._v6[_5B]=_wO2._pA;this._v6[_9B]=_vO2._pA;this._v6[_dB]=_xO2._pA;this._v6[_MB]=0.0;this._v6[_6B]=_wO2._qA;this._v6[_0A]=_vO2._qA;this._v6[_eB]=_xO2._qA;this._v6[_NB]=0.0;this._v6[_7B]=_wO2._rA;this._v6[_aB]=_vO2._rA; this._v6[_fB]=_xO2._rA;this._v6[_OB]=0.0;this._v6[_8B]=-_pA;this._v6[_bB]=-_qA;this._v6[_gB]=-_rA;this._v6[_PB]=1;};_zz.prototype.__z=function(_AO2,_BO2,_CO2,_DO2){if((_AO2==0.0)||(_BO2==0.0)||(_CO2==_DO2)){this._uB();return;}var _h4=_lM2(_AO2);var _EO2=1.0/Math.tan(_h4*0.5);var _SJ1=_EO2/_BO2;this._v6[_5B]=_SJ1;this._v6[_9B]=this._v6[_dB]=this._v6[_MB]=0.0;this._v6[_0A]=_EO2;this._v6[_6B]=this._v6[_eB]=this._v6[_NB]=0.0;this._v6[_7B]=this._v6[_aB]=0.0;this._v6[_OB]=1.0;this._v6[_fB]=_DO2/(_DO2-_CO2); this._v6[_8B]=this._v6[_bB]=this._v6[_PB]=0.0;this._v6[_gB]=-_CO2*_DO2/(_DO2-_CO2);};_zz.prototype._5A=function(_kj,_lj,_CO2,_DO2){if((_kj==0.0)||(_lj==0.0)||(_CO2==_DO2)){this._uB();return;}this._v6[_5B]=2*_CO2/_kj;this._v6[_9B]=this._v6[_dB]=this._v6[_MB]=0.0;this._v6[_0A]=2*_CO2/_lj;this._v6[_6B]=this._v6[_eB]=this._v6[_NB]=0.0;this._v6[_7B]=this._v6[_aB]=0.0;this._v6[_OB]=1.0;this._v6[_fB]=_DO2/(_DO2-_CO2);this._v6[_8B]=this._v6[_bB]=this._v6[_PB]=0.0;this._v6[_gB]=-_CO2*_DO2/(_DO2-_CO2);};_zz.prototype._4A=function(_kj, _lj,_CO2,_DO2){if((_kj==0.0)||(_lj==0.0)||(_CO2==_DO2)){this._uB();return;}this._v6[_5B]=2.0/_kj;this._v6[_9B]=this._v6[_dB]=0.0;this._v6[_MB]=0;this._v6[_0A]=2.0/_lj;this._v6[_6B]=this._v6[_eB]=0.0;this._v6[_NB]=0;this._v6[_7B]=this._v6[_aB]=0.0;this._v6[_fB]=1.0/(_DO2-_CO2);this._v6[_OB]=0;this._v6[_8B]=this._v6[_bB]=0.0;this._v6[_gB]=_CO2/(_CO2-_DO2);this._v6[_PB]=1.0;};_zz.prototype.Multiply=function(_FO2,_GO2){this._v6[_5B]=(_FO2._v6[_5B]*_GO2._v6[_5B])+(_FO2._v6[_9B]*_GO2._v6[_6B])+(_FO2._v6[_dB]*_GO2._v6[_7B])+(_FO2._v6[_MB]*_GO2._v6[_8B]); this._v6[_9B]=(_FO2._v6[_5B]*_GO2._v6[_9B])+(_FO2._v6[_9B]*_GO2._v6[_0A])+(_FO2._v6[_dB]*_GO2._v6[_aB])+(_FO2._v6[_MB]*_GO2._v6[_bB]);this._v6[_dB]=(_FO2._v6[_5B]*_GO2._v6[_dB])+(_FO2._v6[_9B]*_GO2._v6[_eB])+(_FO2._v6[_dB]*_GO2._v6[_fB])+(_FO2._v6[_MB]*_GO2._v6[_gB]);this._v6[_MB]=(_FO2._v6[_5B]*_GO2._v6[_MB])+(_FO2._v6[_9B]*_GO2._v6[_NB])+(_FO2._v6[_dB]*_GO2._v6[_OB])+(_FO2._v6[_MB]*_GO2._v6[_PB]);this._v6[_6B]=(_FO2._v6[_6B]*_GO2._v6[_5B])+(_FO2._v6[_0A]*_GO2._v6[_6B])+(_FO2._v6[_eB]*_GO2._v6[_7B])+(_FO2._v6[_NB]*_GO2._v6[_8B]); this._v6[_0A]=(_FO2._v6[_6B]*_GO2._v6[_9B])+(_FO2._v6[_0A]*_GO2._v6[_0A])+(_FO2._v6[_eB]*_GO2._v6[_aB])+(_FO2._v6[_NB]*_GO2._v6[_bB]);this._v6[_eB]=(_FO2._v6[_6B]*_GO2._v6[_dB])+(_FO2._v6[_0A]*_GO2._v6[_eB])+(_FO2._v6[_eB]*_GO2._v6[_fB])+(_FO2._v6[_NB]*_GO2._v6[_gB]);this._v6[_NB]=(_FO2._v6[_6B]*_GO2._v6[_MB])+(_FO2._v6[_0A]*_GO2._v6[_NB])+(_FO2._v6[_eB]*_GO2._v6[_OB])+(_FO2._v6[_NB]*_GO2._v6[_PB]);this._v6[_7B]=(_FO2._v6[_7B]*_GO2._v6[_5B])+(_FO2._v6[_aB]*_GO2._v6[_6B])+(_FO2._v6[_fB]*_GO2._v6[_7B])+(_FO2._v6[_OB]*_GO2._v6[_8B]); this._v6[_aB]=(_FO2._v6[_7B]*_GO2._v6[_9B])+(_FO2._v6[_aB]*_GO2._v6[_0A])+(_FO2._v6[_fB]*_GO2._v6[_aB])+(_FO2._v6[_OB]*_GO2._v6[_bB]);this._v6[_fB]=(_FO2._v6[_7B]*_GO2._v6[_dB])+(_FO2._v6[_aB]*_GO2._v6[_eB])+(_FO2._v6[_fB]*_GO2._v6[_fB])+(_FO2._v6[_OB]*_GO2._v6[_gB]);this._v6[_OB]=(_FO2._v6[_7B]*_GO2._v6[_MB])+(_FO2._v6[_aB]*_GO2._v6[_NB])+(_FO2._v6[_fB]*_GO2._v6[_OB])+(_FO2._v6[_OB]*_GO2._v6[_PB]);this._v6[_8B]=(_FO2._v6[_8B]*_GO2._v6[_5B])+(_FO2._v6[_bB]*_GO2._v6[_6B])+(_FO2._v6[_gB]*_GO2._v6[_7B])+(_FO2._v6[_PB]*_GO2._v6[_8B]); this._v6[_bB]=(_FO2._v6[_8B]*_GO2._v6[_9B])+(_FO2._v6[_bB]*_GO2._v6[_0A])+(_FO2._v6[_gB]*_GO2._v6[_aB])+(_FO2._v6[_PB]*_GO2._v6[_bB]);this._v6[_gB]=(_FO2._v6[_8B]*_GO2._v6[_dB])+(_FO2._v6[_bB]*_GO2._v6[_eB])+(_FO2._v6[_gB]*_GO2._v6[_fB])+(_FO2._v6[_PB]*_GO2._v6[_gB]);this._v6[_PB]=(_FO2._v6[_8B]*_GO2._v6[_MB])+(_FO2._v6[_bB]*_GO2._v6[_NB])+(_FO2._v6[_gB]*_GO2._v6[_OB])+(_FO2._v6[_PB]*_GO2._v6[_PB]);};_zz.prototype.__A=function(_u5){this._uB();var _h4=_lM2(_u5);var _ni=Math.sin(_h4);var c=Math.cos(_h4); this._v6[_5B]=c;this._v6[_9B]=-_ni;this._v6[_6B]=_ni;this._v6[_0A]=c;};_zz.prototype._ZA=function(_u5){this._uB();var _h4=_lM2(_u5);var _ni=Math.sin(_h4);var c=Math.cos(_h4);this._v6[_5B]=c;this._v6[_dB]=_ni;this._v6[_7B]=-_ni;this._v6[_fB]=c;};_zz.prototype._YA=function(_u5){this._uB();var _h4=_lM2(_u5);var _ni=Math.sin(_h4);var c=Math.cos(_h4);this._v6[_0A]=c;this._v6[_eB]=-_ni;this._v6[_aB]=_ni;this._v6[_fB]=c;};_zz.prototype._WA=function(_q5,_r5,_1d){this._uB();this._v6[_8B]=_q5;this._v6[_bB]=_r5; this._v6[_gB]=_1d;};_zz.prototype._HO2=function(_q5,_r5,_1d){this._v6[_8B]+=_q5;this._v6[_bB]+=_r5;this._v6[_gB]+=_1d;};_zz.prototype._XA=function(_w4,_x4,_IO2){this._uB();this._v6[_5B]=_w4;this._v6[_0A]=_x4;this._v6[_fB]=_IO2;};_zz.prototype._JO2=function(){var scaleX=Math.sqrt((this._v6[_5B]*this._v6[_5B])+(this._v6[_6B]*this._v6[_6B])+(this._v6[_7B]*this._v6[_7B]));var scaleY=Math.sqrt((this._v6[_9B]*this._v6[_9B])+(this._v6[_0A]*this._v6[_0A])+(this._v6[_aB]*this._v6[_aB]));var _KO2=Math.sqrt((this._v6[_dB]*this._v6[_dB])+(this._v6[_eB]*this._v6[_eB])+(this._v6[_fB]*this._v6[_fB])); return Math.max(scaleX,scaleY,_KO2);};_zz.prototype._0B=function(_Sc,_u5){_Sc._mA();var _h4=_lM2(_u5);var c=Math.cos(_h4);var _ni=Math.sin(_h4);var _LO2=1.0-c;this._uB();this._v6[0]=(_LO2*_Sc._pA*_Sc._pA+c);this._v6[1]=(_LO2*_Sc._pA*_Sc._qA+_ni*_Sc._rA);this._v6[2]=(_LO2*_Sc._pA*_Sc._rA-_ni*_Sc._qA);this._v6[4]=(_LO2*_Sc._pA*_Sc._qA-_ni*_Sc._rA);this._v6[5]=(_LO2*_Sc._qA*_Sc._qA+c);this._v6[6]=(_LO2*_Sc._qA*_Sc._rA+_ni*_Sc._pA);this._v6[8]=(_LO2*_Sc._pA*_Sc._rA+_ni*_Sc._qA);this._v6[9]=(_LO2*_Sc._qA*_Sc._rA-_ni*_Sc._pA); this._v6[10]=(_LO2*_Sc._rA*_Sc._rA+c);};_zz.prototype._MO2=function(_q5,_r5,_w4,_x4,_y4){this._uB();var _h4=_lM2(_y4);var _ni=Math.sin(_h4);var c=Math.cos(_h4);this._v6[_5B]=c;this._v6[_9B]=-_ni;this._v6[_6B]=_ni;this._v6[_0A]=c;this._v6[_5B]*=_w4;this._v6[_0A]*=_x4;this._v6[_8B]=_q5;this._v6[_bB]=_r5;};_zz.prototype._FB=function(_q5,_r5,_1d,_AB,_BB,_CB,_co,_do,_DB){var _NO2=Math.sin(_AB);var _OO2=Math.cos(_AB);var _PO2=Math.sin(_BB);var _QO2=Math.cos(_BB);var _RO2=Math.sin(_CB);var _SO2=Math.cos(_CB);var _TO2=-_RO2*-_NO2; var _UO2=_SO2*-_NO2;this._v6[0]=((_SO2*_QO2)+(_TO2*-_PO2))*_co;this._v6[4]=(-_RO2*_OO2)*_co;this._v6[8]=((_SO2*_PO2)+(_TO2*_QO2))*_co;this._v6[12]=_q5;this._v6[1]=((_RO2*_QO2)+(_UO2*-_PO2))*_do;this._v6[5]=(_SO2*_OO2)*_do;this._v6[9]=((_RO2*_PO2)+(_UO2*_QO2))*_do;this._v6[13]=_r5;this._v6[2]=(_OO2*-_PO2)*_DB;this._v6[6]=_NO2*_DB;this._v6[10]=(_OO2*_QO2)*_DB;this._v6[14]=_1d;this._v6[3]=this._v6[7]=this._v6[11]=0.0;this._v6[15]=1.0;};_zz.prototype._UM=function(_VO2){var _WO2=_VO2._v6[_aO2]*_VO2._v6[_fO2]-_VO2._v6[_eO2]*_VO2._v6[_bO2]; var _IB=_VO2._v6[_aO2]*_VO2._v6[_gO2]-_VO2._v6[_eO2]*_VO2._v6[_cO2];var _JB=_VO2._v6[_aO2]*_VO2._v6[_hO2]-_VO2._v6[_eO2]*_VO2._v6[_dO2];var _KB=_VO2._v6[_bO2]*_VO2._v6[_gO2]-_VO2._v6[_fO2]*_VO2._v6[_cO2];var _XO2=_VO2._v6[_bO2]*_VO2._v6[_hO2]-_VO2._v6[_fO2]*_VO2._v6[_dO2];var _YO2=_VO2._v6[_cO2]*_VO2._v6[_hO2]-_VO2._v6[_gO2]*_VO2._v6[_dO2];var _ZO2=_VO2._v6[_kO2]*_VO2._v6[_pO2]-_VO2._v6[_oO2]*_VO2._v6[_lO2];var __O2=_VO2._v6[_jO2]*_VO2._v6[_pO2]-_VO2._v6[_nO2]*_VO2._v6[_lO2];var _Nr1=_VO2._v6[_jO2]*_VO2._v6[_oO2]-_VO2._v6[_nO2]*_VO2._v6[_kO2]; var _7h=_VO2._v6[_iO2]*_VO2._v6[_pO2]-_VO2._v6[_mO2]*_VO2._v6[_lO2];var _6h=_VO2._v6[_iO2]*_VO2._v6[_oO2]-_VO2._v6[_mO2]*_VO2._v6[_kO2];var _6s1=_VO2._v6[_iO2]*_VO2._v6[_nO2]-_VO2._v6[_mO2]*_VO2._v6[_jO2];var _Gr1=(_WO2*_ZO2-_IB*__O2+_JB*_Nr1+_KB*_7h-_XO2*_6h+_YO2*_6s1);if(_Gr1!=0){var _0P2=1.0/_Gr1;var _g4=new Float32Array(16);_g4[_aO2]=(_VO2._v6[_fO2]*_ZO2-_VO2._v6[_gO2]*__O2+_VO2._v6[_hO2]*_Nr1)*_0P2;_g4[_bO2]=(-_VO2._v6[_bO2]*_ZO2+_VO2._v6[_cO2]*__O2-_VO2._v6[_dO2]*_Nr1)*_0P2;_g4[_cO2]=(_VO2._v6[_nO2]*_YO2-_VO2._v6[_oO2]*_XO2+_VO2._v6[_pO2]*_KB)*_0P2; _g4[_dO2]=(-_VO2._v6[_jO2]*_YO2+_VO2._v6[_kO2]*_XO2-_VO2._v6[_lO2]*_KB)*_0P2;_g4[_eO2]=(-_VO2._v6[_eO2]*_ZO2+_VO2._v6[_gO2]*_7h-_VO2._v6[_hO2]*_6h)*_0P2;_g4[_fO2]=(_VO2._v6[_aO2]*_ZO2-_VO2._v6[_cO2]*_7h+_VO2._v6[_dO2]*_6h)*_0P2;_g4[_gO2]=(-_VO2._v6[_mO2]*_YO2+_VO2._v6[_oO2]*_JB-_VO2._v6[_pO2]*_IB)*_0P2;_g4[_hO2]=(_VO2._v6[_iO2]*_YO2-_VO2._v6[_kO2]*_JB+_VO2._v6[_lO2]*_IB)*_0P2;_g4[_iO2]=(_VO2._v6[_eO2]*__O2-_VO2._v6[_fO2]*_7h+_VO2._v6[_hO2]*_6s1)*_0P2;_g4[_jO2]=(-_VO2._v6[_aO2]*__O2+_VO2._v6[_bO2]*_7h-_VO2._v6[_dO2]*_6s1)*_0P2; _g4[_kO2]=(_VO2._v6[_mO2]*_XO2-_VO2._v6[_nO2]*_JB+_VO2._v6[_pO2]*_WO2)*_0P2;_g4[_lO2]=(-_VO2._v6[_iO2]*_XO2+_VO2._v6[_jO2]*_JB-_VO2._v6[_lO2]*_WO2)*_0P2;_g4[_mO2]=(-_VO2._v6[_eO2]*_Nr1+_VO2._v6[_fO2]*_6h-_VO2._v6[_gO2]*_6s1)*_0P2;_g4[_nO2]=(_VO2._v6[_aO2]*_Nr1-_VO2._v6[_bO2]*_6h+_VO2._v6[_cO2]*_6s1)*_0P2;_g4[_oO2]=(-_VO2._v6[_mO2]*_KB+_VO2._v6[_nO2]*_IB-_VO2._v6[_oO2]*_WO2)*_0P2;_g4[_pO2]=(_VO2._v6[_iO2]*_KB-_VO2._v6[_jO2]*_IB+_VO2._v6[_kO2]*_WO2)*_0P2;this._v6=_g4;}};_zz.prototype._0N=function(_1P2){ var _2P2=new _Tz(0.0,0.0,0.0);if(_1P2!=undefined){_2P2._pA=(this._v6[_5B]*_1P2._pA)+(this._v6[_6B]*_1P2._qA)+(this._v6[_7B]*_1P2._rA)+this._v6[_8B];_2P2._qA=(this._v6[_9B]*_1P2._pA)+(this._v6[_0A]*_1P2._qA)+(this._v6[_aB]*_1P2._rA)+this._v6[_bB];_2P2._rA=(this._v6[_dB]*_1P2._pA)+(this._v6[_eB]*_1P2._qA)+(this._v6[_fB]*_1P2._rA)+this._v6[_gB];}return _2P2;};function _3F2(){this.Normal=new _Tz(0.0,0.0,1.0);this._Q92=0.0;}_3F2.prototype._mA=function(){var length=this.Normal.Length();this.Normal._pA/=length; this.Normal._qA/=length;this.Normal._rA/=length;this._Q92/=length;};/*@constructor */function _hs(){this.x=0;this.y=0;this.w=0;this.h=0;this.XOffset=0;this.YOffset=0;this.CropWidth=0;this.CropHeight=0;this.ow=0;this.oh=0;this.tp=0;this._xs=_WN2;}function _3h1(){}/*@constructor */function _WN2(_Vg1){this.x=_Vg1.x;this.y=_Vg1.y;this.w=_Vg1.w;this.h=_Vg1.h;this.XOffset=_Vg1.XOffset;this.YOffset=_Vg1.YOffset;this.CropWidth=_Vg1.CropWidth;this.CropHeight=_Vg1.CropHeight;this.ow=_Vg1.ow;this.oh=_Vg1.oh;this.tp=_Vg1.tp; }/*@constructor */function _3P2(){this.pName="";this.width=0;this.height=0;this.bboxLeft=0;this.bboxRight=0;this.bboxBottom=0;this.bboxTop=0;this.transparent=0;this.smooth=0;this.preload=0;this.bboxMode=0;this.colCheck=0;this.xOrigin=0;this.yOrigin=0;this._4P2=[];}/*@constructor */function _5P2(){this.pName="";this.spriteIndex=0;this.visible=true;this.solid=true;this.depth=0;this.persistent=false;this.parent=-1;this.spritemask=false;}/*@constructor */function _6P2(){this.x=0;this.y=0;this.index=0; this.id=0;this.pCode=null;}/*@constructor */function _7P2(){this.x=0;this.y=0;this.index=0;this.xo=0;this.yo=0;this.w=0;this.h=0;this.depth=0;this.id=0;this.scaleX=1.0;this.scaleY=1.0;this.colour=-1;}/*@constructor */function _8P2(){this.visible=false;this.xview=0;this.yview=0;this.wview=0;this.hview=0;this.xport=0;this.yport=0;this.wport=0;this.hport=0;this.hborder=0;this.vborder=0;this.hspeed=0;this.vspeed=0;this.index=0;}/*@constructor */function _9P2(){this.visible=false;this.foreground=0;this.index=0; this.x=0;this.y=0;this._aP2=0;this._bP2=0;this._cP2=0;this._dP2=0;this.stretch=0;}/*@constructor */function _eP2(){this.pName="";this.pCaption="Game Maker Room";this.width=640;this.height=480;this.speed=30;this.persistent=false;this.colour=0;this.showColour=false;this.pCode=null;this.enableViews=false;this.pInstances=[];this._fP2=[];this._5g=[];this._gP2=[];}/*@constructor */function _hP2(){this.GMObjects=[];this.GMRooms=[];this.Textures=[];this.Sprites=[];}function _iP2(){_Ib("execute_string()"); }function _jP2(){_Ib("execute_file()");}function _kP2(){_Ib("show_info()");}function _lP2(_Mv){_Ib("load_info()");}function _mP2(_k9){_Ib("script_get_text()");}function game_save(name){_Ib("game_save()");}function game_load(name){_Ib("game_load()");}function game_save_buffer(buffer){_Ib("game_save_buffer()");}function game_load_buffer(buffer){_Ib("game_load_buffer()");}function _nP2(_Mv,loop){_Ib("splash_show_video()");}function _oP2(_Mv,_XU1){_Ib("splash_show_text()");}function _pP2(_Mv,_XU1){_Ib("splash_show_image()"); }function _qP2(_Dh,_XU1){_Ib("splash_show_web()");}function _rP2(_sP2){_Ib("splash_set_main()");}function _tP2(scale){_Ib("splash_set_scale()");}function _uP2(_vP2){_Ib("splash_set_cursor()");}function _wP2(_m4){_Ib("splash_set_color()");}var _xP2=_wP2;function _yP2(_zP2){_Ib("splash_set_caption()");}function _AP2(_BP2){_Ib("splash_set_fullscreen()");}function _CP2(border){_Ib("splash_set_border()");}function _DP2(w,h){_Ib("splash_set_size()");}function _EP2(x,y){_Ib("splash_set_position()");}function _FP2(_GP2){ _Ib("splash_set_adapt()");}function _HP2(top){_Ib("splash_set_top()");}function _IP2(interrupt){_Ib("splash_set_interrupt()");}function _JP2(stop){_Ib("splash_set_stop_key()");}function _KP2(stop){_Ib("splash_set_stop_mouse()");}function _LP2(_MP2){_Ib("splash_set_close_button()");}function os_set_orientation_lock(){_Ib("os_set_orientation_lock()");}function _NP2(){_Ib("screen_redraw()");}function _OP2(){_Ib("screen_refresh()");}function _PP2(value){_Ib("set_automatic_draw()");}function _QP2(value){_Ib("set_synchronization()"); }function _RP2(){_Ib("screen_wait_vsync()");}function _SP2(w,h,_TP2){_Ib("window_set_region_size()");}function _UP2(){_Ib("window_get_region_width()");}function _VP2(){_Ib("window_get_region_height()");}function screen_save(_Mv){_LE("screen_save()");}function screen_save_part(_Mv,x,y,w,h){_LE("screen_save_part()");}function _WP2(kind,name){_LE("transition_define()");}function _XP2(kind){_LE("transition_exists()");}function _YP2(){_Ib("display_get_colordepth()");}function display_get_frequency(){_Ib("display_get_frequency()"); }function _ZP2(w,h){_Ib("display_set_size()");}function __P2(_0Q2){_Ib("display_set_colordepth()");}function _1Q2(_DU1){_Ib("display_set_frequency()");}function _2Q2(w,h,_DU1,_0Q2){_Ib("display_set_all()");}function _3Q2(w,h,_DU1,_0Q2){_Ib("display_test_all()");}function display_reset(_4Q2){_Ib("display_reset()");}function display_mouse_set(x,y){_Ib("display_mouse_set()");}var _5Q2=[];var _6Q2=false;var _7Q2=false;function _8Q2(){if(!_6Q2&&navigator.clipboard){if(!_7Q2){_7Q2=true;navigator.permissions.query({ "name":'clipboard-read',"allowWithoutGesture":true}).then(function(result){if((result.state=='granted')||(result.state=='prompt')){_6Q2=true;_7Q2=false;for(var _t6=0;_t6<_5Q2.length;++_t6){navigator.clipboard.writeText(_5Q2[_t6]);}_5Q2=[];navigator.clipboard.readText().then(_9Q2=>{if(_9Q2!="")_5Q2.push(_9Q2);}).catch(()=>{});}});}}}function clipboard_has_text(){if(!_6Q2){_8Q2();return false;}navigator.clipboard.readText().then(_9Q2=>{if(_9Q2!="")_5Q2.push(_9Q2);}).catch(()=>{});return _5Q2.length>0; }function clipboard_get_text(){var _q4="";if(!_6Q2){_8Q2();}else if(_5Q2.length>0){_q4=_5Q2.pop();}return _q4;}function clipboard_set_text(_Tl){var _aQ2=yyGetString(_Tl);if(!_6Q2){_8Q2();_5Q2.push(_aQ2);}else {if(navigator.clipboard)navigator.clipboard.writeText(_aQ2);}}function _bQ2(priority){_LE("set_program_priority()");}function _cQ2(id){return false;}function _dQ2(id){_Ib("joystick_name()");}function _eQ2(id){_Ib("joystick_axes()");}function _fQ2(id){_Ib("joystick_buttons()");}function _gQ2(id){_Ib("joystick_has_pov()"); }function _hQ2(id){_Ib("joystick_direction()");}function _iQ2(id,_E6){_Ib("joystick_check_button()");}function _jQ2(id){_Ib("joystick_xpos()");}function _kQ2(id){_Ib("joystick_ypos()");}function _lQ2(id){_Ib("joystick_zpos()");}function _mQ2(id){_Ib("joystick_rpos()");}function _nQ2(id){_Ib("joystick_upos()");}function _oQ2(id){_Ib("joystick_vpos()");}function _pQ2(id){_Ib("joystick_pov()");}function _qQ2(){_Ib("io_handle()");}function _rQ2(){_Ib("mouse_wait()");}function _sQ2(){_Ib("keyboard_wait()");}function keyboard_get_numlock(){ _Ib("keyboard_get_numlock()");}function keyboard_set_numlock(on){_Ib("keyboard_set_numlock()");}function _tQ2(_k9,_Mv){_Ib("background_save()");}function sprite_save_strip(_k9,_Mv){_Ib("sprite_save_strip()");}function _uQ2(){_Ib("object_add()");}function _vQ2(_k9){_Ib("object_delete()");}function _wQ2(_k9,_xQ2,_yQ2,_zQ2){_Ib("object_event_add()");}function _AQ2(_k9,_xQ2,_yQ2){_Ib("object_event_clear()");}function _BQ2(_q11){_Ib("part_changer_create()");}function _CQ2(_q11,_t4){_Ib("part_changer_destroy()"); }function _DQ2(_q11){_Ib("part_changer_destroy_all()");}function _EQ2(_q11,_t4){_Ib("part_changer_exists()");}function _FQ2(_q11,_t4){_Ib("part_changer_clear()");}function _GQ2(_q11,_t4,_Qp,_Rp,_Sp,_Tp,_Zo){_Ib("part_changer_region()");}function _HQ2(_q11,_t4,_IQ2,_JQ2){_Ib("part_changer_types()");}function _KQ2(_q11,_t4,_Gc){_Ib("part_changer_kind()");}function _LQ2(_Nq){_Ib("part_deflector_create()");}function _MQ2(_Nq,_k9){_Ib("part_deflector_destroy()");}function _NQ2(_Nq){_Ib("part_deflector_destroy_all()"); }function _OQ2(_Nq,_k9){_Ib("part_deflector_exists()");}function _PQ2(_Nq,_k9){_Ib("part_deflector_clear()");}function _QQ2(_Nq,_k9,_RZ,_SZ,_TZ,_UZ){_Ib("part_deflector_region()");}function _RQ2(_Nq,_k9,kind){_Ib("part_deflector_kind()");}function _SQ2(_Nq,_k9,friction){_Ib("part_deflector_friction()");}function _TQ2(_Nq){_Ib("part_destroyer_create()");}function _UQ2(_Nq,_k9){_Ib("part_destroyer_destroy()");}function _VQ2(_Nq){_Ib("part_destroyer_destroy_all()");}function _WQ2(_Nq,_k9){_Ib("part_destroyer_exists()"); }function _XQ2(_Nq,_k9){_Ib("part_destroyer_clear()");}function _YQ2(_Nq,_k9,_RZ,_SZ,_TZ,_UZ,shape){_Ib("part_destroyer_region()");}function _ZQ2(_Nq){_Ib("part_attractor_create()");}function __Q2(_Nq,_k9){_Ib("part_attractor_destroy()");}function _0R2(_Nq){_Ib("part_attractor_destroy_all()");}function _1R2(_Nq,_k9){_Ib("part_attractor_exists()");}function _2R2(_Nq,_k9){_Ib("part_attractor_clear()");}function _3R2(_Nq,_k9,x,y){_Ib("part_attractor_position()");}function _4R2(_Nq,_k9,_vD1,_9u,kind,_5R2){_Ib("part_attractor_force()"); }function _6R2(_NY1,_x11,_7R2){_Ib("execute_program()");}function _8R2(_NY1,_x11){_Ib("execute_shell()");}var _9R2=true;function _aR2(name,_Tl){_Ib("registry_write_string()");}function _bR2(name,x){_Ib("registry_write_real()");}function _cR2(name){_Ib("registry_read_string()");}function _dR2(name){_Ib("registry_read_real()");}function _eR2(name){_Ib("registry_exists()");}function _fR2(key,name,_Tl){_Ib("registry_write_string_ext()");}function _gR2(key,name,x){_Ib("registry_write_real_ext()");}function _hR2(key, name){_Ib("registry_read_string_ext()");}function _iR2(key,name){_Ib("registry_read_real_ext()");}function _jR2(key,name){_Ib("registry_exists_ext()");}function _kR2(_w5){_Ib("registry_set_root()");}function _lR2(_N3,_ad,_Ms,_qn1){_Ib("message_text_font()");}function _mR2(_C5){_Ib("message_button()");}function _nR2(_N3,_ad,_Ms,_qn1){_Ib("message_button_font()");}function _oR2(_N3,_ad,_Ms,_qn1){_Ib("message_input_font()");}function _pR2(){_Ib("message_text_charset()");}function _qR2(_m4){_Ib("message_mouse_color()"); }function _rR2(_m4){_Ib("message_input_color()");}function _sR2(_MP2,_Tl){_Ib("message_caption()");}function _tR2(x,y){_Ib("message_position()");}function _uR2(w,h){_Ib("message_size()");}function _vR2(_Tl,_3D1){_Ib("show_menu()");}function _wR2(x,y,_Tl,_3D1){_Ib("show_menu_pos()");}function _xR2(_yR2){_Ib("get_color()");}function get_open_filename(filter,_Mv){_Ib("get_open_filename()");}function get_save_filename(filter,_Mv){_Ib("get_save_filename()");}function get_open_filename_ext(filter,_Mv,_5_,title){ _Ib("get_open_filename_ext()");}function get_save_filename_ext(filter,_Mv,_5_,title){_Ib("get_save_filename_ext()");}function _zR2(_AR2){_Ib("get_directory()");}function _BR2(_CR2,_w5){_Ib("get_directory_alt()");}function _DR2(_kn,x,y,z){_Ib("sound_3d_set_sound_position()");}function _ER2(_kn,x,y,z){_Ib("sound_3d_set_sound_velocity()");}function _FR2(_kn,_GR2,_HR2){_Ib("sound_3d_set_sound_distance()");}function _IR2(_kn,x,y,z,_JR2,_KR2,_LR2){_Ib("sound_3d_set_sound_cone()");}function _MR2(factor){_Ib("sound_background_tempo()"); }function _NR2(index,value){_Ib("sound_pan()");}function _OR2(_5_){_Ib("sound_set_search_directory()");}function _PR2(_kn,_xX){_Ib("sound_effect_set()");}function _QR2(_kn,_RR2,depth,feedback,_DU1,_SR2,_XU1,_TR2){_Ib("sound_effect_chorus()");}function _UR2(_kn,_RR2,feedback,_VR2,_WR2,_XR2){_Ib("sound_effect_echo()");}function _YR2(_kn,_RR2,depth,feedback,_DU1,_SR2,_XU1,_TR2){_Ib("sound_effect_flanger()");}function _ZR2(_kn,rate,_SR2){_Ib("sound_effect_gargle()");}function __R2(_kn,gain,mix,time,ratio){_Ib("sound_effect_reverb()"); }function _0S2(_kn,gain,attack,release,threshold,ratio,_XU1){_Ib("sound_effect_compressor()");}function _1S2(_kn,_1t1,_2S2,gain){_Ib("sound_effect_equalizer()");}function _3S2(index){_Ib("sound_discard()");}function _4S2(index){_Ib("sound_restore()");}function _5S2(index){_Ib("sound_get_preload()");}function _6S2(){_Ib("cd_init()");}function _7S2(){_Ib("cd_present()");}function _8S2(){_Ib("cd_number()");}function _9S2(){_Ib("cd_playing()");}function _aS2(){_Ib("cd_paused()");}function _bS2(){_Ib("cd_track()"); }function _cS2(){_Ib("cd_length()");}function _dS2(_t6){_Ib("cd_track_length()");}function _eS2(){_Ib("cd_position()");}function _fS2(){_Ib("cd_track_position()");}function _gS2(first,last){_Ib("cd_play()");}function _hS2(){_Ib("cd_stop()");}function _iS2(){_Ib("cd_pause()");}function _jS2(){_Ib("cd_resume()");}function _kS2(_Wk){_Ib("cd_set_position()");}function _lS2(_Wk){_Ib("cd_set_track_position()");}function _mS2(){_Ib("cd_open_door()");}function _nS2(){_Ib("cd_close_door()");}function _oS2(_Tl){_Ib("MCI_command()"); }function _pS2(_Jb){_Ib("texture_preload()");}function _qS2(_Jb,_rS2){_Ib("texture_set_priority()");}function texture_get_width(_Jb){_Ib("texture_get_width()");}function texture_get_height(_Jb){_Ib("texture_get_height()");}function _sS2(_vR){_Ib("texture_set_blending()");}function _8A(repeat){_Ib("texture_set_repeat()");}function _7A(){_Ib("texture_get_repeat()");}function _tS2(repeat){_Ib("texture_set_repeat_ext()");}function _uS2(_EC,_9x){_Ib("texture_set_interpolation_ext()");}function texture_get_uvs(_o8){ _Ib("texture_get_uvs()");}function texture_global_scale(_vS2){_Ib("texture_global_scale()");}function _wS2(){_Ib("file_open_read()");}function _xS2(){_Ib("file_open_write()");}function _yS2(){_Ib("file_open_append()");}function _zS2(){_Ib("file_read_real()");}function _AS2(){_Ib("file_read_string()");}function _BS2(){_Ib("file_readln()");}function _CS2(){_Ib("file_write_real()");}function _DS2(){_Ib("file_write_string()");}function _ES2(){_Ib("file_writeln()");}function _FS2(){_Ib("file_eof()");}function _GS2(){ _Ib("file_eoln()");}function _HS2(){_Ib("file_close()");}function _IS2(){_Ib("steam_activate_overlay()");return -1;}function _JS2(){_Ib("steam_is_overlay_enabled()");return -1;}function _KS2(){_Ib("steam_is_overlay_activated()");return -1;}function _LS2(){_Ib("steam_get_persona_name()");return "";}function _MS2(){_Ib("steam_initialised()");return -1;}function _NS2(){_Ib("steam_is_cloud_enabled_for_app()");return -1;}function _OS2(){_Ib("steam_is_cloud_enabled_for_account()");return -1;}function _PS2(){_Ib("steam_file_persisted()"); return -1;}function _QS2(){_Ib("steam_get_quota_total()");return -1;}function _RS2(){_Ib("steam_get_quota_free()");return -1;}function _SS2(){_Ib("steam_file_write()");return -1;}function _TS2(){_Ib("steam_file_write_file()");return -1;}function _US2(){_Ib("steam_file_read()");return "";}function _VS2(){_Ib("steam_file_delete()");return -1;}function _WS2(){_Ib("steam_file_exists()");return -1;}function _XS2(){_Ib("steam_file_size()");return -1;}function _YS2(){_Ib("steam_file_share()");return -1;}function _ZS2(){_Ib("steam_publish_workshop_file()"); return -1;}function __S2(){_Ib("steam_is_screenshot_requested()");return -1;}function _0T2(){_Ib("steam_send_screenshot()");return -1;}function _1T2(){_Ib("steam_is_user_logged_on()");return -1;}function _2T2(){_Ib("steam_get_user_steam_id()");return -1;}function _3T2(){_Ib("steam_user_owns_dlc()");return -1;}function _4T2(){_Ib("steam_user_installed_dlc()");return -1;}function _5T2(){_Ib("steam_set_achievement()");return -1;}function _6T2(){_Ib("steam_get_achievement()");return -1;}function _7T2(){_Ib("steam_clear_achievement()"); return -1;}function _8T2(){_Ib("steam_set_stat_int()");return -1;}function _9T2(){_Ib("steam_set_stat_float()");return -1;}function _aT2(){_Ib("steam_set_stat_avg_rate()");return -1;}function _bT2(){_Ib("steam_get_stat_int()");return -1;}function _cT2(){_Ib("steam_get_stat_float()");return -1;}function _dT2(){_Ib("steam_get_stat_avg_rate()");return -1;}function _eT2(){_Ib("steam_reset_all_stats()");return -1;}function _fT2(){_Ib("steam_reset_all_stats_achievements()");return -1;}function _gT2(){_Ib("steam_stats_ready()"); return -1;}function _hT2(){_Ib("steam_create_leaderboard()");return -1;}function _iT2(){_Ib("steam_upload_score()");return -1;}function _jT2(){_Ib("steam_upload_score_ext()");return -1;}function _kT2(){_Ib("steam_download_scores_around_user()");return -1;}function _lT2(){_Ib("steam_download_scores()");return -1;}function _mT2(){_Ib("steam_download_friends_scores()");return -1;}function _nT2(){_Ib("steam_upload_score_buffer()");return -1;}function _oT2(){_Ib("steam_upload_score_buffer_ext()");return -1;}function _pT2(){ _Ib("steam_activate_overlay_browser()");return -1;}function _qT2(){_Ib("steam_activate_overlay_user()");return -1;}function _rT2(){_Ib("steam_activate_overlay_store()");return -1;}function _sT2(){_Ib("steam_get_user_persona_name()");return -1;}function _tT2(){_Ib("steam_get_app_id()");return -1;}function _uT2(){_Ib("steam_get_user_account_id()");return -1;}function _vT2(){_Ib("steam_ugc_download()");return -1;}function _wT2(){_Ib("steam_ugc_create_item()");return -1;}function _xT2(){_Ib("steam_ugc_start_item_update()"); return -1;}function _yT2(){_Ib("steam_ugc_set_item_title()");return -1;}function _zT2(){_Ib("steam_ugc_set_item_description()");return -1;}function _AT2(){_Ib("steam_ugc_set_item_visibility()");return -1;}function _BT2(){_Ib("steam_ugc_set_item_tags()");return -1;}function _CT2(){_Ib("steam_ugc_set_item_content()");return -1;}function _DT2(){_Ib("steam_ugc_set_item_preview()");return -1;}function _ET2(){_Ib("steam_ugc_submit_item_update()");return -1;}function _FT2(){_Ib("steam_ugc_get_item_update_progress()"); return -1;}function _GT2(){_Ib("steam_ugc_subscribe_item()");return -1;}function _HT2(){_Ib("steam_ugc_unsubscribe_item()");return -1;}function _IT2(){_Ib("steam_ugc_num_subscribed_items()");return -1;}function _JT2(){_Ib("steam_ugc_get_subscribed_items()");return -1;}function _KT2(){_Ib("steam_ugc_get_item_install_info()");return -1;}function _LT2(){_Ib("steam_ugc_get_item_update_info()");return -1;}function _MT2(){_Ib("steam_ugc_request_item_details()");return -1;}function _NT2(){_Ib("steam_ugc_create_query_user()"); return -1;}function _OT2(){_Ib("steam_ugc_create_query_user_ex()");return -1;}function _PT2(){_Ib("steam_ugc_create_query_all()");return -1;}function _QT2(){_Ib("steam_ugc_create_query_all_ex()");return -1;}function _RT2(){_Ib("steam_ugc_query_set_cloud_filename_filter()");return -1;}function _ST2(){_Ib("steam_ugc_query_set_match_any_tag()");return -1;}function _TT2(){_Ib("steam_ugc_query_set_search_text()");return -1;}function _UT2(){_Ib("steam_ugc_query_set_ranked_by_trend_days()");return -1;}function _VT2(){ _Ib("steam_ugc_query_add_required_tag()");return -1;}function _WT2(){_Ib("steam_ugc_query_add_excluded_tag()");return -1;}function _XT2(){_Ib("steam_ugc_query_set_return_long_description()");return -1;}function _YT2(){_Ib("steam_ugc_query_set_return_total_only()");return -1;}function _ZT2(){_Ib("steam_ugc_query_set_allow_cached_response()");return -1;}function __T2(_0U2){_Ib("steam_ugc_send_query( ugc_query_handle )");return -1;}function _1U2(){_Ib("steam_current_game_language()");return -1;}function _2U2(){_Ib("steam_available_languages()"); return -1;}function _3U2(){_Ib("draw_set_alpha_test()");}function _4U2(){_Ib("draw_set_alpha_test_ref_value()");}function _5U2(){_Ib("draw_get_alpha_test()");return 0;}function _6U2(){_Ib("draw_get_alpha_test_ref_value()");return 0;}function zip_unzip(){_Ib("zip_unzip()");}function zip_create(){_Ib("zip_create()");}function zip_add_file(){_Ib("zip_add_file()");}function zip_save(){_Ib("zip_save()");}function game_change(){_Ib("game_change()");}function winphone_license_trial_version(){_Ib("winphone_license_trial_version()"); }function winphone_tile_title(){_Ib("winphone_tile_title()");}function winphone_tile_count(){_Ib("winphone_tile_count()");}function winphone_tile_back_title(){_Ib("winphone_tile_back_title()");}function winphone_tile_back_content(){_Ib("winphone_tile_back_content()");}function winphone_tile_back_content_wide(){_Ib("winphone_tile_back_content_wide()");}function winphone_tile_front_image(){_Ib("winphone_tile_front_image()");}function winphone_tile_front_image_small(){_Ib("winphone_tile_front_image_small()"); }function winphone_tile_front_image_wide(){_Ib("winphone_tile_front_image_wide()");}function winphone_tile_back_image(){_Ib("winphone_tile_back_image()");}function winphone_tile_back_image_wide(){_Ib("winphone_tile_back_image_wide()");}function winphone_tile_background_colour(){_Ib("winphone_tile_background_colour()");}function winphone_tile_background_color(){_Ib("winphone_tile_background_color()");}function winphone_tile_icon_image(){_Ib("winphone_tile_icon_image()");}function winphone_tile_small_icon_image(){ _Ib("winphone_tile_small_icon_image()");}function winphone_tile_wide_content(){_Ib("winphone_tile_wide_content()");}function winphone_tile_cycle_images(){_Ib("winphone_tile_cycle_images()");}function winphone_tile_small_background_image(){_Ib("winphone_tile_small_background_image()");}function push_local_notification(){_Ib("push_local_notification()");}function push_get_first_local_notification(){_Ib("push_get_first_local_notification()");return -1;}function push_get_next_local_notification(){_Ib("push_get_next_local_notification()"); return -1;}function push_cancel_local_notification(){_Ib("push_cancel_local_notification()");return -1;}function push_get_application_badge_number(){_Ib("push_get_application_badge_number()");return -1;}function push_set_application_badge_number(){_Ib("push_set_application_badge_number()");return -1;}function surface_set_target_ext(){_Ib("surface_set_target_ext()");return 0;}function surface_get_target_ext(){_Ib("surface_set_target_ext()");return -1;}function audio_emitter_velocity(){_Ib("audio_emitter_velocity()"); }function audio_emitter_get_vx(){_Ib("audio_emitter_get_vx()");return 0.0;}function audio_emitter_get_vy(){_Ib("audio_emitter_get_vy()");return 0.0;}function audio_emitter_get_vz(){_Ib("audio_emitter_get_vz()");return 0.0;}function audio_set_listener_mask(){_Ib("audio_set_listener_mask()");}function audio_sound_set_listener_mask(){_Ib("audio_sound_set_listener_mask()");}function audio_emitter_set_listener_mask(){_Ib("audio_emitter_set_listener_mask()");}function audio_destroy_sync_group(){_Ib("audio_destroy_sync_group()"); return -1;}function audio_create_sync_group(){_Ib("audio_create_sync_group()");return -1;}function audio_play_in_sync_group(){_Ib("audio_play_in_sync_group()");}function audio_start_sync_group(){_Ib("audio_start_sync_group()");}function audio_pause_sync_group(){_Ib("audio_pause_sync_group()");}function audio_resume_sync_group(){_Ib("audio_resume_sync_group()");}function audio_stop_sync_group(){_Ib("audio_stop_sync_group()");}function audio_sync_group_get_track_pos(){_Ib("audio_sync_group_get_track_pos()"); return -1;}function audio_sync_group_is_playing(){_Ib("audio_sync_group_is_playing()");return -1;}function audio_sync_group_is_paused(){_Ib("audio_sync_group_is_paused()");return -1;}function audio_sync_group_debug(){_Ib("audio_sync_group_debug()");}function _7U2(){_Ib("GPIO is not supported");}function _8U2(){_Ib("GPIO is not supported");}function _9U2(){_Ib("GPIO is not supported");return 0;}function _aU2(){_Ib("GPIO is not supported");}function win8_livetile_tile_notification(){_Ib("win8_livetile_tile_notification()"); return -1;}function win8_livetile_tile_clear(){_Ib("win8_livetile_tile_clear()");return -1;}function win8_livetile_badge_notification(){_Ib("win8_livetile_badge_notification()");return -1;}function win8_livetile_badge_clear(){_Ib("win8_livetile_badge_clear()");return -1;}function win8_livetile_queue_enable(){_Ib("win8_livetile_queue_enable()");return -1;}function win8_secondarytile_pin(){_Ib("win8_secondarytile_pin()");return -1;}function win8_secondarytile_badge_notification(){_Ib("win8_secondarytile_badge_notification()"); return -1;}function win8_secondarytile_delete(){_Ib("win8_secondarytile_delete()");return -1;}function win8_settingscharm_add_xaml_entry(){_Ib("win8_settingscharm_add_xaml_entry()");}function win8_settingscharm_set_xaml_property(){_Ib("win8_settingscharm_set_xaml_property()");}function win8_settingscharm_get_xaml_property(){_Ib("win8_settingscharm_get_xaml_property()");}function win8_livetile_notification_begin(){_Ib("win8_livetile_notification_begin()");return -1;}function win8_livetile_notification_secondary_begin(){ _Ib("win8_livetile_notification_secondary_begin()");return -1;}function win8_livetile_notification_expiry(){_Ib("win8_livetile_notification_expiry()");return -1;}function win8_livetile_notification_tag(){_Ib("win8_livetile_notification_tag()");return -1;}function win8_livetile_notification_text_add(){_Ib("win8_livetile_notification_text_add()");return -1;}function win8_livetile_notification_image_add(){_Ib("win8_livetile_notification_image_add()");return -1;}function win8_livetile_notification_end(){_Ib("win8_livetile_notification_end()"); return -1;}function win8_appbar_enable(){_Ib("win8_appbar_enable()");return -1;}function win8_appbar_add_element(){_Ib("win8_appbar_add_element()");return -1;}function win8_appbar_remove_element(){_Ib("win8_appbar_remove_element()");return -1;}function win8_settingscharm_add_entry(){_Ib("win8_settingscharm_add_entry()");return -1;}function win8_settingscharm_add_html_entry(){_Ib("win8_settingscharm_add_html_entry()");return -1;}function win8_settingscharm_remove_entry(){_Ib("win8_settingscharm_remove_entry()"); return -1;}function win8_share_image(){_Ib("win8_share_image()");return -1;}function win8_share_screenshot(){_Ib("win8_share_screenshot()");return -1;}function win8_share_file(){_Ib("win8_share_file()");return -1;}function win8_share_url(){_Ib("win8_share_url()");return -1;}function win8_share_text(){_Ib("win8_share_text()");return -1;}function win8_search_enable(){_Ib("win8_search_enable()");return -1;}function win8_search_disable(){_Ib("win8_search_disable()");return -1;}function win8_search_add_suggestions(){ _Ib("win8_search_add_suggestions()");return -1;}function win8_device_touchscreen_available(){_Ib("win8_device_touchscreen_available()");return -1;}function win8_license_initialize_sandbox(){_Ib("win8_license_initialize_sandbox()");return -1;}function win8_license_trial_version(){_Ib("win8_license_trial_version()");return -1;}function uwp_livetile_tile_clear(){_Ib("uwp_livetile_tile_clear()");return -1;}function uwp_livetile_badge_notification(){_Ib("uwp_livetile_badge_notification()");return -1;}function uwp_livetile_badge_clear(){ _Ib("uwp_livetile_badge_clear()");return -1;}function uwp_livetile_queue_enable(){_Ib("uwp_livetile_queue_enable()");return -1;}function uwp_secondarytile_pin(){_Ib("uwp_secondarytile_pin()");return -1;}function uwp_secondarytile_badge_notification(){_Ib("uwp_secondarytile_badge_notification()");return -1;}function uwp_secondarytile_delete(){_Ib("uwp_secondarytile_delete()");return -1;}function uwp_secondarytile_tile_clear(){_Ib("uwp_secondarytile_tile_clear()");return -1;}function uwp_secondarytile_badge_clear(){ _Ib("uwp_seondarytile_badge_clear()");return -1;}function uwp_livetile_notification_begin(){_Ib("uwp_livetile_notification_begin()");return -1;}function uwp_livetile_notification_secondary_begin(){_Ib("uwp_livetile_notification_secondary_begin()");return -1;}function uwp_livetile_notification_expiry(){_Ib("uwp_livetile_notification_expiry()");return -1;}function uwp_livetile_notification_tag(){_Ib("uwp_livetile_notification_tag()");return -1;}function uwp_livetile_notification_text_add(){_Ib("uwp_livetile_notification_text_add()"); return -1;}function uwp_livetile_notification_image_add(){_Ib("uwp_livetile_notification_image_add()");return -1;}function uwp_livetile_notification_end(){_Ib("uwp_livetile_notification_end()");return -1;}function uwp_livetile_notification_template_add(){_Ib("uwp_livetile_notification_template_add()");return -1;}function uwp_appbar_enable(){_Ib("uwp_appbar_enable()");return -1;}function uwp_appbar_add_element(){_Ib("uwp_appbar_add_element()");return -1;}function uwp_appbar_remove_element(){_Ib("uwp_appbar_remove_element()"); return -1;}function uwp_device_touchscreen_available(){_Ib("uwp_device_touchscreen_available()");return -1;}function external_define(){_Ib("external_define()");return -1;}function external_call(){_Ib("external_call()");return -1;}function external_free(){_Ib("external_free()");return -1;}/*@constructor */function _Tz(_bU2,_cU2,_dU2){if(arguments.length>0){if(arguments.length==3){this._pA=_bU2;this._qA=_cU2;this._rA=_dU2;}else {this._pA=_bU2._pA;this._qA=_bU2._qA;this._rA=_bU2._rA;}}else {this._pA=1.0;this._qA=0.0; this._rA=0.0;}}_Tz.prototype._eU2=function(__4){return this._pA==__4._pA&&this._qA==__4._qA&&this._rA==__4._rA;};_Tz.prototype._Gf=function(__4){return new _Tz(this._pA+__4._pA,this._qA+__4._qA,this._rA+__4._rA);};_Tz.prototype._fU2=function(){return new _Tz(-this._pA,-this._qA,-this._rA);};_Tz.prototype._2N=function(__4){return new _Tz(this._pA-__4._pA,this._qA-__4._qA,this._rA-__4._rA);};_Tz.prototype._bF2=function(__4){return this._pA*__4._pA+this._qA*__4._qA+this._rA*__4._rA;};_Tz.prototype._g41=function(_ED){ return new _Tz(_ED*this._pA,_ED*this._qA,_ED*this._rA);};_Tz.prototype._mA=function(){var _Yi=1.0/Math.sqrt((this._pA*this._pA)+(this._qA*this._qA)+(this._rA*this._rA));this._pA=this._pA*_Yi;this._qA=this._qA*_Yi;this._rA=this._rA*_Yi;};_Tz.prototype._gU2=function(){var _hU2=(this._pA*this._pA)+(this._qA*this._qA)+(this._rA*this._rA);return _hU2;};_Tz.prototype.Length=function(){var _hU2=this._gU2();if(_hU2>0.0){return Math.sqrt(_hU2);}else {return 0.0;}};_Tz.prototype._iU2=function(_jU2){var x,y,z;x=(this._qA*_jU2._rA)-(this._rA*_jU2._qA); y=(this._rA*_jU2._pA)-(this._pA*_jU2._rA);z=(this._pA*_jU2._qA)-(this._qA*_jU2._pA);return new _Tz(x,y,z);};_Tz.prototype._yO2=function(_kU2,_lU2){this._pA=(_kU2._qA*_lU2._rA)-(_kU2._rA*_lU2._qA);this._qA=(_kU2._rA*_lU2._pA)-(_kU2._pA*_lU2._rA);this._rA=(_kU2._pA*_lU2._qA)-(_kU2._qA*_lU2._pA);};_Tz.prototype._zO2=function(_jU2){return(this._pA*_jU2._pA)+(this._qA*_jU2._qA)+(this._rA*_jU2._rA);};var _mU2=0,_nU2=1,_oU2=2,_pU2=3,_qU2=4,_rU2=5,_sU2=6,_tU2=7,_uU2=8,_vU2=9,_wU2=10,_xU2=11,_yU2=12,_zU2=13, _AU2=14,_BU2=15;/*@constructor */function _EA(){this._Wf();}_EA.prototype._Wf=function(){this._CU2=[];this._DU2=[];};_EA.prototype._EU2=function(){var _if1="100\n";_if1+=this._CU2.length.toString()+"\n";for(var i=0;i=0.5)?true:false;_FU2._aA=(parseFloat(_TU2[8])>=0.5)?true:false;break;}case _zU2:{_FU2._w6=parseFloat(_TU2[1]);_FU2._x6=parseFloat(_TU2[2]);_FU2._yv=parseFloat(_TU2[3]);_FU2._y6=parseFloat(_TU2[4]);_FU2._z6=parseFloat(_TU2[5]);_FU2._zv=parseFloat(_TU2[6]);_FU2._9A=(parseFloat(_TU2[7])>=0.5)?true:false; _FU2._aA=(parseFloat(_TU2[8])>=0.5)?true:false;_FU2._Dv=~~parseFloat(_TU2[9]);break;}case _xU2:case _yU2:{_FU2._w6=parseFloat(_TU2[1]);_FU2._x6=parseFloat(_TU2[2]);_FU2._yv=parseFloat(_TU2[3]);_FU2._y6=parseFloat(_TU2[4]);_FU2._z6=parseFloat(_TU2[5]);_FU2._zv=parseFloat(_TU2[6]);_FU2._9A=(parseFloat(_TU2[7])>=0.5)?true:false;_FU2._aA=(parseFloat(_TU2[8])>=0.5)?true:false;_FU2.closed=(parseFloat(_TU2[9])>=0.5)?true:false;_FU2._Dv=~~parseFloat(_TU2[10]);break;}}this._CU2.push(_FU2);}}};_EA.prototype._s8=function(_Zq){ var _cG=_vl(_Zq,true);if(_cG!==null&&_cG!==undefined){this._OU2(_cG);}else {var _Mv=_Ec1(_Zq);var self=this;var _UU2=new XMLHttpRequest();_UU2.open("GET",_Mv,false);_UU2.onload=function(){if(_UU2.readyState==4&&_UU2.status==200){self._OU2(_UU2.responseText);}};_UU2.send(null);}};_EA.prototype._Cd=function(kind){this._CU2.push({_GU2:_mU2,_HU2:kind});};_EA.prototype._Ed=function(){this._CU2.push({_GU2:_nU2});};_EA.prototype.Vertex=function(x,y,z){this._CU2.push({_GU2:_oU2,x:x,y:y,z:z});};_EA.prototype._HA=function(x, y,z,_m4,alpha){this._CU2.push({_GU2:_pU2,x:x,y:y,z:z,color:_m4,alpha:alpha});};_EA.prototype._IA=function(x,y,z,_Kb,_Lb){this._CU2.push({_GU2:_qU2,x:x,y:y,z:z,_X4:_Kb,_Y4:_Lb});};_EA.prototype._JA=function(x,y,z,_Kb,_Lb,_m4,alpha){this._CU2.push({_GU2:_rU2,x:x,y:y,z:z,_X4:_Kb,_Y4:_Lb,color:_m4,alpha:alpha});};_EA.prototype._KA=function(x,y,z,_Vb,_Wb,_Xb){this._CU2.push({_GU2:_sU2,x:x,y:y,z:z,_Vb:_Vb,_Wb:_Wb,_Xb:_Xb});};_EA.prototype._LA=function(x,y,z,_Vb,_Wb,_Xb,_m4,alpha){this._CU2.push({_GU2:_tU2, x:x,y:y,z:z,_Vb:_Vb,_Wb:_Wb,_Xb:_Xb,color:_m4,alpha:alpha});};_EA.prototype._MA=function(x,y,z,_Vb,_Wb,_Xb,_Kb,_Lb){this._CU2.push({_GU2:_uU2,x:x,y:y,z:z,_Vb:_Vb,_Wb:_Wb,_Xb:_Xb,_X4:_Kb,_Y4:_Lb});};_EA.prototype._NA=function(x,y,z,_Vb,_Wb,_Xb,_Kb,_Lb,_m4,alpha){this._CU2.push({_GU2:_vU2,x:x,y:y,z:z,_Vb:_Vb,_Wb:_Wb,_Xb:_Xb,_X4:_Kb,_Y4:_Lb,color:_m4,alpha:alpha});};_EA.prototype._OA=function(_w6,_x6,_yv,_y6,_z6,_zv,_Av,_Bv){this._CU2.push({_GU2:_wU2,_w6:_w6,_x6:_x6,_yv:_yv,_y6:_y6,_z6:_z6,_zv:_zv, _9A:_Av,_aA:_Bv});};_EA.prototype._PA=function(_w6,_x6,_yv,_y6,_z6,_zv,_Av,_Bv,closed,_Dv){this._CU2.push({_GU2:_xU2,_w6:_w6,_x6:_x6,_yv:_yv,_y6:_y6,_z6:_z6,_zv:_zv,_9A:_Av,_aA:_Bv,closed:closed,_Dv:_Dv});};_EA.prototype._QA=function(_w6,_x6,_yv,_y6,_z6,_zv,_Av,_Bv,closed,_Dv){this._CU2.push({_GU2:_yU2,_w6:_w6,_x6:_x6,_yv:_yv,_y6:_y6,_z6:_z6,_zv:_zv,_9A:_Av,_aA:_Bv,closed:closed,_Dv:_Dv});};_EA.prototype._RA=function(_w6,_x6,_yv,_y6,_z6,_zv,_Av,_Bv,_Dv){this._CU2.push({_GU2:_zU2,_w6:_w6,_x6:_x6, _yv:_yv,_y6:_y6,_z6:_z6,_zv:_zv,_9A:_Av,_aA:_Bv,_Dv:_Dv});};_EA.prototype._SA=function(_w6,_x6,_yv,_y6,_z6,_zv,_Av,_Bv){this._CU2.push({_GU2:_AU2,_w6:_w6,_x6:_x6,_yv:_yv,_y6:_y6,_z6:_z6,_zv:_zv,_9A:_Av,_aA:_Bv});};_EA.prototype._TA=function(_w6,_x6,_yv,_y6,_z6,_zv,_Av,_Bv){this._CU2.push({_GU2:_BU2,_w6:_w6,_x6:_x6,_yv:_yv,_y6:_y6,_z6:_z6,_zv:_zv,_9A:_Av,_aA:_Bv});};_EA.prototype._VU2=function(){this._WU2=new _Jc(_Kc,_e8._Lc(_e8._Zc),false);this._WU2._HU2=-1;this._WU2._XU2=null;};_EA.prototype._YU2=function(_zc){ switch(_zc){case _8c:case _9c:case _bc:return true;}return false;};_EA.prototype._ZU2=function(__U2){var _0V2=this._WU2;if((_0V2._HU2!=-1)&&((_4c!=_0V2._HU2)||(_5c!=_0V2._XU2)||(this._YU2(_0V2._HU2)===false))){_0V2._5e();__U2.push({_HU2:_yc(_0V2._HU2),_XU2:_0V2._XU2,_1V2:_0V2});this._VU2();_0V2=this._WU2;}_0V2._w52(_7c);_0V2._HU2=_4c;_0V2._XU2=_5c;_Fc();};_EA.prototype._2V2=function(__U2){var _0V2=this._WU2;_0V2._5e();__U2.push({_HU2:_yc(_0V2._HU2),_XU2:_0V2._XU2,_1V2:_0V2});_Fc();};_EA.prototype._7G1=function(_FU2, _G8,__U2){var _3V2=_2c;var self=this;_2c=function(){self._ZU2(__U2);};switch(_FU2._GU2){case _wU2:_Ev(_FU2._w6,_FU2._x6,_FU2._yv,_FU2._y6,_FU2._z6,_FU2._zv,_G8,_FU2._9A,_FU2._aA);break;case _xU2:_Fv(_FU2._w6,_FU2._x6,_FU2._yv,_FU2._y6,_FU2._z6,_FU2._zv,_G8,_FU2._9A,_FU2._aA,_FU2.closed,_FU2._Dv);break;case _yU2:_Gv(_FU2._w6,_FU2._x6,_FU2._yv,_FU2._y6,_FU2._z6,_FU2._zv,_G8,_FU2._9A,_FU2._aA,_FU2.closed,_FU2._Dv);break;case _zU2:_Cv(_FU2._w6,_FU2._x6,_FU2._yv,_FU2._y6,_FU2._z6,_FU2._zv,_G8,_FU2._9A,_FU2._aA, _FU2._Dv);break;case _AU2:_Hv(_FU2._w6,_FU2._x6,_FU2._yv,_FU2._y6,_FU2._z6,_FU2._zv,_G8,_FU2._9A,_FU2._aA);break;case _BU2:_xv(_FU2._w6,_FU2._x6,_FU2._yv,_FU2._y6,_FU2._z6,_FU2._zv,_G8,_FU2._9A,_FU2._aA);break;}_2c=_3V2;};_EA.prototype._19=function(x,y,z,_G8){var i,_ih=new _zz();_ih._WA(x,y,z);var _1B=_2B(_VA);var _v6=new _zz();_v6.Multiply(_ih,_1B);_UA(_VA,_v6);var colour=((_Nc*255.0)<<24)|(_Oc&0x00ffffff);var _4V2=this._DU2[colour];if(_4V2===undefined){_4V2=[];this._DU2[colour]=_4V2;}if(_4V2[_G8]===undefined){ _4V2[_G8]=[];var _p8=_4V2[_G8];this._VU2();for(var i=0;i0){for(var i=0;i<_Jk;i++){this._Vk[i]=null;this.stack.push(i);}}}_r41.prototype._jM2=function(){var _t6;if(this.stack.length===0){_t6=this._Vk.length;this._Vk[_t6]=null;return _t6;}return this.stack.pop();};_r41.prototype._Gf=function(_8V2){var index=this._jM2();this._Vk[index]=_8V2;this._q8++;this.length=this._Vk.length;return index;};_r41.prototype._E5=function(_CW){ var _9V2=null;if(_CW>=0&&_CW=this._Vk.length)return;this._Vk[_CW]=null;this.stack.push(_CW);this._q8--;};_r41.prototype._Wf=function(){ this._Vk=[];this.stack=[];this._q8=0;this.length=this._Vk.length;};_r41.prototype.Set=function(_J3,_B3){if(_J3<0||_J3>=this._Vk.length)return;this._Vk[_J3]=_B3;};/*@constructor */function _Yr(_bV2){_cV2.call(this);this.__type="[CurvePoint]";this._kP=0;this._dV2=0;this._eV2=0;this._fV2=0;this._gV2=0;this._hV2=0;if((_bV2!=null)&&(_bV2!=undefined)){this._kP=_bV2.x;this._dV2=_bV2.value;this._eV2=_bV2.tx0;this._fV2=_bV2.ty0;this._gV2=_bV2.tx1;this._hV2=_bV2.ty1;}this._iV2();Object.defineProperties(this, {gmlposx:{enumerable:true,get :function(){return this._kP;},set :function(_B3){this._kP=yyGetReal(_B3);this._iV2();}},gmlvalue:{enumerable:true,get :function(){return this._dV2;},set :function(_B3){this._dV2=yyGetReal(_B3);this._iV2();}}});}var _jV2=[];/*@constructor */function _Qr(_bV2){_cV2.call(this);this.__type="[AnimCurveChannel]";this._Mr="";this._kV2=0;this._lV2=0;this._mV2=0;this._nV2=[];this._oV2=0;this._pV2=[];if((_bV2!=null)&&(_bV2!=undefined)){this._Mr=_bV2.name;this._kV2=_bV2.function;this._lV2=_bV2.iterations; this._mV2=_bV2.points.length;this._nV2=[];for(var _Rc2=0;_Rc21.0)_q5=1.0;var start=0;var end=this._oV2-1; var _Zi=end>>1;while(_Zi!=start){if(this._pV2[_Zi]._kP>_q5){end=_Zi;}else {start=_Zi;}_Zi=(start+end)>>1;}var _w6=this._pV2[_Zi]._kP;var _y6=this._pV2[_Zi+1]._kP;if(_w6==_y6){return this._pV2[_Zi]._dV2;}var _eq=this._pV2[_Zi]._dV2;var _fq=this._pV2[_Zi+1]._dV2;var ratio=(_q5-_w6)/(_y6-_w6);var _ue=((_fq-_eq)*ratio)+_eq;return _ue;};this._uV2=function(_041,_wV2,_xV2){if(_041==undefined)_041=false;if(_wV2==undefined)_wV2=true;if(_xV2==undefined)_xV2=true;this._qV2();if(this._kV2==_yV2){this._zV2(_041,_wV2,_xV2); }else if(this._kV2==_AV2){this._BV2();}else {var _Cv2=this._mV2;for(var __5=0;__5<_Cv2;__5++){var _CV2=this._DV2();_CV2._kP=this._nV2[__5]._kP;_CV2._dV2=this._nV2[__5]._dV2;}}for(var i=0;i<_Cv2;i++){this._rV2=_H6(this._rV2,this._nV2[i]._rV2);}};this._zV2=function(_041,_wV2,_xV2){var _Cv2=this._mV2;if(_Cv2<2){_H4("Cannot evaluate catmull-rom animation curve, a minimum of 2 points is required");return;}var _EV2=_Cv2+2;var scale=1.0;var offset=0.0;if(_xV2){var _Oi=this._nV2[0]._dV2;var _Pi=_Oi;for(var i=1;i<_Cv2; i++){_Oi=_I6(_Oi,this._nV2[i]._dV2);_Pi=_H6(_Pi,this._nV2[i]._dV2);}var _qv=_Pi-_Oi;offset=_Oi;if(_qv>1.0)scale=_qv;var _FV2=1.0/scale;var _Kj=2;for(var i=0;i<_Cv2;i++){_jV2[_Kj++]=this._nV2[i]._kP;_jV2[_Kj++]=(this._nV2[i]._dV2-offset)*_FV2;}}else {_Kj=2;for(var i=0;i<_Cv2;i++){_jV2[_Kj++]=this._nV2[i]._kP;_jV2[_Kj++]=this._nV2[i]._dV2;}}_jV2[0]=_jV2[2];_jV2[1]=_jV2[3];var c=_EV2*2;_jV2[c-2]=_jV2[c-4];_jV2[c-1]=_jV2[c-3];var alpha=0.5;var end=(_041==true)?_EV2:_EV2-3;for(var i=0;i=0)&&(_eW2=this.AnimCurves.length)){ return undefined;}return this.AnimCurves[_t4];};_1N2.prototype._Fr=function(_t4){if((_t4<0)||(_t4>=this.AnimCurves.length)){return undefined;}return this.AnimCurves[_t4];};_1N2.prototype._Xr=function(_dW2){if((typeof(_dW2)=="object")&&(_dW2 instanceof _Wr)){var i;for(i=0;i_wW2.byteLength)size=_wW2.byteLength;var _xW2=buffer_tell(_Ef._Cl._sW2);_Ca._c01(_dk,offset);for(var i=0;i<_wW2.byteLength;i++){var _h4=_wW2[i];_Ca._gO(_hO,_h4);}_Ca._c01(_dk,_xW2);if(_uW2)_Ca._qW2=_od;}}return;}}function _2t(_e3){var _Ef=_kF(_e3.currentTarget);if(!_Ef)return;_Ef._Kf=true;_Ef._Jf=_pF;}/*@constructor */function _3N2(){this._Ql=[];this._yW2=0;}_3N2.prototype._Gf=function(_jg,_nl,_od,_zW2){var _Ef=new _nW2();_Ef._pW2=_jg;_Ef._oW2=_nl; _Ef._Cl=_zW2;_Ef._qW2=_od;this._Ql[this._yW2++]=_Ef;_mW2(_zW2,_Ef);return _Ef;};_3N2.prototype._AW2=function(){var map=ds_map_create();g_pBuiltIn.async_load=map;var _Ql=this._Ql;for(var i=0;i>4); var _5X2=((_vh&15)<<4)|(_wh>>2);var _6X2=((_wh&3)<<6)|_xh;_h02[_zh++]=_4X2;if(_zh>=_ZW2)return _h02;if(_wh!=64){_h02[_zh++]=_5X2;if(_zh>=_ZW2)return _h02;}if(_xh!=64){_h02[_zh++]=_6X2;if(_zh>=_ZW2)return _h02;}}while(i>2;_bX2=((_4X2&3)<<4)|(_5X2>>4);_cX2=((_5X2&15)<<2)|(_6X2>>6);_dX2=_6X2&63;if(isNaN(_5X2)){_cX2=_dX2=64;}else if(isNaN(_6X2)){_dX2=64;}output=output+_9X2.charAt(_aX2)+_9X2.charAt(_bX2)+_9X2.charAt(_cX2)+_9X2.charAt(_dX2);_4X2=_5X2=_6X2="";_aX2=_bX2=_cX2=_dX2="";}while(i0){var _mX2=_I6(_gX2.length,_ad);this._lX2=_mX2;var _nX2=new Uint8Array(this._eO);for(var i=0;i<_mX2;i++){_nX2[i]=_gX2[i];}}}function _oX2(_od){switch(_od){case _hO:case _QW2:case _TW2:return 1;case _rf1:case _Ye1:case _RW2:return 2;case _5k:case _ek:case _Le2:return 4;case _SW2:return 8;}return -1;}_eX2.prototype._pX2=function(_B52){var _qX2=new ArrayBuffer(_B52); var _rX2=new Uint8Array(this._eO);var _sX2=new Uint8Array(_qX2);if(this._eO.byteLength>_B52){for(var i=0;i<_B52;i++){_sX2[i]=_rX2[i];}}else {_sX2.set(_rX2);}this._eO=_qX2;this._Y01=new DataView(this._eO);this._iX2=_B52;this._tX2(-1);};_eX2.prototype._tX2=function(_ad,_uX2){if(_ad==undefined)_ad=-1;if(_uX2==undefined)_uX2=false;var size=_ad;if(size==-1)size=this._cO;if(_uX2){this._lX2=size;}else {this._lX2=_H6(this._lX2,size);this._lX2=_I6(this._lX2,this._iX2);}};function _AI(_9o){var _lh="";for(var i=0;i<_9o.length; i++){var _3i1=_9o.charCodeAt(i);if(_3i1<0x80){_lh+=String.fromCharCode(_3i1&0x7f);}else if(_3i1<0x0800){_lh+=String.fromCharCode((((_3i1>>6)&0x1f)|0xc0));_lh+=String.fromCharCode((_3i1&0x3f)|0x80);}else if(_3i1<0x10000){_lh+=String.fromCharCode(((_3i1>>12)&0x0f)|0xe0);_lh+=String.fromCharCode(((_3i1>>6)&0x3f)|0x80);_lh+=String.fromCharCode((_3i1&0x3f)|0x80);}else {_lh+=String.fromCharCode(((_3i1>>18)&0x07)|0xf0);_lh+=String.fromCharCode(((_3i1>>12)&0x3f)|0x80);_lh+=String.fromCharCode(((_3i1>>6)&0x3f)|0x80); _lh+=String.fromCharCode((_3i1&0x3f)|0x80);}}return _lh;}_eX2.prototype._vX2=function(_od){this._cO=(((this._cO+this._kX2)+(this._jX2-1))&~(this._jX2-1))-this._kX2;if(this._cO>=this._iX2&&this._qW2==_NW2){while(this._cO>=this._iX2){this._wX2();this._cO-=this._iX2;}}if(this._cO>=this._iX2)return(_od==_UW2)?"":_KW2;var _pb;switch(_od){case _TW2:_pb=this._Y01.getUint8(this._cO++);if(_pb==1){_pb=true;}else {_pb=false;}break;case _hO:{_pb=this._Y01.getUint8(this._cO++);}break;case _UW2:case _WW2:{_pb="";var chr; var _CI=0;while(this._cO>10)+0xD7C0)+String.fromCharCode((_Y4&0x3FF)|0xDC00);}if(_Y4==0x00)break;if(chr<0)chr=String.fromCharCode(_Y4);_pb+=chr;}}break;case _QW2:_pb=this._Y01.getInt8(this._cO++);break;case _rf1:_pb=this._Y01.getUint16(this._cO,true);this._cO+=2;break;case _Ye1:_pb=this._Y01.getInt16(this._cO,true);this._cO+=2;break;case _ek:_pb=this._Y01.getInt32(this._cO,true);this._cO+=4;break;case _5k:_pb=new Long(this._Y01.getUint32(this._cO, true),0);this._cO+=4;break;case _Le2:_pb=this._Y01.getFloat32(this._cO,true);this._cO+=4;break;case _SW2:_pb=this._Y01.getFloat64(this._cO,true);this._cO+=8;break;case _VW2:var _Bh1=this._Y01.getUint32(this._cO,true);this._cO+=4;var _0i1=this._Y01.getUint32(this._cO,true);this._cO+=4;_pb=new Long(_Bh1,_0i1);break;}return _pb;};_eX2.prototype._wX2=function(){this._kX2=(this._kX2+this._iX2)%this._jX2;};function _xX2(_od){var _yX2=0;switch(_od){case _TW2:case _hO:case _QW2:_yX2=1;break;case _rf1:case _Ye1:_yX2=2; break;case _ek:case _5k:case _Le2:_yX2=4;break;case _SW2:case _VW2:_yX2=8;break;}return _yX2;}function _zX2(){this.i=new Uint32Array(2);this._AX2=new Uint32Array(4);this._yu=new Uint8Array(64);this._BX2=new Uint8Array(16);this.i[0]=this.i[1]=0;this._AX2[0]=this._AX2[1]=this._AX2[2]=this._AX2[3]=0;for(var i=0;i<64;i++)this._yu[i]=0;for(var i=0;i<16;i++)this._BX2[i]=0;}_zX2.prototype._CX2=function(){var _47="0123456789abcdef";var _ni="";for(var h=0;h<16;h++){var _g4=this._BX2[h];_ni+=_47[((_g4>>4)&0xf)];_ni+=_47[(_g4&0xf)]; }return _ni;};function _DX2(){var _EX2=new _zX2();_EX2.i[0]=_EX2.i[1]=0;_EX2._AX2[0]=0x67452301;_EX2._AX2[1]=0xefcdab89;_EX2._AX2[2]=0x98badcfe;_EX2._AX2[3]=0x10325476;return _EX2;}var _FX2=new Uint32Array(16);function _GX2(x,y,z){_FX2[0]=x;_FX2[1]=y;_FX2[2]=z;return(((_FX2[0])&(_FX2[1]))|((~_FX2[0])&(_FX2[2])));}function _HX2(x,y,z){_FX2[0]=x;_FX2[1]=y;_FX2[2]=z;return(((_FX2[0])&(_FX2[2]))|((_FX2[1])&(~_FX2[2])));}function _IX2(x,y,z){_FX2[0]=x;_FX2[1]=y;_FX2[2]=z;return((_FX2[0])^(_FX2[1])^(_FX2[2]));} function _JX2(x,y,z){_FX2[0]=x;_FX2[1]=y;_FX2[2]=z;return((_FX2[1])^((_FX2[0])|(~_FX2[2])));}var _KX2=new Uint32Array(2);function _LX2(x,_t6){_KX2[0]=x;_KX2[1]=((_KX2[0]<<_t6)&0xffffffff)|((_KX2[0]>>(32-_t6))&((1<<_t6)-1));return _KX2[1];}var _MX2=new Uint32Array(7);function _NX2(_h4,_g4,c,_Bm,x,_ni,_zh){_MX2[0]=_h4;_MX2[1]=_g4;_MX2[2]=c;_MX2[3]=_Bm;_MX2[4]=x;_MX2[5]=_ni;_MX2[6]=_zh;_MX2[0]+=_GX2(_MX2[1],_MX2[2],_MX2[3])+_MX2[4]+(_MX2[6]);_MX2[0]=_LX2(_MX2[0],_MX2[5]);_MX2[0]+=_MX2[1];return _MX2[0];}function _OX2(_h4, _g4,c,_Bm,x,_ni,_zh){_MX2[0]=_h4;_MX2[1]=_g4;_MX2[2]=c;_MX2[3]=_Bm;_MX2[4]=x;_MX2[5]=_ni;_MX2[6]=_zh;_MX2[0]+=_HX2(_MX2[1],_MX2[2],_MX2[3])+_MX2[4]+(_MX2[6]);_MX2[0]=_LX2(_MX2[0],_MX2[5]);_MX2[0]+=_MX2[1];return _MX2[0];}function _PX2(_h4,_g4,c,_Bm,x,_ni,_zh){_MX2[0]=_h4;_MX2[1]=_g4;_MX2[2]=c;_MX2[3]=_Bm;_MX2[4]=x;_MX2[5]=_ni;_MX2[6]=_zh;_MX2[0]+=_IX2(_MX2[1],_MX2[2],_MX2[3])+_MX2[4]+(_MX2[6]);_MX2[0]=_LX2(_MX2[0],_MX2[5]);_MX2[0]+=_MX2[1];return _MX2[0];}function _QX2(_h4,_g4,c,_Bm,x,_ni,_zh){_MX2[0]=_h4; _MX2[1]=_g4;_MX2[2]=c;_MX2[3]=_Bm;_MX2[4]=x;_MX2[5]=_ni;_MX2[6]=_zh;_MX2[0]+=_JX2(_MX2[1],_MX2[2],_MX2[3])+_MX2[4]+(_MX2[6]);_MX2[0]=_LX2(_MX2[0],_MX2[5]);_MX2[0]+=_MX2[1];return _MX2[0];}function _I92(_RX2,_SX2){var _h4=_RX2[0],_g4=_RX2[1],c=_RX2[2],_Bm=_RX2[3];var _TX2=7;var _UX2=12;var _VX2=17;var _WX2=22;_h4=_NX2(_h4,_g4,c,_Bm,_SX2[0],_TX2,0xD76AA478);_Bm=_NX2(_Bm,_h4,_g4,c,_SX2[1],_UX2,0xE8C7B756);c=_NX2(c,_Bm,_h4,_g4,_SX2[2],_VX2,0x242070DB);_g4=_NX2(_g4,c,_Bm,_h4,_SX2[3],_WX2,0xC1BDCEEE);_h4=_NX2(_h4, _g4,c,_Bm,_SX2[4],_TX2,0xF57C0FAF);_Bm=_NX2(_Bm,_h4,_g4,c,_SX2[5],_UX2,0x4787C62A);c=_NX2(c,_Bm,_h4,_g4,_SX2[6],_VX2,0xA8304613);_g4=_NX2(_g4,c,_Bm,_h4,_SX2[7],_WX2,0xFD469501);_h4=_NX2(_h4,_g4,c,_Bm,_SX2[8],_TX2,0x698098D8);_Bm=_NX2(_Bm,_h4,_g4,c,_SX2[9],_UX2,0x8B44F7AF);c=_NX2(c,_Bm,_h4,_g4,_SX2[10],_VX2,0xFFFF5BB1);_g4=_NX2(_g4,c,_Bm,_h4,_SX2[11],_WX2,0x895CD7BE);_h4=_NX2(_h4,_g4,c,_Bm,_SX2[12],_TX2,0x6B901122);_Bm=_NX2(_Bm,_h4,_g4,c,_SX2[13],_UX2,0xFD987193);c=_NX2(c,_Bm,_h4,_g4,_SX2[14],_VX2, 0xA679438E);_g4=_NX2(_g4,c,_Bm,_h4,_SX2[15],_WX2,0x49B40821);var _XX2=5;var _YX2=9;var _ZX2=14;var __X2=20;_h4=_OX2(_h4,_g4,c,_Bm,_SX2[1],_XX2,0xF61E2562);_Bm=_OX2(_Bm,_h4,_g4,c,_SX2[6],_YX2,0xC040B340);c=_OX2(c,_Bm,_h4,_g4,_SX2[11],_ZX2,0x265E5A51);_g4=_OX2(_g4,c,_Bm,_h4,_SX2[0],__X2,0xE9B6C7AA);_h4=_OX2(_h4,_g4,c,_Bm,_SX2[5],_XX2,0xD62F105D);_Bm=_OX2(_Bm,_h4,_g4,c,_SX2[10],_YX2,0x02441453);c=_OX2(c,_Bm,_h4,_g4,_SX2[15],_ZX2,0xD8A1E681);_g4=_OX2(_g4,c,_Bm,_h4,_SX2[4],__X2,0xE7D3FBC8);_h4=_OX2(_h4,_g4, c,_Bm,_SX2[9],_XX2,0x21E1CDE6);_Bm=_OX2(_Bm,_h4,_g4,c,_SX2[14],_YX2,0xC33707D6);c=_OX2(c,_Bm,_h4,_g4,_SX2[3],_ZX2,0xF4D50D87);_g4=_OX2(_g4,c,_Bm,_h4,_SX2[8],__X2,0x455A14ED);_h4=_OX2(_h4,_g4,c,_Bm,_SX2[13],_XX2,0xA9E3E905);_Bm=_OX2(_Bm,_h4,_g4,c,_SX2[2],_YX2,0xFCEFA3F8);c=_OX2(c,_Bm,_h4,_g4,_SX2[7],_ZX2,0x676F02D9);_g4=_OX2(_g4,c,_Bm,_h4,_SX2[12],__X2,0x8D2A4C8A);var _0Y2=4;var _1Y2=11;var _2Y2=16;var _3Y2=23;_h4=_PX2(_h4,_g4,c,_Bm,_SX2[5],_0Y2,0xFFFA3942);_Bm=_PX2(_Bm,_h4,_g4,c,_SX2[8],_1Y2,0x8771F681); c=_PX2(c,_Bm,_h4,_g4,_SX2[11],_2Y2,0x6D9D6122);_g4=_PX2(_g4,c,_Bm,_h4,_SX2[14],_3Y2,0xFDE5380C);_h4=_PX2(_h4,_g4,c,_Bm,_SX2[1],_0Y2,0xA4BEEA44);_Bm=_PX2(_Bm,_h4,_g4,c,_SX2[4],_1Y2,0x4BDECFA9);c=_PX2(c,_Bm,_h4,_g4,_SX2[7],_2Y2,0xF6BB4B60);_g4=_PX2(_g4,c,_Bm,_h4,_SX2[10],_3Y2,0xBEBFBC70);_h4=_PX2(_h4,_g4,c,_Bm,_SX2[13],_0Y2,0x289B7EC6);_Bm=_PX2(_Bm,_h4,_g4,c,_SX2[0],_1Y2,0xEAA127FA);c=_PX2(c,_Bm,_h4,_g4,_SX2[3],_2Y2,0xD4EF3085);_g4=_PX2(_g4,c,_Bm,_h4,_SX2[6],_3Y2,0x04881D05);_h4=_PX2(_h4,_g4,c,_Bm, _SX2[9],_0Y2,0xD9D4D039);_Bm=_PX2(_Bm,_h4,_g4,c,_SX2[12],_1Y2,0xE6DB99E5);c=_PX2(c,_Bm,_h4,_g4,_SX2[15],_2Y2,0x1FA27CF8);_g4=_PX2(_g4,c,_Bm,_h4,_SX2[2],_3Y2,0xC4AC5665);var _4Y2=6;var _5Y2=10;var _6Y2=15;var _7Y2=21;_h4=_QX2(_h4,_g4,c,_Bm,_SX2[0],_4Y2,0xF4292244);_Bm=_QX2(_Bm,_h4,_g4,c,_SX2[7],_5Y2,0x432AFF97);c=_QX2(c,_Bm,_h4,_g4,_SX2[14],_6Y2,0xAB9423A7);_g4=_QX2(_g4,c,_Bm,_h4,_SX2[5],_7Y2,0xFC93A039);_h4=_QX2(_h4,_g4,c,_Bm,_SX2[12],_4Y2,0x655B59C3);_Bm=_QX2(_Bm,_h4,_g4,c,_SX2[3],_5Y2,0x8F0CCC92); c=_QX2(c,_Bm,_h4,_g4,_SX2[10],_6Y2,0xFFEFF47D);_g4=_QX2(_g4,c,_Bm,_h4,_SX2[1],_7Y2,0x85845DD1);_h4=_QX2(_h4,_g4,c,_Bm,_SX2[8],_4Y2,0x6FA87E4F);_Bm=_QX2(_Bm,_h4,_g4,c,_SX2[15],_5Y2,0xFE2CE6E0);c=_QX2(c,_Bm,_h4,_g4,_SX2[6],_6Y2,0xA3014314);_g4=_QX2(_g4,c,_Bm,_h4,_SX2[13],_7Y2,0x4E0811A1);_h4=_QX2(_h4,_g4,c,_Bm,_SX2[4],_4Y2,0xF7537E82);_Bm=_QX2(_Bm,_h4,_g4,c,_SX2[11],_5Y2,0xBD3AF235);c=_QX2(c,_Bm,_h4,_g4,_SX2[2],_6Y2,0x2AD7D2BB);_g4=_QX2(_g4,c,_Bm,_h4,_SX2[9],_7Y2,0xEB86D391);_RX2[0]+=_h4;_RX2[1]+=_g4; _RX2[2]+=c;_RX2[3]+=_Bm;}function _8Y2(_9Y2,_aY2,_E91,_bY2){var _SX2=new Uint32Array(16);var _cY2;var i,_0G;var _J3=0;_cY2=(_9Y2.i[0]>>3)&0x3F;if((_9Y2.i[0]+((_bY2<<3)&0xffffffff))<_9Y2.i[0]){_9Y2.i[1]++;}_9Y2.i[0]+=(_bY2<<3)&0xffffffff;_9Y2.i[1]+=(_bY2>>29)&0xffffffff;while(_bY2--){_9Y2._yu[_cY2++]=_aY2[_J3++];if(_cY2==0x40){for(i=0,_0G=0;i<16;i++,_0G+=4)_SX2[i]=(((0xffffffff&_9Y2._yu[_0G+3])<<24)|((0xffffffff&_9Y2._yu[_0G+2])<<16)|((0xffffffff&_9Y2._yu[_0G+1])<<8)|(0xffffffff&_9Y2._yu[_0G]));_I92(_9Y2._AX2, _SX2);_cY2=0;}}}var _dY2=new Uint8Array(64);function _eY2(_9Y2){var _SX2=new Uint32Array(16);var _cY2;var i,_0G;var _fY2;_SX2[14]=_9Y2.i[0];_SX2[15]=_9Y2.i[1];_cY2=((_9Y2.i[0]>>3)&0x3F);_fY2=(_cY2<56)?(56-_cY2):(120-_cY2);_dY2[0]=0x80;_8Y2(_9Y2,_dY2,0,_fY2);for(i=0,_0G=0;i<14;i++,_0G+=4){_SX2[i]=((~~_9Y2._yu[_0G+3])<<24)|((~~_9Y2._yu[_0G+2])<<16)|((~~_9Y2._yu[_0G+1])<<8)|(~~_9Y2._yu[_0G]);}_I92(_9Y2._AX2,_SX2);for(i=0,_0G=0;i<4;i++,_0G+=4){_9Y2._BX2[_0G]=(_9Y2._AX2[i]&0xFF);_9Y2._BX2[_0G+1]=((_9Y2._AX2[i]>>8)&0xFF); _9Y2._BX2[_0G+2]=((_9Y2._AX2[i]>>16)&0xFF);_9Y2._BX2[_0G+3]=((_9Y2._AX2[i]>>24)&0xFF);}}function _gY2(_hY2,_ad,_E91){var _EX2=_DX2();var _iY2=_ad;while(_iY2>0){var _jY2=_I6(_iY2,_ad-_E91);_8Y2(_EX2,_hY2,_E91,_jY2);_E91=0;_iY2-=_jY2;}_eY2(_EX2);return _EX2._CX2();}function _kY2(){var _Z5=-306674912;var _3J=new Array(256);for(var i=0;i<256;i++){var crc=i;var _lY2=8;while(--_lY2>=0){if((crc&1)!=0){crc=crc>>>1^_Z5;}else crc>>>=1;}_3J[i]=crc;}return _3J;}var _mY2=_kY2();function _nY2(_g4,_Wk,_Yi){var crc=0xffffffff;var _3J=_mY2; var i=_Wk;for(var _oY2=_Wk+_Yi;i<_oY2;i++)crc=(_3J[(crc^_g4[i])&255]^((crc>>>8)&0x00ffffff))>>>0;return crc;}_eX2.prototype._pY2=function(_E91,_ad){if(this._iX2==0)return;if(_ad<0)_ad=this._iX2;if(this._qW2==_NW2){while(_E91<0)_E91+=this._iX2;while(_E91>=this._iX2)_E91-=this._iX2;}else {if(_E91<0)_E91=0;if(_E91>=this._iX2)_E91=this._iX2-1;if((_E91+_ad)>this._iX2)_ad=this._iX2-_E91;}if(_ad>this._iX2-_E91)return "";else {return _nY2(new Uint8Array(this._eO,_E91,_ad),0,_ad);}};_eX2.prototype._qY2=function(_E91, _ad){if(this._iX2==0)return;if(_ad<0)_ad=this._iX2;if(this._qW2==_NW2){while(_E91<0)_E91+=this._iX2;while(_E91>=this._iX2)_E91-=this._iX2;}else {if(_E91<0)_E91=0;if(_E91>=this._iX2)_E91=this._iX2-1;if((_E91+_ad)>this._iX2)_ad=this._iX2-_E91;}if(_ad>this._iX2-_E91)return "";else {return _gY2(new Uint8Array(this._eO,_E91,_ad),_ad,0);}};_eX2.prototype._rY2=function(_E91,_ad){if(this._iX2==0)return;if(_ad<0)_ad=this._iX2;if(this._qW2==_NW2){while(_E91<0)_E91+=this._iX2;while(_E91>=this._iX2)_E91-=this._iX2; }else {if(_E91<0)_E91=0;if(_E91>=this._iX2)_E91=this._iX2-1;if((_E91+_ad)>this._iX2)_ad=this._iX2-_E91;}if(_ad>this._iX2-_E91)return "";else return sha1_string_utf8(String.fromCharCode.apply(null,new Uint8Array(this._eO,_E91,_ad)));};_eX2.prototype._sY2=function(filename,offset,size){_rl(filename,this._tY2(offset,size));};_eX2.prototype._uY2=function(_E91,_ad){if(this._iX2==0)return;if(_ad<0)_ad=this._iX2;_E91=clamp(_E91,0,this._iX2-1);_ad=clamp(_ad,0,this._iX2-_E91);if(_ad<=0)return;var _vY2=new Uint8Array(this._eO, _E91,_ad);var _wY2=new Zlib.Deflate(_vY2);var _xY2=_wY2.compress();return _xY2;};_eX2.prototype._yY2=function(){result=undefined;try{var _502=new Uint8Array(this._eO,0,this._lX2);var _Cu2=new Zlib.Inflate(_502);var result=_Cu2.decompress();}catch(_zE){show_debug_message("buffer decompress exception: "+_zE.message);}return result;};_eX2.prototype._tY2=function(_E91,_ad){if(this._iX2==0)return;if(_ad<0)_ad=this._iX2;if(_ad==0)return "";if(this._qW2==_NW2){while(_E91<0)_E91+=this._iX2;while(_E91>=this._iX2)_E91-=this._iX2; }else {if(_E91<0)_E91=0;if(_E91>=this._iX2)_E91=this._iX2-1;if((_E91+_ad)>this._iX2)_ad=this._iX2-_E91;}if(_ad>this._iX2-_E91){return "";}else {var _vY2=new Uint8Array(this._eO,_E91,_ad);var _6O="";for(var i=0;i<_ad;i++){_6O+=String.fromCharCode(_vY2[i]);}return _8X2(_6O,_ad);}};_eX2.prototype._zY2=function(_AY2,_E91){var _nX2=new Uint8Array(this._eO);return _YW2(_AY2,_nX2.length-_E91,_nX2,_E91,false,0);};_eX2.prototype._gO=function(_od,_Vn){var _BY2;var size=0;this._cO=(((this._cO+this._kX2)+(this._jX2-1))&~(this._jX2-1))-this._kX2; if(this._cO>=this._iX2&&this._qW2==_NW2){while(this._cO>=this._iX2){this._wX2();this._cO-=this._iX2;}}if((this._cO>=this._iX2)&&(this._qW2!=_4k)){return _JW2;}var _yX2=_xX2(_od);if((_od===_UW2)||(_od===_WW2)){_BY2=_AI(_Vn);_yX2=_BY2.length;if(_od===_UW2)_yX2++;}if((this._cO+_yX2)>this._iX2){if(this._qW2==_4k){var _CY2=this._iX2;var _B52=this._iX2;while((this._cO+_yX2)>_B52){_B52=(_B52<<1);}this._pX2(_B52);}else {if(this._qW2!=_NW2){return _JW2;}}}switch(_od){case _TW2:if(_Vn==true){_Vn=1;}else {_Vn=0;}case _hO:{ this._Y01.setUint8(this._cO,_Vn);this._cO++;}break;case _UW2:case _WW2:{for(var i=0;i<_BY2.length;i++){var _3i1=_BY2.charCodeAt(i)&0xff;this._Y01.setUint8(this._cO++,_3i1,true);}if(_od===_UW2){this._Y01.setUint8(this._cO++,0,true);}}break;case _QW2:this._Y01.setInt8(this._cO,_Vn);this._cO++;break;case _rf1:this._Y01.setUint16(this._cO,_Vn,true);this._cO+=2;break;case _Ye1:this._Y01.setInt16(this._cO,_Vn,true);this._cO+=2;break;case _ek:this._Y01.setInt32(this._cO,_Vn,true);this._cO+=4;break;case _5k:this._Y01.setUint32(this._cO, _Vn,true);this._cO+=4;break;case _Le2:this._Y01.setFloat32(this._cO,_Vn,true);this._cO+=4;break;case _SW2:this._Y01.setFloat64(this._cO,_Vn,true);this._cO+=8;break;case _VW2:var _DY2=yyGetInt64(_Vn);this._Y01.setUint32(this._cO,_DY2._Bh1,true);this._cO+=4;this._Y01.setUint32(this._cO,_DY2._0i1,true);this._cO+=4;break;}this._tX2(-1);return 0;};_eX2.prototype._EY2=function(_od,_E91){var size=_xX2(_od);if(_E91<0)return undefined;if(this._qW2!=_NW2){if(_E91>(this._iX2-size))return undefined;}else {while(_E91>=this._iX2){ _E91-=this._iX2;}}var _pb;switch(_od){case _TW2:_pb=this._Y01.getUint8(_E91);if(_pb==1){_pb=true;}else {_pb=false;}break;case _hO:{_pb=this._Y01.getUint8(_E91);}break;case _QW2:_pb=this._Y01.getInt8(_E91);break;case _rf1:_pb=this._Y01.getUint16(_E91,true);break;case _Ye1:_pb=this._Y01.getInt16(_E91,true);break;case _ek:_pb=this._Y01.getInt32(_E91,true);break;case _5k:_pb=this._Y01.getUint32(_E91,true);break;case _Le2:_pb=this._Y01.getFloat32(_E91,true);break;case _SW2:_pb=this._Y01.getFloat64(_E91,true);break; case _VW2:var _Bh1=this._Y01.getUint32(_E91,true);var _0i1=this._Y01.getUint32(_E91+4,true);_pb=new Long(_Bh1,_0i1);break;case _UW2:case _WW2:{_pb="";var chr;var _CI=0;var _FY2=_E91;while(_FY2>10)+0xD7C0)+String.fromCharCode((_Y4&0x3FF)|0xDC00);}if(_Y4==0x00)break;if(chr<0)chr=String.fromCharCode(_Y4);_pb+=chr;}}break;}return _pb;};_eX2.prototype._GY2=function(_E91,_ad,_od,_Vn,_HY2,_IY2){if(this._iX2==0)return;if(_ad<0)_ad=this._iX2;if(this._qW2==_NW2){while(_E91<0)_E91+=this._iX2; while(_E91>=this._iX2)_E91-=this._iX2;}else {if(_E91<0)return;if(_E91>=this._iX2)return;if((_E91+_ad)>this._iX2)_ad=this._iX2-_E91;}var _nX2=new Uint8Array(this._eO);var _JY2=_E91;var _KY2=_E91;var _LY2=_JY2;var _MY2=0;var _NY2=_E91+_ad;var _OY2=_xX2(_od);if((_od===_UW2)||(_od===_WW2)){_BY2=_AI(_Vn);_OY2=_BY2.length;if(_od===_UW2)_OY2++;}var _PY2;if(_HY2<=0)_PY2=true;else {_PY2=false;_OY2=_I6(_OY2,_HY2);}var _QY2;if(((_PY2&&((_JY2%this._jX2)==0))||!_PY2)&&(_OY2<=_ad)){_QY2=true;}else {_QY2=false;}var i;while(_MY2<_ad){ _KY2=_JY2%this._iX2;if(_QY2){if((_KY2+_OY2)<=this._iX2){this._RY2(_od,_KY2,_Vn);_KY2+=_OY2;_JY2+=_OY2;this._tX2(_KY2);}else {this._RY2(_od,_KY2,_Vn);_KY2+=_OY2;if(_KY2>=this._iX2){this._tX2(this._iX2);_KY2=0;}_JY2+=_OY2;}_MY2+=_OY2;_QY2=false;}else {var _SY2;if(_PY2)_SY2=(_JY2+(this._jX2-1))&~(this._jX2-1);else _SY2=_LY2+_HY2;if(_SY2>_NY2){_SY2=_NY2;}var _TY2=_SY2-_JY2;if(_IY2){if((_KY2+_TY2)<=this._iX2){for(i=0;i<_TY2;i++){_nX2[_KY2+i]=0;}_KY2+=_TY2;this._tX2(_KY2);}else {var _UY2=_TY2;while(_UY2>0){var _VY2=_I6(_UY2, this._iX2-_KY2);for(i=0;i<_VY2;i++){_nX2[_KY2+i]=0;}_KY2+=_VY2;this._tX2(_KY2);_KY2=_KY2%this._iX2;_UY2-=_VY2;}}}else {_KY2+=_TY2;this._tX2(_KY2);}_JY2+=_TY2;_MY2+=_TY2;_LY2=_JY2;if((_MY2+_OY2)<=_ad){_QY2=true;}}}return;};_eX2.prototype._RY2=function(_od,_E91,_Vn){if(_E91<0)return;var size=_xX2(_od);if(this._qW2!=_NW2){if(_E91>(this._iX2-size))return 0;}else {while(_E91>=this._iX2){_E91-=this._iX2;}}switch(_od){case _TW2:if(_Vn==true){_Vn=1;}else {_Vn=0;}case _hO:this._Y01.setUint8(_E91,_Vn);this._tX2(_E91+1); return;case _QW2:this._Y01.setInt8(_E91,_Vn);this._tX2(_E91+1);return;case _rf1:this._Y01.setUint16(_E91,_Vn,true);break;case _Ye1:this._Y01.setInt16(_E91,_Vn,true);break;case _ek:this._Y01.setInt32(_E91,_Vn,true);break;case _5k:this._Y01.setUint32(_E91,_Vn,true);break;case _Le2:this._Y01.setFloat32(_E91,_Vn,true);break;case _SW2:this._Y01.setFloat64(_E91,_Vn,true);break;case _VW2:var _DY2=yyGetInt64(_Vn);this._Y01.setUint32(_E91,_DY2._Bh1,true);this._Y01.setUint32(_E91+4,_DY2._0i1,true);break;case _UW2:case _WW2:{ for(var i=0;i<_Vn.length;i++){var _3i1=_Vn.charCodeAt(i)&0xff;this._Y01.setUint8(_E91++,_3i1,true);}if(_od===_UW2){this._Y01.setUint8(_E91++,0,true);}this._tX2(_E91);}return;}this._tX2(_E91+size);};_eX2.prototype._c01=function(_vM,_E91){switch(_vM){case _dk:if(_E91<0)_E91=0;this._cO=_E91;break;case _XW2:this._cO+=_E91;if(this._cO<0)this._cO=0;break;case _pf1:this._cO=this._iX2-_E91;if(this._cO>this._iX2)this._cO=this._iX2;break;}return this._cO;};function buffer_seek(buffer,_WY2,offset){var _Ca=_bO._E5(yyGetInt32(buffer)); if(!_Ca)return 0;return _Ca._c01(yyGetInt32(_WY2),yyGetInt32(offset));}function buffer_read(buffer,type){var _Ca=_bO._E5(yyGetInt32(buffer));if(!_Ca)return 0;return _Ca._vX2(yyGetInt32(type));}function buffer_peek(buffer,offset,type){var _Ca=_bO._E5(yyGetInt32(buffer));if(!_Ca)return 0;return _Ca._EY2(yyGetInt32(type),yyGetInt32(offset));}function buffer_poke(buffer,offset,type,value){var _Ca=_bO._E5(yyGetInt32(buffer));if(!_Ca)return 0;return _Ca._RY2(yyGetInt32(type),yyGetInt32(offset),value);}function buffer_create_from_vertex_buffer(_XY2, _od,_fX2){_XY2=yyGetInt32(_XY2);if(_XY2>=_YY2.length||_XY2<0){console.log("buffer_create_from_vertex_buffer: Specified vertex buffer doesn't exist.");return -1;}_fX2=yyGetInt32(_fX2);var _0V2=_YY2[_XY2];if(_0V2){if(_0V2._ed){console.log("buffer_create_from_vertex_buffer: Can't create buffer from frozen vertex buffer.");return -1;}if(_0V2._ge()==0||_0V2._Gd()==null){console.log("buffer_create_from_vertex_buffer: Can't create buffer from empty vertex buffer.");return -1;}if(_fX2<1||_fX2>1024){console.log("buffer_create_from_vertex_buffer: Illegal alignment size"); return -1;}var size=_0V2._ge()*_0V2._Gd()._xd;var _ZY2=buffer_create(size,yyGetInt32(_od),_fX2);if(_ZY2>=0){var __Y2=_bO._E5(_ZY2);var _901=new Int8Array(_0V2._he(),0,_0V2._ge()*_0V2._Gd()._xd);var _0Z2=new Int8Array(__Y2._eO);for(var i=0;i=_YY2.length||_XY2<0){console.log("buffer_create_from_vertex_buffer_ext: Specified vertex buffer doesn't exist."); return -1;}_fX2=yyGetInt32(_fX2);var _0V2=_YY2[_XY2];if(_0V2){if(_0V2._ed){console.log("buffer_create_from_vertex_buffer_ext: Can't create buffer from frozen vertex buffer.");return -1;}if(_0V2._ge()==0||_0V2._Gd()==null){console.log("buffer_create_from_vertex_buffer_ext: Can't create buffer from empty vertex buffer.");return -1;}if(_fX2<1||_fX2>1024){console.log("buffer_create_from_vertex_buffer: Illegal alignment size");return -1;}var size=yyGetInt32(_A02)*_0V2._Gd()._xd;var offset=yyGetInt32(_1Z2)*_0V2._Gd()._xd; var _ZY2=buffer_create(size,yyGetInt32(_od),_fX2);if(_ZY2>=0){var __Y2=_bO._E5(_ZY2);var _901=new Int8Array(_0V2._he(),offset,size);var _0Z2=new Int8Array(__Y2._eO);for(var i=0;i=_YY2.length||_XY2<0){console.log("buffer_copy_from_vertex_buffer: Specified vertex buffer doesn't exist."); return -1;}var _0V2=_YY2[_XY2];if(_0V2){if(_0V2._ed){console.log("buffer_copy_from_vertex_buffer: Can't create buffer from frozen vertex buffer.");return -1;}if(_0V2._ge()==0||_0V2._Gd()==null){console.log("buffer_copy_from_vertex_buffer: Can't create buffer from empty vertex buffer.");return -1;}var _F9=yyGetInt32(_A02);var _4Z2=yyGetInt32(_1Z2);if(_F9<=0){console.log("buffer_copy_from_vertex_buffer: specified number of vertices is invalid");return -1;}if((_4Z2<0)||(_4Z2>=_0V2._ge())){console.log("buffer_copy_from_vertex_buffer: specified start vertex is out of range"); return -1;}if((_4Z2+_F9)>_0V2._ge()){_F9=_0V2._ge()-_4Z2;}var _Ca=_bO._E5(yyGetInt32(_2Z2));if(!_Ca){console.log("buffer_copy_from_vertex_buffer: specified buffer does not exist");return -1;}if((_3Z2<0)||(_3Z2>_Ca._iX2)){console.log("buffer_copy_from_vertex_buffer: destination offset is out of range of the destination buffer");return -1;}var size=_F9*_0V2._Gd()._xd;var offset=_4Z2*_0V2._Gd()._xd;var _901=new Int8Array(_0V2._he(),offset,size);var _0Z2=new Int8Array(_Ca._eO);for(var i=0;i=_aZ2)_bZ2-=_aZ2;if((_bZ2+_cZ2)<=_aZ2)_fZ2=false;}else {if(_bZ2<0)_bZ2=0;if(_bZ2>=_aZ2)_bZ2=_aZ2-1;if((_bZ2+_cZ2)>_aZ2)_cZ2=_aZ2-_bZ2;}var _gZ2=_cZ2;if(!_eZ2){if(_8Z2._iX2<=0){ return 0;}if(_Nm){while(_dZ2<0)_dZ2+=_8Z2._iX2;while(_dZ2>=_8Z2._iX2)_dZ2-=_8Z2._iX2;if((_dZ2+_gZ2)<=_8Z2._iX2)_Nm=false;}else {if(_dZ2<0)_dZ2=0;if(_dZ2>=_8Z2._iX2)_dZ2=_8Z2._iX2-1;if((_dZ2+_gZ2)>_8Z2._iX2)_gZ2=_8Z2._iX2-_dZ2;}}else {if(_dZ2<0)_dZ2=0;if((_dZ2+_gZ2)>_8Z2._iX2){var _hZ2=_dZ2+_gZ2;_8Z2._pX2(_hZ2);}}var _iZ2=new Uint8Array(_9Z2._eO);var _nX2=new Uint8Array(_8Z2._eO);var i;if(_Nm||_fZ2){var _jZ2=_gZ2;while(_jZ2>0){var _kZ2=_I6(_jZ2,(_8Z2._iX2-_dZ2));_kZ2=_I6(_kZ2,_aZ2-_bZ2);for(i=0;i<_kZ2;i++){ _nX2[_dZ2+i]=_iZ2[_bZ2+i];}_dZ2+=_kZ2;this._tX2(_dZ2);_bZ2+=_kZ2;_dZ2=_dZ2%_8Z2._iX2;_bZ2=_bZ2%_aZ2;_jZ2-=_kZ2;}}else {for(i=0;i<_aZ2;i++){_nX2[_dZ2+i]=_iZ2[_bZ2+i];}_8Z2._tX2(_dZ2+_gZ2);}return 1;}function buffer_copy(_lZ2,_mZ2,size,_nZ2,_oZ2){var _Ca=_bO._E5(yyGetInt32(_lZ2));if(!_Ca)return _MW2;var _pZ2=_bO._E5(yyGetInt32(_nZ2));if(!_pZ2)return _MW2;var _qZ2;if((_pZ2._qW2==_4k)||(_pZ2._iX2==0))_qZ2=true;else _qZ2=false;var wrap;if(_pZ2._qW2==_NW2)wrap=true;else wrap=false;var _rZ2;if(_Ca._qW2==_NW2)_rZ2=true; else _rZ2=false;var _N01=_7Z2(_pZ2,_Ca,_Ca._iX2,yyGetInt32(_mZ2),yyGetInt32(size),yyGetInt32(_oZ2),_qZ2,wrap,_rZ2);}function buffer_get_type(_J3){var _Ca=_bO._E5(yyGetInt32(_J3));if(!_Ca)return _MW2;return _Ca._qW2;}function buffer_get_alignment(_J3){var _Ca=_bO._E5(yyGetInt32(_J3));if(!_Ca)return _MW2;return _Ca._jX2;}function buffer_get_size(_J3){var _Ca=_bO._E5(yyGetInt32(_J3));if(!_Ca)return _MW2;return _Ca._iX2;}function buffer_resize(_J3,_sZ2){var _Ca=_bO._E5(yyGetInt32(_J3));if(!_Ca)return _MW2;return _Ca._pX2(yyGetInt32(_sZ2)); }function buffer_sizeof(_od){return _xX2(yyGetInt32(_od));}function buffer_fill(buffer,offset,type,value,size){var _Ca=_bO._E5(yyGetInt32(buffer));if(!_Ca)return _MW2;return _Ca._GY2(yyGetInt32(offset),yyGetInt32(size),yyGetInt32(type),value,-1,true);}function buffer_md5(buffer,offset,size){var _Ca=_bO._E5(yyGetInt32(buffer));if(!_Ca)return _MW2;return _Ca._qY2(yyGetInt32(offset),yyGetInt32(size));}function buffer_crc32(buffer,offset,size){var _Ca=_bO._E5(yyGetInt32(buffer));if(!_Ca)return _MW2;return _Ca._pY2(yyGetInt32(offset), yyGetInt32(size));}function buffer_sha1(buffer,offset,size){var _Ca=_bO._E5(yyGetInt32(buffer));if(!_Ca)return _MW2;return _Ca._rY2(yyGetInt32(offset),yyGetInt32(size));}function buffer_base64_encode(buffer,offset,size){var _Ca=_bO._E5(yyGetInt32(buffer));if(!_Ca)return _MW2;return _Ca._tY2(yyGetInt32(offset),yyGetInt32(size));}function _tZ2(c){return(_uZ2(c)||(c=='+')||(c=='/'));}function _vZ2(_wZ2){var _xZ2=_wZ2.length;var _yZ2=((_xZ2+3)&~3)-4;var _zZ2=0;if(_yZ2>0){var _de=_yZ2+1;while((_de<=_xZ2)&&(_wZ2.charAt(_de)!='=')&&_tZ2(_wZ2.charAt(_de))){ _zZ2++;_de++;}}var _AZ2=(_yZ2/4)*3;_AZ2+=_zZ2;return _AZ2;};function buffer_base64_decode(_wZ2){_wZ2=yyGetString(_wZ2);var _BZ2=_vZ2(_wZ2);var _CZ2=buffer_create(_BZ2,_b01,1);var _Ca=_bO._E5(_CZ2);if(!_Ca)return _MW2;_Ca._zY2(_wZ2,0);_Ca._tX2(_BZ2,true);return _CZ2;}function buffer_compress(_DZ2,_E91,_ad){var _Ca=_bO._E5(yyGetInt32(_DZ2));if(!_Ca)return _MW2;var _xY2=_Ca._uY2(yyGetInt32(_E91),yyGetInt32(_ad));if(_xY2!=undefined&&_xY2.length>0){var index=_5Z2(_xY2);return index;}return -1;}function buffer_decompress(_Re1){ var _Ca=_bO._E5(yyGetInt32(_Re1));if(!_Ca)return _MW2;var _EZ2=_Ca._yY2();if(_EZ2!=undefined&&_EZ2.length>0){var index=_5Z2(_EZ2);return index;}return -1;}function buffer_base64_decode_ext(buffer,_wZ2,offset){var _Ca=_bO._E5(yyGetInt32(buffer));if(!_Ca)return _MW2;var _BZ2=_vZ2(_wZ2);if((offset+_BZ2)>_Ca._iX2){_Ca._pX2(offset+_BZ2);}_Ca._tX2(offset+_BZ2);_Ca._zY2(yyGetString(_wZ2),yyGetInt32(offset));}function buffer_save(buffer,filename){var _Ca=_bO._E5(yyGetInt32(buffer));if(!_Ca)return _MW2;return _Ca._sY2(yyGetString(filename), 0,_Ca._iX2);}function buffer_delete(_J3){_J3=yyGetInt32(_J3);var _Ca=_bO._E5(_J3);if(!_Ca)return _MW2;_Ca._eO=null;_Ca._Y01=null;_bO._rj(_J3);return 0;}function buffer_async_group_begin(){_Ib("buffer_async_group_begin()");}function buffer_async_group_option(){_Ib("buffer_async_group_option()");}function buffer_async_group_end(){return _FZ2;}var _FZ2=-1;function buffer_load_async(_sl,_Zq,_E91,_ad){_sl=yyGetInt32(_sl);_Zq=yyGetString(_Zq);_E91=yyGetInt32(_E91);var _Ca=_bO._E5(_sl);if(!_Ca)return -1;var _cG=_GZ2(_Zq, true);if(_cG){if(_ad>=0&&_cG.length>_ad){_cG=_cG.slice(0,_ad);}var _HZ2=_Ca._cO;_Ca._cO=_E91;_Ca._gO(_WW2,_cG);_Ca._cO=_HZ2;var _Ef=_Ff._Gf(_sl,_Zq,_hW2,undefined);_Ef._Kf=true;_Ef._Jf=200;_IZ2=0;return _sl;}try{_Zq=_Ec1(_Zq);var _pA=new XMLHttpRequest();_pA.open("GET",_Zq,true);_pA.responseType="arraybuffer";_pA.onload=_1t;_pA._tW2=_E91;_pA._vW2=yyGetInt32(_ad);_pA._JZ2=_Zq;_pA._sW2=_sl;_Ff._Gf(_sl,_Zq,_hW2,_pA);_pA.send(null);_IZ2=_pA.status;}catch(e){return -1;}_FZ2=_sl;return _sl;}function buffer_load(_Zq){ _Zq=yyGetString(_Zq);var _KZ2=true;var _cG=_GZ2(_Zq,true);if(_cG==null){_cG=_GZ2(_Zq,false);_KZ2=false;}if(_cG==null)return -1;if(_KZ2){return buffer_base64_decode(_cG);}else {var _q4=new ArrayBuffer(_cG.length);var _LZ2=new Uint8Array(_q4);for(var i=0;i<_cG.length;++i){_LZ2[i]=_cG.charCodeAt(i)&0xff;}return _5Z2(_LZ2);}}function buffer_save_ext(buffer,filename,offset,size){var _Ca=_bO._E5(yyGetInt32(buffer));if(!_Ca)return _MW2;return _Ca._sY2(yyGetString(filename),yyGetInt32(offset),yyGetInt32(size));}function buffer_save_async(buffer, filename,offset,size){buffer=yyGetInt32(buffer);filename=yyGetString(filename);buffer_save_ext(buffer,filename,yyGetInt32(offset),yyGetInt32(size));var _Ef=_Ff._Gf(buffer,filename,_hW2,undefined);_IZ2=0;_Ef._Kf=true;_Ef._Jf=200;return buffer;}function buffer_load_ext(buffer,filename,offset){var _Ca=_bO._E5(yyGetInt32(buffer));var _nX2=new Uint8Array(_Ca._eO);buffer_load_partial(buffer,filename,0,_nX2.length-offset,offset)}function buffer_load_partial(buffer,filename,_mZ2,_Yi,_MZ2){var _Ca=_bO._E5(yyGetInt32(buffer)); if(!_Ca)return _MW2;filename=yyGetString(filename);_MZ2=yyGetInt32(_MZ2);var _KZ2=true;var _cG=_GZ2(filename,true);if(_cG==null){_cG=_GZ2(filename,false);_KZ2=false;}if(_cG==null)return -1;var _nX2=new Uint8Array(_Ca._eO);if(_KZ2){var _BZ2=_vZ2(_cG);if((_MZ2+_BZ2)>_Ca._iX2){_Ca._pX2(_MZ2+_BZ2);_nX2=new Uint8Array(_Ca._eO);}_Ca._tX2(_MZ2+_BZ2);_YW2(_cG,_Yi,_nX2,_MZ2,false,yyGetInt32(_mZ2));}else {var _q4=new ArrayBuffer(_cG.length);var _LZ2=new Uint8Array(_q4);for(var i=0;i<_cG.length;++i){_LZ2[i]=_cG.charCodeAt(i)&0xff; }var i,__5;if((_MZ2+_Yi)>_Ca._iX2){_Ca._pX2(_MZ2+_Yi);_nX2=new Uint8Array(_Ca._eO);}_Ca._tX2(_MZ2+_Yi);for(i=_MZ2,__5=_mZ2;i<_nX2.length&&__5<_LZ2.length;i++,__5++){_nX2[i]=_LZ2[__5];}}}function buffer_get_address(_J3){var _Ca=_bO._E5(yyGetInt32(_J3));if(!_Ca)return undefined;return _Ca._eO;}function buffer_get_surface(_sl,_NZ2,_E91){var _Ca=_bO._E5(yyGetInt32(_sl));var _ms=_cs._E5(yyGetInt32(_NZ2));if(!_Ca||!_ms)return false;var data=null;var _ds=_ms._1a;try{data=_ds._Oj1(0,0,_ms.__c,_ms._0d);}catch(_bk){return false; }var _OZ2=data.data;_Ca._c01(_dk,yyGetInt32(_E91));for(var i=0;i<_OZ2.length;i++){_Ca._RY2(_hO,i,_OZ2[i]);}return true;}function buffer_set_used_size(_J3,_ad){var _Ca=_bO._E5(yyGetInt32(_J3));if(!_Ca)return false;_Ca._tX2(yyGetInt32(_ad));}function buffer_set_surface(_sl,_NZ2,_E91){var _Ca=_bO._E5(yyGetInt32(_sl));var _ms=_cs._E5(yyGetInt32(_NZ2));if(!_Ca||!_ms)return false;var data=null;var _ds=_ms._1a;try{var _PZ2=_ds.createImageData(_ms.__c,_ms._0d);var data=_PZ2.data;var _Yi=_ms.__c*_ms._0d*4;for(var i=0;i<_Yi; i++){data[i]=_Ca._EY2(_hO,i+_E91);}_ds._QZ2(_PZ2,0,0);}catch(_bk){return false;}return true;}var vertex_create_buffer=function(){_Ib("vertex_create_buffer");};var vertex_create_buffer_ext=function(size){_Ib("vertex_create_buffer_ext");};var vertex_delete_buffer=function(buffer){_Ib("vertex_delete_buffer");};var vertex_begin=function(buffer,_Eh){_Ib("vertex_begin");};var vertex_end=function(buffer){_Ib("vertex_end");};var vertex_position=function(buffer,x,y){_Ib("vertex_position");};var vertex_position_3d=function(buffer, x,y,z){_Ib("vertex_position_3d");};var vertex_colour=function(buffer,_m4,alpha){_Ib("vertex_colour");};var vertex_color=function(buffer,_m4,alpha){_Ib("vertex_color");};var _RZ2=function(buffer,_e4,_f4,_g4,_h4){_Ib("vertex_rgba");};var vertex_argb=function(buffer,_e4,_f4,_g4,_h4){_Ib("vertex_argb");};var vertex_texcoord=function(buffer,_X4,_Y4){_Ib("vertex_texcoord");};var vertex_normal=function(buffer,x,y,z){_Ib("vertex_normal");};var vertex_float1=function(buffer,x){_Ib("vertex_float1");};var vertex_float2=function(buffer, x,y){_Ib("vertex_float2");};var vertex_float3=function(buffer,x,y,z){_Ib("vertex_float3");};var vertex_float4=function(buffer,x,y,z,w){_Ib("vertex_float4");};var vertex_ubyte4=function(buffer,x,y,z,w){_Ib("vertex_ubyte4");};var vertex_freeze=function(buffer){_Ib("vertex_freeze");};var vertex_submit=function(buffer){_Ib("vertex_submit");};var vertex_get_number=function(buffer){_Ib("vertex_get_number");};var vertex_get_buffer_size=function(buffer){_Ib("vertex_get_buffer_size");};var vertex_create_buffer_from_buffer=function(buffer){ _Ib("vertex_create_buffer_from_buffer");};var vertex_create_buffer_from_buffer_ext=function(buffer){_Ib("vertex_create_buffer_from_buffer_ext");};var draw_flush=function(){};var _SZ2=8*1024;var _YY2=[];function _TZ2(){vertex_create_buffer=_UZ2;vertex_create_buffer_ext=_VZ2;vertex_create_buffer_from_buffer=_WZ2;vertex_create_buffer_from_buffer_ext=_XZ2;vertex_delete_buffer=_YZ2;vertex_begin=_ZZ2;vertex_end=__Z2;vertex_position=_0_2;vertex_position_3d=_1_2;vertex_colour=_2_2;vertex_color=_2_2;_RZ2=_3_2; vertex_argb=_4_2;vertex_texcoord=_5_2;vertex_normal=_6_2;vertex_float1=_7_2;vertex_float2=_8_2;vertex_float3=_9_2;vertex_float4=_a_2;vertex_ubyte4=_b_2;vertex_freeze=_c_2;vertex_submit=_d_2;vertex_get_number=_e_2;vertex_get_buffer_size=_f_2;draw_flush=_g_2;}function _XZ2(_sl,_7f1,_bZ2,_h_2){_7f1=yyGetInt32(_7f1);_bZ2=yyGetInt32(_bZ2);_h_2=yyGetInt32(_h_2);var _he1=0;var _V32=_e8._Lc(_7f1);var _Ca=_bO._E5(yyGetInt32(_sl));if(!_Ca||!_V32)return -1;if(_h_2==-1){_bZ2=0;_he1=_Ca._lX2;_h_2=_he1/_V32._xd;}else { _he1=_h_2*_V32._xd;if((_he1+_bZ2)>_Ca._lX2){_he1=(_Ca._lX2-_bZ2);_h_2=~~(_he1/_V32._xd);_he1=_h_2*_V32._xd;}}var _i_2=vertex_create_buffer_ext(_he1);var _j_2=_YY2[_i_2];var _iZ2=new Uint8Array(_Ca._eO);var _nX2=new Uint8Array(_j_2._he());_j_2._Cd(_7f1);var src=_bZ2;for(var i=0;i<_he1;i++){_nX2[i]=_iZ2[src++];}_j_2._ee(_h_2);_j_2._Ed();return _i_2;}function _WZ2(_sl,_7f1){return _XZ2(_sl,_7f1,0,-1);}function _UZ2(){return vertex_create_buffer_ext(_SZ2);}function _VZ2(_ad){var _k_2=new _9d(yyGetInt32(_ad));var _l_2=_YY2.length; for(var i=0;i<_YY2;i++){if((_YY2[i]===null)||(_YY2[i]===undefined)){_l_2=i;break;}}_YY2[_l_2]=_k_2;return _l_2;}function _YZ2(_sl){_YY2[yyGetInt32(_sl)]=null;}function _ZZ2(_sl,_7f1){_YY2[yyGetInt32(_sl)]._Cd(yyGetInt32(_7f1));}function __Z2(_sl){_YY2[yyGetInt32(_sl)]._Ed();}function _0_2(_sl,x,y){_YY2[yyGetInt32(_sl)]._Hd(yyGetReal(x),yyGetReal(y));}function _1_2(_sl,x,y,z){_YY2[yyGetInt32(_sl)]._Kd(yyGetReal(x),yyGetReal(y),yyGetReal(z));}function _2_2(_sl,_m4,alpha){_YY2[yyGetInt32(_sl)]._Md(yyGetInt32(_m4), yyGetReal(alpha));}function _3_2(_sl,_Rd){_YY2[yyGetInt32(_sl)]._Qd(yyGetInt32(_Rd));}function _4_2(_sl,_Td){_YY2[yyGetInt32(_sl)]._Sd(yyGetInt32(_Td));}function _5_2(_sl,_X4,_Y4){_YY2[yyGetInt32(_sl)]._Ud(yyGetReal(_X4),yyGetReal(_Y4));}function _6_2(_sl,x,y,z){_YY2[yyGetInt32(_sl)]._Wd(yyGetReal(x),yyGetReal(y),yyGetReal(z));}function _7_2(_sl,x){_YY2[yyGetInt32(_sl)]._Yd(yyGetReal(x));}function _8_2(_sl,x,y){_YY2[yyGetInt32(_sl)].__d(yyGetReal(x),yyGetReal(y));}function _9_2(_sl,x,y,z){_YY2[yyGetInt32(_sl)]._0e(yyGetReal(x), yyGetReal(y),yyGetReal(z));}function _a_2(_sl,x,y,z,w){_YY2[yyGetInt32(_sl)]._1e(yyGetReal(x),yyGetReal(y),yyGetReal(z),yyGetReal(w));}function _b_2(_sl,x,y,z,w){_YY2[yyGetInt32(_sl)]._3e(yyGetInt32(x),yyGetInt32(y),yyGetInt32(z),yyGetInt32(w));}function _c_2(_sl){var _k_2=_YY2[yyGetInt32(_sl)];if(_k_2){_k_2._5e();}}function _g_2(){_e8._Dj1();}function _d_2(_sl,_ae,_be){_e8._Dj1();var _Vc,_k_2=_YY2[yyGetInt32(_sl)];if(_k_2){if(_ua!=-1){var _cZ1=_m_2[_ua]._dZ1;var _U32=_k_2._Gd();if(_U32._rd.length<_cZ1.__Y1.length){ _yi("Trying to use a vertex buffer with too few inputs for the seleted shader.");}}_k_2._9e(_yc(yyGetInt32(_ae)),_be);}}function _e_2(_sl){var _k_2=_YY2[yyGetInt32(_sl)];if(_k_2){return _k_2._ge();}return 0;}function _f_2(_sl){var _k_2=_YY2[yyGetInt32(_sl)];if(_k_2){return _k_2._he().byteLength;}return 0;}/*@constructor */function _PM2(){this.__type="[BuiltIn]";this.room=0;this.room_first=0;this.room_last=0;this.transition_kind=0;this.transition_steps=0;this.score=0;this.lives=0;this.health=100;this.game_id=0; this.working_directory="/";this.temp_directory="/";this.program_directory="/";this.delta_time=0;this._n_2=0;this.room_width=0;this.room_height=0;this.room_caption="room";this.room_speed=30;this.room_persistent=false;this.background_color=0x00000000;this.background_showcolor=false;this._o_2=false;this._p_2=false;this._q_2=0;this._r_2=0;this._s_2=0;this._t_2=0;this._u_2=0;this._v_2=0;this._w_2=0;this._x_2=1.0;this._y_2=1.0;this._z_2=0;this._A_2=0;this._B_2=0;this._C_2=1.0;this.view_enabled=false;this.view_current=0; this.view_visible=0;this.view_xview=0;this.view_yview=0;this.view_wview=0;this.view_hview=0;this.view_xport=0;this.view_yport=0;this.view_wport=0;this.view_hport=0;this.view_angle=0;this.view_hborder=0;this.view_vborder=0;this.view_hspeed=0;this.view_vspeed=0;this.view_object=0;this.mouse_x=0;this.mouse_y=0;this.mouse_button=0;this.mouse_lastbutton=0;this.keyboard_key=0;this.keyboard_lastkey=0;this.keyboard_lastchar="";this.keyboard_string="";this.webgl_enabled=false;this.show_score=false;this.show_lives=false; this.show_health=false;this.caption_score="score";this.caption_lives="lives";this.caption_health="health";this.fps=0;this.fps_real=0;this.current_time=0;this.current_year=0;this.current_month=0;this.current_day=0;this.current_weekday=0;this.current_hour=0;this.current_minute=0;this.current_second=0;this.event_action=0;this._9R2=0;this.error_occurred=0;this.error_last=0;this.gamemaker_registered=true;this.gamemaker_pro=true;this._D_2=8.2;this.async_load=-1;this.event_data=-1;this._E_2=-1;this.debug_mode=false; this.application_surface=-1;this.view_visible=[];this.view_xview=[];this.view_yview=[];this.view_wview=[];this.view_hview=[];this.view_xport=[];this.view_yport=[];this.view_wport=[];this.view_hport=[];this.view_angle=[];this.view_hborder=[];this.view_vborder=[];this.view_hspeed=[];this.view_vspeed=[];this.view_object=[];this.view_surface_id=[];this.view_camera=[];this._o_2=[];this._p_2=[];this._q_2=[];this._r_2=[];this._s_2=[];this._t_2=[];this._u_2=[];this._v_2=[];this._w_2=[];this._x_2=[];this._y_2=[]; this._z_2=[];this._A_2=[];this._B_2=[];this._C_2=[];}_PM2.prototype.get_argument_relative=function(_J3){return _Ul;};_PM2.prototype.get_instance_id=function(_J3){return _t3._NO._E5(_J3).id;};_PM2.prototype.get_instance_count=function(){return _t3._NO.length;};_PM2.prototype.set_view_enable=function(_Iz){_t3._6g=yyGetBool(_Iz);};_PM2.prototype.get_view_enable=function(){return _t3._6g;};_PM2.prototype.get_browser_width=function(){return _PK();};_PM2.prototype.get_browser_height=function(){return _QK(); };_PM2.prototype.get_delta_time=function(){return this.delta_time;};_PM2.prototype.get_os_type=function(){return _Ja1;};_PM2.prototype.get_os_device=function(){return _yo1();};_PM2.prototype.get_os_browser=function(){return _Ao1();};_PM2.prototype.get_os_version=function(){return _Bo1();};_PM2.prototype.get_async_load=function(){return this.async_load;};_PM2.prototype.get_event_data=function(){return this.event_data;};_PM2.prototype.get_display_aa=function(){return 0;};_PM2.prototype.get_iap_data=function(){ return this._E_2;};_PM2.prototype.set_current_room=function(_Jo){room_goto(yyGetInt32(_Jo));};_PM2.prototype.get_current_room=function(){return _t3.id;};_PM2.prototype.setbackground_color=function(_B3){_t3._F_2=this.background_color=yyGetInt32(_B3);};_PM2.prototype.getbackground_color=function(){return this.background_color;};_PM2.prototype._G_2=function(){return g_pBuiltIn.application_surface;};_PM2.prototype._H_2=function(_B3){g_pBuiltIn.view_visible[0]=~~_B3;};_PM2.prototype._I_2=function(_B3){g_pBuiltIn.view_xview[0]=~~_B3; };_PM2.prototype._J_2=function(_B3){g_pBuiltIn.view_yview[0]=~~_B3;};_PM2.prototype._K_2=function(_B3){g_pBuiltIn.view_wview[0]=~~_B3;};_PM2.prototype._L_2=function(_B3){g_pBuiltIn.view_hview[0]=~~_B3;};_PM2.prototype._M_2=function(_B3){g_pBuiltIn.view_xport[0]=~~_B3;};_PM2.prototype._N_2=function(_B3){g_pBuiltIn.view_yport[0]=~~_B3;};_PM2.prototype._O_2=function(_B3){g_pBuiltIn.view_wport[0]=~~_B3;};_PM2.prototype._P_2=function(_B3){g_pBuiltIn.view_hport[0]=~~_B3;};_PM2.prototype._Q_2=function(_B3){ g_pBuiltIn.view_angle[0]=_B3;};_PM2.prototype._R_2=function(_B3){g_pBuiltIn.view_hborder[0]=~~_B3;};_PM2.prototype._S_2=function(_B3){g_pBuiltIn.view_vborder[0]=~~_B3;};_PM2.prototype._T_2=function(_B3){g_pBuiltIn.view_hspeed[0]=~~_B3;};_PM2.prototype._U_2=function(_B3){g_pBuiltIn.view_vspeed[0]=~~_B3;};_PM2.prototype._V_2=function(_B3){g_pBuiltIn.view_object[0]=~~_B3;};_PM2.prototype._W_2=function(_B3){g_pBuiltIn.view_surface_id[0]=~~_B3;};_PM2.prototype._X_2=function(_B3){return g_pBuiltIn.view_visible[0]; };_PM2.prototype._Y_2=function(_B3){return g_pBuiltIn.view_xview[0];};_PM2.prototype._Z_2=function(_B3){return g_pBuiltIn.view_yview[0];};_PM2.prototype.___2=function(_B3){return g_pBuiltIn.view_wview[0];};_PM2.prototype._003=function(_B3){return g_pBuiltIn.view_hview[0];};_PM2.prototype._103=function(_B3){return g_pBuiltIn.view_xport[0];};_PM2.prototype._203=function(_B3){return g_pBuiltIn.view_yport[0];};_PM2.prototype._303=function(_B3){return g_pBuiltIn.view_wport[0];};_PM2.prototype._403=function(_B3){ return g_pBuiltIn.view_hport[0];};_PM2.prototype._503=function(_B3){return g_pBuiltIn.view_angle[0];};_PM2.prototype._603=function(_B3){return g_pBuiltIn.view_hborder[0];};_PM2.prototype._703=function(_B3){return g_pBuiltIn.view_vborder[0];};_PM2.prototype._803=function(_B3){return g_pBuiltIn.view_hspeed[0];};_PM2.prototype._903=function(_B3){return g_pBuiltIn.view_vspeed[0];};_PM2.prototype._a03=function(_B3){return g_pBuiltIn.view_object[0];};_PM2.prototype._b03=function(_B3){return g_pBuiltIn.view_surface_id[0]; };_PM2.prototype._c03=function(_B3){g_pBuiltIn.view_camera[0]=_B3;};_PM2.prototype._d03=function(_B3){return g_pBuiltIn.view_camera[0];};_PM2.prototype._e03=function(_B3){g_pBuiltIn._o_2[0]=_B3;};_PM2.prototype._f03=function(_B3){g_pBuiltIn._p_2[0]=_B3;};_PM2.prototype._g03=function(_B3){g_pBuiltIn._q_2[0]=_B3;};_PM2.prototype._h03=function(_B3){g_pBuiltIn._r_2[0]=~~_B3;};_PM2.prototype._i03=function(_B3){g_pBuiltIn._s_2[0]=~~_B3;};_PM2.prototype._j03=function(_B3){g_pBuiltIn._t_2[0]=~~_B3;};_PM2.prototype._k03=function(_B3){ g_pBuiltIn._u_2[0]=~~_B3;};_PM2.prototype._l03=function(_B3){g_pBuiltIn._v_2[0]=_B3;};_PM2.prototype._m03=function(_B3){g_pBuiltIn._w_2[0]=_B3;};_PM2.prototype._n03=function(_B3){g_pBuiltIn._x_2[0]=_B3;};_PM2.prototype._o03=function(_B3){g_pBuiltIn._y_2[0]=_B3;};_PM2.prototype._p03=function(_B3){g_pBuiltIn._z_2[0]=_B3;};_PM2.prototype._q03=function(_B3){g_pBuiltIn._A_2[0]=_B3;};_PM2.prototype._r03=function(_B3){g_pBuiltIn._B_2[0]=_B3&0xffffff;};_PM2.prototype.setbackground_showcolor=function(_B3){ _t3._s03=yyGetBool(_B3);};_PM2.prototype.getbackground_showcolor=function(_B3){return _t3._s03;};_PM2.prototype._t03=function(_B3){if(_B3<0)_B3=0;if(_B3>1)_B3=1;g_pBuiltIn._C_2[0]=_B3;};_PM2.prototype._u03=function(){return g_pBuiltIn._o_2[0];};_PM2.prototype._v03=function(){return g_pBuiltIn._p_2[0];};_PM2.prototype._w03=function(){return g_pBuiltIn._q_2[0];};_PM2.prototype._x03=function(){return g_pBuiltIn._r_2[0];};_PM2.prototype._y03=function(){return g_pBuiltIn._s_2[0];};_PM2.prototype._z03=function(){ return g_pBuiltIn._t_2[0];};_PM2.prototype._A03=function(){return g_pBuiltIn._u_2[0];};_PM2.prototype._B03=function(){return g_pBuiltIn._v_2[0];};_PM2.prototype._C03=function(){return g_pBuiltIn._w_2[0];};_PM2.prototype._D03=function(){return g_pBuiltIn._x_2[0];};_PM2.prototype._E03=function(){return g_pBuiltIn._y_2[0];};_PM2.prototype._F03=function(){return g_pBuiltIn._z_2[0];};_PM2.prototype._G03=function(){return g_pBuiltIn._A_2[0];};_PM2.prototype._H03=function(){return g_pBuiltIn._B_2[0];};_PM2.prototype._I03=function(){ return g_pBuiltIn._C_2[0];};_PM2.prototype.set_room_speed=function(_B3){_B3=yyGetReal(_B3);if(_v3){return _x3._cK(_B3);}else {return _t3._J03(_B3);}};_PM2.prototype.get_room_speed=function(_B3){if(_v3){return _x3._y3(_B3);}else {return _t3._K03;}};_PM2.prototype.set_room_caption=function(_B3){return _t3._L03(yyGetString(_B3));};_PM2.prototype.set_room_width=function(_B3){return _t3._M03(yyGetReal(_B3));};_PM2.prototype.set_room_height=function(_B3){return _t3._N03(yyGetReal(_B3));};_PM2.prototype.set_room_persistent=function(_B3){ return _t3._qx2(yyGetBool(_B3));};_PM2.prototype.set_cursor_sprite=function(_B3){_km=_B3;};_PM2.prototype.get_cursor_sprite=function(){return _km;};_PM2.prototype.get_current_time=function(){var _J6=get_timer();return ~~(_J6/1000);};_PM2.prototype.get_current_year=function(){var _Bm=new Date();return(_iD)?_Bm.getFullYear():_Bm.getUTCFullYear();};_PM2.prototype.get_current_month=function(){var _Bm=new Date();return(_iD)?_Bm.getMonth()+1:_Bm.getUTCMonth()+1;};_PM2.prototype.get_current_day=function(){var _Bm=new Date(); return(_iD)?_Bm.getDate():_Bm.getUTCDate();};_PM2.prototype.get_current_weekday=function(){var _Bm=new Date();return(_iD)?_Bm.getDay():_Bm.getUTCDay();};_PM2.prototype.get_current_hour=function(){var _Bm=new Date();return(_iD)?_Bm.getHours():_Bm.getUTCHours();};_PM2.prototype.get_current_minute=function(){var _Bm=new Date();return(_iD)?_Bm.getMinutes():_Bm.getUTCMinutes();};_PM2.prototype.get_current_second=function(){var _Bm=new Date();return(_iD)?_Bm.getSeconds():_Bm.getUTCSeconds();};_PM2.prototype.get_current_event_type=function(){ return _O03(_kI);};_PM2.prototype.get_current_event_number=function(){return _P03(_kI,_mI);};_PM2.prototype.get_current_event_object=function(){return _iI._EQ;};_PM2.prototype.set_lives_function=function(_Fn){var _Gn=this.lives;this.lives=_Xk(yyGetReal(_Fn));if((_Gn>0)&&(this.lives<=0)){_Hn._N5(_In,0);}};_PM2.prototype.set_health_function=function(_Rn){var _Sn=0.0;_Sn=this.health;this.health=yyGetReal(_Rn);if((_Sn>0)&&(this.health<=0)){_Hn._N5(_Tn,0);}};_PM2.prototype.get_mouse_x=function(){return window_views_mouse_get_x(); };_PM2.prototype.get_mouse_y=function(){return window_views_mouse_get_y();};_PM2.prototype._nj=function(_Q03){for(var _Y4=0;_Y4<_Q03.length;_Y4++){var _gh=_Q03[_Y4];this[_Y4]=_gh;}};var _R03="cleanup",_S03="step",_T03="layer_begin",_U03="layer_end",_V03="room_start",_W03="room_end";var _oX="gmAffectsSingleLayerOnly";var _X03="effect_";var _Y03="_";var _Z03="filter_";var __03="_";var _013="_";var _113="_shader";var _213="_info";var _313=0,_413=1,_pX=2;var _513=0,_BV=1,_613=2,_uX=3,_DV=4,_713=5;var _813=0;function _913(){ if(_813>=Number.MAX_SAFE_INTEGER)_813=0;else _813++;return _813;}/*@constructor */function _a13(){this.__type="[EffectParameterInfo]";this.pName=null;this._b13=null;this.type=0;this.elements=0;this.arraysize=0;this._uS=null;this._c13=null;this._d13=null;this._e13=false;this._f13=false;}/*@constructor */function _g13(_bV2){this.__type="[EffectInfo]";this.pName=null;this._b13=null;this._h13=null;this.type=0;this._i13=0;this._wS=[];}_g13.prototype._j13=function(_k13){var _l13=JSON.parse(_k13);this.pName=_l13.name; this._b13=_l13.displayname;this.type=_l13.type=="filter"?_413:_pX;if(this.type==_pX){this._h13=_l13.name;}else {this._h13=_l13.name+_113;}var parameters=_l13.parameters;this._i13=parameters.length;this._wS=[];for(var i=0;i0)?(1.0/_N13):0.0,(_O13>0)?(1.0/_O13):0.0);shader_set_uniform_f(this._A13,_023,_123);shader_set_uniform_f(this._B13,(this._v13!=-1)?1.0:0.0);if((this._5V!=null)&&(this._C13!=null)){ for(var i=0;i0)?(1.0/_qA2.width):0.0,(_qA2.height>0)?(1.0/_qA2.height):0.0);if(_623._e13){gpu_set_texrepeat_ext(_923,true);}else {gpu_set_texrepeat_ext(_923,false);}if(_623._f13){gpu_set_tex_filter_ext(_923,true);}else {gpu_set_tex_filter_ext(_923,false);}}}break;}}}}}if(this._v13!=-1){_e8._la._Ba(_9a._QB,true);_e8._la._Ba(_9a._ra,false); _e8._la._Ba(_9a._na,_9a._da);_e8._la._Ba(_9a._oa,_9a._ca);}_Ta=0.0;draw_surface_stretched(_V13,-1,-1,2,2,_Pn,1.0);if(this._v13!=-1){_fX._a23(this._v13);this._v13=-1;}else {surface_reset_target();_UA(_VA,_223);_UA(_pB,_323);_UA(_sB,_423);shader_set(-1);draw_surface_stretched(_W13,-1,-1,2,2,_Pn,1.0);_fX._a23(_W13);}_e8._la._VC(true);shader_set(_X13);_Ta=_rU;_UA(_VA,_Y13);_UA(_pB,_Z13);_UA(_sB,__13);};_p13.prototype._I13=function(){};_p13.prototype._J13=function(){surface_free(this._v13);this._v13=-1; };_p13.prototype._K13=function(){if(this._t13==null)return;this._w13=shader_get_uniform(this._u13,"gm_vTime");this._x13=shader_get_uniform(this._u13,"gm_pTime");this._y13=shader_get_uniform(this._u13,"gm_pSurfaceDimensions");this._z13=shader_get_uniform(this._u13,"gm_pSurfaceTexelSize");this._A13=shader_get_uniform(this._u13,"gm_pCamOffset");this._B13=shader_get_uniform(this._u13,"gm_pPreMultiplyAlpha");};_p13.prototype._L13=function(){if(this._t13==null)return;if(this._5V==null)return;for(var i=0; i0;};_e23.prototype._m23=function(){if(this._mX==null)return; if(this._5V==null)return;for(var i=0;i1){_9V2=[];for(var __5=0;__5<_p23;__5++){var _q23=null;switch(_od){case _BV:_q23=_502[__5];break;case _613:_q23=_502[__5];break;case _uX:_q23=_502[__5]?1:0;break;case _DV:{var _723=_D5._r23(_502[__5]); _q23=_723;break;}}_9V2.push(_q23);}}else {switch(_od){case _BV:_9V2=_502[0];break;case _613:_9V2=_502[0];break;case _uX:_9V2=_502[0]?1:0;break;case _DV:{var _723=_D5._r23(_502[0]);_9V2=_723;break;}}}var _nX=_o23;if(this._5V.type==_pX){var _nX="gml"+_o23;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_o23]!=undefined)){_nX=g_var2obf[_o23];}}this._mX[_nX]=_9V2;};_e23.prototype._kX=function(_o23){if(this._mX==null)return null;if(this._5V==null)return null;for(var i=0;iAdd("@@Dispose@@", JS_SetupFunction(F_Effect_dispose)); }}else if(_5V.type==_413){var _J23=_v91(_5V._h13);if(_J23!=-1){var _t13=_rE.Shaders[_J23];_G23=new _p13(_t13,_J23,_5V);}}if((_G23!=null)&&(_5V!=null)){var _K23=new _e23(_G23,_5V,_g23);_K23._m23();var _xS=false;_K23._tX(_oX,_uX,1,[_xS]);return _K23;}return null;};_4N2.prototype._L23=function(_M23){if(_M23==null)_M23=_t3; if(_M23==null)return;var _Vk=_M23._gT._Vk;for(var i=_Vk.length-1;i>=0;i--){var _6P=_Vk[i];this._N23(_M23,_6P);}};_4N2.prototype._O23=function(_M23){if(_M23==null)_M23=_t3;if(_M23==null)return;for(var i=0;i<_M23._P23;i++){var _6P=_3u._MQ(_M23,_M23._Q23[i]);if(_6P!=null){_6P._OR();}}_M23._R23();};_4N2.prototype._N23=function(_M23,_S23){if(_S23==null)return;var _5V=_S23._RR();if(_5V!=null){var _eX=this._gX(_5V.pName,true);if(_eX!=null){_S23._MR(_eX._hX());_M23._wX(_S23._ne);for(var i=0;i<_5V._HI;i++){var _623=_5V._wS[i]; _eX._tX(_623.pName,_623.type,_623.elements,_623._uS);}_eX._tX(_oX,_uX,1,[_5V._xS]);}}else {var _T23=_S23._CR.substring(0,_X03.length)==_X03;var _U23=_S23._CR.substring(0,_Z03.length)==_Z03;if(_T23||_U23){if(_S23._PR()==null){var _V23=_Y03+_S23._CR;var _eX=this._gX(_V23,true);if(_eX!=null){_S23._MR(_eX._hX());_M23._wX(_S23._ne);_eX._tX(_oX,_uX,1,[false]);}}}}};_4N2.prototype._W23=function(_M23,_S23){if(_S23==null)return;_S23._OR();};_4N2.prototype._X23=function(_M23){if(_M23==null)_M23=_t3;if(_M23==null)return; for(var i=0;i<_M23._P23;i++){var _6P=_3u._MQ(_M23,_M23._Q23[i]);if(_6P!=null){_6P._HR=_6P._IR;if(_6P._AR){var _1u=_6P._PR().instance;if(_1u._i23!=this._B23){var _1Y="gml"+_S03;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_S03]!=undefined)){_1Y=g_var2obf[_S03];}if(_1u._mX[_1Y]!==undefined){_1u._mX[_1Y]();}_1u._i23=this._B23;}if(!_1u._k23()){var _1Y="gml"+_R03;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_R03]!=undefined)){_1Y=g_var2obf[_R03];}if(_1u._mX[_1Y]!==undefined){_1u._mX[_1Y]();}}}}}this._Y23(); this._B23++;};_4N2.prototype._Z23=function(_H7,_M23,__23){if(_M23==undefined)_M23=null;if(__23==undefined)__23=false;if(_M23==null)_M23=_t3;if(_M23==null)return;for(var i=0;i<_M23._P23;i++){var _6P=_3u._MQ(_M23,_M23._Q23[i]);if((_6P!=null)&&(!__23||(_6P._AR))){var _1u=_6P._PR().instance;var _1Y="gml"+_H7;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_H7]!=undefined)){_1Y=g_var2obf[_H7];}if(_1u._mX[_1Y]!==undefined){_1u._mX[_1Y]();}}}};_4N2.prototype._iX=function(_033){return _033.instance!==undefined&&_033.instance.__type=="[EffectInstance]"; };_4N2.prototype._133=function(_033){return _033.instance._mX;};_4N2.prototype._F23=function(_dX){var _233=this._A23[_dX];if(_233!=null){return _233;}var _333=null;var _433=_dX+_213;var _533=variable_global_get(_433);if(_533!=null){_333=new _g13();_333._j13(_533);}if(_333==null){_333=new _g13();_333.pName=_dX;_333._b13=_dX;if((_dX.substring(0,_X03.length)==_X03)||(_dX.substring(0,(_Y03+_X03).length)==(_Y03+_X03))){_333.type=_pX;_333._h13=_dX;}else {_333.type=_413;_333._h13=_dX+_113;}}if(_333!=null){this._A23[_dX]=_333; }return _333;};_4N2.prototype._D23=function(){var _633=_mT._781.length;for(var i=0;i<_633;i++){var _2u=_mT._781[i];if(_2u!=null){var _Vk=_2u._gT._Vk;for(var _733=_Vk.length-1;_733>=0;_733--){var _6P=_Vk[_733];if(_6P!=null){var _5V=_6P._RR();if(_5V!=null){this._N23(_2u,_6P);}else {var _T23=_6P._CR.substring(0,_X03.length)==_X03;var _U23=_6P._CR.substring(0,_Z03.length)==_Z03;if(_T23||_U23){var _V23=_Y03+_6P._CR;this._F23(_V23);this._N23(_2u,_6P);}}}}}}};_4N2.prototype._2O2=function(_dX,_833){var _333=new _g13(); _333._j13(_833);this._A23[_dX]=_333;};_4N2.prototype._Q13=function(_m8,_n8){var i;for(i=0;i1)){_a33=true;}else if(!surface_exists(_933._x23)){_a33=true;}if(_a33){surface_free(_933._x23);this._C23.splice(i, 1);}else {i++;}}}};/*@constructor */function _b33(){this.enabled=false;this._c33=0.0;this._d33=0xffffffff;this._e33=1.0;this._f33=false;this._g33=0.0;this._h33=32.0;this._i33=0xffffffff;this._j33=1.0;this._k33=false;this._l33=1.0;this._m33=0xffffffff;this._n33=1.0;this._o33=false;this._p33=0;this.shadowOffsetX=0.0;this.shadowOffsetY=0.0;this._q33=0xff000000;this._r33=1.0;}/*@constructor */function _lH(){this.__type="[Font]";this._nH=false;this._s33=false;this.pName="";this._dH="";this.size=12;this.ascenderOffset=0; this.ascender=0;this.bold=false;this.italic=false;this.first=32;this.last=127;this._qH="";this.prop=false;this._t33=0;this._u33=null;this._DH=null;this.antialias=0;this.charset=0;this._v33=1;this._w33=1;this._mH=0.0;this.glyphs=null;this._5s=null;this._zH=null;this.spriteIndex=-1;this._x33=0;this._sH=false;this.sdfSpread=0;this._tH=new _b33();}_lH.prototype._uH=function(_y33){if((_y33==undefined)||(_y33==null))return;var _033=null;_033=variable_struct_get(_y33,"thickness");if((_033!=undefined)&&(_033!=null)){ var _z33=yyGetReal(_033);_z33=_z33<-32.0?-32.0:(_z33>32.0?32.0:_z33);this._tH._c33=_z33;}_033=variable_struct_get(_y33,"coreColour");if((_033==undefined)||(_033==null))_033=variable_struct_get(_y33,"coreColor");if((_033!=undefined)&&(_033!=null)){this._tH._d33=yyGetInt32(_033);}_033=variable_struct_get(_y33,"coreAlpha");if((_033!=undefined)&&(_033!=null)){var alpha=yyGetReal(_033);alpha=alpha<0.0?0.0:(alpha>1.0?1.0:alpha);this._tH._e33=alpha;}_033=variable_struct_get(_y33,"glowEnable");if((_033!=undefined)&&(_033!=null)){ this._tH._f33=yyGetBool(_033);}_033=variable_struct_get(_y33,"glowStart");if((_033!=undefined)&&(_033!=null)){var _At1=yyGetReal(_033);_At1=_At1<0.0?0.0:(_At1>64.0?64.0:_At1);this._tH._g33=_At1;}_033=variable_struct_get(_y33,"glowEnd");if((_033!=undefined)&&(_033!=null)){var _At1=yyGetReal(_033);_At1=_At1<0.0?0.0:(_At1>64.0?64.0:_At1);this._tH._h33=_At1;}_033=variable_struct_get(_y33,"glowColour");if((_033==undefined)||(_033==null))_033=variable_struct_get(_y33,"glowColor");if((_033!=undefined)&&(_033!=null)){ this._tH._i33=yyGetInt32(_033);}_033=variable_struct_get(_y33,"glowAlpha");if((_033!=undefined)&&(_033!=null)){var alpha=yyGetReal(_033);alpha=alpha<0.0?0.0:(alpha>1.0?1.0:alpha);this._tH._j33=alpha;}_033=variable_struct_get(_y33,"outlineEnable");if((_033!=undefined)&&(_033!=null)){this._tH._k33=yyGetBool(_033);}_033=variable_struct_get(_y33,"outlineDistance");if((_033!=undefined)&&(_033!=null)){var _At1=yyGetReal(_033);_At1=_At1<0.0?0.0:(_At1>64.0?64.0:_At1);this._tH._l33=_At1;}_033=variable_struct_get(_y33, "outlineColour");if((_033==undefined)||(_033==null))_033=variable_struct_get(_y33,"outlineColor");if((_033!=undefined)&&(_033!=null)){this._tH._m33=yyGetInt32(_033);}_033=variable_struct_get(_y33,"outlineAlpha");if((_033!=undefined)&&(_033!=null)){var alpha=yyGetReal(_033);alpha=alpha<0.0?0.0:(alpha>1.0?1.0:alpha);this._tH._n33=alpha;}_033=variable_struct_get(_y33,"dropShadowEnable");if((_033!=undefined)&&(_033!=null)){this._tH._o33=yyGetBool(_033);}_033=variable_struct_get(_y33,"dropShadowSoftness"); if((_033!=undefined)&&(_033!=null)){var width=yyGetReal(_033);width=width<0.0?0.0:(width>64.0?64.0:width);this._tH._p33=width;}_033=variable_struct_get(_y33,"dropShadowOffsetX");if((_033!=undefined)&&(_033!=null)){var offset=yyGetReal(_033);this._tH.shadowOffsetX=offset;}_033=variable_struct_get(_y33,"dropShadowOffsetY");if((_033!=undefined)&&(_033!=null)){var offset=yyGetReal(_033);this._tH.shadowOffsetY=offset;}_033=variable_struct_get(_y33,"dropShadowColour");if((_033==undefined)||(_033==null))_033=variable_struct_get(_y33, "dropShadowColor");if((_033!=undefined)&&(_033!=null)){this._tH._q33=yyGetInt32(_033);}_033=variable_struct_get(_y33,"dropShadowAlpha");if((_033!=undefined)&&(_033!=null)){var alpha=yyGetReal(_033);alpha=alpha<0.0?0.0:(alpha>1.0?1.0:alpha);this._tH._r33=alpha;}};_lH.prototype._CH=function(){var _s23=new _BH();variable_struct_set(_s23,"thickness",this._tH._c33);variable_struct_set(_s23,"coreColour",this._tH._d33);variable_struct_set(_s23,"coreAlpha",this._tH._e33);variable_struct_set(_s23,"glowEnable", this._tH._f33);variable_struct_set(_s23,"glowStart",this._tH._g33);variable_struct_set(_s23,"glowEnd",this._tH._h33);variable_struct_set(_s23,"glowColour",this._tH._i33);variable_struct_set(_s23,"glowAlpha",this._tH._j33);variable_struct_set(_s23,"outlineEnable",this._tH._k33);variable_struct_set(_s23,"outlineDistance",this._tH._l33);variable_struct_set(_s23,"outlineColour",this._tH._m33);variable_struct_set(_s23,"outlineAlpha",this._tH._n33);variable_struct_set(_s23,"dropShadowEnable",this._tH._o33); variable_struct_set(_s23,"dropShadowSoftness",this._tH._p33);variable_struct_set(_s23,"dropShadowOffsetX",this._tH.shadowOffsetX);variable_struct_set(_s23,"dropShadowOffsetY",this._tH.shadowOffsetY);variable_struct_set(_s23,"dropShadowColour",this._tH._q33);variable_struct_set(_s23,"dropShadowAlpha",this._tH._r33);return _s23;};_lH.prototype._A33=function(_bV2){this.spriteIndex=-1;this._DH=null;this.pName=_bV2.pName;this._dH=_bV2.fontname;this.size=_bV2.size;this.bold=_bV2.bold;this.italic=_bV2.italic; this.first=_bV2.first&0xffff;this._nH=false;this.ascenderOffset=_bV2.ascenderOffset;this.ascender=_bV2.ascender;this.sdfSpread=_bV2.sdfSpread;this._x33=_bV2.lineHeight;this._sH=this.sdfSpread>0?true:false;this.antialias=0;this.charset=0;if(((_bV2.first>>16)&0xff)!==0)this.charset=(_bV2.first>>16)&0xff;if(((_bV2.first>>24)&0xff)!==0)this.antialias=((_bV2.first>>24)&0xff)-1;this.last=_bV2.last;this._v33=_bV2.scaleX;this._w33=_bV2.scaleY;this.glyphs=[];var _ED=99999999;var _G6=-99999999;var maxHeight=0; for(var _B33=0;_B33<_bV2.glyphs.length;_B33++){var index=-2;var _C33=_bV2.glyphs[_B33];if(_C33.c!=undefined)index=_C33.c.charCodeAt(0);else if(_C33.i!=undefined)index=_C33.i;this.glyphs[index]=_C33;if(index<_ED)_ED=index;if(index>_G6)_G6=index;if(_C33.h>maxHeight)maxHeight=_C33.h;}if(this._x33==0){this._x33=maxHeight;}this.first=_ED;this.last=_G6;this._5s=_CW2(_bV2.TPageEntry);};_lH.prototype._wH=function(_C5,_iH,_vH,_3H,_D33){this.spriteIndex=_C5;this._DH=null;this._nH=true;this._zH=_D5._E5(_C5);this.pName="sprite_font: "+this._zH.pName; this._dH="spritefont";this.size=_C5.width;this.bold=false;this.italic=false;this.first=_iH;this._u33=_D33;this._s33=true;this.prop=_vH;this.last=_iH+this._zH._E6;this._t33=_3H;this._sH=false;this.sdfSpread=0;this.antialias=0;this.charset=10;this._v33=1;this._w33=1;this._mH=0.5;this.glyphs=null;this._5s=null;this._E33=0;for(var i=0;i_G33)_G33=c;this._DH[c]=i;}this.first=_F33;this.last=_G33;}else {for(var i=_iH;i<(_iH+this._zH._E6);i++){this._DH[i]=i-_iH;}}this._H33();};_lH.prototype._H33=function(){var height=0;for(var _t6=0;_t6=end))return 0;if(this._nH){if(this._s33){var _J33=0;for(var __5=_VB;__5=this.first)&&(_4f1<=this.last)){var _R33=this._DH[_4f1];var _B4=this._zH._C4[_R33]; if(!_B4){result=this._E33;}else if(this.prop){_un+=_B4.CropWidth;}else {_un+=_B4.ow;}}else if(_4f1===32){_un+=this._E33;}return _un;}else {_1a.font=this._qH;if(_1a.measureText){var _Gh=_1a.measureText(String.fromCharCode(_4f1));return _Gh.width;}return 0;}}var _C33=this.glyphs[_4f1];if(_C33){return _C33.shift*this._v33;}else if(0x20>=this.first&&0x20<=this.last){return this.glyphs[0x20].shift*this._v33;}else {return this.glyphs[this.first].shift*this._v33;}};function _S33(_4f1,_C33){var _q4=undefined;var _Bh1=0, _0i1=(_C33._HH.length/2)-1,_T33=0;while(_Bh1<=_0i1){_T33=_Bh1+~~((_0i1-_Bh1)/2);var other=_C33._HH[_T33*2];if(_4f1==other){_q4=_C33._HH[(_T33*2)+1];break;}else if(_4f10){var _X8=_C33.x;var _Y8=_C33.y;var _DL=_C33.w;var _FL=_C33.h;if(Math.abs(_u5)<0.001){_1a._pg1(_X33,_X8+_X33.x,_Y8+_X33.y,_DL,_FL,_q5+(_C33.offset*_co),_r5,_DL*this._v33*_co,_FL*this._w33*_do,_6q,_no,_qL,_rL);}else {_1a._pg1(_X33,_X8+_X33.x,_Y8+_X33.y,_DL,_FL,_q5+(_C33.offset*_co),_r5,_DL,_FL,_6q,_no,_qL,_rL);}}_q5+=_co*this._v33*this._K33(_4f1); _q5+=_Y33;if(_V33[i]==" ")_q5+=_Z33;}}};_lH.prototype._043=function(_q5,_r5,_u5){var _ih=new _zz();_ih._WA(-_q5,-_r5,0);var _4B=new _zz();_4B.__A(_u5);var _4r1=new _zz();_4r1.Multiply(_ih,_4B);_ih._WA(_q5,_r5,0);var _143=new _zz();_143.Multiply(_4r1,_ih);return _143;};_lH.prototype._243=function(_q5,_r5,_V33,_co,_do,_u5,_6q,_no,_qL,_rL,_N33,_W33,_343){if(this._nH){this._U33(_q5,_r5,_V33,_co,_do,_u5,_6q,_no,_qL,_rL,_N33,_W33);}var _Y33=0.0;var _Z33=0.0;if(_N33!==undefined){_Y33=_N33;}if(_W33!==undefined){_Z33=_W33; }var _443;var _X33=this._5s;if(!_X33.texture.complete)return;var _Yi=_V33.length;if(_543){_6q&=0xfffefffe;_no&=0xfffefffe;_qL&=0xfffefffe;_rL&=0xfffefffe;_no|=0x00010000;_qL|=0x00000001;_rL|=0x00010001;}var _Ca,_Ja,_La,_Na;if(!_X33.texture._N8)_M8(_X33);var _643;if(Math.abs(_u5)>0.001){_643=_2B(_VA);_UA(_VA,this._043(_q5,_r5,_u5));}var _743=0;if(this._sH){_743=this.sdfSpread;}var _F9=_Yi*6;_Ca=_e8._Da(_9a._Ea,_X33.texture._N8,_e8._Fa,_F9);var _Ga=_Ca._Ha()>>2;var index=_Ga*_Ca._Ia;_Ca._Ia+=_F9;var _Pa=index, _hb=_Pa+_Ga,__4=_hb+_Ga,_ib=__4+_Ga,_jb=_ib+_Ga,_kb=_jb+_Ga;_Ja=_Ca._Ka;_La=_Ca._Ma;_Na=_Ca._Oa;var scaleX,scaleY;scaleX=this._v33*_co;scaleY=this._w33*_do;var _9j2=0;var _843=this._mH,_943=1.0/_X33.texture.width,_a43=1.0/_X33.texture.height;var _b43=false;if((_6q!=_no)||(_qL!=_rL)){var _c43=this._8H(_V33,true);var _d43=1/_c43;var alpha=_6q&0xff000000;_b43=true;}var __33=null;for(var i=0;i<_Yi;i++){var _4f1=_V33.charCodeAt(i);var _C33=this.glyphs[_4f1];if(_C33){if((__33!=null)&&(_C33._HH!=undefined)){var _HH=_S33(__33.i, _C33);if(_HH!=undefined){_q5+=scaleX*_HH;}}__33=_C33;if((_C33.w*_C33.h)>0){var _DL=_C33.w+2,_FL=_C33.h+2;var x=_q5+(((_C33.offset-1)-_743)*_co);var y=_r5-((1+_743)*_do);_Ja[_Pa+0]=_Ja[_jb+0]=_Ja[_kb+0]=x-_843;_Ja[_Pa+1]=_Ja[_hb+1]=_Ja[_kb+1]=y-_843;_Ja[_hb+0]=_Ja[__4+0]=_Ja[_ib+0]=x+_843+(_DL*scaleX);_Ja[__4+1]=_Ja[_ib+1]=_Ja[_jb+1]=y+_843+(_FL*scaleY);_Ja[_Pa+2]=_Ja[_hb+2]=_Ja[__4+2]=_Ja[_ib+2]=_Ja[_jb+2]=_Ja[_kb+2]=_Ta;var _X8=_C33.x-1,_Y8=_C33.y-1;_Na[_Pa+0]=_Na[_jb+0]=_Na[_kb+0]=(_X33.x+_X8-_843)*_943; _Na[_Pa+1]=_Na[_hb+1]=_Na[_kb+1]=(_X33.y+_Y8-_843)*_a43;_Na[_hb+0]=_Na[__4+0]=_Na[_ib+0]=(_X33.x+_X8+_DL+_843)*_943;_Na[__4+1]=_Na[_ib+1]=_Na[_jb+1]=(_X33.y+_Y8+_FL+_843)*_a43;if(_b43){var _0b=_Ja[index];var _XH=Math.min(Math.abs((_Ja[_Pa]-_0b))*_d43,1);var _YH=Math.min(Math.abs((_Ja[_hb]-_0b))*_d43,1);var _6h=merge_color(_6q,_no,_XH)|alpha;var _7h=merge_color(_6q,_no,_YH)|alpha;var _Nr1=merge_color(_rL,_qL,_YH)|alpha;var __O2=merge_color(_rL,_qL,_XH)|alpha;_La[_Pa]=_La[_kb]=_6h;_La[_hb]=_7h;_La[__4]=_La[_ib]=_Nr1; _La[_jb]=__O2;}else {_La[_Pa]=_La[_kb]=_6q;_La[_hb]=_no;_La[__4]=_La[_ib]=_qL;_La[_jb]=_rL;}_Pa+=(_Ga*6);_hb+=(_Ga*6);__4+=(_Ga*6);_ib+=(_Ga*6);_jb+=(_Ga*6);_kb+=(_Ga*6);}else {_9j2++;}_q5+=scaleX*_C33.shift;}else {_9j2++;}_q5+=_Y33;if(_V33[i]==" ")_q5+=_Z33;}_Ca._Ia-=_9j2*6;if(_643!=undefined){_UA(_VA,_643);}};_lH.prototype._e43=function(_q5,_r5,_V33,_co,_do,_u5,_6q,_no,_qL,_rL,_N33,_W33){var _443=null;var _4f1;var _X33=_F4[this._5s.tp];if(!_X33.complete)return;var _Y33=0.0;var _Z33=0.0;if(_N33!==undefined){ _Y33=_N33;}if(_W33!==undefined){_Z33=_W33;}var _on2=_1a.globalAlpha;_1a.globalAlpha=((_6q>>24)&0xff)/255.0;var _Yi=_V33.length;_6q=_6q&0xffffff;_u5=_oM2(_u5);var __33=null;if(Math.abs(_u5)>0.00001){_f43(_q5,_r5,this._v33*_co,this._w33*_do,-_u5);_q5=0;_r5=0;if(_6q!=0xffffff){for(var i=0;i<_Yi;i++){_4f1=_V33.charCodeAt(i);var _C33=this.glyphs[_4f1];if(_C33){if((__33!=null)&&(_C33._HH!=undefined)){var _HH=_S33(__33.i,_C33);if(_HH!=undefined){_q5+=_HH;}}__33=_C33;var _DL=_C33.w;if(_DL!=99999){var _FL=_C33.h; _443=_g43(_X33,_C33,_C33.x+this._5s.x,_C33.y+this._5s.y,_DL+2,_FL+2,_6q);_1a._pg1(_443,0,0,_DL,_FL,_q5+_C33.offset,_r5,_DL,_FL);_q5+=this._K33(_4f1);}}_q5+=_Y33;if(_V33[i]==" ")_q5+=_Z33;}}else {for(var i=0;i<_Yi;i++){_4f1=_V33.charCodeAt(i);var _C33=this.glyphs[_4f1];if(_C33){if((__33!=null)&&(_C33._HH!=undefined)){var _HH=_S33(__33.i,_C33);if(_HH!=undefined){_q5+=_HH;}}__33=_C33;var _DL=_C33.w;if(_DL!=99999){var _FL=_C33.h;_1a._pg1(_X33,_C33.x+this._5s.x,_C33.y+this._5s.y,_DL,_FL,_q5+_C33.offset,_r5, _DL,_FL);_q5+=this._K33(_4f1);}}_q5+=_Y33;if(_V33[i]==" ")_q5+=_Z33;}}_h43();}else {_q5=~~(_q5+0.5);_r5=~~(_r5+0.5);var _i43=this._v33*_co;var _j43=this._w33*_do;if(_6q!=0xffffff){for(var i=0;i<_Yi;i++){_4f1=_V33.charCodeAt(i);var _C33=this.glyphs[_4f1];if(_C33){if((__33!=null)&&(_C33._HH!=undefined)){var _HH=_S33(__33.i,_C33);if(_HH!=undefined){_q5+=_i43*_HH;}}__33=_C33;var _DL=_C33.w;if(_DL!=99999){var _FL=_C33.h;_443=_g43(_X33,_C33,_C33.x+this._5s.x,_C33.y+this._5s.y,_DL+2,_FL+2,_6q);_1a._pg1(_443,0, 0,_DL+1,_FL+1,_q5+(_C33.offset*_i43),_r5,(_DL+1)*_i43,(_FL+1)*_j43);_q5+=_i43*this._K33(_4f1);}}_q5+=_i43*_Y33;if(_V33[i]==" ")_q5+=_i43*_Z33;}}else {for(var i=0;i<_Yi;i++){_4f1=_V33.charCodeAt(i);var _C33=this.glyphs[_4f1];if(_C33){if((__33!=null)&&(_C33._HH!=undefined)){var _HH=_S33(__33.i,_C33);if(_HH!=undefined){_q5+=_i43*_HH;}}__33=_C33;var _DL=_C33.w;if(_DL!=99999){var _FL=_C33.h;_1a._pg1(_X33,_C33.x+this._5s.x,_C33.y+this._5s.y,_DL,_FL,_q5+(_C33.offset*_i43),_r5,_DL*_i43,_FL*_j43);_q5+=_i43*this._K33(_4f1); }}_q5+=_i43*_Y33;if(_V33[i]==" ")_q5+=_i43*_Z33;}}}_1a.globalAlpha=_on2;};_lH.prototype._k43=function(_q5,_r5,_V33,_co,_do,_u5,_6q,_no,_qL,_rL,_N33,_W33){if(this._zH==null)return;var _Y33=0.0;var _Z33=0.0;if(_N33!==undefined){_Y33=_N33;}if(_W33!==undefined){_Z33=_W33;}var _h4=((_6q>>24)&0xff)/255.0;var _on2=_1a.globalAlpha;_1a.globalAlpha=_h4;_6q&=0xffffff;var _i43=this._v33*_co;var _j43=this._w33*_do;if(Math.abs(_u5)>=0.001){_f43(_q5,_r5,1,1,-_oM2(_u5));_r5=_q5=0;}var _Yi=_V33.length;for(var i=0;i<_Yi; i++){var _4f1=_V33.charCodeAt(i);if(_4f1!=0x20){if((_4f1>=this.first)&&(_4f1<=this.last)){var _R33=this._DH[_4f1];if(_R33!==undefined){var _B4=this._zH._C4[_R33];var _X33=_F4[_B4.tp];if(_X33.complete){var _6M=_B4.XOffset-this._zH.xOrigin;var _7M=_B4.YOffset-this._zH.yOrigin;if(this.prop)_6M=0;if(_6q!=0xffffff){var _443=_M9(_B4,_6q);_1a._pg1(_443,0,0,_B4.CropWidth,_B4.CropHeight,_q5+(_6M*_i43),_r5+(_7M*_j43),_B4.CropWidth*_i43,_B4.CropHeight*_j43);}else {_1a._pg1(_X33,_B4.x,_B4.y,_B4.w,_B4.h,_q5+(_6M*_i43), _r5+(_7M*_j43),_B4.CropWidth*_i43,_B4.CropHeight*_j43);}}}}}_q5=_q5+_i43*this._K33(_4f1);_q5+=_i43*_Y33;if(_V33[i]==" ")_q5+=_i43*_Z33;}if(Math.abs(_u5)>=0.001)_h43();_1a.globalAlpha=_on2;};_lH.prototype._l43=function(_q5,_r5,_V33,_co,_do,_u5,_Ss,_Ts,_Us,_Vs,_N33,_W33){if(this._zH==null)return;var _Y33=0.0;var _Z33=0.0;if(_N33!==undefined){_Y33=_N33;}if(_W33!==undefined){_Z33=_W33;}var _Yi=_V33.length;var _i43=this._v33*_co;var _j43=this._w33*_do;var _m43=undefined;if(Math.abs(_u5)>=0.001){_m43=_2B(_VA); _UA(_VA,this._043(_q5,_r5,_u5));}var alpha=(_Ss&0xff000000);var _n43=((_Ts&0xff0000)-(_Ss&0xff0000))/_Yi;var _o43=((((_Ts&0xff00)<<8)-((_Ss&0xff00)<<8)))/_Yi;var _p43=((((_Ts&0xff)<<16)-((_Ss&0xff)<<16)))/_Yi;var _q43=((_Us&0xff0000)-(_Vs&0xff0000))/_Yi;var _r43=((((_Us&0xff00)<<8)-((_Vs&0xff00)<<8)))/_Yi;var _s43=((((_Us&0xff)<<16)-((_Vs&0xff)<<16)))/_Yi;var _t43=_n43;var _u43=_o43;var _v43=_p43;var _w43=_q43;var _x43=_r43;var _y43=_s43;var _6h=_Ss;var __O2=_Vs;for(var i=0;i<_Yi;i++){var _7h=((_Ss&0xff0000)+(_t43&0xff0000))&0xff0000; _7h|=((_Ss&0xff00)+(_u43>>8)&0xff00)&0xff00;_7h|=((_Ss&0xff)+(_v43>>16))&0xff;_7h|=alpha;var _Nr1=((_Vs&0xff0000)+(_w43&0xff0000))&0xff0000;_Nr1|=((_Vs&0xff00)+(_x43>>8)&0xff00)&0xff00;_Nr1|=((_Vs&0xff)+(_y43>>16))&0xff;_Nr1|=alpha;_t43+=_n43;_u43+=_o43;_v43+=_p43;_w43+=_q43;_x43+=_r43;_y43+=_s43;var _4f1=_V33.charCodeAt(i);if(_4f1!=0x20){if(_4f1this.last){}else {var _R33=this._DH[_4f1];if(_R33!==undefined){var _B4=this._zH._C4[_R33];var _X33=_F4[_B4.tp];if(_X33.complete){var _6M=_B4.XOffset-this._zH.xOrigin; var _7M=_B4.YOffset-this._zH.yOrigin;if(this.prop)_6M=0;_1a._pg1(_B4,_B4.x,_B4.y,_B4.w,_B4.h,_q5+(_6M*_i43),_r5+(_7M*_j43),_B4.CropWidth*_i43,_B4.CropHeight*_j43,_6h,_7h,_Nr1,__O2);}}}}__O2=_Nr1;_6h=_7h;_q5+=_i43*this._K33(_4f1);_q5+=_i43*_Y33;if(_V33[i]==" ")_q5+=_i43*_Z33;}if(_m43!==undefined){_UA(_VA,_m43);}};var _z43=-1,_A43=0,_B43=1,_C43=2,_D43=3;/*@constructor */function _ZM2(){this.Fonts=[];this.length=0;this._5H=null;this._ZG=0;this._YG=0;this._XG=0;_ZL2=-1;this._ZG=_ZL2;this._E43=new Object(); this._E43._F43=[];this._E43._G43=_z43;this._E43._H43=-1;this._E43._I43=-1;this._E43._J43=-1;this._E43._K43=-1;this._E43._L43=-1;this._E43._M43=-1;this._E43._N43=-1;this._E43._O43=-1;this._E43._P43=-1;this._E43._Q43=-1;this._E43._R43=-1;var i;for(i=0;i<_D43;i++){this._E43._F43[i]=-1;}if(_e8){this._E43._F43[_A43]=asset_get_index("__yy_sdf_shader");this._E43._F43[_B43]=asset_get_index("__yy_sdf_effect_shader");this._E43._F43[_C43]=asset_get_index("__yy_sdf_blur_shader");if(this._E43._F43[_B43]!=-1){ var _S43=this._E43._F43[_B43];this._E43._H43=shader_get_uniform(_S43,"gm_SDF_DrawGlow");this._E43._I43=shader_get_uniform(_S43,"gm_SDF_Glow_MinMax");this._E43._J43=shader_get_uniform(_S43,"gm_SDF_Glow_Col");this._E43._K43=shader_get_uniform(_S43,"gm_SDF_DrawOutline");this._E43._L43=shader_get_uniform(_S43,"gm_SDF_Outline_Thresh");this._E43._M43=shader_get_uniform(_S43,"gm_SDF_Outline_Col");this._E43._N43=shader_get_uniform(_S43,"gm_SDF_Core_Thresh");this._E43._O43=shader_get_uniform(_S43,"gm_SDF_Core_Col"); }if(this._E43._F43[_C43]!=-1){var _S43=this._E43._F43[_C43];this._E43._P43=shader_get_uniform(_S43,"gm_SDF_Blur_MinMax");this._E43._Q43=shader_get_uniform(_S43,"gm_SDF_Blur_Col");}}}_ZM2.prototype._T43=function(_U43,_V43,_W43){if(_e8){if(shader_current()!=-1)return;var _7V=_W43;if((_7V==undefined)||(_7V==null)){_7V=_U43._tH;}var _X43=_A43;if(_7V.enabled){if(_V43&&_7V._o33){_X43=_C43;}else {_X43=_B43;}}var _Y43=this._E43._F43[_X43];if((_Y43==-1)||(shader_is_compiled(_Y43)==false))return;if(this._E43._G43!=_z43)return; shader_set(_Y43);if(_X43==_B43){var _Z43=1.0/(_U43.sdfSpread*2.0);var __43=0.5;var _053=_7V._c33;var _153=1.0-(((_7V._h33+_053)*_Z43)+__43);var _253=1.0-(((_7V._g33+_053)*_Z43)+__43);_153=_153<0.001?0.001:(_153>0.9999?0.9999:_153);_253=_253<0.001?0.001:(_253>0.9999?0.9999:_253);shader_set_uniform_i(this._E43._H43,_7V._f33?1:0);shader_set_uniform_f(this._E43._I43,_153,_253);var _353,_453,_553,_653;_353=(_7V._i33&0xff)/255.0;_453=((_7V._i33>>8)&0xff)/255.0;_553=((_7V._i33>>16)&0xff)/255.0;_653=_7V._j33; shader_set_uniform_f(this._E43._J43,_353,_453,_553,_653);var _753=1.0-(((_7V._l33+_053)*_Z43)+__43);_753=_753<0.001?0.001:(_753>0.9999?0.9999:_753);shader_set_uniform_i(this._E43._K43,_7V._k33?1:0);shader_set_uniform_f(this._E43._L43,_753);var _853,_953,_a53,_b53;_853=(_7V._m33&0xff)/255.0;_953=((_7V._m33>>8)&0xff)/255.0;_a53=((_7V._m33>>16)&0xff)/255.0;_b53=_7V._n33;shader_set_uniform_f(this._E43._M43,_853,_953,_a53,_b53);var _c53=1.0-((_053*_Z43)+__43);_c53=_c53<0.001?0.001:(_c53>0.9999?0.9999:_c53); shader_set_uniform_f(this._E43._N43,_c53);var _d53,_e53,_f53,_g53;_d53=(_7V._d33&0xff)/255.0;_e53=((_7V._d33>>8)&0xff)/255.0;_f53=((_7V._d33>>16)&0xff)/255.0;_g53=_7V._e33;shader_set_uniform_f(this._E43._O43,_d53,_e53,_f53,_g53);}else if(_X43==_C43){var _Z43=1.0/(_U43.sdfSpread*2.0);var __43=0.5;var _053=_7V._c33;var _h53=_7V._p33*0.5;var _i53=1.0-(((_053+_h53)*_Z43)+__43);var _j53=1.0-(((_053-_h53)*_Z43)+__43);_i53=_i53<0.001?0.001:(_i53>0.9999?0.9999:_i53);shader_set_uniform_f(this._E43._P43,_i53,_j53); var _k53,_l53,_m53,_n53;_k53=(_7V._q33&0xff)/255.0;_l53=((_7V._q33>>8)&0xff)/255.0;_m53=((_7V._q33>>16)&0xff)/255.0;_n53=_7V._r33;shader_set_uniform_f(this._E43._Q43,_k53,_l53,_m53,_n53);}var _o53=0;this._E43._R43=gpu_get_texfilter_ext(_o53);gpu_set_texfilter_ext(_o53,true);this._E43._G43=_X43;}};_ZM2.prototype._p53=function(){if(_e8){if(this._E43._G43!=_z43){shader_reset();var _o53=0;gpu_set_texfilter_ext(_o53,this._E43._R43);this._E43._G43=_z43;}}};_ZM2.prototype._q53=function(_U43,_W43){if((_U43==undefined)||(_U43==null))return false; if(_e8){var _7V=_W43;if((_7V==undefined)||(_7V==null)){_7V=_U43._tH;}if((shader_current()==-1)&&(_U43._sH)&&(_7V.enabled)&&(_7V._o33)){return true;}}return false;};_ZM2.prototype._di1=function(_J3){return this.Fonts[_J3];};_ZM2.prototype._Wf=function(){this.Fonts=[];this.Fonts.length=0;};_ZM2.prototype._Gf=function(_bV2){var _cH=null;if(_bV2!=null){_cH=new _lH();_cH._A33(_bV2);}this.Fonts[this.Fonts.length]=_cH;return this.Fonts.length-1;};_ZM2.prototype._XN2=function(_bV2){var _cH=null;if(_bV2!=null){_cH=new _lH(); _cH._A33(_bV2);}this.Fonts[-1]=_cH;};_ZM2.prototype._rH=function(_U43){this.Fonts[this.Fonts.length]=_U43;return this.Fonts.length-1;};_ZM2.prototype._4H=function(){if(this._ZG>=0&&this._ZG<=this.Fonts.length&&this.Fonts[this._ZG]!=null){this._5H=this.Fonts[this._ZG];}else {this._5H=this.Fonts[-1];if(!this._5H)_yi("Error: Failed to set font. Built-in fonts disabled with no current font set.");}};_ZM2.prototype._E5=function(_jg){if(_jg>=0&&_jg<=this.Fonts.length&&this.Fonts[_jg]){return this.Fonts[_jg]; }return null;};function _ci1(_Tl,_5H,_r53){if(_r53===undefined)_r53=false;if(_r53==false&&_v3)return _Tl;if(_Tl==null)return 0;var _s53=_Tl;var __R1="";var i=0;var _Qj=0;while(_Qj<_s53.length){var _ni=_s53[_Qj];if(_ni=="#"){if((i>0)&&(_s53[_Qj-1]=='\\')){__R1=__R1.substring(0,__R1.length-1)+'#';}else {__R1+=String.fromCharCode(0x0d);__R1+=String.fromCharCode(0x0a);i++;}}else {__R1+=_ni;i++;}_Qj++;}return __R1;}_ZM2.prototype._RE=function(_V33,_t53,_5H){if(_V33==null)return;if(_t53<0)_t53=10000000;var _u53=" "; var _pE=String.fromCharCode(0x0a);var _v53=String.fromCharCode(0x0d);var _PE=[];var _w53=0;if(!_v3)_V33=_ci1(_V33,_5H);var _Yi=_V33.length;var _fs=_V33;var _x53=_fs[0];var start=0;var end=0;while(start<_Yi){var _he1=0;if(_t53==10000000){while(end<_Yi&&_fs[end]!=_pE&&_fs[end]!=_v53){end++;if(end<_Yi)_x53=_fs[end];else _x53=String.fromCharCode(0x0);}var c;if(end<_Yi)c=_fs[end];else c=String.fromCharCode(0x0);if((_pE==_x53)&&(_v53==_fs[end])){end++;continue;}if((_v53==_x53)&&(_pE==_fs[end])){end++;continue;}_x53=_fs[end]; _PE[_w53++]=_fs.substring(start,end);}else {while(end<_Yi&&_he1<_t53){c=_fs[end];if(_fs[end]!=_u53)break;_he1+=this._5H._K33(c.charCodeAt(0));end++;}while(end<_Yi&&_he1<_t53){c=_fs[end];if(c==_pE)break;_he1+=this._5H._K33(c.charCodeAt(0));end++;}if(_he1>_t53){end--;_he1-=this._5H._K33(_fs.charCodeAt(end));}if(_fs[end]==_pE){_PE[_w53++]=_fs.substring(start,end);}else {if(end==start)return _PE;if(end!=_Yi){if((_fs[end]!=_u53)||(_fs[end]!=_u53&&_fs[end+1]!=_u53)){var e=end;while(end>start){if(_fs[--e]==_u53)break; }if(e!=start){end=e;}else {while(_fs[end]!=_u53)end++;}}}var _WB=end;if(_WB>start){while(_fs[_WB-1]==_u53&&_WB>0){_WB--;}}if(_WB!=start)_PE[_w53++]=_fs.substring(start,_WB);}}start=++end;}return _PE;};_ZM2.prototype._y53=function(_V33,_z53,_A53,_fX2,_Nm,_N33,_B53,_C53){if(_V33==null)return;var _u53=" ";var _pE=String.fromCharCode(0x0a);var _v53=String.fromCharCode(0x0d);var _q4=new Object();_q4._D53=0.0;_q4._E53=0.0;_q4._PE=null;var _PE=[];if(!_v3)_V33=_ci1(_V33,this._5H);var _Yi=_V33.length;var _fs=_V33;var _F53=[]; var start=0;var char=0;while(char!=_Yi){if((_fs[char]==_pE)||(_fs[char]==_v53)){_F53[_F53.length]=_fs.substring(start,char);while((_fs[char]==_pE)||(_fs[char]==_v53)){char++;}start=char;}else {char++;}}if((char>start)&&(start<_Yi)){_F53[_F53.length]=_fs.substring(start,char);}var _3j=0.0;var _AH=0.0;var lineHeight=this._5H._x33;var _G53=0.0;var _H53=this._5H._K33(32);for(var _gh=0;_gh<_F53.length;_gh++){var _Tl=_F53[_gh];var _SU2=null;if(_Nm){var lineWidth=0.0;var _I53=0;while(_I53<_Tl.length){if(_Tl[_I53]!=_u53)break; _I53++;}if(_I53==_Tl.length){_AH+=lineHeight;_AH+=_B53;_AH+=_C53;}else {var _J53=_I53;var _K53=_I53;var _L53=_I53;var _M53=0;while(_I53<_Tl.length){while((_I53<_Tl.length)&&(_Tl[_I53]!=_u53)){_I53++;}var _N53=this._5H._L33(_Tl,_J53,_I53-_J53,_N33);if((lineWidth+_N53)>_z53){if(_M53==0){lineWidth=_N53;_G53=_H6(_G53,lineWidth);_SU2=new Object();_SU2._O53=_Tl.substring(_L53,_I53);_SU2.x=_3j;_SU2.y=_AH;_SU2.lineWidth=lineWidth;_SU2._Z33=0.0;_SU2._P53=false;_SU2._Q53=1;_PE[_PE.length]=_SU2;_I53++;lineWidth=0.0; _M53=0;_L53=_I53;}else {_G53=_H6(_G53,lineWidth);_SU2=new Object();_SU2._O53=_Tl.substring(_L53,_K53);_SU2.x=_3j;_SU2.y=_AH;_SU2.lineWidth=lineWidth;_SU2._Z33=0.0;_SU2._P53=false;_SU2._Q53=_M53;_PE[_PE.length]=_SU2;_K53=_I53;lineWidth=_N53;_M53=1;_L53=_J53;}_AH+=lineHeight;_AH+=_B53;}else {_K53=_I53;if(_M53>0){lineWidth+=_H53;}lineWidth+=_N53;_M53++;}var _R53=_I53+1;while((_I53<_Tl.length)&&(_Tl[_I53]==_u53)){_I53++;}if(_I53>_R53){var _S53=_Tl.substring(0,_R53-1);var _T53=_Tl.substring(_I53,_Tl.length); _Tl=_S53+_T53;_I53=_R53;}_J53=_I53;}if(_L53<(_Tl.length)){lineWidth=this._5H._L33(_Tl,_L53,(_Tl.length)-_L53,_N33);_G53=_H6(_G53,lineWidth);_SU2=new Object();_SU2._O53=_Tl.substring(_L53,_Tl.length);_SU2.x=_3j;_SU2.y=_AH;_SU2.lineWidth=lineWidth;_SU2._Z33=0.0;_SU2._P53=false;_SU2._Q53=_M53;_PE[_PE.length]=_SU2;_AH+=lineHeight;_AH+=_B53;}}}else {var lineWidth=this._5H._L33(_Tl,0,_Tl.length,_N33);_G53=_H6(_G53,lineWidth);_SU2=new Object();_SU2._O53=_Tl;_SU2.x=_3j;_SU2.y=_AH;_SU2.lineWidth=lineWidth;_SU2._Z33=0.0; _SU2._P53=false;_SU2._Q53=0;_PE[_PE.length]=_SU2;if(_Tl.length==0)_SU2._P53=true;_AH+=lineHeight;_AH+=_B53;}if(_SU2!=null){_SU2._P53=(_Nm)?true:(_gh==(_F53.length-1));if(_SU2._P53){_AH+=_C53;}}}var _U53=(_fX2>>8)&0xff;var _V53=_fX2&0xff;var _W53=_AH-_B53-_C53;if(_Nm){var _X53=0.0;if(_U53==_Y53)_X53=(_A53-_W53)*0.5;else if(_U53==_Z53)_X53=(_A53-_W53);if(_X53!=0.0){var __53=_PE.length;for(var i=0;i<__53;i++){var _rn2=_PE[i];_rn2.y+=_X53;}}}if(_V53!=_063){var _163=(_Nm)?_z53:_G53;var __53=_PE.length;for(var i=0; i<__53;i++){var _rn2=_PE[i];var lineWidth=_rn2.lineWidth;if(_V53==_263){if(!_rn2._P53){if(_rn2._Q53>1){var _363=(_163-lineWidth);_rn2._Z33=_363/(_rn2._Q53-1);}}}else if(_V53==_463)_rn2.x=(_163-lineWidth);else if(_V53==_563)_rn2.x=(_163-lineWidth)*0.5;}}_q4._G53=_G53;_q4._W53=_W53;_q4._PE=_PE;return _q4;};_ZM2.prototype.__G=function(_9o,x,y,_663,_t53,_u5,_co,_do,_Ss,_Ts,_Us,_Vs){var _tR=_co;var _uR=_do;var _e_=0.0;var _f_=0.0;var _PE=[];var i=0;this._4H();var _5H=this._5H;if(_Ss===undefined){_Ss=_Oc|((_Nc*255.0)<<24); _Ts=_Oc|((_Nc*255.0)<<24);_Us=_Oc|((_Nc*255.0)<<24);_Vs=_Oc|((_Nc*255.0)<<24);}else if(_Ts===undefined){_Ts=_Ss;_Us=_Ss;_Vs=_Ss;}var _Tl=_9o;_PE=this._RE(_Tl,_t53,_5H);var _071=_oM2(_u5);var _57=Math.sin(_071);var _67=Math.cos(_071);if(_663<0)_663=_5H?_5H._7H('M'):20;var _763=_57*_tR*_663;var _863=_67*_uR*_663;if(this._YG==1){y=y-(_PE.length*_863)/2;x=x-(_PE.length*_763)/2;}if(this._YG==2){y=y-_PE.length*_863;x=x-_PE.length*_763;}if(!_5H){if(!_e8){_1a.fillStyle=_dL;_1a.globalAlpha=_Nc;for(i=0;i<=_PE.length-1; i++){var _963=_PE[i];if(_963!=null){_1a.fillText(_963,x,y+13);y=y+_863;x=x+_763;}}}else {if(this._ZG!=-1)_yi("Error: Runtime canvas fonts are not supported in WebGL.");}}else {var _a63=false;if(this._q53(_5H)){_a63=true;}var _b63=_tR*_5H._v33;var _c63=_uR*_5H._w33;for(var __5=_a63?0:1;__5<2;__5++){var _d63=(__5==0);if(_5H._sH){this._T43(_5H,_d63);}var _e63=x;var _f63=y;if(_d63){var shadowOffsetX=_b63*_5H._tH.shadowOffsetX;var shadowOffsetY=_c63*_5H._tH.shadowOffsetY;_e63=_e63+_67*shadowOffsetX+_57*shadowOffsetY; _f63=_f63-_57*shadowOffsetX+_67*shadowOffsetY;}for(i=0;i<=_PE.length-1;i++){_e_=0;_f_=0;if(_5H.ascenderOffset!=undefined){_f_-=_5H.ascenderOffset*_uR;}var _963=_PE[i];if(_963!=null){if(this._XG==1)_e_=-(_tR*_5H._8H(_963,true)/2);if(this._XG==2)_e_=-(_tR*_5H._8H(_963,true));var _N6=_e63+(_67*_e_)+(_57*_f_);var _P6=_f63-(_57*_e_)+(_67*_f_);if(_5H._nH){if(_5H._s33){if(!_e8){_5H._k43(_N6,_P6,_963,_tR,_uR,_u5,_Ss,_Ts,_Us,_Vs);}else {_5H._l43(_N6,_P6,_963,_tR,_uR,_u5,_Ss,_Ts,_Us,_Vs);}}else {if(_5H._Nh){_g63(_5H._qH, _963,_N6,_P6,1,1,_071,_Ss,_Ts,_Us,_Vs);}}}else {if(_e8){_5H._243(_N6,_P6,_963,_tR,_uR,_u5,_Ss,_Ts,_Us,_Vs);}else {_5H._e43(_N6,_P6,_963,_tR,_uR,_u5,_Ss,_Ts,_Us,_Vs);}}}_f63=_f63+_863;_e63=_e63+_763;}if(_5H._sH){this._p53();}}}};_ZM2.prototype._h63=function(_i63,_q5,_r5,_N33,_j63,_k63,_343){if(_i63==null)return;var _tR=1.0;var _uR=1.0;var angle=0.0;var _PE=_i63;var i=0;this._4H();var _5H=this._5H;var _m4=_Oc|((_Nc*255.0)<<24);var _643=null;if(!_e8){_643=_oB[_VA];angle=Math.atan2(_643._v6[1],_643._v6[0])*(-180/Math.PI); _tR=Math.sqrt((_643._v6[0]*_643._v6[0])+(_643._v6[1]*_643._v6[1]));_uR=Math.sqrt((_643._v6[4]*_643._v6[4])+(_643._v6[5]*_643._v6[5]));}if(!_5H){if(!_e8){_1a.fillStyle=_dL;_1a.globalAlpha=_Nc;for(i=0;i<=_PE.length-1;i++){var _963=_PE[i]._O53;var _e_=_PE[i].x;var _f_=_PE[i].y;var _xy2=new _Tz(_q5+_e_,_r5+_f_+13,0);var _l63=_643._0N(_xy2);if(_963!=null){_1a.fillText(_963,_l63._pA,_l63._qA);}}}else {if(this._ZG!=-1)_yi("Error: Runtime canvas fonts are not supported in WebGL.");}}else {var _m63=_r5;_m63+=_5H._x33; if(_5H.ascenderOffset!=undefined){_m63-=_5H.ascenderOffset;}if(_5H.ascender!=undefined){_m63-=_5H.ascender;}var _a63=false;if(this._q53(_5H)){_a63=true;}for(var __5=_a63?0:1;__5<2;__5++){var _d63=(__5==0);if(_5H._sH){this._T43(_5H,_d63);}var _e63=_q5;var _f63=_m63;if(_d63){_e63+=_5H._tH.shadowOffsetX;_f63+=_5H._tH.shadowOffsetY;}for(i=0;i<=_PE.length-1;i++){var _963=_PE[i]._O53;var _e_=_PE[i].x;var _f_=_PE[i].y;var _Z33=_PE[i]._Z33;if(_963!=null){if(_5H._s33){_e_-=(_5H._zH.xOrigin);_f_-=(_5H._zH.yOrigin); }var _N6=_e63+_e_;var _P6=_f63+_f_;var _l63=null;if(!_e8){var _xy2=new _Tz(_N6,_P6,0);_l63=_643._0N(_xy2);}if(_5H._nH){if(_5H._s33){if(!_e8){_5H._k43(_l63._pA,_l63._qA,_963,_tR,_uR,angle,_m4,_m4,_m4,_m4,_N33,_Z33);}else {_5H._l43(_N6,_P6,_963,_tR,_uR,angle,_m4,_m4,_m4,_m4,_N33,_Z33);}}else {if(_5H._Nh){_g63(_5H._qH,_963,_N6,_P6,1,1,angle,_m4,_m4,_m4,_m4);}}}else {if(_e8){_5H._243(_N6,_P6,_963,_tR,_uR,angle,_m4,_m4,_m4,_m4,_N33,_Z33,_343);}else {_5H._e43(_l63._pA,_l63._qA,_963,_tR,_uR,angle,_m4,_m4,_m4,_m4, _N33,_Z33);}}}}if(_5H._sH){this._p53();}}}};_ZM2.prototype._9H=function(_9o,x,y,_663,_t53){_aH=_bH=0;var _PE=[];var i=0;this._4H();var _5H=this._5H;if(!_5H)return 1;_PE=this._RE(_9o,_t53,_5H);if(_663<0){_663=_5H._7H("M");}var _963,w;if(_PE.length>0){for(i=0;i<_PE.length-1;i++){_963=_PE[i];if(_963!=null){w=_5H._8H(_963,true);if(_aH0.5;if(_x63!=_nC){_x63=_nC;_H63(_1a,_nC);}}function _RM2(_rX1){_F4=[];_o63=null;_WK=0;_XK=0;_YK=0;_ZK=0;_6N=0;_7N=0;_4N=0;_5N=0;_Ey2=[];_Ey2[0]=1;_Ey2[1]=0;_Ey2[2]=0;_Ey2[3]=0;_Ey2[4]=1;_Ey2[5]=0;if(!_e8){if(_dF2){_Cs=_J63;}else {_Cs=_K63;}_Gs=_L63;_Ns=_M63;_Aj1=_N63;_Cj1=_O63;_t63=_P63;_h43=_Q63;_RK=_R63;_f43=_S63;_q63=_T63;_Ks=_U63;_TK=_V63;__K=_W63;_g63=_X63;_s63=_Y63; _u63=_Z63;_r63=__63;_v63=function(){};_w63=function(){};_x63=!(_rE.Options&&!_rE.Options.interpolatePixels);if(_eF2){if(_dF2){_L9=0x1ffffff;_Cs=_073;}else {_Cs=_173;}_Gs=_L63;_Ns=_273;}}else {_373();}_Aj1(0,0,_Gn1,_Hn1);_Cj1(0,0,_Gn1,_Hn1,0);}var _473=[];var _573=0;function _V63(){_1a._C63();_473.push({_ll:_573++,_673:_WK,_773:_XK,_873:_YK,_973:_ZK});}function _W63(){_1a._D63();var _f4=_473.pop();_WK=_f4._673;_XK=_f4._773;_YK=_f4._873;_ZK=_f4._973;--_573;}function _zg1(_Vg1){_Vg1._p8=[];_Vg1._q8=0;_Vg1._r8=4; _Vg1._Ui1=0;_Vg1._5t=null;_Vg1._lg1=null;_Vg1.texture=_F4[_Vg1.tp];}function _TN2(_a73){_o63=_a73;for(var i=0;i<_a73.length;i++){var _B4=_a73[i];_zg1(_B4);}}/*@constructor */function _b73(){this._vs=null;this._c73=0;}function _g43(_be,_d73,_q5,_r5,_kj,_lj,_Pc){var _e73=null;if(_d73._p8!=undefined){_e73=_d73._p8[_Pc];}else {_d73._p8=[];_d73._r8=4;_d73._q8=0;}if(_e73!=null){_e73._c73=_p63;return _e73._vs;}var _f73=-9999999999;_e73=null;if(_d73._q8<_d73._r8){_e73=new _b73();_d73._q8++;}else {var _g73=-1;for(var i in _d73._p8){ if(!_d73._p8.hasOwnProperty(i))continue;var _h73=_d73._p8[i];if(_h73!=null){var _J6=_p63-_h73._c73;if(_J6>_f73){_g73=i;_e73=_h73;_f73=_J6;}}}if(_g73>=0)delete _d73._p8[_g73];}_d73._p8[_Pc]=_e73;_e73._c73=_p63;_e73._vs=_i73(_be,_q5,_r5,_kj,_lj,_Pc);return _e73._vs;}function _M9(_Vg1,_Pc){return _g43(_Vg1.texture,_Vg1,_Vg1.x,_Vg1.y,_Vg1.w,_Vg1.h,_Pc);}function _CW2(_J3){return _o63[_J3];}function _Q63(){_1a._VK(_Ey2[0],_Ey2[3],_Ey2[1],_Ey2[4],_Ey2[2],_Ey2[5]);}function _R63(_3d){_TK();var _UK=[];_UK[0]=1;_UK[1]=0; _UK[2]=0;_UK[3]=1;_UK[4]=0;_UK[5]=0;_1a._VK(_UK[0],_UK[1],_UK[2],_UK[3],_UK[4],_UK[5]);_1a.fillStyle=_fL(_3d|0xff000000);_1a._oL(_WK,_XK,_YK,_ZK);__K();}function _N63(_IY1,_JY1,_KY1,_LY1){_WK=_IY1;_XK=_JY1;_YK=_KY1;_ZK=_LY1;if(_v3){if((_WK===0&&_XK===0)&&(_YK==_1a.canvas.width&&_ZK===_1a.canvas.height)){}else {_Ey2[0]=1;_Ey2[1]=0;_Ey2[2]=0;_Ey2[3]=1;_Ey2[4]=0;_Ey2[5]=0;_1a._VK(_Ey2[0],_Ey2[1],_Ey2[2],_Ey2[3],_Ey2[4],_Ey2[5]);_1a.beginPath();_1a.moveTo(_WK,_XK);_1a.lineTo(_WK+_YK,_XK);_1a.lineTo(_WK+_YK, _XK+_ZK);_1a.lineTo(_WK,_XK+_ZK);if(!(_UN==_pF2&&_Co1==4.0)){_1a.clip();}}}}function _j73(_q5,_r5,_kj,_lj,_u5){var _Km2=new _Tz((_q5+_kj/2.0),(_r5+_lj/2.0),-16000.0);var _Sm2=new _Tz((_q5+_kj/2.0),(_r5+_lj/2.0),0.0);var __m2=new _Tz(Math.sin(-_u5*(Math.PI/180.0)),Math.cos(-_u5*(Math.PI/180.0)),0.0);_rL2._Wz(_Km2,_Sm2,__m2);_Jj1._4A(_kj,-_lj*_1A,1.0,32000.0);}function _S63(_q5,_r5,_w4,_x4,_u5){var _UK=[];_UK[0]=Math.cos(_u5);_UK[3]=Math.sin(_u5);_UK[1]=-_UK[3];_UK[4]=_UK[0];_UK[0]*=_w4;_UK[3]*=_w4;_UK[1]*=_x4; _UK[4]*=_x4;_UK[2]=_q5;_UK[5]=_r5;_1a._B63(_UK[0],_UK[3],_UK[1],_UK[4],_UK[2],_UK[5]);}function _T63(_Lw){_1a._B63(_Lw._v6[0],_Lw._v6[1],_Lw._v6[4],_Lw._v6[5],_Lw._v6[12],_Lw._v6[13]);}function _P63(_Hm,_Im,_k73,_l73){if((_WK===0&&_XK===0)&&(_YK==_1a.canvas.width&&_ZK===_1a.canvas.height)){}else {_Ey2[0]=1;_Ey2[1]=0;_Ey2[2]=0;_Ey2[3]=1;_Ey2[4]=0;_Ey2[5]=0;_1a._VK(_Ey2[0],_Ey2[1],_Ey2[2],_Ey2[3],_Ey2[4],_Ey2[5]);_1a.moveTo(_WK,_XK);_1a.lineTo(_WK+_YK,_XK);_1a.lineTo(_WK+_YK,_XK+_ZK);_1a.lineTo(_WK,_XK+_ZK); if(!(_UN==_pF2&&_Co1==4.0)){_1a.clip();}}_Ey2[0]=_Hm;_Ey2[1]=0;_Ey2[2]=_k73;_Ey2[3]=0;_Ey2[4]=_Im;_Ey2[5]=_l73;_1a._VK(_Ey2[0],_Ey2[3],_Ey2[1],_Ey2[4],_Ey2[2],_Ey2[5]);}function _O63(_m73,_n73,_o73,_p73,_u5){if((_WK===0&&_XK===0)&&(_YK==_1a.canvas.width&&_ZK===_1a.canvas.height)){}else {_Ey2[0]=1;_Ey2[1]=0;_Ey2[2]=0;_Ey2[3]=1;_Ey2[4]=0;_Ey2[5]=0;_1a._VK(_Ey2[0],_Ey2[1],_Ey2[2],_Ey2[3],_Ey2[4],_Ey2[5]);_1a.beginPath();_1a.moveTo(_WK,_XK);_1a.lineTo(_WK+_YK,_XK);_1a.lineTo(_WK+_YK,_XK+_ZK);_1a.lineTo(_WK, _XK+_ZK);if(!(_UN==_pF2&&_Co1==4.0)){_1a.clip();}}var w=_YK/_o73;var h=_ZK/_p73;_6N=_m73;_7N=_n73;_4N=_o73;_5N=_p73;_Ey2[0]=w;_Ey2[1]=0;_Ey2[2]=-(_m73*w)+_WK;_Ey2[3]=0;_Ey2[4]=h;_Ey2[5]=-(_n73*h)+_XK;_1a._VK(_Ey2[0],_Ey2[3],_Ey2[1],_Ey2[4],_Ey2[2],_Ey2[5]);}function _H8(_N3){var i=_F4.length;var texture=new Image();_N3=_Ec1(_N3);texture.crossOrigin=_YN;texture.src=_pH(null,null,_N3);_F4[i]=texture;return i;}function _q73(_m8,_n8){var c=document.createElement("canvas");c.width=_m8;c.height=_n8;var i=_F4.length; var texture=new Image(_m8,_n8);texture.src=_pH(null,null,c.toDataURL());_F4[i]=texture;return i;}function _r73(_l_1){var i=_F4.length;_F4[i]=_l_1;return i;}function _s73(_be,_q5,_r5,_kj,_lj,_rX1){var context=_be.getContext('2d');context.globalCompositeOperation='copy';context.drawImage(_rX1,_q5,_r5);}function _ys(_t73){var i=_F4.length;_F4[i]=_t73;return i;}function _Y63(){_p63++;}function _Z63(){}function _ws(_Vg1){var _lg1=document.createElement(_8F);var _ds=_lg1.getContext('2d');_ng1(_ds);_lg1.width=_Vg1.w;_lg1.height=_Vg1.h; _ds._pg1(_Vg1.texture,_Vg1.x,_Vg1.y,_Vg1.w,_Vg1.h,0,0,_Vg1.w,_Vg1.h);_lg1.complete=true;return _lg1;}function _Xg1(_Vg1){var _UG=[];var _cZ=_Vg1.ow*_Vg1.oh*4;var _u73;for(var i=0;i<_cZ;i++)_UG[i]=0;if(_Vg1.texture._N8)_u73=_e8._E02(_Vg1);else {var _lg1=document.createElement(_8F);var _ds=_lg1.getContext('2d');_ng1(_ds);_lg1.width=_Vg1.w;_lg1.height=_Vg1.h;_ds._pg1(_Vg1.texture,_Vg1.x,_Vg1.y,_Vg1.w,_Vg1.h,0,0,_Vg1.w,_Vg1.h);_lg1.complete=true;var data,_Pj1,_v73,_w73;try{data=_ds.getImageData(0,0,_Vg1.w,_Vg1.h); }catch(_bk){return _UG;}_u73=data.data;}var _x73=(_Vg1.XOffset+(_Vg1.YOffset*_Vg1.ow))*4;var _37=_Vg1.w*4;var x,y;for(y=0;y<_Vg1.h;y++){var bindex=_x73;var _y73=y*_37;for(x=0;x<_37;x++){_UG[bindex++]=_u73[_y73++];}_x73+=_Vg1.ow*4;}return _UG;}function _J63(_Vg1,_q5,_r5,_u9){if(!_Vg1)return;if(!_Vg1.texture)return;if(!_Vg1.texture.complete)return;if(_Vg1._lg1==null)_Vg1._lg1=_ws(_Vg1);_q5+=_Vg1.XOffset;_r5+=_Vg1.YOffset;_1a.globalAlpha=_u9;_1a._pg1(_Vg1._lg1,~~_q5,~~_r5);}function _073(_Vg1,_q5,_r5,_u9){_J63(_Vg1, _q5,_r5,_u9);}function _K63(_Vg1,_q5,_r5,_u9){if(!_Vg1)return;if(!_Vg1.texture)return;if(!_Vg1.texture.complete)return;_1a.globalAlpha=_u9;_1a._pg1(_Vg1.texture,~~_Vg1.x,~~_Vg1.y,_Vg1.w,_Vg1.h,Math.floor(_q5)+_Vg1.XOffset,Math.floor(_r5)+_Vg1.YOffset,_Vg1.CropWidth,_Vg1.CropHeight);}function _173(_Vg1,_q5,_r5,_u9){_K63(_Vg1,_q5,_r5,_u9);}function _z73(_rX1){try{_1a._pg1(_rX1,0,0,_rX1.width,_rX1.height,canvas.width,canvas.height,0,0);}catch(e){return false;}var _Za=_rX1.getContext('2d');_Za.fillStyle="white"; _Za.fillRect(0,0,1,1);var _PZ2=_Za.getImageData(0,0,1,1);return(_PZ2.data[0]===255);}function _L63(_Vg1,_q5,_r5,_A73,_B73,_C73,_D73,_3d,_u9){var _E4=_Vg1.texture;if(!_E4)return;if(!_E4.complete)return;if(_Vg1.w==0||_Vg1.h==0)return;var i=0;if(_C73)i=1;if(_D73)i|=2;if(i===0){_1a.globalAlpha=_u9;_1a._pg1(_E4,_Vg1.x,_Vg1.y,_Vg1.w,_Vg1.h,_q5+_Vg1.XOffset,_r5+_Vg1.YOffset,(_Vg1.CropWidth*_A73),(_Vg1.CropHeight*_B73));return;}var w=_Vg1.ow;var h=_Vg1.oh;if(_D73){w=(((((_pL2._9j1+(_Vg1.ow-1))/_Vg1.ow)&0xffffffff)+2)*_Vg1.ow); _q5=_6N+(((_q5-_6N)%_Vg1.ow)-_Vg1.ow);}if(_C73){h=(((((_pL2._aj1+(_Vg1.oh-1))/_Vg1.oh)&0xffffffff)+2)*_Vg1.oh);_r5=_7N+(((_r5-_7N)%_Vg1.oh)-_Vg1.oh);}if((_Vg1._5t!=null)&&(_Vg1._5t.width<(w*_Vg1._E73)||_Vg1._5t.height<(h*_Vg1._E73))){_Vg1._5t=null;_Vg1._6t=0;}if((_Vg1._Ui1!=i)||(!_Vg1._5t)){_Vg1._Ui1=i;var buffer=document.createElement(_8F);var _ds=buffer.getContext('2d');_ng1(_ds);buffer.width=w;buffer.height=h;_1a.globalAlpha=1;var _F73=1;while((_z73(buffer)===false)&&(buffer.width>=64)&&(buffer.height>=64)){ debug("WARNING: Tiled image quality reduction");buffer.width/=2;buffer.height/=2;_F73/=2;}var _VZ=_Vg1.x;var _WZ=_Vg1.y;if(_3d!=_L9){_E4=_M9(_Vg1,_3d);_VZ=0;_WZ=0;}var _hu=w/_Vg1.ow;var _iu=h/_Vg1.oh;for(var y=0;y<_iu;y++){for(var x=0;x<_hu;x++){_ds._pg1(_E4,_VZ,_WZ,_Vg1.w,_Vg1.h,_Vg1.XOffset+((x*_Vg1.ow)*_F73),_Vg1.YOffset+((y*_Vg1.oh)*_F73),_Vg1.CropWidth*_F73,_Vg1.CropHeight*_F73);}}_Vg1._E73=_F73;_Vg1._5t=buffer;}_1a.globalAlpha=_u9;_1a._pg1(_Vg1._5t,_q5,_r5,_Vg1._5t.width/_Vg1._E73,_Vg1._5t.height/_Vg1._E73); }function _M63(_Vg1,_rg1,_sg1,_q5,_r5,_A73,_B73,_y4,_6q,_no,_qL,_rL,_u9){if(!_Vg1.texture)return;if(!_Vg1.texture.complete)return;if((abs(_A73)<=0.0001)||(abs(_B73)<=0.0001)||(_u9<=0)){return;}_6q&=0xffffff;var _6M=-(_rg1-_Vg1.XOffset);var _7M=-(_sg1-_Vg1.YOffset);var _on2=_1a.globalAlpha;_1a.globalAlpha=_u9;if(_6q!=_L9){var _443=_M9(_Vg1,_6q);var _e4=Math.abs(_y4);if((_e4<0.0001)&&(_A73==1)&&(_B73==1)&&(_Vg1.w===_Vg1.CropWidth)&&(_Vg1.h===_Vg1.CropHeight)){_1a._pg1(_443,_q5+_6M,_r5+_7M);}else {if((_A73<0)||(_B73<0)||(_e4>0.0001)){ _f43(_q5,_r5,_A73,_B73,-_y4);_1a._pg1(_443,0,0,_Vg1.w,_Vg1.h,_6M,_7M,_Vg1.CropWidth,_Vg1.CropHeight);_h43();}else {_1a._pg1(_443,0,0,_Vg1.w,_Vg1.h,_q5+(_6M*_A73),_r5+(_7M*_B73),_Vg1.CropWidth*_A73,_Vg1.CropHeight*_B73);}}}else {var _e4=Math.abs(_y4);if((_e4<0.0001)&&(_A73==1)&&(_B73==1)&&(_Vg1.w===_Vg1.CropWidth)&&(_Vg1.h===_Vg1.CropHeight)){if(_Vg1._lg1==null){_Vg1._lg1=_ws(_Vg1);}_1a._pg1(_Vg1._lg1,_q5+_6M,_r5+_7M);}else {if(_A73<0||_B73<0||_e4>0.001){_f43(_q5,_r5,_A73,_B73,-_y4);_1a._pg1(_Vg1.texture, _Vg1.x,_Vg1.y,_Vg1.w,_Vg1.h,_6M,_7M,_Vg1.CropWidth,_Vg1.CropHeight);_h43();}else {_1a._pg1(_Vg1.texture,_Vg1.x,_Vg1.y,_Vg1.w,_Vg1.h,_q5+(_6M*_A73),_r5+(_7M*_B73),_Vg1.CropWidth*_A73,_Vg1.CropHeight*_B73);}}}_1a.globalAlpha=_on2;}function _273(_Vg1,_rg1,_sg1,_q5,_r5,_A73,_B73,_y4,_6q,_no,_qL,_rL,_u9){try{_M63(_Vg1.texture,_rg1,_sg1,_q5,_r5,_A73,_B73,_y4,_6q,_no,_qL,_rL,_u9);}catch(_bk){debug("error drawing image");}}function _i73(_be,_q5,_r5,_kj,_lj,_3d){var buffer=document.createElement(_8F);var _ds=buffer.getContext('2d'); _ng1(_ds);buffer.width=_kj;buffer.height=_lj;_ds._pg1(_be,_q5,_r5,_kj,_lj,0,0,_kj,_lj);if(~~_3d!=0xffffff){var data,_Pj1,_v73,_w73;data=_ds._Oj1(0,0,buffer.width,buffer.height);_Pj1=data.data;var _G73=_ds._E63(buffer.width,buffer.height);_w73=_G73.data;var _e4=((_3d>>16)&0xff)/255;var _f4=((_3d>>8)&0xff)/255;var _g4=(_3d&0xff)/255;var _he1=(data.height*data.width*4);for(var i=_he1-4;i>=0;i-=4){_w73[i]=(_Pj1[i]*_e4)|0;_w73[i+1]=(_Pj1[i+1]*_f4)|0;_w73[i+2]=(_Pj1[i+2]*_g4)|0;_w73[i+3]=(_Pj1[i+3]);}_G73.data=_w73; _ds._QZ2(_G73,0,0);}return buffer;}function _H73(_Vg1,_W6,_X6,_o6,_p6,_Ju,_Ku,_Zk1,__k1,_u9){var _E4=_Vg1.texture;if(!_E4)return;if(!_E4.complete)return;_1a.globalAlpha=_u9;_I73(_E4,_W6,_X6,_o6,_p6,_Ju,_Ku,_Vg1.x,_Vg1.y,_Vg1.x+_Vg1.w,_Vg1.y,_Vg1.x+_Vg1.w,_Vg1.y+_Vg1.h);_I73(_E4,_Ju,_Ku,_Zk1,__k1,_W6,_X6,_Vg1.x+_Vg1.w,_Vg1.y+_Vg1.h,_Vg1.x,_Vg1.y+_Vg1.h,_Vg1.x,_Vg1.y);}function _I73(__a,_0b,_1b,_w6,_x6,_y6,_z6,_2b,_3b,_4b,_5b,_6b,_7b){_TK();_1a._wL();_1a._xL(_0b,_1b);_1a._yL(_w6,_x6);_1a._yL(_y6,_z6); _1a._zL();_1a._F63();var _8b=_2b*(_7b-_5b)-_4b*_7b+_6b*_5b+(_4b-_6b)*_3b;if(_8b==0)return;var _9b=-(_3b*(_y6-_w6)-_5b*_y6+_7b*_w6+(_5b-_7b)*_0b)/_8b;var _ab=(_5b*_z6+_3b*(_x6-_z6)-_7b*_x6+(_7b-_5b)*_1b)/_8b;var _bb=(_2b*(_y6-_w6)-_4b*_y6+_6b*_w6+(_4b-_6b)*_0b)/_8b;var _cb=-(_4b*_z6+_2b*(_x6-_z6)-_6b*_x6+(_6b-_4b)*_1b)/_8b;var _db=(_2b*(_7b*_w6-_5b*_y6)+_3b*(_4b*_y6-_6b*_w6)+(_6b*_5b-_4b*_7b)*_0b)/_8b;var _eb=(_2b*(_7b*_x6-_5b*_z6)+_3b*(_4b*_z6-_6b*_x6)+(_6b*_5b-_4b*_7b)*_1b)/_8b;_1a._B63(_9b,_ab,_bb,_cb, _db,_eb);_1a._pg1(__a,0,0);__K();}function _U63(_Vg1,_Is,_Js,_m8,_n8,_q5,_r5,_co,_do,_Ms,_u9){if(!_Vg1)return;if(!_Vg1.texture)return;if(!_Vg1.texture.complete)return;_Ms&=0xffffff;_1a.globalAlpha=_u9;if(_Is<_Vg1.XOffset){var _J73=_Vg1.XOffset-_Is;_q5+=_J73*_co;_m8-=_J73;_Is=0;}else {_Is-=_Vg1.XOffset;}if(_Js<_Vg1.YOffset){var _J73=_Vg1.YOffset-_Js;_r5+=_J73*_do;_n8-=_J73;_Js=0;}else {_Js-=_Vg1.YOffset;}if(_m8>(_Vg1.CropWidth-_Is))_m8=_Vg1.CropWidth-_Is;if(_n8>(_Vg1.CropHeight-_Js))_n8=_Vg1.CropHeight-_Js; if(_m8<=0||_n8<=0)return;_q5=~~_q5;_r5=~~_r5;if(_Ms!=_L9){var _443=_M9(_Vg1,_Ms);if(_co<0||_do<0){_f43(_q5,_r5,_co,_do,0);_1a._pg1(_443,_Is,_Js,_m8,_n8,0,0,_m8,_n8);_h43();}else {_1a._pg1(_443,_Is,_Js,_m8,_n8,_q5,_r5,_m8*_co,_n8*_do);}}else {if(_co<0||_do<0){_f43(_q5,_r5,_co,_do,0);_1a._pg1(_Vg1.texture,_Is+_Vg1.x,_Js+_Vg1.y,_m8,_n8,0,0,_m8,_n8);_h43();}else {_1a._pg1(_Vg1.texture,_Is+_Vg1.x,_Js+_Vg1.y,_m8,_n8,_q5,_r5,_m8*_co,_n8*_do);}}}function _Es(_Vg1,_q5,_r5,_kj,_lj,_Ms,_u9){if(!_Vg1)return;if(!_Vg1.texture)return; if((_Vg1.texture instanceof HTMLImageElement)&&(!_Vg1.texture.complete))return;_q5=~~_q5;_r5=~~_r5;var _VZ=_kj/_Vg1.ow;var _WZ=_lj/_Vg1.oh;_Ns(_Vg1,0,0,_q5,_r5,_VZ,_WZ,0,_Ms,_Ms,_Ms,_Ms,_u9);}function _Ws(_Vg1,_Is,_Js,_m8,_n8,_q5,_r5,_co,_do,_y4,_Ss,_Ts,_Us,_Vs,_u9){if(!_Vg1)return;if(!_Vg1.texture)return;if(!_Vg1.texture.complete)return;_Ns(_Vg1,_Is,_Js,_q5,_r5,_co,_do,_y4,_Ss,_Ts,_Us,_Vs,_u9);}var _Ys=_K73;function _K73(_L73,_M73){if(_e8)return false;var buffer=document.createElement(_8F);var _ds=buffer.getContext('2d'); _ng1(_ds);buffer.width=_L73.w;buffer.height=_L73.h;_ds.drawImage(_M73.texture,_M73.x,_M73.y,_M73.w,_M73.h,0,0,_L73.w,_L73.h);var _N73,_O73,_P73,_Q73,_R73;try{_O73=_ds.getImageData(0,0,_L73.w,_L73.h);_R73=_L73.texture.getContext('2d');_ng1(_R73);_P73=_R73.getImageData(_L73.x,_L73.y,_L73.w,_L73.h);}catch(_bk){return false;}_N73=_O73.data;_Q73=_P73.data;var _he1=(_P73.height*_P73.width*4);for(var i=_he1-4;i>=0;i-=4){var c=~~((_N73[i]+_N73[i+1]+_N73[i+2])/3);_Q73[i+3]=c;}_P73.data=_Q73;_R73.putImageData(_P73, 0,0);return true;}function _X63(_ko,_9o,_q5,_r5,_co,_do,_u5,_3d,_u9){_1a.globalAlpha=_u9;_1a.fillStyle=_ns(_3d,1.0);_1a.font=_ko;_1a.textBaseline="top";_f43(_q5,_r5,_co,_do,-_u5);_1a.fillText(_9o,0,0);_h43();};function _es(_S73,_kj,_lj){try{var data,_Pj1,_v73,_w73;data=_S73._Oj1(0,0,_kj,_lj);_Pj1=_w73=data.data;var _T73=(_lj-1)*_kj*4;var _e4=_Pj1[_T73+0];var _f4=_Pj1[_T73+1];var _g4=_Pj1[_T73+2];var _h4=_Pj1[_T73+3];var _he1=(data.height*data.width*4);for(var i=_he1-4;i>=0;i-=4){_w73[i+0]=_Pj1[i+0];_w73[i+1]=_Pj1[i+1]; _w73[i+2]=_Pj1[i+2];if((_w73[i+0]==_e4)&&(_w73[i+1]==_f4)&&(_w73[i+2]==_g4)){_w73[i+3]=0x0;}else {_w73[i+3]=_Pj1[i+3];}}_S73._QZ2(data,0,0);}catch(_bk){return false;}return true;};function __63(_bo){};var _U73=[];function gif_open(width,height,background_colour){var _T01=new _PU1();_T01._9V1(0);_T01._eV1(yyGetInt32(width),yyGetInt32(height));_T01.start();for(var i=0;i<_U73.length;i++){if(_U73[i]==null){_U73[i]=_T01;return i;}}var _q4=_U73.length;_U73[_U73.length]=_T01;return _q4;};function gif_save_buffer(_V73){ _V73=yyGetInt32(_V73);var _T01=_U73[_V73];if(_T01==null)return -1;_T01._rV1();var _W73=_T01._Bf1()._SU1();var _3k=buffer_create(_W73.length,_4k,1);if(_3k==null)return -1;for(var i=0;i<_W73.length;i++)buffer_write(_3k,_hO,_W73[i]);_U73[_V73]=null;return _3k;};function gif_save(_V73,filename){_V73=yyGetInt32(_V73);var _T01=_U73[_V73];if(_T01==null)return;_T01._rV1();_T01.download(yyGetString(filename));_U73[_V73]=null;};function gif_add_surface(_V73,_X73,_Y73,_Z73,__73,_083){if(_083===undefined)_083=2;if(_Z73===undefined)_Z73=0; if(__73===undefined)__73=0;var _ms=_cs._E5(yyGetInt32(_X73));if(_ms!=null){if(_ms._bk1._ck1._rd!=_bs){debug("Surface "+yyGetInt32(_jg)+" can't be used as a gif source as it uses unsupported format "+_e8._n_1(_ms._bk1._ck1._rd));return -1;}var _T01=_U73[yyGetInt32(_V73)];if(_T01==null)return;switch(yyGetInt32(_083)){default :_T01._tV1(1);break;case 0:_T01._tV1(0);break;case 1:_T01._tV1(30);break;case 2:_T01._tV1(10);break;}_T01._7V1(yyGetInt32(_Y73)*10);var _lg1=document.createElement(_8F);var _mg1=_lg1.getContext('2d'); _ng1(_mg1);var _Yc=_e8._Z_1(_lg1,_ms._3j1,yyGetInt32(_Z73),yyGetInt32(__73),_T01._CV1(),_T01._DV1(),false,false);_T01._cV1(Uint8ClampedArray.from(_Yc.Image),true);}};function _X2(_183){this._283=_183;this._383=_183*Math.PI/180.0;this._483=Math.sin(this._383);this._583=Math.cos(this._383);}_X2.prototype={get _183(){return this._283;},get _683(){return this._383;},get _783(){return [[this._583,-this._483],[this._483,this._583],];},};function _16(_883,_983,angle){var _a83=_883[0];var _b83=_883[1];var _n9=_983[0]; var _o9=_983[1];var _c83=angle._783[0][0]*(_a83-_n9)+angle._783[0][1]*(_b83-_o9)+_n9;var _d83=angle._783[1][0]*(_a83-_n9)+angle._783[1][1]*(_b83-_o9)+_o9;return [_c83,_d83];}var _e83=0,_IZ2=0;function _yO(_f83){this._g83=false;this._IO=[];this._h83=_f83;this._i83="";this._j83=0;this._k83=0;}function _uO(_tO){var _l83=new _yO(null);_l83._i83=_tO;_l83._m83();var _q8=0;for(var i in _l83._IO){if(!_l83._IO.hasOwnProperty(i))continue;_q8++;break;}return _l83;}function _xO(_n83,_o83){var _Ef=_vl(_n83,_o83);var _l83=new _yO(_n83); _l83._i83=_Ef;_l83._m83();var _q8=0;for(var i in _l83._IO){if(!_l83._IO.hasOwnProperty(i))continue;_q8++;break;}if(_q8==0)return null;return _l83;}_yO.prototype._8G=function(){while((this._i83.charCodeAt(this._j83)!=0x0a)&&(this._i83.charCodeAt(this._j83)!=0x0d)&&(this._j83=this._iX2)return;if((this._i83.charCodeAt(this._j83)==0x0a)&&(this._i83.charCodeAt(this._j83)==0x0d)){this._j83++;}};_yO.prototype._p83=function(){{if(this._j83>=this._iX2)return false; var c=this._i83.charCodeAt(this._j83);if(c==0x20||c==0x09||c==0x0a||c==0x0d||c==ord('#')||c==ord(';')){return true;}else {return false;}}};_yO.prototype._9G=function(){{while(this._p83()&&(this._j83=this._iX2)return;}};_yO.prototype._q83=function(){{this._9G();while((this._i83.charAt(this._j83)!='[')&&(this._j83=this._iX2)return null; this._j83++;var _r83=this._j83;while((this._i83.charAt(this._j83)!=']')&&(this._j83=this._iX2)return null;var _Yi=this._j83-_r83;var _HO=[];_HO.__m_pIniFileName__=this._i83.substr(_r83,_Yi);this._j83++;return _HO;}};_yO.prototype._s83=function(_t83){{this._9G();if(this._j83>=this._iX2||this._i83.charAt(this._j83)=='[')return false;var _r83=this._j83;var _u83=-1;while((this._i83.charAt(this._j83)!='=')&&(this._j83=this._iX2)return false;if(_u83<0)_u83=this._j83;var _Yi=_u83-_r83;var _FO=this._i83.substr(_r83,_Yi);while((this._i83.charAt(this._j83)!='=')&&(this._j83=this._iX2)return false;this._j83++;var _CE=this._k83;this._9G();if(_CE!=this._k83)return false;var _v83=ord('#');var _w83=ord(';');var _x83=false;var _67=this._i83.charCodeAt(this._j83);switch(_67){case 34:case 39:_v83=_67;_w83=_67;_x83=true;this._j83++;break;case 91:case 123:_v83=-1; _w83=-1;break;}_r83=this._j83;var _y83=-1;var c=this._i83.charCodeAt(this._j83);while((c!=0x0a)&&(c!=0x0d)&&(c!=_v83)&&(c!=_w83)&&(this._j83=0&&!_x83){_Yi=_y83-_r83;}else {_Yi=this._j83-_r83;}var _HV1=this._i83.substr(_r83,_Yi);_t83[_FO]=_HV1;if(_x83){_67=this._i83.charCodeAt(this._j83);if((_67==_v83)&&(_67==_w83)){while((this._i83.charCodeAt(this._j83)!=0x0a)&&(this._i83.charCodeAt(this._j83)!=0x0d)&&(this._j83360.0){_B3-=360.0;}this.__83=_nM2(_B3,360.0);this._H93();},get speed(){return this._093;},set speed(_B3){_B3=yyGetReal(_B3);if(this._093==_B3)return;this._093=_B3;this._H93();},get friction(){return this._193;},set friction(_B3){_B3=yyGetReal(_B3);if(this._193==_B3)return;this._193=_B3;},get gravity(){return this._293;},set gravity(_B3){_B3=yyGetReal(_B3);if(this._293==_B3)return;this._293=_B3;},get gravity_direction(){return this._393;},set gravity_direction(_B3){_B3=yyGetReal(_B3);if(this._393==_B3)return; this._393=_B3;},get solid(){return this._493;},set solid(_B3){_B3=yyGetBool(_B3);if(this._493==_B3)return;this._493=_B3;},get persistent(){return this._693;},set persistent(_B3){_B3=yyGetBool(_B3);if(this._693==_B3)return;this._693=_B3;},get visible(){return this._593;},set visible(_B3){_B3=yyGetBool(_B3);if(this._593==_B3)return;this._593=_B3;},get depth(){return this._793;},set depth(_Al){_Al=yyGetReal(_Al);if(this._793!=_Al){this._793=_Al;_t3._I93[_t3._I93.length]=this;}},get path_position(){return this._k93; },set path_position(_B3){_B3=yyGetReal(_B3);if(this._k93==_B3)return;this._k93=_B3;},get path_positionprevious(){return this._l93;},set path_positionprevious(_B3){_B3=yyGetReal(_B3);if(this._l93==_B3)return;this._l93=_B3;},get path_speed(){return this._m93;},set path_speed(_B3){_B3=yyGetReal(_B3);if(this._m93==_B3)return;this._m93=_B3;},get path_scale(){return this._n93;},set path_scale(_B3){_B3=yyGetReal(_B3);if(this._n93==_B3)return;this._n93=_B3;},get path_orientation(){return this._o93;},set path_orientation(_B3){ _B3=yyGetReal(_B3);if(this._o93==_B3)return;this._o93=_B3;},get path_endaction(){return this._p93;},set path_endaction(_B3){_B3=yyGetInt32(_B3);if(this._p93==_B3)return;this._p93=_B3;},get timeline_index(){return this._q93;},set timeline_index(_B3){_B3=yyGetInt32(_B3);if(this._q93==_B3)return;this._q93=_B3;},get timeline_position(){return this._r93;},set timeline_position(_B3){_B3=yyGetReal(_B3);if(this._r93==_B3)return;this._r93=_B3;},get timeline_speed(){return this._s93;},set timeline_speed(_B3){_B3=yyGetReal(_B3); if(this._s93==_B3)return;this._s93=_B3;},get bbox_left(){if(this._YP)this._ZP();return this._IP.left;},get bbox_right(){if(this._YP)this._ZP();return this._IP.right;},get bbox_top(){if(this._YP)this._ZP();return this._IP.top;},get bbox_bottom(){if(this._YP)this._ZP();return this._IP.bottom;},get sprite_index(){return this._893;},set sprite_index(_jg){_jg=yyGetInt32(_jg);this._893=_jg;this._YP=true;this._D93=null;},get image_index(){return this._993;},set image_index(_FM){_FM=yyGetReal(_FM);var _MU=_D5._E5(this.sprite_index); if(_MU!=null){if(_MU.sequence!=null&&_MU.sequence._RU!=null&&_MU.sequence._RU[0]._9P==_SU){var _2W=_MU.sequence._RU[0];var keyframeStore=_2W._UU;var _3W=keyframeStore._4W;if(_3W>0){var _5W=_A3(_FM,_3W);var _6W=_5W;var _7W=_5W-_6W;this._i93=this._h93=(keyframeStore._8W[Math.floor(_6W)]._9W+(_7W*_3W));this._993=_FM;}else {this._993=_FM;}}else {this._993=_FM;}}else {this._993=_FM;}},get image_single(){if(this.image_speed==0){return this.image_index;}else {return -1;}},set image_single(_BX){_BX=yyGetInt32(_BX);if(_BX<0){ this.image_speed=1;}else {this.image_speed=0;this.image_index=_BX;}},get image_number(){var _qA2=_D5._E5(this.sprite_index);if(!_qA2)return 0;var _nM=this._29();if(_nM){return _nM._p3(_qA2);}else if((_qA2._823!==null)&&(_qA2._823!==undefined)){return _qA2._823._Xv2;}return _qA2._C4.length;},get sprite_width(){var _qA2=_D5._E5(this.sprite_index);if(!_qA2)return 0;return _qA2.width*this.image_xscale;},get sprite_height(){var _qA2=_D5._E5(this.sprite_index);if(!_qA2)return 0;return _qA2.height*this.image_yscale;},get sprite_xoffset(){ var _qA2=_D5._E5(this.sprite_index);if(!_qA2)return 0;return _qA2.xOrigin*this.image_xscale;},get sprite_yoffset(){var _qA2=_D5._E5(this.sprite_index);if(!_qA2)return 0;return _qA2.yOrigin*this.image_yscale;},get image_xscale(){return this._a93;},set image_xscale(_nm){_nm=yyGetReal(_nm);if(this._a93===_nm)return;this._a93=_nm;this._YP=true;},get image_yscale(){return this._b93;},set image_yscale(_nm){_nm=yyGetReal(_nm);if(this._b93===_nm)return;this._b93=_nm;this._YP=true;},get image_angle(){return this._c93;} ,set image_angle(_te2){_te2=yyGetReal(_te2);if(this._c93===_te2)return;this._c93=_te2;this._YP=true;},get image_blend(){return _Qc(this._e93);},set image_blend(_3d){this._e93=yyGetInt32(_3d);},get image_alpha(){return this._d93;},set image_alpha(_u9){this._d93=yyGetReal(_u9);},get image_speed(){return this._f93;},set image_speed(_tm){_tm=yyGetReal(_tm);if(this._f93===_tm)return;this._f93=_tm;},get mask_index(){return this._g93;},set mask_index(_jg){this._g93=yyGetInt32(_jg);this._YP=true;this._x93=null;},get timeline_running(){ if(this._dr){return 0;}else {return 1;}},set timeline_running(_J93){this._dr=!yyGetBool(_J93);},get timeline_loop(){if(this._er){return 1;}else {return 0;}},set timeline_loop(_O3){this._er=yyGetBool(_O3);},get phy_rotation(){return this._K93;},set phy_rotation(_Z82){if(this._s51!=null){this._s51._Y82(yyGetReal(_Z82));this._Hc2(this._s51._H82);}},get phy_position_x(){return this._L93;},set phy_position_x(_Qk){if(this._s51!=null&&_t3!=null){this._s51.__82(yyGetReal(_Qk)*_t3._v41._151);this._Hc2(this._s51._H82);} },get phy_position_y(){return this._M93;},set phy_position_y(_Qk){if(this._s51!=null&&_t3!=null){this._s51._092(yyGetReal(_Qk)*_t3._v41._151);this._Hc2(this._s51._H82);}},get phy_angular_velocity(){return this._N93;},set phy_angular_velocity(_192){if(this._s51!=null){this._s51._tD1(yyGetReal(_192));this._Hc2(this._s51._H82);}},get phy_linear_velocity_x(){return this._O93;},set phy_linear_velocity_x(_392){if(this._s51!=null&&_t3!=null){this._s51._292(yyGetReal(_392)*_t3._v41._151);this._Hc2(this._s51._H82); }},get phy_linear_velocity_y(){return this._P93;},set phy_linear_velocity_y(_392){if(this._s51!=null&&_t3!=null){this._s51._592(yyGetReal(_392)*_t3._v41._151);this._Hc2(this._s51._H82);}},get phy_speed(){if(this._s51!=null&&_t3!=null){var _Q93=_x3._y3();var _R93=_t3._v41._151;var _X8=(this._O93/_R93)/_Q93;var _Y8=(this._P93/_R93)/_Q93;return Math.sqrt((_X8*_X8)+(_Y8*_Y8));}else return undefined;},get phy_speed_x(){return this._S93;},set phy_speed_x(_tm){if(this._s51!=null&&_t3!=null){var _Q93=_x3._y3();this._s51._292(yyGetReal(_tm)*_t3._v41._151*_Q93); this._Hc2(this._s51._H82);}},get phy_speed_y(){return this._T93;},set phy_speed_y(_tm){if(this._s51!=null&&_t3!=null){var _Q93=_x3._y3();this._s51._592(yyGetReal(_tm)*_t3._v41._151*_Q93);this._Hc2(this._s51._H82);}},get phy_angular_damping(){return this._U93;},set phy_angular_damping(_V41){if(this._s51!=null){this._s51._H82._X41(yyGetReal(_V41));this._Hc2(this._s51._H82);}},get phy_linear_damping(){return this._V93;},set phy_linear_damping(_V41){if(this._s51!=null){this._s51._H82._W41(yyGetReal(_V41));this._Hc2(this._s51._H82); }},get phy_bullet(){return this._W93;},set phy_bullet(_692){if(this._s51!=null){this._s51._YD1(yyGetBool(_692));this._Hc2(this._s51._H82);}},get phy_fixed_rotation(){return this._X93;},set phy_fixed_rotation(_792){if(this._s51!=null){this._s51._5E1(yyGetBool(_792));this._Hc2(this._s51._H82);}},get phy_active(){return this._Y93;},set phy_active(_892){if(this._s51!=null){this._s51._3E1(yyGetBool(_892));this._Hc2(this._s51._H82);}},get layer(){return this._qT;},set layer(_nU){_nU=yyGetInt32(_nU);_3u._gU(_t3,this); this._qT=_nU;var _6P=_3u._MQ(_t3,_nU);if(_6P!=null){_3u._eU(_t3,_6P,this);this._793=_6P.depth;}},get in_sequence(){return this._Z93();},get sequence_instance(){return this.__93();},get drawn_by_sequence(){return this._0a3();},set drawn_by_sequence(_1a3){this._2a3(_1a3);}};_iQ.prototype._I3=function(_FM){this._993=_FM;};_iQ.prototype._3a3=function(_ZD1){this._YP=_ZD1;};_iQ.prototype._4a3=function(){return this._YP;};_iQ.prototype._5a3=function(_ZD1){this._y93=_ZD1;};_iQ.prototype._Z93=function(){return this._y93; };_iQ.prototype._6a3=function(_ZD1){this._z93=_ZD1;};_iQ.prototype._7a3=function(){return this._z93;};_iQ.prototype._8a3=function(_9a3){this._A93=_9a3;};_iQ.prototype.__93=function(){return this._A93;};_iQ.prototype._aa3=function(_ZD1){this._B93=_ZD1;};_iQ.prototype._ba3=function(){return this._B93;};_iQ.prototype._2a3=function(_ZD1){this._C93=_ZD1;};_iQ.prototype._0a3=function(){return this._C93;};_iQ.prototype._Hd=function(_ca3,_cU2){if((this.x==_ca3)&&(this.y==_cU2))return;this.x=_ca3;this.y=_cU2; this._YP=true;};_iQ.prototype._lQ=function(_Ht,_da3){if(this._VF!=null){this._VF._gU(this);this._VF=null;}for(var _Y4 in _Ht){var _gh=_Ht[_Y4];this[_Y4]=_gh;}this._IP=new _IF();this._IP._nj(_Ht._IP);for(var i=0;i<=_ZA2-1;i++){var _h4=_Ht.alarm[i];this.alarm[i]=_h4;}if(_da3&&this._VF!=null){this._VF._cU(this);}var _nM=this._29();if(_nM){this._D93=_nM._63();}this._qT=_Ht.layer;};_iQ.prototype._qQ=function(_cQ,_da3,_ea3){this.object_index=_cQ;if(this._VF!=null){this._VF._gU(this);this._VF=null;this._w93=null; }if(_cQ==-1)_cQ=0;this._w93=this._VF=_i3._E5(_cQ);if(this._VF!=null){if(_da3){this._VF._cU(this);}this._3A2=this._VF._3A2;this.mask_index=this._VF._911;if(!_v3){if(_ea3){this._793=this._VF._711;}else {this.depth=this._VF._711;}}this.solid=this._VF._411;this.visible=this._VF._511;this.persistent=this._VF._811;this._YP=true;}};_iQ.prototype._rQ=function(_J3){var _qA2=_D5._E5(_J3);if(_qA2){this._IP.left=_qA2._IP.left;this._IP.right=_qA2._IP.right;this._IP.top=_qA2._IP.top;this._IP.bottom=_qA2._IP.bottom; }this.sprite_index=_J3;this._D93=null;if(this._VF!==null){this._29();}};_iQ.prototype._tQ=function(_Jo){if(_Jo&&this._s51){_Jo._v41._OF1(this._s51);}this._s51=null;if(this._VF._a11.physicsObject){this._fa3();this._YP=true;}};_iQ.prototype._fa3=function(){if(!this._VF._a11.physicsObject){return;}if(!sprite_exists(this.sprite_index)){return;}var _On=_D5._E5(this.sprite_index);if(!_t3._v41){return;}var _H41=physics_fixture_create();var _ga3=this._VF._a11,_ha3=0.0,_X53=0.0;switch(_ga3.physicsShape){case _ia3:{ var _ja3=1.0;if(Math.abs(this.image_xscale-this.image_yscale)<0.0001){_ja3=this.image_xscale;}else {debug("Image scale for physics object using circle collision should not vary across axes: "+this._VF._WF);}_ha3=-_ga3.physicsShapeVertices[0]*_ja3;_X53=-_ga3.physicsShapeVertices[1]*_ja3;var _T61=_ga3.physicsShapeVertices[2]*_ja3;physics_fixture_set_circle_shape(_H41,_T61);}break;case _ka3:case _la3:{physics_fixture_set_polygon_shape(_H41);if((this.image_xscale*this.image_yscale)<0){for(var _t6=_ga3.physicsShapeVertices.length-2; _t6>=0;_t6-=2){physics_fixture_add_point(_H41,_ga3.physicsShapeVertices[_t6+0]*this.image_xscale,_ga3.physicsShapeVertices[_t6+1]*this.image_yscale);}}else {for(var _t6=0;_t6<_ga3.physicsShapeVertices.length;_t6+=2){physics_fixture_add_point(_H41,_ga3.physicsShapeVertices[_t6+0]*this.image_xscale,_ga3.physicsShapeVertices[_t6+1]*this.image_yscale);}}}break;}physics_fixture_set_angular_damping(_H41,_ga3.physicsAngularDamping);physics_fixture_set_linear_damping(_H41,_ga3.physicsLinearDamping);physics_fixture_set_sensor(_H41, _ga3.physicsSensor);physics_fixture_set_collision_group(_H41,_ga3.physicsGroup);physics_fixture_set_density(_H41,_ga3.physicsDensity);physics_fixture_set_restitution(_H41,_ga3.physicsRestitution);if(_ga3.physicsFriction!=undefined){physics_fixture_set_friction(_H41,_ga3.physicsFriction);}if(_ga3.physicsAwake!=undefined){physics_fixture_set_awake(_H41,_ga3.physicsAwake);}if(_ga3.physicsKinematic!=undefined){physics_fixture_set_kinematic(_H41,_ga3.physicsKinematic);}physics_fixture_bind(this,_H41, this.id,_ha3,_X53);};_iQ.prototype._G93=function(){with(this){if(this.hspeed==0){if(this.vspeed>0){this.__83=270;}else if(this.vspeed<0){this.__83=90;}else {this.__83=0;}}else {var _2M=_ma3(180*(Math.atan2(this.vspeed,this.hspeed))/_L6);if(_2M<=0){this.__83=-_2M;}else {this.__83=360.0-_2M;}}if(Math.abs(this.__83-_Xk(this.__83))<0.0001){this.__83=_Xk(this.__83);}this.__83=_nM2(this.__83,360.0);this._093=Math.sqrt(_kA(this.hspeed)+_kA(this.vspeed));if(Math.abs(this.speed-_Xk(this.speed))<0.0001)this._093=_Xk(this._093); }};_iQ.prototype._H93=function(){this._Y83=this.speed*_ma3(Math.cos(this.direction*0.0174532925));this._Z83=-this.speed*_ma3(Math.sin(this.direction*0.0174532925));if(Math.abs(this._Y83-_Xk(this._Y83))<0.0001){this._Y83=_Xk(this._Y83);}if(Math.abs(this._Z83-_Xk(this._Z83))<0.0001){this._Z83=_Xk(this._Z83);}};function _ma3(_na3){return(~~(_na3*1000000))/1000000.0;}_iQ.prototype._rm=function(_qm,_PD){this.hspeed+=_PD*_ma3(Math.cos(_qm*0.0174532925));this.vspeed-=_PD*_ma3(Math.sin(_qm*0.0174532925)); this._G93();};_iQ.prototype._oa3=function(){if(this.friction!=0.0){var _pa3;if(this.speed>0){_pa3=this.speed-this.friction;}else {_pa3=this.speed+this.friction;}if((this.speed>0)&&(_pa3<0)){this.speed=0;}else if((this.speed<0)&&(_pa3>0)){this.speed=0;}else if(this.speed!=0){this.speed=_pa3;}}if(this.gravity!=0){this._rm(this.gravity_direction,this.gravity);}};_iQ.prototype._qa3=function(){var _qA2=_D5._E5(this.sprite_index);var _nM=this._29();if(_nM){return _nM._p3(_qA2);}return _D5._ra3(this.sprite_index); };_iQ.prototype._N5=function(_e3,_J3,_Ht,_2I,_sa3){if(_sa3==undefined){_sa3=_Ht._VF;}var _hI=_iI;var _jI=_kI;var _lI=_mI;var result=false;var _ta3=false;if(_e3==_Tc2){var _ua3=_i3._E5(_J3);while(_ua3!=null&&!_ta3){var _BG=_sa3;while(_BG!=null&&!_ta3){if(_BG.Event[_e3]){if(_BG._IN2[_ua3._EQ]){_iI=_BG;_kI=_e3;_mI=_ua3._EQ;result=_BG._N5(_e3,_ua3._EQ,_Ht,_2I);_ta3=true;break;}}_BG=_BG._9F;}_ua3=_ua3._9F;}}else {var _BG=_sa3;var _va3=_e3|_J3;while(_BG!=null){if(_BG.Event[_va3]){_iI=_BG;_kI=_e3;_mI=_J3;result=_BG._N5(_e3, _J3,_Ht,_2I);break;}_BG=_BG._9F;}}_iI=_hI;_kI=_jI;_mI=_lI;return result;};_iQ.prototype._rI=function(_e3,_J3,_2I){if(_iI!=null){if(_iI._9F!=null){this._N5(_e3,_J3,this,_2I,_iI._9F);}}};_iQ.prototype._wa3=function(_B3){_B3=yyGetReal(_B3);if(this.hspeed==_B3)return;this.hspeed=_B3;this._G93();};_iQ.prototype._xa3=function(_B3){_B3=yyGetReal(_B3);if(this.vspeed==_B3)return;this.vspeed=_B3;this._G93();};_iQ.prototype._ya3=function(_B3){_B3=yyGetReal(_B3);this.direction=_nM2(_B3,360.0);while(this.direction<0.0){ this.direction+=360.0;}this._H93();};_iQ.prototype._za3=function(_B3){_B3=yyGetReal(_B3);if(this.speed==_B3)return;this.speed=_B3;this._H93();};_iQ.prototype._ZP=function(){var _Aa3=this._Ba3();var _Ca3=this._Da3();if(_Aa3!==null&&_D5.Sprites[this.mask_index]._dg1==0){if(!this._IP){this._IP=new _IF(0,0,0,0);}if(_Aa3._a6(this._IP,this._Ea3(),this.x,this.y,this.image_xscale,this.image_yscale,this.image_angle)){this._1r=_vg1._Fa3;}else {this._IP.left=this.x;this._IP.top=this.y;this._IP.right=this.x;this._IP.bottom=this.y; this._1r=_vg1._wg1;}this._YP=false;return;}else if(_Ca3!==null&&_D5.Sprites[this.sprite_index]._dg1==0){if(!this._IP){this._IP=new _IF(0,0,0,0);}if(_Ca3._a6(this._IP,this._Ea3(),this.x,this.y,this.image_xscale,this.image_yscale,this.image_angle)){this._1r=_vg1._Fa3;}else {this._IP.left=this.x;this._IP.top=this.y;this._IP.right=this.x;this._IP.bottom=this.y;this._1r=_vg1._wg1;}this._YP=false;return;}var _On,_J6;var _Kj=(this.mask_index>=0)?this.mask_index:this.sprite_index;if(_Kj<0||_Kj>_D5.Sprites.length){ if(!this._IP){this._IP=new _IF(0,0,0,0);}this._IP.left=this.x;this._IP.top=this.y;this._IP.right=this.x;this._IP.bottom=this.y;this._1r=_vg1._wg1;}else {var _IP=this._IP;_On=_D5.Sprites[_Kj];if(this.image_angle==0){if((_On._bh1!=null)&&(_On._bh1._Ga3())){_IP=_On._Ha3(this.image_xscale,this.image_yscale);_IP.left+=this.x;_IP.right+=this.x;_IP.top+=this.y;_IP.bottom+=this.y;}else {var _Ia3=_On._IP;var width=(_Ia3.right+1)-_Ia3.left;var height=(_Ia3.bottom+1)-_Ia3.top;if(_kZ){_IP.left=_Xk(this.x+this.image_xscale*(_Ia3.left-_On.xOrigin)); _IP.right=_Xk(_IP.left+(this.image_xscale*width));}else {_IP.left=(this.x+this.image_xscale*(_Ia3.left-_On.xOrigin));_IP.right=(_IP.left+(this.image_xscale*width));}if(_IP.left>_IP.right){_J6=_IP.left;_IP.left=_IP.right;_IP.right=_J6;}if(_kZ){_IP.top=_Xk(this.y+this.image_yscale*(_Ia3.top-_On.yOrigin));_IP.bottom=_Xk(_IP.top+(this.image_yscale*height));}else {_IP.top=(this.y+this.image_yscale*(_Ia3.top-_On.yOrigin));_IP.bottom=(_IP.top+(this.image_yscale*height));}if(_IP.top>_IP.bottom){_J6=_IP.top; _IP.top=_IP.bottom;_IP.bottom=_J6;}if(_kZ){_IP.right-=1;_IP.bottom-=1;}}this._1r=_On._1r;}else {var _RZ,_SZ;var _TZ,_UZ;if((_On._bh1!=null)&&(_On._bh1._Ga3())){_IP=_On._Ha3(this.image_xscale,this.image_yscale);_RZ=_IP.left;_SZ=_IP.right;_TZ=_IP.top;_UZ=_IP.bottom;if(_kZ){_UZ+=1;_SZ+=1;}}else {var _Ia3=_On._IP;_RZ=this.image_xscale*(_Ia3.left-_On.xOrigin);_SZ=this.image_xscale*(_Ia3.right-_On.xOrigin+1);_TZ=this.image_yscale*(_Ia3.top-_On.yOrigin);_UZ=this.image_yscale*(_Ia3.bottom-_On.yOrigin+1);}var _67, _57;_67=Math.cos(this.image_angle*_L6/180.0);_57=Math.sin(this.image_angle*_L6/180.0);var _Ja3=_67*_SZ;var _Ka3=_67*_RZ;var _La3=_57*_UZ;var _Ma3=_57*_TZ;var _J6;if(_Ja3<_Ka3){_J6=_Ka3;_Ka3=_Ja3;_Ja3=_J6;}if(_La3<_Ma3){_J6=_Ma3;_Ma3=_La3;_La3=_J6;}if(_kZ){_IP.left=Math.floor((this.x+_Ka3+_Ma3)+0.5);_IP.right=Math.floor((this.x+_Ja3+_La3)-0.5);}else {_IP.left=(this.x+_Ka3+_Ma3);_IP.right=(this.x+_Ja3+_La3);}var _Na3=_67*_UZ;var _Oa3=_67*_TZ;var _Pa3=_57*_SZ;var _Qa3=_57*_RZ;if(_Na3<_Oa3){_J6=_Oa3;_Oa3=_Na3; _Na3=_J6;}if(_Pa3<_Qa3){_J6=_Qa3;_Qa3=_Pa3;_Pa3=_J6;}if(_kZ){_IP.top=Math.floor((this.y+_Oa3-_Pa3)+0.5);_IP.bottom=Math.floor((this.y+_Na3-_Qa3)-0.5);}else {_IP.top=((this.y+_Oa3-_Pa3));_IP.bottom=((this.y+_Na3-_Qa3));}this._1r=_On._1r;}this._IP=_IP;}this._YP=false;};_iQ.prototype._Ra3=function(){this._Ba3();if(this._YP){this._ZP();return;}var _Ca3=this._Da3();if(_Ca3!==null){var _MU=_C5=_D5._E5(this.sprite_index);if(_Ca3._p5(this._Ea3(),this.x,this.y,this.image_xscale,this.image_yscale,this.image_angle, undefined,_MU)){this._ZP();return;}}};_iQ.prototype._Nt=function(_q5,_r5,_gj){if(this.marked)return false;this._Ra3();var _jZ=-0.00001;if(_kZ){_jZ=1.0;}var _IP=this._IP;if(_q5>=_IP.right+_jZ)return false;if(_q5<_IP.left)return false;if(_r5>=_IP.bottom+_jZ)return false;if(_r5<_IP.top)return false;if(this._1r===_vg1._Sa3){if(!_Ta3(this,_q5,_r5)){return false;}}var _XF;if(this.mask_index<0){_XF=_D5._E5(this.sprite_index);}else {_XF=_D5._E5(this.mask_index);}if((_XF===null)||(_XF._E6===0))return false;if((!_gj)||this._1r===_vg1._wg1)return true; var _un=false;var _Ca3=this._Da3();if(_Ca3!==null){_un=_Ca3._V6(this._Ea3(),this.x,this.y,this.image_xscale,this.image_yscale,this.image_angle,_q5,_r5);}else {_un=_XF._Ua3(Math.floor(this.image_index),_IP,_Xk(this.x),_Xk(this.y),this.image_xscale,this.image_yscale,this.image_angle,_Xk(_q5),_Xk(_r5));}return _un;};_iQ.prototype._eu=function(_W6,_X6,_o6,_p6,_gj){if(this.marked)return false;this._Ra3();var _IP=this._IP;var _jZ=0;if(_kZ){_jZ=1.0;}var _MU1=_I6(_W6,_o6);if(_MU1>=_IP.right+_jZ){return _un;}var _Va3=_H6(_W6, _o6);if(_Va3<_IP.left){return _un;}var _Wa3=_I6(_X6,_p6);if(_Wa3>=_IP.bottom+_jZ){return _un;}var _7L=_H6(_X6,_p6);if(_7L<_IP.top){return _un;}var _XF;if(this.mask_index<0){_XF=_D5._E5(this.sprite_index);}else {_XF=_D5._E5(this.mask_index);}if((_XF===null)||(_XF._E6==0))return false;if(this._1r===_vg1._Sa3){if(!_Xa3(this,_W6,_X6,_o6,_p6))return false;}if((!_gj)||this._1r===_vg1._wg1){if(!_kZ){var _G6=(_H6(_MU1,_IP.left));var _J6=(_H6(_Wa3,_IP.top));var _e4=(_I6(_Va3,_IP.right));var _g4=(_I6(_7L,_IP.bottom)); if(Math.floor(_G6+0.5)==Math.floor(_e4+0.5))return false;if(Math.floor(_J6+0.5)==Math.floor(_g4+0.5))return false;}return true;}var _un=false;var _Ca3=this._Da3();if(_Ca3!==null){_un=_Ca3._Z6(this._Ea3(),this.x,this.y,this.image_xscale,this.image_yscale,this.image_angle,_W6,_X6,_o6,_p6);}else {_O83.left=_Xk(_I6(_W6,_o6));_O83.top=_Xk(_I6(_X6,_p6));_O83.right=_Xk(_H6(_W6,_o6));_O83.bottom=_Xk(_H6(_X6,_p6));_un=_XF._Ya3(Math.floor(this.image_index),_IP,_Xk(this.x),_Xk(this.y),this.image_xscale,this.image_yscale, this.image_angle,_O83);}return _un;};function _Za3(_W6,_X6,_o6,_p6,_Zt,__t){var _17=(_W6+_o6)*0.5;var _27=(_X6+_p6)*0.5;var _37=(_o6-_W6)*0.5;var _47=(_p6-_X6)*0.5;var _h4=(_Zt-_17)/_37;var _g4=(__t-_27)/_47;return((_h4*_h4)+(_g4*_g4)<=1)?true:false;};_iQ.prototype._nu=function(_W6,_X6,_o6,_p6,_gj){if(this.marked)return false;this._Ra3();if(this._YP)this._ZP();_W6=_Xk(_W6);_o6=_Xk(_o6);_X6=_Xk(_X6);_p6=_Xk(_p6);var __a3,_0b3,_1b3,_2b3;if(_W6<_o6){_1b3=_W6;__a3=_o6;}else {_1b3=_o6;__a3=_W6;}if(_X6<_p6){_2b3=_X6; _0b3=_p6;}else {_2b3=_p6;_0b3=_X6;}var _IP=this._IP;if(_1b3>=_IP.right)return false;if(__a3<_IP.left)return false;if(_2b3>=_IP.bottom)return false;if(_0b3<_IP.top)return false;if((_W6==_o6)||(_X6==_p6)){return this._eu(_W6,_X6,_o6,_p6,_gj);}var _hu=(_W6+_o6)*0.5;var _iu=(_X6+_p6)*0.5;if(!(_IP.left<=_hu&&_IP.right>=_hu)&&!(_IP.top<=_iu&&_IP.bottom>=_iu)){var _Bu=(_IP.right<=_hu)?_IP.right:_IP.left;var _Cu=(_IP.bottom<=_iu)?_IP.bottom:_IP.top;if(!_Za3(_W6,_X6,_o6,_p6,_Bu,_Cu))return false;}var _XF;if(this.mask_index<0){ _XF=_D5._E5(this.sprite_index);}else {_XF=_D5._E5(this.mask_index);}if((_XF===null)||(_XF._E6==0))return false;if(this._1r===_vg1._Sa3){if(!_3b3(this,_W6,_X6,_o6,_p6))return false;}if((!_gj)||this._1r===_vg1._wg1)return true;_O83.left=_1b3;_O83.top=_2b3;_O83.right=__a3;_O83.bottom=_0b3;var _Ca3=this._Da3();if(_Ca3!==null){return _Ca3.__6(this._Ea3(),this.x,this.y,this.image_xscale,this.image_yscale,this.image_angle,_O83);}else {return _XF._4b3(Math.floor(this.image_index),_IP,_Xk(this.x),_Xk(this.y),this.image_xscale, this.image_yscale,this.image_angle,_O83);}};_iQ.prototype._ru=function(_W6,_X6,_o6,_p6,_gj){if(this.marked)return false;this._Ra3();var _5b3=this._IP;if(_I6(_W6,_o6)>=_5b3.right+1){return false;}if(_H6(_W6,_o6)<_5b3.left){return false;}if(_I6(_X6,_p6)>=_5b3.bottom+1){return false;}if(_H6(_X6,_p6)<_5b3.top){return false;}if(_o6<_W6){var _ue=_o6;_o6=_W6;_W6=_ue;_ue=_p6;_p6=_X6;_X6=_ue;}if(_W6<_5b3.left){_X6=_X6+(_5b3.left-_W6)*(_p6-_X6)/(_o6-_W6);_W6=_5b3.left;}if(_o6>(_5b3.right+1)){_p6=_p6+(_5b3.right+1-_o6)*(_p6-_X6)/(_o6-_W6); _o6=_5b3.right+1;}if((_X6<_5b3.top)&&(_p6<_5b3.top)){return false;}if((_X6>=_5b3.bottom+1)&&(_p6>=_5b3.bottom+1)){return false;}var _XF;if(this.mask_index<0){_XF=_D5._E5(this.sprite_index);}else {_XF=_D5._E5(this.mask_index);}if((_XF==null)||(_XF==undefined)||(_XF._D4()==0))return false;if(this._1r===_vg1._Sa3){if(!_6b3(this,_W6,_X6,_o6,_p6)){return false;}}if(!_gj||this._1r===_vg1._wg1){return true;}var _Ca3=this._Da3();if(_Ca3!==null){return _Ca3._Y6(this._Ea3(),this.x,this.y,this.image_xscale,this.image_yscale, this.image_angle,_W6,_X6,_o6,_p6);}else {return _XF._7b3(this.image_index|0,_5b3,_Xk(this.x),_Xk(this.y),this.image_xscale,this.image_yscale,this.image_angle,_Xk(_W6),_Xk(_X6),_Xk(_o6),_Xk(_p6));}};_iQ.prototype._8b3=function(_0n,_5P){this._Ra3();_0n._Ra3();if(_0n._IP.left>=this._IP.right+1)return false;if(_0n._IP.right+1<=this._IP.left)return false;if(_0n._IP.top>=this._IP.bottom+1)return false;if(_0n._IP.bottom+1<=this._IP.top)return false;var _9b3=_D5._E5(this.sprite_index);var __P=(_0n.mask_index<0)?_D5._E5(_0n.sprite_index):_D5._E5(_0n.mask_index); if(__P===null)return false;if(!_5P)return true;var _ab3=this._Da3();var _bb3=_0n._Da3();if(_bb3!==null){return _ab3._l6(this._Ea3(),this.x,this.y,this.image_xscale,this.image_yscale,this.image_angle,_bb3,_0n._Ea3(),_0n.x,_0n.y,_0n.image_xscale,_0n.image_yscale,_0n.image_angle);}else if(__P._1r==_vg1._Qg1){return _ab3._C6(this._Ea3(),this.x,this.y,this.image_xscale,this.image_yscale,this.image_angle,__P,_0n._IP,_0n._Ea3(),_0n.x,_0n.y,_0n.image_xscale,_0n.image_yscale,_0n.image_angle);}else {return true;}} ;_iQ.prototype._cb3=function(){if(_v3){var _vs=_D5._E5(this.sprite_index);if(_vs!=null){if(_vs.sequence===null){if(_vs.playbackspeedtype==_w3){this._I3(this.image_index+this.image_speed*_vs.playbackspeed);}else {var fps=_x3._y3();this._I3(this.image_index+this.image_speed*_vs.playbackspeed/fps);}}return;}}this.image_index+=this.image_speed;};function _db3(points){var _eb3=[];for(var i=0;i<2;++i){var x=points[i+1].x-points[i].x;var y=points[i+1].y-points[i].y;var length=sqrt(x*x+y*y);x=x/length;y=y/length; _eb3[i]={"x":-y,"y":x};}return _eb3;};function _fb3(_0v,_4t1){var _gb3=_db3(_0v);var _hb3=_db3(_4t1);for(var i=0;i<2;++i){var _ib3=_jb3(_0v,_gb3[i]);var _kb3=_jb3(_4t1,_gb3[i]);var _lb3=((_ib3.max<=_kb3.min)||(_kb3.max<=_ib3.min));if(_lb3)return false;}for(var i=0;i<2;++i){var _ib3=_jb3(_0v,_hb3[i]);var _kb3=_jb3(_4t1,_hb3[i]);var _lb3=((_ib3.max<=_kb3.min)||(_kb3.max<=_ib3.min));if(_lb3)return false;}return true;};function _jb3(points,_1v){var _423=points[0].x*_1v.x+points[0].y*_1v.y;var result={"min":_423,"max":_423} ;for(var i=1;i<4;++i){_423=points[i].x*_1v.x+_1v.y*points[i].y;if(_423result.max)result.max=_423;}return result;};function _mb3(_ku1){var _Kj=(_ku1.mask_index>=0)?_ku1.mask_index:_ku1.sprite_index;var _On=_D5.Sprites[_Kj];var _RZ,_SZ;var _TZ,_UZ;if((_On._bh1!=null)&&(_On._bh1._Ga3())){var _IP=_On._Ha3(_ku1.image_xscale,_ku1.image_yscale);_RZ=_IP.left;_SZ=_IP.right+1;_TZ=_IP.top;_UZ=_IP.bottom+1;}else {var _Ia3=_On._IP;_RZ=_ku1.image_xscale*(_Ia3.left-_On.xOrigin);_SZ=_ku1.image_xscale*(_Ia3.right-_On.xOrigin+1); _TZ=_ku1.image_yscale*(_Ia3.top-_On.yOrigin);_UZ=_ku1.image_yscale*(_Ia3.bottom-_On.yOrigin+1);}var _67,_57;_67=Math.cos(-_ku1.image_angle*_L6/180.0);_57=Math.sin(-_ku1.image_angle*_L6/180.0);var _Ja3=_67*_SZ;var _Ka3=_67*_RZ;var _La3=_57*_UZ;var _Ma3=_57*_TZ;var _Na3=_67*_UZ;var _Oa3=_67*_TZ;var _Pa3=_57*_SZ;var _Qa3=_57*_RZ;var _eb3=[];var _Kj=_ku1.x-0.5;var _Iy2=_ku1.y-0.5;_eb3[0]={"x":(_Kj+_Ka3-_Ma3),"y":(_Iy2+_Oa3+_Qa3)};_eb3[1]={"x":(_Kj+_Ja3-_Ma3),"y":(_Iy2+_Oa3+_Pa3)};_eb3[2]={"x":(_Kj+_Ja3-_La3),"y":(_Iy2+_Na3+_Pa3)} ;_eb3[3]={"x":(_Kj+_Ka3-_La3),"y":(_Iy2+_Na3+_Qa3)};return _eb3;};function _nb3(_ku1,_lu1){var _0v=_mb3(_ku1);var _4t1=_mb3(_lu1);return _fb3(_0v,_4t1);};function _ob3(points){var x=points[1].x-points[0].x;var y=points[1].y-points[0].y;var length=sqrt(x*x+y*y);x=x/length;y=y/length;_eb3={"x":-y,"y":x};return _eb3;};function _pb3(_0v,_4t1){var _gb3=_db3(_0v);for(var i=0;i<2;++i){var _ib3=_jb3(_0v,_gb3[i]);var _kb3=_4t1.x*_gb3[i].x+_4t1.y*_gb3[i].y;var _lb3=((_ib3.max<=_kb3)||(_kb3<=_ib3.min));if(_lb3)return false; }return true;};function _qb3(_0v,_rb3,_cA,_dA){var _VZ=Math.abs(_dA/_cA);for(var i=0;i<4;++i)_0v[i].x*=_VZ;_rb3.x*=_VZ;var _e4=Math.abs(_dA);var _gb3=_db3(_0v);for(var i=0;i<2;++i){var _ib3=_jb3(_0v,_gb3[i]);var _sb3=_rb3.x*_gb3[i].x+_rb3.y*_gb3[i].y;var _kb3={"min":_sb3-_e4,"max":_sb3+_e4};var _lb3=((_ib3.max<=_kb3.min)||(_kb3.max<=_ib3.min));if(_lb3)return false;}return true;}function _tb3(_0v,_4t1){var _gb3=_db3(_0v);var _ub3=_ob3(_4t1);for(var i=0;i<2;++i){var _ib3=_jb3(_0v,_gb3[i]);var _kb3=_vb3(_4t1,_gb3[i]); var _lb3=((_ib3.max<=_kb3.min)||(_kb3.max<=_ib3.min));if(_lb3)return false;}{var _ib3=_jb3(_0v,_ub3);var _kb3=_vb3(_4t1,_ub3);var _lb3=((_ib3.max<=_kb3.min)||(_kb3.max<=_ib3.min));if(_lb3)return false;}return true;}function _vb3(points,_1v){var _423=points[0].x*_1v.x+points[0].y*_1v.y;var result={"min":_423,"max":_423};for(var i=1;i<2;++i){_423=points[i].x*_1v.x+_1v.y*points[i].y;if(_423result.max)result.max=_423;}return result;}function _wb3(_W6,_X6,_o6,_p6){_eb3=[];_eb3[0]={ "x":_W6,"y":_X6};_eb3[1]={"x":_o6,"y":_p6};return _eb3;};function _6b3(_ku1,_W6,_X6,_o6,_p6){var _0v=_mb3(_ku1);var _4t1=_wb3(_W6,_X6,_o6,_p6);return _tb3(_0v,_4t1);};function _Ta3(_ku1,_W6,_X6){var _0v=_mb3(_ku1);var _4t1={"x":_W6,"y":_X6};return _pb3(_0v,_4t1);};function _3b3(_ku1,_W6,_X6,_o6,_p6){var _0v=_mb3(_ku1);var _rb3={"x":(_W6+_o6)*0.5,"y":(_X6+_p6)*0.5};var _cA=Math.abs(_W6-_o6)*0.5;var _dA=Math.abs(_X6-_p6)*0.5;return _qb3(_0v,_rb3,_cA,_dA);};function _Xa3(_ku1,_W6,_X6,_o6,_p6){var _0v=_mb3(_ku1);var _4t1=[]; _4t1[0]={"x":_W6,"y":_X6};_4t1[1]={"x":_o6,"y":_X6};_4t1[2]={"x":_W6,"y":_p6};_4t1[3]={"x":_o6,"y":_p6};return _fb3(_0v,_4t1);};_iQ.prototype._QZ=function(_Ht,_gj){if(this!=_Ht&&!this.marked&&!_Ht.marked){if(this._xb3()){return this._8b3(_Ht,_gj);}if(_Ht._xb3()){return _Ht._8b3(this,_gj);}if(this._YP)this._ZP();if(_Ht._YP)_Ht._ZP();var _jZ=0.0;if(_kZ){_jZ=1.0;}var _yb3=_Ht._IP;var _zb3=this._IP;if(_yb3.left>=(_zb3.right+_jZ))return false;if((_yb3.right+_jZ)<=_zb3.left)return false;if(_yb3.top>=(_zb3.bottom+_jZ))return false; if((_yb3.bottom+_jZ)<=_zb3.top)return false;if(this._1r===_vg1._Sa3||_Ht._1r===_vg1._Sa3){if(!_nb3(this,_Ht)){return false;}}var _Ab3=null;var _Bb3=null;if(this.mask_index<0){_Ab3=_D5._E5(this.sprite_index);}else {_Ab3=_D5._E5(this.mask_index);}if((_Ab3==null)||(_Ab3._E6==0))return false;if(_Ht.mask_index<0){_Bb3=_D5._E5(_Ht.sprite_index);}else {_Bb3=_D5._E5(_Ht.mask_index);}if((_Bb3==null)||(_Bb3._E6==0))return false;if(!_gj||(this._1r===_vg1._wg1&&_Ht._1r===_vg1._wg1)){if(!_kZ){var _G6=(_H6(_yb3.left,_zb3.left)); var _J6=(_H6(_yb3.top,_zb3.top));var _e4=(_I6(_yb3.right,_zb3.right));var _g4=(_I6(_yb3.bottom,_zb3.bottom));if(Math.floor(_G6+0.5)==Math.floor(_e4+0.5))return false;if(Math.floor(_J6+0.5)==Math.floor(_g4+0.5))return false;}return true;}if(_kZ){return _Ab3._Cb3(this.image_index|0,this._IP,_Xk(this.x),_Xk(this.y),this.image_xscale,this.image_yscale,this.image_angle,_Bb3,_Ht.image_index|0,_Ht._IP,_Xk(_Ht.x),_Xk(_Ht.y),_Ht.image_xscale,_Ht.image_yscale,_Ht.image_angle);}else {return _Ab3._Db3(this.image_index|0, this._IP,_Xk(this.x),_Xk(this.y),this.image_xscale,this.image_yscale,this.image_angle,_Bb3,_Ht.image_index|0,_Ht._IP,_Xk(_Ht.x),_Xk(_Ht.y),_Ht.image_xscale,_Ht.image_yscale,_Ht.image_angle);}}return false;};_iQ.prototype._tq=function(_t4,_tm,_nm,_Eb3,_741,_Fb3){this.path_index=-1;if(_t4<0)return;var _QY=_RY.Paths[_t4];if(!_QY)return;if(_QY.length<=0)return;if(_nm<0)return;this.path_index=_t4;this.path_speed=_tm;if(this.path_speed>=0){this.path_position=0;}else {this.path_position=1;}this.path_positionprevious=this.path_position; this.path_scale=_nm;this.path_orientation=_Eb3;this.path_endaction=_Fb3;if(_741){if(this.path_speed>=0){this._Hd(_QY._Y31(0),_QY._Z31(0));}else {this._Hd(_QY._Y31(1),_QY._Z31(1));}}this._ZF=this.x;this.__F=this.y;};_iQ.prototype._Dc2=function(){var _b41,_N6,_P6;if(this.path_index<0)return false;var _QY=_RY.Paths[this.path_index];if(!_QY)return;if(_QY.length<=0)return;var _Gb3=false;var _Hb3=this.path_orientation*Math.PI/180.0;var _Kl=_QY._e41(this.path_position);_N6=_Kl.x;_P6=_Kl.y;_b41=_Kl.speed;_Kl=null; _b41=_b41/(100*this.path_scale);this.path_position=this.path_position+this.path_speed*_b41/_QY.length;var _Ib3=_QY._e41(0);if((this.path_position>=1)||(this.path_position<=0)){_Gb3=(this.path_speed==0)?false:true;switch(this.path_endaction){case 0:{if(this.path_speed!=0){this.path_position=1;this.path_index=-1;}break;}case 1:{if(this.path_position<0){this.path_position++;}else {this.path_position--;}break;}case 2:{var _Jb3=_QY._e41(1);_N6=_Jb3.x-_Ib3.x;_P6=_Jb3.y-_Ib3.y;var _Kb3=this.path_scale*(_N6*Math.cos(_Hb3)+_P6*Math.sin(_Hb3)); var _Lb3=this.path_scale*(_P6*Math.cos(_Hb3)-_N6*Math.sin(_Hb3));if(this.path_position<0){this._ZF=this._ZF-_Kb3;this.__F=this.__F-_Lb3;this.path_position++;}else {this._ZF=this._ZF+_Kb3;this.__F=this.__F+_Lb3;this.path_position--;}break;}case 3:{if(this.path_position<0){this.path_position=-this.path_position;this.path_speed=Math.abs(this.path_speed);}else {this.path_position=2-this.path_position;this.path_speed=-Math.abs(this.path_speed);}break;}default :{this.path_position=1;this.path_index=-1;}}}_Kl=_QY._e41(this.path_position); _N6=_Kl.x-_Ib3.x;_P6=_Kl.y-_Ib3.y;var _yY=this._ZF+this.path_scale*(_N6*Math.cos(_Hb3)+_P6*Math.sin(_Hb3));var _zY=this.__F+this.path_scale*(_P6*Math.cos(_Hb3)-_N6*Math.sin(_Hb3));this.hspeed=_yY-this.x;this.vspeed=_zY-this.y;this.speed=0;this._Hd(_yY,_zY);return _Gb3;};_iQ.prototype.get_timer=function(_J3){var _un=-1;if((_J3>=0)&&(_J3<_ZA2)){_un=this.alarm[_J3];}return _un;};_iQ.prototype._qn=function(_J3,_B3){if((_J3>=0)&&(_J3<_ZA2)){this.alarm[_J3]=_B3;}};_iQ.prototype._XZ=function(){if(this._YP){ this._ZP();}return this._IP;};_iQ.prototype.wrap=function(_YZ,_tL){var w,h;if(!sprite_exists(this.sprite_index)){w=h=0;}else {var _XF=_D5._E5(this.sprite_index);w=_XF.width*this.image_xscale;h=_XF.height*this.image_yscale;}if(_YZ){if((this.hspeed<0)&&(this.x<0)){this._Hd(this.x+_t3._aN()+w,this.y);}if((this.hspeed>0)&&(this.x>=_t3._aN())){this._Hd(this.x-_t3._aN()-w,this.y);}}if(_tL){if((this.vspeed<0)&&(this.y<0)){this._Hd(this.x,this.y+_t3._bN()+h);}if((this.vspeed>0)&&(this.y>=_t3._bN())){this._Hd(this.x, this.y-_t3._bN()-h);}}};_iQ.prototype._5d2=function(_u5,_Mb3){var _Wc2={};if((_Mb3.x!=0.0)||(_Mb3.y!=0.0)){var _xq1=_u5;var _Nb3=Math.cos(_xq1);var _Ob3=Math.sin(_xq1);_Wc2.x=((_Mb3.x*_Nb3)-(_Mb3.y*_Ob3));_Wc2.y=((_Mb3.y*_Nb3)+(_Mb3.x*_Ob3));}else {_Wc2.x=_Mb3.x;_Wc2.y=_Mb3.y;}return _Wc2;};_iQ.prototype._Hc2=function(_Pb3){var _Q93=_t3._u3();if(_v3)_Q93=_x3._y3();var _Gc2=1.0/_t3._v41._151;var _Qb3=this._5d2(_Pb3.__r1(),this._s51._J82);this.x=(_Pb3._e41().x*_Gc2)+_Qb3.x;this.y=(_Pb3._e41().y*_Gc2)+_Qb3.y; this.image_angle=(-_Pb3.__r1()*180.0)/_L6;this._YP=true;this._K93=(_Pb3.__r1()*180.0)/Math.PI;this._L93=this.x-_Qb3.x;this._M93=this.y-_Qb3.y;this._N93=(_Pb3._uD1()*180.0)/Math.PI;this._O93=_Pb3._sD1().x*_Gc2;this._P93=_Pb3._sD1().y*_Gc2;this._S93=this.phy_linear_velocity_x/_Q93;this._T93=this.phy_linear_velocity_y/_Q93;this._W93=_Pb3.__D1();this.phy_mass=_Pb3._BD1();this.phy_inertia=_Pb3._CD1();this.phy_com_x=_Pb3._pD1().x*_Gc2;this.phy_com_y=_Pb3._pD1().y*_Gc2;this.phy_dynamic=(_Pb3._9P===_P72._Qa2._QC1); this.phy_kinematic=(_Pb3._9P===_P72._Qa2._YC1);this.phy_sleeping=!_Pb3._2E1();this._X93=_Pb3._6E1();this._Y93=_Pb3._4E1();this._Rb3=Math.sqrt((this.phy_speed_x*this.phy_speed_x)+(this.phy_speed_y*this.phy_speed_y));this._U93=_Pb3._PD1();this._V93=_Pb3._OD1();if(this.phy_position_xprevious===undefined){this.phy_position_xprevious=_Pb3._e41().x*_Gc2;}if(this.phy_position_yprevious===undefined){this.phy_position_yprevious=_Pb3._e41().y*_Gc2;}};_iQ.prototype._Sb3=function(_Qk){this._s51.__82(yyGetReal(_Qk)*_t3._v41._151); this._Hc2(this._s51._H82);};_iQ.prototype._Tb3=function(_Qk){this._s51._092(yyGetReal(_Qk)*_t3._v41._151);this._Hc2(this._s51._H82);};_iQ.prototype._Ub3=function(_392){this._s51._292(yyGetReal(_392)*_t3._v41._151);this._Hc2(this._s51._H82);};_iQ.prototype._Vb3=function(_392){this._s51._592(yyGetReal(_392)*_t3._v41._151);this._Hc2(this._s51._H82);};_iQ.prototype._Wb3=function(_tm){var _Q93=_t3._u3();if(_v3)_Q93=_x3._y3();this._s51._292(yyGetReal(_tm)*_t3._v41._151*_Q93);this._Hc2(this._s51._H82);} ;_iQ.prototype._Xb3=function(_tm){var _Q93=_t3._u3();if(_v3)_Q93=_x3._y3();this._s51._592(yyGetReal(_tm)*_t3._v41._151*_Q93);this._Hc2(this._s51._H82);};_iQ.prototype._Yb3=function(_V41){this._s51._H82._X41(yyGetReal(_V41));this._Hc2(this._s51._H82);};_iQ.prototype._Zb3=function(_V41){this._s51._H82._W41(yyGetReal(_V41));this._Hc2(this._s51._H82);};_iQ.prototype.__b3=function(_692){this._s51._YD1(yyGetBool(_692));this._Hc2(this._s51._H82);};_iQ.prototype._0c3=function(_792){this._s51._5E1(yyGetBool(_792)); this._Hc2(this._s51._H82);};_iQ.prototype._1c3=function(_892){this._s51._3E1(yyGetBool(_892));this._Hc2(this._s51._H82);};_iQ.prototype._29=function(){if(sprite_exists(this.sprite_index)){var _On=_D5._E5(this.sprite_index);if(_On._tM){if(!this._D93){this._D93=new _P2(_On._tM);}}}return this._D93;};_iQ.prototype._Ba3=function(){var _2c3=null;var _3c3=false;if(this.mask_index>=0){_2c3=_D5.Sprites[this.mask_index];_3c3=_2c3._1r==_vg1._Fa3;}if(this._x93!==null&&(!_3c3||this._x93._33!=_2c3._33)){this._x93=null; this._YP=true;}if(_3c3&&this._x93===null){this._x93=new _P2(_2c3._tM);this._YP=true;}return this._x93;};_iQ.prototype._Da3=function(){var skel=null;if(this.mask_index>=0){skel=this._Ba3();}else {skel=this._29();if(skel!==null){var _MU=_D5.Sprites[this.sprite_index];if(_MU._1r!==_vg1._Fa3){skel=null;}}}return skel;};_iQ.prototype._Ea3=function(){if(this.mask_index>=0&&_D5.Sprites[this.mask_index]._1r===_vg1._Fa3){return 0.0;}else {return this.image_index;}};_iQ.prototype._xb3=function(){if(this.mask_index<0){ return this._29()&&_D5.Sprites[this.sprite_index]._1r===_vg1._Fa3;}else {return _D5.Sprites[this.mask_index]._1r===_vg1._Fa3}};_iQ.prototype._4c3=function(){return this._qT;};_iQ.prototype._5c3=function(_nU){this._qT=_nU;};_iQ.prototype._dU=function(){return this._mQ;};_iQ.prototype._2T=function(_6c3){this._mQ=_6c3;};function _SM2(){this._7c3=new _Ck();this._7c3._Dk=true;this._PF=[];}_SM2.prototype._Wf=function(){this._PF=[];this._7c3._Wf();};_SM2.prototype._PZ=function(){return this._7c3._Vk;};_SM2.prototype._Gf=function(_1u){ this._PF[_1u.id]=_1u;this._7c3._Gf(_1u);};_SM2.prototype._tM2=function(_jg){return this._PF[_jg];};_SM2.prototype._E5=function(_jg){var _1u=this._PF[_jg];if(_1u!=undefined&&_1u!=null)return _1u;var _BG=_i3._E5(_jg);if(_BG!=undefined&&_BG!=null){var _8c3=false;for(var i=0;i<_BG._9c3._Vk.length;i++){_1u=_BG._9c3._Vk[i];if(!_1u.marked){_8c3=true;break;}}if(!_8c3){_H4("Unable to find any instance for object index \'"+_jg+"\' name \'"+_BG._WF+"\'")}else {if(_1u!=undefined&&_1u!=null)return _1u;}}return null;} ;_SM2.prototype._ac3=function(_jg){if(_jg>=0){var _1u=this._PF[_jg];if(_1u!=undefined&&_1u!=null)return _1u;}return null;};_SM2.prototype._bc3=function(_Ht){this._7c3.__S(_Ht);var id=_Ht.id;this._PF[id]=null;};_SM2.prototype._cc3=function(){var _Vk=_t3._NO._Vk;var room=_3u._4u();for(var index=0;index<_Vk.length;index++){var _1u=_Vk[index];_1u.xprevious=_1u.x;_1u.yprevious=_1u.y;_1u.path_positionprevious=_1u.path_position;_1u._cb3();}};_SM2.prototype._dc3=function(){var _Vk=_t3._NO._Vk;for(var index=0;index<_Vk.length; index++){var _1u=_Vk[index];_1u._oa3();if(_1u._Dc2()){_1u._N5(_Ec2,0,_1u,_1u);}if(_1u.hspeed!==0||_1u.vspeed!==0){_1u.x+=_1u.hspeed;_1u.y+=_1u.vspeed;_1u._YP=true;}}};function _ec3(_1u,_MU,_fc3,_gc3){var fps=_x3._y3();var _hc3=_MU.sequence._9h1;if(_MU.sequence._ah1==_wR)_hc3/=fps;_1u._h93=_1u._i93;_1u._i93=_fc3;var _06={headPosition:_1u._i93,_OU:_1u._j93,_PU:false};var _ic3=_QU(_MU.sequence,_06);_1u._i93=_06.headPosition;_1u._j93=_06._OU;if((_MU.sequence._RU!=null)&&(_MU.sequence._RU[0]._9P==_SU)){var _2W=_MU.sequence._RU[0]; if(_2W!=null){_1u._I3(_2W._wt2(_1u._i93));}if(!_gc3){var layer=_3u._MQ(_t3,_1u.layer);var _jc3=-1;for(var _kc3=0;_kc3g_GMLMathEpsilon){var _3W=_2W._UU._4W;if(_3W>0){var _6W=~~(_1u.image_index);var _7W=_1u.image_index-_6W;var _vc3=_1u.image_index;if(_6W>=_3W){_vc3=_2W._UU._8W[_3W-1]._9W+(_1u.image_index-(_3W-1)); }else if(_6W<0){_vc3=_1u.image_index;}else _vc3=(_2W._UU._8W[_6W]._9W+(_7W*_2W._UU._8W[_6W]._WU));_vc3=_lc3(_1u,_MU,_1u.image_index);_ec3(_1u,_MU,_vc3,true);}}}}_tc3=true;var fps=_x3._y3();var length=_MU.sequence._WU;var _hc3=_MU.sequence._9h1;if(_MU.sequence._ah1==_wR)_hc3/=fps;_ec3(_1u,_MU,(_1u._i93+(_1u._j93*_1u.image_speed*_hc3)),false);}}if(!_tc3){var _3v=_1u._qa3();if(_1u.image_index>=_3v){_1u.image_index-=_3v;var _VF=_1u._VF;if(_VF._3A2[_sC2]){_1u._N5(_sC2,0,_1u,_1u);}}else if(_1u.image_index<0){ _1u.image_index+=_3v;var _VF=_1u._VF;if(_VF._3A2[_sC2]){_1u._N5(_sC2,0,_1u,_1u);}}}}};_SM2.prototype._N5=function(_e3,_J3){var _7C1=true;if(_t3){var _va3=_e3;if(_va3!=_Tc2)_va3|=_J3;var _q8=_0A2++;var _Vk=_t3._NO._Vk;for(var index=_Vk.length-1;index>=0;index--){var _1u=_Vk[index];if(_1u!==undefined&&!_1u.marked&&(_1u._2A2<=_q8)){var _VF=_1u._VF;if(_VF._3A2[_va3]){_7C1=_1u._N5(_e3,_J3,_1u,_1u);}}}}return _7C1;};var yyInst=_Tp1;function _Sp1(_f7,_Cq,_jg){if(_jg instanceof _Rt){_jg=yyGetInt32(_jg);}else {if(typeof _jg==="object"||typeof _jg==="function")return _jg; }if(_jg==-1)return _f7;if(_jg==-2)return _Cq;if(_jg==-3)return _f7;var _1u=_Hn._E5(_jg);if(!_1u){_1u=_i3._E5(_jg);if(_1u)_1u=_1u._KA2._E5(0);}return _1u;}function _Tp1(_f7,_Cq,_jg){if(_jg instanceof _Rt){_jg=yyGetInt32(_jg);}else {if(typeof _jg==="object"||typeof _jg==="function")return _jg;}if(_jg==-1)return _f7;if(_jg==-2)return _Cq;if(_jg==-3)return _f7;var _1u=_Hn._E5(_jg);if(!_1u){_1u=_i3._E5(_jg);if(!_1u){_yi("Unknown instance ID: "+_jg);debug(_DE());return undefined;}_1u=_1u._KA2._E5(0);}return _1u;}function _aQ(_Ht){ if(_Ht._wc3===undefined||_Ht._wc3===false){_Ht._wc3=true;_Ht._N5(_pQ,0,_Ht,_Ht);_Ht._N5(_bQ,0,_Ht,_Ht);_Ht.marked=true;}}function _xc3(_CW,_q5,_r5,_Al,_yc3){var _0n=_t3._EW(_q5,_r5,_Al,_CW);if(_0n!=null){if(_yc3!=undefined){_0n._5a3(true);_0n._aa3(true);_0n._6a3(true);_0n._8a3(_yc3);}_0n._N5(_2n,0,_0n,_0n);_0n._N5(_3n,0,_0n,_0n);return _0n;}return null;}function _zc3(_CW,_q5,_r5,_YV,_yc3){var layer=_3u._MQ(_t3,_YV);if(layer!=null){var _1u=_t3._FW(_q5,_r5,layer,_CW);if(!_1u!=null){if(_yc3!=undefined){_1u._5a3(true); _1u._aa3(true);_1u._6a3(true);_1u._8a3(_yc3);}_1u._N5(_2n,0,_1u,_1u);_1u._N5(_3n,0,_1u,_1u);return _1u;}}return null;}function _vW(_f7){if(_f7 instanceof _iQ){return _f7.depth;}return _Ta;}var _3R=256;var _Ac3=5;var _Bc3=1024;var _Ro1=1;var _Xo1=2;var _Cc3=4;var _Cg=1;var _Ag=2;var _Bg=0x80000000;var _Dc3=128;var _Fg=0,_xg=0,_vg=0,_wg=0,_Hg=-1,_Ec3=0,_Gg=-1,_Fc3=0,_Gc3=0,_SQ=0,_Mp1=(typeof(document.hasFocus)=="function"?document.hasFocus():true),_XQ=0,_YQ=0,_Hc3=false,_Ic3=0,_Un1=false,_Vn1=0,_Wn1=0;var _QQ=[];var _RQ=[]; var _TQ=[];var _To1=[];var _Gp1=[];var _yg=[];var _Jc3=0;var _og=[];var _Kc3={8:String.fromCharCode(8),9:0,13:0,16:0,17:0,18:0,19:0,20:0,27:0,22:0,32:" ",34:0,35:0,36:0,37:0,38:0,39:0,40:0,45:0,46:0,47:0,48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",58:"0",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",91:0,92:0,93:0,96:"0",97:"1",98:"2", 99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:0,113:0,114:0,115:0,116:0,117:0,118:0,119:0,120:0,121:0,122:0,123:0,144:0,145:0,173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"'",219:"[",220:"\\",221:"]",222:"#",223:"`"};var _Lc3={8:String.fromCharCode(8),9:0,13:0,16:0,17:0,18:0,19:0,20:0,27:0,22:0,32:" ",34:0,35:0,36:0,37:0,38:0,39:0,40:0,45:0,46:0,47:0,48:")",49:"!",50:"\"",51:"£",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",58:")",59:":", 61:"+",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",91:0,92:0,93:0,96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:0,113:0,114:0,115:0,116:0,117:0,118:0,119:0,120:0,121:0,122:0,123:0,144:0,145:0,173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"@",219:"{",220:"|",221:"}",222:"~", 223:"¬"};function _Mc3(){_Mp1=true;}function _Nc3(){_Mp1=false;_Oc3();}function _Pc3(which){if(!document.getElementById)return;if(which.style.display=="block"){which.style.display="none";}else {which.style.display="block";}}function _Qc3(_Rc3,_Sc3){try{if(_Rc3){if(_Rc3.JSON_game){if(_Rc3.JSON_game.Options){if(_Rc3.JSON_game.Options.gameGuid){if(_Rc3.JSON_game.Options.gameGuid==JSON_game.Options.gameGuid){_Rc3.focus();_Sc3.focus();return true;}}}}}}catch(err){}return false;}function _Tc3(){var _rt=document.getElementById(_8F); var _Uc3;if((_UN==_mF2)||(_UN==_lF2)||(_UN==_nF2)||(_UN==_Wa1)){_Uc3=_rt.parentNode.frames;if(!_Uc3){_Qc3(this,_rt);}else {for(var _Vc3=0;_Vc3<_Uc3.length;_Vc3++){var _Wc3=_Uc3[_Vc3];if(_Qc3(_Wc3,_rt))break;}}}else {if(!_rt._Xc3||!_rt._Xc3.document||!_rt.parentNode.document.getElementsByTagName("IFRAME")){_Qc3(this,_rt);}else {_Uc3=_rt.parentNode.document.getElementsByTagName("IFRAME");for(var _Vc3 in _Uc3){var _Wc3=_Uc3[_Vc3].contentWindow;if(_Qc3(_Wc3,_rt))break;}}}}var _Yc3;var _Zc3;var __c3;var _0d3;var _1d3; var _2d3;var _3d3;var _4d3;var _5d3;var _6d3;var _7d3;function _8d3(){var _ah=document.getElementById("gm4html5_div_id");if(_ah){_Zc3=_ah.style.left;__c3=_ah.style.top;_0d3=_ah.style.margin;var top=window.parent;if(top!=null){if(top.chrome!=null&&top.chrome.app!=null&&top.chrome.app.window!=null){var _9d3=top.chrome.app.window.current();if(_9d3!=null){var _vV1=window.parent.document.getElementById("container");var _ad3=window.parent.document.getElementById("game");if(_vV1!=null){_1d3=_vV1.style.width;_2d3=_vV1.style.height; _5d3=_vV1.style.left;_3d3=_vV1.style.margin;_4d3=_vV1.style.position;}if(_ad3!=null){_6d3=_ad3.style.width;_7d3=_ad3.style.height;}_9d3.fullscreen();var _bd3=_9d3.getBounds();if(_vV1!=null){_vV1.style.width="100%";_vV1.style.height="100%";_vV1.style.left="0";_vV1.style.margin='auto';_vV1.style.position='relative';}if(_ad3!=null){_ad3.style.width="100%";_ad3.style.height="100%";canvas.style.width="100%";canvas.style.height="100%";}}}}_ah.style.margin="0px";_ah.style.top="0";_ah.style.left="0";_ah.style._cd3="0px"; _ah.style._dd3="0px";if(_ah.mozRequestFullScreen){document._ed3=function(event){document._ed3=_fd3;};_ah.mozRequestFullScreen();}else if(_ah.webkitRequestFullScreen){_ah.onwebkitfullscreenchange=function(e){_ah.onwebkitfullscreenchange=_fd3;};if(_UN==_nF2){_ah.webkitRequestFullScreen();}else {_ah.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);}}else if(document.documentElement.requestFullScreen){document.documentElement.requestFullScreen();}_FL2=true;return;}if(canvas.mozRequestFullScreen){canvas.style.margin="0px"; canvas.style.top="";canvas.style.left="";canvas.style._cd3="0px";canvas.style._dd3="0px";canvas.mozRequestFullScreen();}else if(canvas.webkitRequestFullScreen){canvas.style.margin="0px";canvas.style.top="";canvas.style.left="";canvas.style._cd3="0px";canvas.style._dd3="0px";canvas.onwebkitfullscreenchange=function(e){canvas.onwebkitfullscreenchange=_fd3;};if(_UN==_nF2){canvas.webkitRequestFullScreen();}else {canvas.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);}}else if(document.documentElement.requestFullScreen){ canvas.style.margin="0px";canvas.style.top="";canvas.style.left="";canvas.style._cd3="0px";canvas.style._dd3="0px";document.documentElement.requestFullScreen();}_FL2=true;}function _fd3(){if(_gn1){var _ah=document.getElementById("gm4html5_div_id");if(_ah){_ah.style.left=_Zc3;_ah.style.top=__c3;_ah.style.margin=_0d3;}var top=window.parent;if(top!=null){if(top.chrome!=null&&top.chrome.app!=null&&top.chrome.app.window!=null){var _9d3=top.chrome.app.window.current();if(_9d3!=null)_9d3.restore();}}_FL2=true; }}function _gd3(){var top=window.parent;if(top!=null){if(top.chrome!=null&&top.chrome.app!=null&&top.chrome.app.window!=null){var _9d3=top.chrome.app.window.current();if(_9d3!=null){_9d3.restore();_FL2=true;var _vV1=window.parent.document.getElementById("container");if(_vV1!=null){_vV1.style.width=_1d3;_vV1.style.height=_2d3;_vV1.style.left=_5d3;_vV1.style.margin=_3d3;_vV1.style.position=_4d3;}var _ad3=window.parent.document.getElementById("game");if(_ad3!=null){_ad3.style.width=_6d3;_ad3.style.height=_7d3; canvas.style.width=_6d3;canvas.style.height=_7d3;}}}}if(document.webkitCancelFullScreen){document.webkitCancelFullScreen();}else if(document.mozCancelFullScreen){document.mozCancelFullScreen();_fd3();}else {_FL2=true;}}function _mF(){if(_CL2)return;window.onkeyup=function(){_hd3(arguments[0]||window.event);};window.onkeydown=function(){var _Fi=arguments[0]||window.event;if((_yL2)&&(_Fi!=null)&&(_Fi.which==121)&&(!_Fi.repeat)&&(canvas.mozRequestFullScreen)){if(!document.mozFullScreen){_id3();_8d3();} else {_gd3();}_Fi.preventDefault();return false;}if(_jd3(_Fi)==false){_Fi.preventDefault();return false;}};window.onmouseup=_Wi1;_CL2=true;}function _cF(){if(_CL2==false)return;window.onkeydown=null;window.onkeyup=null;window.onmouseup=null;_CL2=false;}function _kd3(_ld3){if(_ld3==121){return true;}if(window.chrome&&window.chrome.app){if(_ld3==183)return true;}return false;}function _jd3(_Fi){var _ld3;if(_Fi==null){_ld3=window.event.which;if(_ld3==122)return true;if(_ld3!=121)window.event.preventDefault(); else _FL2=true;window.event.preventDefault();}else {_ld3=_Fi.which;if(_ld3==122)return true;if(_ld3==120){}else if(!_kd3(_ld3)){_Fi.preventDefault();}else {if(_yL2){if(!_gn1){_id3();_8d3();}else {_gd3();}}}_Fi.preventDefault();}if(!_QQ[_ld3]){_RQ[_ld3]=1;}_QQ[_ld3]=1;_SQ=_ld3;if(_UN==_VN){_Gc3=_Fi.char;}else if(_Fi.key){if(_Fi.key.length==1){_Gc3=_Fi.key;}else if(_ld3==8){_Gc3=String.fromCharCode(8);}else if(_ld3==13){_Gc3=String.fromCharCode(13);}else {_Gc3="";}}else {if(_Fi.shiftKey){_Gc3=_Lc3[_ld3];}else { _Gc3=_Kc3[_ld3];}}if(!_Gc3)_Gc3="";return false;}function _hd3(_Fi){var _ld3;if(_Fi==null){_ld3=window.event.which;if(_ld3==122)return;window.event.preventDefault();}else {_ld3=_Fi.which;if(_ld3==122)return;_Fi.preventDefault();}_TQ[_ld3]=1;_QQ[_ld3]=0;return false;}function _md3(_N3,_nd3){var target,_M7;var _od3=canvas.style.display;canvas.style.display="none";target=document.elementFromPoint(_nd3.clientX,_nd3.clientY);canvas.style.display=_od3;target="canvas";_M7=document.createEvent('MouseEvents');_M7.initMouseEvent(_N3, true,true,document.defaultView,1,_nd3.screenX,_nd3.screenY,_nd3.clientX,_nd3.clientY,false,false,false,false,_nd3.button,null);_M7.target=target;target.dispatchEvent(_M7);}function _vt(_nd3){_vg=_nd3.clientX;_wg=_nd3.clientY;_Vn1=_nd3.movementX||_nd3.mozMovementX||_nd3.webkitMovementX||_nd3.msMovementX||0;_Wn1=_nd3.movementY||_nd3.mozMovementY||_nd3.webkitMovementY||_nd3.msMovementY||0;_yg[_nd3.button].x=_vg;_yg[_nd3.button].y=_wg;}function _Vi1(_nd3){if(!_Mp1){_Tc3();}_Fg=_nd3.button;if(_Fg==2)_Fg=1; else if(_Fg==1)_Fg=2;_Gg=_Fg;_Hg=_Fg;_xg|=(1<<_Fg);_yg[_nd3.button]._zg=_Ag|_Bg|_Cg;_yg[_nd3.button].x=_nd3.pageX;_yg[_nd3.button].y=_nd3.pageY;return _nd3;}function _Wi1(_nd3){_Fg=_nd3.button;if(_Fg==2)_Fg=1;else if(_Fg==1)_Fg=2;_Fc3=_Ec3;_Ec3=_Fg;_xg&=~(1<<_Fg);_Hg=-1;_yg[_nd3.button]._zg=0;return false;}function _pd3(_nd3){if(_nd3.detail){_Ic3=-_nd3.detail;}else {_Ic3=_nd3.wheelDelta;}}function _qd3(){if(_Hn!=null){_Hn._N5(_lC2,0);}return undefined;}function _QM2(){this._rd3="a";this._sd3=[];this._td3=this._ud3=-1; this._ZQ=[];this._0R=[];this.__Q=[];this._vd3=this._wd3=0;this._Ge=[];this._Fe=[];this._Be=[];this._xd3=this._yd3=false;this._4R=[];this._zd3=this._WQ=this._Ad3=this._Bd3=this._1R=this._2R=this._p3=0;for(var _G6=0;_G6<_Bc3;_G6++){this._sd3[_G6]="";}for(var _G6=0;_G6<_3R;_G6++){this._ZQ[_G6]=this._0R[_G6]=this.__Q[_G6]=false;this._4R[_G6]=_G6;}for(var _G6=0;_G6<_Ac3;_G6++){this._Ge[_G6]=this._Fe[_G6]=this._Be[_G6]=false;}this._Xf=_Cd3;this._Dd3=_Ed3;this._Fd3=_Fd3;this._Gd3=_Gd3;this._Hd3=_Hd3;this._Id3=_Id3; this._Jd3=_Jd3;this._Kd3=_Kd3;this._Ld3=_Ld3;this._Md3=_Md3;this._Nd3=_Nd3;this._Od3=_Od3;this._Pd3=_Pd3;this._nq=_nq;this._Qd3=_Qd3;this._Rd3=_Rd3;this._lq=_lq;this._Sd3=_Sd3;this._mq=_mq;this._Td3=_Td3;this._Ud3=_Ud3;this._Vd3=_Wd3;this._Xd3=_Yd3;this._Zd3=__d3;this._0e3=_0e3;for(var _G6=0;_G6<_3R;_G6++){_QQ[_G6]=_TQ[_G6]=false;}if(!_L83){window.onbeforeunload=_qd3;}_Gp1=new Array(_Dc3);_yg=new Array(_Dc3);for(var _1e3=0;_1e3<_Dc3;_1e3++){_Gp1[_1e3]=new _2e3();_yg[_1e3]=new _2e3();}browser_input_capture(true); }function _3e3(){_Un1=(document.pointerLockElement===canvas||document.mozPointerLockElement===canvas||document.webkitPointerLockElement===canvas||document.msPointerLockElement===canvas);}function browser_input_capture(_Nz){_Nz=yyGetBool(_Nz);if(_Hc3==_Nz)return;_Oc3();_Hc3=_Nz;if(_Nz){canvas.onmousemove=_vt;canvas.onmousedown=_Vi1;window.onmouseup=_Wi1;canvas.onmousewheel=_pd3;canvas.onselectstart=function(){return false;};canvas.addEventListener("DOMMouseScroll",_pd3,false);var _G6=document.getElementById("loading_screen"); if(_G6){_G6.onmousemove=_vt;_G6.onmousedown=_Vi1;_G6.onmouseup=_Wi1;_G6.onmousewheel=_pd3;_G6.addEventListener("DOMMouseScroll",_pd3,false);}window.addEventListener("focus",_Mc3);window.addEventListener("blur",_Nc3);document.onpointerlockchange=_3e3;document.onmozpointerlockchange=_3e3;document.onwebkitpointerlockchange=_3e3;document.onmspointerlockchange=_3e3;_mF();}else {canvas.onmousemove=null;canvas.onmousedown=null;window.onmouseup=null;canvas.onmousewheel=null;canvas.onselectstart=null;canvas.removeEventListener("DOMMouseScroll", _pd3);var _G6=document.getElementById("loading_screen");if(_G6){_G6.onmousemove=null;_G6.onmousedown=null;_G6.onmouseup=null;_G6.onmousewheel=null;_G6.removeEventListener("DOMMouseScroll",_pd3);}document.body.onfocusin=null;document.body.onfocusout=null;document.onfocusin=null;document.onfocusout=null;window.onfocus=null;window.onblur=null;document.onpointerlockchange=null;document.onmozpointerlockchange=null;document.onwebkitpointerlockchange=null;document.onmspointerlockchange=null;_cF();}}function _2e3(){ this._zg=0;this.x=0;this.y=0;}function _Oc3(){_4e3();_5e3();g_pBuiltIn.keyboard_key=0;g_pBuiltIn.keyboard_key="";_SQ=0;_Gc3="";}_QM2.prototype._Wf=function(){this._6e3();this._Ud3();g_pBuiltIn.keyboard_key=0;g_pBuiltIn.keyboard_lastkey=0;g_pBuiltIn.keyboard_key="";_SQ=0;_Gc3="";g_pBuiltIn.keyboard_lastchar="";g_pBuiltIn.keyboard_string="";};/*@this {yyIOManager} */function _Fd3(){return this._rd3;}/*@this {yyIOManager} */function _Gd3(_7e3){this._rd3=_7e3;}/*@this {yyIOManager} */function _Hd3(){return this._ud3; }/*@this {yyIOManager} */function _Id3(){return this._td3;}/*@this {yyIOManager} */function _Jd3(_el){if(_el<0||_el>255)return false;this._ud3=_el;}/*@this {yyIOManager} */function _Kd3(_el){if(_el<0||_el>255)return false;this._td3=_el;}/*@this {yyIOManager} */function _Ld3(_el){if(_el<0||_el>255)return false;return this._ZQ[_el];}/*@this {yyIOManager} */function _Md3(_el){if(_el<0||_el>255)return false;return this.__Q[_el];}/*@this {yyIOManager} */function _Nd3(_el){if(_el<0||_el>255)return false;return this._0R[_el]; }/*@this {yyIOManager} */function _Od3(_el){if(_el<0||_el>255)return;this._ZQ[_el]=0;this.__Q[_el]=0;this._0R[_el]=0;}_QM2.prototype._6e3=function(){this._ud3=0;this._td3=0;this._rd3=0;for(var i=0;i<=_3R;i++){this._ZQ[i]=0;this.__Q[i]=0;this._0R[i]=0;}};function _4e3(){for(var i=0;i<_3R;i++){_RQ[i]=0;_TQ[i]=0;_QQ[i]=0;}}/*@this {yyIOManager} */function _Pd3(){return this._vd3;}/*@this {yyIOManager} */function _nq(){return this._wd3;}/*@this {yyIOManager} */function _Qd3(_Et){if((_Et<1)||(_Et>3))return;this._vd3=_Et; }/*@this {yyIOManager} */function _Rd3(_Et){if((_Et<1)||(_Et>3))return;this._wd3=_Et;}/*@this {yyIOManager} */function _lq(_Et){_Et--;if(_Et>=0&&_Et<_Ac3){return this._Ge[_Et];}return false;}/*@this {yyIOManager} */function _Sd3(_Et){_Et--;if(_Et>=0&&_Et<_Ac3){return this._Be[_Et];}}/*@this {yyIOManager} */function _mq(_Et){_Et--;if(_Et>=0&&_Et<_Ac3){return this._Fe[_Et];}return false;}/*@this {yyIOManager} */function _Td3(_Et){_Et--;if(_Et>=0&&_Et<_Ac3){this._Ge[_Et]=false;this._Be[_Et]=false;this._Fe[_Et]=false; }}/*@this {yyIOManager} */function _Ud3(){this._vd3=0;this._wd3=0;for(var i=0;i<=_Ac3;i++){this._Ge[i]=false;this._Be[i]=false;this._Fe[i]=false;}this._yd3=false;this._xd3=false;for(var _qg=0;_qg<_og.length;_qg++){_og[_qg]._Wf();}}function _5e3(){_Fc3=-1;_Ec3=-1;_Hg=-1;_xg=0;_yg[0]._zg=0;_yg[0].x=0;_yg[0].y=0;_Fg=-1;}/*@this {yyIOManager} */function _Cd3(){for(var _qg=0;_qg<_og.length;_qg++){var _rg=_og[_qg];if(_rg._Ge){_rg._Fe=0;_rg._Be=_rg._3g^_rg._Ge;}else {_rg._Fe=_rg._3g^_rg._Ge;_rg._Be=0;}_rg._3g=_rg._Ge; }for(var _1e3=0;_1e3<_yg.length;_1e3++){_Gp1[_1e3]._zg=_yg[_1e3]._zg;_Gp1[_1e3].x=_yg[_1e3].x;_Gp1[_1e3].y=_yg[_1e3].y;_yg[_1e3]._zg&=~_Cg;}if(_SQ){if(_Gc3){if(_SQ==13){}else if(_SQ==8){g_pBuiltIn.keyboard_lastchar=_Gc3;if(g_pBuiltIn.keyboard_string.length>0){g_pBuiltIn.keyboard_string=g_pBuiltIn.keyboard_string.substring(0,g_pBuiltIn.keyboard_string.length-1);}}else {g_pBuiltIn.keyboard_lastchar=_Gc3;g_pBuiltIn.keyboard_string+=g_pBuiltIn.keyboard_lastchar;if(g_pBuiltIn.keyboard_string.length>1024){ g_pBuiltIn.keyboard_string=g_pBuiltIn.keyboard_string.substring(1,g_pBuiltIn.keyboard_string.length-1);}}}if(g_pBuiltIn.keyboard_key!=0){g_pBuiltIn.keyboard_lastkey=g_pBuiltIn.keyboard_key;}g_pBuiltIn.keyboard_key=_SQ;_SQ=0;}else if(!_ug._ZQ[g_pBuiltIn.keyboard_key]){g_pBuiltIn.keyboard_lastkey=g_pBuiltIn.keyboard_key;g_pBuiltIn.keyboard_key=0;}this._1R=_vg;this._2R=_wg;this._WQ=_xg;if((this._WQ&1)!=0){this._Ge[0]=1;if(((this._Ad3^this._WQ)&0x1)!=0){this._Be[0]=1;}}else {this._Ge[0]=0;if(((this._Ad3^this._WQ)&0x1)!=0){ this._Fe[0]=1;}}if((this._WQ&2)!=0){this._Ge[1]=1;if(((this._Ad3^this._WQ)&0x2)!=0){this._Be[1]=1;}}else {this._Ge[1]=0;if(((this._Ad3^this._WQ)&0x2)!=0){this._Fe[1]=1;}}if((this._WQ&4)!=0){this._Ge[2]=1;if(((this._Ad3^this._WQ)&0x4)!=0){this._Be[2]=1;}}else {this._Ge[2]=0;if(((this._Ad3^this._WQ)&0x4)!=0){this._Fe[2]=1;}}if((this._WQ&8)!=0){this._Ge[3]=1;if(((this._Ad3^this._WQ)&0x8)!=0){this._Be[3]=1;}}else {this._Ge[3]=0;if(((this._Ad3^this._WQ)&0x8)!=0){this._Fe[3]=1;}}if((this._WQ&16)!=0){this._Ge[4]=1; if(((this._Ad3^this._WQ)&0x10)!=0){this._Be[4]=1;}}else {this._Ge[4]=0;if(((this._Ad3^this._WQ)&0x10)!=0){this._Fe[4]=1;}}this._Ad3=this._WQ;g_pBuiltIn.mouse_x=this._1R;g_pBuiltIn.mouse_y=this._2R;g_pBuiltIn.mouse_button=_Hg+1;g_pBuiltIn.mouse_lastbutton=_Gg+1;this._0e3();}/*@this {yyIOManager} */function _0e3(){var _8e3=0;var _ud=0;var w=_EK;var h=_BK;var _37=window_get_width();var _0h1=window_get_height();if(w<0)w=_37;if(h<0)h=_0h1;for(var _1e3=0;_1e3<_Gp1.length;_1e3++){var _9e3=_Gp1[_1e3];if((_9e3._zg&_Bg)!=0){ _ud=1;for(var _ae3=0;_ae3<_To1.length;_ae3++){var _Oo1=_To1[_ae3];if((_Oo1._Qo1&_Ro1)!=0){var x=(w*(_9e3.x-_bg.left))/_37;var y=(h*(_9e3.y-_bg.top))/_0h1;if((x>=_Oo1.x)&&(x<_Oo1._y6)&&(y>=_Oo1.y)&&(y<_Oo1._z6)){_8e3|=_ud;}}_ud<<=1;}_9e3._zg=0;}}_ud=1;var _be3=_Jc3^_8e3;for(var _ae3=0;_ae3<_To1.length;_ae3++){var _Oo1=_To1[_ae3];if((_Oo1._Qo1&_Ro1)!=0){var _I53=_8e3&_ud;var _qE=_be3&_ud;if(_Oo1.key!=0){this.__Q[_Oo1.key]|=(_I53&&_qE);this._ZQ[_Oo1.key]|=(_I53&&!_qE);this._0R[_Oo1.key]|=(!_I53&&_qE);}else { this._Be[_Oo1.button-1]|=(_I53&&_qE);this._Ge[_Oo1.button-1]|=(_I53&&!_qE);this._Fe[_Oo1.button-1]|=(!_I53&&_qE);}}_ud<<=1;}_Jc3=_8e3;}function _Vd3(_ce3){var _Fi=_YD2|_ce3;var _Vk=_t3._NO._Vk;var _j01=_Vk.length;for(var _NF=0;_NF<_j01;_NF++){var _1u=_Vk[_NF];var _BG=_1u._VF;if(_BG._3A2[_Fi]){_1u._N5(_YD2,_ce3,_1u,_1u);}}}function _de3(_ee3){var _Fi=__D2|_ee3;var _Vk=_t3._NO._Vk;var _j01=_Vk.length;for(var _NF=0;_NF<_j01;_NF++){var _1u=_Vk[_NF];if(_1u.marked){continue;}var _BG=_1u._VF;if(_BG._3A2[_Fi]){_1u._N5(__D2, _ee3,_1u,_1u);}}}function _Zd3(_fe3){var _Fi=_1E2|_fe3;var _Vk=_t3._NO._Vk;var _j01=_Vk.length;for(var _NF=0;_NF<_j01;_NF++){var _1u=_Vk[_NF];var _BG=_1u._VF;if(_BG._3A2[_Fi]){_1u._N5(_1E2,_fe3,_1u,_1u);}}}/*@this {yyIOManager} */function _Wd3(){var _ge3=0;for(var i=2;i<_3R;i++){if(this._ZQ[i]){_ge3=1;_Vd3(i);}}_Vd3(_ge3);}/*@this {yyIOManager} */function _Yd3(){var _he3=0;for(var i=2;i<_3R;i++){if(this.__Q[i]){_he3=1;_de3(i);}}_de3(_he3);}/*@this {yyIOManager} */function __d3(){var _ie3=0;for(var i=2;i<_3R;i++){ if(this._0R[i]){_ie3=1;_Zd3(i);}}_Zd3(_ie3);}/*@this {yyIOManager} */function _Ed3(){var _je3=0,_ke3=0,_le3=0;this._p3++;for(var i=0;i<_3R;i++){this.__Q[i]=this._0R[i]=this._ZQ[i]=0;}for(var i=0;i<_3R;i++){var key=this._4R[i];this.__Q[key]|=_RQ[i];this._0R[key]|=_TQ[i];this._ZQ[key]|=_QQ[i];_je3|=_RQ[i];_ke3|=_QQ[i];_le3|=_TQ[i];_RQ[i]=0;_TQ[i]=0;}this.__Q[1]=_je3;this._ZQ[1]=_ke3;this._0R[1]=_le3;this.__Q[0]=_je3^1;this._ZQ[0]=_ke3^1;this._0R[0]=_le3^1;_XQ=_YQ=0;if(_Ic3>0){_XQ=1;}else if(_Ic3<0){_YQ=1; }_Ic3=0;for(var i=0;i<=_Ac3;i++){this._Be[i]=false;this._Fe[i]=false;}this._yd3=false;this._xd3=false;this._Xf();var _5g;if(!_t3._6g){_5g=_7g;}else {_5g=_t3._8g;}var _9g;for(var _Y4=0;_Y4<=7;++_Y4){_9g=_5g[_Y4];if(_9g&&_9g.visible){g_pBuiltIn.mouse_x=_9g._gg(_ug._1R,_ug._2R);g_pBuiltIn.mouse_y=_9g._hg(_ug._1R,_ug._2R);break;}}for(var _Y4=7;_Y4>=0;_Y4--){_9g=_5g[_Y4];if(_9g&&_9g.visible){_ag(canvas,_bg);if(((this._1R-_bg.left)>=_9g._cg)&&((this._1R-_bg.left)<_9g._dg)&&((this._2R-_bg.top)>=_9g._eg)&&((this._2R-_bg.top)<_9g._fg)){ g_pBuiltIn.mouse_x=_9g._gg(_ug._1R,_ug._2R);g_pBuiltIn.mouse_y=_9g._hg(_ug._1R,_ug._2R);break;}}}}function _me3(){_ug._Vd3();_ug._Xd3();_ug._Zd3();}function _ne3(index){this._Qo1=0;this.index=index;this.x=0;this.y=0;this._y6=0;this._z6=0;this.w=0;this.h=0;this._X4=0;this._Y4=0;this.key=0;this.button=0;}function _Po1(){for(var _G6=0;_G6<_To1.length;++_G6){if(_To1[_G6]._Qo1==0){return _To1[_G6];}}var i=_To1.length;_To1[i]=new _ne3(i);return _To1[i];}function _Uo1(_oe3){_To1[_oe3]._Qo1=0;}function _pe3(){for(var _G6=0; _G6<_To1.length;++_G6){_To1[_G6]._Qo1=0;}}_QM2.prototype._qe3=function(){_qF();_TK();var _UK=[];_UK[0]=1;_UK[1]=0;_UK[2]=0;_UK[3]=1;_UK[4]=0;_UK[5]=0;_h43(_UK);var _0H=draw_get_alpha();var _re3=draw_get_color();draw_set_color(0xffffff);for(var _G6=0;_G6<_Wo1.length;++_G6){var _FO=_Wo1[_G6];draw_rectangle(_FO.x,_FO.y,_FO.x+_FO.w-1,_FO.y+_FO.h-1,true);}draw_set_color(_re3);draw_set_alpha(_0H);__K();};function _Ck(){this._se3=[];this._Vk=[];this._Dk=false;this.length=0;this._q8=0;}_Ck.prototype._jM2=function(){ if(this._se3.length==0){return this._Vk.length;}return this._se3.pop();};_Ck.prototype._Gf=function(_8V2){var index;if(this._Dk){index=this._Vk.length;}else {index=this._jM2();}this._Vk[index]=_8V2;this._q8++;this.length=this._Vk.length;return index;};_Ck.prototype._E5=function(_CW){if(_CW<0||_CW>=this._Vk.length)return null;return this._Vk[_CW];};_Ck.prototype._vU=function(_aV2){for(var _G6=0;_G6=this._Vk.length)return false;if(this._Dk){this._Vk.splice(_CW,1);}else {this._Vk[_CW]=null;this._se3.push(_CW);}this._q8--;this.length=this._Vk.length;return true;};_Ck.prototype._Wf=function(){var _Vk=this._Vk;for(var i=0;i<_Vk.length;i++){var _Y4=_Vk[i];if(_Y4!=null&&_Y4.Object!==undefined)switch(_Y4._Yk){ case _Mk:ds_map_destroy(_Y4.Object);break;case _Ok:ds_list_destroy(_Y4.Object);break;}}this._Vk=[];this._se3=[];this._q8=0;this.length=this._Vk.length;};_Ck.prototype._Rk=function(_J3,_B3){if(_J3<0||_J3>this._Vk.length)return;for(var i=0;i=_J3){this._se3[i]++;}}this._Vk.splice(_J3,0,_B3);this._q8++;this.length=this._Vk.length;};_Ck.prototype.Set=function(_J3,_B3){if(_J3<0||_J3>=this._Vk.length)return;this._Vk[_J3]=_B3;};_Ck.prototype._Uk=function(_J3,_B3){if(_J3<0||_J3>=this._Vk.length){ _H4("ds_list_replace :: Trying to access an out-of-bounds index [| "+_J3+"]");return;}this._Vk[_J3]=_B3;};_Ck.prototype._Pk=function(_J3,_B3){if(_J3<0){_H4("index is negative "+_J3);return _B3;}if(_J3>=this._Vk.length){var _G6=this._Vk.length;while(_J3>=_G6){this._Gf(0);++_G6;}}var _q4=this._Vk[_J3];this._Vk[_J3]=_B3;return _q4;};_Ck.prototype._te3=function(_ue3){if(_ue3){this._Vk.sort(function(_h4,_g4){return _h4-_g4;});}else {this._Vk.sort(function(_h4,_g4){return _g4-_h4;});}this._se3=[];for(var i=0; i_pf3[1])continue;if(YOffset>_qf3[1])continue;if(_mf3[index]==_ze3){if(XOffset>_pf3[0]){var _rf3=(XOffset-_pf3[0])/(_pf3[1]-_pf3[0]);_nf3[0]=_nf3[0]+((_nf3[1]-_nf3[0])*_rf3);if(_nf3[0]>=_nf3[1])continue;_pf3[0]=XOffset;}if(YOffset>_qf3[0]){var _9u=YOffset-_qf3[0];var _rf3=(YOffset-_qf3[0])/(_qf3[1]-_qf3[0]); _of3[0]=_of3[0]+((_of3[1]-_of3[0])*_rf3);if(_of3[0]>=_of3[1])continue;_qf3[0]=YOffset;}_pf3[0]-=XOffset;_pf3[1]-=XOffset;_qf3[0]-=YOffset;_qf3[1]-=YOffset;if(_pf3[0]>CropWidth)continue;if(_qf3[0]>CropHeight)continue;if(_pf3[1]>CropWidth){var _rf3=(CropWidth-_pf3[0])/(_pf3[1]-_pf3[0]);_nf3[1]=_nf3[0]+((_nf3[1]-_nf3[0])*_rf3);if(_nf3[0]>=_nf3[1])continue;_pf3[1]=CropWidth;}if(_qf3[1]>CropHeight){var _rf3=(CropHeight-_qf3[0])/(_qf3[1]-_qf3[0]);_of3[1]=_of3[0]+((_of3[1]-_of3[0])*_rf3);if(_of3[0]>=_of3[1])continue; _qf3[1]=CropHeight;}for(i=0;i<2;i++){_pf3[i]+=_5f3*_7f3;_qf3[i]+=_6f3*_8f3;_pf3[i]/=_G8.width*_7f3;_qf3[i]/=_G8.height*_8f3;}var _sf3=[];var _tf3=[];_sf3[0]=_sf3[2]=(_nf3[0]*_if3);_sf3[1]=_sf3[3]=(_nf3[1]*_if3);_tf3[0]=_tf3[1]=(_of3[0]*_jf3);_tf3[2]=_tf3[3]=(_of3[1]*_jf3);var _uf3=[0,1,2,2,1,3];var _vf3=[0,0,1,0,0,1,0,1,1,0,1,1];if(_hf3){for(i=5;i>=0;i--){this._p8._Re3(_sf3[_uf3[i]],_tf3[_uf3[i]],_pf3[_vf3[i*2]],_qf3[_vf3[i*2+1]]);}}else {for(i=0;i<6;i++){this._p8._Re3(_sf3[_uf3[i]],_tf3[_uf3[i]],_pf3[_vf3[i*2]], _qf3[_vf3[i*2+1]]);}}}else {var _wf3=1;var _xf3=1;if((_mf3[index]==_Ae3)||(_mf3[index]==_Be3))_wf3=Math.ceil((_nf3[1]-_nf3[0])/(_pf3[1]-_pf3[0]));if((_mf3[index]==_Ae3)||(_mf3[index]==_Be3))_xf3=Math.ceil((_of3[1]-_of3[0])/(_qf3[1]-_qf3[0]));var _yf3,_zf3;if(_mf3[index]==_ze3)_yf3=_nf3[1]-_nf3[0];else _yf3=_pf3[1]-_pf3[0];if(_mf3[index]==_ze3)_zf3=_of3[1]-_of3[0];else _zf3=_qf3[1]-_qf3[0];var _Af3=[];var _Bf3=[];var _Cf3=[];var _Df3=[];_Af3[0]=0.0;_Af3[1]=_yf3;_Bf3[0]=0.0;_Bf3[1]=_zf3;_Cf3[0]=_pf3[0];_Cf3[1]=_pf3[1]; _Df3[0]=_qf3[0];_Df3[1]=_qf3[1];if(XOffset>_Cf3[0]){var _rf3=(XOffset-_Cf3[0])/(_Cf3[1]-_Cf3[0]);_Af3[0]=_Af3[0]+((_Af3[1]-_Af3[0])*_rf3);if(_Af3[0]>=_Af3[1])continue;_Cf3[0]=XOffset;}if(YOffset>_Df3[0]){var _rf3=(YOffset-_Df3[0])/(_Df3[1]-_Df3[0]);_Bf3[0]=_Bf3[0]+((_Bf3[1]-_Bf3[0])*_rf3);if(_Bf3[0]>=_Bf3[1])continue;_Df3[0]=YOffset;}_Cf3[0]-=XOffset;_Cf3[1]-=XOffset;_Df3[0]-=YOffset;_Df3[1]-=YOffset;if(_Cf3[0]>CropWidth)continue;if(_Df3[0]>CropHeight)continue;if(_Cf3[1]>CropWidth){var _rf3=(CropWidth-_Cf3[0])/(_Cf3[1]-_Cf3[0]); _Af3[1]=_Af3[0]+((_Af3[1]-_Af3[0])*_rf3);if(_Af3[0]>=_Af3[1])continue;_Cf3[1]=CropWidth;}if(_Df3[1]>CropHeight){var _rf3=(CropHeight-_Df3[0])/(_Df3[1]-_Df3[0]);_Bf3[1]=_Bf3[0]+((_Bf3[1]-_Bf3[0])*_rf3);if(_Bf3[0]>=_Bf3[1])continue;_Df3[1]=CropHeight;}var _Ef3;for(_Ef3=0;_Ef3<_xf3;_Ef3++){var _AH=_of3[0]+(_zf3*_Ef3);var _pm2=[];var _Ff3=[];if((_mf3[index]==_Be3)&&(_Ef3&1)){_pm2[0]=_zf3-_Bf3[1];_pm2[1]=_zf3-_Bf3[0];_Ff3[0]=_Df3[1];_Ff3[1]=_Df3[0];}else {_pm2[0]=_Bf3[0];_pm2[1]=_Bf3[1];_Ff3[0]=_Df3[0];_Ff3[1]=_Df3[1]; }_pm2[0]+=_AH;_pm2[1]+=_AH;if(_pm2[1]>_of3[1]){var _rf3=(_of3[1]-_pm2[0])/(_pm2[1]-_pm2[0]);_Ff3[1]=_Ff3[0]+((_Ff3[1]-_Ff3[0])*_rf3);_pm2[1]=_of3[1];}for(i=0;i<2;i++){_Ff3[i]+=_6f3*_8f3;_Ff3[i]/=_G8.height*_8f3;}var _Gf3;for(_Gf3=0;_Gf3<_wf3;_Gf3++){var _3j=_nf3[0]+(_yf3*_Gf3);var _om2=[];var _Hf3=[];if((_mf3[index]==_Be3)&&(_Gf3&1)){_om2[0]=_yf3-_Af3[1];_om2[1]=_yf3-_Af3[0];_Hf3[0]=_Cf3[1];_Hf3[1]=_Cf3[0];}else {_om2[0]=_Af3[0];_om2[1]=_Af3[1];_Hf3[0]=_Cf3[0];_Hf3[1]=_Cf3[1];}_om2[0]+=_3j;_om2[1]+=_3j; if(_om2[1]>_nf3[1]){var _rf3=(_nf3[1]-_om2[0])/(_om2[1]-_om2[0]);_Hf3[1]=_Hf3[0]+((_Hf3[1]-_Hf3[0])*_rf3);_om2[1]=_nf3[1];}for(i=0;i<2;i++){_Hf3[i]+=_5f3*_7f3;_Hf3[i]/=_G8.width*_7f3;}var _sf3=[];var _tf3=[];_sf3[0]=_sf3[2]=(_om2[0]*_if3);_sf3[1]=_sf3[3]=(_om2[1]*_if3);_tf3[0]=_tf3[1]=(_pm2[0]*_jf3);_tf3[2]=_tf3[3]=(_pm2[1]*_jf3);var _uf3=[0,1,2,2,1,3];var _vf3=[0,0,1,0,0,1,0,1,1,0,1,1];if(_hf3){for(i=5;i>=0;i--){this._p8._Re3(_sf3[_uf3[i]],_tf3[_uf3[i]],_Hf3[_vf3[i*2]],_Ff3[_vf3[i*2+1]]);}}else {for(i=0; i<6;i++){this._p8._Re3(_sf3[_uf3[i]],_tf3[_uf3[i]],_Hf3[_vf3[i*2]],_Ff3[_vf3[i*2+1]]);}}}}}}}};_ch1.prototype._If3=function(_q5,_r5,_y4,_Pc,_u9,_q3,_Jf3){if(!_e8)return;var _Ic=_q3._C4[this._p8._Ne3];var _G8=_Ic.texture;if(!_G8.complete)return;if(_e8)if(!_G8._N8)_M8(_Ic);var i;_Pc&=0xffffff;var _h4=(_u9*255.0)<<24;var _3d=_h4|_Pc;var _Kf3=_Kc/3;var _Lf3=(this._p8._B9.length/2)/3;var _Mf3=this._p8._B9;var _Nf3=this._p8.uvs;var _Of3=0;if(_y4==0.0){var _Pf3=_q5;var _Qf3=_r5;if(!_Jf3){_Pf3-=this._p8._Oe3;_Qf3-=this._p8._Pe3; }while(_Lf3>0){var _Rf3=(_Lf3<_Kf3)?_Lf3:_Kf3;_Lf3-=_Rf3;var _Sf3=_e8._Da(_9a._Ea,_G8._N8,_e8._Fa,_Rf3*3);var _Ga=_Sf3._Ha()>>2;var bindex=_Ga*_Sf3._Ia;_Sf3._Ia+=_Rf3*3;var _Ja=_Sf3._Ka;var _La=_Sf3._Ma;var _Na=_Sf3._Oa;for(;_Rf3>0;_Rf3--){_Ja[bindex+0]=_Mf3[_Of3]+_Pf3;_Ja[bindex+1]=_Mf3[_Of3+1]+_Qf3;_Ja[bindex+2]=_Ta;_La[bindex]=_3d;_Na[bindex+0]=_Nf3[_Of3];_Na[bindex+1]=_Nf3[_Of3+1];bindex+=_Ga;_Of3+=2;_Ja[bindex+0]=_Mf3[_Of3]+_Pf3;_Ja[bindex+1]=_Mf3[_Of3+1]+_Qf3;_Ja[bindex+2]=_Ta;_La[bindex]=_3d;_Na[bindex+0]=_Nf3[_Of3]; _Na[bindex+1]=_Nf3[_Of3+1];bindex+=_Ga;_Of3+=2;_Ja[bindex+0]=_Mf3[_Of3]+_Pf3;_Ja[bindex+1]=_Mf3[_Of3+1]+_Qf3;_Ja[bindex+2]=_Ta;_La[bindex]=_3d;_Na[bindex+0]=_Nf3[_Of3];_Na[bindex+1]=_Nf3[_Of3+1];bindex+=_Ga;_Of3+=2;}}}else {var _Tf3=new _zz();var _Uf3=new _zz();var _Vf3=new _zz();_Tf3._uB();_Uf3._uB();if(_Jf3){_Tf3.__A(_y4);}else {_Tf3._WA(-this._p8._Oe3,-this._p8._Pe3,0.0);_Uf3.__A(_y4);_Vf3.Multiply(_Tf3,_Uf3);_Tf3=new _zz(_Vf3);}_Uf3._uB();_Uf3._WA(_q5,_r5,0.0);_Vf3.Multiply(_Tf3,_Uf3);_Tf3=_Vf3;while(_Lf3>0){ var _Rf3=(_Lf3<_Kf3)?_Lf3:_Kf3;_Lf3-=_Rf3;var _Sf3=_e8._Da(_9a._Ea,_G8._N8,_e8._Fa,_Rf3*3);var _Ga=_Sf3._Ha()>>2;var bindex=_Ga*_Sf3._Ia;_Sf3._Ia+=_Rf3*3;var _Ja=_Sf3._Ka;var _La=_Sf3._Ma;var _Na=_Sf3._Oa;for(;_Rf3>0;_Rf3--){for(i=0;i<3;i++){var _Wf3=_Mf3[_Of3];var _Xf3=_Mf3[_Of3+1];_Ja[bindex+0]=(_Tf3._v6[_5B]*_Wf3)+(_Tf3._v6[_6B]*_Xf3)+_Tf3._v6[_8B];_Ja[bindex+1]=(_Tf3._v6[_9B]*_Wf3)+(_Tf3._v6[_0A]*_Xf3)+_Tf3._v6[_bB];_Ja[bindex+2]=_Ta;_La[bindex]=_3d;_Na[bindex+0]=_Nf3[_Of3];_Na[bindex+1]=_Nf3[_Of3+1]; bindex+=_Ga;_Of3+=2;}}}}};_ch1.prototype._Yf3=function(_q5,_r5,_m8,_n8,_y4,_Pc,_u9,_t4,_q3,_Jf3){if(_e8){var _Zf3=false;for(var i=0;i<_Ke3;i++){if(this._p8._Me3[i]!=this._Me3[i]){_Zf3=true;break;}}if((this._p8._eh1)||(this._p8.width!=_m8)||(this._p8.height!=_n8)||(_Zf3==true)||(this._p8._dP!=_q3)||(this._p8._Ne3!=_t4)){this._4f3(_m8,_n8,_t4,_q3);}this._If3(_q5,_r5,_y4,_Pc,_u9,_q3,_Jf3);return;}var i;var _tw2=[];var _Rw2=[];var XOffset=0.0;var YOffset=0.0;var CropWidth=_q3.width;var CropHeight=_q3.height; var _5f3=0;var _6f3=0;var _Ic=_q3._C4[_t4];var _G8=_Ic.texture;if(!_G8.complete)return;if(_e8)if(!_G8._N8)_M8({texture:_G8});XOffset=_Ic.XOffset;YOffset=_Ic.YOffset;CropWidth=_Ic.CropWidth;CropHeight=_Ic.CropHeight;_5f3=_Ic.x;_6f3=_Ic.y;var _9f3=this.left;var _af3=(_q3.width-this.right)-this.left;var _bf3=this.right;var _cf3=this.top;var _df3=(_q3.height-this.bottom)-this.top;var _ef3=this.bottom;var _ff3=(_m8<0)?1:0;var _gf3=(_n8<0)?1:0;var _hf3=(_ff3^_gf3)?true:false;var _if3=1.0;var _jf3=1.0;if(_ff3){_m8=-_m8; if(_e8){_if3=-1.0;}}if(_gf3){_n8=-_n8;if(_e8){_jf3=-1.0;}}var _kf3=(_m8-_9f3-_bf3)/_af3;var _lf3=(_n8-_cf3-_ef3)/_df3;if(_m8<_9f3){_9f3=_m8;_bf3=0.0;_kf3=0.0;}else if(_m8<(_9f3+_bf3)){_bf3=(_m8-_9f3);_kf3=0.0;}if(_n8<_cf3){_cf3=_n8;_ef3=0.0;_lf3=0.0;}else if(_n8<(_cf3+_ef3)){_ef3=(_n8-_cf3);_lf3=0.0;}var _pA=[];var _qA=[];_pA[0]=0.0;_pA[1]=_9f3;_pA[2]=_pA[1]+_af3;_pA[3]=_pA[2]+_bf3;_qA[0]=0.0;_qA[1]=_cf3;_qA[2]=_qA[1]+_df3;_qA[3]=_qA[2]+_ef3;for(i=0;i<4;i++){_tw2[i]=_pA[i];_Rw2[i]=_qA[i];}var xorigin=_q3.xOrigin; var yorigin=_q3.yOrigin;var _Oe3;var _Pe3;_Oe3=xorigin*(_m8/_q3.width);_Pe3=yorigin*(_n8/_q3.height);_Oe3*=_if3;_Pe3*=_jf3;var _9u=_pA[3]-_pA[2];_pA[2]=_pA[1]+((_pA[2]-_pA[1])*_kf3);_pA[3]=_pA[2]+_9u;_9u=_qA[3]-_qA[2];_qA[2]=_qA[1]+((_qA[2]-_qA[1])*_lf3);_qA[3]=_qA[2]+_9u;var _mf3=[];_mf3[0]=_ze3;_mf3[1]=this._Me3[_Ge3];_mf3[2]=_ze3;_mf3[3]=this._Me3[_Fe3];_mf3[4]=this._Me3[_Je3];_mf3[5]=this._Me3[_He3];_mf3[6]=_ze3;_mf3[7]=this._Me3[_Ie3];_mf3[8]=_ze3;var _Tf3=undefined;if((_y4!=0.0)||(!_e8&&(_ff3||_gf3))){ _Tf3=new _zz();var _Uf3=new _zz();var _Vf3=new _zz();_Tf3._uB();_Uf3._uB();_Tf3._WA(-_Oe3,-_Pe3,0.0);_Uf3.__A(_y4);_Vf3.Multiply(_Tf3,_Uf3);_Tf3=new _zz(_Vf3);_Uf3._uB();_Uf3._WA(_q5,_r5,0.0);_Vf3.Multiply(_Tf3,_Uf3);if(_e8||(!_ff3&&!_gf3))_Tf3=_Vf3;else {_Uf3._XA(_ff3?-1.0:1.0,_gf3?-1.0:1.0,1.0);_Tf3.Multiply(_Uf3,_Vf3);}}else {_Tf3=new _zz();_Tf3._WA(-_Oe3+_q5,-_Pe3+_r5,0.0);}_Pc&=0xffffff;var _h4=(_u9*255.0)<<24;var _3d=_h4|_Pc;var _443=undefined;if(!_e8){_q63(_Tf3);_1a.globalAlpha=_u9;if(_Pc!=_L9){_443=_M9(_Ic, _Pc);}}var x,y;var _nf3=[];var _of3=[];var _pf3=[];var _qf3=[];for(y=0;y<3;y++){for(x=0;x<3;x++){var index=(y*3)+x;if(_mf3[index]==_De3)continue;_nf3[0]=_pA[x];_nf3[1]=_pA[x+1];_of3[0]=_qA[y];_of3[1]=_qA[y+1];_pf3[0]=_tw2[x];_pf3[1]=_tw2[x+1];_qf3[0]=_Rw2[y];_qf3[1]=_Rw2[y+1];if(_pf3[1]<=_pf3[0])continue;if(_qf3[1]<=_qf3[0])continue;if(XOffset>_pf3[1])continue;if(YOffset>_qf3[1])continue;if(_mf3[index]==_ze3){if(XOffset>_pf3[0]){var _rf3=(XOffset-_pf3[0])/(_pf3[1]-_pf3[0]);_nf3[0]=_nf3[0]+((_nf3[1]-_nf3[0])*_rf3); if(_nf3[0]>=_nf3[1])continue;_pf3[0]=XOffset;}if(YOffset>_qf3[0]){var _9u=YOffset-_qf3[0];var _rf3=(YOffset-_qf3[0])/(_qf3[1]-_qf3[0]);_of3[0]=_of3[0]+((_of3[1]-_of3[0])*_rf3);if(_of3[0]>=_of3[1])continue;_qf3[0]=YOffset;}_pf3[0]-=XOffset;_pf3[1]-=XOffset;_qf3[0]-=YOffset;_qf3[1]-=YOffset;if(_pf3[0]>CropWidth)continue;if(_qf3[0]>CropHeight)continue;if(_pf3[1]>CropWidth){var _rf3=(CropWidth-_pf3[0])/(_pf3[1]-_pf3[0]);_nf3[1]=_nf3[0]+((_nf3[1]-_nf3[0])*_rf3);if(_nf3[0]>=_nf3[1])continue;_pf3[1]=CropWidth; }if(_qf3[1]>CropHeight){var _rf3=(CropHeight-_qf3[0])/(_qf3[1]-_qf3[0]);_of3[1]=_of3[0]+((_of3[1]-_of3[0])*_rf3);if(_of3[0]>=_of3[1])continue;_qf3[1]=CropHeight;}for(i=0;i<2;i++){_pf3[i]+=_5f3;_qf3[i]+=_6f3;}var _sf3=[];var _tf3=[];_sf3[0]=_sf3[2]=(_nf3[0]*_if3);_sf3[1]=_sf3[3]=(_nf3[1]*_if3);_tf3[0]=_tf3[1]=(_of3[0]*_jf3);_tf3[2]=_tf3[3]=(_of3[1]*_jf3);if(_e8){for(i=0;i<4;i++){_pf3[i]/=_G8.width;_qf3[i]/=_G8.height;}for(i=0;i<4;i++){var _Wf3,_Xf3;_Wf3=(_Tf3._v6[_5B]*_sf3[i])+(_Tf3._v6[_6B]*_tf3[i])+_Tf3._v6[_8B]; _Xf3=(_Tf3._v6[_9B]*_sf3[i])+(_Tf3._v6[_0A]*_tf3[i])+_Tf3._v6[_bB];_sf3[i]=_Wf3;_tf3[i]=_Xf3;}var _Sf3=_e8._Da(_9a._Ea,_G8._N8,_e8._Fa,6);var _Ga=_Sf3._Ha()>>2;var bindex=_Ga*_Sf3._Ia;_Sf3._Ia+=6;var _Ja=_Sf3._Ka;var _La=_Sf3._Ma;var _Na=_Sf3._Oa;var _uf3=[0,1,2,2,1,3];var _vf3=[0,0,1,0,0,1,0,1,1,0,1,1];if(_hf3){for(i=5;i>=0;i--){_Ja[bindex+0]=_sf3[_uf3[i]];_Ja[bindex+1]=_tf3[_uf3[i]];_Ja[bindex+2]=_Ta;_La[bindex]=_3d;_Na[bindex+0]=_pf3[_vf3[i*2]];_Na[bindex+1]=_qf3[_vf3[i*2+1]];bindex+=_Ga;}}else {for(i=0; i<6;i++){_Ja[bindex+0]=_sf3[_uf3[i]];_Ja[bindex+1]=_tf3[_uf3[i]];_Ja[bindex+2]=_Ta;_La[bindex]=_3d;_Na[bindex+0]=_pf3[_vf3[i*2]];_Na[bindex+1]=_qf3[_vf3[i*2+1]];bindex+=_Ga;}}}else {if(_443!=undefined){_1a._pg1(_443,_pf3[0]-_5f3,_qf3[0]-_6f3,_pf3[1]-_pf3[0],_qf3[1]-_qf3[0],_sf3[0],_tf3[0],_sf3[1]-_sf3[0],_tf3[2]-_tf3[0]);}else {_1a._pg1(_G8,_pf3[0],_qf3[0],_pf3[1]-_pf3[0],_qf3[1]-_qf3[0],_sf3[0],_tf3[0],_sf3[1]-_sf3[0],_tf3[2]-_tf3[0]);}}}else {var _wf3=1;var _xf3=1;if((_mf3[index]==_Ae3)||(_mf3[index]==_Be3))_wf3=Math.ceil((_nf3[1]-_nf3[0])/(_pf3[1]-_pf3[0])); if((_mf3[index]==_Ae3)||(_mf3[index]==_Be3))_xf3=Math.ceil((_of3[1]-_of3[0])/(_qf3[1]-_qf3[0]));var _yf3,_zf3;if(_mf3[index]==_ze3)_yf3=_nf3[1]-_nf3[0];else _yf3=_pf3[1]-_pf3[0];if(_mf3[index]==_ze3)_zf3=_of3[1]-_of3[0];else _zf3=_qf3[1]-_qf3[0];var _Af3=[];var _Bf3=[];var _Cf3=[];var _Df3=[];_Af3[0]=0.0;_Af3[1]=_yf3;_Bf3[0]=0.0;_Bf3[1]=_zf3;_Cf3[0]=_pf3[0];_Cf3[1]=_pf3[1];_Df3[0]=_qf3[0];_Df3[1]=_qf3[1];if(XOffset>_Cf3[0]){var _rf3=(XOffset-_Cf3[0])/(_Cf3[1]-_Cf3[0]);_Af3[0]=_Af3[0]+((_Af3[1]-_Af3[0])*_rf3); if(_Af3[0]>=_Af3[1])continue;_Cf3[0]=XOffset;}if(YOffset>_Df3[0]){var _rf3=(YOffset-_Df3[0])/(_Df3[1]-_Df3[0]);_Bf3[0]=_Bf3[0]+((_Bf3[1]-_Bf3[0])*_rf3);if(_Bf3[0]>=_Bf3[1])continue;_Df3[0]=YOffset;}_Cf3[0]-=XOffset;_Cf3[1]-=XOffset;_Df3[0]-=YOffset;_Df3[1]-=YOffset;if(_Cf3[0]>CropWidth)continue;if(_Df3[0]>CropHeight)continue;if(_Cf3[1]>CropWidth){var _rf3=(CropWidth-_Cf3[0])/(_Cf3[1]-_Cf3[0]);_Af3[1]=_Af3[0]+((_Af3[1]-_Af3[0])*_rf3);if(_Af3[0]>=_Af3[1])continue;_Cf3[1]=CropWidth;}if(_Df3[1]>CropHeight){ var _rf3=(CropHeight-_Df3[0])/(_Df3[1]-_Df3[0]);_Bf3[1]=_Bf3[0]+((_Bf3[1]-_Bf3[0])*_rf3);if(_Bf3[0]>=_Bf3[1])continue;_Df3[1]=CropHeight;}var _Ef3;for(_Ef3=0;_Ef3<_xf3;_Ef3++){var _AH=_of3[0]+(_zf3*_Ef3);var _pm2=[];var _Ff3=[];var __f3=false;if((_mf3[index]==_Be3)&&(_Ef3&1)){_pm2[0]=_zf3-_Bf3[1];_pm2[1]=_zf3-_Bf3[0];_Ff3[0]=_Df3[1];_Ff3[1]=_Df3[0];__f3=true;}else {_pm2[0]=_Bf3[0];_pm2[1]=_Bf3[1];_Ff3[0]=_Df3[0];_Ff3[1]=_Df3[1];}_pm2[0]+=_AH;_pm2[1]+=_AH;if(_pm2[1]>_of3[1]){var _rf3=(_of3[1]-_pm2[0])/(_pm2[1]-_pm2[0]); _Ff3[1]=_Ff3[0]+((_Ff3[1]-_Ff3[0])*_rf3);_pm2[1]=_of3[1];}for(i=0;i<2;i++){_Ff3[i]+=_6f3;if(_e8){_Ff3[i]/=_G8.height;}}var _Gf3;for(_Gf3=0;_Gf3<_wf3;_Gf3++){var _3j=_nf3[0]+(_yf3*_Gf3);var _om2=[];var _Hf3=[];var _0g3=false;if((_mf3[index]==_Be3)&&(_Gf3&1)){_om2[0]=_yf3-_Af3[1];_om2[1]=_yf3-_Af3[0];_Hf3[0]=_Cf3[1];_Hf3[1]=_Cf3[0];_0g3=true;}else {_om2[0]=_Af3[0];_om2[1]=_Af3[1];_Hf3[0]=_Cf3[0];_Hf3[1]=_Cf3[1];}_om2[0]+=_3j;_om2[1]+=_3j;if(_om2[1]>_nf3[1]){var _rf3=(_nf3[1]-_om2[0])/(_om2[1]-_om2[0]);_Hf3[1]=_Hf3[0]+((_Hf3[1]-_Hf3[0])*_rf3); _om2[1]=_nf3[1];}for(i=0;i<2;i++){_Hf3[i]+=_5f3;if(_e8){_Hf3[i]/=_G8.width;}}var _sf3=[];var _tf3=[];_sf3[0]=_sf3[2]=(_om2[0]*_if3);_sf3[1]=_sf3[3]=(_om2[1]*_if3);_tf3[0]=_tf3[1]=(_pm2[0]*_jf3);_tf3[2]=_tf3[3]=(_pm2[1]*_jf3);if(_e8){for(i=0;i<4;i++){var _Wf3,_Xf3;_Wf3=(_Tf3._v6[_5B]*_sf3[i])+(_Tf3._v6[_6B]*_tf3[i])+_Tf3._v6[_8B];_Xf3=(_Tf3._v6[_9B]*_sf3[i])+(_Tf3._v6[_0A]*_tf3[i])+_Tf3._v6[_bB];_sf3[i]=_Wf3;_tf3[i]=_Xf3;}var _Sf3=_e8._Da(_9a._Ea,_G8._N8,_e8._Fa,6);var _Ga=_Sf3._Ha()>>2;var bindex=_Ga*_Sf3._Ia; _Sf3._Ia+=6;var _Ja=_Sf3._Ka;var _La=_Sf3._Ma;var _Na=_Sf3._Oa;var _uf3=[0,1,2,2,1,3];var _vf3=[0,0,1,0,0,1,0,1,1,0,1,1];if(_hf3){for(i=5;i>=0;i--){_Ja[bindex+0]=_sf3[_uf3[i]];_Ja[bindex+1]=_tf3[_uf3[i]];_Ja[bindex+2]=_Ta;_La[bindex]=_3d;_Na[bindex+0]=_Hf3[_vf3[i*2]];_Na[bindex+1]=_Ff3[_vf3[i*2+1]];bindex+=_Ga;}}else {for(i=0;i<6;i++){_Ja[bindex+0]=_sf3[_uf3[i]];_Ja[bindex+1]=_tf3[_uf3[i]];_Ja[bindex+2]=_Ta;_La[bindex]=_3d;_Na[bindex+0]=_Hf3[_vf3[i*2]];_Na[bindex+1]=_Ff3[_vf3[i*2+1]];bindex+=_Ga;}}}else { if(_0g3||__f3){_1a._B63(_0g3?-1.0:1.0,0.0,0.0,__f3?-1.0:1.0,_0g3?_sf3[1]:_sf3[0],__f3?_tf3[2]:_tf3[0]);if(_443!=undefined){_1a._pg1(_443,_Hf3[0]-_5f3,_Ff3[0]-_6f3,_Hf3[1]-_Hf3[0],_Ff3[1]-_Ff3[0],0.0,0.0,_sf3[1]-_sf3[0],_tf3[2]-_tf3[0]);}else {_1a._pg1(_G8,_Hf3[0],_Ff3[0],_Hf3[1]-_Hf3[0],_Ff3[1]-_Ff3[0],0.0,0.0,_sf3[1]-_sf3[0],_tf3[2]-_tf3[0]);}_h43();_q63(_Tf3);}else {if(_443!=undefined){_1a._pg1(_443,_Hf3[0]-_5f3,_Ff3[0]-_6f3,_Hf3[1]-_Hf3[0],_Ff3[1]-_Ff3[0],_sf3[0],_tf3[0],_sf3[1]-_sf3[0],_tf3[2]-_tf3[0]); }else {_1a._pg1(_G8,_Hf3[0],_Ff3[0],_Hf3[1]-_Hf3[0],_Ff3[1]-_Ff3[0],_sf3[0],_tf3[0],_sf3[1]-_sf3[0],_tf3[2]-_tf3[0]);}}}}}}}}if(!_e8){_h43();}};_ch1.prototype._19=function(_q5,_r5,_m8,_n8,_y4,_Pc,_u9,_t4,_q3,_Jf3){if(_Jf3==undefined)_Jf3=false;var _XF=_q3;if(_XF!=null){if(_XF._E6<=0)return;_t4=(~~_t4)%_XF._E6;if(_t4<0)_t4=_t4+_XF._E6;_Pc=_Qc(_Pc);var i;var _1g3=0;var _2g3=false;for(i=0;i<_Ke3;i++){_1g3|=this._Me3[i];}if((_1g3!=_ze3)){this._Yf3(_q5,_r5,_m8,_n8,_y4,_Pc,_u9,_t4,_XF,_Jf3);return;}var _tw2=[]; var _Rw2=[];var XOffset=0.0;var YOffset=0.0;var CropWidth=_XF.width;var CropHeight=_XF.height;var _5f3=0;var _6f3=0;var _Ic=_XF._C4[_t4];var _G8=_Ic.texture;if(!_G8.complete)return;if(_e8)if(!_G8._N8)_M8(_Ic);XOffset=_Ic.XOffset;YOffset=_Ic.YOffset;CropWidth=_Ic.CropWidth;CropHeight=_Ic.CropHeight;_5f3=_Ic.x;_6f3=_Ic.y;var _7f3=CropWidth/_Ic.w;var _8f3=CropHeight/_Ic.h;var _9f3=this.left;var _af3=(_XF.width-this.right)-this.left;var _bf3=this.right;var _cf3=this.top;var _df3=(_XF.height-this.bottom)-this.top;var _ef3=this.bottom; var _ff3=(_m8<0)?1:0;var _gf3=(_n8<0)?1:0;var _hf3=(_ff3^_gf3)?true:false;var _if3=1.0;var _jf3=1.0;if(_ff3){_m8=-_m8;if(_e8){_if3=-1.0;}}if(_gf3){_n8=-_n8;if(_e8){_jf3=-1.0;}}var _kf3=(_m8-_9f3-_bf3)/_af3;var _lf3=(_n8-_cf3-_ef3)/_df3;if(_m8<_9f3){_9f3=_m8;_bf3=0.0;_kf3=0.0;}else if(_m8<(_9f3+_bf3)){_bf3=(_m8-_9f3);_kf3=0.0;}if(_n8<_cf3){_cf3=_n8;_ef3=0.0;_lf3=0.0;}else if(_n8<(_cf3+_ef3)){_ef3=(_n8-_cf3);_lf3=0.0;}var _pA=[];var _qA=[];_pA[0]=0.0;_pA[1]=_9f3;_pA[2]=_pA[1]+_af3;_pA[3]=_pA[2]+_bf3;_qA[0]=0.0; _qA[1]=_cf3;_qA[2]=_qA[1]+_df3;_qA[3]=_qA[2]+_ef3;var _Oe3;var _Pe3;var xorigin;var yorigin;if(_Jf3){xorigin=0;yorigin=0;}else {xorigin=_XF.xOrigin;yorigin=_XF.yOrigin;}_Oe3=xorigin*(_m8/_XF.width);_Pe3=yorigin*(_n8/_XF.height);_Oe3*=_if3;_Pe3*=_jf3;if(XOffset>0){for(i=0;i<4;i++){if(_pA[i]0){for(i=0;i<4;i++){if(_qA[i](XOffset+CropWidth)){var _3g3=XOffset+CropWidth;for(i=0;i<4;i++){if(_pA[i]>_3g3){_pA[i]=_3g3;}}}if(_XF.height>(YOffset+CropHeight)){ var _3g3=YOffset+CropHeight;for(i=0;i<4;i++){if(_qA[i]>_3g3){_qA[i]=_3g3;}}}for(i=0;i<4;i++){_tw2[i]=_pA[i]-XOffset;_Rw2[i]=_qA[i]-YOffset;_tw2[i]+=_5f3*_7f3;_Rw2[i]+=_6f3*_8f3;}var _9u=_pA[3]-_pA[2];_pA[2]=_pA[1]+((_pA[2]-_pA[1])*_kf3);_pA[3]=_pA[2]+_9u;_9u=_qA[3]-_qA[2];_qA[2]=_qA[1]+((_qA[2]-_qA[1])*_lf3);_qA[3]=_qA[2]+_9u;var _sf3=[];var _tf3=[];_sf3[0]=_sf3[4]=_sf3[8]=_sf3[12]=(_pA[0]*_if3);_sf3[1]=_sf3[5]=_sf3[9]=_sf3[13]=(_pA[1]*_if3);_sf3[2]=_sf3[6]=_sf3[10]=_sf3[14]=(_pA[2]*_if3);_sf3[3]=_sf3[7]=_sf3[11]=_sf3[15]=(_pA[3]*_if3); _tf3[0]=_tf3[1]=_tf3[2]=_tf3[3]=(_qA[0]*_jf3);_tf3[4]=_tf3[5]=_tf3[6]=_tf3[7]=(_qA[1]*_jf3);_tf3[8]=_tf3[9]=_tf3[10]=_tf3[11]=(_qA[2]*_jf3);_tf3[12]=_tf3[13]=_tf3[14]=_tf3[15]=(_qA[3]*_jf3);var _Tf3=undefined;if((_y4!=0.0)||(!_e8&&(_ff3||_gf3))){_Tf3=new _zz();var _Uf3=new _zz();var _Vf3=new _zz();_Tf3._uB();_Uf3._uB();_Tf3._WA(-_Oe3,-_Pe3,0.0);_Uf3.__A(_y4);_Vf3.Multiply(_Tf3,_Uf3);_Tf3=new _zz(_Vf3);_Uf3._uB();_Uf3._WA(_q5,_r5,0.0);_Vf3.Multiply(_Tf3,_Uf3);if(_e8||(!_ff3&&!_gf3))_Tf3=_Vf3;else {_Uf3._XA(_ff3?-1.0:1.0, _gf3?-1.0:1.0,1.0);_Tf3.Multiply(_Uf3,_Vf3);}}else {var _Pf3=-_Oe3+_q5;var _Qf3=-_Pe3+_r5;for(i=0;i<16;i++){var _Wf3,_Xf3;_Wf3=_sf3[i]+_Pf3;_Xf3=_tf3[i]+_Qf3;_sf3[i]=_Wf3;_tf3[i]=_Xf3;}}if(_e8){for(i=0;i<4;i++){_tw2[i]/=_G8.width*_7f3;_Rw2[i]/=_G8.height*_8f3;}if(_y4!=0.0){for(i=0;i<16;i++){var _Wf3,_Xf3;_Wf3=(_Tf3._v6[_5B]*_sf3[i])+(_Tf3._v6[_6B]*_tf3[i])+_Tf3._v6[_8B];_Xf3=(_Tf3._v6[_9B]*_sf3[i])+(_Tf3._v6[_0A]*_tf3[i])+_Tf3._v6[_bB];_sf3[i]=_Wf3;_tf3[i]=_Xf3;}}var _Sf3=_e8._Da(_9a._Ea,_G8._N8,_e8._Fa, 54);var _Ga=_Sf3._Ha()>>2;var bindex=_Ga*_Sf3._Ia;_Sf3._Ia+=54;var _Ja=_Sf3._Ka;var _La=_Sf3._Ma;var _Na=_Sf3._Oa;var _h4=(_u9*255.0)<<24;var _3d=_h4|(_Pc&0xffffff);var _uf3=[0,1,4,4,1,5,1,2,5,5,2,6,2,3,6,6,3,7,4,5,8,8,5,9,5,6,9,9,6,10,6,7,10,10,7,11,8,9,12,12,9,13,9,10,13,13,10,14,10,11,14,14,11,15];var _vf3=[0,0,1,0,0,1,0,1,1,0,1,1,1,0,2,0,1,1,1,1,2,0,2,1,2,0,3,0,2,1,2,1,3,0,3,1,0,1,1,1,0,2,0,2,1,1,1,2,1,1,2,1,1,2,1,2,2,1,2,2,2,1,3,1,2,2,2,2,3,1,3,2,0,2,1,2,0,3,0,3,1,2,1,3,1,2,2,2,1,3,1,3,2,2,2,3,2,2,3, 2,2,3,2,3,3,2,3,3,];if(_hf3){for(i=53;i>=0;i--){_Ja[bindex+0]=_sf3[_uf3[i]];_Ja[bindex+1]=_tf3[_uf3[i]];_Ja[bindex+2]=_Ta;_La[bindex]=_3d;_Na[bindex+0]=_tw2[_vf3[i*2]];_Na[bindex+1]=_Rw2[_vf3[i*2+1]];bindex+=_Ga;}}else {for(i=0;i<54;i++){_Ja[bindex+0]=_sf3[_uf3[i]];_Ja[bindex+1]=_tf3[_uf3[i]];_Ja[bindex+2]=_Ta;_La[bindex]=_3d;_Na[bindex+0]=_tw2[_vf3[i*2]];_Na[bindex+1]=_Rw2[_vf3[i*2+1]];bindex+=_Ga;}}}else {_1a.globalAlpha=_u9;if(_Pc!=_L9){var _443=_M9(_Ic,_Pc);if(_Tf3!=undefined){_q63(_Tf3);}var _4g3, _5g3;for(_5g3=0;_5g3<3;_5g3++){for(_4g3=0;_4g3<3;_4g3++){_1a._pg1(_443,_tw2[_4g3]-_5f3,_Rw2[_5g3]-_6f3,_tw2[_4g3+1]-_tw2[_4g3],_Rw2[_5g3+1]-_Rw2[_5g3],_sf3[_4g3],_tf3[_5g3*4],_sf3[_4g3+1]-_sf3[_4g3],_tf3[_5g3*4+4]-_tf3[_5g3*4]);}}if(_Tf3!=undefined){_h43();}}else {if(_Tf3!=undefined){_q63(_Tf3);}var _4g3,_5g3;for(_5g3=0;_5g3<3;_5g3++){for(_4g3=0;_4g3<3;_4g3++){_1a._pg1(_G8,_tw2[_4g3],_Rw2[_5g3],_tw2[_4g3+1]-_tw2[_4g3],_Rw2[_5g3+1]-_Rw2[_5g3],_sf3[_4g3],_tf3[_5g3*4],_sf3[_4g3+1]-_sf3[_4g3],_tf3[_5g3*4+4]-_tf3[_5g3*4]); }}if(_Tf3!=undefined){_h43();}}}}};var _ia3=0,_ka3=1,_la3=2;function _6g3(){this._7g3=null;this._8g3=0;this._9g3=null;}function _ag3(){this._7g3=null;this._bg3=false;this._Cl=null;}function _cg3(){this.physicsObject=false;}function _dg3(_eg3,_N3){this.__type="[Object]";this._zg=0;this._EQ=_eg3;this._WF=_N3;this._911=-1;this._sQ=0;this._711=0;this._411=false;this._511=false;this._811=false;this._CQ=0;this._9F=null;this._fg3=-1;this._GN2=false;this._KA2=new _Ck();this._9c3=new _Ck();this._KA2._Dk=true;this._9c3._Dk=true; this._gg3=[];for(var _h4=0;_h4<_ZA2;_h4++){this._gg3[_h4]=null;}this._hg3=[];this._ig3=[];this._jg3=[];this._IN2=[];this.Triggers=[];this.Event=[];this._3A2=[];this._a11=new _cg3();}_dg3.prototype._PZ=function(){return this._KA2._Vk;};_dg3.prototype._e51=function(){return this._9c3._Vk;};function _RN2(_kg3,_lg3){var _BG=new _dg3(_kg3,_lg3.pName);{if(_lg3.spriteIndex!=undefined)_BG._sQ=_lg3.spriteIndex;if(_lg3.visible!=undefined)_BG._511=_lg3.visible;if(_lg3.solid!=undefined)_BG._411=_lg3.solid;if(_lg3.depth!=undefined)_BG._711=_lg3.depth; if(_lg3.persistent!=undefined)_BG._811=_lg3.persistent;if(_lg3.parent!=undefined)_BG._CQ=_lg3.parent;if(_lg3.spritemask!=undefined)_BG._911=_lg3.spritemask;if(_lg3.PreCreateEvent){_BG.PreCreateEvent=_lg3.PreCreateEvent;_BG.Event[_2n]=true;}if(_lg3.CreateEvent){_BG.CreateEvent=_lg3.CreateEvent;_BG.Event[_3n]=true;}if(_lg3.DestroyEvent){_BG.DestroyEvent=_lg3.DestroyEvent;_BG.Event[_pQ]=true;}if(_lg3.CleanUpEvent){_BG.CleanUpEvent=_lg3.CleanUpEvent;_BG.Event[_bQ]=true;}if(_lg3.StepBeginEvent){_BG.StepBeginEvent=_lg3.StepBeginEvent; _BG.Event[_jB2]=true;}if(_lg3.StepNormalEvent){_BG.StepNormalEvent=_lg3.StepNormalEvent;_BG.Event[_lB2]=true;}if(_lg3.StepEndEvent){_BG.StepEndEvent=_lg3.StepEndEvent;_BG.Event[_nB2]=true;}if(_lg3.DrawEvent){_BG.DrawEvent=_lg3.DrawEvent;_BG.Event[_WD2]=true;}if(_lg3.DrawGUI){_BG.DrawGUI=_lg3.DrawGUI;_BG.Event[_PF2]=true;}if(_lg3.DrawEventBegin){_BG.DrawEventBegin=_lg3.DrawEventBegin;_BG.Event[_RF2]=true;}if(_lg3.DrawEventEnd){_BG.DrawEventEnd=_lg3.DrawEventEnd;_BG.Event[_SF2]=true;}if(_lg3.DrawGUIBegin){ _BG.DrawGUIBegin=_lg3.DrawGUIBegin;_BG.Event[_TF2]=true;}if(_lg3.DrawGUIEnd){_BG.DrawGUIEnd=_lg3.DrawGUIEnd;_BG.Event[_UF2]=true;}if(_lg3.DrawPre){_BG.DrawPre=_lg3.DrawPre;_BG.Event[_VF2]=true;}if(_lg3.DrawPost){_BG.DrawPost=_lg3.DrawPost;_BG.Event[_WF2]=true;}if(_lg3.DrawResize){_BG.DrawResize=_lg3.DrawResize;_BG.Event[_QF2]=true;}if(_lg3.NoButtonPressed){_BG.NoButtonPressed=_lg3.NoButtonPressed;_BG.Event[_FA2]=true;}if(_lg3.LeftButtonDown){_BG.LeftButtonDown=_lg3.LeftButtonDown;_BG.Event[_wA2]=true; }if(_lg3.RightButtonDown){_BG.RightButtonDown=_lg3.RightButtonDown;_BG.Event[_yA2]=true;}if(_lg3.MiddleButtonDown){_BG.MiddleButtonDown=_lg3.MiddleButtonDown;_BG.Event[_xA2]=true;}if(_lg3.LeftButtonPressed){_BG.LeftButtonPressed=_lg3.LeftButtonPressed;_BG.Event[_zA2]=true;}if(_lg3.RightButtonPressed){_BG.RightButtonPressed=_lg3.RightButtonPressed;_BG.Event[_BA2]=true;}if(_lg3.MiddleButtonPressed){_BG.MiddleButtonPressed=_lg3.MiddleButtonPressed;_BG.Event[_AA2]=true;}if(_lg3.LeftButtonReleased){_BG.LeftButtonReleased=_lg3.LeftButtonReleased; _BG.Event[_CA2]=true;}if(_lg3.RightButtonReleased){_BG.RightButtonReleased=_lg3.RightButtonReleased;_BG.Event[_EA2]=true;}if(_lg3.MiddleButtonReleased){_BG.MiddleButtonReleased=_lg3.MiddleButtonReleased;_BG.Event[_DA2]=true;}if(_lg3.MouseWheelUp){_BG.MouseWheelUp=_lg3.MouseWheelUp;_BG.Event[_IA2]=true;}if(_lg3.MouseWheelDown){_BG.MouseWheelDown=_lg3.MouseWheelDown;_BG.Event[_JA2]=true;}if(_lg3.GlobalLeftButtonDown){_BG.GlobalLeftButtonDown=_lg3.GlobalLeftButtonDown;_BG.Event[_OA2]=true;}if(_lg3.GlobalRightButtonDown){ _BG.GlobalRightButtonDown=_lg3.GlobalRightButtonDown;_BG.Event[_1C2]=true;}if(_lg3.GlobalMiddleButtonDown){_BG.GlobalMiddleButtonDown=_lg3.GlobalMiddleButtonDown;_BG.Event[_3C2]=true;}if(_lg3.GlobalLeftButtonPressed){_BG.GlobalLeftButtonPressed=_lg3.GlobalLeftButtonPressed;_BG.Event[_PA2]=true;}if(_lg3.GlobalRightButtonPressed){_BG.GlobalRightButtonPressed=_lg3.GlobalRightButtonPressed;_BG.Event[_6C2]=true;}if(_lg3.GlobalMiddleButtonPressed){_BG.GlobalMiddleButtonPressed=_lg3.GlobalMiddleButtonPressed; _BG.Event[_8C2]=true;}if(_lg3.GlobalLeftButtonReleased){_BG.GlobalLeftButtonReleased=_lg3.GlobalLeftButtonReleased;_BG.Event[_QA2]=true;}if(_lg3.GlobalRightButtonReleased){_BG.GlobalRightButtonReleased=_lg3.GlobalRightButtonReleased;_BG.Event[_bC2]=true;}if(_lg3.GlobalMiddleButtonReleased){_BG.GlobalMiddleButtonReleased=_lg3.GlobalMiddleButtonReleased;_BG.Event[_dC2]=true;}if(_lg3.MouseEnter){_BG.MouseEnter=_lg3.MouseEnter;_BG.Event[_GA2]=true;}if(_lg3.MouseLeave){_BG.MouseLeave=_lg3.MouseLeave; _BG.Event[_HA2]=true;}if(_lg3.GestureTapEvent){_BG.GestureTapEvent=_lg3.GestureTapEvent;_BG.Event[_6E2]=true;}if(_lg3.GestureDoubleTapEvent){_BG.GestureDoubleTapEvent=_lg3.GestureDoubleTapEvent;_BG.Event[_8E2]=true;}if(_lg3.GestureDragStartEvent){_BG.GestureDragStartEvent=_lg3.GestureDragStartEvent;_BG.Event[_aE2]=true;}if(_lg3.GestureDragMoveEvent){_BG.GestureDragMoveEvent=_lg3.GestureDragMoveEvent;_BG.Event[_cE2]=true;}if(_lg3.GestureDragEndEvent){_BG.GestureDragEndEvent=_lg3.GestureDragEndEvent; _BG.Event[_eE2]=true;}if(_lg3.GestureFlickEvent){_BG.GestureFlickEvent=_lg3.GestureFlickEvent;_BG.Event[_gE2]=true;}if(_lg3.GestureGlobalTapEvent){_BG.GestureGlobalTapEvent=_lg3.GestureGlobalTapEvent;_BG.Event[_wE2]=true;}if(_lg3.GestureGlobalDoubleTapEvent){_BG.GestureGlobalDoubleTapEvent=_lg3.GestureGlobalDoubleTapEvent;_BG.Event[_yE2]=true;}if(_lg3.GestureGlobalDragStartEvent){_BG.GestureGlobalDragStartEvent=_lg3.GestureGlobalDragStartEvent;_BG.Event[_AE2]=true;}if(_lg3.GestureGlobalDragMoveEvent){ _BG.GestureGlobalDragMoveEvent=_lg3.GestureGlobalDragMoveEvent;_BG.Event[_CE2]=true;}if(_lg3.GestureGlobalDragEndEvent){_BG.GestureGlobalDragEndEvent=_lg3.GestureGlobalDragEndEvent;_BG.Event[_EE2]=true;}if(_lg3.GestureGlobalFlickEvent){_BG.GestureGlobalFlickEvent=_lg3.GestureGlobalFlickEvent;_BG.Event[_GE2]=true;}if(_lg3.OutsideEvent){_BG.OutsideEvent=_lg3.OutsideEvent;_BG.Event[_4A2]=true;}if(_lg3.BoundaryEvent){_BG.BoundaryEvent=_lg3.BoundaryEvent;_BG.Event[_6A2]=true;}if(_lg3.StartGameEvent){ _BG.StartGameEvent=_lg3.StartGameEvent;_BG.Event[_jC2]=true;}if(_lg3.EndGameEvent){_BG.EndGameEvent=_lg3.EndGameEvent;_BG.Event[_lC2]=true;}if(_lg3.StartRoomEvent){_BG.StartRoomEvent=_lg3.StartRoomEvent;_BG.Event[_nC2]=true;}if(_lg3.EndRoomEvent){_BG.EndRoomEvent=_lg3.EndRoomEvent;_BG.Event[_pC2]=true;}if(_lg3.NoLivesEvent){_BG.NoLivesEvent=_lg3.NoLivesEvent;_BG.Event[_In]=true;}if(_lg3.AnimationEndEvent){_BG.AnimationEndEvent=_lg3.AnimationEndEvent;_BG.Event[_sC2]=true;}if(_lg3.EndOfPathEvent){ _BG.EndOfPathEvent=_lg3.EndOfPathEvent;_BG.Event[_Ec2]=true;}if(_lg3.NoHealthEvent){_BG.NoHealthEvent=_lg3.NoHealthEvent;_BG.Event[_Tn]=true;}if(_lg3.CloseButtonEvent){_BG.CloseButtonEvent=_lg3.CloseButtonEvent;_BG.Event[_wC2]=true;}if(_lg3.OutsideView0Event){_BG.OutsideView0Event=_lg3.OutsideView0Event;_BG.Event[_cA2]=true;}if(_lg3.OutsideView1Event){_BG.OutsideView1Event=_lg3.OutsideView1Event;_BG.Event[_zC2]=true;}if(_lg3.OutsideView2Event){_BG.OutsideView2Event=_lg3.OutsideView2Event;_BG.Event[_BC2]=true; }if(_lg3.OutsideView3Event){_BG.OutsideView3Event=_lg3.OutsideView3Event;_BG.Event[_DC2]=true;}if(_lg3.OutsideView4Event){_BG.OutsideView4Event=_lg3.OutsideView4Event;_BG.Event[_FC2]=true;}if(_lg3.OutsideView5Event){_BG.OutsideView5Event=_lg3.OutsideView5Event;_BG.Event[_HC2]=true;}if(_lg3.OutsideView6Event){_BG.OutsideView6Event=_lg3.OutsideView6Event;_BG.Event[_JC2]=true;}if(_lg3.OutsideView7Event){_BG.OutsideView7Event=_lg3.OutsideView7Event;_BG.Event[_LC2]=true;}if(_lg3.BoundaryView0Event){_BG.BoundaryView0Event=_lg3.BoundaryView0Event; _BG.Event[_dA2]=true;}if(_lg3.BoundaryView1Event){_BG.BoundaryView1Event=_lg3.BoundaryView1Event;_BG.Event[_OC2]=true;}if(_lg3.BoundaryView2Event){_BG.BoundaryView2Event=_lg3.BoundaryView2Event;_BG.Event[_QC2]=true;}if(_lg3.BoundaryView3Event){_BG.BoundaryView3Event=_lg3.BoundaryView3Event;_BG.Event[_SC2]=true;}if(_lg3.BoundaryView4Event){_BG.BoundaryView4Event=_lg3.BoundaryView4Event;_BG.Event[_UC2]=true;}if(_lg3.BoundaryView5Event){_BG.BoundaryView5Event=_lg3.BoundaryView5Event;_BG.Event[_WC2]=true; }if(_lg3.BoundaryView6Event){_BG.BoundaryView6Event=_lg3.BoundaryView6Event;_BG.Event[_YC2]=true;}if(_lg3.BoundaryView7Event){_BG.BoundaryView7Event=_lg3.BoundaryView7Event;_BG.Event[__C2]=true;}if(_lg3.AnimationUpdateEvent){_BG.AnimationUpdateEvent=_lg3.AnimationUpdateEvent;_BG.Event[_O5]=true;}if(_lg3.UserEvent0){_BG.UserEvent0=_lg3.UserEvent0;_BG.Event[_0D2]=true;}if(_lg3.UserEvent1){_BG.UserEvent1=_lg3.UserEvent1;_BG.Event[_2D2]=true;}if(_lg3.UserEvent2){_BG.UserEvent2=_lg3.UserEvent2;_BG.Event[_4D2]=true; }if(_lg3.UserEvent3){_BG.UserEvent3=_lg3.UserEvent3;_BG.Event[_6D2]=true;}if(_lg3.UserEvent4){_BG.UserEvent4=_lg3.UserEvent4;_BG.Event[_8D2]=true;}if(_lg3.UserEvent5){_BG.UserEvent5=_lg3.UserEvent5;_BG.Event[_aD2]=true;}if(_lg3.UserEvent6){_BG.UserEvent6=_lg3.UserEvent6;_BG.Event[_cD2]=true;}if(_lg3.UserEvent7){_BG.UserEvent7=_lg3.UserEvent7;_BG.Event[_eD2]=true;}if(_lg3.UserEvent8){_BG.UserEvent8=_lg3.UserEvent8;_BG.Event[_gD2]=true;}if(_lg3.UserEvent9){_BG.UserEvent9=_lg3.UserEvent9;_BG.Event[_iD2]=true; }if(_lg3.UserEvent10){_BG.UserEvent10=_lg3.UserEvent10;_BG.Event[_kD2]=true;}if(_lg3.UserEvent11){_BG.UserEvent11=_lg3.UserEvent11;_BG.Event[_mD2]=true;}if(_lg3.UserEvent12){_BG.UserEvent12=_lg3.UserEvent12;_BG.Event[_oD2]=true;}if(_lg3.UserEvent13){_BG.UserEvent13=_lg3.UserEvent13;_BG.Event[_qD2]=true;}if(_lg3.UserEvent14){_BG.UserEvent14=_lg3.UserEvent14;_BG.Event[_sD2]=true;}if(_lg3.UserEvent15){_BG.UserEvent15=_lg3.UserEvent15;_BG.Event[_uD2]=true;}if(_lg3.WebImageLoadedEvent){_BG.WebImageLoadedEvent=_lg3.WebImageLoadedEvent; _BG.Event[_yD2]=true;}if(_lg3.WebSoundLoadedEvent){_BG.WebSoundLoadedEvent=_lg3.WebSoundLoadedEvent;_BG.Event[_AD2]=true;}if(_lg3.WebAsyncEvent){_BG.WebAsyncEvent=_lg3.WebAsyncEvent;_BG.Event[_CD2]=true;}if(_lg3.WebUserInteractionEvent){_BG.WebUserInteractionEvent=_lg3.WebUserInteractionEvent;_BG.Event[_ED2]=true;}if(_lg3.WebIAPEvent){_BG.WebIAPEvent=_lg3.WebIAPEvent;_BG.Event[_GD2]=true;}if(_lg3.SocialEvent){_BG.SocialEvent=_lg3.SocialEvent;_BG.Event[_KD2]=true;}if(_lg3.PushNotificationEvent){_BG.PushNotificationEvent=_lg3.PushNotificationEvent; _BG.Event[_MD2]=true;}if(_lg3.AsyncSaveLoadEvent){_BG.AsyncSaveLoadEvent=_lg3.AsyncSaveLoadEvent;_BG.Event[_Ce1]=true;}if(_lg3.NetworkingEvent){_BG.NetworkingEvent=_lg3.NetworkingEvent;_BG.Event[_ID2]=true;}if(_lg3.AudioPlaybackEvent){_BG.AudioPlaybackEvent=_lg3.AudioPlaybackEvent;_BG.Event[_PD2]=true;}if(_lg3.AudioPlaybackEndedEvent){_BG.AudioPlaybackEndedEvent=_lg3.AudioPlaybackEndedEvent;_BG.Event[_RD2]=true;}if(_lg3.AudioRecordingEvent){_BG.AudioRecordingEvent=_lg3.AudioRecordingEvent;_BG.Event[_zf1]=true; }if(_lg3.AnimationEventEvent){_BG.AnimationEventEvent=_lg3.AnimationEventEvent;_BG.Event[_k3]=true;}if(_lg3.SystemEvent){_BG.SystemEvent=_lg3.SystemEvent;_BG.Event[_Tc1]=true;}if(_lg3.BroadcastMessageEvent){_BG.BroadcastMessageEvent=_lg3.BroadcastMessageEvent;_BG.Event[_UD2]=true;}if(_lg3.ObjAlarm0){_BG._gg3[0]=_lg3.ObjAlarm0;_BG.Event[_5B2]=true;}if(_lg3.ObjAlarm1){_BG._gg3[1]=_lg3.ObjAlarm1;_BG.Event[_6B2]=true;}if(_lg3.ObjAlarm2){_BG._gg3[2]=_lg3.ObjAlarm2;_BG.Event[_7B2]=true;}if(_lg3.ObjAlarm3){ _BG._gg3[3]=_lg3.ObjAlarm3;_BG.Event[_8B2]=true;}if(_lg3.ObjAlarm4){_BG._gg3[4]=_lg3.ObjAlarm4;_BG.Event[_9B2]=true;}if(_lg3.ObjAlarm5){_BG._gg3[5]=_lg3.ObjAlarm5;_BG.Event[_aB2]=true;}if(_lg3.ObjAlarm6){_BG._gg3[6]=_lg3.ObjAlarm6;_BG.Event[_bB2]=true;}if(_lg3.ObjAlarm7){_BG._gg3[7]=_lg3.ObjAlarm7;_BG.Event[_cB2]=true;}if(_lg3.ObjAlarm8){_BG._gg3[8]=_lg3.ObjAlarm8;_BG.Event[_dB2]=true;}if(_lg3.ObjAlarm9){_BG._gg3[9]=_lg3.ObjAlarm9;_BG.Event[_eB2]=true;}if(_lg3.ObjAlarm10){_BG._gg3[10]=_lg3.ObjAlarm10; _BG.Event[_fB2]=true;}if(_lg3.ObjAlarm11){_BG._gg3[11]=_lg3.ObjAlarm11;_BG.Event[_gB2]=true;}if(_lg3.KeyPressed_NOKEY){_BG._ig3[_eG2]=_lg3.KeyPressed_NOKEY;_BG.Event[_eG2]=true;}if(_lg3.KeyPressed_ANYKEY){_BG._ig3[_gG2]=_lg3.KeyPressed_ANYKEY;_BG.Event[_gG2]=true;}if(_lg3.KeyPressed_BACKSPACE){_BG._ig3[_hG2]=_lg3.KeyPressed_BACKSPACE;_BG.Event[_hG2]=true;}if(_lg3.KeyPressed_TAB){_BG._ig3[_iG2]=_lg3.KeyPressed_TAB;_BG.Event[_iG2]=true;}if(_lg3.KeyPressed_ENTER){_BG._ig3[_jG2]=_lg3.KeyPressed_ENTER; _BG.Event[_jG2]=true;}if(_lg3.KeyPressed_SHIFT){_BG._ig3[_kG2]=_lg3.KeyPressed_SHIFT;_BG.Event[_kG2]=true;}if(_lg3.KeyPressed_CTRL){_BG._ig3[_lG2]=_lg3.KeyPressed_CTRL;_BG.Event[_lG2]=true;}if(_lg3.KeyPressed_ALT){_BG._ig3[_mG2]=_lg3.KeyPressed_ALT;_BG.Event[_mG2]=true;}if(_lg3.KeyPressed_PAUSE){_BG._ig3[_nG2]=_lg3.KeyPressed_PAUSE;_BG.Event[_nG2]=true;}if(_lg3.KeyPressed_ESCAPE){_BG._ig3[_oG2]=_lg3.KeyPressed_ESCAPE;_BG.Event[_oG2]=true;}if(_lg3.KeyPressed_SPACE){_BG._ig3[_pG2]=_lg3.KeyPressed_SPACE; _BG.Event[_pG2]=true;}if(_lg3.KeyPressed_PAGEUP){_BG._ig3[_qG2]=_lg3.KeyPressed_PAGEUP;_BG.Event[_qG2]=true;}if(_lg3.KeyPressed_PAGEDOWN){_BG._ig3[_rG2]=_lg3.KeyPressed_PAGEDOWN;_BG.Event[_rG2]=true;}if(_lg3.KeyPressed_END){_BG._ig3[_sG2]=_lg3.KeyPressed_END;_BG.Event[_sG2]=true;}if(_lg3.KeyPressed_HOME){_BG._ig3[_tG2]=_lg3.KeyPressed_HOME;_BG.Event[_tG2]=true;}if(_lg3.KeyPressed_LEFT){_BG._ig3[_uG2]=_lg3.KeyPressed_LEFT;_BG.Event[_uG2]=true;}if(_lg3.KeyPressed_UP){_BG._ig3[_vG2]=_lg3.KeyPressed_UP; _BG.Event[_vG2]=true;}if(_lg3.KeyPressed_RIGHT){_BG._ig3[_wG2]=_lg3.KeyPressed_RIGHT;_BG.Event[_wG2]=true;}if(_lg3.KeyPressed_DOWN){_BG._ig3[_xG2]=_lg3.KeyPressed_DOWN;_BG.Event[_xG2]=true;}if(_lg3.KeyPressed_INSERT){_BG._ig3[_yG2]=_lg3.KeyPressed_INSERT;_BG.Event[_yG2]=true;}if(_lg3.KeyPressed_DELETE){_BG._ig3[_zG2]=_lg3.KeyPressed_DELETE;_BG.Event[_zG2]=true;}if(_lg3.KeyPressed_0){_BG._ig3[_AG2]=(_lg3.KeyPressed_0);_BG.Event[_AG2]=true;}if(_lg3.KeyPressed_1){_BG._ig3[_BG2]=(_lg3.KeyPressed_1); _BG.Event[_BG2]=true;}if(_lg3.KeyPressed_2){_BG._ig3[_CG2]=(_lg3.KeyPressed_2);_BG.Event[_CG2]=true;}if(_lg3.KeyPressed_3){_BG._ig3[_DG2]=(_lg3.KeyPressed_3);_BG.Event[_DG2]=true;}if(_lg3.KeyPressed_4){_BG._ig3[_EG2]=(_lg3.KeyPressed_4);_BG.Event[_EG2]=true;}if(_lg3.KeyPressed_5){_BG._ig3[_FG2]=(_lg3.KeyPressed_5);_BG.Event[_FG2]=true;}if(_lg3.KeyPressed_6){_BG._ig3[_GG2]=(_lg3.KeyPressed_6);_BG.Event[_GG2]=true;}if(_lg3.KeyPressed_7){_BG._ig3[_HG2]=(_lg3.KeyPressed_7);_BG.Event[_HG2]=true;}if(_lg3.KeyPressed_8){ _BG._ig3[_IG2]=(_lg3.KeyPressed_8);_BG.Event[_IG2]=true;}if(_lg3.KeyPressed_9){_BG._ig3[_JG2]=(_lg3.KeyPressed_9);_BG.Event[_JG2]=true;}if(_lg3.KeyPressed_A){_BG._ig3[_KG2]=(_lg3.KeyPressed_A);_BG.Event[_KG2]=true;}if(_lg3.KeyPressed_B){_BG._ig3[_LG2]=(_lg3.KeyPressed_B);_BG.Event[_LG2]=true;}if(_lg3.KeyPressed_C){_BG._ig3[_MG2]=(_lg3.KeyPressed_C);_BG.Event[_MG2]=true;}if(_lg3.KeyPressed_D){_BG._ig3[_NG2]=(_lg3.KeyPressed_D);_BG.Event[_NG2]=true;}if(_lg3.KeyPressed_E){_BG._ig3[_OG2]=(_lg3.KeyPressed_E); _BG.Event[_OG2]=true;}if(_lg3.KeyPressed_F){_BG._ig3[_PG2]=(_lg3.KeyPressed_F);_BG.Event[_PG2]=true;}if(_lg3.KeyPressed_G){_BG._ig3[_QG2]=(_lg3.KeyPressed_G);_BG.Event[_QG2]=true;}if(_lg3.KeyPressed_H){_BG._ig3[_RG2]=(_lg3.KeyPressed_H);_BG.Event[_RG2]=true;}if(_lg3.KeyPressed_I){_BG._ig3[_SG2]=(_lg3.KeyPressed_I);_BG.Event[_SG2]=true;}if(_lg3.KeyPressed_J){_BG._ig3[_TG2]=(_lg3.KeyPressed_J);_BG.Event[_TG2]=true;}if(_lg3.KeyPressed_K){_BG._ig3[_UG2]=(_lg3.KeyPressed_K);_BG.Event[_UG2]=true;}if(_lg3.KeyPressed_L){ _BG._ig3[_VG2]=(_lg3.KeyPressed_L);_BG.Event[_VG2]=true;}if(_lg3.KeyPressed_M){_BG._ig3[_WG2]=(_lg3.KeyPressed_M);_BG.Event[_WG2]=true;}if(_lg3.KeyPressed_N){_BG._ig3[_XG2]=(_lg3.KeyPressed_N);_BG.Event[_XG2]=true;}if(_lg3.KeyPressed_O){_BG._ig3[_YG2]=(_lg3.KeyPressed_O);_BG.Event[_YG2]=true;}if(_lg3.KeyPressed_P){_BG._ig3[_ZG2]=(_lg3.KeyPressed_P);_BG.Event[_ZG2]=true;}if(_lg3.KeyPressed_Q){_BG._ig3[__G2]=(_lg3.KeyPressed_Q);_BG.Event[__G2]=true;}if(_lg3.KeyPressed_R){_BG._ig3[_0H2]=(_lg3.KeyPressed_R); _BG.Event[_0H2]=true;}if(_lg3.KeyPressed_S){_BG._ig3[_1H2]=(_lg3.KeyPressed_S);_BG.Event[_1H2]=true;}if(_lg3.KeyPressed_T){_BG._ig3[_2H2]=(_lg3.KeyPressed_T);_BG.Event[_2H2]=true;}if(_lg3.KeyPressed_U){_BG._ig3[_3H2]=(_lg3.KeyPressed_U);_BG.Event[_3H2]=true;}if(_lg3.KeyPressed_V){_BG._ig3[_4H2]=(_lg3.KeyPressed_V);_BG.Event[_4H2]=true;}if(_lg3.KeyPressed_W){_BG._ig3[_5H2]=(_lg3.KeyPressed_W);_BG.Event[_5H2]=true;}if(_lg3.KeyPressed_X){_BG._ig3[_6H2]=(_lg3.KeyPressed_X);_BG.Event[_6H2]=true;}if(_lg3.KeyPressed_Y){ _BG._ig3[_7H2]=(_lg3.KeyPressed_Y);_BG.Event[_7H2]=true;}if(_lg3.KeyPressed_Z){_BG._ig3[_8H2]=(_lg3.KeyPressed_Z);_BG.Event[_8H2]=true;}if(_lg3.KeyPressed_F1){_BG._ig3[_9H2]=(_lg3.KeyPressed_F1);_BG.Event[_9H2]=true;}if(_lg3.KeyPressed_F2){_BG._ig3[_aH2]=(_lg3.KeyPressed_F2);_BG.Event[_aH2]=true;}if(_lg3.KeyPressed_F3){_BG._ig3[_bH2]=(_lg3.KeyPressed_F3);_BG.Event[_bH2]=true;}if(_lg3.KeyPressed_F4){_BG._ig3[_cH2]=(_lg3.KeyPressed_F4);_BG.Event[_cH2]=true;}if(_lg3.KeyPressed_F5){_BG._ig3[_dH2]=(_lg3.KeyPressed_F5); _BG.Event[_dH2]=true;}if(_lg3.KeyPressed_F6){_BG._ig3[_eH2]=(_lg3.KeyPressed_F6);_BG.Event[_eH2]=true;}if(_lg3.KeyPressed_F7){_BG._ig3[_fH2]=(_lg3.KeyPressed_F7);_BG.Event[_fH2]=true;}if(_lg3.KeyPressed_F8){_BG._ig3[_gH2]=(_lg3.KeyPressed_F8);_BG.Event[_gH2]=true;}if(_lg3.KeyPressed_F9){_BG._ig3[_hH2]=(_lg3.KeyPressed_F9);_BG.Event[_hH2]=true;}if(_lg3.KeyPressed_F10){_BG._ig3[_iH2]=(_lg3.KeyPressed_F10);_BG.Event[_iH2]=true;}if(_lg3.KeyPressed_F11){_BG._ig3[_jH2]=(_lg3.KeyPressed_F11);_BG.Event[_jH2]=true; }if(_lg3.KeyPressed_F12){_BG._ig3[_kH2]=(_lg3.KeyPressed_F12);_BG.Event[_kH2]=true;}if(_lg3.KeyPressed_NUM_LOCK){_BG._ig3[_yH2]=(_lg3.KeyPressed_NUM_LOCK);_BG.Event[_yH2]=true;}if(_lg3.KeyPressed_NUM_0){_BG._ig3[_zH2]=(_lg3.KeyPressed_NUM_0);_BG.Event[_zH2]=true;}if(_lg3.KeyPressed_NUM_1){_BG._ig3[_AH2]=(_lg3.KeyPressed_NUM_1);_BG.Event[_AH2]=true;}if(_lg3.KeyPressed_NUM_2){_BG._ig3[_BH2]=(_lg3.KeyPressed_NUM_2);_BG.Event[_BH2]=true;}if(_lg3.KeyPressed_NUM_3){_BG._ig3[_CH2]=(_lg3.KeyPressed_NUM_3); _BG.Event[_CH2]=true;}if(_lg3.KeyPressed_NUM_4){_BG._ig3[_DH2]=(_lg3.KeyPressed_NUM_4);_BG.Event[_DH2]=true;}if(_lg3.KeyPressed_NUM_5){_BG._ig3[_EH2]=(_lg3.KeyPressed_NUM_5);_BG.Event[_EH2]=true;}if(_lg3.KeyPressed_NUM_6){_BG._ig3[_FH2]=(_lg3.KeyPressed_NUM_6);_BG.Event[_FH2]=true;}if(_lg3.KeyPressed_NUM_7){_BG._ig3[_GH2]=(_lg3.KeyPressed_NUM_7);_BG.Event[_GH2]=true;}if(_lg3.KeyPressed_NUM_8){_BG._ig3[_HH2]=(_lg3.KeyPressed_NUM_8);_BG.Event[_HH2]=true;}if(_lg3.KeyPressed_NUM_9){_BG._ig3[_IH2]=(_lg3.KeyPressed_NUM_9); _BG.Event[_IH2]=true;}if(_lg3.KeyPressed_NUM_STAR){_BG._ig3[_JH2]=(_lg3.KeyPressed_NUM_STAR);_BG.Event[_JH2]=true;}if(_lg3.KeyPressed_NUM_PLUS){_BG._ig3[_KH2]=(_lg3.KeyPressed_NUM_PLUS);_BG.Event[_KH2]=true;}if(_lg3.KeyPressed_NUM_MINUS){_BG._ig3[_LH2]=(_lg3.KeyPressed_NUM_MINUS);_BG.Event[_LH2]=true;}if(_lg3.KeyPressed_NUM_DOT){_BG._ig3[_MH2]=(_lg3.KeyPressed_NUM_DOT);_BG.Event[_MH2]=true;}if(_lg3.KeyPressed_NUM_DIV){_BG._ig3[_NH2]=(_lg3.KeyPressed_NUM_DIV);_BG.Event[_NH2]=true;}if(_lg3.Key_NOKEY){ _BG._hg3[_OH2]=(_lg3.Key_NOKEY);_BG.Event[_OH2]=true;}if(_lg3.Key_ANYKEY){_BG._hg3[_QH2]=(_lg3.Key_ANYKEY);_BG.Event[_QH2]=true;}if(_lg3.Key_BACKSPACE){_BG._hg3[_RH2]=(_lg3.Key_BACKSPACE);_BG.Event[_RH2]=true;}if(_lg3.Key_TAB){_BG._hg3[_SH2]=(_lg3.Key_TAB);_BG.Event[_SH2]=true;}if(_lg3.Key_ENTER){_BG._hg3[_TH2]=(_lg3.Key_ENTER);_BG.Event[_TH2]=true;}if(_lg3.Key_SHIFT){_BG._hg3[_UH2]=(_lg3.Key_SHIFT);_BG.Event[_UH2]=true;}if(_lg3.Key_CTRL){_BG._hg3[_VH2]=(_lg3.Key_CTRL);_BG.Event[_VH2]=true;}if(_lg3.Key_ALT){ _BG._hg3[_WH2]=(_lg3.Key_ALT);_BG.Event[_WH2]=true;}if(_lg3.Key_PAUSE){_BG._hg3[_XH2]=(_lg3.Key_PAUSE);_BG.Event[_XH2]=true;}if(_lg3.Key_ESCAPE){_BG._hg3[_YH2]=(_lg3.Key_ESCAPE);_BG.Event[_YH2]=true;}if(_lg3.Key_SPACE){_BG._hg3[_ZH2]=(_lg3.Key_SPACE);_BG.Event[_ZH2]=true;}if(_lg3.Key_PAGEUP){_BG._hg3[__H2]=(_lg3.Key_PAGEUP);_BG.Event[__H2]=true;}if(_lg3.Key_PAGEDOWN){_BG._hg3[_0I2]=(_lg3.Key_PAGEDOWN);_BG.Event[_0I2]=true;}if(_lg3.Key_END){_BG._hg3[_1I2]=(_lg3.Key_END);_BG.Event[_1I2]=true;}if(_lg3.Key_HOME){ _BG._hg3[_2I2]=(_lg3.Key_HOME);_BG.Event[_2I2]=true;}if(_lg3.Key_LEFT){_BG._hg3[_3I2]=(_lg3.Key_LEFT);_BG.Event[_3I2]=true;}if(_lg3.Key_UP){_BG._hg3[_4I2]=(_lg3.Key_UP);_BG.Event[_4I2]=true;}if(_lg3.Key_RIGHT){_BG._hg3[_5I2]=(_lg3.Key_RIGHT);_BG.Event[_5I2]=true;}if(_lg3.Key_DOWN){_BG._hg3[_6I2]=(_lg3.Key_DOWN);_BG.Event[_6I2]=true;}if(_lg3.Key_INSERT){_BG._hg3[_7I2]=(_lg3.Key_INSERT);_BG.Event[_7I2]=true;}if(_lg3.Key_DELETE){_BG._hg3[_8I2]=(_lg3.Key_DELETE);_BG.Event[_8I2]=true;}if(_lg3.Key_0){ _BG._hg3[_9I2]=(_lg3.Key_0);_BG.Event[_9I2]=true;}if(_lg3.Key_1){_BG._hg3[_aI2]=(_lg3.Key_1);_BG.Event[_aI2]=true;}if(_lg3.Key_2){_BG._hg3[_bI2]=(_lg3.Key_2);_BG.Event[_bI2]=true;}if(_lg3.Key_3){_BG._hg3[_cI2]=(_lg3.Key_3);_BG.Event[_cI2]=true;}if(_lg3.Key_4){_BG._hg3[_dI2]=(_lg3.Key_4);_BG.Event[_dI2]=true;}if(_lg3.Key_5){_BG._hg3[_eI2]=(_lg3.Key_5);_BG.Event[_eI2]=true;}if(_lg3.Key_6){_BG._hg3[_fI2]=(_lg3.Key_6);_BG.Event[_fI2]=true;}if(_lg3.Key_7){_BG._hg3[_gI2]=(_lg3.Key_7);_BG.Event[_gI2]=true; }if(_lg3.Key_8){_BG._hg3[_hI2]=(_lg3.Key_8);_BG.Event[_hI2]=true;}if(_lg3.Key_9){_BG._hg3[_iI2]=(_lg3.Key_9);_BG.Event[_iI2]=true;}if(_lg3.Key_A){_BG._hg3[_jI2]=(_lg3.Key_A);_BG.Event[_jI2]=true;}if(_lg3.Key_B){_BG._hg3[_kI2]=(_lg3.Key_B);_BG.Event[_kI2]=true;}if(_lg3.Key_C){_BG._hg3[_lI2]=(_lg3.Key_C);_BG.Event[_lI2]=true;}if(_lg3.Key_D){_BG._hg3[_mI2]=(_lg3.Key_D);_BG.Event[_mI2]=true;}if(_lg3.Key_E){_BG._hg3[_nI2]=(_lg3.Key_E);_BG.Event[_nI2]=true;}if(_lg3.Key_F){_BG._hg3[_oI2]=(_lg3.Key_F);_BG.Event[_oI2]=true; }if(_lg3.Key_G){_BG._hg3[_pI2]=(_lg3.Key_G);_BG.Event[_pI2]=true;}if(_lg3.Key_H){_BG._hg3[_qI2]=(_lg3.Key_H);_BG.Event[_qI2]=true;}if(_lg3.Key_I){_BG._hg3[_rI2]=(_lg3.Key_I);_BG.Event[_rI2]=true;}if(_lg3.Key_J){_BG._hg3[_sI2]=(_lg3.Key_J);_BG.Event[_sI2]=true;}if(_lg3.Key_K){_BG._hg3[_tI2]=(_lg3.Key_K);_BG.Event[_tI2]=true;}if(_lg3.Key_L){_BG._hg3[_uI2]=(_lg3.Key_L);_BG.Event[_uI2]=true;}if(_lg3.Key_M){_BG._hg3[_vI2]=(_lg3.Key_M);_BG.Event[_vI2]=true;}if(_lg3.Key_N){_BG._hg3[_wI2]=(_lg3.Key_N);_BG.Event[_wI2]=true; }if(_lg3.Key_O){_BG._hg3[_xI2]=(_lg3.Key_O);_BG.Event[_xI2]=true;}if(_lg3.Key_P){_BG._hg3[_yI2]=(_lg3.Key_P);_BG.Event[_yI2]=true;}if(_lg3.Key_Q){_BG._hg3[_zI2]=(_lg3.Key_Q);_BG.Event[_zI2]=true;}if(_lg3.Key_R){_BG._hg3[_AI2]=(_lg3.Key_R);_BG.Event[_AI2]=true;}if(_lg3.Key_S){_BG._hg3[_BI2]=(_lg3.Key_S);_BG.Event[_BI2]=true;}if(_lg3.Key_T){_BG._hg3[_CI2]=(_lg3.Key_T);_BG.Event[_CI2]=true;}if(_lg3.Key_U){_BG._hg3[_DI2]=(_lg3.Key_U);_BG.Event[_DI2]=true;}if(_lg3.Key_V){_BG._hg3[_EI2]=(_lg3.Key_V);_BG.Event[_EI2]=true; }if(_lg3.Key_W){_BG._hg3[_FI2]=(_lg3.Key_W);_BG.Event[_FI2]=true;}if(_lg3.Key_X){_BG._hg3[_GI2]=(_lg3.Key_X);_BG.Event[_GI2]=true;}if(_lg3.Key_Y){_BG._hg3[_HI2]=(_lg3.Key_Y);_BG.Event[_HI2]=true;}if(_lg3.Key_Z){_BG._hg3[_II2]=(_lg3.Key_Z);_BG.Event[_II2]=true;}if(_lg3.Key_F1){_BG._hg3[_JI2]=(_lg3.Key_F1);_BG.Event[_JI2]=true;}if(_lg3.Key_F2){_BG._hg3[_KI2]=(_lg3.Key_F2);_BG.Event[_KI2]=true;}if(_lg3.Key_F3){_BG._hg3[_LI2]=(_lg3.Key_F3);_BG.Event[_LI2]=true;}if(_lg3.Key_F4){_BG._hg3[_MI2]=(_lg3.Key_F4); _BG.Event[_MI2]=true;}if(_lg3.Key_F5){_BG._hg3[_NI2]=(_lg3.Key_F5);_BG.Event[_NI2]=true;}if(_lg3.Key_F6){_BG._hg3[_OI2]=(_lg3.Key_F6);_BG.Event[_OI2]=true;}if(_lg3.Key_F7){_BG._hg3[_PI2]=(_lg3.Key_F7);_BG.Event[_PI2]=true;}if(_lg3.Key_F8){_BG._hg3[_QI2]=(_lg3.Key_F8);_BG.Event[_QI2]=true;}if(_lg3.Key_F9){_BG._hg3[_RI2]=(_lg3.Key_F9);_BG.Event[_RI2]=true;}if(_lg3.Key_F10){_BG._hg3[_SI2]=(_lg3.Key_F10);_BG.Event[_SI2]=true;}if(_lg3.Key_F11){_BG._hg3[_TI2]=(_lg3.Key_F11);_BG.Event[_TI2]=true;}if(_lg3.Key_F12){ _BG._hg3[_UI2]=(_lg3.Key_F12);_BG.Event[_UI2]=true;}if(_lg3.Key_NUM_LOCK){_BG._hg3[_7J2]=(_lg3.Key_NUM_LOCK);_BG.Event[_7J2]=true;}if(_lg3.Key_NUM_0){_BG._hg3[_8J2]=(_lg3.Key_NUM_0);_BG.Event[_8J2]=true;}if(_lg3.Key_NUM_1){_BG._hg3[_9J2]=(_lg3.Key_NUM_1);_BG.Event[_9J2]=true;}if(_lg3.Key_NUM_2){_BG._hg3[_aJ2]=(_lg3.Key_NUM_2);_BG.Event[_aJ2]=true;}if(_lg3.Key_NUM_3){_BG._hg3[_bJ2]=(_lg3.Key_NUM_3);_BG.Event[_bJ2]=true;}if(_lg3.Key_NUM_4){_BG._hg3[_cJ2]=(_lg3.Key_NUM_4);_BG.Event[_cJ2]=true;}if(_lg3.Key_NUM_5){ _BG._hg3[_dJ2]=(_lg3.Key_NUM_5);_BG.Event[_dJ2]=true;}if(_lg3.Key_NUM_6){_BG._hg3[_eJ2]=(_lg3.Key_NUM_6);_BG.Event[_eJ2]=true;}if(_lg3.Key_NUM_7){_BG._hg3[_fJ2]=(_lg3.Key_NUM_7);_BG.Event[_fJ2]=true;}if(_lg3.Key_NUM_8){_BG._hg3[_gJ2]=(_lg3.Key_NUM_8);_BG.Event[_gJ2]=true;}if(_lg3.Key_NUM_9){_BG._hg3[_hJ2]=(_lg3.Key_NUM_9);_BG.Event[_hJ2]=true;}if(_lg3.Key_NUM_STAR){_BG._hg3[_iJ2]=(_lg3.Key_NUM_STAR);_BG.Event[_iJ2]=true;}if(_lg3.Key_NUM_PLUS){_BG._hg3[_jJ2]=(_lg3.Key_NUM_PLUS);_BG.Event[_jJ2]=true; }if(_lg3.Key_NUM_MINUS){_BG._hg3[_kJ2]=(_lg3.Key_NUM_MINUS);_BG.Event[_kJ2]=true;}if(_lg3.Key_NUM_DOT){_BG._hg3[_lJ2]=(_lg3.Key_NUM_DOT);_BG.Event[_lJ2]=true;}if(_lg3.Key_NUM_DIV){_BG._hg3[_mJ2]=(_lg3.Key_NUM_DIV);_BG.Event[_mJ2]=true;}if(_lg3.KeyReleased_NOKEY){_BG._jg3[_nJ2]=(_lg3.KeyReleased_NOKEY);_BG.Event[_nJ2]=true;}if(_lg3.KeyReleased_ANYKEY){_BG._jg3[_pJ2]=(_lg3.KeyReleased_ANYKEY);_BG.Event[_pJ2]=true;}if(_lg3.KeyReleased_BACKSPACE){_BG._jg3[_qJ2]=(_lg3.KeyReleased_BACKSPACE);_BG.Event[_qJ2]=true; }if(_lg3.KeyReleased_TAB){_BG._jg3[_rJ2]=(_lg3.KeyReleased_TAB);_BG.Event[_rJ2]=true;}if(_lg3.KeyReleased_ENTER){_BG._jg3[_sJ2]=(_lg3.KeyReleased_ENTER);_BG.Event[_sJ2]=true;}if(_lg3.KeyReleased_SHIFT){_BG._jg3[_tJ2]=(_lg3.KeyReleased_SHIFT);_BG.Event[_tJ2]=true;}if(_lg3.KeyReleased_CTRL){_BG._jg3[_uJ2]=(_lg3.KeyReleased_CTRL);_BG.Event[_uJ2]=true;}if(_lg3.KeyReleased_ALT){_BG._jg3[_vJ2]=(_lg3.KeyReleased_ALT);_BG.Event[_vJ2]=true;}if(_lg3.KeyReleased_PAUSE){_BG._jg3[_wJ2]=(_lg3.KeyReleased_PAUSE); _BG.Event[_wJ2]=true;}if(_lg3.KeyReleased_ESCAPE){_BG._jg3[_xJ2]=(_lg3.KeyReleased_ESCAPE);_BG.Event[_xJ2]=true;}if(_lg3.KeyReleased_SPACE){_BG._jg3[_yJ2]=(_lg3.KeyReleased_SPACE);_BG.Event[_yJ2]=true;}if(_lg3.KeyReleased_PAGEUP){_BG._jg3[_zJ2]=(_lg3.KeyReleased_PAGEUP);_BG.Event[_zJ2]=true;}if(_lg3.KeyReleased_PAGEDOWN){_BG._jg3[_AJ2]=(_lg3.KeyReleased_PAGEDOWN);_BG.Event[_AJ2]=true;}if(_lg3.KeyReleased_END){_BG._jg3[_BJ2]=(_lg3.KeyReleased_END);_BG.Event[_BJ2]=true;}if(_lg3.KeyReleased_HOME){_BG._jg3[_CJ2]=(_lg3.KeyReleased_HOME); _BG.Event[_CJ2]=true;}if(_lg3.KeyReleased_LEFT){_BG._jg3[_DJ2]=(_lg3.KeyReleased_LEFT);_BG.Event[_DJ2]=true;}if(_lg3.KeyReleased_UP){_BG._jg3[_EJ2]=(_lg3.KeyReleased_UP);_BG.Event[_EJ2]=true;}if(_lg3.KeyReleased_RIGHT){_BG._jg3[_FJ2]=(_lg3.KeyReleased_RIGHT);_BG.Event[_FJ2]=true;}if(_lg3.KeyReleased_DOWN){_BG._jg3[_GJ2]=(_lg3.KeyReleased_DOWN);_BG.Event[_GJ2]=true;}if(_lg3.KeyReleased_INSERT){_BG._jg3[_HJ2]=(_lg3.KeyReleased_INSERT);_BG.Event[_HJ2]=true;}if(_lg3.KeyReleased_DELETE){_BG._jg3[_IJ2]=(_lg3.KeyReleased_DELETE); _BG.Event[_IJ2]=true;}if(_lg3.KeyReleased_0){_BG._jg3[_JJ2]=(_lg3.KeyReleased_0);_BG.Event[_JJ2]=true;}if(_lg3.KeyReleased_1){_BG._jg3[_KJ2]=(_lg3.KeyReleased_1);_BG.Event[_KJ2]=true;}if(_lg3.KeyReleased_2){_BG._jg3[_LJ2]=(_lg3.KeyReleased_2);_BG.Event[_LJ2]=true;}if(_lg3.KeyReleased_3){_BG._jg3[_MJ2]=(_lg3.KeyReleased_3);_BG.Event[_MJ2]=true;}if(_lg3.KeyReleased_4){_BG._jg3[_NJ2]=(_lg3.KeyReleased_4);_BG.Event[_NJ2]=true;}if(_lg3.KeyReleased_5){_BG._jg3[_OJ2]=(_lg3.KeyReleased_5);_BG.Event[_OJ2]=true; }if(_lg3.KeyReleased_6){_BG._jg3[_PJ2]=(_lg3.KeyReleased_6);_BG.Event[_PJ2]=true;}if(_lg3.KeyReleased_7){_BG._jg3[_QJ2]=(_lg3.KeyReleased_7);_BG.Event[_QJ2]=true;}if(_lg3.KeyReleased_8){_BG._jg3[_RJ2]=(_lg3.KeyReleased_8);_BG.Event[_RJ2]=true;}if(_lg3.KeyReleased_9){_BG._jg3[_SJ2]=(_lg3.KeyReleased_9);_BG.Event[_SJ2]=true;}if(_lg3.KeyReleased_A){_BG._jg3[_TJ2]=(_lg3.KeyReleased_A);_BG.Event[_TJ2]=true;}if(_lg3.KeyReleased_B){_BG._jg3[_UJ2]=(_lg3.KeyReleased_B);_BG.Event[_UJ2]=true;}if(_lg3.KeyReleased_C){ _BG._jg3[_VJ2]=(_lg3.KeyReleased_C);_BG.Event[_VJ2]=true;}if(_lg3.KeyReleased_D){_BG._jg3[_WJ2]=(_lg3.KeyReleased_D);_BG.Event[_WJ2]=true;}if(_lg3.KeyReleased_E){_BG._jg3[_XJ2]=(_lg3.KeyReleased_E);_BG.Event[_XJ2]=true;}if(_lg3.KeyReleased_F){_BG._jg3[_YJ2]=(_lg3.KeyReleased_F);_BG.Event[_YJ2]=true;}if(_lg3.KeyReleased_G){_BG._jg3[_ZJ2]=(_lg3.KeyReleased_G);_BG.Event[_ZJ2]=true;}if(_lg3.KeyReleased_H){_BG._jg3[__J2]=(_lg3.KeyReleased_H);_BG.Event[__J2]=true;}if(_lg3.KeyReleased_I){_BG._jg3[_0K2]=(_lg3.KeyReleased_I); _BG.Event[_0K2]=true;}if(_lg3.KeyReleased_J){_BG._jg3[_1K2]=(_lg3.KeyReleased_J);_BG.Event[_1K2]=true;}if(_lg3.KeyReleased_K){_BG._jg3[_2K2]=(_lg3.KeyReleased_K);_BG.Event[_2K2]=true;}if(_lg3.KeyReleased_L){_BG._jg3[_3K2]=(_lg3.KeyReleased_L);_BG.Event[_3K2]=true;}if(_lg3.KeyReleased_M){_BG._jg3[_4K2]=(_lg3.KeyReleased_M);_BG.Event[_4K2]=true;}if(_lg3.KeyReleased_N){_BG._jg3[_5K2]=(_lg3.KeyReleased_N);_BG.Event[_5K2]=true;}if(_lg3.KeyReleased_O){_BG._jg3[_6K2]=(_lg3.KeyReleased_O);_BG.Event[_6K2]=true; }if(_lg3.KeyReleased_P){_BG._jg3[_7K2]=(_lg3.KeyReleased_P);_BG.Event[_7K2]=true;}if(_lg3.KeyReleased_Q){_BG._jg3[_8K2]=(_lg3.KeyReleased_Q);_BG.Event[_8K2]=true;}if(_lg3.KeyReleased_R){_BG._jg3[_9K2]=(_lg3.KeyReleased_R);_BG.Event[_9K2]=true;}if(_lg3.KeyReleased_S){_BG._jg3[_aK2]=(_lg3.KeyReleased_S);_BG.Event[_aK2]=true;}if(_lg3.KeyReleased_T){_BG._jg3[_bK2]=(_lg3.KeyReleased_T);_BG.Event[_bK2]=true;}if(_lg3.KeyReleased_U){_BG._jg3[_cK2]=(_lg3.KeyReleased_U);_BG.Event[_cK2]=true;}if(_lg3.KeyReleased_V){ _BG._jg3[_dK2]=(_lg3.KeyReleased_V);_BG.Event[_dK2]=true;}if(_lg3.KeyReleased_W){_BG._jg3[_eK2]=(_lg3.KeyReleased_W);_BG.Event[_eK2]=true;}if(_lg3.KeyReleased_X){_BG._jg3[_fK2]=(_lg3.KeyReleased_X);_BG.Event[_fK2]=true;}if(_lg3.KeyReleased_Y){_BG._jg3[_gK2]=(_lg3.KeyReleased_Y);_BG.Event[_gK2]=true;}if(_lg3.KeyReleased_Z){_BG._jg3[_hK2]=(_lg3.KeyReleased_Z);_BG.Event[_hK2]=true;}if(_lg3.KeyReleased_F1){_BG._jg3[_iK2]=(_lg3.KeyReleased_F1);_BG.Event[_iK2]=true;}if(_lg3.KeyReleased_F2){_BG._jg3[_jK2]=(_lg3.KeyReleased_F2); _BG.Event[_jK2]=true;}if(_lg3.KeyReleased_F3){_BG._jg3[_kK2]=(_lg3.KeyReleased_F3);_BG.Event[_kK2]=true;}if(_lg3.KeyReleased_F4){_BG._jg3[_lK2]=(_lg3.KeyReleased_F4);_BG.Event[_lK2]=true;}if(_lg3.KeyReleased_F5){_BG._jg3[_mK2]=(_lg3.KeyReleased_F5);_BG.Event[_mK2]=true;}if(_lg3.KeyReleased_F6){_BG._jg3[_nK2]=(_lg3.KeyReleased_F6);_BG.Event[_nK2]=true;}if(_lg3.KeyReleased_F7){_BG._jg3[_oK2]=(_lg3.KeyReleased_F7);_BG.Event[_oK2]=true;}if(_lg3.KeyReleased_F8){_BG._jg3[_pK2]=(_lg3.KeyReleased_F8);_BG.Event[_pK2]=true; }if(_lg3.KeyReleased_F9){_BG._jg3[_qK2]=(_lg3.KeyReleased_F9);_BG.Event[_qK2]=true;}if(_lg3.KeyReleased_F10){_BG._jg3[_rK2]=(_lg3.KeyReleased_F10);_BG.Event[_rK2]=true;}if(_lg3.KeyReleased_F11){_BG._jg3[_sK2]=(_lg3.KeyReleased_F11);_BG.Event[_sK2]=true;}if(_lg3.KeyReleased_F12){_BG._jg3[_tK2]=(_lg3.KeyReleased_F12);_BG.Event[_tK2]=true;}if(_lg3.KeyReleased_NUM_LOCK){_BG._jg3[_HK2]=(_lg3.KeyReleased_NUM_LOCK);_BG.Event[_HK2]=true;}if(_lg3.KeyReleased_NUM_0){_BG._jg3[_IK2]=(_lg3.KeyReleased_NUM_0); _BG.Event[_IK2]=true;}if(_lg3.KeyReleased_NUM_1){_BG._jg3[_JK2]=(_lg3.KeyReleased_NUM_1);_BG.Event[_JK2]=true;}if(_lg3.KeyReleased_NUM_2){_BG._jg3[_KK2]=(_lg3.KeyReleased_NUM_2);_BG.Event[_KK2]=true;}if(_lg3.KeyReleased_NUM_3){_BG._jg3[_LK2]=(_lg3.KeyReleased_NUM_3);_BG.Event[_LK2]=true;}if(_lg3.KeyReleased_NUM_4){_BG._jg3[_MK2]=(_lg3.KeyReleased_NUM_4);_BG.Event[_MK2]=true;}if(_lg3.KeyReleased_NUM_5){_BG._jg3[_NK2]=(_lg3.KeyReleased_NUM_5);_BG.Event[_NK2]=true;}if(_lg3.KeyReleased_NUM_6){_BG._jg3[_OK2]=(_lg3.KeyReleased_NUM_6); _BG.Event[_OK2]=true;}if(_lg3.KeyReleased_NUM_7){_BG._jg3[_PK2]=(_lg3.KeyReleased_NUM_7);_BG.Event[_PK2]=true;}if(_lg3.KeyReleased_NUM_8){_BG._jg3[_QK2]=(_lg3.KeyReleased_NUM_8);_BG.Event[_QK2]=true;}if(_lg3.KeyReleased_NUM_9){_BG._jg3[_RK2]=(_lg3.KeyReleased_NUM_9);_BG.Event[_RK2]=true;}if(_lg3.KeyReleased_NUM_STAR){_BG._jg3[_SK2]=(_lg3.KeyReleased_NUM_STAR);_BG.Event[_SK2]=true;}if(_lg3.KeyReleased_NUM_PLUS){_BG._jg3[_TK2]=(_lg3.KeyReleased_NUM_PLUS);_BG.Event[_TK2]=true;}if(_lg3.KeyReleased_NUM_MINUS){ _BG._jg3[_UK2]=(_lg3.KeyReleased_NUM_MINUS);_BG.Event[_UK2]=true;}if(_lg3.KeyReleased_NUM_DOT){_BG._jg3[_VK2]=(_lg3.KeyReleased_NUM_DOT);_BG.Event[_VK2]=true;}if(_lg3.KeyReleased_NUM_DIV){_BG._jg3[_WK2]=(_lg3.KeyReleased_NUM_DIV);_BG.Event[_WK2]=true;}var i=0;if(_lg3.TriggerEvents!=undefined){while(i<_lg3.TriggerEvents.length){var key=parseInt(_lg3.TriggerEvents[i])+1;var pFunc=_lg3.TriggerEvents[i+1];var _mg3=_qL2._E5(key);_BG.Event[_3E2]=true;_BG.Event[_3E2|key]=true;var _ng3=new _6g3();_ng3._7g3=pFunc; _ng3._9g3=_mg3;_ng3._8g3=key;_BG.Triggers[_3E2|key]=_ng3;i+=2;}}i=0;if(_lg3.CollisionEvents!=undefined){while(i<_lg3.CollisionEvents.length){_BG.Event[_Tc2]=true;var key=parseInt(_lg3.CollisionEvents[i]);var _2Y=_lg3.CollisionEvents[i+1];var _og3=new _ag3();_og3._7g3=_2Y;_og3._pg3=false;_og3._Cl=this;_BG._IN2[key]=_og3;i+=2;}}if(_lg3.physicsObject!=undefined){_BG._a11.physicsObject=_lg3.physicsObject;_BG._a11.physicsSensor=_lg3.physicsSensor;_BG._a11.physicsShape=_lg3.physicsShape;_BG._a11.physicsDensity=_lg3.physicsDensity; _BG._a11.physicsRestitution=_lg3.physicsRestitution;_BG._a11.physicsGroup=_lg3.physicsGroup;_BG._a11.physicsLinearDamping=_lg3.physicsLinearDamping;_BG._a11.physicsAngularDamping=_lg3.physicsAngularDamping;_BG._a11.physicsFriction=_lg3.physicsFriction;_BG._a11.physicsAwake=_lg3.physicsAwake;_BG._a11.physicsKinematic=_lg3.physicsKinematic;_BG._a11.physicsShapeVertices=_lg3.physicsShapeVertices;}}return _BG;}_dg3.prototype._qg3=function(_e3,_3I){if(this.Event[_e3])return true;return false;};_dg3.prototype._N5=function(_e3, index,_Ht,_2I,_rg3){if(!_rg3&&(_e3!=_bQ)&&_881!=-1&&!((_Ht.persistent||_t3._sg3)&&((_e3==_3n)||(_e3==_2n)||(_e3==_pQ)||(_e3==__A2)||(_e3==_aI)||(_e3==_ID2)||(_e3==_CD2)))){return;}var _tg3=_sI;var _ug3=_tI;var _vg3=_UL2;var _wg3=_Ul;_UL2=this;_sI=_e3;_tI=index;_Ul=false;var _7C1=true;switch(_e3){case _2n:if(this.PreCreateEvent)this.PreCreateEvent(_Ht,_2I);else _7C1=false;break;case _3n:if(this.CreateEvent)this.CreateEvent(_Ht,_2I);else _7C1=false;break;case _pQ:if(this.DestroyEvent)this.DestroyEvent(_Ht,_2I); else _7C1=false;break;case _bQ:if(this.CleanUpEvent)this.CleanUpEvent(_Ht,_2I);else _7C1=false;break;case __A2:_7C1=false;break;case _MF2:_7C1=false;break;case _Tc2:if(this._IN2[index])this._IN2[index]._7g3(_Ht,_2I);break;case _YD2:if(this._hg3[_e3|index])this._hg3[_e3|index](_Ht,_2I);else _7C1=false;break;case _NF2:_7C1=false;break;case _aI:_7C1=false;break;case _WD2:if(this.DrawEvent)this.DrawEvent(_Ht,_2I);else _7C1=false;break;case __D2:if(this._ig3[_e3|index])this._ig3[_e3|index](_Ht,_2I);else _7C1=false; break;case _1E2:if(this._jg3[_e3|index])this._jg3[_e3|index](_Ht,_2I);else _7C1=false;break;case _3E2:if(this.Triggers[_e3|index]){var _xg3=this.Triggers[_e3|index];var _ng3=_xg3._9g3;var result=_ng3.pFunc(_Ht,_2I);if(result|_5I){_xg3._7g3(_Ht,_2I);}}break;case _PF2:if(this.DrawGUI)this.DrawGUI(_Ht,_2I);else _7C1=false;break;case _RF2:if(this.DrawEventBegin)this.DrawEventBegin(_Ht,_2I);else _7C1=false;break;case _SF2:if(this.DrawEventEnd)this.DrawEventEnd(_Ht,_2I);else _7C1=false;break;case _TF2:if(this.DrawGUIBegin)this.DrawGUIBegin(_Ht, _2I);else _7C1=false;break;case _UF2:if(this.DrawGUIEnd)this.DrawGUIEnd(_Ht,_2I);else _7C1=false;break;case _VF2:if(this.DrawPre)this.DrawPre(_Ht,_2I);else _7C1=false;break;case _WF2:if(this.DrawPost)this.DrawPost(_Ht,_2I);else _7C1=false;break;case _QF2:if(this.DrawResize)this.DrawResize(_Ht,_2I);else _7C1=false;break;case _jB2:if(this.StepBeginEvent)this.StepBeginEvent(_Ht,_2I);else _7C1=false;break;case _lB2:if(this.StepNormalEvent)this.StepNormalEvent(_Ht,_2I);else _7C1=false;break;case _nB2:if(this.StepEndEvent)this.StepEndEvent(_Ht, _2I);else _7C1=false;break;case _4A2:if(this.OutsideEvent)this.OutsideEvent(_Ht,_2I);else _7C1=false;break;case _6A2:if(this.BoundaryEvent)this.BoundaryEvent(_Ht,_2I);else _7C1=false;break;case _jC2:if(this.StartGameEvent)this.StartGameEvent(_Ht,_2I);else _7C1=false;break;case _lC2:if(this.EndGameEvent)this.EndGameEvent(_Ht,_2I);else _7C1=false;break;case _nC2:if(this.StartRoomEvent)this.StartRoomEvent(_Ht,_2I);else _7C1=false;break;case _pC2:if(this.EndRoomEvent)this.EndRoomEvent(_Ht,_2I);else _7C1=false;break; case _In:if(this.NoLivesEvent)this.NoLivesEvent(_Ht,_2I);else _7C1=false;break;case _sC2:if(this.AnimationEndEvent)this.AnimationEndEvent(_Ht,_2I);else _7C1=false;break;case _Ec2:if(this.EndOfPathEvent)this.EndOfPathEvent(_Ht,_2I);else _7C1=false;break;case _Tn:if(this.NoHealthEvent)this.NoHealthEvent(_Ht,_2I);else _7C1=false;break;case _wC2:if(this.CloseButtonEvent)this.CloseButtonEvent(_Ht,_2I);else _7C1=false;break;case _cA2:if(this.OutsideView0Event)this.OutsideView0Event(_Ht,_2I);else _7C1=false;break; case _zC2:if(this.OutsideView1Event)this.OutsideView1Event(_Ht,_2I);else _7C1=false;break;case _BC2:if(this.OutsideView2Event)this.OutsideView2Event(_Ht,_2I);else _7C1=false;break;case _DC2:if(this.OutsideView3Event)this.OutsideView3Event(_Ht,_2I);else _7C1=false;break;case _FC2:if(this.OutsideView4Event)this.OutsideView4Event(_Ht,_2I);else _7C1=false;break;case _HC2:if(this.OutsideView5Event)this.OutsideView5Event(_Ht,_2I);else _7C1=false;break;case _JC2:if(this.OutsideView6Event)this.OutsideView6Event(_Ht, _2I);else _7C1=false;break;case _LC2:if(this.OutsideView7Event)this.OutsideView7Event(_Ht,_2I);else _7C1=false;break;case _dA2:if(this.BoundaryView0Event)this.BoundaryView0Event(_Ht,_2I);else _7C1=false;break;case _OC2:if(this.BoundaryView1Event)this.BoundaryView1Event(_Ht,_2I);else _7C1=false;break;case _QC2:if(this.BoundaryView2Event)this.BoundaryView2Event(_Ht,_2I);else _7C1=false;break;case _SC2:if(this.BoundaryView3Event)this.BoundaryView3Event(_Ht,_2I);else _7C1=false;break;case _UC2:if(this.BoundaryView4Event)this.BoundaryView4Event(_Ht, _2I);else _7C1=false;break;case _WC2:if(this.BoundaryView5Event)this.BoundaryView5Event(_Ht,_2I);else _7C1=false;break;case _YC2:if(this.BoundaryView6Event)this.BoundaryView6Event(_Ht,_2I);else _7C1=false;break;case __C2:if(this.BoundaryView7Event)this.BoundaryView7Event(_Ht,_2I);else _7C1=false;break;case _O5:if(this.AnimationUpdateEvent)this.AnimationUpdateEvent(_Ht,_2I);else _7C1=false;break;case _k3:if(this.AnimationEventEvent)this.AnimationEventEvent(_Ht,_2I);else _7C1=false;break;case _yD2:if(this.WebImageLoadedEvent)this.WebImageLoadedEvent(_Ht, _2I);else _7C1=false;break;case _AD2:if(this.WebSoundLoadedEvent)this.WebSoundLoadedEvent(_Ht,_2I);else _7C1=false;break;case _CD2:if(this.WebAsyncEvent)this.WebAsyncEvent(_Ht,_2I);else _7C1=false;break;case _ED2:if(this.WebUserInteractionEvent)this.WebUserInteractionEvent(_Ht,_2I);else _7C1=false;break;case _GD2:if(this.WebIAPEvent)this.WebIAPEvent(_Ht,_2I);else _7C1=false;break;case _KD2:if(this.SocialEvent)this.SocialEvent(_Ht,_2I);else _7C1=false;break;case _MD2:if(this.PushNotificationEvent)this.PushNotificationEvent(_Ht, _2I);else _7C1=false;break;case _Ce1:if(this.AsyncSaveLoadEvent)this.AsyncSaveLoadEvent(_Ht,_2I);else _7C1=false;break;case _ID2:if(this.NetworkingEvent)this.NetworkingEvent(_Ht,_2I);else _7C1=false;break;case _PD2:if(this.AudioPlaybackEvent)this.AudioPlaybackEvent(_Ht,_2I);else _7C1=false;break;case _RD2:if(this.AudioPlaybackEndedEvent)this.AudioPlaybackEndedEvent(_Ht,_2I);else _7C1=false;break;case _zf1:if(this.AudioRecordingEvent)this.AudioRecordingEvent(_Ht,_2I);else _7C1=false;break;case _Tc1:if(this.SystemEvent)this.SystemEvent(_Ht, _2I);else _7C1=false;break;case _UD2:if(this.BroadcastMessageEvent)this.BroadcastMessageEvent(_Ht,_2I);else _7C1=false;break;case _0D2:if(this.UserEvent0)this.UserEvent0(_Ht,_2I);else _7C1=false;break;case _2D2:if(this.UserEvent1)this.UserEvent1(_Ht,_2I);else _7C1=false;break;case _4D2:if(this.UserEvent2)this.UserEvent2(_Ht,_2I);else _7C1=false;break;case _6D2:if(this.UserEvent3)this.UserEvent3(_Ht,_2I);else _7C1=false;break;case _8D2:if(this.UserEvent4)this.UserEvent4(_Ht,_2I);else _7C1=false;break;case _aD2:if(this.UserEvent5)this.UserEvent5(_Ht, _2I);else _7C1=false;break;case _cD2:if(this.UserEvent6)this.UserEvent6(_Ht,_2I);else _7C1=false;break;case _eD2:if(this.UserEvent7)this.UserEvent7(_Ht,_2I);else _7C1=false;break;case _gD2:if(this.UserEvent8)this.UserEvent8(_Ht,_2I);else _7C1=false;break;case _iD2:if(this.UserEvent9)this.UserEvent9(_Ht,_2I);else _7C1=false;break;case _kD2:if(this.UserEvent10)this.UserEvent10(_Ht,_2I);else _7C1=false;break;case _mD2:if(this.UserEvent11)this.UserEvent11(_Ht,_2I);else _7C1=false;break;case _oD2:if(this.UserEvent12)this.UserEvent12(_Ht, _2I);else _7C1=false;break;case _qD2:if(this.UserEvent13)this.UserEvent13(_Ht,_2I);else _7C1=false;break;case _sD2:if(this.UserEvent14)this.UserEvent14(_Ht,_2I);else _7C1=false;break;case _uD2:if(this.UserEvent15)this.UserEvent15(_Ht,_2I);else _7C1=false;break;case _FA2:if(this.NoButtonPressed)this.NoButtonPressed(_Ht,_2I);else _7C1=false;break;case _wA2:if(this.LeftButtonDown)this.LeftButtonDown(_Ht,_2I);else _7C1=false;break;case _yA2:if(this.RightButtonDown)this.RightButtonDown(_Ht,_2I);else _7C1=false;break; case _xA2:if(this.MiddleButtonDown)this.MiddleButtonDown(_Ht,_2I);else _7C1=false;break;case _zA2:if(this.LeftButtonPressed)this.LeftButtonPressed(_Ht,_2I);else _7C1=false;break;case _BA2:if(this.RightButtonPressed)this.RightButtonPressed(_Ht,_2I);else _7C1=false;break;case _AA2:if(this.MiddleButtonPressed)this.MiddleButtonPressed(_Ht,_2I);else _7C1=false;break;case _CA2:if(this.LeftButtonReleased)this.LeftButtonReleased(_Ht,_2I);else _7C1=false;break;case _EA2:if(this.RightButtonReleased)this.RightButtonReleased(_Ht, _2I);else _7C1=false;break;case _DA2:if(this.MiddleButtonReleased)this.MiddleButtonReleased(_Ht,_2I);else _7C1=false;break;case _IA2:if(this.MouseWheelUp)this.MouseWheelUp(_Ht,_2I);else _7C1=false;break;case _JA2:if(this.MouseWheelDown)this.MouseWheelDown(_Ht,_2I);else _7C1=false;break;case _OA2:if(this.GlobalLeftButtonDown)this.GlobalLeftButtonDown(_Ht,_2I);else _7C1=false;break;case _1C2:if(this.GlobalRightButtonDown)this.GlobalRightButtonDown(_Ht,_2I);else _7C1=false;break;case _3C2:if(this.GlobalMiddleButtonDown)this.GlobalMiddleButtonDown(_Ht, _2I);else _7C1=false;break;case _PA2:if(this.GlobalLeftButtonPressed)this.GlobalLeftButtonPressed(_Ht,_2I);else _7C1=false;break;case _6C2:if(this.GlobalRightButtonPressed)this.GlobalRightButtonPressed(_Ht,_2I);else _7C1=false;break;case _8C2:if(this.GlobalMiddleButtonPressed)this.GlobalMiddleButtonPressed(_Ht,_2I);else _7C1=false;break;case _QA2:if(this.GlobalLeftButtonReleased)this.GlobalLeftButtonReleased(_Ht,_2I);else _7C1=false;break;case _bC2:if(this.GlobalRightButtonReleased)this.GlobalRightButtonReleased(_Ht, _2I);else _7C1=false;break;case _dC2:if(this.GlobalMiddleButtonReleased)this.GlobalMiddleButtonReleased(_Ht,_2I);else _7C1=false;break;case _GA2:if(this.MouseEnter)this.MouseEnter(_Ht,_2I);else _7C1=false;break;case _HA2:if(this.MouseLeave)this.MouseLeave(_Ht,_2I);else _7C1=false;break;case _6E2:if(this.GestureTapEvent)this.GestureTapEvent(_Ht,_2I);else _7C1=false;break;case _8E2:if(this.GestureDoubleTapEvent)this.GestureDoubleTapEvent(_Ht,_2I);else _7C1=false;break;case _aE2:if(this.GestureDragStartEvent)this.GestureDragStartEvent(_Ht, _2I);else _7C1=false;break;case _cE2:if(this.GestureDragMoveEvent)this.GestureDragMoveEvent(_Ht,_2I);else _7C1=false;break;case _eE2:if(this.GestureDragEndEvent)this.GestureDragEndEvent(_Ht,_2I);else _7C1=false;break;case _gE2:if(this.GestureFlickEvent)this.GestureFlickEvent(_Ht,_2I);else _7C1=false;break;case _wE2:if(this.GestureGlobalTapEvent)this.GestureGlobalTapEvent(_Ht,_2I);else _7C1=false;break;case _yE2:if(this.GestureGlobalDoubleTapEvent)this.GestureGlobalDoubleTapEvent(_Ht,_2I);else _7C1=false;break; case _AE2:if(this.GestureGlobalDragStartEvent)this.GestureGlobalDragStartEvent(_Ht,_2I);else _7C1=false;break;case _CE2:if(this.GestureGlobalDragMoveEvent)this.GestureGlobalDragMoveEvent(_Ht,_2I);else _7C1=false;break;case _EE2:if(this.GestureGlobalDragEndEvent)this.GestureGlobalDragEndEvent(_Ht,_2I);else _7C1=false;break;case _GE2:if(this.GestureGlobalFlickEvent)this.GestureGlobalFlickEvent(_Ht,_2I);else _7C1=false;break;case _5B2:if(this._gg3[0]!=null)this._gg3[0](_Ht,_2I);else _7C1=false;break;case _6B2:if(this._gg3[1]!=null)this._gg3[1](_Ht, _2I);else _7C1=false;break;case _7B2:if(this._gg3[2]!=null)this._gg3[2](_Ht,_2I);else _7C1=false;break;case _8B2:if(this._gg3[3]!=null)this._gg3[3](_Ht,_2I);else _7C1=false;break;case _9B2:if(this._gg3[4]!=null)this._gg3[4](_Ht,_2I);else _7C1=false;break;case _aB2:if(this._gg3[5]!=null)this._gg3[5](_Ht,_2I);else _7C1=false;break;case _bB2:if(this._gg3[6]!=null)this._gg3[6](_Ht,_2I);else _7C1=false;break;case _cB2:if(this._gg3[7]!=null)this._gg3[7](_Ht,_2I);else _7C1=false;break;case _dB2:if(this._gg3[8]!=null)this._gg3[8](_Ht, _2I);else _7C1=false;break;case _eB2:if(this._gg3[9]!=null)this._gg3[9](_Ht,_2I);else _7C1=false;break;case _fB2:if(this._gg3[10]!=null)this._gg3[10](_Ht,_2I);else _7C1=false;break;case _gB2:if(this._gg3[11]!=null)this._gg3[11](_Ht,_2I);else _7C1=false;break;default :_7C1=false;}_Ul=_wg3;_sI=_tg3;_tI=_ug3;_UL2=_vg3;return _7C1;};function _O03(_e3){switch(_e3){case _2n:return _VE2;case _3n:return _1B2;case _pQ:return _2B2;case _bQ:return _3B2;case __A2:return _4B2;case _MF2:return _hB2;case _Tc2:return _oB2;case _YD2:return _XD2; case _NF2:return _pB2;case _aI:return _qI;case _WD2:return _VD2;case __D2:return _ZD2;case _1E2:return _0E2;case _3E2:return _2E2;case _PF2:return _VD2;case _RF2:return _VD2;case _SF2:return _VD2;case _TF2:return _VD2;case _UF2:return _VD2;case _VF2:return _VD2;case _WF2:return _VD2;case _QF2:return _VD2;case _jB2:return _hB2;case _lB2:return _hB2;case _nB2:return _hB2;case _4A2:return _qI;case _6A2:return _qI;case _jC2:return _qI;case _lC2:return _qI;case _nC2:return _qI;case _pC2:return _qI;case _In:return _qI;case _sC2:return _qI;case _Ec2:return _qI; case _Tn:return _qI;case _wC2:return _qI;case _cA2:return _qI;case _zC2:return _qI;case _BC2:return _qI;case _DC2:return _qI;case _FC2:return _qI;case _HC2:return _qI;case _JC2:return _qI;case _LC2:return _qI;case _dA2:return _qI;case _OC2:return _qI;case _QC2:return _qI;case _SC2:return _qI;case _UC2:return _qI;case _WC2:return _qI;case _YC2:return _qI;case __C2:return _qI;case _O5:return _qI;case _k3:return _qI;case _yD2:return _qI;case _AD2:return _qI;case _CD2:return _qI;case _ED2:return _qI;case _GD2:return _qI;case _KD2:return _qI;case _MD2:return _qI; case _Ce1:return _qI;case _ID2:return _qI;case _PD2:return _qI;case _RD2:return _qI;case _zf1:return _qI;case _Tc1:return _qI;case _0D2:return _qI;case _2D2:return _qI;case _4D2:return _qI;case _6D2:return _qI;case _8D2:return _qI;case _aD2:return _qI;case _cD2:return _qI;case _eD2:return _qI;case _gD2:return _qI;case _iD2:return _qI;case _kD2:return _qI;case _mD2:return _qI;case _oD2:return _qI;case _qD2:return _qI;case _sD2:return _qI;case _uD2:return _qI;case _FA2:return _pB2;case _wA2:return _pB2;case _yA2:return _pB2;case _xA2:return _pB2;case _zA2:return _pB2; case _BA2:return _pB2;case _AA2:return _pB2;case _CA2:return _pB2;case _EA2:return _pB2;case _DA2:return _pB2;case _IA2:return _pB2;case _JA2:return _pB2;case _OA2:return _pB2;case _1C2:return _pB2;case _3C2:return _pB2;case _PA2:return _pB2;case _6C2:return _pB2;case _8C2:return _pB2;case _QA2:return _pB2;case _bC2:return _pB2;case _dC2:return _pB2;case _GA2:return _pB2;case _HA2:return _pB2;case _6E2:return _4E2;case _8E2:return _4E2;case _aE2:return _4E2;case _cE2:return _4E2;case _eE2:return _4E2;case _gE2:return _4E2;case _wE2:return _4E2; case _yE2:return _4E2;case _AE2:return _4E2;case _CE2:return _4E2;case _EE2:return _4E2;case _GE2:return _4E2;case _5B2:return _4B2;case _6B2:return _4B2;case _7B2:return _4B2;case _8B2:return _4B2;case _9B2:return _4B2;case _aB2:return _4B2;case _bB2:return _4B2;case _cB2:return _4B2;case _dB2:return _4B2;case _eB2:return _4B2;case _fB2:return _4B2;case _gB2:return _4B2;default :return -1;}}function _P03(_e3,_3I){if((_e3&0xff00)==_YD2){return _3I;}else if((_e3&0xff00)==__D2){return _3I;}else if((_e3&0xff00)==_1E2){return _3I;}else if((_e3&0xff00)==_Tc2){ return _3I;}switch(_e3){case _2n:return 0;case _3n:return 0;case _pQ:return 0;case _bQ:return 0;case __A2:return 0;case _MF2:return 0;case _Tc2:return 0;case _YD2:return _3I;case _NF2:return 0;case _aI:return 0;case _WD2:return 0;case __D2:return _3I;case _1E2:return _3I;case _3E2:return 0;case _PF2:return _cG2;case _RF2:return _RF2&0xff;case _SF2:return _SF2&0xff;case _TF2:return _TF2&0xff;case _UF2:return _UF2&0xff;case _VF2:return _VF2&0xff;case _WF2:return _WF2&0xff;case _QF2:return _dG2&0xff;case _jB2:return _iB2;case _lB2:return _kB2;case _nB2:return _mB2; case _4A2:return _gC2;case _6A2:return _hC2;case _jC2:return _iC2;case _lC2:return _kC2;case _nC2:return _mC2;case _pC2:return _oC2;case _In:return _qC2;case _sC2:return _rC2;case _Ec2:return _tC2;case _Tn:return _uC2;case _wC2:return _vC2;case _cA2:return _xC2;case _zC2:return _yC2;case _BC2:return _AC2;case _DC2:return _CC2;case _FC2:return _EC2;case _HC2:return _GC2;case _JC2:return _IC2;case _LC2:return _KC2;case _dA2:return _MC2;case _OC2:return _NC2;case _QC2:return _PC2;case _SC2:return _RC2;case _UC2:return _TC2;case _WC2:return _VC2;case _YC2:return _XC2; case __C2:return _ZC2;case _O5:return _vD2;case _k3:return _wD2;case _yD2:return _xD2;case _AD2:return _zD2;case _CD2:return _ND2;case _ED2:return _DD2;case _GD2:return _FD2;case _KD2:return _JD2;case _MD2:return _LD2;case _Ce1:return _ND2;case _ID2:return _HD2;case _PD2:return _OD2;case _RD2:return _QD2;case _zf1:return _zf1;case _Tc1:return _SD2;case _UD2:return _TD2;case _0D2:return _XF2;case _2D2:return _YF2;case _4D2:return _ZF2;case _6D2:return __F2;case _8D2:return _0G2;case _aD2:return _1G2;case _cD2:return _2G2;case _eD2:return _3G2;case _gD2:return _4G2; case _iD2:return _5G2;case _kD2:return _6G2;case _mD2:return _7G2;case _oD2:return _8G2;case _qD2:return _9G2;case _sD2:return _aG2;case _uD2:return _bG2;case _FA2:return _tB2;case _wA2:return _qB2;case _yA2:return _rB2;case _xA2:return _sB2;case _zA2:return _uB2;case _BA2:return _vB2;case _AA2:return _wB2;case _CA2:return _xB2;case _EA2:return _yB2;case _DA2:return _zB2;case _IA2:return _eC2;case _JA2:return _fC2;case _OA2:return __B2;case _1C2:return _0C2;case _3C2:return _2C2;case _PA2:return _4C2;case _6C2:return _5C2;case _8C2:return _7C2; case _QA2:return _9C2;case _bC2:return _aC2;case _dC2:return _cC2;case _GA2:return _AB2;case _HA2:return _BB2;case _6E2:return _5E2;case _8E2:return _7E2;case _aE2:return _9E2;case _cE2:return _bE2;case _eE2:return _dE2;case _gE2:return _fE2;case _wE2:return _vE2;case _yE2:return _xE2;case _AE2:return _zE2;case _CE2:return _BE2;case _EE2:return _DE2;case _GE2:return _FE2;case _5B2:return 0;case _6B2:return 1;case _7B2:return 2;case _8B2:return 3;case _9B2:return 4;case _aB2:return 5;case _bB2:return 6;case _cB2:return 7;case _dB2:return 8;case _eB2:return 9; case _fB2:return 10;case _gB2:return 11;default :return 0;}}_dg3.prototype._cU=function(_Lt){this._KA2._Gf(_Lt);var _BG=this;while(_BG!=null){_BG._9c3._Gf(_Lt);_BG=_BG._9F;}};_dg3.prototype._gU=function(_Lt){this._KA2.__S(_Lt);var _yg3=this;while(_yg3!=null){_yg3._9c3.__S(_Lt);_yg3=_yg3._9F;}};_dg3.prototype._zg3=function(_e3,_J3,_rg3){if(!this.Event[_e3|_J3])return;var _Vk=this._9c3._Vk;for(var i=0;i<_Vk.length;i++){var _1u=_Vk[i];this._N5(_e3,_J3,_1u,_1u,_rg3);}};function _TM2(){this._Ag3=[];this._ce2=[]; this.length=0;}_TM2.prototype._PZ=function(){return this._ce2;};_TM2.prototype._Gf=function(_f23){this.length++;this._Ag3[_f23._WF]=_f23;this._ce2[_f23._EQ]=_f23;};_TM2.prototype._E5=function(_kg3){return this._ce2[_kg3];};_TM2.prototype._vQ=function(_jg){if(!this._ce2[_jg])return false;else return true;};_TM2.prototype._Bg3=function(_kg3){var _BG=this._ce2[_kg3];if(!_BG){return "";}else {return _BG._WF;}};_TM2.prototype._Cg3=function(_N3){var _BG=this._Ag3[_N3];if(_BG!=null)return _BG._EQ;return -1; };_TM2.prototype._j3=function(_e3,_J3,_rg3){for(var _NF=0;_NF<_i3._ce2.length;_NF++){var _BG=_i3._ce2[_NF];if(_BG.Event[_e3|_J3]){_BG._zg3(_e3,_J3,_rg3);}}};_TM2.prototype._SN2=function(){var _Vk=this._ce2;for(var index=0;index<_Vk.length;index++){var _BG=_Vk[index];_BG._9F=_i3._E5(_BG._CQ);if(!_BG._9F)_BG._9F=null;for(var e=0;e<_BG.Event.length;e++){var _Fi=_BG.Event[e];if(_Fi){_BG._3A2[e]=true;}}}for(var index=0;index<_Vk.length;index++){var _w93=_Vk[index];var _BG=_w93._9F;while(_BG!=null){for(var e=0;e<_BG.Event.length; e++){var _Fi=_BG.Event[e];if(_Fi){_w93._3A2[e]=true;}}_BG=_BG._9F;}}};function GetWithArray(_kg3){var _Dg3=[];if((typeof _kg3==="object"&&!(_kg3 instanceof _Rt))&&!((_kg3 instanceof Array)||(_kg3 instanceof ArrayBuffer))){_Dg3[0]=_kg3;}else if(_kg3===_FQ){_Dg3=_t3._PZ();}else if((typeof _kg3==="undefined")){}else {_kg3=yyGetInt32(_kg3);var _BG=_i3._E5(_kg3);if(_BG!=null){_Dg3=_BG._9c3._Vk;}else {var _1u=_Hn._E5(_kg3);if(_1u!=null){_Dg3[0]=_1u;}}}var _q4=[];for(var _t6=0;_t6<_Dg3.length;++_t6){var _NF=_Dg3[_t6];if(_NF instanceof _iQ){ if(!_NF.marked&&_NF.active){_q4.push(_NF);}}else {_q4.push(_NF);}}return _q4;}function _Dl(){this._Vk=[];this.length=0;this._q8=0;this._Eg3=-1;}_Dl.prototype._E5=function(_J3){return this._Vk[_J3];};_Dl.prototype._Gf=function(_8V2){for(var i=0;i=_0K._D4()){return null; }return _0K._k11[index];};_0K._1K=function(name){for(var i=_0K._D4()-1;i>=0;--i){if(name==_0K._k11[i].name){return i;}}return -1;};_0K.prototype._oh3=function(){return this.index;};_0K.prototype._vT=function(_nU,_T31,_ph3){if(_nU===undefined)_nU=-1;if(_T31===undefined)_T31=true;if(_ph3===undefined)_ph3=null;var _Nq=(_ph3==null)?_Ro(_nU,_T31):_qh3(_nU,_T31,_ph3);if(_Nq==-1){return _Nq;}var _MH1=_o11[_Nq];_MH1._C11=this.index;_MH1._F11=(this.drawOrder==0);_MH1.globalSpaceParticles=this.globalSpaceParticles; for(var i=this.emitters.length-1;i>=0;--i){var _rh3=this.emitters[i];var _sh3=_G11[_rh3];var _th3=_Vp(_Nq);var _uh3=_MH1.emitters[_th3];_uh3.name=_sh3.name;_uh3.enabled=_sh3.enabled;_uh3.mode=_sh3.mode;_uh3._7l=_sh3._7l;_uh3._J11=_sh3._J11;_uh3._K11=_sh3._K11;_uh3.shape=_sh3.shape;_uh3._RZ=_sh3._RZ;_uh3._TZ=_sh3._TZ;_uh3._SZ=_sh3._SZ;_uh3._UZ=_sh3._UZ;_uh3._N11=_sh3._N11;_M31(_Nq,_th3,_sh3.delayMin,_sh3.delayMax,_sh3.delayUnit);_Q31(_Nq,_th3,_sh3.intervalMin,_sh3.intervalMax,_sh3.intervalUnit);if(!_uh3.enabled)continue; if(_uh3.mode==_Hg3){_4q(_Nq,_th3,_sh3._N11,_sh3._7l);}else if(_uh3._9h3<=0.0){_2q(_Nq,_th3,_sh3._N11,_sh3._7l);}}return _Nq;};function _Cm(_Sc){var _e4=_TX();return _e4*_Sc;}function _vh3(_wh3,_xh3,_yh3){var _qv=_xh3-_wh3;if(_qv<=0)return _wh3;var _N6=0.0;var _un=0.0;switch(_yh3){case _Yp:_un=_wh3+_Cm(1)*_qv;break;//Gaussian distribution, SD = 1, cutoff @ +/- 3 case _Xg3:{do {_N6=(_Cm(1)-0.5)*6.0;}while((exp(-(_N6*_N6)*0.5)<=_Cm(1)));_un=_wh3+((_N6+3.0)*(1.0/6.0))*_qv;}break;//Inverse Gaussian distribution, SD = 1, cutoff @ +/- 3 case _Yg3:{ do {_N6=(_Cm(1)-0.5)*6.0;}while(!(exp(-(_N6*_N6)*0.5)>_Cm(1)));if(_N6<0.0)_N6+=6.0;_un=_wh3+(_N6*(1.0/6.0))*_qv;}break;default :_un=_wh3+_Cm(1)*_qv;}return _un;}function _zh3(_lj,_Sc){var _5_;if(_lj==0){if(_Sc>0){_5_=270;}else if(_Sc<0){_5_=90;}else {_5_=0;}}else {var _2M=180.0*(Math.atan2(_Sc,_lj))/Math.PI;if(_2M<=0){_5_=-_2M;}else {_5_=360.0-_2M;}}return _5_-360.0*Math.floor(_5_/360.0);}function _Ah3(_qm,_Bh3){return _Bh3*Math.cos(_qm*Math.PI/180.0);}function _Ch3(_qm,_Bh3){return -_Bh3*Math.sin(_qm*Math.PI/180.0); }function _Dh3(_Eh3){var _Fh3=_u11[_Eh3._N11];{if(_Eh3._dh3<=0||_Eh3._eh3<=0){switch(_Fh3._5h3){case _Rg3:_Eh3.color=_Fh3._g21[0];break;case _Sg3:_Eh3.color=_Fh3._g21[0];break;case _Tg3:_Eh3.color=_Fh3._g21[0];break;case _Ug3:{var _e4=~~(_vh3(_Fh3._g21[0],_Fh3._g21[1],_Yp));var _f4=~~(_vh3(_Fh3._g21[2],_Fh3._g21[3],_Yp));var _g4=~~(_vh3(_Fh3._g21[4],_Fh3._g21[5],_Yp));_Eh3.color=(_e4<<16)+(_f4<<8)+_g4;}break;case _Vg3:{var h=~~(_vh3(_Fh3._g21[0],_Fh3._g21[1],_Yp));var _ni=~~(_vh3(_Fh3._g21[2],_Fh3._g21[3],_Yp)); var _Y4=~~(_vh3(_Fh3._g21[4],_Fh3._g21[5],_Yp));_Eh3.color=0xffffff;}break;case _Wg3:_Eh3.color=_Qc(_0I(_Fh3._g21[0],_Fh3._g21[1],_Cm(1)));break;}}else {switch(_Fh3._5h3){case _Sg3:{var _ue=_Eh3._dh3/_Eh3._eh3;if(_ue>1)_ue=1;_Eh3.color=_0I((_Fh3._g21[0]),(_Fh3._g21[1]),_ue);}break;case _Tg3:{var _ue=2.0*_Eh3._dh3/_Eh3._eh3;if(_ue>2)_ue=2;if(_ue<1){_Eh3.color=_0I(_Fh3._g21[0],_Fh3._g21[1],_ue);}else {_Eh3.color=_0I(_Fh3._g21[1],_Fh3._g21[2],_ue-1);}}break;}}}}function _R61(_m21,_q5,_r5,_y21){var _un=new _bh3; var _Gh3=_u11[_y21];if(_Gh3==null||_Gh3==undefined)return null;_un._ch3=true;_un._N11=_y21;_un.x=_q5;_un.y=_r5;_un.speed=_vh3(_Gh3._121,_Gh3._221,0);_un._5_=_vh3(_Gh3._521,_Gh3._621,0);_un._071=_vh3(_Gh3._b21,_Gh3._c21,0);_un._eh3=_vh3(_Gh3._W11,_Gh3._X11,0);_un._dh3=0;_un.color=0xffffff;_Dh3(_un);_un.alpha=_Gh3._h21;var random=Math.random();_un._fh3=_Gh3.sizeMinX+((_Gh3.sizeMaxX-_Gh3.sizeMinX)*random);_un._gh3=_Gh3.sizeMinY+((_Gh3.sizeMaxY-_Gh3.sizeMinY)*random);_un._k21=_Gh3._k21;if(_Gh3._R11){_un._O11=_Cm(10000); }else {_un._O11=_Gh3._O11;}if(_m21.globalSpaceParticles){_un._5_+=_oM2(Math.atan2(_m21._783._v6[_6B],_m21._783._v6[_5B]));}_un._hh3=_Cm(100000);return _un;}function _5p(){var _k9=_u11.length;_u11[_k9]=new _3h3();return _k9;}function _D21(_t4){_t4=yyGetInt32(_t4);var _Hh3=_u11[_t4];if(_Hh3==null||_Hh3==undefined)return false;_u11[_t4]=null;return true;}function _F21(_t4){_t4=yyGetInt32(_t4);var _Hh3=_u11[_t4];if(_Hh3==null||_Hh3==undefined)return false;_u11[_t4]._Wf();return true;}function _Ih3(){_u11=[];}function _E21(_t4){ var _Hh3=_u11[yyGetInt32(_t4)];if(_Hh3==null||_Hh3==undefined)return false;return true;}function _7p(_t4,_Zo){var _Hh3=_u11[yyGetInt32(_t4)];if(_Hh3==null||_Hh3==undefined)return;_Hh3.shape=yyGetInt32(_Zo);_Hh3._MU=-1;}function _cp(_t4,_q3,_E7,_H21,_Jh3){var _Hh3=_u11[yyGetInt32(_t4)];if(_Hh3==null||_Hh3==undefined)return;_Hh3._MU=yyGetInt32(_q3);_Hh3._P11=yyGetBool(_E7);_Hh3._Q11=yyGetBool(_H21);_Hh3._R11=yyGetBool(_Jh3);}function _J21(_t4,_cn){var _Hh3=_u11[yyGetInt32(_t4)];if(_Hh3==null||_Hh3==undefined)return; _Hh3._O11=yyGetInt32(_cn);}function _8p(_t4,_Kh3,_Lh3,_Mh3,_Nh3){var _Hh3=_u11[yyGetInt32(_t4)];if(_Hh3==null||_Hh3==undefined)return;_Hh3.sizeMinX=yyGetReal(_Kh3);_Hh3.sizeMaxX=yyGetReal(_Lh3);_Hh3._S11=yyGetReal(_Mh3);_Hh3._U11=yyGetReal(_Nh3);_Hh3.sizeMinY=yyGetReal(_Kh3);_Hh3.sizeMaxY=yyGetReal(_Lh3);_Hh3._T11=yyGetReal(_Mh3);_Hh3._V11=yyGetReal(_Nh3);}function _O21(_t4,_Kh3,_Lh3,_Mh3,_Nh3){var _Hh3=_u11[yyGetInt32(_t4)];if(_Hh3==null||_Hh3==undefined)return;_Hh3.sizeMinX=yyGetReal(_Kh3);_Hh3.sizeMaxX=yyGetReal(_Lh3); _Hh3._S11=yyGetReal(_Mh3);_Hh3._U11=yyGetReal(_Nh3);}function _P21(_t4,_Kh3,_Lh3,_Mh3,_Nh3){var _Hh3=_u11[yyGetInt32(_t4)];if(_Hh3==null||_Hh3==undefined)return;_Hh3.sizeMinY=yyGetReal(_Kh3);_Hh3.sizeMaxY=yyGetReal(_Lh3);_Hh3._T11=yyGetReal(_Mh3);_Hh3._V11=yyGetReal(_Nh3);}function _Q21(_t4,_co,_do){var _Hh3=_u11[yyGetInt32(_t4)];if(_Hh3==null||_Hh3==undefined)return;_Hh3._tR=yyGetReal(_co);_Hh3._uR=yyGetReal(_do);}function _qp(_t4,_Oh3,_Ph3){var _Hh3=_u11[yyGetInt32(_t4)];if(_Hh3==null||_Hh3==undefined)return; _Hh3._W11=yyGetInt32(_Oh3);_Hh3._X11=yyGetInt32(_Ph3);}function _Mp(_t4,_Qh3,_Rh3){var _Hh3=_u11[yyGetInt32(_t4)];if(_Hh3==null||_Hh3==undefined)return;_Hh3._021=yyGetInt32(_Qh3);_Hh3.__11=yyGetInt32(_Rh3);}function _Np(_t4,_Sh3,_Th3){var _Hh3=_u11[yyGetInt32(_t4)];if(_Hh3==null||_Hh3==undefined)return;_Hh3._Z11=yyGetInt32(_Sh3);_Hh3._Y11=yyGetInt32(_Th3);}function _xp(_t4,_Uh3,_Vh3,_Wh3,_Xh3){var _Hh3=_u11[yyGetInt32(_t4)];if(_Hh3==null||_Hh3==undefined)return;_Hh3._121=yyGetReal(_Uh3);_Hh3._221=yyGetReal(_Vh3); _Hh3._321=yyGetReal(_Wh3);_Hh3._421=yyGetReal(_Xh3);}function _yp(_t4,_Yh3,_Zh3,__h3,_0i3){var _Hh3=_u11[yyGetInt32(_t4)];if(_Hh3==null||_Hh3==undefined)return;_Hh3._521=yyGetReal(_Yh3);_Hh3._621=yyGetReal(_Zh3);_Hh3._721=yyGetReal(__h3);_Hh3._821=yyGetReal(_0i3);}function _t31(_t4,_1i3,_2i3,_3i3,_4i3,_5i3){var _Hh3=_u11[yyGetInt32(_t4)];if(_Hh3==null||_Hh3==undefined)return;_Hh3._b21=yyGetReal(_1i3);_Hh3._c21=yyGetReal(_2i3);_Hh3._d21=yyGetReal(_3i3);_Hh3._e21=yyGetReal(_4i3);_Hh3._f21=yyGetBool(_5i3); }function _Cp(_t4,_6i3,_7i3){var _Hh3=_u11[yyGetInt32(_t4)];if(_Hh3==null||_Hh3==undefined)return;_Hh3._921=yyGetReal(_6i3);_Hh3._a21=yyGetReal(_7i3);}function _531(_t4,__21,_031,_131,_231,_331,_431){var _Hh3=_u11[yyGetInt32(_t4)];if(_Hh3==null||_Hh3==undefined)return;_Hh3._5h3=_Ug3;_Hh3._g21[0]=yyGetInt32(__21);_Hh3._g21[1]=yyGetInt32(_031);_Hh3._g21[2]=yyGetInt32(_131);_Hh3._g21[3]=yyGetInt32(_231);_Hh3._g21[4]=yyGetInt32(_331);_Hh3._g21[5]=yyGetInt32(_431);}function _ip(_t4,_6q,_no){var _Hh3=_u11[yyGetInt32(_t4)]; if(_Hh3==null||_Hh3==undefined)return;_Hh3._5h3=_Wg3;_Hh3._g21[0]=_Qc(yyGetInt32(_6q));_Hh3._g21[1]=_Qc(yyGetInt32(_no));}function _c31(_t4,_631,_731,_831,_931,_a31,_b31){var _Hh3=_u11[yyGetInt32(_t4)];if(_Hh3==null||_Hh3==undefined)return;_Hh3._5h3=_Vg3;_Hh3._g21[0]=yyGetInt32(_631);_Hh3._g21[1]=yyGetInt32(_731);_Hh3._g21[2]=yyGetInt32(_831);_Hh3._g21[3]=yyGetInt32(_931);_Hh3._g21[4]=yyGetInt32(_a31);_Hh3._g21[5]=yyGetInt32(_b31);}function _U21(_t4,_8i3){var _Hh3=_u11[yyGetInt32(_t4)];if(_Hh3==null||_Hh3==undefined)return; _Hh3._5h3=_Rg3;_Hh3._g21[0]=_Qc(yyGetInt32(_8i3));}function _9p(_t4,_8i3,_9i3){var _Hh3=_u11[yyGetInt32(_t4)];if(_Hh3==null||_Hh3==undefined)return;_Hh3._5h3=_Sg3;_Hh3._g21[0]=_Qc(yyGetInt32(_8i3));_Hh3._g21[1]=_Qc(yyGetInt32(_9i3));}function _X21(_t4,_8i3,_ai3,_9i3){var _Hh3=_u11[yyGetInt32(_t4)];if(_Hh3==null||_Hh3==undefined)return;_Hh3._5h3=(_e8===null)?_Rg3:_Tg3;_Hh3._g21[0]=_Qc(yyGetInt32(_8i3));_Hh3._g21[1]=_Qc(yyGetInt32(_ai3));_Hh3._g21[2]=_Qc(yyGetInt32(_9i3));}function _e31(_t4,_bi3){var _Hh3=_u11[yyGetInt32(_t4)]; if(_Hh3==null||_Hh3==undefined)return;_bi3=yyGetReal(_bi3);_Hh3._h21=_bi3;_Hh3._i21=_bi3;_Hh3._j21=_bi3;}function _jp(_t4,_bi3,_ci3){var _Hh3=_u11[yyGetInt32(_t4)];if(_Hh3==null||_Hh3==undefined)return;_bi3=yyGetReal(_bi3);_ci3=yyGetReal(_ci3);_Hh3._h21=_bi3;_Hh3._i21=(_bi3+_ci3)/2.0;_Hh3._j21=_ci3;}function _h31(_t4,_bi3,_di3,_ci3){var _Hh3=_u11[yyGetInt32(_t4)];if(_Hh3==null||_Hh3==undefined)return;_Hh3._h21=yyGetReal(_bi3);_Hh3._i21=yyGetReal(_di3);_Hh3._j21=yyGetReal(_ci3);}function _S21(_t4,_R21){ var _Hh3=_u11[yyGetInt32(_t4)];if(_Hh3==null||_Hh3==undefined)return;_Hh3._k21=yyGetReal(_R21);}var _G11=[];var _ei3={};var _fi3=_Qg3;function _0O2(_mN2){var _k13=_mN2.PSEmitters;for(var i=0;i<_k13.length;++i){var _gi3=_k13[i];var _hi3=_k13[i];var _ii3=_5p();var type=_u11[_ii3];type._MU=_gi3.spriteId;type._O11=_gi3.headPosition;type._P11=_gi3.spriteAnimate;type._Q11=_gi3.spriteStretch;type._R11=_gi3.spriteRandom;type.shape=_gi3.texture;type.sizeMinX=_gi3.sizeMinX;type.sizeMaxX=_gi3.sizeMaxX;type.sizeMinY=_gi3.sizeMinY; type.sizeMaxY=_gi3.sizeMaxY;type._S11=_gi3.sizeIncreaseX;type._T11=_gi3.sizeIncreaseY;type._U11=_gi3.sizeWiggleX;type._V11=_gi3.sizeWiggleY;type._tR=_gi3.scaleX;type._uR=_gi3.scaleY;type._W11=_gi3.lifetimeMin;type._X11=_gi3.lifetimeMax;type._Y11=_gi3.spawnOnDeath;type._Z11=_gi3.spawnOnDeathCount;type.__11=_gi3.spawnOnUpdate;type._021=_gi3.spawnOnUpdateCount;type._121=_gi3.speedMin;type._221=_gi3.speedMax;type._321=_gi3.speedIncrease;type._421=_gi3.speedWiggle;type._521=_gi3.directionMin;type._621=_gi3.directionMax; type._721=_gi3.directionIncrease;type._821=_gi3.directionWiggle;type._921=_gi3.gravityForce;type._a21=_gi3.gravityDirection;type._b21=_gi3.orientationMin;type._c21=_gi3.orientationMax;type._d21=_gi3.orientationIncrease;type._e21=_gi3.orientationWiggle;type._f21=_gi3.orientationRelative;type._5h3=_Tg3;type._g21[0]=_gi3.startColour;type._g21[1]=_gi3.midColour;type._g21[2]=_gi3.endColour;type._h21=((_gi3.startColour>>24)&0xFF)/255.0;type._i21=((_gi3.midColour>>24)&0xFF)/255.0;type._j21=((_gi3.endColour>>24)&0xFF)/255.0; type._k21=_gi3.additiveBlend;var emitter=new _6h3();emitter.name=_hi3.pName;emitter.enabled=_hi3.enabled;emitter.mode=_hi3.mode;emitter._7l=_hi3.emitCount;emitter.delayMin=_hi3.delayMin;emitter.delayMax=_hi3.delayMax;emitter.delayUnit=_hi3.delayUnit;emitter.intervalMin=_hi3.intervalMin;emitter.intervalMax=_hi3.intervalMax;emitter.intervalUnit=_hi3.intervalUnit;emitter._J11=_hi3.emitRelative;emitter._K11=_hi3.distribution;emitter.shape=_hi3.shape;emitter._RZ=_hi3.regionX-_hi3.regionW*0.5;emitter._TZ=_hi3.regionY-_hi3.regionH*0.5; emitter._SZ=_hi3.regionX+_hi3.regionW*0.5;emitter._UZ=_hi3.regionY+_hi3.regionH*0.5;emitter._N11=_ii3;_G11[i]=emitter;}return true;}function _Vp(_q11){_q11=yyGetInt32(_q11);if(!_n21(_q11))return -1;var _ji3=_o11[_q11];var _k9=0;var emitter=null;while(_k9<_ji3.emitters.length){var e=_ji3.emitters[_k9];if(!e._4n&&!e._8h3){emitter=e;break;}++_k9;}if(!emitter){emitter=new _6h3();_ji3.emitters.push(emitter);}emitter._4n=true;_H31(_q11,_k9);return _k9;}function __p(_q11,_t4){_q11=yyGetInt32(_q11);_t4=yyGetInt32(_t4); if(!_G31(_q11,_t4))return false;var emitter=_o11[_q11].emitters[_t4];emitter._4n=false;emitter._8h3=true;return true;}function _E31(_q11){_q11=yyGetInt32(_q11);if(!_n21(_q11))return false;for(var i=_o11[_q11].emitters.length-1;i>=0;--i){__p(_q11,i);}return true;}function _F31(_q11,_t4,_Nz){_q11=yyGetInt32(_q11);_t4=yyGetInt32(_t4);if(!_n21(_q11))return;if(!_G31(_q11,_t4))return;_o11[_q11].emitters[_t4].enabled=yyGetBool(_Nz);}function _G31(_q11,_t4){_q11=yyGetInt32(_q11);_t4=yyGetInt32(_t4);if(!_n21(_q11))return false; var _ji3=_o11[_q11];if(_t4<0||_t4>=_ji3.emitters.length)return false;var _ki3=_ji3.emitters[_t4];if(!_ki3._4n)return false;return true;}function _H31(_q11,_t4){_q11=yyGetInt32(_q11);_t4=yyGetInt32(_t4);if(!_G31(_q11,_t4))return false;_o11[_q11].emitters[_t4]._kK();}function _Xp(_q11,_t4,_Qp,_Rp,_Sp,_Tp,_Zo,_li3){_q11=yyGetInt32(_q11);_t4=yyGetInt32(_t4);if(!_G31(_q11,_t4))return;var _ki3=_o11[_q11].emitters[_t4];_ki3._RZ=yyGetReal(_Qp);_ki3._SZ=yyGetReal(_Rp);_ki3._TZ=yyGetReal(_Sp);_ki3._UZ=yyGetReal(_Tp); _ki3.shape=yyGetInt32(_Zo);_ki3._K11=yyGetInt32(_li3);}function _mi3(_m21,_Bd1,_q5,_r5,_y21,_TH,_ni3,_3d){var particles=_Bd1.particles;_ni3=(_ni3===undefined)?false:_ni3;_3d=(_3d===undefined)?0xFFFFFF:_3d;if(_ni3){_3d=_Qc(yyGetInt32(_3d));}_TH=yyGetInt32(_TH);_y21=yyGetInt32(_y21);for(var i=0;i<_TH;i++){var index=particles.length;particles[index]=_R61(_m21,yyGetReal(_q5),yyGetReal(_r5),_y21);if(_ni3){particles[index].color=_3d;}}}function _oi3(_m21,_Bd1,_q5,_r5,_m8,_n8,_Zo,_yh3,_pi3,_TH){if(_Bd1._J11){ _TH=_m8*_n8*_TH*0.00003;}if(_TH<0){var _e4=_Cm(-_TH)|0;if(_e4==0){_TH=1;}else {return;}}var _qi3=_TH-~~_TH;_TH=~~_TH;if(_qi3>0.0&&Math.random()<=_qi3){_TH+=1.0;}if(_TH==0.0)return;var _Wk=new _Tz(_q5,_r5,0);var right=new _Tz(_m8,0,0);var _ke3=new _Tz(0,_n8,0);if(_m21.globalSpaceParticles){_Wk._pA+=_m21._D11;_Wk._qA+=_m21._E11;_Wk=_m21._783._0N(_Wk);right._pA=(_m21._783._v6[_5B]*_m8);right._qA=(_m21._783._v6[_9B]*_m8);right._rA=(_m21._783._v6[_dB]*_m8);_ke3._pA=(_m21._783._v6[_6B]*_n8);_ke3._qA=(_m21._783._v6[_0A]*_n8); _ke3._rA=(_m21._783._v6[_eB]*_n8);}for(var i=0;i<_TH;++i){var _N6,_P6;var _ri3=false;while(!_ri3){_N6=_vh3(0.0,1.0,_yh3);_P6=_vh3(0.0,1.0,_yh3);if((_yh3==_Yg3)&&(_Zo!=_1h3)){if(_Cm()<0.5){_N6=_vh3(0.0,1.0,0);}else {_P6=_vh3(0.0,1.0,0);}}switch(_Zo){case __g3:{var _db=_N6-0.5;var _eb=_P6-0.5;if((_db*_db+_eb*_eb)<=0.25){_ri3=true;}}break;case _0h3:if((Math.abs(_N6-0.5)+Math.abs(_P6-0.5))<=0.5){_ri3=true;}break;case _Zg3:case _1h3:default :_ri3=true;break;}}var _si3;var _ti3;if(_Zo==_1h3){_si3=_Wk._pA+right._pA*_N6+_ke3._pA*_N6; _ti3=_Wk._qA+right._qA*_N6+_ke3._qA*_N6;}else {_si3=_Wk._pA+right._pA*_N6+_ke3._pA*_P6;_ti3=_Wk._qA+right._qA*_N6+_ke3._qA*_P6;}_mi3(_m21,_Bd1,_si3,_ti3,_pi3,1);}}function _2q(_q11,_t4,_pi3,_TH){_q11=yyGetInt32(_q11);_t4=yyGetInt32(_t4);if(!_G31(_q11,_t4))return;var _MH1=_o11[_q11];var emitter=_MH1.emitters[_t4];if(!emitter.enabled)return;var _ui3=emitter._SZ-emitter._RZ;var _vi3=emitter._UZ-emitter._TZ;_pi3=yyGetInt32(_pi3);_TH=yyGetReal(_TH);_oi3(_MH1,emitter,emitter._RZ,emitter._TZ,_ui3,_vi3,emitter.shape, emitter._K11,_pi3,_TH);}function _4q(_q11,_t4,_pi3,_TH){_q11=yyGetInt32(_q11);_t4=yyGetInt32(_t4);if(!_G31(_q11,_t4))return;var _ki3=_o11[_q11].emitters[_t4];_ki3._N11=yyGetInt32(_pi3);_ki3._7l=yyGetReal(_TH);}function _wi3(_Bd1){if(_Bd1.delayMin==0&&_Bd1.delayMax==0){_Bd1._9h3=0;return;}_Bd1._9h3=(_Bd1.delayUnit==1)?irandom_range(~~_Bd1.delayMin,~~_Bd1.delayMax):random_range(_Bd1.delayMin,_Bd1.delayMax);}function _M31(_q11,_t4,_J31,_K31,_L31){if(!_G31(_q11,_t4))return;var _ki3=_o11[_q11].emitters[_t4]; _ki3.delayMin=yyGetInt32(_J31);_ki3.delayMax=yyGetReal(_K31);_ki3.delayUnit=yyGetReal(_L31);_wi3(_ki3);}function _xi3(_Bd1){if(_Bd1.intervalMin==0&&_Bd1.intervalMax==0){_Bd1._ah3=0;return;}_Bd1._ah3=(_Bd1.intervalUnit==1)?irandom_range(~~_Bd1.intervalMin,~~_Bd1.intervalMax):random_range(_Bd1.intervalMin,_Bd1.intervalMax);}function _Q31(_q11,_t4,_N31,_O31,_P31){if(!_G31(_q11,_t4))return;var _ki3=_o11[_q11].emitters[_t4];_ki3.intervalMin=yyGetInt32(_N31);_ki3.intervalMax=yyGetReal(_O31);_ki3.intervalUnit=yyGetReal(_P31); _xi3(_ki3);}function _R31(_q11,_t4,_Nz){_q11=yyGetInt32(_q11);_t4=yyGetInt32(_t4);if(!_G31(_q11,_t4))return;_o11[_q11].emitters[_t4]._J11=yyGetBool(_Nz);}function _z21(_q11,_q5,_r5,_y21,_TH){var _MH1=_o11[_q11];var _th3=-1;for(var i=0;i<_MH1.emitters.length;++i){var emitter=_MH1.emitters[i];if(emitter.enabled&&emitter._4n){_th3=i;break;}}if(_th3==-1){_th3=_Vp(_q11);}_mi3(_MH1,_MH1.emitters[_th3],_q5,_r5,_y21,_TH);}function _A21(_q11,_q5,_r5,_y21,_3d,_TH){if(!_n21(_q11)){console.log("part_particles_create :: particle system does not exist!"); return;}if(!_E21(_y21)){console.log("part_particles_create :: particle type does not exist!");return;}var _MH1=_o11[_q11];var _th3=-1;for(var i=0;i<_MH1.emitters.length;++i){var emitter=_MH1.emitters[i];if(emitter.enabled&&emitter._4n){_th3=i;break;}}if(_th3==-1){_th3=_Vp(_q11);}_mi3(_MH1,_MH1.emitters[_th3],_q5,_r5,_y21,_TH,true,_3d);}function _B21(_q11,_q5,_r5,_l21){if(!_n21(_q11)){console.log("part_particles_burst :: particle system does not exist!");return;}var _Fb1=_0K._E5(_l21);if(_Fb1==null){console.log("part_particles_burst :: particle system asset does not exist!"); return;}var _MH1=_o11[_q11];var _yi3=_Fb1.emitters.length;var _zi3=[];for(var i=0;i<_MH1.emitters.length;++i){if(_MH1.emitters[i].enabled)_zi3.push(i);}for(var i=_yi3-_zi3.length;i>0;--i)_zi3.push(_Vp(_q11));for(var i=0;i<_yi3;++i){var _rh3=_Fb1.emitters[_yi3-i-1];var emitter=_G11[_rh3];if(!emitter.enabled)continue;var _ui3=emitter._SZ-emitter._RZ;var _vi3=emitter._UZ-emitter._TZ;_oi3(_MH1,_MH1.emitters[_zi3[i]],_q5+emitter._RZ,_r5+emitter._TZ,_ui3,_vi3,emitter.shape,emitter._K11,emitter._N11,emitter._7l); }}function _Xo(_q11){var _ji3=_o11[yyGetInt32(_q11)];if(_ji3==null||_ji3==undefined)return false;for(var i=_ji3.emitters.length-1;i>=0;--i){var _ki3=_ji3.emitters[i];_ki3.particles=[];}return true;}function _Ai3(_Bi3,_J3){_Bi3.splice(_J3,1);}function _C21(_q11){var _ji3=_o11[yyGetInt32(_q11)];if(_ji3==null||_ji3==undefined)return 0;var _q8=0;for(var i=_ji3.emitters.length-1;i>=0;--i){var _ki3=_ji3.emitters[i];_q8+=_ki3.particles.length;}return _q8;}function _Ci3(_nU){var _Di3=null;if(_nU==-1){_Di3=new _lS();_3u._NT(_t3, 0,_Di3,true,true);}else {var room=_3u._4u();if(room!=null){layer=_3u._MQ(room,_nU);if(layer!=null){_Di3=new _lS();if(room==_t3){var _pb=_3u._HT(_t3,layer,_Di3,true);if(_pb==-1){_3u._eT(_t3,_Di3._ne,true);_Di3=null;}}else {_3u._NT(_t3,0,_Di3,true,true);}}}}return _Di3;}function _qh3(_nU,_T31,_Ei3){var index;for(index=0;index<_o11.length;++index){if(_o11[index]==null){break;}}_o11[index]=new _ih3();_o11[index].id=index;_o11[index]._mh3=-1;_So(index,false);_Ei3._mS=index;_o11[index]._mh3=_Ei3._ne;_o11[index]._nh3=!_T31; if(_nU!=-1){_o11[index].depth=_Ei3._8P.depth;}return index;}function _Ro(_nU,_T31){if(_nU==undefined)_nU=-1;else _nU=yyGetInt32(_nU);if(_T31==undefined)_T31=true;else _T31=yyGetBool(_T31);var _Di3=_Ci3(_nU);if(_Di3==null)return -1;return _qh3(_nU,_T31,_Di3);}function _n21(_q11){var _ji3=_o11[yyGetInt32(_q11)];if(_ji3==null||_ji3==undefined)return false;return true;}function _Vo(_q11){_q11=yyGetInt32(_q11);var _ji3=_o11[_q11];if(_ji3==null||_ji3==undefined)return;_So(_q11,false);if(_v3){_3u._eT(_t3,_o11[_q11]._mh3, true);}_o11[_q11]=null;return true;}function _Fi3(){for(var i=0;i<_o11.length;i++){_Vo(i);}_o11=[];}function _So(_q11,_Gi3){_q11=yyGetInt32(_q11);var _ji3=_o11[_q11];if(_ji3==null||_ji3==undefined)return;_ji3.emitters=[];_ji3._F11=true;_ji3.depth=0.0;_ji3._D11=0.0;_ji3._E11=0.0;_ji3._kh3=true;_ji3._lh3=true;_ji3.color=_Pn;_ji3.alpha=1.0;_ji3.angle=0.0;_ji3.globalSpaceParticles=false;_ji3._783=new _zz();var _6P=null;var _Hi3=null;var _5u=_3u._lT(_t3,_ji3._mh3);if(_5u!=null){_6P=_5u.layer;_Hi3=_5u._sd;}if(!_Gi3||(_6P!=null&&_6P.depth==0))return; _3u._eT(_t3,_ji3._mh3,true);var _Di3=new _lS();{_3u._NT(_t3,0,_Di3,true,true);_ji3._mh3=_Di3._ne;_Di3._mS=_q11;}}function _U31(_q11){if(!_n21(_q11))return -1;var _6P=null;var _kT=_3u._lT(_t3,_o11[_q11]._mh3);if(_kT==null)return -1;_6P=_kT.layer;if(_6P==null){return -1;}return _6P._ne;}function _V31(_q11,_nU){if(!_n21(_q11))return;if(_v3){_3u._eT(_t3,_o11[_q11]._mh3,true);var _Di3=new _lS();_Di3._mS=_q11;var room=_3u._4u();if(room!=null){var layer=_3u._MQ(room,_nU);if(layer!=null){if(room==_t3){_o11[_q11]._mh3=_3u._HT(_t3, layer,_Di3,true);_o11[_q11].depth=layer.depth;if(_o11[_q11]._mh3==-1){_3u._eT(_t3,_Di3._ne,true);}}}if(_o11[_q11]._mh3==-1){_o11[_q11]._mh3=_3u._NT(_t3,_o11[_q11].depth,_Di3,true,true);}}}}function _W31(_q11,_Nz){if(!_n21(_q11))return;_o11[_q11].globalSpaceParticles=_Nz;}function _Ii3(){for(var _Nq=0;_Nq<_o11.length;_Nq++){if(!_o11.hasOwnProperty(_Nq))continue;var _ji3=_o11[_Nq];if(_ji3){_ji3.particles=[];}}}function _p21(_q11,_o21){var _ji3=_o11[yyGetInt32(_q11)];if(_ji3==null||_ji3==undefined)return; _ji3._F11=_o21;}function _To(_q11,_Al){_q11=yyGetInt32(_q11);var _ji3=_o11[_q11];if(_ji3==null||_ji3==undefined)return;_ji3.id=_q11;_ji3.depth=yyGetReal(_Al);_hM2.push({_Ji3:_ji3,type:0});}function _q21(_q11,_Ms,_u9){var _ji3=_o11[yyGetInt32(_q11)];if(_ji3==null||_ji3==undefined)return;_ji3.color=yyGetInt32(_Ms);_ji3.alpha=yyGetReal(_u9);}function _r21(_q11,_q5,_r5){var _ji3=_o11[yyGetInt32(_q11)];if(_ji3==null||_ji3==undefined)return;_ji3._D11=yyGetReal(_q5);_ji3._E11=yyGetReal(_r5);}function _s21(_q11, _u5){var _ji3=_o11[yyGetInt32(_q11)];if(_ji3==null||_ji3==undefined)return;_ji3.angle=yyGetReal(_u5);}function _u21(_q11,_t21){var _ji3=_o11[yyGetInt32(_q11)];if(_ji3==null||_ji3==undefined)return;_ji3._kh3=yyGetBool(_t21);}function _v21(_q11,_t21){var _ji3=_o11[yyGetInt32(_q11)];if(_ji3==null||_ji3==undefined)return;_ji3._lh3=yyGetBool(_t21);}function _Ki3(_q11,_Li3){var i=0;var _E6=0;var _ji3=_o11[_q11];var _ki3=_ji3.emitters[_Li3];var _Mi3=_ki3.particles;while(i<_Mi3.length){var _xV=_Mi3[i];var _Gh3=_u11[_xV._N11]; _xV._dh3++;if(_xV._dh3>=_xV._eh3){_E6=_Gh3._Z11;if(_E6<0){if(_Cm(-_E6)==0)_E6=1;}if(_E6>0){_mi3(_ji3,_ki3,_xV.x,_xV.y,_Gh3._Y11,_E6);}_Mi3.splice(i,1);}else {_E6=_Gh3._021;if(_E6<0){if(_Cm(-_E6)==0)_E6=1;}if(_E6>0){_mi3(_ji3,_ki3,_xV.x,_xV.y,_Gh3.__11,_E6);}i++;}}}function _Ni3(_q11,_Li3){var i=0;var __5=0;var hspeed=0.0;var vspeed=0.0;var _vh=0.0;var __4=0.0;var _Oi3=0.0;var _dL1=0.0;var _Pi3=0.0;var _Qi3=0.0;var _Ri3=0.0;var _En2=0.0;var _Si3=0.0;var _ji3=_o11[_q11];var _Mi3=_ji3.emitters[_Li3].particles;for(i=0; i<_Mi3.length;i++){var _xV=_Mi3[i];var _Gh3=_u11[_xV._N11];_xV.speed=_xV.speed+_Gh3._321;if(_xV.speed<0)_xV.speed=0;_xV._5_=_xV._5_+_Gh3._721;_xV._071=_xV._071+_Gh3._d21;_Qi3=0;_Ri3=0;if((_Gh3._921!=0)||(_ji3.acount>0)){hspeed=_Ah3(_xV._5_,_xV.speed);vspeed=_Ch3(_xV._5_,_xV.speed);if(_Gh3._921!=0){_vh=_Ah3(_Gh3._a21,_Gh3._921);__4=_Ch3(_Gh3._a21,_Gh3._921);hspeed=hspeed+_vh;vspeed=vspeed+__4;}_xV._5_=_zh3(hspeed,vspeed);_xV.speed=Math.sqrt(hspeed*hspeed+vspeed*vspeed);}_En2=((_xV._dh3+3*_xV._hh3)%24)/6.0; if(_En2>2.0){_En2=4.0-_En2;}_En2=_En2-1.0;_Si3=((_xV._dh3+4*_xV._hh3)%20)/5.0;if(_Si3>2.0){_Si3=4.0-_Si3;}_Si3=_Si3-1.0;hspeed=_Ah3(_xV._5_+_En2*_Gh3._821,_xV.speed+_Si3*_Gh3._421);vspeed=_Ch3(_xV._5_+_En2*_Gh3._821,_xV.speed+_Si3*_Gh3._421);_xV.x=_xV.x+hspeed+_Qi3;_xV.y=_xV.y+vspeed+_Ri3;}}function _Ti3(_q11,_Li3){var _ji3=_o11[_q11];var _Mi3=_ji3.emitters[_Li3].particles;for(var i=0;i<_Mi3.length;i++){var _xV=_Mi3[i];var _Gh3=_u11[_xV._N11];_xV._fh3=_xV._fh3+_Gh3._S11;if(_xV._fh3<0){_xV._fh3=0;}_xV._gh3=_xV._gh3+_Gh3._T11; if(_xV._gh3<0){_xV._gh3=0;}_Dh3(_xV);var _Ui3;if(_xV._eh3>0){_Ui3=2.0*_xV._dh3/_xV._eh3;}else {_Ui3=1;}if(_Ui3<1){_xV.alpha=_Gh3._h21*(1.0-_Ui3)+_Gh3._i21*_Ui3;}else {_xV.alpha=_Gh3._i21*(2.0-_Ui3)+_Gh3._j21*(_Ui3-1);}}}function _w21(_q11){_q11=yyGetReal(_q11);var _ji3=_o11[_q11];if(_ji3==null||_ji3==undefined)return 0;var _Vi3=_ji3.emitters;if(_Vi3){for(var i=0;i<_Vi3.length;i++){var _ki3=_Vi3[i];if(!_ki3.enabled)continue;if(!_ki3._4n&&!_ki3._8h3)continue;_Ki3(_q11,i);_Ni3(_q11,i);_Ti3(_q11,i);if(_ki3._9h3>0.0){ _ki3._9h3-=(_ki3.delayUnit==1)?1.0:(g_pBuiltIn.delta_time*0.000001);if(_ki3._9h3<=0.0){_2q(_q11,i,_ki3._N11,_ki3._7l);}continue;}if(_ki3.mode!=_Ig3){_ki3._ah3-=(_ki3.intervalUnit==1)?1.0:(g_pBuiltIn.delta_time*0.000001);if(_ki3._ah3<=0.0){_2q(_q11,i,_ki3._N11,_ki3._7l);_xi3(_ki3);}}if(_ki3.particles.length==0){_ki3._8h3=false;}}}}function _Wi3(){for(var i=0;i<_o11.length;i++){var _ji3=_o11[i];if(_ji3!=null){if(_ji3._kh3){_w21(i);}}}}function _Xi3(_q11,_Lw){if(!_n21(_q11))return;_o11[_q11]._783=new _zz(_Lw); }function _Yi3(_Zi3,_Eh3,_941,_a41,_Ms,_u9){_Ms=(_Ms===undefined)?0xffffff:_Ms;_u9=(_u9===undefined)?1.0:_u9;var __i3=_Zi3.color;var _0j3=_Zi3.alpha;var _On=null;var _E4=null;if(_Eh3._eh3<=0)return;var _Gh3=_u11[_Eh3._N11];_On=_D5._E5(_Gh3._MU);if(_On==null){var shape=_Gh3.shape;if((shape>=0)&&(shape<_fL2.length)){_E4=_fL2[shape];if(_E4==null){return;}}else {return;}}var _t6;if(_E4!=null){}else {if(_On._3v<=0)return;if(!_Gh3._P11){_t6=_Eh3._O11;}else if(_Gh3._Q11){_t6=_Eh3._O11+(_On._E6*_Eh3._dh3/_Eh3._eh3); }else {_t6=_Eh3._O11+_Eh3._dh3;}}var _e4=((_Eh3._dh3+2*_Eh3._hh3)%16)/4.0;if(_e4>2.0)_e4=4.0-_e4;_e4=_e4-1.0;var _Io2=_Eh3._071;if(_Gh3._f21)_Io2=_Io2+_Eh3._5_;_Io2=_Io2+_e4*_Gh3._e21;_e4=((_Eh3._dh3+_Eh3._hh3)%16)/4.0;if(_e4>2.0)_e4=4.0-_e4;_e4=_e4-1.0;var _VZ=_Eh3._fh3+_e4*_Gh3._U11;var _WZ=_Eh3._gh3+_e4*_Gh3._V11;var _1j3=_1I(__i3,_1I(_Eh3.color,_Ms));var _2j3=_0j3*_Eh3.alpha*_u9;if(_E4!=null){var _tR,_uR,_071;var _i43=_Gh3._tR*_VZ;var _j43=_Gh3._uR*_WZ;var _1P=_Io2;var _3j3=~~(_Eh3.x+_941);var _4j3=~~(_Eh3.y+_a41); if(_i43==1&&_j43==1&&_1P==0&&_1j3==0xffffff){_Cs(_E4,_3j3,_4j3,_2j3);}else {_Ns(_E4,0,0,_3j3,_4j3,_i43,_j43,_1P*0.017453293,_1j3,_1j3,_1j3,_1j3,_2j3);}}else {_On._19(_t6,_Eh3.x+_941,_Eh3.y+_a41,_u11[_Eh3._N11]._tR*_VZ,_u11[_Eh3._N11]._uR*_WZ,_Io2,_1j3,_2j3);}}function _x21(_q11,_Ms,_u9){_Ms=(_Ms===undefined)?0xffffff:_Ms;_u9=(_u9===undefined)?1.0:_u9;var _ji3=_o11[yyGetInt32(_q11)];if(_ji3==null||_ji3==undefined)return;var src,_ba;if(_e8!=null){src=_5j3;_ba=_6j3;}var additiveBlend=false;var _7j3=function(_Nz){ if(_Nz&&!additiveBlend){_hM(1);additiveBlend=true;}else if(!_Nz&&additiveBlend){if(_e8!=null){_jM(src,_ba);}else {_hM(0);}additiveBlend=false;}};var _e_,_f_,_8j3;if(_ji3.globalSpaceParticles){_e_=0;_f_=0;_8j3=_2B(_VA);_UA(_VA,new _zz());}else {_e_=_ji3._D11;_f_=_ji3._E11;}for(var e=0;e<_ji3.emitters.length;++e){var _ki3=_ji3.emitters[e];if(!_ki3.enabled)continue;var _Mi3=_ki3.particles;if(_ji3._F11){for(var i=0;i<_Mi3.length;i++){var _xV=_Mi3[i];_7j3(_xV._k21);_Yi3(_ji3,_xV,_e_,_f_,_Ms,_u9);}}else {for(var i=_Mi3.length-1; i>=0;i--){var _xV=_Mi3[i];_7j3(_xV._k21);_Yi3(_ji3,_xV,_e_,_f_,_Ms,_u9);}}}if(_ji3.globalSpaceParticles){_UA(_VA,_8j3);}_7j3(false);}function _9j3(_ZX){for(var i=0;i<_o11.length;i++){var _ji3=_o11[i];if(_ji3!=null){if(_ji3._lh3){if(Math.abs(_ji3.depth-_ZX)<0.01)_x21(i);}}}}function _aj3(){if(!_v3)return;if(_2h3.length<_o11.length){var _bj3=_2h3.length;for(var i=_bj3;i<_o11.length;i++){_2h3[i]=null;}}for(var i=0;i<_o11.length;i++){var _cj3=_o11[i];if(!_cj3||_cj3._mh3!=-1)continue;var _dj3=null;var _ej3=_2h3[i]; if(_ej3!=null){_dj3=_3u._LQ(_t3,_ej3);if(_dj3==null){_dj3=_3u._lU(_t3,_cj3.depth,_ej3);}}var _Di3=new _lS();_Di3._mS=i;if(_dj3!=null){_cj3._mh3=_3u._HT(_t3,_dj3,_Di3,true);}if(_cj3._mh3==-1){_cj3._mh3=_3u._NT(_t3,_cj3.depth,_Di3,true,true);}}_2h3=[];};function _fj3(){if(!_v3)return;_2h3=new Array(_o11.length).fill(null);for(var i=0;i<_o11.length;++i){var _cj3=_o11[i];if(!_cj3)continue;var _6P=null;var _gj3=null;if(_cj3._mh3!=-1){var _hj3=_3u._lT(_t3,_cj3._mh3);if(_hj3!=null){_6P=_hj3.layer;_gj3=_hj3._sd; }}if(_cj3._nh3){var _ij3=(_6P&&!_6P._BR&&_gj3);if(_ij3){_gj3._mS=-1;_cj3._mh3=-1;}_Vo(i);_2h3[i]=null;continue;}_3u._eT(_t3,_cj3._mh3,true);_cj3._mh3=-1;if(_6P&&_6P._CR&&!_6P._BR){_2h3[i]=_6P._CR;}else {_2h3[i]=null;}}}function _jj3(_q11){_q11=yyGetInt32(_q11);if(true==_n21(_q11)){var _ji3=_o11[_q11];if(_ji3!=null){if(_ji3._lh3){_x21(_q11);}}}};function _kj3(){var _un=-1000000000;for(var i=0;i<_o11.length;i++){var _ji3=_o11[i];if(_ji3!=null&&_ji3.particles.length>0){if(_ji3._lh3){if(_ji3.depth>_un)_un=_ji3.depth; }}}return _un;}function _lj3(_ZX){var _un=-1000000000;for(var i=0;i<_o11.length;i++){var _ji3=_o11[i];if(_ji3!=null&&_ji3.particles.length>0){if(_ji3._lh3){if((_ji3.depth>_un)&&(_ji3.depth<_ZX))_un=_ji3.depth;}}}return _un;}var _TY=0,_mj3=1;var _nj3=0;function _oj3(_q5,_r5,_tm){this.x=_q5;this.y=_r5;this.speed=_tm;this._G6=0;}function _241(){this.__type="[Path]";this.name="";this.id=_nj3++;this.kind=0;this.closed=1;this.precision=4;this._Wf();}_241.prototype._Wf=function(){this.points=[];this._pj3=[];this._q8=0; this._qj3=0;this.length=0;};_241.prototype._SY=function(_B3){if((_B3<0)||(_B3>1)){this.kind=0;}else {this.kind=_B3;}this._rj3();};_241.prototype._UY=function(_B3){this.closed=_B3;this._rj3();};_241.prototype._141=function(_B3){if(_B3<0)_B3=0;if(_B3>8)_B3=8;this.precision=_B3;this._rj3();};_241.prototype._sj3=function(){var i=0;this.length=0;if(this._qj3<=0)return;this._pj3[0]._G6=0;for(i=1;i16.0){this._xj3(_Al-1,_W6,_X6,_GB,(_o6+_W6)/2.0,(_p6+_X6)/2.0,(_HB+_GB)/2.0,_17,_27,_3B);}this._tj3(_17,_27,_3B);if(_kA(_o6-_Ju)+_kA(_p6-_Ku)>16.0){this._xj3(_Al-1,_17,_27,_3B,(_Ju+_o6)/2.0,(_Ku+_p6)/2.0,(_yj3+_HB)/2.0,_Ju,_Ku,_yj3);}};_241.prototype._zj3=function(){var i=0;var _t6=0;this._qj3=0;if(this._q8<=0)return;if(!this.closed){this._tj3(this.points[0].x,this.points[0].y,this.points[0].speed);}if(this.closed){ _t6=this._q8-1;}else {_t6=this._q8-3;}for(i=0;i<=_t6;i++){var _jG1=this.points[i%this._q8];var _kG1=this.points[(i+1)%this._q8];var _Aj3=this.points[(i+2)%this._q8];this._xj3(this.precision,(_jG1.x+_kG1.x)/2.0,(_jG1.y+_kG1.y)/2.0,(_jG1.speed+_kG1.speed)/2.0,_kG1.x,_kG1.y,_kG1.speed,(_kG1.x+_Aj3.x)/2.0,(_kG1.y+_Aj3.y)/2.0,(_kG1.speed+_Aj3.speed)/2.0);}if(!this.closed){this._tj3(this.points[this._q8-1].x,this.points[this._q8-1].y,this.points[this._q8-1].speed);}else {this._tj3(this._pj3[0].x,this._pj3[0].y, this._pj3[0].speed);}};_241.prototype._rj3=function(){if(this.kind==1){this._zj3();}else {this._wj3();}this._sj3();};function __N2(_bV2){var _QY=new _241();if((_bV2!=undefined)&&(_bV2!=null)){if(_bV2.precision!=undefined){_QY.precision=_bV2.precision;}if(_bV2.closed!=undefined){_QY.closed=_bV2.closed;}if(_bV2.kind!=undefined){_QY.kind=_bV2.kind;}if(_bV2.pName!=undefined){_QY.name=_bV2.pName;}if(_bV2.points!=undefined){_QY._q8=_bV2.points.length;}for(var _gh=0;_gh<_bV2.points.length;_gh++){var _CV2=_bV2.points[_gh]; var _Bj3=new _oj3(_CV2.x,_CV2.y,_CV2.speed);_QY.points[_QY.points.length]=_Bj3;}_QY._rj3();}return _QY;}var _Cj3=new _oj3(0,0,100);_241.prototype._e41=function(_t4){var _Wk=0;if(this._qj3<=0){_Cj3.x=0;_Cj3.y=0;_Cj3.speed=0;return _Cj3;}if((this._qj3==1)||(this.length==0)||(_t4<=0)){return this._pj3[0];}if(_t4>=1){return this._pj3[this._qj3-1];}var _G6=this.length*_t4;_Wk=0;while((_Wk=this._pj3[_Wk+1]._G6)){_Wk++;}var _Kl=this._pj3[_Wk];_G6=_G6-_Kl._G6;var w=this._pj3[_Wk+1]._G6-_Kl._G6;if(w!=0){ _Wk++;_Cj3.x=_Kl.x+_G6*(this._pj3[_Wk].x-_Kl.x)/w;_Cj3.y=_Kl.y+_G6*(this._pj3[_Wk].y-_Kl.y)/w;_Cj3.speed=_Kl.speed+_G6*(this._pj3[_Wk].speed-_Kl.speed)/w;_Kl=_Cj3;}return _Kl;};_241.prototype._Y31=function(_t4){var _gh=this._e41(_t4);return _gh.x;};_241.prototype._Z31=function(_t4){var _gh=this._e41(_t4);return _gh.y;};_241.prototype.__31=function(_t4){var _gh=this._e41(_t4);return _gh.speed;};_241.prototype._lQ=function(_Dj3){this.points=null;this._pj3=null;this.name=_Dj3.name;this._q8=_Dj3._q8;this.kind=_Dj3.kind; this.closed=_Dj3.closed;this.precision=_Dj3.precision;this._qj3=_Dj3._qj3;this.length=_Dj3.length;this.points=[];var _Ej3;var _CV2;var _Fj3=_Dj3.points;var _ba=this.points;for(var _gh=0;_gh<_Fj3.length;_gh++){_CV2=_Fj3[_gh];_Ej3=new _oj3(_CV2.x,_CV2.y,_CV2.speed);_Ej3._G6=_CV2._G6;_ba[_ba.length]=_Ej3;}this._pj3=[];var _Gj3=_Dj3._pj3;var _ba=this._pj3;for(var _gh=0;_gh<_Gj3.length;_gh++){_CV2=_Gj3[_gh];_Ej3=new _oj3(_CV2.x,_CV2.y,_CV2.speed);_Ej3._G6=_CV2._G6;_ba[_ba.length]=_Ej3;}};_241.prototype._f41=function(_941, _a41){for(var i=0;i<=this._q8-1;i++){this.points[i].x+=_941;this.points[i].y+=_a41;}this._rj3();};_241.prototype._Hj3=function(){var _RZ=100000000;var _SZ=-100000000;var _TZ=100000000;var _UZ=-100000000;for(var i=0;i<=this._q8-1;i++){if(this.points[i].x<_RZ)_RZ=this.points[i].x;if(this.points[i].x>_SZ)_SZ=this.points[i].x;if(this.points[i].y<_TZ)_TZ=this.points[i].y;if(this.points[i].y>_UZ)_UZ=this.points[i].y;}return new _oj3((_RZ+_SZ)/2.0,(_TZ+_UZ)/2.0,0);};_241.prototype._LZ=function(){if(this._q8<=1)return; var _Ij3=[];for(var i=this._q8-1;i>=0;i--){_Ij3[_Ij3.length]=this.points[i];}this.points=_Ij3;this._rj3();};_241.prototype._j41=function(){var _Jj3=this._Hj3();this._f41(-_Jj3.x,-_Jj3.y);for(var i=0;i<=this._q8-1;i++){this.points[i].x=-this.points[i].x;}this._f41(_Jj3.x,_Jj3.y);this._rj3();};_241.prototype._i41=function(){var _Jj3=this._Hj3();this._f41(-_Jj3.x,-_Jj3.y);for(var i=0;i<=this._q8-1;i++){this.points[i].y=-this.points[i].y;}this._f41(_Jj3.x,_Jj3.y);this._rj3();};_241.prototype._h41=function(_u5){ var _Jj3=this._Hj3();this._f41(-_Jj3.x,-_Jj3.y);for(var i=0;i<=this._q8-1;i++){var _N6=this.points[i].x;var _P6=this.points[i].y;var _hW=_u5*Math.PI/180.0;this.points[i].x=_N6*Math.cos(_hW)+_P6*Math.sin(_hW);this.points[i].y=_P6*Math.cos(_hW)-_N6*Math.sin(_hW);}this._f41(_Jj3.x,_Jj3.y);this._rj3();};_241.prototype._g41=function(_co,_do){var _Jj3=this._Hj3();this._f41(-_Jj3.x,-_Jj3.y);for(var i=0;i<=this._q8-1;i++){this.points[i].x=this.points[i].x*_co;this.points[i].y=this.points[i].y*_do;}this._f41(_Jj3.x, _Jj3.y);this._rj3();};_241.prototype._m41=function(_t4,_k41,_l41,_uj3){if(_t4<0||_t4>=this._q8)return;this.points[_t4].x=_k41;this.points[_t4].y=_l41;this.points[_t4].speed=_uj3;this._rj3();};_241.prototype._p41=function(_t4){if(_t4<0||_t4>=this._q8)return;this.points.splice(_t4,1);this._q8--;this._rj3();};_241.prototype._n41=function(_Dj3){if(_Dj3._q8==0)return;for(var i=0;i<=_Dj3._q8-1;i++){this.points[this.points.length]=_Dj3.points[i];this._q8++;}this._rj3();};_241.prototype._o41=function(_t4, _k41,_l41,_uj3){if(_t4<0||_t4>this._q8)return;this._q8++;var _CV2=new _oj3(_k41,_l41,_uj3);this.points.splice(_t4,0,_CV2);this._rj3();};_241.prototype._VY=function(_k41,_l41,_uj3){var _CV2=new _oj3(_k41,_l41,_uj3);if(!this.points)this.points=[];this.points[this.points.length]=_CV2;this._q8++;this._rj3();};function __M2(){this.Paths=[];_nj3=0;}__M2.prototype._Gf=function(_Dj3){this.Paths[_Dj3.id]=_Dj3;};__M2.prototype._Ll=function(_Dj3){this.Paths[_Dj3.id]=undefined;};function _Kj3(_Al){this.depth=_Al; this.visible=true;this._Lj3=new _Ck();}_Kj3.prototype._Gf=function(_Mj3){this._Lj3._Gf(_Mj3);};_Kj3.prototype._Ll=function(_Mj3){this._Lj3.__S(_Mj3);};_Kj3.prototype._19=function(_G63){if(!this.visible){return;}var _Vk=this._Lj3._Vk;for(var index=0;index<_Vk.length;index++){var _2l1=_Vk[index];if(_2l1!=null){var _MS1=_2l1.x+(_2l1._tR*_2l1.w),_Nj3=_2l1.y+(_2l1._uR*_2l1.h);var _w6=(_2l1.x<_MS1)?_2l1.x:_MS1,_y6=(_2l1.x>_MS1)?_2l1.x:_MS1,_x6=(_2l1.y<_Nj3)?_2l1.y:_Nj3,_z6=(_2l1.y>_Nj3)?_2l1.y:_Nj3;if((_w6<=_G63.right)&&(_x6<=_G63.bottom)&&(_y6>=_G63.left)&&(_z6>=_G63.top)){ _2l1._19();}}}};_Kj3.prototype._PZ=function(){return this._Lj3._Vk;};function _Oj3(){this._Pj3=new _Dl();this._Qj3=-1;}_Oj3.prototype._E5=function(_Al){var _Cl1;for(var index=0;index=0.5);};function _GZ(){this._Ql=[];this.offset=0;this._JZ=_GZ.prototype._Sj3;this._HZ=_GZ.prototype._Tj3;};_GZ.prototype.Length=function(){return(this._Ql.length-this.offset); };_GZ.prototype._IZ=function(_fe){return((this._Ql.length-this.offset)>=_fe);};_GZ.prototype._Uj3=function(){return(this._Ql.length==0);};_GZ.prototype._Tj3=function(_aV2){this._Ql.push(_aV2);};_GZ.prototype._Sj3=function(){if(this._Uj3())return undefined;var _jl=this._Ql[this.offset];if((++this.offset*2)>=this._Ql.length){this._Ql=this._Ql.slice(this.offset);this.offset=0;}return _jl;};_GZ.prototype._Vj3=function(){if(this._Ql.length>0){return this._Ql[this.offset];}else {return undefined;}};function _181(){ this.id=_GL2++;this._WS();};_181.prototype._WS=function(){this.__type="[Room]";this._Wj3="";this._Xj3="";this._K03=30;this._2V=1024;this._4V=768;this._sg3=false;this._Yj3=false;this._F_2=0xc0c0c0;this._s03=true;this._Zj3=true;this.__j3=true;this._0k3=[];for(var _J6=0;_J6<_0L2;_J6++){this._0k3[_J6]=null;}this._6g=false;this._1k3=null;this._NO=new _Ck();this._NO._Dk=true;this._xQ=new _Ck();this._xQ._Dk=true;this._I93=[];this._Jl1=0;this._9l1=[];this._sl1=new _Oj3();this._8g=[];this._2k3=[];this._aX=[]; this._Q71=null;this._CR="Room";this._v41=null;this._gT=new _Dl();this._Q23=[];this._P23=0;};_181.prototype._3k3=function(){return this._6g;};_181.prototype._aN=function(){return this._2V;};_181.prototype._bN=function(){return this._4V;};_181.prototype._u3=function(){return this._K03;};_181.prototype._0d2=function(){return this._CR;};_181.prototype._4k3=function(){return this._Xj3;};_181.prototype._rx2=function(){return this._sg3;};_181.prototype._PZ=function(){return this._NO._Vk;};_181.prototype._M03=function(_B3){ this._2V=_B3;g_pBuiltIn.room_width=_B3;};_181.prototype._N03=function(_B3){this._4V=_B3;g_pBuiltIn.room_height=_B3;};_181.prototype._J03=function(_B3){this._K03=_B3;g_pBuiltIn.room_speed=_B3;};_181.prototype._5k3=function(_N3){this._CR=_N3;};_181.prototype._L03=function(_pn1){this._Xj3=_pn1;g_pBuiltIn.room_caption=_pn1;};_181.prototype._qx2=function(_B3){this._sg3=_B3;g_pBuiltIn.room_persistent=_B3;};_181.prototype._281=function(){this._Q71={pName:"room_empty_"+this.id,width:640,height:480,backgrounds:[{ },{},{},{},{},{},{},{}],views:[{},{},{},{},{},{},{},{}],pInstances:[],tiles:[]};this._6k3(this._Q71);};_181.prototype._7k3=function(_bV2){if(_bV2!=null){this._Q71.width=_bV2.width;this._Q71.height=_bV2.height;this._Q71.colour=_bV2.colour;this._Q71.showColour=_bV2.showColour;this._Q71.enableViews=_bV2.enableViews;this._Q71.viewClearScreen=_bV2.viewClearScreen;this._Q71.pCaption=_bV2.pCaption;this._Q71.speed=_bV2.speed;this._Q71.persistent=_bV2.persistent;this._Q71._8k3=_bV2._8k3;this._Q71.LayerCount=_bV2.LayerCount; if(_bV2.pCode){this._Q71.pCode=_bV2.pCode;}if(_bV2.physicsWorld){this._Q71.physicsWorld=_bV2.physicsWorld;this._Q71.physicsTop=_bV2.physicsTop;this._Q71.physicsLeft=_bV2.physicsLeft;this._Q71.physicsRight=_bV2.physicsRight;this._Q71.physicsBottom=_bV2.physicsBottom;this._Q71.physicsGravityX=_bV2.physicsGravityX;this._Q71.physicsGravityY=_bV2.physicsGravityY;this._Q71.physicsPixToMeters=_bV2.physicsPixToMeters;}for(var i=0;i<_bV2.backgrounds.length;i++){var _9k3=_bV2.backgrounds[i];if(_9k3!=null){this._Q71.backgrounds[i]={ visible:_9k3.visible,index:_9k3.index,vspeed:_9k3.vspeed,hspeed:_9k3.hspeed,foreground:_9k3.foreground,x:_9k3.x,y:_9k3.y,htiled:_9k3.htiled,vtiled:_9k3.vtiled,stretch:_9k3.stretch,alpha:_9k3.alpha,_vR:_9k3._vR};}}for(var i=0;i<_bV2.views.length;i++){var _ak3=_bV2.views[i];if(_ak3){this._Q71.views[i]={visible:_ak3.visible,xview:_ak3.xview,yview:_ak3.yview,wview:_ak3.wview,hview:_ak3.hview,xport:_ak3.xport,yport:_ak3.yport,wport:_ak3.wport,hport:_ak3.hport,hborder:_ak3.hborder,vborder:_ak3.vborder,hspeed:_ak3.hspeed, vspeed:_ak3.vspeed,index:_ak3.index};}}this._Q71.pInstances=new Array(_bV2.pInstances.length);for(var i=0;i<_bV2.pInstances.length;i++){var _bk3=_bV2.pInstances[i];if(_bk3){this._Q71.pInstances[i]={x:_bk3.x,y:_bk3.y,index:_bk3.index,id:_bk3.id,rotation:_bk3.image_angle,scaleX:_bk3.scaleX,scaleY:_bk3.scaleY,imageSpeed:_bk3.imageSpeed,imageIndex:_bk3.imageIndex,colour:_bk3.image_blend,pCode:_bk3.pCode,pPreCreateCode:_bk3.pPreCreateCode};}}this._Q71.tiles=new Array(_bV2.tiles.length);for(var i=0;i<_bV2.tiles.length; i++){var _ck3=_bV2.tiles[i];if(_ck3!=null){this._Q71.tiles[i]={x:_ck3.x,y:_ck3.y,index:_ck3.index,xo:_ck3.xo,yo:_ck3.yo,w:_ck3.w,h:_ck3.h,depth:_ck3.depth,id:_ck3.id,scaleX:_ck3.scaleX,scaleY:_ck3.scaleY,colour:_ck3.colour};}}this._Q71.layers=new Array(_bV2.layers.length);for(var i=0;i<_bV2.layers.length;i++){var _dk3=_bV2.layers[i];if(_dk3!=null){var _ek3={pName:_dk3.pName,id:_dk3.id,type:_dk3.type,depth:_dk3.depth,x:_dk3.x,y:_dk3.y,hspeed:_dk3.hspeed,vspeed:_dk3.vspeed,visible:_dk3.visible,effectEnabled:_dk3.effectEnabled, effectType:_dk3.effectType};_ek3.effectProperties=new Array(_dk3.effectProperties.length);var _fk3;for(_fk3=0;_fk3<_dk3.effectProperties.length;_fk3++){_ek3._gk3[_fk3]={type:_dk3.effectProperties[_fk3].type,name:_dk3.effectProperties[_fk3].name,value:_dk3.effectProperties[_fk3].value};}switch(_dk3.type){case _6R:_ek3.bvisible=_dk3.bvisible;_ek3.bforeground=_dk3.bforeground;_ek3.bindex=_dk3.bindex;_ek3.bhtiled=_dk3.bhtiled;_ek3.bvtiled=_dk3.bvtiled;_ek3.bstretch=_dk3.bstretch;_ek3.bblend=_dk3.bblend; _ek3.playbackspeedtype=_dk3.playbackspeedtype;_ek3.bimage_index=_dk3.bimage_index;_ek3.bimage_speed=_dk3.bimage_speed;break;case _7R:_ek3.icount=_dk3.icount;_ek3.iinstIDs=_dk3.iinstIDs?_dk3.iinstIDs.slice(0):[];break;case _9R:_ek3.tcount=_dk3.tcount;_ek3.tMapWidth=_dk3.tMapWidth;_ek3.tMapHeight=_dk3.tMapHeight;_ek3.tIndex=_dk3.tIndex;_ek3.ttiles=_dk3.ttiles?_dk3.ttiles.slice(0):[];break;case _8R:var _hk3;_ek3.acount=_dk3.acount;_ek3.assets=new Array(_dk3.assets.length);for(_hk3=0;_hk3<_dk3.assets.length; _hk3++){_ek3.assets[_hk3]={ax:_dk3.assets[_hk3].ax,ay:_dk3.assets[_hk3].ay,aindex:_dk3.assets[_hk3].aindex,aXO:_dk3.assets[_hk3].aXO,aYO:_dk3.assets[_hk3].aYO,aW:_dk3.assets[_hk3].aW,aH:_dk3.assets[_hk3].aH,aDepth:_dk3.assets[_hk3].aDepth,aId:_dk3.assets[_hk3].aId,aXScale:_dk3.assets[_hk3].aXScale,aYScale:_dk3.assets[_hk3].aYScale,aBlend:_dk3.assets[_hk3].aBlend};}_ek3.scount=_dk3.scount;_ek3.sprites=new Array(_dk3.sprites.length);for(_hk3=0;_hk3<_dk3.sprites.length;_hk3++){_ek3.sprites[_hk3]={sName:_dk3.sprites[_hk3].sName, sIndex:_dk3.sprites[_hk3].sIndex,sX:_dk3.sprites[_hk3].sX,sY:_dk3.sprites[_hk3].sY,sXScale:_dk3.sprites[_hk3].sXScale,sYScale:_dk3.sprites[_hk3].sYScale,sBlend:_dk3.sprites[_hk3].sBlend,sPlaybackSpeedType:_dk3.sprites[_hk3].sPlaybackSpeedType,sImageSpeed:_dk3.sprites[_hk3].sImageSpeed,sImageIndex:_dk3.sprites[_hk3].sImageIndex,sRotation:_dk3.sprites[_hk3].sRotation};}_ek3.ecount=_dk3.ecount;_ek3.sequences=new Array(_dk3.sequences.length);for(_hk3=0;_hk3<_dk3.sequences.length;_hk3++){_ek3.sequences[_hk3]={ sName:_dk3.sequences[_hk3].sName,sIndex:_dk3.sequences[_hk3].sIndex,sX:_dk3.sequences[_hk3].sX,sY:_dk3.sequences[_hk3].sY,sXScale:_dk3.sequences[_hk3].sXScale,sYScale:_dk3.sequences[_hk3].sYScale,sBlend:_dk3.sequences[_hk3].sBlend,sPlaybackSpeedType:_dk3.sequences[_hk3].sPlaybackSpeedType,sImageSpeed:_dk3.sequences[_hk3].sImageSpeed,sHeadPosition:_dk3.sequences[_hk3].sHeadPosition,sRotation:_dk3.sequences[_hk3].sRotation};}_ek3.pcount=_dk3.pcount;_ek3.particles=new Array(_dk3.particles.length);for(_hk3=0; i<_dk3.particles.length;_hk3++){var _ik3=_dk3.particles[_hk3];_ek3.particles[_hk3]={sName:_ik3.sName,sIndex:_ik3.sIndex,sX:_ik3.sX,sY:_ik3.sY,sXScale:_ik3.sXScale,sYScale:_ik3.sYScale,sBlend:_ik3.sBlend,sRotation:_ik3.sRotation,};}break;case _bR:_ek3._KR=_dk3._KR;break;}this._Q71.layers[i]=_ek3;}}}};_181.prototype._6k3=function(_jk3){this._WS();this._Q71=_jk3;if(_jk3.pName!=undefined)this._5k3(_jk3.pName);if(_jk3.pCaption!=undefined)this._L03(_jk3.pCaption);if(_jk3.width!=undefined)this._M03(_jk3.width); if(_jk3.height!=undefined)this._N03(_jk3.height);if(_jk3.speed!=undefined)this._J03(_jk3.speed);if(_jk3.persistent!=undefined)this._qx2(_jk3.persistent);if(_jk3.colour!=undefined)this._F_2=_jk3.colour;if(_jk3.showColour!=undefined)this._s03=_jk3.showColour;if(_jk3.enableViews!=undefined)this._6g=_jk3.enableViews;if(_jk3.viewClearScreen!=undefined)this._Zj3=_jk3.viewClearScreen;if(_jk3._8k3!=undefined)this.__j3=_jk3._8k3;this._M03(this._2V);this._N03(this._4V);this._J03(this._K03);this._L03(this._Xj3); this._qx2(this._sg3);this._8g=[];this._Jl1=0;for(var index=0;index<_jk3.tiles.length;index++){var _kk3=_jk3.tiles[index];if(_kk3!=null){var _2l1=_lk3(_kk3);this._sl1._Gf(_2l1);this._9l1[_2l1.id]=_2l1;this._Jl1++;}}if(_jk3.pCode!=undefined)this._1k3=_jk3.pCode;for(var _Y4=0;_Y4<_jk3.views.length;_Y4++){this._8g[_Y4]=_mk3(_jk3.views[_Y4]);}if(_jk3.LayerCount!=undefined){if(_jk3.LayerCount>0){_3u.__U(this,_jk3.layers);}}};_181.prototype._nk3=function(){if(this._Q71.physicsWorld){if(_v3){this._v41=new _y41(this._Q71.physicsPixToMeters, _x3._y3());}else {this._v41=new _y41(this._Q71.physicsPixToMeters,this._u3());}this._v41._D41(this._Q71.physicsGravityX,this._Q71.physicsGravityY);}};_181.prototype._ok3=function(_pk3){var i;var _qk3=0;var _rk3=[];for(i=this._NO.length-1;i>=0;i--){var _0n=this._NO._E5(0);if(_pk3){_0n._N5(_bQ,0,_0n,_0n);}this._sk3(_0n);}for(i=this._xQ.length-1;i>=0;i--){this._sk3(this._xQ._E5(0));}};_181.prototype._581=function(){this._Q71.pInstances=[];};_181.prototype._s52=function(index){if(this._8g!=undefined){var _Sz=this._8g[index]; if(_Sz!=undefined)return _Sz;}return undefined;};_181.prototype._1n=function(_q5,_r5,_Zm){return this._cU(_q5,_r5,_jQ++,_Zm,false,0);};_181.prototype._FW=function(_q5,_r5,_YS,_Zm){return this._tk3(_q5,_r5,_YS,_jQ++,_Zm,true);};_181.prototype._EW=function(_q5,_r5,_Al,_Zm){var _0n=this._cU(_q5,_r5,_jQ++,_Zm,true,_Al);return _0n;};_181.prototype._uk3=function(_q5,_r5,_jg,_cQ,_vk3,_wk3,_xk3,_yk3,_Z82,_Pc){var _zk3=new _iQ(_q5,_r5,_jg,_cQ,true);this._NO._Gf(_zk3);_Hn._Gf(_zk3);if(_xk3!=undefined)_zk3.image_speed=_xk3; if(_yk3!=undefined)_zk3.image_index=_yk3;if(_vk3!=undefined)_zk3.image_xscale=_vk3;if(_wk3!=undefined)_zk3.image_yscale=_wk3;if(_Z82!=undefined)_zk3.image_angle=_Z82;if(_Pc!=undefined){_zk3.image_blend=_Pc&0xffffff;_zk3.image_alpha=((_Pc>>24)&0xff)/255.0;}if(_v3){_zk3._i93=_zk3._h93=_zk3.image_index;var _kT=_3u._HU(this,_jg);if(_kT==null){_3u._cU(this,_zk3);}else {_3u._ET(this,_kT.layer,_kT._sd);}}_zk3._fa3();return _zk3;};_181.prototype._cU=function(_q5,_r5,_jg,_cQ,_Ak3,_Al){var _zk3=new _iQ(_q5,_r5, _jg,_cQ,true);this._NO._Gf(_zk3);_Hn._Gf(_zk3);if(_Ak3){_zk3.depth=_Al;}if(_v3){var _kT=_3u._HU(this,_jg);if(_kT==null){_3u._cU(this,_zk3);}else {_3u._ET(this,_kT.layer,_kT._sd);}}_zk3._fa3();return _zk3;};_181.prototype._tk3=function(_q5,_r5,_YS,_jg,_cQ){var _zk3=new _iQ(_q5,_r5,_jg,_cQ,true);_zk3.depth=_YS.depth;this._NO._Gf(_zk3);_Hn._Gf(_zk3);_zk3._fa3();if(_v3)_3u._eU(this,_YS,_zk3);return _zk3;};_181.prototype._nQ=function(_Ht){this._NO._Gf(_Ht);_Hn._Gf(_Ht);if(_v3){var _6P=_3u._MQ(this,_Ht._qT); if(_6P!=null)_3u._eU(this,_6P,_Ht);}};_181.prototype._Bk3=function(){var w=display_get_width();var h=display_get_height();for(var i=0;i<_1L2;i++){g_pBuiltIn.view_visible[i]=false;g_pBuiltIn.view_xview[i]=0;g_pBuiltIn.view_yview[i]=0;g_pBuiltIn.view_wview[i]=_t3._2V;g_pBuiltIn.view_hview[i]=_t3._4V;g_pBuiltIn.view_xport[i]=0;g_pBuiltIn.view_yport[i]=0;g_pBuiltIn.view_wport[i]=w;g_pBuiltIn.view_hport[i]=h;g_pBuiltIn.view_angle[i]=0;g_pBuiltIn.view_hborder[i]=0;g_pBuiltIn.view_vborder[i]=0;g_pBuiltIn.view_hspeed[i]=0; g_pBuiltIn.view_vspeed[i]=0;g_pBuiltIn.view_object[i]=-1;g_pBuiltIn.view_surface_id[i]=-1;g_pBuiltIn.view_camera[i]=-1;}var index=0;for(var i=0;i=0)){_1u=null;if(_9g.__m<100000){var _BG=_i3._E5(_9g.__m);if(_BG!=null){var _Vk=_BG._e51();for(var _NF=0;_NF<_Vk.length;_NF++){_1u=_Vk[_NF];if(!_1u.marked)break;_1u=null;}}}else {_1u=_Hn._E5(_9g.__m);if(!_1u&&_1u.marked)_1u=null;}if(_1u!=null){_G6=_9g._7j1; _J6=_9g._8j1;_Kj=_1u.x;_Iy2=_1u.y;if(2*_9g.hborder>=_9g._9j1){_G6=_Kj-_9g._9j1/2;}else if(_Kj-_9g.hborder<_9g._7j1){_G6=_Kj-_9g.hborder;}else if(_Kj+_9g.hborder>_9g._7j1+_9g._9j1){_G6=_Kj+_9g.hborder-_9g._9j1;}if(2*_9g.vborder>=_9g._aj1){_J6=_Iy2-_9g._aj1/2;}else if(_Iy2-_9g.vborder<_9g._8j1){_J6=_Iy2-_9g.vborder;}else if(_Iy2+_9g.vborder>_9g._8j1+_9g._aj1){_J6=_Iy2+_9g.vborder-_9g._aj1;}if(_G6<0)_G6=0;if(_G6+_9g._9j1>this._2V)_G6=this._2V-_9g._9j1;if(_J6<0)_J6=0;if(_J6+_9g._aj1>this._4V)_J6=this._4V-_9g._aj1; if(_9g.hspeed>=0){if((_G6<_9g._7j1)&&(_9g._7j1-_G6>_9g.hspeed))_G6=_9g._7j1-_9g.hspeed;if((_G6>_9g._7j1)&&(_G6-_9g._7j1>_9g.hspeed))_G6=_9g._7j1+_9g.hspeed;}if(_9g.vspeed>=0){if((_J6<_9g._8j1)&&(_9g._8j1-_J6>_9g.vspeed))_J6=_9g._8j1-_9g.vspeed;if((_J6>_9g._8j1)&&(_J6-_9g._8j1>_9g.vspeed))_J6=_9g._8j1+_9g.vspeed;}_9g._7j1=_G6;_9g._8j1=_J6;}}}this._Bk3();var left,right,top,bottom;left=999999;right=-999999;top=999999;bottom=-999999;for(var i=0;i<_t3._8g.length;i++){_9g=_t3._8g[i];if(_9g.visible){if(left>_9g._Ck3)left=_9g._Ck3; if(right<(_9g._Ck3+_9g._Ek3))right=_9g._Ck3+_9g._Ek3;if(top>_9g._Dk3)top=_9g._Dk3;if(bottom<(_9g._Dk3+_9g._Fk3))bottom=_9g._Dk3+_9g._Fk3;}}_On1=_Yi1/(right-left);_Pn1=_Zi1/(bottom-top);};_181.prototype._Jk3=function(_G63,_YS,_aT){var _0n=_aT._PQ;if(_0n!=null){if(!_0n.marked&&_0n.active&&_0n.visible&&(!_0n._ba3()||!_0n._0a3())){var _Pg=_i3._E5(_0n.object_index);if(_Pg!=null){if(_Pg._3A2[_WD2]){_d6=_0n;_0n._N5(_WD2,0,_0n,_0n);_d6=null;}else {var _vs=_D5._E5(_0n.sprite_index);if(_vs!=null){_d6=_0n;if((_0n.image_xscale===1)&&(_0n.image_yscale===1)&&(_0n.image_angle===0)&&(_Qc(_0n.image_blend)===0xffffff)&&(_0n.image_alpha===1)){ _vs._Yk1(_0n.image_index,_0n.x,_0n.y,_0n.image_alpha*_Nc);}else {_vs._19(_0n.image_index,_0n.x,_0n.y,_0n.image_xscale,_0n.image_yscale,_0n.image_angle,_Qc(_0n.image_blend),_0n.image_alpha);}_d6=null;}}}}}};_181.prototype._Kk3=function(_G63,_YS,_aT){for(var i=0;i<_aT._1S.length();i++){var _Lk3=_aT._0S;for(var __5=0;__5<_Lk3.length();__5++){var _Dl1=_Lk3[__5];}}};_181.prototype._Mk3=function(_G63,_YS,_aT){var _7r=_aT._YR;if(!_7r.visible)return;if(_7r.foreground)return;var _Nk3=_7r._vR;if(sprite_exists(_7r.index)){ var _vs=_D5._E5(_7r.index);if(!_vs)return;var _Of3=(~~_7r.image_index)%_vs._C4.length;if(_vs._C4[_Of3]!=undefined){if(_7r.stretch){var _tR=_t3._aN()/_vs.width;var _uR=_t3._bN()/_vs.height;_Gs(_vs._C4[_Of3],_YS._lP,_YS._nP,_tR,_uR,_7r.vtiled,_7r.htiled,_Nk3,_7r.alpha);}else _Gs(_vs._C4[_Of3],_YS._lP,_YS._nP,_7r._tR,_7r._uR,_7r.vtiled,_7r.htiled,_Nk3,_7r.alpha);}}else {var _Ok3=_Nc;_Nc=_7r.alpha;if(!_e8)_Nk3=_Qc(_7r._vR);draw_rectangle_color(_NM.left,_NM.top,_NM.right,_NM.bottom,_Nk3,_Nk3,_Nk3,_Nk3,false); _Nc=_Ok3;}};_181.prototype._Pk3=function(_G63,_YS,_aT){if(sprite_exists(_aT._3S)){var _vs=_D5._E5(_aT._3S);if(!_vs)return;if(_vs._tM!==undefined){if((_aT._9S==1.0)&&(_aT._aS==1.0)&&(_aT._bS==0.0)&&(_aT._cS==0xffffff)){_vs._Yk1(_aT._8S,_aT._kP+_YS._lP,_aT._mP+_YS._nP,_aT._dS);}else {_vs._19(_aT._8S,_aT._kP+_YS._lP,_aT._mP+_YS._nP,_aT._9S,_aT._aS,_aT._bS,_aT._cS,_aT._dS);}}else {if((_aT._9S==1.0)&&(_aT._aS==1.0)&&(_aT._bS==0.0)&&(_aT._cS==0xffffff)){_vs._Yk1(_aT._8S,_aT._kP+_YS._lP,_aT._mP+_YS._nP,_aT._dS); }else {_vs._19(_aT._8S,_aT._kP+_YS._lP,_aT._mP+_YS._nP,_aT._9S,_aT._aS,_aT._bS,_aT._cS,_aT._dS);}}}};var _0z2=-1;function _5N2(){_0z2=_jj1._wx2();}function _Kj1(_q5,_r5,_kj,_lj,_u5,_Kx2){if(_Kx2){_Kx2._Px2(_q5);_Kx2._Qx2(_r5);_Kx2._Rx2(_kj);_Kx2._Sx2(_lj);_Kx2._Xx2(_u5);if(_Kx2._kx2){_Kx2._Zx2(_Kx2.__x2()+(_Kx2._0y2()*0.5),_Kx2._1y2()+(_Kx2._2y2()*0.5));_Kx2._Nj1();}else {_Kx2._Ly2(_Kx2.__x2()+(_Kx2._0y2()*0.5),_Kx2._1y2()+(_Kx2._2y2()*0.5));_Kx2._Nj1();_6N=_q5;_7N=_r5;_4N=_kj;_5N=_lj;var _9N=_u5;_MM(_6N, _7N,_4N,_5N,_9N);}}}function _Bj1(_q5,_r5,_kj,_lj,_u5){var _Qk3=_jj1._ux2(_0z2);if(_Qk3==null)_Qk3=_jj1._ay2();_Kj1(_q5,_r5,_kj,_lj,_u5,_Qk3);_jj1._by2(_Qk3._qy2());}function _Rk3(_G63,_us,_Sk3,_FM,_q5,_r5,_Al){if(_us!=null){var _2s=_us;var _Tk3=null;var _Uk3=1;var _Vk3=1;var _Wk3=false;var tilewidth=0;var tileheight=0;var _Xk3=0,_Yk3=0;var _Zk3=0,__k3=0;_FM=_FM%_2s.framelength;if(_2s._5s===null||_2s._5s===undefined){}else {var _Ic=_2s._5s;var _G8=_Ic.texture;if(!_G8.complete)return;if(_e8)if(!_G8._N8)_M8({texture:_G8} );_Uk3=_Ic.w/_Ic.ow;_Vk3=_Ic.h/_Ic.oh;if(_Ic.XOffset!=0||_Ic.YOffset!=0||_Ic.CropWidth!=_Ic.ow||_Ic.CropHeight!=_Ic.oh){_Wk3=false;}else {_Wk3=true;tilewidth=_2s.tilewidth*_Uk3/_G8.width;tileheight=_2s.tileheight*_Vk3/_G8.height;var tilehsep=_2s.tilehsep*_Uk3/_G8.width;var tilevsep=_2s.tilevsep*_Vk3/_G8.height;_Zk3=tilehsep+_Ic.x/_G8.width;__k3=tilevsep+_Ic.y/_G8.height;_Xk3=tilewidth+tilehsep*2;_Yk3=tileheight+tilevsep*2;}}var _Z73,__73,depth;{_Z73=_q5;__73=_r5;depth=_Al;}if(_G8!=null){var _sP=_3u._tP(); if(_Wk3){var _0l3=_2s.tilewidth;var _1l3=_2s.tileheight;var tilecolumns=_2s.tilecolumns;var _Sf3=null;var _2l3=null;var _Ga,bindex,_Ja,_La,_Na,_Pa,_hb,__4,_ib,_jb,_kb;if(_e8){var _m4=~~((_Nc*255.0)<<24)|(_Oc&0xffffff);var _VO=_Sk3;_VO&=_sP;var _vP=(_VO>>_wP)&_xP;if(_vP===0)return;_vP=_2s.framedata[_vP*_2s.frames+_FM];if(_vP===0)return;_Sf3=_e8._Da(_9a._Ea,_G8._N8,_e8._Fa,6);_Ga=_Sf3._Ha()>>2;bindex=_Ga*_Sf3._Ia;_Sf3._Ia+=6;_Ja=_Sf3._Ka;_La=_Sf3._Ma;_Na=_Sf3._Oa;_Pa=bindex;_hb=_Pa+_Ga;__4=_hb+_Ga;_ib=__4+_Ga; _jb=_ib+_Ga;_kb=_jb+_Ga;var _3j=_Z73;var _AH=__73;var xo=((_vP%tilecolumns)*_Xk3)+_Zk3;var yo=(Math.floor(_vP/tilecolumns)*_Yk3)+__k3;var _3l3=_3j;var _4l3=_AH;var _5l3=_3j+_0l3;var _6l3=_AH;var _7l3=_3j;var _8l3=_AH+_1l3;var _9l3=_3j+_0l3;var _al3=_AH+_1l3;var _bl3=xo;var _cl3=yo;var _dl3=xo+tilewidth;var _el3=yo;var _fl3=xo;var _gl3=yo+tileheight;var _hl3=xo+tilewidth;var _il3=yo+tileheight;if(_VO&_WO){if(_VO&_XO){var _jL;_jL=_bl3;_bl3=_dl3;_dl3=_jL;_jL=_fl3;_fl3=_hl3;_hl3=_jL;}if(_VO&_ZO){var _jL;_jL=_cl3;_cl3=_gl3; _gl3=_jL;_jL=_el3;_el3=_il3;_il3=_jL;}if(_VO&_oR){var _jL;_jL=_bl3;_bl3=_fl3;_fl3=_hl3;_hl3=_dl3;_dl3=_jL;_jL=_cl3;_cl3=_gl3;_gl3=_il3;_il3=_el3;_el3=_jL;}}_Ja[_Pa+0]=_3l3;_Ja[_Pa+1]=_4l3;_Ja[_Pa+2]=depth;_Ja[_hb+0]=_Ja[_jb+0]=_5l3;_Ja[_hb+1]=_Ja[_jb+1]=_6l3;_Ja[_hb+2]=_Ja[_jb+2]=depth;_Ja[__4+0]=_Ja[_ib+0]=_7l3;_Ja[__4+1]=_Ja[_ib+1]=_8l3;_Ja[__4+2]=_Ja[_ib+2]=depth;_Ja[_kb+0]=_9l3;_Ja[_kb+1]=_al3;_Ja[_kb+2]=depth;_La[_Pa]=_La[_hb]=_La[__4]=_La[_ib]=_La[_jb]=_La[_kb]=_m4;_Na[_Pa+0]=_bl3;_Na[_Pa+1]=_cl3; _Na[_hb+0]=_Na[_jb+0]=_dl3;_Na[_hb+1]=_Na[_jb+1]=_el3;_Na[__4+0]=_Na[_ib+0]=_fl3;_Na[__4+1]=_Na[_ib+1]=_gl3;_Na[_kb+0]=_hl3;_Na[_kb+1]=_il3;}else {var _VO=_Sk3;var _vP=(_VO>>_wP)&_xP;if(_vP===0)return;_vP=_2s.framedata[_vP*_2s.frames+_FM];if(_vP===0)return;var _3j=_Z73;var _AH=__73;var xo=((_vP%tilecolumns)*_Xk3)+_Zk3;var yo=(Math.floor(_vP/tilecolumns)*_Yk3)+__k3;var _3l3=_3j;var _4l3=_AH;var _5l3=_3j+_0l3;var _6l3=_AH;var _7l3=_3j;var _8l3=_AH+_1l3;var _9l3=_3j+_0l3;var _al3=_AH+_1l3;var _bl3=xo;var _cl3=yo;var _dl3=xo+tilewidth; var _el3=yo;var _fl3=xo;var _gl3=yo+tileheight;var _hl3=xo+tilewidth;var _il3=yo+tileheight;var _0H=_1a.globalAlpha;_1a.globalAlpha=_Nc;var _jl3=_G8;var _kl3=0;var _ll3=0;var _m4=_Oc&0xffffff;if(_m4!=0xffffff){_jl3=_M9(_Ic,_m4);_kl3=-_Ic.x;_ll3=-_Ic.y;}if(_VO&_WO){var _A73=1;var _B73=1;var _y4=0;if(_VO&_XO){_A73=-_A73;}if(_VO&_ZO){_B73=-_B73;}if(_VO&_oR){_y4=-1.5708;}_f43(Math.floor(_3l3)+_0l3*0.5,Math.floor(_4l3)+_1l3*0.5,_A73,_B73,-_y4);_1a._pg1(_jl3,Math.floor(_bl3*_G8.width)+_kl3,Math.floor(_cl3*_G8.height)+_ll3, Math.floor(tilewidth*_G8.width),Math.floor(tileheight*_G8.height),-_0l3*0.5,-_0l3*0.5,_0l3,_1l3);_h43();}else {_1a._pg1(_jl3,Math.floor(_bl3*_G8.width)+_kl3,Math.floor(_cl3*_G8.height)+_ll3,Math.floor(tilewidth*_G8.width),Math.floor(tileheight*_G8.height),Math.floor(_3l3),Math.floor(_4l3),_0l3,_1l3);}_1a.globalAlpha=_0H;}}}}};function draw_tile(_f7,_us,_ml3,_FM,_q5,_r5){if(_6r(_us)){var _nl3=_4s(_us);var _ol3=_6s(_us);var _2s=_8r._0s(_us);var _vP=((_ml3>>_wP)&_xP);if(_2s!=null&&_vP>_2s.tilecount){return; }var x=yyGetReal(_q5);var y=yyGetReal(_r5);var depth=_vW(_f7);_Rk3(_NM,_2s,_ml3,_FM,x,y,depth);}};_181.prototype._wW=function(_G63,_YS,_aT,_Nj,_Oj,_Al){if(_6r(_aT._cP)){var _nl3=_4s(_aT._cP);var _ol3=_6s(_aT._cP);var _2s=_8r._0s(_aT._cP);var _Tk3=null;var _Uk3=1;var _Vk3=1;var _Wk3=false;var tilewidth=0;var tileheight=0;var _Xk3=0,_Yk3=0;var _Zk3=0,__k3=0;if(_2s._5s===null||_2s._5s===undefined){}else {var _Ic=_2s._5s;var _G8=_Ic.texture;if(!_G8.complete)return;if(_e8)if(!_G8._N8)_M8({texture:_G8});_Uk3=_Ic.w/_Ic.ow; _Vk3=_Ic.h/_Ic.oh;if(_Ic.XOffset!=0||_Ic.YOffset!=0||_Ic.CropWidth!=_Ic.ow||_Ic.CropHeight!=_Ic.oh){_Wk3=false;}else {_Wk3=true;tilewidth=_2s.tilewidth*_Uk3/_G8.width;tileheight=_2s.tileheight*_Vk3/_G8.height;var tilehsep=_2s.tilehsep*_Uk3/_G8.width;var tilevsep=_2s.tilevsep*_Vk3/_G8.height;_Zk3=tilehsep+_Ic.x/_G8.width;__k3=tilevsep+_Ic.y/_G8.height;_Xk3=tilewidth+tilehsep*2;_Yk3=tileheight+tilevsep*2;}}var _Z73,__73,depth;if(_YS!=null){_Z73=_YS._lP+_aT._kP;__73=_YS._nP+_aT._mP;depth=_YS.depth;}else { _Z73=_Nj;__73=_Oj;depth=_Al;}if(_G8!=null){var _sP=_3u._tP();_sP&=_aT._uP;if(_Wk3){var _pl3=2048;var _Mi=Math.floor((_G63.left-_Z73)/_2s.tilewidth);var _Ni=Math.floor(((_G63.right-_Z73)+_2s.tilewidth)/_2s.tilewidth);var _Oi=Math.floor((_G63.top-__73)/_2s.tileheight);var _Pi=Math.floor(((_G63.bottom-__73)+_2s.tileheight)/_2s.tileheight);_Mi=_H6(0,_Mi);_Ni=_I6(_aT._oP,_Ni);_Oi=_H6(0,_Oi);_Pi=_I6(_aT._pP,_Pi);var _0l3=_2s.tilewidth;var _1l3=_2s.tileheight;var tilecolumns=_2s.tilecolumns;var _ql3=(_Ni-_Mi)*(_Pi-_Oi); var _rl3=0;var _Sf3=null;var _2l3=null;var _Ga,bindex,_Ja,_La,_Na,_Pa,_hb,__4,_ib,_jb,_kb;if(_e8){for(var y=_Oi;y<_Pi;y++){var index=y*_aT._oP+_Mi;for(var x=_Mi;x<_Ni;x++,index++,_ql3--){var _VO=_aT._bP[index];_VO&=_sP;var _vP=(_VO>>_wP)&_xP;if(_vP===0)continue;_vP=_2s.framedata[_vP*_2s.frames+_aT._zP];if(_vP===0)continue;if(_rl3===0){_rl3=_I6(_ql3,_pl3);_Sf3=_e8._Da(_9a._Ea,_G8._N8,_e8._Fa,_rl3*6);_Ga=_Sf3._Ha()>>2;bindex=_Ga*_Sf3._Ia;_Sf3._Ia+=_rl3*6;_Ja=_Sf3._Ka;_La=_Sf3._Ma;_Na=_Sf3._Oa;_Pa=bindex;_hb=_Pa+_Ga; __4=_hb+_Ga;_ib=__4+_Ga;_jb=_ib+_Ga;_kb=_jb+_Ga;}var _3j=x*_0l3+_Z73;var _AH=y*_1l3+__73;var xo=((_vP%tilecolumns)*_Xk3)+_Zk3;var yo=(Math.floor(_vP/tilecolumns)*_Yk3)+__k3;var _3l3=_3j;var _4l3=_AH;var _5l3=_3j+_0l3;var _6l3=_AH;var _7l3=_3j;var _8l3=_AH+_1l3;var _9l3=_3j+_0l3;var _al3=_AH+_1l3;var _bl3=xo;var _cl3=yo;var _dl3=xo+tilewidth;var _el3=yo;var _fl3=xo;var _gl3=yo+tileheight;var _hl3=xo+tilewidth;var _il3=yo+tileheight;if(_VO&_WO){if(_VO&_XO){var _jL;_jL=_bl3;_bl3=_dl3;_dl3=_jL;_jL=_fl3;_fl3=_hl3;_hl3=_jL; }if(_VO&_ZO){var _jL;_jL=_cl3;_cl3=_gl3;_gl3=_jL;_jL=_el3;_el3=_il3;_il3=_jL;}if(_VO&_oR){var _jL;_jL=_bl3;_bl3=_fl3;_fl3=_hl3;_hl3=_dl3;_dl3=_jL;_jL=_cl3;_cl3=_gl3;_gl3=_il3;_il3=_el3;_el3=_jL;}}_Ja[_Pa+0]=_3l3;_Ja[_Pa+1]=_4l3;_Ja[_Pa+2]=depth;_Ja[_hb+0]=_Ja[_jb+0]=_5l3;_Ja[_hb+1]=_Ja[_jb+1]=_6l3;_Ja[_hb+2]=_Ja[_jb+2]=depth;_Ja[__4+0]=_Ja[_ib+0]=_7l3;_Ja[__4+1]=_Ja[_ib+1]=_8l3;_Ja[__4+2]=_Ja[_ib+2]=depth;_Ja[_kb+0]=_9l3;_Ja[_kb+1]=_al3;_Ja[_kb+2]=depth;_La[_Pa]=_La[_hb]=_La[__4]=_La[_ib]=_La[_jb]=_La[_kb]=0xffffffff; _Na[_Pa+0]=_bl3;_Na[_Pa+1]=_cl3;_Na[_hb+0]=_Na[_jb+0]=_dl3;_Na[_hb+1]=_Na[_jb+1]=_el3;_Na[__4+0]=_Na[_ib+0]=_fl3;_Na[__4+1]=_Na[_ib+1]=_gl3;_Na[_kb+0]=_hl3;_Na[_kb+1]=_il3;_Pa+=_Ga*6;_hb+=_Ga*6;__4+=_Ga*6;_ib+=_Ga*6;_jb+=_Ga*6;_kb+=_Ga*6;_rl3--;}}if(_rl3>0)_Sf3._Ia-=_rl3*6;}else {for(var y=_Oi;y<_Pi;y++){var index=y*_aT._oP+_Mi;for(var x=_Mi;x<_Ni;x++,index++,_ql3--){var _VO=_aT._bP[index];var _vP=(_VO>>_wP)&_xP;if(_vP===0)continue;_vP=_2s.framedata[_vP*_2s.frames+_aT._zP];if(_vP===0)continue;var _3j=x*_0l3+_Z73; var _AH=y*_1l3+__73;var xo=((_vP%tilecolumns)*_Xk3)+_Zk3;var yo=(Math.floor(_vP/tilecolumns)*_Yk3)+__k3;var _3l3=_3j;var _4l3=_AH;var _5l3=_3j+_0l3;var _6l3=_AH;var _7l3=_3j;var _8l3=_AH+_1l3;var _9l3=_3j+_0l3;var _al3=_AH+_1l3;var _bl3=xo;var _cl3=yo;var _dl3=xo+tilewidth;var _el3=yo;var _fl3=xo;var _gl3=yo+tileheight;var _hl3=xo+tilewidth;var _il3=yo+tileheight;if(_VO&_WO){var _A73=1;var _B73=1;var _y4=0;if(_VO&_XO){_A73=-_A73;}if(_VO&_ZO){_B73=-_B73;}if(_VO&_oR){_y4=-1.5708;}_f43(Math.floor(_3l3)+_0l3*0.5,Math.floor(_4l3)+_1l3*0.5, _A73,_B73,-_y4);_1a._pg1(_G8,Math.floor(_bl3*_G8.width),Math.floor(_cl3*_G8.height),Math.floor(tilewidth*_G8.width),Math.floor(tileheight*_G8.height),-_0l3*0.5,-_0l3*0.5,_0l3,_1l3);_h43();}else {_1a._pg1(_G8,Math.floor(_bl3*_G8.width),Math.floor(_cl3*_G8.height),Math.floor(tilewidth*_G8.width),Math.floor(tileheight*_G8.height),Math.floor(_3l3),Math.floor(_4l3),_0l3,_1l3);}}}}}}}};_181.prototype._sl3=function(_G63,_YS,_aT){var _Nq=_aT._mS;if(!_n21(_Nq))return;var _cj3=_o11[_Nq];if(!_cj3._lh3)return; var _tl3=_2B(_VA);var _ul3=new _zz();_ul3.__A(_aT._bS+_cj3.angle);var _vl3=new _zz();_vl3._XA(_aT._9S,_aT._aS,1.0);var _wl3=new _zz();_wl3.Multiply(_vl3,_ul3);var _xl3=new _zz();_xl3._WA(-_cj3._D11,-_cj3._E11,0.0);var _yl3=new _zz();_yl3.Multiply(_xl3,_wl3);_yl3._HO2(_cj3._D11+_aT._kP,_cj3._E11+_aT._mP,0.0);_UA(_VA,_yl3);_Xi3(_Nq,_yl3);_x21(_Nq,_aT._cS,_aT._dS);_UA(_VA,_tl3);};_181.prototype._zl3=function(_G63,_YS,_aT){if(!_aT._AR)return false;var _vs=_D5._E5(_aT._3G);if(_vs!=null){var _B4=_vs._C4[0];if((_B4.texture instanceof HTMLImageElement)&&(_B4.tp>=_F4.length))return; if((_F4[_B4.tp] instanceof HTMLImageElement)&&(!_F4[_B4.tp].complete))return;_Ks(_B4,_aT._rS,_aT._sS,_aT._pS,_aT._qS,_aT._kP,_aT._mP,_aT._9S,_aT._aS,_aT._cS,_aT._dS);}};_181.prototype._Al3=function(_G63,_YS,_Bl3){_zT._Cl3(_Bl3,true);var _1u=_zT._8U(_Bl3._gS);if((_1u!=null)&&(_1u._Dl3!=null)){var _f81=_zT._SW(_1u._fS);if(_f81!=null){var _El3=new _zz();var _Fl3=_Bl3._kP!=0||_Bl3._mP!=0||_Bl3._V2!=0||_Bl3._iS!=1||_Bl3._jS!=1;if(_Fl3){_El3=_2B(_VA);var _Gl3=new _zz();var _Hl3=new _zz();var _Il3=new _zz();var _Jl3=new _zz(); _Gl3._XA(_Bl3._iS,_Bl3._jS,1);_Hl3.__A(_Bl3._V2);_Il3._WA(-_f81._Kl3*_Bl3._iS,-_f81._Ll3*_Bl3._jS,0);_Jl3._WA(_f81._Kl3*_Bl3._iS,_f81._Ll3*_Bl3._jS,0);var _nB=new _zz();_nB.Multiply(_Il3,_Hl3);var _Ml3=new _zz();_Ml3.Multiply(_nB,_Jl3);_nB.Multiply(_Gl3,_Ml3);_nB._v6[12]=_Bl3._kP;_nB._v6[13]=_Bl3._mP;var _Nl3=new _zz();_Nl3.Multiply(_nB,_El3);_UA(_VA,_Nl3);_hN();}_d91.push(_f81);this._Ol3(_G63,_YS,_Bl3,_1u._Dl3,_1u._hS,_1u._2X,_1u._4X,_f81,false);_d91.pop();if(_Fl3){_UA(_VA,_El3);}}}};_181.prototype._Ol3=function(_G63, _YS,_Bl3,_Pl3,_Ql3,_Rl3,_Sl3,_Tl3,_Ul3,_Vl3){if(_Tl3==null){return;}var _El3=new _zz();var _Fl3=!_Ul3&&(_Tl3._Kl3!=0||_Tl3._Ll3!=0);if(_Fl3){_El3=_2B(_VA);var _av2=new _zz();_av2._FB(-_Tl3._Kl3,-_Tl3._Ll3,0.0,0.0,0.0,0.0,1.0,1.0,1.0);var _Nl3=new _zz();_Nl3.Multiply(_av2,_El3);_UA(_VA,_Nl3);_hN();}this._Wl3(_G63,_YS,_Bl3,_Pl3,_Ql3,_Rl3,_Sl3,_Tl3._RU,_Tl3);if(_Fl3){_UA(_VA,_El3);}};_181.prototype._Wl3=function(_G63,_YS,_Bl3,_Pl3,_Ql3,_Rl3,_Sl3,_Xl3,_Tl3){var _Yl3=_Pl3;var _Zl3=new _zz();var __l3=new _zz();for(var _jl2=0; _jl2<_Xl3.length;++_jl2){var _M3=_Xl3[_jl2];if(_0m3(_M3._9P)||!_M3.enabled||!_M3.visible){if(!_0m3(_M3._9P)&&_M3.enabled){if(_Yl3!=null){_Yl3=_Yl3._HC1;}}continue;}_d91.push(_M3);switch(_M3._9P){default :break;case _291:case _491:if(_Yl3!=null){_Yl3=_Yl3._HC1;}_d91.pop();continue;}if(_Yl3!=null){_Zl3=_2B(_VA);__l3.Multiply(_Yl3.value._783,_Zl3);_UA(_VA,__l3);}if(_Yl3!=null){switch(_M3._9P){default :break;case _q81:this._1m3(_G63,_YS,_Bl3,_Yl3,_M3,_Ql3,_Rl3,_Sl3,_Tl3);break;case _s81:this._2m3(_G63,_YS, _Bl3,_Yl3,_M3,_Ql3,_Rl3,_Sl3,_Tl3);break;case _091:if(_e8){this._3m3(_G63,_YS,_Bl3,_Yl3,_M3,_Ql3,_Rl3,_Sl3,_Tl3);}break;case _r81:this._4m3(_G63,_YS,_Bl3,_Yl3,_M3,_Ql3,_Rl3,_Sl3,_Tl3);break;case _C81:this._5m3(_G63,_YS,_Bl3,_Yl3,_M3,_Ql3,_Rl3,_Sl3,_Tl3);break;case _Z81:this._6m3(_G63,_YS,_Bl3,_Yl3,_M3,_Ql3,_Rl3,_Sl3,_Tl3);break;}}if(_Yl3!=null&&_M3._RU.length>0){this._Wl3(_G63,_YS,_Bl3,_Yl3._7m3,_Ql3,_Rl3,_Sl3,_M3._RU,_Tl3);}_UA(_VA,_Zl3);if(_Yl3!=null){_Yl3=_Yl3._HC1;}_d91.pop();}};_181.prototype._1m3=function(_G63, _YS,_Bl3,_4f2,_r3,_Ql3,_Rl3,_Sl3,_Tl3){var keyframeStore=_r3._UU;var _8m3=keyframeStore._9m3(_Ql3,_Tl3._WU);if(_8m3==-1)return;var _TU=keyframeStore._8W[_8m3];var spriteIndex=_TU._Lr[0]._3S;var _MU=_D5.Sprites[spriteIndex];var _y73=0;if(_MU._D4()>1){var _am3=Math.max(_Ql3,_TU._9W);_am3=Math.min(_am3,_TU._9W+keyframeStore._bm3(_8m3,_Tl3._WU));var _cm3=_am3-_TU._9W;var _dm3=1.0;var _em3=_MU.sequence;if(_em3!=null){if(_em3._ah1==_wR)_dm3=_em3._9h1/_Tl3._9h1;else _dm3=_em3._9h1*(_x3._y3()/_Tl3._9h1);}else if(_MU.playbackspeed!=0.0){ if(_MU.playbackspeedtype==_wR)_dm3=_MU.playbackspeed/_Tl3._9h1;else _dm3=_MU.playbackspeed;}_cm3*=_dm3;if(_4f2.value._fm3(_gm3)){var _hm3=_4f2.value._im3;if(_hm3>=0)_cm3=_hm3*_dm3;}if(_4f2.value._fm3(_jm3)){_y73=_4f2.value.imageIndex;if(_y73<0)_y73=0;else if(_y73>=_MU._D4())_y73=_MU._D4()-1;}else if(_em3!=null){var _km3=1.0;if(_Rl3>_Ql3)_km3=-1.0;var _06={headPosition:_cm3,_OU:_km3,_PU:false};_QU(_em3,_06);_cm3=_06.headPosition;_km3=_06._OU;if((_em3._RU!=null)&&(_em3._RU[0]._9P==_SU)){var _M3=_em3._RU[0]; var _lm3=_M3._UU._VU(_cm3,_em3._WU);if(_lm3==null)_y73=-1;else _y73=_lm3._Lr[0]._8S;}}else {_y73=_cm3;if(_y73<0){_y73=-_y73;_y73=_y73%_MU._D4();if(_y73>0)_y73=_MU._D4()-_y73;}else if(_y73>=_MU._D4()){_y73=_y73%_MU._D4();}}}var _bY=_4f2.value._mm3;var add=_4f2.value._nm3;var _e4=Math.min(255,((_bY[0]+add[0])*(_Bl3._cS&0xff)));var _f4=Math.min(255,((_bY[1]+add[1])*((_Bl3._cS>>8)&0xff)));var _g4=Math.min(255,((_bY[2]+add[2])*((_Bl3._cS>>16)&0xff)));var _om3=(Math.max(0,_e4))|(Math.max(0,_f4)<<8)|(Math.max(0, _g4)<<16);var _h4=Math.min(1,(_bY[3]+add[3])*_Bl3._dS);var _tR=1,_uR=1;var _pm3=_MU.xOrigin,_qm3=_MU.yOrigin;var _rm3;var _sm3=false;if((_e8)&&(_MU._bh1!=null)&&(_MU._bh1.enabled==true)){var _tm3=Math.sqrt((_4f2.value._783._v6[0]*_4f2.value._783._v6[0])+(_4f2.value._783._v6[1]*_4f2.value._783._v6[1]));var _um3=Math.sqrt((_4f2.value._783._v6[4]*_4f2.value._783._v6[4])+(_4f2.value._783._v6[5]*_4f2.value._783._v6[5]));if((_tm3<0.999)||(_tm3>1.001)||(_um3<0.999)||(_um3>1.001)){_sm3=true;_tR=_tm3;_uR=_um3;_pm3*=_tm3; _qm3*=_um3;_rm3=_2B(_VA);var _vm3=new _zz(_rm3);_vm3._v6[0]/=_tR;_vm3._v6[1]/=_tR;_vm3._v6[4]/=_uR;_vm3._v6[5]/=_uR;_UA(_VA,_vm3);}}if(!_e8){var _643=_oB[_VA];var _wm3=Math.atan2(_643._v6[1],_643._v6[0])*(-180/Math.PI);var _tm3=Math.sqrt(Math.pow(_643._v6[0],2)+Math.pow(_643._v6[1],2))*_tR;var _um3=Math.sqrt(Math.pow(_643._v6[4],2)+Math.pow(_643._v6[5],2))*_uR;var _xy2=new _Tz(_pm3,_qm3,0);var _l63=_643._0N(_xy2);var _xm3=_l63._pA;var _ym3=_l63._qA;_UA(_VA,new _zz());_MU._19(_y73,_xm3,_ym3,_tm3,_um3,_wm3,_om3, Math.max(0,_h4));_UA(_VA,_643);}else {_MU._19(_y73,_YS._lP+_pm3,_YS._nP+_qm3,_tR,_uR,0,_om3,Math.max(0,_h4));}if(_sm3){_UA(_VA,_rm3);}};_181.prototype._2m3=function(_G63,_YS,_Bl3,_4f2,_r3,_Ql3,_Rl3,_Sl3,_Tl3){var keyframeStore=_r3._UU;var _zm3=[];var _Am3=[];var _Bm3=1,offset=0;var _Cm3=keyframeStore._9m3(_Ql3,_Tl3._WU);if(_Cm3==-1)return;_zm3[0]=_Am3[0]=_Cm3;for(var _ml=offset;_ml<_Bm3;_ml++){var _Dm3=_zm3[_ml];var _Em3=_Am3[_ml];for(var i=_Dm3;i<=_Em3;i++){var _FO=keyframeStore._8W[i];var _Fm3=_FO._Lr[0]; var _Gm3=_Fm3._3G;var _Hm3=_zT._SW(_Gm3);if(_Hm3==null)continue;_d91.push(_FO);_d91.push(_Fm3);_d91.push(_Hm3);{var _Yi;if(_FO._Im3){if(i>=keyframeStore._4W-1)_Yi=_Tl3._WU-_FO._9W;else _Yi=keyframeStore._8W[i+1]._9W-_FO._9W;}else _Yi=_FO._WU;if((_Ql3>=_FO._9W)&&(_Ql3<(_FO._9W+_Yi)))if((Math.floor(_Ql3)>=_FO._9W)&&(Math.floor(_Ql3)<(_FO._9W+_Yi))){_hN();var _am3=Math.max(_Ql3,_FO._9W);var _Jm3=Math.max(_Rl3,_FO._9W);_am3=Math.min(_am3,_FO._9W+(_Yi-1));_Jm3=Math.min(_Jm3,_FO._9W+(_Yi-1));var _cm3=_am3-_FO._9W; var _Km3=_Jm3-_FO._9W;var _dm3=1.0;if(_Tl3._9h1!=0.0){if(_Tl3._ah1==_wR)_dm3=_Hm3._9h1/_Tl3._9h1;else _dm3=_Hm3._9h1;}if(_4f2.value._fm3(_gm3)){_dm3*=_4f2.value.imageSpeed;}_cm3*=_dm3;_Km3*=_dm3;var _km3=1.0;if(_Rl3>_Ql3)_km3=-1.0;var _06={headPosition:_cm3,_OU:_km3,_PU:false};_QU(_Hm3,_06);_cm3=_06.headPosition;_km3=_06._OU;this._Ol3(_G63,_YS,_Bl3,_4f2._7m3,_cm3,_Km3,_km3,_Hm3,true);}}_d91.pop();_d91.pop();_d91.pop();}}};function _Lm3(){this._Mm3=0xCAFEBABE;this._Nm3=0xCAFEBABE;this._Om3=0xCAFEBABE;this._Pm3=0xCAFEBABE; this._Qm3=0xCAFEBABE;this._Rm3=0xCAFEBABE;this._Sm3=0xCAFEBABE;this._Tm3=0xCAFEBABE;this._Um3=0xCAFEBABE;}_Lm3.prototype._Vm3=function(){if(this._Mm3!=0xCAFEBABE)_e8._la._Ba(_9a._ZZ1,this._Mm3);if(this._Nm3!=0xCAFEBABE)_e8._la._Ba(_9a._RZ1,this._Nm3);if(this._Om3!=0xCAFEBABE)_e8._la._Ba(_9a._TZ1,this._Om3);if(this._Pm3!=0xCAFEBABE)_e8._la._Ba(_9a._WZ1,this._Pm3);if(this._Qm3!=0xCAFEBABE)_e8._la._Ba(_9a._iC,this._Qm3);if(this._Rm3!=0xCAFEBABE)_e8._la._Ba(_9a._UB,this._Rm3);if(this._Sm3!=0xCAFEBABE)_e8._la._Ba(_9a._kC, this._Sm3);if(this._Tm3!=0xCAFEBABE)_e8._la._Ba(_9a._mC,this._Tm3);if(this._Um3!=0xCAFEBABE)_e8._la._Ba(_9a._ZC,this._Um3);};_Lm3.prototype._FA=function(){this._Mm3=_e8._la._ma(_9a._ZZ1);this._Nm3=_e8._la._ma(_9a._RZ1);this._Om3=_e8._la._ma(_9a._TZ1);this._Pm3=_e8._la._ma(_9a._WZ1);this._Qm3=_e8._la._ma(_9a._iC);this._Rm3=_e8._la._ma(_9a._UB);this._Sm3=_e8._la._ma(_9a._kC);this._Tm3=_e8._la._ma(_9a._mC);this._Um3=_e8._la._ma(_9a._ZC);};_Wm3=[];_Xm3=null;_Ym3=0;_181.prototype._3m3=function(_G63,_YS, _Bl3,_4f2,_r3,_Ql3,_Rl3,_Sl3,_Tl3){var _Zm3=null;var __m3=null;var _0n3=null;var _1n3=null;var _dg2=_4f2._7m3==null?null:_4f2._7m3;for(var i=0;i<_r3._RU.length;i++){var _2n3=_r3._RU[i];if(_2n3._9P==_291){_Zm3=_2n3;_0n3=_dg2;if(__m3!=null)break;}else if(_2n3._9P==_491){__m3=_2n3;_1n3=_dg2;if(_Zm3!=null)break;}_dg2=_dg2._HC1;}if(_Ym3==0){_e8._la._UC();_e8._la._Ba(_9a._RZ1,true);}_e8._la._Ba(_9a._kC,true);_e8._la._Ba(_9a._mC,0);_e8._la._Ba(_9a._ZC,_9a._v12);_e8._la._Ba(_9a._RZ1,true);_e8._la._Ba(_9a._TZ1,_9a._t12); _e8._la._Ba(_9a._iC,0);_e8._la._Ba(_9a._UB,false);_e8._la._Ba(_9a._ZZ1,_Ym3);_e8._la._Ba(_9a._WZ1,_9a._p12);_Ym3++;_d91.push(_Zm3);this._Wl3(_G63,_YS,_Bl3,_0n3._7m3,_Ql3,_Rl3,_Sl3,_Zm3._RU,_Tl3);_d91.pop();_Ym3--;if(_Ym3==0){_e8._la._Ba(_9a._iC,_e8._la._d52(_9a._iC));_e8._la._Ba(_9a._UB,_e8._la._d52(_9a._UB));_e8._la._Ba(_9a._kC,_e8._la._d52(_9a._kC));_e8._la._Ba(_9a._mC,_e8._la._d52(_9a._mC));_e8._la._Ba(_9a._ZC,_e8._la._d52(_9a._ZC));}_e8._la._Ba(_9a._ZZ1,_Ym3+1);_e8._la._Ba(_9a._WZ1,_9a._j12); _d91.push(__m3);this._Wl3(_G63,_YS,_Bl3,_1n3._7m3,_Ql3,_Rl3,_Sl3,__m3._RU,_Tl3);_d91.pop();_e8._la._Ba(_9a._WZ1,_9a._q12);_e8._la._Ba(_9a._iC,0);_e8._la._Ba(_9a._UB,0);_e8._la._Ba(_9a._kC,true);_e8._la._Ba(_9a._mC,0);_e8._la._Ba(_9a._ZC,_9a._v12);_Ym3++;_d91.push(_Zm3);this._Wl3(_G63,_YS,_Bl3,_0n3._7m3,_Ql3,_Rl3,_Sl3,_Zm3._RU,_Tl3);_d91.pop();_Ym3--;if(_Ym3==0){_e8._la._VC();}};_181.prototype._4m3=function(_G63,_YS,_Bl3,_4f2,_r3,_Ql3,_Rl3,_Sl3,_Tl3){var keyframeStore=_r3._UU;var _3n3=keyframeStore._9m3(_Ql3, _Tl3._WU);if(_3n3==-1)return;var _4n3=keyframeStore._8W[_3n3];if(_4n3!=null){_d91.push(_4n3);var _c91=_zT._8U(_Bl3._gS);if(_c91!=null){var _rm3=_2B(_VA);var _5n3=new _zz();_5n3._uB();_UA(_VA,_5n3);for(var _6n3 in _4n3._Lr){var _7n3=_4n3._Lr[_6n3];_d91.push(_7n3);var _8n3=_c91._9n3[_an3(_d91)];if(_8n3!=null){{var _1u=_Hn._ac3(_8n3._LV);if((_1u!=null)&&(_1u._0a3())){if(!(_1u.marked||(!_1u.active)||(!_1u.visible))){if(!_1u._3A2[_WD2]){var _qA2=_D5._E5(_1u.sprite_index);if(_qA2){if((_1u.image_xscale==1.0)&&(_1u.image_yscale==1.0)&&(_1u.image_angle==0.0)&&(_1u.image_blend==0xffffff)){ _qA2._Yk1(_1u.image_index,_1u.x,_1u.y,_1u.image_alpha*_Nc);}else {_qA2._19(_1u.image_index,_1u.x,_1u.y,_1u.image_xscale,_1u.image_yscale,_1u.image_angle,_Qc(_1u.image_blend),_1u.image_alpha*_Nc);}}}else {_d6=_1u;_1u._N5(_WD2,0,_1u,_1u);_d6=null;}}}}}_d91.pop();}_UA(_VA,_rm3);}_d91.pop();}};_181.prototype._6m3=function(_G63,_YS,_Bl3,_4f2,_r3,_Ql3,_Rl3,_Sl3,_Tl3){var _8W=_r3._UU;var _bn3=null;var index=_8W._9m3(_Ql3,_Tl3._WU);if(index!=-1){var _cn3=_8W._8W[index];if(_cn3!=null){_bn3=_cn3._Lr[0];}}if(_Bl3._gS==-1)return; var _Ht=_zT._8U(_Bl3._gS);var _dn3=_Ht._en3[_r3.id];if(_dn3!==undefined&&_dn3!==_bn3){var _fn3=_Ht._gn3[_r3.id];if(_fn3!==undefined&&_fn3!=-1){_Vo(_fn3);}_Ht._gn3[_r3.id]=-1;}var _Nq=-1;var _hn3=_Ht._gn3[_r3.id];if(_hn3===undefined||_hn3===-1){if(_bn3&&_bn3.particleSystemIndex!=-1){_Nq=_0K._E5(_bn3.particleSystemIndex)._vT();_v21(_Nq,false);_u21(_Nq,false);_Ht._gn3[_r3.id]=_Nq;}}else {_Nq=_hn3;}if(_Nq!=-1){var _bY=_4f2.value._mm3;var add=_4f2.value._nm3;var _e4=Math.min(255,((_bY[0]+add[0])*(_Bl3._cS&0xff))); var _f4=Math.min(255,((_bY[1]+add[1])*((_Bl3._cS>>8)&0xff)));var _g4=Math.min(255,((_bY[2]+add[2])*((_Bl3._cS>>16)&0xff)));var _om3=(Math.max(0,_e4))|(Math.max(0,_f4)<<8)|(Math.max(0,_g4)<<16);var _h4=Math.min(1,(_bY[3]+add[3])*_Bl3._dS);_x21(_Nq,_om3,_h4);}_Ht._en3[_r3.id]=_bn3;};_181.prototype._5m3=function(_G63,_YS,_Bl3,_4f2,_r3,_Ql3,_Rl3,_Sl3,_Tl3){var keyframeStore=_r3._UU;var _8m3=keyframeStore._9m3(_Ql3,_Tl3._WU);if(_8m3==-1)return;var _in3=keyframeStore._8W[_8m3];var text=_in3._Lr[0].text;if(text==null)return; var wrap=_in3._Lr[0].wrap;var alignment=_in3._Lr[0].alignment;var _jn3=_in3._Lr[0].fontIndex;var _kn3=draw_get_font();var _ln3=draw_get_color();var _Ok3=draw_get_alpha();var _bY=_4f2.value._mm3;var add=_4f2.value._nm3;var _e4=Math.min(255,((_bY[0]+add[0])*(_Bl3._cS&0xff)));var _f4=Math.min(255,((_bY[1]+add[1])*((_Bl3._cS>>8)&0xff)));var _g4=Math.min(255,((_bY[2]+add[2])*((_Bl3._cS>>16)&0xff)));var _om3=(Math.max(0,_e4))|(Math.max(0,_f4)<<8)|(Math.max(0,_g4)<<16);var _h4=Math.min(1,(_bY[3]+add[3])*_Bl3._dS);draw_set_font(_jn3); draw_set_color(_om3);draw_set_alpha(_h4);var _mn3=-1;var _nn3=-1;if(_4f2.value._on3&(1<<_pn3)){_mn3=_4f2.value._qn3;_nn3=_4f2.value._rn3;}var _Y33=0.0;if(_4f2.value._on3&(1<<_sn3)){_Y33=_4f2.value._tn3;}var _un3=0.0;if(_4f2.value._on3&(1<<_vn3)){_un3=_4f2.value._wn3;}var _xn3=0.0;if(_4f2.value._on3&(1<<_yn3)){_xn3=_4f2.value._zn3;}var _An3=_4f2.value._Bn3;_QE._4H();var _Cn3=_QE._y53(text,_mn3,_nn3,alignment,wrap,_Y33,_un3,_xn3);var _132=wrap&&((_Cn3._G53>_mn3+2)||(_Cn3._W53>_nn3+2));if(_132){if(_e8){if(_Wm3==null||_Wm3.length==0){ if(_Xm3==null)_Xm3=new _Lm3();_Xm3._FA();_e8._la._Ba(_9a._RZ1,true);}var state=new _Lm3();state._Om3=_9a._v12;state._Pm3=_9a._l12;state._Qm3=0;state._Rm3=0;state._Mm3=_Wm3.length+1;state._Vm3();_Wm3.push(state);if(_Xm3._Sm3==0){_e8._la._Ba(_9a._kC,true);_e8._la._Ba(_9a._mC,0);_e8._la._Ba(_9a._ZC,_9a._v12);}var _F9=4;var _Ca=_e8._Da(_9a._Dc,null,_e8._Fa,_F9);var _Ga=_Ca._Ha()>>2;var _Dn3=_Ga*_Ca._Ia;_Ca._Ia+=_F9;var _Ja=_Ca._Ka;var _La=_Ca._Ma;_Ja[_Dn3+0]=0.0;_Ja[_Dn3+1]=0.0;_Ja[_Dn3+2]=_Ta;_La[_Dn3]=0xffffffff; _Dn3+=_Ga;_Ja[_Dn3+0]=0.0;_Ja[_Dn3+1]=_nn3;_Ja[_Dn3+2]=_Ta;_La[_Dn3]=0xffffffff;_Dn3+=_Ga;_Ja[_Dn3+0]=_mn3;_Ja[_Dn3+1]=0.0;_Ja[_Dn3+2]=_Ta;_La[_Dn3]=0xffffffff;_Dn3+=_Ga;_Ja[_Dn3+0]=_mn3;_Ja[_Dn3+1]=_nn3;_Ja[_Dn3+2]=_Ta;_La[_Dn3]=0xffffffff;_e8._la._Ba(_9a._WZ1,_9a._p12);_e8._la._Ba(_9a._TZ1,_Wm3.length<2?_9a._u12:_9a._t12);_e8._la._Ba(_9a._iC,_Wm3.length<2?_Xm3._Qm3:0);_e8._la._Ba(_9a._UB,_Wm3.length<2?_Xm3._Rm3:0);if(_Xm3._Sm3==0){_e8._la._Ba(_9a._kC,_Xm3._Sm3);_e8._la._Ba(_9a._mC,_Xm3._Tm3);_e8._la._Ba(_9a._ZC, _Xm3._Um3);}}else {_643=_oB[_VA];_1a.save();var _En3=new _Tz(0,0,0);var _Fn3=new _Tz(0,_nn3,0);var _Gn3=new _Tz(_mn3,_nn3,0);var _Hn3=new _Tz(_mn3,0,0);var _In3=_643._0N(_En3);var _Jn3=_643._0N(_Fn3);var _Kn3=_643._0N(_Gn3);var _Ln3=_643._0N(_Hn3);_1a.beginPath();_1a.moveTo(_In3._pA,_In3._qA);_1a.lineTo(_Jn3._pA,_Jn3._qA);_1a.lineTo(_Kn3._pA,_Kn3._qA);_1a.lineTo(_Ln3._pA,_Ln3._qA);_1a.closePath();_1a.clip();}}_QE._h63(_Cn3._PE,0.0,0.0,_Y33,0.0,_Cn3._G53,_An3);if(_132){if(_e8){if(_Xm3._Sm3==0){_e8._la._Ba(_9a._kC, true);_e8._la._Ba(_9a._mC,0);_e8._la._Ba(_9a._ZC,_9a._v12);}_e8._la._Ba(_9a._WZ1,_9a._k12);_e8._la._Ba(_9a._TZ1,_9a._t12);_e8._la._Ba(_9a._iC,0);_e8._la._Ba(_9a._UB,0);var _F9=4;var _Ca=_e8._Da(_9a._Dc,null,_e8._Fa,_F9);var _Ga=_Ca._Ha()>>2;var _Dn3=_Ga*_Ca._Ia;_Ca._Ia+=_F9;var _Ja=_Ca._Ka;var _La=_Ca._Ma;_Ja[_Dn3+0]=0.0;_Ja[_Dn3+1]=0.0;_Ja[_Dn3+2]=_Ta;_La[_Dn3]=0xffffffff;_Dn3+=_Ga;_Ja[_Dn3+0]=0.0;_Ja[_Dn3+1]=_nn3+1;_Ja[_Dn3+2]=_Ta;_La[_Dn3]=0xffffffff;_Dn3+=_Ga;_Ja[_Dn3+0]=_mn3+1;_Ja[_Dn3+1]=0.0;_Ja[_Dn3+2]=_Ta; _La[_Dn3]=0xffffffff;_Dn3+=_Ga;_Ja[_Dn3+0]=_mn3+1;_Ja[_Dn3+1]=_nn3+1;_Ja[_Dn3+2]=_Ta;_La[_Dn3]=0xffffffff;var restore=_Wm3.pop();restore._Vm3();if(_Wm3.length==0){_Xm3._Vm3();}}else {_1a.restore();}}draw_set_font(_kn3);draw_set_color(_ln3);draw_set_alpha(_Ok3);};_181.prototype._Mn3=function(_G63){var _jI=_kI;var _lI=_mI;_kI=_WD2;_mI=0;var _GT,_7P,i,_Vk;_Vk=this._gT._Vk;for(i=_Vk.length-1;i>=0;i--){_GT=_Vk[i];if(_GT===null||_GT._AR<=0){continue;}if(_3u._TS()){_qx(_3u._US());}else {_qx(_GT.depth);}if(_GT._HR)_Nn3(_GT, _T03,_WD2,0);_On3(_GT._FR);_Pn3(_GT._ne,_GT._DR);for(var __5=0;__5<_GT._NQ.length;__5++){_7P=_GT._NQ._E5(__5);if(_7P!=null){if(_7P._9P===_dR){this._Mk3(_G63,_GT,_7P);}else if(_7P._9P===_OQ){this._Jk3(_G63,_GT,_7P);}else if(_7P._9P===_eR){this._Kk3(_G63,_GT,_7P);}else if(_7P._9P===_fR){this._Pk3(_G63,_GT,_7P,0,0,0);}else if(_7P._9P===_aP){this._wW(_G63,_GT,_7P);}else if(_7P._9P===_gR){this._sl3(_G63,_GT,_7P);}else if(_7P._9P===_hR){this._zl3(_G63,_GT,_7P);}else if(_7P._9P===_iR){this._Al3(_G63,_GT,_7P);} }}_Pn3(_GT._ne,_GT._ER);_Qn3(_GT._FR);if(_GT._HR)_Nn3(_GT,_U03,_WD2,0);}_kI=_jI;_mI=_lI;};_181.prototype._Rn3=function(_G63){_NM=_G63;_hN();if(this._s03){_RK(_Qc(g_pBuiltIn.background_color));}else if(this._gT!=null&&this._gT.length>0){_RK(_Qc(0xfff7ffff));}this._Sn3(_G63,_RF2);if(this._gT!=null&&this._gT.length>0){this._Mn3(_G63);}this._Sn3(_G63,_SF2);};_181.prototype._Tn3=function(){if(_km>=0){var _XF=_D5._E5(_km);if(_XF!=null){_XF._19(__L2,_ug._1R-_bg.left,_ug._2R-_bg.top,1.0,1.0,0,0xffffff,1.0); }__L2++;if(__L2>_XF._E6)__L2-=_XF._E6;}};_181.prototype._wX=function(_jg){var index=this._Q23.indexOf(_jg);if(index!=-1){return;}this._Q23.push(_jg);this._P23++;};_181.prototype._yX=function(_jg){var index=this._Q23.indexOf(_jg);if(index!=-1){this._Q23.splice(index,1);this._P23--;return;}};_181.prototype._R23=function(){this._Q23.length=0;this._P23=0;};function _Nn3(_S23,_Un3,_Vn3,_Wn3){if(_S23===null)return;if(_Un3===null)return;var _Xn3=_S23._PR();if(_Xn3==null)return;var _mX=_fX._133(_Xn3);if(_mX==null)return; var _1Y="gml"+_Un3;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_Un3]!=undefined)){_1Y=g_var2obf[_Un3];}if(_mX[_1Y]!==undefined){_mX[_1Y](_S23._ne);}};function _Pn3(_Yn3,_BE){if(_BE!=null){var _0n=_3u._FV();if(_0n===null){var _QV=new _iQ(0,0,0,0,false,true);_3u._EV(_QV);_0n=_3u._FV();}_0n._2T(true);_0n._5c3(_Yn3);_BE(_0n,_0n);_0n._2T(false);}};function _On3(_Zn3){if(_Zn3!=-1){shader_set(_Zn3);}};function _Qn3(_Zn3){if(_Zn3!=-1){shader_reset();}};_181.prototype._Sn3=function(_G63,_e3){var _qA2,_1u,i,_Vk, _zH;_kI=_e3;_NM=_G63;_hN();if((this._gT.length>0)){var _GT,_7P;_Vk=this._gT._Vk;for(i=_Vk.length-1;i>=0;i--){_GT=_Vk[i];if(_GT==null||_GT._AR==false){continue;}_mI=_RF2;if(_GT._HR)_Nn3(_GT,_T03,_RF2,0);_On3(_GT._FR);_Pn3(_GT._ne,_GT._DR);for(var __5=0;__5<_GT._NQ.length;__5++){_7P=_GT._NQ._E5(__5);if(_7P!=null){if(_7P._9P===_OQ){_1u=_7P._PQ;if(_1u!=null){if(!(_1u.marked||(!_1u.active)||(!_1u.visible))){if(_1u._3A2[_e3]){_1u._N5(_e3,0,_1u,_1u);}}}}}}_mI=_SF2;_Pn3(_GT._ne,_GT._ER);_Qn3(_GT._FR);if(_GT._HR)_Nn3(_GT, _U03,_RF2,0);}}else {_Vk=this._NO._Vk;_zH=_D5.Sprites;for(i=_Vk.length-1;i>=0;i--){_1u=_Vk[i];if(_1u.marked||!_1u.visible)continue;if(_1u._3A2[_e3]){_1u._N5(_e3,0,_1u,_1u);}}}};_181.prototype.__n3=function(_e4){_pL2=_tL2;_pL2._cg=0;_pL2._eg=0;_pL2._0o3=_e4.right;_pL2._1o3=_e4.bottom;_pL2._dg=_e4.right;_pL2._fg=_e4.bottom;_pL2._2o3=1.0;_pL2._3o3=1.0;_TK();{_Aj1(0,0,_e4.right,_e4.bottom);_Cj1(0,0,_e4.right,_e4.bottom,0);if(this.__j3&&_0q1){_RK(_Bn1);}this._Sn3(_e4,_VF2);}__K();};_181.prototype._4o3=function(){ if(_0q1){if((_Ki1<0)||!surface_exists(_Ki1)){_Ki1=surface_create(_Yi1,_Zi1,_bs);g_pBuiltIn.application_surface=_Ki1;debug("Application Surface created: w="+_Yi1+", h="+_Zi1);}if(_Li1){_Li1=false;surface_create(_Mi1,_Ni1,_bs,_Ki1);_Yi1=_Mi1;_Zi1=_Ni1;debug("Application Surface resized: w="+_Yi1+", h="+_Zi1);_5o3();}surface_set_target(_Ki1);}};_181.prototype._6o3=function(_e4){_TK();var _7o3=new _IF();_7o3._nj(_NM);if(_v3){_Bj1(0,0,_e4.right,_e4.bottom,0);}_On1=1;_Pn1=1;this._4o3();this._Ik3();var _5g; if(!this._6g){_5g=_7g;_Aj1(0,0,_Yi1,_Zi1);if(_v3){_dL2._V71=_0z2;_Bj1(0,0,_t3._2V,_t3._4V,0);}else {_Cj1(0,0,_t3._2V,_t3._4V,0);}}else {_5g=this._8g;if(this._Zj3){_Aj1(0,0,_Yi1,_Zi1);_Cj1(0,0,_Yi1,_Zi1,0);_RK(_Bn1);}}var _8o3=_1q1.w/_Yi1;var _9o3=_1q1.h/_Zi1;var _VZ=_On1;var _WZ=_Pn1;_sL2=0;for(var i=0;i<_5g.length;i++){_pL2=_5g[i];if(_pL2.visible){var _ao3=_bo3;_TK();{if(_pL2._pN!=-1){_1j1(_pL2._pN);}_pL2._cg=_pL2._Ck3*_VZ*_8o3+_1q1.x;_pL2._eg=_pL2._Dk3*_WZ*_9o3+_1q1.y;_pL2._0o3=_pL2._Ek3*_VZ*_8o3;_pL2._1o3=_pL2._Fk3*_WZ*_9o3; _pL2._dg=_pL2._cg+_pL2._0o3;_pL2._fg=_pL2._eg+_pL2._1o3;_pL2._2o3=_pL2._0o3/_pL2._9j1;_pL2._3o3=_pL2._1o3/_pL2._aj1;if(_pL2._pN!=-1){_Aj1(0,0,surface_get_width(_pL2._pN),surface_get_height(_pL2._pN));}else {_Aj1(_pL2._Ck3*_VZ,_pL2._Dk3*_WZ,_pL2._Ek3*_VZ,_pL2._Fk3*_WZ);}if(_v3){_jj1._by2(_pL2._V71);var _Kx2=_jj1._kj1();if(_Kx2!=null){_Kx2._Cd();_Kx2._Nj1();}}else _Cj1(_pL2._7j1,_pL2._8j1,_pL2._9j1,_pL2._aj1,_pL2.angle);if((!_v3)){if(Math.abs(_pL2.angle)<0.001){_e4.left=_pL2._7j1;_e4.top=_pL2._8j1;_e4.right=_pL2._7j1+_pL2._9j1; _e4.bottom=_pL2._8j1+_pL2._aj1;}else {var _Uu=_pL2.angle*(_L6/180);var _ni=Math.abs(Math.sin(_Uu));var c=Math.abs(Math.cos(_Uu));var _bk=(c*_pL2._9j1)+(_ni*_pL2._aj1);var _OM=(_ni*_pL2._9j1)+(c*_pL2._aj1);_e4.left=_pL2._7j1+(_pL2._9j1-_bk)/2;_e4.right=_pL2._7j1+(_pL2._9j1+_bk)/2;_e4.top=_pL2._8j1+(_pL2._aj1-_OM)/2;_e4.bottom=_pL2._8j1+(_pL2._aj1+_OM)/2;}g_pBuiltIn.view_current=i;this._Rn3(_e4);}else {g_pBuiltIn.view_current=i;this._Rn3(_NM);}if(_pL2._pN!=-1){surface_reset_target();}_sL2++;if(_v3){var _Kx2=_jj1._kj1(); if(_Kx2!=null){_Kx2._Ed();}_jj1._by2(-1);}}__K();}}_NM._nj(_7o3);__K();};_181.prototype._co3=function(_e4){if(_Up1&&_0q1){_TK({_do3:true,_eo3:true});_e4.left=0;_e4.top=0;_e4.right=window_get_width();_e4.bottom=window_get_height();var rect=_1q1;var _FH=_e8;var _fo3=_FH&&gpu_get_alphatestenable();if(_FH)gpu_set_alphatestenable(false);_Aj1(0,0,_e4.right,_e4.bottom);_Cj1(0,0,_e4.right,_e4.bottom,0);draw_surface_stretched(_Ki1,rect.x,rect.y,rect.w,rect.h);if(_FH)gpu_set_alphatestenable(_fo3);__K({_go3:true, _ho3:true});}};_181.prototype._io3=function(_e4){_e4.left=0;_e4.top=0;_e4.right=window_get_width();_e4.bottom=window_get_height();_pL2=_tL2;_pL2._cg=0;_pL2._eg=0;_pL2._0o3=_e4.right;_pL2._1o3=_e4.bottom;_pL2._dg=_e4.right;_pL2._fg=_e4.bottom;_pL2._2o3=1.0;_pL2._3o3=1.0;_TK();{_Aj1(0,0,_e4.right,_e4.bottom);_Cj1(0,0,_e4.right,_e4.bottom,0);this._Sn3(_e4,_WF2);}__K();};_181.prototype.DrawGUI=function(_e4){var _jo3=_On1;var _ko3=_Pn1;var _DK=_EK;var _AK=_BK;if(_DK<0)_DK=window_get_width();if(_AK<0)_AK=window_get_height(); _TK({_do3:true});{_e4.left=0;_e4.top=0;_e4.right=window_get_width();_e4.bottom=window_get_height();_On1=_e4.right/_DK;_Pn1=_e4.bottom/_AK;_pL2=_tL2;_pL2._cg=0;_pL2._eg=0;_pL2._0o3=_e4.right;_pL2._1o3=_e4.bottom;_pL2._dg=_e4.right;_pL2._fg=_e4.bottom;_pL2._2o3=_On1;_pL2._3o3=_Pn1;_JK=true;_Aj1(0,0,_e4.right,_e4.bottom);_KK();var _7o3=new _IF();_7o3._nj(_NM);_NM.left=0;_NM.top=0;_NM.right=_DK;_NM.bottom=_AK;this._Sn3(_e4,_TF2);this._Sn3(_e4,_PF2);this._Sn3(_e4,_UF2);_JK=false;_NM._nj(_7o3);}__K({_go3:true} );_On1=_jo3;_Pn1=_ko3;};_181.prototype._lo3=function(_e4){if(_km>=0){_TK();_Aj1(0,0,_e4.right,_e4.bottom);_Cj1(0,0,_e4.right,_e4.bottom,0);this._Tn3();__K();}};_181.prototype._19=function(){_TK();_WK=0;_XK=0;_YK=canvas.width;_ZK=canvas.height;var _e4=new _IF();if(this._6g){_e4.left=0;_e4.top=0;_e4.right=window_get_width();_e4.bottom=window_get_height();}else {_e4._nj(_NM);}this.__n3(_e4);this._6o3(_e4);if(_0q1){surface_reset_target();}if(_Hi1.length!=0){_H4("Unbalanced surface stack. You MUST use surface_reset_target() for each set."); return;}this._io3(_e4);this._co3(_e4);this.DrawGUI(_e4);this._lo3(_e4);__K();};function _KK(){var _DK=_EK;var _AK=_BK;if(_DK<0)_DK=_Gn1;if(_AK<0)_AK=_Hn1;var _VZ=1;var _WZ=1;var _D_=0;var _E_=0;if(_GK){_VZ=_FK;_WZ=_CK;_D_=_HK;_E_=_IK;_t63(_VZ,_WZ,_D_,_E_);}else {_D_=_1q1.x;_E_=_1q1.y;if(_EK>0){_VZ=_1q1.w/_DK;}if(_BK>0){_WZ=_1q1.h/_AK;}_t63(_VZ,_WZ,_D_,_E_);}_hN();};_181.prototype._mo3=function(){var _06=[];var _MO=_Hn._7c3._Vk;for(var i=0;i<_MO.length;i++){var _1u=_MO[i];if(_1u.marked){_06[_06.length]=_1u;} }for(var i=0;i<_06.length;i++){var _1u=_06[i];this._sk3(_1u);}};_181.prototype._sk3=function(_1u){if(this._v41&&_1u._s51){this._v41._OF1(_1u._s51);}_3u._gU(this,_1u);_Hn._bc3(_1u);this._NO.__S(_1u);this._xQ.__S(_1u);_1u._VF._gU(_1u);};_181.prototype._yQ=function(_Ht){if(_Ht.active){this._NO.__S(_Ht);_Ht._VF._gU(_Ht);this._xQ._Gf(_Ht);_Ht.active=false;}};_181.prototype._zQ=function(_Ht){if(!_Ht.active){this._xQ.__S(_Ht);this._NO._Gf(_Ht);_Ht._VF._cU(_Ht);_Ht.active=true;}};_181.prototype._5l1=function(_Mj3){ this._sl1._Gf(_Mj3);this._9l1[_Mj3.id]=_Mj3;this._Jl1++;};_181.prototype._7l1=function(_jg){var _2l1=this._9l1[_jg];if(_2l1){this._sl1._7l1(_2l1);this._9l1[_jg]=undefined;this._Jl1--;}};_181.prototype._Al1=function(_Al){var _Cl1=this._sl1._E5(_Al);if(_Cl1!=null&&_Cl1!=undefined){var _Vk=_Cl1._PZ();for(var _Dl1=0;_Dl1<_Vk.length;_Dl1++){var _2l1=_Vk[_Dl1];if(_2l1){this._9l1[_2l1.id]=null;this._Jl1--;}}}this._sl1._Ll(_Al);};_181.prototype._no3=function(){this._Jl1=0;this._9l1=[];};_181.prototype._oo3=function(){ this._Q71.tiles=[];};_181.prototype._po3=function(){if(this._I93.length==0)return;var _Sg=this._I93;for(var i=0;i<_Sg.length;i++){var _1u=_Sg[i];var room=_t3;if(room!=null){var _6P=_3u._MQ(room,_1u._qT);if(_6P!=null){if(floor(_6P.depth)!=floor(_1u.depth)){if(_6P._BR&&_6P._NQ.length==1){_3u._oU(room,_6P,_1u.depth,true);}else {_3u._hU(room,_6P,_1u);_3u._cU(room,_1u);}}}}}this._I93=[];};_181.prototype._qo3=function(){if(_v3){var _Yi=_hM2.length;for(var i=0;i<_Yi;i++){var _ro3=_hM2[i];var _ji3=_ro3._Ji3;var type=_ro3.type; var id=_ji3.id;if(type==0){_3u._eT(_t3,_ji3._mh3,true);var _Di3=new _lS();_Di3._mS=id;_ji3._mh3=_3u._NT(_t3,_ji3.depth,_Di3,true,true);}}}if(_hM2.length!=0)_hM2=[];};_181.prototype._CT=function(_jg){this._aX[this._aX.length]=_jg;};_181.prototype._7U=function(_jg){for(var i=0;i=this._781.length)return null;return this._781[_so3];};_UM2.prototype._981=function(_so3){return this._781[this._b81[_so3]];};_UM2.prototype._Ll=function(_so3){this._781[_so3]=null;};_UM2.prototype._381=function(_so3){var _to3=_mT._E5(_so3);var _uo3=new _181();_uo3._281();_uo3._7k3(_to3._Q71);this._Gf(_uo3);return _uo3.id;};_UM2.prototype._481=function(_pk,_sj){var _vo3=this._781[_pk];var _wo3=this._781[_sj];if(!_vo3||!_wo3){return;}_vo3._7k3(_wo3._Q71); };_UM2.prototype._xo3=function(){_jj1._Lx2();_5N2();for(var _yo3 in this._781){if(!this._781.hasOwnProperty(_yo3))continue;var room=this._781[_yo3];for(var i=0;i<8;i++){var _zo3=room._s52(i);if(_zo3){_zo3._V71=-1;}}var _Ao3=room._Q71;if(_Ao3){for(var i=0;i<8;i++){var _Sz=_Ao3.views[i];if(_Sz){if(_Sz._V71!==undefined){delete _Ao3.views[i]._V71;}}else {var _g4=0;}}}}_jj1._Gx2();};_Bo3=-0.0001;function _an3(_Co3){var hash="";for(var i=0;i<_Co3.length;i++){var _ue=_Co3[i];hash+=_ue.__type+_ue._Do3.toString();}return hash; }/*@constructor */function _cV2(){this._rV2=-1;this._0W2=-1;this._Do3=_Eo3++;this.__yyIsGMLObject=true;this._1W2=function(){};this._M_1=function(_Fo3){if(this._0W2<_vV2()){this._1W2();this._0W2=_vV2();}if(_Fo3=0)&&(_ue<_Oo3)){this._Lp3=_ue;}else {debug("Trying to set interpolation property of track to out-of-bounds value "+yyGetReal(_B3));}}}});this._wt2=function(_Mp3, _el,_Np3){if(!this.enabled)return null;if(this._UU==null)return null;if(this._UU._4W==0)return null;return this._Op3(_Mp3,_el,_Np3);};this._uV2=function(_Mp3,_Np3){_Np3+=1;if(_Mp3>this._oV2.length){var _Pp3=this._oV2.length;this._oV2.length=_Mp3+1;for(var i=_Pp3;i1){var _CV2=this._DV2(_Mp3);_CV2._kP=(key._9W+(key._WU));_CV2._dV2=value._Sp3;}else if(key._Im3==true){if(i==(this._UU._4W-1)){if((_Np3-key._9W)>1){var _CV2=this._DV2(_Mp3);_CV2._kP=key._9W+(_Np3-key._9W);_CV2._dV2=value._Sp3;}}else {var _Tp3=this._UU._8W[i+1];if(_Tp3._9W>(key._9W+1)){var _CV2=this._DV2(_Mp3);_CV2._kP=_Tp3._9W;_CV2._dV2=value._Sp3;}}}}else {var _Up3=key._WU;if(key._Im3==true){if(i==(this._UU._4W-1)){if(_Np3<=0)continue; else {_Up3=_Np3-key._9W;}}else {var _Tp3=this._UU._8W[i+1];if(_Tp3._9W>key._9W){_Up3=_Tp3._9W-key._9W;}}}var _Cr=null;if(value._Vp3){_Cr=value._Rp3;}else {_Cr=_Er._E5(value._Qp3);}if(_Cr==null){continue;}var _Wp3=_Mp3;if(_Wp3>=_Cr._Jr){_Wp3=_Cr._Jr-1;}_Cr._Rr(this,_Wp3,_Mp3,key._9W,_Up3);}}};this._Xp3=function(_Mp3,_Yp3,_el,_Np3,_Zp3){var __p3=null;if(!this.enabled)return null;if(this._UU==null)return null;if(this._UU._4W==0)return null;var _j6=this._oV2[_Mp3];if(_j6==0){return null;}var _0q3=_el-_Yp3;if(_0q3<=0){ __p3=0;return __p3;}var _Fj3=this._pV2[_Mp3];var _1q3=0;if(_j6==1){_1q3=_Fj3[0]._dV2*_0q3;__p3=_1q3;return __p3;}var _2q3=this._Lp3==_No3;var __u=_Fj3[0];var _J6=_I6(__u._kP,_el)-_Yp3;if(_J6>0)_1q3=__u._dV2*_J6;for(var i=1;i<_j6;++i){if(__u._kP>=_el)break;var _0v=_Fj3[i];if(_0v._kP>_Yp3){_J6=_I6(_0v._kP,_el)-__u._kP;if(_J6>0){var _Bm;var offset=(_Yp3-__u._kP);if(!_2q3){if(offset>0)_J6-=offset;_Bm=__u._dV2*_J6;}else {var _h4=(_0v._dV2-__u._dV2)/(_0v._kP-__u._kP);var _Pa=__u._dV2;if(offset>0){_J6-=offset;_Pa+=_h4*offset; }_Bm=_Pa*_J6+(0.5*_h4*_J6*_J6);}_1q3+=_Bm;}}__u=_0v;}var _v62=_el-__u._kP;if(_v62>0){var _Bm=__u._dV2*(_v62);_1q3+=_Bm;}__p3=_H6(_1q3,0);return __p3;};}/*@constructor */function _Kp3(_bV2){_3q3.call(this,_bV2);this._Lp3=_Mo3;this._oV2=[];this._pV2=[];this._4q3=function(_Mp3,_el,_Np3){var _ba=this._5q3();if(_ba!=null){return _ba._4q3(_Mp3,_el,_Np3);}return this._wt2(_Mp3,_el,_Np3);};this._wt2=function(_Mp3,_el,_Np3){throw new Error("Not Implemented");};this._DV2=function(_Mp3){var __V2=new _Yr();if(this._pV2[_Mp3]==undefined){ this._pV2[_Mp3]=[];}this._pV2[_Mp3][this._oV2[_Mp3]]=__V2;this._oV2[_Mp3]=this._oV2[_Mp3]+1;return __V2;};this._Op3=function(_Mp3,_el,_Np3){var __p3=null;var _eh1=false;var _vD1=false;if(_Mp3>=this._oV2.length||this._oV2[_Mp3]==0){_vD1=true;}else if(this._0W2<_vV2()){if(this._UU._M_1(this._rV2)){_eh1=true;}this._0W2=_vV2();}if(_eh1||_vD1){var _6q3=_H6(this._oV2.length,_Mp3+1);for(var i=0;i<_6q3;i++){if((i>=this._oV2.length)||(this._oV2[i]!=-1)){this._uV2(i,_Np3);}}this._rV2=_H6(this._rV2,this._UU._rV2); }var _j6=this._oV2[_Mp3];if(_j6==0){return null;}var _Fj3=this._pV2[_Mp3];if(_Fj3[0]._kP>_el){__p3=_Fj3[0]._dV2;return __p3;}else if(_Fj3[_j6-1]._kP<_el){__p3=_Fj3[_j6-1]._dV2;return __p3;}var start,end,_Zi;start=0;end=_j6;_Zi=(start+end)>>1;while(_Zi!=start){if(_Fj3[_Zi]._kP>_el){end=_Zi;}else {start=_Zi;}_Zi=(start+end)>>1;}if((this._Lp3==_Mo3)||(_Zi==(_j6-1))){__p3=_Fj3[_Zi]._dV2;return __p3;}else {var _7q3=(_Fj3[_Zi]);var _8q3=(_Fj3[_Zi+1]);var prop=0.0;if((_8q3._kP-_7q3._kP)>0.0){prop=(_el-_7q3._kP)/(_8q3._kP-_7q3._kP); }__p3=(_8q3._dV2*prop)+(_7q3._dV2*(1.0-prop));return __p3;}};}/*@constructor */function _Q81(_bV2){_3q3.call(this,_bV2);this._9P=_q81;}/*@constructor */function _R81(_bV2){_3q3.call(this,_bV2);this._9P=_r81;}/*@constructor */function __81(_bV2){_3q3.call(this,_bV2);this._9P=_Z81;}/*@constructor */function _Jp3(_bV2){_Kp3.call(this,_bV2);this._9P=_x81;if((_bV2!=null)&&(_bV2!=undefined)){this._Lp3=_bV2.interpolation;}Object.defineProperties(this,{gmlinterpolation:{enumerable:true,get :function(){return this._Lp3; },set :function(_B3){var _ue=yyGetInt32(_B3);if((_ue>=0)&&(_ue<_Oo3)){this._Lp3=_ue;}else {debug("Trying to set interpolation property of track to out-of-bounds value "+yyGetReal(_B3));}}}});this._wt2=function(_Mp3,_el,_Np3){if(!this.enabled)return null;if(this._UU==null)return null;if(this._UU._4W==0)return null;var __p3=null;var _e4,_f4,_g4,_h4;_e4=_f4=_g4=_h4=1.0;if((_h4=this._Op3(0,_el,_Np3))==null)return null;if((_e4=this._Op3(1,_el,_Np3))==null)return null;if((_f4=this._Op3(2,_el,_Np3))==null)return null; if((_g4=this._Op3(3,_el,_Np3))==null)return null;_e4*=255.0;_f4*=255.0;_g4*=255.0;_h4*=255.0;var _9q3=_I6(_e4,255);var _aq3=_I6(_f4,255);var _bq3=_I6(_g4,255);var _cq3=_I6(_h4,255);__p3=((_cq3<<24)&0xff000000)|((_bq3<<16)&0xff0000)|((_aq3<<8)&0xff00)|(_9q3&0xff);return __p3;};this._uV2=function(_Mp3,_Np3){_Np3+=1;if(_Mp3>this._oV2.length){var _Pp3=this._oV2.length;this._oV2.length=_Mp3+1;for(var i=_Pp3;i1){var _CV2=this._DV2(_Mp3);_CV2._kP=(key._9W+(key._WU-1));_CV2._dV2=this._dq3(value._F_2,_Mp3);}else if(key._Im3==true){if(i==(this._UU._4W-1)){if((_Np3-key._9W)>1){var _CV2=this._DV2(_Mp3);_CV2._kP=key._9W+(_Np3-key._9W);_CV2._dV2=this._dq3(value._F_2,_Mp3);}}else {var _Tp3=this._UU._8W[i+1]; if(_Tp3._9W>(key._9W+1)){var _CV2=this._DV2(_Mp3);_CV2._kP=_Tp3._9W-1;_CV2._dV2=this._dq3(value._F_2,_Mp3);}}}}else {var _Up3=key._WU;if(key._Im3==true){if(i==(this._UU._4W-1)){if(_Np3<=0)continue;else {_Up3=_Np3-key._9W;}}else {var _Tp3=this._UU._8W[i+1];if(_Tp3._9W>key._9W){_Up3=_Tp3._9W-key._9W;}}}var _Cr=null;if(value._Vp3){_Cr=value._Rp3;}else {_Cr=_Er._E5(value._Qp3);}if(_Cr==null){continue;}var _Wp3=_Mp3;if(_Wp3>=_Cr._Jr){_Wp3=_Cr._Jr-1;}_Cr._Rr(this,_Wp3,_Mp3,key._9W,_Up3,1.0/255.0);}}};this._dq3=function(_3d, _eq3){var _fq3=0;switch(_eq3){case 0:_fq3=_3d>>24;break;case 1:_fq3=_3d;break;case 2:_fq3=_3d>>8;break;case 3:_fq3=_3d>>16;break;}_fq3&=0xff;var _gq3=_fq3/255.0;return _gq3;};this._hq3=function(left,right){var _e4=_I6((left&0xff)+(right&0xff),255);var _f4=_I6(((left>>8)&0xff)+((right>>8)&0xff),255);var _g4=_I6(((left>>16)&0xff)+((right>>16)&0xff),255);var _h4=_I6(((left>>24)&0xff)+((right>>24)&0xff),255);return((_h4<<24)&0xff000000)|((_g4<<16)&0xff0000)|((_f4<<8)&0xff00)|(_e4&0xff);};this._iq3=function(left, right){var _e4=((left&0xff)*(right&0xff)/255.0);var _f4=(((left>>8)&0xff)*((right>>8)&0xff)/255.0);var _g4=(((left>>16)&0xff)*((right>>16)&0xff)/255.0);var _h4=(((left>>24)&0xff)*((right>>24)&0xff)/255.0);return((_h4<<24)&0xff000000)|((_g4<<16)&0xff0000)|((_f4<<8)&0xff00)|(_e4&0xff);};this._iq3=function(left,factor){factor=_H6(factor,0.0);factor=_I6(factor,1.0);var _e4=((left&0xff)*factor);var _f4=(((left>>8)&0xff)*factor);var _g4=(((left>>16)&0xff)*factor);var _h4=(((left>>24)&0xff)*factor);return((_h4<<24)&0xff000000)|((_g4<<16)&0xff0000)|((_f4<<8)&0xff00)|(_e4&0xff); };}/*@constructor */function _891(_bV2){_3q3.call(this,_bV2);this._9P=_SU;this._wt2=function(_jq3){var _kq3=undefined;var _lq3=undefined;var _mq3=this._UU._nq3(_jq3);_kq3=_mq3._oq3;_lq3=_mq3.post;var _pq3=(_kq3!==undefined);var _qq3=(_lq3!==undefined);if((!_pq3)&&(!_qq3))return -1.0;if(!_pq3){return _lq3._8S;}if(!_qq3){var _rq3=_kq3._Lr[0]._8S;var _sq3=_rq3+1.0;var _tq3=_kq3._9W;var _uq3=_tq3+_kq3._WU;if(_uq3==_tq3){_uq3+=1.0;}var _qc3=_rq3+((_jq3-_tq3)/(_uq3-_tq3))*(_sq3-_rq3);return _qc3;}var _rq3=_kq3._Lr[0]._8S; var _sq3=_lq3._Lr[0]._8S;var _tq3=_kq3._9W;var _uq3=_lq3._9W;var _qc3=_rq3+((_jq3-_tq3)/(_uq3-_tq3))*(_sq3-_rq3);return _qc3;};}/*@constructor */function _Y81(_bV2){_3q3.call(this,_bV2);this._9P=_s81;}/*@constructor */function _S81(_bV2){_3q3.call(this,_bV2);this._9P=_t81;}/*@constructor */function _791(_bV2){_3q3.call(this,_bV2);this._9P=_691;}/*@constructor */function _T81(_bV2){_3q3.call(this,_bV2);this._9P=_C81;}/*@constructor */function _191(_bV2){_3q3.call(this,_bV2);this._9P=_091;Object.defineProperties(this, {gmlmask:{enumerable:true,get :function(){return this._vq3();},set :function(_B3){this._wq3(_B3);}},gmlsubject:{enumerable:true,get :function(){return this._xq3();},set :function(_B3){this._yq3(_B3);}}});}_191.prototype._zq3=function(_Bp3,_Aq3){for(var i=0;i0){for(var _Jq3=0; _Jq3<_bV2.tags.length;_Jq3++){this._Eq3[_bV2.tags[_Jq3].UniqueTagTypeId]=_bV2.tags[_Jq3];}}this._Fq3=_bV2.tracks.length;this._RU=[];for(var _jl2=0;_jl2>8)&0xff)/255.0;_Sq3._mm3[2]=((color>>16)&0xff)/255.0;_Sq3._mm3[3]=((color>>24)&0xff)/255.0;_Sq3._on3|=(1<<_4p3);}break;case _3p3:if(!_Yq3||!(_Sq3._on3&(1<<_3p3))){var color=0xffffffff;var _Zq3=_M3._4q3(0,_Rq3,_Ue1);if(_Zq3!=null)color=_Zq3;_Sq3._nm3[0]=(color&0xff)/255.0;_Sq3._nm3[1]=((color>>8)&0xff)/255.0;_Sq3._nm3[2]=((color>>16)&0xff)/255.0; _Sq3._nm3[3]=((color>>24)&0xff)/255.0;_Sq3._on3|=(1<<_3p3);}break;case _8p3:if(!_Yq3||!(_Sq3._on3&(1<<_8p3))){_Sq3.xOrigin=_M3._4q3(_dp3,_Rq3,_Ue1);_Sq3.yOrigin=_M3._4q3(_hp3,_Rq3,_Ue1);_Sq3._on3|=(1<<_8p3);}break;case _0p3:if(!_Yq3||!(_Sq3._on3&(1<<_0p3))){_Sq3.gain=_M3._4q3(0,_Rq3,_Ue1);_Sq3._on3|=(1<<_0p3);}break;case _1p3:if(!_Yq3||!(_Sq3._on3&(1<<_1p3))){_Sq3.pitch=_M3._4q3(0,_Rq3,_Ue1);_Sq3._on3|=(1<<_1p3);}break;case _2p3:if(!_Yq3||!(_Sq3._on3&(1<<_2p3))){_Sq3.__q3=_M3._4q3(0,_Rq3,_Ue1);_Sq3._on3|=(1<<_2p3); }break;case _gm3:if(!_Yq3||!(_Sq3._on3&(1<<_gm3))){var _pb=_M3._4q3(0,_Rq3,_Ue1);if(_pb!=null)_Sq3.imageSpeed=_pb;_Sq3._0r3(_gm3,true);_Sq3._on3|=(1<<_gm3);if(_M3._9P==_w81){var _1r3=-1;var _2r3=false;if(this._9P==_q81||this._9P==_r81){var keyframeStore=this._UU;var _8m3=keyframeStore._9m3(_Rq3,_Ue1);if(_8m3>=0){var _TU=keyframeStore._8W[_8m3];_1r3=_TU._9W;_2r3=true;}}_Sq3._im3=-1;if(_2r3){var _pb=_M3._Xp3(0,_1r3,_Rq3,_Ue1);if(_pb!=null)_Sq3._im3=_pb;}}}break;case _jm3:if(!_Yq3||!(_Sq3._on3&(1<<_jm3))){var _pb=_M3._4q3(0, _Rq3,_Ue1);if(_pb!=null)_Sq3.imageIndex=_pb;_Sq3._0r3(_jm3,true);_Sq3._on3|=(1<<_jm3);}break;case _pn3:if(!_Yq3||!(_Sq3._on3&(1<<_pn3))){_Sq3._qn3=_M3._4q3(_dp3,_Rq3,_Ue1);_Sq3._rn3=_M3._4q3(_hp3,_Rq3,_Ue1);_Sq3._on3|=(1<<_pn3);}break;case _sn3:if(!_Yq3||!(_Sq3._on3&(1<<_sn3))){_Sq3._tn3=_M3._4q3(0,_Rq3,_Ue1);_Sq3._on3|=(1<<_sn3);}break;case _vn3:if(!_Yq3||!(_Sq3._on3&(1<<_vn3))){_Sq3._wn3=_M3._4q3(0,_Rq3,_Ue1);_Sq3._on3|=(1<<_vn3);}break;case _yn3:if(!_Yq3||!(_Sq3._on3&(1<<_yn3))){_Sq3._zn3=_M3._4q3(0, _Rq3,_Ue1);_Sq3._on3|=(1<<_yn3);}break;}}}_Wq3&=_Tq3;_Sq3._Xq3=_Wq3;};this._Oq3=function(){if(this.pName==null){this.builtinName=_Wo3;return;}if(this.pName=="position")this.builtinName=_XW;else if(this.pName=="scale")this.builtinName=__W;else if(this.pName=="gain")this.builtinName=_0p3;else if(this.pName=="pitch")this.builtinName=_1p3;else if(this.pName=="falloff")this.builtinName=_2p3;else if(this.pName=="rotation")this.builtinName=_ZW;else if(this.pName=="blend_add")this.builtinName=_3p3;else if(this.pName=="blend_multiply")this.builtinName=_4p3; else if(this.pName=="mask")this.builtinName=_6p3;else if(this.pName=="subject")this.builtinName=_7p3;else if(this.pName=="origin")this.builtinName=_8p3;else if(this.pName=="image_speed")this.builtinName=_gm3;else if(this.pName=="image_index")this.builtinName=_jm3;else if(this.pName=="image_angle")this.builtinName=_ZW;else if(this.pName=="rotation")this.builtinName=_ZW;else if(this.pName=="image_blend")this.builtinName=_4p3;else if(this.pName=="frameSize")this.builtinName=_pn3;else if(this.pName=="characterSpacing")this.builtinName=_sn3; else if(this.pName=="lineSpacing")this.builtinName=_vn3;else if(this.pName=="paragraphSpacing")this.builtinName=_yn3;else if(this.pName=="frame_size")this.builtinName=_pn3;else if(this.pName=="character_spacing")this.builtinName=_sn3;else if(this.pName=="line_spacing")this.builtinName=_vn3;else if(this.pName=="paragraph_spacing")this.builtinName=_yn3;else this.builtinName=_Wo3;};}/*@constructor */function _3r3(){_cV2.call(this);this._4r3=0;Object.defineProperties(this,{gmlchannel:{enumerable:true,get :function(){ return this._4r3;},set :function(_B3){this._4r3=yyGetInt32(_B3);}},});this._1W2=function(){var _4W2=this._rV2;for(var _hf1 in this._Lr){if(_hf1._M_1(_4W2)){this._rV2=_H6(this._rV2,_hf1._rV2);}}};}/*@constructor */function _O81(_bV2){_3r3.call(this);this.__type="[MessageEventTrackKey]";this._vh1=null;if((_bV2!=null)&&(_bV2!=undefined)){this._vh1=_bV2.events;}Object.defineProperties(this,{gmlevents:{enumerable:true,get :function(){return this._vh1;},set :function(_B3){this._vh1=_B3;}},});}/*@constructor */function _P81(_bV2){ _3r3.call(this);this.__type="[CodeEventTrackKey]";if((_bV2!=null)&&(_bV2!=undefined)){this._5r3=_bV2.event;this._5r3._6r3=this._5r3;}else {this._5r3=null;}Object.defineProperties(this,{gmlevent:{enumerable:true,get :function(){return this._5r3;},set :function(_B3){this._5r3=_B3;}},});}/*@constructor */function _7r3(_bV2){_3r3.call(this);this.__type="[AssetTrackKey]";this._3G=-1;if((_bV2!=null)&&(_bV2!=undefined)){this._3G=_bV2.index;}Object.defineProperties(this,{gmlindex:{enumerable:true,get :function(){ return this._3G;},set :function(_B3){this._3G=_B3;}},});}/*@constructor */function _E81(_bV2){_3r3.call(this);this.__type="[GraphicTrackKey]";this._3S=-1;if((_bV2!=null)&&(_bV2!=undefined)){this._3S=_bV2.index;}Object.defineProperties(this,{gmlspriteIndex:{enumerable:true,get :function(){return this._3S;},set :function(_B3){this._3S=yyGetInt32(_B3);}},});}/*@constructor */function _8r3(_bV2){_3r3.call(this);this.__type="[ParticleTrackKey]";this.particleSystemIndex=-1;if((_bV2!=null)&&(_bV2!=undefined)){ this.particleSystemIndex=_bV2.index;}Object.defineProperties(this,{gmlparticleSystemIndex:{enumerable:true,get :function(){return this.particleSystemIndex;},set :function(_B3){this.particleSystemIndex=yyGetInt32(_B3);}},});}/*@constructor */function _F81(_bV2){_3r3.call(this);this.__type="[InstanceTrackKey]";this._9r3=-1;if((_bV2!=null)&&(_bV2!=undefined)){this._9r3=_bV2.index;}Object.defineProperties(this,{gmlobjectIndex:{enumerable:true,get :function(){return this._9r3;},set :function(_B3){this._9r3=yyGetInt32(_B3); }},});}/*@constructor */function _H81(_bV2){_3r3.call(this);this.__type="[AudioTrackKey]";this._ar3=-1;this._br3=0;this._cr3=0;if((_bV2!=null)&&(_bV2!=undefined)){this._ar3=_bV2.soundIndex;this._br3=_bV2.emitters;this._cr3=_bV2.mode;}Object.defineProperties(this,{gmlsoundIndex:{enumerable:true,get :function(){return this._ar3;},set :function(_B3){this._ar3=_B3;}},gmlemitters:{enumerable:true,get :function(){return this._br3;},set :function(_B3){this._br3=_B3;}},gmlmode:{enumerable:true,get :function(){return this._cr3; },set :function(_B3){this._cr3=_B3;}},});}/*@constructor */function _M81(_bV2){_3r3.call(this);this.__type="[RealTrackKey]";this._Sp3=0;this._Vp3=false;this._Qp3=-1;this._Rp3=null;if((_bV2!=null)&&(_bV2!=undefined)){this._Sp3=_bV2.realValue;this._Vp3=_bV2.hasEmbeddedCurve;this._Qp3=_bV2.curveIndex;if(_bV2.pEmbeddedCurve!=undefined){this._Rp3=new _Wr(_bV2.pEmbeddedCurve);}}this._1W2=function(){var _4W2=this._rV2;for(var _hf1 in this._Lr){var _Cr=_Er._Fr(_hf1._Qp3);if((_Cr!=null)&&(_Cr._M_1(_4W2))){this._rV2=_H6(this._rV2, _Cr._rV2);}}};Object.defineProperties(this,{gmlvalue:{enumerable:true,get :function(){return this._Sp3;},set :function(_B3){this._Sp3=yyGetReal(_B3);this._Qp3=-1;this._Vp3=false;this._Rp3=null;}},gmlhasEmbeddedCurve:{enumerable:true,get :function(){return this._Vp3;},set :function(_B3){this._Vp3=yyGetBool(_B3);}},gmlcurve:{enumerable:true,get :function(){var _dr3=undefined;if((this._Vp3==true)&&(this._Rp3!=null)){_dr3=this._Rp3;}else {_dr3=_Er._E5(this._Qp3);}if((_dr3==undefined)||(_dr3==null))return -1;else return _dr3; },set :function(_B3){if(typeof(_B3)=="object"){var _xb=_Er.AnimCurves.indexOf(_B3);if(_xb==-1){this._Rp3=_B3;this._Vp3=true;this._Qp3=-1;}else {this._Qp3=_xb;this._Vp3=false;this._Rp3=null;}}else {if(_Er._E5(this._Qp3)!=null){this._Qp3=_B3;this._Vp3=false;this._Rp3=null;}else {throw new Error("Invalid curve passed to curve property of keyframe channel");}}}},});}/*@constructor */function _N81(_bV2){_3r3.call(this);this.__type="[ColorTrackKey]";this._F_2=0;this._Vp3=false;this._Qp3=-1;this._Rp3=null;if((_bV2!=null)&&(_bV2!=undefined)){ this._F_2=_bV2.color;this._Vp3=_bV2.hasEmbeddedCurve;this._Qp3=_bV2.curveIndex;if(_bV2.pEmbeddedCurve!=undefined){this._Rp3=new _Wr(_bV2.pEmbeddedCurve);}}Object.defineProperties(this,{gmlcolor:{enumerable:true,get :function(){var _m4=[];_m4[1]=(this._F_2&0xff)/255.0;_m4[2]=((this._F_2>>8)&0xff)/255.0;_m4[3]=((this._F_2>>16)&0xff)/255.0;_m4[0]=((this._F_2>>24)&0xff)/255.0;return _m4;},set :function(_B3){if(_B3 instanceof Array){var _m4;_m4=((yyGetReal(_B3[1])*255.0)&0xff);_m4|=((yyGetReal(_B3[2])*255.0)&0xff)<<8; _m4|=((yyGetReal(_B3[3])*255.0)&0xff)<<16;_m4|=((yyGetReal(_B3[0])*255.0)&0xff)<<24;this._F_2=_m4;}else {this._F_2=yyGetInt32(_B3);}this._Qp3=-1;this._Vp3=false;this._Rp3=null;}},gmlcolour:{enumerable:true,get :function(){var _m4=[];_m4[1]=(this._F_2&0xff)/255.0;_m4[2]=((this._F_2>>8)&0xff)/255.0;_m4[3]=((this._F_2>>16)&0xff)/255.0;_m4[0]=((this._F_2>>24)&0xff)/255.0;return _m4;},set :function(_B3){if(_B3 instanceof Array){var _m4;_m4=((yyGetReal(_B3[1])*255.0)&0xff);_m4|=((yyGetReal(_B3[2])*255.0)&0xff)<<8; _m4|=((yyGetReal(_B3[3])*255.0)&0xff)<<16;_m4|=((yyGetReal(_B3[0])*255.0)&0xff)<<24;this._F_2=_m4;}else {this._F_2=yyGetInt32(_B3);}this._Qp3=-1;this._Vp3=false;this._Rp3=null;}},gmlcurve:{enumerable:true,get :function(){var _dr3=undefined;if((this._Vp3==true)&&(this._Rp3!=null)){_dr3=this._Rp3;}else {_dr3=_Er._E5(this._Qp3);}if((_dr3==undefined)||(_dr3==null))return -1;else return _dr3;},set :function(_B3){if(typeof(_B3)=="object"){var _xb=_Er.AnimCurves.indexOf(_B3);if(_xb==-1){this._Rp3=_B3;this._Vp3=true; this._Qp3=-1;}else {this._Qp3=_xb;this._Vp3=false;this._Rp3=null;}}else {if(_Er._E5(this._Qp3)!=null){this._Qp3=_B3;this._Vp3=false;this._Rp3=null;}else {throw new Error("Invalid curve passed to curve property of keyframe channel");}}}},});}/*@constructor */function _K81(_bV2){_3r3.call(this);this.__type="[BoolTrackKey]";this._dV2=false;if((_bV2!=null)&&(_bV2!=undefined)){this._dV2=_bV2.value;}Object.defineProperties(this,{gmlvalue:{enumerable:true,get :function(){return this._dV2;},set :function(_B3){this._dV2=yyGetBool(_B3); }},});}/*@constructor */function _L81(_bV2){_3r3.call(this);this.__type="[StringTrackKey]";this._dV2="";if((_bV2!=null)&&(_bV2!=undefined)){this._dV2=_bV2.value;}Object.defineProperties(this,{gmlvalue:{enumerable:true,get :function(){return this._dV2;},set :function(_B3){this._dV2=yyGetString(_B3);}},});}/*@constructor */function _I81(_bV2){_3r3.call(this);this.__type="[TextTrackKey]";this.text="";this.wrap=false;this.alignment=0;this.fontIndex=-1;if((_bV2!=null)&&(_bV2!=undefined)){this.text=_bV2.text; this.wrap=_bV2.wrap;this.alignment=_bV2.alignment;this.fontIndex=_bV2.fontIndex;}Object.defineProperties(this,{gmltext:{enumerable:true,get :function(){return this.text;},set :function(_B3){this.text=yyGetString(_B3);}},gmlwrap:{enumerable:true,get :function(){return this.wrap;},set :function(_B3){this.wrap=yyGetBool(_B3);}},gmlalignmentV:{enumerable:true,get :function(){return(this.alignment>>8)&0xff;},set :function(_B3){this.alignment=(this.alignment&0xff)|((yyGetInt32(_B3)&0xff)<<8);}},gmlalignmentH:{ enumerable:true,get :function(){return this.alignment&0xff;},set :function(_B3){this.alignment=(this.alignment&~0xff)|(yyGetInt32(_B3)&0xff);}},gmlfontIndex:{enumerable:true,get :function(){return this.fontIndex;},set :function(_B3){this.fontIndex=yyGetInt32(_B3);}},});}/*@constructor */function _G81(_bV2){_3r3.call(this);this._3G=-1;if((_bV2!=null)&&(_bV2!=undefined)){this._3G=_bV2.index;}Object.defineProperties(this,{gmlindex:{enumerable:true,get :function(){return this._3G;},set :function(_B3){this._3G=yyGetInt32(_B3); }},});this.__type="[SequenceTrackKey]";}/*@constructor */function _J81(_bV2){_3r3.call(this);this.__type="[SpriteFramesTrackKey]";this._8S=-1;if((_bV2!=null)&&(_bV2!=undefined)){this._8S=_bV2.imageIndex;}Object.defineProperties(this,{gmlimageIndex:{enumerable:true,get :function(){return this._8S;},set :function(_B3){this._8S=yyGetInt32(_B3);}},});}/*@constructor */function _D81(_od,_bV2){_cV2.call(this);this.__type="[Keyframe]";this._9W=0;this._WU=0;this._Im3=false;this._er3=false;this._Lr={};if((_bV2!=null)&&(_bV2!=undefined)){ this._9W=_bV2.key;this._WU=_bV2.length;this._Im3=_bV2.stretch;this._er3=_bV2.disabled;this._Lr={};for(var _6n3 in _bV2.channels){var data=_bV2.channels[_6n3];var _fr3=null;switch(_od){case _q81:_fr3=new _E81(data);break;case _r81:_fr3=new _F81(data);break;case _t81:_fr3=new _H81(data);break;case _C81:_fr3=new _I81(data);break;case _w81:_fr3=new _M81(data);break;case _x81:_fr3=new _N81(data);break;case _u81:_fr3=new _K81(data);break;case _v81:_fr3=new _L81(data);break;case _s81:_fr3=new _G81(data);break;case _SU:_fr3=new _J81(data); break;case _Z81:_fr3=new _8r3(data);break;}if(_fr3!=null){_fr3.key=_6n3;this._Lr[_6n3]=_fr3;}else {throw new Error("Invalid sequence track channel type");}}}this._iV2();Object.defineProperties(this,{gmlframe:{enumerable:true,get :function(){return this._9W;},set :function(_B3){this._9W=yyGetInt32(_B3);}},gmllength:{enumerable:true,get :function(){return this._WU;},set :function(_B3){this._WU=yyGetInt32(_B3);}},gmlstretch:{enumerable:true,get :function(){return this._Im3;},set :function(_B3){this._Im3=yyGetBool(_B3); }},gmldisabled:{enumerable:true,get :function(){return this._er3;},set :function(_B3){this._er3=yyGetBool(_B3);}},gmlchannels:{enumerable:true,get :function(){var _gr3=[];for(var _6n3 in this._Lr){_gr3.push(this._Lr[_6n3]);}_gr3.sort(function(_h4,_g4){return Number(_h4.key)-Number(_g4.key);});return _gr3;},set :function(_B3){if(_B3 instanceof Array){this._Lr={};for(var _3W2=0;_3W2<_B3.length;_3W2++){var key=_B3[_3W2]._4r3;this._Lr[key]=_B3[_3W2];}}else {throw new Error("value must be an array of keyframes");}}}}); }/*@constructor */function _A81(_od,_bV2){_cV2.call(this);this.__type="[KeyframeStore]";this._4W=0;this._8W=[];if((_bV2!=null)&&(_bV2!=undefined)){var _hr3=_bV2.length;for(var _8m3=0;_8m3<_hr3;++_8m3){this._ir3(new _D81(_od,_bV2[_8m3]));}}}_A81.prototype._1W2=function(){var _4W2=this._rV2;for(var i=0;i_jr3.key){break;}_9V++;}this._8W.splice(_9V, 0,_jr3);this._4W++;this._iV2();};_A81.prototype._nq3=function(_el){var _bW2={};if(this._4W==0)return;var start=0,end=this._4W;var index=(start+end)>>1;var length;while(index!=start){length=this._8W[index]._Im3?(index+1_el){_bW2._oq3=this._8W[index];if(index_el)end=index;else start=index;index=(start+end)>>1; }length=this._8W[index]._Im3?(index+1_el){_bW2._oq3=this._8W[index];if(index>1;var length;while(index!=start){length=this._8W[index]._Im3?(index+1_el)return index;if(this._8W[index]._9W>_el)end=index;else start=index;index=(start+end)>>1;}length=this._8W[index]._Im3?(index+1_el)return index;if((index==(this._4W-1))&&(_el==_Np3)){if((this._8W[index]._9W+length)==_Np3)return index;}return -1;};_A81.prototype._VU=function(_el,_Np3){var _kr3=this._9m3(_el,_Np3);if(_kr3==-1)return null; return this._8W[_kr3];};_A81.prototype._bm3=function(_J3,_Np3){if(_J3<0){return 0.0;}else if(_J3>this._4W){return 0.0;}if(this._8W[_J3]._Im3){if(_J3<(this._4W-1)){var length=(this._8W[_J3+1]._9W-this._8W[_J3]._9W)-1.0;return length;}else {var length=(_Np3-this._8W[_J3]._9W)-1.0;return length;}}else {return this._8W[_J3]._WU;}};_A81.prototype._lr3=function(_VB,_WB,_si1,_zp3,_mr3,_Ue1){if(_mr3==undefined)_mr3=false;if(_Ue1==undefined)_Ue1=-1.0;if(this._4W==0)return false;var _nr3=false;if(_VB>_WB){var _jL=_VB;_VB=_WB; _WB=_jL;_nr3=true;}var _or3=false;var _pr3=false;if(_zp3>0.0){_pr3=true;if(_mr3&&(_WB==_Ue1)){_or3=true;}}else {_or3=true;if(_mr3&&(_VB==0.0)){_pr3=true;}}if((_or3&&(this._8W[0]._9W>_WB))||((!_or3)&&this._8W[0]._9W>=_WB))return false;var _qr3=this._8W[this._4W-1]._9W+this._8W[this._4W-1]._WU;if((this._8W[this._4W-1]._Im3==false)&&((_qr3<_VB)||(!_pr3&&((_qr3==_VB)))))return false;var _Dm3=0;var start,end,_Zi;var _FO=null;start=0;end=this._4W;_Zi=(start+end)>>1;while(_Zi!=start){if(this._8W[_Zi]._9W>_VB){end=_Zi; }else {start=_Zi;}_Zi=(start+end)>>1;}_FO=this._8W[_Zi];var _rr3=_FO._9W+_FO._WU;if((_rr3<_VB)||(!_pr3&&(_rr3==_VB))){_Dm3=_Zi+1;}else {_Dm3=_Zi;}var _Em3=0;start=0;end=this._4W;_Zi=(start+end)>>1;while(_Zi!=start){if((_or3&&(this._8W[_Zi]._9W>_WB))||((!_or3)&&(this._8W[_Zi]._9W>=_WB))){end=_Zi;}else {start=_Zi;}_Zi=(start+end)>>1;}_Em3=_Zi;if(_Em3<_Dm3){return false;}else {if(_nr3){_si1.start=_Em3;_si1.end=_Dm3;}else {_si1.start=_Dm3;_si1.end=_Em3;}return true;}};_A81.prototype._Fp3=function(_sr3,_tm,_Ue1, _yp3,_xp3,_zp3,_Dp3,_Ep3,_tr3,_ur3){if(_tr3==undefined)_tr3=false;if(_ur3==undefined)_ur3=false;var _vr3=0.99;_Dp3[0]=_Ep3[0]=_Dp3[1]=_Ep3[1]=-1;var out={start:-1,end:-1};var _wr3=false;if(_sr3==_Po3){_wr3=this._lr3(_yp3,_xp3,out,_zp3,_tr3,_Ue1);_Dp3[0]=out.start;_Ep3[0]=out.end;}else if(_sr3==_Qo3){if(_zp3>0.0){if(_ur3||(_xp3<_yp3)){if(!_tr3||(_yp3!=_Ue1)){_wr3=this._lr3(_yp3,_Ue1,out,_zp3,_tr3,_Ue1);_Dp3[0]=out.start;_Ep3[0]=out.end;}if(this._lr3(0,_xp3,out,_zp3,_tr3,_Ue1)){_wr3=true;_Dp3[1]=out.start; _Ep3[1]=out.end;}}else {_wr3=this._lr3(_yp3,_xp3,out,_zp3,_tr3,_Ue1);_Dp3[0]=out.start;_Ep3[0]=out.end;}}else {if(_ur3||(_xp3>_yp3)){if(!_tr3||(_yp3!=0)){_wr3=this._lr3(_yp3,0,out,_zp3,_tr3,_Ue1);_Dp3[0]=out.start;_Ep3[0]=out.end;}if(this._lr3(_Ue1,_xp3,out,_zp3,_tr3,_Ue1)){_wr3=true;_Dp3[1]=out.start;_Ep3[1]=out.end;}}else {_wr3=this._lr3(_yp3,_xp3,out,_zp3,_tr3,_Ue1);_Dp3[0]=out.start;_Ep3[0]=out.end;}}}else if(_sr3==_Ro3){var _xr3=0.0;if(_tm>0.0){_xr3=1.0/_tm;}if(_zp3>0.0){if(_ur3||(_xp3<_yp3)||((_xp3-_yp3)<(_xr3*_vr3))){ if(!_tr3||(_yp3>0)){_wr3=this._lr3(_yp3,0,out,_zp3*-1.0,false);_Dp3[0]=out.start;_Ep3[0]=out.end;}if(this._lr3(0,_xp3,out,_zp3,_tr3,_Ue1)){_wr3=true;_Dp3[1]=out.start;_Ep3[1]=out.end;}}else {_wr3=this._lr3(_yp3,_xp3,out,_zp3,false);_Dp3[0]=out.start;_Ep3[0]=out.end;}}else {if(_ur3||(_xp3>_yp3)||((_yp3-_xp3)<(_xr3*_vr3))){if(!_tr3||(_yp3<_Ue1)){_wr3=this._lr3(_yp3,_Ue1,out,_zp3*-1.0,false);_Dp3[0]=out.start;_Ep3[0]=out.end;}if(this._lr3(_Ue1,_xp3,out,_zp3,_tr3,_Ue1)){_wr3=true;_Dp3[1]=out.start;_Ep3[1]=out.end; }}else {_wr3=this._lr3(_yp3,_xp3,out,_zp3,false);_Dp3[0]=out.start;_Ep3[0]=out.end;}}}return _wr3;};var typeToEventLut=["event_create","event_destroy","event_clean_up","event_step","event_step_begin","event_step_end","event_async_system"];/*@constructor */function _m81(_bV2){_cV2.call(this);this.__type="[Sequence]";this.pName="";this._Gp3=0;this._9h1=30.0;this._ah1=0;this._WU=0;this._yr3=1.0;this._Kl3=0;this._Ll3=0;this._th1=new _A81();this._th1._4W=0;this._th1._8W=[];this._zr3=new _A81();this._zr3._4W=0; this._zr3._8W=[];this._Fq3=0;this._Ar3=0;this._RU=[];this["event_create"]=null;this["event_destroy"]=null;this["event_clean_up"]=null;this["event_step"]=null;this["event_step_begin"]=null;this["event_step_end"]=null;this["event_async_system"]=null;this["event_broadcast_message"]=null;this._Tr=false;if((_bV2!=null)&&(_bV2!=undefined)){this.pName=_bV2.pName;this._Gp3=_bV2.playback;this._9h1=_bV2.playbackSpeed;this._ah1=_bV2.playbackSpeedType;this._WU=_bV2.length;this._yr3=_bV2.volume;this._Kl3=_bV2.xorigin; this._Ll3=_bV2.yorigin;this._th1=new _A81();this._th1._4W=0;this._th1._8W=[];for(var _8m3=0;_8m3<_bV2.keyframeStore.length;++_8m3){var _Br3=_bV2.keyframeStore[_8m3];var _cn3=new _D81();_cn3._9W=_Br3.key;if((_cn3._9W(this._WU+(_Bo3*2.0))))_cn3._9W=this._WU;_cn3._WU=0;_cn3._Im3=_Br3.stretch;_cn3._er3=_Br3.disabled;_cn3._Lr={};for(var _6n3 in _Br3.channels){var _5f1=_Br3.channels[_6n3];_cn3._Lr[_6n3]=new _O81(_5f1);}this._th1._ir3(_cn3);}this._zr3=new _A81();this._zr3._4W=0;this._zr3._8W=[]; this._Fq3=_bV2.tracks.length;this._RU=[];for(var _jl2=0;_jl2(this._WU+(_Bo3*2.0))))_cn3._9W=this._WU;_cn3._WU=0;_cn3._Im3=_Br3.stretch;_cn3._er3=_Br3.disabled;_cn3._Lr={};for(var _6n3 in _Br3.channels){var _5f1=_Br3.channels[_6n3];_cn3._Lr[_6n3]=new _P81(_5f1);}this._zr3._ir3(_cn3);}this._Tr=true;}Object.defineProperties(this,{gmlname:{enumerable:true,get :function(){return this.pName;},set :function(_B3){this.pName=yyGetString(_B3);}},gmlloopmode:{enumerable:true,get :function(){return this._Gp3; },set :function(_B3){var _ue=yyGetInt32(_B3);if((_ue>=0)&&(_ue<_So3)){this._Gp3=_ue;}else {debug("Trying to set loopmode property of sequence to out-of-bounds value "+yyGetReal(_B3));}}},gmlplaybackSpeed:{enumerable:true,get :function(){return this._9h1;},set :function(_B3){this._9h1=yyGetReal(_B3);}},gmlplaybackSpeedType:{enumerable:true,get :function(){return this._ah1;},set :function(_B3){var _ue=yyGetInt32(_B3);if(isFinite(_B3)&&(_ue>=0)&&(_ue<_Dr3)){this._ah1=_ue;}else {debug("Trying to set playbackSpeedType property of sequence to out-of-bounds value "+yyGetReal(_B3)); }}},gmllength:{enumerable:true,get :function(){return this._WU;},set :function(_B3){_B3=yyGetReal(_B3);_B3=_H6(_B3,0.0);this._WU=_B3;}},gmlvolume:{enumerable:true,get :function(){return this._yr3;},set :function(_B3){_B3=yyGetReal(_B3);_B3=_H6(_B3,0.0);this._yr3=_B3;}},gmlxorigin:{enumerable:true,get :function(){return this._Kl3;},set :function(_B3){this._Kl3=yyGetReal(_B3);}},gmlyorigin:{enumerable:true,get :function(){return this._Ll3;},set :function(_B3){this._Ll3=yyGetReal(_B3);}},gmltracks:{enumerable:true, get :function(){return this._RU;},set :function(_B3){if(_B3 instanceof Array){this._RU=_B3;}else {throw new Error("value must be an array of tracks");}}},gmlmessageEventKeyframes:{enumerable:true,get :function(){return this._th1._8W;},set :function(_B3){if(_B3 instanceof Array){this._th1._8W=_B3;this._th1._4W=_B3.length;}else {throw new Error("value must be an array of keyframes");}}},gmlmomentKeyframes:{enumerable:true,get :function(){return this._zr3._8W;},set :function(_B3){if(_B3 instanceof Array){this._zr3._8W=_B3; this._zr3._4W=_B3.length;}else {throw new Error("value must be an array of keyframes");}}},gmlevent_create:{enumerable:true,get :function(){return this["event_create"];},set :function(_B3){this["event_create"]=_B3;}},gmlevent_destroy:{enumerable:true,get :function(){return this["event_destroy"];},set :function(_B3){this["event_destroy"]=_B3;}},gmlevent_clean_up:{enumerable:true,get :function(){return this["event_clean_up"];},set :function(_B3){this["event_clean_up"]=_B3;}},gmlevent_step:{enumerable:true,get :function(){ return this["event_step"];},set :function(_B3){this["event_step"]=_B3;}},gmlevent_step_begin:{enumerable:true,get :function(){return this["event_step_begin"];},set :function(_B3){this["event_step_begin"]=_B3;}},gmlevent_step_end:{enumerable:true,get :function(){return this["event_step_end"];},set :function(_B3){this["event_step_end"]=_B3;}},gmlevent_async_system:{enumerable:true,get :function(){return this["event_async_system"];},set :function(_B3){this["event_async_system"]=_B3;}},gmlevent_broadcast_message:{ enumerable:true,get :function(){return this["event_broadcast_message"];},set :function(_B3){this["event_broadcast_message"]=_B3;}},});}_m81.prototype._991=function(){var ids=[];this._Er3(this._RU,ids);return ids;};_m81.prototype._Er3=function(_Xl3,_Fr3){for(var _jl2=0;_jl2<_Xl3.length;++_jl2){var _M3=_Xl3[_jl2];if(_M3._9P==_r81){var _Gr3=_M3;if(_Gr3._UU!=null){var _Hr3=_Gr3._UU._4W;for(var i=0;i<_Hr3;i++){var _FO=_Gr3._UU._8W[i];for(var _6n3 in _FO._Lr){var _7n3=_FO._Lr[_6n3];if(_7n3._9r3!=-1){if(_Fr3.indexOf(_7n3._9r3)==-1){ _Fr3.push(_7n3._9r3);}}}}}}else if(_M3._9P==_091){var _Ir3=_M3;this._Er3(_Ir3._vq3(),_Fr3);this._Er3(_Ir3._xq3(),_Fr3);}else if(_M3._9P==_s81){var _Jr3=_M3;if(_Jr3._UU!=null){var _Hr3=_Jr3._UU._4W;for(var i=0;i<_Hr3;i++){var _FO=_Jr3._UU._8W[i];for(var _6n3 in _FO._Lr){var _7n3=_FO._Lr[_6n3];if(_7n3._3G!=-1){var _f81=_zT._SW(_7n3._3G);if(_f81!=null){this._Er3(_f81._RU,_Fr3);}}}}}}this._Er3(_M3._RU,_Fr3);}};/*@constructor */function _2N2(){this.Sequences=[];this._KA2=[];}_2N2.prototype._Gf=function(_bV2){var _2s=null; if(_bV2!=null){_2s=new _m81(_bV2);}this.Sequences[this.Sequences.length]=_2s;};_2N2.prototype._h81=function(){var _2s=new _m81();var i;for(i=0;i=0)&&(_eW2=this.Sequences.length)){return undefined;}return this.Sequences[_t4];};_2N2.prototype._n81=function(_eW2){if((typeof(_eW2)=="object")&&(_eW2 instanceof _m81)){var i;for(i=0;i=this._KA2.length)){return undefined;}return this._KA2[_t4];};_2N2.prototype._Lr3=function(_t4){this._KA2[_t4]=null;};_2N2.prototype._9U=function(_Ht){if(_Ht==null)return;_Ht._Mr3();_Ht._Nr3();_Ht._Or3();this._Lr3(_Ht._gS);};_2N2.prototype._Pr3=function(_N3){for(var i=0;i_Em3)_ms3=-1;var i=_Dm3;do {var _FO=_Cp3._th1._8W[i];_Tr3(_FO,_Vr3);if(i==_Em3)break;i+=_ms3;}while(true);}};_2N2.prototype._cs3=function(_9a3,_Cp3,_Vr3, _ls3){if(_9a3==null)return;if(_Cp3==null)return;if(_Cp3._zr3._4W==0)return;var _zm3=[];var _Am3=[];var _hc3=_Cp3._9h1;if(_Cp3._ah1==_wR)_hc3/=_ls3;if(_9a3._BT!=0.0)_hc3*=_9a3._BT;var _km3=_9a3._4X;if(_hc3<0.0){_km3=-_km3;_hc3=-_hc3;}var _wr3=_Cp3._zr3._Fp3(_Cp3._Gp3,1.0/_hc3,_Cp3._WU,_9a3._2X,_9a3._hS,_km3,_zm3,_Am3,true,_9a3._4s3);if(!_wr3)return;var _Bm3=1,offset=0;if(_zm3[1]!=-1)_Bm3=2;if(_zm3[0]==-1)offset=1;for(var _ml=offset;_ml<_Bm3;_ml++){var _Dm3=_zm3[_ml];var _Em3=_Am3[_ml];var _ms3=1;if(_Dm3>_Em3)_ms3=-1; var i=_Dm3;do {var _FO=_Cp3._zr3._8W[i];_Yr3(_FO,_9a3);if(i==_Em3)break;i+=_ms3;}while(true);}};function _XU(_Cp3,_AU,_ls3,_ns3,_Sl3,_Rl3,_Ql3){if(_Cp3==null)return;if(_Cp3._th1._4W==0)return;var _zm3=[];var _Am3=[];var _hc3=_Cp3._9h1;if(_Cp3._ah1==_wR)_hc3/=_ls3;if(_ns3!=0.0)_hc3*=_ns3;var _km3=_Sl3;if(_hc3<0.0){_km3=-_km3;_hc3=-_hc3;}var _wr3=_Cp3._th1._Fp3(_Cp3._Gp3,1.0/_hc3,_Cp3._WU,_Rl3,_Ql3,_km3,_zm3,_Am3,true);if(!_wr3)return;var _Bm3=1,offset=0;if(_zm3[1]!=-1)_Bm3=2;if(_zm3[0]==-1)offset=1;for(var _ml=offset; _ml<_Bm3;_ml++){var _Dm3=_zm3[_ml];var _Em3=_Am3[_ml];var _ms3=1;if(_Dm3>_Em3)_ms3=-1;var i=_Dm3;do {var _FO=_Cp3._th1._8W[i];_Zr3(_FO,_AU);if(i==_Em3)break;i+=_ms3;}while(true);}};_2N2.prototype._gs3=function(){for(var i=0;i<_Qr3.length;i++){var _FO=_Qr3[i]._FO;var _os3=_FO._Lr[0];for(var __5=0;__5<_os3._vh1.length;__5++){var map=ds_map_create();g_pBuiltIn.event_data=map;ds_map_add(map,"event_type","sequence event");ds_map_add(map,"element_id",_Qr3[i]._Xr3);ds_map_add(map,"message",_os3._vh1[__5]);_zT._is3(_t3, _UD2);_i3._j3(_UD2,0);ds_map_destroy(map);g_pBuiltIn.event_data=-1;}}};_2N2.prototype._hs3=function(){for(var i=0;i<_Rr3.length;i++){var _FO=_Rr3[i]._FO;var _ps3=_FO._Lr[0];if(_ps3._5r3!=null){_ps3._5r3._6r3.call(_Rr3[i]._c91,_Rr3[i]._c91);}}};function _qs3(){for(var i=0;i<_Sr3.length;i++){var _FO=_Sr3[i]._FO;var _os3=_FO._Lr[0];for(var __5=0;__5<_os3._vh1.length;__5++){var map=ds_map_create();g_pBuiltIn.event_data=map;ds_map_add(map,"event_type","sprite event");ds_map_add(map,"element_id",_Sr3[i].__r3); ds_map_add(map,"message",_os3._vh1[__5]);_zT._is3(_t3,_UD2);_i3._j3(_UD2,0);ds_map_destroy(map);g_pBuiltIn.event_data=-1;}}};function _QU(_Tl3,_rs3){if(_Tl3==null){return false;}var end=_Tl3._WU;var _ic3=false;if(_Tl3._Gp3==_Po3){if(_rs3.headPosition<=0.0){_rs3.headPosition=0.0;if(_rs3._OU<0.0){_ic3=true;_rs3._PU=true;}}else if(_rs3.headPosition>=end){_rs3.headPosition=end;if(_rs3._OU>0.0){_rs3._PU=true;_ic3=true;}}}else if(_Tl3._Gp3==_Qo3){if((_rs3.headPosition<0.0)||(_rs3.headPosition>=end)){_ic3=true; }if(end>0){_rs3.headPosition=_A3(_rs3.headPosition,end);}}else if(_Tl3._Gp3==_Ro3){if((_rs3.headPosition<0.0)||(_rs3.headPosition>=end)){if(_rs3.headPosition<0.0){_rs3.headPosition*=-1.0;}var _ss3=(_rs3.headPosition/end);_rs3.headPosition=_A3(_rs3.headPosition,end);if(_ss3&1){_rs3.headPosition=end-_rs3.headPosition;_rs3._OU=-1.0;}else {_rs3._OU=1.0;}_ic3=true;}}return _ic3;}_2N2.prototype._as3=function(_aT,_Tl3,_58,_Pl3,_ts3,_Lw,_us3,_Xl3,_Ql3,_Rl3,_Sl3,_vs3){var __l3=new _zz();var _ws3=new _zz();var _xs3=_Pl3; var _Jl=_Pl3;for(var _jl2=0;_jl2<_Xl3.length;++_jl2){var _ys3=_Xl3[_jl2];_d91.push(_ys3);if(!_0m3(_ys3._9P)&&_ys3.enabled){var _qc3=_zs3(_ts3,_xs3,_Jl);_Jl=_qc3._Jl;_xs3=_qc3._kl;_Jl._As3=_ys3;var _eh1=_vs3||_Jl.value._Bs3!=_Ql3;if(_eh1){var _Cs3=0xffffffff;if(_Jl._Ds3!=null){_Cs3=~(_Jl._Ds3.value._on3&(~(_Jl._Ds3.value._Xq3)));}_ys3._Qq3(_Ql3,_Tl3._WU,_Jl.value,_Cs3);_Jl.value._Bs3=_Ql3;}switch(_ys3._9P){case _q81:this._Es3(_Jl,_Jl.value,_58,_ys3,_xz2,_Sl3,_Rl3,_Ql3,_Tl3._WU);break;case _s81:this._Fs3(_aT, _Tl3,_58,_Jl.value,_Jl._7m3,_Jl,_Lw,_us3,_ys3,_Ql3,_Rl3,_Sl3,false,_eh1);break;}if(_eh1){_Jl.value._783._uB();_tp3(_Jl.value._783,_Jl.value.x,_Jl.value.y,_Jl.value.scaleX,_Jl.value.scaleY,_Jl.value.rotation,_Jl.value.xOrigin,_Jl.value.yOrigin);if(_Jl._Ds3!=null){if((_us3._Cq3&_lp3)==0){_ws3._WA(_Jl._Ds3.value.xOrigin,_Jl._Ds3.value.yOrigin,0);__l3.Multiply(_Jl.value._783,_ws3);_Jl.value._783._nj(__l3);}var _Gs3=_Jl._Ds3.value._on3&~(_Jl.value._on3);_Jl.value._on3|=_Jl._Ds3.value._on3;if(_Jl.value._on3&(1<<_4p3)){ if(_Gs3&(1<<_4p3)){_Jl.value._mm3[0]=_Jl._Ds3.value._mm3[0];_Jl.value._mm3[1]=_Jl._Ds3.value._mm3[1];_Jl.value._mm3[2]=_Jl._Ds3.value._mm3[2];_Jl.value._mm3[3]=_Jl._Ds3.value._mm3[3];}else {_Jl.value._mm3[0]*=_Jl._Ds3.value._mm3[0];_Jl.value._mm3[1]*=_Jl._Ds3.value._mm3[1];_Jl.value._mm3[2]*=_Jl._Ds3.value._mm3[2];_Jl.value._mm3[3]*=_Jl._Ds3.value._mm3[3];}}if(_Jl.value._on3&(1<<_3p3)){if(_Gs3&(1<<_3p3)){_Jl.value._nm3[0]=_Jl._Ds3.value._nm3[0];_Jl.value._nm3[1]=_Jl._Ds3.value._nm3[1];_Jl.value._nm3[2]=_Jl._Ds3.value._nm3[2]; _Jl.value._nm3[3]=_Jl._Ds3.value._nm3[3];}else {_Jl.value._nm3[0]+=_Jl._Ds3.value._nm3[0];_Jl.value._nm3[1]+=_Jl._Ds3.value._nm3[1];_Jl.value._nm3[2]+=_Jl._Ds3.value._nm3[2];_Jl.value._nm3[3]+=_Jl._Ds3.value._nm3[3];}}if(_Jl.value._on3&(1<<_0p3)){if(_Gs3&(1<<_0p3)){_Jl.value.gain=_Jl._Ds3.value.gain;}else {_Jl.value.gain*=_Jl._Ds3.value.gain;}}if(_Jl.value._on3&(1<<_1p3)){if(_Gs3&(1<<_1p3)){_Jl.value.pitch=_Jl._Ds3.value.pitch;}else {_Jl.value.pitch*=_Jl._Ds3.value.pitch;}}if(_Jl.value._on3&(1<<_2p3)){ if(_Gs3&(1<<_2p3)){_Jl.value.__q3=_Jl._Ds3.value.__q3;}else {_Jl.value.__q3*=_Jl._Ds3.value.__q3;}}if(_Jl.value._on3&(1<<_gm3)){if(_Gs3&(1<<_gm3)){_Jl.value.imageSpeed=_Jl._Ds3.value.imageSpeed;}else {_Jl.value.imageSpeed*=_Jl._Ds3.value.imageSpeed;}}if(_Jl.value._on3&(1<<_jm3)){if(_Gs3&(1<<_jm3)){_Jl.value.imageIndex=_Jl._Ds3.value.imageIndex;}else {_Jl.value.imageIndex+=_Jl._Ds3.value.imageIndex;}}}}var _7s3=new _zz();_7s3._nj(_Lw);__l3.Multiply(_Jl.value._783,_Lw);_Lw._nj(__l3);switch(_ys3._9P){case _s81:this._Fs3(_aT, _Tl3,_58,_Jl.value,_Jl._7m3,_Jl,_Lw,_us3,_ys3,_Ql3,_Rl3,_Sl3,true,_eh1);break;case _t81:this._Hs3(_aT,_Tl3,_58,_Jl.value,_Lw,_ys3,_Ql3,_Rl3,_Sl3);break;case _r81:this._Is3(_aT,_Tl3,_58,_Jl.value,_Lw,_ys3,_Ql3,_Rl3);break;case _Z81:this._Js3(_aT,_Tl3,_58,_Jl.value,_Lw,_ys3,_Ql3,_Rl3);break;}if(_ys3._RU.length>0){this._as3(_aT,_Tl3,_58,_Jl._7m3,_Jl,_Lw,_ys3,_ys3._RU,_Ql3,_Rl3,_Sl3,_eh1);}_Lw._nj(_7s3);}_d91.pop();}};_2N2.prototype._Es3=function(_4f2,_Ks3,_58,_r3,_ls3,_zp3,_yp3,_Ql3,_Np3){_Ks3.spriteIndex=-1; var keyframeStore=_r3._UU;var _TU=keyframeStore._VU(_Ql3,_Np3);if(_TU==null)return;var spriteIndex=_TU._Lr[0]._3S;_Ks3.spriteIndex=spriteIndex;var _MU=_D5.Sprites[spriteIndex];if(!_Ks3._fm3(_ap3))_Ks3.xOrigin+=_MU.xOrigin;if(!_Ks3._fm3(_bp3))_Ks3.yOrigin+=_MU.yOrigin;_Ls3(_4f2,_r3,_58,_ls3,_Ql3,_yp3,_zp3,_MU.sequence,_MU,_TU,keyframeStore);};function _Ls3(_4f2,_r3,_f7,_ls3,_Ql3,_Rl3,_Sl3,_Tl3,_q3,_Ms3,_Ns3){if(_Tl3===null){return;}if(_4f2.value._fm3(_jm3))return;var _8m3=_Ns3._9m3(_Ql3,_Tl3._WU);if(_8m3==-1){ return;}var _y73=0;var _MU=_q3;if(_MU._D4()>1){var _am3=Math.max(_Ql3,_Ms3._9W);_am3=Math.min(_am3,_Ms3._9W+_Ns3._bm3(_8m3,_Tl3._WU));var _cm3=_am3-_Ms3._9W;var _dm3=1.0;var _em3=_MU.sequence;if(_em3!=null){if(_em3._ah1==_wR){_dm3=_em3._9h1/_Tl3._9h1;}else {_dm3=_em3._9h1*(_x3._y3()/_Tl3._9h1);}}else if(_MU.playbackspeed!=0.0){if(_MU.playbackspeedtype==_wR){_dm3=_MU.playbackspeed/_Tl3._9h1;}else {_dm3=_MU.playbackspeed;}}_cm3*=_dm3;if(_4f2.value._fm3(_gm3)){var _hm3=_4f2.value._im3;if(_hm3>=0)_cm3=_hm3*_dm3; }if(_em3!=null){var _km3=1.0;if(_Rl3>_Ql3){_km3=-1.0;}var _06={headPosition:_cm3,_OU:_km3,_PU:false};_QU(_em3,_06);_cm3=_06.headPosition;_km3=_06._OU;if((_em3._RU!=null)&&(_em3._RU[0]._9P==_SU)){_XU(_Tl3,_f7.id,_ls3,_Tl3.playbackSpeed,_Sl3,_Rl3,_cm3);}}}}_2N2.prototype._Fs3=function(_aT,_Cp3,_Ht,_Ks3,_Os3,_ts3,_Lw,_Ps3,_Bp3,_xp3,_yp3,_zp3,_Qs3,_vs3){_Ks3._Rs3=-1;_Ks3._Kr3=null;var keyframeStore=_Bp3._UU;var _zm3=[];var _Am3=[];var _wr3=_wp3(_xp3,_yp3,_zp3,1.0,_Bp3,_Cp3,_zm3,_Am3);if(_wr3){var _Bm3=1,offset=0; if(_zm3[1]!=-1)_Bm3=2;if(_zm3[0]==-1)offset=1;for(var _ml=offset;_ml<_Bm3;_ml++){var _Dm3=_zm3[_ml];var _Em3=_Am3[_ml];for(var i=_Dm3;i<=_Em3;i++){var _FO=keyframeStore._8W[i];var _Fm3=_FO._Lr[0];var _Gm3=_Fm3._3G;var _Hm3=_zT._SW(_Gm3);if(_Hm3==null)continue;_d91.push(_FO);_d91.push(_Fm3);_d91.push(_Hm3);{var _Yi;if(_FO._Im3){if(i>=keyframeStore._4W-1)_Yi=_Cp3._WU-_FO._9W;else _Yi=keyframeStore._8W[i+1]._9W-_FO._9W;}else _Yi=_FO._WU;if((Math.floor(_xp3)>=_FO._9W)&&(Math.floor(_xp3)<(_FO._9W+_Yi))){if(!_Qs3){ if(!_Ks3._fm3(_ap3))_Ks3.xOrigin+=_Hm3._Kl3;if(!_Ks3._fm3(_bp3))_Ks3.yOrigin+=_Hm3._Ll3;_d91.pop();_d91.pop();_d91.pop();continue;}_Ks3._Rs3=_Gm3;_Ks3._Kr3=_Hm3;var _am3=_H6(_xp3,_FO._9W);var _Jm3=_H6(_yp3,_FO._9W);_am3=_I6(_am3,_FO._9W+_Yi);_Jm3=_I6(_Jm3,_FO._9W+_Yi);var _cm3=_am3-_FO._9W;var _Km3=_Jm3-_FO._9W;var _dm3=1.0;if(_Cp3._9h1!=0.0){if(_Cp3._ah1==_wR)_dm3=_Hm3._9h1/_Cp3._9h1;else _dm3=_Hm3._9h1;}_cm3*=_dm3;_Km3*=_dm3;var _km3=1.0;if(_yp3>_xp3)_km3=-1.0;var _06={headPosition:_cm3,_OU:_km3,_PU:false} ;_QU(_Hm3,_06);_cm3=_06.headPosition;_km3=_06._OU;this._as3(_aT,_Hm3,_Ht,_Os3,_ts3,_Lw,_Bp3,_Hm3._RU,_cm3,_Km3,_km3,_vs3);}}_d91.pop();_d91.pop();_d91.pop();}}}};_2N2.prototype._Hs3=function(_Ss3,_Cp3,_Ht,_Ks3,_Lw,_Bp3,_xp3,_yp3,_zp3){_Ks3._rh3=-1;_Ks3.soundIndex=-1;var keyframeStore=_Bp3._UU;if(keyframeStore==null)return;var _Ts3=_Lw._v6[12];var _Us3=_Lw._v6[13];var gain=_Ks3.gain*_Ht._yr3*_Cp3._yr3;var pitch=_Ks3.pitch;var __q3=_Ks3.__q3;var _Vs3=keyframeStore._9m3(_xp3,_Cp3._WU);var _3W=keyframeStore._4W; if((_Ht._6X)||(_Ht._hK)){_Vs3=-1;}for(var i=0;i<_3W;i++){var _Ws3=keyframeStore._8W[i];if(_Ws3!=null){_d91.push(_Ws3);for(var _6n3 in _Ws3._Lr){var _Xs3=_Ws3._Lr[_6n3];_d91.push(_Xs3);var _Ys3=_Ht._Zs3[_an3(_d91)];if(_Ys3!=null){if(i!=_Vs3){if(_Ys3.__s3!=-1){audio_stop_sound(_Ys3.__s3);_Ys3.__s3=-1;}}else {if(_Ys3.__s3!=-1){if(((_Ys3._0t3*_zp3)<=0)||(((_xp3-_yp3)*_Ys3._0t3)<=0)){audio_stop_sound(_Ys3.__s3);_Ys3.__s3=-1;}}if(_Ys3.__s3==-1){_Ys3._0t3=_zp3;_Ys3.__s3=audio_play_sound_on(_Ys3._1t3,_Xs3._ar3, (_Xs3._cr3==_Ko3)?true:false,1.0);var _2t3;if(_Ys3._0t3>0){_2t3=_xp3-_Ws3._9W;}else {_2t3=(_Ws3._9W+(_Ws3._WU-1))-_xp3;if(_2t3<0.0)_2t3=0.0;}if((_Cp3._9h1*_Ht._3t3)>0.0){_2t3/=(_Cp3._9h1*_Ht._3t3);;}audio_sound_set_track_position(_Ys3.__s3,_2t3);}if(_Ys3.__s3!=-1&&audio_emitter_exists(_Ys3._1t3)===true){audio_emitter_gain(_Ys3._1t3,gain);audio_emitter_pitch(_Ys3._1t3,pitch);audio_emitter_position(_Ys3._1t3,_Ts3,_Us3,0.0);}_Ks3._rh3=_Ys3._1t3;_Ks3.soundIndex=_Ys3.__s3;}}_d91.pop();}_d91.pop();}}};_2N2.prototype._Is3=function(_Ss3, _Cp3,_Ht,_Ks3,_Lw,_Bp3,_xp3,_yp3){_Ks3._LV=_Kt;var keyframeStore=_Bp3._UU;if(keyframeStore==null)return;var _wm3=Math.atan2(_Lw._v6[1],_Lw._v6[0])*-(180/Math.PI);var _tm3=Math.sqrt((_Lw._v6[0]*_Lw._v6[0])+(_Lw._v6[1]*_Lw._v6[1]));var _um3=Math.sqrt((_Lw._v6[4]*_Lw._v6[4])+(_Lw._v6[5]*_Lw._v6[5]));var _xm3=_Lw._v6[12];var _ym3=_Lw._v6[13];var _4t3=[];_4t3[0]=_Lw._v6[0];_4t3[1]=_Lw._v6[1];var _5t3=[];_5t3[0]=_Lw._v6[4];_5t3[1]=_Lw._v6[5];var _6t3=(_4t3[0]*_5t3[1])-(_4t3[1]*_5t3[0]);if(_6t3<0.0){if(Math.abs(_wm3-_Ks3.rotation)>0.0001){ _tm3*=-1.0;_wm3-=180.0;}else {_um3*=-1.0;}}var _Vs3=keyframeStore._9m3(_xp3,_Cp3._WU);var _3W=keyframeStore._4W;for(var i=0;i<_3W;i++){var _FO=keyframeStore._8W[i];if(_FO!=null){_d91.push(_FO);for(var _6n3 in _FO._Lr){var _7n3=_FO._Lr[_6n3];_d91.push(_7n3);var _8n3=_Ht._9n3[_an3(_d91)];if(_8n3!=null){var _1u=_Hn._ac3(_8n3._LV);if(_1u!=null){_1u._5a3(true);_1u._aa3(true);_1u._8a3(_Ht);if(i!=_Vs3){if(_1u.visible==true)_1u.visible=false;}else {_Ks3._LV=_1u.id;if(_1u.visible==false)_1u.visible=true;if((_Ks3._on3&(1<<_XW))||(_Ss3._kS&(1<<_XW))||(_Ss3._8P._lP!=0.0)||(_Ss3._8P._nP!=0.0)){ _1u.x=_xm3;_1u.y=_ym3;}if((_Ks3._on3&(1<<_ZW))||(_Ss3._kS&(1<<_ZW))){_1u.image_angle=_wm3;}if((_Ks3._on3&(1<<__W))||(_Ss3._kS&(1<<__W))){_1u.image_xscale=_tm3;_1u.image_yscale=_um3;}if((_Ks3._on3&(1<<_4p3))||((_Ss3._cS&0x00ffffff)!=0xffffff)||(_Ss3._dS!=1.0)){var _m4=0;if((_Ss3._cS&0x00ffffff)!=0xffffff){var _e4=(_Ss3._cS&0xff)/255.0;var _f4=((_Ss3._cS>>8)&0xff)/255.0;var _g4=((_Ss3._cS>>16)&0xff)/255.0;_m4=((_Ks3._mm3[0]*_e4*255.0)&0xff);_m4|=((_Ks3._mm3[1]*_f4*255.0)&0xff)<<8;_m4|=((_Ks3._mm3[2]*_g4*255.0)&0xff)<<16; }else {_m4=((_Ks3._mm3[0]*255.0)&0xff);_m4|=((_Ks3._mm3[1]*255.0)&0xff)<<8;_m4|=((_Ks3._mm3[2]*255.0)&0xff)<<16;}_1u.image_blend=_m4;_1u.image_alpha=_Ks3._mm3[3]*_Ss3._dS;}if(_Ks3._on3&(1<<_gm3)){_1u.image_speed=_Ks3.imageSpeed;}if(_Ks3._on3&(1<<_jm3)){_1u.image_index=_Ks3.imageIndex;}else if(_Ks3._on3&(1<<_gm3)){var _MU=_D5._E5(_1u.sprite_index);if(_MU!=null){var _dm3=1.0;var _em3=_MU.sequence;if(_em3!=null){if(_em3._ah1==_wR)_dm3=_em3._9h1/_Cp3._9h1;else _dm3=_em3._9h1*(_x3._y3()/_Cp3._9h1);var _hm3=_Ks3._im3; if(_hm3>=0){_cm3=_hm3*_dm3;var _km3=1.0;if(_yp3>_xp3)_km3=-1.0;var _06={headPosition:_cm3,_OU:_km3,_PU:false};_QU(_em3,_06);_cm3=_06.headPosition;_km3=_06._OU;if((_em3._RU!=null)&&(_em3._RU[0]._9P==_SU)){var _M3=_em3._RU[0];var _lm3=_M3._UU._VU(_cm3,_em3._WU);var _y73;if(_lm3==null)_y73=-1;else _y73=_lm3._Lr[0]._8S;_1u.image_index=_y73;}}}}}}}}_d91.pop();}_d91.pop();}}};_2N2.prototype._Js3=function(_Ss3,_Cp3,_Ht,_Ks3,_Lw,_Bp3,_xp3,_yp3){var _8W=_Bp3._UU;var _bn3=null;var index=_8W._9m3(_xp3,_Cp3._WU);if(index!=-1){ var _cn3=_8W._8W[index];if(_cn3!=null){_bn3=_cn3._Lr[0];}}if(_bn3){var _hn3=_Ht._gn3[_Bp3.id];var _Nq=(_hn3!==undefined)?_hn3:-1;if(_Nq!=-1){_Xi3(_Nq,_Lw);if(_Ht._4s3){var _ji3=_o11[_Nq];var _Vi3=_ji3.emitters;if(_Vi3){for(var i=0;i<_Vi3.length;i++){var emitter=_Vi3[i];_wi3(emitter);if(emitter._4n&&emitter.enabled&&emitter.mode==_Ig3&&emitter._9h3<=0.0){_2q(_Nq,i,emitter._N11,emitter._7l);}}}}_w21(_Nq);}}};/*@constructor */function _b91(_jg){_cV2.call(this);this.__type="[SequenceInstance]";this.id=_jg;this._Dl3=null; this._fS=-1;this._hS=0.0;this._4X=1.0;this._BT=1.0;this._yr3=1.0;this._hK=false;this._6X=false;this._3s3=false;this._4s3=false;this._2X=0.0;this._Zs3={};this._9n3={};this._gn3={};this._en3={};this._7t3=-1;Object.defineProperties(this,{gmlsequence:{enumerable:true,get :function(){return _zT._SW(this._fS);},set :function(_B3){if(typeof(_B3)=="object"){this._fS=_zT.Sequences.indexOf(_B3);}else {this._fS=_B3;}}},gmlheadPosition:{enumerable:true,get :function(){return this._hS;},set :function(_B3){var _B3=yyGetReal(_B3); _B3=_H6(_B3,0.0);var _0X=_zT._SW(this._fS);if(_0X!=null){var length=_0X._WU;_B3=_I6(_B3,length);}this._hS=_B3;this._2X=_B3;}},gmlheadDirection:{enumerable:true,get :function(){return this._4X;},set :function(_B3){_B3=yyGetReal(_B3);if(_B3!=0){this._4X=Math.sign(_B3);}}},gmlspeedScale:{enumerable:true,get :function(){return this._BT;},set :function(_B3){_B3=yyGetReal(_B3);this._BT=_B3;}},gmlvolume:{enumerable:true,get :function(){return this._yr3;},set :function(_B3){_B3=yyGetReal(_B3);_B3=_H6(_B3,0.0);this._yr3=_B3; }},gmlpaused:{enumerable:true,get :function(){return this._hK;},},gmlfinished:{enumerable:true,get :function(){return this._6X;},},gmlactiveTracks:{enumerable:true,get :function(){var _8t3=[];_9t3=this._Dl3;while(_9t3!=null){_8t3.push(_9t3);_9t3=_9t3._HC1;}return _8t3;}},gmlelementID:{enumerable:true,get :function(){if(_t3!=null){if(this._7t3!=-1){var _7P=_3u._6u(_t3,this._7t3);if((_7P!=null)&&(_7P._9P==_iR)&&(_7P._gS==this.id)){return this._7t3;}}for(var i=0;i<_t3._gT.length;i++){var layer=_t3._gT._E5(i);for(var __5=0; __5=0)){var _1u=_Hn._ac3(_8n3._LV);if(_1u!=null){_aQ(_1u);_8n3._LV=-1;}}}}};_b91.prototype._5s3=function(_Xl3){for(var _jl2=0;_jl2<_Xl3.length;++_jl2){var _M3=_Xl3[_jl2];_d91.push(_M3);if(_M3._9P==_t81){var _ht3=_M3;if(_ht3._UU!=null){ var _Hr3=_ht3._UU._4W;for(var i=0;i<_Hr3;i++){var _FO=_ht3._UU._8W[i];_d91.push(_FO);for(var _6n3 in _FO._Lr){var _7n3=_FO._Lr[_6n3];if(_7n3._ar3!=-1){_d91.push(_7n3);var _Ys3=this._Zs3[_an3(_d91)];if(_Ys3==null){var emitter=audio_emitter_create();if(audio_emitter_exists(emitter)===true){var _it3=new _jt3();_it3._1t3=emitter;this._Zs3[_an3(_d91)]=_it3;}}_d91.pop();}}_d91.pop();}}}else if(_M3._9P==_091){var _Ir3=_M3;this._5s3(_Ir3._vq3());this._5s3(_Ir3._xq3());}else if(_M3._9P==_s81){var _Jr3=_M3;if(_Jr3._UU!=null){ var _Hr3=_Jr3._UU._4W;for(var i=0;i<_Hr3;i++){var _FO=_Jr3._UU._8W[i];_d91.push(_FO);for(var _6n3 in _FO._Lr){var _7n3=_FO._Lr[_6n3];_d91.push(_7n3);if(_7n3._3G!=-1){var _f81=_zT._SW(_7n3._3G);if(_f81!=null){_d91.push(_f81);this._5s3(_f81._RU);_d91.pop();}}_d91.pop();}_d91.pop();}}}this._5s3(_M3._RU);_d91.pop();}};_b91.prototype._Mr3=function(){{for(var key in this._9n3){var _8n3=this._9n3[key];if(_8n3._LV>=0){var _1u=_Hn._ac3(_8n3._LV);if(_1u!=null){_1u._5a3(false);_1u._aa3(false);_1u._8a3(null);if(_8n3._bt3==true){ _aQ(_1u);}_8n3._LV=-1;}}}}};_b91.prototype._Nr3=function(){{for(var key in this._Zs3){var _333=this._Zs3[key];if(audio_emitter_exists(_333._1t3)===true){audio_stop_sound(_333.__s3);audio_emitter_free(_333._1t3);_333._1t3=-1;_333.__s3=-1;}}}};_b91.prototype._Or3=function(){for(var _ml in this._gn3){var _Nq=this._gn3[_ml];if(_Nq!=-1){_Vo(_Nq);}}this._gn3={};this._en3={};};_b91.prototype._ds3=function(_kt3){{for(var key in this._9n3){var _8n3=this._9n3[key];if(_8n3._LV>=0){var _1u=_Hn._ac3(_8n3._LV);if(_1u!=null){ _1u._5a3(_kt3);if(_kt3==true){_1u._8a3(this);}else {_1u._8a3(null);}}}}}};/*@constructor */function _jt3(){this.__s3=-1;this._0t3=1;this._1t3=-1;}/*@constructor */function _lt3(){this._783=new _zz();this._Bs3=-1;this._mt3=0;this._Xq3=0;this._on3=0;this.x=0;this.y=0;this.rotation=0;this.scaleX=1;this.scaleY=1;this.xOrigin=0;this.yOrigin=0;this.gain=1;this.pitch=1;this.__q3=0;this.imageIndex=0;this.imageSpeed=1;this._im3=-1;this._mm3=[];this._mm3[0]=1;this._mm3[1]=1;this._mm3[2]=1;this._mm3[3]=1;this._nm3=[]; this._nm3[0]=0;this._nm3[1]=0;this._nm3[2]=0;this._nm3[3]=0;this.spriteIndex=-1;this._LV=_Kt;this.particleSystemIndex=-1;this._rh3=-1;this.soundIndex=-1;this._Kr3=null;this._Rs3=-1;this._qn3=0;this._rn3=0;this._tn3=0;this._wn3=0;this._zn3=0;this._Bn3=new _b33();}_lt3.prototype._Uq3=function(_Tq3){this._Xq3&=_Tq3;};_lt3.prototype._nt3=function(){this.x=0;this.y=0;this.rotation=0;this.scaleX=1;this.scaleY=1;this.xOrigin=0;this.yOrigin=0;this.gain=1;this.pitch=1;this.__q3=0;this.imageIndex=0;this.imageSpeed=1; this._im3=-1;this._mm3[0]=1;this._mm3[1]=1;this._mm3[2]=1;this._mm3[3]=1;this._nm3[0]=0;this._nm3[1]=0;this._nm3[2]=0;this._nm3[3]=0;this._qn3=0;this._rn3=0;this._tn3=0;this._wn3=0;this._zn3=0;this._Xq3=0;this._on3=0;};_lt3.prototype._Vq3=function(){this._mt3=0;};_lt3.prototype._0r3=function(_r3,_Vn){switch(_r3){case _ap3:if(_Vn)this._mt3|=(1<<0);else this._mt3&=~(1<<0);break;case _bp3:if(_Vn)this._mt3|=(1<<1);else this._mt3&=~(1<<1);break;case _gm3:if(_Vn)this._mt3|=(1<<2);else this._mt3&=~(1<<2);break; case _jm3:if(_Vn)this._mt3|=(1<<3);else this._mt3&=~(1<<3);break;}};_lt3.prototype._fm3=function(_r3){switch(_r3){case _ap3:return(this._mt3&(1<<0))!=0;case _bp3:return(this._mt3&(1<<1))!=0;case _gm3:return(this._mt3&(1<<2))!=0;case _jm3:return(this._mt3&(1<<3))!=0;}};/*@constructor */function _ot3(_7m1){_cV2.call(this);this.__type="[TrackEvalNode]";this._As3=null;this.value=new _lt3();this._Ds3=_7m1!==undefined?_7m1:null;this._HC1=null;this._7m3=null;Object.defineProperties(this,{gmlmatrix:{enumerable:true, get :function(){var _pt3=new _zz();_pt3._nj(this.value._783);return _pt3._v6;},set :function(_B3){if((_B3 instanceof Array||_B3 instanceof Float32Array)&&_B3.length==16){this.value._783._uB();for(var i=0;i<16;++i){this.value._783._v6[i]=yyGetReal(_B3[i]);}}else {throw new Error("value must be an array of numbers and of length 16");}}},gmlposx:{enumerable:true,get :function(){return this.value.x;},set :function(_B3){this.value.x=yyGetReal(_B3);this.value._783._uB();_tp3(this.value._783,this.value.x,this.value.y, this.value.scaleX,this.value.scaleY,this.value.rotation,this.value.xOrigin,this.value.yOrigin);}},gmlposy:{enumerable:true,get :function(){return this.value.y;},set :function(_B3){this.value.y=yyGetReal(_B3);this.value._783._uB();_tp3(this.value._783,this.value.x,this.value.y,this.value.scaleX,this.value.scaleY,this.value.rotation,this.value.xOrigin,this.value.yOrigin);}},gmlrotation:{enumerable:true,get :function(){return this.value.rotation;},set :function(_B3){this.value.rotation=yyGetReal(_B3);this.value._783._uB(); _tp3(this.value._783,this.value.x,this.value.y,this.value.scaleX,this.value.scaleY,this.value.rotation,this.value.xOrigin,this.value.yOrigin);}},gmlscalex:{enumerable:true,get :function(){return this.value.scaleX;},set :function(_B3){this.value.scaleX=yyGetReal(_B3);this.value._783._uB();_tp3(this.value._783,this.value.x,this.value.y,this.value.scaleX,this.value.scaleY,this.value.rotation,this.value.xOrigin,this.value.yOrigin);}},gmlscaley:{enumerable:true,get :function(){return this.value.scaleY;},set :function(_B3){ this.value.scaleY=yyGetReal(_B3);this.value._783._uB();_tp3(this.value._783,this.value.x,this.value.y,this.value.scaleX,this.value.scaleY,this.value.rotation,this.value.xOrigin,this.value.yOrigin);}},gmlxorigin:{enumerable:true,get :function(){return this.value.xOrigin;},set :function(_B3){this.value.xOrigin=yyGetReal(_B3);this.value._0r3(_ap3,true);this.value._783._uB();_tp3(this.value._783,this.value.x,this.value.y,this.value.scaleX,this.value.scaleY,this.value.rotation,this.value.xOrigin,this.value.yOrigin); }},gmlyorigin:{enumerable:true,get :function(){return this.value.yOrigin;},set :function(_B3){this.value.yOrigin=yyGetReal(_B3);this.value._0r3(_bp3,true);this.value._783._uB();_tp3(this.value._783,this.value.x,this.value.y,this.value.scaleX,this.value.scaleY,this.value.rotation,this.value.xOrigin,this.value.yOrigin);}},gmlgain:{enumerable:true,get :function(){return this.value.gain;},set :function(_B3){this.value.gain=yyGetReal(_B3);}},gmlpitch:{enumerable:true,get :function(){return this.value.pitch;} ,set :function(_B3){this.value.pitch=yyGetReal(_B3);}},gmlfalloff:{enumerable:true,get :function(){return this.value.__q3;},set :function(_B3){this.value.__q3=yyGetInt32(_B3);}},gmlimageindex:{enumerable:true,get :function(){return this.value.imageIndex;},set :function(_B3){this.value.imageIndex=yyGetInt32(_B3);this.value._0r3(_jm3,true);}},gmlimagespeed:{enumerable:true,get :function(){return this.value.imageSpeed;},set :function(_B3){this.value.imageSpeed=yyGetReal(_B3);this.value._0r3(_gm3,true);}},gmlcolormultiply:{ enumerable:true,get :function(){_qt3=[];_qt3[0]=yyGetReal(this.value._mm3[3]);_qt3[1]=yyGetReal(this.value._mm3[0]);_qt3[2]=yyGetReal(this.value._mm3[1]);_qt3[3]=yyGetReal(this.value._mm3[2]);return _qt3;},set :function(_B3){if(_B3 instanceof Array){this.value._mm3[0]=yyGetReal(_B3[1]);this.value._mm3[1]=yyGetReal(_B3[2]);this.value._mm3[2]=yyGetReal(_B3[3]);this.value._mm3[3]=yyGetReal(_B3[0]);}else {var _m4=yyGetInt32(_B3);this.value._mm3[0]=(_m4&0xff)/255.0;this.value._mm3[1]=((_m4>>8)&0xff)/255.0;this.value._mm3[2]=((_m4>>16)&0xff)/255.0; this.value._mm3[3]=((_m4>>24)&0xff)/255.0;}}},gmlcolourmultiply:{enumerable:true,get :function(){_qt3=[];_qt3[0]=yyGetReal(this.value._mm3[3]);_qt3[1]=yyGetReal(this.value._mm3[0]);_qt3[2]=yyGetReal(this.value._mm3[1]);_qt3[3]=yyGetReal(this.value._mm3[2]);return _qt3;},set :function(_B3){if(_B3 instanceof Array){this.value._mm3[0]=yyGetReal(_B3[1]);this.value._mm3[1]=yyGetReal(_B3[2]);this.value._mm3[2]=yyGetReal(_B3[3]);this.value._mm3[3]=yyGetReal(_B3[0]);}else {var _m4=yyGetInt32(_B3);this.value._mm3[0]=(_m4&0xff)/255.0; this.value._mm3[1]=((_m4>>8)&0xff)/255.0;this.value._mm3[2]=((_m4>>16)&0xff)/255.0;this.value._mm3[3]=((_m4>>24)&0xff)/255.0;}}},gmlcoloradd:{enumerable:true,get :function(){_qt3=[];_qt3[0]=yyGetReal(this.value._nm3[3]);_qt3[1]=yyGetReal(this.value._nm3[0]);_qt3[2]=yyGetReal(this.value._nm3[1]);_qt3[3]=yyGetReal(this.value._nm3[2]);return _qt3;},set :function(_B3){if(_B3 instanceof Array){this.value._nm3[0]=yyGetReal(_B3[1]);this.value._nm3[1]=yyGetReal(_B3[2]);this.value._nm3[2]=yyGetReal(_B3[3]);this.value._nm3[3]=yyGetReal(_B3[0]); }else {var _m4=yyGetInt32(_B3);this.value._nm3[0]=(_m4&0xff)/255.0;this.value._nm3[1]=((_m4>>8)&0xff)/255.0;this.value._nm3[2]=((_m4>>16)&0xff)/255.0;this.value._nm3[3]=((_m4>>24)&0xff)/255.0;}}},gmlcolouradd:{enumerable:true,get :function(){_qt3=[];_qt3[0]=yyGetReal(this.value._nm3[3]);_qt3[1]=yyGetReal(this.value._nm3[0]);_qt3[2]=yyGetReal(this.value._nm3[1]);_qt3[3]=yyGetReal(this.value._nm3[2]);return _qt3;},set :function(_B3){if(_B3 instanceof Array){this.value._nm3[0]=yyGetReal(_B3[1]);this.value._nm3[1]=yyGetReal(_B3[2]); this.value._nm3[2]=yyGetReal(_B3[3]);this.value._nm3[3]=yyGetReal(_B3[0]);}else {var _m4=yyGetInt32(_B3);this.value._nm3[0]=(_m4&0xff)/255.0;this.value._nm3[1]=((_m4>>8)&0xff)/255.0;this.value._nm3[2]=((_m4>>16)&0xff)/255.0;this.value._nm3[3]=((_m4>>24)&0xff)/255.0;}}},gmlspriteIndex:{enumerable:true,get :function(){if((this._As3!=null)&&(this._As3._9P==_q81)){return this.value.spriteIndex;}else {return -1;}}},gmlinstanceID:{enumerable:true,get :function(){if((this._As3!=null)&&(this._As3._9P==_r81)){return this.value._LV; }else {return _Kt;}}},gmlemitterIndex:{enumerable:true,get :function(){if((this._As3!=null)&&(this._As3._9P==_t81)){return this.value._rh3;}else {return -1;}}},gmlsoundIndex:{enumerable:true,get :function(){if((this._As3!=null)&&(this._As3._9P==_t81)){return this.value.soundIndex;}else {return -1;}}},gmlsequence:{enumerable:true,get :function(){if((this._As3!=null)&&(this._As3._9P==_s81)){return this.value._Kr3;}else {return -1;}}},gmlsequenceID:{enumerable:true,get :function(){if((this._As3!=null)&&(this._As3._9P==_s81)){ return this.value._Rs3;}else {return -1;}}},gmlframeSizeX:{enumerable:true,get :function(){if((this._As3!=null)&&(this._As3._9P==_C81)){return this.value._qn3;}else {return -1;}},set :function(_B3){if((this._As3!=null)&&(this._As3._9P==_C81)){this.value._qn3=yyGetReal(_B3);}}},gmlframeSizeY:{enumerable:true,get :function(){if((this._As3!=null)&&(this._As3._9P==_C81)){return this.value._rn3;}else {return -1;}},set :function(_B3){if((this._As3!=null)&&(this._As3._9P==_C81)){this.value._rn3=yyGetReal(_B3);}}},gmlcharacterSpacing:{ enumerable:true,get :function(){if((this._As3!=null)&&(this._As3._9P==_C81)){return this.value._tn3;}else {return -1;}},set :function(_B3){if((this._As3!=null)&&(this._As3._9P==_C81)){this.value._tn3=yyGetReal(_B3);}}},gmllineSpacing:{enumerable:true,get :function(){if((this._As3!=null)&&(this._As3._9P==_C81)){return this.value._wn3;}else {return -1;}},set :function(_B3){if((this._As3!=null)&&(this._As3._9P==_C81)){this.value._wn3=yyGetReal(_B3);}}},gmlparagraphSpacing:{enumerable:true,get :function(){if((this._As3!=null)&&(this._As3._9P==_C81)){ return this.value._zn3;}else {return -1;}},set :function(_B3){if((this._As3!=null)&&(this._As3._9P==_C81)){this.value._zn3=yyGetReal(_B3);}}},gmltrack:{enumerable:true,get :function(){return this._As3;}},gmlparent:{enumerable:true,get :function(){return this._Ds3;}},gmlactiveTracks:{enumerable:true,get :function(){var _8t3=[];_9t3=this._7m3;while(_9t3!=null){_8t3.push(_9t3);_9t3=_9t3._HC1;}return _8t3;}},});}function _zs3(_ts3,_rt3,_st3){var _qc3={};if(_rt3==null){var _Jl=new _ot3();if(_st3==null){if(_ts3 instanceof _b91){ _ts3._Dl3=_Jl;}else {_ts3._7m3=_Jl;}}else {_st3._HC1=_Jl;}if(_ts3 instanceof _b91){_Jl._Ds3=null;}else {_Jl._Ds3=_ts3;}_qc3._Jl=_Jl;_qc3._kl=null;}else {_qc3._Jl=_rt3;_qc3._kl=_rt3._HC1;}return _qc3;}/*@constructor */function _dt3(){this._et3=null;this._ft3=-1;this._LV=-1;this._bt3=false;};var _Jb1=[];function _tt3(_ut3){}function _vt3(_hm1){try{var _wt3=new Audio();if(_wt3.canPlayType('audio/mpeg')=="probably")_hm1(true);_wt3.addEventListener('canplaythrough',function(e){_hm1(true);},false);_wt3.addEventListener('error', function(e){_hm1(false,this.error);},false);_wt3.src="data:audio/mpeg;base64,/+MYxAAAAANIAAAAAExBTUUzLjk4LjIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA";_wt3.load();}catch(e){_hm1(false,e);}}/*@constructor */function _xt3(){this.__type="[sound]";this.pName="";this.kind=0;this.extension="";this.origName="";this.effects=0;this.volume=1;this.pan=0;this.preload=true;this._yt3=1.0;this.__s3=0;this._5g1=[];}_xt3.prototype._zt3=function(_bV2){this.pName=_bV2.pName;this.kind=_bV2.kind; this.extension=_bV2.extension;this.origName=_bV2.origName;this.effects=_bV2.effects;this.volume=_bV2.volume;this.pan=_bV2.pan;this.preload=_bV2.preload;this._yt3=this.volume;this._ye1(this.pName);};_xt3.prototype._ye1=function(_hn){this.__s3=0;this._5g1=[];var _At3=_Jb1[this.pName];if(_At3){if(_2L2>1&&typeof _At3.cloneNode==="function"){for(var i=0;i<_2L2;i++)this._5g1[i]=_At3.cloneNode(true);}else {_2L2=1;this._5g1[0]=_At3;}}};var _Bt3=false;function _2g1(_or,_jg,_de1,_AN,_Fu2){_or=_Ec1(_or);if(_le1==false){ return undefined;}var _Ct3=false;var pName=_or;var _Fc1;var index;index=_or.indexOf(_de1);if(index>0){_or=_or.substr(0,index);}if(_Gc1){_de1="ogg";}else if(_Hc1){_de1="mp3";}else {_de1="ogg";}_Ct3=true;if(_Ct3){_or=_or+"."+_de1;try{var _kn=new Audio();_kn.URL=_or;_kn._yt3=1.0;_kn.autobuffer=true;if(typeof _kn.loop=='boolean')_kn.loop=false;_kn.preload='auto';_kn._hN2=false;_kn._Dt3=false;var _Hk=document.createElement('source');_Hk.setAttribute("src",_or);if(_de1=="ogg"){_Hk.setAttribute("type",'audio/ogg'); _Hk.setAttribute("codecs",'vorbis');}else {_Hk.setAttribute("type",'audio/mpeg');}_kn.setAttribute("networkState",0);_kn.insertBefore(_Hk,null);document.body.appendChild(_kn);_Jb1[pName]=_kn;_kn.addEventListener('canplaythrough',_AN,false);_kn.addEventListener('error',_Fu2,false);_kn.addEventListener("loadstart",_eN2,false);_kn.addEventListener("suspend",_fN2,false);_kn.addEventListener("stalled",_gN2,false);_kn.addEventListener("stall",_gN2,false);_kn.load();}catch(e){if(_UN==_nF2&&_Bt3==false){ var _Et3=navigator;_Bt3=true;var _Ft3=_Et3.userAgent.indexOf("Windows");if(_Ft3!=-1){alert("Audio Error: Please ensure that quicktime is installed");}}}}return _jg;}/*@constructor */function _YM2(){this.Sounds=[];this.length=0;}_YM2.prototype._Ll=function(_J3){if(this.Sounds[_J3]){this._Iq(_J3);this.Sounds[_J3]=undefined;}};/*@this {yySound} */function _Gt3(){this._Dt3=false;}_YM2.prototype._Ht3=function(_J3){try{var _It3=this.Sounds[_J3];if(!_It3)return null;var _Jt3=_It3._5g1[this.Sounds[_J3].__s3];this.Sounds[_J3].__s3++; if(this.Sounds[_J3].__s3>=_2L2){this.Sounds[_J3].__s3=0;}return _Jt3;}catch(e){debug("Sound buffer unavailable for sound: "+_J3);}return null;};_YM2.prototype._nn=function(_J3){var _It3=this._Ht3(_J3);if(_It3!=null){try{if(_It3._Dt3)return;var buffered=_It3.buffered;var _Kt3=_It3.buffered.length;var i;for(i=0;i<_Kt3;i++){var start=_It3.buffered.start(i);var end=_It3.buffered.end(i);}_It3.removeEventListener('ended',_Lt3,false);_It3.removeEventListener('ended',_Gt3,false);if(typeof _It3.loop=='boolean'){_It3.loop=false; }try{if(_It3.currentTime!=0){_It3.currentTime=0;}}catch(_bk){if(_ae1)debug("Error setting current sound time: "+this.Sounds[_J3].pName);}_It3.volume=this.Sounds[_J3]._yt3*_LL2;_It3.addEventListener('ended',_Gt3,false);_It3._Dt3=true;_It3.play();}catch(_bk){if(_ae1)debug("Error playing sound: "+this.Sounds[_J3].pName);}}};_YM2.prototype._Iq=function(_od){{var _Mt3=this.Sounds[_od];if(!_Mt3)return;_Mt3=_Mt3._5g1;for(var i=0;i<_Mt3.length;i++){var _It3=_Mt3[i];if(_It3!=null){try{_It3.pause();_It3._Dt3=false; }catch(_bk){if(_ae1)debug("Error stopping sound: "+this.Sounds[_od].pName);}}}}};_YM2.prototype._Qf1=function(){for(var _Nt3=0;_Nt3_St3)&&(_It3.volume>_St3)){ _Wt3=_0d1._yt3-_Tt3;}else {return;}if(_Wt3<0){_Wt3=0;}if(_Wt3>1){_Wt3=1;}_0d1._yt3=_Wt3;_Vt3.volume=_Wt3*_LL2;_Ut3(_Vt3);},_Qt3);}_Ut3(_It3);}catch(_bk){if(_ae1)debug("Error volume: "+_0d1.pName);}}}};_YM2.prototype._Kq=function(_od){var _Mt3=this.Sounds[_od];if(!_Mt3)return;_Mt3=_Mt3._5g1;var playing=false;for(var i=0;i<_Mt3.length;i++){var _It3=_Mt3[i];if(_It3!=null){try{if(_It3._Dt3){playing=true;break;}}catch(_bk){if(_ae1)debug("Error checking play state: "+this.Sounds[_od].pName);}}}return playing; };_YM2.prototype._E5=function(_J3){if(_J3<0||_J3>=this.Sounds.length)return null;return this.Sounds[_J3];};_YM2.prototype._Wf=function(){this.Sounds=[];this.Sounds.length=0;};_YM2.prototype._Gf=function(_bV2){var _2s=null;if(_bV2!=null){_2s=new _xt3();_2s._zt3(_bV2);}this.Sounds[this.Sounds.length]=_2s;};_YM2.prototype._Gf1=function(){var _3g1=new _xt3();this.Sounds[this.Sounds.length]=_3g1;return this.Sounds.length-1;};var _wR=0,_w3=1,_Dr3=2;var _Xt3=2147483647;var _vg1={_wg1:0,_Qg1:1,_Sa3:2,_Fa3:3,};/*@constructor */function _BP(){ this.x=0;this.y=0;};/*@constructor */function _YO(){this._X4=0;this._Y4=0;};/*@constructor */function _IF(){this.left=0;this.top=0;this.right=0;this.bottom=0;};_IF.prototype._nj=function(__g1){this.left=__g1.left;this.right=__g1.right;this.top=__g1.top;this.bottom=__g1.bottom;};/*@constructor */function _tg1(){this.__type="[sprite]";this.pName="sprite";this.width=16;this.height=16;this._IP=new _IF;this.transparent=true;this.smooth=true;this.preload=true;this._dg1=0;this._1r=_vg1._wg1;this.xOrigin=0; this.yOrigin=0;this._xs=false;this._E6=0;this._Cg1=8;this._xg1=false;this._yg1=false;this._F6=[];this._Yt3=[];this._C4=[];this.Masks=[];this.playbackspeedtype=_wR;this.playbackspeed=30;this.sequence=null;this._bh1=null;this._Zt3=false;this._Fg1=false;};_tg1.prototype._CP=function(){return this._1r===_vg1._Qg1;};_tg1.prototype.__t3=function(){return this.xOrigin;};_tg1.prototype._0u3=function(){return this.yOrigin;};_tg1.prototype._f6=function(){return this._IP;};_tg1.prototype._D4=function(){return this._E6; };_tg1.prototype._aN=function(){return this.width;};_tg1.prototype._bN=function(){return this.height;};var _1u3=function(x){return ~~x;};/* * @param {spine.Skeleton} _skeleton * * @returns {[width: Number, height: Number]?} */_tg1.prototype._2u3=function(_l9){var _Li=new _IF();_l9._B5();if(this._3u3(_l9,_Li)){var width=_1u3(_Li.right-_Li.left+0.5);var height=_1u3(_Li.bottom-_Li.top+0.5);return [width,height];}var skins=_l9.data.skins;for(var i=0;i>1;for(var __5=0;__5<_F9;++__5){var _4u3=vertices[(__5*2)+0];var _5u3=vertices[(__5*2)+1];_T5.left=_1u3(Math.min(_T5.left,_4u3));_T5.right=_1u3(Math.max(_T5.right,_4u3));_T5.top=_1u3(Math.min(_T5.top,_5u3));_T5.bottom=_1u3(Math.max(_T5.bottom,_5u3));_qc3=true;}}}}return _qc3;};_tg1.prototype._Ha3=function(_co,_do){var _6u3=new _IF;var _7u3=Math.abs(_co);var _8u3=Math.abs(_do);var _9u3=new _IF;_9u3.left=this._IP.left;_9u3.right=this._IP.right+1;_9u3.top=this._IP.top;_9u3.bottom=this._IP.bottom+1; if((this._bh1!=null)&&(this._bh1._Ga3())){if((_9u3.left==0)&&(_9u3.top==0)&&(_9u3.right==this.width)&&(_9u3.bottom==this.height)){_6u3.left=0;_6u3.top=0;_6u3.right=_9u3.right*_7u3;_6u3.bottom=_9u3.bottom*_8u3;}else {var _au3=this.width*_7u3;var _bu3=this.height*_8u3;var _cu3=this._bh1.__e3();var _du3=(this.width-this._bh1._1f3())-this._bh1.__e3();var _eu3=_du3;var _fu3=this._bh1._1f3();var _gu3=this._bh1._0f3();var _hu3=(this.height-this._bh1._2f3())-this._bh1._0f3();var _iu3=_hu3;var _ju3=this._bh1._2f3(); if(_au3<_cu3){_cu3=_au3;_eu3=0.0;_fu3=0.0;}else if(_au3<(_cu3+_fu3)){_eu3=0.0;_fu3=_au3-_cu3;}else {_eu3=_au3-(_cu3+_fu3);}if(_bu3<_gu3){_gu3=_bu3;_iu3=0.0;_ju3=0.0;}else if(_bu3<(_gu3+_ju3)){_iu3=0.0;_ju3=_bu3-_gu3;}else {_iu3=_bu3-(_gu3+_ju3);}if(_9u3.left<=this._bh1.__e3())_6u3.left=_9u3.left;else if(_9u3.left>=((this.width-this._bh1._1f3())))_6u3.left=_cu3+_eu3+(_9u3.left-(this.width-this._bh1._1f3()));else {var ratio=(_9u3.left-this._bh1.__e3())/_du3;_6u3.left=_cu3+(_eu3*ratio);}if(_9u3.right<=this._bh1.__e3())_6u3.right=_9u3.right; else if(_9u3.right>=((this.width-this._bh1._1f3())))_6u3.right=_cu3+_eu3+(_9u3.right-(this.width-this._bh1._1f3()));else {var ratio=(_9u3.right-this._bh1.__e3())/_du3;_6u3.right=_cu3+(_eu3*ratio);}if(_9u3.top<=this._bh1._0f3())_6u3.top=_9u3.top;else if(_9u3.top>=((this.height-this._bh1._2f3())))_6u3.top=_gu3+_iu3+(_9u3.top-(this.height-this._bh1._2f3()));else {var ratio=(_9u3.top-this._bh1._0f3())/_hu3;_6u3.top=_gu3+(_iu3*ratio);}if(_9u3.bottom<=this._bh1._0f3())_6u3.bottom=_9u3.bottom;else if(_9u3.bottom>=((this.height-this._bh1._2f3())))_6u3.bottom=_gu3+_iu3+(_9u3.bottom-(this.height-this._bh1._2f3())); else {var ratio=(_9u3.bottom-this._bh1._0f3())/_hu3;_6u3.bottom=_gu3+(_iu3*ratio);}_6u3.left=_I6(_6u3.left,_au3);_6u3.right=_I6(_6u3.right,_au3);_6u3.top=_I6(_6u3.top,_bu3);_6u3.bottom=_I6(_6u3.bottom,_bu3);}_6u3.left-=this.xOrigin*_7u3;_6u3.right-=this.xOrigin*_7u3;_6u3.top-=this.yOrigin*_8u3;_6u3.bottom-=this.yOrigin*_8u3;}else {_6u3.left=(_9u3.left-this.xOrigin)*_7u3;_6u3.right=(_9u3.right-this.xOrigin)*_7u3;_6u3.top=(_9u3.top-this.yOrigin)*_8u3;_6u3.bottom=(_9u3.bottom-this.yOrigin)*_8u3;}if(_co<0.0){ _6u3.left=-_6u3.left;_6u3.right=-_6u3.right;}if(_do<0.0){_6u3.top=-_6u3.top;_6u3.bottom=-_6u3.bottom;}if(_6u3.left>_6u3.right){var _iV=_6u3.left;_6u3.left=_6u3.right;_6u3.right=_iV;}if(_6u3.top>_6u3.bottom){var _iV=_6u3.top;_6u3.top=_6u3.bottom;_6u3.bottom=_iV;}_6u3.right-=1;_6u3.bottom-=1;return _6u3;};_tg1.prototype._eg1=function(){var _ku3=(this.yOrigin*this.yOrigin);var _lu3=(this.xOrigin*this.xOrigin);var _mu3=(this.width-this.xOrigin)*(this.width-this.xOrigin);var _nu3=(this.height-this.yOrigin)*(this.height-this.yOrigin); var _ou3=~~ceil(sqrt(_lu3+_ku3));var _pu3=~~ceil(sqrt(_mu3+_ku3));var _qu3=~~ceil(sqrt(_lu3+_nu3));var _ru3=~~ceil(sqrt(_mu3+_nu3));this._Cg1=_H6(_ou3,_H6(_pu3,_H6(_qu3,_ru3)));};_tg1.prototype._su3=function(_tu3,_u4,_v4){try{if(_D5._uu3!==undefined){var _vu3=true;var byteOffset=0;var _wu3=_D5._uu3[_tu3];var _702=new DataView(_wu3);if(_702!==undefined){var _xu3=_702.getInt32(byteOffset,_vu3);var _yu3=(1<<31);if((_xu3&_yu3)!=0){_xu3&=(~_yu3);byteOffset+=4;}byteOffset+=4;var _zu3=null;if(_xu3>0){_zu3=new Uint8Array(_wu3, byteOffset,_xu3);byteOffset+=((_xu3+3)&~3);}var _Au3=_702.getUint32(byteOffset,_vu3);byteOffset+=4;this._sM=[];for(var i=0;i<_Au3;i++){var type=_702.getInt32(byteOffset,_vu3);byteOffset+=4;var id=_702.getInt32(byteOffset,_vu3);byteOffset+=4;var _Bu3=null;if(type===_Ju2){_Bu3=new _Su2(type,id);byteOffset=_Bu3._Tu2(_702,byteOffset,_vu3,this._sM);}else if(type===_Ku2){_Bu3=new _ku2(type,id);byteOffset=_Bu3._mu2(_wu3,_702,byteOffset,_vu3,_zu3);}else {_Bu3={type:_Iu2,id:id};}this._sM.push(_Bu3);}this._823=new _Vv2(); byteOffset=this._823._Zv2(_702,byteOffset,_vu3);if(this._823._Yv2.__v2>0){byteOffset=this._Cu3(_702,byteOffset,_vu3);if(!this._Zt3){this._1r=_vg1._Qg1;}}else {this.width=this._823._56;this.height=this._823._76;if(!this._Zt3){this._1r=_vg1._wg1;}}if(!this._Zt3){this._dg1=0;this.preload=true;}if(!this._Zt3&&this._1r===_vg1._wg1){this._IP.left=this._823._46;this._IP.right=this._823._56;this._IP.top=this._823._66;this._IP.bottom=this._823._76;this.xOrigin=_u4;this.yOrigin=_v4;}this._eg1();this._Du3(); }}}catch(e){debug("Cannot build SWF data "+e.message);}};_tg1.prototype._Cu3=function(_nu2,_ou2,_pu2){if(this._1r!==_vg1._Qg1){return;}this._F6=[];this.width=this._823._Yv2._0w2;this.height=this._823._Yv2._1w2;var __v2=this._823._Yv2.__v2;for(var i=0;i<__v2;i++){var _Eu3=_nu2.getInt32(_ou2,_pu2);_ou2+=4;var _Fu3=_ou2;var _Gu3=0;var _132=[];for(var __5=0;__5<_Eu3;__5++){var _Hu3=_nu2.getUint8(_ou2,_pu2);_ou2+=1;var _Iu3=((_Hu3)&0x80)!=0?true:false;var _Ju3=((_Hu3)&0x7f)+1;for(var _ml=0;_ml<_Ju3;_ml++){_132[_Gu3++]=_Iu3; }}var _Ku3=new Uint8Array(_132.length);for(var i=0;i<_132.length;++i)_Ku3[i]=_132[i];this._F6[i]=_Ku3;_ou2=_Fu3+((_Eu3+3)&~3);}this._xg1=true;return _ou2;};_tg1.prototype._Du3=function(){this._19=function(_t4,_q5,_r5,_co,_do,_u5,_Pc,_u9){_v63(this._sM,this._823,_t4,this.xOrigin,this.yOrigin,_q5,_r5,_co,_do,_u5,_Pc,_u9,this._C4);};this._Yk1=function(_t4,_q5,_r5,_u9){_v63(this._sM,this._823,_t4,this.xOrigin,this.yOrigin,_q5,_r5,1.0,1.0,0.0,0xffffffff,_u9,this._C4);};};_tg1.prototype._Lu3=function(_83){ if(_83){this._tM=new _88();this._tM._s8(this._Fg1?'':(this.pName+'/'),this.pName,_83.json,_83._75,_83._z8,_83._A8,this);}this._19=function(_t4,_q5,_r5,_co,_do,_u5,_Pc,_u9){this._tM._19(_t4,_q5,_r5,_co,_do,_u5,_Pc,_u9);};this._Yk1=function(_t4,_q5,_r5,_u9){this._tM._19(_t4,_q5,_r5,1,1,0,0xffffff,_u9);};this._E6=_Xt3;};_tg1.prototype._Gg1=function(_nl,_am1){var _Mu3=function(_nl,_am1){var _Nu3='Could not load file contents!';var _Mb1=new XMLHttpRequest();_Mb1.open('GET',_Ec1(_nl),true);_Mb1.send();_Mb1.onload=function(){ if(_am1){_am1((_Mb1.status==200)?null:_Nu3,_Mb1.response||_Mb1.responseText);}};_Mb1.onerror=function(){if(_am1){_am1(_Nu3);}};};var _Ou3=function(_Pu3){var _6H=_Pu3.split('\n');var _X42=[];var current=undefined;var _Qu3=true;var _Ru3=new RegExp('^size*:\\s*(\\d+)\\s*,\\s*(\\d+)$');for(var i=0;i<_6H.length;++i){var _CE=_6H[i].trim();if(_Qu3){if(current!=undefined){if(current.width===undefined||current.height===undefined){return undefined;}_X42.push(current);}current={name:_CE};_Qu3=false;}else {if(_CE==''){ _Qu3=true;}else if(current!=undefined){var _v6=_CE.match(_Ru3);if(_v6){current.width=parseInt(_v6[1]);current.height=parseInt(_v6[2]);}}}}if(current!=undefined){if(current.width===undefined||current.height===undefined){return undefined;}_X42.push(current);}return _X42;};var _MU=this;var _Su3=_nl.slice(0,-5)+'.atlas';var _Tu3=2;var _Uu3=false;var _75;var _X42;var _Vu3=function(err){if(_Uu3){return;}if(err){_Uu3=true;if(_am1){_am1(err);}return;}if(--_Tu3==0){var _nl2={json:json,_75:_75,_z8:_X42.length,_A8:_X42, };_MU._Lu3(_nl2);var size=_MU._2u3((new _P2(_MU._tM))._Z2);if(size instanceof Array){_MU.width=size[0];_MU.height=size[1];}if(_am1){_am1();}}};_Mu3(_nl,function(_Na1,_Wu3){if(!_Na1){json=_Wu3;}_Vu3(_Na1);});_Mu3(_Su3,function(_Na1,_Wu3){if(!_Na1){_75=_Wu3;_X42=_Ou3(_75);if(_X42===undefined){_Vu3('Invalid atlas format!');return;}}_Vu3(_Na1);});};_tg1.prototype._Xu3=function(_Yu3){this.sequence=new _m81(_Yu3);this.xOrigin=this.sequence._Kl3;this.yOrigin=this.sequence._Ll3;};_tg1.prototype._Zu3=function(__u3){ this._bh1=new _ch1(__u3);};function _0v3(_1v3,_nG){if(_1v3.Masks[_nG]!=null){var _v6=[];var src=0;var _ba=0;var _Bm;while(src<_1v3.Masks[_nG].length){var _2v3=_1v3.Masks[_nG][src++];if(_2v3&0x80){_2v3=(_2v3&0x7f)+1;_Bm=_1v3.Masks[_nG][src++];for(var _Y4=0;_Y4<_2v3;_Y4++){_v6[_ba++]=_Bm;}}else {_2v3++;for(var _Y4=0;_Y4<_2v3;_Y4++){_v6[_ba++]=_1v3.Masks[_nG][src++];}}}}_1v3.Masks[_nG]=_v6;}function _UN2(_3v3){var _qA2=new _tg1();if(_3v3.pName!==undefined)_qA2.pName=_3v3.pName;if(_3v3.width!==undefined)_qA2.width=_3v3.width; if(_3v3.height!==undefined)_qA2.height=_3v3.height;if(_3v3.bboxLeft!==undefined)_qA2._IP.left=_3v3.bboxLeft;if(_3v3.bboxRight!==undefined)_qA2._IP.right=_3v3.bboxRight;if(_3v3.bboxTop!==undefined)_qA2._IP.top=_3v3.bboxTop;if(_3v3.bboxBottom!==undefined)_qA2._IP.bottom=_3v3.bboxBottom;if(_3v3.transparent!==undefined)_qA2.transparent=_3v3.transparent;if(_3v3.smooth!==undefined)_qA2.smooth=_3v3.smooth;if(_3v3.preload!==undefined)_qA2.preload=_3v3.preload;if(_3v3.bboxMode!==undefined)_qA2._dg1=_3v3.bboxMode; if(_3v3.colCheck!==undefined)_qA2._1r=_3v3.colCheck;if(_3v3.xOrigin!==undefined)_qA2.xOrigin=_3v3.xOrigin;if(_3v3.yOrigin!==undefined)_qA2.yOrigin=_3v3.yOrigin;if(_3v3.playbackspeedtype!==undefined)_qA2.playbackspeedtype=_3v3.playbackspeedtype;if(_3v3.playbackspeed!==undefined)_qA2.playbackspeed=_3v3.playbackspeed;_qA2.Masks=null;if(_3v3.swf!==undefined){_qA2._Zt3=true;_qA2._su3(_3v3.swf,_qA2.xOrigin,_qA2.yOrigin);}if(_3v3.sequence!==undefined){_qA2._Xu3(_3v3.sequence);}if(_3v3.nineslice!==undefined){ _qA2._Zu3(_3v3.nineslice);}if(_3v3.Masks!==undefined)_qA2.Masks=_3v3.Masks;_qA2._C4=[];for(var i=_3v3.TPEntryIndex.length-1;i>=0;i--){_qA2._C4[i]=_3v3.TPEntryIndex[i];}if(_qA2._E6==0){_qA2._E6=_qA2._C4.length;}for(var i=0;i<_qA2._C4.length;i++){_qA2._C4[i]=_CW2(_qA2._C4[i]);if(_qA2._C4[i]!=null){if(_qA2._C4[i].CropWidth==0)_qA2._C4[i].CropWidth=1;if(_qA2._C4[i].CropHeight==0)_qA2._C4[i].CropHeight=1;}}if(_3v3.skel!==undefined){var _nl2=_D5._Kh2?_D5._Kh2[_3v3.skel]:undefined;_qA2._Lu3(_nl2);}_qA2._eg1(); if(_qA2.Masks){for(var i=0;i<_3v3.Masks.length;i++){if(!_3v3._4v3)_0v3(_qA2,i);_qA2._xg1=true;var size=_qA2.width*_qA2.height;var _132=new Uint8Array(size);var _5v3=((_qA2.width+7)>>3);var _Wc2=0;for(var y=0;y<_qA2.height;++y,_Wc2+=_5v3){var _v6=0x80;var _6v3=_Wc2;for(var x=0;x<_qA2.width;++x,_v6>>=1){if(_v6==0){_v6=0x80;++_6v3;}_132[x+(y*_qA2.width)]=((_qA2.Masks[i][_6v3]&_v6)!=0);}}_qA2._F6[i]=_132;}}_3v3._4v3=true;return _qA2;}function _7v3(position,_T61){var _kN=_oB[_VA];var _8v3=_kN._JO2();var _9v3=_cN(); return _9v3._9F2(_kN._0N(position),_T61*_8v3);}_tg1.prototype._Yk1=function(_av3,_q5,_r5,_u9){if(this._E6<=0)return;var _Cg1=this._Cg1;if(_7v3(new _Tz(_q5,_r5,_Ta),_Cg1)){_av3=(~~_av3)%this._E6;if(_av3<0)_av3=_av3+this._E6;if(!this._C4)return;var _B4=this._C4[_av3];if(!_B4)return;if((this._bh1!=null)&&(this._bh1.enabled==true)){var _m4=0xffffffff;this._bh1._19(_q5,_r5,this.width,this.height,0,_m4,1,_av3,this);}else {if((_B4.w==_B4.CropWidth)&&(_B4.h==_B4.CropHeight)){_Cs(_B4,_q5-this.xOrigin,_r5-this.yOrigin, _u9);}else {var _m4=0xffffffff;_Ns(_B4,0,0,_q5-this.xOrigin,_r5-this.yOrigin,1,1,0,_m4,_m4,_m4,_m4,1);}}}};_tg1.prototype._19=function(_t4,_q5,_r5,_co,_do,_u5,_Pc,_u9){if(this._E6<=0)return;if(this.sequence!=null){if(_t4<0){return;}}if(!this._C4)return;var _bv3=abs(this._Cg1*_co);var _cv3=abs(this._Cg1*_do);var _Cg1;if(_bv3>_cv3){_Cg1=_bv3;}else {_Cg1=_cv3;}if(_7v3(new _Tz(_q5,_r5,_Ta),_Cg1)){_t4=(~~_t4)%this._E6;if(_t4<0)_t4+=this._E6;_u5=_nM2(_u5,360.0);if((this._bh1!=null)&&(this._bh1.enabled==true)){ this._bh1._19(_q5,_r5,this.width*_co,this.height*_do,_u5,_Pc,_u9,_t4,this);}else {_Ns(this._C4[_t4],this.xOrigin,this.yOrigin,_q5,_r5,_co,_do,_u5*Math.PI/180.0,_Pc,undefined,undefined,undefined,_u9);}}};_tg1.prototype._HM=function(_f7,_q5,_r5,_Q7){if((this._tM===undefined)||(this._tM===null))return;var _tR=_f7.image_xscale;var _uR=_f7.image_yscale;var x=_f7.x;var y=_f7.y;var _k9=Math.floor(_f7.image_index);if(this._E6>0){_k9=(~~_k9)%this._E6;}if(_k9<0)_k9+=this._E6;var angle=_f7.image_angle;this._tM._59(_f7, undefined,undefined,_k9,x,y,_tR,_uR,angle,_q5,_r5,_Q7);};_tg1.prototype._0l1=function(_av3,_W6,_X6,_o6,_p6,_Ju,_Ku,_Zk1,__k1,_u9){if(this._E6<=0)return;_av3=(~~_av3)%this._E6;if(_av3<0)_av3=_av3+this._E6;if(!this._C4)return;_H73(this._C4[_av3],_W6,_X6,_o6,_p6,_Ju,_Ku,_Zk1,__k1,_u9);};function _PP(_X4,_Y4,_dv3,width){return _dv3[_X4+(_Y4*width)]};_tg1.prototype._FP=function(_ev3,_fv3,_gv3,_hv3,_iv3){if((_hv3-_fv3==0)&&(_iv3-_gv3==0)){if((_fv3<_ev3[0].x)||(_fv3>=_ev3[1].x))return false;if((_iv3<_ev3[0].y)||(_iv3>=_ev3[2].y))return false; return true;}if(abs(_hv3-_fv3)>=abs(_iv3-_gv3)){var _VZ=~~_H6(_ev3[0].x,_fv3);var prop=(_VZ-_fv3)/(_hv3-_fv3);var _WZ=_gv3+prop*(_iv3-_gv3);var _bk=~~_I6(_ev3[1].x,_hv3);var _eb=(_gv3-_iv3)/(_fv3-_hv3);for(var i=_VZ;i<=_bk;i++,_WZ+=_eb){if((_VZ<_ev3[0].x)||(_VZ>=_ev3[1].x))continue;if((_WZ<_ev3[0].y)||(_WZ>=_ev3[2].y))continue;return true;}}else {if(_iv3<_gv3){var _ue=_iv3;_iv3=_gv3;_gv3=_ue;_ue=_hv3;_hv3=_fv3;_fv3=_ue;}var _WZ=~~_H6(_ev3[0].y,_gv3);var prop=(_WZ-_gv3)/(_iv3-_gv3);var _VZ=_fv3+prop*(_hv3-_fv3); var _OM=~~_I6(_ev3[2].y,_iv3);var _db=(_hv3-_fv3)/(_iv3-_gv3);for(var i=_WZ;i<=_OM;i++,_VZ+=_db){if((_VZ<_ev3[0].x)||(_VZ>=_ev3[1].x))continue;if((_WZ<_ev3[0].y)||(_WZ>=_ev3[2].y))continue;return true;}}return false;};_tg1.prototype._HP=function(_ev3,_fv3,_gv3,_hv3,_iv3){var _G6=_H6(_fv3,_ev3[0].x);_G6=~~(Math.floor(_G6)+0.5);var _e4=~~_I6(_hv3,_ev3[2].x);var _J6=_H6(_gv3,_ev3[0].y);_J6=~~(Math.floor(_J6)+0.5);var _g4=~~_I6(_iv3,_ev3[2].y);var _17=((_fv3+_hv3)/2);var _27=((_gv3+_iv3)/2);var _37=((_hv3-_fv3)/2); var _47=((_iv3-_gv3)/2);for(var i=_G6;i<=_e4;i++){for(var __5=_J6;__5<=_g4;__5++){if(_kA((i-_17)/_37)+_kA((__5-_27)/_47)>1)continue;return true;}}return false;};_tg1.prototype._DP=function(_jv3,_ev3,_kv3,_fv3,_gv3,_hv3,_iv3,_fP){var _G6=_H6(_fv3,_ev3[0].x);_G6=~~(Math.floor(_G6)+0.5);var _e4=~~_I6(_hv3,_ev3[2].x);var _J6=_H6(_gv3,_ev3[0].y);_J6=~~(Math.floor(_J6)+0.5);var _g4=~~_I6(_iv3,_ev3[2].y);var _lv3=_kv3[0]._X4;var _mv3=_kv3[0]._Y4;var _nv3=(_kv3[1]._X4-_kv3[0]._X4)/(_ev3[1].x-_ev3[0].x);var _ov3=(_kv3[3]._X4-_kv3[0]._X4)/(_ev3[3].y-_ev3[0].y); var _pv3=(_kv3[1]._Y4-_kv3[0]._Y4)/(_ev3[1].x-_ev3[0].x);var _qv3=(_kv3[3]._Y4-_kv3[0]._Y4)/(_ev3[3].y-_ev3[0].y);var _rv3=_I6(_kv3[0]._X4,_I6(_kv3[1]._X4,_kv3[2]._X4));var _sv3=_H6(_kv3[0]._X4,_H6(_kv3[1]._X4,_kv3[2]._X4));var _tv3=_I6(_kv3[0]._Y4,_I6(_kv3[1]._Y4,_kv3[2]._Y4));var _uv3=_H6(_kv3[0]._Y4,_H6(_kv3[1]._Y4,_kv3[2]._Y4));for(var i=_G6;i<_e4;i+=1.0){var _Z4=(((i)-_ev3[0].x)*_nv3+_lv3)+(((_J6)-_ev3[0].y)*_ov3);var __4=(((_J6)-_ev3[0].y)*_qv3+_mv3)+(((i)-_ev3[0].x)*_pv3);for(var __5=_J6;__5<_g4;__5+=1.0, __4+=_qv3,_Z4+=_ov3){if(_jv3!=null){if((__4<_tv3)||(__4>=_uv3))continue;if((_Z4<_rv3)||(_Z4>=_sv3))continue;if(!_PP(~~_Z4,~~__4,_jv3,_fP))continue;}return true;}}return false;};_tg1.prototype._EP=function(_jv3,_ev3,_kv3,_fv3,_gv3,_hv3,_iv3,_fP){var _lv3=_kv3[0]._X4;var _mv3=_kv3[0]._Y4;var _nv3=(_kv3[1]._X4-_kv3[0]._X4)/(_ev3[1].x-_ev3[0].x);var _ov3=(_kv3[3]._X4-_kv3[0]._X4)/(_ev3[3].y-_ev3[0].y);var _pv3=(_kv3[1]._Y4-_kv3[0]._Y4)/(_ev3[1].x-_ev3[0].x);var _qv3=(_kv3[3]._Y4-_kv3[0]._Y4)/(_ev3[3].y-_ev3[0].y); var _rv3=_I6(_kv3[0]._X4,_I6(_kv3[1]._X4,_kv3[2]._X4));var _sv3=_H6(_kv3[0]._X4,_H6(_kv3[1]._X4,_kv3[2]._X4));var _tv3=_I6(_kv3[0]._Y4,_I6(_kv3[1]._Y4,_kv3[2]._Y4));var _uv3=_H6(_kv3[0]._Y4,_H6(_kv3[1]._Y4,_kv3[2]._Y4));if((_hv3-_fv3==0)&&(_iv3-_gv3==0)){var _Z4=(((_hv3)-_ev3[0].x)*_nv3+_lv3)+(((_iv3)-_ev3[0].y)*_ov3);var __4=(((_iv3)-_ev3[0].y)*_qv3+_mv3)+(((_hv3)-_ev3[0].x)*_pv3);if((__4<_tv3)||(__4>=_uv3))return false;if((_Z4<_rv3)||(_Z4>=_sv3))return false;if(_PP(~~_Z4,~~__4,_jv3,_fP))return true;return false; }if(abs(_hv3-_fv3)>=abs(_iv3-_gv3)){var _VZ=~~_H6(_ev3[0].x,_fv3);var prop=(_VZ-_fv3)/(_hv3-_fv3);var _WZ=_gv3+prop*(_iv3-_gv3);var _bk=~~_I6(_ev3[1].x,_hv3);var _eb=(_gv3-_iv3)/(_fv3-_hv3);for(var i=_VZ;i<=_bk;i++,_WZ+=_eb){var _Z4=(((i)-_ev3[0].x)*_nv3+_lv3)+(((_WZ)-_ev3[0].y)*_ov3);var __4=(((_WZ)-_ev3[0].y)*_qv3+_mv3)+(((i)-_ev3[0].x)*_pv3);if((__4<_tv3)||(__4>=_uv3))continue;if((_Z4<_rv3)||(_Z4>=_sv3))continue;if(_PP(~~_Z4,~~__4,_jv3,_fP))return true;}}else {if(_iv3<_gv3){var _ue=_iv3;_iv3=_gv3;_gv3=_ue; _ue=_hv3;_hv3=_fv3;_fv3=_ue;}var _WZ=~~_H6(_ev3[0].y,_gv3);var prop=(_WZ-_gv3)/(_iv3-_gv3);var _VZ=_fv3+prop*(_hv3-_fv3);var _OM=~~_I6(_ev3[2].y,_iv3);var _db=(_hv3-_fv3)/(_iv3-_gv3);for(var i=_WZ;i<=_OM;i++,_VZ+=_db){var _Z4=(((_VZ)-_ev3[0].x)*_nv3+_lv3)+(((i)-_ev3[0].y)*_ov3);var __4=(((i)-_ev3[0].y)*_qv3+_mv3)+(((_VZ)-_ev3[0].x)*_pv3);if((__4<_tv3)||(__4>=_uv3))continue;if((_Z4<_rv3)||(_Z4>=_sv3))continue;if(_PP(~~_Z4,~~__4,_jv3,_fP))return true;}}return false;};_tg1.prototype._GP=function(_jv3,_ev3,_kv3, _fv3,_gv3,_hv3,_iv3,_fP){var _G6=_H6(_fv3,_ev3[0].x);_G6=~~(Math.floor(_G6)+0.5);var _e4=~~_I6(_hv3,_ev3[2].x);var _J6=_H6(_gv3,_ev3[0].y);_J6=~~(Math.floor(_J6)+0.5);var _g4=~~_I6(_iv3,_ev3[2].y);var _lv3=_kv3[0]._X4;var _mv3=_kv3[0]._Y4;var _nv3=(_kv3[1]._X4-_kv3[0]._X4)/(_ev3[1].x-_ev3[0].x);var _ov3=(_kv3[3]._X4-_kv3[0]._X4)/(_ev3[3].y-_ev3[0].y);var _pv3=(_kv3[1]._Y4-_kv3[0]._Y4)/(_ev3[1].x-_ev3[0].x);var _qv3=(_kv3[3]._Y4-_kv3[0]._Y4)/(_ev3[3].y-_ev3[0].y);var _rv3=_I6(_kv3[0]._X4,_I6(_kv3[1]._X4,_kv3[2]._X4)); var _sv3=_H6(_kv3[0]._X4,_H6(_kv3[1]._X4,_kv3[2]._X4));var _tv3=_I6(_kv3[0]._Y4,_I6(_kv3[1]._Y4,_kv3[2]._Y4));var _uv3=_H6(_kv3[0]._Y4,_H6(_kv3[1]._Y4,_kv3[2]._Y4));var _17=((_fv3+_hv3)/2);var _27=((_gv3+_iv3)/2);var _37=((_hv3-_fv3)/2);var _47=((_iv3-_gv3)/2);for(var i=_G6;i<=_e4;i++){var _Z4=(((i)-_ev3[0].x)*_nv3+_lv3)+(((_J6)-_ev3[0].y)*_ov3);var __4=(((_J6)-_ev3[0].y)*_qv3+_mv3)+(((i)-_ev3[0].x)*_pv3);for(var __5=_J6;__5<=_g4;__5++,__4+=_qv3,_Z4+=_ov3){if(_kA((i-_17)/_37)+_kA((__5-_27)/_47)>1)continue; if((__4<_tv3)||(__4>=_uv3))continue;if((_Z4<_rv3)||(_Z4>=_sv3))continue;if(_PP(~~_Z4,~~__4,_jv3,_fP))return true;}}return false;};_tg1.prototype._1Q=function(_vv3,_0Q,_W6,_X6,_wv3,_xv3,_yv3,_ev3,_kv3,_jv3,_fP){var _G6=_H6(_0Q.left,_ev3[0].x);_G6=Math.floor(_G6)+0.5;var _e4=_I6(_0Q.right,_ev3[2].x);var _J6=_H6(_0Q.top,_ev3[0].y);_J6=Math.floor(_J6)+0.5;var _g4=_I6(_0Q.bottom,_ev3[2].y);var _zv3=this._IP.left;var _Av3=this._IP.right+1.0;var _Bv3=this._IP.top;var _Cv3=this._IP.bottom+1.0;if(this._1r===_tg1._Qg1){ if(_zv3<0)_zv3=0;if(_Av3>this.width)_Av3=this.width;if(_Bv3<0)_Bv3=0;if(_Cv3>this.height)_Cv3=this.height;}var _Dv3=false;if(_yv3>g_GMLMathEpsilon||_yv3<-g_GMLMathEpsilon)_Dv3=true;var _lv3=_kv3[0]._X4;var _mv3=_kv3[0]._Y4;_wv3=1.0/_wv3;_xv3=1.0/_xv3;var _nv3=(_kv3[1]._X4-_kv3[0]._X4)/(_ev3[1].x-_ev3[0].x);var _ov3=(_kv3[3]._X4-_kv3[0]._X4)/(_ev3[3].y-_ev3[0].y);var _pv3=(_kv3[1]._Y4-_kv3[0]._Y4)/(_ev3[1].x-_ev3[0].x);var _qv3=(_kv3[3]._Y4-_kv3[0]._Y4)/(_ev3[3].y-_ev3[0].y);var _Ev3=null;var _Fv3=null;_Ev3=this._F6[_vv3]; _Fv3=_jv3;var _rv3=_I6(_kv3[0]._X4,_I6(_kv3[1]._X4,_kv3[2]._X4));var _sv3=_H6(_kv3[0]._X4,_H6(_kv3[1]._X4,_kv3[2]._X4));var _tv3=_I6(_kv3[0]._Y4,_I6(_kv3[1]._Y4,_kv3[2]._Y4));var _uv3=_H6(_kv3[0]._Y4,_H6(_kv3[1]._Y4,_kv3[2]._Y4));var _Gv3=this._aN();if(!_Dv3){var _Hv3=_wv3;var _Iv3=_nv3;var _fy1=((_G6-_W6)*_wv3+this.__t3());for(var i=_G6;i<_e4;i+=1.0,_fy1+=_Hv3){var _Z4=(((i)-_ev3[0].x)*_nv3+_lv3)+(((_J6)-_ev3[0].y)*_ov3);var __4=(((_J6)-_ev3[0].y)*_qv3+_mv3)+(((i)-_ev3[0].x)*_pv3);if((_fy1<_zv3)||(_fy1>=_Av3))continue; var _Jv3=~~_fy1;for(var __5=_J6;__5<_g4;__5+=1.0,__4+=_qv3,_Z4+=_ov3){if(_Ev3!=null){var _hb=((__5-_X6)*_xv3+this._0u3());if((_hb<_Bv3)||(_hb>=_Cv3))continue;if(!_PP(_Jv3,~~_hb,_Ev3,_Gv3))continue;}if(_Fv3!=null){if((__4<_tv3)||(__4>=_uv3))continue;if((_Z4<_rv3)||(_Z4>=_sv3))continue;if(!_PP(~~_Z4,~~__4,_Fv3,_fP))continue;}return true;}}}else {var _Kv3,_Lv3,_fy1,_hb;if(_Dv3){_Kv3=Math.sin(-_yv3*_L6/180.0);_Lv3=Math.cos(-_yv3*_L6/180.0);}for(var i=_G6;i<_e4;i+=1.0){var _Z4=(((i)-_ev3[0].x)*_nv3+_lv3)+(((_J6)-_ev3[0].y)*_ov3); var __4=(((_J6)-_ev3[0].y)*_qv3+_mv3)+(((i)-_ev3[0].x)*_pv3);for(var __5=_J6;__5<_g4;__5+=1.0,__4+=_qv3,_Z4+=_ov3){_fy1=((_Lv3*(i-_W6)+_Kv3*(__5-_X6))*_wv3+this.__t3());if((_fy1<_zv3)||(_fy1>=_Av3))continue;_hb=((_Lv3*(__5-_X6)-_Kv3*(i-_W6))*_xv3+this._0u3());if((_hb<_Bv3)||(_hb>=_Cv3))continue;if(_Ev3!=null){if(!_PP(~~_fy1,~~_hb,_Ev3,_Gv3))continue;}if(_Fv3!=null){if((__4<_tv3)||(__4>=_uv3))continue;if((_Z4<_rv3)||(_Z4>=_sv3))continue;if(!_PP(~~_Z4,~~__4,_Fv3,_fP))continue;}return true;}}}return false; };_tg1.prototype._Ua3=function(_Mv3,_Nv3,_W6,_X6,_s5,_t5,_u5,_q5,_r5){var _N6,_P6;if(!this._xg1)return true;if(this._E6<=0)return false;_Mv3=_Mv3%this._F6.length;if(_Mv3<0)_Mv3=_Mv3+this._F6.length;_W6-=0.5;_X6-=0.5;if(Math.abs(_u5)<0.0001){_N6=Math.floor((_q5-_W6)/_s5+this.xOrigin);_P6=Math.floor((_r5-_X6)/_t5+this.yOrigin);}else {var _57=Math.sin(-_u5*Math.PI/180.0);var _67=Math.cos(-_u5*Math.PI/180.0);_N6=Math.floor((_67*(_q5-_W6)+_57*(_r5-_X6))/_s5+this.xOrigin);_P6=Math.floor((_67*(_r5-_X6)-_57*(_q5-_W6))/_t5+this.yOrigin); }if((_N6<0)||(_N6>=this.width))return false;if((_P6<0)||(_P6>=this.height))return false;return this._F6[_Mv3][_N6+(_P6*this.width)];};_tg1.prototype._Ya3=function(_Mv3,_Nv3,_W6,_X6,_s5,_t5,_u5,_07){if(!this._xg1)return true;if(this._E6<=0)return false;_Mv3=_Mv3%this._F6.length;if(_Mv3<0){_Mv3=_Mv3+this._F6.length;}var _G6=_H6(_Nv3.left,_07.left);var _e4=_I6(_Nv3.right,_07.right);var _J6=_H6(_Nv3.top,_07.top);var _g4=_I6(_Nv3.bottom,_07.bottom);_W6-=0.5;_X6-=0.5;if((_s5==1)&&(_t5==1)&&(Math.abs(_u5)<0.0001)){ for(var i=_G6;i<=_e4;i++){for(var __5=_J6;__5<=_g4;__5++){var _N6=~~(i-_W6+this.xOrigin);var _P6=~~(__5-_X6+this.yOrigin);if((_N6<0)||(_N6>=this.width))continue;if((_P6<0)||(_P6>=this.height))continue;if(this._F6[_Mv3][_N6+(_P6*this.width)]==true)return true;}}}else {var _57=Math.sin(-_u5*_L6/180.0);var _67=Math.cos(-_u5*_L6/180.0);var _Ov3=1.0/_s5;var _Pv3=1.0/_t5;for(var i=_G6;i<=_e4;i++){for(var __5=_J6;__5<=_g4;__5++){var _N6=Math.floor((_67*(i-_W6)+_57*(__5-_X6))*_Ov3+this.xOrigin);var _P6=Math.floor((_67*(__5-_X6)-_57*(i-_W6))*_Pv3+this.yOrigin); if((_N6<0)||(_N6>=this.width))continue;if((_P6<0)||(_P6>=this.height))continue;if(this._F6[_Mv3][_N6+(_P6*this.width)])return true;}}}return false;};_tg1.prototype._4b3=function(_Mv3,_Nv3,_W6,_X6,_s5,_t5,_u5,_07){var i,__5;if(!this._xg1)return true;if(this._E6<=0)return false;_Mv3=_Mv3%this._F6.length;if(_Mv3<0)_Mv3=_Mv3+this._F6.length;var _G6=_H6(_Nv3.left,_07.left);var _e4=_I6(_Nv3.right,_07.right);var _J6=_H6(_Nv3.top,_07.top);var _g4=_I6(_Nv3.bottom,_07.bottom);var _17=((_07.right+_07.left)/2);var _27=((_07.bottom+_07.top)/2); var _37=1.0/((_07.right-_07.left)/2);var _47=1.0/((_07.bottom-_07.top)/2);var _Qv3=this._F6[_Mv3];var _06;if((_s5==1)&&(_t5==1)&&(Math.abs(_u5)<0.0001)){for(i=_G6;i<=_e4;i++){_06=(i-_17)*_37;var _Rv3=_06*_06;var _N6=i-_W6+this.xOrigin;if((_N6<0)||(_N6>=this.width))continue;for(__5=_J6;__5<=_g4;__5++){_06=(__5-_27)*_47;if(_Rv3+(_06*_06)>1)continue;var _P6=__5-_X6+this.yOrigin;if((_P6<0)||(_P6>=this.height))continue;if(_Qv3[_N6+(_P6*this.width)])return true;}}}else {var _57=Math.sin(-_u5*Math.PI/180.0);var _67=Math.cos(-_u5*Math.PI/180.0); var _Ov3=1.0/_s5;var _Pv3=1.0/_t5;for(i=_G6;i<=_e4;i++){var _Sv3=(i-_W6);var _Tv3=_67*_Sv3;var _Uv3=_57*_Sv3;var _06=(i-_17)*_37;var _Vv3=_06*_06;for(__5=_J6;__5<=_g4;__5++){var _Wv3=(__5-_27)*_47;if((_Vv3+(_Wv3*_Wv3))>1)continue;var _Xv3=__5-_X6;var _N6=~~(((_Tv3+_57*_Xv3)*_Ov3)+this.xOrigin);if((_N6<0)||(_N6>=this.width))continue;var _P6=~~(((_67*_Xv3-_Uv3)*_Pv3)+this.yOrigin);if((_P6<0)||(_P6>=this.height))continue;if(_Qv3[_N6+(_P6*this.width)])return true;}}}return false;};_tg1.prototype._Db3=function(_Mv3, _Nv3,_W6,_X6,_Yv3,_Zv3,__v3,_s4,_0w3,_D6,_o6,_p6,_q6,_r6,_s6){if(_s4==null)return false;if(this._E6<=0)return false;if(_s4._E6<=0)return false;if(this._F6.length>0)_Mv3=_Mv3%this._F6.length;if(_Mv3<0){_Mv3=_Mv3+this._F6.length;;}if(_s4._F6.length>0)_0w3=_0w3%_s4._F6.length;if(_0w3<0){_0w3=_0w3+_s4._F6.length;}_Yv3=1.0/_Yv3;_Zv3=1.0/_Zv3;_q6=1.0/_q6;_r6=1.0/_r6;var _G6=_H6(_Nv3.left,_D6.left);_G6=Math.floor(_G6)+0.5;var _e4=_I6(_Nv3.right,_D6.right);var _J6=_H6(_Nv3.top,_D6.top);_J6=Math.floor(_J6)+0.5; var _g4=_I6(_Nv3.bottom,_D6.bottom);var _zv3=this._IP.left;var _Av3=this._IP.right+1.0;var _Bv3=this._IP.top;var _Cv3=this._IP.bottom+1.0;if(this._1r===_tg1._Qg1){if(_zv3<0)_zv3=0;if(_Av3>this.width)_Av3=this.width;if(_Bv3<0)_Bv3=0;if(_Cv3>this.height)_Cv3=this.height;}var _lv3=_s4._IP.left;var _1w3=_s4._IP.right+1.0;var _mv3=_s4._IP.top;var _2w3=_s4._IP.bottom+1.0;var _On=_s4;if(_On._1r===_tg1._Qg1){if(_lv3<0)_lv3=0;if(_1w3>_On.width)_1w3=_On.width;if(_mv3<0)_mv3=0;if(_2w3>_On.height)_2w3=_On.height;}var _Dv3=false; var _3w3=false;if(__v3>g_GMLMathEpsilon||__v3<-g_GMLMathEpsilon)_Dv3=true;if(_s6>g_GMLMathEpsilon||_s6<-g_GMLMathEpsilon)_3w3=true;if(!_Dv3&&!_3w3){var _Hv3=_Yv3;var _Iv3=_q6;var _fy1=((_G6-_W6)*_Yv3+this.xOrigin);var _Z4=((_G6-_o6)*_q6+_On.xOrigin);for(var i=_G6;i<_e4;i+=1.0,_fy1+=_Hv3,_Z4+=_Iv3){if((_fy1<_zv3)||(_fy1>=_Av3))continue;if((_Z4<_lv3)||(_Z4>=_1w3))continue;var _Jv3=~~_fy1;var _4w3=~~_Z4;for(var __5=_J6;__5<_g4;__5+=1.0){if(this._1r===_vg1._Qg1){var _hb=((__5-_X6)*_Zv3+this.yOrigin);if((_hb<_Bv3)||(_hb>=_Cv3))continue; if(this._xg1){if(!this._F6[_Mv3][_Jv3+(~~(_hb)*this.width)])continue;}}if(_On._1r===_vg1._Qg1){var __4=((__5-_p6)*_r6+_On.yOrigin);if((__4<_mv3)||(__4>=_2w3))continue;if(_On._xg1){if(!_On._F6[_0w3][_4w3+(~~(__4)*_On.width)])continue;}}return true;}}}else {var _Kv3,_Lv3,_K6,_M6,_fy1,_Z4,_hb,__4;if(_Dv3){_Kv3=Math.sin(-__v3*_L6/180.0);_Lv3=Math.cos(-__v3*_L6/180.0);}if(_3w3){_K6=Math.sin(-_s6*_L6/180.0);_M6=Math.cos(-_s6*_L6/180.0);}for(var i=_G6;i<_e4;i+=1.0){if(!_Dv3){_fy1=((i-_W6)*_Yv3+this.xOrigin); if((_fy1<_zv3)||(_fy1>=_Av3))continue;}if(!_3w3){_Z4=((i-_o6)*_q6+_On.xOrigin);if((_Z4<_lv3)||(_Z4>=_1w3))continue;}for(var __5=_J6;__5<_g4;__5+=1.0){if(_Dv3){_fy1=((_Lv3*(i-_W6)+_Kv3*(__5-_X6))*_Yv3+this.xOrigin);if((_fy1<_zv3)||(_fy1>=_Av3))continue;_hb=((_Lv3*(__5-_X6)-_Kv3*(i-_W6))*_Zv3+this.yOrigin);}else {_hb=((__5-_X6)*_Zv3+this.yOrigin);}if((_hb<_Bv3)||(_hb>=_Cv3))continue;if(this._1r===_vg1._Qg1){if(this._xg1){if(!this._F6[_Mv3][~~(_fy1)+(~~(_hb)*this.width)])continue;}}if(_3w3){_Z4=((_M6*(i-_o6)+_K6*(__5-_p6))*_q6+_On.xOrigin); if((_Z4<_lv3)||(_Z4>=_1w3))continue;__4=((_M6*(__5-_p6)-_K6*(i-_o6))*_r6+_On.yOrigin);}else {__4=((__5-_p6)*_r6+_On.yOrigin);}if((__4<_mv3)||(__4>=_2w3))continue;if(_On._1r===_vg1._Qg1){if(_On._xg1){if(!_On._F6[_0w3][~~(_Z4)+(~~(__4)*_On.width)])continue;}}return true;}}}return false;};_tg1.prototype._Cb3=function(_Mv3,_Nv3,_W6,_X6,_Yv3,_Zv3,__v3,_s4,_0w3,_D6,_o6,_p6,_q6,_r6,_s6){if(_s4==null)return false;if(this._E6<=0)return false;if(_s4._E6<=0)return false;if(this._F6.length>0)_Mv3=_Mv3%this._F6.length; if(_Mv3<0){_Mv3=_Mv3+this._F6.length;;}if(_s4._F6.length>0)_0w3=_0w3%_s4._F6.length;if(_0w3<0){_0w3=_0w3+_s4._F6.length;}_Yv3=1.0/_Yv3;_Zv3=1.0/_Zv3;_q6=1.0/_q6;_r6=1.0/_r6;var _G6=_H6(_Nv3.left,_D6.left);var _e4=_I6(_Nv3.right,_D6.right);var _J6=_H6(_Nv3.top,_D6.top);var _g4=_I6(_Nv3.bottom,_D6.bottom);if((_Yv3==1)&&(_q6==1)&&(_Zv3==1)&&(_r6==1)&&(__v3==0)&&(_s6==0)){for(var i=_G6;i<=_e4;i++){for(var __5=_J6;__5<=_g4;__5++){var _N6=i-_W6+this.xOrigin;var _P6=__5-_X6+this.yOrigin;if((_N6<0)||(_N6>=this.width))continue; if((_P6<0)||(_P6>=this.height))continue;if(this._xg1){if(!this._F6[_Mv3][_N6+(_P6*this.width)])continue;}_N6=i-_o6+_s4.xOrigin;_P6=__5-_p6+_s4.yOrigin;if((_N6<0)||(_N6>=_s4.width))continue;if((_P6<0)||(_P6>=_s4.height))continue;if(_s4._xg1){if(!_s4._F6[_0w3][_N6+(_P6*_s4.width)])continue;}return true;}}}else if((__v3==0)&&(_s6==0)){for(var i=_G6;i<=_e4;i++){for(var __5=_J6;__5<=_g4;__5++){var _N6=Math.floor(((i-_W6)*_Yv3+this.xOrigin));var _P6=Math.floor(((__5-_X6)*_Zv3+this.yOrigin));if((_N6<0)||(_N6>=this.width))continue; if((_P6<0)||(_P6>=this.height))continue;if(this._xg1){if(!this._F6[_Mv3][_N6+(_P6*this.width)])continue;}_N6=Math.floor(((i-_o6)*_q6+_s4.xOrigin));_P6=Math.floor(((__5-_p6)*_r6+_s4.yOrigin));if((_N6<0)||(_N6>=_s4.width))continue;if((_P6<0)||(_P6>=_s4.height))continue;if(_s4._xg1){if(!_s4._F6[_0w3][_N6+(_P6*_s4.width)])continue;}return true;}}}else {var _Kv3=Math.sin(-__v3*_L6/180);var _Lv3=Math.cos(-__v3*_L6/180);var _K6=Math.sin(-_s6*_L6/180);var _M6=Math.cos(-_s6*_L6/180);for(var i=_G6;i<=_e4;i++){for(var __5=_J6; __5<=_g4;__5++){var _N6=Math.floor(((_Lv3*(i-_W6)+_Kv3*(__5-_X6))*_Yv3+this.xOrigin));var _P6=Math.floor(((_Lv3*(__5-_X6)-_Kv3*(i-_W6))*_Zv3+this.yOrigin));if((_N6<0)||(_N6>=this.width))continue;if((_P6<0)||(_P6>=this.height))continue;if(this._xg1){if(!this._F6[_Mv3][_N6+(_P6*this.width)])continue;}_N6=Math.floor(((_M6*(i-_o6)+_K6*(__5-_p6))*_q6+_s4.xOrigin));_P6=Math.floor(((_M6*(__5-_p6)-_K6*(i-_o6))*_r6+_s4.yOrigin));if((_N6<0)||(_N6>=_s4.width))continue;if((_P6<0)||(_P6>=_s4.height))continue;if(_s4._xg1){ if(!_s4._F6[_0w3][_N6+(_P6*_s4.width)])continue;}return true;}}}return false;};_tg1.prototype._7b3=function(_Mv3,_Nv3,_W6,_X6,_s5,_t5,_u5,_5w3,_6w3,_7w3,_8w3){if(!this._xg1){return true;}if(this._E6<=0){return false;}_Mv3=_Mv3%this._F6.length;if(_Mv3<0){_Mv3=_Mv3+this._F6.length;}if((_5w3==_7w3)||(_6w3==_8w3)){var _Dn2=new _IF();_Dn2.left=_5w3;_Dn2.top=_I6(_6w3,_8w3);_Dn2.right=_7w3;_Dn2.bottom=_H6(_6w3,_8w3);return this._Ya3(_Mv3,_Nv3,_W6,_X6,_s5,_t5,_u5,_Dn2);}var _57=Math.sin(-_u5*Math.PI/180.0);var _67=Math.cos(-_u5*Math.PI/180.0); _W6-=0.5;_X6-=0.5;if(Math.abs(_7w3-_5w3)>=Math.abs(_8w3-_6w3)){if(_7w3<_5w3){var _ue=_7w3;_7w3=_5w3;_5w3=_ue;_ue=_8w3;_8w3=_6w3;_6w3=_ue;}var _2M=(_8w3-_6w3)/(_7w3-_5w3);for(var i=_H6(_Nv3.left,_5w3);i<=_I6(_Nv3.right,_7w3);i++){var _N6=Math.floor((_67*(i-_W6)+_57*(_6w3+(i-_5w3)*_2M-_X6))/_s5+this.xOrigin);var _P6=Math.floor((_67*(_6w3+(i-_5w3)*_2M-_X6)-_57*(i-_W6))/_t5+this.yOrigin);if((_N6<0)||(_N6>=this.width))continue;if((_P6<0)||(_P6>=this.height))continue;if(this._F6[_Mv3][_N6+(_P6*this.width)])return true; }}else {if(_8w3<_6w3){var _ue=_8w3;_8w3=_6w3;_6w3=_ue;_ue=_7w3;_7w3=_5w3;_5w3=_ue;}var _2M=(_7w3-_5w3)/(_8w3-_6w3);for(var i=_H6(_Nv3.top,_6w3);i<=_I6(_Nv3.bottom,_8w3);i++){var _N6=Math.floor((_67*(_5w3+(i-_6w3)*_2M-_W6)+_57*(i-_X6))/_s5+this.xOrigin);var _P6=Math.floor((_67*(i-_X6)-_57*(_5w3+(i-_6w3)*_2M-_W6))/_t5+this.yOrigin);if((_N6<0)||(_N6>=this.width))continue;if((_P6<0)||(_P6>=this.height))continue;if(this._F6[_Mv3][_N6+(_P6*this.width)])return true;}}return false;};_tg1.prototype._7h1=function(_t4){ if(this._E6<=0){return null;}_t4=_t4%this._E6;if(_t4<0){_t4=_t4+this._E6;}if(this._C4){return this._C4[_t4];}return null;};/*@constructor */function _VM2(){this.Sprites=[];}_VM2.prototype._ug1=function(_1v3){var _t6=this.Sprites.length;this.Sprites[_t6]=_1v3;return _t6;};_VM2.prototype._ra3=function(_9w3){var _MU=this.Sprites[_9w3];if(!_MU)return null;if((_MU._823!==null)&&(_MU._823!==undefined)){return _MU._823._Xv2;}return _MU._C4.length;};_VM2.prototype._E5=function(_9w3){if(Number.isNaN(_9w3))return null; if(_9w3<0||_9w3>=this.Sprites.length)return null;return this.Sprites[_9w3];};_VM2.prototype._r23=function(_N3){for(var i=0;i>16)&0xffff,_0B2=_h4&0xffff;var _6_=(_g4>>16)&0xffff,_MU1=_g4&0xffff;var _0i1=((_Oi3*_MU1)+(_0B2*_6_))&0xffff;return((_0i1<<16)>>>0)+(_0B2*_MU1);};function _kw3(_502){var _cY=Math.pow(2,32);var decode=6*7; var _lw3="";for(var __5=0;__5<_502.length;__5++){_lw3+=String.fromCharCode((_502.charCodeAt(__5)-(decode&0xff))&0xff);decode=_jw3(decode,(decode+1)%_cY)%_cY;}return _lw3;};this._Kh2=[];try{var _mw3=_iw3.split(';',4);if(_mw3[0]=="skel"){var version=_mw3[1];var _vd=parseInt(_mw3[2]);var _nw3=parseInt(_mw3[3]);var _ow3=4+_nw3;_mw3=_iw3.split(';',_ow3);for(var i=0;i<_nw3;i++){var _pw3=parseInt(_mw3[4+i]);var _qw3=_iw3.substr(_vd,_pw3);var _rw3=_qw3.split(';',2);var _k9=0;var _sw3=parseInt(_rw3[_k9++]);var _z8=parseInt(_rw3[_k9++]); var _A8=[];_rw3=_qw3.split(';',_z8*2+3);for(var _J6=0;_J6<_z8;_J6++){var _tw3=new Object();_tw3.width=parseInt(_rw3[_k9++]);_tw3.height=parseInt(_rw3[_k9++]);_A8[_J6]=_tw3;}var _uw3=_rw3[_k9].substr(0,_sw3);var _vw3=_rw3[_k9].substr(_sw3,_rw3[_k9].length-_sw3);this._Kh2.push({json:_kw3(_EI(_uw3)),_75:_kw3(_EI(_vw3)),_z8:_z8,_A8:_A8});_vd+=_pw3;}}}catch(e){debug("Cannot parse Spine data "+e.message);}};/*@constructor */function _4O2(){this.__type="[TextureGroupInfo]";this.pName="unknowntexturegroup";this._X42=[]; this.sprites=[];this._5O2=[];this._6O2=[];this._7O2=[];}/*@constructor */function _WM2(){this.TextureGroupInfo=[];}_WM2.prototype._8O2=function(_ww3){var _t6=this.TextureGroupInfo.length;this.TextureGroupInfo[_t6]=_ww3;return _t6;};_WM2.prototype._1K=function(_f83){for(var i=0;i0){var _Jb=-1;for(var i=0;i<_F4.length;i++){if(_F4[i]){if(_F4[i]._N8){if(_F4[i]._N8===_Aw3){ _Jb=0;break;}}}}var _3O2=_bL2._zw3(_Aw3);if(_3O2!=null){show_debug_message("Texture unpacked - Group: "+_3O2.pName+", Texture ID: "+String(_Jb)+", Width: "+_Aw3._C_1+", Height "+_Aw3._D_1);}else if(_Jw3>1){show_debug_message("Texture unpacked - Group: None, Texture ID: "+String(_Jb)+", Width: "+_Aw3._C_1+", Height "+_Aw3._D_1);}}}function _Lw3(_Aw3){if(_Jw3>0){var _Jb=-1;for(var i=0;i<_F4.length;i++){if(_F4[i]){if(_F4[i]._N8){if(_F4[i]._N8===_Aw3){_Jb=0;break;}}}}var _3O2=_bL2._zw3(_Aw3);if(_3O2!=null){ show_debug_message("Texture flushed - Group: "+_3O2.pName+", Texture ID: "+String(_Jb)+", Width: "+_Aw3._C_1+", Height "+_Aw3._D_1);}else if(_Jw3>1){show_debug_message("Texture flushed - Group: None, Texture ID: "+String(_Jb)+", Width: "+_Aw3._C_1+", Height "+_Aw3._D_1);}}}/*@constructor */function _3l1(){this.__type="[Tile]";this.x=0;this.y=0;this.index=0;this.xo=0;this.yo=0;this.w=0;this.h=0;this.depth=0.0;this.id=_OL2++;this._tR=1.0;this._uR=1.0;this._vR=0xffffff;this.alpha=1.0;this.visible=true; this._Mw3=false;}_3l1.prototype._4l1=function(){var _vs=_8r._0s(this.index);if(_vs!=null){var _B4=_vs._5s;if(_B4.tp>=_F4.length)return;if(!_F4[_B4.tp].complete)return;if(this.xo<0){this.w+=this.xo;this.xo=0;}if(this.yo<0){this.h+=this.yo;this.yo=0;}if(_B4!=null){if((this.xo+this.w)>=_B4.w){this.w=_B4.w-this.xo;}if((this.yo+this.h)>=_B4.h){this.h=_B4.h-this.yo;}}}};function _lk3(_Nw3){var _2l1=new _3l1();if(_Nw3.x!=undefined)_2l1.x=_Nw3.x;if(_Nw3.y!=undefined)_2l1.y=_Nw3.y;if(_Nw3.index!=undefined)_2l1.index=_Nw3.index; if(_Nw3.xo!=undefined)_2l1.xo=_Nw3.xo;if(_Nw3.yo!=undefined)_2l1.yo=_Nw3.yo;if(_Nw3.w!=undefined)_2l1.w=_Nw3.w;if(_Nw3.h!=undefined)_2l1.h=_Nw3.h;if(_Nw3.depth!=undefined)_2l1.depth=_Nw3.depth;if(_Nw3.id!=undefined)_2l1.id=_Nw3.id;if(_Nw3.scaleX!=undefined)_2l1._tR=_Nw3.scaleX;if(_Nw3.scaleY!=undefined)_2l1._uR=_Nw3.scaleY;if(_Nw3.colour!=undefined){_2l1._vR=(_Nw3.colour&0xffffff);_2l1.alpha=((_Nw3.colour>>24)&0xff)/255.0;}_2l1._4l1();if(_OL2<_Nw3.id)_OL2=_Nw3.id+1;return _2l1;}_3l1.prototype._19=function(){ if(!this.visible)return false;var _vs=_8r._0s(this.index);if(_vs!=null){var _B4=_vs._5s;if((_B4.texture instanceof HTMLImageElement)&&(_B4.tp>=_F4.length))return;if((_F4[_B4.tp] instanceof HTMLImageElement)&&(!_F4[_B4.tp].complete))return;var _v33=_B4.w/_B4.ow;var _w33=_B4.h/_B4.oh;if(!_e8){_1a.globalAlpha=this.alpha;if(this._vR!=0xffffff){var _443=_M9(_B4,this._vR);if(this._tR<=0||this._uR<=0){_f43(this.x,this.y,this._tR,this._uR,0.0);_1a._pg1(_443,(this.xo*_v33),(this.yo*_w33),this.w*_v33,this.h*_w33,0, 0,this.w,this.h);_h43();}else {_1a._pg1(_443,(this.xo*_v33),(this.yo*_w33),(this.w*_v33),(this.h*_w33),this.x,this.y,this.w*this._tR,this.h*this._uR);}}else {var _E4=-1;if(_B4.texture instanceof HTMLImageElement)_E4=_F4[_B4.tp];else _E4=_B4.texture;if(this._tR<=0||this._uR<=0){_f43(this.x,this.y,this._tR,this._uR,0.0);_1a._pg1(_E4,_B4.x+(this.xo*_v33),_B4.y+(this.yo*_v33),this.w*_v33,this.h*_w33,0,0,this.w,this.h);_h43();}else {_1a._pg1(_E4,_B4.x+(this.xo*_v33),_B4.y+(this.yo*_v33),this.w*_v33,this.h*_w33, this.x,this.y,this.w*this._tR,this.h*this._uR);}}}else {var _m4=this._vR|((this.alpha*255)<<24);_1a._pg1(_B4,_B4.x+(this.xo*_v33),_B4.y+(this.yo*_v33),this.w*_v33,this.h*_v33,this.x,this.y,this.w*this._tR,this.h*this._uR,_m4);}}};var _Ow3=0,_Pw3=1,_Qw3=2;var _Rw3=0,_Sw3=1;var _Tw3=0,_em1=1;var _Uw3=0,_Vw3=1,_Ww3=2,_Xw3=3;var _Yw3=0,__l1=1,_Wl1=2,_Xl1=3;function _Zw3(__w3){return __w3/1e6;}function _0x3(_1x3){return _1x3*1e6;}class _2x3{constructor(_jg){this.type=_Yw3;this._AD=0;this._hq1=[];if(_jg===undefined){ this.id=_2x3._3x3++;}else {if(_jg<_2x3._3x3){throw new Error("Failed to assign the correct ID to a built-in time source.")}this.id=_jg;_2x3._3x3=_jg+1;}}_vm1(_sj){if(_sj==this){this._hq1=[];}else {this._4x3(_sj);}}_um1(){return this;}_tm1(_5x3){if(_5x3){for(let i=0;i0){--this._hx3;}}_mx3(){return(this._hx3==0);}_jx3(){return(this._J6>=this._fm1);}_kx3(){if(this._jm1==_Tw3&&this._gm1==_Rw3){const _tx3=this._fm1-this._J6;if(_tx3>this._AD){return false;}const _ux3=(this._J6+this._AD)-this._fm1;if(_tx3<_ux3){return true;}}return false;}_lx3(){this._sx3();if(this._mx3()){ this._J6=this._fm1;this.state=_Xw3;}else {this._rx3();}this._vx3();}_vx3(){if(this._hm1!=null){this._dx3=true;this._hm1(...this._Ik);this._dx3=false;}}_px3(_8m1,_9m1){if(_9m1==_Rw3){const _fm1=_H6(_8m1,1e-6);return Math.floor(_0x3(_fm1));}else {const _fm1=_H6(_8m1,1.0);return Math.floor(_fm1);}}_ox3(_8m1,_9m1,_am1,_bm1,_cm1,_dm1){this._wx3(_9m1);this._xx3(_8m1,_9m1);this._yx3(_am1);this._zx3(_bm1);this._Ax3(_cm1);this._Bx3(_dm1);}_xx3(_8m1,_9m1){switch(_9m1){case _Rw3:{if(_8m1<1e-6){console.warn("Warning: Second-based time source period was too low and will be clipped (min: 1e-6).\n"); }break;}case _Sw3:{const frac=_8m1%1;if(_8m1<1.0){console.warn("Warning: Frame-based time source period was too low and will be clipped (min: 1).\n");}else if(frac!=0.0){console.warn("Warning: Non-integral period for a frame-based time source will be converted to an integer.\n");}break;}default :{_H4("Error: Illegal time source unit type: "+_9m1);break;}}}_wx3(_9m1){switch(_9m1){default :_H4("Error: Illegal time source unit type: "+_9m1);case _Rw3:case _Sw3:break;}}_yx3(_am1){if(typeof _am1!='function'&&(typeof _am1!='number'||_Pp1(_am1)===null)){ _H4("Error: Time source callback must be a method or function");}}_zx3(_bm1){if(!Array.isArray(_bm1)){_H4("Error: Time source callback arguments must be an array");}}_Ax3(_cm1){if(_cm1<-1){_H4("Error: Illegal time source repetition value: "+_cm1);}}_Bx3(_dm1){switch(_dm1){default :_H4("Error: Illegal time source expiry type: "+_dm1);case _Tw3:case _em1:break;}}};class _ax3 extends _9x3{constructor(_7m1,_8m1,_9m1,_am1,_wC){super(_7m1,_8m1,_9m1,_am1,[],_wC==true?-1:1,_em1);this.type=_Xl1;this.state=_Vw3; }_lx3(){this._sx3();if(this._mx3()){this._J6=this._fm1;this._ex3=true;}else {this._rx3();}this._vx3();}};var _2m1=new _2x3(_Ow3);var _3m1=new _bx3(_Pw3);var _2n1=new _2x3(_Qw3);/*@constructor */function _Cx3(_bV2){this.__type="[Timeline]";if((_bV2!=null)&&(_bV2!=undefined)){this.pName=_bV2.pName;this.Events=_bV2.Events;}else {this.pName="";this.Events=[];}}_Cx3.prototype._SA2=function(_Dx3){if(this.Events.length==0){return 0;}if(_Dx3>this.Events[this.Events.length-1].Time){return this.Events.length;}for(var i=0; i=_Dx3){return i;}}return this.Events.length;};_Cx3.prototype._TA2=function(_Dx3){if(this.Events.length==0){return 0;}if(_Dx3=0;i--){if(this.Events[i].Time<=_Dx3){return i;}}return -1;};_Cx3.prototype._an1=function(){return this.Events[this.Events.length-1].Time;};/*@constructor */function _0N2(){this.Timelines=[];}_0N2.prototype._Gf=function(_bV2){var _2s=null;if(_bV2!=null){_2s=new _Cx3(_bV2); }this.Timelines[this.Timelines.length]=_2s;};_0N2.prototype._E5=function(_t4){if((_t4<0)||(_t4>=this.Timelines.length)){return undefined;}return this.Timelines[_t4];};_0N2.prototype._1K=function(_N3){for(var i=0;i=0)||(_t4=0)||(_t4=0)||(_t4=0)||(_t4>24)&0xff|_Ix3;switch(type){case _a91:case _j11:return _Ot(type,index);default :return index;}}function _2y3(_YZ1){var _3y3="unknown";switch(_YZ1){case _Pt:_3y3="instance"; break;case _Xx3:_3y3="ds_list";break;case _Yx3:_3y3="ds_map";break;case _Zx3:_3y3="ds_grid";break;case __x3:_3y3="ds_queue";break;case _0y3:_3y3="ds_stack";break;case _1y3:_3y3="ds_priority";break;case _a91:_3y3="object";break;case _Mx3:_3y3="sprite";break;case _Nx3:_3y3="sound";break;case _Ox3:_3y3="room";break;case _Tt:_3y3="background";break;case _Px3:_3y3="path";break;case _Qx3:_3y3="script";break;case _Rx3:_3y3="font";break;case _Sx3:_3y3="timeline";break;case _Tx3:_3y3="tiles";break;case _Ux3:_3y3="shader"; break;case _Vx3:_3y3="sequence";break;case _Wx3:_3y3="animcurve";break;case _j11:_3y3="particle system resource";break;case _Lx3:_3y3="dbgref";break;case _n11:_3y3="particle system instance";break;case _r11:_3y3="particle emitter";break;case _t11:_3y3="particle type";break;default :break;}return _3y3;}function yyGetReal(_Sc){if(_Sc instanceof _Rt)return _Sc.value;else if(typeof _Sc==="number")return _Sc;else if(typeof _Sc==="boolean")return _Sc?1:0;else if(typeof _Sc==="string"){_Sc=_Sc.trim();var match=_Sc.match(_8Y); if(match!=null){return Number(match);}}else if(typeof _Sc==="object"){if(_Sc instanceof Long){return _Sc._aY();}else if(!(_Sc instanceof Array)&&!(_Sc instanceof ArrayBuffer)){if(_Sc.id!==undefined){return _Sc.id;}return Number(_Sc);}}else if(typeof _Sc==="function"){var _4y3=method_get_index(_Sc);if(_4y3!==undefined){return _4y3;}}_H4("unable to convert "+string(_Sc)+" to a number");return 0;}function yyGetInt64(_Sc){if(_Sc instanceof _Rt)return _Sc.value;else if(typeof _Sc==="number")return Long._4Y(_Sc,false);else if(typeof _Sc==="boolean")return Long._4Y(_Sc?1:0, false);else if(typeof _Sc==="string"){var match=_Sc.match(_8Y);if(match!=null){return Long._4Y(Number(match),false);}}else if(typeof _Sc==="object"){if(_Sc instanceof Long){return _Sc;}else if(!(_Sc instanceof Array)&&!(_Sc instanceof ArrayBuffer)){if(_Sc.id!==undefined){return Long._4Y(_Sc.id,false);}return Long._4Y(Number(_Sc),false);}}else if(typeof _Sc==="function"){var _4y3=method_get_index(_Sc);if(_4y3!==undefined){return _4y3;}}_H4("unable to convert "+string(_Sc)+" to a number");return 0;}function yyGetInt32(_Sc){ if(_Sc instanceof _Rt)return _Sc.value;else if(typeof _Sc==="number")return ~~_Sc;else if(typeof _Sc==="boolean")return _Sc?1:0;else if(typeof _Sc==="string"){var match=_Sc.match(_8Y);if(match!=null){return ~~Number(match);}}else if(typeof _Sc==="object"){if(_Sc instanceof Long){return _Sc._p62();}else if(!(_Sc instanceof Array)&&!(_Sc instanceof ArrayBuffer)){if(_Sc.id!==undefined){return _Sc.id;}return ~~Number(_Sc);}}else if(typeof _Sc==="function"){var _4y3=method_get_index(_Sc);if(_4y3!==undefined){return _4y3;}}_H4("unable to convert "+string(_Sc)+" to a number"); return 0;}function yyGetBool(_Sc){if(_Sc instanceof _Rt)return _Sc.value>0;else if(typeof _Sc==="boolean")return _Sc;else if(_Sc===undefined)return false;else if(typeof _Sc==="number")return _Sc>0.5;else if(typeof _Sc==="string"){if(_Sc==="true"){return true;}else if(_Sc==="false"){return false;}else {var match=_Sc.match(_8Y);if(match!=null){return Number(match)>0.5;}}}else if(typeof _Sc==="object"){if(_Sc instanceof Long){return _Sc._aY()>0.5;}else if(_Sc instanceof _iQ){return true;}else if(_Sc.__yyIsGMLObject)return true;else if(!(_Sc instanceof Array)&&!(_Sc instanceof ArrayBuffer)){ return Number(_Sc)>0.5;}else if(_Sc instanceof ArrayBuffer){return _Sc!=g_pBuiltIn.pointer_null;}}else if(typeof _Sc==="function"){return true;}_H4("unable to convert "+string(_Sc)+" to a boolean");return false;}function _i11(_Vn,_YZ1,_5y3,_hl,_6y3){var _q4=-1;if(_Vn instanceof _Rt){var type=_Vn.type;if(type!=_YZ1){if(!_6y3)_H4("incorrect type ("+_2y3(type)+") expecting a "+_2y3(_YZ1));}else _q4=_Vn.value;}else {_q4=yyGetInt32(_Vn);}if(!_6y3){if(_q4<0||_q4>=_5y3||(_hl&&!_hl[_q4])){_H4("invalid reference to ("+_2y3(_YZ1)+")"); }}return _q4;}var _7y3=0;var _8y3=1;var _9y3=1;var _ay3=0;var _by3=new Map();function _cy3(_Sc){return _by3.has(_Sc);}function _dy3(_Sc){_by3.set(_Sc,_Sc);}function _ey3(_Sc){_by3.delete(_Sc);}function yyGetString(_Sc){if(_Sc instanceof _Rt)return "ref "+_Sc.value;else if(typeof _Sc==="string"){var _q4="";if(_ay3>0)_q4+="\"";_q4+=_Sc;if(_ay3>0)_q4+="\"";return _q4;}else if(_Sc===null){return "null";}else if(_Sc===undefined){return "undefined";}else if(_Sc===g_pBuiltIn.pointer_null){return "null";}else if(typeof _Sc==="number"){ if(isFinite(_Sc)){if((~~_Sc)!=_Sc){return _Sc.toFixed(2);}else {return _Sc.toString();}}else {if(Number.isNaN(_Sc))return "NaN";else if(_Sc<0)return "-inf";else return "inf";}}else if(typeof _Sc==="boolean"){return(_Sc)?"1":"0";}else if(typeof _Sc==="object"){if(_Sc instanceof Long){return _Sc.toString(10);}else if(_Sc instanceof Array){var _fy3="";++_ay3;if(!_cy3(_Sc)){_dy3(_Sc);_fy3="[ ";for(var _t6=0;_t6<_Sc.length;++_t6){if(_t6!=0){_fy3+=",";}_fy3+=yyGetString(_Sc[_t6]);}_fy3+=" ]";_ey3(_Sc);}else {_fy3="\"Warning: Recursive array found\""; }--_ay3;return _fy3;}else {var _fy3="";if(_Sc["gmltoString"]!=undefined){_fy3=_Sc.gmltoString(_Sc,_Sc);}else if((typeof g_var2obf!=="undefined")&&(g_var2obf["toString"]!=undefined)&&(_Sc[g_var2obf["toString"]]!=undefined)){_fy3=_Sc[g_var2obf["toString"]](_Sc,_Sc);}else {++_ay3;if(!_cy3(_Sc)){_dy3(_Sc);var _fy3="{ ";var _kh=_gy3(_Sc,false);for(var _t6=0;_t6<_kh.length;_t6+=2){if(_t6!=0){_fy3+=", ";}_fy3+=_kh[_t6];_fy3+=" : ";_fy3+=yyGetString(_Sc[_kh[_t6+1]]);}_fy3+=" }";_ey3(_Sc);}else {_fy3="\"Warning: Recursive struct found\""; }--_ay3;}return _fy3;}}else if(typeof _Sc==="function"){var _4y3=method_get_index(_Sc);if(_4y3!==undefined){return _4y3.toString();}}return _Sc.toString();}var _hy3=0;var _iy3=1;var _jy3=2;var _ky3=6;var _ly3=7;var _my3=5;var _ny3=3;var _oy3=4;var _py3=8;var _qy3=9;var _ry3=10;var _sy3=11;var _ty3=12;var _uy3=13;var _vy3=14;var _wy3=15;var _xy3=0;/*@constructor */function _yy3(_f83){this.__type="[Array]";this._CR=_f83;this._zy3=[];}function array_get_2D(_BX,_Ay3,_By3){_Ay3=yyGetInt32(_Ay3);_By3=yyGetInt32(_By3);if(!(_BX instanceof Array))_H4("array_get_2D() : argument 0 must be an array"); if(typeof _Ay3!="number")_H4("array_get_2D() : index 1 must be a number");if(typeof _By3!="number")_H4("array_get_2D() : index 2 must be a number");if((_Ay3<0)||(_Ay3>=_BX.length))_H4("array_get_2D() : index 1 out of range");if(!(_BX[_Ay3] instanceof Array))_H4("array_get_2D() : second dimension is not an array");if((_By3<0)||(_By3>=_BX[_Ay3].length))_H4("array_get_2D() : index 2 out of range");return _BX[_Ay3][_By3];}function array_set_2D(_BX,_Ay3,_By3,_Sc){if(!(_BX instanceof Array))_H4("array_set_2D() : argument 0 must be an array"); if(typeof _Ay3!="number")_H4("array_set_2D() : index 1 must be a number");if(typeof _By3!="number")_H4("array_set_2D() : index 2 must be a number");if(!(_BX[_Ay3] instanceof Array))_BX[_Ay3]=[];_BX[_Ay3][_By3]=_Sc;}function array_set_2D_pre(_BX,_Ay3,_By3,_Sc){_Ay3=yyGetInt32(_Ay3);_By3=yyGetInt32(_By3);if(!(_BX instanceof Array))_H4("array_set_2D_pre() : argument 0 must be an array");if(!(_BX[_Ay3] instanceof Array))_BX[_Ay3]=[];_BX[_Ay3][_By3]=_Sc;return _Sc;}function array_set_2D_post(_BX,_Ay3,_By3,_Sc){ _Ay3=yyGetInt32(_Ay3);_By3=yyGetInt32(_By3);if(!(_BX instanceof Array))_H4("array_set_2D_post() : argument 0 must be an array");if(!(_BX[_Ay3] instanceof Array))_BX[_Ay3]=[];var _q4=_BX[_Ay3][_By3];_BX[_Ay3][_By3]=_Sc;return _q4;}function array_get(_BX,_Ay3){_Ay3=yyGetInt32(_Ay3);if(!(_BX instanceof Array))_H4("array_get() : argument 0 must be an array");if((_Ay3<0)||(_Ay3>=_BX.length))_H4("array_get() : index out of range");return _BX[_Ay3];}function array_set(_BX,_Ay3,_Sc){_Ay3=yyGetInt32(_Ay3);if(!(_BX instanceof Array)){ _BX=[];}_BX[_Ay3]=_Sc;}function array_set_pre(_BX,_Ay3,_Sc){if(!(_BX instanceof Array)){_BX=[];}_BX[_Ay3]=_Sc;return _Sc;}function array_set_post(_BX,_Ay3,_Sc){if(!(_BX instanceof Array)){_BX=[];}var _q4=_BX[_Ay3];_BX[_Ay3]=_Sc;return _q4;}function __yy_is_nullish(_Sc){return(_Sc==undefined)||(_Sc==null);}function __yy_gml_array_create(_BX){_BX._Cy3=_xy3;return _BX;}function _BH(){this.__type="Object";this.__yyIsGMLObject=true;}_BH.prototype.toString=function(){return yyGetString(this);};function __yy_gml_object_create(_Qp1, _BX){var _e4=new _BH();var _Ik=[];_Ik[0]=_e4;_Ik[1]=_Qp1;for(var _t6=2;_t6=_2L.length))_H4("index out of range");return _BX;}function __yy_gml_array_check_index_set(_BX){ _BX=yyGetInt32(_BX);if(_BX<0)_H4("index out of range");return _BX;}function __yy_gml_array_check_index_chain(_BX,_2L){if(!(_2L instanceof Array)){_2L=[];_2L._Cy3=_xy3;}_BX=yyGetInt32(_BX);if(_BX<0)_H4("index out of range");var index=_BX;if(!(_2L[index] instanceof Array)){_2L[index]=[];_2L[index]._Cy3=_xy3;}else if(_2L[index]._Cy3!=_xy3){_2L[index]=_2L[index].slice();_2L[index]._Cy3=_xy3;}return index;}function __yy_gml_errCheck(_BX){if(_BX===undefined){_H4("undefined value in expression");}else if(_BX instanceof ArrayBuffer){ _H4("pointer value in expression");}return _BX;}function _zk(_Ky3,_Ly3){switch(typeof _Ky3){case "function":return _Ky3;case "number":return JSON_game.Scripts[_Ky3-100000];default :_H4("argument"+_Ly3+" is not a method or script");}}function _wi1(_t51,_My3,_Ny3){var _E91=Math.min(Math.max(_My3,-_t51),_t51-1);if(_E91<0)_E91=_t51+_E91;var _yi1=0,_xi1=0;if(_Ny3<0){_yi1=-1;_xi1=Math.min(_E91+1,Math.abs(_Ny3));}else {_yi1=1;_xi1=Math.min(_E91+_Ny3,_t51)-_E91;}return [_E91,_xi1,_yi1];}function array_equals(_BX,_2L){ if(!Array.isArray(_BX)||!Array.isArray(_2L)){_Oy3("array_equals : both arguments must be arrays");return false;}if(_BX.length!==_2L.length)return false;for(var x=0;x<_BX.length;x++){if(Array.isArray(_BX[x])||Array.isArray(_2L[x])){if(!array_equals(_BX[x],_2L[x]))return false;}else if((typeof _BX[x])=="number"&&(typeof _2L[x])=="number"){if(!yyfequal(_BX[x],_2L[x]))return false;}else {if(_BX[x]!==_2L[x])return false;}}return true;}function array_create(_ad,_B3){if(_ad===undefined){_ad=0;}else {_ad=yyGetInt32(_ad); }var _Y4=0;if(arguments.length==2)_Y4=_B3;var _q4=[];_q4._Cy3=_xy3;for(var i=0;i<_ad;++i){_q4[i]=_Y4;}return _q4;}function array_copy(_pk,_Py3,_oj,_Qy3,_Ue1){if(!Array.isArray(_pk))_H4("array_copy : argument0 is not an array");if(!Array.isArray(_oj))_H4("array_copy : argument2 is not an array");_Py3=yyGetInt32(_Py3);_Qy3=isFinite(_Qy3)?yyGetInt32(_Qy3):yyGetReal(_Qy3);_Ue1=isFinite(_Ue1)?yyGetInt32(_Ue1):yyGetReal(_Ue1);[_Qy3,_Ue1,_yi1]=_wi1(_oj.length,_Qy3,_Ue1);if(_Ue1==0)return;_Py3=Math.max(_Py3, -_pk.length);if(_Py3<0)_Py3=_pk.length+_Py3;if(_pk.length<_Py3){for(var index=_pk.length;index<_Py3+min(_oj.length-_Qy3,_Ue1);++index){if(_pk[index]==null){_pk[index]=0;}}}_Qy3=_Qy3+((_Ue1-1)*_yi1);_Py3+=_Ue1;_yi1=-_yi1;while(_Ue1>0){_pk[--_Py3]=_oj[_Qy3];_Qy3+=_yi1;_Ue1-=1;}}function array_resize(_hl,_Ry3){if(Array.isArray(_hl)){_Ry3=yyGetInt32(_Ry3);var _9i2=_hl.length;_hl.length=_Ry3;if(_Ry3>_9i2){for(var _t6=_9i2;_t6<_Ry3;++_t6){_hl[_t6]=0;}}}else {_H4("array_resize : argument0 is not an array"); }}function array_push(_hl){if(Array.isArray(_hl)){for(var _t6=1;_t6=_Ue1;--_t6){_hl[_t6]=0;}_XE=Array.prototype.slice.call(arguments,2);Array.prototype.splice.apply(_hl,[_J3,0].concat(_XE));}else {_H4("array_insert : argument0 is not an array");}}function array_delete(_hl,_J3,_1q){if(Array.isArray(_hl)){_J3=yyGetReal(_J3);_1q=yyGetReal(_1q);if(_1q<0){_J3+=_1q+1;_1q=-_1q;}_hl.splice(_J3,_1q);}else {_H4("array_delete : argument0 is not an array");}}function array_sort(_hl,_Sy3){if(Array.isArray(_hl)){switch(typeof _Sy3){case "function":_hl.sort(function(_h4,_g4){return _Sy3(_Sy3._Bk, _Sy3._Bk,_h4,_g4);});break;case "number":var _2Y=JSON_game.Scripts[_Sy3-100000];var _Pg;if("boundObject" in _2Y){_Pg=_2Y._Bk;}else {_Pg={};}_hl.sort(function(_h4,_g4){return _2Y(_Pg,_Pg,_h4,_g4);});break;default :if(yyGetBool(_Sy3))_hl.sort(function(_h4,_g4){return yyCompareVal(_h4,_g4);});else _hl.sort(function(_h4,_g4){return yyCompareVal(_g4,_h4);});break;}}else {_H4("array_sort : argument0 is not an array");}}const _Ty3=(_hl,_E91,_Ue1)=>{_E91=_E91!==undefined?_E91:0;_Ue1=_Ue1!==undefined?_Ue1:_hl.length-_E91; for(let i=_Ue1-1;i>0;--i){const __5=_E91+Math.floor(Math.random()*(i+1));const _jL=_hl[_E91+i];_hl[_E91+i]=_hl[__5];_hl[__5]=_jL;}};function array_shuffle(_hl,_E91,_Ue1){_E91=arguments.length>1?yyGetReal(_E91):0;_Ue1=arguments.length>2?yyGetReal(_Ue1):_hl.length;var _q4=undefined;if(Array.isArray(_hl)){_vi1=_wi1(_hl.length,_E91,_Ue1);_E91=_vi1[0];var _xi1=_vi1[1];var _yi1=_vi1[2];if(_yi1<0)_E91-=(_xi1-1);_q4=_hl.slice(_E91,_E91+_xi1);_Ty3(_q4);}else {_H4("array_shuffle : argument0 is not an array");}return _q4; }function array_shuffle_ext(_hl,_E91,_Ue1){_E91=arguments.length>1?yyGetReal(_E91):0;_Ue1=arguments.length>2?yyGetReal(_Ue1):_hl.length;var _q4=undefined;if(Array.isArray(_hl)){_vi1=_wi1(_hl.length,_E91,_Ue1);_E91=_vi1[0];var _xi1=_vi1[1];var _yi1=_vi1[2];if(_yi1<0)_E91-=(_xi1-1);_q4=_hl;if(_xi1==0)return _q4;_Ty3(_q4,_E91,_xi1);}else {_H4("array_shuffle_ext : argument0 is not an array");}return _xi1;}function array_first(_hl){if(!Array.isArray(_hl))_H4("array_first : argument0 is not an array");var _Ue1=_hl.length; return _Ue1==0?undefined:_hl[0];}function array_last(_hl){if(!Array.isArray(_hl))_H4("array_last : argument0 is not an array");var _Ue1=_hl.length;return _Ue1==0?undefined:_hl[_Ue1-1];}function array_create_ext(_ad,_yk){_ad=_ad===undefined?0:yyGetReal(_ad);_yk=_zk(_yk,1);_Ak="boundObject" in _yk?_yk._Bk:{};var _q4=[];_q4._Cy3=_xy3;for(var i=_ad-1;i>=0;--i){_q4[i]=_yk(_Ak,_Ak,i);}return _q4;}function array_find_index(_hl,_yk,_E91,_Ue1){if(!Array.isArray(_hl))_H4("array_find_index : argument0 is not an array"); _yk=_zk(_yk,1);_Ak="boundObject" in _yk?_yk._Bk:{};_E91=arguments.length>2?yyGetReal(_E91):0;_Ue1=arguments.length>3?yyGetReal(_Ue1):_hl.length;_vi1=_wi1(_hl.length,_E91,_Ue1);_E91=_vi1[0];var _xi1=_vi1[1];var _yi1=_vi1[2];while(_xi1>0){if(yyGetBool(_yk(_Ak,_Ak,_hl[_E91],_E91))){return _E91;}_E91+=_yi1;_xi1--;}return -1;}function array_get_index(_hl,_Vn,_E91,_Ue1){if(!Array.isArray(_hl))_H4("array_get_index : argument0 is not an array");_E91=arguments.length>2?yyGetReal(_E91):0;_Ue1=arguments.length>3?yyGetReal(_Ue1):_hl.length; _vi1=_wi1(_hl.length,_E91,_Ue1);_E91=_vi1[0];var _xi1=_vi1[1];var _yi1=_vi1[2];while(_xi1>0){if(yyCompareVal(_hl[_E91],_Vn,g_GMLMathEpsilon,false)==0){return _E91;}_E91+=_yi1;_xi1--;}return -1;}function array_contains(_hl,_Vn,_E91,_Ue1){if(!Array.isArray(_hl))_H4("array_contains : argument0 is not an array");_E91=arguments.length>2?yyGetReal(_E91):0;_Ue1=arguments.length>3?yyGetReal(_Ue1):_hl.length;_vi1=_wi1(_hl.length,_E91,_Ue1);_E91=_vi1[0];var _xi1=_vi1[1];var _yi1=_vi1[2];while(_xi1>0){if(yyCompareVal(_hl[_E91], _Vn,g_GMLMathEpsilon,false)==0){return true;}_E91+=_yi1;_xi1--;}return false;}function array_contains_ext(_hl,_XE,_Uy3,_E91,_Ue1){if(!Array.isArray(_hl))_H4("array_contains_ext : argument0 is not an array");if(!Array.isArray(_XE))_H4("array_contains_ext : argument1 is not an array");var _Vy3=_XE.length;if(_Vy3==0)return true;_Uy3=_E91=arguments.length>2?yyGetBool(_Uy3):false;_E91=arguments.length>3?yyGetReal(_E91):0;_Ue1=arguments.length>4?yyGetReal(_Ue1):_hl.length;_vi1=_wi1(_hl.length,_E91,_Ue1);_E91=_vi1[0]; var _xi1=_vi1[1];var _yi1=_vi1[2];var _Wy3=0;while(_xi1>0){var _Xy3=false;var current=_hl[_E91];for(var i=0;i<_Vy3;++i){if(yyCompareVal(current,_XE[i],g_GMLMathEpsilon,false)==0){_Xy3=true;_Wy3+=1;break;}}if(_Xy3&&!_Uy3){return true;}_E91+=_yi1;_xi1--;}if(_Wy3==_Vy3){return true;}return false;}function array_any(_hl,_yk,_E91,_Ue1){if(!Array.isArray(_hl))_H4("array_any : argument0 is not an array");_yk=_zk(_yk,1);_Ak="boundObject" in _yk?_yk._Bk:{};_E91=arguments.length>2?yyGetReal(_E91):0;_Ue1=arguments.length>3?yyGetReal(_Ue1):_hl.length; _vi1=_wi1(_hl.length,_E91,_Ue1);_E91=_vi1[0];var _xi1=_vi1[1];var _yi1=_vi1[2];while(_xi1>0){if(yyGetBool(_yk(_Ak,_Ak,_hl[_E91],_E91))){return true;}_E91+=_yi1;_xi1--;}return false;}function array_all(_hl,_yk,_E91,_Ue1){if(!Array.isArray(_hl))_H4("array_all : argument0 is not an array");_yk=_zk(_yk,1);_Ak="boundObject" in _yk?_yk._Bk:{};_E91=arguments.length>2?yyGetReal(_E91):0;_Ue1=arguments.length>3?yyGetReal(_Ue1):_hl.length;_vi1=_wi1(_hl.length,_E91,_Ue1);_E91=_vi1[0];var _xi1=_vi1[1];var _yi1=_vi1[2]; while(_xi1>0){if(!yyGetBool(_yk(_Ak,_Ak,_hl[_E91],_E91))){return false;}_E91+=_yi1;_xi1--;}return true;}function array_foreach(_hl,_yk,_E91,_Ue1){if(!Array.isArray(_hl))_H4("array_foreach : argument0 is not an array");_yk=_zk(_yk,1);_Ak="boundObject" in _yk?_yk._Bk:{};_E91=arguments.length>2?yyGetReal(_E91):0;_Ue1=arguments.length>3?yyGetReal(_Ue1):_hl.length;_vi1=_wi1(_hl.length,_E91,_Ue1);_E91=_vi1[0];var _xi1=_vi1[1];var _yi1=_vi1[2];while(_xi1>0){_yk(_Ak,_Ak,_hl[_E91],_E91);_E91+=_yi1;_xi1--;}}function array_reduce(_hl, _yk,_Yy3,_E91,_Ue1){if(!Array.isArray(_hl))_H4("array_reduce : argument0 is not an array");_yk=_zk(_yk,1);_Ak="boundObject" in _yk?_yk._Bk:{};_E91=arguments.length>3?yyGetReal(_E91):0;_Ue1=arguments.length>4?yyGetReal(_Ue1):_hl.length;_vi1=_wi1(_hl.length,_E91,_Ue1);_E91=_vi1[0];var _xi1=_vi1[1];var _yi1=_vi1[2];if(_Yy3===undefined){_Yy3=_hl[_E91];_E91+=_yi1;_xi1--;}while(_xi1>0){_Yy3=_yk(_Ak,_Ak,_Yy3,_hl[_E91],_E91);_E91+=_yi1;_xi1--;}return _Yy3;}function array_filter(_hl,_yk,_E91,_Ue1){if(!Array.isArray(_hl))_H4("array_filter : argument0 is not an array"); _yk=_zk(_yk,1);_Ak="boundObject" in _yk?_yk._Bk:{};_E91=arguments.length>2?yyGetReal(_E91):0;_Ue1=arguments.length>3?yyGetReal(_Ue1):_hl.length;_vi1=_wi1(_hl.length,_E91,_Ue1);_E91=_vi1[0];var _xi1=_vi1[1];var _yi1=_vi1[2];var _Zy3=[],_8g2=0;_Zy3._Cy3=_xy3;while(_xi1>0){if(yyGetBool(_yk(_Ak,_Ak,_hl[_E91],_E91))){_Zy3[_8g2]=_hl[_E91];_8g2++;}_E91+=_yi1;_xi1--;}return _Zy3;}function array_filter_ext(_hl,_yk,_E91,_Ue1){if(!Array.isArray(_hl))_H4("array_filter_ext : argument0 is not an array");_yk=_zk(_yk, 1);_Ak="boundObject" in _yk?_yk._Bk:{};_E91=arguments.length>2?yyGetReal(_E91):0;_Ue1=arguments.length>3?yyGetReal(_Ue1):_hl.length;_vi1=_wi1(_hl.length,_E91,_Ue1);_E91=_vi1[0];var _xi1=_vi1[1];var _yi1=_vi1[2];var _Zy3=0,_8g2=_E91;while(_xi1>0){if(yyGetBool(_yk(_Ak,_Ak,_hl[_E91],_E91))){_hl[_8g2]=_hl[_E91];_8g2+=_yi1;_Zy3++;}_E91+=_yi1;_xi1--;}return _Zy3;}function array_map(_hl,_yk,_E91,_Ue1){if(!Array.isArray(_hl))_H4("array_map : argument0 is not an array");_yk=_zk(_yk,1);_Ak="boundObject" in _yk?_yk._Bk:{ };_E91=arguments.length>2?yyGetReal(_E91):0;_Ue1=arguments.length>3?yyGetReal(_Ue1):_hl.length;_vi1=_wi1(_hl.length,_E91,_Ue1);_E91=_vi1[0];var _xi1=_vi1[1];var _yi1=_vi1[2];var _Zy3=[],_8g2=0;_Zy3._Cy3=_xy3;while(_xi1>0){_Zy3[_8g2]=_yk(_Ak,_Ak,_hl[_E91],_E91);_8g2++;_E91+=_yi1;_xi1--;}return _Zy3;}function array_map_ext(_hl,_yk,_E91,_Ue1){if(!Array.isArray(_hl))_H4("array_map_ext : argument0 is not an array");_yk=_zk(_yk,1);_Ak="boundObject" in _yk?_yk._Bk:{};_E91=arguments.length>2?yyGetReal(_E91):0; _Ue1=arguments.length>3?yyGetReal(_Ue1):_hl.length;_vi1=_wi1(_hl.length,_E91,_Ue1);_E91=_vi1[0];var _xi1=_vi1[1];var _yi1=_vi1[2];var _Zy3=0;while(_xi1>0){_hl[_E91]=_yk(_Ak,_Ak,_hl[_E91],_E91);_Zy3++;_E91+=_yi1;_xi1--;}return _Zy3;}function array_copy_while(_hl,_yk,_E91,_Ue1){if(!Array.isArray(_hl))_H4("array_copy_while : argument0 is not an array");_yk=_zk(_yk,1);_Ak="boundObject" in _yk?_yk._Bk:{};_E91=arguments.length>2?yyGetReal(_E91):0;_Ue1=arguments.length>3?yyGetReal(_Ue1):_hl.length;_vi1=_wi1(_hl.length, _E91,_Ue1);_E91=_vi1[0];var _xi1=_vi1[1];var _yi1=_vi1[2];var _Zy3=[],_8g2=0;_Zy3._Cy3=_xy3;while(_xi1>0){if(yyGetBool(_yk(_Ak,_Ak,_hl[_E91],_E91))){_Zy3[_8g2]=_hl[_E91];_8g2++;}else return _Zy3;_E91+=_yi1;_xi1--;}return _Zy3;}function array_unique(_hl,_E91,_Ue1){if(!Array.isArray(_hl))_H4("array_unique : argument0 is not an array");_E91=arguments.length>1?yyGetReal(_E91):0;_Ue1=arguments.length>2?yyGetReal(_Ue1):_hl.length;_vi1=_wi1(_hl.length,_E91,_Ue1);_E91=_vi1[0];var _xi1=_vi1[1];var _yi1=_vi1[2];var __y3=new Set(); while(_xi1>0){__y3.add(_hl[_E91]);_E91+=_yi1;_xi1--;}_Zy3=Array.from(__y3);_Zy3._Cy3=_xy3;return _Zy3;}function array_unique_ext(_hl,_E91,_Ue1){if(!Array.isArray(_hl))_H4("array_unique_ext : argument0 is not an array");_E91=arguments.length>1?yyGetReal(_E91):0;_Ue1=arguments.length>2?yyGetReal(_Ue1):_hl.length;_vi1=_wi1(_hl.length,_E91,_Ue1);_E91=_vi1[0];var _xi1=_vi1[1];var _yi1=_vi1[2];var _8g2=_E91,__y3=new Set();while(_xi1>0){var _ZS=_hl[_E91];if(!__y3.has(_ZS)){_hl[_8g2]=_ZS;_8g2+=_yi1;_Zy3++;}__y3.add(_ZS); _E91+=_yi1;_xi1--;}return __y3.size;}function array_reverse(_hl,_E91,_Ue1){if(!Array.isArray(_hl))_H4("array_reverse : argument0 is not an array");_E91=arguments.length>1?yyGetReal(_E91):0;_Ue1=arguments.length>2?yyGetReal(_Ue1):_hl.length;_vi1=_wi1(_hl.length,_E91,_Ue1);_E91=_vi1[0];var _xi1=_vi1[1];var _yi1=_vi1[2];var _Zy3=[],_8g2=_xi1-1;;_Zy3._Cy3=_xy3;while(_xi1>0){_Zy3[_8g2]=_hl[_E91];_8g2--;_E91+=_yi1;_xi1--;}return _Zy3;}function array_reverse_ext(_hl,_E91,_Ue1){if(!Array.isArray(_hl))_H4("array_reverse_ext : argument0 is not an array"); _E91=arguments.length>1?yyGetReal(_E91):0;_Ue1=arguments.length>2?yyGetReal(_Ue1):_hl.length;_vi1=_wi1(_hl.length,_E91,_Ue1);_E91=_vi1[0];var _xi1=_vi1[1];var _yi1=_vi1[2];var _Zy3=_xi1,_He2=_E91,_Ie2=_E91+(_xi1-1)*_yi1;_xi1=Math.floor(_xi1*.5);while(_xi1>0){var _zi1=_hl[_He2];_hl[_He2]=_hl[_Ie2];_hl[_Ie2]=_zi1;_He2+=_yi1;_Ie2-=_yi1;_xi1--;}return _Zy3;}function array_concat(_hl){if(!Array.isArray(_hl))_H4("array_concat : argument0 is not an array");var _Zy3=_hl;for(var _8g2=1;_8g2{if(_97.has(_7P))_97.set(_7P,_97.get(_7P)+1);else _97.set(_7P,1);});}var _Zy3=[],_8g2=0;_Zy3._Cy3=_xy3;_97.forEach((_B3,_el)=>{if(_B3==arguments.length)_Zy3[_8g2++]=_el;});return _Zy3;}function _8k(_h02){var _7k="";var size=buffer_tell(_h02);for(var i=0;i>4]+_6M2[y&0xf];}return _7k;}function _6k(_h02,_B3){if(typeof(_B3)=="boolean"){buffer_write(_h02,_5k,_uy3);var i=0;if(_B3)i=1;buffer_write(_h02,_SW2,i);}else if(typeof(_B3)=="number"){buffer_write(_h02,_5k,_hy3);buffer_write(_h02,_SW2,_B3);}else if(typeof(_B3)=="string"){buffer_write(_h02,_5k,_iy3);var _0z3=_AI(_B3);buffer_write(_h02,_5k,_0z3.length);buffer_write(_h02,_WW2,_B3);}else if(_B3 instanceof Array){buffer_write(_h02,_5k,_jy3);var _Yi=_B3.length;buffer_write(_h02,_5k,_Yi);for(var i=0; i<_Yi;i++){_6k(_h02,_B3[i]);}}else {buffer_write(_h02,_5k,_my3);}}function _1z3(_KX){return((_KX>='0')&&(_KX<='9'))||((_KX>='A')&&(_KX<='F'))||((_KX>='a')&&(_KX<='f'));}function _2z3(_KX){var _g4=(_KX&0x40)>>6;return(_KX&0x0f)+(_g4*9);}function _ck(_9o){var _Yi=_9o.length;if(_Yi===0)return -1;var _3z3=0;for(var i=0;i<_Yi;i+=2){if(_1z3(_9o[i])&&_1z3(_9o[i+1])){_3z3+=2;}else {break;}}var _3k=-1;if(_3z3>0){var _3k=buffer_create(_3z3/2,_4k,1);var index=0;for(var i=0;i<_3z3;i+=2){var _h4=((_2z3(_9o.charCodeAt(i))*16)+_2z3(_9o.charCodeAt(i+1))); buffer_poke(_3k,index++,_hO,_h4);}return _3k;}return -1;}function _fk(_h02,_4z3){var _J6=buffer_read(_h02,_ek);if(_J6===_uy3){var _g4=buffer_read(_h02,_SW2);var _5z3=false;if(_g4!=0)_5z3=true;return _5z3;}else if(_J6===_hy3){var _g4=buffer_read(_h02,_SW2);return _g4;}else if(_J6===_ly3){var _Y4=buffer_read(_h02,_ek);return _Y4;}else if(_J6===_ry3||_J6===_ny3){var _Y4=buffer_read(_h02,_ek);var __4=buffer_read(_h02,_ek);return(__4<<32)|_Y4;}else if(_J6===_iy3){var _G6=buffer_read(_h02,_ek);_ni="";for(var i=0;i<_G6;i++){ _ni+=String.fromCharCode(buffer_read(_h02,_hO));}return _BI(_ni);}else if(_J6===_jy3){var _k6=[];if(_4z3==3){var _6z3=buffer_read(_h02,_ek);if(_6z3===1){var _Yi=buffer_read(_h02,_ek);for(var i=0;i<_Yi;i++){_k6[i]=_fk(_h02,_4z3);}}else {for(var _NF=0;_NF<_6z3;_NF++){var _Yi=buffer_read(_h02,_ek);for(var i=0;i<_Yi;i++){var _g4=_fk(_h02,_4z3);array_set_2D(_k6,_NF,i,_g4);}}}}else {var _Yi=buffer_read(_h02,_ek);for(var i=0;i<_Yi;i++){_k6[i]=_fk(_h02,_4z3);}}return _k6;}else {return undefined;}}function _7z3(_N3){return "\""+_N3.substr(5, _N3.length-7)+"\"";}function _8z3(_N3){return _N3.substr(5,_N3.length-7);}function variable_global_exists(_xn){var _q4=false;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_xn]!=undefined)){_q4=g_global_names[g_var2obf[_xn]];}else {_q4=g_global_names[_xn];}if(_q4==undefined){if((typeof g_var2obf!=="undefined")&&(g_var2obf[_xn]!=undefined)){_q4=global.hasOwnProperty(g_var2obf[_xn]);}else {_q4=global.hasOwnProperty("gml"+_xn);}}else {_q4=true;}return _q4;}function variable_global_get(_xn){_xn=yyGetString(_xn); var _q4=false;var _ED;var _AW;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_xn]!=undefined)){_q4=g_global_names[g_var2obf[_xn]];}else {_AW=g_global_names[_xn];}if(_AW==undefined){if((typeof g_var2obf!=="undefined")&&(g_var2obf[_xn]!=undefined)){_q4=global[g_var2obf[_xn]];}else {_q4=global["gml"+_xn];}}else if(_AW[0]){if(_AW[4]!=null){if((typeof g_var2obf!=="undefined")&&(g_var2obf[_AW[4]]!=undefined)){_ED=g_pBuiltIn[g_var2obf[_AW[4]]];}else {_ED=g_pBuiltIn[_AW[4]];}if(typeof _ED=='function'){_q4=_ED.call(g_pBuiltIn); }}else {_q4=g_pBuiltIn[_xn];}}return _q4;}function variable_global_set(_xn,_B3){_xn=yyGetString(_xn);var _q4=false;var _ED;var _AW=undefined;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_xn]!=undefined)){_q4=g_global_names[g_var2obf[_xn]];}else {_AW=g_global_names[_xn];}if(_AW==undefined){if((typeof g_var2obf!=="undefined")&&(g_var2obf[_xn]!=undefined)){global[g_var2obf[_xn]]=_B3;}else {global["gml"+_xn]=_B3;}}else if(_AW[0]){if(_AW[3]!=null){if((typeof g_var2obf!=="undefined")&&(g_var2obf[_AW[3]]!=undefined)){ _ED=g_pBuiltIn[g_var2obf[_AW[3]]];}else {_ED=g_pBuiltIn[_AW[3]];}if(typeof _ED=='function'){_ED.call(g_pBuiltIn,_B3);}}else {g_pBuiltIn[_xn]=_B3;}}}function variable_instance_get(_jg,_xn){var _BG;if((typeof _jg=="object")&&_jg.__yyIsGMLObject){_BG=[_jg];}else {_jg=yyGetInt32(_jg);if(_jg==_JF2){_BG=[global];global.marked=false;global.active=true;_9z3=true;}else {_BG=GetWithArray(_jg);}}_xn=yyGetString(_xn);var _q4=undefined;if(_BG!=null&&_BG.length>0){for(var _0n=0;_0n<_BG.length;_0n++){var _1u=_BG[_0n];if(_1u.__yyIsGMLObject||(!_1u.marked&&_1u.active)){ var _AW=undefined;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_xn]!=undefined)){_q4=g_instance_names[g_var2obf[_xn]];}else {_AW=g_instance_names[_xn];}if(_AW==undefined){var _az3;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_xn]!=undefined)){_az3=g_var2obf[_xn];if(_1u[_az3]==undefined){_az3="gml"+_xn;}}else {_az3="gml"+_xn;}_q4=_1u[_az3];break;}else if(_AW[0]){if(_AW[4]!=null){var _ED=undefined;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_AW[4]]!=undefined)){_ED=_1u[g_var2obf[_AW[4]]];}else {_ED=_1u[_AW[4]]; }if(typeof _ED=='function'){_q4=_ED.call(_1u);break;}}else {_q4=_1u[_xn];break;}}}}}return _q4;}function variable_instance_set(_jg,_xn,_B3){var _BG;if((typeof _jg=="object")&&_jg.__yyIsGMLObject){_BG=[_jg];}else {_jg=yyGetInt32(_jg);if(_jg==_JF2){_BG=[global];global.marked=false;global.active=true;_9z3=true;}else {_BG=GetWithArray(_jg);}}_xn=yyGetString(_xn);var _q4=false;if(_BG!=null&&_BG.length>0){for(var _0n=0;_0n<_BG.length;_0n++){var _1u=_BG[_0n];if(_1u.__yyIsGMLObject||(!_1u.marked&&_1u.active)){var _AW=undefined; if((typeof g_var2obf!=="undefined")&&(g_var2obf[_xn]!=undefined)){_q4=g_instance_names[g_var2obf[_xn]];}else {_AW=g_instance_names[_xn];}if(_AW==undefined){if((typeof g_var2obf!=="undefined")&&(g_var2obf[_xn]!=undefined)){_1u[g_var2obf[_xn]]=_B3;}else {_1u["gml"+_xn]=_B3;}}else if(_AW[1]){if(_AW[3]!=null){var _ED=undefined;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_AW[3]]!=undefined)){_ED=_1u[g_var2obf[_AW[3]]];}else {_ED=_1u[_AW[3]];}if(typeof _ED=='function'){_ED.call(_1u,_B3);}}else {_1u[_xn]=_B3; }}return;}}}}function _bz3(_jg,_xn,_B3){var _BG;var _q4;if((typeof _jg=="object")&&_jg.__yyIsGMLObject){_BG=[_jg];}else {_jg=yyGetInt32(_jg);if(_jg==_JF2){_BG=[global];global.marked=false;global.active=true;_9z3=true;}else {_BG=GetWithArray(_jg);}}_xn=yyGetString(_xn);var _q4=false;if(_BG!=null&&_BG.length>0){for(var _0n=0;_0n<_BG.length;_0n++){var _1u=_BG[_0n];if(_1u.__yyIsGMLObject||(!_1u.marked&&_1u.active)){var _AW=undefined;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_xn]!=undefined)){_q4=g_instance_names[g_var2obf[_xn]]; }else {_AW=g_instance_names[_xn];}if(_AW==undefined){if((typeof g_var2obf!=="undefined")&&(g_var2obf[_xn]!=undefined)){_q4=_1u[g_var2obf[_xn]];_1u[g_var2obf[_xn]]=_B3;}else {_q4=_1u["gml"+_xn];_1u["gml"+_xn]=_B3;}}else if(_AW[1]){if(_AW[3]!=null){var _ED=undefined;var _f4=undefined;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_AW[3]]!=undefined)){_ED=_1u[g_var2obf[_AW[3]]];}else {_ED=_1u[_AW[3]];}if((typeof g_var2obf!=="undefined")&&(g_var2obf[_AW[4]]!=undefined)){_f4=_1u[g_var2obf[_AW[4]]];}else {_f4=_1u[_AW[4]]; }if(_f4!=null){if(typeof _f4=='function'){_q4=_f4.call(_1u);}}if(typeof _ED=='function'){_ED.call(_1u,_B3);}}else {_q4=_1u[_xn];_1u[_xn]=_B3;}}return _q4;}}}return _q4;}function variable_instance_exists(_jg,_xn){var _BG;if((typeof _jg=="object")&&_jg.__yyIsGMLObject){_BG=[_jg];}else {_jg=yyGetInt32(_jg);if(_jg==_JF2){_BG=[global];global.marked=false;global.active=true;_9z3=true;}else {_BG=GetWithArray(_jg);}}_xn=yyGetString(_xn);var _q4=false;if(_BG!=null&&_BG.length>0){for(var _0n=0;!_q4&&(_0n<_BG.length); _0n++){var _1u=_BG[_0n];if(_1u.__yyIsGMLObject||(!_1u.marked&&_1u.active)){var _AW=undefined;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_xn]!=undefined)){_AW=g_instance_names[g_var2obf[_xn]];}else {_AW=g_instance_names[_xn];}if(_AW==undefined){if((typeof g_var2obf!=="undefined")&&(g_var2obf[_xn]!=undefined)){_q4=g_var2obf[_xn] in _1u;}else {_q4="gml"+_xn in _1u;}}else {if(_1u.__yyIsGMLObject)_q4=_xn in _1u||"gml"+_xn in _1u;else _q4=true;}break;}}}return _q4;}function variable_instance_names_count(_jg){var _q4=0; var _BG=null;var _9z3=false;if((typeof _jg=="object")&&_jg.__yyIsGMLObject){_BG=[_jg];}else {_jg=yyGetInt32(_jg);if(_jg==_JF2){_BG=[global];global.marked=false;global.active=true;_9z3=true;}else {_BG=GetWithArray(_jg);}}if(_BG!=null&&_BG.length>0){for(var _0n=0;_0n<_BG.length;_0n++){var _1u=_BG[_0n];if(_1u.__yyIsGMLObject||(!_1u.marked&&_1u.active)){var _kh=_gy3(_1u,_9z3);return _kh.length/2;}}}return _q4;}function _gy3(_NG,_9z3){var _q4=[];for(var _t6 in _NG){if(_NG.hasOwnProperty(_t6)){if(_t6.startsWith("gml")){ _q4.push(_t6.substring(3));_q4.push(_t6);}}}var _4l=Object.getOwnPropertyNames(_NG);for(var i=0;i<_4l.length;i++){var prop=_4l[i];var _cz3=prop;if(typeof _KG!="undefined"&&_KG.hasOwnProperty(prop)){_cz3=_KG[prop];}var _dz3=(_9z3)?g_global_names[_cz3]!=undefined:g_instance_names[_cz3]!=undefined;if(_NG.__yyIsGMLObject){if(_cz3=="__type")continue;if(!_dz3&&_cz3==prop)continue;}else {if(_dz3)continue;if(_cz3.startsWith("__")){_dz3=(_9z3)?g_global_names[_cz3.substring(2)]!=undefined:g_instance_names[_cz3.substring(2)]!=undefined; if(_dz3)continue;}if(!_dz3&&_cz3==prop)continue;}if(!_cz3.startsWith("gml")){_q4.push(_cz3);_q4.push(prop);}}return _q4;}function variable_instance_get_names(_jg){var _q4=[];var _BG=null;var _9z3=false;if((typeof _jg=="object")&&_jg.__yyIsGMLObject){_BG=[_jg];}else {_jg=yyGetInt32(_jg);if(_jg==_JF2){_BG=[global];global.marked=false;global.active=true;_9z3=true;}else {_BG=GetWithArray(_jg);}}if(_BG!=null){for(var _0n=0;_0n<_BG.length;_0n++){var _1u=_BG[_0n];if(_1u.__yyIsGMLObject||(!_1u.marked&&_1u.active)){ var _kh=_gy3(_1u,_9z3);for(var _t6=0;_t6<_kh.length;_t6+=2){if(_kh[_t6]!="constructor")_q4.push(_kh[_t6]);}return _q4;}}}return _q4;}function __yy_gml_copy_prototype(_pk,_sj){Object.setPrototypeOf(_pk,_sj);}function variable_struct_exists(_jg,_N3){return variable_instance_exists(_jg,_N3);}function variable_struct_set(_jg,_N3,_B3){return variable_instance_set(_jg,_N3,_B3);}function variable_struct_set_pre(_jg,_N3,_B3){variable_instance_set(_jg,_N3,_B3);return _B3;}function variable_struct_set_post(_jg,_N3,_B3){ return _bz3(_jg,_N3,_B3);}function variable_struct_get(_jg,_N3){return variable_instance_get(_jg,_N3);}function variable_struct_get_names(_jg){return variable_instance_get_names(_jg);}function variable_struct_names_count(_jg){return variable_instance_names_count(_jg);}function variable_struct_remove(_jg,_xn){var _BG;if((typeof _jg=="object")&&_jg.__yyIsGMLObject){_BG=[_jg];}else {_jg=yyGetInt32(_jg);if(_jg==_JF2){_BG=[global];global.marked=false;global.active=true;_9z3=true;}else {_BG=GetWithArray(_jg);}}_xn=yyGetString(_xn); if(_BG!=null&&_BG.length>0){for(var _0n=0;_0n<_BG.length;_0n++){var _1u=_BG[_0n];if(_1u.__yyIsGMLObject||(!_1u.marked&&_1u.active)){var _az3;if((typeof g_var2obf!=="undefined")&&(g_var2obf[_xn]!=undefined)){_az3=g_var2obf[_xn];}else {_az3="gml"+_xn;}if(Object.prototype.hasOwnProperty.call(_1u,_az3)){delete _1u[_az3];}else if(Object.prototype.hasOwnProperty.call(_1u,"gml"+_xn)){delete _1u["gml"+_xn];}else if(Object.prototype.hasOwnProperty.call(_1u,_xn)){delete _1u[_xn];}}}}}function struct_exists(_jg,_N3){ return variable_instance_exists(_jg,_N3);}function struct_set(_jg,_N3,_B3){return variable_instance_set(_jg,_N3,_B3);}function struct_get(_jg,_N3){return variable_instance_get(_jg,_N3);}function struct_get_names(_jg){return variable_instance_get_names(_jg);}function struct_names_count(_jg){return variable_instance_names_count(_jg);}function struct_remove(_jg,_xn){return variable_struct_remove(_jg,_xn);}function struct_foreach(_jg,_yk){_yk=_zk(_yk,1);_Ak="boundObject" in _yk?_yk._Bk:{};var _BG=null;var _9z3=false; if((typeof _jg=="object")&&_jg.__yyIsGMLObject){_BG=[_jg];}else {_jg=yyGetInt32(_jg);if(_jg==_JF2){_BG=[global];global.marked=false;global.active=true;_9z3=true;}else {_BG=GetWithArray(_jg);}}if(_BG!=null){for(var _0n=0;_0n<_BG.length;_0n++){var _1u=_BG[_0n];if(_1u.__yyIsGMLObject||(!_1u.marked&&_1u.active)){var _kh=_gy3(_1u,_9z3);for(var _t6=0;_t6<_kh.length;_t6+=2){_yk(_Ak,_Ak,_kh[_t6],_jg[_kh[_t6+1]]);}}}}}function struct_get_from_hash(_jg,_ez3){return variable_instance_get(_jg,_ez3);}function struct_set_from_hash(_jg, _ez3,_B3){return variable_instance_set(_jg,_ez3,_B3);}function variable_get_hash(_N3){return _N3;}_fz3=new Map();function _gz3(_B3,_Al){if(_fz3.has(_B3)){return _fz3.get(_B3);}if(typeof _B3==="object"){if(_B3 instanceof Long){return _B3;}if(_Al<=0){return _B3;}if(_B3 instanceof Array){var _Qx1=new Array(_B3.length);_fz3.set(_B3,_Qx1);for(var _t6=0;_t6<_B3.length;++_t6){_Qx1[_t6]=_gz3(_B3[_t6],_Al-1);}return _Qx1;}var _Qx1=new _BH();_fz3.set(_B3,_Qx1);for(var name in _B3){if(!_B3.hasOwnProperty(name)){continue;}var _Y4=_gz3(_B3[name], _Al-1);if((typeof _Y4=='function')&&_Y4._BW&&_Y4._Bk&&(_Y4._Bk==_B3)){_Y4=method(_Qx1,_Y4);}Object.defineProperty(_Qx1,name,{value:_Y4,configurable:true,writable:true,enumerable:true});}return _Qx1;}return _B3;}function variable_clone(_B3,_Al){_Al=arguments.length>1?Math.max(0,yyGetReal(_Al)):128;var _Qx1=_gz3(_B3,_Al);_fz3.clear();return _Qx1;}function vertex_format_begin(){_Ib("vertex_format_begin");}function vertex_format_end(){_Ib("vertex_format_end");}function vertex_format_delete(_hz3){_Ib("vertex_format_delete"); }function vertex_format_add_position(){_Ib("vertex_format_add_position");}function vertex_format_add_position_3d(){_Ib("vertex_format_add_position_3d");}function vertex_format_add_colour(){_Ib("vertex_format_add_colour");}function vertex_format_add_color(){_Ib("vertex_format_add_color");}function vertex_format_add_normal(){_Ib("vertex_format_add_normal");}function vertex_format_add_texcoord(){_Ib("vertex_format_add_texcoord");}function vertex_format_add_textcoord(){_Ib("vertex_format_add_textcoord");}function vertex_format_add_custom(type, _td){_Ib("vertex_format_add_custom");}var _iz3=null;function _jz3(){vertex_format_begin=_kz3;vertex_format_end=_lz3;vertex_format_delete=_mz3;vertex_format_add_position=_nz3;vertex_format_add_position_3d=_oz3;vertex_format_add_colour=_pz3;vertex_format_add_color=_pz3;vertex_format_add_normal=_qz3;vertex_format_add_texcoord=_rz3;vertex_format_add_textcoord=_rz3;vertex_format_add_custom=_sz3;}function _kz3(){if(_iz3!=null){debug("ERROR vertex_format_begin: Vertex format is already under construction"); }else {_iz3=new _mY1();}}function _nz3(){if(_iz3==null){debug("ERROR vertex_format_add_position: No vertex format is under construction");}else {_iz3._U52();}}function _oz3(){if(_iz3==null){debug("ERROR vertex_format_add_position_3d: No vertex format is under construction");}else {_iz3._xY1();}}function _pz3(){if(_iz3==null){debug("ERROR vertex_format_add_colour: No vertex format is under construction");}else {_iz3._yY1();}}function _qz3(){if(_iz3==null){debug("ERROR vertex_format_add_normal: No vertex format is under construction"); }else {_iz3._AY1();}}function _rz3(){if(_iz3==null){debug("ERROR vertex_format_add_textcoord: No vertex format is under construction");}else {_iz3._zY1();}}function _sz3(_od,_nd){if(_iz3==null){debug("ERROR vertex_format_add_normal: No vertex format is under construction");}else {_iz3._V52(yyGetInt32(_od),yyGetInt32(_nd));}}function _lz3(){if(_iz3==null){debug("ERROR vertex_format_end: No vertex format under construction");return -1;}var _R32=_e8._DY1(_iz3);_iz3=null;return _R32;}function _mz3(_tz3){debug("WARNING vertex_format_delete not implemented on HTML5 (System shares vertex formats but doesn't reference count)"); }var _uz3=false;function video_get_format(){var video_format_rgba=0;var video_format_yuv=1;return video_format_rgba;}function video_open(path){_uz3=false;var _vz3=document.querySelector("canvas");if(_vz3._wz3==null){_vz3._wz3=document.createElement('video');}else {_vz3._wz3.pause();}const _xz3=_vz3._wz3;var _yz3=_Ec1(path);var playing=false;var _zz3=false;_xz3.muted=false;_xz3.src=_yz3;_xz3.addEventListener('ended',function(){var map=ds_map_create();ds_map_add(map,"type","video_end");g_pBuiltIn.async_load=map; _i3._j3(_KD2,0);ds_map_destroy(map);});function _Az3(){var _Pc1="mousedown";var _Qc1="mouseup";if("ontouchstart" in window){_Pc1="touchstart";_Qc1="touchend";}if((window.PointerEvent)||(window.navigator.pointerEnabled)||(window.navigator.msPointerEnabled)){_Pc1="pointerdown";_Qc1="pointerup";}var _Bz3=function(){var _vz3=document.querySelector("canvas");const _xz3=_vz3._wz3;if(_xz3!=null)_xz3.muted=false;};document.body.addEventListener(_Pc1,_Bz3,{once:true});document.body.addEventListener(_Qc1,_Bz3,{once:true} );}if(_xz3.requestVideoFrameCallback===undefined){console.log("requestVideoFrameCallback not supported by browser, video playback likely to be poor");_xz3.addEventListener('playing',function(){playing=true;console.log("Video playing event called");_Cz3();var map=ds_map_create();ds_map_add(map,"type","video_start");g_pBuiltIn.async_load=map;_i3._j3(_KD2,0);ds_map_destroy(map);},true);_xz3.addEventListener('timeupdate',function(){_zz3=true;_Cz3();},true);_xz3.load();var _Dz3=_xz3.play();if(_Dz3!==undefined){ _Dz3.then(_PG=>{}).catch(error=>{debug("video_open failed. User must interact with the page before video with audio can be played. Attempting to play the video muted");_xz3.muted=true;_xz3.play();_Az3();});}function _Cz3(){if(playing&&_zz3){if(_vz3._Ez3==null){_vz3._Ez3=document.createElement('canvas');_vz3._Ez3.style.cssText="position:fixed; top:1px; left:1px; width:1px; height:1px";_vz3._Ez3.width=_xz3.videoWidth;_vz3._Ez3.height=_xz3.videoHeight;document.body.appendChild(_vz3._Ez3);_vz3._Fz3=_vz3._Ez3.getContext('2d', {alpha:false,_Gz3:true,antialias:true,_Hz3:'low-power',preserveDrawingBuffer:true});}else {_vz3._Ez3.width=_xz3.videoWidth;_vz3._Ez3.height=_xz3.videoHeight;}_vz3._Fz3.drawImage(_vz3._wz3,0,0);}}}else {_xz3.addEventListener('playing',function(){playing=true;console.log("Video playing event called");var map=ds_map_create();ds_map_add(map,"type","video_start");g_pBuiltIn.async_load=map;_i3._j3(_KD2,0);ds_map_destroy(map);},true);const _Iz3=(now,_Jz3)=>{if(_vz3._Ez3==null){_vz3._Ez3=document.createElement('canvas'); _vz3._Ez3.style.cssText="position:fixed; top:1px; left:1px; width:1px; height:1px";_vz3._Ez3.width=_xz3.videoWidth;_vz3._Ez3.height=_xz3.videoHeight;document.body.appendChild(_vz3._Ez3);_vz3._Fz3=_vz3._Ez3.getContext('2d',{alpha:false,_Gz3:true,antialias:true,_Hz3:'low-power',preserveDrawingBuffer:true});}else {_vz3._Ez3.width=_xz3.videoWidth;_vz3._Ez3.height=_xz3.videoHeight;}if((_vz3._wz3!=null)&&(_vz3._Fz3!=null))_vz3._Fz3.drawImage(_vz3._wz3,0,0);if(_vz3._wz3!=null){if(_vz3._wz3.src!=null)_vz3._wz3.requestVideoFrameCallback(_Iz3); else console.log("stopping video player callback check");}};_xz3.requestVideoFrameCallback(_Iz3);_xz3.load();var _Dz3=_xz3.play();if(_Dz3!==undefined){_Dz3.then(_PG=>{}).catch(error=>{debug("video_open failed. User must interact with the page before video with audio can be played. Attempting to play the video muted");_xz3.muted=true;_xz3.play();_Az3();});}}}function video_close(){_uz3=true;var _vz3=document.querySelector("canvas");if(_vz3._wz3!=null){_vz3._wz3.pause();console.log("Pausing video player"); _vz3._wz3.removeAttribute('src');_vz3._wz3.load();}}function _Kz3(){if(_uz3)return -1;var _vz3=document.querySelector("canvas");if(_vz3._wz3!=null){if(_vz3._wz3.paused)return -1;if(!_vz3._wz3.ended)return 0;}return -1;}var _Lz3=-4;var _Mz3=-4;var _Nz3=-4;var _Oz3=-4;function _Pz3(_Qz3,width,height){var _vz3=document.querySelector("canvas");if(_vz3._Fz3!=null){var _vv3=_vz3._Fz3.getImageData(0,0,width,height);var _iZ2=new Uint8Array(_vv3.data.buffer);var _nX2=new Uint8Array(_Qz3._eO);var _aZ2=_iZ2.byteLength;if(_nX2.byteLength>=_aZ2){ var i;for(i=0;i<_aZ2;i++){_nX2[i]=_iZ2[i];}_Qz3._tX2(_aZ2);}else return 0;return 1;}else console.log("Not rendering video as context is null");return 0;}function _Rz3(){var _vz3=document.querySelector("canvas");if(_vz3._wz3!=null)return _vz3._wz3.videoWidth;return 0;}function _Sz3(){var _vz3=document.querySelector("canvas");if(_vz3._wz3!=null)return _vz3._wz3.videoHeight;return 0;}function video_draw(){if(_Kz3()!=0){if(surface_exists(_Lz3))surface_free(_Lz3,true);_Lz3=-1;if(_Mz3>=0){buffer_delete(_Mz3);}_Mz3=-1; _Nz3=-1;_Oz3=-1;var _q4=[];_q4[0]=_Kz3();_q4[1]=-1;_q4[2]=-1;return _q4;}else {if(!surface_exists(_Lz3)){_Nz3=1;_Oz3=1;_Lz3=surface_create(1,1,_bs);if(_Mz3>=0){buffer_delete(_Mz3);}_Mz3=buffer_create(1*1*4,_b01,1);}if(_Rz3()!=0&&_Sz3()!=0){if(_Nz3!=_Rz3()||_Oz3!=_Sz3()){_Nz3=_Rz3();_Oz3=_Sz3();if(surface_exists(_Lz3)){surface_free(_Lz3,true);}if(_Mz3>=0){buffer_delete(_Mz3);}_Lz3=surface_create(_Nz3,_Oz3,_bs);_Mz3=buffer_create(_Nz3*_Oz3*4,_b01,1);}}var _Ca=_bO._E5(_Mz3);if(!_Pz3(_Ca,_Nz3,_Oz3)){var _q4=[]; _q4[0]=-1;_q4[1]=-1;_q4[2]=-1;return _q4;}buffer_set_surface(_Mz3,_Lz3,0);var _q4=[];_q4[0]=_Kz3();_q4[1]=_Lz3;_q4[2]=-1;return _q4;}}function video_set_volume(_Tz3){var _vz3=document.querySelector("canvas");if(_vz3._wz3!=null){_vz3._wz3.volume=_Tz3;}}function video_pause(){var _vz3=document.querySelector("canvas");if(_vz3._wz3!=null){_vz3._wz3.pause();}}function video_resume(){var _vz3=document.querySelector("canvas");if(_vz3._wz3!=null){_vz3._wz3.play();}}function video_enable_loop(loop){var _vz3=document.querySelector("canvas"); if(_vz3._wz3!=null)_vz3._wz3.loop=loop;}function video_seek_to(_Wk){var _Uz3=_Wk/1000.0;var _vz3=document.querySelector("canvas");if(_vz3._wz3!=null){_vz3._wz3.currentTime=_Uz3;}}function video_get_duration(){var _vz3=document.querySelector("canvas");if(_vz3._wz3!=null){if(!isNaN(_vz3._wz3.duration))return _vz3._wz3.duration*1000;}return 0;}function video_get_position(){var _vz3=document.querySelector("canvas");if(_vz3._wz3!=null){return _vz3._wz3.currentTime*1000;}return 0;}function video_get_status(){if(_uz3)return 0; var _vz3=document.querySelector("canvas");var video_status_closed=0;var video_status_preparing=1;var video_status_playing=2;var video_status_paused=3;if(_vz3._wz3!=null){if(_vz3._wz3.ended)return video_status_closed;if(_vz3._wz3.paused)return video_status_paused;if(_vz3._wz3.readyState<_vz3._wz3._Vz3)return video_status_preparing;return video_status_playing;}return video_status_closed;}function video_is_looping(){var _vz3=document.querySelector("canvas");if(_vz3._wz3!=null){return _vz3._wz3.loop;}return 0;}function video_get_volume(){ var _vz3=document.querySelector("canvas");if(_vz3._wz3!=null){return _vz3._wz3.volume;}return 0;}/*@constructor */function _gM2(){this.__type="[View]";this.visible=false;this._7j1=0;this._8j1=0;this._9j1=640;this._aj1=480;this._Ck3=0;this._Dk3=0;this._Ek3=640;this._Fk3=480;this.angle=0;this._cg=0;this._eg=0;this._dg=0;this._fg=0;this._0o3=640;this._1o3=480;this._2o3=1;this._3o3=1;this.hborder=32;this.vborder=32;this.hspeed=-1;this.vspeed=-1;this.__m=-1;this._pN=-1;this._V71=-1;this._ix2=-1;}_gM2.prototype._nj=function(_oj){ this.visible=_oj.visible;this._7j1=_oj._7j1;this._8j1=_oj._8j1;this._9j1=_oj._9j1;this._aj1=_oj._aj1;this._Ck3=_oj._Ck3;this._Dk3=_oj._Dk3;this._Ek3=_oj._Ek3;this._Fk3=_oj._Fk3;this.angle=_oj.angle;this._cg=_oj._cg;this._eg=_oj._eg;this._dg=_oj._dg;this._fg=_oj._fg;this._0o3=_oj._0o3;this._1o3=_oj._1o3;this._2o3=_oj._2o3;this._3o3=_oj._3o3;this.hborder=_oj.hborder;this.vborder=_oj.vborder;this.hspeed=_oj.hspeed;this.vspeed=_oj.vspeed;this.__m=_oj.__m;this._pN=_oj._pN;this._V71=_oj._V71;};_gM2.prototype._Wz3=function(_q5, _r5,_Xz3){var _Ia3=_bg;_q5=(_q5-_Ia3.left-this._cg)/(_Ia3.scaleX||1);_r5=(_r5-_Ia3.top-this._eg)/(_Ia3.scaleY||1);if(_v3){var _Ty2=_jj1._ux2(this._V71);if(_Ty2==null)return 0;var _Yz3=_q5/this._0o3;var _Zz3=_r5/this._1o3;_Yz3=_Yz3*2.0-1.0;_Zz3=_Zz3*2.0-1.0;var __z3=_Ty2._oy2();var out;if(_Xz3){out=((_Yz3*__z3._v6[_5B])+(_Zz3*__z3._v6[_6B])+__z3._v6[_8B]);}else {out=((_Yz3*__z3._v6[_9B])+(_Zz3*__z3._v6[_0A])+__z3._v6[_bB]);}return Math.floor(out);}else {if(_Xz3){_q5/=this._2o3;return _q5+this._7j1;}else {_r5/=this._3o3; return _r5+this._8j1;}}};_gM2.prototype._gg=function(_q5,_r5){return this._Wz3(_q5,_r5,true);};_gM2.prototype._hg=function(_q5,_r5){return this._Wz3(_q5,_r5,false);};function _mk3(_0A3){var _Sz=new _gM2();if(_0A3.visible!=undefined)_Sz.visible=_0A3.visible;if(_0A3.xview!=undefined)_Sz._7j1=_0A3.xview;if(_0A3.yview!=undefined)_Sz._8j1=_0A3.yview;if(_0A3.wview!=undefined)_Sz._9j1=_0A3.wview;if(_0A3.hview!=undefined)_Sz._aj1=_0A3.hview;if(_0A3.xport!=undefined)_Sz._Ck3=_0A3.xport;if(_0A3.yport!=undefined)_Sz._Dk3=_0A3.yport; if(_0A3.wport!=undefined)_Sz._Ek3=_0A3.wport;if(_0A3.hport!=undefined)_Sz._Fk3=_0A3.hport;if(_0A3.angle!=undefined)_Sz._Fk3=_0A3.angle;if(_0A3.hborder!=undefined)_Sz.hborder=_0A3.hborder;if(_0A3.vborder!=undefined)_Sz.vborder=_0A3.vborder;if(_0A3.hspeed!=undefined)_Sz.hspeed=_0A3.hspeed;if(_0A3.vspeed!=undefined)_Sz.vspeed=_0A3.vspeed;if(_0A3.index!=undefined)_Sz.__m=_0A3.index;if(_v3){if(_0A3._V71!==undefined&&_0A3._V71>=0){_Sz._V71=_jj1._sx2(_0A3._V71);}else {var _Kx2=_jj1._Mx2(_Sz);_Kx2._nx2(true); _Sz._V71=_Kx2._qy2();}}return _Sz;}/*@constructor */function _1A3(){this.__yyIsGMLObject=true;this.__type="[weakref]";this._2A3=null;this._3A3=function(){if(this._2A3==null){return undefined;}else if(this._2A3.deref()==undefined){return false;}return true;};this._4A3=function(_5A3){if(typeof WeakRef==="undefined"){this._2A3=null;}else {this._2A3=new WeakRef(_5A3);}};Object.defineProperties(this,{gmlref:{enumerable:true,get :function(){return(this._2A3==null)?undefined:((this._2A3.deref()==undefined)?undefined:this._2A3.deref()); }}});}function weak_ref_create(_5A3){if(_5A3!=undefined){if((typeof(_5A3)=="object")||(typeof(_5A3)=="function")){var _6A3=new _1A3();_6A3._4A3(_5A3);return _6A3;}else {_H4("invalid argument passed to weak_ref_create");}}else {_H4("incorrect number of arguments to weak_ref_create");}return undefined;}function weak_ref_alive(_7A3){if(_7A3!=undefined){if((typeof(_7A3)=="object")&&(_7A3.__type!=undefined)&&(_7A3.__type=="[weakref]")){return _7A3._3A3();}return undefined;}else {_H4("incorrect number of arguments to weak_ref_alive"); }}function weak_ref_any_alive(_hl,_J3,_Ue1){if(_hl==undefined){_H4("incorrect number of arguments to weak_ref_any_alive");}else if(Array.isArray(_hl)==false){_H4("first argument to weak_ref_any_alive is not an array");}else {var index=0;var length=_hl.length;if(_J3!=undefined){index=_J3;}if(_Ue1!=undefined){length=_Ue1;}if(index<0){length+=index;index=0;}if(index>=_hl.length){return;}if((index+length)>=_hl.length){length=_hl.length-index;}if(length<=0){return;}if(length>0){var _pb=false;var end=index+length; for(var i=index;i64)_t6=64;_t6=4*((_t6/4)|0); _gA3=_t6;_hA3[0]=1;_iA3[0]=0;for(var i=1;i<_t6;i++){_hA3[i]=Math.cos(i*2*Math.PI/_t6);_iA3[i]=Math.sin(i*2*Math.PI/_t6);}_hA3[_t6]=1;_iA3[_t6]=0;}function _0M(){return _gA3;}function _LB3(){_tv(0,0xff000000,0,0);_3U2(0);_6U2(0);_RB3();}function _NB3(){return _SB3();}function _OB3(){var _TB3=document.createElement(_8F);_TB3.__c=_TB3.width=16;_TB3._0d=_TB3.height=16;_TB3.complete=true;_TB3._Si1=false;_TB3.name="";_TB3._1a=_TB3.getContext('2d');_TB3._1a.save();_TB3._1a.setTransform(1,0,0,1,0,0);_TB3._1a.globalAlpha=1; _TB3._1a.fillStyle='#ffffff';_TB3._1a.fillRect(0,0,16,16);_TB3._1a.restore();var _B4=new _hs();_B4.x=0;_B4.y=0;_B4.w=15;_B4.h=15;_B4.XOffset=0;_B4.YOffset=0;_B4.CropWidth=15;_B4.CropHeight=15;_B4.ow=_B4.w;_B4.oh=_B4.h;_B4.tp=-1;_B4.texture=_TB3;_B4._p8=[];_B4._r8=1;_B4._q8=0;_M8(_B4);_e8._y02(_B4.texture._N8);return true;}function _PB3(){_oA=new Float32Array(_9a._F02*4);_vA=new Float32Array(_9a._F02*4);_sA=new Float32Array(_9a._F02*4);_xA=new Float32Array(4);_xA[0]=1;_xA[1]=1;_xA[2]=1;_xA[3]=1;var _nA;for(var i=0; i<_9a._F02;i++){_sA[i]=0;_nA=i*4;_oA[_nA+0]=0;_oA[_nA+1]=0;_oA[_nA+2]=0;_oA[_nA+3]=0;_vA[_nA+0]=0;_vA[_nA+1]=0;_vA[_nA+2]=0;_vA[_nA+3]=0;_yA[i]=false;}return true;}function _RB3(){var _UB3=sprite_get_texture;sprite_get_texture=function(_5h1,_VB3){var texture=_UB3(_5h1,_VB3);if(texture&&!texture._Hc._N8){_M8(texture._Ic);}return texture;};var _WB3=_7t;_7t=function(_t4){var texture=_WB3(_t4);if(texture&&!texture._Hc._N8){_M8(texture._Ic);}return texture;};_vA3();}function _vA3(){_e8._qZ1();_e8._Qz(_Rz());_e8._LZ1(_jC, _lC);_e8._DA(_CA);_e8._BA(_xA);_e8._Mz(_Lz._iv,_Lz._jv,_Lz._kv,_Lz.alpha);for(var i=0;i<_9a._F02;i++){_e8._wA(i,_vA.subarray(i*4,(i+1)*4),_oA.subarray(i*4,(i+1)*4),_sA.subarray(i*4,(i+1)*4));}}function _wA3(){_e8._rZ1();}function _sA3(_XB3){if(_XB3){_9A3={};if(_XB3._do3){_9A3._Az=_Az;_9A3._Pz=_Pz;_9A3._CA=new Float32Array(_CA);if(_v3){_9A3._Gz=gpu_get_cullmode();_9A3._Cz=gpu_get_ztestenable();_9A3._Ez=gpu_get_zwriteenable();}_Az=false;_Pz=false;_tv(0,0xff000000,0,0);_e8._Bz(false);_e8._Fz(false);_e8._Dz(false); _e8._Qz(_Rz());}if(_XB3._eo3){_9A3._YB3=_e8._la._ma(_9a._na);_9A3._ZB3=_e8._la._ma(_9a._oa);_e8._uZ1(_9a._da,_9a._3C);}}}function _tA3(__B3){if(_9A3&&__B3){if(__B3._go3){_Az=_9A3._Az;_Pz=_9A3._Pz;_CA=new Float32Array(_9A3._CA);_e8._DA(_CA);if(_Az||_v3){if(_v3){_e8._Fz(_9A3._Gz);_e8._Bz(_9A3._Cz);_e8._Dz(_9A3._Ez);}else {_e8._Bz(_Cz);_e8._Dz(_Ez);_e8._Fz(_Gz);}}_e8._Qz(_Rz());}if(__B3._ho3){_e8._uZ1(_9A3._YB3,_9A3._ZB3);}_9A3=null;}}function _Rz(){var _QY1=undefined;if(_Pz){_QY1=_e8._LX1;}else {_QY1=_e8._KX1; }return _QY1;}function _oA3(_Hm,_Im,_k73,_l73){var _0C3=_Gn1;var _1C3=_Hn1;_rL2._uB();var w=_Gn1/_Hm;var h=_Hn1/_Im;_rL2._WA((_0C3*-0.5+_k73)/_Hm,(_1C3*-0.5+_l73)/_Im,16000);_Jj1._4A(w,-h*_1A,1.0,32000.0);_UA(_pB,_rL2);_UA(_sB,_Jj1);}function _lA3(_m73,_n73,_o73,_p73,_u5){if(!_Az){_j73(_m73,_n73,_o73,_p73,_u5);}else {var angle=-_u5*(Math.PI/180.0);var _Km2=new _Tz((_m73+_o73/2.0),(_n73+_p73/2.0),-_o73);var _Sm2=new _Tz((_m73+_o73/2.0),(_n73+_p73/2.0),0.0);var __m2=new _Tz(Math.sin(angle),Math.cos(angle),0.0);_rL2._Wz(_Km2, _Sm2,__m2);if(false==_Oz){_Jj1._4A(_o73,-_p73*_1A,1.0,32000.0);}else {_Jj1._5A(1.0,_p73/_o73,1.0,32000.0);}_Jj1._v6[_0A]*=_1A;}_UA(_pB,_rL2);_UA(_sB,_Jj1);_UA(_VA,_oB[_VA]);_6N=_m73;_7N=_n73;_4N=_o73;_5N=_p73;}function _mA3(_IY1,_JY1,_KY1,_LY1){_WK=_IY1;_XK=_JY1;_YK=_KY1;_ZK=_LY1;var _P6=_JY1;if(_1A==1){_P6=window_get_height()-(_LY1+_JY1);}_e8._HY1(_IY1,_P6,_KY1,_LY1);_e8._Dj1();}function _pA3(_3d){_e8._Dj1();_e8._N_1(true,true,true,_Qc(_3d)|0xff000000);}function _VA3(_3d,_u9){_e8._Dj1();_u9=yyGetReal(_u9); if(_u9>1)_u9=1;if(_u9<0)_u9=0;var _m4=((_u9*255.0)<<24)|_Qc(yyGetInt32(_3d));_e8._N_1(true,true,false,_m4);}function _kA3(_3d){return(_3d&0x00ffffff);}function _XA3(_u9){if(_u9<0){_u9=0;}if(_u9>1){_u9=1;}_Nc=_u9;}function _nA3(_fm){if(arguments.length>0){var _UK=arguments[0];}else {}}function _qA3(_q5,_r5,_w4,_x4,_u5){}function _rA3(_Lw){}function _uA3(_ko,_9o,_q5,_r5,_co,_do,_u5,_3d,_u9){if(!_aA3){var _37=1024;var _47=1024;var _S4=_q73(_37,_47);var _B4=new _hs();_B4.x=0;_B4.y=0;_B4.w=_37;_B4.h=_47;_B4.XOffset=0; _B4.YOffset=0;_B4.CropWidth=_B4.w;_B4.CropHeight=_B4.h;_B4.ow=_B4.w;_B4.oh=_B4.h;_B4.tp=_S4;_B4.texture=_F4[_B4.tp];_aA3=_B4;}var c=document.createElement("canvas");var _Za=c.getContext("2d");_ko="20px arial";_Za.font=_ko;_Za.textBaseline="top";_Za.textAlign="left";var _2C3=_Za.measureText(_9o);var width=_2C3.width;var height=20;c.width=width;c.height=height;_Za.globalAlpha=0.0;_Za.globalCompositeOperation="copy";_Za.fillStyle="black";_Za.fillRect(0,0,c.width,c.height);_Za.globalAlpha=1.0;_Za.globalCompositeOperation="source-over"; _Za.fillStyle="white";_Za.fillText(_9o,0,0);}function _jB(_Lw){if(_eA3>=_fA3){return false;}_eA3++;if(_eA3==0){_dA3[_eA3]=new _zz(_Lw);}else {_dA3[_eA3].Multiply(_dA3[_eA3-1],_Lw);}return true;}function _kB(_Lw){if(_eA3<0){return false;}_UA(_VA,_dA3[_eA3]);_eA3--;return true;}function _hB(){_eA3=-1;}function _iB(){if(_eA3<0){return true;}return false;}function _lB(){if(_eA3<0){return false;}_UA(_VA,_dA3[_eA3]);return true;}function _mB(){if(_eA3<0){return false;}_eA3--;return true;}function _zA3(_Vg1,_q5,_r5,_u9){ var _Ca,_I53,_3C3,_Ja,_La,_Na,_m4;if(!_Vg1.texture._N8){if(_Vg1.w==0||_Vg1.h==0)return;_M8(_Vg1);}_Ca=_e8._Da(_9a._Ea,_Vg1.texture._N8,_e8._Fa,6);var _Ga=_Ca._Ha()>>2;var index=_Ga*_Ca._Ia;_Ca._Ia+=6;var _Pa=index;var _hb=_Pa+_Ga;var __4=_hb+_Ga;var _ib=__4+_Ga;var _jb=_ib+_Ga;var _kb=_jb+_Ga;_Ja=_Ca._Ka;_La=_Ca._Ma;_Na=_Ca._Oa;_q5=_q5+_Vg1.XOffset;_r5=_r5+_Vg1.YOffset;_Ja[_Pa+0]=_Ja[_jb+0]=_Ja[_kb+0]=_q5;_Ja[_Pa+1]=_Ja[_hb+1]=_Ja[_kb+1]=_r5;_Ja[_hb+0]=_Ja[__4+0]=_Ja[_ib+0]=_q5+_Vg1.CropWidth;_Ja[__4+1]=_Ja[_ib+1]=_Ja[_jb+1]=_r5+_Vg1.CropHeight; _Ja[_Pa+2]=_Ja[_hb+2]=_Ja[__4+2]=_Ja[_ib+2]=_Ja[_jb+2]=_Ja[_kb+2]=_Ta;_Na[_Pa+0]=_Na[_jb+0]=_Na[_kb+0]=_Vg1.x/_Vg1.texture.width;_Na[_Pa+1]=_Na[_hb+1]=_Na[_kb+1]=_Vg1.y/_Vg1.texture.height;_Na[_hb+0]=_Na[__4+0]=_Na[_ib+0]=(_Vg1.x+_Vg1.w)/_Vg1.texture.width;_Na[__4+1]=_Na[_ib+1]=_Na[_jb+1]=(_Vg1.y+_Vg1.h)/_Vg1.texture.height;_m4=((_u9*255.0)<<24)|0xffffff;var _oo=_m4,_po=_m4,_qo=_m4,_ro=_m4;if(_543){_oo&=0xfffefffe;_po&=0xfffefffe;_qo&=0xfffefffe;_ro&=0xfffefffe;_po|=0x00010000;_qo|=0x00000001;_ro|=0x00010001; }_La[_Pa]=_La[_kb]=_oo;_La[_hb]=_po;_La[__4]=_La[_ib]=_qo;_La[_jb]=_ro;}function _2B3(_Vg1,_k73,_l73,_4C3,_5C3,_q5,_r5,_kj,_lj,_6q,_no,_qL,_rL){var _Ca,_I53,_3C3,_Ja,_La,_Na,_m4;if(!_Vg1.texture._N8){if(_Vg1.w==0||_Vg1.h==0)return;_M8(_Vg1);}if(_6q==undefined){_6q=_no=_qL=_rL=0xffffffff;}if(_no==undefined){_no=_qL=_rL=_6q;}_Ca=_e8._Da(_9a._Ea,_Vg1.texture._N8,_e8._Fa,6);var _Ga=_Ca._Ha()>>2;var index=_Ga*_Ca._Ia;_Ca._Ia+=6;var _Pa=index;var _hb=_Pa+_Ga;var __4=_hb+_Ga;var _ib=__4+_Ga;var _jb=_ib+_Ga;var _kb=_jb+_Ga; _Ja=_Ca._Ka;_La=_Ca._Ma;_Na=_Ca._Oa;_Ja[_Pa+0]=_Ja[_jb+0]=_Ja[_kb+0]=_q5;_Ja[_Pa+1]=_Ja[_hb+1]=_Ja[_kb+1]=_r5;_Ja[_hb+0]=_Ja[__4+0]=_Ja[_ib+0]=_q5+_kj;_Ja[__4+1]=_Ja[_ib+1]=_Ja[_jb+1]=_r5+_lj;_Ja[_Pa+2]=_Ja[_hb+2]=_Ja[__4+2]=_Ja[_ib+2]=_Ja[_jb+2]=_Ja[_kb+2]=_Ta;_Na[_Pa+0]=_Na[_jb+0]=_Na[_kb+0]=_k73/_Vg1.texture.width;_Na[_Pa+1]=_Na[_hb+1]=_Na[_kb+1]=_l73/_Vg1.texture.height;_Na[_hb+0]=_Na[__4+0]=_Na[_ib+0]=(_k73+_4C3)/_Vg1.texture.width;_Na[__4+1]=_Na[_ib+1]=_Na[_jb+1]=(_l73+_5C3)/_Vg1.texture.height; if(_543){_6q&=0xfffefffe;_no&=0xfffefffe;_qL&=0xfffefffe;_rL&=0xfffefffe;_no|=0x00010000;_qL|=0x00000001;_rL|=0x00010001;}_La[_Pa]=_La[_kb]=_6q;_La[_hb]=_no;_La[__4]=_La[_ib]=_qL;_La[_jb]=_rL;}function _AA3(_Vg1,_q5,_r5,_A73,_B73,vtiled,htiled,_3d,_u9){var _Ca,_I53,_3C3,_Ja,_La,_Na,w,h;if(!_Vg1.texture._N8){if(_Vg1.w==0||_Vg1.h==0)return;_M8(_Vg1);}var _6C3=abs(_A73);var _7C3=abs(_B73);var ow=_Vg1.ow*_6C3;var oh=_Vg1.oh*_7C3;var _hv3=_NM.left;var _iv3=_NM.top;var _8C3=(_NM.right-_NM.left);var _9C3=(_NM.bottom-_NM.top); w=ow;h=oh;if(htiled){w=(((_8C3+(ow-1))/ow)+2)*ow;_q5=_hv3+_nM2(_q5-_hv3,ow)-ow;}if(vtiled){h=(((_9C3+(oh-1))/oh)+2)*oh;_r5=_iv3+_nM2(_r5-_iv3,oh)-oh;}if((ow<=0)||(oh<=0))return;var colour=_Qc(_3d)|(~~((_u9*255.0)<<24));var _oo=colour,_po=colour,_qo=colour,_ro=colour;if(_543){_oo&=0xfffefffe;_po&=0xfffefffe;_qo&=0xfffefffe;_ro&=0xfffefffe;_po|=0x00010000;_qo|=0x00000001;_ro|=0x00010001;}var _aC3=1.0/_Vg1.texture.width;var _bC3=1.0/_Vg1.texture.height;var _X4=(_Vg1.x*_aC3);var _Z4=(_Vg1.x+_Vg1.w)*_aC3;var _Y4=(_Vg1.y*_bC3); var __4=(_Vg1.y+_Vg1.h)*_bC3;var _cC3=_A73*_Vg1.CropWidth;var _dC3=_B73*_Vg1.CropHeight;var _D_=(w/ow);var _E_=(h/oh);var _P6=_r5+(_Vg1.YOffset*_7C3);for(var _iu=0;_iu<_E_;_iu++,_P6+=(_Vg1.oh*_7C3)){var _N6=_q5+(_Vg1.XOffset*_6C3);var _WL=_P6+_dC3;for(var _hu=0;_hu<_D_;_hu++,_N6+=(_Vg1.ow*_6C3)){_Ca=_e8._Da(_9a._Ea,_Vg1.texture._N8,_e8._Fa,6);var _Ga=_Ca._Ha()>>2;var index=_Ga*_Ca._Ia;_Ca._Ia+=6;_Ja=_Ca._Ka;_La=_Ca._Ma;_Na=_Ca._Oa;var _UL=_N6+_cC3;_La[index]=_ro;_Ja[index+0]=_N6;_Ja[index+1]=_P6;_Ja[index+2]=_Ta; _Na[index+0]=_X4;_Na[index+1]=_Y4;index+=_Ga;_La[index]=_oo;_Ja[index+0]=_UL;_Ja[index+1]=_P6;_Ja[index+2]=_Ta;_Na[index+0]=_Z4;_Na[index+1]=_Y4;index+=_Ga;_La[index]=_po;_Ja[index+0]=_UL;_Ja[index+1]=_WL;_Ja[index+2]=_Ta;_Na[index+0]=_Z4;_Na[index+1]=__4;index+=_Ga;_La[index]=_po;_Ja[index+0]=_UL;_Ja[index+1]=_WL;_Ja[index+2]=_Ta;_Na[index+0]=_Z4;_Na[index+1]=__4;index+=_Ga;_La[index]=_qo;_Ja[index+0]=_N6;_Ja[index+1]=_WL;_Ja[index+2]=_Ta;_Na[index+0]=_X4;_Na[index+1]=__4;index+=_Ga;_La[index]=_oo; _Ja[index+0]=_N6;_Ja[index+1]=_P6;_Ja[index+2]=_Ta;_Na[index+0]=_X4;_Na[index+1]=_Y4;}}}function _DA3(_eC3,_823,_k9,_pm3,_qm3,x,y,_tR,_uR,angle,color,alpha,_fC3){var _gC3=_Lz;var _hC3=_Az;_k9=~~_k9%(_823._Xv2);if(_k9<0){_k9=_k9+(_823._Xv2);}var _iC3=(color|((alpha*255)&0xff)<<24);var _jC3=[];_jC3[0]=_iC3&0xff;_jC3[1]=(_iC3>>8)&0xff;_jC3[2]=(_iC3>>16)&0xff;_jC3[3]=(_iC3>>24)&0xff;var _kC3=new _zz();_kC3._WA(x,y,0.0);var _Hl3=new _zz();_Hl3.__A(angle);var _lC3=new _zz();_lC3._WA(-_pm3/_Uv2,-_qm3/_Uv2,0.0);var _Gl3=new _zz(); _Gl3._XA(_Uv2*_tR,_Uv2*_uR,1.0);var _mC3=new _zz();_mC3.Multiply(_lC3,_Gl3);var _nC3=new _zz();_nC3.Multiply(_mC3,_Hl3);var _oC3=new _zz();_oC3.Multiply(_nC3,_kC3);var translate=new _zz();translate._WA(0.5,0.5,0.0);var scale=new _zz();scale._XA(1.0/32768.0,1.0/32768.0,1.0);var _pC3=new _zz();_pC3.Multiply(scale,translate);var _3w2=_823._2w2[_k9];var _qC3=[],_rC3=0,_sC3=0,_tC3=true;for(var i=0;i<_3w2._4w2;i++){var _VF=_3w2._5w2[i];for(var __5=0;__5<_rC3;){var _uC3=_qC3[__5];if(_uC3._6w2<_VF.depth){_e8._SZ1(_9a._y12); _e8._UZ1(_9a._q12);_e8._Mz(false,false,false,false);_e8._Dz(false);_sC3+=_w63(_eC3,_uC3,_oC3,_pC3,_iC3,_jC3,false,_fC3);_e8._XZ1(_rC3-1);_e8._SZ1(_9a._t12);_e8._UZ1(_9a._j12);_e8._Mz(_gC3._iv,_gC3._jv,_gC3._kv,_gC3.alpha);_e8._Dz(_hC3);_tC3=true;_rC3--;for(var _ml=__5;_ml<_rC3;_ml++){_qC3[_ml]=_qC3[_ml+1];}}else {__5++;}}if(_VF._6w2>0){_qC3[_rC3++]=_VF;_e8._QZ1(true);_e8._SZ1(_9a._y12);_e8._UZ1(_9a._p12);_e8._Mz(false,false,false,false);_e8._Dz(false);_tC3=false;}if(_rC3==0){_e8._QZ1(false);_tC3=true; }_sC3+=_w63(_eC3,_VF,_oC3,_pC3,_iC3,_jC3,_tC3?_JM:false,_fC3);if(_VF._6w2>0){_e8._XZ1(_rC3);_e8._SZ1(_9a._t12);_e8._UZ1(_9a._j12);_e8._Mz(_gC3._iv,_gC3._jv,_gC3._kv,_gC3.alpha);_e8._Dz(_hC3);_tC3=true;}}if(_rC3>0){_e8._SZ1(_9a._y12);_e8._UZ1(_9a._q12);_e8._Mz(false,false,false,false);_e8._Dz(false);for(var __5=0;__5<_rC3;__5++){var _uC3=_qC3[__5];_sC3+=_w63(_eC3,_uC3,_oC3,_pC3,_iC3,_jC3,false,_fC3);}}_e8._QZ1(false);_e8._Mz(_gC3._iv,_gC3._jv,_gC3._kv,_gC3.alpha);_e8._Dz(_hC3);}function _EA3(_sM,_vC3, _wC3,_xC3,_yC3,_zC3,_AC3,_fC3){var _BC3=[];_BC3[0]=_zC3[0],_BC3[1]=_zC3[1],_BC3[2]=_zC3[2],_BC3[3]=0;var _CC3=new _zz();_CC3.Multiply(_vC3._av2,_wC3);var _DC3=1.0;if(_AC3){_DC3=_EC3(_vC3,_CC3)*_LM;}var _7w2=[],_8w2=[],_FC3=[];for(var i=0;i<4;i++){_7w2[i]=_vC3._9w2[i];_8w2[i]=_vC3._aw2[i];_FC3[i]=_vC3._bw2[i];}var _GC3=0;if(_vC3._EQ!==0){var _Pl=_sM[_vC3.index];if(_Pl.type===_Ju2){var _Bu3=_Pl;for(var __5=0;__5<_Bu3._Wu2.length;__5++){var _Fe1=_Bu3._Wu2[__5];for(var _ml=0;_ml<_Fe1._Zu2;_ml++){var _yv2=_Fe1._2v2[_ml]; if((_yv2._Av2>=0)&&(_yv2._Dv2>0)){var _HC3=_Fe1._0v2[_yv2._Av2];if((_HC3!==null)&&(_HC3!==undefined)){var _7v2=_HC3.type;if(_7v2===_Mu2){_GC3+=_IC3(_vC3,_HC3,_yv2,_CC3,_zC3,_BC3,_7w2,_8w2,_FC3,_AC3);}else if((_7v2==_Nu2)||(_7v2==_Ou2)){_GC3+=_JC3(_sM,_vC3,_7v2,_HC3,_yv2,_xC3,_CC3,_zC3,_BC3,_yC3,_7w2,_8w2,_FC3,_AC3,_fC3);}}}if((_yv2._Bv2>=0)&&(_yv2._Fv2>0)){var _m4=_Fe1._1v2[_yv2._Bv2]._m4;var _wv2=[];_wv2[0]=((_m4&0xff)*_zC3[0])>>8;_wv2[1]=(((_m4>>8)&0xff)*_zC3[1])>>8;_wv2[2]=(((_m4>>16)&0xff)*_zC3[2])>>8; _wv2[3]=(((_m4>>24)&0xff)*_zC3[3])>>8;for(var _J6=0;_J6<4;_J6++){_wv2[_J6]=((_wv2[_J6]*_7w2[_J6])>>8)+_8w2[_J6];_wv2[_J6]=Math.max(0,Math.min(_wv2[_J6],255));}var _KC3=_wv2[0]|(_wv2[1]<<8)|(_wv2[2]<<16)|(_wv2[3]<<24);var _LC3=[];_LC3[0]=((_m4&0xff)*_BC3[0])>>8;_LC3[1]=(((_m4>>8)&0xff)*_BC3[1])>>8;_LC3[2]=(((_m4>>16)&0xff)*_BC3[2])>>8;_LC3[3]=(((_m4>>24)&0xff)*_BC3[3])>>8;for(var _J6=0;_J6<4;_J6++){_LC3[_J6]=((_LC3[_J6]*_7w2[_J6])>>8)+_FC3[_J6];_LC3[_J6]=_H6(0,_I6(_LC3[_J6],255));}var _MC3=_LC3[0]|(_LC3[1]<<8)|(_LC3[2]<<16)|(_LC3[3]<<24); if(_AC3&&(_yv2._Iv2>0)){var _F9=_yv2._Iv2*6;var _Ca=_e8._Da(_9a._Ea,null,_e8._Fa,_F9);var _Ga=_Ca._Ha()>>2;var _Dn3=_Ga*_Ca._Ia;_Ca._Ia+=_F9;var _Ja=_Ca._Ka;var _La=_Ca._Ma;var _Na=_Ca._Oa;_GC3+=_yv2._Iv2*2;for(var _J6=0;_J6<_yv2._Iv2;_J6++){var _0B1=_yv2._Rv2[(_J6*2)+0],_1B1=_yv2._Rv2[(_J6*2)+1];var _NC3=_yv2._Nv2[(_0B1*2)+0],_OC3=_yv2._Nv2[(_0B1*2)+1];var _PC3=_yv2._Sv2[(_0B1*2)+0],_QC3=_yv2._Sv2[(_0B1*2)+1];var _RC3=_yv2._Nv2[(_1B1*2)+0],_SC3=_yv2._Nv2[(_1B1*2)+1];var _TC3=_yv2._Sv2[(_1B1*2)+0],_UC3=_yv2._Sv2[(_1B1*2)+1]; var _w6=(_NC3*_CC3._v6[_5B])+(_OC3*_CC3._v6[_6B])+_CC3._v6[_8B],_x6=(_NC3*_CC3._v6[_9B])+(_OC3*_CC3._v6[_0A])+_CC3._v6[_bB],_y6=(_RC3*_CC3._v6[_5B])+(_SC3*_CC3._v6[_6B])+_CC3._v6[_8B],_z6=(_RC3*_CC3._v6[_9B])+(_SC3*_CC3._v6[_0A])+_CC3._v6[_bB];_PC3*=_DC3;_QC3*=_DC3;_TC3*=_DC3;_UC3*=_DC3;var _fb=(_PC3*_CC3._v6[_5B])+(_QC3*_CC3._v6[_6B])+_w6,_gb=(_PC3*_CC3._v6[_9B])+(_QC3*_CC3._v6[_0A])+_x6,_8s2=(_TC3*_CC3._v6[_5B])+(_UC3*_CC3._v6[_6B])+_y6,_9s2=(_TC3*_CC3._v6[_9B])+(_UC3*_CC3._v6[_0A])+_z6;_Ja[_Dn3+0]=_w6; _Ja[_Dn3+1]=_x6;_Ja[_Dn3+2]=_Ta;_La[_Dn3]=_KC3;_Dn3+=_Ga;_Ja[_Dn3+0]=_y6;_Ja[_Dn3+1]=_z6;_Ja[_Dn3+2]=_Ta;_La[_Dn3]=_KC3;_Dn3+=_Ga;_Ja[_Dn3+0]=_fb;_Ja[_Dn3+1]=_gb;_Ja[_Dn3+2]=_Ta;_La[_Dn3]=_MC3;_Dn3+=_Ga;_Ja[_Dn3+0]=_fb;_Ja[_Dn3+1]=_gb;_Ja[_Dn3+2]=_Ta;_La[_Dn3]=_MC3;_Dn3+=_Ga;_Ja[_Dn3+0]=_y6;_Ja[_Dn3+1]=_z6;_Ja[_Dn3+2]=_Ta;_La[_Dn3]=_KC3;_Dn3+=_Ga;_Ja[_Dn3+0]=_8s2;_Ja[_Dn3+1]=_9s2;_Ja[_Dn3+2]=_Ta;_La[_Dn3]=_MC3;_Dn3+=_Ga;}}var _F9=_yv2._Fv2*3;var _Ca=_e8._Da(_9a._Ea,null,_e8._Fa,_F9);var _Ga=_Ca._Ha()>>2; var _Dn3=_Ga*_Ca._Ia;_Ca._Ia+=_F9;_Ja=_Ca._Ka;_La=_Ca._Ma;_Na=_Ca._Oa;_GC3+=_yv2._Fv2;var _VC3=0;for(var _J6=_yv2._Fv2*3;_J6>0;--_J6){var index=_yv2._Ov2[_VC3++];var _WC3=_yv2._Nv2[index*2];var _XC3=_yv2._Nv2[(index*2)+1];var x=(_WC3*_CC3._v6[_5B])+(_XC3*_CC3._v6[_6B])+_CC3._v6[_8B];var y=(_WC3*_CC3._v6[_9B])+(_XC3*_CC3._v6[_0A])+_CC3._v6[_bB];_Ja[_Dn3+0]=x;_Ja[_Dn3+1]=y;_Ja[_Dn3+2]=_Ta;_La[_Dn3]=_KC3;_Dn3+=_Ga;}}}}}}return _GC3;}function _JC3(_sM,_vC3,_YC3,_ZC3,__C3,_xC3,_0D3,_zC3,_1D3,_yC3,_2D3,_3D3,_4D3, _AC3,_fC3){var _Ja,_La,_Na,_B4=null,_DC3=1.0,_5D3=new _zz();if(_AC3){_DC3=_EC3(_vC3,_0D3)*_LM;}if(_YC3===_Nu2){var _6D3=_ZC3;if(_6D3._lu2>-1){_B4=_fC3[_6D3._lu2];var _7D3=new _zz();var _8D3=new _zz();var _9D3=new _zz();var _aD3=new _zz();_8D3._WA(_B4.x/_B4.texture.width,_B4.y/_B4.texture.height,0);_7D3._XA(_B4.w/_B4.texture.width,_B4.h/_B4.texture.height,1.0);_9D3.Multiply(_7D3,_8D3);_aD3.Multiply(_xC3,_9D3);_5D3.Multiply(_6D3._av2,_aD3);}else {_B4=_6D3._Ic;_5D3.Multiply(_6D3._av2,_xC3);}}else if(_YC3===_Ou2){ var _6D3=_ZC3;if(_6D3._fv2!==-1){var _bD3=_sM[_6D3._fv2];if(_bD3._lu2>-1){_B4=_fC3[_bD3._lu2];var _v33=_B4.w/_B4.ow;var _w33=_B4.h/_B4.oh;var _8D3=new _zz();var _7D3=new _zz();var _9D3=new _zz();_8D3._WA(_B4.x/_v33,_B4.y/_w33,0);_7D3._XA((1.0/_B4.texture.width)*_v33,(1.0/_B4.texture.height)*_w33,1.0);_9D3.Multiply(_8D3,_7D3);_5D3.Multiply(_6D3._av2,_9D3);if((_6D3._dv2===_gu2)||(_6D3._dv2===_iu2)){_e8._NZ1(0,true);}else {_e8._NZ1(0,false);}}else {var _E4=_bD3._E4;_B4={texture:_E4};if(_E4!==null){var _7D3=new _zz(); _7D3._XA(1.0/_E4.width,1.0/_E4.height,1.0);_5D3.Multiply(_6D3._av2,_7D3);if((_6D3._dv2===_gu2)||(_6D3._dv2===_iu2)){_e8._NZ1(0,true);}else {_e8._NZ1(0,false);}}}}}var _GC3=0;if(_B4!==null){if(!_B4.texture._N8){if(_B4.w==0||_B4.h==0)return;_M8(_B4);}_GC3+=__C3._Dv2;if(_AC3&&(__C3._Gv2>0)){_GC3+=__C3._Gv2*2;var _wv2=[];for(var _J6=0;_J6<4;_J6++){_wv2[_J6]=((_zC3[_J6]*_2D3[_J6])>>8)+_3D3[_J6];_wv2[_J6]=Math.max(0,Math.min(_wv2[_J6],255));}var _KC3=_wv2[0]|(_wv2[1]<<8)|(_wv2[2]<<16)|(_wv2[3]<<24);var _LC3=[]; for(var _J6=0;_J6<4;_J6++){_LC3[_J6]=((_1D3[_J6]*_2D3[_J6])>>8)+_4D3[_J6];_LC3[_J6]=Math.max(0,Math.min(_LC3[_J6],255));}var _MC3=_LC3[0]|(_LC3[1]<<8)|(_LC3[2]<<16)|(_LC3[3]<<24);var _F9=__C3._Gv2*6;var _Ca=_e8._Da(_9a._Ea,_B4.texture._N8,_e8._Fa,_F9);var _Ga=_Ca._Ha()>>2;var _Dn3=_Ga*_Ca._Ia;_Ca._Ia+=_F9;var _Ja=_Ca._Ka;var _La=_Ca._Ma;var _Na=_Ca._Oa;var _cD3=0;for(_J6=__C3._Gv2;_J6>0;_J6--){var _0B1=__C3._Pv2[_cD3++],_1B1=__C3._Pv2[_cD3++];var _dD3=_0B1*2,_eD3=_0B1*2;var _NC3=__C3._Kv2[_dD3];_dD3++;var _OC3=__C3._Kv2[_dD3]; var _PC3=__C3._Qv2[_eD3];_eD3++;var _QC3=__C3._Qv2[_eD3];_dD3=_1B1*2;_eD3=_1B1*2;var _RC3=__C3._Kv2[_dD3];_dD3++;var _SC3=__C3._Kv2[_dD3];var _TC3=__C3._Qv2[_eD3];_eD3++;var _UC3=__C3._Qv2[_eD3];var _w6=(_NC3*_0D3._v6[_5B])+(_OC3*_0D3._v6[_6B])+_0D3._v6[_8B],_x6=(_NC3*_0D3._v6[_9B])+(_OC3*_0D3._v6[_0A])+_0D3._v6[_bB],_y6=(_RC3*_0D3._v6[_5B])+(_SC3*_0D3._v6[_6B])+_0D3._v6[_8B],_z6=(_RC3*_0D3._v6[_9B])+(_SC3*_0D3._v6[_0A])+_0D3._v6[_bB];_PC3*=_DC3;_QC3*=_DC3;_TC3*=_DC3;_UC3*=_DC3;var _fb=(_PC3*_0D3._v6[_5B])+(_QC3*_0D3._v6[_6B])+_w6, _gb=(_PC3*_0D3._v6[_9B])+(_QC3*_0D3._v6[_0A])+_x6,_8s2=(_TC3*_0D3._v6[_5B])+(_UC3*_0D3._v6[_6B])+_y6,_9s2=(_TC3*_0D3._v6[_9B])+(_UC3*_0D3._v6[_0A])+_z6;_PC3+=_NC3;_QC3+=_OC3;_TC3+=_RC3;_UC3+=_SC3;_Ja[_Dn3+0]=_w6;_Ja[_Dn3+1]=_x6;_Ja[_Dn3+2]=_Ta;_Na[_Dn3+0]=(_NC3*_5D3._v6[_5B])+(_OC3*_5D3._v6[_6B])+_5D3._v6[_8B];_Na[_Dn3+1]=(_NC3*_5D3._v6[_9B])+(_OC3*_5D3._v6[_0A])+_5D3._v6[_bB];_La[_Dn3]=_KC3;_Dn3+=_Ga;_Ja[_Dn3+0]=_y6;_Ja[_Dn3+1]=_z6;_Ja[_Dn3+2]=_Ta;_Na[_Dn3+0]=(_RC3*_5D3._v6[_5B])+(_SC3*_5D3._v6[_6B])+_5D3._v6[_8B]; _Na[_Dn3+1]=(_RC3*_5D3._v6[_9B])+(_SC3*_5D3._v6[_0A])+_5D3._v6[_bB];_La[_Dn3]=_KC3;_Dn3+=_Ga;_Ja[_Dn3+0]=_fb;_Ja[_Dn3+1]=_gb;_Ja[_Dn3+2]=_Ta;_Na[_Dn3+0]=(_PC3*_5D3._v6[_5B])+(_QC3*_5D3._v6[_6B])+_5D3._v6[_8B];_Na[_Dn3+1]=(_PC3*_5D3._v6[_9B])+(_QC3*_5D3._v6[_0A])+_5D3._v6[_bB];_La[_Dn3]=_MC3;_Dn3+=_Ga;_Ja[_Dn3+0]=_fb;_Ja[_Dn3+1]=_gb;_Ja[_Dn3+2]=_Ta;_Na[_Dn3+0]=(_PC3*_5D3._v6[_5B])+(_QC3*_5D3._v6[_6B])+_5D3._v6[_8B];_Na[_Dn3+1]=(_PC3*_5D3._v6[_9B])+(_QC3*_5D3._v6[_0A])+_5D3._v6[_bB];_La[_Dn3]=_MC3; _Dn3+=_Ga;_Ja[_Dn3+0]=_y6;_Ja[_Dn3+1]=_z6;_Ja[_Dn3+2]=_Ta;_Na[_Dn3+0]=(_RC3*_5D3._v6[_5B])+(_SC3*_5D3._v6[_6B])+_5D3._v6[_8B];_Na[_Dn3+1]=(_RC3*_5D3._v6[_9B])+(_SC3*_5D3._v6[_0A])+_5D3._v6[_bB];_La[_Dn3]=_KC3;_Dn3+=_Ga;_Ja[_Dn3+0]=_8s2;_Ja[_Dn3+1]=_9s2;_Ja[_Dn3+2]=_Ta;_Na[_Dn3+0]=(_TC3*_5D3._v6[_5B])+(_UC3*_5D3._v6[_6B])+_5D3._v6[_8B];_Na[_Dn3+1]=(_TC3*_5D3._v6[_9B])+(_UC3*_5D3._v6[_0A])+_5D3._v6[_bB];_La[_Dn3]=_MC3;_Dn3+=_Ga;}}var _F9=__C3._Dv2*3;var _Ca=_e8._Da(_9a._Ea,_B4.texture._N8,_e8._Fa,_F9); var _Ga=_Ca._Ha()>>2;var _Dn3=_Ga*_Ca._Ia;_Ca._Ia+=_F9;_Ja=_Ca._Ka,_La=_Ca._Ma,_Na=_Ca._Oa;var _VC3=0;for(var _J6=__C3._Dv2*3;_J6>0;--_J6){var index=__C3._Mv2[_VC3++];var _WC3=__C3._Kv2[index*2];var _XC3=__C3._Kv2[(index*2)+1];var x=(_WC3*_0D3._v6[_5B])+(_XC3*_0D3._v6[_6B])+_0D3._v6[_8B];var y=(_WC3*_0D3._v6[_9B])+(_XC3*_0D3._v6[_0A])+_0D3._v6[_bB];_Ja[_Dn3+0]=x;_Ja[_Dn3+1]=y;_Ja[_Dn3+2]=_Ta;_La[_Dn3]=_yC3;_Na[_Dn3+0]=(_WC3*_5D3._v6[_5B])+(_XC3*_5D3._v6[_6B])+_5D3._v6[_8B];_Na[_Dn3+1]=(_WC3*_5D3._v6[_9B])+(_XC3*_5D3._v6[_0A])+_5D3._v6[_bB]; _Dn3+=_Ga;}}return _GC3;}function _IC3(_vC3,_ZC3,__C3,_0D3,_zC3,_1D3,_2D3,_3D3,_4D3,_AC3){var _DC3=1.0;if(_AC3){_DC3=_EC3(_vC3,_0D3)*_LM;}var _fD3=false;var _6D3=_ZC3,_m4=_6D3._m4,_GC3=0,_J6=0;var _wv2=[];var _e4=(_m4&0xff),_f4=((_m4>>8)&0xff),_g4=((_m4>>16)&0xff),_h4=((_m4>>24)&0xff);_wv2[0]=(_e4*_zC3[0])>>8;_wv2[1]=(_f4*_zC3[1])>>8;_wv2[2]=(_g4*_zC3[2])>>8;_wv2[3]=(_h4*_zC3[3])>>8;for(_J6=0;_J6<4;_J6++){_wv2[_J6]=((_wv2[_J6]*_2D3[_J6])>>8)+_3D3[_J6];_wv2[_J6]=_H6(0,_I6(_wv2[_J6],255));}var _KC3=_wv2[0]|(_wv2[1]<<8)|(_wv2[2]<<16)|(_wv2[3]<<24); var _LC3=[];_LC3[0]=((_m4&0xff)*_1D3[0])>>8;_LC3[1]=(((_m4>>8)&0xff)*_1D3[1])>>8;_LC3[2]=(((_m4>>16)&0xff)*_1D3[2])>>8;_LC3[3]=(((_m4>>24)&0xff)*_1D3[3])>>8;for(_J6=0;_J6<4;_J6++){_LC3[_J6]=((_LC3[_J6]*_2D3[_J6])>>8)+_4D3[_J6];_LC3[_J6]=_H6(0,_I6(_LC3[_J6],255));}var _MC3=_LC3[0]|(_LC3[1]<<8)|(_LC3[2]<<16)|(_LC3[3]<<24);if(_fD3){}else if(_AC3&&(__C3._Gv2>0)){_GC3+=__C3._Gv2*2;var _F9=__C3._Gv2*6;var _Ca=_e8._Da(_9a._Ea,null,_e8._Fa,_F9);var _Ga=_Ca._Ha()>>2;var _Dn3=_Ga*_Ca._Ia;_Ca._Ia+=_F9;var _Ja=_Ca._Ka; var _La=_Ca._Ma;var _cD3=0;for(_J6=__C3._Gv2;_J6>0;_J6--){var _0B1=__C3._Pv2[_cD3++],_1B1=__C3._Pv2[_cD3++];var _dD3=_0B1*2,_eD3=_0B1*2;var _NC3=__C3._Kv2[_dD3];_dD3++;var _OC3=__C3._Kv2[_dD3];var _PC3=__C3._Qv2[_eD3];_eD3++;var _QC3=__C3._Qv2[_eD3];_dD3=_1B1*2;_eD3=_1B1*2;var _RC3=__C3._Kv2[_dD3];_dD3++;var _SC3=__C3._Kv2[_dD3];var _TC3=__C3._Qv2[_eD3];_eD3++;var _UC3=__C3._Qv2[_eD3];var _w6=(_NC3*_0D3._v6[_5B])+(_OC3*_0D3._v6[_6B])+_0D3._v6[_8B],_x6=(_NC3*_0D3._v6[_9B])+(_OC3*_0D3._v6[_0A])+_0D3._v6[_bB],_y6=(_RC3*_0D3._v6[_5B])+(_SC3*_0D3._v6[_6B])+_0D3._v6[_8B], _z6=(_RC3*_0D3._v6[_9B])+(_SC3*_0D3._v6[_0A])+_0D3._v6[_bB];_PC3*=_DC3;_QC3*=_DC3;_TC3*=_DC3;_UC3*=_DC3;var _fb=(_PC3*_0D3._v6[_5B])+(_QC3*_0D3._v6[_6B])+_w6,_gb=(_PC3*_0D3._v6[_9B])+(_QC3*_0D3._v6[_0A])+_x6,_8s2=(_TC3*_0D3._v6[_5B])+(_UC3*_0D3._v6[_6B])+_y6,_9s2=(_TC3*_0D3._v6[_9B])+(_UC3*_0D3._v6[_0A])+_z6;_Ja[_Dn3+0]=_w6;_Ja[_Dn3+1]=_x6;_Ja[_Dn3+2]=_Ta;_La[_Dn3]=_KC3;_Dn3+=_Ga;_Ja[_Dn3+0]=_y6;_Ja[_Dn3+1]=_z6;_Ja[_Dn3+2]=_Ta;_La[_Dn3]=_KC3;_Dn3+=_Ga;_Ja[_Dn3+0]=_fb;_Ja[_Dn3+1]=_gb;_Ja[_Dn3+2]=_Ta; _La[_Dn3]=_MC3;_Dn3+=_Ga;_Ja[_Dn3+0]=_fb;_Ja[_Dn3+1]=_gb;_Ja[_Dn3+2]=_Ta;_La[_Dn3]=_MC3;_Dn3+=_Ga;_Ja[_Dn3+0]=_y6;_Ja[_Dn3+1]=_z6;_Ja[_Dn3+2]=_Ta;_La[_Dn3]=_KC3;_Dn3+=_Ga;_Ja[_Dn3+0]=_8s2;_Ja[_Dn3+1]=_9s2;_Ja[_Dn3+2]=_Ta;_La[_Dn3]=_MC3;_Dn3+=_Ga;}}var _F9=__C3._Dv2*3;var _Ca=_e8._Da(_9a._Ea,null,_e8._Fa,_F9);var _Ga=_Ca._Ha()>>2;var _Dn3=_Ga*_Ca._Ia;_Ca._Ia+=_F9;_Ja=_Ca._Ka;_La=_Ca._Ma;_GC3+=__C3._Dv2;var _VC3=0;for(var _J6=__C3._Dv2*3;_J6>0;--_J6){var index=__C3._Mv2[_VC3++];var _WC3=__C3._Kv2[index*2]; var _XC3=__C3._Kv2[(index*2)+1];var x=(_WC3*_0D3._v6[_5B])+(_XC3*_0D3._v6[_6B])+_0D3._v6[_8B];var y=(_WC3*_0D3._v6[_9B])+(_XC3*_0D3._v6[_0A])+_0D3._v6[_bB];_Ja[_Dn3+0]=x;_Ja[_Dn3+1]=y;_Ja[_Dn3+2]=_Ta;_La[_Dn3]=_KC3;_Dn3+=_Ga;}return _GC3;}function _EC3(_vC3,_0D3){if(_JM){if(_vC3._DC3!==undefined){return _vC3._DC3;}var _m43=_2B(_VA);var _yx2=_2B(_pB);var _zx2=_2B(_sB);var _gD3=new _zz();_gD3.Multiply(_m43,_yx2);var _hD3=new _zz();_hD3.Multiply(_gD3,_zx2);var _iD3=new _zz();_iD3.Multiply(_0D3,_hD3);var _jD3=_e8._MX1, _kD3=_e8._NX1;var _lD3=[];_lD3[0]=0.0;_lD3[1]=0.0;_lD3[2]=1.0;_lD3[3]=0.0;_lD3[4]=0.0;_lD3[5]=1.0;var _mD3=[];for(var i=0;i<3;i++){var _Ww2=(_lD3[i*2]*_iD3._v6[_MB])+(_lD3[(i*2)+1]*_iD3._v6[_NB])+(_Ta*_iD3._v6[_OB])+_iD3._v6[_PB];var index=(i*2)+0;_mD3[index]=(_lD3[i*2]*_iD3._v6[_5B])+(_lD3[(i*2)+1]*_iD3._v6[_6B])+(_Ta*_iD3._v6[_7B])+_iD3._v6[_8B];_mD3[index]=_mD3[index]/_Ww2;_mD3[index]=_mD3[index]*_jD3;index++;_mD3[index]=(_lD3[i*2]*_iD3._v6[_9B])+(_lD3[(i*2)+1]*_iD3._v6[_0A])+(_Ta*_iD3._v6[_aB])+_iD3._v6[_bB]; _mD3[index]=_mD3[index]/_Ww2;_mD3[index]=_mD3[index]*_kD3;}var _nD3=[];_nD3[0]=_mD3[2]-_mD3[0];_nD3[1]=_mD3[3]-_mD3[1];_nD3[2]=_mD3[4]-_mD3[0];_nD3[3]=_mD3[5]-_mD3[1];var _oD3=0.0,_DC3=1.0,index=0;for(var i=0;i<2;i++){var length=_nD3[index]*_nD3[index];index++;length+=_nD3[index]*_nD3[index];index++;if(length>0.0){length=Math.sqrt(length);}_oD3=Math.max(length,_oD3);}_oD3*=0.5;if(_oD3>0.0){_DC3=1.0/_oD3;}_vC3._DC3=_DC3;return _DC3;}return 1.0;}function _BA3(_Vg1,_rg1,_sg1,_q5,_r5,_A73,_B73,_y4,_3d,_no, _qL,_rL,_u9){var _Ca,_I53,_3C3,_Ja,_La,_Na;if(_Vg1===undefined){debug("Attempting to draw texture that is not loaded");return;}if(!_Vg1.texture._N8){if(_Vg1.w==0||_Vg1.h==0)return;_M8(_Vg1);}_Ca=_e8._Da(_9a._Ea,_Vg1.texture._N8,_e8._Fa,6);var _Ga=_Ca._Ha()>>2;var index=_Ga*_Ca._Ia;_Ca._Ia+=6;var _Pa=index;var _hb=_Pa+_Ga;var __4=_hb+_Ga;var _ib=__4+_Ga;var _jb=_ib+_Ga;var _kb=_jb+_Ga;_Ja=_Ca._Ka;_La=_Ca._Ma;_Na=_Ca._Oa;var _w6=-_A73*(_rg1-_Vg1.XOffset);var _x6=-_B73*(_sg1-_Vg1.YOffset);var _y6=_w6+(_A73*_Vg1.CropWidth); var _z6=_x6+(_B73*_Vg1.CropHeight);if(Math.abs(_y4)<0.001){_Ja[_Pa+0]=_Ja[_jb+0]=_Ja[_kb+0]=_q5+_w6;_Ja[_Pa+1]=_Ja[_hb+1]=_Ja[_kb+1]=_r5+_x6;_Ja[_hb+0]=_Ja[__4+0]=_Ja[_ib+0]=_q5+_y6;_Ja[__4+1]=_Ja[_ib+1]=_Ja[_jb+1]=_r5+_z6;_Ja[_Pa+2]=_Ja[_hb+2]=_Ja[__4+2]=_Ja[_ib+2]=_Ja[_jb+2]=_Ja[_kb+2]=_Ta;}else {var _57=Math.sin(_y4);var _67=Math.cos(_y4);var _Qe2=_w6*_67;var _Re2=_y6*_67;var _Se2=_x6*_67;var _Te2=_z6*_67;var _Ue2=_w6*_57;var _Ve2=_y6*_57;var _We2=_x6*_57;var _Xe2=_z6*_57;_Ja[_Pa+0]=_Ja[_kb+0]=_q5+_Qe2+_We2; _Ja[_Pa+1]=_Ja[_kb+1]=_r5-_Ue2+_Se2;_Ja[__4+0]=_Ja[_ib+0]=_q5+_Re2+_Xe2;_Ja[__4+1]=_Ja[_ib+1]=_r5-_Ve2+_Te2;_Ja[_hb+1]=_r5-_Ve2+_Se2;_Ja[_hb+0]=_q5+_Re2+_We2;_Ja[_jb+0]=_q5+_Qe2+_Xe2;_Ja[_jb+1]=_r5-_Ue2+_Te2;_Ja[_Pa+2]=_Ja[_hb+2]=_Ja[__4+2]=_Ja[_ib+2]=_Ja[_jb+2]=_Ja[_kb+2]=_Ta;}_Na[_Pa+0]=_Na[_jb+0]=_Na[_kb+0]=_Vg1.x/_Vg1.texture.width;_Na[_Pa+1]=_Na[_hb+1]=_Na[_kb+1]=_Vg1.y/_Vg1.texture.height;_Na[_hb+0]=_Na[__4+0]=_Na[_ib+0]=(_Vg1.x+_Vg1.w)/_Vg1.texture.width;_Na[__4+1]=_Na[_ib+1]=_Na[_jb+1]=(_Vg1.y+_Vg1.h)/_Vg1.texture.height; var _h4=~~(_u9*255.0);_h4=_h4-((_h4-255)&((255-_h4)>>31));_h4=_h4-(_h4&(_h4>>31));_h4=(_h4<<24);_3d=_h4|(_3d&0xffffff);if(_no==undefined){_no=_3d;_qL=_3d;_rL=_3d;}else {_no=(_no&0xffffff)|_h4;_qL=(_qL&0xffffff)|_h4;_rL=(_rL&0xffffff)|_h4;}if(_543){_3d&=0xfffefffe;_no&=0xfffefffe;_qL&=0xfffefffe;_rL&=0xfffefffe;_no|=0x00010000;_qL|=0x00000001;_rL|=0x00010001;}_La[_Pa]=_La[_kb]=_3d;_La[_hb]=_no;_La[__4]=_La[_ib]=_qL;_La[_jb]=_rL;}function _CA3(_Vg1,_W6,_X6,_o6,_p6,_Ju,_Ku,_Zk1,__k1,_u9){var _m4=~~((_u9*255.0)<<24)|0xffffff; var _po=_m4;var _qo=_m4;var _ro=_m4;var _Ca,_I53,_3C3,_Ja,_La,_Na;if(!_Vg1.texture._N8){if(_Vg1.w==0||_Vg1.h==0)return;_M8(_Vg1);}_Ca=_e8._Da(_9a._Ea,_Vg1.texture._N8,_e8._Fa,6);var _Ga=_Ca._Ha()>>2;var index=_Ga*_Ca._Ia;_Ca._Ia+=6;var _Pa=index,_hb=_Pa+_Ga,__4=_hb+_Ga,_ib=__4+_Ga,_jb=_ib+_Ga,_kb=_jb+_Ga;_Ja=_Ca._Ka;_La=_Ca._Ma;_Na=_Ca._Oa;_Ja[_Pa+0]=_Ja[_kb+0]=_W6;_Ja[_Pa+1]=_Ja[_kb+1]=_X6;_Ja[_hb+0]=_o6;_Ja[_hb+1]=_p6;_Ja[__4+0]=_Ja[_ib+0]=_Ju;_Ja[__4+1]=_Ja[_ib+1]=_Ku;_Ja[_jb+0]=_Zk1;_Ja[_jb+1]=__k1; _Ja[_Pa+2]=_Ja[_hb+2]=_Ja[__4+2]=_Ja[_ib+2]=_Ja[_jb+2]=_Ja[_kb+2]=_Ta;_Na[_Pa+0]=_Na[_jb+0]=_Na[_kb+0]=_Vg1.x/_Vg1.texture.width;_Na[_Pa+1]=_Na[_hb+1]=_Na[_kb+1]=_Vg1.y/_Vg1.texture.height;_Na[_hb+0]=_Na[__4+0]=_Na[_ib+0]=(_Vg1.x+_Vg1.w)/_Vg1.texture.width;_Na[__4+1]=_Na[_ib+1]=_Na[_jb+1]=(_Vg1.y+_Vg1.h)/_Vg1.texture.height;if(_543){_m4&=0xfffefffe;_po&=0xfffefffe;_qo&=0xfffefffe;_ro&=0xfffefffe;_po|=0x00010000;_qo|=0x00000001;_ro|=0x00010001;}_La[_Pa]=_La[_kb]=_m4;_La[_hb]=_po;_La[__4]=_La[_ib]=_qo; _La[_jb]=_ro;}function _pD3(_Vg1,_rg1,_sg1,_m8,_n8,_q5,_r5,_A73,_B73,_y4,_3d,_no,_qL,_rL,_u9){var _Ca,_I53,_3C3,_Ja,_La,_Na;if(!_Vg1.texture._N8){if(_Vg1.w==0||_Vg1.h==0)return;_M8(_Vg1);}_Ca=_e8._Da(_9a._Ea,_Vg1.texture._N8,_e8._Fa,6);var _Ga=_Ca._Ha()>>2;var index=_Ga*_Ca._Ia;_Ca._Ia+=6;var _Pa=index;var _hb=_Pa+_Ga;var __4=_hb+_Ga;var _ib=__4+_Ga;var _jb=_ib+_Ga;var _kb=_jb+_Ga;_Ja=_Ca._Ka;_La=_Ca._Ma;_Na=_Ca._Oa;var _w6=-_A73*(_rg1-_Vg1.XOffset);var _x6=-_B73*(_sg1-_Vg1.YOffset);var _y6=_w6+(_A73*_m8);var _z6=_x6+(_B73*_n8); if(Math.abs(_y4)<0.001){_Ja[_Pa+0]=_Ja[_jb+0]=_Ja[_kb+0]=_q5+_w6;_Ja[_Pa+1]=_Ja[_hb+1]=_Ja[_kb+1]=_r5+_x6;_Ja[_hb+0]=_Ja[__4+0]=_Ja[_ib+0]=_q5+_y6;_Ja[__4+1]=_Ja[_ib+1]=_Ja[_jb+1]=_r5+_z6;_Ja[_Pa+2]=_Ja[_hb+2]=_Ja[__4+2]=_Ja[_ib+2]=_Ja[_jb+2]=_Ja[_kb+2]=_Ta;}else {var _57=Math.sin(_y4);var _67=Math.cos(_y4);var _Qe2=_w6*_67;var _Re2=_y6*_67;var _Se2=_x6*_67;var _Te2=_z6*_67;var _Ue2=_w6*_57;var _Ve2=_y6*_57;var _We2=_x6*_57;var _Xe2=_z6*_57;_Ja[_Pa+0]=_Ja[_kb+0]=_q5+_Qe2+_We2;_Ja[_Pa+1]=_Ja[_kb+1]=_r5-_Ue2+_Se2; _Ja[__4+0]=_Ja[_ib+0]=_q5+_Re2+_Xe2;_Ja[__4+1]=_Ja[_ib+1]=_r5-_Ve2+_Te2;_Ja[_hb+1]=_r5-_Ve2+_Se2;_Ja[_hb+0]=_q5+_Re2+_We2;_Ja[_jb+0]=_q5+_Qe2+_Xe2;_Ja[_jb+1]=_r5-_Ue2+_Te2;_Ja[_Pa+2]=_Ja[_hb+2]=_Ja[__4+2]=_Ja[_ib+2]=_Ja[_jb+2]=_Ja[_kb+2]=_Ta;}_Na[_Pa+0]=_Na[_jb+0]=_Na[_kb+0]=_Vg1.x/_Vg1.texture.width;_Na[_Pa+1]=_Na[_hb+1]=_Na[_kb+1]=_Vg1.y/_Vg1.texture.height;_Na[_hb+0]=_Na[__4+0]=_Na[_ib+0]=(_Vg1.x+_m8)/_Vg1.texture.width;_Na[__4+1]=_Na[_ib+1]=_Na[_jb+1]=(_Vg1.y+_n8)/_Vg1.texture.height;var _h4=(_u9*255.0)<<24; _3d=_h4|(_3d&0xffffff);if(_no==undefined){_no=_3d;_qL=_3d;_rL=_3d;}else {_no=_no|_h4;_qL=_qL|_h4;_rL=_rL|_h4;}if(_543){_3d&=0xfffefffe;_no&=0xfffefffe;_qL&=0xfffefffe;_rL&=0xfffefffe;_no|=0x00010000;_qL|=0x00000001;_rL|=0x00010001;}_La[_Pa]=_La[_kb]=_3d;_La[_hb]=_no;_La[__4]=_La[_ib]=_qL;_La[_jb]=_rL;}function _yA3(_be,_q5,_r5,_kj,_lj,_rX1,_7f1){_e8._c_1(_be,_q5,_r5,_kj,_lj,_rX1,_7f1);}function _FA3(_Vg1,_Is,_Js,_m8,_n8,_q5,_r5,_co,_do,_Ms,_u9){if(!_Vg1)return;if(!_Vg1.texture)return;_Ms&=0xffffff; _Ms|=(_u9*255)<<24;if(_Is<_Vg1.XOffset){var _J73=_Vg1.XOffset-_Is;_q5+=_J73*_co;_m8-=_J73;_Is=0;}else {_Is-=_Vg1.XOffset;}if(_Js<_Vg1.YOffset){var _J73=_Vg1.YOffset-_Js;_r5+=_J73*_do;_n8-=_J73;_Js=0;}else {_Js-=_Vg1.YOffset;}if(_m8>(_Vg1.CropWidth-_Is))_m8=_Vg1.CropWidth-_Is;if(_n8>(_Vg1.CropHeight-_Js))_n8=_Vg1.CropHeight-_Js;if(_m8<=0||_n8<=0)return;_2B3(_Vg1,_Is+_Vg1.x,_Js+_Vg1.y,_m8,_n8,_q5,_r5,_m8*_co,_n8*_do,_Ms);}function _GA3(_W6,_X6,_o6,_p6,_fo){var _Ca,_I53,_3C3,_Ja,_La,_Na;_W6=yyGetReal(_W6); _X6=yyGetReal(_X6);_o6=yyGetReal(_o6);_p6=yyGetReal(_p6);_fo=yyGetBool(_fo);var _Eh=_9a._Ea;var _q8=6;if(_fo){_Eh=_9a._Bc;_q8=8;}_Ca=_e8._Da(_Eh,null,_e8._Fa,_q8);var _Ga=_Ca._Ha()>>2;var index=_Ga*_Ca._Ia;_Ca._Ia+=_q8;var _Pa=index;var _hb=_Pa+_Ga;var __4=_hb+_Ga;var _ib=__4+_Ga;var _jb=_ib+_Ga;var _kb=_jb+_Ga;var _qD3=_kb+_Ga;var _rD3=_qD3+_Ga;_Ja=_Ca._Ka;_La=_Ca._Ma;var _m4=~~((_Nc*255.0)<<24)|(_Oc&0xffffff);if(!_fo){if(_jA3!=0.0){_o6+=_jA3;_p6+=_jA3;}_Ja[_Pa+0]=_Ja[_jb+0]=_Ja[_kb+0]=_W6;_Ja[_Pa+1]=_Ja[_hb+1]=_Ja[_kb+1]=_X6; _Ja[_hb+0]=_Ja[__4+0]=_Ja[_ib+0]=_o6;_Ja[__4+1]=_Ja[_ib+1]=_Ja[_jb+1]=_p6;_Ja[_Pa+2]=_Ja[_hb+2]=_Ja[__4+2]=_Ja[_ib+2]=_Ja[_jb+2]=_Ja[_kb+2]=_Ta;_La[_Pa]=_La[_hb]=_La[__4]=_La[_ib]=_La[_jb]=_La[_kb]=_m4;}else {if(_jA3!=0.0){_W6+=_jA3;_X6+=_jA3;_o6+=_jA3;_p6+=_jA3;}_La[_Pa]=_La[_hb]=_La[__4]=_La[_ib]=_La[_jb]=_La[_kb]=_La[_qD3]=_La[_rD3]=_m4;_Ja[_kb+0]=_Ja[_rD3+0]=_Ja[_qD3+0]=_Ja[_Pa+0]=_W6;_Ja[_rD3+1]=_Ja[__4+1]=_Ja[_hb+1]=_Ja[_Pa+1]=_X6;_Ja[_jb+0]=_Ja[_ib+0]=_Ja[__4+0]=_Ja[_hb+0]=_o6;_Ja[_ib+1]=_Ja[_jb+1]=_Ja[_kb+1]=_Ja[_qD3+1]=_p6; _Ja[_rD3+1]=_X6;_Ja[_Pa+2]=_Ja[_hb+2]=_Ja[__4+2]=_Ja[_ib+2]=_Ja[_jb+2]=_Ja[_kb+2]=_Ja[_qD3+2]=_Ja[_rD3+2]=_Ta;}}function _HA3(_W6,_X6,_o6,_p6,_gL,_hL,_6q,_no,_fo){_W6=yyGetReal(_W6);_X6=yyGetReal(_X6);_o6=yyGetReal(_o6);_p6=yyGetReal(_p6);_gL=yyGetReal(_gL);_hL=yyGetReal(_hL);_6q=yyGetInt32(_6q);_no=yyGetInt32(_no);_fo=yyGetBool(_fo);if(_jA3!=0.0){_W6+=_jA3;_X6+=_jA3;_o6+=_jA3;_p6+=_jA3;}var i,w,h;w=_gL;h=_hL;if(w>Math.abs(_o6-_W6)){w=Math.abs(_o6-_W6);}if(h>Math.abs(_p6-_X6)){h=Math.abs(_p6-_X6); }var _6h=(_Qc(_6q)&0xffffff)|((_Nc*255.0)<<24);var _7h=(_Qc(_no)&0xffffff)|((_Nc*255.0)<<24);var _sD3=_gA3/4;var _Eh=_9a._Ec;var _q8=((_sD3+1)*4)+2;if(_fo){_Eh=_9a._Cc;}var _aM=(_W6+_o6)*0.5;var _bM=(_X6+_p6)*0.5;var _cA=Math.abs(_o6-_W6)*0.5-w*0.5;var _dA=Math.abs(_p6-_X6)*0.5-h*0.5;var _Ca=_e8._Da(_Eh,null,_e8._Fa,_q8);var _Ga=_Ca._Ha()>>2;var index=_Ga*_Ca._Ia;var __h1=index;_Ca._Ia+=_q8;var _Ja=_Ca._Ka;var _La=_Ca._Ma;_Ja[index]=_aM;_Ja[index+1]=_bM;_Ja[index+2]=_Ta;_La[index]=_6h;index+=_Ga;for(i=0;i<=_sD3; i++){_Ja[index]=(_aM+_cA+w*_hA3[i]/2);_Ja[index+1]=(_bM+_dA+h*_iA3[i]/2);_Ja[index+2]=_Ta;_La[index]=_7h;index+=_Ga;}for(i=_sD3;i<=(_sD3*2);i++){_Ja[index]=(_aM-_cA+w*_hA3[i]/2);_Ja[index+1]=(_bM+_dA+h*_iA3[i]/2);_Ja[index+2]=_Ta;_La[index]=_7h;index+=_Ga;}for(i=(_sD3*2);i<=(_sD3*3);i++){_Ja[index]=(_aM-_cA+w*_hA3[i]/2);_Ja[index+1]=(_bM-_dA+h*_iA3[i]/2);_Ja[index+2]=_Ta;_La[index]=_7h;index+=_Ga;}for(i=(_sD3*3);i<=(_sD3*4);i++){_Ja[index]=(_aM+_cA+w*_hA3[i]/2);_Ja[index+1]=(_bM-_dA+h*_iA3[i]/2); _Ja[index+2]=_Ta;_La[index]=_7h;index+=_Ga;}_Ja[index]=_Ja[__h1+_Ga];_Ja[index+1]=_Ja[__h1+_Ga+1];_Ja[index+2]=_Ta;_La[index]=_7h;if(_fo){_Ja[__h1]=_Ja[__h1+_Ga];_Ja[__h1+1]=_Ja[__h1+_Ga+1];_Ja[__h1+2]=_Ta;_La[__h1]=_La[__h1+_Ga];}}function _IA3(_W6,_X6,_o6,_p6,_6q,_no,_qL,_rL,_fo){var _Ca,_I53,_3C3,_Ja,_La,_Na;_W6=yyGetReal(_W6);_X6=yyGetReal(_X6);_o6=yyGetReal(_o6);_p6=yyGetReal(_p6);_6q=yyGetInt32(_6q);_no=yyGetInt32(_no);_qL=yyGetInt32(_qL);_rL=yyGetInt32(_rL);_fo=yyGetBool(_fo);var _h4=((_Nc*255.0)<<24); _6q=_Qc(_6q)|_h4;_no=_Qc(_no)|_h4;_qL=_Qc(_qL)|_h4;_rL=_Qc(_rL)|_h4;var _Eh=_9a._Ea;var _q8=6;if(_fo){_Eh=_9a._Bc;_q8=8;}_Ca=_e8._Da(_Eh,null,_e8._Fa,_q8);var _Ga=_Ca._Ha()>>2;var index=_Ga*_Ca._Ia;_Ca._Ia+=_q8;var _Pa=index;var _hb=_Pa+_Ga;var __4=_hb+_Ga;var _ib=__4+_Ga;var _jb=_ib+_Ga;var _kb=_jb+_Ga;var _qD3=_kb+_Ga;var _rD3=_qD3+_Ga;var _Ja=_Ca._Ka;var _La=_Ca._Ma;_Na=_Ca._Oa;var _m4=~~((_Nc*255.0)<<24)|(_Oc&0xffffff);if(!_fo){_Ja[_Pa+0]=_Ja[_jb+0]=_Ja[_kb+0]=_W6;_Ja[_Pa+1]=_Ja[_hb+1]=_Ja[_kb+1]=_X6;_Ja[_hb+0]=_Ja[__4+0]=_Ja[_ib+0]=_o6+1.0; _Ja[__4+1]=_Ja[_ib+1]=_Ja[_jb+1]=_p6+1.0;_Ja[_Pa+2]=_Ja[_hb+2]=_Ja[__4+2]=_Ja[_ib+2]=_Ja[_jb+2]=_Ja[_kb+2]=_Ta;_La[_Pa]=_La[_kb]=_6q;_La[__4]=_La[_ib]=_qL;_La[_hb]=_no;_La[_jb]=_rL;}else {if(_jA3!=0.0){_W6+=_jA3;_X6+=_jA3;_o6+=_jA3;_p6+=_jA3;}_La[_Pa]=_La[_rD3]=_6q;_La[_hb]=_La[__4]=_no;_La[_ib]=_La[_jb]=_qL;_La[_kb]=_La[_qD3]=_rL;_Ja[_kb+0]=_Ja[_rD3+0]=_Ja[_qD3+0]=_Ja[_Pa+0]=_W6;_Ja[_rD3+1]=_Ja[__4+1]=_Ja[_hb+1]=_Ja[_Pa+1]=_X6;_Ja[_jb+0]=_Ja[_ib+0]=_Ja[__4+0]=_Ja[_hb+0]=_o6;_Ja[_ib+1]=_Ja[_jb+1]=_Ja[_kb+1]=_Ja[_qD3+1]=_p6; _Ja[_rD3+1]=_X6;_Ja[_Pa+2]=_Ja[_hb+2]=_Ja[__4+2]=_Ja[_ib+2]=_Ja[_jb+2]=_Ja[_kb+2]=_Ja[_qD3+2]=_Ja[_rD3+2]=_Ta;}}function _RA3(_q5,_r5,_3d){_q5=yyGetReal(_q5);_r5=yyGetReal(_r5);_3d=yyGetInt32(_3d);if(_jA3!=0.0){_q5+=_jA3;_r5+=_jA3;}var _Ca,_Ja,_La;_Ca=_e8._Da(_9a._Ac,null,_e8._Fa,1);var _Ga=_Ca._Ha()>>2;var _Pa=_Ga*_Ca._Ia;_Ca._Ia++;_Ja=_Ca._Ka;_La=_Ca._Ma;var _m4=~~((_Nc*255.0)<<24)|_Qc(_3d);_Ja[_Pa+0]=~~_q5+0.5;_Ja[_Pa+1]=~~_r5+0.5;_Ja[_Pa+2]=_Ta;_La[_Pa]=_m4;}function _NA3(_W6,_X6,_o6,_p6,_Ju,_Ku,_fo){ _W6=yyGetReal(_W6);_X6=yyGetReal(_X6);_o6=yyGetReal(_o6);_p6=yyGetReal(_p6);_Ju=yyGetReal(_Ju);_Ku=yyGetReal(_Ku);_fo=yyGetBool(_fo);if(_jA3!=0.0){_W6+=_jA3;_X6+=_jA3;_o6+=_jA3;_p6+=_jA3;_Ju+=_jA3;_Ku+=_jA3;}var _Ca,_Ja,_La,_Na;if(_fo){_Ca=_e8._Da(_9a._Cc,null,_e8._Fa,4);}else {_Ca=_e8._Da(_9a._Ea,null,_e8._Fa,3);}var _Ga=_Ca._Ha()>>2;var index=_Ga*_Ca._Ia;_Ca._Ia+=3;var _Pa=index;var _hb=_Pa+_Ga;var __4=_hb+_Ga;var _ib=__4+_Ga;var _Ja=_Ca._Ka;var _La=_Ca._Ma;_Ja[_Pa+0]=_W6;_Ja[_Pa+1]=_X6;_Ja[_Pa+2]=_Ta;_Ja[_hb+0]=_o6; _Ja[_hb+1]=_p6;_Ja[_hb+2]=_Ta;_Ja[__4+0]=_Ju;_Ja[__4+1]=_Ku;_Ja[__4+2]=_Ta;if(_fo){_Ja[_ib+0]=_W6;_Ja[_ib+1]=_X6;_Ja[_ib+2]=_Ta;_Ca._Ia++;}_La[_Pa]=_La[_hb]=_La[__4]=_La[_ib]=((_Nc*255.0)<<24)|_Oc;}function _JA3(_W6,_X6,_o6,_p6,_6q,_no,_tL,_fo){if(_tL){_IA3(_W6,_X6,_o6,_p6,_6q,_6q,_no,_no,_fo);}else {_IA3(_W6,_X6,_o6,_p6,_6q,_no,_no,_6q,_fo);}}function _KA3(_q5,_r5){_RA3(_q5,_r5,_2H);}function _LA3(_q5,_r5){var _q4=_MA3(_q5,_r5);if(Array.isArray(_q4)){_q4.splice(3);return _q4;}else {return _q4&0x00ffffff; }}function _MA3(_q5,_r5){var _Eh=_bs;if((__i1!=null)&&(__i1!=-1)){var _ms=_cs._E5(__i1);if(_ms!=null){_Eh=_ms._bk1._ck1._rd;}}_q5=yyGetInt32(_q5);_r5=yyGetInt32(_r5);if(_1A<0){_r5=_e8._PX1-_r5;}return _e8._j02(_q5,_r5,_Eh);}function _OA3(_W6,_X6,_o6,_p6,_Ju,_Ku,_Ss,_Ts,_Us,_fo){_W6=yyGetReal(_W6);_X6=yyGetReal(_X6);_o6=yyGetReal(_o6);_p6=yyGetReal(_p6);_Ju=yyGetReal(_Ju);_Ku=yyGetReal(_Ku);_Ss=yyGetInt32(_Ss);_Ts=yyGetInt32(_Ts);_Us=yyGetInt32(_Us);_fo=yyGetBool(_fo);if(_jA3!=0.0){_W6+=_jA3;_X6+=_jA3; _o6+=_jA3;_p6+=_jA3;_Ju+=_jA3;_Ku+=_jA3;}var _Ca,_Ja,_La,_Na;var _h4=((_Nc*255.0)<<24);_Ss=_h4|_Qc(_Ss);_Ts=_h4|_Qc(_Ts);_Us=_h4|_Qc(_Us);if(_fo){_Ca=_e8._Da(_9a._Cc,null,_e8._Fa,4);}else {_Ca=_e8._Da(_9a._Ea,null,_e8._Fa,3);}var _Ga=_Ca._Ha()>>2;var index=_Ga*_Ca._Ia;_Ca._Ia+=3;var _Pa=index;var _hb=_Pa+_Ga;var __4=_hb+_Ga;var _ib=__4+_Ga;_Ja=_Ca._Ka;_La=_Ca._Ma;_Ja[_Pa+0]=_W6;_Ja[_Pa+1]=_X6;_Ja[_Pa+2]=_Ta;_Ja[_hb+0]=_o6;_Ja[_hb+1]=_p6;_Ja[_hb+2]=_Ta;_Ja[__4+0]=_Ju;_Ja[__4+1]=_Ku;_Ja[__4+2]=_Ta;if(_fo){ _Ja[_ib+0]=_W6;_Ja[_ib+1]=_X6;_Ja[_ib+2]=_Ta;_Ca._Ia++;}_La[_Pa]=_Ss;_La[_hb]=_Ts;_La[__4]=_Us;_La[_ib]=_Ss;}function _PA3(_W6,_X6,_o6,_p6,_6q,_no,_fo){_W6=yyGetReal(_W6);_X6=yyGetReal(_X6);_o6=yyGetReal(_o6);_p6=yyGetReal(_p6);_6q=yyGetInt32(_6q);_no=yyGetInt32(_no);_fo=yyGetBool(_fo);if(_jA3!=0.0){_W6+=_jA3;_X6+=_jA3;_o6+=_jA3;_p6+=_jA3;}var _aM=(_W6+_o6)/2;var _bM=(_X6+_p6)/2;var _cA=Math.abs((_W6-_o6)/2);var _dA=Math.abs((_X6-_p6)/2);var _h4=((_Nc*255.0)<<24);_6q=_h4|_Qc(_6q);_no=_h4|_Qc(_no);var _Sf3, _Ca,_Ja,_La;var _Y4;if(_fo){var _tD3=_gA3+1;_Ca=_e8._Da(_9a._Cc,null,_e8._Fa,_tD3);var _Ga=_Ca._Ha()>>2;var index=_Ga*_Ca._Ia;_Ca._Ia+=_tD3;_Ja=_Ca._Ka;_La=_Ca._Ma;for(var i=0;i<=_gA3;i++){_Ja[index]=(_aM+(_cA*_hA3[i]));_Ja[index+1]=(_bM+(_dA*_iA3[i]));_Ja[index+2]=_Ta;_La[index]=_no;index+=_Ga;}}else {var _uD3=_gA3*3;_Ca=_e8._Da(_9a._Ea,null,_e8._Fa,_uD3);var _Ga=_Ca._Ha()>>2;var index=_Ga*_Ca._Ia;_Ca._Ia+=_uD3;_Ja=_Ca._Ka;_La=_Ca._Ma;for(var i=0;i<_gA3;i++){_Ja[index]=_aM;_Ja[index+1]=_bM;_Ja[index+2]=_Ta; _La[index]=_6q;index+=_Ga;_Ja[index]=(_aM+_cA*_hA3[i]);_Ja[index+1]=(_bM+_dA*_iA3[i]);_Ja[index+2]=_Ta;_La[index]=_no;index+=_Ga;_Ja[index]=(_aM+_cA*_hA3[i+1]);_Ja[index+1]=(_bM+_dA*_iA3[i+1]);_Ja[index+2]=_Ta;_La[index]=_no;index+=_Ga;}}}function _QA3(_q5,_r5,_Jj,_6q,_no,_fo){_PA3(_q5-_Jj,_r5-_Jj,_q5+_Jj,_r5+_Jj,_6q,_no,_fo);}function _SA3(_W6,_X6,_o6,_p6){_UA3(_W6,_X6,_o6,_p6,1.0,_2H,_2H);}function _TA3(_W6,_X6,_o6,_p6,_kj){_UA3(_W6,_X6,_o6,_p6,_kj,_2H,_2H);}function _UA3(_W6,_X6,_o6,_p6,_kj,_6q,_no){ _W6=yyGetReal(_W6);_X6=yyGetReal(_X6);_o6=yyGetReal(_o6);_p6=yyGetReal(_p6);_kj=yyGetReal(_kj);_6q=yyGetInt32(_6q);_no=yyGetInt32(_no);if(_jA3!=0.0){_W6+=_jA3;_X6+=_jA3;_o6+=_jA3;_p6+=_jA3;}var _h4=((_Nc*255.0)<<24);_6q=_h4|_Qc(_6q);_no=_h4|_Qc(_no);var _N6=(_o6-_W6);var _P6=(_p6-_X6);var _G6=(_N6*_N6)+(_P6*_P6);if(_G6<0.0001)return;_G6=Math.sqrt(_G6);if(_G6<0.0001)return;_N6=0.5*_kj*_N6/_G6;_P6=0.5*_kj*_P6/_G6;var _Ca=_e8._Da(_9a._Ea,null,_e8._Fa,6);var _Ga=_Ca._Ha()>>2;var index=_Ga*_Ca._Ia;_Ca._Ia+=6; var _Pa=index;var _hb=_Pa+_Ga;var __4=_hb+_Ga;var _ib=__4+_Ga;var _jb=_ib+_Ga;var _kb=_jb+_Ga;var _Ja=_Ca._Ka;var _La=_Ca._Ma;_Ja[_Pa+0]=(_W6-_P6);_Ja[_Pa+1]=(_X6+_N6);_Ja[_hb+0]=(_o6-_P6);_Ja[_hb+1]=(_p6+_N6);_Ja[__4+0]=(_o6+_P6);_Ja[__4+1]=(_p6-_N6);_Ja[_ib+0]=(_o6+_P6);_Ja[_ib+1]=(_p6-_N6);_Ja[_jb+0]=(_W6+_P6);_Ja[_jb+1]=(_X6-_N6);_Ja[_kb+0]=(_W6-_P6);_Ja[_kb+1]=(_X6+_N6);_Ja[_Pa+2]=_Ja[_hb+2]=_Ja[__4+2]=_Ja[_ib+2]=_Ja[_jb+2]=_Ja[_kb+2]=_Ta;_La[_Pa]=_La[_jb]=_La[_kb]=_6q;_La[_hb]=_La[__4]=_La[_ib]=_no; }function _vD3(_Vg1,_kj,_lj,_7f1){var _s02=_e8._n02(_kj,_lj,_7f1);_Vg1._bk1=_s02;_Vg1._3j1=_s02._3j1;_Vg1.texture._N8=_s02._ck1;}function _3B3(_kj,_lj,_7f1,_Ri1){_kj=yyGetInt32(_kj);_lj=yyGetInt32(_lj);if(_kj<=0||_lj<=0){_H4("create_surface : Trying to create a surface with size equal to or less than zero.");}if(_Ri1!=undefined){_Ri1=yyGetInt32(_Ri1);}var _B4=new _hs();_B4.texture=document.createElement("surf");_B4.__c=_kj;_B4._0d=_lj;_B4.texture.width=_kj;_B4.texture.height=_lj;_B4.texture.__c=_kj;_B4.texture._0d=_lj; if(_Ri1!=undefined){var _ms=_cs._E5(_Ri1);if(_ms&&_ms._bk1){_e8._u02(_ms._bk1);}}_vD3(_B4,_kj,_lj,_7f1);_B4.x=0;_B4.y=0;_B4.w=_kj;_B4.h=_lj;_B4.XOffset=0;_B4.YOffset=0;_B4.CropWidth=_B4.w;_B4.CropHeight=_B4.h;_B4.ow=_B4.w;_B4.oh=_B4.h;if(_Ri1!=undefined){_cs.Set(_Ri1,_B4);_B4.tp=_Ri1;}else {_B4.tp=_cs._Gf(_B4);}_B4._Ti1=_B4;_B4.texture.complete=true;_B4._p8=[];_B4._q8=0;_B4._r8=4;_B4._Ui1=0;_B4._5t=null;_B4._lg1=_B4.texture;return _B4.tp;}function _4B3(_jg){_jg=yyGetInt32(_jg);if(_jg<0){return;}var _ms=_cs._E5(_jg); if(_ms&&_ms._bk1){if(_Oi1(_jg)){_yi("Error: Surface in use via surface_set_target(). It can not be freed until it has been removed from the surface stack.");return;}_e8._tZ1();_e8._u02(_ms._bk1);_ms.texture._N8=undefined;_cs._rj(_jg);}else if(!_ms){return 0;}}function _5B3(_jg,_q5,_r5){var _q4=_6B3(_jg,_q5,_r5);if(Array.isArray(_q4)){_q4.splice(3);return _q4;}else {return _q4&0x00ffffff;}}function _6B3(_jg,_q5,_r5){var _q4=0;var _ms=_cs._E5(yyGetInt32(_jg));if(_ms!=null){_q5=yyGetInt32(_q5);_r5=yyGetInt32(_r5); _q4=_e8._k02(_ms._3j1,_q5,_r5,_ms._bk1._ck1._rd);}return new Long(_q4);}function __A3(_jg,_q5,_r5){var _ms=_cs._E5(yyGetInt32(_jg));if(!_ms)return;_q5=yyGetInt32(_q5);_r5=yyGetInt32(_r5);var colour=((_Nc*255.0)<<24)|0x00ffffff;_1a._pg1(_ms,0,0,_ms.__c,_ms._0d,_q5,_r5,_ms.__c,_ms._0d,colour);}function _wD3(_G8,_w6,_x6,_y6,_z6,_fb,_gb,_8s2,_9s2,_fy1,_xD3,_Z4,_yD3,_6h,_7h,_Nr1,__O2){var z=(_Ta);var _Vc=_yc(_cc);var _zD3=_e8._Da(_Vc,_G8,_e8._Fa,6);var _Ga=_zD3._Ha()>>2;var index=_Ga*_zD3._Ia;_zD3._Ia+=6;var _Ja=_zD3._Ka; var _La=_zD3._Ma;var _Na=_zD3._Oa;var _Pa=index;var _hb=_Pa+_Ga;var __4=_hb+_Ga;var _ib=__4+_Ga;var _jb=_ib+_Ga;var _kb=_jb+_Ga;_Ja[_Pa+0]=_Ja[_kb+0]=_w6;_Ja[_Pa+1]=_Ja[_kb+1]=_x6;_Ja[_hb+0]=_y6;_Ja[_hb+1]=_z6;_Ja[__4+0]=_Ja[_ib+0]=_fb;_Ja[__4+1]=_Ja[_ib+1]=_gb;_Ja[_jb+0]=_8s2;_Ja[_jb+1]=_9s2;_Ja[_Pa+2]=_Ja[_hb+2]=_Ja[__4+2]=_Ja[_ib+2]=_Ja[_jb+2]=_Ja[_kb+2]=z;_La[_Pa]=_La[_kb]=_6h;_La[_hb]=_7h;_La[__4]=_La[_ib]=_Nr1;_La[_jb]=__O2;_Na[_Pa+0]=_Na[_kb+0]=_fy1;_Na[_Pa+1]=_Na[_kb+1]=_xD3;_Na[_hb+0]=_Z4;_Na[_hb+1]=_xD3; _Na[__4+0]=_Na[_ib+0]=_Z4;_Na[__4+1]=_Na[_ib+1]=_yD3;_Na[_jb+0]=_fy1;_Na[_jb+1]=_yD3;return true;}function _7B3(_Zj1,_AD3,_BD3,_sj){_Zj1=yyGetInt32(_Zj1);_AD3=yyGetInt32(_AD3);_BD3=yyGetInt32(_BD3);_sj=yyGetInt32(_sj);_e8._Dj1();_e8._la._UC();_hj1(_Zj1);_wx(0,0,surface_get_width(_Zj1),surface_get_height(_Zj1),0);var _lj=surface_get_height(_sj);var _kj=surface_get_width(_sj);var _q5=0;var _r5=0;var _CD3=_BD3;var _DD3=(_BD3+_lj);var _x6=_r5;var _z6=(_r5+_lj);var _X4=(1/_kj);var _Y4=(1/_lj);_wD3(surface_get_texture(_sj)._Hc._N8, _AD3,_CD3,_AD3+_kj,_CD3,_AD3+_kj,_DD3,_AD3,_DD3,_X4*_q5,_Y4*_x6,_X4*(_q5+_kj),_Y4*_z6,0xffffffff,0xffffffff,0xffffffff,0xffffffff);_e8._Dj1();_Ej1();_e8._la._VC();}function _8B3(_Zj1,_AD3,_BD3,_sj,_w4,_x4,__j1,_0k1){_Zj1=yyGetInt32(_Zj1);_AD3=yyGetInt32(_AD3);_BD3=yyGetInt32(_BD3);_sj=yyGetInt32(_sj);_w4=yyGetInt32(_w4);_x4=yyGetInt32(_x4);__j1=yyGetInt32(__j1);_0k1=yyGetInt32(_0k1);_e8._tZ1();_e8._la._UC();_hj1(_Zj1);_wx(0,0,surface_get_width(_Zj1),surface_get_height(_Zj1),0);var _lj=_0k1;var _kj=__j1; var _q5=_w4;var _r5=_x4;var _CD3=_BD3;var _DD3=(_BD3+_lj);var _x6=_r5;var _z6=(_r5+_lj);var _X4=(1/surface_get_width(_sj));var _Y4=(1/surface_get_height(_sj));_wD3(surface_get_texture(_sj)._Hc._N8,_AD3,_CD3,_AD3+_kj,_CD3,_AD3+_kj,_DD3,_AD3,_DD3,_X4*_q5,_Y4*_x6,_X4*(_q5+_kj),_Y4*_z6,0xffffffff,0xffffffff,0xffffffff,0xffffffff);_e8._tZ1();_Ej1();_e8._la._VC();_e8._tZ1();}function _bB3(_t4,_q5,_r5,_kj,_lj,_8s,_9s){_LE("sprite_add_from_screen() (WebGL)");return -1;}function _aB3(_jg,_q5,_r5,_kj,_lj,_8s,_9s){var _ms=_cs._E5(_jg); if(_ms!=null){if(_ms._bk1._ck1._rd!=_bs){debug("Surface "+yyGetInt32(_jg)+" can't be used as a background source as it uses unsupported format "+_e8._n_1(_ms._bk1._ck1._rd));return -1;}_q5=~~_q5;_r5=~~_r5;_kj=~~_kj;_lj=~~_lj;var _lg1=document.createElement(_8F);var _mg1=_lg1.getContext('2d');_ng1(_mg1);var _Yc=_e8._Z_1(_lg1,_ms._3j1,_q5,_r5,_kj,_lj,_8s,_9s);var _B4=new _hs();_B4.x=0;_B4.y=0;_B4.w=_Yc._C_1;_B4.h=_Yc._D_1;_B4.XOffset=0;_B4.YOffset=0;_B4.CropWidth=_B4.w;_B4.CropHeight=_B4.h;_B4.ow=_kj;_B4.oh=_lj; _B4.tp=_ys(_lg1);_B4.texture=_F4[_B4.tp];_B4.texture._N8=_Yc;_B4.texture.__c=_lg1.width;_B4.texture._0d=_lg1.height;_B4.texture.complete=true;var _fs=new _gs();_fs._5s=_B4;return _8r._is(_fs);}debug("Surface "+_jg+" does not exist");return -1;}function _9B3(_q5,_r5,_kj,_lj,_8s,_9s){_q5=~~_q5;_r5=~~_r5;var _lg1=document.createElement(_8F);var _mg1=_lg1.getContext('2d');_ng1(_mg1);var _Yc=_e8._T_1(_lg1,_q5,_r5,_kj,_lj,_8s,_9s,(_1A>0));var _B4=new _hs();_B4.x=0;_B4.y=0;_B4.w=_Yc._C_1;_B4.h=_Yc._D_1;_B4.XOffset=0; _B4.YOffset=0;_B4.CropWidth=_B4.w;_B4.CropHeight=_B4.h;_B4.ow=_kj;_B4.oh=_lj;_B4.tp=_ys(_lg1);_B4.texture=_F4[_B4.tp];_B4.texture._N8=_Yc;_B4.texture.width=_kj;_B4.texture.height=_lj;_B4.texture.__c=_kj;_B4.texture._0d=_lj;_B4.texture.complete=true;var _fs=new _gs();_fs._5s=_B4;return _8r._is(_fs);}function _cB3(_jg,_q5,_r5,_kj,_lj,_8s,_9s,_rg1,_sg1){var _ms=_cs._E5(yyGetInt32(_jg));if(_ms!=null){if(_ms._bk1._ck1._rd!=_bs){debug("Surface "+yyGetInt32(_jg)+" can't be used as a sprite source as it uses unsupported format "+_e8._n_1(_ms._bk1._ck1._rd)); return -1;}_q5=yyGetInt32(_q5);_r5=yyGetInt32(_r5);_kj=yyGetInt32(_kj);_lj=yyGetInt32(_lj);_8s=yyGetBool(_8s);_9s=yyGetBool(_9s);_rg1=yyGetInt32(_rg1);_sg1=yyGetInt32(_sg1);var _lg1=document.createElement(_8F);var _mg1=_lg1.getContext('2d');_ng1(_mg1);var _Yc=_e8._Z_1(_lg1,_ms._3j1,_q5,_r5,_kj,_lj,_8s,_9s);var _B4=new _hs();_B4.x=0;_B4.y=0;_B4.w=_Yc._C_1;_B4.h=_Yc._D_1;_B4.XOffset=0;_B4.YOffset=0;_B4.CropWidth=_B4.w;_B4.CropHeight=_B4.h;_B4.ow=_kj;_B4.oh=_lj;_B4.tp=_ys(_lg1);_B4.texture=_F4[_B4.tp];_B4.texture._N8=_Yc; _B4.texture.__c=_lg1.width;_B4.texture._0d=_lg1.height;_B4.texture.complete=true;var _og1=new _tg1();_og1.pName="surface.copy";_og1.width=_kj;_og1.height=_lj;_og1._IP=new _IF();_og1._IP.right=_og1.width;_og1._IP.bottom=_og1.height;_og1.transparent=true;_og1.smooth=true;_og1.preload=true;_og1._dg1=0;_og1._1r=_vg1._wg1;_og1.xOrigin=_rg1;_og1.yOrigin=_sg1;_og1._xs=true;_og1._E6=1;_og1._Cg1=0;_og1._xg1=false;_og1._yg1=false;_og1._F6=[];_og1._C4=[];_og1.Masks=[];_og1._eg1();_og1._C4[0]=_B4;var _xW=_D5._ug1(_og1); return _xW;}debug("Surface "+yyGetInt32(_jg)+" does not exist");return -1;}function _dB3(_t4,_jg,_q5,_r5,_kj,_lj,_8s,_9s){var _ms=_cs._E5(yyGetInt32(_jg));if(_ms!=null){if(_ms._bk1._ck1._rd!=_bs){debug("Surface "+yyGetInt32(_jg)+" can't be used as a sprite source as it uses unsupported format "+_e8._n_1(_ms._bk1._ck1._rd));return -1;}_t4=yyGetInt32(_t4);_q5=yyGetInt32(_q5);_r5=yyGetInt32(_r5);_kj=yyGetInt32(_kj);_lj=yyGetInt32(_lj);_8s=yyGetBool(_8s);_9s=yyGetBool(_9s);var _lg1=document.createElement(_8F); var _mg1=_lg1.getContext('2d');_ng1(_mg1);var _Yc=_e8._Z_1(_lg1,_ms._3j1,_q5,_r5,_kj,_lj,_8s,_9s);var _B4=new _hs();_B4.x=0;_B4.y=0;_B4.w=_kj;_B4.h=_lj;_B4.XOffset=0;_B4.YOffset=0;_B4.CropWidth=_B4.w;_B4.CropHeight=_B4.h;_B4.ow=_B4.w;_B4.oh=_B4.h;_B4.tp=_ys(_lg1);_B4.texture=_F4[_B4.tp];_B4.texture._N8=_Yc;_B4.texture.__c=_lg1.width;_B4.texture._0d=_lg1.height;_B4.texture.complete=true;var _XF=_D5._E5(_t4);_XF._C4[_XF._C4.length]=_B4;_XF._E6++;return _t4;}debug("Surface "+yyGetInt32(_jg)+" does not exist"); return -1;}function _eB3(_L73,_M73){var _N73,_Q73;_N73=_e8._E02(_M73);_Q73=_e8._E02(_L73);var _he1=(_L73.h*_L73.w*4);for(var i=_he1-4;i>=0;i-=4){var c=~~((_N73[i]+_N73[i+1]+_N73[i+2])/3);_Q73[i+3]=c;}var _PZ2=new Image();_e8._w02(_L73.texture._N8._ck1);_L73.texture._N8=_e8._402(_PZ2,_Q73,_L73.w,_L73.h);return true;}function _1B3(_jg){var _iZ=_sk._E5(yyGetInt32(_jg));if(_iZ){var _Ca,_Ga,index,_I53,_3C3,_Ja,_La,_Na,_W6,_X6,_o6,_p6;var _iv=~~((_Nc*255.0)<<24)|0x0000ff;var _jv=~~((_Nc*255.0)<<24)|0x00ff00;var _q8=6*(_iZ._uk*_iZ._tk); _Ca=_e8._Da(_9a._Ea,null,_e8._Fa,_q8);_Ga=_Ca._Ha()>>2;index=_Ga*_Ca._Ia;_3C3=_Ca._Ia;_Ca._Ia+=_q8;var _Ja=_Ca._Ka;var _La=_Ca._Ma;for(var y=0;y<_iZ._uk;y++){for(var x=0;x<_iZ._tk;x++,index+=_Ga*6){var _m4=_jv;var _Pa=index,_hb=_Pa+_Ga,__4=_hb+_Ga,_ib=__4+_Ga,_jb=_ib+_Ga,_kb=_jb+_Ga;if(_iZ._xk[(_iZ._uk*x)+y]<0)_m4=_iv;_W6=~~(_iZ._8Z+x*_iZ._aZ);_X6=~~(_iZ._9Z+y*_iZ._bZ);_o6=_W6+_iZ._aZ;_p6=_X6+_iZ._bZ;_Ja[_kb+0]=_Ja[_jb+0]=_Ja[_Pa+0]=_W6;_Ja[_kb+1]=_Ja[_hb+1]=_Ja[_Pa+1]=_X6;_Ja[_ib+0]=_Ja[__4+0]=_Ja[_hb+0]=_o6; _Ja[_jb+1]=_Ja[_ib+1]=_Ja[__4+1]=_p6;_Ja[_Pa+2]=_Ja[_hb+2]=_Ja[__4+2]=_Ja[_ib+2]=_Ja[_jb+2]=_Ja[_kb+2]=_Ta;_La[_Pa]=_La[_hb]=_La[__4]=_La[_ib]=_La[_jb]=_La[_kb]=_m4;}}return;}_H4("Error: invalid mp_grid ID (mp_grid_draw)");}function _0B3(_jg,_941,_a41,_741){var _QY=_RY.Paths[yyGetInt32(_jg)];if(!_QY)return;_941=yyGetInt32(_941);_a41=yyGetInt32(_a41);_741=yyGetBool(_741);var _Ca,_Dn3,_Ja,_La,_Na,_Ga;var _m4=~~((_Nc*255.0)<<24)|(_Oc&0xffffff);var _N6,_P6,_b41;var _c41=0;var _d41=_QY._e41(0);if(!_741){_941=_941-_d41.x; _a41=_a41-_d41.y;}else {_941=0;_a41=0;}_c41=_Xk(_QY.length/4.0);if(_c41==0)return;var _q8=_c41*2;_Ca=_e8._Da(_9a._Bc,null,_e8._Fa,_q8);_Ga=_Ca._Ha()>>2;_Dn3=_Ga*_Ca._Ia;_Ca._Ia+=_q8;var _Ja=_Ca._Ka;var _La=_Ca._Ma;for(var i=0;i<_c41;i++){_d41=_QY._e41(i/_c41);var _W6=~~(_941+_d41.x);var _X6=~~(_a41+_d41.y);_La[_Dn3+0]=_m4;_Ja[_Dn3+0]=_W6;_Ja[_Dn3+1]=_X6;_Ja[_Dn3+2]=_Ta;_Dn3+=_Ga;_d41=_QY._e41((i+1)/_c41);var _o6=~~(_941+_d41.x);var _p6=~~(_a41+_d41.y);_La[_Dn3+0]=_m4;_Ja[_Dn3+0]=_o6;_Ja[_Dn3+1]=_p6;_Ja[_Dn3+2]=_Ta; _Dn3+=_Ga;}}function _xA3(_bo){_e8._b_1(_bo);}function _YA3(_oj,_pk){_5j3=_oj;_6j3=_pk;_e8._uZ1(_5j3,_6j3);}function _ZA3(_ED3){if(_ED3){_hM(0);}else {_jM(_QC,_SC);}}function _fB3(_o8){if(_o8){return 1.0/_o8._Hc.width;}return 1.0;}function _gB3(_o8){if(_o8){return 1.0/_o8._Hc.height;}return 1;}function _hB3(_w91,_be){_e8._d_1(yyGetInt32(_w91),_be._Hc._N8);}function _iB3(_x91){_x91=yyGetInt32(_x91);if(_m_2[_x91]&&_m_2[_x91]._dZ1){return 1;}return 0;}function _jB3(_x91){_x91=yyGetInt32(_x91);var _QY1=(_x91==-1)?_Rz():_m_2[_x91]._dZ1; if(_QY1){_e8._Qz(_QY1);}}function _vB3(_x91){_x91=yyGetInt32(_x91);var _QY1=(_x91==-1)?_Rz():_m_2[_x91]._dZ1;if(_QY1){return _QY1.name;}return "";}function _kB3(_x91,_y91){_x91=yyGetInt32(_x91);var _QY1=(_x91==-1)?_Rz():_m_2[_x91]._dZ1;if(_QY1){return _e8._0_1(_m_2[_x91]._dZ1,yyGetString(_y91));}return undefined;}function _lB3(_D91,_4_1){_D91=yyGetInt32(_D91);if(_D91!=-1){_e8._3_1(_D91,_4_1);}}function _mB3(_D91,_4_1){_D91=yyGetInt32(_D91);if(_D91!=-1){_e8._5_1(_D91,_4_1);}}function _nB3(_D91,_4_1){_D91=yyGetInt32(_D91); if(_D91!=-1){var _1B=_2B(_VA);_e8._6_1(_D91,new Float32Array(_1B._v6));}}function _oB3(_x91,_be){_x91=yyGetInt32(_x91);if(_m_2[_x91]){var _QY1=_m_2[_x91];if(_QY1){for(var i=0;i<_QY1._eZ1.length;i++){if(_QY1._eZ1[i]==_be){return Number(i);}}}}return 0;}function _pB3(_C91){_543=yyGetBool(_C91);}function _qB3(_D91,_hl){if(_hl instanceof Array){_e8._9_1(yyGetInt32(_D91),_hl);}else {alert('ERROR: shader_set_uniform_i_array() Data is not an array');}}function _rB3(_D91,_hl){if(_hl instanceof Array){_e8._a_1(yyGetInt32(_D91), _hl);}else {alert('ERROR: shader_set_uniform_f_array() Data is not an array');}}function _sB3(_D91,_sl,_E91,_fe){var _Ca=_bO._E5(yyGetInt32(_sl));if(!_Ca){alert('ERROR: shader_set_uniform_f_buffer() Data is not a buffer');return;}_E91=yyGetInt32(_E91);if(_E91<0){alert('ERROR: shader_set_uniform_f_buffer() Invalid offset '+_E91);return;}_fe=yyGetInt32(_fe);if(_fe<=0||((_E91+_fe*4)>_Ca._iX2)){alert('ERROR: shader_set_uniform_f_buffer() Invalid count '+_fe+'. Trying to read outside of the buffer.');return; }var _hl=new Array(_fe);for(var i=0;i<_fe;++i){_hl[i]=_Ca._EY2(_Le2,_E91);_E91+=4;}_e8._a_1(yyGetInt32(_D91),_hl);}function _tB3(_D91,_hl){if(_hl instanceof Array){var _A91=new Float32Array(_hl);_e8._6_1(yyGetInt32(_D91),_A91);}else {alert('ERROR: shader_set_uniform_matrix_array() Data is not an array');}}function _wB3(_iM){}function _xB3(_FD3){var _oC=_e8._PZ1();for(var _EC=0;_EC<_oC;_EC++){_tS2(_EC,_FD3);}}function _yB3(_w91,_FD3){_bA3[_w91]=_FD3?true:false;_e8._NZ1(_w91,_bA3[_w91]);}function _zB3(_nC){var _oC=_e8._PZ1(); for(var _EC=0;_EC<_oC;_EC++){_uS2(_EC,_nC);}}function _AB3(_w91,_nC){_e8._OZ1(_w91,_nC?_9a._sC:_9a._uC);}function _BB3(){return _bA3[0];};function _CB3(_o8){if(typeof(_o8)=="object"){return 1.0;}else if((yyGetInt32(_o8)!=-1)&&_F4[yyGetInt32(_o8)]){return 1.0;}return 0;}function _DB3(_o8){if(typeof(_o8)=="object"){return 1.0;}else if((yyGetInt32(_o8)!=-1)&&_F4[yyGetInt32(_o8)]){return 1.0;}return 0;}function _EB3(_o8){if((_o8==-1)||(_o8===undefined))return [0,0,1,1];var _B4=_o8._Ic;var texture=_B4.texture;if(_B4===undefined||texture===undefined)return [0, 0,1,1];var _9t=1.0/texture.width;var _at=1.0/texture.height;var _bt=[];_bt.push(_B4.x*_9t,_B4.y*_at,(_B4.x+_B4.CropWidth)*_9t,(_B4.y+_B4.CropHeight)*_at);return _bt;}function _uB3(){return 1;}function _FB3(_Nz){_jC=(_Nz>0.5)?true:false;_e8._LZ1(_jC,_lC);}function _GB3(_Vn){_lC=_Vn/255.0;_e8._LZ1(_jC,_lC);}function _HB3(){return(_jC?1.0:0.0);}function _IB3(){return _lC;}function _UA(_od,_Lw){_oB[_od]=new _zz(_Lw);_hN();_dN|=(_od==_pB||_od==_sB);if(_e8==null)return;switch(_od){case _sB:_e8._2A(_oB[_od]);break;case _pB:_e8._Xz(_oB[_od]); break;case _VA:_e8._i_1(_oB[_od]);break;}_e8._Dj1();}function _2B(_od){switch(_od){case _sB:case _pB:case _VA:return _oB[_od];break;}}function _SB3(){if(_rE.Shaders){for(var i=0;i<_rE.Shaders.length;i++){var _cZ1=_rE.Shaders[i];_m_2[i]=_e8._8Z1(_cZ1.Vertex,_cZ1.Fragment,_cZ1.Attributes);if(_m_2[i]._dZ1==null){debug("Shader "+_cZ1.name+" can't be compiled. Please check the shader for errors");}}}return true;}function _WA3(_Pc){_2H=_Pc;_Oc=_Qc(_Pc);}function _M8(_Vg1){if(!_Vg1.texture._N8){var _Yc=_e8._k_1(_Vg1.texture); _Vg1.texture._N8=_Yc;_Vg1.texture.__c=_Vg1.texture.width;_Vg1.texture._0d=_Vg1.texture.height;}}function _O8(_o8,_A_1){if(_o8._ck1)return;if(_A_1===_9a._E_1||((_A_1===_9a._F_1)&&(_o8.Image._m_1!==undefined&&_o8.Image._m_1!==0))){_o8._zg|=(_G_1._l42|_G_1._H_1);}_e8._y_1(_o8,_A_1);_Kw3(_o8);}function _ht(_o8,_A_1){if(_o8._ck1){_e8._w02(_o8._ck1);_o8._ck1=undefined;_o8._zg&=~_G_1._J_1;_Lw3(_o8);}}function _lM(){_e8._tZ1();var _GD3=_F4.length;var i;for(i=0;i<_GD3;i++){if(_F4[i]){if(_F4[i]._N8){_ht(_F4[i]._N8); }}}}function _902(_o8,_A_1){if(_o8._ck1!=undefined){var _HD3=true;if(_A_1!==_9a._a02&&(((_A_1==_9a._E_1)&&(((_o8._zg&_G_1._J_1)==0)&&((_o8._zg&_G_1._l42)!=0)))||(((_A_1==_9a._T12)&&((_o8._zg&_G_1._J_1)!=0)))||(((_A_1==_9a._F_1)&&(((_o8._zg&_G_1._H_1)&&((_o8._zg&_G_1._J_1)==0))||(((_o8._zg&_G_1._H_1)==0)&&((_o8._zg&_G_1._J_1)!=0))))))){_HD3=false;}return _HD3;}else {return false;}}function _JB3(_sl,_NZ2,_Ar,_E91,_ID3){var _Ca=_bO._E5(yyGetInt32(_sl));var _ms=_cs._E5(yyGetInt32(_NZ2));if(!_Ca||!_ms)return false; if(_E91===undefined)_E91=0;var _ZU1=_e8._l02(_ms._3j1,0,0,_ms.__c,_ms._0d,_ms._bk1._ck1._rd);if(_Ca._qW2==_4k&&_E91+_ZU1.length>_Ca._iX2){_Ca._pX2(_E91+_ZU1.length);}for(var i=0;i<_ZU1.length;i++){_Ca._RY2(_hO,i,_ZU1[i]);}_ZU1=null;}function _KB3(_sl,_NZ2,_Ar,_E91,_ID3){var _Ca=_bO._E5(yyGetInt32(_sl));var _ms=_cs._E5(yyGetInt32(_NZ2));if(!_Ca||!_ms)return false;var data=new Uint8Array(_Ca._eO);_yA3(_ms.texture._N8,0,0,_ms.__c,_ms._0d,data,_ms._bk1._ck1._rd);data=null;}var _JD3=0;var _KD3=100;var canvas=null; var _LD3,_MD3,_ND3,_OD3,_PD3,_QD3,_RD3,_SD3;var _L83=false;var _1a=null;var g_CurrentGraphics;var _TD3=null;var _bo3=null;var _UD3=0;var _VD3=false;var _WD3=0;var _XD3=0;var _xz2=60;if(!Date.now)Date.now=function(){return new Date().getTime();};var _YD3=Date.now();var _ZD3=_YD3;var __D3=_YD3;var _YN="anonymous";var _Ki1=-1;var _Yi1=-1;var _Zi1=-1;var _Up1=true;var _Vp1=true;var _0q1=true;var _Wp1=-1;var _Xp1=-1;var _Mi1=-1;var _Ni1=-1;var _Li1=false;var __p1=true;var _1q1={x:0,y:0,w:0,h:0};var _JK=false;var _0E3=false;var _1E3=1; var _2E3=1;var _3E3=1;var _4E3=0;var _5E3=0;var _6E3=0;if(window.chrome&&window.chrome.app){_L83=true;try{if(window&&window['localStorage']){_L83=false;}}catch(e){}}if(Number.isNaN===undefined){Number.isNaN=function(_NF){return typeof(_NF)==='number'&&isNaN(_NF);};}window._7E3=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;if(!window._7E3){window.addEventListener("message",function(e){if(e.source==window&&e.data=="yyRequestAnimationFrame"){ e._8E3();_9E3();}},true);}window.requestAnimFrame=(function(){return window._7E3||function(_hm1){window.setTimeout(_hm1,1000/60);};})();var _aE3=undefined;function _bE3(_IM){return(_rE.FeatureFlags!==undefined)&&(_rE.FeatureFlags[_IM]!==undefined);}function exception_unhandled_handler(_2Y){var _q4=_aE3;if((_2Y instanceof Function)||(_2Y==undefined)){_aE3=_2Y;}else if(typeof _2Y=="number"){var _BE=_Pp1(_2Y);if(_BE!=null){_aE3=_BE;}else {_H4("exception_unhandled_handler : argument should be a function");}}else { _H4("exception_unhandled_handler : argument should be a function");}return _q4;}function _cE3(event){if((_aE3==undefined)||!(_aE3 instanceof Function)){var string="Unhandled Exception - "+event.message+" in file "+event.filename+" at line "+event.lineno;_mE(string);game_end(-1);}else {var _q4=_aE3(undefined,undefined,event.error);game_end(_q4);}debugger;return false;}function _dE3(error){var string="Unhandled Rejection - "+error.message;console.error(string);if(error&&error._Dz3){error._Dz3.catch(function(err){ var _eE3=true;try{var _fE3=err.stack.indexOf("https://");if(_fE3<0)_fE3=err.stack.indexOf("http://");if(_fE3>=0){var _gE3=new RegExp("\\r\\n|\\r|\\n","g");var _hE3=err.stack.slice(_fE3).split(_gE3);if(_hE3.length>0){var _or=_hE3[0];_fE3=_or.lastIndexOf("/");if(_fE3>0){var _iE3=new URL(_or.slice(0,_fE3+1));if((_iE3._jE3!=window.location._jE3)||(_iE3.pathname.indexOf(_rE.Options.GameDir)<0)){_eE3=false;}}}}}catch(e){console.error(e.message);}if(_eE3){game_end(-2);debugger;}});}return false;}window.addEventListener("error", _cE3);window.addEventListener("unhandledrejection",_dE3);var GMS_API={"debug_msg":show_debug_message,"ds_list_size":ds_list_size,"ds_list_find_value":ds_list_find_value,"json_encode":json_encode,"json_decode":json_decode,"extension_get_option_value":extension_get_option_value,"send_async_event_social":_kE3,"get_facebook_app_id":_lE3,"get_app_version_string":_mE3};function _lE3(){return _rE.Options.Facebook;}function _mE3(){var appVersion=_rE.Options.MajorVersion+"."+_rE.Options.MinorVersion+"."+_rE.Options.BuildVersion+" r"+_rE.Options.RevisionVersion; return appVersion;}function _kE3(_nE3){var _oE3=JSON.stringify(_nE3);var _pE3=json_decode(_oE3);g_pBuiltIn.async_load=_pE3;_i3._j3(_KD2,0);ds_map_destroy(_pE3);}var _oE=null;function _qE3(){if(_oE){_oE.document.getElementById("debug_console").value="";}}function _rE3(){if(_oE){if(_Wz2){_Wz2=false;}else {_Wz2=true;}}}function CreateDebugConsole(){try{_oE=window.open('','gamemakerstudio_debugconsole_window','width=990,height=600,titlebar=yes,scrollbars,resizable');if(_oE){if(!_oE.document.getElementById("debug_console")){ {_oE.document.write(''+'
'+'GameMaker - DEBUG console'+'
'+''+''+''+''+''+''+'
Debug OutputInstancesInstanceData
'+''+'
'+'
'+''+''+''); }var _sE3=_oE.document.getElementById("clear_console_button");_sE3.onclick=function(){_qE3();};_sE3=_oE.document.getElementById("gm_pause_button");_sE3.onclick=function(){_rE3();};}}_6o1=0x71562;}catch(e){debug(e.message);}}function _tE3(){var c=document.getElementById(_8F);var _Pg=c.parentNode;var load=document.createElement('canvas');_ag(canvas,_bg);load.style.position="absolute";load.style.left=_bg.left+"px";load.style.top=_bg.top+"px";load.width=c.width;load.height=c.height;load.setAttribute("id", "loading_screen");_Pg.insertBefore(load,c.nextSibling);_TD3=load.getContext('2d');_ng1(_TD3);}function _uE3(_9o){var _ni="";var _G6=_9o.length;for(var i=0;i<_G6;i++){_ni=_ni+String.fromCharCode(_9o.charCodeAt(i)^0x1a);}return _ni;}function _vE3(){var c=document.getElementById(_8F);var _G6=document.getElementById("loading_screen");var _Pg=c.parentNode;if(_G6!=null){_Pg.removeChild(_G6);}_TD3=null;_VD3=false;}function _ag(_rX1,_G63){var rect=_rX1.getBoundingClientRect();_G63.left=rect.left;_G63.top=rect.top; _G63.right=_G63.left+_Gn1;_G63.bottom=_G63.top+_Hn1;_G63.scaleX=(_rX1.clientWidth/_rX1.width)||1;_G63.scaleY=(_rX1.clientHeight/_rX1.height)||1;}function _wE3(_or){_lL2=[];_vI=[];_wI=[];_uI=0;var _XB=_or.search;var _Dh=_or.protocol+"//"+_or.host+_or.pathname;_vI[0]=_Dh;_wI[0]=null;if(_XB[0]=="?")_XB=_XB.substring(1,_XB.length);var index=0;var start=0;var _x11="";var _ue=null;while(index<_XB.length){var c=_XB[index];if(c=="&"){if(_x11!=""){if(start!=index)_ue=_XB.substring(start,index);_vI[_vI.length]=_x11; _wI[_wI.length]=_ue;_lL2[_x11]=_ue;_uI++;_x11="";_ue=null;}start=index+1;}else if(c=="="){_x11=_XB.substring(start,index);_ue=null;start=index+1;}index++;}if(_x11!=""){if(start!=index)_ue=_XB.substring(start,index);_vI[_vI.length]=_x11;_wI[_wI.length]=_ue;_lL2[_x11]=_ue;_uI++;_x11=_ue="";}}function _id3(){_LD3=canvas.style.position;_MD3=canvas.style.left;_ND3=canvas.style.top;_OD3=canvas.style.cssText;_PD3=canvas.parentNode;_QD3=canvas.nextSibling;_RD3=false;_SD3=canvas.margin;if((_PD3==document.body)||(canvas.mozRequestFullScreen)||(canvas.webkitRequestFullScreen)){ _RD3=true;}}window['GameMaker_Init']=GameMaker_Init;var _KG=undefined;function GameMaker_Init(){debug('------- GameMaker_Init -------------');if(!document.getElementById||!document.createElement)return;canvas=document.getElementById(_8F);_1a=null;if(!canvas)return;_wE3(window.location);_rE=JSON_game;if(typeof g_var2obf!=="undefined"){_KG=Object.getOwnPropertyNames(g_var2obf).reduce((_xE3,prop)=>{_xE3[g_var2obf[prop]]=prop;return _xE3;},{});}if(_rE.Options.outputDebugToDiv){var _yE3=document.createElement('div'); _yE3.id="yyDebugDiv";_yE3.style.display="none";document.body.appendChild(_yE3);}_eM2();if((_rE.Options&&_rE.Options.debugMode)||(_rE.Options&&_rE.Options.debugMode==undefined)){_nE=true;}if((_rE.Options!=undefined)&&(_rE.Options.AssetCompilerMajorVersion!=undefined)&&(_rE.Options.AssetCompilerMajorVersion>1)){_v3=true;if(_rE.Options.GameSpeed!=undefined){_x3._cK(_rE.Options.GameSpeed);}}_Xz2();_AL2=false;_oB=[];_oB[_sB]=new _zz();_oB[_pB]=new _zz();_oB[_VA]=new _zz();if((_rE.Options.WebGL)&&(_rE.Options.WebGL!=0)){ _DL2=_rE.Options.interpolatePixels;var _zE3=undefined;_zE3=_MB3(canvas);if(_zE3){_1a=_e8;}else {if(_rE.Options.WebGL==1){_AL2=true;}_1a=canvas.getContext('2d');}}else {_1a=canvas.getContext('2d');}g_CurrentGraphics=_1a;_kZ=_rE.Options.CollisionCompatibility;_ML2=canvas.width;_NL2=canvas.height;if((_rE.Options.UseNewAudio==true)||_v3){_in=_jn;}document.body.style._AE3="hidden";_bo3=_1a;_EL=canvas.width;_GL=canvas.height;_Gn1=_EL;_Hn1=_GL;_Yi1=_Gn1;_Zi1=_Hn1;__p1=(_rE.Options.scale!=0);_1E3=window.devicePixelRatio||1; _2E3=(_1a.webkitBackingStorePixelRatio||_1a.mozBackingStorePixelRatio||_1a.msBackingStorePixelRatio||_1a.oBackingStorePixelRatio||_1a.backingStorePixelRatio||1);_3E3=_1E3/_2E3;_bg=new _IF();_ag(canvas,_bg);_In1=_bg.top;_Jn1=_bg.left;_Kn1=_bg.right;_Ln1=_bg.bottom;if(_rE.Options.Facebook&&!_rE.Options.UseFBExtension){console.log("using internal runtime facebook");_BE3(_rE.Options.Facebook);}else if(_rE.Options&&_rE.Options.debugMode){CreateDebugConsole();}_id3();_ng1(_1a);document.body.oncontextmenu=function(){ return false;};_Ig();_IM2=document.getElementById('GM4HTML5_loadingscreen');if(_e8&&_nE){debug("WebGL Enabled!");debug("Max Texture Size="+_e8._GY1());}_OM2();_rp1();if(_AL2){_UD3=-2;}else {if(_nE)g_pBuiltIn.debug_mode=_rE.Options.debugMode;_wL2="";_uL2="";_vL2=function(){};{_yN2(_rE);_UD3=0;}}window.focus();canvas.addEventListener("click",function(e){window.focus();});__D3=Date.now();window.requestAnimFrame(_9E3);}function _9E3(){if(_UD3!=3)window.requestAnimFrame(_9E3);if(_VD3){_ag(canvas,_bg);var load=document.getElementById("loading_screen"); load.style.position="absolute";load.style.left=_bg.left+"px";load.style.top=_bg.top+"px";}var _7C1=false;while(!_7C1){_7C1=true;switch(_UD3){case -2:{if(_VD3)_vE3();_CE3(_1a,_Gn1,_Hn1);break;}case -1:if(_GM2==_HM2){_yN2(_rE);_UD3=0;if(!_VD3){_tE3();_VD3=true;}_CN2();_wL2(_TD3,_Gn1,_Hn1,_FM2,_8e1,_IM2);}break;case 0:if(!_VD3){_tE3();_VD3=true;}if(_8e1>=_FM2){_8e1=_FM2;_UD3=1;_7C1=false;}_CN2();if(_rE.Options.loadingBarCallback){if(_GM2==_HM2){_uL2=eval(_rE.Options.loadingBarCallback);_uL2(_TD3,_Gn1,_Hn1, _FM2,_8e1,_IM2);}}else _wL2(_TD3,_Gn1,_Hn1,_FM2,_8e1,_IM2);break;case 1:if(_GM2==_HM2){_vE3();_NN2(_rE);_UD3=2;_7C1=false;}break;case 2:_vL2();debug("Entering main loop...");_DE3();_UD3=3;g_pBuiltIn._n_2=new Date().getTime();_7C1=false;break;case 3:_EE3();break;}}}function _FE3(_A63,x,y,colour,text){_A63.fillStyle=colour;_A63.lineStyle=colour;_A63.font="14px Verdana";;_A63.textAlign="center";_A63.fillText(text,x,y);_A63.textAlign="left";}function _CE3(_A63,_m8,_n8){_A63.fillStyle=_ns(0x151515,1.0);_A63.fillRect(0, 0,_m8,_n8);_FE3(_A63,_m8/2,(_n8/2),_ns(0x8d8f90,1.0),"WebGL is required to run this application.");}function _zN2(_1a,_m8,_n8,_GE3,_rt3,_HE3){_1a.globalAlpha=1;if(_HE3){try{_1a.save();_1a.fillStyle=_ns(0,1);_1a.globalCompositeOperation='copy';_1a.fillRect(0,0,_m8,_n8);_1a.restore();_1a.drawImage(_IM2,0,0,_m8,_n8);}catch(e){show_message(e.message);}}else {var _IE3=(_m8/100)*50;var _JE3=2;var x=(_m8-_IE3)/2;var y=10+(_n8-_JE3)/2;_1a.fillStyle=_ns(0x151515,1.0);_1a.fillRect(0,0,_m8,_n8);if(_rt3!=0){var w=(_IE3/_GE3)*_rt3; _1a.fillStyle=_ns(0x404040,1.0);_1a.fillRect(x,y,_IE3,_JE3);_1a.fillStyle=_ns(0x8d8f90,1.0);_1a.fillRect(x,y,w,_JE3);}_FE3(_1a,_m8/2,(_n8/2),_ns(0x8d8f90,1.0),"Loading");}}function _KE3(_M23){_8r._Wf();var _fP2=_M23._Q71.backgrounds;for(var i=0;i<_fP2.length;i++){_8r._Gf(_fP2[i]);var _2s=_8r._E5(i);var _LE3=_8r._0s(i);g_pBuiltIn._o_2[i]=_2s.visible;g_pBuiltIn._p_2[i]=_2s.foreground;g_pBuiltIn._q_2[i]=_2s.index;g_pBuiltIn._r_2[i]=_2s.x;g_pBuiltIn._s_2[i]=_2s.y;if((_LE3!==null)&&(_LE3!==undefined)&&(_LE3._5s!==null)&&(_LE3._5s!==undefined)){ g_pBuiltIn._t_2[i]=_LE3._5s.w;g_pBuiltIn._u_2[i]=_LE3._5s.h;}else {g_pBuiltIn._t_2[i]=0;g_pBuiltIn._u_2[i]=0;}g_pBuiltIn._v_2[i]=_2s._aP2;g_pBuiltIn._w_2[i]=_2s._bP2;g_pBuiltIn._x_2[i]=_2s._tR;g_pBuiltIn._y_2[i]=_2s._uR;g_pBuiltIn._A_2[i]=_2s._dP2;g_pBuiltIn._z_2[i]=_2s._cP2;g_pBuiltIn._B_2[i]=_2s._vR;g_pBuiltIn._C_2[i]=_2s.alpha;}g_pBuiltIn.background_color=_M23._F_2;}function _ME3(_9l){var _NE3=[];var stack=[_9l];var _3h=0;while(stack.length){var value=stack.pop();if(typeof value==='boolean'){_3h+=4; }else if(typeof value==='string'){_3h+=value.length*2;}else if(typeof value==='number'){_3h+=8;}else if(typeof value==='object'&&_NE3.indexOf(value)===-1){_NE3.push(value);for(var i in value){stack.push(value[i]);}}}return _3h;}function _3y2(_TH,_OE3){if(_t3){_t3._mo3();var _PE3=_t3._rx2();for(var i=0;i<8;i++){var _9g=_t3._s52(i);if(_9g){var _QE3=_9g._V71;if(_QE3!=-1){var _Kx2=_jj1._ux2(_QE3);if(_Kx2){if(_PE3){_Kx2._qx2(true);}else {_Kx2._qx2(false);}}}}}if(_v3){if(_jj1!=null){_jj1._4y2();}}}var _RE3=_t3;_881=-1; effect_clear();_fX._Z23(_W03,_t3);_Hn._N5(_pC2,0);_fj3();_pe3();var persistent=[];var _SE3=[];if(_RE3!=null){for(var i=_RE3._NO.length-1;i>=0;i--){var _1u=_RE3._NO._E5(i);if(_1u.persistent){persistent[persistent.length]=_1u;_1u._TE3=true;var layer=_3u._MQ(_RE3,_1u.layer);if(layer!=null){if(layer._BR){_SE3[_SE3.length]=null;}else {_SE3[_SE3.length]=layer._CR;}}else {_SE3[_SE3.length]=null;}}}for(var i=persistent.length-1;i>=0;i--){_RE3._NO.__S(persistent[i]);}if(_RE3._sg3===false){_RE3._ok3(true);_3u._YU(_RE3); }else {for(var i=_RE3._NO.length-1;i>=0;i--){var _1u=_RE3._NO._E5(i);_1u._VF._gU(_1u);}_3u._ZU(_RE3);}}_ie._Wf();if(_t3&&!_t3._sg3){var _UE3=_t3._Q71;_t3._WS();_t3._Q71=_UE3;}_t3=_mT._E5(_TH);var _VE3=_t3._sg3;if(_VE3===true&&(_t3._Yj3===false||_OE3===true)){_VE3=false;}if(_VE3===false){_t3._6k3(_t3._Q71);_t3._Bk3();}else {_t3._M03(_t3._2V);_t3._N03(_t3._4V);_t3._J03(_t3._K03);_t3._L03(_t3._Xj3);_t3._qx2(_t3._sg3);_t3._Bk3();for(i=_t3._NO.length-1;i>=0;i--){var _1u=_t3._NO._E5(i);_1u._VF._cU(_1u);}}g_pBuiltIn.room=_t3.id; _5o3();var _VZ=_1q1.w/(_NM.right-_NM.left);var _WZ=_1q1.h/(_NM.bottom-_NM.top);var _5g=(_t3._6g)?_t3._8g:_7g;for(var i=0;i<_5g.length;i++){var _9g=_5g[i];_9g._cg=_9g._Ck3*_VZ+_1q1.x;_9g._eg=_9g._Dk3*_WZ+_1q1.y;_9g._0o3=_9g._Ek3*_VZ;_9g._1o3=_9g._Fk3*_WZ;_9g._dg=_9g._cg+_9g._0o3;_9g._fg=_9g._eg+_9g._1o3;}_KE3(_t3);_fX._WS();if(_3u!=null)_3u._FT(_t3);_aj3();if(_VE3===false){_t3._nk3();_t3._ok3(false);var _WE3=_t3._Q71.pInstances;for(var _G6=0;_G6<_t3._Q71.pInstances.length;_G6++){var _4D=false;var _XE3=_t3._Q71.pInstances[_G6]; if(_XE3.index>=0){for(var _X4=persistent.length-1;_X4>=0;_X4--){if(_XE3.id==persistent[_X4].id){_4D=true;_3u._jU(_t3,persistent[_X4].id);break;}}if(!_4D){var _OZ=_t3._uk3(_XE3.x,_XE3.y,_XE3.id,_XE3.index,_XE3.scaleX,_XE3.scaleY,_XE3.imageSpeed,_XE3.imageIndex,_XE3.rotation,_XE3.colour);_OZ._TE3=false;}}}var _WE3=_t3._Q71.pInstances;for(var _G6=0;_G6<_t3._Q71.pInstances.length;_G6++){var _XE3=_t3._Q71.pInstances[_G6];var _OZ=_Hn._E5(_XE3.id);if(_OZ&&(_OZ._TE3==false)){_OZ._TE3=true;if(!_BL2&&!_v3){if(_XE3.pCode)_XE3.pCode(_OZ, _OZ);_OZ._N5(_2n,0,_OZ,_OZ);if(_XE3.pPreCreateCode)_XE3.pPreCreateCode(_OZ,_OZ);_OZ._N5(_3n,0,_OZ,_OZ);}else {_OZ._N5(_2n,0,_OZ,_OZ);if(_XE3.pPreCreateCode)_XE3.pPreCreateCode(_OZ,_OZ);_OZ._N5(_3n,0,_OZ,_OZ);if(_XE3.pCode)_XE3.pCode(_OZ,_OZ);}}}}else {for(var _X4=persistent.length-1;_X4>=0;_X4--){_3u._iU(_t3,persistent[_X4]);}}for(var _X4=0;_X40)_t3._po3();if(_hM2.length>0)_t3._qo3(); }function _5F3(){if(_t3._v41){if(_v3){_t3._v41._Xf(_x3._y3());}else _t3._v41._Xf(_t3._K03);}else {_Hn._dc3();}}function _6F3(){if((_t3._v41==null)||(_t3._v41==undefined)){_fA2();}}function _7F3(){g_pBuiltIn.delta_time=(_ZD3-g_pBuiltIn._n_2)*1000;g_pBuiltIn._n_2=_ZD3;_0s3();_ug._Dd3();_Yz2();_ie._Xf();_Hn._cc3();_Hn._sc3();_4F3();if(_881!=-1)return;_3u._JU();_zT._is3(_t3,_jB2);_Hn._N5(_jB2,0);_4F3();if(_881!=-1)return;if(_EL2){_EL2=false;_Hn._N5(_QF2,0);}_Ff._AW2();_4F3();if(_881!=-1)return;_RA2();_4F3(); if(_881!=-1)return;_UA2();_4F3();if(_881!=-1)return;_YA2();_4F3();if(_881!=-1)return;_me3();_4F3();if(_881!=-1)return;_rA2();_4F3();if(_881!=-1)return;_fX._X23(_t3);_zT._fs3(_t3);_zT._is3(_t3,_lB2);_Hn._N5(_lB2,0);_4F3();if(_881!=-1)return;_qs3();_5F3();_Zz2();_4F3();if(_881!=-1)return;_co1();_4F3();if(_881!=-1)return;_6F3();_4F3();if(_881!=-1)return;_zT._is3(_t3,_nB2);_Hn._N5(_nB2,0);_4F3();if(_881!=-1)return;_Wi3();if(_t3!=null){_t3._mo3();if(_mM){_t3._19();_4F3();}}_t3._Hk3();_3F3();_va1();}function _5o3(){ var left,right,top,bottom;left=0;right=-999999;top=0;bottom=-999999;if(_t3._6g){for(var i=0;i<_t3._8g.length;i++){var _9g=_t3._8g[i];if(_9g.visible){if(right<_9g._Ck3+_9g._Ek3)right=_9g._Ck3+_9g._Ek3;if(bottom<_9g._Dk3+_9g._Fk3)bottom=_9g._Dk3+_9g._Fk3;}}}else {left=0;right=_t3._2V;top=0;bottom=_t3._4V;_dL2._Ek3=_dL2._9j1=right;_dL2._Fk3=_dL2._aj1=bottom;}if(_Vp1){if(!_0q1){_Yi1=_Wp1;_Zi1=_Xp1;}}else {_Yi1=_Gn1;_Zi1=_Hn1;if(surface_exists(_Ki1)){surface_free(_Ki1);_Ki1=-1;}}_0q1=_Vp1;_Hj1=_Gn1;_Ij1=_Hn1; _On1=_Yi1/(right-left);_Pn1=_Zi1/(bottom-top);var _e4=new _IF();_e4.left=left;_e4.top=top;_e4.right=right;_e4.bottom=bottom;_NM=_e4;_6N=_e4.left;_7N=_e4.top;_4N=_e4.right-_e4.left;_5N=_e4.bottom-_e4.top;_Yp1();}function _8F3(){var w=640;if(typeof(_oE.window.innerWidth)=='number'){w=_oE.window.innerWidth;}else if(_oE.document.documentElement&&_oE.document.documentElement.clientWidth){w=_oE.document.documentElement.clientWidth;}else if(_oE.document.body&&document.body.clientWidth){w=_oE.document.body.clientWidth; }return w;}function _9F3(){var h=480;if(typeof(_oE.window.innerHeight)=='number'){h=_oE.window.innerHeight;}else if(_oE.document.documentElement&&_oE.document.documentElement.clientHeight){h=_oE.document.documentElement.clientHeight;}else if(_oE.document.body&&document.body.clientHeight){h=_oE.document.body.clientHeight;}return h;}function _PK(){var w=640;if(typeof(window.innerWidth)=='number'){w=window.innerWidth;}else if(document.documentElement&&document.documentElement.clientWidth){w=document.documentElement.clientWidth; }else if(document.body&&document.body.clientWidth){w=document.body.clientWidth;}return w;}function _QK(){var h=480;if(typeof(window.innerHeight)=='number'){h=window.innerHeight;}else if(document.documentElement&&document.documentElement.clientHeight){h=document.documentElement.clientHeight;}else if(document.body&&document.body.clientHeight){h=document.body.clientHeight;}return h;}function _aF3(string){string=string.replace(String.fromCharCode(0x0a)+String.fromCharCode(0x0d)+String.fromCharCode(0x0a),"\n"); var _bF3="";for(var _t6=0;_t6127)&&(c<2048)){_bF3+=String.fromCharCode((c>>6)|192);_bF3+=String.fromCharCode((c&63)|128);}else if((c>2047)&&(c<32768)){_bF3+=String.fromCharCode((c>>12)|224);_bF3+=String.fromCharCode(((c>>6)&63)|128);_bF3+=String.fromCharCode((c&63)|128);}else {_bF3+=String.fromCharCode(((c>>18)&7)|240);_bF3+=String.fromCharCode(((c>>12)&63)|128);_bF3+=String.fromCharCode(((c>>6)&63)|128); _bF3+=String.fromCharCode((c&63)|128);}}return _bF3;}function _uZ2(_cF3){return(_dF3(_cF3)||_eF3(_cF3));}function _dF3(_cF3){var _fF3=_cF3.charCodeAt(0);if((_fF3>47)&&(_fF3<58)){return true;}return false;}function _eF3(_cF3){var _fF3=_cF3.charCodeAt(0);if(((_fF3>64)&&(_fF3<91))||((_fF3>96)&&(_fF3<123))){return true;}return false;}function _gF3(_h02){var _ni="";for(var i=0;i<_h02.length;i++){var _g4=_h02[i]&0xff;_ni=_ni+_6M2[_g4>>4]+_6M2[_g4&0xf];}return _ni;}function _hF3(_B3){var _ni="";for(var i=0;i<8;i++){_ni=_ni+_6M2[((_B3>>28)&0xf)]; _B3=_B3<<4;}return _ni;}function _iF3(){var _jF3=new Fingerprint().get();return _jF3;}function _kF3(_Tl){var _C01=new Uint8Array(_Tl.length);for(var i=0,_lF3=_Tl.length;i<_lF3;i++){_C01[i]=_Tl.charAt(i);}return _C01;};function _mF3(_AX2){return String.fromCharCode.apply(null,new Uint8Array(_AX2));};function _nF3(_AX2){return String.fromCharCode.apply(null,new Uint16Array(_AX2));};function _oF3(_Tl){var _AX2=new ArrayBuffer(_Tl.length*2);var _C01=new Uint16Array(_AX2);for(var i=0,_lF3=_Tl.length;i<_lF3;i++){_C01[i]=_Tl.charCodeAt(i); }return _AX2;};function _pF3(){_ag(canvas,_bg);_In1=_bg.top;_Jn1=_bg.left;_Kn1=_bg.right;_Ln1=_bg.bottom;_gj1(_1a);if((_ML2!=canvas.width)||(_NL2!=canvas.height)){_EL2=true;}_ML2=canvas.width;_NL2=canvas.height;var w=_PK();var h=_QK();if((_gn1)&&(!_FL2)){if((_Mn1!=w)||(_Nn1!=h)){_FL2=true;_gn1=false;}}if(_FL2){_FL2=false;if(_gn1){w=_EL;h=_GL;_gn1=false;canvas.style.position=_LD3;canvas.style.left=_MD3;canvas.style.top=_ND3;canvas.style.margin=_SD3;canvas.style.cssText=_OD3;if(!_RD3){if(canvas.parentNode!=_PD3){ _PD3.insertBefore(canvas,_QD3);}}}else {_gn1=true;window_set_position(0,0);if(!_RD3){if(canvas.parentNode==_PD3){_PD3.removeChild(canvas);document.body.insertBefore(canvas,null);}}}canvas.width=w;canvas.height=h;_Gn1=canvas.width;_Hn1=canvas.height;_Jn1=canvas.offsetLeft;_Kn1=_Jn1+_Gn1;_In1=canvas.offsetTop;_Ln1=_Jn1+_Hn1;_Mn1=_Gn1;_Nn1=_Hn1;_Hj1=w;_Ij1=h;_On1=1;_Pn1=1;_5o3();}}var _qF3=0;var _rF3=0;function _EE3(){if(_e8){_e8._Dj1();}var _Q93;if(_v3){_x3._Xf();_Q93=_x3._y3();}else {_Q93=_t3._u3();if(_Q93<=0){ _Q93=1;_t3._J03(1);}}const _sF3=_ZD3;_ZD3=Date.now();const _tF3=(_ZD3-_sF3)*1000;_2m1._WA2(_tF3);_2n1._WA2(_tF3);if(_ZD3>=_WD3+1000){if(_ZD3-__D3<2000){_xz2=_XD3;g_pBuiltIn.fps=_xz2;}_XD3=0;_WD3=_ZD3;}_XD3++;var _uF3=__D3+1000/_Q93;var now=Date.now();var _XU1=__D3+1000/_Q93-now;if(_XU1<0)_XU1=0;__D3=now+_XU1;if(_XU1>4){setTimeout(function(){if(window._7E3){window._7E3(_9E3);}else {}},_XU1);}else {if(window._7E3){window._7E3(_9E3);}else {window.postMessage("yyRequestAnimationFrame","*");}}if(!_Wz2){_pF3(); var _vF3=10;var _7C1=false;while(!_7C1){_7C1=true;if(_t3===null){_dL2._dg=_dL2._0o3=_dL2._Ek3=_dL2._9j1=_Gn1;_dL2._fg=_dL2._1o3=_dL2._Fk3=_dL2._aj1=_Hn1;}else {_5o3();}_s63();_7F3();_u63();switch(_881){case -1:break;case _c81:case _HF2:_2F3(false);return;case _d81:_2F3(true);_mT._xo3();_DE3();break;case _GF2:_NN2();break;default :_0F3(_881);_7C1=false;break;}_vF3--;if(_vF3<=0)break;}_Vn1=0;_Wn1=0;}if(_rE.Options&&_rE.Options.debugMode){UpdateDebugWindow();}}