public override ObjectPicker.ColumnInfo GetValue(SimDescription item) { int price = PetSale.GetPrice(item); if (price > mMaxPrice) { price = mMaxPrice; } return(new ObjectPicker.TextColumn(EAText.GetMoneyString(price))); }
public override ObjectPicker.ColumnInfo GetValue(SimDescription sim) { int price = 0; KamaSimtra skill = sim.SkillManager.GetSkill <KamaSimtra>(KamaSimtra.StaticGuid); if (skill != null) { price = skill.GetPayment() * 2; } return(new ObjectPicker.TextColumn(EAText.GetMoneyString(price))); }
protected override ManagerStory.Story PrintStory(StoryProgressionObject manager, string name, object[] parameters, string[] extended, ManagerStory.StoryLogging logging) { if (parameters == null) { parameters = new object[] { Sim, mFunds }; } if (extended == null) { extended = new string[] { EAText.GetMoneyString(mFunds) }; } return(base.PrintStory(manager, name, parameters, extended, logging)); }
public override ObjectPicker.ColumnInfo GetValue(SimDescription sim) { int price = sim.SkillManager.GetSkillLevel(KamaSimtra.StaticGuid) * KamaSimtra.Settings.mRendezvousCostPerLevel; return(new ObjectPicker.TextColumn(EAText.GetMoneyString(price))); }
public override ObjectPicker.ColumnInfo GetValue(VectorBooter.Item item) { return(new ObjectPicker.TextColumn(EAText.GetMoneyString(item.Count))); }
public static string GetHouseholdInfo(Household household, bool notile, string msg) { string logText = null; if (household != null) { if (msg == null) { msg = ""; } logText = ""; if (!notile) { logText += "Household Name: " + household.Name + NewLine; } logText += msg + " Id: " + household.HouseholdId + NewLine; try { logText += msg + " Has Been Destroyed: " + household.HasBeenDestroyed + NewLine; if (!string.IsNullOrEmpty(household.BioText)) { logText += msg + " Bio: " + household.BioText + NewLine; } logText += msg + " Family Funds: " + EAText.GetMoneyString(household.mFamilyFunds) + NewLine; logText += msg + " Delinquent Funds: " + EAText.GetMoneyString(household.mDelinquentFunds) + NewLine; logText += msg + " Inited: " + household.mbInited + NewLine; logText += msg + " Ancient Coin Count: " + EAText.GetMoneyString(household.mAncientCoinCount) + NewLine; logText += msg + " UnPaid Bills: " + EAText.GetMoneyString(household.mUnpaidBills) + NewLine; try { if (household.mMoneySaved != null) { long it = 0; foreach (var item in household.mMoneySaved) { it += item; } logText += msg + " Money Saved: " + EAText.GetMoneyString(it) + ", Length: " + household.mMoneySaved.Length + NewLine; } } catch (ResetException) { throw; } catch { } } catch (ResetException) { throw; } catch { } logText += msg + " -----------------------------------------------" + NewLine; try { logText += msg + " Active Household: " + (household == Household.ActiveHousehold || (PlumbBob.sSingleton != null && PlumbBob.sSingleton.mSelectedActor != null && household == PlumbBob.sSingleton.mSelectedActor.Household)) + NewLine; } catch (ResetException) { throw; } catch { logText += msg + " Active Household: False" + NewLine; } logText += msg + " Servobot Household: " + (household == Household.sServobotHousehold) + NewLine; logText += msg + " Alien Household: " + (household == Household.sAlienHousehold) + NewLine; logText += msg + " Mermaid Household: " + (household == Household.sMermaidHousehold) + NewLine; logText += msg + " Previous Traveler Household: " + (household == Household.sPreviousTravelerHousehold) + NewLine; logText += msg + " Service NPC Household: " + (household == Household.sNpcHousehold) + NewLine; logText += msg + " Pet Household: " + (household == Household.sPetHousehold) + NewLine; logText += msg + " Tourist Household: " + (household == Household.sTouristHousehold) + NewLine; logText += msg + " -----------------------------------------------" + NewLine; Household.Members me = household.mMembers; if (me != null) { try { logText += msg + " Members: " + household.NumMembers + NewLine; } catch (ResetException) { throw; } catch { } } if (me != null && me.mAllSimDescriptions != null) { try { foreach (SimDescription sim2 in me.mAllSimDescriptions) { if (sim2 != null) { logText += msg + " Member: (" + sim2.FullName + ", Id: " + sim2.mSimDescriptionId + ")" + NewLine; } else { logText += msg + " Member: (NULL)" + NewLine; } } } catch (ResetException) { throw; } catch { } } try { if (household.VirtualLotHome != null) { logText += msg + " Virtual Home Lot: " + (string.IsNullOrEmpty(household.VirtualLotHome.Name) ? "No Name" : household.VirtualLotHome.Name) + NewLine; logText += msg + " Virtual Home Lot Id: " + household.mVirtualLotId + NewLine; logText += msg + " Virtual Home Address: " + (string.IsNullOrEmpty(household.VirtualLotHome.Address) ? "No Address" : household.VirtualLotHome.Address) + NewLine; } else { logText += msg + " No Virtual Lot Home" + NewLine; } } catch (ResetException) { throw; } catch { } try { if (household.LotHome != null) { logText += msg + " Home Lot: " + (string.IsNullOrEmpty(household.LotHome.Name) ? "No Name" : household.LotHome.Name) + NewLine; logText += msg + " Home Lot Id: " + household.mLotId + NewLine; logText += msg + " Home Address: " + (string.IsNullOrEmpty(household.LotHome.Address) ? "No Address" : household.LotHome.Address);//+ NewLine; } else { logText += msg + " No Lot Home"; } } catch (ResetException) { throw; } catch { } } return(logText); }