EA 23.74
January 4, 2025
23 files modified. 1 new file created.
Important Changes
None.
ABILITY
public class ABILITY
{
public const int ActChat = 5044;
public const int AI_Drink = 5045;
public const int TaskMoveInstalled = 5036;
@@ -20,7 +20,7 @@ public class ABILITY
public const int AI_TendAnimal = 5043;
public const int AI_Drink = 5045;
public const int ActChat = 5044;
public const int ActInstall = 5046;
@@ -134,11 +134,13 @@ public class ABILITY
public const int TaskTalk = 5017;
public const int ActMelee = 5001;
public const int ActRush = 6450;
public const int ActDuplicate = 6420;
public const int ActCrabBreathe = 6500;
public const int breathe_Darkness = 50203;
public const int ActJureHeal = 6901;
public const int ActLulwyTrick = 6902;
@@ -154,13 +156,13 @@ public class ABILITY
public const int breathe_Lightning = 50202;
public const int ActRush = 6450;
public const int ActCrabBreathe = 6500;
public const int breathe_Mind = 50204;
public const int StManaCost = 6720;
public const int ActJureHeal = 6901;
public const int breathe_Mind = 50204;
public const int breathe_Poison = 50205;
public const int breathe_Nether = 50206;
public const int breathe_Sound = 50207;
@@ -178,22 +180,22 @@ public class ABILITY
public const int breathe_Cut = 50214;
public const int ActWait = 5000;
public const int breathe_Poison = 50205;
public const int breathe_Nether = 50206;
public const int ActWait = 5000;
public const int ActManaAbsorb = 6900;
public const int breathe_Darkness = 50203;
public const int ActThrowPotion = 6661;
public const int StManaCost = 6720;
public const int ActCurse = 6600;
public const int ActEntangle = 6601;
public const int ActCurse = 6600;
public const int ActDraw = 6602;
public const int ActMelee = 5001;
public const int ActNTR = 6603;
public const int ActWeaken = 6610;
@@ -202,12 +204,16 @@ public class ABILITY
public const int ActTouchSleep = 6612;
public const int ActGazeInsane = 6621;
public const int StTaunt = 6700;
public const int ActGazeMutation = 6622;
public const int ActGazeInsane = 6621;
public const int ActGazeDim = 6620;
public const int ActGazeMana = 6623;
public const int ActDrainBlood = 6626;
public const int ActInsult = 6630;
public const int ActScream = 6631;
@@ -222,26 +228,22 @@ public class ABILITY
public const int ActDropMine = 6660;
public const int ActThrowPotion = 6661;
public const int StTaunt = 6700;
public const int ActDrainBlood = 6626;
public const int ActGazeMutation = 6622;
public static readonly int[] IDS = new int[113]
public static readonly int[] IDS = new int[114]
{
5044, 5036, 5037, 5038, 5039, 5040, 5041, 5042, 5043, 5045,
5045, 5036, 5037, 5038, 5039, 5040, 5041, 5042, 5043, 5044,
5046, 5047, 5048, 5049, 5050, 5035, 5051, 5053, 5054, 5055,
6001, 6003, 6011, 6012, 6013, 6015, 6018, 6019, 6020, 6050,
6400, 5052, 6410, 5034, 5032, 5002, 5003, 5004, 5005, 5006,
5007, 5008, 5009, 5010, 5011, 5012, 5013, 5014, 5015, 5033,
5016, 5018, 5019, 5020, 5021, 5022, 5023, 5024, 5025, 5026,
5027, 5028, 5029, 5030, 5031, 5017, 5001, 6420, 6500, 6902,
6903, 6904, 7000, 50200, 50201, 50202, 6450, 50204, 6901, 50205,
50207, 50208, 50209, 50210, 50211, 50212, 50213, 50214, 5000, 50206,
6900, 50203, 6720, 6601, 6600, 6602, 6603, 6610, 6611, 6612,
6621, 6622, 6620, 6630, 6631, 6640, 6641, 6642, 6650, 6660,
6661, 6700, 6626
5027, 5028, 5029, 5030, 5031, 5017, 6450, 6420, 50203, 6901,
6902, 6903, 6904, 7000, 50200, 50201, 50202, 6500, 6720, 50204,
50206, 50207, 50208, 50209, 50210, 50211, 50212, 50213, 50214, 50205,
5000, 6900, 6661, 6600, 6601, 6602, 5001, 6603, 6610, 6611,
6612, 6700, 6621, 6620, 6623, 6626, 6630, 6631, 6640, 6641,
6642, 6650, 6660, 6622
};
}
public class Ability : Act
AI_Fuck
@@ -60,13 +60,14 @@ public override IEnumerable<Status> Run()
}
Chara cc = (sell ? target : owner);
Chara tc = (sell ? owner : target);
int destDist = ((Type == FuckType.fuck) ? 1 : 1);
yield return DoGoto(target.pos, destDist);
cc.Say(Type.ToString() + "_start", cc, tc);
isFail = () => !tc.IsAliveInCurrentZone || tc.Dist(owner) > 3;
if (Type == FuckType.tame)
{
cc.SetTempHand(1104, -1);
}
int destDist = ((Type == FuckType.fuck) ? 1 : 1);
maxProgress = 25;
if (succubus)
{
ActEffect
}
num4 = num4 * Act.powerMod / 100;
c.DamageHP(num4, e.id, power * num / 100, AttackSource.None, chara ?? CC);
if (c.IsAliveInCurrentZone && CC.IsAliveInCurrentZone && id == EffectId.DrainMana && c.isChara && CC.isChara)
{
int num6 = num4 * power * num / 10000;
Debug.Log(num4 + " v:" + num6 + " evalue:" + e.Value + " power:" + power + " elepMod:" + num);
c.Chara.mana.Mod(-num6);
CC.Chara.mana.Mod(num6);
}
if (id == EffectId.Explosive && CC.trait is TraitCookerMicrowave)
{
chara = EClass.pc;
}
if ((id == EffectId.Explosive || id == EffectId.Suicide) && ((id != EffectId.Suicide && id != EffectId.Meteor) || !EClass._zone.IsPCFaction))
{
int num6 = id switch
int num7 = id switch
{
EffectId.Suicide => CC.LV / 3 + 40,
EffectId.Meteor => 50 + power / 20,
_ => (actref.refThing != null) ? actref.refThing.material.hardness : (30 + power / 20),
};
bool flag5 = EClass._zone.HasLaw && !EClass._zone.IsPCFaction && (CC.IsPC || (id == EffectId.Explosive && actref.refThing == null)) && !(EClass._zone is Zone_Vernis);
if (p.HasObj && p.cell.matObj.hardness <= num6)
if (p.HasObj && p.cell.matObj.hardness <= num7)
{
EClass._map.MineObj(p);
if (flag5)
@@ -334,7 +341,7 @@ public static bool DamageEle(Card CC, EffectId id, int power, Element e, List<Po
EClass.player.ModKarma(-1);
}
}
if (!p.HasObj && p.HasBlock && p.matBlock.hardness <= num6)
if (!p.HasObj && p.HasBlock && p.matBlock.hardness <= num7)
{
EClass._map.MineBlock(p);
if (flag5)
}
if (e.id == 910)
{
int num7 = 0;
int num8 = 0;
if (id == EffectId.Meteor)
{
num7 = 2;
num8 = 2;
}
if (EClass._zone.IsPCFaction && EClass._zone.branch.HasItemProtection)
{
num7 = 0;
num8 = 0;
}
if (num7 > EClass.rnd(10))
if (num8 > EClass.rnd(10))
{
p.ModFire(4 + EClass.rnd(10));
}
@@ -440,6 +447,7 @@ public static bool DamageEle(Card CC, EffectId id, int power, Element e, List<Po
}
case EffectId.Hand:
case EffectId.DrainBlood:
case EffectId.DrainMana:
{
List<Point> list5 = new List<Point>();
list5.Add(tp.Copy());
@@ -448,7 +456,7 @@ public static bool DamageEle(Card CC, EffectId id, int power, Element e, List<Po
{
CC.PlaySound("spell_hand");
});
if (!DamageEle(CC, id, power, element, list5, actRef, (id == EffectId.DrainBlood) ? "" : "spell_hand"))
if (!DamageEle(CC, id, power, element, list5, actRef, (id == EffectId.DrainBlood || id == EffectId.DrainMana) ? "" : "spell_hand"))
{
CC.Say("spell_hand_miss", CC, element.Name.ToLower());
}
AttackProcess
@@ -479,7 +479,10 @@ public bool Perform(int count, bool hasHit, float dmgMulti = 1f, bool maxRoll =
{
foreach (Element value in EClass.pc.faction.charaElements.dict.Values)
{
list2.Add(value);
if (value.Value > 0)
{
list2.Add(value);
}
}
}
if (hit && num3 > EClass.rnd(100))
Chara
@@ -5933,6 +5933,15 @@ public override string GetHoverText()
text2 = (" (" + text2 + ") ").TagSize(14).TagColor(EClass.Colors.gradientLVComparison.Evaluate(0.25f * (float)num));
string s = (IsFriendOrAbove() ? "HostilityAlly" : (IsNeutral() ? "HostilityNeutral" : "HostilityEnemy"));
s = (" (" + s.lang() + ") ").TagSize(14);
s = "";
if (memberType == FactionMemberType.Guest)
{
s += (" (" + "guest".lang() + ") ").TagSize(14);
}
else if (memberType == FactionMemberType.Livestock)
{
s += (" (" + "livestock".lang() + ") ").TagSize(14);
}
if (!EClass.pc.IsMoving)
{
if (EClass.pc.HasHigherGround(this))
@@ -5956,7 +5965,7 @@ public override string GetHoverText()
{
text2 += ("( " + faith.Name + ")").TagSize(14);
}
return text + text2;
return text + text2 + s;
}
public override string GetHoverText2()
@@ -7122,9 +7131,9 @@ public Thing MakeMilk(bool effect = true, int num = 1, bool addToZone = true)
Thing thing = ThingGen.Create("milk").SetNum(num);
thing.MakeRefFrom(this);
int num2 = base.LV - source.LV;
if (!IsPCFaction)
if (!IsPCFaction && EClass._zone.IsUserZone)
{
num2 = ((!EClass._zone.IsUserZone) ? (num2 / 10) : 0);
num2 = 0;
}
if (num2 >= 10)
{
Core
@@ -518,6 +518,10 @@ public void Init()
InvokeRepeating("Update100ms", 0.1f, 0.1f);
UnityEngine.Object.DestroyImmediate(ui.layoutLang.gameObject);
CoreConfig.Init();
if (config.lang.IsEmpty())
{
config.lang = "EN";
}
SetLang(config.lang);
refs.Init();
debug.Init();
DOMAIN
@@ -14,7 +14,7 @@ public class DOMAIN
public const int domComm = 805;
public const int domEarth = 812;
public const int domEyth = 814;
public const int domWind = 807;
@@ -26,18 +26,18 @@ public class DOMAIN
public const int domHealing = 811;
public const int domEyth = 814;
public const int domOblivion = 813;
public const int domEarth = 812;
public const int domElement = 806;
public const int domHarmony = 815;
public static readonly int[] IDS = new int[16]
{
804, 800, 801, 802, 803, 805, 812, 807, 808, 809,
810, 811, 814, 813, 806, 815
804, 800, 801, 802, 803, 805, 814, 807, 808, 809,
810, 811, 813, 812, 806, 815
};
}
public class Domain : EClass
ELEMENT
@@ -21,13 +21,13 @@ public class ELEMENT
public const int _void = 0;
public const int d = 3;
public const int socket = 5;
public const int lv = 1;
public const int quality = 2;
public const int socket = 5;
public const int d = 3;
public const int nutrition = 10;
@@ -67,8 +67,8 @@ public class ELEMENT
public static readonly int[] IDS = new int[30]
{
756, 755, 754, 753, 752, 751, 750, 0, 3, 1,
2, 5, 10, 11, 12, 13, 14, 16, 17, 18,
756, 755, 754, 753, 752, 751, 750, 0, 5, 1,
2, 3, 10, 11, 12, 13, 14, 16, 17, 18,
15, 21, 22, 23, 24, 25, 26, 29, 85, 20
};
}
ENC
public class ENC
{
public const int noDamage = 654;
public const int living = 653;
public const int eco = 652;
public const int r_PV = 651;
public const int r_DV = 650;
public const int mod_scatter = 607;
public const int mod_precision = 605;
public const int r_mana = 641;
public const int mod_drill = 606;
public const int r_life = 640;
public const int noDamage = 654;
public const int mod_scatter = 607;
public const int r_mana = 641;
public const int r_life = 640;
public const int onlyPet = 655;
public const int convertCold = 851;
public const int r_DV = 650;
public const int absorbHP = 660;
public const int permaCurse = 656;
public const int convertFire = 850;
public const int absorbMP = 661;
@@ -38,21 +36,21 @@ public class ENC
public const int meleeDistance = 666;
public const int convertLightning = 852;
public const int convertCold = 851;
public const int mod_ammo_recover = 604;
public const int mod_precision = 605;
public const int convertImpact = 865;
public const int convertFire = 850;
public const int convertLightning = 852;
public const int permaCurse = 656;
public const int absorbHP = 660;
public const int mod_ammo_knockback = 603;
public const int mod_ammo_recover = 604;
public const int sustain_CHA = 447;
public const int mod_reload = 601;
public const int mod_rapid = 602;
public const int breathing = 429;
@@ -108,7 +106,9 @@ public class ENC
public const int negateSleep = 424;
public const int bane_all = 468;
public const int strongStomach = 480;
public const int mod_reload = 601;
public const int mod_ammo = 600;
@@ -118,7 +118,7 @@ public class ENC
public const int revealFaith = 481;
public const int strongStomach = 480;
public const int bane_all = 468;
public const int bane_fish = 467;
@@ -134,9 +134,9 @@ public class ENC
public const int bane_undead = 461;
public const int bane_dragon = 460;
public const int mod_ammo_knockback = 603;
public const int mod_rapid = 602;
public const int sustain_PER = 443;
public const int sustain_MAG = 446;
@@ -144,19 +144,19 @@ public class ENC
public const int sustain_LER = 444;
public const int sustain_PER = 443;
public const int bane_dragon = 460;
public const int sustain_DEX = 442;
public static readonly int[] IDS = new int[74]
{
653, 652, 651, 650, 607, 605, 606, 640, 654, 641,
655, 851, 660, 661, 662, 663, 664, 665, 666, 852,
604, 865, 850, 656, 603, 447, 601, 429, 428, 427,
426, 425, 423, 422, 421, 420, 416, 415, 440, 412,
410, 409, 408, 407, 406, 405, 404, 403, 402, 401,
400, 411, 441, 424, 468, 600, 483, 482, 481, 480,
467, 466, 465, 464, 463, 462, 461, 460, 602, 446,
445, 444, 443, 442
654, 653, 652, 651, 641, 606, 607, 640, 655, 650,
656, 850, 661, 662, 663, 664, 665, 666, 851, 605,
865, 852, 660, 604, 447, 602, 429, 428, 427, 426,
425, 423, 422, 421, 420, 416, 415, 440, 412, 410,
409, 408, 407, 406, 405, 404, 403, 402, 401, 400,
411, 441, 424, 480, 601, 600, 483, 482, 481, 468,
467, 466, 465, 464, 463, 462, 461, 603, 443, 446,
445, 444, 460, 442
};
}
EffectId
@@ -111,5 +111,6 @@ public enum EffectId
Steal = 287,
Scream = 288,
DropMine = 289,
ThrowPotion = 290
ThrowPotion = 290,
DrainMana = 291
}
FACTION
public class FACTION
{
public const int bfGeyser = 3701;
public const int bfCave = 3500;
public const int bfFertile = 3700;
public const int bfPlain = 3600;
public const int bfSea = 3605;
public const int bfForest = 3601;
public const int bfBeach = 3604;
public const int bfSnow = 3602;
public const int bfHill = 3603;
public const int fConstruction = 2003;
public const int bfSnow = 3602;
public const int fRation = 2207;
public const int bfForest = 3601;
public const int bfBeach = 3604;
public const int bfPlain = 3600;
public const int bfSea = 3605;
public const int bfCave = 3500;
public const int bfFertile = 3700;
public const int fRation = 2207;
public const int bfGeyser = 3701;
public const int bfHill = 3603;
public const int fAttraction = 2206;
@@ -30,11 +32,9 @@ public class FACTION
public const int fFood = 2204;
public const int fConstruction = 2003;
public const int fPromo = 2202;
public const int fLuck = 2118;
public const int fElec = 2201;
public const int fLoyal = 2117;
@@ -42,17 +42,17 @@ public class FACTION
public const int fAdmin = 2115;
public const int fTaxEvasion = 2119;
public const int fHeirloom = 2120;
public const int fSoil = 2200;
public const int fElec = 2201;
public const int bfRuin = 3702;
public const int fSafety = 2205;
public const int fTaxEvasion = 2119;
public const int fLuck = 2118;
public const int bfTranquil = 3703;
@@ -110,9 +110,9 @@ public class FACTION
public static readonly int[] IDS = new int[52]
{
3701, 3700, 3605, 3604, 3603, 3602, 3601, 3600, 3500, 2207,
2206, 2203, 2204, 2003, 2202, 2118, 2117, 2116, 2115, 2120,
2200, 2201, 3702, 2205, 2119, 3703, 3705, 3704, 4005, 4004,
3500, 3600, 3601, 3602, 2003, 2207, 3604, 3605, 3700, 3701,
3603, 2206, 2203, 2204, 2202, 2201, 2117, 2116, 2115, 2119,
2120, 2200, 3702, 2205, 2118, 3703, 3705, 3704, 4005, 4004,
4003, 4002, 4001, 4000, 3900, 3805, 3804, 3803, 3802, 4006,
3800, 3801, 3707, 3708, 3709, 3710, 3706, 3781, 3782, 3783,
3784, 3780
FEAT
@@ -63,7 +63,7 @@ public class FEAT
public const int featScavenger = 1656;
public const int featModelBeliever = 1655;
public const int featHeavyCasting = 1654;
public const int featDreamWaker = 1653;
@@ -103,7 +103,7 @@ public class FEAT
public const int featReboot = 1410;
public const int featHeavyCasting = 1654;
public const int featModelBeliever = 1655;
public const int featPaladin2 = 1408;
@@ -125,10 +125,10 @@ public class FEAT
public const int featCosmicHorror = 1233;
public const int featAcidBody = 1223;
public const int featHeavyEater = 1234;
public const int featLightEater = 1235;
public const int featNorland = 1236;
public const int featRoran = 1237;
@@ -147,11 +147,13 @@ public class FEAT
public const int featGod_luck1 = 1330;
public const int featLightEater = 1235;
public const int featGod_harmony1 = 1335;
public const int featSplit = 1222;
public const int featAcidBody = 1223;
public const int featSpike = 1221;
public const int featGod_oblivion1 = 1340;
public const int featSplit = 1222;
public const int featFate = 1220;
@@ -197,16 +199,14 @@ public class FEAT
public const int featElderCrab = 1219;
public const int featGod_harmony1 = 1335;
public const int featSpike = 1221;
public const int featGod_oblivion1 = 1340;
public const int featGod_trickery1 = 1345;
public const int featBaby = 1232;
public const int featGod_moonshadow1 = 1350;
public const int featGod_trickery1 = 1345;
public const int featGod_strife1 = 1355;
public const int featWarrior = 1400;
@@ -230,14 +230,14 @@ public class FEAT
1612, 1627, 1626, 1625, 1624, 1623, 1622, 1621, 1620, 1628,
1418, 1610, 1421, 1420, 1419, 1417, 1416, 1415, 1414, 1413,
1412, 1629, 1611, 1630, 1646, 1632, 1411, 1658, 1657, 1656,
1655, 1653, 1652, 1651, 1650, 1649, 1631, 1648, 1645, 1644,
1654, 1653, 1652, 1651, 1650, 1649, 1631, 1648, 1645, 1644,
1643, 1642, 1641, 1640, 1636, 1635, 1634, 1633, 1647, 1410,
1654, 1408, 1224, 1225, 1226, 1227, 1228, 1229, 1230, 1231,
1233, 1223, 1234, 1236, 1237, 1300, 1305, 1310, 1315, 1320,
1325, 1330, 1235, 1222, 1221, 1220, 1409, 1200, 1201, 1202,
1203, 1204, 1205, 1206, 1207, 1208, 1209, 1210, 1211, 1212,
1213, 1214, 1215, 1216, 1217, 1218, 1219, 1335, 1340, 1232,
1350, 1345, 1355, 1400, 1401, 1403, 1404, 1405, 1406, 1402,
1655, 1408, 1224, 1225, 1226, 1227, 1228, 1229, 1230, 1231,
1233, 1234, 1235, 1236, 1237, 1300, 1305, 1310, 1315, 1320,
1325, 1330, 1335, 1223, 1340, 1222, 1220, 1409, 1200, 1201,
1202, 1203, 1204, 1205, 1206, 1207, 1208, 1209, 1210, 1211,
1212, 1213, 1214, 1215, 1216, 1217, 1218, 1219, 1221, 1345,
1232, 1350, 1355, 1400, 1401, 1403, 1404, 1405, 1406, 1402,
1407
};
}
FOOD
public class FOOD
{
public const int food_CHA = 700;
public const int food_cat = 701;
public const int food_god = 758;
public const int justcooked = 757;
public const int food_love = 703;
public const int food_poison = 702;
public const int food_bug = 704;
public const int gainWeight = 705;
public const int food_bug = 704;
public const int loseWeight = 706;
public const int food_love = 703;
public const int justcooked = 757;
public const int loseWeight = 706;
public const int food_god = 758;
public const int food_poison = 702;
public const int food_CHA = 700;
public static readonly int[] IDS = new int[9] { 700, 701, 758, 757, 702, 705, 704, 703, 706 };
public static readonly int[] IDS = new int[9] { 701, 703, 704, 705, 706, 757, 758, 702, 700 };
}
GrowSystem
@@ -550,14 +550,11 @@ public Thing TryPopSeed(Chara c)
if (source.HasTag(CTAG.seed))
{
int num = (cell.IsFarmField ? 400 : 1000);
if (EClass._zone.IsPCFaction)
int soilCost = EClass._zone.GetSoilCost();
int maxSoil = EClass._zone.MaxSoil;
if (soilCost > maxSoil)
{
int soilCost = EClass._zone.GetSoilCost();
int maxSoil = EClass.Branch.MaxSoil;
if (soilCost > maxSoil)
{
num += (soilCost - maxSoil) * 10;
}
num += (soilCost - maxSoil) * 10;
}
if (IsWithered())
{
@@ -607,14 +604,11 @@ public void PopHarvest(Chara c, Thing t = null, int num = -1)
if (source._growth.Length > 4)
{
int num2 = EClass.rnd(source._growth[4].ToInt()) + 1;
if (EClass._zone.IsPCFaction)
int soilCost = EClass._zone.GetSoilCost();
int maxSoil = EClass._zone.MaxSoil;
if (soilCost > maxSoil && EClass.player.stats.days >= 5)
{
int soilCost = EClass._zone.GetSoilCost();
int maxSoil = EClass.Branch.MaxSoil;
if (soilCost > maxSoil && EClass.player.stats.days >= 5)
{
num2 -= EClass.rnd(2 + (soilCost - maxSoil) / 20);
}
num2 -= EClass.rnd(2 + (soilCost - maxSoil) / 20);
}
if (num2 <= 0)
{
LayerCraft
@@ -310,7 +310,7 @@ public void RefreshCategory(string cat, bool first = false)
}
if (a.HasFirstTimeBonus())
{
b.Attach("recipe_firstTime", rightAttach: false);
b.Attach("recipe_firstTime", rightAttach: false).GetComponent<Image>().SetAlpha((a.idSkin == 0) ? 1f : 0.5f);
}
},
onList = delegate
MUTATION
@@ -2,31 +2,33 @@ public class MUTATION
{
public const int mutationRegen = 1516;
public const int etherManaBattery = 1564;
public const int mutationDexN = 1515;
public const int mutationSkin = 1510;
public const int mutationDex = 1514;
public const int mutationSkinN = 1511;
public const int etherPoisonHand = 1565;
public const int mutationEye = 1512;
public const int mutationEyeN = 1513;
public const int mutationDex = 1514;
public const int mutationSkinN = 1511;
public const int mutationDexN = 1515;
public const int mutationSkin = 1510;
public const int mutationRegenN = 1517;
public const int etherPoisonHand = 1565;
public const int mutationEyeN = 1513;
public const int mutationSpeedN = 1519;
public const int mutationSpeed = 1518;
public const int etherManaBattery = 1564;
public const int mutationStr = 1520;
public const int etherProvoke = 1563;
public const int etherArmor = 1562;
public const int mutationSpeed = 1518;
public const int mutationSpeedN = 1519;
public const int etherWeak = 1560;
@@ -50,19 +52,19 @@ public class MUTATION
public const int etherStupid = 1561;
public const int mutationStrN = 1521;
public const int mutationStr = 1520;
public const int etherGravity = 1550;
public const int mutationCha = 1522;
public const int mutationStrN = 1521;
public const int mutationChaN = 1523;
public const int mutationBrain = 1524;
public const int mutationBrainN = 1525;
public const int mutationCold = 1526;
public const int mutationBrain = 1524;
public const int mutationCha = 1522;
public const int mutationLightning = 1528;
@@ -74,14 +76,12 @@ public class MUTATION
public const int mutationColdN = 1527;
public const int etherGravity = 1550;
public static readonly int[] IDS = new int[38]
{
1516, 1564, 1510, 1511, 1512, 1513, 1514, 1515, 1517, 1565,
1519, 1563, 1562, 1518, 1560, 1559, 1558, 1557, 1556, 1555,
1554, 1553, 1552, 1551, 1561, 1521, 1520, 1522, 1523, 1525,
1526, 1524, 1528, 1529, 1530, 1531, 1527, 1550
1516, 1515, 1514, 1565, 1512, 1511, 1510, 1517, 1513, 1518,
1564, 1520, 1563, 1562, 1519, 1560, 1559, 1558, 1557, 1556,
1555, 1554, 1553, 1552, 1551, 1561, 1550, 1521, 1523, 1524,
1525, 1526, 1522, 1528, 1529, 1530, 1531, 1527
};
}
public class Mutation : Feat
Map
@@ -1814,14 +1814,11 @@ public void MineObj(Point point, Task task = null, Chara c = null)
if (task is TaskHarvest { IsReapSeed: not false })
{
int num2 = 1 + EClass.rnd(2) + ((EClass.rnd(3) == 0) ? 1 : 0);
if (EClass._zone.IsPCFaction)
int soilCost = EClass._zone.GetSoilCost();
int maxSoil = EClass._zone.MaxSoil;
if (soilCost > maxSoil)
{
int soilCost = EClass._zone.GetSoilCost();
int maxSoil = EClass.Branch.MaxSoil;
if (soilCost > maxSoil)
{
num2 -= EClass.rnd(2 + (soilCost - maxSoil) / 10);
}
num2 -= EClass.rnd(2 + (soilCost - maxSoil) / 10);
}
if (num2 <= 0)
{
POLICY
public class POLICY
{
public const int bed_quality = 2812;
public const int platinum_ticket = 2815;
public const int mass_exhibition = 2814;
public const int store_ripoff = 2816;
public const int suite_room = 2813;
public const int forcePanty = 2712;
public const int incomeTransfer = 2711;
public const int home_discount = 2800;
public const int open_business = 2810;
public const int home_discount = 2800;
public const int tourist_safety = 2811;
public const int forcePanty = 2712;
public const int bed_quality = 2812;
public const int store_ripoff = 2816;
public const int suite_room = 2813;
public const int tourist_safety = 2811;
public const int mass_exhibition = 2814;
public const int platinum_ticket = 2815;
public const int store_premium = 2817;
public const int license_stolen = 2824;
public const int legendary_exhibition = 2823;
public const int license_furniture = 2819;
@@ -35,7 +33,9 @@ public class POLICY
public const int celeb = 2822;
public const int legendary_exhibition = 2823;
public const int incomeTransfer = 2711;
public const int license_stolen = 2824;
public const int milk_fan = 2825;
@@ -49,24 +49,24 @@ public class POLICY
public const int noMother = 2710;
public const int human_right = 2506;
public const int inquisition = 2507;
public const int noDM = 2708;
public const int noAnimal = 2709;
public const int prohibition = 2503;
public const int food_for_people = 2502;
public const int faith_tax = 2501;
public const int wealth_tax = 2500;
public const int prohibition = 2503;
public const int impressment = 2504;
public const int legal_drug = 2505;
public const int human_right = 2506;
public const int nocturnal_life = 2508;
public const int vaccination = 2509;
@@ -77,23 +77,21 @@ public class POLICY
public const int resident_tax = 2512;
public const int inquisition = 2507;
public const int wealth_tax = 2500;
public const int taxfree = 2514;
public const int auto_farm = 2707;
public const int resident_wanted = 2513;
public const int taxTransfer = 2705;
public const int demon_invocation = 2706;
public const int border_watch = 2704;
public const int taxTransfer = 2705;
public const int weed_no = 2703;
public const int trash_no = 2702;
public const int demon_invocation = 2706;
public const int border_watch = 2704;
public const int energy_conservation = 2700;
@@ -103,13 +101,15 @@ public class POLICY
public const int trash_sort = 2701;
public const int auto_farm = 2707;
public static readonly int[] IDS = new int[50]
{
2812, 2815, 2814, 2813, 2711, 2810, 2800, 2712, 2816, 2811,
2817, 2824, 2819, 2820, 2821, 2822, 2823, 2825, 2826, 2827,
2828, 2818, 2710, 2506, 2708, 2709, 2502, 2501, 2500, 2503,
2504, 2505, 2508, 2509, 2510, 2511, 2512, 2507, 2514, 2707,
2513, 2705, 2704, 2703, 2702, 2706, 2700, 2516, 2515, 2701
2816, 2712, 2800, 2810, 2811, 2812, 2813, 2814, 2815, 2817,
2823, 2819, 2820, 2821, 2822, 2711, 2824, 2825, 2826, 2827,
2828, 2818, 2710, 2507, 2708, 2709, 2503, 2502, 2501, 2504,
2505, 2506, 2508, 2509, 2510, 2511, 2512, 2500, 2514, 2513,
2706, 2705, 2703, 2702, 2704, 2700, 2516, 2515, 2701, 2707
};
}
public class Policy : EClass
SKILL
public class SKILL
{
public const int fireproof = 50;
public const int tactics = 132;
public const int marksman = 133;
public const int armorHeavy = 122;
public const int weaponCrossbow = 109;
public const int twowield = 131;
public const int weaponScythe = 110;
public const int twohand = 130;
public const int weaponBlunt = 111;
public const int shield = 123;
public const int armorLight = 120;
public const int fireproof = 50;
public const int armorHeavy = 122;
public const int weaponBlunt = 111;
public const int shield = 123;
public const int weaponScythe = 110;
public const int twohand = 130;
public const int weaponCrossbow = 109;
public const int twowield = 131;
public const int marksman = 133;
public const int tactics = 132;
public const int armorLight = 120;
public const int eyeofmind = 134;
public const int parasite = 227;
public const int riding = 226;
public const int evasion = 150;
@@ -40,9 +40,9 @@ public class SKILL
public const int digging = 230;
public const int acidproof = 51;
public const int parasite = 227;
public const int riding = 226;
public const int acidproof = 51;
public const int lumberjack = 225;
@@ -68,6 +68,8 @@ public class SKILL
public const int fishing = 245;
public const int mana = 61;
public const int vigor = 62;
public const int DV = 64;
@@ -92,11 +94,11 @@ public class SKILL
public const int WIL = 75;
public const int MAG = 76;
public const int EDR = 56;
public const int CHA = 77;
public const int MAG = 76;
public const int LUC = 78;
public const int SPD = 79;
@@ -122,11 +124,9 @@ public class SKILL
public const int weaponDagger = 107;
public const int mana = 61;
public const int life = 60;
public const int LUC = 78;
public const int CHA = 77;
public const int gathering = 250;
@@ -264,13 +264,13 @@ public class SKILL
public static readonly int[] IDS = new int[131]
{
50, 133, 109, 110, 111, 120, 122, 123, 130, 131,
132, 134, 227, 150, 242, 241, 240, 237, 235, 230,
51, 226, 225, 220, 210, 207, 200, 152, 151, 135,
55, 102, 57, 245, 62, 64, 65, 66, 67, 68,
70, 71, 72, 73, 74, 75, 76, 56, 77, 79,
80, 90, 91, 92, 100, 101, 103, 104, 105, 106,
107, 61, 60, 78, 250, 108, 256, 916, 917, 918,
132, 122, 131, 130, 123, 50, 111, 110, 109, 133,
120, 134, 226, 150, 242, 241, 240, 237, 235, 230,
227, 51, 225, 220, 210, 207, 200, 152, 151, 135,
55, 102, 57, 245, 61, 62, 64, 65, 66, 67,
68, 70, 71, 72, 73, 74, 75, 56, 76, 78,
79, 80, 90, 91, 92, 100, 101, 103, 104, 105,
106, 107, 60, 77, 250, 108, 256, 916, 917, 918,
919, 920, 921, 922, 923, 924, 925, 950, 951, 952,
953, 954, 955, 956, 957, 958, 959, 960, 961, 962,
963, 964, 970, 971, 972, 255, 915, 914, 965, 912,
TraitBoat
@@ -6,8 +6,6 @@ public class TraitBoat : Trait
public override bool IsGround => true;
public override bool CanExtendBuild => true;
public override void OnChangePlaceState(PlaceState state)
{
if (state == PlaceState.installed)
TraitDetector
@@ -69,7 +69,7 @@ public void Search()
{
EClass.pc.PlaySound("detect_" + ((num <= 1) ? "detected" : ((num < 5) ? "near" : ((num < 15) ? "medium" : ((num < 30) ? "far" : ((num < 50) ? "veryFar" : "superFar"))))));
interval = ((num <= 1) ? 1 : ((num < 5) ? 2 : ((num < 15) ? 4 : ((num < 30) ? 7 : 10))));
if (EClass.core.config.sound.volumeSFX < 0.1f)
if (EClass.core.config.sound.volumeSFX < 0.1f || EClass.core.config.sound.volumeMaster < 0.1f)
{
WidgetMainText.ignoreStack = true;
Msg.Say("beep".lang());
+TraitDoorCurtain2
File Created
public class TraitDoorCurtain2 : TraitDoorAuto
{
public override string idSound => "Material/leather_drop";
}
Zone
@@ -491,6 +491,18 @@ public bool CanInspect
public Vector3 InspectPosition => default(Vector3);
public virtual int MaxSoil
{
get
{
if (branch == null)
{
return 99999;
}
return branch.MaxSoil;
}
}
public int Evalue(int ele)
{
return elements.Value(ele);
Zone_Tent
@@ -8,6 +8,8 @@ public class Zone_Tent : Zone
public override bool GrowPlant => true;
public override int MaxSoil => 50;
public override ZoneTransition.EnterState RegionEnterState => ZoneTransition.EnterState.Bottom;
public override void OnBeforeDeactivate()