Elin Decompiled Documentation EA 23.200 Stable
Loading...
Searching...
No Matches
Player Class Reference
Inheritance diagram for Player:
EClass

Classes

class  Flags
 
class  Pref
 
class  ReturnInfo
 
class  Stats
 

Public Member Functions

void OnCreateGame ()
 
void OnStartNewGame ()
 
void OnLoad ()
 
void OnBeforeSave ()
 
void SetPriorityAction (string id, Thing t)
 
bool IsPriorityAction (string id, Thing t)
 
void OnAdvanceRealHour ()
 
void RefreshDomain ()
 
ElementContainer GetDomains ()
 
Layer SelectDomain (Action onKill=null)
 
void RefreshEmptyAlly ()
 
void GenerateBackgroundText ()
 
string GetBackgroundText ()
 
void EditBackgroundText ()
 
void CreateEquip ()
 
void DreamSpell ()
 
void SimulateFaction ()
 
void ExitBorder (ActPlan p=null)
 
bool CanExitBorder (Point p)
 
void OnExitBorder (Point p)
 
void EnterLocalZone (bool encounter=false, Chara mob=null)
 
void EnterLocalZone (Point p, ZoneTransition trans=null, bool encounter=false, Chara mob=null)
 
void MoveZone (Zone z)
 
void AddInventory (Card c)
 
void EndTurn (bool consume=true)
 
void ModFame (int a)
 
void ModKeyItem (string alias, int num=1, bool msg=true)
 
void ModKeyItem (int id, int num=1, bool msg=true)
 
bool HasKeyItem (string alias)
 
int CountKeyItem (string alias)
 
int CountKeyItem (int id)
 
void EquipTool (Thing a, bool setHotItem=true)
 
void RefreshCurrentHotItem ()
 
void ResetCurrentHotItem ()
 
void SetCurrentHotItem (HotItem item)
 
void TryEquipBait ()
 
bool HasValidRangedTarget ()
 
bool TargetRanged ()
 
void OnAdvanceHour ()
 
void OnAdvanceDay ()
 
bool TryAbortAutoCombat (bool immediate=true)
 
void ClearMapHighlights ()
 
void MarkMapHighlights ()
 
bool CanAcceptInput ()
 
bool CanSee (Chara c)
 
void AddExpKnowledge (int a)
 
void AddExpInfluence (int a)
 
void ModKarma (int a)
 
Thing DropReward (Thing t, bool silent=false)
 
bool TooHeavyToMove ()
 
void ToggleFavMoongate (string id)
 

Public Attributes

ReturnInfo returnInfo
 
int uidChara
 
int uidSpawnZone
 
int tutorialStep
 
int karma
 
int fame
 
int expKnowledge
 
int expInfluence
 
int dateTravel
 
int distanceTravel
 
int uidLastTravelZone
 
int uidLastZone
 
int uidLastShippedZone
 
int totalFeat
 
int taxBills
 
int unpaidBill
 
int bankMoney
 
int holyWell
 
int safeTravel
 
int hotbarPage
 
int little_dead
 
int little_saved
 
int extraTax
 
int lastFelmeraReward
 
int uidLastTown
 
int seedShrine
 
int seedChest
 
int debt
 
int seedFortune
 
int giftJure
 
int luckycoin
 
int customLightMod = 3
 
int questRerollCost
 
int fished
 
float angle
 
bool hasNewQuest
 
bool dailyGacha
 
bool useSubWidgetTheme
 
bool wellWished
 
bool prayed
 
bool questTracker
 
bool showShippingResult
 
bool isEditor
 
bool openContainerCenter
 
bool showWorkaround
 
string title
 
string memo = ""
 
string memo2 = ""
 
Pref pref = new Pref()
 
Stats stats = new Stats()
 
NumLogManager nums = new NumLogManager()
 
KnowledgeManager knowledges = new KnowledgeManager()
 
PopupManager popups = new PopupManager()
 
WidgetManager.SaveData mainWidgets
 
WidgetManager.SaveData subWidgets
 
Window.SaveData dataPick = new Window.SaveData()
 
LayerAbility.Config layerAbilityConfig = new LayerAbility.Config()
 
Dictionary< string, int > dialogFlags = new Dictionary<string, int>()
 
Dictionary< string, string > hangIcons = new Dictionary<string, string>()
 
Dictionary< string, KnownSongknownSongs = new Dictionary<string, KnownSong>()
 
Dictionary< string, string > lastRecipes = new Dictionary<string, string>()
 
Dictionary< string, List< string > > priorityActions = new Dictionary<string, List<string>>()
 
HashSet< string > trackedCategories = new HashSet<string>()
 
HashSet< string > trackedCards = new HashSet<string>()
 
HashSet< int > trackedElements = new HashSet<int>()
 
HashSet< int > knownBGMs = new HashSet<int>()
 
HashSet< int > favAbility = new HashSet<int>()
 
HashSet< int > sketches = new HashSet<int>()
 
HashSet< int > doneBackers = new HashSet<int>()
 
HashSet< int > knownCraft = new HashSet<int>()
 
List< int > domains = new List<int>()
 
Zone zone
 
HotbarManager hotbars = new HotbarManager()
 
Chara _agent
 
Hoard hoard = new Hoard()
 
Flags flags = new Flags()
 
RecipeManager recipes = new RecipeManager()
 
HotItem currentHotItem = new HotItemNoItem()
 
Point lastZonePos
 
Thing eqBait
 
Dictionary< string, Window.SaveDatadataWindow
 
CinemaConfig cinemaConfig = new CinemaConfig()
 
CodexManager codex = new CodexManager()
 
Dictionary< int, int > keyItems = new Dictionary<int, int>()
 
List< int > uidPickOnLoad = new List<int>()
 
List< ShippingResultshippingResults = new List<ShippingResult>()
 
Dictionary< string, HashSet< string > > noRestocks = new Dictionary<string, HashSet<string>>()
 
Window.SaveData windowAllyInv
 
List< string > favMoongate = new List<string>()
 
Window.SaveData windowDataCopy
 
string windowDataName
 
ZoneTransition lastTransition
 
List< CelllastMarkedHighlights = new List<Cell>()
 
HotItem lastHotItem
 
HotItem hotItemToRestore
 
bool forceTalk
 
bool altHeldPos
 
bool instaComplete = true
 
bool regionMoveWarned
 
bool waitingInput
 
bool willEndTurn
 
bool wasDirtyWeight
 
bool deathDialog
 
bool preventDeathPenalty
 
bool deathZoneMove
 
bool haltMove
 
bool invlunerable
 
bool willAutoSave
 
bool resetPrincipal
 
bool simulatingZone
 
bool isAutoFarming
 
bool enemySpotted
 
string deathMsg
 
int countNewline
 
int lightRadius
 
int lastTurn
 
int lastEmptyAlly
 
int ignoreFallOver
 
float lightPower
 
float baseActTime
 
float pickupDelay = 2f
 
Chara chara
 
Chara focusedchara
 
NoticeManager notices = new NoticeManager()
 
QueueManager queues = new QueueManager()
 
Act lastAct
 
Vector2 nextMove
 
Vector3 position
 
Action onStartZone
 
PlayingSong playingSong
 
List< CharalistSummon = new List<Chara>()
 
int autoCombatStartHP
 
Zone nextZone
 
Thing renderThing
 
HotItemNoItem hotItemNoItem = new HotItemNoItem()
 
Chara target
 

Static Public Attributes

static int seedHallucination
 
static int realHour
 
- Static Public Attributes inherited from EClass
static Core core
 

Properties

WidgetManager.SaveData widgets [get, set]
 
Zone spawnZone [get, set]
 
bool EnableDreamStory [get]
 
Zone LastTravelZone [get]
 
Zone LastZone [get]
 
Chara Agent [get]
 
int ContainerSearchDistance [get]
 
int MaxAlly [get]
 
int MaxExpKnowledge [get]
 
int MaxExpInfluence [get]
 
bool IsMageGuildMember [get]
 
bool IsFighterGuildMember [get]
 
bool IsThiefGuildMember [get]
 
bool IsMerchantGuildMember [get]
 
bool IsCriminal [get]
 
- Properties inherited from EClass
static Game game [get]
 
static bool AdvMode [get]
 
static Player player [get]
 
static Chara pc [get]
 
static UI ui [get]
 
static Map _map [get]
 
static Zone _zone [get]
 
static FactionBranch Branch [get]
 
static FactionBranch BranchOrHomeBranch [get]
 
static Faction Home [get]
 
static Faction Wilds [get]
 
static Scene scene [get]
 
static BaseGameScreen screen [get]
 
static GameSetting setting [get]
 
static GameData gamedata [get]
 
static ColorProfile Colors [get]
 
static World world [get]
 
static SourceManager sources [get]
 
static SourceManager editorSources [get]
 
static SoundManager Sound [get]
 
static CoreDebug debug [get]
 

Additional Inherited Members

- Static Public Member Functions inherited from EClass
static int rndSeed (int a, int seed)
 
static int rnd (long a)
 
static int rnd (int a)
 
static int curve (int a, int start, int step, int rate=75)
 
static int rndHalf (int a)
 
static float rndf (float a)
 
static int rndSqrt (int a)
 
static void Wait (float a, Card c)
 
static void Wait (float a, Point p)
 
static int Bigger (int a, int b)
 
static int Smaller (int a, int b)
 

Detailed Description

Definition at line 10 of file Player.cs.

Member Function Documentation

◆ AddExpInfluence()

void Player.AddExpInfluence ( int  a)
inline

Definition at line 2427 of file Player.cs.

2428 {
2429 expInfluence += a;
2431 {
2432 for (int i = 0; i < expInfluence / MaxExpInfluence; i++)
2433 {
2434 LvUp();
2435 }
2437 }
2438 static void LvUp()
2439 {
2440 Msg.Say("DingInfluence");
2441 }
2442 }
Definition: Msg.cs:5
static string Say(string idLang, string ref1, string ref2=null, string ref3=null, string ref4=null)
Definition: Msg.cs:58
int MaxExpInfluence
Definition: Player.cs:1238
int expInfluence
Definition: Player.cs:846

References expInfluence, MaxExpInfluence, and Msg.Say().

◆ AddExpKnowledge()

void Player.AddExpKnowledge ( int  a)
inline

Definition at line 2410 of file Player.cs.

2411 {
2412 expKnowledge += a;
2414 {
2415 for (int i = 0; i < expKnowledge / MaxExpKnowledge; i++)
2416 {
2417 LvUp();
2418 }
2420 }
2421 static void LvUp()
2422 {
2423 Msg.Say("DingKnowledge");
2424 }
2425 }
int MaxExpKnowledge
Definition: Player.cs:1236
int expKnowledge
Definition: Player.cs:843

References expKnowledge, MaxExpKnowledge, and Msg.Say().

◆ AddInventory()

void Player.AddInventory ( Card  c)
inline

Definition at line 2015 of file Player.cs.

2016 {
2017 EClass.pc.AddCard(c);
2018 }
Card AddCard(Card c)
Definition: Card.cs:3043
Definition: EClass.cs:5
static Chara pc
Definition: EClass.cs:14

References Card.AddCard(), and EClass.pc.

Referenced by GridItemCard.AutoAdd().

◆ CanAcceptInput()

bool Player.CanAcceptInput ( )
inline

Definition at line 2367 of file Player.cs.

2368 {
2369 if (EClass.pc.HasNoGoal)
2370 {
2371 return !EClass.pc.WillConsumeTurn();
2372 }
2373 return false;
2374 }
bool HasNoGoal
Definition: Chara.cs:986
bool WillConsumeTurn()
Definition: Chara.cs:3598

References Chara.HasNoGoal, EClass.pc, and Chara.WillConsumeTurn().

Referenced by AM_Adv._OnUpdateInput(), HotAction.OnClick(), and WidgetCurrentTool.Select().

◆ CanExitBorder()

bool Player.CanExitBorder ( Point  p)
inline

Definition at line 1828 of file Player.cs.

1829 {
1830 if (EClass._zone == EClass.game.StartZone && EClass.pc.homeBranch == null)
1831 {
1832 return false;
1833 }
1835 {
1836 return false;
1837 }
1838 if (EClass.pc.held != null && EClass.pc.held.trait.CanOnlyCarry)
1839 {
1840 return false;
1841 }
1842 return true;
1843 }
Trait trait
Definition: Card.cs:51
Card held
Definition: Chara.cs:70
FactionBranch homeBranch
Definition: Chara.cs:1052
static Game game
Definition: EClass.cs:8
static Zone _zone
Definition: EClass.cs:20
Zone StartZone
Definition: Game.cs:274
virtual bool CanOnlyCarry
Definition: Trait.cs:292
virtual bool BlockBorderExit
Definition: Zone.cs:166

References EClass._zone, Zone.BlockBorderExit, Trait.CanOnlyCarry, EClass.game, Chara.held, Chara.homeBranch, EClass.pc, Game.StartZone, and Card.trait.

Referenced by ActPlan._Update(), AM_Adv.AxisMove(), and AM_Adv.PressedActionMove().

◆ CanSee()

bool Player.CanSee ( Chara  c)
inline

Definition at line 2376 of file Player.cs.

2377 {
2379 {
2380 return true;
2381 }
2382 if (!c.IsPC && (EClass.pc.fov == null || EClass.pc.isBlind))
2383 {
2384 return false;
2385 }
2386 if (c.IsPCParty || c.isDead)
2387 {
2388 return true;
2389 }
2390 if (c.IsMultisize)
2391 {
2392 bool canSee = false;
2393 int dist = EClass.pc.Dist(c);
2394 c.ForeachPoint(delegate(Point p, bool main)
2395 {
2396 if (!canSee && (p.cell.light > 0 || dist < 2) && p.cell.pcSync)
2397 {
2398 canSee = true;
2399 }
2400 });
2401 return canSee;
2402 }
2403 if (c.pos.cell.light > 0 || EClass.pc.Dist(c) < 2)
2404 {
2405 return c.pos.cell.pcSync;
2406 }
2407 return false;
2408 }
Fov fov
Definition: Card.cs:55
void ForeachPoint(Action< Point, bool > action)
Definition: Card.cs:7571
Point pos
Definition: Card.cs:57
int Dist(Card c)
Definition: Card.cs:7406
bool pcSync
Definition: Cell.cs:104
byte light
Definition: Cell.cs:60
override bool IsPC
Definition: Chara.cs:610
override bool IsPCParty
Definition: Chara.cs:613
bool visibleWithTelepathy
Definition: Chara.cs:150
override bool IsMultisize
Definition: Chara.cs:704
bool isBlind
Definition: Chara.cs:130
bool isDead
Definition: Chara.cs:387
bool hasTelepathy
Definition: Chara.cs:140
Definition: Point.cs:9
Cell cell
Definition: Point.cs:51

References Point.cell, Card.Dist(), Card.ForeachPoint(), Card.fov, Chara.hasTelepathy, Chara.isBlind, Chara.isDead, Chara.IsMultisize, Chara.IsPC, Chara.IsPCParty, Cell.light, EClass.pc, Cell.pcSync, Card.pos, and Chara.visibleWithTelepathy.

Referenced by BaseTileMap.DrawTile(), and PointTarget.ShouldIgnore().

◆ ClearMapHighlights()

void Player.ClearMapHighlights ( )
inline

Definition at line 2352 of file Player.cs.

2353 {
2354 foreach (Cell lastMarkedHighlight in lastMarkedHighlights)
2355 {
2356 lastMarkedHighlight.highlight = 0;
2357 }
2358 lastMarkedHighlights.Clear();
2359 }
Definition: Cell.cs:7
List< Cell > lastMarkedHighlights
Definition: Player.cs:1101

References lastMarkedHighlights.

Referenced by MarkMapHighlights(), and Map.OnDeactivate().

◆ CountKeyItem() [1/2]

int Player.CountKeyItem ( int  id)
inline

Definition at line 2105 of file Player.cs.

2106 {
2107 if (!keyItems.ContainsKey(id))
2108 {
2109 return 0;
2110 }
2111 return keyItems[id];
2112 }
Dictionary< int, int > keyItems
Definition: Player.cs:1074

References keyItems.

◆ CountKeyItem() [2/2]

int Player.CountKeyItem ( string  alias)
inline

◆ CreateEquip()

void Player.CreateEquip ( )
inline

Definition at line 1604 of file Player.cs.

1605 {
1606 Chara c = EClass.pc;
1607 c.body.AddBodyPart(45);
1608 if (EClass.debug.enable)
1609 {
1610 EClass.pc.EQ_ID("lantern_old");
1611 }
1612 c.body.AddBodyPart(44);
1613 c.EQ_ID("toolbelt").c_IDTState = 0;
1614 c.EQ_ID("shirt").c_IDTState = 0;
1616 bool firstSpellbook = true;
1617 switch (EClass.pc.job.id)
1618 {
1619 case "paladin":
1620 c.AddCard(SetSpellbook(ThingGen.CreateSpellbook(8400), 2));
1621 break;
1622 case "inquisitor":
1623 c.AddCard(SetSpellbook(ThingGen.CreateSpellbook(8706), 4));
1624 break;
1625 case "witch":
1626 c.AddCard(SetSpellbook(ThingGen.CreateSpellbook(8790), 4));
1627 break;
1628 case "swordsage":
1629 c.AddCard(SetSpellbook(ThingGen.CreateSpellbook(50300), 4));
1630 c.AddCard(SetSpellbook(ThingGen.CreateSpellbook(50301), 4));
1631 c.AddCard(SetSpellbook(ThingGen.CreateSpellbook(50802), 2));
1632 c.AddCard(ThingGen.Create("tool_talisman"));
1633 break;
1634 }
1635 switch (EClass.pc.job.id)
1636 {
1637 case "wizard":
1638 case "warmage":
1639 case "priest":
1640 case "witch":
1641 {
1642 int num = 0;
1643 foreach (int domain in EClass.player.domains)
1644 {
1645 Element element = Element.Create(domain);
1646 string text = "";
1647 string[] tag = element.source.tag;
1648 foreach (string text2 in tag)
1649 {
1650 if (text != "")
1651 {
1652 break;
1653 }
1654 switch (text2)
1655 {
1656 case "hand":
1657 case "arrow":
1658 case "bolt":
1659 text = text2 + "_";
1660 break;
1661 }
1662 }
1663 if (text != "")
1664 {
1665 c.AddCard(SetSpellbook(ThingGen.CreateSpellbook(text + element.source.alias.Replace("ele", "")), 4));
1666 num++;
1667 if (num >= 2)
1668 {
1669 break;
1670 }
1671 }
1672 }
1673 if (EClass.pc.job.id == "priest")
1674 {
1675 c.AddCard(SetSpellbook(ThingGen.CreateSpellbook(8400), 2));
1676 }
1677 else
1678 {
1679 c.AddCard(SetSpellbook(ThingGen.CreateSpellbook(8200), 2));
1680 }
1681 break;
1682 }
1683 default:
1684 c.AddCard(ThingGen.Create("bandage").SetNum(6 + EClass.rnd(3)));
1685 break;
1686 }
1687 Thing SetSpellbook(Thing t, int charge)
1688 {
1689 if (firstSpellbook)
1690 {
1691 c.AddCard(ThingGen.CreateRedBook("guide_magic"));
1692 firstSpellbook = false;
1693 }
1694 t.AddEditorTag(EditorTag.NoReadFail);
1695 t.c_charges = charge;
1696 t.SetBlessedState(BlessedState.Normal);
1697 return t;
1698 }
1699 }
BlessedState
Definition: BlessedState.cs:2
EditorTag
Definition: EditorTag.cs:2
void AddEditorTag(EditorTag tag)
Definition: Card.cs:2567
Thing SetNum(int a)
Definition: Card.cs:3393
int c_IDTState
Definition: Card.cs:1231
virtual void SetBlessedState(BlessedState s)
Definition: Card.cs:3793
void AddBodyPart(int ele, Thing thing=null)
Definition: CharaBody.cs:261
Definition: Chara.cs:10
CharaBody body
Definition: Chara.cs:94
SourceJob.Row job
Definition: Chara.cs:464
Thing EQ_ID(string s, int mat=-1, Rarity r=Rarity.Random)
Definition: Chara.cs:4901
bool enable
Definition: CoreDebug.cs:286
static int rnd(long a)
Definition: EClass.cs:58
static Player player
Definition: EClass.cs:12
static CoreDebug debug
Definition: EClass.cs:48
SourceElement.Row source
Definition: ELEMENT.cs:273
static Element Create(int id, int v=0)
Definition: ELEMENT.cs:1100
List< int > domains
Definition: Player.cs:1035
static Thing CreateRedBook(string id, int num=1)
Definition: ThingGen.cs:167
static Thing CreateSpellbook(string alias, int num=1)
Definition: ThingGen.cs:151
static Thing CreateCurrency(int a, string id="money")
Definition: ThingGen.cs:37
static Thing Create(string id, int idMat=-1, int lv=-1)
Definition: ThingGen.cs:53
Definition: Thing.cs:8

References CharaBody.AddBodyPart(), Card.AddCard(), Card.AddEditorTag(), Chara.body, Card.c_IDTState, Element.Create(), ThingGen.Create(), ThingGen.CreateCurrency(), ThingGen.CreateRedBook(), ThingGen.CreateSpellbook(), EClass.debug, domains, CoreDebug.enable, Chara.EQ_ID(), Chara.job, EClass.pc, EClass.player, EClass.rnd(), Card.SetBlessedState(), Card.SetNum(), and Element.source.

Referenced by OnStartNewGame().

◆ DreamSpell()

void Player.DreamSpell ( )
inline

Definition at line 1701 of file Player.cs.

1702 {
1703 int num = EClass.pc.Evalue(1653);
1704 if (num == 0 && EClass.pc.Evalue(1402) == 0 && EClass.rnd(4) != 0)
1705 {
1706 return;
1707 }
1708 List<SourceElement.Row> list = new List<SourceElement.Row>();
1709 foreach (int domain in EClass.player.domains)
1710 {
1711 Element element = Element.Create(domain);
1712 string text = "";
1713 string[] tag = element.source.tag;
1714 foreach (string text2 in tag)
1715 {
1716 if (text != "")
1717 {
1718 break;
1719 }
1720 bool flag = false;
1721 switch (text2)
1722 {
1723 case "hand":
1724 case "arrow":
1725 case "bolt":
1726 flag = true;
1727 break;
1728 }
1729 if (num >= 3)
1730 {
1731 switch (text2)
1732 {
1733 case "ball":
1734 case "weapon":
1735 case "funnel":
1736 case "miasma":
1737 case "sword":
1738 flag = true;
1739 break;
1740 }
1741 }
1742 if (flag)
1743 {
1744 list.Add(EClass.sources.elements.alias[text2 + "_" + element.source.alias.Replace("ele", "")]);
1745 }
1746 }
1747 }
1748 if (list.Count != 0)
1749 {
1750 SourceElement.Row row = list.RandomItemWeighted((SourceElement.Row a) => a.chance);
1751 Element element2 = EClass.pc.elements.GetElement(row.id);
1752 int mtp = ((num == 0) ? 100 : (75 + num * 25));
1753 if (num > 0 || element2 == null || element2.vPotential == 0)
1754 {
1755 Msg.Say("dream_spell", EClass.sources.elements.alias[row.aliasRef].GetText("altname").Split(',')[0].ToLowerInvariant());
1756 EClass.pc.GainAbility(row.id, mtp);
1757 }
1758 }
1759 }
ElementContainerCard elements
Definition: Card.cs:39
int Evalue(int ele)
Definition: Card.cs:2533
void GainAbility(int ele, int mtp=100, Thing origin=null)
Definition: Chara.cs:9668
Element GetElement(string alias)
int vPotential
Definition: ELEMENT.cs:256
SourceElement elements

References SourceElement.Row.aliasRef, Element.Create(), domains, Card.elements, SourceManager.elements, Card.Evalue(), Chara.GainAbility(), ElementContainer.GetElement(), SourceElement.Row.id, EClass.pc, EClass.player, EClass.rnd(), Msg.Say(), Element.source, EClass.sources, and Element.vPotential.

Referenced by ConSleep.OnRemoved().

◆ DropReward()

◆ EditBackgroundText()

void Player.EditBackgroundText ( )
inline

Definition at line 1599 of file Player.cs.

1600 {
1601 Util.Run(GameIO.pathCurrentSave + "background.txt");
1602 }
Definition: GameIO.cs:10
static string pathCurrentSave
Definition: GameIO.cs:33
Definition: Util.cs:10
static void Run(string itemPath)
Definition: Util.cs:242

References GameIO.pathCurrentSave, and Util.

Referenced by WindowChara.RefreshNote().

◆ EndTurn()

◆ EnterLocalZone() [1/2]

void Player.EnterLocalZone ( bool  encounter = false,
Chara  mob = null 
)
inline

Definition at line 1885 of file Player.cs.

1886 {
1887 EnterLocalZone(EClass.pc.pos.Copy(), null, encounter, mob);
1888 }
void EnterLocalZone(bool encounter=false, Chara mob=null)
Definition: Player.cs:1885
Point Copy()
Definition: Point.cs:479

References Point.Copy(), EnterLocalZone(), EClass.pc, and Card.pos.

Referenced by AM_Adv._OnUpdateInput(), ActPlan._Update(), EnterLocalZone(), OnExitBorder(), LayerTravel.Refresh(), and Chara.Tick().

◆ EnterLocalZone() [2/2]

void Player.EnterLocalZone ( Point  p,
ZoneTransition  trans = null,
bool  encounter = false,
Chara  mob = null 
)
inline

Definition at line 1890 of file Player.cs.

1891 {
1892 if (EClass._zone.IsRegion)
1893 {
1895 }
1897 int enemies = 1;
1898 int roadDist = EClass.scene.elomap.GetRoadDist(p.x, p.z);
1899 int num = ((EClass.pc.homeBranch != null) ? EClass.pc.pos.Distance(EClass.game.StartZone.mapX, EClass.game.StartZone.mapY) : 0);
1900 if (zone == null)
1901 {
1903 {
1904 Msg.Say("zoneBlocked");
1905 return;
1906 }
1907 int num2 = Mathf.Clamp(roadDist - 4, 0, 200) + Mathf.Clamp(num / 4, 0, 10);
1908 if (roadDist > 20)
1909 {
1910 num2 += roadDist - 20;
1911 }
1912 if (num2 >= 100)
1913 {
1914 num2 = 100;
1915 }
1916 Debug.Log("encounter roadiDist:" + roadDist + " homeDist:" + num + " lv:" + num2);
1918 zone._dangerLv = num2;
1919 enemies = 2 + Mathf.Min(num2 / 10, 4) + EClass.rnd(3 + Mathf.Min(num2 / 10, 4));
1920 if (num < 5)
1921 {
1922 enemies = 2;
1923 }
1924 }
1925 else
1926 {
1927 if (zone is Zone_Void && EClass.player.CountKeyItem("license_void") == 0)
1928 {
1929 Msg.Say("voidClosed");
1930 return;
1931 }
1932 if (zone is Zone_Exile && EClass.player.CountKeyItem("key_exile") == 0 && !EClass.debug.enable)
1933 {
1934 Msg.Say("exileClosed");
1935 return;
1936 }
1937 if (zone.IsClosed)
1938 {
1939 Msg.Say("zoneClosed");
1940 return;
1941 }
1942 if (zone is Zone_Casino)
1943 {
1944 Msg.Say("zoneNoEntrance");
1945 return;
1946 }
1947 }
1948 if (trans == null)
1949 {
1950 ZoneTransition.EnterState state = (encounter ? ZoneTransition.EnterState.Encounter : ((zone.RegionEnterState == ZoneTransition.EnterState.Dir) ? ZoneTransition.DirToState(EClass.pc.GetCurrentDir()) : zone.RegionEnterState));
1951 trans = new ZoneTransition
1952 {
1953 state = state
1954 };
1955 }
1956 EClass.pc.MoveZone(zone, trans);
1957 if (encounter)
1958 {
1960 {
1961 enemies = enemies,
1962 roadDist = roadDist,
1963 mob = mob
1964 });
1965 }
1966 }
int GetCurrentDir()
Definition: Chara.cs:3560
void MoveZone(string alias)
Definition: Chara.cs:3265
static Scene scene
Definition: EClass.cs:30
int minX
Definition: EloMap.cs:112
int minY
Definition: EloMap.cs:114
int GetRoadDist(int gx, int gy)
Definition: EloMap.cs:466
Zone zone
Definition: Player.cs:1038
Point Set(int _x, int _z)
Definition: Point.cs:491
int x
Definition: Point.cs:36
int z
Definition: Point.cs:39
int Distance(Point p)
Definition: Point.cs:973
bool CanCreateZone(Point pos)
Definition: Region.cs:252
Zone CreateZone(Point pos)
Definition: Region.cs:263
EloMap elomap
Definition: Scene.cs:149
int mapX
Definition: Spatial.cs:448
bool IsClosed
Definition: Spatial.cs:445
virtual bool IsRegion
Definition: Spatial.cs:503
int mapY
Definition: Spatial.cs:460
void AddPreEnter(ZonePreEnterEvent e, bool executeIfActiveZone=true)
static EnterState DirToState(int dir)
Definition: Zone.cs:12
ZoneEventManager events
Definition: Zone.cs:40
virtual ZoneTransition.EnterState RegionEnterState
Definition: Zone.cs:170
Region Region
Definition: Zone.cs:160
Zone GetZoneAt(int _x, int _y)
Definition: Zone.cs:3398

References EClass._zone, ZoneEventManager.AddPreEnter(), Region.CanCreateZone(), CountKeyItem(), Region.CreateZone(), EClass.debug, Debug, ZoneTransition.DirToState(), Point.Distance(), Scene.elomap, CoreDebug.enable, Zone.events, EClass.game, Chara.GetCurrentDir(), EloMap.GetRoadDist(), Zone.GetZoneAt(), Spatial.IsClosed, Spatial.IsRegion, Spatial.mapX, Spatial.mapY, EloMap.minX, EloMap.minY, Chara.MoveZone(), EClass.pc, EClass.player, Card.pos, Zone.Region, Zone.RegionEnterState, EClass.rnd(), Msg.Say(), EClass.scene, Point.Set(), Game.StartZone, Point.x, Point.z, and zone.

◆ EquipTool()

void Player.EquipTool ( Thing  a,
bool  setHotItem = true 
)
inline

Definition at line 2114 of file Player.cs.

2115 {
2116 if (a.GetRootCard() != EClass.pc)
2117 {
2118 if (a.parent is Thing)
2119 {
2120 Msg.Say("movedToEquip", a, a.parent as Thing);
2121 }
2122 a = EClass.pc.AddThing(a);
2123 }
2124 if (setHotItem)
2125 {
2127 SE.SelectHotitem();
2128 }
2129 }
Thing AddThing(string id, int lv=-1)
Definition: Card.cs:3057
ICardParent parent
Definition: Card.cs:53
Card GetRootCard()
Definition: Card.cs:3324
void SetCurrentHotItem(HotItem item)
Definition: Player.cs:2200
virtual HotItem GetHotItem()
Definition: Trait.cs:959

References Card.AddThing(), Trait.GetHotItem(), Card.GetRootCard(), Card.parent, EClass.pc, EClass.player, Msg.Say(), SetCurrentHotItem(), and Card.trait.

◆ ExitBorder()

void Player.ExitBorder ( ActPlan  p = null)
inline

Definition at line 1786 of file Player.cs.

1787 {
1788 bool flag = EClass.game.quests.HasFarAwayEscort();
1789 string textDialog = (flag ? "ExitZoneEscort" : "ExitZone").lang(EClass._zone.Name);
1790 bool flag2 = EClass.pc.pos.x == EClass._map.bounds.x || EClass.pc.pos.x == EClass._map.bounds.x + EClass._map.bounds.Width - 1 || EClass.pc.pos.z == EClass._map.bounds.z || EClass.pc.pos.z == EClass._map.bounds.z + EClass._map.bounds.Height - 1;
1792 {
1793 if (p == null)
1794 {
1795 Dialog.YesNo(textDialog, delegate
1796 {
1797 EClass.game.quests.HasFarAwayEscort(execute: true);
1799 }, delegate
1800 {
1801 });
1802 return;
1803 }
1804 p.TrySetAct("actNewZone", delegate
1805 {
1806 Dialog.YesNo(textDialog, delegate
1807 {
1808 EClass.game.quests.HasFarAwayEscort(execute: true);
1810 });
1811 return false;
1812 }, CursorSystem.MoveZone, (!flag2) ? 1 : 999);
1813 }
1814 else if (p == null)
1815 {
1817 }
1818 else
1819 {
1820 p.TrySetAct("actNewZone", delegate
1821 {
1823 return false;
1824 }, CursorSystem.MoveZone, (!flag2) ? 1 : 999);
1825 }
1826 }
bool TrySetAct(string lang, Func< bool > onPerform, Card tc, CursorInfo cursor=null, int dist=1, bool isHostileAct=false, bool localAct=true, bool canRepeat=false)
Definition: ActPlan.cs:366
new GameConfig game
Definition: CoreConfig.cs:604
CoreConfig config
Definition: Core.cs:70
static CursorInfo MoveZone
Definition: CursorSystem.cs:86
Definition: Dialog.cs:7
static Dialog YesNo(string langDetail, Action actionYes, Action actionNo=null, string langYes="yes", string langNo="no")
Definition: Dialog.cs:244
static Core core
Definition: EClass.cs:6
QuestManager quests
Definition: Game.cs:179
bool HasFarAwayEscort(bool execute=false)
virtual string Name
Definition: Spatial.cs:497
virtual bool WarnExit
Definition: ZoneInstance.cs:28
Zone ParentZone
Definition: Zone.cs:162
ZoneInstance instance
Definition: Zone.cs:52

References EClass._zone, Core.config, CoreConfig.GameConfig.confirmMapExit, EClass.core, CoreConfig.game, EClass.game, QuestManager.HasFarAwayEscort(), Zone.instance, Chara.MoveZone(), CursorSystem.MoveZone, Spatial.Name, Zone.ParentZone, EClass.pc, Game.quests, ZoneInstance.WarnExit, and Dialog.YesNo().

Referenced by ActPlan._Update(), AM_Adv.AxisMove(), and AM_Adv.PressedActionMove().

◆ GenerateBackgroundText()

void Player.GenerateBackgroundText ( )
inline

Definition at line 1572 of file Player.cs.

1573 {
1574 string text = IO.LoadText(new DirectoryInfo(CorePath.CorePackage.Background).GetFiles("*.txt").RandomItem().FullName);
1575 IO.SaveText(GameIO.pathCurrentSave + "background.txt", text);
1576 }
static string Background
Definition: CorePath.cs:81
Definition: IO.cs:11
static void SaveText(string path, string text)
Definition: IO.cs:104
static string LoadText(string _path)
Definition: IO.cs:496

References CorePath.CorePackage.Background, and GameIO.pathCurrentSave.

Referenced by OnStartNewGame().

◆ GetBackgroundText()

string Player.GetBackgroundText ( )
inline

Definition at line 1578 of file Player.cs.

1579 {
1580 StringBuilder stringBuilder = new StringBuilder(IO.LoadText(GameIO.pathCurrentSave + "background.txt"));
1581 stringBuilder.Replace("#name", EClass.pc.NameSimple);
1582 stringBuilder.Replace("#aka", EClass.pc.Aka);
1583 stringBuilder.Replace("#father", EClass.pc.bio.nameDad);
1584 stringBuilder.Replace("#mother", EClass.pc.bio.nameMom);
1585 stringBuilder.Replace("#birthloc2", EClass.pc.bio.nameHome);
1586 stringBuilder.Replace("#birthloc", EClass.pc.bio.nameLoc);
1587 stringBuilder.Replace("#job", EClass.pc.job.GetName().AddArticle());
1588 stringBuilder.Replace("#year", EClass.pc.bio.birthYear.ToString() ?? "");
1589 stringBuilder.Replace("#month", EClass.pc.bio.birthMonth.ToString() ?? "");
1590 stringBuilder.Replace("#day", EClass.pc.bio.birthDay.ToString() ?? "");
1591 stringBuilder.Replace("#he", (EClass.pc.IsMale ? "he" : "she").lang());
1592 stringBuilder.Replace("#his", (EClass.pc.IsMale ? "his" : "her").lang());
1593 stringBuilder.Replace("#him", (EClass.pc.IsMale ? "him" : "her").lang());
1594 string separator = "_period".lang();
1595 stringBuilder.ToString().Split(separator);
1596 return stringBuilder.ToString().TrimEnd(Environment.NewLine.ToCharArray());
1597 }
int birthYear
Definition: Biography.cs:89
int birthDay
Definition: Biography.cs:65
string nameDad
Definition: Biography.cs:260
string nameHome
Definition: Biography.cs:256
string nameLoc
Definition: Biography.cs:258
string nameMom
Definition: Biography.cs:262
int birthMonth
Definition: Biography.cs:77
bool IsMale
Definition: Card.cs:2346
Biography bio
Definition: Card.cs:42
string NameSimple
Definition: Card.cs:2101
string Aka
Definition: Chara.cs:214

References Chara.Aka, Card.bio, Biography.birthDay, Biography.birthMonth, Biography.birthYear, Card.IsMale, Chara.job, Biography.nameDad, Biography.nameHome, Biography.nameLoc, Biography.nameMom, Card.NameSimple, GameIO.pathCurrentSave, and EClass.pc.

Referenced by WindowChara.RefreshNote().

◆ GetDomains()

ElementContainer Player.GetDomains ( )
inline

Definition at line 1487 of file Player.cs.

1488 {
1489 ElementContainer elementContainer = new ElementContainer();
1490 foreach (int domain in domains)
1491 {
1492 elementContainer.GetOrCreateElement(domain).vSource = 1;
1493 }
1494 return elementContainer;
1495 }
Element GetOrCreateElement(Element ele)
int vSource
Definition: ELEMENT.cs:262

References domains.

Referenced by UICharaMaker.Refresh(), and WindowChara.RefreshNote().

◆ HasKeyItem()

bool Player.HasKeyItem ( string  alias)
inline

Definition at line 2095 of file Player.cs.

2096 {
2097 return CountKeyItem(EClass.sources.keyItems.alias[alias].id) > 0;
2098 }

References CountKeyItem(), SourceManager.keyItems, and EClass.sources.

Referenced by ActPlan._Update().

◆ HasValidRangedTarget()

bool Player.HasValidRangedTarget ( )
inline

Definition at line 2226 of file Player.cs.

2227 {
2229 {
2230 return false;
2231 }
2232 return true;
2233 }
override bool IsAliveInCurrentZone
Definition: Chara.cs:559
override bool isSynced
Definition: Chara.cs:689
bool CanSee(Card c)
Definition: Chara.cs:1200
Chara target
Definition: Player.cs:1187

References Chara.CanSee(), Chara.IsAliveInCurrentZone, Chara.isSynced, EClass.pc, and target.

Referenced by AM_Adv._OnUpdateInput().

◆ IsPriorityAction()

bool Player.IsPriorityAction ( string  id,
Thing  t 
)
inline

Definition at line 1454 of file Player.cs.

1455 {
1456 if (!id.IsEmpty() && t != null)
1457 {
1458 List<string> list = priorityActions.TryGetValue(id);
1459 if (list != null && list.Contains(t.id))
1460 {
1461 return true;
1462 }
1463 }
1464 return false;
1465 }
string id
Definition: Card.cs:33
Dictionary< string, List< string > > priorityActions
Definition: Player.cs:1008

References Card.id, and priorityActions.

Referenced by InvOwner.AutoUse(), and InvOwner.GetAutoUseLang().

◆ MarkMapHighlights()

void Player.MarkMapHighlights ( )
inline

Definition at line 2361 of file Player.cs.

2362 {
2365 }
virtual void OnMarkMapHighlights()
Definition: HotItem.cs:112
HotItem currentHotItem
Definition: Player.cs:1056
void ClearMapHighlights()
Definition: Player.cs:2352

References ClearMapHighlights(), currentHotItem, and HotItem.OnMarkMapHighlights().

Referenced by AM_Adv.OnAfterUpdate(), and RefreshCurrentHotItem().

◆ ModFame()

void Player.ModFame ( int  a)
inline

Definition at line 2033 of file Player.cs.

2034 {
2035 if (a == 0)
2036 {
2037 return;
2038 }
2039 if (a >= 0 && fame + a >= 5000 && EClass.player.CountKeyItem("license_adv") == 0)
2040 {
2041 a = 5000 - fame;
2042 if (a <= 0)
2043 {
2044 a = 0;
2045 Msg.Say("gainFameLimit");
2046 return;
2047 }
2048 }
2049 fame += a;
2050 if (fame < 0)
2051 {
2052 fame = 0;
2053 }
2054 if (a > 0)
2055 {
2056 Msg.Say("gainFame", a.ToString() ?? "");
2057 }
2058 else
2059 {
2060 Msg.Say("looseFame", (-a).ToString() ?? "");
2061 }
2062 if (a > 0)
2063 {
2064 Tutorial.Reserve("fame");
2065 }
2066 }
int fame
Definition: Player.cs:840
static void Reserve(string idStep, Action onBeforePlay=null)
Definition: Tutorial.cs:55

References CountKeyItem(), fame, EClass.player, Tutorial.Reserve(), and Msg.Say().

Referenced by ZonePreEnterBoutWin.Execute(), Quest.Fail(), CoreDebug.ModFame(), QuestRandom.OnDropReward(), and Chara.TryDropBossLoot().

◆ ModKarma()

void Player.ModKarma ( int  a)
inline

Definition at line 2444 of file Player.cs.

2445 {
2446 if (a != 0)
2447 {
2448 if (a < 0)
2449 {
2450 Tutorial.Reserve("karma");
2451 }
2452 bool flag = karma < 0;
2453 karma += a;
2454 Msg.Say((a > 0) ? "karmaUp" : "karmaDown", a.ToString() ?? "");
2455 if (karma < 0 && !flag)
2456 {
2457 Msg.Say("becomeCriminal");
2460 Tutorial.Reserve("criminal");
2461 }
2462 if (karma >= 0 && flag)
2463 {
2464 Msg.Say("becomeNonCriminal");
2466 }
2467 EClass.game.quests.list.ForeachReverse(delegate(Quest q)
2468 {
2469 q.OnModKarma(a);
2470 });
2471 karma = Mathf.Clamp(karma, -100, 100);
2472 }
2473 }
int karma
Definition: Player.cs:837
bool TryWitnessCrime(Chara criminal, Chara target=null, int radius=4, Func< Chara, bool > funcWitness=null)
Definition: Point.cs:861
List< Quest > list
Definition: QuestManager.cs:11
Definition: Quest.cs:7
virtual void OnModKarma(int a)
Definition: Quest.cs:555
void RefreshCriminal()
Definition: Zone.cs:3429

References EClass._zone, EClass.game, karma, QuestManager.list, Quest.OnModKarma(), EClass.pc, Card.pos, Game.quests, Zone.RefreshCriminal(), Tutorial.Reserve(), Msg.Say(), and Point.TryWitnessCrime().

Referenced by TraitAltar._OnOffer(), Quest.Complete(), ActEffect.DamageEle(), Chara.Die(), ZonePreEnterEncounter.Execute(), Quest.Fail(), AI_Fuck.Finish(), Chara.HoldCard(), Chara.Kick(), CoreDebug.ModKarma(), OnAdvanceDay(), Faction.OnAdvanceMonth(), InvOwner.OnClick(), TaskHarvest.OnCreateProgress(), ZoneEventHarvest.OnLeaveZone(), TaskDig.OnProgressComplete(), TaskMine.OnProgressComplete(), TraitBaseSpellbook.OnRead(), TraitIndulgence.OnRead(), ActRestrain.Perform(), ActEffect.Poison(), FoodEffect.Proc(), InvOwner.Transaction.Process(), AI_Slaughter.Run(), AI_Steal.Run(), AI_Shopping.SellChara(), Chara.TryDropBossLoot(), Trait.TryOpenLock(), and Card.TryUnrestrain().

◆ ModKeyItem() [1/2]

void Player.ModKeyItem ( int  id,
int  num = 1,
bool  msg = true 
)
inline

Definition at line 2073 of file Player.cs.

2074 {
2075 if (!keyItems.ContainsKey(id))
2076 {
2077 keyItems.Add(id, 0);
2078 }
2079 keyItems[id] += num;
2080 if (msg)
2081 {
2082 if (num > 0)
2083 {
2084 SE.Play("keyitem");
2085 Msg.Say("get_keyItem", EClass.sources.keyItems.map[id].GetName());
2086 }
2087 else
2088 {
2089 SE.Play("keyitem_lose");
2090 Msg.Say("lose_keyItem", EClass.sources.keyItems.map[id].GetName());
2091 }
2092 }
2093 }

References keyItems, SourceManager.keyItems, Msg.Say(), and EClass.sources.

◆ ModKeyItem() [2/2]

void Player.ModKeyItem ( string  alias,
int  num = 1,
bool  msg = true 
)
inline

Definition at line 2068 of file Player.cs.

2069 {
2070 ModKeyItem(EClass.sources.keyItems.alias[alias].id, num, msg);
2071 }
void ModKeyItem(string alias, int num=1, bool msg=true)
Definition: Player.cs:2068

References SourceManager.keyItems, ModKeyItem(), and EClass.sources.

Referenced by TraitGodStatue._OnUse(), ModKeyItem(), TraitLicense.OnRead(), OnStartNewGame(), TraitGainPrecious.OnUse(), TraitGoodsCoin.OnUse(), and DramaManager.ParseLine().

◆ MoveZone()

void Player.MoveZone ( Zone  z)
inline

Definition at line 1968 of file Player.cs.

1969 {
1970 CursorSystem.ignoreCount = 15;
1971 EClass.ui.hud.transRight.SetActive(enable: false);
1972 zone = z;
1973 if (zone.IsRegion)
1974 {
1976 }
1977 EClass.scene.Init(Scene.Mode.Zone);
1978 if ((bool)WidgetRoster.Instance)
1979 {
1981 }
1982 if ((bool)UIResourceTrack.Instance)
1983 {
1985 }
1986 if ((bool)WidgetMinimap.Instance)
1987 {
1989 }
1991 {
1992 if (LastTravelZone != null)
1993 {
1994 int elapsedHour = EClass.world.date.GetElapsedHour(dateTravel);
1995 int num = elapsedHour / 24;
1996 if (distanceTravel > 2)
1997 {
1998 elapsedHour %= 24;
1999 Msg.Say("travel", LastTravelZone.Name, Date.GetText(dateTravel, Date.TextFormat.Travel), num.ToString() ?? "", elapsedHour.ToString() ?? "");
2000 Msg.Say("travel2", distanceTravel.ToString() ?? "", ((EClass.pc.party.members.Count == 1) ? "you" : "youAndCompanion").lang());
2001 foreach (Chara member in EClass.pc.party.members)
2002 {
2003 member.AddExp(distanceTravel / 3);
2004 member.elements.ModExp(240, 30 + distanceTravel * 5);
2005 }
2006 }
2007 }
2008 distanceTravel = 0;
2011 }
2012 regionMoveWarned = false;
2013 }
void AddExp(int a)
Definition: Card.cs:2903
Party party
Definition: Chara.cs:43
Zone currentZone
Definition: Chara.cs:253
Definition: Date.cs:4
int GetElapsedHour(int rawDate)
Definition: Date.cs:352
int GetRaw(int offsetHours=0)
Definition: Date.cs:322
string GetText(TextFormat format)
Definition: Date.cs:245
TextFormat
Definition: Date.cs:6
static World world
Definition: EClass.cs:40
static UI ui
Definition: EClass.cs:16
void ModExp(int ele, float a, bool chain=false)
List< Chara > members
Definition: Party.cs:18
int distanceTravel
Definition: Player.cs:852
int uidLastTravelZone
Definition: Player.cs:855
Zone LastTravelZone
Definition: Player.cs:1226
int dateTravel
Definition: Player.cs:849
bool regionMoveWarned
Definition: Player.cs:1113
Definition: Scene.cs:8
void Init(Mode newMode)
Definition: Scene.cs:178
Mode
Definition: Scene.cs:10
int uid
Definition: Spatial.cs:70
static UIResourceTrack Instance
static WidgetMinimap Instance
static WidgetRoster Instance
Definition: WidgetRoster.cs:36
void OnMoveZone()
Definition: WidgetRoster.cs:91
GameDate date
Definition: World.cs:6

References Card.AddExp(), Chara.currentZone, World.date, dateTravel, distanceTravel, Card.elements, Date.GetElapsedHour(), Date.GetRaw(), Date.GetText(), Scene.Init(), UIResourceTrack.Instance, WidgetMinimap.Instance, WidgetRoster.Instance, Spatial.IsRegion, LastTravelZone, Party.members, ElementContainer.ModExp(), Spatial.Name, UIResourceTrack.OnMoveZone(), WidgetMinimap.OnMoveZone(), WidgetRoster.OnMoveZone(), Chara.party, EClass.pc, regionMoveWarned, Msg.Say(), EClass.scene, EClass.ui, Spatial.uid, uidLastTravelZone, EClass.world, and zone.

Referenced by AM_ViewZone._OnUpdateInput(), LayerNewZone.OnClickExit(), and Scene.OnUpdate().

◆ OnAdvanceDay()

void Player.OnAdvanceDay ( )
inline

Definition at line 2321 of file Player.cs.

2322 {
2325 if (EClass.pc.Evalue(85) > 0)
2326 {
2327 EClass.pc.ModExp(85, 10);
2328 }
2330 prayed = false;
2331 fished = 0;
2332 if (karma < 0 && EClass.rnd(4) == 0)
2333 {
2334 ModKarma(1);
2335 }
2336 }
int c_daysWithGod
Definition: Card.cs:1447
void ModExp(string alias, int a)
Definition: Card.cs:2610
void RefreshFaithElement()
Definition: Chara.cs:9782
void OnAdvanceDay()
void ModKarma(int a)
Definition: Player.cs:2444
int fished
Definition: Player.cs:924
bool prayed
Definition: Player.cs:942
NumLogManager nums
Definition: Player.cs:975

References Card.c_daysWithGod, Card.Evalue(), fished, karma, Card.ModExp(), ModKarma(), nums, NumLogManager.OnAdvanceDay(), EClass.pc, prayed, Chara.RefreshFaithElement(), and EClass.rnd().

Referenced by GameDate.AdvanceDay().

◆ OnAdvanceHour()

void Player.OnAdvanceHour ( )
inline

Definition at line 2301 of file Player.cs.

2302 {
2304 if (EClass.pc.Evalue(289) > 0)
2305 {
2306 foreach (Thing item in EClass.pc.things.List((Thing t) => t.c_IDTState == 5, onlyAccessible: true))
2307 {
2309 }
2310 }
2312 {
2313 return;
2314 }
2315 foreach (Chara member in EClass.pc.party.members)
2316 {
2317 member.AddExp(1);
2318 }
2319 }
override bool IsDeadOrSleeping
Definition: Chara.cs:571
Religion faith
Definition: Chara.cs:437
bool TryIdentify(Thing t, int count=1, bool show=true)
Definition: Chara.cs:7690
void OnChangeHour()
Definition: Religion.cs:556
List< Thing > List(Func< Thing, bool > func, bool onlyAccessible=false)

References EClass._zone, Card.AddExp(), Card.c_IDTState, Card.Evalue(), Chara.faith, Chara.IsDeadOrSleeping, Spatial.IsRegion, item, ThingContainer.List(), Party.members, Religion.OnChangeHour(), Chara.party, EClass.pc, EClass.rnd(), Card.things, and Chara.TryIdentify().

Referenced by GameDate.AdvanceHour().

◆ OnAdvanceRealHour()

void Player.OnAdvanceRealHour ( )
inline

Definition at line 1467 of file Player.cs.

1468 {
1469 realHour++;
1470 Msg.Say("time_warn", realHour.ToString() ?? "");
1471 string text = "time_warn_" + realHour;
1472 if (LangGame.Has(text))
1473 {
1474 Msg.Say(text);
1475 }
1476 }
static bool Has(string id)
Definition: LangGame.cs:46
static int realHour
Definition: Player.cs:1093

References LangGame.Has(), realHour, and Msg.Say().

Referenced by AM_Adv.OnBecomeNoGoal().

◆ OnBeforeSave()

void Player.OnBeforeSave ( )
inline

Definition at line 1412 of file Player.cs.

1413 {
1414 foreach (Layer layer in EClass.ui.layerFloat.layers)
1415 {
1416 foreach (Window componentsInDirectChild in layer.GetComponentsInDirectChildren<Window>())
1417 {
1418 componentsInDirectChild.UpdateSaveData();
1419 }
1420 }
1422 }
Definition: Layer.cs:9
Dictionary< string, Window.SaveData > dataWindow
Definition: Player.cs:1065
Definition: Window.cs:13
static Dictionary< string, SaveData > dictData
Definition: Window.cs:594
void UpdateSaveData()
Definition: Window.cs:1093

References dataWindow, Window.dictData, EClass.ui, and Window.UpdateSaveData().

Referenced by Game.OnBeforeSave().

◆ OnCreateGame()

void Player.OnCreateGame ( )
inline

Definition at line 1304 of file Player.cs.

1305 {
1306 karma = 30;
1307 debt = 20000000;
1308 chara = CharaGen.Create("chara");
1310 chara.things.SetSize(7, 5);
1311 chara.c_idTone = "default";
1312 chara.SetInt(56, 1);
1314 chara.faith = EClass.game.religions.Eyth;
1316 uidChara = chara.uid;
1317 Fav fav = IO.LoadFile<Fav>(CorePath.user + "PCC/fav" + EClass.rnd(3));
1318 chara.pccData = IO.Duplicate(fav.data);
1320 RefreshDomain();
1321 _agent = CharaGen.Create("chara");
1322 _agent.c_altName = "stash".lang();
1323 EClass.player.title = "master".lang();
1328 sketches.Add(115);
1329 pref.sort_ascending_shop = true;
1330 EClass.game.config.preference.autoEat = true;
1331 flags.toggleHotbarHighlightDisabled = true;
1332 layerAbilityConfig.hideDepletedSpell = true;
1333 layerAbilityConfig.bgAlpha = 70;
1334 memo = (memo2 = "memo_blank".lang());
1335 }
void SetInt(int id, int value=0)
Definition: BaseCard.cs:39
int uid
Definition: Card.cs:120
static Chara Create(string id, int lv=-1)
Definition: CharaGen.cs:17
Chara SetFaction(Faction f)
Definition: Chara.cs:1401
override CardRenderer _CreateRenderer()
Definition: Chara.cs:6407
static Faction Home
Definition: EClass.cs:26
ReligionManager religions
Definition: Game.cs:158
void OnCreateGame()
void OnCreateGame()
void OnCreateGame()
Definition: Player.cs:697
int debt
Definition: Player.cs:906
Flags flags
Definition: Player.cs:1050
HashSet< int > sketches
Definition: Player.cs:1026
void RefreshDomain()
Definition: Player.cs:1478
Chara _agent
Definition: Player.cs:1044
float baseActTime
Definition: Player.cs:1155
string memo
Definition: Player.cs:963
int uidChara
Definition: Player.cs:828
string memo2
Definition: Player.cs:966
Chara chara
Definition: Player.cs:1159
HotbarManager hotbars
Definition: Player.cs:1041
ReligionEyth Eyth
void SetSize(int w, int h)

References _agent, Chara._CreateRenderer(), baseActTime, chara, CharaGen.Create(), debt, GameSetting.defaultActPace, ThingContainer.DestroyAll(), ReligionManager.Eyth, flags, EClass.game, EClass.Home, hotbars, karma, memo, memo2, nums, HotbarManager.OnCreateGame(), NumLogManager.OnCreateGame(), Player.Flags.OnCreateGame(), RefreshDomain(), Chara.RefreshFaithElement(), Game.religions, EClass.rnd(), Chara.SetFaction(), BaseCard.SetInt(), ThingContainer.SetSize(), EClass.setting, sketches, Card.things, Card.uid, and uidChara.

Referenced by Game._Create().

◆ OnExitBorder()

void Player.OnExitBorder ( Point  p)
inline

Definition at line 1845 of file Player.cs.

1846 {
1848 {
1849 int num = 0;
1850 int num2 = 0;
1851 MapBounds bounds = EClass._map.bounds;
1852 if (p.x < bounds.x)
1853 {
1854 num = -1;
1855 }
1856 else if (p.x <= bounds.maxX)
1857 {
1858 num2 = ((p.z >= bounds.z) ? 1 : (-1));
1859 }
1860 else
1861 {
1862 num = 1;
1863 }
1864 ZoneTransition.EnterState state = num switch
1865 {
1866 -1 => ZoneTransition.EnterState.Right,
1867 1 => ZoneTransition.EnterState.Left,
1868 _ => (num2 == 1) ? ZoneTransition.EnterState.Bottom : ZoneTransition.EnterState.Top,
1869 };
1870 float ratePos = ((num == 1 || num == -1) ? ((float)(p.z - bounds.z) / (float)bounds.Height) : ((float)(p.x - bounds.x) / (float)bounds.Width));
1871 ZoneTransition trans = new ZoneTransition
1872 {
1873 state = state,
1874 ratePos = ratePos
1875 };
1876 Point p2 = new Point(EClass._zone.x + num, EClass._zone.y + num2);
1877 EnterLocalZone(p2, trans);
1878 }
1879 else
1880 {
1882 }
1883 }
static Map _map
Definition: EClass.cs:18
int maxX
Definition: MapBounds.cs:14
int Width
Definition: MapBounds.cs:26
int x
Definition: MapBounds.cs:8
int Height
Definition: MapBounds.cs:28
MapBounds bounds
Definition: Map.cs:52
int y
Definition: Spatial.cs:106
int x
Definition: Spatial.cs:94

References EClass._map, EClass._zone, Map.bounds, EnterLocalZone(), MapBounds.Height, Spatial.IsRegion, MapBounds.maxX, Chara.MoveZone(), Zone.ParentZone, EClass.pc, MapBounds.Width, MapBounds.x, Point.x, Spatial.x, Spatial.y, and MapBounds.z.

◆ OnLoad()

void Player.OnLoad ( )
inline

Definition at line 1388 of file Player.cs.

1389 {
1390 nums.OnLoad();
1391 codex.OnLoad();
1392 if (dataWindow != null)
1393 {
1394 Window.dictData = dataWindow;
1395 }
1396 EClass.pc.Refresh();
1397 if (Application.isEditor && EClass.debug.resetPlayerConfig && !isEditor)
1398 {
1399 EClass.game.config = new Game.Config();
1400 if (dataWindow != null)
1401 {
1402 dataWindow.Clear();
1403 }
1404 EClass.pc.things.Foreach(delegate(Thing t)
1405 {
1406 t.c_windowSaveData = null;
1407 }, onlyAccessible: false);
1408 }
1409 isEditor = Application.isEditor;
1410 }
void Refresh(bool calledRecursive=false)
Definition: Chara.cs:1708
void OnLoad()
Definition: CodexManager.cs:23
bool resetPlayerConfig
Definition: CoreDebug.cs:120
Definition: Game.cs:8
CodexManager codex
Definition: Player.cs:1071
bool isEditor
Definition: Player.cs:951
void Foreach(Action< Thing > action, bool onlyAccessible=true)

References codex, dataWindow, EClass.debug, ThingContainer.Foreach(), isEditor, nums, CodexManager.OnLoad(), NumLogManager.OnLoad(), EClass.pc, Chara.Refresh(), CoreDebug.resetPlayerConfig, and Card.things.

Referenced by Game.OnLoad().

◆ OnStartNewGame()

void Player.OnStartNewGame ( )
inline

Definition at line 1337 of file Player.cs.

1338 {
1339 ModKeyItem("old_charm", 1, msg: false);
1340 ModKeyItem("backpack", 1, msg: false);
1341 EClass.player.knownBGMs.Add(1);
1342 EClass.player.knownBGMs.Add(3);
1343 EClass.player.questTracker = true;
1344 trackedCategories.Add("food");
1345 trackedCategories.Add("drink");
1346 trackedCategories.Add("resource");
1347 EClass.game.quests.Start("main");
1348 chara.hp = chara.MaxHP;
1350 chara.elements.SetBase(135, 1);
1351 chara.elements.SetBase(6003, 1);
1352 chara.elements.SetBase(6012, 1);
1353 chara.elements.SetBase(6015, 1);
1354 chara.elements.SetBase(6050, 1);
1355 List<Element> list = new List<Element>();
1356 foreach (Element value in EClass.pc.elements.dict.Values)
1357 {
1358 list.Add(value);
1359 }
1360 foreach (Element item in list)
1361 {
1362 if (item.Value == 0)
1363 {
1365 }
1366 else if (item.HasTag("primary"))
1367 {
1368 item.vTempPotential = Mathf.Max(30, (item.ValueWithoutLink - 8) * 7);
1369 }
1370 }
1371 foreach (BodySlot slot in chara.body.slots)
1372 {
1373 chara.body.Unequip(slot);
1374 }
1376 CreateEquip();
1381 EClass.pc.hunger.value = 30;
1383 EClass.pc.stamina.Set(EClass.pc.stamina.max / 2);
1384 EClass.pc.Refresh();
1385 isEditor = Application.isEditor;
1386 }
void Unequip(Thing thing, bool refresh=true)
Definition: CharaBody.cs:49
List< BodySlot > slots
Definition: CharaBody.cs:8
void CalculateMaxStamina()
Definition: Chara.cs:1963
override int MaxHP
Definition: Chara.cs:706
Stats stamina
Definition: Chara.cs:1128
void SetFaith(string id)
Definition: Chara.cs:1688
Dictionary< int, Element > dict
Element SetBase(string alias, int v, int potential=0)
void Remove(int id)
void CreateEquip()
Definition: Player.cs:1604
HashSet< int > knownBGMs
Definition: Player.cs:1020
HashSet< string > trackedCategories
Definition: Player.cs:1011
void GenerateBackgroundText()
Definition: Player.cs:1572
Quest Start(string id, string idGlobalChara)
Definition: QuestManager.cs:41
List< Religion > list

References Chara.body, Chara.CalculateMaxStamina(), chara, ElementContainerCard.CheckSkillActions(), CreateEquip(), Chara.currentZone, World.date, dateTravel, ThingContainer.DestroyAll(), ElementContainer.dict, Card.elements, EClass.game, GenerateBackgroundText(), Date.GetRaw(), isEditor, item, knownBGMs, ReligionManager.list, Chara.MaxHP, ModKeyItem(), EClass.pc, EClass.player, Game.quests, Chara.Refresh(), Game.religions, ElementContainer.Remove(), ElementContainer.SetBase(), Chara.SetFaith(), CharaBody.slots, Chara.stamina, QuestManager.Start(), Card.things, trackedCategories, Spatial.uid, uidLastTravelZone, CharaBody.Unequip(), and EClass.world.

Referenced by Game.StartNewGame().

◆ RefreshCurrentHotItem()

void Player.RefreshCurrentHotItem ( )
inline

Definition at line 2131 of file Player.cs.

2132 {
2134 if (!instance)
2135 {
2136 return;
2137 }
2138 if (currentHotItem != null)
2139 {
2140 if ((bool)instance)
2141 {
2142 instance.buttonHotItem.Refresh();
2143 }
2145 {
2146 currentHotItem = null;
2147 }
2149 {
2150 currentHotItem = null;
2151 }
2152 }
2153 if (EClass.pc.held != null)
2154 {
2156 }
2157 if (currentHotItem == null)
2158 {
2159 if ((bool)instance && instance.selected != -1 && instance.selectedButton.card != null && instance.selectedButton.card.GetRootCard() == EClass.pc && !instance.selectedButton.card.GetRootCard().isDestroyed)
2160 {
2161 currentHotItem = instance.selectedButton.card.trait.GetHotItem();
2162 }
2163 else
2164 {
2166 }
2167 }
2169 {
2170 if (lastHotItem != null)
2171 {
2173 }
2176 }
2178 WidgetHotbar.dirtyCurrentItem = false;
2180 EClass.core.actionsNextFrame.Add(delegate
2181 {
2182 EClass.core.actionsNextFrame.Add(delegate
2183 {
2185 {
2186 item.invs[0].RefreshHighlight();
2187 }
2188 });
2189 });
2191 }
List< Action > actionsNextFrame
Definition: BaseCore.cs:31
bool isDestroyed
Definition: Card.cs:73
void RecalculateFOV()
Definition: Card.cs:6151
virtual void OnUnsetCurrentItem()
Definition: HotItem.cs:83
virtual void OnSetCurrentItem()
Definition: HotItem.cs:79
virtual Thing Thing
Definition: HotItem.cs:38
static List< LayerInventory > listInv
HotItem lastHotItem
Definition: Player.cs:1103
void MarkMapHighlights()
Definition: Player.cs:2361
HotItemNoItem hotItemNoItem
Definition: Player.cs:1185
static WidgetCurrentTool Instance
static void RefreshCurrentHotItem()
ButtonHotItem buttonHotItem

References BaseCore.actionsNextFrame, WidgetCurrentTool.buttonHotItem, ButtonGrid.card, EClass.core, currentHotItem, Trait.GetHotItem(), Card.GetRootCard(), Chara.held, hotItemNoItem, WidgetCurrentTool.Instance, Card.isDestroyed, item, lastHotItem, LayerInventory.listInv, MarkMapHighlights(), HotItem.OnSetCurrentItem(), HotItem.OnUnsetCurrentItem(), EClass.pc, Card.RecalculateFOV(), ButtonHotItem.Refresh(), WidgetCurrentTool.RefreshCurrentHotItem(), WidgetCurrentTool.selected, WidgetCurrentTool.selectedButton, HotItem.Thing, and Card.trait.

Referenced by Scene.Init(), Scene.OnUpdate(), Card.RemoveThing(), SetCurrentHotItem(), and InvOwner.TryHold().

◆ RefreshDomain()

void Player.RefreshDomain ( )
inline

Definition at line 1478 of file Player.cs.

1479 {
1480 domains.Clear();
1481 for (int i = 0; i < EClass.pc.job.domain.Length; i += 2)
1482 {
1483 domains.Add(EClass.pc.job.domain[i]);
1484 }
1485 }

References domains, Chara.job, and EClass.pc.

Referenced by CoreDebug.ChangeJob(), UICharaMaker.ListJob(), OnCreateGame(), and UICharaMaker.RerollJob().

◆ RefreshEmptyAlly()

void Player.RefreshEmptyAlly ( )
inline

Definition at line 1558 of file Player.cs.

1559 {
1560 int num = MaxAlly - EClass.pc.party.members.Count + 1;
1561 if (num == lastEmptyAlly)
1562 {
1563 return;
1564 }
1565 lastEmptyAlly = num;
1566 foreach (Chara member in EClass.pc.party.members)
1567 {
1568 member.RefreshSpeed();
1569 }
1570 }
void RefreshSpeed(Element.BonusInfo info=null)
Definition: Chara.cs:1824
int MaxAlly
Definition: Player.cs:1234
int lastEmptyAlly
Definition: Player.cs:1149

References lastEmptyAlly, MaxAlly, Party.members, Chara.party, EClass.pc, and Chara.RefreshSpeed().

Referenced by Scene.Init(), and Scene.OnUpdate().

◆ ResetCurrentHotItem()

void Player.ResetCurrentHotItem ( )
inline

Definition at line 2193 of file Player.cs.

2194 {
2195 EClass.pc.PickHeld();
2197 SE.SelectHotitem();
2198 }
void PickHeld(bool msg=false)
Definition: Chara.cs:4420

References EClass.pc, Chara.PickHeld(), EClass.player, and SetCurrentHotItem().

Referenced by WidgetCurrentTool.Select().

◆ SelectDomain()

Layer Player.SelectDomain ( Action  onKill = null)
inline

Definition at line 1497 of file Player.cs.

1498 {
1499 List<SourceElement.Row> list2 = new List<SourceElement.Row>();
1500 foreach (SourceElement.Row row2 in EClass.sources.elements.rows)
1501 {
1502 if (row2.categorySub == "eleAttack" && !row2.tag.Contains("hidden") && (!row2.tag.Contains("high") || EClass.pc.job.domain.Contains(row2.id)))
1503 {
1504 list2.Add(row2);
1505 }
1506 }
1507 return EClass.ui.AddLayer<LayerList>().SetListCheck(list2, (SourceElement.Row a) => a.GetName(), delegate(SourceElement.Row s, ItemGeneral b)
1508 {
1509 bool flag4 = false;
1510 foreach (int domain in EClass.player.domains)
1511 {
1512 if (s.id == domain)
1513 {
1514 flag4 = true;
1515 }
1516 }
1517 if (flag4)
1518 {
1519 EClass.player.domains.Remove(s.id);
1520 }
1521 else
1522 {
1523 EClass.player.domains.Add(s.id);
1524 }
1525 }, delegate(List<UIList.ButtonPair> list)
1526 {
1527 bool flag = EClass.player.domains.Count >= 3 + EClass.pc.Evalue(1402);
1528 foreach (UIList.ButtonPair item in list)
1529 {
1530 UIButton button = (item.component as ItemGeneral).button1;
1531 SourceElement.Row row = item.obj as SourceElement.Row;
1532 bool flag2 = false;
1533 bool flag3 = false;
1534 foreach (int domain2 in EClass.player.domains)
1535 {
1536 if (row.id == domain2)
1537 {
1538 flag3 = true;
1539 }
1540 }
1541 button.SetCheck(flag3);
1542 for (int i = 0; i < ((EClass.pc.job.id == "swordsage") ? 5 : 3); i++)
1543 {
1544 if (EClass.pc.job.domain[i * 2] == row.id)
1545 {
1546 flag2 = true;
1547 }
1548 }
1549 button.interactable = !flag2 && (!flag || flag3);
1550 button.GetComponent<CanvasGroup>().enabled = !button.interactable;
1551 }
1552 }).SetOnKill(delegate
1553 {
1554 onKill?.Invoke();
1555 });
1556 }
void SetCheck(bool check)
Definition: UIButton.cs:332
Definition: UIList.cs:9

References domains, SourceManager.elements, Card.Evalue(), item, Chara.job, EClass.pc, EClass.player, EClass.sources, and EClass.ui.

Referenced by UICharaMaker.AddDomain().

◆ SetCurrentHotItem()

void Player.SetCurrentHotItem ( HotItem  item)
inline

◆ SetPriorityAction()

void Player.SetPriorityAction ( string  id,
Thing  t 
)
inline

Definition at line 1424 of file Player.cs.

1425 {
1426 if (t == null)
1427 {
1428 return;
1429 }
1430 if (id.IsEmpty())
1431 {
1432 foreach (List<string> p in priorityActions.Values)
1433 {
1434 p.ForeachReverse(delegate(string i)
1435 {
1436 if (i == t.id)
1437 {
1438 p.Remove(i);
1439 }
1440 });
1441 }
1442 return;
1443 }
1444 if (!priorityActions.ContainsKey(id))
1445 {
1446 priorityActions[id] = new List<string>();
1447 }
1448 if (!priorityActions[id].Contains(t.id))
1449 {
1450 priorityActions[id].Add(t.id);
1451 }
1452 }

References Card.id, and priorityActions.

Referenced by InvOwner.ListInteraction.Add().

◆ SimulateFaction()

void Player.SimulateFaction ( )
inline

Definition at line 1761 of file Player.cs.

1762 {
1763 simulatingZone = true;
1764 Zone currentZone = EClass.pc.currentZone;
1765 Point point = EClass.pc.pos.Copy();
1766 foreach (FactionBranch child in EClass.pc.faction.GetChildren())
1767 {
1768 if (child.owner != currentZone)
1769 {
1770 EClass.pc.MoveZone(child.owner);
1771 zone = child.owner;
1772 EClass.scene.Init(Scene.Mode.Zone);
1773 }
1774 }
1775 EClass.pc.MoveZone(currentZone, new ZoneTransition
1776 {
1777 state = ZoneTransition.EnterState.Exact,
1778 x = point.x,
1779 z = point.z
1780 });
1781 zone = currentZone;
1782 EClass.scene.Init(Scene.Mode.Zone);
1783 simulatingZone = false;
1784 }
Faction faction
Definition: Chara.cs:425
List< FactionBranch > GetChildren()
Definition: FACTION.cs:202
bool simulatingZone
Definition: Player.cs:1135

References Point.Copy(), Chara.currentZone, Chara.faction, Faction.GetChildren(), Scene.Init(), Chara.MoveZone(), FactionBranch.owner, EClass.pc, Card.pos, EClass.scene, simulatingZone, and zone.

Referenced by LayerSleep.Advance().

◆ TargetRanged()

bool Player.TargetRanged ( )
inline

Definition at line 2235 of file Player.cs.

2236 {
2238 int num = 999999999;
2239 Chara chara = null;
2241 List<Chara> list = new List<Chara>();
2242 bool flag = false;
2243 if (EInput.isShiftDown && pos.IsValid && pos.HasChara)
2244 {
2245 foreach (Chara chara2 in EClass._map.charas)
2246 {
2247 if (chara2.isSynced && chara2.IsAliveInCurrentZone && !chara2.IsPC && chara2.pos.Equals(pos) && EClass.pc.CanSeeLos(chara2.pos))
2248 {
2249 list.Add(chara2);
2250 }
2251 }
2252 if (list.Count > 0)
2253 {
2254 chara = list.NextItem(EClass.player.target);
2255 flag = true;
2256 }
2257 list.Clear();
2258 }
2259 if (!flag)
2260 {
2261 foreach (Chara chara3 in EClass._map.charas)
2262 {
2263 int num2 = 0;
2264 if (chara3.isSynced && chara3.IsAliveInCurrentZone && !chara3.IsPC && EClass.pc.CanSeeLos(chara3.pos) && EClass.pc.CanSee(chara3) && !chara3.IsFriendOrAbove())
2265 {
2266 if (chara3.IsNeutralOrAbove())
2267 {
2268 num2 += 10000;
2269 }
2270 num2 += EClass.pc.Dist(chara3);
2271 if (num2 < num)
2272 {
2273 chara = chara3;
2274 num = num2;
2275 }
2276 list.Add(chara3);
2277 }
2278 }
2279 if (EInput.isShiftDown)
2280 {
2281 chara = list.NextItem(EClass.player.target);
2282 }
2283 }
2284 if (chara == null)
2285 {
2286 if (target != null)
2287 {
2288 Msg.Say("noTargetFound");
2289 }
2290 target = null;
2291 return false;
2292 }
2293 if (target != chara)
2294 {
2295 Msg.Say("targetSet", chara);
2296 }
2297 target = chara;
2298 return true;
2299 }
Thing Add(string id, int num=1, int lv=1)
Definition: Card.cs:3034
bool CanSeeLos(Card c, int dist=-1)
Definition: Chara.cs:1232
bool IsNeutralOrAbove()
Definition: Chara.cs:6342
bool IsFriendOrAbove()
Definition: Chara.cs:6386
static bool isShiftDown
Definition: EInput.cs:261
List< Chara > charas
Definition: Map.cs:81
bool Equals(int _x, int _z)
Definition: Point.cs:944
bool IsValid
Definition: Point.cs:88
bool HasChara
Definition: Point.cs:226
PointTarget mouseTarget
Definition: Scene.cs:135

References EClass._map, Card.Add(), Chara.CanSee(), Chara.CanSeeLos(), chara, Map.charas, currentHotItem, Card.Dist(), Point.Equals(), Point.HasChara, Chara.IsAliveInCurrentZone, Chara.IsFriendOrAbove(), Chara.IsNeutralOrAbove(), Chara.IsPC, EInput.isShiftDown, Chara.isSynced, Point.IsValid, Scene.mouseTarget, EClass.pc, EClass.player, Card.pos, PointTarget.pos, Msg.Say(), EClass.scene, target, HotItem.Thing, and Card.trait.

Referenced by AM_Adv._OnUpdateInput().

◆ ToggleFavMoongate()

void Player.ToggleFavMoongate ( string  id)
inline

Definition at line 2498 of file Player.cs.

2499 {
2500 if (favMoongate.Contains(id))
2501 {
2502 favMoongate.Remove(id);
2503 }
2504 else
2505 {
2506 favMoongate.Add(id);
2507 }
2508 }
List< string > favMoongate
Definition: Player.cs:1089

References favMoongate.

◆ TooHeavyToMove()

bool Player.TooHeavyToMove ( )
inline

Definition at line 2486 of file Player.cs.

2487 {
2488 if (!EClass.debug.ignoreWeight && EClass.pc.burden.GetPhase() == 4)
2489 {
2490 Msg.Say("tooHeavyToMove");
2492 EInput.Consume(consumeAxis: true);
2493 return true;
2494 }
2495 return false;
2496 }
virtual void NextFrame()
CardRenderer renderer
Definition: Card.cs:59
Stats burden
Definition: Chara.cs:1126
bool ignoreWeight
Definition: CoreDebug.cs:187

References Chara.burden, EInput.Consume(), EClass.debug, CoreDebug.ignoreWeight, CardRenderer.NextFrame(), EClass.pc, Card.renderer, and Msg.Say().

Referenced by AM_Adv.PressedActionMove(), AI_Goto.Run(), GoalManualMove.Run(), AM_Adv.SetManualMove(), Chara.TryMoveFrom(), and Chara.TryMoveTowards().

◆ TryAbortAutoCombat()

bool Player.TryAbortAutoCombat ( bool  immediate = true)
inline

Definition at line 2338 of file Player.cs.

2339 {
2340 if (!(EClass.pc.ai is GoalAutoCombat))
2341 {
2342 return false;
2343 }
2344 EClass.pc.ai.Cancel();
2345 if (immediate)
2346 {
2348 }
2349 return true;
2350 }
virtual Status Cancel()
Definition: AIAct.cs:291
AIAct ai
Definition: Chara.cs:200
AIAct SetNoGoal()
Definition: Chara.cs:8522

References Chara.ai, AIAct.Cancel(), EClass.pc, and Chara.SetNoGoal().

Referenced by Chara.Die().

◆ TryEquipBait()

void Player.TryEquipBait ( )
inline

Definition at line 2214 of file Player.cs.

2215 {
2216 if (eqBait != null && eqBait.GetRootCard() != EClass.pc)
2217 {
2218 eqBait = null;
2219 }
2220 if (eqBait == null)
2221 {
2223 }
2224 }
Thing eqBait
Definition: Player.cs:1062
Thing Find(int uid)
override bool OnUse(Chara c)

References eqBait, ThingContainer.Find(), Card.GetRootCard(), TraitEquipItem.OnUse(), EClass.pc, and Card.things.

Referenced by AI_Fish.Run().

Member Data Documentation

◆ _agent

Chara Player._agent

Definition at line 1044 of file Player.cs.

Referenced by OnCreateGame().

◆ altHeldPos

bool Player.altHeldPos

Definition at line 1109 of file Player.cs.

Referenced by CharaRenderer.DrawHeld(), and Chara.GetSubPassData().

◆ angle

float Player.angle

Definition at line 927 of file Player.cs.

Referenced by Game.OnLoad().

◆ autoCombatStartHP

int Player.autoCombatStartHP

Definition at line 1179 of file Player.cs.

Referenced by AM_Adv._OnUpdateInput().

◆ bankMoney

int Player.bankMoney

Definition at line 873 of file Player.cs.

◆ baseActTime

float Player.baseActTime

Definition at line 1155 of file Player.cs.

Referenced by OnCreateGame(), and Chara.Tick().

◆ chara

◆ cinemaConfig

CinemaConfig Player.cinemaConfig = new CinemaConfig()

Definition at line 1068 of file Player.cs.

Referenced by BaseTileMap.Draw().

◆ codex

◆ countNewline

int Player.countNewline

Definition at line 1143 of file Player.cs.

Referenced by GameDate.AdvanceMin().

◆ currentHotItem

◆ customLightMod

int Player.customLightMod = 3

Definition at line 918 of file Player.cs.

Referenced by Card.CalculateFOV().

◆ dailyGacha

bool Player.dailyGacha

Definition at line 933 of file Player.cs.

Referenced by LayerGacha.PlayGacha(), and LayerGacha.RefreshCoin().

◆ dataPick

Window.SaveData Player.dataPick = new Window.SaveData()

Definition at line 990 of file Player.cs.

Referenced by Chara._Move(), and UIInventory.RefreshMenu().

◆ dataWindow

Dictionary<string, Window.SaveData> Player.dataWindow

Definition at line 1065 of file Player.cs.

Referenced by OnBeforeSave(), and OnLoad().

◆ dateTravel

int Player.dateTravel

Definition at line 849 of file Player.cs.

Referenced by MoveZone(), and OnStartNewGame().

◆ deathDialog

bool Player.deathDialog

Definition at line 1121 of file Player.cs.

Referenced by Scene.OnUpdate().

◆ deathMsg

string Player.deathMsg

Definition at line 1141 of file Player.cs.

Referenced by Chara.Die().

◆ deathZoneMove

bool Player.deathZoneMove

Definition at line 1125 of file Player.cs.

Referenced by Chara.MoveZone().

◆ debt

int Player.debt

◆ dialogFlags

Dictionary<string, int> Player.dialogFlags = new Dictionary<string, int>()

Definition at line 996 of file Player.cs.

Referenced by TCOrbitChara.RefreshAll().

◆ distanceTravel

int Player.distanceTravel

Definition at line 852 of file Player.cs.

Referenced by Chara._Move(), and MoveZone().

◆ domains

List<int> Player.domains = new List<int>()

◆ doneBackers

◆ enemySpotted

bool Player.enemySpotted

Definition at line 1139 of file Player.cs.

Referenced by AI_Goto.Run().

◆ eqBait

◆ expInfluence

int Player.expInfluence

Definition at line 846 of file Player.cs.

Referenced by AddExpInfluence().

◆ expKnowledge

int Player.expKnowledge

Definition at line 843 of file Player.cs.

Referenced by AddExpKnowledge().

◆ extraTax

int Player.extraTax

Definition at line 891 of file Player.cs.

Referenced by Faction.GetTotalTax(), Faction.OnAdvanceMonth(), and Faction.SetTaxTooltip().

◆ fame

◆ favAbility

HashSet<int> Player.favAbility = new HashSet<int>()

◆ favMoongate

List<string> Player.favMoongate = new List<string>()

Definition at line 1089 of file Player.cs.

Referenced by TraitMoongateEx._OnUse(), and ToggleFavMoongate().

◆ fished

int Player.fished

Definition at line 924 of file Player.cs.

Referenced by AI_Fish.Makefish(), and OnAdvanceDay().

◆ flags

◆ focusedchara

Chara Player.focusedchara

Definition at line 1161 of file Player.cs.

◆ forceTalk

bool Player.forceTalk

Definition at line 1107 of file Player.cs.

Referenced by Card.Talk().

◆ giftJure

int Player.giftJure

Definition at line 912 of file Player.cs.

Referenced by TraitGiftJure.OnUse().

◆ haltMove

bool Player.haltMove

Definition at line 1127 of file Player.cs.

Referenced by AM_Adv._OnUpdateInput(), and Chara.Tick().

◆ hangIcons

Dictionary<string, string> Player.hangIcons = new Dictionary<string, string>()

Definition at line 999 of file Player.cs.

Referenced by UIHangIcon.OnClick(), and UIHangIcon.Refresh().

◆ hasNewQuest

bool Player.hasNewQuest

Definition at line 930 of file Player.cs.

◆ hoard

◆ holyWell

int Player.holyWell

Definition at line 876 of file Player.cs.

Referenced by GameDate.AdvanceMonth().

◆ hotbarPage

int Player.hotbarPage

Definition at line 882 of file Player.cs.

◆ hotbars

◆ hotItemNoItem

HotItemNoItem Player.hotItemNoItem = new HotItemNoItem()

Definition at line 1185 of file Player.cs.

Referenced by WidgetCurrentTool._RefreshCurrentHotItem(), and RefreshCurrentHotItem().

◆ hotItemToRestore

HotItem Player.hotItemToRestore

Definition at line 1105 of file Player.cs.

Referenced by AM_Adv.OnBecomeNoGoal().

◆ ignoreFallOver

int Player.ignoreFallOver

Definition at line 1151 of file Player.cs.

Referenced by Scene.OnUpdate().

◆ instaComplete

◆ invlunerable

bool Player.invlunerable

Definition at line 1129 of file Player.cs.

Referenced by Chara.TryNeckHunt().

◆ isAutoFarming

◆ isEditor

bool Player.isEditor

Definition at line 951 of file Player.cs.

Referenced by WidgetManager.OnGameInstantiated(), OnLoad(), and OnStartNewGame().

◆ karma

int Player.karma

◆ keyItems

Dictionary<int, int> Player.keyItems = new Dictionary<int, int>()

Definition at line 1074 of file Player.cs.

Referenced by CountKeyItem(), ModKeyItem(), and ContentKeyItem.OnSwitchContent().

◆ knowledges

KnowledgeManager Player.knowledges = new KnowledgeManager()

Definition at line 978 of file Player.cs.

◆ knownBGMs

HashSet<int> Player.knownBGMs = new HashSet<int>()

Definition at line 1020 of file Player.cs.

Referenced by OnStartNewGame(), TraitTape.OnUse(), and LayerEditPlaylist.Refresh().

◆ knownCraft

HashSet<int> Player.knownCraft = new HashSet<int>()

Definition at line 1032 of file Player.cs.

Referenced by TraitCrafter.Craft(), and UIDragGridInfo.Init().

◆ knownSongs

Dictionary<string, KnownSong> Player.knownSongs = new Dictionary<string, KnownSong>()

Definition at line 1002 of file Player.cs.

Referenced by AI_PlayMusic.Run().

◆ lastAct

Act Player.lastAct

Definition at line 1167 of file Player.cs.

◆ lastEmptyAlly

int Player.lastEmptyAlly

◆ lastFelmeraReward

int Player.lastFelmeraReward

◆ lastHotItem

HotItem Player.lastHotItem

Definition at line 1103 of file Player.cs.

Referenced by RefreshCurrentHotItem().

◆ lastMarkedHighlights

List<Cell> Player.lastMarkedHighlights = new List<Cell>()

Definition at line 1101 of file Player.cs.

Referenced by ClearMapHighlights(), and Point.SetHighlight().

◆ lastRecipes

Dictionary<string, string> Player.lastRecipes = new Dictionary<string, string>()

Definition at line 1005 of file Player.cs.

Referenced by LayerCraft.OnKill(), and LayerCraft.RefreshCategory().

◆ lastTransition

ZoneTransition Player.lastTransition

Definition at line 1099 of file Player.cs.

Referenced by Scene.OnUpdate().

◆ lastTurn

int Player.lastTurn

Definition at line 1147 of file Player.cs.

Referenced by AM_Adv._OnUpdateInput().

◆ lastZonePos

Point Player.lastZonePos

Definition at line 1059 of file Player.cs.

Referenced by Zone.GetSpawnPos().

◆ layerAbilityConfig

LayerAbility.Config Player.layerAbilityConfig = new LayerAbility.Config()

Definition at line 993 of file Player.cs.

◆ lightPower

float Player.lightPower

Definition at line 1153 of file Player.cs.

Referenced by Card.CalculateFOV(), and BaseTileMap.DrawTile().

◆ lightRadius

int Player.lightRadius

◆ listSummon

List<Chara> Player.listSummon = new List<Chara>()

Definition at line 1177 of file Player.cs.

Referenced by Zone.AddGlobalCharasOnActivate(), and Chara.MoveZone().

◆ little_dead

int Player.little_dead

Definition at line 885 of file Player.cs.

Referenced by Chara.Die(), and TraitTicketFurniture.GetPrice().

◆ little_saved

int Player.little_saved

Definition at line 888 of file Player.cs.

Referenced by TraitTicketFurniture.GetPrice(), and ActThrow.Throw().

◆ luckycoin

int Player.luckycoin

Definition at line 915 of file Player.cs.

Referenced by FortuneRollData.GetPrize().

◆ mainWidgets

WidgetManager.SaveData Player.mainWidgets

Definition at line 984 of file Player.cs.

Referenced by WidgetManager.OnGameInstantiated().

◆ memo

string Player.memo = ""

Definition at line 963 of file Player.cs.

Referenced by WidgetMemo.OnActivate(), and OnCreateGame().

◆ memo2

string Player.memo2 = ""

Definition at line 966 of file Player.cs.

Referenced by WidgetMemo.OnActivate(), and OnCreateGame().

◆ nextMove

Vector2 Player.nextMove

◆ nextZone

Zone Player.nextZone

Definition at line 1181 of file Player.cs.

Referenced by Zone.CanDestroy().

◆ noRestocks

Dictionary<string, HashSet<string> > Player.noRestocks = new Dictionary<string, HashSet<string>>()

Definition at line 1083 of file Player.cs.

Referenced by Trait.OnBarter().

◆ notices

NoticeManager Player.notices = new NoticeManager()

Definition at line 1163 of file Player.cs.

Referenced by ContentTop.OnSwitchContent().

◆ nums

◆ onStartZone

Action Player.onStartZone

Definition at line 1173 of file Player.cs.

Referenced by Scene.Init().

◆ openContainerCenter

bool Player.openContainerCenter

Definition at line 954 of file Player.cs.

Referenced by LayerInventory.CreateContainerPC(), and UIInventory.RefreshMenu().

◆ pickupDelay

float Player.pickupDelay = 2f

Definition at line 1157 of file Player.cs.

Referenced by Scene.OnUpdate().

◆ playingSong

PlayingSong Player.playingSong

Definition at line 1175 of file Player.cs.

Referenced by AI_PlayMusic.Run().

◆ popups

PopupManager Player.popups = new PopupManager()

Definition at line 981 of file Player.cs.

◆ position

Vector3 Player.position

Definition at line 1171 of file Player.cs.

Referenced by CharaRenderer.UpdatePosition().

◆ prayed

bool Player.prayed

Definition at line 942 of file Player.cs.

Referenced by GameDate.AdvanceDay(), OnAdvanceDay(), and ActPray.TryPray().

◆ pref

◆ preventDeathPenalty

bool Player.preventDeathPenalty

Definition at line 1123 of file Player.cs.

Referenced by Chara.Revive().

◆ priorityActions

Dictionary<string, List<string> > Player.priorityActions = new Dictionary<string, List<string>>()

Definition at line 1008 of file Player.cs.

Referenced by IsPriorityAction(), and SetPriorityAction().

◆ questRerollCost

int Player.questRerollCost

Definition at line 921 of file Player.cs.

Referenced by GameDate.AdvanceDay(), and LayerQuestBoard.OnSwitchContent().

◆ questTracker

bool Player.questTracker

Definition at line 945 of file Player.cs.

Referenced by Scene.Init(), HotItemWidget.OnClick(), and QuestManager.Start().

◆ queues

QueueManager Player.queues = new QueueManager()

Definition at line 1165 of file Player.cs.

Referenced by UI.OnActivateZone(), and Chara.SetAI().

◆ realHour

int Player.realHour
static

Definition at line 1093 of file Player.cs.

Referenced by OnAdvanceRealHour(), and AM_Adv.OnBecomeNoGoal().

◆ recipes

◆ regionMoveWarned

bool Player.regionMoveWarned

Definition at line 1113 of file Player.cs.

Referenced by Chara._Move(), and MoveZone().

◆ renderThing

Thing Player.renderThing

Definition at line 1183 of file Player.cs.

◆ resetPrincipal

bool Player.resetPrincipal

Definition at line 1133 of file Player.cs.

Referenced by LayerWorldSetting.Apply(), and LayerWorldSetting.StartGame().

◆ returnInfo

◆ safeTravel

int Player.safeTravel

Definition at line 879 of file Player.cs.

Referenced by Chara.Tick().

◆ seedChest

int Player.seedChest

Definition at line 903 of file Player.cs.

Referenced by ThingGen.CreateTreasureContent().

◆ seedFortune

int Player.seedFortune

Definition at line 909 of file Player.cs.

Referenced by TraitCrafter.Craft().

◆ seedHallucination

int Player.seedHallucination
static

Definition at line 1091 of file Player.cs.

Referenced by CardRenderer.Draw().

◆ seedShrine

int Player.seedShrine

Definition at line 900 of file Player.cs.

Referenced by Zone.TryGenerateShrine().

◆ shippingResults

List<ShippingResult> Player.shippingResults = new List<ShippingResult>()

◆ showShippingResult

bool Player.showShippingResult

Definition at line 948 of file Player.cs.

Referenced by AM_Adv._OnUpdateInput().

◆ showWorkaround

bool Player.showWorkaround

Definition at line 957 of file Player.cs.

Referenced by LayerWorldSetting.OnInit(), and LayerWorldSetting.Refresh().

◆ simulatingZone

◆ sketches

◆ stats

◆ subWidgets

WidgetManager.SaveData Player.subWidgets

Definition at line 987 of file Player.cs.

Referenced by WidgetManager.OnGameInstantiated().

◆ target

Chara Player.target

◆ taxBills

◆ title

◆ totalFeat

int Player.totalFeat

Definition at line 864 of file Player.cs.

Referenced by Card.LevelUp(), and WindowChara.RefreshNote().

◆ trackedCards

HashSet<string> Player.trackedCards = new HashSet<string>()

◆ trackedCategories

HashSet<string> Player.trackedCategories = new HashSet<string>()

◆ trackedElements

HashSet<int> Player.trackedElements = new HashSet<int>()

◆ tutorialStep

int Player.tutorialStep

Definition at line 834 of file Player.cs.

Referenced by StickyTutorial.OnClick().

◆ uidChara

int Player.uidChara

Definition at line 828 of file Player.cs.

Referenced by OnCreateGame(), and Game.OnGameInstantiated().

◆ uidLastShippedZone

int Player.uidLastShippedZone

Definition at line 861 of file Player.cs.

Referenced by GameDate.ShipGoods().

◆ uidLastTown

int Player.uidLastTown

Definition at line 897 of file Player.cs.

Referenced by Scene.OnUpdate().

◆ uidLastTravelZone

int Player.uidLastTravelZone

Definition at line 855 of file Player.cs.

Referenced by MoveZone(), and OnStartNewGame().

◆ uidLastZone

int Player.uidLastZone

Definition at line 858 of file Player.cs.

◆ uidPickOnLoad

List<int> Player.uidPickOnLoad = new List<int>()

Definition at line 1077 of file Player.cs.

◆ uidSpawnZone

int Player.uidSpawnZone

Definition at line 831 of file Player.cs.

◆ unpaidBill

int Player.unpaidBill

Definition at line 870 of file Player.cs.

◆ useSubWidgetTheme

bool Player.useSubWidgetTheme

◆ waitingInput

bool Player.waitingInput

Definition at line 1115 of file Player.cs.

Referenced by LayerCraftFloat.RefreshCraft(), and LayerCraftFloat.RefreshDisassemble().

◆ wasDirtyWeight

bool Player.wasDirtyWeight

Definition at line 1119 of file Player.cs.

Referenced by Scene.OnUpdate().

◆ wellWished

bool Player.wellWished

Definition at line 939 of file Player.cs.

Referenced by TraitGodStatue._OnUse(), and TraitWell.TrySetAct().

◆ willAutoSave

bool Player.willAutoSave

Definition at line 1131 of file Player.cs.

Referenced by AM_Adv._OnUpdateInput().

◆ willEndTurn

bool Player.willEndTurn

Definition at line 1117 of file Player.cs.

Referenced by AM_Adv._OnUpdateInput().

◆ windowAllyInv

Window.SaveData Player.windowAllyInv

Definition at line 1086 of file Player.cs.

Referenced by LayerInventory.CreateContainerAlly().

◆ windowDataCopy

Window.SaveData Player.windowDataCopy

Definition at line 1095 of file Player.cs.

Referenced by UIInventory.RefreshMenu().

◆ windowDataName

string Player.windowDataName

Definition at line 1097 of file Player.cs.

Referenced by UIInventory.RefreshMenu().

◆ zone

Property Documentation

◆ Agent

Chara Player.Agent
get

◆ ContainerSearchDistance

int Player.ContainerSearchDistance
get

Definition at line 1232 of file Player.cs.

◆ EnableDreamStory

bool Player.EnableDreamStory
get

Definition at line 1224 of file Player.cs.

Referenced by Chara.ShowDialog().

◆ IsCriminal

bool Player.IsCriminal
get

Definition at line 1292 of file Player.cs.

1293 {
1294 get
1295 {
1296 if (karma < 0)
1297 {
1299 }
1300 return false;
1301 }
1302 }
bool HasCondition(string alias)
Definition: Chara.cs:9054

Referenced by Chara.IsHostile(), WindowChara.RefreshNote(), and GoalCombat.Run().

◆ IsFighterGuildMember

bool Player.IsFighterGuildMember
get

Definition at line 1253 of file Player.cs.

1254 {
1255 get
1256 {
1257 Quest quest = EClass.game.quests.Get("guild_fighter");
1258 if (quest == null)
1259 {
1260 return false;
1261 }
1262 return quest.phase >= 10;
1263 }
1264 }
Quest Get(string id)

◆ IsMageGuildMember

bool Player.IsMageGuildMember
get

Definition at line 1240 of file Player.cs.

1241 {
1242 get
1243 {
1244 Quest quest = EClass.game.quests.Get("guild_mage");
1245 if (quest == null)
1246 {
1247 return false;
1248 }
1249 return quest.phase >= 10;
1250 }
1251 }

◆ IsMerchantGuildMember

bool Player.IsMerchantGuildMember
get

Definition at line 1279 of file Player.cs.

1280 {
1281 get
1282 {
1283 Quest quest = EClass.game.quests.Get("guild_merchant");
1284 if (quest == null)
1285 {
1286 return false;
1287 }
1288 return quest.phase >= 10;
1289 }
1290 }

◆ IsThiefGuildMember

bool Player.IsThiefGuildMember
get

Definition at line 1266 of file Player.cs.

1267 {
1268 get
1269 {
1270 Quest quest = EClass.game.quests.Get("guild_thief");
1271 if (quest == null)
1272 {
1273 return false;
1274 }
1275 return quest.phase >= 10;
1276 }
1277 }

◆ LastTravelZone

Zone Player.LastTravelZone
get

Definition at line 1226 of file Player.cs.

Referenced by MoveZone().

◆ LastZone

Zone Player.LastZone
get

Definition at line 1228 of file Player.cs.

◆ MaxAlly

int Player.MaxAlly
get

Definition at line 1234 of file Player.cs.

Referenced by WidgetStatsBar.Build(), and RefreshEmptyAlly().

◆ MaxExpInfluence

int Player.MaxExpInfluence
get

Definition at line 1238 of file Player.cs.

Referenced by AddExpInfluence().

◆ MaxExpKnowledge

int Player.MaxExpKnowledge
get

Definition at line 1236 of file Player.cs.

Referenced by AddExpKnowledge().

◆ spawnZone

Zone Player.spawnZone
getset

Definition at line 1212 of file Player.cs.

1213 {
1214 get
1215 {
1216 return RefZone.Get(uidSpawnZone);
1217 }
1218 set
1219 {
1220 uidSpawnZone = RefZone.Set(value);
1221 }
1222 }
int uidSpawnZone
Definition: Player.cs:831
static int Set(Zone zone)
Definition: RefZone.cs:12
static Zone Get(int uid)
Definition: RefZone.cs:3

Referenced by TraitCoreZone.TrySetAct(), and TraitWaystone.TrySetAct().

◆ widgets

WidgetManager.SaveData Player.widgets
getset

Definition at line 1189 of file Player.cs.

1190 {
1191 get
1192 {
1193 if (!useSubWidgetTheme)
1194 {
1195 return mainWidgets;
1196 }
1197 return subWidgets;
1198 }
1199 set
1200 {
1202 {
1203 subWidgets = value;
1204 }
1205 else
1206 {
1207 mainWidgets = value;
1208 }
1209 }
1210 }
bool useSubWidgetTheme
Definition: Player.cs:936
WidgetManager.SaveData subWidgets
Definition: Player.cs:987
WidgetManager.SaveData mainWidgets
Definition: Player.cs:984

Referenced by HotItemWidgetSet.Register(), and WidgetManager.Save().


The documentation for this class was generated from the following file: