tower-sell #12

Merged
matt merged 6 commits from tower-sell into main 2026-07-14 23:54:08 -07:00
4 changed files with 7 additions and 3 deletions
Showing only changes of commit 86bc916c49 - Show all commits

View file

@ -137,7 +137,7 @@ namespace TD.Gameplay.Draft
// ----- Owner → server RPCs ---------------------------------------- // ----- Owner → server RPCs ----------------------------------------
/// <summary>Owning client: pick one of the offered options by id.</summary> /// <summary>Owning client: pick one of the offered options by id.</summary>
[Rpc(SendTo.Server, RequireOwnership = true)] [Rpc(SendTo.Server, InvokePermission = RpcInvokePermission.Owner)]
public void RequestPickRpc(int optionId) public void RequestPickRpc(int optionId)
{ {
ServerResolve(optionId); ServerResolve(optionId);
@ -148,7 +148,7 @@ namespace TD.Gameplay.Draft
/// afford it or already has an unresolved draft (resolve the current one first so a /// afford it or already has an unresolved draft (resolve the current one first so a
/// free pick is never silently overwritten). /// free pick is never silently overwritten).
/// </summary> /// </summary>
[Rpc(SendTo.Server, RequireOwnership = true)] [Rpc(SendTo.Server, InvokePermission = RpcInvokePermission.Owner)]
public void RequestBuyRerollRpc() public void RequestBuyRerollRpc()
{ {
if (HasActiveDraft) return; // resolve the pending draft before buying another if (HasActiveDraft) return; // resolve the pending draft before buying another

View file

@ -146,7 +146,7 @@ namespace TD.Gameplay
/// a random buff from the category at <paramref name="categoryIndex"/>. /// a random buff from the category at <paramref name="categoryIndex"/>.
/// The server validates gold and adds the buff if the purchase succeeds. /// The server validates gold and adds the buff if the purchase succeeds.
/// </summary> /// </summary>
[Rpc(SendTo.Server, RequireOwnership = true)] [Rpc(SendTo.Server, InvokePermission = RpcInvokePermission.Owner)]
public void RequestPurchaseBuffRpc(int categoryIndex) public void RequestPurchaseBuffRpc(int categoryIndex)
{ {
if (categories == null || categoryIndex < 0 || categoryIndex >= categories.Length) if (categories == null || categoryIndex < 0 || categoryIndex >= categories.Length)

View file

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: bdff685029f23004796671150c7cf39b

View file

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: e2708c6bac8136f45b48c899d3d40630