Skip to content

Commit

Permalink
Merge pull request #95 from seionmoya/update-0.15.5.133420
Browse files Browse the repository at this point in the history
Update 0.15.5.133420
  • Loading branch information
seionmoya authored Nov 21, 2024
2 parents e1eec24 + ca193dd commit b97baa4
Show file tree
Hide file tree
Showing 111 changed files with 370 additions and 45,465 deletions.
7 changes: 6 additions & 1 deletion Fuyu.Backend.BSG/Models/Bots/EBotRole.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ public enum EBotRole
skier,
sectantPredvestnik = 57,
sectantPrizrak,
sectantOni
sectantOni,
infectedAssault,
infectedPmc,
infectedCivil,
infectedLaborant,
infectedTagilla
}
}
18 changes: 18 additions & 0 deletions Fuyu.Backend.BSG/Models/Locations/CrowdAttackSpawnParameters.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using System.Runtime.Serialization;
using Fuyu.Backend.BSG.Models.Bots;

namespace Fuyu.Backend.BSG.Models.Locations
{
[DataContract]
public class CrowdAttackSpawnParameters
{
[DataMember]
public EBotDifficulty Difficulty;

[DataMember]
public EBotRole Role;

[DataMember]
public int Weight;
}
}
51 changes: 51 additions & 0 deletions Fuyu.Backend.BSG/Models/Locations/Event.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
using System.Collections.Generic;
using System.Runtime.Serialization;

namespace Fuyu.Backend.BSG.Models.Locations
{
[DataContract]
public class Event
{
[DataMember]
public int InfectionPercentage;

[DataMember]
public int MinInfectionPercentage;

[DataMember]
public List<CrowdAttackSpawnParameters> CrowdAttackSpawnParams;

[DataMember]
public float ZombieMultiplier;

[DataMember]
public int MaxCrowdAttackSpawnLimit;

[DataMember]
public int CrowdsLimit;

[DataMember]
public float InfectedLookCoeff;

[DataMember]
public float CrowdCooldownPerPlayerSec;

[DataMember]
public float ZombieCallPeriodSec;

[DataMember]
public float ZombieCallDeltaRadius;

[DataMember]
public float ZombieCallRadiusLimit;

[DataMember]
public float CrowdAttackBlockRadius;

[DataMember]
public float MinSpawnDistToPlayer;

[DataMember]
public float TargetPointSearchRadiusLimit;
}
}
4 changes: 4 additions & 0 deletions Fuyu.Backend.BSG/Models/Locations/Location.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System.Collections.Generic;
using System.Runtime.Serialization;
using Fuyu.Backend.BSG.Models.Common;

Expand Down Expand Up @@ -220,5 +221,8 @@ public class Location

[DataMember]
public Banner[] Banners;

[DataMember]
public Dictionary<string, Event> Events;
}
}
3 changes: 3 additions & 0 deletions Fuyu.Backend.BSG/Models/Profiles/Info/BotSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,8 @@ public class BotSettings

[DataMember]
public float AggressorBonus;

[DataMember(EmitDefaultValue = false)]
public bool? UseSimpleAnimator;
}
}
14 changes: 7 additions & 7 deletions Fuyu.Backend.BSG/Models/Profiles/Profile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,25 +55,25 @@ public class Profile
[DataMember]
public Union<Dictionary<MongoId, EWishlistGroup>, object[]> WishList;

[DataMember]
[DataMember(EmitDefaultValue = false)]
public NotesInfo Notes;

[DataMember]
[DataMember(EmitDefaultValue = false)]
public List<QuestInfo> Quests;

[DataMember]
[DataMember(EmitDefaultValue = false)]
public Dictionary<MongoId, int> Achievements;

[DataMember]
[DataMember(EmitDefaultValue = false)]
public RagfairInfo RagfairInfo;

[DataMember(EmitDefaultValue = false)]
public Union<Dictionary<MongoId, TraderInfo>, object[]> TradersInfo;
public Union<Dictionary<MongoId, TraderInfo>, object[]>? TradersInfo;

[DataMember]
[DataMember(EmitDefaultValue = false)]
public UnlockedInfo UnlockedInfo;

[DataMember]
[DataMember(EmitDefaultValue = false)]
public MoneyTransferLimitInfo moneyTransferLimitData;

// NOTE: Deserialization works but is deserialized as
Expand Down
13 changes: 13 additions & 0 deletions Fuyu.Backend.EFT/Controllers/Http/GameVersionValidateController.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/* TODO: GameVersionValidateRequest
{
"version": {
"major": "0.15.5.1.33420",
"minor": "live",
"game": "live",
"backend": "6",
"taxonomy": "341"
},
"develop": true
}
*/

using System.Threading.Tasks;
using Fuyu.Backend.BSG.Models.Responses;
using Fuyu.Backend.EFT.Networking;
Expand Down
2 changes: 1 addition & 1 deletion Fuyu.Backend.EFT/Controllers/Http/GlobalsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public override Task RunAsync(EftHttpContext context)
// TODO: generate this
// --seionmoya, 2024-11-18
var text = EftOrm.GetGlobals();
return context.SendJsonAsync(text);
return context.SendJsonAsync(text, true, true);
}
}
}
3 changes: 1 addition & 2 deletions Fuyu.Backend.EFT/Controllers/Http/LocationsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ public LocationsController() : base("/client/locations")
public override Task RunAsync(EftHttpContext context)
{
var json = EftOrm.GetLocations();
var locations = Json.Parse<ResponseBody<WorldMap>>(json);
var response = Json.Stringify(locations);
var response = Json.Parse<ResponseBody<WorldMap>>(json);
var text = Json.Stringify(response);
return context.SendJsonAsync(text, true, true);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ public MatchLocalStartController() : base("/client/match/local/start")
{
{ "bigmap", Resx.GetText("eft", "database.locations.bigmap.json") },
{ "factory4_day", Resx.GetText("eft", "database.locations.factory4_day.json") },
{ "factory4_night", string.Empty },
{ "factory4_night", Resx.GetText("eft", "database.locations.factory4_night.json") },
{ "interchange", Resx.GetText("eft", "database.locations.interchange.json") },
{ "laboratory", string.Empty },
{ "laboratory", Resx.GetText("eft", "database.locations.laboratory.json") },
{ "lighthouse", Resx.GetText("eft", "database.locations.lighthouse.json") },
{ "rezervbase", Resx.GetText("eft", "database.locations.rezervbase.json") },
{ "sandbox", Resx.GetText("eft", "database.locations.sandbox.json") },
{ "shorline", Resx.GetText("eft", "database.locations.shorline.json") },
{ "shoreline", Resx.GetText("eft", "database.locations.shoreline.json") },
{ "tarkovstreets", Resx.GetText("eft", "database.locations.tarkovstreets.json") },
{ "woods", Resx.GetText("eft", "database.locations.woods.json") }
};
Expand Down
45 changes: 37 additions & 8 deletions Fuyu.Backend.EFT/Fuyu.Backend.EFT.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,47 @@
</ItemGroup>

<ItemGroup>
<EmbeddedResource Include="embedded/database/bots/marksman.json" />
<EmbeddedResource Include="embedded/database/bots/assault.json" />
<EmbeddedResource Include="embedded/database/bots/bossbully.json" />
<EmbeddedResource Include="embedded/database/bots/bossknight.json" />
<EmbeddedResource Include="embedded/database/bots/followerbully.json" />
<EmbeddedResource Include="embedded/database/bots/bosskilla.json" />
<EmbeddedResource Include="embedded/database/bots/bosskojaniy.json" />
<EmbeddedResource Include="embedded/database/bots/followerkojaniy.json" />
<EmbeddedResource Include="embedded/database/bots/pmcbear.json" />
<EmbeddedResource Include="embedded/database/bots/pmcbot.json" />
<EmbeddedResource Include="embedded/database/bots/pmcusec.json" />
<EmbeddedResource Include="embedded/database/bots/bossgluhar.json" />
<EmbeddedResource Include="embedded/database/bots/followergluharassault.json" />
<EmbeddedResource Include="embedded/database/bots/followergluharsecurity.json" />
<EmbeddedResource Include="embedded/database/bots/followergluharscout.json" />
<EmbeddedResource Include="embedded/database/bots/followersanitar.json" />
<EmbeddedResource Include="embedded/database/bots/sectantwarrior.json" />
<EmbeddedResource Include="embedded/database/bots/sectantpriest.json" />
<EmbeddedResource Include="embedded/database/bots/bosstagilla.json" />
<EmbeddedResource Include="embedded/database/bots/bosspartisan.json" />
<EmbeddedResource Include="embedded/database/bots/exusec.json" />
<EmbeddedResource Include="embedded/database/bots/bossknight.json" />
<EmbeddedResource Include="embedded/database/bots/followerbigpipe.json" />
<EmbeddedResource Include="embedded/database/bots/followerbirdeye.json" />
<EmbeddedResource Include="embedded/database/bots/followerbully.json" />
<EmbeddedResource Include="embedded/database/bots/marksman.json" />
<EmbeddedResource Include="embedded/database/bots/sectantoni.json" />
<EmbeddedResource Include="embedded/database/bots/bosszryachiy.json" />
<EmbeddedResource Include="embedded/database/bots/followerzryachiy.json" />
<EmbeddedResource Include="embedded/database/bots/bossboar.json" />
<EmbeddedResource Include="embedded/database/bots/followerboar.json" />
<EmbeddedResource Include="embedded/database/bots/bossboarsniper.json" />
<EmbeddedResource Include="embedded/database/bots/followerboarclose1.json" />
<EmbeddedResource Include="embedded/database/bots/followerboarclose2.json" />
<EmbeddedResource Include="embedded/database/bots/bosskolontay.json" />
<EmbeddedResource Include="embedded/database/bots/followerkolontayassault.json" />
<EmbeddedResource Include="embedded/database/bots/followerkolontaysecurity.json" />
<EmbeddedResource Include="embedded/database/bots/shooterbtr.json" />
<EmbeddedResource Include="embedded/database/bots/bosspartisan.json" />
<EmbeddedResource Include="embedded/database/bots/sectantpredvestnik.json" />
<EmbeddedResource Include="embedded/database/bots/sectantpriest.json" />
<EmbeddedResource Include="embedded/database/bots/sectantprizrak.json" />
<EmbeddedResource Include="embedded/database/bots/sectantwarrior.json" />
<EmbeddedResource Include="embedded/database/bots/sectantoni.json" />
<EmbeddedResource Include="embedded/database/bots/infectedassault.json" />
<EmbeddedResource Include="embedded/database/bots/infectedpmc.json" />
<EmbeddedResource Include="embedded/database/bots/infectedcivil.json" />
<EmbeddedResource Include="embedded/database/bots/infectedlaborant.json" />
<EmbeddedResource Include="embedded/database/locales/client.languages.json" />
<EmbeddedResource Include="embedded/database/locales/client.locale-ch.json" />
<EmbeddedResource Include="embedded/database/locales/client.locale-cz.json" />
Expand Down Expand Up @@ -62,11 +89,13 @@
<EmbeddedResource Include="embedded/database/locales/client.menu.locale-tu.json" />
<EmbeddedResource Include="embedded/database/locations/bigmap.json" />
<EmbeddedResource Include="embedded/database/locations/factory4_day.json" />
<EmbeddedResource Include="embedded/database/locations/factory4_night.json" />
<EmbeddedResource Include="embedded/database/locations/interchange.json" />
<EmbeddedResource Include="embedded/database/locations/laboratory.json" />
<EmbeddedResource Include="embedded/database/locations/lighthouse.json" />
<EmbeddedResource Include="embedded/database/locations/rezervbase.json" />
<EmbeddedResource Include="embedded/database/locations/sandbox.json" />
<EmbeddedResource Include="embedded/database/locations/shorline.json" />
<EmbeddedResource Include="embedded/database/locations/shoreline.json" />
<EmbeddedResource Include="embedded/database/locations/tarkovstreets.json" />
<EmbeddedResource Include="embedded/database/locations/woods.json" />
<EmbeddedResource Include="embedded/database/profiles/player.savage.json" />
Expand Down
Loading

0 comments on commit b97baa4

Please sign in to comment.