CityRP Documentation Repository

Weed grow overhaul

Last updated

Scope

In: grow tent → pot care (water + UV) → trim minigame → dry rack → package minigame + baggie → Stormzy (quality + strain demand price).

Out: customer AI / phone deals / employees, additive mixing tree. No printer/lab buff in this change.

Strains (added): five named seed strains with per-restart demand (meth-style map load roll, not calendar day / not IG day).

Loop

  1. Place grow tent, pot, UV, drying rack, packaging station.
  2. Buy a strain seed ($2500) and plant (tent required; 1 pot per tent; max 5 tents / 5 pots).
  3. Grow ~17.5 min. Water into today's hidden moisture band (15% wide, rolled into 30–80). Keep UV LOS. Moisture HUD stays deliberately vague (always amber).
  4. Trimmers → wet bud (quality, strain, harvested_at) + 10% seed loss (30% if quality ≤ 60), with an explicit reason.
  5. Hang on drying rack ~3 min. Early / overdry penalties apply.
  6. Package → bagged weed keeps strain + quality.
  7. Sell to Stormzy — he names the hot strain; that strain pays ~110% of the old quality ceiling, others 70–90% of base (multipliers hidden).

Daily market (restart-scoped)

Rolled in cityrp.weed.RollMarket() on plugin/map load (same boundary as meth's formula):

Roll Meaning
hotStrain Only strain Stormzy advertises; HotStrainMultiplier (1.10)
multipliers[strain] Hot = 1.10; others uniform 0.70–0.90
moistureMin/Max Ideal care band, width 15, within 30–80

Synced to clients via CityRP.Weed.MarketSync.

Quality drivers (0–100)

Factor Role
Moisture discipline Time in today's ideal band
Light coverage Care ticks with light ≥ 50
Harvest / wet / dry windows Overripe, inventory rot, early/overdry
Strain demand Sell multiplier only (does not change grow quality)
Packaging Required to sell (baggie sink)

Economy

  • Unit price: floor(GetUnitPrice(q) * demandMult) where base is max(50, floor(q² × 0.052))
  • Brownies: GetBrowniePrice = GetUnitPrice × 15 × 1.15 (~$9000 at q100 non-hot). Cooked via stove; quality/strain injected from consumed weed.
  • Legacy stacks without quality sell as ~40% quality at their strain mult
  • Seeds: $2500 each strain (25% above legacy $2000); seed return is no longer guaranteed
  • Moisture ideal band is server-only (not MarketSync'd) — same idea as meth's true formula

Plugin

Everything weed-related lives under gamemode/core/plugins/weed/ (entities, weapons, items, minigames, cityrp.weed helpers), including Stormzy, pot, seed, UV, and bagged weed / brownies.