mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-02-04 05:52:56 +08:00
Add notes; format; clean-up
This commit is contained in:
parent
76251c6718
commit
7a2d5ba11a
@ -440,10 +440,10 @@ public final class AbilityManager extends BasePlayerManager {
|
|||||||
var abilityName = ability.getAbilityName();
|
var abilityName = ability.getAbilityName();
|
||||||
if (abilityName.getHash() != 0)
|
if (abilityName.getHash() != 0)
|
||||||
Grasscutter.getLogger()
|
Grasscutter.getLogger()
|
||||||
.warn("Instancing {} in to {}", abilityName.getHash(), ability.getInstancedAbilityId());
|
.trace("Instancing {} in to {}", abilityName.getHash(), ability.getInstancedAbilityId());
|
||||||
else
|
else
|
||||||
Grasscutter.getLogger()
|
Grasscutter.getLogger()
|
||||||
.warn("Instancing {} in to {}", abilityName.getStr(), ability.getInstancedAbilityId());
|
.trace("Instancing {} in to {}", abilityName.getStr(), ability.getInstancedAbilityId());
|
||||||
|
|
||||||
var target = this.player.getScene().getEntityById(invoke.getEntityId());
|
var target = this.player.getScene().getEntityById(invoke.getEntityId());
|
||||||
if (target == null) {
|
if (target == null) {
|
||||||
|
@ -1116,14 +1116,14 @@ public class SceneScriptManager {
|
|||||||
var group = getGroupById(groupID);
|
var group = getGroupById(groupID);
|
||||||
if (group == null || group.triggers == null) {
|
if (group == null || group.triggers == null) {
|
||||||
Grasscutter.getLogger()
|
Grasscutter.getLogger()
|
||||||
.warn(
|
.debug(
|
||||||
"trying to create a timer for unknown group with id {} and source {}",
|
"trying to create a timer for unknown group with id {} and source {}",
|
||||||
groupID,
|
groupID,
|
||||||
source);
|
source);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
Grasscutter.getLogger()
|
Grasscutter.getLogger()
|
||||||
.info(
|
.debug(
|
||||||
"creating group timer event for group {} with source {} and time {}",
|
"creating group timer event for group {} with source {} and time {}",
|
||||||
groupID,
|
groupID,
|
||||||
source,
|
source,
|
||||||
@ -1131,7 +1131,7 @@ public class SceneScriptManager {
|
|||||||
for (SceneTrigger trigger : group.triggers.values()) {
|
for (SceneTrigger trigger : group.triggers.values()) {
|
||||||
if (trigger.getEvent() == EVENT_TIMER_EVENT && trigger.getSource().equals(source)) {
|
if (trigger.getEvent() == EVENT_TIMER_EVENT && trigger.getSource().equals(source)) {
|
||||||
Grasscutter.getLogger()
|
Grasscutter.getLogger()
|
||||||
.warn(
|
.debug(
|
||||||
"[LUA] Found timer trigger with source {} for group {} : {}",
|
"[LUA] Found timer trigger with source {} for group {} : {}",
|
||||||
source,
|
source,
|
||||||
groupID,
|
groupID,
|
||||||
|
@ -1124,6 +1124,10 @@ public class ScriptLib {
|
|||||||
|
|
||||||
public int BeginCameraSceneLook(LuaTable sceneLookParams){
|
public int BeginCameraSceneLook(LuaTable sceneLookParams){
|
||||||
logger.debug("[LUA] Call BeginCameraSceneLook with {}", printTable(sceneLookParams));
|
logger.debug("[LUA] Call BeginCameraSceneLook with {}", printTable(sceneLookParams));
|
||||||
|
|
||||||
|
// INVESTIGATE: Sniff the content for 'BeginCameraSceneLookNotify'.
|
||||||
|
// This packet is known as 260 (3.5) or 215 (3.6).
|
||||||
|
// Compare data to ones found in Lua, then de-obfuscate.
|
||||||
// var luaLookPos = sceneLookParams.get("look_pos");
|
// var luaLookPos = sceneLookParams.get("look_pos");
|
||||||
// var luaFollowPos = sceneLookParams.get("follow_pos");
|
// var luaFollowPos = sceneLookParams.get("follow_pos");
|
||||||
// var luaDuration = sceneLookParams.get("duration");
|
// var luaDuration = sceneLookParams.get("duration");
|
||||||
|
Loading…
Reference in New Issue
Block a user