forked from jewalky/redhat
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrelic.h
More file actions
22 lines (14 loc) · 629 Bytes
/
relic.h
File metadata and controls
22 lines (14 loc) · 629 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once
#include <functional>
#include "CCharacter.hpp"
extern CItem ascension_staff;
extern CItem ascension_crown;
bool IsRelic(const CItem& item);
uint32_t ReadSigil(const CItem& item);
bool EmbossSigil(CItem& item, uint32_t sigil);
// ClaimedRelics checks whether the character has achieved a given relic at least once before.
// Ascension can be awarded multiple times, so we return an int. Circles can only be awarded once.
int ClaimedRelics(const CCharacter& chr, int ascended, uint16_t item_id);
uint32_t BestowSigil(const CCharacter& chr);
bool MigrateRelics(bool dry_run);
void RestoreRelics(bool dry_run);