RobustToolbox icon indicating copy to clipboard operation
RobustToolbox copied to clipboard

Fluent dot attributes for custom prototypes

Open Macoron opened this issue 3 years ago • 0 comments
trafficstars

Right now localized prototype looks like this:

- type: reagent
  id: Ephedrine
  name: reagent-name-ephedrine
  desc: reagent-desc-ephedrine
  physicalDesc: reagent-physical-desc-powdery

It's painful to work with. We can replace it by fluent dot attributes like it's done for entity prototypes:

reagent-ephedrine = ephedrine
        .desc = Increases stun resistance and movement speed, giving you hand cramps. Overdose deals toxin damage and inhibits breathing.
        .physical-desc = {reagent-physical-desc-odorless}

Macoron avatar May 04 '22 18:05 Macoron