52 shoppingSettings.PriceAdjustment = 1.0;
53 shoppingSettings.HappinessReport =
"";
95 return (2f + num) / 3f;
110 else if (npc.
type == 453)
178 helperInfo.player = player;
179 helperInfo.npc = npc;
181 helperInfo.nearbyNPCsByType =
array;
213 text +=
"Transformed";
268 NPCName = NPC.GetFullnameByID(npcType)
319 for (
int i = 0; i < 200; i++)
331 value2 = nPC.Center / 16f;
static float Clamp(float value, float min, float max)
static decimal Round(decimal d)
void ModifyShopPrice(HelperInfo info, ShopHelper shopHelperInstance)
void Populate(PersonalityDatabase database)
PersonalityProfile GetByNPCID(int npcId)
List< IShopPersonalityTrait > ShopModifiers
void LikeNPC(int npcType)
bool IsPlayerInEvilBiomes(Player player)
PersonalityDatabase _database
void HateNPC(int npcType)
ShoppingSettings GetShoppingSettings(Player player, NPC npc)
static string BiomeNameByKey(string biomeNameKey)
NPC _currentNPCBeingTalkedTo
void LoveNPC(int npcType)
void HateBiome(string nameKey)
const float HighestPossiblePriceMultiplier
void LoveNPCByTypeName(int npcType)
bool IsFarFromHome(NPC npc)
void LoveBiome(string nameKey)
Player _currentPlayerTalking
void ProcessMood(Player player, NPC npc)
float _currentPriceAdjustment
void AddHappinessReportText(string textKeyInCategory, object substitutes=null)
bool IsNotReallyTownNPC(NPC npc)
void DislikeNPC(int npcType)
void DislikeBiome(string nameKey)
bool RuinMoodIfHomeless(NPC npc)
float LimitAndRoundMultiplier(float priceAdjustment)
float GetTravelingMerchantPrices(NPC npc)
List< NPC > GetNearbyResidentNPCs(NPC npc, out int npcsWithinHouse, out int npcsWithinVillage)
AShoppingBiome[] _dangerousBiomes
float GetSkeletonMerchantPrices(NPC npc)
const float MaxHappinessAchievementPriceMultiplier
void LikeBiome(string nameKey)
const float LowestPossiblePriceMultiplier
static readonly short Count
static readonly IdDictionary Search
static string GetTextValue(string key)
static string GetTextValueWith(string key, object obj)
static string GetFullnameByID(int npcID)
static TownRoomManager TownManager
static float Distance(Vector2 value1, Vector2 value2)