mirror of
https://github.com/fulpstation/fulpstation.git
synced 2025-12-09 16:09:15 +00:00
...
This commit is contained in:
25
.travis.yml
25
.travis.yml
@@ -6,7 +6,10 @@ env:
|
|||||||
- BYOND_MAJOR="510"
|
- BYOND_MAJOR="510"
|
||||||
- BYOND_MINOR="1332"
|
- BYOND_MINOR="1332"
|
||||||
- NODE_VERSION="4"
|
- NODE_VERSION="4"
|
||||||
|
- BUILD_TOOLS=false
|
||||||
|
- DM_MAPFILE=""
|
||||||
matrix:
|
matrix:
|
||||||
|
- BUILD_TOOLS=true
|
||||||
- DM_MAPFILE="tgstation2"
|
- DM_MAPFILE="tgstation2"
|
||||||
- DM_MAPFILE="metastation"
|
- DM_MAPFILE="metastation"
|
||||||
- DM_MAPFILE="ministation"
|
- DM_MAPFILE="ministation"
|
||||||
@@ -30,24 +33,14 @@ addons:
|
|||||||
- python
|
- python
|
||||||
- python-pip
|
- python-pip
|
||||||
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install $NODE_VERSION
|
- tools/travis/install_build_tools.sh
|
||||||
- npm install -g gulp-cli
|
|
||||||
- pip install --user PyYaml -q
|
|
||||||
- pip install --user beautifulsoup4 -q
|
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- cd tgui && npm install && cd ..
|
- tools/travis/before_build_tools.sh
|
||||||
- chmod +x ./install-byond.sh
|
- tools/travis/before_build_byond.sh
|
||||||
- ./install-byond.sh
|
|
||||||
- shopt -s globstar
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- (! grep 'step_[xy]' _maps/**/*.dmm)
|
- tools/travis/check_filedirs.sh tgstation.dme
|
||||||
- md5sum -c - <<< "49bc6b1b9ed56c83cceb6674bd97cb34 *html/changelogs/example.yml"
|
- tools/travis/build_tools.sh
|
||||||
- tools/check_filedirs.sh tgstation.dme
|
- tools/travis/build_byond.sh
|
||||||
- cd tgui && gulp && cd ..
|
|
||||||
- python tools/ss13_genchangelog.py html/changelog.html html/changelogs
|
|
||||||
- source $HOME/BYOND-${BYOND_MAJOR}.${BYOND_MINOR}/byond/bin/byondsetup
|
|
||||||
- bash dm.sh -M${DM_MAPFILE} tgstation.dme
|
|
||||||
@@ -635,26 +635,7 @@ body
|
|||||||
if(!istype(M))
|
if(!istype(M))
|
||||||
usr << "This can only be used on instances of type /mob"
|
usr << "This can only be used on instances of type /mob"
|
||||||
return
|
return
|
||||||
M << "Control of your mob has been offered to dead players."
|
offer_control(M)
|
||||||
log_admin("[key_name(usr)] has offered control of ([key_name(M)]) to ghosts.")
|
|
||||||
message_admins("[key_name_admin(usr)] has offered control of ([key_name_admin(M)]) to ghosts")
|
|
||||||
var/poll_message = "Do you want to play as [M.real_name]?"
|
|
||||||
if(M.mind && M.mind.assigned_role)
|
|
||||||
poll_message = "[poll_message] Job:[M.mind.assigned_role]."
|
|
||||||
if(M.mind && M.mind.special_role)
|
|
||||||
poll_message = "[poll_message] Status:[M.mind.special_role]."
|
|
||||||
var/list/mob/dead/observer/candidates = pollCandidates(poll_message, "pAI", null, FALSE, 100)
|
|
||||||
var/mob/dead/observer/theghost = null
|
|
||||||
|
|
||||||
if(candidates.len)
|
|
||||||
theghost = pick(candidates)
|
|
||||||
M << "Your mob has been taken over by a ghost!"
|
|
||||||
message_admins("[key_name_admin(theghost)] has taken control of ([key_name_admin(M)])")
|
|
||||||
M.ghostize(0)
|
|
||||||
M.key = theghost.key
|
|
||||||
else
|
|
||||||
M << "There were no ghosts willing to take control."
|
|
||||||
message_admins("No ghosts were willing to take control of [key_name_admin(M)])")
|
|
||||||
|
|
||||||
else if(href_list["delall"])
|
else if(href_list["delall"])
|
||||||
if(!check_rights(R_DEBUG|R_SERVER))
|
if(!check_rights(R_DEBUG|R_SERVER))
|
||||||
|
|||||||
Reference in New Issue
Block a user