mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-30 01:41:40 +00:00
The Fire Temple chests drop their loot matrix and coins from currency table 132 at level 1 for the player, and set the flag their precondition targets. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
14 lines
629 B
C++
14 lines
629 B
C++
#pragma once
|
|
#include "CppScripts.h"
|
|
#include <optional>
|
|
|
|
// L_ELEMENTAL_CHESTS_SERVER.lua (Fire Temple chests, LOT 16837-16841): used (its CheckPrecondition is checked on use
|
|
// as for any object), it drops its loot matrix and coins from currency table 132 at level 1 for the player, and sets
|
|
// the flag its precondition targets.
|
|
class ElementalChestsServer : public CppScripts::Script {
|
|
public:
|
|
void OnUse(Entity* self, Entity* user) override;
|
|
// The flag a CheckPrecondition value targets (the precondition's targetLOT), or nothing
|
|
static std::optional<uint32_t> PreconditionFlag(const std::string& checkPrecondition);
|
|
};
|