Skip to content

Commit

Permalink
remove the return set thing lol yeah
Browse files Browse the repository at this point in the history
  • Loading branch information
LarryFrosty authored Oct 1, 2024
1 parent 54ff3de commit 3d769ff
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions source/psychlua/FunkinLua.hx
Original file line number Diff line number Diff line change
Expand Up @@ -634,17 +634,14 @@ class FunkinLua {
Lua_helper.add_callback(lua, "setScore", function(value:Int = 0) {
game.songScore = value;
game.RecalculateRating();
return value;
});
Lua_helper.add_callback(lua, "setMisses", function(value:Int = 0) {
game.songMisses = value;
game.RecalculateRating();
return value;
});
Lua_helper.add_callback(lua, "setHits", function(value:Int = 0) {
game.songHits = value;
game.RecalculateRating();
return value;
});
Lua_helper.add_callback(lua, "setHealth", function(value:Float = 1) game.health = value);
Lua_helper.add_callback(lua, "addHealth", function(value:Float = 0) game.health += value);
Expand Down Expand Up @@ -736,11 +733,11 @@ class FunkinLua {
Lua_helper.add_callback(lua, "setCharacterX", function(type:String, value:Float) {
switch(type.toLowerCase()) {
case 'dad' | 'opponent':
return game.dadGroup.x = value;
game.dadGroup.x = value;
case 'gf' | 'girlfriend':
return game.gfGroup.x = value;
game.gfGroup.x = value;
default:
return game.boyfriendGroup.x = value;
game.boyfriendGroup.x = value;
}
});
Lua_helper.add_callback(lua, "getCharacterY", function(type:String) {
Expand All @@ -756,11 +753,11 @@ class FunkinLua {
Lua_helper.add_callback(lua, "setCharacterY", function(type:String, value:Float) {
switch(type.toLowerCase()) {
case 'dad' | 'opponent':
return game.dadGroup.y = value;
game.dadGroup.y = value;
case 'gf' | 'girlfriend':
return game.gfGroup.y = value;
game.gfGroup.y = value;
default:
return game.boyfriendGroup.y = value;
game.boyfriendGroup.y = value;
}
});
Lua_helper.add_callback(lua, "cameraSetTarget", function(target:String) {
Expand Down

0 comments on commit 3d769ff

Please sign in to comment.