mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Updated xeno ability code.
Updated ninja ability code. Misc ninja update. Fixed chemistry reagent code for the ninja suit. This final update could have been more awesome but whatever. I've copy-pasted the ninja info on to SpiderOS for future reference. It's been fun but now I must sayonara. Whatever that means. Oh, it means goodbye. ~Later~ git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1469 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -95,13 +95,13 @@ datum
|
||||
if(preserve_data)
|
||||
trans_data = current_reagent.data
|
||||
R.add_reagent(current_reagent.id, amount, trans_data)
|
||||
src.remove_reagent(current_reagent.id, amount)
|
||||
src.remove_reagent(current_reagent.id, amount, 1)
|
||||
break
|
||||
|
||||
src.update_total()
|
||||
R.update_total()
|
||||
R.handle_reactions()
|
||||
src.handle_reactions()
|
||||
//src.handle_reactions() Don't need to handle reactions on the source since you're (presumably isolating) and transferring a specific reagent.
|
||||
return amount
|
||||
|
||||
/*
|
||||
@@ -285,7 +285,7 @@ datum
|
||||
|
||||
return 1
|
||||
|
||||
remove_reagent(var/reagent, var/amount)
|
||||
remove_reagent(var/reagent, var/amount, var/safety)//Added a safety check for the trans_id_to
|
||||
|
||||
if(!isnum(amount)) return 1
|
||||
|
||||
@@ -294,7 +294,8 @@ datum
|
||||
if (R.id == reagent)
|
||||
R.volume -= amount
|
||||
update_total()
|
||||
handle_reactions()
|
||||
if(!safety)//So it does not handle reactions when it need not to
|
||||
handle_reactions()
|
||||
my_atom.on_reagent_change()
|
||||
return 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user