/usr/share/games/adanaxisgpl/ruby/AdanaxisAIKhaziCarrier.rb is in adanaxisgpl-data 1.2.5.dfsg.1-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | #%Header {
##############################################################################
#
# File data-adanaxis/ruby/AdanaxisAIKhaziCarrier.rb
#
# Copyright Andy Southgate 2006-2007
#
# This file may be used and distributed under the terms of the Mushware
# Software Licence version 1.4, under the terms for 'Proprietary original
# source files'. If not supplied with this software, a copy of the licence
# can be obtained from Mushware Limited via http://www.mushware.com/.
# One of your options under that licence is to use and distribute this file
# under the terms of the GNU General Public Licence version 2.
#
# This software carries NO WARRANTY of any kind.
#
##############################################################################
#%Header } IcgDIxBSAx47sYCy3NSd8Q
#
# $Id: AdanaxisAIKhaziCarrier.rb,v 1.7 2007/06/27 12:58:09 southa Exp $
# $Log: AdanaxisAIKhaziCarrier.rb,v $
# Revision 1.7 2007/06/27 12:58:09 southa
# Debian packaging
#
# Revision 1.6 2007/04/21 18:05:46 southa
# Level 8
#
# Revision 1.5 2007/04/18 09:21:51 southa
# Header and level fixes
#
# Revision 1.4 2007/03/27 14:01:02 southa
# Attendant AI
#
require 'Mushware.rb'
require 'AdanaxisAIKhazi.rb'
class AdanaxisAIKhaziCarrier < AdanaxisAIKhazi
AISTATE_DEPLOY=100
def mStateChangeDeploy(inDuration = nil)
mStateChangePatrol(inDuration)
mStateChange(AISTATE_DEPLOY)
nil
end
def mStateActionDormantExit
mStateChangeDeploy(10000)
end
def mStateActionRamExit
mStateChangeDeploy(10000)
end
def mStateActionPatrolExit
mStateChangeDeploy(15000)
end
def mStateActionDeployExit
if (@r_piece.mWeapon.mAmmoCount == 0 && AdanaxisRuby.cGameDifficulty > 0)
mStateChangeRam(60000)
else
mStateChangePatrol(15000)
end
end
def mStateActionDeploy
retVal = mStateActionPatrol
@r_piece.mFire
retVal
end
def mActMain
callInterval = 100
case @m_state
when AISTATE_DEPLOY
callInterval = mStateActionDeploy
mStateActionDeployExit if mStateExpired?
else callInterval = super
end
return callInterval
end
end
|