Skip to content

Commit

Permalink
Add a silly feature
Browse files Browse the repository at this point in the history
  • Loading branch information
EnAppelsin committed Jul 14, 2018
1 parent 71179da commit fb61880
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Randomiser/RandomCouch.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ if SettingRandomCouch then
local Replace = ReadFile(ReplacePath)
local GlobalPath = "/GameData/art/chars/global.p3d"
local Global = ReadFile(GlobalPath)

-- Easter egg?
if math.random(1, 20) == 1 then
local AniPos, AniLength = FindSubchunk(Original, ANIMATION_CHUNK)
local Ani = Original:sub(AniPos, AniPos + AniLength - 1)
local AniGroupPos, AniGroupLength = FindSubchunk(Ani, ANIMATION_GROUP_CHUNK)
Original = RemoveString(Original, AniPos + AniGroupPos - 1, AniPos + AniGroupPos - 1 + AniGroupLength)
Original = AddP3DInt4(Original, AniPos + 8, -AniGroupLength)
end

local Adjust = 0

Expand Down

0 comments on commit fb61880

Please sign in to comment.