55 if (
item.trait.IsLighting && con ==
null &&
item.isOn)
72 p.
TrySetAct(
"ActExtinguishTorch", delegate
81 string text =
"ActTorch".lang() +
" ";
82 text +=
"consumeResource".lang(
EClass.
sources.
cards.
map[
"log"].GetName(), 1.ToString() ??
"", (log?.
Num ?? 0).ToString() ??
"");
bool TrySetAct(string lang, Func< bool > onPerform, Card tc, CursorInfo cursor=null, int dist=1, bool isHostileAct=false, bool localAct=true, bool canRepeat=false)
void RemoveExtra(string id)
SoundSource PlaySound(string id, float v=1f, bool spatial=true)
void ModNum(int a, bool notify=true)
void Say(string lang, string ref1=null, string ref2=null)
Condition AddCondition(string id, int p=100, bool force=false)
void Kill(bool silent=false)
static SourceManager sources
static string Say(string idLang, string ref1, string ref2=null, string ref3=null, string ref4=null)
List< Card > ListCards(bool includeMasked=false)
Dictionary< string, CardRow > map