Author Topic: Custom names for crafting recepies  (Read 124 times)

Offline Maddremor

  • Zombie Food
  • *
  • Posts: 24
    • View Profile
Custom names for crafting recepies
« on: May 26, 2017, 02:35:04 PM »
Currently, recepies are listed in the crafting menu by the end product. If multiple recepies have the same result, they also get the same name. We have the tag "id_suffixā€¯ as to not have variant recepies overwrite each other, but this is not visible to the player. Soups are an example of this. The liquid only, the soup in a mason jar, and the soup in a tin can are identically named.

I propose that recepies be given an optional value in JSON giving display names. The format could be something akin to
Code: [Select]
"name" : "jar of %s" where %s inserts the crafting product. If no name is given in a recipe, assume
Code: [Select]
"name" : "%s" In addition to differentiating variant recepies, this could give some more flavor to recepies, communicating to the player how they are crafting something. For example, "bake flatbread" or "whittle pointy stick".

On a scale from flipping a boolean to rewriting the game, how hard would this be to implement?

Offline Kevin Granade

  • Administrator
  • Survivor
  • *****
  • Posts: 5384
  • I code dead people.
    • View Profile
Re: Custom names for crafting recepies
« Reply #1 on: May 26, 2017, 05:16:28 PM »
On a scale from flipping a boolean to rewriting the game, how hard would this be to implement?
Your scale is a bit broken, on that scale I'd say something like 0.000000001, but that's not very helpful since basically no change ever gets above 0.000001 or so :)

It wouldn't be hard at all, you'd need to add the parameter and update the print function for recipes, that's it.
Its like a fun family cookout, except your family is burning in flames while trying to eat you. -secretfire
I'm more excited than a survivor on meth and toast'ems. -Nighthawk
The the giant wasp is slammed through the zombie brute!