21 public override string TextWidgetDate
25 return "eventMusic".lang((this.TimeLimit - this.minElapsed <= 30) ?
"end_soon".lang() :
"", this.questMusic.score.ToString() ??
"",
this.questMusic.destScore.ToString() ??
"",
null,
null);
31 public override int TimeLimit
40 public override void OnVisit()
46 if (
EClass.debug.enable && Input.GetKey(KeyCode.LeftShift))
50 int difficulty = this.questMusic.difficulty;
51 int maxLv = difficulty * 5 + 2;
54 maxLv += (difficulty - 2) * 10;
57 genBounds.marginPartial = 1;
58 genBounds.FuncCheckEmpty = ((
Cell cell) => cell.sourceFloor.id == 76);
60 Action<PartialMap, GenBounds> <>9__2;
62 for (i = 0; i < 25; i = k + 1)
65 MapPiece.Type type =
MapPiece.Type.Concert;
68 Action<PartialMap, GenBounds> onCreate;
69 if ((onCreate = <>9__2) ==
null)
79 List<Point> list = b.ListEmptyPoint();
81 while (num2 <
EClass.rndHalf(list.Count) && list.Count != 0)
85 this.Spawn(c3, point);
91 genBounds2.TryAddMapPiece(type, ruin, tags, onCreate);
95 where c.tag.Contains(
"party")
98 if (row.LV < maxLv * 2)
100 Point randomPoint =
EClass._map.bounds.GetRandomPoint();
101 if (!randomPoint.HasChara && !randomPoint.HasBlock)
104 using (List<Chara>.Enumerator enumerator2 =
EClass.pc.party.members.GetEnumerator())
106 while (enumerator2.MoveNext())
108 if (enumerator2.Current.id == row.id)
117 this.Spawn(c3, randomPoint);
122 for (
int j = 0; j < 50; j++)
124 Point randomPoint2 =
EClass._map.bounds.GetRandomPoint();
125 if (!randomPoint2.HasChara && !randomPoint2.HasBlock)
127 Chara c2 =
CharaGen.CreateFromFilter(
"c_neutral", maxLv / 2, -1);
128 this.Spawn(c2, randomPoint2);
133 thing.isNPCProperty =
true;
140 EClass._zone.AddCard(c, p);
141 if (c.hostility < Hostility.Neutral)
143 c.c_originalHostility = (c.hostility = Hostility.Neutral);
148 public override ZoneInstance.Status OnReachTimeLimit()
150 Msg.Say(
"party_end", this.questMusic.score.ToString() ??
"",
null,
null,
null);
151 Msg.Say(
"party_end2", this.questMusic.sumMoney.ToString() ??
"",
null,
null,
null);
152 if (this.questMusic.score <
this.questMusic.destScore)