Topic: [grain] type plant always produce the same weight of grains  (Read 17289 times)


caethan

« on: October 02, 2017, 03:01:11 AM »
I've been playing with the plant modding and found an odd inconsistency. 

For most plants, when I want them to produce seeds, I can modify the weight of seeds produced with the SEED_VOLUME and SEED_SIZE properties, as follows:

pinch, S: 0.007358 lbs (e.g., turnip seeds)
fistful, S: 0.022075 lbs
pinch, M: 0.036792 lbs
pinch, L: 0.044150 lbs
fistful, M: 0.110375 lbs
fistful, L: 0.132450 lbs

Any plants with the type [grain] in the header line, however, always produce a unit of grains weighing 0.110375 lbs, equivalent to a fistful of medium seeds, regardless of how I set the properties.  You can see this with both barley and rye, both of which produce small fistfuls of grains, each of which weigh 0.110375 lbs.

Sami

  • UnReal World creator
  • Administrator
  • Member
  • *****
  • Posts: 1270
  • Total likes: 3177
  • UnReal World creator
    • View Profile
    • UnReal World
« Reply #1 on: October 22, 2017, 10:40:59 AM »
True indeed. Checked out the code and grain type plant's fistful size is hardcoded for some reason.
I can't remember why that sort of decision has been made, especially as flora files have seed_size defined for grains...although it's defined as Small, which is a bit off for the grains in the game. Gotta reason my reasoning regarding this at some point.
- Sami | UnReal World creator