Skip to content

Commit b6abf38

Browse files
committed
Respect Stuff Completed.
1 parent 1be1cc2 commit b6abf38

27 files changed

Lines changed: 3300 additions & 14 deletions

Turbo.Catalog/Grains/LtdRaffleGrain.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ private async Task<double> CalculateWeightAsync(int playerId, CancellationToken
451451

452452
if (cfg.RespectsReceived.Enabled)
453453
weight += Math.Min(
454-
profile.StarGemCount * cfg.RespectsReceived.BonusPerUnit,
454+
profile.RespectTotal * cfg.RespectsReceived.BonusPerUnit,
455455
cfg.RespectsReceived.MaxBonus
456456
);
457457

Turbo.Database/Entities/Players/PlayerEntity.cs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using System;
12
using System.Collections.Generic;
23
using System.ComponentModel;
34
using System.ComponentModel.DataAnnotations;
@@ -45,6 +46,25 @@ public class PlayerEntity : TurboEntity
4546
[Column("room_chat_style_id")]
4647
public int? RoomChatStyleId { get; set; }
4748

49+
[Column("respect_total")]
50+
[DefaultValue(0)]
51+
public int RespectTotal { get; set; }
52+
53+
[Column("respect_left")]
54+
[DefaultValue(0)]
55+
public int RespectLeft { get; set; }
56+
57+
[Column("pet_respect_left")]
58+
[DefaultValue(0)]
59+
public int PetRespectLeft { get; set; }
60+
61+
[Column("respect_replenishes_left")]
62+
[DefaultValue(1)]
63+
public int RespectReplenishesLeft { get; set; }
64+
65+
[Column("last_respect_reset")]
66+
public DateTime? LastRespectReset { get; set; }
67+
4868
[InverseProperty("PlayerEntity")]
4969
public List<PlayerBadgeEntity>? PlayerBadges { get; set; }
5070

0 commit comments

Comments
 (0)