Opened 4 years ago

Closed 4 years ago

#45 closed defect (fixed)

Olivine should infer item type from constants

Reported by: jonathan Owned by: jonathan
Priority: trivial Component: Olivine
Version: Keywords:
Cc:

Description

The following example doesn't work:

const $weapon = item &diamond_pickaxe with {
    name → "Magic Pickaxe"

    description →
        "I hit you with my pickaxe\n" ::
        "Only pickaxe I'll ever have fer me luv!"
    modifiers → {
        health → { operator → boost; amount → 5 }
        stability → { operator → boost; amount → 2.3 }
    }
    enchantments → [
        { type → sharpness; level → 5 }
        { type → knockback; level → 2 }
        { type → unbreaking; level → 5 }
    ]
}

It works if you declare $weapon as an item

Change History (1)

comment:1 Changed 4 years ago by jonathan

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in 8.10.6-Blackberry

Note: See TracTickets for help on using tickets.