Browse Source

fix: 🐛 add invisible score

tags/0.1.0
shangfengh 2 years ago
parent
commit
63a0e92158
3 changed files with 3 additions and 2 deletions
  1. +1
    -1
      docs/CAPI接口(cpp).md
  2. +1
    -1
      docs/CAPI接口(python).md
  3. +1
    -0
      logic/Gaming/SkillManager/SkillManager.ActiveSkill.cs

+ 1
- 1
docs/CAPI接口(cpp).md View File

@@ -43,7 +43,7 @@
### 信息获取

#### 队内信息
- `std::future<bool> SendMessage(int64_t, std::string)`:给同队的队友发送消息。第一个参数指定发送的对象,第二个参数指定发送的内容,不得超过256字节。
- `std::future<bool> SendMessage(int64_t, std::string)`:给同队的队友发送消息,队友在下一帧收到。第一个参数指定发送的对象,第二个参数指定发送的内容,不得超过256字节。
- `bool HaveMessage()`:是否有队友发来的尚未接收的信息。
- `std::pair<int64_t, std::string> GetMessage()`:按照消息发送顺序获取来自队友的信息,第一个参数为发送该消息的PlayerID。



+ 1
- 1
docs/CAPI接口(python).md View File

@@ -55,7 +55,7 @@

#### 队内信息

- `def GetMessage(self) -> Tuple[int, str]`:给同队的队友发送消息。第一个参数指定发送的对象,第二个参数指定发送的内容,不得超过256字节。
- `def GetMessage(self) -> Tuple[int, str]`:给同队的队友发送消息,队友在下一帧收到。第一个参数指定发送的对象,第二个参数指定发送的内容,不得超过256字节。
- `def HaveMessage(self) -> bool`:是否有队友发来的尚未接收的信息。
- `def GetMessage(self) -> Tuple[int, str]`:按照消息发送顺序获取来自队友的信息,第一个参数为发送该消息的PlayerID。



+ 1
- 0
logic/Gaming/SkillManager/SkillManager.ActiveSkill.cs View File

@@ -96,6 +96,7 @@ namespace Gaming
IActiveSkill activeSkill = player.FindIActiveSkill(ActiveSkillType.BecomeInvisible);
return ActiveSkillEffect(activeSkill, player, () =>
{
player.AddScore(GameData.ScoreBecomeInvisible);
player.AddInvisible(activeSkill.DurationTime);
Debugger.Output(player, "become invisible!");
},


Loading…
Cancel
Save