pub struct KillFaucetDailyState {
pub granted: i64,
pub d_micro: i64,
pub cap: i64,
pub last_reset_at: DateTime<Utc>,
}Expand description
One family’s day.
The band (d, cap) is SNAPSHOTTED on the first eligible roll after the daily
reset and then frozen until the next one. Chapter, mode, build or power
progress during the day never reprices it and never restores a chance that
has already decayed — otherwise pushing a few chapters mid-session would
refresh a spent faucet, which is exactly the unattended-farm loop the cap
exists to bound.
Stored in integers so CharacterState keeps its Eq: granted units are
whole by construction (one Cookie, one stone, packet Essence), and D is
held in micro-units the way BAL-021 holds Plinko tranches.
Fields§
§granted: i64Units actually GRANTED today, not roll attempts. A proc clipped to the remaining budget counts only what it paid out.
d_micro: i64Snapshotted D in micro-units (D × 1_000_000).
cap: i64Snapshotted ceil(2 × D).
last_reset_at: DateTime<Utc>Implementations§
Trait Implementations§
Source§impl Clone for KillFaucetDailyState
impl Clone for KillFaucetDailyState
Source§fn clone(&self) -> KillFaucetDailyState
fn clone(&self) -> KillFaucetDailyState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for KillFaucetDailyState
impl Debug for KillFaucetDailyState
Source§impl<'de> Deserialize<'de> for KillFaucetDailyState
impl<'de> Deserialize<'de> for KillFaucetDailyState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for KillFaucetDailyState
impl JsonSchema for KillFaucetDailyState
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read more