| 425 | } |
| 426 | |
| 427 | void CScriptGameObject::SetGoodwill(int goodwill, CScriptGameObject* pWhoToSet) |
| 428 | { |
| 429 | CInventoryOwner* pInventoryOwner = smart_cast<CInventoryOwner*>(&object()); |
| 430 | |
| 431 | if (!pInventoryOwner) |
| 432 | { |
| 433 | ai().script_engine().script_log(ScriptStorage::eLuaMessageTypeError, "SetGoodwill available only for InventoryOwner"); |
| 434 | return; |
| 435 | } |
| 436 | return RELATION_REGISTRY().SetGoodwill(pInventoryOwner->object_id(), pWhoToSet->object().ID(), goodwill); |
| 437 | } |
| 438 | |
| 439 | void CScriptGameObject::ChangeGoodwill(int delta_goodwill, CScriptGameObject* pWhoToSet) |
| 440 | { |
nothing calls this directly
no test coverage detected