Skip to content

Instantly share code, notes, and snippets.

@atravita-mods
Created June 15, 2022 23:18
Show Gist options
  • Select an option

  • Save atravita-mods/d72c56f1758b1dce3f623716c793821a to your computer and use it in GitHub Desktop.

Select an option

Save atravita-mods/d72c56f1758b1dce3f623716c793821a to your computer and use it in GitHub Desktop.
LoC proxied api
public interface ICookingSkillProxy
{
public static int GiftBoostValue;
public static float SalePriceModifier;
public static float ExtraPortionChance;
public static int RestorationValue;
public static int RestorationAltValue;
public static int BuffRateValue;
public static int BuffDurationValue;
}
public interface ICookingSkillAPI
{
public enum Profession
{
ImprovedOil,
Restoration,
GiftBoost,
SalePrice,
ExtraPortion,
BuffDuration
}
bool IsEnabled();
ICookingSkillProxy GetSkill();
int GetLevel();
int GetMaximumLevel();
IReadOnlyDictionary<Profession, bool> GetCurrentProfessions(long playerID = -1L);
bool HasProfession(Profession profession, long playerID = -1L);
bool AddExperienceDirectly(int experience);
void AddCookingBuffToItem(string name, int value);
int GetTotalCurrentExperience();
int GetExperienceRequiredForLevel(int level);
int GetTotalExperienceRequiredForLevel(int level);
int GetExperienceRemainingUntilLevel(int level);
IReadOnlyDictionary<int, IList<string>> GetAllLevelUpRecipes();
IReadOnlyList<string> GetCookingRecipesForLevel(int level);
int CalculateExperienceGainedFromCookingItem(Item item, int numIngredients, int numCooked, bool applyExperience);
bool RollForExtraPortion();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment