mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Bugfixes and small additions (#109)
* Add a converter for Player charsets in metadara * Fixed Sprite position editor not working with new shadow filenames. Also added check for custom shadows * Fixed pbTrainerBattleCore not working with NPC Trainer argument * Fixed typo which caused crash with old trainers.txt format * Fixed reference to non-existent variable which crashed the trainertype editor
This commit is contained in:
@@ -384,9 +384,9 @@ def pbGetPlayerCharset(meta,charset,trainer=nil,force=false)
|
||||
trainer = $Trainer if !trainer
|
||||
outfit = (trainer) ? trainer.outfit : 0
|
||||
if $game_player && $game_player.charsetData && !force
|
||||
return nil if $game_player.charsetData[0]==$Trainer.character_ID &&
|
||||
$game_player.charsetData[1]==charset &&
|
||||
$game_player.charsetData[2]==outfit
|
||||
return nil if $game_player.charsetData[0] == $Trainer.character_ID &&
|
||||
$game_player.charsetData[1] == charset &&
|
||||
$game_player.charsetData[2] == outfit
|
||||
end
|
||||
$game_player.charsetData = [$Trainer.character_ID,charset,outfit] if $game_player
|
||||
ret = meta[charset]
|
||||
|
||||
Reference in New Issue
Block a user