/*
* Relic Custody (olds_relic) API, for the team artifact add-on or a bridge plugin.
* Copyright (C) 2026 daemon (olds.ro)
* SPDX-License-Identifier: GPL-3.0-or-later
*/
#if defined _olds_relic_included
#endinput
#endif
#define _olds_relic_included
#pragma reqlib olds_relic
#if !defined AMXMODX_NOAUTOLOAD
#pragma loadlib olds_relic
#endif
/**
* The artifact was given to (or picked up by) the player: his hold starts. If someone
* else held it, that hold ends. Calling it again for the holder changes nothing.
* A player who dropped it and gets it back within 1 second keeps one hold.
*
* @param id player index
* @return 1 on success
* @error invalid or disconnected player
*/
native olds_relic_granted(id);
/**
* The holder dropped the artifact (it lies on the ground): his hold ends.
*
* @param id player index (the holder)
* @return 1 when id held it, 0 otherwise
*/
native olds_relic_dropped(id);
/**
* The artifact went straight from one player to another.
*
* @param from the old holder (0 when unknown)
* @param to the new holder
* @return 1 on success
* @error invalid or disconnected new holder
*/
native olds_relic_transferred(from, to);
/**
* The artifact was reset (returned to its base, removed): any hold ends.
*/
native olds_relic_reset();