From c8f0fda7be8a11d1df78ea2780166a3897e1e802 Mon Sep 17 00:00:00 2001 From: Feafly Date: Mon, 7 Oct 2024 12:58:51 +0800 Subject: [PATCH] Feather Fixed (SyntaxErrors) Fixed what Feather mistook for syntax errors. --- objects/battle_soul_red/Step_0.gml | 2 +- objects/closed_captions/Step_0.gml | 11 ++++--- objects/face/Step_2.gml | 12 +++---- objects/text_typer/Other_10.gml | 4 +-- objects/text_typer/Other_12.gml | 20 ++++++------ scripts/Anim_Create/Anim_Create.gml | 6 ++-- scripts/Anim_GetValue/Anim_GetValue.gml | 19 +++++------ scripts/Item_Custom/Item_Custom.gml | 12 +++---- tilesets/tile_ruins/tile_ruins.yy | 43 +++++++++++++++---------- undertale_engine.yyp | 2 +- 10 files changed, 70 insertions(+), 61 deletions(-) diff --git a/objects/battle_soul_red/Step_0.gml b/objects/battle_soul_red/Step_0.gml index d9fab24f..99ce45f1 100644 --- a/objects/battle_soul_red/Step_0.gml +++ b/objects/battle_soul_red/Step_0.gml @@ -3,7 +3,7 @@ event_inherited(); //移动 if(Battle_GetState()==BATTLE_STATE.IN_TURN && moveable){ var SPD=Player_GetSpdTotal() - var SPD=(Input_IsHeld(INPUT.CANCEL) ? SPD/2 : SPD); + SPD=(Input_IsHeld(INPUT.CANCEL) ? SPD/2 : SPD); repeat(SPD*10){ if(Input_IsHeld(INPUT.UP)){ if(!position_meeting(x,y-sprite_height/2,block)){ diff --git a/objects/closed_captions/Step_0.gml b/objects/closed_captions/Step_0.gml index e4908f71..750de552 100644 --- a/objects/closed_captions/Step_0.gml +++ b/objects/closed_captions/Step_0.gml @@ -1,3 +1,4 @@ +var proc=0; //处理新增字幕队列 while(!ds_queue_empty(_queue_text)){ var text=ds_queue_dequeue(_queue_text); @@ -17,7 +18,7 @@ while(!ds_queue_empty(_queue_text)){ } //处理显示时间 -var proc=0; +proc=0; repeat(ds_list_size(_list_inst)){ if(instance_exists(_list_inst[|proc])){ if(_list_time[|proc]>0){ @@ -30,7 +31,7 @@ repeat(ds_list_size(_list_inst)){ } //处理字幕显示完毕 -var proc=0; +proc=0; repeat(ds_list_size(_list_inst)){ if(_list_time[|proc]<=0){ var inst=_list_inst[|proc]; @@ -49,7 +50,7 @@ repeat(ds_list_size(_list_inst)){ } //处理字幕高度 -var proc=0; +proc=0; var height=0; repeat(ds_list_size(_list_inst)){ var inst=_list_inst[|proc]; @@ -77,7 +78,7 @@ if(height>_up){ } //处理字幕位置 -var proc=0; +proc=0; var yy=_y-up_show; repeat(ds_list_size(_list_inst)){ var inst=_list_inst[|proc]; @@ -94,7 +95,7 @@ repeat(ds_list_size(_list_inst)){ } //处理销毁实例列表 -var proc=0; +proc=0; repeat(ds_list_size(_list_destroy_inst)){ if(_list_destroy_time[|proc]<=0){ var inst=_list_destroy_inst[|proc]; diff --git a/objects/face/Step_2.gml b/objects/face/Step_2.gml index b76f2b84..b03b828e 100644 --- a/objects/face/Step_2.gml +++ b/objects/face/Step_2.gml @@ -1,12 +1,12 @@ if(emotion!=_emotion_previous || talking!=_talking_previous){ if(talking){ - sprite_index=((emotion>=0 && emotion=0 && emotion=0 && emotion=0 && emotion=0 && emotion=0 && emotion=0 && emotion=0 && emotion=0 && emotion=0 && emotion=0 && emotion=0 && emotion=0){ var sound=-1; - if(_voice_single>=0&&_voice_single=0&&_voice_single=0 && cmd[|1]=0 && cmd[|1]=0 && cmd[|1]=0 && cmd[|1]=0&&cmd[|1]=0&&cmd[|1]=0 && fface=0 && fface=0){ if(instance_exists(TARGET)){ var proc=0; - var proc_result=0; var inst_find=noone; repeat(instance_number(TARGET)){ @@ -90,6 +90,4 @@ function Anim_Create() { } } return inst_result; - - } diff --git a/scripts/Anim_GetValue/Anim_GetValue.gml b/scripts/Anim_GetValue/Anim_GetValue.gml index cb914a4d..7bd32b93 100644 --- a/scripts/Anim_GetValue/Anim_GetValue.gml +++ b/scripts/Anim_GetValue/Anim_GetValue.gml @@ -21,7 +21,8 @@ function Anim_GetValue() { var b=0; var c=1; var d=1; - + var s; + switch(TWEEN){ case ANIM_TWEEN.LINEAR: r=(t/d)*c+b; @@ -185,9 +186,9 @@ function Anim_GetValue() { case ANIM_TWEEN.BACK: if(ARG_0>0){ - var s=ARG_0; + s=ARG_0; }else{ - var s=1.70158; + s=1.70158; } switch(EASE){ case ANIM_EASE.IN: @@ -230,9 +231,9 @@ function Anim_GetValue() { } if(a==0||a