| 413 | ////////////////////////////////////////////////////////////////////////// |
| 414 | |
| 415 | int CScriptGameObject::GetGoodwill(CScriptGameObject* pToWho) |
| 416 | { |
| 417 | CInventoryOwner* pInventoryOwner = smart_cast<CInventoryOwner*>(&object()); |
| 418 | |
| 419 | if (!pInventoryOwner) |
| 420 | { |
| 421 | ai().script_engine().script_log(ScriptStorage::eLuaMessageTypeError, "GetGoodwill available only for InventoryOwner"); |
| 422 | return 0; |
| 423 | } |
| 424 | return RELATION_REGISTRY().GetGoodwill(pInventoryOwner->object_id(), pToWho->object().ID()); |
| 425 | } |
| 426 | |
| 427 | void CScriptGameObject::SetGoodwill(int goodwill, CScriptGameObject* pWhoToSet) |
| 428 | { |
nothing calls this directly
no test coverage detected