;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[@ChangeAtom]
{

#IF
checkweaponlevel 1

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponChangeAtom.txt] @Convert_WeaponChangeAtom_0

#ELSEACT
break

#IF
!HasWeaponAtom

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponChangeAtom.txt] @Convert_WeaponChangeAtom_1

#ACT
break

#IF
checkgold 2000000

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponChangeAtom.txt] @Convert_WeaponChangeAtom_2


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponChangeAtom.txt] @Convert_WeaponChangeAtom_3

[@ChangeAtom_Next]
#IF
checkweaponlevel 1

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponChangeAtom.txt] @Convert_WeaponChangeAtom_4

#ELSEACT
break

#IF
checkgold 2000000

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponChangeAtom.txt] @Convert_WeaponChangeAtom_5


#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponChangeAtom.txt] @Convert_WeaponChangeAtom_6

[@ChangeAtom()]
#IF
#ACT
Mov A0 %ARG(1)
Mov A1 %ARG(2)
Mov D0 %ARG(3)

#IF
checkweaponlevel 1

#ELSESAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponChangeAtom.txt] @Convert_WeaponChangeAtom_7

#ELSEACT
break

#IF
checkgold 2000000
#ACT
ChangeWeaponAtom %D0
take ½ð±Ò 2000000

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\System\WeaponChangeAtom.txt] @Convert_WeaponChangeAtom_8

}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;