# This file defines a daily_gift, which can be opened once every day.
# The gift is opened by harvesting it and will respawn when the date rolls over.
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { Persistence }
using { Verse.Scripts.TimeSystem }
using { UserInterface }
using { /UnrealEngine.com/Temporary/Diagnostics }
#loot_module<public>:= module:
log_daily_gift := class(log_channel):
daily_gift := class(creative_device):
Logger: log = log{Channel := log_daily_gift, DefaultLevel := log_level.Normal}
# The real time device used to track the daily gift opening time.
@editable
RealTime:Verse.Scripts.TimeSystem.real_time = Verse.Scripts.TimeSystem.real_time{}
# UI manager for updating resource and price UIs.
@editable
UIManager:ui_manager = ui_manager{}
# Prop asset containing an effect to show when the gift is opened (harvested) and respawned.
@editable
GiftEffect:creative_prop_asset = DefaultCreativePropAsset
Verse Library
verse
Daily Gift
verse-source/SampleVerse/SantaToyFactory/daily_gift.verse
Sign in free to read the full source 🌴
This Verse Library file is members-only. Create a free account to view the complete source and download the .verse file.