Skip to content

Universal Seasoning overconsumption #42

@SalMonella01

Description

@SalMonella01

I don't know how I did it, but I have a player with quantity 1 Universal Seasoning but _universalSeasoningsUsed = 3. I suspect that this is a mafia bug, but here's what I used to work around it:

*** INFO.ash	Wed Dec 24 17:28:32 2025
--- INFO.ash.new	Wed Dec 24 17:29:49 2025
***************
*** 118,124 ****
--- 118,134 ----
 			return get_property("_inquisitorsUnidentifiableObjectUsed").to_boolean() ? 0 : 1;
  		// Universal Seasoning
  		case $item[Universal Seasoning]:
+ 		// SalMonella fixed weird edge case
+ 		int ixy = item_amount($item[Universal Seasoning]) -
+ 		    get_property("_universalSeasoningsUsed").to_int();
+ 		if (ixy <= 0)
+ 		  return(0);
+ 		return(ixy);
+ 		/* What sal replaced
+ 		  if (item_amount($item[Universal Seasoning)
+ 		      < get_property("_universalSeasoningsUsed")
 			return item_amount($item[Universal Seasoning]) - get_property("_universalSeasoningsUsed").to_int();
+ 		*/
   		case $item[Calzone of Legend]:
 			return (get_property("calzoneOfLegendEaten").to_boolean() || !allowLifetimeLimited) ? 0 : 1;
  		case $item[Deep Dish of Legend]:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions