function MasicPointAddNormal(Rate){
let MagicPoint = GetCommonData("MAGICPOINT");
let AddPoint = GetCommonData("MAGICPOINT_ADD");

if(OnBomb == false){
MagicPoint += AddPoint * Rate;
SetCommonData("MAGICPOINT",MagicPoint);
}
}

function MasicPointReduce{
let MagicPoint = GetCommonData("MAGICPOINT");
let ReducePoint = GetCommonData("MAGICPOINT_REDUCE");

MagicPoint -= ReducePoint;
if(0 >= MagicPoint){MagicPoint = 0;}
SetCommonData("MAGICPOINT",MagicPoint);
}

function MagicPointAddNormal(Rate){
let MagicPoint = GetCommonData("MAGICPOINT");
let AddPoint = GetCommonData("MAGICPOINT_ADD");

if(OnBomb == false){
MagicPoint += AddPoint * Rate;
SetCommonData("MAGICPOINT",MagicPoint);
}
}

function MagicPointReduce{
let MagicPoint = GetCommonData("MAGICPOINT");
let ReducePoint = GetCommonData("MAGICPOINT_REDUCE");

MagicPoint -= ReducePoint;
if(0 >= MagicPoint){MagicPoint = 0;}
SetCommonData("MAGICPOINT",MagicPoint);
}

function MagicPowerAdd(isBig){
let MP = GetCommonData("MAGICPOWER");
if(isBig == true){
MP += 3;
}
else if(isBig == false){
MP += 0.5;
}
SetCommonData("MAGICPOWER",MP);
}

function ChackBonus{
scorebonus = GetCommonData("SCOREBONUS");
spellbonus = GetCommonData("SPELLBONUS");
}

function FullItemSet(x,y){//アイテム生成関数
let XY=GetCommonDataDefault("ItemXY",[]);//共通データ内容を変数に渡す
XY=XY~[x,y];//アイテムの位置のデータを配列に結合させる
SetCommonData("ItemXY",XY);//共通データに変更後の配列を渡す
}