2024-12-31 22:36:04 +00:00
extends ItemBase
2025-01-07 17:40:51 +00:00
var quality = 1.0
2024-12-31 22:36:04 +00:00
func _init ( ) :
id = " LuckToken "
2025-01-07 17:40:51 +00:00
quality = RNG . randf_range ( 0.5 , 1.0 )
2024-12-31 22:36:04 +00:00
func getVisibleName ( ) :
return " Luck Token "
func getDescription ( ) :
return " A flashy gold colored metal square with circular indention in the center, it weights quite a bit. According to Issix it may be possible to exchange it for something in the prison... "
func canUseInCombat ( ) :
return false
func getPossibleActions ( ) :
return [ ]
func getPrice ( ) :
return 0
func canSell ( ) :
return false
func canCombine ( ) :
return true
2025-01-07 17:40:51 +00:00
func getQuality ( ) :
return quality
2024-12-31 22:36:04 +00:00
func tryCombine ( _otherItem ) :
return . tryCombine ( _otherItem )
func getTags ( ) :
return [ ]
func getItemCategory ( ) :
return ItemCategory . Generic
func saveData ( ) :
var data = . saveData ( )
2025-01-07 17:40:51 +00:00
data [ " quality " ] = quality
2024-12-31 22:36:04 +00:00
return data
func loadData ( data ) :
. loadData ( data )
2025-01-07 17:40:51 +00:00
quality = SAVE . loadVar ( data , " quality " , " " )
2024-12-31 22:36:04 +00:00
func getInventoryImage ( ) :
return " res://Modules/IssixModule/Items/Icons/lucktoken.png "