|
override void | TrySetHeldAct (ActPlan p) |
|
override bool | CanStackTo (Thing to) |
|
string | GetParam (int i, string def=null) |
|
int | GetParamInt (int i, int def) |
|
virtual bool | Contains (RecipeSource r) |
|
virtual int | GetValue () |
|
virtual bool | CanStackTo (Thing to) |
|
virtual string | GetHoverText () |
|
virtual Action | GetHealAction (Chara c) |
|
virtual bool | CanBlend (Thing t) |
|
virtual void | OnBlend (Thing t, Chara c) |
|
virtual int | GetActDuration (Chara c) |
|
virtual SourceElement.Row | GetRefElement () |
|
virtual Sprite | GetRefSprite () |
|
virtual void | OnRenderExtra (RenderParam p) |
|
virtual Emo2 | GetHeldEmo (Chara c) |
|
virtual void | SetOwner (Card _owner) |
|
virtual bool | IdleUse (Chara c, int dist) |
|
virtual void | OnSetOwner () |
|
virtual void | OnImportMap () |
|
virtual void | SetParams (params string[] s) |
|
virtual void | OnCrafted (Recipe recipe) |
|
virtual void | OnCreate (int lv) |
|
virtual void | OnEquip (Chara c, bool onSetOwner) |
|
virtual void | OnUnequip (Chara c) |
|
virtual void | OnChangePlaceState (PlaceState state) |
|
virtual void | OnAddedToZone () |
|
virtual void | OnRemovedFromZone () |
|
virtual void | OnSimulateHour (VirtualDate date) |
|
virtual string | GetName () |
|
virtual void | SetName (ref string s) |
|
virtual void | OnRenderTile (Point point, HitResult result, int dir) |
|
virtual int | CompareTo (Card b) |
|
virtual bool | CanBuiltAt (Point p) |
|
virtual void | Update () |
|
Point | GetPoint () |
|
Point | GetRandomPoint (Func< Point, bool > func=null, Chara accessChara=null) |
|
virtual List< Point > | ListPoints (Point center=null, bool onlyPassable=true) |
|
virtual Recipe | GetRecipe () |
|
virtual Recipe | GetBuildModeRecipe () |
|
virtual bool | CanCook (Card c) |
|
void | CookProgress () |
|
virtual bool | CanOffer (Card tg) |
|
void | OfferProcess (Chara cc) |
|
void | Offer (Chara cc) |
|
virtual bool | TryProgress (AIProgress p) |
|
virtual LockOpenState | TryOpenLock (Chara cc, bool msgFail=true) |
|
virtual void | WriteNote (UINote n, bool identified) |
|
int | GetSortVal (UIList.SortMode m) |
|
virtual HotItem | GetHotItem () |
|
virtual bool | CanRead (Chara c) |
|
virtual void | OnRead (Chara c) |
|
virtual bool | CanEat (Chara c) |
|
virtual void | OnEat (Chara c) |
|
virtual bool | CanDrink (Chara c) |
|
virtual void | OnDrink (Chara c) |
|
virtual void | OnThrowGround (Chara c, Point p) |
|
virtual bool | CanUse (Chara c) |
|
virtual bool | CanUse (Chara c, Card tg) |
|
virtual bool | CanUse (Chara c, Point p) |
|
virtual bool | OnUse (Chara c) |
|
virtual bool | OnUse (Chara c, Card tg) |
|
virtual bool | OnUse (Chara c, Point p) |
|
virtual void | TrySetAct (ActPlan p) |
|
virtual void | TrySetHeldAct (ActPlan p) |
|
virtual void | OnHeld () |
|
virtual void | OnTickHeld () |
|
virtual void | OnSetCurrentItem () |
|
virtual void | OnUnsetCurrentItem () |
|
virtual bool | OnChildDecay (Card c, bool firstDecay) |
|
virtual bool | CanChildDecay (Card c) |
|
virtual void | OnSetCardGrid (ButtonGrid b) |
|
virtual void | OnStepped (Chara c) |
|
virtual void | OnSteppedOut (Chara c) |
|
virtual void | OnOpenDoor (Chara c) |
|
void | Install (bool byPlayer) |
|
void | Uninstall () |
|
virtual void | OnInstall (bool byPlayer) |
|
virtual void | OnUninstall () |
|
virtual void | TryToggle () |
|
virtual void | Toggle (bool on, bool silent=false) |
|
virtual void | PlayToggleEffect (bool silent) |
|
virtual void | OnToggle () |
|
virtual void | TrySetToggleAct (ActPlan p) |
|
bool | IsFuelEnough (int num=1, List< Thing > excludes=null, bool tryRefuel=true) |
|
bool | IsFuel (string s) |
|
bool | IsFuel (Thing t) |
|
int | GetFuelValue (Thing t) |
|
int | GetFuelValue (string id) |
|
void | Refuel (Thing t) |
|
void | TryRefuel (int dest, List< Thing > excludes) |
|
virtual void | OnEnterScreen () |
|
virtual void | RefreshRenderer () |
|
virtual void | SetMainText (UIText t, bool hotitem) |
|
virtual bool | CanCopy (Thing t) |
|
string | GetTextRestock (string lang, bool pet) |
|
Emo2 | GetRestockedIcon () |
|
void | OnBarter () |
|
Thing | CreateStock () |
|
Definition at line 1 of file TraitSalesTag.cs.
static bool TraitSalesTag.CanTagSale |
( |
Card |
t, |
|
|
bool |
insideContainer = false |
|
) |
| |
|
inlinestatic |
Definition at line 9 of file TraitSalesTag.cs.
10 {
12 {
13 return false;
14 }
16 {
19 {
20 return false;
21 }
23 {
24 return false;
25 }
26 }
27 else
28 {
30 {
31 return false;
32 }
34 {
35 return false;
36 }
37 }
39 {
40 return false;
41 }
42 return true;
43 }
virtual int GetPrice(CurrencyType currency=CurrencyType.Money, bool sell=false, PriceType priceType=PriceType.Default, Chara c=null)
override bool IsPCFaction
virtual bool CanBeDestroyed
virtual bool CanBeShipped
References Trait.CanBeDestroyed, Trait.CanBeHeld, Trait.CanBeShipped, Game.cards, Card.Chara, EClass.game, Card.GetPrice(), Card.isChara, Card.IsInstalled, Card.isMasked, Chara.IsPCFaction, Chara.IsPCParty, Card.isSale, Card.IsUnique, CardManager.listAdv, Card.trait, and Chara.trait.
Referenced by Thing.GetName(), Zone.TryGetRestock< T >(), TrySetHeldAct(), and AI_Shopping.TryShop().
override void TraitSalesTag.TrySetHeldAct |
( |
ActPlan |
p | ) |
|
|
inlinevirtual |
Reimplemented from Trait.
Definition at line 45 of file TraitSalesTag.cs.
46 {
48 {
49 return;
50 }
52 {
54 {
55 p.TrySetAct("actRemove", delegate
56 {
57 t.Destroy();
58 SE.Trash();
59 return false;
60 }, t);
61 }
63 {
65 {
66 SE.Play("paper");
67 t.SetSale(sale: false);
68 return false;
69 });
70 }
72 {
75 {
76 SE.Play("paper");
77 t.SetSale(sale: true);
78 return false;
79 });
80 }
81 });
82 }
bool TrySetAct(string lang, Func< bool > onPerform, Card tc, CursorInfo cursor=null, int dist=1, bool isHostileAct=false, bool localAct=true, bool canRepeat=false)
static string _currency(object a, string IDCurrency)
List< Card > ListCards(bool includeMasked=false)
static bool CanTagSale(Card t, bool insideContainer=false)
References Lang._currency(), EClass._zone, CanTagSale(), Card.GetPrice(), Card.isOn, Zone.IsPCFaction, Card.isSale, Point.ListCards(), Card.Name, Trait.owner, ActPlan.pos, Card.trait, and ActPlan.TrySetAct().