2024-12-18 17:32:36 +00:00
|
|
|
extends ItemBase
|
|
|
|
|
|
|
|
func _init():
|
|
|
|
id = "CatnipPlant"
|
|
|
|
|
|
|
|
func getVisibleName():
|
|
|
|
return "Catnip"
|
|
|
|
|
|
|
|
func getDescription():
|
2024-12-19 23:37:21 +00:00
|
|
|
return "An enticing plant for most of felines. Used as harmful drug, unless in large quantities. Can have effects on a feline if consumed."
|
2024-12-18 17:32:36 +00:00
|
|
|
|
|
|
|
func canUseInCombat():
|
2024-12-19 23:37:21 +00:00
|
|
|
return true
|
2024-12-18 17:32:36 +00:00
|
|
|
|
2024-12-19 23:37:21 +00:00
|
|
|
func useInCombat(_attacker, _receiver):
|
|
|
|
if "feline" in _attacker.getSpecies():
|
2024-12-18 17:32:36 +00:00
|
|
|
if(!(_attacker.isPlayer() and GM.main.getFlag("HypnokinkModule.SoftOptIn") == false)):
|
2024-12-19 23:37:21 +00:00
|
|
|
_attacker.addEffect(StatusEffect.Suggestible, [5])
|
2024-12-18 17:32:36 +00:00
|
|
|
_attacker.addLust(10)
|
|
|
|
removeXOrDestroy(1)
|
|
|
|
return _attacker.getName() + " ate a catnip plant! That feels... Wahhaa."
|
|
|
|
else:
|
|
|
|
removeXOrDestroy(1)
|
|
|
|
return _attacker.getName() + " ate a catnip plant! It didn't have any effect."
|
|
|
|
|
|
|
|
func getPossibleActions():
|
2024-12-19 23:37:21 +00:00
|
|
|
return [
|
|
|
|
{
|
|
|
|
"name": "Eat one!",
|
|
|
|
"scene": "UseItemLikeInCombatScene",
|
|
|
|
"description": "Eat the catnip",
|
|
|
|
},
|
|
|
|
]
|
2024-12-18 17:32:36 +00:00
|
|
|
|
|
|
|
func getPrice():
|
|
|
|
return 0
|
|
|
|
|
|
|
|
func canSell():
|
|
|
|
return true
|
|
|
|
|
|
|
|
func canCombine():
|
|
|
|
return true
|
|
|
|
|
|
|
|
func tryCombine(_otherItem):
|
|
|
|
return .tryCombine(_otherItem)
|
|
|
|
|
|
|
|
func getTags():
|
|
|
|
return []
|
|
|
|
|
|
|
|
func getItemCategory():
|
|
|
|
return ItemCategory.Medical
|
|
|
|
|
|
|
|
func saveData():
|
|
|
|
var data = .saveData()
|
|
|
|
return data
|
|
|
|
|
|
|
|
func loadData(data):
|
|
|
|
.loadData(data)
|
|
|
|
|
|
|
|
func getInventoryImage():
|
|
|
|
return "res://Modules/IssixModule/Items/Icons/catnip.png"
|