Add notes; format; clean-up

This commit is contained in:
KingRainbow44 2023-04-29 14:07:47 -04:00
parent 76251c6718
commit 7a2d5ba11a
No known key found for this signature in database
GPG Key ID: FC2CB64B00D257BE
3 changed files with 9 additions and 5 deletions

View File

@ -440,10 +440,10 @@ public final class AbilityManager extends BasePlayerManager {
var abilityName = ability.getAbilityName();
if (abilityName.getHash() != 0)
Grasscutter.getLogger()
.warn("Instancing {} in to {}", abilityName.getHash(), ability.getInstancedAbilityId());
.trace("Instancing {} in to {}", abilityName.getHash(), ability.getInstancedAbilityId());
else
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());
if (target == null) {

View File

@ -1116,14 +1116,14 @@ public class SceneScriptManager {
var group = getGroupById(groupID);
if (group == null || group.triggers == null) {
Grasscutter.getLogger()
.warn(
.debug(
"trying to create a timer for unknown group with id {} and source {}",
groupID,
source);
return 1;
}
Grasscutter.getLogger()
.info(
.debug(
"creating group timer event for group {} with source {} and time {}",
groupID,
source,
@ -1131,7 +1131,7 @@ public class SceneScriptManager {
for (SceneTrigger trigger : group.triggers.values()) {
if (trigger.getEvent() == EVENT_TIMER_EVENT && trigger.getSource().equals(source)) {
Grasscutter.getLogger()
.warn(
.debug(
"[LUA] Found timer trigger with source {} for group {} : {}",
source,
groupID,

View File

@ -1124,6 +1124,10 @@ public class ScriptLib {
public int BeginCameraSceneLook(LuaTable 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 luaFollowPos = sceneLookParams.get("follow_pos");
// var luaDuration = sceneLookParams.get("duration");