Ludeon Forums

Ludeon Forums

  • December 02, 2022, 07:09:23 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: How to prevent quest rewards?  (Read 651 times)

UncleIROH

  • Drifter
  • **
  • Posts: 37
    • View Profile
How to prevent quest rewards?
« on: July 13, 2018, 01:25:42 PM »

I have items/buildings that are showing up in quest rewards and I'd like to prevent it. They already have the <tradeability>None</tradeability> set, but the game appears to ignore this for quest rewards.
Logged

Jaxxa

  • Super Tester
  • Planetologist
  • ***
  • Posts: 1236
  • Refugee
    • View Profile
Re: How to prevent quest rewards?
« Reply #1 on: July 16, 2018, 10:58:49 PM »

What is your goal for this?
Do you want that building to just never appear in the game at all?

Karthas077

  • Drifter
  • **
  • Posts: 27
  • Muffalo in disguise
    • View Profile
Re: How to prevent quest rewards?
« Reply #2 on: July 17, 2018, 04:30:55 AM »

There is no way to prevent the game from generating an item or minified building using only XML.

Unfortunately each of the different types of quests has their own version of ItemCollectionGenerator_Rewards. The only way you could safely remove it from all quest rewards would be to either patch ItemCollectionGeneratorUtility.Reset() to keep it out of the main list, or patch each of the quest types to reject it as a possible reward. There really should be a tag that you can apply to let the game know that an item or minified building should be exclusively craftable.
Logged