Elin Decompiled Documentation EA 23.283 Nightly
Loading...
Searching...
No Matches
DramaOutcome Class Reference
Inheritance diagram for DramaOutcome:
EMono

Public Member Functions

void StartNewGame ()
 
void StartNewGame2 ()
 
void PutOutFire ()
 
void OnClaimLand ()
 
void AddMaid ()
 
void convert_Jure ()
 
void QuestSharedContainer_Drop1 ()
 
void QuestShippingChest_Drop1 ()
 
void QuestExploration_Drop1 ()
 
void QuestExploration_MeetFarris ()
 
void QuestExploration_MeetFarris2 ()
 
void QuestExploration_AfterCrystal ()
 
void QuestExploration_AfterComplete ()
 
void QuestCraft_Drop1 ()
 
void QuestDefense_0 ()
 
void QuestVernis_DropRecipe ()
 
void QuestDefense_1 ()
 
void QuestDefense_2 ()
 
void QuestDebt_reward ()
 
void Tutorial1 ()
 
void WelcomeMsg ()
 
void chara_hired ()
 
void chara_hired_ticket ()
 
void nerun_gift ()
 
void nerun_gift2 ()
 
void nerun_gift3 ()
 
void fiama_gold ()
 
void fiama_pet1 ()
 
void fiama_pet2 ()
 
void fiama_pet3 ()
 
void fiama_pet4 ()
 
void fiama_starter_gift ()
 
void revive_pet ()
 
void nasu_join ()
 
void melilith_friend ()
 
void sister_friend ()
 
void sister_change ()
 
void get_scratch ()
 
void duponne_capture ()
 
void duponne_reward ()
 
void poppy_found ()
 
void marry ()
 
void wedding_setup ()
 
void wedding_fail ()
 
void wedding_kiss ()
 
void wedding_success ()
 
void give_catball_recipe ()
 
void event_swordkeeper ()
 
void event_az ()
 
void event_az2 ()
 
void event_az3 ()
 
void upgrade_miscreation ()
 
void guild_trial ()
 
void guild_join ()
 
void guild_mageTrial ()
 
void guild_promote ()
 
bool check_sketch ()
 
int GetFelmeraRewardIndex ()
 
bool check_sketch2 ()
 
List< ThingListFelmeraBarter ()
 
void give_sketch_reward ()
 
void give_sketch_special ()
 

Static Public Member Functions

static bool If (DramaChoice item, Chara c)
 
- Static Public Member Functions inherited from EMono
static int rnd (int a)
 

Public Attributes

DramaManager manager
 

Static Public Attributes

static string idJump
 
- Static Public Attributes inherited from EMono
static Core core
 

Properties

DramaSequence sequence [get]
 
Person tg [get]
 
Chara cc [get]
 
- Properties inherited from EMono
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 Scene scene [get]
 
static BaseGameScreen screen [get]
 
static GameSetting setting [get]
 
static GameData gamedata [get]
 
static ColorProfile Colors [get]
 
static World world [get]
 
static SoundManager Sound [get]
 
static SourceManager sources [get]
 
static SourceManager editorSources [get]
 
static CoreDebug debug [get]
 

Private Member Functions

void fiama_pet (Chara c)
 

Detailed Description

Definition at line 4 of file DramaOutcome.cs.

Member Function Documentation

◆ AddMaid()

void DramaOutcome.AddMaid ( )
inline

Definition at line 57 of file DramaOutcome.cs.

58 {
59 }

Referenced by OnClaimLand().

◆ chara_hired()

void DramaOutcome.chara_hired ( )
inline

Definition at line 201 of file DramaOutcome.cs.

202 {
204 {
205 EMono.pc.ModCurrency(-CalcGold.Hire(cc), "money2");
206 cc.SetBool(18, enable: true);
207 }
208 EMono.Sound.Play("good");
210 }
void SetBool(int id, bool enable)
Definition: BaseCard.cs:20
static int Hire(Chara c)
Definition: CalcGold.cs:8
void ModCurrency(int a, string id="money")
Definition: Card.cs:4031
Definition: EMono.cs:4
static Chara pc
Definition: EMono.cs:13
static SoundManager Sound
Definition: EMono.cs:39
static FactionBranch Branch
Definition: EMono.cs:21
bool IsRecruit(Chara c)
void Recruit(Chara c)

References EMono.Branch, cc, CalcGold.Hire(), FactionBranch.IsRecruit(), Card.ModCurrency(), EMono.pc, FactionBranch.Recruit(), BaseCard.SetBool(), and EMono.Sound.

◆ chara_hired_ticket()

void DramaOutcome.chara_hired_ticket ( )
inline

Definition at line 212 of file DramaOutcome.cs.

213 {
214 EMono.pc.things.Find("ticket_resident").ModNum(-1);
215 EMono.Sound.Play("good");
216 cc.SetBool(18, enable: true);
218 }
ThingContainer things
Definition: Card.cs:39
void ModNum(int a, bool notify=true)
Definition: Card.cs:3585
Thing Find(int uid)

References EMono.Branch, cc, ThingContainer.Find(), Card.ModNum(), EMono.pc, FactionBranch.Recruit(), BaseCard.SetBool(), EMono.Sound, and Card.things.

◆ check_sketch()

bool DramaOutcome.check_sketch ( )
inline

Definition at line 547 of file DramaOutcome.cs.

548 {
549 Thing thing = EMono.pc.things.Find("sketch_old");
550 if (thing == null)
551 {
552 return false;
553 }
554 int num = thing.Num;
555 thing.Destroy();
556 bool flag = false;
557 for (int i = 0; i < num; i++)
558 {
559 for (int j = 0; j < 5; j++)
560 {
561 int item = EMono.core.refs.dictSketches2.Keys.RandomItem();
562 if (!EMono.player.sketches.Contains(item))
563 {
565 Msg.Say("add_sketch", item.ToString() ?? "");
566 flag = true;
567 break;
568 }
569 }
570 }
571 if (flag)
572 {
573 SE.WriteJournal();
574 return true;
575 }
576 return false;
577 }
void Destroy()
Definition: Card.cs:5148
int Num
Definition: Card.cs:159
UD_Int_String dictSketches2
Definition: CoreRef.cs:415
CoreRef refs
Definition: Core.cs:51
static Core core
Definition: EMono.cs:5
static Player player
Definition: EMono.cs:11
Definition: Msg.cs:5
static string Say(string idLang, string ref1, string ref2=null, string ref3=null, string ref4=null)
Definition: Msg.cs:58
HashSet< int > sketches
Definition: Player.cs:1093
Definition: Thing.cs:8
ICollection< TKey > Keys
Definition: UDictionary.cs:25

References EMono.core, Card.Destroy(), CoreRef.dictSketches2, ThingContainer.Find(), item, UDictionary< TKey, TValue >.Keys, Card.Num, EMono.pc, EMono.player, Core.refs, Msg.Say(), Player.sketches, and Card.things.

◆ check_sketch2()

bool DramaOutcome.check_sketch2 ( )
inline

Definition at line 591 of file DramaOutcome.cs.

592 {
594 }
int GetFelmeraRewardIndex()
int lastFelmeraReward
Definition: Player.cs:958

References GetFelmeraRewardIndex(), Player.lastFelmeraReward, and EMono.player.

◆ convert_Jure()

void DramaOutcome.convert_Jure ( )
inline

Definition at line 61 of file DramaOutcome.cs.

62 {
65 {
66 EMono.player.flags.gotJurePillow = true;
67 EMono.player.DropReward(ThingGen.Create("pillow_jure"));
68 }
69 }
static Game game
Definition: EMono.cs:7
ReligionManager religions
Definition: Game.cs:159
bool gotJurePillow
Definition: Player.cs:550
Flags flags
Definition: Player.cs:1117
Thing DropReward(Thing t, bool silent=false)
Definition: Player.cs:2595
ReligionHealing Healing
ConvertType
Definition: Religion.cs:8
void JoinFaith(Chara c, ConvertType type=ConvertType.Default)
Definition: Religion.cs:407
static Thing Create(string id, int idMat=-1, int lv=-1)
Definition: ThingGen.cs:53

References ThingGen.Create(), Player.DropReward(), Player.flags, EMono.game, Player.Flags.gotJurePillow, ReligionManager.Healing, Religion.JoinFaith(), EMono.pc, EMono.player, and Game.religions.

◆ duponne_capture()

void DramaOutcome.duponne_capture ( )
inline

Definition at line 369 of file DramaOutcome.cs.

370 {
371 EMono.pc.things.Find("minohorn")?.ModNum(-1);
372 EMono.player.DropReward(ThingGen.Create("duponneball"));
373 }

References ThingGen.Create(), Player.DropReward(), ThingContainer.Find(), Card.ModNum(), EMono.pc, EMono.player, and Card.things.

◆ duponne_reward()

void DramaOutcome.duponne_reward ( )
inline

Definition at line 375 of file DramaOutcome.cs.

376 {
377 EMono.player.DropReward(ThingGen.CreateRedBook("advweek_12"), silent: true);
378 EMono.player.DropReward(ThingGen.Create("crystal_earth"), silent: true);
379 EMono.player.DropReward(ThingGen.Create("crystal_sun"), silent: true);
380 EMono.player.DropReward(ThingGen.Create("crystal_mana"), silent: true);
381 EMono.player.DropReward(ThingGen.CreateRecipe("rune_mold_earth"), silent: true);
382 EMono.player.DropReward(ThingGen.CreateRecipe("rune_mold_sun"), silent: true);
383 EMono.player.DropReward(ThingGen.CreateRecipe("rune_mold_mana"));
384 }
static Thing CreateRedBook(string id, int num=1)
Definition: ThingGen.cs:167
static Thing CreateRecipe(string id)
Definition: ThingGen.cs:144

References ThingGen.Create(), ThingGen.CreateRecipe(), ThingGen.CreateRedBook(), Player.DropReward(), and EMono.player.

◆ event_az()

void DramaOutcome.event_az ( )
inline

Definition at line 462 of file DramaOutcome.cs.

463 {
464 Chara chara = EMono._zone.AddChara("azzrasizzle", new Point(11, 15).GetNearestPoint(allowBlock: false, allowChara: false));
465 chara.ScaleByPrincipal();
466 chara.LookAt(EMono.pc);
467 for (int i = 0; i < 6; i++)
468 {
469 EMono._zone.AddChara("cocoon", chara.pos.GetRandomPointInRadius(3, 5, requireLos: false, allowChara: false)?.GetNearestPoint(allowBlock: false, allowChara: false) ?? chara.pos);
470 }
471 }
Point pos
Definition: Card.cs:60
Definition: Chara.cs:10
Chara ScaleByPrincipal()
Definition: Chara.cs:1728
override void LookAt(Card c)
Definition: Chara.cs:3585
static Zone _zone
Definition: EMono.cs:19
Definition: Point.cs:9
Point GetNearestPoint(bool allowBlock=false, bool allowChara=true, bool allowInstalled=true, bool ignoreCenter=false, int minRadius=0)
Definition: Point.cs:619
Point GetRandomPointInRadius(int minRadius, int maxRadius, bool requireLos=true, bool allowChara=true, bool allowBlocked=false, int tries=2000)
Definition: Point.cs:783
Chara AddChara(string id, int x, int z)
Definition: Zone.cs:1974

References EMono._zone, Zone.AddChara(), Point.GetNearestPoint(), Point.GetRandomPointInRadius(), Chara.LookAt(), EMono.pc, Card.pos, and Chara.ScaleByPrincipal().

◆ event_az2()

void DramaOutcome.event_az2 ( )
inline

Definition at line 473 of file DramaOutcome.cs.

474 {
475 EMono._map.FindChara("azzrasizzle")?.TalkRaw("azaz".lang());
476 }
void TalkRaw(string text, string ref1=null, string ref2=null, bool forceSync=false)
Definition: Card.cs:6958
static Map _map
Definition: EMono.cs:17
Chara FindChara(string id)
Definition: Map.cs:2568

References EMono._map, Map.FindChara(), and Card.TalkRaw().

◆ event_az3()

void DramaOutcome.event_az3 ( )
inline

Definition at line 478 of file DramaOutcome.cs.

479 {
480 Chara chara = EMono._map.FindChara("azzrasizzle");
481 if (chara != null)
482 {
483 chara.DoHostileAction(EMono.pc);
484 chara.UseAbility(6801);
485 }
486 }
bool UseAbility(int idAct, Card tc=null, Point pos=null, bool pt=false)
Definition: Chara.cs:5880
void DoHostileAction(Card _tg, bool immediate=false)
Definition: Chara.cs:6465

References EMono._map, Chara.DoHostileAction(), Map.FindChara(), EMono.pc, and Chara.UseAbility().

◆ event_swordkeeper()

void DramaOutcome.event_swordkeeper ( )
inline

Definition at line 457 of file DramaOutcome.cs.

458 {
459 EMono._zone.AddChara("swordkeeper", 45, 52);
460 }

References EMono._zone, and Zone.AddChara().

◆ fiama_gold()

void DramaOutcome.fiama_gold ( )
inline

Definition at line 241 of file DramaOutcome.cs.

242 {
244 if (EMono.game.idPrologue == 2)
245 {
247 }
248 }
Thing SetNum(int a)
Definition: Card.cs:3565
int idPrologue
Definition: Game.cs:204

References ThingGen.Create(), Player.DropReward(), EMono.game, Game.idPrologue, EMono.player, and Card.SetNum().

◆ fiama_pet()

void DramaOutcome.fiama_pet ( Chara  c)
inlineprivate

Definition at line 274 of file DramaOutcome.cs.

275 {
277 c.MakeAlly();
278 c.SetInt(100, 1);
279 }
void SetInt(int id, int value=0)
Definition: BaseCard.cs:39
void MakeAlly(bool msg=true)
Definition: Chara.cs:2325
Card AddCard(Card t, Point point)
Definition: Zone.cs:1994

References EMono._zone, Zone.AddCard(), Chara.MakeAlly(), EMono.pc, Card.pos, and BaseCard.SetInt().

Referenced by fiama_pet1(), fiama_pet2(), fiama_pet3(), and fiama_pet4().

◆ fiama_pet1()

void DramaOutcome.fiama_pet1 ( )
inline

Definition at line 250 of file DramaOutcome.cs.

251 {
252 Chara c = CharaGen.Create("dog");
253 fiama_pet(c);
254 }
static Chara Create(string id, int lv=-1)
Definition: CharaGen.cs:17
void fiama_pet(Chara c)

References CharaGen.Create(), and fiama_pet().

◆ fiama_pet2()

void DramaOutcome.fiama_pet2 ( )
inline

Definition at line 256 of file DramaOutcome.cs.

257 {
258 Chara c = CharaGen.Create("cat");
259 fiama_pet(c);
260 }

References CharaGen.Create(), and fiama_pet().

◆ fiama_pet3()

void DramaOutcome.fiama_pet3 ( )
inline

Definition at line 262 of file DramaOutcome.cs.

263 {
264 Chara c = CharaGen.Create("bearCub");
265 fiama_pet(c);
266 }

References CharaGen.Create(), and fiama_pet().

◆ fiama_pet4()

void DramaOutcome.fiama_pet4 ( )
inline

Definition at line 268 of file DramaOutcome.cs.

269 {
270 Chara c = CharaGen.Create("shojo");
271 fiama_pet(c);
272 }

References CharaGen.Create(), and fiama_pet().

◆ fiama_starter_gift()

void DramaOutcome.fiama_starter_gift ( )
inline

Definition at line 281 of file DramaOutcome.cs.

282 {
284 Thing thing = null;
285 switch (lastChoice.index)
286 {
287 case 0:
288 thing = ThingGen.Create("ring_decorative").SetNoSell();
289 thing.elements.SetBase(65, 10);
290 EMono.player.DropReward(thing);
291 break;
292 case 1:
293 EMono.player.DropReward(ThingGen.Create("ticket_resident").SetNoSell());
295 break;
296 case 2:
297 thing = ThingGen.Create("boots_").SetNoSell();
298 thing.elements.SetBase(65, 5);
299 thing.elements.SetBase(407, 5);
300 EMono.player.DropReward(thing);
301 break;
302 case 3:
304 break;
305 case 4:
306 {
307 for (int i = 0; i < 10; i++)
308 {
310 }
311 break;
312 }
313 default:
314 cc.DoHostileAction(EMono.pc, immediate: true);
315 cc.calmCheckTurn = 100;
316 break;
317 }
318 }
ElementContainerCard elements
Definition: Card.cs:42
Thing SetNoSell()
Definition: Card.cs:3579
static DramaChoice lastChoice
Definition: DramaChoice.cs:5
Element SetBase(string alias, int v, int potential=0)

References cc, ThingGen.Create(), Chara.DoHostileAction(), Player.DropReward(), Card.elements, DramaChoice.index, DramaChoice.lastChoice, EMono.pc, EMono.player, ElementContainer.SetBase(), Card.SetNoSell(), and Card.SetNum().

◆ get_scratch()

void DramaOutcome.get_scratch ( )
inline

Definition at line 363 of file DramaOutcome.cs.

364 {
366 EMono.game.dateScratch = EMono.world.date.GetRaw(24);
367 }
int GetRaw(int offsetHours=0)
Definition: Date.cs:328
static World world
Definition: EMono.cs:37
void TrySmoothPick(Cell cell, Thing t, Chara c)
Definition: Map.cs:1804
GameDate date
Definition: World.cs:6

References EMono._map, ThingGen.Create(), World.date, Date.GetRaw(), EMono.pc, Card.pos, Map.TrySmoothPick(), and EMono.world.

◆ GetFelmeraRewardIndex()

int DramaOutcome.GetFelmeraRewardIndex ( )
inline

Definition at line 579 of file DramaOutcome.cs.

580 {
581 int count = EMono.player.sketches.Count;
582 int num = count / 10;
583 if (num >= 31)
584 {
585 num = 31;
586 }
587 Debug.Log(count + "/" + num + "/" + EMono.player.lastFelmeraReward);
588 return num;
589 }

References Debug, Player.lastFelmeraReward, EMono.player, and Player.sketches.

Referenced by check_sketch2(), give_sketch_reward(), and ListFelmeraBarter().

◆ give_catball_recipe()

void DramaOutcome.give_catball_recipe ( )
inline

Definition at line 452 of file DramaOutcome.cs.

453 {
454 EMono.player.DropReward(ThingGen.CreateRecipe("silvercatball"));
455 }

References ThingGen.CreateRecipe(), Player.DropReward(), and EMono.player.

◆ give_sketch_reward()

void DramaOutcome.give_sketch_reward ( )
inline

Definition at line 609 of file DramaOutcome.cs.

610 {
611 int felmeraRewardIndex = GetFelmeraRewardIndex();
612 for (int i = EMono.player.lastFelmeraReward; i < felmeraRewardIndex; i++)
613 {
614 Thing thing = ThingGen.Create("painting_reward");
615 thing.idSkin = i;
616 EMono.player.DropReward(thing);
617 }
618 EMono.player.lastFelmeraReward = felmeraRewardIndex;
619 }

References ThingGen.Create(), Player.DropReward(), GetFelmeraRewardIndex(), Player.lastFelmeraReward, and EMono.player.

◆ give_sketch_special()

void DramaOutcome.give_sketch_special ( )
inline

Definition at line 621 of file DramaOutcome.cs.

622 {
623 foreach (int key in EMono.core.refs.dictSketches2.Keys)
624 {
625 if (key >= 500 && key < 700)
626 {
627 EMono.player.sketches.Add(key);
628 }
629 }
630 Msg.Say("add_sketch_special");
631 SE.WriteJournal();
632 EMono.pc.things.Find("sketch_special").Destroy();
633 }

References EMono.core, Card.Destroy(), CoreRef.dictSketches2, ThingContainer.Find(), UDictionary< TKey, TValue >.Keys, EMono.pc, EMono.player, Core.refs, Msg.Say(), Player.sketches, and Card.things.

◆ guild_join()

void DramaOutcome.guild_join ( )
inline

Definition at line 523 of file DramaOutcome.cs.

524 {
526 {
527 (cc.trait as TraitGuildDoorman).OnJoinGuild();
528 }
529 Msg.Say("guild_join", Guild.CurrentDrama.Name);
530 SE.Play("questComplete");
531 Guild.CurrentDrama.relation.type = FactionRelation.RelationType.Member;
533 }
GuildMerchant Merchant
string Name
Definition: FACTION.cs:150
FactionManager factions
Definition: Game.cs:162
Definition: Guild.cs:2
static Guild CurrentDrama
Definition: Guild.cs:24
virtual QuestGuild Quest
Definition: Guild.cs:68
void ChangePhase(int a)
Definition: Quest.cs:577

References Quest.ChangePhase(), Guild.CurrentDrama, Game.factions, EMono.game, FactionManager.Merchant, Faction.Name, Guild.Quest, and Msg.Say().

◆ guild_mageTrial()

void DramaOutcome.guild_mageTrial ( )
inline

Definition at line 535 of file DramaOutcome.cs.

536 {
538 EMono.pc.things.Find("letter_trial")?.ModNum(-1);
539 }
static QuestGuild CurrentQuest
Definition: Guild.cs:64
void NextPhase()
Definition: Quest.cs:572

References Guild.CurrentQuest, ThingContainer.Find(), Card.ModNum(), Quest.NextPhase(), EMono.pc, and Card.things.

◆ guild_promote()

void DramaOutcome.guild_promote ( )
inline

Definition at line 541 of file DramaOutcome.cs.

542 {
545 }
FactionRelation relation
Definition: FACTION.cs:126
void RefreshDevelopment()
Definition: Guild.cs:95
static Guild GetCurrentGuild()
Definition: Guild.cs:74

References Guild.CurrentDrama, Guild.GetCurrentGuild(), FactionRelation.Promote(), Guild.RefreshDevelopment(), and Faction.relation.

◆ guild_trial()

void DramaOutcome.guild_trial ( )
inline

Definition at line 511 of file DramaOutcome.cs.

512 {
514 {
515 EMono.game.quests.Start("guild_merchant", cc, assignQuest: false);
516 }
517 else
518 {
519 (cc.trait as TraitGuildDoorman).GiveTrial();
520 }
521 }
QuestManager quests
Definition: Game.cs:183
Quest Start(string id, string idGlobalChara)
Definition: QuestManager.cs:41

References cc, Guild.CurrentDrama, Game.factions, EMono.game, FactionManager.Merchant, Game.quests, and QuestManager.Start().

◆ If()

static bool DramaOutcome.If ( DramaChoice  item,
Chara  c 
)
inlinestatic

Definition at line 505 of file DramaOutcome.cs.

506 {
507 _ = item.IF.Split('/')[0] == "costHire";
508 return true;
509 }

References item.

Referenced by DramaActor.SetChoice().

◆ ListFelmeraBarter()

List< Thing > DramaOutcome.ListFelmeraBarter ( )
inline

Definition at line 596 of file DramaOutcome.cs.

597 {
598 List<Thing> list = new List<Thing>();
599 int felmeraRewardIndex = GetFelmeraRewardIndex();
600 for (int i = 0; i < felmeraRewardIndex; i++)
601 {
602 Thing thing = ThingGen.Create("painting_reward");
603 thing.idSkin = i;
604 list.Add(thing);
605 }
606 return list;
607 }
Thing Add(string id, int num=1, int lv=1)
Definition: Card.cs:3145

References Card.Add(), ThingGen.Create(), and GetFelmeraRewardIndex().

◆ marry()

void DramaOutcome.marry ( )
inline

Definition at line 398 of file DramaOutcome.cs.

399 {
400 Chara tc = manager.tg.chara;
401 SE.Play("dropRewardXmas");
402 tc.Marry(EMono.pc);
403 EMono.pc.ShowEmo(Emo.love);
404 EMono.pc.PlayEffect("revive");
405 tc.ShowEmo(Emo.love);
406 tc.PlayEffect("revive");
407 EMono.pc.pos.TalkWitnesses(EMono.pc, (EMono.rnd(2) == 0) ? "musicGood" : "ding_other", 8, WitnessType.everyone, (Chara c) => c != tc);
408 foreach (Chara chara in EMono._map.charas)
409 {
410 if (chara != EMono.pc && chara != tc && chara.IsMarried)
411 {
412 Chara enemy = ((EMono.rnd(2) == 0) ? tc : EMono.pc);
413 chara.Say("angry", chara);
414 chara.SetEnemy(enemy);
415 chara.calmCheckTurn = 10000;
416 }
417 }
418 }
Emo
Definition: Emo.cs:2
WitnessType
Definition: WitnessType.cs:2
Effect PlayEffect(string id, bool useRenderPos=true, float range=0f, Vector3 fix=default(Vector3))
Definition: Card.cs:6393
void ShowEmo(Emo _emo=Emo.none, float duration=0f, bool skipSame=true)
Definition: Card.cs:6327
void Say(string lang, string ref1=null, string ref2=null)
Definition: Card.cs:7036
void Marry(Chara c)
Definition: Chara.cs:8223
bool IsMarried
Definition: Chara.cs:611
Chara SetEnemy(Chara c=null)
Definition: Chara.cs:6416
DramaManager manager
Definition: DramaOutcome.cs:8
static int rnd(int a)
Definition: EMono.cs:47
List< Chara > charas
Definition: Map.cs:81
Chara chara
Definition: Person.cs:36
void TalkWitnesses(Chara criminal, string idTalk, int radius=4, WitnessType type=WitnessType.everyone, Func< Chara, bool > talkIf=null, int chance=3)
Definition: Point.cs:815

References EMono._map, Person.chara, Map.charas, Chara.IsMarried, manager, Chara.Marry(), EMono.pc, Card.PlayEffect(), Card.pos, EMono.rnd(), Card.Say(), Chara.SetEnemy(), Card.ShowEmo(), Point.TalkWitnesses(), and DramaManager.tg.

◆ melilith_friend()

void DramaOutcome.melilith_friend ( )
inline

Definition at line 340 of file DramaOutcome.cs.

341 {
342 if (cc.id == "melilith" && EMono.game.quests.completedIDs.Contains("melilith"))
343 {
344 cc.MakeAlly();
345 }
346 }
string id
Definition: Card.cs:36
HashSet< string > completedIDs
Definition: QuestManager.cs:17

References cc, QuestManager.completedIDs, EMono.game, Card.id, Chara.MakeAlly(), and Game.quests.

◆ nasu_join()

void DramaOutcome.nasu_join ( )
inline

Definition at line 332 of file DramaOutcome.cs.

333 {
334 if (cc.id == "fairy_nanasu")
335 {
336 cc.MakeAlly();
337 }
338 }

References cc, Card.id, and Chara.MakeAlly().

◆ nerun_gift()

void DramaOutcome.nerun_gift ( )
inline

Definition at line 220 of file DramaOutcome.cs.

221 {
222 Dialog.Gift("", true, ThingGen.Create("rp1"));
223 }
Definition: Dialog.cs:7
static Dialog Gift(string langHeader, bool autoAdd, params Card[] cards)
Definition: Dialog.cs:428

References ThingGen.Create(), and Dialog.Gift().

◆ nerun_gift2()

void DramaOutcome.nerun_gift2 ( )
inline

Definition at line 225 of file DramaOutcome.cs.

226 {
227 Dialog.Gift("", true, ThingGen.Create("rp1"));
228 }

References ThingGen.Create(), and Dialog.Gift().

◆ nerun_gift3()

void DramaOutcome.nerun_gift3 ( )
inline

Definition at line 230 of file DramaOutcome.cs.

231 {
232 List<Card> list = new List<Card>();
233 list.Add(ThingGen.Create("rp1"));
234 list.Add(ThingGen.Create("rp2"));
235 list.Add(ThingGen.Create("rp3"));
236 list.Add(ThingGen.Create("rp4"));
237 list.Add(ThingGen.Create("rp5"));
238 Dialog.Gift("", autoAdd: true, list);
239 }

References ThingGen.Create(), and Dialog.Gift().

◆ OnClaimLand()

void DramaOutcome.OnClaimLand ( )
inline

Definition at line 47 of file DramaOutcome.cs.

48 {
49 Chara c = EMono.game.cards.globalCharas.Find("ashland");
50 EMono.game.quests.globalList.Add(Quest.Create("sharedContainer").SetClient(c, assignQuest: false));
51 EMono.game.quests.globalList.Add(Quest.Create("crafter").SetClient(c, assignQuest: false));
52 EMono.game.quests.globalList.Add(Quest.Create("defense").SetClient(c, assignQuest: false));
53 EMono.game.quests.Get<QuestHome>().ChangePhase(2);
54 AddMaid();
55 }
Chara Find(string id)
Definition: CardManager.cs:20
GlobalCharaList globalCharas
Definition: CardManager.cs:46
void AddMaid()
Definition: DramaOutcome.cs:57
CardManager cards
Definition: Game.cs:156
List< Quest > globalList
Definition: QuestManager.cs:14
Quest Get(string id)
Definition: Quest.cs:7
static Quest Create(string _id, string _idPerson=null, Chara c=null, bool assignQuest=true)
Definition: Quest.cs:241
Quest SetClient(Chara c, bool assignQuest=true)
Definition: Quest.cs:380

References AddMaid(), Game.cards, Quest.Create(), CardManager.GlobalCharaList.Find(), EMono.game, QuestManager.Get(), CardManager.globalCharas, QuestManager.globalList, Game.quests, and Quest.SetClient().

◆ poppy_found()

void DramaOutcome.poppy_found ( )
inline

Definition at line 386 of file DramaOutcome.cs.

387 {
388 if (cc.id == "poppy")
389 {
390 cc.MakeAlly();
391 }
392 EMono.game.quests.Get("puppy").NextPhase();
393 Msg.Say("npc_rescue", cc);
394 cc.RemoveEditorTag(EditorTag.InvulnerableToMobs);
395 cc.RemoveEditorTag(EditorTag.Invulnerable);
396 }
EditorTag
Definition: EditorTag.cs:2
void RemoveEditorTag(EditorTag tag)
Definition: Card.cs:2638

References cc, EMono.game, QuestManager.Get(), Card.id, Chara.MakeAlly(), Quest.NextPhase(), Game.quests, Card.RemoveEditorTag(), and Msg.Say().

◆ PutOutFire()

void DramaOutcome.PutOutFire ( )
inline

Definition at line 39 of file DramaOutcome.cs.

40 {
42 {
43 EMono._zone.AddCard(ThingGen.Create("dish_soup"), item.pos.GetRandomNeighbor());
44 }
45 }
Definition: Card.cs:11
PropsManager props
Definition: Map.cs:91
PropsInstalled installed
Definition: PropsManager.cs:8
TraitManager traits
Definition: Props.cs:18
TraitSet GetTraitSet(Type t)
Definition: TraitManager.cs:94

References EMono._map, EMono._zone, Zone.AddCard(), ThingGen.Create(), TraitManager.GetTraitSet(), PropsManager.installed, item, Map.props, and Props.traits.

◆ QuestCraft_Drop1()

void DramaOutcome.QuestCraft_Drop1 ( )
inline

Definition at line 149 of file DramaOutcome.cs.

150 {
152 }
static SourceManager sources
Definition: EMono.cs:41
SourceMaterial materials
static Thing CreateRawMaterial(SourceMaterial.Row m)
Definition: ThingGen.cs:68

References ThingGen.CreateRawMaterial(), Player.DropReward(), SourceManager.materials, EMono.player, and EMono.sources.

◆ QuestDebt_reward()

void DramaOutcome.QuestDebt_reward ( )
inline

Definition at line 183 of file DramaOutcome.cs.

184 {
185 EMono.game.quests.Get<QuestDebt>().GiveReward();
186 }

References EMono.game, QuestManager.Get(), and Game.quests.

◆ QuestDefense_0()

void DramaOutcome.QuestDefense_0 ( )
inline

Definition at line 154 of file DramaOutcome.cs.

155 {
156 Prologue prologue = EMono.game.Prologue;
157 Chara chara = EMono._zone.AddChara("punk", prologue.posPunk.x, prologue.posPunk.y);
158 chara.things.DestroyAll();
159 (EMono._zone.AddThing("gallows", prologue.posPunk.x, prologue.posPunk.y).Install().trait as TraitShackle).Restrain(chara);
161 }
static void SetNormalRarity(bool fixedMat=false)
Trait trait
Definition: Card.cs:54
Card Install()
Definition: Card.cs:3811
Prologue Prologue
Definition: Game.cs:264
Vector2Int posPunk
Definition: Prologue.cs:27
void DestroyAll(Func< Thing, bool > funcExclude=null)
Card AddThing(string id, int x, int z)
Definition: Zone.cs:1984

References EMono._zone, Zone.AddChara(), Zone.AddThing(), ThingContainer.DestroyAll(), EMono.game, Card.Install(), Prologue.posPunk, Game.Prologue, CardBlueprint.SetNormalRarity(), Card.things, and Card.trait.

◆ QuestDefense_1()

void DramaOutcome.QuestDefense_1 ( )
inline

Definition at line 168 of file DramaOutcome.cs.

169 {
170 Prologue prologue = EMono.game.Prologue;
171 Chara tc = EMono._zone.AddChara("boar", prologue.posPunk.x + 1, prologue.posPunk.y);
172 (EMono._zone.AddThing("gallows", prologue.posPunk.x + 1, prologue.posPunk.y).Install().trait as TraitShackle).Restrain(tc);
174 EMono.player.DropReward(ThingGen.Create("330").SetNum(3), silent: true).Identify(show: false);
175 EMono.player.DropReward(ThingGen.Create("331").SetNum(3), silent: true).Identify(show: false);
177 }

References EMono._zone, Zone.AddChara(), Zone.AddThing(), ThingGen.Create(), Player.DropReward(), EMono.game, Identify, Card.Install(), EMono.player, Prologue.posPunk, Game.Prologue, Card.SetNum(), and Card.trait.

◆ QuestDefense_2()

void DramaOutcome.QuestDefense_2 ( )
inline

Definition at line 179 of file DramaOutcome.cs.

180 {
181 }

◆ QuestExploration_AfterComplete()

void DramaOutcome.QuestExploration_AfterComplete ( )
inline

Definition at line 134 of file DramaOutcome.cs.

135 {
136 Chara chara = EMono.game.cards.globalCharas.Find("ashland");
137 chara.MoveHome("lothria", 40, 49);
138 EMono.game.quests.RemoveAll(chara);
139 chara = EMono.game.cards.globalCharas.Find("fiama");
140 chara.MoveHome("lothria", 46, 56);
141 EMono.game.quests.RemoveAll(chara);
142 if (EMono.game.quests.Main == null)
143 {
144 EMono.game.quests.Start("main");
145 }
147 }
void MoveHome(string id, int x=-1, int z=-1)
Definition: Chara.cs:3501
QuestMain Main
Definition: QuestManager.cs:25
void RemoveAll(Chara c)
Definition: QuestManager.cs:86

References Game.cards, Quest.ChangePhase(), CardManager.GlobalCharaList.Find(), EMono.game, CardManager.globalCharas, QuestManager.Main, Chara.MoveHome(), Game.quests, QuestManager.RemoveAll(), and QuestManager.Start().

◆ QuestExploration_AfterCrystal()

void DramaOutcome.QuestExploration_AfterCrystal ( )
inline

Definition at line 112 of file DramaOutcome.cs.

113 {
115 if (quest == null)
116 {
117 quest = EMono.game.quests.Start("exploration", EMono.game.cards.globalCharas.Find("ashland"), assignQuest: false);
118 }
119 quest.ChangePhase(5);
120 Chara chara = EMono.game.cards.globalCharas.Find("fiama");
121 EMono._zone.AddCard(ThingGen.CreateScroll(8220).Identify(show: false), chara.pos);
123 chara.RemoveEditorTag(EditorTag.AINoMove);
124 chara = EMono.game.cards.globalCharas.Find("ashland");
125 if (chara == null)
126 {
127 EMono.ui.Say("Possible mod bug: 404 Ashland Not Found");
128 chara = CharaGen.Create("ashland");
129 chara.SetGlobal();
131 }
132 }
Chara SetGlobal(Zone _home, int x, int z)
Definition: Chara.cs:1505
static UI ui
Definition: EMono.cs:15
Zone StartZone
Definition: Game.cs:278
static Thing CreateScroll(int ele, int num=1)
Definition: ThingGen.cs:182
Thing Identify(bool show=true, IDTSource idtSource=IDTSource.Identify)
Definition: Thing.cs:2102

References EMono._zone, Zone.AddCard(), Game.cards, Quest.ChangePhase(), CharaGen.Create(), ThingGen.CreateScroll(), CardManager.GlobalCharaList.Find(), EMono.game, QuestManager.Get(), CardManager.globalCharas, Thing.Identify(), Chara.MoveHome(), Card.pos, Game.quests, Card.RemoveEditorTag(), Chara.SetGlobal(), QuestManager.Start(), Game.StartZone, and EMono.ui.

◆ QuestExploration_Drop1()

void DramaOutcome.QuestExploration_Drop1 ( )
inline

Definition at line 81 of file DramaOutcome.cs.

82 {
83 EMono.player.DropReward(ThingGen.CreateScroll(8220), silent: true).c_IDTState = 0;
85 }
int c_IDTState
Definition: Card.cs:1271

References Card.c_IDTState, ThingGen.CreateScroll(), Player.DropReward(), and EMono.player.

◆ QuestExploration_MeetFarris()

void DramaOutcome.QuestExploration_MeetFarris ( )
inline

Definition at line 87 of file DramaOutcome.cs.

88 {
89 EMono.game.quests.Get<QuestExploration>().ChangePhase(1);
91 cc.RemoveEditorTag(EditorTag.InvulnerableToMobs);
92 cc.RemoveEditorTag(EditorTag.Invulnerable);
93 cc.homeZone = EMono.game.StartZone;
95 }
void MoveZone(string alias)
Definition: Chara.cs:3366

References cc, EMono.game, QuestManager.Get(), Chara.MoveZone(), Game.quests, Card.RemoveEditorTag(), and Game.StartZone.

◆ QuestExploration_MeetFarris2()

void DramaOutcome.QuestExploration_MeetFarris2 ( )
inline

Definition at line 97 of file DramaOutcome.cs.

98 {
99 EMono.game.quests.Get<QuestExploration>().ChangePhase(2);
100 if (EMono.Branch == null)
101 {
103 }
105 if (EMono.game.quests.Main == null)
106 {
107 EMono.game.quests.Start("main");
108 }
110 }
void ClaimZone(bool debug=false, Point pos=null)
Definition: Zone.cs:1729

References EMono._zone, EMono.Branch, cc, Quest.ChangePhase(), Zone.ClaimZone(), EMono.game, QuestManager.Get(), QuestManager.Main, Game.quests, FactionBranch.Recruit(), and QuestManager.Start().

◆ QuestSharedContainer_Drop1()

void DramaOutcome.QuestSharedContainer_Drop1 ( )
inline

Definition at line 71 of file DramaOutcome.cs.

72 {
74 }

References ThingGen.Create(), Player.DropReward(), and EMono.player.

◆ QuestShippingChest_Drop1()

void DramaOutcome.QuestShippingChest_Drop1 ( )
inline

Definition at line 76 of file DramaOutcome.cs.

77 {
78 Recipe.DropIngredients("container_shipping", "palm", 6);
79 }
Definition: Recipe.cs:7
static void DropIngredients(string id, string idMatMain, int num=1)
Definition: Recipe.cs:365

References Recipe.DropIngredients().

◆ QuestVernis_DropRecipe()

void DramaOutcome.QuestVernis_DropRecipe ( )
inline

Definition at line 163 of file DramaOutcome.cs.

164 {
166 }

References ThingGen.CreateRecipe(), Player.DropReward(), and EMono.player.

◆ revive_pet()

void DramaOutcome.revive_pet ( )
inline

Definition at line 320 of file DramaOutcome.cs.

321 {
322 foreach (Chara member in EMono.pc.homeBranch.members)
323 {
324 if (member.isDead && member.GetInt(100) != 0)
325 {
326 member.GetRevived();
327 }
328 }
329 cc.ModAffinity(EMono.pc, -2);
330 }
int GetInt(int id, int? defaultInt=null)
Definition: BaseCard.cs:25
void GetRevived()
Definition: Chara.cs:5202
void ModAffinity(Chara c, int a, bool show=true, bool showOnlyEmo=false)
Definition: Chara.cs:8084
FactionBranch homeBranch
Definition: Chara.cs:1080
bool isDead
Definition: Chara.cs:391
List< Chara > members

References cc, BaseCard.GetInt(), Chara.GetRevived(), Chara.homeBranch, Chara.isDead, FactionBranch.members, Chara.ModAffinity(), and EMono.pc.

◆ sister_change()

void DramaOutcome.sister_change ( )
inline

Definition at line 358 of file DramaOutcome.cs.

359 {
360 cc.idSkin = ((cc.idSkin != 1) ? 1 : 2);
361 }

◆ sister_friend()

void DramaOutcome.sister_friend ( )
inline

Definition at line 348 of file DramaOutcome.cs.

349 {
350 if (cc.id == "olderyoungersister")
351 {
352 cc.MakeAlly();
353 }
354 EMono.pc.ModCurrency(-10000);
355 cc.Say("hug", cc, EMono.pc);
356 }

References cc, Card.id, Chara.MakeAlly(), Card.ModCurrency(), EMono.pc, and Card.Say().

◆ StartNewGame()

void DramaOutcome.StartNewGame ( )
inline

Definition at line 16 of file DramaOutcome.cs.

17 {
18 if ((bool)LayerTitle.actor)
19 {
21 }
22 }
void StartNewGame()
Definition: Game.cs:806
static EmbarkActor actor
Definition: LayerTitle.cs:25

References LayerTitle.actor, EMono.game, and Game.StartNewGame().

◆ StartNewGame2()

void DramaOutcome.StartNewGame2 ( )
inline

Definition at line 24 of file DramaOutcome.cs.

25 {
26 if ((bool)LayerTitle.actor)
27 {
30 EMono.pc.global.transition = new ZoneTransition
31 {
32 state = ZoneTransition.EnterState.Exact,
34 z = EMono.game.Prologue.startZ
35 };
36 }
37 }
List< Action > actionsNextFrame
Definition: BaseCore.cs:31
static void KillActor()
Definition: LayerTitle.cs:191
string idStartZone
Definition: Prologue.cs:9
int startX
Definition: Prologue.cs:11

References BaseCore.actionsNextFrame, LayerTitle.actor, EMono.core, EMono.game, Prologue.idStartZone, LayerTitle.KillActor(), Chara.MoveZone(), EMono.pc, Game.Prologue, and Prologue.startX.

◆ Tutorial1()

void DramaOutcome.Tutorial1 ( )
inline

Definition at line 188 of file DramaOutcome.cs.

189 {
190 Thing t = ThingGen.Create("log");
191 Point point = new Point(53, 52);
192 EMono._zone.AddCard(t, point).SetPlaceState(PlaceState.installed);
193 t = ThingGen.Create("crimAle");
194 EMono._zone.AddCard(t, point).SetPlaceState(PlaceState.installed);
195 }
PlaceState
Definition: PlaceState.cs:2
void SetPlaceState(PlaceState newState, bool byPlayer=false)
Definition: Card.cs:3817

References EMono._zone, Zone.AddCard(), ThingGen.Create(), and Card.SetPlaceState().

◆ upgrade_miscreation()

void DramaOutcome.upgrade_miscreation ( )
inline

Definition at line 488 of file DramaOutcome.cs.

489 {
490 Chara chara = EMono.pc.party.members.Find((Chara c) => !c.IsPC && c.HasElement(1248));
491 int num = chara.Evalue(1248);
492 chara.SetFeat(1248, 0);
493 for (int i = 0; i < num; i++)
494 {
495 Rand.SetSeed(chara.uid + i);
496 Thing thing = DNA.GenerateRandomGene(chara.LV + 30, chara.uid + i);
497 if (thing.c_DNA.GetInvalidFeat(chara) == null && thing.c_DNA.GetInvalidAction(chara) == null)
498 {
499 thing.c_DNA.Apply(chara, reverse: false);
500 }
501 }
502 Rand.SetSeed();
503 }
int uid
Definition: Card.cs:123
int Evalue(int ele)
Definition: Card.cs:2599
DNA c_DNA
Definition: Card.cs:1907
bool HasElement(int ele, bool includeNagative=false)
Definition: Card.cs:6106
int LV
Definition: Card.cs:387
override bool IsPC
Definition: Chara.cs:626
void SetFeat(int id, int value=1, bool msg=false)
Definition: Chara.cs:10060
Party party
Definition: Chara.cs:43
Definition: DNA.cs:8
Element GetInvalidFeat(Chara c)
Definition: DNA.cs:662
static Thing GenerateRandomGene(int lv=-1, int seed=-1)
Definition: DNA.cs:150
void Apply(Chara c)
Definition: DNA.cs:178
Element GetInvalidAction(Chara c)
Definition: DNA.cs:688
List< Chara > members
Definition: Party.cs:19
Definition: Rand.cs:4
static void SetSeed(int a=-1)
Definition: Rand.cs:37

References DNA.Apply(), Card.c_DNA, Card.Evalue(), DNA.GenerateRandomGene(), DNA.GetInvalidAction(), DNA.GetInvalidFeat(), Card.HasElement(), Chara.IsPC, Card.LV, Party.members, Chara.party, EMono.pc, Chara.SetFeat(), Rand.SetSeed(), and Card.uid.

◆ wedding_fail()

void DramaOutcome.wedding_fail ( )
inline

Definition at line 429 of file DramaOutcome.cs.

430 {
432 {
433 tg.chara.Slap(EMono.pc, slapToDeath: true);
434 });
435 }
void Slap(Chara c, bool slapToDeath=false)
Definition: Chara.cs:6403
static LayerDrama Instance
Definition: LayerDrama.cs:20
Layer SetOnKill(Action action)
Definition: Layer.cs:579

References Person.chara, LayerDrama.Instance, EMono.pc, Layer.SetOnKill(), Chara.Slap(), and tg.

◆ wedding_kiss()

void DramaOutcome.wedding_kiss ( )
inline

Definition at line 437 of file DramaOutcome.cs.

438 {
441 }
void Kiss(Chara c)
Definition: Chara.cs:6376

References Person.chara, Chara.Kiss(), EMono.pc, and tg.

◆ wedding_setup()

void DramaOutcome.wedding_setup ( )
inline

Definition at line 420 of file DramaOutcome.cs.

421 {
422 Chara chara = tg.chara;
423 chara.MoveImmediate(new Point(51, 54), focus: false);
424 EMono.pc.LookAt(chara);
425 chara.LookAt(EMono.pc);
426 chara.SetFeat(1275, 2);
427 }
void MoveImmediate(Point p, bool focus=true, bool cancelAI=true)
Definition: Card.cs:5919

References Person.chara, Chara.LookAt(), Card.MoveImmediate(), EMono.pc, Chara.SetFeat(), and tg.

◆ wedding_success()

void DramaOutcome.wedding_success ( )
inline

Definition at line 443 of file DramaOutcome.cs.

444 {
445 EMono.pc.PlayEffect("aura_heaven");
446 tg.chara.PlayEffect("aura_heaven");
447 EMono.pc.PlaySound("godbless");
448 EMono.pc.Say("married", EMono.pc, tg.chara);
449 EMono.pc.faith.Talk("wedding");
450 }
SoundSource PlaySound(string id, float v=1f, bool spatial=true)
Definition: Card.cs:6359
Religion faith
Definition: Chara.cs:441
void Talk(string idTalk, Card c=null, Card agent=null)
Definition: Religion.cs:154

References Person.chara, Chara.faith, EMono.pc, Card.PlayEffect(), Card.PlaySound(), Card.Say(), Religion.Talk(), and tg.

◆ WelcomeMsg()

void DramaOutcome.WelcomeMsg ( )
inline

Definition at line 197 of file DramaOutcome.cs.

198 {
199 }

Member Data Documentation

◆ idJump

string DramaOutcome.idJump
static

Definition at line 6 of file DramaOutcome.cs.

◆ manager

DramaManager DramaOutcome.manager

Definition at line 8 of file DramaOutcome.cs.

Referenced by marry().

Property Documentation

◆ cc

◆ sequence

DramaSequence DramaOutcome.sequence
get

Definition at line 10 of file DramaOutcome.cs.

◆ tg

Person DramaOutcome.tg
get

Definition at line 12 of file DramaOutcome.cs.

Referenced by wedding_fail(), wedding_kiss(), wedding_setup(), and wedding_success().


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